You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

187 lines
798KB

  1. import{k as n5,r as Nd,an as cP,o as s$,B as fP,c as r5,d as dP,ao as l$,ap as c$,E as f$,b as Ka,L as d$,h as xn,f as pn,i as Ya,e as p$,u as bx,aq as h$,s as g$}from"./index-dd5fae99.js";import{s as v$}from"./noticeManage-8f11233d.js";var se=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function m$(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function cs(t){var e={exports:{}};return t(e,e.exports),e.exports}var bi,W0,jh=function(t){return t&&t.Math==Math&&t},kt=jh(typeof globalThis=="object"&&globalThis)||jh(typeof window=="object"&&window)||jh(typeof self=="object"&&self)||jh(typeof se=="object"&&se)||function(){return this}()||Function("return this")(),o5=Function.prototype,wx=o5.apply,y$=o5.bind,Ex=o5.call,pP=typeof Reflect=="object"&&Reflect.apply||(y$?Ex.bind(wx):function(){return Ex.apply(wx,arguments)}),hP=Function.prototype,b4=hP.bind,w4=hP.call,b$=b4&&b4.bind(w4),ge=b4?function(t){return t&&b$(w4,t)}:function(t){return t&&function(){return w4.apply(t,arguments)}},sn=function(t){return typeof t=="function"},Kn=function(t){try{return!!t()}catch{return!0}},Un=!Kn(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),_c=Function.prototype.call,Hn=_c.bind?_c.bind(_c):function(){return _c.apply(_c,arguments)},Dx={}.propertyIsEnumerable,Cx=Object.getOwnPropertyDescriptor,w$=Cx&&!Dx.call({1:2},1)?function(t){var e=Cx(this,t);return!!e&&e.enumerable}:Dx,i5={f:w$},Zr=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},E$=ge({}.toString),D$=ge("".slice),Su=function(t){return D$(E$(t),8,-1)},Gm=kt.Object,C$=ge("".split),gP=Kn(function(){return!Gm("z").propertyIsEnumerable(0)})?function(t){return Su(t)=="String"?C$(t,""):Gm(t)}:Gm,x$=kt.TypeError,a5=function(t){if(t==null)throw x$("Can't call method on "+t);return t},No=function(t){return gP(a5(t))},nr=function(t){return typeof t=="object"?t!==null:sn(t)},er={},xx=function(t){return sn(t)?t:void 0},uc=function(t,e){return arguments.length<2?xx(er[t])||xx(kt[t]):er[t]&&er[t][e]||kt[t]&&kt[t][e]},Id=ge({}.isPrototypeOf),qm=uc("navigator","userAgent")||"",Sx=kt.process,Ax=kt.Deno,Ox=Sx&&Sx.versions||Ax&&Ax.version,kx=Ox&&Ox.v8;kx&&(W0=(bi=kx.split("."))[0]>0&&bi[0]<4?1:+(bi[0]+bi[1])),!W0&&qm&&(!(bi=qm.match(/Edge\/(\d+)/))||bi[1]>=74)&&(bi=qm.match(/Chrome\/(\d+)/))&&(W0=+bi[1]);var Nh,Sg=W0,go=!!Object.getOwnPropertySymbols&&!Kn(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&Sg&&Sg<41}),u5=go&&!Symbol.sham&&typeof Symbol.iterator=="symbol",S$=kt.Object,ml=u5?function(t){return typeof t=="symbol"}:function(t){var e=uc("Symbol");return sn(e)&&Id(e.prototype,S$(t))},A$=kt.String,E4=function(t){try{return A$(t)}catch{return"Object"}},O$=kt.TypeError,s5=function(t){if(sn(t))return t;throw O$(E4(t)+" is not a function")},Ag=function(t,e){var n=t[e];return n==null?void 0:s5(n)},k$=kt.TypeError,B$=Object.defineProperty,na=kt["__core-js_shared__"]||function(t,e){try{B$(kt,t,{value:e,configurable:!0,writable:!0})}catch{kt[t]=e}return e}("__core-js_shared__",{}),fs=cs(function(t){(t.exports=function(e,n){return na[e]||(na[e]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),F$=kt.Object,jp=function(t){return F$(a5(t))},_$=ge({}.hasOwnProperty),Vt=Object.hasOwn||function(t,e){return _$(jp(t),e)},T$=0,P$=Math.random(),j$=ge(1 .toString),Og=function(t){return"Symbol("+(t===void 0?"":t)+")_"+j$(++T$+P$,36)},Tc=fs("wks"),Au=kt.Symbol,Bx=Au&&Au.for,N$=u5?Au:Au&&Au.withoutSetter||Og,_n=function(t){if(!Vt(Tc,t)||!go&&typeof Tc[t]!="string"){var e="Symbol."+t;go&&Vt(Au,t)?Tc[t]=Au[t]:Tc[t]=u5&&Bx?Bx(e):N$(e)}return Tc[t]},I$=kt.TypeError,L$=_n("toPrimitive"),R$=function(t,e){if(!nr(t)||ml(t))return t;var n,r=Ag(t,L$);if(r){if(e===void 0&&(e="default"),n=Hn(r,t,e),!nr(n)||ml(n))return n;throw I$("Can't convert object to primitive value")}return e===void 0&&(e="number"),function(o,i){var a,u;if(i==="string"&&sn(a=o.toString)&&!nr(u=Hn(a,o))||sn(a=o.valueOf)&&!nr(u=Hn(a,o))||i!=="string"&&sn(a=o.toString)&&!nr(u=Hn(a,o)))return u;throw k$("Can't convert object to primitive value")}(t,e)},sc=function(t){var e=R$(t,"string");return ml(e)?e:e+""},D4=kt.document,M$=nr(D4)&&nr(D4.createElement),vP=function(t){return M$?D4.createElement(t):{}},mP=!Un&&!Kn(function(){return Object.defineProperty(vP("div"),"a",{get:function(){return 7}}).a!=7}),Fx=Object.getOwnPropertyDescriptor,z$=Un?Fx:function(t,e){if(t=No(t),e=sc(e),mP)try{return Fx(t,e)}catch{}if(Vt(t,e))return Zr(!Hn(i5.f,t,e),t[e])},L1={f:z$},$$=/#|\.prototype\./,Np=function(t,e){var n=V$[H$(t)];return n==W$||n!=U$&&(sn(e)?Kn(e):!!e)},H$=Np.normalize=function(t){return String(t).replace($$,".").toLowerCase()},V$=Np.data={},U$=Np.NATIVE="N",W$=Np.POLYFILL="P",G$=Np,_x=ge(ge.bind),l5=function(t,e){return s5(t),e===void 0?t:_x?_x(t,e):function(){return t.apply(e,arguments)}},q$=kt.String,K$=kt.TypeError,sr=function(t){if(nr(t))return t;throw K$(q$(t)+" is not an object")},Y$=kt.TypeError,Tx=Object.defineProperty,X$=Un?Tx:function(t,e,n){if(sr(t),e=sc(e),sr(n),mP)try{return Tx(t,e,n)}catch{}if("get"in n||"set"in n)throw Y$("Accessors not supported");return"value"in n&&(t[e]=n.value),t},Ia={f:X$},jn=Un?function(t,e,n){return Ia.f(t,e,Zr(1,n))}:function(t,e,n){return t[e]=n,t},Z$=L1.f,J$=function(t){var e=function(n,r,o){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,r)}return new t(n,r,o)}return pP(t,this,arguments)};return e.prototype=t.prototype,e},Yo=function(t,e){var n,r,o,i,a,u,s,l,c=t.target,f=t.global,p=t.stat,d=t.proto,y=f?kt:p?kt[c]:(kt[c]||{}).prototype,g=f?er:er[c]||jn(er,c,{})[c],v=g.prototype;for(o in e)n=!G$(f?o:c+(p?".":"#")+o,t.forced)&&y&&Vt(y,o),a=g[o],n&&(u=t.noTargetGet?(l=Z$(y,o))&&l.value:y[o]),i=n&&u?u:e[o],n&&typeof a==typeof i||(s=t.bind&&n?l5(i,kt):t.wrap&&n?J$(i):d&&sn(i)?ge(i):i,(t.sham||i&&i.sham||a&&a.sham)&&jn(s,"sham",!0),jn(g,o,s),d&&(Vt(er,r=c+"Prototype")||jn(er,r,{}),jn(er[r],o,i),t.real&&v&&!v[o]&&jn(v,o,i)))},Px=fs("keys"),R1=function(t){return Px[t]||(Px[t]=Og(t))},Q$=!Kn(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),jx=R1("IE_PROTO"),C4=kt.Object,tH=C4.prototype,kg=Q$?C4.getPrototypeOf:function(t){var e=jp(t);if(Vt(e,jx))return e[jx];var n=e.constructor;return sn(n)&&e instanceof n?n.prototype:e instanceof C4?tH:null},eH=kt.String,nH=kt.TypeError,Bg=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=ge(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch{}return function(r,o){return sr(r),function(i){if(typeof i=="object"||sn(i))return i;throw nH("Can't set "+eH(i)+" as a prototype")}(o),e?t(r,o):r.__proto__=o,r}}():void 0),rH=Math.ceil,oH=Math.floor,c5=function(t){var e=+t;return e!=e||e===0?0:(e>0?oH:rH)(e)},iH=Math.max,aH=Math.min,x4=function(t,e){var n=c5(t);return n<0?iH(n+e,0):aH(n,e)},uH=Math.min,Ip=function(t){return(e=t.length)>0?uH(c5(e),9007199254740991):0;var e},Nx=function(t){return function(e,n,r){var o,i=No(e),a=Ip(i),u=x4(r,a);if(t&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===n)return t||u||0;return!t&&-1}},sH={includes:Nx(!0),indexOf:Nx(!1)},Lp={},lH=sH.indexOf,Ix=ge([].push),yP=function(t,e){var n,r=No(t),o=0,i=[];for(n in r)!Vt(Lp,n)&&Vt(r,n)&&Ix(i,n);for(;e.length>o;)Vt(r,n=e[o++])&&(~lH(i,n)||Ix(i,n));return i},Fg=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],cH=Fg.concat("length","prototype"),fH=Object.getOwnPropertyNames||function(t){return yP(t,cH)},f5={f:fH},G0={f:Object.getOwnPropertySymbols},dH=ge([].concat),pH=uc("Reflect","ownKeys")||function(t){var e=f5.f(sr(t)),n=G0.f;return n?dH(e,n(t)):e},d5=Object.keys||function(t){return yP(t,Fg)},hH=Un?Object.defineProperties:function(t,e){sr(t);for(var n,r=No(e),o=d5(e),i=o.length,a=0;i>a;)Ia.f(t,n=o[a++],r[n]);return t},gH=uc("document","documentElement"),bP=R1("IE_PROTO"),Km=function(){},wP=function(t){return"<script>"+t+"<\/script>"},Lx=function(t){t.write(wP("")),t.close();var e=t.parentWindow.Object;return t=null,e},q0=function(){try{Nh=new ActiveXObject("htmlfile")}catch{}var t,e;q0=typeof document<"u"?document.domain&&Nh?Lx(Nh):((e=vP("iframe")).style.display="none",gH.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(wP("document.F=Object")),t.close(),t.F):Lx(Nh);for(var n=Fg.length;n--;)delete q0.prototype[Fg[n]];return q0()};Lp[bP]=!0;var ai=Object.create||function(t,e){var n;return t!==null?(Km.prototype=sr(t),n=new Km,Km.prototype=null,n[bP]=t):n=q0(),e===void 0?n:hH(n,e)},S4=function(t,e,n){var r=sc(e);r in t?Ia.f(t,r,Zr(0,n)):t[r]=n},vH=kt.Array,mH=Math.max,EP=function(t,e,n){for(var r=Ip(t),o=x4(e,r),i=x4(n===void 0?r:n,r),a=vH(mH(i-o,0)),u=0;o<i;o++,u++)S4(a,u,t[o]);return a.length=u,a},yH=ge("".replace),bH=ge("".split),wH=ge([].join),A4=String(Error("zxcasd").stack),DP=/\n\s*at [^:]*:[^\n]*/,EH=DP.test(A4),DH=/@[^\n]*\n/.test(A4)&&!/zxcasd/.test(A4),CH=function(t,e){if(typeof t!="string")return t;if(EH)for(;e--;)t=yH(t,DP,"");else if(DH)return wH(EP(bH(t,`
  2. `),e),`
  3. `);return t},xH=function(t,e){nr(e)&&"cause"in e&&jn(t,"cause",e.cause)},ni={},SH=_n("iterator"),AH=Array.prototype,CP={};CP[_n("toStringTag")]="z";var p5=String(CP)==="[object z]",OH=_n("toStringTag"),kH=kt.Object,BH=Su(function(){return arguments}())=="Arguments",Rp=p5?Su:function(t){var e,n,r;return t===void 0?"Undefined":t===null?"Null":typeof(n=function(o,i){try{return o[i]}catch{}}(e=kH(t),OH))=="string"?n:BH?Su(e):(r=Su(e))=="Object"&&sn(e.callee)?"Arguments":r},FH=_n("iterator"),Rx=function(t){if(t!=null)return Ag(t,FH)||Ag(t,"@@iterator")||ni[Rp(t)]},_H=kt.TypeError,Mx=function(t,e,n){var r,o;sr(t);try{if(!(r=Ag(t,"return"))){if(e==="throw")throw n;return n}r=Hn(r,t)}catch(i){o=!0,r=i}if(e==="throw")throw n;if(o)throw r;return sr(r),n},TH=kt.TypeError,K0=function(t,e){this.stopped=t,this.result=e},zx=K0.prototype,PH=function(t,e,n){var r,o,i,a,u,s,l,c=n&&n.that,f=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),d=!(!n||!n.INTERRUPTED),y=l5(e,c),g=function(m){return r&&Mx(r,"normal",m),new K0(!0,m)},v=function(m){return f?(sr(m),d?y(m[0],m[1],g):y(m[0],m[1])):d?y(m,g):y(m)};if(p)r=t;else{if(!(o=Rx(t)))throw TH(E4(t)+" is not iterable");if(function(m){return m!==void 0&&(ni.Array===m||AH[SH]===m)}(o)){for(i=0,a=Ip(t);a>i;i++)if((u=v(t[i]))&&Id(zx,u))return u;return new K0(!1)}r=function(m,h){var b=arguments.length<2?Rx(m):h;if(s5(b))return sr(Hn(b,m));throw _H(E4(m)+" is not iterable")}(t,o)}for(s=r.next;!(l=Hn(s,r)).done;){try{u=v(l.value)}catch(m){Mx(r,"throw",m)}if(typeof u=="object"&&u&&Id(zx,u))return u}return new K0(!1)},jH=kt.String,Ld=function(t){if(Rp(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return jH(t)},NH=function(t,e){return t===void 0?arguments.length<2?"":e:Ld(t)},IH=!Kn(function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",Zr(1,7)),t.stack!==7)}),LH=_n("toStringTag"),_g=kt.Error,RH=[].push,Rd=function(t,e){var n,r=arguments.length>2?arguments[2]:void 0,o=Id(Ym,this);Bg?n=Bg(new _g(void 0),o?kg(this):Ym):(n=o?this:ai(Ym),jn(n,LH,"Error")),jn(n,"message",NH(e,"")),IH&&jn(n,"stack",CH(n.stack,1)),xH(n,r);var i=[];return PH(t,RH,{that:i}),jn(n,"errors",i),n};Bg?Bg(Rd,_g):function(t,e){for(var n=pH(e),r=Ia.f,o=L1.f,i=0;i<n.length;i++){var a=n[i];Vt(t,a)||r(t,a,o(e,a))}}(Rd,_g);var Ym=Rd.prototype=ai(_g.prototype,{constructor:Zr(1,Rd),message:Zr(1,""),name:Zr(1,"AggregateError")});Yo({global:!0},{AggregateError:Rd});var MH=ge(Function.toString);sn(na.inspectSource)||(na.inspectSource=function(t){return MH(t)});var Tg,sd,Pg,xP=na.inspectSource,$x=kt.WeakMap,zH=sn($x)&&/native code/.test(xP($x)),O4=kt.TypeError,$H=kt.WeakMap;if(zH||na.state){var Xa=na.state||(na.state=new $H),HH=ge(Xa.get),Hx=ge(Xa.has),VH=ge(Xa.set);Tg=function(t,e){if(Hx(Xa,t))throw new O4("Object already initialized");return e.facade=t,VH(Xa,t,e),e},sd=function(t){return HH(Xa,t)||{}},Pg=function(t){return Hx(Xa,t)}}else{var Os=R1("state");Lp[Os]=!0,Tg=function(t,e){if(Vt(t,Os))throw new O4("Object already initialized");return e.facade=t,jn(t,Os,e),e},sd=function(t){return Vt(t,Os)?t[Os]:{}},Pg=function(t){return Vt(t,Os)}}var Xi,Vx,Ux,lc={set:Tg,get:sd,has:Pg,enforce:function(t){return Pg(t)?sd(t):Tg(t,{})},getterFor:function(t){return function(e){var n;if(!nr(e)||(n=sd(e)).type!==t)throw O4("Incompatible receiver, "+t+" required");return n}}},SP=Function.prototype,UH=Un&&Object.getOwnPropertyDescriptor,Xm=Vt(SP,"name"),WH={EXISTS:Xm,PROPER:Xm&&(function(){}).name==="something",CONFIGURABLE:Xm&&(!Un||Un&&UH(SP,"name").configurable)},Fl=function(t,e,n,r){r&&r.enumerable?t[e]=n:jn(t,e,n)},k4=_n("iterator"),AP=!1;[].keys&&("next"in(Ux=[].keys())?(Vx=kg(kg(Ux)))!==Object.prototype&&(Xi=Vx):AP=!0);var GH=Xi==null||Kn(function(){var t={};return Xi[k4].call(t)!==t});Xi=GH?{}:ai(Xi),sn(Xi[k4])||Fl(Xi,k4,function(){return this});var OP={IteratorPrototype:Xi,BUGGY_SAFARI_ITERATORS:AP},qH=p5?{}.toString:function(){return"[object "+Rp(this)+"]"},KH=Ia.f,Wx=_n("toStringTag"),jg=function(t,e,n,r){if(t){var o=n?t:t.prototype;Vt(o,Wx)||KH(o,Wx,{configurable:!0,value:e}),r&&!p5&&jn(o,"toString",qH)}},YH=OP.IteratorPrototype,XH=function(){return this},ZH=WH.PROPER,Ih=OP.BUGGY_SAFARI_ITERATORS,Zm=_n("iterator"),JH=function(){return this},kP=function(t,e,n,r,o,i,a){(function(m,h,b,w){var E=h+" Iterator";m.prototype=ai(YH,{next:Zr(+!w,b)}),jg(m,E,!1,!0),ni[E]=XH})(n,e,r);var u,s,l,c=function(m){if(m===o&&g)return g;if(!Ih&&m in d)return d[m];switch(m){case"keys":case"values":case"entries":return function(){return new n(this,m)}}return function(){return new n(this)}},f=e+" Iterator",p=!1,d=t.prototype,y=d[Zm]||d["@@iterator"]||o&&d[o],g=!Ih&&y||c(o),v=e=="Array"&&d.entries||y;if(v&&(u=kg(v.call(new t)))!==Object.prototype&&u.next&&(jg(u,f,!0,!0),ni[f]=JH),ZH&&o=="values"&&y&&y.name!=="values"&&(p=!0,g=function(){return Hn(y,this)}),o)if(s={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(l in s)(Ih||p||!(l in d))&&Fl(d,l,s[l]);else Yo({target:e,proto:!0,forced:Ih||p},s);return a&&d[Zm]!==g&&Fl(d,Zm,g,{name:o}),ni[e]=g,s},QH=lc.set,tV=lc.getterFor("Array Iterator");kP(Array,"Array",function(t,e){QH(this,{type:"Array Iterator",target:No(t),index:0,kind:e})},function(){var t=tV(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}},"values"),ni.Arguments=ni.Array;var eV=ge("".charAt),Gx=ge("".charCodeAt),nV=ge("".slice),qx=function(t){return function(e,n){var r,o,i=Ld(a5(e)),a=c5(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=Gx(i,a))<55296||r>56319||a+1===u||(o=Gx(i,a+1))<56320||o>57343?t?eV(i,a):r:t?nV(i,a,a+2):o-56320+(r-55296<<10)+65536}},rV={codeAt:qx(!1),charAt:qx(!0)}.charAt,oV=lc.set,iV=lc.getterFor("String Iterator");kP(String,"String",function(t){oV(this,{type:"String Iterator",string:Ld(t),index:0})},function(){var t,e=iV(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=rV(n,r),e.index+=t.length,{value:t,done:!1})});var aV=er.AggregateError,Kx=_n("toStringTag");for(var Jm 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 Yx=kt[Jm],Qm=Yx&&Yx.prototype;Qm&&Rp(Qm)!==Kx&&jn(Qm,Kx,Jm),ni[Jm]=ni.Array}var wi,Y0,uV=aV,Lh=function(t){return t&&t.Math==Math&&t},Et=Lh(typeof globalThis=="object"&&globalThis)||Lh(typeof window=="object"&&window)||Lh(typeof self=="object"&&self)||Lh(typeof se=="object"&&se)||function(){return this}()||Function("return this")(),cn=function(t){try{return!!t()}catch{return!0}},ko=!cn(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Pc=Function.prototype.call,un=Pc.bind?Pc.bind(Pc):function(){return Pc.apply(Pc,arguments)},Xx={}.propertyIsEnumerable,Zx=Object.getOwnPropertyDescriptor,sV=Zx&&!Xx.call({1:2},1)?function(t){var e=Zx(this,t);return!!e&&e.enumerable}:Xx,lV={f:sV},ra=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},BP=Function.prototype,B4=BP.bind,F4=BP.call,cV=B4&&B4.bind(F4),ie=B4?function(t){return t&&cV(F4,t)}:function(t){return t&&function(){return F4.apply(t,arguments)}},fV=ie({}.toString),dV=ie("".slice),Ou=function(t){return dV(fV(t),8,-1)},ty=Et.Object,pV=ie("".split),FP=cn(function(){return!ty("z").propertyIsEnumerable(0)})?function(t){return Ou(t)=="String"?pV(t,""):ty(t)}:ty,hV=Et.TypeError,M1=function(t){if(t==null)throw hV("Can't call method on "+t);return t},cc=function(t){return FP(M1(t))},Ge=function(t){return typeof t=="function"},Wr=function(t){return typeof t=="object"?t!==null:Ge(t)},gV=function(t){return Ge(t)?t:void 0},Mp=function(t,e){return arguments.length<2?gV(Et[t]):Et[t]&&Et[t][e]},Ng=ie({}.isPrototypeOf),ey=Mp("navigator","userAgent")||"",Jx=Et.process,Qx=Et.Deno,tS=Jx&&Jx.versions||Qx&&Qx.version,eS=tS&&tS.v8;eS&&(Y0=(wi=eS.split("."))[0]>0&&wi[0]<4?1:+(wi[0]+wi[1])),!Y0&&ey&&(!(wi=ey.match(/Edge\/(\d+)/))||wi[1]>=74)&&(wi=ey.match(/Chrome\/(\d+)/))&&(Y0=+wi[1]);var nS=Y0,_4=!!Object.getOwnPropertySymbols&&!cn(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&nS&&nS<41}),h5=_4&&!Symbol.sham&&typeof Symbol.iterator=="symbol",vV=Et.Object,T4=h5?function(t){return typeof t=="symbol"}:function(t){var e=Mp("Symbol");return Ge(e)&&Ng(e.prototype,vV(t))},mV=Et.String,P4=function(t){try{return mV(t)}catch{return"Object"}},yV=Et.TypeError,g5=function(t){if(Ge(t))return t;throw yV(P4(t)+" is not a function")},Md=function(t,e){var n=t[e];return n==null?void 0:g5(n)},bV=Et.TypeError,wV=Object.defineProperty,v5=function(t,e){try{wV(Et,t,{value:e,configurable:!0,writable:!0})}catch{Et[t]=e}return e},oa=Et["__core-js_shared__"]||v5("__core-js_shared__",{}),m5=cs(function(t){(t.exports=function(e,n){return oa[e]||(oa[e]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),EV=Et.Object,y5=function(t){return EV(M1(t))},DV=ie({}.hasOwnProperty),Wn=Object.hasOwn||function(t,e){return DV(y5(t),e)},CV=0,xV=Math.random(),SV=ie(1 .toString),_P=function(t){return"Symbol("+(t===void 0?"":t)+")_"+SV(++CV+xV,36)},jc=m5("wks"),ku=Et.Symbol,rS=ku&&ku.for,AV=h5?ku:ku&&ku.withoutSetter||_P,Ln=function(t){if(!Wn(jc,t)||!_4&&typeof jc[t]!="string"){var e="Symbol."+t;_4&&Wn(ku,t)?jc[t]=ku[t]:jc[t]=h5&&rS?rS(e):AV(e)}return jc[t]},OV=Et.TypeError,kV=Ln("toPrimitive"),BV=function(t,e){if(!Wr(t)||T4(t))return t;var n,r=Md(t,kV);if(r){if(e===void 0&&(e="default"),n=un(r,t,e),!Wr(n)||T4(n))return n;throw OV("Can't convert object to primitive value")}return e===void 0&&(e="number"),function(o,i){var a,u;if(i==="string"&&Ge(a=o.toString)&&!Wr(u=un(a,o))||Ge(a=o.valueOf)&&!Wr(u=un(a,o))||i!=="string"&&Ge(a=o.toString)&&!Wr(u=un(a,o)))return u;throw bV("Can't convert object to primitive value")}(t,e)},b5=function(t){var e=BV(t,"string");return T4(e)?e:e+""},j4=Et.document,FV=Wr(j4)&&Wr(j4.createElement),w5=function(t){return FV?j4.createElement(t):{}},TP=!ko&&!cn(function(){return Object.defineProperty(w5("div"),"a",{get:function(){return 7}}).a!=7}),oS=Object.getOwnPropertyDescriptor,_V=ko?oS:function(t,e){if(t=cc(t),e=b5(e),TP)try{return oS(t,e)}catch{}if(Wn(t,e))return ra(!un(lV.f,t,e),t[e])},E5={f:_V},TV=Et.String,PV=Et.TypeError,lr=function(t){if(Wr(t))return t;throw PV(TV(t)+" is not an object")},jV=Et.TypeError,iS=Object.defineProperty,NV=ko?iS:function(t,e,n){if(lr(t),e=b5(e),lr(n),TP)try{return iS(t,e,n)}catch{}if("get"in n||"set"in n)throw jV("Accessors not supported");return"value"in n&&(t[e]=n.value),t},fc={f:NV},In=ko?function(t,e,n){return fc.f(t,e,ra(1,n))}:function(t,e,n){return t[e]=n,t},IV=ie(Function.toString);Ge(oa.inspectSource)||(oa.inspectSource=function(t){return IV(t)});var Ig,ld,Lg,D5=oa.inspectSource,aS=Et.WeakMap,LV=Ge(aS)&&/native code/.test(D5(aS)),uS=m5("keys"),C5=function(t){return uS[t]||(uS[t]=_P(t))},x5={},N4=Et.TypeError,RV=Et.WeakMap;if(LV||oa.state){var Za=oa.state||(oa.state=new RV),MV=ie(Za.get),sS=ie(Za.has),zV=ie(Za.set);Ig=function(t,e){if(sS(Za,t))throw new N4("Object already initialized");return e.facade=t,zV(Za,t,e),e},ld=function(t){return MV(Za,t)||{}},Lg=function(t){return sS(Za,t)}}else{var ks=C5("state");x5[ks]=!0,Ig=function(t,e){if(Wn(t,ks))throw new N4("Object already initialized");return e.facade=t,In(t,ks,e),e},ld=function(t){return Wn(t,ks)?t[ks]:{}},Lg=function(t){return Wn(t,ks)}}var Yu={set:Ig,get:ld,has:Lg,enforce:function(t){return Lg(t)?ld(t):Ig(t,{})},getterFor:function(t){return function(e){var n;if(!Wr(e)||(n=ld(e)).type!==t)throw N4("Incompatible receiver, "+t+" required");return n}}},PP=Function.prototype,$V=ko&&Object.getOwnPropertyDescriptor,ny=Wn(PP,"name"),S5={EXISTS:ny,PROPER:ny&&(function(){}).name==="something",CONFIGURABLE:ny&&(!ko||ko&&$V(PP,"name").configurable)},ia=cs(function(t){var e=S5.CONFIGURABLE,n=Yu.get,r=Yu.enforce,o=String(String).split("String");(t.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,p=!!s&&!!s.noTargetGet,d=s&&s.name!==void 0?s.name:a;Ge(u)&&(String(d).slice(0,7)==="Symbol("&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Wn(u,"name")||e&&u.name!==d)&&In(u,"name",d),(l=r(u)).source||(l.source=o.join(typeof d=="string"?d:""))),i!==Et?(c?!p&&i[a]&&(f=!0):delete i[a],f?i[a]=u:In(i,a,u)):f?i[a]=u:v5(a,u)})(Function.prototype,"toString",function(){return Ge(this)&&n(this).source||D5(this)})}),HV=Math.ceil,VV=Math.floor,A5=function(t){var e=+t;return e!=e||e===0?0:(e>0?VV:HV)(e)},UV=Math.max,WV=Math.min,I4=function(t,e){var n=A5(t);return n<0?UV(n+e,0):WV(n,e)},GV=Math.min,jP=function(t){return t>0?GV(A5(t),9007199254740991):0},z1=function(t){return jP(t.length)},lS=function(t){return function(e,n,r){var o,i=cc(e),a=z1(i),u=I4(r,a);if(t&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===n)return t||u||0;return!t&&-1}},qV={includes:lS(!0),indexOf:lS(!1)}.indexOf,cS=ie([].push),NP=function(t,e){var n,r=cc(t),o=0,i=[];for(n in r)!Wn(x5,n)&&Wn(r,n)&&cS(i,n);for(;e.length>o;)Wn(r,n=e[o++])&&(~qV(i,n)||cS(i,n));return i},Rg=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],KV=Rg.concat("length","prototype"),YV=Object.getOwnPropertyNames||function(t){return NP(t,KV)},XV={f:YV},ZV={f:Object.getOwnPropertySymbols},JV=ie([].concat),QV=Mp("Reflect","ownKeys")||function(t){var e=XV.f(lr(t)),n=ZV.f;return n?JV(e,n(t)):e},IP=function(t,e){for(var n=QV(e),r=fc.f,o=E5.f,i=0;i<n.length;i++){var a=n[i];Wn(t,a)||r(t,a,o(e,a))}},tU=/#|\.prototype\./,zp=function(t,e){var n=nU[eU(t)];return n==oU||n!=rU&&(Ge(e)?cn(e):!!e)},eU=zp.normalize=function(t){return String(t).replace(tU,".").toLowerCase()},nU=zp.data={},rU=zp.NATIVE="N",oU=zp.POLYFILL="P",iU=zp,aU=E5.f,$p=function(t,e){var n,r,o,i,a,u=t.target,s=t.global,l=t.stat;if(n=s?Et:l?Et[u]||v5(u,{}):(Et[u]||{}).prototype)for(r in e){if(i=e[r],o=t.noTargetGet?(a=aU(n,r))&&a.value:n[r],!iU(s?r:u+(l?".":"#")+r,t.forced)&&o!==void 0){if(typeof i==typeof o)continue;IP(i,o)}(t.sham||o&&o.sham)&&In(i,"sham",!0),ia(n,r,i,t)}},LP={};LP[Ln("toStringTag")]="z";var Rh,O5=String(LP)==="[object z]",uU=Ln("toStringTag"),sU=Et.Object,lU=Ou(function(){return arguments}())=="Arguments",$1=O5?Ou:function(t){var e,n,r;return t===void 0?"Undefined":t===null?"Null":typeof(n=function(o,i){try{return o[i]}catch{}}(e=sU(t),uU))=="string"?n:lU?Ou(e):(r=Ou(e))=="Object"&&Ge(e.callee)?"Arguments":r},cU=Et.String,Bu=function(t){if($1(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return cU(t)},fU=function(){var t=lr(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},k5=Et.RegExp,B5=cn(function(){var t=k5("a","y");return t.lastIndex=2,t.exec("abcd")!=null}),dU=B5||cn(function(){return!k5("a","y").sticky}),pU=B5||cn(function(){var t=k5("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),hU={BROKEN_CARET:pU,MISSED_STICKY:dU,UNSUPPORTED_Y:B5},gU=Object.keys||function(t){return NP(t,Rg)},vU=ko?Object.defineProperties:function(t,e){lr(t);for(var n,r=cc(e),o=gU(e),i=o.length,a=0;i>a;)fc.f(t,n=o[a++],r[n]);return t},mU=Mp("document","documentElement"),RP=C5("IE_PROTO"),ry=function(){},MP=function(t){return"<script>"+t+"<\/script>"},fS=function(t){t.write(MP("")),t.close();var e=t.parentWindow.Object;return t=null,e},X0=function(){try{Rh=new ActiveXObject("htmlfile")}catch{}var t,e;X0=typeof document<"u"?document.domain&&Rh?fS(Rh):((e=w5("iframe")).style.display="none",mU.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(MP("document.F=Object")),t.close(),t.F):fS(Rh);for(var n=Rg.length;n--;)delete X0.prototype[Rg[n]];return X0()};x5[RP]=!0;var dS,oy,Hp=Object.create||function(t,e){var n;return t!==null?(ry.prototype=lr(t),n=new ry,ry.prototype=null,n[RP]=t):n=X0(),e===void 0?n:vU(n,e)},yU=Et.RegExp,bU=cn(function(){var t=yU(".","s");return!(t.dotAll&&t.exec(`
  4. `)&&t.flags==="s")}),wU=Et.RegExp,EU=cn(function(){var t=wU("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),DU=Yu.get,CU=m5("native-string-replace",String.prototype.replace),Mg=RegExp.prototype.exec,L4=Mg,xU=ie("".charAt),SU=ie("".indexOf),AU=ie("".replace),iy=ie("".slice),ay=(oy=/b*/g,un(Mg,dS=/a/,"a"),un(Mg,oy,"a"),dS.lastIndex!==0||oy.lastIndex!==0),pS=hU.BROKEN_CARET,uy=/()??/.exec("")[1]!==void 0;(ay||uy||pS||bU||EU)&&(L4=function(t){var e,n,r,o,i,a,u,s=this,l=DU(s),c=Bu(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=un(L4,f,c),s.lastIndex=f.lastIndex,e;var p=l.groups,d=pS&&s.sticky,y=un(fU,s),g=s.source,v=0,m=c;if(d&&(y=AU(y,"y",""),SU(y,"g")===-1&&(y+="g"),m=iy(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&xU(c,s.lastIndex-1)!==`
  5. `)&&(g="(?: "+g+")",m=" "+m,v++),n=new RegExp("^(?:"+g+")",y)),uy&&(n=new RegExp("^"+g+"$(?!\\s)",y)),ay&&(r=s.lastIndex),o=un(Mg,d?n:s,m),d?o?(o.input=iy(o.input,v),o[0]=iy(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:ay&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),uy&&o&&o.length>1&&un(CU,o[0],n,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&p)for(o.groups=a=Hp(null),i=0;i<p.length;i++)a[(u=p[i])[0]]=o[u[1]];return o});var zg=L4;$p({target:"RegExp",proto:!0,forced:/./.exec!==zg},{exec:zg});var OU=Ln("species"),sy=RegExp.prototype,kU=ie("".charAt),hS=ie("".charCodeAt),BU=ie("".slice),gS=function(t){return function(e,n){var r,o,i=Bu(M1(e)),a=A5(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=hS(i,a))<55296||r>56319||a+1===u||(o=hS(i,a+1))<56320||o>57343?t?kU(i,a):r:t?BU(i,a,a+2):o-56320+(r-55296<<10)+65536}},zP={codeAt:gS(!1),charAt:gS(!0)},FU=zP.charAt,_U=function(t,e,n){return e+(n?FU(t,e).length:1)},TU=Et.TypeError,vS=function(t,e){var n=t.exec;if(Ge(n)){var r=un(n,t,e);return r!==null&&lr(r),r}if(Ou(t)==="RegExp")return un(zg,t,e);throw TU("RegExp#exec called on incompatible receiver")};(function(t,e,n,r){var o=Ln(t),i=!cn(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),a=i&&!cn(function(){var l=!1,c=/a/;return t==="split"&&((c={}).constructor={},c.constructor[OU]=function(){return c},c.flags="",c[o]=/./[o]),c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||n){var u=ie(/./[o]),s=e(o,""[t],function(l,c,f,p,d){var y=ie(l),g=c.exec;return g===zg||g===sy.exec?i&&!d?{done:!0,value:u(c,f,p)}:{done:!0,value:y(f,c,p)}:{done:!1}});ia(String.prototype,t,s[0]),ia(sy,o,s[1])}r&&In(sy[o],"sham",!0)})("match",function(t,e,n){return[function(r){var o=M1(this),i=r==null?void 0:Md(r,t);return i?un(i,r,o):new RegExp(r)[t](Bu(o))},function(r){var o=lr(this),i=Bu(r),a=n(e,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=Bu(s[0]);l[c]=f,f===""&&(o.lastIndex=_U(i,jP(o.lastIndex),u)),c++}return c===0?null:l}]}),$p({global:!0},{globalThis:Et});var PU=!cn(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),mS=C5("IE_PROTO"),R4=Et.Object,jU=R4.prototype,zd=PU?R4.getPrototypeOf:function(t){var e=y5(t);if(Wn(e,mS))return e[mS];var n=e.constructor;return Ge(n)&&e instanceof n?n.prototype:e instanceof R4?jU:null},NU=Et.String,IU=Et.TypeError,_l=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=ie(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch{}return function(r,o){return lr(r),function(i){if(typeof i=="object"||Ge(i))return i;throw IU("Can't set "+NU(i)+" as a prototype")}(o),e?t(r,o):r.__proto__=o,r}}():void 0),LU=Et.Array,RU=Math.max,MU=ie("".replace),zU=ie("".split),$U=ie([].join),M4=String(Error("zxcasd").stack),$P=/\n\s*at [^:]*:[^\n]*/,HU=$P.test(M4),VU=/@[^\n]*\n/.test(M4)&&!/zxcasd/.test(M4),UU=function(t,e){if(typeof t!="string")return t;if(HU)for(;e--;)t=MU(t,$P,"");else if(VU)return $U(function(n,r,o){for(var i,a,u,s,l=z1(n),c=I4(r,l),f=I4(o===void 0?l:o,l),p=LU(RU(f-c,0)),d=0;c<f;c++,d++)i=p,a=d,u=n[c],s=void 0,(s=b5(a))in i?fc.f(i,s,ra(0,u)):i[s]=u;return p.length=d,p}(zU(t,`
  6. `),e),`
  7. `);return t},WU=function(t,e){Wr(e)&&"cause"in e&&In(t,"cause",e.cause)},yS=ie(ie.bind),HP=function(t,e){return g5(t),e===void 0?t:yS?yS(t,e):function(){return t.apply(e,arguments)}},Tl={},GU=Ln("iterator"),qU=Array.prototype,KU=Ln("iterator"),bS=function(t){if(t!=null)return Md(t,KU)||Md(t,"@@iterator")||Tl[$1(t)]},YU=Et.TypeError,wS=function(t,e,n){var r,o;lr(t);try{if(!(r=Md(t,"return"))){if(e==="throw")throw n;return n}r=un(r,t)}catch(i){o=!0,r=i}if(e==="throw")throw n;if(o)throw r;return lr(r),n},XU=Et.TypeError,Z0=function(t,e){this.stopped=t,this.result=e},ES=Z0.prototype,ZU=function(t,e,n){var r,o,i,a,u,s,l,c=n&&n.that,f=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),d=!(!n||!n.INTERRUPTED),y=HP(e,c),g=function(m){return r&&wS(r,"normal",m),new Z0(!0,m)},v=function(m){return f?(lr(m),d?y(m[0],m[1],g):y(m[0],m[1])):d?y(m,g):y(m)};if(p)r=t;else{if(!(o=bS(t)))throw XU(P4(t)+" is not iterable");if(function(m){return m!==void 0&&(Tl.Array===m||qU[GU]===m)}(o)){for(i=0,a=z1(t);a>i;i++)if((u=v(t[i]))&&Ng(ES,u))return u;return new Z0(!1)}r=function(m,h){var b=arguments.length<2?bS(m):h;if(g5(b))return lr(un(b,m));throw YU(P4(m)+" is not iterable")}(t,o)}for(s=r.next;!(l=un(s,r)).done;){try{u=v(l.value)}catch(m){wS(r,"throw",m)}if(typeof u=="object"&&u&&Ng(ES,u))return u}return new Z0(!1)},JU=function(t,e){return t===void 0?arguments.length<2?"":e:Bu(t)},QU=!cn(function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",ra(1,7)),t.stack!==7)}),tW=Ln("toStringTag"),$g=Et.Error,eW=[].push,$d=function(t,e){var n,r=arguments.length>2?arguments[2]:void 0,o=Ng(ly,this);_l?n=_l(new $g(void 0),o?zd(this):ly):(n=o?this:Hp(ly),In(n,tW,"Error")),In(n,"message",JU(e,"")),QU&&In(n,"stack",UU(n.stack,1)),WU(n,r);var i=[];return ZU(t,eW,{that:i}),In(n,"errors",i),n};_l?_l($d,$g):IP($d,$g);var ly=$d.prototype=Hp($g.prototype,{constructor:ra(1,$d),message:ra(1,""),name:ra(1,"AggregateError")});$p({global:!0},{AggregateError:$d});var z4=Ln("unscopables"),$4=Array.prototype;$4[z4]==null&&fc.f($4,z4,{configurable:!0,value:Hp(null)});var Fu,DS,CS,cy=function(t){$4[z4][t]=!0},H4=Ln("iterator"),VP=!1;[].keys&&("next"in(CS=[].keys())?(DS=zd(zd(CS)))!==Object.prototype&&(Fu=DS):VP=!0);var nW=Fu==null||cn(function(){var t={};return Fu[H4].call(t)!==t});nW&&(Fu={}),Ge(Fu[H4])||ia(Fu,H4,function(){return this});var F5={IteratorPrototype:Fu,BUGGY_SAFARI_ITERATORS:VP},rW=fc.f,xS=Ln("toStringTag"),SS=function(t,e,n){t&&!Wn(t=n?t:t.prototype,xS)&&rW(t,xS,{configurable:!0,value:e})},oW=F5.IteratorPrototype,iW=function(){return this},aW=S5.PROPER,uW=S5.CONFIGURABLE,AS=F5.IteratorPrototype,Mh=F5.BUGGY_SAFARI_ITERATORS,Nc=Ln("iterator"),sW=function(){return this},UP=function(t,e,n,r,o,i,a){(function(m,h,b,w){var E=h+" Iterator";m.prototype=Hp(oW,{next:ra(+!w,b)}),SS(m,E,!1),Tl[E]=iW})(n,e,r);var u,s,l,c=function(m){if(m===o&&g)return g;if(!Mh&&m in d)return d[m];switch(m){case"keys":case"values":case"entries":return function(){return new n(this,m)}}return function(){return new n(this)}},f=e+" Iterator",p=!1,d=t.prototype,y=d[Nc]||d["@@iterator"]||o&&d[o],g=!Mh&&y||c(o),v=e=="Array"&&d.entries||y;if(v&&(u=zd(v.call(new t)))!==Object.prototype&&u.next&&(zd(u)!==AS&&(_l?_l(u,AS):Ge(u[Nc])||ia(u,Nc,sW)),SS(u,f,!0)),aW&&o=="values"&&y&&y.name!=="values"&&(uW?In(d,"name","values"):(p=!0,g=function(){return un(y,this)})),o)if(s={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(l in s)(Mh||p||!(l in d))&&ia(d,l,s[l]);else $p({target:e,proto:!0,forced:Mh||p},s);return d[Nc]!==g&&ia(d,Nc,g,{name:o}),Tl[e]=g,s},lW=Yu.set,cW=Yu.getterFor("Array Iterator"),Jf=UP(Array,"Array",function(t,e){lW(this,{type:"Array Iterator",target:cc(t),index:0,kind:e})},function(){var t=cW(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}},"values");Tl.Arguments=Tl.Array,cy("keys"),cy("values"),cy("entries");var fW=zP.charAt,dW=Yu.set,pW=Yu.getterFor("String Iterator");UP(String,"String",function(t){dW(this,{type:"String Iterator",string:Bu(t),index:0})},function(){var t,e=pW(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=fW(n,r),e.index+=t.length,{value:t,done:!1})});var fy,Hg={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},dy=w5("span").classList,OS=dy&&dy.constructor&&dy.constructor.prototype,WP=OS===Object.prototype?void 0:OS,py=Ln("iterator"),kS=Ln("toStringTag"),hy=Jf.values,GP=function(t,e){if(t){if(t[py]!==hy)try{In(t,py,hy)}catch{t[py]=hy}if(t[kS]||In(t,kS,e),Hg[e]){for(var n in Jf)if(t[n]!==Jf[n])try{In(t,n,Jf[n])}catch{t[n]=Jf[n]}}}};for(var gy in Hg)GP(Et[gy]&&Et[gy].prototype,gy);GP(WP,"DOMTokenList"),typeof global>"u"?("ActiveXObject"in window&&console.error(`抱歉,wangEditor V5+ 版本开始,不在支持 IE 浏览器
  8. Sorry, wangEditor V5+ versions do not support IE browser.`),BS(),FS()):global&&(!((fy=global.navigator)===null||fy===void 0)&&fy.userAgent.match("QQBrowser"))&&(BS(),FS());function BS(){typeof globalThis>"u"&&(window.globalThis=window)}function FS(){uV===void 0&&(window.AggregateError=function(t,e){var n=new Error(e);return n.errors=t,n})}var _S,Vg=Array.isArray||function(t){return Su(t)=="Array"},qP=function(){},hW=[],KP=uc("Reflect","construct"),_5=/^\s*(?:class|function)\b/,gW=ge(_5.exec),vW=!_5.exec(qP),Ic=function(t){if(!sn(t))return!1;try{return KP(qP,hW,t),!0}catch{return!1}},mW=!KP||Kn(function(){var t;return Ic(Ic.call)||!Ic(Object)||!Ic(function(){t=!0})||t})?function(t){if(!sn(t))return!1;switch(Rp(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return vW||!!gW(_5,xP(t))}:Ic,yW=_n("species"),TS=kt.Array,YP=function(t,e){return new(function(n){var r;return Vg(n)&&(r=n.constructor,(mW(r)&&(r===TS||Vg(r.prototype))||nr(r)&&(r=r[yW])===null)&&(r=void 0)),r===void 0?TS:r}(t))(e===0?0:e)},bW=_n("species"),XP=_n("isConcatSpreadable"),PS=kt.TypeError,wW=Sg>=51||!Kn(function(){var t=[];return t[XP]=!1,t.concat()[0]!==t}),EW=(_S="concat",Sg>=51||!Kn(function(){var t=[];return(t.constructor={})[bW]=function(){return{foo:1}},t[_S](Boolean).foo!==1})),DW=function(t){if(!nr(t))return!1;var e=t[XP];return e!==void 0?!!e:Vg(t)};Yo({target:"Array",proto:!0,forced:!wW||!EW},{concat:function(t){var e,n,r,o,i,a=jp(this),u=YP(a,0),s=0;for(e=-1,r=arguments.length;e<r;e++)if(DW(i=e===-1?a:arguments[e])){if(s+(o=Ip(i))>9007199254740991)throw PS("Maximum allowed index exceeded");for(n=0;n<o;n++,s++)n in i&&S4(u,s,i[n])}else{if(s>=9007199254740991)throw PS("Maximum allowed index exceeded");S4(u,s++,i)}return u.length=s,u}});var jS=f5.f,NS=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],ZP={f:function(t){return NS&&Su(t)=="Window"?function(e){try{return jS(e)}catch{return EP(NS)}}(t):jS(No(t))}},CW=ge([].slice),T5={f:_n},xW=Ia.f,je=function(t){var e=er.Symbol||(er.Symbol={});Vt(e,t)||xW(e,t,{value:T5.f(t)})},IS=ge([].push),Ei=function(t){var e=t==1,n=t==2,r=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var p,d,y=jp(s),g=gP(y),v=l5(l,c),m=Ip(g),h=0,b=f||YP,w=e?b(s,m):n||a?b(s,0):void 0;m>h;h++)if((u||h in g)&&(d=v(p=g[h],h,y),t))if(e)w[h]=d;else if(d)switch(t){case 3:return!0;case 5:return p;case 6:return h;case 2:IS(w,p)}else switch(t){case 4:return!1;case 7:IS(w,p)}return i?-1:r||o?o:w}},H1={forEach:Ei(0),map:Ei(1),filter:Ei(2),some:Ei(3),every:Ei(4),find:Ei(5),findIndex:Ei(6),filterReject:Ei(7)}.forEach,zn=R1("hidden"),LS=_n("toPrimitive"),SW=lc.set,RS=lc.getterFor("Symbol"),Kr=Object.prototype,Gi=kt.Symbol,Zi=Gi&&Gi.prototype,MS=kt.TypeError,vy=kt.QObject,Lc=uc("JSON","stringify"),JP=L1.f,qi=Ia.f,QP=ZP.f,AW=i5.f,tj=ge([].push),ui=fs("symbols"),Vp=fs("op-symbols"),my=fs("string-to-symbol-registry"),yy=fs("symbol-to-string-registry"),OW=fs("wks"),by=!vy||!vy.prototype||!vy.prototype.findChild,V4=Un&&Kn(function(){return ai(qi({},"a",{get:function(){return qi(this,"a",{value:7}).a}})).a!=7})?function(t,e,n){var r=JP(Kr,e);r&&delete Kr[e],qi(t,e,n),r&&t!==Kr&&qi(Kr,e,r)}:qi,wy=function(t,e){var n=ui[t]=ai(Zi);return SW(n,{type:"Symbol",tag:t,description:e}),Un||(n.description=e),n},Ug=function(t,e,n){t===Kr&&Ug(Vp,e,n),sr(t);var r=sc(e);return sr(n),Vt(ui,r)?(n.enumerable?(Vt(t,zn)&&t[zn][r]&&(t[zn][r]=!1),n=ai(n,{enumerable:Zr(0,!1)})):(Vt(t,zn)||qi(t,zn,Zr(1,{})),t[zn][r]=!0),V4(t,r,n)):qi(t,r,n)},zS=function(t,e){sr(t);var n=No(e),r=d5(n).concat(U4(n));return H1(r,function(o){Un&&!Hn(ej,n,o)||Ug(t,o,n[o])}),t},ej=function(t){var e=sc(t),n=Hn(AW,this,e);return!(this===Kr&&Vt(ui,e)&&!Vt(Vp,e))&&(!(n||!Vt(this,e)||!Vt(ui,e)||Vt(this,zn)&&this[zn][e])||n)},$S=function(t,e){var n=No(t),r=sc(e);if(n!==Kr||!Vt(ui,r)||Vt(Vp,r)){var o=JP(n,r);return!o||!Vt(ui,r)||Vt(n,zn)&&n[zn][r]||(o.enumerable=!0),o}},HS=function(t){var e=QP(No(t)),n=[];return H1(e,function(r){Vt(ui,r)||Vt(Lp,r)||tj(n,r)}),n},U4=function(t){var e=t===Kr,n=QP(e?Vp:No(t)),r=[];return H1(n,function(o){!Vt(ui,o)||e&&!Vt(Kr,o)||tj(r,ui[o])}),r};if(go||(Zi=(Gi=function(){if(Id(Zi,this))throw MS("Symbol is not a constructor");var t=arguments.length&&arguments[0]!==void 0?Ld(arguments[0]):void 0,e=Og(t),n=function(r){this===Kr&&Hn(n,Vp,r),Vt(this,zn)&&Vt(this[zn],e)&&(this[zn][e]=!1),V4(this,e,Zr(1,r))};return Un&&by&&V4(Kr,e,{configurable:!0,set:n}),wy(e,t)}).prototype,Fl(Zi,"toString",function(){return RS(this).tag}),Fl(Gi,"withoutSetter",function(t){return wy(Og(t),t)}),i5.f=ej,Ia.f=Ug,L1.f=$S,f5.f=ZP.f=HS,G0.f=U4,T5.f=function(t){return wy(_n(t),t)},Un&&qi(Zi,"description",{configurable:!0,get:function(){return RS(this).description}})),Yo({global:!0,wrap:!0,forced:!go,sham:!go},{Symbol:Gi}),H1(d5(OW),function(t){je(t)}),Yo({target:"Symbol",stat:!0,forced:!go},{for:function(t){var e=Ld(t);if(Vt(my,e))return my[e];var n=Gi(e);return my[e]=n,yy[n]=e,n},keyFor:function(t){if(!ml(t))throw MS(t+" is not a symbol");if(Vt(yy,t))return yy[t]},useSetter:function(){by=!0},useSimple:function(){by=!1}}),Yo({target:"Object",stat:!0,forced:!go,sham:!Un},{create:function(t,e){return e===void 0?ai(t):zS(ai(t),e)},defineProperty:Ug,defineProperties:zS,getOwnPropertyDescriptor:$S}),Yo({target:"Object",stat:!0,forced:!go},{getOwnPropertyNames:HS,getOwnPropertySymbols:U4}),Yo({target:"Object",stat:!0,forced:Kn(function(){G0.f(1)})},{getOwnPropertySymbols:function(t){return G0.f(jp(t))}}),Lc){var kW=!go||Kn(function(){var t=Gi();return Lc([t])!="[null]"||Lc({a:t})!="{}"||Lc(Object(t))!="{}"});Yo({target:"JSON",stat:!0,forced:kW},{stringify:function(t,e,n){var r=CW(arguments),o=e;if((nr(e)||t!==void 0)&&!ml(t))return Vg(e)||(e=function(i,a){if(sn(o)&&(a=Hn(o,this,i,a)),!ml(a))return a}),r[1]=e,pP(Lc,null,r)}})}if(!Zi[LS]){var BW=Zi.valueOf;Fl(Zi,LS,function(t){return Hn(BW,this)})}jg(Gi,"Symbol"),Lp[zn]=!0,je("asyncIterator"),je("hasInstance"),je("isConcatSpreadable"),je("iterator"),je("match"),je("matchAll"),je("replace"),je("search"),je("species"),je("split"),je("toPrimitive"),je("toStringTag"),je("unscopables"),jg(kt.JSON,"JSON",!0);var FW=er.Symbol;je("asyncDispose"),je("dispose"),je("matcher"),je("metadata"),je("observable"),je("patternMatch"),je("replaceAll");var zh=FW,_W=T5.f("iterator"),TW=cs(function(t){function e(n){return typeof zh=="function"&&typeof _W=="symbol"?(t.exports=e=function(r){return typeof r},t.exports.default=t.exports,t.exports.__esModule=!0):(t.exports=e=function(r){return r&&typeof zh=="function"&&r.constructor===zh&&r!==zh.prototype?"symbol":typeof r},t.exports.default=t.exports,t.exports.__esModule=!0),e(n)}t.exports=e,t.exports.default=t.exports,t.exports.__esModule=!0}),PW=m$(TW),nj=E5.f,jW=cn(function(){nj(1)});if($p({target:"Object",stat:!0,forced:!ko||jW,sham:!ko},{getOwnPropertyDescriptor:function(t,e){return nj(cc(t),e)}}),(typeof global>"u"?"undefined":PW(global))==="object"){var NW=Object.getOwnPropertyDescriptor(global,"window");global.window&&!NW.set||(global.window=global,global.requestAnimationFrame=function(){},global.navigator={userAgent:""},global.location={hostname:"0.0.0.0",port:0,protocol:"http:"},global.btoa=function(){},global.crypto={getRandomValues:function(t){return nodeCrypto.randomFillSync(t)}}),global.document!=null&&global.document.getElementsByTagName==null&&(global.document.getElementsByTagName=function(){return[]})}/*!
  9. * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
  10. *
  11. * Copyright (c) 2014-2017, Jon Schlinkert.
  12. * Released under the MIT License.
  13. */function VS(t){return Object.prototype.toString.call(t)==="[object Object]"}function On(t){var e,n;return VS(t)!==!1&&((e=t.constructor)===void 0||VS(n=e.prototype)!==!1&&n.hasOwnProperty("isPrototypeOf")!==!1)}function Gr(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+t+(n.length?" "+n.map(function(o){return"'"+o+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Xu(t){return!!t&&!!t[cr]}function Zu(t){return!!t&&(function(e){if(!e||typeof e!="object")return!1;var n=Object.getPrototypeOf(e);if(n===null)return!0;var r=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return r===Object||typeof r=="function"&&Function.toString.call(r)===$W}(t)||Array.isArray(t)||!!t[ZS]||!!t.constructor[ZS]||P5(t)||j5(t))}function Hd(t,e,n){n===void 0&&(n=!1),Pl(t)===0?(n?Object.keys:M5)(t).forEach(function(r){n&&typeof r=="symbol"||e(r,t[r],t)}):t.forEach(function(r,o){return e(o,r,t)})}function Pl(t){var e=t[cr];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:P5(t)?2:j5(t)?3:0}function W4(t,e){return Pl(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function rj(t,e,n){var r=Pl(t);r===2?t.set(e,n):r===3?(t.delete(e),t.add(n)):t[e]=n}function P5(t){return MW&&t instanceof Map}function j5(t){return zW&&t instanceof Set}function lu(t){return t.o||t.t}function N5(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=HW(t);delete e[cr];for(var n=M5(e),r=0;r<n.length;r++){var o=n[r],i=e[o];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(e[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:t[o]})}return Object.create(Object.getPrototypeOf(t),e)}function I5(t,e){return e===void 0&&(e=!1),L5(t)||Xu(t)||!Zu(t)||(Pl(t)>1&&(t.set=t.add=t.clear=t.delete=IW),Object.freeze(t),e&&Hd(t,function(n,r){return I5(r,!0)},!0)),t}function IW(){Gr(2)}function L5(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function ri(t){var e=VW[t];return e||Gr(18,t),e}function US(){return Vd}function Ey(t,e){e&&(ri("Patches"),t.u=[],t.s=[],t.v=e)}function Wg(t){G4(t),t.p.forEach(LW),t.p=null}function G4(t){t===Vd&&(Vd=t.l)}function WS(t){return Vd={p:[],l:Vd,h:t,m:!0,_:0}}function LW(t){var e=t[cr];e.i===0||e.i===1?e.j():e.O=!0}function Dy(t,e){e._=e.p.length;var n=e.p[0],r=t!==void 0&&t!==n;return e.h.g||ri("ES5").S(e,t,r),r?(n[cr].P&&(Wg(e),Gr(4)),Zu(t)&&(t=Gg(e,t),e.l||qg(e,t)),e.u&&ri("Patches").M(n[cr],t,e.u,e.s)):t=Gg(e,n,[]),Wg(e),e.u&&e.v(e.u,e.s),t!==oj?t:void 0}function Gg(t,e,n){if(L5(e))return e;var r=e[cr];if(!r)return Hd(e,function(i,a){return GS(t,r,e,i,a,n)},!0),e;if(r.A!==t)return e;if(!r.P)return qg(t,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=r.i===4||r.i===5?r.o=N5(r.k):r.o;Hd(r.i===3?new Set(o):o,function(i,a){return GS(t,r,o,i,a,n)}),qg(t,o,!1),n&&t.u&&ri("Patches").R(r,n,t.u,t.s)}return r.o}function GS(t,e,n,r,o,i){if(Xu(o)){var a=Gg(t,o,i&&e&&e.i!==3&&!W4(e.D,r)?i.concat(r):void 0);if(rj(n,r,a),!Xu(a))return;t.m=!1}if(Zu(o)&&!L5(o)){if(!t.h.F&&t._<1)return;Gg(t,o),e&&e.A.l||qg(t,o)}}function qg(t,e,n){n===void 0&&(n=!1),t.h.F&&t.m&&I5(e,n)}function Cy(t,e){var n=t[cr];return(n?lu(n):t)[e]}function qS(t,e){if(e in t)for(var n=Object.getPrototypeOf(t);n;){var r=Object.getOwnPropertyDescriptor(n,e);if(r)return r;n=Object.getPrototypeOf(n)}}function q4(t){t.P||(t.P=!0,t.l&&q4(t.l))}function xy(t){t.o||(t.o=N5(t.t))}function K4(t,e,n){var r=P5(e)?ri("MapSet").N(e,n):j5(e)?ri("MapSet").T(e,n):t.g?function(o,i){var a=Array.isArray(o),u={i:a?1:0,A:i?i.A:US(),P:!1,I:!1,D:{},l:i,t:o,k:null,o:null,j:null,C:!1},s=u,l=J0;a&&(s=[u],l=Q0);var c=Proxy.revocable(s,l),f=c.revoke,p=c.proxy;return u.k=p,u.j=f,p}(e,n):ri("ES5").J(e,n);return(n?n.A:US()).p.push(r),r}function RW(t){return Xu(t)||Gr(22,t),function e(n){if(!Zu(n))return n;var r,o=n[cr],i=Pl(n);if(o){if(!o.P&&(o.i<4||!ri("ES5").K(o)))return o.t;o.I=!0,r=KS(n,i),o.I=!1}else r=KS(n,i);return Hd(r,function(a,u){o&&function(s,l){return Pl(s)===2?s.get(l):s[l]}(o.t,a)===u||rj(r,a,e(u))}),i===3?new Set(r):r}(t)}function KS(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return N5(t)}var YS,Vd,R5=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",MW=typeof Map<"u",zW=typeof Set<"u",XS=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",oj=R5?Symbol.for("immer-nothing"):((YS={})["immer-nothing"]=!0,YS),ZS=R5?Symbol.for("immer-draftable"):"__$immer_draftable",cr=R5?Symbol.for("immer-state"):"__$immer_state",$W=""+Object.prototype.constructor,M5=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,HW=Object.getOwnPropertyDescriptors||function(t){var e={};return M5(t).forEach(function(n){e[n]=Object.getOwnPropertyDescriptor(t,n)}),e},VW={},J0={get:function(t,e){if(e===cr)return t;var n=lu(t);if(!W4(n,e))return function(o,i,a){var u,s=qS(i,a);return s?"value"in s?s.value:(u=s.get)===null||u===void 0?void 0:u.call(o.k):void 0}(t,n,e);var r=n[e];return t.I||!Zu(r)?r:r===Cy(t.t,e)?(xy(t),t.o[e]=K4(t.A.h,r,t)):r},has:function(t,e){return e in lu(t)},ownKeys:function(t){return Reflect.ownKeys(lu(t))},set:function(t,e,n){var r=qS(lu(t),e);if(r!=null&&r.set)return r.set.call(t.k,n),!0;if(!t.P){var o=Cy(lu(t),e),i=o==null?void 0:o[cr];if(i&&i.t===n)return t.o[e]=n,t.D[e]=!1,!0;if(function(a,u){return a===u?a!==0||1/a==1/u:a!=a&&u!=u}(n,o)&&(n!==void 0||W4(t.t,e)))return!0;xy(t),q4(t)}return t.o[e]===n&&typeof n!="number"&&(n!==void 0||e in t.o)||(t.o[e]=n,t.D[e]=!0,!0)},deleteProperty:function(t,e){return Cy(t.t,e)!==void 0||e in t.t?(t.D[e]=!1,xy(t),q4(t)):delete t.D[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var n=lu(t),r=Reflect.getOwnPropertyDescriptor(n,e);return r&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:r.enumerable,value:n[e]}},defineProperty:function(){Gr(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Gr(12)}},Q0={};Hd(J0,function(t,e){Q0[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),Q0.deleteProperty=function(t,e){return J0.deleteProperty.call(this,t[0],e)},Q0.set=function(t,e,n){return J0.set.call(this,t[0],e,n,t[0])};var UW=function(){function t(n){var r=this;this.g=XS,this.F=!0,this.produce=function(o,i,a){if(typeof o=="function"&&typeof i!="function"){var u=i;i=o;var s=r;return function(d){var y=this;d===void 0&&(d=u);for(var g=arguments.length,v=Array(g>1?g-1:0),m=1;m<g;m++)v[m-1]=arguments[m];return s.produce(d,function(h){var b;return(b=i).call.apply(b,[y,h].concat(v))})}}var l;if(typeof i!="function"&&Gr(6),a!==void 0&&typeof a!="function"&&Gr(7),Zu(o)){var c=WS(r),f=K4(r,o,void 0),p=!0;try{l=i(f),p=!1}finally{p?Wg(c):G4(c)}return typeof Promise<"u"&&l instanceof Promise?l.then(function(d){return Ey(c,a),Dy(d,c)},function(d){throw Wg(c),d}):(Ey(c,a),Dy(l,c))}if(!o||typeof o!="object")return(l=i(o))===oj?void 0:(l===void 0&&(l=o),r.F&&I5(l,!0),l);Gr(21,o)},this.produceWithPatches=function(o,i){return typeof o=="function"?function(s){for(var l=arguments.length,c=Array(l>1?l-1:0),f=1;f<l;f++)c[f-1]=arguments[f];return r.produceWithPatches(s,function(p){return o.apply(void 0,[p].concat(c))})}:[r.produce(o,i,function(s,l){a=s,u=l}),a,u];var a,u},typeof(n==null?void 0:n.useProxies)=="boolean"&&this.setUseProxies(n.useProxies),typeof(n==null?void 0:n.autoFreeze)=="boolean"&&this.setAutoFreeze(n.autoFreeze)}var e=t.prototype;return e.createDraft=function(n){Zu(n)||Gr(8),Xu(n)&&(n=RW(n));var r=WS(this),o=K4(this,n,void 0);return o[cr].C=!0,G4(r),o},e.finishDraft=function(n,r){var o=(n&&n[cr]).A;return Ey(o,r),Dy(void 0,o)},e.setAutoFreeze=function(n){this.F=n},e.setUseProxies=function(n){n&&!XS&&Gr(20),this.g=n},e.applyPatches=function(n,r){var o;for(o=r.length-1;o>=0;o--){var i=r[o];if(i.path.length===0&&i.op==="replace"){n=i.value;break}}o>-1&&(r=r.slice(o+1));var a=ri("Patches").$;return Xu(n)?a(n,r):this.produce(n,function(u){return a(u,r)})},t}(),Qn=new UW,V1=Qn.produce;Qn.produceWithPatches.bind(Qn),Qn.setAutoFreeze.bind(Qn),Qn.setUseProxies.bind(Qn),Qn.applyPatches.bind(Qn);var JS=Qn.createDraft.bind(Qn),QS=Qn.finishDraft.bind(Qn);function Io(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Kg=new WeakMap,Rc=new WeakMap,tA=new WeakMap,eA=new WeakMap,nA=new WeakMap,rA=new WeakMap;function oA(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function $h(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?oA(Object(n),!0).forEach(function(r){Io(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):oA(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var WW=()=>{var t={children:[],operations:[],selection:null,marks:null,isInline:()=>!1,isVoid:()=>!1,onChange:()=>{},apply:e=>{for(var n of D.pathRefs(t))EG.transform(n,e);for(var r of D.pointRefs(t))DG.transform(r,e);for(var o of D.rangeRefs(t))xG.transform(o,e);var i=new Set,a=[],u=p=>{if(p){var d=p.join(",");i.has(d)||(i.add(d),a.push(p))}},s=Kg.get(t)||[],l=GW(e);for(var c of s)u(j.transform(c,e));for(var f of l)u(f);Kg.set(t,a),N.transform(t,e),t.operations.push(e),D.normalize(t),e.type==="set_selection"&&(t.marks=null),Rc.get(t)||(Rc.set(t,!0),Promise.resolve().then(()=>{Rc.set(t,!1),t.onChange(),t.operations=[]}))},addMark:(e,n)=>{var{selection:r}=t;if(r)if(L.isExpanded(r))N.setNodes(t,{[e]:n},{match:ot.isText,split:!0});else{var o=$h($h({},D.marks(t)||{}),{},{[e]:n});t.marks=o,Rc.get(t)||t.onChange()}},deleteBackward:e=>{var{selection:n}=t;n&&L.isCollapsed(n)&&N.delete(t,{unit:e,reverse:!0})},deleteForward:e=>{var{selection:n}=t;n&&L.isCollapsed(n)&&N.delete(t,{unit:e})},deleteFragment:e=>{var{selection:n}=t;n&&L.isExpanded(n)&&N.delete(t,{reverse:e==="backward"})},getFragment:()=>{var{selection:e}=t;return e?Q.fragment(t,e):[]},insertBreak:()=>{N.splitNodes(t,{always:!0})},insertFragment:e=>{N.insertFragment(t,e)},insertNode:e=>{N.insertNodes(t,e)},insertText:e=>{var{selection:n,marks:r}=t;if(n){if(r){var o=$h({text:e},r);N.insertNodes(t,o)}else N.insertText(t,e);t.marks=null}},normalizeNode:e=>{var[n,r]=e;if(!ot.isText(n))if(ct.isElement(n)&&n.children.length===0)N.insertNodes(t,{text:""},{at:r.concat(0),voids:!0});else for(var o=!D.isEditor(n)&&ct.isElement(n)&&(t.isInline(n)||n.children.length===0||ot.isText(n.children[0])||t.isInline(n.children[0])),i=0,a=0;a<n.children.length;a++,i++){var u=Q.get(t,r);if(!ot.isText(u)){var s=n.children[a],l=u.children[i-1],c=a===n.children.length-1;(ot.isText(s)||ct.isElement(s)&&t.isInline(s))!==o?(N.removeNodes(t,{at:r.concat(i),voids:!0}),i--):ct.isElement(s)?t.isInline(s)&&(l!=null&&ot.isText(l)?c&&(N.insertNodes(t,{text:""},{at:r.concat(i+1),voids:!0}),i++):(N.insertNodes(t,{text:""},{at:r.concat(i),voids:!0}),i++)):l!=null&&ot.isText(l)&&(ot.equals(s,l,{loose:!0})?(N.mergeNodes(t,{at:r.concat(i),voids:!0}),i--):l.text===""?(N.removeNodes(t,{at:r.concat(i-1),voids:!0}),i--):s.text===""&&(N.removeNodes(t,{at:r.concat(i),voids:!0}),i--))}}},removeMark:e=>{var{selection:n}=t;if(n)if(L.isExpanded(n))N.unsetNodes(t,e,{match:ot.isText,split:!0});else{var r=$h({},D.marks(t)||{});delete r[e],t.marks=r,Rc.get(t)||t.onChange()}}};return t},GW=t=>{switch(t.type){case"insert_text":case"remove_text":case"set_node":var{path:e}=t;return j.levels(e);case"insert_node":var{node:n,path:r}=t,o=j.levels(r),i=ot.isText(n)?[]:Array.from(Q.nodes(n),w=>{var[,E]=w;return r.concat(E)});return[...o,...i];case"merge_node":var{path:a}=t;return[...j.ancestors(a),j.previous(a)];case"move_node":var{path:u,newPath:s}=t;if(j.equals(u,s))return[];var l=[],c=[];for(var f of j.ancestors(u)){var p=j.transform(f,t);l.push(p)}for(var d of j.ancestors(s)){var y=j.transform(d,t);c.push(y)}var g=c[c.length-1],v=s[s.length-1],m=g.concat(v);return[...l,...c,m];case"remove_node":var{path:h}=t;return[...j.ancestors(h)];case"split_node":var{path:b}=t;return[...j.levels(b),j.next(b)];default:return[]}};function si(t,e){if(t==null)return{};var n,r,o=function(a,u){if(a==null)return{};var s,l,c={},f=Object.keys(a);for(l=0;l<f.length;l++)s=f[l],u.indexOf(s)>=0||(c[s]=a[s]);return c}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}var xt,Y4=function(t){var e=arguments.length>1&&arguments[1]!==void 0&&arguments[1],n=!e,r=e?ZW(t):t,o=xt.None,i=xt.None,a=0,u=null;for(var s of r){var l=s.codePointAt(0);if(!l)break;var c=lG(s,l);if([o,i]=n?[i,c]:[c,o],fl(o,xt.ZWJ)&&fl(i,xt.ExtPict)&&!pG(n?t.substring(0,a):t.substring(0,t.length-a))||fl(o,xt.RI)&&fl(i,xt.RI)&&!(u=u!==null?!u:!!n||gG(t.substring(0,t.length-a)))||o!==xt.None&&i!==xt.None&&fG(o,i))break;a+=s.length}return a||1},qW=/\s/,KW=/[\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]/,YW=/['\u2018\u2019]/,X4=(t,e,n)=>{if(n){var r=t.length-e;return[t.slice(r,t.length),t.slice(0,r)]}return[t.slice(0,e),t.slice(e)]},XW=function t(e,n){var r=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(qW.test(e))return!1;if(YW.test(e)){var o=Y4(n,r),[i,a]=X4(n,o,r);if(t(i,a,r))return!0}return!KW.test(e)},ZW=function*(t){for(var e=t.length-1,n=0;n<t.length;n++){var r=t.charAt(e-n);if(QW(r.charCodeAt(0))){var o=t.charAt(e-n-1);if(JW(o.charCodeAt(0))){yield o+r,n++;continue}}yield r}},JW=t=>t>=55296&&t<=56319,QW=t=>t>=56320&&t<=57343;(function(t){t[t.None=0]="None",t[t.Extend=1]="Extend",t[t.ZWJ=2]="ZWJ",t[t.RI=4]="RI",t[t.Prepend=8]="Prepend",t[t.SpacingMark=16]="SpacingMark",t[t.L=32]="L",t[t.V=64]="V",t[t.T=128]="T",t[t.LV=256]="LV",t[t.LVT=512]="LVT",t[t.ExtPict=1024]="ExtPict",t[t.Any=2048]="Any"})(xt||(xt={}));var tG=/^(?:[\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])$/,eG=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,nG=/^(?:[\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])$/,rG=/^[\u1100-\u115F\uA960-\uA97C]$/,oG=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,iG=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,aG=/^[\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]$/,uG=/^[\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]$/,sG=/^(?:[\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])$/,lG=(t,e)=>{var n=xt.Any;return t.search(tG)!==-1&&(n|=xt.Extend),e===8205&&(n|=xt.ZWJ),e>=127462&&e<=127487&&(n|=xt.RI),t.search(eG)!==-1&&(n|=xt.Prepend),t.search(nG)!==-1&&(n|=xt.SpacingMark),t.search(rG)!==-1&&(n|=xt.L),t.search(oG)!==-1&&(n|=xt.V),t.search(iG)!==-1&&(n|=xt.T),t.search(aG)!==-1&&(n|=xt.LV),t.search(uG)!==-1&&(n|=xt.LVT),t.search(sG)!==-1&&(n|=xt.ExtPict),n};function fl(t,e){return(t&e)!=0}var cG=[[xt.L,xt.L|xt.V|xt.LV|xt.LVT],[xt.LV|xt.V,xt.V|xt.T],[xt.LVT|xt.T,xt.T],[xt.Any,xt.Extend|xt.ZWJ],[xt.Any,xt.SpacingMark],[xt.Prepend,xt.Any],[xt.ZWJ,xt.ExtPict],[xt.RI,xt.RI]];function fG(t,e){return cG.findIndex(n=>fl(t,n[0])&&fl(e,n[1]))===-1}var dG=/(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])(?:[\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$/,pG=t=>t.search(dG)!==-1,hG=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,gG=t=>{var e=t.match(hG);return e!==null&&e[0].length/2%2==1},iA=t=>On(t)&&Q.isNodeList(t.children)&&!D.isEditor(t),ct={isAncestor:t=>On(t)&&Q.isNodeList(t.children),isElement:iA,isElementList:t=>Array.isArray(t)&&t.every(e=>ct.isElement(e)),isElementProps:t=>t.children!==void 0,isElementType:function(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"type";return iA(t)&&t[n]===e},matches(t,e){for(var n in e)if(n!=="children"&&t[n]!==e[n])return!1;return!0}},vG=["text"],mG=["text"];function aA(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Bs(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?aA(Object(n),!0).forEach(function(r){Io(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):aA(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var uA=new WeakMap,D={above(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{voids:n=!1,mode:r="lowest",at:o=t.selection,match:i}=e;if(o){var a=D.path(t,o),u=r==="lowest";for(var[s,l]of D.levels(t,{at:a,voids:n,match:i,reverse:u}))if(!ot.isText(s)&&!j.equals(a,l))return[s,l]}},addMark(t,e,n){t.addMark(e,n)},after(t,e){var n,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o={anchor:D.point(t,e,{edge:"end"}),focus:D.end(t,[])},{distance:i=1}=r,a=0;for(var u of D.positions(t,Bs(Bs({},r),{},{at:o}))){if(a>i)break;a!==0&&(n=u),a++}return n},before(t,e){var n,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o={anchor:D.start(t,[]),focus:D.point(t,e,{edge:"start"})},{distance:i=1}=r,a=0;for(var u of D.positions(t,Bs(Bs({},r),{},{at:o,reverse:!0}))){if(a>i)break;a!==0&&(n=u),a++}return n},deleteBackward(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{unit:n="character"}=e;t.deleteBackward(n)},deleteForward(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{unit:n="character"}=e;t.deleteForward(n)},deleteFragment(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{direction:n="forward"}=e;t.deleteFragment(n)},edges:(t,e)=>[D.start(t,e),D.end(t,e)],end:(t,e)=>D.point(t,e,{edge:"end"}),first(t,e){var n=D.path(t,e,{edge:"start"});return D.node(t,n)},fragment(t,e){var n=D.range(t,e);return Q.fragment(t,n)},hasBlocks:(t,e)=>e.children.some(n=>D.isBlock(t,n)),hasInlines:(t,e)=>e.children.some(n=>ot.isText(n)||D.isInline(t,n)),hasTexts:(t,e)=>e.children.every(n=>ot.isText(n)),insertBreak(t){t.insertBreak()},insertFragment(t,e){t.insertFragment(e)},insertNode(t,e){t.insertNode(e)},insertText(t,e){t.insertText(e)},isBlock:(t,e)=>ct.isElement(e)&&!t.isInline(e),isEditor(t){if(!On(t))return!1;var e=uA.get(t);if(e!==void 0)return e;var n=typeof t.addMark=="function"&&typeof t.apply=="function"&&typeof t.deleteBackward=="function"&&typeof t.deleteForward=="function"&&typeof t.deleteFragment=="function"&&typeof t.insertBreak=="function"&&typeof t.insertFragment=="function"&&typeof t.insertNode=="function"&&typeof t.insertText=="function"&&typeof t.isInline=="function"&&typeof t.isVoid=="function"&&typeof t.normalizeNode=="function"&&typeof t.onChange=="function"&&typeof t.removeMark=="function"&&(t.marks===null||On(t.marks))&&(t.selection===null||L.isRange(t.selection))&&Q.isNodeList(t.children)&&Ji.isOperationList(t.operations);return uA.set(t,n),n},isEnd(t,e,n){var r=D.end(t,n);return Bt.equals(e,r)},isEdge:(t,e,n)=>D.isStart(t,e,n)||D.isEnd(t,e,n),isEmpty(t,e){var{children:n}=e,[r]=n;return n.length===0||n.length===1&&ot.isText(r)&&r.text===""&&!t.isVoid(e)},isInline:(t,e)=>ct.isElement(e)&&t.isInline(e),isNormalizing(t){var e=tA.get(t);return e===void 0||e},isStart(t,e,n){if(e.offset!==0)return!1;var r=D.start(t,n);return Bt.equals(e,r)},isVoid:(t,e)=>ct.isElement(e)&&t.isVoid(e),last(t,e){var n=D.path(t,e,{edge:"end"});return D.node(t,n)},leaf(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=D.path(t,e,n);return[Q.leaf(t,r),r]},*levels(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:n=t.selection,reverse:r=!1,voids:o=!1}=e,{match:i}=e;if(i==null&&(i=()=>!0),n){var a=[],u=D.path(t,n);for(var[s,l]of Q.levels(t,u))if(i(s,l)&&(a.push([s,l]),!o&&D.isVoid(t,s)))break;r&&a.reverse(),yield*a}},marks(t){var{marks:e,selection:n}=t;if(!n)return null;if(e)return e;if(L.isExpanded(n)){var[r]=D.nodes(t,{match:ot.isText});if(r){var[o]=r;return si(o,vG)}return{}}var{anchor:i}=n,{path:a}=i,[u]=D.leaf(t,a);if(i.offset===0){var s=D.previous(t,{at:a,match:ot.isText}),l=D.above(t,{match:d=>D.isBlock(t,d)});if(s&&l){var[c,f]=s,[,p]=l;j.isAncestor(p,f)&&(u=c)}}return si(u,mG)},next(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:n="lowest",voids:r=!1}=e,{match:o,at:i=t.selection}=e;if(i){var a=D.after(t,i,{voids:r});if(a){var[,u]=D.last(t,[]),s=[a.path,u];if(j.isPath(i)&&i.length===0)throw new Error("Cannot get the next node from the root node!");if(o==null)if(j.isPath(i)){var[l]=D.parent(t,i);o=f=>l.children.includes(f)}else o=()=>!0;var[c]=D.nodes(t,{at:s,match:o,mode:n,voids:r});return c}}},node(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=D.path(t,e,n);return[Q.get(t,r),r]},*nodes(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:n=t.selection,mode:r="all",universal:o=!1,reverse:i=!1,voids:a=!1}=e,{match:u}=e;if(u||(u=()=>!0),n){var s,l;if(yG.isSpan(n))s=n[0],l=n[1];else{var c=D.path(t,n,{edge:"start"}),f=D.path(t,n,{edge:"end"});s=i?f:c,l=i?c:f}var p,d=Q.nodes(t,{reverse:i,from:s,to:l,pass:b=>{var[w]=b;return!a&&D.isVoid(t,w)}}),y=[];for(var[g,v]of d){var m=p&&j.compare(v,p[1])===0;if(r!=="highest"||!m){if(u(g,v))if(r==="lowest"&&m)p=[g,v];else{var h=r==="lowest"?p:[g,v];h&&(o?y.push(h):yield h),p=[g,v]}else if(o&&!m&&ot.isText(g))return}}r==="lowest"&&p&&(o?y.push(p):yield p),o&&(yield*y)}},normalize(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{force:n=!1}=e,r=i=>Kg.get(i)||[];if(D.isNormalizing(t)){if(n){var o=Array.from(Q.nodes(t),i=>{var[,a]=i;return a});Kg.set(t,o)}r(t).length!==0&&D.withoutNormalizing(t,()=>{for(var i of r(t))if(Q.has(t,i)){var a=D.node(t,i),[u,s]=a;ct.isElement(u)&&u.children.length===0&&t.normalizeNode(a)}for(var l=42*r(t).length,c=0;r(t).length!==0;){if(c>l)throw new Error(`
  14. Could not completely normalize the editor after `.concat(l,` iterations! This is usually due to incorrect normalization logic that leaves a node in an invalid state.
  15. `));var f=r(t).pop();if(Q.has(t,f)){var p=D.node(t,f);t.normalizeNode(p)}c++}})}},parent(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=D.path(t,e,n),o=j.parent(r);return D.node(t,o)},path(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{depth:r,edge:o}=n;if(j.isPath(e)){if(o==="start"){var[,i]=Q.first(t,e);e=i}else if(o==="end"){var[,a]=Q.last(t,e);e=a}}return L.isRange(e)&&(e=o==="start"?L.start(e):o==="end"?L.end(e):j.common(e.anchor.path,e.focus.path)),Bt.isPoint(e)&&(e=e.path),r!=null&&(e=e.slice(0,r)),e},hasPath:(t,e)=>Q.has(t,e),pathRef(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:r="forward"}=n,o={current:e,affinity:r,unref(){var{current:i}=o;return D.pathRefs(t).delete(o),o.current=null,i}};return D.pathRefs(t).add(o),o},pathRefs(t){var e=eA.get(t);return e||(e=new Set,eA.set(t,e)),e},point(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{edge:r="start"}=n;if(j.isPath(e)){var o;if(r==="end"){var[,i]=Q.last(t,e);o=i}else{var[,a]=Q.first(t,e);o=a}var u=Q.get(t,o);if(!ot.isText(u))throw new Error("Cannot get the ".concat(r," point in the node at path [").concat(e,"] because it has no ").concat(r," text node."));return{path:o,offset:r==="end"?u.text.length:0}}if(L.isRange(e)){var[s,l]=L.edges(e);return r==="start"?s:l}return e},pointRef(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:r="forward"}=n,o={current:e,affinity:r,unref(){var{current:i}=o;return D.pointRefs(t).delete(o),o.current=null,i}};return D.pointRefs(t).add(o),o},pointRefs(t){var e=nA.get(t);return e||(e=new Set,nA.set(t,e)),e},*positions(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:n=t.selection,unit:r="offset",reverse:o=!1,voids:i=!1}=e;if(n){var a=D.range(t,n),[u,s]=L.edges(a),l=o?s:u,c=!1,f="",p=0,d=0,y=0;for(var[g,v]of D.nodes(t,{at:n,reverse:o,voids:i})){if(ct.isElement(g)){if(!i&&t.isVoid(g)){yield D.start(t,v);continue}if(t.isInline(g))continue;if(D.hasInlines(t,g)){var m=j.isAncestor(v,s.path)?s:D.end(t,v),h=j.isAncestor(v,u.path)?u:D.start(t,v);f=D.string(t,{anchor:h,focus:m},{voids:i}),c=!0}}if(ot.isText(g)){var b=j.equals(v,l.path);for(b?(d=o?l.offset:g.text.length-l.offset,y=l.offset):(d=g.text.length,y=o?d:0),(b||c||r==="offset")&&(yield{path:v,offset:y},c=!1);;){if(p===0){if(f==="")break;p=w(f,r,o),f=X4(f,p,o)[1]}if(y=o?y-p:y+p,(d-=p)<0){p=-d;break}p=0,yield{path:v,offset:y}}}}}function w(E,x,C){return x==="character"?Y4(E,C):x==="word"?function(O){for(var F=arguments.length>1&&arguments[1]!==void 0&&arguments[1],R=0,H=!1;O.length>0;){var M=Y4(O,F),[K,U]=X4(O,M,F);if(XW(K,U,F))H=!0,R+=M;else{if(H)break;R+=M}O=U}return R}(E,C):x==="line"||x==="block"?E.length:1}},previous(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:n="lowest",voids:r=!1}=e,{match:o,at:i=t.selection}=e;if(i){var a=D.before(t,i,{voids:r});if(a){var[,u]=D.first(t,[]),s=[a.path,u];if(j.isPath(i)&&i.length===0)throw new Error("Cannot get the previous node from the root node!");if(o==null)if(j.isPath(i)){var[l]=D.parent(t,i);o=f=>l.children.includes(f)}else o=()=>!0;var[c]=D.nodes(t,{reverse:!0,at:s,match:o,mode:n,voids:r});return c}}},range:(t,e,n)=>L.isRange(e)&&!n?e:{anchor:D.start(t,e),focus:D.end(t,n||e)},rangeRef(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:r="forward"}=n,o={current:e,affinity:r,unref(){var{current:i}=o;return D.rangeRefs(t).delete(o),o.current=null,i}};return D.rangeRefs(t).add(o),o},rangeRefs(t){var e=rA.get(t);return e||(e=new Set,rA.set(t,e)),e},removeMark(t,e){t.removeMark(e)},setNormalizing(t,e){tA.set(t,e)},start:(t,e)=>D.point(t,e,{edge:"start"}),string(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:r=!1}=n,o=D.range(t,e),[i,a]=L.edges(o),u="";for(var[s,l]of D.nodes(t,{at:o,match:ot.isText,voids:r})){var c=s.text;j.equals(l,a.path)&&(c=c.slice(0,a.offset)),j.equals(l,i.path)&&(c=c.slice(i.offset)),u+=c}return u},unhangRange(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:r=!1}=n,[o,i]=L.edges(e);if(o.offset!==0||i.offset!==0||L.isCollapsed(e))return e;var a=D.above(t,{at:i,match:p=>D.isBlock(t,p)}),u=a?a[1]:[],s={anchor:D.start(t,[]),focus:i},l=!0;for(var[c,f]of D.nodes(t,{at:s,match:ot.isText,reverse:!0,voids:r}))if(l)l=!1;else if(c.text!==""||j.isBefore(f,u)){i={path:f,offset:c.text.length};break}return{anchor:o,focus:i}},void(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return D.above(t,Bs(Bs({},e),{},{match:n=>D.isVoid(t,n)}))},withoutNormalizing(t,e){var n=D.isNormalizing(t);D.setNormalizing(t,!1);try{e()}finally{D.setNormalizing(t,n)}D.normalize(t)}},yG={isSpan:t=>Array.isArray(t)&&t.length===2&&t.every(j.isPath)},bG=["children"],wG=["text"],sA=new WeakMap,Q={ancestor(t,e){var n=Q.get(t,e);if(ot.isText(n))throw new Error("Cannot get the ancestor node at path [".concat(e,"] because it refers to a text node instead: ").concat(n));return n},*ancestors(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};for(var r of j.ancestors(e,n)){var o=[Q.ancestor(t,r),r];yield o}},child(t,e){if(ot.isText(t))throw new Error("Cannot get the child of a text node: ".concat(JSON.stringify(t)));var n=t.children[e];if(n==null)throw new Error("Cannot get child at index `".concat(e,"` in node: ").concat(JSON.stringify(t)));return n},*children(t,e){for(var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{reverse:r=!1}=n,o=Q.ancestor(t,e),{children:i}=o,a=r?i.length-1:0;r?a>=0:a<i.length;){var u=Q.child(o,a),s=e.concat(a);yield[u,s],a=r?a-1:a+1}},common(t,e,n){var r=j.common(e,n);return[Q.get(t,r),r]},descendant(t,e){var n=Q.get(t,e);if(D.isEditor(n))throw new Error("Cannot get the descendant node at path [".concat(e,"] because it refers to the root editor node instead: ").concat(n));return n},*descendants(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[n,r]of Q.nodes(t,e))r.length!==0&&(yield[n,r])},*elements(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[n,r]of Q.nodes(t,e))ct.isElement(n)&&(yield[n,r])},extractProps:t=>ct.isAncestor(t)?si(t,bG):si(t,wG),first(t,e){for(var n=e.slice(),r=Q.get(t,n);r&&!ot.isText(r)&&r.children.length!==0;)r=r.children[0],n.push(0);return[r,n]},fragment(t,e){if(ot.isText(t))throw new Error("Cannot get a fragment starting from a root text node: ".concat(JSON.stringify(t)));var n=V1({children:t.children},r=>{var[o,i]=L.edges(e),a=Q.nodes(r,{reverse:!0,pass:p=>{var[,d]=p;return!L.includes(e,d)}});for(var[,u]of a){if(!L.includes(e,u)){var s=Q.parent(r,u),l=u[u.length-1];s.children.splice(l,1)}if(j.equals(u,i.path)){var c=Q.leaf(r,u);c.text=c.text.slice(0,i.offset)}if(j.equals(u,o.path)){var f=Q.leaf(r,u);f.text=f.text.slice(o.offset)}}D.isEditor(r)&&(r.selection=null)});return n.children},get(t,e){for(var n=t,r=0;r<e.length;r++){var o=e[r];if(ot.isText(n)||!n.children[o])throw new Error("Cannot find a descendant at path [".concat(e,"] in node: ").concat(JSON.stringify(t)));n=n.children[o]}return n},has(t,e){for(var n=t,r=0;r<e.length;r++){var o=e[r];if(ot.isText(n)||!n.children[o])return!1;n=n.children[o]}return!0},isNode:t=>ot.isText(t)||ct.isElement(t)||D.isEditor(t),isNodeList(t){if(!Array.isArray(t))return!1;var e=sA.get(t);if(e!==void 0)return e;var n=t.every(r=>Q.isNode(r));return sA.set(t,n),n},last(t,e){for(var n=e.slice(),r=Q.get(t,n);r&&!ot.isText(r)&&r.children.length!==0;){var o=r.children.length-1;r=r.children[o],n.push(o)}return[r,n]},leaf(t,e){var n=Q.get(t,e);if(!ot.isText(n))throw new Error("Cannot get the leaf node at path [".concat(e,"] because it refers to a non-leaf node: ").concat(n));return n},*levels(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};for(var r of j.levels(e,n)){var o=Q.get(t,r);yield[o,r]}},matches:(t,e)=>ct.isElement(t)&&ct.isElementProps(e)&&ct.matches(t,e)||ot.isText(t)&&ot.isTextProps(e)&&ot.matches(t,e),*nodes(t){for(var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{pass:n,reverse:r=!1}=e,{from:o=[],to:i}=e,a=new Set,u=[],s=t;!i||!(r?j.isBefore(u,i):j.isAfter(u,i));)if(a.has(s)||(yield[s,u]),a.has(s)||ot.isText(s)||s.children.length===0||n!=null&&n([s,u])!==!1){if(u.length===0)break;if(!r){var l=j.next(u);if(Q.has(t,l)){u=l,s=Q.get(t,u);continue}}r&&u[u.length-1]!==0?(u=j.previous(u),s=Q.get(t,u)):(u=j.parent(u),s=Q.get(t,u),a.add(s))}else{a.add(s);var c=r?s.children.length-1:0;j.isAncestor(u,o)&&(c=o[u.length]),u=u.concat(c),s=Q.get(t,u)}},parent(t,e){var n=j.parent(e),r=Q.get(t,n);if(ot.isText(r))throw new Error("Cannot get the parent of path [".concat(e,"] because it does not exist in the root."));return r},string:t=>ot.isText(t)?t.text:t.children.map(Q.string).join(""),*texts(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[n,r]of Q.nodes(t,e))ot.isText(n)&&(yield[n,r])}};function lA(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function ze(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?lA(Object(n),!0).forEach(function(r){Io(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):lA(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var Ji={isNodeOperation:t=>Ji.isOperation(t)&&t.type.endsWith("_node"),isOperation(t){if(!On(t))return!1;switch(t.type){case"insert_node":case"remove_node":return j.isPath(t.path)&&Q.isNode(t.node);case"insert_text":case"remove_text":return typeof t.offset=="number"&&typeof t.text=="string"&&j.isPath(t.path);case"merge_node":return typeof t.position=="number"&&j.isPath(t.path)&&On(t.properties);case"move_node":return j.isPath(t.path)&&j.isPath(t.newPath);case"set_node":return j.isPath(t.path)&&On(t.properties)&&On(t.newProperties);case"set_selection":return t.properties===null&&L.isRange(t.newProperties)||t.newProperties===null&&L.isRange(t.properties)||On(t.properties)&&On(t.newProperties);case"split_node":return j.isPath(t.path)&&typeof t.position=="number"&&On(t.properties);default:return!1}},isOperationList:t=>Array.isArray(t)&&t.every(e=>Ji.isOperation(e)),isSelectionOperation:t=>Ji.isOperation(t)&&t.type.endsWith("_selection"),isTextOperation:t=>Ji.isOperation(t)&&t.type.endsWith("_text"),inverse(t){switch(t.type){case"insert_node":return ze(ze({},t),{},{type:"remove_node"});case"insert_text":return ze(ze({},t),{},{type:"remove_text"});case"merge_node":return ze(ze({},t),{},{type:"split_node",path:j.previous(t.path)});case"move_node":var{newPath:e,path:n}=t;if(j.equals(e,n))return t;if(j.isSibling(n,e))return ze(ze({},t),{},{path:e,newPath:n});var r=j.transform(n,t),o=j.transform(j.next(n),t);return ze(ze({},t),{},{path:r,newPath:o});case"remove_node":return ze(ze({},t),{},{type:"insert_node"});case"remove_text":return ze(ze({},t),{},{type:"insert_text"});case"set_node":var{properties:i,newProperties:a}=t;return ze(ze({},t),{},{properties:a,newProperties:i});case"set_selection":var{properties:u,newProperties:s}=t;return ze(ze({},t),{},u==null?{properties:s,newProperties:null}:s==null?{properties:null,newProperties:u}:{properties:s,newProperties:u});case"split_node":return ze(ze({},t),{},{type:"merge_node",path:j.next(t.path)})}}},j={ancestors(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=e,r=j.levels(t,e);return r=n?r.slice(1):r.slice(0,-1)},common(t,e){for(var n=[],r=0;r<t.length&&r<e.length;r++){var o=t[r];if(o!==e[r])break;n.push(o)}return n},compare(t,e){for(var n=Math.min(t.length,e.length),r=0;r<n;r++){if(t[r]<e[r])return-1;if(t[r]>e[r])return 1}return 0},endsAfter(t,e){var n=t.length-1,r=t.slice(0,n),o=e.slice(0,n),i=t[n],a=e[n];return j.equals(r,o)&&i>a},endsAt(t,e){var n=t.length,r=t.slice(0,n),o=e.slice(0,n);return j.equals(r,o)},endsBefore(t,e){var n=t.length-1,r=t.slice(0,n),o=e.slice(0,n),i=t[n],a=e[n];return j.equals(r,o)&&i<a},equals:(t,e)=>t.length===e.length&&t.every((n,r)=>n===e[r]),hasPrevious:t=>t[t.length-1]>0,isAfter:(t,e)=>j.compare(t,e)===1,isAncestor:(t,e)=>t.length<e.length&&j.compare(t,e)===0,isBefore:(t,e)=>j.compare(t,e)===-1,isChild:(t,e)=>t.length===e.length+1&&j.compare(t,e)===0,isCommon:(t,e)=>t.length<=e.length&&j.compare(t,e)===0,isDescendant:(t,e)=>t.length>e.length&&j.compare(t,e)===0,isParent:(t,e)=>t.length+1===e.length&&j.compare(t,e)===0,isPath:t=>Array.isArray(t)&&(t.length===0||typeof t[0]=="number"),isSibling(t,e){if(t.length!==e.length)return!1;var n=t.slice(0,-1),r=e.slice(0,-1);return t[t.length-1]!==e[e.length-1]&&j.equals(n,r)},levels(t){for(var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=e,r=[],o=0;o<=t.length;o++)r.push(t.slice(0,o));return n&&r.reverse(),r},next(t){if(t.length===0)throw new Error("Cannot get the next path of a root path [".concat(t,"], because it has no next index."));var e=t[t.length-1];return t.slice(0,-1).concat(e+1)},parent(t){if(t.length===0)throw new Error("Cannot get the parent path of the root path [".concat(t,"]."));return t.slice(0,-1)},previous(t){if(t.length===0)throw new Error("Cannot get the previous path of a root path [".concat(t,"], because it has no previous index."));var e=t[t.length-1];if(e<=0)throw new Error("Cannot get the previous path of a first child path [".concat(t,"] because it would result in a negative index."));return t.slice(0,-1).concat(e-1)},relative(t,e){if(!j.isAncestor(e,t)&&!j.equals(t,e))throw new Error("Cannot get the relative path of [".concat(t,"] inside ancestor [").concat(e,"], because it is not above or equal to the path."));return t.slice(e.length)},transform(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return V1(t,r=>{var{affinity:o="forward"}=n;if(t&&(t==null?void 0:t.length)!==0){if(r===null)return null;switch(e.type){case"insert_node":var{path:i}=e;(j.equals(i,r)||j.endsBefore(i,r)||j.isAncestor(i,r))&&(r[i.length-1]+=1);break;case"remove_node":var{path:a}=e;if(j.equals(a,r)||j.isAncestor(a,r))return null;j.endsBefore(a,r)&&(r[a.length-1]-=1);break;case"merge_node":var{path:u,position:s}=e;j.equals(u,r)||j.endsBefore(u,r)?r[u.length-1]-=1:j.isAncestor(u,r)&&(r[u.length-1]-=1,r[u.length]+=s);break;case"split_node":var{path:l,position:c}=e;if(j.equals(l,r)){if(o==="forward")r[r.length-1]+=1;else if(o!=="backward")return null}else j.endsBefore(l,r)?r[l.length-1]+=1:j.isAncestor(l,r)&&t[l.length]>=c&&(r[l.length-1]+=1,r[l.length]-=c);break;case"move_node":var{path:f,newPath:p}=e;if(j.equals(f,p))return;if(j.isAncestor(f,r)||j.equals(f,r)){var d=p.slice();return j.endsBefore(f,p)&&f.length<p.length&&(d[f.length-1]-=1),d.concat(r.slice(f.length))}j.isSibling(f,p)&&(j.isAncestor(p,r)||j.equals(p,r))?j.endsBefore(f,r)?r[f.length-1]-=1:r[f.length-1]+=1:j.endsBefore(p,r)||j.equals(p,r)||j.isAncestor(p,r)?(j.endsBefore(f,r)&&(r[f.length-1]-=1),r[p.length-1]+=1):j.endsBefore(f,r)&&(j.equals(p,r)&&(r[p.length-1]+=1),r[f.length-1]-=1)}}})}},EG={transform(t,e){var{current:n,affinity:r}=t;if(n!=null){var o=j.transform(n,e,{affinity:r});t.current=o,o==null&&t.unref()}}};function cA(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function fA(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?cA(Object(n),!0).forEach(function(r){Io(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):cA(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var Bt={compare(t,e){var n=j.compare(t.path,e.path);return n===0?t.offset<e.offset?-1:t.offset>e.offset?1:0:n},isAfter:(t,e)=>Bt.compare(t,e)===1,isBefore:(t,e)=>Bt.compare(t,e)===-1,equals:(t,e)=>t.offset===e.offset&&j.equals(t.path,e.path),isPoint:t=>On(t)&&typeof t.offset=="number"&&j.isPath(t.path),transform(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return V1(t,r=>{if(r===null)return null;var{affinity:o="forward"}=n,{path:i,offset:a}=r;switch(e.type){case"insert_node":case"move_node":r.path=j.transform(i,e,n);break;case"insert_text":j.equals(e.path,i)&&e.offset<=a&&(r.offset+=e.text.length);break;case"merge_node":j.equals(e.path,i)&&(r.offset+=e.position),r.path=j.transform(i,e,n);break;case"remove_text":j.equals(e.path,i)&&e.offset<=a&&(r.offset-=Math.min(a-e.offset,e.text.length));break;case"remove_node":if(j.equals(e.path,i)||j.isAncestor(e.path,i))return null;r.path=j.transform(i,e,n);break;case"split_node":if(j.equals(e.path,i)){if(e.position===a&&o==null)return null;(e.position<a||e.position===a&&o==="forward")&&(r.offset-=e.position,r.path=j.transform(i,e,fA(fA({},n),{},{affinity:"forward"})))}else r.path=j.transform(i,e,n)}})}},DG={transform(t,e){var{current:n,affinity:r}=t;if(n!=null){var o=Bt.transform(n,e,{affinity:r});t.current=o,o==null&&t.unref()}}},CG=["anchor","focus"];function dA(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}var L={edges(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=e,{anchor:r,focus:o}=t;return L.isBackward(t)===n?[r,o]:[o,r]},end(t){var[,e]=L.edges(t);return e},equals:(t,e)=>Bt.equals(t.anchor,e.anchor)&&Bt.equals(t.focus,e.focus),includes(t,e){if(L.isRange(e)){if(L.includes(t,e.anchor)||L.includes(t,e.focus))return!0;var[n,r]=L.edges(t),[o,i]=L.edges(e);return Bt.isBefore(n,o)&&Bt.isAfter(r,i)}var[a,u]=L.edges(t),s=!1,l=!1;return Bt.isPoint(e)?(s=Bt.compare(e,a)>=0,l=Bt.compare(e,u)<=0):(s=j.compare(e,a.path)>=0,l=j.compare(e,u.path)<=0),s&&l},intersection(t,e){var n=si(t,CG),[r,o]=L.edges(t),[i,a]=L.edges(e),u=Bt.isBefore(r,i)?i:r,s=Bt.isBefore(o,a)?o:a;return Bt.isBefore(s,u)?null:function(l){for(var c=1;c<arguments.length;c++){var f=arguments[c]!=null?arguments[c]:{};c%2?dA(Object(f),!0).forEach(function(p){Io(l,p,f[p])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(f)):dA(Object(f)).forEach(function(p){Object.defineProperty(l,p,Object.getOwnPropertyDescriptor(f,p))})}return l}({anchor:u,focus:s},n)},isBackward(t){var{anchor:e,focus:n}=t;return Bt.isAfter(e,n)},isCollapsed(t){var{anchor:e,focus:n}=t;return Bt.equals(e,n)},isExpanded:t=>!L.isCollapsed(t),isForward:t=>!L.isBackward(t),isRange:t=>On(t)&&Bt.isPoint(t.anchor)&&Bt.isPoint(t.focus),*points(t){yield[t.anchor,"anchor"],yield[t.focus,"focus"]},start(t){var[e]=L.edges(t);return e},transform(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return V1(t,r=>{if(r===null)return null;var o,i,{affinity:a="inward"}=n;if(a==="inward"){var u=L.isCollapsed(r);L.isForward(r)?(o="forward",i=u?o:"backward"):(o="backward",i=u?o:"forward")}else a==="outward"?L.isForward(r)?(o="backward",i="forward"):(o="forward",i="backward"):(o=a,i=a);var s=Bt.transform(r.anchor,e,{affinity:o}),l=Bt.transform(r.focus,e,{affinity:i});if(!s||!l)return null;r.anchor=s,r.focus=l})}},xG={transform(t,e){var{current:n,affinity:r}=t;if(n!=null){var o=L.transform(n,e,{affinity:r});t.current=o,o==null&&t.unref()}}},ij=(t,e)=>{for(var n in t){var r=t[n],o=e[n];if(On(r)&&On(o)){if(!ij(r,o))return!1}else if(Array.isArray(r)&&Array.isArray(o)){if(r.length!==o.length)return!1;for(var i=0;i<r.length;i++)if(r[i]!==o[i])return!1}else if(r!==o)return!1}for(var a in e)if(t[a]===void 0&&e[a]!==void 0)return!1;return!0},SG=["text"],AG=["anchor","focus"];function pA(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Uo(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?pA(Object(n),!0).forEach(function(r){Io(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):pA(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var ot={equals(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{loose:r=!1}=n;function o(i){return si(i,SG)}return ij(r?o(t):t,r?o(e):e)},isText:t=>On(t)&&typeof t.text=="string",isTextList:t=>Array.isArray(t)&&t.every(e=>ot.isText(e)),isTextProps:t=>t.text!==void 0,matches(t,e){for(var n in e)if(n!=="text"&&(!t.hasOwnProperty(n)||t[n]!==e[n]))return!1;return!0},decorations(t,e){var n=[Uo({},t)];for(var r of e){var o=si(r,AG),[i,a]=L.edges(r),u=[],s=0;for(var l of n){var{length:c}=l.text,f=s;if(s+=c,i.offset<=f&&a.offset>=s)Object.assign(l,o),u.push(l);else if(i.offset!==a.offset&&(i.offset===s||a.offset===f)||i.offset>s||a.offset<f||a.offset===f&&f!==0)u.push(l);else{var p=l,d=void 0,y=void 0;if(a.offset<s){var g=a.offset-f;y=Uo(Uo({},p),{},{text:p.text.slice(g)}),p=Uo(Uo({},p),{},{text:p.text.slice(0,g)})}if(i.offset>f){var v=i.offset-f;d=Uo(Uo({},p),{},{text:p.text.slice(0,v)}),p=Uo(Uo({},p),{},{text:p.text.slice(v)})}Object.assign(p,o),d&&u.push(d),u.push(p),y&&u.push(y)}}n=u}return n}};function hA(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Mc(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?hA(Object(n),!0).forEach(function(r){Io(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):hA(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var OG={transform(t,e){t.children=JS(t.children);var n=t.selection&&JS(t.selection);try{n=((r,o,i)=>{switch(i.type){case"insert_node":var{path:a,node:u}=i,s=Q.parent(r,a),l=a[a.length-1];if(l>s.children.length)throw new Error('Cannot apply an "insert_node" operation at path ['.concat(a,"] because the destination is past the end of the node."));if(s.children.splice(l,0,u),o)for(var[c,f]of L.points(o))o[f]=Bt.transform(c,i);break;case"insert_text":var{path:p,offset:d,text:y}=i;if(y.length===0)break;var g=Q.leaf(r,p),v=g.text.slice(0,d),m=g.text.slice(d);if(g.text=v+y+m,o)for(var[h,b]of L.points(o))o[b]=Bt.transform(h,i);break;case"merge_node":var{path:w}=i,E=Q.get(r,w),x=j.previous(w),C=Q.get(r,x),O=Q.parent(r,w),F=w[w.length-1];if(ot.isText(E)&&ot.isText(C))C.text+=E.text;else{if(ot.isText(E)||ot.isText(C))throw new Error('Cannot apply a "merge_node" operation at path ['.concat(w,"] to nodes of different interfaces: ").concat(E," ").concat(C));C.children.push(...E.children)}if(O.children.splice(F,1),o)for(var[R,H]of L.points(o))o[H]=Bt.transform(R,i);break;case"move_node":var{path:M,newPath:K}=i;if(j.isAncestor(M,K))throw new Error("Cannot move a path [".concat(M,"] to new path [").concat(K,"] because the destination is inside itself."));var U=Q.get(r,M),W=Q.parent(r,M),q=M[M.length-1];W.children.splice(q,1);var nt=j.transform(M,i),lt=Q.get(r,j.parent(nt)),st=nt[nt.length-1];if(lt.children.splice(st,0,U),o)for(var[at,k]of L.points(o))o[k]=Bt.transform(at,i);break;case"remove_node":var{path:S}=i,P=S[S.length-1];if(Q.parent(r,S).children.splice(P,1),o)for(var[$,Y]of L.points(o)){var V=Bt.transform($,i);if(o!=null&&V!=null)o[Y]=V;else{var it=void 0,gt=void 0;for(var[vt,Dt]of Q.texts(r)){if(j.compare(Dt,S)!==-1){gt=[vt,Dt];break}it=[vt,Dt]}var G=!1;it&&gt&&(G=j.equals(gt[1],S)?!j.hasPrevious(gt[1]):j.common(it[1],S).length<j.common(gt[1],S).length),it&&!G?($.path=it[1],$.offset=it[0].text.length):gt?($.path=gt[1],$.offset=0):o=null}}break;case"remove_text":var{path:It,offset:At,text:dt}=i;if(dt.length===0)break;var Ot=Q.leaf(r,It),Be=Ot.text.slice(0,At),$t=Ot.text.slice(At+dt.length);if(Ot.text=Be+$t,o)for(var[te,me]of L.points(o))o[me]=Bt.transform(te,i);break;case"set_node":var{path:bn,properties:zt,newProperties:Rn}=i;if(bn.length===0)throw new Error("Cannot set properties on the root node!");var Rr=Q.get(r,bn);for(var ao in Rn){if(ao==="children"||ao==="text")throw new Error('Cannot set the "'.concat(ao,'" property of nodes!'));var Ds=Rn[ao];Ds==null?delete Rr[ao]:Rr[ao]=Ds}for(var Ua in zt)Rn.hasOwnProperty(Ua)||delete Rr[Ua];break;case"set_selection":var{newProperties:Mr}=i;if(Mr==null)o=Mr;else{if(o==null){if(!L.isRange(Mr))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(JSON.stringify(Mr)," when there is no current selection."));o=Mc({},Mr)}for(var uo in Mr){var Ro=Mr[uo];if(Ro==null){if(uo==="anchor"||uo==="focus")throw new Error('Cannot remove the "'.concat(uo,'" selection property'));delete o[uo]}else o[uo]=Ro}}break;case"split_node":var{path:wn,position:En,properties:Dn}=i;if(wn.length===0)throw new Error('Cannot apply a "split_node" operation at path ['.concat(wn,"] because the root node cannot be split."));var Tn,rn=Q.get(r,wn),vr=Q.parent(r,wn),Oc=wn[wn.length-1];if(ot.isText(rn)){var hi=rn.text.slice(0,En),Mo=rn.text.slice(En);rn.text=hi,Tn=Mc(Mc({},Dn),{},{text:Mo})}else{var Cs=rn.children.slice(0,En),Wa=rn.children.slice(En);rn.children=Cs,Tn=Mc(Mc({},Dn),{},{children:Wa})}if(vr.children.splice(Oc+1,0,Tn),o)for(var[xs,zr]of L.points(o))o[zr]=Bt.transform(xs,i)}return o})(t,n,e)}finally{t.children=QS(t.children),t.selection=n?Xu(n)?QS(n):n:null}}},kG=["text"],BG=["children"];function gA(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function vA(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?gA(Object(n),!0).forEach(function(r){Io(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):gA(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var FG={insertNodes(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};D.withoutNormalizing(t,()=>{var{hanging:r=!1,voids:o=!1,mode:i="lowest"}=n,{at:a,match:u,select:s}=n;if(Q.isNode(e)&&(e=[e]),e.length!==0){var[l]=e;if(a||(a=t.selection?t.selection:t.children.length>0?D.end(t,[]):[0],s=!0),s==null&&(s=!1),L.isRange(a))if(r||(a=D.unhangRange(t,a)),L.isCollapsed(a))a=a.anchor;else{var[,c]=L.edges(a),f=D.pointRef(t,c);N.delete(t,{at:a}),a=f.unref()}if(Bt.isPoint(a)){u==null&&(u=ot.isText(l)?x=>ot.isText(x):t.isInline(l)?x=>ot.isText(x)||D.isInline(t,x):x=>D.isBlock(t,x));var[p]=D.nodes(t,{at:a.path,match:u,mode:i,voids:o});if(!p)return;var[,d]=p,y=D.pathRef(t,d),g=D.isEnd(t,a,d);N.splitNodes(t,{at:a,match:u,mode:i,voids:o});var v=y.unref();a=g?j.next(v):v}var m=j.parent(a),h=a[a.length-1];if(o||!D.void(t,{at:m})){for(var b of e){var w=m.concat(h);h++,t.apply({type:"insert_node",path:w,node:b}),a=j.next(a)}if(a=j.previous(a),s){var E=D.end(t,a);E&&N.select(t,E)}}}})},liftNodes(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};D.withoutNormalizing(t,()=>{var{at:n=t.selection,mode:r="lowest",voids:o=!1}=e,{match:i}=e;if(i==null&&(i=j.isPath(n)?Fs(t,n):b=>D.isBlock(t,b)),n){var a=D.nodes(t,{at:n,match:i,mode:r,voids:o}),u=Array.from(a,b=>{var[,w]=b;return D.pathRef(t,w)});for(var s of u){var l=s.unref();if(l.length<2)throw new Error("Cannot lift node at a path [".concat(l,"] because it has a depth of less than `2`."));var c=D.node(t,j.parent(l)),[f,p]=c,d=l[l.length-1],{length:y}=f.children;if(y===1){var g=j.next(p);N.moveNodes(t,{at:l,to:g,voids:o}),N.removeNodes(t,{at:p,voids:o})}else if(d===0)N.moveNodes(t,{at:l,to:p,voids:o});else if(d===y-1){var v=j.next(p);N.moveNodes(t,{at:l,to:v,voids:o})}else{var m=j.next(l),h=j.next(p);N.splitNodes(t,{at:m,voids:o}),N.moveNodes(t,{at:l,to:h,voids:o})}}}})},mergeNodes(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};D.withoutNormalizing(t,()=>{var{match:n,at:r=t.selection}=e,{hanging:o=!1,voids:i=!1,mode:a="lowest"}=e;if(r){if(n==null)if(j.isPath(r)){var[u]=D.parent(t,r);n=F=>u.children.includes(F)}else n=F=>D.isBlock(t,F);if(!o&&L.isRange(r)&&(r=D.unhangRange(t,r)),L.isRange(r))if(L.isCollapsed(r))r=r.anchor;else{var[,s]=L.edges(r),l=D.pointRef(t,s);N.delete(t,{at:r}),r=l.unref(),e.at==null&&N.select(t,r)}var[c]=D.nodes(t,{at:r,match:n,voids:i,mode:a}),f=D.previous(t,{at:r,match:n,voids:i,mode:a});if(c&&f){var[p,d]=c,[y,g]=f;if(d.length!==0&&g.length!==0){var v,m,h=j.next(g),b=j.common(d,g),w=j.isSibling(d,g),E=Array.from(D.levels(t,{at:d}),F=>{var[R]=F;return R}).slice(b.length).slice(0,-1),x=D.above(t,{at:d,mode:"highest",match:F=>E.includes(F)&&aj(t,F)}),C=x&&D.pathRef(t,x[1]);if(ot.isText(p)&&ot.isText(y)){var O=si(p,kG);m=y.text.length,v=O}else{if(!ct.isElement(p)||!ct.isElement(y))throw new Error("Cannot merge the node at path [".concat(d,"] with the previous sibling because it is not the same kind: ").concat(JSON.stringify(p)," ").concat(JSON.stringify(y)));O=si(p,BG),m=y.children.length,v=O}w||N.moveNodes(t,{at:d,to:h,voids:i}),C&&N.removeNodes(t,{at:C.current,voids:i}),ct.isElement(y)&&D.isEmpty(t,y)||ot.isText(y)&&y.text===""&&g[g.length-1]!==0?N.removeNodes(t,{at:g,voids:i}):t.apply({type:"merge_node",path:h,position:m,properties:v}),C&&C.unref()}}}})},moveNodes(t,e){D.withoutNormalizing(t,()=>{var{to:n,at:r=t.selection,mode:o="lowest",voids:i=!1}=e,{match:a}=e;if(r){a==null&&(a=j.isPath(r)?Fs(t,r):d=>D.isBlock(t,d));var u=D.pathRef(t,n),s=D.nodes(t,{at:r,match:a,mode:o,voids:i}),l=Array.from(s,d=>{var[,y]=d;return D.pathRef(t,y)});for(var c of l){var f=c.unref(),p=u.current;f.length!==0&&t.apply({type:"move_node",path:f,newPath:p}),u.current&&j.isSibling(p,f)&&j.isAfter(p,f)&&(u.current=j.next(u.current))}u.unref()}})},removeNodes(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};D.withoutNormalizing(t,()=>{var{hanging:n=!1,voids:r=!1,mode:o="lowest"}=e,{at:i=t.selection,match:a}=e;if(i){a==null&&(a=j.isPath(i)?Fs(t,i):p=>D.isBlock(t,p)),!n&&L.isRange(i)&&(i=D.unhangRange(t,i));var u=D.nodes(t,{at:i,match:a,mode:o,voids:r}),s=Array.from(u,p=>{var[,d]=p;return D.pathRef(t,d)});for(var l of s){var c=l.unref();if(c){var[f]=D.node(t,c);t.apply({type:"remove_node",path:c,node:f})}}}})},setNodes(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};D.withoutNormalizing(t,()=>{var{match:r,at:o=t.selection}=n,{hanging:i=!1,mode:a="lowest",split:u=!1,voids:s=!1}=n;if(o){if(r==null&&(r=j.isPath(o)?Fs(t,o):E=>D.isBlock(t,E)),!i&&L.isRange(o)&&(o=D.unhangRange(t,o)),u&&L.isRange(o)){if(L.isCollapsed(o)&&D.leaf(t,o.anchor)[0].text.length>0)return;var l=D.rangeRef(t,o,{affinity:"inward"}),[c,f]=L.edges(o),p=a==="lowest"?"lowest":"highest",d=D.isEnd(t,f,f.path);N.splitNodes(t,{at:f,match:r,mode:p,voids:s,always:!d});var y=D.isStart(t,c,c.path);N.splitNodes(t,{at:c,match:r,mode:p,voids:s,always:!y}),o=l.unref(),n.at==null&&N.select(t,o)}for(var[g,v]of D.nodes(t,{at:o,match:r,mode:a,voids:s})){var m={},h={};if(v.length!==0){var b=!1;for(var w in e)w!=="children"&&w!=="text"&&e[w]!==g[w]&&(b=!0,g.hasOwnProperty(w)&&(m[w]=g[w]),e[w]!=null&&(h[w]=e[w]));b&&t.apply({type:"set_node",path:v,properties:m,newProperties:h})}}}})},splitNodes(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};D.withoutNormalizing(t,()=>{var{mode:n="lowest",voids:r=!1}=e,{match:o,at:i=t.selection,height:a=0,always:u=!1}=e;if(o==null&&(o=U=>D.isBlock(t,U)),L.isRange(i)&&(i=_G(t,i)),j.isPath(i)){var s=i,l=D.point(t,s),[c]=D.parent(t,s);o=U=>U===c,a=l.path.length-s.length+1,i=l,u=!0}if(i){var f=D.pointRef(t,i,{affinity:"backward"}),[p]=D.nodes(t,{at:i,match:o,mode:n,voids:r});if(p){var d=D.void(t,{at:i,mode:"highest"});if(!r&&d){var[y,g]=d;if(ct.isElement(y)&&t.isInline(y)){var v=D.after(t,g);if(!v){var m=j.next(g);N.insertNodes(t,{text:""},{at:m,voids:r}),v=D.point(t,m)}i=v,u=!0}a=i.path.length-g.length+1,u=!0}var h=D.pointRef(t,i),b=i.path.length-a,[,w]=p,E=i.path.slice(0,b),x=a===0?i.offset:i.path[b]+0;for(var[C,O]of D.levels(t,{at:E,reverse:!0,voids:r})){var F=!1;if(O.length<w.length||O.length===0||!r&&D.isVoid(t,C))break;var R=f.current,H=D.isEnd(t,R,O);if(u||!f||!D.isEdge(t,R,O)){F=!0;var M=Q.extractProps(C);t.apply({type:"split_node",path:O,position:x,properties:M})}x=O[O.length-1]+(F||H?1:0)}if(e.at==null){var K=h.current||D.end(t,[]);N.select(t,K)}f.unref(),h.unref()}}})},unsetNodes(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Array.isArray(e)||(e=[e]);var r={};for(var o of e)r[o]=null;N.setNodes(t,r,n)},unwrapNodes(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};D.withoutNormalizing(t,()=>{var{mode:n="lowest",split:r=!1,voids:o=!1}=e,{at:i=t.selection,match:a}=e;if(i){a==null&&(a=j.isPath(i)?Fs(t,i):p=>D.isBlock(t,p)),j.isPath(i)&&(i=D.range(t,i));var u=L.isRange(i)?D.rangeRef(t,i):null,s=D.nodes(t,{at:i,match:a,mode:n,voids:o}),l=Array.from(s,p=>{var[,d]=p;return D.pathRef(t,d)}).reverse(),c=function(p){var d=p.unref(),[y]=D.node(t,d),g=D.range(t,d);r&&u&&(g=L.intersection(u.current,g)),N.liftNodes(t,{at:g,match:v=>ct.isAncestor(y)&&y.children.includes(v),voids:o})};for(var f of l)c(f);u&&u.unref()}})},wrapNodes(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};D.withoutNormalizing(t,()=>{var{mode:r="lowest",split:o=!1,voids:i=!1}=n,{match:a,at:u=t.selection}=n;if(u){if(a==null&&(a=j.isPath(u)?Fs(t,u):t.isInline(e)?v=>D.isInline(t,v)||ot.isText(v):v=>D.isBlock(t,v)),o&&L.isRange(u)){var[s,l]=L.edges(u),c=D.rangeRef(t,u,{affinity:"inward"});N.splitNodes(t,{at:l,match:a,voids:i}),N.splitNodes(t,{at:s,match:a,voids:i}),u=c.unref(),n.at==null&&N.select(t,u)}var f=Array.from(D.nodes(t,{at:u,match:t.isInline(e)?v=>D.isBlock(t,v):v=>D.isEditor(v),mode:"lowest",voids:i}));for(var[,p]of f){var d=L.isRange(u)?L.intersection(u,D.range(t,p)):u;if(d){var y=Array.from(D.nodes(t,{at:d,match:a,mode:r,voids:i}));if(y.length>0){var g=function(){var[v]=y,m=y[y.length-1],[,h]=v,[,b]=m;if(h.length===0&&b.length===0)return"continue";var w=j.equals(h,b)?j.parent(h):j.common(h,b),E=D.range(t,h,b),x=D.node(t,w),[C]=x,O=w.length+1,F=j.next(b.slice(0,O)),R=vA(vA({},e),{},{children:[]});N.insertNodes(t,R,{at:F,voids:i}),N.moveNodes(t,{at:E,match:H=>ct.isAncestor(C)&&C.children.includes(H),to:F.concat(0),voids:i})}();if(g==="continue")continue}}}}})}},aj=(t,e)=>{if(ct.isElement(e)){var n=e;return!!D.isVoid(t,e)||n.children.length===1&&aj(t,n.children[0])}return!D.isEditor(e)},_G=(t,e)=>{if(L.isCollapsed(e))return e.anchor;var[,n]=L.edges(e),r=D.pointRef(t,n);return N.delete(t,{at:e}),r.unref()},Fs=(t,e)=>{var[n]=D.node(t,e);return r=>r===n};function mA(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function yA(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?mA(Object(n),!0).forEach(function(r){Io(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):mA(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var TG={collapse(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{edge:n="anchor"}=e,{selection:r}=t;if(r){if(n==="anchor")N.select(t,r.anchor);else if(n==="focus")N.select(t,r.focus);else if(n==="start"){var[o]=L.edges(r);N.select(t,o)}else if(n==="end"){var[,i]=L.edges(r);N.select(t,i)}}},deselect(t){var{selection:e}=t;e&&t.apply({type:"set_selection",properties:e,newProperties:null})},move(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{selection:n}=t,{distance:r=1,unit:o="character",reverse:i=!1}=e,{edge:a=null}=e;if(n){a==="start"&&(a=L.isBackward(n)?"focus":"anchor"),a==="end"&&(a=L.isBackward(n)?"anchor":"focus");var{anchor:u,focus:s}=n,l={distance:r,unit:o},c={};if(a==null||a==="anchor"){var f=i?D.before(t,u,l):D.after(t,u,l);f&&(c.anchor=f)}if(a==null||a==="focus"){var p=i?D.before(t,s,l):D.after(t,s,l);p&&(c.focus=p)}N.setSelection(t,c)}},select(t,e){var{selection:n}=t;if(e=D.range(t,e),n)N.setSelection(t,e);else{if(!L.isRange(e))throw new Error("When setting the selection and the current selection is `null` you must provide at least an `anchor` and `focus`, but you passed: ".concat(JSON.stringify(e)));t.apply({type:"set_selection",properties:n,newProperties:e})}},setPoint(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{selection:r}=t,{edge:o="both"}=n;if(r){o==="start"&&(o=L.isBackward(r)?"focus":"anchor"),o==="end"&&(o=L.isBackward(r)?"anchor":"focus");var{anchor:i,focus:a}=r,u=o==="anchor"?i:a;N.setSelection(t,{[o==="anchor"?"anchor":"focus"]:yA(yA({},u),e)})}},setSelection(t,e){var{selection:n}=t,r={},o={};if(n){for(var i in e)(i==="anchor"&&e.anchor!=null&&!Bt.equals(e.anchor,n.anchor)||i==="focus"&&e.focus!=null&&!Bt.equals(e.focus,n.focus)||i!=="anchor"&&i!=="focus"&&e[i]!==n[i])&&(r[i]=n[i],o[i]=e[i]);Object.keys(r).length>0&&t.apply({type:"set_selection",properties:r,newProperties:o})}}},PG={delete(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};D.withoutNormalizing(t,()=>{var{reverse:n=!1,unit:r="character",distance:o=1,voids:i=!1}=e,{at:a=t.selection,hanging:u=!1}=e;if(a){if(L.isRange(a)&&L.isCollapsed(a)&&(a=a.anchor),Bt.isPoint(a)){var s=D.void(t,{at:a,mode:"highest"});if(!i&&s){var[,l]=s;a=l}else{var c={unit:r,distance:o};a={anchor:a,focus:n?D.before(t,a,c)||D.start(t,[]):D.after(t,a,c)||D.end(t,[])},u=!0}}if(j.isPath(a))N.removeNodes(t,{at:a,voids:i});else if(!L.isCollapsed(a)){if(!u){var[,f]=L.edges(a),p=D.end(t,[]);Bt.equals(f,p)||(a=D.unhangRange(t,a,{voids:i}))}var[d,y]=L.edges(a),g=D.above(t,{match:gt=>D.isBlock(t,gt),at:d,voids:i}),v=D.above(t,{match:gt=>D.isBlock(t,gt),at:y,voids:i}),m=g&&v&&!j.equals(g[1],v[1]),h=j.equals(d.path,y.path),b=i?null:D.void(t,{at:d,mode:"highest"}),w=i?null:D.void(t,{at:y,mode:"highest"});if(b){var E=D.before(t,d);E&&g&&j.isAncestor(g[1],E.path)&&(d=E)}if(w){var x=D.after(t,y);x&&v&&j.isAncestor(v[1],x.path)&&(y=x)}var C,O=[];for(var F of D.nodes(t,{at:a,voids:i})){var[R,H]=F;C&&j.compare(H,C)===0||(!i&&D.isVoid(t,R)||!j.isCommon(H,d.path)&&!j.isCommon(H,y.path))&&(O.push(F),C=H)}var M=Array.from(O,gt=>{var[,vt]=gt;return D.pathRef(t,vt)}),K=D.pointRef(t,d),U=D.pointRef(t,y);if(!h&&!b){var W=K.current,[q]=D.leaf(t,W),{path:nt}=W,{offset:lt}=d,st=q.text.slice(lt);st.length>0&&t.apply({type:"remove_text",path:nt,offset:lt,text:st})}for(var at of M){var k=at.unref();N.removeNodes(t,{at:k,voids:i})}if(!w){var S=U.current,[P]=D.leaf(t,S),{path:$}=S,Y=h?d.offset:0,V=P.text.slice(Y,y.offset);V.length>0&&t.apply({type:"remove_text",path:$,offset:Y,text:V})}!h&&m&&U.current&&K.current&&N.mergeNodes(t,{at:U.current,hanging:!0,voids:i});var it=n?K.unref()||U.unref():U.unref()||K.unref();e.at==null&&it&&N.select(t,it)}}})},insertFragment(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};D.withoutNormalizing(t,()=>{var{hanging:r=!1,voids:o=!1}=n,{at:i=t.selection}=n;if(e.length&&i){if(L.isRange(i))if(r||(i=D.unhangRange(t,i)),L.isCollapsed(i))i=i.anchor;else{var[,a]=L.edges(i);if(!o&&D.void(t,{at:a}))return;var u=D.pointRef(t,a);N.delete(t,{at:i}),i=u.unref()}else j.isPath(i)&&(i=D.start(t,i));if(o||!D.void(t,{at:i})){var s=D.above(t,{at:i,match:S=>D.isInline(t,S),mode:"highest",voids:o});if(s){var[,l]=s;D.isEnd(t,i,l)?i=D.after(t,l):D.isStart(t,i,l)&&(i=D.before(t,l))}var c=D.above(t,{match:S=>D.isBlock(t,S),at:i,voids:o}),[,f]=c,p=D.isStart(t,i,f),d=D.isEnd(t,i,f),y=p&&d,g=!p||p&&d,v=!d,[,m]=Q.first({children:e},[]),[,h]=Q.last({children:e},[]),b=[],w=S=>{var[P,$]=S;return $.length!==0&&(!!y||!(g&&j.isAncestor($,m)&&ct.isElement(P)&&!t.isVoid(P)&&!t.isInline(P))&&!(v&&j.isAncestor($,h)&&ct.isElement(P)&&!t.isVoid(P)&&!t.isInline(P)))};for(var E of Q.nodes({children:e},{pass:w}))w(E)&&b.push(E);var x=[],C=[],O=[],F=!0,R=!1;for(var[H]of b)ct.isElement(H)&&!t.isInline(H)?(F=!1,R=!0,C.push(H)):F?x.push(H):O.push(H);var[M]=D.nodes(t,{at:i,match:S=>ot.isText(S)||D.isInline(t,S),mode:"highest",voids:o}),[,K]=M,U=D.isStart(t,i,K),W=D.isEnd(t,i,K),q=D.pathRef(t,d?j.next(f):f),nt=D.pathRef(t,W?j.next(K):K),lt=D.pathRef(t,f);N.splitNodes(t,{at:i,match:S=>R?D.isBlock(t,S):ot.isText(S)||D.isInline(t,S),mode:R?"lowest":"highest",voids:o});var st=D.pathRef(t,!U||U&&W?j.next(K):K);if(N.insertNodes(t,x,{at:st.current,match:S=>ot.isText(S)||D.isInline(t,S),mode:"highest",voids:o}),y&&C.length&&N.delete(t,{at:lt.unref(),voids:o}),N.insertNodes(t,C,{at:q.current,match:S=>D.isBlock(t,S),mode:"lowest",voids:o}),N.insertNodes(t,O,{at:nt.current,match:S=>ot.isText(S)||D.isInline(t,S),mode:"highest",voids:o}),!n.at){var at;at=O.length>0?j.previous(nt.current):C.length>0?j.previous(q.current):j.previous(st.current);var k=D.end(t,at);N.select(t,k)}st.unref(),q.unref(),nt.unref()}}})},insertText(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};D.withoutNormalizing(t,()=>{var{voids:r=!1}=n,{at:o=t.selection}=n;if(o){if(j.isPath(o)&&(o=D.range(t,o)),L.isRange(o))if(L.isCollapsed(o))o=o.anchor;else{var i=L.end(o);if(!r&&D.void(t,{at:i}))return;var a=D.pointRef(t,i);N.delete(t,{at:o,voids:r}),o=a.unref(),N.setSelection(t,{anchor:o,focus:o})}if(r||!D.void(t,{at:o})){var{path:u,offset:s}=o;e.length>0&&t.apply({type:"insert_text",path:u,offset:s,text:e})}}})}};function bA(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Hh(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?bA(Object(n),!0).forEach(function(r){Io(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):bA(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var N=Hh(Hh(Hh(Hh({},OG),FG),TG),PG),Z4="[object Map]",J4="[object Set]",jG=/^\[object .+?Constructor\]$/,NG=/^(?:0|[1-9]\d*)$/,IG="[\\ud800-\\udfff]",Q4="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",tE="\\ud83c[\\udffb-\\udfff]",uj="[^\\ud800-\\udfff]",sj="(?:\\ud83c[\\udde6-\\uddff]){2}",lj="[\\ud800-\\udbff][\\udc00-\\udfff]",wA="(?:"+Q4+"|"+tE+")?",LG="[\\ufe0e\\ufe0f]?"+wA+("(?:\\u200d(?:"+[uj,sj,lj].join("|")+")[\\ufe0e\\ufe0f]?"+wA+")*"),RG="(?:"+[uj+Q4+"?",Q4,sj,lj,IG].join("|")+")",MG=RegExp(tE+"(?="+tE+")|"+RG+LG,"g"),zG=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),$G=typeof se=="object"&&se&&se.Object===Object&&se,HG=typeof self=="object"&&self&&self.Object===Object&&self,ds=$G||HG||Function("return this")();function VG(t,e){return function(n,r){for(var o=-1,i=n?n.length:0,a=Array(i);++o<i;)a[o]=r(n[o],o,n);return a}(e,function(n){return t[n]})}function UG(t){var e=-1,n=Array(t.size);return t.forEach(function(r,o){n[++e]=[o,r]}),n}function WG(t){var e=-1,n=Array(t.size);return t.forEach(function(r){n[++e]=r}),n}function GG(t){return function(e){return zG.test(e)}(t)?function(e){return e.match(MG)||[]}(t):function(e){return e.split("")}(t)}var EA,DA,qG=Function.prototype,U1=Object.prototype,Sy=ds["__core-js_shared__"],CA=function(){var t=/[^.]+$/.exec(Sy&&Sy.keys&&Sy.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),cj=qG.toString,Yg=U1.hasOwnProperty,Up=U1.toString,KG=RegExp("^"+cj.call(Yg).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),xA=ds.Symbol,Ay=xA?xA.iterator:void 0,YG=U1.propertyIsEnumerable,XG=(EA=Object.keys,DA=Object,function(t){return EA(DA(t))}),eE=Wp(ds,"DataView"),nE=Wp(ds,"Map"),rE=Wp(ds,"Promise"),oE=Wp(ds,"Set"),iE=Wp(ds,"WeakMap"),ZG=ps(eE),JG=ps(nE),QG=ps(rE),tq=ps(oE),eq=ps(iE);function nq(t,e){var n=fj(t)||function(a){return function(u){return hj(u)&&z5(u)}(a)&&Yg.call(a,"callee")&&(!YG.call(a,"callee")||Up.call(a)=="[object Arguments]")}(t)?function(a,u){for(var s=-1,l=Array(a);++s<a;)l[s]=u(s);return l}(t.length,String):[],r=n.length,o=!!r;for(var i in t)!e&&!Yg.call(t,i)||o&&(i=="length"||iq(i,r))||n.push(i);return n}function rq(t){if(!pj(t)||function(n){return!!CA&&CA in n}(t))return!1;var e=dj(t)||function(n){var r=!1;if(n!=null&&typeof n.toString!="function")try{r=!!(n+"")}catch{}return r}(t)?KG:jG;return e.test(ps(t))}function oq(t){if(n=(e=t)&&e.constructor,r=typeof n=="function"&&n.prototype||U1,e!==r)return XG(t);var e,n,r,o=[];for(var i in Object(t))Yg.call(t,i)&&i!="constructor"&&o.push(i);return o}function Wp(t,e){var n=function(r,o){return r==null?void 0:r[o]}(t,e);return rq(n)?n:void 0}var cu=function(t){return Up.call(t)};function iq(t,e){return!!(e=e??9007199254740991)&&(typeof t=="number"||NG.test(t))&&t>-1&&t%1==0&&t<e}function ps(t){if(t!=null){try{return cj.call(t)}catch{}try{return t+""}catch{}}return""}(eE&&cu(new eE(new ArrayBuffer(1)))!="[object DataView]"||nE&&cu(new nE)!=Z4||rE&&cu(rE.resolve())!="[object Promise]"||oE&&cu(new oE)!=J4||iE&&cu(new iE)!="[object WeakMap]")&&(cu=function(t){var e=Up.call(t),n=e=="[object Object]"?t.constructor:void 0,r=n?ps(n):void 0;if(r)switch(r){case ZG:return"[object DataView]";case JG:return Z4;case QG:return"[object Promise]";case tq:return J4;case eq:return"[object WeakMap]"}return e});var fj=Array.isArray;function z5(t){return t!=null&&function(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=9007199254740991}(t.length)&&!dj(t)}function dj(t){var e=pj(t)?Up.call(t):"";return e=="[object Function]"||e=="[object GeneratorFunction]"}function pj(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function hj(t){return!!t&&typeof t=="object"}function aq(t){return t?VG(t,function(e){return z5(e)?nq(e):oq(e)}(t)):[]}var SA=function(t){if(!t)return[];if(z5(t))return function(n){return typeof n=="string"||!fj(n)&&hj(n)&&Up.call(n)=="[object String]"}(t)?GG(t):function(n,r){var o=-1,i=n.length;for(r||(r=Array(i));++o<i;)r[o]=n[o];return r}(t);if(Ay&&t[Ay])return function(n){for(var r,o=[];!(r=n.next()).done;)o.push(r.value);return o}(t[Ay]());var e=cu(t);return(e==Z4?UG:e==J4?WG:aq)(t)};function AA(t){return t!==null&&typeof t=="object"&&"constructor"in t&&t.constructor===Object}function $5(t,e){t===void 0&&(t={}),e===void 0&&(e={}),Object.keys(e).forEach(function(n){t[n]===void 0?t[n]=e[n]:AA(e[n])&&AA(t[n])&&Object.keys(e[n]).length>0&&$5(t[n],e[n])})}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 Gp(){var t=typeof document<"u"?document:{};return $5(t,gj),t}var uq={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(t){return typeof setTimeout>"u"?(t(),null):setTimeout(t,0)},cancelAnimationFrame:function(t){typeof setTimeout<"u"&&clearTimeout(t)}};function hs(){var t=typeof window<"u"?window:{};return $5(t,uq),t}function aE(t){return aE=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},aE(t)}function Xg(t,e){return Xg=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},Xg(t,e)}function sq(){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 uE(t,e,n){return uE=sq()?Reflect.construct:function(r,o,i){var a=[null];a.push.apply(a,o);var u=new(Function.bind.apply(r,a));return i&&Xg(u,i.prototype),u},uE.apply(null,arguments)}function sE(t){var e=typeof Map=="function"?new Map:void 0;return sE=function(n){if(n===null||!function(o){return Function.toString.call(o).indexOf("[native code]")!==-1}(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(e!==void 0){if(e.has(n))return e.get(n);e.set(n,r)}function r(){return uE(n,arguments,aE(this).constructor)}return r.prototype=Object.create(n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Xg(r,n)},sE(t)}var Qi=function(t){var e,n;function r(o){var i,a,u;return i=t.call.apply(t,[this].concat(o))||this,a=function(s){if(s===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s}(i),u=a.__proto__,Object.defineProperty(a,"__proto__",{get:function(){return u},set:function(s){u.__proto__=s}}),i}return n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n,r}(sE(Array));function W1(t){t===void 0&&(t=[]);var e=[];return t.forEach(function(n){Array.isArray(n)?e.push.apply(e,W1(n)):e.push(n)}),e}function vj(t,e){return Array.prototype.filter.call(t,e)}function B(t,e){var n=hs(),r=Gp(),o=[];if(!e&&t instanceof Qi)return t;if(!t)return new Qi(o);if(typeof t=="string"){var i=t.trim();if(i.indexOf("<")>=0&&i.indexOf(">")>=0){var a="div";i.indexOf("<li")===0&&(a="ul"),i.indexOf("<tr")===0&&(a="tbody"),i.indexOf("<td")!==0&&i.indexOf("<th")!==0||(a="tr"),i.indexOf("<tbody")===0&&(a="table"),i.indexOf("<option")===0&&(a="select");var u=r.createElement(a);u.innerHTML=i;for(var s=0;s<u.childNodes.length;s+=1)o.push(u.childNodes[s])}else o=function(l,c){if(typeof l!="string")return[l];for(var f=[],p=c.querySelectorAll(l),d=0;d<p.length;d+=1)f.push(p[d]);return f}(t.trim(),e||r)}else if(t.nodeType||t===n||t===r)o.push(t);else if(Array.isArray(t)){if(t instanceof Qi)return t;o=t}return new Qi(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 jl(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=W1(e.map(function(o){return o.split(" ")}));return this.forEach(function(o){var i;(i=o.classList).add.apply(i,r)}),this}function Nl(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=W1(e.map(function(o){return o.split(" ")}));return this.forEach(function(o){var i;(i=o.classList).remove.apply(i,r)}),this}function Il(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=W1(e.map(function(o){return o.split(" ")}));return vj(this,function(o){return r.filter(function(i){return o.classList.contains(i)}).length>0}).length>0}function Tr(t,e){if(arguments.length===1&&typeof t=="string")return this[0]?this[0].getAttribute(t):void 0;for(var n=0;n<this.length;n+=1)if(arguments.length===2)this[n].setAttribute(t,e);else for(var r in t)this[n][r]=t[r],this[n].setAttribute(r,t[r]);return this}function Zg(t){for(var e=0;e<this.length;e+=1)this[e].removeAttribute(t);return this}function Ll(){var t=this[0];if(t){var e,n={};if(t.dataset)for(var r in t.dataset)n[r]=t.dataset[r];else for(var o=0;o<t.attributes.length;o+=1){var i=t.attributes[o];i.name.indexOf("data-")>=0&&(n[e=i.name.split("data-")[1],e.toLowerCase().replace(/-(.)/g,function(u,s){return s.toUpperCase()})]=i.value)}for(var a in n)n[a]==="false"?n[a]=!1:n[a]==="true"?n[a]=!0:parseFloat(n[a])===1*n[a]&&(n[a]*=1);return n}}function Bo(t){if(t===void 0){var e=this[0];if(!e)return;if(e.multiple&&e.nodeName.toLowerCase()==="select"){for(var n=[],r=0;r<e.selectedOptions.length;r+=1)n.push(e.selectedOptions[r].value);return n}return e.value}for(var o=0;o<this.length;o+=1){var i=this[o];if(Array.isArray(t)&&i.multiple&&i.nodeName.toLowerCase()==="select")for(var a=0;a<i.options.length;a+=1)i.options[a].selected=t.indexOf(i.options[a].value)>=0;else i.value=t}return this}function Fo(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=e[0],o=e[1],i=e[2],a=e[3];function u(g){var v=g.target;if(v){var m=g.target.dom7EventData||[];if(m.indexOf(g)<0&&m.unshift(g),B(v).is(o))i.apply(v,m);else for(var h=B(v).parents(),b=0;b<h.length;b+=1)B(h[b]).is(o)&&i.apply(h[b],m)}}function s(g){var v=g&&g.target&&g.target.dom7EventData||[];v.indexOf(g)<0&&v.unshift(g),i.apply(this,v)}typeof e[1]=="function"&&(r=e[0],i=e[1],a=e[2],o=void 0),a||(a=!1);for(var l,c=r.split(" "),f=0;f<this.length;f+=1){var p=this[f];if(o)for(l=0;l<c.length;l+=1){var d=c[l];p.dom7LiveListeners||(p.dom7LiveListeners={}),p.dom7LiveListeners[d]||(p.dom7LiveListeners[d]=[]),p.dom7LiveListeners[d].push({listener:i,proxyListener:u}),p.addEventListener(d,u,a)}else for(l=0;l<c.length;l+=1){var y=c[l];p.dom7Listeners||(p.dom7Listeners={}),p.dom7Listeners[y]||(p.dom7Listeners[y]=[]),p.dom7Listeners[y].push({listener:i,proxyListener:s}),p.addEventListener(y,s,a)}}return this}function OA(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=e[0],o=e[1],i=e[2],a=e[3];typeof e[1]=="function"&&(r=e[0],i=e[1],a=e[2],o=void 0),a||(a=!1);for(var u=r.split(" "),s=0;s<u.length;s+=1)for(var l=u[s],c=0;c<this.length;c+=1){var f=this[c],p=void 0;if(!o&&f.dom7Listeners?p=f.dom7Listeners[l]:o&&f.dom7LiveListeners&&(p=f.dom7LiveListeners[l]),p&&p.length)for(var d=p.length-1;d>=0;d-=1){var y=p[d];i&&y.listener===i||i&&y.listener&&y.listener.dom7proxy&&y.listener.dom7proxy===i?(f.removeEventListener(l,y.proxyListener,a),p.splice(d,1)):i||(f.removeEventListener(l,y.proxyListener,a),p.splice(d,1))}}return this}function Jg(){var t=hs();return this[0]===t?t.innerWidth:this.length>0?parseFloat(this.css("width")):null}function Qg(){var t=hs();return this[0]===t?t.innerHeight:this.length>0?parseFloat(this.css("height")):null}function kA(){if(this.length>0){var t=hs(),e=Gp(),n=this[0],r=n.getBoundingClientRect(),o=e.body,i=n.clientTop||o.clientTop||0,a=n.clientLeft||o.clientLeft||0,u=n===t?t.scrollY:n.scrollTop,s=n===t?t.scrollX:n.scrollLeft;return{top:r.top+u-i,left:r.left+s-a}}return null}function Rl(){for(var t=0;t<this.length;t+=1)this[t].style.display="none";return this}function tv(){for(var t=hs(),e=0;e<this.length;e+=1){var n=this[e];n.style.display==="none"&&(n.style.display=""),t.getComputedStyle(n,null).getPropertyValue("display")==="none"&&(n.style.display="block")}return this}function ev(t,e){var n,r=hs();if(arguments.length===1){if(typeof t!="string"){for(n=0;n<this.length;n+=1)for(var o in t)this[n].style[o]=t[o];return this}if(this[0])return r.getComputedStyle(this[0],null).getPropertyValue(t)}if(arguments.length===2&&typeof t=="string"){for(n=0;n<this.length;n+=1)this[n].style[t]=e;return this}return this}function nv(t){return t?(this.forEach(function(e,n){t.apply(e,[e,n])}),this):this}function BA(t){return B(vj(this,t))}function xa(t){if(t===void 0)return this[0]?this[0].innerHTML:null;for(var e=0;e<this.length;e+=1)this[e].innerHTML=t;return this}function rv(t){if(t===void 0)return this[0]?this[0].textContent.trim():null;for(var e=0;e<this.length;e+=1)this[e].textContent=t;return this}function FA(t){var e,n,r=hs(),o=Gp(),i=this[0];if(!i||t===void 0)return!1;if(typeof t=="string"){if(i.matches)return i.matches(t);if(i.webkitMatchesSelector)return i.webkitMatchesSelector(t);if(i.msMatchesSelector)return i.msMatchesSelector(t);for(e=B(t),n=0;n<e.length;n+=1)if(e[n]===i)return!0;return!1}if(t===o)return i===o;if(t===r)return i===r;if(t.nodeType||t instanceof Qi){for(e=t.nodeType?[t]:t,n=0;n<e.length;n+=1)if(e[n]===i)return!0;return!1}return!1}function Pr(){for(var t,e=Gp(),n=0;n<arguments.length;n+=1){t=n<0||arguments.length<=n?void 0:arguments[n];for(var r=0;r<this.length;r+=1)if(typeof t=="string"){var o=e.createElement("div");for(o.innerHTML=t;o.firstChild;)this[r].appendChild(o.firstChild)}else if(t instanceof Qi)for(var i=0;i<t.length;i+=1)this[r].appendChild(t[i]);else this[r].appendChild(t)}return this}function _A(t){var e,n,r=Gp();for(e=0;e<this.length;e+=1)if(typeof t=="string"){var o=r.createElement("div");for(o.innerHTML=t,n=o.childNodes.length-1;n>=0;n-=1)this[e].insertBefore(o.childNodes[n],this[e].childNodes[0])}else if(t instanceof Qi)for(n=0;n<t.length;n+=1)this[e].insertBefore(t[n],this[e].childNodes[0]);else this[e].insertBefore(t,this[e].childNodes[0]);return this}function Ml(t){for(var e=[],n=0;n<this.length;n+=1)this[n].parentNode!==null&&(t?B(this[n].parentNode).is(t)&&e.push(this[n].parentNode):e.push(this[n].parentNode));return B(e)}function ov(t){for(var e=[],n=0;n<this.length;n+=1)for(var r=this[n].parentNode;r;)t?B(r).is(t)&&e.push(r):e.push(r),r=r.parentNode;return B(e)}function zl(t){for(var e=[],n=0;n<this.length;n+=1)for(var r=this[n].querySelectorAll(t),o=0;o<r.length;o+=1)e.push(r[o]);return B(e)}function $l(t){for(var e=[],n=0;n<this.length;n+=1)for(var r=this[n].children,o=0;o<r.length;o+=1)t&&!B(r[o]).is(t)||e.push(r[o]);return B(e)}function Hl(){for(var t=0;t<this.length;t+=1)this[t].parentNode&&this[t].parentNode.removeChild(this[t]);return this}function Vl(){for(var t=0;t<this.length;t+=1){var e=this[t];if(e.nodeType===1){for(var n=0;n<e.childNodes.length;n+=1)e.childNodes[n].parentNode&&e.childNodes[n].parentNode.removeChild(e.childNodes[n]);e.textContent=""}}return this}B.fn=Qi.prototype;var lq="resize scroll".split(" ");function mj(t){return function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];if(n[0]===void 0){for(var o=0;o<this.length;o+=1)lq.indexOf(t)<0&&(t in this[o]?this[o][t]():B(this[o]).trigger(t));return this}return this.on.apply(this,[t].concat(n))}}var TA=mj("click"),Sa=mj("focus"),cq="[object GeneratorFunction]",fq=/^(?:0|[1-9]\d*)$/;function dq(t,e){for(var n=-1,r=t?t.length:0;++n<r&&e(t[n],n,t)!==!1;);return t}var G1=Object.prototype,lE=G1.hasOwnProperty,yj=G1.toString,pq=G1.propertyIsEnumerable,hq=function(t,e){return function(n){return t(e(n))}}(Object.keys,Object);function gq(t,e){var n=bj(t)||function(a){return function(u){return function(s){return!!s&&typeof s=="object"}(u)&&H5(u)}(a)&&lE.call(a,"callee")&&(!pq.call(a,"callee")||yj.call(a)=="[object Arguments]")}(t)?function(a,u){for(var s=-1,l=Array(a);++s<a;)l[s]=u(s);return l}(t.length,String):[],r=n.length,o=!!r;for(var i in t)!e&&!lE.call(t,i)||o&&(i=="length"||bq(i,r))||n.push(i);return n}var PA,vq=(PA=function(t,e){return t&&mq(t,e,wq)},function(t,e){if(t==null)return t;if(!H5(t))return PA(t,e);for(var n=t.length,r=-1,o=Object(t);++r<n&&e(o[r],r,o)!==!1;);return t}),mq=function(t){return function(e,n,r){for(var o=-1,i=Object(e),a=r(e),u=a.length;u--;){var s=a[t?u:++o];if(n(i[s],s,i)===!1)break}return e}}();function yq(t){if(n=(e=t)&&e.constructor,r=typeof n=="function"&&n.prototype||G1,e!==r)return hq(t);var e,n,r,o=[];for(var i in Object(t))lE.call(t,i)&&i!="constructor"&&o.push(i);return o}function bq(t,e){return!!(e=e??9007199254740991)&&(typeof t=="number"||fq.test(t))&&t>-1&&t%1==0&&t<e}var bj=Array.isArray;function H5(t){return t!=null&&function(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=9007199254740991}(t.length)&&!function(e){var n=function(r){var o=typeof r;return!!r&&(o=="object"||o=="function")}(e)?yj.call(e):"";return n=="[object Function]"||n==cq}(t)}function wq(t){return H5(t)?gq(t):yq(t)}function Eq(t){return t}var V5=function(t,e){return(bj(t)?dq:vq)(t,typeof e=="function"?e:Eq)};let wj=(t=21)=>{let e="",n=crypto.getRandomValues(new Uint8Array(t));for(;t--;){let r=63&n[t];e+=r<36?r.toString(36):r<62?(r-26).toString(36).toUpperCase():r<63?"_":"-"}return e};var Dq=/^\s+|\s+$/g,Cq=/^[-+]0x[0-9a-f]+$/i,xq=/^0b[01]+$/i,Sq=/^0o[0-7]+$/i,Aq=parseInt,Oq=typeof se=="object"&&se&&se.Object===Object&&se,kq=typeof self=="object"&&self&&self.Object===Object&&self,Bq=Oq||kq||Function("return this")(),Fq=Object.prototype.toString,_q=Math.max,Tq=Math.min,Oy=function(){return Bq.Date.now()};function Pq(t,e,n){var r,o,i,a,u,s,l=0,c=!1,f=!1,p=!0;if(typeof t!="function")throw new TypeError("Expected a function");function d(b){var w=r,E=o;return r=o=void 0,l=b,a=t.apply(E,w)}function y(b){return l=b,u=setTimeout(v,e),c?d(b):a}function g(b){var w=b-s;return s===void 0||w>=e||w<0||f&&b-l>=i}function v(){var b=Oy();if(g(b))return m(b);u=setTimeout(v,function(w){var E=e-(w-s);return f?Tq(E,i-(w-l)):E}(b))}function m(b){return u=void 0,p&&r?d(b):(r=o=void 0,a)}function h(){var b=Oy(),w=g(b);if(r=arguments,o=this,s=b,w){if(u===void 0)return y(s);if(f)return u=setTimeout(v,e),d(s)}return u===void 0&&(u=setTimeout(v,e)),a}return e=jA(e)||0,iv(n)&&(c=!!n.leading,i=(f="maxWait"in n)?_q(jA(n.maxWait)||0,e):i,p="trailing"in n?!!n.trailing:p),h.cancel=function(){u!==void 0&&clearTimeout(u),l=0,r=s=o=u=void 0},h.flush=function(){return u===void 0?a:m(Oy())},h}function iv(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function jA(t){if(typeof t=="number")return t;if(function(r){return typeof r=="symbol"||function(o){return!!o&&typeof o=="object"}(r)&&Fq.call(r)=="[object Symbol]"}(t))return NaN;if(iv(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=iv(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=t.replace(Dq,"");var n=xq.test(t);return n||Sq.test(t)?Aq(t.slice(2),n?2:8):Cq.test(t)?NaN:+t}var Ju=function(t,e,n){var r=!0,o=!0;if(typeof t!="function")throw new TypeError("Expected a function");return iv(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Pq(t,e,{leading:r,maxWait:e,trailing:o})};const jq={createElement:function(t,e){return document.createElement(t,e)},createElementNS:function(t,e,n){return document.createElementNS(t,e,n)},createTextNode:function(t){return document.createTextNode(t)},createComment:function(t){return document.createComment(t)},insertBefore:function(t,e,n){t.insertBefore(e,n)},removeChild:function(t,e){t.removeChild(e)},appendChild:function(t,e){t.appendChild(e)},parentNode:function(t){return t.parentNode},nextSibling:function(t){return t.nextSibling},tagName:function(t){return t.tagName},setTextContent:function(t,e){t.textContent=e},getTextContent:function(t){return t.textContent},isElement:function(t){return t.nodeType===1},isText:function(t){return t.nodeType===3},isComment:function(t){return t.nodeType===8}};function Ud(t,e,n,r,o){return{sel:t,data:e,children:n,text:r,elm:o,key:e===void 0?void 0:e.key}}const cE=Array.isArray;function tg(t){return typeof t=="string"||typeof t=="number"||t instanceof String||t instanceof Number}function ky(t){return t===void 0}function Jn(t){return t!==void 0}const NA=Ud("",{},[],void 0,void 0);function zc(t,e){var n,r;const o=t.key===e.key,i=((n=t.data)===null||n===void 0?void 0:n.is)===((r=e.data)===null||r===void 0?void 0:r.is);return t.sel===e.sel&&o&&i}function Nq(t,e,n){var r;const o={};for(let i=e;i<=n;++i){const a=(r=t[i])===null||r===void 0?void 0:r.key;a!==void 0&&(o[a]=i)}return o}const Iq=["create","update","remove","destroy","pre","post"];function Lq(t,e){const n={create:[],update:[],remove:[],destroy:[],pre:[],post:[]},r=e!==void 0?e:jq;for(const f of Iq)for(const p of t){const d=p[f];d!==void 0&&n[f].push(d)}function o(f){const p=f.id?"#"+f.id:"",d=f.getAttribute("class"),y=d?"."+d.split(" ").join("."):"";return Ud(r.tagName(f).toLowerCase()+p+y,{},[],void 0,f)}function i(f,p){return function(){if(--p==0){const d=r.parentNode(f);r.removeChild(d,f)}}}function a(f,p){var d,y;let g,v=f.data;if(v!==void 0){const b=(d=v.hook)===null||d===void 0?void 0:d.init;Jn(b)&&(b(f),v=f.data)}const m=f.children,h=f.sel;if(h==="!")ky(f.text)&&(f.text=""),f.elm=r.createComment(f.text);else if(h!==void 0){const b=h.indexOf("#"),w=h.indexOf(".",b),E=b>0?b:h.length,x=w>0?w:h.length,C=b!==-1||w!==-1?h.slice(0,Math.min(E,x)):h,O=f.elm=Jn(v)&&Jn(g=v.ns)?r.createElementNS(g,C,v):r.createElement(C,v);for(E<x&&O.setAttribute("id",h.slice(E+1,x)),w>0&&O.setAttribute("class",h.slice(x+1).replace(/\./g," ")),g=0;g<n.create.length;++g)n.create[g](NA,f);if(cE(m))for(g=0;g<m.length;++g){const R=m[g];R!=null&&r.appendChild(O,a(R,p))}else tg(f.text)&&r.appendChild(O,r.createTextNode(f.text));const F=f.data.hook;Jn(F)&&((y=F.create)===null||y===void 0||y.call(F,NA,f),F.insert&&p.push(f))}else f.elm=r.createTextNode(f.text);return f.elm}function u(f,p,d,y,g,v){for(;y<=g;++y){const m=d[y];m!=null&&r.insertBefore(f,a(m,v),p)}}function s(f){var p,d;const y=f.data;if(y!==void 0){(d=(p=y==null?void 0:y.hook)===null||p===void 0?void 0:p.destroy)===null||d===void 0||d.call(p,f);for(let g=0;g<n.destroy.length;++g)n.destroy[g](f);if(f.children!==void 0)for(let g=0;g<f.children.length;++g){const v=f.children[g];v!=null&&typeof v!="string"&&s(v)}}}function l(f,p,d,y){for(var g,v;d<=y;++d){let m,h;const b=p[d];if(b!=null)if(Jn(b.sel)){s(b),m=n.remove.length+1,h=i(b.elm,m);for(let E=0;E<n.remove.length;++E)n.remove[E](b,h);const w=(v=(g=b==null?void 0:b.data)===null||g===void 0?void 0:g.hook)===null||v===void 0?void 0:v.remove;Jn(w)?w(b,h):h()}else r.removeChild(f,b.elm)}}function c(f,p,d){var y,g,v,m,h;const b=(y=p.data)===null||y===void 0?void 0:y.hook;(g=b==null?void 0:b.prepatch)===null||g===void 0||g.call(b,f,p);const w=p.elm=f.elm,E=f.children,x=p.children;if(f!==p){if(p.data!==void 0){for(let C=0;C<n.update.length;++C)n.update[C](f,p);(m=(v=p.data.hook)===null||v===void 0?void 0:v.update)===null||m===void 0||m.call(v,f,p)}ky(p.text)?Jn(E)&&Jn(x)?E!==x&&function(C,O,F,R){let H,M,K,U,W=0,q=0,nt=O.length-1,lt=O[0],st=O[nt],at=F.length-1,k=F[0],S=F[at];for(;W<=nt&&q<=at;)lt==null?lt=O[++W]:st==null?st=O[--nt]:k==null?k=F[++q]:S==null?S=F[--at]:zc(lt,k)?(c(lt,k,R),lt=O[++W],k=F[++q]):zc(st,S)?(c(st,S,R),st=O[--nt],S=F[--at]):zc(lt,S)?(c(lt,S,R),r.insertBefore(C,lt.elm,r.nextSibling(st.elm)),lt=O[++W],S=F[--at]):zc(st,k)?(c(st,k,R),r.insertBefore(C,st.elm,lt.elm),st=O[--nt],k=F[++q]):(H===void 0&&(H=Nq(O,W,nt)),M=H[k.key],ky(M)?r.insertBefore(C,a(k,R),lt.elm):(K=O[M],K.sel!==k.sel?r.insertBefore(C,a(k,R),lt.elm):(c(K,k,R),O[M]=void 0,r.insertBefore(C,K.elm,lt.elm))),k=F[++q]);(W<=nt||q<=at)&&(W>nt?(U=F[at+1]==null?null:F[at+1].elm,u(C,U,F,q,at,R)):l(C,O,W,nt))}(w,E,x,d):Jn(x)?(Jn(f.text)&&r.setTextContent(w,""),u(w,null,x,0,x.length-1,d)):Jn(E)?l(w,E,0,E.length-1):Jn(f.text)&&r.setTextContent(w,""):f.text!==p.text&&(Jn(E)&&l(w,E,0,E.length-1),r.setTextContent(w,p.text)),(h=b==null?void 0:b.postpatch)===null||h===void 0||h.call(b,f,p)}}return function(f,p){let d,y,g;const v=[];for(d=0;d<n.pre.length;++d)n.pre[d]();for(function(m){return m.sel!==void 0}(f)||(f=o(f)),zc(f,p)?c(f,p,v):(y=f.elm,g=r.parentNode(y),a(p,v),g!==null&&(r.insertBefore(g,p.elm,r.nextSibling(y)),l(g,[f],0,0))),d=0;d<v.length;++d)v[d].data.hook.insert(v[d]);for(d=0;d<n.post.length;++d)n.post[d]();return p}}function Ej(t,e,n){if(t.ns="http://www.w3.org/2000/svg",n!=="foreignObject"&&e!==void 0)for(let r=0;r<e.length;++r){const o=e[r].data;o!==void 0&&Ej(o,e[r].children,e[r].sel)}}function Ul(t,e,n){let r,o,i,a={};if(n!==void 0?(e!==null&&(a=e),cE(n)?r=n:tg(n)?o=n.toString():n&&n.sel&&(r=[n])):e!=null&&(cE(e)?r=e:tg(e)?o=e.toString():e&&e.sel?r=[e]:a=e),r!==void 0)for(i=0;i<r.length;++i)tg(r[i])&&(r[i]=Ud(void 0,void 0,void 0,r[i],void 0));return t[0]!=="s"||t[1]!=="v"||t[2]!=="g"||t.length!==3&&t[3]!=="."&&t[3]!=="#"||Ej(a,r,t),Ud(t,a,r,o,void 0)}function IA(t,e){let n;const r=e.elm;let o=t.data.attrs,i=e.data.attrs;if((o||i)&&o!==i){for(n in o=o||{},i=i||{},i){const a=i[n];o[n]!==a&&(a===!0?r.setAttribute(n,""):a===!1?r.removeAttribute(n):n.charCodeAt(0)!==120?r.setAttribute(n,a):n.charCodeAt(3)===58?r.setAttributeNS("http://www.w3.org/XML/1998/namespace",n,a):n.charCodeAt(5)===58?r.setAttributeNS("http://www.w3.org/1999/xlink",n,a):r.setAttribute(n,a))}for(n in o)n in i||r.removeAttribute(n)}}const Rq={create:IA,update:IA};function LA(t,e){let n,r;const o=e.elm;let i=t.data.class,a=e.data.class;if((i||a)&&i!==a){for(r in i=i||{},a=a||{},i)i[r]&&!Object.prototype.hasOwnProperty.call(a,r)&&o.classList.remove(r);for(r in a)n=a[r],n!==i[r]&&o.classList[n?"add":"remove"](r)}}const Mq={create:LA,update:LA},RA=/[A-Z]/g;function MA(t,e){const n=e.elm;let r,o=t.data.dataset,i=e.data.dataset;if(!o&&!i||o===i)return;o=o||{},i=i||{};const a=n.dataset;for(r in o)i[r]||(a?r in a&&delete a[r]:n.removeAttribute("data-"+r.replace(RA,"-$&").toLowerCase()));for(r in i)o[r]!==i[r]&&(a?a[r]=i[r]:n.setAttribute("data-"+r.replace(RA,"-$&").toLowerCase(),i[r]))}const zq={create:MA,update:MA};function Dj(t,e,n){if(typeof t=="function")t.call(e,n,e);else if(typeof t=="object")for(let r=0;r<t.length;r++)Dj(t[r],e,n)}function $q(t,e){const n=t.type,r=e.data.on;r&&r[n]&&Dj(r[n],e,t)}function By(t,e){const n=t.data.on,r=t.listener,o=t.elm,i=e&&e.data.on,a=e&&e.elm;let u;if(n!==i){if(n&&r)if(i)for(u in n)i[u]||o.removeEventListener(u,r,!1);else for(u in n)o.removeEventListener(u,r,!1);if(i){const s=e.listener=t.listener||function l(c){$q(c,l.vnode)};if(s.vnode=e,n)for(u in i)n[u]||a.addEventListener(u,s,!1);else for(u in i)a.addEventListener(u,s,!1)}}}const Hq={create:By,update:By,destroy:By};function zA(t,e){let n,r,o;const i=e.elm;let a=t.data.props,u=e.data.props;if((a||u)&&a!==u)for(n in a=a||{},u=u||{},u)r=u[n],o=a[n],o===r||n==="value"&&i[n]===r||(i[n]=r)}const Vq={create:zA,update:zA},$A=typeof window<"u"&&window.requestAnimationFrame.bind(window)||setTimeout;let Fy=!1;function Uq(t,e,n){(function(r){$A(function(){$A(r)})})(function(){t[e]=n})}function HA(t,e){let n,r;const o=e.elm;let i=t.data.style,a=e.data.style;if(!i&&!a||i===a)return;i=i||{},a=a||{};const u="delayed"in i;for(r in i)a[r]||(r[0]==="-"&&r[1]==="-"?o.style.removeProperty(r):o.style[r]="");for(r in a)if(n=a[r],r==="delayed"&&a.delayed)for(const s in a.delayed)n=a.delayed[s],u&&n===i.delayed[s]||Uq(o.style,s,n);else r!=="remove"&&n!==i[r]&&(r[0]==="-"&&r[1]==="-"?o.style.setProperty(r,n):o.style[r]=n)}const Wq={pre:function(){Fy=!1},create:HA,update:HA,destroy:function(t){let e,n;const r=t.elm,o=t.data.style;if(o&&(e=o.destroy))for(n in e)r.style[n]=e[n]},remove:function(t,e){const n=t.data.style;if(!n||!n.remove)return void e();let r;Fy||(t.elm.offsetLeft,Fy=!0);const o=t.elm;let i=0;const a=n.remove;let u=0;const s=[];for(r in a)s.push(r),o.style[r]=a[r];const l=getComputedStyle(o)["transition-property"].split(", ");for(;i<l.length;++i)s.indexOf(l[i])!==-1&&u++;o.addEventListener("transitionend",function(c){c.target===o&&--u,u===0&&e()})}};function Cj(t,e){for(const n of t)n!=null&&n!==!1&&n!==""&&(Array.isArray(n)?Cj(n,e):typeof n=="string"||typeof n=="number"||typeof n=="boolean"?e.push(Ud(void 0,void 0,void 0,String(n),void 0)):e.push(n));return e}function bt(t,e,...n){const r=Cj(n,[]);return typeof t=="function"?t(e,r):r.length===1&&!r[0].sel&&r[0].text?Ul(t,e,r[0].text):Ul(t,e,r)}bt||(bt={});var Gq=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,qq=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,xj="\\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",Kq="[\\ud800-\\udfff]",VA="["+xj+"]",av="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",Sj="\\d+",Yq="[\\u2700-\\u27bf]",Aj="[a-z\\xdf-\\xf6\\xf8-\\xff]",Oj="[^\\ud800-\\udfff"+xj+Sj+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",fE="\\ud83c[\\udffb-\\udfff]",kj="[^\\ud800-\\udfff]",U5="(?:\\ud83c[\\udde6-\\uddff]){2}",W5="[\\ud800-\\udbff][\\udc00-\\udfff]",il="[A-Z\\xc0-\\xd6\\xd8-\\xde]",UA="(?:"+Aj+"|"+Oj+")",Xq="(?:"+il+"|"+Oj+")",WA="(?:"+av+"|"+fE+")?",Bj="[\\ufe0e\\ufe0f]?"+WA+("(?:\\u200d(?:"+[kj,U5,W5].join("|")+")[\\ufe0e\\ufe0f]?"+WA+")*"),Zq="(?:"+[Yq,U5,W5].join("|")+")"+Bj,Jq="(?:"+[kj+av+"?",av,U5,W5,Kq].join("|")+")",Qq=RegExp("['’]","g"),tK=RegExp(av,"g"),eK=RegExp(fE+"(?="+fE+")|"+Jq+Bj,"g"),nK=RegExp([il+"?"+Aj+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[VA,il,"$"].join("|")+")",Xq+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[VA,il+UA,"$"].join("|")+")",il+"?"+UA+"+(?:['’](?:d|ll|m|re|s|t|ve))?",il+"+(?:['’](?:D|LL|M|RE|S|T|VE))?",Sj,Zq].join("|"),"g"),rK=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),oK=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,iK=typeof se=="object"&&se&&se.Object===Object&&se,aK=typeof self=="object"&&self&&self.Object===Object&&self,uK=iK||aK||Function("return this")(),_y,sK=(_y={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"ss"},function(t){return _y==null?void 0:_y[t]});function Fj(t){return rK.test(t)}function lK(t){return Fj(t)?function(e){return e.match(eK)||[]}(t):function(e){return e.split("")}(t)}var cK=Object.prototype.toString,GA=uK.Symbol,qA=GA?GA.prototype:void 0,KA=qA?qA.toString:void 0;function fK(t){if(typeof t=="string")return t;if(function(n){return typeof n=="symbol"||function(r){return!!r&&typeof r=="object"}(n)&&cK.call(n)=="[object Symbol]"}(t))return KA?KA.call(t):"";var e=t+"";return e=="0"&&1/t==-1/0?"-0":e}function dK(t,e,n){var r=t.length;return n=n===void 0?r:n,!e&&n>=r?t:function(o,i,a){var u=-1,s=o.length;i<0&&(i=-i>s?0:s+i),(a=a>s?s:a)<0&&(a+=s),s=i>a?0:a-i>>>0,i>>>=0;for(var l=Array(s);++u<s;)l[u]=o[u+i];return l}(t,e,n)}function eg(t){return t==null?"":fK(t)}var YA,pK=(YA=function(t,e,n){return e=e.toLowerCase(),t+(n?hK(eg(e).toLowerCase()):e)},function(t){return function(e,n,r,o){var i=-1,a=e?e.length:0;for(o&&a&&(r=e[++i]);++i<a;)r=n(r,e[i],i,e);return r}(function(e,n,r){return e=eg(e),(n=r?void 0:n)===void 0?function(o){return oK.test(o)}(e)?function(o){return o.match(nK)||[]}(e):function(o){return o.match(Gq)||[]}(e):e.match(n)||[]}(function(e){return(e=eg(e))&&e.replace(qq,sK).replace(tK,"")}(t).replace(Qq,"")),YA,"")}),XA,hK=(XA="toUpperCase",function(t){var e=Fj(t=eg(t))?lK(t):void 0,n=e?e[0]:t.charAt(0),r=e?dK(e,1).join(""):t.slice(1);return n[XA]()+r});for(var gK=pK,vK=typeof window<"u"&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),Ty={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},_j={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:vK?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},G5={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},Vh=1;Vh<20;Vh++)G5["f"+Vh]=111+Vh;function Tj(t,e,n){e&&!("byKey"in e)&&(n=e,e=null),Array.isArray(t)||(t=[t]);var r=t.map(function(i){return function(a,u){var s=u&&u.byKey,l={},c=(a=a.replace("++","+add")).split("+"),f=c.length;for(var p in Ty)l[Ty[p]]=!1;var d=!0,y=!1,g=void 0;try{for(var v,m=c[Symbol.iterator]();!(d=(v=m.next()).done);d=!0){var h=v.value,b=h.endsWith("?")&&h.length>1;b&&(h=h.slice(0,-1));var w=Pj(h),E=Ty[w];if(h.length>1&&!E&&!_j[h]&&!G5[w])throw new TypeError('Unknown modifier: "'+h+'"');f!==1&&E||(s?l.key=w:l.which=mK(h)),E&&(l[E]=!b||null)}}catch(x){y=!0,g=x}finally{try{!d&&m.return&&m.return()}finally{if(y)throw g}}return l}(i,e)}),o=function(i){return r.some(function(a){return function(u,s){for(var l in u){var c=u[l],f=void 0;if(c!=null&&((f=l==="key"&&s.key!=null?s.key.toLowerCase():l==="which"?c===91&&s.which===93?91:s.which:s[l])!=null||c!==!1)&&f!==c)return!1}return!0}(a,i)})};return n==null?o:o(n)}function mK(t){return t=Pj(t),G5[t]||t.toUpperCase().charCodeAt(0)}function Pj(t){return t=t.toLowerCase(),t=_j[t]||t}var yK=Tj,Py=function(t,e){return Tj(t,{byKey:!0},e)},bK=/^\s+|\s+$/g,wK=/^[-+]0x[0-9a-f]+$/i,EK=/^0b[01]+$/i,DK=/^0o[0-7]+$/i,CK=parseInt,xK=typeof se=="object"&&se&&se.Object===Object&&se,SK=typeof self=="object"&&self&&self.Object===Object&&self,AK=xK||SK||Function("return this")(),OK=Object.prototype.toString,kK=Math.max,BK=Math.min,jy=function(){return AK.Date.now()};function dE(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function ZA(t){if(typeof t=="number")return t;if(function(r){return typeof r=="symbol"||function(o){return!!o&&typeof o=="object"}(r)&&OK.call(r)=="[object Symbol]"}(t))return NaN;if(dE(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=dE(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=t.replace(bK,"");var n=EK.test(t);return n||DK.test(t)?CK(t.slice(2),n?2:8):wK.test(t)?NaN:+t}var _s,jj=function(t,e,n){var r,o,i,a,u,s,l=0,c=!1,f=!1,p=!0;if(typeof t!="function")throw new TypeError("Expected a function");function d(b){var w=r,E=o;return r=o=void 0,l=b,a=t.apply(E,w)}function y(b){return l=b,u=setTimeout(v,e),c?d(b):a}function g(b){var w=b-s;return s===void 0||w>=e||w<0||f&&b-l>=i}function v(){var b=jy();if(g(b))return m(b);u=setTimeout(v,function(w){var E=e-(w-s);return f?BK(E,i-(w-l)):E}(b))}function m(b){return u=void 0,p&&r?d(b):(r=o=void 0,a)}function h(){var b=jy(),w=g(b);if(r=arguments,o=this,s=b,w){if(u===void 0)return y(s);if(f)return u=setTimeout(v,e),d(s)}return u===void 0&&(u=setTimeout(v,e)),a}return e=ZA(e)||0,dE(n)&&(c=!!n.leading,i=(f="maxWait"in n)?kK(ZA(n.maxWait)||0,e):i,p="trailing"in n?!!n.trailing:p),h.cancel=function(){u!==void 0&&clearTimeout(u),l=0,r=s=o=u=void 0},h.flush=function(){return u===void 0?a:m(jy())},h},Nj=cs(function(t,e){var n="__lodash_hash_undefined__",r=9007199254740991,o="[object Arguments]",i="[object Boolean]",a="[object Date]",u="[object Function]",s="[object GeneratorFunction]",l="[object Map]",c="[object Number]",f="[object Object]",p="[object Promise]",d="[object RegExp]",y="[object Set]",g="[object String]",v="[object Symbol]",m="[object WeakMap]",h="[object ArrayBuffer]",b="[object DataView]",w="[object Float32Array]",E="[object Float64Array]",x="[object Int8Array]",C="[object Int16Array]",O="[object Int32Array]",F="[object Uint8Array]",R="[object Uint8ClampedArray]",H="[object Uint16Array]",M="[object Uint32Array]",K=/\w*$/,U=/^\[object .+?Constructor\]$/,W=/^(?:0|[1-9]\d*)$/,q={};q[o]=q["[object Array]"]=q[h]=q[b]=q[i]=q[a]=q[w]=q[E]=q[x]=q[C]=q[O]=q[l]=q[c]=q[f]=q[d]=q[y]=q[g]=q[v]=q[F]=q[R]=q[H]=q[M]=!0,q["[object Error]"]=q[u]=q[m]=!1;var nt=typeof se=="object"&&se&&se.Object===Object&&se,lt=typeof self=="object"&&self&&self.Object===Object&&self,st=nt||lt||Function("return this")(),at=e&&!e.nodeType&&e,k=at&&t&&!t.nodeType&&t,S=k&&k.exports===at;function P(_,z){return _.set(z[0],z[1]),_}function $(_,z){return _.add(z),_}function Y(_,z,J,ut){var Mt=-1,pe=_?_.length:0;for(ut&&pe&&(J=_[++Mt]);++Mt<pe;)J=z(J,_[Mt],Mt,_);return J}function V(_){var z=!1;if(_!=null&&typeof _.toString!="function")try{z=!!(_+"")}catch{}return z}function it(_){var z=-1,J=Array(_.size);return _.forEach(function(ut,Mt){J[++z]=[Mt,ut]}),J}function gt(_,z){return function(J){return _(z(J))}}function vt(_){var z=-1,J=Array(_.size);return _.forEach(function(ut){J[++z]=ut}),J}var Dt=Array.prototype,G=Function.prototype,It=Object.prototype,At=st["__core-js_shared__"],dt=function(){var _=/[^.]+$/.exec(At&&At.keys&&At.keys.IE_PROTO||"");return _?"Symbol(src)_1."+_:""}(),Ot=G.toString,Be=It.hasOwnProperty,$t=It.toString,te=RegExp("^"+Ot.call(Be).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),me=S?st.Buffer:void 0,bn=st.Symbol,zt=st.Uint8Array,Rn=gt(Object.getPrototypeOf,Object),Rr=Object.create,ao=It.propertyIsEnumerable,Ds=Dt.splice,Ua=Object.getOwnPropertySymbols,Mr=me?me.isBuffer:void 0,uo=gt(Object.keys,Object),Ro=so(st,"DataView"),wn=so(st,"Map"),En=so(st,"Promise"),Dn=so(st,"Set"),Tn=so(st,"WeakMap"),rn=so(Object,"create"),vr=co(Ro),Oc=co(wn),hi=co(En),Mo=co(Dn),Cs=co(Tn),Wa=bn?bn.prototype:void 0,xs=Wa?Wa.valueOf:void 0;function zr(_){var z=-1,J=_?_.length:0;for(this.clear();++z<J;){var ut=_[z];this.set(ut[0],ut[1])}}function mr(_){var z=-1,J=_?_.length:0;for(this.clear();++z<J;){var ut=_[z];this.set(ut[0],ut[1])}}function zo(_){var z=-1,J=_?_.length:0;for(this.clear();++z<J;){var ut=_[z];this.set(ut[0],ut[1])}}function $r(_){this.__data__=new mr(_)}function gi(_,z){var J=T(_)||function(ne){return function(Wt){return function(Ze){return!!Ze&&typeof Ze=="object"}(Wt)&&I(Wt)}(ne)&&Be.call(ne,"callee")&&(!ao.call(ne,"callee")||$t.call(ne)==o)}(_)?function(ne,Wt){for(var Ze=-1,Cn=Array(ne);++Ze<ne;)Cn[Ze]=Wt(Ze);return Cn}(_.length,String):[],ut=J.length,Mt=!!ut;for(var pe in _)!z&&!Be.call(_,pe)||Mt&&(pe=="length"||Ah(pe,ut))||J.push(pe);return J}function xh(_,z,J){var ut=_[z];Be.call(_,z)&&Oh(ut,J)&&(J!==void 0||z in _)||(_[z]=J)}function Zn(_,z){for(var J=_.length;J--;)if(Oh(_[J][0],z))return J;return-1}function kc(_,z,J,ut,Mt,pe,ne){var Wt;if(ut&&(Wt=pe?ut(_,Mt,pe,ne):ut(_)),Wt!==void 0)return Wt;if(!ee(_))return _;var Ze=T(_);if(Ze){if(Wt=function(yt){var Xt=yt.length,Pe=yt.constructor(Xt);return Xt&&typeof yt[0]=="string"&&Be.call(yt,"index")&&(Pe.index=yt.index,Pe.input=yt.input),Pe}(_),!z)return function(yt,Xt){var Pe=-1,Lt=yt.length;for(Xt||(Xt=Array(Lt));++Pe<Lt;)Xt[Pe]=yt[Pe];return Xt}(_,Wt)}else{var Cn=lo(_),Ga=Cn==u||Cn==s;if(Z(_))return function(yt,Xt){if(Xt)return yt.slice();var Pe=new yt.constructor(yt.length);return yt.copy(Pe),Pe}(_,z);if(Cn==f||Cn==o||Ga&&!pe){if(V(_))return pe?_:{};if(Wt=function(yt){return typeof yt.constructor!="function"||vi(yt)?{}:(Xt=Rn(yt),ee(Xt)?Rr(Xt):{});var Xt}(Ga?{}:_),!z)return function(yt,Xt){return Sh(yt,Bc(yt),Xt)}(_,function(yt,Xt){return yt&&Sh(Xt,Pt(Xt),yt)}(Wt,_))}else{if(!q[Cn])return pe?_:{};Wt=function(yt,Xt,Pe,Lt){var Gt=yt.constructor;switch(Xt){case h:return Ss(yt);case i:case a:return new Gt(+yt);case b:return function(qt,Fe){var Pn=Fe?Ss(qt.buffer):qt.buffer;return new qt.constructor(Pn,qt.byteOffset,qt.byteLength)}(yt,Lt);case w:case E:case x:case C:case O:case F:case R:case H:case M:return function(qt,Fe){var Pn=Fe?Ss(qt.buffer):qt.buffer;return new qt.constructor(Pn,qt.byteOffset,qt.length)}(yt,Lt);case l:return function(qt,Fe,Pn){return Y(Fe?Pn(it(qt),!0):it(qt),P,new qt.constructor)}(yt,Lt,Pe);case c:case g:return new Gt(yt);case d:return function(qt){var Fe=new qt.constructor(qt.source,K.exec(qt));return Fe.lastIndex=qt.lastIndex,Fe}(yt);case y:return function(qt,Fe,Pn){return Y(Fe?Pn(vt(qt),!0):vt(qt),$,new qt.constructor)}(yt,Lt,Pe);case v:return function(qt){return xs?Object(xs.call(qt)):{}}(yt)}}(_,Cn,kc,z)}}ne||(ne=new $r);var Vo=ne.get(_);if(Vo)return Vo;if(ne.set(_,Wt),!Ze)var mi=J?function(yt){return function(Xt,Pe,Lt){var Gt=Pe(Xt);return T(Xt)?Gt:function(qt,Fe){for(var Pn=-1,Mn=Fe.length,Hr=qt.length;++Pn<Mn;)qt[Hr+Pn]=Fe[Pn];return qt}(Gt,Lt(Xt))}(yt,Pt,Bc)}(_):Pt(_);return function(yt,Xt){for(var Pe=-1,Lt=yt?yt.length:0;++Pe<Lt&&Xt(yt[Pe],Pe,yt)!==!1;);}(mi||_,function(yt,Xt){mi&&(yt=_[Xt=yt]),xh(Wt,Xt,kc(yt,z,J,ut,Xt,_,ne))}),Wt}function $o(_){return!(!ee(_)||function(z){return!!dt&&dt in z}(_))&&(ht(_)||V(_)?te:U).test(co(_))}function Ss(_){var z=new _.constructor(_.byteLength);return new zt(z).set(new zt(_)),z}function Sh(_,z,J,ut){J||(J={});for(var Mt=-1,pe=z.length;++Mt<pe;){var ne=z[Mt],Wt=ut?ut(J[ne],_[ne],ne,J,_):void 0;xh(J,ne,Wt===void 0?_[ne]:Wt)}return J}function Ho(_,z){var J,ut,Mt=_.__data__;return((ut=typeof(J=z))=="string"||ut=="number"||ut=="symbol"||ut=="boolean"?J!=="__proto__":J===null)?Mt[typeof z=="string"?"string":"hash"]:Mt.map}function so(_,z){var J=function(ut,Mt){return ut==null?void 0:ut[Mt]}(_,z);return $o(J)?J:void 0}zr.prototype.clear=function(){this.__data__=rn?rn(null):{}},zr.prototype.delete=function(_){return this.has(_)&&delete this.__data__[_]},zr.prototype.get=function(_){var z=this.__data__;if(rn){var J=z[_];return J===n?void 0:J}return Be.call(z,_)?z[_]:void 0},zr.prototype.has=function(_){var z=this.__data__;return rn?z[_]!==void 0:Be.call(z,_)},zr.prototype.set=function(_,z){return this.__data__[_]=rn&&z===void 0?n:z,this},mr.prototype.clear=function(){this.__data__=[]},mr.prototype.delete=function(_){var z=this.__data__,J=Zn(z,_);return!(J<0)&&(J==z.length-1?z.pop():Ds.call(z,J,1),!0)},mr.prototype.get=function(_){var z=this.__data__,J=Zn(z,_);return J<0?void 0:z[J][1]},mr.prototype.has=function(_){return Zn(this.__data__,_)>-1},mr.prototype.set=function(_,z){var J=this.__data__,ut=Zn(J,_);return ut<0?J.push([_,z]):J[ut][1]=z,this},zo.prototype.clear=function(){this.__data__={hash:new zr,map:new(wn||mr),string:new zr}},zo.prototype.delete=function(_){return Ho(this,_).delete(_)},zo.prototype.get=function(_){return Ho(this,_).get(_)},zo.prototype.has=function(_){return Ho(this,_).has(_)},zo.prototype.set=function(_,z){return Ho(this,_).set(_,z),this},$r.prototype.clear=function(){this.__data__=new mr},$r.prototype.delete=function(_){return this.__data__.delete(_)},$r.prototype.get=function(_){return this.__data__.get(_)},$r.prototype.has=function(_){return this.__data__.has(_)},$r.prototype.set=function(_,z){var J=this.__data__;if(J instanceof mr){var ut=J.__data__;if(!wn||ut.length<199)return ut.push([_,z]),this;J=this.__data__=new zo(ut)}return J.set(_,z),this};var Bc=Ua?gt(Ua,Object):function(){return[]},lo=function(_){return $t.call(_)};function Ah(_,z){return!!(z=z??r)&&(typeof _=="number"||W.test(_))&&_>-1&&_%1==0&&_<z}function vi(_){var z=_&&_.constructor;return _===(typeof z=="function"&&z.prototype||It)}function co(_){if(_!=null){try{return Ot.call(_)}catch{}try{return _+""}catch{}}return""}function Oh(_,z){return _===z||_!=_&&z!=z}(Ro&&lo(new Ro(new ArrayBuffer(1)))!=b||wn&&lo(new wn)!=l||En&&lo(En.resolve())!=p||Dn&&lo(new Dn)!=y||Tn&&lo(new Tn)!=m)&&(lo=function(_){var z=$t.call(_),J=z==f?_.constructor:void 0,ut=J?co(J):void 0;if(ut)switch(ut){case vr:return b;case Oc:return l;case hi:return p;case Mo:return y;case Cs:return m}return z});var T=Array.isArray;function I(_){return _!=null&&function(z){return typeof z=="number"&&z>-1&&z%1==0&&z<=r}(_.length)&&!ht(_)}var Z=Mr||function(){return!1};function ht(_){var z=ee(_)?$t.call(_):"";return z==u||z==s}function ee(_){var z=typeof _;return!!_&&(z=="object"||z=="function")}function Pt(_){return I(_)?gi(_):function(z){if(!vi(z))return uo(z);var J=[];for(var ut in Object(z))Be.call(z,ut)&&ut!="constructor"&&J.push(ut);return J}(_)}t.exports=function(_){return kc(_,!0,!0)}});function JA(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var FK=0;function _K(t){return"__private_"+FK+++"_"+t}function TK(t,e,n){const r=[];return t.forEach(o=>typeof o!="string"?r.push(o):e[Symbol.split](o).forEach((i,a,u)=>{i!==""&&r.push(i),a<u.length-1&&r.push(n)})),r}/**
  16. * Takes a string with placeholder variables like `%{smart_count} file selected`
  17. * and replaces it with values from options `{smart_count: 5}`
  18. *
  19. * @license https://github.com/airbnb/polyglot.js/blob/master/LICENSE
  20. * taken from https://github.com/airbnb/polyglot.js/blob/master/lib/polyglot.js#L299
  21. *
  22. * @param {string} phrase that needs interpolation, with placeholders
  23. * @param {object} options with values that will be used to replace placeholders
  24. * @returns {any[]} interpolated
  25. */function QA(t,e){const n=/\$/g;let r=[t];if(e==null)return r;for(const o of Object.keys(e))if(o!=="_"){let i=e[o];typeof i=="string"&&(i=n[Symbol.replace](i,"$$$$")),r=TK(r,new RegExp(`%\\{${o}\\}`,"g"),i)}return r}var Ij=(_s=_K("apply"),class{constructor(t){Object.defineProperty(this,_s,{value:PK}),this.locale={strings:{},pluralize:e=>e===1?0:1},Array.isArray(t)?t.forEach(JA(this,_s)[_s],this):JA(this,_s)[_s](t)}translate(t,e){return this.translateArray(t,e).join("")}translateArray(t,e){if(!function(r,o){return Object.prototype.hasOwnProperty.call(r,o)}(this.locale.strings,t))throw new Error(`missing string: ${t}`);const n=this.locale.strings[t];if(typeof n=="object"){if(e&&e.smart_count!==void 0)return QA(n[this.locale.pluralize(e.smart_count)],e);throw new Error("Attempted to use a string with plural forms, but no value was given for %{smart_count}")}return QA(n,e)}});function PK(t){if(t==null||!t.strings)return;const e=this.locale;this.locale={...e,strings:{...e.strings,...t.strings}},this.locale.pluralize=t.pluralize||e.pluralize}var Lj=function(){var t={},e=t._fns={};return t.emit=function(n,r,o,i,a,u,s){var l=function(c){for(var f=e[c]?e[c]:[],p=c.indexOf(":"),d=p===-1?[c]:[c.substring(0,p),c.substring(p+1)],y=Object.keys(e),g=0,v=y.length;g<v;g++){var m=y[g];if(m==="*"&&(f=f.concat(e[m])),d.length===2&&d[0]===m){f=f.concat(e[m]);break}}return f}(n);l.length&&function(c,f,p){for(var d=0,y=f.length;d<y&&f[d];d++)f[d].event=c,f[d].apply(f[d],p)}(n,l,[r,o,i,a,u,s])},t.on=function(n,r){e[n]||(e[n]=[]),e[n].push(r)},t.once=function(n,r){this.on(n,function o(){r.apply(this,arguments),t.off(n,o)})},t.off=function(n,r){var o=[];if(n&&r)for(var i=this._fns[n],a=0,u=i?i.length:0;a<u;a++)i[a]!==r&&o.push(i[a]);o.length?this._fns[n]=o:delete this._fns[n]},t},jK={urlAlphabet:"useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"};let{urlAlphabet:NK}=jK,t7=t=>crypto.getRandomValues(new Uint8Array(t)),e7=(t,e,n)=>{let r=(2<<Math.log(t.length-1)/Math.LN2)-1,o=-~(1.6*r*e/t.length);return()=>{let i="";for(;;){let a=n(o),u=o;for(;u--;)if(i+=t[a[u]&r]||"",i.length===e)return i}}};var IK={nanoid:(t=21)=>{let e="",n=crypto.getRandomValues(new Uint8Array(t));for(;t--;){let r=63&n[t];e+=r<36?r.toString(36):r<62?(r-26).toString(36).toUpperCase():r<63?"_":"-"}return e},customAlphabet:(t,e)=>e7(t,e,t7),customRandom:e7,urlAlphabet:NK,random:t7},Ny=function(t){if(typeof t!="number"||isNaN(t))throw new TypeError("Expected a number, got "+typeof t);var e=t<0,n=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];if(e&&(t=-t),t<1)return(e?"-":"")+t+" B";var r=Math.min(Math.floor(Math.log(t)/Math.log(1024)),n.length-1);t=Number(t/Math.pow(1024,r));var o=n[r];return t>=10||t%1==0?(e?"-":"")+t.toFixed(0)+" "+o:(e?"-":"")+t.toFixed(1)+" "+o};function Rj(t,e){this.text=t=t||"",this.hasWild=~t.indexOf("*"),this.separator=e,this.parts=t.split(e)}Rj.prototype.match=function(t){var e,n,r=!0,o=this.parts,i=o.length;if(typeof t=="string"||t instanceof String)if(this.hasWild||this.text==t){for(n=(t||"").split(this.separator),e=0;r&&e<i;e++)o[e]!=="*"&&(r=e<n.length&&o[e]===n[e]);r=r&&n}else r=!1;else if(typeof t.splice=="function")for(r=[],e=t.length;e--;)this.match(t[e])&&(r[r.length]=t[e]);else if(typeof t=="object")for(var a in r={},t)this.match(a)&&(r[a]=t[a]);return r};var LK=/[\/\+\.]/,RK=function(t,e){function n(r){var o=function(i,a,u){var s=new Rj(i,u||/[\/\.]/);return a!==void 0?s.match(a):s}(r,t,LK);return o&&o.length>=2}return e?n(e.split(";")[0]):n},MK=0;function zK(t){return"__private_"+MK+++"_"+t}var Iy=zK("publish");class Mj{constructor(){Object.defineProperty(this,Iy,{value:$K}),this.state={},this.callbacks=[]}getState(){return this.state}setState(e){const n={...this.state},r={...this.state,...e};this.state=r,function(o,i){if(!Object.prototype.hasOwnProperty.call(o,i))throw new TypeError("attempted to use private field on non-instance");return o}(this,Iy)[Iy](n,r,e)}subscribe(e){return this.callbacks.push(e),()=>{this.callbacks.splice(this.callbacks.indexOf(e),1)}}}function $K(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];this.callbacks.forEach(r=>{r(...e)})}Mj.VERSION="2.0.3";var n7=function(t){const e=t.lastIndexOf(".");return e===-1||e===t.length-1?{name:t,extension:void 0}:{name:t.slice(0,e),extension:t.slice(e+1)}},r7={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 o7(t){let e="";return t.replace(/[^A-Z0-9]/gi,n=>(e+=`-${function(r){return r.charCodeAt(0).toString(32)}(n)}`,"/"))+e}var HK=function(t){if(t==null&&(t=typeof navigator<"u"?navigator.userAgent:null),!t)return!0;const e=/Edge\/(\d+\.\d+)/.exec(t);if(!e)return!0;const n=e[1];let[r,o]=n.split(".");return r=parseInt(r,10),o=parseInt(o,10),r<15||r===15&&o<15063||r>18||r===18&&o>=18218};function Ly(t){return t<10?`0${t}`:t.toString()}var Uh=function(){const t=new Date;return`${Ly(t.getHours())}:${Ly(t.getMinutes())}:${Ly(t.getSeconds())}`},zj={justErrorsLogger:{debug:()=>{},warn:()=>{},error:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return console.error(`[Uppy] [${Uh()}]`,...e)}},debugLogger:{debug:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return console.debug(`[Uppy] [${Uh()}]`,...e)},warn:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return console.warn(`[Uppy] [${Uh()}]`,...e)},error:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return console.error(`[Uppy] [${Uh()}]`,...e)}}},VK={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}"}}},$j=IK;let Hj,Vj;function ft(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var UK=0;function Xe(t){return"__private_"+UK+++"_"+t}const{nanoid:WK}=$j,{justErrorsLogger:GK,debugLogger:qK}=zj;class bo extends Error{constructor(){super(...arguments),this.isRestriction=!0}}typeof AggregateError>"u"&&(globalThis.AggregateError=class extends Error{constructor(t,e){super(e),this.errors=t}});class KK extends AggregateError{constructor(){super(...arguments),this.isRestriction=!0}}var hn=Xe("plugins"),$c=Xe("storeUnsubscribe"),Wo=Xe("emitter"),gu=Xe("preProcessors"),vu=Xe("uploaders"),Zo=Xe("postProcessors"),cd=Xe("checkRestrictions"),Ry=Xe("checkMinNumberOfFiles"),Wd=Xe("checkRequiredMetaFieldsOnFile"),My=Xe("checkRequiredMetaFields"),Je=Xe("showOrLogErrorAndThrow"),Hc=Xe("assertNewUploadAllowed"),Vc=Xe("checkAndCreateFileStateObject"),Uc=Xe("startIfAutoProceed"),zy=Xe("addListeners"),Ur=Xe("updateOnlineStatus"),Go=Xe("createUpload"),$y=Xe("getUpload"),wu=Xe("removeUpload"),qo=Xe("runUpload");Hj=Symbol.for("uppy test: getPlugins"),Vj=Symbol.for("uppy test: createUpload");class Uj{constructor(e){Object.defineProperty(this,qo,{value:uY}),Object.defineProperty(this,wu,{value:aY}),Object.defineProperty(this,$y,{value:iY}),Object.defineProperty(this,Go,{value:oY}),Object.defineProperty(this,zy,{value:rY}),Object.defineProperty(this,Uc,{value:nY}),Object.defineProperty(this,Vc,{value:eY}),Object.defineProperty(this,Hc,{value:tY}),Object.defineProperty(this,Je,{value:QK}),Object.defineProperty(this,My,{value:JK}),Object.defineProperty(this,Wd,{value:ZK}),Object.defineProperty(this,Ry,{value:XK}),Object.defineProperty(this,cd,{value:YK}),Object.defineProperty(this,hn,{writable:!0,value:Object.create(null)}),Object.defineProperty(this,$c,{writable:!0,value:void 0}),Object.defineProperty(this,Wo,{writable:!0,value:Lj()}),Object.defineProperty(this,gu,{writable:!0,value:new Set}),Object.defineProperty(this,vu,{writable:!0,value:new Set}),Object.defineProperty(this,Zo,{writable:!0,value:new Set}),Object.defineProperty(this,Ur,{writable:!0,value:this.updateOnlineStatus.bind(this)}),this.defaultLocale=VK;const n={id:"uppy",autoProceed:!1,allowMultipleUploads:!0,allowMultipleUploadBatches:!0,debug:!1,restrictions:{maxFileSize:null,minFileSize:null,maxTotalFileSize:null,maxNumberOfFiles:null,minNumberOfFiles:null,allowedFileTypes:null,requiredMetaFields:[]},meta:{},onBeforeFileAdded:r=>r,onBeforeUpload:r=>r,store:new Mj,logger:GK,infoTimeout:5e3};if(this.opts={...n,...e,restrictions:{...n.restrictions,...e&&e.restrictions}},e&&e.logger&&e.debug?this.log("You are using a custom `logger`, but also set `debug: true`, which uses built-in logger to output logs to console. Ignoring `debug: true` and using your custom `logger`.","warning"):e&&e.debug&&(this.opts.logger=qK),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=Ju(this.calculateProgress.bind(this),500,{leading:!0,trailing:!0}),this.store=this.opts.store,this.setState({plugins:{},files:{},currentUploads:{},allowNewUpload:!0,capabilities:{uploadProgress:HK(),individualCancellation:!0,resumableUploads:!1},totalProgress:0,meta:{...this.opts.meta},info:[],recoveredState:null}),ft(this,$c)[$c]=this.store.subscribe((r,o,i)=>{this.emit("state-update",r,o,i),this.updateAll(o)}),this.opts.debug&&typeof window<"u"&&(window[this.opts.id]=this),ft(this,zy)[zy]()}emit(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];ft(this,Wo)[Wo].emit(e,...r)}on(e,n){return ft(this,Wo)[Wo].on(e,n),this}once(e,n){return ft(this,Wo)[Wo].once(e,n),this}off(e,n){return ft(this,Wo)[Wo].off(e,n),this}updateAll(e){this.iteratePlugins(n=>{n.update(e)})}setState(e){this.store.setState(e)}getState(){return this.store.getState()}get state(){return this.getState()}setFileState(e,n){if(!this.getState().files[e])throw new Error(`Can’t set state for ${e} (the file could have been removed)`);this.setState({files:{...this.getState().files,[e]:{...this.getState().files[e],...n}}})}i18nInit(){const e=new Ij([this.defaultLocale,this.opts.locale]);this.i18n=e.translate.bind(e),this.i18nArray=e.translateArray.bind(e),this.locale=e.locale}setOptions(e){this.opts={...this.opts,...e,restrictions:{...this.opts.restrictions,...e&&e.restrictions}},e.meta&&this.setMeta(e.meta),this.i18nInit(),e.locale&&this.iteratePlugins(n=>{n.setOptions()}),this.setState()}resetProgress(){const e={percentage:0,bytesUploaded:0,uploadComplete:!1,uploadStarted:null},n={...this.getState().files},r={};Object.keys(n).forEach(o=>{const i={...n[o]};i.progress={...i.progress,...e},r[o]=i}),this.setState({files:r,totalProgress:0}),this.emit("reset-progress")}addPreProcessor(e){ft(this,gu)[gu].add(e)}removePreProcessor(e){return ft(this,gu)[gu].delete(e)}addPostProcessor(e){ft(this,Zo)[Zo].add(e)}removePostProcessor(e){return ft(this,Zo)[Zo].delete(e)}addUploader(e){ft(this,vu)[vu].add(e)}removeUploader(e){return ft(this,vu)[vu].delete(e)}setMeta(e){const n={...this.getState().meta,...e},r={...this.getState().files};Object.keys(r).forEach(o=>{r[o]={...r[o],meta:{...r[o].meta,...e}}}),this.log("Adding metadata:"),this.log(e),this.setState({meta:n,files:r})}setFileMeta(e,n){const r={...this.getState().files};if(!r[e])return void this.log("Was trying to set metadata for a file that has been removed: ",e);const o={...r[e].meta,...n};r[e]={...r[e],meta:o},this.setState({files:r})}getFile(e){return this.getState().files[e]}getFiles(){const{files:e}=this.getState();return Object.values(e)}getObjectOfFilesPerState(){const{files:e,totalProgress:n,error:r}=this.getState(),o=Object.values(e),i=o.filter(y=>{let{progress:g}=y;return!g.uploadComplete&&g.uploadStarted}),a=o.filter(y=>!y.progress.uploadStarted),u=o.filter(y=>y.progress.uploadStarted||y.progress.preprocess||y.progress.postprocess),s=o.filter(y=>y.progress.uploadStarted),l=o.filter(y=>y.isPaused),c=o.filter(y=>y.progress.uploadComplete),f=o.filter(y=>y.error),p=i.filter(y=>!y.isPaused),d=o.filter(y=>y.progress.preprocess||y.progress.postprocess);return{newFiles:a,startedFiles:u,uploadStartedFiles:s,pausedFiles:l,completeFiles:c,erroredFiles:f,inProgressFiles:i,inProgressNotPausedFiles:p,processingFiles:d,isUploadStarted:s.length>0,isAllComplete:n===100&&c.length===o.length&&d.length===0,isAllErrored:!!r&&f.length===o.length,isAllPaused:i.length!==0&&l.length===i.length,isUploadInProgress:i.length>0,isSomeGhost:o.some(y=>y.isGhost)}}validateRestrictions(e,n){try{return ft(this,cd)[cd](e,n),{result:!0}}catch(r){return{result:!1,reason:r.message}}}checkIfFileAlreadyExists(e){const{files:n}=this.getState();return!(!n[e]||n[e].isGhost)}addFile(e){ft(this,Hc)[Hc](e);const{files:n}=this.getState();let r=ft(this,Vc)[Vc](n,e);return n[r.id]&&n[r.id].isGhost&&(r={...n[r.id],data:e.data,isGhost:!1},this.log(`Replaced the blob in the restored ghost file: ${r.name}, ${r.id}`)),this.setState({files:{...n,[r.id]:r}}),this.emit("file-added",r),this.emit("files-added",[r]),this.log(`Added file: ${r.name}, ${r.id}, mime type: ${r.type}`),ft(this,Uc)[Uc](),r.id}addFiles(e){ft(this,Hc)[Hc]();const n={...this.getState().files},r=[],o=[];for(let i=0;i<e.length;i++)try{let a=ft(this,Vc)[Vc](n,e[i]);n[a.id]&&n[a.id].isGhost&&(a={...n[a.id],data:e[i].data,isGhost:!1},this.log(`Replaced blob in a ghost file: ${a.name}, ${a.id}`)),n[a.id]=a,r.push(a)}catch(a){a.isRestriction||o.push(a)}if(this.setState({files:n}),r.forEach(i=>{this.emit("file-added",i)}),this.emit("files-added",r),r.length>5?this.log(`Added batch of ${r.length} files`):Object.keys(r).forEach(i=>{this.log(`Added file: ${r[i].name}
  26. id: ${r[i].id}
  27. type: ${r[i].type}`)}),r.length>0&&ft(this,Uc)[Uc](),o.length>0){let i=`Multiple errors occurred while adding files:
  28. `;if(o.forEach(a=>{i+=`
  29. * ${a.message}`}),this.info({message:this.i18n("addBulkFilesFailed",{smart_count:o.length}),details:i},"error",this.opts.infoTimeout),typeof AggregateError=="function")throw new AggregateError(o,i);{const a=new Error(i);throw a.errors=o,a}}}removeFiles(e,n){const{files:r,currentUploads:o}=this.getState(),i={...r},a={...o},u=Object.create(null);function s(f){return u[f]===void 0}e.forEach(f=>{r[f]&&(u[f]=r[f],delete i[f])}),Object.keys(a).forEach(f=>{const p=o[f].fileIDs.filter(s);p.length!==0?a[f]={...o[f],fileIDs:p}:delete a[f]});const l={currentUploads:a,files:i};Object.keys(i).length===0&&(l.allowNewUpload=!0,l.error=null,l.recoveredState=null),this.setState(l),this.calculateTotalProgress();const c=Object.keys(u);c.forEach(f=>{this.emit("file-removed",u[f],n)}),c.length>5?this.log(`Removed ${c.length} files`):this.log(`Removed files: ${c.join(", ")}`)}removeFile(e,n){n===void 0&&(n=null),this.removeFiles([e],n)}pauseResume(e){if(!this.getState().capabilities.resumableUploads||this.getFile(e).uploadComplete)return;const n=!this.getFile(e).isPaused;return this.setFileState(e,{isPaused:n}),this.emit("upload-pause",e,n),n}pauseAll(){const e={...this.getState().files};Object.keys(e).filter(n=>!e[n].progress.uploadComplete&&e[n].progress.uploadStarted).forEach(n=>{const r={...e[n],isPaused:!0};e[n]=r}),this.setState({files:e}),this.emit("pause-all")}resumeAll(){const e={...this.getState().files};Object.keys(e).filter(n=>!e[n].progress.uploadComplete&&e[n].progress.uploadStarted).forEach(n=>{const r={...e[n],isPaused:!1,error:null};e[n]=r}),this.setState({files:e}),this.emit("resume-all")}retryAll(){const e={...this.getState().files},n=Object.keys(e).filter(o=>e[o].error);if(n.forEach(o=>{const i={...e[o],isPaused:!1,error:null};e[o]=i}),this.setState({files:e,error:null}),this.emit("retry-all",n),n.length===0)return Promise.resolve({successful:[],failed:[]});const r=ft(this,Go)[Go](n,{forceAllowNewUpload:!0});return ft(this,qo)[qo](r)}cancelAll(){this.emit("cancel-all");const{files:e}=this.getState(),n=Object.keys(e);n.length&&this.removeFiles(n,"cancel-all"),this.setState({totalProgress:0,error:null,recoveredState:null})}retryUpload(e){this.setFileState(e,{error:null,isPaused:!1}),this.emit("upload-retry",e);const n=ft(this,Go)[Go]([e],{forceAllowNewUpload:!0});return ft(this,qo)[qo](n)}reset(){this.cancelAll()}logout(){this.iteratePlugins(e=>{e.provider&&e.provider.logout&&e.provider.logout()})}calculateProgress(e,n){if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const r=Number.isFinite(n.bytesTotal)&&n.bytesTotal>0;this.setFileState(e.id,{progress:{...this.getFile(e.id).progress,bytesUploaded:n.bytesUploaded,bytesTotal:n.bytesTotal,percentage:r?Math.round(n.bytesUploaded/n.bytesTotal*100):0}}),this.calculateTotalProgress()}calculateTotalProgress(){const e=this.getFiles().filter(s=>s.progress.uploadStarted||s.progress.preprocess||s.progress.postprocess);if(e.length===0)return this.emit("progress",0),void this.setState({totalProgress:0});const n=e.filter(s=>s.progress.bytesTotal!=null),r=e.filter(s=>s.progress.bytesTotal==null);if(n.length===0){const s=100*e.length,l=r.reduce((f,p)=>f+p.progress.percentage,0),c=Math.round(l/s*100);return void this.setState({totalProgress:c})}let o=n.reduce((s,l)=>s+l.progress.bytesTotal,0);const i=o/n.length;o+=i*r.length;let a=0;n.forEach(s=>{a+=s.progress.bytesUploaded}),r.forEach(s=>{a+=i*(s.progress.percentage||0)/100});let u=o===0?0:Math.round(a/o*100);u>100&&(u=100),this.setState({totalProgress:u}),this.emit("progress",u)}updateOnlineStatus(){window.navigator.onLine===void 0||window.navigator.onLine?(this.emit("is-online"),this.wasOffline&&(this.emit("back-online"),this.info(this.i18n("connectedToInternet"),"success",3e3),this.wasOffline=!1)):(this.emit("is-offline"),this.info(this.i18n("noInternetConnection"),"error",0),this.wasOffline=!0)}getID(){return this.opts.id}use(e,n){if(typeof e!="function")throw new TypeError(`Expected a plugin class, but got ${e===null?"null":typeof e}. Please verify that the plugin was imported and spelled correctly.`);const r=new e(this,n),o=r.id;if(!o)throw new Error("Your plugin must have an id");if(!r.type)throw new Error("Your plugin must have a type");const i=this.getPlugin(o);if(i){const a=`Already found a plugin named '${i.id}'. Tried to use: '${o}'.
  30. Uppy plugins must have unique \`id\` options. See https://uppy.io/docs/plugins/#id.`;throw new Error(a)}return e.VERSION&&this.log(`Using ${o} v${e.VERSION}`),r.type in ft(this,hn)[hn]?ft(this,hn)[hn][r.type].push(r):ft(this,hn)[hn][r.type]=[r],r.install(),this}getPlugin(e){for(const n of Object.values(ft(this,hn)[hn])){const r=n.find(o=>o.id===e);if(r!=null)return r}}[Hj](e){return ft(this,hn)[hn][e]}iteratePlugins(e){Object.values(ft(this,hn)[hn]).flat(1).forEach(e)}removePlugin(e){this.log(`Removing plugin ${e.id}`),this.emit("plugin-remove",e),e.uninstall&&e.uninstall();const n=ft(this,hn)[hn][e.type],r=n.findIndex(i=>i.id===e.id);r!==-1&&n.splice(r,1);const o={plugins:{...this.getState().plugins,[e.id]:void 0}};this.setState(o)}close(){this.log(`Closing Uppy instance ${this.opts.id}: removing all files and uninstalling plugins`),this.reset(),ft(this,$c)[$c](),this.iteratePlugins(e=>{this.removePlugin(e)}),typeof window<"u"&&window.removeEventListener&&(window.removeEventListener("online",ft(this,Ur)[Ur]),window.removeEventListener("offline",ft(this,Ur)[Ur]))}hideInfo(){const{info:e}=this.getState();this.setState({info:e.slice(1)}),this.emit("info-hidden")}info(e,n,r){n===void 0&&(n="info"),r===void 0&&(r=3e3);const o=typeof e=="object";this.setState({info:[...this.getState().info,{type:n,message:o?e.message:e,details:o?e.details:null}]}),setTimeout(()=>this.hideInfo(),r),this.emit("info-visible")}log(e,n){const{logger:r}=this.opts;switch(n){case"error":r.error(e);break;case"warning":r.warn(e);break;default:r.debug(e)}}restore(e){return this.log(`Core: attempting to restore upload "${e}"`),this.getState().currentUploads[e]?ft(this,qo)[qo](e):(ft(this,wu)[wu](e),Promise.reject(new Error("Nonexistent upload")))}[Vj](){return ft(this,Go)[Go](...arguments)}addResultData(e,n){if(!ft(this,$y)[$y](e))return void this.log(`Not setting result for an upload that has been removed: ${e}`);const{currentUploads:r}=this.getState(),o={...r[e],result:{...r[e].result,...n}};this.setState({currentUploads:{...r,[e]:o}})}upload(){var e;(e=ft(this,hn)[hn].uploader)!=null&&e.length||this.log("No uploader type plugins are used","warning");let{files:n}=this.getState();const r=this.opts.onBeforeUpload(n);return r===!1?Promise.reject(new Error("Not starting the upload because onBeforeUpload returned false")):(r&&typeof r=="object"&&(n=r,this.setState({files:n})),Promise.resolve().then(()=>{ft(this,Ry)[Ry](n),ft(this,My)[My](n)}).catch(o=>{ft(this,Je)[Je](o)}).then(()=>{const{currentUploads:o}=this.getState(),i=Object.values(o).flatMap(s=>s.fileIDs),a=[];Object.keys(n).forEach(s=>{const l=this.getFile(s);l.progress.uploadStarted||i.indexOf(s)!==-1||a.push(l.id)});const u=ft(this,Go)[Go](a);return ft(this,qo)[qo](u)}).catch(o=>{ft(this,Je)[Je](o,{showInformer:!1})}))}}function YK(t,e){e===void 0&&(e=this.getFiles());const{maxFileSize:n,minFileSize:r,maxTotalFileSize:o,maxNumberOfFiles:i,allowedFileTypes:a}=this.opts.restrictions;if(i&&e.length+1>i)throw new bo(`${this.i18n("youCanOnlyUploadX",{smart_count:i})}`);if(a&&!a.some(u=>u.indexOf("/")>-1?!!t.type&&RK(t.type.replace(/;.*?$/,""),u):!(u[0]!=="."||!t.extension)&&t.extension.toLowerCase()===u.substr(1).toLowerCase())){const u=a.join(", ");throw new bo(this.i18n("youCanOnlyUploadFileTypes",{types:u}))}if(o&&t.size!=null){let u=0;if(u+=t.size,e.forEach(s=>{u+=s.size}),u>o)throw new bo(this.i18n("exceedsSize",{size:Ny(o),file:t.name}))}if(n&&t.size!=null&&t.size>n)throw new bo(this.i18n("exceedsSize",{size:Ny(n),file:t.name}));if(r&&t.size!=null&&t.size<r)throw new bo(this.i18n("inferiorSize",{size:Ny(r)}))}function XK(t){const{minNumberOfFiles:e}=this.opts.restrictions;if(Object.keys(t).length<e)throw new bo(`${this.i18n("youHaveToAtLeastSelectX",{smart_count:e})}`)}function ZK(t){const{requiredMetaFields:e}=this.opts.restrictions,{hasOwnProperty:n}=Object.prototype,r=[],o=[];for(let i=0;i<e.length;i++)if(!n.call(t.meta,e[i])||t.meta[e[i]]===""){const a=new bo(`${this.i18n("missingRequiredMetaFieldOnFile",{fileName:t.name})}`);r.push(a),o.push(e[i]),ft(this,Je)[Je](a,{file:t,showInformer:!1,throwErr:!1})}return this.setFileState(t.id,{missingRequiredMetaFields:o}),r}function JK(t){const e=Object.keys(t).flatMap(n=>{const r=this.getFile(n);return ft(this,Wd)[Wd](r)});if(e.length)throw new KK(e,`${this.i18n("missingRequiredMetaField")}`)}function QK(t,e){let{showInformer:n=!0,file:r=null,throwErr:o=!0}=e===void 0?{}:e;const i=typeof t=="object"?t.message:t,a=typeof t=="object"&&t.details?t.details:"";let u=i;if(a&&(u+=` ${a}`),t.isRestriction?(this.log(u),this.emit("restriction-failed",r,t)):this.log(u,"error"),n&&this.info({message:i,details:a},"error",this.opts.infoTimeout),o)throw typeof t=="object"?t:new Error(t)}function tY(t){const{allowNewUpload:e}=this.getState();e===!1&&ft(this,Je)[Je](new bo(this.i18n("noMoreFilesAllowed")),{file:t})}function eY(t,e){const n=function(f){var p;if(f.type)return f.type;const d=f.name?(p=n7(f.name).extension)==null?void 0:p.toLowerCase():null;return d&&d in r7?r7[d]:"application/octet-stream"}(e),r=function(f,p){return p.name?p.name:f.split("/")[0]==="image"?`${f.split("/")[0]}.${f.split("/")[1]}`:"noname"}(n,e),o=n7(r).extension,i=!!e.isRemote,a=function(f){let p="uppy";return typeof f.name=="string"&&(p+=`-${o7(f.name.toLowerCase())}`),f.type!==void 0&&(p+=`-${f.type}`),f.meta&&typeof f.meta.relativePath=="string"&&(p+=`-${o7(f.meta.relativePath.toLowerCase())}`),f.data.size!==void 0&&(p+=`-${f.data.size}`),f.data.lastModified!==void 0&&(p+=`-${f.data.lastModified}`),p}({...e,type:n});if(this.checkIfFileAlreadyExists(a)){const f=new bo(this.i18n("noDuplicates",{fileName:r}));ft(this,Je)[Je](f,{file:e})}const u=e.meta||{};u.name=r,u.type=n;const s=Number.isFinite(e.data.size)?e.data.size:null;let l={source:e.source||"",id:a,name:r,extension:o||"",meta:{...this.getState().meta,...u},type:n,data:e.data,progress:{percentage:0,bytesUploaded:0,bytesTotal:s,uploadComplete:!1,uploadStarted:null},size:s,isRemote:i,remote:e.remote||"",preview:e.preview};const c=this.opts.onBeforeFileAdded(l,t);c===!1?ft(this,Je)[Je](new bo("Cannot add the file because onBeforeFileAdded returned false."),{showInformer:!1,fileDescriptor:e}):typeof c=="object"&&c!==null&&(l=c);try{const f=Object.keys(t).map(p=>t[p]);ft(this,cd)[cd](l,f)}catch(f){ft(this,Je)[Je](f,{file:l})}return l}function nY(){this.opts.autoProceed&&!this.scheduledAutoProceed&&(this.scheduledAutoProceed=setTimeout(()=>{this.scheduledAutoProceed=null,this.upload().catch(t=>{t.isRestriction||this.log(t.stack||t.message||t)})},4))}function rY(){const t=(e,n,r)=>{let o=e.message||"Unknown error";e.details&&(o+=` ${e.details}`),this.setState({error:o}),n!=null&&n.id in this.getState().files&&this.setFileState(n.id,{error:o,response:r})};this.on("error",t),this.on("upload-error",(e,n,r)=>{if(t(n,e,r),typeof n=="object"&&n.message){const o=new Error(n.message);o.details=n.message,n.details&&(o.details+=` ${n.details}`),o.message=this.i18n("failedToUpload",{file:e.name}),ft(this,Je)[Je](o,{throwErr:!1})}else ft(this,Je)[Je](n,{throwErr:!1})}),this.on("upload",()=>{this.setState({error:null})}),this.on("upload-started",e=>{this.getFile(e.id)?this.setFileState(e.id,{progress:{uploadStarted:Date.now(),uploadComplete:!1,percentage:0,bytesUploaded:0,bytesTotal:e.size}}):this.log(`Not setting progress for a file that has been removed: ${e.id}`)}),this.on("upload-progress",this.calculateProgress),this.on("upload-success",(e,n)=>{if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const r=this.getFile(e.id).progress;this.setFileState(e.id,{progress:{...r,postprocess:ft(this,Zo)[Zo].size>0?{mode:"indeterminate"}:null,uploadComplete:!0,percentage:100,bytesUploaded:r.bytesTotal},response:n,uploadURL:n.uploadURL,isPaused:!1}),e.size==null&&this.setFileState(e.id,{size:n.bytesUploaded||r.bytesTotal}),this.calculateTotalProgress()}),this.on("preprocess-progress",(e,n)=>{this.getFile(e.id)?this.setFileState(e.id,{progress:{...this.getFile(e.id).progress,preprocess:n}}):this.log(`Not setting progress for a file that has been removed: ${e.id}`)}),this.on("preprocess-complete",e=>{if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const n={...this.getState().files};n[e.id]={...n[e.id],progress:{...n[e.id].progress}},delete n[e.id].progress.preprocess,this.setState({files:n})}),this.on("postprocess-progress",(e,n)=>{this.getFile(e.id)?this.setFileState(e.id,{progress:{...this.getState().files[e.id].progress,postprocess:n}}):this.log(`Not setting progress for a file that has been removed: ${e.id}`)}),this.on("postprocess-complete",e=>{if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const n={...this.getState().files};n[e.id]={...n[e.id],progress:{...n[e.id].progress}},delete n[e.id].progress.postprocess,this.setState({files:n})}),this.on("restored",()=>{this.calculateTotalProgress()}),this.on("dashboard:file-edit-complete",e=>{e&&ft(this,Wd)[Wd](e)}),typeof window<"u"&&window.addEventListener&&(window.addEventListener("online",ft(this,Ur)[Ur]),window.addEventListener("offline",ft(this,Ur)[Ur]),setTimeout(ft(this,Ur)[Ur],3e3))}function oY(t,e){e===void 0&&(e={});const{forceAllowNewUpload:n=!1}=e,{allowNewUpload:r,currentUploads:o}=this.getState();if(!r&&!n)throw new Error("Cannot create a new upload: already uploading.");const i=WK();return this.emit("upload",{id:i,fileIDs:t}),this.setState({allowNewUpload:this.opts.allowMultipleUploadBatches!==!1&&this.opts.allowMultipleUploads!==!1,currentUploads:{...o,[i]:{fileIDs:t,step:0,result:{}}}}),i}function iY(t){const{currentUploads:e}=this.getState();return e[t]}function aY(t){const e={...this.getState().currentUploads};delete e[t],this.setState({currentUploads:e})}async function uY(t){let{currentUploads:e}=this.getState(),n=e[t];const r=n.step||0,o=[...ft(this,gu)[gu],...ft(this,vu)[vu],...ft(this,Zo)[Zo]];try{for(let a=r;a<o.length&&n;a++){const u=o[a],s={...n,step:a};this.setState({currentUploads:{...e,[t]:s}}),await u(s.fileIDs,t),e=this.getState().currentUploads,n=e[t]}}catch(a){throw this.emit("error",a),ft(this,wu)[wu](t),a}if(n){n.fileIDs.forEach(l=>{const c=this.getFile(l);c&&c.progress.postprocess&&this.emit("postprocess-complete",c)});const a=n.fileIDs.map(l=>this.getFile(l)),u=a.filter(l=>!l.error),s=a.filter(l=>l.error);await this.addResultData(t,{successful:u,failed:s,uploadID:t}),e=this.getState().currentUploads,n=e[t]}let i;return n&&(i=n.result,this.emit("complete",i),ft(this,wu)[wu](t)),i==null&&this.log(`Not setting result for an upload that has been removed: ${t}`),i}Uj.VERSION="2.1.3";var Wj=Uj,sY=cs(function(t,e){var n,r,o,i,a,u,s,l,c={},f=[],p=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function d(k,S){for(var P in S)k[P]=S[P];return k}function y(k){var S=k.parentNode;S&&S.removeChild(k)}function g(k,S,P){var $,Y,V,it={};for(V in S)V=="key"?$=S[V]:V=="ref"?Y=S[V]:it[V]=S[V];if(arguments.length>2&&(it.children=arguments.length>3?n.call(arguments,2):P),typeof k=="function"&&k.defaultProps!=null)for(V in k.defaultProps)it[V]===void 0&&(it[V]=k.defaultProps[V]);return v(k,it,$,Y,null)}function v(k,S,P,$,Y){var V={type:k,props:S,key:P,ref:$,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:Y??++o};return Y==null&&r.vnode!=null&&r.vnode(V),V}function m(k){return k.children}function h(k,S){this.props=k,this.context=S}function b(k,S){if(S==null)return k.__?b(k.__,k.__.__k.indexOf(k)+1):null;for(var P;S<k.__k.length;S++)if((P=k.__k[S])!=null&&P.__e!=null)return P.__e;return typeof k.type=="function"?b(k):null}function w(k){var S,P;if((k=k.__)!=null&&k.__c!=null){for(k.__e=k.__c.base=null,S=0;S<k.__k.length;S++)if((P=k.__k[S])!=null&&P.__e!=null){k.__e=k.__c.base=P.__e;break}return w(k)}}function E(k){(!k.__d&&(k.__d=!0)&&a.push(k)&&!x.__r++||s!==r.debounceRendering)&&((s=r.debounceRendering)||u)(x)}function x(){for(var k;x.__r=a.length;)k=a.sort(function(S,P){return S.__v.__b-P.__v.__b}),a=[],k.some(function(S){var P,$,Y,V,it,gt;S.__d&&(it=(V=(P=S).__v).__e,(gt=P.__P)&&($=[],(Y=d({},V)).__v=V.__v+1,U(gt,V,Y,P.__n,gt.ownerSVGElement!==void 0,V.__h!=null?[it]:null,$,it??b(V),V.__h),W($,V),V.__e!=it&&w(V)))})}function C(k,S,P,$,Y,V,it,gt,vt,Dt){var G,It,At,dt,Ot,Be,$t,te=$&&$.__k||f,me=te.length;for(P.__k=[],G=0;G<S.length;G++)if((dt=P.__k[G]=(dt=S[G])==null||typeof dt=="boolean"?null:typeof dt=="string"||typeof dt=="number"||typeof dt=="bigint"?v(null,dt,null,null,dt):Array.isArray(dt)?v(m,{children:dt},null,null,null):dt.__b>0?v(dt.type,dt.props,dt.key,null,dt.__v):dt)!=null){if(dt.__=P,dt.__b=P.__b+1,(At=te[G])===null||At&&dt.key==At.key&&dt.type===At.type)te[G]=void 0;else for(It=0;It<me;It++){if((At=te[It])&&dt.key==At.key&&dt.type===At.type){te[It]=void 0;break}At=null}U(k,dt,At=At||c,Y,V,it,gt,vt,Dt),Ot=dt.__e,(It=dt.ref)&&At.ref!=It&&($t||($t=[]),At.ref&&$t.push(At.ref,null,dt),$t.push(It,dt.__c||Ot,dt)),Ot!=null?(Be==null&&(Be=Ot),typeof dt.type=="function"&&dt.__k===At.__k?dt.__d=vt=O(dt,vt,k):vt=F(k,dt,At,te,Ot,vt),typeof P.type=="function"&&(P.__d=vt)):vt&&At.__e==vt&&vt.parentNode!=k&&(vt=b(At))}for(P.__e=Be,G=me;G--;)te[G]!=null&&(typeof P.type=="function"&&te[G].__e!=null&&te[G].__e==P.__d&&(P.__d=b($,G+1)),lt(te[G],te[G]));if($t)for(G=0;G<$t.length;G++)nt($t[G],$t[++G],$t[++G])}function O(k,S,P){for(var $,Y=k.__k,V=0;Y&&V<Y.length;V++)($=Y[V])&&($.__=k,S=typeof $.type=="function"?O($,S,P):F(P,$,$,Y,$.__e,S));return S}function F(k,S,P,$,Y,V){var it,gt,vt;if(S.__d!==void 0)it=S.__d,S.__d=void 0;else if(P==null||Y!=V||Y.parentNode==null)t:if(V==null||V.parentNode!==k)k.appendChild(Y),it=null;else{for(gt=V,vt=0;(gt=gt.nextSibling)&&vt<$.length;vt+=2)if(gt==Y)break t;k.insertBefore(Y,V),it=V}return it!==void 0?it:Y.nextSibling}function R(k,S,P){S[0]==="-"?k.setProperty(S,P):k[S]=P==null?"":typeof P!="number"||p.test(S)?P:P+"px"}function H(k,S,P,$,Y){var V;t:if(S==="style")if(typeof P=="string")k.style.cssText=P;else{if(typeof $=="string"&&(k.style.cssText=$=""),$)for(S in $)P&&S in P||R(k.style,S,"");if(P)for(S in P)$&&P[S]===$[S]||R(k.style,S,P[S])}else if(S[0]==="o"&&S[1]==="n")V=S!==(S=S.replace(/Capture$/,"")),S=S.toLowerCase()in k?S.toLowerCase().slice(2):S.slice(2),k.l||(k.l={}),k.l[S+V]=P,P?$||k.addEventListener(S,V?K:M,V):k.removeEventListener(S,V?K:M,V);else if(S!=="dangerouslySetInnerHTML"){if(Y)S=S.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if(S!=="href"&&S!=="list"&&S!=="form"&&S!=="tabIndex"&&S!=="download"&&S in k)try{k[S]=P??"";break t}catch{}typeof P=="function"||(P!=null&&(P!==!1||S[0]==="a"&&S[1]==="r")?k.setAttribute(S,P):k.removeAttribute(S))}}function M(k){this.l[k.type+!1](r.event?r.event(k):k)}function K(k){this.l[k.type+!0](r.event?r.event(k):k)}function U(k,S,P,$,Y,V,it,gt,vt){var Dt,G,It,At,dt,Ot,Be,$t,te,me,bn,zt=S.type;if(S.constructor!==void 0)return null;P.__h!=null&&(vt=P.__h,gt=S.__e=P.__e,S.__h=null,V=[gt]),(Dt=r.__b)&&Dt(S);try{t:if(typeof zt=="function"){if($t=S.props,te=(Dt=zt.contextType)&&$[Dt.__c],me=Dt?te?te.props.value:Dt.__:$,P.__c?Be=(G=S.__c=P.__c).__=G.__E:("prototype"in zt&&zt.prototype.render?S.__c=G=new zt($t,me):(S.__c=G=new h($t,me),G.constructor=zt,G.render=st),te&&te.sub(G),G.props=$t,G.state||(G.state={}),G.context=me,G.__n=$,It=G.__d=!0,G.__h=[]),G.__s==null&&(G.__s=G.state),zt.getDerivedStateFromProps!=null&&(G.__s==G.state&&(G.__s=d({},G.__s)),d(G.__s,zt.getDerivedStateFromProps($t,G.__s))),At=G.props,dt=G.state,It)zt.getDerivedStateFromProps==null&&G.componentWillMount!=null&&G.componentWillMount(),G.componentDidMount!=null&&G.__h.push(G.componentDidMount);else{if(zt.getDerivedStateFromProps==null&&$t!==At&&G.componentWillReceiveProps!=null&&G.componentWillReceiveProps($t,me),!G.__e&&G.shouldComponentUpdate!=null&&G.shouldComponentUpdate($t,G.__s,me)===!1||S.__v===P.__v){G.props=$t,G.state=G.__s,S.__v!==P.__v&&(G.__d=!1),G.__v=S,S.__e=P.__e,S.__k=P.__k,S.__k.forEach(function(Rn){Rn&&(Rn.__=S)}),G.__h.length&&it.push(G);break t}G.componentWillUpdate!=null&&G.componentWillUpdate($t,G.__s,me),G.componentDidUpdate!=null&&G.__h.push(function(){G.componentDidUpdate(At,dt,Ot)})}G.context=me,G.props=$t,G.state=G.__s,(Dt=r.__r)&&Dt(S),G.__d=!1,G.__v=S,G.__P=k,Dt=G.render(G.props,G.state,G.context),G.state=G.__s,G.getChildContext!=null&&($=d(d({},$),G.getChildContext())),It||G.getSnapshotBeforeUpdate==null||(Ot=G.getSnapshotBeforeUpdate(At,dt)),bn=Dt!=null&&Dt.type===m&&Dt.key==null?Dt.props.children:Dt,C(k,Array.isArray(bn)?bn:[bn],S,P,$,Y,V,it,gt,vt),G.base=S.__e,S.__h=null,G.__h.length&&it.push(G),Be&&(G.__E=G.__=null),G.__e=!1}else V==null&&S.__v===P.__v?(S.__k=P.__k,S.__e=P.__e):S.__e=q(P.__e,S,P,$,Y,V,it,vt);(Dt=r.diffed)&&Dt(S)}catch(Rn){S.__v=null,(vt||V!=null)&&(S.__e=gt,S.__h=!!vt,V[V.indexOf(gt)]=null),r.__e(Rn,S,P)}}function W(k,S){r.__c&&r.__c(S,k),k.some(function(P){try{k=P.__h,P.__h=[],k.some(function($){$.call(P)})}catch($){r.__e($,P.__v)}})}function q(k,S,P,$,Y,V,it,gt){var vt,Dt,G,It=P.props,At=S.props,dt=S.type,Ot=0;if(dt==="svg"&&(Y=!0),V!=null){for(;Ot<V.length;Ot++)if((vt=V[Ot])&&"setAttribute"in vt==!!dt&&(dt?vt.localName===dt:vt.nodeType===3)){k=vt,V[Ot]=null;break}}if(k==null){if(dt===null)return document.createTextNode(At);k=Y?document.createElementNS("http://www.w3.org/2000/svg",dt):document.createElement(dt,At.is&&At),V=null,gt=!1}if(dt===null)It===At||gt&&k.data===At||(k.data=At);else{if(V=V&&n.call(k.childNodes),Dt=(It=P.props||c).dangerouslySetInnerHTML,G=At.dangerouslySetInnerHTML,!gt){if(V!=null)for(It={},Ot=0;Ot<k.attributes.length;Ot++)It[k.attributes[Ot].name]=k.attributes[Ot].value;(G||Dt)&&(G&&(Dt&&G.__html==Dt.__html||G.__html===k.innerHTML)||(k.innerHTML=G&&G.__html||""))}if(function(Be,$t,te,me,bn){var zt;for(zt in te)zt==="children"||zt==="key"||zt in $t||H(Be,zt,null,te[zt],me);for(zt in $t)bn&&typeof $t[zt]!="function"||zt==="children"||zt==="key"||zt==="value"||zt==="checked"||te[zt]===$t[zt]||H(Be,zt,$t[zt],te[zt],me)}(k,At,It,Y,gt),G)S.__k=[];else if(Ot=S.props.children,C(k,Array.isArray(Ot)?Ot:[Ot],S,P,$,Y&&dt!=="foreignObject",V,it,V?V[0]:P.__k&&b(P,0),gt),V!=null)for(Ot=V.length;Ot--;)V[Ot]!=null&&y(V[Ot]);gt||("value"in At&&(Ot=At.value)!==void 0&&(Ot!==It.value||Ot!==k.value||dt==="progress"&&!Ot)&&H(k,"value",Ot,It.value,!1),"checked"in At&&(Ot=At.checked)!==void 0&&Ot!==k.checked&&H(k,"checked",Ot,It.checked,!1))}return k}function nt(k,S,P){try{typeof k=="function"?k(S):k.current=S}catch($){r.__e($,P)}}function lt(k,S,P){var $,Y;if(r.unmount&&r.unmount(k),($=k.ref)&&($.current&&$.current!==k.__e||nt($,null,S)),($=k.__c)!=null){if($.componentWillUnmount)try{$.componentWillUnmount()}catch(V){r.__e(V,S)}$.base=$.__P=null}if($=k.__k)for(Y=0;Y<$.length;Y++)$[Y]&&lt($[Y],S,typeof k.type!="function");P||k.__e==null||y(k.__e),k.__e=k.__d=void 0}function st(k,S,P){return this.constructor(k,P)}function at(k,S,P){var $,Y,V;r.__&&r.__(k,S),Y=($=typeof P=="function")?null:P&&P.__k||S.__k,V=[],U(S,k=(!$&&P||S).__k=g(m,null,[k]),Y||c,c,S.ownerSVGElement!==void 0,!$&&P?[P]:Y?null:S.firstChild?n.call(S.childNodes):null,V,!$&&P?P:Y?Y.__e:S.firstChild,$),W(V,k)}n=f.slice,r={__e:function(k,S){for(var P,$,Y;S=S.__;)if((P=S.__c)&&!P.__)try{if(($=P.constructor)&&$.getDerivedStateFromError!=null&&(P.setState($.getDerivedStateFromError(k)),Y=P.__d),P.componentDidCatch!=null&&(P.componentDidCatch(k),Y=P.__d),Y)return P.__E=P}catch(V){k=V}throw k}},o=0,i=function(k){return k!=null&&k.constructor===void 0},h.prototype.setState=function(k,S){var P;P=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=d({},this.state),typeof k=="function"&&(k=k(d({},P),this.props)),k&&d(P,k),k!=null&&this.__v&&(S&&this.__h.push(S),E(this))},h.prototype.forceUpdate=function(k){this.__v&&(this.__e=!0,k&&this.__h.push(k),E(this))},h.prototype.render=m,a=[],u=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,x.__r=0,l=0,e.Component=h,e.Fragment=m,e.cloneElement=function(k,S,P){var $,Y,V,it=d({},k.props);for(V in S)V=="key"?$=S[V]:V=="ref"?Y=S[V]:it[V]=S[V];return arguments.length>2&&(it.children=arguments.length>3?n.call(arguments,2):P),v(k.type,it,$||k.key,Y||k.ref,null)},e.createContext=function(k,S){var P={__c:S="__cC"+l++,__:k,Consumer:function($,Y){return $.children(Y)},Provider:function($){var Y,V;return this.getChildContext||(Y=[],(V={})[S]=this,this.getChildContext=function(){return V},this.shouldComponentUpdate=function(it){this.props.value!==it.value&&Y.some(E)},this.sub=function(it){Y.push(it);var gt=it.componentWillUnmount;it.componentWillUnmount=function(){Y.splice(Y.indexOf(it),1),gt&&gt.call(it)}}),$.children}};return P.Provider.__=P.Consumer.contextType=P},e.createElement=g,e.createRef=function(){return{current:null}},e.h=g,e.hydrate=function k(S,P){at(S,P,k)},e.isValidElement=i,e.options=r,e.render=at,e.toChildArray=function k(S,P){return P=P||[],S==null||typeof S=="boolean"||(Array.isArray(S)?S.some(function($){k($,P)}):P.push(S)),P}}),lY=function(t,e){return e===void 0&&(e=document),typeof t=="string"?e.querySelector(t):((n=t)==null?void 0:n.nodeType)===Node.ELEMENT_NODE?t:null;var n},q5=class{constructor(t,e){e===void 0&&(e={}),this.uppy=t,this.opts=e}getPluginState(){const{plugins:t}=this.uppy.getState();return t[this.id]||{}}setPluginState(t){const{plugins:e}=this.uppy.getState();this.uppy.setState({plugins:{...e,[this.id]:{...e[this.id],...t}}})}setOptions(t){this.opts={...this.opts,...t},this.setPluginState(),this.i18nInit()}i18nInit(){const t=new Ij([this.defaultLocale,this.uppy.locale,this.opts.locale]);this.i18n=t.translate.bind(t),this.i18nArray=t.translateArray.bind(t),this.setPluginState()}addTarget(){throw new Error("Extend the addTarget method to add your plugin to another plugin's target")}install(){}uninstall(){}render(){throw new Error("Extend the render method to add your plugin to a DOM element")}update(){}afterUpdate(){}};function i7(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var cY=0;function fY(t){return"__private_"+cY+++"_"+t}const{render:a7}=sY;var Wc=fY("updateUI");class K5 extends q5{constructor(){super(...arguments),Object.defineProperty(this,Wc,{writable:!0,value:void 0})}mount(e,n){const r=n.id,o=lY(e);if(o){this.isTargetDOMEl=!0;const u=document.createDocumentFragment();return i7(this,Wc)[Wc]=function(s){let l=null,c=null;return function(){for(var f=arguments.length,p=new Array(f),d=0;d<f;d++)p[d]=arguments[d];return c=p,l||(l=Promise.resolve().then(()=>(l=null,s(...c)))),l}}(s=>{this.uppy.getPlugin(this.id)&&(a7(this.render(s),u),this.afterUpdate())}),this.uppy.log(`Installing ${r} to a DOM element '${e}'`),this.opts.replaceTargetContent&&(o.innerHTML=""),a7(this.render(this.uppy.getState()),u),this.el=u.firstElementChild,o.appendChild(u),this.onMount(),this.el}let i;if(typeof e=="object"&&e instanceof K5)i=e;else if(typeof e=="function"){const u=e;this.uppy.iteratePlugins(s=>{if(s instanceof u)return i=s,!1})}if(i)return this.uppy.log(`Installing ${r} to ${i.id}`),this.parent=i,this.el=i.addTarget(n),this.onMount(),this.el;this.uppy.log(`Not installing ${r}`);let a=`Invalid target option given to ${r}.`;throw a+=typeof e=="function"?" The given target is not a Plugin class. Please check that you're not specifying a React Component instead of a plugin. If you are using @uppy/* packages directly, make sure you have only 1 version of @uppy/core installed: run `npm ls @uppy/core` on the command line and verify that all the versions match and are deduped correctly.":"If you meant to target an HTML element, please make sure that the element exists. Check that the <script> tag initializing Uppy is right before the closing </body> tag at the end of the page. (see https://github.com/transloadit/uppy/issues/1042)\n\nIf you meant to target a plugin, please confirm that your `import` statements or `require` calls are correct.",new Error(a)}update(e){var n,r;this.el!=null&&((n=(r=i7(this,Wc))[Wc])==null||n.call(r,e))}unmount(){var e;this.isTargetDOMEl&&((e=this.el)==null||e.remove()),this.onUnmount()}onMount(){}onUnmount(){}}var dY=K5;const{debugLogger:pY}=zj;var Qf=Wj,hY=Wj,gY=dY,vY=q5,mY=pY;Qf.Uppy=hY,Qf.UIPlugin=gY,Qf.BasePlugin=vY,Qf.debugLogger=mY;class yY extends Error{constructor(e,n){n===void 0&&(n=null),super("This looks like a network error, the endpoint might be blocked by an internet provider or a firewall."),this.cause=e,this.isNetworkError=!0,this.request=n}}var Y5=yY,Hy=function(){return fetch(...arguments).catch(t=>{throw t.name==="AbortError"?t:new Y5(t)})};class bY extends Error{constructor(){super("Authorization required"),this.name="AuthError",this.isAuthError=!0}}var Wh,Di,ho,Ci,u7,wY=bY;function po(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var EY=0;function Vy(t){return"__private_"+EY+++"_"+t}async function Uy(t){if(t.status===401)throw new wY;const e=t.json();if(t.status<200||t.status>300){let n=`Failed request with status: ${t.status}. ${t.statusText}`;try{const r=await e;n=r.message?`${n} message: ${r.message}`:n,n=r.requestId?`${n} request-Id: ${r.requestId}`:n}finally{throw new Error(n)}}return e}var Wy=(Di=Vy("getPostResponseFunc"),ho=Vy("getUrl"),Ci=Vy("errorHandler"),u7=Wh=class Gj{constructor(e,n){Object.defineProperty(this,Ci,{value:CY}),Object.defineProperty(this,ho,{value:DY}),Object.defineProperty(this,Di,{writable:!0,value:r=>o=>r?o:this.onReceiveResponse(o)}),this.uppy=e,this.opts=n,this.onReceiveResponse=this.onReceiveResponse.bind(this),this.allowedHeaders=["accept","content-type","uppy-auth-token"],this.preflightDone=!1}get hostname(){const{companion:e}=this.uppy.getState(),n=this.opts.companionUrl;return(e&&e[n]?e[n]:n).replace(/\/$/,"")}headers(){const e=this.opts.companionHeaders||{};return Promise.resolve({...Gj.defaultHeaders,...e})}onReceiveResponse(e){const n=this.uppy.getState().companion||{},r=this.opts.companionUrl,{headers:o}=e;return o.has("i-am")&&o.get("i-am")!==n[r]&&this.uppy.setState({companion:{...n,[r]:o.get("i-am")}}),e}preflight(e){return this.preflightDone?Promise.resolve(this.allowedHeaders.slice()):fetch(po(this,ho)[ho](e),{method:"OPTIONS"}).then(n=>(n.headers.has("access-control-allow-headers")&&(this.allowedHeaders=n.headers.get("access-control-allow-headers").split(",").map(r=>r.trim().toLowerCase())),this.preflightDone=!0,this.allowedHeaders.slice())).catch(n=>(this.uppy.log(`[CompanionClient] unable to make preflight request ${n}`,"warning"),this.preflightDone=!0,this.allowedHeaders.slice()))}preflightAndHeaders(e){return Promise.all([this.preflight(e),this.headers()]).then(n=>{let[r,o]=n;return Object.keys(o).forEach(i=>{r.includes(i.toLowerCase())||(this.uppy.log(`[CompanionClient] excluding disallowed header ${i}`),delete o[i])}),o})}get(e,n){return this.preflightAndHeaders(e).then(r=>Hy(po(this,ho)[ho](e),{method:"get",headers:r,credentials:this.opts.companionCookiesRule||"same-origin"})).then(po(this,Di)[Di](n)).then(Uy).catch(po(this,Ci)[Ci]("get",e))}post(e,n,r){const o="post";return this.preflightAndHeaders(e).then(i=>Hy(po(this,ho)[ho](e),{method:o,headers:i,credentials:this.opts.companionCookiesRule||"same-origin",body:JSON.stringify(n)})).then(po(this,Di)[Di](r)).then(Uy).catch(po(this,Ci)[Ci](o,e))}delete(e,n,r){const o="delete";return this.preflightAndHeaders(e).then(i=>Hy(`${this.hostname}/${e}`,{method:o,headers:i,credentials:this.opts.companionCookiesRule||"same-origin",body:n?JSON.stringify(n):null})).then(po(this,Di)[Di](r)).then(Uy).catch(po(this,Ci)[Ci](o,e))}},Wh.VERSION="2.0.4",Wh.defaultHeaders={Accept:"application/json","Content-Type":"application/json","Uppy-Versions":`@uppy/companion-client=${Wh.VERSION}`},u7);function DY(t){return/^(https?:|)\/\//.test(t)?t:`${this.hostname}/${t}`}function CY(t,e){return n=>{var r;if((r=n)==null||!r.isAuthError){const o=new Error(`Could not ${t} ${po(this,ho)[ho](e)}`);o.cause=n,n=o}return Promise.reject(n)}}var xY={setItem:(t,e)=>new Promise(n=>{localStorage.setItem(t,e),n()}),getItem:t=>Promise.resolve(localStorage.getItem(t)),removeItem:t=>new Promise(e=>{localStorage.removeItem(t),e()})},fo,xi,yr,Sn,Gh;let s7,l7;function $e(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var SY=0;function Gc(t){return"__private_"+SY+++"_"+t}var AY=(fo=Gc("queued"),xi=Gc("emitter"),yr=Gc("isOpen"),Sn=Gc("socket"),Gh=Gc("handleMessage"),s7=Symbol.for("uppy test: getSocket"),l7=Symbol.for("uppy test: getQueued"),class{constructor(t){Object.defineProperty(this,fo,{writable:!0,value:[]}),Object.defineProperty(this,xi,{writable:!0,value:Lj()}),Object.defineProperty(this,yr,{writable:!0,value:!1}),Object.defineProperty(this,Sn,{writable:!0,value:void 0}),Object.defineProperty(this,Gh,{writable:!0,value:e=>{try{const n=JSON.parse(e.data);this.emit(n.action,n.payload)}catch(n){console.log(n)}}}),this.opts=t,t&&t.autoOpen===!1||this.open()}get isOpen(){return $e(this,yr)[yr]}[s7](){return $e(this,Sn)[Sn]}[l7](){return $e(this,fo)[fo]}open(){$e(this,Sn)[Sn]=new WebSocket(this.opts.target),$e(this,Sn)[Sn].onopen=()=>{for($e(this,yr)[yr]=!0;$e(this,fo)[fo].length>0&&$e(this,yr)[yr];){const t=$e(this,fo)[fo].shift();this.send(t.action,t.payload)}},$e(this,Sn)[Sn].onclose=()=>{$e(this,yr)[yr]=!1},$e(this,Sn)[Sn].onmessage=$e(this,Gh)[Gh]}close(){var t;(t=$e(this,Sn)[Sn])==null||t.close()}send(t,e){$e(this,yr)[yr]?$e(this,Sn)[Sn].send(JSON.stringify({action:t,payload:e})):$e(this,fo)[fo].push({action:t,payload:e})}on(t,e){$e(this,xi)[xi].on(t,e)}emit(t,e){$e(this,xi)[xi].emit(t,e)}once(t,e){$e(this,xi)[xi].once(t,e)}}),OY={RequestClient:Wy,Provider:class extends Wy{constructor(t,e){super(t,e),this.provider=e.provider,this.id=this.provider,this.name=this.opts.name||(n=>n.split("-").map(r=>r.charAt(0).toUpperCase()+r.slice(1)).join(" "))(this.id),this.pluginId=this.opts.pluginId,this.tokenKey=`companion-${this.pluginId}-auth-token`,this.companionKeysParams=this.opts.companionKeysParams,this.preAuthToken=null}headers(){return Promise.all([super.headers(),this.getAuthToken()]).then(t=>{let[e,n]=t;const r={};return n&&(r["uppy-auth-token"]=n),this.companionKeysParams&&(r["uppy-credentials-params"]=btoa(JSON.stringify({params:this.companionKeysParams}))),{...e,...r}})}onReceiveResponse(t){t=super.onReceiveResponse(t);const e=this.uppy.getPlugin(this.pluginId),n=e.getPluginState().authenticated?t.status!==401:t.status<400;return e.setPluginState({authenticated:n}),t}setAuthToken(t){return this.uppy.getPlugin(this.pluginId).storage.setItem(this.tokenKey,t)}getAuthToken(){return this.uppy.getPlugin(this.pluginId).storage.getItem(this.tokenKey)}authUrl(t){return t===void 0&&(t={}),this.preAuthToken&&(t.uppyPreAuthToken=this.preAuthToken),`${this.hostname}/${this.id}/connect?${new URLSearchParams(t)}`}fileUrl(t){return`${this.hostname}/${this.id}/get/${t}`}fetchPreAuthToken(){return this.companionKeysParams?this.post(`${this.id}/preauth/`,{params:this.companionKeysParams}).then(t=>{this.preAuthToken=t.token}).catch(t=>{this.uppy.log(`[CompanionClient] unable to fetch preAuthToken ${t}`,"warning")}):Promise.resolve()}list(t){return this.get(`${this.id}/list/${t||""}`)}logout(){return this.get(`${this.id}/logout`).then(t=>Promise.all([t,this.uppy.getPlugin(this.pluginId).storage.removeItem(this.tokenKey)])).then(t=>{let[e]=t;return e})}static initPlugin(t,e,n){if(t.type="acquirer",t.files=[],n&&(t.opts={...n,...e}),e.serverUrl||e.serverPattern)throw new Error("`serverUrl` and `serverPattern` have been renamed to `companionUrl` and `companionAllowedHosts` respectively in the 0.30.5 release. Please consult the docs (for example, https://uppy.io/docs/instagram/ for the Instagram plugin) and use the updated options.`");if(e.companionAllowedHosts){const r=e.companionAllowedHosts;if(!(typeof r=="string"||Array.isArray(r)||r instanceof RegExp))throw new TypeError(`${t.id}: the option "companionAllowedHosts" must be one of string, Array, RegExp`);t.opts.companionAllowedHosts=r}else/^(?!https?:\/\/).*$/i.test(e.companionUrl)?t.opts.companionAllowedHosts=`https://${e.companionUrl.replace(/^\/\//,"")}`:t.opts.companionAllowedHosts=new URL(e.companionUrl).origin;t.storage=t.opts.storage||xY}},SearchProvider:class extends Wy{constructor(t,e){super(t,e),this.provider=e.provider,this.id=this.provider,this.name=this.opts.name||(n=>n.split("-").map(r=>r.charAt(0).toUpperCase()+r.slice(1)).join(" "))(this.id),this.pluginId=this.opts.pluginId}fileUrl(t){return`${this.hostname}/search/${this.id}/get/${t}`}search(t,e){return e=e?`&${e}`:"",this.get(`search/${this.id}/list?q=${encodeURIComponent(t)}${e}`)}},Socket:AY},Si,Ts,kY=Ju(function(t,e,n){const{progress:r,bytesUploaded:o,bytesTotal:i}=e;r&&(t.uppy.log(`Upload progress: ${r}`),t.uppy.emit("upload-progress",n,{uploader:t,bytesUploaded:o,bytesTotal:i}))},300,{leading:!0,trailing:!0});function qc(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var BY=0;function c7(t){return"__private_"+BY+++"_"+t}var f7=(Si=c7("emitter"),Ts=c7("events"),class{constructor(t){Object.defineProperty(this,Si,{writable:!0,value:void 0}),Object.defineProperty(this,Ts,{writable:!0,value:[]}),qc(this,Si)[Si]=t}on(t,e){return qc(this,Ts)[Ts].push([t,e]),qc(this,Si)[Si].on(t,e)}remove(){for(const[t,e]of qc(this,Ts)[Ts].splice(0))qc(this,Si)[Si].off(t,e)}});function br(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var FY=0;function q1(t){return"__private_"+FY+++"_"+t}var Ko=q1("aliveTimer"),Ja=q1("isDone"),Kc=q1("onTimedOut"),Qa=q1("timeout"),d7=class{constructor(t,e){Object.defineProperty(this,Ko,{writable:!0,value:void 0}),Object.defineProperty(this,Ja,{writable:!0,value:!1}),Object.defineProperty(this,Kc,{writable:!0,value:void 0}),Object.defineProperty(this,Qa,{writable:!0,value:void 0}),br(this,Qa)[Qa]=t,br(this,Kc)[Kc]=e}progress(){br(this,Ja)[Ja]||br(this,Qa)[Qa]>0&&(clearTimeout(br(this,Ko)[Ko]),br(this,Ko)[Ko]=setTimeout(br(this,Kc)[Kc],br(this,Qa)[Qa]))}done(){br(this,Ja)[Ja]||(clearTimeout(br(this,Ko)[Ko]),br(this,Ko)[Ko]=null,br(this,Ja)[Ja]=!0)}};function Ue(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var _Y=0;function gs(t){return"__private_"+_Y+++"_"+t}function TY(){return new Error("Cancelled")}var tr=gs("activeRequests"),Nn=gs("queuedHandlers"),fd=gs("call"),td=gs("queueNext"),pE=gs("next"),Gy=gs("queue"),hE=gs("dequeue");function PY(t){Ue(this,tr)[tr]+=1;let e,n=!1;try{e=t()}catch(r){throw Ue(this,tr)[tr]-=1,r}return{abort:()=>{n||(n=!0,Ue(this,tr)[tr]-=1,e(),Ue(this,td)[td]())},done:()=>{n||(n=!0,Ue(this,tr)[tr]-=1,Ue(this,td)[td]())}}}function jY(){queueMicrotask(()=>Ue(this,pE)[pE]())}function NY(){if(Ue(this,tr)[tr]>=this.limit||Ue(this,Nn)[Nn].length===0)return;const t=Ue(this,Nn)[Nn].shift(),e=Ue(this,fd)[fd](t.fn);t.abort=e.abort,t.done=e.done}function IY(t,e){e===void 0&&(e={});const n={fn:t,priority:e.priority||0,abort:()=>{Ue(this,hE)[hE](n)},done:()=>{throw new Error("Cannot mark a queued request as done: this indicates a bug")}},r=Ue(this,Nn)[Nn].findIndex(o=>n.priority>o.priority);return r===-1?Ue(this,Nn)[Nn].push(n):Ue(this,Nn)[Nn].splice(r,0,n),n}function LY(t){const e=Ue(this,Nn)[Nn].indexOf(t);e!==-1&&Ue(this,Nn)[Nn].splice(e,1)}var RY={RateLimitedQueue:class{constructor(t){Object.defineProperty(this,hE,{value:LY}),Object.defineProperty(this,Gy,{value:IY}),Object.defineProperty(this,pE,{value:NY}),Object.defineProperty(this,td,{value:jY}),Object.defineProperty(this,fd,{value:PY}),Object.defineProperty(this,tr,{writable:!0,value:0}),Object.defineProperty(this,Nn,{writable:!0,value:[]}),this.limit=typeof t!="number"||t===0?1/0:t}run(t,e){return Ue(this,tr)[tr]<this.limit?Ue(this,fd)[fd](t):Ue(this,Gy)[Gy](t,e)}wrapPromiseFunction(t,e){var n=this;return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];let a;const u=new Promise((s,l)=>{a=n.run(()=>{let c,f;try{f=Promise.resolve(t(...o))}catch(p){f=Promise.reject(p)}return f.then(p=>{c?l(c):(a.done(),s(p))},p=>{c?l(c):(a.done(),l(p))}),()=>{c=TY()}},e)});return u.abort=()=>{a.abort()},u}}},internalRateLimitedQueue:Symbol("__queue")},p7,h7,qj=function(t){return!!t&&(t.readyState!==0&&t.readyState!==4||t.status===0)},MY={strings:{timedOut:"Upload stalled for %{seconds} seconds, aborting."}};const{nanoid:zY}=$j,{Provider:$Y,RequestClient:HY,Socket:VY}=OY,{RateLimitedQueue:UY,internalRateLimitedQueue:qy}=RY;function g7(t,e){let n=e;return n||(n=new Error("Upload error")),typeof n=="string"&&(n=new Error(n)),n instanceof Error||(n=Object.assign(new Error("Upload error"),{data:n})),qj(t)?(n=new Y5(n,t),n):(n.request=t,n)}function v7(t){return t.data.slice(0,t.data.size,t.meta.type)}var WY=(h7=p7=class extends q5{constructor(t,e){super(t,e),this.type="uploader",this.id=this.opts.id||"XHRUpload",this.title="XHRUpload",this.defaultLocale=MY;const n={formData:!0,fieldName:e.bundle?"files[]":"file",method:"post",metaFields:null,responseUrlFieldName:"url",bundle:!1,headers:{},timeout:3e4,limit:5,withCredentials:!1,responseType:"",getResponseData(r){let o={};try{o=JSON.parse(r)}catch(i){t.log(i)}return o},getResponseError(r,o){let i=new Error("Upload error");return qj(o)&&(i=new Y5(i,o)),i},validateStatus:r=>r>=200&&r<300};if(this.opts={...n,...e},this.i18nInit(),this.handleUpload=this.handleUpload.bind(this),qy in this.opts?this.requests=this.opts[qy]:this.requests=new UY(this.opts.limit),this.opts.bundle&&!this.opts.formData)throw new Error("`opts.formData` must be true when `opts.bundle` is enabled.");this.uploaderEvents=Object.create(null)}getOptions(t){const e=this.uppy.getState().xhrUpload,{headers:n}=this.opts,r={...this.opts,...e||{},...t.xhrUpload||{},headers:{}};return typeof n=="function"?r.headers=n(t):Object.assign(r.headers,this.opts.headers),e&&Object.assign(r.headers,e.headers),t.xhrUpload&&Object.assign(r.headers,t.xhrUpload.headers),r}addMetadata(t,e,n){(Array.isArray(n.metaFields)?n.metaFields:Object.keys(e)).forEach(r=>{t.append(r,e[r])})}createFormDataUpload(t,e){const n=new FormData;this.addMetadata(n,t.meta,e);const r=v7(t);return t.name?n.append(e.fieldName,r,t.meta.name):n.append(e.fieldName,r),n}createBundledUpload(t,e){const n=new FormData,{meta:r}=this.uppy.getState();return this.addMetadata(n,r,e),t.forEach(o=>{const i=this.getOptions(o),a=v7(o);o.name?n.append(i.fieldName,a,o.name):n.append(i.fieldName,a)}),n}upload(t,e,n){const r=this.getOptions(t);return this.uppy.log(`uploading ${e} of ${n}`),new Promise((o,i)=>{this.uppy.emit("upload-started",t);const a=r.formData?this.createFormDataUpload(t,r):t.data,u=new XMLHttpRequest;this.uploaderEvents[t.id]=new f7(this.uppy);const s=new d7(r.timeout,()=>{u.abort(),c.done();const f=new Error(this.i18n("timedOut",{seconds:Math.ceil(r.timeout/1e3)}));this.uppy.emit("upload-error",t,f),i(f)}),l=zY();u.upload.addEventListener("loadstart",()=>{this.uppy.log(`[XHRUpload] ${l} started`)}),u.upload.addEventListener("progress",f=>{this.uppy.log(`[XHRUpload] ${l} progress: ${f.loaded} / ${f.total}`),s.progress(),f.lengthComputable&&this.uppy.emit("upload-progress",t,{uploader:this,bytesUploaded:f.loaded,bytesTotal:f.total})}),u.addEventListener("load",f=>{if(this.uppy.log(`[XHRUpload] ${l} finished`),s.done(),c.done(),this.uploaderEvents[t.id]&&(this.uploaderEvents[t.id].remove(),this.uploaderEvents[t.id]=null),r.validateStatus(f.target.status,u.responseText,u)){const g=r.getResponseData(u.responseText,u),v=g[r.responseUrlFieldName],m={status:f.target.status,body:g,uploadURL:v};return this.uppy.emit("upload-success",t,m),v&&this.uppy.log(`Download ${t.name} from ${v}`),o(t)}const p=r.getResponseData(u.responseText,u),d=g7(u,r.getResponseError(u.responseText,u)),y={status:f.target.status,body:p};return this.uppy.emit("upload-error",t,d,y),i(d)}),u.addEventListener("error",()=>{this.uppy.log(`[XHRUpload] ${l} errored`),s.done(),c.done(),this.uploaderEvents[t.id]&&(this.uploaderEvents[t.id].remove(),this.uploaderEvents[t.id]=null);const f=g7(u,r.getResponseError(u.responseText,u));return this.uppy.emit("upload-error",t,f),i(f)}),u.open(r.method.toUpperCase(),r.endpoint,!0),u.withCredentials=r.withCredentials,r.responseType!==""&&(u.responseType=r.responseType);const c=this.requests.run(()=>{this.uppy.emit("upload-started",t);const f=this.getOptions(t);return Object.keys(f.headers).forEach(p=>{u.setRequestHeader(p,f.headers[p])}),u.send(a),()=>{s.done(),u.abort()}});this.onFileRemove(t.id,()=>{c.abort(),i(new Error("File removed"))}),this.onCancelAll(t.id,()=>{c.abort(),i(new Error("Upload cancelled"))})})}uploadRemote(t){const e=this.getOptions(t);return new Promise((n,r)=>{this.uppy.emit("upload-started",t);const o={};(Array.isArray(e.metaFields)?e.metaFields:Object.keys(t.meta)).forEach(i=>{o[i]=t.meta[i]}),new(t.remote.providerOptions.provider?$Y:HY)(this.uppy,t.remote.providerOptions).post(t.remote.url,{...t.remote.body,endpoint:e.endpoint,size:t.data.size,fieldname:e.fieldName,metadata:o,httpMethod:e.method,useFormData:e.formData,headers:e.headers}).then(i=>{const{token:a}=i,u=function(c){const f=/^(?:https?:\/\/|\/\/)?(?:[^@\n]+@)?(?:www\.)?([^\n]+)/i.exec(c)[1];return`${/^http:\/\//i.test(c)?"ws":"wss"}://${f}`}(t.remote.companionUrl),s=new VY({target:`${u}/api/${a}`,autoOpen:!1});this.uploaderEvents[t.id]=new f7(this.uppy),this.onFileRemove(t.id,()=>{s.send("cancel",{}),l.abort(),n(`upload ${t.id} was removed`)}),this.onCancelAll(t.id,()=>{s.send("cancel",{}),l.abort(),n(`upload ${t.id} was canceled`)}),this.onRetry(t.id,()=>{s.send("pause",{}),s.send("resume",{})}),this.onRetryAll(t.id,()=>{s.send("pause",{}),s.send("resume",{})}),s.on("progress",c=>kY(this,c,t)),s.on("success",c=>{const f=e.getResponseData(c.response.responseText,c.response),p=f[e.responseUrlFieldName],d={status:c.response.status,body:f,uploadURL:p};return this.uppy.emit("upload-success",t,d),l.done(),this.uploaderEvents[t.id]&&(this.uploaderEvents[t.id].remove(),this.uploaderEvents[t.id]=null),n()}),s.on("error",c=>{const f=c.response,p=f?e.getResponseError(f.responseText,f):Object.assign(new Error(c.error.message),{cause:c.error});this.uppy.emit("upload-error",t,p),l.done(),this.uploaderEvents[t.id]&&(this.uploaderEvents[t.id].remove(),this.uploaderEvents[t.id]=null),r(p)});const l=this.requests.run(()=>(s.open(),t.isPaused&&s.send("pause",{}),()=>s.close()))}).catch(i=>{this.uppy.emit("upload-error",t,i),r(i)})})}uploadBundle(t){return new Promise((e,n)=>{const{endpoint:r}=this.opts,{method:o}=this.opts,i=this.uppy.getState().xhrUpload,a=this.createBundledUpload(t,{...this.opts,...i||{}}),u=new XMLHttpRequest,s=new d7(this.opts.timeout,()=>{u.abort();const c=new Error(this.i18n("timedOut",{seconds:Math.ceil(this.opts.timeout/1e3)}));l(c),n(c)}),l=c=>{t.forEach(f=>{this.uppy.emit("upload-error",f,c)})};u.upload.addEventListener("loadstart",()=>{this.uppy.log("[XHRUpload] started uploading bundle"),s.progress()}),u.upload.addEventListener("progress",c=>{s.progress(),c.lengthComputable&&t.forEach(f=>{this.uppy.emit("upload-progress",f,{uploader:this,bytesUploaded:c.loaded/c.total*f.size,bytesTotal:f.size})})}),u.addEventListener("load",c=>{if(s.done(),this.opts.validateStatus(c.target.status,u.responseText,u)){const p=this.opts.getResponseData(u.responseText,u),d={status:c.target.status,body:p};return t.forEach(y=>{this.uppy.emit("upload-success",y,d)}),e()}const f=this.opts.getResponseError(u.responseText,u)||new Error("Upload error");return f.request=u,l(f),n(f)}),u.addEventListener("error",()=>{s.done();const c=this.opts.getResponseError(u.responseText,u)||new Error("Upload error");return l(c),n(c)}),this.uppy.on("cancel-all",()=>{s.done(),u.abort()}),u.open(o.toUpperCase(),r,!0),u.withCredentials=this.opts.withCredentials,this.opts.responseType!==""&&(u.responseType=this.opts.responseType),Object.keys(this.opts.headers).forEach(c=>{u.setRequestHeader(c,this.opts.headers[c])}),u.send(a),t.forEach(c=>{this.uppy.emit("upload-started",c)})})}uploadFiles(t){const e=t.map((n,r)=>{const o=parseInt(r,10)+1,i=t.length;return n.error?Promise.reject(new Error(n.error)):n.isRemote?this.uploadRemote(n,o,i):this.upload(n,o,i)});return function(n){const r=[],o=[];function i(u){r.push(u)}function a(u){o.push(u)}return Promise.all(n.map(u=>u.then(i,a))).then(()=>({successful:r,failed:o}))}(e)}onFileRemove(t,e){this.uploaderEvents[t].on("file-removed",n=>{t===n.id&&e(n.id)})}onRetry(t,e){this.uploaderEvents[t].on("upload-retry",n=>{t===n&&e()})}onRetryAll(t,e){this.uploaderEvents[t].on("retry-all",()=>{this.uppy.getFile(t)&&e()})}onCancelAll(t,e){this.uploaderEvents[t].on("cancel-all",()=>{this.uppy.getFile(t)&&e()})}handleUpload(t){if(t.length===0)return this.uppy.log("[XHRUpload] No files to upload!"),Promise.resolve();this.opts.limit!==0||this.opts[qy]||this.uppy.log("[XHRUpload] When uploading multiple files at once, consider setting the `limit` option (to `10` for example), to limit the number of concurrent uploads, which helps prevent memory and network issues: https://uppy.io/docs/xhr-upload/#limit-0","warning"),this.uppy.log("[XHRUpload] Uploading...");const e=t.map(n=>this.uppy.getFile(n));if(this.opts.bundle){if(e.some(n=>n.isRemote))throw new Error("Can’t upload remote files when the `bundle: true` option is set");if(typeof this.opts.headers=="function")throw new TypeError("`headers` may not be a function when the `bundle: true` option is set");return this.uploadBundle(e)}return this.uploadFiles(e).then(()=>null)}install(){if(this.opts.bundle){const{capabilities:t}=this.uppy.getState();this.uppy.setState({capabilities:{...t,individualCancellation:!1}})}this.uppy.addUploader(this.handleUpload)}uninstall(){if(this.opts.bundle){const{capabilities:t}=this.uppy.getState();this.uppy.setState({capabilities:{...t,individualCancellation:!0}})}this.uppy.removeUploader(this.handleUpload)}},p7.VERSION="2.0.6",h7),m7=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function qp(t){var e={exports:{}};return t(e,e.exports),e.exports}var Ai,ng,qh=function(t){return t&&t.Math==Math&&t},X=qh(typeof globalThis=="object"&&globalThis)||qh(typeof window=="object"&&window)||qh(typeof self=="object"&&self)||qh(typeof m7=="object"&&m7)||function(){return this}()||Function("return this")(),GY=Object.defineProperty,X5=function(t,e){try{GY(X,t,{value:e,configurable:!0,writable:!0})}catch{X[t]=e}return e},aa=X["__core-js_shared__"]||X5("__core-js_shared__",{}),Z5=qp(function(t){(t.exports=function(e,n){return aa[e]||(aa[e]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),Kj=Function.prototype,gE=Kj.bind,vE=Kj.call,qY=gE&&gE.bind(vE),pt=gE?function(t){return t&&qY(vE,t)}:function(t){return t&&function(){return vE.apply(t,arguments)}},KY=X.TypeError,jr=function(t){if(t==null)throw KY("Can't call method on "+t);return t},YY=X.Object,La=function(t){return YY(jr(t))},XY=pt({}.hasOwnProperty),Ie=Object.hasOwn||function(t,e){return XY(La(t),e)},ZY=0,JY=Math.random(),QY=pt(1 .toString),J5=function(t){return"Symbol("+(t===void 0?"":t)+")_"+QY(++ZY+JY,36)},re=function(t){return typeof t=="function"},tX=function(t){return re(t)?t:void 0},vs=function(t,e){return arguments.length<2?tX(X[t]):X[t]&&X[t][e]},yl=vs("navigator","userAgent")||"",y7=X.process,b7=X.Deno,w7=y7&&y7.versions||b7&&b7.version,E7=w7&&w7.v8;E7&&(ng=(Ai=E7.split("."))[0]>0&&Ai[0]<4?1:+(Ai[0]+Ai[1])),!ng&&yl&&(!(Ai=yl.match(/Edge\/(\d+)/))||Ai[1]>=74)&&(Ai=yl.match(/Chrome\/(\d+)/))&&(ng=+Ai[1]);var Gd=ng,Zt=function(t){try{return!!t()}catch{return!0}},mE=!!Object.getOwnPropertySymbols&&!Zt(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&Gd&&Gd<41}),Q5=mE&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Yc=Z5("wks"),_u=X.Symbol,D7=_u&&_u.for,eX=Q5?_u:_u&&_u.withoutSetter||J5,xe=function(t){if(!Ie(Yc,t)||!mE&&typeof Yc[t]!="string"){var e="Symbol."+t;mE&&Ie(_u,t)?Yc[t]=_u[t]:Yc[t]=Q5&&D7?D7(e):eX(e)}return Yc[t]},Yj={};Yj[xe("toStringTag")]="z";var tD=String(Yj)==="[object z]",an=!Zt(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),ce=function(t){return typeof t=="object"?t!==null:re(t)},yE=X.document,nX=ce(yE)&&ce(yE.createElement),qd=function(t){return nX?yE.createElement(t):{}},Xj=!an&&!Zt(function(){return Object.defineProperty(qd("div"),"a",{get:function(){return 7}}).a!=7}),rX=X.String,oX=X.TypeError,Le=function(t){if(ce(t))return t;throw oX(rX(t)+" is not an object")},Xc=Function.prototype.call,Ut=Xc.bind?Xc.bind(Xc):function(){return Xc.apply(Xc,arguments)},Qu=pt({}.isPrototypeOf),iX=X.Object,Ky=Q5?function(t){return typeof t=="symbol"}:function(t){var e=vs("Symbol");return re(e)&&Qu(e.prototype,iX(t))},aX=X.String,K1=function(t){try{return aX(t)}catch{return"Object"}},uX=X.TypeError,Aa=function(t){if(re(t))return t;throw uX(K1(t)+" is not a function")},ts=function(t,e){var n=t[e];return n==null?void 0:Aa(n)},sX=X.TypeError,lX=X.TypeError,cX=xe("toPrimitive"),eD=function(t){var e=function(n,r){if(!ce(n)||Ky(n))return n;var o,i=ts(n,cX);if(i){if(r===void 0&&(r="default"),o=Ut(i,n,r),!ce(o)||Ky(o))return o;throw lX("Can't convert object to primitive value")}return r===void 0&&(r="number"),function(a,u){var s,l;if(u==="string"&&re(s=a.toString)&&!ce(l=Ut(s,a))||re(s=a.valueOf)&&!ce(l=Ut(s,a))||u!=="string"&&re(s=a.toString)&&!ce(l=Ut(s,a)))return l;throw sX("Can't convert object to primitive value")}(n,r)}(t,"string");return Ky(e)?e:e+""},fX=X.TypeError,C7=Object.defineProperty,io={f:an?C7:function(t,e,n){if(Le(t),e=eD(e),Le(n),Xj)try{return C7(t,e,n)}catch{}if("get"in n||"set"in n)throw fX("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},Y1=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},Jr=an?function(t,e,n){return io.f(t,e,Y1(1,n))}:function(t,e,n){return t[e]=n,t},dX=pt(Function.toString);re(aa.inspectSource)||(aa.inspectSource=function(t){return dX(t)});var uv,dd,sv,X1=aa.inspectSource,x7=X.WeakMap,Zj=re(x7)&&/native code/.test(X1(x7)),S7=Z5("keys"),nD=function(t){return S7[t]||(S7[t]=J5(t))},Z1={},bE=X.TypeError,pX=X.WeakMap;if(Zj||aa.state){var tu=aa.state||(aa.state=new pX),hX=pt(tu.get),A7=pt(tu.has),gX=pt(tu.set);uv=function(t,e){if(A7(tu,t))throw new bE("Object already initialized");return e.facade=t,gX(tu,t,e),e},dd=function(t){return hX(tu,t)||{}},sv=function(t){return A7(tu,t)}}else{var Ps=nD("state");Z1[Ps]=!0,uv=function(t,e){if(Ie(t,Ps))throw new bE("Object already initialized");return e.facade=t,Jr(t,Ps,e),e},dd=function(t){return Ie(t,Ps)?t[Ps]:{}},sv=function(t){return Ie(t,Ps)}}var Fn={set:uv,get:dd,has:sv,enforce:function(t){return sv(t)?dd(t):uv(t,{})},getterFor:function(t){return function(e){var n;if(!ce(e)||(n=dd(e)).type!==t)throw bE("Incompatible receiver, "+t+" required");return n}}},Jj=Function.prototype,vX=an&&Object.getOwnPropertyDescriptor,Yy=Ie(Jj,"name"),dc={EXISTS:Yy,PROPER:Yy&&(function(){}).name==="something",CONFIGURABLE:Yy&&(!an||an&&vX(Jj,"name").configurable)},Gn=qp(function(t){var e=dc.CONFIGURABLE,n=Fn.get,r=Fn.enforce,o=String(String).split("String");(t.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,p=!!s&&!!s.noTargetGet,d=s&&s.name!==void 0?s.name:a;re(u)&&(String(d).slice(0,7)==="Symbol("&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Ie(u,"name")||e&&u.name!==d)&&Jr(u,"name",d),(l=r(u)).source||(l.source=o.join(typeof d=="string"?d:""))),i!==X?(c?!p&&i[a]&&(f=!0):delete i[a],f?i[a]=u:Jr(i,a,u)):f?i[a]=u:X5(a,u)})(Function.prototype,"toString",function(){return re(this)&&n(this).source||X1(this)})}),mX=pt({}.toString),yX=pt("".slice),Qr=function(t){return yX(mX(t),8,-1)},bX=xe("toStringTag"),wX=X.Object,EX=Qr(function(){return arguments}())=="Arguments",J1=tD?Qr:function(t){var e,n,r;return t===void 0?"Undefined":t===null?"Null":typeof(n=function(o,i){try{return o[i]}catch{}}(e=wX(t),bX))=="string"?n:EX?Qr(e):(r=Qr(e))=="Object"&&re(e.callee)?"Arguments":r},DX=tD?{}.toString:function(){return"[object "+J1(this)+"]"};tD||Gn(Object.prototype,"toString",DX,{unsafe:!0});var lv={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},Xy=qd("span").classList,O7=Xy&&Xy.constructor&&Xy.constructor.prototype,Qj=O7===Object.prototype?void 0:O7,k7=pt(pt.bind),es=function(t,e){return Aa(t),e===void 0?t:k7?k7(t,e):function(){return t.apply(e,arguments)}},Zy=X.Object,CX=pt("".split),Q1=Zt(function(){return!Zy("z").propertyIsEnumerable(0)})?function(t){return Qr(t)=="String"?CX(t,""):Zy(t)}:Zy,xX=Math.ceil,SX=Math.floor,Kp=function(t){var e=+t;return e!=e||e===0?0:(e>0?SX:xX)(e)},AX=Math.min,pc=function(t){return t>0?AX(Kp(t),9007199254740991):0},ms=function(t){return pc(t.length)},cv=Array.isArray||function(t){return Qr(t)=="Array"},tN=function(){},OX=[],eN=vs("Reflect","construct"),rD=/^\s*(?:class|function)\b/,kX=pt(rD.exec),BX=!rD.exec(tN),Zc=function(t){if(!re(t))return!1;try{return eN(tN,OX,t),!0}catch{return!1}},tm=!eN||Zt(function(){var t;return Zc(Zc.call)||!Zc(Object)||!Zc(function(){t=!0})||t})?function(t){if(!re(t))return!1;switch(J1(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return BX||!!kX(rD,X1(t))}:Zc,FX=xe("species"),B7=X.Array,nN=function(t,e){return new(function(n){var r;return cv(n)&&(r=n.constructor,(tm(r)&&(r===B7||cv(r.prototype))||ce(r)&&(r=r[FX])===null)&&(r=void 0)),r===void 0?B7:r}(t))(e===0?0:e)},F7=pt([].push),Oi=function(t){var e=t==1,n=t==2,r=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var p,d,y=La(s),g=Q1(y),v=es(l,c),m=ms(g),h=0,b=f||nN,w=e?b(s,m):n||a?b(s,0):void 0;m>h;h++)if((u||h in g)&&(d=v(p=g[h],h,y),t))if(e)w[h]=d;else if(d)switch(t){case 3:return!0;case 5:return p;case 6:return h;case 2:F7(w,p)}else switch(t){case 4:return!1;case 7:F7(w,p)}return i?-1:r||o?o:w}},hc={forEach:Oi(0),map:Oi(1),filter:Oi(2),some:Oi(3),every:Oi(4),find:Oi(5),findIndex:Oi(6),filterReject:Oi(7)},rN=function(t,e){var n=[][t];return!!n&&Zt(function(){n.call(null,e||function(){throw 1},1)})},_X=hc.forEach,Jy=rN("forEach")?[].forEach:function(t){return _X(this,t,arguments.length>1?arguments[1]:void 0)},oN=function(t){if(t&&t.forEach!==Jy)try{Jr(t,"forEach",Jy)}catch{t.forEach=Jy}};for(var Qy in lv)lv[Qy]&&oN(X[Qy]&&X[Qy].prototype);oN(Qj);var _7={}.propertyIsEnumerable,T7=Object.getOwnPropertyDescriptor,TX=T7&&!_7.call({1:2},1)?function(t){var e=T7(this,t);return!!e&&e.enumerable}:_7,iN={f:TX},Ra=function(t){return Q1(jr(t))},P7=Object.getOwnPropertyDescriptor,Yp={f:an?P7:function(t,e){if(t=Ra(t),e=eD(e),Xj)try{return P7(t,e)}catch{}if(Ie(t,e))return Y1(!Ut(iN.f,t,e),t[e])}},PX=Math.max,jX=Math.min,Wl=function(t,e){var n=Kp(t);return n<0?PX(n+e,0):jX(n,e)},j7=function(t){return function(e,n,r){var o,i=Ra(e),a=ms(i),u=Wl(r,a);if(t&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===n)return t||u||0;return!t&&-1}},aN={includes:j7(!0),indexOf:j7(!1)},NX=aN.indexOf,N7=pt([].push),uN=function(t,e){var n,r=Ra(t),o=0,i=[];for(n in r)!Ie(Z1,n)&&Ie(r,n)&&N7(i,n);for(;e.length>o;)Ie(r,n=e[o++])&&(~NX(i,n)||N7(i,n));return i},fv=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],IX=fv.concat("length","prototype"),Kd={f:Object.getOwnPropertyNames||function(t){return uN(t,IX)}},sN={f:Object.getOwnPropertySymbols},LX=pt([].concat),RX=vs("Reflect","ownKeys")||function(t){var e=Kd.f(Le(t)),n=sN.f;return n?LX(e,n(t)):e},MX=function(t,e){for(var n=RX(e),r=io.f,o=Yp.f,i=0;i<n.length;i++){var a=n[i];Ie(t,a)||r(t,a,o(e,a))}},zX=/#|\.prototype\./,Xp=function(t,e){var n=HX[$X(t)];return n==UX||n!=VX&&(re(e)?Zt(e):!!e)},$X=Xp.normalize=function(t){return String(t).replace(zX,".").toLowerCase()},HX=Xp.data={},VX=Xp.NATIVE="N",UX=Xp.POLYFILL="P",Yd=Xp,WX=Yp.f,De=function(t,e){var n,r,o,i,a,u=t.target,s=t.global,l=t.stat;if(n=s?X:l?X[u]||X5(u,{}):(X[u]||{}).prototype)for(r in e){if(i=e[r],o=t.noTargetGet?(a=WX(n,r))&&a.value:n[r],!Yd(s?r:u+(l?".":"#")+r,t.forced)&&o!==void 0){if(typeof i==typeof o)continue;MX(i,o)}(t.sham||o&&o.sham)&&Jr(i,"sham",!0),Gn(n,r,i,t)}},bl=Object.keys||function(t){return uN(t,fv)},GX=Zt(function(){bl(1)});/*!
  31. * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
  32. *
  33. * Copyright (c) 2014-2017, Jon Schlinkert.
  34. * Released under the MIT License.
  35. */function I7(t){return Object.prototype.toString.call(t)==="[object Object]"}De({target:"Object",stat:!0,forced:GX},{keys:function(t){return bl(La(t))}});var qX={isHistory(t){return I7(e=t)!==!1&&((n=e.constructor)===void 0||I7(r=n.prototype)!==!1&&r.hasOwnProperty("isPrototypeOf")!==!1)&&Array.isArray(t.redos)&&Array.isArray(t.undos)&&(t.redos.length===0||Ji.isOperationList(t.redos[0]))&&(t.undos.length===0||Ji.isOperationList(t.undos[0]));var e,n,r}},tb=new WeakMap,eb=new WeakMap,dl={isHistoryEditor:t=>qX.isHistory(t.history)&&D.isEditor(t),isMerging:t=>eb.get(t),isSaving:t=>tb.get(t),redo(t){t.redo()},undo(t){t.undo()},withoutMerging(t,e){var n=dl.isMerging(t);eb.set(t,!1),e(),eb.set(t,n)},withoutSaving(t,e){var n=dl.isSaving(t);tb.set(t,!1),e(),tb.set(t,n)}},KX=X.String,ue=function(t){if(J1(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return KX(t)},oD=function(){var t=Le(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},YX=dc.PROPER,wE=RegExp.prototype,lN=wE.toString,XX=pt(oD),ZX=Zt(function(){return lN.call({source:"a",flags:"b"})!="/a/b"}),JX=YX&&lN.name!="toString";(ZX||JX)&&Gn(RegExp.prototype,"toString",function(){var t=Le(this),e=ue(t.source),n=t.flags;return"/"+e+"/"+ue(n===void 0&&Qu(wE,t)&&!("flags"in wE)?XX(t):n)},{unsafe:!0});var Kh,QX=an?Object.defineProperties:function(t,e){Le(t);for(var n,r=Ra(e),o=bl(e),i=o.length,a=0;i>a;)io.f(t,n=o[a++],r[n]);return t},EE=vs("document","documentElement"),cN=nD("IE_PROTO"),nb=function(){},fN=function(t){return"<script>"+t+"<\/script>"},L7=function(t){t.write(fN("")),t.close();var e=t.parentWindow.Object;return t=null,e},rg=function(){try{Kh=new ActiveXObject("htmlfile")}catch{}var t,e;rg=typeof document<"u"?document.domain&&Kh?L7(Kh):((e=qd("iframe")).style.display="none",EE.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(fN("document.F=Object")),t.close(),t.F):L7(Kh);for(var n=fv.length;n--;)delete rg.prototype[fv[n]];return rg()};Z1[cN]=!0;var em=Object.create||function(t,e){var n;return t!==null?(nb.prototype=Le(t),n=new nb,nb.prototype=null,n[cN]=t):n=rg(),e===void 0?n:QX(n,e)},DE=xe("unscopables"),CE=Array.prototype;CE[DE]==null&&io.f(CE,DE,{configurable:!0,value:em(null)});var pd=function(t){CE[DE][t]=!0},tZ=aN.includes;De({target:"Array",proto:!0},{includes:function(t){return tZ(this,t,arguments.length>1?arguments[1]:void 0)}}),pd("includes");var eZ=xe("match"),iD=function(t){var e;return ce(t)&&((e=t[eZ])!==void 0?!!e:Qr(t)=="RegExp")},nZ=X.TypeError,aD=function(t){if(iD(t))throw nZ("The method doesn't accept regular expressions");return t},rZ=xe("match"),uD=function(t){var e=/./;try{"/./"[t](e)}catch{try{return e[rZ]=!1,"/./"[t](e)}catch{}}return!1},oZ=pt("".indexOf);De({target:"String",proto:!0,forced:!uD("includes")},{includes:function(t){return!!~oZ(ue(jr(this)),ue(aD(t)),arguments.length>1?arguments[1]:void 0)}});var iZ=/"/g,aZ=pt("".replace);De({target:"String",proto:!0,forced:Zt(function(){var t="".anchor('"');return t!==t.toLowerCase()||t.split('"').length>3})},{anchor:function(t){return e=t,n=ue(jr(this)),r="<a",(r+=' name="'+aZ(ue(e),iZ,"&quot;")+'"')+">"+n+"</a>";var e,n,r}});var xE=function(t,e,n){var r,o;Le(t);try{if(!(r=ts(t,"return"))){if(e==="throw")throw n;return n}r=Ut(r,t)}catch(i){o=!0,r=i}if(e==="throw")throw n;if(o)throw r;return Le(r),n},uZ=function(t,e,n,r){try{return r?e(Le(n)[0],n[1]):e(n)}catch(o){xE(t,"throw",o)}},Gl={},sZ=xe("iterator"),lZ=Array.prototype,dN=function(t){return t!==void 0&&(Gl.Array===t||lZ[sZ]===t)},Xd=function(t,e,n){var r=eD(e);r in t?io.f(t,r,Y1(0,n)):t[r]=n},cZ=xe("iterator"),sD=function(t){if(t!=null)return ts(t,cZ)||ts(t,"@@iterator")||Gl[J1(t)]},fZ=X.TypeError,pN=function(t,e){var n=arguments.length<2?sD(t):e;if(Aa(n))return Le(Ut(n,t));throw fZ(K1(t)+" is not iterable")},R7=X.Array,hN=xe("iterator"),gN=!1;try{var dZ=0,M7={next:function(){return{done:!!dZ++}},return:function(){gN=!0}};M7[hN]=function(){return this},Array.from(M7,function(){throw 2})}catch{}var lD=function(t,e){if(!e&&!gN)return!1;var n=!1;try{var r={};r[hN]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch{}return n},pZ=!lD(function(t){Array.from(t)});De({target:"Array",stat:!0,forced:pZ},{from:function(t){var e=La(t),n=tm(this),r=arguments.length,o=r>1?arguments[1]:void 0,i=o!==void 0;i&&(o=es(o,r>2?arguments[2]:void 0));var a,u,s,l,c,f,p=sD(e),d=0;if(!p||this==R7&&dN(p))for(a=ms(e),u=n?new this(a):R7(a);a>d;d++)f=i?o(e[d],d):e[d],Xd(u,d,f);else for(c=(l=pN(e,p)).next,u=n?new this:[];!(s=Ut(c,l)).done;d++)f=i?uZ(l,o,[s.value,d],!0):s.value,Xd(u,d,f);return u.length=d,u}});var Tu,z7,$7,hZ=pt("".charAt),H7=pt("".charCodeAt),gZ=pt("".slice),V7=function(t){return function(e,n){var r,o,i=ue(jr(e)),a=Kp(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=H7(i,a))<55296||r>56319||a+1===u||(o=H7(i,a+1))<56320||o>57343?t?hZ(i,a):r:t?gZ(i,a,a+2):o-56320+(r-55296<<10)+65536}},vN={codeAt:V7(!1),charAt:V7(!0)},vZ=!Zt(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),U7=nD("IE_PROTO"),SE=X.Object,mZ=SE.prototype,dv=vZ?SE.getPrototypeOf:function(t){var e=La(t);if(Ie(e,U7))return e[U7];var n=e.constructor;return re(n)&&e instanceof n?n.prototype:e instanceof SE?mZ:null},AE=xe("iterator"),mN=!1;[].keys&&("next"in($7=[].keys())?(z7=dv(dv($7)))!==Object.prototype&&(Tu=z7):mN=!0);var yZ=Tu==null||Zt(function(){var t={};return Tu[AE].call(t)!==t});yZ&&(Tu={}),re(Tu[AE])||Gn(Tu,AE,function(){return this});var cD={IteratorPrototype:Tu,BUGGY_SAFARI_ITERATORS:mN},bZ=io.f,W7=xe("toStringTag"),pv=function(t,e,n){t&&!Ie(t=n?t:t.prototype,W7)&&bZ(t,W7,{configurable:!0,value:e})},wZ=cD.IteratorPrototype,EZ=function(){return this},DZ=X.String,CZ=X.TypeError,ql=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=pt(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch{}return function(r,o){return Le(r),function(i){if(typeof i=="object"||re(i))return i;throw CZ("Can't set "+DZ(i)+" as a prototype")}(o),e?t(r,o):r.__proto__=o,r}}():void 0),xZ=dc.PROPER,SZ=dc.CONFIGURABLE,G7=cD.IteratorPrototype,Yh=cD.BUGGY_SAFARI_ITERATORS,Jc=xe("iterator"),AZ=function(){return this},fD=function(t,e,n,r,o,i,a){(function(m,h,b,w){var E=h+" Iterator";m.prototype=em(wZ,{next:Y1(1,b)}),pv(m,E,!1),Gl[E]=EZ})(n,e,r);var u,s,l,c=function(m){if(m===o&&g)return g;if(!Yh&&m in d)return d[m];switch(m){case"keys":case"values":case"entries":return function(){return new n(this,m)}}return function(){return new n(this)}},f=e+" Iterator",p=!1,d=t.prototype,y=d[Jc]||d["@@iterator"]||o&&d[o],g=!Yh&&y||c(o),v=e=="Array"&&d.entries||y;if(v&&(u=dv(v.call(new t)))!==Object.prototype&&u.next&&(dv(u)!==G7&&(ql?ql(u,G7):re(u[Jc])||Gn(u,Jc,AZ)),pv(u,f,!0)),xZ&&o=="values"&&y&&y.name!=="values"&&(SZ?Jr(d,"name","values"):(p=!0,g=function(){return Ut(y,this)})),o)if(s={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(l in s)(Yh||p||!(l in d))&&Gn(d,l,s[l]);else De({target:e,proto:!0,forced:Yh||p},s);return d[Jc]!==g&&Gn(d,Jc,g,{name:o}),Gl[e]=g,s},OZ=vN.charAt,kZ=Fn.set,BZ=Fn.getterFor("String Iterator");fD(String,"String",function(t){kZ(this,{type:"String Iterator",string:ue(t),index:0})},function(){var t,e=BZ(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=OZ(n,r),e.index+=t.length,{value:t,done:!1})});var rb,FZ=Yp.f,q7=pt("".endsWith),_Z=pt("".slice),TZ=Math.min,yN=uD("endsWith"),PZ=!(yN||(rb=FZ(String.prototype,"endsWith"),!rb||rb.writable));De({target:"String",proto:!0,forced:!PZ&&!yN},{endsWith:function(t){var e=ue(jr(this));aD(t);var n=arguments.length>1?arguments[1]:void 0,r=e.length,o=n===void 0?r:TZ(pc(n),r),i=ue(t);return q7?q7(e,i,o):_Z(e,o-i.length,o)===i}});var jZ=pt([].join),NZ=Q1!=Object,IZ=rN("join",",");De({target:"Array",proto:!0,forced:NZ||!IZ},{join:function(t){return jZ(Ra(this),t===void 0?",":t)}});var LZ=xe("species"),nm=function(t){return Gd>=51||!Zt(function(){var e=[];return(e.constructor={})[LZ]=function(){return{foo:1}},e[t](Boolean).foo!==1})},RZ=hc.map,MZ=nm("map");De({target:"Array",proto:!0,forced:!MZ},{map:function(t){return RZ(this,t,arguments.length>1?arguments[1]:void 0)}});var dD=X.RegExp,OE=Zt(function(){var t=dD("a","y");return t.lastIndex=2,t.exec("abcd")!=null}),zZ=OE||Zt(function(){return!dD("a","y").sticky}),rm={BROKEN_CARET:OE||Zt(function(){var t=dD("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),MISSED_STICKY:zZ,UNSUPPORTED_Y:OE},$Z=X.RegExp,pD=Zt(function(){var t=$Z(".","s");return!(t.dotAll&&t.exec(`
  36. `)&&t.flags==="s")}),HZ=X.RegExp,hD=Zt(function(){var t=HZ("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),VZ=Fn.get,UZ=Z5("native-string-replace",String.prototype.replace),hv=RegExp.prototype.exec,kE=hv,WZ=pt("".charAt),GZ=pt("".indexOf),qZ=pt("".replace),ob=pt("".slice),ib=function(){var t=/a/,e=/b*/g;return Ut(hv,t,"a"),Ut(hv,e,"a"),t.lastIndex!==0||e.lastIndex!==0}(),K7=rm.BROKEN_CARET,ab=/()??/.exec("")[1]!==void 0;(ib||ab||K7||pD||hD)&&(kE=function(t){var e,n,r,o,i,a,u,s=this,l=VZ(s),c=ue(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=Ut(kE,f,c),s.lastIndex=f.lastIndex,e;var p=l.groups,d=K7&&s.sticky,y=Ut(oD,s),g=s.source,v=0,m=c;if(d&&(y=qZ(y,"y",""),GZ(y,"g")===-1&&(y+="g"),m=ob(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&WZ(c,s.lastIndex-1)!==`
  37. `)&&(g="(?: "+g+")",m=" "+m,v++),n=new RegExp("^(?:"+g+")",y)),ab&&(n=new RegExp("^"+g+"$(?!\\s)",y)),ib&&(r=s.lastIndex),o=Ut(hv,d?n:s,m),d?o?(o.input=ob(o.input,v),o[0]=ob(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:ib&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),ab&&o&&o.length>1&&Ut(UZ,o[0],n,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&p)for(o.groups=a=em(null),i=0;i<p.length;i++)a[(u=p[i])[0]]=o[u[1]];return o});var Zd=kE;De({target:"RegExp",proto:!0,forced:/./.exec!==Zd},{exec:Zd});var gD=Function.prototype,Y7=gD.apply,KZ=gD.bind,X7=gD.call,vD=typeof Reflect=="object"&&Reflect.apply||(KZ?X7.bind(Y7):function(){return X7.apply(Y7,arguments)}),YZ=xe("species"),ub=RegExp.prototype,mD=function(t,e,n,r){var o=xe(t),i=!Zt(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),a=i&&!Zt(function(){var l=!1,c=/a/;return t==="split"&&((c={}).constructor={},c.constructor[YZ]=function(){return c},c.flags="",c[o]=/./[o]),c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||n){var u=pt(/./[o]),s=e(o,""[t],function(l,c,f,p,d){var y=pt(l),g=c.exec;return g===Zd||g===ub.exec?i&&!d?{done:!0,value:u(c,f,p)}:{done:!0,value:y(f,c,p)}:{done:!1}});Gn(String.prototype,t,s[0]),Gn(ub,o,s[1])}r&&Jr(ub[o],"sham",!0)},XZ=vN.charAt,yD=function(t,e,n){return e+(n?XZ(t,e).length:1)},ZZ=Math.floor,sb=pt("".charAt),JZ=pt("".replace),lb=pt("".slice),QZ=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,tJ=/\$([$&'`]|\d{1,2})/g,eJ=function(t,e,n,r,o,i){var a=n+t.length,u=r.length,s=tJ;return o!==void 0&&(o=La(o),s=QZ),JZ(i,s,function(l,c){var f;switch(sb(c,0)){case"$":return"$";case"&":return t;case"`":return lb(e,0,n);case"'":return lb(e,a);case"<":f=o[lb(c,1,-1)];break;default:var p=+c;if(p===0)return l;if(p>u){var d=ZZ(p/10);return d===0?l:d<=u?r[d-1]===void 0?sb(c,1):r[d-1]+sb(c,1):l}f=r[p-1]}return f===void 0?"":f})},nJ=X.TypeError,Jd=function(t,e){var n=t.exec;if(re(n)){var r=Ut(n,t,e);return r!==null&&Le(r),r}if(Qr(t)==="RegExp")return Ut(Zd,t,e);throw nJ("RegExp#exec called on incompatible receiver")},BE=xe("replace"),rJ=Math.max,oJ=Math.min,iJ=pt([].concat),cb=pt([].push),Z7=pt("".indexOf),J7=pt("".slice),aJ="a".replace(/./,"$0")==="$0",Q7=!!/./[BE]&&/./[BE]("a","$0")==="";mD("replace",function(t,e,n){var r=Q7?"$":"$0";return[function(o,i){var a=jr(this),u=o==null?void 0:ts(o,BE);return u?Ut(u,o,a,i):Ut(e,ue(a),o,i)},function(o,i){var a=Le(this),u=ue(o);if(typeof i=="string"&&Z7(i,r)===-1&&Z7(i,"$<")===-1){var s=n(e,a,u,i);if(s.done)return s.value}var l=re(i);l||(i=ue(i));var c=a.global;if(c){var f=a.unicode;a.lastIndex=0}for(var p=[];;){var d=Jd(a,u);if(d===null||(cb(p,d),!c))break;ue(d[0])===""&&(a.lastIndex=yD(u,pc(a.lastIndex),f))}for(var y,g="",v=0,m=0;m<p.length;m++){for(var h=ue((d=p[m])[0]),b=rJ(oJ(Kp(d.index),u.length),0),w=[],E=1;E<d.length;E++)cb(w,(y=d[E])===void 0?y:String(y));var x=d.groups;if(l){var C=iJ([h],w,b,u);x!==void 0&&cb(C,x);var O=ue(vD(i,void 0,C))}else O=eJ(h,u,b,w,x,i);b>=v&&(g+=J7(u,v,b)+O,v=b+h.length)}return g+J7(u,v)}]},!!Zt(function(){var t=/./;return t.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(t,"$<a>")!=="7"})||!aJ||Q7);/*! *****************************************************************************
  38. Copyright (c) Microsoft Corporation.
  39. Permission to use, copy, modify, and/or distribute this software for any
  40. purpose with or without fee is hereby granted.
  41. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  42. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  43. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  44. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  45. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  46. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  47. PERFORMANCE OF THIS SOFTWARE.
  48. ***************************************************************************** */var FE=function(t,e){return FE=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},FE(t,e)};function gc(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}FE(t,e),t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var Cr=function(){return Cr=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Cr.apply(this,arguments)};function xr(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ht(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(e===void 0||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(u){o={error:u}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function _E(t,e){for(var n=0,r=e.length,o=t.length;n<r;n++,o++)t[o]=e[n];return t}var uJ=0,t9=function(){this.id=""+uJ++},sJ=Fn.set,lJ=Fn.getterFor("Array Iterator"),ed=fD(Array,"Array",function(t,e){sJ(this,{type:"Array Iterator",target:Ra(t),index:0,kind:e})},function(){var t=lJ(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}},"values");Gl.Arguments=Gl.Array,pd("keys"),pd("values"),pd("entries");var Kl=function(t,e,n){for(var r in e)Gn(t,r,e[r],n);return t},cJ=X.Array,fJ=Math.max,TE=function(t,e,n){for(var r=ms(t),o=Wl(e,r),i=Wl(n===void 0?r:n,r),a=cJ(fJ(i-o,0)),u=0;o<i;o++,u++)Xd(a,u,t[o]);return a.length=u,a},e9=Kd.f,n9=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],dJ={f:function(t){return n9&&Qr(t)=="Window"?function(e){try{return e9(e)}catch{return TE(n9)}}(t):e9(Ra(t))}},r9=Zt(function(){if(typeof ArrayBuffer=="function"){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}),Xh=Object.isExtensible,Eu=Zt(function(){Xh(1)})||r9?function(t){return!!ce(t)&&(!r9||Qr(t)!="ArrayBuffer")&&(!Xh||Xh(t))}:Xh,pJ=!Zt(function(){return Object.isExtensible(Object.preventExtensions({}))}),om=qp(function(t){var e=io.f,n=!1,r=J5("meta"),o=0,i=function(u){e(u,r,{value:{objectID:"O"+o++,weakData:{}}})},a=t.exports={enable:function(){a.enable=function(){},n=!0;var u=Kd.f,s=pt([].splice),l={};l[r]=1,u(l).length&&(Kd.f=function(c){for(var f=u(c),p=0,d=f.length;p<d;p++)if(f[p]===r){s(f,p,1);break}return f},De({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:dJ.f}))},fastKey:function(u,s){if(!ce(u))return typeof u=="symbol"?u:(typeof u=="string"?"S":"P")+u;if(!Ie(u,r)){if(!Eu(u))return"F";if(!s)return"E";i(u)}return u[r].objectID},getWeakData:function(u,s){if(!Ie(u,r)){if(!Eu(u))return!0;if(!s)return!1;i(u)}return u[r].weakData},onFreeze:function(u){return pJ&&n&&Eu(u)&&!Ie(u,r)&&i(u),u}};Z1[r]=!0}),hJ=X.TypeError,og=function(t,e){this.stopped=t,this.result=e},o9=og.prototype,Qd=function(t,e,n){var r,o,i,a,u,s,l,c=n&&n.that,f=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),d=!(!n||!n.INTERRUPTED),y=es(e,c),g=function(m){return r&&xE(r,"normal",m),new og(!0,m)},v=function(m){return f?(Le(m),d?y(m[0],m[1],g):y(m[0],m[1])):d?y(m,g):y(m)};if(p)r=t;else{if(!(o=sD(t)))throw hJ(K1(t)+" is not iterable");if(dN(o)){for(i=0,a=ms(t);a>i;i++)if((u=v(t[i]))&&Qu(o9,u))return u;return new og(!1)}r=pN(t,o)}for(s=r.next;!(l=Ut(s,r)).done;){try{u=v(l.value)}catch(m){xE(r,"throw",m)}if(typeof u=="object"&&u&&Qu(o9,u))return u}return new og(!1)},gJ=X.TypeError,im=function(t,e){if(Qu(e,t))return t;throw gJ("Incorrect invocation")},bN=function(t,e,n){var r,o;return ql&&re(r=e.constructor)&&r!==n&&ce(o=r.prototype)&&o!==n.prototype&&ql(t,o),t},wN=function(t,e,n){var r=t.indexOf("Map")!==-1,o=t.indexOf("Weak")!==-1,i=r?"set":"add",a=X[t],u=a&&a.prototype,s=a,l={},c=function(v){var m=pt(u[v]);Gn(u,v,v=="add"?function(h){return m(this,h===0?0:h),this}:v=="delete"?function(h){return!(o&&!ce(h))&&m(this,h===0?0:h)}:v=="get"?function(h){return o&&!ce(h)?void 0:m(this,h===0?0:h)}:v=="has"?function(h){return!(o&&!ce(h))&&m(this,h===0?0:h)}:function(h,b){return m(this,h===0?0:h,b),this})};if(Yd(t,!re(a)||!(o||u.forEach&&!Zt(function(){new a().entries().next()}))))s=n.getConstructor(e,t,r,i),om.enable();else if(Yd(t,!0)){var f=new s,p=f[i](o?{}:-0,1)!=f,d=Zt(function(){f.has(1)}),y=lD(function(v){new a(v)}),g=!o&&Zt(function(){for(var v=new a,m=5;m--;)v[i](m,m);return!v.has(-0)});y||((s=e(function(v,m){im(v,u);var h=bN(new a,v,s);return m!=null&&Qd(m,h[i],{that:h,AS_ENTRIES:r}),h})).prototype=u,u.constructor=s),(d||g)&&(c("delete"),c("has"),r&&c("get")),(g||p)&&c(i),o&&u.clear&&delete u.clear}return l[t]=s,De({global:!0,forced:s!=a},l),pv(s,t),o||n.setStrong(s,t,r),s},Zh=om.getWeakData,vJ=Fn.set,mJ=Fn.getterFor,yJ=hc.find,bJ=hc.findIndex,wJ=pt([].splice),EJ=0,Jh=function(t){return t.frozen||(t.frozen=new EN)},EN=function(){this.entries=[]},fb=function(t,e){return yJ(t.entries,function(n){return n[0]===e})};EN.prototype={get:function(t){var e=fb(this,t);if(e)return e[1]},has:function(t){return!!fb(this,t)},set:function(t,e){var n=fb(this,t);n?n[1]=e:this.entries.push([t,e])},delete:function(t){var e=bJ(this.entries,function(n){return n[0]===t});return~e&&wJ(this.entries,e,1),!!~e}};var Qc,DN={getConstructor:function(t,e,n,r){var o=t(function(s,l){im(s,i),vJ(s,{type:e,id:EJ++,frozen:void 0}),l!=null&&Qd(l,s[r],{that:s,AS_ENTRIES:n})}),i=o.prototype,a=mJ(e),u=function(s,l,c){var f=a(s),p=Zh(Le(l),!0);return p===!0?Jh(f).set(l,c):p[f.id]=c,s};return Kl(i,{delete:function(s){var l=a(this);if(!ce(s))return!1;var c=Zh(s);return c===!0?Jh(l).delete(s):c&&Ie(c,l.id)&&delete c[l.id]},has:function(s){var l=a(this);if(!ce(s))return!1;var c=Zh(s);return c===!0?Jh(l).has(s):c&&Ie(c,l.id)}}),Kl(i,n?{get:function(s){var l=a(this);if(ce(s)){var c=Zh(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}},Qh=Fn.enforce,DJ=!X.ActiveXObject&&"ActiveXObject"in X,CN=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},CJ=wN("WeakMap",CN,DN);if(Zj&&DJ){Qc=DN.getConstructor(CN,"WeakMap",!0),om.enable();var tf=CJ.prototype,i9=pt(tf.delete),t0=pt(tf.has),a9=pt(tf.get),u9=pt(tf.set);Kl(tf,{delete:function(t){if(ce(t)&&!Eu(t)){var e=Qh(this);return e.frozen||(e.frozen=new Qc),i9(this,t)||e.frozen.delete(t)}return i9(this,t)},has:function(t){if(ce(t)&&!Eu(t)){var e=Qh(this);return e.frozen||(e.frozen=new Qc),t0(this,t)||e.frozen.has(t)}return t0(this,t)},get:function(t){if(ce(t)&&!Eu(t)){var e=Qh(this);return e.frozen||(e.frozen=new Qc),t0(this,t)?a9(this,t):e.frozen.get(t)}return a9(this,t)},set:function(t,e){if(ce(t)&&!Eu(t)){var n=Qh(this);n.frozen||(n.frozen=new Qc),t0(this,t)?u9(this,t,e):n.frozen.set(t,e)}else u9(this,t,e);return this}})}var db=xe("iterator"),s9=xe("toStringTag"),pb=ed.values,xN=function(t,e){if(t){if(t[db]!==pb)try{Jr(t,db,pb)}catch{t[db]=pb}if(t[s9]||Jr(t,s9,e),lv[e]){for(var n in ed)if(t[n]!==ed[n])try{Jr(t,n,ed[n])}catch{t[n]=ed[n]}}}};for(var hb in lv)xN(X[hb]&&X[hb].prototype,hb);xN(Qj,"DOMTokenList");var PE=new WeakMap,jE=new WeakMap,bD=new WeakMap,am=new WeakMap,NE=new WeakMap,gv=new WeakMap,wD=new WeakMap,IE=new WeakMap,ig=new WeakMap,l9=new WeakMap,c9=new WeakMap,f9=new WeakMap,d9=new WeakMap,tp=new WeakMap,Yl=new WeakMap,ED=new WeakMap,vv=new WeakMap,LE=new WeakMap,mv=new WeakMap,ag=new WeakMap,SN=new WeakMap,Pu=new WeakMap,gb=new WeakMap,p9=new WeakMap,vb=new WeakMap,xJ=hc.find,h9=!0;"find"in[]&&Array(1).find(function(){h9=!1}),De({target:"Array",proto:!0,forced:h9},{find:function(t){return xJ(this,t,arguments.length>1?arguments[1]:void 0)}}),pd("find"),De({global:!0},{globalThis:X});const SJ=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","isindex","keygen","link","menuitem","meta","nextid","param","source","track","wbr"];ev&&(B.fn.css=ev),Pr&&(B.fn.append=Pr),jl&&(B.fn.addClass=jl),Nl&&(B.fn.removeClass=Nl),Il&&(B.fn.hasClass=Il),Fo&&(B.fn.on=Fo),Sa&&(B.fn.focus=Sa),Tr&&(B.fn.attr=Tr),Zg&&(B.fn.removeAttr=Zg),Rl&&(B.fn.hide=Rl),tv&&(B.fn.show=tv),kA&&(B.fn.offset=kA),Jg&&(B.fn.width=Jg),Qg&&(B.fn.height=Qg),Ml&&(B.fn.parent=Ml),ov&&(B.fn.parents=ov),FA&&(B.fn.is=FA),Ll&&(B.fn.dataset=Ll),Bo&&(B.fn.val=Bo),rv&&(B.fn.text=rv),xa&&(B.fn.html=xa),$l&&(B.fn.children=$l),Hl&&(B.fn.remove=Hl),zl&&(B.fn.find=zl),nv&&(B.fn.each=nv),Vl&&(B.fn.empty=Vl);var wo,An,DD=function(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView||null},Vr=function(t){return ns(t)&&t.nodeType===1},ns=function(t){var e=DD(t);return!!e&&t instanceof e.Node},g9=function(t){var e=t&&t.anchorNode&&DD(t.anchorNode);return!!e&&t instanceof e.Selection},AN=function(t){return ns(t)&&t.nodeType===3},RE=function(t){var e,n,r;return(e=window.document.getElementById(t))!==null&&e!==void 0?e:((r=(n=window.document.activeElement)===null||n===void 0?void 0:n.shadowRoot)===null||r===void 0?void 0:r.getElementById(t))||null},ON=function(t,e,n){for(var r,o=t.childNodes,i=o[e],a=e,u=!1,s=!1;(ns(r=i)&&r.nodeType===8||Vr(i)&&i.childNodes.length===0||Vr(i)&&i.getAttribute("contenteditable")==="false")&&(!u||!s);)a>=o.length?(u=!0,a=e-1,n="backward"):a<0?(s=!0,a=e+1,n="forward"):(i=o[a],e=a,a+=n==="forward"?1:-1);return[i,e]},AJ=function(t,e,n){return Ht(ON(t,e,n),1)[0]},OJ=function t(e){var n,r,o="";if(AN(e)&&e.nodeValue)return e.nodeValue;if(Vr(e)){try{for(var i=xr(Array.from(e.childNodes)),a=i.next();!a.done;a=i.next())o+=t(a.value)}catch(s){n={error:s}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}var u=getComputedStyle(e).getPropertyValue("display");u!=="block"&&u!=="list"&&u!=="table-row"&&e.tagName!=="BR"||(o+=`
  49. `)}return o};function kN(t,e){if(!(t instanceof HTMLElement&&t.dataset.slateVoid==="true"))for(var n=t.childNodes,r=n.length;r--;){var o=n[r],i=o.nodeType;i==3?e(o,t):i!=1&&i!=9&&i!=11||kN(o,e)}}function v9(t){if(t.length===0)return"";var e=t[0];return e.nodeType!==wo.ELEMENT_NODE?"":e.tagName.toLowerCase()}(An=wo||(wo={}))[An.ELEMENT_NODE=1]="ELEMENT_NODE",An[An.TEXT_NODE=3]="TEXT_NODE",An[An.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",An[An.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",An[An.COMMENT_NODE=8]="COMMENT_NODE",An[An.DOCUMENT_NODE=9]="DOCUMENT_NODE",An[An.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",An[An.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE";var ME=typeof navigator<"u"&&/Mac OS X/.test(navigator.userAgent),hd=typeof navigator<"u"&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),ef=typeof navigator<"u"&&/Version\/[\d\.]+.*Safari/.test(navigator.userAgent),kJ=typeof navigator<"u"&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),BJ=typeof navigator<"u"&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),zE=typeof navigator<"u"&&/Chrome/i.test(navigator.userAgent),nf=!BJ&&!kJ&&typeof globalThis<"u"&&globalThis.InputEvent&&typeof globalThis.InputEvent.prototype.getTargetRanges=="function",A={getWindow:function(t){var e=SN.get(t);if(!e)throw new Error("Unable to find a host window element for this editor");return e},findKey:function(t,e){var n=ag.get(e);return n||(n=new t9,ag.set(e,n)),n},setNewKey:function(t){var e=new t9;ag.set(t,e)},findPath:function(t,e){for(var n=[],r=e;;){var o=Yl.get(r);if(o==null){if(D.isEditor(r))return n;break}var i=tp.get(r);if(i==null)break;n.unshift(i),r=o}throw new Error("Unable to find the path for Slate node: "+JSON.stringify(e))},findDocumentOrShadowRoot:function(t){if(t.isDestroyed)return window.document;var e=A.toDOMNode(t,t),n=e.getRootNode();return(n instanceof Document||n instanceof ShadowRoot)&&n.getSelection!=null?n:e.ownerDocument},getParentNode:function(t,e){return Yl.get(e)||null},getParentsNodes:function(t,e){for(var n=[],r=e;r!==t&&r!=null;){var o=A.getParentNode(t,r);if(o==null)break;n.push(o),r=o}return n},getTopNode:function(t,e){var n=[A.findPath(t,e)[0]];return Q.get(t,n)},toDOMNode:function(t,e){var n;if(D.isEditor(e))n=ED.get(t);else{var r=A.findKey(t,e);n=LE.get(r)}if(!n)throw new Error("Cannot resolve a DOM node from Slate node: "+JSON.stringify(e));return n},hasDOMNode:function(t,e,n){n===void 0&&(n={});var r,o=n.editable,i=o!==void 0&&o,a=A.toDOMNode(t,t);try{r=Vr(e)?e:e.parentElement}catch(u){if(!u.message.includes('Permission denied to access property "nodeType"'))throw u}return!!r&&r.closest("[data-slate-editor]")===a&&(!i||r.isContentEditable||!!r.getAttribute("data-slate-zero-width"))},toDOMRange:function(t,e){var n=e.anchor,r=e.focus,o=L.isBackward(e),i=A.toDOMPoint(t,n),a=L.isCollapsed(e)?i:A.toDOMPoint(t,r),u=A.getWindow(t).document.createRange(),s=Ht(o?a:i,2),l=s[0],c=s[1],f=Ht(o?i:a,2),p=f[0],d=f[1],y=!!(Vr(l)?l:l.parentElement).getAttribute("data-slate-zero-width"),g=!!(Vr(p)?p:p.parentElement).getAttribute("data-slate-zero-width");return u.setStart(l,y?1:c),u.setEnd(p,g?1:d),u},toDOMPoint:function(t,e){var n,r,o,i=Ht(D.node(t,e.path),1)[0],a=A.toDOMNode(t,i);D.void(t,{at:e})&&(e={path:e.path,offset:0});var u=Array.from(a.querySelectorAll("[data-slate-string], [data-slate-zero-width]")),s=0;try{for(var l=xr(u),c=l.next();!c.done;c=l.next()){var f=c.value,p=f.childNodes[0];if(p!=null&&p.textContent!=null){var d=p.textContent.length,y=f.getAttribute("data-slate-length"),g=s+(y==null?d:parseInt(y,10));if(e.offset<=g){o=[p,Math.min(d,Math.max(0,e.offset-s))];break}s=g}}}catch(v){n={error:v}}finally{try{c&&!c.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}if(!o)throw new Error("Cannot resolve a DOM point from Slate point: "+JSON.stringify(e));return o},toSlateNode:function(t,e){var n=Vr(e)?e:e.parentElement;n&&!n.hasAttribute("data-slate-node")&&(n=n.closest("[data-slate-node]"));var r=n?vv.get(n):null;if(!r)throw new Error("Cannot resolve a Slate node from DOM node: "+n);return r},findEventRange:function(t,e){"nativeEvent"in e&&(e=e.nativeEvent);var n=e.clientX,r=e.clientY,o=e.target;if(n==null||r==null)throw new Error("Cannot resolve a Slate range from a DOM event: "+e);var i,a=A.toSlateNode(t,e.target),u=A.findPath(t,a);if(D.isVoid(t,a)){var s=o.getBoundingClientRect(),l=t.isInline(a)?n-s.left<s.left+s.width-n:r-s.top<s.top+s.height-r,c=D.point(t,u,{edge:l?"start":"end"}),f=l?D.before(t,c):D.after(t,c);if(f)return D.range(t,f)}var p=this.getWindow(t).document;if(p.caretRangeFromPoint)i=p.caretRangeFromPoint(n,r);else{var d=p.caretPositionFromPoint(n,r);d&&((i=p.createRange()).setStart(d.offsetNode,d.offset),i.setEnd(d.offsetNode,d.offset))}if(!i)throw new Error("Cannot resolve a Slate range from a DOM event: "+e);return A.toSlateRange(t,i,{exactMatch:!1,suppressThrow:!1})},toSlateRange:function(t,e,n){var r,o,i,a,u,s=n.exactMatch,l=n.suppressThrow;if((g9(e)?e.anchorNode:e.startContainer)&&(g9(e)?(r=e.anchorNode,o=e.anchorOffset,i=e.focusNode,a=e.focusOffset,u=zE&&window.document.activeElement&&window.document.activeElement.shadowRoot?e.anchorNode===e.focusNode&&e.anchorOffset===e.focusOffset:e.isCollapsed):(r=e.startContainer,o=e.startOffset,i=e.endContainer,a=e.endOffset,u=e.collapsed)),r==null||i==null||o==null||a==null)throw new Error("Cannot resolve a Slate range from DOM range: "+e);var c=A.toSlatePoint(t,[r,o],{exactMatch:s,suppressThrow:l});if(!c)return null;var f=u?c:A.toSlatePoint(t,[i,a],{exactMatch:s,suppressThrow:l});if(!f)return null;var p={anchor:c,focus:f};return L.isExpanded(p)&&L.isForward(p)&&Vr(i)&&D.void(t,{at:p.focus,mode:"highest"})&&(p=D.unhangRange(t,p,{voids:!0})),p},toSlatePoint:function(t,e,n){var r,o=n.exactMatch,i=n.suppressThrow,a=Ht(o?e:function(h){var b,w=Ht(h,2),E=w[0],x=w[1];if(Vr(E)&&E.childNodes.length){var C=x===E.childNodes.length,O=C?x-1:x;for(E=(b=Ht(ON(E,O,C?"backward":"forward"),2))[0],C=(O=b[1])<x;Vr(E)&&E.childNodes.length;){var F=C?E.childNodes.length-1:0;E=AJ(E,F,C?"backward":"forward")}x=C&&E.textContent!=null?E.textContent.length:0}return[E,x]}(e),2),u=a[0],s=a[1],l=u.parentNode,c=null,f=0;if(l){var p=l.closest('[data-slate-void="true"]'),d=l.closest("[data-slate-leaf]"),y=null;if(d){c=d.closest('[data-slate-node="text"]');var g=A.getWindow(t).document.createRange();g.setStart(c,0),g.setEnd(u,s);var v=g.cloneContents();_E(_E([],Ht(SA(v.querySelectorAll("[data-slate-zero-width]")))),Ht(SA(v.querySelectorAll("[contenteditable=false]")))).forEach(function(h){h.parentNode.removeChild(h)}),f=v.textContent.length,y=c}else p&&((d=p.querySelector("[data-slate-leaf]"))?(c=d.closest('[data-slate-node="text"]'),f=(y=d).textContent.length,y.querySelectorAll("[data-slate-zero-width]").forEach(function(h){f-=h.textContent.length})):f=1);y&&f===y.textContent.length&&(l.hasAttribute("data-slate-zero-width")||hd&&(!((r=y.textContent)===null||r===void 0)&&r.endsWith(`
  50. `)))&&f--}if(!c){if(i)return null;throw new Error("Cannot resolve a Slate point from DOM point: "+e)}var m=A.toSlateNode(t,c);return{path:A.findPath(t,m),offset:f}},hasRange:function(t,e){var n=e.anchor,r=e.focus;return D.hasPath(t,n.path)&&D.hasPath(t,r.path)},getNodeType:function(t){return ct.isElement(t)?t.type:""},checkNodeType:function(t,e){return this.getNodeType(t)===e},getNodesStr:function(t){return t.map(function(e){return Q.string(e)}).join("")},getSelectedElems:function(t){var e,n,r=[],o=D.nodes(t,{universal:!0});try{for(var i=xr(o),a=i.next();!a.done;a=i.next()){var u=Ht(a.value,1)[0];ct.isElement(u)&&r.push(u)}}catch(s){e={error:s}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}return r},getSelectedNodeByType:function(t,e){var n=this,r=Ht(D.nodes(t,{match:function(i){return n.checkNodeType(i,e)},universal:!0}),1),o=r[0];return o==null?null:o[0]},getSelectedTextNode:function(t){var e=Ht(D.nodes(t,{match:function(r){return ot.isText(r)},universal:!0}),1),n=e[0];return n==null?null:n[0]},isNodeSelected:function(t,e){var n=Ht(D.nodes(t,{match:function(o){return o===e},universal:!0}),1),r=n[0];return r!=null&&Ht(r,1)[0]===e},isSelectionAtLineEnd:function(t,e){var n=t.selection;return!!n&&(D.isEnd(t,n.anchor,e)||D.isEnd(t,n.focus,e))},getTextarea:function(t){var e=PE.get(t);if(e==null)throw new Error("Cannot find textarea instance by editor");return e},getToolbar:function(t){return am.get(t)||null},getHoverbar:function(t){return gv.get(t)||null},normalizeContent:function(t){t.children.forEach(function(e,n){t.normalizeNode([e,[n]])})},getLeftLengthOfMaxLength:function(t){var e=t.getConfig(),n=e.maxLength,r=e.onMaxLength;if(typeof n!="number"||n<=0)return 1/0;var o=n-t.getText().replace(/\r|\n|(\r\n)/g,"").length;return o<=0&&r&&r(t),o},cleanExposedTexNodeInSelectionBlock:function(t){var e,n,r,o,i=A.getTextarea(t).$textArea,a=i==null?void 0:i[0].childNodes;if(a)try{for(var u=xr(Array.from(a)),s=u.next();!s.done;s=u.next()){var l=s.value;if(l.nodeType!==3)break;l.remove()}}catch(g){e={error:g}}finally{try{s&&!s.done&&(n=u.return)&&n.call(u)}finally{if(e)throw e.error}}var c=D.nodes(t,{match:function(g){return!(!ct.isElement(g)||t.isInline(g))},universal:!0});try{for(var f=xr(c),p=f.next();!p.done;p=f.next()){var d=p.value;if(d!=null){var y=d[0];kN(A.toDOMNode(t,y),function(g,v){var m=B(v);m.attr("data-slate-string")||m.attr("data-slate-zero-width")||m.attr("data-w-e-reserve")||v.removeChild(g)})}}}catch(g){r={error:g}}finally{try{p&&!p.done&&(o=f.return)&&o.call(f)}finally{if(r)throw r.error}}},isLastNode:function(t,e){var n=t.children||[];return n[n.length-1]===e},genEmptyParagraph:function(){return{type:"paragraph",children:[{text:""}]}},isSelectedVoidNode:function(t){var e,n,r=D.nodes(t,{match:function(u){return t.isVoid(u)}}),o=0;try{for(var i=xr(r),a=i.next();!a.done;a=i.next())a.value,o++}catch(u){e={error:u}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}return o>0},isSelectedEmptyParagraph:function(t){var e=t.selection;if(e==null||L.isExpanded(e))return!1;var n=A.getSelectedNodeByType(t,"paragraph");if(n===null)return!1;var r=n.children;return r.length===1&&(r[0].text===""||void 0)},isEmptyPath:function(t,e){var n=D.node(t,e);if(n==null)return!1;var r=Ht(n,1)[0].children;return r.length===1&&r[0].text===""}},FJ=1,BN={},ep={},_J=hc.filter,TJ=nm("filter");De({target:"Array",proto:!0,forced:!TJ},{filter:function(t){return _J(this,t,arguments.length>1?arguments[1]:void 0)}});var $E=`
  51. \v\f\r                 \u2028\u2029\uFEFF`,m9=pt("".replace),yv="["+$E+"]",PJ=RegExp("^"+yv+yv+"*"),jJ=RegExp(yv+yv+"*$"),mb=function(t){return function(e){var n=ue(jr(e));return 1&t&&(n=m9(n,PJ,"")),2&t&&(n=m9(n,jJ,"")),n}},NJ={start:mb(1),end:mb(2),trim:mb(3)},IJ=dc.PROPER,LJ=NJ.trim;De({target:"String",proto:!0,forced:function(t){return Zt(function(){return!!$E[t]()||"​…᠎"[t]()!=="​…᠎"||IJ&&$E[t].name!==t})}("trim")},{trim:function(){return LJ(this)}});var HE=[],FN={};function RJ(t,e,n){var r=n.isInline(t)?"span":"div";return"<"+r+">"+e+"</"+r+">"}var np,js,y9,yb,bv=X.Promise,b9=xe("species"),CD=function(t){var e=vs(t),n=io.f;an&&e&&!e[b9]&&n(e,b9,{configurable:!0,get:function(){return this}})},MJ=X.TypeError,zJ=xe("species"),_N=function(t,e){var n,r=Le(t).constructor;return r===void 0||(n=Le(r)[zJ])==null?e:function(o){if(tm(o))return o;throw MJ(K1(o)+" is not a constructor")}(n)},TN=pt([].slice),PN=/(?:ipad|iphone|ipod).*applewebkit/i.test(yl),ua=Qr(X.process)=="process",VE=X.setImmediate,UE=X.clearImmediate,$J=X.process,bb=X.Dispatch,HJ=X.Function,w9=X.MessageChannel,VJ=X.String,wb=0,gd={};try{np=X.location}catch{}var xD=function(t){if(Ie(gd,t)){var e=gd[t];delete gd[t],e()}},Eb=function(t){return function(){xD(t)}},E9=function(t){xD(t.data)},D9=function(t){X.postMessage(VJ(t),np.protocol+"//"+np.host)};VE&&UE||(VE=function(t){var e=TN(arguments,1);return gd[++wb]=function(){vD(re(t)?t:HJ(t),void 0,e)},js(wb),wb},UE=function(t){delete gd[t]},ua?js=function(t){$J.nextTick(Eb(t))}:bb&&bb.now?js=function(t){bb.now(Eb(t))}:w9&&!PN?(yb=(y9=new w9).port2,y9.port1.onmessage=E9,js=es(yb.postMessage,yb)):X.addEventListener&&re(X.postMessage)&&!X.importScripts&&np&&np.protocol!=="file:"&&!Zt(D9)?(js=D9,X.addEventListener("message",E9,!1)):js="onreadystatechange"in qd("script")?function(t){EE.appendChild(qd("script")).onreadystatechange=function(){EE.removeChild(this),xD(t)}}:function(t){setTimeout(Eb(t),0)});var rf,mu,vd,al,Db,Cb,xb,C9,jN={set:VE,clear:UE},UJ=/ipad|iphone|ipod/i.test(yl)&&X.Pebble!==void 0,WJ=/web0s(?!.*chrome)/i.test(yl),GJ=Yp.f,Sb=jN.set,x9=X.MutationObserver||X.WebKitMutationObserver,S9=X.document,A9=X.process,e0=X.Promise,O9=GJ(X,"queueMicrotask"),NN=O9&&O9.value;NN||(rf=function(){var t,e;for(ua&&(t=A9.domain)&&t.exit();mu;){e=mu.fn,mu=mu.next;try{e()}catch(n){throw mu?al():vd=void 0,n}}vd=void 0,t&&t.enter()},PN||ua||WJ||!x9||!S9?!UJ&&e0&&e0.resolve?((xb=e0.resolve(void 0)).constructor=e0,C9=es(xb.then,xb),al=function(){C9(rf)}):ua?al=function(){A9.nextTick(rf)}:(Sb=es(Sb,X),al=function(){Sb(rf)}):(Db=!0,Cb=S9.createTextNode(""),new x9(rf).observe(Cb,{characterData:!0}),al=function(){Cb.data=Db=!Db}));var Ab,k9,IN,B9,LN=NN||function(t){var e={fn:t,next:void 0};vd&&(vd.next=e),mu||(mu=e,al()),vd=e},qJ=function(t){var e,n;this.promise=new t(function(r,o){if(e!==void 0||n!==void 0)throw TypeError("Bad Promise constructor");e=r,n=o}),this.resolve=Aa(e),this.reject=Aa(n)},SD={f:function(t){return new qJ(t)}},WE=function(t){try{return{error:!1,value:t()}}catch(e){return{error:!0,value:e}}},KJ=typeof window=="object",RN=jN.set,YJ=xe("species"),mo="Promise",F9=Fn.getterFor(mo),XJ=Fn.set,ZJ=Fn.getterFor(mo),fu=bv&&bv.prototype,Eo=bv,of=fu,MN=X.TypeError,GE=X.document,AD=X.process,wl=SD.f,JJ=wl,QJ=!!(GE&&GE.createEvent&&X.dispatchEvent),zN=re(X.PromiseRejectionEvent),$N=!1,md=Yd(mo,function(){var t=X1(Eo),e=t!==String(Eo);if(!e&&Gd===66)return!0;if(Gd>=51&&/native code/.test(t))return!1;var n=new Eo(function(o){o(1)}),r=function(o){o(function(){},function(){})};return(n.constructor={})[YJ]=r,!($N=n.then(function(){})instanceof r)||!e&&KJ&&!zN}),tQ=md||!lD(function(t){Eo.all(t).catch(function(){})}),HN=function(t){var e;return!(!ce(t)||!re(e=t.then))&&e},OD=function(t,e){if(!t.notified){t.notified=!0;var n=t.reactions;LN(function(){for(var r=t.value,o=t.state==1,i=0;n.length>i;){var a,u,s,l=n[i++],c=o?l.ok:l.fail,f=l.resolve,p=l.reject,d=l.domain;try{c?(o||(t.rejection===2&&nQ(t),t.rejection=1),c===!0?a=r:(d&&d.enter(),a=c(r),d&&(d.exit(),s=!0)),a===l.promise?p(MN("Promise-chain cycle")):(u=HN(a))?Ut(u,a,f,p):f(a)):p(r)}catch(y){d&&!s&&d.exit(),p(y)}}t.reactions=[],t.notified=!1,e&&!t.rejection&&eQ(t)})}},VN=function(t,e,n){var r,o;QJ?((r=GE.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),X.dispatchEvent(r)):r={promise:e,reason:n},!zN&&(o=X["on"+t])?o(r):t==="unhandledrejection"&&function(i,a){var u=X.console;u&&u.error&&(arguments.length==1?u.error(i):u.error(i,a))}("Unhandled promise rejection",n)},eQ=function(t){Ut(RN,X,function(){var e,n=t.facade,r=t.value;if(_9(t)&&(e=WE(function(){ua?AD.emit("unhandledRejection",r,n):VN("unhandledrejection",n,r)}),t.rejection=ua||_9(t)?2:1,e.error))throw e.value})},_9=function(t){return t.rejection!==1&&!t.parent},nQ=function(t){Ut(RN,X,function(){var e=t.facade;ua?AD.emit("rejectionHandled",e):VN("rejectionhandled",e,t.value)})},pl=function(t,e,n){return function(r){t(e,r,n)}},El=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,OD(t,!0))},qE=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw MN("Promise can't be resolved itself");var r=HN(e);r?LN(function(){var o={done:!1};try{Ut(r,e,pl(qE,o,t),pl(El,o,t))}catch(i){El(o,i,t)}}):(t.value=e,t.state=1,OD(t,!1))}catch(o){El({done:!1},o,t)}}};if(md&&(of=(Eo=function(t){im(this,of),Aa(t),Ut(Ab,this);var e=F9(this);try{t(pl(qE,e),pl(El,e))}catch(n){El(e,n)}}).prototype,(Ab=function(t){XJ(this,{type:mo,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=Kl(of,{then:function(t,e){var n=ZJ(this),r=n.reactions,o=wl(_N(this,Eo));return o.ok=!re(t)||t,o.fail=re(e)&&e,o.domain=ua?AD.domain:void 0,n.parent=!0,r[r.length]=o,n.state!=0&&OD(n,!1),o.promise},catch:function(t){return this.then(void 0,t)}}),k9=function(){var t=new Ab,e=F9(t);this.promise=t,this.resolve=pl(qE,e),this.reject=pl(El,e)},SD.f=wl=function(t){return t===Eo||t===IN?new k9(t):JJ(t)},re(bv)&&fu!==Object.prototype)){B9=fu.then,$N||(Gn(fu,"then",function(t,e){var n=this;return new Eo(function(r,o){Ut(B9,n,r,o)}).then(t,e)},{unsafe:!0}),Gn(fu,"catch",of.catch,{unsafe:!0}));try{delete fu.constructor}catch{}ql&&ql(fu,of)}De({global:!0,wrap:!0,forced:md},{Promise:Eo}),pv(Eo,mo,!1),CD(mo),IN=vs(mo),De({target:mo,stat:!0,forced:md},{reject:function(t){var e=wl(this);return Ut(e.reject,void 0,t),e.promise}}),De({target:mo,stat:!0,forced:md},{resolve:function(t){return function(e,n){if(Le(e),ce(n)&&n.constructor===e)return n;var r=SD.f(e);return(0,r.resolve)(n),r.promise}(this,t)}}),De({target:mo,stat:!0,forced:tQ},{all:function(t){var e=this,n=wl(e),r=n.resolve,o=n.reject,i=WE(function(){var a=Aa(e.resolve),u=[],s=0,l=1;Qd(t,function(c){var f=s++,p=!1;l++,Ut(a,e,c).then(function(d){p||(p=!0,u[f]=d,--l||r(u))},o)}),--l||r(u)});return i.error&&o(i.value),n.promise},race:function(t){var e=this,n=wl(e),r=n.reject,o=WE(function(){var i=Aa(e.resolve);Qd(t,function(a){Ut(i,e,a).then(n.resolve,r)})});return o.error&&r(o.value),n.promise}});var Ns=rm.UNSUPPORTED_Y,rQ=Math.min,UN=[].push,oQ=pt(/./.exec),Is=pt(UN),af=pt("".slice);function Nr(t){Promise.resolve().then(t)}function WN(t,e){return ct.isElement(t)?function(n,r){var o=n.type,i=o===void 0?"":o,a=n.children,u=a===void 0?[]:a,s=D.isVoid(r,n),l="";s||(l=u.map(function(m){return WN(m,r)}).join(""));var c=function(m){return FN[m]||RJ}(i),f=c(n,l,r),p="";if(p=typeof f=="string"?f:f.html||"",s||HE.forEach(function(m){return p=m(n,p)}),typeof f=="string")return p;var d=f.prefix,y=d===void 0?"":d,g=f.suffix,v=g===void 0?"":g;return y&&(p=y+p),v&&(p+=v),p}(t,e):function(n,r){var o=n.text;if(o==null)throw new Error("Current node is not slate Text "+JSON.stringify(n));var i=o;i=function(s){return s.replace(/ {2}/g," &nbsp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/®/g,"&reg;").replace(/©/g,"&copy;").replace(/™/g,"&trade;")}(i);var a=A.getParentsNodes(r,n).some(function(s){return A.getNodeType(s)==="pre"});if(a||(i=i.replace(/\r\n|\r|\n/g,"<br>")),a&&(i=i.replace(/&nbsp;/g," ")),i===""){var u=A.getParentNode(null,n);if(!u||u.children.length!==0)return i;i="<br>"}return HE.forEach(function(s){return i=s(n,i)}),i}(t,e)}function GN(t){return"w-e-element-"+t}mD("split",function(t,e,n){var r;return r="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(o,i){var a=ue(jr(this)),u=i===void 0?4294967295:i>>>0;if(u===0)return[];if(o===void 0)return[a];if(!iD(o))return Ut(e,a,o,u);for(var s,l,c,f=[],p=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(o.sticky?"y":""),d=0,y=new RegExp(o.source,p+"g");(s=Ut(Zd,y,a))&&!((l=y.lastIndex)>d&&(Is(f,af(a,d,s.index)),s.length>1&&s.index<a.length&&vD(UN,f,TE(s,1)),c=s[0].length,d=l,f.length>=u));)y.lastIndex===s.index&&y.lastIndex++;return d===a.length?!c&&oQ(y,"")||Is(f,""):Is(f,af(a,d)),f.length>u?TE(f,0,u):f}:"0".split(void 0,0).length?function(o,i){return o===void 0&&i===0?[]:Ut(e,this,o,i)}:e,[function(o,i){var a=jr(this),u=o==null?void 0:ts(o,t);return u?Ut(u,o,a,i):Ut(r,ue(a),o,i)},function(o,i){var a=Le(this),u=ue(o),s=n(r,a,u,i,r!==e);if(s.done)return s.value;var l=_N(a,RegExp),c=a.unicode,f=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(Ns?"g":"y"),p=new l(Ns?"^(?:"+a.source+")":a,f),d=i===void 0?4294967295:i>>>0;if(d===0)return[];if(u.length===0)return Jd(p,u)===null?[u]:[];for(var y=0,g=0,v=[];g<u.length;){p.lastIndex=Ns?0:g;var m,h=Jd(p,Ns?af(u,g):u);if(h===null||(m=rQ(pc(p.lastIndex+(Ns?g:0)),u.length))===y)g=yD(u,g,c);else{if(Is(v,af(u,y,g)),v.length===d)return v;for(var b=1;b<=h.length-1;b++)if(Is(v,h[b]),v.length===d)return v;g=y=m}}return Is(v,af(u,y)),v}]},!!Zt(function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return n.length!==2||n[0]!=="a"||n[1]!=="b"}),Ns);var T9=function(t,e){var n=(e.top+e.bottom)/2;return t.top<=n&&t.bottom>=n},P9=function(t,e,n){var r=A.toDOMRange(t,e).getBoundingClientRect(),o=A.toDOMRange(t,n).getBoundingClientRect();return T9(r,o)&&T9(o,r)},qN=["span","b","strong","i","em","s","strike","u","font","sub","sup"],KN=[],kD=[],wv={},iQ=io.f,aQ=Kd.f,uQ=Fn.enforce,sQ=xe("match"),ti=X.RegExp,ul=ti.prototype,lQ=X.SyntaxError,cQ=pt(oD),fQ=pt(ul.exec),n0=pt("".charAt),j9=pt("".replace),N9=pt("".indexOf),dQ=pt("".slice),pQ=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,ju=/a/g,Ob=/a/g,hQ=new ti(ju)!==ju,YN=rm.MISSED_STICKY,gQ=rm.UNSUPPORTED_Y,vQ=an&&(!hQ||YN||pD||hD||Zt(function(){return Ob[sQ]=!1,ti(ju)!=ju||ti(Ob)==Ob||ti(ju,"i")!="/a/i"}));if(Yd("RegExp",vQ)){for(var ki=function(t,e){var n,r,o,i,a,u,s=Qu(ul,this),l=iD(t),c=e===void 0,f=[],p=t;if(!s&&l&&c&&t.constructor===ki)return t;if((l||Qu(ul,t))&&(t=t.source,c&&(e="flags"in p?p.flags:cQ(p))),t=t===void 0?"":ue(t),e=e===void 0?"":ue(e),p=t,pD&&"dotAll"in ju&&(r=!!e&&N9(e,"s")>-1)&&(e=j9(e,/s/g,"")),n=e,YN&&"sticky"in ju&&(o=!!e&&N9(e,"y")>-1)&&gQ&&(e=j9(e,/y/g,"")),hD&&(i=function(d){for(var y,g=d.length,v=0,m="",h=[],b={},w=!1,E=!1,x=0,C="";v<=g;v++){if((y=n0(d,v))==="\\")y+=n0(d,++v);else if(y==="]")w=!1;else if(!w)switch(!0){case y==="[":w=!0;break;case y==="(":fQ(pQ,dQ(d,v+1))&&(v+=2,E=!0),m+=y,x++;continue;case(y===">"&&E):if(C===""||Ie(b,C))throw new lQ("Invalid capture group name");b[C]=!0,h[h.length]=[C,x],E=!1,C="";continue}E?C+=y:m+=y}return[m,h]}(t),t=i[0],f=i[1]),a=bN(ti(t,e),s?this:ul,ki),(r||o||f.length)&&(u=uQ(a),r&&(u.dotAll=!0,u.raw=ki(function(d){for(var y,g=d.length,v=0,m="",h=!1;v<=g;v++)(y=n0(d,v))!=="\\"?h||y!=="."?(y==="["?h=!0:y==="]"&&(h=!1),m+=y):m+="[\\s\\S]":m+=y+n0(d,++v);return m}(t),n)),o&&(u.sticky=!0),f.length&&(u.groups=f)),t!==p)try{Jr(a,"source",p===""?"(?:)":p)}catch{}return a},mQ=function(t){t in ki||iQ(ki,t,{configurable:!0,get:function(){return ti[t]},set:function(e){ti[t]=e}})},I9=aQ(ti),L9=0;I9.length>L9;)mQ(I9[L9++]);ul.constructor=ki,ki.prototype=ul,Gn(X,"RegExp",ki)}CD("RegExp");var yQ=new RegExp(String.fromCharCode(160),"g");function XN(t){return t.replace(yQ," ")}function R9(t,e){var n=t.length;if(n){var r=t[n-1];if(ot.isText(r)){var o=Object.keys(r);if(o.length===1&&o[0]==="text")return r.text=r.text+e,!0}}return!1}function bQ(t,e,n){return{type:"paragraph",children:[{text:B(t).text().replace(/\s+/gm," ")}]}}function kb(t,e){var n=function(i,a){var u=[];if(i.attr("data-w-e-is-void")!=null)return u;var s=i[0].childNodes;return s.length===1&&s[0].nodeName==="BR"?(u.push({text:""}),u):(s.forEach(function(l){if(l.nodeType!==wo.ELEMENT_NODE){if(l.nodeType===wo.TEXT_NODE){var c=l.textContent||"";if(c.trim()===""&&c.indexOf(`
  52. `)>=0)return;c&&(c=XN(c),R9(u,c)||u.push({text:c}))}}else{if(l.nodeName==="BR")return void(R9(u,`
  53. `)||u.push({text:`
  54. `}));var f=BD(B(l),a);Array.isArray(f)?f.forEach(function(p){return u.push(p)}):u.push(f)}}),u)}(t,e),r=function(i){for(var a in wv)if(i[0].matches(a))return wv[a];return bQ}(t),o=r(t[0],n,e);return Array.isArray(o)||(o=[o]),o.forEach(function(i){D.isVoid(e,i)||(n.length===0&&(i.children=[{text:t.text().replace(/\s+/gm," ")}]),kD.forEach(function(a){i=a(t[0],i,e)}))}),o}function Bb(t,e){t.parents("pre").length===0&&(t[0].innerHTML=t[0].innerHTML.replace(/\s+/gm," ").replace(/<br>/g,`
  55. `));var n=t[0].textContent||"";n=function(o){return o.replace(/&nbsp;/g," ").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&reg;/g,"®").replace(/&copy;/g,"©").replace(/&trade;/g,"™").replace(/&quot;/g,'"')}(n);var r={text:n=XN(n)};return kD.forEach(function(o){r=o(t[0],r,e)}),r}function BD(t,e){KN.forEach(function(r){var o=r.selector,i=r.preParseHtml;t[0].matches(o)&&(t=B(i(t[0])))});var n=v9(t);return n==="span"?t.attr("data-w-e-type")?kb(t,e):Bb(t,e):n==="code"?v9(t.parent())==="pre"?kb(t,e):Bb(t,e):qN.includes(n)?Bb(t,e):kb(t,e)}function ZN(t,e,n){var r=B(n);return!!r.attr(e)||(r.attr(e,"true"),t.on("destroyed",function(){r.removeAttr(e)}),!1)}function M9(t,e){e===void 0&&(e="");var n=[];e===""&&(e="<p><br></p>"),e.indexOf("<")!==0&&(e=e.split(/\n/).map(function(o){return"<p>"+o+"</p>"}).join(""));var r=B("<div>"+e+"</div>");return Array.from(r.children()).forEach(function(o){var i=BD(B(o),t);Array.isArray(i)?i.forEach(function(a){return n.push(a)}):n.push(i)}),n}var wQ=io.f,z9=om.fastKey,$9=Fn.set,Fb=Fn.getterFor,EQ={getConstructor:function(t,e,n,r){var o=t(function(l,c){im(l,i),$9(l,{type:e,index:em(null),first:void 0,last:void 0,size:0}),an||(l.size=0),c!=null&&Qd(c,l[r],{that:l,AS_ENTRIES:n})}),i=o.prototype,a=Fb(e),u=function(l,c,f){var p,d,y=a(l),g=s(l,c);return g?g.value=f:(y.last=g={index:d=z9(c,!0),key:c,value:f,previous:p=y.last,next:void 0,removed:!1},y.first||(y.first=g),p&&(p.next=g),an?y.size++:l.size++,d!=="F"&&(y.index[d]=g)),l},s=function(l,c){var f,p=a(l),d=z9(c);if(d!=="F")return p.index[d];for(f=p.first;f;f=f.next)if(f.key==c)return f};return Kl(i,{clear:function(){for(var l=a(this),c=l.index,f=l.first;f;)f.removed=!0,f.previous&&(f.previous=f.previous.next=void 0),delete c[f.index],f=f.next;l.first=l.last=void 0,an?l.size=0:this.size=0},delete:function(l){var c=this,f=a(c),p=s(c,l);if(p){var d=p.next,y=p.previous;delete f.index[p.index],p.removed=!0,y&&(y.next=d),d&&(d.previous=y),f.first==p&&(f.first=d),f.last==p&&(f.last=y),an?f.size--:c.size--}return!!p},forEach:function(l){for(var c,f=a(this),p=es(l,arguments.length>1?arguments[1]:void 0);c=c?c.next:f.first;)for(p(c.value,c.key,this);c&&c.removed;)c=c.previous},has:function(l){return!!s(this,l)}}),Kl(i,n?{get:function(l){var c=s(this,l);return c&&c.value},set:function(l,c){return u(this,l===0?0:l,c)}}:{add:function(l){return u(this,l=l===0?0:l,l)}}),an&&wQ(i,"size",{get:function(){return a(this).size}}),o},setStrong:function(t,e,n){var r=e+" Iterator",o=Fb(e),i=Fb(r);fD(t,e,function(a,u){$9(this,{type:r,target:a,state:o(a),kind:u,last:void 0})},function(){for(var a=i(this),u=a.kind,s=a.last;s&&s.removed;)s=s.previous;return a.target&&(a.last=s=s?s.next:a.state.first)?u=="keys"?{value:s.key,done:!1}:u=="values"?{value:s.value,done:!1}:{value:[s.key,s.value],done:!1}:(a.target=void 0,{value:void 0,done:!0})},n?"entries":"values",!n,!0),CD(e)}};wN("Set",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},EQ);var H9=new Set(["doctype","!doctype","meta","script","style","link","frame","iframe","title","svg"]);function V9(t,e){t.isInline(e)?(t.insertNode(e),e.type==="link"&&t.insertFragment([{text:""}])):N.insertNodes(t,e,{mode:"highest"})}var DQ=function(t){var e=t,n=e.insertText;return e.insertFragment,e.setFragmentData=function(r){var o=e.selection;if(o){var i=Ht(L.edges(o),2),a=i[0],u=i[1],s=D.void(e,{at:a.path}),l=D.void(e,{at:u.path});if(!L.isCollapsed(o)||s){var c=A.toDOMRange(e,o),f=c.cloneContents(),p=f.childNodes[0];if(f.childNodes.forEach(function(E){E.textContent&&E.textContent.trim()!==""&&(p=E)}),l){var d=Ht(l,1)[0],y=c.cloneRange(),g=A.toDOMNode(e,d);y.setEndAfter(g),f=y.cloneContents()}if(s&&(p=f.querySelector("[data-slate-spacer]")),Array.from(f.querySelectorAll("[data-slate-zero-width]")).forEach(function(E){var x=E.getAttribute("data-slate-zero-width")==="n";E.textContent=x?`
  56. `:""}),AN(p)){var v=p.ownerDocument.createElement("span");v.style.whiteSpace="pre",v.appendChild(p),f.appendChild(v),p=v}var m=e.getFragment(),h=JSON.stringify(m),b=window.btoa(encodeURIComponent(h));p.setAttribute("data-slate-fragment",b),r.setData("application/x-slate-fragment",b);var w=f.ownerDocument.createElement("div");return w.appendChild(f),w.setAttribute("hidden","true"),f.ownerDocument.body.appendChild(w),r.setData("text/html",w.innerHTML),r.setData("text/plain",OJ(w)),f.ownerDocument.body.removeChild(w),r}}},e.insertData=function(r){var o,i,a=r.getData("application/x-slate-fragment");if(a){var u=decodeURIComponent(window.atob(a)),s=JSON.parse(u);e.insertFragment(s)}else{var l=r.getData("text/plain"),c=r.getData("text/html");if(c)e.dangerouslyInsertHtml(c);else if(l){var f=l.split(/\r\n|\r|\n/),p=!1;try{for(var d=xr(f),y=d.next();!y.done;y=d.next()){var g=y.value;p&&N.splitNodes(e,{always:!0}),n(g),p=!0}}catch(v){o={error:v}}finally{try{y&&!y.done&&(i=d.return)&&i.call(d)}finally{if(o)throw o.error}}}}},e},nd=function(t){return t!=null},CQ={object:!0,function:!0,undefined:!0},xQ=/^\s*class[\s{/}]/,SQ=Function.prototype.toString,U9=function(t){return!!function(e){if(typeof e!="function"||!hasOwnProperty.call(e,"length"))return!1;try{if(typeof e.length!="number"||typeof e.call!="function"||typeof e.apply!="function")return!1}catch{return!1}return!function(n){if(!function(r){return!!nd(r)&&hasOwnProperty.call(CQ,typeof r)}(n))return!1;try{return!!n.constructor&&n.constructor.prototype===n}catch{return!1}}(e)}(t)&&!xQ.test(SQ.call(t))},FD=function(t){return t!=null},AQ=Object.keys,OQ=function(){try{return Object.keys("primitive"),!0}catch{return!1}}()?Object.keys:function(t){return AQ(FD(t)?Object(t):t)},kQ=function(t){if(!FD(t))throw new TypeError("Cannot use null or undefined");return t},BQ=Math.max,W9=function(){var t,e=Object.assign;return typeof e=="function"&&(e(t={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),t.foo+t.bar+t.trzy==="razdwatrzy")}()?Object.assign:function(t,e){var n,r,o,i=BQ(arguments.length,2);for(t=Object(kQ(t)),o=function(a){try{t[a]=e[a]}catch(u){n||(n=u)}},r=1;r<i;++r)OQ(e=arguments[r]).forEach(o);if(n!==void 0)throw n;return t},FQ=Array.prototype.forEach,_Q=Object.create,TQ=function(t,e){var n;for(n in t)e[n]=t[n]},G9=function(t){var e=_Q(null);return FQ.call(arguments,function(n){FD(n)&&TQ(Object(n),e)}),e},_b="razdwatrzy",PQ=String.prototype.indexOf,uf=typeof _b.contains=="function"&&_b.contains("dwa")===!0&&_b.contains("foo")===!1?String.prototype.contains:function(t){return PQ.call(this,t,arguments[1])>-1},r0=qp(function(t){var e=t.exports=function(n,r){var o,i,a,u,s;return arguments.length<2||typeof n!="string"?(u=r,r=n,n=null):u=arguments[2],nd(n)?(o=uf.call(n,"c"),i=uf.call(n,"e"),a=uf.call(n,"w")):(o=a=!0,i=!1),s={value:r,configurable:o,enumerable:i,writable:a},u?W9(G9(u),s):s};e.gs=function(n,r,o){var i,a,u,s;return typeof n!="string"?(u=o,o=r,r=n,n=null):u=arguments[3],nd(r)?U9(r)?nd(o)?U9(o)||(u=o,o=void 0):o=void 0:(u=r,r=o=void 0):r=void 0,nd(n)?(i=uf.call(n,"c"),a=uf.call(n,"e")):(i=!0,a=!1),s={get:r,set:o,configurable:i,enumerable:a},u?W9(G9(u),s):s}}),Tb=function(t){if(typeof t!="function")throw new TypeError(t+" is not a function");return t},jQ=qp(function(t,e){var n,r,o,i,a,u,s,l=Function.prototype.apply,c=Function.prototype.call,f=Object.create,p=Object.defineProperty,d=Object.defineProperties,y=Object.prototype.hasOwnProperty,g={configurable:!0,enumerable:!1,writable:!0};n=function(v,m){var h;return Tb(m),y.call(this,"__ee__")?h=this.__ee__:(h=g.value=f(null),p(this,"__ee__",g),g.value=null),h[v]?typeof h[v]=="object"?h[v].push(m):h[v]=[h[v],m]:h[v]=m,this},r=function(v,m){var h,b;return Tb(m),b=this,n.call(this,v,h=function(){o.call(b,v,h),l.call(m,this,arguments)}),h.__eeOnceListener__=m,this},o=function(v,m){var h,b,w,E;if(Tb(m),!y.call(this,"__ee__"))return this;if(!(h=this.__ee__)[v])return this;if(typeof(b=h[v])=="object")for(E=0;w=b[E];++E)w!==m&&w.__eeOnceListener__!==m||(b.length===2?h[v]=b[E?0:1]:b.splice(E,1));else b!==m&&b.__eeOnceListener__!==m||delete h[v];return this},i=function(v){var m,h,b,w,E;if(y.call(this,"__ee__")&&(w=this.__ee__[v]))if(typeof w=="object"){for(h=arguments.length,E=new Array(h-1),m=1;m<h;++m)E[m-1]=arguments[m];for(w=w.slice(),m=0;b=w[m];++m)l.call(b,this,E)}else switch(arguments.length){case 1:c.call(w,this);break;case 2:c.call(w,this,arguments[1]);break;case 3:c.call(w,this,arguments[1],arguments[2]);break;default:for(h=arguments.length,E=new Array(h-1),m=1;m<h;++m)E[m-1]=arguments[m];l.call(w,this,E)}},a={on:n,once:r,off:o,emit:i},u={on:r0(n),once:r0(r),off:r0(o),emit:r0(i)},s=d({},u),t.exports=e=function(v){return v==null?f(s):d(Object(v),u)},e.methods=a});function o0(t){var e=p9.get(t);return e==null&&(e=jQ(),p9.set(t,e)),e}var Ev=new WeakMap;function q9(t,e){var n=Ev.get(t);n==null&&(n=new Set,Ev.set(t,n)),n.add(e)}function NQ(t){return Ev.get(t)||new Set}function IQ(t){Ev.set(t,new Set)}function _D(t){var e=A.getTextarea(t).$textAreaContainer,n=e.width(),r=e.height(),o=e.offset();return{top:o.top,left:o.left,width:n,height:r}}function TD(t){var e={top:"0",left:"0"},n=t.selection;if(n==null)return e;var r=_D(t);if(r==null)return e;var o=r.top,i=r.left,a=r.width,u=r.height,s=A.toDOMRange(t,n).getClientRects()[0];if(s==null)return e;s.width;var l=s.height,c={},f=s.top-o,p=s.left-i;if(p>a/2){var d=a-p;c.right=d+5+"px"}else c.left=p+5+"px";if(f>u/2){var y=u-f;c.bottom=y+5+"px"}else{var g=f+l;g<0&&(g=0),c.top=g+5+"px"}return c}function PD(t,e,n){n===void 0&&(n="modal");var r={top:"0",left:"0"};if(t.selection==null)return r;var o=ct.isElement(e)&&t.isVoid(e),i=ct.isElement(e)&&t.isInline(e),a=mv.get(e);if(a==null)return r;var u=a.getBoundingClientRect(),s=u.top,l=u.left,c=u.height,f=u.width;if(o){var p=function(C){var O=[];O.push(C);for(var F=0;O.length>0;){var R=O.pop();if(R==null||++F>1e4)break;var H=R.nodeName;if(R.nodeType===1){var M=H.toLowerCase();if(SJ.includes(M)||M==="iframe"||M==="video")return R;var K=R.children||[],U=K.length;if(U)for(var W=U-1;W>=0;W--)O.push(K[W])}}return null}(a);if(p!=null){var d=p.getBoundingClientRect();s=d.top,c=d.height}}var y=_D(t);if(y==null)return r;var g,v=y.top,m=y.left,h=y.width,b=y.height,w={},E=s-v,x=l-m;if(n==="bar")return w.left=x+"px",E>40?w.bottom=b-E+5+"px":w.top=E+c+5+"px",w;if(n==="modal")return o?i?x>(h-f)/2?w.right=h-x+5+"px":w.left=x+f+5+"px":w.left="20px":w.left=x+"px",o?((g=E)<0&&(g=0),w.top=g+"px"):E>(b-c)/2?w.bottom=b-E+5+"px":((g=E+c)<0&&(g=0),w.top=g+5+"px"),w;throw new Error("type '"+n+"' is invalid")}function KE(t,e){Nr(function(){var n=_D(t);if(n!=null){var r,o=n.top,i=n.left,a=n.width,u=n.height,s=e.offset(),l=s.top,c=s.left,f=e.width(),p=e.height(),d=l-o,y=c-i,g=e.attr("style");if(g.indexOf("top")>=0&&(r=d+p-u)>0){var v=e.css("top"),m=parseInt(v.toString())-r;m<0&&(m=0),e.css("top",m+"px")}if(g.indexOf("bottom")>=0&&l<0){var h=e.css("bottom"),b=parseInt(h.toString())-Math.abs(l);e.css("bottom",b+"px")}if(g.indexOf("left")>=0&&(r=y+f-a)>0){var w=e.css("left"),E=parseInt(w.toString())-r;E<0&&(E=0),e.css("left",E+"px")}if(g.indexOf("right")>=0&&c<0){var x=e.css("right"),C=parseInt(x.toString())-Math.abs(c);e.css("right",C+"px")}}})}var LQ=nm("slice"),RQ=xe("species"),Pb=X.Array,MQ=Math.max;De({target:"Array",proto:!0,forced:!LQ},{slice:function(t,e){var n,r,o,i=Ra(this),a=ms(i),u=Wl(t,a),s=Wl(e===void 0?a:e,a);if(cv(i)&&(n=i.constructor,(tm(n)&&(n===Pb||cv(n.prototype))||ce(n)&&(n=n[RQ])===null)&&(n=void 0),n===Pb||n===void 0))return TN(i,u,s);for(r=new(n===void 0?Pb:n)(MQ(s-u,0)),o=0;u<s;u++,o++)u in i&&Xd(r,o,i[u]);return r.length=o,r}});var zQ=Yp.f,K9=pt("".startsWith),$Q=pt("".slice),HQ=Math.min,JN=uD("startsWith"),VQ=!JN&&!!function(){var t=zQ(String.prototype,"startsWith");return t&&!t.writable}();De({target:"String",proto:!0,forced:!VQ&&!JN},{startsWith:function(t){var e=ue(jr(this));aD(t);var n=pc(HQ(arguments.length>1?arguments[1]:void 0,e.length)),r=ue(t);return K9?K9(e,r,n):$Q(e,n,n+r.length)===r}});var Ls=Object.assign,Y9=Object.defineProperty,UQ=pt([].concat),X9=!Ls||Zt(function(){if(an&&Ls({b:1},Ls(Y9({},"a",{enumerable:!0,get:function(){Y9(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(o){e[o]=o}),Ls({},t)[n]!=7||bl(Ls({},e)).join("")!=r})?function(t,e){for(var n=La(t),r=arguments.length,o=1,i=sN.f,a=iN.f;r>o;)for(var u,s=Q1(arguments[o++]),l=i?UQ(bl(s),i(s)):bl(s),c=l.length,f=0;c>f;)u=l[f++],an&&!Ut(a,s,u)||(n[u]=s[u]);return n}:Ls;De({target:"Object",stat:!0,forced:Object.assign!==X9},{assign:X9});var WQ=["props","attrs","style","dataset","on","hook"];function QN(t){var e=t.data,n=e===void 0?{}:e,r=t.children,o=r===void 0?[]:r;Object.keys(n).forEach(function(i){var a,u,s=n[i];if(i!=="key"){if(!WQ.includes(i)){if(i.startsWith("data-")){var l=i.slice(5);return l=gK(l),function(c,f){c.data==null&&(c.data={});var p=c.data;p.dataset==null&&(p.dataset={}),Object.assign(p.dataset,f)}(t,((a={})[l]=s,a)),void delete n[i]}(function(c,f){c.data==null&&(c.data={});var p=c.data;p.props==null&&(p.props={}),Object.assign(p.props,f)})(t,(u={},u[i]=s,u)),delete n[i]}}else t.key=s}),o.length>0&&o.forEach(function(i){typeof i!="string"&&QN(i)})}var YE=[],tI={};function GQ(t,e,n){return bt(n.isInline(t)?"span":"div",null,e)}function Z9(t,e){return e===void 0&&(e=!1),bt("span",{"data-slate-string":!0},e?t+`
  57. `:t)}function jb(t,e){return t===void 0&&(t=0),e===void 0&&(e=!1),bt("span",{"data-slate-zero-width":e?"n":"z","data-slate-length":t},"\uFEFF",e?bt("br",null):null)}function XE(t,e,n,r){return tp.set(t,e),Yl.set(t,n),ct.isElement(t)?function(o,i){var a,u=A.findKey(i,o),s=i.isInline(o),l=D.isVoid(i,o),c=GN(u.id),f={id:c,key:u.id,"data-slate-node":"element","data-slate-inline":s},p=o.type,d=o.children,y=d===void 0?[]:d,g=function(E){return tI[E]||GQ}(p);a=l?null:y.map(function(E,x){return XE(E,x,o,i)});var v=g(o,a,i);if(l){f["data-slate-void"]=!0;var m=s?"span":"div",h=Ht(Q.texts(o),1),b=Ht(h[0],1)[0],w=bt(m,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},XE(b,0,o,i));v=bt(m,{style:{position:"relative"}},v,w),tp.set(b,0),Yl.set(b,o)}return v.data==null&&(v.data={}),Object.assign(v.data,f),l||s||(v=function(E,x){var C=x;return YE.forEach(function(O){C=O(E,x)}),C}(o,v)),Nr(function(){var E=RE(c);E!=null&&(LE.set(u,E),mv.set(o,E),vv.set(E,o))}),v}(t,r):function(o,i,a){if(o.text==null)throw new Error("Current node is not slate Text "+JSON.stringify(o));var u=A.findKey(a,o),s=a.getConfig().decorate;if(s==null)throw new Error("Can not get config.decorate");var l=A.findPath(a,o),c=s([o,l]),f=ot.decorations(o,c),p=f.map(function(g,v){var m=function(h,b,w,E,x){b===void 0&&(b=!1);var C=h.text,O=A.findPath(x,w),F=j.parent(O);if(D.isEditor(E))throw new Error("Text node "+JSON.stringify(w)+" parent is Editor");return x.isVoid(E)?jb(Q.string(E).length):C!==""||E.children[E.children.length-1]!==w||x.isInline(E)||D.string(x,F)!==""?C===""?jb():b&&C.slice(-1)===`
  58. `?Z9(C,!0):Z9(C):jb(0,!0)}(g,v===f.length-1,o,i,a);return m=function(h,b){var w=b;return YE.forEach(function(E){w=E(h,w)}),w}(g,m),bt("span",{"data-slate-leaf":!0},m)}),d=function(g){return"w-e-text-"+g}(u.id),y=bt("span",{"data-slate-node":"text",id:d,key:u.id},p);return Nr(function(){var g=RE(d);g!=null&&(LE.set(u,g),mv.set(o,g),vv.set(g,o))}),y}(t,n,r)}function qQ(t,e){var n,r=t.$scroll,o=function(g){return"w-e-textarea-"+g}(t.id),i=e.getConfig(),a=i.readOnly,u=i.autoFocus,s=function(g,v){return v===void 0&&(v=!1),Ul("div#"+g,{props:{contentEditable:!v}})}(o,a),l=e.children||[];s.children=l.map(function(g,v){var m=XE(g,v,e,e);return QN(m),m});var c=c9.get(t);if(c==null&&(c=!0),c){var f=function(g,v){return B(`<div
  59. id="`+g+`"
  60. data-slate-editor
  61. data-slate-node="value"
  62. suppressContentEditableWarning
  63. role="textarea"
  64. spellCheck="true"
  65. autoCorrect="true"
  66. autoCapitalize="true"
  67. ></div>`)}(o);r.append(f),t.$textArea=f,n=f[0],(d=Lq([Mq,Vq,Wq,zq,Hq,Rq]))(n,s),c9.set(t,!1),f9.set(t,d)}else{var p=d9.get(t),d=f9.get(t);if(p==null||d==null)return;n=p.elm,d(p,s)}if(n!=null||(n=RE(o))!=null){if((c?u:e.isFocused())&&n.focus({preventScroll:!0}),c){var y=DD(n);y&&SN.set(e,y)}ED.set(e,n),mv.set(e,n),vv.set(n,e),d9.set(t,s)}}function J9(t){return typeof t=="object"&&t!=null&&t.nodeType===1}function Q9(t,e){return(!e||t!=="hidden")&&t!=="visible"&&t!=="clip"}function Nb(t,e){if(t.clientHeight<t.scrollHeight||t.clientWidth<t.scrollWidth){var n=getComputedStyle(t,null);return Q9(n.overflowY,e)||Q9(n.overflowX,e)||function(r){var o=function(i){if(!i.ownerDocument||!i.ownerDocument.defaultView)return null;try{return i.ownerDocument.defaultView.frameElement}catch{return null}}(r);return!!o&&(o.clientHeight<r.scrollHeight||o.clientWidth<r.scrollWidth)}(t)}return!1}function i0(t,e,n,r,o,i,a,u){return i<t&&a>e||i>t&&a<e?0:i<=t&&u<=n||a>=e&&u>=n?i-t-r:a>e&&u<n||i<t&&u>n?a-e+o:0}function tO(t,e){var n=window,r=e.scrollMode,o=e.block,i=e.inline,a=e.boundary,u=e.skipOverflowHiddenElements,s=typeof a=="function"?a:function(Dt){return Dt!==a};if(!J9(t))throw new TypeError("Invalid target");for(var l=document.scrollingElement||document.documentElement,c=[],f=t;J9(f)&&s(f);){if((f=f.parentElement)===l){c.push(f);break}f!=null&&f===document.body&&Nb(f)&&!Nb(document.documentElement)||f!=null&&Nb(f,u)&&c.push(f)}for(var p=n.visualViewport?n.visualViewport.width:innerWidth,d=n.visualViewport?n.visualViewport.height:innerHeight,y=window.scrollX||pageXOffset,g=window.scrollY||pageYOffset,v=t.getBoundingClientRect(),m=v.height,h=v.width,b=v.top,w=v.right,E=v.bottom,x=v.left,C=o==="start"||o==="nearest"?b:o==="end"?E:b+m/2,O=i==="center"?x+h/2:i==="end"?w:x,F=[],R=0;R<c.length;R++){var H=c[R],M=H.getBoundingClientRect(),K=M.height,U=M.width,W=M.top,q=M.right,nt=M.bottom,lt=M.left;if(r==="if-needed"&&b>=0&&x>=0&&E<=d&&w<=p&&b>=W&&E<=nt&&x>=lt&&w<=q)return F;var st=getComputedStyle(H),at=parseInt(st.borderLeftWidth,10),k=parseInt(st.borderTopWidth,10),S=parseInt(st.borderRightWidth,10),P=parseInt(st.borderBottomWidth,10),$=0,Y=0,V="offsetWidth"in H?H.offsetWidth-H.clientWidth-at-S:0,it="offsetHeight"in H?H.offsetHeight-H.clientHeight-k-P:0;if(l===H)$=o==="start"?C:o==="end"?C-d:o==="nearest"?i0(g,g+d,d,k,P,g+C,g+C+m,m):C-d/2,Y=i==="start"?O:i==="center"?O-p/2:i==="end"?O-p:i0(y,y+p,p,at,S,y+O,y+O+h,h),$=Math.max(0,$+g),Y=Math.max(0,Y+y);else{$=o==="start"?C-W-k:o==="end"?C-nt+P+it:o==="nearest"?i0(W,nt,K,k,P+it,C,C+m,m):C-(W+K/2)+it/2,Y=i==="start"?O-lt-at:i==="center"?O-(lt+U/2)+V/2:i==="end"?O-q+S+V:i0(lt,q,U,at,S+V,O,O+h,h);var gt=H.scrollLeft,vt=H.scrollTop;C+=vt-($=Math.max(0,Math.min(vt+$,H.scrollHeight-K+it))),O+=gt-(Y=Math.max(0,Math.min(gt+Y,H.scrollWidth-U+V)))}F.push({el:H,top:$,left:Y})}return F}function eO(t){return t===Object(t)&&Object.keys(t).length!==0}function wr(t,e){return ns(e)&&A.hasDOMNode(t,e,{editable:!0})}function nO(t,e){if(t.getConfig().readOnly)return!1;var n=sl(t,e)&&A.toSlateNode(t,e);return D.isVoid(t,n)}function sl(t,e){return ns(e)&&A.hasDOMNode(t,e)}function eI(t,e,n){n===void 0&&(n=!1);var r=e.selection,o=e.getConfig(),i=A.findDocumentOrShadowRoot(e).getSelection();if(i&&(!t.isComposing||n)&&e.isFocused()){var a=i.type!=="None";if(r||a){var u=ED.get(e),s=!1;if(u.contains(i.anchorNode)&&u.contains(i.focusNode)&&(s=!0),a&&s&&r){var l=A.toSlateRange(e,i,{exactMatch:!0,suppressThrow:!0});if(l&&L.equals(l,r)){var c=!0;if(L.isCollapsed(r)){var f=i.anchorNode,p=i.anchorOffset;if(f===u){var d=u.childNodes,y=void 0;(y=d[p])&&y.matches("table")&&(c=!1),(y=d[p-1])&&y.matches("table")&&(c=!1)}}if(c)return}}if(!r||A.hasRange(e,r)){t.isUpdatingSelection=!0;var g=r&&A.toDOMRange(e,r);if(g){L.isBackward(r)?i.setBaseAndExtent(g.endContainer,g.endOffset,g.startContainer,g.startOffset):i.setBaseAndExtent(g.startContainer,g.startOffset,g.endContainer,g.endOffset);var v=g.startContainer.parentElement;if(!v.closest("[data-slate-spacer]")){v.getBoundingClientRect=g.getBoundingClientRect.bind(g);var m=document.body;(function(h,b){var w=!h.ownerDocument.documentElement.contains(h);if(eO(b)&&typeof b.behavior=="function")return b.behavior(w?[]:tO(h,b));if(!w){var E=function(x){return x===!1?{block:"end",inline:"nearest"}:eO(x)?x:{block:"start",inline:"nearest"}}(b);(function(x,C){C===void 0&&(C="auto");var O="scrollBehavior"in document.body.style;x.forEach(function(F){var R=F.el,H=F.top,M=F.left;R.scroll&&O?R.scroll({top:H,left:M,behavior:C}):(R.scrollTop=H,R.scrollLeft=M)})})(tO(h,E),E.behavior)}})(v,{scrollMode:"if-needed",boundary:o.scroll?u.parentElement:m,block:"end",behavior:"smooth"}),delete v.getBoundingClientRect}}else i.removeAllRanges();setTimeout(function(){g&&hd&&u.focus(),t.isUpdatingSelection=!1})}else e.selection=A.toSlateRange(e,i,{exactMatch:!1,suppressThrow:!1})}}}var Ib=new WeakMap,rO=new WeakMap,KQ={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"},YQ={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"},XQ={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},ye=function(t){var e=KQ[t],n=YQ[t],r=XQ[t],o=e&&Py(e),i=n&&Py(n),a=r&&Py(r);return function(u){return!(!o||!o(u))||!!(ME&&i&&i(u))||!(ME||!a||!a(u))}},we={isBold:ye("bold"),isCompose:ye("compose"),isMoveBackward:ye("moveBackward"),isMoveForward:ye("moveForward"),isDeleteBackward:ye("deleteBackward"),isDeleteForward:ye("deleteForward"),isDeleteLineBackward:ye("deleteLineBackward"),isDeleteLineForward:ye("deleteLineForward"),isDeleteWordBackward:ye("deleteWordBackward"),isDeleteWordForward:ye("deleteWordForward"),isExtendBackward:ye("extendBackward"),isExtendForward:ye("extendForward"),isExtendLineBackward:ye("extendLineBackward"),isExtendLineForward:ye("extendLineForward"),isItalic:ye("italic"),isMoveLineBackward:ye("moveLineBackward"),isMoveLineForward:ye("moveLineForward"),isMoveWordBackward:ye("moveWordBackward"),isMoveWordForward:ye("moveWordForward"),isRedo:ye("redo"),isSplitBlock:ye("splitBlock"),isTransposeCharacter:ye("transposeCharacter"),isUndo:ye("undo"),isTab:ye("tab"),isSelectAll:ye("selectAll")};function He(t){t.preventDefault()}var ZQ={beforeinput:function(t,e,n){var r=t,o=n.getConfig().readOnly;if(nf&&!o&&wr(n,r.target)){var i=n.selection,a=r.inputType,u=r.dataTransfer||r.data||void 0;if(a!=="insertCompositionText"&&a!=="deleteCompositionText"){if(r.preventDefault(),!a.startsWith("delete")||a.startsWith("deleteBy")){var s=Ht(r.getTargetRanges(),1)[0];if(s){var l=A.toSlateRange(n,s,{exactMatch:!1,suppressThrow:!1});i&&L.equals(i,l)||N.select(n,l)}}if(i&&L.isExpanded(i)&&a.startsWith("delete")){var c=a.endsWith("Backward")?"backward":"forward";D.deleteFragment(n,{direction:c})}else switch(a){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":D.deleteFragment(n);break;case"deleteContent":case"deleteContentForward":D.deleteForward(n);break;case"deleteContentBackward":D.deleteBackward(n);break;case"deleteEntireSoftLine":D.deleteBackward(n,{unit:"line"}),D.deleteForward(n,{unit:"line"});break;case"deleteHardLineBackward":D.deleteBackward(n,{unit:"block"});break;case"deleteSoftLineBackward":D.deleteBackward(n,{unit:"line"});break;case"deleteHardLineForward":D.deleteForward(n,{unit:"block"});break;case"deleteSoftLineForward":D.deleteForward(n,{unit:"line"});break;case"deleteWordBackward":D.deleteBackward(n,{unit:"word"});break;case"deleteWordForward":D.deleteForward(n,{unit:"word"});break;case"insertLineBreak":case"insertParagraph":D.insertBreak(n);break;case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":if(a==="insertFromPaste"&&!vb.get(n))break;u instanceof DataTransfer?n.insertData(u):typeof u=="string"&&D.insertText(n,u)}}}},blur:function(t,e,n){var r=t,o=e.isUpdatingSelection,i=e.latestElement;if(!n.getConfig().readOnly&&!o&&wr(n,r.target)){var a=A.findDocumentOrShadowRoot(n);if(i!==a.activeElement){var u=r.relatedTarget;if(!(u===A.toDOMNode(n,n)||Vr(u)&&u.hasAttribute("data-slate-spacer"))){if(u!=null&&ns(u)&&A.hasDOMNode(n,u)){var s=A.toSlateNode(n,u);if(ct.isElement(s)&&!n.isVoid(s))return}if(ef){var l=a.getSelection();l==null||l.removeAllRanges()}Pu.delete(n)}}}},focus:function(t,e,n){var r=A.toDOMNode(n,n),o=A.findDocumentOrShadowRoot(n);e.latestElement=o.activeElement,hd&&t.target!==r?r.focus():Pu.set(n,!0)},click:function(t,e,n){if(!n.getConfig().readOnly&&sl(n,t.target)&&ns(t.target)){var r=A.toSlateNode(n,t.target),o=A.findPath(n,r);if(D.hasPath(n,o)&&Q.get(n,o)===r){var i=D.start(n,o),a=D.end(n,o),u=D.void(n,{at:i}),s=D.void(n,{at:a});if(u&&s&&j.equals(u[1],s[1])){var l=D.range(n,i);N.select(n,l)}}}},compositionstart:function(t,e,n){if(wr(n,t.target)){var r=n.selection;if(r&&L.isExpanded(r)&&(D.deleteFragment(n),Promise.resolve().then(function(){eI(e,n,!0)})),r&&L.isCollapsed(r)){var o=A.toDOMRange(n,r).startContainer,i=o.textContent||"";Ib.set(n,i),rO.set(n,o)}e.isComposing=!0,function(a,u){var s;u.getConfig().placeholder&&u.isEmpty()&&a.showPlaceholder&&((s=a.$placeholder)===null||s===void 0||s.hide(),a.showPlaceholder=!1)}(e,n)}},compositionend:function(t,e,n){var r=t;if(wr(n,r.target)){e.isComposing=!1;var o=n.selection;if(o!=null){(zE||hd)&&A.cleanExposedTexNodeInSelectionBlock(n);for(var i=L.isBackward(o)?o.focus:o.anchor,a=Ht(D.node(n,[i.path[0]]),1)[0],u=0;u<i.path.length;u++){var s=Ht(D.node(n,i.path.slice(0,u+1)),1)[0];if(ct.isElement(s)&&((ef||hd)&&s.type==="link"||s.type==="code")){A.setNewKey(a);break}}var l=r.data;if(l){if(n.getConfig().maxLength){var c=A.getLeftLengthOfMaxLength(n);c<l.length?(A.toDOMRange(n,o).startContainer.textContent=Ib.get(n)||"",c>0&&D.insertText(n,l.slice(0,c)),e.changeViewState()):D.insertText(n,l)}else D.insertText(n,l);ef||setTimeout(function(){var f=n.selection;if(f!=null){var p=rO.get(n);p!=null&&A.toDOMRange(n,f).startContainer!==p&&(p.textContent=Ib.get(n)||"")}})}}}},compositionupdate:function(t,e,n){wr(n,t.target)&&(e.isComposing=!0)},keydown:function(t,e,n){var r=t,o=n.selection;if(!n.getConfig().readOnly&&!e.isComposing&&wr(n,r.target)){if(function(a,u){var s=am.get(a),l=s&&s.getMenus(),c=gv.get(a),f=c&&c.getMenus(),p=Cr(Cr({},l),f);for(var d in p){var y=p[d],g=y.hotkey;if(g&&yK(g,u)&&!y.isDisabled(a)){var v=y.getValue(a);y.exec(a,v)}}}(n,r),we.isTab(r))return He(r),void n.handleTab();if(we.isRedo(r))return He(r),void(typeof n.redo=="function"&&n.redo());if(we.isUndo(r))return He(r),void(typeof n.undo=="function"&&n.undo());if(we.isMoveLineBackward(r))return He(r),void N.move(n,{unit:"line",reverse:!0});if(we.isMoveLineForward(r))return He(r),void N.move(n,{unit:"line"});if(we.isExtendLineBackward(r))return He(r),void N.move(n,{unit:"line",edge:"focus",reverse:!0});if(we.isExtendLineForward(r))return He(r),void N.move(n,{unit:"line",edge:"focus"});if(we.isMoveBackward(r))return He(r),void(o&&L.isCollapsed(o)?N.move(n,{reverse:!0}):N.collapse(n,{edge:"start"}));if(we.isMoveForward(r))return He(r),void(o&&L.isCollapsed(o)?N.move(n):N.collapse(n,{edge:"end"}));if(we.isMoveWordBackward(r))return He(r),o&&L.isExpanded(o)&&N.collapse(n,{edge:"focus"}),void N.move(n,{unit:"word",reverse:!0});if(we.isMoveWordForward(r))return He(r),o&&L.isExpanded(o)&&N.collapse(n,{edge:"focus"}),void N.move(n,{unit:"word"});if(we.isSelectAll(r))return He(r),void n.selectAll();if(nf){if((zE||ef)&&o&&(we.isDeleteBackward(r)||we.isDeleteForward(r))&&L.isCollapsed(o)){var i=Q.parent(n,o.anchor.path);if(ct.isElement(i)&&D.isVoid(n,i)&&D.isInline(n,i))return r.preventDefault(),void N.delete(n,{unit:"block"})}}else{if(we.isBold(r)||we.isItalic(r)||we.isTransposeCharacter(r))return void He(r);if(we.isSplitBlock(r))return He(r),void D.insertBreak(n);if(we.isDeleteBackward(r))return He(r),void(o&&L.isExpanded(o)?D.deleteFragment(n,{direction:"backward"}):D.deleteBackward(n));if(we.isDeleteForward(r))return He(r),void(o&&L.isExpanded(o)?D.deleteFragment(n,{direction:"forward"}):D.deleteForward(n));if(we.isDeleteLineBackward(r))return He(r),void(o&&L.isExpanded(o)?D.deleteFragment(n,{direction:"backward"}):D.deleteBackward(n,{unit:"line"}));if(we.isDeleteLineForward(r))return He(r),void(o&&L.isExpanded(o)?D.deleteFragment(n,{direction:"forward"}):D.deleteForward(n,{unit:"line"}));if(we.isDeleteWordBackward(r))return He(r),void(o&&L.isExpanded(o)?D.deleteFragment(n,{direction:"backward"}):D.deleteBackward(n,{unit:"word"}));if(we.isDeleteWordForward(r))return He(r),void(o&&L.isExpanded(o)?D.deleteFragment(n,{direction:"forward"}):D.deleteForward(n,{unit:"word"}))}}},keypress:function(t,e,n){if(!nf&&!n.getConfig().readOnly&&wr(n,t.target)){t.preventDefault();var r=t.key;D.insertText(n,r)}},copy:function(t,e,n){var r=t;if(wr(n,r.target)){r.preventDefault();var o=r.clipboardData;o!=null&&n.setFragmentData(o)}},cut:function(t,e,n){var r=t,o=n.selection;if(!n.getConfig().readOnly&&wr(n,r.target)){r.preventDefault();var i=r.clipboardData;if(i!=null&&(n.setFragmentData(i),o))if(L.isExpanded(o))D.deleteFragment(n);else{var a=Q.parent(n,o.anchor.path);D.isVoid(n,a)&&N.delete(n)}}},paste:function(t,e,n){vb.set(n,!0);var r=t;if(!n.getConfig().readOnly&&wr(n,r.target)){var o=n.getConfig().customPaste;if(o&&o(n,r)===!1)return void vb.set(n,!1);if(!nf||function(a){return a.clipboardData&&a.clipboardData.getData("text/plain")!==""&&a.clipboardData.types.length===1}(r)){r.preventDefault();var i=r.clipboardData;i!=null&&n.insertData(i)}}},dragover:function(t,e,n){if(sl(n,t.target)){var r=A.toSlateNode(n,t.target);D.isVoid(n,r)&&t.preventDefault()}},dragstart:function(t,e,n){var r=t;if(sl(n,r.target)&&!n.getConfig().readOnly){var o=A.toSlateNode(n,r.target),i=A.findPath(n,o);if(D.isVoid(n,o)||D.void(n,{at:i,voids:!0})){var a=D.range(n,i);N.select(n,a)}var u=r.dataTransfer;u!=null&&(e.isDraggingInternally=!0,n.setFragmentData(u))}},dragend:function(t,e,n){var r=t;n.getConfig().readOnly||e.isDraggingInternally&&sl(n,r.target)&&(e.isDraggingInternally=!1)},drop:function(t,e,n){var r=t,o=r.dataTransfer;if(!n.getConfig().readOnly&&sl(n,r.target)&&o!=null&&!(nf&&ef&&o.files.length>0)){r.preventDefault();var i=n.selection,a=A.findEventRange(n,r);N.select(n,a),e.isDraggingInternally&&(i&&N.delete(n,{at:i}),e.isDraggingInternally=!1),n.insertData(o),n.isFocused()||n.focus()}}},JQ=1,QQ=function(){function t(e){var n=this;this.id=JQ++,this.$textArea=null,this.$progressBar=B('<div class="w-e-progress-bar"></div>'),this.$maxLengthInfo=B('<div class="w-e-max-length-info"></div>'),this.isComposing=!1,this.isUpdatingSelection=!1,this.isDraggingInternally=!1,this.latestElement=null,this.showPlaceholder=!1,this.$placeholder=null,this.latestEditorSelection=null,this.onDOMSelectionChange=Ju(function(){var a=n.editorInstance;(function(u,s){var l=u.isComposing,c=u.isUpdatingSelection,f=u.isDraggingInternally;if(!(s.getConfig().readOnly||l||c||f)){var p=A.findDocumentOrShadowRoot(s),d=p.activeElement,y=A.toDOMNode(s,s),g=p.getSelection();if(d===y?(u.latestElement=d,Pu.set(s,!0)):Pu.delete(s),!g)return N.deselect(s);var v=g.anchorNode,m=g.focusNode,h=wr(s,v)||nO(s,v),b=wr(s,m)||nO(s,m);if(h&&b){var w=A.toSlateRange(s,g,{exactMatch:!1,suppressThrow:!1});N.select(s,w)}else N.deselect(s)}})(n,a)},100);var r=B(e);if(r.length===0)throw new Error("Cannot find textarea DOM by selector '"+e+"'");this.$box=r;var o=B('<div class="w-e-text-container"></div>');o.append(this.$progressBar),o.append(this.$maxLengthInfo),r.append(o);var i=B('<div class="w-e-scroll"></div>');o.append(i),this.$scroll=i,this.$textAreaContainer=o,Nr(function(){var a=n.editorInstance,u=A.getWindow(a);u.document.addEventListener("selectionchange",n.onDOMSelectionChange),a.on("destroyed",function(){u.document.removeEventListener("selectionchange",n.onDOMSelectionChange)}),o.on("click",function(){return a.hidePanelOrModal()}),a.on("change",n.changeViewState.bind(n));var s=a.getConfig().onChange;s&&a.on("change",function(){return s(a)}),n.onFocusAndOnBlur(),a.on("change",n.changeMaxLengthInfo.bind(n)),n.bindEvent()})}return Object.defineProperty(t.prototype,"editorInstance",{get:function(){var e=jE.get(this);if(e==null)throw new Error("Can not get editor instance");return e},enumerable:!1,configurable:!0}),t.prototype.bindEvent=function(){var e=this,n=this.$textArea,r=this.$scroll,o=this.editorInstance;n!=null&&(V5(ZQ,function(i,a){n.on(a,function(u){i(u,e,o)})}),o.getConfig().scroll&&(r.css("overflow-y","auto"),r.on("scroll",Ju(function(){o.emit("scroll")},100))))},t.prototype.onFocusAndOnBlur=function(){var e=this,n=this.editorInstance,r=n.getConfig(),o=r.onBlur,i=r.onFocus;this.latestEditorSelection=n.selection,n.on("change",function(){e.latestEditorSelection==null&&n.selection!=null?setTimeout(function(){return i&&i(n)}):e.latestEditorSelection!=null&&n.selection==null&&setTimeout(function(){return o&&o(n)}),e.latestEditorSelection=n.selection})},t.prototype.changeMaxLengthInfo=function(){var e=this.editorInstance,n=e.getConfig().maxLength;if(n){var r=n-A.getLeftLengthOfMaxLength(e);this.$maxLengthInfo[0].innerHTML=r+"/"+n}},t.prototype.changeProgress=function(e){var n=this.$progressBar;n.css("width",e+"%"),e>=100&&setTimeout(function(){n.hide(),n.css("width","0"),n.show()},1e3)},t.prototype.changeViewState=function(){var e=this,n=this.editorInstance;qQ(this,n),function(r,o){var i,a=o.getConfig().placeholder;if(a){var u=o.isEmpty();if(u&&!r.showPlaceholder&&!r.isComposing){if(r.$placeholder==null){var s=B('<div class="w-e-text-placeholder">'+a+"</div>");r.$textAreaContainer.append(s),r.$placeholder=s}return r.$placeholder.show(),void(r.showPlaceholder=!0)}!u&&r.showPlaceholder&&((i=r.$placeholder)===null||i===void 0||i.hide(),r.showPlaceholder=!1)}}(this,n),Nr(function(){eI(e,n)})},t.prototype.destroy=function(){this.$textAreaContainer.remove()},t}();function jD(t){t.removeAttr("width"),t.removeAttr("height"),t.removeAttr("fill"),t.removeAttr("class"),t.removeAttr("t"),t.removeAttr("p-id");var e=t.children();e.length&&jD(e)}function ND(){return B('<svg viewBox="0 0 1024 1024"><path d="M498.7 655.8l-197.6-268c-8.1-10.9-0.3-26.4 13.3-26.4h395.2c13.6 0 21.4 15.4 13.3 26.4l-197.6 268c-6.6 9-20 9-26.6 0z"></path></svg>')}function nI(){return B('<div class="w-e-bar-divider"></div>')}function rI(t,e,n,r,o){if(o===void 0&&(o=!1),e){if(r){var i=ME?"cmd":"ctrl";r=r.replace("mod",i)}if(o)r&&(t.attr("data-tooltip",r),t.addClass("w-e-menu-tooltip-v5"),t.addClass("tooltip-right"));else{var a=r?n+`
  68. `+r:n;t.attr("data-tooltip",a),t.addClass("w-e-menu-tooltip-v5")}}}mD("match",function(t,e,n){return[function(r){var o=jr(this),i=r==null?void 0:ts(r,t);return i?Ut(i,r,o):new RegExp(r)[t](ue(o))},function(r){var o=Le(this),i=ue(r),a=n(e,o,i);if(a.done)return a.value;if(!o.global)return Jd(o,i);var u=o.unicode;o.lastIndex=0;for(var s,l=[],c=0;(s=Jd(o,i))!==null;){var f=ue(s[0]);l[c]=f,f===""&&(o.lastIndex=yD(i,pc(o.lastIndex),u)),c++}return c===0?null:l}]});var ID=function(){function t(e,n,r){var o=this;r===void 0&&(r=!1),this.$elem=B('<div class="w-e-bar-item"></div>'),this.$button=B('<button type="button"></button>'),this.disabled=!1,this.menu=n;var i=n.tag,a=n.width;if(i!=="button")throw new Error("Invalid tag '"+i+"', expected 'button'");var u=n.title,s=n.hotkey,l=s===void 0?"":s,c=n.iconSvg,f=c===void 0?"":c,p=this.$button;if(f){var d=B(f);jD(d),p.append(d)}else p.text(u);rI(p,f,u,l,r),r&&f&&p.append(B('<span class="title">'+u+"</span>")),a&&p.css("width",a+"px"),p.attr("data-menu-key",e),this.$elem.append(p),Nr(function(){return o.init()})}return t.prototype.init=function(){var e=this;this.setActive(),this.setDisabled(),this.$button.on("click",function(n){n.preventDefault(),rr(e).hidePanelOrModal(),e.disabled||(e.exec(),e.onButtonClick())})},t.prototype.exec=function(){var e=rr(this),n=this.menu,r=n.getValue(e);n.exec(e,r)},t.prototype.setActive=function(){var e=rr(this),n=this.$button,r="active";this.menu.isActive(e)?n.addClass(r):n.removeClass(r)},t.prototype.setDisabled=function(){var e=rr(this),n=this.$button,r=this.menu.isDisabled(e);(e.selection==null||e.isDisabled())&&(r=!0),this.menu.alwaysEnable&&(r=!1);var o="disabled";r?n.addClass(o):n.removeClass(o),this.disabled=r},t.prototype.changeMenuState=function(){this.setActive(),this.setDisabled()},t}(),ttt=function(t){function e(n,r,o){return o===void 0&&(o=!1),t.call(this,n,r,o)||this}return gc(e,t),e.prototype.onButtonClick=function(){},e}(ID),LD=function(){function t(e){this.isShow=!1,this.showTime=0,this.record(e)}return t.prototype.record=function(e){var n=IE.get(e);n==null&&(n=new Set,IE.set(e,n)),n.add(this),ig.set(this,e)},t.prototype.renderContent=function(e){var n=this.$elem;n.empty(),n.append(e);var r=this.genSelfElem();r&&n.append(r)},t.prototype.appendTo=function(e){var n=this.$elem;e.append(n)},t.prototype.show=function(){if(!this.isShow){this.showTime=Date.now(),this.$elem.show(),this.isShow=!0;var e=ig.get(this);e&&e.emit("modalOrPanelShow",this)}},t.prototype.hide=function(){if(this.isShow&&!(Date.now()-this.showTime<200)){this.$elem.hide(),this.isShow=!1;var e=ig.get(this);e&&e.emit("modalOrPanelHide")}},t}(),ett=function(t){function e(n){var r=t.call(this,n)||this;return r.type="dropPanel",r.$elem=B('<div class="w-e-drop-panel"></div>'),r}return gc(e,t),e.prototype.genSelfElem=function(){return null},e}(LD),ntt=function(t){function e(n,r,o){o===void 0&&(o=!1);var i=t.call(this,n,r,o)||this;if(i.dropPanel=null,i.menu=r,r.showDropPanel){var a=ND();i.$button.append(a)}return i}return gc(e,t),e.prototype.onButtonClick=function(){this.menu.showDropPanel&&this.handleDropPanel()},e.prototype.handleDropPanel=function(){var n=this.menu;if(n.getPanelContentElem!=null){var r=rr(this);if(this.dropPanel==null){var o=new ett(r),i=n.getPanelContentElem(r);o.renderContent(i),o.appendTo(this.$elem),o.show(),this.dropPanel=o}else{var a=this.dropPanel;a.isShow?a.hide():(i=n.getPanelContentElem(r),a.renderContent(i),a.show())}var u=this.dropPanel;if(u.isShow){var s=this.$elem,l=s.offset().left,c=s.parents(".w-e-bar");l-c.offset().left>=c.width()/2?u.$elem.css({left:"none",right:"0"}):u.$elem.css({left:"0",right:"none"})}}},e}(ID),rtt=function(t){function e(n,r){r===void 0&&(r=0);var o=t.call(this,n)||this;o.type="modal",o.$elem=B('<div class="w-e-modal"></div>'),o.width=0,r&&(o.width=r);var i=o.$elem;return i.on("click",function(a){return a.stopPropagation()}),i.on("keyup",function(a){a.code==="Escape"&&(o.hide(),n.restoreSelection())}),o}return gc(e,t),e.prototype.genSelfElem=function(){var n=this,r=B('<span class="btn-close"><svg viewBox="0 0 1024 1024"><path d="M1024 896.1024l-128 128L512 640 128 1024 0 896 384 512 0 128 128 0 512 384 896.1024 0l128 128L640 512z"></path></svg></span>'),o=ig.get(this);return r.on("click",function(){n.hide(),o==null||o.restoreSelection()}),r},e.prototype.setStyle=function(n){var r=this.width,o=this.$elem;o.attr("style",""),r&&o.css("width",r+"px"),o.css(n)},e}(LD);function or(t,e,n){var r=B('<label class="babel-container"></label>');r.append("<span>"+t+"</span>");var o=B('<input type="text" id="'+e+'" placeholder="'+(n||"")+'">');return r.append(o),[r[0],o[0]]}function vc(t,e){var n=B('<div class="button-container"></div>'),r=B('<button type="button" id="'+t+'">'+e+"</button>");return n.append(r),[n[0],r[0]]}var ott=function(t){function e(n,r,o){o===void 0&&(o=!1);var i=t.call(this,n,r,o)||this;return i.$body=B("body"),i.modal=null,i.menu=r,i}return gc(e,t),e.prototype.onButtonClick=function(){this.menu.showModal&&this.handleModal()},e.prototype.getPosition=function(){var n=rr(this),r=this.menu.getModalPositionNode(n);return ct.isElement(r)?PD(n,r,"modal"):TD(n)},e.prototype.handleModal=function(){var n=rr(this),r=this.menu;if(this.modal==null){var o=new rtt(n,r.modalWidth);this.renderAndShowModal(o,!0),this.modal=o}else(o=this.modal).isShow?o.hide():this.renderAndShowModal(o,!1)},e.prototype.renderAndShowModal=function(n,r){r===void 0&&(r=!1);var o=rr(this),i=this.menu;if(i.getModalContentElem!=null){var a=A.getTextarea(o),u=A.getToolbar(o),s=((u==null?void 0:u.getConfig())||{}).modalAppendToBody,l=i.getModalContentElem(o);if(n.renderContent(l),s)n.setStyle({left:"0",right:"0"});else{var c=this.getPosition();n.setStyle(c)}r&&(s?n.appendTo(this.$body):n.appendTo(a.$textAreaContainer)),n.show(),s||KE(o,n.$elem),setTimeout(function(){o.blur()})}},e}(ID),itt=function(t){function e(n,r){var o=t.call(this,n)||this;return o.type="selectList",o.$elem=B('<div class="w-e-select-list"></div>'),r&&o.$elem.css("width",r+"px"),o.$elem.on("click",function(i){i.stopPropagation()}),o}return gc(e,t),e.prototype.renderList=function(n){var r=this.$elem;r.empty();var o=B("<ul></ul>");n.forEach(function(i){var a=i.value,u=i.text,s=i.selected,l=i.styleForRenderMenuList,c=B('<li data-value="'+a+'"></li>');if(l&&c.css(l),s){var f=B('<svg viewBox="0 0 1446 1024"><path d="M574.116299 786.736392 1238.811249 48.517862C1272.390222 11.224635 1329.414799 7.827718 1366.75664 41.450462 1403.840015 74.840484 1406.731043 132.084741 1373.10189 169.433699L655.118888 966.834607C653.072421 969.716875 650.835807 972.514337 648.407938 975.210759 615.017957 1012.29409 558.292155 1015.652019 521.195664 982.250188L72.778218 578.493306C35.910826 545.297758 32.859041 488.584019 66.481825 451.242134 99.871807 414.158803 156.597563 410.800834 193.694055 444.202665L574.116299 786.736392Z"></path></svg>');c.append(f),c.addClass("selected")}c.append(B('<span data-value="'+a+'">'+u+"</span>")),c.attr("title",u),o.append(c)}),r.append(o)},e.prototype.genSelfElem=function(){return null},e}(LD),att=function(){function t(e,n,r){var o=this;r===void 0&&(r=!1),this.$elem=B('<div class="w-e-bar-item"></div>'),this.$button=B('<button type="button" class="select-button"></button>'),this.disabled=!1,this.selectList=null;var i=n.tag,a=n.title,u=n.width,s=n.iconSvg,l=s===void 0?"":s,c=n.hotkey,f=c===void 0?"":c;if(i!=="select")throw new Error("Invalid tag '"+i+"', expected 'select'");var p=this.$button;u&&p.css("width",u+"px"),p.attr("data-menu-key",e),rI(p,l,a,f,r),this.$elem.append(p),this.menu=n,Nr(function(){return o.init()})}return t.prototype.init=function(){var e=this;this.setSelectedValue(),this.$button.on("click",function(n){n.preventDefault(),rr(e).hidePanelOrModal(),e.trigger()})},t.prototype.trigger=function(){var e=this,n=rr(this);if(!n.isDisabled()&&!this.disabled){var r=this.menu;if(this.selectList==null){this.selectList=new itt(n,r.selectPanelWidth);var o=this.selectList,i=r.getOptions(n);o.renderList(i),o.appendTo(this.$elem),o.show(),o.$elem.on("click","li",function(a){var u=a.target;if(u!=null){a.preventDefault();var s=B(u).attr("data-value");e.onChange(s)}})}else(o=this.selectList).isShow?o.hide():(i=r.getOptions(n),o.renderList(i),o.show())}},t.prototype.onChange=function(e){var n=rr(this),r=this.menu;r.exec&&r.exec(n,e)},t.prototype.setSelectedValue=function(){var e=rr(this),n=this.menu,r=n.getValue(e),o=function(u,s){for(var l=u.length,c="",f=0;f<l;f++){var p=u[f];if(p.value===s){c=p.text;break}}return c}(n.getOptions(e),r.toString()),i=this.$button,a=ND();i.empty(),i.text(o),i.append(a)},t.prototype.setDisabled=function(){var e=rr(this),n=this.menu.isDisabled(e),r=this.$button;(e.selection==null||e.isDisabled())&&(n=!0);var o="disabled";n?r.addClass(o):r.removeClass(o),this.disabled=n},t.prototype.changeMenuState=function(){this.setSelectedValue(),this.setDisabled()},t}(),oO=function(){function t(e){this.$elem=B('<div class="w-e-bar-item w-e-bar-item-group"></div>'),this.$container=B('<div class="w-e-bar-item-menus-container"></div>'),this.$button=B('<button type="button"></button>');var n=e.key,r=e.iconSvg,o=e.title,i=this.$elem,a=this.$button;if(r){var u=B(r);jD(u),a.append(u)}else a.text(o);a.attr("data-menu-key",n);var s=ND();a.append(s),i.append(a);var l=this.$container;i.append(l);var c=this.createObserver();this.observe(c)}return t.prototype.appendBarItem=function(e){var n=e.$elem;this.$container.append(n)},t.prototype.observe=function(e){var n=this.$container;e.observe(n[0],{childList:!0,subtree:!0,attributes:!0})},t.prototype.createObserver=function(){var e=this,n=this.$container,r=this.$button,o=new MutationObserver(function(){var i=n.find("button"),a=i.length;if(a!==0){var u=0;i.each(function(s){B(s).hasClass("disabled")&&u++}),o.disconnect(),u===a?r.addClass("disabled"):r.removeClass("disabled"),e.observe(o)}});return o},t}(),iO=new WeakMap;function rr(t){var e=wD.get(t);if(e==null)throw new Error("Can not get editor instance");return e}function oI(t,e,n){n===void 0&&(n=!1);var r=iO.get(e);if(r)return r;var o=e.tag;if(o==="button"){var i=e.showDropPanel,a=e.showModal;r=i?new ntt(t,e,n):a?new ott(t,e,n):new ttt(t,e,n)}if(o==="select"&&(r=new att(t,e,n)),r==null)throw new Error("Invalid tag in menu "+JSON.stringify(e));return iO.set(e,r),r}function utt(t,e){var n=t.selection;return n!=null&&!L.isCollapsed(n)&&!A.getSelectedElems(t).some(function(r){if(t.isVoid(r))return!0;var o=r.type;return!!["pre","code","table"].includes(o)||void 0})&&!!ot.isText(e)}var stt=function(){function t(){var e=this;this.$elem=B('<div class="w-e-bar w-e-bar-hidden w-e-hover-bar"></div>'),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null,this.isShow=!1,this.changeHoverbarState=jj(function(){var n=e.isShow,r=e.getSelectedNodeAndMenuKeys()||{},o=r.node,i=o===void 0?null:o,a=r.menuKeys,u=a===void 0?[]:a;i!=null&&e.changeItemsState(),i&&ct.isElement(i)&&n&&e.isSamePath(i,e.prevSelectedNode)||(e.hideAndClean(),i!=null&&(e.registerItems(u),e.setPosition(i),e.show()),e.prevSelectedNode=i)},200),Nr(function(){var n=e.getEditorInstance(),r=e.$elem;r.on("mousedown",function(i){return i.preventDefault()},{passive:!1}),A.getTextarea(n).$textAreaContainer.append(r),n.on("change",e.changeHoverbarState);var o=e.hideAndClean.bind(e);n.on("scroll",o),n.on("fullScreen",o),n.on("unFullScreen",o)})}return t.prototype.getMenus=function(){return this.menus},t.prototype.hideAndClean=function(){var e=this.$elem;e.removeClass("w-e-bar-show").addClass("w-e-bar-hidden"),this.hoverbarItems=[],e.empty(),this.isShow=!1},t.prototype.checkPositionBottom=function(){var e=this.$elem,n=!1,r=window.innerHeight;r&&r>=360&&r-e[0].getBoundingClientRect().bottom<360&&(n=!0),n?e.addClass("w-e-bar-bottom"):e.removeClass("w-e-bar-bottom")},t.prototype.show=function(){this.$elem.removeClass("w-e-bar-hidden").addClass("w-e-bar-show"),this.isShow=!0,this.checkPositionBottom()},t.prototype.changeItemsState=function(){var e=this;Nr(function(){e.hoverbarItems.forEach(function(n){n.changeMenuState()})})},t.prototype.registerItems=function(e){var n=this,r=this.$elem;e.forEach(function(o){if(o!=="|")n.registerSingleItem(o);else{var i=nI();r.append(i)}})},t.prototype.registerSingleItem=function(e){var n=this.getEditorInstance(),r=this.menus,o=r[e];if(o==null){var i=ep[e];if(i==null)throw new Error("Not found menu item factory by key '"+e+"'");if(typeof i!="function")throw new Error("Menu item factory (key='"+e+"') is not a function");o=i(),r[e]=o}var a=oI(e,o);this.hoverbarItems.push(a),wD.set(a,n),this.$elem.append(a.$elem)},t.prototype.setPosition=function(e){var n=this.getEditorInstance(),r=this.$elem;if(r.attr("style",""),ct.isElement(e)){var o=PD(n,e,"bar");return r.css(o),void KE(n,r)}if(ot.isText(e))return o=TD(n),r.css(o),void KE(n,r);throw new Error("hoverbar.setPosition error, current selected node is not elem nor text")},t.prototype.getSelectedNodeAndMenuKeys=function(){var e=this.getEditorInstance();if(e.selection==null)return null;var n=this.getHoverbarKeysConf(),r=null,o=[],i=function(u){var s=n[u],l=s.match,c=s.menuKeys,f=c===void 0?[]:c,p=l||function(g,v){return A.checkNodeType(v,u)},d=Ht(D.nodes(e,{match:function(g){return p(e,g)},universal:!0}),1),y=d[0];if(y!=null)return r=y[0],o=f,"break"};for(var a in n)if(i(a)==="break")break;return r==null||o.length===0?null:{node:r,menuKeys:o}},t.prototype.getEditorInstance=function(){var e=NE.get(this);if(e==null)throw new Error("Can not get editor instance");return e},t.prototype.getHoverbarKeysConf=function(){var e=this.getEditorInstance().getConfig().hoverbarKeys,n=e===void 0?{}:e,r=n.text;return r&&r.match==null&&(r.match=utt),n},t.prototype.isSamePath=function(e,n){if(e==null||n==null)return!1;var r=A.findPath(null,e),o=A.findPath(null,n);return j.equals(r,o)},t.prototype.destroy=function(){this.changeHoverbarState.cancel(),this.$elem.remove(),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null},t}();function iI(t,e,n,r){if(tp.set(t,e),Yl.set(t,n),ct.isElement(t)){var o=t.children;if((o===void 0?[]:o).forEach(function(u,s){return iI(u,s,t,r)}),D.isVoid(r,t)){var i=Ht(Q.texts(t),1),a=Ht(i[0],1)[0];tp.set(a,0),Yl.set(a,t)}}}function ltt(t){var e=t.selector,n=e===void 0?"":e,r=t.config,o=r===void 0?{}:r,i=t.content,a=t.html,u=t.plugins,s=u===void 0?[]:u,l=(m=>{var h=m,{apply:b}=h;return h.history={undos:[],redos:[]},h.redo=()=>{var{history:w}=h,{redos:E}=w;if(E.length>0){var x=E[E.length-1];dl.withoutSaving(h,()=>{D.withoutNormalizing(h,()=>{for(var C of x)h.apply(C)})}),w.redos.pop(),w.undos.push(x)}},h.undo=()=>{var{history:w}=h,{undos:E}=w;if(E.length>0){var x=E[E.length-1];dl.withoutSaving(h,()=>{D.withoutNormalizing(h,()=>{var C=x.map(Ji.inverse).reverse();for(var O of C)h.apply(O)})}),w.redos.push(x),w.undos.pop()}},h.apply=w=>{var{operations:E,history:x}=h,{undos:C}=x,O=C[C.length-1],F=O&&O[O.length-1],R=((U,W)=>!(!W||U.type!=="set_selection"||W.type!=="set_selection"))(w,F),H=dl.isSaving(h),M=dl.isMerging(h);if(H==null&&(H=((U,W)=>U.type!=="set_selection"||U.properties!=null&&U.newProperties!=null)(w)),H){if(M==null&&(M=O!=null&&(E.length!==0||((U,W)=>U.type==="set_selection"||!(!W||U.type!=="insert_text"||W.type!=="insert_text"||U.offset!==W.offset+W.text.length||!j.equals(U.path,W.path))||!(!W||U.type!=="remove_text"||W.type!=="remove_text"||U.offset+U.text.length!==W.offset||!j.equals(U.path,W.path)))(w,F)||R)),O&&M)R&&O.pop(),O.push(w);else{var K=[w];C.push(K)}for(;C.length>100;)C.shift();(U=>U.type!=="set_selection")(w)&&(x.redos=[])}b(w)},h})(function(m){var h=m,b=h.insertText,w=h.insertNode,E=h.insertFragment,x=h.dangerouslyInsertHtml;return h.insertText=function(C){if(h.getConfig().maxLength){var O=A.getLeftLengthOfMaxLength(h);O<=0||(O<C.length?b(C.slice(0,O)):b(C))}else b(C)},h.insertNode=function(C){if(h.getConfig().maxLength){var O=A.getLeftLengthOfMaxLength(h);O<=0||O<Q.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)<Q.string(O).length)return;E(C)}else E(C)},h.dangerouslyInsertHtml=function(C,O){if(C===void 0&&(C=""),O===void 0&&(O=!1),C)if(h.getConfig().maxLength){var F=A.getLeftLengthOfMaxLength(h);if(!(F<=0)){var R=document.createElement("div");R.innerHTML=C;var H=Array.from(R.childNodes).reduce(function(M,K){var U=K.nodeType,W=K.nodeName;return K?U===wo.TEXT_NODE?M+(K.textContent||""):U===wo.ELEMENT_NODE?H9.has(W.toLowerCase())?M:M+(K.textContent||""):M:M},"");F<H.length||x(C,O)}}else x(C,O)},h}(function(m){var h=m;return h.on=function(b,w){var E=o0(h);if(E.on(b,w),b==="destroyed"&&q9(h,w),b!=="destroyed"){var x=function(){return E.off(b,w)};E.on("destroyed",x),q9(h,x)}},h.once=function(b,w){o0(h).once(b,w)},h.off=function(b,w){o0(h).off(b,w)},h.emit=function(b){for(var w=[],E=1;E<arguments.length;E++)w[E-1]=arguments[E];var x=o0(h);x.emit.apply(x,_E([b],Ht(w))),b==="destroyed"&&(NQ(h).forEach(function(C){return x.off("destroyed",C)}),IQ(h))},h}(function(m){var h=m;return h.select=function(b){N.select(h,b)},h.deselect=function(){var b=h.selection,w=A.findDocumentOrShadowRoot(h).getSelection();w&&w.rangeCount>0&&w.removeAllRanges(),b&&N.deselect(m)},h.move=function(b,w){w===void 0&&(w=!1),b&&(b<0||N.move(m,{distance:b,unit:"character",reverse:w}))},h.moveReverse=function(b){h.move(b,!0)},h.restoreSelection=function(){var b=gb.get(h);b!=null&&(h.focus(),N.select(h,b))},h.getSelectionPosition=function(){return TD(h)},h.getNodePosition=function(b){return PD(h,b)},h.isSelectedAll=function(){var b=h.selection;if(b==null)return!1;var w=Ht(L.edges(b),2),E=w[0],x=w[1],C=Ht(D.edges(h,[]),2),O=C[0],F=C[1];return!(!Bt.equals(E,O)||!Bt.equals(x,F))},h.selectAll=function(){var b=D.start(h,[]),w=D.end(h,[]);N.select(h,{anchor:b,focus:w})},h}(function(m){var h=m,b=h.onChange,w=h.insertText,E=h.apply,x=h.deleteBackward;return h.insertText=function(C){h.getConfig().readOnly||w(C)},h.apply=function(C){var O,F,R,H,M,K,U,W,q=[];switch(C.type){case"insert_text":case"remove_text":case"set_node":try{for(var nt=xr(D.levels(h,{at:C.path})),lt=nt.next();!lt.done;lt=nt.next()){var st=Ht(lt.value,2),at=st[0],k=st[1],S=A.findKey(h,at);q.push([k,S])}}catch(It){O={error:It}}finally{try{lt&&!lt.done&&(F=nt.return)&&F.call(nt)}finally{if(O)throw O.error}}break;case"insert_node":case"remove_node":case"merge_node":case"split_node":try{for(var P=xr(D.levels(h,{at:j.parent(C.path)})),$=P.next();!$.done;$=P.next()){var Y=Ht($.value,2);at=Y[0],k=Y[1],S=A.findKey(h,at),q.push([k,S])}}catch(It){R={error:It}}finally{try{$&&!$.done&&(H=P.return)&&H.call(P)}finally{if(R)throw R.error}}break;case"move_node":try{for(var V=xr(D.levels(h,{at:j.common(j.parent(C.path),j.parent(C.newPath))})),it=V.next();!it.done;it=V.next()){var gt=Ht(it.value,2);at=gt[0],k=gt[1],S=A.findKey(h,at),q.push([k,S])}}catch(It){M={error:It}}finally{try{it&&!it.done&&(K=V.return)&&K.call(V)}finally{if(M)throw M.error}}}E(C);try{for(var vt=xr(q),Dt=vt.next();!Dt.done;Dt=vt.next()){var G=Ht(Dt.value,2);k=G[0],S=G[1],at=Ht(D.node(h,k),1)[0],ag.set(at,S)}}catch(It){U={error:It}}finally{try{Dt&&!Dt.done&&(W=vt.return)&&W.call(vt)}finally{if(U)throw U.error}}},h.deleteBackward=function(C){if(C!=="line")return x(C);if(m.selection&&L.isCollapsed(m.selection)){var O=D.above(m,{match:function(M){return D.isBlock(m,M)},at:m.selection});if(O){var F=Ht(O,2)[1],R=D.range(m,F,m.selection.anchor),H=function(M,K){var U=D.range(M,L.end(K)),W=Array.from(D.positions(M,{at:K})),q=0,nt=W.length,lt=Math.floor(nt/2);if(P9(M,D.range(M,W[q]),U))return D.range(M,W[q],U);if(W.length<2)return D.range(M,W[W.length-1],U);for(;lt!==W.length&&lt!==q;)P9(M,D.range(M,W[lt]),U)?nt=lt:q=lt,lt=Math.floor((q+nt)/2);return D.range(M,W[nt],U)}(h,R);L.isCollapsed(H)||N.delete(m,{at:H})}}},h.onChange=function(){var C=h.selection;C!=null&&gb.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 WN(O,h)}).join("")},h.getText=function(){var C=h.children;return(C===void 0?[]:C).map(function(O){return Q.string(O)}).join(`
  69. `)},h.getSelectionText=function(){var C=h.selection;return C==null?"":D.string(m,C)},h.getElemsByType=function(C,O){var F,R;O===void 0&&(O=!1);var H=[],M=D.nodes(h,{at:[],universal:!0});try{for(var K=xr(M),U=K.next();!U.done;U=K.next()){var W=Ht(U.value,1)[0];if(ct.isElement(W)&&(O?W.type.indexOf(C)>=0:W.type===C)){var q=GN(A.findKey(h,W).id);H.push(Cr(Cr({},W),{id:q}))}}}catch(nt){F={error:nt}}finally{try{U&&!U.done&&(R=K.return)&&R.call(K)}finally{if(F)throw F.error}}return H},h.getElemsByTypePrefix=function(C){return h.getElemsByType(C,!0)},h.isEmpty=function(){var C=h.children,O=C===void 0?[]:C;if(O.length>1)return!1;var F=O[0];if(F==null)return!0;if(ct.isElement(F)&&F.type==="paragraph"){var R=F.children,H=R===void 0?[]:R;if(H.length>1)return!1;var M=H[0];if(M==null||ot.isText(M)&&M.text==="")return!0}return!1},h.clear=function(){N.delete(h,{at:{anchor:D.start(h,[]),focus:D.end(h,[])}}),h.children.length===0&&N.insertNodes(h,[{type:"paragraph",children:[{text:""}]}])},h.getParentNode=function(C){return A.getParentNode(h,C)},h.dangerouslyInsertHtml=function(C,O){if(C===void 0&&(C=""),O===void 0&&(O=!1),C){var F=document.createElement("div");F.innerHTML=C;var R=Array.from(F.childNodes);if(R=R.filter(function(U){var W=U.nodeType,q=U.nodeName;return W===wo.TEXT_NODE||W===wo.ELEMENT_NODE&&!H9.has(q.toLowerCase())}),R.length!==0){var H=h.selection;if(H!=null){var M=null;A.isSelectedEmptyParagraph(h)&&!O&&(M=[H.focus.path[0]]),F.setAttribute("hidden","true"),document.body.appendChild(F);var K=0;R.forEach(function(U){var W=U.nodeType,q=U.nodeName,nt=U.textContent,lt=nt===void 0?"":nt;if(W!==wo.TEXT_NODE)if(q!=="BR"){var st=U,at=!1;if(qN.includes(q.toLowerCase()))at=!0;else for(var k in wv)if(st.matches(k)){at=!0;break}if(at){var S=BD(B(st),h);return Array.isArray(S)?(S.forEach(function($){return V9(h,$)}),K++):(V9(h,S),K++),void(A.isSelectedVoidNode(h)&&h.move(1))}var P=window.getComputedStyle(st).display;A.isSelectedEmptyParagraph(h)||P.indexOf("inline")<0&&h.insertBreak(),h.dangerouslyInsertHtml(st.innerHTML,!0)}else h.insertText(`
  70. `);else{if(!lt||!lt.trim())return;h.insertNode({text:lt})}}),K&&M&&A.isEmptyPath(h,M)&&N.removeNodes(h,{at:M}),F.remove()}}}},h.setHtml=function(C){C===void 0&&(C="");var O=h.isDisabled(),F=h.isFocused(),R=JSON.stringify(h.selection);h.enable(),h.focus(),h.clear();var H=M9(h,C);if(N.insertFragment(h,H),F||(h.deselect(),h.blur()),O&&(h.deselect(),h.disable()),h.isFocused())try{h.select(JSON.parse(R))}catch{h.select(D.start(h,[]))}},h}(function(m){var h=m;return h.getAllMenuKeys=function(){var b=[];for(var w in ep)b.push(w);return b},h.getConfig=function(){var b=l9.get(h);if(b==null)throw new Error("Can not get editor config");return b},h.getMenuConfig=function(b){var w=h.getConfig().MENU_CONF;return(w===void 0?{}:w)[b]||{}},h.alert=function(b,w){w===void 0&&(w="info");var E=h.getConfig().customAlert;E&&E(b,w)},h}(function(m){var h=DQ(WW());return h.id="wangEditor-"+FJ++,h.isDestroyed=!1,h.isFullScreen=!1,h.focus=function(b){if(A.toDOMNode(h,h).focus({preventScroll:!0}),Pu.set(h,!0),b){var w=D.end(h,[]);N.select(h,w)}else{var E=gb.get(h);E?N.select(h,E):N.select(h,D.start(h,[]))}},h.isFocused=function(){return!!Pu.get(h)},h.blur=function(){A.toDOMNode(h,h).blur(),N.deselect(h),Pu.set(h,!1)},h.updateView=function(){A.getTextarea(h).changeViewState();var b=A.getToolbar(h);b&&b.changeToolbarState();var w=A.getHoverbar(h);w&&w.changeHoverbarState()},h.destroy=function(){if(!h.isDestroyed){var b=A.getTextarea(h);b.destroy(),PE.delete(h),jE.delete(b);var w=A.getToolbar(h);w&&(w.destroy(),am.delete(h),bD.delete(w));var E=A.getHoverbar(h);E&&(E.destroy(),gv.delete(h),NE.delete(E)),h.isDestroyed=!0,h.emit("destroyed")}},h.scrollToElem=function(b){if(!h.getConfig().scroll){var w="编辑器禁用了 scroll ,编辑器内容无法滚动,请自行实现该功能";return w+=`
  71. You has disabled editor scroll, please do this yourself`,void console.warn(w)}var E=B("#"+b);if(E.length!==0){var x=E[0];if(!A.hasDOMNode(h,x))return w="Element (found by id is '"+b+"') is not in editor DOM",w+=`
  72. 通过 id '`+b+"' 找到的 element 不在 editor DOM 之内",void console.error(w,x);var C=A.getTextarea(h),O=C.$textAreaContainer,F=C.$scroll,R=E.offset().top,H=O.offset().top;F[0].scrollBy({top:R-H,behavior:"smooth"})}},h.showProgressBar=function(b){b<1||A.getTextarea(h).changeProgress(b)},h.hidePanelOrModal=function(){var b=IE.get(h);b!=null&&b.forEach(function(w){return w.hide()})},h.enable=function(){h.getConfig().readOnly=!1,h.updateView()},h.disable=function(){h.getConfig().readOnly=!0,h.updateView()},h.isDisabled=function(){return h.getConfig().readOnly},h.toDOMNode=function(b){return A.toDOMNode(h,b)},h.fullScreen=function(){if(!h.isFullScreen){var b=null,w=A.getToolbar(h);w&&(b=w.$box);var E=A.getTextarea(h).$box.parent();if(b&&b.parent()[0]!==E[0])throw new Error(`Can not set full screen, cause toolbar DOM parent is not equal to textarea DOM parent
  73. 不能设置全屏,因为 toolbar DOM 父节点和 textarea DOM 父节点不一致`);E.addClass("w-e-full-screen-container");var x=E.css("z-index");E.attr("data-z-index",x.toString()),h.isFullScreen=!0,h.emit("fullScreen")}},h.unFullScreen=function(){if(h.isFullScreen){var b=A.getTextarea(h).$box.parent();setTimeout(function(){b.removeClass("w-e-full-screen-container"),h.isFullScreen=!1,h.emit("unFullScreen")},200)}},h.getEditableContainer=function(){return A.getTextarea(h).$textAreaContainer[0]},h}()))))));if(n&&function(m,h){return ZN(m,"data-w-e-textarea",h)}(l,n))throw new Error("Repeated create editor by selector '"+n+"'");var c=function(m){m===void 0&&(m={});var h=Nj(BN),b={},w=m.MENU_CONF,E=w===void 0?{}:w;return V5(h,function(x,C){b[C]=Cr(Cr({},x),E[C]||{})}),delete m.MENU_CONF,Cr({scroll:!0,readOnly:!1,autoFocus:!0,decorate:function(){return[]},maxLength:0,MENU_CONF:b,hoverbarKeys:{},customAlert:function(x,C){window.alert(C+`:
  74. `+x)}},m)}(o);l9.set(l,c);var f=c.hoverbarKeys,p=f===void 0?{}:f;if(s.forEach(function(m){l=m(l)}),a!=null&&(l.children=M9(l,a)),i&&i.length&&(l.children=i),l.children.length===0&&(l.children=[{type:"paragraph",children:[{text:""}]}]),A.normalizeContent(l),n){var d=new QQ(n);PE.set(l,d),jE.set(d,l),d.changeViewState(),Nr(function(){var m=d.$scroll;m!=null&&m.height()<300&&console.warn(`编辑区域高度 < 300px 这可能会导致 modal hoverbar 定位异常
  75. Textarea height < 300px . This may be cause modal and hoverbar position error`,m)});var y=void 0;Object.keys(p).length>0&&(y=new stt,NE.set(y,l),gv.set(l,y)),l.on("change",function(){l.hidePanelOrModal()}),l.on("scroll",function(){l.hidePanelOrModal()})}else l.children.forEach(function(m,h){return iI(m,h,l,l)});var g=c.onCreated,v=c.onDestroyed;return g&&l.on("created",function(){return g(l)}),v&&l.on("destroyed",function(){return v(l)}),Nr(function(){return l.emit("created")}),l}var ctt=nm("splice"),ftt=X.TypeError,dtt=Math.max,ptt=Math.min;De({target:"Array",proto:!0,forced:!ctt},{splice:function(t,e){var n,r,o,i,a,u,s=La(this),l=ms(s),c=Wl(t,l),f=arguments.length;if(f===0?n=r=0:f===1?(n=0,r=l-c):(n=f-2,r=ptt(dtt(Kp(e),0),l-c)),l+n-r>9007199254740991)throw ftt("Maximum allowed length exceeded");for(o=nN(s,r),i=0;i<r;i++)(a=c+i)in s&&Xd(o,i,s[a]);if(o.length=r,n<r){for(i=c;i<l-r;i++)u=i+n,(a=i+r)in s?s[u]=s[a]:delete s[u];for(i=l;i>l-r+n;i--)delete s[i-1]}else if(n>r)for(i=l-r;i>c;i--)u=i+n-1,(a=i+r-1)in s?s[u]=s[a]:delete s[u];for(i=0;i<n;i++)s[i+c]=arguments[i+2];return s.length=l-r+n,o}});var htt=function(){function t(e,n){var r=this;this.$toolbar=B('<div class="w-e-bar w-e-bar-show w-e-toolbar"></div>'),this.menus={},this.toolbarItems=[],this.config={},this.changeToolbarState=jj(function(){r.toolbarItems.forEach(function(a){a.changeMenuState()})},200),this.config=n;var o=B(e);if(o.length===0)throw new Error("Cannot find toolbar DOM by selector '"+e+"'");this.$box=o;var i=this.$toolbar;i.on("mousedown",function(a){return a.preventDefault()},{passive:!1}),o.append(i),Nr(function(){r.registerItems(),r.changeToolbarState(),r.getEditorInstance().on("change",r.changeToolbarState)})}return t.prototype.getMenus=function(){return this.menus},t.prototype.getConfig=function(){return this.config},t.prototype.registerItems=function(){var e=this,n="",r=this.$toolbar,o=this.config,i=o.toolbarKeys,a=i===void 0?[]:i,u=o.insertKeys,s=u===void 0?{index:0,keys:[]}:u,l=o.excludeKeys,c=l===void 0?[]:l,f=Nj(a);s.keys.length>0&&(typeof s.keys=="string"&&(s.keys=[s.keys]),s.keys.forEach(function(y,g){f.splice(s.index+g,0,y)}));var p=f.filter(function(y){if(typeof y=="string"){if(c.includes(y))return!1}else if(c.includes(y.key))return!1;return!0}),d=p.length;p.forEach(function(y,g){if(y==="|"){if(g===0||g+1===d||n==="|")return;var v=nI();return r.append(v),void(n=y)}if(typeof y=="string")return e.registerSingleItem(y,e),void(n=y);e.registerGroup(y),n="group"})},t.prototype.registerGroup=function(e){var n=this,r=this.$toolbar,o=function(l){return new oO(l)}(e),i=e.menuKeys,a=i===void 0?[]:i,u=this.config.excludeKeys,s=u===void 0?[]:u;a.forEach(function(l){s.includes(l)||n.registerSingleItem(l,o)}),r.append(o.$elem)},t.prototype.registerSingleItem=function(e,n){var r=this.getEditorInstance(),o=n instanceof oO,i=this.menus,a=i[e];if(a==null){var u=ep[e];if(u==null)throw new Error("Not found menu item factory by key '"+e+"'");if(typeof u!="function")throw new Error("Menu item factory (key='"+e+"') is not a function");a=u(),i[e]=a}else console.warn("Duplicated toolbar menu key '"+e+`'
  76. 重复注册了菜单栏 menu '`+e+"'");var s=oI(e,a,o);this.toolbarItems.push(s),wD.set(s,r),o?n.appendBarItem(s):n.$toolbar.append(s.$elem)},t.prototype.getEditorInstance=function(){var e=bD.get(this);if(e==null)throw new Error("Can not get editor instance");return e},t.prototype.destroy=function(){this.$toolbar.remove(),this.menus={},this.toolbarItems=[]},t}(),gtt=dc.EXISTS,vtt=io.f,aI=Function.prototype,mtt=pt(aI.toString),uI=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,ytt=pt(uI.exec);function sI(t){var e=t.server,n=e===void 0?"":e,r=t.fieldName,o=r===void 0?"":r,i=t.maxFileSize,a=i===void 0?10485760:i,u=t.maxNumberOfFiles,s=u===void 0?100:u,l=t.meta,c=l===void 0?{}:l,f=t.metaWithUrl,p=f!==void 0&&f,d=t.headers,y=d===void 0?{}:d,g=t.withCredentials,v=g!==void 0&&g,m=t.timeout,h=m===void 0?1e4:m,b=t.onBeforeUpload,w=b===void 0?function(K){return K}:b,E=t.onSuccess,x=E===void 0?function(K,U){}:E,C=t.onError,O=C===void 0?function(K,U,W){console.error(K.name+" upload error",U,W)}:C,F=t.onProgress,R=F===void 0?function(K){}:F;if(!n)throw new Error(`Cannot get upload server address
  77. 没有配置上传地址`);if(!o)throw new Error(`Cannot get fieldName
  78. 没有配置 fieldName`);var H=n;p&&(H=function(K,U){var W=Ht(K.split("#"),2),q=W[0],nt=W[1],lt=[];V5(U,function(at,k){lt.push(k+"="+at)});var st=lt.join("&");return q=q.indexOf("?")>0?q+"&"+st:q+"?"+st,nt?q+"#"+nt:q}(H,c));var M=new Qf({onBeforeUpload:w,restrictions:{maxFileSize:a,maxNumberOfFiles:s},meta:c}).use(WY,{endpoint:H,headers:y,formData:!0,fieldName:o,bundle:!0,withCredentials:v,timeout:h});return M.on("upload-success",function(K,U){var W=U.body,q=W===void 0?{}:W;try{x(K,q)}catch(nt){console.error("wangEditor upload file - onSuccess error",nt)}M.removeFile(K.id)}),M.on("progress",function(K){K<1||R(K)}),M.on("upload-error",function(K,U,W){try{O(K,U,W)}catch(q){console.error("wangEditor upload file - onError error",q)}M.removeFile(K.id)}),M.on("restriction-failed",function(K,U){try{O(K,U)}catch(W){console.error("wangEditor upload file - onError error",W)}M.removeFile(K.id)}),M}function sa(t){return sa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},sa(t)}function btt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ve(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),r.forEach(function(o){btt(t,o,n[o])})}return t}function ci(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function aO(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function fi(t,e,n){return e&&aO(t.prototype,e),n&&aO(t,n),t}function rs(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function rp(t,e){if(e&&(sa(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return rs(t)}function Xl(t){return Xl=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Xl(t)}function ZE(t,e){return ZE=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},ZE(t,e)}function um(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ZE(t,e)}an&&!gtt&&vtt(aI,"name",{configurable:!0,get:function(){try{return ytt(uI,mtt(this))[1]}catch{return""}}});var wtt={type:"logger",log:function(t){this.output("log",t)},warn:function(t){this.output("warn",t)},error:function(t){this.output("error",t)},output:function(t,e){console&&console[t]&&console[t].apply(console,e)}},ei=new(function(){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};ci(this,t),this.init(e,n)}return fi(t,[{key:"init",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=e||wtt,this.options=n,this.debug=n.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return this.forward(n,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return this.forward(n,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return this.forward(n,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,n,r,o){return o&&!this.debug?null:(typeof e[0]=="string"&&(e[0]="".concat(r).concat(this.prefix," ").concat(e[0])),this.logger[n](e))}},{key:"create",value:function(e){return new t(this.logger,Ve({},{prefix:"".concat(this.prefix,":").concat(e,":")},this.options))}}]),t}()),Oa=function(){function t(){ci(this,t),this.observers={}}return fi(t,[{key:"on",value:function(e,n){var r=this;return e.split(" ").forEach(function(o){r.observers[o]=r.observers[o]||[],r.observers[o].push(n)}),this}},{key:"off",value:function(e,n){this.observers[e]&&(n?this.observers[e]=this.observers[e].filter(function(r){return r!==n}):delete this.observers[e])}},{key:"emit",value:function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];if(this.observers[e]){var i=[].concat(this.observers[e]);i.forEach(function(u){u.apply(void 0,r)})}if(this.observers["*"]){var a=[].concat(this.observers["*"]);a.forEach(function(u){u.apply(u,[e].concat(r))})}}}]),t}();function sf(){var t,e,n=new Promise(function(r,o){t=r,e=o});return n.resolve=t,n.reject=e,n}function uO(t){return t==null?"":""+t}function Ett(t,e,n){t.forEach(function(r){e[r]&&(n[r]=e[r])})}function RD(t,e,n){function r(u){return u&&u.indexOf("###")>-1?u.replace(/###/g,"."):u}function o(){return!t||typeof t=="string"}for(var i=typeof e!="string"?[].concat(e):e.split(".");i.length>1;){if(o())return{};var a=r(i.shift());!t[a]&&n&&(t[a]=new n),t=Object.prototype.hasOwnProperty.call(t,a)?t[a]:{}}return o()?{}:{obj:t,k:r(i.shift())}}function sO(t,e,n){var r=RD(t,e,Object);r.obj[r.k]=n}function Dv(t,e){var n=RD(t,e),r=n.obj,o=n.k;if(r)return r[o]}function lO(t,e,n){var r=Dv(t,n);return r!==void 0?r:Dv(e,n)}function lI(t,e,n){for(var r in e)r!=="__proto__"&&r!=="constructor"&&(r in t?typeof t[r]=="string"||t[r]instanceof String||typeof e[r]=="string"||e[r]instanceof String?n&&(t[r]=e[r]):lI(t[r],e[r],n):t[r]=e[r]);return t}function Rs(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var Dtt={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function Ctt(t){return typeof t=="string"?t.replace(/[&<>"'\/]/g,function(e){return Dtt[e]}):t}var sm=typeof window<"u"&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1;function cI(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(t){if(t[e])return t[e];for(var r=e.split(n),o=t,i=0;i<r.length;++i){if(!o||typeof o[r[i]]=="string"&&i+1<r.length)return;if(o[r[i]]===void 0){for(var a=2,u=r.slice(i,i+a).join(n),s=o[u];s===void 0&&r.length>i+a;)a++,s=o[u=r.slice(i,i+a).join(n)];if(s===void 0)return;if(typeof s=="string")return s;if(u&&typeof s[u]=="string")return s[u];var l=r.slice(i+a).join(n);return l?cI(s,l,n):void 0}o=o[r[i]]}return o}}var xtt=function(t){function e(n){var r,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return ci(this,e),r=rp(this,Xl(e).call(this)),sm&&Oa.call(rs(r)),r.data=n||{},r.options=o,r.options.keySeparator===void 0&&(r.options.keySeparator="."),r.options.ignoreJSONStructure===void 0&&(r.options.ignoreJSONStructure=!0),r}return um(e,Oa),fi(e,[{key:"addNamespaces",value:function(n){this.options.ns.indexOf(n)<0&&this.options.ns.push(n)}},{key:"removeNamespaces",value:function(n){var r=this.options.ns.indexOf(n);r>-1&&this.options.ns.splice(r,1)}},{key:"getResource",value:function(n,r,o){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,u=i.ignoreJSONStructure!==void 0?i.ignoreJSONStructure:this.options.ignoreJSONStructure,s=[n,r];o&&typeof o!="string"&&(s=s.concat(o)),o&&typeof o=="string"&&(s=s.concat(a?o.split(a):o)),n.indexOf(".")>-1&&(s=n.split("."));var l=Dv(this.data,s);return l||!u||typeof o!="string"?l:cI(this.data&&this.data[n]&&this.data[n][r],o,a)}},{key:"addResource",value:function(n,r,o,i){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},u=this.options.keySeparator;u===void 0&&(u=".");var s=[n,r];o&&(s=s.concat(u?o.split(u):o)),n.indexOf(".")>-1&&(i=r,r=(s=n.split("."))[1]),this.addNamespaces(r),sO(this.data,s,i),a.silent||this.emit("added",n,r,o,i)}},{key:"addResources",value:function(n,r,o){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var a in o)typeof o[a]!="string"&&Object.prototype.toString.apply(o[a])!=="[object Array]"||this.addResource(n,r,a,o[a],{silent:!0});i.silent||this.emit("added",n,r,o)}},{key:"addResourceBundle",value:function(n,r,o,i,a){var u=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},s=[n,r];n.indexOf(".")>-1&&(i=o,o=r,r=(s=n.split("."))[1]),this.addNamespaces(r);var l=Dv(this.data,s)||{};i?lI(l,o,a):l=Ve({},l,o),sO(this.data,s,l),u.silent||this.emit("added",n,r,o)}},{key:"removeResourceBundle",value:function(n,r){this.hasResourceBundle(n,r)&&delete this.data[n][r],this.removeNamespaces(r),this.emit("removed",n,r)}},{key:"hasResourceBundle",value:function(n,r){return this.getResource(n,r)!==void 0}},{key:"getResourceBundle",value:function(n,r){return r||(r=this.options.defaultNS),this.options.compatibilityAPI==="v1"?Ve({},{},this.getResource(n,r)):this.getResource(n,r)}},{key:"getDataByLanguage",value:function(n){return this.data[n]}},{key:"toJSON",value:function(){return this.data}}]),e}(),fI={processors:{},addPostProcessor:function(t){this.processors[t.name]=t},handle:function(t,e,n,r,o){var i=this;return t.forEach(function(a){i.processors[a]&&(e=i.processors[a].process(e,n,r,o))}),e}},cO={},fO=function(t){function e(n){var r,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return ci(this,e),r=rp(this,Xl(e).call(this)),sm&&Oa.call(rs(r)),Ett(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],n,rs(r)),r.options=o,r.options.keySeparator===void 0&&(r.options.keySeparator="."),r.logger=ei.create("translator"),r}return um(e,Oa),fi(e,[{key:"changeLanguage",value:function(n){n&&(this.language=n)}},{key:"exists",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(n==null)return!1;var o=this.resolve(n,r);return o&&o.res!==void 0}},{key:"extractFromKey",value:function(n,r){var o=r.nsSeparator!==void 0?r.nsSeparator:this.options.nsSeparator;o===void 0&&(o=":");var i=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,a=r.ns||this.options.defaultNS;if(o&&n.indexOf(o)>-1){var u=n.match(this.interpolator.nestingRegexp);if(u&&u.length>0)return{key:n,namespaces:a};var s=n.split(o);(o!==i||o===i&&this.options.ns.indexOf(s[0])>-1)&&(a=s.shift()),n=s.join(i)}return typeof a=="string"&&(a=[a]),{key:n,namespaces:a}}},{key:"translate",value:function(n,r,o){var i=this;if(sa(r)!=="object"&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),r||(r={}),n==null)return"";Array.isArray(n)||(n=[String(n)]);var a=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,u=this.extractFromKey(n[n.length-1],r),s=u.key,l=u.namespaces,c=l[l.length-1],f=r.lng||this.language,p=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(f&&f.toLowerCase()==="cimode"){if(p){var d=r.nsSeparator||this.options.nsSeparator;return c+d+s}return s}var y=this.resolve(n,r),g=y&&y.res,v=y&&y.usedKey||s,m=y&&y.exactUsedKey||s,h=Object.prototype.toString.apply(g),b=["[object Number]","[object Function]","[object RegExp]"],w=r.joinArrays!==void 0?r.joinArrays:this.options.joinArrays,E=!this.i18nFormat||this.i18nFormat.handleAsObject,x=typeof g!="string"&&typeof g!="boolean"&&typeof g!="number";if(E&&g&&x&&b.indexOf(h)<0&&(typeof w!="string"||h!=="[object Array]")){if(!r.returnObjects&&!this.options.returnObjects)return this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(v,g,Ve({},r,{ns:l})):"key '".concat(s," (").concat(this.language,")' returned an object instead of string.");if(a){var C=h==="[object Array]",O=C?[]:{},F=C?m:v;for(var R in g)if(Object.prototype.hasOwnProperty.call(g,R)){var H="".concat(F).concat(a).concat(R);O[R]=this.translate(H,Ve({},r,{joinArrays:!1,ns:l})),O[R]===H&&(O[R]=g[R])}g=O}}else if(E&&typeof w=="string"&&h==="[object Array]")(g=g.join(w))&&(g=this.extendTranslation(g,n,r,o));else{var M=!1,K=!1,U=r.count!==void 0&&typeof r.count!="string",W=e.hasDefaultValue(r),q=U?this.pluralResolver.getSuffix(f,r.count):"",nt=r["defaultValue".concat(q)]||r.defaultValue;!this.isValidLookup(g)&&W&&(M=!0,g=nt),this.isValidLookup(g)||(K=!0,g=s);var lt=r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,st=lt&&K?void 0:g,at=W&&nt!==g&&this.options.updateMissing;if(K||M||at){if(this.logger.log(at?"updateKey":"missingKey",f,c,s,at?nt:g),a){var k=this.resolve(s,Ve({},r,{keySeparator:!1}));k&&k.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var S=[],P=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(this.options.saveMissingTo==="fallback"&&P&&P[0])for(var $=0;$<P.length;$++)S.push(P[$]);else this.options.saveMissingTo==="all"?S=this.languageUtils.toResolveHierarchy(r.lng||this.language):S.push(r.lng||this.language);var Y=function(V,it,gt){i.options.missingKeyHandler?i.options.missingKeyHandler(V,c,it,at?gt:st,at,r):i.backendConnector&&i.backendConnector.saveMissing&&i.backendConnector.saveMissing(V,c,it,at?gt:st,at,r),i.emit("missingKey",V,c,it,g)};this.options.saveMissing&&(this.options.saveMissingPlurals&&U?S.forEach(function(V){i.pluralResolver.getSuffixes(V).forEach(function(it){Y([V],s+it,r["defaultValue".concat(it)]||nt)})}):Y(S,s,nt))}g=this.extendTranslation(g,n,r,y,o),K&&g===s&&this.options.appendNamespaceToMissingKey&&(g="".concat(c,":").concat(s)),(K||M)&&this.options.parseMissingKeyHandler&&(g=this.options.parseMissingKeyHandler(g))}return g}},{key:"extendTranslation",value:function(n,r,o,i,a){var u=this;if(this.i18nFormat&&this.i18nFormat.parse)n=this.i18nFormat.parse(n,o,i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!o.skipInterpolation){o.interpolation&&this.interpolator.init(Ve({},o,{interpolation:Ve({},this.options.interpolation,o.interpolation)}));var s,l=o.interpolation&&o.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;if(l){var c=n.match(this.interpolator.nestingRegexp);s=c&&c.length}var f=o.replace&&typeof o.replace!="string"?o.replace:o;if(this.options.interpolation.defaultVariables&&(f=Ve({},this.options.interpolation.defaultVariables,f)),n=this.interpolator.interpolate(n,f,o.lng||this.language,o),l){var p=n.match(this.interpolator.nestingRegexp);s<(p&&p.length)&&(o.nest=!1)}o.nest!==!1&&(n=this.interpolator.nest(n,function(){for(var g=arguments.length,v=new Array(g),m=0;m<g;m++)v[m]=arguments[m];return a&&a[0]===v[0]&&!o.context?(u.logger.warn("It seems you are nesting recursively key: ".concat(v[0]," in key: ").concat(r[0])),null):u.translate.apply(u,v.concat([r]))},o)),o.interpolation&&this.interpolator.reset()}var d=o.postProcess||this.options.postProcess,y=typeof d=="string"?[d]:d;return n!=null&&y&&y.length&&o.applyPostProcessor!==!1&&(n=fI.handle(y,n,r,this.options&&this.options.postProcessPassResolved?Ve({i18nResolved:i},o):o,this)),n}},{key:"resolve",value:function(n){var r,o,i,a,u,s=this,l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return typeof n=="string"&&(n=[n]),n.forEach(function(c){if(!s.isValidLookup(r)){var f=s.extractFromKey(c,l),p=f.key;o=p;var d=f.namespaces;s.options.fallbackNS&&(d=d.concat(s.options.fallbackNS));var y=l.count!==void 0&&typeof l.count!="string",g=l.context!==void 0&&(typeof l.context=="string"||typeof l.context=="number")&&l.context!=="",v=l.lngs?l.lngs:s.languageUtils.toResolveHierarchy(l.lng||s.language,l.fallbackLng);d.forEach(function(m){s.isValidLookup(r)||(u=m,!cO["".concat(v[0],"-").concat(m)]&&s.utils&&s.utils.hasLoadedNamespace&&!s.utils.hasLoadedNamespace(u)&&(cO["".concat(v[0],"-").concat(m)]=!0,s.logger.warn('key "'.concat(o,'" for languages "').concat(v.join(", "),`" won't get resolved as namespace "`).concat(u,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),v.forEach(function(h){if(!s.isValidLookup(r)){a=h;var b,w,E=p,x=[E];for(s.i18nFormat&&s.i18nFormat.addLookupKeys?s.i18nFormat.addLookupKeys(x,p,h,m,l):(y&&(b=s.pluralResolver.getSuffix(h,l.count)),y&&g&&x.push(E+b),g&&x.push(E+="".concat(s.options.contextSeparator).concat(l.context)),y&&x.push(E+=b));w=x.pop();)s.isValidLookup(r)||(i=w,r=s.getResource(h,m,w,l))}}))})}}),{res:r,usedKey:o,exactUsedKey:i,usedLng:a,usedNS:u}}},{key:"isValidLookup",value:function(n){return!(n===void 0||!this.options.returnNull&&n===null||!this.options.returnEmptyString&&n==="")}},{key:"getResource",value:function(n,r,o){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(n,r,o,i):this.resourceStore.getResource(n,r,o,i)}}],[{key:"hasDefaultValue",value:function(n){var r="defaultValue";for(var o in n)if(Object.prototype.hasOwnProperty.call(n,o)&&r===o.substring(0,r.length)&&n[o]!==void 0)return!0;return!1}}]),e}();function Lb(t){return t.charAt(0).toUpperCase()+t.slice(1)}var Stt=function(){function t(e){ci(this,t),this.options=e,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=ei.create("languageUtils")}return fi(t,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var n=e.split("-");return n.length===2?null:(n.pop(),n[n.length-1].toLowerCase()==="x"?null:this.formatLanguageCode(n.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var n=e.split("-");return this.formatLanguageCode(n[0])}},{key:"formatLanguageCode",value:function(e){if(typeof e=="string"&&e.indexOf("-")>-1){var n=["hans","hant","latn","cyrl","cans","mong","arab"],r=e.split("-");return this.options.lowerCaseLng?r=r.map(function(o){return o.toLowerCase()}):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=Lb(r[1].toLowerCase()))):r.length===3&&(r[0]=r[0].toLowerCase(),r[1].length===2&&(r[1]=r[1].toUpperCase()),r[0]!=="sgn"&&r[2].length===2&&(r[2]=r[2].toUpperCase()),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=Lb(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=Lb(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isWhitelisted",value:function(e){return this.logger.deprecate("languageUtils.isWhitelisted",`function "isWhitelisted" will be renamed to "isSupportedCode" in the next major - please make sure to rename it's usage asap.`),this.isSupportedCode(e)}},{key:"isSupportedCode",value:function(e){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var n,r=this;return e?(e.forEach(function(o){if(!n){var i=r.formatLanguageCode(o);r.options.supportedLngs&&!r.isSupportedCode(i)||(n=i)}}),!n&&this.options.supportedLngs&&e.forEach(function(o){if(!n){var i=r.getLanguagePartFromCode(o);if(r.isSupportedCode(i))return n=i;n=r.options.supportedLngs.find(function(a){if(a.indexOf(i)===0)return a})}}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n):null}},{key:"getFallbackCodes",value:function(e,n){if(!e)return[];if(typeof e=="function"&&(e=e(n)),typeof e=="string"&&(e=[e]),Object.prototype.toString.apply(e)==="[object Array]")return e;if(!n)return e.default||[];var r=e[n];return r||(r=e[this.getScriptPartFromCode(n)]),r||(r=e[this.formatLanguageCode(n)]),r||(r=e[this.getLanguagePartFromCode(n)]),r||(r=e.default),r||[]}},{key:"toResolveHierarchy",value:function(e,n){var r=this,o=this.getFallbackCodes(n||this.options.fallbackLng||[],e),i=[],a=function(u){u&&(r.isSupportedCode(u)?i.push(u):r.logger.warn("rejecting language code not found in supportedLngs: ".concat(u)))};return typeof e=="string"&&e.indexOf("-")>-1?(this.options.load!=="languageOnly"&&a(this.formatLanguageCode(e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&a(this.getScriptPartFromCode(e)),this.options.load!=="currentOnly"&&a(this.getLanguagePartFromCode(e))):typeof e=="string"&&a(this.formatLanguageCode(e)),o.forEach(function(u){i.indexOf(u)<0&&a(r.formatLanguageCode(u))}),i}}]),t}(),Att=[{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}],Ott={1:function(t){return+(t>1)},2:function(t){return+(t!=1)},3:function(t){return 0},4:function(t){return t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2},5:function(t){return t==0?0:t==1?1:t==2?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5},6:function(t){return t==1?0:t>=2&&t<=4?1:2},7:function(t){return t==1?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2},8:function(t){return t==1?0:t==2?1:t!=8&&t!=11?2:3},9:function(t){return+(t>=2)},10:function(t){return t==1?0:t==2?1:t<7?2:t<11?3:4},11:function(t){return t==1||t==11?0:t==2||t==12?1:t>2&&t<20?2:3},12:function(t){return+(t%10!=1||t%100==11)},13:function(t){return+(t!==0)},14:function(t){return t==1?0:t==2?1:t==3?2:3},15:function(t){return t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2},16:function(t){return t%10==1&&t%100!=11?0:t!==0?1:2},17:function(t){return t==1||t%10==1&&t%100!=11?0:1},18:function(t){return t==0?0:t==1?1:2},19:function(t){return t==1?0:t==0||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3},20:function(t){return t==1?0:t==0||t%100>0&&t%100<20?1:2},21:function(t){return t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0},22:function(t){return t==1?0:t==2?1:(t<0||t>10)&&t%10==0?2:3}};function ktt(){var t={};return Att.forEach(function(e){e.lngs.forEach(function(n){t[n]={numbers:e.nr,plurals:Ott[e.fc]}})}),t}var Btt=function(){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};ci(this,t),this.languageUtils=e,this.options=n,this.logger=ei.create("pluralResolver"),this.rules=ktt()}return fi(t,[{key:"addRule",value:function(e,n){this.rules[e]=n}},{key:"getRule",value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var n=this.getRule(e);return n&&n.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,n){return this.getSuffixes(e).map(function(r){return n+r})}},{key:"getSuffixes",value:function(e){var n=this,r=this.getRule(e);return r?r.numbers.map(function(o){return n.getSuffix(e,o)}):[]}},{key:"getSuffix",value:function(e,n){var r=this,o=this.getRule(e);if(o){var i=o.noAbs?o.plurals(n):o.plurals(Math.abs(n)),a=o.numbers[i];this.options.simplifyPluralSuffix&&o.numbers.length===2&&o.numbers[0]===1&&(a===2?a="plural":a===1&&(a=""));var u=function(){return r.options.prepend&&a.toString()?r.options.prepend+a.toString():a.toString()};return this.options.compatibilityJSON==="v1"?a===1?"":typeof a=="number"?"_plural_".concat(a.toString()):u():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&o.numbers.length===2&&o.numbers[0]===1?u():this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString()}return this.logger.warn("no plural rule found for: ".concat(e)),""}}]),t}(),Ftt=function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ci(this,t),this.logger=ei.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||function(n){return n},this.init(e)}return fi(t,[{key:"init",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var n=e.interpolation;this.escape=n.escape!==void 0?n.escape:Ctt,this.escapeValue=n.escapeValue===void 0||n.escapeValue,this.useRawValueToEscape=n.useRawValueToEscape!==void 0&&n.useRawValueToEscape,this.prefix=n.prefix?Rs(n.prefix):n.prefixEscaped||"{{",this.suffix=n.suffix?Rs(n.suffix):n.suffixEscaped||"}}",this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||",",this.unescapePrefix=n.unescapeSuffix?"":n.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":n.unescapeSuffix||"",this.nestingPrefix=n.nestingPrefix?Rs(n.nestingPrefix):n.nestingPrefixEscaped||Rs("$t("),this.nestingSuffix=n.nestingSuffix?Rs(n.nestingSuffix):n.nestingSuffixEscaped||Rs(")"),this.nestingOptionsSeparator=n.nestingOptionsSeparator?n.nestingOptionsSeparator:n.nestingOptionsSeparator||",",this.maxReplaces=n.maxReplaces?n.maxReplaces:1e3,this.alwaysFormat=n.alwaysFormat!==void 0&&n.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(e,"g");var n="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(n,"g");var r="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(r,"g")}},{key:"interpolate",value:function(e,n,r,o){var i,a,u,s=this,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function c(g){return g.replace(/\$/g,"$$$$")}var f=function(g){if(g.indexOf(s.formatSeparator)<0){var v=lO(n,l,g);return s.alwaysFormat?s.format(v,void 0,r,Ve({},o,n,{interpolationkey:g})):v}var m=g.split(s.formatSeparator),h=m.shift().trim(),b=m.join(s.formatSeparator).trim();return s.format(lO(n,l,h),b,r,Ve({},o,n,{interpolationkey:h}))};this.resetRegExp();var p=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,d=o&&o.interpolation&&o.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables,y=[{regex:this.regexpUnescape,safeValue:function(g){return c(g)}},{regex:this.regexp,safeValue:function(g){return s.escapeValue?c(s.escape(g)):c(g)}}];return y.forEach(function(g){for(u=0;i=g.regex.exec(e);){if((a=f(i[1].trim()))===void 0)if(typeof p=="function"){var v=p(e,i,o);a=typeof v=="string"?v:""}else{if(d){a=i[0];continue}s.logger.warn("missed to pass in variable ".concat(i[1]," for interpolating ").concat(e)),a=""}else typeof a=="string"||s.useRawValueToEscape||(a=uO(a));var m=g.safeValue(a);if(e=e.replace(i[0],m),d?(g.regex.lastIndex+=m.length,g.regex.lastIndex-=i[0].length):g.regex.lastIndex=0,++u>=s.maxReplaces)break}}),e}},{key:"nest",value:function(e,n){var r,o,i=this,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},u=Ve({},a);function s(p,d){var y=this.nestingOptionsSeparator;if(p.indexOf(y)<0)return p;var g=p.split(new RegExp("".concat(y,"[ ]*{"))),v="{".concat(g[1]);p=g[0],v=(v=this.interpolate(v,u)).replace(/'/g,'"');try{u=JSON.parse(v),d&&(u=Ve({},d,u))}catch(m){return this.logger.warn("failed parsing options string in nesting for key ".concat(p),m),"".concat(p).concat(y).concat(v)}return delete u.defaultValue,p}for(u.applyPostProcessor=!1,delete u.defaultValue;r=this.nestingRegexp.exec(e);){var l=[],c=!1;if(r[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(r[1])){var f=r[1].split(this.formatSeparator).map(function(p){return p.trim()});r[1]=f.shift(),l=f,c=!0}if((o=n(s.call(this,r[1].trim(),u),u))&&r[0]===e&&typeof o!="string")return o;typeof o!="string"&&(o=uO(o)),o||(this.logger.warn("missed to resolve ".concat(r[1]," for nesting ").concat(e)),o=""),c&&(o=l.reduce(function(p,d){return i.format(p,d,a.lng,Ve({},a,{interpolationkey:r[1].trim()}))},o.trim())),e=e.replace(r[0],o),this.regexp.lastIndex=0}return e}}]),t}(),_tt=function(t){function e(n,r,o){var i,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return ci(this,e),i=rp(this,Xl(e).call(this)),sm&&Oa.call(rs(i)),i.backend=n,i.store=r,i.services=o,i.languageUtils=o.languageUtils,i.options=a,i.logger=ei.create("backendConnector"),i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(o,a.backend,a),i}return um(e,Oa),fi(e,[{key:"queueLoad",value:function(n,r,o,i){var a=this,u=[],s=[],l=[],c=[];return n.forEach(function(f){var p=!0;r.forEach(function(d){var y="".concat(f,"|").concat(d);!o.reload&&a.store.hasResourceBundle(f,d)?a.state[y]=2:a.state[y]<0||(a.state[y]===1?s.indexOf(y)<0&&s.push(y):(a.state[y]=1,p=!1,s.indexOf(y)<0&&s.push(y),u.indexOf(y)<0&&u.push(y),c.indexOf(d)<0&&c.push(d)))}),p||l.push(f)}),(u.length||s.length)&&this.queue.push({pending:s,loaded:{},errors:[],callback:i}),{toLoad:u,pending:s,toLoadLanguages:l,toLoadNamespaces:c}}},{key:"loaded",value:function(n,r,o){var i=n.split("|"),a=i[0],u=i[1];r&&this.emit("failedLoading",a,u,r),o&&this.store.addResourceBundle(a,u,o),this.state[n]=r?-1:2;var s={};this.queue.forEach(function(l){(function(c,f,p,d){var y=RD(c,f,Object),g=y.obj,v=y.k;g[v]=g[v]||[],g[v].push(p)})(l.loaded,[a],u),function(c,f){for(var p=c.indexOf(f);p!==-1;)c.splice(p,1),p=c.indexOf(f)}(l.pending,n),r&&l.errors.push(r),l.pending.length!==0||l.done||(Object.keys(l.loaded).forEach(function(c){s[c]||(s[c]=[]),l.loaded[c].length&&l.loaded[c].forEach(function(f){s[c].indexOf(f)<0&&s[c].push(f)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",s),this.queue=this.queue.filter(function(l){return!l.done})}},{key:"read",value:function(n,r,o){var i=this,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,u=arguments.length>4&&arguments[4]!==void 0?arguments[4]:350,s=arguments.length>5?arguments[5]:void 0;return n.length?this.backend[o](n,r,function(l,c){l&&c&&a<5?setTimeout(function(){i.read.call(i,n,r,o,a+1,2*u,s)},u):s(l,c)}):s(null,{})}},{key:"prepareLoading",value:function(n,r){var o=this,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),a&&a();typeof n=="string"&&(n=this.languageUtils.toResolveHierarchy(n)),typeof r=="string"&&(r=[r]);var u=this.queueLoad(n,r,i,a);if(!u.toLoad.length)return u.pending.length||a(),null;u.toLoad.forEach(function(s){o.loadOne(s)})}},{key:"load",value:function(n,r,o){this.prepareLoading(n,r,{},o)}},{key:"reload",value:function(n,r,o){this.prepareLoading(n,r,{reload:!0},o)}},{key:"loadOne",value:function(n){var r=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",i=n.split("|"),a=i[0],u=i[1];this.read(a,u,"read",void 0,void 0,function(s,l){s&&r.logger.warn("".concat(o,"loading namespace ").concat(u," for language ").concat(a," failed"),s),!s&&l&&r.logger.log("".concat(o,"loaded namespace ").concat(u," for language ").concat(a),l),r.loaded(n,s,l)})}},{key:"saveMissing",value:function(n,r,o,i,a){var u=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(r)?this.logger.warn('did not save key "'.concat(o,'" as the namespace "').concat(r,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):o!=null&&o!==""&&(this.backend&&this.backend.create&&this.backend.create(n,r,o,i,null,Ve({},u,{isUpdate:a})),n&&n[0]&&this.store.addResource(n[0],r,o,i))}}]),e}();function Ttt(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(t){var e={};if(sa(t[1])==="object"&&(e=t[1]),typeof t[1]=="string"&&(e.defaultValue=t[1]),typeof t[2]=="string"&&(e.tDescription=t[2]),sa(t[2])==="object"||sa(t[3])==="object"){var n=t[3]||t[2];Object.keys(n).forEach(function(r){e[r]=n[r]})}return e},interpolation:{escapeValue:!0,format:function(t,e,n,r){return t},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}}}function dO(t){return typeof t.ns=="string"&&(t.ns=[t.ns]),typeof t.fallbackLng=="string"&&(t.fallbackLng=[t.fallbackLng]),typeof t.fallbackNS=="string"&&(t.fallbackNS=[t.fallbackNS]),t.whitelist&&(t.whitelist&&t.whitelist.indexOf("cimode")<0&&(t.whitelist=t.whitelist.concat(["cimode"])),t.supportedLngs=t.whitelist),t.nonExplicitWhitelist&&(t.nonExplicitSupportedLngs=t.nonExplicitWhitelist),t.supportedLngs&&t.supportedLngs.indexOf("cimode")<0&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),t}function a0(){}var Ptt=function(t){function e(){var n,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(ci(this,e),n=rp(this,Xl(e).call(this)),sm&&Oa.call(rs(n)),n.options=dO(r),n.services={},n.logger=ei,n.modules={external:[]},o&&!n.isInitialized&&!r.isClone){if(!n.options.initImmediate)return n.init(r,o),rp(n,rs(n));setTimeout(function(){n.init(r,o)},0)}return n}return um(e,Oa),fi(e,[{key:"init",value:function(){var n=this,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;function i(d){return d?typeof d=="function"?new d:d:null}if(typeof r=="function"&&(o=r,r={}),r.whitelist&&!r.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),r.nonExplicitWhitelist&&!r.nonExplicitSupportedLngs&&this.logger.deprecate("whitelist",'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'),this.options=Ve({},Ttt(),this.options,dO(r)),this.format=this.options.interpolation.format,o||(o=a0),!this.options.isClone){this.modules.logger?ei.init(i(this.modules.logger),this.options):ei.init(null,this.options);var a=new Stt(this.options);this.store=new xtt(this.options.resources,this.options);var u=this.services;u.logger=ei,u.resourceStore=this.store,u.languageUtils=a,u.pluralResolver=new Btt(a,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),u.interpolator=new Ftt(this.options),u.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},u.backendConnector=new _tt(i(this.modules.backend),u.resourceStore,u,this.options),u.backendConnector.on("*",function(d){for(var y=arguments.length,g=new Array(y>1?y-1:0),v=1;v<y;v++)g[v-1]=arguments[v];n.emit.apply(n,[d].concat(g))}),this.modules.languageDetector&&(u.languageDetector=i(this.modules.languageDetector),u.languageDetector.init(u,this.options.detection,this.options)),this.modules.i18nFormat&&(u.i18nFormat=i(this.modules.i18nFormat),u.i18nFormat.init&&u.i18nFormat.init(this)),this.translator=new fO(this.services,this.options),this.translator.on("*",function(d){for(var y=arguments.length,g=new Array(y>1?y-1:0),v=1;v<y;v++)g[v-1]=arguments[v];n.emit.apply(n,[d].concat(g))}),this.modules.external.forEach(function(d){d.init&&d.init(n)})}if(this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var s=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);s.length>0&&s[0]!=="dev"&&(this.options.lng=s[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");var l=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];l.forEach(function(d){n[d]=function(){var y;return(y=n.store)[d].apply(y,arguments)}});var c=["addResource","addResources","addResourceBundle","removeResourceBundle"];c.forEach(function(d){n[d]=function(){var y;return(y=n.store)[d].apply(y,arguments),n}});var f=sf(),p=function(){var d=function(y,g){n.isInitialized&&!n.initializedStoreOnce&&n.logger.warn("init: i18next is already initialized. You should call init just once!"),n.isInitialized=!0,n.options.isClone||n.logger.log("initialized",n.options),n.emit("initialized",n.options),f.resolve(g),o(y,g)};if(n.languages&&n.options.compatibilityAPI!=="v1"&&!n.isInitialized)return d(null,n.t.bind(n));n.changeLanguage(n.options.lng,d)};return this.options.resources||!this.options.initImmediate?p():setTimeout(p,0),f}},{key:"loadResources",value:function(n){var r=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:a0,i=o,a=typeof n=="string"?n:this.language;if(typeof n=="function"&&(i=n),!this.options.resources||this.options.partialBundledLanguages){if(a&&a.toLowerCase()==="cimode")return i();var u=[],s=function(c){c&&r.services.languageUtils.toResolveHierarchy(c).forEach(function(f){u.indexOf(f)<0&&u.push(f)})};if(a)s(a);else{var l=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);l.forEach(function(c){return s(c)})}this.options.preload&&this.options.preload.forEach(function(c){return s(c)}),this.services.backendConnector.load(u,this.options.ns,i)}else i(null)}},{key:"reloadResources",value:function(n,r,o){var i=sf();return n||(n=this.languages),r||(r=this.options.ns),o||(o=a0),this.services.backendConnector.reload(n,r,function(a){i.resolve(),o(a)}),i}},{key:"use",value:function(n){if(!n)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!n.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return n.type==="backend"&&(this.modules.backend=n),(n.type==="logger"||n.log&&n.warn&&n.error)&&(this.modules.logger=n),n.type==="languageDetector"&&(this.modules.languageDetector=n),n.type==="i18nFormat"&&(this.modules.i18nFormat=n),n.type==="postProcessor"&&fI.addPostProcessor(n),n.type==="3rdParty"&&this.modules.external.push(n),this}},{key:"changeLanguage",value:function(n,r){var o=this;this.isLanguageChangingTo=n;var i=sf();this.emit("languageChanging",n);var a=function(u){n||u||!o.services.languageDetector||(u=[]);var s=typeof u=="string"?u:o.services.languageUtils.getBestMatchFromCodes(u);s&&(o.language||(o.language=s,o.languages=o.services.languageUtils.toResolveHierarchy(s)),o.translator.language||o.translator.changeLanguage(s),o.services.languageDetector&&o.services.languageDetector.cacheUserLanguage(s)),o.loadResources(s,function(l){(function(c,f){f?(o.language=f,o.languages=o.services.languageUtils.toResolveHierarchy(f),o.translator.changeLanguage(f),o.isLanguageChangingTo=void 0,o.emit("languageChanged",f),o.logger.log("languageChanged",f)):o.isLanguageChangingTo=void 0,i.resolve(function(){return o.t.apply(o,arguments)}),r&&r(c,function(){return o.t.apply(o,arguments)})})(l,s)})};return n||!this.services.languageDetector||this.services.languageDetector.async?!n&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(a):a(n):a(this.services.languageDetector.detect()),i}},{key:"getFixedT",value:function(n,r,o){var i=this,a=function u(s,l){var c;if(sa(l)!=="object"){for(var f=arguments.length,p=new Array(f>2?f-2:0),d=2;d<f;d++)p[d-2]=arguments[d];c=i.options.overloadTranslationOptionHandler([s,l].concat(p))}else c=Ve({},l);c.lng=c.lng||u.lng,c.lngs=c.lngs||u.lngs,c.ns=c.ns||u.ns;var y=i.options.keySeparator||".",g=o?"".concat(o).concat(y).concat(s):s;return i.t(g,c)};return typeof n=="string"?a.lng=n:a.lngs=n,a.ns=r,a.keyPrefix=o,a}},{key:"t",value:function(){var n;return this.translator&&(n=this.translator).translate.apply(n,arguments)}},{key:"exists",value:function(){var n;return this.translator&&(n=this.translator).exists.apply(n,arguments)}},{key:"setDefaultNamespace",value:function(n){this.options.defaultNS=n}},{key:"hasLoadedNamespace",value:function(n){var r=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var i=this.languages[0],a=!!this.options&&this.options.fallbackLng,u=this.languages[this.languages.length-1];if(i.toLowerCase()==="cimode")return!0;var s=function(c,f){var p=r.services.backendConnector.state["".concat(c,"|").concat(f)];return p===-1||p===2};if(o.precheck){var l=o.precheck(this,s);if(l!==void 0)return l}return!!this.hasResourceBundle(i,n)||!this.services.backendConnector.backend||!(!s(i,n)||a&&!s(u,n))}},{key:"loadNamespaces",value:function(n,r){var o=this,i=sf();return this.options.ns?(typeof n=="string"&&(n=[n]),n.forEach(function(a){o.options.ns.indexOf(a)<0&&o.options.ns.push(a)}),this.loadResources(function(a){i.resolve(),r&&r(a)}),i):(r&&r(),Promise.resolve())}},{key:"loadLanguages",value:function(n,r){var o=sf();typeof n=="string"&&(n=[n]);var i=this.options.preload||[],a=n.filter(function(u){return i.indexOf(u)<0});return a.length?(this.options.preload=i.concat(a),this.loadResources(function(u){o.resolve(),r&&r(u)}),o):(r&&r(),Promise.resolve())}},{key:"dir",value:function(n){return n||(n=this.languages&&this.languages.length>0?this.languages[0]:this.language),n?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"].indexOf(this.services.languageUtils.getLanguagePartFromCode(n))>=0?"rtl":"ltr":"rtl"}},{key:"createInstance",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;return new e(n,r)}},{key:"cloneInstance",value:function(){var n=this,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:a0,i=Ve({},this.options,r,{isClone:!0}),a=new e(i),u=["store","services","language"];return u.forEach(function(s){a[s]=n[s]}),a.services=Ve({},this.services),a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a.translator=new fO(a.services,a.options),a.translator.on("*",function(s){for(var l=arguments.length,c=new Array(l>1?l-1:0),f=1;f<l;f++)c[f-1]=arguments[f];a.emit.apply(a,[s].concat(c))}),a.init(i,o),a.translator.options=a.options,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages}}}]),e}(),Cv=new Ptt;function Yn(t,e){Cv.addResourceBundle(t,"translation",e,!0,!0)}Cv.init({lng:"zh-CN",resources:{}});var tt=Cv.t.bind(Cv);Yn("en",{editor:{more:"More",justify:"Justify",indent:"Indent",image:"Image",video:"Video"}}),Yn("zh-CN",{editor:{more:"更多",justify:"对齐",indent:"缩进",image:"图片",video:"视频"}});var jtt=O5?{}.toString:function(){return"[object "+$1(this)+"]"};O5||ia(Object.prototype,"toString",jtt,{unsafe:!0});var pO=Array.isArray||function(t){return Ou(t)=="Array"},dI=function(){},Ntt=[],pI=Mp("Reflect","construct"),MD=/^\s*(?:class|function)\b/,Itt=ie(MD.exec),Ltt=!MD.exec(dI),lf=function(t){if(!Ge(t))return!1;try{return pI(dI,Ntt,t),!0}catch{return!1}},Rtt=!pI||cn(function(){var t;return lf(lf.call)||!lf(Object)||!lf(function(){t=!0})||t})?function(t){if(!Ge(t))return!1;switch($1(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Ltt||!!Itt(MD,D5(t))}:lf,Mtt=Ln("species"),hO=Et.Array,ztt=function(t,e){return new(function(n){var r;return pO(n)&&(r=n.constructor,(Rtt(r)&&(r===hO||pO(r.prototype))||Wr(r)&&(r=r[Mtt])===null)&&(r=void 0)),r===void 0?hO:r}(t))(e===0?0:e)},gO=ie([].push),Bi=function(t){var e=t==1,n=t==2,r=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var p,d,y=y5(s),g=FP(y),v=HP(l,c),m=z1(g),h=0,b=f||ztt,w=e?b(s,m):n||a?b(s,0):void 0;m>h;h++)if((u||h in g)&&(d=v(p=g[h],h,y),t))if(e)w[h]=d;else if(d)switch(t){case 3:return!0;case 5:return p;case 6:return h;case 2:gO(w,p)}else switch(t){case 4:return!1;case 7:gO(w,p)}return i?-1:r||o?o:w}},$tt={forEach:Bi(0),map:Bi(1),filter:Bi(2),some:Bi(3),every:Bi(4),find:Bi(5),findIndex:Bi(6),filterReject:Bi(7)}.forEach,Htt=function(t,e){var n=[][t];return!!n&&cn(function(){n.call(null,e||function(){throw 1},1)})}("forEach"),Rb=Htt?[].forEach:function(t){return $tt(this,t,arguments.length>1?arguments[1]:void 0)},hI=function(t){if(t&&t.forEach!==Rb)try{In(t,"forEach",Rb)}catch{t.forEach=Rb}};for(var Mb in Hg)Hg[Mb]&&hI(Et[Mb]&&Et[Mb].prototype);hI(WP),Yn("en",{common:{ok:"OK",delete:"Delete",enter:"Enter"},blockQuote:{title:"Quote"},codeBlock:{title:"Code block"},color:{color:"Font color",bgColor:"Back color",default:"Default color",clear:"Clear back color"},divider:{title:"Divider"},emotion:{title:"Emotion"},fontSize:{title:"Font size",default:"Default"},fontFamily:{title:"Font family",default:"Default"},fullScreen:{title:"Full screen"},header:{title:"Header",text:"Text"},image:{netImage:"Net image",delete:"Delete image",edit:"Edit image",viewLink:"View link",src:"Image src",desc:"Description",link:"Image link"},indent:{decrease:"Decrease",increase:"Increase"},justify:{left:"Left",right:"Right",center:"Center",justify:"Justify"},lineHeight:{title:"Line height",default:"Default"},link:{insert:"Insert link",text:"Link text",url:"Link source",unLink:"Unlink",edit:"Edit link",view:"View link"},textStyle:{bold:"Bold",clear:"Clear styles",code:"Inline code",italic:"Italic",sub:"Sub",sup:"Sup",through:"Through",underline:"Underline"},undo:{undo:"undo",redo:"Redo"},todo:{todo:"Todo"}}),Yn("zh-CN",{common:{ok:"确定",delete:"删除",enter:"回车"},blockQuote:{title:"引用"},codeBlock:{title:"代码块"},color:{color:"文字颜色",bgColor:"背景色",default:"默认颜色",clear:"清除背景色"},divider:{title:"分割线"},emotion:{title:"表情"},fontSize:{title:"字号",default:"默认字号"},fontFamily:{title:"字体",default:"默认字体"},fullScreen:{title:"全屏"},header:{title:"标题",text:"正文"},image:{netImage:"网络图片",delete:"删除图片",edit:"编辑图片",viewLink:"查看链接",src:"图片地址",desc:"图片描述",link:"图片链接"},indent:{decrease:"减少缩进",increase:"增加缩进"},justify:{left:"左对齐",right:"右对齐",center:"居中对齐",justify:"两端对齐"},lineHeight:{title:"行高",default:"默认行高"},link:{insert:"插入链接",text:"链接文本",url:"链接地址",unLink:"取消链接",edit:"修改链接",view:"查看链接"},textStyle:{bold:"粗体",clear:"清除格式",code:"行内代码",italic:"斜体",sub:"下标",sup:"上标",through:"删除线",underline:"下划线"},undo:{undo:"撤销",redo:"重做"},todo:{todo:"待办"}});var Vtt={type:"paragraph",renderElem:function(t,e,n){return bt("p",null,e)}},xv=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function lm(t){var e={exports:{}};return t(e,e.exports),e.exports}var Fi,ug,u0=function(t){return t&&t.Math==Math&&t},St=u0(typeof globalThis=="object"&&globalThis)||u0(typeof window=="object"&&window)||u0(typeof self=="object"&&self)||u0(typeof xv=="object"&&xv)||function(){return this}()||Function("return this")(),Ce=function(t){try{return!!t()}catch{return!0}},ro=!Ce(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),cf=Function.prototype.call,_e=cf.bind?cf.bind(cf):function(){return cf.apply(cf,arguments)},vO={}.propertyIsEnumerable,mO=Object.getOwnPropertyDescriptor,Utt=mO&&!vO.call({1:2},1)?function(t){var e=mO(this,t);return!!e&&e.enumerable}:vO,gI={f:Utt},zD=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},vI=Function.prototype,JE=vI.bind,QE=vI.call,Wtt=JE&&JE.bind(QE),mt=JE?function(t){return t&&Wtt(QE,t)}:function(t){return t&&function(){return QE.apply(t,arguments)}},Gtt=mt({}.toString),qtt=mt("".slice),la=function(t){return qtt(Gtt(t),8,-1)},zb=St.Object,Ktt=mt("".split),cm=Ce(function(){return!zb("z").propertyIsEnumerable(0)})?function(t){return la(t)=="String"?Ktt(t,""):zb(t)}:zb,Ytt=St.TypeError,Ir=function(t){if(t==null)throw Ytt("Can't call method on "+t);return t},mc=function(t){return cm(Ir(t))},gn=function(t){return typeof t=="function"},Sr=function(t){return typeof t=="object"?t!==null:gn(t)},Xtt=function(t){return gn(t)?t:void 0},Zp=function(t,e){return arguments.length<2?Xtt(St[t]):St[t]&&St[t][e]},mI=mt({}.isPrototypeOf),$b=Zp("navigator","userAgent")||"",yO=St.process,bO=St.Deno,wO=yO&&yO.versions||bO&&bO.version,EO=wO&&wO.v8;EO&&(ug=(Fi=EO.split("."))[0]>0&&Fi[0]<4?1:+(Fi[0]+Fi[1])),!ug&&$b&&(!(Fi=$b.match(/Edge\/(\d+)/))||Fi[1]>=74)&&(Fi=$b.match(/Chrome\/(\d+)/))&&(ug=+Fi[1]);var t6=ug,e6=!!Object.getOwnPropertySymbols&&!Ce(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&t6&&t6<41}),$D=e6&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Ztt=St.Object,Hb=$D?function(t){return typeof t=="symbol"}:function(t){var e=Zp("Symbol");return gn(e)&&mI(e.prototype,Ztt(t))},Jtt=St.String,yI=function(t){try{return Jtt(t)}catch{return"Object"}},Qtt=St.TypeError,bI=function(t){if(gn(t))return t;throw Qtt(yI(t)+" is not a function")},fm=function(t,e){var n=t[e];return n==null?void 0:bI(n)},tet=St.TypeError,eet=Object.defineProperty,HD=function(t,e){try{eet(St,t,{value:e,configurable:!0,writable:!0})}catch{St[t]=e}return e},ca=St["__core-js_shared__"]||HD("__core-js_shared__",{}),VD=lm(function(t){(t.exports=function(e,n){return ca[e]||(ca[e]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),net=St.Object,Jp=function(t){return net(Ir(t))},ret=mt({}.hasOwnProperty),kr=Object.hasOwn||function(t,e){return ret(Jp(t),e)},oet=0,iet=Math.random(),aet=mt(1 .toString),wI=function(t){return"Symbol("+(t===void 0?"":t)+")_"+aet(++oet+iet,36)},ff=VD("wks"),Nu=St.Symbol,DO=Nu&&Nu.for,uet=$D?Nu:Nu&&Nu.withoutSetter||wI,hr=function(t){if(!kr(ff,t)||!e6&&typeof ff[t]!="string"){var e="Symbol."+t;e6&&kr(Nu,t)?ff[t]=Nu[t]:ff[t]=$D&&DO?DO(e):uet(e)}return ff[t]},set=St.TypeError,cet=hr("toPrimitive"),UD=function(t){var e=function(n,r){if(!Sr(n)||Hb(n))return n;var o,i=fm(n,cet);if(i){if(r===void 0&&(r="default"),o=_e(i,n,r),!Sr(o)||Hb(o))return o;throw set("Can't convert object to primitive value")}return r===void 0&&(r="number"),function(a,u){var s,l;if(u==="string"&&gn(s=a.toString)&&!Sr(l=_e(s,a))||gn(s=a.valueOf)&&!Sr(l=_e(s,a))||u!=="string"&&gn(s=a.toString)&&!Sr(l=_e(s,a)))return l;throw tet("Can't convert object to primitive value")}(n,r)}(t,"string");return Hb(e)?e:e+""},n6=St.document,fet=Sr(n6)&&Sr(n6.createElement),WD=function(t){return fet?n6.createElement(t):{}},EI=!ro&&!Ce(function(){return Object.defineProperty(WD("div"),"a",{get:function(){return 7}}).a!=7}),CO=Object.getOwnPropertyDescriptor,GD={f:ro?CO:function(t,e){if(t=mc(t),e=UD(e),EI)try{return CO(t,e)}catch{}if(kr(t,e))return zD(!_e(gI.f,t,e),t[e])}},det=St.String,pet=St.TypeError,ir=function(t){if(Sr(t))return t;throw pet(det(t)+" is not an object")},het=St.TypeError,xO=Object.defineProperty,yc={f:ro?xO:function(t,e,n){if(ir(t),e=UD(e),ir(n),EI)try{return xO(t,e,n)}catch{}if("get"in n||"set"in n)throw het("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},Zl=ro?function(t,e,n){return yc.f(t,e,zD(1,n))}:function(t,e,n){return t[e]=n,t},get=mt(Function.toString);gn(ca.inspectSource)||(ca.inspectSource=function(t){return get(t)});var Sv,yd,Av,qD=ca.inspectSource,SO=St.WeakMap,vet=gn(SO)&&/native code/.test(qD(SO)),AO=VD("keys"),DI=function(t){return AO[t]||(AO[t]=wI(t))},KD={},r6=St.TypeError,met=St.WeakMap;if(vet||ca.state){var eu=ca.state||(ca.state=new met),yet=mt(eu.get),OO=mt(eu.has),bet=mt(eu.set);Sv=function(t,e){if(OO(eu,t))throw new r6("Object already initialized");return e.facade=t,bet(eu,t,e),e},yd=function(t){return yet(eu,t)||{}},Av=function(t){return OO(eu,t)}}else{var Ms=DI("state");KD[Ms]=!0,Sv=function(t,e){if(kr(t,Ms))throw new r6("Object already initialized");return e.facade=t,Zl(t,Ms,e),e},yd=function(t){return kr(t,Ms)?t[Ms]:{}},Av=function(t){return kr(t,Ms)}}var o6={set:Sv,get:yd,has:Av,enforce:function(t){return Av(t)?yd(t):Sv(t,{})},getterFor:function(t){return function(e){var n;if(!Sr(e)||(n=yd(e)).type!==t)throw r6("Incompatible receiver, "+t+" required");return n}}},CI=Function.prototype,wet=ro&&Object.getOwnPropertyDescriptor,Vb=kr(CI,"name"),dm={EXISTS:Vb,PROPER:Vb&&(function(){}).name==="something",CONFIGURABLE:Vb&&(!ro||ro&&wet(CI,"name").configurable)},op=lm(function(t){var e=dm.CONFIGURABLE,n=o6.get,r=o6.enforce,o=String(String).split("String");(t.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,p=!!s&&!!s.noTargetGet,d=s&&s.name!==void 0?s.name:a;gn(u)&&(String(d).slice(0,7)==="Symbol("&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!kr(u,"name")||e&&u.name!==d)&&Zl(u,"name",d),(l=r(u)).source||(l.source=o.join(typeof d=="string"?d:""))),i!==St?(c?!p&&i[a]&&(f=!0):delete i[a],f?i[a]=u:Zl(i,a,u)):f?i[a]=u:HD(a,u)})(Function.prototype,"toString",function(){return gn(this)&&n(this).source||qD(this)})}),Eet=Math.ceil,Det=Math.floor,bc=function(t){var e=+t;return e!=e||e===0?0:(e>0?Det:Eet)(e)},Cet=Math.max,xet=Math.min,ip=function(t,e){var n=bc(t);return n<0?Cet(n+e,0):xet(n,e)},Aet=Math.min,Qp=function(t){return t>0?Aet(bc(t),9007199254740991):0},pm=function(t){return Qp(t.length)},kO=function(t){return function(e,n,r){var o,i=mc(e),a=pm(i),u=ip(r,a);if(t&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===n)return t||u||0;return!t&&-1}},xI={includes:kO(!0),indexOf:kO(!1)},Oet=xI.indexOf,BO=mt([].push),SI=function(t,e){var n,r=mc(t),o=0,i=[];for(n in r)!kr(KD,n)&&kr(r,n)&&BO(i,n);for(;e.length>o;)kr(r,n=e[o++])&&(~Oet(i,n)||BO(i,n));return i},Ov=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ket=Ov.concat("length","prototype"),Bet={f:Object.getOwnPropertyNames||function(t){return SI(t,ket)}},AI={f:Object.getOwnPropertySymbols},Fet=mt([].concat),_et=Zp("Reflect","ownKeys")||function(t){var e=Bet.f(ir(t)),n=AI.f;return n?Fet(e,n(t)):e},Tet=function(t,e){for(var n=_et(e),r=yc.f,o=GD.f,i=0;i<n.length;i++){var a=n[i];kr(t,a)||r(t,a,o(e,a))}},Pet=/#|\.prototype\./,th=function(t,e){var n=Net[jet(t)];return n==Let||n!=Iet&&(gn(e)?Ce(e):!!e)},jet=th.normalize=function(t){return String(t).replace(Pet,".").toLowerCase()},Net=th.data={},Iet=th.NATIVE="N",Let=th.POLYFILL="P",Ret=th,Met=GD.f,tn=function(t,e){var n,r,o,i,a,u=t.target,s=t.global,l=t.stat;if(n=s?St:l?St[u]||HD(u,{}):(St[u]||{}).prototype)for(r in e){if(i=e[r],o=t.noTargetGet?(a=Met(n,r))&&a.value:n[r],!Ret(s?r:u+(l?".":"#")+r,t.forced)&&o!==void 0){if(typeof i==typeof o)continue;Tet(i,o)}(t.sham||o&&o.sham)&&Zl(i,"sham",!0),op(n,r,i,t)}},FO=mt(mt.bind),kv=Array.isArray||function(t){return la(t)=="Array"},OI={};OI[hr("toStringTag")]="z";var YD=String(OI)==="[object z]",zet=hr("toStringTag"),$et=St.Object,Het=la(function(){return arguments}())=="Arguments",XD=YD?la:function(t){var e,n,r;return t===void 0?"Undefined":t===null?"Null":typeof(n=function(o,i){try{return o[i]}catch{}}(e=$et(t),zet))=="string"?n:Het?la(e):(r=la(e))=="Object"&&gn(e.callee)?"Arguments":r},kI=function(){},Vet=[],BI=Zp("Reflect","construct"),ZD=/^\s*(?:class|function)\b/,Uet=mt(ZD.exec),Wet=!ZD.exec(kI),df=function(t){if(!gn(t))return!1;try{return BI(kI,Vet,t),!0}catch{return!1}},JD=!BI||Ce(function(){var t;return df(df.call)||!df(Object)||!df(function(){t=!0})||t})?function(t){if(!gn(t))return!1;switch(XD(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Wet||!!Uet(ZD,qD(t))}:df,Get=hr("species"),_O=St.Array,qet=function(t,e){return new(function(n){var r;return kv(n)&&(r=n.constructor,(JD(r)&&(r===_O||kv(r.prototype))||Sr(r)&&(r=r[Get])===null)&&(r=void 0)),r===void 0?_O:r}(t))(e===0?0:e)},TO=mt([].push),_i=function(t){var e=t==1,n=t==2,r=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var p,d,y=Jp(s),g=cm(y),v=function(E,x){return bI(E),x===void 0?E:FO?FO(E,x):function(){return E.apply(x,arguments)}}(l,c),m=pm(g),h=0,b=f||qet,w=e?b(s,m):n||a?b(s,0):void 0;m>h;h++)if((u||h in g)&&(d=v(p=g[h],h,y),t))if(e)w[h]=d;else if(d)switch(t){case 3:return!0;case 5:return p;case 6:return h;case 2:TO(w,p)}else switch(t){case 4:return!1;case 7:TO(w,p)}return i?-1:r||o?o:w}},hm={forEach:_i(0),map:_i(1),filter:_i(2),some:_i(3),every:_i(4),find:_i(5),findIndex:_i(6),filterReject:_i(7)},Ket=hr("species"),QD=function(t){return t6>=51||!Ce(function(){var e=[];return(e.constructor={})[Ket]=function(){return{foo:1}},e[t](Boolean).foo!==1})},Yet=hm.filter;tn({target:"Array",proto:!0,forced:!QD("filter")},{filter:function(t){return Yet(this,t,arguments.length>1?arguments[1]:void 0)}});var Xet=YD?{}.toString:function(){return"[object "+XD(this)+"]"};YD||op(Object.prototype,"toString",Xet,{unsafe:!0});var s0,Zet=St.String,Ee=function(t){if(XD(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Zet(t)},FI=function(){var t=ir(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},tC=St.RegExp,i6=Ce(function(){var t=tC("a","y");return t.lastIndex=2,t.exec("abcd")!=null}),Jet=i6||Ce(function(){return!tC("a","y").sticky}),_I={BROKEN_CARET:i6||Ce(function(){var t=tC("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),MISSED_STICKY:Jet,UNSUPPORTED_Y:i6},Dl=Object.keys||function(t){return SI(t,Ov)},Qet=ro?Object.defineProperties:function(t,e){ir(t);for(var n,r=mc(e),o=Dl(e),i=o.length,a=0;i>a;)yc.f(t,n=o[a++],r[n]);return t},tnt=Zp("document","documentElement"),TI=DI("IE_PROTO"),Ub=function(){},PI=function(t){return"<script>"+t+"<\/script>"},PO=function(t){t.write(PI("")),t.close();var e=t.parentWindow.Object;return t=null,e},sg=function(){try{s0=new ActiveXObject("htmlfile")}catch{}var t,e;sg=typeof document<"u"?document.domain&&s0?PO(s0):((e=WD("iframe")).style.display="none",tnt.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(PI("document.F=Object")),t.close(),t.F):PO(s0);for(var n=Ov.length;n--;)delete sg.prototype[Ov[n]];return sg()};KD[TI]=!0;var jO,Wb,jI=Object.create||function(t,e){var n;return t!==null?(Ub.prototype=ir(t),n=new Ub,Ub.prototype=null,n[TI]=t):n=sg(),e===void 0?n:Qet(n,e)},ent=St.RegExp,nnt=Ce(function(){var t=ent(".","s");return!(t.dotAll&&t.exec(`
  79. `)&&t.flags==="s")}),rnt=St.RegExp,ont=Ce(function(){var t=rnt("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),int=o6.get,ant=VD("native-string-replace",String.prototype.replace),Bv=RegExp.prototype.exec,a6=Bv,unt=mt("".charAt),snt=mt("".indexOf),lnt=mt("".replace),Gb=mt("".slice),qb=(Wb=/b*/g,_e(Bv,jO=/a/,"a"),_e(Bv,Wb,"a"),jO.lastIndex!==0||Wb.lastIndex!==0),NO=_I.BROKEN_CARET,Kb=/()??/.exec("")[1]!==void 0;(qb||Kb||NO||nnt||ont)&&(a6=function(t){var e,n,r,o,i,a,u,s=this,l=int(s),c=Ee(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=_e(a6,f,c),s.lastIndex=f.lastIndex,e;var p=l.groups,d=NO&&s.sticky,y=_e(FI,s),g=s.source,v=0,m=c;if(d&&(y=lnt(y,"y",""),snt(y,"g")===-1&&(y+="g"),m=Gb(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&unt(c,s.lastIndex-1)!==`
  80. `)&&(g="(?: "+g+")",m=" "+m,v++),n=new RegExp("^(?:"+g+")",y)),Kb&&(n=new RegExp("^"+g+"$(?!\\s)",y)),qb&&(r=s.lastIndex),o=_e(Bv,d?n:s,m),d?o?(o.input=Gb(o.input,v),o[0]=Gb(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:qb&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),Kb&&o&&o.length>1&&_e(ant,o[0],n,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&p)for(o.groups=a=jI(null),i=0;i<p.length;i++)a[(u=p[i])[0]]=o[u[1]];return o});var ap=a6;tn({target:"RegExp",proto:!0,forced:/./.exec!==ap},{exec:ap});var eC=Function.prototype,IO=eC.apply,cnt=eC.bind,LO=eC.call,NI=typeof Reflect=="object"&&Reflect.apply||(cnt?LO.bind(IO):function(){return LO.apply(IO,arguments)}),fnt=hr("species"),Yb=RegExp.prototype,nC=function(t,e,n,r){var o=hr(t),i=!Ce(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),a=i&&!Ce(function(){var l=!1,c=/a/;return t==="split"&&((c={}).constructor={},c.constructor[fnt]=function(){return c},c.flags="",c[o]=/./[o]),c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||n){var u=mt(/./[o]),s=e(o,""[t],function(l,c,f,p,d){var y=mt(l),g=c.exec;return g===ap||g===Yb.exec?i&&!d?{done:!0,value:u(c,f,p)}:{done:!0,value:y(f,c,p)}:{done:!1}});op(String.prototype,t,s[0]),op(Yb,o,s[1])}r&&Zl(Yb[o],"sham",!0)},dnt=mt("".charAt),RO=mt("".charCodeAt),pnt=mt("".slice),hnt=function(t){return function(e,n){var r,o,i=Ee(Ir(e)),a=bc(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=RO(i,a))<55296||r>56319||a+1===u||(o=RO(i,a+1))<56320||o>57343?t?dnt(i,a):r:t?pnt(i,a,a+2):o-56320+(r-55296<<10)+65536}},gnt=hnt(!0),rC=function(t,e,n){return e+(n?gnt(t,e).length:1)},vnt=Math.floor,Xb=mt("".charAt),mnt=mt("".replace),Zb=mt("".slice),ynt=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,bnt=/\$([$&'`]|\d{1,2})/g,wnt=function(t,e,n,r,o,i){var a=n+t.length,u=r.length,s=bnt;return o!==void 0&&(o=Jp(o),s=ynt),mnt(i,s,function(l,c){var f;switch(Xb(c,0)){case"$":return"$";case"&":return t;case"`":return Zb(e,0,n);case"'":return Zb(e,a);case"<":f=o[Zb(c,1,-1)];break;default:var p=+c;if(p===0)return l;if(p>u){var d=vnt(p/10);return d===0?l:d<=u?r[d-1]===void 0?Xb(c,1):r[d-1]+Xb(c,1):l}f=r[p-1]}return f===void 0?"":f})},Ent=St.TypeError,up=function(t,e){var n=t.exec;if(gn(n)){var r=_e(n,t,e);return r!==null&&ir(r),r}if(la(t)==="RegExp")return _e(ap,t,e);throw Ent("RegExp#exec called on incompatible receiver")},u6=hr("replace"),Dnt=Math.max,Cnt=Math.min,xnt=mt([].concat),Jb=mt([].push),MO=mt("".indexOf),zO=mt("".slice),Snt="a".replace(/./,"$0")==="$0",$O=!!/./[u6]&&/./[u6]("a","$0")==="";nC("replace",function(t,e,n){var r=$O?"$":"$0";return[function(o,i){var a=Ir(this),u=o==null?void 0:fm(o,u6);return u?_e(u,o,a,i):_e(e,Ee(a),o,i)},function(o,i){var a=ir(this),u=Ee(o);if(typeof i=="string"&&MO(i,r)===-1&&MO(i,"$<")===-1){var s=n(e,a,u,i);if(s.done)return s.value}var l=gn(i);l||(i=Ee(i));var c=a.global;if(c){var f=a.unicode;a.lastIndex=0}for(var p=[];;){var d=up(a,u);if(d===null||(Jb(p,d),!c))break;Ee(d[0])===""&&(a.lastIndex=rC(u,Qp(a.lastIndex),f))}for(var y,g="",v=0,m=0;m<p.length;m++){for(var h=Ee((d=p[m])[0]),b=Dnt(Cnt(bc(d.index),u.length),0),w=[],E=1;E<d.length;E++)Jb(w,(y=d[E])===void 0?y:String(y));var x=d.groups;if(l){var C=xnt([h],w,b,u);x!==void 0&&Jb(C,x);var O=Ee(NI(i,void 0,C))}else O=wnt(h,u,b,w,x,i);b>=v&&(g+=zO(u,v,b)+O,v=b+h.length)}return g+zO(u,v)}]},!!Ce(function(){var t=/./;return t.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(t,"$<a>")!=="7"})||!Snt||$O);var s6=hr("unscopables"),l6=Array.prototype;l6[s6]==null&&yc.f(l6,s6,{configurable:!0,value:jI(null)});var II=function(t){l6[s6][t]=!0},Ant=hm.find,HO=!0;"find"in[]&&Array(1).find(function(){HO=!1}),tn({target:"Array",proto:!0,forced:HO},{find:function(t){return Ant(this,t,arguments.length>1?arguments[1]:void 0)}}),II("find");var Ont=hr("match"),LI=function(t){var e;return Sr(t)&&((e=t[Ont])!==void 0?!!e:la(t)=="RegExp")},knt=St.TypeError,Bnt=hr("species"),RI=function(t,e,n){var r=UD(e);r in t?yc.f(t,r,zD(0,n)):t[r]=n},Fnt=St.Array,_nt=Math.max,VO=function(t,e,n){for(var r=pm(t),o=ip(e,r),i=ip(n===void 0?r:n,r),a=Fnt(_nt(i-o,0)),u=0;o<i;o++,u++)RI(a,u,t[o]);return a.length=u,a},zs=_I.UNSUPPORTED_Y,Tnt=Math.min,MI=[].push,Pnt=mt(/./.exec),$s=mt(MI),pf=mt("".slice);nC("split",function(t,e,n){var r;return r="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(o,i){var a=Ee(Ir(this)),u=i===void 0?4294967295:i>>>0;if(u===0)return[];if(o===void 0)return[a];if(!LI(o))return _e(e,a,o,u);for(var s,l,c,f=[],p=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(o.sticky?"y":""),d=0,y=new RegExp(o.source,p+"g");(s=_e(ap,y,a))&&!((l=y.lastIndex)>d&&($s(f,pf(a,d,s.index)),s.length>1&&s.index<a.length&&NI(MI,f,VO(s,1)),c=s[0].length,d=l,f.length>=u));)y.lastIndex===s.index&&y.lastIndex++;return d===a.length?!c&&Pnt(y,"")||$s(f,""):$s(f,pf(a,d)),f.length>u?VO(f,0,u):f}:"0".split(void 0,0).length?function(o,i){return o===void 0&&i===0?[]:_e(e,this,o,i)}:e,[function(o,i){var a=Ir(this),u=o==null?void 0:fm(o,t);return u?_e(u,o,a,i):_e(r,Ee(a),o,i)},function(o,i){var a=ir(this),u=Ee(o),s=n(r,a,u,i,r!==e);if(s.done)return s.value;var l=function(w,E){var x,C=ir(w).constructor;return C===void 0||(x=ir(C)[Bnt])==null?E:function(O){if(JD(O))return O;throw knt(yI(O)+" is not a constructor")}(x)}(a,RegExp),c=a.unicode,f=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(zs?"g":"y"),p=new l(zs?"^(?:"+a.source+")":a,f),d=i===void 0?4294967295:i>>>0;if(d===0)return[];if(u.length===0)return up(p,u)===null?[u]:[];for(var y=0,g=0,v=[];g<u.length;){p.lastIndex=zs?0:g;var m,h=up(p,zs?pf(u,g):u);if(h===null||(m=Tnt(Qp(p.lastIndex+(zs?g:0)),u.length))===y)g=rC(u,g,c);else{if($s(v,pf(u,y,g)),v.length===d)return v;for(var b=1;b<=h.length-1;b++)if($s(v,h[b]),v.length===d)return v;g=y=m}}return $s(v,pf(u,y)),v}]},!!Ce(function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return n.length!==2||n[0]!=="a"||n[1]!=="b"}),zs);var c6=`
  81. \v\f\r                 \u2028\u2029\uFEFF`,UO=mt("".replace),Fv="["+c6+"]",jnt=RegExp("^"+Fv+Fv+"*"),Nnt=RegExp(Fv+Fv+"*$"),Qb=function(t){return function(e){var n=Ee(Ir(e));return 1&t&&(n=UO(n,jnt,"")),2&t&&(n=UO(n,Nnt,"")),n}},Int={start:Qb(1),end:Qb(2),trim:Qb(3)},Lnt=dm.PROPER,Rnt=Int.trim;function oC(t){return B("<div>"+t+"</div>").children().filter(function(e){return e.tagName!=="BR"}).length===0}function wc(t){return t.length===0?"":t[0].outerHTML}function Ec(t){return t.length?t[0].tagName.toLowerCase():""}function to(t,e){for(var n="",r=(t.attr("style")||"").split(";"),o=r.length,i=0;i<o;i++){var a=r[i];if(a){var u=a.split(":");u[0].trim()===e&&(n=u[1].trim())}}return n}tn({target:"String",proto:!0,forced:Ce(function(){return!!c6.trim()||"​…᠎".trim()!=="​…᠎"||Lnt&&c6.trim.name!=="trim"})},{trim:function(){return Rnt(this)}}),tn({global:!0},{globalThis:St}),ev&&(B.fn.css=ev),Pr&&(B.fn.append=Pr),_A&&(B.fn.prepend=_A),jl&&(B.fn.addClass=jl),Nl&&(B.fn.removeClass=Nl),Il&&(B.fn.hasClass=Il),Fo&&(B.fn.on=Fo),OA&&(B.fn.off=OA),Sa&&(B.fn.focus=Sa),Tr&&(B.fn.attr=Tr),Zg&&(B.fn.removeAttr=Zg),Rl&&(B.fn.hide=Rl),tv&&(B.fn.show=tv),ov&&(B.fn.parents=ov),Ll&&(B.fn.dataset=Ll),Bo&&(B.fn.val=Bo),rv&&(B.fn.text=rv),xa&&(B.fn.html=xa),$l&&(B.fn.children=$l),Hl&&(B.fn.remove=Hl),zl&&(B.fn.find=zl),Jg&&(B.fn.width=Jg),Qg&&(B.fn.height=Qg),BA&&(B.fn.filter=BA),Vl&&(B.fn.empty=Vl);var Mnt={selector:"p:not([data-w-e-type])",parseElemHtml:function(t,e,n){var r=B(t);return(e=e.filter(function(o){return!!ot.isText(o)||!!n.isInline(o)})).length===0&&(e=[{text:r.text().replace(/\s+/gm," ")}]),{type:"paragraph",children:e}}},f6=function(t,e){return f6=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},f6(t,e);/*! *****************************************************************************
  82. Copyright (c) Microsoft Corporation.
  83. Permission to use, copy, modify, and/or distribute this software for any
  84. purpose with or without fee is hereby granted.
  85. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  86. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  87. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  88. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  89. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  90. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  91. PERFORMANCE OF THIS SOFTWARE.
  92. ***************************************************************************** */};function be(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}f6(t,e),t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var ka=function(){return ka=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},ka.apply(this,arguments)};function Ma(t,e,n,r){return new(n||(n=Promise))(function(o,i){function a(l){try{s(r.next(l))}catch(c){i(c)}}function u(l){try{s(r.throw(l))}catch(c){i(c)}}function s(l){var c;l.done?o(l.value):(c=l.value,c instanceof n?c:new n(function(f){f(c)})).then(a,u)}s((r=r.apply(t,e||[])).next())})}function za(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function u(s){return function(l){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,r=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||c[0]!==6&&c[0]!==2)){a=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){a.label=c[1];break}if(c[0]===6&&a.label<o[1]){a.label=o[1],o=c;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(c);break}o[2]&&a.ops.pop(),a.trys.pop();continue}c=e.call(t,a)}catch(f){c=[6,f],r=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([s,l])}}}function zI(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Yt(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(e===void 0||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(u){o={error:u}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function WO(t){var e=Yt(D.nodes(t,{match:function(i){return t.children[0]===i},mode:"highest"}),1)[0];if(e==null)return!1;var n=e[0];if(!ct.isElement(n)||n.type==="paragraph"||Q.string(n)!=="")return!1;var r=n.children,o=r===void 0?[]:r;return!!ot.isText(o[0])&&(N.setNodes(t,{type:"paragraph"}),!0)}var znt={renderElems:[Vtt],elemsToHtml:[{type:"paragraph",elemToHtml:function(t,e){return e===""?"<p><br></p>":"<p>"+e+"</p>"}}],parseElemsHtml:[Mnt],editorPlugin:function(t){var e=t.deleteBackward,n=t.deleteForward;t.insertText,t.insertBreak;var r=t;return r.deleteBackward=function(o){WO(r)||e(o)},r.deleteForward=function(o){WO(r)||n(o)},r}},$nt=/"/g,Hnt=mt("".replace),rd=function(t,e,n,r){var o=Ee(Ir(t)),i="<"+e;return n!==""&&(i+=" "+n+'="'+Hnt(Ee(r),$nt,"&quot;")+'"'),i+">"+o+"</"+e+">"},od=function(t){return Ce(function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3})};function t2(t,e){var n=e,r=t,o=r.bold,i=r.italic,a=r.underline;return o&&(n="<strong>"+n+"</strong>"),r.code&&(n="<code>"+n+"</code>"),i&&(n="<em>"+n+"</em>"),a&&(n="<u>"+n+"</u>"),r.through&&(n="<s>"+n+"</s>"),r.sub&&(n="<sub>"+n+"</sub>"),r.sup&&(n="<sup>"+n+"</sup>"),n}function nu(t,e){return t.length!==0&&(!!t[0].matches(e)||t.find(e).length>0)}tn({target:"String",proto:!0,forced:od("bold")},{bold:function(){return rd(this,"b","","")}}),tn({target:"String",proto:!0,forced:od("italics")},{italics:function(){return rd(this,"i","","")}}),tn({target:"String",proto:!0,forced:od("sub")},{sub:function(){return rd(this,"sub","","")}}),tn({target:"String",proto:!0,forced:od("sup")},{sup:function(){return rd(this,"sup","","")}});var GO={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},e2=WD("span").classList,qO=e2&&e2.constructor&&e2.constructor.prototype,Vnt=qO===Object.prototype?void 0:qO,$I=function(t,e){var n=[][t];return!!n&&Ce(function(){n.call(null,e||function(){throw 1},1)})},Unt=hm.forEach,n2=$I("forEach")?[].forEach:function(t){return Unt(this,t,arguments.length>1?arguments[1]:void 0)},HI=function(t){if(t&&t.forEach!==n2)try{Zl(t,"forEach",n2)}catch{t.forEach=n2}};for(var r2 in GO)GO[r2]&&HI(St[r2]&&St[r2].prototype);function VI(t,e){return t.selection==null||!!Yt(D.nodes(t,{match:function(n){return A.getNodeType(n)==="pre"||!!D.isVoid(t,n)},universal:!0}),1)[0]}function Wnt(t,e){Object.keys(e).forEach(function(n){n!=="text"&&D.removeMark(t,n)})}HI(Vnt),tn({target:"Object",stat:!0,forced:Ce(function(){Dl(1)})},{keys:function(t){return Dl(Jp(t))}});var ys=function(){function t(){this.marksNeedToRemove=[],this.tag="button"}return t.prototype.getValue=function(e){var n=this.mark,r=D.marks(e);return r?r[n]:!!Yt(D.nodes(e,{match:function(o){return o[n]===!0}}),1)[0]},t.prototype.isActive=function(e){return!!this.getValue(e)},t.prototype.isDisabled=function(e){return VI(e,this.mark)},t.prototype.exec=function(e,n){var r=this.mark,o=this.marksNeedToRemove;n?e.removeMark(r):(e.addMark(r,!0),o&&o.forEach(function(i){return e.removeMark(i)}))},t}(),Gnt='<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>',qnt='<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>',Knt='<svg viewBox="0 0 1024 1024"><path d="M896 64v64h-128L448 896h128v64H128v-64h128L576 128h-128V64z"></path></svg>',Ynt='<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>',Xnt='<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>',UI='<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>',WI='<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>',Znt='<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>',Jnt='<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>',Qnt='<svg viewBox="0 0 1024 1024"><path d="M64 512h384v128h-128V1024h-128V640h-128z m896-256H708.2496v768h-136.4992V256H320V128h640z"></path></svg>',trt='<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>',ert='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m256-512v384l-256-192z"></path></svg>',nrt='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',rrt='<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>',ort='<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>',irt='<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>',art='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z"></path></svg>',urt='<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>',srt='<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>',lrt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.mark="bold",n.title=tt("textStyle.bold"),n.iconSvg=Gnt,n.hotkey="mod+b",n}return be(e,t),e}(ys),crt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.mark="code",n.title=tt("textStyle.code"),n.iconSvg=Xnt,n.hotkey="mod+e",n}return be(e,t),e}(ys),frt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.mark="italic",n.title=tt("textStyle.italic"),n.iconSvg=Knt,n.hotkey="mod+i",n}return be(e,t),e}(ys),drt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.mark="through",n.title=tt("textStyle.through"),n.iconSvg=Ynt,n.hotkey="mod+shift+x",n}return be(e,t),e}(ys),prt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.mark="underline",n.title=tt("textStyle.underline"),n.iconSvg=qnt,n.hotkey="mod+u",n}return be(e,t),e}(ys),hrt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.mark="sub",n.marksNeedToRemove=["sup"],n.title=tt("textStyle.sub"),n.iconSvg=srt,n.hotkey="",n}return be(e,t),e}(ys),grt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.mark="sup",n.marksNeedToRemove=["sub"],n.title=tt("textStyle.sup"),n.iconSvg=urt,n.hotkey="",n}return be(e,t),e}(ys),vrt=function(){function t(){this.title=tt("textStyle.clear"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M969.382408 288.738615l-319.401123-270.852152a67.074236 67.074236 0 0 0-96.459139 5.74922l-505.931379 574.922021a68.35184 68.35184 0 0 0-17.886463 47.910169 74.101061 74.101061 0 0 0 24.274486 47.910168l156.50655 132.232065h373.060512L975.131628 383.281347a67.074236 67.074236 0 0 0-5.74922-96.459139z m-440.134747 433.746725H264.144729l-90.071117-78.572676c-5.74922-5.74922-12.137243-12.137243-12.137243-17.886463a36.411728 36.411728 0 0 1 5.749221-24.274485l210.804741-240.828447 265.102932 228.691204z m-439.495945 180.781036h843.218964a60.047411 60.047411 0 1 1 0 120.733624H89.751716a60.047411 60.047411 0 1 1 0-120.733624z m0 0"></path></svg>',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return VI(e)},t.prototype.exec=function(e,n){var r,o,i=D.nodes(e,{match:function(s){return ot.isText(s)},universal:!0});try{for(var a=zI(i),u=a.next();!u.done;u=a.next())Wnt(e,u.value[0])}catch(s){r={error:s}}finally{try{u&&!u.done&&(o=a.return)&&o.call(a)}finally{if(r)throw r.error}}},t}(),mrt={renderStyle:function(t,e){var n=t,r=n.bold,o=n.italic,i=n.underline,a=n.code,u=n.through,s=n.sub,l=n.sup,c=e;return r&&(c=bt("strong",null,c)),a&&(c=bt("code",null,c)),o&&(c=bt("em",null,c)),i&&(c=bt("u",null,c)),u&&(c=bt("s",null,c)),s&&(c=bt("sub",null,c)),l&&(c=bt("sup",null,c)),c},menus:[{key:"bold",factory:function(){return new lrt}},{key:"underline",factory:function(){return new prt}},{key:"italic",factory:function(){return new frt}},{key:"through",factory:function(){return new drt}},{key:"code",factory:function(){return new crt}},{key:"sub",factory:function(){return new hrt}},{key:"sup",factory:function(){return new grt}},{key:"clearStyle",factory:function(){return new vrt}}],styleToHtml:function(t,e){if(!ot.isText(t))return e;if(oC(e))return t2(t,e);var n=B(e);if(Ec(n)==="br")return t2(t,"<br>");var r=n.html();return r=t2(t,r),n.html(r),wc(n)},parseStyleHtml:function(t,e,n){var r=B(t);if(!ot.isText(e))return e;var o=e;return nu(r,"b,strong")&&(o.bold=!0),nu(r,"i,em")&&(o.italic=!0),nu(r,"u")&&(o.underline=!0),nu(r,"s,strike")&&(o.through=!0),nu(r,"sub")&&(o.sub=!0),nu(r,"sup")&&(o.sup=!0),nu(r,"code")&&(o.code=!0),o}};function eh(t){return function(e,n,r){return bt("h"+t,null,n)}}var yrt={type:"header1",renderElem:eh(1)},brt={type:"header2",renderElem:eh(2)},wrt={type:"header3",renderElem:eh(3)},Ert={type:"header4",renderElem:eh(4)},Drt={type:"header5",renderElem:eh(5)},Crt=dm.PROPER,d6=RegExp.prototype,GI=d6.toString,xrt=mt(FI),Srt=Ce(function(){return GI.call({source:"a",flags:"b"})!="/a/b"}),Art=Crt&&GI.name!="toString";(Srt||Art)&&op(RegExp.prototype,"toString",function(){var t=ir(this),e=Ee(t.source),n=t.flags;return"/"+e+"/"+Ee(n===void 0&&mI(d6,t)&&!("flags"in d6)?xrt(t):n)},{unsafe:!0});var o2,Ort=St.TypeError,qI=function(t){if(LI(t))throw Ort("The method doesn't accept regular expressions");return t},krt=hr("match"),KI=function(t){var e=/./;try{"/./"[t](e)}catch{try{return e[krt]=!1,"/./"[t](e)}catch{}}return!1},Brt=GD.f,KO=mt("".startsWith),Frt=mt("".slice),_rt=Math.min,YO=KI("startsWith");function YI(t){var e=Yt(D.nodes(t,{match:function(o){return A.getNodeType(o).startsWith("header")},universal:!0}),1),n=e[0];if(n==null)return"paragraph";var r=Yt(n,1)[0];return A.getNodeType(r)}function XI(t){return t.selection==null||!Yt(D.nodes(t,{match:function(e){var n=A.getNodeType(e);return n==="paragraph"||!!n.startsWith("header")},universal:!0,mode:"highest"}),1)[0]}function ZI(t,e){e&&N.setNodes(t,{type:e})}tn({target:"String",proto:!0,forced:!(!YO&&(o2=Brt(String.prototype,"startsWith"),o2&&!o2.writable)||YO)},{startsWith:function(t){var e=Ee(Ir(this));qI(t);var n=Qp(_rt(arguments.length>1?arguments[1]:void 0,e.length)),r=Ee(t);return KO?KO(e,r,n):Frt(e,n,n+r.length)===r}});var Trt=function(){function t(){this.title=tt("header.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M960 960c-51.2 0-102.4-3.2-153.6-3.2-51.2 0-99.2 3.2-150.4 3.2-19.2 0-28.8-22.4-28.8-38.4 0-51.2 57.6-28.8 86.4-48 19.2-12.8 19.2-60.8 19.2-80v-224-19.2c-9.6-3.2-19.2-3.2-28.8-3.2H320c-9.6 0-19.2 0-28.8 3.2V780.8c0 22.4 0 80 22.4 92.8 28.8 19.2 96-6.4 96 44.8 0 16-9.6 41.6-28.8 41.6-54.4 0-105.6-3.2-160-3.2-48 0-96 3.2-147.2 3.2-19.2 0-28.8-22.4-28.8-38.4 0-51.2 51.2-28.8 80-48 19.2-12.8 19.2-60.8 19.2-83.2V294.4c0-28.8 3.2-115.2-22.4-131.2-25.6-16-86.4 9.6-86.4-41.6 0-16 6.4-41.6 28.8-41.6 51.2 0 105.6 3.2 156.8 3.2 48 0 96-3.2 144-3.2 19.2 0 28.8 22.4 28.8 41.6 0 48-57.6 25.6-83.2 41.6-19.2 12.8-19.2 73.6-19.2 92.8v201.6c6.4 3.2 16 3.2 22.4 3.2h400c6.4 0 12.8 0 22.4-3.2V256c0-22.4 0-80-19.2-92.8-28.8-16-86.4 6.4-86.4-41.6 0-16 9.6-41.6 28.8-41.6 51.2 0 99.2 3.2 150.4 3.2 48 0 99.2-3.2 147.2-3.2 19.2 0 28.8 22.4 28.8 41.6 0 51.2-57.6 25.6-86.4 41.6-19.2 12.8-19.2 70.4-19.2 92.8v537.6c0 19.2 0 67.2 19.2 80 28.8 19.2 89.6-6.4 89.6 44.8 0 19.2-6.4 41.6-28.8 41.6z"></path></svg>',this.tag="select",this.width=60}return t.prototype.getOptions=function(e){var n=[{value:"header1",text:"H1",styleForRenderMenuList:{"font-size":"32px","font-weight":"bold"}},{value:"header2",text:"H2",styleForRenderMenuList:{"font-size":"24px","font-weight":"bold"}},{value:"header3",text:"H3",styleForRenderMenuList:{"font-size":"18px","font-weight":"bold"}},{value:"header4",text:"H4",styleForRenderMenuList:{"font-size":"16px","font-weight":"bold"}},{value:"header5",text:"H5",styleForRenderMenuList:{"font-size":"13px","font-weight":"bold"}},{value:"paragraph",text:tt("header.text")}],r=this.getValue(e).toString();return n.forEach(function(o){o.value===r?o.selected=!0:delete o.selected}),n},t.prototype.isActive=function(e){return!1},t.prototype.getValue=function(e){return YI(e)},t.prototype.isDisabled=function(e){return XI(e)},t.prototype.exec=function(e,n){ZI(e,n.toString())},t}(),nh=function(){function t(){this.tag="button"}return t.prototype.getValue=function(e){return YI(e)},t.prototype.isActive=function(e){return this.getValue(e)===this.type},t.prototype.isDisabled=function(e){return XI(e)},t.prototype.exec=function(e,n){var r=this.type;ZI(e,n===r?"paragraph":r)},t}(),Prt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title="H1",n.type="header1",n}return be(e,t),e}(nh),jrt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title="H2",n.type="header2",n}return be(e,t),e}(nh),Nrt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title="H3",n.type="header3",n}return be(e,t),e}(nh),Irt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title="H4",n.type="header4",n}return be(e,t),e}(nh),Lrt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title="H5",n.type="header5",n}return be(e,t),e}(nh),Rrt={key:"headerSelect",factory:function(){return new Trt}},Mrt={key:"header1",factory:function(){return new Prt}},zrt={key:"header2",factory:function(){return new jrt}},$rt={key:"header3",factory:function(){return new Nrt}},Hrt={key:"header4",factory:function(){return new Irt}},Vrt={key:"header5",factory:function(){return new Lrt}};function hf(t){return function(e,n){return"<h"+t+">"+n+"</h"+t+">"}}function gf(t){return function(e,n,r){var o=B(e);return(n=n.filter(function(i){return!!ot.isText(i)||!!r.isInline(i)})).length===0&&(n=[{text:o.text().replace(/\s+/gm," ")}]),{type:"header"+t,children:n}}}var Urt={renderElems:[yrt,brt,wrt,Ert,Drt],elemsToHtml:[{type:"header1",elemToHtml:hf(1)},{type:"header2",elemToHtml:hf(2)},{type:"header3",elemToHtml:hf(3)},{type:"header4",elemToHtml:hf(4)},{type:"header5",elemToHtml:hf(5)}],parseElemsHtml:[{selector:"h1:not([data-w-e-type])",parseElemHtml:gf(1)},{selector:"h2:not([data-w-e-type])",parseElemHtml:gf(2)},{selector:"h3:not([data-w-e-type])",parseElemHtml:gf(3)},{selector:"h4:not([data-w-e-type])",parseElemHtml:gf(4)},{selector:"h5:not([data-w-e-type])",parseElemHtml:gf(5)}],menus:[Rrt,Mrt,zrt,$rt,Hrt,Vrt],editorPlugin:function(t){var e=t.insertBreak;t.insertNode;var n=t;return n.insertBreak=function(){var r=Yt(D.nodes(n,{match:function(o){return A.getNodeType(o).startsWith("header")},universal:!0}),1)[0];r&&A.isSelectionAtLineEnd(t,r[1])?N.insertNodes(n,{type:"paragraph",children:[{text:""}]},{mode:"highest"}):e()},n}},Hs=Object.assign,XO=Object.defineProperty,Wrt=mt([].concat),ZO=!Hs||Ce(function(){if(ro&&Hs({b:1},Hs(XO({},"a",{enumerable:!0,get:function(){XO(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(o){e[o]=o}),Hs({},t)[n]!=7||Dl(Hs({},e)).join("")!=r})?function(t,e){for(var n=Jp(t),r=arguments.length,o=1,i=AI.f,a=gI.f;r>o;)for(var u,s=cm(arguments[o++]),l=i?Wrt(Dl(s),i(s)):Dl(s),c=l.length,f=0;c>f;)u=l[f++],ro&&!_e(a,s,u)||(n[u]=s[u]);return n}:Hs;function os(t,e){t.data==null&&(t.data={});var n=t.data;n.style==null&&(n.style={}),Object.assign(n.style,e)}tn({target:"Object",stat:!0,forced:Object.assign!==ZO},{assign:ZO});var Grt={selector:"font",preParseHtml:function(t){var e=B(t);if(Ec(e)!=="font")return t;var n=e.attr("color")||"";return n&&(e.removeAttr("color"),e.css("color",n)),e[0]}},JI=function(){function t(){this.tag="button",this.showDropPanel=!0,this.$content=null}return t.prototype.exec=function(e,n){},t.prototype.getValue=function(e){var n=this.mark,r=D.marks(e);return r&&r[n]?r[n]:""},t.prototype.isActive=function(e){return!!this.getValue(e)},t.prototype.isDisabled=function(e){return e.selection==null||!!Yt(D.nodes(e,{match:function(n){return A.getNodeType(n)==="pre"||!!D.isVoid(e,n)},universal:!0}),1)[0]},t.prototype.getPanelContentElem=function(e){var n=this.mark;if(this.$content==null){var r=B('<ul class="w-e-panel-content-color"></ul>');r.on("click","li",function(l){var c=l.target;if(c!=null&&(l.preventDefault(),e.selection!=null)){var f=B(c).attr("data-value");f==="0"?D.removeMark(e,n):D.addMark(e,n,f)}}),this.$content=r}var o=this.$content;if(o==null)return document.createElement("ul");o.empty();var i=this.getValue(e),a=e.getMenuConfig(n).colors;(a===void 0?[]:a).forEach(function(l){var c=B('<div class="color-block" data-value="'+l+'"></div>');c.css("background-color",l);var f=B('<li data-value="'+l+'"></li>');i===l&&f.addClass("active"),f.append(c),o.append(f)});var u="";n==="color"&&(u=tt("color.default")),n==="bgColor"&&(u=tt("color.clear"));var s=B(`
  93. <li data-value="0" class="clear">
  94. <svg viewBox="0 0 1024 1024"><path d="M236.8 128L896 787.2V128H236.8z m614.4 704L192 172.8V832h659.2zM192 64h704c38.4 0 64 25.6 64 64v704c0 38.4-25.6 64-64 64H192c-38.4 0-64-25.6-64-64V128c0-38.4 25.6-64 64-64z"></path></svg>
  95. `+u+`
  96. </li>
  97. `);return o.prepend(s),o[0]},t}(),qrt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=tt("color.color"),n.iconSvg=Znt,n.mark="color",n}return be(e,t),e}(JI),Krt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=tt("color.bgColor"),n.iconSvg=Jnt,n.mark="bgColor",n}return be(e,t),e}(JI),JO=["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)"],Yrt={renderStyle:function(t,e){var n=t,r=n.color,o=n.bgColor,i=e;return r&&os(i,{color:r}),o&&os(i,{backgroundColor:o}),i},styleToHtml:function(t,e){if(!ot.isText(t))return e;var n,r=t,o=r.color,i=r.bgColor;return o||i?((oC(e)||Ec(n=B(e))!=="span")&&(n=B("<span>"+e+"</span>")),o&&n.css("color",o),i&&n.css("background-color",i),wc(n)):e},preParseHtml:[Grt],parseStyleHtml:function(t,e,n){var r=B(t);if(!ot.isText(e))return e;var o=e,i=to(r,"color");i&&(o.color=i);var a=to(r,"background-color");return a||(a=to(r,"background")),a&&(o.bgColor=a),o},menus:[{key:"color",factory:function(){return new qrt},config:{colors:JO}},{key:"bgColor",factory:function(){return new Krt},config:{colors:JO}}]},Xrt=/^(?:\w+:)?\/\/(\S+)$/,Zrt=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,Jrt=/^[^\s\.]+\.\S{2,}$/,Qrt=xI.includes;function gm(t){return t===void 0&&(t="r"),t+"-"+wj()}function iC(t){return t.replace(/</g,"&lt;").replace(/>/g,"&gt;")}function QI(t,e,n,r){return Ma(this,void 0,void 0,function(){var o,i;return za(this,function(a){switch(a.label){case 0:return(o=e.getMenuConfig(t).checkLink)?[4,o(n,r)]:[3,2];case 1:if(typeof(i=a.sent())=="string")return e.alert(i,"error"),[2,!1];if(i==null)return[2,!1];a.label=2;case 2:return[2,!0]}})})}function tL(t,e,n){return Ma(this,void 0,void 0,function(){var r;return za(this,function(o){switch(o.label){case 0:return(r=e.getMenuConfig(t).parseLinkUrl)?[4,r(n)]:[3,2];case 1:return[2,o.sent()];case 2:return[2,n]}})})}function aC(t){return t.selection==null||!!A.getSelectedElems(t).some(function(e){var n=e.type;return!!t.isVoid(e)||!!["pre","code","link"].includes(n)||void 0})}function i2(t,e){return{type:"link",url:iC(t),children:e?[{text:e}]:[]}}function eL(t,e,n){return Ma(this,void 0,void 0,function(){var r,o,i;return za(this,function(a){switch(a.label){case 0:return n?(e||(e=n),t.restoreSelection(),aC(t)?[2]:[4,QI("insertLink",t,e,n)]):[2];case 1:return a.sent()?[4,tL("insertLink",t,n)]:[2];case 2:return r=a.sent(),(o=t.selection)==null||(L.isCollapsed(o)?(t.insertText(" "),i=i2(r,e),N.insertNodes(t,i),t.insertFragment([{text:" "}])):D.string(t,o)!==e?(t.deleteFragment(),i=i2(r,e),N.insertNodes(t,i)):(i=i2(r),N.wrapNodes(t,i,{split:!0}),N.collapse(t,{edge:"end"}))),[2]}})})}tn({target:"Array",proto:!0},{includes:function(t){return Qrt(this,t,arguments.length>1?arguments[1]:void 0)}}),II("includes");var tot={type:"link",renderElem:function(t,e,n){var r=t,o=r.url,i=r.target;return bt("a",{href:o,target:i===void 0?"_blank":i},e)}},eot={selector:"a:not([data-w-e-type])",parseElemHtml:function(t,e,n){var r=B(t);return(e=e.filter(function(o){return!!ot.isText(o)||!!n.isInline(o)})).length===0&&(e=[{text:r.text().replace(/\s+/gm," ")}]),{type:"link",url:r.attr("href")||"",target:r.attr("target")||"",children:e}}};function a2(){return gm("w-e-insert-link")}var not=function(){function t(){this.title=tt("link.insert"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M440.224 635.776a51.84 51.84 0 0 1-36.768-15.232c-95.136-95.136-95.136-249.92 0-345.056l192-192C641.536 37.408 702.816 12.032 768 12.032s126.432 25.376 172.544 71.456c95.136 95.136 95.136 249.92 0 345.056l-87.776 87.776a51.968 51.968 0 1 1-73.536-73.536l87.776-87.776a140.16 140.16 0 0 0 0-197.984c-26.432-26.432-61.6-40.992-99.008-40.992s-72.544 14.56-99.008 40.992l-192 192a140.16 140.16 0 0 0 0 197.984 51.968 51.968 0 0 1-36.768 88.768z"></path><path d="M256 1012a242.4 242.4 0 0 1-172.544-71.456c-95.136-95.136-95.136-249.92 0-345.056l87.776-87.776a51.968 51.968 0 1 1 73.536 73.536l-87.776 87.776a140.16 140.16 0 0 0 0 197.984c26.432 26.432 61.6 40.992 99.008 40.992s72.544-14.56 99.008-40.992l192-192a140.16 140.16 0 0 0 0-197.984 51.968 51.968 0 1 1 73.536-73.536c95.136 95.136 95.136 249.92 0 345.056l-192 192A242.4 242.4 0 0 1 256 1012z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.textInputId=a2(),this.urlInputId=a2(),this.buttonId=a2()}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,n){},t.prototype.isDisabled=function(e){return aC(e)},t.prototype.getModalPositionNode=function(e){return null},t.prototype.getModalContentElem=function(e){var n=e.selection,r=this,o=r.textInputId,i=r.urlInputId,a=r.buttonId,u=Yt(or(tt("link.text"),o),2),s=u[0],l=B(u[1]),c=Yt(or(tt("link.url"),i),2),f=c[0],p=B(c[1]),d=Yt(vc(a,tt("common.ok")),1)[0];if(this.$content==null){var y=B("<div></div>");y.on("click","#"+a,function(m){m.preventDefault();var h=y.find("#"+o).val(),b=y.find("#"+i).val();eL(e,h,b),e.hidePanelOrModal()}),this.$content=y}var g=this.$content;if(g.empty(),g.append(s),g.append(f),g.append(d),n==null||L.isCollapsed(n))l.val("");else{var v=D.string(e,n);l.val(v)}return p.val(""),setTimeout(function(){l.focus()}),g[0]},t}();function QO(){return gm("w-e-update-link")}var rot=function(){function t(){this.title=tt("link.edit"),this.iconSvg=UI,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.urlInputId=QO(),this.buttonId=QO()}return t.prototype.getSelectedLinkElem=function(e){var n=A.getSelectedNodeByType(e,"link");return n??null},t.prototype.getValue=function(e){var n=this.getSelectedLinkElem(e);return n&&n.url||""},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,n){},t.prototype.isDisabled=function(e){return e.selection==null||this.getSelectedLinkElem(e)==null},t.prototype.getModalPositionNode=function(e){return A.getSelectedNodeByType(e,"link")},t.prototype.getModalContentElem=function(e){var n=this.urlInputId,r=this.buttonId,o=Yt(or(tt("link.url"),n),2),i=o[0],a=B(o[1]),u=Yt(vc(r,tt("common.ok")),1)[0];if(this.$content==null){var s=B("<div></div>");s.on("click","button",function(f){f.preventDefault(),e.restoreSelection();var p=A.getSelectedNodeByType(e,"link"),d=p?Q.string(p):"",y=s.find("#"+n).val();(function(g,v,m){Ma(this,void 0,void 0,function(){var h,b;return za(this,function(w){switch(w.label){case 0:return m?[4,QI("editLink",g,v,m)]:[2];case 1:return w.sent()?[4,tL("editLink",g,m)]:[2];case 2:return h=w.sent(),b={url:iC(h)},N.setNodes(g,b,{match:function(E){return A.checkNodeType(E,"link")}}),[2]}})})})(e,d,y),e.hidePanelOrModal()}),this.$content=s}var l=this.$content;l.empty(),l.append(i),l.append(u);var c=this.getValue(e);return a.val(c),setTimeout(function(){a.focus()}),l[0]},t}(),oot=function(){function t(){this.title=tt("link.unLink"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M608.16328 811.815036c9.371954 9.371954 9.371954 24.56788 0 33.941834l-89.347563 89.347564c-118.525421 118.523421-311.38448 118.531421-429.919901 0-118.527421-118.529421-118.527421-311.39048 0-429.917901l89.349564-89.349563c9.371954-9.371954 24.56788-9.371954 33.941834 0l79.195613 79.195613c9.371954 9.371954 9.371954 24.56788 0 33.941834l-89.349563 89.347564c-56.143726 56.145726-56.143726 147.49928 0 203.645005 56.143726 56.143726 147.49928 56.145726 203.647005 0l89.347564-89.347563c9.371954-9.371954 24.56788-9.371954 33.941834 0l79.193613 79.195613z m-113.135447-520.429459c9.371954 9.371954 24.56788 9.371954 33.941834 0l89.347564-89.347564c56.143726-56.149726 147.49928-56.145726 203.647006 0 56.143726 56.145726 56.143726 147.49928 0 203.645006l-89.349564 89.347564c-9.371954 9.371954-9.371954 24.56788 0 33.941834l79.195613 79.195613c9.371954 9.371954 24.56788 9.371954 33.941834 0l89.349564-89.349563c118.529421-118.529421 118.529421-311.38848 0-429.917901-118.531421-118.527421-311.38848-118.527421-429.919901 0l-89.347563 89.347564c-9.371954 9.371954-9.371954 24.56788 0 33.941834l79.193613 79.195613z m469.653707 718.556492l45.253779-45.253779c18.745908-18.745908 18.745908-49.13776 0-67.881669L127.195629 14.062931c-18.745908-18.745908-49.13776-18.745908-67.881669 0L14.058181 59.31871c-18.745908 18.745908-18.745908 49.13776 0 67.881669l882.74169 882.74169c18.745908 18.743908 49.13776 18.743908 67.881669 0z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null||A.getSelectedNodeByType(e,"link")==null},t.prototype.exec=function(e,n){this.isDisabled(e)||N.unwrapNodes(e,{match:function(r){return A.checkNodeType(r,"link")}})},t}(),iot=function(){function t(){this.title=tt("link.view"),this.iconSvg=WI,this.tag="button"}return t.prototype.getSelectedLinkElem=function(e){var n=A.getSelectedNodeByType(e,"link");return n??null},t.prototype.getValue=function(e){var n=this.getSelectedLinkElem(e);return n&&n.url||""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null||this.getSelectedLinkElem(e)==null},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){if(!n||typeof n!="string")throw new Error("View link failed, link url is '"+n+"'");window.open(n,"_blank")}},t}(),tk={checkLink:function(t,e){return!0},parseLinkUrl:function(t){return t}},aot={renderElems:[tot],elemsToHtml:[{type:"link",elemToHtml:function(t,e){var n=t,r=n.url,o=n.target;return'<a href="'+r+'" target="'+(o===void 0?"_blank":o)+'">'+e+"</a>"}}],parseElemsHtml:[eot],menus:[{key:"insertLink",factory:function(){return new not},config:tk},{key:"editLink",factory:function(){return new rot},config:tk},{key:"unLink",factory:function(){return new oot}},{key:"viewLink",factory:function(){return new iot}}],editorPlugin:function(t){var e=t.isInline,n=t.insertData,r=t.normalizeNode;t.insertNode,t.insertText;var o=t;return o.isInline=function(i){return i.type==="link"||e(i)},o.insertData=function(i){var a=i.getData("text/plain");if(function(l){if(typeof l!="string")return!1;var c=l.match(Xrt);if(!c)return!1;var f=c[1];return!(!f||!Zrt.test(f)&&!Jrt.test(f))}(a)){if(!aC(o)){var u=o.selection;if(u!=null){var s=D.string(o,u);eL(o,s,a)}}}else n(i)},o.normalizeNode=function(i){var a=Yt(i,2),u=a[0],s=a[1];return A.getNodeType(u)!=="link"?r([u,s]):Q.string(u)===""?N.removeNodes(o,{at:s}):r([u,s])},o}},uot=mt(1 .valueOf),sot=St.RangeError,lot=St.RangeError,nL=St.String,rL=Math.floor,p6=mt(function(t){var e=Ee(Ir(this)),n="",r=bc(t);if(r<0||r==1/0)throw sot("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(e+=e))1&r&&(n+=e);return n}),ek=mt("".slice),vf=mt(1 .toFixed),hl=function(t,e,n){return e===0?n:e%2==1?hl(t,e-1,n*t):hl(t*t,e/2,n)},Vs=function(t,e,n){for(var r=-1,o=n;++r<6;)o+=e*t[r],t[r]=o%1e7,o=rL(o/1e7)},u2=function(t,e){for(var n=6,r=0;--n>=0;)r+=t[n],t[n]=rL(r/e),r=r%e*1e7},nk=function(t){for(var e=6,n="";--e>=0;)if(n!==""||e===0||t[e]!==0){var r=nL(t[e]);n=n===""?r:n+p6("0",7-r.length)+r}return n};function rk(t,e){return"w-e-image-container-"+A.findKey(t,e).id}tn({target:"Number",proto:!0,forced:Ce(function(){return vf(8e-5,3)!=="0.000"||vf(.9,0)!=="1"||vf(1.255,2)!=="1.25"||vf(0xde0b6b3a7640080,0)!=="1000000000000000128"})||!Ce(function(){vf({})})},{toFixed:function(t){var e,n,r,o,i=uot(this),a=bc(t),u=[0,0,0,0,0,0],s="",l="0";if(a<0||a>20)throw lot("Incorrect fraction digits");if(i!=i)return"NaN";if(i<=-1e21||i>=1e21)return nL(i);if(i<0&&(s="-",i=-i),i>1e-21)if(n=(e=function(c){for(var f=0,p=c;p>=4096;)f+=12,p/=4096;for(;p>=2;)f+=1,p/=2;return f}(i*hl(2,69,1))-69)<0?i*hl(2,-e,1):i/hl(2,e,1),n*=4503599627370496,(e=52-e)>0){for(Vs(u,0,n),r=a;r>=7;)Vs(u,1e7,0),r-=7;for(Vs(u,hl(10,r,1),0),r=e-1;r>=23;)u2(u,1<<23),r-=23;u2(u,1<<r),Vs(u,1,1),u2(u,2),l=nk(u)}else Vs(u,0,n),Vs(u,1<<-e,0),l=nk(u)+p6("0",a);return a>0?s+((o=l.length)<=a?"0."+p6("0",a-o)+l:ek(l,0,o-a)+"."+ek(l,o-a)):s+l}});var cot={type:"image",renderElem:function(t,e,n){var r=t,o=r.src,i=r.alt,a=i===void 0?"":i,u=r.href,s=u===void 0?"":u,l=r.style,c=l===void 0?{}:l,f=c.width,p=f===void 0?"":f,d=c.height,y=d===void 0?"":d,g=A.isNodeSelected(n,t),v={};p&&(v.width="100%"),y&&(v.height="100%");var m=bt("img",{style:v,src:o,alt:a,"data-href":s}),h=n.isDisabled();return g&&!h?function(b,w,E,x){var C=B("body"),O=rk(b,w),F=x.width,R=x.height,H=0,M=0,K=0,U=!1,W=null;function q(at){W=function(){var P=B("#"+O);if(P.length===0)throw new Error("Cannot find image container elem");return P}(),H=at;var k=W.find("img");if(k.length===0)throw new Error("Cannot find image elem");M=k.width(),K=k.height(),C.on("mousemove",nt),C.on("mouseup",lt);var S=A.getHoverbar(b);S&&S.hideAndClean()}var nt=Ju(function(at){at.preventDefault();var k=at.clientX,S=M+(U?H-k:k-H),P=K*(S/M);W!=null&&(S<=15||P<=15||(W.css("width",S+"px"),W.css("height",P+"px")))},100);function lt(at){if(C.off("mousemove",nt),W!=null){var k=W.width().toFixed(2),S=W.height().toFixed(2),P={style:ka(ka({},w.style),{width:k+"px",height:S+"px"})};N.setNodes(b,P,{at:A.findPath(b,w)}),C.off("mouseup",lt)}}var st={};return F&&(st.width=F),R&&(st.height=R),bt("div",{id:O,style:st,className:"w-e-image-container w-e-selected-image-container",on:{mousedown:function(at){var k=B(at.target);k.hasClass("w-e-image-dragger")&&(at.preventDefault(),(k.hasClass("left-top")||k.hasClass("left-bottom"))&&(U=!0),q(at.clientX))}}},E,bt("div",{className:"w-e-image-dragger left-top"}),bt("div",{className:"w-e-image-dragger right-top"}),bt("div",{className:"w-e-image-dragger left-bottom"}),bt("div",{className:"w-e-image-dragger right-bottom"}))}(n,t,m,{width:p,height:y}):function(b,w,E,x){var C=x.width,O=x.height,F={};return C&&(F.width=C),O&&(F.height=O),bt("div",{id:rk(b,w),style:F,className:"w-e-image-container"},E)}(n,t,m,{width:p,height:y})}},fot={selector:"img:not([data-w-e-type])",parseElemHtml:function(t,e,n){var r=B(t),o=r.attr("data-href")||"";return o=decodeURIComponent(o),{type:"image",src:r.attr("src")||"",alt:r.attr("alt")||"",href:o,style:{width:to(r,"width"),height:to(r,"height")},children:[{text:""}]}}};function oL(t,e,n,r,o){return r===void 0&&(r=""),o===void 0&&(o=""),Ma(this,void 0,void 0,function(){var i,a;return za(this,function(u){switch(u.label){case 0:return(i=e.getMenuConfig(t).checkImage)?[4,i(n,r,o)]:[3,2];case 1:if(typeof(a=u.sent())=="string")return e.alert(a,"error"),[2,!1];if(a==null)return[2,!1];u.label=2;case 2:return[2,!0]}})})}function iL(t,e,n){return Ma(this,void 0,void 0,function(){var r;return za(this,function(o){switch(o.label){case 0:return(r=e.getMenuConfig(t).parseImageSrc)?[4,r(n)]:[3,2];case 1:return[2,o.sent()];case 2:return[2,n]}})})}function Iu(t,e,n,r){return n===void 0&&(n=""),r===void 0&&(r=""),Ma(this,void 0,void 0,function(){var o,i,a;return za(this,function(u){switch(u.label){case 0:return[4,oL("insertImage",t,e,n,r)];case 1:return u.sent()?[4,iL("insertImage",t,e)]:[2];case 2:return o=u.sent(),i={type:"image",src:iC(o),href:r,alt:n,style:{},children:[{text:""}]},t.selection===null&&t.restoreSelection(),A.getSelectedNodeByType(t,"image")&&t.move(1),vm(t)||(N.insertNodes(t,i),(a=t.getMenuConfig("insertImage").onInsertedImage)&&a(i)),[2]}})})}function vm(t){var e=t.selection;return e==null||!L.isCollapsed(e)||!!Yt(D.nodes(t,{match:function(n){var r=A.getNodeType(n);return r==="code"||r==="pre"||r==="link"||r==="list-item"||!!r.startsWith("header")||r==="blockquote"||!!D.isVoid(t,n)},universal:!0}),1)[0]}function l0(){return gm("w-e-insert-image")}var dot=function(){function t(){this.title=tt("image.netImage"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M959.877 128l0.123 0.123v767.775l-0.123 0.122H64.102l-0.122-0.122V128.123l0.122-0.123h895.775zM960 64H64C28.795 64 0 92.795 0 128v768c0 35.205 28.795 64 64 64h896c35.205 0 64-28.795 64-64V128c0-35.205-28.795-64-64-64zM832 288.01c0 53.023-42.988 96.01-96.01 96.01s-96.01-42.987-96.01-96.01S682.967 192 735.99 192 832 234.988 832 288.01zM896 832H128V704l224.01-384 256 320h64l224.01-192z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=l0(),this.altInputId=l0(),this.hrefInputId=l0(),this.buttonId=l0()}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,n){},t.prototype.isDisabled=function(e){return vm(e)},t.prototype.getModalPositionNode=function(e){return null},t.prototype.getModalContentElem=function(e){var n=this,r=this,o=r.srcInputId,i=r.altInputId,a=r.hrefInputId,u=r.buttonId,s=Yt(or(tt("image.src"),o),2),l=s[0],c=B(s[1]),f=Yt(or(tt("image.desc"),i),2),p=f[0],d=B(f[1]),y=Yt(or(tt("image.link"),a),2),g=y[0],v=B(y[1]),m=Yt(vc(u,tt("common.ok")),1)[0];if(this.$content==null){var h=B("<div></div>");h.on("click","#"+u,function(w){w.preventDefault();var E=h.find("#"+o).val().trim(),x=h.find("#"+i).val().trim(),C=h.find("#"+a).val().trim();n.insertImage(e,E,x,C),e.hidePanelOrModal()}),this.$content=h}var b=this.$content;return b.empty(),b.append(l),b.append(p),b.append(g),b.append(m),c.val(""),d.val(""),v.val(""),setTimeout(function(){c.focus()}),b[0]},t.prototype.insertImage=function(e,n,r,o){r===void 0&&(r=""),o===void 0&&(o=""),n&&(e.restoreSelection(),this.isDisabled(e)||Iu(e,n,r,o))},t}(),pot=function(){function t(){this.title=tt("image.delete"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M826.8032 356.5312c-19.328 0-36.3776 15.6928-36.3776 35.0464v524.2624c0 19.328-16 34.56-35.328 34.56H264.9344c-19.328 0-35.5072-15.3088-35.5072-34.56V390.0416c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.6928-33.5104 35.0464V915.712c0 57.9328 44.6208 108.288 102.528 108.288H755.2c57.9328 0 108.0832-50.4576 108.0832-108.288V391.4752c-0.1024-19.2512-17.1264-34.944-36.48-34.944z" p-id="9577"></path><path d="M437.1712 775.7568V390.6048c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.616-33.5104 35.0464v385.152c0 19.328 14.1568 35.0464 33.5104 35.0464s33.5104-15.7184 33.5104-35.0464zM649.7024 775.7568V390.6048c0-19.328-17.0496-35.0464-36.3776-35.0464s-36.3776 15.616-36.3776 35.0464v385.152c0 19.328 17.0496 35.0464 36.3776 35.0464s36.3776-15.7184 36.3776-35.0464zM965.0432 217.0368h-174.6176V145.5104c0-57.9328-47.2064-101.76-104.6528-101.76h-350.976c-57.8304 0-105.3952 43.8528-105.3952 101.76v71.5264H54.784c-19.4304 0-35.0464 14.1568-35.0464 33.5104 0 19.328 15.616 33.5104 35.0464 33.5104h910.3616c19.328 0 35.0464-14.1568 35.0464-33.5104 0-19.3536-15.6928-33.5104-35.1488-33.5104z m-247.3728 0H297.3952V145.5104c0-19.328 18.2016-34.7648 37.4272-34.7648h350.976c19.1488 0 31.872 15.1296 31.872 34.7648v71.5264z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null||A.getSelectedNodeByType(e,"image")==null},t.prototype.exec=function(e,n){this.isDisabled(e)||N.removeNodes(e,{match:function(r){return A.checkNodeType(r,"image")}})},t}();function c0(){return gm("w-e-edit-image")}var hot=function(){function t(){this.title=tt("image.edit"),this.iconSvg=UI,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=c0(),this.altInputId=c0(),this.hrefInputId=c0(),this.buttonId=c0()}return t.prototype.getValue=function(e){return""},t.prototype.getImageNode=function(e){return A.getSelectedNodeByType(e,"image")},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,n){},t.prototype.isDisabled=function(e){var n=e.selection;return n==null||!L.isCollapsed(n)||A.getSelectedNodeByType(e,"image")==null},t.prototype.getModalPositionNode=function(e){return this.getImageNode(e)},t.prototype.getModalContentElem=function(e){var n=this,r=this,o=r.srcInputId,i=r.altInputId,a=r.hrefInputId,u=r.buttonId,s=this.getImageNode(e);if(s==null)throw new Error("Not found selected image node");var l=Yt(or(tt("image.src"),o),2),c=l[0],f=B(l[1]),p=Yt(or(tt("image.desc"),i),2),d=p[0],y=B(p[1]),g=Yt(or(tt("image.link"),a),2),v=g[0],m=B(g[1]),h=Yt(vc(u,tt("common.ok")),1)[0];if(this.$content==null){var b=B("<div></div>");b.on("click","#"+u,function(H){H.preventDefault();var M=b.find("#"+o).val(),K=b.find("#"+i).val(),U=b.find("#"+a).val();n.updateImage(e,M,K,U),e.hidePanelOrModal()}),this.$content=b}var w=this.$content;w.empty(),w.append(c),w.append(d),w.append(v),w.append(h);var E=s,x=E.src,C=E.alt,O=C===void 0?"":C,F=E.href,R=F===void 0?"":F;return f.val(x),y.val(O),m.val(R),setTimeout(function(){f.focus()}),w[0]},t.prototype.updateImage=function(e,n,r,o,i){r===void 0&&(r=""),o===void 0&&(o=""),i===void 0&&(i={}),n&&(e.restoreSelection(),this.isDisabled(e)||function(a,u,s,l,c){s===void 0&&(s=""),l===void 0&&(l=""),c===void 0&&(c={}),Ma(this,void 0,void 0,function(){var f,p,d,y,g,v;return za(this,function(m){switch(m.label){case 0:return[4,oL("editImage",a,u,s,l)];case 1:return m.sent()?[4,iL("editImage",a,u)]:[2];case 2:return f=m.sent(),(p=A.getSelectedNodeByType(a,"image"))==null||(d=p.style,y={src:f,alt:s,href:l,style:ka(ka({},d===void 0?{}:d),c)},N.setNodes(a,y,{match:function(h){return A.checkNodeType(h,"image")}}),g=A.getSelectedNodeByType(a,"image"),(v=a.getMenuConfig("editImage").onUpdatedImage)&&v(g)),[2]}})})}(e,n,r,o,i))},t}(),got=function(){function t(){this.title=tt("image.viewLink"),this.iconSvg=WI,this.tag="button"}return t.prototype.getValue=function(e){var n=A.getSelectedNodeByType(e,"image");return n&&n.href||""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null||!this.getValue(e)},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){if(!n||typeof n!="string")throw new Error("View image link failed, image.href is '"+n+"'");window.open(n,"_blank")}},t}(),uC=function(){function t(){this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.getSelectedNode=function(e){return A.getSelectedNodeByType(e,"image")},t.prototype.isDisabled=function(e){return e.selection==null||this.getSelectedNode(e)==null},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){var r=this.getSelectedNode(e);if(r!=null){var o=A.getHoverbar(e);o&&o.hideAndClean();var i=r.style,a={style:ka(ka({},i===void 0?{}:i),{width:this.value,height:""})};N.setNodes(e,a,{match:function(u){return A.checkNodeType(u,"image")}})}}},t}(),vot=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title="30%",n.value="30%",n}return be(e,t),e}(uC),mot=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title="50%",n.value="50%",n}return be(e,t),e}(uC),yot=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title="100%",n.value="100%",n}return be(e,t),e}(uC),ok={onInsertedImage:function(t){},onUpdatedImage:function(t){},checkImage:function(t,e,n){return!0},parseImageSrc:function(t){return t}},bot={renderElems:[cot],elemsToHtml:[{type:"image",elemToHtml:function(t,e){var n=t,r=n.src,o=n.alt,i=o===void 0?"":o,a=n.href,u=a===void 0?"":a,s=n.style,l=s===void 0?{}:s,c=l.width,f=c===void 0?"":c,p=l.height,d=p===void 0?"":p,y="";return f&&(y+="width: "+f+";"),d&&(y+="height: "+d+";"),'<img src="'+r+'" alt="'+i+'" data-href="'+u+'" style="'+y+'"/>'}}],parseElemsHtml:[fot],menus:[{key:"insertImage",factory:function(){return new dot},config:ok},{key:"deleteImage",factory:function(){return new pot}},{key:"editImage",factory:function(){return new hot},config:ok},{key:"viewImageLink",factory:function(){return new got}},{key:"imageWidth30",factory:function(){return new vot}},{key:"imageWidth50",factory:function(){return new mot}},{key:"imageWidth100",factory:function(){return new yot}}],editorPlugin:function(t){var e=t.isInline,n=t.isVoid;t.insertNode;var r=t;return r.isInline=function(o){return o.type==="image"||e(o)},r.isVoid=function(o){return o.type==="image"||n(o)},r}},wot={type:"todo",renderElem:function(t,e,n){var r=!1;n.isDisabled()&&(r=!0);var o=bt("div",{style:{margin:"5px 0"}},bt("span",{contentEditable:!1,style:{marginRight:"0.5em"}},bt("input",{type:"checkbox",checked:t.checked,disabled:r,on:{change:function(i){var a=A.findPath(n,t),u={checked:i.target.checked};N.setNodes(n,u,{at:a})}}})),bt("span",null,e));return o}},Eot=function(){function t(){this.title=tt("todo.todo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M278.755556 403.911111l-79.644445 79.644445L455.111111 739.555556l568.888889-568.888889-79.644444-79.644445L455.111111 580.266667l-176.355555-176.355556zM910.222222 910.222222H113.777778V113.777778h568.888889V0H113.777778C51.2 0 0 51.2 0 113.777778v796.444444c0 62.577778 51.2 113.777778 113.777778 113.777778h796.444444c62.577778 0 113.777778-51.2 113.777778-113.777778V455.111111h-113.777778v455.111111z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!!A.getSelectedNodeByType(e,"todo")},t.prototype.isDisabled=function(e){return e.selection==null||!!A.getSelectedElems(e).some(function(n){if(D.isVoid(e,n)&&D.isBlock(e,n))return!0;var r=n.type;return!!["pre","table","list-item"].includes(r)||void 0})},t.prototype.exec=function(e,n){var r=this.isActive(e);N.setNodes(e,{type:r?"paragraph":"todo"})},t}(),Dot={selector:'div[data-w-e-type="todo"]',parseElemHtml:function(t,e,n){var r=B(t);(e=e.filter(function(i){return!!ot.isText(i)||!!n.isInline(i)})).length===0&&(e=[{text:r.text().replace(/\s+/gm," ")}]);var o=!1;return r.find('input[type="checkbox"]').attr("checked")!=null&&(o=!0),{type:"todo",checked:o,children:e}}},Cot={renderElems:[wot],elemsToHtml:[{type:"todo",elemToHtml:function(t,e){return'<div data-w-e-type="todo"><input type="checkbox" disabled '+(t.checked?"checked":"")+">"+e+"</div>"}}],preParseHtml:[{selector:"ul.w-e-todo",preParseHtml:function(t){var e=B(t).find("li"),n=B('<div data-w-e-type="todo"></div>'),r=e.find("input[type]");return n.append(r),e.children()[0].remove(),n[0].innerHTML=n[0].innerHTML+e[0].innerHTML,n[0]}}],parseElemsHtml:[Dot],menus:[{key:"todo",factory:function(){return new Eot}}],editorPlugin:function(t){var e=t.deleteBackward,n=t;return n.deleteBackward=function(r){var o=t.selection;if(o&&L.isCollapsed(o)){var i=A.getSelectedNodeByType(t,"todo");if(i&&Q.string(i).length===0)return void N.setNodes(t,{type:"paragraph"},{mode:"highest"})}e(r)},n}},xot={type:"blockquote",renderElem:function(t,e,n){return bt("blockquote",null,e)}},Sot={selector:"blockquote:not([data-w-e-type])",parseElemHtml:function(t,e,n){var r=B(t);return(e=e.filter(function(o){return!!ot.isText(o)||!!n.isInline(o)})).length===0&&(e=[{text:r.text().replace(/\s+/gm," ")}]),{type:"blockquote",children:e}}},Aot=function(){function t(){this.title=tt("blockQuote.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M894.6 907.1H605.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C752.7 180.4 711.3 315.8 711.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z m-472 0H133.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C280.7 180.4 239.3 315.8 239.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!!A.getSelectedNodeByType(e,"blockquote")},t.prototype.isDisabled=function(e){return e.selection==null||!Yt(D.nodes(e,{match:function(n){var r=A.getNodeType(n);return r==="paragraph"||r==="blockquote"},universal:!0,mode:"highest"}),1)[0]},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){var r=this.isActive(e)?"paragraph":"blockquote";N.setNodes(e,{type:r},{mode:"highest"})}},t}(),Oot={key:"blockquote",factory:function(){return new Aot}},kot=mt([].slice),Bot=QD("slice"),Fot=hr("species"),s2=St.Array,_ot=Math.max;tn({target:"Array",proto:!0,forced:!Bot},{slice:function(t,e){var n,r,o,i=mc(this),a=pm(i),u=ip(t,a),s=ip(e===void 0?a:e,a);if(kv(i)&&(n=i.constructor,(JD(n)&&(n===s2||kv(n.prototype))||Sr(n)&&(n=n[Fot])===null)&&(n=void 0),n===s2||n===void 0))return kot(i,u,s);for(r=new(n===void 0?s2:n)(_ot(s-u,0)),o=0;u<s;u++,o++)u in i&&RI(r,o,i[u]);return r.length=o,r}});var Tot={renderElems:[xot],elemsToHtml:[{type:"blockquote",elemToHtml:function(t,e){return"<blockquote>"+e+"</blockquote>"}}],parseElemsHtml:[Sot],menus:[Oot],editorPlugin:function(t){var e=t.insertBreak,n=t.insertText,r=t;return r.insertBreak=function(){var o=r.selection;if(o==null)return e();var i=Yt(D.nodes(t,{match:function(c){return A.checkNodeType(c,"blockquote")},universal:!0}),1)[0];if(!i)return e();var a=i[0],u=A.findPath(t,a),s=D.end(t,u);if(Bt.equals(s,o.focus)){var l=Q.string(a);if(l&&l.slice(-1)===`
  98. `)return t.deleteBackward("character"),void N.insertNodes(r,{type:"paragraph",children:[{text:""}]},{mode:"highest"})}n(`
  99. `)},r}},Pot=function(){function t(){this.title=tt("emotion.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M512 1024C230.4 1024 0 793.6 0 512S230.4 0 512 0s512 230.4 512 512-230.4 512-512 512z m0-102.4c226.742857 0 409.6-182.857143 409.6-409.6S738.742857 102.4 512 102.4 102.4 285.257143 102.4 512s182.857143 409.6 409.6 409.6z m-204.8-358.4h409.6c0 113.371429-91.428571 204.8-204.8 204.8s-204.8-91.428571-204.8-204.8z m0-102.4c-43.885714 0-76.8-32.914286-76.8-76.8s32.914286-76.8 76.8-76.8 76.8 32.914286 76.8 76.8-32.914286 76.8-76.8 76.8z m409.6 0c-43.885714 0-76.8-32.914286-76.8-76.8s32.914286-76.8 76.8-76.8c43.885714 0 76.8 32.914286 76.8 76.8s-32.914286 76.8-76.8 76.8z"></path></svg>',this.tag="button",this.showDropPanel=!0,this.$content=null}return t.prototype.exec=function(e,n){},t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null||!!Yt(D.nodes(e,{match:function(n){return A.getNodeType(n)==="pre"||!!D.isVoid(e,n)},universal:!0}),1)[0]},t.prototype.getPanelContentElem=function(e){if(this.$content==null){var n=B('<ul class="w-e-panel-content-emotion"></ul>');n.on("click","li",function(i){var a=i.target;if(a!=null){i.preventDefault();var u=B(a).text();e.insertText(u)}}),this.$content=n}var r=this.$content;if(r==null)return document.createElement("ul");r.empty();var o=e.getMenuConfig("emotion").emotions;return(o===void 0?[]:o).forEach(function(i){var a=B("<li>"+i+"</li>");r.append(a)}),r[0]},t}(),jot={menus:[{key:"emotion",factory:function(){return new Pot},config:{emotions:"😀 😃 😄 😁 😆 😅 😂 🤣 😊 😇 🙂 🙃 😉 😌 😍 😘 😗 😙 😚 😋 😛 😝 😜 🤓 😎 😏 😒 😞 😔 😟 😕 🙁 😣 😖 😫 😩 😢 😭 😤 😠 😡 😳 😱 😨 🤗 🤔 😶 😑 😬 🙄 😯 😴 😷 🤑 😈 🤡 💩 👻 💀 👀 👣 👐 🙌 👏 🤝 👍 👎 👊 ✊ 🤛 🤜 🤞 ✌️ 🤘 👌 👈 👉 👆 👇 ☝️ ✋ 🤚 🖐 🖖 👋 🤙 💪 🖕 ✍️ 🙏".split(" ")}}]},Not={1:"12px",2:"14px",3:"16px",4:"19px",5:"24px",6:"32px",7:"48px"},Iot={selector:"font",preParseHtml:function(t){var e=B(t);if(Ec(e)!=="font")return t;var n=e.attr("size")||"";n&&(e.removeAttr("size"),e.css("font-size",Not[n]));var r=e.attr("face")||"";return r&&(e.removeAttr("face"),e.css("font-family",r)),e[0]}},Lot=mt("".indexOf);tn({target:"String",proto:!0,forced:!KI("includes")},{includes:function(t){return!!~Lot(Ee(Ir(this)),Ee(qI(t)),arguments.length>1?arguments[1]:void 0)}});var Ti,lg,f0=function(t){return t&&t.Math==Math&&t},Ft=f0(typeof globalThis=="object"&&globalThis)||f0(typeof window=="object"&&window)||f0(typeof self=="object"&&self)||f0(typeof xv=="object"&&xv)||function(){return this}()||Function("return this")(),sC=Function.prototype,ik=sC.apply,Rot=sC.bind,ak=sC.call,aL=typeof Reflect=="object"&&Reflect.apply||(Rot?ak.bind(ik):function(){return ak.apply(ik,arguments)}),uL=Function.prototype,h6=uL.bind,g6=uL.call,Mot=h6&&h6.bind(g6),Te=h6?function(t){return t&&Mot(g6,t)}:function(t){return t&&function(){return g6.apply(t,arguments)}},vn=function(t){return typeof t=="function"},fr=function(t){try{return!!t()}catch{return!0}},qn=!fr(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),mf=Function.prototype.call,Yr=mf.bind?mf.bind(mf):function(){return mf.apply(mf,arguments)},uk={}.propertyIsEnumerable,sk=Object.getOwnPropertyDescriptor,zot=sk&&!uk.call({1:2},1)?function(t){var e=sk(this,t);return!!e&&e.enumerable}:uk,lC={f:zot},is=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},$ot=Te({}.toString),Hot=Te("".slice),Lu=function(t){return Hot($ot(t),8,-1)},l2=Ft.Object,Vot=Te("".split),sL=fr(function(){return!l2("z").propertyIsEnumerable(0)})?function(t){return Lu(t)=="String"?Vot(t,""):l2(t)}:l2,Uot=Ft.TypeError,cC=function(t){if(t==null)throw Uot("Can't call method on "+t);return t},Lo=function(t){return sL(cC(t))},Ar=function(t){return typeof t=="object"?t!==null:vn(t)},Er={},lk=function(t){return vn(t)?t:void 0},rh=function(t,e){return arguments.length<2?lk(Er[t])||lk(Ft[t]):Er[t]&&Er[t][e]||Ft[t]&&Ft[t][e]},lL=Te({}.isPrototypeOf),c2=rh("navigator","userAgent")||"",ck=Ft.process,fk=Ft.Deno,dk=ck&&ck.versions||fk&&fk.version,pk=dk&&dk.v8;pk&&(lg=(Ti=pk.split("."))[0]>0&&Ti[0]<4?1:+(Ti[0]+Ti[1])),!lg&&c2&&(!(Ti=c2.match(/Edge\/(\d+)/))||Ti[1]>=74)&&(Ti=c2.match(/Chrome\/(\d+)/))&&(lg=+Ti[1]);var _v=lg,vo=!!Object.getOwnPropertySymbols&&!fr(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&_v&&_v<41}),fC=vo&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Wot=Ft.Object,Cl=fC?function(t){return typeof t=="symbol"}:function(t){var e=rh("Symbol");return vn(e)&&lL(e.prototype,Wot(t))},Got=Ft.String,qot=Ft.TypeError,cL=function(t){if(vn(t))return t;throw qot(function(e){try{return Got(e)}catch{return"Object"}}(t)+" is not a function")},Kot=Ft.TypeError,Yot=Object.defineProperty,fa=Ft["__core-js_shared__"]||function(t,e){try{Yot(Ft,t,{value:e,configurable:!0,writable:!0})}catch{Ft[t]=e}return e}("__core-js_shared__",{}),bs=lm(function(t){(t.exports=function(e,n){return fa[e]||(fa[e]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),Xot=Ft.Object,oh=function(t){return Xot(cC(t))},Zot=Te({}.hasOwnProperty),Kt=Object.hasOwn||function(t,e){return Zot(oh(t),e)},Jot=0,Qot=Math.random(),tit=Te(1 .toString),Tv=function(t){return"Symbol("+(t===void 0?"":t)+")_"+tit(++Jot+Qot,36)},yf=bs("wks"),Ru=Ft.Symbol,hk=Ru&&Ru.for,eit=fC?Ru:Ru&&Ru.withoutSetter||Tv,gr=function(t){if(!Kt(yf,t)||!vo&&typeof yf[t]!="string"){var e="Symbol."+t;vo&&Kt(Ru,t)?yf[t]=Ru[t]:yf[t]=fC&&hk?hk(e):eit(e)}return yf[t]},nit=Ft.TypeError,rit=gr("toPrimitive"),Dc=function(t){var e=function(n,r){if(!Ar(n)||Cl(n))return n;var o,i,a=(o=n[rit])==null?void 0:cL(o);if(a){if(r===void 0&&(r="default"),i=Yr(a,n,r),!Ar(i)||Cl(i))return i;throw nit("Can't convert object to primitive value")}return r===void 0&&(r="number"),function(u,s){var l,c;if(s==="string"&&vn(l=u.toString)&&!Ar(c=Yr(l,u))||vn(l=u.valueOf)&&!Ar(c=Yr(l,u))||s!=="string"&&vn(l=u.toString)&&!Ar(c=Yr(l,u)))return c;throw Kot("Can't convert object to primitive value")}(n,r)}(t,"string");return Cl(e)?e:e+""},v6=Ft.document,oit=Ar(v6)&&Ar(v6.createElement),fL=function(t){return oit?v6.createElement(t):{}},dL=!qn&&!fr(function(){return Object.defineProperty(fL("div"),"a",{get:function(){return 7}}).a!=7}),gk=Object.getOwnPropertyDescriptor,dC={f:qn?gk:function(t,e){if(t=Lo(t),e=Dc(e),dL)try{return gk(t,e)}catch{}if(Kt(t,e))return is(!Yr(lC.f,t,e),t[e])}},iit=/#|\.prototype\./,ih=function(t,e){var n=uit[ait(t)];return n==lit||n!=sit&&(vn(e)?fr(e):!!e)},ait=ih.normalize=function(t){return String(t).replace(iit,".").toLowerCase()},uit=ih.data={},sit=ih.NATIVE="N",lit=ih.POLYFILL="P",cit=ih,vk=Te(Te.bind),pL=function(t,e){return cL(t),e===void 0?t:vk?vk(t,e):function(){return t.apply(e,arguments)}},fit=Ft.String,dit=Ft.TypeError,as=function(t){if(Ar(t))return t;throw dit(fit(t)+" is not an object")},pit=Ft.TypeError,mk=Object.defineProperty,ws={f:qn?mk:function(t,e,n){if(as(t),e=Dc(e),as(n),dL)try{return mk(t,e,n)}catch{}if("get"in n||"set"in n)throw pit("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},yo=qn?function(t,e,n){return ws.f(t,e,is(1,n))}:function(t,e,n){return t[e]=n,t},hit=dC.f,git=function(t){var e=function(n,r,o){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,r)}return new t(n,r,o)}return aL(t,this,arguments)};return e.prototype=t.prototype,e},Wi=function(t,e){var n,r,o,i,a,u,s,l,c=t.target,f=t.global,p=t.stat,d=t.proto,y=f?Ft:p?Ft[c]:(Ft[c]||{}).prototype,g=f?Er:Er[c]||yo(Er,c,{})[c],v=g.prototype;for(o in e)n=!cit(f?o:c+(p?".":"#")+o,t.forced)&&y&&Kt(y,o),a=g[o],n&&(u=t.noTargetGet?(l=hit(y,o))&&l.value:y[o]),i=n&&u?u:e[o],n&&typeof a==typeof i||(s=t.bind&&n?pL(i,Ft):t.wrap&&n?git(i):d&&vn(i)?Te(i):i,(t.sham||i&&i.sham||a&&a.sham)&&yo(s,"sham",!0),yo(g,o,s),d&&(Kt(Er,r=c+"Prototype")||yo(Er,r,{}),yo(Er[r],o,i),t.real&&v&&!v[o]&&yo(v,o,i)))},Pv=Array.isArray||function(t){return Lu(t)=="Array"},vit=Math.ceil,mit=Math.floor,pC=function(t){var e=+t;return e!=e||e===0?0:(e>0?mit:vit)(e)},yit=Math.min,mm=function(t){return(e=t.length)>0?yit(pC(e),9007199254740991):0;var e},m6=function(t,e,n){var r=Dc(e);r in t?ws.f(t,r,is(0,n)):t[r]=n},hL={};hL[gr("toStringTag")]="z";var hC=String(hL)==="[object z]",bit=gr("toStringTag"),wit=Ft.Object,Eit=Lu(function(){return arguments}())=="Arguments",ym=hC?Lu:function(t){var e,n,r;return t===void 0?"Undefined":t===null?"Null":typeof(n=function(o,i){try{return o[i]}catch{}}(e=wit(t),bit))=="string"?n:Eit?Lu(e):(r=Lu(e))=="Object"&&vn(e.callee)?"Arguments":r},Dit=Te(Function.toString);vn(fa.inspectSource)||(fa.inspectSource=function(t){return Dit(t)});var gL=fa.inspectSource,vL=function(){},Cit=[],mL=rh("Reflect","construct"),gC=/^\s*(?:class|function)\b/,xit=Te(gC.exec),Sit=!gC.exec(vL),bf=function(t){if(!vn(t))return!1;try{return mL(vL,Cit,t),!0}catch{return!1}},Ait=!mL||fr(function(){var t;return bf(bf.call)||!bf(Object)||!bf(function(){t=!0})||t})?function(t){if(!vn(t))return!1;switch(ym(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Sit||!!xit(gC,gL(t))}:bf,Oit=gr("species"),yk=Ft.Array,yL=function(t,e){return new(function(n){var r;return Pv(n)&&(r=n.constructor,(Ait(r)&&(r===yk||Pv(r.prototype))||Ar(r)&&(r=r[Oit])===null)&&(r=void 0)),r===void 0?yk:r}(t))(e===0?0:e)},kit=gr("species"),bL=gr("isConcatSpreadable"),bk=Ft.TypeError,Bit=_v>=51||!fr(function(){var t=[];return t[bL]=!1,t.concat()[0]!==t}),Fit=_v>=51||!fr(function(){var t=[];return(t.constructor={})[kit]=function(){return{foo:1}},t.concat(Boolean).foo!==1}),_it=function(t){if(!Ar(t))return!1;var e=t[bL];return e!==void 0?!!e:Pv(t)};Wi({target:"Array",proto:!0,forced:!Bit||!Fit},{concat:function(t){var e,n,r,o,i,a=oh(this),u=yL(a,0),s=0;for(e=-1,r=arguments.length;e<r;e++)if(_it(i=e===-1?a:arguments[e])){if(s+(o=mm(i))>9007199254740991)throw bk("Maximum allowed index exceeded");for(n=0;n<o;n++,s++)n in i&&m6(u,s,i[n])}else{if(s>=9007199254740991)throw bk("Maximum allowed index exceeded");m6(u,s++,i)}return u.length=s,u}});var d0,Tit=Ft.String,jv=function(t){if(ym(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Tit(t)},Pit=Math.max,jit=Math.min,y6=function(t,e){var n=pC(t);return n<0?Pit(n+e,0):jit(n,e)},wk=function(t){return function(e,n,r){var o,i=Lo(e),a=mm(i),u=y6(r,a);if(t&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===n)return t||u||0;return!t&&-1}},Nit={includes:wk(!0),indexOf:wk(!1)},ah={},Iit=Nit.indexOf,Ek=Te([].push),wL=function(t,e){var n,r=Lo(t),o=0,i=[];for(n in r)!Kt(ah,n)&&Kt(r,n)&&Ek(i,n);for(;e.length>o;)Kt(r,n=e[o++])&&(~Iit(i,n)||Ek(i,n));return i},Nv=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],vC=Object.keys||function(t){return wL(t,Nv)},Lit=qn?Object.defineProperties:function(t,e){as(t);for(var n,r=Lo(e),o=vC(e),i=o.length,a=0;i>a;)ws.f(t,n=o[a++],r[n]);return t},Rit=rh("document","documentElement"),Dk=bs("keys"),bm=function(t){return Dk[t]||(Dk[t]=Tv(t))},EL=bm("IE_PROTO"),f2=function(){},DL=function(t){return"<script>"+t+"<\/script>"},Ck=function(t){t.write(DL("")),t.close();var e=t.parentWindow.Object;return t=null,e},cg=function(){try{d0=new ActiveXObject("htmlfile")}catch{}var t,e;cg=typeof document<"u"?document.domain&&d0?Ck(d0):((e=fL("iframe")).style.display="none",Rit.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(DL("document.F=Object")),t.close(),t.F):Ck(d0);for(var n=Nv.length;n--;)delete cg.prototype[Nv[n]];return cg()};ah[EL]=!0;var Iv,bd,Lv,us=Object.create||function(t,e){var n;return t!==null?(f2.prototype=as(t),n=new f2,f2.prototype=null,n[EL]=t):n=cg(),e===void 0?n:Lit(n,e)},Mit=Nv.concat("length","prototype"),CL={f:Object.getOwnPropertyNames||function(t){return wL(t,Mit)}},zit=Ft.Array,$it=Math.max,xk=CL.f,Sk=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],xL={f:function(t){return Sk&&Lu(t)=="Window"?function(e){try{return xk(e)}catch{return function(r,o,i){for(var a=mm(r),u=y6(void 0,a),s=y6(a,a),l=zit($it(s-u,0)),c=0;u<s;u++,c++)m6(l,c,r[u]);return l.length=c,l}(Sk)}}(t):xk(Lo(t))}},d2={f:Object.getOwnPropertySymbols},Hit=Te([].slice),Jl=function(t,e,n,r){r&&r.enumerable?t[e]=n:yo(t,e,n)},mC={f:gr},Vit=ws.f,Ne=function(t){var e=Er.Symbol||(Er.Symbol={});Kt(e,t)||Vit(e,t,{value:mC.f(t)})},Uit=hC?{}.toString:function(){return"[object "+ym(this)+"]"},Wit=ws.f,Ak=gr("toStringTag"),Rv=function(t,e,n,r){if(t){var o=n?t:t.prototype;Kt(o,Ak)||Wit(o,Ak,{configurable:!0,value:e}),r&&!hC&&yo(o,"toString",Uit)}},Ok=Ft.WeakMap,Git=vn(Ok)&&/native code/.test(gL(Ok)),b6=Ft.TypeError,qit=Ft.WeakMap;if(Git||fa.state){var ru=fa.state||(fa.state=new qit),Kit=Te(ru.get),kk=Te(ru.has),Yit=Te(ru.set);Iv=function(t,e){if(kk(ru,t))throw new b6("Object already initialized");return e.facade=t,Yit(ru,t,e),e},bd=function(t){return Kit(ru,t)||{}},Lv=function(t){return kk(ru,t)}}else{var Us=bm("state");ah[Us]=!0,Iv=function(t,e){if(Kt(t,Us))throw new b6("Object already initialized");return e.facade=t,yo(t,Us,e),e},bd=function(t){return Kt(t,Us)?t[Us]:{}},Lv=function(t){return Kt(t,Us)}}var Cc={set:Iv,get:bd,has:Lv,enforce:function(t){return Lv(t)?bd(t):Iv(t,{})},getterFor:function(t){return function(e){var n;if(!Ar(e)||(n=bd(e)).type!==t)throw b6("Incompatible receiver, "+t+" required");return n}}},Bk=Te([].push),Pi=function(t){var e=t==1,n=t==2,r=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var p,d,y=oh(s),g=sL(y),v=pL(l,c),m=mm(g),h=0,b=f||yL,w=e?b(s,m):n||a?b(s,0):void 0;m>h;h++)if((u||h in g)&&(d=v(p=g[h],h,y),t))if(e)w[h]=d;else if(d)switch(t){case 3:return!0;case 5:return p;case 6:return h;case 2:Bk(w,p)}else switch(t){case 4:return!1;case 7:Bk(w,p)}return i?-1:r||o?o:w}},wm=[Pi(0),Pi(1),Pi(2),Pi(3),Pi(4),Pi(5),Pi(6),Pi(7)][0],$n=bm("hidden"),Fk=gr("toPrimitive"),Xit=Cc.set,_k=Cc.getterFor("Symbol"),Xr=Object.prototype,Ki=Ft.Symbol,ta=Ki&&Ki.prototype,Tk=Ft.TypeError,p2=Ft.QObject,wf=rh("JSON","stringify"),SL=dC.f,Yi=ws.f,AL=xL.f,Zit=lC.f,OL=Te([].push),li=bs("symbols"),uh=bs("op-symbols"),h2=bs("string-to-symbol-registry"),g2=bs("symbol-to-string-registry"),Jit=bs("wks"),v2=!p2||!p2.prototype||!p2.prototype.findChild,w6=qn&&fr(function(){return us(Yi({},"a",{get:function(){return Yi(this,"a",{value:7}).a}})).a!=7})?function(t,e,n){var r=SL(Xr,e);r&&delete Xr[e],Yi(t,e,n),r&&t!==Xr&&Yi(Xr,e,r)}:Yi,m2=function(t,e){var n=li[t]=us(ta);return Xit(n,{type:"Symbol",tag:t,description:e}),qn||(n.description=e),n},Mv=function(t,e,n){t===Xr&&Mv(uh,e,n),as(t);var r=Dc(e);return as(n),Kt(li,r)?(n.enumerable?(Kt(t,$n)&&t[$n][r]&&(t[$n][r]=!1),n=us(n,{enumerable:is(0,!1)})):(Kt(t,$n)||Yi(t,$n,is(1,{})),t[$n][r]=!0),w6(t,r,n)):Yi(t,r,n)},Pk=function(t,e){as(t);var n=Lo(e),r=vC(n).concat(E6(n));return wm(r,function(o){qn&&!Yr(kL,n,o)||Mv(t,o,n[o])}),t},kL=function(t){var e=Dc(t),n=Yr(Zit,this,e);return!(this===Xr&&Kt(li,e)&&!Kt(uh,e))&&(!(n||!Kt(this,e)||!Kt(li,e)||Kt(this,$n)&&this[$n][e])||n)},jk=function(t,e){var n=Lo(t),r=Dc(e);if(n!==Xr||!Kt(li,r)||Kt(uh,r)){var o=SL(n,r);return!o||!Kt(li,r)||Kt(n,$n)&&n[$n][r]||(o.enumerable=!0),o}},Nk=function(t){var e=AL(Lo(t)),n=[];return wm(e,function(r){Kt(li,r)||Kt(ah,r)||OL(n,r)}),n},E6=function(t){var e=t===Xr,n=AL(e?uh:Lo(t)),r=[];return wm(n,function(o){!Kt(li,o)||e&&!Kt(Xr,o)||OL(r,li[o])}),r};if(vo||(ta=(Ki=function(){if(lL(ta,this))throw Tk("Symbol is not a constructor");var t=arguments.length&&arguments[0]!==void 0?jv(arguments[0]):void 0,e=Tv(t),n=function(r){this===Xr&&Yr(n,uh,r),Kt(this,$n)&&Kt(this[$n],e)&&(this[$n][e]=!1),w6(this,e,is(1,r))};return qn&&v2&&w6(Xr,e,{configurable:!0,set:n}),m2(e,t)}).prototype,Jl(ta,"toString",function(){return _k(this).tag}),Jl(Ki,"withoutSetter",function(t){return m2(Tv(t),t)}),lC.f=kL,ws.f=Mv,dC.f=jk,CL.f=xL.f=Nk,d2.f=E6,mC.f=function(t){return m2(gr(t),t)},qn&&Yi(ta,"description",{configurable:!0,get:function(){return _k(this).description}})),Wi({global:!0,wrap:!0,forced:!vo,sham:!vo},{Symbol:Ki}),wm(vC(Jit),function(t){Ne(t)}),Wi({target:"Symbol",stat:!0,forced:!vo},{for:function(t){var e=jv(t);if(Kt(h2,e))return h2[e];var n=Ki(e);return h2[e]=n,g2[n]=e,n},keyFor:function(t){if(!Cl(t))throw Tk(t+" is not a symbol");if(Kt(g2,t))return g2[t]},useSetter:function(){v2=!0},useSimple:function(){v2=!1}}),Wi({target:"Object",stat:!0,forced:!vo,sham:!qn},{create:function(t,e){return e===void 0?us(t):Pk(us(t),e)},defineProperty:Mv,defineProperties:Pk,getOwnPropertyDescriptor:jk}),Wi({target:"Object",stat:!0,forced:!vo},{getOwnPropertyNames:Nk,getOwnPropertySymbols:E6}),Wi({target:"Object",stat:!0,forced:fr(function(){d2.f(1)})},{getOwnPropertySymbols:function(t){return d2.f(oh(t))}}),wf){var Qit=!vo||fr(function(){var t=Ki();return wf([t])!="[null]"||wf({a:t})!="{}"||wf(Object(t))!="{}"});Wi({target:"JSON",stat:!0,forced:Qit},{stringify:function(t,e,n){var r=Hit(arguments),o=e;if((Ar(e)||t!==void 0)&&!Cl(t))return Pv(e)||(e=function(i,a){if(vn(o)&&(a=Yr(o,this,i,a)),!Cl(a))return a}),r[1]=e,aL(wf,null,r)}})}if(!ta[Fk]){var tat=ta.valueOf;Jl(ta,Fk,function(t){return Yr(tat,this)})}Rv(Ki,"Symbol"),ah[$n]=!0,Ne("asyncIterator"),Ne("hasInstance"),Ne("isConcatSpreadable"),Ne("iterator"),Ne("match"),Ne("matchAll"),Ne("replace"),Ne("search"),Ne("species"),Ne("split"),Ne("toPrimitive"),Ne("toStringTag"),Ne("unscopables"),Rv(Ft.JSON,"JSON",!0);var ea,Ik,Lk,eat=Er.Symbol,Mu={},BL=Function.prototype,nat=qn&&Object.getOwnPropertyDescriptor,y2=Kt(BL,"name"),rat={EXISTS:y2,PROPER:y2&&(function(){}).name==="something",CONFIGURABLE:y2&&(!qn||qn&&nat(BL,"name").configurable)},oat=!fr(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),Rk=bm("IE_PROTO"),D6=Ft.Object,iat=D6.prototype,C6=oat?D6.getPrototypeOf:function(t){var e=oh(t);if(Kt(e,Rk))return e[Rk];var n=e.constructor;return vn(n)&&e instanceof n?n.prototype:e instanceof D6?iat:null},x6=gr("iterator"),FL=!1;[].keys&&("next"in(Lk=[].keys())?(Ik=C6(C6(Lk)))!==Object.prototype&&(ea=Ik):FL=!0);var aat=ea==null||fr(function(){var t={};return ea[x6].call(t)!==t});ea=aat?{}:us(ea),vn(ea[x6])||Jl(ea,x6,function(){return this});var _L={IteratorPrototype:ea,BUGGY_SAFARI_ITERATORS:FL},uat=_L.IteratorPrototype,sat=function(){return this};Ft.String,Ft.TypeError,Object.setPrototypeOf||"__proto__"in{}&&function(){var t={};try{Te(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set)(t,[]),t instanceof Array}catch{}}();var lat=rat.PROPER,p0=_L.BUGGY_SAFARI_ITERATORS,b2=gr("iterator"),cat=function(){return this},TL=function(t,e,n,r,o,i,a){(function(m,h,b,w){var E=h+" Iterator";m.prototype=us(uat,{next:is(1,b)}),Rv(m,E,!1,!0),Mu[E]=sat})(n,e,r);var u,s,l,c=function(m){if(m===o&&g)return g;if(!p0&&m in d)return d[m];switch(m){case"keys":case"values":case"entries":return function(){return new n(this,m)}}return function(){return new n(this)}},f=e+" Iterator",p=!1,d=t.prototype,y=d[b2]||d["@@iterator"]||o&&d[o],g=!p0&&y||c(o),v=e=="Array"&&d.entries||y;if(v&&(u=C6(v.call(new t)))!==Object.prototype&&u.next&&(Rv(u,f,!0,!0),Mu[f]=cat),lat&&o=="values"&&y&&y.name!=="values"&&(p=!0,g=function(){return Yr(y,this)}),o)if(s={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(l in s)(p0||p||!(l in d))&&Jl(d,l,s[l]);else Wi({target:e,proto:!0,forced:p0||p},s);return a&&d[b2]!==g&&Jl(d,b2,g,{name:o}),Mu[e]=g,s},fat=Cc.set,dat=Cc.getterFor("Array Iterator");TL(Array,"Array",function(t,e){fat(this,{type:"Array Iterator",target:Lo(t),index:0,kind:e})},function(){var t=dat(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}},"values"),Mu.Arguments=Mu.Array;var Mk=gr("toStringTag");for(var w2 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 zk=Ft[w2],E2=zk&&zk.prototype;E2&&ym(E2)!==Mk&&yo(E2,Mk,w2),Mu[w2]=Mu.Array}var pat=eat;Ne("asyncDispose"),Ne("dispose"),Ne("matcher"),Ne("metadata"),Ne("observable"),Ne("patternMatch"),Ne("replaceAll");var h0=pat,hat=Te("".charAt),$k=Te("".charCodeAt),gat=Te("".slice),vat=function(t){return function(e,n){var r,o,i=jv(cC(e)),a=pC(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=$k(i,a))<55296||r>56319||a+1===u||(o=$k(i,a+1))<56320||o>57343?t?hat(i,a):r:t?gat(i,a,a+2):o-56320+(r-55296<<10)+65536}},mat=vat(!0),yat=Cc.set,bat=Cc.getterFor("String Iterator");TL(String,"String",function(t){yat(this,{type:"String Iterator",string:jv(t),index:0})},function(){var t,e=bat(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=mat(n,r),e.index+=t.length,{value:t,done:!1})});var wat=mC.f("iterator"),Eat=lm(function(t){function e(n){return typeof h0=="function"&&typeof wat=="symbol"?(t.exports=e=function(r){return typeof r},t.exports.default=t.exports,t.exports.__esModule=!0):(t.exports=e=function(r){return r&&typeof h0=="function"&&r.constructor===h0&&r!==h0.prototype?"symbol":typeof r},t.exports.default=t.exports,t.exports.__esModule=!0),e(n)}t.exports=e,t.exports.default=t.exports,t.exports.__esModule=!0}),PL=function(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}(Eat),Dat=dm.EXISTS,Cat=yc.f,jL=Function.prototype,xat=mt(jL.toString),NL=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Sat=mt(NL.exec);ro&&!Dat&&Cat(jL,"name",{configurable:!0,get:function(){try{return Sat(NL,xat(this))[1]}catch{return""}}});var IL=function(){function t(){this.tag="select",this.width=80}return t.prototype.isActive=function(e){return!1},t.prototype.getValue=function(e){var n=this.mark,r=D.marks(e);return r&&r[n]?r[n]:""},t.prototype.isDisabled=function(e){return e.selection==null||(this.mark,!!Yt(D.nodes(e,{match:function(n){return A.getNodeType(n)==="pre"||!!D.isVoid(e,n)},universal:!0}),1)[0])},t.prototype.exec=function(e,n){var r=this.mark;n?e.addMark(r,n):e.removeMark(r)},t}(),Aat=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=tt("fontSize.title"),n.iconSvg=Qnt,n.mark="fontSize",n}return be(e,t),e.prototype.getOptions=function(n){var r=[],o=n.getMenuConfig(this.mark).fontSizeList,i=o===void 0?[]:o;r.push({text:tt("fontSize.default"),value:""}),i.forEach(function(u){if(typeof u=="string")r.push({text:u,value:u});else if(PL(u)==="object"){var s=u.name,l=u.value;r.push({text:s,value:l})}});var a=this.getValue(n);return r.forEach(function(u){u.value===a?u.selected=!0:delete u.selected}),r},e}(IL),Oat=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=tt("fontFamily.title"),n.iconSvg=trt,n.mark="fontFamily",n.selectPanelWidth=150,n}return be(e,t),e.prototype.getOptions=function(n){var r=[],o=n.getMenuConfig(this.mark).fontFamilyList,i=o===void 0?[]:o;r.push({text:tt("fontFamily.default"),value:""}),i.forEach(function(u){if(typeof u=="string")r.push({text:u,value:u,styleForRenderMenuList:{"font-family":u}});else if(PL(u)==="object"){var s=u.name,l=u.value;r.push({text:s,value:l,styleForRenderMenuList:{"font-family":l}})}});var a=this.getValue(n);return r.forEach(function(u){u.value===a?u.selected=!0:delete u.selected}),r},e}(IL),kat={renderStyle:function(t,e){var n=t,r=n.fontSize,o=n.fontFamily,i=e;return r&&os(i,{fontSize:r}),o&&os(i,{fontFamily:o}),i},styleToHtml:function(t,e){if(!ot.isText(t))return e;var n,r=t,o=r.fontSize,i=r.fontFamily;return o||i?((oC(e)||Ec(n=B(e))!=="span")&&(n=B("<span>"+e+"</span>")),o&&n.css("font-size",o),i&&n.css("font-family",i),wc(n)):e},preParseHtml:[Iot],parseStyleHtml:function(t,e,n){var r=B(t);if(!ot.isText(e))return e;var o=e,i=n.getMenuConfig("fontSize").fontSizeList,a=i===void 0?[]:i,u=to(r,"font-size"),s=a.find(function(d){return d.value&&d.value===u})||a.includes(u);u&&s&&(o.fontSize=u);var l=n.getMenuConfig("fontFamily").fontFamilyList,c=l===void 0?[]:l,f=to(r,"font-family").replace(/"/g,""),p=c.find(function(d){return d.value&&d.value===f})||c.includes(f);return f&&p&&(o.fontFamily=f),o},menus:[{key:"fontSize",factory:function(){return new Aat},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 Oat},config:{fontFamilyList:["黑体",{name:"仿宋",value:"仿宋"},"楷体","标楷体","华文仿宋","华文楷体",{name:"宋体",value:"宋体"},"微软雅黑","Arial","Tahoma","Verdana","Times New Roman","Courier New"]}}]},Bat={selector:"p,h1,h2,h3,h4,h5",preParseHtml:function(t){var e=B(t),n=to(e,"padding-left");return/\dem/.test(n)&&e.css("text-indent","2em"),/\dpx/.test(n)&&parseInt(n,10)%32==0&&e.css("text-indent","2em"),e[0]}},LL=function(){function t(){this.tag="button"}return t.prototype.getValue=function(e){var n=Yt(D.nodes(e,{match:function(o){return!!o.indent},universal:!0}),1),r=n[0];return r==null?"":Yt(r,1)[0].indent||""},t.prototype.isActive=function(e){return!1},t.prototype.getMatchNode=function(e){var n=Yt(D.nodes(e,{match:function(r){var o=A.getNodeType(r);return o==="paragraph"||!!o.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return n==null?null:n[0]},t}(),Fat=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=tt("indent.decrease"),n.iconSvg=ert,n}return be(e,t),e.prototype.isDisabled=function(n){var r=this.getMatchNode(n);return r==null||!r.indent},e.prototype.exec=function(n,r){N.setNodes(n,{indent:null},{match:function(o){return ct.isElement(o)}})},e}(LL),_at=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=tt("indent.increase"),n.iconSvg=nrt,n}return be(e,t),e.prototype.isDisabled=function(n){var r=this.getMatchNode(n);return r==null||!!r.indent},e.prototype.exec=function(n,r){N.setNodes(n,{indent:"2em"},{match:function(o){return ct.isElement(o)},mode:"highest"})},e}(LL),Tat={renderStyle:function(t,e){if(!ct.isElement(t))return e;var n=t.indent,r=e;return n&&os(r,{textIndent:n}),r},styleToHtml:function(t,e){if(!ct.isElement(t))return e;var n=t.indent;if(!n)return e;var r=B(e);return r.css("text-indent",n),wc(r)},preParseHtml:[Bat],parseStyleHtml:function(t,e,n){var r=B(t);if(!ct.isElement(e))return e;var o=e,i=to(r,"text-indent"),a=parseInt(i,10);return i&&a>0&&(o.indent=i),o},menus:[{key:"indent",factory:function(){return new _at}},{key:"delIndent",factory:function(){return new Fat}}]},Em=function(){function t(){this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.getMatchNode=function(e){var n=Yt(D.nodes(e,{match:function(r){var o=A.getNodeType(r);return o==="paragraph"||o==="blockquote"||!!o.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return n==null?null:n[0]},t.prototype.isDisabled=function(e){return e.selection==null||!!A.getSelectedElems(e).some(function(n){if(D.isVoid(e,n)&&D.isBlock(e,n))return!0;var r=n.type;return!!["pre","code"].includes(r)||void 0})},t}(),Pat=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=tt("justify.left"),n.iconSvg=rrt,n}return be(e,t),e.prototype.exec=function(n,r){N.setNodes(n,{textAlign:"left"},{match:function(o){return ct.isElement(o)&&!n.isInline(o)}})},e}(Em),jat=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=tt("justify.right"),n.iconSvg=ort,n}return be(e,t),e.prototype.exec=function(n,r){N.setNodes(n,{textAlign:"right"},{match:function(o){return ct.isElement(o)&&!n.isInline(o)}})},e}(Em),Nat=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=tt("justify.center"),n.iconSvg=irt,n}return be(e,t),e.prototype.exec=function(n,r){N.setNodes(n,{textAlign:"center"},{match:function(o){return ct.isElement(o)&&!n.isInline(o)}})},e}(Em),Iat=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=tt("justify.justify"),n.iconSvg=art,n}return be(e,t),e.prototype.exec=function(n,r){N.setNodes(n,{textAlign:"justify"},{match:function(o){return ct.isElement(o)&&!n.isInline(o)}})},e}(Em),Lat={renderStyle:function(t,e){if(!ct.isElement(t))return e;var n=t.textAlign,r=e;return n&&os(r,{textAlign:n}),r},styleToHtml:function(t,e){if(!ct.isElement(t))return e;var n=t.textAlign;if(!n)return e;var r=B(e);return r.css("text-align",n),wc(r)},parseStyleHtml:function(t,e,n){var r=B(t);if(!ct.isElement(e))return e;var o=e,i=to(r,"text-align");return i&&(o.textAlign=i),o},menus:[{key:"justifyLeft",factory:function(){return new Pat}},{key:"justifyRight",factory:function(){return new jat}},{key:"justifyCenter",factory:function(){return new Nat}},{key:"justifyJustify",factory:function(){return new Iat}}]},Rat=function(){function t(){this.title=tt("lineHeight.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M964 788a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526zM198.93 144.306c6.668-5.798 16.774-5.094 22.573 1.574l122.26 140.582a16 16 0 0 1 3.927 10.5c0 8.836-7.164 16-16 16h-61.8a8 8 0 0 0-8 8v390.077h69.819a16 16 0 0 1 10.502 3.928c6.666 5.8 7.37 15.906 1.57 22.573L221.476 878.123a16 16 0 0 1-1.57 1.57c-6.668 5.8-16.774 5.097-22.574-1.57L75.051 737.538a16 16 0 0 1-3.928-10.5c0-8.837 7.163-16 16-16h69.822V312.96H87.127a16 16 0 0 1-10.502-3.928c-6.666-5.8-7.37-15.906-1.57-22.573l122.303-140.582a16 16 0 0 1 1.572-1.572zM964 465a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526z m0-323a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526z"></path></svg>',this.tag="select",this.width=80}return t.prototype.getOptions=function(e){var n=[],r=e.getMenuConfig("lineHeight").lineHeightList,o=r===void 0?[]:r;n.push({text:tt("lineHeight.default"),value:""}),o.forEach(function(a){n.push({text:a,value:a})});var i=this.getValue(e);return n.forEach(function(a){a.value===i?a.selected=!0:delete a.selected}),n},t.prototype.getMatchNode=function(e){var n=Yt(D.nodes(e,{match:function(r){var o=A.getNodeType(r);return!!o.startsWith("header")||!!["paragraph","blockquote","list-item"].includes(o)},universal:!0,mode:"highest"}),1)[0];return n==null?null:n[0]},t.prototype.isActive=function(e){return!1},t.prototype.getValue=function(e){var n=this.getMatchNode(e);return n==null?"":ct.isElement(n)&&n.lineHeight||""},t.prototype.isDisabled=function(e){return e.selection==null||this.getMatchNode(e)==null},t.prototype.exec=function(e,n){N.setNodes(e,{lineHeight:n.toString()},{mode:"highest"})},t}(),Mat={renderStyle:function(t,e){if(!ct.isElement(t))return e;var n=t.lineHeight,r=e;return n&&os(r,{lineHeight:n}),r},styleToHtml:function(t,e){if(!ct.isElement(t))return e;var n=t.lineHeight;if(!n)return e;var r=B(e);return r.css("line-height",n),wc(r)},parseStyleHtml:function(t,e,n){var r=B(t);if(!ct.isElement(e))return e;var o=e,i=n.getMenuConfig("lineHeight").lineHeightList,a=i===void 0?[]:i,u=to(r,"line-height");return u&&a.includes(u)&&(o.lineHeight=u),o},menus:[{key:"lineHeight",factory:function(){return new Rat},config:{lineHeightList:["1","1.15","1.5","2","2.5","3"]}}]},zat=function(){function t(){this.title=tt("undo.redo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0.00032 576a510.72 510.72 0 0 0 173.344 384l84.672-96A383.136 383.136 0 0 1 128.00032 576C128.00032 363.936 299.93632 192 512.00032 192c106.048 0 202.048 42.976 271.52 112.48L640.00032 448h384V64l-149.984 149.984A510.272 510.272 0 0 0 512.00032 64C229.21632 64 0.00032 293.216 0.00032 576z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null},t.prototype.exec=function(e,n){typeof e.redo=="function"&&e.redo()},t}(),$at=function(){function t(){this.title=tt("undo.undo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M512 64A510.272 510.272 0 0 0 149.984 213.984L0.032 64v384h384L240.512 304.48A382.784 382.784 0 0 1 512.032 192c212.064 0 384 171.936 384 384 0 114.688-50.304 217.632-130.016 288l84.672 96a510.72 510.72 0 0 0 173.344-384c0-282.784-229.216-512-512-512z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null},t.prototype.exec=function(e,n){typeof e.undo=="function"&&e.undo()},t}(),Hat={menus:[{key:"redo",factory:function(){return new zat}},{key:"undo",factory:function(){return new $at}}]},Vat={type:"divider",renderElem:function(t,e,n){return Ul("div",{props:{contentEditable:!1,className:"w-e-textarea-divider"},dataset:{selected:A.isNodeSelected(n,t)?"true":""},style:{},on:{mousedown:function(r){return r.preventDefault()}}},[Ul("hr")])}},Uat=function(){function t(){this.title=tt("divider.title"),this.iconSvg='<svg viewBox="0 0 1092 1024"><path d="M0 51.2m51.2 0l989.866667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-989.866667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M0 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M819.2 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M409.6 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M0 870.4m51.2 0l989.866667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-989.866667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null||!!A.getSelectedElems(e).some(function(n){if(e.isVoid(n))return!0;var r=A.getNodeType(n);return r==="table"||r==="pre"||void 0})},t.prototype.exec=function(e,n){N.insertNodes(e,{type:"divider",children:[{text:""}]},{mode:"highest"})},t}(),Wat={renderElems:[Vat],elemsToHtml:[{type:"divider",elemToHtml:function(t,e){return"<hr/>"}}],parseElemsHtml:[{selector:"hr:not([data-w-e-type])",parseElemHtml:function(t,e,n){return{type:"divider",children:[{text:""}]}}}],menus:[{key:"divider",factory:function(){return new Uat}}],editorPlugin:function(t){var e=t.isVoid,n=t.normalizeNode,r=t;return r.isVoid=function(o){return o.type==="divider"||e(o)},r.normalizeNode=function(o){var i=Yt(o,2),a=i[0],u=i[1];if(A.getNodeType(a)!=="divider")return n([a,u]);A.isLastNode(r,a)&&N.insertNodes(r,A.genEmptyParagraph(),{at:[u[0]+1]})},r}},Gat=hm.map;tn({target:"Array",proto:!0,forced:!QD("map")},{map:function(t){return Gat(this,t,arguments.length>1?arguments[1]:void 0)}});var qat=mt([].join),Kat=cm!=Object,Yat=$I("join",",");tn({target:"Array",proto:!0,forced:Kat||!Yat},{join:function(t){return qat(mc(this),t===void 0?",":t)}});var Xat=function(){function t(){this.title=tt("codeBlock.title"),this.iconSvg='<svg viewBox="0 0 1280 1024"><path d="M832 736l96 96 320-320L928 192l-96 96 224 224zM448 288l-96-96L32 512l320 320 96-96-224-224zM701.312 150.528l69.472 18.944-192 704.032-69.472-18.944 192-704.032z"></path></svg>',this.tag="button"}return t.prototype.getSelectCodeElem=function(e){var n=A.getSelectedNodeByType(e,"code");if(n==null)return null;var r=A.getParentNode(e,n);return r==null||A.getNodeType(r)!=="pre"?null:n},t.prototype.getValue=function(e){var n=this.getSelectCodeElem(e);return n==null?"":n.language||""},t.prototype.isActive=function(e){return!!this.getSelectCodeElem(e)},t.prototype.isDisabled=function(e){if(e.selection==null)return!0;var n=A.getSelectedElems(e);return!!n.some(function(r){return e.isVoid(r)})||!n.some(function(r){var o=A.getNodeType(r);if(o==="pre"||o==="paragraph")return!0})},t.prototype.exec=function(e,n){this.isActive(e)?this.changeToPlainText(e):this.changeToCodeBlock(e,n.toString())},t.prototype.changeToPlainText=function(e){var n=this.getSelectCodeElem(e);if(n!=null){var r=Q.string(n);N.removeNodes(e,{mode:"highest"});var o=r.split(`
  100. `).map(function(i){return{type:"paragraph",children:[{text:i}]}});N.insertNodes(e,o,{mode:"highest"})}},t.prototype.changeToCodeBlock=function(e,n){var r,o,i=[],a=D.nodes(e,{match:function(f){return e.children.includes(f)},universal:!0});try{for(var u=zI(a),s=u.next();!s.done;s=u.next()){var l=Yt(s.value,1)[0];l&&i.push(Q.string(l))}}catch(f){r={error:f}}finally{try{s&&!s.done&&(o=u.return)&&o.call(u)}finally{if(r)throw r.error}}N.removeNodes(e,{mode:"highest"});var c={type:"pre",children:[{type:"code",language:n,children:[{text:i.join(`
  101. `)}]}]};N.insertNodes(e,c,{mode:"highest"})},t}(),Zat={key:"codeBlock",factory:function(){return new Xat}};tn({target:"String",proto:!0,forced:od("anchor")},{anchor:function(t){return rd(this,"a","name",t)}}),nC("match",function(t,e,n){return[function(r){var o=Ir(this),i=r==null?void 0:fm(r,t);return i?_e(i,r,o):new RegExp(r)[t](Ee(o))},function(r){var o=ir(this),i=Ee(r),a=n(e,o,i);if(a.done)return a.value;if(!o.global)return up(o,i);var u=o.unicode;o.lastIndex=0;for(var s,l=[],c=0;(s=up(o,i))!==null;){var f=Ee(s[0]);l[c]=f,f===""&&(o.lastIndex=rC(i,Qp(o.lastIndex),u)),c++}return c===0?null:l}]});var Jat={type:"pre",renderElem:function(t,e,n){return bt("pre",null,e)}},Qat={type:"code",renderElem:function(t,e,n){return bt("code",null,e)}},tut={selector:"pre:not([data-w-e-type])",parseElemHtml:function(t,e,n){var r=B(t);return(e=e.filter(function(o){return A.getNodeType(o)==="code"})).length===0&&(e=[{type:"code",language:"",children:[{text:r[0].textContent||""}]}]),{type:"pre",children:e.filter(function(o){return A.getNodeType(o)==="code"})}}},eut={menus:[Zat],editorPlugin:function(t){var e=t.insertBreak,n=t.normalizeNode,r=t.insertData;t.insertNode;var o=t;return o.insertBreak=function(){var i=A.getSelectedNodeByType(o,"code");if(i!=null){var a=function(l,c){var f=c.selection;if(f==null)return"";var p=Q.string(l),d=f.anchor.offset,y=p.slice(0,d).split(`
  102. `),g=y.length;return g===0?"":y[g-1]}(i,o);if(a){var u=a.match(/^\s+/);if(u!=null&&u[0]!=null){var s=u[0];return void o.insertText(`
  103. `+s)}}o.insertText(`
  104. `)}else e()},o.normalizeNode=function(i){var a=Yt(i,2),u=a[0],s=a[1],l=A.getNodeType(u);return l==="code"&&s.length<=1&&N.setNodes(o,{type:"paragraph"},{at:s}),l==="pre"&&(A.isLastNode(o,u)&&N.insertNodes(o,A.genEmptyParagraph(),{at:[s[0]+1]}),A.getNodeType(u.children[0])!=="code"&&(N.unwrapNodes(o),N.setNodes(o,{type:"paragraph"},{mode:"highest"}))),n([u,s])},o.insertData=function(i){if(A.getSelectedNodeByType(o,"code")!=null){var a=i.getData("text/plain");D.insertText(o,a)}else r(i)},o},renderElems:[Jat,Qat],elemsToHtml:[{type:"code",elemToHtml:function(t,e){return"<code>"+e+"</code>"}},{type:"pre",elemToHtml:function(t,e){return"<pre>"+e+"</pre>"}}],preParseHtml:[{selector:"pre>code",preParseHtml:function(t){var e=B(t);if(Ec(e)!=="code")return t;var n=e.find("xmp");if(n.length===0)return t;var r=n.text();return n.remove(),e.text(r),e[0]}}],parseElemsHtml:[{selector:"pre:not([data-w-e-type])>code",parseElemHtml:function(t,e,n){return{type:"code",language:"",children:[{text:B(t)[0].textContent||""}]}}},tut]},nut=function(){function t(){this.title=tt("fullScreen.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M133.705143 335.433143V133.851429h201.581714a29.622857 29.622857 0 0 0 29.622857-29.549715V68.754286a29.622857 29.622857 0 0 0-29.622857-29.622857H61.732571A22.893714 22.893714 0 0 0 38.765714 62.025143V335.725714c0 16.310857 13.238857 29.622857 29.622857 29.622857h35.547429a29.842286 29.842286 0 0 0 29.696-29.842285zM690.980571 133.851429h201.581715v201.654857c0 16.310857 13.238857 29.549714 29.622857 29.549714h35.547428a29.622857 29.622857 0 0 0 29.549715-29.549714V61.952a22.893714 22.893714 0 0 0-22.820572-22.893714h-273.554285a29.622857 29.622857 0 0 0-29.549715 29.622857v35.547428c0 16.310857 13.238857 29.696 29.622857 29.696zM335.286857 892.781714H133.705143V691.2a29.622857 29.622857 0 0 0-29.622857-29.622857H68.534857a29.622857 29.622857 0 0 0-29.549714 29.622857v273.554286c0 12.653714 10.24 22.893714 22.820571 22.893714h273.554286a29.622857 29.622857 0 0 0 29.696-29.622857v-35.547429a29.769143 29.769143 0 0 0-29.769143-29.696z m557.348572-201.581714v201.581714H690.907429a29.622857 29.622857 0 0 0-29.622858 29.622857v35.547429c0 16.310857 13.238857 29.622857 29.622858 29.622857h273.554285c12.580571 0 22.893714-10.313143 22.893715-22.893714V691.2a29.622857 29.622857 0 0 0-29.622858-29.622857h-35.547428a29.622857 29.622857 0 0 0-29.696 29.622857z"></path></svg>',this.tag="button",this.alwaysEnable=!0}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return e.isFullScreen},t.prototype.isDisabled=function(e){return!1},t.prototype.exec=function(e,n){e.isFullScreen?e.unFullScreen():e.fullScreen()},t}(),rut={menus:[{key:"fullScreen",factory:function(){return new nut}}]},out=function(){function t(){this.title=tt("common.enter"),this.iconSvg='<svg viewBox="0 0 1255 1024"><path d="M1095.111111 731.477333h-625.777778V1024L0 658.318222 469.333333 292.408889v292.636444h625.777778V0h156.444445v731.477333z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){var n=e.selection;return n==null||!!L.isExpanded(n)},t.prototype.exec=function(e,n){var r=e.selection;if(r!=null){var o=[r.anchor.path[0]];N.insertNodes(e,{type:"paragraph",children:[{text:""}]},{at:o}),e.select(D.start(e,o))}},t}(),iut=[mrt,Yrt,kat,Tat,Lat,Mat,bot,Wat,jot,aot,eut,Tot,Urt,znt,Cot,Hat,rut,{menus:[{key:"enter",factory:function(){return new out}}]}];Yn("en",{listModule:{unOrderedList:"Unordered list",orderedList:"Ordered list"}}),Yn("zh-CN",{listModule:{unOrderedList:"无序列表",orderedList:"有序列表"}});var Hk=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function yC(t){var e={exports:{}};return t(e,e.exports),e.exports}var ji,fg,g0=function(t){return t&&t.Math==Math&&t},wt=g0(typeof globalThis=="object"&&globalThis)||g0(typeof window=="object"&&window)||g0(typeof self=="object"&&self)||g0(typeof Hk=="object"&&Hk)||function(){return this}()||Function("return this")(),RL=Function.prototype,S6=RL.bind,A6=RL.call,aut=S6&&S6.bind(A6),jt=S6?function(t){return t&&aut(A6,t)}:function(t){return t&&function(){return A6.apply(t,arguments)}},Oe=function(t){try{return!!t()}catch{return!0}},uut=jt({}.toString),sut=jt("".slice),oi=function(t){return sut(uut(t),8,-1)},D2=wt.Object,lut=jt("".split),ML=Oe(function(){return!D2("z").propertyIsEnumerable(0)})?function(t){return oi(t)=="String"?lut(t,""):D2(t)}:D2,cut=wt.TypeError,Dm=function(t){if(t==null)throw cut("Can't call method on "+t);return t},xc=function(t){return ML(Dm(t))},fut=Object.defineProperty,bC=function(t,e){try{fut(wt,t,{value:e,configurable:!0,writable:!0})}catch{wt[t]=e}return e},da=wt["__core-js_shared__"]||bC("__core-js_shared__",{}),wC=yC(function(t){(t.exports=function(e,n){return da[e]||(da[e]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),dut=wt.Object,sh=function(t){return dut(Dm(t))},put=jt({}.hasOwnProperty),nn=Object.hasOwn||function(t,e){return put(sh(t),e)},hut=0,gut=Math.random(),vut=jt(1 .toString),EC=function(t){return"Symbol("+(t===void 0?"":t)+")_"+vut(++hut+gut,36)},ke=function(t){return typeof t=="function"},mut=function(t){return ke(t)?t:void 0},lh=function(t,e){return arguments.length<2?mut(wt[t]):wt[t]&&wt[t][e]},C2=lh("navigator","userAgent")||"",Vk=wt.process,Uk=wt.Deno,Wk=Vk&&Vk.versions||Uk&&Uk.version,Gk=Wk&&Wk.v8;Gk&&(fg=(ji=Gk.split("."))[0]>0&&ji[0]<4?1:+(ji[0]+ji[1])),!fg&&C2&&(!(ji=C2.match(/Edge\/(\d+)/))||ji[1]>=74)&&(ji=C2.match(/Chrome\/(\d+)/))&&(fg=+ji[1]);var v0,O6=fg,k6=!!Object.getOwnPropertySymbols&&!Oe(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&O6&&O6<41}),DC=k6&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Ef=wC("wks"),zu=wt.Symbol,qk=zu&&zu.for,yut=DC?zu:zu&&zu.withoutSetter||EC,yn=function(t){if(!nn(Ef,t)||!k6&&typeof Ef[t]!="string"){var e="Symbol."+t;k6&&nn(zu,t)?Ef[t]=zu[t]:Ef[t]=DC&&qk?qk(e):yut(e)}return Ef[t]},Ae=function(t){return typeof t=="object"?t!==null:ke(t)},but=wt.String,wut=wt.TypeError,Xn=function(t){if(Ae(t))return t;throw wut(but(t)+" is not an object")},Ba=!Oe(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),B6=wt.document,Eut=Ae(B6)&&Ae(B6.createElement),CC=function(t){return Eut?B6.createElement(t):{}},zL=!Ba&&!Oe(function(){return Object.defineProperty(CC("div"),"a",{get:function(){return 7}}).a!=7}),Df=Function.prototype.call,en=Df.bind?Df.bind(Df):function(){return Df.apply(Df,arguments)},zv=jt({}.isPrototypeOf),Dut=wt.Object,x2=DC?function(t){return typeof t=="symbol"}:function(t){var e=lh("Symbol");return ke(e)&&zv(e.prototype,Dut(t))},Cut=wt.String,F6=function(t){try{return Cut(t)}catch{return"Object"}},xut=wt.TypeError,xC=function(t){if(ke(t))return t;throw xut(F6(t)+" is not a function")},sp=function(t,e){var n=t[e];return n==null?void 0:xC(n)},Sut=wt.TypeError,Aut=wt.TypeError,Out=yn("toPrimitive"),SC=function(t){var e=function(n,r){if(!Ae(n)||x2(n))return n;var o,i=sp(n,Out);if(i){if(r===void 0&&(r="default"),o=en(i,n,r),!Ae(o)||x2(o))return o;throw Aut("Can't convert object to primitive value")}return r===void 0&&(r="number"),function(a,u){var s,l;if(u==="string"&&ke(s=a.toString)&&!Ae(l=en(s,a))||ke(s=a.valueOf)&&!Ae(l=en(s,a))||u!=="string"&&ke(s=a.toString)&&!Ae(l=en(s,a)))return l;throw Sut("Can't convert object to primitive value")}(n,r)}(t,"string");return x2(e)?e:e+""},kut=wt.TypeError,Kk=Object.defineProperty,Es={f:Ba?Kk:function(t,e,n){if(Xn(t),e=SC(e),Xn(n),zL)try{return Kk(t,e,n)}catch{}if("get"in n||"set"in n)throw kut("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},But=Math.ceil,Fut=Math.floor,ch=function(t){var e=+t;return e!=e||e===0?0:(e>0?Fut:But)(e)},_ut=Math.max,Tut=Math.min,_6=function(t,e){var n=ch(t);return n<0?_ut(n+e,0):Tut(n,e)},Put=Math.min,$L=function(t){return t>0?Put(ch(t),9007199254740991):0},Sc=function(t){return $L(t.length)},Yk=function(t){return function(e,n,r){var o,i=xc(e),a=Sc(i),u=_6(r,a);if(t&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===n)return t||u||0;return!t&&-1}},HL={includes:Yk(!0),indexOf:Yk(!1)},Cm={},jut=HL.indexOf,Xk=jt([].push),VL=function(t,e){var n,r=xc(t),o=0,i=[];for(n in r)!nn(Cm,n)&&nn(r,n)&&Xk(i,n);for(;e.length>o;)nn(r,n=e[o++])&&(~jut(i,n)||Xk(i,n));return i},$v=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Nut=Object.keys||function(t){return VL(t,$v)},Iut=Ba?Object.defineProperties:function(t,e){Xn(t);for(var n,r=xc(e),o=Nut(e),i=o.length,a=0;i>a;)Es.f(t,n=o[a++],r[n]);return t},Lut=lh("document","documentElement"),Zk=wC("keys"),AC=function(t){return Zk[t]||(Zk[t]=EC(t))},UL=AC("IE_PROTO"),S2=function(){},WL=function(t){return"<script>"+t+"<\/script>"},Jk=function(t){t.write(WL("")),t.close();var e=t.parentWindow.Object;return t=null,e},dg=function(){try{v0=new ActiveXObject("htmlfile")}catch{}var t,e;dg=typeof document<"u"?document.domain&&v0?Jk(v0):((e=CC("iframe")).style.display="none",Lut.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(WL("document.F=Object")),t.close(),t.F):Jk(v0);for(var n=$v.length;n--;)delete dg.prototype[$v[n]];return dg()};Cm[UL]=!0;var OC=Object.create||function(t,e){var n;return t!==null?(S2.prototype=Xn(t),n=new S2,S2.prototype=null,n[UL]=t):n=dg(),e===void 0?n:Iut(n,e)},T6=yn("unscopables"),P6=Array.prototype;P6[T6]==null&&Es.f(P6,T6,{configurable:!0,value:OC(null)});var wd=function(t){P6[T6][t]=!0},Ql={},Rut=jt(Function.toString);ke(da.inspectSource)||(da.inspectSource=function(t){return Rut(t)});var Hv,Ed,Vv,kC=da.inspectSource,Qk=wt.WeakMap,GL=ke(Qk)&&/native code/.test(kC(Qk)),xm=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},pa=Ba?function(t,e,n){return Es.f(t,e,xm(1,n))}:function(t,e,n){return t[e]=n,t},j6=wt.TypeError,Mut=wt.WeakMap;if(GL||da.state){var ou=da.state||(da.state=new Mut),zut=jt(ou.get),tB=jt(ou.has),$ut=jt(ou.set);Hv=function(t,e){if(tB(ou,t))throw new j6("Object already initialized");return e.facade=t,$ut(ou,t,e),e},Ed=function(t){return zut(ou,t)||{}},Vv=function(t){return tB(ou,t)}}else{var Ws=AC("state");Cm[Ws]=!0,Hv=function(t,e){if(nn(t,Ws))throw new j6("Object already initialized");return e.facade=t,pa(t,Ws,e),e},Ed=function(t){return nn(t,Ws)?t[Ws]:{}},Vv=function(t){return nn(t,Ws)}}var $u,eB,nB,_o={set:Hv,get:Ed,has:Vv,enforce:function(t){return Vv(t)?Ed(t):Hv(t,{})},getterFor:function(t){return function(e){var n;if(!Ae(e)||(n=Ed(e)).type!==t)throw j6("Incompatible receiver, "+t+" required");return n}}},rB={}.propertyIsEnumerable,oB=Object.getOwnPropertyDescriptor,Hut={f:oB&&!rB.call({1:2},1)?function(t){var e=oB(this,t);return!!e&&e.enumerable}:rB},iB=Object.getOwnPropertyDescriptor,qL={f:Ba?iB:function(t,e){if(t=xc(t),e=SC(e),zL)try{return iB(t,e)}catch{}if(nn(t,e))return xm(!en(Hut.f,t,e),t[e])}},KL=Function.prototype,Vut=Ba&&Object.getOwnPropertyDescriptor,A2=nn(KL,"name"),BC={EXISTS:A2,PROPER:A2&&(function(){}).name==="something",CONFIGURABLE:A2&&(!Ba||Ba&&Vut(KL,"name").configurable)},So=yC(function(t){var e=BC.CONFIGURABLE,n=_o.get,r=_o.enforce,o=String(String).split("String");(t.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,p=!!s&&!!s.noTargetGet,d=s&&s.name!==void 0?s.name:a;ke(u)&&(String(d).slice(0,7)==="Symbol("&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!nn(u,"name")||e&&u.name!==d)&&pa(u,"name",d),(l=r(u)).source||(l.source=o.join(typeof d=="string"?d:""))),i!==wt?(c?!p&&i[a]&&(f=!0):delete i[a],f?i[a]=u:pa(i,a,u)):f?i[a]=u:bC(a,u)})(Function.prototype,"toString",function(){return ke(this)&&n(this).source||kC(this)})}),Uut=$v.concat("length","prototype"),Uv={f:Object.getOwnPropertyNames||function(t){return VL(t,Uut)}},Wut={f:Object.getOwnPropertySymbols},Gut=jt([].concat),qut=lh("Reflect","ownKeys")||function(t){var e=Uv.f(Xn(t)),n=Wut.f;return n?Gut(e,n(t)):e},Kut=function(t,e){for(var n=qut(e),r=Es.f,o=qL.f,i=0;i<n.length;i++){var a=n[i];nn(t,a)||r(t,a,o(e,a))}},Yut=/#|\.prototype\./,fh=function(t,e){var n=Zut[Xut(t)];return n==Qut||n!=Jut&&(ke(e)?Oe(e):!!e)},Xut=fh.normalize=function(t){return String(t).replace(Yut,".").toLowerCase()},Zut=fh.data={},Jut=fh.NATIVE="N",Qut=fh.POLYFILL="P",N6=fh,tst=qL.f,Fa=function(t,e){var n,r,o,i,a,u=t.target,s=t.global,l=t.stat;if(n=s?wt:l?wt[u]||bC(u,{}):(wt[u]||{}).prototype)for(r in e){if(i=e[r],o=t.noTargetGet?(a=tst(n,r))&&a.value:n[r],!N6(s?r:u+(l?".":"#")+r,t.forced)&&o!==void 0){if(typeof i==typeof o)continue;Kut(i,o)}(t.sham||o&&o.sham)&&pa(i,"sham",!0),So(n,r,i,t)}},est=!Oe(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),aB=AC("IE_PROTO"),I6=wt.Object,nst=I6.prototype,Wv=est?I6.getPrototypeOf:function(t){var e=sh(t);if(nn(e,aB))return e[aB];var n=e.constructor;return ke(n)&&e instanceof n?n.prototype:e instanceof I6?nst:null},L6=yn("iterator"),YL=!1;[].keys&&("next"in(nB=[].keys())?(eB=Wv(Wv(nB)))!==Object.prototype&&($u=eB):YL=!0);var rst=$u==null||Oe(function(){var t={};return $u[L6].call(t)!==t});rst&&($u={}),ke($u[L6])||So($u,L6,function(){return this});var FC={IteratorPrototype:$u,BUGGY_SAFARI_ITERATORS:YL},ost=Es.f,uB=yn("toStringTag"),R6=function(t,e,n){t&&!nn(t=n?t:t.prototype,uB)&&ost(t,uB,{configurable:!0,value:e})},ist=FC.IteratorPrototype,ast=function(){return this},ust=wt.String,sst=wt.TypeError,Gv=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=jt(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch{}return function(r,o){return Xn(r),function(i){if(typeof i=="object"||ke(i))return i;throw sst("Can't set "+ust(i)+" as a prototype")}(o),e?t(r,o):r.__proto__=o,r}}():void 0),lst=BC.PROPER,cst=BC.CONFIGURABLE,sB=FC.IteratorPrototype,m0=FC.BUGGY_SAFARI_ITERATORS,Cf=yn("iterator"),fst=function(){return this},XL=function(t,e,n,r,o,i,a){(function(m,h,b,w){var E=h+" Iterator";m.prototype=OC(ist,{next:xm(1,b)}),R6(m,E,!1),Ql[E]=ast})(n,e,r);var u,s,l,c=function(m){if(m===o&&g)return g;if(!m0&&m in d)return d[m];switch(m){case"keys":case"values":case"entries":return function(){return new n(this,m)}}return function(){return new n(this)}},f=e+" Iterator",p=!1,d=t.prototype,y=d[Cf]||d["@@iterator"]||o&&d[o],g=!m0&&y||c(o),v=e=="Array"&&d.entries||y;if(v&&(u=Wv(v.call(new t)))!==Object.prototype&&u.next&&(Wv(u)!==sB&&(Gv?Gv(u,sB):ke(u[Cf])||So(u,Cf,fst)),R6(u,f,!0)),lst&&o=="values"&&y&&y.name!=="values"&&(cst?pa(d,"name","values"):(p=!0,g=function(){return en(y,this)})),o)if(s={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(l in s)(m0||p||!(l in d))&&So(d,l,s[l]);else Fa({target:e,proto:!0,forced:m0||p},s);return d[Cf]!==g&&So(d,Cf,g,{name:o}),Ql[e]=g,s},dst=_o.set,pst=_o.getterFor("Array Iterator"),id=XL(Array,"Array",function(t,e){dst(this,{type:"Array Iterator",target:xc(t),index:0,kind:e})},function(){var t=pst(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}},"values");Ql.Arguments=Ql.Array,wd("keys"),wd("values"),wd("entries");var ZL={};ZL[yn("toStringTag")]="z";var _C=String(ZL)==="[object z]",hst=yn("toStringTag"),gst=wt.Object,vst=oi(function(){return arguments}())=="Arguments",Sm=_C?oi:function(t){var e,n,r;return t===void 0?"Undefined":t===null?"Null":typeof(n=function(o,i){try{return o[i]}catch{}}(e=gst(t),hst))=="string"?n:vst?oi(e):(r=oi(e))=="Object"&&ke(e.callee)?"Arguments":r},mst=_C?{}.toString:function(){return"[object "+Sm(this)+"]"};_C||So(Object.prototype,"toString",mst,{unsafe:!0});var yst=wt.String,Xo=function(t){if(Sm(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return yst(t)},bst=jt("".charAt),lB=jt("".charCodeAt),wst=jt("".slice),cB=function(t){return function(e,n){var r,o,i=Xo(Dm(e)),a=ch(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=lB(i,a))<55296||r>56319||a+1===u||(o=lB(i,a+1))<56320||o>57343?t?bst(i,a):r:t?wst(i,a,a+2):o-56320+(r-55296<<10)+65536}},JL={codeAt:cB(!1),charAt:cB(!0)},Est=JL.charAt,Dst=_o.set,Cst=_o.getterFor("String Iterator");XL(String,"String",function(t){Dst(this,{type:"String Iterator",string:Xo(t),index:0})},function(){var t,e=Cst(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=Est(n,r),e.index+=t.length,{value:t,done:!1})});var M6=function(t,e,n){for(var r in e)So(t,r,e[r],n);return t},xst=wt.Array,Sst=Math.max,fB=Uv.f,dB=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Ast={f:function(t){return dB&&oi(t)=="Window"?function(e){try{return fB(e)}catch{return function(r,o,i){for(var a,u,s,l,c=Sc(r),f=_6(void 0,c),p=_6(c,c),d=xst(Sst(p-f,0)),y=0;f<p;f++,y++)a=d,u=y,s=r[f],(l=SC(u))in a?Es.f(a,l,xm(0,s)):a[l]=s;return d.length=y,d}(dB)}}(t):fB(xc(t))}},pB=Oe(function(){if(typeof ArrayBuffer=="function"){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}),y0=Object.isExtensible,Du=Oe(function(){y0(1)})||pB?function(t){return!!Ae(t)&&(!pB||oi(t)!="ArrayBuffer")&&(!y0||y0(t))}:y0,Ost=!Oe(function(){return Object.isExtensible(Object.preventExtensions({}))}),TC=yC(function(t){var e=Es.f,n=!1,r=EC("meta"),o=0,i=function(u){e(u,r,{value:{objectID:"O"+o++,weakData:{}}})},a=t.exports={enable:function(){a.enable=function(){},n=!0;var u=Uv.f,s=jt([].splice),l={};l[r]=1,u(l).length&&(Uv.f=function(c){for(var f=u(c),p=0,d=f.length;p<d;p++)if(f[p]===r){s(f,p,1);break}return f},Fa({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Ast.f}))},fastKey:function(u,s){if(!Ae(u))return typeof u=="symbol"?u:(typeof u=="string"?"S":"P")+u;if(!nn(u,r)){if(!Du(u))return"F";if(!s)return"E";i(u)}return u[r].objectID},getWeakData:function(u,s){if(!nn(u,r)){if(!Du(u))return!0;if(!s)return!1;i(u)}return u[r].weakData},onFreeze:function(u){return Ost&&n&&Du(u)&&!nn(u,r)&&i(u),u}};Cm[r]=!0}),hB=jt(jt.bind),PC=function(t,e){return xC(t),e===void 0?t:hB?hB(t,e):function(){return t.apply(e,arguments)}},kst=yn("iterator"),Bst=Array.prototype,Fst=yn("iterator"),gB=function(t){if(t!=null)return sp(t,Fst)||sp(t,"@@iterator")||Ql[Sm(t)]},_st=wt.TypeError,vB=function(t,e,n){var r,o;Xn(t);try{if(!(r=sp(t,"return"))){if(e==="throw")throw n;return n}r=en(r,t)}catch(i){o=!0,r=i}if(e==="throw")throw n;if(o)throw r;return Xn(r),n},Tst=wt.TypeError,pg=function(t,e){this.stopped=t,this.result=e},mB=pg.prototype,QL=function(t,e,n){var r,o,i,a,u,s,l,c,f=n&&n.that,p=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_ITERATOR),y=!(!n||!n.INTERRUPTED),g=PC(e,f),v=function(h){return r&&vB(r,"normal",h),new pg(!0,h)},m=function(h){return p?(Xn(h),y?g(h[0],h[1],v):g(h[0],h[1])):y?g(h,v):g(h)};if(d)r=t;else{if(!(o=gB(t)))throw Tst(F6(t)+" is not iterable");if((c=o)!==void 0&&(Ql.Array===c||Bst[kst]===c)){for(i=0,a=Sc(t);a>i;i++)if((u=m(t[i]))&&zv(mB,u))return u;return new pg(!1)}r=function(h,b){var w=arguments.length<2?gB(h):b;if(xC(w))return Xn(en(w,h));throw _st(F6(h)+" is not iterable")}(t,o)}for(s=r.next;!(l=en(s,r)).done;){try{u=m(l.value)}catch(h){vB(r,"throw",h)}if(typeof u=="object"&&u&&zv(mB,u))return u}return new pg(!1)},Pst=wt.TypeError,tR=function(t,e){if(zv(e,t))return t;throw Pst("Incorrect invocation")},eR=yn("iterator"),nR=!1;try{var jst=0,yB={next:function(){return{done:!!jst++}},return:function(){nR=!0}};yB[eR]=function(){return this},Array.from(yB,function(){throw 2})}catch{}var z6=Array.isArray||function(t){return oi(t)=="Array"},rR=function(){},Nst=[],oR=lh("Reflect","construct"),jC=/^\s*(?:class|function)\b/,Ist=jt(jC.exec),Lst=!jC.exec(rR),xf=function(t){if(!ke(t))return!1;try{return oR(rR,Nst,t),!0}catch{return!1}},Rst=!oR||Oe(function(){var t;return xf(xf.call)||!xf(Object)||!xf(function(){t=!0})||t})?function(t){if(!ke(t))return!1;switch(Sm(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Lst||!!Ist(jC,kC(t))}:xf,Mst=yn("species"),bB=wt.Array,iR=function(t,e){return new(function(n){var r;return z6(n)&&(r=n.constructor,(Rst(r)&&(r===bB||z6(r.prototype))||Ae(r)&&(r=r[Mst])===null)&&(r=void 0)),r===void 0?bB:r}(t))(e===0?0:e)},wB=jt([].push),Ni=function(t){var e=t==1,n=t==2,r=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var p,d,y=sh(s),g=ML(y),v=PC(l,c),m=Sc(g),h=0,b=f||iR,w=e?b(s,m):n||a?b(s,0):void 0;m>h;h++)if((u||h in g)&&(d=v(p=g[h],h,y),t))if(e)w[h]=d;else if(d)switch(t){case 3:return!0;case 5:return p;case 6:return h;case 2:wB(w,p)}else switch(t){case 4:return!1;case 7:wB(w,p)}return i?-1:r||o?o:w}},NC={forEach:Ni(0),map:Ni(1),filter:Ni(2),some:Ni(3),every:Ni(4),find:Ni(5),findIndex:Ni(6),filterReject:Ni(7)},b0=TC.getWeakData,zst=_o.set,$st=_o.getterFor,Hst=NC.find,Vst=NC.findIndex,Ust=jt([].splice),Wst=0,w0=function(t){return t.frozen||(t.frozen=new aR)},aR=function(){this.entries=[]},O2=function(t,e){return Hst(t.entries,function(n){return n[0]===e})};aR.prototype={get:function(t){var e=O2(this,t);if(e)return e[1]},has:function(t){return!!O2(this,t)},set:function(t,e){var n=O2(this,t);n?n[1]=e:this.entries.push([t,e])},delete:function(t){var e=Vst(this.entries,function(n){return n[0]===t});return~e&&Ust(this.entries,e,1),!!~e}};var Sf,uR={getConstructor:function(t,e,n,r){var o=t(function(s,l){tR(s,i),zst(s,{type:e,id:Wst++,frozen:void 0}),l!=null&&QL(l,s[r],{that:s,AS_ENTRIES:n})}),i=o.prototype,a=$st(e),u=function(s,l,c){var f=a(s),p=b0(Xn(l),!0);return p===!0?w0(f).set(l,c):p[f.id]=c,s};return M6(i,{delete:function(s){var l=a(this);if(!Ae(s))return!1;var c=b0(s);return c===!0?w0(l).delete(s):c&&nn(c,l.id)&&delete c[l.id]},has:function(s){var l=a(this);if(!Ae(s))return!1;var c=b0(s);return c===!0?w0(l).has(s):c&&nn(c,l.id)}}),M6(i,n?{get:function(s){var l=a(this);if(Ae(s)){var c=b0(s);return c===!0?w0(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}},E0=_o.enforce,Gst=!wt.ActiveXObject&&"ActiveXObject"in wt,sR=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},qst=function(t,e,n){var r=t.indexOf("Map")!==-1,o=t.indexOf("Weak")!==-1,i=r?"set":"add",a=wt[t],u=a&&a.prototype,s=a,l={},c=function(v){var m=jt(u[v]);So(u,v,v=="add"?function(h){return m(this,h===0?0:h),this}:v=="delete"?function(h){return!(o&&!Ae(h))&&m(this,h===0?0:h)}:v=="get"?function(h){return o&&!Ae(h)?void 0:m(this,h===0?0:h)}:v=="has"?function(h){return!(o&&!Ae(h))&&m(this,h===0?0:h)}:function(h,b){return m(this,h===0?0:h,b),this})};if(N6(t,!ke(a)||!(o||u.forEach&&!Oe(function(){new a().entries().next()}))))s=n.getConstructor(e,t,r,i),TC.enable();else if(N6(t,!0)){var f=new s,p=f[i](o?{}:-0,1)!=f,d=Oe(function(){f.has(1)}),y=function(v,m){if(!nR)return!1;var h=!1;try{var b={};b[eR]=function(){return{next:function(){return{done:h=!0}}}},function(w){new a(w)}(b)}catch{}return h}(),g=!o&&Oe(function(){for(var v=new a,m=5;m--;)v[i](m,m);return!v.has(-0)});y||((s=e(function(v,m){tR(v,u);var h=function(b,w,E){var x,C;return Gv&&ke(x=w.constructor)&&x!==E&&Ae(C=x.prototype)&&C!==E.prototype&&Gv(b,C),b}(new a,v,s);return m!=null&&QL(m,h[i],{that:h,AS_ENTRIES:r}),h})).prototype=u,u.constructor=s),(d||g)&&(c("delete"),c("has"),r&&c("get")),(g||p)&&c(i),o&&u.clear&&delete u.clear}return l[t]=s,Fa({global:!0,forced:s!=a},l),R6(s,t),o||n.setStrong(s,t,r),s}("WeakMap",sR,uR);if(GL&&Gst){Sf=uR.getConstructor(sR,"WeakMap",!0),TC.enable();var Af=qst.prototype,EB=jt(Af.delete),D0=jt(Af.has),DB=jt(Af.get),CB=jt(Af.set);M6(Af,{delete:function(t){if(Ae(t)&&!Du(t)){var e=E0(this);return e.frozen||(e.frozen=new Sf),EB(this,t)||e.frozen.delete(t)}return EB(this,t)},has:function(t){if(Ae(t)&&!Du(t)){var e=E0(this);return e.frozen||(e.frozen=new Sf),D0(this,t)||e.frozen.has(t)}return D0(this,t)},get:function(t){if(Ae(t)&&!Du(t)){var e=E0(this);return e.frozen||(e.frozen=new Sf),D0(this,t)?DB(this,t):e.frozen.get(t)}return DB(this,t)},set:function(t,e){if(Ae(t)&&!Du(t)){var n=E0(this);n.frozen||(n.frozen=new Sf),D0(this,t)?CB(this,t,e):n.frozen.set(t,e)}else CB(this,t,e);return this}})}var lR={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},k2=CC("span").classList,xB=k2&&k2.constructor&&k2.constructor.prototype,Kst=xB===Object.prototype?void 0:xB,B2=yn("iterator"),SB=yn("toStringTag"),F2=id.values,cR=function(t,e){if(t){if(t[B2]!==F2)try{pa(t,B2,F2)}catch{t[B2]=F2}if(t[SB]||pa(t,SB,e),lR[e]){for(var n in id)if(t[n]!==id[n])try{pa(t,n,id[n])}catch{t[n]=id[n]}}}};for(var _2 in lR)cR(wt[_2]&&wt[_2].prototype,_2);cR(Kst,"DOMTokenList");var $6=new WeakMap,Yst={type:"list-item",renderElem:function(t,e,n){$6.set(t,n);var r=t,o=r.level,i=o===void 0?0:o,a=r.ordered,u={margin:"5px 0 5px "+20*i+"px"},s="";if(a!==void 0&&a){var l=function(f,p){var d=p,y=d.type,g=d.level,v=g===void 0?0:g,m=d.ordered,h=m!==void 0&&m;if(!h)return-1;var b=1,w=p,E=A.findPath(f,w);if(E[0]===0)return 1;for(;E[0]>0;){var x=j.previous(E),C=D.node(f,x);if(C==null)break;var O=C[0],F=O.level,R=F===void 0?0:F,H=O.type,M=O.ordered;if(H!==y||R<v)break;if(R===v){if(M!==h)break;b++}w=O,E=x}return b}(n,t);s=l+"."}else s=function(f){f===void 0&&(f=0);var p="";switch(f){case 0:p="•";break;case 1:p="◦";break;default:p="▪"}return p}(i);var c=function(f){var p,d=f.children||[],y=d.length;if(y===0)return"";for(var g=0;g<y&&!p;g++){var v=d[g];ot.isText(v)&&(p=v)}return p==null?"":p.color||""}(t);return bt("div",{style:u},bt("span",{contentEditable:!1,style:{marginRight:"0.5em",color:c},"data-w-e-reserve":!0},s),bt("span",null,e))}},H6=function(t,e){return H6=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},H6(t,e);/*! *****************************************************************************
  105. Copyright (c) Microsoft Corporation.
  106. Permission to use, copy, modify, and/or distribute this software for any
  107. purpose with or without fee is hereby granted.
  108. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  109. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  110. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  111. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  112. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  113. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  114. PERFORMANCE OF THIS SOFTWARE.
  115. ***************************************************************************** */};function fR(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}H6(t,e),t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}function AB(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Dd(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(e===void 0||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(u){o={error:u}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function OB(t){return D.nodes(t,{at:t.selection||void 0,match:function(e){return A.findPath(t,e).length===1}})}var Xst=HL.includes;Fa({target:"Array",proto:!0},{includes:function(t){return Xst(this,t,arguments.length>1?arguments[1]:void 0)}}),wd("includes");var kB,T2,Zst=function(){var t=Xn(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},IC=wt.RegExp,V6=Oe(function(){var t=IC("a","y");return t.lastIndex=2,t.exec("abcd")!=null}),Jst=V6||Oe(function(){return!IC("a","y").sticky}),Qst={BROKEN_CARET:V6||Oe(function(){var t=IC("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),MISSED_STICKY:Jst,UNSUPPORTED_Y:V6},tlt=wt.RegExp,elt=Oe(function(){var t=tlt(".","s");return!(t.dotAll&&t.exec(`
  116. `)&&t.flags==="s")}),nlt=wt.RegExp,rlt=Oe(function(){var t=nlt("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),olt=_o.get,ilt=wC("native-string-replace",String.prototype.replace),qv=RegExp.prototype.exec,U6=qv,alt=jt("".charAt),ult=jt("".indexOf),slt=jt("".replace),P2=jt("".slice),j2=(T2=/b*/g,en(qv,kB=/a/,"a"),en(qv,T2,"a"),kB.lastIndex!==0||T2.lastIndex!==0),BB=Qst.BROKEN_CARET,N2=/()??/.exec("")[1]!==void 0;(j2||N2||BB||elt||rlt)&&(U6=function(t){var e,n,r,o,i,a,u,s=this,l=olt(s),c=Xo(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=en(U6,f,c),s.lastIndex=f.lastIndex,e;var p=l.groups,d=BB&&s.sticky,y=en(Zst,s),g=s.source,v=0,m=c;if(d&&(y=slt(y,"y",""),ult(y,"g")===-1&&(y+="g"),m=P2(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&alt(c,s.lastIndex-1)!==`
  117. `)&&(g="(?: "+g+")",m=" "+m,v++),n=new RegExp("^(?:"+g+")",y)),N2&&(n=new RegExp("^"+g+"$(?!\\s)",y)),j2&&(r=s.lastIndex),o=en(qv,d?n:s,m),d?o?(o.input=P2(o.input,v),o[0]=P2(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:j2&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),N2&&o&&o.length>1&&en(ilt,o[0],n,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&p)for(o.groups=a=OC(null),i=0;i<p.length;i++)a[(u=p[i])[0]]=o[u[1]];return o});var Kv=U6;Fa({target:"RegExp",proto:!0,forced:/./.exec!==Kv},{exec:Kv});var dR=function(){function t(){this.type="list-item",this.tag="button"}return t.prototype.getListNode=function(e){var n=this.type;return A.getSelectedNodeByType(e,n)},t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){var n=this.getListNode(e);if(n==null)return!1;var r=n.ordered;return(r!==void 0&&r)===this.ordered},t.prototype.isDisabled=function(e){return e.selection==null||!!A.getSelectedElems(e).some(function(n){if(D.isVoid(e,n)&&D.isBlock(e,n))return!0;var r=n.type;return!!["pre","code","table"].includes(r)||void 0})},t.prototype.exec=function(e,n){this.isActive(e)?N.setNodes(e,{type:"paragraph",ordered:void 0,level:void 0}):N.setNodes(e,{type:"list-item",ordered:this.ordered,indent:void 0})},t}(),llt='<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>',clt='<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>',flt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.ordered=!1,n.title=tt("listModule.unOrderedList"),n.iconSvg=llt,n}return fR(e,t),e}(dR),dlt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.ordered=!0,n.title=tt("listModule.orderedList"),n.iconSvg=clt,n}return fR(e,t),e}(dR),plt={key:"bulletedList",factory:function(){return new flt}},hlt={key:"numberedList",factory:function(){return new dlt}},FB=[],glt={type:"list-item",elemToHtml:function(t,e){var n="",r="",o=t.ordered,i=o!==void 0&&o?"ol":"ul",a=function(l){var c=$6.get(l);if(c==null)return 0;var f=l,p=f.type,d=f.ordered,y=d!==void 0&&d,g=f.level,v=g===void 0?0:g,m=A.findPath(c,l);if(m[0]===0)return v+1;var h=j.previous(m),b=D.node(c,h);if(!b)return 0;var w=Dd(b,1)[0];if(A.getNodeType(w)!==p)return v+1;var E=w,x=E.ordered,C=x!==void 0&&x,O=E.level,F=O===void 0?0:O;return F<v?v-F:F>v?0:F===v?C===y?0:1:0}(t);if(a>0)for(var u=0;u<a;u++)n+="<"+i+">",FB.push(i);var s=function(l){var c=$6.get(l);if(c==null)return 0;var f=l,p=f.type,d=f.ordered,y=d!==void 0&&d,g=f.level,v=g===void 0?0:g,m=A.findPath(c,l);if(m[0]===c.children.length-1)return v+1;var h=j.next(m),b=D.node(c,h);if(!b)return 0;var w=Dd(b,1)[0];if(A.getNodeType(w)!==p)return v+1;var E=w,x=E.ordered,C=x!==void 0&&x,O=E.level,F=O===void 0?0:O;return F<v?v-F:F>v?0:F===v?C===y?0:1:0}(t);if(s>0)for(u=0;u<s;u++)r+="</"+FB.pop()+">";return{html:"<li>"+e+"</li>",prefix:n,suffix:r}}},vlt=yn("species"),mlt=NC.filter,ylt=O6>=51||!Oe(function(){var t=[];return(t.constructor={})[vlt]=function(){return{foo:1}},t.filter(Boolean).foo!==1});Fa({target:"Array",proto:!0,forced:!ylt},{filter:function(t){return mlt(this,t,arguments.length>1?arguments[1]:void 0)}});var LC=Function.prototype,_B=LC.apply,blt=LC.bind,TB=LC.call,wlt=typeof Reflect=="object"&&Reflect.apply||(blt?TB.bind(_B):function(){return TB.apply(_B,arguments)}),PB=(yn("species"),RegExp.prototype),Elt=JL.charAt,Dlt=function(t,e,n){return e+(n?Elt(t,e).length:1)},Clt=Math.floor,I2=jt("".charAt),xlt=jt("".replace),L2=jt("".slice),Slt=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Alt=/\$([$&'`]|\d{1,2})/g,Olt=function(t,e,n,r,o,i){var a=n+t.length,u=r.length,s=Alt;return o!==void 0&&(o=sh(o),s=Slt),xlt(i,s,function(l,c){var f;switch(I2(c,0)){case"$":return"$";case"&":return t;case"`":return L2(e,0,n);case"'":return L2(e,a);case"<":f=o[L2(c,1,-1)];break;default:var p=+c;if(p===0)return l;if(p>u){var d=Clt(p/10);return d===0?l:d<=u?r[d-1]===void 0?I2(c,1):r[d-1]+I2(c,1):l}f=r[p-1]}return f===void 0?"":f})},klt=wt.TypeError,Blt=function(t,e){var n=t.exec;if(ke(n)){var r=en(n,t,e);return r!==null&&Xn(r),r}if(oi(t)==="RegExp")return en(Kv,t,e);throw klt("RegExp#exec called on incompatible receiver")},W6=yn("replace"),Flt=Math.max,_lt=Math.min,Tlt=jt([].concat),R2=jt([].push),jB=jt("".indexOf),NB=jt("".slice),Plt="a".replace(/./,"$0")==="$0",IB=!!/./[W6]&&/./[W6]("a","$0")==="";(function(t,e,n,r){var o=yn(t),i=!Oe(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),a=i&&!Oe(function(){var l=!1,c=/a/;return c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||n){var u=jt(/./[o]),s=function(l,c,f){var p=IB?"$":"$0";return[function(d,y){var g=Dm(this),v=d==null?void 0:sp(d,W6);return v?en(v,d,g,y):en(c,Xo(g),d,y)},function(d,y){var g=Xn(this),v=Xo(d);if(typeof y=="string"&&jB(y,p)===-1&&jB(y,"$<")===-1){var m=f(c,g,v,y);if(m.done)return m.value}var h=ke(y);h||(y=Xo(y));var b=g.global;if(b){var w=g.unicode;g.lastIndex=0}for(var E=[];;){var x=Blt(g,v);if(x===null||(R2(E,x),!b))break;Xo(x[0])===""&&(g.lastIndex=Dlt(v,$L(g.lastIndex),w))}for(var C,O="",F=0,R=0;R<E.length;R++){for(var H=Xo((x=E[R])[0]),M=Flt(_lt(ch(x.index),v.length),0),K=[],U=1;U<x.length;U++)R2(K,(C=x[U])===void 0?C:String(C));var W=x.groups;if(h){var q=Tlt([H],K,M,v);W!==void 0&&R2(q,W);var nt=Xo(wlt(y,void 0,q))}else nt=Olt(H,v,M,K,W,y);M>=F&&(O+=NB(v,F,M)+nt,F=M+H.length)}return O+NB(v,F)}]}(0,""[t],function(l,c,f,p,d){var y=jt(l),g=c.exec;return g===Kv||g===PB.exec?i&&!d?{done:!0,value:u(c,f,p)}:{done:!0,value:y(f,c,p)}:{done:!1}});So(String.prototype,t,s[0]),So(PB,o,s[1])}})("replace",0,!!Oe(function(){var t=/./;return t.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(t,"$<a>")!=="7"})||!Plt||IB);var jlt=wt.TypeError,pR=function(t,e,n,r,o,i,a,u){for(var s,l,c=o,f=0,p=!!a&&PC(a,u);f<r;){if(f in n){if(s=p?p(n[f],f,e):n[f],i>0&&z6(s))l=Sc(s),c=pR(t,e,s,l,c,i-1)-1;else{if(c>=9007199254740991)throw jlt("Exceed the acceptable array length");t[c]=s}c++}f++}return c},Nlt=pR;function M2(t){return t.length?t[0].tagName.toLowerCase():""}Fa({target:"Array",proto:!0},{flat:function(){var t=arguments.length?arguments[0]:void 0,e=sh(this),n=Sc(e),r=iR(e,0);return r.length=Nlt(r,e,e,n,0,t===void 0?1:ch(t)),r}}),wd("flat"),Fa({global:!0},{globalThis:wt}),Pr&&(B.fn.append=Pr),Tr&&(B.fn.attr=Tr),Ml&&(B.fn.parent=Ml);var Ilt={renderElems:[Yst],editorPlugin:function(t){var e=t.deleteBackward,n=t.handleTab,r=t.normalizeNode,o=t;return o.deleteBackward=function(i){var a=o.selection;if(a!=null)if(L.isExpanded(a))e(i);else{var u=A.getSelectedNodeByType(o,"list-item");if(u!=null)if(a.focus.offset!==0)e(i);else{var s=u.level,l=s===void 0?0:s;l>0?N.setNodes(o,{level:l-1}):N.setNodes(o,{type:"paragraph",ordered:void 0,level:void 0})}else e(i)}else e(i)},o.handleTab=function(){var i,a,u,s,l=o.selection;if(l!=null){if(L.isCollapsed(l)){var c=A.getSelectedNodeByType(o,"list-item");if(c==null)return void n();if(l.focus.offset===0){var f=c.level,p=f===void 0?0:f;return void N.setNodes(o,{level:p+1})}}if(L.isExpanded(l)){var d=0,y=!1;try{for(var g=AB(OB(o)),v=g.next();!v.done;v=g.next()){var m=Dd(v.value,1)[0];A.getNodeType(m)==="list-item"?d++:y=!0}}catch(C){i={error:C}}finally{try{v&&!v.done&&(a=g.return)&&a.call(g)}finally{if(i)throw i.error}}if(y||d<=1)return void n();try{for(var h=AB(OB(o)),b=h.next();!b.done;b=h.next()){var w=Dd(b.value,2),E=(m=w[0],w[1]),x=m.level;p=x===void 0?0:x,N.setNodes(o,{level:p+1},{at:E})}}catch(C){u={error:C}}finally{try{b&&!b.done&&(s=h.return)&&s.call(h)}finally{if(u)throw u.error}}}else n()}else n()},o.normalizeNode=function(i){var a=Dd(i,2),u=a[0],s=a[1],l=A.getNodeType(u);return l!=="bulleted-list"&&l!=="numbered-list"||N.unwrapNodes(o,{at:s}),r([u,s])},o},menus:[plt,hlt],elemsToHtml:[glt],parseElemsHtml:[{selector:"ul:not([data-w-e-type]),ol:not([data-w-e-type])",parseElemHtml:function(t,e,n){return e.flat(1/0)}},{selector:"li:not([data-w-e-type])",parseElemHtml:function(t,e,n){var r=B(t);(e=e.filter(function(a){return!!ot.isText(a)||!!n.isInline(a)})).length===0&&(e=[{text:r.text().replace(/\s+/gm," ")}]);var o=function(a){return M2(a.parent())==="ol"}(r),i=function(a){for(var u=0,s=a.parent(),l=M2(s);l==="ul"||l==="ol";)l=M2(s=s.parent()),u++;return u-1}(r);return{type:"list-item",ordered:o,level:i,children:e}}}]},hR=cs(function(t,e){var n="__lodash_hash_undefined__",r=9007199254740991,o="[object Arguments]",i="[object Array]",a="[object Boolean]",u="[object Date]",s="[object Error]",l="[object Function]",c="[object Map]",f="[object Number]",p="[object Object]",d="[object Promise]",y="[object RegExp]",g="[object Set]",v="[object String]",m="[object Symbol]",h="[object WeakMap]",b="[object ArrayBuffer]",w="[object DataView]",E=/^\[object .+?Constructor\]$/,x=/^(?:0|[1-9]\d*)$/,C={};C["[object Float32Array]"]=C["[object Float64Array]"]=C["[object Int8Array]"]=C["[object Int16Array]"]=C["[object Int32Array]"]=C["[object Uint8Array]"]=C["[object Uint8ClampedArray]"]=C["[object Uint16Array]"]=C["[object Uint32Array]"]=!0,C[o]=C[i]=C[b]=C[a]=C[w]=C[u]=C[s]=C[l]=C[c]=C[f]=C[p]=C[y]=C[g]=C[v]=C[h]=!1;var O=typeof se=="object"&&se&&se.Object===Object&&se,F=typeof self=="object"&&self&&self.Object===Object&&self,R=O||F||Function("return this")(),H=e&&!e.nodeType&&e,M=H&&t&&!t.nodeType&&t,K=M&&M.exports===H,U=K&&O.process,W=function(){try{return U&&U.binding&&U.binding("util")}catch{}}(),q=W&&W.isTypedArray;function nt(T,I){for(var Z=-1,ht=T==null?0:T.length;++Z<ht;)if(I(T[Z],Z,T))return!0;return!1}function lt(T){var I=-1,Z=Array(T.size);return T.forEach(function(ht,ee){Z[++I]=[ee,ht]}),Z}function st(T){var I=-1,Z=Array(T.size);return T.forEach(function(ht){Z[++I]=ht}),Z}var at=Array.prototype,k=Function.prototype,S=Object.prototype,P=R["__core-js_shared__"],$=k.toString,Y=S.hasOwnProperty,V=function(){var T=/[^.]+$/.exec(P&&P.keys&&P.keys.IE_PROTO||"");return T?"Symbol(src)_1."+T:""}(),it=S.toString,gt=RegExp("^"+$.call(Y).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),vt=K?R.Buffer:void 0,Dt=R.Symbol,G=R.Uint8Array,It=S.propertyIsEnumerable,At=at.splice,dt=Dt?Dt.toStringTag:void 0,Ot=Object.getOwnPropertySymbols,Be=vt?vt.isBuffer:void 0,$t=function(T,I){return function(Z){return T(I(Z))}}(Object.keys,Object),te=gi(R,"DataView"),me=gi(R,"Map"),bn=gi(R,"Promise"),zt=gi(R,"Set"),Rn=gi(R,"WeakMap"),Rr=gi(Object,"create"),ao=$o(te),Ds=$o(me),Ua=$o(bn),Mr=$o(zt),uo=$o(Rn),Ro=Dt?Dt.prototype:void 0,wn=Ro?Ro.valueOf:void 0;function En(T){var I=-1,Z=T==null?0:T.length;for(this.clear();++I<Z;){var ht=T[I];this.set(ht[0],ht[1])}}function Dn(T){var I=-1,Z=T==null?0:T.length;for(this.clear();++I<Z;){var ht=T[I];this.set(ht[0],ht[1])}}function Tn(T){var I=-1,Z=T==null?0:T.length;for(this.clear();++I<Z;){var ht=T[I];this.set(ht[0],ht[1])}}function rn(T){var I=-1,Z=T==null?0:T.length;for(this.__data__=new Tn;++I<Z;)this.add(T[I])}function vr(T){var I=this.__data__=new Dn(T);this.size=I.size}function Oc(T,I){var Z=Ho(T),ht=!Z&&Sh(T),ee=!Z&&!ht&&so(T),Pt=!Z&&!ht&&!ee&&co(T),_=Z||ht||ee||Pt,z=_?function(Mt,pe){for(var ne=-1,Wt=Array(Mt);++ne<Mt;)Wt[ne]=pe(ne);return Wt}(T.length,String):[],J=z.length;for(var ut in T)!I&&!Y.call(T,ut)||_&&(ut=="length"||ee&&(ut=="offset"||ut=="parent")||Pt&&(ut=="buffer"||ut=="byteLength"||ut=="byteOffset")||kc(ut,J))||z.push(ut);return z}function hi(T,I){for(var Z=T.length;Z--;)if(Ss(T[Z][0],I))return Z;return-1}function Mo(T){return T==null?T===void 0?"[object Undefined]":"[object Null]":dt&&dt in Object(T)?function(I){var Z=Y.call(I,dt),ht=I[dt];try{I[dt]=void 0;var ee=!0}catch{}var Pt=it.call(I);return ee&&(Z?I[dt]=ht:delete I[dt]),Pt}(T):function(I){return it.call(I)}(T)}function Cs(T){return vi(T)&&Mo(T)==o}function Wa(T,I,Z,ht,ee){return T===I||(T==null||I==null||!vi(T)&&!vi(I)?T!=T&&I!=I:function(Pt,_,z,J,ut,Mt){var pe=Ho(Pt),ne=Ho(_),Wt=pe?i:Zn(Pt),Ze=ne?i:Zn(_),Cn=(Wt=Wt==o?p:Wt)==p,Ga=(Ze=Ze==o?p:Ze)==p,Vo=Wt==Ze;if(Vo&&so(Pt)){if(!so(_))return!1;pe=!0,Cn=!1}if(Vo&&!Cn)return Mt||(Mt=new vr),pe||co(Pt)?mr(Pt,_,z,J,ut,Mt):function(Lt,Gt,qt,Fe,Pn,Mn,Hr){switch(qt){case w:if(Lt.byteLength!=Gt.byteLength||Lt.byteOffset!=Gt.byteOffset)return!1;Lt=Lt.buffer,Gt=Gt.buffer;case b:return!(Lt.byteLength!=Gt.byteLength||!Mn(new G(Lt),new G(Gt)));case a:case u:case f:return Ss(+Lt,+Gt);case s:return Lt.name==Gt.name&&Lt.message==Gt.message;case y:case v:return Lt==Gt+"";case c:var yi=lt;case g:var Fc=1&Fe;if(yi||(yi=st),Lt.size!=Gt.size&&!Fc)return!1;var kh=Hr.get(Lt);if(kh)return kh==Gt;Fe|=2,Hr.set(Lt,Gt);var As=mr(yi(Lt),yi(Gt),Fe,Pn,Mn,Hr);return Hr.delete(Lt),As;case m:if(wn)return wn.call(Lt)==wn.call(Gt)}return!1}(Pt,_,Wt,z,J,ut,Mt);if(!(1&z)){var mi=Cn&&Y.call(Pt,"__wrapped__"),yt=Ga&&Y.call(_,"__wrapped__");if(mi||yt){var Xt=mi?Pt.value():Pt,Pe=yt?_.value():_;return Mt||(Mt=new vr),ut(Xt,Pe,z,J,Mt)}}return Vo?(Mt||(Mt=new vr),function(Lt,Gt,qt,Fe,Pn,Mn){var Hr=1&qt,yi=zo(Lt),Fc=yi.length,kh=zo(Gt).length;if(Fc!=kh&&!Hr)return!1;for(var As=Fc;As--;){var qa=yi[As];if(!(Hr?qa in Gt:Y.call(Gt,qa)))return!1}var mx=Mn.get(Lt);if(mx&&Mn.get(Gt))return mx==Gt;var Bh=!0;Mn.set(Lt,Gt),Mn.set(Gt,Lt);for(var Wm=Hr;++As<Fc;){var Fh=Lt[qa=yi[As]],_h=Gt[qa];if(Fe)var yx=Hr?Fe(_h,Fh,qa,Gt,Lt,Mn):Fe(Fh,_h,qa,Lt,Gt,Mn);if(!(yx===void 0?Fh===_h||Pn(Fh,_h,qt,Fe,Mn):yx)){Bh=!1;break}Wm||(Wm=qa=="constructor")}if(Bh&&!Wm){var Th=Lt.constructor,Ph=Gt.constructor;Th==Ph||!("constructor"in Lt)||!("constructor"in Gt)||typeof Th=="function"&&Th instanceof Th&&typeof Ph=="function"&&Ph instanceof Ph||(Bh=!1)}return Mn.delete(Lt),Mn.delete(Gt),Bh}(Pt,_,z,J,ut,Mt)):!1}(T,I,Z,ht,Wa,ee))}function xs(T){return!(!Ah(T)||function(I){return!!V&&V in I}(T))&&(Bc(T)?gt:E).test($o(T))}function zr(T){if(Z=(I=T)&&I.constructor,ht=typeof Z=="function"&&Z.prototype||S,I!==ht)return $t(T);var I,Z,ht,ee=[];for(var Pt in Object(T))Y.call(T,Pt)&&Pt!="constructor"&&ee.push(Pt);return ee}function mr(T,I,Z,ht,ee,Pt){var _=1&Z,z=T.length,J=I.length;if(z!=J&&!(_&&J>z))return!1;var ut=Pt.get(T);if(ut&&Pt.get(I))return ut==I;var Mt=-1,pe=!0,ne=2&Z?new rn:void 0;for(Pt.set(T,I),Pt.set(I,T);++Mt<z;){var Wt=T[Mt],Ze=I[Mt];if(ht)var Cn=_?ht(Ze,Wt,Mt,I,T,Pt):ht(Wt,Ze,Mt,T,I,Pt);if(Cn!==void 0){if(Cn)continue;pe=!1;break}if(ne){if(!nt(I,function(Ga,Vo){if(mi=Vo,!ne.has(mi)&&(Wt===Ga||ee(Wt,Ga,Z,ht,Pt)))return ne.push(Vo);var mi})){pe=!1;break}}else if(Wt!==Ze&&!ee(Wt,Ze,Z,ht,Pt)){pe=!1;break}}return Pt.delete(T),Pt.delete(I),pe}function zo(T){return function(I,Z,ht){var ee=Z(I);return Ho(I)?ee:function(Pt,_){for(var z=-1,J=_.length,ut=Pt.length;++z<J;)Pt[ut+z]=_[z];return Pt}(ee,ht(I))}(T,Oh,xh)}function $r(T,I){var Z,ht,ee=T.__data__;return((ht=typeof(Z=I))=="string"||ht=="number"||ht=="symbol"||ht=="boolean"?Z!=="__proto__":Z===null)?ee[typeof I=="string"?"string":"hash"]:ee.map}function gi(T,I){var Z=function(ht,ee){return ht==null?void 0:ht[ee]}(T,I);return xs(Z)?Z:void 0}En.prototype.clear=function(){this.__data__=Rr?Rr(null):{},this.size=0},En.prototype.delete=function(T){var I=this.has(T)&&delete this.__data__[T];return this.size-=I?1:0,I},En.prototype.get=function(T){var I=this.__data__;if(Rr){var Z=I[T];return Z===n?void 0:Z}return Y.call(I,T)?I[T]:void 0},En.prototype.has=function(T){var I=this.__data__;return Rr?I[T]!==void 0:Y.call(I,T)},En.prototype.set=function(T,I){var Z=this.__data__;return this.size+=this.has(T)?0:1,Z[T]=Rr&&I===void 0?n:I,this},Dn.prototype.clear=function(){this.__data__=[],this.size=0},Dn.prototype.delete=function(T){var I=this.__data__,Z=hi(I,T);return!(Z<0)&&(Z==I.length-1?I.pop():At.call(I,Z,1),--this.size,!0)},Dn.prototype.get=function(T){var I=this.__data__,Z=hi(I,T);return Z<0?void 0:I[Z][1]},Dn.prototype.has=function(T){return hi(this.__data__,T)>-1},Dn.prototype.set=function(T,I){var Z=this.__data__,ht=hi(Z,T);return ht<0?(++this.size,Z.push([T,I])):Z[ht][1]=I,this},Tn.prototype.clear=function(){this.size=0,this.__data__={hash:new En,map:new(me||Dn),string:new En}},Tn.prototype.delete=function(T){var I=$r(this,T).delete(T);return this.size-=I?1:0,I},Tn.prototype.get=function(T){return $r(this,T).get(T)},Tn.prototype.has=function(T){return $r(this,T).has(T)},Tn.prototype.set=function(T,I){var Z=$r(this,T),ht=Z.size;return Z.set(T,I),this.size+=Z.size==ht?0:1,this},rn.prototype.add=rn.prototype.push=function(T){return this.__data__.set(T,n),this},rn.prototype.has=function(T){return this.__data__.has(T)},vr.prototype.clear=function(){this.__data__=new Dn,this.size=0},vr.prototype.delete=function(T){var I=this.__data__,Z=I.delete(T);return this.size=I.size,Z},vr.prototype.get=function(T){return this.__data__.get(T)},vr.prototype.has=function(T){return this.__data__.has(T)},vr.prototype.set=function(T,I){var Z=this.__data__;if(Z instanceof Dn){var ht=Z.__data__;if(!me||ht.length<199)return ht.push([T,I]),this.size=++Z.size,this;Z=this.__data__=new Tn(ht)}return Z.set(T,I),this.size=Z.size,this};var xh=Ot?function(T){return T==null?[]:(T=Object(T),function(I,Z){for(var ht=-1,ee=I==null?0:I.length,Pt=0,_=[];++ht<ee;){var z=I[ht];Z(z,ht,I)&&(_[Pt++]=z)}return _}(Ot(T),function(I){return It.call(T,I)}))}:function(){return[]},Zn=Mo;function kc(T,I){return!!(I=I??r)&&(typeof T=="number"||x.test(T))&&T>-1&&T%1==0&&T<I}function $o(T){if(T!=null){try{return $.call(T)}catch{}try{return T+""}catch{}}return""}function Ss(T,I){return T===I||T!=T&&I!=I}(te&&Zn(new te(new ArrayBuffer(1)))!=w||me&&Zn(new me)!=c||bn&&Zn(bn.resolve())!=d||zt&&Zn(new zt)!=g||Rn&&Zn(new Rn)!=h)&&(Zn=function(T){var I=Mo(T),Z=I==p?T.constructor:void 0,ht=Z?$o(Z):"";if(ht)switch(ht){case ao:return w;case Ds:return c;case Ua:return d;case Mr:return g;case uo:return h}return I});var Sh=Cs(function(){return arguments}())?Cs:function(T){return vi(T)&&Y.call(T,"callee")&&!It.call(T,"callee")},Ho=Array.isArray,so=Be||function(){return!1};function Bc(T){if(!Ah(T))return!1;var I=Mo(T);return I==l||I=="[object GeneratorFunction]"||I=="[object AsyncFunction]"||I=="[object Proxy]"}function lo(T){return typeof T=="number"&&T>-1&&T%1==0&&T<=r}function Ah(T){var I=typeof T;return T!=null&&(I=="object"||I=="function")}function vi(T){return T!=null&&typeof T=="object"}var co=q?function(T){return function(I){return T(I)}}(q):function(T){return vi(T)&&lo(T.length)&&!!C[Mo(T)]};function Oh(T){return(I=T)!=null&&lo(I.length)&&!Bc(I)?Oc(T):zr(T);var I}t.exports=function(T,I){return Wa(T,I)}});Yn("en",{tableModule:{deleteCol:"Delete column",deleteRow:"Delete row",deleteTable:"Delete table",widthAuto:"Width auto",insertCol:"Insert column",insertRow:"Insert row",insertTable:"Insert table",header:"Header"}}),Yn("zh-CN",{tableModule:{deleteCol:"删除列",deleteRow:"删除行",deleteTable:"删除表格",widthAuto:"宽度自适应",insertCol:"插入列",insertRow:"插入行",insertTable:"插入表格",header:"表头"}});var LB=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function gR(t){var e={exports:{}};return t(e,e.exports),e.exports}var Ii,hg,C0=function(t){return t&&t.Math==Math&&t},Tt=C0(typeof globalThis=="object"&&globalThis)||C0(typeof window=="object"&&window)||C0(typeof self=="object"&&self)||C0(typeof LB=="object"&&LB)||function(){return this}()||Function("return this")(),Ye=function(t){try{return!!t()}catch{return!0}},_a=!Ye(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Of=Function.prototype.call,We=Of.bind?Of.bind(Of):function(){return Of.apply(Of,arguments)},RB={}.propertyIsEnumerable,MB=Object.getOwnPropertyDescriptor,Llt={f:MB&&!RB.call({1:2},1)?function(t){var e=MB(this,t);return!!e&&e.enumerable}:RB},RC=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},vR=Function.prototype,G6=vR.bind,q6=vR.call,Rlt=G6&&G6.bind(q6),Rt=G6?function(t){return t&&Rlt(q6,t)}:function(t){return t&&function(){return q6.apply(t,arguments)}},Mlt=Rt({}.toString),zlt=Rt("".slice),ha=function(t){return zlt(Mlt(t),8,-1)},z2=Tt.Object,$lt=Rt("".split),mR=Ye(function(){return!z2("z").propertyIsEnumerable(0)})?function(t){return ha(t)=="String"?$lt(t,""):z2(t)}:z2,Hlt=Tt.TypeError,Ta=function(t){if(t==null)throw Hlt("Can't call method on "+t);return t},dh=function(t){return mR(Ta(t))},mn=function(t){return typeof t=="function"},Or=function(t){return typeof t=="object"?t!==null:mn(t)},Vlt=function(t){return mn(t)?t:void 0},ph=function(t,e){return arguments.length<2?Vlt(Tt[t]):Tt[t]&&Tt[t][e]},yR=Rt({}.isPrototypeOf),$2=ph("navigator","userAgent")||"",zB=Tt.process,$B=Tt.Deno,HB=zB&&zB.versions||$B&&$B.version,VB=HB&&HB.v8;VB&&(hg=(Ii=VB.split("."))[0]>0&&Ii[0]<4?1:+(Ii[0]+Ii[1])),!hg&&$2&&(!(Ii=$2.match(/Edge\/(\d+)/))||Ii[1]>=74)&&(Ii=$2.match(/Chrome\/(\d+)/))&&(hg=+Ii[1]);var K6=hg,Y6=!!Object.getOwnPropertySymbols&&!Ye(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&K6&&K6<41}),MC=Y6&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Ult=Tt.Object,H2=MC?function(t){return typeof t=="symbol"}:function(t){var e=ph("Symbol");return mn(e)&&yR(e.prototype,Ult(t))},Wlt=Tt.String,bR=function(t){try{return Wlt(t)}catch{return"Object"}},Glt=Tt.TypeError,wR=function(t){if(mn(t))return t;throw Glt(bR(t)+" is not a function")},zC=function(t,e){var n=t[e];return n==null?void 0:wR(n)},qlt=Tt.TypeError,Klt=Object.defineProperty,$C=function(t,e){try{Klt(Tt,t,{value:e,configurable:!0,writable:!0})}catch{Tt[t]=e}return e},ga=Tt["__core-js_shared__"]||$C("__core-js_shared__",{}),HC=gR(function(t){(t.exports=function(e,n){return ga[e]||(ga[e]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),Ylt=Tt.Object,VC=function(t){return Ylt(Ta(t))},Xlt=Rt({}.hasOwnProperty),Br=Object.hasOwn||function(t,e){return Xlt(VC(t),e)},Zlt=0,Jlt=Math.random(),Qlt=Rt(1 .toString),ER=function(t){return"Symbol("+(t===void 0?"":t)+")_"+Qlt(++Zlt+Jlt,36)},kf=HC("wks"),Hu=Tt.Symbol,UB=Hu&&Hu.for,tct=MC?Hu:Hu&&Hu.withoutSetter||ER,Lr=function(t){if(!Br(kf,t)||!Y6&&typeof kf[t]!="string"){var e="Symbol."+t;Y6&&Br(Hu,t)?kf[t]=Hu[t]:kf[t]=MC&&UB?UB(e):tct(e)}return kf[t]},ect=Tt.TypeError,nct=Lr("toPrimitive"),UC=function(t){var e=function(n,r){if(!Or(n)||H2(n))return n;var o,i=zC(n,nct);if(i){if(r===void 0&&(r="default"),o=We(i,n,r),!Or(o)||H2(o))return o;throw ect("Can't convert object to primitive value")}return r===void 0&&(r="number"),function(a,u){var s,l;if(u==="string"&&mn(s=a.toString)&&!Or(l=We(s,a))||mn(s=a.valueOf)&&!Or(l=We(s,a))||u!=="string"&&mn(s=a.toString)&&!Or(l=We(s,a)))return l;throw qlt("Can't convert object to primitive value")}(n,r)}(t,"string");return H2(e)?e:e+""},X6=Tt.document,rct=Or(X6)&&Or(X6.createElement),WC=function(t){return rct?X6.createElement(t):{}},DR=!_a&&!Ye(function(){return Object.defineProperty(WC("div"),"a",{get:function(){return 7}}).a!=7}),WB=Object.getOwnPropertyDescriptor,CR={f:_a?WB:function(t,e){if(t=dh(t),e=UC(e),DR)try{return WB(t,e)}catch{}if(Br(t,e))return RC(!We(Llt.f,t,e),t[e])}},oct=Tt.String,ict=Tt.TypeError,Fr=function(t){if(Or(t))return t;throw ict(oct(t)+" is not an object")},act=Tt.TypeError,GB=Object.defineProperty,hh={f:_a?GB:function(t,e,n){if(Fr(t),e=UC(e),Fr(n),DR)try{return GB(t,e,n)}catch{}if("get"in n||"set"in n)throw act("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},tc=_a?function(t,e,n){return hh.f(t,e,RC(1,n))}:function(t,e,n){return t[e]=n,t},uct=Rt(Function.toString);mn(ga.inspectSource)||(ga.inspectSource=function(t){return uct(t)});var Yv,Cd,Xv,GC=ga.inspectSource,qB=Tt.WeakMap,sct=mn(qB)&&/native code/.test(GC(qB)),KB=HC("keys"),xR=function(t){return KB[t]||(KB[t]=ER(t))},qC={},Z6=Tt.TypeError,lct=Tt.WeakMap;if(sct||ga.state){var iu=ga.state||(ga.state=new lct),cct=Rt(iu.get),YB=Rt(iu.has),fct=Rt(iu.set);Yv=function(t,e){if(YB(iu,t))throw new Z6("Object already initialized");return e.facade=t,fct(iu,t,e),e},Cd=function(t){return cct(iu,t)||{}},Xv=function(t){return YB(iu,t)}}else{var Gs=xR("state");qC[Gs]=!0,Yv=function(t,e){if(Br(t,Gs))throw new Z6("Object already initialized");return e.facade=t,tc(t,Gs,e),e},Cd=function(t){return Br(t,Gs)?t[Gs]:{}},Xv=function(t){return Br(t,Gs)}}var J6={set:Yv,get:Cd,has:Xv,enforce:function(t){return Xv(t)?Cd(t):Yv(t,{})},getterFor:function(t){return function(e){var n;if(!Or(e)||(n=Cd(e)).type!==t)throw Z6("Incompatible receiver, "+t+" required");return n}}},SR=Function.prototype,dct=_a&&Object.getOwnPropertyDescriptor,V2=Br(SR,"name"),KC={EXISTS:V2,PROPER:V2&&(function(){}).name==="something",CONFIGURABLE:V2&&(!_a||_a&&dct(SR,"name").configurable)},lp=gR(function(t){var e=KC.CONFIGURABLE,n=J6.get,r=J6.enforce,o=String(String).split("String");(t.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,p=!!s&&!!s.noTargetGet,d=s&&s.name!==void 0?s.name:a;mn(u)&&(String(d).slice(0,7)==="Symbol("&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Br(u,"name")||e&&u.name!==d)&&tc(u,"name",d),(l=r(u)).source||(l.source=o.join(typeof d=="string"?d:""))),i!==Tt?(c?!p&&i[a]&&(f=!0):delete i[a],f?i[a]=u:tc(i,a,u)):f?i[a]=u:$C(a,u)})(Function.prototype,"toString",function(){return mn(this)&&n(this).source||GC(this)})}),pct=Math.ceil,hct=Math.floor,Am=function(t){var e=+t;return e!=e||e===0?0:(e>0?hct:pct)(e)},gct=Math.max,vct=Math.min,cp=function(t,e){var n=Am(t);return n<0?gct(n+e,0):vct(n,e)},mct=Math.min,YC=function(t){return t>0?mct(Am(t),9007199254740991):0},Om=function(t){return YC(t.length)},yct=function(t){return function(e,n,r){var o,i=dh(e),a=Om(i),u=cp(r,a);if(t&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===n)return t||u||0;return!t&&-1}},bct=yct(!1),XB=Rt([].push),AR=function(t,e){var n,r=dh(t),o=0,i=[];for(n in r)!Br(qC,n)&&Br(r,n)&&XB(i,n);for(;e.length>o;)Br(r,n=e[o++])&&(~bct(i,n)||XB(i,n));return i},Zv=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],wct=Zv.concat("length","prototype"),Ect={f:Object.getOwnPropertyNames||function(t){return AR(t,wct)}},Dct={f:Object.getOwnPropertySymbols},Cct=Rt([].concat),xct=ph("Reflect","ownKeys")||function(t){var e=Ect.f(Fr(t)),n=Dct.f;return n?Cct(e,n(t)):e},Sct=function(t,e){for(var n=xct(e),r=hh.f,o=CR.f,i=0;i<n.length;i++){var a=n[i];Br(t,a)||r(t,a,o(e,a))}},Act=/#|\.prototype\./,gh=function(t,e){var n=kct[Oct(t)];return n==Fct||n!=Bct&&(mn(e)?Ye(e):!!e)},Oct=gh.normalize=function(t){return String(t).replace(Act,".").toLowerCase()},kct=gh.data={},Bct=gh.NATIVE="N",Fct=gh.POLYFILL="P",_ct=gh,Tct=CR.f,Pa=function(t,e){var n,r,o,i,a,u=t.target,s=t.global,l=t.stat;if(n=s?Tt:l?Tt[u]||$C(u,{}):(Tt[u]||{}).prototype)for(r in e){if(i=e[r],o=t.noTargetGet?(a=Tct(n,r))&&a.value:n[r],!_ct(s?r:u+(l?".":"#")+r,t.forced)&&o!==void 0){if(typeof i==typeof o)continue;Sct(i,o)}(t.sham||o&&o.sham)&&tc(i,"sham",!0),lp(n,r,i,t)}},OR={};OR[Lr("toStringTag")]="z";var XC=String(OR)==="[object z]",Pct=Lr("toStringTag"),jct=Tt.Object,Nct=ha(function(){return arguments}())=="Arguments",ZC=XC?ha:function(t){var e,n,r;return t===void 0?"Undefined":t===null?"Null":typeof(n=function(o,i){try{return o[i]}catch{}}(e=jct(t),Pct))=="string"?n:Nct?ha(e):(r=ha(e))=="Object"&&mn(e.callee)?"Arguments":r},Ict=Tt.String,kn=function(t){if(ZC(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Ict(t)},Lct=/"/g,Rct=Rt("".replace);Pa({target:"String",proto:!0,forced:Ye(function(){var t="".anchor('"');return t!==t.toLowerCase()||t.split('"').length>3})},{anchor:function(t){return e=t,n=kn(Ta(this)),r="<a",(r+=' name="'+Rct(kn(e),Lct,"&quot;")+'"')+">"+n+"</a>";var e,n,r}});var x0,kR=function(){var t=Fr(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},JC=Tt.RegExp,Q6=Ye(function(){var t=JC("a","y");return t.lastIndex=2,t.exec("abcd")!=null}),Mct=Q6||Ye(function(){return!JC("a","y").sticky}),BR={BROKEN_CARET:Q6||Ye(function(){var t=JC("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),MISSED_STICKY:Mct,UNSUPPORTED_Y:Q6},zct=Object.keys||function(t){return AR(t,Zv)},$ct=_a?Object.defineProperties:function(t,e){Fr(t);for(var n,r=dh(e),o=zct(e),i=o.length,a=0;i>a;)hh.f(t,n=o[a++],r[n]);return t},Hct=ph("document","documentElement"),FR=xR("IE_PROTO"),U2=function(){},_R=function(t){return"<script>"+t+"<\/script>"},ZB=function(t){t.write(_R("")),t.close();var e=t.parentWindow.Object;return t=null,e},gg=function(){try{x0=new ActiveXObject("htmlfile")}catch{}var t,e;gg=typeof document<"u"?document.domain&&x0?ZB(x0):((e=WC("iframe")).style.display="none",Hct.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(_R("document.F=Object")),t.close(),t.F):ZB(x0);for(var n=Zv.length;n--;)delete gg.prototype[Zv[n]];return gg()};qC[FR]=!0;var JB,W2,TR=Object.create||function(t,e){var n;return t!==null?(U2.prototype=Fr(t),n=new U2,U2.prototype=null,n[FR]=t):n=gg(),e===void 0?n:$ct(n,e)},Vct=Tt.RegExp,Uct=Ye(function(){var t=Vct(".","s");return!(t.dotAll&&t.exec(`
  118. `)&&t.flags==="s")}),Wct=Tt.RegExp,Gct=Ye(function(){var t=Wct("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),qct=J6.get,Kct=HC("native-string-replace",String.prototype.replace),Jv=RegExp.prototype.exec,t3=Jv,Yct=Rt("".charAt),Xct=Rt("".indexOf),Zct=Rt("".replace),G2=Rt("".slice),q2=(W2=/b*/g,We(Jv,JB=/a/,"a"),We(Jv,W2,"a"),JB.lastIndex!==0||W2.lastIndex!==0),QB=BR.BROKEN_CARET,K2=/()??/.exec("")[1]!==void 0;(q2||K2||QB||Uct||Gct)&&(t3=function(t){var e,n,r,o,i,a,u,s=this,l=qct(s),c=kn(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=We(t3,f,c),s.lastIndex=f.lastIndex,e;var p=l.groups,d=QB&&s.sticky,y=We(kR,s),g=s.source,v=0,m=c;if(d&&(y=Zct(y,"y",""),Xct(y,"g")===-1&&(y+="g"),m=G2(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&Yct(c,s.lastIndex-1)!==`
  119. `)&&(g="(?: "+g+")",m=" "+m,v++),n=new RegExp("^(?:"+g+")",y)),K2&&(n=new RegExp("^"+g+"$(?!\\s)",y)),q2&&(r=s.lastIndex),o=We(Jv,d?n:s,m),d?o?(o.input=G2(o.input,v),o[0]=G2(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:q2&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),K2&&o&&o.length>1&&We(Kct,o[0],n,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&p)for(o.groups=a=TR(null),i=0;i<p.length;i++)a[(u=p[i])[0]]=o[u[1]];return o});var fp=t3;Pa({target:"RegExp",proto:!0,forced:/./.exec!==fp},{exec:fp});var Qv=Array.isArray||function(t){return ha(t)=="Array"},PR=function(){},Jct=[],jR=ph("Reflect","construct"),QC=/^\s*(?:class|function)\b/,Qct=Rt(QC.exec),tft=!QC.exec(PR),Bf=function(t){if(!mn(t))return!1;try{return jR(PR,Jct,t),!0}catch{return!1}},t8=!jR||Ye(function(){var t;return Bf(Bf.call)||!Bf(Object)||!Bf(function(){t=!0})||t})?function(t){if(!mn(t))return!1;switch(ZC(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return tft||!!Qct(QC,GC(t))}:Bf,NR=function(t,e,n){var r=UC(e);r in t?hh.f(t,r,RC(0,n)):t[r]=n},eft=Lr("species"),e8=function(t){return K6>=51||!Ye(function(){var e=[];return(e.constructor={})[eft]=function(){return{foo:1}},e[t](Boolean).foo!==1})},nft=Rt([].slice),rft=e8("slice"),oft=Lr("species"),Y2=Tt.Array,ift=Math.max;function oo(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(e===void 0||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(u){o={error:u}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function tF(t){var e=t.selection;if(e==null)return!1;var n=oo(D.nodes(t,{match:function(i){return A.checkNodeType(i,"table-cell")}}),1)[0];if(n){var r=oo(n,2)[1],o=D.start(t,r);if(Bt.equals(e.anchor,o))return!0}return!1}function eF(t,e){var n,r,o=D.nodes(t,{at:e,match:function(s){return A.getNodeType(s)==="table"}}),i=!1;try{for(var a=function(s){var l=typeof Symbol=="function"&&Symbol.iterator,c=l&&s[l],f=0;if(c)return c.call(s);if(s&&typeof s.length=="number")return{next:function(){return s&&f>=s.length&&(s=void 0),{value:s&&s[f++],done:!s}}};throw new TypeError(l?"Object is not iterable.":"Symbol.iterator is not defined.")}(o),u=a.next();!u.done;u=a.next())u.value,i=!0}catch(s){n={error:s}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return i}Pa({target:"Array",proto:!0,forced:!rft},{slice:function(t,e){var n,r,o,i=dh(this),a=Om(i),u=cp(t,a),s=cp(e===void 0?a:e,a);if(Qv(i)&&(n=i.constructor,(t8(n)&&(n===Y2||Qv(n.prototype))||Or(n)&&(n=n[oft])===null)&&(n=void 0),n===Y2||n===void 0))return nft(i,u,s);for(r=new(n===void 0?Y2:n)(ift(s-u,0)),o=0;u<s;u++,o++)u in i&&NR(r,o,i[u]);return r.length=o,r}});var nF=Rt(Rt.bind),aft=Lr("species"),rF=Tt.Array,uft=function(t,e){return new(function(n){var r;return Qv(n)&&(r=n.constructor,(t8(r)&&(r===rF||Qv(r.prototype))||Or(r)&&(r=r[aft])===null)&&(r=void 0)),r===void 0?rF:r}(t))(e===0?0:e)},oF=Rt([].push),Li=function(t){var e=t==1,n=t==2,r=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var p,d,y=VC(s),g=mR(y),v=function(E,x){return wR(E),x===void 0?E:nF?nF(E,x):function(){return E.apply(x,arguments)}}(l,c),m=Om(g),h=0,b=f||uft,w=e?b(s,m):n||a?b(s,0):void 0;m>h;h++)if((u||h in g)&&(d=v(p=g[h],h,y),t))if(e)w[h]=d;else if(d)switch(t){case 3:return!0;case 5:return p;case 6:return h;case 2:oF(w,p)}else switch(t){case 4:return!1;case 7:oF(w,p)}return i?-1:r||o?o:w}},km={forEach:Li(0),map:Li(1),filter:Li(2),some:Li(3),every:Li(4),find:Li(5),findIndex:Li(6),filterReject:Li(7)},sft=km.map;Pa({target:"Array",proto:!0,forced:!e8("map")},{map:function(t){return sft(this,t,arguments.length>1?arguments[1]:void 0)}});var lft=XC?{}.toString:function(){return"[object "+ZC(this)+"]"};function Bm(t){var e=t.children||[];return e.length===0?[]:(e[0]||{}).children||[]}function IR(t){return Bm(t).every(function(e){return!!e.isHeader})}XC||lp(Object.prototype,"toString",lft,{unsafe:!0});var cft=KC.PROPER,e3=RegExp.prototype,LR=e3.toString,fft=Rt(kR),dft=Ye(function(){return LR.call({source:"a",flags:"b"})!="/a/b"}),pft=cft&&LR.name!="toString";(dft||pft)&&lp(RegExp.prototype,"toString",function(){var t=Fr(this),e=kn(t.source),n=t.flags;return"/"+e+"/"+kn(n===void 0&&yR(e3,t)&&!("flags"in e3)?fft(t):n)},{unsafe:!0});var n3=Lr("unscopables"),r3=Array.prototype;r3[n3]==null&&hh.f(r3,n3,{configurable:!0,value:TR(null)});var hft=km.find,iF=!0;"find"in[]&&Array(1).find(function(){iF=!1}),Pa({target:"Array",proto:!0,forced:iF},{find:function(t){return hft(this,t,arguments.length>1?arguments[1]:void 0)}}),r3[n3].find=!0;var n8=Function.prototype,aF=n8.apply,gft=n8.bind,uF=n8.call,RR=typeof Reflect=="object"&&Reflect.apply||(gft?uF.bind(aF):function(){return uF.apply(aF,arguments)}),vft=Lr("species"),X2=RegExp.prototype,MR=function(t,e,n,r){var o=Lr(t),i=!Ye(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),a=i&&!Ye(function(){var l=!1,c=/a/;return t==="split"&&((c={}).constructor={},c.constructor[vft]=function(){return c},c.flags="",c[o]=/./[o]),c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||n){var u=Rt(/./[o]),s=e(o,""[t],function(l,c,f,p,d){var y=Rt(l),g=c.exec;return g===fp||g===X2.exec?i&&!d?{done:!0,value:u(c,f,p)}:{done:!0,value:y(f,c,p)}:{done:!1}});lp(String.prototype,t,s[0]),lp(X2,o,s[1])}r&&tc(X2[o],"sham",!0)},mft=Lr("match"),yft=Tt.TypeError,bft=Lr("species"),wft=Rt("".charAt),sF=Rt("".charCodeAt),Eft=Rt("".slice),Dft=function(t){return function(e,n){var r,o,i=kn(Ta(e)),a=Am(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=sF(i,a))<55296||r>56319||a+1===u||(o=sF(i,a+1))<56320||o>57343?t?wft(i,a):r:t?Eft(i,a,a+2):o-56320+(r-55296<<10)+65536}},Cft=Dft(!0),zR=function(t,e,n){return e+(n?Cft(t,e).length:1)},xft=Tt.Array,Sft=Math.max,lF=function(t,e,n){for(var r=Om(t),o=cp(e,r),i=cp(n===void 0?r:n,r),a=xft(Sft(i-o,0)),u=0;o<i;o++,u++)NR(a,u,t[o]);return a.length=u,a},Aft=Tt.TypeError,o3=function(t,e){var n=t.exec;if(mn(n)){var r=We(n,t,e);return r!==null&&Fr(r),r}if(ha(t)==="RegExp")return We(fp,t,e);throw Aft("RegExp#exec called on incompatible receiver")},qs=BR.UNSUPPORTED_Y,Oft=Math.min,$R=[].push,kft=Rt(/./.exec),Ks=Rt($R),Ff=Rt("".slice);MR("split",function(t,e,n){var r;return r="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(o,i){var a,u,s=kn(Ta(this)),l=i===void 0?4294967295:i>>>0;if(l===0)return[];if(o===void 0)return[s];if(!Or(a=o)||!((u=a[mft])!==void 0?u:ha(a)=="RegExp"))return We(e,s,o,l);for(var c,f,p,d=[],y=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(o.sticky?"y":""),g=0,v=new RegExp(o.source,y+"g");(c=We(fp,v,s))&&!((f=v.lastIndex)>g&&(Ks(d,Ff(s,g,c.index)),c.length>1&&c.index<s.length&&RR($R,d,lF(c,1)),p=c[0].length,g=f,d.length>=l));)v.lastIndex===c.index&&v.lastIndex++;return g===s.length?!p&&kft(v,"")||Ks(d,""):Ks(d,Ff(s,g)),d.length>l?lF(d,0,l):d}:"0".split(void 0,0).length?function(o,i){return o===void 0&&i===0?[]:We(e,this,o,i)}:e,[function(o,i){var a=Ta(this),u=o==null?void 0:zC(o,t);return u?We(u,o,a,i):We(r,kn(a),o,i)},function(o,i){var a=Fr(this),u=kn(o),s=n(r,a,u,i,r!==e);if(s.done)return s.value;var l=function(w,E){var x,C=Fr(w).constructor;return C===void 0||(x=Fr(C)[bft])==null?E:function(O){if(t8(O))return O;throw yft(bR(O)+" is not a constructor")}(x)}(a,RegExp),c=a.unicode,f=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(qs?"g":"y"),p=new l(qs?"^(?:"+a.source+")":a,f),d=i===void 0?4294967295:i>>>0;if(d===0)return[];if(u.length===0)return o3(p,u)===null?[u]:[];for(var y=0,g=0,v=[];g<u.length;){p.lastIndex=qs?0:g;var m,h=o3(p,qs?Ff(u,g):u);if(h===null||(m=Oft(YC(p.lastIndex+(qs?g:0)),u.length))===y)g=zR(u,g,c);else{if(Ks(v,Ff(u,y,g)),v.length===d)return v;for(var b=1;b<=h.length-1;b++)if(Ks(v,h[b]),v.length===d)return v;g=y=m}}return Ks(v,Ff(u,y)),v}]},!!Ye(function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return n.length!==2||n[0]!=="a"||n[1]!=="b"}),qs);var i3=`
  120. \v\f\r                 \u2028\u2029\uFEFF`,cF=Rt("".replace),t1="["+i3+"]",Bft=RegExp("^"+t1+t1+"*"),Fft=RegExp(t1+t1+"*$"),Z2=function(t){return function(e){var n=kn(Ta(e));return 1&t&&(n=cF(n,Bft,"")),2&t&&(n=cF(n,Fft,"")),n}},_ft={start:Z2(1),end:Z2(2),trim:Z2(3)},Tft=KC.PROPER,Pft=_ft.trim;function HR(t){return t.length?t[0].tagName.toLowerCase():""}Pa({target:"String",proto:!0,forced:function(t){return Ye(function(){return!!i3[t]()||"​…᠎"[t]()!=="​…᠎"||Tft&&i3[t].name!==t})}("trim")},{trim:function(){return Pft(this)}}),Pa({global:!0},{globalThis:Tt}),Pr&&(B.fn.append=Pr),Fo&&(B.fn.on=Fo),Sa&&(B.fn.focus=Sa),Tr&&(B.fn.attr=Tr),Bo&&(B.fn.val=Bo),xa&&(B.fn.html=xa),Ll&&(B.fn.dataset=Ll),jl&&(B.fn.addClass=jl),Nl&&(B.fn.removeClass=Nl),$l&&(B.fn.children=$l),nv&&(B.fn.each=nv),zl&&(B.fn.find=zl);var dp=!1,VR=0,UR=0,pp=null,hp=null,xd=B("body");function WR(t){dp=!1,hp=null,pp=null,xd.off("mousemove",GR),xd.off("mouseup",WR)}xd.on("mousedown",function(t){var e=t.target;if((e.tagName==="TH"||e.tagName==="TD")&&e.style.cursor==="col-resize"){e.style.cursor="auto",t.preventDefault(),dp=!0;var n=t.clientX;VR=n;var r=e.getBoundingClientRect().width;UR=r,xd.on("mousemove",GR),xd.on("mouseup",WR)}});var GR=Ju(function(t){if(dp&&hp!=null&&pp!=null){t.preventDefault();var e=t.clientX,n=UR+(e-VR);(n=Math.floor(100*n)/100)<30&&(n=30),N.setNodes(hp,{width:n.toString()},{at:pp})}},100),jft={type:"table",renderElem:function(t,e,n){var r=function(u,s){if(u.isDisabled())return!1;var l=u.selection;if(l==null||L.isCollapsed(l))return!0;var c=l.anchor,f=l.focus,p=A.findPath(u,s),d=D.start(u,p),y=D.end(u,p),g=Bt.compare(c,y)<=0&&Bt.compare(c,d)>=0,v=Bt.compare(f,y)<=0&&Bt.compare(f,d)>=0;return!!(g&&v&&j.equals(c.path.slice(0,3),f.path.slice(0,3)))}(n,t),o=t.width,i=o===void 0?"auto":o,a=bt("div",{className:"table-container","data-selected":A.isNodeSelected(n,t),on:{mousedown:function(u){if(u.target.tagName==="DIV"&&u.preventDefault(),!n.isDisabled()){var s=A.findPath(n,t),l=D.start(n,s),c=n.selection;c!=null?c.anchor.path[0]!==s[0]&&n.select(l):n.select(l)}}}},bt("table",{width:i,contentEditable:r},bt("colgroup",null,Bm(t).map(function(u){var s=u.width;return bt("col",{width:s===void 0?"auto":s})})),bt("tbody",null,e)));return a}},Nft={type:"table-row",renderElem:function(t,e,n){return bt("tr",null,e)}},Ift={type:"table-cell",renderElem:function(t,e,n){var r=function(p,d){var y=A.getParentNode(p,d);if(y==null)return!1;var g=A.getParentNode(p,y);return g!=null&&Bm(g).some(function(v){return v===d})}(n,t),o=t,i=o.colSpan,a=i===void 0?1:i,u=o.rowSpan,s=u===void 0?1:u,l=o.isHeader,c=l!==void 0&&l;if(!r)return bt("td",{colSpan:a,rowSpan:s},e);var f=bt(c?"th":"td",{colSpan:a,rowSpan:s,style:{borderRightWidth:"3px"},on:{mousemove:Ju(function(p){var d=this.elm;if(d!=null){var y=d.getBoundingClientRect(),g=y.left,v=y.width,m=y.top,h=y.height,b=p.clientX,w=p.clientY;dp||(b>g+v-5&&b<g+v&&w>m&&w<m+h?(d.style.cursor="col-resize",hp=n,pp=A.findPath(n,t)):dp||(d.style.cursor="auto",hp=null,pp=null))}},100)}},e);return f}},Lft={selector:"table",preParseHtml:function(t){var e=B(t);if(HR(e)!=="table")return t;var n=e.find("tbody");if(n.length===0)return t;var r=e.find("tr");return e.append(r),n.remove(),e[0]}},Rft=km.filter;Pa({target:"Array",proto:!0,forced:!e8("filter")},{filter:function(t){return Rft(this,t,arguments.length>1?arguments[1]:void 0)}});var Mft=Math.floor,J2=Rt("".charAt),zft=Rt("".replace),Q2=Rt("".slice),$ft=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Hft=/\$([$&'`]|\d{1,2})/g,Vft=function(t,e,n,r,o,i){var a=n+t.length,u=r.length,s=Hft;return o!==void 0&&(o=VC(o),s=$ft),zft(i,s,function(l,c){var f;switch(J2(c,0)){case"$":return"$";case"&":return t;case"`":return Q2(e,0,n);case"'":return Q2(e,a);case"<":f=o[Q2(c,1,-1)];break;default:var p=+c;if(p===0)return l;if(p>u){var d=Mft(p/10);return d===0?l:d<=u?r[d-1]===void 0?J2(c,1):r[d-1]+J2(c,1):l}f=r[p-1]}return f===void 0?"":f})},a3=Lr("replace"),Uft=Math.max,Wft=Math.min,Gft=Rt([].concat),tw=Rt([].push),fF=Rt("".indexOf),dF=Rt("".slice),qft="a".replace(/./,"$0")==="$0",pF=!!/./[a3]&&/./[a3]("a","$0")==="";MR("replace",function(t,e,n){var r=pF?"$":"$0";return[function(o,i){var a=Ta(this),u=o==null?void 0:zC(o,a3);return u?We(u,o,a,i):We(e,kn(a),o,i)},function(o,i){var a=Fr(this),u=kn(o);if(typeof i=="string"&&fF(i,r)===-1&&fF(i,"$<")===-1){var s=n(e,a,u,i);if(s.done)return s.value}var l=mn(i);l||(i=kn(i));var c=a.global;if(c){var f=a.unicode;a.lastIndex=0}for(var p=[];;){var d=o3(a,u);if(d===null||(tw(p,d),!c))break;kn(d[0])===""&&(a.lastIndex=zR(u,YC(a.lastIndex),f))}for(var y,g="",v=0,m=0;m<p.length;m++){for(var h=kn((d=p[m])[0]),b=Uft(Wft(Am(d.index),u.length),0),w=[],E=1;E<d.length;E++)tw(w,(y=d[E])===void 0?y:String(y));var x=d.groups;if(l){var C=Gft([h],w,b,u);x!==void 0&&tw(C,x);var O=kn(RR(i,void 0,C))}else O=Vft(h,u,b,w,x,i);b>=v&&(g+=dF(u,v,b)+O,v=b+h.length)}return g+dF(u,v)}]},!!Ye(function(){var t=/./;return t.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(t,"$<a>")!=="7"})||!qft||pF);var Kft={selector:"td:not([data-w-e-type]),th:not([data-w-e-type])",parseElemHtml:function(t,e,n){var r=B(t);(e=e.filter(function(u){return!!ot.isText(u)||!!n.isInline(u)})).length===0&&(e=[{text:r.text().replace(/\s+/gm," ")}]);var o=parseInt(r.attr("colSpan")||"1"),i=parseInt(r.attr("rowSpan")||"1"),a=r.attr("width")||"auto";return{type:"table-cell",isHeader:HR(r)==="th",colSpan:o,rowSpan:i,width:a,children:e}}},Yft={selector:"tr:not([data-w-e-type])",parseElemHtml:function(t,e,n){return{type:"table-row",children:e.filter(function(r){return A.getNodeType(r)==="table-cell"})}}},Xft={selector:"table:not([data-w-e-type])",parseElemHtml:function(t,e,n){var r=B(t),o="auto";return function(i,a){for(var u="",s=(i.attr("style")||"").split(";"),l=s.length,c=0;c<l;c++){var f=s[c];if(f){var p=f.split(":");p[0].trim()==="width"&&(u=p[1].trim())}}return u}(r)==="100%"&&(o="100%"),r.attr("width")==="100%"&&(o="100%"),{type:"table",width:o,children:e.filter(function(i){return A.getNodeType(i)==="table-row"})}}},Zft=function(){function t(){this.title=tt("tableModule.insertTable"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0 64v896h1024V64H0z m384 576v-192h256v192h-256z m256 64v192h-256v-192h256z m0-512v192h-256V192h256zM320 192v192H64V192h256z m-256 256h256v192H64v-192z m640 0h256v192h-256v-192z m0-64V192h256v192h-256zM64 704h256v192H64v-192z m640 192v-192h256v192h-256z"></path></svg>',this.tag="button",this.showDropPanel=!0,this.$content=null}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,n){},t.prototype.isDisabled=function(e){var n=e.selection;return n==null||!L.isCollapsed(n)||!!A.getSelectedElems(e).some(function(r){var o=A.getNodeType(r);return o==="pre"||o==="table"||o==="list-item"||!!e.isVoid(r)})},t.prototype.getPanelContentElem=function(e){var n=this;if(this.$content)return this.$content[0];for(var r=B('<div class="w-e-panel-content-table"></div>'),o=B("<span>0 &times; 0</span>"),i=B("<table></table>"),a=0;a<10;a++){for(var u=B("<tr></tr>"),s=0;s<10;s++){var l=B("<td></td>");l.attr("data-x",s.toString()),l.attr("data-y",a.toString()),u.append(l),l.on("mouseenter",function(c){var f=c.target;if(f!=null){var p=B(f).dataset(),d=p.x,y=p.y;o[0].innerHTML=d+1+" &times; "+(y+1),i.children().each(function(g){B(g).children().each(function(v){var m=B(v),h=m.dataset(),b=h.x,w=h.y;b<=d&&w<=y?m.addClass("active"):m.removeClass("active")})})}}),l.on("click",function(c){c.preventDefault();var f=c.target;if(f!=null){var p=B(f).dataset(),d=p.x,y=p.y;n.insertTable(e,y+1,d+1)}})}i.append(u)}return r.append(i),r.append(o),this.$content=r,r[0]},t.prototype.insertTable=function(e,n,r){var o=parseInt(n,10),i=parseInt(r,10);if(o&&i&&!(o<=0||i<=0)){A.isSelectedEmptyParagraph(e)&&N.removeNodes(e,{mode:"highest"});var a=function(u,s){for(var l=[],c=0;c<u;c++){for(var f=[],p=0;p<s;p++){var d={type:"table-cell",children:[{text:""}]};c===0&&(d.isHeader=!0),f.push(d)}l.push({type:"table-row",children:f})}return{type:"table",width:"auto",children:l}}(o,i);N.insertNodes(e,a,{mode:"highest"})}},t}(),Jft=function(){function t(){this.title=tt("tableModule.deleteTable"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M826.8032 356.5312c-19.328 0-36.3776 15.6928-36.3776 35.0464v524.2624c0 19.328-16 34.56-35.328 34.56H264.9344c-19.328 0-35.5072-15.3088-35.5072-34.56V390.0416c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.6928-33.5104 35.0464V915.712c0 57.9328 44.6208 108.288 102.528 108.288H755.2c57.9328 0 108.0832-50.4576 108.0832-108.288V391.4752c-0.1024-19.2512-17.1264-34.944-36.48-34.944z" p-id="9577"></path><path d="M437.1712 775.7568V390.6048c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.616-33.5104 35.0464v385.152c0 19.328 14.1568 35.0464 33.5104 35.0464s33.5104-15.7184 33.5104-35.0464zM649.7024 775.7568V390.6048c0-19.328-17.0496-35.0464-36.3776-35.0464s-36.3776 15.616-36.3776 35.0464v385.152c0 19.328 17.0496 35.0464 36.3776 35.0464s36.3776-15.7184 36.3776-35.0464zM965.0432 217.0368h-174.6176V145.5104c0-57.9328-47.2064-101.76-104.6528-101.76h-350.976c-57.8304 0-105.3952 43.8528-105.3952 101.76v71.5264H54.784c-19.4304 0-35.0464 14.1568-35.0464 33.5104 0 19.328 15.616 33.5104 35.0464 33.5104h910.3616c19.328 0 35.0464-14.1568 35.0464-33.5104 0-19.3536-15.6928-33.5104-35.1488-33.5104z m-247.3728 0H297.3952V145.5104c0-19.328 18.2016-34.7648 37.4272-34.7648h350.976c19.1488 0 31.872 15.1296 31.872 34.7648v71.5264z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null||A.getSelectedNodeByType(e,"table")==null},t.prototype.exec=function(e,n){this.isDisabled(e)||N.removeNodes(e,{mode:"highest"})},t}(),Qft=function(){function t(){this.title=tt("tableModule.insertRow"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M707.7888 521.0112h-147.456v-147.456H488.2432v147.456h-147.456v68.8128h147.456v147.456h72.0896v-147.456h147.456zM0 917.504V0h1048.576v917.504H0zM327.68 65.536H65.536v196.608H327.68V65.536z m327.68 0H393.216v196.608h262.144V65.536z m327.68 0h-262.144v196.608h262.144V65.536z m0 258.8672H65.536v462.0288H983.04V324.4032z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){var n=e.selection;return n==null||!L.isCollapsed(n)||A.getSelectedNodeByType(e,"table")==null},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){var r=oo(D.nodes(e,{match:function(d){return A.checkNodeType(d,"table-cell")},universal:!0}),1),o=oo(r[0],2),i=o[0],a=o[1],u=A.getParentNode(e,i),s=(u==null?void 0:u.children.length)||0;if(s!==0){for(var l={type:"table-row",children:[]},c=0;c<s;c++)l.children.push({type:"table-cell",children:[{text:""}]});var f=j.parent(a),p=j.next(f);N.insertNodes(e,l,{at:p})}}},t}(),tdt=function(){function t(){this.title=tt("tableModule.deleteRow"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M907.6736 586.5472L747.1104 425.984l163.84-163.84-78.6432-78.6432-163.84 163.84L507.904 186.7776 429.2608 262.144l163.84 163.84-167.1168 167.1168 78.6432 78.6432 167.1168-167.1168 160.5632 160.5632 75.3664-78.6432zM0 917.504V0h1048.576v917.504H0z m983.04-327.68h-22.9376l-65.536-65.536H983.04V327.68h-91.7504l65.536-65.536h26.2144V65.536H65.536v196.608h317.8496l65.536 65.536H65.536v196.608h380.1088l-65.536 65.536H65.536v196.608H983.04v-196.608z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){var n=e.selection;return n==null||!L.isCollapsed(n)||A.getSelectedNodeByType(e,"table-row")==null},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){var r=oo(D.nodes(e,{match:function(s){return A.checkNodeType(s,"table-row")},universal:!0}),1),o=oo(r[0],2),i=o[0],a=o[1],u=A.getParentNode(e,i);((u==null?void 0:u.children.length)||0)<=1?N.removeNodes(e,{mode:"highest"}):N.removeNodes(e,{at:a})}},t}(),hF={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},ew=WC("span").classList,gF=ew&&ew.constructor&&ew.constructor.prototype,edt=gF===Object.prototype?void 0:gF,ndt=km.forEach,rdt=function(t,e){var n=[].forEach;return!!n&&Ye(function(){n.call(null,function(){throw 1},1)})}(),nw=rdt?[].forEach:function(t){return ndt(this,t,arguments.length>1?arguments[1]:void 0)},qR=function(t){if(t&&t.forEach!==nw)try{tc(t,"forEach",nw)}catch{t.forEach=nw}};for(var rw in hF)hF[rw]&&qR(Tt[rw]&&Tt[rw].prototype);qR(edt);var odt=function(){function t(){this.title=tt("tableModule.insertCol"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M327.68 193.3312v186.7776H140.9024v91.7504H327.68v186.7776h88.4736V471.8592h190.0544V380.1088H416.1536V193.3312zM0 917.504V0h1048.576v917.504H0zM655.36 65.536H65.536v720.896H655.36V65.536z m327.68 0h-262.144v196.608h262.144V65.536z m0 262.144h-262.144v196.608h262.144V327.68z m0 262.144h-262.144v196.608h262.144v-196.608z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){var n=e.selection;return n==null||!L.isCollapsed(n)||A.getSelectedNodeByType(e,"table")==null},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){var r=oo(D.nodes(e,{match:function(l){return A.checkNodeType(l,"table-cell")},universal:!0}),1),o=oo(r[0],2),i=o[0],a=o[1],u=A.getParentNode(e,i);if(u!=null){var s=A.getParentNode(e,u);s!=null&&(s.children||[]).forEach(function(l,c){ct.isElement(l)&&(l.children||[]).forEach(function(f){var p=A.findPath(e,f);if(p.length===a.length&&hR(p.slice(-1),a.slice(-1))){var d={type:"table-cell",children:[{text:""}]};c===0&&IR(s)&&(d.isHeader=!0),N.insertNodes(e,d,{at:p})}})})}}},t}(),idt=function(){function t(){this.title=tt("tableModule.deleteCol"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M327.68 510.976L393.216 445.44v-13.1072L327.68 366.7968V510.976z m327.68-78.4384l65.536-65.536V507.904L655.36 442.368v-9.8304z m393.216 484.9664V0H0v917.504h1048.576z m-65.536-131.072h-262.144v-52.4288l-13.1072 13.1072-52.4288-52.4288v91.7504H393.216v-91.7504l-52.4288 52.4288-13.1072-13.1072v52.4288H65.536V65.536H327.68v121.2416l36.0448-36.0448 29.4912 29.4912V62.2592h262.144V180.224l49.152-49.152 16.384 16.384V62.2592h262.144V786.432z m-294.912-108.1344l-160.5632-160.5632-167.1168 167.1168-78.6432-78.6432 167.1168-167.1168L288.3584 278.528l78.6432-78.6432 160.5632 160.5632 163.84-163.84 78.6432 78.6432-163.84 163.84 160.5632 160.5632-78.6432 78.6432z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){var n=e.selection;return n==null||!L.isCollapsed(n)||A.getSelectedNodeByType(e,"table-cell")==null},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){var r=oo(D.nodes(e,{match:function(c){return A.checkNodeType(c,"table-cell")},universal:!0}),1),o=oo(r[0],2),i=o[0],a=o[1],u=A.getParentNode(e,i),s=(u==null?void 0:u.children.length)||0;if(!u||s<=1)N.removeNodes(e,{mode:"highest"});else{var l=A.getParentNode(e,u);l!=null&&(l.children||[]).forEach(function(c){ct.isElement(c)&&(c.children||[]).forEach(function(f){var p=A.findPath(e,f);p.length===a.length&&hR(p.slice(-1),a.slice(-1))&&N.removeNodes(e,{at:p})})})}}},t}(),adt=function(){function t(){this.title=tt("tableModule.header"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M704 128l-64 0L384 128 320 128 0 128l0 256 0 64 0 192 0 64 0 256 320 0 64 0 256 0 64 0 320 0 0-256 0-64L1024 448 1024 384 1024 128 704 128zM640 640 384 640 384 448l256 0L640 640zM64 448l256 0 0 192L64 640 64 448zM320 896 64 896l0-192 256 0L320 896zM640 896 384 896l0-192 256 0L640 896zM960 896l-256 0 0-192 256 0L960 896zM960 640l-256 0L704 448l256 0L960 640z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(e){var n=A.getSelectedNodeByType(e,"table");return n!=null&&IR(n)},t.prototype.isActive=function(e){return!!this.getValue(e)},t.prototype.isDisabled=function(e){var n=e.selection;return n==null||!L.isCollapsed(n)||A.getSelectedNodeByType(e,"table")==null},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){var r=!n,o=A.getSelectedNodeByType(e,"table");o!=null&&Bm(o).forEach(function(i){return N.setNodes(e,{isHeader:r},{at:A.findPath(e,i)})})}},t}(),udt=function(){function t(){this.title=tt("tableModule.widthAuto"),this.iconSvg='<svg viewBox="0 0 1228 1024"><path d="M862.514337 563.200461H404.581995v121.753478a13.311987 13.311987 0 0 1-6.655993 11.468789 10.23999 10.23999 0 0 1-12.083188-1.433599l-204.799795-179.199821a13.721586 13.721586 0 0 1 0-20.479979l204.799795-179.302221a10.23999 10.23999 0 0 1 12.185588-1.535998 13.209587 13.209587 0 0 1 6.553593 11.673588v115.097485h457.932342V319.693504a11.571188 11.571188 0 0 1 18.841582-10.239989l204.799795 179.19982a13.721586 13.721586 0 0 1 0 20.47998l-204.799795 179.199821a10.23999 10.23999 0 0 1-12.185588 1.535998 13.311987 13.311987 0 0 1-6.655994-11.571188V563.200461zM136.499064 14.951409v993.893406a15.257585 15.257585 0 0 1-15.155185 15.052785H15.155185A15.155185 15.155185 0 0 1 0 1008.844815V14.951409a15.257585 15.257585 0 0 1 15.155185-15.052785h106.086294a15.155185 15.155185 0 0 1 15.257585 15.155185zM1228.798771 14.951409v993.893406a15.257585 15.257585 0 0 1-15.155185 15.052785h-106.188693a15.155185 15.155185 0 0 1-15.155185-15.052785V14.951409a15.257585 15.257585 0 0 1 15.155185-15.052785h106.086293A15.155185 15.155185 0 0 1 1228.798771 15.053809z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(e){var n=A.getSelectedNodeByType(e,"table");return n!=null&&n.width==="100%"},t.prototype.isActive=function(e){return!!this.getValue(e)},t.prototype.isDisabled=function(e){var n=e.selection;return n==null||!L.isCollapsed(n)||A.getSelectedNodeByType(e,"table")==null},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){var r={width:n?"auto":"100%"};N.setNodes(e,r,{mode:"highest"})}},t}(),sdt={renderElems:[jft,Nft,Ift],elemsToHtml:[{type:"table",elemToHtml:function(t,e){var n=t.width;return'<table style="width: '+(n===void 0?"auto":n)+';"><tbody>'+e+"</tbody></table>"}},{type:"table-row",elemToHtml:function(t,e){return"<tr>"+e+"</tr>"}},{type:"table-cell",elemToHtml:function(t,e){var n=t,r=n.colSpan,o=r===void 0?1:r,i=n.rowSpan,a=i===void 0?1:i,u=n.isHeader,s=u!==void 0&&u,l=n.width,c=s?"th":"td";return"<"+c+' colSpan="'+o+'" rowSpan="'+a+'" width="'+(l===void 0?"auto":l)+'">'+e+"</"+c+">"}}],preParseHtml:[Lft],parseElemsHtml:[Kft,Yft,Xft],menus:[{key:"insertTable",factory:function(){return new Zft}},{key:"deleteTable",factory:function(){return new Jft}},{key:"insertTableRow",factory:function(){return new Qft}},{key:"deleteTableRow",factory:function(){return new tdt}},{key:"insertTableCol",factory:function(){return new odt}},{key:"deleteTableCol",factory:function(){return new idt}},{key:"tableHeader",factory:function(){return new adt}},{key:"tableFullWidth",factory:function(){return new udt}}],editorPlugin:function(t){var e=t.insertBreak,n=t.deleteBackward,r=t.deleteForward,o=t.normalizeNode,i=t.insertData,a=t.handleTab,u=t.selectAll,s=t;return s.insertBreak=function(){A.getSelectedNodeByType(s,"table")==null?e():s.insertText(`
  121. `)},s.deleteBackward=function(l){if(!tF(s)){var c=s.selection;if(c){var f=D.before(s,c);if(f){var p=eF(s,f),d=eF(s,c);if(p&&!d)return}}n(l)}},s.handleTab=function(){var l;if(A.getSelectedNodeByType(s,"table")){var c=D.above(t);A.checkNodeType(c[0],"table-cell")&&N.select(t,c[1]);var f=D.next(t);if(f)f[0]&&f[0].text&&(f=(l=D.above(t,{at:f[1]}))!==null&&l!==void 0?l:f),N.select(t,f[1]);else{var p=s.children||[],d=p.length;if(A.checkNodeType(p[d-1],"table")){var y=A.genEmptyParagraph();N.insertNodes(s,y,{at:[d]}),s.handleTab()}}}else a()},s.deleteForward=function(l){tF(s)||r(l)},s.normalizeNode=function(l){var c=oo(l,2),f=c[0],p=c[1];if(A.getNodeType(f)!=="table")return o([f,p]);if(A.isLastNode(s,f)){var d=A.genEmptyParagraph();N.insertNodes(s,d,{at:[p[0]+1]})}},s.insertData=function(l){if(A.getSelectedNodeByType(s,"table")!=null){var c=l.getData("text/plain");c===`
  122. `||/<img[^>]+>/.test(l.getData("text/html"))?i(l):D.insertText(s,c)}else i(l)},s.selectAll=function(){var l=s.selection;if(l!=null){var c=A.getSelectedNodeByType(s,"table-cell");if(c!=null){var f=l.anchor,p=l.focus;if(j.equals(f.path.slice(0,3),p.path.slice(0,3)))if(Q.string(c).length!==0){var d=A.findPath(s,c),y={anchor:D.start(s,d),focus:D.end(s,d)};s.select(y)}else u();else u()}else u()}else u()},s}};Yn("en",{videoModule:{delete:"Delete",uploadVideo:"Upload video",insertVideo:"Insert video",videoSrc:"Video source",videoSrcPlaceHolder:"Video file url, or third-party <iframe>",videoPoster:"Video poster",videoPosterPlaceHolder:"Poster image url",ok:"Ok",editSize:"Edit size",width:"Width",height:"Height"}}),Yn("zh-CN",{videoModule:{delete:"删除视频",uploadVideo:"上传视频",insertVideo:"插入视频",videoSrc:"视频地址",videoSrcPlaceHolder:"视频文件 url 或第三方 <iframe>",videoPoster:"视频封面",videoPosterPlaceHolder:"封面图片 url",ok:"确定",editSize:"修改尺寸",width:"宽度",height:"高度"}});/*! *****************************************************************************
  123. Copyright (c) Microsoft Corporation.
  124. Permission to use, copy, modify, and/or distribute this software for any
  125. purpose with or without fee is hereby granted.
  126. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  127. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  128. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  129. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  130. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  131. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  132. PERFORMANCE OF THIS SOFTWARE.
  133. ***************************************************************************** */var e1=function(){return e1=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},e1.apply(this,arguments)};function Fm(t,e,n,r){return new(n||(n=Promise))(function(o,i){function a(l){try{s(r.next(l))}catch(c){i(c)}}function u(l){try{s(r.throw(l))}catch(c){i(c)}}function s(l){var c;l.done?o(l.value):(c=l.value,c instanceof n?c:new n(function(f){f(c)})).then(a,u)}s((r=r.apply(t,e||[])).next())})}function _m(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function u(s){return function(l){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,r=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||c[0]!==6&&c[0]!==2)){a=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){a.label=c[1];break}if(c[0]===6&&a.label<o[1]){a.label=o[1],o=c;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(c);break}o[2]&&a.ops.pop(),a.trys.pop();continue}c=e.call(t,a)}catch(f){c=[6,f],r=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([s,l])}}}function Vu(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(e===void 0||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(u){o={error:u}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function ldt(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=function(o){var i=typeof Symbol=="function"&&Symbol.iterator,a=i&&o[i],u=0;if(a)return a.call(o);if(o&&typeof o.length=="number")return{next:function(){return o&&u>=o.length&&(o=void 0),{value:o&&o[u++],done:!o}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")}(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(o){e[o]=t[o]&&function(i){return new Promise(function(a,u){(function(s,l,c,f){Promise.resolve(f).then(function(p){s({value:p,done:c})},l)})(a,u,(i=t[o](i)).done,i.value)})}}}var vF=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function r8(t){var e={exports:{}};return t(e,e.exports),e.exports}var Ri,vg,S0=function(t){return t&&t.Math==Math&&t},rt=S0(typeof globalThis=="object"&&globalThis)||S0(typeof window=="object"&&window)||S0(typeof self=="object"&&self)||S0(typeof vF=="object"&&vF)||function(){return this}()||Function("return this")(),de=function(t){try{return!!t()}catch{return!0}},To=!de(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),_f=Function.prototype.call,le=_f.bind?_f.bind(_f):function(){return _f.apply(_f,arguments)},mF={}.propertyIsEnumerable,yF=Object.getOwnPropertyDescriptor,cdt={f:yF&&!mF.call({1:2},1)?function(t){var e=yF(this,t);return!!e&&e.enumerable}:mF},Tm=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},KR=Function.prototype,u3=KR.bind,s3=KR.call,fdt=u3&&u3.bind(s3),Ct=u3?function(t){return t&&fdt(s3,t)}:function(t){return t&&function(){return s3.apply(t,arguments)}},ddt=Ct({}.toString),pdt=Ct("".slice),Ao=function(t){return pdt(ddt(t),8,-1)},ow=rt.Object,hdt=Ct("".split),o8=de(function(){return!ow("z").propertyIsEnumerable(0)})?function(t){return Ao(t)=="String"?hdt(t,""):ow(t)}:ow,gdt=rt.TypeError,vh=function(t){if(t==null)throw gdt("Can't call method on "+t);return t},$a=function(t){return o8(vh(t))},oe=function(t){return typeof t=="function"},he=function(t){return typeof t=="object"?t!==null:oe(t)},vdt=function(t){return oe(t)?t:void 0},ss=function(t,e){return arguments.length<2?vdt(rt[t]):rt[t]&&rt[t][e]},gp=Ct({}.isPrototypeOf),xl=ss("navigator","userAgent")||"",bF=rt.process,wF=rt.Deno,EF=bF&&bF.versions||wF&&wF.version,DF=EF&&EF.v8;DF&&(vg=(Ri=DF.split("."))[0]>0&&Ri[0]<4?1:+(Ri[0]+Ri[1])),!vg&&xl&&(!(Ri=xl.match(/Edge\/(\d+)/))||Ri[1]>=74)&&(Ri=xl.match(/Chrome\/(\d+)/))&&(vg=+Ri[1]);var vp=vg,l3=!!Object.getOwnPropertySymbols&&!de(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&vp&&vp<41}),i8=l3&&!Symbol.sham&&typeof Symbol.iterator=="symbol",mdt=rt.Object,iw=i8?function(t){return typeof t=="symbol"}:function(t){var e=ss("Symbol");return oe(e)&&gp(e.prototype,mdt(t))},ydt=rt.String,n1=function(t){try{return ydt(t)}catch{return"Object"}},bdt=rt.TypeError,ja=function(t){if(oe(t))return t;throw bdt(n1(t)+" is not a function")},mp=function(t,e){var n=t[e];return n==null?void 0:ja(n)},wdt=rt.TypeError,Edt=Object.defineProperty,a8=function(t,e){try{Edt(rt,t,{value:e,configurable:!0,writable:!0})}catch{rt[t]=e}return e},va=rt["__core-js_shared__"]||a8("__core-js_shared__",{}),u8=r8(function(t){(t.exports=function(e,n){return va[e]||(va[e]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),Ddt=rt.Object,Pm=function(t){return Ddt(vh(t))},Cdt=Ct({}.hasOwnProperty),qe=Object.hasOwn||function(t,e){return Cdt(Pm(t),e)},xdt=0,Sdt=Math.random(),Adt=Ct(1 .toString),s8=function(t){return"Symbol("+(t===void 0?"":t)+")_"+Adt(++xdt+Sdt,36)},Tf=u8("wks"),Uu=rt.Symbol,CF=Uu&&Uu.for,Odt=i8?Uu:Uu&&Uu.withoutSetter||s8,Re=function(t){if(!qe(Tf,t)||!l3&&typeof Tf[t]!="string"){var e="Symbol."+t;l3&&qe(Uu,t)?Tf[t]=Uu[t]:Tf[t]=i8&&CF?CF(e):Odt(e)}return Tf[t]},kdt=rt.TypeError,Bdt=Re("toPrimitive"),l8=function(t){var e=function(n,r){if(!he(n)||iw(n))return n;var o,i=mp(n,Bdt);if(i){if(r===void 0&&(r="default"),o=le(i,n,r),!he(o)||iw(o))return o;throw kdt("Can't convert object to primitive value")}return r===void 0&&(r="number"),function(a,u){var s,l;if(u==="string"&&oe(s=a.toString)&&!he(l=le(s,a))||oe(s=a.valueOf)&&!he(l=le(s,a))||u!=="string"&&oe(s=a.toString)&&!he(l=le(s,a)))return l;throw wdt("Can't convert object to primitive value")}(n,r)}(t,"string");return iw(e)?e:e+""},c3=rt.document,Fdt=he(c3)&&he(c3.createElement),yp=function(t){return Fdt?c3.createElement(t):{}},YR=!To&&!de(function(){return Object.defineProperty(yp("div"),"a",{get:function(){return 7}}).a!=7}),xF=Object.getOwnPropertyDescriptor,c8={f:To?xF:function(t,e){if(t=$a(t),e=l8(e),YR)try{return xF(t,e)}catch{}if(qe(t,e))return Tm(!le(cdt.f,t,e),t[e])}},_dt=rt.String,Tdt=rt.TypeError,fn=function(t){if(he(t))return t;throw Tdt(_dt(t)+" is not an object")},Pdt=rt.TypeError,SF=Object.defineProperty,di={f:To?SF:function(t,e,n){if(fn(t),e=l8(e),fn(n),YR)try{return SF(t,e,n)}catch{}if("get"in n||"set"in n)throw Pdt("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},ma=To?function(t,e,n){return di.f(t,e,Tm(1,n))}:function(t,e,n){return t[e]=n,t},jdt=Ct(Function.toString);oe(va.inspectSource)||(va.inspectSource=function(t){return jdt(t)});var r1,Sd,o1,jm=va.inspectSource,AF=rt.WeakMap,XR=oe(AF)&&/native code/.test(jm(AF)),OF=u8("keys"),f8=function(t){return OF[t]||(OF[t]=s8(t))},Nm={},f3=rt.TypeError,Ndt=rt.WeakMap;if(XR||va.state){var au=va.state||(va.state=new Ndt),Idt=Ct(au.get),kF=Ct(au.has),Ldt=Ct(au.set);r1=function(t,e){if(kF(au,t))throw new f3("Object already initialized");return e.facade=t,Ldt(au,t,e),e},Sd=function(t){return Idt(au,t)||{}},o1=function(t){return kF(au,t)}}else{var Ys=f8("state");Nm[Ys]=!0,r1=function(t,e){if(qe(t,Ys))throw new f3("Object already initialized");return e.facade=t,ma(t,Ys,e),e},Sd=function(t){return qe(t,Ys)?t[Ys]:{}},o1=function(t){return qe(t,Ys)}}var dr={set:r1,get:Sd,has:o1,enforce:function(t){return o1(t)?Sd(t):r1(t,{})},getterFor:function(t){return function(e){var n;if(!he(e)||(n=Sd(e)).type!==t)throw f3("Incompatible receiver, "+t+" required");return n}}},ZR=Function.prototype,Rdt=To&&Object.getOwnPropertyDescriptor,aw=qe(ZR,"name"),Ac={EXISTS:aw,PROPER:aw&&(function(){}).name==="something",CONFIGURABLE:aw&&(!To||To&&Rdt(ZR,"name").configurable)},ar=r8(function(t){var e=Ac.CONFIGURABLE,n=dr.get,r=dr.enforce,o=String(String).split("String");(t.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,p=!!s&&!!s.noTargetGet,d=s&&s.name!==void 0?s.name:a;oe(u)&&(String(d).slice(0,7)==="Symbol("&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!qe(u,"name")||e&&u.name!==d)&&ma(u,"name",d),(l=r(u)).source||(l.source=o.join(typeof d=="string"?d:""))),i!==rt?(c?!p&&i[a]&&(f=!0):delete i[a],f?i[a]=u:ma(i,a,u)):f?i[a]=u:a8(a,u)})(Function.prototype,"toString",function(){return oe(this)&&n(this).source||jm(this)})}),Mdt=Math.ceil,zdt=Math.floor,Im=function(t){var e=+t;return e!=e||e===0?0:(e>0?zdt:Mdt)(e)},$dt=Math.max,Hdt=Math.min,bp=function(t,e){var n=Im(t);return n<0?$dt(n+e,0):Hdt(n,e)},Vdt=Math.min,JR=function(t){return t>0?Vdt(Im(t),9007199254740991):0},mh=function(t){return JR(t.length)},BF=function(t){return function(e,n,r){var o,i=$a(e),a=mh(i),u=bp(r,a);if(t&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===n)return t||u||0;return!t&&-1}},QR={includes:BF(!0),indexOf:BF(!1)},Udt=QR.indexOf,FF=Ct([].push),tM=function(t,e){var n,r=$a(t),o=0,i=[];for(n in r)!qe(Nm,n)&&qe(r,n)&&FF(i,n);for(;e.length>o;)qe(r,n=e[o++])&&(~Udt(i,n)||FF(i,n));return i},i1=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Wdt=i1.concat("length","prototype"),a1={f:Object.getOwnPropertyNames||function(t){return tM(t,Wdt)}},Gdt={f:Object.getOwnPropertySymbols},qdt=Ct([].concat),Kdt=ss("Reflect","ownKeys")||function(t){var e=a1.f(fn(t)),n=Gdt.f;return n?qdt(e,n(t)):e},Ydt=function(t,e){for(var n=Kdt(e),r=di.f,o=c8.f,i=0;i<n.length;i++){var a=n[i];qe(t,a)||r(t,a,o(e,a))}},Xdt=/#|\.prototype\./,yh=function(t,e){var n=Jdt[Zdt(t)];return n==tpt||n!=Qdt&&(oe(e)?de(e):!!e)},Zdt=yh.normalize=function(t){return String(t).replace(Xdt,".").toLowerCase()},Jdt=yh.data={},Qdt=yh.NATIVE="N",tpt=yh.POLYFILL="P",u1=yh,ept=c8.f,Vn=function(t,e){var n,r,o,i,a,u=t.target,s=t.global,l=t.stat;if(n=s?rt:l?rt[u]||a8(u,{}):(rt[u]||{}).prototype)for(r in e){if(i=e[r],o=t.noTargetGet?(a=ept(n,r))&&a.value:n[r],!u1(s?r:u+(l?".":"#")+r,t.forced)&&o!==void 0){if(typeof i==typeof o)continue;Ydt(i,o)}(t.sham||o&&o.sham)&&ma(i,"sham",!0),ar(n,r,i,t)}},eM={};eM[Re("toStringTag")]="z";var d8=String(eM)==="[object z]",npt=Re("toStringTag"),rpt=rt.Object,opt=Ao(function(){return arguments}())=="Arguments",Lm=d8?Ao:function(t){var e,n,r;return t===void 0?"Undefined":t===null?"Null":typeof(n=function(o,i){try{return o[i]}catch{}}(e=rpt(t),npt))=="string"?n:opt?Ao(e):(r=Ao(e))=="Object"&&oe(e.callee)?"Arguments":r},ipt=rt.String,Dr=function(t){if(Lm(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return ipt(t)},d3=`
  134. \v\f\r                 \u2028\u2029\uFEFF`,_F=Ct("".replace),s1="["+d3+"]",apt=RegExp("^"+s1+s1+"*"),upt=RegExp(s1+s1+"*$"),uw=function(t){return function(e){var n=Dr(vh(e));return 1&t&&(n=_F(n,apt,"")),2&t&&(n=_F(n,upt,"")),n}},spt={start:uw(1),end:uw(2),trim:uw(3)},lpt=Ac.PROPER,cpt=spt.trim;function TF(t){return t.length?t[0].tagName.toLowerCase():""}function nM(t,e,n){e===void 0&&(e="auto"),n===void 0&&(n="auto");var r=B(t);return r.attr("width",e),r.attr("height",n),r[0].outerHTML}Vn({target:"String",proto:!0,forced:de(function(){return!!d3.trim()||"​…᠎".trim()!=="​…᠎"||lpt&&d3.trim.name!=="trim"})},{trim:function(){return cpt(this)}}),Vn({global:!0},{globalThis:rt}),Pr&&(B.fn.append=Pr),Fo&&(B.fn.on=Fo),Sa&&(B.fn.focus=Sa),Tr&&(B.fn.attr=Tr),Bo&&(B.fn.val=Bo),xa&&(B.fn.html=xa),Ml&&(B.fn.parent=Ml),Il&&(B.fn.hasClass=Il),Vl&&(B.fn.empty=Vl);var A0,fpt={type:"video",renderElem:function(t,e,n){var r,o=t,i=o.src,a=i===void 0?"":i,u=o.poster,s=u===void 0?"":u,l=o.width,c=l===void 0?"auto":l,f=o.height,p=f===void 0?"auto":f,d=A.isNodeSelected(n,t);if(a.trim().indexOf("<iframe ")===0)r=bt("div",{className:"w-e-textarea-video-container","data-selected":d?"true":"",innerHTML:nM(a,c,p)});else{var y=bt("video",{poster:s,controls:!0},bt("source",{src:a,type:"video/mp4"}),`Sorry, your browser doesn't support embedded videos.
  135. 抱歉,浏览器不支持 video 视频`);c!=="auto"&&(y.data.width=c),p!=="auto"&&(y.data.height=p),r=bt("div",{className:"w-e-textarea-video-container","data-selected":d?"true":""},y)}return Ul("div",{props:{contentEditable:!1},on:{mousedown:function(g){return g.preventDefault()}}},r)}},dpt={type:"video",elemToHtml:function(t,e){var n=t,r=n.src,o=r===void 0?"":r,i=n.poster,a=i===void 0?"":i,u=n.width,s=u===void 0?"auto":u,l=n.height,c=l===void 0?"auto":l,f=`<div data-w-e-type="video" data-w-e-is-void>
  136. `;return o.trim().indexOf("<iframe ")===0?f+=nM(o,s,c):f+='<video poster="'+a+'" controls="true" width="'+s+'" height="'+c+'"><source src="'+o+'" type="video/mp4"/></video>',f+`
  137. </div>`}},ppt=Object.keys||function(t){return tM(t,i1)},hpt=To?Object.defineProperties:function(t,e){fn(t);for(var n,r=$a(e),o=ppt(e),i=o.length,a=0;i>a;)di.f(t,n=o[a++],r[n]);return t},p3=ss("document","documentElement"),rM=f8("IE_PROTO"),sw=function(){},oM=function(t){return"<script>"+t+"<\/script>"},PF=function(t){t.write(oM("")),t.close();var e=t.parentWindow.Object;return t=null,e},mg=function(){try{A0=new ActiveXObject("htmlfile")}catch{}var t,e;mg=typeof document<"u"?document.domain&&A0?PF(A0):((e=yp("iframe")).style.display="none",p3.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(oM("document.F=Object")),t.close(),t.F):PF(A0);for(var n=i1.length;n--;)delete mg.prototype[i1[n]];return mg()};Nm[rM]=!0;var p8=Object.create||function(t,e){var n;return t!==null?(sw.prototype=fn(t),n=new sw,sw.prototype=null,n[rM]=t):n=mg(),e===void 0?n:hpt(n,e)},h3=Re("unscopables"),g3=Array.prototype;g3[h3]==null&&di.f(g3,h3,{configurable:!0,value:p8(null)});var Ad=function(t){g3[h3][t]=!0},gpt=QR.includes;Vn({target:"Array",proto:!0},{includes:function(t){return gpt(this,t,arguments.length>1?arguments[1]:void 0)}}),Ad("includes");var vpt={selector:"iframe,video,p",preParseHtml:function(t){var e=B(t),n=e;if(TF(e)==="p"){var r=e.children();if(r.length===1){var o=r[0],i=o.tagName.toLowerCase();["iframe","video"].includes(i)&&(n=B(o))}}var a=TF(n);if(a!=="iframe"&&a!=="video"||n.parent().attr("data-w-e-type")==="video")return n[0];var u=B('<div data-w-e-type="video" data-w-e-is-void></div>');return u.append(n),u[0]}},jF=Ct(Ct.bind),wp=function(t,e){return ja(t),e===void 0?t:jF?jF(t,e):function(){return t.apply(e,arguments)}},l1=Array.isArray||function(t){return Ao(t)=="Array"},iM=function(){},mpt=[],aM=ss("Reflect","construct"),h8=/^\s*(?:class|function)\b/,ypt=Ct(h8.exec),bpt=!h8.exec(iM),Pf=function(t){if(!oe(t))return!1;try{return aM(iM,mpt,t),!0}catch{return!1}},g8=!aM||de(function(){var t;return Pf(Pf.call)||!Pf(Object)||!Pf(function(){t=!0})||t})?function(t){if(!oe(t))return!1;switch(Lm(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return bpt||!!ypt(h8,jm(t))}:Pf,wpt=Re("species"),NF=rt.Array,Ept=function(t,e){return new(function(n){var r;return l1(n)&&(r=n.constructor,(g8(r)&&(r===NF||l1(r.prototype))||he(r)&&(r=r[wpt])===null)&&(r=void 0)),r===void 0?NF:r}(t))(e===0?0:e)},IF=Ct([].push),Mi=function(t){var e=t==1,n=t==2,r=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var p,d,y=Pm(s),g=o8(y),v=wp(l,c),m=mh(g),h=0,b=f||Ept,w=e?b(s,m):n||a?b(s,0):void 0;m>h;h++)if((u||h in g)&&(d=v(p=g[h],h,y),t))if(e)w[h]=d;else if(d)switch(t){case 3:return!0;case 5:return p;case 6:return h;case 2:IF(w,p)}else switch(t){case 4:return!1;case 7:IF(w,p)}return i?-1:r||o?o:w}},v8={forEach:Mi(0),map:Mi(1),filter:Mi(2),some:Mi(3),every:Mi(4),find:Mi(5),findIndex:Mi(6),filterReject:Mi(7)},Dpt=v8.find,LF=!0;"find"in[]&&Array(1).find(function(){LF=!1}),Vn({target:"Array",proto:!0,forced:LF},{find:function(t){return Dpt(this,t,arguments.length>1?arguments[1]:void 0)}}),Ad("find");var Cpt=d8?{}.toString:function(){return"[object "+Lm(this)+"]"};function RF(t,e,n,r){return e===void 0&&(e=""),n===void 0&&(n="auto"),r===void 0&&(r="auto"),{type:"video",src:t,poster:e,width:n,height:r,children:[{text:""}]}}d8||ar(Object.prototype,"toString",Cpt,{unsafe:!0});var MF,lw,xpt={selector:'div[data-w-e-type="video"]',parseElemHtml:function(t,e,n){var r=B(t),o="",i="",a="auto",u="auto",s=r.find("iframe");if(s.length>0)return a=s.attr("width")||"auto",u=s.attr("height")||"auto",RF(o=s[0].outerHTML,i,a,u);var l=r.find("video");return(o=l.attr("src")||"")||l.length>0&&(o=l.find("source").attr("src")||""),a=l.attr("width")||"auto",u=l.attr("height")||"auto",RF(o,i=l.attr("poster")||"",a,u)}},uM=function(){var t=fn(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},m8=rt.RegExp,v3=de(function(){var t=m8("a","y");return t.lastIndex=2,t.exec("abcd")!=null}),Spt=v3||de(function(){return!m8("a","y").sticky}),Apt={BROKEN_CARET:v3||de(function(){var t=m8("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),MISSED_STICKY:Spt,UNSUPPORTED_Y:v3},Opt=rt.RegExp,kpt=de(function(){var t=Opt(".","s");return!(t.dotAll&&t.exec(`
  138. `)&&t.flags==="s")}),Bpt=rt.RegExp,Fpt=de(function(){var t=Bpt("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),_pt=dr.get,Tpt=u8("native-string-replace",String.prototype.replace),c1=RegExp.prototype.exec,m3=c1,Ppt=Ct("".charAt),jpt=Ct("".indexOf),Npt=Ct("".replace),cw=Ct("".slice),fw=(lw=/b*/g,le(c1,MF=/a/,"a"),le(c1,lw,"a"),MF.lastIndex!==0||lw.lastIndex!==0),zF=Apt.BROKEN_CARET,dw=/()??/.exec("")[1]!==void 0;(fw||dw||zF||kpt||Fpt)&&(m3=function(t){var e,n,r,o,i,a,u,s=this,l=_pt(s),c=Dr(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=le(m3,f,c),s.lastIndex=f.lastIndex,e;var p=l.groups,d=zF&&s.sticky,y=le(uM,s),g=s.source,v=0,m=c;if(d&&(y=Npt(y,"y",""),jpt(y,"g")===-1&&(y+="g"),m=cw(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&Ppt(c,s.lastIndex-1)!==`
  139. `)&&(g="(?: "+g+")",m=" "+m,v++),n=new RegExp("^(?:"+g+")",y)),dw&&(n=new RegExp("^"+g+"$(?!\\s)",y)),fw&&(r=s.lastIndex),o=le(c1,d?n:s,m),d?o?(o.input=cw(o.input,v),o[0]=cw(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:fw&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),dw&&o&&o.length>1&&le(Tpt,o[0],n,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&p)for(o.groups=a=p8(null),i=0;i<p.length;i++)a[(u=p[i])[0]]=o[u[1]];return o});var f1=m3;Vn({target:"RegExp",proto:!0,forced:/./.exec!==f1},{exec:f1});var y8=Function.prototype,$F=y8.apply,Ipt=y8.bind,HF=y8.call,sM=typeof Reflect=="object"&&Reflect.apply||(Ipt?HF.bind($F):function(){return HF.apply($F,arguments)}),VF=(Re("species"),RegExp.prototype),Lpt=Ct("".charAt),UF=Ct("".charCodeAt),Rpt=Ct("".slice),WF=function(t){return function(e,n){var r,o,i=Dr(vh(e)),a=Im(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=UF(i,a))<55296||r>56319||a+1===u||(o=UF(i,a+1))<56320||o>57343?t?Lpt(i,a):r:t?Rpt(i,a,a+2):o-56320+(r-55296<<10)+65536}},lM={codeAt:WF(!1),charAt:WF(!0)},Mpt=lM.charAt,zpt=function(t,e,n){return e+(n?Mpt(t,e).length:1)},$pt=Math.floor,pw=Ct("".charAt),Hpt=Ct("".replace),hw=Ct("".slice),Vpt=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Upt=/\$([$&'`]|\d{1,2})/g,Wpt=function(t,e,n,r,o,i){var a=n+t.length,u=r.length,s=Upt;return o!==void 0&&(o=Pm(o),s=Vpt),Hpt(i,s,function(l,c){var f;switch(pw(c,0)){case"$":return"$";case"&":return t;case"`":return hw(e,0,n);case"'":return hw(e,a);case"<":f=o[hw(c,1,-1)];break;default:var p=+c;if(p===0)return l;if(p>u){var d=$pt(p/10);return d===0?l:d<=u?r[d-1]===void 0?pw(c,1):r[d-1]+pw(c,1):l}f=r[p-1]}return f===void 0?"":f})},Gpt=rt.TypeError,qpt=function(t,e){var n=t.exec;if(oe(n)){var r=le(n,t,e);return r!==null&&fn(r),r}if(Ao(t)==="RegExp")return le(f1,t,e);throw Gpt("RegExp#exec called on incompatible receiver")},y3=Re("replace"),Kpt=Math.max,Ypt=Math.min,Xpt=Ct([].concat),gw=Ct([].push),GF=Ct("".indexOf),qF=Ct("".slice),Zpt="a".replace(/./,"$0")==="$0",KF=!!/./[y3]&&/./[y3]("a","$0")==="";function cM(t){return t===void 0&&(t="r"),t+"-"+wj()}(function(t,e,n,r){var o=Re(t),i=!de(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),a=i&&!de(function(){var l=!1,c=/a/;return c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||n){var u=Ct(/./[o]),s=function(l,c,f){var p=KF?"$":"$0";return[function(d,y){var g=vh(this),v=d==null?void 0:mp(d,y3);return v?le(v,d,g,y):le(c,Dr(g),d,y)},function(d,y){var g=fn(this),v=Dr(d);if(typeof y=="string"&&GF(y,p)===-1&&GF(y,"$<")===-1){var m=f(c,g,v,y);if(m.done)return m.value}var h=oe(y);h||(y=Dr(y));var b=g.global;if(b){var w=g.unicode;g.lastIndex=0}for(var E=[];;){var x=qpt(g,v);if(x===null||(gw(E,x),!b))break;Dr(x[0])===""&&(g.lastIndex=zpt(v,JR(g.lastIndex),w))}for(var C,O="",F=0,R=0;R<E.length;R++){for(var H=Dr((x=E[R])[0]),M=Kpt(Ypt(Im(x.index),v.length),0),K=[],U=1;U<x.length;U++)gw(K,(C=x[U])===void 0?C:String(C));var W=x.groups;if(h){var q=Xpt([H],K,M,v);W!==void 0&&gw(q,W);var nt=Dr(sM(y,void 0,q))}else nt=Wpt(H,v,M,K,W,y);M>=F&&(O+=qF(v,F,M)+nt,F=M+H.length)}return O+qF(v,F)}]}(0,""[t],function(l,c,f,p,d){var y=Ct(l),g=c.exec;return g===f1||g===VF.exec?i&&!d?{done:!0,value:u(c,f,p)}:{done:!0,value:y(f,c,p)}:{done:!1}});ar(String.prototype,t,s[0]),ar(VF,o,s[1])}})("replace",0,!!de(function(){var t=/./;return t.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(t,"$<a>")!=="7"})||!Zpt||KF);var d1=rt.Promise,p1=function(t,e,n){for(var r in e)ar(t,r,e[r],n);return t},Jpt=rt.String,Qpt=rt.TypeError,ec=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=Ct(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch{}return function(r,o){return fn(r),function(i){if(typeof i=="object"||oe(i))return i;throw Qpt("Can't set "+Jpt(i)+" as a prototype")}(o),e?t(r,o):r.__proto__=o,r}}():void 0),tht=di.f,YF=Re("toStringTag"),h1=function(t,e,n){t&&!qe(t=n?t:t.prototype,YF)&&tht(t,YF,{configurable:!0,value:e})},XF=Re("species"),eht=rt.TypeError,b8=function(t,e){if(gp(e,t))return t;throw eht("Incorrect invocation")},nc={},nht=Re("iterator"),rht=Array.prototype,oht=Re("iterator"),ZF=function(t){if(t!=null)return mp(t,oht)||mp(t,"@@iterator")||nc[Lm(t)]},iht=rt.TypeError,JF=function(t,e,n){var r,o;fn(t);try{if(!(r=mp(t,"return"))){if(e==="throw")throw n;return n}r=le(r,t)}catch(i){o=!0,r=i}if(e==="throw")throw n;if(o)throw r;return fn(r),n},aht=rt.TypeError,yg=function(t,e){this.stopped=t,this.result=e},QF=yg.prototype,g1=function(t,e,n){var r,o,i,a,u,s,l,c,f=n&&n.that,p=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_ITERATOR),y=!(!n||!n.INTERRUPTED),g=wp(e,f),v=function(h){return r&&JF(r,"normal",h),new yg(!0,h)},m=function(h){return p?(fn(h),y?g(h[0],h[1],v):g(h[0],h[1])):y?g(h,v):g(h)};if(d)r=t;else{if(!(o=ZF(t)))throw aht(n1(t)+" is not iterable");if((c=o)!==void 0&&(nc.Array===c||rht[nht]===c)){for(i=0,a=mh(t);a>i;i++)if((u=m(t[i]))&&gp(QF,u))return u;return new yg(!1)}r=function(h,b){var w=arguments.length<2?ZF(h):b;if(ja(w))return fn(le(w,h));throw iht(n1(h)+" is not iterable")}(t,o)}for(s=r.next;!(l=le(s,r)).done;){try{u=m(l.value)}catch(h){JF(r,"throw",h)}if(typeof u=="object"&&u&&gp(QF,u))return u}return new yg(!1)},fM=Re("iterator"),dM=!1;try{var uht=0,t_={next:function(){return{done:!!uht++}},return:function(){dM=!0}};t_[fM]=function(){return this},Array.from(t_,function(){throw 2})}catch{}var Ep,Xs,e_,vw,pM=function(t,e){if(!e&&!dM)return!1;var n=!1;try{var r={};r[fM]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch{}return n},sht=rt.TypeError,lht=Re("species"),hM=Ct([].slice),gM=/(?:ipad|iphone|ipod).*applewebkit/i.test(xl),ya=Ao(rt.process)=="process",b3=rt.setImmediate,w3=rt.clearImmediate,cht=rt.process,mw=rt.Dispatch,fht=rt.Function,n_=rt.MessageChannel,dht=rt.String,yw=0,Od={};try{Ep=rt.location}catch{}var w8=function(t){if(qe(Od,t)){var e=Od[t];delete Od[t],e()}},bw=function(t){return function(){w8(t)}},r_=function(t){w8(t.data)},o_=function(t){rt.postMessage(dht(t),Ep.protocol+"//"+Ep.host)};b3&&w3||(b3=function(t){var e=hM(arguments,1);return Od[++yw]=function(){sM(oe(t)?t:fht(t),void 0,e)},Xs(yw),yw},w3=function(t){delete Od[t]},ya?Xs=function(t){cht.nextTick(bw(t))}:mw&&mw.now?Xs=function(t){mw.now(bw(t))}:n_&&!gM?(vw=(e_=new n_).port2,e_.port1.onmessage=r_,Xs=wp(vw.postMessage,vw)):rt.addEventListener&&oe(rt.postMessage)&&!rt.importScripts&&Ep&&Ep.protocol!=="file:"&&!de(o_)?(Xs=o_,rt.addEventListener("message",r_,!1)):Xs="onreadystatechange"in yp("script")?function(t){p3.appendChild(yp("script")).onreadystatechange=function(){p3.removeChild(this),w8(t)}}:function(t){setTimeout(bw(t),0)});var jf,yu,kd,ll,ww,Ew,Dw,i_,vM={set:b3,clear:w3},pht=/ipad|iphone|ipod/i.test(xl)&&rt.Pebble!==void 0,hht=/web0s(?!.*chrome)/i.test(xl),ght=c8.f,Cw=vM.set,a_=rt.MutationObserver||rt.WebKitMutationObserver,u_=rt.document,s_=rt.process,O0=rt.Promise,l_=ght(rt,"queueMicrotask"),mM=l_&&l_.value;mM||(jf=function(){var t,e;for(ya&&(t=s_.domain)&&t.exit();yu;){e=yu.fn,yu=yu.next;try{e()}catch(n){throw yu?ll():kd=void 0,n}}kd=void 0,t&&t.enter()},gM||ya||hht||!a_||!u_?!pht&&O0&&O0.resolve?((Dw=O0.resolve(void 0)).constructor=O0,i_=wp(Dw.then,Dw),ll=function(){i_(jf)}):ya?ll=function(){s_.nextTick(jf)}:(Cw=wp(Cw,rt),ll=function(){Cw(jf)}):(ww=!0,Ew=u_.createTextNode(""),new a_(jf).observe(Ew,{characterData:!0}),ll=function(){Ew.data=ww=!ww}));var xw,c_,yM,f_,bM=mM||function(t){var e={fn:t,next:void 0};kd&&(kd.next=e),yu||(yu=e,ll()),kd=e},vht=function(t){var e,n;this.promise=new t(function(r,o){if(e!==void 0||n!==void 0)throw TypeError("Bad Promise constructor");e=r,n=o}),this.resolve=ja(e),this.reject=ja(n)},E8={f:function(t){return new vht(t)}},E3=function(t){try{return{error:!1,value:t()}}catch(e){return{error:!0,value:e}}},mht=typeof window=="object",wM=vM.set,yht=Re("species"),Jo="Promise",d_=dr.getterFor(Jo),bht=dr.set,wht=dr.getterFor(Jo),du=d1&&d1.prototype,Do=d1,Nf=du,EM=rt.TypeError,D3=rt.document,D8=rt.process,Sl=E8.f,Eht=Sl,Dht=!!(D3&&D3.createEvent&&rt.dispatchEvent),DM=oe(rt.PromiseRejectionEvent),CM=!1,Bd=u1(Jo,function(){var t=jm(Do),e=t!==String(Do);if(!e&&vp===66)return!0;if(vp>=51&&/native code/.test(t))return!1;var n=new Do(function(o){o(1)}),r=function(o){o(function(){},function(){})};return(n.constructor={})[yht]=r,!(CM=n.then(function(){})instanceof r)||!e&&mht&&!DM}),Cht=Bd||!pM(function(t){Do.all(t).catch(function(){})}),xM=function(t){var e;return!(!he(t)||!oe(e=t.then))&&e},C8=function(t,e){if(!t.notified){t.notified=!0;var n=t.reactions;bM(function(){for(var r=t.value,o=t.state==1,i=0;n.length>i;){var a,u,s,l=n[i++],c=o?l.ok:l.fail,f=l.resolve,p=l.reject,d=l.domain;try{c?(o||(t.rejection===2&&Sht(t),t.rejection=1),c===!0?a=r:(d&&d.enter(),a=c(r),d&&(d.exit(),s=!0)),a===l.promise?p(EM("Promise-chain cycle")):(u=xM(a))?le(u,a,f,p):f(a)):p(r)}catch(y){d&&!s&&d.exit(),p(y)}}t.reactions=[],t.notified=!1,e&&!t.rejection&&xht(t)})}},SM=function(t,e,n){var r,o;Dht?((r=D3.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),rt.dispatchEvent(r)):r={promise:e,reason:n},!DM&&(o=rt["on"+t])?o(r):t==="unhandledrejection"&&function(i,a){var u=rt.console;u&&u.error&&(arguments.length==1?u.error(i):u.error(i,a))}("Unhandled promise rejection",n)},xht=function(t){le(wM,rt,function(){var e,n=t.facade,r=t.value;if(p_(t)&&(e=E3(function(){ya?D8.emit("unhandledRejection",r,n):SM("unhandledrejection",n,r)}),t.rejection=ya||p_(t)?2:1,e.error))throw e.value})},p_=function(t){return t.rejection!==1&&!t.parent},Sht=function(t){le(wM,rt,function(){var e=t.facade;ya?D8.emit("rejectionHandled",e):SM("rejectionhandled",e,t.value)})},gl=function(t,e,n){return function(r){t(e,r,n)}},Al=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,C8(t,!0))},C3=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw EM("Promise can't be resolved itself");var r=xM(e);r?bM(function(){var o={done:!1};try{le(r,e,gl(C3,o,t),gl(Al,o,t))}catch(i){Al(o,i,t)}}):(t.value=e,t.state=1,C8(t,!1))}catch(o){Al({done:!1},o,t)}}};if(Bd&&(Nf=(Do=function(t){b8(this,Nf),ja(t),le(xw,this);var e=d_(this);try{t(gl(C3,e),gl(Al,e))}catch(n){Al(e,n)}}).prototype,(xw=function(t){bht(this,{type:Jo,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=p1(Nf,{then:function(t,e){var n=wht(this),r=n.reactions,o=Sl(function(i,a){var u,s=fn(i).constructor;return s===void 0||(u=fn(s)[lht])==null?a:function(l){if(g8(l))return l;throw sht(n1(l)+" is not a constructor")}(u)}(this,Do));return o.ok=!oe(t)||t,o.fail=oe(e)&&e,o.domain=ya?D8.domain:void 0,n.parent=!0,r[r.length]=o,n.state!=0&&C8(n,!1),o.promise},catch:function(t){return this.then(void 0,t)}}),c_=function(){var t=new xw,e=d_(t);this.promise=t,this.resolve=gl(C3,e),this.reject=gl(Al,e)},E8.f=Sl=function(t){return t===Do||t===yM?new c_(t):Eht(t)},oe(d1)&&du!==Object.prototype)){f_=du.then,CM||(ar(du,"then",function(t,e){var n=this;return new Do(function(r,o){le(f_,n,r,o)}).then(t,e)},{unsafe:!0}),ar(du,"catch",Nf.catch,{unsafe:!0}));try{delete du.constructor}catch{}ec&&ec(du,Nf)}function Dp(t,e,n){return n===void 0&&(n=""),Fm(this,void 0,void 0,function(){var r,o,i,a,u,s,l;return _m(this,function(c){switch(c.label){case 0:return e?(t.restoreSelection(),r=t.getMenuConfig("insertVideo"),o=r.onInsertedVideo,i=r.checkVideo,a=r.parseVideoSrc,[4,i(e,n)]):[2];case 1:return typeof(u=c.sent())=="string"?(t.alert(u,"error"),[2]):u==null?[2]:[4,a(e)];case 2:return(s=c.sent()).trim().indexOf("<iframe ")!==0&&(s=s.replace(/</g,"&lt;").replace(/>/g,"&gt;")),l={type:"video",src:s,poster:n,children:[{text:""}]},Promise.resolve().then(function(){N.insertNodes(t,l)}),o(l),[2]}})})}function Sw(){return cM("w-e-insert-video")}Vn({global:!0,wrap:!0,forced:Bd},{Promise:Do}),h1(Do,Jo,!1),function(t){var e=ss("Promise"),n=di.f;To&&e&&!e[XF]&&n(e,XF,{configurable:!0,get:function(){return this}})}(),yM=ss(Jo),Vn({target:Jo,stat:!0,forced:Bd},{reject:function(t){var e=Sl(this);return le(e.reject,void 0,t),e.promise}}),Vn({target:Jo,stat:!0,forced:Bd},{resolve:function(t){return function(e,n){if(fn(e),he(n)&&n.constructor===e)return n;var r=E8.f(e);return(0,r.resolve)(n),r.promise}(this,t)}}),Vn({target:Jo,stat:!0,forced:Cht},{all:function(t){var e=this,n=Sl(e),r=n.resolve,o=n.reject,i=E3(function(){var a=ja(e.resolve),u=[],s=0,l=1;g1(t,function(c){var f=s++,p=!1;l++,le(a,e,c).then(function(d){p||(p=!0,u[f]=d,--l||r(u))},o)}),--l||r(u)});return i.error&&o(i.value),n.promise},race:function(t){var e=this,n=Sl(e),r=n.reject,o=E3(function(){var i=ja(e.resolve);g1(t,function(a){le(i,e,a).then(n.resolve,r)})});return o.error&&r(o.value),n.promise}});var Aht=function(){function t(){this.title=tt("videoModule.insertVideo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M981.184 160.096C837.568 139.456 678.848 128 512 128S186.432 139.456 42.816 160.096C15.296 267.808 0 386.848 0 512s15.264 244.16 42.816 351.904C186.464 884.544 345.152 896 512 896s325.568-11.456 469.184-32.096C1008.704 756.192 1024 637.152 1024 512s-15.264-244.16-42.816-351.904zM384 704V320l320 192-320 192z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.srcInputId=Sw(),this.posterInputId=Sw(),this.buttonId=Sw()}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,n){},t.prototype.isDisabled=function(e){var n=e.selection;return n==null||!L.isCollapsed(n)||!!A.getSelectedElems(e).some(function(r){var o=A.getNodeType(r);return o==="pre"||o==="list-item"||!!e.isVoid(r)})},t.prototype.getModalPositionNode=function(e){return null},t.prototype.getModalContentElem=function(e){var n=this,r=this,o=r.srcInputId,i=r.posterInputId,a=r.buttonId,u=Vu(or(tt("videoModule.videoSrc"),o,tt("videoModule.videoSrcPlaceHolder")),2),s=u[0],l=u[1],c=Vu(or(tt("videoModule.videoPoster"),i,tt("videoModule.videoPosterPlaceHolder")),2),f=c[0],p=c[1],d=B(l),y=B(p),g=Vu(vc(a,tt("videoModule.ok")),1)[0];if(this.$content==null){var v=B("<div></div>");v.on("click","#"+a,function(h){return Fm(n,void 0,void 0,function(){var b,w;return _m(this,function(E){switch(E.label){case 0:return h.preventDefault(),b=v.find("#"+o).val().trim(),w=v.find("#"+i).val().trim(),[4,Dp(e,b,w)];case 1:return E.sent(),e.hidePanelOrModal(),[2]}})})}),this.$content=v}var m=this.$content;return m.empty(),m.append(s),m.append(f),m.append(g),d.val(""),y.val(""),setTimeout(function(){d.focus()}),m[0]},t}(),Oht=Ct([].join),kht=o8!=Object,Bht=function(t,e){var n=[].join;return!!n&&de(function(){n.call(null,",",1)})}();Vn({target:"Array",proto:!0,forced:kht||!Bht},{join:function(t){return Oht($a(this),t===void 0?",":t)}});var Wu,h_,g_,Fht=!de(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),v_=f8("IE_PROTO"),x3=rt.Object,_ht=x3.prototype,v1=Fht?x3.getPrototypeOf:function(t){var e=Pm(t);if(qe(e,v_))return e[v_];var n=e.constructor;return oe(n)&&e instanceof n?n.prototype:e instanceof x3?_ht:null},S3=Re("iterator"),AM=!1;[].keys&&("next"in(g_=[].keys())?(h_=v1(v1(g_)))!==Object.prototype&&(Wu=h_):AM=!0);var Tht=Wu==null||de(function(){var t={};return Wu[S3].call(t)!==t});Tht&&(Wu={}),oe(Wu[S3])||ar(Wu,S3,function(){return this});var x8={IteratorPrototype:Wu,BUGGY_SAFARI_ITERATORS:AM},Pht=x8.IteratorPrototype,jht=function(){return this},Nht=Ac.PROPER,Iht=Ac.CONFIGURABLE,m_=x8.IteratorPrototype,k0=x8.BUGGY_SAFARI_ITERATORS,If=Re("iterator"),Lht=function(){return this},OM=function(t,e,n,r,o,i,a){(function(m,h,b,w){var E=h+" Iterator";m.prototype=p8(Pht,{next:Tm(1,b)}),h1(m,E,!1),nc[E]=jht})(n,e,r);var u,s,l,c=function(m){if(m===o&&g)return g;if(!k0&&m in d)return d[m];switch(m){case"keys":case"values":case"entries":return function(){return new n(this,m)}}return function(){return new n(this)}},f=e+" Iterator",p=!1,d=t.prototype,y=d[If]||d["@@iterator"]||o&&d[o],g=!k0&&y||c(o),v=e=="Array"&&d.entries||y;if(v&&(u=v1(v.call(new t)))!==Object.prototype&&u.next&&(v1(u)!==m_&&(ec?ec(u,m_):oe(u[If])||ar(u,If,Lht)),h1(u,f,!0)),Nht&&o=="values"&&y&&y.name!=="values"&&(Iht?ma(d,"name","values"):(p=!0,g=function(){return le(y,this)})),o)if(s={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(l in s)(k0||p||!(l in d))&&ar(d,l,s[l]);else Vn({target:e,proto:!0,forced:k0||p},s);return d[If]!==g&&ar(d,If,g,{name:o}),nc[e]=g,s},Rht=dr.set,Mht=dr.getterFor("Array Iterator"),ad=OM(Array,"Array",function(t,e){Rht(this,{type:"Array Iterator",target:$a(t),index:0,kind:e})},function(){var t=Mht(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}},"values");nc.Arguments=nc.Array,Ad("keys"),Ad("values"),Ad("entries");var zht=lM.charAt,$ht=dr.set,Hht=dr.getterFor("String Iterator");OM(String,"String",function(t){$ht(this,{type:"String Iterator",string:Dr(t),index:0})},function(){var t,e=Hht(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=zht(n,r),e.index+=t.length,{value:t,done:!1})});var kM=function(t,e,n){var r=l8(e);r in t?di.f(t,r,Tm(0,n)):t[r]=n},Vht=rt.Array,Uht=Math.max,y_=a1.f,b_=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Wht={f:function(t){return b_&&Ao(t)=="Window"?function(e){try{return y_(e)}catch{return function(r,o,i){for(var a=mh(r),u=bp(void 0,a),s=bp(a,a),l=Vht(Uht(s-u,0)),c=0;u<s;u++,c++)kM(l,c,r[u]);return l.length=c,l}(b_)}}(t):y_($a(t))}},w_=de(function(){if(typeof ArrayBuffer=="function"){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}),B0=Object.isExtensible,Cu=de(function(){B0(1)})||w_?function(t){return!!he(t)&&(!w_||Ao(t)!="ArrayBuffer")&&(!B0||B0(t))}:B0,Ght=!de(function(){return Object.isExtensible(Object.preventExtensions({}))}),S8=r8(function(t){var e=di.f,n=!1,r=s8("meta"),o=0,i=function(u){e(u,r,{value:{objectID:"O"+o++,weakData:{}}})},a=t.exports={enable:function(){a.enable=function(){},n=!0;var u=a1.f,s=Ct([].splice),l={};l[r]=1,u(l).length&&(a1.f=function(c){for(var f=u(c),p=0,d=f.length;p<d;p++)if(f[p]===r){s(f,p,1);break}return f},Vn({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Wht.f}))},fastKey:function(u,s){if(!he(u))return typeof u=="symbol"?u:(typeof u=="string"?"S":"P")+u;if(!qe(u,r)){if(!Cu(u))return"F";if(!s)return"E";i(u)}return u[r].objectID},getWeakData:function(u,s){if(!qe(u,r)){if(!Cu(u))return!0;if(!s)return!1;i(u)}return u[r].weakData},onFreeze:function(u){return Ght&&n&&Cu(u)&&!qe(u,r)&&i(u),u}};Nm[r]=!0}),F0=S8.getWeakData,qht=dr.set,Kht=dr.getterFor,Yht=v8.find,Xht=v8.findIndex,Zht=Ct([].splice),Jht=0,_0=function(t){return t.frozen||(t.frozen=new BM)},BM=function(){this.entries=[]},Aw=function(t,e){return Yht(t.entries,function(n){return n[0]===e})};BM.prototype={get:function(t){var e=Aw(this,t);if(e)return e[1]},has:function(t){return!!Aw(this,t)},set:function(t,e){var n=Aw(this,t);n?n[1]=e:this.entries.push([t,e])},delete:function(t){var e=Xht(this.entries,function(n){return n[0]===t});return~e&&Zht(this.entries,e,1),!!~e}};var Lf,FM={getConstructor:function(t,e,n,r){var o=t(function(s,l){b8(s,i),qht(s,{type:e,id:Jht++,frozen:void 0}),l!=null&&g1(l,s[r],{that:s,AS_ENTRIES:n})}),i=o.prototype,a=Kht(e),u=function(s,l,c){var f=a(s),p=F0(fn(l),!0);return p===!0?_0(f).set(l,c):p[f.id]=c,s};return p1(i,{delete:function(s){var l=a(this);if(!he(s))return!1;var c=F0(s);return c===!0?_0(l).delete(s):c&&qe(c,l.id)&&delete c[l.id]},has:function(s){var l=a(this);if(!he(s))return!1;var c=F0(s);return c===!0?_0(l).has(s):c&&qe(c,l.id)}}),p1(i,n?{get:function(s){var l=a(this);if(he(s)){var c=F0(s);return c===!0?_0(l).get(s):c?c[l.id]:void 0}},set:function(s,l){return u(this,s,l)}}:{add:function(s){return u(this,s,!0)}}),o}},T0=dr.enforce,Qht=!rt.ActiveXObject&&"ActiveXObject"in rt,_M=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},t0t=function(t,e,n){var r=t.indexOf("Map")!==-1,o=t.indexOf("Weak")!==-1,i=r?"set":"add",a=rt[t],u=a&&a.prototype,s=a,l={},c=function(v){var m=Ct(u[v]);ar(u,v,v=="add"?function(h){return m(this,h===0?0:h),this}:v=="delete"?function(h){return!(o&&!he(h))&&m(this,h===0?0:h)}:v=="get"?function(h){return o&&!he(h)?void 0:m(this,h===0?0:h)}:v=="has"?function(h){return!(o&&!he(h))&&m(this,h===0?0:h)}:function(h,b){return m(this,h===0?0:h,b),this})};if(u1(t,!oe(a)||!(o||u.forEach&&!de(function(){new a().entries().next()}))))s=n.getConstructor(e,t,r,i),S8.enable();else if(u1(t,!0)){var f=new s,p=f[i](o?{}:-0,1)!=f,d=de(function(){f.has(1)}),y=pM(function(v){new a(v)}),g=!o&&de(function(){for(var v=new a,m=5;m--;)v[i](m,m);return!v.has(-0)});y||((s=e(function(v,m){b8(v,u);var h=function(b,w,E){var x,C;return ec&&oe(x=w.constructor)&&x!==E&&he(C=x.prototype)&&C!==E.prototype&&ec(b,C),b}(new a,v,s);return m!=null&&g1(m,h[i],{that:h,AS_ENTRIES:r}),h})).prototype=u,u.constructor=s),(d||g)&&(c("delete"),c("has"),r&&c("get")),(g||p)&&c(i),o&&u.clear&&delete u.clear}return l[t]=s,Vn({global:!0,forced:s!=a},l),h1(s,t),o||n.setStrong(s,t,r),s}("WeakMap",_M,FM);if(XR&&Qht){Lf=FM.getConstructor(_M,"WeakMap",!0),S8.enable();var Rf=t0t.prototype,E_=Ct(Rf.delete),P0=Ct(Rf.has),D_=Ct(Rf.get),C_=Ct(Rf.set);p1(Rf,{delete:function(t){if(he(t)&&!Cu(t)){var e=T0(this);return e.frozen||(e.frozen=new Lf),E_(this,t)||e.frozen.delete(t)}return E_(this,t)},has:function(t){if(he(t)&&!Cu(t)){var e=T0(this);return e.frozen||(e.frozen=new Lf),P0(this,t)||e.frozen.has(t)}return P0(this,t)},get:function(t){if(he(t)&&!Cu(t)){var e=T0(this);return e.frozen||(e.frozen=new Lf),P0(this,t)?D_(this,t):e.frozen.get(t)}return D_(this,t)},set:function(t,e){if(he(t)&&!Cu(t)){var n=T0(this);n.frozen||(n.frozen=new Lf),P0(this,t)?C_(this,t,e):n.frozen.set(t,e)}else C_(this,t,e);return this}})}var TM={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Ow=yp("span").classList,x_=Ow&&Ow.constructor&&Ow.constructor.prototype,e0t=x_===Object.prototype?void 0:x_,kw=Re("iterator"),S_=Re("toStringTag"),Bw=ad.values,PM=function(t,e){if(t){if(t[kw]!==Bw)try{ma(t,kw,Bw)}catch{t[kw]=Bw}if(t[S_]||ma(t,S_,e),TM[e]){for(var n in ad)if(t[n]!==ad[n])try{ma(t,n,ad[n])}catch{t[n]=ad[n]}}}};for(var Fw in TM)PM(rt[Fw]&&rt[Fw].prototype,Fw);PM(e0t,"DOMTokenList");var n0t=Ac.EXISTS,r0t=di.f,jM=Function.prototype,o0t=Ct(jM.toString),NM=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,i0t=Ct(NM.exec);To&&!n0t&&r0t(jM,"name",{configurable:!0,get:function(){try{return i0t(NM,o0t(this))[1]}catch{return""}}});var a0t=Re("species"),u0t=vp>=51||!de(function(){var t=[];return(t.constructor={})[a0t]=function(){return{foo:1}},t.slice(Boolean).foo!==1}),s0t=Re("species"),_w=rt.Array,l0t=Math.max;function IM(t){return t.getMenuConfig("uploadVideo")}Vn({target:"Array",proto:!0,forced:!u0t},{slice:function(t,e){var n,r,o,i=$a(this),a=mh(i),u=bp(t,a),s=bp(e===void 0?a:e,a);if(l1(i)&&(n=i.constructor,(g8(n)&&(n===_w||l1(n.prototype))||he(n)&&(n=n[s0t])===null)&&(n=void 0),n===_w||n===void 0))return hM(i,u,s);for(r=new(n===void 0?_w:n)(l0t(s-u,0)),o=0;u<s;u++,o++)u in i&&kM(r,o,i[u]);return r.length=o,r}});var A_=new WeakMap;function c0t(t,e){return Fm(this,void 0,void 0,function(){var n,r,o,i;return _m(this,function(a){switch(a.label){case 0:return n=function(u){var s=A_.get(u);if(s!=null)return s;var l=IM(u),c=l.onSuccess,f=l.onProgress,p=l.onFailed,d=l.customInsert,y=l.onError;return s=sI(e1(e1({},l),{onProgress:function(g){u.showProgressBar(g),f&&f(g)},onSuccess:function(g,v){if(d)return d(v,function(O,F){return Dp(u,O,F)}),void c(g,v);var m=v.errno,h=m===void 0?1:m,b=v.data,w=b===void 0?{}:b;if(h===0){var E=w.url,x=E===void 0?"":E,C=w.poster;Dp(u,x,C===void 0?"":C),c(g,v)}else p(g,v)},onError:function(g,v,m){y(g,v,m)}})),A_.set(u,s),s}(t),r=e.name,o=e.type,i=e.size,n.addFile({name:r,type:o,size:i,data:e}),[4,n.upload()];case 1:return a.sent(),[2]}})})}var f0t=function(){function t(){this.title=tt("videoModule.uploadVideo"),this.iconSvg='<svg viewBox="0 0 1056 1024"><path d="M805.902261 521.819882a251.441452 251.441452 0 0 0-251.011972 246.600033 251.051015 251.051015 0 1 0 502.023944 8.823877 253.237463 253.237463 0 0 0-251.011972-255.42391z m59.463561 240.001647v129.898403h-116.701631v-129.898403h-44.041298l101.279368-103.504859 101.279368 103.504859z" p-id="6802"></path><path d="M788.254507 0.000781H99.094092A98.663439 98.663439 0 0 0 0.001171 99.093701v590.067495a98.663439 98.663439 0 0 0 99.092921 99.092921h411.7549a266.434235 266.434235 0 0 1-2.186448-41.815807 275.843767 275.843767 0 0 1 275.180024-270.729042 270.650955 270.650955 0 0 1 103.504859 19.834201V99.093701A101.51363 101.51363 0 0 0 788.254507 0.000781zM295.054441 640.747004V147.507894l394.146189 246.600033z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,n){var r=this.getMenuConfig(e),o=r.allowedFileTypes,i=o===void 0?[]:o,a=r.customBrowseAndUpload;if(a)a(function(c,f){return Dp(e,c,f)});else{var u="";i.length>0&&(u='accept="'+i.join(", ")+'"');var s=B("body"),l=B('<input type="file" '+u+" multiple/>");l.hide(),s.append(l),l.click(),l.on("change",function(){var c=l[0].files;(function(f,p){var d,y;Fm(this,void 0,void 0,function(){var g,v,m,h,b,w;return _m(this,function(E){switch(E.label){case 0:if(p==null)return[2];g=Array.prototype.slice.call(p),v=IM(f).customUpload,E.label=1;case 1:E.trys.push([1,9,10,15]),m=ldt(g),E.label=2;case 2:return[4,m.next()];case 3:return(h=E.sent()).done?[3,8]:(b=h.value,v?[4,v(b,function(x,C){return Dp(f,x,C)})]:[3,5]);case 4:return E.sent(),[3,7];case 5:return[4,c0t(f,b)];case 6:E.sent(),E.label=7;case 7:return[3,2];case 8:return[3,15];case 9:return w=E.sent(),d={error:w},[3,15];case 10:return E.trys.push([10,,13,14]),h&&!h.done&&(y=m.return)?[4,y.call(m)]:[3,12];case 11:E.sent(),E.label=12;case 12:return[3,14];case 13:if(d)throw d.error;return[7];case 14:return[7];case 15:return[2]}})})})(e,c)})}},t.prototype.isDisabled=function(e){var n=e.selection;return n==null||!L.isCollapsed(n)||!!A.getSelectedElems(e).some(function(r){var o=A.getNodeType(r);return o==="pre"||o==="list-item"||!!e.isVoid(r)})},t.prototype.getMenuConfig=function(e){return e.getMenuConfig("uploadVideo")},t}(),d0t=Ac.PROPER,A3=RegExp.prototype,LM=A3.toString,p0t=Ct(uM),h0t=de(function(){return LM.call({source:"a",flags:"b"})!="/a/b"}),g0t=d0t&&LM.name!="toString";function Tw(){return cM("w-e-insert-video")}(h0t||g0t)&&ar(RegExp.prototype,"toString",function(){var t=fn(this),e=Dr(t.source),n=t.flags;return"/"+e+"/"+Dr(n===void 0&&gp(A3,t)&&!("flags"in A3)?p0t(t):n)},{unsafe:!0});var v0t=function(){function t(){this.title=tt("videoModule.editSize"),this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.widthInputId=Tw(),this.heightInputId=Tw(),this.buttonId=Tw()}return t.prototype.getSelectedVideoNode=function(e){return A.getSelectedNodeByType(e,"video")},t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,n){},t.prototype.isDisabled=function(e){return e.selection==null||this.getSelectedVideoNode(e)==null},t.prototype.getModalPositionNode=function(e){return this.getSelectedVideoNode(e)},t.prototype.getModalContentElem=function(e){var n=this,r=n.widthInputId,o=n.heightInputId,i=n.buttonId,a=Vu(or(tt("videoModule.width"),r,"auto"),2),u=a[0],s=B(a[1]),l=Vu(or(tt("videoModule.height"),o,"auto"),2),c=l[0],f=B(l[1]),p=Vu(vc(i,tt("videoModule.ok")),1)[0];if(this.$content==null){var d=B("<div></div>");d.on("click","#"+i,function(w){w.preventDefault();var E=d.find("#"+r).val().trim(),x=d.find("#"+o).val().trim(),C=parseInt(E),O=parseInt(x),F=C?C.toString():"auto",R=O?O.toString():"auto";e.restoreSelection(),N.setNodes(e,{width:F,height:R},{match:function(H){return A.checkNodeType(H,"video")}}),e.hidePanelOrModal()}),this.$content=d}var y=this.$content;y.empty(),y.append(u),y.append(c),y.append(p);var g=this.getSelectedVideoNode(e);if(g==null)return y[0];var v=g.width,m=v===void 0?"auto":v,h=g.height,b=h===void 0?"auto":h;return s.val(m),f.val(b),setTimeout(function(){s.focus()}),y[0]},t}(),m0t={renderElems:[fpt],elemsToHtml:[dpt],preParseHtml:[vpt],parseElemsHtml:[xpt],menus:[{key:"insertVideo",factory:function(){return new Aht},config:{onInsertedVideo:function(t){},checkVideo:function(t,e){return!0},parseVideoSrc:function(t){return t}}},{key:"uploadVideo",factory:function(){return new f0t},config:{server:"",fieldName:"wangeditor-uploaded-video",maxFileSize:10485760,maxNumberOfFiles:5,allowedFileTypes:["video/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:3e4,onBeforeUpload:function(t){return t},onProgress:function(t){},onSuccess:function(t,e){},onFailed:function(t,e){console.error("'"+t.name+"' upload failed",e)},onError:function(t,e,n){console.error("'"+t.name+" upload error",e,n)}}},{key:"editVideoSize",factory:function(){return new v0t}}],editorPlugin:function(t){var e=t.isVoid,n=t.normalizeNode,r=t;return r.isVoid=function(o){return o.type==="video"||e(o)},r.normalizeNode=function(o){var i=Vu(o,2),a=i[0],u=i[1];return A.getNodeType(a)==="video"&&A.isLastNode(r,a)&&N.insertNodes(r,A.genEmptyParagraph(),{at:[u[0]+1]}),n([a,u])},r}};Yn("en",{uploadImgModule:{uploadImage:"Upload Image",uploadError:"{{fileName}} upload error"}}),Yn("zh-CN",{uploadImgModule:{uploadImage:"上传图片",uploadError:"{{fileName}} 上传出错"}});var O_=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function A8(t){var e={exports:{}};return t(e,e.exports),e.exports}var zi,bg,j0=function(t){return t&&t.Math==Math&&t},et=j0(typeof globalThis=="object"&&globalThis)||j0(typeof window=="object"&&window)||j0(typeof self=="object"&&self)||j0(typeof O_=="object"&&O_)||function(){return this}()||Function("return this")(),ve=function(t){try{return!!t()}catch{return!0}},Po=!ve(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Mf=Function.prototype.call,Jt=Mf.bind?Mf.bind(Mf):function(){return Mf.apply(Mf,arguments)},k_={}.propertyIsEnumerable,B_=Object.getOwnPropertyDescriptor,y0t={f:B_&&!k_.call({1:2},1)?function(t){var e=B_(this,t);return!!e&&e.enumerable}:k_},Rm=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},RM=Function.prototype,O3=RM.bind,k3=RM.call,b0t=O3&&O3.bind(k3),_t=O3?function(t){return t&&b0t(k3,t)}:function(t){return t&&function(){return k3.apply(t,arguments)}},w0t=_t({}.toString),E0t=_t("".slice),eo=function(t){return E0t(w0t(t),8,-1)},Pw=et.Object,D0t=_t("".split),O8=ve(function(){return!Pw("z").propertyIsEnumerable(0)})?function(t){return eo(t)=="String"?D0t(t,""):Pw(t)}:Pw,C0t=et.TypeError,Cp=function(t){if(t==null)throw C0t("Can't call method on "+t);return t},Ha=function(t){return O8(Cp(t))},ae=function(t){return typeof t=="function"},fe=function(t){return typeof t=="object"?t!==null:ae(t)},x0t=function(t){return ae(t)?t:void 0},ls=function(t,e){return arguments.length<2?x0t(et[t]):et[t]&&et[t][e]},xp=_t({}.isPrototypeOf),Ol=ls("navigator","userAgent")||"",F_=et.process,__=et.Deno,T_=F_&&F_.versions||__&&__.version,P_=T_&&T_.v8;P_&&(bg=(zi=P_.split("."))[0]>0&&zi[0]<4?1:+(zi[0]+zi[1])),!bg&&Ol&&(!(zi=Ol.match(/Edge\/(\d+)/))||zi[1]>=74)&&(zi=Ol.match(/Chrome\/(\d+)/))&&(bg=+zi[1]);var Sp=bg,B3=!!Object.getOwnPropertySymbols&&!ve(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&Sp&&Sp<41}),k8=B3&&!Symbol.sham&&typeof Symbol.iterator=="symbol",S0t=et.Object,jw=k8?function(t){return typeof t=="symbol"}:function(t){var e=ls("Symbol");return ae(e)&&xp(e.prototype,S0t(t))},A0t=et.String,m1=function(t){try{return A0t(t)}catch{return"Object"}},O0t=et.TypeError,Na=function(t){if(ae(t))return t;throw O0t(m1(t)+" is not a function")},Ap=function(t,e){var n=t[e];return n==null?void 0:Na(n)},k0t=et.TypeError,B0t=Object.defineProperty,B8=function(t,e){try{B0t(et,t,{value:e,configurable:!0,writable:!0})}catch{et[t]=e}return e},ba=et["__core-js_shared__"]||B8("__core-js_shared__",{}),F8=A8(function(t){(t.exports=function(e,n){return ba[e]||(ba[e]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),F0t=et.Object,_8=function(t){return F0t(Cp(t))},_0t=_t({}.hasOwnProperty),Ke=Object.hasOwn||function(t,e){return _0t(_8(t),e)},T0t=0,P0t=Math.random(),j0t=_t(1 .toString),T8=function(t){return"Symbol("+(t===void 0?"":t)+")_"+j0t(++T0t+P0t,36)},zf=F8("wks"),Gu=et.Symbol,j_=Gu&&Gu.for,N0t=k8?Gu:Gu&&Gu.withoutSetter||T8,Me=function(t){if(!Ke(zf,t)||!B3&&typeof zf[t]!="string"){var e="Symbol."+t;B3&&Ke(Gu,t)?zf[t]=Gu[t]:zf[t]=k8&&j_?j_(e):N0t(e)}return zf[t]},I0t=et.TypeError,L0t=Me("toPrimitive"),P8=function(t){var e=function(n,r){if(!fe(n)||jw(n))return n;var o,i=Ap(n,L0t);if(i){if(r===void 0&&(r="default"),o=Jt(i,n,r),!fe(o)||jw(o))return o;throw I0t("Can't convert object to primitive value")}return r===void 0&&(r="number"),function(a,u){var s,l;if(u==="string"&&ae(s=a.toString)&&!fe(l=Jt(s,a))||ae(s=a.valueOf)&&!fe(l=Jt(s,a))||u!=="string"&&ae(s=a.toString)&&!fe(l=Jt(s,a)))return l;throw k0t("Can't convert object to primitive value")}(n,r)}(t,"string");return jw(e)?e:e+""},F3=et.document,R0t=fe(F3)&&fe(F3.createElement),Op=function(t){return R0t?F3.createElement(t):{}},MM=!Po&&!ve(function(){return Object.defineProperty(Op("div"),"a",{get:function(){return 7}}).a!=7}),N_=Object.getOwnPropertyDescriptor,j8={f:Po?N_:function(t,e){if(t=Ha(t),e=P8(e),MM)try{return N_(t,e)}catch{}if(Ke(t,e))return Rm(!Jt(y0t.f,t,e),t[e])}},M0t=et.String,z0t=et.TypeError,dn=function(t){if(fe(t))return t;throw z0t(M0t(t)+" is not an object")},$0t=et.TypeError,I_=Object.defineProperty,pi={f:Po?I_:function(t,e,n){if(dn(t),e=P8(e),dn(n),MM)try{return I_(t,e,n)}catch{}if("get"in n||"set"in n)throw $0t("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},Oo=Po?function(t,e,n){return pi.f(t,e,Rm(1,n))}:function(t,e,n){return t[e]=n,t},H0t=_t(Function.toString);ae(ba.inspectSource)||(ba.inspectSource=function(t){return H0t(t)});var y1,Fd,b1,Mm=ba.inspectSource,L_=et.WeakMap,zM=ae(L_)&&/native code/.test(Mm(L_)),R_=F8("keys"),N8=function(t){return R_[t]||(R_[t]=T8(t))},zm={},_3=et.TypeError,V0t=et.WeakMap;if(zM||ba.state){var uu=ba.state||(ba.state=new V0t),U0t=_t(uu.get),M_=_t(uu.has),W0t=_t(uu.set);y1=function(t,e){if(M_(uu,t))throw new _3("Object already initialized");return e.facade=t,W0t(uu,t,e),e},Fd=function(t){return U0t(uu,t)||{}},b1=function(t){return M_(uu,t)}}else{var Zs=N8("state");zm[Zs]=!0,y1=function(t,e){if(Ke(t,Zs))throw new _3("Object already initialized");return e.facade=t,Oo(t,Zs,e),e},Fd=function(t){return Ke(t,Zs)?t[Zs]:{}},b1=function(t){return Ke(t,Zs)}}var pr={set:y1,get:Fd,has:b1,enforce:function(t){return b1(t)?Fd(t):y1(t,{})},getterFor:function(t){return function(e){var n;if(!fe(e)||(n=Fd(e)).type!==t)throw _3("Incompatible receiver, "+t+" required");return n}}},$M=Function.prototype,G0t=Po&&Object.getOwnPropertyDescriptor,Nw=Ke($M,"name"),bh={EXISTS:Nw,PROPER:Nw&&(function(){}).name==="something",CONFIGURABLE:Nw&&(!Po||Po&&G0t($M,"name").configurable)},ur=A8(function(t){var e=bh.CONFIGURABLE,n=pr.get,r=pr.enforce,o=String(String).split("String");(t.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,p=!!s&&!!s.noTargetGet,d=s&&s.name!==void 0?s.name:a;ae(u)&&(String(d).slice(0,7)==="Symbol("&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Ke(u,"name")||e&&u.name!==d)&&Oo(u,"name",d),(l=r(u)).source||(l.source=o.join(typeof d=="string"?d:""))),i!==et?(c?!p&&i[a]&&(f=!0):delete i[a],f?i[a]=u:Oo(i,a,u)):f?i[a]=u:B8(a,u)})(Function.prototype,"toString",function(){return ae(this)&&n(this).source||Mm(this)})}),q0t=Math.ceil,K0t=Math.floor,I8=function(t){var e=+t;return e!=e||e===0?0:(e>0?K0t:q0t)(e)},Y0t=Math.max,X0t=Math.min,kp=function(t,e){var n=I8(t);return n<0?Y0t(n+e,0):X0t(n,e)},Z0t=Math.min,HM=function(t){return t>0?Z0t(I8(t),9007199254740991):0},wh=function(t){return HM(t.length)},J0t=function(t){return function(e,n,r){var o,i=Ha(e),a=wh(i),u=kp(r,a);if(t&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===n)return t||u||0;return!t&&-1}},Q0t=J0t(!1),z_=_t([].push),VM=function(t,e){var n,r=Ha(t),o=0,i=[];for(n in r)!Ke(zm,n)&&Ke(r,n)&&z_(i,n);for(;e.length>o;)Ke(r,n=e[o++])&&(~Q0t(i,n)||z_(i,n));return i},w1=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],tgt=w1.concat("length","prototype"),E1={f:Object.getOwnPropertyNames||function(t){return VM(t,tgt)}},egt={f:Object.getOwnPropertySymbols},ngt=_t([].concat),rgt=ls("Reflect","ownKeys")||function(t){var e=E1.f(dn(t)),n=egt.f;return n?ngt(e,n(t)):e},ogt=function(t,e){for(var n=rgt(e),r=pi.f,o=j8.f,i=0;i<n.length;i++){var a=n[i];Ke(t,a)||r(t,a,o(e,a))}},igt=/#|\.prototype\./,Eh=function(t,e){var n=ugt[agt(t)];return n==lgt||n!=sgt&&(ae(e)?ve(e):!!e)},agt=Eh.normalize=function(t){return String(t).replace(igt,".").toLowerCase()},ugt=Eh.data={},sgt=Eh.NATIVE="N",lgt=Eh.POLYFILL="P",D1=Eh,cgt=j8.f,Co=function(t,e){var n,r,o,i,a,u=t.target,s=t.global,l=t.stat;if(n=s?et:l?et[u]||B8(u,{}):(et[u]||{}).prototype)for(r in e){if(i=e[r],o=t.noTargetGet?(a=cgt(n,r))&&a.value:n[r],!D1(s?r:u+(l?".":"#")+r,t.forced)&&o!==void 0){if(typeof i==typeof o)continue;ogt(i,o)}(t.sham||o&&o.sham)&&Oo(i,"sham",!0),ur(n,r,i,t)}},C1=Array.isArray||function(t){return eo(t)=="Array"},UM={};UM[Me("toStringTag")]="z";var L8=String(UM)==="[object z]",fgt=Me("toStringTag"),dgt=et.Object,pgt=eo(function(){return arguments}())=="Arguments",$m=L8?eo:function(t){var e,n,r;return t===void 0?"Undefined":t===null?"Null":typeof(n=function(o,i){try{return o[i]}catch{}}(e=dgt(t),fgt))=="string"?n:pgt?eo(e):(r=eo(e))=="Object"&&ae(e.callee)?"Arguments":r},WM=function(){},hgt=[],GM=ls("Reflect","construct"),R8=/^\s*(?:class|function)\b/,ggt=_t(R8.exec),vgt=!R8.exec(WM),$f=function(t){if(!ae(t))return!1;try{return GM(WM,hgt,t),!0}catch{return!1}},M8=!GM||ve(function(){var t;return $f($f.call)||!$f(Object)||!$f(function(){t=!0})||t})?function(t){if(!ae(t))return!1;switch($m(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return vgt||!!ggt(R8,Mm(t))}:$f,qM=function(t,e,n){var r=P8(e);r in t?pi.f(t,r,Rm(0,n)):t[r]=n},mgt=Me("species"),KM=_t([].slice),ygt=Sp>=51||!ve(function(){var t=[];return(t.constructor={})[mgt]=function(){return{foo:1}},t.slice(Boolean).foo!==1}),bgt=Me("species"),Iw=et.Array,wgt=Math.max;Co({target:"Array",proto:!0,forced:!ygt},{slice:function(t,e){var n,r,o,i=Ha(this),a=wh(i),u=kp(t,a),s=kp(e===void 0?a:e,a);if(C1(i)&&(n=i.constructor,(M8(n)&&(n===Iw||C1(n.prototype))||fe(n)&&(n=n[bgt])===null)&&(n=void 0),n===Iw||n===void 0))return KM(i,u,s);for(r=new(n===void 0?Iw:n)(wgt(s-u,0)),o=0;u<s;u++,o++)u in i&&qM(r,o,i[u]);return r.length=o,r}});var Egt=L8?{}.toString:function(){return"[object "+$m(this)+"]"};L8||ur(Object.prototype,"toString",Egt,{unsafe:!0});var N0,Dgt=et.String,wa=function(t){if($m(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Dgt(t)},YM=function(){var t=dn(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},z8=et.RegExp,T3=ve(function(){var t=z8("a","y");return t.lastIndex=2,t.exec("abcd")!=null}),Cgt=T3||ve(function(){return!z8("a","y").sticky}),XM={BROKEN_CARET:T3||ve(function(){var t=z8("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),MISSED_STICKY:Cgt,UNSUPPORTED_Y:T3},xgt=Object.keys||function(t){return VM(t,w1)},Sgt=Po?Object.defineProperties:function(t,e){dn(t);for(var n,r=Ha(e),o=xgt(e),i=o.length,a=0;i>a;)pi.f(t,n=o[a++],r[n]);return t},P3=ls("document","documentElement"),ZM=N8("IE_PROTO"),Lw=function(){},JM=function(t){return"<script>"+t+"<\/script>"},$_=function(t){t.write(JM("")),t.close();var e=t.parentWindow.Object;return t=null,e},wg=function(){try{N0=new ActiveXObject("htmlfile")}catch{}var t,e;wg=typeof document<"u"?document.domain&&N0?$_(N0):((e=Op("iframe")).style.display="none",P3.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(JM("document.F=Object")),t.close(),t.F):$_(N0);for(var n=w1.length;n--;)delete wg.prototype[w1[n]];return wg()};zm[ZM]=!0;var H_,Rw,$8=Object.create||function(t,e){var n;return t!==null?(Lw.prototype=dn(t),n=new Lw,Lw.prototype=null,n[ZM]=t):n=wg(),e===void 0?n:Sgt(n,e)},Agt=et.RegExp,Ogt=ve(function(){var t=Agt(".","s");return!(t.dotAll&&t.exec(`
  140. `)&&t.flags==="s")}),kgt=et.RegExp,Bgt=ve(function(){var t=kgt("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),Fgt=pr.get,_gt=F8("native-string-replace",String.prototype.replace),x1=RegExp.prototype.exec,j3=x1,Tgt=_t("".charAt),Pgt=_t("".indexOf),jgt=_t("".replace),Mw=_t("".slice),zw=(Rw=/b*/g,Jt(x1,H_=/a/,"a"),Jt(x1,Rw,"a"),H_.lastIndex!==0||Rw.lastIndex!==0),V_=XM.BROKEN_CARET,$w=/()??/.exec("")[1]!==void 0;(zw||$w||V_||Ogt||Bgt)&&(j3=function(t){var e,n,r,o,i,a,u,s=this,l=Fgt(s),c=wa(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=Jt(j3,f,c),s.lastIndex=f.lastIndex,e;var p=l.groups,d=V_&&s.sticky,y=Jt(YM,s),g=s.source,v=0,m=c;if(d&&(y=jgt(y,"y",""),Pgt(y,"g")===-1&&(y+="g"),m=Mw(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&Tgt(c,s.lastIndex-1)!==`
  141. `)&&(g="(?: "+g+")",m=" "+m,v++),n=new RegExp("^(?:"+g+")",y)),$w&&(n=new RegExp("^"+g+"$(?!\\s)",y)),zw&&(r=s.lastIndex),o=Jt(x1,d?n:s,m),d?o?(o.input=Mw(o.input,v),o[0]=Mw(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:zw&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),$w&&o&&o.length>1&&Jt(_gt,o[0],n,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&p)for(o.groups=a=$8(null),i=0;i<p.length;i++)a[(u=p[i])[0]]=o[u[1]];return o});var Bp=j3;Co({target:"RegExp",proto:!0,forced:/./.exec!==Bp},{exec:Bp});var H8=Function.prototype,U_=H8.apply,Ngt=H8.bind,W_=H8.call,QM=typeof Reflect=="object"&&Reflect.apply||(Ngt?W_.bind(U_):function(){return W_.apply(U_,arguments)}),Igt=Me("species"),Hw=RegExp.prototype,Lgt=Me("match"),Rgt=et.TypeError,Mgt=Me("species"),tz=function(t,e){var n,r=dn(t).constructor;return r===void 0||(n=dn(r)[Mgt])==null?e:function(o){if(M8(o))return o;throw Rgt(m1(o)+" is not a constructor")}(n)},zgt=_t("".charAt),G_=_t("".charCodeAt),$gt=_t("".slice),q_=function(t){return function(e,n){var r,o,i=wa(Cp(e)),a=I8(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=G_(i,a))<55296||r>56319||a+1===u||(o=G_(i,a+1))<56320||o>57343?t?zgt(i,a):r:t?$gt(i,a,a+2):o-56320+(r-55296<<10)+65536}},ez={codeAt:q_(!1),charAt:q_(!0)},Hgt=ez.charAt,Vgt=function(t,e,n){return e+(n?Hgt(t,e).length:1)},Ugt=et.Array,Wgt=Math.max,N3=function(t,e,n){for(var r=wh(t),o=kp(e,r),i=kp(n===void 0?r:n,r),a=Ugt(Wgt(i-o,0)),u=0;o<i;o++,u++)qM(a,u,t[o]);return a.length=u,a},Ggt=et.TypeError,K_=function(t,e){var n=t.exec;if(ae(n)){var r=Jt(n,t,e);return r!==null&&dn(r),r}if(eo(t)==="RegExp")return Jt(Bp,t,e);throw Ggt("RegExp#exec called on incompatible receiver")},Js=XM.UNSUPPORTED_Y,qgt=Math.min,nz=[].push,Kgt=_t(/./.exec),Qs=_t(nz),Hf=_t("".slice);(function(t,e,n,r){var o=Me(t),i=!ve(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),a=i&&!ve(function(){var l=!1,c=/a/;return(c={}).constructor={},c.constructor[Igt]=function(){return c},c.flags="",c[o]=/./[o],c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||n){var u=_t(/./[o]),s=function(l,c,f){var p;return p="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(d,y){var g,v,m=wa(Cp(this)),h=y===void 0?4294967295:y>>>0;if(h===0)return[];if(d===void 0)return[m];if(!fe(g=d)||!((v=g[Lgt])!==void 0?v:eo(g)=="RegExp"))return Jt(c,m,d,h);for(var b,w,E,x=[],C=(d.ignoreCase?"i":"")+(d.multiline?"m":"")+(d.unicode?"u":"")+(d.sticky?"y":""),O=0,F=new RegExp(d.source,C+"g");(b=Jt(Bp,F,m))&&!((w=F.lastIndex)>O&&(Qs(x,Hf(m,O,b.index)),b.length>1&&b.index<m.length&&QM(nz,x,N3(b,1)),E=b[0].length,O=w,x.length>=h));)F.lastIndex===b.index&&F.lastIndex++;return O===m.length?!E&&Kgt(F,"")||Qs(x,""):Qs(x,Hf(m,O)),x.length>h?N3(x,0,h):x}:"0".split(void 0,0).length?function(d,y){return d===void 0&&y===0?[]:Jt(c,this,d,y)}:c,[function(d,y){var g=Cp(this),v=d==null?void 0:Ap(d,l);return v?Jt(v,d,g,y):Jt(p,wa(g),d,y)},function(d,y){var g=dn(this),v=wa(d),m=f(p,g,v,y,p!==c);if(m.done)return m.value;var h=tz(g,RegExp),b=g.unicode,w=(g.ignoreCase?"i":"")+(g.multiline?"m":"")+(g.unicode?"u":"")+(Js?"g":"y"),E=new h(Js?"^(?:"+g.source+")":g,w),x=y===void 0?4294967295:y>>>0;if(x===0)return[];if(v.length===0)return K_(E,v)===null?[v]:[];for(var C=0,O=0,F=[];O<v.length;){E.lastIndex=Js?0:O;var R,H=K_(E,Js?Hf(v,O):v);if(H===null||(R=qgt(HM(E.lastIndex+(Js?O:0)),v.length))===C)O=Vgt(v,O,b);else{if(Qs(F,Hf(v,C,O)),F.length===x)return F;for(var M=1;M<=H.length-1;M++)if(Qs(F,H[M]),F.length===x)return F;O=C=R}}return Qs(F,Hf(v,C)),F}]}(o,""[t],function(l,c,f,p,d){var y=_t(l),g=c.exec;return g===Bp||g===Hw.exec?i&&!d?{done:!0,value:u(c,f,p)}:{done:!0,value:y(f,c,p)}:{done:!1}});ur(String.prototype,t,s[0]),ur(Hw,o,s[1])}r&&Oo(Hw[o],"sham",!0)})("split",0,!!ve(function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return n.length!==2||n[0]!=="a"||n[1]!=="b"}),Js);/*! *****************************************************************************
  142. Copyright (c) Microsoft Corporation.
  143. Permission to use, copy, modify, and/or distribute this software for any
  144. purpose with or without fee is hereby granted.
  145. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  146. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  147. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  148. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  149. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  150. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  151. PERFORMANCE OF THIS SOFTWARE.
  152. ***************************************************************************** */var S1=function(){return S1=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},S1.apply(this,arguments)};function V8(t,e,n,r){return new(n||(n=Promise))(function(o,i){function a(l){try{s(r.next(l))}catch(c){i(c)}}function u(l){try{s(r.throw(l))}catch(c){i(c)}}function s(l){var c;l.done?o(l.value):(c=l.value,c instanceof n?c:new n(function(f){f(c)})).then(a,u)}s((r=r.apply(t,e||[])).next())})}function U8(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function u(s){return function(l){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,r=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||c[0]!==6&&c[0]!==2)){a=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){a.label=c[1];break}if(c[0]===6&&a.label<o[1]){a.label=o[1],o=c;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(c);break}o[2]&&a.ops.pop(),a.trys.pop();continue}c=e.call(t,a)}catch(f){c=[6,f],r=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([s,l])}}}function Ygt(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=function(o){var i=typeof Symbol=="function"&&Symbol.iterator,a=i&&o[i],u=0;if(a)return a.call(o);if(o&&typeof o.length=="number")return{next:function(){return o&&u>=o.length&&(o=void 0),{value:o&&o[u++],done:!o}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")}(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(o){e[o]=t[o]&&function(i){return new Promise(function(a,u){(function(s,l,c,f){Promise.resolve(f).then(function(p){s({value:p,done:c})},l)})(a,u,(i=t[o](i)).done,i.value)})}}}var I3=Me("unscopables"),L3=Array.prototype;L3[I3]==null&&pi.f(L3,I3,{configurable:!0,value:$8(null)});var qu,Y_,X_,Vw=function(t){L3[I3][t]=!0},rc={},Xgt=!ve(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),Z_=N8("IE_PROTO"),R3=et.Object,Zgt=R3.prototype,A1=Xgt?R3.getPrototypeOf:function(t){var e=_8(t);if(Ke(e,Z_))return e[Z_];var n=e.constructor;return ae(n)&&e instanceof n?n.prototype:e instanceof R3?Zgt:null},M3=Me("iterator"),rz=!1;[].keys&&("next"in(X_=[].keys())?(Y_=A1(A1(X_)))!==Object.prototype&&(qu=Y_):rz=!0);var Jgt=qu==null||ve(function(){var t={};return qu[M3].call(t)!==t});Jgt&&(qu={}),ae(qu[M3])||ur(qu,M3,function(){return this});var W8={IteratorPrototype:qu,BUGGY_SAFARI_ITERATORS:rz},Qgt=pi.f,J_=Me("toStringTag"),O1=function(t,e,n){t&&!Ke(t=n?t:t.prototype,J_)&&Qgt(t,J_,{configurable:!0,value:e})},tvt=W8.IteratorPrototype,evt=function(){return this},nvt=et.String,rvt=et.TypeError,oc=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=_t(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch{}return function(r,o){return dn(r),function(i){if(typeof i=="object"||ae(i))return i;throw rvt("Can't set "+nvt(i)+" as a prototype")}(o),e?t(r,o):r.__proto__=o,r}}():void 0),ovt=bh.PROPER,ivt=bh.CONFIGURABLE,Q_=W8.IteratorPrototype,I0=W8.BUGGY_SAFARI_ITERATORS,Vf=Me("iterator"),avt=function(){return this},oz=function(t,e,n,r,o,i,a){(function(m,h,b,w){var E=h+" Iterator";m.prototype=$8(tvt,{next:Rm(1,b)}),O1(m,E,!1),rc[E]=evt})(n,e,r);var u,s,l,c=function(m){if(m===o&&g)return g;if(!I0&&m in d)return d[m];switch(m){case"keys":case"values":case"entries":return function(){return new n(this,m)}}return function(){return new n(this)}},f=e+" Iterator",p=!1,d=t.prototype,y=d[Vf]||d["@@iterator"]||o&&d[o],g=!I0&&y||c(o),v=e=="Array"&&d.entries||y;if(v&&(u=A1(v.call(new t)))!==Object.prototype&&u.next&&(A1(u)!==Q_&&(oc?oc(u,Q_):ae(u[Vf])||ur(u,Vf,avt)),O1(u,f,!0)),ovt&&o=="values"&&y&&y.name!=="values"&&(ivt?Oo(d,"name","values"):(p=!0,g=function(){return Jt(y,this)})),o)if(s={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(l in s)(I0||p||!(l in d))&&ur(d,l,s[l]);else Co({target:e,proto:!0,forced:I0||p},s);return d[Vf]!==g&&ur(d,Vf,g,{name:o}),rc[e]=g,s},uvt=pr.set,svt=pr.getterFor("Array Iterator"),ud=oz(Array,"Array",function(t,e){uvt(this,{type:"Array Iterator",target:Ha(t),index:0,kind:e})},function(){var t=svt(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}},"values");rc.Arguments=rc.Array,Vw("keys"),Vw("values"),Vw("entries");var lvt=ez.charAt,cvt=pr.set,fvt=pr.getterFor("String Iterator");oz(String,"String",function(t){cvt(this,{type:"String Iterator",string:wa(t),index:0})},function(){var t,e=fvt(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=lvt(n,r),e.index+=t.length,{value:t,done:!1})});var k1=function(t,e,n){for(var r in e)ur(t,r,e[r],n);return t},tT=E1.f,eT=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],dvt={f:function(t){return eT&&eo(t)=="Window"?function(e){try{return tT(e)}catch{return N3(eT)}}(t):tT(Ha(t))}},nT=ve(function(){if(typeof ArrayBuffer=="function"){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}),L0=Object.isExtensible,xu=ve(function(){L0(1)})||nT?function(t){return!!fe(t)&&(!nT||eo(t)!="ArrayBuffer")&&(!L0||L0(t))}:L0,pvt=!ve(function(){return Object.isExtensible(Object.preventExtensions({}))}),G8=A8(function(t){var e=pi.f,n=!1,r=T8("meta"),o=0,i=function(u){e(u,r,{value:{objectID:"O"+o++,weakData:{}}})},a=t.exports={enable:function(){a.enable=function(){},n=!0;var u=E1.f,s=_t([].splice),l={};l[r]=1,u(l).length&&(E1.f=function(c){for(var f=u(c),p=0,d=f.length;p<d;p++)if(f[p]===r){s(f,p,1);break}return f},Co({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:dvt.f}))},fastKey:function(u,s){if(!fe(u))return typeof u=="symbol"?u:(typeof u=="string"?"S":"P")+u;if(!Ke(u,r)){if(!xu(u))return"F";if(!s)return"E";i(u)}return u[r].objectID},getWeakData:function(u,s){if(!Ke(u,r)){if(!xu(u))return!0;if(!s)return!1;i(u)}return u[r].weakData},onFreeze:function(u){return pvt&&n&&xu(u)&&!Ke(u,r)&&i(u),u}};zm[r]=!0}),rT=_t(_t.bind),Fp=function(t,e){return Na(t),e===void 0?t:rT?rT(t,e):function(){return t.apply(e,arguments)}},hvt=Me("iterator"),gvt=Array.prototype,vvt=Me("iterator"),oT=function(t){if(t!=null)return Ap(t,vvt)||Ap(t,"@@iterator")||rc[$m(t)]},mvt=et.TypeError,iT=function(t,e,n){var r,o;dn(t);try{if(!(r=Ap(t,"return"))){if(e==="throw")throw n;return n}r=Jt(r,t)}catch(i){o=!0,r=i}if(e==="throw")throw n;if(o)throw r;return dn(r),n},yvt=et.TypeError,Eg=function(t,e){this.stopped=t,this.result=e},aT=Eg.prototype,B1=function(t,e,n){var r,o,i,a,u,s,l,c,f=n&&n.that,p=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_ITERATOR),y=!(!n||!n.INTERRUPTED),g=Fp(e,f),v=function(h){return r&&iT(r,"normal",h),new Eg(!0,h)},m=function(h){return p?(dn(h),y?g(h[0],h[1],v):g(h[0],h[1])):y?g(h,v):g(h)};if(d)r=t;else{if(!(o=oT(t)))throw yvt(m1(t)+" is not iterable");if((c=o)!==void 0&&(rc.Array===c||gvt[hvt]===c)){for(i=0,a=wh(t);a>i;i++)if((u=m(t[i]))&&xp(aT,u))return u;return new Eg(!1)}r=function(h,b){var w=arguments.length<2?oT(h):b;if(Na(w))return dn(Jt(w,h));throw mvt(m1(h)+" is not iterable")}(t,o)}for(s=r.next;!(l=Jt(s,r)).done;){try{u=m(l.value)}catch(h){iT(r,"throw",h)}if(typeof u=="object"&&u&&xp(aT,u))return u}return new Eg(!1)},bvt=et.TypeError,q8=function(t,e){if(xp(e,t))return t;throw bvt("Incorrect invocation")},iz=Me("iterator"),az=!1;try{var wvt=0,uT={next:function(){return{done:!!wvt++}},return:function(){az=!0}};uT[iz]=function(){return this},Array.from(uT,function(){throw 2})}catch{}var uz=function(t,e){if(!e&&!az)return!1;var n=!1;try{var r={};r[iz]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch{}return n},Evt=Me("species"),sT=et.Array,Dvt=function(t,e){return new(function(n){var r;return C1(n)&&(r=n.constructor,(M8(r)&&(r===sT||C1(r.prototype))||fe(r)&&(r=r[Evt])===null)&&(r=void 0)),r===void 0?sT:r}(t))(e===0?0:e)},lT=_t([].push),$i=function(t){var e=t==1,n=t==2,r=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var p,d,y=_8(s),g=O8(y),v=Fp(l,c),m=wh(g),h=0,b=f||Dvt,w=e?b(s,m):n||a?b(s,0):void 0;m>h;h++)if((u||h in g)&&(d=v(p=g[h],h,y),t))if(e)w[h]=d;else if(d)switch(t){case 3:return!0;case 5:return p;case 6:return h;case 2:lT(w,p)}else switch(t){case 4:return!1;case 7:lT(w,p)}return i?-1:r||o?o:w}},K8={forEach:$i(0),map:$i(1),filter:$i(2),some:$i(3),every:$i(4),find:$i(5),findIndex:$i(6),filterReject:$i(7)},R0=G8.getWeakData,Cvt=pr.set,xvt=pr.getterFor,Svt=K8.find,Avt=K8.findIndex,Ovt=_t([].splice),kvt=0,M0=function(t){return t.frozen||(t.frozen=new sz)},sz=function(){this.entries=[]},Uw=function(t,e){return Svt(t.entries,function(n){return n[0]===e})};sz.prototype={get:function(t){var e=Uw(this,t);if(e)return e[1]},has:function(t){return!!Uw(this,t)},set:function(t,e){var n=Uw(this,t);n?n[1]=e:this.entries.push([t,e])},delete:function(t){var e=Avt(this.entries,function(n){return n[0]===t});return~e&&Ovt(this.entries,e,1),!!~e}};var Uf,lz={getConstructor:function(t,e,n,r){var o=t(function(s,l){q8(s,i),Cvt(s,{type:e,id:kvt++,frozen:void 0}),l!=null&&B1(l,s[r],{that:s,AS_ENTRIES:n})}),i=o.prototype,a=xvt(e),u=function(s,l,c){var f=a(s),p=R0(dn(l),!0);return p===!0?M0(f).set(l,c):p[f.id]=c,s};return k1(i,{delete:function(s){var l=a(this);if(!fe(s))return!1;var c=R0(s);return c===!0?M0(l).delete(s):c&&Ke(c,l.id)&&delete c[l.id]},has:function(s){var l=a(this);if(!fe(s))return!1;var c=R0(s);return c===!0?M0(l).has(s):c&&Ke(c,l.id)}}),k1(i,n?{get:function(s){var l=a(this);if(fe(s)){var c=R0(s);return c===!0?M0(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}},z0=pr.enforce,Bvt=!et.ActiveXObject&&"ActiveXObject"in et,cz=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},Fvt=function(t,e,n){var r=t.indexOf("Map")!==-1,o=t.indexOf("Weak")!==-1,i=r?"set":"add",a=et[t],u=a&&a.prototype,s=a,l={},c=function(v){var m=_t(u[v]);ur(u,v,v=="add"?function(h){return m(this,h===0?0:h),this}:v=="delete"?function(h){return!(o&&!fe(h))&&m(this,h===0?0:h)}:v=="get"?function(h){return o&&!fe(h)?void 0:m(this,h===0?0:h)}:v=="has"?function(h){return!(o&&!fe(h))&&m(this,h===0?0:h)}:function(h,b){return m(this,h===0?0:h,b),this})};if(D1(t,!ae(a)||!(o||u.forEach&&!ve(function(){new a().entries().next()}))))s=n.getConstructor(e,t,r,i),G8.enable();else if(D1(t,!0)){var f=new s,p=f[i](o?{}:-0,1)!=f,d=ve(function(){f.has(1)}),y=uz(function(v){new a(v)}),g=!o&&ve(function(){for(var v=new a,m=5;m--;)v[i](m,m);return!v.has(-0)});y||((s=e(function(v,m){q8(v,u);var h=function(b,w,E){var x,C;return oc&&ae(x=w.constructor)&&x!==E&&fe(C=x.prototype)&&C!==E.prototype&&oc(b,C),b}(new a,v,s);return m!=null&&B1(m,h[i],{that:h,AS_ENTRIES:r}),h})).prototype=u,u.constructor=s),(d||g)&&(c("delete"),c("has"),r&&c("get")),(g||p)&&c(i),o&&u.clear&&delete u.clear}return l[t]=s,Co({global:!0,forced:s!=a},l),O1(s,t),o||n.setStrong(s,t,r),s}("WeakMap",cz,lz);if(zM&&Bvt){Uf=lz.getConstructor(cz,"WeakMap",!0),G8.enable();var Wf=Fvt.prototype,cT=_t(Wf.delete),$0=_t(Wf.has),fT=_t(Wf.get),dT=_t(Wf.set);k1(Wf,{delete:function(t){if(fe(t)&&!xu(t)){var e=z0(this);return e.frozen||(e.frozen=new Uf),cT(this,t)||e.frozen.delete(t)}return cT(this,t)},has:function(t){if(fe(t)&&!xu(t)){var e=z0(this);return e.frozen||(e.frozen=new Uf),$0(this,t)||e.frozen.has(t)}return $0(this,t)},get:function(t){if(fe(t)&&!xu(t)){var e=z0(this);return e.frozen||(e.frozen=new Uf),$0(this,t)?fT(this,t):e.frozen.get(t)}return fT(this,t)},set:function(t,e){if(fe(t)&&!xu(t)){var n=z0(this);n.frozen||(n.frozen=new Uf),$0(this,t)?dT(this,t,e):n.frozen.set(t,e)}else dT(this,t,e);return this}})}var F1={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},Ww=Op("span").classList,pT=Ww&&Ww.constructor&&Ww.constructor.prototype,fz=pT===Object.prototype?void 0:pT,Gw=Me("iterator"),hT=Me("toStringTag"),qw=ud.values,dz=function(t,e){if(t){if(t[Gw]!==qw)try{Oo(t,Gw,qw)}catch{t[Gw]=qw}if(t[hT]||Oo(t,hT,e),F1[e]){for(var n in ud)if(t[n]!==ud[n])try{Oo(t,n,ud[n])}catch{t[n]=ud[n]}}}};for(var Kw in F1)dz(et[Kw]&&et[Kw].prototype,Kw);dz(fz,"DOMTokenList");var pz=function(t,e){var n=[][t];return!!n&&ve(function(){n.call(null,e||function(){throw 1},1)})},_vt=K8.forEach,Yw=pz("forEach")?[].forEach:function(t){return _vt(this,t,arguments.length>1?arguments[1]:void 0)},hz=function(t){if(t&&t.forEach!==Yw)try{Oo(t,"forEach",Yw)}catch{t.forEach=Yw}};for(var Xw in F1)F1[Xw]&&hz(et[Xw]&&et[Xw].prototype);hz(fz);var _p,tl,gT,Zw,_1=et.Promise,vT=Me("species"),gz=/(?:ipad|iphone|ipod).*applewebkit/i.test(Ol),Ea=eo(et.process)=="process",z3=et.setImmediate,$3=et.clearImmediate,Tvt=et.process,Jw=et.Dispatch,Pvt=et.Function,mT=et.MessageChannel,jvt=et.String,Qw=0,_d={};try{_p=et.location}catch{}var Y8=function(t){if(Ke(_d,t)){var e=_d[t];delete _d[t],e()}},t4=function(t){return function(){Y8(t)}},yT=function(t){Y8(t.data)},bT=function(t){et.postMessage(jvt(t),_p.protocol+"//"+_p.host)};z3&&$3||(z3=function(t){var e=KM(arguments,1);return _d[++Qw]=function(){QM(ae(t)?t:Pvt(t),void 0,e)},tl(Qw),Qw},$3=function(t){delete _d[t]},Ea?tl=function(t){Tvt.nextTick(t4(t))}:Jw&&Jw.now?tl=function(t){Jw.now(t4(t))}:mT&&!gz?(Zw=(gT=new mT).port2,gT.port1.onmessage=yT,tl=Fp(Zw.postMessage,Zw)):et.addEventListener&&ae(et.postMessage)&&!et.importScripts&&_p&&_p.protocol!=="file:"&&!ve(bT)?(tl=bT,et.addEventListener("message",yT,!1)):tl="onreadystatechange"in Op("script")?function(t){P3.appendChild(Op("script")).onreadystatechange=function(){P3.removeChild(this),Y8(t)}}:function(t){setTimeout(t4(t),0)});var Gf,bu,Td,cl,e4,n4,r4,wT,vz={set:z3,clear:$3},Nvt=/ipad|iphone|ipod/i.test(Ol)&&et.Pebble!==void 0,Ivt=/web0s(?!.*chrome)/i.test(Ol),Lvt=j8.f,o4=vz.set,ET=et.MutationObserver||et.WebKitMutationObserver,DT=et.document,CT=et.process,H0=et.Promise,xT=Lvt(et,"queueMicrotask"),mz=xT&&xT.value;mz||(Gf=function(){var t,e;for(Ea&&(t=CT.domain)&&t.exit();bu;){e=bu.fn,bu=bu.next;try{e()}catch(n){throw bu?cl():Td=void 0,n}}Td=void 0,t&&t.enter()},gz||Ea||Ivt||!ET||!DT?!Nvt&&H0&&H0.resolve?((r4=H0.resolve(void 0)).constructor=H0,wT=Fp(r4.then,r4),cl=function(){wT(Gf)}):Ea?cl=function(){CT.nextTick(Gf)}:(o4=Fp(o4,et),cl=function(){o4(Gf)}):(e4=!0,n4=DT.createTextNode(""),new ET(Gf).observe(n4,{characterData:!0}),cl=function(){n4.data=e4=!e4}));var i4,ST,yz,AT,bz=mz||function(t){var e={fn:t,next:void 0};Td&&(Td.next=e),bu||(bu=e,cl()),Td=e},Rvt=function(t){var e,n;this.promise=new t(function(r,o){if(e!==void 0||n!==void 0)throw TypeError("Bad Promise constructor");e=r,n=o}),this.resolve=Na(e),this.reject=Na(n)},X8={f:function(t){return new Rvt(t)}},H3=function(t){try{return{error:!1,value:t()}}catch(e){return{error:!0,value:e}}},Mvt=typeof window=="object",wz=vz.set,zvt=Me("species"),Qo="Promise",OT=pr.getterFor(Qo),$vt=pr.set,Hvt=pr.getterFor(Qo),pu=_1&&_1.prototype,xo=_1,qf=pu,Ez=et.TypeError,V3=et.document,Z8=et.process,kl=X8.f,Vvt=kl,Uvt=!!(V3&&V3.createEvent&&et.dispatchEvent),Dz=ae(et.PromiseRejectionEvent),Cz=!1,Pd=D1(Qo,function(){var t=Mm(xo),e=t!==String(xo);if(!e&&Sp===66)return!0;if(Sp>=51&&/native code/.test(t))return!1;var n=new xo(function(o){o(1)}),r=function(o){o(function(){},function(){})};return(n.constructor={})[zvt]=r,!(Cz=n.then(function(){})instanceof r)||!e&&Mvt&&!Dz}),Wvt=Pd||!uz(function(t){xo.all(t).catch(function(){})}),xz=function(t){var e;return!(!fe(t)||!ae(e=t.then))&&e},J8=function(t,e){if(!t.notified){t.notified=!0;var n=t.reactions;bz(function(){for(var r=t.value,o=t.state==1,i=0;n.length>i;){var a,u,s,l=n[i++],c=o?l.ok:l.fail,f=l.resolve,p=l.reject,d=l.domain;try{c?(o||(t.rejection===2&&qvt(t),t.rejection=1),c===!0?a=r:(d&&d.enter(),a=c(r),d&&(d.exit(),s=!0)),a===l.promise?p(Ez("Promise-chain cycle")):(u=xz(a))?Jt(u,a,f,p):f(a)):p(r)}catch(y){d&&!s&&d.exit(),p(y)}}t.reactions=[],t.notified=!1,e&&!t.rejection&&Gvt(t)})}},Sz=function(t,e,n){var r,o;Uvt?((r=V3.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),et.dispatchEvent(r)):r={promise:e,reason:n},!Dz&&(o=et["on"+t])?o(r):t==="unhandledrejection"&&function(i,a){var u=et.console;u&&u.error&&(arguments.length==1?u.error(i):u.error(i,a))}("Unhandled promise rejection",n)},Gvt=function(t){Jt(wz,et,function(){var e,n=t.facade,r=t.value;if(kT(t)&&(e=H3(function(){Ea?Z8.emit("unhandledRejection",r,n):Sz("unhandledrejection",n,r)}),t.rejection=Ea||kT(t)?2:1,e.error))throw e.value})},kT=function(t){return t.rejection!==1&&!t.parent},qvt=function(t){Jt(wz,et,function(){var e=t.facade;Ea?Z8.emit("rejectionHandled",e):Sz("rejectionhandled",e,t.value)})},vl=function(t,e,n){return function(r){t(e,r,n)}},Bl=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,J8(t,!0))},U3=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw Ez("Promise can't be resolved itself");var r=xz(e);r?bz(function(){var o={done:!1};try{Jt(r,e,vl(U3,o,t),vl(Bl,o,t))}catch(i){Bl(o,i,t)}}):(t.value=e,t.state=1,J8(t,!1))}catch(o){Bl({done:!1},o,t)}}};if(Pd&&(qf=(xo=function(t){q8(this,qf),Na(t),Jt(i4,this);var e=OT(this);try{t(vl(U3,e),vl(Bl,e))}catch(n){Bl(e,n)}}).prototype,(i4=function(t){$vt(this,{type:Qo,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=k1(qf,{then:function(t,e){var n=Hvt(this),r=n.reactions,o=kl(tz(this,xo));return o.ok=!ae(t)||t,o.fail=ae(e)&&e,o.domain=Ea?Z8.domain:void 0,n.parent=!0,r[r.length]=o,n.state!=0&&J8(n,!1),o.promise},catch:function(t){return this.then(void 0,t)}}),ST=function(){var t=new i4,e=OT(t);this.promise=t,this.resolve=vl(U3,e),this.reject=vl(Bl,e)},X8.f=kl=function(t){return t===xo||t===yz?new ST(t):Vvt(t)},ae(_1)&&pu!==Object.prototype)){AT=pu.then,Cz||(ur(pu,"then",function(t,e){var n=this;return new xo(function(r,o){Jt(AT,n,r,o)}).then(t,e)},{unsafe:!0}),ur(pu,"catch",qf.catch,{unsafe:!0}));try{delete pu.constructor}catch{}oc&&oc(pu,qf)}Co({global:!0,wrap:!0,forced:Pd},{Promise:xo}),O1(xo,Qo,!1),function(t){var e=ls("Promise"),n=pi.f;Po&&e&&!e[vT]&&n(e,vT,{configurable:!0,get:function(){return this}})}(),yz=ls(Qo),Co({target:Qo,stat:!0,forced:Pd},{reject:function(t){var e=kl(this);return Jt(e.reject,void 0,t),e.promise}}),Co({target:Qo,stat:!0,forced:Pd},{resolve:function(t){return function(e,n){if(dn(e),fe(n)&&n.constructor===e)return n;var r=X8.f(e);return(0,r.resolve)(n),r.promise}(this,t)}}),Co({target:Qo,stat:!0,forced:Wvt},{all:function(t){var e=this,n=kl(e),r=n.resolve,o=n.reject,i=H3(function(){var a=Na(e.resolve),u=[],s=0,l=1;B1(t,function(c){var f=s++,p=!1;l++,Jt(a,e,c).then(function(d){p||(p=!0,u[f]=d,--l||r(u))},o)}),--l||r(u)});return i.error&&o(i.value),n.promise},race:function(t){var e=this,n=kl(e),r=n.reject,o=H3(function(){var i=Na(e.resolve);B1(t,function(a){Jt(i,e,a).then(n.resolve,r)})});return o.error&&r(o.value),n.promise}});var Kvt=bh.PROPER,W3=RegExp.prototype,Az=W3.toString,Yvt=_t(YM),Xvt=ve(function(){return Az.call({source:"a",flags:"b"})!="/a/b"}),Zvt=Kvt&&Az.name!="toString";(Xvt||Zvt)&&ur(RegExp.prototype,"toString",function(){var t=dn(this),e=wa(t.source),n=t.flags;return"/"+e+"/"+wa(n===void 0&&xp(W3,t)&&!("flags"in W3)?Yvt(t):n)},{unsafe:!0});var Jvt=bh.EXISTS,Qvt=pi.f,Oz=Function.prototype,t1t=_t(Oz.toString),kz=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,e1t=_t(kz.exec);Po&&!Jvt&&Qvt(Oz,"name",{configurable:!0,get:function(){try{return e1t(kz,t1t(this))[1]}catch{return""}}});var BT=new WeakMap;function Bz(t){return t.getMenuConfig("uploadImage")}function n1t(t,e){return V8(this,void 0,void 0,function(){return U8(this,function(n){return[2,new Promise(function(r){var o=new FileReader;o.readAsDataURL(e),o.onload=function(){var i=o.result;if(i){var a=i.toString(),u=a.indexOf("data:image")===0?"":a;Iu(t,a,e.name,u),r("ok")}}})]})})}function r1t(t,e){return V8(this,void 0,void 0,function(){var n,r,o,i;return U8(this,function(a){switch(a.label){case 0:return n=function(u){var s=BT.get(u);if(s!=null)return s;var l=Bz(u),c=l.onSuccess,f=l.onProgress,p=l.onFailed,d=l.customInsert,y=l.onError;return s=sI(S1(S1({},l),{onProgress:function(g){u.showProgressBar(g),f&&f(g)},onSuccess:function(g,v){if(d)return d(v,function(R,H,M){return Iu(u,R,H,M)}),void c(g,v);var m=v.errno,h=m===void 0?1:m,b=v.data,w=b===void 0?{}:b;if(h===0){if(Array.isArray(w))w.forEach(function(R){var H=R.url,M=H===void 0?"":H,K=R.alt,U=K===void 0?"":K,W=R.href;Iu(u,M,U,W===void 0?"":W)});else{var E=w.url,x=E===void 0?"":E,C=w.alt,O=C===void 0?"":C,F=w.href;Iu(u,x,O,F===void 0?"":F)}c(g,v)}else p(g,v)},onError:function(g,v,m){y(g,v,m)}})),BT.set(u,s),s}(t),r=e.name,o=e.type,i=e.size,n.addFile({name:r,type:o,size:i,data:e}),[4,n.upload()];case 1:return a.sent(),[2]}})})}function Fz(t,e){var n,r;return V8(this,void 0,void 0,function(){var o,i,a,u,s,l,c,f,p;return U8(this,function(d){switch(d.label){case 0:if(e==null)return[2];o=Array.prototype.slice.call(e),i=Bz(t),a=i.customUpload,u=i.base64LimitSize,d.label=1;case 1:d.trys.push([1,11,12,17]),s=Ygt(o),d.label=2;case 2:return[4,s.next()];case 3:return(l=d.sent()).done?[3,10]:(c=l.value,f=c.size,u&&f<=u?[4,n1t(t,c)]:[3,5]);case 4:return d.sent(),[3,9];case 5:return a?[4,a(c,function(y,g,v){return Iu(t,y,g,v)})]:[3,7];case 6:return d.sent(),[3,9];case 7:return[4,r1t(t,c)];case 8:d.sent(),d.label=9;case 9:return[3,2];case 10:return[3,17];case 11:return p=d.sent(),n={error:p},[3,17];case 12:return d.trys.push([12,,15,16]),l&&!l.done&&(r=s.return)?[4,r.call(s)]:[3,14];case 13:d.sent(),d.label=14;case 14:return[3,16];case 15:if(n)throw n.error;return[7];case 16:return[7];case 17:return[2]}})})}var o1t=_t([].join),i1t=O8!=Object,a1t=pz("join",",");Co({target:"Array",proto:!0,forced:i1t||!a1t},{join:function(t){return o1t(Ha(this),t===void 0?",":t)}}),Pr&&(B.fn.append=Pr),Fo&&(B.fn.on=Fo),Hl&&(B.fn.remove=Hl),Bo&&(B.fn.val=Bo),TA&&(B.fn.click=TA),Rl&&(B.fn.hide=Rl);var u1t=function(){function t(){this.title=tt("uploadImgModule.uploadImage"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M828.708571 585.045333a48.761905 48.761905 0 0 0-48.737523 48.761905v18.529524l-72.143238-72.167619a135.972571 135.972571 0 0 0-191.585524 0l-34.133334 34.133333-120.880762-120.953905a138.898286 138.898286 0 0 0-191.585523 0l-72.167619 72.167619V292.400762a48.786286 48.786286 0 0 1 48.761904-48.761905h341.23581a48.737524 48.737524 0 0 0 34.474667-83.285333 48.737524 48.737524 0 0 0-34.474667-14.287238H146.236952A146.212571 146.212571 0 0 0 0 292.400762v585.289143A146.358857 146.358857 0 0 0 146.236952 1024h584.996572a146.212571 146.212571 0 0 0 146.236952-146.310095V633.807238a48.786286 48.786286 0 0 0-48.761905-48.761905zM146.261333 926.45181a48.737524 48.737524 0 0 1-48.761904-48.761905v-174.128762l141.409523-141.458286a38.497524 38.497524 0 0 1 53.126096 0l154.526476 154.624 209.627428 209.724953H146.236952z m633.734096-48.761905c-0.073143 9.337905-3.145143 18.383238-8.777143 25.843809l-219.843048-220.94019 34.133333-34.133334a37.546667 37.546667 0 0 1 53.613715 0l140.873143 141.897143V877.714286zM1009.615238 160.231619L863.329524 13.897143a48.737524 48.737524 0 0 0-16.091429-10.24c-11.849143-4.87619-25.161143-4.87619-37.059047 0a48.761905 48.761905 0 0 0-16.067048 10.24l-146.236952 146.334476a49.005714 49.005714 0 0 0 69.217523 69.241905l62.902858-63.390476v272.627809a48.761905 48.761905 0 1 0 97.475047 0V166.083048l62.902857 63.390476a48.737524 48.737524 0 0 0 69.217524 0 48.761905 48.761905 0 0 0 0-69.241905z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return vm(e)},t.prototype.getMenuConfig=function(e){return e.getMenuConfig("uploadImage")},t.prototype.exec=function(e,n){var r=this.getMenuConfig(e),o=r.allowedFileTypes,i=o===void 0?[]:o,a=r.customBrowseAndUpload;if(a)a(function(c,f,p){return Iu(e,c,f,p)});else{var u="";i.length>0&&(u='accept="'+i.join(", ")+'"');var s=B("body"),l=B('<input type="file" '+u+" multiple/>");l.hide(),s.append(l),l.click(),l.on("change",function(){var c=l[0].files;Fz(e,c)})}},t}(),s1t={menus:[{key:"uploadImage",factory:function(){return new u1t},config:{server:"",fieldName:"wangeditor-uploaded-image",maxFileSize:2097152,maxNumberOfFiles:100,allowedFileTypes:["image/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:1e4,onBeforeUpload:function(t){return t},onProgress:function(t){},onSuccess:function(t,e){},onFailed:function(t,e){console.error("'"+t.name+"' upload failed",e)},onError:function(t,e,n){console.error("'"+t.name+"' upload error",n)},base64LimitSize:0}}],editorPlugin:function(t){var e=t.insertData,n=t;return n.insertData=function(r){if(vm(n))e(r);else if(r.getData("text/plain"))e(r);else{var o=r.files;o.length<=0?e(r):Array.prototype.slice.call(o).some(function(i){return function(a,u){var s=typeof Symbol=="function"&&a[Symbol.iterator];if(!s)return a;var l,c,f=s.call(a),p=[];try{for(;(u===void 0||u-- >0)&&!(l=f.next()).done;)p.push(l.value)}catch(d){c={error:d}}finally{try{l&&!l.done&&(s=f.return)&&s.call(f)}finally{if(c)throw c.error}}return p}(i.type.split("/"),1)[0]==="image"})?Fz(t,o):e(r)}},n}};Yn("en",{highLightModule:{selectLang:"Language"}}),Yn("zh-CN",{highLightModule:{selectLang:"选择语言"}});var T1=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Q8(t){var e={exports:{}};return t(e,e.exports),e.exports}var Hi,Dg,V0=function(t){return t&&t.Math==Math&&t},Nt=V0(typeof globalThis=="object"&&globalThis)||V0(typeof window=="object"&&window)||V0(typeof self=="object"&&self)||V0(typeof T1=="object"&&T1)||function(){return this}()||Function("return this")(),l1t=Object.defineProperty,tx=function(t,e){try{l1t(Nt,t,{value:e,configurable:!0,writable:!0})}catch{Nt[t]=e}return e},Da=Nt["__core-js_shared__"]||tx("__core-js_shared__",{}),ex=Q8(function(t){(t.exports=function(e,n){return Da[e]||(Da[e]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),_z=Function.prototype,G3=_z.bind,q3=_z.call,c1t=G3&&G3.bind(q3),Qt=G3?function(t){return t&&c1t(q3,t)}:function(t){return t&&function(){return q3.apply(t,arguments)}},f1t=Nt.TypeError,ic=function(t){if(t==null)throw f1t("Can't call method on "+t);return t},d1t=Nt.Object,nx=function(t){return d1t(ic(t))},p1t=Qt({}.hasOwnProperty),_r=Object.hasOwn||function(t,e){return p1t(nx(t),e)},h1t=0,g1t=Math.random(),v1t=Qt(1 .toString),Tz=function(t){return"Symbol("+(t===void 0?"":t)+")_"+v1t(++h1t+g1t,36)},Bn=function(t){return typeof t=="function"},m1t=function(t){return Bn(t)?t:void 0},Dh=function(t,e){return arguments.length<2?m1t(Nt[t]):Nt[t]&&Nt[t][e]},a4=Dh("navigator","userAgent")||"",FT=Nt.process,_T=Nt.Deno,TT=FT&&FT.versions||_T&&_T.version,PT=TT&&TT.v8;PT&&(Dg=(Hi=PT.split("."))[0]>0&&Hi[0]<4?1:+(Hi[0]+Hi[1])),!Dg&&a4&&(!(Hi=a4.match(/Edge\/(\d+)/))||Hi[1]>=74)&&(Hi=a4.match(/Chrome\/(\d+)/))&&(Dg=+Hi[1]);var jT=Dg,ln=function(t){try{return!!t()}catch{return!0}},K3=!!Object.getOwnPropertySymbols&&!ln(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&jT&&jT<41}),rx=K3&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Kf=ex("wks"),Ku=Nt.Symbol,NT=Ku&&Ku.for,y1t=rx?Ku:Ku&&Ku.withoutSetter||Tz,Va=function(t){if(!_r(Kf,t)||!K3&&typeof Kf[t]!="string"){var e="Symbol."+t;K3&&_r(Ku,t)?Kf[t]=Ku[t]:Kf[t]=rx&&NT?NT(e):y1t(e)}return Kf[t]},Pz={};Pz[Va("toStringTag")]="z";var ox=String(Pz)==="[object z]",jo=!ln(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),qr=function(t){return typeof t=="object"?t!==null:Bn(t)},Y3=Nt.document,b1t=qr(Y3)&&qr(Y3.createElement),ix=function(t){return b1t?Y3.createElement(t):{}},jz=!jo&&!ln(function(){return Object.defineProperty(ix("div"),"a",{get:function(){return 7}}).a!=7}),w1t=Nt.String,E1t=Nt.TypeError,no=function(t){if(qr(t))return t;throw E1t(w1t(t)+" is not an object")},Yf=Function.prototype.call,Qe=Yf.bind?Yf.bind(Yf):function(){return Yf.apply(Yf,arguments)},Nz=Qt({}.isPrototypeOf),D1t=Nt.Object,u4=rx?function(t){return typeof t=="symbol"}:function(t){var e=Dh("Symbol");return Bn(e)&&Nz(e.prototype,D1t(t))},C1t=Nt.String,Iz=function(t){try{return C1t(t)}catch{return"Object"}},x1t=Nt.TypeError,Lz=function(t){if(Bn(t))return t;throw x1t(Iz(t)+" is not a function")},Rz=function(t,e){var n=t[e];return n==null?void 0:Lz(n)},S1t=Nt.TypeError,A1t=Nt.TypeError,O1t=Va("toPrimitive"),ax=function(t){var e=function(n,r){if(!qr(n)||u4(n))return n;var o,i=Rz(n,O1t);if(i){if(r===void 0&&(r="default"),o=Qe(i,n,r),!qr(o)||u4(o))return o;throw A1t("Can't convert object to primitive value")}return r===void 0&&(r="number"),function(a,u){var s,l;if(u==="string"&&Bn(s=a.toString)&&!qr(l=Qe(s,a))||Bn(s=a.valueOf)&&!qr(l=Qe(s,a))||u!=="string"&&Bn(s=a.toString)&&!qr(l=Qe(s,a)))return l;throw S1t("Can't convert object to primitive value")}(n,r)}(t,"string");return u4(e)?e:e+""},k1t=Nt.TypeError,IT=Object.defineProperty,Hm={f:jo?IT:function(t,e,n){if(no(t),e=ax(e),no(n),jz)try{return IT(t,e,n)}catch{}if("get"in n||"set"in n)throw k1t("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},ux=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},ac=jo?function(t,e,n){return Hm.f(t,e,ux(1,n))}:function(t,e,n){return t[e]=n,t},B1t=Qt(Function.toString);Bn(Da.inspectSource)||(Da.inspectSource=function(t){return B1t(t)});var P1,jd,j1,sx=Da.inspectSource,LT=Nt.WeakMap,F1t=Bn(LT)&&/native code/.test(sx(LT)),RT=ex("keys"),Mz=function(t){return RT[t]||(RT[t]=Tz(t))},lx={},X3=Nt.TypeError,_1t=Nt.WeakMap;if(F1t||Da.state){var su=Da.state||(Da.state=new _1t),T1t=Qt(su.get),MT=Qt(su.has),P1t=Qt(su.set);P1=function(t,e){if(MT(su,t))throw new X3("Object already initialized");return e.facade=t,P1t(su,t,e),e},jd=function(t){return T1t(su,t)||{}},j1=function(t){return MT(su,t)}}else{var el=Mz("state");lx[el]=!0,P1=function(t,e){if(_r(t,el))throw new X3("Object already initialized");return e.facade=t,ac(t,el,e),e},jd=function(t){return _r(t,el)?t[el]:{}},j1=function(t){return _r(t,el)}}var Z3={set:P1,get:jd,has:j1,enforce:function(t){return j1(t)?jd(t):P1(t,{})},getterFor:function(t){return function(e){var n;if(!qr(e)||(n=jd(e)).type!==t)throw X3("Incompatible receiver, "+t+" required");return n}}},zz=Function.prototype,j1t=jo&&Object.getOwnPropertyDescriptor,s4=_r(zz,"name"),$z={EXISTS:s4,PROPER:s4&&(function(){}).name==="something",CONFIGURABLE:s4&&(!jo||jo&&j1t(zz,"name").configurable)},Tp=Q8(function(t){var e=$z.CONFIGURABLE,n=Z3.get,r=Z3.enforce,o=String(String).split("String");(t.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,p=!!s&&!!s.noTargetGet,d=s&&s.name!==void 0?s.name:a;Bn(u)&&(String(d).slice(0,7)==="Symbol("&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!_r(u,"name")||e&&u.name!==d)&&ac(u,"name",d),(l=r(u)).source||(l.source=o.join(typeof d=="string"?d:""))),i!==Nt?(c?!p&&i[a]&&(f=!0):delete i[a],f?i[a]=u:ac(i,a,u)):f?i[a]=u:tx(a,u)})(Function.prototype,"toString",function(){return Bn(this)&&n(this).source||sx(this)})}),N1t=Qt({}.toString),I1t=Qt("".slice),Ca=function(t){return I1t(N1t(t),8,-1)},L1t=Va("toStringTag"),R1t=Nt.Object,M1t=Ca(function(){return arguments}())=="Arguments",cx=ox?Ca:function(t){var e,n,r;return t===void 0?"Undefined":t===null?"Null":typeof(n=function(o,i){try{return o[i]}catch{}}(e=R1t(t),L1t))=="string"?n:M1t?Ca(e):(r=Ca(e))=="Object"&&Bn(e.callee)?"Arguments":r},z1t=ox?{}.toString:function(){return"[object "+cx(this)+"]"};ox||Tp(Object.prototype,"toString",z1t,{unsafe:!0});var zT,$T={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},l4=ix("span").classList,HT=l4&&l4.constructor&&l4.constructor.prototype,$1t=HT===Object.prototype?void 0:HT,VT=Qt(Qt.bind),c4=Nt.Object,H1t=Qt("".split),fx=ln(function(){return!c4("z").propertyIsEnumerable(0)})?function(t){return Ca(t)=="String"?H1t(t,""):c4(t)}:c4,V1t=Math.ceil,U1t=Math.floor,dx=function(t){var e=+t;return e!=e||e===0?0:(e>0?U1t:V1t)(e)},W1t=Math.min,Hz=function(t){return t>0?W1t(dx(t),9007199254740991):0},px=function(t){return Hz(t.length)},UT=Array.isArray||function(t){return Ca(t)=="Array"},Vz=function(){},G1t=[],Uz=Dh("Reflect","construct"),hx=/^\s*(?:class|function)\b/,q1t=Qt(hx.exec),K1t=!hx.exec(Vz),Xf=function(t){if(!Bn(t))return!1;try{return Uz(Vz,G1t,t),!0}catch{return!1}},Wz=!Uz||ln(function(){var t;return Xf(Xf.call)||!Xf(Object)||!Xf(function(){t=!0})||t})?function(t){if(!Bn(t))return!1;switch(cx(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return K1t||!!q1t(hx,sx(t))}:Xf,Y1t=Va("species"),WT=Nt.Array,X1t=function(t,e){return new(function(n){var r;return UT(n)&&(r=n.constructor,(Wz(r)&&(r===WT||UT(r.prototype))||qr(r)&&(r=r[Y1t])===null)&&(r=void 0)),r===void 0?WT:r}(t))(e===0?0:e)},GT=Qt([].push),Vi=function(t){var e=t==1,n=t==2,r=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var p,d,y=nx(s),g=fx(y),v=function(E,x){return Lz(E),x===void 0?E:VT?VT(E,x):function(){return E.apply(x,arguments)}}(l,c),m=px(g),h=0,b=f||X1t,w=e?b(s,m):n||a?b(s,0):void 0;m>h;h++)if((u||h in g)&&(d=v(p=g[h],h,y),t))if(e)w[h]=d;else if(d)switch(t){case 3:return!0;case 5:return p;case 6:return h;case 2:GT(w,p)}else switch(t){case 4:return!1;case 7:GT(w,p)}return i?-1:r||o?o:w}},Z1t=[Vi(0),Vi(1),Vi(2),Vi(3),Vi(4),Vi(5),Vi(6),Vi(7)][0],f4=(zT=[].forEach)&&ln(function(){zT.call(null,function(){throw 1},1)})?[].forEach:function(t){return Z1t(this,t,arguments.length>1?arguments[1]:void 0)},Gz=function(t){if(t&&t.forEach!==f4)try{ac(t,"forEach",f4)}catch{t.forEach=f4}};for(var d4 in $T)$T[d4]&&Gz(Nt[d4]&&Nt[d4].prototype);Gz($1t);var qT={}.propertyIsEnumerable,KT=Object.getOwnPropertyDescriptor,qz={f:KT&&!qT.call({1:2},1)?function(t){var e=KT(this,t);return!!e&&e.enumerable}:qT},Vm=function(t){return fx(ic(t))},YT=Object.getOwnPropertyDescriptor,Kz={f:jo?YT:function(t,e){if(t=Vm(t),e=ax(e),jz)try{return YT(t,e)}catch{}if(_r(t,e))return ux(!Qe(qz.f,t,e),t[e])}},J1t=Math.max,Q1t=Math.min,J3=function(t,e){var n=dx(t);return n<0?J1t(n+e,0):Q1t(n,e)},tmt=function(t){return function(e,n,r){var o,i=Vm(e),a=px(i),u=J3(r,a);if(t&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===n)return t||u||0;return!t&&-1}},emt=tmt(!1),XT=Qt([].push),Yz=function(t,e){var n,r=Vm(t),o=0,i=[];for(n in r)!_r(lx,n)&&_r(r,n)&&XT(i,n);for(;e.length>o;)_r(r,n=e[o++])&&(~emt(i,n)||XT(i,n));return i},N1=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],nmt=N1.concat("length","prototype"),rmt={f:Object.getOwnPropertyNames||function(t){return Yz(t,nmt)}},Xz={f:Object.getOwnPropertySymbols},omt=Qt([].concat),imt=Dh("Reflect","ownKeys")||function(t){var e=rmt.f(no(t)),n=Xz.f;return n?omt(e,n(t)):e},amt=function(t,e){for(var n=imt(e),r=Hm.f,o=Kz.f,i=0;i<n.length;i++){var a=n[i];_r(t,a)||r(t,a,o(e,a))}},umt=/#|\.prototype\./,Ch=function(t,e){var n=lmt[smt(t)];return n==fmt||n!=cmt&&(Bn(e)?ln(e):!!e)},smt=Ch.normalize=function(t){return String(t).replace(umt,".").toLowerCase()},lmt=Ch.data={},cmt=Ch.NATIVE="N",fmt=Ch.POLYFILL="P",dmt=Ch,pmt=Kz.f,Um=function(t,e){var n,r,o,i,a,u=t.target,s=t.global,l=t.stat;if(n=s?Nt:l?Nt[u]||tx(u,{}):(Nt[u]||{}).prototype)for(r in e){if(i=e[r],o=t.noTargetGet?(a=pmt(n,r))&&a.value:n[r],!dmt(s?r:u+(l?".":"#")+r,t.forced)&&o!==void 0){if(typeof i==typeof o)continue;amt(i,o)}(t.sham||o&&o.sham)&&ac(i,"sham",!0),Tp(n,r,i,t)}},Cg=Object.keys||function(t){return Yz(t,N1)},nl=Object.assign,ZT=Object.defineProperty,hmt=Qt([].concat),JT=!nl||ln(function(){if(jo&&nl({b:1},nl(ZT({},"a",{enumerable:!0,get:function(){ZT(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(o){e[o]=o}),nl({},t)[n]!=7||Cg(nl({},e)).join("")!=r})?function(t,e){for(var n=nx(t),r=arguments.length,o=1,i=Xz.f,a=qz.f;r>o;)for(var u,s=fx(arguments[o++]),l=i?hmt(Cg(s),i(s)):Cg(s),c=l.length,f=0;c>f;)u=l[f++],jo&&!Qe(a,s,u)||(n[u]=s[u]);return n}:nl;Um({target:"Object",stat:!0,forced:Object.assign!==JT},{assign:JT});var QT=Q8(function(t){var e=function(n){var r=/\blang(?:uage)?-([\w-]+)\b/i,o=0,i={},a={manual:n.Prism&&n.Prism.manual,disableWorkerMessageHandler:n.Prism&&n.Prism.disableWorkerMessageHandler,util:{encode:function v(m){return m instanceof u?new u(m.type,v(m.content),m.alias):Array.isArray(m)?m.map(v):m.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(v){return Object.prototype.toString.call(v).slice(8,-1)},objId:function(v){return v.__id||Object.defineProperty(v,"__id",{value:++o}),v.__id},clone:function v(m,h){var b,w;switch(h=h||{},a.util.type(m)){case"Object":if(w=a.util.objId(m),h[w])return h[w];for(var E in b={},h[w]=b,m)m.hasOwnProperty(E)&&(b[E]=v(m[E],h));return b;case"Array":return w=a.util.objId(m),h[w]?h[w]:(b=[],h[w]=b,m.forEach(function(x,C){b[C]=v(x,h)}),b);default:return m}},getLanguage:function(v){for(;v&&!r.test(v.className);)v=v.parentElement;return v?(v.className.match(r)||[,"none"])[1].toLowerCase():"none"},currentScript:function(){if(typeof document>"u")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(b){var v=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(b.stack)||[])[1];if(v){var m=document.getElementsByTagName("script");for(var h in m)if(m[h].src==v)return m[h]}return null}},isActive:function(v,m,h){for(var b="no-"+m;v;){var w=v.classList;if(w.contains(m))return!0;if(w.contains(b))return!1;v=v.parentElement}return!!h}},languages:{plain:i,plaintext:i,text:i,txt:i,extend:function(v,m){var h=a.util.clone(a.languages[v]);for(var b in m)h[b]=m[b];return h},insertBefore:function(v,m,h,b){var w=(b=b||a.languages)[v],E={};for(var x in w)if(w.hasOwnProperty(x)){if(x==m)for(var C in h)h.hasOwnProperty(C)&&(E[C]=h[C]);h.hasOwnProperty(x)||(E[x]=w[x])}var O=b[v];return b[v]=E,a.languages.DFS(a.languages,function(F,R){R===O&&F!=v&&(this[F]=E)}),E},DFS:function v(m,h,b,w){w=w||{};var E=a.util.objId;for(var x in m)if(m.hasOwnProperty(x)){h.call(m,x,m[x],b||x);var C=m[x],O=a.util.type(C);O!=="Object"||w[E(C)]?O!=="Array"||w[E(C)]||(w[E(C)]=!0,v(C,h,x,w)):(w[E(C)]=!0,v(C,h,null,w))}}},plugins:{},highlightAll:function(v,m){a.highlightAllUnder(document,v,m)},highlightAllUnder:function(v,m,h){var b={callback:h,container:v,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};a.hooks.run("before-highlightall",b),b.elements=Array.prototype.slice.apply(b.container.querySelectorAll(b.selector)),a.hooks.run("before-all-elements-highlight",b);for(var w,E=0;w=b.elements[E++];)a.highlightElement(w,m===!0,b.callback)},highlightElement:function(v,m,h){var b=a.util.getLanguage(v),w=a.languages[b];v.className=v.className.replace(r,"").replace(/\s+/g," ")+" language-"+b;var E=v.parentElement;E&&E.nodeName.toLowerCase()==="pre"&&(E.className=E.className.replace(r,"").replace(/\s+/g," ")+" language-"+b);var x={element:v,language:b,grammar:w,code:v.textContent};function C(F){x.highlightedCode=F,a.hooks.run("before-insert",x),x.element.innerHTML=x.highlightedCode,a.hooks.run("after-highlight",x),a.hooks.run("complete",x),h&&h.call(x.element)}if(a.hooks.run("before-sanity-check",x),(E=x.element.parentElement)&&E.nodeName.toLowerCase()==="pre"&&!E.hasAttribute("tabindex")&&E.setAttribute("tabindex","0"),!x.code)return a.hooks.run("complete",x),void(h&&h.call(x.element));if(a.hooks.run("before-highlight",x),x.grammar)if(m&&n.Worker){var O=new Worker(a.filename);O.onmessage=function(F){C(F.data)},O.postMessage(JSON.stringify({language:x.language,code:x.code,immediateClose:!0}))}else C(a.highlight(x.code,x.grammar,x.language));else C(a.util.encode(x.code))},highlight:function(v,m,h){var b={code:v,grammar:m,language:h};return a.hooks.run("before-tokenize",b),b.tokens=a.tokenize(b.code,b.grammar),a.hooks.run("after-tokenize",b),u.stringify(a.util.encode(b.tokens),b.language)},tokenize:function(v,m){var h=m.rest;if(h){for(var b in h)m[b]=h[b];delete m.rest}var w=new c;return f(w,w.head,v),l(v,w,m,w.head,0),function(E){for(var x=[],C=E.head.next;C!==E.tail;)x.push(C.value),C=C.next;return x}(w)},hooks:{all:{},add:function(v,m){var h=a.hooks.all;h[v]=h[v]||[],h[v].push(m)},run:function(v,m){var h=a.hooks.all[v];if(h&&h.length)for(var b,w=0;b=h[w++];)b(m)}},Token:u};function u(v,m,h,b){this.type=v,this.content=m,this.alias=h,this.length=0|(b||"").length}function s(v,m,h,b){v.lastIndex=m;var w=v.exec(h);if(w&&b&&w[1]){var E=w[1].length;w.index+=E,w[0]=w[0].slice(E)}return w}function l(v,m,h,b,w,E){for(var x in h)if(h.hasOwnProperty(x)&&h[x]){var C=h[x];C=Array.isArray(C)?C:[C];for(var O=0;O<C.length;++O){if(E&&E.cause==x+","+O)return;var F=C[O],R=F.inside,H=!!F.lookbehind,M=!!F.greedy,K=F.alias;if(M&&!F.pattern.global){var U=F.pattern.toString().match(/[imsuy]*$/)[0];F.pattern=RegExp(F.pattern.source,U+"g")}for(var W=F.pattern||F,q=b.next,nt=w;q!==m.tail&&!(E&&nt>=E.reach);nt+=q.value.length,q=q.next){var lt=q.value;if(m.length>v.length)return;if(!(lt instanceof u)){var st,at=1;if(M){if(!(st=s(W,nt,v,H)))break;var k=st.index,S=st.index+st[0].length,P=nt;for(P+=q.value.length;k>=P;)P+=(q=q.next).value.length;if(nt=P-=q.value.length,q.value instanceof u)continue;for(var $=q;$!==m.tail&&(P<S||typeof $.value=="string");$=$.next)at++,P+=$.value.length;at--,lt=v.slice(nt,P),st.index-=nt}else if(!(st=s(W,0,lt,H)))continue;k=st.index;var Y=st[0],V=lt.slice(0,k),it=lt.slice(k+Y.length),gt=nt+lt.length;E&&gt>E.reach&&(E.reach=gt);var vt=q.prev;if(V&&(vt=f(m,vt,V),nt+=V.length),p(m,vt,at),q=f(m,vt,new u(x,R?a.tokenize(Y,R):Y,K,Y)),it&&f(m,q,it),at>1){var Dt={cause:x+","+O,reach:gt};l(v,m,h,q.prev,nt,Dt),E&&Dt.reach>E.reach&&(E.reach=Dt.reach)}}}}}}function c(){var v={value:null,prev:null,next:null},m={value:null,prev:v,next:null};v.next=m,this.head=v,this.tail=m,this.length=0}function f(v,m,h){var b=m.next,w={value:h,prev:m,next:b};return m.next=w,b.prev=w,v.length++,w}function p(v,m,h){for(var b=m.next,w=0;w<h&&b!==v.tail;w++)b=b.next;m.next=b,b.prev=m,v.length-=w}if(n.Prism=a,u.stringify=function v(m,h){if(typeof m=="string")return m;if(Array.isArray(m)){var b="";return m.forEach(function(O){b+=v(O,h)}),b}var w={type:m.type,content:v(m.content,h),tag:"span",classes:["token",m.type],attributes:{},language:h},E=m.alias;E&&(Array.isArray(E)?Array.prototype.push.apply(w.classes,E):w.classes.push(E)),a.hooks.run("wrap",w);var x="";for(var C in w.attributes)x+=" "+C+'="'+(w.attributes[C]||"").replace(/"/g,"&quot;")+'"';return"<"+w.tag+' class="'+w.classes.join(" ")+'"'+x+">"+w.content+"</"+w.tag+">"},!n.document)return n.addEventListener&&(a.disableWorkerMessageHandler||n.addEventListener("message",function(v){var m=JSON.parse(v.data),h=m.language,b=m.code,w=m.immediateClose;n.postMessage(a.highlight(b,a.languages[h],h)),w&&n.close()},!1)),a;var d=a.util.currentScript();function y(){a.manual||a.highlightAll()}if(d&&(a.filename=d.src,d.hasAttribute("data-manual")&&(a.manual=!0)),!a.manual){var g=document.readyState;g==="loading"||g==="interactive"&&d&&d.defer?document.addEventListener("DOMContentLoaded",y):window.requestAnimationFrame?window.requestAnimationFrame(y):window.setTimeout(y,16)}return a}(typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{});/**
  153. * Prism: Lightweight, robust, elegant syntax highlighting
  154. *
  155. * @license MIT <https://opensource.org/licenses/MIT>
  156. * @author Lea Verou <https://lea.verou.me>
  157. * @namespace
  158. * @public
  159. */t.exports&&(t.exports=e),T1!==void 0&&(T1.Prism=e),e.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},e.languages.markup.tag.inside["attr-value"].inside.entity=e.languages.markup.entity,e.languages.markup.doctype.inside["internal-subset"].inside=e.languages.markup,e.hooks.add("wrap",function(n){n.type==="entity"&&(n.attributes.title=n.content.replace(/&amp;/,"&"))}),Object.defineProperty(e.languages.markup.tag,"addInlined",{value:function(n,r){var o={};o["language-"+r]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:e.languages[r]},o.cdata=/^<!\[CDATA\[|\]\]>$/i;var i={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:o}};i["language-"+r]={pattern:/[\s\S]+/,inside:e.languages[r]};var a={};a[n]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return n}),"i"),lookbehind:!0,greedy:!0,inside:i},e.languages.insertBefore("markup","cdata",a)}}),Object.defineProperty(e.languages.markup.tag,"addAttribute",{value:function(n,r){e.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+n+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[r,"language-"+r],inside:e.languages[r]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),e.languages.html=e.languages.markup,e.languages.mathml=e.languages.markup,e.languages.svg=e.languages.markup,e.languages.xml=e.languages.extend("markup",{}),e.languages.ssml=e.languages.xml,e.languages.atom=e.languages.xml,e.languages.rss=e.languages.xml,function(n){var r=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;n.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+r.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+r.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+r.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:r,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},n.languages.css.atrule.inside.rest=n.languages.css;var o=n.languages.markup;o&&(o.tag.addInlined("style","css"),o.tag.addAttribute("style","css"))}(e),e.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|interface|extends|implements|trait|instanceof|new)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,boolean:/\b(?:true|false)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},e.languages.javascript=e.languages.extend("clike",{"class-name":[e.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:prototype|constructor))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:/\b(?:(?:0[xX](?:[\dA-Fa-f](?:_[\dA-Fa-f])?)+|0[bB](?:[01](?:_[01])?)+|0[oO](?:[0-7](?:_[0-7])?)+)n?|(?:\d(?:_\d)?)+n|NaN|Infinity)\b|(?:\b(?:\d(?:_\d)?)+\.?(?:\d(?:_\d)?)*|\B\.(?:\d(?:_\d)?)+)(?:[Ee][+-]?(?:\d(?:_\d)?)+)?/,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),e.languages.javascript["class-name"][0].pattern=/(\b(?:class|interface|extends|implements|instanceof|new)\s+)[\w.\\]+/,e.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:e.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:e.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:e.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:e.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),e.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:e.languages.javascript}},string:/[\s\S]+/}}}),e.languages.markup&&(e.languages.markup.tag.addInlined("script","javascript"),e.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),e.languages.js=e.languages.javascript,function(){if(e!==void 0&&typeof document<"u"){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var n={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},r="data-src-status",o='pre[data-src]:not([data-src-status="loaded"]):not([data-src-status="loading"])',i=/\blang(?:uage)?-([\w-]+)\b/i;e.hooks.add("before-highlightall",function(s){s.selector+=", "+o}),e.hooks.add("before-sanity-check",function(s){var l=s.element;if(l.matches(o)){s.code="",l.setAttribute(r,"loading");var c=l.appendChild(document.createElement("CODE"));c.textContent="Loading…";var f=l.getAttribute("data-src"),p=s.language;if(p==="none"){var d=(/\.(\w+)$/.exec(f)||[,"none"])[1];p=n[d]||d}u(c,p),u(l,p);var y=e.plugins.autoloader;y&&y.loadLanguages(p);var g=new XMLHttpRequest;g.open("GET",f,!0),g.onreadystatechange=function(){g.readyState==4&&(g.status<400&&g.responseText?(l.setAttribute(r,"loaded"),c.textContent=g.responseText,e.highlightElement(c)):(l.setAttribute(r,"failed"),g.status>=400?c.textContent="✖ Error "+g.status+" while fetching file: "+g.statusText:c.textContent="✖ Error: File does not exist or is empty"))},g.send(null)}}),e.plugins.fileHighlight={highlight:function(s){for(var l,c=(s||document).querySelectorAll(o),f=0;l=c[f++];)e.highlightElement(l)}};var a=!1;e.fileHighlight=function(){a||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),a=!0),e.plugins.fileHighlight.highlight.apply(this,arguments)}}function u(s,l){var c=s.className;c=c.replace(i," ")+" language-"+l,s.className=c.replace(/\s+/g," ").trim()}}()});(function(t){var e=t.util.clone(t.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,r=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,o=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function i(s,l){return s=s.replace(/<S>/g,function(){return n}).replace(/<BRACES>/g,function(){return r}).replace(/<SPREAD>/g,function(){return o}),RegExp(s,l)}o=i(o).source,t.languages.jsx=t.languages.extend("markup",e),t.languages.jsx.tag.pattern=i(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),t.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/i,t.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/i,t.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,t.languages.jsx.tag.inside.comment=e.comment,t.languages.insertBefore("inside","attr-name",{spread:{pattern:i(/<SPREAD>/.source),inside:t.languages.jsx}},t.languages.jsx.tag),t.languages.insertBefore("inside","special-attr",{script:{pattern:i(/=<BRACES>/.source),inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:t.languages.jsx},alias:"language-javascript"}},t.languages.jsx.tag);var a=function(s){return s?typeof s=="string"?s:typeof s.content=="string"?s.content:s.content.map(a).join(""):""},u=function(s){for(var l=[],c=0;c<s.length;c++){var f=s[c],p=!1;if(typeof f!="string"&&(f.type==="tag"&&f.content[0]&&f.content[0].type==="tag"?f.content[0].content[0].content==="</"?l.length>0&&l[l.length-1].tagName===a(f.content[0].content[1])&&l.pop():f.content[f.content.length-1].content==="/>"||l.push({tagName:a(f.content[0].content[1]),openedBraces:0}):l.length>0&&f.type==="punctuation"&&f.content==="{"?l[l.length-1].openedBraces++:l.length>0&&l[l.length-1].openedBraces>0&&f.type==="punctuation"&&f.content==="}"?l[l.length-1].openedBraces--:p=!0),(p||typeof f=="string")&&l.length>0&&l[l.length-1].openedBraces===0){var d=a(f);c<s.length-1&&(typeof s[c+1]=="string"||s[c+1].type==="plain-text")&&(d+=a(s[c+1]),s.splice(c+1,1)),c>0&&(typeof s[c-1]=="string"||s[c-1].type==="plain-text")&&(d=a(s[c-1])+d,s.splice(c-1,1),c--),s[c]=new t.Token("plain-text",d,null,d)}f.content&&typeof f.content!="string"&&u(f.content)}};t.hooks.add("after-tokenize",function(s){s.language!=="jsx"&&s.language!=="tsx"||u(s.tokens)})})(Prism),function(t){t.languages.typescript=t.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:string|Function|any|number|boolean|Array|symbol|console|Promise|unknown|never)\b/}),t.languages.typescript.keyword.push(/\b(?:abstract|as|declare|implements|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete t.languages.typescript.parameter;var e=t.languages.extend("typescript",{});delete e["class-name"],t.languages.typescript["class-name"].inside=e,t.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e}}}}),t.languages.ts=t.languages.typescript}(Prism),Prism.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup,Prism.hooks.add("wrap",function(t){t.type==="entity"&&(t.attributes.title=t.content.replace(/&amp;/,"&"))}),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(t,e){var n={};n["language-"+e]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[e]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};r["language-"+e]={pattern:/[\s\S]+/,inside:Prism.languages[e]};var o={};o[t]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return t}),"i"),lookbehind:!0,greedy:!0,inside:r},Prism.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(t,e){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[e,"language-"+e],inside:Prism.languages[e]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend("markup",{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml,Prism.languages.go=Prism.languages.extend("clike",{string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|iota|nil|true|false)\b/,number:/(?:\b0x[a-f\d]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[-+]?\d+)?)i?/i,operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:bool|byte|complex(?:64|128)|error|float(?:32|64)|rune|string|u?int(?:8|16|32|64)?|uintptr|append|cap|close|complex|copy|delete|imag|len|make|new|panic|print(?:ln)?|real|recover)\b/}),delete Prism.languages.go["class-name"],function(t){var e=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,n=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],r=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,o=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,i=/[{}\[\](),:;]/;t.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:e,variable:/\$+(?:\w+\b|(?=\{))/i,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:bool|boolean|int|integer|float|string|object|array)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:bool|int|float|string|object|array(?!\s*\()|mixed|self|static|callable|iterable|(?:null|false)(?=\s*\|))\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*[\w|]\|\s*)(?:null|false)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:bool|int|float|string|object|void|array(?!\s*\()|mixed|self|static|callable|iterable|(?:null|false)(?=\s*\|))\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?[\w|]\|\s*)(?:null|false)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:bool|int|float|string|object|void|array(?!\s*\()|mixed|iterable|(?:null|false)(?=\s*\|))\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:null|false)\b/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:__halt_compiler|abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|namespace|match|new|or|parent|print|private|protected|public|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s+)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:r,operator:o,punctuation:i};var a={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:t.languages.php},u=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:a}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:a}}];t.languages.insertBefore("php","variable",{string:u,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:e,string:u,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,number:r,operator:o,punctuation:i}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),t.hooks.add("before-tokenize",function(s){/<\?/.test(s.code)&&t.languages["markup-templating"].buildPlaceholders(s,"php",/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/gi)}),t.hooks.add("after-tokenize",function(s){t.languages["markup-templating"].tokenizePlaceholders(s,"php")})}(Prism),Prism.languages.c=Prism.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:__attribute__|_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|asm|typeof|inline|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),Prism.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Prism.languages.c.string],comment:Prism.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Prism.languages.c}}},constant:/\b(?:__FILE__|__LINE__|__DATE__|__TIME__|__TIMESTAMP__|__func__|EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|stdin|stdout|stderr)\b/}),delete Prism.languages.c.boolean,Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},"string-interpolation":{pattern:/(?:f|rf|fr)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|rb|br)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|rb|br)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/im,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:and|as|assert|async|await|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:True|False|None)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?\b/i,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python,Prism.languages.py=Prism.languages.python,function(t){var e=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,n=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,r={pattern:RegExp(n+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};t.languages.java=t.languages.extend("clike",{"class-name":[r,{pattern:RegExp(n+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:r.inside}],keyword:e,function:[t.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0}}),t.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"}}),t.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":r,keyword:e,punctuation:/[<>(),.:]/,operator:/[?&|]/}},namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,function(){return e.source})),lookbehind:!0,inside:{punctuation:/\./}}})}(Prism),function(t){var e=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char8_t|char16_t|char32_t|class|compl|concept|const|consteval|constexpr|constinit|const_cast|continue|co_await|co_return|co_yield|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int8_t|int16_t|int32_t|int64_t|uint8_t|uint16_t|uint32_t|uint64_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return e.source});t.languages.cpp=t.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return e.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:e,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:true|false)\b/}),t.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:module|import)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,function(){return n})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),t.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t.languages.cpp}}}}),t.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),t.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:t.languages.extend("cpp",{})}}),t.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},t.languages.cpp["base-clause"])}(Prism),function(t){function e(S,P){return S.replace(/<<(\d+)>>/g,function($,Y){return"(?:"+P[+Y]+")"})}function n(S,P,$){return RegExp(e(S,P),$||"")}function r(S,P){for(var $=0;$<P;$++)S=S.replace(/<<self>>/g,function(){return"(?:"+S+")"});return S.replace(/<<self>>/g,"[^\\s\\S]")}var o="bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",i="class enum interface record struct",a="add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",u="abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield";function s(S){return"\\b(?:"+S.trim().replace(/ /g,"|")+")\\b"}var l=s(i),c=RegExp(s(o+" "+i+" "+a+" "+u)),f=s(i+" "+a+" "+u),p=s(o+" "+i+" "+u),d=r(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),y=r(/\((?:[^()]|<<self>>)*\)/.source,2),g=/@?\b[A-Za-z_]\w*\b/.source,v=e(/<<0>>(?:\s*<<1>>)?/.source,[g,d]),m=e(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[f,v]),h=/\[\s*(?:,\s*)*\]/.source,b=e(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[m,h]),w=e(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[d,y,h]),E=e(/\(<<0>>+(?:,<<0>>+)+\)/.source,[w]),x=e(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[E,m,h]),C={keyword:c,punctuation:/[<>()?,.:[\]]/},O=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,F=/"(?:\\.|[^\\"\r\n])*"/.source,R=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;t.languages.csharp=t.languages.extend("clike",{string:[{pattern:n(/(^|[^$\\])<<0>>/.source,[R]),lookbehind:!0,greedy:!0},{pattern:n(/(^|[^@$\\])<<0>>/.source,[F]),lookbehind:!0,greedy:!0},{pattern:RegExp(O),greedy:!0,alias:"character"}],"class-name":[{pattern:n(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[m]),lookbehind:!0,inside:C},{pattern:n(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[g,x]),lookbehind:!0,inside:C},{pattern:n(/(\busing\s+)<<0>>(?=\s*=)/.source,[g]),lookbehind:!0},{pattern:n(/(\b<<0>>\s+)<<1>>/.source,[l,v]),lookbehind:!0,inside:C},{pattern:n(/(\bcatch\s*\(\s*)<<0>>/.source,[m]),lookbehind:!0,inside:C},{pattern:n(/(\bwhere\s+)<<0>>/.source,[g]),lookbehind:!0},{pattern:n(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[b]),lookbehind:!0,inside:C},{pattern:n(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[x,p,g]),inside:C}],keyword:c,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:ul|lu|[dflmu])?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),t.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),t.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:n(/([(,]\s*)<<0>>(?=\s*:)/.source,[g]),lookbehind:!0,alias:"punctuation"}}),t.languages.insertBefore("csharp","class-name",{namespace:{pattern:n(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[g]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:n(/(\b(?:default|typeof|sizeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[y]),lookbehind:!0,alias:"class-name",inside:C},"return-type":{pattern:n(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[x,m]),inside:C,alias:"class-name"},"constructor-invocation":{pattern:n(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[x]),lookbehind:!0,inside:C,alias:"class-name"},"generic-method":{pattern:n(/<<0>>\s*<<1>>(?=\s*\()/.source,[g,d]),inside:{function:n(/^<<0>>/.source,[g]),generic:{pattern:RegExp(d),alias:"class-name",inside:C}}},"type-list":{pattern:n(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[l,v,g,x,c.source,y,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:n(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[v,y]),lookbehind:!0,greedy:!0,inside:t.languages.csharp},keyword:c,"class-name":{pattern:RegExp(x),greedy:!0,inside:C},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var H=F+"|"+O,M=e(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[H]),K=r(e(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[M]),2),U=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,W=e(/<<0>>(?:\s*\(<<1>>*\))?/.source,[m,K]);t.languages.insertBefore("csharp","class-name",{attribute:{pattern:n(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[U,W]),lookbehind:!0,greedy:!0,inside:{target:{pattern:n(/^<<0>>(?=\s*:)/.source,[U]),alias:"keyword"},"attribute-arguments":{pattern:n(/\(<<0>>*\)/.source,[K]),inside:t.languages.csharp},"class-name":{pattern:RegExp(m),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var q=/:[^}\r\n]+/.source,nt=r(e(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[M]),2),lt=e(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[nt,q]),st=r(e(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[H]),2),at=e(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[st,q]);function k(S,P){return{interpolation:{pattern:n(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[S]),lookbehind:!0,inside:{"format-string":{pattern:n(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[P,q]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:t.languages.csharp}}},string:/[\s\S]+/}}t.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:n(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[lt]),lookbehind:!0,greedy:!0,inside:k(lt,nt)},{pattern:n(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[at]),lookbehind:!0,greedy:!0,inside:k(at,st)}]})}(Prism),Prism.languages.dotnet=Prism.languages.cs=Prism.languages.csharp,Prism.languages["visual-basic"]={comment:{pattern:/(?:['‘’]|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:[^\S\r\n]_[^\S\r\n]*(?:\r\n?|\n)|.)+/i,alias:"comment",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[^\S\r\n]*(?:\d+([/-])\d+\1\d+(?:[^\S\r\n]+(?:\d+[^\S\r\n]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[^\S\r\n]*(?:AM|PM))?))?|\d+[^\S\r\n]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[^\S\r\n]*(?:AM|PM))?)[^\S\r\n]*#/i,alias:"builtin"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:U?[ILS]|[FRD])?/i,boolean:/\b(?:True|False|Nothing)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Until|Xor)\b/i,operator:[/[+\-*/\\^<=>&#@$%!]/,{pattern:/([^\S\r\n])_(?=[^\S\r\n]*[\r\n])/,lookbehind:!0}],punctuation:/[{}().,:?]/},Prism.languages.vb=Prism.languages["visual-basic"],Prism.languages.vba=Prism.languages["visual-basic"],Prism.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:_INSERT|COL)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:S|ING)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:TRUE|FALSE|NULL)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|IN|ILIKE|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},function(t){t.languages.ruby=t.languages.extend("clike",{comment:[/#.*/,{pattern:/^=begin\s[\s\S]*?^=end/m,greedy:!0}],"class-name":{pattern:/(\b(?:class)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:alias|and|BEGIN|begin|break|case|class|def|define_method|defined|do|each|else|elsif|END|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|protected|private|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/});var e={pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"tag"},rest:t.languages.ruby}};delete t.languages.ruby.function,t.languages.insertBefore("ruby","keyword",{regex:[{pattern:RegExp(/%r/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S])*\)/.source,/\{(?:[^#{}\\]|#(?:\{[^}]+\})?|\\[\s\S])*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S])*\]/.source,/<(?:[^<>\\]|\\[\s\S])*>/.source].join("|")+")"+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:e}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:e}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:{pattern:/(^|[^:]):[a-zA-Z_]\w*(?:[?!]|\b)/,lookbehind:!0},"method-definition":{pattern:/(\bdef\s+)[\w.]+/,lookbehind:!0,inside:{function:/\w+$/,rest:t.languages.ruby}}}),t.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Stat|Fixnum|Float|Hash|Integer|IO|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|String|Struct|TMS|Symbol|ThreadGroup|Thread|Time|TrueClass)\b/,constant:/\b[A-Z]\w*(?:[?!]|\b)/}),t.languages.ruby.string=[{pattern:RegExp(/%[qQiIwWxs]?/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S])*\)/.source,/\{(?:[^#{}\\]|#(?:\{[^}]+\})?|\\[\s\S])*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S])*\]/.source,/<(?:[^<>\\]|\\[\s\S])*>/.source].join("|")+")"),greedy:!0,inside:{interpolation:e}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:e}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|[a-z_]\w*$/i,alias:"symbol",inside:{punctuation:/^<<[-~]?/}},interpolation:e}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|[a-z_]\w*$/i,alias:"symbol",inside:{punctuation:/^<<[-~]?'|'$/}}}}],t.languages.rb=t.languages.ruby}(Prism),Prism.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+/(?:elseif|if)\b/.source+"(?:[ ]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:true|false)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:true|false)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},Prism.languages.swift["string-literal"].forEach(function(t){t.inside.interpolation.inside=Prism.languages.swift}),function(t){var e="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},r={bash:n,environment:{pattern:RegExp("\\$"+e),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+e),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|x[0-9a-fA-F]{1,2}|u[0-9a-fA-F]{4}|U[0-9a-fA-F]{8})/};t.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+e),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:r},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:r.entity}}],environment:{pattern:RegExp("\\$?"+e),alias:"constant"},variable:r.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|aptitude|apt-cache|apt-get|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:if|then|else|elif|fi|for|while|in|case|esac|function|select|do|done|until)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|break|cd|continue|eval|exec|exit|export|getopts|hash|pwd|readonly|return|shift|test|times|trap|umask|unset|alias|bind|builtin|caller|command|declare|echo|enable|help|let|local|logout|mapfile|printf|read|readarray|source|type|typeset|ulimit|unalias|set|shopt)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:true|false)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=t.languages.bash;for(var o=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],i=r.variable[1].inside,a=0;a<o.length;a++)i[o[a]]=t.languages.bash[o[a]];t.languages.shell=t.languages.bash}(Prism),function(t){var e=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(l){return l=l.replace(/<inner>/g,function(){return e}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+l+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,o=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return r}),i=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;t.languages.markdown=t.languages.extend("markup",{}),t.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"font-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:t.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+o+i+"(?:"+o+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+o+i+")(?:"+o+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:t.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+o+")"+i+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+o+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:t.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(l){["url","bold","italic","strike","code-snippet"].forEach(function(c){l!==c&&(t.languages.markdown[l].inside.content.inside[c]=t.languages.markdown[c])})}),t.hooks.add("after-tokenize",function(l){l.language!=="markdown"&&l.language!=="md"||function c(f){if(f&&typeof f!="string")for(var p=0,d=f.length;p<d;p++){var y=f[p];if(y.type==="code"){var g=y.content[1],v=y.content[3];if(g&&v&&g.type==="code-language"&&v.type==="code-block"&&typeof g.content=="string"){var m=g.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),h="language-"+(m=(/[a-z][\w-]*/i.exec(m)||[""])[0].toLowerCase());v.alias?typeof v.alias=="string"?v.alias=[v.alias,h]:v.alias.push(h):v.alias=[h]}}else c(y.content)}}(l.tokens)}),t.hooks.add("wrap",function(l){if(l.type==="code-block"){for(var c="",f=0,p=l.classes.length;f<p;f++){var d=l.classes[f],y=/language-(.+)/.exec(d);if(y){c=y[1];break}}var g=t.languages[c];if(g)l.content=t.highlight(function(m){var h=m.replace(a,"");return h.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(b,w){var E;return(w=w.toLowerCase())[0]==="#"?(E=w[1]==="x"?parseInt(w.slice(2),16):Number(w.slice(1)),s(E)):u[w]||b})}(l.content),g,c);else if(c&&c!=="none"&&t.plugins.autoloader){var v="md-"+new Date().valueOf()+"-"+Math.floor(1e16*Math.random());l.attributes.id=v,t.plugins.autoloader.loadLanguages(c,function(){var m=document.getElementById(v);m&&(m.innerHTML=t.highlight(m.textContent,t.languages[c],c))})}}});var a=RegExp(t.languages.markup.tag.pattern.source,"gi"),u={amp:"&",lt:"<",gt:">",quot:'"'},s=String.fromCodePoint||String.fromCharCode;t.languages.md=t.languages.markdown}(Prism),Prism.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/},Prism.languages.groovy=Prism.languages.extend("clike",{string:[{pattern:/("""|''')(?:[^\\]|\\[\s\S])*?\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0},{pattern:/(["'/])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0}],keyword:/\b(?:as|def|in|abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|trait|transient|try|void|volatile|while)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),Prism.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment"}}),Prism.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:setup|given|when|then|and|cleanup|expect|where):/}),Prism.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),Prism.hooks.add("wrap",function(t){if(t.language==="groovy"&&t.type==="string"){var e=t.content[0];if(e!="'"){var n=/([^\\])(?:\$(?:\{.*?\}|[\w.]+))/;e==="$"&&(n=/([^\$])(?:\$(?:\{.*?\}|[\w.]+))/),t.content=t.content.replace(/&lt;/g,"<").replace(/&amp;/g,"&"),t.content=Prism.highlight(t.content,{expression:{pattern:n,lookbehind:!0,inside:Prism.languages.groovy}}),t.classes.push(e==="/"?"regex":"gstring")}}});var gmt=["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 Zz(t){return typeof t=="string"?t.length:typeof t.content=="string"?t.content.length:t.content.reduce(function(e,n){return e+Zz(n)},0)}var U0,vmt=Nt.String,ii=function(t){if(cx(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return vmt(t)},Jz=function(){var t=no(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},gx=Nt.RegExp,Q3=ln(function(){var t=gx("a","y");return t.lastIndex=2,t.exec("abcd")!=null}),mmt=Q3||ln(function(){return!gx("a","y").sticky}),Qz={BROKEN_CARET:Q3||ln(function(){var t=gx("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),MISSED_STICKY:mmt,UNSUPPORTED_Y:Q3},ymt=jo?Object.defineProperties:function(t,e){no(t);for(var n,r=Vm(e),o=Cg(e),i=o.length,a=0;i>a;)Hm.f(t,n=o[a++],r[n]);return t},bmt=Dh("document","documentElement"),t$=Mz("IE_PROTO"),p4=function(){},e$=function(t){return"<script>"+t+"<\/script>"},tP=function(t){t.write(e$("")),t.close();var e=t.parentWindow.Object;return t=null,e},xg=function(){try{U0=new ActiveXObject("htmlfile")}catch{}var t,e;xg=typeof document<"u"?document.domain&&U0?tP(U0):((e=ix("iframe")).style.display="none",bmt.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(e$("document.F=Object")),t.close(),t.F):tP(U0);for(var n=N1.length;n--;)delete xg.prototype[N1[n]];return xg()};lx[t$]=!0;var eP,h4,wmt=Object.create||function(t,e){var n;return t!==null?(p4.prototype=no(t),n=new p4,p4.prototype=null,n[t$]=t):n=xg(),e===void 0?n:ymt(n,e)},Emt=Nt.RegExp,Dmt=ln(function(){var t=Emt(".","s");return!(t.dotAll&&t.exec(`
  160. `)&&t.flags==="s")}),Cmt=Nt.RegExp,xmt=ln(function(){var t=Cmt("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),Smt=Z3.get,Amt=ex("native-string-replace",String.prototype.replace),I1=RegExp.prototype.exec,t5=I1,Omt=Qt("".charAt),kmt=Qt("".indexOf),Bmt=Qt("".replace),g4=Qt("".slice),v4=(h4=/b*/g,Qe(I1,eP=/a/,"a"),Qe(I1,h4,"a"),eP.lastIndex!==0||h4.lastIndex!==0),nP=Qz.BROKEN_CARET,m4=/()??/.exec("")[1]!==void 0;(v4||m4||nP||Dmt||xmt)&&(t5=function(t){var e,n,r,o,i,a,u,s=this,l=Smt(s),c=ii(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=Qe(t5,f,c),s.lastIndex=f.lastIndex,e;var p=l.groups,d=nP&&s.sticky,y=Qe(Jz,s),g=s.source,v=0,m=c;if(d&&(y=Bmt(y,"y",""),kmt(y,"g")===-1&&(y+="g"),m=g4(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&Omt(c,s.lastIndex-1)!==`
  161. `)&&(g="(?: "+g+")",m=" "+m,v++),n=new RegExp("^(?:"+g+")",y)),m4&&(n=new RegExp("^"+g+"$(?!\\s)",y)),v4&&(r=s.lastIndex),o=Qe(I1,d?n:s,m),d?o?(o.input=g4(o.input,v),o[0]=g4(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:v4&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),m4&&o&&o.length>1&&Qe(Amt,o[0],n,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&p)for(o.groups=a=wmt(null),i=0;i<p.length;i++)a[(u=p[i])[0]]=o[u[1]];return o});var Pp=t5;Um({target:"RegExp",proto:!0,forced:/./.exec!==Pp},{exec:Pp});var vx=Function.prototype,rP=vx.apply,Fmt=vx.bind,oP=vx.call,_mt=typeof Reflect=="object"&&Reflect.apply||(Fmt?oP.bind(rP):function(){return oP.apply(rP,arguments)}),Tmt=Va("species"),y4=RegExp.prototype,Pmt=Va("match"),jmt=Nt.TypeError,Nmt=Va("species"),Imt=Qt("".charAt),iP=Qt("".charCodeAt),Lmt=Qt("".slice),Rmt=function(t){return function(e,n){var r,o,i=ii(ic(e)),a=dx(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=iP(i,a))<55296||r>56319||a+1===u||(o=iP(i,a+1))<56320||o>57343?t?Imt(i,a):r:t?Lmt(i,a,a+2):o-56320+(r-55296<<10)+65536}},Mmt=Rmt(!0),zmt=function(t,e,n){return e+(n?Mmt(t,e).length:1)},$mt=Nt.Array,Hmt=Math.max,aP=function(t,e,n){for(var r,o,i,a,u=px(t),s=J3(e,u),l=J3(n===void 0?u:n,u),c=$mt(Hmt(l-s,0)),f=0;s<l;s++,f++)r=c,o=f,i=t[s],(a=ax(o))in r?Hm.f(r,a,ux(0,i)):r[a]=i;return c.length=f,c},Vmt=Nt.TypeError,uP=function(t,e){var n=t.exec;if(Bn(n)){var r=Qe(n,t,e);return r!==null&&no(r),r}if(Ca(t)==="RegExp")return Qe(Pp,t,e);throw Vmt("RegExp#exec called on incompatible receiver")},rl=Qz.UNSUPPORTED_Y,Umt=Math.min,n$=[].push,Wmt=Qt(/./.exec),ol=Qt(n$),Zf=Qt("".slice);(function(t,e,n,r){var o=Va(t),i=!ln(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),a=i&&!ln(function(){var l=!1,c=/a/;return(c={}).constructor={},c.constructor[Tmt]=function(){return c},c.flags="",c[o]=/./[o],c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||n){var u=Qt(/./[o]),s=function(l,c,f){var p;return p="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(d,y){var g,v,m=ii(ic(this)),h=y===void 0?4294967295:y>>>0;if(h===0)return[];if(d===void 0)return[m];if(!qr(g=d)||!((v=g[Pmt])!==void 0?v:Ca(g)=="RegExp"))return Qe(c,m,d,h);for(var b,w,E,x=[],C=(d.ignoreCase?"i":"")+(d.multiline?"m":"")+(d.unicode?"u":"")+(d.sticky?"y":""),O=0,F=new RegExp(d.source,C+"g");(b=Qe(Pp,F,m))&&!((w=F.lastIndex)>O&&(ol(x,Zf(m,O,b.index)),b.length>1&&b.index<m.length&&_mt(n$,x,aP(b,1)),E=b[0].length,O=w,x.length>=h));)F.lastIndex===b.index&&F.lastIndex++;return O===m.length?!E&&Wmt(F,"")||ol(x,""):ol(x,Zf(m,O)),x.length>h?aP(x,0,h):x}:"0".split(void 0,0).length?function(d,y){return d===void 0&&y===0?[]:Qe(c,this,d,y)}:c,[function(d,y){var g=ic(this),v=d==null?void 0:Rz(d,l);return v?Qe(v,d,g,y):Qe(p,ii(g),d,y)},function(d,y){var g=no(this),v=ii(d),m=f(p,g,v,y,p!==c);if(m.done)return m.value;var h=function(K,U){var W,q=no(K).constructor;return q===void 0||(W=no(q)[Nmt])==null?U:function(nt){if(Wz(nt))return nt;throw jmt(Iz(nt)+" is not a constructor")}(W)}(g,RegExp),b=g.unicode,w=(g.ignoreCase?"i":"")+(g.multiline?"m":"")+(g.unicode?"u":"")+(rl?"g":"y"),E=new h(rl?"^(?:"+g.source+")":g,w),x=y===void 0?4294967295:y>>>0;if(x===0)return[];if(v.length===0)return uP(E,v)===null?[v]:[];for(var C=0,O=0,F=[];O<v.length;){E.lastIndex=rl?0:O;var R,H=uP(E,rl?Zf(v,O):v);if(H===null||(R=Umt(Hz(E.lastIndex+(rl?O:0)),v.length))===C)O=zmt(v,O,b);else{if(ol(F,Zf(v,C,O)),F.length===x)return F;for(var M=1;M<=H.length-1;M++)if(ol(F,H[M]),F.length===x)return F;O=C=R}}return ol(F,Zf(v,C)),F}]}(o,""[t],function(l,c,f,p,d){var y=Qt(l),g=c.exec;return g===Pp||g===y4.exec?i&&!d?{done:!0,value:u(c,f,p)}:{done:!0,value:y(f,c,p)}:{done:!1}});Tp(String.prototype,t,s[0]),Tp(y4,o,s[1])}r&&ac(y4[o],"sham",!0)})("split",0,!!ln(function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return n.length!==2||n[0]!=="a"||n[1]!=="b"}),rl),Um({global:!0},{globalThis:Nt}),Tr&&(B.fn.attr=Tr);var Gmt=$z.PROPER,e5=RegExp.prototype,r$=e5.toString,qmt=Qt(Jz),Kmt=ln(function(){return r$.call({source:"a",flags:"b"})!="/a/b"}),Ymt=Gmt&&r$.name!="toString";(Kmt||Ymt)&&Tp(RegExp.prototype,"toString",function(){var t=no(this),e=ii(t.source),n=t.flags;return"/"+e+"/"+ii(n===void 0&&Nz(e5,t)&&!("flags"in e5)?qmt(t):n)},{unsafe:!0});var Xmt=function(){function t(){this.title=tt("highLightModule.selectLang"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M64 64v896h896V64H64z m487.6 698.8c0 87.2-51.2 127-125.8 127-67.4 0-106.4-34.8-126.4-77l68.6-41.4c13.2 23.4 25.2 43.2 54.2 43.2 27.6 0 45.2-10.8 45.2-53V475.4h84.2v287.4z m199.2 127c-78.2 0-128.8-37.2-153.4-86l68.6-39.6c18 29.4 41.6 51.2 83 51.2 34.8 0 57.2-17.4 57.2-41.6 0-28.8-22.8-39-61.4-56l-21-9c-60.8-25.8-101-58.4-101-127 0-63.2 48.2-111.2 123.2-111.2 53.6 0 92 18.6 119.6 67.4L800 580c-14.4-25.8-30-36-54.2-36-24.6 0-40.2 15.6-40.2 36 0 25.2 15.6 35.4 51.8 51.2l21 9c71.6 30.6 111.8 62 111.8 132.4 0 75.6-59.6 117.2-139.4 117.2z"></path></svg>',this.tag="select",this.width=95,this.selectPanelWidth=115}return t.prototype.getOptions=function(e){var n=[],r=e.getMenuConfig("codeSelectLang").codeLangs,o=r===void 0?[]:r;n.push({text:"plain text",value:""}),o.forEach(function(a){var u=a.text,s=a.value;n.push({text:u,value:s})});var i=this.getValue(e);return n.forEach(function(a){a.value===i?a.selected=!0:delete a.selected}),n},t.prototype.isActive=function(e){return!1},t.prototype.getValue=function(e){var n=this.getSelectCodeElem(e);if(n==null||!ct.isElement(n))return"";var r=n.language.toString(),o=e.getMenuConfig("codeSelectLang").codeLangs;return(o===void 0?[]:o).some(function(i){return i.value===r})?r:""},t.prototype.isDisabled=function(e){return e.selection==null||!this.getSelectCodeElem(e)},t.prototype.exec=function(e,n){if(this.getSelectCodeElem(e)!=null){var r={language:n.toString()};N.setNodes(e,r,{match:function(o){return A.checkNodeType(o,"code")}})}},t.prototype.getSelectCodeElem=function(e){var n=A.getSelectedNodeByType(e,"code");if(n==null)return null;var r=A.getParentNode(e,n);return ct.isElement(r)?r.type!=="pre"?null:n:null},t}(),Zmt={renderStyle:function(t,e){var n=t,r=e,o="";return gmt.forEach(function(i){n[i]&&(o=i)}),o&&function(i,a){i.data==null&&(i.data={});var u=i.data;u.props==null&&(u.props={}),Object.assign(u.props,{className:a})}(r,o="token "+o),r},parseStyleHtml:function(t,e,n){var r=B(t);if(!ct.isElement(e)||A.getNodeType(e)!=="code")return e;var o=e,i=r.attr("class")||"";return i.indexOf("language-")===0?o.language=i.split("-")[1]||"":o.language=i.toLowerCase(),o},menus:[{key:"codeSelectLang",factory:function(){return new Xmt},config:{codeLangs:[{text:"CSS",value:"css"},{text:"HTML",value:"html"},{text:"XML",value:"xml"},{text:"Javascript",value:"javascript"},{text:"Typescript",value:"typescript"},{text:"JSX",value:"jsx"},{text:"Go",value:"go"},{text:"PHP",value:"php"},{text:"C",value:"c"},{text:"Python",value:"python"},{text:"Java",value:"java"},{text:"C++",value:"cpp"},{text:"C#",value:"csharp"},{text:"Visual Basic",value:"visual-basic"},{text:"SQL",value:"sql"},{text:"Ruby",value:"ruby"},{text:"Swift",value:"swift"},{text:"Bash",value:"bash"},{text:"Lua",value:"lua"},{text:"Groovy",value:"groovy"},{text:"Markdown",value:"markdown"}]}}],elemsToHtml:[{type:"code",elemToHtml:function(t,e){var n=t.language,r=n===void 0?"":n;return"<code "+(r?'class="language-'+r+'"':"")+">"+e+"</code>"}}]},Jmt=/"/g,Qmt=Qt("".replace);Um({target:"String",proto:!0,forced:ln(function(){var t="".anchor('"');return t!==t.toLowerCase()||t.split('"').length>3})},{anchor:function(t){return e=t,n=ii(ic(this)),r="<a",(r+=' name="'+Qmt(ii(e),Jmt,"&quot;")+'"')+">"+n+"</a>";var e,n,r}});var o$=function(t){var e,n,r,o=function(m,h){var b=typeof Symbol=="function"&&m[Symbol.iterator];if(!b)return m;var w,E,x=b.call(m),C=[];try{for(;(h===void 0||h-- >0)&&!(w=x.next()).done;)C.push(w.value)}catch(O){E={error:O}}finally{try{w&&!w.done&&(b=x.return)&&b.call(x)}finally{if(E)throw E.error}}return C}(t,2),i=o[0],a=o[1],u=[],s=function(m){if(!ot.isText(m))return null;var h=A.getParentNode(null,m);if(h&&A.getNodeType(h)==="code"){var b=A.getParentNode(null,h);if(b&&A.getNodeType(b)==="pre")return h}return null}(i);if(s==null)return u;var l=s.language,c=l===void 0?"":l;if(!c)return u;var f=function(m,h){if(!h)return[];var b=QT.languages[h];return b?QT.tokenize(m.text,b):[]}(i,c),p=0;try{for(var d=function(m){var h=typeof Symbol=="function"&&Symbol.iterator,b=h&&m[h],w=0;if(b)return b.call(m);if(m&&typeof m.length=="number")return{next:function(){return m&&w>=m.length&&(m=void 0),{value:m&&m[w++],done:!m}}};throw new TypeError(h?"Object is not iterable.":"Symbol.iterator is not defined.")}(f),y=d.next();!y.done;y=d.next()){var g=y.value,v=p+Zz(g);typeof g!="string"&&u.push(((r={})[g.type]=!0,r.anchor={path:a,offset:p},r.focus={path:a,offset:v},r)),p=v}}catch(m){e={error:m}}finally{try{y&&!y.done&&(n=d.return)&&n.call(d)}finally{if(e)throw e.error}}return u},Se=function(){return Se=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Se.apply(this,arguments)},on=function(){function t(){throw new Error(`不能实例化
  162. Can not construct a instance`)}return t.setEditorConfig=function(e){e===void 0&&(e={}),this.editorConfig=Se(Se({},this.editorConfig),e)},t.setSimpleEditorConfig=function(e){e===void 0&&(e={}),this.simpleEditorConfig=Se(Se({},this.simpleEditorConfig),e)},t.setToolbarConfig=function(e){e===void 0&&(e={}),this.toolbarConfig=Se(Se({},this.toolbarConfig),e)},t.setSimpleToolbarConfig=function(e){e===void 0&&(e={}),this.simpleToolbarConfig=Se(Se({},this.simpleToolbarConfig),e)},t.registerPlugin=function(e){this.plugins.push(e)},t.registerMenu=function(e,n){(function(r,o){var i=r.key,a=r.factory,u=r.config,s=Cr(Cr({},u),o||{});if(ep[i]!=null)throw new Error("Duplicated key '"+i+"' in menu items");ep[i]=a,function(l,c){c!=null&&(BN[l]=c)}(i,s)})(e,n)},t.registerRenderElem=function(e){(function(n){var r=n.type,o=n.renderElem;tI[r||""]=o})(e)},t.registerRenderStyle=function(e){(function(n){YE.push(n)})(e)},t.registerElemToHtml=function(e){(function(n){var r=n.type,o=n.elemToHtml;FN[r||""]=o})(e)},t.registerStyleToHtml=function(e){(function(n){HE.push(n)})(e)},t.registerPreParseHtml=function(e){(function(n){KN.push(n)})(e)},t.registerParseElemHtml=function(e){(function(n){var r=n.selector,o=n.parseElemHtml;wv[r]=o})(e)},t.registerParseStyleHtml=function(e){(function(n){kD.push(n)})(e)},t.registerModule=function(e){hu(e)},t.editorConfig={},t.simpleEditorConfig={},t.toolbarConfig={},t.simpleToolbarConfig={},t.plugins=[],t}();/*! *****************************************************************************
  163. Copyright (c) Microsoft Corporation.
  164. Permission to use, copy, modify, and/or distribute this software for any
  165. purpose with or without fee is hereby granted.
  166. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  167. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  168. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  169. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  170. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  171. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  172. PERFORMANCE OF THIS SOFTWARE.
  173. ***************************************************************************** */function hu(t){var e=t.menus,n=t.renderElems,r=t.renderStyle,o=t.elemsToHtml,i=t.styleToHtml,a=t.preParseHtml,u=t.parseElemsHtml,s=t.parseStyleHtml,l=t.editorPlugin;e&&e.forEach(function(c){return on.registerMenu(c)}),n&&n.forEach(function(c){return on.registerRenderElem(c)}),r&&on.registerRenderStyle(r),o&&o.forEach(function(c){return on.registerElemToHtml(c)}),i&&on.registerStyleToHtml(i),a&&a.forEach(function(c){return on.registerPreParseHtml(c)}),u&&u.forEach(function(c){return on.registerParseElemHtml(c)}),s&&on.registerParseStyleHtml(s),l&&on.registerPlugin(l)}iut.forEach(function(t){return hu(t)}),hu(Ilt),hu(sdt),hu(m0t),hu(s1t),hu(Zmt);var i$='<svg viewBox="0 0 1024 1024"><path d="M959.877 128l0.123 0.123v767.775l-0.123 0.122H64.102l-0.122-0.122V128.123l0.122-0.123h895.775zM960 64H64C28.795 64 0 92.795 0 128v768c0 35.205 28.795 64 64 64h896c35.205 0 64-28.795 64-64V128c0-35.205-28.795-64-64-64zM832 288.01c0 53.023-42.988 96.01-96.01 96.01s-96.01-42.987-96.01-96.01S682.967 192 735.99 192 832 234.988 832 288.01zM896 832H128V704l224.01-384 256 320h64l224.01-192z"></path></svg>',a$={link:{menuKeys:["editLink","unLink","viewLink"]},image:{menuKeys:["imageWidth30","imageWidth50","imageWidth100","editImage","viewImageLink","deleteImage"]},pre:{menuKeys:["enter","codeBlock","codeSelectLang"]},table:{menuKeys:["enter","tableHeader","tableFullWidth","insertTableRow","deleteTableRow","insertTableCol","deleteTableCol","deleteTable"]},divider:{menuKeys:["enter"]},video:{menuKeys:["enter","editVideoSize"]}},tyt={hoverbarKeys:Se(Se({},a$),{text:{menuKeys:["headerSelect","insertLink","bulletedList","|","bold","through","color","bgColor","clearStyle"]}})};on.setEditorConfig(Se(Se({},tyt),{decorate:o$}));var eyt={hoverbarKeys:a$};on.setSimpleEditorConfig(Se(Se({},eyt),{decorate:o$}));var nyt={toolbarKeys:["headerSelect","blockquote","|","bold","underline","italic",{key:"group-more-style",title:tt("editor.more"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M204.8 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M505.6 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M806.4 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path></svg>',menuKeys:["through","code","sup","sub","clearStyle"]},"color","bgColor","|","fontSize","fontFamily","lineHeight","|","bulletedList","numberedList","todo",{key:"group-justify",title:tt("editor.justify"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',menuKeys:["justifyLeft","justifyRight","justifyCenter","justifyJustify"]},{key:"group-indent",title:tt("editor.indent"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',menuKeys:["indent","delIndent"]},"|","emotion","insertLink",{key:"group-image",title:tt("editor.image"),iconSvg:i$,menuKeys:["insertImage","uploadImage"]},{key:"group-video",title:tt("editor.video"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M981.184 160.096C837.568 139.456 678.848 128 512 128S186.432 139.456 42.816 160.096C15.296 267.808 0 386.848 0 512s15.264 244.16 42.816 351.904C186.464 884.544 345.152 896 512 896s325.568-11.456 469.184-32.096C1008.704 756.192 1024 637.152 1024 512s-15.264-244.16-42.816-351.904zM384 704V320l320 192-320 192z"></path></svg>',menuKeys:["insertVideo","uploadVideo"]},"insertTable","codeBlock","divider","|","undo","redo","|","fullScreen"]};on.setToolbarConfig(nyt);var ryt={toolbarKeys:["blockquote","header1","header2","header3","|","bold","underline","italic","through","color","bgColor","clearStyle","|","bulletedList","numberedList","todo","justifyLeft","justifyRight","justifyCenter","|","insertLink",{key:"group-image",title:tt("editor.image"),iconSvg:i$,menuKeys:["insertImage","uploadImage"]},"insertVideo","insertTable","codeBlock","|","undo","redo","|","fullScreen"]};function oyt(t){t===void 0&&(t={});var e=t.selector,n=e===void 0?"":e,r=t.content,o=r===void 0?[]:r,i=t.html,a=t.config,u=a===void 0?{}:a,s=t.mode,l=(s===void 0?"default":s)==="simple"?on.simpleEditorConfig:on.editorConfig,c=Se(Se({},l.hoverbarKeys||{}),u.hoverbarKeys||{});return ltt({selector:n,config:Se(Se(Se({},l),u),{hoverbarKeys:c}),content:o,html:i,plugins:on.plugins})}function iyt(t){var e=t.selector,n=t.editor,r=t.config,o=r===void 0?{}:r,i=t.mode,a=i===void 0?"default":i;if(!e)throw new Error("Cannot find 'selector' when create toolbar");var u=a==="simple"?on.simpleToolbarConfig:on.toolbarConfig,s=function(l,c){if(l==null)throw new Error("Cannot create toolbar, because editor is null");var f=c.selector,p=c.config,d=p===void 0?{}:p;if(function(v,m){return ZN(v,"data-w-e-toolbar",m)}(l,f))throw new Error("Repeated create toolbar by selector '"+f+"'");var y=Cr({toolbarKeys:[],excludeKeys:[],insertKeys:{index:0,keys:[]},modalAppendToBody:!1},d||{}),g=new htt(f,y);return bD.set(g,l),am.set(l,g),g}(n,{selector:e,config:Se(Se({},u),o)});return s}on.setSimpleToolbarConfig(ryt);var ayt=Object.defineProperty,uyt=Object.defineProperties,syt=Object.getOwnPropertyDescriptors,sP=Object.getOwnPropertySymbols,lyt=Object.prototype.hasOwnProperty,cyt=Object.prototype.propertyIsEnumerable,lP=(t,e,n)=>e in t?ayt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,fyt=(t,e)=>{for(var n in e||(e={}))lyt.call(e,n)&&lP(t,n,e[n]);if(sP)for(var n of sP(e))cyt.call(e,n)&&lP(t,n,e[n]);return t},dyt=(t,e)=>uyt(t,syt(e));function Ui(t){let e=`请使用 '@${t}' 事件,不要放在 props 中`;return e+=`
  174. Please use '@${t}' event instead of props`,e}var u$=(t,e)=>{for(const[n,r]of e)t[n]=r;return t};const pyt=n5({props:{mode:{type:String,default:"default"},defaultContent:{type:Array,default:[]},defaultHtml:{type:String,default:""},defaultConfig:{type:Object,default:{}},modelValue:{type:String,default:""}},setup(t,e){const n=Nd(null),r=cP(null),o=Nd(""),i=()=>{if(!n.value)return;const u=c$(t.defaultContent);oyt({selector:n.value,mode:t.mode,content:u||[],html:t.defaultHtml||t.modelValue||"",config:dyt(fyt({},t.defaultConfig),{onCreated(s){if(r.value=s,e.emit("onCreated",s),t.defaultConfig.onCreated){const l=Ui("onCreated");throw new Error(l)}},onChange(s){const l=s.getHtml();if(o.value=l,e.emit("update:modelValue",l),e.emit("onChange",s),t.defaultConfig.onChange){const c=Ui("onChange");throw new Error(c)}},onDestroyed(s){if(e.emit("onDestroyed",s),t.defaultConfig.onDestroyed){const l=Ui("onDestroyed");throw new Error(l)}},onMaxLength(s){if(e.emit("onMaxLength",s),t.defaultConfig.onMaxLength){const l=Ui("onMaxLength");throw new Error(l)}},onFocus(s){if(e.emit("onFocus",s),t.defaultConfig.onFocus){const l=Ui("onFocus");throw new Error(l)}},onBlur(s){if(e.emit("onBlur",s),t.defaultConfig.onBlur){const l=Ui("onBlur");throw new Error(l)}},customAlert(s,l){if(e.emit("customAlert",s,l),t.defaultConfig.customAlert){const c=Ui("customAlert");throw new Error(c)}},customPaste:(s,l)=>{if(t.defaultConfig.customPaste){const f=Ui("customPaste");throw new Error(f)}let c;return e.emit("customPaste",s,l,f=>{c=f}),c}})})};function a(u){const s=r.value;s!=null&&s.setHtml(u)}return s$(()=>{i()}),fP(()=>t.modelValue,u=>{u!==o.value&&a(u)}),{box:n}}}),hyt={ref:"box",style:{height:"100%"}};function gyt(t,e,n,r,o,i){return r5(),dP("div",hyt,null,512)}var vyt=u$(pyt,[["render",gyt]]);const myt=n5({props:{editor:{type:Object},mode:{type:String,default:"default"},defaultConfig:{type:Object,default:{}}},setup(t){const e=Nd(null),n=r=>{if(e.value){if(r==null)throw new Error("Not found instance of Editor when create <Toolbar/> component");A.getToolbar(r)||iyt({editor:r,selector:e.value||"<div></div>",mode:t.mode,config:t.defaultConfig})}};return l$(()=>{const{editor:r}=t;r!=null&&n(r)}),{selector:e}}}),yyt={ref:"selector"};function byt(t,e,n,r,o,i){return r5(),dP("div",yyt,null,512)}var wyt=u$(myt,[["render",byt]]);const Eyt={class:"wangEditor",style:{border:"1px solid #dcdfe6"}},Dyt=n5({name:"menuDialog"}),Syt=Object.assign(Dyt,{props:{visible:{type:Boolean,default:!1,required:!0},data:Object},emits:["close"],setup(t,{emit:e}){const{proxy:n}=g$(),r=f$.dictStore.uploadUrl,o=t,i=e,a=Nd(),u=Nd({}),s=(g,v,m)=>{var E,x,C;const h=(C=(x=(E=v==null?void 0:v.replace(/<[^<p>]+>/g,""))==null?void 0:E.replace(/<[</p>$]+>/g,""))==null?void 0:x.replace(/&nbsp;/gi,""))==null?void 0:C.replace(/<[^<br/>]+>/g,""),b="^[ ]+$",w=new RegExp(b);!h||w.test(h)?m("请填写公告内容"):m()},l={title:[{required:!0,message:"请填写公告标题",trigger:"blur"}],content:[{required:!0,validator:s,trigger:"blur"}],type:[{required:!0,message:"请选择公告类型",trigger:"blur"}],enabled:[{required:!0,message:"请选择公告状态",trigger:"blur"}]},c=cP(),f={},p={MENU_CONF:{uploadImage:{server:r,fieldName:"file",customInsert(g,v){g.code===200?(n.$message.success("图片上传成功"),h$([g.data.id]).then(m=>{v(m.data[g.data.id])})):n.$message.error(g.message||"图片上传失败,请重新尝试")}}}},d=g=>{c.value=g},y=async g=>{console.log(u.value),g&&await g.validate(async v=>{v&&(await v$({...u.value}),n.$message.success("提交成功!"),i("close",!0))})};return fP(()=>o.visible,async g=>{var v;g?(v=o.data)!=null&&v.id&&(u.value={...o.data}):(a.value.resetFields(),u.value={})}),(g,v)=>{var O;const m=Ka("el-input"),h=Ka("el-form-item"),b=Ka("el-radio"),w=Ka("el-radio-group"),E=Ka("el-form"),x=Ka("el-button"),C=Ka("el-dialog");return r5(),d$(C,{"model-value":t.visible,title:`${(O=t.data)!=null&&O.id?"编辑":"新增"}公告`,width:"840px","destroy-on-close":"",onClose:v[6]||(v[6]=F=>i("close"))},{footer:xn(()=>[pn(x,{type:"primary",onClick:v[4]||(v[4]=F=>y(a.value))},{default:xn(()=>v[12]||(v[12]=[Ya(" 提交 ")])),_:1}),pn(x,{onClick:v[5]||(v[5]=F=>i("close"))},{default:xn(()=>v[13]||(v[13]=[Ya(" 关闭 ")])),_:1})]),default:xn(()=>[pn(E,{ref_key:"formRef",ref:a,model:u.value,rules:l,"label-width":"auto"},{default:xn(()=>[pn(h,{label:"公告标题",prop:"title"},{default:xn(()=>[pn(m,{modelValue:u.value.title,"onUpdate:modelValue":v[0]||(v[0]=F=>u.value.title=F),placeholder:"请输入"},null,8,["modelValue"])]),_:1}),pn(h,{label:"公告内容",prop:"content"},{default:xn(()=>[p$("div",Eyt,[pn(bx(wyt),{style:{"border-bottom":"1px solid #dcdfe6"},editor:c.value,"default-config":f,mode:"simple"},null,8,["editor"]),pn(bx(vyt),{modelValue:u.value.content,"onUpdate:modelValue":v[1]||(v[1]=F=>u.value.content=F),style:{height:"300px","overflow-y":"hidden",width:"100%"},"default-config":p,mode:"simple",onOnCreated:d},null,8,["modelValue"])])]),_:1}),pn(h,{label:"公告类型",prop:"type"},{default:xn(()=>[pn(w,{modelValue:u.value.type,"onUpdate:modelValue":v[2]||(v[2]=F=>u.value.type=F),class:"ml-4"},{default:xn(()=>[pn(b,{label:1},{default:xn(()=>v[7]||(v[7]=[Ya("通知公告")])),_:1}),pn(b,{label:2},{default:xn(()=>v[8]||(v[8]=[Ya("帮助文档")])),_:1}),pn(b,{label:3},{default:xn(()=>v[9]||(v[9]=[Ya("政策文件")])),_:1})]),_:1},8,["modelValue"])]),_:1}),pn(h,{label:"公告状态",prop:"enabled"},{default:xn(()=>[pn(w,{modelValue:u.value.enabled,"onUpdate:modelValue":v[3]||(v[3]=F=>u.value.enabled=F),class:"ml-4"},{default:xn(()=>[pn(b,{label:!0},{default:xn(()=>v[10]||(v[10]=[Ya("启用")])),_:1}),pn(b,{label:!1},{default:xn(()=>v[11]||(v[11]=[Ya("禁用")])),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["model-value","title"])}}});export{Syt as default};