123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181 |
- import{aD as $z,l as VC,aG as WC,aa as Hz,aA as Uz}from"./index.DJRppC5x.js";import{a as O3,aj as GC,c as B3,o as k3,S as qC,H as Sy,s as $_,r as il,w as Ww,f as KC,Z as Vz,q as H_,ae as Wz,l as Gz}from"./vue.D1BjjNmv.js";var at=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function qz(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Zu(e){var t={exports:{}};return e(t,t.exports),t.exports}var mi,Sg,yh=function(e){return e&&e.Math==Math&&e},Be=yh(typeof globalThis=="object"&&globalThis)||yh(typeof window=="object"&&window)||yh(typeof self=="object"&&self)||yh(typeof at=="object"&&at)||function(){return this}()||Function("return this")(),F3=Function.prototype,XC=F3.apply,Kz=F3.bind,YC=F3.call,U_=typeof Reflect=="object"&&Reflect.apply||(Kz?YC.bind(XC):function(){return YC.apply(XC,arguments)}),V_=Function.prototype,Gw=V_.bind,qw=V_.call,Xz=Gw&&Gw.bind(qw),pt=Gw?function(e){return e&&Xz(qw,e)}:function(e){return e&&function(){return qw.apply(e,arguments)}},dr=function(e){return typeof e=="function"},Vr=function(e){try{return!!e()}catch{return!0}},zr=!Vr(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),yc=Function.prototype.call,Qr=yc.bind?yc.bind(yc):function(){return yc.apply(yc,arguments)},JC={}.propertyIsEnumerable,ZC=Object.getOwnPropertyDescriptor,Yz=ZC&&!JC.call({1:2},1)?function(e){var t=ZC(this,e);return!!t&&t.enumerable}:JC,T3={f:Yz},Vn=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Jz=pt({}.toString),Zz=pt("".slice),du=function(e){return Zz(Jz(e),8,-1)},xy=Be.Object,Qz=pt("".split),W_=Vr(function(){return!xy("z").propertyIsEnumerable(0)})?function(e){return du(e)=="String"?Qz(e,""):xy(e)}:xy,e$=Be.TypeError,_3=function(e){if(e==null)throw e$("Can't call method on "+e);return e},To=function(e){return W_(_3(e))},wn=function(e){return typeof e=="object"?e!==null:dr(e)},Jr={},QC=function(e){return dr(e)?e:void 0},Kl=function(e,t){return arguments.length<2?QC(Jr[e])||QC(Be[e]):Jr[e]&&Jr[e][t]||Be[e]&&Be[e][t]},wd=pt({}.isPrototypeOf),Ay=Kl("navigator","userAgent")||"",eS=Be.process,tS=Be.Deno,rS=eS&&eS.versions||tS&&tS.version,nS=rS&&rS.v8;nS&&(Sg=(mi=nS.split("."))[0]>0&&mi[0]<4?1:+(mi[0]+mi[1])),!Sg&&Ay&&(!(mi=Ay.match(/Edge\/(\d+)/))||mi[1]>=74)&&(mi=Ay.match(/Chrome\/(\d+)/))&&(Sg=+mi[1]);var bh,ov=Sg,uo=!!Object.getOwnPropertySymbols&&!Vr(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&ov&&ov<41}),j3=uo&&!Symbol.sham&&typeof Symbol.iterator=="symbol",t$=Be.Object,al=j3?function(e){return typeof e=="symbol"}:function(e){var t=Kl("Symbol");return dr(t)&&wd(t.prototype,t$(e))},r$=Be.String,Kw=function(e){try{return r$(e)}catch{return"Object"}},n$=Be.TypeError,P3=function(e){if(dr(e))return e;throw n$(Kw(e)+" is not a function")},iv=function(e,t){var r=e[t];return r==null?void 0:P3(r)},o$=Be.TypeError,i$=Object.defineProperty,Gi=Be["__core-js_shared__"]||function(e,t){try{i$(Be,e,{value:t,configurable:!0,writable:!0})}catch{Be[e]=t}return t}("__core-js_shared__",{}),Qu=Zu(function(e){(e.exports=function(t,r){return Gi[t]||(Gi[t]=r!==void 0?r:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),a$=Be.Object,yp=function(e){return a$(_3(e))},u$=pt({}.hasOwnProperty),Ue=Object.hasOwn||function(e,t){return u$(yp(e),t)},s$=0,l$=Math.random(),c$=pt(1 .toString),av=function(e){return"Symbol("+(e===void 0?"":e)+")_"+c$(++s$+l$,36)},bc=Qu("wks"),pu=Be.Symbol,oS=pu&&pu.for,f$=j3?pu:pu&&pu.withoutSetter||av,Or=function(e){if(!Ue(bc,e)||!uo&&typeof bc[e]!="string"){var t="Symbol."+e;uo&&Ue(pu,e)?bc[e]=pu[e]:bc[e]=j3&&oS?oS(t):f$(t)}return bc[e]},d$=Be.TypeError,p$=Or("toPrimitive"),h$=function(e,t){if(!wn(e)||al(e))return e;var r,n=iv(e,p$);if(n){if(r=Qr(n,e,t),!wn(r)||al(r))return r;throw d$("Can't convert object to primitive value")}return function(o,i){var a,u;if(dr(a=o.toString)&&!wn(u=Qr(a,o))||dr(a=o.valueOf)&&!wn(u=Qr(a,o))||i!=="string")return u;throw o$("Can't convert object to primitive value")}(e,t)},Xl=function(e){var t=h$(e,"string");return al(t)?t:t+""},Xw=Be.document,g$=wn(Xw)&&wn(Xw.createElement),G_=function(e){return g$?Xw.createElement(e):{}},q_=!zr&&!Vr(function(){return Object.defineProperty(G_("div"),"a",{get:function(){return 7}}).a!=7}),iS=Object.getOwnPropertyDescriptor,v$=zr?iS:function(e,t){if(e=To(e),t=Xl(t),q_)try{return iS(e,t)}catch{}if(Ue(e,t))return Vn(!Qr(T3.f,e,t),e[t])},gm={f:v$},m$=/#|\.prototype\./,bp=function(e,t){var r=b$[y$(e)];return r==E$||r!=w$&&(dr(t)?Vr(t):!!t)},y$=bp.normalize=function(e){return String(e).replace(m$,".").toLowerCase()},b$=bp.data={},w$=bp.NATIVE="N",E$=bp.POLYFILL="P",D$=bp,aS=pt(pt.bind),N3=function(e,t){return P3(e),t===void 0?e:aS?aS(e,t):function(){return e.apply(t,arguments)}},C$=Be.String,S$=Be.TypeError,rn=function(e){if(wn(e))return e;throw S$(C$(e)+" is not an object")},x$=Be.TypeError,uS=Object.defineProperty,A$=zr?uS:function(e,t,r){if(rn(e),t=Xl(t),rn(r),q_)try{return uS(e,t,r)}catch{}if("get"in r||"set"in r)throw x$("Accessors not supported");return"value"in r&&(e[t]=r.value),e},xa={f:A$},Fr=zr?function(e,t,r){return xa.f(e,t,Vn(1,r))}:function(e,t,r){return e[t]=r,e},O$=gm.f,B$=function(e){var t=function(r,n,o){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(r);case 2:return new e(r,n)}return new e(r,n,o)}return U_(e,this,arguments)};return t.prototype=e.prototype,t},Wo=function(e,t){var r,n,o,i,a,u,s,l,c=e.target,f=e.global,d=e.stat,p=e.proto,v=f?Be:d?Be[c]:(Be[c]||{}).prototype,m=f?Jr:Jr[c]||Fr(Jr,c,{})[c],g=m.prototype;for(o in t)r=!D$(f?o:c+(d?".":"#")+o,e.forced)&&v&&Ue(v,o),a=m[o],r&&(u=e.noTargetGet?(l=O$(v,o))&&l.value:v[o]),i=r&&u?u:t[o],r&&typeof a==typeof i||(s=e.bind&&r?N3(i,Be):e.wrap&&r?B$(i):p&&dr(i)?pt(i):i,(e.sham||i&&i.sham||a&&a.sham)&&Fr(s,"sham",!0),Fr(m,o,s),p&&(Ue(Jr,n=c+"Prototype")||Fr(Jr,n,{}),Fr(Jr[n],o,i),e.real&&g&&!g[o]&&Fr(g,o,i)))},sS=Qu("keys"),vm=function(e){return sS[e]||(sS[e]=av(e))},k$=!Vr(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),lS=vm("IE_PROTO"),Yw=Be.Object,F$=Yw.prototype,uv=k$?Yw.getPrototypeOf:function(e){var t=yp(e);if(Ue(t,lS))return t[lS];var r=t.constructor;return dr(r)&&t instanceof r?r.prototype:t instanceof Yw?F$:null},T$=Be.String,_$=Be.TypeError,sv=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=pt(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),t=r instanceof Array}catch{}return function(n,o){return rn(n),function(i){if(typeof i=="object"||dr(i))return i;throw _$("Can't set "+T$(i)+" as a prototype")}(o),t?e(n,o):n.__proto__=o,n}}():void 0),j$=Math.ceil,P$=Math.floor,I3=function(e){var t=+e;return t!=t||t===0?0:(t>0?P$:j$)(t)},N$=Math.max,I$=Math.min,Jw=function(e,t){var r=I3(e);return r<0?N$(r+t,0):I$(r,t)},R$=Math.min,wp=function(e){return(t=e.length)>0?R$(I3(t),9007199254740991):0;var t},L$=function(e){return function(t,r,n){var o,i=To(t),a=wp(i),u=Jw(n,a);if(e&&r!=r){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===r)return e||u||0;return!e&&-1}},M$={indexOf:L$(!1)},Ep={},z$=M$.indexOf,cS=pt([].push),K_=function(e,t){var r,n=To(e),o=0,i=[];for(r in n)!Ue(Ep,r)&&Ue(n,r)&&cS(i,r);for(;t.length>o;)Ue(n,r=t[o++])&&(~z$(i,r)||cS(i,r));return i},lv=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],$$=lv.concat("length","prototype"),H$=Object.getOwnPropertyNames||function(e){return K_(e,$$)},R3={f:H$},xg={f:Object.getOwnPropertySymbols},U$=pt([].concat),V$=Kl("Reflect","ownKeys")||function(e){var t=R3.f(rn(e)),r=xg.f;return r?U$(t,r(e)):t},L3=Object.keys||function(e){return K_(e,lv)},W$=zr?Object.defineProperties:function(e,t){rn(e);for(var r,n=To(t),o=L3(t),i=o.length,a=0;i>a;)xa.f(e,r=o[a++],n[r]);return e},G$=Kl("document","documentElement"),X_=vm("IE_PROTO"),Oy=function(){},Y_=function(e){return"<script>"+e+"<\/script>"},fS=function(e){e.write(Y_("")),e.close();var t=e.parentWindow.Object;return e=null,t},Ag=function(){try{bh=new ActiveXObject("htmlfile")}catch{}var e,t;Ag=typeof document<"u"?document.domain&&bh?fS(bh):((t=G_("iframe")).style.display="none",G$.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(Y_("document.F=Object")),e.close(),e.F):fS(bh);for(var r=lv.length;r--;)delete Ag.prototype[lv[r]];return Ag()};Ep[X_]=!0;var ni=Object.create||function(e,t){var r;return e!==null?(Oy.prototype=rn(e),r=new Oy,Oy.prototype=null,r[X_]=e):r=Ag(),t===void 0?r:W$(r,t)},Zw=function(e,t,r){var n=Xl(t);n in e?xa.f(e,n,Vn(0,r)):e[n]=r},q$=Be.Array,K$=Math.max,J_=function(e,t,r){for(var n=wp(e),o=Jw(t,n),i=Jw(n,n),a=q$(K$(i-o,0)),u=0;o<i;o++,u++)Zw(a,u,e[o]);return a.length=u,a},X$=pt("".replace),Y$=pt("".split),J$=pt([].join),Qw=String(Error("zxcasd").stack),Z_=/\n\s*at [^:]*:[^\n]*/,Z$=Z_.test(Qw),Q$=/@[^\n]*\n/.test(Qw)&&!/zxcasd/.test(Qw),eH=function(e,t){if(typeof e!="string")return e;if(Z$)for(;t--;)e=X$(e,Z_,"");else if(Q$)return J$(J_(Y$(e,`
- `),t),`
- `);return e},tH=function(e,t){wn(t)&&"cause"in t&&Fr(e,"cause",t.cause)},Qo={},rH=Or("iterator"),nH=Array.prototype,Q_={};Q_[Or("toStringTag")]="z";var M3=String(Q_)==="[object z]",oH=Or("toStringTag"),iH=Be.Object,aH=du(function(){return arguments}())=="Arguments",Dp=M3?du:function(e){var t,r,n;return e===void 0?"Undefined":e===null?"Null":typeof(r=function(o,i){try{return o[i]}catch{}}(t=iH(e),oH))=="string"?r:aH?du(t):(n=du(t))=="Object"&&dr(t.callee)?"Arguments":n},uH=Or("iterator"),dS=function(e){if(e!=null)return iv(e,uH)||iv(e,"@@iterator")||Qo[Dp(e)]},sH=Be.TypeError,pS=function(e,t,r){var n,o;rn(e);try{if(!(n=iv(e,"return"))){if(t==="throw")throw r;return r}n=Qr(n,e)}catch(i){o=!0,n=i}if(t==="throw")throw r;if(o)throw n;return rn(n),r},lH=Be.TypeError,Og=function(e,t){this.stopped=e,this.result=t},hS=Og.prototype,cH=function(e,t,r){var n,o,i,a,u,s,l,c=r&&r.that,f=!(!r||!r.AS_ENTRIES),d=!(!r||!r.IS_ITERATOR),p=!(!r||!r.INTERRUPTED),v=N3(t,c),m=function(y){return n&&pS(n,"normal",y),new Og(!0,y)},g=function(y){return f?(rn(y),p?v(y[0],y[1],m):v(y[0],y[1])):p?v(y,m):v(y)};if(d)n=e;else{if(!(o=dS(e)))throw lH(Kw(e)+" is not iterable");if(function(y){return y!==void 0&&(Qo.Array===y||nH[rH]===y)}(o)){for(i=0,a=wp(e);a>i;i++)if((u=g(e[i]))&&wd(hS,u))return u;return new Og(!1)}n=function(y,h){var b=arguments.length<2?dS(y):h;if(P3(b))return rn(Qr(b,y));throw sH(Kw(y)+" is not iterable")}(e,o)}for(s=n.next;!(l=Qr(s,n)).done;){try{u=g(l.value)}catch(y){pS(n,"throw",y)}if(typeof u=="object"&&u&&wd(hS,u))return u}return new Og(!1)},fH=Be.String,Ed=function(e){if(Dp(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return fH(e)},dH=function(e,t){return e===void 0?arguments.length<2?"":t:Ed(e)},pH=!Vr(function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",Vn(1,7)),e.stack!==7)}),hH=Or("toStringTag"),cv=Be.Error,gH=[].push,Dd=function(e,t){var r,n=arguments.length>2?arguments[2]:void 0,o=wd(By,this);sv?r=sv(new cv(void 0),o?uv(this):By):(r=o?this:ni(By),Fr(r,hH,"Error")),Fr(r,"message",dH(t,"")),pH&&Fr(r,"stack",eH(r.stack,1)),tH(r,n);var i=[];return cH(e,gH,{that:i}),Fr(r,"errors",i),r};sv?sv(Dd,cv):function(e,t){for(var r=V$(t),n=xa.f,o=gm.f,i=0;i<r.length;i++){var a=r[i];Ue(e,a)||n(e,a,o(t,a))}}(Dd,cv);var By=Dd.prototype=ni(cv.prototype,{constructor:Vn(1,Dd),message:Vn(1,""),name:Vn(1,"AggregateError")});Wo({global:!0},{AggregateError:Dd});var vH=pt(Function.toString);dr(Gi.inspectSource)||(Gi.inspectSource=function(e){return vH(e)});var fv,Yf,dv,ej=Gi.inspectSource,gS=Be.WeakMap,mH=dr(gS)&&/native code/.test(ej(gS)),e4=Be.TypeError,yH=Be.WeakMap;if(mH||Gi.state){var Ra=Gi.state||(Gi.state=new yH),bH=pt(Ra.get),vS=pt(Ra.has),wH=pt(Ra.set);fv=function(e,t){if(vS(Ra,e))throw new e4("Object already initialized");return t.facade=e,wH(Ra,e,t),t},Yf=function(e){return bH(Ra,e)||{}},dv=function(e){return vS(Ra,e)}}else{var gs=vm("state");Ep[gs]=!0,fv=function(e,t){if(Ue(e,gs))throw new e4("Object already initialized");return t.facade=e,Fr(e,gs,t),t},Yf=function(e){return Ue(e,gs)?e[gs]:{}},dv=function(e){return Ue(e,gs)}}var zi,mS,yS,Yl={set:fv,get:Yf,has:dv,enforce:function(e){return dv(e)?Yf(e):fv(e,{})},getterFor:function(e){return function(t){var r;if(!wn(t)||(r=Yf(t)).type!==e)throw e4("Incompatible receiver, "+e+" required");return r}}},tj=Function.prototype,EH=zr&&Object.getOwnPropertyDescriptor,bS=Ue(tj,"name"),DH={PROPER:bS&&(function(){}).name==="something",CONFIGURABLE:bS&&(!zr||zr&&EH(tj,"name").configurable)},pv=function(e,t,r,n){Fr(e,t,r)},t4=Or("iterator"),rj=!1;[].keys&&("next"in(yS=[].keys())?(mS=uv(uv(yS)))!==Object.prototype&&(zi=mS):rj=!0);var CH=zi==null||Vr(function(){var e={};return zi[t4].call(e)!==e});zi=CH?{}:ni(zi),dr(zi[t4])||pv(zi,t4,function(){return this});var nj={IteratorPrototype:zi,BUGGY_SAFARI_ITERATORS:rj},SH=M3?{}.toString:function(){return"[object "+Dp(this)+"]"},xH=xa.f,wS=Or("toStringTag"),hv=function(e,t,r,n){if(e){var o=r?e:e.prototype;Ue(o,wS)||xH(o,wS,{configurable:!0,value:t}),n&&!M3&&Fr(o,"toString",SH)}},AH=nj.IteratorPrototype,OH=function(){return this},BH=DH.PROPER,ky=nj.BUGGY_SAFARI_ITERATORS,kH=Or("iterator"),FH=function(){return this},oj=function(e,t,r,n,o,i,a){(function(g,y,h,b){var w=y+" Iterator";g.prototype=ni(AH,{next:Vn(1,h)}),hv(g,w,!1,!0),Qo[w]=OH})(r,t,n);var u,s,l=function(g){if(g===o&&v)return v;if(!ky&&g in d)return d[g];switch(g){case"keys":case"values":case"entries":return function(){return new r(this,g)}}return function(){return new r(this)}},c=t+" Iterator",f=!1,d=e.prototype,p=d[kH]||d["@@iterator"]||o&&d[o],v=!ky&&p||l(o),m=t=="Array"&&d.entries||p;return m&&(u=uv(m.call(new e)))!==Object.prototype&&u.next&&(hv(u,c,!0,!0),Qo[c]=FH),BH&&o=="values"&&p&&p.name!=="values"&&(f=!0,v=function(){return Qr(p,this)}),o&&(s={values:l("values"),keys:l("keys"),entries:l("entries")},a||Wo({target:t,proto:!0,forced:ky||f},s)),Qo[t]=v,s},TH=Yl.set,_H=Yl.getterFor("Array Iterator");oj(Array,"Array",function(e,t){TH(this,{type:"Array Iterator",target:To(e),index:0,kind:t})},function(){var e=_H(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,{value:void 0,done:!0}):r=="keys"?{value:n,done:!1}:r=="values"?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}},"values"),Qo.Arguments=Qo.Array;var jH=pt("".charAt),ES=pt("".charCodeAt),PH=pt("".slice),NH=function(e){return function(t,r){var n,o,i=Ed(_3(t)),a=I3(r),u=i.length;return a<0||a>=u?e?"":void 0:(n=ES(i,a))<55296||n>56319||a+1===u||(o=ES(i,a+1))<56320||o>57343?e?jH(i,a):n:e?PH(i,a,a+2):o-56320+(n-55296<<10)+65536}},IH={charAt:NH(!0)}.charAt,RH=Yl.set,LH=Yl.getterFor("String Iterator");oj(String,"String",function(e){RH(this,{type:"String Iterator",string:Ed(e),index:0})},function(){var e,t=LH(this),r=t.string,n=t.index;return n>=r.length?{value:void 0,done:!0}:(e=IH(r,n),t.index+=e.length,{value:e,done:!1})});var MH=Jr.AggregateError,DS=Or("toStringTag");for(var Fy 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 CS=Be[Fy],Ty=CS&&CS.prototype;Ty&&Dp(Ty)!==DS&&Fr(Ty,DS,Fy),Qo[Fy]=Qo.Array}var yi,Bg,zH=MH,wh=function(e){return e&&e.Math==Math&&e},Ee=wh(typeof globalThis=="object"&&globalThis)||wh(typeof window=="object"&&window)||wh(typeof self=="object"&&self)||wh(typeof at=="object"&&at)||function(){return this}()||Function("return this")(),ur=function(e){try{return!!e()}catch{return!0}},So=!ur(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),wc=Function.prototype.call,fr=wc.bind?wc.bind(wc):function(){return wc.apply(wc,arguments)},SS={}.propertyIsEnumerable,xS=Object.getOwnPropertyDescriptor,$H=xS&&!SS.call({1:2},1)?function(e){var t=xS(this,e);return!!t&&t.enumerable}:SS,HH={f:$H},qi=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},ij=Function.prototype,r4=ij.bind,n4=ij.call,UH=r4&&r4.bind(n4),rt=r4?function(e){return e&&UH(n4,e)}:function(e){return e&&function(){return n4.apply(e,arguments)}},VH=rt({}.toString),WH=rt("".slice),hu=function(e){return WH(VH(e),8,-1)},_y=Ee.Object,GH=rt("".split),aj=ur(function(){return!_y("z").propertyIsEnumerable(0)})?function(e){return hu(e)=="String"?GH(e,""):_y(e)}:_y,qH=Ee.TypeError,mm=function(e){if(e==null)throw qH("Can't call method on "+e);return e},Jl=function(e){return aj(mm(e))},er=function(e){return typeof e=="function"},ho=function(e){return typeof e=="object"?e!==null:er(e)},KH=function(e){return er(e)?e:void 0},Cp=function(e,t){return arguments.length<2?KH(Ee[e]):Ee[e]&&Ee[e][t]},gv=rt({}.isPrototypeOf),jy=Cp("navigator","userAgent")||"",AS=Ee.process,OS=Ee.Deno,BS=AS&&AS.versions||OS&&OS.version,kS=BS&&BS.v8;kS&&(Bg=(yi=kS.split("."))[0]>0&&yi[0]<4?1:+(yi[0]+yi[1])),!Bg&&jy&&(!(yi=jy.match(/Edge\/(\d+)/))||yi[1]>=74)&&(yi=jy.match(/Chrome\/(\d+)/))&&(Bg=+yi[1]);var FS=Bg,o4=!!Object.getOwnPropertySymbols&&!ur(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&FS&&FS<41}),z3=o4&&!Symbol.sham&&typeof Symbol.iterator=="symbol",XH=Ee.Object,i4=z3?function(e){return typeof e=="symbol"}:function(e){var t=Cp("Symbol");return er(t)&&gv(t.prototype,XH(e))},YH=Ee.String,a4=function(e){try{return YH(e)}catch{return"Object"}},JH=Ee.TypeError,$3=function(e){if(er(e))return e;throw JH(a4(e)+" is not a function")},Cd=function(e,t){var r=e[t];return r==null?void 0:$3(r)},ZH=Ee.TypeError,QH=Object.defineProperty,H3=function(e,t){try{QH(Ee,e,{value:t,configurable:!0,writable:!0})}catch{Ee[e]=t}return t},Ki=Ee["__core-js_shared__"]||H3("__core-js_shared__",{}),U3=Zu(function(e){(e.exports=function(t,r){return Ki[t]||(Ki[t]=r!==void 0?r:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),eU=Ee.Object,V3=function(e){return eU(mm(e))},tU=rt({}.hasOwnProperty),$r=Object.hasOwn||function(e,t){return tU(V3(e),t)},rU=0,nU=Math.random(),oU=rt(1 .toString),uj=function(e){return"Symbol("+(e===void 0?"":e)+")_"+oU(++rU+nU,36)},Ec=U3("wks"),gu=Ee.Symbol,TS=gu&&gu.for,iU=z3?gu:gu&&gu.withoutSetter||uj,jr=function(e){if(!$r(Ec,e)||!o4&&typeof Ec[e]!="string"){var t="Symbol."+e;o4&&$r(gu,e)?Ec[e]=gu[e]:Ec[e]=z3&&TS?TS(t):iU(t)}return Ec[e]},aU=Ee.TypeError,uU=jr("toPrimitive"),sU=function(e,t){if(!ho(e)||i4(e))return e;var r,n=Cd(e,uU);if(n){if(r=fr(n,e,t),!ho(r)||i4(r))return r;throw aU("Can't convert object to primitive value")}return function(o,i){var a,u;if(er(a=o.toString)&&!ho(u=fr(a,o))||er(a=o.valueOf)&&!ho(u=fr(a,o))||i!=="string")return u;throw ZH("Can't convert object to primitive value")}(e,t)},W3=function(e){var t=sU(e,"string");return i4(t)?t:t+""},u4=Ee.document,lU=ho(u4)&&ho(u4.createElement),G3=function(e){return lU?u4.createElement(e):{}},sj=!So&&!ur(function(){return Object.defineProperty(G3("div"),"a",{get:function(){return 7}}).a!=7}),_S=Object.getOwnPropertyDescriptor,cU=So?_S:function(e,t){if(e=Jl(e),t=W3(t),sj)try{return _S(e,t)}catch{}if($r(e,t))return qi(!fr(HH.f,e,t),e[t])},q3={f:cU},fU=Ee.String,dU=Ee.TypeError,nn=function(e){if(ho(e))return e;throw dU(fU(e)+" is not an object")},pU=Ee.TypeError,jS=Object.defineProperty,hU=So?jS:function(e,t,r){if(nn(e),t=W3(t),nn(r),sj)try{return jS(e,t,r)}catch{}if("get"in r||"set"in r)throw pU("Accessors not supported");return"value"in r&&(e[t]=r.value),e},Zl={f:hU},Lr=So?function(e,t,r){return Zl.f(e,t,qi(1,r))}:function(e,t,r){return e[t]=r,e},gU=rt(Function.toString);er(Ki.inspectSource)||(Ki.inspectSource=function(e){return gU(e)});var vv,Jf,mv,K3=Ki.inspectSource,PS=Ee.WeakMap,vU=er(PS)&&/native code/.test(K3(PS)),NS=U3("keys"),X3=function(e){return NS[e]||(NS[e]=uj(e))},Y3={},s4=Ee.TypeError,mU=Ee.WeakMap;if(vU||Ki.state){var La=Ki.state||(Ki.state=new mU),yU=rt(La.get),IS=rt(La.has),bU=rt(La.set);vv=function(e,t){if(IS(La,e))throw new s4("Object already initialized");return t.facade=e,bU(La,e,t),t},Jf=function(e){return yU(La,e)||{}},mv=function(e){return IS(La,e)}}else{var vs=X3("state");Y3[vs]=!0,vv=function(e,t){if($r(e,vs))throw new s4("Object already initialized");return t.facade=e,Lr(e,vs,t),t},Jf=function(e){return $r(e,vs)?e[vs]:{}},mv=function(e){return $r(e,vs)}}var Iu={set:vv,get:Jf,has:mv,enforce:function(e){return mv(e)?Jf(e):vv(e,{})},getterFor:function(e){return function(t){var r;if(!ho(t)||(r=Jf(t)).type!==e)throw s4("Incompatible receiver, "+e+" required");return r}}},lj=Function.prototype,wU=So&&Object.getOwnPropertyDescriptor,RS=$r(lj,"name"),J3={PROPER:RS&&(function(){}).name==="something",CONFIGURABLE:RS&&(!So||So&&wU(lj,"name").configurable)},Ru=Zu(function(e){var t=J3.CONFIGURABLE,r=Iu.get,n=Iu.enforce,o=String(String).split("String");(e.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;er(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!$r(u,"name")||t&&u.name!==p)&&Lr(u,"name",p),(l=n(u)).source||(l.source=o.join(typeof p=="string"?p:""))),i!==Ee?(c?!d&&i[a]&&(f=!0):delete i[a],f?i[a]=u:Lr(i,a,u)):f?i[a]=u:H3(a,u)})(Function.prototype,"toString",function(){return er(this)&&r(this).source||K3(this)})}),EU=Math.ceil,DU=Math.floor,Z3=function(e){var t=+e;return t!=t||t===0?0:(t>0?DU:EU)(t)},CU=Math.max,SU=Math.min,l4=function(e,t){var r=Z3(e);return r<0?CU(r+t,0):SU(r,t)},xU=Math.min,cj=function(e){return e>0?xU(Z3(e),9007199254740991):0},ym=function(e){return cj(e.length)},AU=function(e){return function(t,r,n){var o,i=Jl(t),a=ym(i),u=l4(n,a);if(e&&r!=r){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===r)return e||u||0;return!e&&-1}},OU={indexOf:AU(!1)}.indexOf,LS=rt([].push),fj=function(e,t){var r,n=Jl(e),o=0,i=[];for(r in n)!$r(Y3,r)&&$r(n,r)&&LS(i,r);for(;t.length>o;)$r(n,r=t[o++])&&(~OU(i,r)||LS(i,r));return i},yv=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],BU=yv.concat("length","prototype"),kU=Object.getOwnPropertyNames||function(e){return fj(e,BU)},FU={f:kU},TU={f:Object.getOwnPropertySymbols},_U=rt([].concat),jU=Cp("Reflect","ownKeys")||function(e){var t=FU.f(nn(e)),r=TU.f;return r?_U(t,r(e)):t},dj=function(e,t){for(var r=jU(t),n=Zl.f,o=q3.f,i=0;i<r.length;i++){var a=r[i];$r(e,a)||n(e,a,o(t,a))}},PU=/#|\.prototype\./,Sp=function(e,t){var r=IU[NU(e)];return r==LU||r!=RU&&(er(t)?ur(t):!!t)},NU=Sp.normalize=function(e){return String(e).replace(PU,".").toLowerCase()},IU=Sp.data={},RU=Sp.NATIVE="N",LU=Sp.POLYFILL="P",MU=Sp,zU=q3.f,xp=function(e,t){var r,n,o,i,a,u=e.target,s=e.global,l=e.stat;if(r=s?Ee:l?Ee[u]||H3(u,{}):(Ee[u]||{}).prototype)for(n in t){if(i=t[n],o=e.noTargetGet?(a=zU(r,n))&&a.value:r[n],!MU(s?n:u+(l?".":"#")+n,e.forced)&&o!==void 0){if(typeof i==typeof o)continue;dj(i,o)}(e.sham||o&&o.sham)&&Lr(i,"sham",!0),Ru(r,n,i,e)}},pj={};pj[jr("toStringTag")]="z";var Eh,Q3=String(pj)==="[object z]",$U=jr("toStringTag"),HU=Ee.Object,UU=hu(function(){return arguments}())=="Arguments",bm=Q3?hu:function(e){var t,r,n;return e===void 0?"Undefined":e===null?"Null":typeof(r=function(o,i){try{return o[i]}catch{}}(t=HU(e),$U))=="string"?r:UU?hu(t):(n=hu(t))=="Object"&&er(t.callee)?"Arguments":n},VU=Ee.String,vu=function(e){if(bm(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return VU(e)},WU=function(){var e=nn(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},e5=Ee.RegExp,hj=ur(function(){var e=e5("a","y");return e.lastIndex=2,e.exec("abcd")!=null});hj||ur(function(){return!e5("a","y").sticky});var GU=hj||ur(function(){var e=e5("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),qU={BROKEN_CARET:GU},KU=Object.keys||function(e){return fj(e,yv)},XU=So?Object.defineProperties:function(e,t){nn(e);for(var r,n=Jl(t),o=KU(t),i=o.length,a=0;i>a;)Zl.f(e,r=o[a++],n[r]);return e},YU=Cp("document","documentElement"),gj=X3("IE_PROTO"),Py=function(){},vj=function(e){return"<script>"+e+"<\/script>"},MS=function(e){e.write(vj("")),e.close();var t=e.parentWindow.Object;return e=null,t},kg=function(){try{Eh=new ActiveXObject("htmlfile")}catch{}var e,t;kg=typeof document<"u"?document.domain&&Eh?MS(Eh):((t=G3("iframe")).style.display="none",YU.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(vj("document.F=Object")),e.close(),e.F):MS(Eh);for(var r=yv.length;r--;)delete kg.prototype[yv[r]];return kg()};Y3[gj]=!0;var zS,Ny,Ap=Object.create||function(e,t){var r;return e!==null?(Py.prototype=nn(e),r=new Py,Py.prototype=null,r[gj]=e):r=kg(),t===void 0?r:XU(r,t)},JU=Ee.RegExp,ZU=ur(function(){var e=JU(".","s");return!(e.dotAll&&e.exec(`
- `)&&e.flags==="s")}),QU=Ee.RegExp,eV=ur(function(){var e=QU("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),tV=Iu.get,rV=U3("native-string-replace",String.prototype.replace),bv=RegExp.prototype.exec,c4=bv,nV=rt("".charAt),oV=rt("".indexOf),iV=rt("".replace),Iy=rt("".slice),Ry=(Ny=/b*/g,fr(bv,zS=/a/,"a"),fr(bv,Ny,"a"),zS.lastIndex!==0||Ny.lastIndex!==0),$S=qU.BROKEN_CARET,Ly=/()??/.exec("")[1]!==void 0;(Ry||Ly||$S||ZU||eV)&&(c4=function(e){var t,r,n,o,i,a,u,s=this,l=tV(s),c=vu(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=fr(c4,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=$S&&s.sticky,v=fr(WU,s),m=s.source,g=0,y=c;if(p&&(v=iV(v,"y",""),oV(v,"g")===-1&&(v+="g"),y=Iy(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&nV(c,s.lastIndex-1)!==`
- `)&&(m="(?: "+m+")",y=" "+y,g++),r=new RegExp("^(?:"+m+")",v)),Ly&&(r=new RegExp("^"+m+"$(?!\\s)",v)),Ry&&(n=s.lastIndex),o=fr(bv,p?r:s,y),p?o?(o.input=Iy(o.input,g),o[0]=Iy(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:Ry&&o&&(s.lastIndex=s.global?o.index+o[0].length:n),Ly&&o&&o.length>1&&fr(rV,o[0],r,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&d)for(o.groups=a=Ap(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var wv=c4;xp({target:"RegExp",proto:!0,forced:/./.exec!==wv},{exec:wv});var aV=jr("species"),HS=RegExp.prototype,uV=rt("".charAt),US=rt("".charCodeAt),sV=rt("".slice),lV=function(e){return function(t,r){var n,o,i=vu(mm(t)),a=Z3(r),u=i.length;return a<0||a>=u?e?"":void 0:(n=US(i,a))<55296||n>56319||a+1===u||(o=US(i,a+1))<56320||o>57343?e?uV(i,a):n:e?sV(i,a,a+2):o-56320+(n-55296<<10)+65536}},mj={charAt:lV(!0)},cV=mj.charAt,fV=function(e,t,r){return t+(r?cV(e,t).length:1)},dV=Ee.TypeError,VS=function(e,t){var r=e.exec;if(er(r)){var n=fr(r,e,t);return n!==null&&nn(n),n}if(hu(e)==="RegExp")return fr(wv,e,t);throw dV("RegExp#exec called on incompatible receiver")};(function(e,t,r,n){var o=jr(e),i=!ur(function(){var l={};return l[o]=function(){return 7},""[e](l)!=7}),a=i&&!ur(function(){var l=!1,c=/a/;return e==="split"&&((c={}).constructor={},c.constructor[aV]=function(){return c},c.flags="",c[o]=/./[o]),c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||r){var u=rt(/./[o]),s=t(o,""[e],function(l,c,f,d,p){var v=rt(l),m=c.exec;return m===wv||m===HS.exec?i&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:v(f,c,d)}:{done:!1}});Ru(String.prototype,e,s[0]),Ru(HS,o,s[1])}})("match",function(e,t,r){return[function(n){var o=mm(this),i=n==null?void 0:Cd(n,e);return i?fr(i,n,o):new RegExp(n)[e](vu(o))},function(n){var o=nn(this),i=vu(n),a=r(t,o,i);if(a.done)return a.value;if(!o.global)return VS(o,i);var u=o.unicode;o.lastIndex=0;for(var s,l=[],c=0;(s=VS(o,i))!==null;){var f=vu(s[0]);l[c]=f,f===""&&(o.lastIndex=fV(i,cj(o.lastIndex),u)),c++}return c===0?null:l}]}),xp({global:!0},{globalThis:Ee});var pV=!ur(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),WS=X3("IE_PROTO"),f4=Ee.Object,hV=f4.prototype,Sd=pV?f4.getPrototypeOf:function(e){var t=V3(e);if($r(t,WS))return t[WS];var r=t.constructor;return er(r)&&t instanceof r?r.prototype:t instanceof f4?hV:null},gV=Ee.String,vV=Ee.TypeError,bl=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=rt(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),t=r instanceof Array}catch{}return function(n,o){return nn(n),function(i){if(typeof i=="object"||er(i))return i;throw vV("Can't set "+gV(i)+" as a prototype")}(o),t?e(n,o):n.__proto__=o,n}}():void 0),mV=Ee.Array,yV=Math.max,bV=rt("".replace),wV=rt("".split),EV=rt([].join),d4=String(Error("zxcasd").stack),yj=/\n\s*at [^:]*:[^\n]*/,DV=yj.test(d4),CV=/@[^\n]*\n/.test(d4)&&!/zxcasd/.test(d4),SV=function(e,t){if(typeof e!="string")return e;if(DV)for(;t--;)e=bV(e,yj,"");else if(CV)return EV(function(r,n,o){for(var i,a,u,s,l=ym(r),c=l4(n,l),f=l4(l,l),d=mV(yV(f-c,0)),p=0;c<f;c++,p++)i=d,a=p,u=r[c],s=void 0,(s=W3(a))in i?Zl.f(i,s,qi(0,u)):i[s]=u;return d.length=p,d}(wV(e,`
- `),t),`
- `);return e},xV=function(e,t){ho(t)&&"cause"in t&&Lr(e,"cause",t.cause)},GS=rt(rt.bind),bj=function(e,t){return $3(e),t===void 0?e:GS?GS(e,t):function(){return e.apply(t,arguments)}},wl={},AV=jr("iterator"),OV=Array.prototype,BV=jr("iterator"),qS=function(e){if(e!=null)return Cd(e,BV)||Cd(e,"@@iterator")||wl[bm(e)]},kV=Ee.TypeError,KS=function(e,t,r){var n,o;nn(e);try{if(!(n=Cd(e,"return"))){if(t==="throw")throw r;return r}n=fr(n,e)}catch(i){o=!0,n=i}if(t==="throw")throw r;if(o)throw n;return nn(n),r},FV=Ee.TypeError,Fg=function(e,t){this.stopped=e,this.result=t},XS=Fg.prototype,TV=function(e,t,r){var n,o,i,a,u,s,l,c=r&&r.that,f=!(!r||!r.AS_ENTRIES),d=!(!r||!r.IS_ITERATOR),p=!(!r||!r.INTERRUPTED),v=bj(t,c),m=function(y){return n&&KS(n,"normal",y),new Fg(!0,y)},g=function(y){return f?(nn(y),p?v(y[0],y[1],m):v(y[0],y[1])):p?v(y,m):v(y)};if(d)n=e;else{if(!(o=qS(e)))throw FV(a4(e)+" is not iterable");if(function(y){return y!==void 0&&(wl.Array===y||OV[AV]===y)}(o)){for(i=0,a=ym(e);a>i;i++)if((u=g(e[i]))&&gv(XS,u))return u;return new Fg(!1)}n=function(y,h){var b=arguments.length<2?qS(y):h;if($3(b))return nn(fr(b,y));throw kV(a4(y)+" is not iterable")}(e,o)}for(s=n.next;!(l=fr(s,n)).done;){try{u=g(l.value)}catch(y){KS(n,"throw",y)}if(typeof u=="object"&&u&&gv(XS,u))return u}return new Fg(!1)},_V=function(e,t){return e===void 0?arguments.length<2?"":t:vu(e)},jV=!ur(function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",qi(1,7)),e.stack!==7)}),PV=jr("toStringTag"),Ev=Ee.Error,NV=[].push,xd=function(e,t){var r,n=arguments.length>2?arguments[2]:void 0,o=gv(My,this);bl?r=bl(new Ev(void 0),o?Sd(this):My):(r=o?this:Ap(My),Lr(r,PV,"Error")),Lr(r,"message",_V(t,"")),jV&&Lr(r,"stack",SV(r.stack,1)),xV(r,n);var i=[];return TV(e,NV,{that:i}),Lr(r,"errors",i),r};bl?bl(xd,Ev):dj(xd,Ev);var My=xd.prototype=Ap(Ev.prototype,{constructor:qi(1,xd),message:qi(1,""),name:qi(1,"AggregateError")});xp({global:!0},{AggregateError:xd});var p4=jr("unscopables"),h4=Array.prototype;h4[p4]==null&&Zl.f(h4,p4,{configurable:!0,value:Ap(null)});var mu,YS,JS,zy=function(e){h4[p4][e]=!0},g4=jr("iterator"),wj=!1;[].keys&&("next"in(JS=[].keys())?(YS=Sd(Sd(JS)))!==Object.prototype&&(mu=YS):wj=!0);var IV=mu==null||ur(function(){var e={};return mu[g4].call(e)!==e});IV&&(mu={}),er(mu[g4])||Ru(mu,g4,function(){return this});var t5={IteratorPrototype:mu,BUGGY_SAFARI_ITERATORS:wj},RV=Zl.f,ZS=jr("toStringTag"),QS=function(e,t,r){e&&!$r(e=r?e:e.prototype,ZS)&&RV(e,ZS,{configurable:!0,value:t})},LV=t5.IteratorPrototype,MV=function(){return this},zV=J3.PROPER,$V=J3.CONFIGURABLE,ex=t5.IteratorPrototype,$y=t5.BUGGY_SAFARI_ITERATORS,Dc=jr("iterator"),HV=function(){return this},Ej=function(e,t,r,n,o,i,a){(function(g,y,h,b){var w=y+" Iterator";g.prototype=Ap(LV,{next:qi(1,h)}),QS(g,w,!1),wl[w]=MV})(r,t,n);var u,s,l=function(g){if(g===o&&v)return v;if(!$y&&g in d)return d[g];switch(g){case"keys":case"values":case"entries":return function(){return new r(this,g)}}return function(){return new r(this)}},c=t+" Iterator",f=!1,d=e.prototype,p=d[Dc]||d["@@iterator"]||o&&d[o],v=!$y&&p||l(o),m=t=="Array"&&d.entries||p;return m&&(u=Sd(m.call(new e)))!==Object.prototype&&u.next&&(Sd(u)!==ex&&(bl?bl(u,ex):er(u[Dc])||Ru(u,Dc,HV)),QS(u,c,!0)),zV&&o=="values"&&p&&p.name!=="values"&&($V?Lr(d,"name","values"):(f=!0,v=function(){return fr(p,this)})),o&&(s={values:l("values"),keys:l("keys"),entries:l("entries")},a||xp({target:t,proto:!0,forced:$y||f},s)),d[Dc]!==v&&Ru(d,Dc,v,{name:o}),wl[t]=v,s},UV=Iu.set,VV=Iu.getterFor("Array Iterator"),zf=Ej(Array,"Array",function(e,t){UV(this,{type:"Array Iterator",target:Jl(e),index:0,kind:t})},function(){var e=VV(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,{value:void 0,done:!0}):r=="keys"?{value:n,done:!1}:r=="values"?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}},"values");wl.Arguments=wl.Array,zy("keys"),zy("values"),zy("entries");var WV=mj.charAt,GV=Iu.set,qV=Iu.getterFor("String Iterator");Ej(String,"String",function(e){GV(this,{type:"String Iterator",string:vu(e),index:0})},function(){var e,t=qV(this),r=t.string,n=t.index;return n>=r.length?{value:void 0,done:!0}:(e=WV(r,n),t.index+=e.length,{value:e,done:!1})});var Hy,Dv={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Uy=G3("span").classList,tx=Uy&&Uy.constructor&&Uy.constructor.prototype,Dj=tx===Object.prototype?void 0:tx,Vy=jr("iterator"),rx=jr("toStringTag"),Wy=zf.values,Cj=function(e,t){if(e){if(e[Vy]!==Wy)try{Lr(e,Vy,Wy)}catch{e[Vy]=Wy}if(e[rx]||Lr(e,rx,t),Dv[t]){for(var r in zf)if(e[r]!==zf[r])try{Lr(e,r,zf[r])}catch{e[r]=zf[r]}}}};for(var Gy in Dv)Cj(Ee[Gy]&&Ee[Gy].prototype,Gy);Cj(Dj,"DOMTokenList"),(typeof global>"u"||global&&!((Hy=global.navigator)===null||Hy===void 0)&&Hy.userAgent.match("QQBrowser"))&&(KV(),XV());function KV(){typeof globalThis>"u"&&(window.globalThis=window)}function XV(){zH===void 0&&(window.AggregateError=function(e,t){var r=new Error(t);return r.errors=e,r})}var nx,Cv=Array.isArray||function(e){return du(e)=="Array"},Sj=function(){},YV=[],xj=Kl("Reflect","construct"),r5=/^\s*(?:class|function)\b/,JV=pt(r5.exec),ZV=!r5.exec(Sj),Cc=function(e){if(!dr(e))return!1;try{return xj(Sj,YV,e),!0}catch{return!1}},QV=!xj||Vr(function(){var e;return Cc(Cc.call)||!Cc(Object)||!Cc(function(){e=!0})||e})?function(e){if(!dr(e))return!1;switch(Dp(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return ZV||!!JV(r5,ej(e))}:Cc,eW=Or("species"),ox=Be.Array,Aj=function(e,t){return new(function(r){var n;return Cv(r)&&(n=r.constructor,(QV(n)&&(n===ox||Cv(n.prototype))||wn(n)&&(n=n[eW])===null)&&(n=void 0)),n===void 0?ox:n}(e))(t===0?0:t)},tW=Or("species"),Oj=Or("isConcatSpreadable"),ix=Be.TypeError,rW=ov>=51||!Vr(function(){var e=[];return e[Oj]=!1,e.concat()[0]!==e}),nW=(nx="concat",ov>=51||!Vr(function(){var e=[];return(e.constructor={})[tW]=function(){return{foo:1}},e[nx](Boolean).foo!==1})),oW=function(e){if(!wn(e))return!1;var t=e[Oj];return t!==void 0?!!t:Cv(e)};Wo({target:"Array",proto:!0,forced:!rW||!nW},{concat:function(e){var t,r,n,o,i,a=yp(this),u=Aj(a,0),s=0;for(t=-1,n=arguments.length;t<n;t++)if(oW(i=t===-1?a:arguments[t])){if(s+(o=wp(i))>9007199254740991)throw ix("Maximum allowed index exceeded");for(r=0;r<o;r++,s++)r in i&&Zw(u,s,i[r])}else{if(s>=9007199254740991)throw ix("Maximum allowed index exceeded");Zw(u,s++,i)}return u.length=s,u}});var ax=R3.f,ux=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Bj={f:function(e){return ux&&du(e)=="Window"?function(t){try{return ax(t)}catch{return J_(ux)}}(e):ax(To(e))}},iW=pt([].slice),n5={f:Or},aW=xa.f,jt=function(e){var t=Jr.Symbol||(Jr.Symbol={});Ue(t,e)||aW(t,e,{value:n5.f(e)})},sx=pt([].push),uW=function(e){var t=e==1,r=e==2,n=e==3,o=e==4,i=e==6,a=e==7,u=e==5||i;return function(s,l,c,f){for(var d,p,v=yp(s),m=W_(v),g=N3(l,c),y=wp(m),h=0,b=f||Aj,w=t?b(s,y):r||a?b(s,0):void 0;y>h;h++)if((u||h in m)&&(p=g(d=m[h],h,v),e))if(t)w[h]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return h;case 2:sx(w,d)}else switch(e){case 4:return!1;case 7:sx(w,d)}return i?-1:n||o?o:w}},wm={forEach:uW(0)}.forEach,Ir=vm("hidden"),lx=Or("toPrimitive"),sW=Yl.set,cx=Yl.getterFor("Symbol"),$n=Object.prototype,Ii=Be.Symbol,$i=Ii&&Ii.prototype,fx=Be.TypeError,qy=Be.QObject,Sc=Kl("JSON","stringify"),kj=gm.f,Ri=xa.f,Fj=Bj.f,lW=T3.f,Tj=pt([].push),oi=Qu("symbols"),Op=Qu("op-symbols"),Ky=Qu("string-to-symbol-registry"),Xy=Qu("symbol-to-string-registry"),cW=Qu("wks"),Yy=!qy||!qy.prototype||!qy.prototype.findChild,v4=zr&&Vr(function(){return ni(Ri({},"a",{get:function(){return Ri(this,"a",{value:7}).a}})).a!=7})?function(e,t,r){var n=kj($n,t);n&&delete $n[t],Ri(e,t,r),n&&e!==$n&&Ri($n,t,n)}:Ri,Jy=function(e,t){var r=oi[e]=ni($i);return sW(r,{type:"Symbol",tag:e,description:t}),zr||(r.description=t),r},Sv=function(e,t,r){e===$n&&Sv(Op,t,r),rn(e);var n=Xl(t);return rn(r),Ue(oi,n)?(r.enumerable?(Ue(e,Ir)&&e[Ir][n]&&(e[Ir][n]=!1),r=ni(r,{enumerable:Vn(0,!1)})):(Ue(e,Ir)||Ri(e,Ir,Vn(1,{})),e[Ir][n]=!0),v4(e,n,r)):Ri(e,n,r)},dx=function(e,t){rn(e);var r=To(t),n=L3(r).concat(m4(r));return wm(n,function(o){zr&&!Qr(_j,r,o)||Sv(e,o,r[o])}),e},_j=function(e){var t=Xl(e),r=Qr(lW,this,t);return!(this===$n&&Ue(oi,t)&&!Ue(Op,t))&&(!(r||!Ue(this,t)||!Ue(oi,t)||Ue(this,Ir)&&this[Ir][t])||r)},px=function(e,t){var r=To(e),n=Xl(t);if(r!==$n||!Ue(oi,n)||Ue(Op,n)){var o=kj(r,n);return!o||!Ue(oi,n)||Ue(r,Ir)&&r[Ir][n]||(o.enumerable=!0),o}},hx=function(e){var t=Fj(To(e)),r=[];return wm(t,function(n){Ue(oi,n)||Ue(Ep,n)||Tj(r,n)}),r},m4=function(e){var t=e===$n,r=Fj(t?Op:To(e)),n=[];return wm(r,function(o){!Ue(oi,o)||t&&!Ue($n,o)||Tj(n,oi[o])}),n};if(uo||($i=(Ii=function(){if(wd($i,this))throw fx("Symbol is not a constructor");var e=arguments.length&&arguments[0]!==void 0?Ed(arguments[0]):void 0,t=av(e),r=function(n){this===$n&&Qr(r,Op,n),Ue(this,Ir)&&Ue(this[Ir],t)&&(this[Ir][t]=!1),v4(this,t,Vn(1,n))};return zr&&Yy&&v4($n,t,{configurable:!0,set:r}),Jy(t,e)}).prototype,pv($i,"toString",function(){return cx(this).tag}),pv(Ii,"withoutSetter",function(e){return Jy(av(e),e)}),T3.f=_j,xa.f=Sv,gm.f=px,R3.f=Bj.f=hx,xg.f=m4,n5.f=function(e){return Jy(Or(e),e)},zr&&Ri($i,"description",{configurable:!0,get:function(){return cx(this).description}})),Wo({global:!0,wrap:!0,forced:!uo,sham:!uo},{Symbol:Ii}),wm(L3(cW),function(e){jt(e)}),Wo({target:"Symbol",stat:!0,forced:!uo},{for:function(e){var t=Ed(e);if(Ue(Ky,t))return Ky[t];var r=Ii(t);return Ky[t]=r,Xy[r]=t,r},keyFor:function(e){if(!al(e))throw fx(e+" is not a symbol");if(Ue(Xy,e))return Xy[e]},useSetter:function(){Yy=!0},useSimple:function(){Yy=!1}}),Wo({target:"Object",stat:!0,forced:!uo,sham:!zr},{create:function(e,t){return t===void 0?ni(e):dx(ni(e),t)},defineProperty:Sv,defineProperties:dx,getOwnPropertyDescriptor:px}),Wo({target:"Object",stat:!0,forced:!uo},{getOwnPropertyNames:hx,getOwnPropertySymbols:m4}),Wo({target:"Object",stat:!0,forced:Vr(function(){xg.f(1)})},{getOwnPropertySymbols:function(e){return xg.f(yp(e))}}),Sc){var fW=!uo||Vr(function(){var e=Ii();return Sc([e])!="[null]"||Sc({a:e})!="{}"||Sc(Object(e))!="{}"});Wo({target:"JSON",stat:!0,forced:fW},{stringify:function(e,t,r){var n=iW(arguments),o=t;if((wn(t)||e!==void 0)&&!al(e))return Cv(t)||(t=function(i,a){if(dr(o)&&(a=Qr(o,this,i,a)),!al(a))return a}),n[1]=t,U_(Sc,null,n)}})}if(!$i[lx]){var dW=$i.valueOf;pv($i,lx,function(e){return Qr(dW,this)})}hv(Ii,"Symbol"),Ep[Ir]=!0,jt("asyncIterator"),jt("hasInstance"),jt("isConcatSpreadable"),jt("iterator"),jt("match"),jt("matchAll"),jt("replace"),jt("search"),jt("species"),jt("split"),jt("toPrimitive"),jt("toStringTag"),jt("unscopables"),hv(Be.JSON,"JSON",!0);var pW=Jr.Symbol;jt("asyncDispose"),jt("dispose"),jt("matcher"),jt("metadata"),jt("observable"),jt("patternMatch"),jt("replaceAll");var Dh=pW,hW=n5.f("iterator"),gW=Zu(function(e){function t(r){return typeof Dh=="function"&&typeof hW=="symbol"?(e.exports=t=function(n){return typeof n},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=t=function(n){return n&&typeof Dh=="function"&&n.constructor===Dh&&n!==Dh.prototype?"symbol":typeof n},e.exports.default=e.exports,e.exports.__esModule=!0),t(r)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0}),vW=qz(gW),jj=q3.f,mW=ur(function(){jj(1)});if(xp({target:"Object",stat:!0,forced:!So||mW,sham:!So},{getOwnPropertyDescriptor:function(e,t){return jj(Jl(e),t)}}),(typeof global>"u"?"undefined":vW(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(e){return nodeCrypto.randomFillSync(e)}}),global.document!=null&&global.document.getElementsByTagName==null&&(global.document.getElementsByTagName=function(){return[]})}/*!
- * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
- *
- * Copyright (c) 2014-2017, Jon Schlinkert.
- * Released under the MIT License.
- */function gx(e){return Object.prototype.toString.call(e)==="[object Object]"}function Er(e){var t,r;return gx(e)!==!1&&((t=e.constructor)===void 0||gx(r=t.prototype)!==!1&&r.hasOwnProperty("isPrototypeOf")!==!1)}function zn(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];throw Error("[Immer] minified error nr: "+e+(r.length?" "+r.map(function(o){return"'"+o+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Lu(e){return!!e&&!!e[on]}function Mu(e){return!!e&&(function(t){if(!t||typeof t!="object")return!1;var r=Object.getPrototypeOf(t);if(r===null)return!0;var n=Object.hasOwnProperty.call(r,"constructor")&&r.constructor;return n===Object||typeof n=="function"&&Function.toString.call(n)===SW}(e)||Array.isArray(e)||!!e[Cx]||!!e.constructor[Cx]||o5(e)||i5(e))}function Ad(e,t,r){r===void 0&&(r=!1),El(e)===0?(r?Object.keys:c5)(e).forEach(function(n){r&&typeof n=="symbol"||t(n,e[n],e)}):e.forEach(function(n,o){return t(o,n,e)})}function El(e){var t=e[on];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:o5(e)?2:i5(e)?3:0}function y4(e,t){return El(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Pj(e,t,r){var n=El(e);n===2?e.set(t,r):n===3?(e.delete(t),e.add(r)):e[t]=r}function o5(e){return DW&&e instanceof Map}function i5(e){return CW&&e instanceof Set}function Ya(e){return e.o||e.t}function a5(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=xW(e);delete t[on];for(var r=c5(t),n=0;n<r.length;n++){var o=r[n],i=t[o];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[o]})}return Object.create(Object.getPrototypeOf(e),t)}function u5(e,t){return t===void 0&&(t=!1),s5(e)||Lu(e)||!Mu(e)||(El(e)>1&&(e.set=e.add=e.clear=e.delete=bW),Object.freeze(e),t&&Ad(e,function(r,n){return u5(n,!0)},!0)),e}function bW(){zn(2)}function s5(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function ei(e){var t=AW[e];return t||zn(18,e),t}function vx(){return Od}function Zy(e,t){t&&(ei("Patches"),e.u=[],e.s=[],e.v=t)}function xv(e){b4(e),e.p.forEach(wW),e.p=null}function b4(e){e===Od&&(Od=e.l)}function mx(e){return Od={p:[],l:Od,h:e,m:!0,_:0}}function wW(e){var t=e[on];t.i===0||t.i===1?t.j():t.O=!0}function Qy(e,t){t._=t.p.length;var r=t.p[0],n=e!==void 0&&e!==r;return t.h.g||ei("ES5").S(t,e,n),n?(r[on].P&&(xv(t),zn(4)),Mu(e)&&(e=Av(t,e),t.l||Ov(t,e)),t.u&&ei("Patches").M(r[on],e,t.u,t.s)):e=Av(t,r,[]),xv(t),t.u&&t.v(t.u,t.s),e!==Nj?e:void 0}function Av(e,t,r){if(s5(t))return t;var n=t[on];if(!n)return Ad(t,function(i,a){return yx(e,n,t,i,a,r)},!0),t;if(n.A!==e)return t;if(!n.P)return Ov(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var o=n.i===4||n.i===5?n.o=a5(n.k):n.o;Ad(n.i===3?new Set(o):o,function(i,a){return yx(e,n,o,i,a,r)}),Ov(e,o,!1),r&&e.u&&ei("Patches").R(n,r,e.u,e.s)}return n.o}function yx(e,t,r,n,o,i){if(Lu(o)){var a=Av(e,o,i&&t&&t.i!==3&&!y4(t.D,n)?i.concat(n):void 0);if(Pj(r,n,a),!Lu(a))return;e.m=!1}if(Mu(o)&&!s5(o)){if(!e.h.F&&e._<1)return;Av(e,o),t&&t.A.l||Ov(e,o)}}function Ov(e,t,r){r===void 0&&(r=!1),e.h.F&&e.m&&u5(t,r)}function e1(e,t){var r=e[on];return(r?Ya(r):e)[t]}function bx(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function w4(e){e.P||(e.P=!0,e.l&&w4(e.l))}function t1(e){e.o||(e.o=a5(e.t))}function E4(e,t,r){var n=o5(t)?ei("MapSet").N(t,r):i5(t)?ei("MapSet").T(t,r):e.g?function(o,i){var a=Array.isArray(o),u={i:a?1:0,A:i?i.A:vx(),P:!1,I:!1,D:{},l:i,t:o,k:null,o:null,j:null,C:!1},s=u,l=Tg;a&&(s=[u],l=_g);var c=Proxy.revocable(s,l),f=c.revoke,d=c.proxy;return u.k=d,u.j=f,d}(t,r):ei("ES5").J(t,r);return(r?r.A:vx()).p.push(n),n}function EW(e){return Lu(e)||zn(22,e),function t(r){if(!Mu(r))return r;var n,o=r[on],i=El(r);if(o){if(!o.P&&(o.i<4||!ei("ES5").K(o)))return o.t;o.I=!0,n=wx(r,i),o.I=!1}else n=wx(r,i);return Ad(n,function(a,u){o&&function(s,l){return El(s)===2?s.get(l):s[l]}(o.t,a)===u||Pj(n,a,t(u))}),i===3?new Set(n):n}(e)}function wx(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return a5(e)}var Ex,Od,l5=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",DW=typeof Map<"u",CW=typeof Set<"u",Dx=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Nj=l5?Symbol.for("immer-nothing"):((Ex={})["immer-nothing"]=!0,Ex),Cx=l5?Symbol.for("immer-draftable"):"__$immer_draftable",on=l5?Symbol.for("immer-state"):"__$immer_state",SW=""+Object.prototype.constructor,c5=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,xW=Object.getOwnPropertyDescriptors||function(e){var t={};return c5(e).forEach(function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)}),t},AW={},Tg={get:function(e,t){if(t===on)return e;var r=Ya(e);if(!y4(r,t))return function(o,i,a){var u,s=bx(i,a);return s?"value"in s?s.value:(u=s.get)===null||u===void 0?void 0:u.call(o.k):void 0}(e,r,t);var n=r[t];return e.I||!Mu(n)?n:n===e1(e.t,t)?(t1(e),e.o[t]=E4(e.A.h,n,e)):n},has:function(e,t){return t in Ya(e)},ownKeys:function(e){return Reflect.ownKeys(Ya(e))},set:function(e,t,r){var n=bx(Ya(e),t);if(n!=null&&n.set)return n.set.call(e.k,r),!0;if(!e.P){var o=e1(Ya(e),t),i=o==null?void 0:o[on];if(i&&i.t===r)return e.o[t]=r,e.D[t]=!1,!0;if(function(a,u){return a===u?a!==0||1/a==1/u:a!=a&&u!=u}(r,o)&&(r!==void 0||y4(e.t,t)))return!0;t1(e),w4(e)}return e.o[t]===r&&typeof r!="number"&&(r!==void 0||t in e.o)||(e.o[t]=r,e.D[t]=!0,!0)},deleteProperty:function(e,t){return e1(e.t,t)!==void 0||t in e.t?(e.D[t]=!1,t1(e),w4(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var r=Ya(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty:function(){zn(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){zn(12)}},_g={};Ad(Tg,function(e,t){_g[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),_g.deleteProperty=function(e,t){return Tg.deleteProperty.call(this,e[0],t)},_g.set=function(e,t,r){return Tg.set.call(this,e[0],t,r,e[0])};var OW=function(){function e(r){var n=this;this.g=Dx,this.F=!0,this.produce=function(o,i,a){if(typeof o=="function"&&typeof i!="function"){var u=i;i=o;var s=n;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"&&zn(6),a!==void 0&&typeof a!="function"&&zn(7),Mu(o)){var c=mx(n),f=E4(n,o,void 0),d=!0;try{l=i(f),d=!1}finally{d?xv(c):b4(c)}return typeof Promise<"u"&&l instanceof Promise?l.then(function(p){return Zy(c,a),Qy(p,c)},function(p){throw xv(c),p}):(Zy(c,a),Qy(l,c))}if(!o||typeof o!="object")return(l=i(o))===Nj?void 0:(l===void 0&&(l=o),n.F&&u5(l,!0),l);zn(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 n.produceWithPatches(s,function(d){return o.apply(void 0,[d].concat(c))})}:[n.produce(o,i,function(s,l){a=s,u=l}),a,u];var a,u},typeof(r==null?void 0:r.useProxies)=="boolean"&&this.setUseProxies(r.useProxies),typeof(r==null?void 0:r.autoFreeze)=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var t=e.prototype;return t.createDraft=function(r){Mu(r)||zn(8),Lu(r)&&(r=EW(r));var n=mx(this),o=E4(this,r,void 0);return o[on].C=!0,b4(n),o},t.finishDraft=function(r,n){var o=(r&&r[on]).A;return Zy(o,n),Qy(void 0,o)},t.setAutoFreeze=function(r){this.F=r},t.setUseProxies=function(r){r&&!Dx&&zn(20),this.g=r},t.applyPatches=function(r,n){var o;for(o=n.length-1;o>=0;o--){var i=n[o];if(i.path.length===0&&i.op==="replace"){r=i.value;break}}o>-1&&(n=n.slice(o+1));var a=ei("Patches").$;return Lu(r)?a(r,n):this.produce(r,function(u){return a(u,n)})},e}(),Xr=new OW,Em=Xr.produce;Xr.produceWithPatches.bind(Xr),Xr.setAutoFreeze.bind(Xr),Xr.setUseProxies.bind(Xr),Xr.applyPatches.bind(Xr);var Sx=Xr.createDraft.bind(Xr),xx=Xr.finishDraft.bind(Xr);function _o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Bv=new WeakMap,xc=new WeakMap,Ax=new WeakMap,Ox=new WeakMap,Bx=new WeakMap,kx=new WeakMap;function Fx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Ch(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Fx(Object(r),!0).forEach(function(n){_o(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Fx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var BW=()=>{var e={children:[],operations:[],selection:null,marks:null,isInline:()=>!1,isVoid:()=>!1,onChange:()=>{},apply:t=>{for(var r of E.pathRefs(e))oG.transform(r,t);for(var n of E.pointRefs(e))iG.transform(n,t);for(var o of E.rangeRefs(e))uG.transform(o,t);var i=new Set,a=[],u=d=>{if(d){var p=d.join(",");i.has(p)||(i.add(p),a.push(d))}},s=Bv.get(e)||[],l=kW(t);for(var c of s)u(P.transform(c,t));for(var f of l)u(f);Bv.set(e,a),N.transform(e,t),e.operations.push(t),E.normalize(e),t.type==="set_selection"&&(e.marks=null),xc.get(e)||(xc.set(e,!0),Promise.resolve().then(()=>{xc.set(e,!1),e.onChange(),e.operations=[]}))},addMark:(t,r)=>{var{selection:n}=e;if(n)if(R.isExpanded(n))N.setNodes(e,{[t]:r},{match:oe.isText,split:!0});else{var o=Ch(Ch({},E.marks(e)||{}),{},{[t]:r});e.marks=o,xc.get(e)||e.onChange()}},deleteBackward:t=>{var{selection:r}=e;r&&R.isCollapsed(r)&&N.delete(e,{unit:t,reverse:!0})},deleteForward:t=>{var{selection:r}=e;r&&R.isCollapsed(r)&&N.delete(e,{unit:t})},deleteFragment:t=>{var{selection:r}=e;r&&R.isExpanded(r)&&N.delete(e,{reverse:t==="backward"})},getFragment:()=>{var{selection:t}=e;return t?Z.fragment(e,t):[]},insertBreak:()=>{N.splitNodes(e,{always:!0})},insertFragment:t=>{N.insertFragment(e,t)},insertNode:t=>{N.insertNodes(e,t)},insertText:t=>{var{selection:r,marks:n}=e;if(r){if(n){var o=Ch({text:t},n);N.insertNodes(e,o)}else N.insertText(e,t);e.marks=null}},normalizeNode:t=>{var[r,n]=t;if(!oe.isText(r))if(ce.isElement(r)&&r.children.length===0)N.insertNodes(e,{text:""},{at:n.concat(0),voids:!0});else for(var o=!E.isEditor(r)&&ce.isElement(r)&&(e.isInline(r)||r.children.length===0||oe.isText(r.children[0])||e.isInline(r.children[0])),i=0,a=0;a<r.children.length;a++,i++){var u=Z.get(e,n);if(!oe.isText(u)){var s=r.children[a],l=u.children[i-1],c=a===r.children.length-1;(oe.isText(s)||ce.isElement(s)&&e.isInline(s))!==o?(N.removeNodes(e,{at:n.concat(i),voids:!0}),i--):ce.isElement(s)?e.isInline(s)&&(l!=null&&oe.isText(l)?c&&(N.insertNodes(e,{text:""},{at:n.concat(i+1),voids:!0}),i++):(N.insertNodes(e,{text:""},{at:n.concat(i),voids:!0}),i++)):l!=null&&oe.isText(l)&&(oe.equals(s,l,{loose:!0})?(N.mergeNodes(e,{at:n.concat(i),voids:!0}),i--):l.text===""?(N.removeNodes(e,{at:n.concat(i-1),voids:!0}),i--):s.text===""&&(N.removeNodes(e,{at:n.concat(i),voids:!0}),i--))}}},removeMark:t=>{var{selection:r}=e;if(r)if(R.isExpanded(r))N.unsetNodes(e,t,{match:oe.isText,split:!0});else{var n=Ch({},E.marks(e)||{});delete n[t],e.marks=n,xc.get(e)||e.onChange()}}};return e},kW=e=>{switch(e.type){case"insert_text":case"remove_text":case"set_node":var{path:t}=e;return P.levels(t);case"insert_node":var{node:r,path:n}=e,o=P.levels(n),i=oe.isText(r)?[]:Array.from(Z.nodes(r),w=>{var[,D]=w;return n.concat(D)});return[...o,...i];case"merge_node":var{path:a}=e;return[...P.ancestors(a),P.previous(a)];case"move_node":var{path:u,newPath:s}=e;if(P.equals(u,s))return[];var l=[],c=[];for(var f of P.ancestors(u)){var d=P.transform(f,e);l.push(d)}for(var p of P.ancestors(s)){var v=P.transform(p,e);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}=e;return[...P.ancestors(h)];case"split_node":var{path:b}=e;return[...P.levels(b),P.next(b)];default:return[]}};function ii(e,t){if(e==null)return{};var r,n,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}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var Se,D4=function(e){var t=arguments.length>1&&arguments[1]!==void 0&&arguments[1],r=!t,n=t?PW(e):e,o=Se.None,i=Se.None,a=0,u=null;for(var s of n){var l=s.codePointAt(0);if(!l)break;var c=GW(s,l);if([o,i]=r?[i,c]:[c,o],Qs(o,Se.ZWJ)&&Qs(i,Se.ExtPict)&&!YW(r?e.substring(0,a):e.substring(0,e.length-a))||Qs(o,Se.RI)&&Qs(i,Se.RI)&&!(u=u!==null?!u:!!r||ZW(e.substring(0,e.length-a)))||o!==Se.None&&i!==Se.None&&KW(o,i))break;a+=s.length}return a||1},FW=/\s/,TW=/[\u0021-\u0023\u0025-\u002A\u002C-\u002F\u003A\u003B\u003F\u0040\u005B-\u005D\u005F\u007B\u007D\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E3B\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,_W=/['\u2018\u2019]/,C4=(e,t,r)=>{if(r){var n=e.length-t;return[e.slice(n,e.length),e.slice(0,n)]}return[e.slice(0,t),e.slice(t)]},jW=function e(t,r){var n=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(FW.test(t))return!1;if(_W.test(t)){var o=D4(r,n),[i,a]=C4(r,o,n);if(e(i,a,n))return!0}return!TW.test(t)},PW=function*(e){for(var t=e.length-1,r=0;r<e.length;r++){var n=e.charAt(t-r);if(IW(n.charCodeAt(0))){var o=e.charAt(t-r-1);if(NW(o.charCodeAt(0))){yield o+n,r++;continue}}yield n}},NW=e=>e>=55296&&e<=56319,IW=e=>e>=56320&&e<=57343;(function(e){e[e.None=0]="None",e[e.Extend=1]="Extend",e[e.ZWJ=2]="ZWJ",e[e.RI=4]="RI",e[e.Prepend=8]="Prepend",e[e.SpacingMark=16]="SpacingMark",e[e.L=32]="L",e[e.V=64]="V",e[e.T=128]="T",e[e.LV=256]="LV",e[e.LVT=512]="LVT",e[e.ExtPict=1024]="ExtPict",e[e.Any=2048]="Any"})(Se||(Se={}));var RW=/^(?:[\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])$/,LW=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,MW=/^(?:[\u0903\u093B\u093E-\u0940\u0949-\u094C\u094E\u094F\u0982\u0983\u09BF\u09C0\u09C7\u09C8\u09CB\u09CC\u0A03\u0A3E-\u0A40\u0A83\u0ABE-\u0AC0\u0AC9\u0ACB\u0ACC\u0B02\u0B03\u0B40\u0B47\u0B48\u0B4B\u0B4C\u0BBF\u0BC1\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0C01-\u0C03\u0C41-\u0C44\u0C82\u0C83\u0CBE\u0CC0\u0CC1\u0CC3\u0CC4\u0CC7\u0CC8\u0CCA\u0CCB\u0D02\u0D03\u0D3F\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D82\u0D83\u0DD0\u0DD1\u0DD8-\u0DDE\u0DF2\u0DF3\u0E33\u0EB3\u0F3E\u0F3F\u0F7F\u1031\u103B\u103C\u1056\u1057\u1084\u1715\u1734\u17B6\u17BE-\u17C5\u17C7\u17C8\u1923-\u1926\u1929-\u192B\u1930\u1931\u1933-\u1938\u1A19\u1A1A\u1A55\u1A57\u1A6D-\u1A72\u1B04\u1B3B\u1B3D-\u1B41\u1B43\u1B44\u1B82\u1BA1\u1BA6\u1BA7\u1BAA\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2\u1BF3\u1C24-\u1C2B\u1C34\u1C35\u1CE1\u1CF7\uA823\uA824\uA827\uA880\uA881\uA8B4-\uA8C3\uA952\uA953\uA983\uA9B4\uA9B5\uA9BA\uA9BB\uA9BE-\uA9C0\uAA2F\uAA30\uAA33\uAA34\uAA4D\uAAEB\uAAEE\uAAEF\uAAF5\uABE3\uABE4\uABE6\uABE7\uABE9\uABEA\uABEC]|\uD804[\uDC00\uDC02\uDC82\uDCB0-\uDCB2\uDCB7\uDCB8\uDD2C\uDD45\uDD46\uDD82\uDDB3-\uDDB5\uDDBF\uDDC0\uDDCE\uDE2C-\uDE2E\uDE32\uDE33\uDE35\uDEE0-\uDEE2\uDF02\uDF03\uDF3F\uDF41-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF62\uDF63]|\uD805[\uDC35-\uDC37\uDC40\uDC41\uDC45\uDCB1\uDCB2\uDCB9\uDCBB\uDCBC\uDCBE\uDCC1\uDDB0\uDDB1\uDDB8-\uDDBB\uDDBE\uDE30-\uDE32\uDE3B\uDE3C\uDE3E\uDEAC\uDEAE\uDEAF\uDEB6\uDF26]|\uD806[\uDC2C-\uDC2E\uDC38\uDD31-\uDD35\uDD37\uDD38\uDD3D\uDD40\uDD42\uDDD1-\uDDD3\uDDDC-\uDDDF\uDDE4\uDE39\uDE57\uDE58\uDE97]|\uD807[\uDC2F\uDC3E\uDCA9\uDCB1\uDCB4\uDD8A-\uDD8E\uDD93\uDD94\uDD96\uDEF5\uDEF6]|\uD81B[\uDF51-\uDF87\uDFF0\uDFF1]|\uD834[\uDD66\uDD6D])$/,zW=/^[\u1100-\u115F\uA960-\uA97C]$/,$W=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,HW=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,UW=/^[\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]$/,VW=/^[\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]$/,WW=/^(?:[\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])$/,GW=(e,t)=>{var r=Se.Any;return e.search(RW)!==-1&&(r|=Se.Extend),t===8205&&(r|=Se.ZWJ),t>=127462&&t<=127487&&(r|=Se.RI),e.search(LW)!==-1&&(r|=Se.Prepend),e.search(MW)!==-1&&(r|=Se.SpacingMark),e.search(zW)!==-1&&(r|=Se.L),e.search($W)!==-1&&(r|=Se.V),e.search(HW)!==-1&&(r|=Se.T),e.search(UW)!==-1&&(r|=Se.LV),e.search(VW)!==-1&&(r|=Se.LVT),e.search(WW)!==-1&&(r|=Se.ExtPict),r};function Qs(e,t){return(e&t)!=0}var qW=[[Se.L,Se.L|Se.V|Se.LV|Se.LVT],[Se.LV|Se.V,Se.V|Se.T],[Se.LVT|Se.T,Se.T],[Se.Any,Se.Extend|Se.ZWJ],[Se.Any,Se.SpacingMark],[Se.Prepend,Se.Any],[Se.ZWJ,Se.ExtPict],[Se.RI,Se.RI]];function KW(e,t){return qW.findIndex(r=>Qs(e,r[0])&&Qs(t,r[1]))===-1}var XW=/(?:[\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$/,YW=e=>e.search(XW)!==-1,JW=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,ZW=e=>{var t=e.match(JW);return t!==null&&t[0].length/2%2==1},Tx=e=>Er(e)&&Z.isNodeList(e.children)&&!E.isEditor(e),ce={isAncestor:e=>Er(e)&&Z.isNodeList(e.children),isElement:Tx,isElementList:e=>Array.isArray(e)&&e.every(t=>ce.isElement(t)),isElementProps:e=>e.children!==void 0,isElementType:function(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"type";return Tx(e)&&e[r]===t},matches(e,t){for(var r in t)if(r!=="children"&&e[r]!==t[r])return!1;return!0}},QW=["text"],eG=["text"];function _x(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function ms(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_x(Object(r),!0).forEach(function(n){_o(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_x(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var jx=new WeakMap,E={above(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{voids:r=!1,mode:n="lowest",at:o=e.selection,match:i}=t;if(o){var a=E.path(e,o),u=n==="lowest";for(var[s,l]of E.levels(e,{at:a,voids:r,match:i,reverse:u}))if(!oe.isText(s)&&!P.equals(a,l))return[s,l]}},addMark(e,t,r){e.addMark(t,r)},after(e,t){var r,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o={anchor:E.point(e,t,{edge:"end"}),focus:E.end(e,[])},{distance:i=1}=n,a=0;for(var u of E.positions(e,ms(ms({},n),{},{at:o}))){if(a>i)break;a!==0&&(r=u),a++}return r},before(e,t){var r,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o={anchor:E.start(e,[]),focus:E.point(e,t,{edge:"start"})},{distance:i=1}=n,a=0;for(var u of E.positions(e,ms(ms({},n),{},{at:o,reverse:!0}))){if(a>i)break;a!==0&&(r=u),a++}return r},deleteBackward(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{unit:r="character"}=t;e.deleteBackward(r)},deleteForward(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{unit:r="character"}=t;e.deleteForward(r)},deleteFragment(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{direction:r="forward"}=t;e.deleteFragment(r)},edges:(e,t)=>[E.start(e,t),E.end(e,t)],end:(e,t)=>E.point(e,t,{edge:"end"}),first(e,t){var r=E.path(e,t,{edge:"start"});return E.node(e,r)},fragment(e,t){var r=E.range(e,t);return Z.fragment(e,r)},hasBlocks:(e,t)=>t.children.some(r=>E.isBlock(e,r)),hasInlines:(e,t)=>t.children.some(r=>oe.isText(r)||E.isInline(e,r)),hasTexts:(e,t)=>t.children.every(r=>oe.isText(r)),insertBreak(e){e.insertBreak()},insertFragment(e,t){e.insertFragment(t)},insertNode(e,t){e.insertNode(t)},insertText(e,t){e.insertText(t)},isBlock:(e,t)=>ce.isElement(t)&&!e.isInline(t),isEditor(e){if(!Er(e))return!1;var t=jx.get(e);if(t!==void 0)return t;var r=typeof e.addMark=="function"&&typeof e.apply=="function"&&typeof e.deleteBackward=="function"&&typeof e.deleteForward=="function"&&typeof e.deleteFragment=="function"&&typeof e.insertBreak=="function"&&typeof e.insertFragment=="function"&&typeof e.insertNode=="function"&&typeof e.insertText=="function"&&typeof e.isInline=="function"&&typeof e.isVoid=="function"&&typeof e.normalizeNode=="function"&&typeof e.onChange=="function"&&typeof e.removeMark=="function"&&(e.marks===null||Er(e.marks))&&(e.selection===null||R.isRange(e.selection))&&Z.isNodeList(e.children)&&Hi.isOperationList(e.operations);return jx.set(e,r),r},isEnd(e,t,r){var n=E.end(e,r);return ke.equals(t,n)},isEdge:(e,t,r)=>E.isStart(e,t,r)||E.isEnd(e,t,r),isEmpty(e,t){var{children:r}=t,[n]=r;return r.length===0||r.length===1&&oe.isText(n)&&n.text===""&&!e.isVoid(t)},isInline:(e,t)=>ce.isElement(t)&&e.isInline(t),isNormalizing(e){var t=Ax.get(e);return t===void 0||t},isStart(e,t,r){if(t.offset!==0)return!1;var n=E.start(e,r);return ke.equals(t,n)},isVoid:(e,t)=>ce.isElement(t)&&e.isVoid(t),last(e,t){var r=E.path(e,t,{edge:"end"});return E.node(e,r)},leaf(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=E.path(e,t,r);return[Z.leaf(e,n),n]},*levels(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:r=e.selection,reverse:n=!1,voids:o=!1}=t,{match:i}=t;if(i==null&&(i=()=>!0),r){var a=[],u=E.path(e,r);for(var[s,l]of Z.levels(e,u))if(i(s,l)&&(a.push([s,l]),!o&&E.isVoid(e,s)))break;n&&a.reverse(),yield*a}},marks(e){var{marks:t,selection:r}=e;if(!r)return null;if(t)return t;if(R.isExpanded(r)){var[n]=E.nodes(e,{match:oe.isText});if(n){var[o]=n;return ii(o,QW)}return{}}var{anchor:i}=r,{path:a}=i,[u]=E.leaf(e,a);if(i.offset===0){var s=E.previous(e,{at:a,match:oe.isText}),l=E.above(e,{match:p=>E.isBlock(e,p)});if(s&&l){var[c,f]=s,[,d]=l;P.isAncestor(d,f)&&(u=c)}}return ii(u,eG)},next(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:r="lowest",voids:n=!1}=t,{match:o,at:i=e.selection}=t;if(i){var a=E.after(e,i,{voids:n});if(a){var[,u]=E.last(e,[]),s=[a.path,u];if(P.isPath(i)&&i.length===0)throw new Error("Cannot get the next node from the root node!");if(o==null)if(P.isPath(i)){var[l]=E.parent(e,i);o=f=>l.children.includes(f)}else o=()=>!0;var[c]=E.nodes(e,{at:s,match:o,mode:r,voids:n});return c}}},node(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=E.path(e,t,r);return[Z.get(e,n),n]},*nodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:r=e.selection,mode:n="all",universal:o=!1,reverse:i=!1,voids:a=!1}=t,{match:u}=t;if(u||(u=()=>!0),r){var s,l;if(tG.isSpan(r))s=r[0],l=r[1];else{var c=E.path(e,r,{edge:"start"}),f=E.path(e,r,{edge:"end"});s=i?f:c,l=i?c:f}var d,p=Z.nodes(e,{reverse:i,from:s,to:l,pass:b=>{var[w]=b;return!a&&E.isVoid(e,w)}}),v=[];for(var[m,g]of p){var y=d&&P.compare(g,d[1])===0;if(n!=="highest"||!y){if(u(m,g))if(n==="lowest"&&y)d=[m,g];else{var h=n==="lowest"?d:[m,g];h&&(o?v.push(h):yield h),d=[m,g]}else if(o&&!y&&oe.isText(m))return}}n==="lowest"&&d&&(o?v.push(d):yield d),o&&(yield*v)}},normalize(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{force:r=!1}=t,n=i=>Bv.get(i)||[];if(E.isNormalizing(e)){if(r){var o=Array.from(Z.nodes(e),i=>{var[,a]=i;return a});Bv.set(e,o)}n(e).length!==0&&E.withoutNormalizing(e,()=>{for(var i of n(e))if(Z.has(e,i)){var a=E.node(e,i),[u,s]=a;ce.isElement(u)&&u.children.length===0&&e.normalizeNode(a)}for(var l=42*n(e).length,c=0;n(e).length!==0;){if(c>l)throw new Error(`
- Could not completely normalize the editor after `.concat(l,` iterations! This is usually due to incorrect normalization logic that leaves a node in an invalid state.
- `));var f=n(e).pop();if(Z.has(e,f)){var d=E.node(e,f);e.normalizeNode(d)}c++}})}},parent(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=E.path(e,t,r),o=P.parent(n);return E.node(e,o)},path(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{depth:n,edge:o}=r;if(P.isPath(t)){if(o==="start"){var[,i]=Z.first(e,t);t=i}else if(o==="end"){var[,a]=Z.last(e,t);t=a}}return R.isRange(t)&&(t=o==="start"?R.start(t):o==="end"?R.end(t):P.common(t.anchor.path,t.focus.path)),ke.isPoint(t)&&(t=t.path),n!=null&&(t=t.slice(0,n)),t},hasPath:(e,t)=>Z.has(e,t),pathRef(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:n="forward"}=r,o={current:t,affinity:n,unref(){var{current:i}=o;return E.pathRefs(e).delete(o),o.current=null,i}};return E.pathRefs(e).add(o),o},pathRefs(e){var t=Ox.get(e);return t||(t=new Set,Ox.set(e,t)),t},point(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{edge:n="start"}=r;if(P.isPath(t)){var o;if(n==="end"){var[,i]=Z.last(e,t);o=i}else{var[,a]=Z.first(e,t);o=a}var u=Z.get(e,o);if(!oe.isText(u))throw new Error("Cannot get the ".concat(n," point in the node at path [").concat(t,"] because it has no ").concat(n," text node."));return{path:o,offset:n==="end"?u.text.length:0}}if(R.isRange(t)){var[s,l]=R.edges(t);return n==="start"?s:l}return t},pointRef(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:n="forward"}=r,o={current:t,affinity:n,unref(){var{current:i}=o;return E.pointRefs(e).delete(o),o.current=null,i}};return E.pointRefs(e).add(o),o},pointRefs(e){var t=Bx.get(e);return t||(t=new Set,Bx.set(e,t)),t},*positions(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:r=e.selection,unit:n="offset",reverse:o=!1,voids:i=!1}=t;if(r){var a=E.range(e,r),[u,s]=R.edges(a),l=o?s:u,c=!1,f="",d=0,p=0,v=0;for(var[m,g]of E.nodes(e,{at:r,reverse:o,voids:i})){if(ce.isElement(m)){if(!i&&e.isVoid(m)){yield E.start(e,g);continue}if(e.isInline(m))continue;if(E.hasInlines(e,m)){var y=P.isAncestor(g,s.path)?s:E.end(e,g),h=P.isAncestor(g,u.path)?u:E.start(e,g);f=E.string(e,{anchor:h,focus:y},{voids:i}),c=!0}}if(oe.isText(m)){var b=P.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||n==="offset")&&(yield{path:g,offset:v},c=!1);;){if(d===0){if(f==="")break;d=w(f,n,o),f=C4(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"?D4(D,C):S==="word"?function(O){for(var F=arguments.length>1&&arguments[1]!==void 0&&arguments[1],L=0,H=!1;O.length>0;){var M=D4(O,F),[K,V]=C4(O,M,F);if(jW(K,V,F))H=!0,L+=M;else{if(H)break;L+=M}O=V}return L}(D,C):S==="line"||S==="block"?D.length:1}},previous(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:r="lowest",voids:n=!1}=t,{match:o,at:i=e.selection}=t;if(i){var a=E.before(e,i,{voids:n});if(a){var[,u]=E.first(e,[]),s=[a.path,u];if(P.isPath(i)&&i.length===0)throw new Error("Cannot get the previous node from the root node!");if(o==null)if(P.isPath(i)){var[l]=E.parent(e,i);o=f=>l.children.includes(f)}else o=()=>!0;var[c]=E.nodes(e,{reverse:!0,at:s,match:o,mode:r,voids:n});return c}}},range:(e,t,r)=>R.isRange(t)&&!r?t:{anchor:E.start(e,t),focus:E.end(e,r||t)},rangeRef(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:n="forward"}=r,o={current:t,affinity:n,unref(){var{current:i}=o;return E.rangeRefs(e).delete(o),o.current=null,i}};return E.rangeRefs(e).add(o),o},rangeRefs(e){var t=kx.get(e);return t||(t=new Set,kx.set(e,t)),t},removeMark(e,t){e.removeMark(t)},setNormalizing(e,t){Ax.set(e,t)},start:(e,t)=>E.point(e,t,{edge:"start"}),string(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:n=!1}=r,o=E.range(e,t),[i,a]=R.edges(o),u="";for(var[s,l]of E.nodes(e,{at:o,match:oe.isText,voids:n})){var c=s.text;P.equals(l,a.path)&&(c=c.slice(0,a.offset)),P.equals(l,i.path)&&(c=c.slice(i.offset)),u+=c}return u},unhangRange(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:n=!1}=r,[o,i]=R.edges(t);if(o.offset!==0||i.offset!==0||R.isCollapsed(t))return t;var a=E.above(e,{at:i,match:d=>E.isBlock(e,d)}),u=a?a[1]:[],s={anchor:E.start(e,[]),focus:i},l=!0;for(var[c,f]of E.nodes(e,{at:s,match:oe.isText,reverse:!0,voids:n}))if(l)l=!1;else if(c.text!==""||P.isBefore(f,u)){i={path:f,offset:c.text.length};break}return{anchor:o,focus:i}},void(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return E.above(e,ms(ms({},t),{},{match:r=>E.isVoid(e,r)}))},withoutNormalizing(e,t){var r=E.isNormalizing(e);E.setNormalizing(e,!1);try{t()}finally{E.setNormalizing(e,r)}E.normalize(e)}},tG={isSpan:e=>Array.isArray(e)&&e.length===2&&e.every(P.isPath)},rG=["children"],nG=["text"],Px=new WeakMap,Z={ancestor(e,t){var r=Z.get(e,t);if(oe.isText(r))throw new Error("Cannot get the ancestor node at path [".concat(t,"] because it refers to a text node instead: ").concat(r));return r},*ancestors(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};for(var n of P.ancestors(t,r)){var o=[Z.ancestor(e,n),n];yield o}},child(e,t){if(oe.isText(e))throw new Error("Cannot get the child of a text node: ".concat(JSON.stringify(e)));var r=e.children[t];if(r==null)throw new Error("Cannot get child at index `".concat(t,"` in node: ").concat(JSON.stringify(e)));return r},*children(e,t){for(var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{reverse:n=!1}=r,o=Z.ancestor(e,t),{children:i}=o,a=n?i.length-1:0;n?a>=0:a<i.length;){var u=Z.child(o,a),s=t.concat(a);yield[u,s],a=n?a-1:a+1}},common(e,t,r){var n=P.common(t,r);return[Z.get(e,n),n]},descendant(e,t){var r=Z.get(e,t);if(E.isEditor(r))throw new Error("Cannot get the descendant node at path [".concat(t,"] because it refers to the root editor node instead: ").concat(r));return r},*descendants(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[r,n]of Z.nodes(e,t))n.length!==0&&(yield[r,n])},*elements(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[r,n]of Z.nodes(e,t))ce.isElement(r)&&(yield[r,n])},extractProps:e=>ce.isAncestor(e)?ii(e,rG):ii(e,nG),first(e,t){for(var r=t.slice(),n=Z.get(e,r);n&&!oe.isText(n)&&n.children.length!==0;)n=n.children[0],r.push(0);return[n,r]},fragment(e,t){if(oe.isText(e))throw new Error("Cannot get a fragment starting from a root text node: ".concat(JSON.stringify(e)));var r=Em({children:e.children},n=>{var[o,i]=R.edges(t),a=Z.nodes(n,{reverse:!0,pass:d=>{var[,p]=d;return!R.includes(t,p)}});for(var[,u]of a){if(!R.includes(t,u)){var s=Z.parent(n,u),l=u[u.length-1];s.children.splice(l,1)}if(P.equals(u,i.path)){var c=Z.leaf(n,u);c.text=c.text.slice(0,i.offset)}if(P.equals(u,o.path)){var f=Z.leaf(n,u);f.text=f.text.slice(o.offset)}}E.isEditor(n)&&(n.selection=null)});return r.children},get(e,t){for(var r=e,n=0;n<t.length;n++){var o=t[n];if(oe.isText(r)||!r.children[o])throw new Error("Cannot find a descendant at path [".concat(t,"] in node: ").concat(JSON.stringify(e)));r=r.children[o]}return r},has(e,t){for(var r=e,n=0;n<t.length;n++){var o=t[n];if(oe.isText(r)||!r.children[o])return!1;r=r.children[o]}return!0},isNode:e=>oe.isText(e)||ce.isElement(e)||E.isEditor(e),isNodeList(e){if(!Array.isArray(e))return!1;var t=Px.get(e);if(t!==void 0)return t;var r=e.every(n=>Z.isNode(n));return Px.set(e,r),r},last(e,t){for(var r=t.slice(),n=Z.get(e,r);n&&!oe.isText(n)&&n.children.length!==0;){var o=n.children.length-1;n=n.children[o],r.push(o)}return[n,r]},leaf(e,t){var r=Z.get(e,t);if(!oe.isText(r))throw new Error("Cannot get the leaf node at path [".concat(t,"] because it refers to a non-leaf node: ").concat(r));return r},*levels(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};for(var n of P.levels(t,r)){var o=Z.get(e,n);yield[o,n]}},matches:(e,t)=>ce.isElement(e)&&ce.isElementProps(t)&&ce.matches(e,t)||oe.isText(e)&&oe.isTextProps(t)&&oe.matches(e,t),*nodes(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{pass:r,reverse:n=!1}=t,{from:o=[],to:i}=t,a=new Set,u=[],s=e;!i||!(n?P.isBefore(u,i):P.isAfter(u,i));)if(a.has(s)||(yield[s,u]),a.has(s)||oe.isText(s)||s.children.length===0||r!=null&&r([s,u])!==!1){if(u.length===0)break;if(!n){var l=P.next(u);if(Z.has(e,l)){u=l,s=Z.get(e,u);continue}}n&&u[u.length-1]!==0?(u=P.previous(u),s=Z.get(e,u)):(u=P.parent(u),s=Z.get(e,u),a.add(s))}else{a.add(s);var c=n?s.children.length-1:0;P.isAncestor(u,o)&&(c=o[u.length]),u=u.concat(c),s=Z.get(e,u)}},parent(e,t){var r=P.parent(t),n=Z.get(e,r);if(oe.isText(n))throw new Error("Cannot get the parent of path [".concat(t,"] because it does not exist in the root."));return n},string:e=>oe.isText(e)?e.text:e.children.map(Z.string).join(""),*texts(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[r,n]of Z.nodes(e,t))oe.isText(r)&&(yield[r,n])}};function Nx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function zt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Nx(Object(r),!0).forEach(function(n){_o(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Nx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var Hi={isNodeOperation:e=>Hi.isOperation(e)&&e.type.endsWith("_node"),isOperation(e){if(!Er(e))return!1;switch(e.type){case"insert_node":case"remove_node":return P.isPath(e.path)&&Z.isNode(e.node);case"insert_text":case"remove_text":return typeof e.offset=="number"&&typeof e.text=="string"&&P.isPath(e.path);case"merge_node":return typeof e.position=="number"&&P.isPath(e.path)&&Er(e.properties);case"move_node":return P.isPath(e.path)&&P.isPath(e.newPath);case"set_node":return P.isPath(e.path)&&Er(e.properties)&&Er(e.newProperties);case"set_selection":return e.properties===null&&R.isRange(e.newProperties)||e.newProperties===null&&R.isRange(e.properties)||Er(e.properties)&&Er(e.newProperties);case"split_node":return P.isPath(e.path)&&typeof e.position=="number"&&Er(e.properties);default:return!1}},isOperationList:e=>Array.isArray(e)&&e.every(t=>Hi.isOperation(t)),isSelectionOperation:e=>Hi.isOperation(e)&&e.type.endsWith("_selection"),isTextOperation:e=>Hi.isOperation(e)&&e.type.endsWith("_text"),inverse(e){switch(e.type){case"insert_node":return zt(zt({},e),{},{type:"remove_node"});case"insert_text":return zt(zt({},e),{},{type:"remove_text"});case"merge_node":return zt(zt({},e),{},{type:"split_node",path:P.previous(e.path)});case"move_node":var{newPath:t,path:r}=e;if(P.equals(t,r))return e;if(P.isSibling(r,t))return zt(zt({},e),{},{path:t,newPath:r});var n=P.transform(r,e),o=P.transform(P.next(r),e);return zt(zt({},e),{},{path:n,newPath:o});case"remove_node":return zt(zt({},e),{},{type:"insert_node"});case"remove_text":return zt(zt({},e),{},{type:"insert_text"});case"set_node":var{properties:i,newProperties:a}=e;return zt(zt({},e),{},{properties:a,newProperties:i});case"set_selection":var{properties:u,newProperties:s}=e;return zt(zt({},e),{},u==null?{properties:s,newProperties:null}:s==null?{properties:null,newProperties:u}:{properties:s,newProperties:u});case"split_node":return zt(zt({},e),{},{type:"merge_node",path:P.next(e.path)})}}},P={ancestors(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:r=!1}=t,n=P.levels(e,t);return n=r?n.slice(1):n.slice(0,-1)},common(e,t){for(var r=[],n=0;n<e.length&&n<t.length;n++){var o=e[n];if(o!==t[n])break;r.push(o)}return r},compare(e,t){for(var r=Math.min(e.length,t.length),n=0;n<r;n++){if(e[n]<t[n])return-1;if(e[n]>t[n])return 1}return 0},endsAfter(e,t){var r=e.length-1,n=e.slice(0,r),o=t.slice(0,r),i=e[r],a=t[r];return P.equals(n,o)&&i>a},endsAt(e,t){var r=e.length,n=e.slice(0,r),o=t.slice(0,r);return P.equals(n,o)},endsBefore(e,t){var r=e.length-1,n=e.slice(0,r),o=t.slice(0,r),i=e[r],a=t[r];return P.equals(n,o)&&i<a},equals:(e,t)=>e.length===t.length&&e.every((r,n)=>r===t[n]),hasPrevious:e=>e[e.length-1]>0,isAfter:(e,t)=>P.compare(e,t)===1,isAncestor:(e,t)=>e.length<t.length&&P.compare(e,t)===0,isBefore:(e,t)=>P.compare(e,t)===-1,isChild:(e,t)=>e.length===t.length+1&&P.compare(e,t)===0,isCommon:(e,t)=>e.length<=t.length&&P.compare(e,t)===0,isDescendant:(e,t)=>e.length>t.length&&P.compare(e,t)===0,isParent:(e,t)=>e.length+1===t.length&&P.compare(e,t)===0,isPath:e=>Array.isArray(e)&&(e.length===0||typeof e[0]=="number"),isSibling(e,t){if(e.length!==t.length)return!1;var r=e.slice(0,-1),n=t.slice(0,-1);return e[e.length-1]!==t[t.length-1]&&P.equals(r,n)},levels(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:r=!1}=t,n=[],o=0;o<=e.length;o++)n.push(e.slice(0,o));return r&&n.reverse(),n},next(e){if(e.length===0)throw new Error("Cannot get the next path of a root path [".concat(e,"], because it has no next index."));var t=e[e.length-1];return e.slice(0,-1).concat(t+1)},parent(e){if(e.length===0)throw new Error("Cannot get the parent path of the root path [".concat(e,"]."));return e.slice(0,-1)},previous(e){if(e.length===0)throw new Error("Cannot get the previous path of a root path [".concat(e,"], because it has no previous index."));var t=e[e.length-1];if(t<=0)throw new Error("Cannot get the previous path of a first child path [".concat(e,"] because it would result in a negative index."));return e.slice(0,-1).concat(t-1)},relative(e,t){if(!P.isAncestor(t,e)&&!P.equals(e,t))throw new Error("Cannot get the relative path of [".concat(e,"] inside ancestor [").concat(t,"], because it is not above or equal to the path."));return e.slice(t.length)},transform(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Em(e,n=>{var{affinity:o="forward"}=r;if(e&&(e==null?void 0:e.length)!==0){if(n===null)return null;switch(t.type){case"insert_node":var{path:i}=t;(P.equals(i,n)||P.endsBefore(i,n)||P.isAncestor(i,n))&&(n[i.length-1]+=1);break;case"remove_node":var{path:a}=t;if(P.equals(a,n)||P.isAncestor(a,n))return null;P.endsBefore(a,n)&&(n[a.length-1]-=1);break;case"merge_node":var{path:u,position:s}=t;P.equals(u,n)||P.endsBefore(u,n)?n[u.length-1]-=1:P.isAncestor(u,n)&&(n[u.length-1]-=1,n[u.length]+=s);break;case"split_node":var{path:l,position:c}=t;if(P.equals(l,n)){if(o==="forward")n[n.length-1]+=1;else if(o!=="backward")return null}else P.endsBefore(l,n)?n[l.length-1]+=1:P.isAncestor(l,n)&&e[l.length]>=c&&(n[l.length-1]+=1,n[l.length]-=c);break;case"move_node":var{path:f,newPath:d}=t;if(P.equals(f,d))return;if(P.isAncestor(f,n)||P.equals(f,n)){var p=d.slice();return P.endsBefore(f,d)&&f.length<d.length&&(p[f.length-1]-=1),p.concat(n.slice(f.length))}P.isSibling(f,d)&&(P.isAncestor(d,n)||P.equals(d,n))?P.endsBefore(f,n)?n[f.length-1]-=1:n[f.length-1]+=1:P.endsBefore(d,n)||P.equals(d,n)||P.isAncestor(d,n)?(P.endsBefore(f,n)&&(n[f.length-1]-=1),n[d.length-1]+=1):P.endsBefore(f,n)&&(P.equals(d,n)&&(n[d.length-1]+=1),n[f.length-1]-=1)}}})}},oG={transform(e,t){var{current:r,affinity:n}=e;if(r!=null){var o=P.transform(r,t,{affinity:n});e.current=o,o==null&&e.unref()}}};function Ix(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Rx(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ix(Object(r),!0).forEach(function(n){_o(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ix(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var ke={compare(e,t){var r=P.compare(e.path,t.path);return r===0?e.offset<t.offset?-1:e.offset>t.offset?1:0:r},isAfter:(e,t)=>ke.compare(e,t)===1,isBefore:(e,t)=>ke.compare(e,t)===-1,equals:(e,t)=>e.offset===t.offset&&P.equals(e.path,t.path),isPoint:e=>Er(e)&&typeof e.offset=="number"&&P.isPath(e.path),transform(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Em(e,n=>{if(n===null)return null;var{affinity:o="forward"}=r,{path:i,offset:a}=n;switch(t.type){case"insert_node":case"move_node":n.path=P.transform(i,t,r);break;case"insert_text":P.equals(t.path,i)&&t.offset<=a&&(n.offset+=t.text.length);break;case"merge_node":P.equals(t.path,i)&&(n.offset+=t.position),n.path=P.transform(i,t,r);break;case"remove_text":P.equals(t.path,i)&&t.offset<=a&&(n.offset-=Math.min(a-t.offset,t.text.length));break;case"remove_node":if(P.equals(t.path,i)||P.isAncestor(t.path,i))return null;n.path=P.transform(i,t,r);break;case"split_node":if(P.equals(t.path,i)){if(t.position===a&&o==null)return null;(t.position<a||t.position===a&&o==="forward")&&(n.offset-=t.position,n.path=P.transform(i,t,Rx(Rx({},r),{},{affinity:"forward"})))}else n.path=P.transform(i,t,r)}})}},iG={transform(e,t){var{current:r,affinity:n}=e;if(r!=null){var o=ke.transform(r,t,{affinity:n});e.current=o,o==null&&e.unref()}}},aG=["anchor","focus"];function Lx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}var R={edges(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:r=!1}=t,{anchor:n,focus:o}=e;return R.isBackward(e)===r?[n,o]:[o,n]},end(e){var[,t]=R.edges(e);return t},equals:(e,t)=>ke.equals(e.anchor,t.anchor)&&ke.equals(e.focus,t.focus),includes(e,t){if(R.isRange(t)){if(R.includes(e,t.anchor)||R.includes(e,t.focus))return!0;var[r,n]=R.edges(e),[o,i]=R.edges(t);return ke.isBefore(r,o)&&ke.isAfter(n,i)}var[a,u]=R.edges(e),s=!1,l=!1;return ke.isPoint(t)?(s=ke.compare(t,a)>=0,l=ke.compare(t,u)<=0):(s=P.compare(t,a.path)>=0,l=P.compare(t,u.path)<=0),s&&l},intersection(e,t){var r=ii(e,aG),[n,o]=R.edges(e),[i,a]=R.edges(t),u=ke.isBefore(n,i)?i:n,s=ke.isBefore(o,a)?o:a;return ke.isBefore(s,u)?null:function(l){for(var c=1;c<arguments.length;c++){var f=arguments[c]!=null?arguments[c]:{};c%2?Lx(Object(f),!0).forEach(function(d){_o(l,d,f[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(f)):Lx(Object(f)).forEach(function(d){Object.defineProperty(l,d,Object.getOwnPropertyDescriptor(f,d))})}return l}({anchor:u,focus:s},r)},isBackward(e){var{anchor:t,focus:r}=e;return ke.isAfter(t,r)},isCollapsed(e){var{anchor:t,focus:r}=e;return ke.equals(t,r)},isExpanded:e=>!R.isCollapsed(e),isForward:e=>!R.isBackward(e),isRange:e=>Er(e)&&ke.isPoint(e.anchor)&&ke.isPoint(e.focus),*points(e){yield[e.anchor,"anchor"],yield[e.focus,"focus"]},start(e){var[t]=R.edges(e);return t},transform(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Em(e,n=>{if(n===null)return null;var o,i,{affinity:a="inward"}=r;if(a==="inward"){var u=R.isCollapsed(n);R.isForward(n)?(o="forward",i=u?o:"backward"):(o="backward",i=u?o:"forward")}else a==="outward"?R.isForward(n)?(o="backward",i="forward"):(o="forward",i="backward"):(o=a,i=a);var s=ke.transform(n.anchor,t,{affinity:o}),l=ke.transform(n.focus,t,{affinity:i});if(!s||!l)return null;n.anchor=s,n.focus=l})}},uG={transform(e,t){var{current:r,affinity:n}=e;if(r!=null){var o=R.transform(r,t,{affinity:n});e.current=o,o==null&&e.unref()}}},Ij=(e,t)=>{for(var r in e){var n=e[r],o=t[r];if(Er(n)&&Er(o)){if(!Ij(n,o))return!1}else if(Array.isArray(n)&&Array.isArray(o)){if(n.length!==o.length)return!1;for(var i=0;i<n.length;i++)if(n[i]!==o[i])return!1}else if(n!==o)return!1}for(var a in t)if(e[a]===void 0&&t[a]!==void 0)return!1;return!0},sG=["text"],lG=["anchor","focus"];function Mx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function zo(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Mx(Object(r),!0).forEach(function(n){_o(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Mx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var oe={equals(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{loose:n=!1}=r;function o(i){return ii(i,sG)}return Ij(n?o(e):e,n?o(t):t)},isText:e=>Er(e)&&typeof e.text=="string",isTextList:e=>Array.isArray(e)&&e.every(t=>oe.isText(t)),isTextProps:e=>e.text!==void 0,matches(e,t){for(var r in t)if(r!=="text"&&(!e.hasOwnProperty(r)||e[r]!==t[r]))return!1;return!0},decorations(e,t){var r=[zo({},e)];for(var n of t){var o=ii(n,lG),[i,a]=R.edges(n),u=[],s=0;for(var l of r){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=zo(zo({},d),{},{text:d.text.slice(m)}),d=zo(zo({},d),{},{text:d.text.slice(0,m)})}if(i.offset>f){var g=i.offset-f;p=zo(zo({},d),{},{text:d.text.slice(0,g)}),d=zo(zo({},d),{},{text:d.text.slice(g)})}Object.assign(d,o),p&&u.push(p),u.push(d),v&&u.push(v)}}r=u}return r}};function zx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Ac(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?zx(Object(r),!0).forEach(function(n){_o(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var cG={transform(e,t){e.children=Sx(e.children);var r=e.selection&&Sx(e.selection);try{r=((n,o,i)=>{switch(i.type){case"insert_node":var{path:a,node:u}=i,s=Z.parent(n,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 R.points(o))o[f]=ke.transform(c,i);break;case"insert_text":var{path:d,offset:p,text:v}=i;if(v.length===0)break;var m=Z.leaf(n,d),g=m.text.slice(0,p),y=m.text.slice(p);if(m.text=g+v+y,o)for(var[h,b]of R.points(o))o[b]=ke.transform(h,i);break;case"merge_node":var{path:w}=i,D=Z.get(n,w),S=P.previous(w),C=Z.get(n,S),O=Z.parent(n,w),F=w[w.length-1];if(oe.isText(D)&&oe.isText(C))C.text+=D.text;else{if(oe.isText(D)||oe.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(O.children.splice(F,1),o)for(var[L,H]of R.points(o))o[H]=ke.transform(L,i);break;case"move_node":var{path:M,newPath:K}=i;if(P.isAncestor(M,K))throw new Error("Cannot move a path [".concat(M,"] to new path [").concat(K,"] because the destination is inside itself."));var V=Z.get(n,M),G=Z.parent(n,M),q=M[M.length-1];G.children.splice(q,1);var re=P.transform(M,i),se=Z.get(n,P.parent(re)),ue=re[re.length-1];if(se.children.splice(ue,0,V),o)for(var[ae,B]of R.points(o))o[B]=ke.transform(ae,i);break;case"remove_node":var{path:x}=i,j=x[x.length-1];if(Z.parent(n,x).children.splice(j,1),o)for(var[$,X]of R.points(o)){var U=ke.transform($,i);if(o!=null&&U!=null)o[X]=U;else{var ie=void 0,ge=void 0;for(var[ve,De]of Z.texts(n)){if(P.compare(De,x)!==-1){ge=[ve,De];break}ie=[ve,De]}var W=!1;ie&&ge&&(W=P.equals(ge[1],x)?!P.hasPrevious(ge[1]):P.common(ie[1],x).length<P.common(ge[1],x).length),ie&&!W?($.path=ie[1],$.offset=ie[0].text.length):ge?($.path=ge[1],$.offset=0):o=null}}break;case"remove_text":var{path:Ie,offset:Ae,text:de}=i;if(de.length===0)break;var Oe=Z.leaf(n,Ie),Ot=Oe.text.slice(0,Ae),$e=Oe.text.slice(Ae+de.length);if(Oe.text=Ot+$e,o)for(var[Qe,gt]of R.points(o))o[gt]=ke.transform(Qe,i);break;case"set_node":var{path:hr,properties:Me,newProperties:Pr}=i;if(hr.length===0)throw new Error("Cannot set properties on the root node!");var jn=Z.get(n,hr);for(var Qn in Pr){if(Qn==="children"||Qn==="text")throw new Error('Cannot set the "'.concat(Qn,'" property of nodes!'));var cs=Pr[Qn];cs==null?delete jn[Qn]:jn[Qn]=cs}for(var ja in Me)Pr.hasOwnProperty(ja)||delete jn[ja];break;case"set_selection":var{newProperties:Pn}=i;if(Pn==null)o=Pn;else{if(o==null){if(!R.isRange(Pn))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(JSON.stringify(Pn)," when there is no current selection."));o=Ac({},Pn)}for(var eo in Pn){var Po=Pn[eo];if(Po==null){if(eo==="anchor"||eo==="focus")throw new Error('Cannot remove the "'.concat(eo,'" selection property'));delete o[eo]}else o[eo]=Po}}break;case"split_node":var{path:gr,position:vr,properties:mr}=i;if(gr.length===0)throw new Error('Cannot apply a "split_node" operation at path ['.concat(gr,"] because the root node cannot be split."));var Br,tr=Z.get(n,gr),fn=Z.parent(n,gr),hc=gr[gr.length-1];if(oe.isText(tr)){var di=tr.text.slice(0,vr),No=tr.text.slice(vr);tr.text=di,Br=Ac(Ac({},mr),{},{text:No})}else{var fs=tr.children.slice(0,vr),Pa=tr.children.slice(vr);tr.children=fs,Br=Ac(Ac({},mr),{},{children:Pa})}if(fn.children.splice(hc+1,0,Br),o)for(var[ds,Nn]of R.points(o))o[Nn]=ke.transform(ds,i)}return o})(e,r,t)}finally{e.children=xx(e.children),e.selection=r?Lu(r)?xx(r):r:null}}},fG=["text"],dG=["children"];function $x(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Hx(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?$x(Object(r),!0).forEach(function(n){_o(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$x(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var pG={insertNodes(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};E.withoutNormalizing(e,()=>{var{hanging:n=!1,voids:o=!1,mode:i="lowest"}=r,{at:a,match:u,select:s}=r;if(Z.isNode(t)&&(t=[t]),t.length!==0){var[l]=t;if(a||(a=e.selection?e.selection:e.children.length>0?E.end(e,[]):[0],s=!0),s==null&&(s=!1),R.isRange(a))if(n||(a=E.unhangRange(e,a)),R.isCollapsed(a))a=a.anchor;else{var[,c]=R.edges(a),f=E.pointRef(e,c);N.delete(e,{at:a}),a=f.unref()}if(ke.isPoint(a)){u==null&&(u=oe.isText(l)?S=>oe.isText(S):e.isInline(l)?S=>oe.isText(S)||E.isInline(e,S):S=>E.isBlock(e,S));var[d]=E.nodes(e,{at:a.path,match:u,mode:i,voids:o});if(!d)return;var[,p]=d,v=E.pathRef(e,p),m=E.isEnd(e,a,p);N.splitNodes(e,{at:a,match:u,mode:i,voids:o});var g=v.unref();a=m?P.next(g):g}var y=P.parent(a),h=a[a.length-1];if(o||!E.void(e,{at:y})){for(var b of t){var w=y.concat(h);h++,e.apply({type:"insert_node",path:w,node:b}),a=P.next(a)}if(a=P.previous(a),s){var D=E.end(e,a);D&&N.select(e,D)}}}})},liftNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};E.withoutNormalizing(e,()=>{var{at:r=e.selection,mode:n="lowest",voids:o=!1}=t,{match:i}=t;if(i==null&&(i=P.isPath(r)?ys(e,r):b=>E.isBlock(e,b)),r){var a=E.nodes(e,{at:r,match:i,mode:n,voids:o}),u=Array.from(a,b=>{var[,w]=b;return E.pathRef(e,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(e,P.parent(l)),[f,d]=c,p=l[l.length-1],{length:v}=f.children;if(v===1){var m=P.next(d);N.moveNodes(e,{at:l,to:m,voids:o}),N.removeNodes(e,{at:d,voids:o})}else if(p===0)N.moveNodes(e,{at:l,to:d,voids:o});else if(p===v-1){var g=P.next(d);N.moveNodes(e,{at:l,to:g,voids:o})}else{var y=P.next(l),h=P.next(d);N.splitNodes(e,{at:y,voids:o}),N.moveNodes(e,{at:l,to:h,voids:o})}}}})},mergeNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};E.withoutNormalizing(e,()=>{var{match:r,at:n=e.selection}=t,{hanging:o=!1,voids:i=!1,mode:a="lowest"}=t;if(n){if(r==null)if(P.isPath(n)){var[u]=E.parent(e,n);r=F=>u.children.includes(F)}else r=F=>E.isBlock(e,F);if(!o&&R.isRange(n)&&(n=E.unhangRange(e,n)),R.isRange(n))if(R.isCollapsed(n))n=n.anchor;else{var[,s]=R.edges(n),l=E.pointRef(e,s);N.delete(e,{at:n}),n=l.unref(),t.at==null&&N.select(e,n)}var[c]=E.nodes(e,{at:n,match:r,voids:i,mode:a}),f=E.previous(e,{at:n,match:r,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=P.next(m),b=P.common(p,m),w=P.isSibling(p,m),D=Array.from(E.levels(e,{at:p}),F=>{var[L]=F;return L}).slice(b.length).slice(0,-1),S=E.above(e,{at:p,mode:"highest",match:F=>D.includes(F)&&Rj(e,F)}),C=S&&E.pathRef(e,S[1]);if(oe.isText(d)&&oe.isText(v)){var O=ii(d,fG);y=v.text.length,g=O}else{if(!ce.isElement(d)||!ce.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)));O=ii(d,dG),y=v.children.length,g=O}w||N.moveNodes(e,{at:p,to:h,voids:i}),C&&N.removeNodes(e,{at:C.current,voids:i}),ce.isElement(v)&&E.isEmpty(e,v)||oe.isText(v)&&v.text===""&&m[m.length-1]!==0?N.removeNodes(e,{at:m,voids:i}):e.apply({type:"merge_node",path:h,position:y,properties:g}),C&&C.unref()}}}})},moveNodes(e,t){E.withoutNormalizing(e,()=>{var{to:r,at:n=e.selection,mode:o="lowest",voids:i=!1}=t,{match:a}=t;if(n){a==null&&(a=P.isPath(n)?ys(e,n):p=>E.isBlock(e,p));var u=E.pathRef(e,r),s=E.nodes(e,{at:n,match:a,mode:o,voids:i}),l=Array.from(s,p=>{var[,v]=p;return E.pathRef(e,v)});for(var c of l){var f=c.unref(),d=u.current;f.length!==0&&e.apply({type:"move_node",path:f,newPath:d}),u.current&&P.isSibling(d,f)&&P.isAfter(d,f)&&(u.current=P.next(u.current))}u.unref()}})},removeNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};E.withoutNormalizing(e,()=>{var{hanging:r=!1,voids:n=!1,mode:o="lowest"}=t,{at:i=e.selection,match:a}=t;if(i){a==null&&(a=P.isPath(i)?ys(e,i):d=>E.isBlock(e,d)),!r&&R.isRange(i)&&(i=E.unhangRange(e,i));var u=E.nodes(e,{at:i,match:a,mode:o,voids:n}),s=Array.from(u,d=>{var[,p]=d;return E.pathRef(e,p)});for(var l of s){var c=l.unref();if(c){var[f]=E.node(e,c);e.apply({type:"remove_node",path:c,node:f})}}}})},setNodes(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};E.withoutNormalizing(e,()=>{var{match:n,at:o=e.selection}=r,{hanging:i=!1,mode:a="lowest",split:u=!1,voids:s=!1}=r;if(o){if(n==null&&(n=P.isPath(o)?ys(e,o):D=>E.isBlock(e,D)),!i&&R.isRange(o)&&(o=E.unhangRange(e,o)),u&&R.isRange(o)){if(R.isCollapsed(o)&&E.leaf(e,o.anchor)[0].text.length>0)return;var l=E.rangeRef(e,o,{affinity:"inward"}),[c,f]=R.edges(o),d=a==="lowest"?"lowest":"highest",p=E.isEnd(e,f,f.path);N.splitNodes(e,{at:f,match:n,mode:d,voids:s,always:!p});var v=E.isStart(e,c,c.path);N.splitNodes(e,{at:c,match:n,mode:d,voids:s,always:!v}),o=l.unref(),r.at==null&&N.select(e,o)}for(var[m,g]of E.nodes(e,{at:o,match:n,mode:a,voids:s})){var y={},h={};if(g.length!==0){var b=!1;for(var w in t)w!=="children"&&w!=="text"&&t[w]!==m[w]&&(b=!0,m.hasOwnProperty(w)&&(y[w]=m[w]),t[w]!=null&&(h[w]=t[w]));b&&e.apply({type:"set_node",path:g,properties:y,newProperties:h})}}}})},splitNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};E.withoutNormalizing(e,()=>{var{mode:r="lowest",voids:n=!1}=t,{match:o,at:i=e.selection,height:a=0,always:u=!1}=t;if(o==null&&(o=V=>E.isBlock(e,V)),R.isRange(i)&&(i=hG(e,i)),P.isPath(i)){var s=i,l=E.point(e,s),[c]=E.parent(e,s);o=V=>V===c,a=l.path.length-s.length+1,i=l,u=!0}if(i){var f=E.pointRef(e,i,{affinity:"backward"}),[d]=E.nodes(e,{at:i,match:o,mode:r,voids:n});if(d){var p=E.void(e,{at:i,mode:"highest"});if(!n&&p){var[v,m]=p;if(ce.isElement(v)&&e.isInline(v)){var g=E.after(e,m);if(!g){var y=P.next(m);N.insertNodes(e,{text:""},{at:y,voids:n}),g=E.point(e,y)}i=g,u=!0}a=i.path.length-m.length+1,u=!0}var h=E.pointRef(e,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,O]of E.levels(e,{at:D,reverse:!0,voids:n})){var F=!1;if(O.length<w.length||O.length===0||!n&&E.isVoid(e,C))break;var L=f.current,H=E.isEnd(e,L,O);if(u||!f||!E.isEdge(e,L,O)){F=!0;var M=Z.extractProps(C);e.apply({type:"split_node",path:O,position:S,properties:M})}S=O[O.length-1]+(F||H?1:0)}if(t.at==null){var K=h.current||E.end(e,[]);N.select(e,K)}f.unref(),h.unref()}}})},unsetNodes(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Array.isArray(t)||(t=[t]);var n={};for(var o of t)n[o]=null;N.setNodes(e,n,r)},unwrapNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};E.withoutNormalizing(e,()=>{var{mode:r="lowest",split:n=!1,voids:o=!1}=t,{at:i=e.selection,match:a}=t;if(i){a==null&&(a=P.isPath(i)?ys(e,i):d=>E.isBlock(e,d)),P.isPath(i)&&(i=E.range(e,i));var u=R.isRange(i)?E.rangeRef(e,i):null,s=E.nodes(e,{at:i,match:a,mode:r,voids:o}),l=Array.from(s,d=>{var[,p]=d;return E.pathRef(e,p)}).reverse(),c=function(d){var p=d.unref(),[v]=E.node(e,p),m=E.range(e,p);n&&u&&(m=R.intersection(u.current,m)),N.liftNodes(e,{at:m,match:g=>ce.isAncestor(v)&&v.children.includes(g),voids:o})};for(var f of l)c(f);u&&u.unref()}})},wrapNodes(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};E.withoutNormalizing(e,()=>{var{mode:n="lowest",split:o=!1,voids:i=!1}=r,{match:a,at:u=e.selection}=r;if(u){if(a==null&&(a=P.isPath(u)?ys(e,u):e.isInline(t)?g=>E.isInline(e,g)||oe.isText(g):g=>E.isBlock(e,g)),o&&R.isRange(u)){var[s,l]=R.edges(u),c=E.rangeRef(e,u,{affinity:"inward"});N.splitNodes(e,{at:l,match:a,voids:i}),N.splitNodes(e,{at:s,match:a,voids:i}),u=c.unref(),r.at==null&&N.select(e,u)}var f=Array.from(E.nodes(e,{at:u,match:e.isInline(t)?g=>E.isBlock(e,g):g=>E.isEditor(g),mode:"lowest",voids:i}));for(var[,d]of f){var p=R.isRange(u)?R.intersection(u,E.range(e,d)):u;if(p){var v=Array.from(E.nodes(e,{at:p,match:a,mode:n,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=P.equals(h,b)?P.parent(h):P.common(h,b),D=E.range(e,h,b),S=E.node(e,w),[C]=S,O=w.length+1,F=P.next(b.slice(0,O)),L=Hx(Hx({},t),{},{children:[]});N.insertNodes(e,L,{at:F,voids:i}),N.moveNodes(e,{at:D,match:H=>ce.isAncestor(C)&&C.children.includes(H),to:F.concat(0),voids:i})}();if(m==="continue")continue}}}}})}},Rj=(e,t)=>{if(ce.isElement(t)){var r=t;return!!E.isVoid(e,t)||r.children.length===1&&Rj(e,r.children[0])}return!E.isEditor(t)},hG=(e,t)=>{if(R.isCollapsed(t))return t.anchor;var[,r]=R.edges(t),n=E.pointRef(e,r);return N.delete(e,{at:t}),n.unref()},ys=(e,t)=>{var[r]=E.node(e,t);return n=>n===r};function Ux(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Vx(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ux(Object(r),!0).forEach(function(n){_o(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ux(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var gG={collapse(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{edge:r="anchor"}=t,{selection:n}=e;if(n){if(r==="anchor")N.select(e,n.anchor);else if(r==="focus")N.select(e,n.focus);else if(r==="start"){var[o]=R.edges(n);N.select(e,o)}else if(r==="end"){var[,i]=R.edges(n);N.select(e,i)}}},deselect(e){var{selection:t}=e;t&&e.apply({type:"set_selection",properties:t,newProperties:null})},move(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{selection:r}=e,{distance:n=1,unit:o="character",reverse:i=!1}=t,{edge:a=null}=t;if(r){a==="start"&&(a=R.isBackward(r)?"focus":"anchor"),a==="end"&&(a=R.isBackward(r)?"anchor":"focus");var{anchor:u,focus:s}=r,l={distance:n,unit:o},c={};if(a==null||a==="anchor"){var f=i?E.before(e,u,l):E.after(e,u,l);f&&(c.anchor=f)}if(a==null||a==="focus"){var d=i?E.before(e,s,l):E.after(e,s,l);d&&(c.focus=d)}N.setSelection(e,c)}},select(e,t){var{selection:r}=e;if(t=E.range(e,t),r)N.setSelection(e,t);else{if(!R.isRange(t))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(t)));e.apply({type:"set_selection",properties:r,newProperties:t})}},setPoint(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{selection:n}=e,{edge:o="both"}=r;if(n){o==="start"&&(o=R.isBackward(n)?"focus":"anchor"),o==="end"&&(o=R.isBackward(n)?"anchor":"focus");var{anchor:i,focus:a}=n,u=o==="anchor"?i:a;N.setSelection(e,{[o==="anchor"?"anchor":"focus"]:Vx(Vx({},u),t)})}},setSelection(e,t){var{selection:r}=e,n={},o={};if(r){for(var i in t)(i==="anchor"&&t.anchor!=null&&!ke.equals(t.anchor,r.anchor)||i==="focus"&&t.focus!=null&&!ke.equals(t.focus,r.focus)||i!=="anchor"&&i!=="focus"&&t[i]!==r[i])&&(n[i]=r[i],o[i]=t[i]);Object.keys(n).length>0&&e.apply({type:"set_selection",properties:n,newProperties:o})}}},vG={delete(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};E.withoutNormalizing(e,()=>{var{reverse:r=!1,unit:n="character",distance:o=1,voids:i=!1}=t,{at:a=e.selection,hanging:u=!1}=t;if(a){if(R.isRange(a)&&R.isCollapsed(a)&&(a=a.anchor),ke.isPoint(a)){var s=E.void(e,{at:a,mode:"highest"});if(!i&&s){var[,l]=s;a=l}else{var c={unit:n,distance:o};a={anchor:a,focus:r?E.before(e,a,c)||E.start(e,[]):E.after(e,a,c)||E.end(e,[])},u=!0}}if(P.isPath(a))N.removeNodes(e,{at:a,voids:i});else if(!R.isCollapsed(a)){if(!u){var[,f]=R.edges(a),d=E.end(e,[]);ke.equals(f,d)||(a=E.unhangRange(e,a,{voids:i}))}var[p,v]=R.edges(a),m=E.above(e,{match:ge=>E.isBlock(e,ge),at:p,voids:i}),g=E.above(e,{match:ge=>E.isBlock(e,ge),at:v,voids:i}),y=m&&g&&!P.equals(m[1],g[1]),h=P.equals(p.path,v.path),b=i?null:E.void(e,{at:p,mode:"highest"}),w=i?null:E.void(e,{at:v,mode:"highest"});if(b){var D=E.before(e,p);D&&m&&P.isAncestor(m[1],D.path)&&(p=D)}if(w){var S=E.after(e,v);S&&g&&P.isAncestor(g[1],S.path)&&(v=S)}var C,O=[];for(var F of E.nodes(e,{at:a,voids:i})){var[L,H]=F;C&&P.compare(H,C)===0||(!i&&E.isVoid(e,L)||!P.isCommon(H,p.path)&&!P.isCommon(H,v.path))&&(O.push(F),C=H)}var M=Array.from(O,ge=>{var[,ve]=ge;return E.pathRef(e,ve)}),K=E.pointRef(e,p),V=E.pointRef(e,v);if(!h&&!b){var G=K.current,[q]=E.leaf(e,G),{path:re}=G,{offset:se}=p,ue=q.text.slice(se);ue.length>0&&e.apply({type:"remove_text",path:re,offset:se,text:ue})}for(var ae of M){var B=ae.unref();N.removeNodes(e,{at:B,voids:i})}if(!w){var x=V.current,[j]=E.leaf(e,x),{path:$}=x,X=h?p.offset:0,U=j.text.slice(X,v.offset);U.length>0&&e.apply({type:"remove_text",path:$,offset:X,text:U})}!h&&y&&V.current&&K.current&&N.mergeNodes(e,{at:V.current,hanging:!0,voids:i});var ie=r?K.unref()||V.unref():V.unref()||K.unref();t.at==null&&ie&&N.select(e,ie)}}})},insertFragment(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};E.withoutNormalizing(e,()=>{var{hanging:n=!1,voids:o=!1}=r,{at:i=e.selection}=r;if(t.length&&i){if(R.isRange(i))if(n||(i=E.unhangRange(e,i)),R.isCollapsed(i))i=i.anchor;else{var[,a]=R.edges(i);if(!o&&E.void(e,{at:a}))return;var u=E.pointRef(e,a);N.delete(e,{at:i}),i=u.unref()}else P.isPath(i)&&(i=E.start(e,i));if(o||!E.void(e,{at:i})){var s=E.above(e,{at:i,match:x=>E.isInline(e,x),mode:"highest",voids:o});if(s){var[,l]=s;E.isEnd(e,i,l)?i=E.after(e,l):E.isStart(e,i,l)&&(i=E.before(e,l))}var c=E.above(e,{match:x=>E.isBlock(e,x),at:i,voids:o}),[,f]=c,d=E.isStart(e,i,f),p=E.isEnd(e,i,f),v=d&&p,m=!d||d&&p,g=!p,[,y]=Z.first({children:t},[]),[,h]=Z.last({children:t},[]),b=[],w=x=>{var[j,$]=x;return $.length!==0&&(!!v||!(m&&P.isAncestor($,y)&&ce.isElement(j)&&!e.isVoid(j)&&!e.isInline(j))&&!(g&&P.isAncestor($,h)&&ce.isElement(j)&&!e.isVoid(j)&&!e.isInline(j)))};for(var D of Z.nodes({children:t},{pass:w}))w(D)&&b.push(D);var S=[],C=[],O=[],F=!0,L=!1;for(var[H]of b)ce.isElement(H)&&!e.isInline(H)?(F=!1,L=!0,C.push(H)):F?S.push(H):O.push(H);var[M]=E.nodes(e,{at:i,match:x=>oe.isText(x)||E.isInline(e,x),mode:"highest",voids:o}),[,K]=M,V=E.isStart(e,i,K),G=E.isEnd(e,i,K),q=E.pathRef(e,p?P.next(f):f),re=E.pathRef(e,G?P.next(K):K),se=E.pathRef(e,f);N.splitNodes(e,{at:i,match:x=>L?E.isBlock(e,x):oe.isText(x)||E.isInline(e,x),mode:L?"lowest":"highest",voids:o});var ue=E.pathRef(e,!V||V&&G?P.next(K):K);if(N.insertNodes(e,S,{at:ue.current,match:x=>oe.isText(x)||E.isInline(e,x),mode:"highest",voids:o}),v&&C.length&&N.delete(e,{at:se.unref(),voids:o}),N.insertNodes(e,C,{at:q.current,match:x=>E.isBlock(e,x),mode:"lowest",voids:o}),N.insertNodes(e,O,{at:re.current,match:x=>oe.isText(x)||E.isInline(e,x),mode:"highest",voids:o}),!r.at){var ae;ae=O.length>0?P.previous(re.current):C.length>0?P.previous(q.current):P.previous(ue.current);var B=E.end(e,ae);N.select(e,B)}ue.unref(),q.unref(),re.unref()}}})},insertText(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};E.withoutNormalizing(e,()=>{var{voids:n=!1}=r,{at:o=e.selection}=r;if(o){if(P.isPath(o)&&(o=E.range(e,o)),R.isRange(o))if(R.isCollapsed(o))o=o.anchor;else{var i=R.end(o);if(!n&&E.void(e,{at:i}))return;var a=E.pointRef(e,i);N.delete(e,{at:o,voids:n}),o=a.unref(),N.setSelection(e,{anchor:o,focus:o})}if(n||!E.void(e,{at:o})){var{path:u,offset:s}=o;t.length>0&&e.apply({type:"insert_text",path:u,offset:s,text:t})}}})}};function Wx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Sh(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Wx(Object(r),!0).forEach(function(n){_o(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Wx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var N=Sh(Sh(Sh(Sh({},cG),pG),gG),vG),S4="[object Map]",x4="[object Set]",mG=/^\[object .+?Constructor\]$/,yG=/^(?:0|[1-9]\d*)$/,bG="[\\ud800-\\udfff]",A4="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",O4="\\ud83c[\\udffb-\\udfff]",Lj="[^\\ud800-\\udfff]",Mj="(?:\\ud83c[\\udde6-\\uddff]){2}",zj="[\\ud800-\\udbff][\\udc00-\\udfff]",Gx="(?:"+A4+"|"+O4+")?",wG="[\\ufe0e\\ufe0f]?"+Gx+("(?:\\u200d(?:"+[Lj,Mj,zj].join("|")+")[\\ufe0e\\ufe0f]?"+Gx+")*"),EG="(?:"+[Lj+A4+"?",A4,Mj,zj,bG].join("|")+")",DG=RegExp(O4+"(?="+O4+")|"+EG+wG,"g"),CG=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),SG=typeof at=="object"&&at&&at.Object===Object&&at,xG=typeof self=="object"&&self&&self.Object===Object&&self,es=SG||xG||Function("return this")();function AG(e,t){return function(r,n){for(var o=-1,i=r?r.length:0,a=Array(i);++o<i;)a[o]=n(r[o],o,r);return a}(t,function(r){return e[r]})}function OG(e){var t=-1,r=Array(e.size);return e.forEach(function(n,o){r[++t]=[o,n]}),r}function BG(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}function kG(e){return function(t){return CG.test(t)}(e)?function(t){return t.match(DG)||[]}(e):function(t){return t.split("")}(e)}var qx,Kx,FG=Function.prototype,Dm=Object.prototype,r1=es["__core-js_shared__"],Xx=function(){var e=/[^.]+$/.exec(r1&&r1.keys&&r1.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),$j=FG.toString,kv=Dm.hasOwnProperty,Bp=Dm.toString,TG=RegExp("^"+$j.call(kv).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Yx=es.Symbol,n1=Yx?Yx.iterator:void 0,_G=Dm.propertyIsEnumerable,jG=(qx=Object.keys,Kx=Object,function(e){return qx(Kx(e))}),B4=kp(es,"DataView"),k4=kp(es,"Map"),F4=kp(es,"Promise"),T4=kp(es,"Set"),_4=kp(es,"WeakMap"),PG=ts(B4),NG=ts(k4),IG=ts(F4),RG=ts(T4),LG=ts(_4);function MG(e,t){var r=Hj(e)||function(a){return function(u){return Wj(u)&&f5(u)}(a)&&kv.call(a,"callee")&&(!_G.call(a,"callee")||Bp.call(a)=="[object Arguments]")}(e)?function(a,u){for(var s=-1,l=Array(a);++s<a;)l[s]=u(s);return l}(e.length,String):[],n=r.length,o=!!n;for(var i in e)!kv.call(e,i)||o&&(i=="length"||HG(i,n))||r.push(i);return r}function zG(e){if(!Vj(e)||function(r){return!!Xx&&Xx in r}(e))return!1;var t=Uj(e)||function(r){var n=!1;if(r!=null&&typeof r.toString!="function")try{n=!!(r+"")}catch{}return n}(e)?TG:mG;return t.test(ts(e))}function $G(e){if(r=(t=e)&&t.constructor,n=typeof r=="function"&&r.prototype||Dm,t!==n)return jG(e);var t,r,n,o=[];for(var i in Object(e))kv.call(e,i)&&i!="constructor"&&o.push(i);return o}function kp(e,t){var r=function(n,o){return n==null?void 0:n[o]}(e,t);return zG(r)?r:void 0}var Ja=function(e){return Bp.call(e)};function HG(e,t){return!!(t=t??9007199254740991)&&(typeof e=="number"||yG.test(e))&&e>-1&&e%1==0&&e<t}function ts(e){if(e!=null){try{return $j.call(e)}catch{}try{return e+""}catch{}}return""}(B4&&Ja(new B4(new ArrayBuffer(1)))!="[object DataView]"||k4&&Ja(new k4)!=S4||F4&&Ja(F4.resolve())!="[object Promise]"||T4&&Ja(new T4)!=x4||_4&&Ja(new _4)!="[object WeakMap]")&&(Ja=function(e){var t=Bp.call(e),r=t=="[object Object]"?e.constructor:void 0,n=r?ts(r):void 0;if(n)switch(n){case PG:return"[object DataView]";case NG:return S4;case IG:return"[object Promise]";case RG:return x4;case LG:return"[object WeakMap]"}return t});var Hj=Array.isArray;function f5(e){return e!=null&&function(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=9007199254740991}(e.length)&&!Uj(e)}function Uj(e){var t=Vj(e)?Bp.call(e):"";return t=="[object Function]"||t=="[object GeneratorFunction]"}function Vj(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function Wj(e){return!!e&&typeof e=="object"}function UG(e){return e?AG(e,function(t){return f5(t)?MG(t):$G(t)}(e)):[]}var Jx=function(e){if(!e)return[];if(f5(e))return function(r){return typeof r=="string"||!Hj(r)&&Wj(r)&&Bp.call(r)=="[object String]"}(e)?kG(e):function(r,n){var o=-1,i=r.length;for(n||(n=Array(i));++o<i;)n[o]=r[o];return n}(e);if(n1&&e[n1])return function(r){for(var n,o=[];!(n=r.next()).done;)o.push(n.value);return o}(e[n1]());var t=Ja(e);return(t==S4?OG:t==x4?BG:UG)(e)};function Zx(e){return e!==null&&typeof e=="object"&&"constructor"in e&&e.constructor===Object}function d5(e,t){e===void 0&&(e={}),t===void 0&&(t={}),Object.keys(t).forEach(function(r){e[r]===void 0?e[r]=t[r]:Zx(t[r])&&Zx(e[r])&&Object.keys(t[r]).length>0&&d5(e[r],t[r])})}var Gj={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 Fp(){var e=typeof document<"u"?document:{};return d5(e,Gj),e}var VG={document:Gj,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(e){return typeof setTimeout>"u"?(e(),null):setTimeout(e,0)},cancelAnimationFrame:function(e){typeof setTimeout<"u"&&clearTimeout(e)}};function rs(){var e=typeof window<"u"?window:{};return d5(e,VG),e}function j4(e){return j4=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},j4(e)}function Fv(e,t){return Fv=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r},Fv(e,t)}function WG(){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 P4(e,t,r){return P4=WG()?Reflect.construct:function(n,o,i){var a=[null];a.push.apply(a,o);var u=new(Function.bind.apply(n,a));return i&&Fv(u,i.prototype),u},P4.apply(null,arguments)}function N4(e){var t=typeof Map=="function"?new Map:void 0;return N4=function(r){if(r===null||!function(o){return Function.toString.call(o).indexOf("[native code]")!==-1}(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(r))return t.get(r);t.set(r,n)}function n(){return P4(r,arguments,j4(this).constructor)}return n.prototype=Object.create(r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Fv(n,r)},N4(e)}var Ui=function(e){var t,r;function n(o){var i,a,u;return i=e.call.apply(e,[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 r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r,n}(N4(Array));function Cm(e){e===void 0&&(e=[]);var t=[];return e.forEach(function(r){Array.isArray(r)?t.push.apply(t,Cm(r)):t.push(r)}),t}function qj(e,t){return Array.prototype.filter.call(e,t)}function k(e,t){var r=rs(),n=Fp(),o=[];if(!t&&e instanceof Ui)return e;if(!e)return new Ui(o);if(typeof e=="string"){var i=e.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=n.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}(e.trim(),t||n)}else if(e.nodeType||e===r||e===n)o.push(e);else if(Array.isArray(e)){if(e instanceof Ui)return e;o=e}return new Ui(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 Dl(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=Cm(t.map(function(o){return o.split(" ")}));return this.forEach(function(o){var i;(i=o.classList).add.apply(i,n)}),this}function Cl(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=Cm(t.map(function(o){return o.split(" ")}));return this.forEach(function(o){var i;(i=o.classList).remove.apply(i,n)}),this}function Sl(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=Cm(t.map(function(o){return o.split(" ")}));return qj(this,function(o){return n.filter(function(i){return o.classList.contains(i)}).length>0}).length>0}function xn(e,t){if(arguments.length===1&&typeof e=="string")return this[0]?this[0].getAttribute(e):void 0;for(var r=0;r<this.length;r+=1)if(arguments.length===2)this[r].setAttribute(e,t);else for(var n in e)this[r][n]=e[n],this[r].setAttribute(n,e[n]);return this}function Tv(e){for(var t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this}function xl(){var e=this[0];if(e){var t,r={};if(e.dataset)for(var n in e.dataset)r[n]=e.dataset[n];else for(var o=0;o<e.attributes.length;o+=1){var i=e.attributes[o];i.name.indexOf("data-")>=0&&(r[t=i.name.split("data-")[1],t.toLowerCase().replace(/-(.)/g,function(u,s){return s.toUpperCase()})]=i.value)}for(var a in r)r[a]==="false"?r[a]=!1:r[a]==="true"?r[a]=!0:parseFloat(r[a])===1*r[a]&&(r[a]*=1);return r}}function xo(e){if(e===void 0){var t=this[0];if(!t)return;if(t.multiple&&t.nodeName.toLowerCase()==="select"){for(var r=[],n=0;n<t.selectedOptions.length;n+=1)r.push(t.selectedOptions[n].value);return r}return t.value}for(var o=0;o<this.length;o+=1){var i=this[o];if(Array.isArray(e)&&i.multiple&&i.nodeName.toLowerCase()==="select")for(var a=0;a<i.options.length;a+=1)i.options[a].selected=e.indexOf(i.options[a].value)>=0;else i.value=e}return this}function Ao(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t[0],o=t[1],i=t[2],a=t[3];function u(m){var g=m.target;if(g){var y=m.target.dom7EventData||[];if(y.indexOf(m)<0&&y.unshift(m),k(g).is(o))i.apply(g,y);else for(var h=k(g).parents(),b=0;b<h.length;b+=1)k(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 t[1]=="function"&&(n=t[0],i=t[1],a=t[2],o=void 0),a||(a=!1);for(var l,c=n.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 Qx(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t[0],o=t[1],i=t[2],a=t[3];typeof t[1]=="function"&&(n=t[0],i=t[1],a=t[2],o=void 0),a||(a=!1);for(var u=n.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 _v(){var e=rs();return this[0]===e?e.innerWidth:this.length>0?parseFloat(this.css("width")):null}function jv(){var e=rs();return this[0]===e?e.innerHeight:this.length>0?parseFloat(this.css("height")):null}function eA(){if(this.length>0){var e=rs(),t=Fp(),r=this[0],n=r.getBoundingClientRect(),o=t.body,i=r.clientTop||o.clientTop||0,a=r.clientLeft||o.clientLeft||0,u=r===e?e.scrollY:r.scrollTop,s=r===e?e.scrollX:r.scrollLeft;return{top:n.top+u-i,left:n.left+s-a}}return null}function Al(){for(var e=0;e<this.length;e+=1)this[e].style.display="none";return this}function Pv(){for(var e=rs(),t=0;t<this.length;t+=1){var r=this[t];r.style.display==="none"&&(r.style.display=""),e.getComputedStyle(r,null).getPropertyValue("display")==="none"&&(r.style.display="block")}return this}function Nv(e,t){var r,n=rs();if(arguments.length===1){if(typeof e!="string"){for(r=0;r<this.length;r+=1)for(var o in e)this[r].style[o]=e[o];return this}if(this[0])return n.getComputedStyle(this[0],null).getPropertyValue(e)}if(arguments.length===2&&typeof e=="string"){for(r=0;r<this.length;r+=1)this[r].style[e]=t;return this}return this}function Iv(e){return e?(this.forEach(function(t,r){e.apply(t,[t,r])}),this):this}function tA(e){return k(qj(this,e))}function pa(e){if(e===void 0)return this[0]?this[0].innerHTML:null;for(var t=0;t<this.length;t+=1)this[t].innerHTML=e;return this}function Rv(e){if(e===void 0)return this[0]?this[0].textContent.trim():null;for(var t=0;t<this.length;t+=1)this[t].textContent=e;return this}function rA(e){var t,r,n=rs(),o=Fp(),i=this[0];if(!i||e===void 0)return!1;if(typeof e=="string"){if(i.matches)return i.matches(e);if(i.webkitMatchesSelector)return i.webkitMatchesSelector(e);if(i.msMatchesSelector)return i.msMatchesSelector(e);for(t=k(e),r=0;r<t.length;r+=1)if(t[r]===i)return!0;return!1}if(e===o)return i===o;if(e===n)return i===n;if(e.nodeType||e instanceof Ui){for(t=e.nodeType?[e]:e,r=0;r<t.length;r+=1)if(t[r]===i)return!0;return!1}return!1}function An(){for(var e,t=Fp(),r=0;r<arguments.length;r+=1){e=r<0||arguments.length<=r?void 0:arguments[r];for(var n=0;n<this.length;n+=1)if(typeof e=="string"){var o=t.createElement("div");for(o.innerHTML=e;o.firstChild;)this[n].appendChild(o.firstChild)}else if(e instanceof Ui)for(var i=0;i<e.length;i+=1)this[n].appendChild(e[i]);else this[n].appendChild(e)}return this}function nA(e){var t,r,n=Fp();for(t=0;t<this.length;t+=1)if(typeof e=="string"){var o=n.createElement("div");for(o.innerHTML=e,r=o.childNodes.length-1;r>=0;r-=1)this[t].insertBefore(o.childNodes[r],this[t].childNodes[0])}else if(e instanceof Ui)for(r=0;r<e.length;r+=1)this[t].insertBefore(e[r],this[t].childNodes[0]);else this[t].insertBefore(e,this[t].childNodes[0]);return this}function Ol(e){for(var t=[],r=0;r<this.length;r+=1)this[r].parentNode!==null&&(e?k(this[r].parentNode).is(e)&&t.push(this[r].parentNode):t.push(this[r].parentNode));return k(t)}function Lv(e){for(var t=[],r=0;r<this.length;r+=1)for(var n=this[r].parentNode;n;)e?k(n).is(e)&&t.push(n):t.push(n),n=n.parentNode;return k(t)}function Bl(e){for(var t=[],r=0;r<this.length;r+=1)for(var n=this[r].querySelectorAll(e),o=0;o<n.length;o+=1)t.push(n[o]);return k(t)}function kl(e){for(var t=[],r=0;r<this.length;r+=1)for(var n=this[r].children,o=0;o<n.length;o+=1)e&&!k(n[o]).is(e)||t.push(n[o]);return k(t)}function Fl(){for(var e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this}function Tl(){for(var e=0;e<this.length;e+=1){var t=this[e];if(t.nodeType===1){for(var r=0;r<t.childNodes.length;r+=1)t.childNodes[r].parentNode&&t.childNodes[r].parentNode.removeChild(t.childNodes[r]);t.textContent=""}}return this}k.fn=Ui.prototype;var GG="resize scroll".split(" ");function Kj(e){return function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(r[0]===void 0){for(var o=0;o<this.length;o+=1)GG.indexOf(e)<0&&(e in this[o]?this[o][e]():k(this[o]).trigger(e));return this}return this.on.apply(this,[e].concat(r))}}var oA=Kj("click"),ha=Kj("focus"),qG="[object GeneratorFunction]",KG=/^(?:0|[1-9]\d*)$/;function XG(e,t){for(var r=-1,n=e?e.length:0;++r<n&&t(e[r],r,e)!==!1;);return e}var Sm=Object.prototype,I4=Sm.hasOwnProperty,Xj=Sm.toString,YG=Sm.propertyIsEnumerable,JG=function(e,t){return function(r){return e(t(r))}}(Object.keys,Object);function ZG(e,t){var r=Yj(e)||function(a){return function(u){return function(s){return!!s&&typeof s=="object"}(u)&&p5(u)}(a)&&I4.call(a,"callee")&&(!YG.call(a,"callee")||Xj.call(a)=="[object Arguments]")}(e)?function(a,u){for(var s=-1,l=Array(a);++s<a;)l[s]=u(s);return l}(e.length,String):[],n=r.length,o=!!n;for(var i in e)!I4.call(e,i)||o&&(i=="length"||rq(i,n))||r.push(i);return r}var iA,QG=(iA=function(e,t){return e&&eq(e,t,nq)},function(e,t){if(e==null)return e;if(!p5(e))return iA(e,t);for(var r=e.length,n=-1,o=Object(e);++n<r&&t(o[n],n,o)!==!1;);return e}),eq=function(e){return function(t,r,n){for(var o=-1,i=Object(t),a=n(t),u=a.length;u--;){var s=a[++o];if(r(i[s],s,i)===!1)break}return t}}();function tq(e){if(r=(t=e)&&t.constructor,n=typeof r=="function"&&r.prototype||Sm,t!==n)return JG(e);var t,r,n,o=[];for(var i in Object(e))I4.call(e,i)&&i!="constructor"&&o.push(i);return o}function rq(e,t){return!!(t=t??9007199254740991)&&(typeof e=="number"||KG.test(e))&&e>-1&&e%1==0&&e<t}var Yj=Array.isArray;function p5(e){return e!=null&&function(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=9007199254740991}(e.length)&&!function(t){var r=function(n){var o=typeof n;return!!n&&(o=="object"||o=="function")}(t)?Xj.call(t):"";return r=="[object Function]"||r==qG}(e)}function nq(e){return p5(e)?ZG(e):tq(e)}function oq(e){return e}var h5=function(e,t){return(Yj(e)?XG:QG)(e,typeof t=="function"?t:oq)};let Jj=(e=21)=>{let t="",r=crypto.getRandomValues(new Uint8Array(e));for(;e--;){let n=63&r[e];t+=n<36?n.toString(36):n<62?(n-26).toString(36).toUpperCase():n<63?"_":"-"}return t};var iq=/^\s+|\s+$/g,aq=/^[-+]0x[0-9a-f]+$/i,uq=/^0b[01]+$/i,sq=/^0o[0-7]+$/i,lq=parseInt,cq=typeof at=="object"&&at&&at.Object===Object&&at,fq=typeof self=="object"&&self&&self.Object===Object&&self,dq=cq||fq||Function("return this")(),pq=Object.prototype.toString,hq=Math.max,gq=Math.min,o1=function(){return dq.Date.now()};function vq(e,t,r){var n,o,i,a,u,s,l=0,c=!1,f=!1,d=!0;if(typeof e!="function")throw new TypeError("Expected a function");function p(b){var w=n,D=o;return n=o=void 0,l=b,a=e.apply(D,w)}function v(b){return l=b,u=setTimeout(g,t),c?p(b):a}function m(b){var w=b-s;return s===void 0||w>=t||w<0||f&&b-l>=i}function g(){var b=o1();if(m(b))return y(b);u=setTimeout(g,function(w){var D=t-(w-s);return f?gq(D,i-(w-l)):D}(b))}function y(b){return u=void 0,d&&n?p(b):(n=o=void 0,a)}function h(){var b=o1(),w=m(b);if(n=arguments,o=this,s=b,w){if(u===void 0)return v(s);if(f)return u=setTimeout(g,t),p(s)}return u===void 0&&(u=setTimeout(g,t)),a}return t=aA(t)||0,Mv(r)&&(c=!!r.leading,i=(f="maxWait"in r)?hq(aA(r.maxWait)||0,t):i,d="trailing"in r?!!r.trailing:d),h.cancel=function(){u!==void 0&&clearTimeout(u),l=0,n=s=o=u=void 0},h.flush=function(){return u===void 0?a:y(o1())},h}function Mv(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function aA(e){if(typeof e=="number")return e;if(function(n){return typeof n=="symbol"||function(o){return!!o&&typeof o=="object"}(n)&&pq.call(n)=="[object Symbol]"}(e))return NaN;if(Mv(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Mv(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(iq,"");var r=uq.test(e);return r||sq.test(e)?lq(e.slice(2),r?2:8):aq.test(e)?NaN:+e}var zu=function(e,t,r){var n=!0,o=!0;if(typeof e!="function")throw new TypeError("Expected a function");return Mv(r)&&(n="leading"in r?!!r.leading:n,o="trailing"in r?!!r.trailing:o),vq(e,t,{leading:n,maxWait:t,trailing:o})};const mq={createElement:function(e,t){return document.createElement(e,t)},createElementNS:function(e,t,r){return document.createElementNS(e,t,r)},createTextNode:function(e){return document.createTextNode(e)},createComment:function(e){return document.createComment(e)},insertBefore:function(e,t,r){e.insertBefore(t,r)},removeChild:function(e,t){e.removeChild(t)},appendChild:function(e,t){e.appendChild(t)},parentNode:function(e){return e.parentNode},nextSibling:function(e){return e.nextSibling},tagName:function(e){return e.tagName},setTextContent:function(e,t){e.textContent=t},getTextContent:function(e){return e.textContent},isElement:function(e){return e.nodeType===1},isText:function(e){return e.nodeType===3},isComment:function(e){return e.nodeType===8}};function Bd(e,t,r,n,o){return{sel:e,data:t,children:r,text:n,elm:o,key:t===void 0?void 0:t.key}}const R4=Array.isArray;function jg(e){return typeof e=="string"||typeof e=="number"||e instanceof String||e instanceof Number}function i1(e){return e===void 0}function Kr(e){return e!==void 0}const uA=Bd("",{},[],void 0,void 0);function Oc(e,t){var r,n;const o=e.key===t.key,i=((r=e.data)===null||r===void 0?void 0:r.is)===((n=t.data)===null||n===void 0?void 0:n.is);return e.sel===t.sel&&o&&i}function yq(e,t,r){var n;const o={};for(let i=t;i<=r;++i){const a=(n=e[i])===null||n===void 0?void 0:n.key;a!==void 0&&(o[a]=i)}return o}const bq=["create","update","remove","destroy","pre","post"];function wq(e,t){const r={create:[],update:[],remove:[],destroy:[],pre:[],post:[]},n=mq;for(const f of bq)for(const d of e){const p=d[f];p!==void 0&&r[f].push(p)}function o(f){const d=f.id?"#"+f.id:"",p=f.getAttribute("class"),v=p?"."+p.split(" ").join("."):"";return Bd(n.tagName(f).toLowerCase()+d+v,{},[],void 0,f)}function i(f,d){return function(){if(--d==0){const p=n.parentNode(f);n.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;Kr(b)&&(b(f),g=f.data)}const y=f.children,h=f.sel;if(h==="!")i1(f.text)&&(f.text=""),f.elm=n.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,O=f.elm=Kr(g)&&Kr(m=g.ns)?n.createElementNS(m,C,g):n.createElement(C,g);for(D<S&&O.setAttribute("id",h.slice(D+1,S)),w>0&&O.setAttribute("class",h.slice(S+1).replace(/\./g," ")),m=0;m<r.create.length;++m)r.create[m](uA,f);if(R4(y))for(m=0;m<y.length;++m){const L=y[m];L!=null&&n.appendChild(O,a(L,d))}else jg(f.text)&&n.appendChild(O,n.createTextNode(f.text));const F=f.data.hook;Kr(F)&&((v=F.create)===null||v===void 0||v.call(F,uA,f),F.insert&&d.push(f))}else f.elm=n.createTextNode(f.text);return f.elm}function u(f,d,p,v,m,g){for(;v<=m;++v){const y=p[v];y!=null&&n.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<r.destroy.length;++m)r.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(Kr(b.sel)){s(b),y=r.remove.length+1,h=i(b.elm,y);for(let D=0;D<r.remove.length;++D)r.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;Kr(w)?w(b,h):h()}else n.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<r.update.length;++C)r.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)}i1(d.text)?Kr(D)&&Kr(S)?D!==S&&function(C,O,F,L){let H,M,K,V,G=0,q=0,re=O.length-1,se=O[0],ue=O[re],ae=F.length-1,B=F[0],x=F[ae];for(;G<=re&&q<=ae;)se==null?se=O[++G]:ue==null?ue=O[--re]:B==null?B=F[++q]:x==null?x=F[--ae]:Oc(se,B)?(c(se,B,L),se=O[++G],B=F[++q]):Oc(ue,x)?(c(ue,x,L),ue=O[--re],x=F[--ae]):Oc(se,x)?(c(se,x,L),n.insertBefore(C,se.elm,n.nextSibling(ue.elm)),se=O[++G],x=F[--ae]):Oc(ue,B)?(c(ue,B,L),n.insertBefore(C,ue.elm,se.elm),ue=O[--re],B=F[++q]):(H===void 0&&(H=yq(O,G,re)),M=H[B.key],i1(M)?n.insertBefore(C,a(B,L),se.elm):(K=O[M],K.sel!==B.sel?n.insertBefore(C,a(B,L),se.elm):(c(K,B,L),O[M]=void 0,n.insertBefore(C,K.elm,se.elm))),B=F[++q]);(G<=re||q<=ae)&&(G>re?(V=F[ae+1]==null?null:F[ae+1].elm,u(C,V,F,q,ae,L)):l(C,O,G,re))}(w,D,S,p):Kr(S)?(Kr(f.text)&&n.setTextContent(w,""),u(w,null,S,0,S.length-1,p)):Kr(D)?l(w,D,0,D.length-1):Kr(f.text)&&n.setTextContent(w,""):f.text!==d.text&&(Kr(D)&&l(w,D,0,D.length-1),n.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<r.pre.length;++p)r.pre[p]();for(function(y){return y.sel!==void 0}(f)||(f=o(f)),Oc(f,d)?c(f,d,g):(v=f.elm,m=n.parentNode(v),a(d,g),m!==null&&(n.insertBefore(m,d.elm,n.nextSibling(v)),l(m,[f],0,0))),p=0;p<g.length;++p)g[p].data.hook.insert(g[p]);for(p=0;p<r.post.length;++p)r.post[p]();return d}}function Zj(e,t,r){if(e.ns="http://www.w3.org/2000/svg",r!=="foreignObject"&&t!==void 0)for(let n=0;n<t.length;++n){const o=t[n].data;o!==void 0&&Zj(o,t[n].children,t[n].sel)}}function _l(e,t,r){let n,o,i,a={};if(r!==void 0?(t!==null&&(a=t),R4(r)?n=r:jg(r)?o=r.toString():r&&r.sel&&(n=[r])):t!=null&&(R4(t)?n=t:jg(t)?o=t.toString():t&&t.sel?n=[t]:a=t),n!==void 0)for(i=0;i<n.length;++i)jg(n[i])&&(n[i]=Bd(void 0,void 0,void 0,n[i],void 0));return e[0]!=="s"||e[1]!=="v"||e[2]!=="g"||e.length!==3&&e[3]!=="."&&e[3]!=="#"||Zj(a,n,e),Bd(e,a,n,o,void 0)}function sA(e,t){let r;const n=t.elm;let o=e.data.attrs,i=t.data.attrs;if((o||i)&&o!==i){for(r in o=o||{},i=i||{},i){const a=i[r];o[r]!==a&&(a===!0?n.setAttribute(r,""):a===!1?n.removeAttribute(r):r.charCodeAt(0)!==120?n.setAttribute(r,a):r.charCodeAt(3)===58?n.setAttributeNS("http://www.w3.org/XML/1998/namespace",r,a):r.charCodeAt(5)===58?n.setAttributeNS("http://www.w3.org/1999/xlink",r,a):n.setAttribute(r,a))}for(r in o)r in i||n.removeAttribute(r)}}const Eq={create:sA,update:sA};function lA(e,t){let r,n;const o=t.elm;let i=e.data.class,a=t.data.class;if((i||a)&&i!==a){for(n in i=i||{},a=a||{},i)i[n]&&!Object.prototype.hasOwnProperty.call(a,n)&&o.classList.remove(n);for(n in a)r=a[n],r!==i[n]&&o.classList[r?"add":"remove"](n)}}const Dq={create:lA,update:lA},cA=/[A-Z]/g;function fA(e,t){const r=t.elm;let n,o=e.data.dataset,i=t.data.dataset;if(!o&&!i||o===i)return;o=o||{},i=i||{};const a=r.dataset;for(n in o)i[n]||(a?n in a&&delete a[n]:r.removeAttribute("data-"+n.replace(cA,"-$&").toLowerCase()));for(n in i)o[n]!==i[n]&&(a?a[n]=i[n]:r.setAttribute("data-"+n.replace(cA,"-$&").toLowerCase(),i[n]))}const Cq={create:fA,update:fA};function Qj(e,t,r){if(typeof e=="function")e.call(t,r,t);else if(typeof e=="object")for(let n=0;n<e.length;n++)Qj(e[n],t,r)}function Sq(e,t){const r=e.type,n=t.data.on;n&&n[r]&&Qj(n[r],t,e)}function a1(e,t){const r=e.data.on,n=e.listener,o=e.elm,i=t&&t.data.on,a=t&&t.elm;let u;if(r!==i){if(r&&n)if(i)for(u in r)i[u]||o.removeEventListener(u,n,!1);else for(u in r)o.removeEventListener(u,n,!1);if(i){const s=t.listener=e.listener||function l(c){Sq(c,l.vnode)};if(s.vnode=t,r)for(u in i)r[u]||a.addEventListener(u,s,!1);else for(u in i)a.addEventListener(u,s,!1)}}}const xq={create:a1,update:a1,destroy:a1};function dA(e,t){let r,n,o;const i=t.elm;let a=e.data.props,u=t.data.props;if((a||u)&&a!==u)for(r in a=a||{},u=u||{},u)n=u[r],o=a[r],o===n||r==="value"&&i[r]===n||(i[r]=n)}const Aq={create:dA,update:dA},pA=typeof window<"u"&&window.requestAnimationFrame.bind(window)||setTimeout;let u1=!1;function Oq(e,t,r){(function(n){pA(function(){pA(n)})})(function(){e[t]=r})}function hA(e,t){let r,n;const o=t.elm;let i=e.data.style,a=t.data.style;if(!i&&!a||i===a)return;i=i||{},a=a||{};const u="delayed"in i;for(n in i)a[n]||(n[0]==="-"&&n[1]==="-"?o.style.removeProperty(n):o.style[n]="");for(n in a)if(r=a[n],n==="delayed"&&a.delayed)for(const s in a.delayed)r=a.delayed[s],u&&r===i.delayed[s]||Oq(o.style,s,r);else n!=="remove"&&r!==i[n]&&(n[0]==="-"&&n[1]==="-"?o.style.setProperty(n,r):o.style[n]=r)}const Bq={pre:function(){u1=!1},create:hA,update:hA,destroy:function(e){let t,r;const n=e.elm,o=e.data.style;if(o&&(t=o.destroy))for(r in t)n.style[r]=t[r]},remove:function(e,t){const r=e.data.style;if(!r||!r.remove)return void t();let n;u1||(e.elm.offsetLeft,u1=!0);const o=e.elm;let i=0;const a=r.remove;let u=0;const s=[];for(n in a)s.push(n),o.style[n]=a[n];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&&t()})}};function eP(e,t){for(const r of e)r!=null&&r!==!1&&r!==""&&(Array.isArray(r)?eP(r,t):typeof r=="string"||typeof r=="number"||typeof r=="boolean"?t.push(Bd(void 0,void 0,void 0,String(r),void 0)):t.push(r));return t}function be(e,t,...r){const n=eP(r,[]);return typeof e=="function"?e(t,n):n.length===1&&!n[0].sel&&n[0].text?_l(e,t,n[0].text):_l(e,t,n)}be||(be={});var kq=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Fq=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,tP="\\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",Tq="[\\ud800-\\udfff]",gA="["+tP+"]",zv="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",rP="\\d+",_q="[\\u2700-\\u27bf]",nP="[a-z\\xdf-\\xf6\\xf8-\\xff]",oP="[^\\ud800-\\udfff"+tP+rP+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",L4="\\ud83c[\\udffb-\\udfff]",iP="[^\\ud800-\\udfff]",g5="(?:\\ud83c[\\udde6-\\uddff]){2}",v5="[\\ud800-\\udbff][\\udc00-\\udfff]",qs="[A-Z\\xc0-\\xd6\\xd8-\\xde]",vA="(?:"+nP+"|"+oP+")",jq="(?:"+qs+"|"+oP+")",mA="(?:"+zv+"|"+L4+")?",aP="[\\ufe0e\\ufe0f]?"+mA+("(?:\\u200d(?:"+[iP,g5,v5].join("|")+")[\\ufe0e\\ufe0f]?"+mA+")*"),Pq="(?:"+[_q,g5,v5].join("|")+")"+aP,Nq="(?:"+[iP+zv+"?",zv,g5,v5,Tq].join("|")+")",Iq=RegExp("['’]","g"),Rq=RegExp(zv,"g"),Lq=RegExp(L4+"(?="+L4+")|"+Nq+aP,"g"),Mq=RegExp([qs+"?"+nP+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[gA,qs,"$"].join("|")+")",jq+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[gA,qs+vA,"$"].join("|")+")",qs+"?"+vA+"+(?:['’](?:d|ll|m|re|s|t|ve))?",qs+"+(?:['’](?:D|LL|M|RE|S|T|VE))?",rP,Pq].join("|"),"g"),zq=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),$q=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Hq=typeof at=="object"&&at&&at.Object===Object&&at,Uq=typeof self=="object"&&self&&self.Object===Object&&self,Vq=Hq||Uq||Function("return this")(),s1,Wq=(s1={À:"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(e){return s1==null?void 0:s1[e]});function uP(e){return zq.test(e)}function Gq(e){return uP(e)?function(t){return t.match(Lq)||[]}(e):function(t){return t.split("")}(e)}var qq=Object.prototype.toString,yA=Vq.Symbol,bA=yA?yA.prototype:void 0,wA=bA?bA.toString:void 0;function Kq(e){if(typeof e=="string")return e;if(function(r){return typeof r=="symbol"||function(n){return!!n&&typeof n=="object"}(r)&&qq.call(r)=="[object Symbol]"}(e))return wA?wA.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function Xq(e,t,r){var n=e.length;return r=r===void 0?n:r,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}(e,t,r)}function Pg(e){return e==null?"":Kq(e)}var EA,Yq=(EA=function(e,t,r){return t=t.toLowerCase(),e+(r?Jq(Pg(t).toLowerCase()):t)},function(e){return function(t,r,n,o){var i=-1,a=t?t.length:0;for(o;++i<a;)n=r(n,t[i],i,t);return n}(function(t,r,n){return t=Pg(t),(r=r)===void 0?function(o){return $q.test(o)}(t)?function(o){return o.match(Mq)||[]}(t):function(o){return o.match(kq)||[]}(t):t.match(r)||[]}(function(t){return(t=Pg(t))&&t.replace(Fq,Wq).replace(Rq,"")}(e).replace(Iq,"")),EA,"")}),DA,Jq=(DA="toUpperCase",function(e){var t=uP(e=Pg(e))?Gq(e):void 0,r=t?t[0]:e.charAt(0),n=t?Xq(t,1).join(""):e.slice(1);return r[DA]()+n});for(var Zq=Yq,Qq=typeof window<"u"&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),l1={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},sP={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:Qq?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},m5={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},xh=1;xh<20;xh++)m5["f"+xh]=111+xh;function lP(e,t,r){t&&!("byKey"in t)&&(r=t,t=null),Array.isArray(e)||(e=[e]);var n=e.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 l1)l[l1[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=cP(h),D=l1[w];if(h.length>1&&!D&&!sP[h]&&!m5[w])throw new TypeError('Unknown modifier: "'+h+'"');f!==1&&D||(s?l.key=w:l.which=eK(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,t)}),o=function(i){return n.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 r==null?o:o(r)}function eK(e){return e=cP(e),m5[e]||e.toUpperCase().charCodeAt(0)}function cP(e){return e=e.toLowerCase(),e=sP[e]||e}var tK=lP,c1=function(e,t){return lP(e,{byKey:!0},t)},rK=/^\s+|\s+$/g,nK=/^[-+]0x[0-9a-f]+$/i,oK=/^0b[01]+$/i,iK=/^0o[0-7]+$/i,aK=parseInt,uK=typeof at=="object"&&at&&at.Object===Object&&at,sK=typeof self=="object"&&self&&self.Object===Object&&self,lK=uK||sK||Function("return this")(),cK=Object.prototype.toString,fK=Math.max,dK=Math.min,f1=function(){return lK.Date.now()};function M4(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function CA(e){if(typeof e=="number")return e;if(function(n){return typeof n=="symbol"||function(o){return!!o&&typeof o=="object"}(n)&&cK.call(n)=="[object Symbol]"}(e))return NaN;if(M4(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=M4(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(rK,"");var r=oK.test(e);return r||iK.test(e)?aK(e.slice(2),r?2:8):nK.test(e)?NaN:+e}var bs,fP=function(e,t,r){var n,o,i,a,u,s,l=0,c=!1,f=!1,d=!0;if(typeof e!="function")throw new TypeError("Expected a function");function p(b){var w=n,D=o;return n=o=void 0,l=b,a=e.apply(D,w)}function v(b){return l=b,u=setTimeout(g,t),c?p(b):a}function m(b){var w=b-s;return s===void 0||w>=t||w<0||f&&b-l>=i}function g(){var b=f1();if(m(b))return y(b);u=setTimeout(g,function(w){var D=t-(w-s);return f?dK(D,i-(w-l)):D}(b))}function y(b){return u=void 0,d&&n?p(b):(n=o=void 0,a)}function h(){var b=f1(),w=m(b);if(n=arguments,o=this,s=b,w){if(u===void 0)return v(s);if(f)return u=setTimeout(g,t),p(s)}return u===void 0&&(u=setTimeout(g,t)),a}return t=CA(t)||0,M4(r)&&(c=!!r.leading,i=(f="maxWait"in r)?fK(CA(r.maxWait)||0,t):i,d="trailing"in r?!!r.trailing:d),h.cancel=function(){u!==void 0&&clearTimeout(u),l=0,n=s=o=u=void 0},h.flush=function(){return u===void 0?a:y(f1())},h},dP=Zu(function(e,t){var r="__lodash_hash_undefined__",n=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]",O="[object Int32Array]",F="[object Uint8Array]",L="[object Uint8ClampedArray]",H="[object Uint16Array]",M="[object Uint32Array]",K=/\w*$/,V=/^\[object .+?Constructor\]$/,G=/^(?:0|[1-9]\d*)$/,q={};q[o]=q["[object Array]"]=q[h]=q[b]=q[i]=q[a]=q[w]=q[D]=q[S]=q[C]=q[O]=q[l]=q[c]=q[f]=q[p]=q[v]=q[m]=q[g]=q[F]=q[L]=q[H]=q[M]=!0,q["[object Error]"]=q[u]=q[y]=!1;var re=typeof at=="object"&&at&&at.Object===Object&&at,se=typeof self=="object"&&self&&self.Object===Object&&self,ue=re||se||Function("return this")(),ae=t&&!t.nodeType&&t,B=ae&&e&&!e.nodeType&&e,x=B&&B.exports===ae;function j(T,z){return T.set(z[0],z[1]),T}function $(T,z){return T.add(z),T}function X(T,z,ne,le){var ze=-1,vt=T?T.length:0;for(le;++ze<vt;)ne=z(ne,T[ze],ze,T);return ne}function U(T){var z=!1;if(T!=null&&typeof T.toString!="function")try{z=!!(T+"")}catch{}return z}function ie(T){var z=-1,ne=Array(T.size);return T.forEach(function(le,ze){ne[++z]=[ze,le]}),ne}function ge(T,z){return function(ne){return T(z(ne))}}function ve(T){var z=-1,ne=Array(T.size);return T.forEach(function(le){ne[++z]=le}),ne}var De=Array.prototype,W=Function.prototype,Ie=Object.prototype,Ae=ue["__core-js_shared__"],de=function(){var T=/[^.]+$/.exec(Ae&&Ae.keys&&Ae.keys.IE_PROTO||"");return T?"Symbol(src)_1."+T:""}(),Oe=W.toString,Ot=Ie.hasOwnProperty,$e=Ie.toString,Qe=RegExp("^"+Oe.call(Ot).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),gt=x?ue.Buffer:void 0,hr=ue.Symbol,Me=ue.Uint8Array,Pr=ge(Object.getPrototypeOf,Object),jn=Object.create,Qn=Ie.propertyIsEnumerable,cs=De.splice,ja=Object.getOwnPropertySymbols,Pn=gt?gt.isBuffer:void 0,eo=ge(Object.keys,Object),Po=to(ue,"DataView"),gr=to(ue,"Map"),vr=to(ue,"Promise"),mr=to(ue,"Set"),Br=to(ue,"WeakMap"),tr=to(Object,"create"),fn=no(Po),hc=no(gr),di=no(vr),No=no(mr),fs=no(Br),Pa=hr?hr.prototype:void 0,ds=Pa?Pa.valueOf:void 0;function Nn(T){var z=-1,ne=T?T.length:0;for(this.clear();++z<ne;){var le=T[z];this.set(le[0],le[1])}}function dn(T){var z=-1,ne=T?T.length:0;for(this.clear();++z<ne;){var le=T[z];this.set(le[0],le[1])}}function Io(T){var z=-1,ne=T?T.length:0;for(this.clear();++z<ne;){var le=T[z];this.set(le[0],le[1])}}function In(T){this.__data__=new dn(T)}function pi(T,z){var ne=_(T)||function(st){return function(Ve){return function(Xt){return!!Xt&&typeof Xt=="object"}(Ve)&&I(Ve)}(st)&&Ot.call(st,"callee")&&(!Qn.call(st,"callee")||$e.call(st)==o)}(T)?function(st,Ve){for(var Xt=-1,yr=Array(st);++Xt<st;)yr[Xt]=Ve(Xt);return yr}(T.length,String):[],le=ne.length,ze=!!le;for(var vt in T)!Ot.call(T,vt)||ze&&(vt=="length"||ch(vt,le))||ne.push(vt);return ne}function sh(T,z,ne){var le=T[z];Ot.call(T,z)&&fh(le,ne)&&(ne!==void 0||z in T)||(T[z]=ne)}function qr(T,z){for(var ne=T.length;ne--;)if(fh(T[ne][0],z))return ne;return-1}function gc(T,z,ne,le,ze,vt,st){var Ve;if(le&&(Ve=vt?le(T,ze,vt,st):le(T)),Ve!==void 0)return Ve;if(!et(T))return T;var Xt=_(T);if(Xt){if(Ve=function(ye){var Ye=ye.length,_t=ye.constructor(Ye);return Ye&&typeof ye[0]=="string"&&Ot.call(ye,"index")&&(_t.index=ye.index,_t.input=ye.input),_t}(T),!z)return function(ye,Ye){var _t=-1,Re=ye.length;for(Ye||(Ye=Array(Re));++_t<Re;)Ye[_t]=ye[_t];return Ye}(T,Ve)}else{var yr=ro(T),Na=yr==u||yr==s;if(J(T))return function(ye,Ye){if(Ye)return ye.slice();var _t=new ye.constructor(ye.length);return ye.copy(_t),_t}(T,z);if(yr==f||yr==o||Na&&!vt){if(U(T))return vt?T:{};if(Ve=function(ye){return typeof ye.constructor!="function"||hi(ye)?{}:(Ye=Pr(ye),et(Ye)?jn(Ye):{});var Ye}(Na?{}:T),!z)return function(ye,Ye){return lh(ye,vc(ye),Ye)}(T,function(ye,Ye){return ye&&lh(Ye,je(Ye),ye)}(Ve,T))}else{if(!q[yr])return vt?T:{};Ve=function(ye,Ye,_t,Re){var We=ye.constructor;switch(Ye){case h:return ps(ye);case i:case a:return new We(+ye);case b:return function(Ge,Bt){var kr=Bt?ps(Ge.buffer):Ge.buffer;return new Ge.constructor(kr,Ge.byteOffset,Ge.byteLength)}(ye,Re);case w:case D:case S:case C:case O:case F:case L:case H:case M:return function(Ge,Bt){var kr=Bt?ps(Ge.buffer):Ge.buffer;return new Ge.constructor(kr,Ge.byteOffset,Ge.length)}(ye,Re);case l:return function(Ge,Bt,kr){return X(Bt?kr(ie(Ge),!0):ie(Ge),j,new Ge.constructor)}(ye,Re,_t);case c:case m:return new We(ye);case p:return function(Ge){var Bt=new Ge.constructor(Ge.source,K.exec(Ge));return Bt.lastIndex=Ge.lastIndex,Bt}(ye);case v:return function(Ge,Bt,kr){return X(Bt?kr(ve(Ge),!0):ve(Ge),$,new Ge.constructor)}(ye,Re,_t);case g:return function(Ge){return ds?Object(ds.call(Ge)):{}}(ye)}}(T,yr,gc,z)}}st||(st=new In);var Mo=st.get(T);if(Mo)return Mo;if(st.set(T,Ve),!Xt)var gi=ne?function(ye){return function(Ye,_t,Re){var We=_t(Ye);return _(Ye)?We:function(Ge,Bt){for(var kr=-1,Nr=Bt.length,Rn=Ge.length;++kr<Nr;)Ge[Rn+kr]=Bt[kr];return Ge}(We,Re(Ye))}(ye,je,vc)}(T):je(T);return function(ye,Ye){for(var _t=-1,Re=ye?ye.length:0;++_t<Re&&Ye(ye[_t],_t,ye)!==!1;);}(gi||T,function(ye,Ye){gi&&(ye=T[Ye=ye]),sh(Ve,Ye,gc(ye,z,ne,le,Ye,T,st))}),Ve}function Ro(T){return!(!et(T)||function(z){return!!de&&de in z}(T))&&(he(T)||U(T)?Qe:V).test(no(T))}function ps(T){var z=new T.constructor(T.byteLength);return new Me(z).set(new Me(T)),z}function lh(T,z,ne,le){ne||(ne={});for(var ze=-1,vt=z.length;++ze<vt;){var st=z[ze],Ve=void 0;sh(ne,st,Ve===void 0?T[st]:Ve)}return ne}function Lo(T,z){var ne,le,ze=T.__data__;return((le=typeof(ne=z))=="string"||le=="number"||le=="symbol"||le=="boolean"?ne!=="__proto__":ne===null)?ze[typeof z=="string"?"string":"hash"]:ze.map}function to(T,z){var ne=function(le,ze){return le==null?void 0:le[ze]}(T,z);return Ro(ne)?ne:void 0}Nn.prototype.clear=function(){this.__data__=tr?tr(null):{}},Nn.prototype.delete=function(T){return this.has(T)&&delete this.__data__[T]},Nn.prototype.get=function(T){var z=this.__data__;if(tr){var ne=z[T];return ne===r?void 0:ne}return Ot.call(z,T)?z[T]:void 0},Nn.prototype.has=function(T){var z=this.__data__;return tr?z[T]!==void 0:Ot.call(z,T)},Nn.prototype.set=function(T,z){return this.__data__[T]=tr&&z===void 0?r:z,this},dn.prototype.clear=function(){this.__data__=[]},dn.prototype.delete=function(T){var z=this.__data__,ne=qr(z,T);return!(ne<0)&&(ne==z.length-1?z.pop():cs.call(z,ne,1),!0)},dn.prototype.get=function(T){var z=this.__data__,ne=qr(z,T);return ne<0?void 0:z[ne][1]},dn.prototype.has=function(T){return qr(this.__data__,T)>-1},dn.prototype.set=function(T,z){var ne=this.__data__,le=qr(ne,T);return le<0?ne.push([T,z]):ne[le][1]=z,this},Io.prototype.clear=function(){this.__data__={hash:new Nn,map:new(gr||dn),string:new Nn}},Io.prototype.delete=function(T){return Lo(this,T).delete(T)},Io.prototype.get=function(T){return Lo(this,T).get(T)},Io.prototype.has=function(T){return Lo(this,T).has(T)},Io.prototype.set=function(T,z){return Lo(this,T).set(T,z),this},In.prototype.clear=function(){this.__data__=new dn},In.prototype.delete=function(T){return this.__data__.delete(T)},In.prototype.get=function(T){return this.__data__.get(T)},In.prototype.has=function(T){return this.__data__.has(T)},In.prototype.set=function(T,z){var ne=this.__data__;if(ne instanceof dn){var le=ne.__data__;if(!gr||le.length<199)return le.push([T,z]),this;ne=this.__data__=new Io(le)}return ne.set(T,z),this};var vc=ja?ge(ja,Object):function(){return[]},ro=function(T){return $e.call(T)};function ch(T,z){return!!(z=z??n)&&(typeof T=="number"||G.test(T))&&T>-1&&T%1==0&&T<z}function hi(T){var z=T&&T.constructor;return T===(typeof z=="function"&&z.prototype||Ie)}function no(T){if(T!=null){try{return Oe.call(T)}catch{}try{return T+""}catch{}}return""}function fh(T,z){return T===z||T!=T&&z!=z}(Po&&ro(new Po(new ArrayBuffer(1)))!=b||gr&&ro(new gr)!=l||vr&&ro(vr.resolve())!=d||mr&&ro(new mr)!=v||Br&&ro(new Br)!=y)&&(ro=function(T){var z=$e.call(T),ne=z==f?T.constructor:void 0,le=ne?no(ne):void 0;if(le)switch(le){case fn:return b;case hc:return l;case di:return d;case No:return v;case fs:return y}return z});var _=Array.isArray;function I(T){return T!=null&&function(z){return typeof z=="number"&&z>-1&&z%1==0&&z<=n}(T.length)&&!he(T)}var J=Pn||function(){return!1};function he(T){var z=et(T)?$e.call(T):"";return z==u||z==s}function et(T){var z=typeof T;return!!T&&(z=="object"||z=="function")}function je(T){return I(T)?pi(T):function(z){if(!hi(z))return eo(z);var ne=[];for(var le in Object(z))Ot.call(z,le)&&le!="constructor"&&ne.push(le);return ne}(T)}e.exports=function(T){return gc(T,!0,!0)}});function SA(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var pK=0;function hK(e){return"__private_"+pK+++"_"+e}function gK(e,t,r){const n=[];return e.forEach(o=>typeof o!="string"?n.push(o):t[Symbol.split](o).forEach((i,a,u)=>{i!==""&&n.push(i),a<u.length-1&&n.push(r)})),n}/**
- * Takes a string with placeholder variables like `%{smart_count} file selected`
- * and replaces it with values from options `{smart_count: 5}`
- *
- * @license https://github.com/airbnb/polyglot.js/blob/master/LICENSE
- * taken from https://github.com/airbnb/polyglot.js/blob/master/lib/polyglot.js#L299
- *
- * @param {string} phrase that needs interpolation, with placeholders
- * @param {object} options with values that will be used to replace placeholders
- * @returns {any[]} interpolated
- */function xA(e,t){const r=/\$/g;let n=[e];if(t==null)return n;for(const o of Object.keys(t))if(o!=="_"){let i=t[o];typeof i=="string"&&(i=r[Symbol.replace](i,"$$$$")),n=gK(n,new RegExp(`%\\{${o}\\}`,"g"),i)}return n}var pP=(bs=hK("apply"),class{constructor(e){Object.defineProperty(this,bs,{value:vK}),this.locale={strings:{},pluralize:t=>t===1?0:1},Array.isArray(e)?e.forEach(SA(this,bs)[bs],this):SA(this,bs)[bs](e)}translate(e,t){return this.translateArray(e,t).join("")}translateArray(e,t){if(!function(n,o){return Object.prototype.hasOwnProperty.call(n,o)}(this.locale.strings,e))throw new Error(`missing string: ${e}`);const r=this.locale.strings[e];if(typeof r=="object"){if(t&&t.smart_count!==void 0)return xA(r[this.locale.pluralize(t.smart_count)],t);throw new Error("Attempted to use a string with plural forms, but no value was given for %{smart_count}")}return xA(r,t)}});function vK(e){if(e==null||!e.strings)return;const t=this.locale;this.locale={...t,strings:{...t.strings,...e.strings}},this.locale.pluralize=e.pluralize||t.pluralize}var hP=function(){var e={},t=e._fns={};return e.emit=function(r,n,o,i,a,u,s){var l=function(c){for(var f=t[c]?t[c]:[],d=c.indexOf(":"),p=d===-1?[c]:[c.substring(0,d),c.substring(d+1)],v=Object.keys(t),m=0,g=v.length;m<g;m++){var y=v[m];if(y==="*"&&(f=f.concat(t[y])),p.length===2&&p[0]===y){f=f.concat(t[y]);break}}return f}(r);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)}(r,l,[n,o,i,a,u,s])},e.on=function(r,n){t[r]||(t[r]=[]),t[r].push(n)},e.once=function(r,n){this.on(r,function o(){n.apply(this,arguments),e.off(r,o)})},e.off=function(r,n){var o=[];if(r&&n)for(var i=this._fns[r],a=0,u=i?i.length:0;a<u;a++)i[a]!==n&&o.push(i[a]);o.length?this._fns[r]=o:delete this._fns[r]},e},mK={nanoid:(e=21)=>{let t="",r=crypto.getRandomValues(new Uint8Array(e));for(;e--;){let n=63&r[e];t+=n<36?n.toString(36):n<62?(n-26).toString(36).toUpperCase():n<63?"_":"-"}return t}},d1=function(e){if(typeof e!="number"||isNaN(e))throw new TypeError("Expected a number, got "+typeof e);var t=e<0,r=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];if(t&&(e=-e),e<1)return(t?"-":"")+e+" B";var n=Math.min(Math.floor(Math.log(e)/Math.log(1024)),r.length-1);e=Number(e/Math.pow(1024,n));var o=r[n];return e>=10||e%1==0?(t?"-":"")+e.toFixed(0)+" "+o:(t?"-":"")+e.toFixed(1)+" "+o};function gP(e,t){this.text=e=e||"",this.hasWild=~e.indexOf("*"),this.separator=t,this.parts=e.split(t)}gP.prototype.match=function(e){var t,r,n=!0,o=this.parts,i=o.length;if(typeof e=="string"||e instanceof String)if(this.hasWild||this.text==e){for(r=(e||"").split(this.separator),t=0;n&&t<i;t++)o[t]!=="*"&&(n=t<r.length&&o[t]===r[t]);n=n&&r}else n=!1;else if(typeof e.splice=="function")for(n=[],t=e.length;t--;)this.match(e[t])&&(n[n.length]=e[t]);else if(typeof e=="object")for(var a in n={},e)this.match(a)&&(n[a]=e[a]);return n};var yK=/[\/\+\.]/,bK=function(e,t){function r(n){var o=function(i,a,u){var s=new gP(i,u||/[\/\.]/);return a!==void 0?s.match(a):s}(n,e,yK);return o&&o.length>=2}return t?r(t.split(";")[0]):r},wK=0;function EK(e){return"__private_"+wK+++"_"+e}var p1=EK("publish");class vP{constructor(){Object.defineProperty(this,p1,{value:DK}),this.state={},this.callbacks=[]}getState(){return this.state}setState(t){const r={...this.state},n={...this.state,...t};this.state=n,function(o,i){if(!Object.prototype.hasOwnProperty.call(o,i))throw new TypeError("attempted to use private field on non-instance");return o}(this,p1)[p1](r,n,t)}subscribe(t){return this.callbacks.push(t),()=>{this.callbacks.splice(this.callbacks.indexOf(t),1)}}}function DK(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];this.callbacks.forEach(n=>{n(...t)})}vP.VERSION="2.0.3";var AA=function(e){const t=e.lastIndexOf(".");return t===-1||t===e.length-1?{name:e,extension:void 0}:{name:e.slice(0,t),extension:e.slice(t+1)}},OA={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 BA(e){let t="";return e.replace(/[^A-Z0-9]/gi,r=>(t+=`-${function(n){return n.charCodeAt(0).toString(32)}(r)}`,"/"))+t}var CK=function(e){if(e==null&&(e=typeof navigator<"u"?navigator.userAgent:null),!e)return!0;const t=/Edge\/(\d+\.\d+)/.exec(e);if(!t)return!0;const r=t[1];let[n,o]=r.split(".");return n=parseInt(n,10),o=parseInt(o,10),n<15||n===15&&o<15063||n>18||n===18&&o>=18218},mP={justErrorsLogger:{debug:()=>{},warn:()=>{},error:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r]}},debugLogger:{debug:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r]},warn:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r]},error:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r]}}},SK={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}"}}},yP=mK;let bP,wP;function fe(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var xK=0;function Kt(e){return"__private_"+xK+++"_"+e}const{nanoid:AK}=yP,{justErrorsLogger:OK,debugLogger:BK}=mP;class fo extends Error{constructor(){super(...arguments),this.isRestriction=!0}}typeof AggregateError>"u"&&(globalThis.AggregateError=class extends Error{constructor(e,t){super(t),this.errors=e}});class kK extends AggregateError{constructor(){super(...arguments),this.isRestriction=!0}}var cr=Kt("plugins"),Bc=Kt("storeUnsubscribe"),$o=Kt("emitter"),ru=Kt("preProcessors"),nu=Kt("uploaders"),qo=Kt("postProcessors"),Zf=Kt("checkRestrictions"),h1=Kt("checkMinNumberOfFiles"),kd=Kt("checkRequiredMetaFieldsOnFile"),g1=Kt("checkRequiredMetaFields"),Yt=Kt("showOrLogErrorAndThrow"),kc=Kt("assertNewUploadAllowed"),Fc=Kt("checkAndCreateFileStateObject"),Tc=Kt("startIfAutoProceed"),v1=Kt("addListeners"),Mn=Kt("updateOnlineStatus"),Ho=Kt("createUpload"),m1=Kt("getUpload"),uu=Kt("removeUpload"),Uo=Kt("runUpload");bP=Symbol.for("uppy test: getPlugins"),wP=Symbol.for("uppy test: createUpload");class EP{constructor(t){Object.defineProperty(this,Uo,{value:HK}),Object.defineProperty(this,uu,{value:$K}),Object.defineProperty(this,m1,{value:zK}),Object.defineProperty(this,Ho,{value:MK}),Object.defineProperty(this,v1,{value:LK}),Object.defineProperty(this,Tc,{value:RK}),Object.defineProperty(this,Fc,{value:IK}),Object.defineProperty(this,kc,{value:NK}),Object.defineProperty(this,Yt,{value:PK}),Object.defineProperty(this,g1,{value:jK}),Object.defineProperty(this,kd,{value:_K}),Object.defineProperty(this,h1,{value:TK}),Object.defineProperty(this,Zf,{value:FK}),Object.defineProperty(this,cr,{writable:!0,value:Object.create(null)}),Object.defineProperty(this,Bc,{writable:!0,value:void 0}),Object.defineProperty(this,$o,{writable:!0,value:hP()}),Object.defineProperty(this,ru,{writable:!0,value:new Set}),Object.defineProperty(this,nu,{writable:!0,value:new Set}),Object.defineProperty(this,qo,{writable:!0,value:new Set}),Object.defineProperty(this,Mn,{writable:!0,value:this.updateOnlineStatus.bind(this)}),this.defaultLocale=SK;const r={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:n=>n,onBeforeUpload:n=>n,store:new vP,logger:OK,infoTimeout:5e3};if(this.opts={...r,...t,restrictions:{...r.restrictions,...t&&t.restrictions}},t&&t.logger&&t.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"):t&&t.debug&&(this.opts.logger=BK),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=zu(this.calculateProgress.bind(this),500,{leading:!0,trailing:!0}),this.store=this.opts.store,this.setState({plugins:{},files:{},currentUploads:{},allowNewUpload:!0,capabilities:{uploadProgress:CK(),individualCancellation:!0,resumableUploads:!1},totalProgress:0,meta:{...this.opts.meta},info:[],recoveredState:null}),fe(this,Bc)[Bc]=this.store.subscribe((n,o,i)=>{this.emit("state-update",n,o,i),this.updateAll(o)}),this.opts.debug&&typeof window<"u"&&(window[this.opts.id]=this),fe(this,v1)[v1]()}emit(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];fe(this,$o)[$o].emit(t,...n)}on(t,r){return fe(this,$o)[$o].on(t,r),this}once(t,r){return fe(this,$o)[$o].once(t,r),this}off(t,r){return fe(this,$o)[$o].off(t,r),this}updateAll(t){this.iteratePlugins(r=>{r.update(t)})}setState(t){this.store.setState(t)}getState(){return this.store.getState()}get state(){return this.getState()}setFileState(t,r){if(!this.getState().files[t])throw new Error(`Can’t set state for ${t} (the file could have been removed)`);this.setState({files:{...this.getState().files,[t]:{...this.getState().files[t],...r}}})}i18nInit(){const t=new pP([this.defaultLocale,this.opts.locale]);this.i18n=t.translate.bind(t),this.i18nArray=t.translateArray.bind(t),this.locale=t.locale}setOptions(t){this.opts={...this.opts,...t,restrictions:{...this.opts.restrictions,...t&&t.restrictions}},t.meta&&this.setMeta(t.meta),this.i18nInit(),t.locale&&this.iteratePlugins(r=>{r.setOptions()}),this.setState()}resetProgress(){const t={percentage:0,bytesUploaded:0,uploadComplete:!1,uploadStarted:null},r={...this.getState().files},n={};Object.keys(r).forEach(o=>{const i={...r[o]};i.progress={...i.progress,...t},n[o]=i}),this.setState({files:n,totalProgress:0}),this.emit("reset-progress")}addPreProcessor(t){fe(this,ru)[ru].add(t)}removePreProcessor(t){return fe(this,ru)[ru].delete(t)}addPostProcessor(t){fe(this,qo)[qo].add(t)}removePostProcessor(t){return fe(this,qo)[qo].delete(t)}addUploader(t){fe(this,nu)[nu].add(t)}removeUploader(t){return fe(this,nu)[nu].delete(t)}setMeta(t){const r={...this.getState().meta,...t},n={...this.getState().files};Object.keys(n).forEach(o=>{n[o]={...n[o],meta:{...n[o].meta,...t}}}),this.log("Adding metadata:"),this.log(t),this.setState({meta:r,files:n})}setFileMeta(t,r){const n={...this.getState().files};if(!n[t])return void this.log("Was trying to set metadata for a file that has been removed: ",t);const o={...n[t].meta,...r};n[t]={...n[t],meta:o},this.setState({files:n})}getFile(t){return this.getState().files[t]}getFiles(){const{files:t}=this.getState();return Object.values(t)}getObjectOfFilesPerState(){const{files:t,totalProgress:r,error:n}=this.getState(),o=Object.values(t),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:r===100&&c.length===o.length&&p.length===0,isAllErrored:!!n&&f.length===o.length,isAllPaused:i.length!==0&&l.length===i.length,isUploadInProgress:i.length>0,isSomeGhost:o.some(v=>v.isGhost)}}validateRestrictions(t,r){try{return fe(this,Zf)[Zf](t,r),{result:!0}}catch(n){return{result:!1,reason:n.message}}}checkIfFileAlreadyExists(t){const{files:r}=this.getState();return!(!r[t]||r[t].isGhost)}addFile(t){fe(this,kc)[kc](t);const{files:r}=this.getState();let n=fe(this,Fc)[Fc](r,t);return r[n.id]&&r[n.id].isGhost&&(n={...r[n.id],data:t.data,isGhost:!1},this.log(`Replaced the blob in the restored ghost file: ${n.name}, ${n.id}`)),this.setState({files:{...r,[n.id]:n}}),this.emit("file-added",n),this.emit("files-added",[n]),this.log(`Added file: ${n.name}, ${n.id}, mime type: ${n.type}`),fe(this,Tc)[Tc](),n.id}addFiles(t){fe(this,kc)[kc]();const r={...this.getState().files},n=[],o=[];for(let i=0;i<t.length;i++)try{let a=fe(this,Fc)[Fc](r,t[i]);r[a.id]&&r[a.id].isGhost&&(a={...r[a.id],data:t[i].data,isGhost:!1},this.log(`Replaced blob in a ghost file: ${a.name}, ${a.id}`)),r[a.id]=a,n.push(a)}catch(a){a.isRestriction||o.push(a)}if(this.setState({files:r}),n.forEach(i=>{this.emit("file-added",i)}),this.emit("files-added",n),n.length>5?this.log(`Added batch of ${n.length} files`):Object.keys(n).forEach(i=>{this.log(`Added file: ${n[i].name}
- id: ${n[i].id}
- type: ${n[i].type}`)}),n.length>0&&fe(this,Tc)[Tc](),o.length>0){let i=`Multiple errors occurred while adding files:
- `;if(o.forEach(a=>{i+=`
- * ${a.message}`}),this.info({message:this.i18n("addBulkFilesFailed",{smart_count:o.length}),details:i},"error",this.opts.infoTimeout),typeof AggregateError=="function")throw new AggregateError(o,i);{const a=new Error(i);throw a.errors=o,a}}}removeFiles(t,r){const{files:n,currentUploads:o}=this.getState(),i={...n},a={...o},u=Object.create(null);function s(f){return u[f]===void 0}t.forEach(f=>{n[f]&&(u[f]=n[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],r)}),c.length>5?this.log(`Removed ${c.length} files`):this.log(`Removed files: ${c.join(", ")}`)}removeFile(t,r){r===void 0&&(r=null),this.removeFiles([t],r)}pauseResume(t){if(!this.getState().capabilities.resumableUploads||this.getFile(t).uploadComplete)return;const r=!this.getFile(t).isPaused;return this.setFileState(t,{isPaused:r}),this.emit("upload-pause",t,r),r}pauseAll(){const t={...this.getState().files};Object.keys(t).filter(r=>!t[r].progress.uploadComplete&&t[r].progress.uploadStarted).forEach(r=>{const n={...t[r],isPaused:!0};t[r]=n}),this.setState({files:t}),this.emit("pause-all")}resumeAll(){const t={...this.getState().files};Object.keys(t).filter(r=>!t[r].progress.uploadComplete&&t[r].progress.uploadStarted).forEach(r=>{const n={...t[r],isPaused:!1,error:null};t[r]=n}),this.setState({files:t}),this.emit("resume-all")}retryAll(){const t={...this.getState().files},r=Object.keys(t).filter(o=>t[o].error);if(r.forEach(o=>{const i={...t[o],isPaused:!1,error:null};t[o]=i}),this.setState({files:t,error:null}),this.emit("retry-all",r),r.length===0)return Promise.resolve({successful:[],failed:[]});const n=fe(this,Ho)[Ho](r,{forceAllowNewUpload:!0});return fe(this,Uo)[Uo](n)}cancelAll(){this.emit("cancel-all");const{files:t}=this.getState(),r=Object.keys(t);r.length&&this.removeFiles(r,"cancel-all"),this.setState({totalProgress:0,error:null,recoveredState:null})}retryUpload(t){this.setFileState(t,{error:null,isPaused:!1}),this.emit("upload-retry",t);const r=fe(this,Ho)[Ho]([t],{forceAllowNewUpload:!0});return fe(this,Uo)[Uo](r)}reset(){this.cancelAll()}logout(){this.iteratePlugins(t=>{t.provider&&t.provider.logout&&t.provider.logout()})}calculateProgress(t,r){if(!this.getFile(t.id))return void this.log(`Not setting progress for a file that has been removed: ${t.id}`);const n=Number.isFinite(r.bytesTotal)&&r.bytesTotal>0;this.setFileState(t.id,{progress:{...this.getFile(t.id).progress,bytesUploaded:r.bytesUploaded,bytesTotal:r.bytesTotal,percentage:n?Math.round(r.bytesUploaded/r.bytesTotal*100):0}}),this.calculateTotalProgress()}calculateTotalProgress(){const t=this.getFiles().filter(s=>s.progress.uploadStarted||s.progress.preprocess||s.progress.postprocess);if(t.length===0)return this.emit("progress",0),void this.setState({totalProgress:0});const r=t.filter(s=>s.progress.bytesTotal!=null),n=t.filter(s=>s.progress.bytesTotal==null);if(r.length===0){const s=100*t.length,l=n.reduce((f,d)=>f+d.progress.percentage,0),c=Math.round(l/s*100);return void this.setState({totalProgress:c})}let o=r.reduce((s,l)=>s+l.progress.bytesTotal,0);const i=o/r.length;o+=i*n.length;let a=0;r.forEach(s=>{a+=s.progress.bytesUploaded}),n.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(t,r){if(typeof t!="function")throw new TypeError(`Expected a plugin class, but got ${t===null?"null":typeof t}. Please verify that the plugin was imported and spelled correctly.`);const n=new t(this,r),o=n.id;if(!o)throw new Error("Your plugin must have an id");if(!n.type)throw new Error("Your plugin must have a type");const i=this.getPlugin(o);if(i){const a=`Already found a plugin named '${i.id}'. Tried to use: '${o}'.
- Uppy plugins must have unique \`id\` options. See https://uppy.io/docs/plugins/#id.`;throw new Error(a)}return t.VERSION&&this.log(`Using ${o} v${t.VERSION}`),n.type in fe(this,cr)[cr]?fe(this,cr)[cr][n.type].push(n):fe(this,cr)[cr][n.type]=[n],n.install(),this}getPlugin(t){for(const r of Object.values(fe(this,cr)[cr])){const n=r.find(o=>o.id===t);if(n!=null)return n}}[bP](t){return fe(this,cr)[cr][t]}iteratePlugins(t){Object.values(fe(this,cr)[cr]).flat(1).forEach(t)}removePlugin(t){this.log(`Removing plugin ${t.id}`),this.emit("plugin-remove",t),t.uninstall&&t.uninstall();const r=fe(this,cr)[cr][t.type],n=r.findIndex(i=>i.id===t.id);n!==-1&&r.splice(n,1);const o={plugins:{...this.getState().plugins,[t.id]:void 0}};this.setState(o)}close(){this.log(`Closing Uppy instance ${this.opts.id}: removing all files and uninstalling plugins`),this.reset(),fe(this,Bc)[Bc](),this.iteratePlugins(t=>{this.removePlugin(t)}),typeof window<"u"&&window.removeEventListener&&(window.removeEventListener("online",fe(this,Mn)[Mn]),window.removeEventListener("offline",fe(this,Mn)[Mn]))}hideInfo(){const{info:t}=this.getState();this.setState({info:t.slice(1)}),this.emit("info-hidden")}info(t,r,n){r===void 0&&(r="info"),n===void 0&&(n=3e3);const o=typeof t=="object";this.setState({info:[...this.getState().info,{type:r,message:o?t.message:t,details:o?t.details:null}]}),setTimeout(()=>this.hideInfo(),n),this.emit("info-visible")}log(t,r){const{logger:n}=this.opts;switch(r){case"error":n.error(t);break;case"warning":n.warn(t);break;default:n.debug(t)}}restore(t){return this.log(`Core: attempting to restore upload "${t}"`),this.getState().currentUploads[t]?fe(this,Uo)[Uo](t):(fe(this,uu)[uu](t),Promise.reject(new Error("Nonexistent upload")))}[wP](){return fe(this,Ho)[Ho](...arguments)}addResultData(t,r){if(!fe(this,m1)[m1](t))return void this.log(`Not setting result for an upload that has been removed: ${t}`);const{currentUploads:n}=this.getState(),o={...n[t],result:{...n[t].result,...r}};this.setState({currentUploads:{...n,[t]:o}})}upload(){var t;(t=fe(this,cr)[cr].uploader)!=null&&t.length||this.log("No uploader type plugins are used","warning");let{files:r}=this.getState();const n=this.opts.onBeforeUpload(r);return n===!1?Promise.reject(new Error("Not starting the upload because onBeforeUpload returned false")):(n&&typeof n=="object"&&(r=n,this.setState({files:r})),Promise.resolve().then(()=>{fe(this,h1)[h1](r),fe(this,g1)[g1](r)}).catch(o=>{fe(this,Yt)[Yt](o)}).then(()=>{const{currentUploads:o}=this.getState(),i=Object.values(o).flatMap(s=>s.fileIDs),a=[];Object.keys(r).forEach(s=>{const l=this.getFile(s);l.progress.uploadStarted||i.indexOf(s)!==-1||a.push(l.id)});const u=fe(this,Ho)[Ho](a);return fe(this,Uo)[Uo](u)}).catch(o=>{fe(this,Yt)[Yt](o,{showInformer:!1})}))}}function FK(e,t){t===void 0&&(t=this.getFiles());const{maxFileSize:r,minFileSize:n,maxTotalFileSize:o,maxNumberOfFiles:i,allowedFileTypes:a}=this.opts.restrictions;if(i&&t.length+1>i)throw new fo(`${this.i18n("youCanOnlyUploadX",{smart_count:i})}`);if(a&&!a.some(u=>u.indexOf("/")>-1?!!e.type&&bK(e.type.replace(/;.*?$/,""),u):!(u[0]!=="."||!e.extension)&&e.extension.toLowerCase()===u.substr(1).toLowerCase())){const u=a.join(", ");throw new fo(this.i18n("youCanOnlyUploadFileTypes",{types:u}))}if(o&&e.size!=null){let u=0;if(u+=e.size,t.forEach(s=>{u+=s.size}),u>o)throw new fo(this.i18n("exceedsSize",{size:d1(o),file:e.name}))}if(r&&e.size!=null&&e.size>r)throw new fo(this.i18n("exceedsSize",{size:d1(r),file:e.name}));if(n&&e.size!=null&&e.size<n)throw new fo(this.i18n("inferiorSize",{size:d1(n)}))}function TK(e){const{minNumberOfFiles:t}=this.opts.restrictions;if(Object.keys(e).length<t)throw new fo(`${this.i18n("youHaveToAtLeastSelectX",{smart_count:t})}`)}function _K(e){const{requiredMetaFields:t}=this.opts.restrictions,{hasOwnProperty:r}=Object.prototype,n=[],o=[];for(let i=0;i<t.length;i++)if(!r.call(e.meta,t[i])||e.meta[t[i]]===""){const a=new fo(`${this.i18n("missingRequiredMetaFieldOnFile",{fileName:e.name})}`);n.push(a),o.push(t[i]),fe(this,Yt)[Yt](a,{file:e,showInformer:!1,throwErr:!1})}return this.setFileState(e.id,{missingRequiredMetaFields:o}),n}function jK(e){const t=Object.keys(e).flatMap(r=>{const n=this.getFile(r);return fe(this,kd)[kd](n)});if(t.length)throw new kK(t,`${this.i18n("missingRequiredMetaField")}`)}function PK(e,t){let{showInformer:r=!0,file:n=null,throwErr:o=!0}=t===void 0?{}:t;const i=typeof e=="object"?e.message:e,a=typeof e=="object"&&e.details?e.details:"";let u=i;if(a&&(u+=` ${a}`),e.isRestriction?(this.log(u),this.emit("restriction-failed",n,e)):this.log(u,"error"),r&&this.info({message:i,details:a},"error",this.opts.infoTimeout),o)throw typeof e=="object"?e:new Error(e)}function NK(e){const{allowNewUpload:t}=this.getState();t===!1&&fe(this,Yt)[Yt](new fo(this.i18n("noMoreFilesAllowed")),{file:e})}function IK(e,t){const r=function(f){var d;if(f.type)return f.type;const p=f.name?(d=AA(f.name).extension)==null?void 0:d.toLowerCase():null;return p&&p in OA?OA[p]:"application/octet-stream"}(t),n=function(f,d){return d.name?d.name:f.split("/")[0]==="image"?`${f.split("/")[0]}.${f.split("/")[1]}`:"noname"}(r,t),o=AA(n).extension,i=!!t.isRemote,a=function(f){let d="uppy";return typeof f.name=="string"&&(d+=`-${BA(f.name.toLowerCase())}`),f.type!==void 0&&(d+=`-${f.type}`),f.meta&&typeof f.meta.relativePath=="string"&&(d+=`-${BA(f.meta.relativePath.toLowerCase())}`),f.data.size!==void 0&&(d+=`-${f.data.size}`),f.data.lastModified!==void 0&&(d+=`-${f.data.lastModified}`),d}({...t,type:r});if(this.checkIfFileAlreadyExists(a)){const f=new fo(this.i18n("noDuplicates",{fileName:n}));fe(this,Yt)[Yt](f,{file:t})}const u=t.meta||{};u.name=n,u.type=r;const s=Number.isFinite(t.data.size)?t.data.size:null;let l={source:t.source||"",id:a,name:n,extension:o||"",meta:{...this.getState().meta,...u},type:r,data:t.data,progress:{percentage:0,bytesUploaded:0,bytesTotal:s,uploadComplete:!1,uploadStarted:null},size:s,isRemote:i,remote:t.remote||"",preview:t.preview};const c=this.opts.onBeforeFileAdded(l,e);c===!1?fe(this,Yt)[Yt](new fo("Cannot add the file because onBeforeFileAdded returned false."),{showInformer:!1,fileDescriptor:t}):typeof c=="object"&&c!==null&&(l=c);try{const f=Object.keys(e).map(d=>e[d]);fe(this,Zf)[Zf](l,f)}catch(f){fe(this,Yt)[Yt](f,{file:l})}return l}function RK(){this.opts.autoProceed&&!this.scheduledAutoProceed&&(this.scheduledAutoProceed=setTimeout(()=>{this.scheduledAutoProceed=null,this.upload().catch(e=>{e.isRestriction||this.log(e.stack||e.message||e)})},4))}function LK(){const e=(t,r,n)=>{let o=t.message||"Unknown error";t.details&&(o+=` ${t.details}`),this.setState({error:o}),r!=null&&r.id in this.getState().files&&this.setFileState(r.id,{error:o,response:n})};this.on("error",e),this.on("upload-error",(t,r,n)=>{if(e(r,t,n),typeof r=="object"&&r.message){const o=new Error(r.message);o.details=r.message,r.details&&(o.details+=` ${r.details}`),o.message=this.i18n("failedToUpload",{file:t.name}),fe(this,Yt)[Yt](o,{throwErr:!1})}else fe(this,Yt)[Yt](r,{throwErr:!1})}),this.on("upload",()=>{this.setState({error:null})}),this.on("upload-started",t=>{this.getFile(t.id)?this.setFileState(t.id,{progress:{uploadStarted:Date.now(),uploadComplete:!1,percentage:0,bytesUploaded:0,bytesTotal:t.size}}):this.log(`Not setting progress for a file that has been removed: ${t.id}`)}),this.on("upload-progress",this.calculateProgress),this.on("upload-success",(t,r)=>{if(!this.getFile(t.id))return void this.log(`Not setting progress for a file that has been removed: ${t.id}`);const n=this.getFile(t.id).progress;this.setFileState(t.id,{progress:{...n,postprocess:fe(this,qo)[qo].size>0?{mode:"indeterminate"}:null,uploadComplete:!0,percentage:100,bytesUploaded:n.bytesTotal},response:r,uploadURL:r.uploadURL,isPaused:!1}),t.size==null&&this.setFileState(t.id,{size:r.bytesUploaded||n.bytesTotal}),this.calculateTotalProgress()}),this.on("preprocess-progress",(t,r)=>{this.getFile(t.id)?this.setFileState(t.id,{progress:{...this.getFile(t.id).progress,preprocess:r}}):this.log(`Not setting progress for a file that has been removed: ${t.id}`)}),this.on("preprocess-complete",t=>{if(!this.getFile(t.id))return void this.log(`Not setting progress for a file that has been removed: ${t.id}`);const r={...this.getState().files};r[t.id]={...r[t.id],progress:{...r[t.id].progress}},delete r[t.id].progress.preprocess,this.setState({files:r})}),this.on("postprocess-progress",(t,r)=>{this.getFile(t.id)?this.setFileState(t.id,{progress:{...this.getState().files[t.id].progress,postprocess:r}}):this.log(`Not setting progress for a file that has been removed: ${t.id}`)}),this.on("postprocess-complete",t=>{if(!this.getFile(t.id))return void this.log(`Not setting progress for a file that has been removed: ${t.id}`);const r={...this.getState().files};r[t.id]={...r[t.id],progress:{...r[t.id].progress}},delete r[t.id].progress.postprocess,this.setState({files:r})}),this.on("restored",()=>{this.calculateTotalProgress()}),this.on("dashboard:file-edit-complete",t=>{t&&fe(this,kd)[kd](t)}),typeof window<"u"&&window.addEventListener&&(window.addEventListener("online",fe(this,Mn)[Mn]),window.addEventListener("offline",fe(this,Mn)[Mn]),setTimeout(fe(this,Mn)[Mn],3e3))}function MK(e,t){t===void 0&&(t={});const{forceAllowNewUpload:r=!1}=t,{allowNewUpload:n,currentUploads:o}=this.getState();if(!n&&!r)throw new Error("Cannot create a new upload: already uploading.");const i=AK();return this.emit("upload",{id:i,fileIDs:e}),this.setState({allowNewUpload:this.opts.allowMultipleUploadBatches!==!1&&this.opts.allowMultipleUploads!==!1,currentUploads:{...o,[i]:{fileIDs:e,step:0,result:{}}}}),i}function zK(e){const{currentUploads:t}=this.getState();return t[e]}function $K(e){const t={...this.getState().currentUploads};delete t[e],this.setState({currentUploads:t})}async function HK(e){let{currentUploads:t}=this.getState(),r=t[e];const n=r.step||0,o=[...fe(this,ru)[ru],...fe(this,nu)[nu],...fe(this,qo)[qo]];try{for(let a=n;a<o.length&&r;a++){const u=o[a],s={...r,step:a};this.setState({currentUploads:{...t,[e]:s}}),await u(s.fileIDs,e),t=this.getState().currentUploads,r=t[e]}}catch(a){throw this.emit("error",a),fe(this,uu)[uu](e),a}if(r){r.fileIDs.forEach(l=>{const c=this.getFile(l);c&&c.progress.postprocess&&this.emit("postprocess-complete",c)});const a=r.fileIDs.map(l=>this.getFile(l)),u=a.filter(l=>!l.error),s=a.filter(l=>l.error);await this.addResultData(e,{successful:u,failed:s,uploadID:e}),t=this.getState().currentUploads,r=t[e]}let i;return r&&(i=r.result,this.emit("complete",i),fe(this,uu)[uu](e)),i==null&&this.log(`Not setting result for an upload that has been removed: ${e}`),i}EP.VERSION="2.1.3";var DP=EP,UK=Zu(function(e,t){var r,n,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(B,x){for(var j in x)B[j]=x[j];return B}function v(B){var x=B.parentNode;x&&x.removeChild(B)}function m(B,x,j){var $,X,U,ie={};for(U in x)U=="key"?$=x[U]:U=="ref"?X=x[U]:ie[U]=x[U];if(arguments.length>2&&(ie.children=arguments.length>3?r.call(arguments,2):j),typeof B=="function"&&B.defaultProps!=null)for(U in B.defaultProps)ie[U]===void 0&&(ie[U]=B.defaultProps[U]);return g(B,ie,$,X,null)}function g(B,x,j,$,X){var U={type:B,props:x,key:j,ref:$,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:X??++o};return X==null&&n.vnode!=null&&n.vnode(U),U}function y(B){return B.children}function h(B,x){this.props=B,this.context=x}function b(B,x){if(x==null)return B.__?b(B.__,B.__.__k.indexOf(B)+1):null;for(var j;x<B.__k.length;x++)if((j=B.__k[x])!=null&&j.__e!=null)return j.__e;return typeof B.type=="function"?b(B):null}function w(B){var x,j;if((B=B.__)!=null&&B.__c!=null){for(B.__e=B.__c.base=null,x=0;x<B.__k.length;x++)if((j=B.__k[x])!=null&&j.__e!=null){B.__e=B.__c.base=j.__e;break}return w(B)}}function D(B){(!B.__d&&(B.__d=!0)&&a.push(B)&&!S.__r++||s!==n.debounceRendering)&&((s=n.debounceRendering)||u)(S)}function S(){for(var B;S.__r=a.length;)B=a.sort(function(x,j){return x.__v.__b-j.__v.__b}),a=[],B.some(function(x){var j,$,X,U,ie,ge;x.__d&&(ie=(U=(j=x).__v).__e,(ge=j.__P)&&($=[],(X=p({},U)).__v=U.__v+1,V(ge,U,X,j.__n,ge.ownerSVGElement!==void 0,U.__h!=null?[ie]:null,$,ie??b(U),U.__h),G($,U),U.__e!=ie&&w(U)))})}function C(B,x,j,$,X,U,ie,ge,ve,De){var W,Ie,Ae,de,Oe,Ot,$e,Qe=$&&$.__k||f,gt=Qe.length;for(j.__k=[],W=0;W<x.length;W++)if((de=j.__k[W]=(de=x[W])==null||typeof de=="boolean"?null:typeof de=="string"||typeof de=="number"||typeof de=="bigint"?g(null,de,null,null,de):Array.isArray(de)?g(y,{children:de},null,null,null):de.__b>0?g(de.type,de.props,de.key,null,de.__v):de)!=null){if(de.__=j,de.__b=j.__b+1,(Ae=Qe[W])===null||Ae&&de.key==Ae.key&&de.type===Ae.type)Qe[W]=void 0;else for(Ie=0;Ie<gt;Ie++){if((Ae=Qe[Ie])&&de.key==Ae.key&&de.type===Ae.type){Qe[Ie]=void 0;break}Ae=null}V(B,de,Ae=Ae||c,X,U,ie,ge,ve,De),Oe=de.__e,(Ie=de.ref)&&Ae.ref!=Ie&&($e||($e=[]),Ae.ref&&$e.push(Ae.ref,null,de),$e.push(Ie,de.__c||Oe,de)),Oe!=null?(Ot==null&&(Ot=Oe),typeof de.type=="function"&&de.__k===Ae.__k?de.__d=ve=O(de,ve,B):ve=F(B,de,Ae,Qe,Oe,ve),typeof j.type=="function"&&(j.__d=ve)):ve&&Ae.__e==ve&&ve.parentNode!=B&&(ve=b(Ae))}for(j.__e=Ot,W=gt;W--;)Qe[W]!=null&&(typeof j.type=="function"&&Qe[W].__e!=null&&Qe[W].__e==j.__d&&(j.__d=b($,W+1)),se(Qe[W],Qe[W]));if($e)for(W=0;W<$e.length;W++)re($e[W],$e[++W],$e[++W])}function O(B,x,j){for(var $,X=B.__k,U=0;X&&U<X.length;U++)($=X[U])&&($.__=B,x=typeof $.type=="function"?O($,x,j):F(j,$,$,X,$.__e,x));return x}function F(B,x,j,$,X,U){var ie,ge,ve;if(x.__d!==void 0)ie=x.__d,x.__d=void 0;else if(j==null||X!=U||X.parentNode==null)e:if(U==null||U.parentNode!==B)B.appendChild(X),ie=null;else{for(ge=U,ve=0;(ge=ge.nextSibling)&&ve<$.length;ve+=2)if(ge==X)break e;B.insertBefore(X,U),ie=U}return ie!==void 0?ie:X.nextSibling}function L(B,x,j){x[0]==="-"?B.setProperty(x,j):B[x]=j==null?"":typeof j!="number"||d.test(x)?j:j+"px"}function H(B,x,j,$,X){var U;e:if(x==="style")if(typeof j=="string")B.style.cssText=j;else{if(typeof $=="string"&&(B.style.cssText=$=""),$)for(x in $)j&&x in j||L(B.style,x,"");if(j)for(x in j)$&&j[x]===$[x]||L(B.style,x,j[x])}else if(x[0]==="o"&&x[1]==="n")U=x!==(x=x.replace(/Capture$/,"")),x=x.toLowerCase()in B?x.toLowerCase().slice(2):x.slice(2),B.l||(B.l={}),B.l[x+U]=j,j?$||B.addEventListener(x,U?K:M,U):B.removeEventListener(x,U?K:M,U);else if(x!=="dangerouslySetInnerHTML"){if(X)x=x.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if(x!=="href"&&x!=="list"&&x!=="form"&&x!=="tabIndex"&&x!=="download"&&x in B)try{B[x]=j??"";break e}catch{}typeof j=="function"||(j!=null&&(j!==!1||x[0]==="a"&&x[1]==="r")?B.setAttribute(x,j):B.removeAttribute(x))}}function M(B){this.l[B.type+!1](n.event?n.event(B):B)}function K(B){this.l[B.type+!0](n.event?n.event(B):B)}function V(B,x,j,$,X,U,ie,ge,ve){var De,W,Ie,Ae,de,Oe,Ot,$e,Qe,gt,hr,Me=x.type;if(x.constructor!==void 0)return null;j.__h!=null&&(ve=j.__h,ge=x.__e=j.__e,x.__h=null,U=[ge]),(De=n.__b)&&De(x);try{e:if(typeof Me=="function"){if($e=x.props,Qe=(De=Me.contextType)&&$[De.__c],gt=De?Qe?Qe.props.value:De.__:$,j.__c?Ot=(W=x.__c=j.__c).__=W.__E:("prototype"in Me&&Me.prototype.render?x.__c=W=new Me($e,gt):(x.__c=W=new h($e,gt),W.constructor=Me,W.render=ue),Qe&&Qe.sub(W),W.props=$e,W.state||(W.state={}),W.context=gt,W.__n=$,Ie=W.__d=!0,W.__h=[]),W.__s==null&&(W.__s=W.state),Me.getDerivedStateFromProps!=null&&(W.__s==W.state&&(W.__s=p({},W.__s)),p(W.__s,Me.getDerivedStateFromProps($e,W.__s))),Ae=W.props,de=W.state,Ie)Me.getDerivedStateFromProps==null&&W.componentWillMount!=null&&W.componentWillMount(),W.componentDidMount!=null&&W.__h.push(W.componentDidMount);else{if(Me.getDerivedStateFromProps==null&&$e!==Ae&&W.componentWillReceiveProps!=null&&W.componentWillReceiveProps($e,gt),!W.__e&&W.shouldComponentUpdate!=null&&W.shouldComponentUpdate($e,W.__s,gt)===!1||x.__v===j.__v){W.props=$e,W.state=W.__s,x.__v!==j.__v&&(W.__d=!1),W.__v=x,x.__e=j.__e,x.__k=j.__k,x.__k.forEach(function(Pr){Pr&&(Pr.__=x)}),W.__h.length&&ie.push(W);break e}W.componentWillUpdate!=null&&W.componentWillUpdate($e,W.__s,gt),W.componentDidUpdate!=null&&W.__h.push(function(){W.componentDidUpdate(Ae,de,Oe)})}W.context=gt,W.props=$e,W.state=W.__s,(De=n.__r)&&De(x),W.__d=!1,W.__v=x,W.__P=B,De=W.render(W.props,W.state,W.context),W.state=W.__s,W.getChildContext!=null&&($=p(p({},$),W.getChildContext())),Ie||W.getSnapshotBeforeUpdate==null||(Oe=W.getSnapshotBeforeUpdate(Ae,de)),hr=De!=null&&De.type===y&&De.key==null?De.props.children:De,C(B,Array.isArray(hr)?hr:[hr],x,j,$,X,U,ie,ge,ve),W.base=x.__e,x.__h=null,W.__h.length&&ie.push(W),Ot&&(W.__E=W.__=null),W.__e=!1}else U==null&&x.__v===j.__v?(x.__k=j.__k,x.__e=j.__e):x.__e=q(j.__e,x,j,$,X,U,ie,ve);(De=n.diffed)&&De(x)}catch(Pr){x.__v=null,(ve||U!=null)&&(x.__e=ge,x.__h=!!ve,U[U.indexOf(ge)]=null),n.__e(Pr,x,j)}}function G(B,x){n.__c&&n.__c(x,B),B.some(function(j){try{B=j.__h,j.__h=[],B.some(function($){$.call(j)})}catch($){n.__e($,j.__v)}})}function q(B,x,j,$,X,U,ie,ge){var ve,De,W,Ie=j.props,Ae=x.props,de=x.type,Oe=0;if(de==="svg"&&(X=!0),U!=null){for(;Oe<U.length;Oe++)if((ve=U[Oe])&&"setAttribute"in ve==!!de&&(de?ve.localName===de:ve.nodeType===3)){B=ve,U[Oe]=null;break}}if(B==null){if(de===null)return document.createTextNode(Ae);B=X?document.createElementNS("http://www.w3.org/2000/svg",de):document.createElement(de,Ae.is&&Ae),U=null,ge=!1}if(de===null)Ie===Ae||ge&&B.data===Ae||(B.data=Ae);else{if(U=U&&r.call(B.childNodes),De=(Ie=j.props||c).dangerouslySetInnerHTML,W=Ae.dangerouslySetInnerHTML,!ge){if(U!=null)for(Ie={},Oe=0;Oe<B.attributes.length;Oe++)Ie[B.attributes[Oe].name]=B.attributes[Oe].value;(W||De)&&(W&&(De&&W.__html==De.__html||W.__html===B.innerHTML)||(B.innerHTML=W&&W.__html||""))}if(function(Ot,$e,Qe,gt,hr){var Me;for(Me in Qe)Me==="children"||Me==="key"||Me in $e||H(Ot,Me,null,Qe[Me],gt);for(Me in $e)hr&&typeof $e[Me]!="function"||Me==="children"||Me==="key"||Me==="value"||Me==="checked"||Qe[Me]===$e[Me]||H(Ot,Me,$e[Me],Qe[Me],gt)}(B,Ae,Ie,X,ge),W)x.__k=[];else if(Oe=x.props.children,C(B,Array.isArray(Oe)?Oe:[Oe],x,j,$,X&&de!=="foreignObject",U,ie,U?U[0]:j.__k&&b(j,0),ge),U!=null)for(Oe=U.length;Oe--;)U[Oe]!=null&&v(U[Oe]);ge||("value"in Ae&&(Oe=Ae.value)!==void 0&&(Oe!==Ie.value||Oe!==B.value||de==="progress"&&!Oe)&&H(B,"value",Oe,Ie.value,!1),"checked"in Ae&&(Oe=Ae.checked)!==void 0&&Oe!==B.checked&&H(B,"checked",Oe,Ie.checked,!1))}return B}function re(B,x,j){try{typeof B=="function"?B(x):B.current=x}catch($){n.__e($,j)}}function se(B,x,j){var $,X;if(n.unmount&&n.unmount(B),($=B.ref)&&($.current&&$.current!==B.__e||re($,null,x)),($=B.__c)!=null){if($.componentWillUnmount)try{$.componentWillUnmount()}catch(U){n.__e(U,x)}$.base=$.__P=null}if($=B.__k)for(X=0;X<$.length;X++)$[X]&&se($[X],x,typeof B.type!="function");j||B.__e==null||v(B.__e),B.__e=B.__d=void 0}function ue(B,x,j){return this.constructor(B,j)}function ae(B,x,j){var $,X,U;n.__&&n.__(B,x),X=($=typeof j=="function")?null:j&&j.__k||x.__k,U=[],V(x,B=(!$&&j||x).__k=m(y,null,[B]),X||c,c,x.ownerSVGElement!==void 0,!$&&j?[j]:X?null:x.firstChild?r.call(x.childNodes):null,U,!$&&j?j:X?X.__e:x.firstChild,$),G(U,B)}r=f.slice,n={__e:function(B,x){for(var j,$,X;x=x.__;)if((j=x.__c)&&!j.__)try{if(($=j.constructor)&&$.getDerivedStateFromError!=null&&(j.setState($.getDerivedStateFromError(B)),X=j.__d),j.componentDidCatch!=null&&(j.componentDidCatch(B),X=j.__d),X)return j.__E=j}catch(U){B=U}throw B}},o=0,i=function(B){return B!=null&&B.constructor===void 0},h.prototype.setState=function(B,x){var j;j=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=p({},this.state),typeof B=="function"&&(B=B(p({},j),this.props)),B&&p(j,B),B!=null&&this.__v&&(x&&this.__h.push(x),D(this))},h.prototype.forceUpdate=function(B){this.__v&&(this.__e=!0,B&&this.__h.push(B),D(this))},h.prototype.render=y,a=[],u=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,S.__r=0,l=0,t.Component=h,t.Fragment=y,t.cloneElement=function(B,x,j){var $,X,U,ie=p({},B.props);for(U in x)U=="key"?$=x[U]:U=="ref"?X=x[U]:ie[U]=x[U];return arguments.length>2&&(ie.children=arguments.length>3?r.call(arguments,2):j),g(B.type,ie,$||B.key,X||B.ref,null)},t.createContext=function(B,x){var j={__c:x="__cC"+l++,__:B,Consumer:function($,X){return $.children(X)},Provider:function($){var X,U;return this.getChildContext||(X=[],(U={})[x]=this,this.getChildContext=function(){return U},this.shouldComponentUpdate=function(ie){this.props.value!==ie.value&&X.some(D)},this.sub=function(ie){X.push(ie);var ge=ie.componentWillUnmount;ie.componentWillUnmount=function(){X.splice(X.indexOf(ie),1),ge&&ge.call(ie)}}),$.children}};return j.Provider.__=j.Consumer.contextType=j},t.createElement=m,t.createRef=function(){return{current:null}},t.h=m,t.hydrate=function B(x,j){ae(x,j,B)},t.isValidElement=i,t.options=n,t.render=ae,t.toChildArray=function B(x,j){return j=j||[],x==null||typeof x=="boolean"||(Array.isArray(x)?x.some(function($){B($,j)}):j.push(x)),j}}),VK=function(e,t){return t===void 0&&(t=document),typeof e=="string"?t.querySelector(e):((r=e)==null?void 0:r.nodeType)===Node.ELEMENT_NODE?e:null;var r},y5=class{constructor(e,t){t===void 0&&(t={}),this.uppy=e,this.opts=t}getPluginState(){const{plugins:e}=this.uppy.getState();return e[this.id]||{}}setPluginState(e){const{plugins:t}=this.uppy.getState();this.uppy.setState({plugins:{...t,[this.id]:{...t[this.id],...e}}})}setOptions(e){this.opts={...this.opts,...e},this.setPluginState(),this.i18nInit()}i18nInit(){const e=new pP([this.defaultLocale,this.uppy.locale,this.opts.locale]);this.i18n=e.translate.bind(e),this.i18nArray=e.translateArray.bind(e),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 kA(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var WK=0;function GK(e){return"__private_"+WK+++"_"+e}const{render:FA}=UK;var _c=GK("updateUI");class b5 extends y5{constructor(){super(...arguments),Object.defineProperty(this,_c,{writable:!0,value:void 0})}mount(t,r){const n=r.id,o=VK(t);if(o){this.isTargetDOMEl=!0;const u=document.createDocumentFragment();return kA(this,_c)[_c]=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)&&(FA(this.render(s),u),this.afterUpdate())}),this.uppy.log(`Installing ${n} to a DOM element '${t}'`),this.opts.replaceTargetContent&&(o.innerHTML=""),FA(this.render(this.uppy.getState()),u),this.el=u.firstElementChild,o.appendChild(u),this.onMount(),this.el}let i;if(typeof t=="object"&&t instanceof b5)i=t;else if(typeof t=="function"){const u=t;this.uppy.iteratePlugins(s=>{if(s instanceof u)return i=s,!1})}if(i)return this.uppy.log(`Installing ${n} to ${i.id}`),this.parent=i,this.el=i.addTarget(r),this.onMount(),this.el;this.uppy.log(`Not installing ${n}`);let a=`Invalid target option given to ${n}.`;throw a+=typeof t=="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(t){var r,n;this.el!=null&&((r=(n=kA(this,_c))[_c])==null||r.call(n,t))}unmount(){var t;this.isTargetDOMEl&&((t=this.el)==null||t.remove()),this.onUnmount()}onMount(){}onUnmount(){}}var qK=b5;const{debugLogger:KK}=mP;var $f=DP,XK=DP,YK=qK,JK=y5,ZK=KK;$f.Uppy=XK,$f.UIPlugin=YK,$f.BasePlugin=JK,$f.debugLogger=ZK;class QK extends Error{constructor(t,r){r===void 0&&(r=null),super("This looks like a network error, the endpoint might be blocked by an internet provider or a firewall."),this.cause=t,this.isNetworkError=!0,this.request=r}}var w5=QK,y1=function(){return fetch(...arguments).catch(e=>{throw e.name==="AbortError"?e:new w5(e)})};class eX extends Error{constructor(){super("Authorization required"),this.name="AuthError",this.isAuthError=!0}}var Ah,bi,ao,wi,TA,tX=eX;function io(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var rX=0;function b1(e){return"__private_"+rX+++"_"+e}async function w1(e){if(e.status===401)throw new tX;const t=e.json();if(e.status<200||e.status>300){let r=`Failed request with status: ${e.status}. ${e.statusText}`;try{const n=await t;r=n.message?`${r} message: ${n.message}`:r,r=n.requestId?`${r} request-Id: ${n.requestId}`:r}finally{throw new Error(r)}}return t}var _A=(bi=b1("getPostResponseFunc"),ao=b1("getUrl"),wi=b1("errorHandler"),TA=Ah=class CP{constructor(t,r){Object.defineProperty(this,wi,{value:oX}),Object.defineProperty(this,ao,{value:nX}),Object.defineProperty(this,bi,{writable:!0,value:n=>o=>n?o:this.onReceiveResponse(o)}),this.uppy=t,this.opts=r,this.onReceiveResponse=this.onReceiveResponse.bind(this),this.allowedHeaders=["accept","content-type","uppy-auth-token"],this.preflightDone=!1}get hostname(){const{companion:t}=this.uppy.getState(),r=this.opts.companionUrl;return(t&&t[r]?t[r]:r).replace(/\/$/,"")}headers(){const t=this.opts.companionHeaders||{};return Promise.resolve({...CP.defaultHeaders,...t})}onReceiveResponse(t){const r=this.uppy.getState().companion||{},n=this.opts.companionUrl,{headers:o}=t;return o.has("i-am")&&o.get("i-am")!==r[n]&&this.uppy.setState({companion:{...r,[n]:o.get("i-am")}}),t}preflight(t){return this.preflightDone?Promise.resolve(this.allowedHeaders.slice()):fetch(io(this,ao)[ao](t),{method:"OPTIONS"}).then(r=>(r.headers.has("access-control-allow-headers")&&(this.allowedHeaders=r.headers.get("access-control-allow-headers").split(",").map(n=>n.trim().toLowerCase())),this.preflightDone=!0,this.allowedHeaders.slice())).catch(r=>(this.uppy.log(`[CompanionClient] unable to make preflight request ${r}`,"warning"),this.preflightDone=!0,this.allowedHeaders.slice()))}preflightAndHeaders(t){return Promise.all([this.preflight(t),this.headers()]).then(r=>{let[n,o]=r;return Object.keys(o).forEach(i=>{n.includes(i.toLowerCase())||(this.uppy.log(`[CompanionClient] excluding disallowed header ${i}`),delete o[i])}),o})}get(t,r){return this.preflightAndHeaders(t).then(n=>y1(io(this,ao)[ao](t),{method:"get",headers:n,credentials:this.opts.companionCookiesRule||"same-origin"})).then(io(this,bi)[bi](r)).then(w1).catch(io(this,wi)[wi]("get",t))}post(t,r,n){const o="post";return this.preflightAndHeaders(t).then(i=>y1(io(this,ao)[ao](t),{method:o,headers:i,credentials:this.opts.companionCookiesRule||"same-origin",body:JSON.stringify(r)})).then(io(this,bi)[bi](n)).then(w1).catch(io(this,wi)[wi](o,t))}delete(t,r,n){const o="delete";return this.preflightAndHeaders(t).then(i=>y1(`${this.hostname}/${t}`,{method:o,headers:i,credentials:this.opts.companionCookiesRule||"same-origin",body:r?JSON.stringify(r):null})).then(io(this,bi)[bi](n)).then(w1).catch(io(this,wi)[wi](o,t))}},Ah.VERSION="2.0.4",Ah.defaultHeaders={Accept:"application/json","Content-Type":"application/json","Uppy-Versions":`@uppy/companion-client=${Ah.VERSION}`},TA);function nX(e){return/^(https?:|)\/\//.test(e)?e:`${this.hostname}/${e}`}function oX(e,t){return r=>{var n;if((n=r)==null||!n.isAuthError){const o=new Error(`Could not ${e} ${io(this,ao)[ao](t)}`);o.cause=r,r=o}return Promise.reject(r)}}var iX={setItem:(e,t)=>new Promise(r=>{localStorage.setItem(e,t),r()}),getItem:e=>Promise.resolve(localStorage.getItem(e)),removeItem:e=>new Promise(t=>{localStorage.removeItem(e),t()})},oo,Ei,pn,br,Oh;let jA,PA;function $t(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var aX=0;function jc(e){return"__private_"+aX+++"_"+e}var uX=(oo=jc("queued"),Ei=jc("emitter"),pn=jc("isOpen"),br=jc("socket"),Oh=jc("handleMessage"),jA=Symbol.for("uppy test: getSocket"),PA=Symbol.for("uppy test: getQueued"),class{constructor(e){Object.defineProperty(this,oo,{writable:!0,value:[]}),Object.defineProperty(this,Ei,{writable:!0,value:hP()}),Object.defineProperty(this,pn,{writable:!0,value:!1}),Object.defineProperty(this,br,{writable:!0,value:void 0}),Object.defineProperty(this,Oh,{writable:!0,value:t=>{try{const r=JSON.parse(t.data);this.emit(r.action,r.payload)}catch{}}}),this.opts=e,e&&e.autoOpen===!1||this.open()}get isOpen(){return $t(this,pn)[pn]}[jA](){return $t(this,br)[br]}[PA](){return $t(this,oo)[oo]}open(){$t(this,br)[br]=new WebSocket(this.opts.target),$t(this,br)[br].onopen=()=>{for($t(this,pn)[pn]=!0;$t(this,oo)[oo].length>0&&$t(this,pn)[pn];){const e=$t(this,oo)[oo].shift();this.send(e.action,e.payload)}},$t(this,br)[br].onclose=()=>{$t(this,pn)[pn]=!1},$t(this,br)[br].onmessage=$t(this,Oh)[Oh]}close(){var e;(e=$t(this,br)[br])==null||e.close()}send(e,t){$t(this,pn)[pn]?$t(this,br)[br].send(JSON.stringify({action:e,payload:t})):$t(this,oo)[oo].push({action:e,payload:t})}on(e,t){$t(this,Ei)[Ei].on(e,t)}emit(e,t){$t(this,Ei)[Ei].emit(e,t)}once(e,t){$t(this,Ei)[Ei].once(e,t)}}),sX={RequestClient:_A,Provider:class extends _A{constructor(e,t){super(e,t),this.provider=t.provider,this.id=this.provider,this.name=this.opts.name||(r=>r.split("-").map(n=>n.charAt(0).toUpperCase()+n.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(e=>{let[t,r]=e;const n={};return r&&(n["uppy-auth-token"]=r),this.companionKeysParams&&(n["uppy-credentials-params"]=btoa(JSON.stringify({params:this.companionKeysParams}))),{...t,...n}})}onReceiveResponse(e){e=super.onReceiveResponse(e);const t=this.uppy.getPlugin(this.pluginId),r=t.getPluginState().authenticated?e.status!==401:e.status<400;return t.setPluginState({authenticated:r}),e}setAuthToken(e){return this.uppy.getPlugin(this.pluginId).storage.setItem(this.tokenKey,e)}getAuthToken(){return this.uppy.getPlugin(this.pluginId).storage.getItem(this.tokenKey)}authUrl(e){return e===void 0&&(e={}),this.preAuthToken&&(e.uppyPreAuthToken=this.preAuthToken),`${this.hostname}/${this.id}/connect?${new URLSearchParams(e)}`}fileUrl(e){return`${this.hostname}/${this.id}/get/${e}`}fetchPreAuthToken(){return this.companionKeysParams?this.post(`${this.id}/preauth/`,{params:this.companionKeysParams}).then(e=>{this.preAuthToken=e.token}).catch(e=>{this.uppy.log(`[CompanionClient] unable to fetch preAuthToken ${e}`,"warning")}):Promise.resolve()}list(e){return this.get(`${this.id}/list/${e||""}`)}logout(){return this.get(`${this.id}/logout`).then(e=>Promise.all([e,this.uppy.getPlugin(this.pluginId).storage.removeItem(this.tokenKey)])).then(e=>{let[t]=e;return t})}static initPlugin(e,t,r){if(e.type="acquirer",e.files=[],r&&(e.opts={...r,...t}),t.serverUrl||t.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(t.companionAllowedHosts){const n=t.companionAllowedHosts;if(!(typeof n=="string"||Array.isArray(n)||n instanceof RegExp))throw new TypeError(`${e.id}: the option "companionAllowedHosts" must be one of string, Array, RegExp`);e.opts.companionAllowedHosts=n}else/^(?!https?:\/\/).*$/i.test(t.companionUrl)?e.opts.companionAllowedHosts=`https://${t.companionUrl.replace(/^\/\//,"")}`:e.opts.companionAllowedHosts=new URL(t.companionUrl).origin;e.storage=e.opts.storage||iX}},Socket:uX},Di,ws,lX=zu(function(e,t,r){const{progress:n,bytesUploaded:o,bytesTotal:i}=t;n&&(e.uppy.log(`Upload progress: ${n}`),e.uppy.emit("upload-progress",r,{uploader:e,bytesUploaded:o,bytesTotal:i}))},300,{leading:!0,trailing:!0});function Pc(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var cX=0;function NA(e){return"__private_"+cX+++"_"+e}var IA=(Di=NA("emitter"),ws=NA("events"),class{constructor(e){Object.defineProperty(this,Di,{writable:!0,value:void 0}),Object.defineProperty(this,ws,{writable:!0,value:[]}),Pc(this,Di)[Di]=e}on(e,t){return Pc(this,ws)[ws].push([e,t]),Pc(this,Di)[Di].on(e,t)}remove(){for(const[e,t]of Pc(this,ws)[ws].splice(0))Pc(this,Di)[Di].off(e,t)}});function hn(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var fX=0;function xm(e){return"__private_"+fX+++"_"+e}var Vo=xm("aliveTimer"),Ma=xm("isDone"),Nc=xm("onTimedOut"),za=xm("timeout"),RA=class{constructor(e,t){Object.defineProperty(this,Vo,{writable:!0,value:void 0}),Object.defineProperty(this,Ma,{writable:!0,value:!1}),Object.defineProperty(this,Nc,{writable:!0,value:void 0}),Object.defineProperty(this,za,{writable:!0,value:void 0}),hn(this,za)[za]=e,hn(this,Nc)[Nc]=t}progress(){hn(this,Ma)[Ma]||hn(this,za)[za]>0&&(clearTimeout(hn(this,Vo)[Vo]),hn(this,Vo)[Vo]=setTimeout(hn(this,Nc)[Nc],hn(this,za)[za]))}done(){hn(this,Ma)[Ma]||(clearTimeout(hn(this,Vo)[Vo]),hn(this,Vo)[Vo]=null,hn(this,Ma)[Ma]=!0)}};function Vt(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var dX=0;function ns(e){return"__private_"+dX+++"_"+e}function pX(){return new Error("Cancelled")}var Yr=ns("activeRequests"),Tr=ns("queuedHandlers"),Qf=ns("call"),Hf=ns("queueNext"),z4=ns("next"),E1=ns("queue"),$4=ns("dequeue");function hX(e){Vt(this,Yr)[Yr]+=1;let t,r=!1;try{t=e()}catch(n){throw Vt(this,Yr)[Yr]-=1,n}return{abort:()=>{r||(r=!0,Vt(this,Yr)[Yr]-=1,t(),Vt(this,Hf)[Hf]())},done:()=>{r||(r=!0,Vt(this,Yr)[Yr]-=1,Vt(this,Hf)[Hf]())}}}function gX(){queueMicrotask(()=>Vt(this,z4)[z4]())}function vX(){if(Vt(this,Yr)[Yr]>=this.limit||Vt(this,Tr)[Tr].length===0)return;const e=Vt(this,Tr)[Tr].shift(),t=Vt(this,Qf)[Qf](e.fn);e.abort=t.abort,e.done=t.done}function mX(e,t){t===void 0&&(t={});const r={fn:e,priority:t.priority||0,abort:()=>{Vt(this,$4)[$4](r)},done:()=>{throw new Error("Cannot mark a queued request as done: this indicates a bug")}},n=Vt(this,Tr)[Tr].findIndex(o=>r.priority>o.priority);return n===-1?Vt(this,Tr)[Tr].push(r):Vt(this,Tr)[Tr].splice(n,0,r),r}function yX(e){const t=Vt(this,Tr)[Tr].indexOf(e);t!==-1&&Vt(this,Tr)[Tr].splice(t,1)}var bX={RateLimitedQueue:class{constructor(e){Object.defineProperty(this,$4,{value:yX}),Object.defineProperty(this,E1,{value:mX}),Object.defineProperty(this,z4,{value:vX}),Object.defineProperty(this,Hf,{value:gX}),Object.defineProperty(this,Qf,{value:hX}),Object.defineProperty(this,Yr,{writable:!0,value:0}),Object.defineProperty(this,Tr,{writable:!0,value:[]}),this.limit=typeof e!="number"||e===0?1/0:e}run(e,t){return Vt(this,Yr)[Yr]<this.limit?Vt(this,Qf)[Qf](e):Vt(this,E1)[E1](e,t)}wrapPromiseFunction(e,t){var r=this;return function(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];let a;const u=new Promise((s,l)=>{a=r.run(()=>{let c,f;try{f=Promise.resolve(e(...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=pX()}},t)});return u.abort=()=>{a.abort()},u}}},internalRateLimitedQueue:Symbol("__queue")},LA,MA,SP=function(e){return!!e&&(e.readyState!==0&&e.readyState!==4||e.status===0)},wX={strings:{timedOut:"Upload stalled for %{seconds} seconds, aborting."}};const{nanoid:EX}=yP,{Provider:DX,RequestClient:CX,Socket:SX}=sX,{RateLimitedQueue:xX,internalRateLimitedQueue:D1}=bX;function zA(e,t){let r=t;return r||(r=new Error("Upload error")),typeof r=="string"&&(r=new Error(r)),r instanceof Error||(r=Object.assign(new Error("Upload error"),{data:r})),SP(e)?(r=new w5(r,e),r):(r.request=e,r)}function $A(e){return e.data.slice(0,e.data.size,e.meta.type)}var AX=(MA=LA=class extends y5{constructor(e,t){super(e,t),this.type="uploader",this.id=this.opts.id||"XHRUpload",this.title="XHRUpload",this.defaultLocale=wX;const r={formData:!0,fieldName:t.bundle?"files[]":"file",method:"post",metaFields:null,responseUrlFieldName:"url",bundle:!1,headers:{},timeout:3e4,limit:5,withCredentials:!1,responseType:"",getResponseData(n){let o={};try{o=JSON.parse(n)}catch(i){e.log(i)}return o},getResponseError(n,o){let i=new Error("Upload error");return SP(o)&&(i=new w5(i,o)),i},validateStatus:n=>n>=200&&n<300};if(this.opts={...r,...t},this.i18nInit(),this.handleUpload=this.handleUpload.bind(this),D1 in this.opts?this.requests=this.opts[D1]:this.requests=new xX(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(e){const t=this.uppy.getState().xhrUpload,{headers:r}=this.opts,n={...this.opts,...t||{},...e.xhrUpload||{},headers:{}};return typeof r=="function"?n.headers=r(e):Object.assign(n.headers,this.opts.headers),t&&Object.assign(n.headers,t.headers),e.xhrUpload&&Object.assign(n.headers,e.xhrUpload.headers),n}addMetadata(e,t,r){(Array.isArray(r.metaFields)?r.metaFields:Object.keys(t)).forEach(n=>{e.append(n,t[n])})}createFormDataUpload(e,t){const r=new FormData;this.addMetadata(r,e.meta,t);const n=$A(e);return e.name?r.append(t.fieldName,n,e.meta.name):r.append(t.fieldName,n),r}createBundledUpload(e,t){const r=new FormData,{meta:n}=this.uppy.getState();return this.addMetadata(r,n,t),e.forEach(o=>{const i=this.getOptions(o),a=$A(o);o.name?r.append(i.fieldName,a,o.name):r.append(i.fieldName,a)}),r}upload(e,t,r){const n=this.getOptions(e);return this.uppy.log(`uploading ${t} of ${r}`),new Promise((o,i)=>{this.uppy.emit("upload-started",e);const a=n.formData?this.createFormDataUpload(e,n):e.data,u=new XMLHttpRequest;this.uploaderEvents[e.id]=new IA(this.uppy);const s=new RA(n.timeout,()=>{u.abort(),c.done();const f=new Error(this.i18n("timedOut",{seconds:Math.ceil(n.timeout/1e3)}));this.uppy.emit("upload-error",e,f),i(f)}),l=EX();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",e,{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[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),n.validateStatus(f.target.status,u.responseText,u)){const m=n.getResponseData(u.responseText,u),g=m[n.responseUrlFieldName],y={status:f.target.status,body:m,uploadURL:g};return this.uppy.emit("upload-success",e,y),g&&this.uppy.log(`Download ${e.name} from ${g}`),o(e)}const d=n.getResponseData(u.responseText,u),p=zA(u,n.getResponseError(u.responseText,u)),v={status:f.target.status,body:d};return this.uppy.emit("upload-error",e,p,v),i(p)}),u.addEventListener("error",()=>{this.uppy.log(`[XHRUpload] ${l} errored`),s.done(),c.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null);const f=zA(u,n.getResponseError(u.responseText,u));return this.uppy.emit("upload-error",e,f),i(f)}),u.open(n.method.toUpperCase(),n.endpoint,!0),u.withCredentials=n.withCredentials,n.responseType!==""&&(u.responseType=n.responseType);const c=this.requests.run(()=>{this.uppy.emit("upload-started",e);const f=this.getOptions(e);return Object.keys(f.headers).forEach(d=>{u.setRequestHeader(d,f.headers[d])}),u.send(a),()=>{s.done(),u.abort()}});this.onFileRemove(e.id,()=>{c.abort(),i(new Error("File removed"))}),this.onCancelAll(e.id,()=>{c.abort(),i(new Error("Upload cancelled"))})})}uploadRemote(e){const t=this.getOptions(e);return new Promise((r,n)=>{this.uppy.emit("upload-started",e);const o={};(Array.isArray(t.metaFields)?t.metaFields:Object.keys(e.meta)).forEach(i=>{o[i]=e.meta[i]}),new(e.remote.providerOptions.provider?DX:CX)(this.uppy,e.remote.providerOptions).post(e.remote.url,{...e.remote.body,endpoint:t.endpoint,size:e.data.size,fieldname:t.fieldName,metadata:o,httpMethod:t.method,useFormData:t.formData,headers:t.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}`}(e.remote.companionUrl),s=new SX({target:`${u}/api/${a}`,autoOpen:!1});this.uploaderEvents[e.id]=new IA(this.uppy),this.onFileRemove(e.id,()=>{s.send("cancel",{}),l.abort(),r(`upload ${e.id} was removed`)}),this.onCancelAll(e.id,()=>{s.send("cancel",{}),l.abort(),r(`upload ${e.id} was canceled`)}),this.onRetry(e.id,()=>{s.send("pause",{}),s.send("resume",{})}),this.onRetryAll(e.id,()=>{s.send("pause",{}),s.send("resume",{})}),s.on("progress",c=>lX(this,c,e)),s.on("success",c=>{const f=t.getResponseData(c.response.responseText,c.response),d=f[t.responseUrlFieldName],p={status:c.response.status,body:f,uploadURL:d};return this.uppy.emit("upload-success",e,p),l.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),r()}),s.on("error",c=>{const f=c.response,d=f?t.getResponseError(f.responseText,f):Object.assign(new Error(c.error.message),{cause:c.error});this.uppy.emit("upload-error",e,d),l.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),n(d)});const l=this.requests.run(()=>(s.open(),e.isPaused&&s.send("pause",{}),()=>s.close()))}).catch(i=>{this.uppy.emit("upload-error",e,i),n(i)})})}uploadBundle(e){return new Promise((t,r)=>{const{endpoint:n}=this.opts,{method:o}=this.opts,i=this.uppy.getState().xhrUpload,a=this.createBundledUpload(e,{...this.opts,...i||{}}),u=new XMLHttpRequest,s=new RA(this.opts.timeout,()=>{u.abort();const c=new Error(this.i18n("timedOut",{seconds:Math.ceil(this.opts.timeout/1e3)}));l(c),r(c)}),l=c=>{e.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&&e.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 e.forEach(v=>{this.uppy.emit("upload-success",v,p)}),t()}const f=this.opts.getResponseError(u.responseText,u)||new Error("Upload error");return f.request=u,l(f),r(f)}),u.addEventListener("error",()=>{s.done();const c=this.opts.getResponseError(u.responseText,u)||new Error("Upload error");return l(c),r(c)}),this.uppy.on("cancel-all",()=>{s.done(),u.abort()}),u.open(o.toUpperCase(),n,!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),e.forEach(c=>{this.uppy.emit("upload-started",c)})})}uploadFiles(e){const t=e.map((r,n)=>{const o=parseInt(n,10)+1,i=e.length;return r.error?Promise.reject(new Error(r.error)):r.isRemote?this.uploadRemote(r,o,i):this.upload(r,o,i)});return function(r){const n=[],o=[];function i(u){n.push(u)}function a(u){o.push(u)}return Promise.all(r.map(u=>u.then(i,a))).then(()=>({successful:n,failed:o}))}(t)}onFileRemove(e,t){this.uploaderEvents[e].on("file-removed",r=>{e===r.id&&t(r.id)})}onRetry(e,t){this.uploaderEvents[e].on("upload-retry",r=>{e===r&&t()})}onRetryAll(e,t){this.uploaderEvents[e].on("retry-all",()=>{this.uppy.getFile(e)&&t()})}onCancelAll(e,t){this.uploaderEvents[e].on("cancel-all",()=>{this.uppy.getFile(e)&&t()})}handleUpload(e){if(e.length===0)return this.uppy.log("[XHRUpload] No files to upload!"),Promise.resolve();this.opts.limit!==0||this.opts[D1]||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 t=e.map(r=>this.uppy.getFile(r));if(this.opts.bundle){if(t.some(r=>r.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(t)}return this.uploadFiles(t).then(()=>null)}install(){if(this.opts.bundle){const{capabilities:e}=this.uppy.getState();this.uppy.setState({capabilities:{...e,individualCancellation:!1}})}this.uppy.addUploader(this.handleUpload)}uninstall(){if(this.opts.bundle){const{capabilities:e}=this.uppy.getState();this.uppy.setState({capabilities:{...e,individualCancellation:!0}})}this.uppy.removeUploader(this.handleUpload)}},LA.VERSION="2.0.6",MA),HA=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Tp(e){var t={exports:{}};return e(t,t.exports),t.exports}var Ci,Ng,Bh=function(e){return e&&e.Math==Math&&e},Y=Bh(typeof globalThis=="object"&&globalThis)||Bh(typeof window=="object"&&window)||Bh(typeof self=="object"&&self)||Bh(typeof HA=="object"&&HA)||function(){return this}()||Function("return this")(),OX=Object.defineProperty,E5=function(e,t){try{OX(Y,e,{value:t,configurable:!0,writable:!0})}catch{Y[e]=t}return t},Xi=Y["__core-js_shared__"]||E5("__core-js_shared__",{}),D5=Tp(function(e){(e.exports=function(t,r){return Xi[t]||(Xi[t]=r!==void 0?r:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),xP=Function.prototype,H4=xP.bind,U4=xP.call,BX=H4&&H4.bind(U4),pe=H4?function(e){return e&&BX(U4,e)}:function(e){return e&&function(){return U4.apply(e,arguments)}},kX=Y.TypeError,On=function(e){if(e==null)throw kX("Can't call method on "+e);return e},FX=Y.Object,Aa=function(e){return FX(On(e))},TX=pe({}.hasOwnProperty),It=Object.hasOwn||function(e,t){return TX(Aa(e),t)},_X=0,jX=Math.random(),PX=pe(1 .toString),C5=function(e){return"Symbol("+(e===void 0?"":e)+")_"+PX(++_X+jX,36)},nt=function(e){return typeof e=="function"},NX=function(e){return nt(e)?e:void 0},os=function(e,t){return arguments.length<2?NX(Y[e]):Y[e]&&Y[e][t]},ul=os("navigator","userAgent")||"",UA=Y.process,VA=Y.Deno,WA=UA&&UA.versions||VA&&VA.version,GA=WA&&WA.v8;GA&&(Ng=(Ci=GA.split("."))[0]>0&&Ci[0]<4?1:+(Ci[0]+Ci[1])),!Ng&&ul&&(!(Ci=ul.match(/Edge\/(\d+)/))||Ci[1]>=74)&&(Ci=ul.match(/Chrome\/(\d+)/))&&(Ng=+Ci[1]);var Fd=Ng,Je=function(e){try{return!!e()}catch{return!0}},V4=!!Object.getOwnPropertySymbols&&!Je(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Fd&&Fd<41}),S5=V4&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Ic=D5("wks"),yu=Y.Symbol,qA=yu&&yu.for,IX=S5?yu:yu&&yu.withoutSetter||C5,St=function(e){if(!It(Ic,e)||!V4&&typeof Ic[e]!="string"){var t="Symbol."+e;V4&&It(yu,e)?Ic[e]=yu[e]:Ic[e]=S5&&qA?qA(t):IX(t)}return Ic[e]},AP={};AP[St("toStringTag")]="z";var x5=String(AP)==="[object z]",nr=!Je(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),ft=function(e){return typeof e=="object"?e!==null:nt(e)},W4=Y.document,RX=ft(W4)&&ft(W4.createElement),Td=function(e){return RX?W4.createElement(e):{}},OP=!nr&&!Je(function(){return Object.defineProperty(Td("div"),"a",{get:function(){return 7}}).a!=7}),LX=Y.String,MX=Y.TypeError,Rt=function(e){if(ft(e))return e;throw MX(LX(e)+" is not an object")},Rc=Function.prototype.call,qe=Rc.bind?Rc.bind(Rc):function(){return Rc.apply(Rc,arguments)},$u=pe({}.isPrototypeOf),zX=Y.Object,C1=S5?function(e){return typeof e=="symbol"}:function(e){var t=os("Symbol");return nt(t)&&$u(t.prototype,zX(e))},$X=Y.String,Am=function(e){try{return $X(e)}catch{return"Object"}},HX=Y.TypeError,ga=function(e){if(nt(e))return e;throw HX(Am(e)+" is not a function")},Hu=function(e,t){var r=e[t];return r==null?void 0:ga(r)},UX=Y.TypeError,VX=Y.TypeError,WX=St("toPrimitive"),A5=function(e){var t=function(r,n){if(!ft(r)||C1(r))return r;var o,i=Hu(r,WX);if(i){if(o=qe(i,r,n),!ft(o)||C1(o))return o;throw VX("Can't convert object to primitive value")}return function(a,u){var s,l;if(nt(s=a.toString)&&!ft(l=qe(s,a))||nt(s=a.valueOf)&&!ft(l=qe(s,a))||u!=="string")return l;throw UX("Can't convert object to primitive value")}(r,n)}(e,"string");return C1(t)?t:t+""},GX=Y.TypeError,KA=Object.defineProperty,Zn={f:nr?KA:function(e,t,r){if(Rt(e),t=A5(t),Rt(r),OP)try{return KA(e,t,r)}catch{}if("get"in r||"set"in r)throw GX("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},Om=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Wn=nr?function(e,t,r){return Zn.f(e,t,Om(1,r))}:function(e,t,r){return e[t]=r,e},qX=pe(Function.toString);nt(Xi.inspectSource)||(Xi.inspectSource=function(e){return qX(e)});var $v,ed,Hv,Bm=Xi.inspectSource,XA=Y.WeakMap,BP=nt(XA)&&/native code/.test(Bm(XA)),YA=D5("keys"),O5=function(e){return YA[e]||(YA[e]=C5(e))},km={},G4=Y.TypeError,KX=Y.WeakMap;if(BP||Xi.state){var $a=Xi.state||(Xi.state=new KX),XX=pe($a.get),JA=pe($a.has),YX=pe($a.set);$v=function(e,t){if(JA($a,e))throw new G4("Object already initialized");return t.facade=e,YX($a,e,t),t},ed=function(e){return XX($a,e)||{}},Hv=function(e){return JA($a,e)}}else{var Es=O5("state");km[Es]=!0,$v=function(e,t){if(It(e,Es))throw new G4("Object already initialized");return t.facade=e,Wn(e,Es,t),t},ed=function(e){return It(e,Es)?e[Es]:{}},Hv=function(e){return It(e,Es)}}var Cr={set:$v,get:ed,has:Hv,enforce:function(e){return Hv(e)?ed(e):$v(e,{})},getterFor:function(e){return function(t){var r;if(!ft(t)||(r=ed(t)).type!==e)throw G4("Incompatible receiver, "+e+" required");return r}}},kP=Function.prototype,JX=nr&&Object.getOwnPropertyDescriptor,S1=It(kP,"name"),Ql={EXISTS:S1,PROPER:S1&&(function(){}).name==="something",CONFIGURABLE:S1&&(!nr||nr&&JX(kP,"name").configurable)},Hr=Tp(function(e){var t=Ql.CONFIGURABLE,r=Cr.get,n=Cr.enforce,o=String(String).split("String");(e.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;nt(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!It(u,"name")||t&&u.name!==p)&&Wn(u,"name",p),(l=n(u)).source||(l.source=o.join(typeof p=="string"?p:""))),i!==Y?(c?!d&&i[a]&&(f=!0):delete i[a],f?i[a]=u:Wn(i,a,u)):f?i[a]=u:E5(a,u)})(Function.prototype,"toString",function(){return nt(this)&&r(this).source||Bm(this)})}),ZX=pe({}.toString),QX=pe("".slice),Gn=function(e){return QX(ZX(e),8,-1)},eY=St("toStringTag"),tY=Y.Object,rY=Gn(function(){return arguments}())=="Arguments",Fm=x5?Gn:function(e){var t,r,n;return e===void 0?"Undefined":e===null?"Null":typeof(r=function(o,i){try{return o[i]}catch{}}(t=tY(e),eY))=="string"?r:rY?Gn(t):(n=Gn(t))=="Object"&&nt(t.callee)?"Arguments":n},nY=x5?{}.toString:function(){return"[object "+Fm(this)+"]"};x5||Hr(Object.prototype,"toString",nY,{unsafe:!0});var Uv={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},x1=Td("span").classList,ZA=x1&&x1.constructor&&x1.constructor.prototype,FP=ZA===Object.prototype?void 0:ZA,QA=pe(pe.bind),Uu=function(e,t){return ga(e),t===void 0?e:QA?QA(e,t):function(){return e.apply(t,arguments)}},A1=Y.Object,oY=pe("".split),Tm=Je(function(){return!A1("z").propertyIsEnumerable(0)})?function(e){return Gn(e)=="String"?oY(e,""):A1(e)}:A1,iY=Math.ceil,aY=Math.floor,_p=function(e){var t=+e;return t!=t||t===0?0:(t>0?aY:iY)(t)},uY=Math.min,ec=function(e){return e>0?uY(_p(e),9007199254740991):0},is=function(e){return ec(e.length)},Vv=Array.isArray||function(e){return Gn(e)=="Array"},TP=function(){},sY=[],_P=os("Reflect","construct"),B5=/^\s*(?:class|function)\b/,lY=pe(B5.exec),cY=!B5.exec(TP),Lc=function(e){if(!nt(e))return!1;try{return _P(TP,sY,e),!0}catch{return!1}},_m=!_P||Je(function(){var e;return Lc(Lc.call)||!Lc(Object)||!Lc(function(){e=!0})||e})?function(e){if(!nt(e))return!1;switch(Fm(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return cY||!!lY(B5,Bm(e))}:Lc,fY=St("species"),e7=Y.Array,jP=function(e,t){return new(function(r){var n;return Vv(r)&&(n=r.constructor,(_m(n)&&(n===e7||Vv(n.prototype))||ft(n)&&(n=n[fY])===null)&&(n=void 0)),n===void 0?e7:n}(e))(t===0?0:t)},t7=pe([].push),Mc=function(e){var t=e==1,r=e==2,n=e==3,o=e==4,i=e==6,a=e==7,u=e==5||i;return function(s,l,c,f){for(var d,p,v=Aa(s),m=Tm(v),g=Uu(l,c),y=is(m),h=0,b=f||jP,w=t?b(s,y):r||a?b(s,0):void 0;y>h;h++)if((u||h in m)&&(p=g(d=m[h],h,v),e))if(t)w[h]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return h;case 2:t7(w,d)}else switch(e){case 4:return!1;case 7:t7(w,d)}return i?-1:n||o?o:w}},tc={forEach:Mc(0),map:Mc(1),filter:Mc(2),find:Mc(5),findIndex:Mc(6)},PP=function(e,t){var r=[][e];return!!r&&Je(function(){r.call(null,t||function(){throw 1},1)})},dY=tc.forEach,O1=PP("forEach")?[].forEach:function(e){return dY(this,e,arguments.length>1?arguments[1]:void 0)},NP=function(e){if(e&&e.forEach!==O1)try{Wn(e,"forEach",O1)}catch{e.forEach=O1}};for(var B1 in Uv)Uv[B1]&&NP(Y[B1]&&Y[B1].prototype);NP(FP);var r7={}.propertyIsEnumerable,n7=Object.getOwnPropertyDescriptor,pY=n7&&!r7.call({1:2},1)?function(e){var t=n7(this,e);return!!t&&t.enumerable}:r7,IP={f:pY},Oa=function(e){return Tm(On(e))},o7=Object.getOwnPropertyDescriptor,jp={f:nr?o7:function(e,t){if(e=Oa(e),t=A5(t),OP)try{return o7(e,t)}catch{}if(It(e,t))return Om(!qe(IP.f,e,t),e[t])}},hY=Math.max,gY=Math.min,jl=function(e,t){var r=_p(e);return r<0?hY(r+t,0):gY(r,t)},i7=function(e){return function(t,r,n){var o,i=Oa(t),a=is(i),u=jl(n,a);if(e&&r!=r){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===r)return e||u||0;return!e&&-1}},RP={includes:i7(!0),indexOf:i7(!1)},vY=RP.indexOf,a7=pe([].push),LP=function(e,t){var r,n=Oa(e),o=0,i=[];for(r in n)!It(km,r)&&It(n,r)&&a7(i,r);for(;t.length>o;)It(n,r=t[o++])&&(~vY(i,r)||a7(i,r));return i},Wv=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],mY=Wv.concat("length","prototype"),_d={f:Object.getOwnPropertyNames||function(e){return LP(e,mY)}},MP={f:Object.getOwnPropertySymbols},yY=pe([].concat),bY=os("Reflect","ownKeys")||function(e){var t=_d.f(Rt(e)),r=MP.f;return r?yY(t,r(e)):t},wY=function(e,t){for(var r=bY(t),n=Zn.f,o=jp.f,i=0;i<r.length;i++){var a=r[i];It(e,a)||n(e,a,o(t,a))}},EY=/#|\.prototype\./,Pp=function(e,t){var r=CY[DY(e)];return r==xY||r!=SY&&(nt(t)?Je(t):!!t)},DY=Pp.normalize=function(e){return String(e).replace(EY,".").toLowerCase()},CY=Pp.data={},SY=Pp.NATIVE="N",xY=Pp.POLYFILL="P",jd=Pp,AY=jp.f,Dt=function(e,t){var r,n,o,i,a,u=e.target,s=e.global,l=e.stat;if(r=s?Y:l?Y[u]||E5(u,{}):(Y[u]||{}).prototype)for(n in t){if(i=t[n],o=e.noTargetGet?(a=AY(r,n))&&a.value:r[n],!jd(s?n:u+(l?".":"#")+n,e.forced)&&o!==void 0){if(typeof i==typeof o)continue;wY(i,o)}(e.sham||o&&o.sham)&&Wn(i,"sham",!0),Hr(r,n,i,e)}},sl=Object.keys||function(e){return LP(e,Wv)},OY=Je(function(){sl(1)});/*!
- * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
- *
- * Copyright (c) 2014-2017, Jon Schlinkert.
- * Released under the MIT License.
- */function u7(e){return Object.prototype.toString.call(e)==="[object Object]"}Dt({target:"Object",stat:!0,forced:OY},{keys:function(e){return sl(Aa(e))}});var BY={isHistory(e){return u7(t=e)!==!1&&((r=t.constructor)===void 0||u7(n=r.prototype)!==!1&&n.hasOwnProperty("isPrototypeOf")!==!1)&&Array.isArray(e.redos)&&Array.isArray(e.undos)&&(e.redos.length===0||Hi.isOperationList(e.redos[0]))&&(e.undos.length===0||Hi.isOperationList(e.undos[0]));var t,r,n}},k1=new WeakMap,F1=new WeakMap,el={isHistoryEditor:e=>BY.isHistory(e.history)&&E.isEditor(e),isMerging:e=>F1.get(e),isSaving:e=>k1.get(e),redo(e){e.redo()},undo(e){e.undo()},withoutMerging(e,t){var r=el.isMerging(e);F1.set(e,!1),t(),F1.set(e,r)},withoutSaving(e,t){var r=el.isSaving(e);k1.set(e,!1),t(),k1.set(e,r)}},kY=Y.String,it=function(e){if(Fm(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return kY(e)},k5=function(){var e=Rt(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},FY=Ql.PROPER,q4=RegExp.prototype,zP=q4.toString,TY=pe(k5),_Y=Je(function(){return zP.call({source:"a",flags:"b"})!="/a/b"}),jY=FY&&zP.name!="toString";(_Y||jY)&&Hr(RegExp.prototype,"toString",function(){var e=Rt(this),t=it(e.source),r=e.flags;return"/"+t+"/"+it(r===void 0&&$u(q4,e)&&!("flags"in q4)?TY(e):r)},{unsafe:!0});var kh,PY=nr?Object.defineProperties:function(e,t){Rt(e);for(var r,n=Oa(t),o=sl(t),i=o.length,a=0;i>a;)Zn.f(e,r=o[a++],n[r]);return e},K4=os("document","documentElement"),$P=O5("IE_PROTO"),T1=function(){},HP=function(e){return"<script>"+e+"<\/script>"},s7=function(e){e.write(HP("")),e.close();var t=e.parentWindow.Object;return e=null,t},Ig=function(){try{kh=new ActiveXObject("htmlfile")}catch{}var e,t;Ig=typeof document<"u"?document.domain&&kh?s7(kh):((t=Td("iframe")).style.display="none",K4.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(HP("document.F=Object")),e.close(),e.F):s7(kh);for(var r=Wv.length;r--;)delete Ig.prototype[Wv[r]];return Ig()};km[$P]=!0;var jm=Object.create||function(e,t){var r;return e!==null?(T1.prototype=Rt(e),r=new T1,T1.prototype=null,r[$P]=e):r=Ig(),t===void 0?r:PY(r,t)},X4=St("unscopables"),Y4=Array.prototype;Y4[X4]==null&&Zn.f(Y4,X4,{configurable:!0,value:jm(null)});var td=function(e){Y4[X4][e]=!0},NY=RP.includes;Dt({target:"Array",proto:!0},{includes:function(e){return NY(this,e,arguments.length>1?arguments[1]:void 0)}}),td("includes");var IY=St("match"),F5=function(e){var t;return ft(e)&&((t=e[IY])!==void 0?!!t:Gn(e)=="RegExp")},RY=Y.TypeError,T5=function(e){if(F5(e))throw RY("The method doesn't accept regular expressions");return e},LY=St("match"),_5=function(e){var t=/./;try{"/./"[e](t)}catch{try{return t[LY]=!1,"/./"[e](t)}catch{}}return!1},MY=pe("".indexOf);Dt({target:"String",proto:!0,forced:!_5("includes")},{includes:function(e){return!!~MY(it(On(this)),it(T5(e)),arguments.length>1?arguments[1]:void 0)}});var zY=/"/g,$Y=pe("".replace);Dt({target:"String",proto:!0,forced:Je(function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3})},{anchor:function(e){return t=e,r=it(On(this)),n="<a",(n+=' name="'+$Y(it(t),zY,""")+'"')+">"+r+"</a>";var t,r,n}});var J4=function(e,t,r){var n,o;Rt(e);try{if(!(n=Hu(e,"return"))){if(t==="throw")throw r;return r}n=qe(n,e)}catch(i){o=!0,n=i}if(t==="throw")throw r;if(o)throw n;return Rt(n),r},HY=function(e,t,r,n){try{return n?t(Rt(r)[0],r[1]):t(r)}catch(o){J4(e,"throw",o)}},Pl={},UY=St("iterator"),VY=Array.prototype,UP=function(e){return e!==void 0&&(Pl.Array===e||VY[UY]===e)},Pd=function(e,t,r){var n=A5(t);n in e?Zn.f(e,n,Om(0,r)):e[n]=r},WY=St("iterator"),j5=function(e){if(e!=null)return Hu(e,WY)||Hu(e,"@@iterator")||Pl[Fm(e)]},GY=Y.TypeError,VP=function(e,t){var r=arguments.length<2?j5(e):t;if(ga(r))return Rt(qe(r,e));throw GY(Am(e)+" is not iterable")},l7=Y.Array,WP=St("iterator"),GP=!1;try{var qY=0,c7={next:function(){return{done:!!qY++}},return:function(){GP=!0}};c7[WP]=function(){return this},Array.from(c7,function(){throw 2})}catch{}var P5=function(e,t){if(!GP)return!1;var r=!1;try{var n={};n[WP]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch{}return r},KY=!P5(function(e){Array.from(e)});Dt({target:"Array",stat:!0,forced:KY},{from:function(e){var t=Aa(e),r=_m(this),n=arguments.length,o=n>1?arguments[1]:void 0,i=o!==void 0;i&&(o=Uu(o,n>2?arguments[2]:void 0));var a,u,s,l,c,f,d=j5(t),p=0;if(!d||this==l7&&UP(d))for(a=is(t),u=r?new this(a):l7(a);a>p;p++)f=i?o(t[p],p):t[p],Pd(u,p,f);else for(c=(l=VP(t,d)).next,u=r?new this:[];!(s=qe(c,l)).done;p++)f=i?HY(l,o,[s.value,p],!0):s.value,Pd(u,p,f);return u.length=p,u}});var bu,f7,d7,XY=pe("".charAt),p7=pe("".charCodeAt),YY=pe("".slice),JY=function(e){return function(t,r){var n,o,i=it(On(t)),a=_p(r),u=i.length;return a<0||a>=u?e?"":void 0:(n=p7(i,a))<55296||n>56319||a+1===u||(o=p7(i,a+1))<56320||o>57343?e?XY(i,a):n:e?YY(i,a,a+2):o-56320+(n-55296<<10)+65536}},qP={charAt:JY(!0)},ZY=!Je(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),h7=O5("IE_PROTO"),Z4=Y.Object,QY=Z4.prototype,Gv=ZY?Z4.getPrototypeOf:function(e){var t=Aa(e);if(It(t,h7))return t[h7];var r=t.constructor;return nt(r)&&t instanceof r?r.prototype:t instanceof Z4?QY:null},Q4=St("iterator"),KP=!1;[].keys&&("next"in(d7=[].keys())?(f7=Gv(Gv(d7)))!==Object.prototype&&(bu=f7):KP=!0);var eJ=bu==null||Je(function(){var e={};return bu[Q4].call(e)!==e});eJ&&(bu={}),nt(bu[Q4])||Hr(bu,Q4,function(){return this});var N5={IteratorPrototype:bu,BUGGY_SAFARI_ITERATORS:KP},tJ=Zn.f,g7=St("toStringTag"),qv=function(e,t,r){e&&!It(e=r?e:e.prototype,g7)&&tJ(e,g7,{configurable:!0,value:t})},rJ=N5.IteratorPrototype,nJ=function(){return this},oJ=Y.String,iJ=Y.TypeError,Nl=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=pe(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),t=r instanceof Array}catch{}return function(n,o){return Rt(n),function(i){if(typeof i=="object"||nt(i))return i;throw iJ("Can't set "+oJ(i)+" as a prototype")}(o),t?e(n,o):n.__proto__=o,n}}():void 0),aJ=Ql.PROPER,uJ=Ql.CONFIGURABLE,v7=N5.IteratorPrototype,Fh=N5.BUGGY_SAFARI_ITERATORS,zc=St("iterator"),sJ=function(){return this},I5=function(e,t,r,n,o,i,a){(function(y,h,b,w){var D=h+" Iterator";y.prototype=jm(rJ,{next:Om(1,b)}),qv(y,D,!1),Pl[D]=nJ})(r,t,n);var u,s,l,c=function(y){if(y===o&&m)return m;if(!Fh&&y in p)return p[y];switch(y){case"keys":case"values":case"entries":return function(){return new r(this,y)}}return function(){return new r(this)}},f=t+" Iterator",d=!1,p=e.prototype,v=p[zc]||p["@@iterator"]||o&&p[o],m=!Fh&&v||c(o),g=t=="Array"&&p.entries||v;if(g&&(u=Gv(g.call(new e)))!==Object.prototype&&u.next&&(Gv(u)!==v7&&(Nl?Nl(u,v7):nt(u[zc])||Hr(u,zc,sJ)),qv(u,f,!0)),aJ&&o=="values"&&v&&v.name!=="values"&&(uJ?Wn(p,"name","values"):(d=!0,m=function(){return qe(v,this)})),o)if(s={values:c("values"),keys:i?m:c("keys"),entries:c("entries")},a)for(l in s)(Fh||d||!(l in p))&&Hr(p,l,s[l]);else Dt({target:t,proto:!0,forced:Fh||d},s);return p[zc]!==m&&Hr(p,zc,m,{name:o}),Pl[t]=m,s},lJ=qP.charAt,cJ=Cr.set,fJ=Cr.getterFor("String Iterator");I5(String,"String",function(e){cJ(this,{type:"String Iterator",string:it(e),index:0})},function(){var e,t=fJ(this),r=t.string,n=t.index;return n>=r.length?{value:void 0,done:!0}:(e=lJ(r,n),t.index+=e.length,{value:e,done:!1})});var _1,dJ=jp.f,m7=pe("".endsWith),pJ=pe("".slice),hJ=Math.min,XP=_5("endsWith"),gJ=!(XP||(_1=dJ(String.prototype,"endsWith"),!_1||_1.writable));Dt({target:"String",proto:!0,forced:!gJ&&!XP},{endsWith:function(e){var t=it(On(this));T5(e);var r=arguments.length>1?arguments[1]:void 0,n=t.length,o=r===void 0?n:hJ(ec(r),n),i=it(e);return m7?m7(t,i,o):pJ(t,o-i.length,o)===i}});var vJ=pe([].join),mJ=Tm!=Object,yJ=PP("join",",");Dt({target:"Array",proto:!0,forced:mJ||!yJ},{join:function(e){return vJ(Oa(this),e===void 0?",":e)}});var bJ=St("species"),Pm=function(e){return Fd>=51||!Je(function(){var t=[];return(t.constructor={})[bJ]=function(){return{foo:1}},t[e](Boolean).foo!==1})},wJ=tc.map,EJ=Pm("map");Dt({target:"Array",proto:!0,forced:!EJ},{map:function(e){return wJ(this,e,arguments.length>1?arguments[1]:void 0)}});var R5=Y.RegExp,eE=Je(function(){var e=R5("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),DJ=eE||Je(function(){return!R5("a","y").sticky}),Nm={BROKEN_CARET:eE||Je(function(){var e=R5("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),MISSED_STICKY:DJ,UNSUPPORTED_Y:eE},CJ=Y.RegExp,L5=Je(function(){var e=CJ(".","s");return!(e.dotAll&&e.exec(`
- `)&&e.flags==="s")}),SJ=Y.RegExp,M5=Je(function(){var e=SJ("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),xJ=Cr.get,AJ=D5("native-string-replace",String.prototype.replace),Kv=RegExp.prototype.exec,tE=Kv,OJ=pe("".charAt),BJ=pe("".indexOf),kJ=pe("".replace),j1=pe("".slice),P1=function(){var e=/a/,t=/b*/g;return qe(Kv,e,"a"),qe(Kv,t,"a"),e.lastIndex!==0||t.lastIndex!==0}(),y7=Nm.BROKEN_CARET,N1=/()??/.exec("")[1]!==void 0;(P1||N1||y7||L5||M5)&&(tE=function(e){var t,r,n,o,i,a,u,s=this,l=xJ(s),c=it(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=qe(tE,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=y7&&s.sticky,v=qe(k5,s),m=s.source,g=0,y=c;if(p&&(v=kJ(v,"y",""),BJ(v,"g")===-1&&(v+="g"),y=j1(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&OJ(c,s.lastIndex-1)!==`
- `)&&(m="(?: "+m+")",y=" "+y,g++),r=new RegExp("^(?:"+m+")",v)),N1&&(r=new RegExp("^"+m+"$(?!\\s)",v)),P1&&(n=s.lastIndex),o=qe(Kv,p?r:s,y),p?o?(o.input=j1(o.input,g),o[0]=j1(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:P1&&o&&(s.lastIndex=s.global?o.index+o[0].length:n),N1&&o&&o.length>1&&qe(AJ,o[0],r,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&d)for(o.groups=a=jm(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var Nd=tE;Dt({target:"RegExp",proto:!0,forced:/./.exec!==Nd},{exec:Nd});var z5=Function.prototype,b7=z5.apply,FJ=z5.bind,w7=z5.call,$5=typeof Reflect=="object"&&Reflect.apply||(FJ?w7.bind(b7):function(){return w7.apply(b7,arguments)}),TJ=St("species"),I1=RegExp.prototype,H5=function(e,t,r,n){var o=St(e),i=!Je(function(){var l={};return l[o]=function(){return 7},""[e](l)!=7}),a=i&&!Je(function(){var l=!1,c=/a/;return e==="split"&&((c={}).constructor={},c.constructor[TJ]=function(){return c},c.flags="",c[o]=/./[o]),c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||r){var u=pe(/./[o]),s=t(o,""[e],function(l,c,f,d,p){var v=pe(l),m=c.exec;return m===Nd||m===I1.exec?i&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:v(f,c,d)}:{done:!1}});Hr(String.prototype,e,s[0]),Hr(I1,o,s[1])}n&&Wn(I1[o],"sham",!0)},_J=qP.charAt,U5=function(e,t,r){return t+(r?_J(e,t).length:1)},jJ=Math.floor,R1=pe("".charAt),PJ=pe("".replace),L1=pe("".slice),NJ=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,IJ=/\$([$&'`]|\d{1,2})/g,RJ=function(e,t,r,n,o,i){var a=r+e.length,u=n.length,s=IJ;return o!==void 0&&(o=Aa(o),s=NJ),PJ(i,s,function(l,c){var f;switch(R1(c,0)){case"$":return"$";case"&":return e;case"`":return L1(t,0,r);case"'":return L1(t,a);case"<":f=o[L1(c,1,-1)];break;default:var d=+c;if(d===0)return l;if(d>u){var p=jJ(d/10);return p===0?l:p<=u?n[p-1]===void 0?R1(c,1):n[p-1]+R1(c,1):l}f=n[d-1]}return f===void 0?"":f})},LJ=Y.TypeError,Id=function(e,t){var r=e.exec;if(nt(r)){var n=qe(r,e,t);return n!==null&&Rt(n),n}if(Gn(e)==="RegExp")return qe(Nd,e,t);throw LJ("RegExp#exec called on incompatible receiver")},rE=St("replace"),MJ=Math.max,zJ=Math.min,$J=pe([].concat),M1=pe([].push),E7=pe("".indexOf),D7=pe("".slice),HJ="a".replace(/./,"$0")==="$0",C7=!!/./[rE]&&/./[rE]("a","$0")==="";H5("replace",function(e,t,r){var n=C7?"$":"$0";return[function(o,i){var a=On(this),u=o==null?void 0:Hu(o,rE);return u?qe(u,o,a,i):qe(t,it(a),o,i)},function(o,i){var a=Rt(this),u=it(o);if(typeof i=="string"&&E7(i,n)===-1&&E7(i,"$<")===-1){var s=r(t,a,u,i);if(s.done)return s.value}var l=nt(i);l||(i=it(i));var c=a.global;if(c){var f=a.unicode;a.lastIndex=0}for(var d=[];;){var p=Id(a,u);if(p===null||(M1(d,p),!c))break;it(p[0])===""&&(a.lastIndex=U5(u,ec(a.lastIndex),f))}for(var v,m="",g=0,y=0;y<d.length;y++){for(var h=it((p=d[y])[0]),b=MJ(zJ(_p(p.index),u.length),0),w=[],D=1;D<p.length;D++)M1(w,(v=p[D])===void 0?v:String(v));var S=p.groups;if(l){var C=$J([h],w,b,u);S!==void 0&&M1(C,S);var O=it($5(i,void 0,C))}else O=RJ(h,u,b,w,S,i);b>=g&&(m+=D7(u,g,b)+O,g=b+h.length)}return m+D7(u,g)}]},!!Je(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"})||!HJ||C7);/*! *****************************************************************************
- Copyright (c) Microsoft Corporation.
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted.
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THIS SOFTWARE.
- ***************************************************************************** */var nE=function(e,t){return nE=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])},nE(e,t)};function rc(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}nE(e,t),e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var yn=function(){return yn=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},yn.apply(this,arguments)};function bn(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function He(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(t===void 0||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(u){o={error:u}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function oE(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e}var UJ=0,S7=function(){this.id=""+UJ++},VJ=Cr.set,WJ=Cr.getterFor("Array Iterator"),Uf=I5(Array,"Array",function(e,t){VJ(this,{type:"Array Iterator",target:Oa(e),index:0,kind:t})},function(){var e=WJ(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,{value:void 0,done:!0}):r=="keys"?{value:n,done:!1}:r=="values"?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}},"values");Pl.Arguments=Pl.Array,td("keys"),td("values"),td("entries");var Il=function(e,t,r){for(var n in t)Hr(e,n,t[n],r);return e},GJ=Y.Array,qJ=Math.max,iE=function(e,t,r){for(var n=is(e),o=jl(t,n),i=jl(r===void 0?n:r,n),a=GJ(qJ(i-o,0)),u=0;o<i;o++,u++)Pd(a,u,e[o]);return a.length=u,a},x7=_d.f,A7=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],KJ={f:function(e){return A7&&Gn(e)=="Window"?function(t){try{return x7(t)}catch{return iE(A7)}}(e):x7(Oa(e))}},O7=Je(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}),Th=Object.isExtensible,su=Je(function(){Th(1)})||O7?function(e){return!!ft(e)&&(!O7||Gn(e)!="ArrayBuffer")&&(!Th||Th(e))}:Th,XJ=!Je(function(){return Object.isExtensible(Object.preventExtensions({}))}),Im=Tp(function(e){var t=Zn.f,r=!1,n=C5("meta"),o=0,i=function(u){t(u,n,{value:{objectID:"O"+o++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},r=!0;var u=_d.f,s=pe([].splice),l={};l[n]=1,u(l).length&&(_d.f=function(c){for(var f=u(c),d=0,p=f.length;d<p;d++)if(f[d]===n){s(f,d,1);break}return f},Dt({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:KJ.f}))},fastKey:function(u,s){if(!ft(u))return typeof u=="symbol"?u:(typeof u=="string"?"S":"P")+u;if(!It(u,n)){if(!su(u))return"F";if(!s)return"E";i(u)}return u[n].objectID},getWeakData:function(u,s){if(!It(u,n)){if(!su(u))return!0;if(!s)return!1;i(u)}return u[n].weakData},onFreeze:function(u){return XJ&&r&&su(u)&&!It(u,n)&&i(u),u}};km[n]=!0}),YJ=Y.TypeError,Rg=function(e,t){this.stopped=e,this.result=t},B7=Rg.prototype,Rd=function(e,t,r){var n,o,i,a,u,s,l,c=r&&r.that,f=!(!r||!r.AS_ENTRIES),d=!(!r||!r.IS_ITERATOR),p=!(!r||!r.INTERRUPTED),v=Uu(t,c),m=function(y){return n&&J4(n,"normal",y),new Rg(!0,y)},g=function(y){return f?(Rt(y),p?v(y[0],y[1],m):v(y[0],y[1])):p?v(y,m):v(y)};if(d)n=e;else{if(!(o=j5(e)))throw YJ(Am(e)+" is not iterable");if(UP(o)){for(i=0,a=is(e);a>i;i++)if((u=g(e[i]))&&$u(B7,u))return u;return new Rg(!1)}n=VP(e,o)}for(s=n.next;!(l=qe(s,n)).done;){try{u=g(l.value)}catch(y){J4(n,"throw",y)}if(typeof u=="object"&&u&&$u(B7,u))return u}return new Rg(!1)},JJ=Y.TypeError,Rm=function(e,t){if($u(t,e))return e;throw JJ("Incorrect invocation")},YP=function(e,t,r){var n,o;return Nl&&nt(n=t.constructor)&&n!==r&&ft(o=n.prototype)&&o!==r.prototype&&Nl(e,o),e},JP=function(e,t,r){var n=e.indexOf("Map")!==-1,o=e.indexOf("Weak")!==-1,i=n?"set":"add",a=Y[e],u=a&&a.prototype,s=a,l={},c=function(g){var y=pe(u[g]);Hr(u,g,g=="add"?function(h){return y(this,h===0?0:h),this}:g=="delete"?function(h){return!(o&&!ft(h))&&y(this,h===0?0:h)}:g=="get"?function(h){return o&&!ft(h)?void 0:y(this,h===0?0:h)}:g=="has"?function(h){return!(o&&!ft(h))&&y(this,h===0?0:h)}:function(h,b){return y(this,h===0?0:h,b),this})};if(jd(e,!nt(a)||!(o||u.forEach&&!Je(function(){new a().entries().next()}))))s=r.getConstructor(t,e,n,i),Im.enable();else if(jd(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=Je(function(){f.has(1)}),v=P5(function(g){new a(g)}),m=!o&&Je(function(){for(var g=new a,y=5;y--;)g[i](y,y);return!g.has(-0)});v||((s=t(function(g,y){Rm(g,u);var h=YP(new a,g,s);return y!=null&&Rd(y,h[i],{that:h,AS_ENTRIES:n}),h})).prototype=u,u.constructor=s),(p||m)&&(c("delete"),c("has"),n&&c("get")),(m||d)&&c(i),o&&u.clear&&delete u.clear}return l[e]=s,Dt({global:!0,forced:s!=a},l),qv(s,e),o||r.setStrong(s,e,n),s},_h=Im.getWeakData,ZJ=Cr.set,QJ=Cr.getterFor,eZ=tc.find,tZ=tc.findIndex,rZ=pe([].splice),nZ=0,jh=function(e){return e.frozen||(e.frozen=new ZP)},ZP=function(){this.entries=[]},z1=function(e,t){return eZ(e.entries,function(r){return r[0]===t})};ZP.prototype={get:function(e){var t=z1(this,e);if(t)return t[1]},has:function(e){return!!z1(this,e)},set:function(e,t){var r=z1(this,e);r?r[1]=t:this.entries.push([e,t])},delete:function(e){var t=tZ(this.entries,function(r){return r[0]===e});return~t&&rZ(this.entries,t,1),!!~t}};var $c,QP={getConstructor:function(e,t,r,n){var o=e(function(s,l){Rm(s,i),ZJ(s,{type:t,id:nZ++,frozen:void 0}),l!=null&&Rd(l,s[n],{that:s,AS_ENTRIES:r})}),i=o.prototype,a=QJ(t),u=function(s,l,c){var f=a(s),d=_h(Rt(l),!0);return d===!0?jh(f).set(l,c):d[f.id]=c,s};return Il(i,{delete:function(s){var l=a(this);if(!ft(s))return!1;var c=_h(s);return c===!0?jh(l).delete(s):c&&It(c,l.id)&&delete c[l.id]},has:function(s){var l=a(this);if(!ft(s))return!1;var c=_h(s);return c===!0?jh(l).has(s):c&&It(c,l.id)}}),Il(i,r?{get:function(s){var l=a(this);if(ft(s)){var c=_h(s);return c===!0?jh(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}},Ph=Cr.enforce,oZ=!Y.ActiveXObject&&"ActiveXObject"in Y,eN=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},iZ=JP("WeakMap",eN,QP);if(BP&&oZ){$c=QP.getConstructor(eN,"WeakMap",!0),Im.enable();var Hc=iZ.prototype,k7=pe(Hc.delete),Nh=pe(Hc.has),F7=pe(Hc.get),T7=pe(Hc.set);Il(Hc,{delete:function(e){if(ft(e)&&!su(e)){var t=Ph(this);return t.frozen||(t.frozen=new $c),k7(this,e)||t.frozen.delete(e)}return k7(this,e)},has:function(e){if(ft(e)&&!su(e)){var t=Ph(this);return t.frozen||(t.frozen=new $c),Nh(this,e)||t.frozen.has(e)}return Nh(this,e)},get:function(e){if(ft(e)&&!su(e)){var t=Ph(this);return t.frozen||(t.frozen=new $c),Nh(this,e)?F7(this,e):t.frozen.get(e)}return F7(this,e)},set:function(e,t){if(ft(e)&&!su(e)){var r=Ph(this);r.frozen||(r.frozen=new $c),Nh(this,e)?T7(this,e,t):r.frozen.set(e,t)}else T7(this,e,t);return this}})}var $1=St("iterator"),_7=St("toStringTag"),H1=Uf.values,tN=function(e,t){if(e){if(e[$1]!==H1)try{Wn(e,$1,H1)}catch{e[$1]=H1}if(e[_7]||Wn(e,_7,t),Uv[t]){for(var r in Uf)if(e[r]!==Uf[r])try{Wn(e,r,Uf[r])}catch{e[r]=Uf[r]}}}};for(var U1 in Uv)tN(Y[U1]&&Y[U1].prototype,U1);tN(FP,"DOMTokenList");var aE=new WeakMap,uE=new WeakMap,V5=new WeakMap,Lm=new WeakMap,sE=new WeakMap,Xv=new WeakMap,W5=new WeakMap,lE=new WeakMap,Lg=new WeakMap,j7=new WeakMap,P7=new WeakMap,N7=new WeakMap,I7=new WeakMap,Ld=new WeakMap,Rl=new WeakMap,G5=new WeakMap,Yv=new WeakMap,cE=new WeakMap,Jv=new WeakMap,Mg=new WeakMap,rN=new WeakMap,wu=new WeakMap,V1=new WeakMap,R7=new WeakMap,W1=new WeakMap,aZ=tc.find,L7=!0;"find"in[]&&Array(1).find(function(){L7=!1}),Dt({target:"Array",proto:!0,forced:L7},{find:function(e){return aZ(this,e,arguments.length>1?arguments[1]:void 0)}}),td("find"),Dt({global:!0},{globalThis:Y});const uZ=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","isindex","keygen","link","menuitem","meta","nextid","param","source","track","wbr"];Nv&&(k.fn.css=Nv),An&&(k.fn.append=An),Dl&&(k.fn.addClass=Dl),Cl&&(k.fn.removeClass=Cl),Sl&&(k.fn.hasClass=Sl),Ao&&(k.fn.on=Ao),ha&&(k.fn.focus=ha),xn&&(k.fn.attr=xn),Tv&&(k.fn.removeAttr=Tv),Al&&(k.fn.hide=Al),Pv&&(k.fn.show=Pv),eA&&(k.fn.offset=eA),_v&&(k.fn.width=_v),jv&&(k.fn.height=jv),Ol&&(k.fn.parent=Ol),Lv&&(k.fn.parents=Lv),rA&&(k.fn.is=rA),xl&&(k.fn.dataset=xl),xo&&(k.fn.val=xo),Rv&&(k.fn.text=Rv),pa&&(k.fn.html=pa),kl&&(k.fn.children=kl),Fl&&(k.fn.remove=Fl),Bl&&(k.fn.find=Bl),Iv&&(k.fn.each=Iv),Tl&&(k.fn.empty=Tl);var po,wr,q5=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||null},Ln=function(e){return Vu(e)&&e.nodeType===1},Vu=function(e){var t=q5(e);return!!t&&e instanceof t.Node},M7=function(e){var t=e&&e.anchorNode&&q5(e.anchorNode);return!!t&&e instanceof t.Selection},nN=function(e){return Vu(e)&&e.nodeType===3},fE=function(e){var t,r,n;return(t=window.document.getElementById(e))!==null&&t!==void 0?t:((n=(r=window.document.activeElement)===null||r===void 0?void 0:r.shadowRoot)===null||n===void 0?void 0:n.getElementById(e))||null},oN=function(e,t,r){for(var n,o=e.childNodes,i=o[t],a=t,u=!1,s=!1;(Vu(n=i)&&n.nodeType===8||Ln(i)&&i.childNodes.length===0||Ln(i)&&i.getAttribute("contenteditable")==="false")&&(!u||!s);)a>=o.length?(u=!0,a=t-1,r="backward"):a<0?(s=!0,a=t+1,r="forward"):(i=o[a],t=a,a+=r==="forward"?1:-1);return[i,t]},sZ=function(e,t,r){return He(oN(e,t,r),1)[0]},lZ=function e(t){var r,n,o="";if(nN(t)&&t.nodeValue)return t.nodeValue;if(Ln(t)){try{for(var i=bn(Array.from(t.childNodes)),a=i.next();!a.done;a=i.next())o+=e(a.value)}catch(s){r={error:s}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}var u=getComputedStyle(t).getPropertyValue("display");u!=="block"&&u!=="list"&&u!=="table-row"&&t.tagName!=="BR"||(o+=`
- `)}return o};function iN(e,t){if(!(e instanceof HTMLElement&&e.dataset.slateVoid==="true"))for(var r=e.childNodes,n=r.length;n--;){var o=r[n],i=o.nodeType;i==3?t(o,e):i!=1&&i!=9&&i!=11||iN(o,t)}}function z7(e){if(e.length===0)return"";var t=e[0];return t.nodeType!==po.ELEMENT_NODE?"":t.tagName.toLowerCase()}(wr=po||(po={}))[wr.ELEMENT_NODE=1]="ELEMENT_NODE",wr[wr.TEXT_NODE=3]="TEXT_NODE",wr[wr.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",wr[wr.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",wr[wr.COMMENT_NODE=8]="COMMENT_NODE",wr[wr.DOCUMENT_NODE=9]="DOCUMENT_NODE",wr[wr.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",wr[wr.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE";var dE=typeof navigator<"u"&&/Mac OS X/.test(navigator.userAgent),rd=typeof navigator<"u"&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),Uc=typeof navigator<"u"&&/Version\/[\d\.]+.*Safari/.test(navigator.userAgent),cZ=typeof navigator<"u"&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),fZ=typeof navigator<"u"&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),pE=typeof navigator<"u"&&/Chrome/i.test(navigator.userAgent),Vc=!fZ&&!cZ&&typeof globalThis<"u"&&globalThis.InputEvent&&typeof globalThis.InputEvent.prototype.getTargetRanges=="function",A={getWindow:function(e){var t=rN.get(e);if(!t)throw new Error("Unable to find a host window element for this editor");return t},findKey:function(e,t){var r=Mg.get(t);return r||(r=new S7,Mg.set(t,r)),r},setNewKey:function(e){var t=new S7;Mg.set(e,t)},findPath:function(e,t){for(var r=[],n=t;;){var o=Rl.get(n);if(o==null){if(E.isEditor(n))return r;break}var i=Ld.get(n);if(i==null)break;r.unshift(i),n=o}throw new Error("Unable to find the path for Slate node: "+JSON.stringify(t))},findDocumentOrShadowRoot:function(e){if(e.isDestroyed)return window.document;var t=A.toDOMNode(e,e),r=t.getRootNode();return(r instanceof Document||r instanceof ShadowRoot)&&r.getSelection!=null?r:t.ownerDocument},getParentNode:function(e,t){return Rl.get(t)||null},getParentsNodes:function(e,t){for(var r=[],n=t;n!==e&&n!=null;){var o=A.getParentNode(e,n);if(o==null)break;r.push(o),n=o}return r},getTopNode:function(e,t){var r=[A.findPath(e,t)[0]];return Z.get(e,r)},toDOMNode:function(e,t){var r;if(E.isEditor(t))r=G5.get(e);else{var n=A.findKey(e,t);r=cE.get(n)}if(!r)throw new Error("Cannot resolve a DOM node from Slate node: "+JSON.stringify(t));return r},hasDOMNode:function(e,t,r){r===void 0&&(r={});var n,o=r.editable,i=o!==void 0&&o,a=A.toDOMNode(e,e);try{n=Ln(t)?t:t.parentElement}catch(u){if(!u.message.includes('Permission denied to access property "nodeType"'))throw u}return!!n&&n.closest("[data-slate-editor]")===a&&(!i||n.isContentEditable||!!n.getAttribute("data-slate-zero-width"))},toDOMRange:function(e,t){var r=t.anchor,n=t.focus,o=R.isBackward(t),i=A.toDOMPoint(e,r),a=R.isCollapsed(t)?i:A.toDOMPoint(e,n),u=A.getWindow(e).document.createRange(),s=He(o?a:i,2),l=s[0],c=s[1],f=He(o?i:a,2),d=f[0],p=f[1],v=!!(Ln(l)?l:l.parentElement).getAttribute("data-slate-zero-width"),m=!!(Ln(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(e,t){var r,n,o,i=He(E.node(e,t.path),1)[0],a=A.toDOMNode(e,i);E.void(e,{at:t})&&(t={path:t.path,offset:0});var u=Array.from(a.querySelectorAll("[data-slate-string], [data-slate-zero-width]")),s=0;try{for(var l=bn(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(t.offset<=m){o=[d,Math.min(p,Math.max(0,t.offset-s))];break}s=m}}}catch(g){r={error:g}}finally{try{c&&!c.done&&(n=l.return)&&n.call(l)}finally{if(r)throw r.error}}if(!o)throw new Error("Cannot resolve a DOM point from Slate point: "+JSON.stringify(t));return o},toSlateNode:function(e,t){var r=Ln(t)?t:t.parentElement;r&&!r.hasAttribute("data-slate-node")&&(r=r.closest("[data-slate-node]"));var n=r?Yv.get(r):null;if(!n)throw new Error("Cannot resolve a Slate node from DOM node: "+r);return n},findEventRange:function(e,t){"nativeEvent"in t&&(t=t.nativeEvent);var r=t.clientX,n=t.clientY,o=t.target;if(r==null||n==null)throw new Error("Cannot resolve a Slate range from a DOM event: "+t);var i,a=A.toSlateNode(e,t.target),u=A.findPath(e,a);if(E.isVoid(e,a)){var s=o.getBoundingClientRect(),l=e.isInline(a)?r-s.left<s.left+s.width-r:n-s.top<s.top+s.height-n,c=E.point(e,u,{edge:l?"start":"end"}),f=l?E.before(e,c):E.after(e,c);if(f)return E.range(e,f)}var d=this.getWindow(e).document;if(d.caretRangeFromPoint)i=d.caretRangeFromPoint(r,n);else{var p=d.caretPositionFromPoint(r,n);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: "+t);return A.toSlateRange(e,i,{exactMatch:!1,suppressThrow:!1})},toSlateRange:function(e,t,r){var n,o,i,a,u,s=r.exactMatch,l=r.suppressThrow;if((M7(t)?t.anchorNode:t.startContainer)&&(M7(t)?(n=t.anchorNode,o=t.anchorOffset,i=t.focusNode,a=t.focusOffset,u=pE&&window.document.activeElement&&window.document.activeElement.shadowRoot?t.anchorNode===t.focusNode&&t.anchorOffset===t.focusOffset:t.isCollapsed):(n=t.startContainer,o=t.startOffset,i=t.endContainer,a=t.endOffset,u=t.collapsed)),n==null||i==null||o==null||a==null)throw new Error("Cannot resolve a Slate range from DOM range: "+t);var c=A.toSlatePoint(e,[n,o],{exactMatch:s,suppressThrow:l});if(!c)return null;var f=u?c:A.toSlatePoint(e,[i,a],{exactMatch:s,suppressThrow:l});if(!f)return null;var d={anchor:c,focus:f};return R.isExpanded(d)&&R.isForward(d)&&Ln(i)&&E.void(e,{at:d.focus,mode:"highest"})&&(d=E.unhangRange(e,d,{voids:!0})),d},toSlatePoint:function(e,t,r){var n,o=r.exactMatch,i=r.suppressThrow,a=He(o?t:function(h){var b,w=He(h,2),D=w[0],S=w[1];if(Ln(D)&&D.childNodes.length){var C=S===D.childNodes.length,O=C?S-1:S;for(D=(b=He(oN(D,O,C?"backward":"forward"),2))[0],C=(O=b[1])<S;Ln(D)&&D.childNodes.length;){var F=C?D.childNodes.length-1:0;D=sZ(D,F,C?"backward":"forward")}S=C&&D.textContent!=null?D.textContent.length:0}return[D,S]}(t),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=A.getWindow(e).document.createRange();m.setStart(c,0),m.setEnd(u,s);var g=m.cloneContents();oE(oE([],He(Jx(g.querySelectorAll("[data-slate-zero-width]")))),He(Jx(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")||rd&&!((n=v.textContent)===null||n===void 0)&&n.endsWith(`
- `))&&f--}if(!c){if(i)return null;throw new Error("Cannot resolve a Slate point from DOM point: "+t)}var y=A.toSlateNode(e,c);return{path:A.findPath(e,y),offset:f}},hasRange:function(e,t){var r=t.anchor,n=t.focus;return E.hasPath(e,r.path)&&E.hasPath(e,n.path)},getNodeType:function(e){return ce.isElement(e)?e.type:""},checkNodeType:function(e,t){return this.getNodeType(e)===t},getNodesStr:function(e){return e.map(function(t){return Z.string(t)}).join("")},getSelectedElems:function(e){var t,r,n=[],o=E.nodes(e,{universal:!0});try{for(var i=bn(o),a=i.next();!a.done;a=i.next()){var u=He(a.value,1)[0];ce.isElement(u)&&n.push(u)}}catch(s){t={error:s}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return n},getSelectedNodeByType:function(e,t){var r=this,n=He(E.nodes(e,{match:function(i){return r.checkNodeType(i,t)},universal:!0}),1),o=n[0];return o==null?null:o[0]},getSelectedTextNode:function(e){var t=He(E.nodes(e,{match:function(n){return oe.isText(n)},universal:!0}),1),r=t[0];return r==null?null:r[0]},isNodeSelected:function(e,t){var r=He(E.nodes(e,{match:function(o){return o===t},universal:!0}),1),n=r[0];return n!=null&&He(n,1)[0]===t},isSelectionAtLineEnd:function(e,t){var r=e.selection;return!!r&&(E.isEnd(e,r.anchor,t)||E.isEnd(e,r.focus,t))},getTextarea:function(e){var t=aE.get(e);if(t==null)throw new Error("Cannot find textarea instance by editor");return t},getToolbar:function(e){return Lm.get(e)||null},getHoverbar:function(e){return Xv.get(e)||null},normalizeContent:function(e){e.children.forEach(function(t,r){e.normalizeNode([t,[r]])})},getLeftLengthOfMaxLength:function(e){var t=e.getConfig(),r=t.maxLength,n=t.onMaxLength;if(typeof r!="number"||r<=0)return 1/0;var o=r-e.getText().replace(/\r|\n|(\r\n)/g,"").length;return o<=0&&n&&n(e),o},cleanExposedTexNodeInSelectionBlock:function(e){var t,r,n,o,i=A.getTextarea(e).$textArea,a=i==null?void 0:i[0].childNodes;if(a)try{for(var u=bn(Array.from(a)),s=u.next();!s.done;s=u.next()){var l=s.value;if(l.nodeType!==3)break;l.remove()}}catch(m){t={error:m}}finally{try{s&&!s.done&&(r=u.return)&&r.call(u)}finally{if(t)throw t.error}}var c=E.nodes(e,{match:function(m){return!(!ce.isElement(m)||e.isInline(m))},universal:!0});try{for(var f=bn(c),d=f.next();!d.done;d=f.next()){var p=d.value;if(p!=null){var v=p[0];iN(A.toDOMNode(e,v),function(m,g){var y=k(g);y.attr("data-slate-string")||y.attr("data-slate-zero-width")||y.attr("data-w-e-reserve")||g.removeChild(m)})}}}catch(m){n={error:m}}finally{try{d&&!d.done&&(o=f.return)&&o.call(f)}finally{if(n)throw n.error}}},isLastNode:function(e,t){var r=e.children||[];return r[r.length-1]===t},genEmptyParagraph:function(){return{type:"paragraph",children:[{text:""}]}},isSelectedVoidNode:function(e){var t,r,n=E.nodes(e,{match:function(u){return e.isVoid(u)}}),o=0;try{for(var i=bn(n),a=i.next();!a.done;a=i.next())a.value,o++}catch(u){t={error:u}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return o>0},isSelectedEmptyParagraph:function(e){var t=e.selection;if(t==null||R.isExpanded(t))return!1;var r=A.getSelectedNodeByType(e,"paragraph");if(r===null)return!1;var n=r.children;return n.length===1&&(n[0].text===""||void 0)},isEmptyPath:function(e,t){var r=E.node(e,t);if(r==null)return!1;var n=He(r,1)[0].children;return n.length===1&&n[0].text===""}},dZ=1,aN={},Md={},pZ=tc.filter,hZ=Pm("filter");Dt({target:"Array",proto:!0,forced:!hZ},{filter:function(e){return pZ(this,e,arguments.length>1?arguments[1]:void 0)}});var hE=`
- \v\f\r \u2028\u2029\uFEFF`,$7=pe("".replace),Zv="["+hE+"]",gZ=RegExp("^"+Zv+Zv+"*"),vZ=RegExp(Zv+Zv+"*$"),mZ=function(e){return function(t){var r=it(On(t));return 1&e&&(r=$7(r,gZ,"")),2&e&&(r=$7(r,vZ,"")),r}},yZ={trim:mZ(3)},bZ=Ql.PROPER,wZ=yZ.trim;Dt({target:"String",proto:!0,forced:function(e){return Je(function(){return!!hE[e]()||"
"[e]()!=="
"||bZ&&hE[e].name!==e})}("trim")},{trim:function(){return wZ(this)}});var gE=[],uN={};function EZ(e,t,r){var n=r.isInline(e)?"span":"div";return"<"+n+">"+t+"</"+n+">"}var zd,Ds,H7,G1,Qv=Y.Promise,U7=St("species"),K5=function(e){var t=os(e),r=Zn.f;nr&&t&&!t[U7]&&r(t,U7,{configurable:!0,get:function(){return this}})},DZ=Y.TypeError,CZ=St("species"),sN=function(e,t){var r,n=Rt(e).constructor;return n===void 0||(r=Rt(n)[CZ])==null?t:function(o){if(_m(o))return o;throw DZ(Am(o)+" is not a constructor")}(r)},lN=pe([].slice),cN=/(?:ipad|iphone|ipod).*applewebkit/i.test(ul),Yi=Gn(Y.process)=="process",vE=Y.setImmediate,V7=Y.clearImmediate,SZ=Y.process,q1=Y.Dispatch,xZ=Y.Function,W7=Y.MessageChannel,AZ=Y.String,K1=0,nd={};try{zd=Y.location}catch{}var X5=function(e){if(It(nd,e)){var t=nd[e];delete nd[e],t()}},X1=function(e){return function(){X5(e)}},G7=function(e){X5(e.data)},q7=function(e){Y.postMessage(AZ(e),zd.protocol+"//"+zd.host)};vE&&V7||(vE=function(e){var t=lN(arguments,1);return nd[++K1]=function(){$5(nt(e)?e:xZ(e),void 0,t)},Ds(K1),K1},V7=function(e){delete nd[e]},Yi?Ds=function(e){SZ.nextTick(X1(e))}:q1&&q1.now?Ds=function(e){q1.now(X1(e))}:W7&&!cN?(G1=(H7=new W7).port2,H7.port1.onmessage=G7,Ds=Uu(G1.postMessage,G1)):Y.addEventListener&&nt(Y.postMessage)&&!Y.importScripts&&zd&&zd.protocol!=="file:"&&!Je(q7)?(Ds=q7,Y.addEventListener("message",G7,!1)):Ds="onreadystatechange"in Td("script")?function(e){K4.appendChild(Td("script")).onreadystatechange=function(){K4.removeChild(this),X5(e)}}:function(e){setTimeout(X1(e),0)});var Wc,ou,od,Ks,Y1,J1,Z1,K7,fN={set:vE},OZ=/ipad|iphone|ipod/i.test(ul)&&Y.Pebble!==void 0,BZ=/web0s(?!.*chrome)/i.test(ul),kZ=jp.f,Q1=fN.set,X7=Y.MutationObserver||Y.WebKitMutationObserver,Y7=Y.document,J7=Y.process,Ih=Y.Promise,Z7=kZ(Y,"queueMicrotask"),dN=Z7&&Z7.value;dN||(Wc=function(){var e,t;for(Yi&&(e=J7.domain)&&e.exit();ou;){t=ou.fn,ou=ou.next;try{t()}catch(r){throw ou?Ks():od=void 0,r}}od=void 0,e&&e.enter()},cN||Yi||BZ||!X7||!Y7?!OZ&&Ih&&Ih.resolve?((Z1=Ih.resolve(void 0)).constructor=Ih,K7=Uu(Z1.then,Z1),Ks=function(){K7(Wc)}):Yi?Ks=function(){J7.nextTick(Wc)}:(Q1=Uu(Q1,Y),Ks=function(){Q1(Wc)}):(Y1=!0,J1=Y7.createTextNode(""),new X7(Wc).observe(J1,{characterData:!0}),Ks=function(){J1.data=Y1=!Y1}));var eb,Q7,pN,e9,hN=dN||function(e){var t={fn:e,next:void 0};od&&(od.next=t),ou||(ou=t,Ks()),od=t},FZ=function(e){var t,r;this.promise=new e(function(n,o){if(t!==void 0||r!==void 0)throw TypeError("Bad Promise constructor");t=n,r=o}),this.resolve=ga(t),this.reject=ga(r)},Y5={f:function(e){return new FZ(e)}},mE=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}},TZ=typeof window=="object",gN=fN.set,_Z=St("species"),lo="Promise",t9=Cr.getterFor(lo),jZ=Cr.set,PZ=Cr.getterFor(lo),Za=Qv&&Qv.prototype,go=Qv,Gc=Za,vN=Y.TypeError,yE=Y.document,J5=Y.process,ll=Y5.f,NZ=ll,IZ=!!(yE&&yE.createEvent&&Y.dispatchEvent),mN=nt(Y.PromiseRejectionEvent),yN=!1,id=jd(lo,function(){var e=Bm(go),t=e!==String(go);if(!t&&Fd===66)return!0;if(Fd>=51&&/native code/.test(e))return!1;var r=new go(function(o){o(1)}),n=function(o){o(function(){},function(){})};return(r.constructor={})[_Z]=n,!(yN=r.then(function(){})instanceof n)||!t&&TZ&&!mN}),RZ=id||!P5(function(e){go.all(e).catch(function(){})}),bN=function(e){var t;return!(!ft(e)||!nt(t=e.then))&&t},Z5=function(e,t){if(!e.notified){e.notified=!0;var r=e.reactions;hN(function(){for(var n=e.value,o=e.state==1,i=0;r.length>i;){var a,u,s,l=r[i++],c=o?l.ok:l.fail,f=l.resolve,d=l.reject,p=l.domain;try{c?(o||(e.rejection===2&&MZ(e),e.rejection=1),c===!0?a=n:(p&&p.enter(),a=c(n),p&&(p.exit(),s=!0)),a===l.promise?d(vN("Promise-chain cycle")):(u=bN(a))?qe(u,a,f,d):f(a)):d(n)}catch(v){p&&!s&&p.exit(),d(v)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&LZ(e)})}},wN=function(e,t,r){var n,o;IZ?((n=yE.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),Y.dispatchEvent(n)):n={promise:t,reason:r},!mN&&(o=Y["on"+e])?o(n):e==="unhandledrejection"&&function(i,a){var u=Y.console;u&&u.error&&(arguments.length==1?u.error(i):u.error(i,a))}("Unhandled promise rejection",r)},LZ=function(e){qe(gN,Y,function(){var t,r=e.facade,n=e.value;if(r9(e)&&(t=mE(function(){Yi?J5.emit("unhandledRejection",n,r):wN("unhandledrejection",r,n)}),e.rejection=Yi||r9(e)?2:1,t.error))throw t.value})},r9=function(e){return e.rejection!==1&&!e.parent},MZ=function(e){qe(gN,Y,function(){var t=e.facade;Yi?J5.emit("rejectionHandled",t):wN("rejectionhandled",t,e.value)})},tl=function(e,t,r){return function(n){e(t,n,r)}},cl=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=2,Z5(e,!0))},bE=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===t)throw vN("Promise can't be resolved itself");var n=bN(t);n?hN(function(){var o={done:!1};try{qe(n,t,tl(bE,o,e),tl(cl,o,e))}catch(i){cl(o,i,e)}}):(e.value=t,e.state=1,Z5(e,!1))}catch(o){cl({done:!1},o,e)}}};if(id&&(Gc=(go=function(e){Rm(this,Gc),ga(e),qe(eb,this);var t=t9(this);try{e(tl(bE,t),tl(cl,t))}catch(r){cl(t,r)}}).prototype,(eb=function(e){jZ(this,{type:lo,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=Il(Gc,{then:function(e,t){var r=PZ(this),n=r.reactions,o=ll(sN(this,go));return o.ok=!nt(e)||e,o.fail=nt(t)&&t,o.domain=Yi?J5.domain:void 0,r.parent=!0,n[n.length]=o,r.state!=0&&Z5(r,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),Q7=function(){var e=new eb,t=t9(e);this.promise=e,this.resolve=tl(bE,t),this.reject=tl(cl,t)},Y5.f=ll=function(e){return e===go||e===pN?new Q7(e):NZ(e)},nt(Qv)&&Za!==Object.prototype)){e9=Za.then,yN||(Hr(Za,"then",function(e,t){var r=this;return new go(function(n,o){qe(e9,r,n,o)}).then(e,t)},{unsafe:!0}),Hr(Za,"catch",Gc.catch,{unsafe:!0}));try{delete Za.constructor}catch{}Nl&&Nl(Za,Gc)}Dt({global:!0,wrap:!0,forced:id},{Promise:go}),qv(go,lo,!1),K5(lo),pN=os(lo),Dt({target:lo,stat:!0,forced:id},{reject:function(e){var t=ll(this);return qe(t.reject,void 0,e),t.promise}}),Dt({target:lo,stat:!0,forced:id},{resolve:function(e){return function(t,r){if(Rt(t),ft(r)&&r.constructor===t)return r;var n=Y5.f(t);return(0,n.resolve)(r),n.promise}(this,e)}}),Dt({target:lo,stat:!0,forced:RZ},{all:function(e){var t=this,r=ll(t),n=r.resolve,o=r.reject,i=mE(function(){var a=ga(t.resolve),u=[],s=0,l=1;Rd(e,function(c){var f=s++,d=!1;l++,qe(a,t,c).then(function(p){d||(d=!0,u[f]=p,--l||n(u))},o)}),--l||n(u)});return i.error&&o(i.value),r.promise},race:function(e){var t=this,r=ll(t),n=r.reject,o=mE(function(){var i=ga(t.resolve);Rd(e,function(a){qe(i,t,a).then(r.resolve,n)})});return o.error&&n(o.value),r.promise}});var Cs=Nm.UNSUPPORTED_Y,zZ=Math.min,EN=[].push,$Z=pe(/./.exec),Ss=pe(EN),qc=pe("".slice);function Bn(e){Promise.resolve().then(e)}function DN(e,t){return ce.isElement(e)?function(r,n){var o=r.type,i=o===void 0?"":o,a=r.children,u=a===void 0?[]:a,s=E.isVoid(n,r),l="";s||(l=u.map(function(y){return DN(y,n)}).join(""));var c=function(y){return uN[y]||EZ}(i),f=c(r,l,n),d="";if(d=typeof f=="string"?f:f.html||"",s||gE.forEach(function(y){return d=y(r,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}(e,t):function(r,n){var o=r.text;if(o==null)throw new Error("Current node is not slate Text "+JSON.stringify(r));var i=o;i=function(s){return s.replace(/ {2}/g," ").replace(/</g,"<").replace(/>/g,">").replace(/®/g,"®").replace(/©/g,"©").replace(/™/g,"™")}(i);var a=A.getParentsNodes(n,r).some(function(s){return A.getNodeType(s)==="pre"});if(a||(i=i.replace(/\r\n|\r|\n/g,"<br>")),a&&(i=i.replace(/ /g," ")),i===""){var u=A.getParentNode(null,r);if(!u||u.children.length!==0)return i;i="<br>"}return gE.forEach(function(s){return i=s(r,i)}),i}(e,t)}function CN(e){return"w-e-element-"+e}H5("split",function(e,t,r){var n;return n="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=it(On(this)),u=i===void 0?4294967295:i>>>0;if(u===0)return[];if(o===void 0)return[a];if(!F5(o))return qe(t,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=qe(Nd,v,a))&&!((l=v.lastIndex)>p&&(Ss(f,qc(a,p,s.index)),s.length>1&&s.index<a.length&&$5(EN,f,iE(s,1)),c=s[0].length,p=l,f.length>=u));)v.lastIndex===s.index&&v.lastIndex++;return p===a.length?!c&&$Z(v,"")||Ss(f,""):Ss(f,qc(a,p)),f.length>u?iE(f,0,u):f}:"0".split(void 0,0).length?function(o,i){return o===void 0&&i===0?[]:qe(t,this,o,i)}:t,[function(o,i){var a=On(this),u=o==null?void 0:Hu(o,e);return u?qe(u,o,a,i):qe(n,it(a),o,i)},function(o,i){var a=Rt(this),u=it(o),s=r(n,a,u,i,n!==t);if(s.done)return s.value;var l=sN(a,RegExp),c=a.unicode,f=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(Cs?"g":"y"),d=new l(Cs?"^(?:"+a.source+")":a,f),p=i===void 0?4294967295:i>>>0;if(p===0)return[];if(u.length===0)return Id(d,u)===null?[u]:[];for(var v=0,m=0,g=[];m<u.length;){d.lastIndex=Cs?0:m;var y,h=Id(d,Cs?qc(u,m):u);if(h===null||(y=zZ(ec(d.lastIndex+(Cs?m:0)),u.length))===v)m=U5(u,m,c);else{if(Ss(g,qc(u,v,m)),g.length===p)return g;for(var b=1;b<=h.length-1;b++)if(Ss(g,h[b]),g.length===p)return g;m=v=y}}return Ss(g,qc(u,v)),g}]},!!Je(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var r="ab".split(e);return r.length!==2||r[0]!=="a"||r[1]!=="b"}),Cs);var n9=function(e,t){var r=(t.top+t.bottom)/2;return e.top<=r&&e.bottom>=r},o9=function(e,t,r){var n=A.toDOMRange(e,t).getBoundingClientRect(),o=A.toDOMRange(e,r).getBoundingClientRect();return n9(n,o)&&n9(o,n)},SN=["span","b","strong","i","em","s","strike","u","font","sub","sup"],xN=[],Q5=[],e0={},HZ=Zn.f,UZ=_d.f,VZ=Cr.enforce,WZ=St("match"),Yo=Y.RegExp,Xs=Yo.prototype,GZ=Y.SyntaxError,qZ=pe(k5),KZ=pe(Xs.exec),Rh=pe("".charAt),i9=pe("".replace),a9=pe("".indexOf),XZ=pe("".slice),YZ=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,Eu=/a/g,tb=/a/g,JZ=new Yo(Eu)!==Eu,AN=Nm.MISSED_STICKY,ZZ=Nm.UNSUPPORTED_Y,QZ=nr&&(!JZ||AN||L5||M5||Je(function(){return tb[WZ]=!1,Yo(Eu)!=Eu||Yo(tb)==tb||Yo(Eu,"i")!="/a/i"}));if(jd("RegExp",QZ)){for(var Si=function(e,t){var r,n,o,i,a,u,s=$u(Xs,this),l=F5(e),c=t===void 0,f=[],d=e;if(!s&&l&&c&&e.constructor===Si)return e;if((l||$u(Xs,e))&&(e=e.source,c&&(t="flags"in d?d.flags:qZ(d))),e=e===void 0?"":it(e),t=t===void 0?"":it(t),d=e,L5&&"dotAll"in Eu&&(n=!!t&&a9(t,"s")>-1)&&(t=i9(t,/s/g,"")),r=t,AN&&"sticky"in Eu&&(o=!!t&&a9(t,"y")>-1)&&ZZ&&(t=i9(t,/y/g,"")),M5&&(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=Rh(p,g))==="\\")v+=Rh(p,++g);else if(v==="]")w=!1;else if(!w)switch(!0){case v==="[":w=!0;break;case v==="(":KZ(YZ,XZ(p,g+1))&&(g+=2,D=!0),y+=v,S++;continue;case(v===">"&&D):if(C===""||It(b,C))throw new GZ("Invalid capture group name");b[C]=!0,h[h.length]=[C,S],D=!1,C="";continue}D?C+=v:y+=v}return[y,h]}(e),e=i[0],f=i[1]),a=YP(Yo(e,t),s?this:Xs,Si),(n||o||f.length)&&(u=VZ(a),n&&(u.dotAll=!0,u.raw=Si(function(p){for(var v,m=p.length,g=0,y="",h=!1;g<=m;g++)(v=Rh(p,g))!=="\\"?h||v!=="."?(v==="["?h=!0:v==="]"&&(h=!1),y+=v):y+="[\\s\\S]":y+=v+Rh(p,++g);return y}(e),r)),o&&(u.sticky=!0),f.length&&(u.groups=f)),e!==d)try{Wn(a,"source",d===""?"(?:)":d)}catch{}return a},eQ=function(e){e in Si||HZ(Si,e,{configurable:!0,get:function(){return Yo[e]},set:function(t){Yo[e]=t}})},u9=UZ(Yo),s9=0;u9.length>s9;)eQ(u9[s9++]);Xs.constructor=Si,Si.prototype=Xs,Hr(Y,"RegExp",Si)}K5("RegExp");var tQ=new RegExp(" ","g");function ON(e){return e.replace(tQ," ")}function l9(e,t){var r=e.length;if(r){var n=e[r-1];if(oe.isText(n)){var o=Object.keys(n);if(o.length===1&&o[0]==="text")return n.text=n.text+t,!0}}return!1}function rQ(e,t,r){return{type:"paragraph",children:[{text:k(e).text().replace(/\s+/gm," ")}]}}function rb(e,t){var r=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!==po.ELEMENT_NODE){if(l.nodeType===po.TEXT_NODE){var c=l.textContent||"";if(c.trim()===""&&c.indexOf(`
- `)>=0)return;c&&(c=ON(c),l9(u,c)||u.push({text:c}))}}else{if(l.nodeName==="BR")return void(l9(u,`
- `)||u.push({text:`
- `}));var f=e8(k(l),a);Array.isArray(f)?f.forEach(function(d){return u.push(d)}):u.push(f)}}),u)}(e,t),n=function(i){for(var a in e0)if(i[0].matches(a))return e0[a];return rQ}(e),o=n(e[0],r,t);return Array.isArray(o)||(o=[o]),o.forEach(function(i){E.isVoid(t,i)||(r.length===0&&(i.children=[{text:e.text().replace(/\s+/gm," ")}]),Q5.forEach(function(a){i=a(e[0],i,t)}))}),o}function nb(e,t){e.parents("pre").length===0&&(e[0].innerHTML=e[0].innerHTML.replace(/\s+/gm," ").replace(/<br>/g,`
- `));var r=e[0].textContent||"";r=function(o){return o.replace(/ /g," ").replace(/</g,"<").replace(/>/g,">").replace(/®/g,"®").replace(/©/g,"©").replace(/™/g,"™").replace(/"/g,'"')}(r);var n={text:r=ON(r)};return Q5.forEach(function(o){n=o(e[0],n,t)}),n}function e8(e,t){xN.forEach(function(n){var o=n.selector,i=n.preParseHtml;e[0].matches(o)&&(e=k(i(e[0])))});var r=z7(e);return r==="span"?e.attr("data-w-e-type")?rb(e,t):nb(e,t):r==="code"?z7(e.parent())==="pre"?rb(e,t):nb(e,t):SN.includes(r)?nb(e,t):rb(e,t)}function BN(e,t,r){var n=k(r);return!!n.attr(t)||(n.attr(t,"true"),e.on("destroyed",function(){n.removeAttr(t)}),!1)}function c9(e,t){t===void 0&&(t="");var r=[];t===""&&(t="<p><br></p>"),t.indexOf("<")!==0&&(t=t.split(/\n/).map(function(o){return"<p>"+o+"</p>"}).join(""));var n=k("<div>"+t+"</div>");return Array.from(n.children()).forEach(function(o){var i=e8(k(o),e);Array.isArray(i)?i.forEach(function(a){return r.push(a)}):r.push(i)}),r}var nQ=Zn.f,f9=Im.fastKey,d9=Cr.set,ob=Cr.getterFor,oQ={getConstructor:function(e,t,r,n){var o=e(function(l,c){Rm(l,i),d9(l,{type:t,index:jm(null),first:void 0,last:void 0,size:0}),nr||(l.size=0),c!=null&&Rd(c,l[n],{that:l,AS_ENTRIES:r})}),i=o.prototype,a=ob(t),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=f9(c,!0),key:c,value:f,previous:d=v.last,next:void 0,removed:!1},v.first||(v.first=m),d&&(d.next=m),nr?v.size++:l.size++,p!=="F"&&(v.index[p]=m)),l},s=function(l,c){var f,d=a(l),p=f9(c);if(p!=="F")return d.index[p];for(f=d.first;f;f=f.next)if(f.key==c)return f};return Il(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,nr?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),nr?f.size--:c.size--}return!!d},forEach:function(l){for(var c,f=a(this),d=Uu(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)}}),Il(i,r?{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)}}),nr&&nQ(i,"size",{get:function(){return a(this).size}}),o},setStrong:function(e,t,r){var n=t+" Iterator",o=ob(t),i=ob(n);I5(e,t,function(a,u){d9(this,{type:n,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})},r?"entries":"values",!r,!0),K5(t)}};JP("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},oQ);var p9=new Set(["doctype","!doctype","meta","script","style","link","frame","iframe","title","svg"]);function h9(e,t){e.isInline(t)?(e.insertNode(t),t.type==="link"&&e.insertFragment([{text:""}])):N.insertNodes(e,t,{mode:"highest"})}var iQ=function(e){var t=e,r=t.insertText;return t.insertFragment,t.setFragmentData=function(n){var o=t.selection;if(o){var i=He(R.edges(o),2),a=i[0],u=i[1],s=E.void(t,{at:a.path}),l=E.void(t,{at:u.path});if(!R.isCollapsed(o)||s){var c=A.toDOMRange(t,o),f=c.cloneContents(),d=f.childNodes[0];if(f.childNodes.forEach(function(D){D.textContent&&D.textContent.trim()!==""&&(d=D)}),l){var p=He(l,1)[0],v=c.cloneRange(),m=A.toDOMNode(t,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?`
- `:""}),nN(d)){var g=d.ownerDocument.createElement("span");g.style.whiteSpace="pre",g.appendChild(d),f.appendChild(g),d=g}var y=t.getFragment(),h=JSON.stringify(y),b=window.btoa(encodeURIComponent(h));d.setAttribute("data-slate-fragment",b),n.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),n.setData("text/html",w.innerHTML),n.setData("text/plain",lZ(w)),f.ownerDocument.body.removeChild(w),n}}},t.insertData=function(n){var o,i,a=n.getData("application/x-slate-fragment");if(a){var u=decodeURIComponent(window.atob(a)),s=JSON.parse(u);t.insertFragment(s)}else{var l=n.getData("text/plain"),c=n.getData("text/html");if(c)t.dangerouslyInsertHtml(c);else if(l){var f=l.split(/\r\n|\r|\n/),d=!1;try{for(var p=bn(f),v=p.next();!v.done;v=p.next()){var m=v.value;d&&N.splitNodes(t,{always:!0}),r(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}}}}},t},Vf=function(e){return e!=null},aQ={object:!0,function:!0,undefined:!0},uQ=/^\s*class[\s{/}]/,sQ=Function.prototype.toString,g9=function(e){return!!function(t){if(typeof t!="function"||!hasOwnProperty.call(t,"length"))return!1;try{if(typeof t.length!="number"||typeof t.call!="function"||typeof t.apply!="function")return!1}catch{return!1}return!function(r){if(!function(n){return!!Vf(n)&&hasOwnProperty.call(aQ,typeof n)}(r))return!1;try{return!!r.constructor&&r.constructor.prototype===r}catch{return!1}}(t)}(e)&&!uQ.test(sQ.call(e))},t8=function(e){return e!=null},lQ=Object.keys,cQ=function(){try{return Object.keys("primitive"),!0}catch{return!1}}()?Object.keys:function(e){return lQ(t8(e)?Object(e):e)},fQ=function(e){if(!t8(e))throw new TypeError("Cannot use null or undefined");return e},dQ=Math.max,v9=function(){var e,t=Object.assign;return typeof t=="function"&&(t(e={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),e.foo+e.bar+e.trzy==="razdwatrzy")}()?Object.assign:function(e,t){var r,n,o,i=dQ(arguments.length,2);for(e=Object(fQ(e)),o=function(a){try{e[a]=t[a]}catch(u){r||(r=u)}},n=1;n<i;++n)cQ(t=arguments[n]).forEach(o);if(r!==void 0)throw r;return e},pQ=Array.prototype.forEach,hQ=Object.create,gQ=function(e,t){var r;for(r in e)t[r]=e[r]},m9=function(e){var t=hQ(null);return pQ.call(arguments,function(r){t8(r)&&gQ(Object(r),t)}),t},ib="razdwatrzy",vQ=String.prototype.indexOf,Kc=typeof ib.contains=="function"&&ib.contains("dwa")===!0&&ib.contains("foo")===!1?String.prototype.contains:function(e){return vQ.call(this,e,arguments[1])>-1},Lh=Tp(function(e){var t=e.exports=function(r,n){var o,i,a,u,s;return arguments.length<2||typeof r!="string"?(u=n,n=r,r=null):u=arguments[2],Vf(r)?(o=Kc.call(r,"c"),i=Kc.call(r,"e"),a=Kc.call(r,"w")):(o=a=!0,i=!1),s={value:n,configurable:o,enumerable:i,writable:a},u?v9(m9(u),s):s};t.gs=function(r,n,o){var i,a,u,s;return typeof r!="string"?(u=o,o=n,n=r,r=null):u=arguments[3],Vf(n)?g9(n)?Vf(o)?g9(o)||(u=o,o=void 0):o=void 0:(u=n,n=o=void 0):n=void 0,Vf(r)?(i=Kc.call(r,"c"),a=Kc.call(r,"e")):(i=!0,a=!1),s={get:n,set:o,configurable:i,enumerable:a},u?v9(m9(u),s):s}}),ab=function(e){if(typeof e!="function")throw new TypeError(e+" is not a function");return e},mQ=Tp(function(e,t){var r,n,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};r=function(g,y){var h;return ab(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},n=function(g,y){var h,b;return ab(y),b=this,r.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(ab(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:r,once:n,off:o,emit:i},u={on:Lh(r),once:Lh(n),off:Lh(o),emit:Lh(i)},s=p({},u),e.exports=t=function(g){return g==null?f(s):p(Object(g),u)},t.methods=a});function Mh(e){var t=R7.get(e);return t==null&&(t=mQ(),R7.set(e,t)),t}var t0=new WeakMap;function y9(e,t){var r=t0.get(e);r==null&&(r=new Set,t0.set(e,r)),r.add(t)}function yQ(e){return t0.get(e)||new Set}function bQ(e){t0.set(e,new Set)}function r8(e){var t=A.getTextarea(e).$textAreaContainer,r=t.width(),n=t.height(),o=t.offset();return{top:o.top,left:o.left,width:r,height:n}}function n8(e){var t={top:"0",left:"0"},r=e.selection;if(r==null)return t;var n=r8(e);if(n==null)return t;var o=n.top,i=n.left,a=n.width,u=n.height,s=A.toDOMRange(e,r).getClientRects()[0];if(s==null)return t;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 o8(e,t,r){r===void 0&&(r="modal");var n={top:"0",left:"0"};if(e.selection==null)return n;var o=ce.isElement(t)&&e.isVoid(t),i=ce.isElement(t)&&e.isInline(t),a=Jv.get(t);if(a==null)return n;var u=a.getBoundingClientRect(),s=u.top,l=u.left,c=u.height,f=u.width;if(o){var d=function(C){var O=[];O.push(C);for(var F=0;O.length>0;){var L=O.pop();if(L==null||++F>1e4)break;var H=L.nodeName;if(L.nodeType===1){var M=H.toLowerCase();if(uZ.includes(M)||M==="iframe"||M==="video")return L;var K=L.children||[],V=K.length;if(V)for(var G=V-1;G>=0;G--)O.push(K[G])}}return null}(a);if(d!=null){var p=d.getBoundingClientRect();s=p.top,c=p.height}}var v=r8(e);if(v==null)return n;var m,g=v.top,y=v.left,h=v.width,b=v.height,w={},D=s-g,S=l-y;if(r==="bar")return w.left=S+"px",D>40?w.bottom=b-D+5+"px":w.top=D+c+5+"px",w;if(r==="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 '"+r+"' is invalid")}function wE(e,t){Bn(function(){var r=r8(e);if(r!=null){var n,o=r.top,i=r.left,a=r.width,u=r.height,s=t.offset(),l=s.top,c=s.left,f=t.width(),d=t.height(),p=l-o,v=c-i,m=t.attr("style");if(m.indexOf("top")>=0&&(n=p+d-u)>0){var g=t.css("top"),y=parseInt(g.toString())-n;y<0&&(y=0),t.css("top",y+"px")}if(m.indexOf("bottom")>=0&&l<0){var h=t.css("bottom"),b=parseInt(h.toString())-Math.abs(l);t.css("bottom",b+"px")}if(m.indexOf("left")>=0&&(n=v+f-a)>0){var w=t.css("left"),D=parseInt(w.toString())-n;D<0&&(D=0),t.css("left",D+"px")}if(m.indexOf("right")>=0&&c<0){var S=t.css("right"),C=parseInt(S.toString())-Math.abs(c);t.css("right",C+"px")}}})}var wQ=Pm("slice"),EQ=St("species"),ub=Y.Array,DQ=Math.max;Dt({target:"Array",proto:!0,forced:!wQ},{slice:function(e,t){var r,n,o,i=Oa(this),a=is(i),u=jl(e,a),s=jl(t===void 0?a:t,a);if(Vv(i)&&(r=i.constructor,(_m(r)&&(r===ub||Vv(r.prototype))||ft(r)&&(r=r[EQ])===null)&&(r=void 0),r===ub||r===void 0))return lN(i,u,s);for(n=new(r===void 0?ub:r)(DQ(s-u,0)),o=0;u<s;u++,o++)u in i&&Pd(n,o,i[u]);return n.length=o,n}});var CQ=jp.f,b9=pe("".startsWith),SQ=pe("".slice),xQ=Math.min,kN=_5("startsWith"),AQ=!kN&&!!function(){var e=CQ(String.prototype,"startsWith");return e&&!e.writable}();Dt({target:"String",proto:!0,forced:!AQ&&!kN},{startsWith:function(e){var t=it(On(this));T5(e);var r=ec(xQ(arguments.length>1?arguments[1]:void 0,t.length)),n=it(e);return b9?b9(t,n,r):SQ(t,r,r+n.length)===n}});var xs=Object.assign,w9=Object.defineProperty,OQ=pe([].concat),E9=!xs||Je(function(){if(nr&&xs({b:1},xs(w9({},"a",{enumerable:!0,get:function(){w9(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var e={},t={},r=Symbol(),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach(function(o){t[o]=o}),xs({},e)[r]!=7||sl(xs({},t)).join("")!=n})?function(e,t){for(var r=Aa(e),n=arguments.length,o=1,i=MP.f,a=IP.f;n>o;)for(var u,s=Tm(arguments[o++]),l=i?OQ(sl(s),i(s)):sl(s),c=l.length,f=0;c>f;)u=l[f++],nr&&!qe(a,s,u)||(r[u]=s[u]);return r}:xs;Dt({target:"Object",stat:!0,forced:Object.assign!==E9},{assign:E9});var BQ=["props","attrs","style","dataset","on","hook"];function FN(e){var t=e.data,r=t===void 0?{}:t,n=e.children,o=n===void 0?[]:n;Object.keys(r).forEach(function(i){var a,u,s=r[i];if(i!=="key"){if(!BQ.includes(i)){if(i.startsWith("data-")){var l=i.slice(5);return l=Zq(l),function(c,f){c.data==null&&(c.data={});var d=c.data;d.dataset==null&&(d.dataset={}),Object.assign(d.dataset,f)}(e,((a={})[l]=s,a)),void delete r[i]}(function(c,f){c.data==null&&(c.data={});var d=c.data;d.props==null&&(d.props={}),Object.assign(d.props,f)})(e,(u={},u[i]=s,u)),delete r[i]}}else e.key=s}),o.length>0&&o.forEach(function(i){typeof i!="string"&&FN(i)})}var EE=[],TN={};function kQ(e,t,r){return be(r.isInline(e)?"span":"div",null,t)}function D9(e,t){return t===void 0&&(t=!1),be("span",{"data-slate-string":!0},t?e+`
- `:e)}function sb(e,t){return e===void 0&&(e=0),t===void 0&&(t=!1),be("span",{"data-slate-zero-width":t?"n":"z","data-slate-length":e},"\uFEFF",t?be("br",null):null)}function DE(e,t,r,n){return Ld.set(e,t),Rl.set(e,r),ce.isElement(e)?function(o,i){var a,u=A.findKey(i,o),s=i.isInline(o),l=E.isVoid(i,o),c=CN(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 TN[D]||kQ}(d);a=l?null:v.map(function(D,S){return DE(D,S,o,i)});var g=m(o,a,i);if(l){f["data-slate-void"]=!0;var y=s?"span":"div",h=He(Z.texts(o),1),b=He(h[0],1)[0],w=be(y,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},DE(b,0,o,i));g=be(y,{style:{position:"relative"}},g,w),Ld.set(b,0),Rl.set(b,o)}return g.data==null&&(g.data={}),Object.assign(g.data,f),l||s||(g=function(D,S){var C=S;return EE.forEach(function(O){C=O(D,S)}),C}(o,g)),Bn(function(){var D=fE(c);D!=null&&(cE.set(u,D),Jv.set(o,D),Yv.set(D,o))}),g}(e,n):function(o,i,a){if(o.text==null)throw new Error("Current node is not slate Text "+JSON.stringify(o));var u=A.findKey(a,o),s=a.getConfig().decorate;if(s==null)throw new Error("Can not get config.decorate");var l=A.findPath(a,o),c=s([o,l]),f=oe.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,O=A.findPath(S,w),F=P.parent(O);if(E.isEditor(D))throw new Error("Text node "+JSON.stringify(w)+" parent is Editor");return S.isVoid(D)?sb(Z.string(D).length):C!==""||D.children[D.children.length-1]!==w||S.isInline(D)||E.string(S,F)!==""?C===""?sb():b&&C.slice(-1)===`
- `?D9(C,!0):D9(C):sb(0,!0)}(m,g===f.length-1,o,i,a);return y=function(h,b){var w=b;return EE.forEach(function(D){w=D(h,w)}),w}(m,y),be("span",{"data-slate-leaf":!0},y)}),p=function(m){return"w-e-text-"+m}(u.id),v=be("span",{"data-slate-node":"text",id:p,key:u.id},d);return Bn(function(){var m=fE(p);m!=null&&(cE.set(u,m),Jv.set(o,m),Yv.set(m,o))}),v}(e,r,n)}function FQ(e,t){var r,n=e.$scroll,o=function(m){return"w-e-textarea-"+m}(e.id),i=t.getConfig(),a=i.readOnly,u=i.autoFocus,s=function(m,g){return g===void 0&&(g=!1),_l("div#"+m,{props:{contentEditable:!g}})}(o,a),l=t.children||[];s.children=l.map(function(m,g){var y=DE(m,g,t,t);return FN(y),y});var c=P7.get(e);if(c==null&&(c=!0),c){var f=function(m,g){return k(`<div
- id="`+m+`"
- data-slate-editor
- data-slate-node="value"
- suppressContentEditableWarning
- role="textarea"
- spellCheck="true"
- autoCorrect="true"
- autoCapitalize="true"
- ></div>`)}(o);n.append(f),e.$textArea=f,r=f[0],(p=wq([Dq,Aq,Bq,Cq,xq,Eq]))(r,s),P7.set(e,!1),N7.set(e,p)}else{var d=I7.get(e),p=N7.get(e);if(d==null||p==null)return;r=d.elm,p(d,s)}if(r!=null||(r=fE(o))!=null){if((c?u:t.isFocused())&&r.focus({preventScroll:!0}),c){var v=q5(r);v&&rN.set(t,v)}G5.set(t,r),Jv.set(t,r),Yv.set(r,t),I7.set(e,s)}}function C9(e){return typeof e=="object"&&e!=null&&e.nodeType===1}function S9(e,t){return(!t||e!=="hidden")&&e!=="visible"&&e!=="clip"}function lb(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var r=getComputedStyle(e,null);return S9(r.overflowY,t)||S9(r.overflowX,t)||function(n){var o=function(i){if(!i.ownerDocument||!i.ownerDocument.defaultView)return null;try{return i.ownerDocument.defaultView.frameElement}catch{return null}}(n);return!!o&&(o.clientHeight<n.scrollHeight||o.clientWidth<n.scrollWidth)}(e)}return!1}function zh(e,t,r,n,o,i,a,u){return i<e&&a>t||i>e&&a<t?0:i<=e&&u<=r||a>=t&&u>=r?i-e-n:a>t&&u<r||i<e&&u>r?a-t+o:0}function x9(e,t){var r=window,n=t.scrollMode,o=t.block,i=t.inline,a=t.boundary,u=t.skipOverflowHiddenElements,s=typeof a=="function"?a:function(De){return De!==a};if(!C9(e))throw new TypeError("Invalid target");for(var l=document.scrollingElement||document.documentElement,c=[],f=e;C9(f)&&s(f);){if((f=f.parentElement)===l){c.push(f);break}f!=null&&f===document.body&&lb(f)&&!lb(document.documentElement)||f!=null&&lb(f,u)&&c.push(f)}for(var d=r.visualViewport?r.visualViewport.width:innerWidth,p=r.visualViewport?r.visualViewport.height:innerHeight,v=window.scrollX||pageXOffset,m=window.scrollY||pageYOffset,g=e.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,O=i==="center"?S+h/2:i==="end"?w:S,F=[],L=0;L<c.length;L++){var H=c[L],M=H.getBoundingClientRect(),K=M.height,V=M.width,G=M.top,q=M.right,re=M.bottom,se=M.left;if(n==="if-needed"&&b>=0&&S>=0&&D<=p&&w<=d&&b>=G&&D<=re&&S>=se&&w<=q)return F;var ue=getComputedStyle(H),ae=parseInt(ue.borderLeftWidth,10),B=parseInt(ue.borderTopWidth,10),x=parseInt(ue.borderRightWidth,10),j=parseInt(ue.borderBottomWidth,10),$=0,X=0,U="offsetWidth"in H?H.offsetWidth-H.clientWidth-ae-x:0,ie="offsetHeight"in H?H.offsetHeight-H.clientHeight-B-j:0;if(l===H)$=o==="start"?C:o==="end"?C-p:o==="nearest"?zh(m,m+p,p,B,j,m+C,m+C+y,y):C-p/2,X=i==="start"?O:i==="center"?O-d/2:i==="end"?O-d:zh(v,v+d,d,ae,x,v+O,v+O+h,h),$=Math.max(0,$+m),X=Math.max(0,X+v);else{$=o==="start"?C-G-B:o==="end"?C-re+j+ie:o==="nearest"?zh(G,re,K,B,j+ie,C,C+y,y):C-(G+K/2)+ie/2,X=i==="start"?O-se-ae:i==="center"?O-(se+V/2)+U/2:i==="end"?O-q+x+U:zh(se,q,V,ae,x+U,O,O+h,h);var ge=H.scrollLeft,ve=H.scrollTop;C+=ve-($=Math.max(0,Math.min(ve+$,H.scrollHeight-K+ie))),O+=ge-(X=Math.max(0,Math.min(ge+X,H.scrollWidth-V+U)))}F.push({el:H,top:$,left:X})}return F}function A9(e){return e===Object(e)&&Object.keys(e).length!==0}function gn(e,t){return Vu(t)&&A.hasDOMNode(e,t,{editable:!0})}function O9(e,t){if(e.getConfig().readOnly)return!1;var r=Ys(e,t)&&A.toSlateNode(e,t);return E.isVoid(e,r)}function Ys(e,t){return Vu(t)&&A.hasDOMNode(e,t)}function _N(e,t,r){r===void 0&&(r=!1);var n=t.selection,o=t.getConfig(),i=A.findDocumentOrShadowRoot(t).getSelection();if(i&&(!e.isComposing||r)&&t.isFocused()){var a=i.type!=="None";if(n||a){var u=G5.get(t),s=!1;if(u.contains(i.anchorNode)&&u.contains(i.focusNode)&&(s=!0),a&&s&&n){var l=A.toSlateRange(t,i,{exactMatch:!0,suppressThrow:!0});if(l&&R.equals(l,n)){var c=!0;if(R.isCollapsed(n)){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(!n||A.hasRange(t,n)){e.isUpdatingSelection=!0;var m=n&&A.toDOMRange(t,n);if(m){R.isBackward(n)?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(A9(b)&&typeof b.behavior=="function")return b.behavior(w?[]:x9(h,b));if(!w){var D=function(S){return S===!1?{block:"end",inline:"nearest"}:A9(S)?S:{block:"start",inline:"nearest"}}(b);(function(S,C){C===void 0&&(C="auto");var O="scrollBehavior"in document.body.style;S.forEach(function(F){var L=F.el,H=F.top,M=F.left;L.scroll&&O?L.scroll({top:H,left:M,behavior:C}):(L.scrollTop=H,L.scrollLeft=M)})})(x9(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&&rd&&u.focus(),e.isUpdatingSelection=!1})}else t.selection=A.toSlateRange(t,i,{exactMatch:!1,suppressThrow:!1})}}}var cb=new WeakMap,B9=new WeakMap,TQ={bold:"mod+b",compose:["down","left","right","up","backspace","enter"],moveBackward:"left",moveForward:"right",moveWordBackward:"ctrl+left",moveWordForward:"ctrl+right",deleteBackward:"shift?+backspace",deleteForward:"shift?+delete",extendBackward:"shift+left",extendForward:"shift+right",italic:"mod+i",splitBlock:"shift?+enter",undo:"mod+z",tab:"tab",selectAll:"mod+a"},_Q={moveLineBackward:"opt+up",moveLineForward:"opt+down",moveWordBackward:"opt+left",moveWordForward:"opt+right",deleteBackward:["ctrl+backspace","ctrl+h"],deleteForward:["ctrl+delete","ctrl+d"],deleteLineBackward:"cmd+shift?+backspace",deleteLineForward:["cmd+shift?+delete","ctrl+k"],deleteWordBackward:"opt+shift?+backspace",deleteWordForward:"opt+shift?+delete",extendLineBackward:"opt+shift+up",extendLineForward:"opt+shift+down",redo:"cmd+shift+z",transposeCharacter:"ctrl+t"},jQ={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},mt=function(e){var t=TQ[e],r=_Q[e],n=jQ[e],o=t&&c1(t),i=r&&c1(r),a=n&&c1(n);return function(u){return!(!o||!o(u))||!!(dE&&i&&i(u))||!(dE||!a||!a(u))}},wt={isBold:mt("bold"),isCompose:mt("compose"),isMoveBackward:mt("moveBackward"),isMoveForward:mt("moveForward"),isDeleteBackward:mt("deleteBackward"),isDeleteForward:mt("deleteForward"),isDeleteLineBackward:mt("deleteLineBackward"),isDeleteLineForward:mt("deleteLineForward"),isDeleteWordBackward:mt("deleteWordBackward"),isDeleteWordForward:mt("deleteWordForward"),isExtendBackward:mt("extendBackward"),isExtendForward:mt("extendForward"),isExtendLineBackward:mt("extendLineBackward"),isExtendLineForward:mt("extendLineForward"),isItalic:mt("italic"),isMoveLineBackward:mt("moveLineBackward"),isMoveLineForward:mt("moveLineForward"),isMoveWordBackward:mt("moveWordBackward"),isMoveWordForward:mt("moveWordForward"),isRedo:mt("redo"),isSplitBlock:mt("splitBlock"),isTransposeCharacter:mt("transposeCharacter"),isUndo:mt("undo"),isTab:mt("tab"),isSelectAll:mt("selectAll")};function Ht(e){e.preventDefault()}var PQ={beforeinput:function(e,t,r){var n=e,o=r.getConfig().readOnly;if(Vc&&!o&&gn(r,n.target)){var i=r.selection,a=n.inputType,u=n.dataTransfer||n.data||void 0;if(a!=="insertCompositionText"&&a!=="deleteCompositionText"){if(n.preventDefault(),!a.startsWith("delete")||a.startsWith("deleteBy")){var s=He(n.getTargetRanges(),1)[0];if(s){var l=A.toSlateRange(r,s,{exactMatch:!1,suppressThrow:!1});i&&R.equals(i,l)||N.select(r,l)}}if(i&&R.isExpanded(i)&&a.startsWith("delete")){var c=a.endsWith("Backward")?"backward":"forward";E.deleteFragment(r,{direction:c})}else switch(a){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":E.deleteFragment(r);break;case"deleteContent":case"deleteContentForward":E.deleteForward(r);break;case"deleteContentBackward":E.deleteBackward(r);break;case"deleteEntireSoftLine":E.deleteBackward(r,{unit:"line"}),E.deleteForward(r,{unit:"line"});break;case"deleteHardLineBackward":E.deleteBackward(r,{unit:"block"});break;case"deleteSoftLineBackward":E.deleteBackward(r,{unit:"line"});break;case"deleteHardLineForward":E.deleteForward(r,{unit:"block"});break;case"deleteSoftLineForward":E.deleteForward(r,{unit:"line"});break;case"deleteWordBackward":E.deleteBackward(r,{unit:"word"});break;case"deleteWordForward":E.deleteForward(r,{unit:"word"});break;case"insertLineBreak":case"insertParagraph":E.insertBreak(r);break;case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":if(a==="insertFromPaste"&&!W1.get(r))break;u instanceof DataTransfer?r.insertData(u):typeof u=="string"&&E.insertText(r,u)}}}},blur:function(e,t,r){var n=e,o=t.isUpdatingSelection,i=t.latestElement;if(!r.getConfig().readOnly&&!o&&gn(r,n.target)){var a=A.findDocumentOrShadowRoot(r);if(i!==a.activeElement){var u=n.relatedTarget;if(!(u===A.toDOMNode(r,r)||Ln(u)&&u.hasAttribute("data-slate-spacer"))){if(u!=null&&Vu(u)&&A.hasDOMNode(r,u)){var s=A.toSlateNode(r,u);if(ce.isElement(s)&&!r.isVoid(s))return}if(Uc){var l=a.getSelection();l==null||l.removeAllRanges()}wu.delete(r)}}}},focus:function(e,t,r){var n=A.toDOMNode(r,r),o=A.findDocumentOrShadowRoot(r);t.latestElement=o.activeElement,rd&&e.target!==n?n.focus():wu.set(r,!0)},click:function(e,t,r){if(!r.getConfig().readOnly&&Ys(r,e.target)&&Vu(e.target)){var n=A.toSlateNode(r,e.target),o=A.findPath(r,n);if(E.hasPath(r,o)&&Z.get(r,o)===n){var i=E.start(r,o),a=E.end(r,o),u=E.void(r,{at:i}),s=E.void(r,{at:a});if(u&&s&&P.equals(u[1],s[1])){var l=E.range(r,i);N.select(r,l)}}}},compositionstart:function(e,t,r){if(gn(r,e.target)){var n=r.selection;if(n&&R.isExpanded(n)&&(E.deleteFragment(r),Promise.resolve().then(function(){_N(t,r,!0)})),n&&R.isCollapsed(n)){var o=A.toDOMRange(r,n).startContainer,i=o.textContent||"";cb.set(r,i),B9.set(r,o)}t.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)}(t,r)}},compositionend:function(e,t,r){var n=e;if(gn(r,n.target)){t.isComposing=!1;var o=r.selection;if(o!=null){(pE||rd)&&A.cleanExposedTexNodeInSelectionBlock(r);for(var i=R.isBackward(o)?o.focus:o.anchor,a=He(E.node(r,[i.path[0]]),1)[0],u=0;u<i.path.length;u++){var s=He(E.node(r,i.path.slice(0,u+1)),1)[0];if(ce.isElement(s)&&((Uc||rd)&&s.type==="link"||s.type==="code")){A.setNewKey(a);break}}var l=n.data;if(l){if(r.getConfig().maxLength){var c=A.getLeftLengthOfMaxLength(r);c<l.length?(A.toDOMRange(r,o).startContainer.textContent=cb.get(r)||"",c>0&&E.insertText(r,l.slice(0,c)),t.changeViewState()):E.insertText(r,l)}else E.insertText(r,l);Uc||setTimeout(function(){var f=r.selection;if(f!=null){var d=B9.get(r);d!=null&&A.toDOMRange(r,f).startContainer!==d&&(d.textContent=cb.get(r)||"")}})}}}},compositionupdate:function(e,t,r){gn(r,e.target)&&(t.isComposing=!0)},keydown:function(e,t,r){var n=e,o=r.selection;if(!r.getConfig().readOnly&&!t.isComposing&&gn(r,n.target)){if(function(a,u){var s=Lm.get(a),l=s&&s.getMenus(),c=Xv.get(a),f=c&&c.getMenus(),d=yn(yn({},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)}}}(r,n),wt.isTab(n))return Ht(n),void r.handleTab();if(wt.isRedo(n))return Ht(n),void(typeof r.redo=="function"&&r.redo());if(wt.isUndo(n))return Ht(n),void(typeof r.undo=="function"&&r.undo());if(wt.isMoveLineBackward(n))return Ht(n),void N.move(r,{unit:"line",reverse:!0});if(wt.isMoveLineForward(n))return Ht(n),void N.move(r,{unit:"line"});if(wt.isExtendLineBackward(n))return Ht(n),void N.move(r,{unit:"line",edge:"focus",reverse:!0});if(wt.isExtendLineForward(n))return Ht(n),void N.move(r,{unit:"line",edge:"focus"});if(wt.isMoveBackward(n))return Ht(n),void(o&&R.isCollapsed(o)?N.move(r,{reverse:!0}):N.collapse(r,{edge:"start"}));if(wt.isMoveForward(n))return Ht(n),void(o&&R.isCollapsed(o)?N.move(r):N.collapse(r,{edge:"end"}));if(wt.isMoveWordBackward(n))return Ht(n),o&&R.isExpanded(o)&&N.collapse(r,{edge:"focus"}),void N.move(r,{unit:"word",reverse:!0});if(wt.isMoveWordForward(n))return Ht(n),o&&R.isExpanded(o)&&N.collapse(r,{edge:"focus"}),void N.move(r,{unit:"word"});if(wt.isSelectAll(n))return Ht(n),void r.selectAll();if(Vc){if((pE||Uc)&&o&&(wt.isDeleteBackward(n)||wt.isDeleteForward(n))&&R.isCollapsed(o)){var i=Z.parent(r,o.anchor.path);if(ce.isElement(i)&&E.isVoid(r,i)&&E.isInline(r,i))return n.preventDefault(),void N.delete(r,{unit:"block"})}}else{if(wt.isBold(n)||wt.isItalic(n)||wt.isTransposeCharacter(n))return void Ht(n);if(wt.isSplitBlock(n))return Ht(n),void E.insertBreak(r);if(wt.isDeleteBackward(n))return Ht(n),void(o&&R.isExpanded(o)?E.deleteFragment(r,{direction:"backward"}):E.deleteBackward(r));if(wt.isDeleteForward(n))return Ht(n),void(o&&R.isExpanded(o)?E.deleteFragment(r,{direction:"forward"}):E.deleteForward(r));if(wt.isDeleteLineBackward(n))return Ht(n),void(o&&R.isExpanded(o)?E.deleteFragment(r,{direction:"backward"}):E.deleteBackward(r,{unit:"line"}));if(wt.isDeleteLineForward(n))return Ht(n),void(o&&R.isExpanded(o)?E.deleteFragment(r,{direction:"forward"}):E.deleteForward(r,{unit:"line"}));if(wt.isDeleteWordBackward(n))return Ht(n),void(o&&R.isExpanded(o)?E.deleteFragment(r,{direction:"backward"}):E.deleteBackward(r,{unit:"word"}));if(wt.isDeleteWordForward(n))return Ht(n),void(o&&R.isExpanded(o)?E.deleteFragment(r,{direction:"forward"}):E.deleteForward(r,{unit:"word"}))}}},keypress:function(e,t,r){if(!Vc&&!r.getConfig().readOnly&&gn(r,e.target)){e.preventDefault();var n=e.key;E.insertText(r,n)}},copy:function(e,t,r){var n=e;if(gn(r,n.target)){n.preventDefault();var o=n.clipboardData;o!=null&&r.setFragmentData(o)}},cut:function(e,t,r){var n=e,o=r.selection;if(!r.getConfig().readOnly&&gn(r,n.target)){n.preventDefault();var i=n.clipboardData;if(i!=null&&(r.setFragmentData(i),o))if(R.isExpanded(o))E.deleteFragment(r);else{var a=Z.parent(r,o.anchor.path);E.isVoid(r,a)&&N.delete(r)}}},paste:function(e,t,r){W1.set(r,!0);var n=e;if(!r.getConfig().readOnly&&gn(r,n.target)){var o=r.getConfig().customPaste;if(o&&o(r,n)===!1)return void W1.set(r,!1);if(!Vc||function(a){return a.clipboardData&&a.clipboardData.getData("text/plain")!==""&&a.clipboardData.types.length===1}(n)){n.preventDefault();var i=n.clipboardData;i!=null&&r.insertData(i)}}},dragover:function(e,t,r){if(Ys(r,e.target)){var n=A.toSlateNode(r,e.target);E.isVoid(r,n)&&e.preventDefault()}},dragstart:function(e,t,r){var n=e;if(Ys(r,n.target)&&!r.getConfig().readOnly){var o=A.toSlateNode(r,n.target),i=A.findPath(r,o);if(E.isVoid(r,o)||E.void(r,{at:i,voids:!0})){var a=E.range(r,i);N.select(r,a)}var u=n.dataTransfer;u!=null&&(t.isDraggingInternally=!0,r.setFragmentData(u))}},dragend:function(e,t,r){var n=e;r.getConfig().readOnly||t.isDraggingInternally&&Ys(r,n.target)&&(t.isDraggingInternally=!1)},drop:function(e,t,r){var n=e,o=n.dataTransfer;if(!r.getConfig().readOnly&&Ys(r,n.target)&&o!=null&&!(Vc&&Uc&&o.files.length>0)){n.preventDefault();var i=r.selection,a=A.findEventRange(r,n);N.select(r,a),t.isDraggingInternally&&(i&&N.delete(r,{at:i}),t.isDraggingInternally=!1),r.insertData(o),r.isFocused()||r.focus()}}},NQ=1,IQ=function(){function e(t){var r=this;this.id=NQ++,this.$textArea=null,this.$progressBar=k('<div class="w-e-progress-bar"></div>'),this.$maxLengthInfo=k('<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=zu(function(){var a=r.editorInstance;(function(u,s){var l=u.isComposing,c=u.isUpdatingSelection,f=u.isDraggingInternally;if(!(s.getConfig().readOnly||l||c||f)){var d=A.findDocumentOrShadowRoot(s),p=d.activeElement,v=A.toDOMNode(s,s),m=d.getSelection();if(p===v?(u.latestElement=p,wu.set(s,!0)):wu.delete(s),!m)return N.deselect(s);var g=m.anchorNode,y=m.focusNode,h=gn(s,g)||O9(s,g),b=gn(s,y)||O9(s,y);if(h&&b){var w=A.toSlateRange(s,m,{exactMatch:!1,suppressThrow:!1});N.select(s,w)}else N.deselect(s)}})(r,a)},100);var n=k(t);if(n.length===0)throw new Error("Cannot find textarea DOM by selector '"+t+"'");this.$box=n;var o=k('<div class="w-e-text-container"></div>');o.append(this.$progressBar),o.append(this.$maxLengthInfo),n.append(o);var i=k('<div class="w-e-scroll"></div>');o.append(i),this.$scroll=i,this.$textAreaContainer=o,Bn(function(){var a=r.editorInstance,u=A.getWindow(a);u.document.addEventListener("selectionchange",r.onDOMSelectionChange),a.on("destroyed",function(){u.document.removeEventListener("selectionchange",r.onDOMSelectionChange)}),o.on("click",function(){return a.hidePanelOrModal()}),a.on("change",r.changeViewState.bind(r));var s=a.getConfig().onChange;s&&a.on("change",function(){return s(a)}),r.onFocusAndOnBlur(),a.on("change",r.changeMaxLengthInfo.bind(r)),r.bindEvent()})}return Object.defineProperty(e.prototype,"editorInstance",{get:function(){var t=uE.get(this);if(t==null)throw new Error("Can not get editor instance");return t},enumerable:!1,configurable:!0}),e.prototype.bindEvent=function(){var t=this,r=this.$textArea,n=this.$scroll,o=this.editorInstance;r!=null&&(h5(PQ,function(i,a){r.on(a,function(u){i(u,t,o)})}),o.getConfig().scroll&&(n.css("overflow-y","auto"),n.on("scroll",zu(function(){o.emit("scroll")},100))))},e.prototype.onFocusAndOnBlur=function(){var t=this,r=this.editorInstance,n=r.getConfig(),o=n.onBlur,i=n.onFocus;this.latestEditorSelection=r.selection,r.on("change",function(){t.latestEditorSelection==null&&r.selection!=null?setTimeout(function(){return i&&i(r)}):t.latestEditorSelection!=null&&r.selection==null&&setTimeout(function(){return o&&o(r)}),t.latestEditorSelection=r.selection})},e.prototype.changeMaxLengthInfo=function(){var t=this.editorInstance,r=t.getConfig().maxLength;if(r){var n=r-A.getLeftLengthOfMaxLength(t);this.$maxLengthInfo[0].innerHTML=n+"/"+r}},e.prototype.changeProgress=function(t){var r=this.$progressBar;r.css("width",t+"%"),t>=100&&setTimeout(function(){r.hide(),r.css("width","0"),r.show()},1e3)},e.prototype.changeViewState=function(){var t=this,r=this.editorInstance;FQ(this,r),function(n,o){var i,a=o.getConfig().placeholder;if(a){var u=o.isEmpty();if(u&&!n.showPlaceholder&&!n.isComposing){if(n.$placeholder==null){var s=k('<div class="w-e-text-placeholder">'+a+"</div>");n.$textAreaContainer.append(s),n.$placeholder=s}return n.$placeholder.show(),void(n.showPlaceholder=!0)}!u&&n.showPlaceholder&&((i=n.$placeholder)===null||i===void 0||i.hide(),n.showPlaceholder=!1)}}(this,r),Bn(function(){_N(t,r)})},e.prototype.destroy=function(){this.$textAreaContainer.remove()},e}();function i8(e){e.removeAttr("width"),e.removeAttr("height"),e.removeAttr("fill"),e.removeAttr("class"),e.removeAttr("t"),e.removeAttr("p-id");var t=e.children();t.length&&i8(t)}function a8(){return k('<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 jN(){return k('<div class="w-e-bar-divider"></div>')}function PN(e,t,r,n,o){if(o===void 0&&(o=!1),t){if(n){var i=dE?"cmd":"ctrl";n=n.replace("mod",i)}if(o)n&&(e.attr("data-tooltip",n),e.addClass("w-e-menu-tooltip-v5"),e.addClass("tooltip-right"));else{var a=n?r+`
- `+n:r;e.attr("data-tooltip",a),e.addClass("w-e-menu-tooltip-v5")}}}H5("match",function(e,t,r){return[function(n){var o=On(this),i=n==null?void 0:Hu(n,e);return i?qe(i,n,o):new RegExp(n)[e](it(o))},function(n){var o=Rt(this),i=it(n),a=r(t,o,i);if(a.done)return a.value;if(!o.global)return Id(o,i);var u=o.unicode;o.lastIndex=0;for(var s,l=[],c=0;(s=Id(o,i))!==null;){var f=it(s[0]);l[c]=f,f===""&&(o.lastIndex=U5(i,ec(o.lastIndex),u)),c++}return c===0?null:l}]});var u8=function(){function e(t,r,n){var o=this;n===void 0&&(n=!1),this.$elem=k('<div class="w-e-bar-item"></div>'),this.$button=k('<button type="button"></button>'),this.disabled=!1,this.menu=r;var i=r.tag,a=r.width;if(i!=="button")throw new Error("Invalid tag '"+i+"', expected 'button'");var u=r.title,s=r.hotkey,l=s===void 0?"":s,c=r.iconSvg,f=c===void 0?"":c,d=this.$button;if(f){var p=k(f);i8(p),d.append(p)}else d.text(u);PN(d,f,u,l,n),n&&f&&d.append(k('<span class="title">'+u+"</span>")),a&&d.css("width",a+"px"),d.attr("data-menu-key",t),this.$elem.append(d),Bn(function(){return o.init()})}return e.prototype.init=function(){var t=this;this.setActive(),this.setDisabled(),this.$button.on("click",function(r){r.preventDefault(),Zr(t).hidePanelOrModal(),t.disabled||(t.exec(),t.onButtonClick())})},e.prototype.exec=function(){var t=Zr(this),r=this.menu,n=r.getValue(t);r.exec(t,n)},e.prototype.setActive=function(){var t=Zr(this),r=this.$button,n="active";this.menu.isActive(t)?r.addClass(n):r.removeClass(n)},e.prototype.setDisabled=function(){var t=Zr(this),r=this.$button,n=this.menu.isDisabled(t);(t.selection==null||t.isDisabled())&&(n=!0),this.menu.alwaysEnable&&(n=!1);var o="disabled";n?r.addClass(o):r.removeClass(o),this.disabled=n},e.prototype.changeMenuState=function(){this.setActive(),this.setDisabled()},e}(),RQ=function(e){function t(r,n,o){return o===void 0&&(o=!1),e.call(this,r,n,o)||this}return rc(t,e),t.prototype.onButtonClick=function(){},t}(u8),s8=function(){function e(t){this.isShow=!1,this.showTime=0,this.record(t)}return e.prototype.record=function(t){var r=lE.get(t);r==null&&(r=new Set,lE.set(t,r)),r.add(this),Lg.set(this,t)},e.prototype.renderContent=function(t){var r=this.$elem;r.empty(),r.append(t);var n=this.genSelfElem();n&&r.append(n)},e.prototype.appendTo=function(t){var r=this.$elem;t.append(r)},e.prototype.show=function(){if(!this.isShow){this.showTime=Date.now(),this.$elem.show(),this.isShow=!0;var t=Lg.get(this);t&&t.emit("modalOrPanelShow",this)}},e.prototype.hide=function(){if(this.isShow&&!(Date.now()-this.showTime<200)){this.$elem.hide(),this.isShow=!1;var t=Lg.get(this);t&&t.emit("modalOrPanelHide")}},e}(),LQ=function(e){function t(r){var n=e.call(this,r)||this;return n.type="dropPanel",n.$elem=k('<div class="w-e-drop-panel"></div>'),n}return rc(t,e),t.prototype.genSelfElem=function(){return null},t}(s8),MQ=function(e){function t(r,n,o){o===void 0&&(o=!1);var i=e.call(this,r,n,o)||this;if(i.dropPanel=null,i.menu=n,n.showDropPanel){var a=a8();i.$button.append(a)}return i}return rc(t,e),t.prototype.onButtonClick=function(){this.menu.showDropPanel&&this.handleDropPanel()},t.prototype.handleDropPanel=function(){var r=this.menu;if(r.getPanelContentElem!=null){var n=Zr(this);if(this.dropPanel==null){var o=new LQ(n),i=r.getPanelContentElem(n);o.renderContent(i),o.appendTo(this.$elem),o.show(),this.dropPanel=o}else{var a=this.dropPanel;a.isShow?a.hide():(i=r.getPanelContentElem(n),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"})}}},t}(u8),zQ=function(e){function t(r,n){n===void 0&&(n=0);var o=e.call(this,r)||this;o.type="modal",o.$elem=k('<div class="w-e-modal"></div>'),o.width=0,n&&(o.width=n);var i=o.$elem;return i.on("click",function(a){return a.stopPropagation()}),i.on("keyup",function(a){a.code==="Escape"&&(o.hide(),r.restoreSelection())}),o}return rc(t,e),t.prototype.genSelfElem=function(){var r=this,n=k('<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=Lg.get(this);return n.on("click",function(){r.hide(),o==null||o.restoreSelection()}),n},t.prototype.setStyle=function(r){var n=this.width,o=this.$elem;o.attr("style",""),n&&o.css("width",n+"px"),o.css(r)},t}(s8);function en(e,t,r){var n=k('<label class="babel-container"></label>');n.append("<span>"+e+"</span>");var o=k('<input type="text" id="'+t+'" placeholder="'+(r||"")+'">');return n.append(o),[n[0],o[0]]}function nc(e,t){var r=k('<div class="button-container"></div>'),n=k('<button type="button" id="'+e+'">'+t+"</button>");return r.append(n),[r[0],n[0]]}var $Q=function(e){function t(r,n,o){o===void 0&&(o=!1);var i=e.call(this,r,n,o)||this;return i.$body=k("body"),i.modal=null,i.menu=n,i}return rc(t,e),t.prototype.onButtonClick=function(){this.menu.showModal&&this.handleModal()},t.prototype.getPosition=function(){var r=Zr(this),n=this.menu.getModalPositionNode(r);return ce.isElement(n)?o8(r,n,"modal"):n8(r)},t.prototype.handleModal=function(){var r=Zr(this),n=this.menu;if(this.modal==null){var o=new zQ(r,n.modalWidth);this.renderAndShowModal(o,!0),this.modal=o}else(o=this.modal).isShow?o.hide():this.renderAndShowModal(o,!1)},t.prototype.renderAndShowModal=function(r,n){n===void 0&&(n=!1);var o=Zr(this),i=this.menu;if(i.getModalContentElem!=null){var a=A.getTextarea(o),u=A.getToolbar(o),s=((u==null?void 0:u.getConfig())||{}).modalAppendToBody,l=i.getModalContentElem(o);if(r.renderContent(l),s)r.setStyle({left:"0",right:"0"});else{var c=this.getPosition();r.setStyle(c)}n&&(s?r.appendTo(this.$body):r.appendTo(a.$textAreaContainer)),r.show(),s||wE(o,r.$elem),setTimeout(function(){o.blur()})}},t}(u8),HQ=function(e){function t(r,n){var o=e.call(this,r)||this;return o.type="selectList",o.$elem=k('<div class="w-e-select-list"></div>'),n&&o.$elem.css("width",n+"px"),o.$elem.on("click",function(i){i.stopPropagation()}),o}return rc(t,e),t.prototype.renderList=function(r){var n=this.$elem;n.empty();var o=k("<ul></ul>");r.forEach(function(i){var a=i.value,u=i.text,s=i.selected,l=i.styleForRenderMenuList,c=k('<li data-value="'+a+'"></li>');if(l&&c.css(l),s){var f=k('<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(k('<span data-value="'+a+'">'+u+"</span>")),c.attr("title",u),o.append(c)}),n.append(o)},t.prototype.genSelfElem=function(){return null},t}(s8),UQ=function(){function e(t,r,n){var o=this;n===void 0&&(n=!1),this.$elem=k('<div class="w-e-bar-item"></div>'),this.$button=k('<button type="button" class="select-button"></button>'),this.disabled=!1,this.selectList=null;var i=r.tag,a=r.title,u=r.width,s=r.iconSvg,l=s===void 0?"":s,c=r.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",t),PN(d,l,a,f,n),this.$elem.append(d),this.menu=r,Bn(function(){return o.init()})}return e.prototype.init=function(){var t=this;this.setSelectedValue(),this.$button.on("click",function(r){r.preventDefault(),Zr(t).hidePanelOrModal(),t.trigger()})},e.prototype.trigger=function(){var t=this,r=Zr(this);if(!r.isDisabled()&&!this.disabled){var n=this.menu;if(this.selectList==null){this.selectList=new HQ(r,n.selectPanelWidth);var o=this.selectList,i=n.getOptions(r);o.renderList(i),o.appendTo(this.$elem),o.show(),o.$elem.on("click","li",function(a){var u=a.target;if(u!=null){a.preventDefault();var s=k(u).attr("data-value");t.onChange(s)}})}else(o=this.selectList).isShow?o.hide():(i=n.getOptions(r),o.renderList(i),o.show())}},e.prototype.onChange=function(t){var r=Zr(this),n=this.menu;n.exec&&n.exec(r,t)},e.prototype.setSelectedValue=function(){var t=Zr(this),r=this.menu,n=r.getValue(t),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}(r.getOptions(t),n.toString()),i=this.$button,a=a8();i.empty(),i.text(o),i.append(a)},e.prototype.setDisabled=function(){var t=Zr(this),r=this.menu.isDisabled(t),n=this.$button;(t.selection==null||t.isDisabled())&&(r=!0);var o="disabled";r?n.addClass(o):n.removeClass(o),this.disabled=r},e.prototype.changeMenuState=function(){this.setSelectedValue(),this.setDisabled()},e}(),k9=function(){function e(t){this.$elem=k('<div class="w-e-bar-item w-e-bar-item-group"></div>'),this.$container=k('<div class="w-e-bar-item-menus-container"></div>'),this.$button=k('<button type="button"></button>');var r=t.key,n=t.iconSvg,o=t.title,i=this.$elem,a=this.$button;if(n){var u=k(n);i8(u),a.append(u)}else a.text(o);a.attr("data-menu-key",r);var s=a8();a.append(s),i.append(a);var l=this.$container;i.append(l);var c=this.createObserver();this.observe(c)}return e.prototype.appendBarItem=function(t){var r=t.$elem;this.$container.append(r)},e.prototype.observe=function(t){var r=this.$container;t.observe(r[0],{childList:!0,subtree:!0,attributes:!0})},e.prototype.createObserver=function(){var t=this,r=this.$container,n=this.$button,o=new MutationObserver(function(){var i=r.find("button"),a=i.length;if(a!==0){var u=0;i.each(function(s){k(s).hasClass("disabled")&&u++}),o.disconnect(),u===a?n.addClass("disabled"):n.removeClass("disabled"),t.observe(o)}});return o},e}(),F9=new WeakMap;function Zr(e){var t=W5.get(e);if(t==null)throw new Error("Can not get editor instance");return t}function NN(e,t,r){r===void 0&&(r=!1);var n=F9.get(t);if(n)return n;var o=t.tag;if(o==="button"){var i=t.showDropPanel,a=t.showModal;n=i?new MQ(e,t,r):a?new $Q(e,t,r):new RQ(e,t,r)}if(o==="select"&&(n=new UQ(e,t,r)),n==null)throw new Error("Invalid tag in menu "+JSON.stringify(t));return F9.set(t,n),n}function VQ(e,t){var r=e.selection;return r!=null&&!R.isCollapsed(r)&&!A.getSelectedElems(e).some(function(n){if(e.isVoid(n))return!0;var o=n.type;return!!["pre","code","table"].includes(o)||void 0})&&!!oe.isText(t)}var WQ=function(){function e(){var t=this;this.$elem=k('<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=fP(function(){var r=t.isShow,n=t.getSelectedNodeAndMenuKeys()||{},o=n.node,i=o===void 0?null:o,a=n.menuKeys,u=a===void 0?[]:a;i!=null&&t.changeItemsState(),i&&ce.isElement(i)&&r&&t.isSamePath(i,t.prevSelectedNode)||(t.hideAndClean(),i!=null&&(t.registerItems(u),t.setPosition(i),t.show()),t.prevSelectedNode=i)},200),Bn(function(){var r=t.getEditorInstance(),n=t.$elem;n.on("mousedown",function(i){return i.preventDefault()},{passive:!1}),A.getTextarea(r).$textAreaContainer.append(n),r.on("change",t.changeHoverbarState);var o=t.hideAndClean.bind(t);r.on("scroll",o),r.on("fullScreen",o),r.on("unFullScreen",o)})}return e.prototype.getMenus=function(){return this.menus},e.prototype.hideAndClean=function(){var t=this.$elem;t.removeClass("w-e-bar-show").addClass("w-e-bar-hidden"),this.hoverbarItems=[],t.empty(),this.isShow=!1},e.prototype.checkPositionBottom=function(){var t=this.$elem,r=!1,n=window.innerHeight;n&&n>=360&&n-t[0].getBoundingClientRect().bottom<360&&(r=!0),r?t.addClass("w-e-bar-bottom"):t.removeClass("w-e-bar-bottom")},e.prototype.show=function(){this.$elem.removeClass("w-e-bar-hidden").addClass("w-e-bar-show"),this.isShow=!0,this.checkPositionBottom()},e.prototype.changeItemsState=function(){var t=this;Bn(function(){t.hoverbarItems.forEach(function(r){r.changeMenuState()})})},e.prototype.registerItems=function(t){var r=this,n=this.$elem;t.forEach(function(o){if(o!=="|")r.registerSingleItem(o);else{var i=jN();n.append(i)}})},e.prototype.registerSingleItem=function(t){var r=this.getEditorInstance(),n=this.menus,o=n[t];if(o==null){var i=Md[t];if(i==null)throw new Error("Not found menu item factory by key '"+t+"'");if(typeof i!="function")throw new Error("Menu item factory (key='"+t+"') is not a function");o=i(),n[t]=o}var a=NN(t,o);this.hoverbarItems.push(a),W5.set(a,r),this.$elem.append(a.$elem)},e.prototype.setPosition=function(t){var r=this.getEditorInstance(),n=this.$elem;if(n.attr("style",""),ce.isElement(t)){var o=o8(r,t,"bar");return n.css(o),void wE(r,n)}if(oe.isText(t))return o=n8(r),n.css(o),void wE(r,n);throw new Error("hoverbar.setPosition error, current selected node is not elem nor text")},e.prototype.getSelectedNodeAndMenuKeys=function(){var t=this.getEditorInstance();if(t.selection==null)return null;var r=this.getHoverbarKeysConf(),n=null,o=[],i=function(u){var s=r[u],l=s.match,c=s.menuKeys,f=c===void 0?[]:c,d=l||function(m,g){return A.checkNodeType(g,u)},p=He(E.nodes(t,{match:function(m){return d(t,m)},universal:!0}),1),v=p[0];if(v!=null)return n=v[0],o=f,"break"};for(var a in r)if(i(a)==="break")break;return n==null||o.length===0?null:{node:n,menuKeys:o}},e.prototype.getEditorInstance=function(){var t=sE.get(this);if(t==null)throw new Error("Can not get editor instance");return t},e.prototype.getHoverbarKeysConf=function(){var t=this.getEditorInstance().getConfig().hoverbarKeys,r=t===void 0?{}:t,n=r.text;return n&&n.match==null&&(n.match=VQ),r},e.prototype.isSamePath=function(t,r){if(t==null||r==null)return!1;var n=A.findPath(null,t),o=A.findPath(null,r);return P.equals(n,o)},e.prototype.destroy=function(){this.changeHoverbarState.cancel(),this.$elem.remove(),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null},e}();function IN(e,t,r,n){if(Ld.set(e,t),Rl.set(e,r),ce.isElement(e)){var o=e.children;if((o===void 0?[]:o).forEach(function(u,s){return IN(u,s,e,n)}),E.isVoid(n,e)){var i=He(Z.texts(e),1),a=He(i[0],1)[0];Ld.set(a,0),Rl.set(a,e)}}}function GQ(e){var t=e.selector,r=t===void 0?"":t,n=e.config,o=n===void 0?{}:n,i=e.content,a=e.html,u=e.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];el.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];el.withoutSaving(h,()=>{E.withoutNormalizing(h,()=>{var C=S.map(Hi.inverse).reverse();for(var O of C)h.apply(O)})}),w.redos.push(S),w.undos.pop()}},h.apply=w=>{var{operations:D,history:S}=h,{undos:C}=S,O=C[C.length-1],F=O&&O[O.length-1],L=((V,G)=>!(!G||V.type!=="set_selection"||G.type!=="set_selection"))(w,F),H=el.isSaving(h),M=el.isMerging(h);if(H==null&&(H=((V,G)=>V.type!=="set_selection"||V.properties!=null&&V.newProperties!=null)(w)),H){if(M==null&&(M=O!=null&&(D.length!==0||((V,G)=>V.type==="set_selection"||!(!G||V.type!=="insert_text"||G.type!=="insert_text"||V.offset!==G.offset+G.text.length||!P.equals(V.path,G.path))||!(!G||V.type!=="remove_text"||G.type!=="remove_text"||V.offset+V.text.length!==G.offset||!P.equals(V.path,G.path)))(w,F)||L)),O&&M)L&&O.pop(),O.push(w);else{var K=[w];C.push(K)}for(;C.length>100;)C.shift();(V=>V.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 O=A.getLeftLengthOfMaxLength(h);O<=0||(O<C.length?b(C.slice(0,O)):b(C))}else b(C)},h.insertNode=function(C){if(h.getConfig().maxLength){var O=A.getLeftLengthOfMaxLength(h);O<=0||O<Z.string(C).length||w(C)}else w(C)},h.insertFragment=function(C){if(h.getConfig().maxLength)if(C.length!==1)C.forEach(function(F){h.insertNode(F)});else{var O=C[0];if(A.getLeftLengthOfMaxLength(h)<Z.string(O).length)return;D(C)}else D(C)},h.dangerouslyInsertHtml=function(C,O){if(C===void 0&&(C=""),O===void 0&&(O=!1),C)if(h.getConfig().maxLength){var F=A.getLeftLengthOfMaxLength(h);if(!(F<=0)){var L=document.createElement("div");L.innerHTML=C;var H=Array.from(L.childNodes).reduce(function(M,K){var V=K.nodeType,G=K.nodeName;return K?V===po.TEXT_NODE?M+(K.textContent||""):V===po.ELEMENT_NODE?p9.has(G.toLowerCase())?M:M+(K.textContent||""):M:M},"");F<H.length||S(C,O)}}else S(C,O)},h}(function(y){var h=y;return h.on=function(b,w){var D=Mh(h);if(D.on(b,w),b==="destroyed"&&y9(h,w),b!=="destroyed"){var S=function(){return D.off(b,w)};D.on("destroyed",S),y9(h,S)}},h.once=function(b,w){Mh(h).once(b,w)},h.off=function(b,w){Mh(h).off(b,w)},h.emit=function(b){for(var w=[],D=1;D<arguments.length;D++)w[D-1]=arguments[D];var S=Mh(h);S.emit.apply(S,oE([b],He(w))),b==="destroyed"&&(yQ(h).forEach(function(C){return S.off("destroyed",C)}),bQ(h))},h}(function(y){var h=y;return h.select=function(b){N.select(h,b)},h.deselect=function(){var b=h.selection,w=A.findDocumentOrShadowRoot(h).getSelection();w&&w.rangeCount>0&&w.removeAllRanges(),b&&N.deselect(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=V1.get(h);b!=null&&(h.focus(),N.select(h,b))},h.getSelectionPosition=function(){return n8(h)},h.getNodePosition=function(b){return o8(h,b)},h.isSelectedAll=function(){var b=h.selection;if(b==null)return!1;var w=He(R.edges(b),2),D=w[0],S=w[1],C=He(E.edges(h,[]),2),O=C[0],F=C[1];return!(!ke.equals(D,O)||!ke.equals(S,F))},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 O,F,L,H,M,K,V,G,q=[];switch(C.type){case"insert_text":case"remove_text":case"set_node":try{for(var re=bn(E.levels(h,{at:C.path})),se=re.next();!se.done;se=re.next()){var ue=He(se.value,2),ae=ue[0],B=ue[1],x=A.findKey(h,ae);q.push([B,x])}}catch(Ie){O={error:Ie}}finally{try{se&&!se.done&&(F=re.return)&&F.call(re)}finally{if(O)throw O.error}}break;case"insert_node":case"remove_node":case"merge_node":case"split_node":try{for(var j=bn(E.levels(h,{at:P.parent(C.path)})),$=j.next();!$.done;$=j.next()){var X=He($.value,2);ae=X[0],B=X[1],x=A.findKey(h,ae),q.push([B,x])}}catch(Ie){L={error:Ie}}finally{try{$&&!$.done&&(H=j.return)&&H.call(j)}finally{if(L)throw L.error}}break;case"move_node":try{for(var U=bn(E.levels(h,{at:P.common(P.parent(C.path),P.parent(C.newPath))})),ie=U.next();!ie.done;ie=U.next()){var ge=He(ie.value,2);ae=ge[0],B=ge[1],x=A.findKey(h,ae),q.push([B,x])}}catch(Ie){M={error:Ie}}finally{try{ie&&!ie.done&&(K=U.return)&&K.call(U)}finally{if(M)throw M.error}}}D(C);try{for(var ve=bn(q),De=ve.next();!De.done;De=ve.next()){var W=He(De.value,2);B=W[0],x=W[1],ae=He(E.node(h,B),1)[0],Mg.set(ae,x)}}catch(Ie){V={error:Ie}}finally{try{De&&!De.done&&(G=ve.return)&&G.call(ve)}finally{if(V)throw V.error}}},h.deleteBackward=function(C){if(C!=="line")return S(C);if(y.selection&&R.isCollapsed(y.selection)){var O=E.above(y,{match:function(M){return E.isBlock(y,M)},at:y.selection});if(O){var F=He(O,2)[1],L=E.range(y,F,y.selection.anchor),H=function(M,K){var V=E.range(M,R.end(K)),G=Array.from(E.positions(M,{at:K})),q=0,re=G.length,se=Math.floor(re/2);if(o9(M,E.range(M,G[q]),V))return E.range(M,G[q],V);if(G.length<2)return E.range(M,G[G.length-1],V);for(;se!==G.length&&se!==q;)o9(M,E.range(M,G[se]),V)?re=se:q=se,se=Math.floor((q+re)/2);return E.range(M,G[re],V)}(h,L);R.isCollapsed(H)||N.delete(y,{at:H})}}},h.onChange=function(){var C=h.selection;C!=null&&V1.set(h,C),h.emit("change"),b()},h.handleTab=function(){h.insertText(" ")},h.getHtml=function(){var C=h.children;return(C===void 0?[]:C).map(function(O){return DN(O,h)}).join("")},h.getText=function(){var C=h.children;return(C===void 0?[]:C).map(function(O){return Z.string(O)}).join(`
- `)},h.getSelectionText=function(){var C=h.selection;return C==null?"":E.string(y,C)},h.getElemsByType=function(C,O){var F,L;O===void 0&&(O=!1);var H=[],M=E.nodes(h,{at:[],universal:!0});try{for(var K=bn(M),V=K.next();!V.done;V=K.next()){var G=He(V.value,1)[0];if(ce.isElement(G)&&(O?G.type.indexOf(C)>=0:G.type===C)){var q=CN(A.findKey(h,G).id);H.push(yn(yn({},G),{id:q}))}}}catch(re){F={error:re}}finally{try{V&&!V.done&&(L=K.return)&&L.call(K)}finally{if(F)throw F.error}}return H},h.getElemsByTypePrefix=function(C){return h.getElemsByType(C,!0)},h.isEmpty=function(){var C=h.children,O=C===void 0?[]:C;if(O.length>1)return!1;var F=O[0];if(F==null)return!0;if(ce.isElement(F)&&F.type==="paragraph"){var L=F.children,H=L===void 0?[]:L;if(H.length>1)return!1;var M=H[0];if(M==null||oe.isText(M)&&M.text==="")return!0}return!1},h.clear=function(){N.delete(h,{at:{anchor:E.start(h,[]),focus:E.end(h,[])}}),h.children.length===0&&N.insertNodes(h,[{type:"paragraph",children:[{text:""}]}])},h.getParentNode=function(C){return A.getParentNode(h,C)},h.dangerouslyInsertHtml=function(C,O){if(C===void 0&&(C=""),O===void 0&&(O=!1),C){var F=document.createElement("div");F.innerHTML=C;var L=Array.from(F.childNodes);if(L=L.filter(function(V){var G=V.nodeType,q=V.nodeName;return G===po.TEXT_NODE||G===po.ELEMENT_NODE&&!p9.has(q.toLowerCase())}),L.length!==0){var H=h.selection;if(H!=null){var M=null;A.isSelectedEmptyParagraph(h)&&!O&&(M=[H.focus.path[0]]),F.setAttribute("hidden","true"),document.body.appendChild(F);var K=0;L.forEach(function(V){var G=V.nodeType,q=V.nodeName,re=V.textContent,se=re===void 0?"":re;if(G!==po.TEXT_NODE)if(q!=="BR"){var ue=V,ae=!1;if(SN.includes(q.toLowerCase()))ae=!0;else for(var B in e0)if(ue.matches(B)){ae=!0;break}if(ae){var x=e8(k(ue),h);return Array.isArray(x)?(x.forEach(function($){return h9(h,$)}),K++):(h9(h,x),K++),void(A.isSelectedVoidNode(h)&&h.move(1))}var j=window.getComputedStyle(ue).display;A.isSelectedEmptyParagraph(h)||j.indexOf("inline")<0&&h.insertBreak(),h.dangerouslyInsertHtml(ue.innerHTML,!0)}else h.insertText(`
- `);else{if(!se||!se.trim())return;h.insertNode({text:se})}}),K&&M&&A.isEmptyPath(h,M)&&N.removeNodes(h,{at:M}),F.remove()}}}},h.setHtml=function(C){C===void 0&&(C="");var O=h.isDisabled(),F=h.isFocused(),L=JSON.stringify(h.selection);h.enable(),h.focus(),h.clear();var H=c9(h,C);if(N.insertFragment(h,H),F||(h.deselect(),h.blur()),O&&(h.deselect(),h.disable()),h.isFocused())try{h.select(JSON.parse(L))}catch{h.select(E.start(h,[]))}},h}(function(y){var h=y;return h.getAllMenuKeys=function(){var b=[];for(var w in Md)b.push(w);return b},h.getConfig=function(){var b=j7.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=iQ(BW());return h.id="wangEditor-"+dZ++,h.isDestroyed=!1,h.isFullScreen=!1,h.focus=function(b){if(A.toDOMNode(h,h).focus({preventScroll:!0}),wu.set(h,!0),b){var w=E.end(h,[]);N.select(h,w)}else{var D=V1.get(h);D?N.select(h,D):N.select(h,E.start(h,[]))}},h.isFocused=function(){return!!wu.get(h)},h.blur=function(){A.toDOMNode(h,h).blur(),N.deselect(h),wu.set(h,!1)},h.updateView=function(){A.getTextarea(h).changeViewState();var b=A.getToolbar(h);b&&b.changeToolbarState();var w=A.getHoverbar(h);w&&w.changeHoverbarState()},h.destroy=function(){if(!h.isDestroyed){var b=A.getTextarea(h);b.destroy(),aE.delete(h),uE.delete(b);var w=A.getToolbar(h);w&&(w.destroy(),Lm.delete(h),V5.delete(w));var D=A.getHoverbar(h);D&&(D.destroy(),Xv.delete(h),sE.delete(D)),h.isDestroyed=!0,h.emit("destroyed")}},h.scrollToElem=function(b){if(h.getConfig().scroll){var w=k("#"+b);if(w.length!==0){var D=w[0];if(!A.hasDOMNode(h,D))return;var S=A.getTextarea(h),C=S.$textAreaContainer,O=S.$scroll,F=w.offset().top,L=C.offset().top;O[0].scrollBy({top:F-L,behavior:"smooth"})}}},h.showProgressBar=function(b){b<1||A.getTextarea(h).changeProgress(b)},h.hidePanelOrModal=function(){var b=lE.get(h);b!=null&&b.forEach(function(w){return w.hide()})},h.enable=function(){h.getConfig().readOnly=!1,h.updateView()},h.disable=function(){h.getConfig().readOnly=!0,h.updateView()},h.isDisabled=function(){return h.getConfig().readOnly},h.toDOMNode=function(b){return A.toDOMNode(h,b)},h.fullScreen=function(){if(!h.isFullScreen){var b=null,w=A.getToolbar(h);w&&(b=w.$box);var D=A.getTextarea(h).$box.parent();if(b&&b.parent()[0]!==D[0])throw new Error(`Can not set full screen, cause toolbar DOM parent is not equal to textarea DOM parent
- 不能设置全屏,因为 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=A.getTextarea(h).$box.parent();setTimeout(function(){b.removeClass("w-e-full-screen-container"),h.isFullScreen=!1,h.emit("unFullScreen")},200)}},h.getEditableContainer=function(){return A.getTextarea(h).$textAreaContainer[0]},h}()))))));if(r&&function(y,h){return BN(y,"data-w-e-textarea",h)}(l,r))throw new Error("Repeated create editor by selector '"+r+"'");var c=function(y){y===void 0&&(y={});var h=dP(aN),b={},w=y.MENU_CONF,D=w===void 0?{}:w;return h5(h,function(S,C){b[C]=yn(yn({},S),D[C]||{})}),delete y.MENU_CONF,yn({scroll:!0,readOnly:!1,autoFocus:!0,decorate:function(){return[]},maxLength:0,MENU_CONF:b,hoverbarKeys:{},customAlert:function(S,C){window.alert(C+`:
- `+S)}},y)}(o);j7.set(l,c);var f=c.hoverbarKeys,d=f===void 0?{}:f;if(s.forEach(function(y){l=y(l)}),a!=null&&(l.children=c9(l,a)),i&&i.length&&(l.children=i),l.children.length===0&&(l.children=[{type:"paragraph",children:[{text:""}]}]),A.normalizeContent(l),r){var p=new IQ(r);aE.set(l,p),uE.set(p,l),p.changeViewState(),Bn(function(){var y=p.$scroll;y!=null&&y.height()<300});var v=void 0;Object.keys(d).length>0&&(v=new WQ,sE.set(v,l),Xv.set(l,v)),l.on("change",function(){l.hidePanelOrModal()}),l.on("scroll",function(){l.hidePanelOrModal()})}else l.children.forEach(function(y,h){return IN(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)}),Bn(function(){return l.emit("created")}),l}var qQ=Pm("splice"),KQ=Y.TypeError,XQ=Math.max,YQ=Math.min;Dt({target:"Array",proto:!0,forced:!qQ},{splice:function(e,t){var r,n,o,i,a,u,s=Aa(this),l=is(s),c=jl(e,l),f=arguments.length;if(f===0?r=n=0:f===1?(r=0,n=l-c):(r=f-2,n=YQ(XQ(_p(t),0),l-c)),l+r-n>9007199254740991)throw KQ("Maximum allowed length exceeded");for(o=jP(s,n),i=0;i<n;i++)(a=c+i)in s&&Pd(o,i,s[a]);if(o.length=n,r<n){for(i=c;i<l-n;i++)u=i+r,(a=i+n)in s?s[u]=s[a]:delete s[u];for(i=l;i>l-n+r;i--)delete s[i-1]}else if(r>n)for(i=l-n;i>c;i--)u=i+r-1,(a=i+n-1)in s?s[u]=s[a]:delete s[u];for(i=0;i<r;i++)s[i+c]=arguments[i+2];return s.length=l-n+r,o}});var JQ=function(){function e(t,r){var n=this;this.$toolbar=k('<div class="w-e-bar w-e-bar-show w-e-toolbar"></div>'),this.menus={},this.toolbarItems=[],this.config={},this.changeToolbarState=fP(function(){n.toolbarItems.forEach(function(a){a.changeMenuState()})},200),this.config=r;var o=k(t);if(o.length===0)throw new Error("Cannot find toolbar DOM by selector '"+t+"'");this.$box=o;var i=this.$toolbar;i.on("mousedown",function(a){return a.preventDefault()},{passive:!1}),o.append(i),Bn(function(){n.registerItems(),n.changeToolbarState(),n.getEditorInstance().on("change",n.changeToolbarState)})}return e.prototype.getMenus=function(){return this.menus},e.prototype.getConfig=function(){return this.config},e.prototype.registerItems=function(){var t=this,r="",n=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=dP(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||r==="|")return;var g=jN();return n.append(g),void(r=v)}if(typeof v=="string")return t.registerSingleItem(v,t),void(r=v);t.registerGroup(v),r="group"})},e.prototype.registerGroup=function(t){var r=this,n=this.$toolbar,o=function(l){return new k9(l)}(t),i=t.menuKeys,a=i===void 0?[]:i,u=this.config.excludeKeys,s=u===void 0?[]:u;a.forEach(function(l){s.includes(l)||r.registerSingleItem(l,o)}),n.append(o.$elem)},e.prototype.registerSingleItem=function(t,r){var n=this.getEditorInstance(),o=r instanceof k9,i=this.menus,a=i[t];if(a==null){var u=Md[t];if(u==null)throw new Error("Not found menu item factory by key '"+t+"'");if(typeof u!="function")throw new Error("Menu item factory (key='"+t+"') is not a function");a=u(),i[t]=a}var s=NN(t,a,o);this.toolbarItems.push(s),W5.set(s,n),o?r.appendBarItem(s):r.$toolbar.append(s.$elem)},e.prototype.getEditorInstance=function(){var t=V5.get(this);if(t==null)throw new Error("Can not get editor instance");return t},e.prototype.destroy=function(){this.$toolbar.remove(),this.menus={},this.toolbarItems=[]},e}(),ZQ=Ql.EXISTS,QQ=Zn.f,RN=Function.prototype,eee=pe(RN.toString),LN=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,tee=pe(LN.exec);function MN(e){var t=e.server,r=t===void 0?"":t,n=e.fieldName,o=n===void 0?"":n,i=e.maxFileSize,a=i===void 0?10485760:i,u=e.maxNumberOfFiles,s=u===void 0?100:u,l=e.meta,c=l===void 0?{}:l,f=e.metaWithUrl,d=f!==void 0&&f,p=e.headers,v=p===void 0?{}:p,m=e.withCredentials,g=m!==void 0&&m,y=e.timeout,h=y===void 0?1e4:y,b=e.onBeforeUpload,w=b===void 0?function(K){return K}:b,D=e.onSuccess,S=D===void 0?function(K,V){}:D,C=e.onError,O=C===void 0?function(K,V,G){}:C,F=e.onProgress,L=F===void 0?function(K){}:F;if(!r)throw new Error(`Cannot get upload server address
- 没有配置上传地址`);if(!o)throw new Error(`Cannot get fieldName
- 没有配置 fieldName`);var H=r;d&&(H=function(K,V){var G=He(K.split("#"),2),q=G[0],re=G[1],se=[];h5(V,function(ae,B){se.push(B+"="+ae)});var ue=se.join("&");return q=q.indexOf("?")>0?q+"&"+ue:q+"?"+ue,re?q+"#"+re:q}(H,c));var M=new $f({onBeforeUpload:w,restrictions:{maxFileSize:a,maxNumberOfFiles:s},meta:c}).use(AX,{endpoint:H,headers:v,formData:!0,fieldName:o,bundle:!0,withCredentials:g,timeout:h});return M.on("upload-success",function(K,V){var G=V.body,q=G===void 0?{}:G;try{S(K,q)}catch{}M.removeFile(K.id)}),M.on("progress",function(K){K<1||L(K)}),M.on("upload-error",function(K,V,G){try{O(K,V,G)}catch{}M.removeFile(K.id)}),M.on("restriction-failed",function(K,V){try{O(K,V)}catch{}M.removeFile(K.id)}),M}function Ji(e){return Ji=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ji(e)}function ree(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ut(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?Object(arguments[t]):{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&n.push.apply(n,Object.getOwnPropertySymbols(r).filter(function(o){return Object.getOwnPropertyDescriptor(r,o).enumerable})),n.forEach(function(o){ree(e,o,r[o])})}return e}function si(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function T9(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function li(e,t,r){return t&&T9(e.prototype,t),r&&T9(e,r),e}function Wu(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $d(e,t){if(t&&(Ji(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Wu(e)}function Ll(e){return Ll=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Ll(e)}function CE(e,t){return CE=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r},CE(e,t)}function Mm(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&CE(e,t)}nr&&!ZQ&&QQ(RN,"name",{configurable:!0,get:function(){try{return tee(LN,eee(this))[1]}catch{return""}}});var nee={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){console&&console[e]&&console[e].apply(console,t)}},Jo=new(function(){function e(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};si(this,e),this.init(t,r)}return li(e,[{key:"init",value:function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=r.prefix||"i18next:",this.logger=t||nee,this.options=r,this.debug=r.debug}},{key:"setDebug",value:function(t){this.debug=t}},{key:"log",value:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return this.forward(r,"log","",!0)}},{key:"warn",value:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return this.forward(r,"warn","",!0)}},{key:"error",value:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return this.forward(r,"error","")}},{key:"deprecate",value:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return this.forward(r,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(t,r,n,o){return o&&!this.debug?null:(typeof t[0]=="string"&&(t[0]="".concat(n).concat(this.prefix," ").concat(t[0])),this.logger[r](t))}},{key:"create",value:function(t){return new e(this.logger,Ut({},{prefix:"".concat(this.prefix,":").concat(t,":")},this.options))}}]),e}()),va=function(){function e(){si(this,e),this.observers={}}return li(e,[{key:"on",value:function(t,r){var n=this;return t.split(" ").forEach(function(o){n.observers[o]=n.observers[o]||[],n.observers[o].push(r)}),this}},{key:"off",value:function(t,r){this.observers[t]&&(r?this.observers[t]=this.observers[t].filter(function(n){return n!==r}):delete this.observers[t])}},{key:"emit",value:function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];if(this.observers[t]){var i=[].concat(this.observers[t]);i.forEach(function(u){u.apply(void 0,n)})}if(this.observers["*"]){var a=[].concat(this.observers["*"]);a.forEach(function(u){u.apply(u,[t].concat(n))})}}}]),e}();function Xc(){var e,t,r=new Promise(function(n,o){e=n,t=o});return r.resolve=e,r.reject=t,r}function _9(e){return e==null?"":""+e}function oee(e,t,r){e.forEach(function(n){t[n]&&(r[n]=t[n])})}function l8(e,t,r){function n(u){return u&&u.indexOf("###")>-1?u.replace(/###/g,"."):u}function o(){return!e||typeof e=="string"}for(var i=typeof t!="string"?[].concat(t):t.split(".");i.length>1;){if(o())return{};var a=n(i.shift());!e[a]&&r&&(e[a]=new r),e=Object.prototype.hasOwnProperty.call(e,a)?e[a]:{}}return o()?{}:{obj:e,k:n(i.shift())}}function j9(e,t,r){var n=l8(e,t,Object);n.obj[n.k]=r}function r0(e,t){var r=l8(e,t),n=r.obj,o=r.k;if(n)return n[o]}function P9(e,t,r){var n=r0(e,r);return n!==void 0?n:r0(t,r)}function zN(e,t,r){for(var n in t)n!=="__proto__"&&n!=="constructor"&&(n in e?typeof e[n]=="string"||e[n]instanceof String||typeof t[n]=="string"||t[n]instanceof String?r&&(e[n]=t[n]):zN(e[n],t[n],r):e[n]=t[n]);return e}function As(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var iee={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function aee(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,function(t){return iee[t]}):e}var zm=typeof window<"u"&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1;function $N(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(e){if(e[t])return e[t];for(var n=t.split(r),o=e,i=0;i<n.length;++i){if(!o||typeof o[n[i]]=="string"&&i+1<n.length)return;if(o[n[i]]===void 0){for(var a=2,u=n.slice(i,i+a).join(r),s=o[u];s===void 0&&n.length>i+a;)a++,s=o[u=n.slice(i,i+a).join(r)];if(s===void 0)return;if(typeof s=="string")return s;if(u&&typeof s[u]=="string")return s[u];var l=n.slice(i+a).join(r);return l?$N(s,l,r):void 0}o=o[n[i]]}return o}}var uee=function(e){function t(r){var n,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return si(this,t),n=$d(this,Ll(t).call(this)),zm&&va.call(Wu(n)),n.data=r||{},n.options=o,n.options.keySeparator===void 0&&(n.options.keySeparator="."),n.options.ignoreJSONStructure===void 0&&(n.options.ignoreJSONStructure=!0),n}return Mm(t,va),li(t,[{key:"addNamespaces",value:function(r){this.options.ns.indexOf(r)<0&&this.options.ns.push(r)}},{key:"removeNamespaces",value:function(r){var n=this.options.ns.indexOf(r);n>-1&&this.options.ns.splice(n,1)}},{key:"getResource",value:function(r,n,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=[r,n];o&&typeof o!="string"&&(s=s.concat(o)),o&&typeof o=="string"&&(s=s.concat(a?o.split(a):o)),r.indexOf(".")>-1&&(s=r.split("."));var l=r0(this.data,s);return l||!u||typeof o!="string"?l:$N(this.data&&this.data[r]&&this.data[r][n],o,a)}},{key:"addResource",value:function(r,n,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=[r,n];o&&(s=s.concat(u?o.split(u):o)),r.indexOf(".")>-1&&(i=n,n=(s=r.split("."))[1]),this.addNamespaces(n),j9(this.data,s,i),a.silent||this.emit("added",r,n,o,i)}},{key:"addResources",value:function(r,n,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(r,n,a,o[a],{silent:!0});i.silent||this.emit("added",r,n,o)}},{key:"addResourceBundle",value:function(r,n,o,i,a){var u=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},s=[r,n];r.indexOf(".")>-1&&(i=o,o=n,n=(s=r.split("."))[1]),this.addNamespaces(n);var l=r0(this.data,s)||{};i?zN(l,o,a):l=Ut({},l,o),j9(this.data,s,l),u.silent||this.emit("added",r,n,o)}},{key:"removeResourceBundle",value:function(r,n){this.hasResourceBundle(r,n)&&delete this.data[r][n],this.removeNamespaces(n),this.emit("removed",r,n)}},{key:"hasResourceBundle",value:function(r,n){return this.getResource(r,n)!==void 0}},{key:"getResourceBundle",value:function(r,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?Ut({},{},this.getResource(r,n)):this.getResource(r,n)}},{key:"getDataByLanguage",value:function(r){return this.data[r]}},{key:"toJSON",value:function(){return this.data}}]),t}(),HN={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,r,n,o){var i=this;return e.forEach(function(a){i.processors[a]&&(t=i.processors[a].process(t,r,n,o))}),t}},N9={},I9=function(e){function t(r){var n,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return si(this,t),n=$d(this,Ll(t).call(this)),zm&&va.call(Wu(n)),oee(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],r,Wu(n)),n.options=o,n.options.keySeparator===void 0&&(n.options.keySeparator="."),n.logger=Jo.create("translator"),n}return Mm(t,va),li(t,[{key:"changeLanguage",value:function(r){r&&(this.language=r)}},{key:"exists",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(r==null)return!1;var o=this.resolve(r,n);return o&&o.res!==void 0}},{key:"extractFromKey",value:function(r,n){var o=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;o===void 0&&(o=":");var i=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,a=n.ns||this.options.defaultNS;if(o&&r.indexOf(o)>-1){var u=r.match(this.interpolator.nestingRegexp);if(u&&u.length>0)return{key:r,namespaces:a};var s=r.split(o);(o!==i||o===i&&this.options.ns.indexOf(s[0])>-1)&&(a=s.shift()),r=s.join(i)}return typeof a=="string"&&(a=[a]),{key:r,namespaces:a}}},{key:"translate",value:function(r,n,o){var i=this;if(Ji(n)!=="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),n||(n={}),r==null)return"";Array.isArray(r)||(r=[String(r)]);var a=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,u=this.extractFromKey(r[r.length-1],n),s=u.key,l=u.namespaces,c=l[l.length-1],f=n.lng||this.language,d=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(f&&f.toLowerCase()==="cimode"){if(d){var p=n.nsSeparator||this.options.nsSeparator;return c+p+s}return s}var v=this.resolve(r,n),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=n.joinArrays!==void 0?n.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(!n.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,Ut({},n,{ns:l})):"key '".concat(s," (").concat(this.language,")' returned an object instead of string.");if(a){var C=h==="[object Array]",O=C?[]:{},F=C?y:g;for(var L in m)if(Object.prototype.hasOwnProperty.call(m,L)){var H="".concat(F).concat(a).concat(L);O[L]=this.translate(H,Ut({},n,{joinArrays:!1,ns:l})),O[L]===H&&(O[L]=m[L])}m=O}}else if(D&&typeof w=="string"&&h==="[object Array]")(m=m.join(w))&&(m=this.extendTranslation(m,r,n,o));else{var M=!1,K=!1,V=n.count!==void 0&&typeof n.count!="string",G=t.hasDefaultValue(n),q=V?this.pluralResolver.getSuffix(f,n.count):"",re=n["defaultValue".concat(q)]||n.defaultValue;!this.isValidLookup(m)&&G&&(M=!0,m=re),this.isValidLookup(m)||(K=!0,m=s);var se=n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,ue=se&&K?void 0:m,ae=G&&re!==m&&this.options.updateMissing;if(K||M||ae){if(this.logger.log(ae?"updateKey":"missingKey",f,c,s,ae?re:m),a){var B=this.resolve(s,Ut({},n,{keySeparator:!1}));B&&B.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var x=[],j=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&j&&j[0])for(var $=0;$<j.length;$++)x.push(j[$]);else this.options.saveMissingTo==="all"?x=this.languageUtils.toResolveHierarchy(n.lng||this.language):x.push(n.lng||this.language);var X=function(U,ie,ge){i.options.missingKeyHandler?i.options.missingKeyHandler(U,c,ie,ae?ge:ue,ae,n):i.backendConnector&&i.backendConnector.saveMissing&&i.backendConnector.saveMissing(U,c,ie,ae?ge:ue,ae,n),i.emit("missingKey",U,c,ie,m)};this.options.saveMissing&&(this.options.saveMissingPlurals&&V?x.forEach(function(U){i.pluralResolver.getSuffixes(U).forEach(function(ie){X([U],s+ie,n["defaultValue".concat(ie)]||re)})}):X(x,s,re))}m=this.extendTranslation(m,r,n,v,o),K&&m===s&&this.options.appendNamespaceToMissingKey&&(m="".concat(c,":").concat(s)),(K||M)&&this.options.parseMissingKeyHandler&&(m=this.options.parseMissingKeyHandler(m))}return m}},{key:"extendTranslation",value:function(r,n,o,i,a){var u=this;if(this.i18nFormat&&this.i18nFormat.parse)r=this.i18nFormat.parse(r,o,i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!o.skipInterpolation){o.interpolation&&this.interpolator.init(Ut({},o,{interpolation:Ut({},this.options.interpolation,o.interpolation)}));var s,l=o.interpolation&&o.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;if(l){var c=r.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=Ut({},this.options.interpolation.defaultVariables,f)),r=this.interpolator.interpolate(r,f,o.lng||this.language,o),l){var d=r.match(this.interpolator.nestingRegexp);s<(d&&d.length)&&(o.nest=!1)}o.nest!==!1&&(r=this.interpolator.nest(r,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(n[0])),null):u.translate.apply(u,g.concat([n]))},o)),o.interpolation&&this.interpolator.reset()}var p=o.postProcess||this.options.postProcess,v=typeof p=="string"?[p]:p;return r!=null&&v&&v.length&&o.applyPostProcessor!==!1&&(r=HN.handle(v,r,n,this.options&&this.options.postProcessPassResolved?Ut({i18nResolved:i},o):o,this)),r}},{key:"resolve",value:function(r){var n,o,i,a,u,s=this,l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return typeof r=="string"&&(r=[r]),r.forEach(function(c){if(!s.isValidLookup(n)){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(n)||(u=y,!N9["".concat(g[0],"-").concat(y)]&&s.utils&&s.utils.hasLoadedNamespace&&!s.utils.hasLoadedNamespace(u)&&(N9["".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(n)){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(n)||(i=w,n=s.getResource(h,y,w,l))}}))})}}),{res:n,usedKey:o,exactUsedKey:i,usedLng:a,usedNS:u}}},{key:"isValidLookup",value:function(r){return!(r===void 0||!this.options.returnNull&&r===null||!this.options.returnEmptyString&&r==="")}},{key:"getResource",value:function(r,n,o){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(r,n,o,i):this.resourceStore.getResource(r,n,o,i)}}],[{key:"hasDefaultValue",value:function(r){var n="defaultValue";for(var o in r)if(Object.prototype.hasOwnProperty.call(r,o)&&n===o.substring(0,n.length)&&r[o]!==void 0)return!0;return!1}}]),t}();function fb(e){return e.charAt(0).toUpperCase()+e.slice(1)}var see=function(){function e(t){si(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Jo.create("languageUtils")}return li(e,[{key:"getScriptPartFromCode",value:function(t){if(!t||t.indexOf("-")<0)return null;var r=t.split("-");return r.length===2?null:(r.pop(),r[r.length-1].toLowerCase()==="x"?null:this.formatLanguageCode(r.join("-")))}},{key:"getLanguagePartFromCode",value:function(t){if(!t||t.indexOf("-")<0)return t;var r=t.split("-");return this.formatLanguageCode(r[0])}},{key:"formatLanguageCode",value:function(t){if(typeof t=="string"&&t.indexOf("-")>-1){var r=["hans","hant","latn","cyrl","cans","mong","arab"],n=t.split("-");return this.options.lowerCaseLng?n=n.map(function(o){return o.toLowerCase()}):n.length===2?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),r.indexOf(n[1].toLowerCase())>-1&&(n[1]=fb(n[1].toLowerCase()))):n.length===3&&(n[0]=n[0].toLowerCase(),n[1].length===2&&(n[1]=n[1].toUpperCase()),n[0]!=="sgn"&&n[2].length===2&&(n[2]=n[2].toUpperCase()),r.indexOf(n[1].toLowerCase())>-1&&(n[1]=fb(n[1].toLowerCase())),r.indexOf(n[2].toLowerCase())>-1&&(n[2]=fb(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}},{key:"isWhitelisted",value:function(t){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(t)}},{key:"isSupportedCode",value:function(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}},{key:"getBestMatchFromCodes",value:function(t){var r,n=this;return t?(t.forEach(function(o){if(!r){var i=n.formatLanguageCode(o);n.options.supportedLngs&&!n.isSupportedCode(i)||(r=i)}}),!r&&this.options.supportedLngs&&t.forEach(function(o){if(!r){var i=n.getLanguagePartFromCode(o);if(n.isSupportedCode(i))return r=i;r=n.options.supportedLngs.find(function(a){if(a.indexOf(i)===0)return a})}}),r||(r=this.getFallbackCodes(this.options.fallbackLng)[0]),r):null}},{key:"getFallbackCodes",value:function(t,r){if(!t)return[];if(typeof t=="function"&&(t=t(r)),typeof t=="string"&&(t=[t]),Object.prototype.toString.apply(t)==="[object Array]")return t;if(!r)return t.default||[];var n=t[r];return n||(n=t[this.getScriptPartFromCode(r)]),n||(n=t[this.formatLanguageCode(r)]),n||(n=t[this.getLanguagePartFromCode(r)]),n||(n=t.default),n||[]}},{key:"toResolveHierarchy",value:function(t,r){var n=this,o=this.getFallbackCodes(r||this.options.fallbackLng||[],t),i=[],a=function(u){u&&(n.isSupportedCode(u)?i.push(u):n.logger.warn("rejecting language code not found in supportedLngs: ".concat(u)))};return typeof t=="string"&&t.indexOf("-")>-1?(this.options.load!=="languageOnly"&&a(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&a(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&a(this.getLanguagePartFromCode(t))):typeof t=="string"&&a(this.formatLanguageCode(t)),o.forEach(function(u){i.indexOf(u)<0&&a(n.formatLanguageCode(u))}),i}}]),e}(),lee=[{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}],cee={1:function(e){return+(e>1)},2:function(e){return+(e!=1)},3:function(e){return 0},4:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},5:function(e){return e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},6:function(e){return e==1?0:e>=2&&e<=4?1:2},7:function(e){return e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},8:function(e){return e==1?0:e==2?1:e!=8&&e!=11?2:3},9:function(e){return+(e>=2)},10:function(e){return e==1?0:e==2?1:e<7?2:e<11?3:4},11:function(e){return e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3},12:function(e){return+(e%10!=1||e%100==11)},13:function(e){return+(e!==0)},14:function(e){return e==1?0:e==2?1:e==3?2:3},15:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2},16:function(e){return e%10==1&&e%100!=11?0:e!==0?1:2},17:function(e){return e==1||e%10==1&&e%100!=11?0:1},18:function(e){return e==0?0:e==1?1:2},19:function(e){return e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3},20:function(e){return e==1?0:e==0||e%100>0&&e%100<20?1:2},21:function(e){return e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0},22:function(e){return e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3}};function fee(){var e={};return lee.forEach(function(t){t.lngs.forEach(function(r){e[r]={numbers:t.nr,plurals:cee[t.fc]}})}),e}var dee=function(){function e(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};si(this,e),this.languageUtils=t,this.options=r,this.logger=Jo.create("pluralResolver"),this.rules=fee()}return li(e,[{key:"addRule",value:function(t,r){this.rules[t]=r}},{key:"getRule",value:function(t){return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}},{key:"needsPlural",value:function(t){var r=this.getRule(t);return r&&r.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(t,r){return this.getSuffixes(t).map(function(n){return r+n})}},{key:"getSuffixes",value:function(t){var r=this,n=this.getRule(t);return n?n.numbers.map(function(o){return r.getSuffix(t,o)}):[]}},{key:"getSuffix",value:function(t,r){var n=this,o=this.getRule(t);if(o){var i=o.noAbs?o.plurals(r):o.plurals(Math.abs(r)),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 n.options.prepend&&a.toString()?n.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(t)),""}}]),e}(),pee=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};si(this,e),this.logger=Jo.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(r){return r},this.init(t)}return li(e,[{key:"init",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});var r=t.interpolation;this.escape=r.escape!==void 0?r.escape:aee,this.escapeValue=r.escapeValue===void 0||r.escapeValue,this.useRawValueToEscape=r.useRawValueToEscape!==void 0&&r.useRawValueToEscape,this.prefix=r.prefix?As(r.prefix):r.prefixEscaped||"{{",this.suffix=r.suffix?As(r.suffix):r.suffixEscaped||"}}",this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||",",this.unescapePrefix=r.unescapeSuffix?"":r.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":r.unescapeSuffix||"",this.nestingPrefix=r.nestingPrefix?As(r.nestingPrefix):r.nestingPrefixEscaped||As("$t("),this.nestingSuffix=r.nestingSuffix?As(r.nestingSuffix):r.nestingSuffixEscaped||As(")"),this.nestingOptionsSeparator=r.nestingOptionsSeparator?r.nestingOptionsSeparator:r.nestingOptionsSeparator||",",this.maxReplaces=r.maxReplaces?r.maxReplaces:1e3,this.alwaysFormat=r.alwaysFormat!==void 0&&r.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var t="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(t,"g");var r="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(r,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(n,"g")}},{key:"interpolate",value:function(t,r,n,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=P9(r,l,m);return s.alwaysFormat?s.format(g,void 0,n,Ut({},o,r,{interpolationkey:m})):g}var y=m.split(s.formatSeparator),h=y.shift().trim(),b=y.join(s.formatSeparator).trim();return s.format(P9(r,l,h),b,n,Ut({},o,r,{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(t);){if((a=f(i[1].trim()))===void 0)if(typeof d=="function"){var g=d(t,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(t)),a=""}else typeof a=="string"||s.useRawValueToEscape||(a=_9(a));var y=m.safeValue(a);if(t=t.replace(i[0],y),p?(m.regex.lastIndex+=y.length,m.regex.lastIndex-=i[0].length):m.regex.lastIndex=0,++u>=s.maxReplaces)break}}),t}},{key:"nest",value:function(t,r){var n,o,i=this,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},u=Ut({},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=Ut({},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;n=this.nestingRegexp.exec(t);){var l=[],c=!1;if(n[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(n[1])){var f=n[1].split(this.formatSeparator).map(function(d){return d.trim()});n[1]=f.shift(),l=f,c=!0}if((o=r(s.call(this,n[1].trim(),u),u))&&n[0]===t&&typeof o!="string")return o;typeof o!="string"&&(o=_9(o)),o||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(t)),o=""),c&&(o=l.reduce(function(d,p){return i.format(d,p,a.lng,Ut({},a,{interpolationkey:n[1].trim()}))},o.trim())),t=t.replace(n[0],o),this.regexp.lastIndex=0}return t}}]),e}(),hee=function(e){function t(r,n,o){var i,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return si(this,t),i=$d(this,Ll(t).call(this)),zm&&va.call(Wu(i)),i.backend=r,i.store=n,i.services=o,i.languageUtils=o.languageUtils,i.options=a,i.logger=Jo.create("backendConnector"),i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(o,a.backend,a),i}return Mm(t,va),li(t,[{key:"queueLoad",value:function(r,n,o,i){var a=this,u=[],s=[],l=[],c=[];return r.forEach(function(f){var d=!0;n.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(r,n,o){var i=r.split("|"),a=i[0],u=i[1];n&&this.emit("failedLoading",a,u,n),o&&this.store.addResourceBundle(a,u,o),this.state[r]=n?-1:2;var s={};this.queue.forEach(function(l){(function(c,f,d,p){var v=l8(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,r),n&&l.errors.push(n),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(r,n,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 r.length?this.backend[o](r,n,function(l,c){l&&c&&a<5?setTimeout(function(){i.read.call(i,r,n,o,a+1,2*u,s)},u):s(l,c)}):s(null,{})}},{key:"prepareLoading",value:function(r,n){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 r=="string"&&(r=this.languageUtils.toResolveHierarchy(r)),typeof n=="string"&&(n=[n]);var u=this.queueLoad(r,n,i,a);if(!u.toLoad.length)return u.pending.length||a(),null;u.toLoad.forEach(function(s){o.loadOne(s)})}},{key:"load",value:function(r,n,o){this.prepareLoading(r,n,{},o)}},{key:"reload",value:function(r,n,o){this.prepareLoading(r,n,{reload:!0},o)}},{key:"loadOne",value:function(r){var n=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",i=r.split("|"),a=i[0],u=i[1];this.read(a,u,"read",void 0,void 0,function(s,l){s&&n.logger.warn("".concat(o,"loading namespace ").concat(u," for language ").concat(a," failed"),s),!s&&l&&n.logger.log("".concat(o,"loaded namespace ").concat(u," for language ").concat(a),l),n.loaded(r,s,l)})}},{key:"saveMissing",value:function(r,n,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(n)?this.logger.warn('did not save key "'.concat(o,'" as the namespace "').concat(n,'" 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(r,n,o,i,null,Ut({},u,{isUpdate:a})),r&&r[0]&&this.store.addResource(r[0],n,o,i))}}]),t}();function gee(){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(e){var t={};if(Ji(e[1])==="object"&&(t=e[1]),typeof e[1]=="string"&&(t.defaultValue=e[1]),typeof e[2]=="string"&&(t.tDescription=e[2]),Ji(e[2])==="object"||Ji(e[3])==="object"){var r=e[3]||e[2];Object.keys(r).forEach(function(n){t[n]=r[n]})}return t},interpolation:{escapeValue:!0,format:function(e,t,r,n){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}}}function R9(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&(e.whitelist&&e.whitelist.indexOf("cimode")<0&&(e.whitelist=e.whitelist.concat(["cimode"])),e.supportedLngs=e.whitelist),e.nonExplicitWhitelist&&(e.nonExplicitSupportedLngs=e.nonExplicitWhitelist),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function $h(){}var vee=function(e){function t(){var r,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(si(this,t),r=$d(this,Ll(t).call(this)),zm&&va.call(Wu(r)),r.options=R9(n),r.services={},r.logger=Jo,r.modules={external:[]},o&&!r.isInitialized&&!n.isClone){if(!r.options.initImmediate)return r.init(n,o),$d(r,Wu(r));setTimeout(function(){r.init(n,o)},0)}return r}return Mm(t,va),li(t,[{key:"init",value:function(){var r=this,n=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 n=="function"&&(o=n,n={}),n.whitelist&&!n.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),n.nonExplicitWhitelist&&!n.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=Ut({},gee(),this.options,R9(n)),this.format=this.options.interpolation.format,o||(o=$h),!this.options.isClone){this.modules.logger?Jo.init(i(this.modules.logger),this.options):Jo.init(null,this.options);var a=new see(this.options);this.store=new uee(this.options.resources,this.options);var u=this.services;u.logger=Jo,u.resourceStore=this.store,u.languageUtils=a,u.pluralResolver=new dee(a,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),u.interpolator=new pee(this.options),u.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},u.backendConnector=new hee(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];r.emit.apply(r,[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 I9(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];r.emit.apply(r,[p].concat(m))}),this.modules.external.forEach(function(p){p.init&&p.init(r)})}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){r[p]=function(){var v;return(v=r.store)[p].apply(v,arguments)}});var c=["addResource","addResources","addResourceBundle","removeResourceBundle"];c.forEach(function(p){r[p]=function(){var v;return(v=r.store)[p].apply(v,arguments),r}});var f=Xc(),d=function(){var p=function(v,m){r.isInitialized&&!r.initializedStoreOnce&&r.logger.warn("init: i18next is already initialized. You should call init just once!"),r.isInitialized=!0,r.options.isClone||r.logger.log("initialized",r.options),r.emit("initialized",r.options),f.resolve(m),o(v,m)};if(r.languages&&r.options.compatibilityAPI!=="v1"&&!r.isInitialized)return p(null,r.t.bind(r));r.changeLanguage(r.options.lng,p)};return this.options.resources||!this.options.initImmediate?d():setTimeout(d,0),f}},{key:"loadResources",value:function(r){var n=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:$h,i=o,a=typeof r=="string"?r:this.language;if(typeof r=="function"&&(i=r),!this.options.resources||this.options.partialBundledLanguages){if(a&&a.toLowerCase()==="cimode")return i();var u=[],s=function(c){c&&n.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(r,n,o){var i=Xc();return r||(r=this.languages),n||(n=this.options.ns),o||(o=$h),this.services.backendConnector.reload(r,n,function(a){i.resolve(),o(a)}),i}},{key:"use",value:function(r){if(!r)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!r.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return r.type==="backend"&&(this.modules.backend=r),(r.type==="logger"||r.log&&r.warn&&r.error)&&(this.modules.logger=r),r.type==="languageDetector"&&(this.modules.languageDetector=r),r.type==="i18nFormat"&&(this.modules.i18nFormat=r),r.type==="postProcessor"&&HN.addPostProcessor(r),r.type==="3rdParty"&&this.modules.external.push(r),this}},{key:"changeLanguage",value:function(r,n){var o=this;this.isLanguageChangingTo=r;var i=Xc();this.emit("languageChanging",r);var a=function(u){r||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)}),n&&n(c,function(){return o.t.apply(o,arguments)})})(l,s)})};return r||!this.services.languageDetector||this.services.languageDetector.async?!r&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(a):a(r):a(this.services.languageDetector.detect()),i}},{key:"getFixedT",value:function(r,n,o){var i=this,a=function u(s,l){var c;if(Ji(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=Ut({},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 r=="string"?a.lng=r:a.lngs=r,a.ns=n,a.keyPrefix=o,a}},{key:"t",value:function(){var r;return this.translator&&(r=this.translator).translate.apply(r,arguments)}},{key:"exists",value:function(){var r;return this.translator&&(r=this.translator).exists.apply(r,arguments)}},{key:"setDefaultNamespace",value:function(r){this.options.defaultNS=r}},{key:"hasLoadedNamespace",value:function(r){var n=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=n.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,r)||!this.services.backendConnector.backend||!(!s(i,r)||a&&!s(u,r))}},{key:"loadNamespaces",value:function(r,n){var o=this,i=Xc();return this.options.ns?(typeof r=="string"&&(r=[r]),r.forEach(function(a){o.options.ns.indexOf(a)<0&&o.options.ns.push(a)}),this.loadResources(function(a){i.resolve(),n&&n(a)}),i):(n&&n(),Promise.resolve())}},{key:"loadLanguages",value:function(r,n){var o=Xc();typeof r=="string"&&(r=[r]);var i=this.options.preload||[],a=r.filter(function(u){return i.indexOf(u)<0});return a.length?(this.options.preload=i.concat(a),this.loadResources(function(u){o.resolve(),n&&n(u)}),o):(n&&n(),Promise.resolve())}},{key:"dir",value:function(r){return r||(r=this.languages&&this.languages.length>0?this.languages[0]:this.language),r?["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(r))>=0?"rtl":"ltr":"rtl"}},{key:"createInstance",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new t(r,n)}},{key:"cloneInstance",value:function(){var r=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:$h,i=Ut({},this.options,n,{isClone:!0}),a=new t(i),u=["store","services","language"];return u.forEach(function(s){a[s]=r[s]}),a.services=Ut({},this.services),a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a.translator=new I9(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}}}]),t}(),n0=new vee;function Wr(e,t){n0.addResourceBundle(e,"translation",t,!0,!0)}n0.init({lng:"zh-CN",resources:{}});var Q=n0.t.bind(n0);Wr("en",{editor:{more:"More",justify:"Justify",indent:"Indent",image:"Image",video:"Video"}}),Wr("zh-CN",{editor:{more:"更多",justify:"对齐",indent:"缩进",image:"图片",video:"视频"}});var mee=Q3?{}.toString:function(){return"[object "+bm(this)+"]"};Q3||Ru(Object.prototype,"toString",mee,{unsafe:!0});var L9=Array.isArray||function(e){return hu(e)=="Array"},UN=function(){},yee=[],VN=Cp("Reflect","construct"),c8=/^\s*(?:class|function)\b/,bee=rt(c8.exec),wee=!c8.exec(UN),Yc=function(e){if(!er(e))return!1;try{return VN(UN,yee,e),!0}catch{return!1}},Eee=!VN||ur(function(){var e;return Yc(Yc.call)||!Yc(Object)||!Yc(function(){e=!0})||e})?function(e){if(!er(e))return!1;switch(bm(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return wee||!!bee(c8,K3(e))}:Yc,Dee=jr("species"),M9=Ee.Array,Cee=function(e,t){return new(function(r){var n;return L9(r)&&(n=r.constructor,(Eee(n)&&(n===M9||L9(n.prototype))||ho(n)&&(n=n[Dee])===null)&&(n=void 0)),n===void 0?M9:n}(e))(t===0?0:t)},z9=rt([].push),See=function(e){var t=e==1,r=e==2,n=e==3,o=e==4,i=e==6,a=e==7,u=e==5||i;return function(s,l,c,f){for(var d,p,v=V3(s),m=aj(v),g=bj(l,c),y=ym(m),h=0,b=f||Cee,w=t?b(s,y):r||a?b(s,0):void 0;y>h;h++)if((u||h in m)&&(p=g(d=m[h],h,v),e))if(t)w[h]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return h;case 2:z9(w,d)}else switch(e){case 4:return!1;case 7:z9(w,d)}return i?-1:n||o?o:w}},xee={forEach:See(0)}.forEach,Aee=function(e,t){var r=[][e];return!!r&&ur(function(){r.call(null,t||function(){throw 1},1)})}("forEach"),db=Aee?[].forEach:function(e){return xee(this,e,arguments.length>1?arguments[1]:void 0)},WN=function(e){if(e&&e.forEach!==db)try{Lr(e,"forEach",db)}catch{e.forEach=db}};for(var pb in Dv)Dv[pb]&&WN(Ee[pb]&&Ee[pb].prototype);WN(Dj),Wr("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"}}),Wr("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 Oee={type:"paragraph",renderElem:function(e,t,r){return be("p",null,t)}},o0=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function $m(e){var t={exports:{}};return e(t,t.exports),t.exports}var xi,zg,Hh=function(e){return e&&e.Math==Math&&e},xe=Hh(typeof globalThis=="object"&&globalThis)||Hh(typeof window=="object"&&window)||Hh(typeof self=="object"&&self)||Hh(typeof o0=="object"&&o0)||function(){return this}()||Function("return this")(),Ct=function(e){try{return!!e()}catch{return!0}},Yn=!Ct(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Jc=Function.prototype.call,Nt=Jc.bind?Jc.bind(Jc):function(){return Jc.apply(Jc,arguments)},$9={}.propertyIsEnumerable,H9=Object.getOwnPropertyDescriptor,Bee=H9&&!$9.call({1:2},1)?function(e){var t=H9(this,e);return!!t&&t.enumerable}:$9,GN={f:Bee},f8=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},qN=Function.prototype,SE=qN.bind,xE=qN.call,kee=SE&&SE.bind(xE),me=SE?function(e){return e&&kee(xE,e)}:function(e){return e&&function(){return xE.apply(e,arguments)}},Fee=me({}.toString),Tee=me("".slice),Zi=function(e){return Tee(Fee(e),8,-1)},hb=xe.Object,_ee=me("".split),Hm=Ct(function(){return!hb("z").propertyIsEnumerable(0)})?function(e){return Zi(e)=="String"?_ee(e,""):hb(e)}:hb,jee=xe.TypeError,kn=function(e){if(e==null)throw jee("Can't call method on "+e);return e},oc=function(e){return Hm(kn(e))},Sr=function(e){return typeof e=="function"},vo=function(e){return typeof e=="object"?e!==null:Sr(e)},Pee=function(e){return Sr(e)?e:void 0},Np=function(e,t){return arguments.length<2?Pee(xe[e]):xe[e]&&xe[e][t]},KN=me({}.isPrototypeOf),gb=Np("navigator","userAgent")||"",U9=xe.process,V9=xe.Deno,W9=U9&&U9.versions||V9&&V9.version,G9=W9&&W9.v8;G9&&(zg=(xi=G9.split("."))[0]>0&&xi[0]<4?1:+(xi[0]+xi[1])),!zg&&gb&&(!(xi=gb.match(/Edge\/(\d+)/))||xi[1]>=74)&&(xi=gb.match(/Chrome\/(\d+)/))&&(zg=+xi[1]);var AE=zg,OE=!!Object.getOwnPropertySymbols&&!Ct(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&AE&&AE<41}),d8=OE&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Nee=xe.Object,vb=d8?function(e){return typeof e=="symbol"}:function(e){var t=Np("Symbol");return Sr(t)&&KN(t.prototype,Nee(e))},Iee=xe.String,XN=function(e){try{return Iee(e)}catch{return"Object"}},Ree=xe.TypeError,YN=function(e){if(Sr(e))return e;throw Ree(XN(e)+" is not a function")},Um=function(e,t){var r=e[t];return r==null?void 0:YN(r)},Lee=xe.TypeError,Mee=Object.defineProperty,p8=function(e,t){try{Mee(xe,e,{value:t,configurable:!0,writable:!0})}catch{xe[e]=t}return t},Qi=xe["__core-js_shared__"]||p8("__core-js_shared__",{}),h8=$m(function(e){(e.exports=function(t,r){return Qi[t]||(Qi[t]=r!==void 0?r:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),zee=xe.Object,Ip=function(e){return zee(kn(e))},$ee=me({}.hasOwnProperty),En=Object.hasOwn||function(e,t){return $ee(Ip(e),t)},Hee=0,Uee=Math.random(),Vee=me(1 .toString),JN=function(e){return"Symbol("+(e===void 0?"":e)+")_"+Vee(++Hee+Uee,36)},Zc=h8("wks"),Du=xe.Symbol,q9=Du&&Du.for,Wee=d8?Du:Du&&Du.withoutSetter||JN,ln=function(e){if(!En(Zc,e)||!OE&&typeof Zc[e]!="string"){var t="Symbol."+e;OE&&En(Du,e)?Zc[e]=Du[e]:Zc[e]=d8&&q9?q9(t):Wee(t)}return Zc[e]},Gee=xe.TypeError,qee=ln("toPrimitive"),g8=function(e){var t=function(r,n){if(!vo(r)||vb(r))return r;var o,i=Um(r,qee);if(i){if(o=Nt(i,r,n),!vo(o)||vb(o))return o;throw Gee("Can't convert object to primitive value")}return function(a,u){var s,l;if(Sr(s=a.toString)&&!vo(l=Nt(s,a))||Sr(s=a.valueOf)&&!vo(l=Nt(s,a))||u!=="string")return l;throw Lee("Can't convert object to primitive value")}(r,n)}(e,"string");return vb(t)?t:t+""},BE=xe.document,Kee=vo(BE)&&vo(BE.createElement),v8=function(e){return Kee?BE.createElement(e):{}},ZN=!Yn&&!Ct(function(){return Object.defineProperty(v8("div"),"a",{get:function(){return 7}}).a!=7}),K9=Object.getOwnPropertyDescriptor,m8={f:Yn?K9:function(e,t){if(e=oc(e),t=g8(t),ZN)try{return K9(e,t)}catch{}if(En(e,t))return f8(!Nt(GN.f,e,t),e[t])}},Xee=xe.String,Yee=xe.TypeError,tn=function(e){if(vo(e))return e;throw Yee(Xee(e)+" is not an object")},Jee=xe.TypeError,X9=Object.defineProperty,ic={f:Yn?X9:function(e,t,r){if(tn(e),t=g8(t),tn(r),ZN)try{return X9(e,t,r)}catch{}if("get"in r||"set"in r)throw Jee("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},Ml=Yn?function(e,t,r){return ic.f(e,t,f8(1,r))}:function(e,t,r){return e[t]=r,e},Zee=me(Function.toString);Sr(Qi.inspectSource)||(Qi.inspectSource=function(e){return Zee(e)});var kE,i0,FE,y8=Qi.inspectSource,Y9=xe.WeakMap,Qee=Sr(Y9)&&/native code/.test(y8(Y9)),J9=h8("keys"),QN=function(e){return J9[e]||(J9[e]=JN(e))},b8={},Z9=xe.TypeError,ete=xe.WeakMap;if(Qee||Qi.state){var Ha=Qi.state||(Qi.state=new ete),tte=me(Ha.get),Q9=me(Ha.has),rte=me(Ha.set);kE=function(e,t){if(Q9(Ha,e))throw new Z9("Object already initialized");return t.facade=e,rte(Ha,e,t),t},i0=function(e){return tte(Ha,e)||{}},FE=function(e){return Q9(Ha,e)}}else{var Os=QN("state");b8[Os]=!0,kE=function(e,t){if(En(e,Os))throw new Z9("Object already initialized");return t.facade=e,Ml(e,Os,t),t},i0=function(e){return En(e,Os)?e[Os]:{}},FE=function(e){return En(e,Os)}}var TE={get:i0,enforce:function(e){return FE(e)?i0(e):kE(e,{})}},eI=Function.prototype,nte=Yn&&Object.getOwnPropertyDescriptor,mb=En(eI,"name"),Vm={EXISTS:mb,PROPER:mb&&(function(){}).name==="something",CONFIGURABLE:mb&&(!Yn||Yn&&nte(eI,"name").configurable)},Hd=$m(function(e){var t=Vm.CONFIGURABLE,r=TE.get,n=TE.enforce,o=String(String).split("String");(e.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;Sr(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!En(u,"name")||t&&u.name!==p)&&Ml(u,"name",p),(l=n(u)).source||(l.source=o.join(typeof p=="string"?p:""))),i!==xe?(c?!d&&i[a]&&(f=!0):delete i[a],f?i[a]=u:Ml(i,a,u)):f?i[a]=u:p8(a,u)})(Function.prototype,"toString",function(){return Sr(this)&&r(this).source||y8(this)})}),ote=Math.ceil,ite=Math.floor,ac=function(e){var t=+e;return t!=t||t===0?0:(t>0?ite:ote)(t)},ate=Math.max,ute=Math.min,Ud=function(e,t){var r=ac(e);return r<0?ate(r+t,0):ute(r,t)},ste=Math.min,Rp=function(e){return e>0?ste(ac(e),9007199254740991):0},Wm=function(e){return Rp(e.length)},eO=function(e){return function(t,r,n){var o,i=oc(t),a=Wm(i),u=Ud(n,a);if(e&&r!=r){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===r)return e||u||0;return!e&&-1}},tI={includes:eO(!0),indexOf:eO(!1)},lte=tI.indexOf,tO=me([].push),rI=function(e,t){var r,n=oc(e),o=0,i=[];for(r in n)!En(b8,r)&&En(n,r)&&tO(i,r);for(;t.length>o;)En(n,r=t[o++])&&(~lte(i,r)||tO(i,r));return i},a0=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],cte=a0.concat("length","prototype"),fte={f:Object.getOwnPropertyNames||function(e){return rI(e,cte)}},nI={f:Object.getOwnPropertySymbols},dte=me([].concat),pte=Np("Reflect","ownKeys")||function(e){var t=fte.f(tn(e)),r=nI.f;return r?dte(t,r(e)):t},hte=function(e,t){for(var r=pte(t),n=ic.f,o=m8.f,i=0;i<r.length;i++){var a=r[i];En(e,a)||n(e,a,o(t,a))}},gte=/#|\.prototype\./,Lp=function(e,t){var r=mte[vte(e)];return r==bte||r!=yte&&(Sr(t)?Ct(t):!!t)},vte=Lp.normalize=function(e){return String(e).replace(gte,".").toLowerCase()},mte=Lp.data={},yte=Lp.NATIVE="N",bte=Lp.POLYFILL="P",wte=Lp,Ete=m8.f,Zt=function(e,t){var r,n,o,i,a,u=e.target,s=e.global,l=e.stat;if(r=s?xe:l?xe[u]||p8(u,{}):(xe[u]||{}).prototype)for(n in t){if(i=t[n],o=e.noTargetGet?(a=Ete(r,n))&&a.value:r[n],!wte(s?n:u+(l?".":"#")+n,e.forced)&&o!==void 0){if(typeof i==typeof o)continue;hte(i,o)}(e.sham||o&&o.sham)&&Ml(i,"sham",!0),Hd(r,n,i,e)}},rO=me(me.bind),u0=Array.isArray||function(e){return Zi(e)=="Array"},oI={};oI[ln("toStringTag")]="z";var w8=String(oI)==="[object z]",Dte=ln("toStringTag"),Cte=xe.Object,Ste=Zi(function(){return arguments}())=="Arguments",E8=w8?Zi:function(e){var t,r,n;return e===void 0?"Undefined":e===null?"Null":typeof(r=function(o,i){try{return o[i]}catch{}}(t=Cte(e),Dte))=="string"?r:Ste?Zi(t):(n=Zi(t))=="Object"&&Sr(t.callee)?"Arguments":n},iI=function(){},xte=[],aI=Np("Reflect","construct"),D8=/^\s*(?:class|function)\b/,Ate=me(D8.exec),Ote=!D8.exec(iI),Qc=function(e){if(!Sr(e))return!1;try{return aI(iI,xte,e),!0}catch{return!1}},C8=!aI||Ct(function(){var e;return Qc(Qc.call)||!Qc(Object)||!Qc(function(){e=!0})||e})?function(e){if(!Sr(e))return!1;switch(E8(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Ote||!!Ate(D8,y8(e))}:Qc,Bte=ln("species"),nO=xe.Array,kte=function(e,t){return new(function(r){var n;return u0(r)&&(n=r.constructor,(C8(n)&&(n===nO||u0(n.prototype))||vo(n)&&(n=n[Bte])===null)&&(n=void 0)),n===void 0?nO:n}(e))(t===0?0:t)},oO=me([].push),Uh=function(e){var t=e==1,r=e==2,n=e==3,o=e==4,i=e==6,a=e==7,u=e==5||i;return function(s,l,c,f){for(var d,p,v=Ip(s),m=Hm(v),g=function(D,S){return YN(D),S===void 0?D:rO?rO(D,S):function(){return D.apply(S,arguments)}}(l,c),y=Wm(m),h=0,b=f||kte,w=t?b(s,y):r||a?b(s,0):void 0;y>h;h++)if((u||h in m)&&(p=g(d=m[h],h,v),e))if(t)w[h]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return h;case 2:oO(w,d)}else switch(e){case 4:return!1;case 7:oO(w,d)}return i?-1:n||o?o:w}},Gm={forEach:Uh(0),map:Uh(1),filter:Uh(2),find:Uh(5)},Fte=ln("species"),S8=function(e){return AE>=51||!Ct(function(){var t=[];return(t.constructor={})[Fte]=function(){return{foo:1}},t[e](Boolean).foo!==1})},Tte=Gm.filter;Zt({target:"Array",proto:!0,forced:!S8("filter")},{filter:function(e){return Tte(this,e,arguments.length>1?arguments[1]:void 0)}});var _te=w8?{}.toString:function(){return"[object "+E8(this)+"]"};w8||Hd(Object.prototype,"toString",_te,{unsafe:!0});var Vh,jte=xe.String,Et=function(e){if(E8(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return jte(e)},uI=function(){var e=tn(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},x8=xe.RegExp,_E=Ct(function(){var e=x8("a","y");return e.lastIndex=2,e.exec("abcd")!=null});_E||Ct(function(){return!x8("a","y").sticky});var sI={BROKEN_CARET:_E||Ct(function(){var e=x8("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),UNSUPPORTED_Y:_E},fl=Object.keys||function(e){return rI(e,a0)},Pte=Yn?Object.defineProperties:function(e,t){tn(e);for(var r,n=oc(t),o=fl(t),i=o.length,a=0;i>a;)ic.f(e,r=o[a++],n[r]);return e},Nte=Np("document","documentElement"),lI=QN("IE_PROTO"),yb=function(){},cI=function(e){return"<script>"+e+"<\/script>"},iO=function(e){e.write(cI("")),e.close();var t=e.parentWindow.Object;return e=null,t},$g=function(){try{Vh=new ActiveXObject("htmlfile")}catch{}var e,t;$g=typeof document<"u"?document.domain&&Vh?iO(Vh):((t=v8("iframe")).style.display="none",Nte.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(cI("document.F=Object")),e.close(),e.F):iO(Vh);for(var r=a0.length;r--;)delete $g.prototype[a0[r]];return $g()};b8[lI]=!0;var aO,bb,fI=Object.create||function(e,t){var r;return e!==null?(yb.prototype=tn(e),r=new yb,yb.prototype=null,r[lI]=e):r=$g(),t===void 0?r:Pte(r,t)},Ite=xe.RegExp,Rte=Ct(function(){var e=Ite(".","s");return!(e.dotAll&&e.exec(`
- `)&&e.flags==="s")}),Lte=xe.RegExp,Mte=Ct(function(){var e=Lte("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),zte=TE.get,$te=h8("native-string-replace",String.prototype.replace),s0=RegExp.prototype.exec,jE=s0,Hte=me("".charAt),Ute=me("".indexOf),Vte=me("".replace),wb=me("".slice),Eb=(bb=/b*/g,Nt(s0,aO=/a/,"a"),Nt(s0,bb,"a"),aO.lastIndex!==0||bb.lastIndex!==0),uO=sI.BROKEN_CARET,Db=/()??/.exec("")[1]!==void 0;(Eb||Db||uO||Rte||Mte)&&(jE=function(e){var t,r,n,o,i,a,u,s=this,l=zte(s),c=Et(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=Nt(jE,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=uO&&s.sticky,v=Nt(uI,s),m=s.source,g=0,y=c;if(p&&(v=Vte(v,"y",""),Ute(v,"g")===-1&&(v+="g"),y=wb(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&Hte(c,s.lastIndex-1)!==`
- `)&&(m="(?: "+m+")",y=" "+y,g++),r=new RegExp("^(?:"+m+")",v)),Db&&(r=new RegExp("^"+m+"$(?!\\s)",v)),Eb&&(n=s.lastIndex),o=Nt(s0,p?r:s,y),p?o?(o.input=wb(o.input,g),o[0]=wb(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:Eb&&o&&(s.lastIndex=s.global?o.index+o[0].length:n),Db&&o&&o.length>1&&Nt($te,o[0],r,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&d)for(o.groups=a=fI(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var Vd=jE;Zt({target:"RegExp",proto:!0,forced:/./.exec!==Vd},{exec:Vd});var A8=Function.prototype,sO=A8.apply,Wte=A8.bind,lO=A8.call,dI=typeof Reflect=="object"&&Reflect.apply||(Wte?lO.bind(sO):function(){return lO.apply(sO,arguments)}),Gte=ln("species"),Cb=RegExp.prototype,O8=function(e,t,r,n){var o=ln(e),i=!Ct(function(){var l={};return l[o]=function(){return 7},""[e](l)!=7}),a=i&&!Ct(function(){var l=!1,c=/a/;return e==="split"&&((c={}).constructor={},c.constructor[Gte]=function(){return c},c.flags="",c[o]=/./[o]),c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||r){var u=me(/./[o]),s=t(o,""[e],function(l,c,f,d,p){var v=me(l),m=c.exec;return m===Vd||m===Cb.exec?i&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:v(f,c,d)}:{done:!1}});Hd(String.prototype,e,s[0]),Hd(Cb,o,s[1])}n&&Ml(Cb[o],"sham",!0)},qte=me("".charAt),cO=me("".charCodeAt),Kte=me("".slice),Xte=function(e){return function(t,r){var n,o,i=Et(kn(t)),a=ac(r),u=i.length;return a<0||a>=u?"":(n=cO(i,a))<55296||n>56319||a+1===u||(o=cO(i,a+1))<56320||o>57343?qte(i,a):Kte(i,a,a+2)}},Yte=Xte(),B8=function(e,t,r){return t+(r?Yte(e,t).length:1)},Jte=Math.floor,Sb=me("".charAt),Zte=me("".replace),xb=me("".slice),Qte=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,ere=/\$([$&'`]|\d{1,2})/g,tre=function(e,t,r,n,o,i){var a=r+e.length,u=n.length,s=ere;return o!==void 0&&(o=Ip(o),s=Qte),Zte(i,s,function(l,c){var f;switch(Sb(c,0)){case"$":return"$";case"&":return e;case"`":return xb(t,0,r);case"'":return xb(t,a);case"<":f=o[xb(c,1,-1)];break;default:var d=+c;if(d===0)return l;if(d>u){var p=Jte(d/10);return p===0?l:p<=u?n[p-1]===void 0?Sb(c,1):n[p-1]+Sb(c,1):l}f=n[d-1]}return f===void 0?"":f})},rre=xe.TypeError,Wd=function(e,t){var r=e.exec;if(Sr(r)){var n=Nt(r,e,t);return n!==null&&tn(n),n}if(Zi(e)==="RegExp")return Nt(Vd,e,t);throw rre("RegExp#exec called on incompatible receiver")},PE=ln("replace"),nre=Math.max,ore=Math.min,ire=me([].concat),Ab=me([].push),fO=me("".indexOf),dO=me("".slice),are="a".replace(/./,"$0")==="$0",pO=!!/./[PE]&&/./[PE]("a","$0")==="";O8("replace",function(e,t,r){var n=pO?"$":"$0";return[function(o,i){var a=kn(this),u=o==null?void 0:Um(o,PE);return u?Nt(u,o,a,i):Nt(t,Et(a),o,i)},function(o,i){var a=tn(this),u=Et(o);if(typeof i=="string"&&fO(i,n)===-1&&fO(i,"$<")===-1){var s=r(t,a,u,i);if(s.done)return s.value}var l=Sr(i);l||(i=Et(i));var c=a.global;if(c){var f=a.unicode;a.lastIndex=0}for(var d=[];;){var p=Wd(a,u);if(p===null||(Ab(d,p),!c))break;Et(p[0])===""&&(a.lastIndex=B8(u,Rp(a.lastIndex),f))}for(var v,m="",g=0,y=0;y<d.length;y++){for(var h=Et((p=d[y])[0]),b=nre(ore(ac(p.index),u.length),0),w=[],D=1;D<p.length;D++)Ab(w,(v=p[D])===void 0?v:String(v));var S=p.groups;if(l){var C=ire([h],w,b,u);S!==void 0&&Ab(C,S);var O=Et(dI(i,void 0,C))}else O=tre(h,u,b,w,S,i);b>=g&&(m+=dO(u,g,b)+O,g=b+h.length)}return m+dO(u,g)}]},!!Ct(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"})||!are||pO);var NE=ln("unscopables"),IE=Array.prototype;IE[NE]==null&&ic.f(IE,NE,{configurable:!0,value:fI(null)});var pI=function(e){IE[NE][e]=!0},ure=Gm.find,hO=!0;"find"in[]&&Array(1).find(function(){hO=!1}),Zt({target:"Array",proto:!0,forced:hO},{find:function(e){return ure(this,e,arguments.length>1?arguments[1]:void 0)}}),pI("find");var sre=ln("match"),hI=function(e){var t;return vo(e)&&((t=e[sre])!==void 0?!!t:Zi(e)=="RegExp")},lre=xe.TypeError,cre=ln("species"),gI=function(e,t,r){var n=g8(t);n in e?ic.f(e,n,f8(0,r)):e[n]=r},fre=xe.Array,dre=Math.max,gO=function(e,t,r){for(var n=Wm(e),o=Ud(t,n),i=Ud(r===void 0?n:r,n),a=fre(dre(i-o,0)),u=0;o<i;o++,u++)gI(a,u,e[o]);return a.length=u,a},Bs=sI.UNSUPPORTED_Y,pre=Math.min,vI=[].push,hre=me(/./.exec),ks=me(vI),ef=me("".slice);O8("split",function(e,t,r){var n;return n="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=Et(kn(this)),u=i===void 0?4294967295:i>>>0;if(u===0)return[];if(o===void 0)return[a];if(!hI(o))return Nt(t,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=Nt(Vd,v,a))&&!((l=v.lastIndex)>p&&(ks(f,ef(a,p,s.index)),s.length>1&&s.index<a.length&&dI(vI,f,gO(s,1)),c=s[0].length,p=l,f.length>=u));)v.lastIndex===s.index&&v.lastIndex++;return p===a.length?!c&&hre(v,"")||ks(f,""):ks(f,ef(a,p)),f.length>u?gO(f,0,u):f}:"0".split(void 0,0).length?function(o,i){return o===void 0&&i===0?[]:Nt(t,this,o,i)}:t,[function(o,i){var a=kn(this),u=o==null?void 0:Um(o,e);return u?Nt(u,o,a,i):Nt(n,Et(a),o,i)},function(o,i){var a=tn(this),u=Et(o),s=r(n,a,u,i,n!==t);if(s.done)return s.value;var l=function(w,D){var S,C=tn(w).constructor;return C===void 0||(S=tn(C)[cre])==null?D:function(O){if(C8(O))return O;throw lre(XN(O)+" is not a constructor")}(S)}(a,RegExp),c=a.unicode,f=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(Bs?"g":"y"),d=new l(Bs?"^(?:"+a.source+")":a,f),p=i===void 0?4294967295:i>>>0;if(p===0)return[];if(u.length===0)return Wd(d,u)===null?[u]:[];for(var v=0,m=0,g=[];m<u.length;){d.lastIndex=Bs?0:m;var y,h=Wd(d,Bs?ef(u,m):u);if(h===null||(y=pre(Rp(d.lastIndex+(Bs?m:0)),u.length))===v)m=B8(u,m,c);else{if(ks(g,ef(u,v,m)),g.length===p)return g;for(var b=1;b<=h.length-1;b++)if(ks(g,h[b]),g.length===p)return g;m=v=y}}return ks(g,ef(u,v)),g}]},!!Ct(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var r="ab".split(e);return r.length!==2||r[0]!=="a"||r[1]!=="b"}),Bs);var RE=`
- \v\f\r \u2028\u2029\uFEFF`,vO=me("".replace),l0="["+RE+"]",gre=RegExp("^"+l0+l0+"*"),vre=RegExp(l0+l0+"*$"),mre=function(e){return function(t){var r=Et(kn(t));return 1&e&&(r=vO(r,gre,"")),2&e&&(r=vO(r,vre,"")),r}},yre={trim:mre(3)},bre=Vm.PROPER,wre=yre.trim;function k8(e){return k("<div>"+e+"</div>").children().filter(function(t){return t.tagName!=="BR"}).length===0}function uc(e){return e.length===0?"":e[0].outerHTML}function sc(e){return e.length?e[0].tagName.toLowerCase():""}function qn(e,t){for(var r="",n=(e.attr("style")||"").split(";"),o=n.length,i=0;i<o;i++){var a=n[i];if(a){var u=a.split(":");u[0].trim()===t&&(r=u[1].trim())}}return r}Zt({target:"String",proto:!0,forced:Ct(function(){return!!RE.trim()||"
".trim()!=="
"||bre&&RE.trim.name!=="trim"})},{trim:function(){return wre(this)}}),Zt({global:!0},{globalThis:xe}),Nv&&(k.fn.css=Nv),An&&(k.fn.append=An),nA&&(k.fn.prepend=nA),Dl&&(k.fn.addClass=Dl),Cl&&(k.fn.removeClass=Cl),Sl&&(k.fn.hasClass=Sl),Ao&&(k.fn.on=Ao),Qx&&(k.fn.off=Qx),ha&&(k.fn.focus=ha),xn&&(k.fn.attr=xn),Tv&&(k.fn.removeAttr=Tv),Al&&(k.fn.hide=Al),Pv&&(k.fn.show=Pv),Lv&&(k.fn.parents=Lv),xl&&(k.fn.dataset=xl),xo&&(k.fn.val=xo),Rv&&(k.fn.text=Rv),pa&&(k.fn.html=pa),kl&&(k.fn.children=kl),Fl&&(k.fn.remove=Fl),Bl&&(k.fn.find=Bl),_v&&(k.fn.width=_v),jv&&(k.fn.height=jv),tA&&(k.fn.filter=tA),Tl&&(k.fn.empty=Tl);var Ere={selector:"p:not([data-w-e-type])",parseElemHtml:function(e,t,r){var n=k(e);return(t=t.filter(function(o){return!!oe.isText(o)||!!r.isInline(o)})).length===0&&(t=[{text:n.text().replace(/\s+/gm," ")}]),{type:"paragraph",children:t}}},LE=function(e,t){return LE=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])},LE(e,t);/*! *****************************************************************************
- Copyright (c) Microsoft Corporation.
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted.
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THIS SOFTWARE.
- ***************************************************************************** */};function bt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}LE(e,t),e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var ma=function(){return ma=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ma.apply(this,arguments)};function Ba(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(l){try{s(n.next(l))}catch(c){i(c)}}function u(l){try{s(n.throw(l))}catch(c){i(c)}}function s(l){var c;l.done?o(l.value):(c=l.value,c instanceof r?c:new r(function(f){f(c)})).then(a,u)}s((n=n.apply(e,[])).next())})}function ka(e,t){var r,n,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(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=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++,n=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=t.call(e,a)}catch(f){c=[6,f],n=0}finally{r=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([s,l])}}}function mI(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Xe(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(t===void 0||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(u){o={error:u}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function mO(e){var t=Xe(E.nodes(e,{match:function(i){return e.children[0]===i},mode:"highest"}),1)[0];if(t==null)return!1;var r=t[0];if(!ce.isElement(r)||r.type==="paragraph"||Z.string(r)!=="")return!1;var n=r.children,o=n===void 0?[]:n;return!!oe.isText(o[0])&&(N.setNodes(e,{type:"paragraph"}),!0)}var Dre={renderElems:[Oee],elemsToHtml:[{type:"paragraph",elemToHtml:function(e,t){return t===""?"<p><br></p>":"<p>"+t+"</p>"}}],parseElemsHtml:[Ere],editorPlugin:function(e){var t=e.deleteBackward,r=e.deleteForward;e.insertText,e.insertBreak;var n=e;return n.deleteBackward=function(o){mO(n)||t(o)},n.deleteForward=function(o){mO(n)||r(o)},n}},Cre=/"/g,Sre=me("".replace),Wf=function(e,t,r,n){var o=Et(kn(e)),i="<"+t;return r!==""&&(i+=" "+r+'="'+Sre(Et(n),Cre,""")+'"'),i+">"+o+"</"+t+">"},Gf=function(e){return Ct(function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3})};function Ob(e,t){var r=t,n=e,o=n.bold,i=n.italic,a=n.underline;return o&&(r="<strong>"+r+"</strong>"),n.code&&(r="<code>"+r+"</code>"),i&&(r="<em>"+r+"</em>"),a&&(r="<u>"+r+"</u>"),n.through&&(r="<s>"+r+"</s>"),n.sub&&(r="<sub>"+r+"</sub>"),n.sup&&(r="<sup>"+r+"</sup>"),r}function Ua(e,t){return e.length!==0&&(!!e[0].matches(t)||e.find(t).length>0)}Zt({target:"String",proto:!0,forced:Gf("bold")},{bold:function(){return Wf(this,"b","","")}}),Zt({target:"String",proto:!0,forced:Gf("italics")},{italics:function(){return Wf(this,"i","","")}}),Zt({target:"String",proto:!0,forced:Gf("sub")},{sub:function(){return Wf(this,"sub","","")}}),Zt({target:"String",proto:!0,forced:Gf("sup")},{sup:function(){return Wf(this,"sup","","")}});var yO={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},Bb=v8("span").classList,bO=Bb&&Bb.constructor&&Bb.constructor.prototype,xre=bO===Object.prototype?void 0:bO,yI=function(e,t){var r=[][e];return!!r&&Ct(function(){r.call(null,t||function(){throw 1},1)})},Are=Gm.forEach,kb=yI("forEach")?[].forEach:function(e){return Are(this,e,arguments.length>1?arguments[1]:void 0)},bI=function(e){if(e&&e.forEach!==kb)try{Ml(e,"forEach",kb)}catch{e.forEach=kb}};for(var Fb in yO)yO[Fb]&&bI(xe[Fb]&&xe[Fb].prototype);function wI(e,t){return e.selection==null||!!Xe(E.nodes(e,{match:function(r){return A.getNodeType(r)==="pre"||!!E.isVoid(e,r)},universal:!0}),1)[0]}function Ore(e,t){Object.keys(t).forEach(function(r){r!=="text"&&E.removeMark(e,r)})}bI(xre),Zt({target:"Object",stat:!0,forced:Ct(function(){fl(1)})},{keys:function(e){return fl(Ip(e))}});var as=function(){function e(){this.marksNeedToRemove=[],this.tag="button"}return e.prototype.getValue=function(t){var r=this.mark,n=E.marks(t);return n?n[r]:!!Xe(E.nodes(t,{match:function(o){return o[r]===!0}}),1)[0]},e.prototype.isActive=function(t){return!!this.getValue(t)},e.prototype.isDisabled=function(t){return wI(t,this.mark)},e.prototype.exec=function(t,r){var n=this.mark,o=this.marksNeedToRemove;r?t.removeMark(n):(t.addMark(n,!0),o&&o.forEach(function(i){return t.removeMark(i)}))},e}(),Bre='<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>',kre='<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>',Fre='<svg viewBox="0 0 1024 1024"><path d="M896 64v64h-128L448 896h128v64H128v-64h128L576 128h-128V64z"></path></svg>',Tre='<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>',_re='<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>',EI='<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>',DI='<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>',jre='<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>',Pre='<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>',Nre='<svg viewBox="0 0 1024 1024"><path d="M64 512h384v128h-128V1024h-128V640h-128z m896-256H708.2496v768h-136.4992V256H320V128h640z"></path></svg>',Ire='<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>',Rre='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m256-512v384l-256-192z"></path></svg>',Lre='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',Mre='<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>',zre='<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>',$re='<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>',Hre='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z"></path></svg>',Ure='<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>',Vre='<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>',Wre=function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.mark="bold",r.title=Q("textStyle.bold"),r.iconSvg=Bre,r.hotkey="mod+b",r}return bt(t,e),t}(as),Gre=function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.mark="code",r.title=Q("textStyle.code"),r.iconSvg=_re,r.hotkey="mod+e",r}return bt(t,e),t}(as),qre=function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.mark="italic",r.title=Q("textStyle.italic"),r.iconSvg=Fre,r.hotkey="mod+i",r}return bt(t,e),t}(as),Kre=function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.mark="through",r.title=Q("textStyle.through"),r.iconSvg=Tre,r.hotkey="mod+shift+x",r}return bt(t,e),t}(as),Xre=function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.mark="underline",r.title=Q("textStyle.underline"),r.iconSvg=kre,r.hotkey="mod+u",r}return bt(t,e),t}(as),Yre=function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.mark="sub",r.marksNeedToRemove=["sup"],r.title=Q("textStyle.sub"),r.iconSvg=Vre,r.hotkey="",r}return bt(t,e),t}(as),Jre=function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.mark="sup",r.marksNeedToRemove=["sub"],r.title=Q("textStyle.sup"),r.iconSvg=Ure,r.hotkey="",r}return bt(t,e),t}(as),Zre=function(){function e(){this.title=Q("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 e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return wI(t)},e.prototype.exec=function(t,r){var n,o,i=E.nodes(t,{match:function(s){return oe.isText(s)},universal:!0});try{for(var a=mI(i),u=a.next();!u.done;u=a.next())Ore(t,u.value[0])}catch(s){n={error:s}}finally{try{u&&!u.done&&(o=a.return)&&o.call(a)}finally{if(n)throw n.error}}},e}(),Qre={renderStyle:function(e,t){var r=e,n=r.bold,o=r.italic,i=r.underline,a=r.code,u=r.through,s=r.sub,l=r.sup,c=t;return n&&(c=be("strong",null,c)),a&&(c=be("code",null,c)),o&&(c=be("em",null,c)),i&&(c=be("u",null,c)),u&&(c=be("s",null,c)),s&&(c=be("sub",null,c)),l&&(c=be("sup",null,c)),c},menus:[{key:"bold",factory:function(){return new Wre}},{key:"underline",factory:function(){return new Xre}},{key:"italic",factory:function(){return new qre}},{key:"through",factory:function(){return new Kre}},{key:"code",factory:function(){return new Gre}},{key:"sub",factory:function(){return new Yre}},{key:"sup",factory:function(){return new Jre}},{key:"clearStyle",factory:function(){return new Zre}}],styleToHtml:function(e,t){if(!oe.isText(e))return t;if(k8(t))return Ob(e,t);var r=k(t);if(sc(r)==="br")return Ob(e,"<br>");var n=r.html();return n=Ob(e,n),r.html(n),uc(r)},parseStyleHtml:function(e,t,r){var n=k(e);if(!oe.isText(t))return t;var o=t;return Ua(n,"b,strong")&&(o.bold=!0),Ua(n,"i,em")&&(o.italic=!0),Ua(n,"u")&&(o.underline=!0),Ua(n,"s,strike")&&(o.through=!0),Ua(n,"sub")&&(o.sub=!0),Ua(n,"sup")&&(o.sup=!0),Ua(n,"code")&&(o.code=!0),o}};function Mp(e){return function(t,r,n){return be("h"+e,null,r)}}var ene={type:"header1",renderElem:Mp(1)},tne={type:"header2",renderElem:Mp(2)},rne={type:"header3",renderElem:Mp(3)},nne={type:"header4",renderElem:Mp(4)},one={type:"header5",renderElem:Mp(5)},ine=Vm.PROPER,ME=RegExp.prototype,CI=ME.toString,ane=me(uI),une=Ct(function(){return CI.call({source:"a",flags:"b"})!="/a/b"}),sne=ine&&CI.name!="toString";(une||sne)&&Hd(RegExp.prototype,"toString",function(){var e=tn(this),t=Et(e.source),r=e.flags;return"/"+t+"/"+Et(r===void 0&&KN(ME,e)&&!("flags"in ME)?ane(e):r)},{unsafe:!0});var Tb,lne=xe.TypeError,SI=function(e){if(hI(e))throw lne("The method doesn't accept regular expressions");return e},cne=ln("match"),xI=function(e){var t=/./;try{"/./"[e](t)}catch{try{return t[cne]=!1,"/./"[e](t)}catch{}}return!1},fne=m8.f,wO=me("".startsWith),dne=me("".slice),pne=Math.min,EO=xI("startsWith");function AI(e){var t=Xe(E.nodes(e,{match:function(o){return A.getNodeType(o).startsWith("header")},universal:!0}),1),r=t[0];if(r==null)return"paragraph";var n=Xe(r,1)[0];return A.getNodeType(n)}function OI(e){return e.selection==null||!Xe(E.nodes(e,{match:function(t){var r=A.getNodeType(t);return r==="paragraph"||!!r.startsWith("header")},universal:!0,mode:"highest"}),1)[0]}function BI(e,t){t&&N.setNodes(e,{type:t})}Zt({target:"String",proto:!0,forced:!(!EO&&(Tb=fne(String.prototype,"startsWith"),Tb&&!Tb.writable)||EO)},{startsWith:function(e){var t=Et(kn(this));SI(e);var r=Rp(pne(arguments.length>1?arguments[1]:void 0,t.length)),n=Et(e);return wO?wO(t,n,r):dne(t,r,r+n.length)===n}});var hne=function(){function e(){this.title=Q("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 e.prototype.getOptions=function(t){var r=[{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:Q("header.text")}],n=this.getValue(t).toString();return r.forEach(function(o){o.value===n?o.selected=!0:delete o.selected}),r},e.prototype.isActive=function(t){return!1},e.prototype.getValue=function(t){return AI(t)},e.prototype.isDisabled=function(t){return OI(t)},e.prototype.exec=function(t,r){BI(t,r.toString())},e}(),zp=function(){function e(){this.tag="button"}return e.prototype.getValue=function(t){return AI(t)},e.prototype.isActive=function(t){return this.getValue(t)===this.type},e.prototype.isDisabled=function(t){return OI(t)},e.prototype.exec=function(t,r){var n=this.type;BI(t,r===n?"paragraph":n)},e}(),gne=function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.title="H1",r.type="header1",r}return bt(t,e),t}(zp),vne=function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.title="H2",r.type="header2",r}return bt(t,e),t}(zp),mne=function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.title="H3",r.type="header3",r}return bt(t,e),t}(zp),yne=function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.title="H4",r.type="header4",r}return bt(t,e),t}(zp),bne=function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.title="H5",r.type="header5",r}return bt(t,e),t}(zp),wne={key:"headerSelect",factory:function(){return new hne}},Ene={key:"header1",factory:function(){return new gne}},Dne={key:"header2",factory:function(){return new vne}},Cne={key:"header3",factory:function(){return new mne}},Sne={key:"header4",factory:function(){return new yne}},xne={key:"header5",factory:function(){return new bne}};function tf(e){return function(t,r){return"<h"+e+">"+r+"</h"+e+">"}}function rf(e){return function(t,r,n){var o=k(t);return(r=r.filter(function(i){return!!oe.isText(i)||!!n.isInline(i)})).length===0&&(r=[{text:o.text().replace(/\s+/gm," ")}]),{type:"header"+e,children:r}}}var Ane={renderElems:[ene,tne,rne,nne,one],elemsToHtml:[{type:"header1",elemToHtml:tf(1)},{type:"header2",elemToHtml:tf(2)},{type:"header3",elemToHtml:tf(3)},{type:"header4",elemToHtml:tf(4)},{type:"header5",elemToHtml:tf(5)}],parseElemsHtml:[{selector:"h1:not([data-w-e-type])",parseElemHtml:rf(1)},{selector:"h2:not([data-w-e-type])",parseElemHtml:rf(2)},{selector:"h3:not([data-w-e-type])",parseElemHtml:rf(3)},{selector:"h4:not([data-w-e-type])",parseElemHtml:rf(4)},{selector:"h5:not([data-w-e-type])",parseElemHtml:rf(5)}],menus:[wne,Ene,Dne,Cne,Sne,xne],editorPlugin:function(e){var t=e.insertBreak;e.insertNode;var r=e;return r.insertBreak=function(){var n=Xe(E.nodes(r,{match:function(o){return A.getNodeType(o).startsWith("header")},universal:!0}),1)[0];n&&A.isSelectionAtLineEnd(e,n[1])?N.insertNodes(r,{type:"paragraph",children:[{text:""}]},{mode:"highest"}):t()},r}},Fs=Object.assign,DO=Object.defineProperty,One=me([].concat),CO=!Fs||Ct(function(){if(Yn&&Fs({b:1},Fs(DO({},"a",{enumerable:!0,get:function(){DO(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var e={},t={},r=Symbol(),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach(function(o){t[o]=o}),Fs({},e)[r]!=7||fl(Fs({},t)).join("")!=n})?function(e,t){for(var r=Ip(e),n=arguments.length,o=1,i=nI.f,a=GN.f;n>o;)for(var u,s=Hm(arguments[o++]),l=i?One(fl(s),i(s)):fl(s),c=l.length,f=0;c>f;)u=l[f++],Yn&&!Nt(a,s,u)||(r[u]=s[u]);return r}:Fs;function Gu(e,t){e.data==null&&(e.data={});var r=e.data;r.style==null&&(r.style={}),Object.assign(r.style,t)}Zt({target:"Object",stat:!0,forced:Object.assign!==CO},{assign:CO});var Bne={selector:"font",preParseHtml:function(e){var t=k(e);if(sc(t)!=="font")return e;var r=t.attr("color")||"";return r&&(t.removeAttr("color"),t.css("color",r)),t[0]}},kI=function(){function e(){this.tag="button",this.showDropPanel=!0,this.$content=null}return e.prototype.exec=function(t,r){},e.prototype.getValue=function(t){var r=this.mark,n=E.marks(t);return n&&n[r]?n[r]:""},e.prototype.isActive=function(t){return!!this.getValue(t)},e.prototype.isDisabled=function(t){return t.selection==null||!!Xe(E.nodes(t,{match:function(r){return A.getNodeType(r)==="pre"||!!E.isVoid(t,r)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(t){var r=this.mark;if(this.$content==null){var n=k('<ul class="w-e-panel-content-color"></ul>');n.on("click","li",function(l){var c=l.target;if(c!=null&&(l.preventDefault(),t.selection!=null)){var f=k(c).attr("data-value");f==="0"?E.removeMark(t,r):E.addMark(t,r,f)}}),this.$content=n}var o=this.$content;if(o==null)return document.createElement("ul");o.empty();var i=this.getValue(t),a=t.getMenuConfig(r).colors;(a===void 0?[]:a).forEach(function(l){var c=k('<div class="color-block" data-value="'+l+'"></div>');c.css("background-color",l);var f=k('<li data-value="'+l+'"></li>');i===l&&f.addClass("active"),f.append(c),o.append(f)});var u="";r==="color"&&(u=Q("color.default")),r==="bgColor"&&(u=Q("color.clear"));var s=k(`
- <li data-value="0" class="clear">
- <svg viewBox="0 0 1024 1024"><path d="M236.8 128L896 787.2V128H236.8z m614.4 704L192 172.8V832h659.2zM192 64h704c38.4 0 64 25.6 64 64v704c0 38.4-25.6 64-64 64H192c-38.4 0-64-25.6-64-64V128c0-38.4 25.6-64 64-64z"></path></svg>
- `+u+`
- </li>
- `);return o.prepend(s),o[0]},e}(),kne=function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.title=Q("color.color"),r.iconSvg=jre,r.mark="color",r}return bt(t,e),t}(kI),Fne=function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.title=Q("color.bgColor"),r.iconSvg=Pre,r.mark="bgColor",r}return bt(t,e),t}(kI),SO=["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)"],Tne={renderStyle:function(e,t){var r=e,n=r.color,o=r.bgColor,i=t;return n&&Gu(i,{color:n}),o&&Gu(i,{backgroundColor:o}),i},styleToHtml:function(e,t){if(!oe.isText(e))return t;var r,n=e,o=n.color,i=n.bgColor;return o||i?((k8(t)||sc(r=k(t))!=="span")&&(r=k("<span>"+t+"</span>")),o&&r.css("color",o),i&&r.css("background-color",i),uc(r)):t},preParseHtml:[Bne],parseStyleHtml:function(e,t,r){var n=k(e);if(!oe.isText(t))return t;var o=t,i=qn(n,"color");i&&(o.color=i);var a=qn(n,"background-color");return a||(a=qn(n,"background")),a&&(o.bgColor=a),o},menus:[{key:"color",factory:function(){return new kne},config:{colors:SO}},{key:"bgColor",factory:function(){return new Fne},config:{colors:SO}}]},_ne=/^(?:\w+:)?\/\/(\S+)$/,jne=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,Pne=/^[^\s\.]+\.\S{2,}$/,Nne=tI.includes;function qm(e){return e===void 0&&(e="r"),e+"-"+Jj()}function F8(e){return e.replace(/</g,"<").replace(/>/g,">")}function FI(e,t,r,n){return Ba(this,void 0,void 0,function(){var o,i;return ka(this,function(a){switch(a.label){case 0:return(o=t.getMenuConfig(e).checkLink)?[4,o(r,n)]:[3,2];case 1:if(typeof(i=a.sent())=="string")return t.alert(i,"error"),[2,!1];if(i==null)return[2,!1];a.label=2;case 2:return[2,!0]}})})}function TI(e,t,r){return Ba(this,void 0,void 0,function(){var n;return ka(this,function(o){switch(o.label){case 0:return(n=t.getMenuConfig(e).parseLinkUrl)?[4,n(r)]:[3,2];case 1:return[2,o.sent()];case 2:return[2,r]}})})}function T8(e){return e.selection==null||!!A.getSelectedElems(e).some(function(t){var r=t.type;return!!e.isVoid(t)||!!["pre","code","link"].includes(r)||void 0})}function _b(e,t){return{type:"link",url:F8(e),children:t?[{text:t}]:[]}}function _I(e,t,r){return Ba(this,void 0,void 0,function(){var n,o,i;return ka(this,function(a){switch(a.label){case 0:return r?(t||(t=r),e.restoreSelection(),T8(e)?[2]:[4,FI("insertLink",e,t,r)]):[2];case 1:return a.sent()?[4,TI("insertLink",e,r)]:[2];case 2:return n=a.sent(),(o=e.selection)==null||(R.isCollapsed(o)?(e.insertText(" "),i=_b(n,t),N.insertNodes(e,i),e.insertFragment([{text:" "}])):E.string(e,o)!==t?(e.deleteFragment(),i=_b(n,t),N.insertNodes(e,i)):(i=_b(n),N.wrapNodes(e,i,{split:!0}),N.collapse(e,{edge:"end"}))),[2]}})})}Zt({target:"Array",proto:!0},{includes:function(e){return Nne(this,e,arguments.length>1?arguments[1]:void 0)}}),pI("includes");var Ine={type:"link",renderElem:function(e,t,r){var n=e,o=n.url,i=n.target;return be("a",{href:o,target:i===void 0?"_blank":i},t)}},Rne={selector:"a:not([data-w-e-type])",parseElemHtml:function(e,t,r){var n=k(e);return(t=t.filter(function(o){return!!oe.isText(o)||!!r.isInline(o)})).length===0&&(t=[{text:n.text().replace(/\s+/gm," ")}]),{type:"link",url:n.attr("href")||"",target:n.attr("target")||"",children:t}}};function jb(){return qm("w-e-insert-link")}var Lne=function(){function e(){this.title=Q("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=jb(),this.urlInputId=jb(),this.buttonId=jb()}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,r){},e.prototype.isDisabled=function(t){return T8(t)},e.prototype.getModalPositionNode=function(t){return null},e.prototype.getModalContentElem=function(t){var r=t.selection,n=this,o=n.textInputId,i=n.urlInputId,a=n.buttonId,u=Xe(en(Q("link.text"),o),2),s=u[0],l=k(u[1]),c=Xe(en(Q("link.url"),i),2),f=c[0],d=k(c[1]),p=Xe(nc(a,Q("common.ok")),1)[0];if(this.$content==null){var v=k("<div></div>");v.on("click","#"+a,function(y){y.preventDefault();var h=v.find("#"+o).val(),b=v.find("#"+i).val();_I(t,h,b),t.hidePanelOrModal()}),this.$content=v}var m=this.$content;if(m.empty(),m.append(s),m.append(f),m.append(p),r==null||R.isCollapsed(r))l.val("");else{var g=E.string(t,r);l.val(g)}return d.val(""),setTimeout(function(){l.focus()}),m[0]},e}();function xO(){return qm("w-e-update-link")}var Mne=function(){function e(){this.title=Q("link.edit"),this.iconSvg=EI,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.urlInputId=xO(),this.buttonId=xO()}return e.prototype.getSelectedLinkElem=function(t){var r=A.getSelectedNodeByType(t,"link");return r??null},e.prototype.getValue=function(t){var r=this.getSelectedLinkElem(t);return r&&r.url||""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,r){},e.prototype.isDisabled=function(t){return t.selection==null||this.getSelectedLinkElem(t)==null},e.prototype.getModalPositionNode=function(t){return A.getSelectedNodeByType(t,"link")},e.prototype.getModalContentElem=function(t){var r=this.urlInputId,n=this.buttonId,o=Xe(en(Q("link.url"),r),2),i=o[0],a=k(o[1]),u=Xe(nc(n,Q("common.ok")),1)[0];if(this.$content==null){var s=k("<div></div>");s.on("click","button",function(f){f.preventDefault(),t.restoreSelection();var d=A.getSelectedNodeByType(t,"link"),p=d?Z.string(d):"",v=s.find("#"+r).val();(function(m,g,y){Ba(this,void 0,void 0,function(){var h,b;return ka(this,function(w){switch(w.label){case 0:return y?[4,FI("editLink",m,g,y)]:[2];case 1:return w.sent()?[4,TI("editLink",m,y)]:[2];case 2:return h=w.sent(),b={url:F8(h)},N.setNodes(m,b,{match:function(D){return A.checkNodeType(D,"link")}}),[2]}})})})(t,p,v),t.hidePanelOrModal()}),this.$content=s}var l=this.$content;l.empty(),l.append(i),l.append(u);var c=this.getValue(t);return a.val(c),setTimeout(function(){a.focus()}),l[0]},e}(),zne=function(){function e(){this.title=Q("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 e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||A.getSelectedNodeByType(t,"link")==null},e.prototype.exec=function(t,r){this.isDisabled(t)||N.unwrapNodes(t,{match:function(n){return A.checkNodeType(n,"link")}})},e}(),$ne=function(){function e(){this.title=Q("link.view"),this.iconSvg=DI,this.tag="button"}return e.prototype.getSelectedLinkElem=function(t){var r=A.getSelectedNodeByType(t,"link");return r??null},e.prototype.getValue=function(t){var r=this.getSelectedLinkElem(t);return r&&r.url||""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||this.getSelectedLinkElem(t)==null},e.prototype.exec=function(t,r){if(!this.isDisabled(t)){if(!r||typeof r!="string")throw new Error("View link failed, link url is '"+r+"'");window.open(r,"_blank")}},e}(),AO={checkLink:function(e,t){return!0},parseLinkUrl:function(e){return e}},Hne={renderElems:[Ine],elemsToHtml:[{type:"link",elemToHtml:function(e,t){var r=e,n=r.url,o=r.target;return'<a href="'+n+'" target="'+(o===void 0?"_blank":o)+'">'+t+"</a>"}}],parseElemsHtml:[Rne],menus:[{key:"insertLink",factory:function(){return new Lne},config:AO},{key:"editLink",factory:function(){return new Mne},config:AO},{key:"unLink",factory:function(){return new zne}},{key:"viewLink",factory:function(){return new $ne}}],editorPlugin:function(e){var t=e.isInline,r=e.insertData,n=e.normalizeNode;e.insertNode,e.insertText;var o=e;return o.isInline=function(i){return i.type==="link"||t(i)},o.insertData=function(i){var a=i.getData("text/plain");if(function(l){if(typeof l!="string")return!1;var c=l.match(_ne);if(!c)return!1;var f=c[1];return!(!f||!jne.test(f)&&!Pne.test(f))}(a)){if(!T8(o)){var u=o.selection;if(u!=null){var s=E.string(o,u);_I(o,s,a)}}}else r(i)},o.normalizeNode=function(i){var a=Xe(i,2),u=a[0],s=a[1];return A.getNodeType(u)!=="link"?n([u,s]):Z.string(u)===""?N.removeNodes(o,{at:s}):n([u,s])},o}},Une=me(1 .valueOf),Vne=xe.RangeError,Wne=xe.RangeError,jI=xe.String,PI=Math.floor,zE=me(function(e){var t=Et(kn(this)),r="",n=ac(e);if(n<0||n==1/0)throw Vne("Wrong number of repetitions");for(;n>0;(n>>>=1)&&(t+=t))1&n&&(r+=t);return r}),OO=me("".slice),nf=me(1 .toFixed),rl=function(e,t,r){return t===0?r:t%2==1?rl(e,t-1,r*e):rl(e*e,t/2,r)},Ts=function(e,t,r){for(var n=-1,o=r;++n<6;)o+=t*e[n],e[n]=o%1e7,o=PI(o/1e7)},Pb=function(e,t){for(var r=6,n=0;--r>=0;)n+=e[r],e[r]=PI(n/t),n=n%t*1e7},BO=function(e){for(var t=6,r="";--t>=0;)if(r!==""||t===0||e[t]!==0){var n=jI(e[t]);r=r===""?n:r+zE("0",7-n.length)+n}return r};function kO(e,t){return"w-e-image-container-"+A.findKey(e,t).id}Zt({target:"Number",proto:!0,forced:Ct(function(){return nf(8e-5,3)!=="0.000"||nf(.9,0)!=="1"||nf(1.255,2)!=="1.25"||nf(0xde0b6b3a7640080,0)!=="1000000000000000128"})||!Ct(function(){nf({})})},{toFixed:function(e){var t,r,n,o,i=Une(this),a=ac(e),u=[0,0,0,0,0,0],s="",l="0";if(a<0||a>20)throw Wne("Incorrect fraction digits");if(i!=i)return"NaN";if(i<=-1e21||i>=1e21)return jI(i);if(i<0&&(s="-",i=-i),i>1e-21)if(r=(t=function(c){for(var f=0,d=c;d>=4096;)f+=12,d/=4096;for(;d>=2;)f+=1,d/=2;return f}(i*rl(2,69,1))-69)<0?i*rl(2,-t,1):i/rl(2,t,1),r*=4503599627370496,(t=52-t)>0){for(Ts(u,0,r),n=a;n>=7;)Ts(u,1e7,0),n-=7;for(Ts(u,rl(10,n,1),0),n=t-1;n>=23;)Pb(u,1<<23),n-=23;Pb(u,1<<n),Ts(u,1,1),Pb(u,2),l=BO(u)}else Ts(u,0,r),Ts(u,1<<-t,0),l=BO(u)+zE("0",a);return a>0?s+((o=l.length)<=a?"0."+zE("0",a-o)+l:OO(l,0,o-a)+"."+OO(l,o-a)):s+l}});var Gne={type:"image",renderElem:function(e,t,r){var n=e,o=n.src,i=n.alt,a=i===void 0?"":i,u=n.href,s=u===void 0?"":u,l=n.style,c=l===void 0?{}:l,f=c.width,d=f===void 0?"":f,p=c.height,v=p===void 0?"":p,m=A.isNodeSelected(r,e),g={};d&&(g.width="100%"),v&&(g.height="100%");var y=be("img",{style:g,src:o,alt:a,"data-href":s}),h=r.isDisabled();return m&&!h?function(b,w,D,S){var C=k("body"),O=kO(b,w),F=S.width,L=S.height,H=0,M=0,K=0,V=!1,G=null;function q(ae){G=function(){var j=k("#"+O);if(j.length===0)throw new Error("Cannot find image container elem");return j}(),H=ae;var B=G.find("img");if(B.length===0)throw new Error("Cannot find image elem");M=B.width(),K=B.height(),C.on("mousemove",re),C.on("mouseup",se);var x=A.getHoverbar(b);x&&x.hideAndClean()}var re=zu(function(ae){ae.preventDefault();var B=ae.clientX,x=M+(V?H-B:B-H),j=K*(x/M);G!=null&&(x<=15||j<=15||(G.css("width",x+"px"),G.css("height",j+"px")))},100);function se(ae){if(C.off("mousemove",re),G!=null){var B=G.width().toFixed(2),x=G.height().toFixed(2),j={style:ma(ma({},w.style),{width:B+"px",height:x+"px"})};N.setNodes(b,j,{at:A.findPath(b,w)}),C.off("mouseup",se)}}var ue={};return F&&(ue.width=F),L&&(ue.height=L),be("div",{id:O,style:ue,className:"w-e-image-container w-e-selected-image-container",on:{mousedown:function(ae){var B=k(ae.target);B.hasClass("w-e-image-dragger")&&(ae.preventDefault(),(B.hasClass("left-top")||B.hasClass("left-bottom"))&&(V=!0),q(ae.clientX))}}},D,be("div",{className:"w-e-image-dragger left-top"}),be("div",{className:"w-e-image-dragger right-top"}),be("div",{className:"w-e-image-dragger left-bottom"}),be("div",{className:"w-e-image-dragger right-bottom"}))}(r,e,y,{width:d,height:v}):function(b,w,D,S){var C=S.width,O=S.height,F={};return C&&(F.width=C),O&&(F.height=O),be("div",{id:kO(b,w),style:F,className:"w-e-image-container"},D)}(r,e,y,{width:d,height:v})}},qne={selector:"img:not([data-w-e-type])",parseElemHtml:function(e,t,r){var n=k(e),o=n.attr("data-href")||"";return o=decodeURIComponent(o),{type:"image",src:n.attr("src")||"",alt:n.attr("alt")||"",href:o,style:{width:qn(n,"width"),height:qn(n,"height")},children:[{text:""}]}}};function NI(e,t,r,n,o){return n===void 0&&(n=""),o===void 0&&(o=""),Ba(this,void 0,void 0,function(){var i,a;return ka(this,function(u){switch(u.label){case 0:return(i=t.getMenuConfig(e).checkImage)?[4,i(r,n,o)]:[3,2];case 1:if(typeof(a=u.sent())=="string")return t.alert(a,"error"),[2,!1];if(a==null)return[2,!1];u.label=2;case 2:return[2,!0]}})})}function II(e,t,r){return Ba(this,void 0,void 0,function(){var n;return ka(this,function(o){switch(o.label){case 0:return(n=t.getMenuConfig(e).parseImageSrc)?[4,n(r)]:[3,2];case 1:return[2,o.sent()];case 2:return[2,r]}})})}function Cu(e,t,r,n){return r===void 0&&(r=""),n===void 0&&(n=""),Ba(this,void 0,void 0,function(){var o,i,a;return ka(this,function(u){switch(u.label){case 0:return[4,NI("insertImage",e,t,r,n)];case 1:return u.sent()?[4,II("insertImage",e,t)]:[2];case 2:return o=u.sent(),i={type:"image",src:F8(o),href:n,alt:r,style:{},children:[{text:""}]},e.selection===null&&e.restoreSelection(),A.getSelectedNodeByType(e,"image")&&e.move(1),Km(e)||(N.insertNodes(e,i),(a=e.getMenuConfig("insertImage").onInsertedImage)&&a(i)),[2]}})})}function Km(e){var t=e.selection;return t==null||!R.isCollapsed(t)||!!Xe(E.nodes(e,{match:function(r){var n=A.getNodeType(r);return n==="code"||n==="pre"||n==="link"||n==="list-item"||!!n.startsWith("header")||n==="blockquote"||!!E.isVoid(e,r)},universal:!0}),1)[0]}function Wh(){return qm("w-e-insert-image")}var Kne=function(){function e(){this.title=Q("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=Wh(),this.altInputId=Wh(),this.hrefInputId=Wh(),this.buttonId=Wh()}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,r){},e.prototype.isDisabled=function(t){return Km(t)},e.prototype.getModalPositionNode=function(t){return null},e.prototype.getModalContentElem=function(t){var r=this,n=this,o=n.srcInputId,i=n.altInputId,a=n.hrefInputId,u=n.buttonId,s=Xe(en(Q("image.src"),o),2),l=s[0],c=k(s[1]),f=Xe(en(Q("image.desc"),i),2),d=f[0],p=k(f[1]),v=Xe(en(Q("image.link"),a),2),m=v[0],g=k(v[1]),y=Xe(nc(u,Q("common.ok")),1)[0];if(this.$content==null){var h=k("<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();r.insertImage(t,D,S,C),t.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]},e.prototype.insertImage=function(t,r,n,o){n===void 0&&(n=""),o===void 0&&(o=""),r&&(t.restoreSelection(),this.isDisabled(t)||Cu(t,r,n,o))},e}(),Xne=function(){function e(){this.title=Q("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 e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||A.getSelectedNodeByType(t,"image")==null},e.prototype.exec=function(t,r){this.isDisabled(t)||N.removeNodes(t,{match:function(n){return A.checkNodeType(n,"image")}})},e}();function Gh(){return qm("w-e-edit-image")}var Yne=function(){function e(){this.title=Q("image.edit"),this.iconSvg=EI,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=Gh(),this.altInputId=Gh(),this.hrefInputId=Gh(),this.buttonId=Gh()}return e.prototype.getValue=function(t){return""},e.prototype.getImageNode=function(t){return A.getSelectedNodeByType(t,"image")},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,r){},e.prototype.isDisabled=function(t){var r=t.selection;return r==null||!R.isCollapsed(r)||A.getSelectedNodeByType(t,"image")==null},e.prototype.getModalPositionNode=function(t){return this.getImageNode(t)},e.prototype.getModalContentElem=function(t){var r=this,n=this,o=n.srcInputId,i=n.altInputId,a=n.hrefInputId,u=n.buttonId,s=this.getImageNode(t);if(s==null)throw new Error("Not found selected image node");var l=Xe(en(Q("image.src"),o),2),c=l[0],f=k(l[1]),d=Xe(en(Q("image.desc"),i),2),p=d[0],v=k(d[1]),m=Xe(en(Q("image.link"),a),2),g=m[0],y=k(m[1]),h=Xe(nc(u,Q("common.ok")),1)[0];if(this.$content==null){var b=k("<div></div>");b.on("click","#"+u,function(H){H.preventDefault();var M=b.find("#"+o).val(),K=b.find("#"+i).val(),V=b.find("#"+a).val();r.updateImage(t,M,K,V),t.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,O=C===void 0?"":C,F=D.href,L=F===void 0?"":F;return f.val(S),v.val(O),y.val(L),setTimeout(function(){f.focus()}),w[0]},e.prototype.updateImage=function(t,r,n,o,i){n===void 0&&(n=""),o===void 0&&(o=""),i===void 0&&(i={}),r&&(t.restoreSelection(),this.isDisabled(t)||function(a,u,s,l,c){s===void 0&&(s=""),l===void 0&&(l=""),c===void 0&&(c={}),Ba(this,void 0,void 0,function(){var f,d,p,v,m,g;return ka(this,function(y){switch(y.label){case 0:return[4,NI("editImage",a,u,s,l)];case 1:return y.sent()?[4,II("editImage",a,u)]:[2];case 2:return f=y.sent(),(d=A.getSelectedNodeByType(a,"image"))==null||(p=d.style,v={src:f,alt:s,href:l,style:ma(ma({},p===void 0?{}:p),c)},N.setNodes(a,v,{match:function(h){return A.checkNodeType(h,"image")}}),m=A.getSelectedNodeByType(a,"image"),(g=a.getMenuConfig("editImage").onUpdatedImage)&&g(m)),[2]}})})}(t,r,n,o,i))},e}(),Jne=function(){function e(){this.title=Q("image.viewLink"),this.iconSvg=DI,this.tag="button"}return e.prototype.getValue=function(t){var r=A.getSelectedNodeByType(t,"image");return r&&r.href||""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||!this.getValue(t)},e.prototype.exec=function(t,r){if(!this.isDisabled(t)){if(!r||typeof r!="string")throw new Error("View image link failed, image.href is '"+r+"'");window.open(r,"_blank")}},e}(),_8=function(){function e(){this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.getSelectedNode=function(t){return A.getSelectedNodeByType(t,"image")},e.prototype.isDisabled=function(t){return t.selection==null||this.getSelectedNode(t)==null},e.prototype.exec=function(t,r){if(!this.isDisabled(t)){var n=this.getSelectedNode(t);if(n!=null){var o=A.getHoverbar(t);o&&o.hideAndClean();var i=n.style,a={style:ma(ma({},i===void 0?{}:i),{width:this.value,height:""})};N.setNodes(t,a,{match:function(u){return A.checkNodeType(u,"image")}})}}},e}(),Zne=function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.title="30%",r.value="30%",r}return bt(t,e),t}(_8),Qne=function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.title="50%",r.value="50%",r}return bt(t,e),t}(_8),eoe=function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.title="100%",r.value="100%",r}return bt(t,e),t}(_8),FO={onInsertedImage:function(e){},onUpdatedImage:function(e){},checkImage:function(e,t,r){return!0},parseImageSrc:function(e){return e}},toe={renderElems:[Gne],elemsToHtml:[{type:"image",elemToHtml:function(e,t){var r=e,n=r.src,o=r.alt,i=o===void 0?"":o,a=r.href,u=a===void 0?"":a,s=r.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="'+n+'" alt="'+i+'" data-href="'+u+'" style="'+v+'"/>'}}],parseElemsHtml:[qne],menus:[{key:"insertImage",factory:function(){return new Kne},config:FO},{key:"deleteImage",factory:function(){return new Xne}},{key:"editImage",factory:function(){return new Yne},config:FO},{key:"viewImageLink",factory:function(){return new Jne}},{key:"imageWidth30",factory:function(){return new Zne}},{key:"imageWidth50",factory:function(){return new Qne}},{key:"imageWidth100",factory:function(){return new eoe}}],editorPlugin:function(e){var t=e.isInline,r=e.isVoid;e.insertNode;var n=e;return n.isInline=function(o){return o.type==="image"||t(o)},n.isVoid=function(o){return o.type==="image"||r(o)},n}},roe={type:"todo",renderElem:function(e,t,r){var n=!1;r.isDisabled()&&(n=!0);var o=be("div",{style:{margin:"5px 0"}},be("span",{contentEditable:!1,style:{marginRight:"0.5em"}},be("input",{type:"checkbox",checked:e.checked,disabled:n,on:{change:function(i){var a=A.findPath(r,e),u={checked:i.target.checked};N.setNodes(r,u,{at:a})}}})),be("span",null,t));return o}},noe=function(){function e(){this.title=Q("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 e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!!A.getSelectedNodeByType(t,"todo")},e.prototype.isDisabled=function(t){return t.selection==null||!!A.getSelectedElems(t).some(function(r){if(E.isVoid(t,r)&&E.isBlock(t,r))return!0;var n=r.type;return!!["pre","table","list-item"].includes(n)||void 0})},e.prototype.exec=function(t,r){var n=this.isActive(t);N.setNodes(t,{type:n?"paragraph":"todo"})},e}(),ooe={selector:'div[data-w-e-type="todo"]',parseElemHtml:function(e,t,r){var n=k(e);(t=t.filter(function(i){return!!oe.isText(i)||!!r.isInline(i)})).length===0&&(t=[{text:n.text().replace(/\s+/gm," ")}]);var o=!1;return n.find('input[type="checkbox"]').attr("checked")!=null&&(o=!0),{type:"todo",checked:o,children:t}}},ioe={renderElems:[roe],elemsToHtml:[{type:"todo",elemToHtml:function(e,t){return'<div data-w-e-type="todo"><input type="checkbox" disabled '+(e.checked?"checked":"")+">"+t+"</div>"}}],preParseHtml:[{selector:"ul.w-e-todo",preParseHtml:function(e){var t=k(e).find("li"),r=k('<div data-w-e-type="todo"></div>'),n=t.find("input[type]");return r.append(n),t.children()[0].remove(),r[0].innerHTML=r[0].innerHTML+t[0].innerHTML,r[0]}}],parseElemsHtml:[ooe],menus:[{key:"todo",factory:function(){return new noe}}],editorPlugin:function(e){var t=e.deleteBackward,r=e;return r.deleteBackward=function(n){var o=e.selection;if(o&&R.isCollapsed(o)){var i=A.getSelectedNodeByType(e,"todo");if(i&&Z.string(i).length===0)return void N.setNodes(e,{type:"paragraph"},{mode:"highest"})}t(n)},r}},aoe={type:"blockquote",renderElem:function(e,t,r){return be("blockquote",null,t)}},uoe={selector:"blockquote:not([data-w-e-type])",parseElemHtml:function(e,t,r){var n=k(e);return(t=t.filter(function(o){return!!oe.isText(o)||!!r.isInline(o)})).length===0&&(t=[{text:n.text().replace(/\s+/gm," ")}]),{type:"blockquote",children:t}}},soe=function(){function e(){this.title=Q("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 e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!!A.getSelectedNodeByType(t,"blockquote")},e.prototype.isDisabled=function(t){return t.selection==null||!Xe(E.nodes(t,{match:function(r){var n=A.getNodeType(r);return n==="paragraph"||n==="blockquote"},universal:!0,mode:"highest"}),1)[0]},e.prototype.exec=function(t,r){if(!this.isDisabled(t)){var n=this.isActive(t)?"paragraph":"blockquote";N.setNodes(t,{type:n},{mode:"highest"})}},e}(),loe={key:"blockquote",factory:function(){return new soe}},coe=me([].slice),foe=S8("slice"),doe=ln("species"),Nb=xe.Array,poe=Math.max;Zt({target:"Array",proto:!0,forced:!foe},{slice:function(e,t){var r,n,o,i=oc(this),a=Wm(i),u=Ud(e,a),s=Ud(t===void 0?a:t,a);if(u0(i)&&(r=i.constructor,(C8(r)&&(r===Nb||u0(r.prototype))||vo(r)&&(r=r[doe])===null)&&(r=void 0),r===Nb||r===void 0))return coe(i,u,s);for(n=new(r===void 0?Nb:r)(poe(s-u,0)),o=0;u<s;u++,o++)u in i&&gI(n,o,i[u]);return n.length=o,n}});var hoe={renderElems:[aoe],elemsToHtml:[{type:"blockquote",elemToHtml:function(e,t){return"<blockquote>"+t+"</blockquote>"}}],parseElemsHtml:[uoe],menus:[loe],editorPlugin:function(e){var t=e.insertBreak,r=e.insertText,n=e;return n.insertBreak=function(){var o=n.selection;if(o==null)return t();var i=Xe(E.nodes(e,{match:function(c){return A.checkNodeType(c,"blockquote")},universal:!0}),1)[0];if(!i)return t();var a=i[0],u=A.findPath(e,a),s=E.end(e,u);if(ke.equals(s,o.focus)){var l=Z.string(a);if(l&&l.slice(-1)===`
- `)return e.deleteBackward("character"),void N.insertNodes(n,{type:"paragraph",children:[{text:""}]},{mode:"highest"})}r(`
- `)},n}},goe=function(){function e(){this.title=Q("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 e.prototype.exec=function(t,r){},e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||!!Xe(E.nodes(t,{match:function(r){return A.getNodeType(r)==="pre"||!!E.isVoid(t,r)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(t){if(this.$content==null){var r=k('<ul class="w-e-panel-content-emotion"></ul>');r.on("click","li",function(i){var a=i.target;if(a!=null){i.preventDefault();var u=k(a).text();t.insertText(u)}}),this.$content=r}var n=this.$content;if(n==null)return document.createElement("ul");n.empty();var o=t.getMenuConfig("emotion").emotions;return(o===void 0?[]:o).forEach(function(i){var a=k("<li>"+i+"</li>");n.append(a)}),n[0]},e}(),voe={menus:[{key:"emotion",factory:function(){return new goe},config:{emotions:"😀 😃 😄 😁 😆 😅 😂 🤣 😊 😇 🙂 🙃 😉 😌 😍 😘 😗 😙 😚 😋 😛 😝 😜 🤓 😎 😏 😒 😞 😔 😟 😕 🙁 😣 😖 😫 😩 😢 😭 😤 😠 😡 😳 😱 😨 🤗 🤔 😶 😑 😬 🙄 😯 😴 😷 🤑 😈 🤡 💩 👻 💀 👀 👣 👐 🙌 👏 🤝 👍 👎 👊 ✊ 🤛 🤜 🤞 ✌️ 🤘 👌 👈 👉 👆 👇 ☝️ ✋ 🤚 🖐 🖖 👋 🤙 💪 🖕 ✍️ 🙏".split(" ")}}]},moe={1:"12px",2:"14px",3:"16px",4:"19px",5:"24px",6:"32px",7:"48px"},yoe={selector:"font",preParseHtml:function(e){var t=k(e);if(sc(t)!=="font")return e;var r=t.attr("size")||"";r&&(t.removeAttr("size"),t.css("font-size",moe[r]));var n=t.attr("face")||"";return n&&(t.removeAttr("face"),t.css("font-family",n)),t[0]}},boe=me("".indexOf);Zt({target:"String",proto:!0,forced:!xI("includes")},{includes:function(e){return!!~boe(Et(kn(this)),Et(SI(e)),arguments.length>1?arguments[1]:void 0)}});var Ai,Hg,qh=function(e){return e&&e.Math==Math&&e},Fe=qh(typeof globalThis=="object"&&globalThis)||qh(typeof window=="object"&&window)||qh(typeof self=="object"&&self)||qh(typeof o0=="object"&&o0)||function(){return this}()||Function("return this")(),j8=Function.prototype,TO=j8.apply,woe=j8.bind,_O=j8.call,RI=typeof Reflect=="object"&&Reflect.apply||(woe?_O.bind(TO):function(){return _O.apply(TO,arguments)}),LI=Function.prototype,$E=LI.bind,HE=LI.call,Eoe=$E&&$E.bind(HE),Ft=$E?function(e){return e&&Eoe(HE,e)}:function(e){return e&&function(){return HE.apply(e,arguments)}},xr=function(e){return typeof e=="function"},an=function(e){try{return!!e()}catch{return!0}},Ur=!an(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),of=Function.prototype.call,Eo=of.bind?of.bind(of):function(){return of.apply(of,arguments)},jO={}.propertyIsEnumerable,PO=Object.getOwnPropertyDescriptor,Doe=PO&&!jO.call({1:2},1)?function(e){var t=PO(this,e);return!!t&&t.enumerable}:jO,P8={f:Doe},qu=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Coe=Ft({}.toString),Soe=Ft("".slice),Su=function(e){return Soe(Coe(e),8,-1)},Ib=Fe.Object,xoe=Ft("".split),MI=an(function(){return!Ib("z").propertyIsEnumerable(0)})?function(e){return Su(e)=="String"?xoe(e,""):Ib(e)}:Ib,Aoe=Fe.TypeError,N8=function(e){if(e==null)throw Aoe("Can't call method on "+e);return e},jo=function(e){return MI(N8(e))},Hn=function(e){return typeof e=="object"?e!==null:xr(e)},vn={},NO=function(e){return xr(e)?e:void 0},$p=function(e,t){return arguments.length<2?NO(vn[e])||NO(Fe[e]):vn[e]&&vn[e][t]||Fe[e]&&Fe[e][t]},zI=Ft({}.isPrototypeOf),Rb=$p("navigator","userAgent")||"",IO=Fe.process,RO=Fe.Deno,LO=IO&&IO.versions||RO&&RO.version,MO=LO&&LO.v8;MO&&(Hg=(Ai=MO.split("."))[0]>0&&Ai[0]<4?1:+(Ai[0]+Ai[1])),!Hg&&Rb&&(!(Ai=Rb.match(/Edge\/(\d+)/))||Ai[1]>=74)&&(Ai=Rb.match(/Chrome\/(\d+)/))&&(Hg=+Ai[1]);var c0=Hg,so=!!Object.getOwnPropertySymbols&&!an(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&c0&&c0<41}),I8=so&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Ooe=Fe.Object,dl=I8?function(e){return typeof e=="symbol"}:function(e){var t=$p("Symbol");return xr(t)&&zI(t.prototype,Ooe(e))},Boe=Fe.String,koe=Fe.TypeError,$I=function(e){if(xr(e))return e;throw koe(function(t){try{return Boe(t)}catch{return"Object"}}(e)+" is not a function")},Foe=Fe.TypeError,Toe=Object.defineProperty,ea=Fe["__core-js_shared__"]||function(e,t){try{Toe(Fe,e,{value:t,configurable:!0,writable:!0})}catch{Fe[e]=t}return t}("__core-js_shared__",{}),us=$m(function(e){(e.exports=function(t,r){return ea[t]||(ea[t]=r!==void 0?r:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),_oe=Fe.Object,Hp=function(e){return _oe(N8(e))},joe=Ft({}.hasOwnProperty),Ke=Object.hasOwn||function(e,t){return joe(Hp(e),t)},Poe=0,Noe=Math.random(),Ioe=Ft(1 .toString),f0=function(e){return"Symbol("+(e===void 0?"":e)+")_"+Ioe(++Poe+Noe,36)},af=us("wks"),xu=Fe.Symbol,zO=xu&&xu.for,Roe=I8?xu:xu&&xu.withoutSetter||f0,cn=function(e){if(!Ke(af,e)||!so&&typeof af[e]!="string"){var t="Symbol."+e;so&&Ke(xu,e)?af[e]=xu[e]:af[e]=I8&&zO?zO(t):Roe(t)}return af[e]},Loe=Fe.TypeError,Moe=cn("toPrimitive"),lc=function(e){var t=function(r,n){if(!Hn(r)||dl(r))return r;var o,i,a=(o=r[Moe])==null?void 0:$I(o);if(a){if(i=Eo(a,r,n),!Hn(i)||dl(i))return i;throw Loe("Can't convert object to primitive value")}return function(u,s){var l,c;if(xr(l=u.toString)&&!Hn(c=Eo(l,u))||xr(l=u.valueOf)&&!Hn(c=Eo(l,u))||s!=="string")return c;throw Foe("Can't convert object to primitive value")}(r,n)}(e,"string");return dl(t)?t:t+""},UE=Fe.document,zoe=Hn(UE)&&Hn(UE.createElement),HI=function(e){return zoe?UE.createElement(e):{}},UI=!Ur&&!an(function(){return Object.defineProperty(HI("div"),"a",{get:function(){return 7}}).a!=7}),$O=Object.getOwnPropertyDescriptor,R8={f:Ur?$O:function(e,t){if(e=jo(e),t=lc(t),UI)try{return $O(e,t)}catch{}if(Ke(e,t))return qu(!Eo(P8.f,e,t),e[t])}},$oe=/#|\.prototype\./,Up=function(e,t){var r=Uoe[Hoe(e)];return r==Woe||r!=Voe&&(xr(t)?an(t):!!t)},Hoe=Up.normalize=function(e){return String(e).replace($oe,".").toLowerCase()},Uoe=Up.data={},Voe=Up.NATIVE="N",Woe=Up.POLYFILL="P",Goe=Up,HO=Ft(Ft.bind),VI=function(e,t){return $I(e),t===void 0?e:HO?HO(e,t):function(){return e.apply(t,arguments)}},qoe=Fe.String,Koe=Fe.TypeError,Ku=function(e){if(Hn(e))return e;throw Koe(qoe(e)+" is not an object")},Xoe=Fe.TypeError,UO=Object.defineProperty,ss={f:Ur?UO:function(e,t,r){if(Ku(e),t=lc(t),Ku(r),UI)try{return UO(e,t,r)}catch{}if("get"in r||"set"in r)throw Xoe("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},co=Ur?function(e,t,r){return ss.f(e,t,qu(1,r))}:function(e,t,r){return e[t]=r,e},Yoe=R8.f,Joe=function(e){var t=function(r,n,o){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(r);case 2:return new e(r,n)}return new e(r,n,o)}return RI(e,this,arguments)};return t.prototype=e.prototype,t},Ni=function(e,t){var r,n,o,i,a,u,s,l,c=e.target,f=e.global,d=e.stat,p=e.proto,v=f?Fe:d?Fe[c]:(Fe[c]||{}).prototype,m=f?vn:vn[c]||co(vn,c,{})[c],g=m.prototype;for(o in t)r=!Goe(f?o:c+(d?".":"#")+o,e.forced)&&v&&Ke(v,o),a=m[o],r&&(u=e.noTargetGet?(l=Yoe(v,o))&&l.value:v[o]),i=r&&u?u:t[o],r&&typeof a==typeof i||(s=e.bind&&r?VI(i,Fe):e.wrap&&r?Joe(i):p&&xr(i)?Ft(i):i,(e.sham||i&&i.sham||a&&a.sham)&&co(s,"sham",!0),co(m,o,s),p&&(Ke(vn,n=c+"Prototype")||co(vn,n,{}),co(vn[n],o,i),e.real&&g&&!g[o]&&co(g,o,i)))},d0=Array.isArray||function(e){return Su(e)=="Array"},Zoe=Math.ceil,Qoe=Math.floor,L8=function(e){var t=+e;return t!=t||t===0?0:(t>0?Qoe:Zoe)(t)},eie=Math.min,Xm=function(e){return(t=e.length)>0?eie(L8(t),9007199254740991):0;var t},VE=function(e,t,r){var n=lc(t);n in e?ss.f(e,n,qu(0,r)):e[n]=r},WI={};WI[cn("toStringTag")]="z";var M8=String(WI)==="[object z]",tie=cn("toStringTag"),rie=Fe.Object,nie=Su(function(){return arguments}())=="Arguments",Ym=M8?Su:function(e){var t,r,n;return e===void 0?"Undefined":e===null?"Null":typeof(r=function(o,i){try{return o[i]}catch{}}(t=rie(e),tie))=="string"?r:nie?Su(t):(n=Su(t))=="Object"&&xr(t.callee)?"Arguments":n},oie=Ft(Function.toString);xr(ea.inspectSource)||(ea.inspectSource=function(e){return oie(e)});var GI=ea.inspectSource,qI=function(){},iie=[],KI=$p("Reflect","construct"),z8=/^\s*(?:class|function)\b/,aie=Ft(z8.exec),uie=!z8.exec(qI),uf=function(e){if(!xr(e))return!1;try{return KI(qI,iie,e),!0}catch{return!1}},sie=!KI||an(function(){var e;return uf(uf.call)||!uf(Object)||!uf(function(){e=!0})||e})?function(e){if(!xr(e))return!1;switch(Ym(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return uie||!!aie(z8,GI(e))}:uf,lie=cn("species"),VO=Fe.Array,XI=function(e,t){return new(function(r){var n;return d0(r)&&(n=r.constructor,(sie(n)&&(n===VO||d0(n.prototype))||Hn(n)&&(n=n[lie])===null)&&(n=void 0)),n===void 0?VO:n}(e))(t===0?0:t)},cie=cn("species"),YI=cn("isConcatSpreadable"),WO=Fe.TypeError,fie=c0>=51||!an(function(){var e=[];return e[YI]=!1,e.concat()[0]!==e}),die=c0>=51||!an(function(){var e=[];return(e.constructor={})[cie]=function(){return{foo:1}},e.concat(Boolean).foo!==1}),pie=function(e){if(!Hn(e))return!1;var t=e[YI];return t!==void 0?!!t:d0(e)};Ni({target:"Array",proto:!0,forced:!fie||!die},{concat:function(e){var t,r,n,o,i,a=Hp(this),u=XI(a,0),s=0;for(t=-1,n=arguments.length;t<n;t++)if(pie(i=t===-1?a:arguments[t])){if(s+(o=Xm(i))>9007199254740991)throw WO("Maximum allowed index exceeded");for(r=0;r<o;r++,s++)r in i&&VE(u,s,i[r])}else{if(s>=9007199254740991)throw WO("Maximum allowed index exceeded");VE(u,s++,i)}return u.length=s,u}});var Kh,hie=Fe.String,p0=function(e){if(Ym(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return hie(e)},gie=Math.max,vie=Math.min,WE=function(e,t){var r=L8(e);return r<0?gie(r+t,0):vie(r,t)},mie=function(e){return function(t,r,n){var o,i=jo(t),a=Xm(i),u=WE(n,a);if(e&&r!=r){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===r)return e||u||0;return!e&&-1}},yie={indexOf:mie(!1)},Vp={},bie=yie.indexOf,GO=Ft([].push),JI=function(e,t){var r,n=jo(e),o=0,i=[];for(r in n)!Ke(Vp,r)&&Ke(n,r)&&GO(i,r);for(;t.length>o;)Ke(n,r=t[o++])&&(~bie(i,r)||GO(i,r));return i},h0=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],$8=Object.keys||function(e){return JI(e,h0)},wie=Ur?Object.defineProperties:function(e,t){Ku(e);for(var r,n=jo(t),o=$8(t),i=o.length,a=0;i>a;)ss.f(e,r=o[a++],n[r]);return e},Eie=$p("document","documentElement"),qO=us("keys"),Jm=function(e){return qO[e]||(qO[e]=f0(e))},ZI=Jm("IE_PROTO"),Lb=function(){},QI=function(e){return"<script>"+e+"<\/script>"},KO=function(e){e.write(QI("")),e.close();var t=e.parentWindow.Object;return e=null,t},Ug=function(){try{Kh=new ActiveXObject("htmlfile")}catch{}var e,t;Ug=typeof document<"u"?document.domain&&Kh?KO(Kh):((t=HI("iframe")).style.display="none",Eie.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(QI("document.F=Object")),e.close(),e.F):KO(Kh);for(var r=h0.length;r--;)delete Ug.prototype[h0[r]];return Ug()};Vp[ZI]=!0;var g0,ad,v0,Xu=Object.create||function(e,t){var r;return e!==null?(Lb.prototype=Ku(e),r=new Lb,Lb.prototype=null,r[ZI]=e):r=Ug(),t===void 0?r:wie(r,t)},Die=h0.concat("length","prototype"),eR={f:Object.getOwnPropertyNames||function(e){return JI(e,Die)}},Cie=Fe.Array,Sie=Math.max,XO=eR.f,YO=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],tR={f:function(e){return YO&&Su(e)=="Window"?function(t){try{return XO(t)}catch{return function(r,n,o){for(var i=Xm(r),a=WE(void 0,i),u=WE(i,i),s=Cie(Sie(u-a,0)),l=0;a<u;a++,l++)VE(s,l,r[a]);return s.length=l,s}(YO)}}(e):XO(jo(e))}},Mb={f:Object.getOwnPropertySymbols},xie=Ft([].slice),m0=function(e,t,r,n){co(e,t,r)},H8={f:cn},Aie=ss.f,Pt=function(e){var t=vn.Symbol||(vn.Symbol={});Ke(t,e)||Aie(t,e,{value:H8.f(e)})},Oie=M8?{}.toString:function(){return"[object "+Ym(this)+"]"},Bie=ss.f,JO=cn("toStringTag"),y0=function(e,t,r,n){if(e){var o=r?e:e.prototype;Ke(o,JO)||Bie(o,JO,{configurable:!0,value:t}),n&&!M8&&co(o,"toString",Oie)}},ZO=Fe.WeakMap,kie=xr(ZO)&&/native code/.test(GI(ZO)),GE=Fe.TypeError,Fie=Fe.WeakMap;if(kie||ea.state){var Va=ea.state||(ea.state=new Fie),Tie=Ft(Va.get),QO=Ft(Va.has),_ie=Ft(Va.set);g0=function(e,t){if(QO(Va,e))throw new GE("Object already initialized");return t.facade=e,_ie(Va,e,t),t},ad=function(e){return Tie(Va,e)||{}},v0=function(e){return QO(Va,e)}}else{var _s=Jm("state");Vp[_s]=!0,g0=function(e,t){if(Ke(e,_s))throw new GE("Object already initialized");return t.facade=e,co(e,_s,t),t},ad=function(e){return Ke(e,_s)?e[_s]:{}},v0=function(e){return Ke(e,_s)}}var cc={set:g0,get:ad,has:v0,enforce:function(e){return v0(e)?ad(e):g0(e,{})},getterFor:function(e){return function(t){var r;if(!Hn(t)||(r=ad(t)).type!==e)throw GE("Incompatible receiver, "+e+" required");return r}}},eB=Ft([].push),Oi=function(e){var t=e==1,r=e==2,n=e==3,o=e==4,i=e==6,a=e==7,u=e==5||i;return function(s,l,c,f){for(var d,p,v=Hp(s),m=MI(v),g=VI(l,c),y=Xm(m),h=0,b=f||XI,w=t?b(s,y):r||a?b(s,0):void 0;y>h;h++)if((u||h in m)&&(p=g(d=m[h],h,v),e))if(t)w[h]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return h;case 2:eB(w,d)}else switch(e){case 4:return!1;case 7:eB(w,d)}return i?-1:n||o?o:w}},Zm=[Oi(0),Oi(1),Oi(2),Oi(3),Oi(4),Oi(5),Oi(6),Oi(7)][0],Rr=Jm("hidden"),tB=cn("toPrimitive"),jie=cc.set,rB=cc.getterFor("Symbol"),Un=Object.prototype,Li=Fe.Symbol,Vi=Li&&Li.prototype,nB=Fe.TypeError,zb=Fe.QObject,sf=$p("JSON","stringify"),rR=R8.f,Mi=ss.f,nR=tR.f,Pie=P8.f,oR=Ft([].push),ai=us("symbols"),Wp=us("op-symbols"),$b=us("string-to-symbol-registry"),Hb=us("symbol-to-string-registry"),Nie=us("wks"),Ub=!zb||!zb.prototype||!zb.prototype.findChild,qE=Ur&&an(function(){return Xu(Mi({},"a",{get:function(){return Mi(this,"a",{value:7}).a}})).a!=7})?function(e,t,r){var n=rR(Un,t);n&&delete Un[t],Mi(e,t,r),n&&e!==Un&&Mi(Un,t,n)}:Mi,Vb=function(e,t){var r=ai[e]=Xu(Vi);return jie(r,{type:"Symbol",tag:e,description:t}),Ur||(r.description=t),r},b0=function(e,t,r){e===Un&&b0(Wp,t,r),Ku(e);var n=lc(t);return Ku(r),Ke(ai,n)?(r.enumerable?(Ke(e,Rr)&&e[Rr][n]&&(e[Rr][n]=!1),r=Xu(r,{enumerable:qu(0,!1)})):(Ke(e,Rr)||Mi(e,Rr,qu(1,{})),e[Rr][n]=!0),qE(e,n,r)):Mi(e,n,r)},oB=function(e,t){Ku(e);var r=jo(t),n=$8(r).concat(KE(r));return Zm(n,function(o){Ur&&!Eo(iR,r,o)||b0(e,o,r[o])}),e},iR=function(e){var t=lc(e),r=Eo(Pie,this,t);return!(this===Un&&Ke(ai,t)&&!Ke(Wp,t))&&(!(r||!Ke(this,t)||!Ke(ai,t)||Ke(this,Rr)&&this[Rr][t])||r)},iB=function(e,t){var r=jo(e),n=lc(t);if(r!==Un||!Ke(ai,n)||Ke(Wp,n)){var o=rR(r,n);return!o||!Ke(ai,n)||Ke(r,Rr)&&r[Rr][n]||(o.enumerable=!0),o}},aB=function(e){var t=nR(jo(e)),r=[];return Zm(t,function(n){Ke(ai,n)||Ke(Vp,n)||oR(r,n)}),r},KE=function(e){var t=e===Un,r=nR(t?Wp:jo(e)),n=[];return Zm(r,function(o){!Ke(ai,o)||t&&!Ke(Un,o)||oR(n,ai[o])}),n};if(so||(Vi=(Li=function(){if(zI(Vi,this))throw nB("Symbol is not a constructor");var e=arguments.length&&arguments[0]!==void 0?p0(arguments[0]):void 0,t=f0(e),r=function(n){this===Un&&Eo(r,Wp,n),Ke(this,Rr)&&Ke(this[Rr],t)&&(this[Rr][t]=!1),qE(this,t,qu(1,n))};return Ur&&Ub&&qE(Un,t,{configurable:!0,set:r}),Vb(t,e)}).prototype,m0(Vi,"toString",function(){return rB(this).tag}),m0(Li,"withoutSetter",function(e){return Vb(f0(e),e)}),P8.f=iR,ss.f=b0,R8.f=iB,eR.f=tR.f=aB,Mb.f=KE,H8.f=function(e){return Vb(cn(e),e)},Ur&&Mi(Vi,"description",{configurable:!0,get:function(){return rB(this).description}})),Ni({global:!0,wrap:!0,forced:!so,sham:!so},{Symbol:Li}),Zm($8(Nie),function(e){Pt(e)}),Ni({target:"Symbol",stat:!0,forced:!so},{for:function(e){var t=p0(e);if(Ke($b,t))return $b[t];var r=Li(t);return $b[t]=r,Hb[r]=t,r},keyFor:function(e){if(!dl(e))throw nB(e+" is not a symbol");if(Ke(Hb,e))return Hb[e]},useSetter:function(){Ub=!0},useSimple:function(){Ub=!1}}),Ni({target:"Object",stat:!0,forced:!so,sham:!Ur},{create:function(e,t){return t===void 0?Xu(e):oB(Xu(e),t)},defineProperty:b0,defineProperties:oB,getOwnPropertyDescriptor:iB}),Ni({target:"Object",stat:!0,forced:!so},{getOwnPropertyNames:aB,getOwnPropertySymbols:KE}),Ni({target:"Object",stat:!0,forced:an(function(){Mb.f(1)})},{getOwnPropertySymbols:function(e){return Mb.f(Hp(e))}}),sf){var Iie=!so||an(function(){var e=Li();return sf([e])!="[null]"||sf({a:e})!="{}"||sf(Object(e))!="{}"});Ni({target:"JSON",stat:!0,forced:Iie},{stringify:function(e,t,r){var n=xie(arguments),o=t;if((Hn(t)||e!==void 0)&&!dl(e))return d0(t)||(t=function(i,a){if(xr(o)&&(a=Eo(o,this,i,a)),!dl(a))return a}),n[1]=t,RI(sf,null,n)}})}if(!Vi[tB]){var Rie=Vi.valueOf;m0(Vi,tB,function(e){return Eo(Rie,this)})}y0(Li,"Symbol"),Vp[Rr]=!0,Pt("asyncIterator"),Pt("hasInstance"),Pt("isConcatSpreadable"),Pt("iterator"),Pt("match"),Pt("matchAll"),Pt("replace"),Pt("search"),Pt("species"),Pt("split"),Pt("toPrimitive"),Pt("toStringTag"),Pt("unscopables"),y0(Fe.JSON,"JSON",!0);var Wi,uB,sB,Lie=vn.Symbol,Au={},aR=Function.prototype,Mie=Ur&&Object.getOwnPropertyDescriptor,lB=Ke(aR,"name"),zie={PROPER:lB&&(function(){}).name==="something",CONFIGURABLE:lB&&(!Ur||Ur&&Mie(aR,"name").configurable)},$ie=!an(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),cB=Jm("IE_PROTO"),XE=Fe.Object,Hie=XE.prototype,YE=$ie?XE.getPrototypeOf:function(e){var t=Hp(e);if(Ke(t,cB))return t[cB];var r=t.constructor;return xr(r)&&t instanceof r?r.prototype:t instanceof XE?Hie:null},JE=cn("iterator"),uR=!1;[].keys&&("next"in(sB=[].keys())?(uB=YE(YE(sB)))!==Object.prototype&&(Wi=uB):uR=!0);var Uie=Wi==null||an(function(){var e={};return Wi[JE].call(e)!==e});Wi=Uie?{}:Xu(Wi),xr(Wi[JE])||m0(Wi,JE,function(){return this});var sR={IteratorPrototype:Wi,BUGGY_SAFARI_ITERATORS:uR},Vie=sR.IteratorPrototype,Wie=function(){return this};Fe.String,Fe.TypeError,Object.setPrototypeOf||"__proto__"in{}&&function(){var e={};try{Ft(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set)(e,[]),e instanceof Array}catch{}}();var Gie=zie.PROPER,Wb=sR.BUGGY_SAFARI_ITERATORS,qie=cn("iterator"),Kie=function(){return this},lR=function(e,t,r,n,o,i,a){(function(g,y,h,b){var w=y+" Iterator";g.prototype=Xu(Vie,{next:qu(1,h)}),y0(g,w,!1,!0),Au[w]=Wie})(r,t,n);var u,s,l=function(g){if(g===o&&v)return v;if(!Wb&&g in d)return d[g];switch(g){case"keys":case"values":case"entries":return function(){return new r(this,g)}}return function(){return new r(this)}},c=t+" Iterator",f=!1,d=e.prototype,p=d[qie]||d["@@iterator"]||o&&d[o],v=!Wb&&p||l(o),m=t=="Array"&&d.entries||p;return m&&(u=YE(m.call(new e)))!==Object.prototype&&u.next&&(y0(u,c,!0,!0),Au[c]=Kie),Gie&&o=="values"&&p&&p.name!=="values"&&(f=!0,v=function(){return Eo(p,this)}),o&&(s={values:l("values"),keys:l("keys"),entries:l("entries")},a||Ni({target:t,proto:!0,forced:Wb||f},s)),Au[t]=v,s},Xie=cc.set,Yie=cc.getterFor("Array Iterator");lR(Array,"Array",function(e,t){Xie(this,{type:"Array Iterator",target:jo(e),index:0,kind:t})},function(){var e=Yie(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,{value:void 0,done:!0}):r=="keys"?{value:n,done:!1}:r=="values"?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}},"values"),Au.Arguments=Au.Array;var fB=cn("toStringTag");for(var Gb 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 dB=Fe[Gb],qb=dB&&dB.prototype;qb&&Ym(qb)!==fB&&co(qb,fB,Gb),Au[Gb]=Au.Array}var Jie=Lie;Pt("asyncDispose"),Pt("dispose"),Pt("matcher"),Pt("metadata"),Pt("observable"),Pt("patternMatch"),Pt("replaceAll");var Xh=Jie,Zie=Ft("".charAt),pB=Ft("".charCodeAt),Qie=Ft("".slice),eae=function(e){return function(t,r){var n,o,i=p0(N8(t)),a=L8(r),u=i.length;return a<0||a>=u?"":(n=pB(i,a))<55296||n>56319||a+1===u||(o=pB(i,a+1))<56320||o>57343?Zie(i,a):Qie(i,a,a+2)}},tae=eae(),rae=cc.set,nae=cc.getterFor("String Iterator");lR(String,"String",function(e){rae(this,{type:"String Iterator",string:p0(e),index:0})},function(){var e,t=nae(this),r=t.string,n=t.index;return n>=r.length?{value:void 0,done:!0}:(e=tae(r,n),t.index+=e.length,{value:e,done:!1})});var oae=H8.f("iterator"),iae=$m(function(e){function t(r){return typeof Xh=="function"&&typeof oae=="symbol"?(e.exports=t=function(n){return typeof n},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=t=function(n){return n&&typeof Xh=="function"&&n.constructor===Xh&&n!==Xh.prototype?"symbol":typeof n},e.exports.default=e.exports,e.exports.__esModule=!0),t(r)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0}),cR=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(iae),aae=Vm.EXISTS,uae=ic.f,fR=Function.prototype,sae=me(fR.toString),dR=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,lae=me(dR.exec);Yn&&!aae&&uae(fR,"name",{configurable:!0,get:function(){try{return lae(dR,sae(this))[1]}catch{return""}}});var pR=function(){function e(){this.tag="select",this.width=80}return e.prototype.isActive=function(t){return!1},e.prototype.getValue=function(t){var r=this.mark,n=E.marks(t);return n&&n[r]?n[r]:""},e.prototype.isDisabled=function(t){return t.selection==null||(this.mark,!!Xe(E.nodes(t,{match:function(r){return A.getNodeType(r)==="pre"||!!E.isVoid(t,r)},universal:!0}),1)[0])},e.prototype.exec=function(t,r){var n=this.mark;r?t.addMark(n,r):t.removeMark(n)},e}(),cae=function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.title=Q("fontSize.title"),r.iconSvg=Nre,r.mark="fontSize",r}return bt(t,e),t.prototype.getOptions=function(r){var n=[],o=r.getMenuConfig(this.mark).fontSizeList,i=o===void 0?[]:o;n.push({text:Q("fontSize.default"),value:""}),i.forEach(function(u){if(typeof u=="string")n.push({text:u,value:u});else if(cR(u)==="object"){var s=u.name,l=u.value;n.push({text:s,value:l})}});var a=this.getValue(r);return n.forEach(function(u){u.value===a?u.selected=!0:delete u.selected}),n},t}(pR),fae=function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.title=Q("fontFamily.title"),r.iconSvg=Ire,r.mark="fontFamily",r.selectPanelWidth=150,r}return bt(t,e),t.prototype.getOptions=function(r){var n=[],o=r.getMenuConfig(this.mark).fontFamilyList,i=o===void 0?[]:o;n.push({text:Q("fontFamily.default"),value:""}),i.forEach(function(u){if(typeof u=="string")n.push({text:u,value:u,styleForRenderMenuList:{"font-family":u}});else if(cR(u)==="object"){var s=u.name,l=u.value;n.push({text:s,value:l,styleForRenderMenuList:{"font-family":l}})}});var a=this.getValue(r);return n.forEach(function(u){u.value===a?u.selected=!0:delete u.selected}),n},t}(pR),dae={renderStyle:function(e,t){var r=e,n=r.fontSize,o=r.fontFamily,i=t;return n&&Gu(i,{fontSize:n}),o&&Gu(i,{fontFamily:o}),i},styleToHtml:function(e,t){if(!oe.isText(e))return t;var r,n=e,o=n.fontSize,i=n.fontFamily;return o||i?((k8(t)||sc(r=k(t))!=="span")&&(r=k("<span>"+t+"</span>")),o&&r.css("font-size",o),i&&r.css("font-family",i),uc(r)):t},preParseHtml:[yoe],parseStyleHtml:function(e,t,r){var n=k(e);if(!oe.isText(t))return t;var o=t,i=r.getMenuConfig("fontSize").fontSizeList,a=i===void 0?[]:i,u=qn(n,"font-size"),s=a.find(function(p){return p.value&&p.value===u})||a.includes(u);u&&s&&(o.fontSize=u);var l=r.getMenuConfig("fontFamily").fontFamilyList,c=l===void 0?[]:l,f=qn(n,"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 cae},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 fae},config:{fontFamilyList:["黑体",{name:"仿宋",value:"仿宋"},"楷体","标楷体","华文仿宋","华文楷体",{name:"宋体",value:"宋体"},"微软雅黑","Arial","Tahoma","Verdana","Times New Roman","Courier New"]}}]},pae={selector:"p,h1,h2,h3,h4,h5",preParseHtml:function(e){var t=k(e),r=qn(t,"padding-left");return/\dem/.test(r)&&t.css("text-indent","2em"),/\dpx/.test(r)&&parseInt(r,10)%32==0&&t.css("text-indent","2em"),t[0]}},hR=function(){function e(){this.tag="button"}return e.prototype.getValue=function(t){var r=Xe(E.nodes(t,{match:function(o){return!!o.indent},universal:!0}),1),n=r[0];return n==null?"":Xe(n,1)[0].indent||""},e.prototype.isActive=function(t){return!1},e.prototype.getMatchNode=function(t){var r=Xe(E.nodes(t,{match:function(n){var o=A.getNodeType(n);return o==="paragraph"||!!o.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return r==null?null:r[0]},e}(),hae=function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.title=Q("indent.decrease"),r.iconSvg=Rre,r}return bt(t,e),t.prototype.isDisabled=function(r){var n=this.getMatchNode(r);return n==null||!n.indent},t.prototype.exec=function(r,n){N.setNodes(r,{indent:null},{match:function(o){return ce.isElement(o)}})},t}(hR),gae=function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.title=Q("indent.increase"),r.iconSvg=Lre,r}return bt(t,e),t.prototype.isDisabled=function(r){var n=this.getMatchNode(r);return n==null||!!n.indent},t.prototype.exec=function(r,n){N.setNodes(r,{indent:"2em"},{match:function(o){return ce.isElement(o)},mode:"highest"})},t}(hR),vae={renderStyle:function(e,t){if(!ce.isElement(e))return t;var r=e.indent,n=t;return r&&Gu(n,{textIndent:r}),n},styleToHtml:function(e,t){if(!ce.isElement(e))return t;var r=e.indent;if(!r)return t;var n=k(t);return n.css("text-indent",r),uc(n)},preParseHtml:[pae],parseStyleHtml:function(e,t,r){var n=k(e);if(!ce.isElement(t))return t;var o=t,i=qn(n,"text-indent"),a=parseInt(i,10);return i&&a>0&&(o.indent=i),o},menus:[{key:"indent",factory:function(){return new gae}},{key:"delIndent",factory:function(){return new hae}}]},Qm=function(){function e(){this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.getMatchNode=function(t){var r=Xe(E.nodes(t,{match:function(n){var o=A.getNodeType(n);return o==="paragraph"||o==="blockquote"||!!o.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return r==null?null:r[0]},e.prototype.isDisabled=function(t){return t.selection==null||!!A.getSelectedElems(t).some(function(r){if(E.isVoid(t,r)&&E.isBlock(t,r))return!0;var n=r.type;return!!["pre","code"].includes(n)||void 0})},e}(),mae=function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.title=Q("justify.left"),r.iconSvg=Mre,r}return bt(t,e),t.prototype.exec=function(r,n){N.setNodes(r,{textAlign:"left"},{match:function(o){return ce.isElement(o)&&!r.isInline(o)}})},t}(Qm),yae=function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.title=Q("justify.right"),r.iconSvg=zre,r}return bt(t,e),t.prototype.exec=function(r,n){N.setNodes(r,{textAlign:"right"},{match:function(o){return ce.isElement(o)&&!r.isInline(o)}})},t}(Qm),bae=function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.title=Q("justify.center"),r.iconSvg=$re,r}return bt(t,e),t.prototype.exec=function(r,n){N.setNodes(r,{textAlign:"center"},{match:function(o){return ce.isElement(o)&&!r.isInline(o)}})},t}(Qm),wae=function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.title=Q("justify.justify"),r.iconSvg=Hre,r}return bt(t,e),t.prototype.exec=function(r,n){N.setNodes(r,{textAlign:"justify"},{match:function(o){return ce.isElement(o)&&!r.isInline(o)}})},t}(Qm),Eae={renderStyle:function(e,t){if(!ce.isElement(e))return t;var r=e.textAlign,n=t;return r&&Gu(n,{textAlign:r}),n},styleToHtml:function(e,t){if(!ce.isElement(e))return t;var r=e.textAlign;if(!r)return t;var n=k(t);return n.css("text-align",r),uc(n)},parseStyleHtml:function(e,t,r){var n=k(e);if(!ce.isElement(t))return t;var o=t,i=qn(n,"text-align");return i&&(o.textAlign=i),o},menus:[{key:"justifyLeft",factory:function(){return new mae}},{key:"justifyRight",factory:function(){return new yae}},{key:"justifyCenter",factory:function(){return new bae}},{key:"justifyJustify",factory:function(){return new wae}}]},Dae=function(){function e(){this.title=Q("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 e.prototype.getOptions=function(t){var r=[],n=t.getMenuConfig("lineHeight").lineHeightList,o=n===void 0?[]:n;r.push({text:Q("lineHeight.default"),value:""}),o.forEach(function(a){r.push({text:a,value:a})});var i=this.getValue(t);return r.forEach(function(a){a.value===i?a.selected=!0:delete a.selected}),r},e.prototype.getMatchNode=function(t){var r=Xe(E.nodes(t,{match:function(n){var o=A.getNodeType(n);return!!o.startsWith("header")||!!["paragraph","blockquote","list-item"].includes(o)},universal:!0,mode:"highest"}),1)[0];return r==null?null:r[0]},e.prototype.isActive=function(t){return!1},e.prototype.getValue=function(t){var r=this.getMatchNode(t);return r==null?"":ce.isElement(r)&&r.lineHeight||""},e.prototype.isDisabled=function(t){return t.selection==null||this.getMatchNode(t)==null},e.prototype.exec=function(t,r){N.setNodes(t,{lineHeight:r.toString()},{mode:"highest"})},e}(),Cae={renderStyle:function(e,t){if(!ce.isElement(e))return t;var r=e.lineHeight,n=t;return r&&Gu(n,{lineHeight:r}),n},styleToHtml:function(e,t){if(!ce.isElement(e))return t;var r=e.lineHeight;if(!r)return t;var n=k(t);return n.css("line-height",r),uc(n)},parseStyleHtml:function(e,t,r){var n=k(e);if(!ce.isElement(t))return t;var o=t,i=r.getMenuConfig("lineHeight").lineHeightList,a=i===void 0?[]:i,u=qn(n,"line-height");return u&&a.includes(u)&&(o.lineHeight=u),o},menus:[{key:"lineHeight",factory:function(){return new Dae},config:{lineHeightList:["1","1.15","1.5","2","2.5","3"]}}]},Sae=function(){function e(){this.title=Q("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 e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null},e.prototype.exec=function(t,r){typeof t.redo=="function"&&t.redo()},e}(),xae=function(){function e(){this.title=Q("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 e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null},e.prototype.exec=function(t,r){typeof t.undo=="function"&&t.undo()},e}(),Aae={menus:[{key:"redo",factory:function(){return new Sae}},{key:"undo",factory:function(){return new xae}}]},Oae={type:"divider",renderElem:function(e,t,r){return _l("div",{props:{contentEditable:!1,className:"w-e-textarea-divider"},dataset:{selected:A.isNodeSelected(r,e)?"true":""},style:{},on:{mousedown:function(n){return n.preventDefault()}}},[_l("hr")])}},Bae=function(){function e(){this.title=Q("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 e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||!!A.getSelectedElems(t).some(function(r){if(t.isVoid(r))return!0;var n=A.getNodeType(r);return n==="table"||n==="pre"||void 0})},e.prototype.exec=function(t,r){N.insertNodes(t,{type:"divider",children:[{text:""}]},{mode:"highest"})},e}(),kae={renderElems:[Oae],elemsToHtml:[{type:"divider",elemToHtml:function(e,t){return"<hr/>"}}],parseElemsHtml:[{selector:"hr:not([data-w-e-type])",parseElemHtml:function(e,t,r){return{type:"divider",children:[{text:""}]}}}],menus:[{key:"divider",factory:function(){return new Bae}}],editorPlugin:function(e){var t=e.isVoid,r=e.normalizeNode,n=e;return n.isVoid=function(o){return o.type==="divider"||t(o)},n.normalizeNode=function(o){var i=Xe(o,2),a=i[0],u=i[1];if(A.getNodeType(a)!=="divider")return r([a,u]);A.isLastNode(n,a)&&N.insertNodes(n,A.genEmptyParagraph(),{at:[u[0]+1]})},n}},Fae=Gm.map;Zt({target:"Array",proto:!0,forced:!S8("map")},{map:function(e){return Fae(this,e,arguments.length>1?arguments[1]:void 0)}});var Tae=me([].join),_ae=Hm!=Object,jae=yI("join",",");Zt({target:"Array",proto:!0,forced:_ae||!jae},{join:function(e){return Tae(oc(this),e===void 0?",":e)}});var Pae=function(){function e(){this.title=Q("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 e.prototype.getSelectCodeElem=function(t){var r=A.getSelectedNodeByType(t,"code");if(r==null)return null;var n=A.getParentNode(t,r);return n==null||A.getNodeType(n)!=="pre"?null:r},e.prototype.getValue=function(t){var r=this.getSelectCodeElem(t);return r==null?"":r.language||""},e.prototype.isActive=function(t){return!!this.getSelectCodeElem(t)},e.prototype.isDisabled=function(t){if(t.selection==null)return!0;var r=A.getSelectedElems(t);return!!r.some(function(n){return t.isVoid(n)})||!r.some(function(n){var o=A.getNodeType(n);if(o==="pre"||o==="paragraph")return!0})},e.prototype.exec=function(t,r){this.isActive(t)?this.changeToPlainText(t):this.changeToCodeBlock(t,r.toString())},e.prototype.changeToPlainText=function(t){var r=this.getSelectCodeElem(t);if(r!=null){var n=Z.string(r);N.removeNodes(t,{mode:"highest"});var o=n.split(`
- `).map(function(i){return{type:"paragraph",children:[{text:i}]}});N.insertNodes(t,o,{mode:"highest"})}},e.prototype.changeToCodeBlock=function(t,r){var n,o,i=[],a=E.nodes(t,{match:function(f){return t.children.includes(f)},universal:!0});try{for(var u=mI(a),s=u.next();!s.done;s=u.next()){var l=Xe(s.value,1)[0];l&&i.push(Z.string(l))}}catch(f){n={error:f}}finally{try{s&&!s.done&&(o=u.return)&&o.call(u)}finally{if(n)throw n.error}}N.removeNodes(t,{mode:"highest"});var c={type:"pre",children:[{type:"code",language:r,children:[{text:i.join(`
- `)}]}]};N.insertNodes(t,c,{mode:"highest"})},e}(),Nae={key:"codeBlock",factory:function(){return new Pae}};Zt({target:"String",proto:!0,forced:Gf("anchor")},{anchor:function(e){return Wf(this,"a","name",e)}}),O8("match",function(e,t,r){return[function(n){var o=kn(this),i=n==null?void 0:Um(n,e);return i?Nt(i,n,o):new RegExp(n)[e](Et(o))},function(n){var o=tn(this),i=Et(n),a=r(t,o,i);if(a.done)return a.value;if(!o.global)return Wd(o,i);var u=o.unicode;o.lastIndex=0;for(var s,l=[],c=0;(s=Wd(o,i))!==null;){var f=Et(s[0]);l[c]=f,f===""&&(o.lastIndex=B8(i,Rp(o.lastIndex),u)),c++}return c===0?null:l}]});var Iae={type:"pre",renderElem:function(e,t,r){return be("pre",null,t)}},Rae={type:"code",renderElem:function(e,t,r){return be("code",null,t)}},Lae={selector:"pre:not([data-w-e-type])",parseElemHtml:function(e,t,r){var n=k(e);return(t=t.filter(function(o){return A.getNodeType(o)==="code"})).length===0&&(t=[{type:"code",language:"",children:[{text:n[0].textContent||""}]}]),{type:"pre",children:t.filter(function(o){return A.getNodeType(o)==="code"})}}},Mae={menus:[Nae],editorPlugin:function(e){var t=e.insertBreak,r=e.normalizeNode,n=e.insertData;e.insertNode;var o=e;return o.insertBreak=function(){var i=A.getSelectedNodeByType(o,"code");if(i!=null){var a=function(l,c){var f=c.selection;if(f==null)return"";var d=Z.string(l),p=f.anchor.offset,v=d.slice(0,p).split(`
- `),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(`
- `+s)}}o.insertText(`
- `)}else t()},o.normalizeNode=function(i){var a=Xe(i,2),u=a[0],s=a[1],l=A.getNodeType(u);return l==="code"&&s.length<=1&&N.setNodes(o,{type:"paragraph"},{at:s}),l==="pre"&&(A.isLastNode(o,u)&&N.insertNodes(o,A.genEmptyParagraph(),{at:[s[0]+1]}),A.getNodeType(u.children[0])!=="code"&&(N.unwrapNodes(o),N.setNodes(o,{type:"paragraph"},{mode:"highest"}))),r([u,s])},o.insertData=function(i){if(A.getSelectedNodeByType(o,"code")!=null){var a=i.getData("text/plain");E.insertText(o,a)}else n(i)},o},renderElems:[Iae,Rae],elemsToHtml:[{type:"code",elemToHtml:function(e,t){return"<code>"+t+"</code>"}},{type:"pre",elemToHtml:function(e,t){return"<pre>"+t+"</pre>"}}],preParseHtml:[{selector:"pre>code",preParseHtml:function(e){var t=k(e);if(sc(t)!=="code")return e;var r=t.find("xmp");if(r.length===0)return e;var n=r.text();return r.remove(),t.text(n),t[0]}}],parseElemsHtml:[{selector:"pre:not([data-w-e-type])>code",parseElemHtml:function(e,t,r){return{type:"code",language:"",children:[{text:k(e)[0].textContent||""}]}}},Lae]},zae=function(){function e(){this.title=Q("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 e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return t.isFullScreen},e.prototype.isDisabled=function(t){return!1},e.prototype.exec=function(t,r){t.isFullScreen?t.unFullScreen():t.fullScreen()},e}(),$ae={menus:[{key:"fullScreen",factory:function(){return new zae}}]},Hae=function(){function e(){this.title=Q("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 e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){var r=t.selection;return r==null||!!R.isExpanded(r)},e.prototype.exec=function(t,r){var n=t.selection;if(n!=null){var o=[n.anchor.path[0]];N.insertNodes(t,{type:"paragraph",children:[{text:""}]},{at:o}),t.select(E.start(t,o))}},e}(),Uae=[Qre,Tne,dae,vae,Eae,Cae,toe,kae,voe,Hne,Mae,hoe,Ane,Dre,ioe,Aae,$ae,{menus:[{key:"enter",factory:function(){return new Hae}}]}];Wr("en",{listModule:{unOrderedList:"Unordered list",orderedList:"Ordered list"}}),Wr("zh-CN",{listModule:{unOrderedList:"无序列表",orderedList:"有序列表"}});var hB=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function U8(e){var t={exports:{}};return e(t,t.exports),t.exports}var Bi,Vg,Yh=function(e){return e&&e.Math==Math&&e},we=Yh(typeof globalThis=="object"&&globalThis)||Yh(typeof window=="object"&&window)||Yh(typeof self=="object"&&self)||Yh(typeof hB=="object"&&hB)||function(){return this}()||Function("return this")(),gR=Function.prototype,ZE=gR.bind,QE=gR.call,Vae=ZE&&ZE.bind(QE),Pe=ZE?function(e){return e&&Vae(QE,e)}:function(e){return e&&function(){return QE.apply(e,arguments)}},At=function(e){try{return!!e()}catch{return!0}},Wae=Pe({}.toString),Gae=Pe("".slice),ti=function(e){return Gae(Wae(e),8,-1)},Kb=we.Object,qae=Pe("".split),vR=At(function(){return!Kb("z").propertyIsEnumerable(0)})?function(e){return ti(e)=="String"?qae(e,""):Kb(e)}:Kb,Kae=we.TypeError,ey=function(e){if(e==null)throw Kae("Can't call method on "+e);return e},fc=function(e){return vR(ey(e))},Xae=Object.defineProperty,V8=function(e,t){try{Xae(we,e,{value:t,configurable:!0,writable:!0})}catch{we[e]=t}return t},ta=we["__core-js_shared__"]||V8("__core-js_shared__",{}),W8=U8(function(e){(e.exports=function(t,r){return ta[t]||(ta[t]=r!==void 0?r:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),Yae=we.Object,Gp=function(e){return Yae(ey(e))},Jae=Pe({}.hasOwnProperty),Qt=Object.hasOwn||function(e,t){return Jae(Gp(e),t)},Zae=0,Qae=Math.random(),eue=Pe(1 .toString),G8=function(e){return"Symbol("+(e===void 0?"":e)+")_"+eue(++Zae+Qae,36)},Tt=function(e){return typeof e=="function"},tue=function(e){return Tt(e)?e:void 0},qp=function(e,t){return arguments.length<2?tue(we[e]):we[e]&&we[e][t]},Xb=qp("navigator","userAgent")||"",gB=we.process,vB=we.Deno,mB=gB&&gB.versions||vB&&vB.version,yB=mB&&mB.v8;yB&&(Vg=(Bi=yB.split("."))[0]>0&&Bi[0]<4?1:+(Bi[0]+Bi[1])),!Vg&&Xb&&(!(Bi=Xb.match(/Edge\/(\d+)/))||Bi[1]>=74)&&(Bi=Xb.match(/Chrome\/(\d+)/))&&(Vg=+Bi[1]);var Jh,e6=Vg,t6=!!Object.getOwnPropertySymbols&&!At(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&e6&&e6<41}),q8=t6&&!Symbol.sham&&typeof Symbol.iterator=="symbol",lf=W8("wks"),Ou=we.Symbol,bB=Ou&&Ou.for,rue=q8?Ou:Ou&&Ou.withoutSetter||G8,pr=function(e){if(!Qt(lf,e)||!t6&&typeof lf[e]!="string"){var t="Symbol."+e;t6&&Qt(Ou,e)?lf[e]=Ou[e]:lf[e]=q8&&bB?bB(t):rue(t)}return lf[e]},kt=function(e){return typeof e=="object"?e!==null:Tt(e)},nue=we.String,oue=we.TypeError,Gr=function(e){if(kt(e))return e;throw oue(nue(e)+" is not an object")},ya=!At(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),r6=we.document,iue=kt(r6)&&kt(r6.createElement),K8=function(e){return iue?r6.createElement(e):{}},mR=!ya&&!At(function(){return Object.defineProperty(K8("div"),"a",{get:function(){return 7}}).a!=7}),cf=Function.prototype.call,ir=cf.bind?cf.bind(cf):function(){return cf.apply(cf,arguments)},w0=Pe({}.isPrototypeOf),aue=we.Object,Yb=q8?function(e){return typeof e=="symbol"}:function(e){var t=qp("Symbol");return Tt(t)&&w0(t.prototype,aue(e))},uue=we.String,n6=function(e){try{return uue(e)}catch{return"Object"}},sue=we.TypeError,X8=function(e){if(Tt(e))return e;throw sue(n6(e)+" is not a function")},Gd=function(e,t){var r=e[t];return r==null?void 0:X8(r)},lue=we.TypeError,cue=we.TypeError,fue=pr("toPrimitive"),Y8=function(e){var t=function(r,n){if(!kt(r)||Yb(r))return r;var o,i=Gd(r,fue);if(i){if(o=ir(i,r,n),!kt(o)||Yb(o))return o;throw cue("Can't convert object to primitive value")}return function(a,u){var s,l;if(Tt(s=a.toString)&&!kt(l=ir(s,a))||Tt(s=a.valueOf)&&!kt(l=ir(s,a))||u!=="string")return l;throw lue("Can't convert object to primitive value")}(r,n)}(e,"string");return Yb(t)?t:t+""},due=we.TypeError,wB=Object.defineProperty,ls={f:ya?wB:function(e,t,r){if(Gr(e),t=Y8(t),Gr(r),mR)try{return wB(e,t,r)}catch{}if("get"in r||"set"in r)throw due("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},pue=Math.ceil,hue=Math.floor,Kp=function(e){var t=+e;return t!=t||t===0?0:(t>0?hue:pue)(t)},gue=Math.max,vue=Math.min,o6=function(e,t){var r=Kp(e);return r<0?gue(r+t,0):vue(r,t)},mue=Math.min,yR=function(e){return e>0?mue(Kp(e),9007199254740991):0},dc=function(e){return yR(e.length)},EB=function(e){return function(t,r,n){var o,i=fc(t),a=dc(i),u=o6(n,a);if(e&&r!=r){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===r)return e||u||0;return!e&&-1}},bR={includes:EB(!0),indexOf:EB(!1)},ty={},yue=bR.indexOf,DB=Pe([].push),wR=function(e,t){var r,n=fc(e),o=0,i=[];for(r in n)!Qt(ty,r)&&Qt(n,r)&&DB(i,r);for(;t.length>o;)Qt(n,r=t[o++])&&(~yue(i,r)||DB(i,r));return i},E0=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],bue=Object.keys||function(e){return wR(e,E0)},wue=ya?Object.defineProperties:function(e,t){Gr(e);for(var r,n=fc(t),o=bue(t),i=o.length,a=0;i>a;)ls.f(e,r=o[a++],n[r]);return e},Eue=qp("document","documentElement"),CB=W8("keys"),J8=function(e){return CB[e]||(CB[e]=G8(e))},ER=J8("IE_PROTO"),Jb=function(){},DR=function(e){return"<script>"+e+"<\/script>"},SB=function(e){e.write(DR("")),e.close();var t=e.parentWindow.Object;return e=null,t},Wg=function(){try{Jh=new ActiveXObject("htmlfile")}catch{}var e,t;Wg=typeof document<"u"?document.domain&&Jh?SB(Jh):((t=K8("iframe")).style.display="none",Eue.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(DR("document.F=Object")),e.close(),e.F):SB(Jh);for(var r=E0.length;r--;)delete Wg.prototype[E0[r]];return Wg()};ty[ER]=!0;var Z8=Object.create||function(e,t){var r;return e!==null?(Jb.prototype=Gr(e),r=new Jb,Jb.prototype=null,r[ER]=e):r=Wg(),t===void 0?r:wue(r,t)},i6=pr("unscopables"),a6=Array.prototype;a6[i6]==null&&ls.f(a6,i6,{configurable:!0,value:Z8(null)});var ud=function(e){a6[i6][e]=!0},zl={},Due=Pe(Function.toString);Tt(ta.inspectSource)||(ta.inspectSource=function(e){return Due(e)});var D0,sd,C0,Q8=ta.inspectSource,xB=we.WeakMap,CR=Tt(xB)&&/native code/.test(Q8(xB)),ry=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},ra=ya?function(e,t,r){return ls.f(e,t,ry(1,r))}:function(e,t,r){return e[t]=r,e},u6=we.TypeError,Cue=we.WeakMap;if(CR||ta.state){var Wa=ta.state||(ta.state=new Cue),Sue=Pe(Wa.get),AB=Pe(Wa.has),xue=Pe(Wa.set);D0=function(e,t){if(AB(Wa,e))throw new u6("Object already initialized");return t.facade=e,xue(Wa,e,t),t},sd=function(e){return Sue(Wa,e)||{}},C0=function(e){return AB(Wa,e)}}else{var js=J8("state");ty[js]=!0,D0=function(e,t){if(Qt(e,js))throw new u6("Object already initialized");return t.facade=e,ra(e,js,t),t},sd=function(e){return Qt(e,js)?e[js]:{}},C0=function(e){return Qt(e,js)}}var Bu,OB,BB,Oo={set:D0,get:sd,has:C0,enforce:function(e){return C0(e)?sd(e):D0(e,{})},getterFor:function(e){return function(t){var r;if(!kt(t)||(r=sd(t)).type!==e)throw u6("Incompatible receiver, "+e+" required");return r}}},kB={}.propertyIsEnumerable,FB=Object.getOwnPropertyDescriptor,Aue={f:FB&&!kB.call({1:2},1)?function(e){var t=FB(this,e);return!!t&&t.enumerable}:kB},TB=Object.getOwnPropertyDescriptor,SR={f:ya?TB:function(e,t){if(e=fc(e),t=Y8(t),mR)try{return TB(e,t)}catch{}if(Qt(e,t))return ry(!ir(Aue.f,e,t),e[t])}},xR=Function.prototype,Oue=ya&&Object.getOwnPropertyDescriptor,_B=Qt(xR,"name"),eD={PROPER:_B&&(function(){}).name==="something",CONFIGURABLE:_B&&(!ya||ya&&Oue(xR,"name").configurable)},ui=U8(function(e){var t=eD.CONFIGURABLE,r=Oo.get,n=Oo.enforce,o=String(String).split("String");(e.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;Tt(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Qt(u,"name")||t&&u.name!==p)&&ra(u,"name",p),(l=n(u)).source||(l.source=o.join(typeof p=="string"?p:""))),i!==we?(c?!d&&i[a]&&(f=!0):delete i[a],f?i[a]=u:ra(i,a,u)):f?i[a]=u:V8(a,u)})(Function.prototype,"toString",function(){return Tt(this)&&r(this).source||Q8(this)})}),Bue=E0.concat("length","prototype"),S0={f:Object.getOwnPropertyNames||function(e){return wR(e,Bue)}},kue={f:Object.getOwnPropertySymbols},Fue=Pe([].concat),Tue=qp("Reflect","ownKeys")||function(e){var t=S0.f(Gr(e)),r=kue.f;return r?Fue(t,r(e)):t},_ue=function(e,t){for(var r=Tue(t),n=ls.f,o=SR.f,i=0;i<r.length;i++){var a=r[i];Qt(e,a)||n(e,a,o(t,a))}},jue=/#|\.prototype\./,Xp=function(e,t){var r=Nue[Pue(e)];return r==Rue||r!=Iue&&(Tt(t)?At(t):!!t)},Pue=Xp.normalize=function(e){return String(e).replace(jue,".").toLowerCase()},Nue=Xp.data={},Iue=Xp.NATIVE="N",Rue=Xp.POLYFILL="P",s6=Xp,Lue=SR.f,ba=function(e,t){var r,n,o,i,a,u=e.target,s=e.global,l=e.stat;if(r=s?we:l?we[u]||V8(u,{}):(we[u]||{}).prototype)for(n in t){if(i=t[n],o=e.noTargetGet?(a=Lue(r,n))&&a.value:r[n],!s6(s?n:u+(l?".":"#")+n,e.forced)&&o!==void 0){if(typeof i==typeof o)continue;_ue(i,o)}(e.sham||o&&o.sham)&&ra(i,"sham",!0),ui(r,n,i,e)}},Mue=!At(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),jB=J8("IE_PROTO"),l6=we.Object,zue=l6.prototype,x0=Mue?l6.getPrototypeOf:function(e){var t=Gp(e);if(Qt(t,jB))return t[jB];var r=t.constructor;return Tt(r)&&t instanceof r?r.prototype:t instanceof l6?zue:null},c6=pr("iterator"),AR=!1;[].keys&&("next"in(BB=[].keys())?(OB=x0(x0(BB)))!==Object.prototype&&(Bu=OB):AR=!0);var $ue=Bu==null||At(function(){var e={};return Bu[c6].call(e)!==e});$ue&&(Bu={}),Tt(Bu[c6])||ui(Bu,c6,function(){return this});var tD={IteratorPrototype:Bu,BUGGY_SAFARI_ITERATORS:AR},Hue=ls.f,PB=pr("toStringTag"),f6=function(e,t,r){e&&!Qt(e=r?e:e.prototype,PB)&&Hue(e,PB,{configurable:!0,value:t})},Uue=tD.IteratorPrototype,Vue=function(){return this},Wue=we.String,Gue=we.TypeError,A0=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=Pe(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),t=r instanceof Array}catch{}return function(n,o){return Gr(n),function(i){if(typeof i=="object"||Tt(i))return i;throw Gue("Can't set "+Wue(i)+" as a prototype")}(o),t?e(n,o):n.__proto__=o,n}}():void 0),que=eD.PROPER,Kue=eD.CONFIGURABLE,NB=tD.IteratorPrototype,Zb=tD.BUGGY_SAFARI_ITERATORS,ff=pr("iterator"),Xue=function(){return this},OR=function(e,t,r,n,o,i,a){(function(g,y,h,b){var w=y+" Iterator";g.prototype=Z8(Uue,{next:ry(1,h)}),f6(g,w,!1),zl[w]=Vue})(r,t,n);var u,s,l=function(g){if(g===o&&v)return v;if(!Zb&&g in d)return d[g];switch(g){case"keys":case"values":case"entries":return function(){return new r(this,g)}}return function(){return new r(this)}},c=t+" Iterator",f=!1,d=e.prototype,p=d[ff]||d["@@iterator"]||o&&d[o],v=!Zb&&p||l(o),m=t=="Array"&&d.entries||p;return m&&(u=x0(m.call(new e)))!==Object.prototype&&u.next&&(x0(u)!==NB&&(A0?A0(u,NB):Tt(u[ff])||ui(u,ff,Xue)),f6(u,c,!0)),que&&o=="values"&&p&&p.name!=="values"&&(Kue?ra(d,"name","values"):(f=!0,v=function(){return ir(p,this)})),o&&(s={values:l("values"),keys:l("keys"),entries:l("entries")},a||ba({target:t,proto:!0,forced:Zb||f},s)),d[ff]!==v&&ui(d,ff,v,{name:o}),zl[t]=v,s},Yue=Oo.set,Jue=Oo.getterFor("Array Iterator"),qf=OR(Array,"Array",function(e,t){Yue(this,{type:"Array Iterator",target:fc(e),index:0,kind:t})},function(){var e=Jue(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,{value:void 0,done:!0}):r=="keys"?{value:n,done:!1}:r=="values"?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}},"values");zl.Arguments=zl.Array,ud("keys"),ud("values"),ud("entries");var BR={};BR[pr("toStringTag")]="z";var rD=String(BR)==="[object z]",Zue=pr("toStringTag"),Que=we.Object,ese=ti(function(){return arguments}())=="Arguments",ny=rD?ti:function(e){var t,r,n;return e===void 0?"Undefined":e===null?"Null":typeof(r=function(o,i){try{return o[i]}catch{}}(t=Que(e),Zue))=="string"?r:ese?ti(t):(n=ti(t))=="Object"&&Tt(t.callee)?"Arguments":n},tse=rD?{}.toString:function(){return"[object "+ny(this)+"]"};rD||ui(Object.prototype,"toString",tse,{unsafe:!0});var rse=we.String,Go=function(e){if(ny(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return rse(e)},nse=Pe("".charAt),IB=Pe("".charCodeAt),ose=Pe("".slice),ise=function(e){return function(t,r){var n,o,i=Go(ey(t)),a=Kp(r),u=i.length;return a<0||a>=u?e?"":void 0:(n=IB(i,a))<55296||n>56319||a+1===u||(o=IB(i,a+1))<56320||o>57343?e?nse(i,a):n:e?ose(i,a,a+2):o-56320+(n-55296<<10)+65536}},kR={charAt:ise(!0)},ase=kR.charAt,use=Oo.set,sse=Oo.getterFor("String Iterator");OR(String,"String",function(e){use(this,{type:"String Iterator",string:Go(e),index:0})},function(){var e,t=sse(this),r=t.string,n=t.index;return n>=r.length?{value:void 0,done:!0}:(e=ase(r,n),t.index+=e.length,{value:e,done:!1})});var d6=function(e,t,r){for(var n in t)ui(e,n,t[n],r);return e},lse=we.Array,cse=Math.max,RB=S0.f,LB=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],fse={f:function(e){return LB&&ti(e)=="Window"?function(t){try{return RB(t)}catch{return function(r,n,o){for(var i,a,u,s,l=dc(r),c=o6(void 0,l),f=o6(l,l),d=lse(cse(f-c,0)),p=0;c<f;c++,p++)i=d,a=p,u=r[c],(s=Y8(a))in i?ls.f(i,s,ry(0,u)):i[s]=u;return d.length=p,d}(LB)}}(e):RB(fc(e))}},MB=At(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}),Zh=Object.isExtensible,lu=At(function(){Zh(1)})||MB?function(e){return!!kt(e)&&(!MB||ti(e)!="ArrayBuffer")&&(!Zh||Zh(e))}:Zh,dse=!At(function(){return Object.isExtensible(Object.preventExtensions({}))}),nD=U8(function(e){var t=ls.f,r=!1,n=G8("meta"),o=0,i=function(u){t(u,n,{value:{objectID:"O"+o++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},r=!0;var u=S0.f,s=Pe([].splice),l={};l[n]=1,u(l).length&&(S0.f=function(c){for(var f=u(c),d=0,p=f.length;d<p;d++)if(f[d]===n){s(f,d,1);break}return f},ba({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:fse.f}))},fastKey:function(u,s){if(!kt(u))return typeof u=="symbol"?u:(typeof u=="string"?"S":"P")+u;if(!Qt(u,n)){if(!lu(u))return"F";if(!s)return"E";i(u)}return u[n].objectID},getWeakData:function(u,s){if(!Qt(u,n)){if(!lu(u))return!0;if(!s)return!1;i(u)}return u[n].weakData},onFreeze:function(u){return dse&&r&&lu(u)&&!Qt(u,n)&&i(u),u}};ty[n]=!0}),zB=Pe(Pe.bind),oD=function(e,t){return X8(e),t===void 0?e:zB?zB(e,t):function(){return e.apply(t,arguments)}},pse=pr("iterator"),hse=Array.prototype,gse=pr("iterator"),$B=function(e){if(e!=null)return Gd(e,gse)||Gd(e,"@@iterator")||zl[ny(e)]},vse=we.TypeError,HB=function(e,t,r){var n,o;Gr(e);try{if(!(n=Gd(e,"return"))){if(t==="throw")throw r;return r}n=ir(n,e)}catch(i){o=!0,n=i}if(t==="throw")throw r;if(o)throw n;return Gr(n),r},mse=we.TypeError,Gg=function(e,t){this.stopped=e,this.result=t},UB=Gg.prototype,FR=function(e,t,r){var n,o,i,a,u,s,l,c,f=r&&r.that,d=!(!r||!r.AS_ENTRIES),p=!(!r||!r.IS_ITERATOR),v=!(!r||!r.INTERRUPTED),m=oD(t,f),g=function(h){return n&&HB(n,"normal",h),new Gg(!0,h)},y=function(h){return d?(Gr(h),v?m(h[0],h[1],g):m(h[0],h[1])):v?m(h,g):m(h)};if(p)n=e;else{if(!(o=$B(e)))throw mse(n6(e)+" is not iterable");if((c=o)!==void 0&&(zl.Array===c||hse[pse]===c)){for(i=0,a=dc(e);a>i;i++)if((u=y(e[i]))&&w0(UB,u))return u;return new Gg(!1)}n=function(h,b){var w=arguments.length<2?$B(h):b;if(X8(w))return Gr(ir(w,h));throw vse(n6(h)+" is not iterable")}(e,o)}for(s=n.next;!(l=ir(s,n)).done;){try{u=y(l.value)}catch(h){HB(n,"throw",h)}if(typeof u=="object"&&u&&w0(UB,u))return u}return new Gg(!1)},yse=we.TypeError,TR=function(e,t){if(w0(t,e))return e;throw yse("Incorrect invocation")},_R=pr("iterator"),jR=!1;try{var bse=0,VB={next:function(){return{done:!!bse++}},return:function(){jR=!0}};VB[_R]=function(){return this},Array.from(VB,function(){throw 2})}catch{}var p6=Array.isArray||function(e){return ti(e)=="Array"},PR=function(){},wse=[],NR=qp("Reflect","construct"),iD=/^\s*(?:class|function)\b/,Ese=Pe(iD.exec),Dse=!iD.exec(PR),df=function(e){if(!Tt(e))return!1;try{return NR(PR,wse,e),!0}catch{return!1}},Cse=!NR||At(function(){var e;return df(df.call)||!df(Object)||!df(function(){e=!0})||e})?function(e){if(!Tt(e))return!1;switch(ny(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Dse||!!Ese(iD,Q8(e))}:df,Sse=pr("species"),WB=we.Array,IR=function(e,t){return new(function(r){var n;return p6(r)&&(n=r.constructor,(Cse(n)&&(n===WB||p6(n.prototype))||kt(n)&&(n=n[Sse])===null)&&(n=void 0)),n===void 0?WB:n}(e))(t===0?0:t)},GB=Pe([].push),Qb=function(e){var t=e==1,r=e==2,n=e==3,o=e==4,i=e==6,a=e==7,u=e==5||i;return function(s,l,c,f){for(var d,p,v=Gp(s),m=vR(v),g=oD(l,c),y=dc(m),h=0,b=f||IR,w=t?b(s,y):r||a?b(s,0):void 0;y>h;h++)if((u||h in m)&&(p=g(d=m[h],h,v),e))if(t)w[h]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return h;case 2:GB(w,d)}else switch(e){case 4:return!1;case 7:GB(w,d)}return i?-1:n||o?o:w}},aD={filter:Qb(2),find:Qb(5),findIndex:Qb(6)},Qh=nD.getWeakData,xse=Oo.set,Ase=Oo.getterFor,Ose=aD.find,Bse=aD.findIndex,kse=Pe([].splice),Fse=0,eg=function(e){return e.frozen||(e.frozen=new RR)},RR=function(){this.entries=[]},e2=function(e,t){return Ose(e.entries,function(r){return r[0]===t})};RR.prototype={get:function(e){var t=e2(this,e);if(t)return t[1]},has:function(e){return!!e2(this,e)},set:function(e,t){var r=e2(this,e);r?r[1]=t:this.entries.push([e,t])},delete:function(e){var t=Bse(this.entries,function(r){return r[0]===e});return~t&&kse(this.entries,t,1),!!~t}};var pf,LR={getConstructor:function(e,t,r,n){var o=e(function(s,l){TR(s,i),xse(s,{type:t,id:Fse++,frozen:void 0}),l!=null&&FR(l,s[n],{that:s,AS_ENTRIES:r})}),i=o.prototype,a=Ase(t),u=function(s,l,c){var f=a(s),d=Qh(Gr(l),!0);return d===!0?eg(f).set(l,c):d[f.id]=c,s};return d6(i,{delete:function(s){var l=a(this);if(!kt(s))return!1;var c=Qh(s);return c===!0?eg(l).delete(s):c&&Qt(c,l.id)&&delete c[l.id]},has:function(s){var l=a(this);if(!kt(s))return!1;var c=Qh(s);return c===!0?eg(l).has(s):c&&Qt(c,l.id)}}),d6(i,r?{get:function(s){var l=a(this);if(kt(s)){var c=Qh(s);return c===!0?eg(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}},tg=Oo.enforce,Tse=!we.ActiveXObject&&"ActiveXObject"in we,MR=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},_se=function(e,t,r){var n=e.indexOf("Map")!==-1,o=e.indexOf("Weak")!==-1,i=n?"set":"add",a=we[e],u=a&&a.prototype,s=a,l={},c=function(g){var y=Pe(u[g]);ui(u,g,g=="add"?function(h){return y(this,h===0?0:h),this}:g=="delete"?function(h){return!(o&&!kt(h))&&y(this,h===0?0:h)}:g=="get"?function(h){return o&&!kt(h)?void 0:y(this,h===0?0:h)}:g=="has"?function(h){return!(o&&!kt(h))&&y(this,h===0?0:h)}:function(h,b){return y(this,h===0?0:h,b),this})};if(s6(e,!Tt(a)||!(o||u.forEach&&!At(function(){new a().entries().next()}))))s=r.getConstructor(t,e,n,i),nD.enable();else if(s6(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=At(function(){f.has(1)}),v=function(g,y){if(!jR)return!1;var h=!1;try{var b={};b[_R]=function(){return{next:function(){return{done:h=!0}}}},function(w){new a(w)}(b)}catch{}return h}(),m=!o&&At(function(){for(var g=new a,y=5;y--;)g[i](y,y);return!g.has(-0)});v||((s=t(function(g,y){TR(g,u);var h=function(b,w,D){var S,C;return A0&&Tt(S=w.constructor)&&S!==D&&kt(C=S.prototype)&&C!==D.prototype&&A0(b,C),b}(new a,g,s);return y!=null&&FR(y,h[i],{that:h,AS_ENTRIES:n}),h})).prototype=u,u.constructor=s),(p||m)&&(c("delete"),c("has"),n&&c("get")),(m||d)&&c(i),o&&u.clear&&delete u.clear}return l[e]=s,ba({global:!0,forced:s!=a},l),f6(s,e),o||r.setStrong(s,e,n),s}("WeakMap",MR,LR);if(CR&&Tse){pf=LR.getConstructor(MR,"WeakMap",!0),nD.enable();var hf=_se.prototype,qB=Pe(hf.delete),rg=Pe(hf.has),KB=Pe(hf.get),XB=Pe(hf.set);d6(hf,{delete:function(e){if(kt(e)&&!lu(e)){var t=tg(this);return t.frozen||(t.frozen=new pf),qB(this,e)||t.frozen.delete(e)}return qB(this,e)},has:function(e){if(kt(e)&&!lu(e)){var t=tg(this);return t.frozen||(t.frozen=new pf),rg(this,e)||t.frozen.has(e)}return rg(this,e)},get:function(e){if(kt(e)&&!lu(e)){var t=tg(this);return t.frozen||(t.frozen=new pf),rg(this,e)?KB(this,e):t.frozen.get(e)}return KB(this,e)},set:function(e,t){if(kt(e)&&!lu(e)){var r=tg(this);r.frozen||(r.frozen=new pf),rg(this,e)?XB(this,e,t):r.frozen.set(e,t)}else XB(this,e,t);return this}})}var zR={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,YB=t2&&t2.constructor&&t2.constructor.prototype,jse=YB===Object.prototype?void 0:YB,r2=pr("iterator"),JB=pr("toStringTag"),n2=qf.values,$R=function(e,t){if(e){if(e[r2]!==n2)try{ra(e,r2,n2)}catch{e[r2]=n2}if(e[JB]||ra(e,JB,t),zR[t]){for(var r in qf)if(e[r]!==qf[r])try{ra(e,r,qf[r])}catch{e[r]=qf[r]}}}};for(var o2 in zR)$R(we[o2]&&we[o2].prototype,o2);$R(jse,"DOMTokenList");var h6=new WeakMap,Pse={type:"list-item",renderElem:function(e,t,r){h6.set(e,r);var n=e,o=n.level,i=o===void 0?0:o,a=n.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=A.findPath(f,w);if(D[0]===0)return 1;for(;D[0]>0;){var S=P.previous(D),C=E.node(f,S);if(C==null)break;var O=C[0],F=O.level,L=F===void 0?0:F,H=O.type,M=O.ordered;if(H!==v||L<g)break;if(L===g){if(M!==h)break;b++}w=O,D=S}return b}(r,e);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];oe.isText(g)&&(d=g)}return d==null?"":d.color||""}(e);return be("div",{style:u},be("span",{contentEditable:!1,style:{marginRight:"0.5em",color:c},"data-w-e-reserve":!0},s),be("span",null,t))}},g6=function(e,t){return g6=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])},g6(e,t);/*! *****************************************************************************
- Copyright (c) Microsoft Corporation.
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted.
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THIS SOFTWARE.
- ***************************************************************************** */};function HR(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}g6(e,t),e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}function ZB(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function ld(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(t===void 0||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(u){o={error:u}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function QB(e){return E.nodes(e,{at:e.selection||void 0,match:function(t){return A.findPath(e,t).length===1}})}var Nse=bR.includes;ba({target:"Array",proto:!0},{includes:function(e){return Nse(this,e,arguments.length>1?arguments[1]:void 0)}}),ud("includes");var ek,i2,Ise=function(){var e=Gr(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},uD=we.RegExp,UR=At(function(){var e=uD("a","y");return e.lastIndex=2,e.exec("abcd")!=null});UR||At(function(){return!uD("a","y").sticky});var Rse={BROKEN_CARET:UR||At(function(){var e=uD("^r","gy");return e.lastIndex=2,e.exec("str")!=null})},Lse=we.RegExp,Mse=At(function(){var e=Lse(".","s");return!(e.dotAll&&e.exec(`
- `)&&e.flags==="s")}),zse=we.RegExp,$se=At(function(){var e=zse("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),Hse=Oo.get,Use=W8("native-string-replace",String.prototype.replace),O0=RegExp.prototype.exec,v6=O0,Vse=Pe("".charAt),Wse=Pe("".indexOf),Gse=Pe("".replace),a2=Pe("".slice),u2=(i2=/b*/g,ir(O0,ek=/a/,"a"),ir(O0,i2,"a"),ek.lastIndex!==0||i2.lastIndex!==0),tk=Rse.BROKEN_CARET,s2=/()??/.exec("")[1]!==void 0;(u2||s2||tk||Mse||$se)&&(v6=function(e){var t,r,n,o,i,a,u,s=this,l=Hse(s),c=Go(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=ir(v6,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=tk&&s.sticky,v=ir(Ise,s),m=s.source,g=0,y=c;if(p&&(v=Gse(v,"y",""),Wse(v,"g")===-1&&(v+="g"),y=a2(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&Vse(c,s.lastIndex-1)!==`
- `)&&(m="(?: "+m+")",y=" "+y,g++),r=new RegExp("^(?:"+m+")",v)),s2&&(r=new RegExp("^"+m+"$(?!\\s)",v)),u2&&(n=s.lastIndex),o=ir(O0,p?r:s,y),p?o?(o.input=a2(o.input,g),o[0]=a2(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:u2&&o&&(s.lastIndex=s.global?o.index+o[0].length:n),s2&&o&&o.length>1&&ir(Use,o[0],r,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&d)for(o.groups=a=Z8(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var B0=v6;ba({target:"RegExp",proto:!0,forced:/./.exec!==B0},{exec:B0});var VR=function(){function e(){this.type="list-item",this.tag="button"}return e.prototype.getListNode=function(t){var r=this.type;return A.getSelectedNodeByType(t,r)},e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){var r=this.getListNode(t);if(r==null)return!1;var n=r.ordered;return(n!==void 0&&n)===this.ordered},e.prototype.isDisabled=function(t){return t.selection==null||!!A.getSelectedElems(t).some(function(r){if(E.isVoid(t,r)&&E.isBlock(t,r))return!0;var n=r.type;return!!["pre","code","table"].includes(n)||void 0})},e.prototype.exec=function(t,r){this.isActive(t)?N.setNodes(t,{type:"paragraph",ordered:void 0,level:void 0}):N.setNodes(t,{type:"list-item",ordered:this.ordered,indent:void 0})},e}(),qse='<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>',Kse='<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>',Xse=function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.ordered=!1,r.title=Q("listModule.unOrderedList"),r.iconSvg=qse,r}return HR(t,e),t}(VR),Yse=function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.ordered=!0,r.title=Q("listModule.orderedList"),r.iconSvg=Kse,r}return HR(t,e),t}(VR),Jse={key:"bulletedList",factory:function(){return new Xse}},Zse={key:"numberedList",factory:function(){return new Yse}},rk=[],Qse={type:"list-item",elemToHtml:function(e,t){var r="",n="",o=e.ordered,i=o!==void 0&&o?"ol":"ul",a=function(l){var c=h6.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=A.findPath(c,l);if(y[0]===0)return g+1;var h=P.previous(y),b=E.node(c,h);if(!b)return 0;var w=ld(b,1)[0];if(A.getNodeType(w)!==d)return g+1;var D=w,S=D.ordered,C=S!==void 0&&S,O=D.level,F=O===void 0?0:O;return F<g?g-F:F>g?0:F===g?C===v?0:1:0}(e);if(a>0)for(var u=0;u<a;u++)r+="<"+i+">",rk.push(i);var s=function(l){var c=h6.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=A.findPath(c,l);if(y[0]===c.children.length-1)return g+1;var h=P.next(y),b=E.node(c,h);if(!b)return 0;var w=ld(b,1)[0];if(A.getNodeType(w)!==d)return g+1;var D=w,S=D.ordered,C=S!==void 0&&S,O=D.level,F=O===void 0?0:O;return F<g?g-F:F>g?0:F===g?C===v?0:1:0}(e);if(s>0)for(u=0;u<s;u++)n+="</"+rk.pop()+">";return{html:"<li>"+t+"</li>",prefix:r,suffix:n}}},ele=pr("species"),tle=aD.filter,rle=e6>=51||!At(function(){var e=[];return(e.constructor={})[ele]=function(){return{foo:1}},e.filter(Boolean).foo!==1});ba({target:"Array",proto:!0,forced:!rle},{filter:function(e){return tle(this,e,arguments.length>1?arguments[1]:void 0)}});var sD=Function.prototype,nk=sD.apply,nle=sD.bind,ok=sD.call,ole=typeof Reflect=="object"&&Reflect.apply||(nle?ok.bind(nk):function(){return ok.apply(nk,arguments)}),ik=(pr("species"),RegExp.prototype),ile=kR.charAt,ale=function(e,t,r){return t+(r?ile(e,t).length:1)},ule=Math.floor,l2=Pe("".charAt),sle=Pe("".replace),c2=Pe("".slice),lle=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,cle=/\$([$&'`]|\d{1,2})/g,fle=function(e,t,r,n,o,i){var a=r+e.length,u=n.length,s=cle;return o!==void 0&&(o=Gp(o),s=lle),sle(i,s,function(l,c){var f;switch(l2(c,0)){case"$":return"$";case"&":return e;case"`":return c2(t,0,r);case"'":return c2(t,a);case"<":f=o[c2(c,1,-1)];break;default:var d=+c;if(d===0)return l;if(d>u){var p=ule(d/10);return p===0?l:p<=u?n[p-1]===void 0?l2(c,1):n[p-1]+l2(c,1):l}f=n[d-1]}return f===void 0?"":f})},dle=we.TypeError,ple=function(e,t){var r=e.exec;if(Tt(r)){var n=ir(r,e,t);return n!==null&&Gr(n),n}if(ti(e)==="RegExp")return ir(B0,e,t);throw dle("RegExp#exec called on incompatible receiver")},m6=pr("replace"),hle=Math.max,gle=Math.min,vle=Pe([].concat),f2=Pe([].push),ak=Pe("".indexOf),uk=Pe("".slice),mle="a".replace(/./,"$0")==="$0",sk=!!/./[m6]&&/./[m6]("a","$0")==="";(function(e,t,r,n){var o=pr(e),i=!At(function(){var l={};return l[o]=function(){return 7},""[e](l)!=7}),a=i&&!At(function(){var l=!1,c=/a/;return c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||r){var u=Pe(/./[o]),s=function(l,c,f){var d=sk?"$":"$0";return[function(p,v){var m=ey(this),g=p==null?void 0:Gd(p,m6);return g?ir(g,p,m,v):ir(c,Go(m),p,v)},function(p,v){var m=Gr(this),g=Go(p);if(typeof v=="string"&&ak(v,d)===-1&&ak(v,"$<")===-1){var y=f(c,m,g,v);if(y.done)return y.value}var h=Tt(v);h||(v=Go(v));var b=m.global;if(b){var w=m.unicode;m.lastIndex=0}for(var D=[];;){var S=ple(m,g);if(S===null||(f2(D,S),!b))break;Go(S[0])===""&&(m.lastIndex=ale(g,yR(m.lastIndex),w))}for(var C,O="",F=0,L=0;L<D.length;L++){for(var H=Go((S=D[L])[0]),M=hle(gle(Kp(S.index),g.length),0),K=[],V=1;V<S.length;V++)f2(K,(C=S[V])===void 0?C:String(C));var G=S.groups;if(h){var q=vle([H],K,M,g);G!==void 0&&f2(q,G);var re=Go(ole(v,void 0,q))}else re=fle(H,g,M,K,G,v);M>=F&&(O+=uk(g,F,M)+re,F=M+H.length)}return O+uk(g,F)}]}(0,""[e],function(l,c,f,d,p){var v=Pe(l),m=c.exec;return m===B0||m===ik.exec?i&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:v(f,c,d)}:{done:!1}});ui(String.prototype,e,s[0]),ui(ik,o,s[1])}})("replace",0,!!At(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"})||!mle||sk);var yle=we.TypeError,WR=function(e,t,r,n,o,i,a,u){for(var s,l,c=o,f=0,d=!!a&&oD(a,u);f<n;){if(f in r){if(s=d?d(r[f],f,t):r[f],i>0&&p6(s))l=dc(s),c=WR(e,t,s,l,c,i-1)-1;else{if(c>=9007199254740991)throw yle("Exceed the acceptable array length");e[c]=s}c++}f++}return c},ble=WR;function d2(e){return e.length?e[0].tagName.toLowerCase():""}ba({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=Gp(this),r=dc(t),n=IR(t,0);return n.length=ble(n,t,t,r,0,e===void 0?1:Kp(e)),n}}),ud("flat"),ba({global:!0},{globalThis:we}),An&&(k.fn.append=An),xn&&(k.fn.attr=xn),Ol&&(k.fn.parent=Ol);var wle={renderElems:[Pse],editorPlugin:function(e){var t=e.deleteBackward,r=e.handleTab,n=e.normalizeNode,o=e;return o.deleteBackward=function(i){var a=o.selection;if(a!=null)if(R.isExpanded(a))t(i);else{var u=A.getSelectedNodeByType(o,"list-item");if(u!=null)if(a.focus.offset!==0)t(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 t(i)}else t(i)},o.handleTab=function(){var i,a,u,s,l=o.selection;if(l!=null){if(R.isCollapsed(l)){var c=A.getSelectedNodeByType(o,"list-item");if(c==null)return void r();if(l.focus.offset===0){var f=c.level,d=f===void 0?0:f;return void N.setNodes(o,{level:d+1})}}if(R.isExpanded(l)){var p=0,v=!1;try{for(var m=ZB(QB(o)),g=m.next();!g.done;g=m.next()){var y=ld(g.value,1)[0];A.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 r();try{for(var h=ZB(QB(o)),b=h.next();!b.done;b=h.next()){var w=ld(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 r()}else r()},o.normalizeNode=function(i){var a=ld(i,2),u=a[0],s=a[1],l=A.getNodeType(u);return l!=="bulleted-list"&&l!=="numbered-list"||N.unwrapNodes(o,{at:s}),n([u,s])},o},menus:[Jse,Zse],elemsToHtml:[Qse],parseElemsHtml:[{selector:"ul:not([data-w-e-type]),ol:not([data-w-e-type])",parseElemHtml:function(e,t,r){return t.flat(1/0)}},{selector:"li:not([data-w-e-type])",parseElemHtml:function(e,t,r){var n=k(e);(t=t.filter(function(a){return!!oe.isText(a)||!!r.isInline(a)})).length===0&&(t=[{text:n.text().replace(/\s+/gm," ")}]);var o=function(a){return d2(a.parent())==="ol"}(n),i=function(a){for(var u=0,s=a.parent(),l=d2(s);l==="ul"||l==="ol";)l=d2(s=s.parent()),u++;return u-1}(n);return{type:"list-item",ordered:o,level:i,children:t}}}]},GR=Zu(function(e,t){var r="__lodash_hash_undefined__",n=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 O=typeof at=="object"&&at&&at.Object===Object&&at,F=typeof self=="object"&&self&&self.Object===Object&&self,L=O||F||Function("return this")(),H=t&&!t.nodeType&&t,M=H&&e&&!e.nodeType&&e,K=M&&M.exports===H,V=K&&O.process,G=function(){try{return V&&V.binding&&V.binding("util")}catch{}}(),q=G&&G.isTypedArray;function re(_,I){for(var J=-1,he=_==null?0:_.length;++J<he;)if(I(_[J],J,_))return!0;return!1}function se(_){var I=-1,J=Array(_.size);return _.forEach(function(he,et){J[++I]=[et,he]}),J}function ue(_){var I=-1,J=Array(_.size);return _.forEach(function(he){J[++I]=he}),J}var ae=Array.prototype,B=Function.prototype,x=Object.prototype,j=L["__core-js_shared__"],$=B.toString,X=x.hasOwnProperty,U=function(){var _=/[^.]+$/.exec(j&&j.keys&&j.keys.IE_PROTO||"");return _?"Symbol(src)_1."+_:""}(),ie=x.toString,ge=RegExp("^"+$.call(X).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ve=K?L.Buffer:void 0,De=L.Symbol,W=L.Uint8Array,Ie=x.propertyIsEnumerable,Ae=ae.splice,de=De?De.toStringTag:void 0,Oe=Object.getOwnPropertySymbols,Ot=ve?ve.isBuffer:void 0,$e=function(_,I){return function(J){return _(I(J))}}(Object.keys,Object),Qe=pi(L,"DataView"),gt=pi(L,"Map"),hr=pi(L,"Promise"),Me=pi(L,"Set"),Pr=pi(L,"WeakMap"),jn=pi(Object,"create"),Qn=Ro(Qe),cs=Ro(gt),ja=Ro(hr),Pn=Ro(Me),eo=Ro(Pr),Po=De?De.prototype:void 0,gr=Po?Po.valueOf:void 0;function vr(_){var I=-1,J=_==null?0:_.length;for(this.clear();++I<J;){var he=_[I];this.set(he[0],he[1])}}function mr(_){var I=-1,J=_==null?0:_.length;for(this.clear();++I<J;){var he=_[I];this.set(he[0],he[1])}}function Br(_){var I=-1,J=_==null?0:_.length;for(this.clear();++I<J;){var he=_[I];this.set(he[0],he[1])}}function tr(_){var I=-1,J=_==null?0:_.length;for(this.__data__=new Br;++I<J;)this.add(_[I])}function fn(_){var I=this.__data__=new mr(_);this.size=I.size}function hc(_,I){var J=Lo(_),he=!J&&lh(_),et=!J&&!he&&to(_),je=!J&&!he&&!et&&no(_),T=J||he||et||je,z=T?function(ze,vt){for(var st=-1,Ve=Array(ze);++st<ze;)Ve[st]=vt(st);return Ve}(_.length,String):[],ne=z.length;for(var le in _)!X.call(_,le)||T&&(le=="length"||et&&(le=="offset"||le=="parent")||je&&(le=="buffer"||le=="byteLength"||le=="byteOffset")||gc(le,ne))||z.push(le);return z}function di(_,I){for(var J=_.length;J--;)if(ps(_[J][0],I))return J;return-1}function No(_){return _==null?_===void 0?"[object Undefined]":"[object Null]":de&&de in Object(_)?function(I){var J=X.call(I,de),he=I[de];try{I[de]=void 0;var et=!0}catch{}var je=ie.call(I);return et&&(J?I[de]=he:delete I[de]),je}(_):function(I){return ie.call(I)}(_)}function fs(_){return hi(_)&&No(_)==o}function Pa(_,I,J,he,et){return _===I||(_==null||I==null||!hi(_)&&!hi(I)?_!=_&&I!=I:function(je,T,z,ne,le,ze){var vt=Lo(je),st=Lo(T),Ve=vt?i:qr(je),Xt=st?i:qr(T),yr=(Ve=Ve==o?d:Ve)==d,Na=(Xt=Xt==o?d:Xt)==d,Mo=Ve==Xt;if(Mo&&to(je)){if(!to(T))return!1;vt=!0,yr=!1}if(Mo&&!yr)return ze||(ze=new fn),vt||no(je)?dn(je,T,z,ne,le,ze):function(Re,We,Ge,Bt,kr,Nr,Rn){switch(Ge){case w:if(Re.byteLength!=We.byteLength||Re.byteOffset!=We.byteOffset)return!1;Re=Re.buffer,We=We.buffer;case b:return!(Re.byteLength!=We.byteLength||!Nr(new W(Re),new W(We)));case a:case u:case f:return ps(+Re,+We);case s:return Re.name==We.name&&Re.message==We.message;case v:case g:return Re==We+"";case c:var vi=se;case m:var mc=1&Bt;if(vi||(vi=ue),Re.size!=We.size&&!mc)return!1;var dh=Rn.get(Re);if(dh)return dh==We;Bt|=2,Rn.set(Re,We);var hs=dn(vi(Re),vi(We),Bt,kr,Nr,Rn);return Rn.delete(Re),hs;case y:if(gr)return gr.call(Re)==gr.call(We)}return!1}(je,T,Ve,z,ne,le,ze);if(!(1&z)){var gi=yr&&X.call(je,"__wrapped__"),ye=Na&&X.call(T,"__wrapped__");if(gi||ye){var Ye=gi?je.value():je,_t=ye?T.value():T;return ze||(ze=new fn),le(Ye,_t,z,ne,ze)}}return Mo?(ze||(ze=new fn),function(Re,We,Ge,Bt,kr,Nr){var Rn=1&Ge,vi=Io(Re),mc=vi.length,dh=Io(We).length;if(mc!=dh&&!Rn)return!1;for(var hs=mc;hs--;){var Ia=vi[hs];if(!(Rn?Ia in We:X.call(We,Ia)))return!1}var HC=Nr.get(Re);if(HC&&Nr.get(We))return HC==We;var ph=!0;Nr.set(Re,We),Nr.set(We,Re);for(var Cy=Rn;++hs<mc;){var hh=Re[Ia=vi[hs]],gh=We[Ia];if(Bt)var UC=Rn?Bt(gh,hh,Ia,We,Re,Nr):Bt(hh,gh,Ia,Re,We,Nr);if(!(UC===void 0?hh===gh||kr(hh,gh,Ge,Bt,Nr):UC)){ph=!1;break}Cy||(Cy=Ia=="constructor")}if(ph&&!Cy){var vh=Re.constructor,mh=We.constructor;vh==mh||!("constructor"in Re)||!("constructor"in We)||typeof vh=="function"&&vh instanceof vh&&typeof mh=="function"&&mh instanceof mh||(ph=!1)}return Nr.delete(Re),Nr.delete(We),ph}(je,T,z,ne,le,ze)):!1}(_,I,J,he,Pa,et))}function ds(_){return!(!ch(_)||function(I){return!!U&&U in I}(_))&&(vc(_)?ge:D).test(Ro(_))}function Nn(_){if(J=(I=_)&&I.constructor,he=typeof J=="function"&&J.prototype||x,I!==he)return $e(_);var I,J,he,et=[];for(var je in Object(_))X.call(_,je)&&je!="constructor"&&et.push(je);return et}function dn(_,I,J,he,et,je){var T=1&J,z=_.length,ne=I.length;if(z!=ne&&!(T&&ne>z))return!1;var le=je.get(_);if(le&&je.get(I))return le==I;var ze=-1,vt=!0,st=2&J?new tr:void 0;for(je.set(_,I),je.set(I,_);++ze<z;){var Ve=_[ze],Xt=I[ze];if(he)var yr=T?he(Xt,Ve,ze,I,_,je):he(Ve,Xt,ze,_,I,je);if(yr!==void 0){if(yr)continue;vt=!1;break}if(st){if(!re(I,function(Na,Mo){if(gi=Mo,!st.has(gi)&&(Ve===Na||et(Ve,Na,J,he,je)))return st.push(Mo);var gi})){vt=!1;break}}else if(Ve!==Xt&&!et(Ve,Xt,J,he,je)){vt=!1;break}}return je.delete(_),je.delete(I),vt}function Io(_){return function(I,J,he){var et=J(I);return Lo(I)?et:function(je,T){for(var z=-1,ne=T.length,le=je.length;++z<ne;)je[le+z]=T[z];return je}(et,he(I))}(_,fh,sh)}function In(_,I){var J,he,et=_.__data__;return((he=typeof(J=I))=="string"||he=="number"||he=="symbol"||he=="boolean"?J!=="__proto__":J===null)?et[typeof I=="string"?"string":"hash"]:et.map}function pi(_,I){var J=function(he,et){return he==null?void 0:he[et]}(_,I);return ds(J)?J:void 0}vr.prototype.clear=function(){this.__data__=jn?jn(null):{},this.size=0},vr.prototype.delete=function(_){var I=this.has(_)&&delete this.__data__[_];return this.size-=I?1:0,I},vr.prototype.get=function(_){var I=this.__data__;if(jn){var J=I[_];return J===r?void 0:J}return X.call(I,_)?I[_]:void 0},vr.prototype.has=function(_){var I=this.__data__;return jn?I[_]!==void 0:X.call(I,_)},vr.prototype.set=function(_,I){var J=this.__data__;return this.size+=this.has(_)?0:1,J[_]=jn&&I===void 0?r:I,this},mr.prototype.clear=function(){this.__data__=[],this.size=0},mr.prototype.delete=function(_){var I=this.__data__,J=di(I,_);return!(J<0)&&(J==I.length-1?I.pop():Ae.call(I,J,1),--this.size,!0)},mr.prototype.get=function(_){var I=this.__data__,J=di(I,_);return J<0?void 0:I[J][1]},mr.prototype.has=function(_){return di(this.__data__,_)>-1},mr.prototype.set=function(_,I){var J=this.__data__,he=di(J,_);return he<0?(++this.size,J.push([_,I])):J[he][1]=I,this},Br.prototype.clear=function(){this.size=0,this.__data__={hash:new vr,map:new(gt||mr),string:new vr}},Br.prototype.delete=function(_){var I=In(this,_).delete(_);return this.size-=I?1:0,I},Br.prototype.get=function(_){return In(this,_).get(_)},Br.prototype.has=function(_){return In(this,_).has(_)},Br.prototype.set=function(_,I){var J=In(this,_),he=J.size;return J.set(_,I),this.size+=J.size==he?0:1,this},tr.prototype.add=tr.prototype.push=function(_){return this.__data__.set(_,r),this},tr.prototype.has=function(_){return this.__data__.has(_)},fn.prototype.clear=function(){this.__data__=new mr,this.size=0},fn.prototype.delete=function(_){var I=this.__data__,J=I.delete(_);return this.size=I.size,J},fn.prototype.get=function(_){return this.__data__.get(_)},fn.prototype.has=function(_){return this.__data__.has(_)},fn.prototype.set=function(_,I){var J=this.__data__;if(J instanceof mr){var he=J.__data__;if(!gt||he.length<199)return he.push([_,I]),this.size=++J.size,this;J=this.__data__=new Br(he)}return J.set(_,I),this.size=J.size,this};var sh=Oe?function(_){return _==null?[]:(_=Object(_),function(I,J){for(var he=-1,et=I==null?0:I.length,je=0,T=[];++he<et;){var z=I[he];J(z,he,I)&&(T[je++]=z)}return T}(Oe(_),function(I){return Ie.call(_,I)}))}:function(){return[]},qr=No;function gc(_,I){return!!(I=I??n)&&(typeof _=="number"||S.test(_))&&_>-1&&_%1==0&&_<I}function Ro(_){if(_!=null){try{return $.call(_)}catch{}try{return _+""}catch{}}return""}function ps(_,I){return _===I||_!=_&&I!=I}(Qe&&qr(new Qe(new ArrayBuffer(1)))!=w||gt&&qr(new gt)!=c||hr&&qr(hr.resolve())!=p||Me&&qr(new Me)!=m||Pr&&qr(new Pr)!=h)&&(qr=function(_){var I=No(_),J=I==d?_.constructor:void 0,he=J?Ro(J):"";if(he)switch(he){case Qn:return w;case cs:return c;case ja:return p;case Pn:return m;case eo:return h}return I});var lh=fs(function(){return arguments}())?fs:function(_){return hi(_)&&X.call(_,"callee")&&!Ie.call(_,"callee")},Lo=Array.isArray,to=Ot||function(){return!1};function vc(_){if(!ch(_))return!1;var I=No(_);return I==l||I=="[object GeneratorFunction]"||I=="[object AsyncFunction]"||I=="[object Proxy]"}function ro(_){return typeof _=="number"&&_>-1&&_%1==0&&_<=n}function ch(_){var I=typeof _;return _!=null&&(I=="object"||I=="function")}function hi(_){return _!=null&&typeof _=="object"}var no=q?function(_){return function(I){return _(I)}}(q):function(_){return hi(_)&&ro(_.length)&&!!C[No(_)]};function fh(_){return(I=_)!=null&&ro(I.length)&&!vc(I)?hc(_):Nn(_);var I}e.exports=function(_,I){return Pa(_,I)}});Wr("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"}}),Wr("zh-CN",{tableModule:{deleteCol:"删除列",deleteRow:"删除行",deleteTable:"删除表格",widthAuto:"宽度自适应",insertCol:"插入列",insertRow:"插入行",insertTable:"插入表格",header:"表头"}});var lk=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function qR(e){var t={exports:{}};return e(t,t.exports),t.exports}var ki,qg,ng=function(e){return e&&e.Math==Math&&e},_e=ng(typeof globalThis=="object"&&globalThis)||ng(typeof window=="object"&&window)||ng(typeof self=="object"&&self)||ng(typeof lk=="object"&&lk)||function(){return this}()||Function("return this")(),qt=function(e){try{return!!e()}catch{return!0}},wa=!qt(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),gf=Function.prototype.call,Jt=gf.bind?gf.bind(gf):function(){return gf.apply(gf,arguments)},ck={}.propertyIsEnumerable,fk=Object.getOwnPropertyDescriptor,Ele={f:fk&&!ck.call({1:2},1)?function(e){var t=fk(this,e);return!!t&&t.enumerable}:ck},lD=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},KR=Function.prototype,y6=KR.bind,b6=KR.call,Dle=y6&&y6.bind(b6),Le=y6?function(e){return e&&Dle(b6,e)}:function(e){return e&&function(){return b6.apply(e,arguments)}},Cle=Le({}.toString),Sle=Le("".slice),na=function(e){return Sle(Cle(e),8,-1)},p2=_e.Object,xle=Le("".split),XR=qt(function(){return!p2("z").propertyIsEnumerable(0)})?function(e){return na(e)=="String"?xle(e,""):p2(e)}:p2,Ale=_e.TypeError,Ea=function(e){if(e==null)throw Ale("Can't call method on "+e);return e},Yp=function(e){return XR(Ea(e))},Ar=function(e){return typeof e=="function"},mo=function(e){return typeof e=="object"?e!==null:Ar(e)},Ole=function(e){return Ar(e)?e:void 0},Jp=function(e,t){return arguments.length<2?Ole(_e[e]):_e[e]&&_e[e][t]},YR=Le({}.isPrototypeOf),h2=Jp("navigator","userAgent")||"",dk=_e.process,pk=_e.Deno,hk=dk&&dk.versions||pk&&pk.version,gk=hk&&hk.v8;gk&&(qg=(ki=gk.split("."))[0]>0&&ki[0]<4?1:+(ki[0]+ki[1])),!qg&&h2&&(!(ki=h2.match(/Edge\/(\d+)/))||ki[1]>=74)&&(ki=h2.match(/Chrome\/(\d+)/))&&(qg=+ki[1]);var w6=qg,E6=!!Object.getOwnPropertySymbols&&!qt(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&w6&&w6<41}),cD=E6&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Ble=_e.Object,g2=cD?function(e){return typeof e=="symbol"}:function(e){var t=Jp("Symbol");return Ar(t)&&YR(t.prototype,Ble(e))},kle=_e.String,JR=function(e){try{return kle(e)}catch{return"Object"}},Fle=_e.TypeError,ZR=function(e){if(Ar(e))return e;throw Fle(JR(e)+" is not a function")},fD=function(e,t){var r=e[t];return r==null?void 0:ZR(r)},Tle=_e.TypeError,_le=Object.defineProperty,dD=function(e,t){try{_le(_e,e,{value:t,configurable:!0,writable:!0})}catch{_e[e]=t}return t},oa=_e["__core-js_shared__"]||dD("__core-js_shared__",{}),pD=qR(function(e){(e.exports=function(t,r){return oa[t]||(oa[t]=r!==void 0?r:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),jle=_e.Object,hD=function(e){return jle(Ea(e))},Ple=Le({}.hasOwnProperty),Dn=Object.hasOwn||function(e,t){return Ple(hD(e),t)},Nle=0,Ile=Math.random(),Rle=Le(1 .toString),QR=function(e){return"Symbol("+(e===void 0?"":e)+")_"+Rle(++Nle+Ile,36)},vf=pD("wks"),ku=_e.Symbol,vk=ku&&ku.for,Lle=cD?ku:ku&&ku.withoutSetter||QR,_n=function(e){if(!Dn(vf,e)||!E6&&typeof vf[e]!="string"){var t="Symbol."+e;E6&&Dn(ku,e)?vf[e]=ku[e]:vf[e]=cD&&vk?vk(t):Lle(t)}return vf[e]},Mle=_e.TypeError,zle=_n("toPrimitive"),gD=function(e){var t=function(r,n){if(!mo(r)||g2(r))return r;var o,i=fD(r,zle);if(i){if(o=Jt(i,r,n),!mo(o)||g2(o))return o;throw Mle("Can't convert object to primitive value")}return function(a,u){var s,l;if(Ar(s=a.toString)&&!mo(l=Jt(s,a))||Ar(s=a.valueOf)&&!mo(l=Jt(s,a))||u!=="string")return l;throw Tle("Can't convert object to primitive value")}(r,n)}(e,"string");return g2(t)?t:t+""},D6=_e.document,$le=mo(D6)&&mo(D6.createElement),vD=function(e){return $le?D6.createElement(e):{}},eL=!wa&&!qt(function(){return Object.defineProperty(vD("div"),"a",{get:function(){return 7}}).a!=7}),mk=Object.getOwnPropertyDescriptor,tL={f:wa?mk:function(e,t){if(e=Yp(e),t=gD(t),eL)try{return mk(e,t)}catch{}if(Dn(e,t))return lD(!Jt(Ele.f,e,t),e[t])}},Hle=_e.String,Ule=_e.TypeError,Cn=function(e){if(mo(e))return e;throw Ule(Hle(e)+" is not an object")},Vle=_e.TypeError,yk=Object.defineProperty,Zp={f:wa?yk:function(e,t,r){if(Cn(e),t=gD(t),Cn(r),eL)try{return yk(e,t,r)}catch{}if("get"in r||"set"in r)throw Vle("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},$l=wa?function(e,t,r){return Zp.f(e,t,lD(1,r))}:function(e,t,r){return e[t]=r,e},Wle=Le(Function.toString);Ar(oa.inspectSource)||(oa.inspectSource=function(e){return Wle(e)});var C6,k0,S6,mD=oa.inspectSource,bk=_e.WeakMap,Gle=Ar(bk)&&/native code/.test(mD(bk)),wk=pD("keys"),rL=function(e){return wk[e]||(wk[e]=QR(e))},yD={},Ek=_e.TypeError,qle=_e.WeakMap;if(Gle||oa.state){var Ga=oa.state||(oa.state=new qle),Kle=Le(Ga.get),Dk=Le(Ga.has),Xle=Le(Ga.set);C6=function(e,t){if(Dk(Ga,e))throw new Ek("Object already initialized");return t.facade=e,Xle(Ga,e,t),t},k0=function(e){return Kle(Ga,e)||{}},S6=function(e){return Dk(Ga,e)}}else{var Ps=rL("state");yD[Ps]=!0,C6=function(e,t){if(Dn(e,Ps))throw new Ek("Object already initialized");return t.facade=e,$l(e,Ps,t),t},k0=function(e){return Dn(e,Ps)?e[Ps]:{}},S6=function(e){return Dn(e,Ps)}}var x6={get:k0,enforce:function(e){return S6(e)?k0(e):C6(e,{})}},nL=Function.prototype,Yle=wa&&Object.getOwnPropertyDescriptor,Ck=Dn(nL,"name"),bD={PROPER:Ck&&(function(){}).name==="something",CONFIGURABLE:Ck&&(!wa||wa&&Yle(nL,"name").configurable)},qd=qR(function(e){var t=bD.CONFIGURABLE,r=x6.get,n=x6.enforce,o=String(String).split("String");(e.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;Ar(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Dn(u,"name")||t&&u.name!==p)&&$l(u,"name",p),(l=n(u)).source||(l.source=o.join(typeof p=="string"?p:""))),i!==_e?(c?!d&&i[a]&&(f=!0):delete i[a],f?i[a]=u:$l(i,a,u)):f?i[a]=u:dD(a,u)})(Function.prototype,"toString",function(){return Ar(this)&&r(this).source||mD(this)})}),Jle=Math.ceil,Zle=Math.floor,oy=function(e){var t=+e;return t!=t||t===0?0:(t>0?Zle:Jle)(t)},Qle=Math.max,ece=Math.min,Kd=function(e,t){var r=oy(e);return r<0?Qle(r+t,0):ece(r,t)},tce=Math.min,wD=function(e){return e>0?tce(oy(e),9007199254740991):0},iy=function(e){return wD(e.length)},rce=function(e){return function(t,r,n){for(var o=Yp(t),i=iy(o),a=Kd(n,i);i>a;a++)if(a in o&&o[a]===r)return a||0;return-1}},nce=rce(),Sk=Le([].push),oL=function(e,t){var r,n=Yp(e),o=0,i=[];for(r in n)!Dn(yD,r)&&Dn(n,r)&&Sk(i,r);for(;t.length>o;)Dn(n,r=t[o++])&&(~nce(i,r)||Sk(i,r));return i},F0=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],oce=F0.concat("length","prototype"),ice={f:Object.getOwnPropertyNames||function(e){return oL(e,oce)}},ace={f:Object.getOwnPropertySymbols},uce=Le([].concat),sce=Jp("Reflect","ownKeys")||function(e){var t=ice.f(Cn(e)),r=ace.f;return r?uce(t,r(e)):t},lce=function(e,t){for(var r=sce(t),n=Zp.f,o=tL.f,i=0;i<r.length;i++){var a=r[i];Dn(e,a)||n(e,a,o(t,a))}},cce=/#|\.prototype\./,Qp=function(e,t){var r=dce[fce(e)];return r==hce||r!=pce&&(Ar(t)?qt(t):!!t)},fce=Qp.normalize=function(e){return String(e).replace(cce,".").toLowerCase()},dce=Qp.data={},pce=Qp.NATIVE="N",hce=Qp.POLYFILL="P",gce=Qp,vce=tL.f,Da=function(e,t){var r,n,o,i,a,u=e.target,s=e.global,l=e.stat;if(r=s?_e:l?_e[u]||dD(u,{}):(_e[u]||{}).prototype)for(n in t){if(i=t[n],o=e.noTargetGet?(a=vce(r,n))&&a.value:r[n],!gce(s?n:u+(l?".":"#")+n,e.forced)&&o!==void 0){if(typeof i==typeof o)continue;lce(i,o)}(e.sham||o&&o.sham)&&$l(i,"sham",!0),qd(r,n,i,e)}},iL={};iL[_n("toStringTag")]="z";var ED=String(iL)==="[object z]",mce=_n("toStringTag"),yce=_e.Object,bce=na(function(){return arguments}())=="Arguments",DD=ED?na:function(e){var t,r,n;return e===void 0?"Undefined":e===null?"Null":typeof(r=function(o,i){try{return o[i]}catch{}}(t=yce(e),mce))=="string"?r:bce?na(t):(n=na(t))=="Object"&&Ar(t.callee)?"Arguments":n},wce=_e.String,Dr=function(e){if(DD(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return wce(e)},Ece=/"/g,Dce=Le("".replace);Da({target:"String",proto:!0,forced:qt(function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3})},{anchor:function(e){return t=e,r=Dr(Ea(this)),n="<a",(n+=' name="'+Dce(Dr(t),Ece,""")+'"')+">"+r+"</a>";var t,r,n}});var og,aL=function(){var e=Cn(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},CD=_e.RegExp,A6=qt(function(){var e=CD("a","y");return e.lastIndex=2,e.exec("abcd")!=null});A6||qt(function(){return!CD("a","y").sticky});var uL={BROKEN_CARET:A6||qt(function(){var e=CD("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),UNSUPPORTED_Y:A6},Cce=Object.keys||function(e){return oL(e,F0)},Sce=wa?Object.defineProperties:function(e,t){Cn(e);for(var r,n=Yp(t),o=Cce(t),i=o.length,a=0;i>a;)Zp.f(e,r=o[a++],n[r]);return e},xce=Jp("document","documentElement"),sL=rL("IE_PROTO"),v2=function(){},lL=function(e){return"<script>"+e+"<\/script>"},xk=function(e){e.write(lL("")),e.close();var t=e.parentWindow.Object;return e=null,t},Kg=function(){try{og=new ActiveXObject("htmlfile")}catch{}var e,t;Kg=typeof document<"u"?document.domain&&og?xk(og):((t=vD("iframe")).style.display="none",xce.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(lL("document.F=Object")),e.close(),e.F):xk(og);for(var r=F0.length;r--;)delete Kg.prototype[F0[r]];return Kg()};yD[sL]=!0;var Ak,m2,cL=Object.create||function(e,t){var r;return e!==null?(v2.prototype=Cn(e),r=new v2,v2.prototype=null,r[sL]=e):r=Kg(),t===void 0?r:Sce(r,t)},Ace=_e.RegExp,Oce=qt(function(){var e=Ace(".","s");return!(e.dotAll&&e.exec(`
- `)&&e.flags==="s")}),Bce=_e.RegExp,kce=qt(function(){var e=Bce("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),Fce=x6.get,Tce=pD("native-string-replace",String.prototype.replace),T0=RegExp.prototype.exec,O6=T0,_ce=Le("".charAt),jce=Le("".indexOf),Pce=Le("".replace),y2=Le("".slice),b2=(m2=/b*/g,Jt(T0,Ak=/a/,"a"),Jt(T0,m2,"a"),Ak.lastIndex!==0||m2.lastIndex!==0),Ok=uL.BROKEN_CARET,w2=/()??/.exec("")[1]!==void 0;(b2||w2||Ok||Oce||kce)&&(O6=function(e){var t,r,n,o,i,a,u,s=this,l=Fce(s),c=Dr(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=Jt(O6,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=Ok&&s.sticky,v=Jt(aL,s),m=s.source,g=0,y=c;if(p&&(v=Pce(v,"y",""),jce(v,"g")===-1&&(v+="g"),y=y2(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&_ce(c,s.lastIndex-1)!==`
- `)&&(m="(?: "+m+")",y=" "+y,g++),r=new RegExp("^(?:"+m+")",v)),w2&&(r=new RegExp("^"+m+"$(?!\\s)",v)),b2&&(n=s.lastIndex),o=Jt(T0,p?r:s,y),p?o?(o.input=y2(o.input,g),o[0]=y2(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:b2&&o&&(s.lastIndex=s.global?o.index+o[0].length:n),w2&&o&&o.length>1&&Jt(Tce,o[0],r,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&d)for(o.groups=a=cL(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var Xd=O6;Da({target:"RegExp",proto:!0,forced:/./.exec!==Xd},{exec:Xd});var _0=Array.isArray||function(e){return na(e)=="Array"},fL=function(){},Nce=[],dL=Jp("Reflect","construct"),SD=/^\s*(?:class|function)\b/,Ice=Le(SD.exec),Rce=!SD.exec(fL),mf=function(e){if(!Ar(e))return!1;try{return dL(fL,Nce,e),!0}catch{return!1}},xD=!dL||qt(function(){var e;return mf(mf.call)||!mf(Object)||!mf(function(){e=!0})||e})?function(e){if(!Ar(e))return!1;switch(DD(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Rce||!!Ice(SD,mD(e))}:mf,pL=function(e,t,r){var n=gD(t);n in e?Zp.f(e,n,lD(0,r)):e[n]=r},Lce=_n("species"),AD=function(e){return w6>=51||!qt(function(){var t=[];return(t.constructor={})[Lce]=function(){return{foo:1}},t[e](Boolean).foo!==1})},Mce=Le([].slice),zce=AD("slice"),$ce=_n("species"),E2=_e.Array,Hce=Math.max;function Jn(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(t===void 0||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(u){o={error:u}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function Bk(e){var t=e.selection;if(t==null)return!1;var r=Jn(E.nodes(e,{match:function(i){return A.checkNodeType(i,"table-cell")}}),1)[0];if(r){var n=Jn(r,2)[1],o=E.start(e,n);if(ke.equals(t.anchor,o))return!0}return!1}function kk(e,t){var r,n,o=E.nodes(e,{at:t,match:function(s){return A.getNodeType(s)==="table"}}),i=!1;try{for(var a=function(s){var l=typeof Symbol=="function"&&Symbol.iterator,c=l&&s[l],f=0;if(c)return c.call(s);if(s&&typeof s.length=="number")return{next:function(){return s&&f>=s.length&&(s=void 0),{value:s&&s[f++],done:!s}}};throw new TypeError(l?"Object is not iterable.":"Symbol.iterator is not defined.")}(o),u=a.next();!u.done;u=a.next())u.value,i=!0}catch(s){r={error:s}}finally{try{u&&!u.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}return i}Da({target:"Array",proto:!0,forced:!zce},{slice:function(e,t){var r,n,o,i=Yp(this),a=iy(i),u=Kd(e,a),s=Kd(t===void 0?a:t,a);if(_0(i)&&(r=i.constructor,(xD(r)&&(r===E2||_0(r.prototype))||mo(r)&&(r=r[$ce])===null)&&(r=void 0),r===E2||r===void 0))return Mce(i,u,s);for(n=new(r===void 0?E2:r)(Hce(s-u,0)),o=0;u<s;u++,o++)u in i&&pL(n,o,i[u]);return n.length=o,n}});var Fk=Le(Le.bind),Uce=_n("species"),Tk=_e.Array,Vce=function(e,t){return new(function(r){var n;return _0(r)&&(n=r.constructor,(xD(n)&&(n===Tk||_0(n.prototype))||mo(n)&&(n=n[Uce])===null)&&(n=void 0)),n===void 0?Tk:n}(e))(t===0?0:t)},_k=Le([].push),ig=function(e){var t=e==1,r=e==2,n=e==3,o=e==4,i=e==6,a=e==7,u=e==5||i;return function(s,l,c,f){for(var d,p,v=hD(s),m=XR(v),g=function(D,S){return ZR(D),S===void 0?D:Fk?Fk(D,S):function(){return D.apply(S,arguments)}}(l,c),y=iy(m),h=0,b=f||Vce,w=t?b(s,y):r||a?b(s,0):void 0;y>h;h++)if((u||h in m)&&(p=g(d=m[h],h,v),e))if(t)w[h]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return h;case 2:_k(w,d)}else switch(e){case 4:return!1;case 7:_k(w,d)}return i?-1:n||o?o:w}},ay={forEach:ig(0),map:ig(1),filter:ig(2),find:ig(5)},Wce=ay.map;Da({target:"Array",proto:!0,forced:!AD("map")},{map:function(e){return Wce(this,e,arguments.length>1?arguments[1]:void 0)}});var Gce=ED?{}.toString:function(){return"[object "+DD(this)+"]"};function uy(e){var t=e.children||[];return t.length===0?[]:(t[0]||{}).children||[]}function hL(e){return uy(e).every(function(t){return!!t.isHeader})}ED||qd(Object.prototype,"toString",Gce,{unsafe:!0});var qce=bD.PROPER,B6=RegExp.prototype,gL=B6.toString,Kce=Le(aL),Xce=qt(function(){return gL.call({source:"a",flags:"b"})!="/a/b"}),Yce=qce&&gL.name!="toString";(Xce||Yce)&&qd(RegExp.prototype,"toString",function(){var e=Cn(this),t=Dr(e.source),r=e.flags;return"/"+t+"/"+Dr(r===void 0&&YR(B6,e)&&!("flags"in B6)?Kce(e):r)},{unsafe:!0});var k6=_n("unscopables"),F6=Array.prototype;F6[k6]==null&&Zp.f(F6,k6,{configurable:!0,value:cL(null)});var Jce=ay.find,jk=!0;"find"in[]&&Array(1).find(function(){jk=!1}),Da({target:"Array",proto:!0,forced:jk},{find:function(e){return Jce(this,e,arguments.length>1?arguments[1]:void 0)}}),F6[k6].find=!0;var OD=Function.prototype,Pk=OD.apply,Zce=OD.bind,Nk=OD.call,vL=typeof Reflect=="object"&&Reflect.apply||(Zce?Nk.bind(Pk):function(){return Nk.apply(Pk,arguments)}),Qce=_n("species"),D2=RegExp.prototype,mL=function(e,t,r,n){var o=_n(e),i=!qt(function(){var l={};return l[o]=function(){return 7},""[e](l)!=7}),a=i&&!qt(function(){var l=!1,c=/a/;return e==="split"&&((c={}).constructor={},c.constructor[Qce]=function(){return c},c.flags="",c[o]=/./[o]),c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||r){var u=Le(/./[o]),s=t(o,""[e],function(l,c,f,d,p){var v=Le(l),m=c.exec;return m===Xd||m===D2.exec?i&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:v(f,c,d)}:{done:!1}});qd(String.prototype,e,s[0]),qd(D2,o,s[1])}n&&$l(D2[o],"sham",!0)},efe=_n("match"),tfe=_e.TypeError,rfe=_n("species"),nfe=Le("".charAt),Ik=Le("".charCodeAt),ofe=Le("".slice),ife=function(e){return function(t,r){var n,o,i=Dr(Ea(t)),a=oy(r),u=i.length;return a<0||a>=u?"":(n=Ik(i,a))<55296||n>56319||a+1===u||(o=Ik(i,a+1))<56320||o>57343?nfe(i,a):ofe(i,a,a+2)}},afe=ife(),yL=function(e,t,r){return t+(r?afe(e,t).length:1)},ufe=_e.Array,sfe=Math.max,Rk=function(e,t,r){for(var n=iy(e),o=Kd(t,n),i=Kd(r===void 0?n:r,n),a=ufe(sfe(i-o,0)),u=0;o<i;o++,u++)pL(a,u,e[o]);return a.length=u,a},lfe=_e.TypeError,T6=function(e,t){var r=e.exec;if(Ar(r)){var n=Jt(r,e,t);return n!==null&&Cn(n),n}if(na(e)==="RegExp")return Jt(Xd,e,t);throw lfe("RegExp#exec called on incompatible receiver")},Ns=uL.UNSUPPORTED_Y,cfe=Math.min,bL=[].push,ffe=Le(/./.exec),Is=Le(bL),yf=Le("".slice);mL("split",function(e,t,r){var n;return n="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=Dr(Ea(this)),l=i===void 0?4294967295:i>>>0;if(l===0)return[];if(o===void 0)return[s];if(!mo(a=o)||!((u=a[efe])!==void 0?u:na(a)=="RegExp"))return Jt(t,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=Jt(Xd,g,s))&&!((f=g.lastIndex)>m&&(Is(p,yf(s,m,c.index)),c.length>1&&c.index<s.length&&vL(bL,p,Rk(c,1)),d=c[0].length,m=f,p.length>=l));)g.lastIndex===c.index&&g.lastIndex++;return m===s.length?!d&&ffe(g,"")||Is(p,""):Is(p,yf(s,m)),p.length>l?Rk(p,0,l):p}:"0".split(void 0,0).length?function(o,i){return o===void 0&&i===0?[]:Jt(t,this,o,i)}:t,[function(o,i){var a=Ea(this),u=o==null?void 0:fD(o,e);return u?Jt(u,o,a,i):Jt(n,Dr(a),o,i)},function(o,i){var a=Cn(this),u=Dr(o),s=r(n,a,u,i,n!==t);if(s.done)return s.value;var l=function(w,D){var S,C=Cn(w).constructor;return C===void 0||(S=Cn(C)[rfe])==null?D:function(O){if(xD(O))return O;throw tfe(JR(O)+" is not a constructor")}(S)}(a,RegExp),c=a.unicode,f=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(Ns?"g":"y"),d=new l(Ns?"^(?:"+a.source+")":a,f),p=i===void 0?4294967295:i>>>0;if(p===0)return[];if(u.length===0)return T6(d,u)===null?[u]:[];for(var v=0,m=0,g=[];m<u.length;){d.lastIndex=Ns?0:m;var y,h=T6(d,Ns?yf(u,m):u);if(h===null||(y=cfe(wD(d.lastIndex+(Ns?m:0)),u.length))===v)m=yL(u,m,c);else{if(Is(g,yf(u,v,m)),g.length===p)return g;for(var b=1;b<=h.length-1;b++)if(Is(g,h[b]),g.length===p)return g;m=v=y}}return Is(g,yf(u,v)),g}]},!!qt(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var r="ab".split(e);return r.length!==2||r[0]!=="a"||r[1]!=="b"}),Ns);var _6=`
- \v\f\r \u2028\u2029\uFEFF`,Lk=Le("".replace),j0="["+_6+"]",dfe=RegExp("^"+j0+j0+"*"),pfe=RegExp(j0+j0+"*$"),hfe=function(e){return function(t){var r=Dr(Ea(t));return 1&e&&(r=Lk(r,dfe,"")),2&e&&(r=Lk(r,pfe,"")),r}},gfe={trim:hfe(3)},vfe=bD.PROPER,mfe=gfe.trim;function wL(e){return e.length?e[0].tagName.toLowerCase():""}Da({target:"String",proto:!0,forced:function(e){return qt(function(){return!!_6[e]()||"
"[e]()!=="
"||vfe&&_6[e].name!==e})}("trim")},{trim:function(){return mfe(this)}}),Da({global:!0},{globalThis:_e}),An&&(k.fn.append=An),Ao&&(k.fn.on=Ao),ha&&(k.fn.focus=ha),xn&&(k.fn.attr=xn),xo&&(k.fn.val=xo),pa&&(k.fn.html=pa),xl&&(k.fn.dataset=xl),Dl&&(k.fn.addClass=Dl),Cl&&(k.fn.removeClass=Cl),kl&&(k.fn.children=kl),Iv&&(k.fn.each=Iv),Bl&&(k.fn.find=Bl);var Yd=!1,EL=0,DL=0,Jd=null,Zd=null,cd=k("body");function CL(e){Yd=!1,Zd=null,Jd=null,cd.off("mousemove",SL),cd.off("mouseup",CL)}cd.on("mousedown",function(e){var t=e.target;if((t.tagName==="TH"||t.tagName==="TD")&&t.style.cursor==="col-resize"){t.style.cursor="auto",e.preventDefault(),Yd=!0;var r=e.clientX;EL=r;var n=t.getBoundingClientRect().width;DL=n,cd.on("mousemove",SL),cd.on("mouseup",CL)}});var SL=zu(function(e){if(Yd&&Zd!=null&&Jd!=null){e.preventDefault();var t=e.clientX,r=DL+(t-EL);(r=Math.floor(100*r)/100)<30&&(r=30),N.setNodes(Zd,{width:r.toString()},{at:Jd})}},100),yfe={type:"table",renderElem:function(e,t,r){var n=function(u,s){if(u.isDisabled())return!1;var l=u.selection;if(l==null||R.isCollapsed(l))return!0;var c=l.anchor,f=l.focus,d=A.findPath(u,s),p=E.start(u,d),v=E.end(u,d),m=ke.compare(c,v)<=0&&ke.compare(c,p)>=0,g=ke.compare(f,v)<=0&&ke.compare(f,p)>=0;return!!(m&&g&&P.equals(c.path.slice(0,3),f.path.slice(0,3)))}(r,e),o=e.width,i=o===void 0?"auto":o,a=be("div",{className:"table-container","data-selected":A.isNodeSelected(r,e),on:{mousedown:function(u){if(u.target.tagName==="DIV"&&u.preventDefault(),!r.isDisabled()){var s=A.findPath(r,e),l=E.start(r,s),c=r.selection;c!=null?c.anchor.path[0]!==s[0]&&r.select(l):r.select(l)}}}},be("table",{width:i,contentEditable:n},be("colgroup",null,uy(e).map(function(u){var s=u.width;return be("col",{width:s===void 0?"auto":s})})),be("tbody",null,t)));return a}},bfe={type:"table-row",renderElem:function(e,t,r){return be("tr",null,t)}},wfe={type:"table-cell",renderElem:function(e,t,r){var n=function(d,p){var v=A.getParentNode(d,p);if(v==null)return!1;var m=A.getParentNode(d,v);return m!=null&&uy(m).some(function(g){return g===p})}(r,e),o=e,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(!n)return be("td",{colSpan:a,rowSpan:s},t);var f=be(c?"th":"td",{colSpan:a,rowSpan:s,style:{borderRightWidth:"3px"},on:{mousemove:zu(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;Yd||(b>m+g-5&&b<m+g&&w>y&&w<y+h?(p.style.cursor="col-resize",Zd=r,Jd=A.findPath(r,e)):Yd||(p.style.cursor="auto",Zd=null,Jd=null))}},100)}},t);return f}},Efe={selector:"table",preParseHtml:function(e){var t=k(e);if(wL(t)!=="table")return e;var r=t.find("tbody");if(r.length===0)return e;var n=t.find("tr");return t.append(n),r.remove(),t[0]}},Dfe=ay.filter;Da({target:"Array",proto:!0,forced:!AD("filter")},{filter:function(e){return Dfe(this,e,arguments.length>1?arguments[1]:void 0)}});var Cfe=Math.floor,C2=Le("".charAt),Sfe=Le("".replace),S2=Le("".slice),xfe=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Afe=/\$([$&'`]|\d{1,2})/g,Ofe=function(e,t,r,n,o,i){var a=r+e.length,u=n.length,s=Afe;return o!==void 0&&(o=hD(o),s=xfe),Sfe(i,s,function(l,c){var f;switch(C2(c,0)){case"$":return"$";case"&":return e;case"`":return S2(t,0,r);case"'":return S2(t,a);case"<":f=o[S2(c,1,-1)];break;default:var d=+c;if(d===0)return l;if(d>u){var p=Cfe(d/10);return p===0?l:p<=u?n[p-1]===void 0?C2(c,1):n[p-1]+C2(c,1):l}f=n[d-1]}return f===void 0?"":f})},j6=_n("replace"),Bfe=Math.max,kfe=Math.min,Ffe=Le([].concat),x2=Le([].push),Mk=Le("".indexOf),zk=Le("".slice),Tfe="a".replace(/./,"$0")==="$0",$k=!!/./[j6]&&/./[j6]("a","$0")==="";mL("replace",function(e,t,r){var n=$k?"$":"$0";return[function(o,i){var a=Ea(this),u=o==null?void 0:fD(o,j6);return u?Jt(u,o,a,i):Jt(t,Dr(a),o,i)},function(o,i){var a=Cn(this),u=Dr(o);if(typeof i=="string"&&Mk(i,n)===-1&&Mk(i,"$<")===-1){var s=r(t,a,u,i);if(s.done)return s.value}var l=Ar(i);l||(i=Dr(i));var c=a.global;if(c){var f=a.unicode;a.lastIndex=0}for(var d=[];;){var p=T6(a,u);if(p===null||(x2(d,p),!c))break;Dr(p[0])===""&&(a.lastIndex=yL(u,wD(a.lastIndex),f))}for(var v,m="",g=0,y=0;y<d.length;y++){for(var h=Dr((p=d[y])[0]),b=Bfe(kfe(oy(p.index),u.length),0),w=[],D=1;D<p.length;D++)x2(w,(v=p[D])===void 0?v:String(v));var S=p.groups;if(l){var C=Ffe([h],w,b,u);S!==void 0&&x2(C,S);var O=Dr(vL(i,void 0,C))}else O=Ofe(h,u,b,w,S,i);b>=g&&(m+=zk(u,g,b)+O,g=b+h.length)}return m+zk(u,g)}]},!!qt(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"})||!Tfe||$k);var _fe={selector:"td:not([data-w-e-type]),th:not([data-w-e-type])",parseElemHtml:function(e,t,r){var n=k(e);(t=t.filter(function(u){return!!oe.isText(u)||!!r.isInline(u)})).length===0&&(t=[{text:n.text().replace(/\s+/gm," ")}]);var o=parseInt(n.attr("colSpan")||"1"),i=parseInt(n.attr("rowSpan")||"1"),a=n.attr("width")||"auto";return{type:"table-cell",isHeader:wL(n)==="th",colSpan:o,rowSpan:i,width:a,children:t}}},jfe={selector:"tr:not([data-w-e-type])",parseElemHtml:function(e,t,r){return{type:"table-row",children:t.filter(function(n){return A.getNodeType(n)==="table-cell"})}}},Pfe={selector:"table:not([data-w-e-type])",parseElemHtml:function(e,t,r){var n=k(e),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}(n)==="100%"&&(o="100%"),n.attr("width")==="100%"&&(o="100%"),{type:"table",width:o,children:t.filter(function(i){return A.getNodeType(i)==="table-row"})}}},Nfe=function(){function e(){this.title=Q("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 e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,r){},e.prototype.isDisabled=function(t){var r=t.selection;return r==null||!R.isCollapsed(r)||!!A.getSelectedElems(t).some(function(n){var o=A.getNodeType(n);return o==="pre"||o==="table"||o==="list-item"||!!t.isVoid(n)})},e.prototype.getPanelContentElem=function(t){var r=this;if(this.$content)return this.$content[0];for(var n=k('<div class="w-e-panel-content-table"></div>'),o=k("<span>0 × 0</span>"),i=k("<table></table>"),a=0;a<10;a++){for(var u=k("<tr></tr>"),s=0;s<10;s++){var l=k("<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=k(f).dataset(),p=d.x,v=d.y;o[0].innerHTML=p+1+" × "+(v+1),i.children().each(function(m){k(m).children().each(function(g){var y=k(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=k(f).dataset(),p=d.x,v=d.y;r.insertTable(t,v+1,p+1)}})}i.append(u)}return n.append(i),n.append(o),this.$content=n,n[0]},e.prototype.insertTable=function(t,r,n){var o=parseInt(r,10),i=parseInt(n,10);if(o&&i&&!(o<=0||i<=0)){A.isSelectedEmptyParagraph(t)&&N.removeNodes(t,{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(t,a,{mode:"highest"})}},e}(),Ife=function(){function e(){this.title=Q("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 e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||A.getSelectedNodeByType(t,"table")==null},e.prototype.exec=function(t,r){this.isDisabled(t)||N.removeNodes(t,{mode:"highest"})},e}(),Rfe=function(){function e(){this.title=Q("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 e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){var r=t.selection;return r==null||!R.isCollapsed(r)||A.getSelectedNodeByType(t,"table")==null},e.prototype.exec=function(t,r){if(!this.isDisabled(t)){var n=Jn(E.nodes(t,{match:function(p){return A.checkNodeType(p,"table-cell")},universal:!0}),1),o=Jn(n[0],2),i=o[0],a=o[1],u=A.getParentNode(t,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=P.parent(a),d=P.next(f);N.insertNodes(t,l,{at:d})}}},e}(),Lfe=function(){function e(){this.title=Q("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 e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){var r=t.selection;return r==null||!R.isCollapsed(r)||A.getSelectedNodeByType(t,"table-row")==null},e.prototype.exec=function(t,r){if(!this.isDisabled(t)){var n=Jn(E.nodes(t,{match:function(s){return A.checkNodeType(s,"table-row")},universal:!0}),1),o=Jn(n[0],2),i=o[0],a=o[1],u=A.getParentNode(t,i);((u==null?void 0:u.children.length)||0)<=1?N.removeNodes(t,{mode:"highest"}):N.removeNodes(t,{at:a})}},e}(),Hk={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},A2=vD("span").classList,Uk=A2&&A2.constructor&&A2.constructor.prototype,Mfe=Uk===Object.prototype?void 0:Uk,zfe=ay.forEach,$fe=function(e,t){var r=[].forEach;return!!r&&qt(function(){r.call(null,function(){throw 1},1)})}(),O2=$fe?[].forEach:function(e){return zfe(this,e,arguments.length>1?arguments[1]:void 0)},xL=function(e){if(e&&e.forEach!==O2)try{$l(e,"forEach",O2)}catch{e.forEach=O2}};for(var B2 in Hk)Hk[B2]&&xL(_e[B2]&&_e[B2].prototype);xL(Mfe);var Hfe=function(){function e(){this.title=Q("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 e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){var r=t.selection;return r==null||!R.isCollapsed(r)||A.getSelectedNodeByType(t,"table")==null},e.prototype.exec=function(t,r){if(!this.isDisabled(t)){var n=Jn(E.nodes(t,{match:function(l){return A.checkNodeType(l,"table-cell")},universal:!0}),1),o=Jn(n[0],2),i=o[0],a=o[1],u=A.getParentNode(t,i);if(u!=null){var s=A.getParentNode(t,u);s!=null&&(s.children||[]).forEach(function(l,c){ce.isElement(l)&&(l.children||[]).forEach(function(f){var d=A.findPath(t,f);if(d.length===a.length&&GR(d.slice(-1),a.slice(-1))){var p={type:"table-cell",children:[{text:""}]};c===0&&hL(s)&&(p.isHeader=!0),N.insertNodes(t,p,{at:d})}})})}}},e}(),Ufe=function(){function e(){this.title=Q("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 e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){var r=t.selection;return r==null||!R.isCollapsed(r)||A.getSelectedNodeByType(t,"table-cell")==null},e.prototype.exec=function(t,r){if(!this.isDisabled(t)){var n=Jn(E.nodes(t,{match:function(c){return A.checkNodeType(c,"table-cell")},universal:!0}),1),o=Jn(n[0],2),i=o[0],a=o[1],u=A.getParentNode(t,i),s=(u==null?void 0:u.children.length)||0;if(!u||s<=1)N.removeNodes(t,{mode:"highest"});else{var l=A.getParentNode(t,u);l!=null&&(l.children||[]).forEach(function(c){ce.isElement(c)&&(c.children||[]).forEach(function(f){var d=A.findPath(t,f);d.length===a.length&&GR(d.slice(-1),a.slice(-1))&&N.removeNodes(t,{at:d})})})}}},e}(),Vfe=function(){function e(){this.title=Q("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 e.prototype.getValue=function(t){var r=A.getSelectedNodeByType(t,"table");return r!=null&&hL(r)},e.prototype.isActive=function(t){return!!this.getValue(t)},e.prototype.isDisabled=function(t){var r=t.selection;return r==null||!R.isCollapsed(r)||A.getSelectedNodeByType(t,"table")==null},e.prototype.exec=function(t,r){if(!this.isDisabled(t)){var n=!r,o=A.getSelectedNodeByType(t,"table");o!=null&&uy(o).forEach(function(i){return N.setNodes(t,{isHeader:n},{at:A.findPath(t,i)})})}},e}(),Wfe=function(){function e(){this.title=Q("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 e.prototype.getValue=function(t){var r=A.getSelectedNodeByType(t,"table");return r!=null&&r.width==="100%"},e.prototype.isActive=function(t){return!!this.getValue(t)},e.prototype.isDisabled=function(t){var r=t.selection;return r==null||!R.isCollapsed(r)||A.getSelectedNodeByType(t,"table")==null},e.prototype.exec=function(t,r){if(!this.isDisabled(t)){var n={width:r?"auto":"100%"};N.setNodes(t,n,{mode:"highest"})}},e}(),Gfe={renderElems:[yfe,bfe,wfe],elemsToHtml:[{type:"table",elemToHtml:function(e,t){var r=e.width;return'<table style="width: '+(r===void 0?"auto":r)+';"><tbody>'+t+"</tbody></table>"}},{type:"table-row",elemToHtml:function(e,t){return"<tr>"+t+"</tr>"}},{type:"table-cell",elemToHtml:function(e,t){var r=e,n=r.colSpan,o=n===void 0?1:n,i=r.rowSpan,a=i===void 0?1:i,u=r.isHeader,s=u!==void 0&&u,l=r.width,c=s?"th":"td";return"<"+c+' colSpan="'+o+'" rowSpan="'+a+'" width="'+(l===void 0?"auto":l)+'">'+t+"</"+c+">"}}],preParseHtml:[Efe],parseElemsHtml:[_fe,jfe,Pfe],menus:[{key:"insertTable",factory:function(){return new Nfe}},{key:"deleteTable",factory:function(){return new Ife}},{key:"insertTableRow",factory:function(){return new Rfe}},{key:"deleteTableRow",factory:function(){return new Lfe}},{key:"insertTableCol",factory:function(){return new Hfe}},{key:"deleteTableCol",factory:function(){return new Ufe}},{key:"tableHeader",factory:function(){return new Vfe}},{key:"tableFullWidth",factory:function(){return new Wfe}}],editorPlugin:function(e){var t=e.insertBreak,r=e.deleteBackward,n=e.deleteForward,o=e.normalizeNode,i=e.insertData,a=e.handleTab,u=e.selectAll,s=e;return s.insertBreak=function(){A.getSelectedNodeByType(s,"table")==null?t():s.insertText(`
- `)},s.deleteBackward=function(l){if(!Bk(s)){var c=s.selection;if(c){var f=E.before(s,c);if(f){var d=kk(s,f),p=kk(s,c);if(d&&!p)return}}r(l)}},s.handleTab=function(){var l;if(A.getSelectedNodeByType(s,"table")){var c=E.above(e);A.checkNodeType(c[0],"table-cell")&&N.select(e,c[1]);var f=E.next(e);if(f)f[0]&&f[0].text&&(f=(l=E.above(e,{at:f[1]}))!==null&&l!==void 0?l:f),N.select(e,f[1]);else{var d=s.children||[],p=d.length;if(A.checkNodeType(d[p-1],"table")){var v=A.genEmptyParagraph();N.insertNodes(s,v,{at:[p]}),s.handleTab()}}}else a()},s.deleteForward=function(l){Bk(s)||n(l)},s.normalizeNode=function(l){var c=Jn(l,2),f=c[0],d=c[1];if(A.getNodeType(f)!=="table")return o([f,d]);if(A.isLastNode(s,f)){var p=A.genEmptyParagraph();N.insertNodes(s,p,{at:[d[0]+1]})}},s.insertData=function(l){if(A.getSelectedNodeByType(s,"table")!=null){var c=l.getData("text/plain");c===`
- `||/<img[^>]+>/.test(l.getData("text/html"))?i(l):E.insertText(s,c)}else i(l)},s.selectAll=function(){var l=s.selection;if(l!=null){var c=A.getSelectedNodeByType(s,"table-cell");if(c!=null){var f=l.anchor,d=l.focus;if(P.equals(f.path.slice(0,3),d.path.slice(0,3)))if(Z.string(c).length!==0){var p=A.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}};Wr("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"}}),Wr("zh-CN",{videoModule:{delete:"删除视频",uploadVideo:"上传视频",insertVideo:"插入视频",videoSrc:"视频地址",videoSrcPlaceHolder:"视频文件 url 或第三方 <iframe>",videoPoster:"视频封面",videoPosterPlaceHolder:"封面图片 url",ok:"确定",editSize:"修改尺寸",width:"宽度",height:"高度"}});/*! *****************************************************************************
- Copyright (c) Microsoft Corporation.
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted.
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THIS SOFTWARE.
- ***************************************************************************** */var P0=function(){return P0=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},P0.apply(this,arguments)};function sy(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(l){try{s(n.next(l))}catch(c){i(c)}}function u(l){try{s(n.throw(l))}catch(c){i(c)}}function s(l){var c;l.done?o(l.value):(c=l.value,c instanceof r?c:new r(function(f){f(c)})).then(a,u)}s((n=n.apply(e,[])).next())})}function ly(e,t){var r,n,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(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=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++,n=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=t.call(e,a)}catch(f){c=[6,f],n=0}finally{r=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([s,l])}}}function Fu(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(t===void 0||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(u){o={error:u}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function qfe(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=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.")}(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(o){t[o]=e[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=e[o](i)).done,i.value)})}}}var Vk=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function BD(e){var t={exports:{}};return e(t,t.exports),t.exports}var Fi,Xg,ag=function(e){return e&&e.Math==Math&&e},te=ag(typeof globalThis=="object"&&globalThis)||ag(typeof window=="object"&&window)||ag(typeof self=="object"&&self)||ag(typeof Vk=="object"&&Vk)||function(){return this}()||Function("return this")(),ct=function(e){try{return!!e()}catch{return!0}},Bo=!ct(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),bf=Function.prototype.call,lt=bf.bind?bf.bind(bf):function(){return bf.apply(bf,arguments)},Wk={}.propertyIsEnumerable,Gk=Object.getOwnPropertyDescriptor,Kfe={f:Gk&&!Wk.call({1:2},1)?function(e){var t=Gk(this,e);return!!t&&t.enumerable}:Wk},cy=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},AL=Function.prototype,P6=AL.bind,N6=AL.call,Xfe=P6&&P6.bind(N6),Ce=P6?function(e){return e&&Xfe(N6,e)}:function(e){return e&&function(){return N6.apply(e,arguments)}},Yfe=Ce({}.toString),Jfe=Ce("".slice),Do=function(e){return Jfe(Yfe(e),8,-1)},k2=te.Object,Zfe=Ce("".split),kD=ct(function(){return!k2("z").propertyIsEnumerable(0)})?function(e){return Do(e)=="String"?Zfe(e,""):k2(e)}:k2,Qfe=te.TypeError,eh=function(e){if(e==null)throw Qfe("Can't call method on "+e);return e},Fa=function(e){return kD(eh(e))},ot=function(e){return typeof e=="function"},yt=function(e){return typeof e=="object"?e!==null:ot(e)},ede=function(e){return ot(e)?e:void 0},Yu=function(e,t){return arguments.length<2?ede(te[e]):te[e]&&te[e][t]},Qd=Ce({}.isPrototypeOf),pl=Yu("navigator","userAgent")||"",qk=te.process,Kk=te.Deno,Xk=qk&&qk.versions||Kk&&Kk.version,Yk=Xk&&Xk.v8;Yk&&(Xg=(Fi=Yk.split("."))[0]>0&&Fi[0]<4?1:+(Fi[0]+Fi[1])),!Xg&&pl&&(!(Fi=pl.match(/Edge\/(\d+)/))||Fi[1]>=74)&&(Fi=pl.match(/Chrome\/(\d+)/))&&(Xg=+Fi[1]);var ep=Xg,I6=!!Object.getOwnPropertySymbols&&!ct(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&ep&&ep<41}),FD=I6&&!Symbol.sham&&typeof Symbol.iterator=="symbol",tde=te.Object,F2=FD?function(e){return typeof e=="symbol"}:function(e){var t=Yu("Symbol");return ot(t)&&Qd(t.prototype,tde(e))},rde=te.String,N0=function(e){try{return rde(e)}catch{return"Object"}},nde=te.TypeError,Ca=function(e){if(ot(e))return e;throw nde(N0(e)+" is not a function")},tp=function(e,t){var r=e[t];return r==null?void 0:Ca(r)},ode=te.TypeError,ide=Object.defineProperty,TD=function(e,t){try{ide(te,e,{value:t,configurable:!0,writable:!0})}catch{te[e]=t}return t},ia=te["__core-js_shared__"]||TD("__core-js_shared__",{}),_D=BD(function(e){(e.exports=function(t,r){return ia[t]||(ia[t]=r!==void 0?r:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),ade=te.Object,fy=function(e){return ade(eh(e))},ude=Ce({}.hasOwnProperty),Wt=Object.hasOwn||function(e,t){return ude(fy(e),t)},sde=0,lde=Math.random(),cde=Ce(1 .toString),jD=function(e){return"Symbol("+(e===void 0?"":e)+")_"+cde(++sde+lde,36)},wf=_D("wks"),Tu=te.Symbol,Jk=Tu&&Tu.for,fde=FD?Tu:Tu&&Tu.withoutSetter||jD,Lt=function(e){if(!Wt(wf,e)||!I6&&typeof wf[e]!="string"){var t="Symbol."+e;I6&&Wt(Tu,e)?wf[e]=Tu[e]:wf[e]=FD&&Jk?Jk(t):fde(t)}return wf[e]},dde=te.TypeError,pde=Lt("toPrimitive"),PD=function(e){var t=function(r,n){if(!yt(r)||F2(r))return r;var o,i=tp(r,pde);if(i){if(o=lt(i,r,n),!yt(o)||F2(o))return o;throw dde("Can't convert object to primitive value")}return function(a,u){var s,l;if(ot(s=a.toString)&&!yt(l=lt(s,a))||ot(s=a.valueOf)&&!yt(l=lt(s,a))||u!=="string")return l;throw ode("Can't convert object to primitive value")}(r,n)}(e,"string");return F2(t)?t:t+""},R6=te.document,hde=yt(R6)&&yt(R6.createElement),rp=function(e){return hde?R6.createElement(e):{}},OL=!Bo&&!ct(function(){return Object.defineProperty(rp("div"),"a",{get:function(){return 7}}).a!=7}),Zk=Object.getOwnPropertyDescriptor,ND={f:Bo?Zk:function(e,t){if(e=Fa(e),t=PD(t),OL)try{return Zk(e,t)}catch{}if(Wt(e,t))return cy(!lt(Kfe.f,e,t),e[t])}},gde=te.String,vde=te.TypeError,sr=function(e){if(yt(e))return e;throw vde(gde(e)+" is not an object")},mde=te.TypeError,Qk=Object.defineProperty,ci={f:Bo?Qk:function(e,t,r){if(sr(e),t=PD(t),sr(r),OL)try{return Qk(e,t,r)}catch{}if("get"in r||"set"in r)throw mde("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},aa=Bo?function(e,t,r){return ci.f(e,t,cy(1,r))}:function(e,t,r){return e[t]=r,e},yde=Ce(Function.toString);ot(ia.inspectSource)||(ia.inspectSource=function(e){return yde(e)});var I0,fd,R0,dy=ia.inspectSource,eF=te.WeakMap,BL=ot(eF)&&/native code/.test(dy(eF)),tF=_D("keys"),ID=function(e){return tF[e]||(tF[e]=jD(e))},py={},L6=te.TypeError,bde=te.WeakMap;if(BL||ia.state){var qa=ia.state||(ia.state=new bde),wde=Ce(qa.get),rF=Ce(qa.has),Ede=Ce(qa.set);I0=function(e,t){if(rF(qa,e))throw new L6("Object already initialized");return t.facade=e,Ede(qa,e,t),t},fd=function(e){return wde(qa,e)||{}},R0=function(e){return rF(qa,e)}}else{var Rs=ID("state");py[Rs]=!0,I0=function(e,t){if(Wt(e,Rs))throw new L6("Object already initialized");return t.facade=e,aa(e,Rs,t),t},fd=function(e){return Wt(e,Rs)?e[Rs]:{}},R0=function(e){return Wt(e,Rs)}}var un={set:I0,get:fd,has:R0,enforce:function(e){return R0(e)?fd(e):I0(e,{})},getterFor:function(e){return function(t){var r;if(!yt(t)||(r=fd(t)).type!==e)throw L6("Incompatible receiver, "+e+" required");return r}}},kL=Function.prototype,Dde=Bo&&Object.getOwnPropertyDescriptor,T2=Wt(kL,"name"),pc={EXISTS:T2,PROPER:T2&&(function(){}).name==="something",CONFIGURABLE:T2&&(!Bo||Bo&&Dde(kL,"name").configurable)},Fn=BD(function(e){var t=pc.CONFIGURABLE,r=un.get,n=un.enforce,o=String(String).split("String");(e.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;ot(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Wt(u,"name")||t&&u.name!==p)&&aa(u,"name",p),(l=n(u)).source||(l.source=o.join(typeof p=="string"?p:""))),i!==te?(c?!d&&i[a]&&(f=!0):delete i[a],f?i[a]=u:aa(i,a,u)):f?i[a]=u:TD(a,u)})(Function.prototype,"toString",function(){return ot(this)&&r(this).source||dy(this)})}),Cde=Math.ceil,Sde=Math.floor,hy=function(e){var t=+e;return t!=t||t===0?0:(t>0?Sde:Cde)(t)},xde=Math.max,Ade=Math.min,np=function(e,t){var r=hy(e);return r<0?xde(r+t,0):Ade(r,t)},Ode=Math.min,FL=function(e){return e>0?Ode(hy(e),9007199254740991):0},th=function(e){return FL(e.length)},nF=function(e){return function(t,r,n){var o,i=Fa(t),a=th(i),u=np(n,a);if(e&&r!=r){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===r)return e||u||0;return!e&&-1}},TL={includes:nF(!0),indexOf:nF(!1)},Bde=TL.indexOf,oF=Ce([].push),_L=function(e,t){var r,n=Fa(e),o=0,i=[];for(r in n)!Wt(py,r)&&Wt(n,r)&&oF(i,r);for(;t.length>o;)Wt(n,r=t[o++])&&(~Bde(i,r)||oF(i,r));return i},L0=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],kde=L0.concat("length","prototype"),M0={f:Object.getOwnPropertyNames||function(e){return _L(e,kde)}},Fde={f:Object.getOwnPropertySymbols},Tde=Ce([].concat),_de=Yu("Reflect","ownKeys")||function(e){var t=M0.f(sr(e)),r=Fde.f;return r?Tde(t,r(e)):t},jde=function(e,t){for(var r=_de(t),n=ci.f,o=ND.f,i=0;i<r.length;i++){var a=r[i];Wt(e,a)||n(e,a,o(t,a))}},Pde=/#|\.prototype\./,rh=function(e,t){var r=Ide[Nde(e)];return r==Lde||r!=Rde&&(ot(t)?ct(t):!!t)},Nde=rh.normalize=function(e){return String(e).replace(Pde,".").toLowerCase()},Ide=rh.data={},Rde=rh.NATIVE="N",Lde=rh.POLYFILL="P",z0=rh,Mde=ND.f,Mr=function(e,t){var r,n,o,i,a,u=e.target,s=e.global,l=e.stat;if(r=s?te:l?te[u]||TD(u,{}):(te[u]||{}).prototype)for(n in t){if(i=t[n],o=e.noTargetGet?(a=Mde(r,n))&&a.value:r[n],!z0(s?n:u+(l?".":"#")+n,e.forced)&&o!==void 0){if(typeof i==typeof o)continue;jde(i,o)}(e.sham||o&&o.sham)&&aa(i,"sham",!0),Fn(r,n,i,e)}},jL={};jL[Lt("toStringTag")]="z";var RD=String(jL)==="[object z]",zde=Lt("toStringTag"),$de=te.Object,Hde=Do(function(){return arguments}())=="Arguments",gy=RD?Do:function(e){var t,r,n;return e===void 0?"Undefined":e===null?"Null":typeof(r=function(o,i){try{return o[i]}catch{}}(t=$de(e),zde))=="string"?r:Hde?Do(t):(n=Do(t))=="Object"&&ot(t.callee)?"Arguments":n},Ude=te.String,mn=function(e){if(gy(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Ude(e)},M6=`
- \v\f\r \u2028\u2029\uFEFF`,iF=Ce("".replace),$0="["+M6+"]",Vde=RegExp("^"+$0+$0+"*"),Wde=RegExp($0+$0+"*$"),Gde=function(e){return function(t){var r=mn(eh(t));return 1&e&&(r=iF(r,Vde,"")),2&e&&(r=iF(r,Wde,"")),r}},qde={trim:Gde(3)},Kde=pc.PROPER,Xde=qde.trim;function aF(e){return e.length?e[0].tagName.toLowerCase():""}function PL(e,t,r){t===void 0&&(t="auto"),r===void 0&&(r="auto");var n=k(e);return n.attr("width",t),n.attr("height",r),n[0].outerHTML}Mr({target:"String",proto:!0,forced:ct(function(){return!!M6.trim()||"
".trim()!=="
"||Kde&&M6.trim.name!=="trim"})},{trim:function(){return Xde(this)}}),Mr({global:!0},{globalThis:te}),An&&(k.fn.append=An),Ao&&(k.fn.on=Ao),ha&&(k.fn.focus=ha),xn&&(k.fn.attr=xn),xo&&(k.fn.val=xo),pa&&(k.fn.html=pa),Ol&&(k.fn.parent=Ol),Sl&&(k.fn.hasClass=Sl),Tl&&(k.fn.empty=Tl);var ug,Yde={type:"video",renderElem:function(e,t,r){var n,o=e,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=A.isNodeSelected(r,e);if(a.trim().indexOf("<iframe ")===0)n=be("div",{className:"w-e-textarea-video-container","data-selected":p?"true":"",innerHTML:PL(a,c,d)});else{var v=be("video",{poster:s,controls:!0},be("source",{src:a,type:"video/mp4"}),`Sorry, your browser doesn't support embedded videos.
- 抱歉,浏览器不支持 video 视频`);c!=="auto"&&(v.data.width=c),d!=="auto"&&(v.data.height=d),n=be("div",{className:"w-e-textarea-video-container","data-selected":p?"true":""},v)}return _l("div",{props:{contentEditable:!1},on:{mousedown:function(m){return m.preventDefault()}}},n)}},Jde={type:"video",elemToHtml:function(e,t){var r=e,n=r.src,o=n===void 0?"":n,i=r.poster,a=i===void 0?"":i,u=r.width,s=u===void 0?"auto":u,l=r.height,c=l===void 0?"auto":l,f=`<div data-w-e-type="video" data-w-e-is-void>
- `;return o.trim().indexOf("<iframe ")===0?f+=PL(o,s,c):f+='<video poster="'+a+'" controls="true" width="'+s+'" height="'+c+'"><source src="'+o+'" type="video/mp4"/></video>',f+`
- </div>`}},Zde=Object.keys||function(e){return _L(e,L0)},Qde=Bo?Object.defineProperties:function(e,t){sr(e);for(var r,n=Fa(t),o=Zde(t),i=o.length,a=0;i>a;)ci.f(e,r=o[a++],n[r]);return e},z6=Yu("document","documentElement"),NL=ID("IE_PROTO"),_2=function(){},IL=function(e){return"<script>"+e+"<\/script>"},uF=function(e){e.write(IL("")),e.close();var t=e.parentWindow.Object;return e=null,t},Yg=function(){try{ug=new ActiveXObject("htmlfile")}catch{}var e,t;Yg=typeof document<"u"?document.domain&&ug?uF(ug):((t=rp("iframe")).style.display="none",z6.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(IL("document.F=Object")),e.close(),e.F):uF(ug);for(var r=L0.length;r--;)delete Yg.prototype[L0[r]];return Yg()};py[NL]=!0;var LD=Object.create||function(e,t){var r;return e!==null?(_2.prototype=sr(e),r=new _2,_2.prototype=null,r[NL]=e):r=Yg(),t===void 0?r:Qde(r,t)},$6=Lt("unscopables"),H6=Array.prototype;H6[$6]==null&&ci.f(H6,$6,{configurable:!0,value:LD(null)});var dd=function(e){H6[$6][e]=!0},epe=TL.includes;Mr({target:"Array",proto:!0},{includes:function(e){return epe(this,e,arguments.length>1?arguments[1]:void 0)}}),dd("includes");var tpe={selector:"iframe,video,p",preParseHtml:function(e){var t=k(e),r=t;if(aF(t)==="p"){var n=t.children();if(n.length===1){var o=n[0],i=o.tagName.toLowerCase();["iframe","video"].includes(i)&&(r=k(o))}}var a=aF(r);if(a!=="iframe"&&a!=="video"||r.parent().attr("data-w-e-type")==="video")return r[0];var u=k('<div data-w-e-type="video" data-w-e-is-void></div>');return u.append(r),u[0]}},sF=Ce(Ce.bind),op=function(e,t){return Ca(e),t===void 0?e:sF?sF(e,t):function(){return e.apply(t,arguments)}},H0=Array.isArray||function(e){return Do(e)=="Array"},RL=function(){},rpe=[],LL=Yu("Reflect","construct"),MD=/^\s*(?:class|function)\b/,npe=Ce(MD.exec),ope=!MD.exec(RL),Ef=function(e){if(!ot(e))return!1;try{return LL(RL,rpe,e),!0}catch{return!1}},zD=!LL||ct(function(){var e;return Ef(Ef.call)||!Ef(Object)||!Ef(function(){e=!0})||e})?function(e){if(!ot(e))return!1;switch(gy(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return ope||!!npe(MD,dy(e))}:Ef,ipe=Lt("species"),lF=te.Array,ape=function(e,t){return new(function(r){var n;return H0(r)&&(n=r.constructor,(zD(n)&&(n===lF||H0(n.prototype))||yt(n)&&(n=n[ipe])===null)&&(n=void 0)),n===void 0?lF:n}(e))(t===0?0:t)},cF=Ce([].push),fF=function(e){var t=e==1,r=e==2,n=e==3,o=e==4,i=e==6,a=e==7,u=e==5||i;return function(s,l,c,f){for(var d,p,v=fy(s),m=kD(v),g=op(l,c),y=th(m),h=0,b=f||ape,w=t?b(s,y):r||a?b(s,0):void 0;y>h;h++)if((u||h in m)&&(p=g(d=m[h],h,v),e))if(t)w[h]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return h;case 2:cF(w,d)}else switch(e){case 4:return!1;case 7:cF(w,d)}return i?-1:n||o?o:w}},$D={find:fF(5),findIndex:fF(6)},upe=$D.find,dF=!0;"find"in[]&&Array(1).find(function(){dF=!1}),Mr({target:"Array",proto:!0,forced:dF},{find:function(e){return upe(this,e,arguments.length>1?arguments[1]:void 0)}}),dd("find");var spe=RD?{}.toString:function(){return"[object "+gy(this)+"]"};function pF(e,t,r,n){return t===void 0&&(t=""),r===void 0&&(r="auto"),n===void 0&&(n="auto"),{type:"video",src:e,poster:t,width:r,height:n,children:[{text:""}]}}RD||Fn(Object.prototype,"toString",spe,{unsafe:!0});var hF,j2,lpe={selector:'div[data-w-e-type="video"]',parseElemHtml:function(e,t,r){var n=k(e),o="",i="",a="auto",u="auto",s=n.find("iframe");if(s.length>0)return a=s.attr("width")||"auto",u=s.attr("height")||"auto",pF(o=s[0].outerHTML,i,a,u);var l=n.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",pF(o,i=l.attr("poster")||"",a,u)}},ML=function(){var e=sr(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},HD=te.RegExp,zL=ct(function(){var e=HD("a","y");return e.lastIndex=2,e.exec("abcd")!=null});zL||ct(function(){return!HD("a","y").sticky});var cpe={BROKEN_CARET:zL||ct(function(){var e=HD("^r","gy");return e.lastIndex=2,e.exec("str")!=null})},fpe=te.RegExp,dpe=ct(function(){var e=fpe(".","s");return!(e.dotAll&&e.exec(`
- `)&&e.flags==="s")}),ppe=te.RegExp,hpe=ct(function(){var e=ppe("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),gpe=un.get,vpe=_D("native-string-replace",String.prototype.replace),U0=RegExp.prototype.exec,U6=U0,mpe=Ce("".charAt),ype=Ce("".indexOf),bpe=Ce("".replace),P2=Ce("".slice),N2=(j2=/b*/g,lt(U0,hF=/a/,"a"),lt(U0,j2,"a"),hF.lastIndex!==0||j2.lastIndex!==0),gF=cpe.BROKEN_CARET,I2=/()??/.exec("")[1]!==void 0;(N2||I2||gF||dpe||hpe)&&(U6=function(e){var t,r,n,o,i,a,u,s=this,l=gpe(s),c=mn(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=lt(U6,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=gF&&s.sticky,v=lt(ML,s),m=s.source,g=0,y=c;if(p&&(v=bpe(v,"y",""),ype(v,"g")===-1&&(v+="g"),y=P2(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&mpe(c,s.lastIndex-1)!==`
- `)&&(m="(?: "+m+")",y=" "+y,g++),r=new RegExp("^(?:"+m+")",v)),I2&&(r=new RegExp("^"+m+"$(?!\\s)",v)),N2&&(n=s.lastIndex),o=lt(U0,p?r:s,y),p?o?(o.input=P2(o.input,g),o[0]=P2(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:N2&&o&&(s.lastIndex=s.global?o.index+o[0].length:n),I2&&o&&o.length>1&<(vpe,o[0],r,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&d)for(o.groups=a=LD(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var V0=U6;Mr({target:"RegExp",proto:!0,forced:/./.exec!==V0},{exec:V0});var UD=Function.prototype,vF=UD.apply,wpe=UD.bind,mF=UD.call,$L=typeof Reflect=="object"&&Reflect.apply||(wpe?mF.bind(vF):function(){return mF.apply(vF,arguments)}),yF=(Lt("species"),RegExp.prototype),Epe=Ce("".charAt),bF=Ce("".charCodeAt),Dpe=Ce("".slice),Cpe=function(e){return function(t,r){var n,o,i=mn(eh(t)),a=hy(r),u=i.length;return a<0||a>=u?e?"":void 0:(n=bF(i,a))<55296||n>56319||a+1===u||(o=bF(i,a+1))<56320||o>57343?e?Epe(i,a):n:e?Dpe(i,a,a+2):o-56320+(n-55296<<10)+65536}},HL={charAt:Cpe(!0)},Spe=HL.charAt,xpe=function(e,t,r){return t+(r?Spe(e,t).length:1)},Ape=Math.floor,R2=Ce("".charAt),Ope=Ce("".replace),L2=Ce("".slice),Bpe=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,kpe=/\$([$&'`]|\d{1,2})/g,Fpe=function(e,t,r,n,o,i){var a=r+e.length,u=n.length,s=kpe;return o!==void 0&&(o=fy(o),s=Bpe),Ope(i,s,function(l,c){var f;switch(R2(c,0)){case"$":return"$";case"&":return e;case"`":return L2(t,0,r);case"'":return L2(t,a);case"<":f=o[L2(c,1,-1)];break;default:var d=+c;if(d===0)return l;if(d>u){var p=Ape(d/10);return p===0?l:p<=u?n[p-1]===void 0?R2(c,1):n[p-1]+R2(c,1):l}f=n[d-1]}return f===void 0?"":f})},Tpe=te.TypeError,_pe=function(e,t){var r=e.exec;if(ot(r)){var n=lt(r,e,t);return n!==null&&sr(n),n}if(Do(e)==="RegExp")return lt(V0,e,t);throw Tpe("RegExp#exec called on incompatible receiver")},V6=Lt("replace"),jpe=Math.max,Ppe=Math.min,Npe=Ce([].concat),M2=Ce([].push),wF=Ce("".indexOf),EF=Ce("".slice),Ipe="a".replace(/./,"$0")==="$0",DF=!!/./[V6]&&/./[V6]("a","$0")==="";function UL(e){return e+"-"+Jj()}(function(e,t,r,n){var o=Lt(e),i=!ct(function(){var l={};return l[o]=function(){return 7},""[e](l)!=7}),a=i&&!ct(function(){var l=!1,c=/a/;return c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||r){var u=Ce(/./[o]),s=function(l,c,f){var d=DF?"$":"$0";return[function(p,v){var m=eh(this),g=p==null?void 0:tp(p,V6);return g?lt(g,p,m,v):lt(c,mn(m),p,v)},function(p,v){var m=sr(this),g=mn(p);if(typeof v=="string"&&wF(v,d)===-1&&wF(v,"$<")===-1){var y=f(c,m,g,v);if(y.done)return y.value}var h=ot(v);h||(v=mn(v));var b=m.global;if(b){var w=m.unicode;m.lastIndex=0}for(var D=[];;){var S=_pe(m,g);if(S===null||(M2(D,S),!b))break;mn(S[0])===""&&(m.lastIndex=xpe(g,FL(m.lastIndex),w))}for(var C,O="",F=0,L=0;L<D.length;L++){for(var H=mn((S=D[L])[0]),M=jpe(Ppe(hy(S.index),g.length),0),K=[],V=1;V<S.length;V++)M2(K,(C=S[V])===void 0?C:String(C));var G=S.groups;if(h){var q=Npe([H],K,M,g);G!==void 0&&M2(q,G);var re=mn($L(v,void 0,q))}else re=Fpe(H,g,M,K,G,v);M>=F&&(O+=EF(g,F,M)+re,F=M+H.length)}return O+EF(g,F)}]}(0,""[e],function(l,c,f,d,p){var v=Ce(l),m=c.exec;return m===V0||m===yF.exec?i&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:v(f,c,d)}:{done:!1}});Fn(String.prototype,e,s[0]),Fn(yF,o,s[1])}})("replace",0,!!ct(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"})||!Ipe||DF);var W0=te.Promise,G0=function(e,t,r){for(var n in t)Fn(e,n,t[n],r);return e},Rpe=te.String,Lpe=te.TypeError,Hl=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=Ce(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),t=r instanceof Array}catch{}return function(n,o){return sr(n),function(i){if(typeof i=="object"||ot(i))return i;throw Lpe("Can't set "+Rpe(i)+" as a prototype")}(o),t?e(n,o):n.__proto__=o,n}}():void 0),Mpe=ci.f,CF=Lt("toStringTag"),q0=function(e,t,r){e&&!Wt(e=r?e:e.prototype,CF)&&Mpe(e,CF,{configurable:!0,value:t})},SF=Lt("species"),zpe=te.TypeError,VD=function(e,t){if(Qd(t,e))return e;throw zpe("Incorrect invocation")},Ul={},$pe=Lt("iterator"),Hpe=Array.prototype,Upe=Lt("iterator"),xF=function(e){if(e!=null)return tp(e,Upe)||tp(e,"@@iterator")||Ul[gy(e)]},Vpe=te.TypeError,AF=function(e,t,r){var n,o;sr(e);try{if(!(n=tp(e,"return"))){if(t==="throw")throw r;return r}n=lt(n,e)}catch(i){o=!0,n=i}if(t==="throw")throw r;if(o)throw n;return sr(n),r},Wpe=te.TypeError,Jg=function(e,t){this.stopped=e,this.result=t},OF=Jg.prototype,K0=function(e,t,r){var n,o,i,a,u,s,l,c,f=r&&r.that,d=!(!r||!r.AS_ENTRIES),p=!(!r||!r.IS_ITERATOR),v=!(!r||!r.INTERRUPTED),m=op(t,f),g=function(h){return n&&AF(n,"normal",h),new Jg(!0,h)},y=function(h){return d?(sr(h),v?m(h[0],h[1],g):m(h[0],h[1])):v?m(h,g):m(h)};if(p)n=e;else{if(!(o=xF(e)))throw Wpe(N0(e)+" is not iterable");if((c=o)!==void 0&&(Ul.Array===c||Hpe[$pe]===c)){for(i=0,a=th(e);a>i;i++)if((u=y(e[i]))&&Qd(OF,u))return u;return new Jg(!1)}n=function(h,b){var w=arguments.length<2?xF(h):b;if(Ca(w))return sr(lt(w,h));throw Vpe(N0(h)+" is not iterable")}(e,o)}for(s=n.next;!(l=lt(s,n)).done;){try{u=y(l.value)}catch(h){AF(n,"throw",h)}if(typeof u=="object"&&u&&Qd(OF,u))return u}return new Jg(!1)},VL=Lt("iterator"),WL=!1;try{var Gpe=0,BF={next:function(){return{done:!!Gpe++}},return:function(){WL=!0}};BF[VL]=function(){return this},Array.from(BF,function(){throw 2})}catch{}var ip,Ls,kF,z2,GL=function(e,t){if(!WL)return!1;var r=!1;try{var n={};n[VL]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch{}return r},qpe=te.TypeError,Kpe=Lt("species"),qL=Ce([].slice),KL=/(?:ipad|iphone|ipod).*applewebkit/i.test(pl),ua=Do(te.process)=="process",W6=te.setImmediate,FF=te.clearImmediate,Xpe=te.process,$2=te.Dispatch,Ype=te.Function,TF=te.MessageChannel,Jpe=te.String,H2=0,pd={};try{ip=te.location}catch{}var WD=function(e){if(Wt(pd,e)){var t=pd[e];delete pd[e],t()}},U2=function(e){return function(){WD(e)}},_F=function(e){WD(e.data)},jF=function(e){te.postMessage(Jpe(e),ip.protocol+"//"+ip.host)};W6&&FF||(W6=function(e){var t=qL(arguments,1);return pd[++H2]=function(){$L(ot(e)?e:Ype(e),void 0,t)},Ls(H2),H2},FF=function(e){delete pd[e]},ua?Ls=function(e){Xpe.nextTick(U2(e))}:$2&&$2.now?Ls=function(e){$2.now(U2(e))}:TF&&!KL?(z2=(kF=new TF).port2,kF.port1.onmessage=_F,Ls=op(z2.postMessage,z2)):te.addEventListener&&ot(te.postMessage)&&!te.importScripts&&ip&&ip.protocol!=="file:"&&!ct(jF)?(Ls=jF,te.addEventListener("message",_F,!1)):Ls="onreadystatechange"in rp("script")?function(e){z6.appendChild(rp("script")).onreadystatechange=function(){z6.removeChild(this),WD(e)}}:function(e){setTimeout(U2(e),0)});var Df,iu,hd,Js,V2,W2,G2,PF,XL={set:W6},Zpe=/ipad|iphone|ipod/i.test(pl)&&te.Pebble!==void 0,Qpe=/web0s(?!.*chrome)/i.test(pl),ehe=ND.f,q2=XL.set,NF=te.MutationObserver||te.WebKitMutationObserver,IF=te.document,RF=te.process,sg=te.Promise,LF=ehe(te,"queueMicrotask"),YL=LF&&LF.value;YL||(Df=function(){var e,t;for(ua&&(e=RF.domain)&&e.exit();iu;){t=iu.fn,iu=iu.next;try{t()}catch(r){throw iu?Js():hd=void 0,r}}hd=void 0,e&&e.enter()},KL||ua||Qpe||!NF||!IF?!Zpe&&sg&&sg.resolve?((G2=sg.resolve(void 0)).constructor=sg,PF=op(G2.then,G2),Js=function(){PF(Df)}):ua?Js=function(){RF.nextTick(Df)}:(q2=op(q2,te),Js=function(){q2(Df)}):(V2=!0,W2=IF.createTextNode(""),new NF(Df).observe(W2,{characterData:!0}),Js=function(){W2.data=V2=!V2}));var K2,MF,JL,zF,ZL=YL||function(e){var t={fn:e,next:void 0};hd&&(hd.next=t),iu||(iu=t,Js()),hd=t},the=function(e){var t,r;this.promise=new e(function(n,o){if(t!==void 0||r!==void 0)throw TypeError("Bad Promise constructor");t=n,r=o}),this.resolve=Ca(t),this.reject=Ca(r)},GD={f:function(e){return new the(e)}},G6=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}},rhe=typeof window=="object",QL=XL.set,nhe=Lt("species"),Ko="Promise",$F=un.getterFor(Ko),ohe=un.set,ihe=un.getterFor(Ko),Qa=W0&&W0.prototype,yo=W0,Cf=Qa,eM=te.TypeError,q6=te.document,qD=te.process,hl=GD.f,ahe=hl,uhe=!!(q6&&q6.createEvent&&te.dispatchEvent),tM=ot(te.PromiseRejectionEvent),rM=!1,gd=z0(Ko,function(){var e=dy(yo),t=e!==String(yo);if(!t&&ep===66)return!0;if(ep>=51&&/native code/.test(e))return!1;var r=new yo(function(o){o(1)}),n=function(o){o(function(){},function(){})};return(r.constructor={})[nhe]=n,!(rM=r.then(function(){})instanceof n)||!t&&rhe&&!tM}),she=gd||!GL(function(e){yo.all(e).catch(function(){})}),nM=function(e){var t;return!(!yt(e)||!ot(t=e.then))&&t},KD=function(e,t){if(!e.notified){e.notified=!0;var r=e.reactions;ZL(function(){for(var n=e.value,o=e.state==1,i=0;r.length>i;){var a,u,s,l=r[i++],c=o?l.ok:l.fail,f=l.resolve,d=l.reject,p=l.domain;try{c?(o||(e.rejection===2&&che(e),e.rejection=1),c===!0?a=n:(p&&p.enter(),a=c(n),p&&(p.exit(),s=!0)),a===l.promise?d(eM("Promise-chain cycle")):(u=nM(a))?lt(u,a,f,d):f(a)):d(n)}catch(v){p&&!s&&p.exit(),d(v)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&lhe(e)})}},oM=function(e,t,r){var n,o;uhe?((n=q6.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),te.dispatchEvent(n)):n={promise:t,reason:r},!tM&&(o=te["on"+e])?o(n):e==="unhandledrejection"&&function(i,a){var u=te.console;u&&u.error&&(arguments.length==1?u.error(i):u.error(i,a))}("Unhandled promise rejection",r)},lhe=function(e){lt(QL,te,function(){var t,r=e.facade,n=e.value;if(HF(e)&&(t=G6(function(){ua?qD.emit("unhandledRejection",n,r):oM("unhandledrejection",r,n)}),e.rejection=ua||HF(e)?2:1,t.error))throw t.value})},HF=function(e){return e.rejection!==1&&!e.parent},che=function(e){lt(QL,te,function(){var t=e.facade;ua?qD.emit("rejectionHandled",t):oM("rejectionhandled",t,e.value)})},nl=function(e,t,r){return function(n){e(t,n,r)}},gl=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=2,KD(e,!0))},K6=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===t)throw eM("Promise can't be resolved itself");var n=nM(t);n?ZL(function(){var o={done:!1};try{lt(n,t,nl(K6,o,e),nl(gl,o,e))}catch(i){gl(o,i,e)}}):(e.value=t,e.state=1,KD(e,!1))}catch(o){gl({done:!1},o,e)}}};if(gd&&(Cf=(yo=function(e){VD(this,Cf),Ca(e),lt(K2,this);var t=$F(this);try{e(nl(K6,t),nl(gl,t))}catch(r){gl(t,r)}}).prototype,(K2=function(e){ohe(this,{type:Ko,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=G0(Cf,{then:function(e,t){var r=ihe(this),n=r.reactions,o=hl(function(i,a){var u,s=sr(i).constructor;return s===void 0||(u=sr(s)[Kpe])==null?a:function(l){if(zD(l))return l;throw qpe(N0(l)+" is not a constructor")}(u)}(this,yo));return o.ok=!ot(e)||e,o.fail=ot(t)&&t,o.domain=ua?qD.domain:void 0,r.parent=!0,n[n.length]=o,r.state!=0&&KD(r,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),MF=function(){var e=new K2,t=$F(e);this.promise=e,this.resolve=nl(K6,t),this.reject=nl(gl,t)},GD.f=hl=function(e){return e===yo||e===JL?new MF(e):ahe(e)},ot(W0)&&Qa!==Object.prototype)){zF=Qa.then,rM||(Fn(Qa,"then",function(e,t){var r=this;return new yo(function(n,o){lt(zF,r,n,o)}).then(e,t)},{unsafe:!0}),Fn(Qa,"catch",Cf.catch,{unsafe:!0}));try{delete Qa.constructor}catch{}Hl&&Hl(Qa,Cf)}function ap(e,t,r){return r===void 0&&(r=""),sy(this,void 0,void 0,function(){var n,o,i,a,u,s,l;return ly(this,function(c){switch(c.label){case 0:return t?(e.restoreSelection(),n=e.getMenuConfig("insertVideo"),o=n.onInsertedVideo,i=n.checkVideo,a=n.parseVideoSrc,[4,i(t,r)]):[2];case 1:return typeof(u=c.sent())=="string"?(e.alert(u,"error"),[2]):u==null?[2]:[4,a(t)];case 2:return(s=c.sent()).trim().indexOf("<iframe ")!==0&&(s=s.replace(/</g,"<").replace(/>/g,">")),l={type:"video",src:s,poster:r,children:[{text:""}]},Promise.resolve().then(function(){N.insertNodes(e,l)}),o(l),[2]}})})}function X2(){return UL("w-e-insert-video")}Mr({global:!0,wrap:!0,forced:gd},{Promise:yo}),q0(yo,Ko,!1),function(e){var t=Yu("Promise"),r=ci.f;Bo&&t&&!t[SF]&&r(t,SF,{configurable:!0,get:function(){return this}})}(),JL=Yu(Ko),Mr({target:Ko,stat:!0,forced:gd},{reject:function(e){var t=hl(this);return lt(t.reject,void 0,e),t.promise}}),Mr({target:Ko,stat:!0,forced:gd},{resolve:function(e){return function(t,r){if(sr(t),yt(r)&&r.constructor===t)return r;var n=GD.f(t);return(0,n.resolve)(r),n.promise}(this,e)}}),Mr({target:Ko,stat:!0,forced:she},{all:function(e){var t=this,r=hl(t),n=r.resolve,o=r.reject,i=G6(function(){var a=Ca(t.resolve),u=[],s=0,l=1;K0(e,function(c){var f=s++,d=!1;l++,lt(a,t,c).then(function(p){d||(d=!0,u[f]=p,--l||n(u))},o)}),--l||n(u)});return i.error&&o(i.value),r.promise},race:function(e){var t=this,r=hl(t),n=r.reject,o=G6(function(){var i=Ca(t.resolve);K0(e,function(a){lt(i,t,a).then(r.resolve,n)})});return o.error&&n(o.value),r.promise}});var fhe=function(){function e(){this.title=Q("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=X2(),this.posterInputId=X2(),this.buttonId=X2()}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,r){},e.prototype.isDisabled=function(t){var r=t.selection;return r==null||!R.isCollapsed(r)||!!A.getSelectedElems(t).some(function(n){var o=A.getNodeType(n);return o==="pre"||o==="list-item"||!!t.isVoid(n)})},e.prototype.getModalPositionNode=function(t){return null},e.prototype.getModalContentElem=function(t){var r=this,n=this,o=n.srcInputId,i=n.posterInputId,a=n.buttonId,u=Fu(en(Q("videoModule.videoSrc"),o,Q("videoModule.videoSrcPlaceHolder")),2),s=u[0],l=u[1],c=Fu(en(Q("videoModule.videoPoster"),i,Q("videoModule.videoPosterPlaceHolder")),2),f=c[0],d=c[1],p=k(l),v=k(d),m=Fu(nc(a,Q("videoModule.ok")),1)[0];if(this.$content==null){var g=k("<div></div>");g.on("click","#"+a,function(h){return sy(r,void 0,void 0,function(){var b,w;return ly(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(t,b,w)];case 1:return D.sent(),t.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]},e}(),dhe=Ce([].join),phe=kD!=Object,hhe=function(e,t){var r=[].join;return!!r&&ct(function(){r.call(null,",",1)})}();Mr({target:"Array",proto:!0,forced:phe||!hhe},{join:function(e){return dhe(Fa(this),e===void 0?",":e)}});var _u,UF,VF,ghe=!ct(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),WF=ID("IE_PROTO"),X6=te.Object,vhe=X6.prototype,X0=ghe?X6.getPrototypeOf:function(e){var t=fy(e);if(Wt(t,WF))return t[WF];var r=t.constructor;return ot(r)&&t instanceof r?r.prototype:t instanceof X6?vhe:null},Y6=Lt("iterator"),iM=!1;[].keys&&("next"in(VF=[].keys())?(UF=X0(X0(VF)))!==Object.prototype&&(_u=UF):iM=!0);var mhe=_u==null||ct(function(){var e={};return _u[Y6].call(e)!==e});mhe&&(_u={}),ot(_u[Y6])||Fn(_u,Y6,function(){return this});var XD={IteratorPrototype:_u,BUGGY_SAFARI_ITERATORS:iM},yhe=XD.IteratorPrototype,bhe=function(){return this},whe=pc.PROPER,Ehe=pc.CONFIGURABLE,GF=XD.IteratorPrototype,Y2=XD.BUGGY_SAFARI_ITERATORS,Sf=Lt("iterator"),Dhe=function(){return this},aM=function(e,t,r,n,o,i,a){(function(g,y,h,b){var w=y+" Iterator";g.prototype=LD(yhe,{next:cy(1,h)}),q0(g,w,!1),Ul[w]=bhe})(r,t,n);var u,s,l=function(g){if(g===o&&v)return v;if(!Y2&&g in d)return d[g];switch(g){case"keys":case"values":case"entries":return function(){return new r(this,g)}}return function(){return new r(this)}},c=t+" Iterator",f=!1,d=e.prototype,p=d[Sf]||d["@@iterator"]||o&&d[o],v=!Y2&&p||l(o),m=t=="Array"&&d.entries||p;return m&&(u=X0(m.call(new e)))!==Object.prototype&&u.next&&(X0(u)!==GF&&(Hl?Hl(u,GF):ot(u[Sf])||Fn(u,Sf,Dhe)),q0(u,c,!0)),whe&&o=="values"&&p&&p.name!=="values"&&(Ehe?aa(d,"name","values"):(f=!0,v=function(){return lt(p,this)})),o&&(s={values:l("values"),keys:l("keys"),entries:l("entries")},a||Mr({target:t,proto:!0,forced:Y2||f},s)),d[Sf]!==v&&Fn(d,Sf,v,{name:o}),Ul[t]=v,s},Che=un.set,She=un.getterFor("Array Iterator"),Kf=aM(Array,"Array",function(e,t){Che(this,{type:"Array Iterator",target:Fa(e),index:0,kind:t})},function(){var e=She(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,{value:void 0,done:!0}):r=="keys"?{value:n,done:!1}:r=="values"?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}},"values");Ul.Arguments=Ul.Array,dd("keys"),dd("values"),dd("entries");var xhe=HL.charAt,Ahe=un.set,Ohe=un.getterFor("String Iterator");aM(String,"String",function(e){Ahe(this,{type:"String Iterator",string:mn(e),index:0})},function(){var e,t=Ohe(this),r=t.string,n=t.index;return n>=r.length?{value:void 0,done:!0}:(e=xhe(r,n),t.index+=e.length,{value:e,done:!1})});var uM=function(e,t,r){var n=PD(t);n in e?ci.f(e,n,cy(0,r)):e[n]=r},Bhe=te.Array,khe=Math.max,qF=M0.f,KF=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Fhe={f:function(e){return KF&&Do(e)=="Window"?function(t){try{return qF(t)}catch{return function(r,n,o){for(var i=th(r),a=np(void 0,i),u=np(i,i),s=Bhe(khe(u-a,0)),l=0;a<u;a++,l++)uM(s,l,r[a]);return s.length=l,s}(KF)}}(e):qF(Fa(e))}},XF=ct(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}),lg=Object.isExtensible,cu=ct(function(){lg(1)})||XF?function(e){return!!yt(e)&&(!XF||Do(e)!="ArrayBuffer")&&(!lg||lg(e))}:lg,The=!ct(function(){return Object.isExtensible(Object.preventExtensions({}))}),YD=BD(function(e){var t=ci.f,r=!1,n=jD("meta"),o=0,i=function(u){t(u,n,{value:{objectID:"O"+o++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},r=!0;var u=M0.f,s=Ce([].splice),l={};l[n]=1,u(l).length&&(M0.f=function(c){for(var f=u(c),d=0,p=f.length;d<p;d++)if(f[d]===n){s(f,d,1);break}return f},Mr({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Fhe.f}))},fastKey:function(u,s){if(!yt(u))return typeof u=="symbol"?u:(typeof u=="string"?"S":"P")+u;if(!Wt(u,n)){if(!cu(u))return"F";if(!s)return"E";i(u)}return u[n].objectID},getWeakData:function(u,s){if(!Wt(u,n)){if(!cu(u))return!0;if(!s)return!1;i(u)}return u[n].weakData},onFreeze:function(u){return The&&r&&cu(u)&&!Wt(u,n)&&i(u),u}};py[n]=!0}),cg=YD.getWeakData,_he=un.set,jhe=un.getterFor,Phe=$D.find,Nhe=$D.findIndex,Ihe=Ce([].splice),Rhe=0,fg=function(e){return e.frozen||(e.frozen=new sM)},sM=function(){this.entries=[]},J2=function(e,t){return Phe(e.entries,function(r){return r[0]===t})};sM.prototype={get:function(e){var t=J2(this,e);if(t)return t[1]},has:function(e){return!!J2(this,e)},set:function(e,t){var r=J2(this,e);r?r[1]=t:this.entries.push([e,t])},delete:function(e){var t=Nhe(this.entries,function(r){return r[0]===e});return~t&&Ihe(this.entries,t,1),!!~t}};var xf,lM={getConstructor:function(e,t,r,n){var o=e(function(s,l){VD(s,i),_he(s,{type:t,id:Rhe++,frozen:void 0}),l!=null&&K0(l,s[n],{that:s,AS_ENTRIES:r})}),i=o.prototype,a=jhe(t),u=function(s,l,c){var f=a(s),d=cg(sr(l),!0);return d===!0?fg(f).set(l,c):d[f.id]=c,s};return G0(i,{delete:function(s){var l=a(this);if(!yt(s))return!1;var c=cg(s);return c===!0?fg(l).delete(s):c&&Wt(c,l.id)&&delete c[l.id]},has:function(s){var l=a(this);if(!yt(s))return!1;var c=cg(s);return c===!0?fg(l).has(s):c&&Wt(c,l.id)}}),G0(i,r?{get:function(s){var l=a(this);if(yt(s)){var c=cg(s);return c===!0?fg(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}},dg=un.enforce,Lhe=!te.ActiveXObject&&"ActiveXObject"in te,cM=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Mhe=function(e,t,r){var n=e.indexOf("Map")!==-1,o=e.indexOf("Weak")!==-1,i=n?"set":"add",a=te[e],u=a&&a.prototype,s=a,l={},c=function(g){var y=Ce(u[g]);Fn(u,g,g=="add"?function(h){return y(this,h===0?0:h),this}:g=="delete"?function(h){return!(o&&!yt(h))&&y(this,h===0?0:h)}:g=="get"?function(h){return o&&!yt(h)?void 0:y(this,h===0?0:h)}:g=="has"?function(h){return!(o&&!yt(h))&&y(this,h===0?0:h)}:function(h,b){return y(this,h===0?0:h,b),this})};if(z0(e,!ot(a)||!(o||u.forEach&&!ct(function(){new a().entries().next()}))))s=r.getConstructor(t,e,n,i),YD.enable();else if(z0(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=ct(function(){f.has(1)}),v=GL(function(g){new a(g)}),m=!o&&ct(function(){for(var g=new a,y=5;y--;)g[i](y,y);return!g.has(-0)});v||((s=t(function(g,y){VD(g,u);var h=function(b,w,D){var S,C;return Hl&&ot(S=w.constructor)&&S!==D&&yt(C=S.prototype)&&C!==D.prototype&&Hl(b,C),b}(new a,g,s);return y!=null&&K0(y,h[i],{that:h,AS_ENTRIES:n}),h})).prototype=u,u.constructor=s),(p||m)&&(c("delete"),c("has"),n&&c("get")),(m||d)&&c(i),o&&u.clear&&delete u.clear}return l[e]=s,Mr({global:!0,forced:s!=a},l),q0(s,e),o||r.setStrong(s,e,n),s}("WeakMap",cM,lM);if(BL&&Lhe){xf=lM.getConstructor(cM,"WeakMap",!0),YD.enable();var Af=Mhe.prototype,YF=Ce(Af.delete),pg=Ce(Af.has),JF=Ce(Af.get),ZF=Ce(Af.set);G0(Af,{delete:function(e){if(yt(e)&&!cu(e)){var t=dg(this);return t.frozen||(t.frozen=new xf),YF(this,e)||t.frozen.delete(e)}return YF(this,e)},has:function(e){if(yt(e)&&!cu(e)){var t=dg(this);return t.frozen||(t.frozen=new xf),pg(this,e)||t.frozen.has(e)}return pg(this,e)},get:function(e){if(yt(e)&&!cu(e)){var t=dg(this);return t.frozen||(t.frozen=new xf),pg(this,e)?JF(this,e):t.frozen.get(e)}return JF(this,e)},set:function(e,t){if(yt(e)&&!cu(e)){var r=dg(this);r.frozen||(r.frozen=new xf),pg(this,e)?ZF(this,e,t):r.frozen.set(e,t)}else ZF(this,e,t);return this}})}var fM={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},Z2=rp("span").classList,QF=Z2&&Z2.constructor&&Z2.constructor.prototype,zhe=QF===Object.prototype?void 0:QF,Q2=Lt("iterator"),eT=Lt("toStringTag"),ew=Kf.values,dM=function(e,t){if(e){if(e[Q2]!==ew)try{aa(e,Q2,ew)}catch{e[Q2]=ew}if(e[eT]||aa(e,eT,t),fM[t]){for(var r in Kf)if(e[r]!==Kf[r])try{aa(e,r,Kf[r])}catch{e[r]=Kf[r]}}}};for(var tw in fM)dM(te[tw]&&te[tw].prototype,tw);dM(zhe,"DOMTokenList");var $he=pc.EXISTS,Hhe=ci.f,pM=Function.prototype,Uhe=Ce(pM.toString),hM=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Vhe=Ce(hM.exec);Bo&&!$he&&Hhe(pM,"name",{configurable:!0,get:function(){try{return Vhe(hM,Uhe(this))[1]}catch{return""}}});var Whe=Lt("species"),Ghe=ep>=51||!ct(function(){var e=[];return(e.constructor={})[Whe]=function(){return{foo:1}},e.slice(Boolean).foo!==1}),qhe=Lt("species"),rw=te.Array,Khe=Math.max;function gM(e){return e.getMenuConfig("uploadVideo")}Mr({target:"Array",proto:!0,forced:!Ghe},{slice:function(e,t){var r,n,o,i=Fa(this),a=th(i),u=np(e,a),s=np(t===void 0?a:t,a);if(H0(i)&&(r=i.constructor,(zD(r)&&(r===rw||H0(r.prototype))||yt(r)&&(r=r[qhe])===null)&&(r=void 0),r===rw||r===void 0))return qL(i,u,s);for(n=new(r===void 0?rw:r)(Khe(s-u,0)),o=0;u<s;u++,o++)u in i&&uM(n,o,i[u]);return n.length=o,n}});var tT=new WeakMap;function Xhe(e,t){return sy(this,void 0,void 0,function(){var r,n,o,i;return ly(this,function(a){switch(a.label){case 0:return r=function(u){var s=tT.get(u);if(s!=null)return s;var l=gM(u),c=l.onSuccess,f=l.onProgress,d=l.onFailed,p=l.customInsert,v=l.onError;return s=MN(P0(P0({},l),{onProgress:function(m){u.showProgressBar(m),f&&f(m)},onSuccess:function(m,g){if(p)return p(g,function(O,F){return ap(u,O,F)}),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)}})),tT.set(u,s),s}(e),n=t.name,o=t.type,i=t.size,r.addFile({name:n,type:o,size:i,data:t}),[4,r.upload()];case 1:return a.sent(),[2]}})})}var Yhe=function(){function e(){this.title=Q("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 e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,r){var n=this.getMenuConfig(t),o=n.allowedFileTypes,i=o===void 0?[]:o,a=n.customBrowseAndUpload;if(a)a(function(c,f){return ap(t,c,f)});else{var u="";i.length>0&&(u='accept="'+i.join(", ")+'"');var s=k("body"),l=k('<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;sy(this,void 0,void 0,function(){var m,g,y,h,b,w;return ly(this,function(D){switch(D.label){case 0:if(d==null)return[2];m=Array.prototype.slice.call(d),g=gM(f).customUpload,D.label=1;case 1:D.trys.push([1,9,10,15]),y=qfe(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,Xhe(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]}})})})(t,c)})}},e.prototype.isDisabled=function(t){var r=t.selection;return r==null||!R.isCollapsed(r)||!!A.getSelectedElems(t).some(function(n){var o=A.getNodeType(n);return o==="pre"||o==="list-item"||!!t.isVoid(n)})},e.prototype.getMenuConfig=function(t){return t.getMenuConfig("uploadVideo")},e}(),Jhe=pc.PROPER,J6=RegExp.prototype,vM=J6.toString,Zhe=Ce(ML),Qhe=ct(function(){return vM.call({source:"a",flags:"b"})!="/a/b"}),ege=Jhe&&vM.name!="toString";function nw(){return UL("w-e-insert-video")}(Qhe||ege)&&Fn(RegExp.prototype,"toString",function(){var e=sr(this),t=mn(e.source),r=e.flags;return"/"+t+"/"+mn(r===void 0&&Qd(J6,e)&&!("flags"in J6)?Zhe(e):r)},{unsafe:!0});var tge=function(){function e(){this.title=Q("videoModule.editSize"),this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.widthInputId=nw(),this.heightInputId=nw(),this.buttonId=nw()}return e.prototype.getSelectedVideoNode=function(t){return A.getSelectedNodeByType(t,"video")},e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,r){},e.prototype.isDisabled=function(t){return t.selection==null||this.getSelectedVideoNode(t)==null},e.prototype.getModalPositionNode=function(t){return this.getSelectedVideoNode(t)},e.prototype.getModalContentElem=function(t){var r=this,n=r.widthInputId,o=r.heightInputId,i=r.buttonId,a=Fu(en(Q("videoModule.width"),n,"auto"),2),u=a[0],s=k(a[1]),l=Fu(en(Q("videoModule.height"),o,"auto"),2),c=l[0],f=k(l[1]),d=Fu(nc(i,Q("videoModule.ok")),1)[0];if(this.$content==null){var p=k("<div></div>");p.on("click","#"+i,function(w){w.preventDefault();var D=p.find("#"+n).val().trim(),S=p.find("#"+o).val().trim(),C=parseInt(D),O=parseInt(S),F=C?C.toString():"auto",L=O?O.toString():"auto";t.restoreSelection(),N.setNodes(t,{width:F,height:L},{match:function(H){return A.checkNodeType(H,"video")}}),t.hidePanelOrModal()}),this.$content=p}var v=this.$content;v.empty(),v.append(u),v.append(c),v.append(d);var m=this.getSelectedVideoNode(t);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]},e}(),rge={renderElems:[Yde],elemsToHtml:[Jde],preParseHtml:[tpe],parseElemsHtml:[lpe],menus:[{key:"insertVideo",factory:function(){return new fhe},config:{onInsertedVideo:function(e){},checkVideo:function(e,t){return!0},parseVideoSrc:function(e){return e}}},{key:"uploadVideo",factory:function(){return new Yhe},config:{server:"",fieldName:"wangeditor-uploaded-video",maxFileSize:10485760,maxNumberOfFiles:5,allowedFileTypes:["video/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:3e4,onBeforeUpload:function(e){return e},onProgress:function(e){},onSuccess:function(e,t){},onFailed:function(e,t){},onError:function(e,t,r){}}},{key:"editVideoSize",factory:function(){return new tge}}],editorPlugin:function(e){var t=e.isVoid,r=e.normalizeNode,n=e;return n.isVoid=function(o){return o.type==="video"||t(o)},n.normalizeNode=function(o){var i=Fu(o,2),a=i[0],u=i[1];return A.getNodeType(a)==="video"&&A.isLastNode(n,a)&&N.insertNodes(n,A.genEmptyParagraph(),{at:[u[0]+1]}),r([a,u])},n}};Wr("en",{uploadImgModule:{uploadImage:"Upload Image",uploadError:"{{fileName}} upload error"}}),Wr("zh-CN",{uploadImgModule:{uploadImage:"上传图片",uploadError:"{{fileName}} 上传出错"}});var rT=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function JD(e){var t={exports:{}};return e(t,t.exports),t.exports}var Ti,Zg,hg=function(e){return e&&e.Math==Math&&e},ee=hg(typeof globalThis=="object"&&globalThis)||hg(typeof window=="object"&&window)||hg(typeof self=="object"&&self)||hg(typeof rT=="object"&&rT)||function(){return this}()||Function("return this")(),ht=function(e){try{return!!e()}catch{return!0}},ko=!ht(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Of=Function.prototype.call,tt=Of.bind?Of.bind(Of):function(){return Of.apply(Of,arguments)},nT={}.propertyIsEnumerable,oT=Object.getOwnPropertyDescriptor,nge={f:oT&&!nT.call({1:2},1)?function(e){var t=oT(this,e);return!!t&&t.enumerable}:nT},vy=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},mM=Function.prototype,Z6=mM.bind,Q6=mM.call,oge=Z6&&Z6.bind(Q6),Te=Z6?function(e){return e&&oge(Q6,e)}:function(e){return e&&function(){return Q6.apply(e,arguments)}},ige=Te({}.toString),age=Te("".slice),Kn=function(e){return age(ige(e),8,-1)},ow=ee.Object,uge=Te("".split),ZD=ht(function(){return!ow("z").propertyIsEnumerable(0)})?function(e){return Kn(e)=="String"?uge(e,""):ow(e)}:ow,sge=ee.TypeError,up=function(e){if(e==null)throw sge("Can't call method on "+e);return e},Ta=function(e){return ZD(up(e))},ut=function(e){return typeof e=="function"},dt=function(e){return typeof e=="object"?e!==null:ut(e)},lge=function(e){return ut(e)?e:void 0},Ju=function(e,t){return arguments.length<2?lge(ee[e]):ee[e]&&ee[e][t]},sp=Te({}.isPrototypeOf),vl=Ju("navigator","userAgent")||"",iT=ee.process,aT=ee.Deno,uT=iT&&iT.versions||aT&&aT.version,sT=uT&&uT.v8;sT&&(Zg=(Ti=sT.split("."))[0]>0&&Ti[0]<4?1:+(Ti[0]+Ti[1])),!Zg&&vl&&(!(Ti=vl.match(/Edge\/(\d+)/))||Ti[1]>=74)&&(Ti=vl.match(/Chrome\/(\d+)/))&&(Zg=+Ti[1]);var lp=Zg,e3=!!Object.getOwnPropertySymbols&&!ht(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&lp&&lp<41}),QD=e3&&!Symbol.sham&&typeof Symbol.iterator=="symbol",cge=ee.Object,iw=QD?function(e){return typeof e=="symbol"}:function(e){var t=Ju("Symbol");return ut(t)&&sp(t.prototype,cge(e))},fge=ee.String,Y0=function(e){try{return fge(e)}catch{return"Object"}},dge=ee.TypeError,Sa=function(e){if(ut(e))return e;throw dge(Y0(e)+" is not a function")},cp=function(e,t){var r=e[t];return r==null?void 0:Sa(r)},pge=ee.TypeError,hge=Object.defineProperty,eC=function(e,t){try{hge(ee,e,{value:t,configurable:!0,writable:!0})}catch{ee[e]=t}return t},sa=ee["__core-js_shared__"]||eC("__core-js_shared__",{}),tC=JD(function(e){(e.exports=function(t,r){return sa[t]||(sa[t]=r!==void 0?r:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),gge=ee.Object,rC=function(e){return gge(up(e))},vge=Te({}.hasOwnProperty),Gt=Object.hasOwn||function(e,t){return vge(rC(e),t)},mge=0,yge=Math.random(),bge=Te(1 .toString),nC=function(e){return"Symbol("+(e===void 0?"":e)+")_"+bge(++mge+yge,36)},Bf=tC("wks"),ju=ee.Symbol,lT=ju&&ju.for,wge=QD?ju:ju&&ju.withoutSetter||nC,Mt=function(e){if(!Gt(Bf,e)||!e3&&typeof Bf[e]!="string"){var t="Symbol."+e;e3&&Gt(ju,e)?Bf[e]=ju[e]:Bf[e]=QD&&lT?lT(t):wge(t)}return Bf[e]},Ege=ee.TypeError,Dge=Mt("toPrimitive"),oC=function(e){var t=function(r,n){if(!dt(r)||iw(r))return r;var o,i=cp(r,Dge);if(i){if(o=tt(i,r,n),!dt(o)||iw(o))return o;throw Ege("Can't convert object to primitive value")}return function(a,u){var s,l;if(ut(s=a.toString)&&!dt(l=tt(s,a))||ut(s=a.valueOf)&&!dt(l=tt(s,a))||u!=="string")return l;throw pge("Can't convert object to primitive value")}(r,n)}(e,"string");return iw(t)?t:t+""},t3=ee.document,Cge=dt(t3)&&dt(t3.createElement),fp=function(e){return Cge?t3.createElement(e):{}},yM=!ko&&!ht(function(){return Object.defineProperty(fp("div"),"a",{get:function(){return 7}}).a!=7}),cT=Object.getOwnPropertyDescriptor,iC={f:ko?cT:function(e,t){if(e=Ta(e),t=oC(t),yM)try{return cT(e,t)}catch{}if(Gt(e,t))return vy(!tt(nge.f,e,t),e[t])}},Sge=ee.String,xge=ee.TypeError,lr=function(e){if(dt(e))return e;throw xge(Sge(e)+" is not an object")},Age=ee.TypeError,fT=Object.defineProperty,fi={f:ko?fT:function(e,t,r){if(lr(e),t=oC(t),lr(r),yM)try{return fT(e,t,r)}catch{}if("get"in r||"set"in r)throw Age("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},Co=ko?function(e,t,r){return fi.f(e,t,vy(1,r))}:function(e,t,r){return e[t]=r,e},Oge=Te(Function.toString);ut(sa.inspectSource)||(sa.inspectSource=function(e){return Oge(e)});var J0,vd,Z0,my=sa.inspectSource,dT=ee.WeakMap,bM=ut(dT)&&/native code/.test(my(dT)),pT=tC("keys"),aC=function(e){return pT[e]||(pT[e]=nC(e))},yy={},r3=ee.TypeError,Bge=ee.WeakMap;if(bM||sa.state){var Ka=sa.state||(sa.state=new Bge),kge=Te(Ka.get),hT=Te(Ka.has),Fge=Te(Ka.set);J0=function(e,t){if(hT(Ka,e))throw new r3("Object already initialized");return t.facade=e,Fge(Ka,e,t),t},vd=function(e){return kge(Ka,e)||{}},Z0=function(e){return hT(Ka,e)}}else{var Ms=aC("state");yy[Ms]=!0,J0=function(e,t){if(Gt(e,Ms))throw new r3("Object already initialized");return t.facade=e,Co(e,Ms,t),t},vd=function(e){return Gt(e,Ms)?e[Ms]:{}},Z0=function(e){return Gt(e,Ms)}}var sn={set:J0,get:vd,has:Z0,enforce:function(e){return Z0(e)?vd(e):J0(e,{})},getterFor:function(e){return function(t){var r;if(!dt(t)||(r=vd(t)).type!==e)throw r3("Incompatible receiver, "+e+" required");return r}}},wM=Function.prototype,Tge=ko&&Object.getOwnPropertyDescriptor,aw=Gt(wM,"name"),nh={EXISTS:aw,PROPER:aw&&(function(){}).name==="something",CONFIGURABLE:aw&&(!ko||ko&&Tge(wM,"name").configurable)},Tn=JD(function(e){var t=nh.CONFIGURABLE,r=sn.get,n=sn.enforce,o=String(String).split("String");(e.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;ut(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Gt(u,"name")||t&&u.name!==p)&&Co(u,"name",p),(l=n(u)).source||(l.source=o.join(typeof p=="string"?p:""))),i!==ee?(c?!d&&i[a]&&(f=!0):delete i[a],f?i[a]=u:Co(i,a,u)):f?i[a]=u:eC(a,u)})(Function.prototype,"toString",function(){return ut(this)&&r(this).source||my(this)})}),_ge=Math.ceil,jge=Math.floor,uC=function(e){var t=+e;return t!=t||t===0?0:(t>0?jge:_ge)(t)},Pge=Math.max,Nge=Math.min,dp=function(e,t){var r=uC(e);return r<0?Pge(r+t,0):Nge(r,t)},Ige=Math.min,EM=function(e){return e>0?Ige(uC(e),9007199254740991):0},oh=function(e){return EM(e.length)},Rge=function(e){return function(t,r,n){for(var o=Ta(t),i=oh(o),a=dp(n,i);i>a;a++)if(a in o&&o[a]===r)return a||0;return-1}},Lge=Rge(),gT=Te([].push),DM=function(e,t){var r,n=Ta(e),o=0,i=[];for(r in n)!Gt(yy,r)&&Gt(n,r)&&gT(i,r);for(;t.length>o;)Gt(n,r=t[o++])&&(~Lge(i,r)||gT(i,r));return i},Q0=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Mge=Q0.concat("length","prototype"),em={f:Object.getOwnPropertyNames||function(e){return DM(e,Mge)}},zge={f:Object.getOwnPropertySymbols},$ge=Te([].concat),Hge=Ju("Reflect","ownKeys")||function(e){var t=em.f(lr(e)),r=zge.f;return r?$ge(t,r(e)):t},Uge=function(e,t){for(var r=Hge(t),n=fi.f,o=iC.f,i=0;i<r.length;i++){var a=r[i];Gt(e,a)||n(e,a,o(t,a))}},Vge=/#|\.prototype\./,ih=function(e,t){var r=Gge[Wge(e)];return r==Kge||r!=qge&&(ut(t)?ht(t):!!t)},Wge=ih.normalize=function(e){return String(e).replace(Vge,".").toLowerCase()},Gge=ih.data={},qge=ih.NATIVE="N",Kge=ih.POLYFILL="P",tm=ih,Xge=iC.f,bo=function(e,t){var r,n,o,i,a,u=e.target,s=e.global,l=e.stat;if(r=s?ee:l?ee[u]||eC(u,{}):(ee[u]||{}).prototype)for(n in t){if(i=t[n],o=e.noTargetGet?(a=Xge(r,n))&&a.value:r[n],!tm(s?n:u+(l?".":"#")+n,e.forced)&&o!==void 0){if(typeof i==typeof o)continue;Uge(i,o)}(e.sham||o&&o.sham)&&Co(i,"sham",!0),Tn(r,n,i,e)}},rm=Array.isArray||function(e){return Kn(e)=="Array"},CM={};CM[Mt("toStringTag")]="z";var sC=String(CM)==="[object z]",Yge=Mt("toStringTag"),Jge=ee.Object,Zge=Kn(function(){return arguments}())=="Arguments",by=sC?Kn:function(e){var t,r,n;return e===void 0?"Undefined":e===null?"Null":typeof(r=function(o,i){try{return o[i]}catch{}}(t=Jge(e),Yge))=="string"?r:Zge?Kn(t):(n=Kn(t))=="Object"&&ut(t.callee)?"Arguments":n},SM=function(){},Qge=[],xM=Ju("Reflect","construct"),lC=/^\s*(?:class|function)\b/,eve=Te(lC.exec),tve=!lC.exec(SM),kf=function(e){if(!ut(e))return!1;try{return xM(SM,Qge,e),!0}catch{return!1}},cC=!xM||ht(function(){var e;return kf(kf.call)||!kf(Object)||!kf(function(){e=!0})||e})?function(e){if(!ut(e))return!1;switch(by(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return tve||!!eve(lC,my(e))}:kf,AM=function(e,t,r){var n=oC(t);n in e?fi.f(e,n,vy(0,r)):e[n]=r},rve=Mt("species"),OM=Te([].slice),nve=lp>=51||!ht(function(){var e=[];return(e.constructor={})[rve]=function(){return{foo:1}},e.slice(Boolean).foo!==1}),ove=Mt("species"),uw=ee.Array,ive=Math.max;bo({target:"Array",proto:!0,forced:!nve},{slice:function(e,t){var r,n,o,i=Ta(this),a=oh(i),u=dp(e,a),s=dp(t===void 0?a:t,a);if(rm(i)&&(r=i.constructor,(cC(r)&&(r===uw||rm(r.prototype))||dt(r)&&(r=r[ove])===null)&&(r=void 0),r===uw||r===void 0))return OM(i,u,s);for(n=new(r===void 0?uw:r)(ive(s-u,0)),o=0;u<s;u++,o++)u in i&&AM(n,o,i[u]);return n.length=o,n}});var ave=sC?{}.toString:function(){return"[object "+by(this)+"]"};sC||Tn(Object.prototype,"toString",ave,{unsafe:!0});var gg,uve=ee.String,la=function(e){if(by(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return uve(e)},BM=function(){var e=lr(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},fC=ee.RegExp,n3=ht(function(){var e=fC("a","y");return e.lastIndex=2,e.exec("abcd")!=null});n3||ht(function(){return!fC("a","y").sticky});var kM={BROKEN_CARET:n3||ht(function(){var e=fC("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),UNSUPPORTED_Y:n3},sve=Object.keys||function(e){return DM(e,Q0)},lve=ko?Object.defineProperties:function(e,t){lr(e);for(var r,n=Ta(t),o=sve(t),i=o.length,a=0;i>a;)fi.f(e,r=o[a++],n[r]);return e},o3=Ju("document","documentElement"),FM=aC("IE_PROTO"),sw=function(){},TM=function(e){return"<script>"+e+"<\/script>"},vT=function(e){e.write(TM("")),e.close();var t=e.parentWindow.Object;return e=null,t},Qg=function(){try{gg=new ActiveXObject("htmlfile")}catch{}var e,t;Qg=typeof document<"u"?document.domain&&gg?vT(gg):((t=fp("iframe")).style.display="none",o3.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(TM("document.F=Object")),e.close(),e.F):vT(gg);for(var r=Q0.length;r--;)delete Qg.prototype[Q0[r]];return Qg()};yy[FM]=!0;var mT,lw,dC=Object.create||function(e,t){var r;return e!==null?(sw.prototype=lr(e),r=new sw,sw.prototype=null,r[FM]=e):r=Qg(),t===void 0?r:lve(r,t)},cve=ee.RegExp,fve=ht(function(){var e=cve(".","s");return!(e.dotAll&&e.exec(`
- `)&&e.flags==="s")}),dve=ee.RegExp,pve=ht(function(){var e=dve("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),hve=sn.get,gve=tC("native-string-replace",String.prototype.replace),nm=RegExp.prototype.exec,i3=nm,vve=Te("".charAt),mve=Te("".indexOf),yve=Te("".replace),cw=Te("".slice),fw=(lw=/b*/g,tt(nm,mT=/a/,"a"),tt(nm,lw,"a"),mT.lastIndex!==0||lw.lastIndex!==0),yT=kM.BROKEN_CARET,dw=/()??/.exec("")[1]!==void 0;(fw||dw||yT||fve||pve)&&(i3=function(e){var t,r,n,o,i,a,u,s=this,l=hve(s),c=la(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=tt(i3,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=yT&&s.sticky,v=tt(BM,s),m=s.source,g=0,y=c;if(p&&(v=yve(v,"y",""),mve(v,"g")===-1&&(v+="g"),y=cw(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&vve(c,s.lastIndex-1)!==`
- `)&&(m="(?: "+m+")",y=" "+y,g++),r=new RegExp("^(?:"+m+")",v)),dw&&(r=new RegExp("^"+m+"$(?!\\s)",v)),fw&&(n=s.lastIndex),o=tt(nm,p?r:s,y),p?o?(o.input=cw(o.input,g),o[0]=cw(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:fw&&o&&(s.lastIndex=s.global?o.index+o[0].length:n),dw&&o&&o.length>1&&tt(gve,o[0],r,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&d)for(o.groups=a=dC(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var pp=i3;bo({target:"RegExp",proto:!0,forced:/./.exec!==pp},{exec:pp});var pC=Function.prototype,bT=pC.apply,bve=pC.bind,wT=pC.call,_M=typeof Reflect=="object"&&Reflect.apply||(bve?wT.bind(bT):function(){return wT.apply(bT,arguments)}),wve=Mt("species"),pw=RegExp.prototype,Eve=Mt("match"),Dve=ee.TypeError,Cve=Mt("species"),jM=function(e,t){var r,n=lr(e).constructor;return n===void 0||(r=lr(n)[Cve])==null?t:function(o){if(cC(o))return o;throw Dve(Y0(o)+" is not a constructor")}(r)},Sve=Te("".charAt),ET=Te("".charCodeAt),xve=Te("".slice),Ave=function(e){return function(t,r){var n,o,i=la(up(t)),a=uC(r),u=i.length;return a<0||a>=u?e?"":void 0:(n=ET(i,a))<55296||n>56319||a+1===u||(o=ET(i,a+1))<56320||o>57343?e?Sve(i,a):n:e?xve(i,a,a+2):o-56320+(n-55296<<10)+65536}},PM={charAt:Ave(!0)},Ove=PM.charAt,Bve=function(e,t,r){return t+(r?Ove(e,t).length:1)},kve=ee.Array,Fve=Math.max,a3=function(e,t,r){for(var n=oh(e),o=dp(t,n),i=dp(r===void 0?n:r,n),a=kve(Fve(i-o,0)),u=0;o<i;o++,u++)AM(a,u,e[o]);return a.length=u,a},Tve=ee.TypeError,DT=function(e,t){var r=e.exec;if(ut(r)){var n=tt(r,e,t);return n!==null&&lr(n),n}if(Kn(e)==="RegExp")return tt(pp,e,t);throw Tve("RegExp#exec called on incompatible receiver")},zs=kM.UNSUPPORTED_Y,_ve=Math.min,NM=[].push,jve=Te(/./.exec),$s=Te(NM),Ff=Te("".slice);(function(e,t,r,n){var o=Mt(e),i=!ht(function(){var l={};return l[o]=function(){return 7},""[e](l)!=7}),a=i&&!ht(function(){var l=!1,c=/a/;return(c={}).constructor={},c.constructor[wve]=function(){return c},c.flags="",c[o]=/./[o],c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||r){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=la(up(this)),h=v===void 0?4294967295:v>>>0;if(h===0)return[];if(p===void 0)return[y];if(!dt(m=p)||!((g=m[Eve])!==void 0?g:Kn(m)=="RegExp"))return tt(c,y,p,h);for(var b,w,D,S=[],C=(p.ignoreCase?"i":"")+(p.multiline?"m":"")+(p.unicode?"u":"")+(p.sticky?"y":""),O=0,F=new RegExp(p.source,C+"g");(b=tt(pp,F,y))&&!((w=F.lastIndex)>O&&($s(S,Ff(y,O,b.index)),b.length>1&&b.index<y.length&&_M(NM,S,a3(b,1)),D=b[0].length,O=w,S.length>=h));)F.lastIndex===b.index&&F.lastIndex++;return O===y.length?!D&&jve(F,"")||$s(S,""):$s(S,Ff(y,O)),S.length>h?a3(S,0,h):S}:"0".split(void 0,0).length?function(p,v){return p===void 0&&v===0?[]:tt(c,this,p,v)}:c,[function(p,v){var m=up(this),g=p==null?void 0:cp(p,l);return g?tt(g,p,m,v):tt(d,la(m),p,v)},function(p,v){var m=lr(this),g=la(p),y=f(d,m,g,v,d!==c);if(y.done)return y.value;var h=jM(m,RegExp),b=m.unicode,w=(m.ignoreCase?"i":"")+(m.multiline?"m":"")+(m.unicode?"u":"")+(zs?"g":"y"),D=new h(zs?"^(?:"+m.source+")":m,w),S=v===void 0?4294967295:v>>>0;if(S===0)return[];if(g.length===0)return DT(D,g)===null?[g]:[];for(var C=0,O=0,F=[];O<g.length;){D.lastIndex=zs?0:O;var L,H=DT(D,zs?Ff(g,O):g);if(H===null||(L=_ve(EM(D.lastIndex+(zs?O:0)),g.length))===C)O=Bve(g,O,b);else{if($s(F,Ff(g,C,O)),F.length===S)return F;for(var M=1;M<=H.length-1;M++)if($s(F,H[M]),F.length===S)return F;O=C=L}}return $s(F,Ff(g,C)),F}]}(o,""[e],function(l,c,f,d,p){var v=Te(l),m=c.exec;return m===pp||m===pw.exec?i&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:v(f,c,d)}:{done:!1}});Tn(String.prototype,e,s[0]),Tn(pw,o,s[1])}n&&Co(pw[o],"sham",!0)})("split",0,!!ht(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var r="ab".split(e);return r.length!==2||r[0]!=="a"||r[1]!=="b"}),zs);/*! *****************************************************************************
- Copyright (c) Microsoft Corporation.
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted.
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THIS SOFTWARE.
- ***************************************************************************** */var om=function(){return om=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},om.apply(this,arguments)};function hC(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(l){try{s(n.next(l))}catch(c){i(c)}}function u(l){try{s(n.throw(l))}catch(c){i(c)}}function s(l){var c;l.done?o(l.value):(c=l.value,c instanceof r?c:new r(function(f){f(c)})).then(a,u)}s((n=n.apply(e,[])).next())})}function gC(e,t){var r,n,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(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=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++,n=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=t.call(e,a)}catch(f){c=[6,f],n=0}finally{r=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([s,l])}}}function Pve(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=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.")}(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(o){t[o]=e[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=e[o](i)).done,i.value)})}}}var u3=Mt("unscopables"),s3=Array.prototype;s3[u3]==null&&fi.f(s3,u3,{configurable:!0,value:dC(null)});var Pu,CT,ST,hw=function(e){s3[u3][e]=!0},Vl={},Nve=!ht(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),xT=aC("IE_PROTO"),l3=ee.Object,Ive=l3.prototype,im=Nve?l3.getPrototypeOf:function(e){var t=rC(e);if(Gt(t,xT))return t[xT];var r=t.constructor;return ut(r)&&t instanceof r?r.prototype:t instanceof l3?Ive:null},c3=Mt("iterator"),IM=!1;[].keys&&("next"in(ST=[].keys())?(CT=im(im(ST)))!==Object.prototype&&(Pu=CT):IM=!0);var Rve=Pu==null||ht(function(){var e={};return Pu[c3].call(e)!==e});Rve&&(Pu={}),ut(Pu[c3])||Tn(Pu,c3,function(){return this});var vC={IteratorPrototype:Pu,BUGGY_SAFARI_ITERATORS:IM},Lve=fi.f,AT=Mt("toStringTag"),am=function(e,t,r){e&&!Gt(e=r?e:e.prototype,AT)&&Lve(e,AT,{configurable:!0,value:t})},Mve=vC.IteratorPrototype,zve=function(){return this},$ve=ee.String,Hve=ee.TypeError,Wl=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=Te(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),t=r instanceof Array}catch{}return function(n,o){return lr(n),function(i){if(typeof i=="object"||ut(i))return i;throw Hve("Can't set "+$ve(i)+" as a prototype")}(o),t?e(n,o):n.__proto__=o,n}}():void 0),Uve=nh.PROPER,Vve=nh.CONFIGURABLE,OT=vC.IteratorPrototype,gw=vC.BUGGY_SAFARI_ITERATORS,Tf=Mt("iterator"),Wve=function(){return this},RM=function(e,t,r,n,o,i,a){(function(g,y,h,b){var w=y+" Iterator";g.prototype=dC(Mve,{next:vy(1,h)}),am(g,w,!1),Vl[w]=zve})(r,t,n);var u,s,l=function(g){if(g===o&&v)return v;if(!gw&&g in d)return d[g];switch(g){case"keys":case"values":case"entries":return function(){return new r(this,g)}}return function(){return new r(this)}},c=t+" Iterator",f=!1,d=e.prototype,p=d[Tf]||d["@@iterator"]||o&&d[o],v=!gw&&p||l(o),m=t=="Array"&&d.entries||p;return m&&(u=im(m.call(new e)))!==Object.prototype&&u.next&&(im(u)!==OT&&(Wl?Wl(u,OT):ut(u[Tf])||Tn(u,Tf,Wve)),am(u,c,!0)),Uve&&o=="values"&&p&&p.name!=="values"&&(Vve?Co(d,"name","values"):(f=!0,v=function(){return tt(p,this)})),o&&(s={values:l("values"),keys:l("keys"),entries:l("entries")},a||bo({target:t,proto:!0,forced:gw||f},s)),d[Tf]!==v&&Tn(d,Tf,v,{name:o}),Vl[t]=v,s},Gve=sn.set,qve=sn.getterFor("Array Iterator"),Xf=RM(Array,"Array",function(e,t){Gve(this,{type:"Array Iterator",target:Ta(e),index:0,kind:t})},function(){var e=qve(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,{value:void 0,done:!0}):r=="keys"?{value:n,done:!1}:r=="values"?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}},"values");Vl.Arguments=Vl.Array,hw("keys"),hw("values"),hw("entries");var Kve=PM.charAt,Xve=sn.set,Yve=sn.getterFor("String Iterator");RM(String,"String",function(e){Xve(this,{type:"String Iterator",string:la(e),index:0})},function(){var e,t=Yve(this),r=t.string,n=t.index;return n>=r.length?{value:void 0,done:!0}:(e=Kve(r,n),t.index+=e.length,{value:e,done:!1})});var um=function(e,t,r){for(var n in t)Tn(e,n,t[n],r);return e},BT=em.f,kT=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Jve={f:function(e){return kT&&Kn(e)=="Window"?function(t){try{return BT(t)}catch{return a3(kT)}}(e):BT(Ta(e))}},FT=ht(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}),vg=Object.isExtensible,fu=ht(function(){vg(1)})||FT?function(e){return!!dt(e)&&(!FT||Kn(e)!="ArrayBuffer")&&(!vg||vg(e))}:vg,Zve=!ht(function(){return Object.isExtensible(Object.preventExtensions({}))}),mC=JD(function(e){var t=fi.f,r=!1,n=nC("meta"),o=0,i=function(u){t(u,n,{value:{objectID:"O"+o++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},r=!0;var u=em.f,s=Te([].splice),l={};l[n]=1,u(l).length&&(em.f=function(c){for(var f=u(c),d=0,p=f.length;d<p;d++)if(f[d]===n){s(f,d,1);break}return f},bo({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Jve.f}))},fastKey:function(u,s){if(!dt(u))return typeof u=="symbol"?u:(typeof u=="string"?"S":"P")+u;if(!Gt(u,n)){if(!fu(u))return"F";if(!s)return"E";i(u)}return u[n].objectID},getWeakData:function(u,s){if(!Gt(u,n)){if(!fu(u))return!0;if(!s)return!1;i(u)}return u[n].weakData},onFreeze:function(u){return Zve&&r&&fu(u)&&!Gt(u,n)&&i(u),u}};yy[n]=!0}),TT=Te(Te.bind),hp=function(e,t){return Sa(e),t===void 0?e:TT?TT(e,t):function(){return e.apply(t,arguments)}},Qve=Mt("iterator"),e0e=Array.prototype,t0e=Mt("iterator"),_T=function(e){if(e!=null)return cp(e,t0e)||cp(e,"@@iterator")||Vl[by(e)]},r0e=ee.TypeError,jT=function(e,t,r){var n,o;lr(e);try{if(!(n=cp(e,"return"))){if(t==="throw")throw r;return r}n=tt(n,e)}catch(i){o=!0,n=i}if(t==="throw")throw r;if(o)throw n;return lr(n),r},n0e=ee.TypeError,ev=function(e,t){this.stopped=e,this.result=t},PT=ev.prototype,sm=function(e,t,r){var n,o,i,a,u,s,l,c,f=r&&r.that,d=!(!r||!r.AS_ENTRIES),p=!(!r||!r.IS_ITERATOR),v=!(!r||!r.INTERRUPTED),m=hp(t,f),g=function(h){return n&&jT(n,"normal",h),new ev(!0,h)},y=function(h){return d?(lr(h),v?m(h[0],h[1],g):m(h[0],h[1])):v?m(h,g):m(h)};if(p)n=e;else{if(!(o=_T(e)))throw n0e(Y0(e)+" is not iterable");if((c=o)!==void 0&&(Vl.Array===c||e0e[Qve]===c)){for(i=0,a=oh(e);a>i;i++)if((u=y(e[i]))&&sp(PT,u))return u;return new ev(!1)}n=function(h,b){var w=arguments.length<2?_T(h):b;if(Sa(w))return lr(tt(w,h));throw r0e(Y0(h)+" is not iterable")}(e,o)}for(s=n.next;!(l=tt(s,n)).done;){try{u=y(l.value)}catch(h){jT(n,"throw",h)}if(typeof u=="object"&&u&&sp(PT,u))return u}return new ev(!1)},o0e=ee.TypeError,yC=function(e,t){if(sp(t,e))return e;throw o0e("Incorrect invocation")},LM=Mt("iterator"),MM=!1;try{var i0e=0,NT={next:function(){return{done:!!i0e++}},return:function(){MM=!0}};NT[LM]=function(){return this},Array.from(NT,function(){throw 2})}catch{}var zM=function(e,t){if(!MM)return!1;var r=!1;try{var n={};n[LM]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch{}return r},a0e=Mt("species"),IT=ee.Array,u0e=function(e,t){return new(function(r){var n;return rm(r)&&(n=r.constructor,(cC(n)&&(n===IT||rm(n.prototype))||dt(n)&&(n=n[a0e])===null)&&(n=void 0)),n===void 0?IT:n}(e))(t===0?0:t)},RT=Te([].push),vw=function(e){var t=e==1,r=e==2,n=e==3,o=e==4,i=e==6,a=e==7,u=e==5||i;return function(s,l,c,f){for(var d,p,v=rC(s),m=ZD(v),g=hp(l,c),y=oh(m),h=0,b=f||u0e,w=t?b(s,y):r||a?b(s,0):void 0;y>h;h++)if((u||h in m)&&(p=g(d=m[h],h,v),e))if(t)w[h]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return h;case 2:RT(w,d)}else switch(e){case 4:return!1;case 7:RT(w,d)}return i?-1:n||o?o:w}},bC={forEach:vw(0),find:vw(5),findIndex:vw(6)},mg=mC.getWeakData,s0e=sn.set,l0e=sn.getterFor,c0e=bC.find,f0e=bC.findIndex,d0e=Te([].splice),p0e=0,yg=function(e){return e.frozen||(e.frozen=new $M)},$M=function(){this.entries=[]},mw=function(e,t){return c0e(e.entries,function(r){return r[0]===t})};$M.prototype={get:function(e){var t=mw(this,e);if(t)return t[1]},has:function(e){return!!mw(this,e)},set:function(e,t){var r=mw(this,e);r?r[1]=t:this.entries.push([e,t])},delete:function(e){var t=f0e(this.entries,function(r){return r[0]===e});return~t&&d0e(this.entries,t,1),!!~t}};var _f,HM={getConstructor:function(e,t,r,n){var o=e(function(s,l){yC(s,i),s0e(s,{type:t,id:p0e++,frozen:void 0}),l!=null&&sm(l,s[n],{that:s,AS_ENTRIES:r})}),i=o.prototype,a=l0e(t),u=function(s,l,c){var f=a(s),d=mg(lr(l),!0);return d===!0?yg(f).set(l,c):d[f.id]=c,s};return um(i,{delete:function(s){var l=a(this);if(!dt(s))return!1;var c=mg(s);return c===!0?yg(l).delete(s):c&&Gt(c,l.id)&&delete c[l.id]},has:function(s){var l=a(this);if(!dt(s))return!1;var c=mg(s);return c===!0?yg(l).has(s):c&&Gt(c,l.id)}}),um(i,r?{get:function(s){var l=a(this);if(dt(s)){var c=mg(s);return c===!0?yg(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}},bg=sn.enforce,h0e=!ee.ActiveXObject&&"ActiveXObject"in ee,UM=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},g0e=function(e,t,r){var n=e.indexOf("Map")!==-1,o=e.indexOf("Weak")!==-1,i=n?"set":"add",a=ee[e],u=a&&a.prototype,s=a,l={},c=function(g){var y=Te(u[g]);Tn(u,g,g=="add"?function(h){return y(this,h===0?0:h),this}:g=="delete"?function(h){return!(o&&!dt(h))&&y(this,h===0?0:h)}:g=="get"?function(h){return o&&!dt(h)?void 0:y(this,h===0?0:h)}:g=="has"?function(h){return!(o&&!dt(h))&&y(this,h===0?0:h)}:function(h,b){return y(this,h===0?0:h,b),this})};if(tm(e,!ut(a)||!(o||u.forEach&&!ht(function(){new a().entries().next()}))))s=r.getConstructor(t,e,n,i),mC.enable();else if(tm(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=ht(function(){f.has(1)}),v=zM(function(g){new a(g)}),m=!o&&ht(function(){for(var g=new a,y=5;y--;)g[i](y,y);return!g.has(-0)});v||((s=t(function(g,y){yC(g,u);var h=function(b,w,D){var S,C;return Wl&&ut(S=w.constructor)&&S!==D&&dt(C=S.prototype)&&C!==D.prototype&&Wl(b,C),b}(new a,g,s);return y!=null&&sm(y,h[i],{that:h,AS_ENTRIES:n}),h})).prototype=u,u.constructor=s),(p||m)&&(c("delete"),c("has"),n&&c("get")),(m||d)&&c(i),o&&u.clear&&delete u.clear}return l[e]=s,bo({global:!0,forced:s!=a},l),am(s,e),o||r.setStrong(s,e,n),s}("WeakMap",UM,HM);if(bM&&h0e){_f=HM.getConstructor(UM,"WeakMap",!0),mC.enable();var jf=g0e.prototype,LT=Te(jf.delete),wg=Te(jf.has),MT=Te(jf.get),zT=Te(jf.set);um(jf,{delete:function(e){if(dt(e)&&!fu(e)){var t=bg(this);return t.frozen||(t.frozen=new _f),LT(this,e)||t.frozen.delete(e)}return LT(this,e)},has:function(e){if(dt(e)&&!fu(e)){var t=bg(this);return t.frozen||(t.frozen=new _f),wg(this,e)||t.frozen.has(e)}return wg(this,e)},get:function(e){if(dt(e)&&!fu(e)){var t=bg(this);return t.frozen||(t.frozen=new _f),wg(this,e)?MT(this,e):t.frozen.get(e)}return MT(this,e)},set:function(e,t){if(dt(e)&&!fu(e)){var r=bg(this);r.frozen||(r.frozen=new _f),wg(this,e)?zT(this,e,t):r.frozen.set(e,t)}else zT(this,e,t);return this}})}var lm={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},yw=fp("span").classList,$T=yw&&yw.constructor&&yw.constructor.prototype,VM=$T===Object.prototype?void 0:$T,bw=Mt("iterator"),HT=Mt("toStringTag"),ww=Xf.values,WM=function(e,t){if(e){if(e[bw]!==ww)try{Co(e,bw,ww)}catch{e[bw]=ww}if(e[HT]||Co(e,HT,t),lm[t]){for(var r in Xf)if(e[r]!==Xf[r])try{Co(e,r,Xf[r])}catch{e[r]=Xf[r]}}}};for(var Ew in lm)WM(ee[Ew]&&ee[Ew].prototype,Ew);WM(VM,"DOMTokenList");var GM=function(e,t){var r=[][e];return!!r&&ht(function(){r.call(null,t||function(){throw 1},1)})},v0e=bC.forEach,Dw=GM("forEach")?[].forEach:function(e){return v0e(this,e,arguments.length>1?arguments[1]:void 0)},qM=function(e){if(e&&e.forEach!==Dw)try{Co(e,"forEach",Dw)}catch{e.forEach=Dw}};for(var Cw in lm)lm[Cw]&&qM(ee[Cw]&&ee[Cw].prototype);qM(VM);var gp,Hs,UT,Sw,cm=ee.Promise,VT=Mt("species"),KM=/(?:ipad|iphone|ipod).*applewebkit/i.test(vl),ca=Kn(ee.process)=="process",f3=ee.setImmediate,WT=ee.clearImmediate,m0e=ee.process,xw=ee.Dispatch,y0e=ee.Function,GT=ee.MessageChannel,b0e=ee.String,Aw=0,md={};try{gp=ee.location}catch{}var wC=function(e){if(Gt(md,e)){var t=md[e];delete md[e],t()}},Ow=function(e){return function(){wC(e)}},qT=function(e){wC(e.data)},KT=function(e){ee.postMessage(b0e(e),gp.protocol+"//"+gp.host)};f3&&WT||(f3=function(e){var t=OM(arguments,1);return md[++Aw]=function(){_M(ut(e)?e:y0e(e),void 0,t)},Hs(Aw),Aw},WT=function(e){delete md[e]},ca?Hs=function(e){m0e.nextTick(Ow(e))}:xw&&xw.now?Hs=function(e){xw.now(Ow(e))}:GT&&!KM?(Sw=(UT=new GT).port2,UT.port1.onmessage=qT,Hs=hp(Sw.postMessage,Sw)):ee.addEventListener&&ut(ee.postMessage)&&!ee.importScripts&&gp&&gp.protocol!=="file:"&&!ht(KT)?(Hs=KT,ee.addEventListener("message",qT,!1)):Hs="onreadystatechange"in fp("script")?function(e){o3.appendChild(fp("script")).onreadystatechange=function(){o3.removeChild(this),wC(e)}}:function(e){setTimeout(Ow(e),0)});var Pf,au,yd,Zs,Bw,kw,Fw,XT,XM={set:f3},w0e=/ipad|iphone|ipod/i.test(vl)&&ee.Pebble!==void 0,E0e=/web0s(?!.*chrome)/i.test(vl),D0e=iC.f,Tw=XM.set,YT=ee.MutationObserver||ee.WebKitMutationObserver,JT=ee.document,ZT=ee.process,Eg=ee.Promise,QT=D0e(ee,"queueMicrotask"),YM=QT&&QT.value;YM||(Pf=function(){var e,t;for(ca&&(e=ZT.domain)&&e.exit();au;){t=au.fn,au=au.next;try{t()}catch(r){throw au?Zs():yd=void 0,r}}yd=void 0,e&&e.enter()},KM||ca||E0e||!YT||!JT?!w0e&&Eg&&Eg.resolve?((Fw=Eg.resolve(void 0)).constructor=Eg,XT=hp(Fw.then,Fw),Zs=function(){XT(Pf)}):ca?Zs=function(){ZT.nextTick(Pf)}:(Tw=hp(Tw,ee),Zs=function(){Tw(Pf)}):(Bw=!0,kw=JT.createTextNode(""),new YT(Pf).observe(kw,{characterData:!0}),Zs=function(){kw.data=Bw=!Bw}));var _w,e_,JM,t_,ZM=YM||function(e){var t={fn:e,next:void 0};yd&&(yd.next=t),au||(au=t,Zs()),yd=t},C0e=function(e){var t,r;this.promise=new e(function(n,o){if(t!==void 0||r!==void 0)throw TypeError("Bad Promise constructor");t=n,r=o}),this.resolve=Sa(t),this.reject=Sa(r)},EC={f:function(e){return new C0e(e)}},d3=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}},S0e=typeof window=="object",QM=XM.set,x0e=Mt("species"),Xo="Promise",r_=sn.getterFor(Xo),A0e=sn.set,O0e=sn.getterFor(Xo),eu=cm&&cm.prototype,wo=cm,Nf=eu,ez=ee.TypeError,p3=ee.document,DC=ee.process,ml=EC.f,B0e=ml,k0e=!!(p3&&p3.createEvent&&ee.dispatchEvent),tz=ut(ee.PromiseRejectionEvent),rz=!1,bd=tm(Xo,function(){var e=my(wo),t=e!==String(wo);if(!t&&lp===66)return!0;if(lp>=51&&/native code/.test(e))return!1;var r=new wo(function(o){o(1)}),n=function(o){o(function(){},function(){})};return(r.constructor={})[x0e]=n,!(rz=r.then(function(){})instanceof n)||!t&&S0e&&!tz}),F0e=bd||!zM(function(e){wo.all(e).catch(function(){})}),nz=function(e){var t;return!(!dt(e)||!ut(t=e.then))&&t},CC=function(e,t){if(!e.notified){e.notified=!0;var r=e.reactions;ZM(function(){for(var n=e.value,o=e.state==1,i=0;r.length>i;){var a,u,s,l=r[i++],c=o?l.ok:l.fail,f=l.resolve,d=l.reject,p=l.domain;try{c?(o||(e.rejection===2&&_0e(e),e.rejection=1),c===!0?a=n:(p&&p.enter(),a=c(n),p&&(p.exit(),s=!0)),a===l.promise?d(ez("Promise-chain cycle")):(u=nz(a))?tt(u,a,f,d):f(a)):d(n)}catch(v){p&&!s&&p.exit(),d(v)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&T0e(e)})}},oz=function(e,t,r){var n,o;k0e?((n=p3.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),ee.dispatchEvent(n)):n={promise:t,reason:r},!tz&&(o=ee["on"+e])?o(n):e==="unhandledrejection"&&function(i,a){var u=ee.console;u&&u.error&&(arguments.length==1?u.error(i):u.error(i,a))}("Unhandled promise rejection",r)},T0e=function(e){tt(QM,ee,function(){var t,r=e.facade,n=e.value;if(n_(e)&&(t=d3(function(){ca?DC.emit("unhandledRejection",n,r):oz("unhandledrejection",r,n)}),e.rejection=ca||n_(e)?2:1,t.error))throw t.value})},n_=function(e){return e.rejection!==1&&!e.parent},_0e=function(e){tt(QM,ee,function(){var t=e.facade;ca?DC.emit("rejectionHandled",t):oz("rejectionhandled",t,e.value)})},ol=function(e,t,r){return function(n){e(t,n,r)}},yl=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=2,CC(e,!0))},h3=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===t)throw ez("Promise can't be resolved itself");var n=nz(t);n?ZM(function(){var o={done:!1};try{tt(n,t,ol(h3,o,e),ol(yl,o,e))}catch(i){yl(o,i,e)}}):(e.value=t,e.state=1,CC(e,!1))}catch(o){yl({done:!1},o,e)}}};if(bd&&(Nf=(wo=function(e){yC(this,Nf),Sa(e),tt(_w,this);var t=r_(this);try{e(ol(h3,t),ol(yl,t))}catch(r){yl(t,r)}}).prototype,(_w=function(e){A0e(this,{type:Xo,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=um(Nf,{then:function(e,t){var r=O0e(this),n=r.reactions,o=ml(jM(this,wo));return o.ok=!ut(e)||e,o.fail=ut(t)&&t,o.domain=ca?DC.domain:void 0,r.parent=!0,n[n.length]=o,r.state!=0&&CC(r,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),e_=function(){var e=new _w,t=r_(e);this.promise=e,this.resolve=ol(h3,t),this.reject=ol(yl,t)},EC.f=ml=function(e){return e===wo||e===JM?new e_(e):B0e(e)},ut(cm)&&eu!==Object.prototype)){t_=eu.then,rz||(Tn(eu,"then",function(e,t){var r=this;return new wo(function(n,o){tt(t_,r,n,o)}).then(e,t)},{unsafe:!0}),Tn(eu,"catch",Nf.catch,{unsafe:!0}));try{delete eu.constructor}catch{}Wl&&Wl(eu,Nf)}bo({global:!0,wrap:!0,forced:bd},{Promise:wo}),am(wo,Xo,!1),function(e){var t=Ju("Promise"),r=fi.f;ko&&t&&!t[VT]&&r(t,VT,{configurable:!0,get:function(){return this}})}(),JM=Ju(Xo),bo({target:Xo,stat:!0,forced:bd},{reject:function(e){var t=ml(this);return tt(t.reject,void 0,e),t.promise}}),bo({target:Xo,stat:!0,forced:bd},{resolve:function(e){return function(t,r){if(lr(t),dt(r)&&r.constructor===t)return r;var n=EC.f(t);return(0,n.resolve)(r),n.promise}(this,e)}}),bo({target:Xo,stat:!0,forced:F0e},{all:function(e){var t=this,r=ml(t),n=r.resolve,o=r.reject,i=d3(function(){var a=Sa(t.resolve),u=[],s=0,l=1;sm(e,function(c){var f=s++,d=!1;l++,tt(a,t,c).then(function(p){d||(d=!0,u[f]=p,--l||n(u))},o)}),--l||n(u)});return i.error&&o(i.value),r.promise},race:function(e){var t=this,r=ml(t),n=r.reject,o=d3(function(){var i=Sa(t.resolve);sm(e,function(a){tt(i,t,a).then(r.resolve,n)})});return o.error&&n(o.value),r.promise}});var j0e=nh.PROPER,g3=RegExp.prototype,iz=g3.toString,P0e=Te(BM),N0e=ht(function(){return iz.call({source:"a",flags:"b"})!="/a/b"}),I0e=j0e&&iz.name!="toString";(N0e||I0e)&&Tn(RegExp.prototype,"toString",function(){var e=lr(this),t=la(e.source),r=e.flags;return"/"+t+"/"+la(r===void 0&&sp(g3,e)&&!("flags"in g3)?P0e(e):r)},{unsafe:!0});var R0e=nh.EXISTS,L0e=fi.f,az=Function.prototype,M0e=Te(az.toString),uz=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,z0e=Te(uz.exec);ko&&!R0e&&L0e(az,"name",{configurable:!0,get:function(){try{return z0e(uz,M0e(this))[1]}catch{return""}}});var o_=new WeakMap;function sz(e){return e.getMenuConfig("uploadImage")}function $0e(e,t){return hC(this,void 0,void 0,function(){return gC(this,function(r){return[2,new Promise(function(n){var o=new FileReader;o.readAsDataURL(t),o.onload=function(){var i=o.result;if(i){var a=i.toString(),u=a.indexOf("data:image")===0?"":a;Cu(e,a,t.name,u),n("ok")}}})]})})}function H0e(e,t){return hC(this,void 0,void 0,function(){var r,n,o,i;return gC(this,function(a){switch(a.label){case 0:return r=function(u){var s=o_.get(u);if(s!=null)return s;var l=sz(u),c=l.onSuccess,f=l.onProgress,d=l.onFailed,p=l.customInsert,v=l.onError;return s=MN(om(om({},l),{onProgress:function(m){u.showProgressBar(m),f&&f(m)},onSuccess:function(m,g){if(p)return p(g,function(L,H,M){return Cu(u,L,H,M)}),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(L){var H=L.url,M=H===void 0?"":H,K=L.alt,V=K===void 0?"":K,G=L.href;Cu(u,M,V,G===void 0?"":G)});else{var D=w.url,S=D===void 0?"":D,C=w.alt,O=C===void 0?"":C,F=w.href;Cu(u,S,O,F===void 0?"":F)}c(m,g)}else d(m,g)},onError:function(m,g,y){v(m,g,y)}})),o_.set(u,s),s}(e),n=t.name,o=t.type,i=t.size,r.addFile({name:n,type:o,size:i,data:t}),[4,r.upload()];case 1:return a.sent(),[2]}})})}function lz(e,t){var r,n;return hC(this,void 0,void 0,function(){var o,i,a,u,s,l,c,f,d;return gC(this,function(p){switch(p.label){case 0:if(t==null)return[2];o=Array.prototype.slice.call(t),i=sz(e),a=i.customUpload,u=i.base64LimitSize,p.label=1;case 1:p.trys.push([1,11,12,17]),s=Pve(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,$0e(e,c)]:[3,5]);case 4:return p.sent(),[3,9];case 5:return a?[4,a(c,function(v,m,g){return Cu(e,v,m,g)})]:[3,7];case 6:return p.sent(),[3,9];case 7:return[4,H0e(e,c)];case 8:p.sent(),p.label=9;case 9:return[3,2];case 10:return[3,17];case 11:return d=p.sent(),r={error:d},[3,17];case 12:return p.trys.push([12,,15,16]),l&&!l.done&&(n=s.return)?[4,n.call(s)]:[3,14];case 13:p.sent(),p.label=14;case 14:return[3,16];case 15:if(r)throw r.error;return[7];case 16:return[7];case 17:return[2]}})})}var U0e=Te([].join),V0e=ZD!=Object,W0e=GM("join",",");bo({target:"Array",proto:!0,forced:V0e||!W0e},{join:function(e){return U0e(Ta(this),e===void 0?",":e)}}),An&&(k.fn.append=An),Ao&&(k.fn.on=Ao),Fl&&(k.fn.remove=Fl),xo&&(k.fn.val=xo),oA&&(k.fn.click=oA),Al&&(k.fn.hide=Al);var G0e=function(){function e(){this.title=Q("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 e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return Km(t)},e.prototype.getMenuConfig=function(t){return t.getMenuConfig("uploadImage")},e.prototype.exec=function(t,r){var n=this.getMenuConfig(t),o=n.allowedFileTypes,i=o===void 0?[]:o,a=n.customBrowseAndUpload;if(a)a(function(c,f,d){return Cu(t,c,f,d)});else{var u="";i.length>0&&(u='accept="'+i.join(", ")+'"');var s=k("body"),l=k('<input type="file" '+u+" multiple/>");l.hide(),s.append(l),l.click(),l.on("change",function(){var c=l[0].files;lz(t,c)})}},e}(),q0e={menus:[{key:"uploadImage",factory:function(){return new G0e},config:{server:"",fieldName:"wangeditor-uploaded-image",maxFileSize:2097152,maxNumberOfFiles:100,allowedFileTypes:["image/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:1e4,onBeforeUpload:function(e){return e},onProgress:function(e){},onSuccess:function(e,t){},onFailed:function(e,t){},onError:function(e,t,r){},base64LimitSize:0}}],editorPlugin:function(e){var t=e.insertData,r=e;return r.insertData=function(n){if(Km(r))t(n);else if(n.getData("text/plain"))t(n);else{var o=n.files;o.length<=0?t(n):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"})?lz(e,o):t(n)}},r}};Wr("en",{highLightModule:{selectLang:"Language"}}),Wr("zh-CN",{highLightModule:{selectLang:"选择语言"}});var fm=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function SC(e){var t={exports:{}};return e(t,t.exports),t.exports}var _i,tv,Dg=function(e){return e&&e.Math==Math&&e},Ne=Dg(typeof globalThis=="object"&&globalThis)||Dg(typeof window=="object"&&window)||Dg(typeof self=="object"&&self)||Dg(typeof fm=="object"&&fm)||function(){return this}()||Function("return this")(),K0e=Object.defineProperty,xC=function(e,t){try{K0e(Ne,e,{value:t,configurable:!0,writable:!0})}catch{Ne[e]=t}return t},fa=Ne["__core-js_shared__"]||xC("__core-js_shared__",{}),AC=SC(function(e){(e.exports=function(t,r){return fa[t]||(fa[t]=r!==void 0?r:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),cz=Function.prototype,v3=cz.bind,m3=cz.call,X0e=v3&&v3.bind(m3),Ze=v3?function(e){return e&&X0e(m3,e)}:function(e){return e&&function(){return m3.apply(e,arguments)}},Y0e=Ne.TypeError,Gl=function(e){if(e==null)throw Y0e("Can't call method on "+e);return e},J0e=Ne.Object,OC=function(e){return J0e(Gl(e))},Z0e=Ze({}.hasOwnProperty),Sn=Object.hasOwn||function(e,t){return Z0e(OC(e),t)},Q0e=0,eme=Math.random(),tme=Ze(1 .toString),fz=function(e){return"Symbol("+(e===void 0?"":e)+")_"+tme(++Q0e+eme,36)},_r=function(e){return typeof e=="function"},rme=function(e){return _r(e)?e:void 0},ah=function(e,t){return arguments.length<2?rme(Ne[e]):Ne[e]&&Ne[e][t]},jw=ah("navigator","userAgent")||"",i_=Ne.process,a_=Ne.Deno,u_=i_&&i_.versions||a_&&a_.version,s_=u_&&u_.v8;s_&&(tv=(_i=s_.split("."))[0]>0&&_i[0]<4?1:+(_i[0]+_i[1])),!tv&&jw&&(!(_i=jw.match(/Edge\/(\d+)/))||_i[1]>=74)&&(_i=jw.match(/Chrome\/(\d+)/))&&(tv=+_i[1]);var l_=tv,ar=function(e){try{return!!e()}catch{return!0}},y3=!!Object.getOwnPropertySymbols&&!ar(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&l_&&l_<41}),BC=y3&&!Symbol.sham&&typeof Symbol.iterator=="symbol",If=AC("wks"),Nu=Ne.Symbol,c_=Nu&&Nu.for,nme=BC?Nu:Nu&&Nu.withoutSetter||fz,_a=function(e){if(!Sn(If,e)||!y3&&typeof If[e]!="string"){var t="Symbol."+e;y3&&Sn(Nu,e)?If[e]=Nu[e]:If[e]=BC&&c_?c_(t):nme(t)}return If[e]},dz={};dz[_a("toStringTag")]="z";var kC=String(dz)==="[object z]",Fo=!ar(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Zo=function(e){return typeof e=="object"?e!==null:_r(e)},b3=Ne.document,ome=Zo(b3)&&Zo(b3.createElement),FC=function(e){return ome?b3.createElement(e):{}},pz=!Fo&&!ar(function(){return Object.defineProperty(FC("div"),"a",{get:function(){return 7}}).a!=7}),ime=Ne.String,ame=Ne.TypeError,Xn=function(e){if(Zo(e))return e;throw ame(ime(e)+" is not an object")},Rf=Function.prototype.call,or=Rf.bind?Rf.bind(Rf):function(){return Rf.apply(Rf,arguments)},hz=Ze({}.isPrototypeOf),ume=Ne.Object,Pw=BC?function(e){return typeof e=="symbol"}:function(e){var t=ah("Symbol");return _r(t)&&hz(t.prototype,ume(e))},sme=Ne.String,gz=function(e){try{return sme(e)}catch{return"Object"}},lme=Ne.TypeError,vz=function(e){if(_r(e))return e;throw lme(gz(e)+" is not a function")},mz=function(e,t){var r=e[t];return r==null?void 0:vz(r)},cme=Ne.TypeError,fme=Ne.TypeError,dme=_a("toPrimitive"),TC=function(e){var t=function(r,n){if(!Zo(r)||Pw(r))return r;var o,i=mz(r,dme);if(i){if(o=or(i,r,n),!Zo(o)||Pw(o))return o;throw fme("Can't convert object to primitive value")}return function(a,u){var s,l;if(_r(s=a.toString)&&!Zo(l=or(s,a))||_r(s=a.valueOf)&&!Zo(l=or(s,a))||u!=="string")return l;throw cme("Can't convert object to primitive value")}(r,n)}(e,"string");return Pw(t)?t:t+""},pme=Ne.TypeError,f_=Object.defineProperty,wy={f:Fo?f_:function(e,t,r){if(Xn(e),t=TC(t),Xn(r),pz)try{return f_(e,t,r)}catch{}if("get"in r||"set"in r)throw pme("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},_C=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},ql=Fo?function(e,t,r){return wy.f(e,t,_C(1,r))}:function(e,t,r){return e[t]=r,e},hme=Ze(Function.toString);_r(fa.inspectSource)||(fa.inspectSource=function(e){return hme(e)});var w3,dm,E3,jC=fa.inspectSource,d_=Ne.WeakMap,gme=_r(d_)&&/native code/.test(jC(d_)),p_=AC("keys"),yz=function(e){return p_[e]||(p_[e]=fz(e))},PC={},h_=Ne.TypeError,vme=Ne.WeakMap;if(gme||fa.state){var Xa=fa.state||(fa.state=new vme),mme=Ze(Xa.get),g_=Ze(Xa.has),yme=Ze(Xa.set);w3=function(e,t){if(g_(Xa,e))throw new h_("Object already initialized");return t.facade=e,yme(Xa,e,t),t},dm=function(e){return mme(Xa,e)||{}},E3=function(e){return g_(Xa,e)}}else{var Us=yz("state");PC[Us]=!0,w3=function(e,t){if(Sn(e,Us))throw new h_("Object already initialized");return t.facade=e,ql(e,Us,t),t},dm=function(e){return Sn(e,Us)?e[Us]:{}},E3=function(e){return Sn(e,Us)}}var D3={get:dm,enforce:function(e){return E3(e)?dm(e):w3(e,{})}},bz=Function.prototype,bme=Fo&&Object.getOwnPropertyDescriptor,v_=Sn(bz,"name"),wz={PROPER:v_&&(function(){}).name==="something",CONFIGURABLE:v_&&(!Fo||Fo&&bme(bz,"name").configurable)},vp=SC(function(e){var t=wz.CONFIGURABLE,r=D3.get,n=D3.enforce,o=String(String).split("String");(e.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;_r(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Sn(u,"name")||t&&u.name!==p)&&ql(u,"name",p),(l=n(u)).source||(l.source=o.join(typeof p=="string"?p:""))),i!==Ne?(c?!d&&i[a]&&(f=!0):delete i[a],f?i[a]=u:ql(i,a,u)):f?i[a]=u:xC(a,u)})(Function.prototype,"toString",function(){return _r(this)&&r(this).source||jC(this)})}),wme=Ze({}.toString),Eme=Ze("".slice),da=function(e){return Eme(wme(e),8,-1)},Dme=_a("toStringTag"),Cme=Ne.Object,Sme=da(function(){return arguments}())=="Arguments",NC=kC?da:function(e){var t,r,n;return e===void 0?"Undefined":e===null?"Null":typeof(r=function(o,i){try{return o[i]}catch{}}(t=Cme(e),Dme))=="string"?r:Sme?da(t):(n=da(t))=="Object"&&_r(t.callee)?"Arguments":n},xme=kC?{}.toString:function(){return"[object "+NC(this)+"]"};kC||vp(Object.prototype,"toString",xme,{unsafe:!0});var m_,y_={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Nw=FC("span").classList,b_=Nw&&Nw.constructor&&Nw.constructor.prototype,Ame=b_===Object.prototype?void 0:b_,w_=Ze(Ze.bind),Iw=Ne.Object,Ome=Ze("".split),IC=ar(function(){return!Iw("z").propertyIsEnumerable(0)})?function(e){return da(e)=="String"?Ome(e,""):Iw(e)}:Iw,Bme=Math.ceil,kme=Math.floor,RC=function(e){var t=+e;return t!=t||t===0?0:(t>0?kme:Bme)(t)},Fme=Math.min,Ez=function(e){return e>0?Fme(RC(e),9007199254740991):0},LC=function(e){return Ez(e.length)},E_=Array.isArray||function(e){return da(e)=="Array"},Dz=function(){},Tme=[],Cz=ah("Reflect","construct"),MC=/^\s*(?:class|function)\b/,_me=Ze(MC.exec),jme=!MC.exec(Dz),Lf=function(e){if(!_r(e))return!1;try{return Cz(Dz,Tme,e),!0}catch{return!1}},Sz=!Cz||ar(function(){var e;return Lf(Lf.call)||!Lf(Object)||!Lf(function(){e=!0})||e})?function(e){if(!_r(e))return!1;switch(NC(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return jme||!!_me(MC,jC(e))}:Lf,Pme=_a("species"),D_=Ne.Array,Nme=function(e,t){return new(function(r){var n;return E_(r)&&(n=r.constructor,(Sz(n)&&(n===D_||E_(n.prototype))||Zo(n)&&(n=n[Pme])===null)&&(n=void 0)),n===void 0?D_:n}(e))(t===0?0:t)},C_=Ze([].push),ji=function(e){var t=e==1,r=e==2,n=e==3,o=e==4,i=e==6,a=e==7,u=e==5||i;return function(s,l,c,f){for(var d,p,v=OC(s),m=IC(v),g=function(D,S){return vz(D),S===void 0?D:w_?w_(D,S):function(){return D.apply(S,arguments)}}(l,c),y=LC(m),h=0,b=f||Nme,w=t?b(s,y):r||a?b(s,0):void 0;y>h;h++)if((u||h in m)&&(p=g(d=m[h],h,v),e))if(t)w[h]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return h;case 2:C_(w,d)}else switch(e){case 4:return!1;case 7:C_(w,d)}return i?-1:n||o?o:w}},Ime=[ji(0),ji(1),ji(2),ji(3),ji(4),ji(5),ji(6),ji(7)][0],Rw=(m_=[].forEach)&&ar(function(){m_.call(null,function(){throw 1},1)})?[].forEach:function(e){return Ime(this,e,arguments.length>1?arguments[1]:void 0)},xz=function(e){if(e&&e.forEach!==Rw)try{ql(e,"forEach",Rw)}catch{e.forEach=Rw}};for(var Lw in y_)y_[Lw]&&xz(Ne[Lw]&&Ne[Lw].prototype);xz(Ame);var S_={}.propertyIsEnumerable,x_=Object.getOwnPropertyDescriptor,Az={f:x_&&!S_.call({1:2},1)?function(e){var t=x_(this,e);return!!t&&t.enumerable}:S_},Ey=function(e){return IC(Gl(e))},A_=Object.getOwnPropertyDescriptor,Oz={f:Fo?A_:function(e,t){if(e=Ey(e),t=TC(t),pz)try{return A_(e,t)}catch{}if(Sn(e,t))return _C(!or(Az.f,e,t),e[t])}},Rme=Math.max,Lme=Math.min,C3=function(e,t){var r=RC(e);return r<0?Rme(r+t,0):Lme(r,t)},Mme=function(e){return function(t,r,n){for(var o=Ey(t),i=LC(o),a=C3(n,i);i>a;a++)if(a in o&&o[a]===r)return a||0;return-1}},zme=Mme(),O_=Ze([].push),Bz=function(e,t){var r,n=Ey(e),o=0,i=[];for(r in n)!Sn(PC,r)&&Sn(n,r)&&O_(i,r);for(;t.length>o;)Sn(n,r=t[o++])&&(~zme(i,r)||O_(i,r));return i},pm=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],$me=pm.concat("length","prototype"),Hme={f:Object.getOwnPropertyNames||function(e){return Bz(e,$me)}},kz={f:Object.getOwnPropertySymbols},Ume=Ze([].concat),Vme=ah("Reflect","ownKeys")||function(e){var t=Hme.f(Xn(e)),r=kz.f;return r?Ume(t,r(e)):t},Wme=function(e,t){for(var r=Vme(t),n=wy.f,o=Oz.f,i=0;i<r.length;i++){var a=r[i];Sn(e,a)||n(e,a,o(t,a))}},Gme=/#|\.prototype\./,uh=function(e,t){var r=Kme[qme(e)];return r==Yme||r!=Xme&&(_r(t)?ar(t):!!t)},qme=uh.normalize=function(e){return String(e).replace(Gme,".").toLowerCase()},Kme=uh.data={},Xme=uh.NATIVE="N",Yme=uh.POLYFILL="P",Jme=uh,Zme=Oz.f,Dy=function(e,t){var r,n,o,i,a,u=e.target,s=e.global,l=e.stat;if(r=s?Ne:l?Ne[u]||xC(u,{}):(Ne[u]||{}).prototype)for(n in t){if(i=t[n],o=e.noTargetGet?(a=Zme(r,n))&&a.value:r[n],!Jme(s?n:u+(l?".":"#")+n,e.forced)&&o!==void 0){if(typeof i==typeof o)continue;Wme(i,o)}(e.sham||o&&o.sham)&&ql(i,"sham",!0),vp(r,n,i,e)}},rv=Object.keys||function(e){return Bz(e,pm)},Vs=Object.assign,B_=Object.defineProperty,Qme=Ze([].concat),k_=!Vs||ar(function(){if(Fo&&Vs({b:1},Vs(B_({},"a",{enumerable:!0,get:function(){B_(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var e={},t={},r=Symbol(),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach(function(o){t[o]=o}),Vs({},e)[r]!=7||rv(Vs({},t)).join("")!=n})?function(e,t){for(var r=OC(e),n=arguments.length,o=1,i=kz.f,a=Az.f;n>o;)for(var u,s=IC(arguments[o++]),l=i?Qme(rv(s),i(s)):rv(s),c=l.length,f=0;c>f;)u=l[f++],Fo&&!or(a,s,u)||(r[u]=s[u]);return r}:Vs;Dy({target:"Object",stat:!0,forced:Object.assign!==k_},{assign:k_});var F_=SC(function(e){var t=function(r){var n=/\blang(?:uage)?-([\w-]+)\b/i,o=0,i={},a={manual:r.Prism&&r.Prism.manual,disableWorkerMessageHandler:r.Prism&&r.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,"&").replace(/</g,"<").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&&!n.test(g.className);)g=g.parentElement;return g?(g.className.match(n)||[,"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 O=b[g];return b[g]=D,a.languages.DFS(a.languages,function(F,L){L===O&&F!=g&&(this[F]=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],O=a.util.type(C);O!=="Object"||w[D(C)]?O!=="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(n,"").replace(/\s+/g," ")+" language-"+b;var D=g.parentElement;D&&D.nodeName.toLowerCase()==="pre"&&(D.className=D.className.replace(n,"").replace(/\s+/g," ")+" language-"+b);var S={element:g,language:b,grammar:w,code:g.textContent};function C(F){S.highlightedCode=F,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&&r.Worker){var O=new Worker(a.filename);O.onmessage=function(F){C(F.data)},O.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 O=0;O<C.length;++O){if(D&&D.cause==S+","+O)return;var F=C[O],L=F.inside,H=!!F.lookbehind,M=!!F.greedy,K=F.alias;if(M&&!F.pattern.global){var V=F.pattern.toString().match(/[imsuy]*$/)[0];F.pattern=RegExp(F.pattern.source,V+"g")}for(var G=F.pattern||F,q=b.next,re=w;q!==y.tail&&!(D&&re>=D.reach);re+=q.value.length,q=q.next){var se=q.value;if(y.length>g.length)return;if(!(se instanceof u)){var ue,ae=1;if(M){if(!(ue=s(G,re,g,H)))break;var B=ue.index,x=ue.index+ue[0].length,j=re;for(j+=q.value.length;B>=j;)j+=(q=q.next).value.length;if(re=j-=q.value.length,q.value instanceof u)continue;for(var $=q;$!==y.tail&&(j<x||typeof $.value=="string");$=$.next)ae++,j+=$.value.length;ae--,se=g.slice(re,j),ue.index-=re}else if(!(ue=s(G,0,se,H)))continue;B=ue.index;var X=ue[0],U=se.slice(0,B),ie=se.slice(B+X.length),ge=re+se.length;D&&ge>D.reach&&(D.reach=ge);var ve=q.prev;if(U&&(ve=f(y,ve,U),re+=U.length),d(y,ve,ae),q=f(y,ve,new u(S,L?a.tokenize(X,L):X,K,X)),ie&&f(y,q,ie),ae>1){var De={cause:S+","+O,reach:ge};l(g,y,h,q.prev,re,De),D&&De.reach>D.reach&&(D.reach=De.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(r.Prism=a,u.stringify=function g(y,h){if(typeof y=="string")return y;if(Array.isArray(y)){var b="";return y.forEach(function(O){b+=g(O,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,""")+'"';return"<"+w.tag+' class="'+w.classes.join(" ")+'"'+S+">"+w.content+"</"+w.tag+">"},!r.document)return r.addEventListener&&(a.disableWorkerMessageHandler||r.addEventListener("message",function(g){var y=JSON.parse(g.data),h=y.language,b=y.code,w=y.immediateClose;r.postMessage(a.highlight(b,a.languages[h],h)),w&&r.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:{});/**
- * Prism: Lightweight, robust, elegant syntax highlighting
- *
- * @license MIT <https://opensource.org/licenses/MIT>
- * @author Lea Verou <https://lea.verou.me>
- * @namespace
- * @public
- */e.exports&&(e.exports=t),fm!==void 0&&(fm.Prism=t),t.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]},t.languages.markup.tag.inside["attr-value"].inside.entity=t.languages.markup.entity,t.languages.markup.doctype.inside["internal-subset"].inside=t.languages.markup,t.hooks.add("wrap",function(r){r.type==="entity"&&(r.attributes.title=r.content.replace(/&/,"&"))}),Object.defineProperty(t.languages.markup.tag,"addInlined",{value:function(r,n){var o={};o["language-"+n]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:t.languages[n]},o.cdata=/^<!\[CDATA\[|\]\]>$/i;var i={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:o}};i["language-"+n]={pattern:/[\s\S]+/,inside:t.languages[n]};var a={};a[r]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return r}),"i"),lookbehind:!0,greedy:!0,inside:i},t.languages.insertBefore("markup","cdata",a)}}),Object.defineProperty(t.languages.markup.tag,"addAttribute",{value:function(r,n){t.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+r+")"+/\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:[n,"language-"+n],inside:t.languages[n]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),t.languages.html=t.languages.markup,t.languages.mathml=t.languages.markup,t.languages.svg=t.languages.markup,t.languages.xml=t.languages.extend("markup",{}),t.languages.ssml=t.languages.xml,t.languages.atom=t.languages.xml,t.languages.rss=t.languages.xml,function(r){var n=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;r.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\\((?:"+n.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+n.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+n.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:n,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:/[(){};:,]/},r.languages.css.atrule.inside.rest=r.languages.css;var o=r.languages.markup;o&&(o.tag.addInlined("style","css"),o.tag.addAttribute("style","css"))}(t),t.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:/[{}[\];(),.:]/},t.languages.javascript=t.languages.extend("clike",{"class-name":[t.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}|\?\?=?|\?\.?|[~:]/}),t.languages.javascript["class-name"][0].pattern=/(\b(?:class|interface|extends|implements|instanceof|new)\s+)[\w.\\]+/,t.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:t.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:t.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:t.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:t.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:t.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),t.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:t.languages.javascript}},string:/[\s\S]+/}}}),t.languages.markup&&(t.languages.markup.tag.addInlined("script","javascript"),t.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")),t.languages.js=t.languages.javascript,function(){if(t!==void 0&&typeof document<"u"){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var r={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},n="data-src-status",o='pre[data-src]:not([data-src-status="loaded"]):not([data-src-status="loading"])',i=/\blang(?:uage)?-([\w-]+)\b/i;t.hooks.add("before-highlightall",function(u){u.selector+=", "+o}),t.hooks.add("before-sanity-check",function(u){var s=u.element;if(s.matches(o)){u.code="",s.setAttribute(n,"loading");var l=s.appendChild(document.createElement("CODE"));l.textContent="Loading…";var c=s.getAttribute("data-src"),f=u.language;if(f==="none"){var d=(/\.(\w+)$/.exec(c)||[,"none"])[1];f=r[d]||d}a(l,f),a(s,f);var p=t.plugins.autoloader;p&&p.loadLanguages(f);var v=new XMLHttpRequest;v.open("GET",c,!0),v.onreadystatechange=function(){v.readyState==4&&(v.status<400&&v.responseText?(s.setAttribute(n,"loaded"),l.textContent=v.responseText,t.highlightElement(l)):(s.setAttribute(n,"failed"),v.status>=400?l.textContent="✖ Error "+v.status+" while fetching file: "+v.statusText:l.textContent="✖ Error: File does not exist or is empty"))},v.send(null)}}),t.plugins.fileHighlight={highlight:function(u){for(var s,l=(u||document).querySelectorAll(o),c=0;s=l[c++];)t.highlightElement(s)}},t.fileHighlight=function(){t.plugins.fileHighlight.highlight.apply(this,arguments)}}function a(u,s){var l=u.className;l=l.replace(i," ")+" language-"+s,u.className=l.replace(/\s+/g," ").trim()}}()});(function(e){var t=e.util.clone(e.languages.javascript),r=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,n=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,o=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function i(s,l){return s=s.replace(/<S>/g,function(){return r}).replace(/<BRACES>/g,function(){return n}).replace(/<SPREAD>/g,function(){return o}),RegExp(s,l)}o=i(o).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=i(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/i,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/i,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:i(/<SPREAD>/.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:i(/=<BRACES>/.source),inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx},alias:"language-javascript"}},e.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 e.Token("plain-text",p,null,p)}f.content&&typeof f.content!="string"&&u(f.content)}};e.hooks.add("after-tokenize",function(s){s.language!=="jsx"&&s.language!=="tsx"||u(s.tokens)})})(Prism),function(e){e.languages.typescript=e.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/}),e.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 e.languages.typescript.parameter;var t=e.languages.extend("typescript",{});delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.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:t}}}}),e.languages.ts=e.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(e){e.type==="entity"&&(e.attributes.title=e.content.replace(/&/,"&"))}),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(e,t){var r={};r["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[t]},r.cdata=/^<!\[CDATA\[|\]\]>$/i;var n={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:r}};n["language-"+t]={pattern:/[\s\S]+/,inside:Prism.languages[t]};var o={};o[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return e}),"i"),lookbehind:!0,greedy:!0,inside:n},Prism.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(e,t){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\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:[t,"language-"+t],inside:Prism.languages[t]},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(e){var t=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,r=[{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*\()/],n=/\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=/[{}\[\](),:;]/;e.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:t,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:r,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:n,operator:o,punctuation:i};var a={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:e.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}}];e.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:t,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:r,number:n,operator:o,punctuation:i}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),e.hooks.add("before-tokenize",function(s){/<\?/.test(s.code)&&e.languages["markup-templating"].buildPlaceholders(s,"php",/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/gi)}),e.hooks.add("after-tokenize",function(s){e.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://,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(e){var t=/\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/,r=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,n={pattern:RegExp(r+/[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:/\./}};e.languages.java=e.languages.extend("clike",{"class-name":[n,{pattern:RegExp(r+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:n.inside}],keyword:t,function:[e.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}}),e.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"}}),e.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":n,keyword:t,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 t.source})),lookbehind:!0,inside:{punctuation:/\./}}})}(Prism),function(e){var t=/\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/,r=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return t.source});e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return t.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:t,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/}),e.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 r})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.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:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}(Prism),function(e){function t(x,j){return x.replace(/<<(\d+)>>/g,function($,X){return"(?:"+j[+X]+")"})}function r(x,j,$){return RegExp(t(x,j),"")}function n(x,j){for(var $=0;$<j;$++)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=n(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),v=n(/\((?:[^()]|<<self>>)*\)/.source,2),m=/@?\b[A-Za-z_]\w*\b/.source,g=t(/<<0>>(?:\s*<<1>>)?/.source,[m,p]),y=t(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[f,g]),h=/\[\s*(?:,\s*)*\]/.source,b=t(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[y,h]),w=t(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[p,v,h]),D=t(/\(<<0>>+(?:,<<0>>+)+\)/.source,[w]),S=t(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[D,y,h]),C={keyword:c,punctuation:/[<>()?,.:[\]]/},O=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,F=/"(?:\\.|[^\\"\r\n])*"/.source,L=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;e.languages.csharp=e.languages.extend("clike",{string:[{pattern:r(/(^|[^$\\])<<0>>/.source,[L]),lookbehind:!0,greedy:!0},{pattern:r(/(^|[^@$\\])<<0>>/.source,[F]),lookbehind:!0,greedy:!0},{pattern:RegExp(O),greedy:!0,alias:"character"}],"class-name":[{pattern:r(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[y]),lookbehind:!0,inside:C},{pattern:r(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[m,S]),lookbehind:!0,inside:C},{pattern:r(/(\busing\s+)<<0>>(?=\s*=)/.source,[m]),lookbehind:!0},{pattern:r(/(\b<<0>>\s+)<<1>>/.source,[l,g]),lookbehind:!0,inside:C},{pattern:r(/(\bcatch\s*\(\s*)<<0>>/.source,[y]),lookbehind:!0,inside:C},{pattern:r(/(\bwhere\s+)<<0>>/.source,[m]),lookbehind:!0},{pattern:r(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[b]),lookbehind:!0,inside:C},{pattern:r(/\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:/\?\.?|::|[{}[\];(),.:]/}),e.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),e.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:r(/([(,]\s*)<<0>>(?=\s*:)/.source,[m]),lookbehind:!0,alias:"punctuation"}}),e.languages.insertBefore("csharp","class-name",{namespace:{pattern:r(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[m]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:r(/(\b(?:default|typeof|sizeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[v]),lookbehind:!0,alias:"class-name",inside:C},"return-type":{pattern:r(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[S,y]),inside:C,alias:"class-name"},"constructor-invocation":{pattern:r(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[S]),lookbehind:!0,inside:C,alias:"class-name"},"generic-method":{pattern:r(/<<0>>\s*<<1>>(?=\s*\()/.source,[m,p]),inside:{function:r(/^<<0>>/.source,[m]),generic:{pattern:RegExp(p),alias:"class-name",inside:C}}},"type-list":{pattern:r(/\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:r(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[g,v]),lookbehind:!0,greedy:!0,inside:e.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 H=F+"|"+O,M=t(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[H]),K=n(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[M]),2),V=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,G=t(/<<0>>(?:\s*\(<<1>>*\))?/.source,[y,K]);e.languages.insertBefore("csharp","class-name",{attribute:{pattern:r(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[V,G]),lookbehind:!0,greedy:!0,inside:{target:{pattern:r(/^<<0>>(?=\s*:)/.source,[V]),alias:"keyword"},"attribute-arguments":{pattern:r(/\(<<0>>*\)/.source,[K]),inside:e.languages.csharp},"class-name":{pattern:RegExp(y),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var q=/:[^}\r\n]+/.source,re=n(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[M]),2),se=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[re,q]),ue=n(t(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[H]),2),ae=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[ue,q]);function B(x,j){return{interpolation:{pattern:r(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[x]),lookbehind:!0,inside:{"format-string":{pattern:r(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[j,q]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:e.languages.csharp}}},string:/[\s\S]+/}}e.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:r(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[se]),lookbehind:!0,greedy:!0,inside:B(se,re)},{pattern:r(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[ae]),lookbehind:!0,greedy:!0,inside:B(ae,ue)}]})}(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(e){e.languages.ruby=e.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 t={pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"tag"},rest:e.languages.ruby}};delete e.languages.ruby.function,e.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:t}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:t}}],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:e.languages.ruby}}}),e.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)/}),e.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:t}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:t}},{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:t}},{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:/^<<[-~]?'|'$/}}}}],e.languages.rb=e.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(e){e.inside.interpolation.inside=Prism.languages.swift}),function(e){var t="\\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",r={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},n={bash:r,environment:{pattern:RegExp("\\$"+t),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("(\\{)"+t),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})/};e.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;|&]|[<>]\\()"+t),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:n},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:r}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:n},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:n.entity}}],environment:{pattern:RegExp("\\$?"+t),alias:"constant"},variable:n.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}},r.inside=e.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=n.variable[1].inside,a=0;a<o.length;a++)i[o[a]]=e.languages.bash[o[a]];e.languages.shell=e.languages.bash}(Prism),function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function r(l){return l=l.replace(/<inner>/g,function(){return t}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+l+")")}var n=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,o=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return n}),i=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;e.languages.markdown=e.languages.extend("markup",{}),e.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:e.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(n),inside:e.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(n),alias:"important",inside:e.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:r(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:r(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:r(/(~~?)(?:(?!~)<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:r(/!?\[(?:(?!\])<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&&(e.languages.markdown[l].inside.content.inside[c]=e.languages.markdown[c])})}),e.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)}),e.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=e.languages[c];if(m)l.content=e.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"&&e.plugins.autoloader){var g="md-"+new Date().valueOf()+"-"+Math.floor(1e16*Math.random());l.attributes.id=g,e.plugins.autoloader.loadLanguages(c,function(){var y=document.getElementById(g);y&&(y.innerHTML=e.highlight(y.textContent,e.languages[c],c))})}}});var a=RegExp(e.languages.markup.tag.pattern.source,"gi"),u={amp:"&",lt:"<",gt:">",quot:'"'},s=String.fromCodePoint||String.fromCharCode;e.languages.md=e.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(e){if(e.language==="groovy"&&e.type==="string"){var t=e.content[0];if(t!="'"){var r=/([^\\])(?:\$(?:\{.*?\}|[\w.]+))/;t==="$"&&(r=/([^\$])(?:\$(?:\{.*?\}|[\w.]+))/),e.content=e.content.replace(/</g,"<").replace(/&/g,"&"),e.content=Prism.highlight(e.content,{expression:{pattern:r,lookbehind:!0,inside:Prism.languages.groovy}}),e.classes.push(t==="/"?"regex":"gstring")}}});var eye=["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 Fz(e){return typeof e=="string"?e.length:typeof e.content=="string"?e.content.length:e.content.reduce(function(t,r){return t+Fz(r)},0)}var Cg,tye=Ne.String,ri=function(e){if(NC(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return tye(e)},Tz=function(){var e=Xn(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},zC=Ne.RegExp,S3=ar(function(){var e=zC("a","y");return e.lastIndex=2,e.exec("abcd")!=null});S3||ar(function(){return!zC("a","y").sticky});var _z={BROKEN_CARET:S3||ar(function(){var e=zC("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),UNSUPPORTED_Y:S3},rye=Fo?Object.defineProperties:function(e,t){Xn(e);for(var r,n=Ey(t),o=rv(t),i=o.length,a=0;i>a;)wy.f(e,r=o[a++],n[r]);return e},nye=ah("document","documentElement"),jz=yz("IE_PROTO"),Mw=function(){},Pz=function(e){return"<script>"+e+"<\/script>"},T_=function(e){e.write(Pz("")),e.close();var t=e.parentWindow.Object;return e=null,t},nv=function(){try{Cg=new ActiveXObject("htmlfile")}catch{}var e,t;nv=typeof document<"u"?document.domain&&Cg?T_(Cg):((t=FC("iframe")).style.display="none",nye.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(Pz("document.F=Object")),e.close(),e.F):T_(Cg);for(var r=pm.length;r--;)delete nv.prototype[pm[r]];return nv()};PC[jz]=!0;var __,zw,oye=Object.create||function(e,t){var r;return e!==null?(Mw.prototype=Xn(e),r=new Mw,Mw.prototype=null,r[jz]=e):r=nv(),t===void 0?r:rye(r,t)},iye=Ne.RegExp,aye=ar(function(){var e=iye(".","s");return!(e.dotAll&&e.exec(`
- `)&&e.flags==="s")}),uye=Ne.RegExp,sye=ar(function(){var e=uye("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),lye=D3.get,cye=AC("native-string-replace",String.prototype.replace),hm=RegExp.prototype.exec,x3=hm,fye=Ze("".charAt),dye=Ze("".indexOf),pye=Ze("".replace),$w=Ze("".slice),Hw=(zw=/b*/g,or(hm,__=/a/,"a"),or(hm,zw,"a"),__.lastIndex!==0||zw.lastIndex!==0),j_=_z.BROKEN_CARET,Uw=/()??/.exec("")[1]!==void 0;(Hw||Uw||j_||aye||sye)&&(x3=function(e){var t,r,n,o,i,a,u,s=this,l=lye(s),c=ri(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=or(x3,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=j_&&s.sticky,v=or(Tz,s),m=s.source,g=0,y=c;if(p&&(v=pye(v,"y",""),dye(v,"g")===-1&&(v+="g"),y=$w(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&fye(c,s.lastIndex-1)!==`
- `)&&(m="(?: "+m+")",y=" "+y,g++),r=new RegExp("^(?:"+m+")",v)),Uw&&(r=new RegExp("^"+m+"$(?!\\s)",v)),Hw&&(n=s.lastIndex),o=or(hm,p?r:s,y),p?o?(o.input=$w(o.input,g),o[0]=$w(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:Hw&&o&&(s.lastIndex=s.global?o.index+o[0].length:n),Uw&&o&&o.length>1&&or(cye,o[0],r,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&d)for(o.groups=a=oye(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var mp=x3;Dy({target:"RegExp",proto:!0,forced:/./.exec!==mp},{exec:mp});var $C=Function.prototype,P_=$C.apply,hye=$C.bind,N_=$C.call,gye=typeof Reflect=="object"&&Reflect.apply||(hye?N_.bind(P_):function(){return N_.apply(P_,arguments)}),vye=_a("species"),Vw=RegExp.prototype,mye=_a("match"),yye=Ne.TypeError,bye=_a("species"),wye=Ze("".charAt),I_=Ze("".charCodeAt),Eye=Ze("".slice),Dye=function(e){return function(t,r){var n,o,i=ri(Gl(t)),a=RC(r),u=i.length;return a<0||a>=u?"":(n=I_(i,a))<55296||n>56319||a+1===u||(o=I_(i,a+1))<56320||o>57343?wye(i,a):Eye(i,a,a+2)}},Cye=Dye(),Sye=function(e,t,r){return t+(r?Cye(e,t).length:1)},xye=Ne.Array,Aye=Math.max,R_=function(e,t,r){for(var n,o,i,a,u=LC(e),s=C3(t,u),l=C3(r===void 0?u:r,u),c=xye(Aye(l-s,0)),f=0;s<l;s++,f++)n=c,o=f,i=e[s],(a=TC(o))in n?wy.f(n,a,_C(0,i)):n[a]=i;return c.length=f,c},Oye=Ne.TypeError,L_=function(e,t){var r=e.exec;if(_r(r)){var n=or(r,e,t);return n!==null&&Xn(n),n}if(da(e)==="RegExp")return or(mp,e,t);throw Oye("RegExp#exec called on incompatible receiver")},Ws=_z.UNSUPPORTED_Y,Bye=Math.min,Nz=[].push,kye=Ze(/./.exec),Gs=Ze(Nz),Mf=Ze("".slice);(function(e,t,r,n){var o=_a(e),i=!ar(function(){var l={};return l[o]=function(){return 7},""[e](l)!=7}),a=i&&!ar(function(){var l=!1,c=/a/;return(c={}).constructor={},c.constructor[vye]=function(){return c},c.flags="",c[o]=/./[o],c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||r){var u=Ze(/./[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=ri(Gl(this)),h=v===void 0?4294967295:v>>>0;if(h===0)return[];if(p===void 0)return[y];if(!Zo(m=p)||!((g=m[mye])!==void 0?g:da(m)=="RegExp"))return or(c,y,p,h);for(var b,w,D,S=[],C=(p.ignoreCase?"i":"")+(p.multiline?"m":"")+(p.unicode?"u":"")+(p.sticky?"y":""),O=0,F=new RegExp(p.source,C+"g");(b=or(mp,F,y))&&!((w=F.lastIndex)>O&&(Gs(S,Mf(y,O,b.index)),b.length>1&&b.index<y.length&&gye(Nz,S,R_(b,1)),D=b[0].length,O=w,S.length>=h));)F.lastIndex===b.index&&F.lastIndex++;return O===y.length?!D&&kye(F,"")||Gs(S,""):Gs(S,Mf(y,O)),S.length>h?R_(S,0,h):S}:"0".split(void 0,0).length?function(p,v){return p===void 0&&v===0?[]:or(c,this,p,v)}:c,[function(p,v){var m=Gl(this),g=p==null?void 0:mz(p,l);return g?or(g,p,m,v):or(d,ri(m),p,v)},function(p,v){var m=Xn(this),g=ri(p),y=f(d,m,g,v,d!==c);if(y.done)return y.value;var h=function(K,V){var G,q=Xn(K).constructor;return q===void 0||(G=Xn(q)[bye])==null?V:function(re){if(Sz(re))return re;throw yye(gz(re)+" is not a constructor")}(G)}(m,RegExp),b=m.unicode,w=(m.ignoreCase?"i":"")+(m.multiline?"m":"")+(m.unicode?"u":"")+(Ws?"g":"y"),D=new h(Ws?"^(?:"+m.source+")":m,w),S=v===void 0?4294967295:v>>>0;if(S===0)return[];if(g.length===0)return L_(D,g)===null?[g]:[];for(var C=0,O=0,F=[];O<g.length;){D.lastIndex=Ws?0:O;var L,H=L_(D,Ws?Mf(g,O):g);if(H===null||(L=Bye(Ez(D.lastIndex+(Ws?O:0)),g.length))===C)O=Sye(g,O,b);else{if(Gs(F,Mf(g,C,O)),F.length===S)return F;for(var M=1;M<=H.length-1;M++)if(Gs(F,H[M]),F.length===S)return F;O=C=L}}return Gs(F,Mf(g,C)),F}]}(o,""[e],function(l,c,f,d,p){var v=Ze(l),m=c.exec;return m===mp||m===Vw.exec?i&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:v(f,c,d)}:{done:!1}});vp(String.prototype,e,s[0]),vp(Vw,o,s[1])}n&&ql(Vw[o],"sham",!0)})("split",0,!!ar(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var r="ab".split(e);return r.length!==2||r[0]!=="a"||r[1]!=="b"}),Ws),Dy({global:!0},{globalThis:Ne}),xn&&(k.fn.attr=xn);var Fye=wz.PROPER,A3=RegExp.prototype,Iz=A3.toString,Tye=Ze(Tz),_ye=ar(function(){return Iz.call({source:"a",flags:"b"})!="/a/b"}),jye=Fye&&Iz.name!="toString";(_ye||jye)&&vp(RegExp.prototype,"toString",function(){var e=Xn(this),t=ri(e.source),r=e.flags;return"/"+t+"/"+ri(r===void 0&&hz(A3,e)&&!("flags"in A3)?Tye(e):r)},{unsafe:!0});var Pye=function(){function e(){this.title=Q("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 e.prototype.getOptions=function(t){var r=[],n=t.getMenuConfig("codeSelectLang").codeLangs,o=n===void 0?[]:n;r.push({text:"plain text",value:""}),o.forEach(function(a){var u=a.text,s=a.value;r.push({text:u,value:s})});var i=this.getValue(t);return r.forEach(function(a){a.value===i?a.selected=!0:delete a.selected}),r},e.prototype.isActive=function(t){return!1},e.prototype.getValue=function(t){var r=this.getSelectCodeElem(t);if(r==null||!ce.isElement(r))return"";var n=r.language.toString(),o=t.getMenuConfig("codeSelectLang").codeLangs;return(o===void 0?[]:o).some(function(i){return i.value===n})?n:""},e.prototype.isDisabled=function(t){return t.selection==null||!this.getSelectCodeElem(t)},e.prototype.exec=function(t,r){if(this.getSelectCodeElem(t)!=null){var n={language:r.toString()};N.setNodes(t,n,{match:function(o){return A.checkNodeType(o,"code")}})}},e.prototype.getSelectCodeElem=function(t){var r=A.getSelectedNodeByType(t,"code");if(r==null)return null;var n=A.getParentNode(t,r);return ce.isElement(n)?n.type!=="pre"?null:r:null},e}(),Nye={renderStyle:function(e,t){var r=e,n=t,o="";return eye.forEach(function(i){r[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})}(n,o="token "+o),n},parseStyleHtml:function(e,t,r){var n=k(e);if(!ce.isElement(t)||A.getNodeType(t)!=="code")return t;var o=t,i=n.attr("class")||"";return i.indexOf("language-")===0?o.language=i.split("-")[1]||"":o.language=i.toLowerCase(),o},menus:[{key:"codeSelectLang",factory:function(){return new Pye},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(e,t){var r=e.language,n=r===void 0?"":r;return"<code "+(n?'class="language-'+n+'"':"")+">"+t+"</code>"}}]},Iye=/"/g,Rye=Ze("".replace);Dy({target:"String",proto:!0,forced:ar(function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3})},{anchor:function(e){return t=e,r=ri(Gl(this)),n="<a",(n+=' name="'+Rye(ri(t),Iye,""")+'"')+">"+r+"</a>";var t,r,n}});var Rz=function(e){var t,r,n,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(O){D={error:O}}finally{try{w&&!w.done&&(b=S.return)&&b.call(S)}finally{if(D)throw D.error}}return C}(e,2),i=o[0],a=o[1],u=[],s=function(y){if(!oe.isText(y))return null;var h=A.getParentNode(null,y);if(h&&A.getNodeType(h)==="code"){var b=A.getParentNode(null,h);if(b&&A.getNodeType(b)==="pre")return h}return null}(i);if(s==null)return u;var l=s.language,c=l===void 0?"":l;if(!c)return u;var f=function(y,h){if(!h)return[];var b=F_.languages[h];return b?F_.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+Fz(m);typeof m!="string"&&u.push(((n={})[m.type]=!0,n.anchor={path:a,offset:d},n.focus={path:a,offset:g},n)),d=g}}catch(y){t={error:y}}finally{try{v&&!v.done&&(r=p.return)&&r.call(p)}finally{if(t)throw t.error}}return u},xt=function(){return xt=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},xt.apply(this,arguments)},rr=function(){function e(){throw new Error(`不能实例化
- Can not construct a instance`)}return e.setEditorConfig=function(t){t===void 0&&(t={}),this.editorConfig=xt(xt({},this.editorConfig),t)},e.setSimpleEditorConfig=function(t){t===void 0&&(t={}),this.simpleEditorConfig=xt(xt({},this.simpleEditorConfig),t)},e.setToolbarConfig=function(t){t===void 0&&(t={}),this.toolbarConfig=xt(xt({},this.toolbarConfig),t)},e.setSimpleToolbarConfig=function(t){t===void 0&&(t={}),this.simpleToolbarConfig=xt(xt({},this.simpleToolbarConfig),t)},e.registerPlugin=function(t){this.plugins.push(t)},e.registerMenu=function(t,r){(function(n,o){var i=n.key,a=n.factory,u=n.config,s=yn(yn({},u),o||{});if(Md[i]!=null)throw new Error("Duplicated key '"+i+"' in menu items");Md[i]=a,function(l,c){c!=null&&(aN[l]=c)}(i,s)})(t,r)},e.registerRenderElem=function(t){(function(r){var n=r.type,o=r.renderElem;TN[n||""]=o})(t)},e.registerRenderStyle=function(t){(function(r){EE.push(r)})(t)},e.registerElemToHtml=function(t){(function(r){var n=r.type,o=r.elemToHtml;uN[n||""]=o})(t)},e.registerStyleToHtml=function(t){(function(r){gE.push(r)})(t)},e.registerPreParseHtml=function(t){(function(r){xN.push(r)})(t)},e.registerParseElemHtml=function(t){(function(r){var n=r.selector,o=r.parseElemHtml;e0[n]=o})(t)},e.registerParseStyleHtml=function(t){(function(r){Q5.push(r)})(t)},e.registerModule=function(t){tu(t)},e.editorConfig={},e.simpleEditorConfig={},e.toolbarConfig={},e.simpleToolbarConfig={},e.plugins=[],e}();/*! *****************************************************************************
- Copyright (c) Microsoft Corporation.
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted.
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THIS SOFTWARE.
- ***************************************************************************** */function tu(e){var t=e.menus,r=e.renderElems,n=e.renderStyle,o=e.elemsToHtml,i=e.styleToHtml,a=e.preParseHtml,u=e.parseElemsHtml,s=e.parseStyleHtml,l=e.editorPlugin;t&&t.forEach(function(c){return rr.registerMenu(c)}),r&&r.forEach(function(c){return rr.registerRenderElem(c)}),n&&rr.registerRenderStyle(n),o&&o.forEach(function(c){return rr.registerElemToHtml(c)}),i&&rr.registerStyleToHtml(i),a&&a.forEach(function(c){return rr.registerPreParseHtml(c)}),u&&u.forEach(function(c){return rr.registerParseElemHtml(c)}),s&&rr.registerParseStyleHtml(s),l&&rr.registerPlugin(l)}Uae.forEach(function(e){return tu(e)}),tu(wle),tu(Gfe),tu(rge),tu(q0e),tu(Nye);var Lz='<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>',Mz={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"]}},Lye={hoverbarKeys:xt(xt({},Mz),{text:{menuKeys:["headerSelect","insertLink","bulletedList","|","bold","through","color","bgColor","clearStyle"]}})};rr.setEditorConfig(xt(xt({},Lye),{decorate:Rz}));var Mye={hoverbarKeys:Mz};rr.setSimpleEditorConfig(xt(xt({},Mye),{decorate:Rz}));var zye={toolbarKeys:["headerSelect","blockquote","|","bold","underline","italic",{key:"group-more-style",title:Q("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:Q("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:Q("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:Q("editor.image"),iconSvg:Lz,menuKeys:["insertImage","uploadImage"]},{key:"group-video",title:Q("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"]};rr.setToolbarConfig(zye);var $ye={toolbarKeys:["blockquote","header1","header2","header3","|","bold","underline","italic","through","color","bgColor","clearStyle","|","bulletedList","numberedList","todo","justifyLeft","justifyRight","justifyCenter","|","insertLink",{key:"group-image",title:Q("editor.image"),iconSvg:Lz,menuKeys:["insertImage","uploadImage"]},"insertVideo","insertTable","codeBlock","|","undo","redo","|","fullScreen"]};function Hye(e){e===void 0&&(e={});var t=e.selector,r=t===void 0?"":t,n=e.content,o=n===void 0?[]:n,i=e.html,a=e.config,u=a===void 0?{}:a,s=e.mode,l=(s===void 0?"default":s)==="simple"?rr.simpleEditorConfig:rr.editorConfig,c=xt(xt({},l.hoverbarKeys||{}),u.hoverbarKeys||{});return GQ({selector:r,config:xt(xt(xt({},l),u),{hoverbarKeys:c}),content:o,html:i,plugins:rr.plugins})}function Uye(e){var t=e.selector,r=e.editor,n=e.config,o=n===void 0?{}:n,i=e.mode,a=i===void 0?"default":i;if(!t)throw new Error("Cannot find 'selector' when create toolbar");var u=a==="simple"?rr.simpleToolbarConfig:rr.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 BN(g,"data-w-e-toolbar",y)}(l,f))throw new Error("Repeated create toolbar by selector '"+f+"'");var v=yn({toolbarKeys:[],excludeKeys:[],insertKeys:{index:0,keys:[]},modalAppendToBody:!1},p||{}),m=new JQ(f,v);return V5.set(m,l),Lm.set(l,m),m}(r,{selector:t,config:xt(xt({},u),o)});return s}rr.setSimpleToolbarConfig($ye);var Vye=Object.defineProperty,Wye=Object.defineProperties,Gye=Object.getOwnPropertyDescriptors,M_=Object.getOwnPropertySymbols,qye=Object.prototype.hasOwnProperty,Kye=Object.prototype.propertyIsEnumerable,z_=(e,t,r)=>t in e?Vye(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Xye=(e,t)=>{for(var r in t||(t={}))qye.call(t,r)&&z_(e,r,t[r]);if(M_)for(var r of M_(t))Kye.call(t,r)&&z_(e,r,t[r]);return e},Yye=(e,t)=>Wye(e,Gye(t));function Pi(e){let t=`请使用 '@${e}' 事件,不要放在 props 中`;return t+=`
- Please use '@${e}' event instead of props`,t}var zz=(e,t)=>{for(const[r,n]of t)e[r]=n;return e};const Jye=O3({props:{mode:{type:String,default:"default"},defaultContent:{type:Array,default:[]},defaultHtml:{type:String,default:""},defaultConfig:{type:Object,default:{}},modelValue:{type:String,default:""}},setup(e,t){const r=il(null),n=$_(null),o=il(""),i=()=>{if(!r.value)return;const u=Wz(e.defaultContent);Hye({selector:r.value,mode:e.mode,content:u||[],html:e.defaultHtml||e.modelValue||"",config:Yye(Xye({},e.defaultConfig),{onCreated(s){if(n.value=s,t.emit("onCreated",s),e.defaultConfig.onCreated){const l=Pi("onCreated");throw new Error(l)}},onChange(s){const l=s.getHtml();if(o.value=l,t.emit("update:modelValue",l),t.emit("onChange",s),e.defaultConfig.onChange){const c=Pi("onChange");throw new Error(c)}},onDestroyed(s){if(t.emit("onDestroyed",s),e.defaultConfig.onDestroyed){const l=Pi("onDestroyed");throw new Error(l)}},onMaxLength(s){if(t.emit("onMaxLength",s),e.defaultConfig.onMaxLength){const l=Pi("onMaxLength");throw new Error(l)}},onFocus(s){if(t.emit("onFocus",s),e.defaultConfig.onFocus){const l=Pi("onFocus");throw new Error(l)}},onBlur(s){if(t.emit("onBlur",s),e.defaultConfig.onBlur){const l=Pi("onBlur");throw new Error(l)}},customAlert(s,l){if(t.emit("customAlert",s,l),e.defaultConfig.customAlert){const c=Pi("customAlert");throw new Error(c)}},customPaste:(s,l)=>{if(e.defaultConfig.customPaste){const f=Pi("customPaste");throw new Error(f)}let c;return t.emit("customPaste",s,l,f=>{c=f}),c}})})};function a(u){const s=n.value;s!=null&&s.setHtml(u)}return H_(()=>{i()}),Ww(()=>e.modelValue,u=>{u!==o.value&&a(u)}),{box:r}}}),Zye={ref:"box",style:{height:"100%"}};function Qye(e,t,r,n,o,i){return k3(),B3("div",Zye,null,512)}var e1e=zz(Jye,[["render",Qye]]);const t1e=O3({props:{editor:{type:Object},mode:{type:String,default:"default"},defaultConfig:{type:Object,default:{}}},setup(e){const t=il(null),r=n=>{if(t.value){if(n==null)throw new Error("Not found instance of Editor when create <Toolbar/> component");A.getToolbar(n)||Uye({editor:n,selector:t.value||"<div></div>",mode:e.mode,config:e.defaultConfig})}};return Gz(()=>{const{editor:n}=e;n!=null&&r(n)}),{selector:t}}}),r1e={ref:"selector"};function n1e(e,t,r,n,o,i){return k3(),B3("div",r1e,null,512)}var o1e=zz(t1e,[["render",n1e]]);const i1e=O3({name:"FsEditorWang5",components:{Editor:e1e,Toolbar:o1e},inheritAttrs:!1,props:{container:{type:Object},mode:{type:String},toolbarConfig:{type:Object},toolbarAttrs:{type:Object},editorConfig:{type:Object},uploader:{type:Object},readonly:{type:Boolean},disabled:{type:Boolean}},emits:["ready"],setup(e,t){const r=$_(),n=il(),o=il(),i=il("");function a(g){r.value&&(g?r.value.enable():r.value.disable())}Ww(()=>e.readonly,g=>{a(!g)},{immediate:!0}),Ww(()=>e.disabled,g=>{a(!g)},{immediate:!0});const u=KC(()=>VC.merge({},WC.wangEditor5.toolbarConfig,e.toolbarConfig)),s={};if(e.uploader){async function g(h){h.options=e.uploader;const{getUploaderImpl:b}=Uz();let w=await b(h.options.type);if(w==null)throw p.message.warn("Sorry,The uploader component is not ready yet"),new Error("Sorry,The component is not ready yet");return await(w==null?void 0:w.upload(h))}async function y(h,b){var w;const D={status:"uploading",progress:0,message:void 0},S=H=>{D.progress=H.percent},C=H=>{D.status="error",D.message="文件上传出错:"+H.message,console.error(D.message,H)},O={file:h,fileName:h.name,onProgress:S,onError:C},F=await g(O);let L=F==null?void 0:F.url;(w=e.uploader)!=null&&w.buildUrl&&(L=await e.uploader.buildUrl(F)),b(L)}s.uploadImage={customUpload:y},s.uploadVideo={customUpload:y}}const l=KC(()=>VC.merge({placeholder:"请输入内容...",MENU_CONF:s},WC.wangEditor5.editorConfig,e.editorConfig));Vz(()=>{const g=r.value;g!=null&&g.destroy()});const c=g=>{r.value=g,a(!e.readonly&&!e.disabled),t.emit("ready")};function f(){return r}function d(){return n}const{ui:p}=Hz();let v=p.formItem.injectFormItemContext();function m(){v.onChange()}return H_(()=>{}),{uploaderImplRef:o,getToolRef:d,getEditorRef:f,toolbarRef:n,editorRef:r,valueHtml:i,toolbarConfigRef:u,editorConfigRef:l,handleCreated:c,onChange:m}}});function a1e(e,t,r,n,o,i){const a=GC("Toolbar"),u=GC("Editor");return k3(),B3("div",Sy({class:"fs-editor-wang5"},e.container),[qC(a,Sy({ref:e.toolbarRef,style:{"border-bottom":"1px solid #ccc"},editor:e.editorRef,"default-config":e.toolbarConfigRef,mode:e.mode},e.toolbarAttrs),null,16,["editor","default-config","mode"]),qC(u,Sy({style:{height:"500px","overflow-y":"hidden"},"default-config":e.editorConfigRef,mode:e.mode},e.$attrs,{onOnChange:e.onChange,onOnCreated:e.handleCreated}),null,16,["default-config","mode","onOnChange","onOnCreated"])],16)}const l1e=$z(i1e,[["render",a1e]]);export{l1e as default};
|