vue-pure-admin/static/js/index.esm-FDOo6juf.js

187 lines
793 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

var Vz=Object.defineProperty,Uz=Object.defineProperties;var Wz=Object.getOwnPropertyDescriptors;var GC=Object.getOwnPropertySymbols;var Gz=Object.prototype.hasOwnProperty,qz=Object.prototype.propertyIsEnumerable;var Am=(t,e)=>(e=Symbol[t])?e:Symbol.for("Symbol."+t),Kz=t=>{throw TypeError(t)};var qC=(t,e,r)=>e in t?Vz(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Z=(t,e)=>{for(var r in e||(e={}))Gz.call(e,r)&&qC(t,r,e[r]);if(GC)for(var r of GC(e))qz.call(e,r)&&qC(t,r,e[r]);return t},Zt=(t,e)=>Uz(t,Wz(e));var Om=(t,e,r)=>new Promise((n,o)=>{var i=s=>{try{u(r.next(s))}catch(l){o(l)}},a=s=>{try{u(r.throw(s))}catch(l){o(l)}},u=s=>s.done?n(s.value):Promise.resolve(s.value).then(i,a);u((r=r.apply(t,e)).next())}),Yz=function(t,e){this[0]=t,this[1]=e};var km=t=>{var e=t[Am("asyncIterator")],r=!1,n,o={};return e==null?(e=t[Am("iterator")](),n=i=>o[i]=a=>e[i](a)):(e=e.call(t),n=i=>o[i]=a=>{if(r){if(r=!1,i==="throw")throw a;return a}return r=!0,{done:!1,value:new Yz(new Promise(u=>{var s=e[i](a);s instanceof Object||Kz("Object expected"),u(s)}),1)}}),o[Am("iterator")]=()=>o,n("next"),"throw"in e?n("throw"):o.throw=i=>{throw i},"return"in e&&n("return"),o};import{d as H_,k as V_,e as U_,a as Xw,M as Xz,m as Zz,n as Jz,bp as Qz,P as t$}from"./index-DMqaFtX4.js";var se=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function e$(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function ts(t){var e={exports:{}};return t(e,e.exports),e.exports}var bi,Ag,bh=function(t){return t&&t.Math==Math&&t},Bt=bh(typeof globalThis=="object"&&globalThis)||bh(typeof window=="object"&&window)||bh(typeof self=="object"&&self)||bh(typeof se=="object"&&se)||function(){return this}()||Function("return this")(),_3=Function.prototype,KC=_3.apply,r$=_3.bind,YC=_3.call,W_=typeof Reflect=="object"&&Reflect.apply||(r$?YC.bind(KC):function(){return YC.apply(KC,arguments)}),G_=Function.prototype,Zw=G_.bind,Jw=G_.call,n$=Zw&&Zw.bind(Jw),ge=Zw?function(t){return t&&n$(Jw,t)}:function(t){return t&&function(){return Jw.apply(t,arguments)}},hr=function(t){return typeof t=="function"},Gr=function(t){try{return!!t()}catch(e){return!0}},Hr=!Gr(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),bc=Function.prototype.call,en=bc.bind?bc.bind(bc):function(){return bc.apply(bc,arguments)},XC={}.propertyIsEnumerable,ZC=Object.getOwnPropertyDescriptor,o$=ZC&&!XC.call({1:2},1)?function(t){var e=ZC(this,t);return!!e&&e.enumerable}:XC,P3={f:o$},Gn=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},i$=ge({}.toString),a$=ge("".slice),hu=function(t){return a$(i$(t),8,-1)},Bm=Bt.Object,u$=ge("".split),q_=Gr(function(){return!Bm("z").propertyIsEnumerable(0)})?function(t){return hu(t)=="String"?u$(t,""):Bm(t)}:Bm,s$=Bt.TypeError,j3=function(t){if(t==null)throw s$("Can't call method on "+t);return t},Po=function(t){return q_(j3(t))},Dn=function(t){return typeof t=="object"?t!==null:hr(t)},Qr={},JC=function(t){return hr(t)?t:void 0},Yl=function(t,e){return arguments.length<2?JC(Qr[t])||JC(Bt[t]):Qr[t]&&Qr[t][e]||Bt[t]&&Bt[t][e]},Ed=ge({}.isPrototypeOf),Fm=Yl("navigator","userAgent")||"",QC=Bt.process,tx=Bt.Deno,ex=QC&&QC.versions||tx&&tx.version,rx=ex&&ex.v8;rx&&(Ag=(bi=rx.split("."))[0]>0&&bi[0]<4?1:+(bi[0]+bi[1])),!Ag&&Fm&&(!(bi=Fm.match(/Edge\/(\d+)/))||bi[1]>=74)&&(bi=Fm.match(/Chrome\/(\d+)/))&&(Ag=+bi[1]);var wh,av=Ag,lo=!!Object.getOwnPropertySymbols&&!Gr(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&av&&av<41}),N3=lo&&!Symbol.sham&&typeof Symbol.iterator=="symbol",l$=Bt.Object,ul=N3?function(t){return typeof t=="symbol"}:function(t){var e=Yl("Symbol");return hr(e)&&Ed(e.prototype,l$(t))},c$=Bt.String,Qw=function(t){try{return c$(t)}catch(e){return"Object"}},f$=Bt.TypeError,I3=function(t){if(hr(t))return t;throw f$(Qw(t)+" is not a function")},uv=function(t,e){var r=t[e];return r==null?void 0:I3(r)},d$=Bt.TypeError,p$=Object.defineProperty,Ki=Bt["__core-js_shared__"]||function(t,e){try{p$(Bt,t,{value:e,configurable:!0,writable:!0})}catch(r){Bt[t]=e}return e}("__core-js_shared__",{}),es=ts(function(t){(t.exports=function(e,r){return Ki[e]||(Ki[e]=r!==void 0?r:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),h$=Bt.Object,bp=function(t){return h$(j3(t))},g$=ge({}.hasOwnProperty),Ut=Object.hasOwn||function(t,e){return g$(bp(t),e)},v$=0,y$=Math.random(),m$=ge(1 .toString),sv=function(t){return"Symbol("+(t===void 0?"":t)+")_"+m$(++v$+y$,36)},wc=es("wks"),gu=Bt.Symbol,nx=gu&&gu.for,b$=N3?gu:gu&&gu.withoutSetter||sv,Br=function(t){if(!Ut(wc,t)||!lo&&typeof wc[t]!="string"){var e="Symbol."+t;lo&&Ut(gu,t)?wc[t]=gu[t]:wc[t]=N3&&nx?nx(e):b$(e)}return wc[t]},w$=Bt.TypeError,E$=Br("toPrimitive"),D$=function(t,e){if(!Dn(t)||ul(t))return t;var r,n=uv(t,E$);if(n){if(r=en(n,t,e),!Dn(r)||ul(r))return r;throw w$("Can't convert object to primitive value")}return function(o,i){var a,u;if(hr(a=o.toString)&&!Dn(u=en(a,o))||hr(a=o.valueOf)&&!Dn(u=en(a,o)))return u;throw d$("Can't convert object to primitive value")}(t)},Xl=function(t){var e=D$(t,"string");return ul(e)?e:e+""},t4=Bt.document,C$=Dn(t4)&&Dn(t4.createElement),K_=function(t){return C$?t4.createElement(t):{}},Y_=!Hr&&!Gr(function(){return Object.defineProperty(K_("div"),"a",{get:function(){return 7}}).a!=7}),ox=Object.getOwnPropertyDescriptor,x$=Hr?ox:function(t,e){if(t=Po(t),e=Xl(e),Y_)try{return ox(t,e)}catch(r){}if(Ut(t,e))return Gn(!en(P3.f,t,e),t[e])},yy={f:x$},S$=/#|\.prototype\./,wp=function(t,e){var r=O$[A$(t)];return r==B$||r!=k$&&(hr(e)?Gr(e):!!e)},A$=wp.normalize=function(t){return String(t).replace(S$,".").toLowerCase()},O$=wp.data={},k$=wp.NATIVE="N",B$=wp.POLYFILL="P",F$=wp,ix=ge(ge.bind),L3=function(t,e){return I3(t),e===void 0?t:ix?ix(t,e):function(){return t.apply(e,arguments)}},T$=Bt.String,_$=Bt.TypeError,on=function(t){if(Dn(t))return t;throw _$(T$(t)+" is not an object")},P$=Bt.TypeError,ax=Object.defineProperty,j$=Hr?ax:function(t,e,r){if(on(t),e=Xl(e),on(r),Y_)try{return ax(t,e,r)}catch(n){}if("get"in r||"set"in r)throw P$("Accessors not supported");return"value"in r&&(t[e]=r.value),t},Oa={f:j$},_r=Hr?function(t,e,r){return Oa.f(t,e,Gn(1,r))}:function(t,e,r){return t[e]=r,t},N$=yy.f,I$=function(t){var e=function(r,n,o){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(r);case 2:return new t(r,n)}return new t(r,n,o)}return W_(t,this,arguments)};return e.prototype=t.prototype,e},qo=function(t,e){var r,n,o,i,a,u,s,l,c=t.target,f=t.global,d=t.stat,p=t.proto,v=f?Bt:d?Bt[c]:(Bt[c]||{}).prototype,y=f?Qr:Qr[c]||_r(Qr,c,{})[c],g=y.prototype;for(o in e)r=!F$(f?o:c+(d?".":"#")+o,t.forced)&&v&&Ut(v,o),a=y[o],r&&(u=t.noTargetGet?(l=N$(v,o))&&l.value:v[o]),i=r&&u?u:e[o],r&&typeof a==typeof i||(s=t.bind&&r?L3(i,Bt):t.wrap&&r?I$(i):p&&hr(i)?ge(i):i,(t.sham||i&&i.sham||a&&a.sham)&&_r(s,"sham",!0),_r(y,o,s),p&&(Ut(Qr,n=c+"Prototype")||_r(Qr,n,{}),_r(Qr[n],o,i),t.real&&g&&!g[o]&&_r(g,o,i)))},ux=es("keys"),my=function(t){return ux[t]||(ux[t]=sv(t))},L$=!Gr(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),sx=my("IE_PROTO"),e4=Bt.Object,R$=e4.prototype,lv=L$?e4.getPrototypeOf:function(t){var e=bp(t);if(Ut(e,sx))return e[sx];var r=e.constructor;return hr(r)&&e instanceof r?r.prototype:e instanceof e4?R$:null},M$=Bt.String,z$=Bt.TypeError,cv=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=ge(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),e=r instanceof Array}catch(n){}return function(n,o){return on(n),function(i){if(typeof i=="object"||hr(i))return i;throw z$("Can't set "+M$(i)+" as a prototype")}(o),e?t(n,o):n.__proto__=o,n}}():void 0),$$=Math.ceil,H$=Math.floor,R3=function(t){var e=+t;return e!=e||e===0?0:(e>0?H$:$$)(e)},V$=Math.max,U$=Math.min,r4=function(t,e){var r=R3(t);return r<0?V$(r+e,0):U$(r,e)},W$=Math.min,Ep=function(t){return(e=t.length)>0?W$(R3(e),9007199254740991):0;var e},G$=function(t){return function(e,r,n){var o,i=Po(e),a=Ep(i),u=r4(n,a);if(t&&r!=r){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===r)return t||u||0;return!t&&-1}},q$={indexOf:G$(!1)},Dp={},K$=q$.indexOf,lx=ge([].push),X_=function(t,e){var r,n=Po(t),o=0,i=[];for(r in n)!Ut(Dp,r)&&Ut(n,r)&&lx(i,r);for(;e.length>o;)Ut(n,r=e[o++])&&(~K$(i,r)||lx(i,r));return i},fv=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Y$=fv.concat("length","prototype"),X$=Object.getOwnPropertyNames||function(t){return X_(t,Y$)},M3={f:X$},Og={f:Object.getOwnPropertySymbols},Z$=ge([].concat),J$=Yl("Reflect","ownKeys")||function(t){var e=M3.f(on(t)),r=Og.f;return r?Z$(e,r(t)):e},z3=Object.keys||function(t){return X_(t,fv)},Q$=Hr?Object.defineProperties:function(t,e){on(t);for(var r,n=Po(e),o=z3(e),i=o.length,a=0;i>a;)Oa.f(t,r=o[a++],n[r]);return t},tH=Yl("document","documentElement"),Z_=my("IE_PROTO"),Tm=function(){},J_=function(t){return"<script>"+t+"<\/script>"},cx=function(t){t.write(J_("")),t.close();var e=t.parentWindow.Object;return t=null,e},kg=function(){try{wh=new ActiveXObject("htmlfile")}catch(n){}var t,e;kg=typeof document!="undefined"?document.domain&&wh?cx(wh):((e=K_("iframe")).style.display="none",tH.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(J_("document.F=Object")),t.close(),t.F):cx(wh);for(var r=fv.length;r--;)delete kg.prototype[fv[r]];return kg()};Dp[Z_]=!0;var ii=Object.create||function(t,e){var r;return t!==null?(Tm.prototype=on(t),r=new Tm,Tm.prototype=null,r[Z_]=t):r=kg(),e===void 0?r:Q$(r,e)},n4=function(t,e,r){var n=Xl(e);n in t?Oa.f(t,n,Gn(0,r)):t[n]=r},eH=Bt.Array,rH=Math.max,Q_=function(t,e,r){for(var n=Ep(t),o=r4(e,n),i=r4(n,n),a=eH(rH(i-o,0)),u=0;o<i;o++,u++)n4(a,u,t[o]);return a.length=u,a},nH=ge("".replace),oH=ge("".split),iH=ge([].join),o4=String(Error("zxcasd").stack),tP=/\n\s*at [^:]*:[^\n]*/,aH=tP.test(o4),uH=/@[^\n]*\n/.test(o4)&&!/zxcasd/.test(o4),sH=function(t,e){if(typeof t!="string")return t;if(aH)for(;e--;)t=nH(t,tP,"");else if(uH)return iH(Q_(oH(t,`
`),e),`
`);return t},lH=function(t,e){Dn(e)&&"cause"in e&&_r(t,"cause",e.cause)},ei={},cH=Br("iterator"),fH=Array.prototype,eP={};eP[Br("toStringTag")]="z";var $3=String(eP)==="[object z]",dH=Br("toStringTag"),pH=Bt.Object,hH=hu(function(){return arguments}())=="Arguments",Cp=$3?hu:function(t){var e,r,n;return t===void 0?"Undefined":t===null?"Null":typeof(r=function(o,i){try{return o[i]}catch(a){}}(e=pH(t),dH))=="string"?r:hH?hu(e):(n=hu(e))=="Object"&&hr(e.callee)?"Arguments":n},gH=Br("iterator"),fx=function(t){if(t!=null)return uv(t,gH)||uv(t,"@@iterator")||ei[Cp(t)]},vH=Bt.TypeError,dx=function(t,e,r){var n,o;on(t);try{if(!(n=uv(t,"return"))){if(e==="throw")throw r;return r}n=en(n,t)}catch(i){o=!0,n=i}if(e==="throw")throw r;if(o)throw n;return on(n),r},yH=Bt.TypeError,Bg=function(t,e){this.stopped=t,this.result=e},px=Bg.prototype,mH=function(t,e,r){var n,o,i,a,u,s,l,c=r&&r.that,f=!(!r||!r.AS_ENTRIES),d=!(!r||!r.IS_ITERATOR),p=!(!r||!r.INTERRUPTED),v=L3(e,c),y=function(m){return n&&dx(n,"normal",m),new Bg(!0,m)},g=function(m){return f?(on(m),p?v(m[0],m[1],y):v(m[0],m[1])):p?v(m,y):v(m)};if(d)n=t;else{if(!(o=fx(t)))throw yH(Qw(t)+" is not iterable");if(function(m){return m!==void 0&&(ei.Array===m||fH[cH]===m)}(o)){for(i=0,a=Ep(t);a>i;i++)if((u=g(t[i]))&&Ed(px,u))return u;return new Bg(!1)}n=function(m,h){var b=arguments.length<2?fx(m):h;if(I3(b))return on(en(b,m));throw vH(Qw(m)+" is not iterable")}(t,o)}for(s=n.next;!(l=en(s,n)).done;){try{u=g(l.value)}catch(m){dx(n,"throw",m)}if(typeof u=="object"&&u&&Ed(px,u))return u}return new Bg(!1)},bH=Bt.String,Dd=function(t){if(Cp(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return bH(t)},wH=function(t,e){return t===void 0?arguments.length<2?"":e:Dd(t)},EH=!Gr(function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",Gn(1,7)),t.stack!==7)}),DH=Br("toStringTag"),dv=Bt.Error,CH=[].push,Cd=function(t,e){var r,n=arguments.length>2?arguments[2]:void 0,o=Ed(_m,this);cv?r=cv(new dv(void 0),o?lv(this):_m):(r=o?this:ii(_m),_r(r,DH,"Error")),_r(r,"message",wH(e,"")),EH&&_r(r,"stack",sH(r.stack,1)),lH(r,n);var i=[];return mH(t,CH,{that:i}),_r(r,"errors",i),r};cv?cv(Cd,dv):function(t,e){for(var r=J$(e),n=Oa.f,o=yy.f,i=0;i<r.length;i++){var a=r[i];Ut(t,a)||n(t,a,o(e,a))}}(Cd,dv);var _m=Cd.prototype=ii(dv.prototype,{constructor:Gn(1,Cd),message:Gn(1,""),name:Gn(1,"AggregateError")});qo({global:!0},{AggregateError:Cd});var xH=ge(Function.toString);hr(Ki.inspectSource)||(Ki.inspectSource=function(t){return xH(t)});var pv,Zf,hv,rP=Ki.inspectSource,hx=Bt.WeakMap,SH=hr(hx)&&/native code/.test(rP(hx)),i4=Bt.TypeError,AH=Bt.WeakMap;if(SH||Ki.state){var Ma=Ki.state||(Ki.state=new AH),OH=ge(Ma.get),gx=ge(Ma.has),kH=ge(Ma.set);pv=function(t,e){if(gx(Ma,t))throw new i4("Object already initialized");return e.facade=t,kH(Ma,t,e),e},Zf=function(t){return OH(Ma,t)||{}},hv=function(t){return gx(Ma,t)}}else{var ys=my("state");Dp[ys]=!0,pv=function(t,e){if(Ut(t,ys))throw new i4("Object already initialized");return e.facade=t,_r(t,ys,e),e},Zf=function(t){return Ut(t,ys)?t[ys]:{}},hv=function(t){return Ut(t,ys)}}var Hi,vx,yx,Zl={set:pv,get:Zf,has:hv,enforce:function(t){return hv(t)?Zf(t):pv(t,{})},getterFor:function(t){return function(e){var r;if(!Dn(e)||(r=Zf(e)).type!==t)throw i4("Incompatible receiver, "+t+" required");return r}}},nP=Function.prototype,BH=Hr&&Object.getOwnPropertyDescriptor,mx=Ut(nP,"name"),FH={PROPER:mx&&function(){}.name==="something",CONFIGURABLE:mx&&(!Hr||Hr&&BH(nP,"name").configurable)},gv=function(t,e,r,n){_r(t,e,r)},a4=Br("iterator"),oP=!1;[].keys&&("next"in(yx=[].keys())?(vx=lv(lv(yx)))!==Object.prototype&&(Hi=vx):oP=!0);var TH=Hi==null||Gr(function(){var t={};return Hi[a4].call(t)!==t});Hi=TH?{}:ii(Hi),hr(Hi[a4])||gv(Hi,a4,function(){return this});var iP={IteratorPrototype:Hi,BUGGY_SAFARI_ITERATORS:oP},_H=$3?{}.toString:function(){return"[object "+Cp(this)+"]"},PH=Oa.f,bx=Br("toStringTag"),vv=function(t,e,r,n){if(t){var o=r?t:t.prototype;Ut(o,bx)||PH(o,bx,{configurable:!0,value:e}),n&&!$3&&_r(o,"toString",_H)}},jH=iP.IteratorPrototype,NH=function(){return this},IH=FH.PROPER,Pm=iP.BUGGY_SAFARI_ITERATORS,LH=Br("iterator"),RH=function(){return this},aP=function(t,e,r,n,o,i,a){(function(g,m,h,b){var w=m+" Iterator";g.prototype=ii(jH,{next:Gn(1,h)}),vv(g,w,!1,!0),ei[w]=NH})(r,e,n);var u,s,l=function(g){if(g===o&&v)return v;if(!Pm&&g in d)return d[g];switch(g){case"keys":case"values":case"entries":return function(){return new r(this,g)}}return function(){return new r(this)}},c=e+" Iterator",f=!1,d=t.prototype,p=d[LH]||d["@@iterator"]||o&&d[o],v=!Pm&&p||l(o),y=e=="Array"&&d.entries||p;return y&&(u=lv(y.call(new t)))!==Object.prototype&&u.next&&(vv(u,c,!0,!0),ei[c]=RH),IH&&o=="values"&&p&&p.name!=="values"&&(f=!0,v=function(){return en(p,this)}),o&&(s={values:l("values"),keys:l("keys"),entries:l("entries")},a||qo({target:e,proto:!0,forced:Pm||f},s)),ei[e]=v,s},MH=Zl.set,zH=Zl.getterFor("Array Iterator");aP(Array,"Array",function(t,e){MH(this,{type:"Array Iterator",target:Po(t),index:0,kind:e})},function(){var t=zH(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):r=="keys"?{value:n,done:!1}:r=="values"?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}},"values"),ei.Arguments=ei.Array;var $H=ge("".charAt),wx=ge("".charCodeAt),HH=ge("".slice),VH=function(t){return function(e,r){var n,o,i=Dd(j3(e)),a=R3(r),u=i.length;return a<0||a>=u?t?"":void 0:(n=wx(i,a))<55296||n>56319||a+1===u||(o=wx(i,a+1))<56320||o>57343?t?$H(i,a):n:t?HH(i,a,a+2):o-56320+(n-55296<<10)+65536}},UH={charAt:VH(!0)}.charAt,WH=Zl.set,GH=Zl.getterFor("String Iterator");aP(String,"String",function(t){WH(this,{type:"String Iterator",string:Dd(t),index:0})},function(){var t,e=GH(this),r=e.string,n=e.index;return n>=r.length?{value:void 0,done:!0}:(t=UH(r,n),e.index+=t.length,{value:t,done:!1})});var qH=Qr.AggregateError,Ex=Br("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 Dx=Bt[jm],Nm=Dx&&Dx.prototype;Nm&&Cp(Nm)!==Ex&&_r(Nm,Ex,jm),ei[jm]=ei.Array}var wi,Fg,KH=qH,Eh=function(t){return t&&t.Math==Math&&t},Dt=Eh(typeof globalThis=="object"&&globalThis)||Eh(typeof window=="object"&&window)||Eh(typeof self=="object"&&self)||Eh(typeof se=="object"&&se)||function(){return this}()||Function("return this")(),lr=function(t){try{return!!t()}catch(e){return!0}},Ao=!lr(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Ec=Function.prototype.call,pr=Ec.bind?Ec.bind(Ec):function(){return Ec.apply(Ec,arguments)},Cx={}.propertyIsEnumerable,xx=Object.getOwnPropertyDescriptor,YH=xx&&!Cx.call({1:2},1)?function(t){var e=xx(this,t);return!!e&&e.enumerable}:Cx,XH={f:YH},Yi=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},uP=Function.prototype,u4=uP.bind,s4=uP.call,ZH=u4&&u4.bind(s4),oe=u4?function(t){return t&&ZH(s4,t)}:function(t){return t&&function(){return s4.apply(t,arguments)}},JH=oe({}.toString),QH=oe("".slice),vu=function(t){return QH(JH(t),8,-1)},Im=Dt.Object,tV=oe("".split),sP=lr(function(){return!Im("z").propertyIsEnumerable(0)})?function(t){return vu(t)=="String"?tV(t,""):Im(t)}:Im,eV=Dt.TypeError,by=function(t){if(t==null)throw eV("Can't call method on "+t);return t},Jl=function(t){return sP(by(t))},rr=function(t){return typeof t=="function"},vo=function(t){return typeof t=="object"?t!==null:rr(t)},rV=function(t){return rr(t)?t:void 0},xp=function(t,e){return arguments.length<2?rV(Dt[t]):Dt[t]&&Dt[t][e]},yv=oe({}.isPrototypeOf),Lm=xp("navigator","userAgent")||"",Sx=Dt.process,Ax=Dt.Deno,Ox=Sx&&Sx.versions||Ax&&Ax.version,kx=Ox&&Ox.v8;kx&&(Fg=(wi=kx.split("."))[0]>0&&wi[0]<4?1:+(wi[0]+wi[1])),!Fg&&Lm&&(!(wi=Lm.match(/Edge\/(\d+)/))||wi[1]>=74)&&(wi=Lm.match(/Chrome\/(\d+)/))&&(Fg=+wi[1]);var Bx=Fg,l4=!!Object.getOwnPropertySymbols&&!lr(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&Bx&&Bx<41}),H3=l4&&!Symbol.sham&&typeof Symbol.iterator=="symbol",nV=Dt.Object,c4=H3?function(t){return typeof t=="symbol"}:function(t){var e=xp("Symbol");return rr(e)&&yv(e.prototype,nV(t))},oV=Dt.String,f4=function(t){try{return oV(t)}catch(e){return"Object"}},iV=Dt.TypeError,V3=function(t){if(rr(t))return t;throw iV(f4(t)+" is not a function")},xd=function(t,e){var r=t[e];return r==null?void 0:V3(r)},aV=Dt.TypeError,uV=Object.defineProperty,U3=function(t,e){try{uV(Dt,t,{value:e,configurable:!0,writable:!0})}catch(r){Dt[t]=e}return e},Xi=Dt["__core-js_shared__"]||U3("__core-js_shared__",{}),W3=ts(function(t){(t.exports=function(e,r){return Xi[e]||(Xi[e]=r!==void 0?r:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),sV=Dt.Object,G3=function(t){return sV(by(t))},lV=oe({}.hasOwnProperty),Vr=Object.hasOwn||function(t,e){return lV(G3(t),e)},cV=0,fV=Math.random(),dV=oe(1 .toString),lP=function(t){return"Symbol("+(t===void 0?"":t)+")_"+dV(++cV+fV,36)},Dc=W3("wks"),yu=Dt.Symbol,Fx=yu&&yu.for,pV=H3?yu:yu&&yu.withoutSetter||lP,Nr=function(t){if(!Vr(Dc,t)||!l4&&typeof Dc[t]!="string"){var e="Symbol."+t;l4&&Vr(yu,t)?Dc[t]=yu[t]:Dc[t]=H3&&Fx?Fx(e):pV(e)}return Dc[t]},hV=Dt.TypeError,gV=Nr("toPrimitive"),vV=function(t,e){if(!vo(t)||c4(t))return t;var r,n=xd(t,gV);if(n){if(r=pr(n,t,e),!vo(r)||c4(r))return r;throw hV("Can't convert object to primitive value")}return function(o,i){var a,u;if(rr(a=o.toString)&&!vo(u=pr(a,o))||rr(a=o.valueOf)&&!vo(u=pr(a,o)))return u;throw aV("Can't convert object to primitive value")}(t)},q3=function(t){var e=vV(t,"string");return c4(e)?e:e+""},d4=Dt.document,yV=vo(d4)&&vo(d4.createElement),K3=function(t){return yV?d4.createElement(t):{}},cP=!Ao&&!lr(function(){return Object.defineProperty(K3("div"),"a",{get:function(){return 7}}).a!=7}),Tx=Object.getOwnPropertyDescriptor,mV=Ao?Tx:function(t,e){if(t=Jl(t),e=q3(e),cP)try{return Tx(t,e)}catch(r){}if(Vr(t,e))return Yi(!pr(XH.f,t,e),t[e])},Y3={f:mV},bV=Dt.String,wV=Dt.TypeError,an=function(t){if(vo(t))return t;throw wV(bV(t)+" is not an object")},EV=Dt.TypeError,_x=Object.defineProperty,DV=Ao?_x:function(t,e,r){if(an(t),e=q3(e),an(r),cP)try{return _x(t,e,r)}catch(n){}if("get"in r||"set"in r)throw EV("Accessors not supported");return"value"in r&&(t[e]=r.value),t},Ql={f:DV},zr=Ao?function(t,e,r){return Ql.f(t,e,Yi(1,r))}:function(t,e,r){return t[e]=r,t},CV=oe(Function.toString);rr(Xi.inspectSource)||(Xi.inspectSource=function(t){return CV(t)});var mv,Jf,bv,X3=Xi.inspectSource,Px=Dt.WeakMap,xV=rr(Px)&&/native code/.test(X3(Px)),jx=W3("keys"),Z3=function(t){return jx[t]||(jx[t]=lP(t))},J3={},p4=Dt.TypeError,SV=Dt.WeakMap;if(xV||Xi.state){var za=Xi.state||(Xi.state=new SV),AV=oe(za.get),Nx=oe(za.has),OV=oe(za.set);mv=function(t,e){if(Nx(za,t))throw new p4("Object already initialized");return e.facade=t,OV(za,t,e),e},Jf=function(t){return AV(za,t)||{}},bv=function(t){return Nx(za,t)}}else{var ms=Z3("state");J3[ms]=!0,mv=function(t,e){if(Vr(t,ms))throw new p4("Object already initialized");return e.facade=t,zr(t,ms,e),e},Jf=function(t){return Vr(t,ms)?t[ms]:{}},bv=function(t){return Vr(t,ms)}}var Ru={set:mv,get:Jf,has:bv,enforce:function(t){return bv(t)?Jf(t):mv(t,{})},getterFor:function(t){return function(e){var r;if(!vo(e)||(r=Jf(e)).type!==t)throw p4("Incompatible receiver, "+t+" required");return r}}},fP=Function.prototype,kV=Ao&&Object.getOwnPropertyDescriptor,Ix=Vr(fP,"name"),Q3={PROPER:Ix&&function(){}.name==="something",CONFIGURABLE:Ix&&(!Ao||Ao&&kV(fP,"name").configurable)},Mu=ts(function(t){var e=Q3.CONFIGURABLE,r=Ru.get,n=Ru.enforce,o=String(String).split("String");(t.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet,p=s&&s.name!==void 0?s.name:a;rr(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Vr(u,"name")||e&&u.name!==p)&&zr(u,"name",p),(l=n(u)).source||(l.source=o.join(typeof p=="string"?p:""))),i!==Dt?(c?!d&&i[a]&&(f=!0):delete i[a],f?i[a]=u:zr(i,a,u)):f?i[a]=u:U3(a,u)})(Function.prototype,"toString",function(){return rr(this)&&r(this).source||X3(this)})}),BV=Math.ceil,FV=Math.floor,t5=function(t){var e=+t;return e!=e||e===0?0:(e>0?FV:BV)(e)},TV=Math.max,_V=Math.min,h4=function(t,e){var r=t5(t);return r<0?TV(r+e,0):_V(r,e)},PV=Math.min,dP=function(t){return t>0?PV(t5(t),9007199254740991):0},wy=function(t){return dP(t.length)},jV=function(t){return function(e,r,n){var o,i=Jl(e),a=wy(i),u=h4(n,a);if(t&&r!=r){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===r)return t||u||0;return!t&&-1}},NV={indexOf:jV(!1)}.indexOf,Lx=oe([].push),pP=function(t,e){var r,n=Jl(t),o=0,i=[];for(r in n)!Vr(J3,r)&&Vr(n,r)&&Lx(i,r);for(;e.length>o;)Vr(n,r=e[o++])&&(~NV(i,r)||Lx(i,r));return i},wv=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],IV=wv.concat("length","prototype"),LV=Object.getOwnPropertyNames||function(t){return pP(t,IV)},RV={f:LV},MV={f:Object.getOwnPropertySymbols},zV=oe([].concat),$V=xp("Reflect","ownKeys")||function(t){var e=RV.f(an(t)),r=MV.f;return r?zV(e,r(t)):e},hP=function(t,e){for(var r=$V(e),n=Ql.f,o=Y3.f,i=0;i<r.length;i++){var a=r[i];Vr(t,a)||n(t,a,o(e,a))}},HV=/#|\.prototype\./,Sp=function(t,e){var r=UV[VV(t)];return r==GV||r!=WV&&(rr(e)?lr(e):!!e)},VV=Sp.normalize=function(t){return String(t).replace(HV,".").toLowerCase()},UV=Sp.data={},WV=Sp.NATIVE="N",GV=Sp.POLYFILL="P",qV=Sp,KV=Y3.f,Ap=function(t,e){var r,n,o,i,a,u=t.target,s=t.global,l=t.stat;if(r=s?Dt:l?Dt[u]||U3(u,{}):(Dt[u]||{}).prototype)for(n in e){if(i=e[n],o=t.noTargetGet?(a=KV(r,n))&&a.value:r[n],!qV(s?n:u+(l?".":"#")+n,t.forced)&&o!==void 0){if(typeof i==typeof o)continue;hP(i,o)}(t.sham||o&&o.sham)&&zr(i,"sham",!0),Mu(r,n,i,t)}},gP={};gP[Nr("toStringTag")]="z";var Dh,e5=String(gP)==="[object z]",YV=Nr("toStringTag"),XV=Dt.Object,ZV=vu(function(){return arguments}())=="Arguments",Ey=e5?vu:function(t){var e,r,n;return t===void 0?"Undefined":t===null?"Null":typeof(r=function(o,i){try{return o[i]}catch(a){}}(e=XV(t),YV))=="string"?r:ZV?vu(e):(n=vu(e))=="Object"&&rr(e.callee)?"Arguments":n},JV=Dt.String,mu=function(t){if(Ey(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return JV(t)},QV=function(){var t=an(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},r5=Dt.RegExp,vP=lr(function(){var t=r5("a","y");return t.lastIndex=2,t.exec("abcd")!=null});vP||lr(function(){return!r5("a","y").sticky});var tU=vP||lr(function(){var t=r5("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),eU={BROKEN_CARET:tU},rU=Object.keys||function(t){return pP(t,wv)},nU=Ao?Object.defineProperties:function(t,e){an(t);for(var r,n=Jl(e),o=rU(e),i=o.length,a=0;i>a;)Ql.f(t,r=o[a++],n[r]);return t},oU=xp("document","documentElement"),yP=Z3("IE_PROTO"),Rm=function(){},mP=function(t){return"<script>"+t+"<\/script>"},Rx=function(t){t.write(mP("")),t.close();var e=t.parentWindow.Object;return t=null,e},Tg=function(){try{Dh=new ActiveXObject("htmlfile")}catch(n){}var t,e;Tg=typeof document!="undefined"?document.domain&&Dh?Rx(Dh):((e=K3("iframe")).style.display="none",oU.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(mP("document.F=Object")),t.close(),t.F):Rx(Dh);for(var r=wv.length;r--;)delete Tg.prototype[wv[r]];return Tg()};J3[yP]=!0;var Mx,Mm,Op=Object.create||function(t,e){var r;return t!==null?(Rm.prototype=an(t),r=new Rm,Rm.prototype=null,r[yP]=t):r=Tg(),e===void 0?r:nU(r,e)},iU=Dt.RegExp,aU=lr(function(){var t=iU(".","s");return!(t.dotAll&&t.exec(`
`)&&t.flags==="s")}),uU=Dt.RegExp,sU=lr(function(){var t=uU("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),lU=Ru.get,cU=W3("native-string-replace",String.prototype.replace),Ev=RegExp.prototype.exec,g4=Ev,fU=oe("".charAt),dU=oe("".indexOf),pU=oe("".replace),zm=oe("".slice),$m=(Mm=/b*/g,pr(Ev,Mx=/a/,"a"),pr(Ev,Mm,"a"),Mx.lastIndex!==0||Mm.lastIndex!==0),zx=eU.BROKEN_CARET,Hm=/()??/.exec("")[1]!==void 0;($m||Hm||zx||aU||sU)&&(g4=function(t){var e,r,n,o,i,a,u,s=this,l=lU(s),c=mu(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=pr(g4,f,c),s.lastIndex=f.lastIndex,e;var d=l.groups,p=zx&&s.sticky,v=pr(QV,s),y=s.source,g=0,m=c;if(p&&(v=pU(v,"y",""),dU(v,"g")===-1&&(v+="g"),m=zm(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&fU(c,s.lastIndex-1)!==`
`)&&(y="(?: "+y+")",m=" "+m,g++),r=new RegExp("^(?:"+y+")",v)),Hm&&(r=new RegExp("^"+y+"$(?!\\s)",v)),$m&&(n=s.lastIndex),o=pr(Ev,p?r:s,m),p?o?(o.input=zm(o.input,g),o[0]=zm(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:$m&&o&&(s.lastIndex=s.global?o.index+o[0].length:n),Hm&&o&&o.length>1&&pr(cU,o[0],r,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&d)for(o.groups=a=Op(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var Dv=g4;Ap({target:"RegExp",proto:!0,forced:/./.exec!==Dv},{exec:Dv});var hU=Nr("species"),$x=RegExp.prototype,gU=oe("".charAt),Hx=oe("".charCodeAt),vU=oe("".slice),yU=function(t){return function(e,r){var n,o,i=mu(by(e)),a=t5(r),u=i.length;return a<0||a>=u?t?"":void 0:(n=Hx(i,a))<55296||n>56319||a+1===u||(o=Hx(i,a+1))<56320||o>57343?t?gU(i,a):n:t?vU(i,a,a+2):o-56320+(n-55296<<10)+65536}},bP={charAt:yU(!0)},mU=bP.charAt,bU=function(t,e,r){return e+(r?mU(t,e).length:1)},wU=Dt.TypeError,Vx=function(t,e){var r=t.exec;if(rr(r)){var n=pr(r,t,e);return n!==null&&an(n),n}if(vu(t)==="RegExp")return pr(Dv,t,e);throw wU("RegExp#exec called on incompatible receiver")};(function(t,e,r,n){var o=Nr(t),i=!lr(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),a=i&&!lr(function(){var l=!1,c=/a/;return t==="split"&&((c={}).constructor={},c.constructor[hU]=function(){return c},c.flags="",c[o]=/./[o]),c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||r){var u=oe(/./[o]),s=e(o,""[t],function(l,c,f,d,p){var v=oe(l),y=c.exec;return y===Dv||y===$x.exec?i&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:v(f,c,d)}:{done:!1}});Mu(String.prototype,t,s[0]),Mu($x,o,s[1])}})("match",function(t,e,r){return[function(n){var o=by(this),i=n==null?void 0:xd(n,t);return i?pr(i,n,o):new RegExp(n)[t](mu(o))},function(n){var o=an(this),i=mu(n),a=r(e,o,i);if(a.done)return a.value;if(!o.global)return Vx(o,i);var u=o.unicode;o.lastIndex=0;for(var s,l=[],c=0;(s=Vx(o,i))!==null;){var f=mu(s[0]);l[c]=f,f===""&&(o.lastIndex=bU(i,dP(o.lastIndex),u)),c++}return c===0?null:l}]}),Ap({global:!0},{globalThis:Dt});var EU=!lr(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),Ux=Z3("IE_PROTO"),v4=Dt.Object,DU=v4.prototype,Sd=EU?v4.getPrototypeOf:function(t){var e=G3(t);if(Vr(e,Ux))return e[Ux];var r=e.constructor;return rr(r)&&e instanceof r?r.prototype:e instanceof v4?DU:null},CU=Dt.String,xU=Dt.TypeError,wl=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=oe(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),e=r instanceof Array}catch(n){}return function(n,o){return an(n),function(i){if(typeof i=="object"||rr(i))return i;throw xU("Can't set "+CU(i)+" as a prototype")}(o),e?t(n,o):n.__proto__=o,n}}():void 0),SU=Dt.Array,AU=Math.max,OU=oe("".replace),kU=oe("".split),BU=oe([].join),y4=String(Error("zxcasd").stack),wP=/\n\s*at [^:]*:[^\n]*/,FU=wP.test(y4),TU=/@[^\n]*\n/.test(y4)&&!/zxcasd/.test(y4),_U=function(t,e){if(typeof t!="string")return t;if(FU)for(;e--;)t=OU(t,wP,"");else if(TU)return BU(function(r,n,o){for(var i,a,u,s,l=wy(r),c=h4(n,l),f=h4(l,l),d=SU(AU(f-c,0)),p=0;c<f;c++,p++)i=d,a=p,u=r[c],s=void 0,(s=q3(a))in i?Ql.f(i,s,Yi(0,u)):i[s]=u;return d.length=p,d}(kU(t,`
`),e),`
`);return t},PU=function(t,e){vo(e)&&"cause"in e&&zr(t,"cause",e.cause)},Wx=oe(oe.bind),EP=function(t,e){return V3(t),e===void 0?t:Wx?Wx(t,e):function(){return t.apply(e,arguments)}},El={},jU=Nr("iterator"),NU=Array.prototype,IU=Nr("iterator"),Gx=function(t){if(t!=null)return xd(t,IU)||xd(t,"@@iterator")||El[Ey(t)]},LU=Dt.TypeError,qx=function(t,e,r){var n,o;an(t);try{if(!(n=xd(t,"return"))){if(e==="throw")throw r;return r}n=pr(n,t)}catch(i){o=!0,n=i}if(e==="throw")throw r;if(o)throw n;return an(n),r},RU=Dt.TypeError,_g=function(t,e){this.stopped=t,this.result=e},Kx=_g.prototype,MU=function(t,e,r){var n,o,i,a,u,s,l,c=r&&r.that,f=!(!r||!r.AS_ENTRIES),d=!(!r||!r.IS_ITERATOR),p=!(!r||!r.INTERRUPTED),v=EP(e,c),y=function(m){return n&&qx(n,"normal",m),new _g(!0,m)},g=function(m){return f?(an(m),p?v(m[0],m[1],y):v(m[0],m[1])):p?v(m,y):v(m)};if(d)n=t;else{if(!(o=Gx(t)))throw RU(f4(t)+" is not iterable");if(function(m){return m!==void 0&&(El.Array===m||NU[jU]===m)}(o)){for(i=0,a=wy(t);a>i;i++)if((u=g(t[i]))&&yv(Kx,u))return u;return new _g(!1)}n=function(m,h){var b=arguments.length<2?Gx(m):h;if(V3(b))return an(pr(b,m));throw LU(f4(m)+" is not iterable")}(t,o)}for(s=n.next;!(l=pr(s,n)).done;){try{u=g(l.value)}catch(m){qx(n,"throw",m)}if(typeof u=="object"&&u&&yv(Kx,u))return u}return new _g(!1)},zU=function(t,e){return t===void 0?arguments.length<2?"":e:mu(t)},$U=!lr(function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",Yi(1,7)),t.stack!==7)}),HU=Nr("toStringTag"),Cv=Dt.Error,VU=[].push,Ad=function(t,e){var r,n=arguments.length>2?arguments[2]:void 0,o=yv(Vm,this);wl?r=wl(new Cv(void 0),o?Sd(this):Vm):(r=o?this:Op(Vm),zr(r,HU,"Error")),zr(r,"message",zU(e,"")),$U&&zr(r,"stack",_U(r.stack,1)),PU(r,n);var i=[];return MU(t,VU,{that:i}),zr(r,"errors",i),r};wl?wl(Ad,Cv):hP(Ad,Cv);var Vm=Ad.prototype=Op(Cv.prototype,{constructor:Yi(1,Ad),message:Yi(1,""),name:Yi(1,"AggregateError")});Ap({global:!0},{AggregateError:Ad});var m4=Nr("unscopables"),b4=Array.prototype;b4[m4]==null&&Ql.f(b4,m4,{configurable:!0,value:Op(null)});var bu,Yx,Xx,Um=function(t){b4[m4][t]=!0},w4=Nr("iterator"),DP=!1;[].keys&&("next"in(Xx=[].keys())?(Yx=Sd(Sd(Xx)))!==Object.prototype&&(bu=Yx):DP=!0);var UU=bu==null||lr(function(){var t={};return bu[w4].call(t)!==t});UU&&(bu={}),rr(bu[w4])||Mu(bu,w4,function(){return this});var n5={IteratorPrototype:bu,BUGGY_SAFARI_ITERATORS:DP},WU=Ql.f,Zx=Nr("toStringTag"),Jx=function(t,e,r){t&&!Vr(t=r?t:t.prototype,Zx)&&WU(t,Zx,{configurable:!0,value:e})},GU=n5.IteratorPrototype,qU=function(){return this},KU=Q3.PROPER,YU=Q3.CONFIGURABLE,Qx=n5.IteratorPrototype,Wm=n5.BUGGY_SAFARI_ITERATORS,Cc=Nr("iterator"),XU=function(){return this},CP=function(t,e,r,n,o,i,a){(function(g,m,h,b){var w=m+" Iterator";g.prototype=Op(GU,{next:Yi(1,h)}),Jx(g,w,!1),El[w]=qU})(r,e,n);var u,s,l=function(g){if(g===o&&v)return v;if(!Wm&&g in d)return d[g];switch(g){case"keys":case"values":case"entries":return function(){return new r(this,g)}}return function(){return new r(this)}},c=e+" Iterator",f=!1,d=t.prototype,p=d[Cc]||d["@@iterator"]||o&&d[o],v=!Wm&&p||l(o),y=e=="Array"&&d.entries||p;return y&&(u=Sd(y.call(new t)))!==Object.prototype&&u.next&&(Sd(u)!==Qx&&(wl?wl(u,Qx):rr(u[Cc])||Mu(u,Cc,XU)),Jx(u,c,!0)),KU&&o=="values"&&p&&p.name!=="values"&&(YU?zr(d,"name","values"):(f=!0,v=function(){return pr(p,this)})),o&&(s={values:l("values"),keys:l("keys"),entries:l("entries")},a||Ap({target:e,proto:!0,forced:Wm||f},s)),d[Cc]!==v&&Mu(d,Cc,v,{name:o}),El[e]=v,s},ZU=Ru.set,JU=Ru.getterFor("Array Iterator"),$f=CP(Array,"Array",function(t,e){ZU(this,{type:"Array Iterator",target:Jl(t),index:0,kind:e})},function(){var t=JU(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):r=="keys"?{value:n,done:!1}:r=="values"?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}},"values");El.Arguments=El.Array,Um("keys"),Um("values"),Um("entries");var QU=bP.charAt,tW=Ru.set,eW=Ru.getterFor("String Iterator");CP(String,"String",function(t){tW(this,{type:"String Iterator",string:mu(t),index:0})},function(){var t,e=eW(this),r=e.string,n=e.index;return n>=r.length?{value:void 0,done:!0}:(t=QU(r,n),e.index+=t.length,{value:t,done:!1})});var Gm,xv={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},qm=K3("span").classList,tS=qm&&qm.constructor&&qm.constructor.prototype,xP=tS===Object.prototype?void 0:tS,Km=Nr("iterator"),eS=Nr("toStringTag"),Ym=$f.values,SP=function(t,e){if(t){if(t[Km]!==Ym)try{zr(t,Km,Ym)}catch(n){t[Km]=Ym}if(t[eS]||zr(t,eS,e),xv[e]){for(var r in $f)if(t[r]!==$f[r])try{zr(t,r,$f[r])}catch(n){t[r]=$f[r]}}}};for(var Xm in xv)SP(Dt[Xm]&&Dt[Xm].prototype,Xm);SP(xP,"DOMTokenList"),typeof global=="undefined"?("ActiveXObject"in window&&console.error(`抱歉wangEditor V5+ 版本开始,不在支持 IE 浏览器
Sorry, wangEditor V5+ versions do not support IE browser.`),rS(),nS()):global&&(!((Gm=global.navigator)===null||Gm===void 0)&&Gm.userAgent.match("QQBrowser"))&&(rS(),nS());function rS(){typeof globalThis=="undefined"&&(window.globalThis=window)}function nS(){KH===void 0&&(window.AggregateError=function(t,e){var r=new Error(e);return r.errors=t,r})}var oS,Sv=Array.isArray||function(t){return hu(t)=="Array"},AP=function(){},rW=[],OP=Yl("Reflect","construct"),o5=/^\s*(?:class|function)\b/,nW=ge(o5.exec),oW=!o5.exec(AP),xc=function(t){if(!hr(t))return!1;try{return OP(AP,rW,t),!0}catch(e){return!1}},iW=!OP||Gr(function(){var t;return xc(xc.call)||!xc(Object)||!xc(function(){t=!0})||t})?function(t){if(!hr(t))return!1;switch(Cp(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return oW||!!nW(o5,rP(t))}:xc,aW=Br("species"),iS=Bt.Array,kP=function(t,e){return new(function(r){var n;return Sv(r)&&(n=r.constructor,(iW(n)&&(n===iS||Sv(n.prototype))||Dn(n)&&(n=n[aW])===null)&&(n=void 0)),n===void 0?iS:n}(t))(e===0?0:e)},uW=Br("species"),BP=Br("isConcatSpreadable"),aS=Bt.TypeError,sW=av>=51||!Gr(function(){var t=[];return t[BP]=!1,t.concat()[0]!==t}),lW=(oS="concat",av>=51||!Gr(function(){var t=[];return(t.constructor={})[uW]=function(){return{foo:1}},t[oS](Boolean).foo!==1})),cW=function(t){if(!Dn(t))return!1;var e=t[BP];return e!==void 0?!!e:Sv(t)};qo({target:"Array",proto:!0,forced:!sW||!lW},{concat:function(t){var e,r,n,o,i,a=bp(this),u=kP(a,0),s=0;for(e=-1,n=arguments.length;e<n;e++)if(cW(i=e===-1?a:arguments[e])){if(s+(o=Ep(i))>9007199254740991)throw aS("Maximum allowed index exceeded");for(r=0;r<o;r++,s++)r in i&&n4(u,s,i[r])}else{if(s>=9007199254740991)throw aS("Maximum allowed index exceeded");n4(u,s++,i)}return u.length=s,u}});var uS=M3.f,sS=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],FP={f:function(t){return sS&&hu(t)=="Window"?function(e){try{return uS(e)}catch(r){return Q_(sS)}}(t):uS(Po(t))}},fW=ge([].slice),i5={f:Br},dW=Oa.f,Ne=function(t){var e=Qr.Symbol||(Qr.Symbol={});Ut(e,t)||dW(e,t,{value:i5.f(t)})},lS=ge([].push),pW=function(t){var e=t==1,r=t==2,n=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var d,p,v=bp(s),y=q_(v),g=L3(l,c),m=Ep(y),h=0,b=f||kP,w=e?b(s,m):r||a?b(s,0):void 0;m>h;h++)if((u||h in y)&&(p=g(d=y[h],h,v),t))if(e)w[h]=p;else if(p)switch(t){case 3:return!0;case 5:return d;case 6:return h;case 2:lS(w,d)}else switch(t){case 4:return!1;case 7:lS(w,d)}return i?-1:n||o?o:w}},Dy={forEach:pW(0)}.forEach,Rr=my("hidden"),cS=Br("toPrimitive"),hW=Zl.set,fS=Zl.getterFor("Symbol"),Vn=Object.prototype,Ri=Bt.Symbol,Vi=Ri&&Ri.prototype,dS=Bt.TypeError,Zm=Bt.QObject,Sc=Yl("JSON","stringify"),TP=yy.f,Mi=Oa.f,_P=FP.f,gW=P3.f,PP=ge([].push),ai=es("symbols"),kp=es("op-symbols"),Jm=es("string-to-symbol-registry"),Qm=es("symbol-to-string-registry"),vW=es("wks"),t1=!Zm||!Zm.prototype||!Zm.prototype.findChild,E4=Hr&&Gr(function(){return ii(Mi({},"a",{get:function(){return Mi(this,"a",{value:7}).a}})).a!=7})?function(t,e,r){var n=TP(Vn,e);n&&delete Vn[e],Mi(t,e,r),n&&t!==Vn&&Mi(Vn,e,n)}:Mi,e1=function(t,e){var r=ai[t]=ii(Vi);return hW(r,{type:"Symbol",tag:t,description:e}),Hr||(r.description=e),r},Av=function(t,e,r){t===Vn&&Av(kp,e,r),on(t);var n=Xl(e);return on(r),Ut(ai,n)?(r.enumerable?(Ut(t,Rr)&&t[Rr][n]&&(t[Rr][n]=!1),r=ii(r,{enumerable:Gn(0,!1)})):(Ut(t,Rr)||Mi(t,Rr,Gn(1,{})),t[Rr][n]=!0),E4(t,n,r)):Mi(t,n,r)},pS=function(t,e){on(t);var r=Po(e),n=z3(r).concat(D4(r));return Dy(n,function(o){Hr&&!en(jP,r,o)||Av(t,o,r[o])}),t},jP=function(t){var e=Xl(t),r=en(gW,this,e);return!(this===Vn&&Ut(ai,e)&&!Ut(kp,e))&&(!(r||!Ut(this,e)||!Ut(ai,e)||Ut(this,Rr)&&this[Rr][e])||r)},hS=function(t,e){var r=Po(t),n=Xl(e);if(r!==Vn||!Ut(ai,n)||Ut(kp,n)){var o=TP(r,n);return!o||!Ut(ai,n)||Ut(r,Rr)&&r[Rr][n]||(o.enumerable=!0),o}},gS=function(t){var e=_P(Po(t)),r=[];return Dy(e,function(n){Ut(ai,n)||Ut(Dp,n)||PP(r,n)}),r},D4=function(t){var e=t===Vn,r=_P(e?kp:Po(t)),n=[];return Dy(r,function(o){!Ut(ai,o)||e&&!Ut(Vn,o)||PP(n,ai[o])}),n};if(lo||(Vi=(Ri=function(){if(Ed(Vi,this))throw dS("Symbol is not a constructor");var t=arguments.length&&arguments[0]!==void 0?Dd(arguments[0]):void 0,e=sv(t),r=function(n){this===Vn&&en(r,kp,n),Ut(this,Rr)&&Ut(this[Rr],e)&&(this[Rr][e]=!1),E4(this,e,Gn(1,n))};return Hr&&t1&&E4(Vn,e,{configurable:!0,set:r}),e1(e,t)}).prototype,gv(Vi,"toString",function(){return fS(this).tag}),gv(Ri,"withoutSetter",function(t){return e1(sv(t),t)}),P3.f=jP,Oa.f=Av,yy.f=hS,M3.f=FP.f=gS,Og.f=D4,i5.f=function(t){return e1(Br(t),t)},Hr&&Mi(Vi,"description",{configurable:!0,get:function(){return fS(this).description}})),qo({global:!0,wrap:!0,forced:!lo,sham:!lo},{Symbol:Ri}),Dy(z3(vW),function(t){Ne(t)}),qo({target:"Symbol",stat:!0,forced:!lo},{for:function(t){var e=Dd(t);if(Ut(Jm,e))return Jm[e];var r=Ri(e);return Jm[e]=r,Qm[r]=e,r},keyFor:function(t){if(!ul(t))throw dS(t+" is not a symbol");if(Ut(Qm,t))return Qm[t]},useSetter:function(){t1=!0},useSimple:function(){t1=!1}}),qo({target:"Object",stat:!0,forced:!lo,sham:!Hr},{create:function(t,e){return e===void 0?ii(t):pS(ii(t),e)},defineProperty:Av,defineProperties:pS,getOwnPropertyDescriptor:hS}),qo({target:"Object",stat:!0,forced:!lo},{getOwnPropertyNames:gS,getOwnPropertySymbols:D4}),qo({target:"Object",stat:!0,forced:Gr(function(){Og.f(1)})},{getOwnPropertySymbols:function(t){return Og.f(bp(t))}}),Sc){var yW=!lo||Gr(function(){var t=Ri();return Sc([t])!="[null]"||Sc({a:t})!="{}"||Sc(Object(t))!="{}"});qo({target:"JSON",stat:!0,forced:yW},{stringify:function(t,e,r){var n=fW(arguments),o=e;if((Dn(e)||t!==void 0)&&!ul(t))return Sv(e)||(e=function(i,a){if(hr(o)&&(a=en(o,this,i,a)),!ul(a))return a}),n[1]=e,W_(Sc,null,n)}})}if(!Vi[cS]){var mW=Vi.valueOf;gv(Vi,cS,function(t){return en(mW,this)})}vv(Ri,"Symbol"),Dp[Rr]=!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"),vv(Bt.JSON,"JSON",!0);var bW=Qr.Symbol;Ne("asyncDispose"),Ne("dispose"),Ne("matcher"),Ne("metadata"),Ne("observable"),Ne("patternMatch"),Ne("replaceAll");var Ch=bW,wW=i5.f("iterator"),EW=ts(function(t){function e(r){return typeof Ch=="function"&&typeof wW=="symbol"?(t.exports=e=function(n){return typeof n},t.exports.default=t.exports,t.exports.__esModule=!0):(t.exports=e=function(n){return n&&typeof Ch=="function"&&n.constructor===Ch&&n!==Ch.prototype?"symbol":typeof n},t.exports.default=t.exports,t.exports.__esModule=!0),e(r)}t.exports=e,t.exports.default=t.exports,t.exports.__esModule=!0}),DW=e$(EW),NP=Y3.f,CW=lr(function(){NP(1)});if(Ap({target:"Object",stat:!0,forced:!Ao||CW,sham:!Ao},{getOwnPropertyDescriptor:function(t,e){return NP(Jl(t),e)}}),(typeof global=="undefined"?"undefined":DW(global))==="object"){var xW=Object.getOwnPropertyDescriptor(global,"window");global.window&&!xW.set||(global.window=global,global.requestAnimationFrame=function(){},global.navigator={userAgent:""},global.location={hostname:"0.0.0.0",port:0,protocol:"http:"},global.btoa=function(){},global.crypto={getRandomValues:function(t){return nodeCrypto.randomFillSync(t)}}),global.document!=null&&global.document.getElementsByTagName==null&&(global.document.getElementsByTagName=function(){return[]})}/*!
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
*
* Copyright (c) 2014-2017, Jon Schlinkert.
* Released under the MIT License.
*/function vS(t){return Object.prototype.toString.call(t)==="[object Object]"}function Cr(t){var e,r;return vS(t)!==!1&&((e=t.constructor)===void 0||vS(r=e.prototype)!==!1&&r.hasOwnProperty("isPrototypeOf")!==!1)}function Hn(t){for(var e=arguments.length,r=Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];throw Error("[Immer] minified error nr: "+t+(r.length?" "+r.map(function(o){return"'"+o+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function zu(t){return!!t&&!!t[un]}function $u(t){return!!t&&(function(e){if(!e||typeof e!="object")return!1;var r=Object.getPrototypeOf(e);if(r===null)return!0;var n=Object.hasOwnProperty.call(r,"constructor")&&r.constructor;return n===Object||typeof n=="function"&&Function.toString.call(n)===FW}(t)||Array.isArray(t)||!!t[xS]||!!t.constructor[xS]||a5(t)||u5(t))}function Od(t,e,r){r===void 0&&(r=!1),Dl(t)===0?(r?Object.keys:d5)(t).forEach(function(n){r&&typeof n=="symbol"||e(n,t[n],t)}):t.forEach(function(n,o){return e(o,n,t)})}function Dl(t){var e=t[un];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:a5(t)?2:u5(t)?3:0}function C4(t,e){return Dl(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function IP(t,e,r){var n=Dl(t);n===2?t.set(e,r):n===3?(t.delete(e),t.add(r)):t[e]=r}function a5(t){return kW&&t instanceof Map}function u5(t){return BW&&t instanceof Set}function Ja(t){return t.o||t.t}function s5(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=TW(t);delete e[un];for(var r=d5(e),n=0;n<r.length;n++){var o=r[n],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 l5(t,e){return e===void 0&&(e=!1),c5(t)||zu(t)||!$u(t)||(Dl(t)>1&&(t.set=t.add=t.clear=t.delete=SW),Object.freeze(t),e&&Od(t,function(r,n){return l5(n,!0)},!0)),t}function SW(){Hn(2)}function c5(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function ri(t){var e=_W[t];return e||Hn(18,t),e}function yS(){return kd}function r1(t,e){e&&(ri("Patches"),t.u=[],t.s=[],t.v=e)}function Ov(t){x4(t),t.p.forEach(AW),t.p=null}function x4(t){t===kd&&(kd=t.l)}function mS(t){return kd={p:[],l:kd,h:t,m:!0,_:0}}function AW(t){var e=t[un];e.i===0||e.i===1?e.j():e.O=!0}function n1(t,e){e._=e.p.length;var r=e.p[0],n=t!==void 0&&t!==r;return e.h.g||ri("ES5").S(e,t,n),n?(r[un].P&&(Ov(e),Hn(4)),$u(t)&&(t=kv(e,t),e.l||Bv(e,t)),e.u&&ri("Patches").M(r[un],t,e.u,e.s)):t=kv(e,r,[]),Ov(e),e.u&&e.v(e.u,e.s),t!==LP?t:void 0}function kv(t,e,r){if(c5(e))return e;var n=e[un];if(!n)return Od(e,function(i,a){return bS(t,n,e,i,a,r)},!0),e;if(n.A!==t)return e;if(!n.P)return Bv(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var o=n.i===4||n.i===5?n.o=s5(n.k):n.o;Od(n.i===3?new Set(o):o,function(i,a){return bS(t,n,o,i,a,r)}),Bv(t,o,!1),r&&t.u&&ri("Patches").R(n,r,t.u,t.s)}return n.o}function bS(t,e,r,n,o,i){if(zu(o)){var a=kv(t,o,i&&e&&e.i!==3&&!C4(e.D,n)?i.concat(n):void 0);if(IP(r,n,a),!zu(a))return;t.m=!1}if($u(o)&&!c5(o)){if(!t.h.F&&t._<1)return;kv(t,o),e&&e.A.l||Bv(t,o)}}function Bv(t,e,r){r===void 0&&(r=!1),t.h.F&&t.m&&l5(e,r)}function o1(t,e){var r=t[un];return(r?Ja(r):t)[e]}function wS(t,e){if(e in t)for(var r=Object.getPrototypeOf(t);r;){var n=Object.getOwnPropertyDescriptor(r,e);if(n)return n;r=Object.getPrototypeOf(r)}}function S4(t){t.P||(t.P=!0,t.l&&S4(t.l))}function i1(t){t.o||(t.o=s5(t.t))}function A4(t,e,r){var n=a5(e)?ri("MapSet").N(e,r):u5(e)?ri("MapSet").T(e,r):t.g?function(o,i){var a=Array.isArray(o),u={i:a?1:0,A:i?i.A:yS(),P:!1,I:!1,D:{},l:i,t:o,k:null,o:null,j:null,C:!1},s=u,l=Pg;a&&(s=[u],l=jg);var c=Proxy.revocable(s,l),f=c.revoke,d=c.proxy;return u.k=d,u.j=f,d}(e,r):ri("ES5").J(e,r);return(r?r.A:yS()).p.push(n),n}function OW(t){return zu(t)||Hn(22,t),function e(r){if(!$u(r))return r;var n,o=r[un],i=Dl(r);if(o){if(!o.P&&(o.i<4||!ri("ES5").K(o)))return o.t;o.I=!0,n=ES(r,i),o.I=!1}else n=ES(r,i);return Od(n,function(a,u){o&&function(s,l){return Dl(s)===2?s.get(l):s[l]}(o.t,a)===u||IP(n,a,e(u))}),i===3?new Set(n):n}(t)}function ES(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return s5(t)}var DS,kd,f5=typeof Symbol!="undefined"&&typeof Symbol("x")=="symbol",kW=typeof Map!="undefined",BW=typeof Set!="undefined",CS=typeof Proxy!="undefined"&&Proxy.revocable!==void 0&&typeof Reflect!="undefined",LP=f5?Symbol.for("immer-nothing"):((DS={})["immer-nothing"]=!0,DS),xS=f5?Symbol.for("immer-draftable"):"__$immer_draftable",un=f5?Symbol.for("immer-state"):"__$immer_state",FW=""+Object.prototype.constructor,d5=typeof Reflect!="undefined"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,TW=Object.getOwnPropertyDescriptors||function(t){var e={};return d5(t).forEach(function(r){e[r]=Object.getOwnPropertyDescriptor(t,r)}),e},_W={},Pg={get:function(t,e){if(e===un)return t;var r=Ja(t);if(!C4(r,e))return function(o,i,a){var u,s=wS(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,r,e);var n=r[e];return t.I||!$u(n)?n:n===o1(t.t,e)?(i1(t),t.o[e]=A4(t.A.h,n,t)):n},has:function(t,e){return e in Ja(t)},ownKeys:function(t){return Reflect.ownKeys(Ja(t))},set:function(t,e,r){var n=wS(Ja(t),e);if(n!=null&&n.set)return n.set.call(t.k,r),!0;if(!t.P){var o=o1(Ja(t),e),i=o==null?void 0:o[un];if(i&&i.t===r)return t.o[e]=r,t.D[e]=!1,!0;if(function(a,u){return a===u?a!==0||1/a==1/u:a!=a&&u!=u}(r,o)&&(r!==void 0||C4(t.t,e)))return!0;i1(t),S4(t)}return t.o[e]===r&&typeof r!="number"&&(r!==void 0||e in t.o)||(t.o[e]=r,t.D[e]=!0,!0)},deleteProperty:function(t,e){return o1(t.t,e)!==void 0||e in t.t?(t.D[e]=!1,i1(t),S4(t)):delete t.D[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var r=Ja(t),n=Reflect.getOwnPropertyDescriptor(r,e);return n&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:n.enumerable,value:r[e]}},defineProperty:function(){Hn(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Hn(12)}},jg={};Od(Pg,function(t,e){jg[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),jg.deleteProperty=function(t,e){return Pg.deleteProperty.call(this,t[0],e)},jg.set=function(t,e,r){return Pg.set.call(this,t[0],e,r,t[0])};var PW=function(){function t(r){var n=this;this.g=CS,this.F=!0,this.produce=function(o,i,a){if(typeof o=="function"&&typeof i!="function"){var u=i;i=o;var s=n;return function(p){var v=this;p===void 0&&(p=u);for(var y=arguments.length,g=Array(y>1?y-1:0),m=1;m<y;m++)g[m-1]=arguments[m];return s.produce(p,function(h){var b;return(b=i).call.apply(b,[v,h].concat(g))})}}var l;if(typeof i!="function"&&Hn(6),a!==void 0&&typeof a!="function"&&Hn(7),$u(o)){var c=mS(n),f=A4(n,o,void 0),d=!0;try{l=i(f),d=!1}finally{d?Ov(c):x4(c)}return typeof Promise!="undefined"&&l instanceof Promise?l.then(function(p){return r1(c,a),n1(p,c)},function(p){throw Ov(c),p}):(r1(c,a),n1(l,c))}if(!o||typeof o!="object")return(l=i(o))===LP?void 0:(l===void 0&&(l=o),n.F&&l5(l,!0),l);Hn(21,o)},this.produceWithPatches=function(o,i){return typeof o=="function"?function(s){for(var l=arguments.length,c=Array(l>1?l-1:0),f=1;f<l;f++)c[f-1]=arguments[f];return n.produceWithPatches(s,function(d){return o.apply(void 0,[d].concat(c))})}:[n.produce(o,i,function(s,l){a=s,u=l}),a,u];var a,u},typeof(r==null?void 0:r.useProxies)=="boolean"&&this.setUseProxies(r.useProxies),typeof(r==null?void 0:r.autoFreeze)=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var e=t.prototype;return e.createDraft=function(r){$u(r)||Hn(8),zu(r)&&(r=OW(r));var n=mS(this),o=A4(this,r,void 0);return o[un].C=!0,x4(n),o},e.finishDraft=function(r,n){var o=(r&&r[un]).A;return r1(o,n),n1(void 0,o)},e.setAutoFreeze=function(r){this.F=r},e.setUseProxies=function(r){r&&!CS&&Hn(20),this.g=r},e.applyPatches=function(r,n){var o;for(o=n.length-1;o>=0;o--){var i=n[o];if(i.path.length===0&&i.op==="replace"){r=i.value;break}}o>-1&&(n=n.slice(o+1));var a=ri("Patches").$;return zu(r)?a(r,n):this.produce(r,function(u){return a(u,n)})},t}(),Zr=new PW,Cy=Zr.produce;Zr.produceWithPatches.bind(Zr),Zr.setAutoFreeze.bind(Zr),Zr.setUseProxies.bind(Zr),Zr.applyPatches.bind(Zr);var SS=Zr.createDraft.bind(Zr),AS=Zr.finishDraft.bind(Zr);function jo(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Fv=new WeakMap,Ac=new WeakMap,OS=new WeakMap,kS=new WeakMap,BS=new WeakMap,FS=new WeakMap;function TS(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),r.push.apply(r,n)}return r}function xh(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?TS(Object(r),!0).forEach(function(n){jo(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):TS(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}var jW=()=>{var t={children:[],operations:[],selection:null,marks:null,isInline:()=>!1,isVoid:()=>!1,onChange:()=>{},apply:e=>{for(var r of E.pathRefs(t))cG.transform(r,e);for(var n of E.pointRefs(t))fG.transform(n,e);for(var o of E.rangeRefs(t))pG.transform(o,e);var i=new Set,a=[],u=d=>{if(d){var p=d.join(",");i.has(p)||(i.add(p),a.push(d))}},s=Fv.get(t)||[],l=NW(e);for(var c of s)u(j.transform(c,e));for(var f of l)u(f);Fv.set(t,a),N.transform(t,e),t.operations.push(e),E.normalize(t),e.type==="set_selection"&&(t.marks=null),Ac.get(t)||(Ac.set(t,!0),Promise.resolve().then(()=>{Ac.set(t,!1),t.onChange(),t.operations=[]}))},addMark:(e,r)=>{var{selection:n}=t;if(n)if(L.isExpanded(n))N.setNodes(t,{[e]:r},{match:it.isText,split:!0});else{var o=xh(xh({},E.marks(t)||{}),{},{[e]:r});t.marks=o,Ac.get(t)||t.onChange()}},deleteBackward:e=>{var{selection:r}=t;r&&L.isCollapsed(r)&&N.delete(t,{unit:e,reverse:!0})},deleteForward:e=>{var{selection:r}=t;r&&L.isCollapsed(r)&&N.delete(t,{unit:e})},deleteFragment:e=>{var{selection:r}=t;r&&L.isExpanded(r)&&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:r,marks:n}=t;if(r){if(n){var o=xh({text:e},n);N.insertNodes(t,o)}else N.insertText(t,e);t.marks=null}},normalizeNode:e=>{var[r,n]=e;if(!it.isText(r))if(ft.isElement(r)&&r.children.length===0)N.insertNodes(t,{text:""},{at:n.concat(0),voids:!0});else for(var o=!E.isEditor(r)&&ft.isElement(r)&&(t.isInline(r)||r.children.length===0||it.isText(r.children[0])||t.isInline(r.children[0])),i=0,a=0;a<r.children.length;a++,i++){var u=Q.get(t,n);if(!it.isText(u)){var s=r.children[a],l=u.children[i-1],c=a===r.children.length-1;(it.isText(s)||ft.isElement(s)&&t.isInline(s))!==o?(N.removeNodes(t,{at:n.concat(i),voids:!0}),i--):ft.isElement(s)?t.isInline(s)&&(l!=null&&it.isText(l)?c&&(N.insertNodes(t,{text:""},{at:n.concat(i+1),voids:!0}),i++):(N.insertNodes(t,{text:""},{at:n.concat(i),voids:!0}),i++)):l!=null&&it.isText(l)&&(it.equals(s,l,{loose:!0})?(N.mergeNodes(t,{at:n.concat(i),voids:!0}),i--):l.text===""?(N.removeNodes(t,{at:n.concat(i-1),voids:!0}),i--):s.text===""&&(N.removeNodes(t,{at:n.concat(i),voids:!0}),i--))}}},removeMark:e=>{var{selection:r}=t;if(r)if(L.isExpanded(r))N.unsetNodes(t,e,{match:it.isText,split:!0});else{var n=xh({},E.marks(t)||{});delete n[e],t.marks=n,Ac.get(t)||t.onChange()}}};return t},NW=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:r,path:n}=t,o=j.levels(n),i=it.isText(r)?[]:Array.from(Q.nodes(r),w=>{var[,D]=w;return n.concat(D)});return[...o,...i];case"merge_node":var{path:a}=t;return[...j.ancestors(a),j.previous(a)];case"move_node":var{path:u,newPath:s}=t;if(j.equals(u,s))return[];var l=[],c=[];for(var f of j.ancestors(u)){var d=j.transform(f,t);l.push(d)}for(var p of j.ancestors(s)){var v=j.transform(p,t);c.push(v)}var y=c[c.length-1],g=s[s.length-1],m=y.concat(g);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 ui(t,e){if(t==null)return{};var r,n,o=function(a,u){if(a==null)return{};var s,l,c={},f=Object.keys(a);for(l=0;l<f.length;l++)s=f[l],u.indexOf(s)>=0||(c[s]=a[s]);return c}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}var St,O4=function(t){var e=arguments.length>1&&arguments[1]!==void 0&&arguments[1],r=!e,n=e?zW(t):t,o=St.None,i=St.None,a=0,u=null;for(var s of n){var l=s.codePointAt(0);if(!l)break;var c=JW(s,l);if([o,i]=r?[i,c]:[c,o],el(o,St.ZWJ)&&el(i,St.ExtPict)&&!rG(r?t.substring(0,a):t.substring(0,t.length-a))||el(o,St.RI)&&el(i,St.RI)&&!(u=u!==null?!u:!!r||oG(t.substring(0,t.length-a)))||o!==St.None&&i!==St.None&&tG(o,i))break;a+=s.length}return a||1},IW=/\s/,LW=/[\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]/,RW=/['\u2018\u2019]/,k4=(t,e,r)=>{if(r){var n=t.length-e;return[t.slice(n,t.length),t.slice(0,n)]}return[t.slice(0,e),t.slice(e)]},MW=function t(e,r){var n=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(IW.test(e))return!1;if(RW.test(e)){var o=O4(r,n),[i,a]=k4(r,o,n);if(t(i,a,n))return!0}return!LW.test(e)},zW=function*(t){for(var e=t.length-1,r=0;r<t.length;r++){var n=t.charAt(e-r);if(HW(n.charCodeAt(0))){var o=t.charAt(e-r-1);if($W(o.charCodeAt(0))){yield o+n,r++;continue}}yield n}},$W=t=>t>=55296&&t<=56319,HW=t=>t>=56320&&t<=57343;(function(t){t[t.None=0]="None",t[t.Extend=1]="Extend",t[t.ZWJ=2]="ZWJ",t[t.RI=4]="RI",t[t.Prepend=8]="Prepend",t[t.SpacingMark=16]="SpacingMark",t[t.L=32]="L",t[t.V=64]="V",t[t.T=128]="T",t[t.LV=256]="LV",t[t.LVT=512]="LVT",t[t.ExtPict=1024]="ExtPict",t[t.Any=2048]="Any"})(St||(St={}));var VW=/^(?:[\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])$/,UW=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,WW=/^(?:[\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])$/,GW=/^[\u1100-\u115F\uA960-\uA97C]$/,qW=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,KW=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,YW=/^[\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]$/,XW=/^[\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]$/,ZW=/^(?:[\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])$/,JW=(t,e)=>{var r=St.Any;return t.search(VW)!==-1&&(r|=St.Extend),e===8205&&(r|=St.ZWJ),e>=127462&&e<=127487&&(r|=St.RI),t.search(UW)!==-1&&(r|=St.Prepend),t.search(WW)!==-1&&(r|=St.SpacingMark),t.search(GW)!==-1&&(r|=St.L),t.search(qW)!==-1&&(r|=St.V),t.search(KW)!==-1&&(r|=St.T),t.search(YW)!==-1&&(r|=St.LV),t.search(XW)!==-1&&(r|=St.LVT),t.search(ZW)!==-1&&(r|=St.ExtPict),r};function el(t,e){return(t&e)!=0}var QW=[[St.L,St.L|St.V|St.LV|St.LVT],[St.LV|St.V,St.V|St.T],[St.LVT|St.T,St.T],[St.Any,St.Extend|St.ZWJ],[St.Any,St.SpacingMark],[St.Prepend,St.Any],[St.ZWJ,St.ExtPict],[St.RI,St.RI]];function tG(t,e){return QW.findIndex(r=>el(t,r[0])&&el(e,r[1]))===-1}var eG=/(?:[\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$/,rG=t=>t.search(eG)!==-1,nG=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,oG=t=>{var e=t.match(nG);return e!==null&&e[0].length/2%2==1},_S=t=>Cr(t)&&Q.isNodeList(t.children)&&!E.isEditor(t),ft={isAncestor:t=>Cr(t)&&Q.isNodeList(t.children),isElement:_S,isElementList:t=>Array.isArray(t)&&t.every(e=>ft.isElement(e)),isElementProps:t=>t.children!==void 0,isElementType:function(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"type";return _S(t)&&t[r]===e},matches(t,e){for(var r in e)if(r!=="children"&&t[r]!==e[r])return!1;return!0}},iG=["text"],aG=["text"];function PS(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),r.push.apply(r,n)}return r}function bs(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?PS(Object(r),!0).forEach(function(n){jo(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):PS(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}var jS=new WeakMap,E={above(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{voids:r=!1,mode:n="lowest",at:o=t.selection,match:i}=e;if(o){var a=E.path(t,o),u=n==="lowest";for(var[s,l]of E.levels(t,{at:a,voids:r,match:i,reverse:u}))if(!it.isText(s)&&!j.equals(a,l))return[s,l]}},addMark(t,e,r){t.addMark(e,r)},after(t,e){var r,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o={anchor:E.point(t,e,{edge:"end"}),focus:E.end(t,[])},{distance:i=1}=n,a=0;for(var u of E.positions(t,bs(bs({},n),{},{at:o}))){if(a>i)break;a!==0&&(r=u),a++}return r},before(t,e){var r,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o={anchor:E.start(t,[]),focus:E.point(t,e,{edge:"start"})},{distance:i=1}=n,a=0;for(var u of E.positions(t,bs(bs({},n),{},{at:o,reverse:!0}))){if(a>i)break;a!==0&&(r=u),a++}return r},deleteBackward(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{unit:r="character"}=e;t.deleteBackward(r)},deleteForward(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{unit:r="character"}=e;t.deleteForward(r)},deleteFragment(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{direction:r="forward"}=e;t.deleteFragment(r)},edges:(t,e)=>[E.start(t,e),E.end(t,e)],end:(t,e)=>E.point(t,e,{edge:"end"}),first(t,e){var r=E.path(t,e,{edge:"start"});return E.node(t,r)},fragment(t,e){var r=E.range(t,e);return Q.fragment(t,r)},hasBlocks:(t,e)=>e.children.some(r=>E.isBlock(t,r)),hasInlines:(t,e)=>e.children.some(r=>it.isText(r)||E.isInline(t,r)),hasTexts:(t,e)=>e.children.every(r=>it.isText(r)),insertBreak(t){t.insertBreak()},insertFragment(t,e){t.insertFragment(e)},insertNode(t,e){t.insertNode(e)},insertText(t,e){t.insertText(e)},isBlock:(t,e)=>ft.isElement(e)&&!t.isInline(e),isEditor(t){if(!Cr(t))return!1;var e=jS.get(t);if(e!==void 0)return e;var r=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||Cr(t.marks))&&(t.selection===null||L.isRange(t.selection))&&Q.isNodeList(t.children)&&Ui.isOperationList(t.operations);return jS.set(t,r),r},isEnd(t,e,r){var n=E.end(t,r);return Ft.equals(e,n)},isEdge:(t,e,r)=>E.isStart(t,e,r)||E.isEnd(t,e,r),isEmpty(t,e){var{children:r}=e,[n]=r;return r.length===0||r.length===1&&it.isText(n)&&n.text===""&&!t.isVoid(e)},isInline:(t,e)=>ft.isElement(e)&&t.isInline(e),isNormalizing(t){var e=OS.get(t);return e===void 0||e},isStart(t,e,r){if(e.offset!==0)return!1;var n=E.start(t,r);return Ft.equals(e,n)},isVoid:(t,e)=>ft.isElement(e)&&t.isVoid(e),last(t,e){var r=E.path(t,e,{edge:"end"});return E.node(t,r)},leaf(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=E.path(t,e,r);return[Q.leaf(t,n),n]},*levels(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:r=t.selection,reverse:n=!1,voids:o=!1}=e,{match:i}=e;if(i==null&&(i=()=>!0),r){var a=[],u=E.path(t,r);for(var[s,l]of Q.levels(t,u))if(i(s,l)&&(a.push([s,l]),!o&&E.isVoid(t,s)))break;n&&a.reverse(),yield*km(a)}},marks(t){var{marks:e,selection:r}=t;if(!r)return null;if(e)return e;if(L.isExpanded(r)){var[n]=E.nodes(t,{match:it.isText});if(n){var[o]=n;return ui(o,iG)}return{}}var{anchor:i}=r,{path:a}=i,[u]=E.leaf(t,a);if(i.offset===0){var s=E.previous(t,{at:a,match:it.isText}),l=E.above(t,{match:p=>E.isBlock(t,p)});if(s&&l){var[c,f]=s,[,d]=l;j.isAncestor(d,f)&&(u=c)}}return ui(u,aG)},next(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:r="lowest",voids:n=!1}=e,{match:o,at:i=t.selection}=e;if(i){var a=E.after(t,i,{voids:n});if(a){var[,u]=E.last(t,[]),s=[a.path,u];if(j.isPath(i)&&i.length===0)throw new Error("Cannot get the next node from the root node!");if(o==null)if(j.isPath(i)){var[l]=E.parent(t,i);o=f=>l.children.includes(f)}else o=()=>!0;var[c]=E.nodes(t,{at:s,match:o,mode:r,voids:n});return c}}},node(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=E.path(t,e,r);return[Q.get(t,n),n]},*nodes(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:r=t.selection,mode:n="all",universal:o=!1,reverse:i=!1,voids:a=!1}=e,{match:u}=e;if(u||(u=()=>!0),r){var s,l;if(uG.isSpan(r))s=r[0],l=r[1];else{var c=E.path(t,r,{edge:"start"}),f=E.path(t,r,{edge:"end"});s=i?f:c,l=i?c:f}var d,p=Q.nodes(t,{reverse:i,from:s,to:l,pass:b=>{var[w]=b;return!a&&E.isVoid(t,w)}}),v=[];for(var[y,g]of p){var m=d&&j.compare(g,d[1])===0;if(n!=="highest"||!m){if(u(y,g))if(n==="lowest"&&m)d=[y,g];else{var h=n==="lowest"?d:[y,g];h&&(o?v.push(h):yield h),d=[y,g]}else if(o&&!m&&it.isText(y))return}}n==="lowest"&&d&&(o?v.push(d):yield d),o&&(yield*km(v))}},normalize(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{force:r=!1}=e,n=i=>Fv.get(i)||[];if(E.isNormalizing(t)){if(r){var o=Array.from(Q.nodes(t),i=>{var[,a]=i;return a});Fv.set(t,o)}n(t).length!==0&&E.withoutNormalizing(t,()=>{for(var i of n(t))if(Q.has(t,i)){var a=E.node(t,i),[u,s]=a;ft.isElement(u)&&u.children.length===0&&t.normalizeNode(a)}for(var l=42*n(t).length,c=0;n(t).length!==0;){if(c>l)throw new Error(`
Could not completely normalize the editor after `.concat(l,` iterations! This is usually due to incorrect normalization logic that leaves a node in an invalid state.
`));var f=n(t).pop();if(Q.has(t,f)){var d=E.node(t,f);t.normalizeNode(d)}c++}})}},parent(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=E.path(t,e,r),o=j.parent(n);return E.node(t,o)},path(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{depth:n,edge:o}=r;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)),Ft.isPoint(e)&&(e=e.path),n!=null&&(e=e.slice(0,n)),e},hasPath:(t,e)=>Q.has(t,e),pathRef(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:n="forward"}=r,o={current:e,affinity:n,unref(){var{current:i}=o;return E.pathRefs(t).delete(o),o.current=null,i}};return E.pathRefs(t).add(o),o},pathRefs(t){var e=kS.get(t);return e||(e=new Set,kS.set(t,e)),e},point(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{edge:n="start"}=r;if(j.isPath(e)){var o;if(n==="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(!it.isText(u))throw new Error("Cannot get the ".concat(n," point in the node at path [").concat(e,"] because it has no ").concat(n," text node."));return{path:o,offset:n==="end"?u.text.length:0}}if(L.isRange(e)){var[s,l]=L.edges(e);return n==="start"?s:l}return e},pointRef(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:n="forward"}=r,o={current:e,affinity:n,unref(){var{current:i}=o;return E.pointRefs(t).delete(o),o.current=null,i}};return E.pointRefs(t).add(o),o},pointRefs(t){var e=BS.get(t);return e||(e=new Set,BS.set(t,e)),e},*positions(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:r=t.selection,unit:n="offset",reverse:o=!1,voids:i=!1}=e;if(r){var a=E.range(t,r),[u,s]=L.edges(a),l=o?s:u,c=!1,f="",d=0,p=0,v=0;for(var[y,g]of E.nodes(t,{at:r,reverse:o,voids:i})){if(ft.isElement(y)){if(!i&&t.isVoid(y)){yield E.start(t,g);continue}if(t.isInline(y))continue;if(E.hasInlines(t,y)){var m=j.isAncestor(g,s.path)?s:E.end(t,g),h=j.isAncestor(g,u.path)?u:E.start(t,g);f=E.string(t,{anchor:h,focus:m},{voids:i}),c=!0}}if(it.isText(y)){var b=j.equals(g,l.path);for(b?(p=o?l.offset:y.text.length-l.offset,v=l.offset):(p=y.text.length,v=o?p:0),(b||c||n==="offset")&&(yield{path:g,offset:v},c=!1);;){if(d===0){if(f==="")break;d=w(f,n,o),f=k4(f,d,o)[1]}if(v=o?v-d:v+d,(p-=d)<0){d=-p;break}d=0,yield{path:g,offset:v}}}}}function w(D,x,C){return x==="character"?O4(D,C):x==="word"?function(O){for(var T=arguments.length>1&&arguments[1]!==void 0&&arguments[1],R=0,H=!1;O.length>0;){var M=O4(O,T),[K,U]=k4(O,M,T);if(MW(K,U,T))H=!0,R+=M;else{if(H)break;R+=M}O=U}return R}(D,C):x==="line"||x==="block"?D.length:1}},previous(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:r="lowest",voids:n=!1}=e,{match:o,at:i=t.selection}=e;if(i){var a=E.before(t,i,{voids:n});if(a){var[,u]=E.first(t,[]),s=[a.path,u];if(j.isPath(i)&&i.length===0)throw new Error("Cannot get the previous node from the root node!");if(o==null)if(j.isPath(i)){var[l]=E.parent(t,i);o=f=>l.children.includes(f)}else o=()=>!0;var[c]=E.nodes(t,{reverse:!0,at:s,match:o,mode:r,voids:n});return c}}},range:(t,e,r)=>L.isRange(e)&&!r?e:{anchor:E.start(t,e),focus:E.end(t,r||e)},rangeRef(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:n="forward"}=r,o={current:e,affinity:n,unref(){var{current:i}=o;return E.rangeRefs(t).delete(o),o.current=null,i}};return E.rangeRefs(t).add(o),o},rangeRefs(t){var e=FS.get(t);return e||(e=new Set,FS.set(t,e)),e},removeMark(t,e){t.removeMark(e)},setNormalizing(t,e){OS.set(t,e)},start:(t,e)=>E.point(t,e,{edge:"start"}),string(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:n=!1}=r,o=E.range(t,e),[i,a]=L.edges(o),u="";for(var[s,l]of E.nodes(t,{at:o,match:it.isText,voids:n})){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 r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:n=!1}=r,[o,i]=L.edges(e);if(o.offset!==0||i.offset!==0||L.isCollapsed(e))return e;var a=E.above(t,{at:i,match:d=>E.isBlock(t,d)}),u=a?a[1]:[],s={anchor:E.start(t,[]),focus:i},l=!0;for(var[c,f]of E.nodes(t,{at:s,match:it.isText,reverse:!0,voids:n}))if(l)l=!1;else if(c.text!==""||j.isBefore(f,u)){i={path:f,offset:c.text.length};break}return{anchor:o,focus:i}},void(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return E.above(t,bs(bs({},e),{},{match:r=>E.isVoid(t,r)}))},withoutNormalizing(t,e){var r=E.isNormalizing(t);E.setNormalizing(t,!1);try{e()}finally{E.setNormalizing(t,r)}E.normalize(t)}},uG={isSpan:t=>Array.isArray(t)&&t.length===2&&t.every(j.isPath)},sG=["children"],lG=["text"],NS=new WeakMap,Q={ancestor(t,e){var r=Q.get(t,e);if(it.isText(r))throw new Error("Cannot get the ancestor node at path [".concat(e,"] because it refers to a text node instead: ").concat(r));return r},*ancestors(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};for(var n of j.ancestors(e,r)){var o=[Q.ancestor(t,n),n];yield o}},child(t,e){if(it.isText(t))throw new Error("Cannot get the child of a text node: ".concat(JSON.stringify(t)));var r=t.children[e];if(r==null)throw new Error("Cannot get child at index `".concat(e,"` in node: ").concat(JSON.stringify(t)));return r},*children(t,e){for(var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{reverse:n=!1}=r,o=Q.ancestor(t,e),{children:i}=o,a=n?i.length-1:0;n?a>=0:a<i.length;){var u=Q.child(o,a),s=e.concat(a);yield[u,s],a=n?a-1:a+1}},common(t,e,r){var n=j.common(e,r);return[Q.get(t,n),n]},descendant(t,e){var r=Q.get(t,e);if(E.isEditor(r))throw new Error("Cannot get the descendant node at path [".concat(e,"] because it refers to the root editor node instead: ").concat(r));return r},*descendants(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[r,n]of Q.nodes(t,e))n.length!==0&&(yield[r,n])},*elements(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[r,n]of Q.nodes(t,e))ft.isElement(r)&&(yield[r,n])},extractProps:t=>ft.isAncestor(t)?ui(t,sG):ui(t,lG),first(t,e){for(var r=e.slice(),n=Q.get(t,r);n&&!it.isText(n)&&n.children.length!==0;)n=n.children[0],r.push(0);return[n,r]},fragment(t,e){if(it.isText(t))throw new Error("Cannot get a fragment starting from a root text node: ".concat(JSON.stringify(t)));var r=Cy({children:t.children},n=>{var[o,i]=L.edges(e),a=Q.nodes(n,{reverse:!0,pass:d=>{var[,p]=d;return!L.includes(e,p)}});for(var[,u]of a){if(!L.includes(e,u)){var s=Q.parent(n,u),l=u[u.length-1];s.children.splice(l,1)}if(j.equals(u,i.path)){var c=Q.leaf(n,u);c.text=c.text.slice(0,i.offset)}if(j.equals(u,o.path)){var f=Q.leaf(n,u);f.text=f.text.slice(o.offset)}}E.isEditor(n)&&(n.selection=null)});return r.children},get(t,e){for(var r=t,n=0;n<e.length;n++){var o=e[n];if(it.isText(r)||!r.children[o])throw new Error("Cannot find a descendant at path [".concat(e,"] in node: ").concat(JSON.stringify(t)));r=r.children[o]}return r},has(t,e){for(var r=t,n=0;n<e.length;n++){var o=e[n];if(it.isText(r)||!r.children[o])return!1;r=r.children[o]}return!0},isNode:t=>it.isText(t)||ft.isElement(t)||E.isEditor(t),isNodeList(t){if(!Array.isArray(t))return!1;var e=NS.get(t);if(e!==void 0)return e;var r=t.every(n=>Q.isNode(n));return NS.set(t,r),r},last(t,e){for(var r=e.slice(),n=Q.get(t,r);n&&!it.isText(n)&&n.children.length!==0;){var o=n.children.length-1;n=n.children[o],r.push(o)}return[n,r]},leaf(t,e){var r=Q.get(t,e);if(!it.isText(r))throw new Error("Cannot get the leaf node at path [".concat(e,"] because it refers to a non-leaf node: ").concat(r));return r},*levels(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};for(var n of j.levels(e,r)){var o=Q.get(t,n);yield[o,n]}},matches:(t,e)=>ft.isElement(t)&&ft.isElementProps(e)&&ft.matches(t,e)||it.isText(t)&&it.isTextProps(e)&&it.matches(t,e),*nodes(t){for(var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{pass:r,reverse:n=!1}=e,{from:o=[],to:i}=e,a=new Set,u=[],s=t;!i||!(n?j.isBefore(u,i):j.isAfter(u,i));)if(a.has(s)||(yield[s,u]),a.has(s)||it.isText(s)||s.children.length===0||r!=null&&r([s,u])!==!1){if(u.length===0)break;if(!n){var l=j.next(u);if(Q.has(t,l)){u=l,s=Q.get(t,u);continue}}n&&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=n?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 r=j.parent(e),n=Q.get(t,r);if(it.isText(n))throw new Error("Cannot get the parent of path [".concat(e,"] because it does not exist in the root."));return n},string:t=>it.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[r,n]of Q.nodes(t,e))it.isText(r)&&(yield[r,n])}};function IS(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),r.push.apply(r,n)}return r}function He(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?IS(Object(r),!0).forEach(function(n){jo(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):IS(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}var Ui={isNodeOperation:t=>Ui.isOperation(t)&&t.type.endsWith("_node"),isOperation(t){if(!Cr(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)&&Cr(t.properties);case"move_node":return j.isPath(t.path)&&j.isPath(t.newPath);case"set_node":return j.isPath(t.path)&&Cr(t.properties)&&Cr(t.newProperties);case"set_selection":return t.properties===null&&L.isRange(t.newProperties)||t.newProperties===null&&L.isRange(t.properties)||Cr(t.properties)&&Cr(t.newProperties);case"split_node":return j.isPath(t.path)&&typeof t.position=="number"&&Cr(t.properties);default:return!1}},isOperationList:t=>Array.isArray(t)&&t.every(e=>Ui.isOperation(e)),isSelectionOperation:t=>Ui.isOperation(t)&&t.type.endsWith("_selection"),isTextOperation:t=>Ui.isOperation(t)&&t.type.endsWith("_text"),inverse(t){switch(t.type){case"insert_node":return He(He({},t),{},{type:"remove_node"});case"insert_text":return He(He({},t),{},{type:"remove_text"});case"merge_node":return He(He({},t),{},{type:"split_node",path:j.previous(t.path)});case"move_node":var{newPath:e,path:r}=t;if(j.equals(e,r))return t;if(j.isSibling(r,e))return He(He({},t),{},{path:e,newPath:r});var n=j.transform(r,t),o=j.transform(j.next(r),t);return He(He({},t),{},{path:n,newPath:o});case"remove_node":return He(He({},t),{},{type:"insert_node"});case"remove_text":return He(He({},t),{},{type:"insert_text"});case"set_node":var{properties:i,newProperties:a}=t;return He(He({},t),{},{properties:a,newProperties:i});case"set_selection":var{properties:u,newProperties:s}=t;return He(He({},t),{},u==null?{properties:s,newProperties:null}:s==null?{properties:null,newProperties:u}:{properties:s,newProperties:u});case"split_node":return He(He({},t),{},{type:"merge_node",path:j.next(t.path)})}}},j={ancestors(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:r=!1}=e,n=j.levels(t,e);return n=r?n.slice(1):n.slice(0,-1)},common(t,e){for(var r=[],n=0;n<t.length&&n<e.length;n++){var o=t[n];if(o!==e[n])break;r.push(o)}return r},compare(t,e){for(var r=Math.min(t.length,e.length),n=0;n<r;n++){if(t[n]<e[n])return-1;if(t[n]>e[n])return 1}return 0},endsAfter(t,e){var r=t.length-1,n=t.slice(0,r),o=e.slice(0,r),i=t[r],a=e[r];return j.equals(n,o)&&i>a},endsAt(t,e){var r=t.length,n=t.slice(0,r),o=e.slice(0,r);return j.equals(n,o)},endsBefore(t,e){var r=t.length-1,n=t.slice(0,r),o=e.slice(0,r),i=t[r],a=e[r];return j.equals(n,o)&&i<a},equals:(t,e)=>t.length===e.length&&t.every((r,n)=>r===e[n]),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 r=t.slice(0,-1),n=e.slice(0,-1);return t[t.length-1]!==e[e.length-1]&&j.equals(r,n)},levels(t){for(var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:r=!1}=e,n=[],o=0;o<=t.length;o++)n.push(t.slice(0,o));return r&&n.reverse(),n},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 r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Cy(t,n=>{var{affinity:o="forward"}=r;if(t&&(t==null?void 0:t.length)!==0){if(n===null)return null;switch(e.type){case"insert_node":var{path:i}=e;(j.equals(i,n)||j.endsBefore(i,n)||j.isAncestor(i,n))&&(n[i.length-1]+=1);break;case"remove_node":var{path:a}=e;if(j.equals(a,n)||j.isAncestor(a,n))return null;j.endsBefore(a,n)&&(n[a.length-1]-=1);break;case"merge_node":var{path:u,position:s}=e;j.equals(u,n)||j.endsBefore(u,n)?n[u.length-1]-=1:j.isAncestor(u,n)&&(n[u.length-1]-=1,n[u.length]+=s);break;case"split_node":var{path:l,position:c}=e;if(j.equals(l,n)){if(o==="forward")n[n.length-1]+=1;else if(o!=="backward")return null}else j.endsBefore(l,n)?n[l.length-1]+=1:j.isAncestor(l,n)&&t[l.length]>=c&&(n[l.length-1]+=1,n[l.length]-=c);break;case"move_node":var{path:f,newPath:d}=e;if(j.equals(f,d))return;if(j.isAncestor(f,n)||j.equals(f,n)){var p=d.slice();return j.endsBefore(f,d)&&f.length<d.length&&(p[f.length-1]-=1),p.concat(n.slice(f.length))}j.isSibling(f,d)&&(j.isAncestor(d,n)||j.equals(d,n))?j.endsBefore(f,n)?n[f.length-1]-=1:n[f.length-1]+=1:j.endsBefore(d,n)||j.equals(d,n)||j.isAncestor(d,n)?(j.endsBefore(f,n)&&(n[f.length-1]-=1),n[d.length-1]+=1):j.endsBefore(f,n)&&(j.equals(d,n)&&(n[d.length-1]+=1),n[f.length-1]-=1)}}})}},cG={transform(t,e){var{current:r,affinity:n}=t;if(r!=null){var o=j.transform(r,e,{affinity:n});t.current=o,o==null&&t.unref()}}};function LS(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),r.push.apply(r,n)}return r}function RS(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?LS(Object(r),!0).forEach(function(n){jo(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):LS(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}var Ft={compare(t,e){var r=j.compare(t.path,e.path);return r===0?t.offset<e.offset?-1:t.offset>e.offset?1:0:r},isAfter:(t,e)=>Ft.compare(t,e)===1,isBefore:(t,e)=>Ft.compare(t,e)===-1,equals:(t,e)=>t.offset===e.offset&&j.equals(t.path,e.path),isPoint:t=>Cr(t)&&typeof t.offset=="number"&&j.isPath(t.path),transform(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Cy(t,n=>{if(n===null)return null;var{affinity:o="forward"}=r,{path:i,offset:a}=n;switch(e.type){case"insert_node":case"move_node":n.path=j.transform(i,e,r);break;case"insert_text":j.equals(e.path,i)&&e.offset<=a&&(n.offset+=e.text.length);break;case"merge_node":j.equals(e.path,i)&&(n.offset+=e.position),n.path=j.transform(i,e,r);break;case"remove_text":j.equals(e.path,i)&&e.offset<=a&&(n.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;n.path=j.transform(i,e,r);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")&&(n.offset-=e.position,n.path=j.transform(i,e,RS(RS({},r),{},{affinity:"forward"})))}else n.path=j.transform(i,e,r)}})}},fG={transform(t,e){var{current:r,affinity:n}=t;if(r!=null){var o=Ft.transform(r,e,{affinity:n});t.current=o,o==null&&t.unref()}}},dG=["anchor","focus"];function MS(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),r.push.apply(r,n)}return r}var L={edges(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:r=!1}=e,{anchor:n,focus:o}=t;return L.isBackward(t)===r?[n,o]:[o,n]},end(t){var[,e]=L.edges(t);return e},equals:(t,e)=>Ft.equals(t.anchor,e.anchor)&&Ft.equals(t.focus,e.focus),includes(t,e){if(L.isRange(e)){if(L.includes(t,e.anchor)||L.includes(t,e.focus))return!0;var[r,n]=L.edges(t),[o,i]=L.edges(e);return Ft.isBefore(r,o)&&Ft.isAfter(n,i)}var[a,u]=L.edges(t),s=!1,l=!1;return Ft.isPoint(e)?(s=Ft.compare(e,a)>=0,l=Ft.compare(e,u)<=0):(s=j.compare(e,a.path)>=0,l=j.compare(e,u.path)<=0),s&&l},intersection(t,e){var r=ui(t,dG),[n,o]=L.edges(t),[i,a]=L.edges(e),u=Ft.isBefore(n,i)?i:n,s=Ft.isBefore(o,a)?o:a;return Ft.isBefore(s,u)?null:function(l){for(var c=1;c<arguments.length;c++){var f=arguments[c]!=null?arguments[c]:{};c%2?MS(Object(f),!0).forEach(function(d){jo(l,d,f[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(f)):MS(Object(f)).forEach(function(d){Object.defineProperty(l,d,Object.getOwnPropertyDescriptor(f,d))})}return l}({anchor:u,focus:s},r)},isBackward(t){var{anchor:e,focus:r}=t;return Ft.isAfter(e,r)},isCollapsed(t){var{anchor:e,focus:r}=t;return Ft.equals(e,r)},isExpanded:t=>!L.isCollapsed(t),isForward:t=>!L.isBackward(t),isRange:t=>Cr(t)&&Ft.isPoint(t.anchor)&&Ft.isPoint(t.focus),*points(t){yield[t.anchor,"anchor"],yield[t.focus,"focus"]},start(t){var[e]=L.edges(t);return e},transform(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Cy(t,n=>{if(n===null)return null;var o,i,{affinity:a="inward"}=r;if(a==="inward"){var u=L.isCollapsed(n);L.isForward(n)?(o="forward",i=u?o:"backward"):(o="backward",i=u?o:"forward")}else a==="outward"?L.isForward(n)?(o="backward",i="forward"):(o="forward",i="backward"):(o=a,i=a);var s=Ft.transform(n.anchor,e,{affinity:o}),l=Ft.transform(n.focus,e,{affinity:i});if(!s||!l)return null;n.anchor=s,n.focus=l})}},pG={transform(t,e){var{current:r,affinity:n}=t;if(r!=null){var o=L.transform(r,e,{affinity:n});t.current=o,o==null&&t.unref()}}},RP=(t,e)=>{for(var r in t){var n=t[r],o=e[r];if(Cr(n)&&Cr(o)){if(!RP(n,o))return!1}else if(Array.isArray(n)&&Array.isArray(o)){if(n.length!==o.length)return!1;for(var i=0;i<n.length;i++)if(n[i]!==o[i])return!1}else if(n!==o)return!1}for(var a in e)if(t[a]===void 0&&e[a]!==void 0)return!1;return!0},hG=["text"],gG=["anchor","focus"];function zS(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),r.push.apply(r,n)}return r}function Ho(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?zS(Object(r),!0).forEach(function(n){jo(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):zS(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}var it={equals(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{loose:n=!1}=r;function o(i){return ui(i,hG)}return RP(n?o(t):t,n?o(e):e)},isText:t=>Cr(t)&&typeof t.text=="string",isTextList:t=>Array.isArray(t)&&t.every(e=>it.isText(e)),isTextProps:t=>t.text!==void 0,matches(t,e){for(var r in e)if(r!=="text"&&(!t.hasOwnProperty(r)||t[r]!==e[r]))return!1;return!0},decorations(t,e){var r=[Ho({},t)];for(var n of e){var o=ui(n,gG),[i,a]=L.edges(n),u=[],s=0;for(var l of r){var{length:c}=l.text,f=s;if(s+=c,i.offset<=f&&a.offset>=s)Object.assign(l,o),u.push(l);else if(i.offset!==a.offset&&(i.offset===s||a.offset===f)||i.offset>s||a.offset<f||a.offset===f&&f!==0)u.push(l);else{var d=l,p=void 0,v=void 0;if(a.offset<s){var y=a.offset-f;v=Ho(Ho({},d),{},{text:d.text.slice(y)}),d=Ho(Ho({},d),{},{text:d.text.slice(0,y)})}if(i.offset>f){var g=i.offset-f;p=Ho(Ho({},d),{},{text:d.text.slice(0,g)}),d=Ho(Ho({},d),{},{text:d.text.slice(g)})}Object.assign(d,o),p&&u.push(p),u.push(d),v&&u.push(v)}}r=u}return r}};function $S(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),r.push.apply(r,n)}return r}function Oc(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?$S(Object(r),!0).forEach(function(n){jo(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):$S(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}var vG={transform(t,e){t.children=SS(t.children);var r=t.selection&&SS(t.selection);try{r=((n,o,i)=>{switch(i.type){case"insert_node":var{path:a,node:u}=i,s=Q.parent(n,a),l=a[a.length-1];if(l>s.children.length)throw new Error('Cannot apply an "insert_node" operation at path ['.concat(a,"] because the destination is past the end of the node."));if(s.children.splice(l,0,u),o)for(var[c,f]of L.points(o))o[f]=Ft.transform(c,i);break;case"insert_text":var{path:d,offset:p,text:v}=i;if(v.length===0)break;var y=Q.leaf(n,d),g=y.text.slice(0,p),m=y.text.slice(p);if(y.text=g+v+m,o)for(var[h,b]of L.points(o))o[b]=Ft.transform(h,i);break;case"merge_node":var{path:w}=i,D=Q.get(n,w),x=j.previous(w),C=Q.get(n,x),O=Q.parent(n,w),T=w[w.length-1];if(it.isText(D)&&it.isText(C))C.text+=D.text;else{if(it.isText(D)||it.isText(C))throw new Error('Cannot apply a "merge_node" operation at path ['.concat(w,"] to nodes of different interfaces: ").concat(D," ").concat(C));C.children.push(...D.children)}if(O.children.splice(T,1),o)for(var[R,H]of L.points(o))o[H]=Ft.transform(R,i);break;case"move_node":var{path:M,newPath:K}=i;if(j.isAncestor(M,K))throw new Error("Cannot move a path [".concat(M,"] to new path [").concat(K,"] because the destination is inside itself."));var U=Q.get(n,M),W=Q.parent(n,M),q=M[M.length-1];W.children.splice(q,1);var rt=j.transform(M,i),lt=Q.get(n,j.parent(rt)),st=rt[rt.length-1];if(lt.children.splice(st,0,U),o)for(var[ut,k]of L.points(o))o[k]=Ft.transform(ut,i);break;case"remove_node":var{path:S}=i,P=S[S.length-1];if(Q.parent(n,S).children.splice(P,1),o)for(var[$,Y]of L.points(o)){var V=Ft.transform($,i);if(o!=null&&V!=null)o[Y]=V;else{var at=void 0,vt=void 0;for(var[yt,Ct]of Q.texts(n)){if(j.compare(Ct,S)!==-1){vt=[yt,Ct];break}at=[yt,Ct]}var G=!1;at&&vt&&(G=j.equals(vt[1],S)?!j.hasPrevious(vt[1]):j.common(at[1],S).length<j.common(vt[1],S).length),at&&!G?($.path=at[1],$.offset=at[0].text.length):vt?($.path=vt[1],$.offset=0):o=null}}break;case"remove_text":var{path:Lt,offset:Ot,text:pt}=i;if(pt.length===0)break;var kt=Q.leaf(n,Lt),Be=kt.text.slice(0,Ot),Ht=kt.text.slice(Ot+pt.length);if(kt.text=Be+Ht,o)for(var[ee,ye]of L.points(o))o[ye]=Ft.transform(ee,i);break;case"set_node":var{path:vr,properties:zt,newProperties:Ir}=i;if(vr.length===0)throw new Error("Cannot set properties on the root node!");var Nn=Q.get(n,vr);for(var eo in Ir){if(eo==="children"||eo==="text")throw new Error('Cannot set the "'.concat(eo,'" property of nodes!'));var ds=Ir[eo];ds==null?delete Nn[eo]:Nn[eo]=ds}for(var Na in zt)Ir.hasOwnProperty(Na)||delete Nn[Na];break;case"set_selection":var{newProperties:In}=i;if(In==null)o=In;else{if(o==null){if(!L.isRange(In))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(JSON.stringify(In)," when there is no current selection."));o=Oc({},In)}for(var ro in In){var Io=In[ro];if(Io==null){if(ro==="anchor"||ro==="focus")throw new Error('Cannot remove the "'.concat(ro,'" selection property'));delete o[ro]}else o[ro]=Io}}break;case"split_node":var{path:yr,position:mr,properties:br}=i;if(yr.length===0)throw new Error('Cannot apply a "split_node" operation at path ['.concat(yr,"] because the root node cannot be split."));var Fr,nr=Q.get(n,yr),pn=Q.parent(n,yr),gc=yr[yr.length-1];if(it.isText(nr)){var hi=nr.text.slice(0,mr),Lo=nr.text.slice(mr);nr.text=hi,Fr=Oc(Oc({},br),{},{text:Lo})}else{var ps=nr.children.slice(0,mr),Ia=nr.children.slice(mr);nr.children=ps,Fr=Oc(Oc({},br),{},{children:Ia})}if(pn.children.splice(gc+1,0,Fr),o)for(var[hs,Ln]of L.points(o))o[Ln]=Ft.transform(hs,i)}return o})(t,r,e)}finally{t.children=AS(t.children),t.selection=r?zu(r)?AS(r):r:null}}},yG=["text"],mG=["children"];function HS(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),r.push.apply(r,n)}return r}function VS(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?HS(Object(r),!0).forEach(function(n){jo(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):HS(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}var bG={insertNodes(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};E.withoutNormalizing(t,()=>{var{hanging:n=!1,voids:o=!1,mode:i="lowest"}=r,{at:a,match:u,select:s}=r;if(Q.isNode(e)&&(e=[e]),e.length!==0){var[l]=e;if(a||(a=t.selection?t.selection:t.children.length>0?E.end(t,[]):[0],s=!0),s==null&&(s=!1),L.isRange(a))if(n||(a=E.unhangRange(t,a)),L.isCollapsed(a))a=a.anchor;else{var[,c]=L.edges(a),f=E.pointRef(t,c);N.delete(t,{at:a}),a=f.unref()}if(Ft.isPoint(a)){u==null&&(u=it.isText(l)?x=>it.isText(x):t.isInline(l)?x=>it.isText(x)||E.isInline(t,x):x=>E.isBlock(t,x));var[d]=E.nodes(t,{at:a.path,match:u,mode:i,voids:o});if(!d)return;var[,p]=d,v=E.pathRef(t,p),y=E.isEnd(t,a,p);N.splitNodes(t,{at:a,match:u,mode:i,voids:o});var g=v.unref();a=y?j.next(g):g}var m=j.parent(a),h=a[a.length-1];if(o||!E.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 D=E.end(t,a);D&&N.select(t,D)}}}})},liftNodes(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};E.withoutNormalizing(t,()=>{var{at:r=t.selection,mode:n="lowest",voids:o=!1}=e,{match:i}=e;if(i==null&&(i=j.isPath(r)?ws(t,r):b=>E.isBlock(t,b)),r){var a=E.nodes(t,{at:r,match:i,mode:n,voids:o}),u=Array.from(a,b=>{var[,w]=b;return E.pathRef(t,w)});for(var s of u){var l=s.unref();if(l.length<2)throw new Error("Cannot lift node at a path [".concat(l,"] because it has a depth of less than `2`."));var c=E.node(t,j.parent(l)),[f,d]=c,p=l[l.length-1],{length:v}=f.children;if(v===1){var y=j.next(d);N.moveNodes(t,{at:l,to:y,voids:o}),N.removeNodes(t,{at:d,voids:o})}else if(p===0)N.moveNodes(t,{at:l,to:d,voids:o});else if(p===v-1){var g=j.next(d);N.moveNodes(t,{at:l,to:g,voids:o})}else{var m=j.next(l),h=j.next(d);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]:{};E.withoutNormalizing(t,()=>{var{match:r,at:n=t.selection}=e,{hanging:o=!1,voids:i=!1,mode:a="lowest"}=e;if(n){if(r==null)if(j.isPath(n)){var[u]=E.parent(t,n);r=T=>u.children.includes(T)}else r=T=>E.isBlock(t,T);if(!o&&L.isRange(n)&&(n=E.unhangRange(t,n)),L.isRange(n))if(L.isCollapsed(n))n=n.anchor;else{var[,s]=L.edges(n),l=E.pointRef(t,s);N.delete(t,{at:n}),n=l.unref(),e.at==null&&N.select(t,n)}var[c]=E.nodes(t,{at:n,match:r,voids:i,mode:a}),f=E.previous(t,{at:n,match:r,voids:i,mode:a});if(c&&f){var[d,p]=c,[v,y]=f;if(p.length!==0&&y.length!==0){var g,m,h=j.next(y),b=j.common(p,y),w=j.isSibling(p,y),D=Array.from(E.levels(t,{at:p}),T=>{var[R]=T;return R}).slice(b.length).slice(0,-1),x=E.above(t,{at:p,mode:"highest",match:T=>D.includes(T)&&MP(t,T)}),C=x&&E.pathRef(t,x[1]);if(it.isText(d)&&it.isText(v)){var O=ui(d,yG);m=v.text.length,g=O}else{if(!ft.isElement(d)||!ft.isElement(v))throw new Error("Cannot merge the node at path [".concat(p,"] with the previous sibling because it is not the same kind: ").concat(JSON.stringify(d)," ").concat(JSON.stringify(v)));O=ui(d,mG),m=v.children.length,g=O}w||N.moveNodes(t,{at:p,to:h,voids:i}),C&&N.removeNodes(t,{at:C.current,voids:i}),ft.isElement(v)&&E.isEmpty(t,v)||it.isText(v)&&v.text===""&&y[y.length-1]!==0?N.removeNodes(t,{at:y,voids:i}):t.apply({type:"merge_node",path:h,position:m,properties:g}),C&&C.unref()}}}})},moveNodes(t,e){E.withoutNormalizing(t,()=>{var{to:r,at:n=t.selection,mode:o="lowest",voids:i=!1}=e,{match:a}=e;if(n){a==null&&(a=j.isPath(n)?ws(t,n):p=>E.isBlock(t,p));var u=E.pathRef(t,r),s=E.nodes(t,{at:n,match:a,mode:o,voids:i}),l=Array.from(s,p=>{var[,v]=p;return E.pathRef(t,v)});for(var c of l){var f=c.unref(),d=u.current;f.length!==0&&t.apply({type:"move_node",path:f,newPath:d}),u.current&&j.isSibling(d,f)&&j.isAfter(d,f)&&(u.current=j.next(u.current))}u.unref()}})},removeNodes(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};E.withoutNormalizing(t,()=>{var{hanging:r=!1,voids:n=!1,mode:o="lowest"}=e,{at:i=t.selection,match:a}=e;if(i){a==null&&(a=j.isPath(i)?ws(t,i):d=>E.isBlock(t,d)),!r&&L.isRange(i)&&(i=E.unhangRange(t,i));var u=E.nodes(t,{at:i,match:a,mode:o,voids:n}),s=Array.from(u,d=>{var[,p]=d;return E.pathRef(t,p)});for(var l of s){var c=l.unref();if(c){var[f]=E.node(t,c);t.apply({type:"remove_node",path:c,node:f})}}}})},setNodes(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};E.withoutNormalizing(t,()=>{var{match:n,at:o=t.selection}=r,{hanging:i=!1,mode:a="lowest",split:u=!1,voids:s=!1}=r;if(o){if(n==null&&(n=j.isPath(o)?ws(t,o):D=>E.isBlock(t,D)),!i&&L.isRange(o)&&(o=E.unhangRange(t,o)),u&&L.isRange(o)){if(L.isCollapsed(o)&&E.leaf(t,o.anchor)[0].text.length>0)return;var l=E.rangeRef(t,o,{affinity:"inward"}),[c,f]=L.edges(o),d=a==="lowest"?"lowest":"highest",p=E.isEnd(t,f,f.path);N.splitNodes(t,{at:f,match:n,mode:d,voids:s,always:!p});var v=E.isStart(t,c,c.path);N.splitNodes(t,{at:c,match:n,mode:d,voids:s,always:!v}),o=l.unref(),r.at==null&&N.select(t,o)}for(var[y,g]of E.nodes(t,{at:o,match:n,mode:a,voids:s})){var m={},h={};if(g.length!==0){var b=!1;for(var w in e)w!=="children"&&w!=="text"&&e[w]!==y[w]&&(b=!0,y.hasOwnProperty(w)&&(m[w]=y[w]),e[w]!=null&&(h[w]=e[w]));b&&t.apply({type:"set_node",path:g,properties:m,newProperties:h})}}}})},splitNodes(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};E.withoutNormalizing(t,()=>{var{mode:r="lowest",voids:n=!1}=e,{match:o,at:i=t.selection,height:a=0,always:u=!1}=e;if(o==null&&(o=U=>E.isBlock(t,U)),L.isRange(i)&&(i=wG(t,i)),j.isPath(i)){var s=i,l=E.point(t,s),[c]=E.parent(t,s);o=U=>U===c,a=l.path.length-s.length+1,i=l,u=!0}if(i){var f=E.pointRef(t,i,{affinity:"backward"}),[d]=E.nodes(t,{at:i,match:o,mode:r,voids:n});if(d){var p=E.void(t,{at:i,mode:"highest"});if(!n&&p){var[v,y]=p;if(ft.isElement(v)&&t.isInline(v)){var g=E.after(t,y);if(!g){var m=j.next(y);N.insertNodes(t,{text:""},{at:m,voids:n}),g=E.point(t,m)}i=g,u=!0}a=i.path.length-y.length+1,u=!0}var h=E.pointRef(t,i),b=i.path.length-a,[,w]=d,D=i.path.slice(0,b),x=a===0?i.offset:i.path[b]+0;for(var[C,O]of E.levels(t,{at:D,reverse:!0,voids:n})){var T=!1;if(O.length<w.length||O.length===0||!n&&E.isVoid(t,C))break;var R=f.current,H=E.isEnd(t,R,O);if(u||!f||!E.isEdge(t,R,O)){T=!0;var M=Q.extractProps(C);t.apply({type:"split_node",path:O,position:x,properties:M})}x=O[O.length-1]+(T||H?1:0)}if(e.at==null){var K=h.current||E.end(t,[]);N.select(t,K)}f.unref(),h.unref()}}})},unsetNodes(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Array.isArray(e)||(e=[e]);var n={};for(var o of e)n[o]=null;N.setNodes(t,n,r)},unwrapNodes(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};E.withoutNormalizing(t,()=>{var{mode:r="lowest",split:n=!1,voids:o=!1}=e,{at:i=t.selection,match:a}=e;if(i){a==null&&(a=j.isPath(i)?ws(t,i):d=>E.isBlock(t,d)),j.isPath(i)&&(i=E.range(t,i));var u=L.isRange(i)?E.rangeRef(t,i):null,s=E.nodes(t,{at:i,match:a,mode:r,voids:o}),l=Array.from(s,d=>{var[,p]=d;return E.pathRef(t,p)}).reverse(),c=function(d){var p=d.unref(),[v]=E.node(t,p),y=E.range(t,p);n&&u&&(y=L.intersection(u.current,y)),N.liftNodes(t,{at:y,match:g=>ft.isAncestor(v)&&v.children.includes(g),voids:o})};for(var f of l)c(f);u&&u.unref()}})},wrapNodes(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};E.withoutNormalizing(t,()=>{var{mode:n="lowest",split:o=!1,voids:i=!1}=r,{match:a,at:u=t.selection}=r;if(u){if(a==null&&(a=j.isPath(u)?ws(t,u):t.isInline(e)?g=>E.isInline(t,g)||it.isText(g):g=>E.isBlock(t,g)),o&&L.isRange(u)){var[s,l]=L.edges(u),c=E.rangeRef(t,u,{affinity:"inward"});N.splitNodes(t,{at:l,match:a,voids:i}),N.splitNodes(t,{at:s,match:a,voids:i}),u=c.unref(),r.at==null&&N.select(t,u)}var f=Array.from(E.nodes(t,{at:u,match:t.isInline(e)?g=>E.isBlock(t,g):g=>E.isEditor(g),mode:"lowest",voids:i}));for(var[,d]of f){var p=L.isRange(u)?L.intersection(u,E.range(t,d)):u;if(p){var v=Array.from(E.nodes(t,{at:p,match:a,mode:n,voids:i}));if(v.length>0){var y=function(){var[g]=v,m=v[v.length-1],[,h]=g,[,b]=m;if(h.length===0&&b.length===0)return"continue";var w=j.equals(h,b)?j.parent(h):j.common(h,b),D=E.range(t,h,b),x=E.node(t,w),[C]=x,O=w.length+1,T=j.next(b.slice(0,O)),R=VS(VS({},e),{},{children:[]});N.insertNodes(t,R,{at:T,voids:i}),N.moveNodes(t,{at:D,match:H=>ft.isAncestor(C)&&C.children.includes(H),to:T.concat(0),voids:i})}();if(y==="continue")continue}}}}})}},MP=(t,e)=>{if(ft.isElement(e)){var r=e;return!!E.isVoid(t,e)||r.children.length===1&&MP(t,r.children[0])}return!E.isEditor(e)},wG=(t,e)=>{if(L.isCollapsed(e))return e.anchor;var[,r]=L.edges(e),n=E.pointRef(t,r);return N.delete(t,{at:e}),n.unref()},ws=(t,e)=>{var[r]=E.node(t,e);return n=>n===r};function US(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),r.push.apply(r,n)}return r}function WS(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?US(Object(r),!0).forEach(function(n){jo(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):US(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}var EG={collapse(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{edge:r="anchor"}=e,{selection:n}=t;if(n){if(r==="anchor")N.select(t,n.anchor);else if(r==="focus")N.select(t,n.focus);else if(r==="start"){var[o]=L.edges(n);N.select(t,o)}else if(r==="end"){var[,i]=L.edges(n);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:r}=t,{distance:n=1,unit:o="character",reverse:i=!1}=e,{edge:a=null}=e;if(r){a==="start"&&(a=L.isBackward(r)?"focus":"anchor"),a==="end"&&(a=L.isBackward(r)?"anchor":"focus");var{anchor:u,focus:s}=r,l={distance:n,unit:o},c={};if(a==null||a==="anchor"){var f=i?E.before(t,u,l):E.after(t,u,l);f&&(c.anchor=f)}if(a==null||a==="focus"){var d=i?E.before(t,s,l):E.after(t,s,l);d&&(c.focus=d)}N.setSelection(t,c)}},select(t,e){var{selection:r}=t;if(e=E.range(t,e),r)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:r,newProperties:e})}},setPoint(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{selection:n}=t,{edge:o="both"}=r;if(n){o==="start"&&(o=L.isBackward(n)?"focus":"anchor"),o==="end"&&(o=L.isBackward(n)?"anchor":"focus");var{anchor:i,focus:a}=n,u=o==="anchor"?i:a;N.setSelection(t,{[o==="anchor"?"anchor":"focus"]:WS(WS({},u),e)})}},setSelection(t,e){var{selection:r}=t,n={},o={};if(r){for(var i in e)(i==="anchor"&&e.anchor!=null&&!Ft.equals(e.anchor,r.anchor)||i==="focus"&&e.focus!=null&&!Ft.equals(e.focus,r.focus)||i!=="anchor"&&i!=="focus"&&e[i]!==r[i])&&(n[i]=r[i],o[i]=e[i]);Object.keys(n).length>0&&t.apply({type:"set_selection",properties:n,newProperties:o})}}},DG={delete(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};E.withoutNormalizing(t,()=>{var{reverse:r=!1,unit:n="character",distance:o=1,voids:i=!1}=e,{at:a=t.selection,hanging:u=!1}=e;if(a){if(L.isRange(a)&&L.isCollapsed(a)&&(a=a.anchor),Ft.isPoint(a)){var s=E.void(t,{at:a,mode:"highest"});if(!i&&s){var[,l]=s;a=l}else{var c={unit:n,distance:o};a={anchor:a,focus:r?E.before(t,a,c)||E.start(t,[]):E.after(t,a,c)||E.end(t,[])},u=!0}}if(j.isPath(a))N.removeNodes(t,{at:a,voids:i});else if(!L.isCollapsed(a)){if(!u){var[,f]=L.edges(a),d=E.end(t,[]);Ft.equals(f,d)||(a=E.unhangRange(t,a,{voids:i}))}var[p,v]=L.edges(a),y=E.above(t,{match:vt=>E.isBlock(t,vt),at:p,voids:i}),g=E.above(t,{match:vt=>E.isBlock(t,vt),at:v,voids:i}),m=y&&g&&!j.equals(y[1],g[1]),h=j.equals(p.path,v.path),b=i?null:E.void(t,{at:p,mode:"highest"}),w=i?null:E.void(t,{at:v,mode:"highest"});if(b){var D=E.before(t,p);D&&y&&j.isAncestor(y[1],D.path)&&(p=D)}if(w){var x=E.after(t,v);x&&g&&j.isAncestor(g[1],x.path)&&(v=x)}var C,O=[];for(var T of E.nodes(t,{at:a,voids:i})){var[R,H]=T;C&&j.compare(H,C)===0||(!i&&E.isVoid(t,R)||!j.isCommon(H,p.path)&&!j.isCommon(H,v.path))&&(O.push(T),C=H)}var M=Array.from(O,vt=>{var[,yt]=vt;return E.pathRef(t,yt)}),K=E.pointRef(t,p),U=E.pointRef(t,v);if(!h&&!b){var W=K.current,[q]=E.leaf(t,W),{path:rt}=W,{offset:lt}=p,st=q.text.slice(lt);st.length>0&&t.apply({type:"remove_text",path:rt,offset:lt,text:st})}for(var ut of M){var k=ut.unref();N.removeNodes(t,{at:k,voids:i})}if(!w){var S=U.current,[P]=E.leaf(t,S),{path:$}=S,Y=h?p.offset:0,V=P.text.slice(Y,v.offset);V.length>0&&t.apply({type:"remove_text",path:$,offset:Y,text:V})}!h&&m&&U.current&&K.current&&N.mergeNodes(t,{at:U.current,hanging:!0,voids:i});var at=r?K.unref()||U.unref():U.unref()||K.unref();e.at==null&&at&&N.select(t,at)}}})},insertFragment(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};E.withoutNormalizing(t,()=>{var{hanging:n=!1,voids:o=!1}=r,{at:i=t.selection}=r;if(e.length&&i){if(L.isRange(i))if(n||(i=E.unhangRange(t,i)),L.isCollapsed(i))i=i.anchor;else{var[,a]=L.edges(i);if(!o&&E.void(t,{at:a}))return;var u=E.pointRef(t,a);N.delete(t,{at:i}),i=u.unref()}else j.isPath(i)&&(i=E.start(t,i));if(o||!E.void(t,{at:i})){var s=E.above(t,{at:i,match:S=>E.isInline(t,S),mode:"highest",voids:o});if(s){var[,l]=s;E.isEnd(t,i,l)?i=E.after(t,l):E.isStart(t,i,l)&&(i=E.before(t,l))}var c=E.above(t,{match:S=>E.isBlock(t,S),at:i,voids:o}),[,f]=c,d=E.isStart(t,i,f),p=E.isEnd(t,i,f),v=d&&p,y=!d||d&&p,g=!p,[,m]=Q.first({children:e},[]),[,h]=Q.last({children:e},[]),b=[],w=S=>{var[P,$]=S;return $.length!==0&&(!!v||!(y&&j.isAncestor($,m)&&ft.isElement(P)&&!t.isVoid(P)&&!t.isInline(P))&&!(g&&j.isAncestor($,h)&&ft.isElement(P)&&!t.isVoid(P)&&!t.isInline(P)))};for(var D of Q.nodes({children:e},{pass:w}))w(D)&&b.push(D);var x=[],C=[],O=[],T=!0,R=!1;for(var[H]of b)ft.isElement(H)&&!t.isInline(H)?(T=!1,R=!0,C.push(H)):T?x.push(H):O.push(H);var[M]=E.nodes(t,{at:i,match:S=>it.isText(S)||E.isInline(t,S),mode:"highest",voids:o}),[,K]=M,U=E.isStart(t,i,K),W=E.isEnd(t,i,K),q=E.pathRef(t,p?j.next(f):f),rt=E.pathRef(t,W?j.next(K):K),lt=E.pathRef(t,f);N.splitNodes(t,{at:i,match:S=>R?E.isBlock(t,S):it.isText(S)||E.isInline(t,S),mode:R?"lowest":"highest",voids:o});var st=E.pathRef(t,!U||U&&W?j.next(K):K);if(N.insertNodes(t,x,{at:st.current,match:S=>it.isText(S)||E.isInline(t,S),mode:"highest",voids:o}),v&&C.length&&N.delete(t,{at:lt.unref(),voids:o}),N.insertNodes(t,C,{at:q.current,match:S=>E.isBlock(t,S),mode:"lowest",voids:o}),N.insertNodes(t,O,{at:rt.current,match:S=>it.isText(S)||E.isInline(t,S),mode:"highest",voids:o}),!r.at){var ut;ut=O.length>0?j.previous(rt.current):C.length>0?j.previous(q.current):j.previous(st.current);var k=E.end(t,ut);N.select(t,k)}st.unref(),q.unref(),rt.unref()}}})},insertText(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};E.withoutNormalizing(t,()=>{var{voids:n=!1}=r,{at:o=t.selection}=r;if(o){if(j.isPath(o)&&(o=E.range(t,o)),L.isRange(o))if(L.isCollapsed(o))o=o.anchor;else{var i=L.end(o);if(!n&&E.void(t,{at:i}))return;var a=E.pointRef(t,i);N.delete(t,{at:o,voids:n}),o=a.unref(),N.setSelection(t,{anchor:o,focus:o})}if(n||!E.void(t,{at:o})){var{path:u,offset:s}=o;e.length>0&&t.apply({type:"insert_text",path:u,offset:s,text:e})}}})}};function GS(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),r.push.apply(r,n)}return r}function Sh(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?GS(Object(r),!0).forEach(function(n){jo(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):GS(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}var N=Sh(Sh(Sh(Sh({},vG),bG),EG),DG),B4="[object Map]",F4="[object Set]",CG=/^\[object .+?Constructor\]$/,xG=/^(?:0|[1-9]\d*)$/,SG="[\\ud800-\\udfff]",T4="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",_4="\\ud83c[\\udffb-\\udfff]",zP="[^\\ud800-\\udfff]",$P="(?:\\ud83c[\\udde6-\\uddff]){2}",HP="[\\ud800-\\udbff][\\udc00-\\udfff]",qS="(?:"+T4+"|"+_4+")?",AG="[\\ufe0e\\ufe0f]?"+qS+("(?:\\u200d(?:"+[zP,$P,HP].join("|")+")[\\ufe0e\\ufe0f]?"+qS+")*"),OG="(?:"+[zP+T4+"?",T4,$P,HP,SG].join("|")+")",kG=RegExp(_4+"(?="+_4+")|"+OG+AG,"g"),BG=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),FG=typeof se=="object"&&se&&se.Object===Object&&se,TG=typeof self=="object"&&self&&self.Object===Object&&self,rs=FG||TG||Function("return this")();function _G(t,e){return function(r,n){for(var o=-1,i=r?r.length:0,a=Array(i);++o<i;)a[o]=n(r[o],o,r);return a}(e,function(r){return t[r]})}function PG(t){var e=-1,r=Array(t.size);return t.forEach(function(n,o){r[++e]=[o,n]}),r}function jG(t){var e=-1,r=Array(t.size);return t.forEach(function(n){r[++e]=n}),r}function NG(t){return function(e){return BG.test(e)}(t)?function(e){return e.match(kG)||[]}(t):function(e){return e.split("")}(t)}var KS,YS,IG=Function.prototype,xy=Object.prototype,a1=rs["__core-js_shared__"],XS=function(){var t=/[^.]+$/.exec(a1&&a1.keys&&a1.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),VP=IG.toString,Tv=xy.hasOwnProperty,Bp=xy.toString,LG=RegExp("^"+VP.call(Tv).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ZS=rs.Symbol,u1=ZS?ZS.iterator:void 0,RG=xy.propertyIsEnumerable,MG=(KS=Object.keys,YS=Object,function(t){return KS(YS(t))}),P4=Fp(rs,"DataView"),j4=Fp(rs,"Map"),N4=Fp(rs,"Promise"),I4=Fp(rs,"Set"),L4=Fp(rs,"WeakMap"),zG=ns(P4),$G=ns(j4),HG=ns(N4),VG=ns(I4),UG=ns(L4);function WG(t,e){var r=UP(t)||function(a){return function(u){return qP(u)&&p5(u)}(a)&&Tv.call(a,"callee")&&(!RG.call(a,"callee")||Bp.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):[],n=r.length,o=!!n;for(var i in t)!Tv.call(t,i)||o&&(i=="length"||KG(i,n))||r.push(i);return r}function GG(t){if(!GP(t)||function(r){return!!XS&&XS in r}(t))return!1;var e=WP(t)||function(r){var n=!1;if(r!=null&&typeof r.toString!="function")try{n=!!(r+"")}catch(o){}return n}(t)?LG:CG;return e.test(ns(t))}function qG(t){if(r=(e=t)&&e.constructor,n=typeof r=="function"&&r.prototype||xy,e!==n)return MG(t);var e,r,n,o=[];for(var i in Object(t))Tv.call(t,i)&&i!="constructor"&&o.push(i);return o}function Fp(t,e){var r=function(n,o){return n==null?void 0:n[o]}(t,e);return GG(r)?r:void 0}var Qa=function(t){return Bp.call(t)};function KG(t,e){return!!(e=e==null?9007199254740991:e)&&(typeof t=="number"||xG.test(t))&&t>-1&&t%1==0&&t<e}function ns(t){if(t!=null){try{return VP.call(t)}catch(e){}try{return t+""}catch(e){}}return""}(P4&&Qa(new P4(new ArrayBuffer(1)))!="[object DataView]"||j4&&Qa(new j4)!=B4||N4&&Qa(N4.resolve())!="[object Promise]"||I4&&Qa(new I4)!=F4||L4&&Qa(new L4)!="[object WeakMap]")&&(Qa=function(t){var e=Bp.call(t),r=e=="[object Object]"?t.constructor:void 0,n=r?ns(r):void 0;if(n)switch(n){case zG:return"[object DataView]";case $G:return B4;case HG:return"[object Promise]";case VG:return F4;case UG:return"[object WeakMap]"}return e});var UP=Array.isArray;function p5(t){return t!=null&&function(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=9007199254740991}(t.length)&&!WP(t)}function WP(t){var e=GP(t)?Bp.call(t):"";return e=="[object Function]"||e=="[object GeneratorFunction]"}function GP(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function qP(t){return!!t&&typeof t=="object"}function YG(t){return t?_G(t,function(e){return p5(e)?WG(e):qG(e)}(t)):[]}var JS=function(t){if(!t)return[];if(p5(t))return function(r){return typeof r=="string"||!UP(r)&&qP(r)&&Bp.call(r)=="[object String]"}(t)?NG(t):function(r,n){var o=-1,i=r.length;for(n||(n=Array(i));++o<i;)n[o]=r[o];return n}(t);if(u1&&t[u1])return function(r){for(var n,o=[];!(n=r.next()).done;)o.push(n.value);return o}(t[u1]());var e=Qa(t);return(e==B4?PG:e==F4?jG:YG)(t)};function QS(t){return t!==null&&typeof t=="object"&&"constructor"in t&&t.constructor===Object}function h5(t,e){t===void 0&&(t={}),e===void 0&&(e={}),Object.keys(e).forEach(function(r){t[r]===void 0?t[r]=e[r]:QS(e[r])&&QS(t[r])&&Object.keys(e[r]).length>0&&h5(t[r],e[r])})}var KP={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 Tp(){var t=typeof document!="undefined"?document:{};return h5(t,KP),t}var XG={document:KP,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState:function(){},pushState:function(){},go:function(){},back:function(){}},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){},matchMedia:function(){return{}},requestAnimationFrame:function(t){return typeof setTimeout=="undefined"?(t(),null):setTimeout(t,0)},cancelAnimationFrame:function(t){typeof setTimeout!="undefined"&&clearTimeout(t)}};function os(){var t=typeof window!="undefined"?window:{};return h5(t,XG),t}function R4(t){return R4=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},R4(t)}function _v(t,e){return _v=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r},_v(t,e)}function ZG(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}function M4(t,e,r){return M4=ZG()?Reflect.construct:function(n,o,i){var a=[null];a.push.apply(a,o);var u=new(Function.bind.apply(n,a));return i&&_v(u,i.prototype),u},M4.apply(null,arguments)}function z4(t){var e=typeof Map=="function"?new Map:void 0;return z4=function(r){if(r===null||!function(o){return Function.toString.call(o).indexOf("[native code]")!==-1}(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(e!==void 0){if(e.has(r))return e.get(r);e.set(r,n)}function n(){return M4(r,arguments,R4(this).constructor)}return n.prototype=Object.create(r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),_v(n,r)},z4(t)}var Wi=function(t){var e,r;function n(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 r=t,(e=n).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r,n}(z4(Array));function Sy(t){t===void 0&&(t=[]);var e=[];return t.forEach(function(r){Array.isArray(r)?e.push.apply(e,Sy(r)):e.push(r)}),e}function YP(t,e){return Array.prototype.filter.call(t,e)}function B(t,e){var r=os(),n=Tp(),o=[];if(!e&&t instanceof Wi)return t;if(!t)return new Wi(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=n.createElement(a);u.innerHTML=i;for(var s=0;s<u.childNodes.length;s+=1)o.push(u.childNodes[s])}else o=function(l,c){if(typeof l!="string")return[l];for(var f=[],d=c.querySelectorAll(l),p=0;p<d.length;p+=1)f.push(d[p]);return f}(t.trim(),e||n)}else if(t.nodeType||t===r||t===n)o.push(t);else if(Array.isArray(t)){if(t instanceof Wi)return t;o=t}return new Wi(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 Cl(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=Sy(e.map(function(o){return o.split(" ")}));return this.forEach(function(o){var i;(i=o.classList).add.apply(i,n)}),this}function xl(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=Sy(e.map(function(o){return o.split(" ")}));return this.forEach(function(o){var i;(i=o.classList).remove.apply(i,n)}),this}function Sl(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=Sy(e.map(function(o){return o.split(" ")}));return YP(this,function(o){return n.filter(function(i){return o.classList.contains(i)}).length>0}).length>0}function On(t,e){if(arguments.length===1&&typeof t=="string")return this[0]?this[0].getAttribute(t):void 0;for(var r=0;r<this.length;r+=1)if(arguments.length===2)this[r].setAttribute(t,e);else for(var n in t)this[r][n]=t[n],this[r].setAttribute(n,t[n]);return this}function Pv(t){for(var e=0;e<this.length;e+=1)this[e].removeAttribute(t);return this}function Al(){var t=this[0];if(t){var e,r={};if(t.dataset)for(var n in t.dataset)r[n]=t.dataset[n];else for(var o=0;o<t.attributes.length;o+=1){var i=t.attributes[o];i.name.indexOf("data-")>=0&&(r[e=i.name.split("data-")[1],e.toLowerCase().replace(/-(.)/g,function(u,s){return s.toUpperCase()})]=i.value)}for(var a in r)r[a]==="false"?r[a]=!1:r[a]==="true"?r[a]=!0:parseFloat(r[a])===1*r[a]&&(r[a]*=1);return r}}function Oo(t){if(t===void 0){var e=this[0];if(!e)return;if(e.multiple&&e.nodeName.toLowerCase()==="select"){for(var r=[],n=0;n<e.selectedOptions.length;n+=1)r.push(e.selectedOptions[n].value);return r}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 ko(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=e[0],o=e[1],i=e[2],a=e[3];function u(y){var g=y.target;if(g){var m=y.target.dom7EventData||[];if(m.indexOf(y)<0&&m.unshift(y),B(g).is(o))i.apply(g,m);else for(var h=B(g).parents(),b=0;b<h.length;b+=1)B(h[b]).is(o)&&i.apply(h[b],m)}}function s(y){var g=y&&y.target&&y.target.dom7EventData||[];g.indexOf(y)<0&&g.unshift(y),i.apply(this,g)}typeof e[1]=="function"&&(n=e[0],i=e[1],a=e[2],o=void 0),a||(a=!1);for(var l,c=n.split(" "),f=0;f<this.length;f+=1){var d=this[f];if(o)for(l=0;l<c.length;l+=1){var p=c[l];d.dom7LiveListeners||(d.dom7LiveListeners={}),d.dom7LiveListeners[p]||(d.dom7LiveListeners[p]=[]),d.dom7LiveListeners[p].push({listener:i,proxyListener:u}),d.addEventListener(p,u,a)}else for(l=0;l<c.length;l+=1){var v=c[l];d.dom7Listeners||(d.dom7Listeners={}),d.dom7Listeners[v]||(d.dom7Listeners[v]=[]),d.dom7Listeners[v].push({listener:i,proxyListener:s}),d.addEventListener(v,s,a)}}return this}function tA(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=e[0],o=e[1],i=e[2],a=e[3];typeof e[1]=="function"&&(n=e[0],i=e[1],a=e[2],o=void 0),a||(a=!1);for(var u=n.split(" "),s=0;s<u.length;s+=1)for(var l=u[s],c=0;c<this.length;c+=1){var f=this[c],d=void 0;if(!o&&f.dom7Listeners?d=f.dom7Listeners[l]:o&&f.dom7LiveListeners&&(d=f.dom7LiveListeners[l]),d&&d.length)for(var p=d.length-1;p>=0;p-=1){var v=d[p];i&&v.listener===i||i&&v.listener&&v.listener.dom7proxy&&v.listener.dom7proxy===i?(f.removeEventListener(l,v.proxyListener,a),d.splice(p,1)):i||(f.removeEventListener(l,v.proxyListener,a),d.splice(p,1))}}return this}function jv(){var t=os();return this[0]===t?t.innerWidth:this.length>0?parseFloat(this.css("width")):null}function Nv(){var t=os();return this[0]===t?t.innerHeight:this.length>0?parseFloat(this.css("height")):null}function eA(){if(this.length>0){var t=os(),e=Tp(),r=this[0],n=r.getBoundingClientRect(),o=e.body,i=r.clientTop||o.clientTop||0,a=r.clientLeft||o.clientLeft||0,u=r===t?t.scrollY:r.scrollTop,s=r===t?t.scrollX:r.scrollLeft;return{top:n.top+u-i,left:n.left+s-a}}return null}function Ol(){for(var t=0;t<this.length;t+=1)this[t].style.display="none";return this}function Iv(){for(var t=os(),e=0;e<this.length;e+=1){var r=this[e];r.style.display==="none"&&(r.style.display=""),t.getComputedStyle(r,null).getPropertyValue("display")==="none"&&(r.style.display="block")}return this}function Lv(t,e){var r,n=os();if(arguments.length===1){if(typeof t!="string"){for(r=0;r<this.length;r+=1)for(var o in t)this[r].style[o]=t[o];return this}if(this[0])return n.getComputedStyle(this[0],null).getPropertyValue(t)}if(arguments.length===2&&typeof t=="string"){for(r=0;r<this.length;r+=1)this[r].style[t]=e;return this}return this}function Rv(t){return t?(this.forEach(function(e,r){t.apply(e,[e,r])}),this):this}function rA(t){return B(YP(this,t))}function ga(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 Mv(t){if(t===void 0)return this[0]?this[0].textContent.trim():null;for(var e=0;e<this.length;e+=1)this[e].textContent=t;return this}function nA(t){var e,r,n=os(),o=Tp(),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),r=0;r<e.length;r+=1)if(e[r]===i)return!0;return!1}if(t===o)return i===o;if(t===n)return i===n;if(t.nodeType||t instanceof Wi){for(e=t.nodeType?[t]:t,r=0;r<e.length;r+=1)if(e[r]===i)return!0;return!1}return!1}function kn(){for(var t,e=Tp(),r=0;r<arguments.length;r+=1){t=r<0||arguments.length<=r?void 0:arguments[r];for(var n=0;n<this.length;n+=1)if(typeof t=="string"){var o=e.createElement("div");for(o.innerHTML=t;o.firstChild;)this[n].appendChild(o.firstChild)}else if(t instanceof Wi)for(var i=0;i<t.length;i+=1)this[n].appendChild(t[i]);else this[n].appendChild(t)}return this}function oA(t){var e,r,n=Tp();for(e=0;e<this.length;e+=1)if(typeof t=="string"){var o=n.createElement("div");for(o.innerHTML=t,r=o.childNodes.length-1;r>=0;r-=1)this[e].insertBefore(o.childNodes[r],this[e].childNodes[0])}else if(t instanceof Wi)for(r=0;r<t.length;r+=1)this[e].insertBefore(t[r],this[e].childNodes[0]);else this[e].insertBefore(t,this[e].childNodes[0]);return this}function kl(t){for(var e=[],r=0;r<this.length;r+=1)this[r].parentNode!==null&&(t?B(this[r].parentNode).is(t)&&e.push(this[r].parentNode):e.push(this[r].parentNode));return B(e)}function zv(t){for(var e=[],r=0;r<this.length;r+=1)for(var n=this[r].parentNode;n;)t?B(n).is(t)&&e.push(n):e.push(n),n=n.parentNode;return B(e)}function Bl(t){for(var e=[],r=0;r<this.length;r+=1)for(var n=this[r].querySelectorAll(t),o=0;o<n.length;o+=1)e.push(n[o]);return B(e)}function Fl(t){for(var e=[],r=0;r<this.length;r+=1)for(var n=this[r].children,o=0;o<n.length;o+=1)t&&!B(n[o]).is(t)||e.push(n[o]);return B(e)}function Tl(){for(var t=0;t<this.length;t+=1)this[t].parentNode&&this[t].parentNode.removeChild(this[t]);return this}function _l(){for(var t=0;t<this.length;t+=1){var e=this[t];if(e.nodeType===1){for(var r=0;r<e.childNodes.length;r+=1)e.childNodes[r].parentNode&&e.childNodes[r].parentNode.removeChild(e.childNodes[r]);e.textContent=""}}return this}B.fn=Wi.prototype;var JG="resize scroll".split(" ");function XP(t){return function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];if(r[0]===void 0){for(var o=0;o<this.length;o+=1)JG.indexOf(t)<0&&(t in this[o]?this[o][t]():B(this[o]).trigger(t));return this}return this.on.apply(this,[t].concat(r))}}var iA=XP("click"),va=XP("focus"),QG="[object GeneratorFunction]",tq=/^(?:0|[1-9]\d*)$/;function eq(t,e){for(var r=-1,n=t?t.length:0;++r<n&&e(t[r],r,t)!==!1;);return t}var Ay=Object.prototype,$4=Ay.hasOwnProperty,ZP=Ay.toString,rq=Ay.propertyIsEnumerable,nq=function(t,e){return function(r){return t(e(r))}}(Object.keys,Object);function oq(t,e){var r=JP(t)||function(a){return function(u){return function(s){return!!s&&typeof s=="object"}(u)&&g5(u)}(a)&&$4.call(a,"callee")&&(!rq.call(a,"callee")||ZP.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):[],n=r.length,o=!!n;for(var i in t)!$4.call(t,i)||o&&(i=="length"||sq(i,n))||r.push(i);return r}var aA,iq=(aA=function(t,e){return t&&aq(t,e,lq)},function(t,e){if(t==null)return t;if(!g5(t))return aA(t,e);for(var r=t.length,n=-1,o=Object(t);++n<r&&e(o[n],n,o)!==!1;);return t}),aq=function(t){return function(e,r,n){for(var o=-1,i=Object(e),a=n(e),u=a.length;u--;){var s=a[++o];if(r(i[s],s,i)===!1)break}return e}}();function uq(t){if(r=(e=t)&&e.constructor,n=typeof r=="function"&&r.prototype||Ay,e!==n)return nq(t);var e,r,n,o=[];for(var i in Object(t))$4.call(t,i)&&i!="constructor"&&o.push(i);return o}function sq(t,e){return!!(e=e==null?9007199254740991:e)&&(typeof t=="number"||tq.test(t))&&t>-1&&t%1==0&&t<e}var JP=Array.isArray;function g5(t){return t!=null&&function(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=9007199254740991}(t.length)&&!function(e){var r=function(n){var o=typeof n;return!!n&&(o=="object"||o=="function")}(e)?ZP.call(e):"";return r=="[object Function]"||r==QG}(t)}function lq(t){return g5(t)?oq(t):uq(t)}function cq(t){return t}var v5=function(t,e){return(JP(t)?eq:iq)(t,typeof e=="function"?e:cq)};let QP=(t=21)=>{let e="",r=crypto.getRandomValues(new Uint8Array(t));for(;t--;){let n=63&r[t];e+=n<36?n.toString(36):n<62?(n-26).toString(36).toUpperCase():n<63?"_":"-"}return e};var fq=/^\s+|\s+$/g,dq=/^[-+]0x[0-9a-f]+$/i,pq=/^0b[01]+$/i,hq=/^0o[0-7]+$/i,gq=parseInt,vq=typeof se=="object"&&se&&se.Object===Object&&se,yq=typeof self=="object"&&self&&self.Object===Object&&self,mq=vq||yq||Function("return this")(),bq=Object.prototype.toString,wq=Math.max,Eq=Math.min,s1=function(){return mq.Date.now()};function Dq(t,e,r){var n,o,i,a,u,s,l=0,c=!1,f=!1,d=!0;if(typeof t!="function")throw new TypeError("Expected a function");function p(b){var w=n,D=o;return n=o=void 0,l=b,a=t.apply(D,w)}function v(b){return l=b,u=setTimeout(g,e),c?p(b):a}function y(b){var w=b-s;return s===void 0||w>=e||w<0||f&&b-l>=i}function g(){var b=s1();if(y(b))return m(b);u=setTimeout(g,function(w){var D=e-(w-s);return f?Eq(D,i-(w-l)):D}(b))}function m(b){return u=void 0,d&&n?p(b):(n=o=void 0,a)}function h(){var b=s1(),w=y(b);if(n=arguments,o=this,s=b,w){if(u===void 0)return v(s);if(f)return u=setTimeout(g,e),p(s)}return u===void 0&&(u=setTimeout(g,e)),a}return e=uA(e)||0,$v(r)&&(c=!!r.leading,i=(f="maxWait"in r)?wq(uA(r.maxWait)||0,e):i,d="trailing"in r?!!r.trailing:d),h.cancel=function(){u!==void 0&&clearTimeout(u),l=0,n=s=o=u=void 0},h.flush=function(){return u===void 0?a:m(s1())},h}function $v(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function uA(t){if(typeof t=="number")return t;if(function(n){return typeof n=="symbol"||function(o){return!!o&&typeof o=="object"}(n)&&bq.call(n)=="[object Symbol]"}(t))return NaN;if($v(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=$v(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=t.replace(fq,"");var r=pq.test(t);return r||hq.test(t)?gq(t.slice(2),r?2:8):dq.test(t)?NaN:+t}var Hu=function(t,e,r){var n=!0,o=!0;if(typeof t!="function")throw new TypeError("Expected a function");return $v(r)&&(n="leading"in r?!!r.leading:n,o="trailing"in r?!!r.trailing:o),Dq(t,e,{leading:n,maxWait:e,trailing:o})};const Cq={createElement:function(t,e){return document.createElement(t,e)},createElementNS:function(t,e,r){return document.createElementNS(t,e,r)},createTextNode:function(t){return document.createTextNode(t)},createComment:function(t){return document.createComment(t)},insertBefore:function(t,e,r){t.insertBefore(e,r)},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 Bd(t,e,r,n,o){return{sel:t,data:e,children:r,text:n,elm:o,key:e===void 0?void 0:e.key}}const H4=Array.isArray;function Ng(t){return typeof t=="string"||typeof t=="number"||t instanceof String||t instanceof Number}function l1(t){return t===void 0}function Xr(t){return t!==void 0}const sA=Bd("",{},[],void 0,void 0);function kc(t,e){var r,n;const o=t.key===e.key,i=((r=t.data)===null||r===void 0?void 0:r.is)===((n=e.data)===null||n===void 0?void 0:n.is);return t.sel===e.sel&&o&&i}function xq(t,e,r){var n;const o={};for(let i=e;i<=r;++i){const a=(n=t[i])===null||n===void 0?void 0:n.key;a!==void 0&&(o[a]=i)}return o}const Sq=["create","update","remove","destroy","pre","post"];function Aq(t,e){const r={create:[],update:[],remove:[],destroy:[],pre:[],post:[]},n=Cq;for(const f of Sq)for(const d of t){const p=d[f];p!==void 0&&r[f].push(p)}function o(f){const d=f.id?"#"+f.id:"",p=f.getAttribute("class"),v=p?"."+p.split(" ").join("."):"";return Bd(n.tagName(f).toLowerCase()+d+v,{},[],void 0,f)}function i(f,d){return function(){if(--d==0){const p=n.parentNode(f);n.removeChild(p,f)}}}function a(f,d){var p,v;let y,g=f.data;if(g!==void 0){const b=(p=g.hook)===null||p===void 0?void 0:p.init;Xr(b)&&(b(f),g=f.data)}const m=f.children,h=f.sel;if(h==="!")l1(f.text)&&(f.text=""),f.elm=n.createComment(f.text);else if(h!==void 0){const b=h.indexOf("#"),w=h.indexOf(".",b),D=b>0?b:h.length,x=w>0?w:h.length,C=b!==-1||w!==-1?h.slice(0,Math.min(D,x)):h,O=f.elm=Xr(g)&&Xr(y=g.ns)?n.createElementNS(y,C,g):n.createElement(C,g);for(D<x&&O.setAttribute("id",h.slice(D+1,x)),w>0&&O.setAttribute("class",h.slice(x+1).replace(/\./g," ")),y=0;y<r.create.length;++y)r.create[y](sA,f);if(H4(m))for(y=0;y<m.length;++y){const R=m[y];R!=null&&n.appendChild(O,a(R,d))}else Ng(f.text)&&n.appendChild(O,n.createTextNode(f.text));const T=f.data.hook;Xr(T)&&((v=T.create)===null||v===void 0||v.call(T,sA,f),T.insert&&d.push(f))}else f.elm=n.createTextNode(f.text);return f.elm}function u(f,d,p,v,y,g){for(;v<=y;++v){const m=p[v];m!=null&&n.insertBefore(f,a(m,g),d)}}function s(f){var d,p;const v=f.data;if(v!==void 0){(p=(d=v==null?void 0:v.hook)===null||d===void 0?void 0:d.destroy)===null||p===void 0||p.call(d,f);for(let y=0;y<r.destroy.length;++y)r.destroy[y](f);if(f.children!==void 0)for(let y=0;y<f.children.length;++y){const g=f.children[y];g!=null&&typeof g!="string"&&s(g)}}}function l(f,d,p,v){for(var y,g;p<=v;++p){let m,h;const b=d[p];if(b!=null)if(Xr(b.sel)){s(b),m=r.remove.length+1,h=i(b.elm,m);for(let D=0;D<r.remove.length;++D)r.remove[D](b,h);const w=(g=(y=b==null?void 0:b.data)===null||y===void 0?void 0:y.hook)===null||g===void 0?void 0:g.remove;Xr(w)?w(b,h):h()}else n.removeChild(f,b.elm)}}function c(f,d,p){var v,y,g,m,h;const b=(v=d.data)===null||v===void 0?void 0:v.hook;(y=b==null?void 0:b.prepatch)===null||y===void 0||y.call(b,f,d);const w=d.elm=f.elm,D=f.children,x=d.children;if(f!==d){if(d.data!==void 0){for(let C=0;C<r.update.length;++C)r.update[C](f,d);(m=(g=d.data.hook)===null||g===void 0?void 0:g.update)===null||m===void 0||m.call(g,f,d)}l1(d.text)?Xr(D)&&Xr(x)?D!==x&&function(C,O,T,R){let H,M,K,U,W=0,q=0,rt=O.length-1,lt=O[0],st=O[rt],ut=T.length-1,k=T[0],S=T[ut];for(;W<=rt&&q<=ut;)lt==null?lt=O[++W]:st==null?st=O[--rt]:k==null?k=T[++q]:S==null?S=T[--ut]:kc(lt,k)?(c(lt,k,R),lt=O[++W],k=T[++q]):kc(st,S)?(c(st,S,R),st=O[--rt],S=T[--ut]):kc(lt,S)?(c(lt,S,R),n.insertBefore(C,lt.elm,n.nextSibling(st.elm)),lt=O[++W],S=T[--ut]):kc(st,k)?(c(st,k,R),n.insertBefore(C,st.elm,lt.elm),st=O[--rt],k=T[++q]):(H===void 0&&(H=xq(O,W,rt)),M=H[k.key],l1(M)?n.insertBefore(C,a(k,R),lt.elm):(K=O[M],K.sel!==k.sel?n.insertBefore(C,a(k,R),lt.elm):(c(K,k,R),O[M]=void 0,n.insertBefore(C,K.elm,lt.elm))),k=T[++q]);(W<=rt||q<=ut)&&(W>rt?(U=T[ut+1]==null?null:T[ut+1].elm,u(C,U,T,q,ut,R)):l(C,O,W,rt))}(w,D,x,p):Xr(x)?(Xr(f.text)&&n.setTextContent(w,""),u(w,null,x,0,x.length-1,p)):Xr(D)?l(w,D,0,D.length-1):Xr(f.text)&&n.setTextContent(w,""):f.text!==d.text&&(Xr(D)&&l(w,D,0,D.length-1),n.setTextContent(w,d.text)),(h=b==null?void 0:b.postpatch)===null||h===void 0||h.call(b,f,d)}}return function(f,d){let p,v,y;const g=[];for(p=0;p<r.pre.length;++p)r.pre[p]();for(function(m){return m.sel!==void 0}(f)||(f=o(f)),kc(f,d)?c(f,d,g):(v=f.elm,y=n.parentNode(v),a(d,g),y!==null&&(n.insertBefore(y,d.elm,n.nextSibling(v)),l(y,[f],0,0))),p=0;p<g.length;++p)g[p].data.hook.insert(g[p]);for(p=0;p<r.post.length;++p)r.post[p]();return d}}function tj(t,e,r){if(t.ns="http://www.w3.org/2000/svg",r!=="foreignObject"&&e!==void 0)for(let n=0;n<e.length;++n){const o=e[n].data;o!==void 0&&tj(o,e[n].children,e[n].sel)}}function Pl(t,e,r){let n,o,i,a={};if(r!==void 0?(e!==null&&(a=e),H4(r)?n=r:Ng(r)?o=r.toString():r&&r.sel&&(n=[r])):e!=null&&(H4(e)?n=e:Ng(e)?o=e.toString():e&&e.sel?n=[e]:a=e),n!==void 0)for(i=0;i<n.length;++i)Ng(n[i])&&(n[i]=Bd(void 0,void 0,void 0,n[i],void 0));return t[0]!=="s"||t[1]!=="v"||t[2]!=="g"||t.length!==3&&t[3]!=="."&&t[3]!=="#"||tj(a,n,t),Bd(t,a,n,o,void 0)}function lA(t,e){let r;const n=e.elm;let o=t.data.attrs,i=e.data.attrs;if((o||i)&&o!==i){for(r in o=o||{},i=i||{},i){const a=i[r];o[r]!==a&&(a===!0?n.setAttribute(r,""):a===!1?n.removeAttribute(r):r.charCodeAt(0)!==120?n.setAttribute(r,a):r.charCodeAt(3)===58?n.setAttributeNS("http://www.w3.org/XML/1998/namespace",r,a):r.charCodeAt(5)===58?n.setAttributeNS("http://www.w3.org/1999/xlink",r,a):n.setAttribute(r,a))}for(r in o)r in i||n.removeAttribute(r)}}const Oq={create:lA,update:lA};function cA(t,e){let r,n;const o=e.elm;let i=t.data.class,a=e.data.class;if((i||a)&&i!==a){for(n in i=i||{},a=a||{},i)i[n]&&!Object.prototype.hasOwnProperty.call(a,n)&&o.classList.remove(n);for(n in a)r=a[n],r!==i[n]&&o.classList[r?"add":"remove"](n)}}const kq={create:cA,update:cA},fA=/[A-Z]/g;function dA(t,e){const r=e.elm;let n,o=t.data.dataset,i=e.data.dataset;if(!o&&!i||o===i)return;o=o||{},i=i||{};const a=r.dataset;for(n in o)i[n]||(a?n in a&&delete a[n]:r.removeAttribute("data-"+n.replace(fA,"-$&").toLowerCase()));for(n in i)o[n]!==i[n]&&(a?a[n]=i[n]:r.setAttribute("data-"+n.replace(fA,"-$&").toLowerCase(),i[n]))}const Bq={create:dA,update:dA};function ej(t,e,r){if(typeof t=="function")t.call(e,r,e);else if(typeof t=="object")for(let n=0;n<t.length;n++)ej(t[n],e,r)}function Fq(t,e){const r=t.type,n=e.data.on;n&&n[r]&&ej(n[r],e,t)}function c1(t,e){const r=t.data.on,n=t.listener,o=t.elm,i=e&&e.data.on,a=e&&e.elm;let u;if(r!==i){if(r&&n)if(i)for(u in r)i[u]||o.removeEventListener(u,n,!1);else for(u in r)o.removeEventListener(u,n,!1);if(i){const s=e.listener=t.listener||function l(c){Fq(c,l.vnode)};if(s.vnode=e,r)for(u in i)r[u]||a.addEventListener(u,s,!1);else for(u in i)a.addEventListener(u,s,!1)}}}const Tq={create:c1,update:c1,destroy:c1};function pA(t,e){let r,n,o;const i=e.elm;let a=t.data.props,u=e.data.props;if((a||u)&&a!==u)for(r in a=a||{},u=u||{},u)n=u[r],o=a[r],o===n||r==="value"&&i[r]===n||(i[r]=n)}const _q={create:pA,update:pA},hA=typeof window!="undefined"&&window.requestAnimationFrame.bind(window)||setTimeout;let f1=!1;function Pq(t,e,r){(function(n){hA(function(){hA(n)})})(function(){t[e]=r})}function gA(t,e){let r,n;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(n in i)a[n]||(n[0]==="-"&&n[1]==="-"?o.style.removeProperty(n):o.style[n]="");for(n in a)if(r=a[n],n==="delayed"&&a.delayed)for(const s in a.delayed)r=a.delayed[s],u&&r===i.delayed[s]||Pq(o.style,s,r);else n!=="remove"&&r!==i[n]&&(n[0]==="-"&&n[1]==="-"?o.style.setProperty(n,r):o.style[n]=r)}const jq={pre:function(){f1=!1},create:gA,update:gA,destroy:function(t){let e,r;const n=t.elm,o=t.data.style;if(o&&(e=o.destroy))for(r in e)n.style[r]=e[r]},remove:function(t,e){const r=t.data.style;if(!r||!r.remove)return void e();let n;f1||(t.elm.offsetLeft,f1=!0);const o=t.elm;let i=0;const a=r.remove;let u=0;const s=[];for(n in a)s.push(n),o.style[n]=a[n];const l=getComputedStyle(o)["transition-property"].split(", ");for(;i<l.length;++i)s.indexOf(l[i])!==-1&&u++;o.addEventListener("transitionend",function(c){c.target===o&&--u,u===0&&e()})}};function rj(t,e){for(const r of t)r!=null&&r!==!1&&r!==""&&(Array.isArray(r)?rj(r,e):typeof r=="string"||typeof r=="number"||typeof r=="boolean"?e.push(Bd(void 0,void 0,void 0,String(r),void 0)):e.push(r));return e}function wt(t,e,...r){const n=rj(r,[]);return typeof t=="function"?t(e,n):n.length===1&&!n[0].sel&&n[0].text?Pl(t,e,n[0].text):Pl(t,e,n)}wt||(wt={});var Nq=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Iq=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,nj="\\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",Lq="[\\ud800-\\udfff]",vA="["+nj+"]",Hv="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",oj="\\d+",Rq="[\\u2700-\\u27bf]",ij="[a-z\\xdf-\\xf6\\xf8-\\xff]",aj="[^\\ud800-\\udfff"+nj+oj+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",V4="\\ud83c[\\udffb-\\udfff]",uj="[^\\ud800-\\udfff]",y5="(?:\\ud83c[\\udde6-\\uddff]){2}",m5="[\\ud800-\\udbff][\\udc00-\\udfff]",Ys="[A-Z\\xc0-\\xd6\\xd8-\\xde]",yA="(?:"+ij+"|"+aj+")",Mq="(?:"+Ys+"|"+aj+")",mA="(?:"+Hv+"|"+V4+")?",sj="[\\ufe0e\\ufe0f]?"+mA+("(?:\\u200d(?:"+[uj,y5,m5].join("|")+")[\\ufe0e\\ufe0f]?"+mA+")*"),zq="(?:"+[Rq,y5,m5].join("|")+")"+sj,$q="(?:"+[uj+Hv+"?",Hv,y5,m5,Lq].join("|")+")",Hq=RegExp("[']","g"),Vq=RegExp(Hv,"g"),Uq=RegExp(V4+"(?="+V4+")|"+$q+sj,"g"),Wq=RegExp([Ys+"?"+ij+"+(?:['](?:d|ll|m|re|s|t|ve))?(?="+[vA,Ys,"$"].join("|")+")",Mq+"+(?:['](?:D|LL|M|RE|S|T|VE))?(?="+[vA,Ys+yA,"$"].join("|")+")",Ys+"?"+yA+"+(?:['](?:d|ll|m|re|s|t|ve))?",Ys+"+(?:['](?:D|LL|M|RE|S|T|VE))?",oj,zq].join("|"),"g"),Gq=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),qq=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Kq=typeof se=="object"&&se&&se.Object===Object&&se,Yq=typeof self=="object"&&self&&self.Object===Object&&self,Xq=Kq||Yq||Function("return this")(),d1,Zq=(d1={À:"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 d1==null?void 0:d1[t]});function lj(t){return Gq.test(t)}function Jq(t){return lj(t)?function(e){return e.match(Uq)||[]}(t):function(e){return e.split("")}(t)}var Qq=Object.prototype.toString,bA=Xq.Symbol,wA=bA?bA.prototype:void 0,EA=wA?wA.toString:void 0;function tK(t){if(typeof t=="string")return t;if(function(r){return typeof r=="symbol"||function(n){return!!n&&typeof n=="object"}(r)&&Qq.call(r)=="[object Symbol]"}(t))return EA?EA.call(t):"";var e=t+"";return e=="0"&&1/t==-1/0?"-0":e}function eK(t,e,r){var n=t.length;return r=r===void 0?n:r,function(o,i,a){var u=-1,s=o.length;i<0&&(i=-i>s?0:s+i),(a=a>s?s:a)<0&&(a+=s),s=i>a?0:a-i>>>0,i>>>=0;for(var l=Array(s);++u<s;)l[u]=o[u+i];return l}(t,e,r)}function Ig(t){return t==null?"":tK(t)}var DA,rK=(DA=function(t,e,r){return e=e.toLowerCase(),t+(r?nK(Ig(e).toLowerCase()):e)},function(t){return function(e,r,n,o){var i=-1,a=e?e.length:0;for(o;++i<a;)n=r(n,e[i],i,e);return n}(function(e,r,n){return e=Ig(e),(r=r)===void 0?function(o){return qq.test(o)}(e)?function(o){return o.match(Wq)||[]}(e):function(o){return o.match(Nq)||[]}(e):e.match(r)||[]}(function(e){return(e=Ig(e))&&e.replace(Iq,Zq).replace(Vq,"")}(t).replace(Hq,"")),DA,"")}),CA,nK=(CA="toUpperCase",function(t){var e=lj(t=Ig(t))?Jq(t):void 0,r=e?e[0]:t.charAt(0),n=e?eK(e,1).join(""):t.slice(1);return r[CA]()+n});for(var oK=rK,iK=typeof window!="undefined"&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),p1={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},cj={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:iK?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},b5={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},Ah=1;Ah<20;Ah++)b5["f"+Ah]=111+Ah;function fj(t,e,r){e&&!("byKey"in e)&&(r=e,e=null),Array.isArray(t)||(t=[t]);var n=t.map(function(i){return function(a,u){var s=u&&u.byKey,l={},c=(a=a.replace("++","+add")).split("+"),f=c.length;for(var d in p1)l[p1[d]]=!1;var p=!0,v=!1,y=void 0;try{for(var g,m=c[Symbol.iterator]();!(p=(g=m.next()).done);p=!0){var h=g.value,b=h.endsWith("?")&&h.length>1;b&&(h=h.slice(0,-1));var w=dj(h),D=p1[w];if(h.length>1&&!D&&!cj[h]&&!b5[w])throw new TypeError('Unknown modifier: "'+h+'"');f!==1&&D||(s?l.key=w:l.which=aK(h)),D&&(l[D]=!b||null)}}catch(x){v=!0,y=x}finally{try{!p&&m.return&&m.return()}finally{if(v)throw y}}return l}(i,e)}),o=function(i){return n.some(function(a){return function(u,s){for(var l in u){var c=u[l],f=void 0;if(c!=null&&((f=l==="key"&&s.key!=null?s.key.toLowerCase():l==="which"?c===91&&s.which===93?91:s.which:s[l])!=null||c!==!1)&&f!==c)return!1}return!0}(a,i)})};return r==null?o:o(r)}function aK(t){return t=dj(t),b5[t]||t.toUpperCase().charCodeAt(0)}function dj(t){return t=t.toLowerCase(),t=cj[t]||t}var uK=fj,h1=function(t,e){return fj(t,{byKey:!0},e)},sK=/^\s+|\s+$/g,lK=/^[-+]0x[0-9a-f]+$/i,cK=/^0b[01]+$/i,fK=/^0o[0-7]+$/i,dK=parseInt,pK=typeof se=="object"&&se&&se.Object===Object&&se,hK=typeof self=="object"&&self&&self.Object===Object&&self,gK=pK||hK||Function("return this")(),vK=Object.prototype.toString,yK=Math.max,mK=Math.min,g1=function(){return gK.Date.now()};function U4(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function xA(t){if(typeof t=="number")return t;if(function(n){return typeof n=="symbol"||function(o){return!!o&&typeof o=="object"}(n)&&vK.call(n)=="[object Symbol]"}(t))return NaN;if(U4(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=U4(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=t.replace(sK,"");var r=cK.test(t);return r||fK.test(t)?dK(t.slice(2),r?2:8):lK.test(t)?NaN:+t}var Es,pj=function(t,e,r){var n,o,i,a,u,s,l=0,c=!1,f=!1,d=!0;if(typeof t!="function")throw new TypeError("Expected a function");function p(b){var w=n,D=o;return n=o=void 0,l=b,a=t.apply(D,w)}function v(b){return l=b,u=setTimeout(g,e),c?p(b):a}function y(b){var w=b-s;return s===void 0||w>=e||w<0||f&&b-l>=i}function g(){var b=g1();if(y(b))return m(b);u=setTimeout(g,function(w){var D=e-(w-s);return f?mK(D,i-(w-l)):D}(b))}function m(b){return u=void 0,d&&n?p(b):(n=o=void 0,a)}function h(){var b=g1(),w=y(b);if(n=arguments,o=this,s=b,w){if(u===void 0)return v(s);if(f)return u=setTimeout(g,e),p(s)}return u===void 0&&(u=setTimeout(g,e)),a}return e=xA(e)||0,U4(r)&&(c=!!r.leading,i=(f="maxWait"in r)?yK(xA(r.maxWait)||0,e):i,d="trailing"in r?!!r.trailing:d),h.cancel=function(){u!==void 0&&clearTimeout(u),l=0,n=s=o=u=void 0},h.flush=function(){return u===void 0?a:m(g1())},h},hj=ts(function(t,e){var r="__lodash_hash_undefined__",n=9007199254740991,o="[object Arguments]",i="[object Boolean]",a="[object Date]",u="[object Function]",s="[object GeneratorFunction]",l="[object Map]",c="[object Number]",f="[object Object]",d="[object Promise]",p="[object RegExp]",v="[object Set]",y="[object String]",g="[object Symbol]",m="[object WeakMap]",h="[object ArrayBuffer]",b="[object DataView]",w="[object Float32Array]",D="[object Float64Array]",x="[object Int8Array]",C="[object Int16Array]",O="[object Int32Array]",T="[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[D]=q[x]=q[C]=q[O]=q[l]=q[c]=q[f]=q[p]=q[v]=q[y]=q[g]=q[T]=q[R]=q[H]=q[M]=!0,q["[object Error]"]=q[u]=q[m]=!1;var rt=typeof se=="object"&&se&&se.Object===Object&&se,lt=typeof self=="object"&&self&&self.Object===Object&&self,st=rt||lt||Function("return this")(),ut=e&&!e.nodeType&&e,k=ut&&t&&!t.nodeType&&t,S=k&&k.exports===ut;function P(F,z){return F.set(z[0],z[1]),F}function $(F,z){return F.add(z),F}function Y(F,z,ot,ct){var $t=-1,me=F?F.length:0;for(ct;++$t<me;)ot=z(ot,F[$t],$t,F);return ot}function V(F){var z=!1;if(F!=null&&typeof F.toString!="function")try{z=!!(F+"")}catch(ot){}return z}function at(F){var z=-1,ot=Array(F.size);return F.forEach(function(ct,$t){ot[++z]=[$t,ct]}),ot}function vt(F,z){return function(ot){return F(z(ot))}}function yt(F){var z=-1,ot=Array(F.size);return F.forEach(function(ct){ot[++z]=ct}),ot}var Ct=Array.prototype,G=Function.prototype,Lt=Object.prototype,Ot=st["__core-js_shared__"],pt=function(){var F=/[^.]+$/.exec(Ot&&Ot.keys&&Ot.keys.IE_PROTO||"");return F?"Symbol(src)_1."+F:""}(),kt=G.toString,Be=Lt.hasOwnProperty,Ht=Lt.toString,ee=RegExp("^"+kt.call(Be).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ye=S?st.Buffer:void 0,vr=st.Symbol,zt=st.Uint8Array,Ir=vt(Object.getPrototypeOf,Object),Nn=Object.create,eo=Lt.propertyIsEnumerable,ds=Ct.splice,Na=Object.getOwnPropertySymbols,In=ye?ye.isBuffer:void 0,ro=vt(Object.keys,Object),Io=no(st,"DataView"),yr=no(st,"Map"),mr=no(st,"Promise"),br=no(st,"Set"),Fr=no(st,"WeakMap"),nr=no(Object,"create"),pn=io(Io),gc=io(yr),hi=io(mr),Lo=io(br),ps=io(Fr),Ia=vr?vr.prototype:void 0,hs=Ia?Ia.valueOf:void 0;function Ln(F){var z=-1,ot=F?F.length:0;for(this.clear();++z<ot;){var ct=F[z];this.set(ct[0],ct[1])}}function hn(F){var z=-1,ot=F?F.length:0;for(this.clear();++z<ot;){var ct=F[z];this.set(ct[0],ct[1])}}function Ro(F){var z=-1,ot=F?F.length:0;for(this.clear();++z<ot;){var ct=F[z];this.set(ct[0],ct[1])}}function Rn(F){this.__data__=new hn(F)}function gi(F,z){var ot=_(F)||function(ce){return function(Wt){return function(Ze){return!!Ze&&typeof Ze=="object"}(Wt)&&I(Wt)}(ce)&&Be.call(ce,"callee")&&(!eo.call(ce,"callee")||Ht.call(ce)==o)}(F)?function(ce,Wt){for(var Ze=-1,wr=Array(ce);++Ze<ce;)wr[Ze]=Wt(Ze);return wr}(F.length,String):[],ct=ot.length,$t=!!ct;for(var me in F)!Be.call(F,me)||$t&&(me=="length"||fh(me,ct))||ot.push(me);return ot}function lh(F,z,ot){var ct=F[z];Be.call(F,z)&&dh(ct,ot)&&(ot!==void 0||z in F)||(F[z]=ot)}function Yr(F,z){for(var ot=F.length;ot--;)if(dh(F[ot][0],z))return ot;return-1}function vc(F,z,ot,ct,$t,me,ce){var Wt;if(ct&&(Wt=me?ct(F,$t,me,ce):ct(F)),Wt!==void 0)return Wt;if(!re(F))return F;var Ze=_(F);if(Ze){if(Wt=function(bt){var Jt=bt.length,je=bt.constructor(Jt);return Jt&&typeof bt[0]=="string"&&Be.call(bt,"index")&&(je.index=bt.index,je.input=bt.input),je}(F),!z)return function(bt,Jt){var je=-1,Rt=bt.length;for(Jt||(Jt=Array(Rt));++je<Rt;)Jt[je]=bt[je];return Jt}(F,Wt)}else{var wr=oo(F),La=wr==u||wr==s;if(J(F))return function(bt,Jt){if(Jt)return bt.slice();var je=new bt.constructor(bt.length);return bt.copy(je),je}(F,z);if(wr==f||wr==o||La&&!me){if(V(F))return me?F:{};if(Wt=function(bt){return typeof bt.constructor!="function"||vi(bt)?{}:(Jt=Ir(bt),re(Jt)?Nn(Jt):{});var Jt}(La?{}:F),!z)return function(bt,Jt){return ch(bt,yc(bt),Jt)}(F,function(bt,Jt){return bt&&ch(Jt,jt(Jt),bt)}(Wt,F))}else{if(!q[wr])return me?F:{};Wt=function(bt,Jt,je,Rt){var Gt=bt.constructor;switch(Jt){case h:return gs(bt);case i:case a:return new Gt(+bt);case b:return function(qt,Fe){var Tr=Fe?gs(qt.buffer):qt.buffer;return new qt.constructor(Tr,qt.byteOffset,qt.byteLength)}(bt,Rt);case w:case D:case x:case C:case O:case T:case R:case H:case M:return function(qt,Fe){var Tr=Fe?gs(qt.buffer):qt.buffer;return new qt.constructor(Tr,qt.byteOffset,qt.length)}(bt,Rt);case l:return function(qt,Fe,Tr){return Y(Fe?Tr(at(qt),!0):at(qt),P,new qt.constructor)}(bt,Rt,je);case c:case y:return new Gt(bt);case p:return function(qt){var Fe=new qt.constructor(qt.source,K.exec(qt));return Fe.lastIndex=qt.lastIndex,Fe}(bt);case v:return function(qt,Fe,Tr){return Y(Fe?Tr(yt(qt),!0):yt(qt),$,new qt.constructor)}(bt,Rt,je);case g:return function(qt){return hs?Object(hs.call(qt)):{}}(bt)}}(F,wr,vc,z)}}ce||(ce=new Rn);var $o=ce.get(F);if($o)return $o;if(ce.set(F,Wt),!Ze)var yi=ot?function(bt){return function(Jt,je,Rt){var Gt=je(Jt);return _(Jt)?Gt:function(qt,Fe){for(var Tr=-1,Lr=Fe.length,Mn=qt.length;++Tr<Lr;)qt[Mn+Tr]=Fe[Tr];return qt}(Gt,Rt(Jt))}(bt,jt,yc)}(F):jt(F);return function(bt,Jt){for(var je=-1,Rt=bt?bt.length:0;++je<Rt&&Jt(bt[je],je,bt)!==!1;);}(yi||F,function(bt,Jt){yi&&(bt=F[Jt=bt]),lh(Wt,Jt,vc(bt,z,ot,ct,Jt,F,ce))}),Wt}function Mo(F){return!(!re(F)||function(z){return!!pt&&pt in z}(F))&&(gt(F)||V(F)?ee:U).test(io(F))}function gs(F){var z=new F.constructor(F.byteLength);return new zt(z).set(new zt(F)),z}function ch(F,z,ot,ct){ot||(ot={});for(var $t=-1,me=z.length;++$t<me;){var ce=z[$t],Wt=void 0;lh(ot,ce,Wt===void 0?F[ce]:Wt)}return ot}function zo(F,z){var ot,ct,$t=F.__data__;return((ct=typeof(ot=z))=="string"||ct=="number"||ct=="symbol"||ct=="boolean"?ot!=="__proto__":ot===null)?$t[typeof z=="string"?"string":"hash"]:$t.map}function no(F,z){var ot=function(ct,$t){return ct==null?void 0:ct[$t]}(F,z);return Mo(ot)?ot:void 0}Ln.prototype.clear=function(){this.__data__=nr?nr(null):{}},Ln.prototype.delete=function(F){return this.has(F)&&delete this.__data__[F]},Ln.prototype.get=function(F){var z=this.__data__;if(nr){var ot=z[F];return ot===r?void 0:ot}return Be.call(z,F)?z[F]:void 0},Ln.prototype.has=function(F){var z=this.__data__;return nr?z[F]!==void 0:Be.call(z,F)},Ln.prototype.set=function(F,z){return this.__data__[F]=nr&&z===void 0?r:z,this},hn.prototype.clear=function(){this.__data__=[]},hn.prototype.delete=function(F){var z=this.__data__,ot=Yr(z,F);return!(ot<0)&&(ot==z.length-1?z.pop():ds.call(z,ot,1),!0)},hn.prototype.get=function(F){var z=this.__data__,ot=Yr(z,F);return ot<0?void 0:z[ot][1]},hn.prototype.has=function(F){return Yr(this.__data__,F)>-1},hn.prototype.set=function(F,z){var ot=this.__data__,ct=Yr(ot,F);return ct<0?ot.push([F,z]):ot[ct][1]=z,this},Ro.prototype.clear=function(){this.__data__={hash:new Ln,map:new(yr||hn),string:new Ln}},Ro.prototype.delete=function(F){return zo(this,F).delete(F)},Ro.prototype.get=function(F){return zo(this,F).get(F)},Ro.prototype.has=function(F){return zo(this,F).has(F)},Ro.prototype.set=function(F,z){return zo(this,F).set(F,z),this},Rn.prototype.clear=function(){this.__data__=new hn},Rn.prototype.delete=function(F){return this.__data__.delete(F)},Rn.prototype.get=function(F){return this.__data__.get(F)},Rn.prototype.has=function(F){return this.__data__.has(F)},Rn.prototype.set=function(F,z){var ot=this.__data__;if(ot instanceof hn){var ct=ot.__data__;if(!yr||ct.length<199)return ct.push([F,z]),this;ot=this.__data__=new Ro(ct)}return ot.set(F,z),this};var yc=Na?vt(Na,Object):function(){return[]},oo=function(F){return Ht.call(F)};function fh(F,z){return!!(z=z==null?n:z)&&(typeof F=="number"||W.test(F))&&F>-1&&F%1==0&&F<z}function vi(F){var z=F&&F.constructor;return F===(typeof z=="function"&&z.prototype||Lt)}function io(F){if(F!=null){try{return kt.call(F)}catch(z){}try{return F+""}catch(z){}}return""}function dh(F,z){return F===z||F!=F&&z!=z}(Io&&oo(new Io(new ArrayBuffer(1)))!=b||yr&&oo(new yr)!=l||mr&&oo(mr.resolve())!=d||br&&oo(new br)!=v||Fr&&oo(new Fr)!=m)&&(oo=function(F){var z=Ht.call(F),ot=z==f?F.constructor:void 0,ct=ot?io(ot):void 0;if(ct)switch(ct){case pn:return b;case gc:return l;case hi:return d;case Lo:return v;case ps:return m}return z});var _=Array.isArray;function I(F){return F!=null&&function(z){return typeof z=="number"&&z>-1&&z%1==0&&z<=n}(F.length)&&!gt(F)}var J=In||function(){return!1};function gt(F){var z=re(F)?Ht.call(F):"";return z==u||z==s}function re(F){var z=typeof F;return!!F&&(z=="object"||z=="function")}function jt(F){return I(F)?gi(F):function(z){if(!vi(z))return ro(z);var ot=[];for(var ct in Object(z))Be.call(z,ct)&&ct!="constructor"&&ot.push(ct);return ot}(F)}t.exports=function(F){return vc(F,!0,!0)}});function SA(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var bK=0;function wK(t){return"__private_"+bK+++"_"+t}function EK(t,e,r){const n=[];return t.forEach(o=>typeof o!="string"?n.push(o):e[Symbol.split](o).forEach((i,a,u)=>{i!==""&&n.push(i),a<u.length-1&&n.push(r)})),n}/**
* Takes a string with placeholder variables like `%{smart_count} file selected`
* and replaces it with values from options `{smart_count: 5}`
*
* @license https://github.com/airbnb/polyglot.js/blob/master/LICENSE
* taken from https://github.com/airbnb/polyglot.js/blob/master/lib/polyglot.js#L299
*
* @param {string} phrase that needs interpolation, with placeholders
* @param {object} options with values that will be used to replace placeholders
* @returns {any[]} interpolated
*/function AA(t,e){const r=/\$/g;let n=[t];if(e==null)return n;for(const o of Object.keys(e))if(o!=="_"){let i=e[o];typeof i=="string"&&(i=r[Symbol.replace](i,"$$$$")),n=EK(n,new RegExp(`%\\{${o}\\}`,"g"),i)}return n}var gj=(Es=wK("apply"),class{constructor(t){Object.defineProperty(this,Es,{value:DK}),this.locale={strings:{},pluralize:e=>e===1?0:1},Array.isArray(t)?t.forEach(SA(this,Es)[Es],this):SA(this,Es)[Es](t)}translate(t,e){return this.translateArray(t,e).join("")}translateArray(t,e){if(!function(n,o){return Object.prototype.hasOwnProperty.call(n,o)}(this.locale.strings,t))throw new Error(`missing string: ${t}`);const r=this.locale.strings[t];if(typeof r=="object"){if(e&&e.smart_count!==void 0)return AA(r[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 AA(r,e)}});function DK(t){if(t==null||!t.strings)return;const e=this.locale;this.locale=Zt(Z({},e),{strings:Z(Z({},e.strings),t.strings)}),this.locale.pluralize=t.pluralize||e.pluralize}var vj=function(){var t={},e=t._fns={};return t.emit=function(r,n,o,i,a,u,s){var l=function(c){for(var f=e[c]?e[c]:[],d=c.indexOf(":"),p=d===-1?[c]:[c.substring(0,d),c.substring(d+1)],v=Object.keys(e),y=0,g=v.length;y<g;y++){var m=v[y];if(m==="*"&&(f=f.concat(e[m])),p.length===2&&p[0]===m){f=f.concat(e[m]);break}}return f}(r);l.length&&function(c,f,d){for(var p=0,v=f.length;p<v&&f[p];p++)f[p].event=c,f[p].apply(f[p],d)}(r,l,[n,o,i,a,u,s])},t.on=function(r,n){e[r]||(e[r]=[]),e[r].push(n)},t.once=function(r,n){this.on(r,function o(){n.apply(this,arguments),t.off(r,o)})},t.off=function(r,n){var o=[];if(r&&n)for(var i=this._fns[r],a=0,u=i?i.length:0;a<u;a++)i[a]!==n&&o.push(i[a]);o.length?this._fns[r]=o:delete this._fns[r]},t},CK={nanoid:(t=21)=>{let e="",r=crypto.getRandomValues(new Uint8Array(t));for(;t--;){let n=63&r[t];e+=n<36?n.toString(36):n<62?(n-26).toString(36).toUpperCase():n<63?"_":"-"}return e}},v1=function(t){if(typeof t!="number"||isNaN(t))throw new TypeError("Expected a number, got "+typeof t);var e=t<0,r=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];if(e&&(t=-t),t<1)return(e?"-":"")+t+" B";var n=Math.min(Math.floor(Math.log(t)/Math.log(1024)),r.length-1);t=Number(t/Math.pow(1024,n));var o=r[n];return t>=10||t%1==0?(e?"-":"")+t.toFixed(0)+" "+o:(e?"-":"")+t.toFixed(1)+" "+o};function yj(t,e){this.text=t=t||"",this.hasWild=~t.indexOf("*"),this.separator=e,this.parts=t.split(e)}yj.prototype.match=function(t){var e,r,n=!0,o=this.parts,i=o.length;if(typeof t=="string"||t instanceof String)if(this.hasWild||this.text==t){for(r=(t||"").split(this.separator),e=0;n&&e<i;e++)o[e]!=="*"&&(n=e<r.length&&o[e]===r[e]);n=n&&r}else n=!1;else if(typeof t.splice=="function")for(n=[],e=t.length;e--;)this.match(t[e])&&(n[n.length]=t[e]);else if(typeof t=="object")for(var a in n={},t)this.match(a)&&(n[a]=t[a]);return n};var xK=/[\/\+\.]/,SK=function(t,e){function r(n){var o=function(i,a,u){var s=new yj(i,u||/[\/\.]/);return a!==void 0?s.match(a):s}(n,t,xK);return o&&o.length>=2}return e?r(e.split(";")[0]):r},AK=0;function OK(t){return"__private_"+AK+++"_"+t}var y1=OK("publish");class mj{constructor(){Object.defineProperty(this,y1,{value:kK}),this.state={},this.callbacks=[]}getState(){return this.state}setState(e){const r=Z({},this.state),n=Z(Z({},this.state),e);this.state=n,function(o,i){if(!Object.prototype.hasOwnProperty.call(o,i))throw new TypeError("attempted to use private field on non-instance");return o}(this,y1)[y1](r,n,e)}subscribe(e){return this.callbacks.push(e),()=>{this.callbacks.splice(this.callbacks.indexOf(e),1)}}}function kK(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];this.callbacks.forEach(n=>{n(...e)})}mj.VERSION="2.0.3";var OA=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)}},kA={md:"text/markdown",markdown:"text/markdown",mp4:"video/mp4",mp3:"audio/mp3",svg:"image/svg+xml",jpg:"image/jpeg",png:"image/png",gif:"image/gif",heic:"image/heic",heif:"image/heif",yaml:"text/yaml",yml:"text/yaml",csv:"text/csv",tsv:"text/tab-separated-values",tab:"text/tab-separated-values",avi:"video/x-msvideo",mks:"video/x-matroska",mkv:"video/x-matroska",mov:"video/quicktime",doc:"application/msword",docm:"application/vnd.ms-word.document.macroenabled.12",docx:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",dot:"application/msword",dotm:"application/vnd.ms-word.template.macroenabled.12",dotx:"application/vnd.openxmlformats-officedocument.wordprocessingml.template",xla:"application/vnd.ms-excel",xlam:"application/vnd.ms-excel.addin.macroenabled.12",xlc:"application/vnd.ms-excel",xlf:"application/x-xliff+xml",xlm:"application/vnd.ms-excel",xls:"application/vnd.ms-excel",xlsb:"application/vnd.ms-excel.sheet.binary.macroenabled.12",xlsm:"application/vnd.ms-excel.sheet.macroenabled.12",xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",xlt:"application/vnd.ms-excel",xltm:"application/vnd.ms-excel.template.macroenabled.12",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template",xlw:"application/vnd.ms-excel",txt:"text/plain",text:"text/plain",conf:"text/plain",log:"text/plain",pdf:"application/pdf",zip:"application/zip","7z":"application/x-7z-compressed",rar:"application/x-rar-compressed",tar:"application/x-tar",gz:"application/gzip",dmg:"application/x-apple-diskimage"};function BA(t){let e="";return t.replace(/[^A-Z0-9]/gi,r=>(e+=`-${function(n){return n.charCodeAt(0).toString(32)}(r)}`,"/"))+e}var BK=function(t){if(t==null&&(t=typeof navigator!="undefined"?navigator.userAgent:null),!t)return!0;const e=/Edge\/(\d+\.\d+)/.exec(t);if(!e)return!0;const r=e[1];let[n,o]=r.split(".");return n=parseInt(n,10),o=parseInt(o,10),n<15||n===15&&o<15063||n>18||n===18&&o>=18218};function m1(t){return t<10?`0${t}`:t.toString()}var Oh=function(){const t=new Date;return`${m1(t.getHours())}:${m1(t.getMinutes())}:${m1(t.getSeconds())}`},bj={justErrorsLogger:{debug:()=>{},warn:()=>{},error:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return console.error(`[Uppy] [${Oh()}]`,...e)}},debugLogger:{debug:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return console.debug(`[Uppy] [${Oh()}]`,...e)},warn:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return console.warn(`[Uppy] [${Oh()}]`,...e)},error:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return console.error(`[Uppy] [${Oh()}]`,...e)}}},FK={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}"}}},wj=CK;let Ej,Dj;function dt(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var TK=0;function Xe(t){return"__private_"+TK+++"_"+t}const{nanoid:_K}=wj,{justErrorsLogger:PK,debugLogger:jK}=bj;class ho extends Error{constructor(){super(...arguments),this.isRestriction=!0}}typeof AggregateError=="undefined"&&(globalThis.AggregateError=class extends Error{constructor(t,e){super(e),this.errors=t}});class NK extends AggregateError{constructor(){super(...arguments),this.isRestriction=!0}}var dr=Xe("plugins"),Bc=Xe("storeUnsubscribe"),Vo=Xe("emitter"),ou=Xe("preProcessors"),iu=Xe("uploaders"),Yo=Xe("postProcessors"),Qf=Xe("checkRestrictions"),b1=Xe("checkMinNumberOfFiles"),Fd=Xe("checkRequiredMetaFieldsOnFile"),w1=Xe("checkRequiredMetaFields"),Je=Xe("showOrLogErrorAndThrow"),Fc=Xe("assertNewUploadAllowed"),Tc=Xe("checkAndCreateFileStateObject"),_c=Xe("startIfAutoProceed"),E1=Xe("addListeners"),$n=Xe("updateOnlineStatus"),Uo=Xe("createUpload"),D1=Xe("getUpload"),lu=Xe("removeUpload"),Wo=Xe("runUpload");Ej=Symbol.for("uppy test: getPlugins"),Dj=Symbol.for("uppy test: createUpload");class Cj{constructor(e){Object.defineProperty(this,Wo,{value:KK}),Object.defineProperty(this,lu,{value:qK}),Object.defineProperty(this,D1,{value:GK}),Object.defineProperty(this,Uo,{value:WK}),Object.defineProperty(this,E1,{value:UK}),Object.defineProperty(this,_c,{value:VK}),Object.defineProperty(this,Tc,{value:HK}),Object.defineProperty(this,Fc,{value:$K}),Object.defineProperty(this,Je,{value:zK}),Object.defineProperty(this,w1,{value:MK}),Object.defineProperty(this,Fd,{value:RK}),Object.defineProperty(this,b1,{value:LK}),Object.defineProperty(this,Qf,{value:IK}),Object.defineProperty(this,dr,{writable:!0,value:Object.create(null)}),Object.defineProperty(this,Bc,{writable:!0,value:void 0}),Object.defineProperty(this,Vo,{writable:!0,value:vj()}),Object.defineProperty(this,ou,{writable:!0,value:new Set}),Object.defineProperty(this,iu,{writable:!0,value:new Set}),Object.defineProperty(this,Yo,{writable:!0,value:new Set}),Object.defineProperty(this,$n,{writable:!0,value:this.updateOnlineStatus.bind(this)}),this.defaultLocale=FK;const r={id:"uppy",autoProceed:!1,allowMultipleUploads:!0,allowMultipleUploadBatches:!0,debug:!1,restrictions:{maxFileSize:null,minFileSize:null,maxTotalFileSize:null,maxNumberOfFiles:null,minNumberOfFiles:null,allowedFileTypes:null,requiredMetaFields:[]},meta:{},onBeforeFileAdded:n=>n,onBeforeUpload:n=>n,store:new mj,logger:PK,infoTimeout:5e3};if(this.opts=Zt(Z(Z({},r),e),{restrictions:Z(Z({},r.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=jK),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=Hu(this.calculateProgress.bind(this),500,{leading:!0,trailing:!0}),this.store=this.opts.store,this.setState({plugins:{},files:{},currentUploads:{},allowNewUpload:!0,capabilities:{uploadProgress:BK(),individualCancellation:!0,resumableUploads:!1},totalProgress:0,meta:Z({},this.opts.meta),info:[],recoveredState:null}),dt(this,Bc)[Bc]=this.store.subscribe((n,o,i)=>{this.emit("state-update",n,o,i),this.updateAll(o)}),this.opts.debug&&typeof window!="undefined"&&(window[this.opts.id]=this),dt(this,E1)[E1]()}emit(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];dt(this,Vo)[Vo].emit(e,...n)}on(e,r){return dt(this,Vo)[Vo].on(e,r),this}once(e,r){return dt(this,Vo)[Vo].once(e,r),this}off(e,r){return dt(this,Vo)[Vo].off(e,r),this}updateAll(e){this.iteratePlugins(r=>{r.update(e)})}setState(e){this.store.setState(e)}getState(){return this.store.getState()}get state(){return this.getState()}setFileState(e,r){if(!this.getState().files[e])throw new Error(`Cant set state for ${e} (the file could have been removed)`);this.setState({files:Zt(Z({},this.getState().files),{[e]:Z(Z({},this.getState().files[e]),r)})})}i18nInit(){const e=new gj([this.defaultLocale,this.opts.locale]);this.i18n=e.translate.bind(e),this.i18nArray=e.translateArray.bind(e),this.locale=e.locale}setOptions(e){this.opts=Zt(Z(Z({},this.opts),e),{restrictions:Z(Z({},this.opts.restrictions),e&&e.restrictions)}),e.meta&&this.setMeta(e.meta),this.i18nInit(),e.locale&&this.iteratePlugins(r=>{r.setOptions()}),this.setState()}resetProgress(){const e={percentage:0,bytesUploaded:0,uploadComplete:!1,uploadStarted:null},r=Z({},this.getState().files),n={};Object.keys(r).forEach(o=>{const i=Z({},r[o]);i.progress=Z(Z({},i.progress),e),n[o]=i}),this.setState({files:n,totalProgress:0}),this.emit("reset-progress")}addPreProcessor(e){dt(this,ou)[ou].add(e)}removePreProcessor(e){return dt(this,ou)[ou].delete(e)}addPostProcessor(e){dt(this,Yo)[Yo].add(e)}removePostProcessor(e){return dt(this,Yo)[Yo].delete(e)}addUploader(e){dt(this,iu)[iu].add(e)}removeUploader(e){return dt(this,iu)[iu].delete(e)}setMeta(e){const r=Z(Z({},this.getState().meta),e),n=Z({},this.getState().files);Object.keys(n).forEach(o=>{n[o]=Zt(Z({},n[o]),{meta:Z(Z({},n[o].meta),e)})}),this.log("Adding metadata:"),this.log(e),this.setState({meta:r,files:n})}setFileMeta(e,r){const n=Z({},this.getState().files);if(!n[e])return void this.log("Was trying to set metadata for a file that has been removed: ",e);const o=Z(Z({},n[e].meta),r);n[e]=Zt(Z({},n[e]),{meta:o}),this.setState({files:n})}getFile(e){return this.getState().files[e]}getFiles(){const{files:e}=this.getState();return Object.values(e)}getObjectOfFilesPerState(){const{files:e,totalProgress:r,error:n}=this.getState(),o=Object.values(e),i=o.filter(v=>{let{progress:y}=v;return!y.uploadComplete&&y.uploadStarted}),a=o.filter(v=>!v.progress.uploadStarted),u=o.filter(v=>v.progress.uploadStarted||v.progress.preprocess||v.progress.postprocess),s=o.filter(v=>v.progress.uploadStarted),l=o.filter(v=>v.isPaused),c=o.filter(v=>v.progress.uploadComplete),f=o.filter(v=>v.error),d=i.filter(v=>!v.isPaused),p=o.filter(v=>v.progress.preprocess||v.progress.postprocess);return{newFiles:a,startedFiles:u,uploadStartedFiles:s,pausedFiles:l,completeFiles:c,erroredFiles:f,inProgressFiles:i,inProgressNotPausedFiles:d,processingFiles:p,isUploadStarted:s.length>0,isAllComplete:r===100&&c.length===o.length&&p.length===0,isAllErrored:!!n&&f.length===o.length,isAllPaused:i.length!==0&&l.length===i.length,isUploadInProgress:i.length>0,isSomeGhost:o.some(v=>v.isGhost)}}validateRestrictions(e,r){try{return dt(this,Qf)[Qf](e,r),{result:!0}}catch(n){return{result:!1,reason:n.message}}}checkIfFileAlreadyExists(e){const{files:r}=this.getState();return!(!r[e]||r[e].isGhost)}addFile(e){dt(this,Fc)[Fc](e);const{files:r}=this.getState();let n=dt(this,Tc)[Tc](r,e);return r[n.id]&&r[n.id].isGhost&&(n=Zt(Z({},r[n.id]),{data:e.data,isGhost:!1}),this.log(`Replaced the blob in the restored ghost file: ${n.name}, ${n.id}`)),this.setState({files:Zt(Z({},r),{[n.id]:n})}),this.emit("file-added",n),this.emit("files-added",[n]),this.log(`Added file: ${n.name}, ${n.id}, mime type: ${n.type}`),dt(this,_c)[_c](),n.id}addFiles(e){dt(this,Fc)[Fc]();const r=Z({},this.getState().files),n=[],o=[];for(let i=0;i<e.length;i++)try{let a=dt(this,Tc)[Tc](r,e[i]);r[a.id]&&r[a.id].isGhost&&(a=Zt(Z({},r[a.id]),{data:e[i].data,isGhost:!1}),this.log(`Replaced blob in a ghost file: ${a.name}, ${a.id}`)),r[a.id]=a,n.push(a)}catch(a){a.isRestriction||o.push(a)}if(this.setState({files:r}),n.forEach(i=>{this.emit("file-added",i)}),this.emit("files-added",n),n.length>5?this.log(`Added batch of ${n.length} files`):Object.keys(n).forEach(i=>{this.log(`Added file: ${n[i].name}
id: ${n[i].id}
type: ${n[i].type}`)}),n.length>0&&dt(this,_c)[_c](),o.length>0){let i=`Multiple errors occurred while adding files:
`;if(o.forEach(a=>{i+=`
* ${a.message}`}),this.info({message:this.i18n("addBulkFilesFailed",{smart_count:o.length}),details:i},"error",this.opts.infoTimeout),typeof AggregateError=="function")throw new AggregateError(o,i);{const a=new Error(i);throw a.errors=o,a}}}removeFiles(e,r){const{files:n,currentUploads:o}=this.getState(),i=Z({},n),a=Z({},o),u=Object.create(null);function s(f){return u[f]===void 0}e.forEach(f=>{n[f]&&(u[f]=n[f],delete i[f])}),Object.keys(a).forEach(f=>{const d=o[f].fileIDs.filter(s);d.length!==0?a[f]=Zt(Z({},o[f]),{fileIDs:d}):delete a[f]});const l={currentUploads:a,files:i};Object.keys(i).length===0&&(l.allowNewUpload=!0,l.error=null,l.recoveredState=null),this.setState(l),this.calculateTotalProgress();const c=Object.keys(u);c.forEach(f=>{this.emit("file-removed",u[f],r)}),c.length>5?this.log(`Removed ${c.length} files`):this.log(`Removed files: ${c.join(", ")}`)}removeFile(e,r){r===void 0&&(r=null),this.removeFiles([e],r)}pauseResume(e){if(!this.getState().capabilities.resumableUploads||this.getFile(e).uploadComplete)return;const r=!this.getFile(e).isPaused;return this.setFileState(e,{isPaused:r}),this.emit("upload-pause",e,r),r}pauseAll(){const e=Z({},this.getState().files);Object.keys(e).filter(r=>!e[r].progress.uploadComplete&&e[r].progress.uploadStarted).forEach(r=>{const n=Zt(Z({},e[r]),{isPaused:!0});e[r]=n}),this.setState({files:e}),this.emit("pause-all")}resumeAll(){const e=Z({},this.getState().files);Object.keys(e).filter(r=>!e[r].progress.uploadComplete&&e[r].progress.uploadStarted).forEach(r=>{const n=Zt(Z({},e[r]),{isPaused:!1,error:null});e[r]=n}),this.setState({files:e}),this.emit("resume-all")}retryAll(){const e=Z({},this.getState().files),r=Object.keys(e).filter(o=>e[o].error);if(r.forEach(o=>{const i=Zt(Z({},e[o]),{isPaused:!1,error:null});e[o]=i}),this.setState({files:e,error:null}),this.emit("retry-all",r),r.length===0)return Promise.resolve({successful:[],failed:[]});const n=dt(this,Uo)[Uo](r,{forceAllowNewUpload:!0});return dt(this,Wo)[Wo](n)}cancelAll(){this.emit("cancel-all");const{files:e}=this.getState(),r=Object.keys(e);r.length&&this.removeFiles(r,"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 r=dt(this,Uo)[Uo]([e],{forceAllowNewUpload:!0});return dt(this,Wo)[Wo](r)}reset(){this.cancelAll()}logout(){this.iteratePlugins(e=>{e.provider&&e.provider.logout&&e.provider.logout()})}calculateProgress(e,r){if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const n=Number.isFinite(r.bytesTotal)&&r.bytesTotal>0;this.setFileState(e.id,{progress:Zt(Z({},this.getFile(e.id).progress),{bytesUploaded:r.bytesUploaded,bytesTotal:r.bytesTotal,percentage:n?Math.round(r.bytesUploaded/r.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 r=e.filter(s=>s.progress.bytesTotal!=null),n=e.filter(s=>s.progress.bytesTotal==null);if(r.length===0){const s=100*e.length,l=n.reduce((f,d)=>f+d.progress.percentage,0),c=Math.round(l/s*100);return void this.setState({totalProgress:c})}let o=r.reduce((s,l)=>s+l.progress.bytesTotal,0);const i=o/r.length;o+=i*n.length;let a=0;r.forEach(s=>{a+=s.progress.bytesUploaded}),n.forEach(s=>{a+=i*(s.progress.percentage||0)/100});let u=o===0?0:Math.round(a/o*100);u>100&&(u=100),this.setState({totalProgress:u}),this.emit("progress",u)}updateOnlineStatus(){window.navigator.onLine===void 0||window.navigator.onLine?(this.emit("is-online"),this.wasOffline&&(this.emit("back-online"),this.info(this.i18n("connectedToInternet"),"success",3e3),this.wasOffline=!1)):(this.emit("is-offline"),this.info(this.i18n("noInternetConnection"),"error",0),this.wasOffline=!0)}getID(){return this.opts.id}use(e,r){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 n=new e(this,r),o=n.id;if(!o)throw new Error("Your plugin must have an id");if(!n.type)throw new Error("Your plugin must have a type");const i=this.getPlugin(o);if(i){const a=`Already found a plugin named '${i.id}'. Tried to use: '${o}'.
Uppy plugins must have unique \`id\` options. See https://uppy.io/docs/plugins/#id.`;throw new Error(a)}return e.VERSION&&this.log(`Using ${o} v${e.VERSION}`),n.type in dt(this,dr)[dr]?dt(this,dr)[dr][n.type].push(n):dt(this,dr)[dr][n.type]=[n],n.install(),this}getPlugin(e){for(const r of Object.values(dt(this,dr)[dr])){const n=r.find(o=>o.id===e);if(n!=null)return n}}[Ej](e){return dt(this,dr)[dr][e]}iteratePlugins(e){Object.values(dt(this,dr)[dr]).flat(1).forEach(e)}removePlugin(e){this.log(`Removing plugin ${e.id}`),this.emit("plugin-remove",e),e.uninstall&&e.uninstall();const r=dt(this,dr)[dr][e.type],n=r.findIndex(i=>i.id===e.id);n!==-1&&r.splice(n,1);const o={plugins:Zt(Z({},this.getState().plugins),{[e.id]:void 0})};this.setState(o)}close(){this.log(`Closing Uppy instance ${this.opts.id}: removing all files and uninstalling plugins`),this.reset(),dt(this,Bc)[Bc](),this.iteratePlugins(e=>{this.removePlugin(e)}),typeof window!="undefined"&&window.removeEventListener&&(window.removeEventListener("online",dt(this,$n)[$n]),window.removeEventListener("offline",dt(this,$n)[$n]))}hideInfo(){const{info:e}=this.getState();this.setState({info:e.slice(1)}),this.emit("info-hidden")}info(e,r,n){r===void 0&&(r="info"),n===void 0&&(n=3e3);const o=typeof e=="object";this.setState({info:[...this.getState().info,{type:r,message:o?e.message:e,details:o?e.details:null}]}),setTimeout(()=>this.hideInfo(),n),this.emit("info-visible")}log(e,r){const{logger:n}=this.opts;switch(r){case"error":n.error(e);break;case"warning":n.warn(e);break;default:n.debug(e)}}restore(e){return this.log(`Core: attempting to restore upload "${e}"`),this.getState().currentUploads[e]?dt(this,Wo)[Wo](e):(dt(this,lu)[lu](e),Promise.reject(new Error("Nonexistent upload")))}[Dj](){return dt(this,Uo)[Uo](...arguments)}addResultData(e,r){if(!dt(this,D1)[D1](e))return void this.log(`Not setting result for an upload that has been removed: ${e}`);const{currentUploads:n}=this.getState(),o=Zt(Z({},n[e]),{result:Z(Z({},n[e].result),r)});this.setState({currentUploads:Zt(Z({},n),{[e]:o})})}upload(){var e;(e=dt(this,dr)[dr].uploader)!=null&&e.length||this.log("No uploader type plugins are used","warning");let{files:r}=this.getState();const n=this.opts.onBeforeUpload(r);return n===!1?Promise.reject(new Error("Not starting the upload because onBeforeUpload returned false")):(n&&typeof n=="object"&&(r=n,this.setState({files:r})),Promise.resolve().then(()=>{dt(this,b1)[b1](r),dt(this,w1)[w1](r)}).catch(o=>{dt(this,Je)[Je](o)}).then(()=>{const{currentUploads:o}=this.getState(),i=Object.values(o).flatMap(s=>s.fileIDs),a=[];Object.keys(r).forEach(s=>{const l=this.getFile(s);l.progress.uploadStarted||i.indexOf(s)!==-1||a.push(l.id)});const u=dt(this,Uo)[Uo](a);return dt(this,Wo)[Wo](u)}).catch(o=>{dt(this,Je)[Je](o,{showInformer:!1})}))}}function IK(t,e){e===void 0&&(e=this.getFiles());const{maxFileSize:r,minFileSize:n,maxTotalFileSize:o,maxNumberOfFiles:i,allowedFileTypes:a}=this.opts.restrictions;if(i&&e.length+1>i)throw new ho(`${this.i18n("youCanOnlyUploadX",{smart_count:i})}`);if(a&&!a.some(u=>u.indexOf("/")>-1?!!t.type&&SK(t.type.replace(/;.*?$/,""),u):!(u[0]!=="."||!t.extension)&&t.extension.toLowerCase()===u.substr(1).toLowerCase())){const u=a.join(", ");throw new ho(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 ho(this.i18n("exceedsSize",{size:v1(o),file:t.name}))}if(r&&t.size!=null&&t.size>r)throw new ho(this.i18n("exceedsSize",{size:v1(r),file:t.name}));if(n&&t.size!=null&&t.size<n)throw new ho(this.i18n("inferiorSize",{size:v1(n)}))}function LK(t){const{minNumberOfFiles:e}=this.opts.restrictions;if(Object.keys(t).length<e)throw new ho(`${this.i18n("youHaveToAtLeastSelectX",{smart_count:e})}`)}function RK(t){const{requiredMetaFields:e}=this.opts.restrictions,{hasOwnProperty:r}=Object.prototype,n=[],o=[];for(let i=0;i<e.length;i++)if(!r.call(t.meta,e[i])||t.meta[e[i]]===""){const a=new ho(`${this.i18n("missingRequiredMetaFieldOnFile",{fileName:t.name})}`);n.push(a),o.push(e[i]),dt(this,Je)[Je](a,{file:t,showInformer:!1,throwErr:!1})}return this.setFileState(t.id,{missingRequiredMetaFields:o}),n}function MK(t){const e=Object.keys(t).flatMap(r=>{const n=this.getFile(r);return dt(this,Fd)[Fd](n)});if(e.length)throw new NK(e,`${this.i18n("missingRequiredMetaField")}`)}function zK(t,e){let{showInformer:r=!0,file:n=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",n,t)):this.log(u,"error"),r&&this.info({message:i,details:a},"error",this.opts.infoTimeout),o)throw typeof t=="object"?t:new Error(t)}function $K(t){const{allowNewUpload:e}=this.getState();e===!1&&dt(this,Je)[Je](new ho(this.i18n("noMoreFilesAllowed")),{file:t})}function HK(t,e){const r=function(f){var d;if(f.type)return f.type;const p=f.name?(d=OA(f.name).extension)==null?void 0:d.toLowerCase():null;return p&&p in kA?kA[p]:"application/octet-stream"}(e),n=function(f,d){return d.name?d.name:f.split("/")[0]==="image"?`${f.split("/")[0]}.${f.split("/")[1]}`:"noname"}(r,e),o=OA(n).extension,i=!!e.isRemote,a=function(f){let d="uppy";return typeof f.name=="string"&&(d+=`-${BA(f.name.toLowerCase())}`),f.type!==void 0&&(d+=`-${f.type}`),f.meta&&typeof f.meta.relativePath=="string"&&(d+=`-${BA(f.meta.relativePath.toLowerCase())}`),f.data.size!==void 0&&(d+=`-${f.data.size}`),f.data.lastModified!==void 0&&(d+=`-${f.data.lastModified}`),d}(Zt(Z({},e),{type:r}));if(this.checkIfFileAlreadyExists(a)){const f=new ho(this.i18n("noDuplicates",{fileName:n}));dt(this,Je)[Je](f,{file:e})}const u=e.meta||{};u.name=n,u.type=r;const s=Number.isFinite(e.data.size)?e.data.size:null;let l={source:e.source||"",id:a,name:n,extension:o||"",meta:Z(Z({},this.getState().meta),u),type:r,data:e.data,progress:{percentage:0,bytesUploaded:0,bytesTotal:s,uploadComplete:!1,uploadStarted:null},size:s,isRemote:i,remote:e.remote||"",preview:e.preview};const c=this.opts.onBeforeFileAdded(l,t);c===!1?dt(this,Je)[Je](new ho("Cannot add the file because onBeforeFileAdded returned false."),{showInformer:!1,fileDescriptor:e}):typeof c=="object"&&c!==null&&(l=c);try{const f=Object.keys(t).map(d=>t[d]);dt(this,Qf)[Qf](l,f)}catch(f){dt(this,Je)[Je](f,{file:l})}return l}function VK(){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 UK(){const t=(e,r,n)=>{let o=e.message||"Unknown error";e.details&&(o+=` ${e.details}`),this.setState({error:o}),r!=null&&r.id in this.getState().files&&this.setFileState(r.id,{error:o,response:n})};this.on("error",t),this.on("upload-error",(e,r,n)=>{if(t(r,e,n),typeof r=="object"&&r.message){const o=new Error(r.message);o.details=r.message,r.details&&(o.details+=` ${r.details}`),o.message=this.i18n("failedToUpload",{file:e.name}),dt(this,Je)[Je](o,{throwErr:!1})}else dt(this,Je)[Je](r,{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,r)=>{if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const n=this.getFile(e.id).progress;this.setFileState(e.id,{progress:Zt(Z({},n),{postprocess:dt(this,Yo)[Yo].size>0?{mode:"indeterminate"}:null,uploadComplete:!0,percentage:100,bytesUploaded:n.bytesTotal}),response:r,uploadURL:r.uploadURL,isPaused:!1}),e.size==null&&this.setFileState(e.id,{size:r.bytesUploaded||n.bytesTotal}),this.calculateTotalProgress()}),this.on("preprocess-progress",(e,r)=>{this.getFile(e.id)?this.setFileState(e.id,{progress:Zt(Z({},this.getFile(e.id).progress),{preprocess:r})}):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 r=Z({},this.getState().files);r[e.id]=Zt(Z({},r[e.id]),{progress:Z({},r[e.id].progress)}),delete r[e.id].progress.preprocess,this.setState({files:r})}),this.on("postprocess-progress",(e,r)=>{this.getFile(e.id)?this.setFileState(e.id,{progress:Zt(Z({},this.getState().files[e.id].progress),{postprocess:r})}):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 r=Z({},this.getState().files);r[e.id]=Zt(Z({},r[e.id]),{progress:Z({},r[e.id].progress)}),delete r[e.id].progress.postprocess,this.setState({files:r})}),this.on("restored",()=>{this.calculateTotalProgress()}),this.on("dashboard:file-edit-complete",e=>{e&&dt(this,Fd)[Fd](e)}),typeof window!="undefined"&&window.addEventListener&&(window.addEventListener("online",dt(this,$n)[$n]),window.addEventListener("offline",dt(this,$n)[$n]),setTimeout(dt(this,$n)[$n],3e3))}function WK(t,e){e===void 0&&(e={});const{forceAllowNewUpload:r=!1}=e,{allowNewUpload:n,currentUploads:o}=this.getState();if(!n&&!r)throw new Error("Cannot create a new upload: already uploading.");const i=_K();return this.emit("upload",{id:i,fileIDs:t}),this.setState({allowNewUpload:this.opts.allowMultipleUploadBatches!==!1&&this.opts.allowMultipleUploads!==!1,currentUploads:Zt(Z({},o),{[i]:{fileIDs:t,step:0,result:{}}})}),i}function GK(t){const{currentUploads:e}=this.getState();return e[t]}function qK(t){const e=Z({},this.getState().currentUploads);delete e[t],this.setState({currentUploads:e})}function KK(t){return Om(this,null,function*(){let{currentUploads:e}=this.getState(),r=e[t];const n=r.step||0,o=[...dt(this,ou)[ou],...dt(this,iu)[iu],...dt(this,Yo)[Yo]];try{for(let a=n;a<o.length&&r;a++){const u=o[a],s=Zt(Z({},r),{step:a});this.setState({currentUploads:Zt(Z({},e),{[t]:s})}),yield u(s.fileIDs,t),e=this.getState().currentUploads,r=e[t]}}catch(a){throw this.emit("error",a),dt(this,lu)[lu](t),a}if(r){r.fileIDs.forEach(l=>{const c=this.getFile(l);c&&c.progress.postprocess&&this.emit("postprocess-complete",c)});const a=r.fileIDs.map(l=>this.getFile(l)),u=a.filter(l=>!l.error),s=a.filter(l=>l.error);yield this.addResultData(t,{successful:u,failed:s,uploadID:t}),e=this.getState().currentUploads,r=e[t]}let i;return r&&(i=r.result,this.emit("complete",i),dt(this,lu)[lu](t)),i==null&&this.log(`Not setting result for an upload that has been removed: ${t}`),i})}Cj.VERSION="2.1.3";var xj=Cj,YK=ts(function(t,e){var r,n,o,i,a,u,s,l,c={},f=[],d=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function p(k,S){for(var P in S)k[P]=S[P];return k}function v(k){var S=k.parentNode;S&&S.removeChild(k)}function y(k,S,P){var $,Y,V,at={};for(V in S)V=="key"?$=S[V]:V=="ref"?Y=S[V]:at[V]=S[V];if(arguments.length>2&&(at.children=arguments.length>3?r.call(arguments,2):P),typeof k=="function"&&k.defaultProps!=null)for(V in k.defaultProps)at[V]===void 0&&(at[V]=k.defaultProps[V]);return g(k,at,$,Y,null)}function g(k,S,P,$,Y){var V={type:k,props:S,key:P,ref:$,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:Y==null?++o:Y};return Y==null&&n.vnode!=null&&n.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 D(k){(!k.__d&&(k.__d=!0)&&a.push(k)&&!x.__r++||s!==n.debounceRendering)&&((s=n.debounceRendering)||u)(x)}function x(){for(var k;x.__r=a.length;)k=a.sort(function(S,P){return S.__v.__b-P.__v.__b}),a=[],k.some(function(S){var P,$,Y,V,at,vt;S.__d&&(at=(V=(P=S).__v).__e,(vt=P.__P)&&($=[],(Y=p({},V)).__v=V.__v+1,U(vt,V,Y,P.__n,vt.ownerSVGElement!==void 0,V.__h!=null?[at]:null,$,at==null?b(V):at,V.__h),W($,V),V.__e!=at&&w(V)))})}function C(k,S,P,$,Y,V,at,vt,yt,Ct){var G,Lt,Ot,pt,kt,Be,Ht,ee=$&&$.__k||f,ye=ee.length;for(P.__k=[],G=0;G<S.length;G++)if((pt=P.__k[G]=(pt=S[G])==null||typeof pt=="boolean"?null:typeof pt=="string"||typeof pt=="number"||typeof pt=="bigint"?g(null,pt,null,null,pt):Array.isArray(pt)?g(m,{children:pt},null,null,null):pt.__b>0?g(pt.type,pt.props,pt.key,null,pt.__v):pt)!=null){if(pt.__=P,pt.__b=P.__b+1,(Ot=ee[G])===null||Ot&&pt.key==Ot.key&&pt.type===Ot.type)ee[G]=void 0;else for(Lt=0;Lt<ye;Lt++){if((Ot=ee[Lt])&&pt.key==Ot.key&&pt.type===Ot.type){ee[Lt]=void 0;break}Ot=null}U(k,pt,Ot=Ot||c,Y,V,at,vt,yt,Ct),kt=pt.__e,(Lt=pt.ref)&&Ot.ref!=Lt&&(Ht||(Ht=[]),Ot.ref&&Ht.push(Ot.ref,null,pt),Ht.push(Lt,pt.__c||kt,pt)),kt!=null?(Be==null&&(Be=kt),typeof pt.type=="function"&&pt.__k===Ot.__k?pt.__d=yt=O(pt,yt,k):yt=T(k,pt,Ot,ee,kt,yt),typeof P.type=="function"&&(P.__d=yt)):yt&&Ot.__e==yt&&yt.parentNode!=k&&(yt=b(Ot))}for(P.__e=Be,G=ye;G--;)ee[G]!=null&&(typeof P.type=="function"&&ee[G].__e!=null&&ee[G].__e==P.__d&&(P.__d=b($,G+1)),lt(ee[G],ee[G]));if(Ht)for(G=0;G<Ht.length;G++)rt(Ht[G],Ht[++G],Ht[++G])}function O(k,S,P){for(var $,Y=k.__k,V=0;Y&&V<Y.length;V++)($=Y[V])&&($.__=k,S=typeof $.type=="function"?O($,S,P):T(P,$,$,Y,$.__e,S));return S}function T(k,S,P,$,Y,V){var at,vt,yt;if(S.__d!==void 0)at=S.__d,S.__d=void 0;else if(P==null||Y!=V||Y.parentNode==null)t:if(V==null||V.parentNode!==k)k.appendChild(Y),at=null;else{for(vt=V,yt=0;(vt=vt.nextSibling)&&yt<$.length;yt+=2)if(vt==Y)break t;k.insertBefore(Y,V),at=V}return at!==void 0?at:Y.nextSibling}function R(k,S,P){S[0]==="-"?k.setProperty(S,P):k[S]=P==null?"":typeof P!="number"||d.test(S)?P:P+"px"}function H(k,S,P,$,Y){var V;t:if(S==="style")if(typeof P=="string")k.style.cssText=P;else{if(typeof $=="string"&&(k.style.cssText=$=""),$)for(S in $)P&&S in P||R(k.style,S,"");if(P)for(S in P)$&&P[S]===$[S]||R(k.style,S,P[S])}else if(S[0]==="o"&&S[1]==="n")V=S!==(S=S.replace(/Capture$/,"")),S=S.toLowerCase()in k?S.toLowerCase().slice(2):S.slice(2),k.l||(k.l={}),k.l[S+V]=P,P?$||k.addEventListener(S,V?K:M,V):k.removeEventListener(S,V?K:M,V);else if(S!=="dangerouslySetInnerHTML"){if(Y)S=S.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if(S!=="href"&&S!=="list"&&S!=="form"&&S!=="tabIndex"&&S!=="download"&&S in k)try{k[S]=P==null?"":P;break t}catch(at){}typeof P=="function"||(P!=null&&(P!==!1||S[0]==="a"&&S[1]==="r")?k.setAttribute(S,P):k.removeAttribute(S))}}function M(k){this.l[k.type+!1](n.event?n.event(k):k)}function K(k){this.l[k.type+!0](n.event?n.event(k):k)}function U(k,S,P,$,Y,V,at,vt,yt){var Ct,G,Lt,Ot,pt,kt,Be,Ht,ee,ye,vr,zt=S.type;if(S.constructor!==void 0)return null;P.__h!=null&&(yt=P.__h,vt=S.__e=P.__e,S.__h=null,V=[vt]),(Ct=n.__b)&&Ct(S);try{t:if(typeof zt=="function"){if(Ht=S.props,ee=(Ct=zt.contextType)&&$[Ct.__c],ye=Ct?ee?ee.props.value:Ct.__:$,P.__c?Be=(G=S.__c=P.__c).__=G.__E:("prototype"in zt&&zt.prototype.render?S.__c=G=new zt(Ht,ye):(S.__c=G=new h(Ht,ye),G.constructor=zt,G.render=st),ee&&ee.sub(G),G.props=Ht,G.state||(G.state={}),G.context=ye,G.__n=$,Lt=G.__d=!0,G.__h=[]),G.__s==null&&(G.__s=G.state),zt.getDerivedStateFromProps!=null&&(G.__s==G.state&&(G.__s=p({},G.__s)),p(G.__s,zt.getDerivedStateFromProps(Ht,G.__s))),Ot=G.props,pt=G.state,Lt)zt.getDerivedStateFromProps==null&&G.componentWillMount!=null&&G.componentWillMount(),G.componentDidMount!=null&&G.__h.push(G.componentDidMount);else{if(zt.getDerivedStateFromProps==null&&Ht!==Ot&&G.componentWillReceiveProps!=null&&G.componentWillReceiveProps(Ht,ye),!G.__e&&G.shouldComponentUpdate!=null&&G.shouldComponentUpdate(Ht,G.__s,ye)===!1||S.__v===P.__v){G.props=Ht,G.state=G.__s,S.__v!==P.__v&&(G.__d=!1),G.__v=S,S.__e=P.__e,S.__k=P.__k,S.__k.forEach(function(Ir){Ir&&(Ir.__=S)}),G.__h.length&&at.push(G);break t}G.componentWillUpdate!=null&&G.componentWillUpdate(Ht,G.__s,ye),G.componentDidUpdate!=null&&G.__h.push(function(){G.componentDidUpdate(Ot,pt,kt)})}G.context=ye,G.props=Ht,G.state=G.__s,(Ct=n.__r)&&Ct(S),G.__d=!1,G.__v=S,G.__P=k,Ct=G.render(G.props,G.state,G.context),G.state=G.__s,G.getChildContext!=null&&($=p(p({},$),G.getChildContext())),Lt||G.getSnapshotBeforeUpdate==null||(kt=G.getSnapshotBeforeUpdate(Ot,pt)),vr=Ct!=null&&Ct.type===m&&Ct.key==null?Ct.props.children:Ct,C(k,Array.isArray(vr)?vr:[vr],S,P,$,Y,V,at,vt,yt),G.base=S.__e,S.__h=null,G.__h.length&&at.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,at,yt);(Ct=n.diffed)&&Ct(S)}catch(Ir){S.__v=null,(yt||V!=null)&&(S.__e=vt,S.__h=!!yt,V[V.indexOf(vt)]=null),n.__e(Ir,S,P)}}function W(k,S){n.__c&&n.__c(S,k),k.some(function(P){try{k=P.__h,P.__h=[],k.some(function($){$.call(P)})}catch($){n.__e($,P.__v)}})}function q(k,S,P,$,Y,V,at,vt){var yt,Ct,G,Lt=P.props,Ot=S.props,pt=S.type,kt=0;if(pt==="svg"&&(Y=!0),V!=null){for(;kt<V.length;kt++)if((yt=V[kt])&&"setAttribute"in yt==!!pt&&(pt?yt.localName===pt:yt.nodeType===3)){k=yt,V[kt]=null;break}}if(k==null){if(pt===null)return document.createTextNode(Ot);k=Y?document.createElementNS("http://www.w3.org/2000/svg",pt):document.createElement(pt,Ot.is&&Ot),V=null,vt=!1}if(pt===null)Lt===Ot||vt&&k.data===Ot||(k.data=Ot);else{if(V=V&&r.call(k.childNodes),Ct=(Lt=P.props||c).dangerouslySetInnerHTML,G=Ot.dangerouslySetInnerHTML,!vt){if(V!=null)for(Lt={},kt=0;kt<k.attributes.length;kt++)Lt[k.attributes[kt].name]=k.attributes[kt].value;(G||Ct)&&(G&&(Ct&&G.__html==Ct.__html||G.__html===k.innerHTML)||(k.innerHTML=G&&G.__html||""))}if(function(Be,Ht,ee,ye,vr){var zt;for(zt in ee)zt==="children"||zt==="key"||zt in Ht||H(Be,zt,null,ee[zt],ye);for(zt in Ht)vr&&typeof Ht[zt]!="function"||zt==="children"||zt==="key"||zt==="value"||zt==="checked"||ee[zt]===Ht[zt]||H(Be,zt,Ht[zt],ee[zt],ye)}(k,Ot,Lt,Y,vt),G)S.__k=[];else if(kt=S.props.children,C(k,Array.isArray(kt)?kt:[kt],S,P,$,Y&&pt!=="foreignObject",V,at,V?V[0]:P.__k&&b(P,0),vt),V!=null)for(kt=V.length;kt--;)V[kt]!=null&&v(V[kt]);vt||("value"in Ot&&(kt=Ot.value)!==void 0&&(kt!==Lt.value||kt!==k.value||pt==="progress"&&!kt)&&H(k,"value",kt,Lt.value,!1),"checked"in Ot&&(kt=Ot.checked)!==void 0&&kt!==k.checked&&H(k,"checked",kt,Lt.checked,!1))}return k}function rt(k,S,P){try{typeof k=="function"?k(S):k.current=S}catch($){n.__e($,P)}}function lt(k,S,P){var $,Y;if(n.unmount&&n.unmount(k),($=k.ref)&&($.current&&$.current!==k.__e||rt($,null,S)),($=k.__c)!=null){if($.componentWillUnmount)try{$.componentWillUnmount()}catch(V){n.__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||v(k.__e),k.__e=k.__d=void 0}function st(k,S,P){return this.constructor(k,P)}function ut(k,S,P){var $,Y,V;n.__&&n.__(k,S),Y=($=typeof P=="function")?null:P&&P.__k||S.__k,V=[],U(S,k=(!$&&P||S).__k=y(m,null,[k]),Y||c,c,S.ownerSVGElement!==void 0,!$&&P?[P]:Y?null:S.firstChild?r.call(S.childNodes):null,V,!$&&P?P:Y?Y.__e:S.firstChild,$),W(V,k)}r=f.slice,n={__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=p({},this.state),typeof k=="function"&&(k=k(p({},P),this.props)),k&&p(P,k),k!=null&&this.__v&&(S&&this.__h.push(S),D(this))},h.prototype.forceUpdate=function(k){this.__v&&(this.__e=!0,k&&this.__h.push(k),D(this))},h.prototype.render=m,a=[],u=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,x.__r=0,l=0,e.Component=h,e.Fragment=m,e.cloneElement=function(k,S,P){var $,Y,V,at=p({},k.props);for(V in S)V=="key"?$=S[V]:V=="ref"?Y=S[V]:at[V]=S[V];return arguments.length>2&&(at.children=arguments.length>3?r.call(arguments,2):P),g(k.type,at,$||k.key,Y||k.ref,null)},e.createContext=function(k,S){var P={__c:S="__cC"+l++,__:k,Consumer:function($,Y){return $.children(Y)},Provider:function($){var Y,V;return this.getChildContext||(Y=[],(V={})[S]=this,this.getChildContext=function(){return V},this.shouldComponentUpdate=function(at){this.props.value!==at.value&&Y.some(D)},this.sub=function(at){Y.push(at);var vt=at.componentWillUnmount;at.componentWillUnmount=function(){Y.splice(Y.indexOf(at),1),vt&&vt.call(at)}}),$.children}};return P.Provider.__=P.Consumer.contextType=P},e.createElement=y,e.createRef=function(){return{current:null}},e.h=y,e.hydrate=function k(S,P){ut(S,P,k)},e.isValidElement=i,e.options=n,e.render=ut,e.toChildArray=function k(S,P){return P=P||[],S==null||typeof S=="boolean"||(Array.isArray(S)?S.some(function($){k($,P)}):P.push(S)),P}}),XK=function(t,e){return e===void 0&&(e=document),typeof t=="string"?e.querySelector(t):((r=t)==null?void 0:r.nodeType)===Node.ELEMENT_NODE?t:null;var r},w5=class{constructor(t,e){e===void 0&&(e={}),this.uppy=t,this.opts=e}getPluginState(){const{plugins:t}=this.uppy.getState();return t[this.id]||{}}setPluginState(t){const{plugins:e}=this.uppy.getState();this.uppy.setState({plugins:Zt(Z({},e),{[this.id]:Z(Z({},e[this.id]),t)})})}setOptions(t){this.opts=Z(Z({},this.opts),t),this.setPluginState(),this.i18nInit()}i18nInit(){const t=new gj([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 FA(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var ZK=0;function JK(t){return"__private_"+ZK+++"_"+t}const{render:TA}=YK;var Pc=JK("updateUI");class E5 extends w5{constructor(){super(...arguments),Object.defineProperty(this,Pc,{writable:!0,value:void 0})}mount(e,r){const n=r.id,o=XK(e);if(o){this.isTargetDOMEl=!0;const u=document.createDocumentFragment();return FA(this,Pc)[Pc]=function(s){let l=null,c=null;return function(){for(var f=arguments.length,d=new Array(f),p=0;p<f;p++)d[p]=arguments[p];return c=d,l||(l=Promise.resolve().then(()=>(l=null,s(...c)))),l}}(s=>{this.uppy.getPlugin(this.id)&&(TA(this.render(s),u),this.afterUpdate())}),this.uppy.log(`Installing ${n} to a DOM element '${e}'`),this.opts.replaceTargetContent&&(o.innerHTML=""),TA(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 E5)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 ${n} to ${i.id}`),this.parent=i,this.el=i.addTarget(r),this.onMount(),this.el;this.uppy.log(`Not installing ${n}`);let a=`Invalid target option given to ${n}.`;throw a+=typeof 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 r,n;this.el!=null&&((r=(n=FA(this,Pc))[Pc])==null||r.call(n,e))}unmount(){var e;this.isTargetDOMEl&&((e=this.el)==null||e.remove()),this.onUnmount()}onMount(){}onUnmount(){}}var QK=E5;const{debugLogger:tY}=bj;var Hf=xj,eY=xj,rY=QK,nY=w5,oY=tY;Hf.Uppy=eY,Hf.UIPlugin=rY,Hf.BasePlugin=nY,Hf.debugLogger=oY;class iY extends Error{constructor(e,r){r===void 0&&(r=null),super("This looks like a network error, the endpoint might be blocked by an internet provider or a firewall."),this.cause=e,this.isNetworkError=!0,this.request=r}}var D5=iY,C1=function(){return fetch(...arguments).catch(t=>{throw t.name==="AbortError"?t:new D5(t)})};class aY extends Error{constructor(){super("Authorization required"),this.name="AuthError",this.isAuthError=!0}}var kh,Ei,so,Di,_A,uY=aY;function uo(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 x1(t){return"__private_"+sY+++"_"+t}function S1(t){return Om(this,null,function*(){if(t.status===401)throw new uY;const e=t.json();if(t.status<200||t.status>300){let r=`Failed request with status: ${t.status}. ${t.statusText}`;try{const n=yield e;r=n.message?`${r} message: ${n.message}`:r,r=n.requestId?`${r} request-Id: ${n.requestId}`:r}finally{throw new Error(r)}}return e})}var PA=(Ei=x1("getPostResponseFunc"),so=x1("getUrl"),Di=x1("errorHandler"),_A=kh=class Sj{constructor(e,r){Object.defineProperty(this,Di,{value:cY}),Object.defineProperty(this,so,{value:lY}),Object.defineProperty(this,Ei,{writable:!0,value:n=>o=>n?o:this.onReceiveResponse(o)}),this.uppy=e,this.opts=r,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(),r=this.opts.companionUrl;return(e&&e[r]?e[r]:r).replace(/\/$/,"")}headers(){const e=this.opts.companionHeaders||{};return Promise.resolve(Z(Z({},Sj.defaultHeaders),e))}onReceiveResponse(e){const r=this.uppy.getState().companion||{},n=this.opts.companionUrl,{headers:o}=e;return o.has("i-am")&&o.get("i-am")!==r[n]&&this.uppy.setState({companion:Zt(Z({},r),{[n]:o.get("i-am")})}),e}preflight(e){return this.preflightDone?Promise.resolve(this.allowedHeaders.slice()):fetch(uo(this,so)[so](e),{method:"OPTIONS"}).then(r=>(r.headers.has("access-control-allow-headers")&&(this.allowedHeaders=r.headers.get("access-control-allow-headers").split(",").map(n=>n.trim().toLowerCase())),this.preflightDone=!0,this.allowedHeaders.slice())).catch(r=>(this.uppy.log(`[CompanionClient] unable to make preflight request ${r}`,"warning"),this.preflightDone=!0,this.allowedHeaders.slice()))}preflightAndHeaders(e){return Promise.all([this.preflight(e),this.headers()]).then(r=>{let[n,o]=r;return Object.keys(o).forEach(i=>{n.includes(i.toLowerCase())||(this.uppy.log(`[CompanionClient] excluding disallowed header ${i}`),delete o[i])}),o})}get(e,r){return this.preflightAndHeaders(e).then(n=>C1(uo(this,so)[so](e),{method:"get",headers:n,credentials:this.opts.companionCookiesRule||"same-origin"})).then(uo(this,Ei)[Ei](r)).then(S1).catch(uo(this,Di)[Di]("get",e))}post(e,r,n){const o="post";return this.preflightAndHeaders(e).then(i=>C1(uo(this,so)[so](e),{method:o,headers:i,credentials:this.opts.companionCookiesRule||"same-origin",body:JSON.stringify(r)})).then(uo(this,Ei)[Ei](n)).then(S1).catch(uo(this,Di)[Di](o,e))}delete(e,r,n){const o="delete";return this.preflightAndHeaders(e).then(i=>C1(`${this.hostname}/${e}`,{method:o,headers:i,credentials:this.opts.companionCookiesRule||"same-origin",body:r?JSON.stringify(r):null})).then(uo(this,Ei)[Ei](n)).then(S1).catch(uo(this,Di)[Di](o,e))}},kh.VERSION="2.0.4",kh.defaultHeaders={Accept:"application/json","Content-Type":"application/json","Uppy-Versions":`@uppy/companion-client=${kh.VERSION}`},_A);function lY(t){return/^(https?:|)\/\//.test(t)?t:`${this.hostname}/${t}`}function cY(t,e){return r=>{var n;if((n=r)==null||!n.isAuthError){const o=new Error(`Could not ${t} ${uo(this,so)[so](e)}`);o.cause=r,r=o}return Promise.reject(r)}}var fY={setItem:(t,e)=>new Promise(r=>{localStorage.setItem(t,e),r()}),getItem:t=>Promise.resolve(localStorage.getItem(t)),removeItem:t=>new Promise(e=>{localStorage.removeItem(t),e()})},ao,Ci,gn,Er,Bh;let jA,NA;function Ve(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var dY=0;function jc(t){return"__private_"+dY+++"_"+t}var pY=(ao=jc("queued"),Ci=jc("emitter"),gn=jc("isOpen"),Er=jc("socket"),Bh=jc("handleMessage"),jA=Symbol.for("uppy test: getSocket"),NA=Symbol.for("uppy test: getQueued"),class{constructor(t){Object.defineProperty(this,ao,{writable:!0,value:[]}),Object.defineProperty(this,Ci,{writable:!0,value:vj()}),Object.defineProperty(this,gn,{writable:!0,value:!1}),Object.defineProperty(this,Er,{writable:!0,value:void 0}),Object.defineProperty(this,Bh,{writable:!0,value:e=>{try{const r=JSON.parse(e.data);this.emit(r.action,r.payload)}catch(r){console.log(r)}}}),this.opts=t,t&&t.autoOpen===!1||this.open()}get isOpen(){return Ve(this,gn)[gn]}[jA](){return Ve(this,Er)[Er]}[NA](){return Ve(this,ao)[ao]}open(){Ve(this,Er)[Er]=new WebSocket(this.opts.target),Ve(this,Er)[Er].onopen=()=>{for(Ve(this,gn)[gn]=!0;Ve(this,ao)[ao].length>0&&Ve(this,gn)[gn];){const t=Ve(this,ao)[ao].shift();this.send(t.action,t.payload)}},Ve(this,Er)[Er].onclose=()=>{Ve(this,gn)[gn]=!1},Ve(this,Er)[Er].onmessage=Ve(this,Bh)[Bh]}close(){var t;(t=Ve(this,Er)[Er])==null||t.close()}send(t,e){Ve(this,gn)[gn]?Ve(this,Er)[Er].send(JSON.stringify({action:t,payload:e})):Ve(this,ao)[ao].push({action:t,payload:e})}on(t,e){Ve(this,Ci)[Ci].on(t,e)}emit(t,e){Ve(this,Ci)[Ci].emit(t,e)}once(t,e){Ve(this,Ci)[Ci].once(t,e)}}),hY={RequestClient:PA,Provider:class extends PA{constructor(t,e){super(t,e),this.provider=e.provider,this.id=this.provider,this.name=this.opts.name||(r=>r.split("-").map(n=>n.charAt(0).toUpperCase()+n.slice(1)).join(" "))(this.id),this.pluginId=this.opts.pluginId,this.tokenKey=`companion-${this.pluginId}-auth-token`,this.companionKeysParams=this.opts.companionKeysParams,this.preAuthToken=null}headers(){return Promise.all([super.headers(),this.getAuthToken()]).then(t=>{let[e,r]=t;const n={};return r&&(n["uppy-auth-token"]=r),this.companionKeysParams&&(n["uppy-credentials-params"]=btoa(JSON.stringify({params:this.companionKeysParams}))),Z(Z({},e),n)})}onReceiveResponse(t){t=super.onReceiveResponse(t);const e=this.uppy.getPlugin(this.pluginId),r=e.getPluginState().authenticated?t.status!==401:t.status<400;return e.setPluginState({authenticated:r}),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,r){if(t.type="acquirer",t.files=[],r&&(t.opts=Z(Z({},r),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 n=e.companionAllowedHosts;if(!(typeof n=="string"||Array.isArray(n)||n instanceof RegExp))throw new TypeError(`${t.id}: the option "companionAllowedHosts" must be one of string, Array, RegExp`);t.opts.companionAllowedHosts=n}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||fY}},Socket:pY},xi,Ds,gY=Hu(function(t,e,r){const{progress:n,bytesUploaded:o,bytesTotal:i}=e;n&&(t.uppy.log(`Upload progress: ${n}`),t.uppy.emit("upload-progress",r,{uploader:t,bytesUploaded:o,bytesTotal:i}))},300,{leading:!0,trailing:!0});function Nc(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var vY=0;function IA(t){return"__private_"+vY+++"_"+t}var LA=(xi=IA("emitter"),Ds=IA("events"),class{constructor(t){Object.defineProperty(this,xi,{writable:!0,value:void 0}),Object.defineProperty(this,Ds,{writable:!0,value:[]}),Nc(this,xi)[xi]=t}on(t,e){return Nc(this,Ds)[Ds].push([t,e]),Nc(this,xi)[xi].on(t,e)}remove(){for(const[t,e]of Nc(this,Ds)[Ds].splice(0))Nc(this,xi)[xi].off(t,e)}});function vn(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var yY=0;function Oy(t){return"__private_"+yY+++"_"+t}var Go=Oy("aliveTimer"),$a=Oy("isDone"),Ic=Oy("onTimedOut"),Ha=Oy("timeout"),RA=class{constructor(t,e){Object.defineProperty(this,Go,{writable:!0,value:void 0}),Object.defineProperty(this,$a,{writable:!0,value:!1}),Object.defineProperty(this,Ic,{writable:!0,value:void 0}),Object.defineProperty(this,Ha,{writable:!0,value:void 0}),vn(this,Ha)[Ha]=t,vn(this,Ic)[Ic]=e}progress(){vn(this,$a)[$a]||vn(this,Ha)[Ha]>0&&(clearTimeout(vn(this,Go)[Go]),vn(this,Go)[Go]=setTimeout(vn(this,Ic)[Ic],vn(this,Ha)[Ha]))}done(){vn(this,$a)[$a]||(clearTimeout(vn(this,Go)[Go]),vn(this,Go)[Go]=null,vn(this,$a)[$a]=!0)}};function Ge(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var mY=0;function is(t){return"__private_"+mY+++"_"+t}function bY(){return new Error("Cancelled")}var Jr=is("activeRequests"),Pr=is("queuedHandlers"),td=is("call"),Vf=is("queueNext"),W4=is("next"),A1=is("queue"),G4=is("dequeue");function wY(t){Ge(this,Jr)[Jr]+=1;let e,r=!1;try{e=t()}catch(n){throw Ge(this,Jr)[Jr]-=1,n}return{abort:()=>{r||(r=!0,Ge(this,Jr)[Jr]-=1,e(),Ge(this,Vf)[Vf]())},done:()=>{r||(r=!0,Ge(this,Jr)[Jr]-=1,Ge(this,Vf)[Vf]())}}}function EY(){queueMicrotask(()=>Ge(this,W4)[W4]())}function DY(){if(Ge(this,Jr)[Jr]>=this.limit||Ge(this,Pr)[Pr].length===0)return;const t=Ge(this,Pr)[Pr].shift(),e=Ge(this,td)[td](t.fn);t.abort=e.abort,t.done=e.done}function CY(t,e){e===void 0&&(e={});const r={fn:t,priority:e.priority||0,abort:()=>{Ge(this,G4)[G4](r)},done:()=>{throw new Error("Cannot mark a queued request as done: this indicates a bug")}},n=Ge(this,Pr)[Pr].findIndex(o=>r.priority>o.priority);return n===-1?Ge(this,Pr)[Pr].push(r):Ge(this,Pr)[Pr].splice(n,0,r),r}function xY(t){const e=Ge(this,Pr)[Pr].indexOf(t);e!==-1&&Ge(this,Pr)[Pr].splice(e,1)}var SY={RateLimitedQueue:class{constructor(t){Object.defineProperty(this,G4,{value:xY}),Object.defineProperty(this,A1,{value:CY}),Object.defineProperty(this,W4,{value:DY}),Object.defineProperty(this,Vf,{value:EY}),Object.defineProperty(this,td,{value:wY}),Object.defineProperty(this,Jr,{writable:!0,value:0}),Object.defineProperty(this,Pr,{writable:!0,value:[]}),this.limit=typeof t!="number"||t===0?1/0:t}run(t,e){return Ge(this,Jr)[Jr]<this.limit?Ge(this,td)[td](t):Ge(this,A1)[A1](t,e)}wrapPromiseFunction(t,e){var r=this;return function(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];let a;const u=new Promise((s,l)=>{a=r.run(()=>{let c,f;try{f=Promise.resolve(t(...o))}catch(d){f=Promise.reject(d)}return f.then(d=>{c?l(c):(a.done(),s(d))},d=>{c?l(c):(a.done(),l(d))}),()=>{c=bY()}},e)});return u.abort=()=>{a.abort()},u}}},internalRateLimitedQueue:Symbol("__queue")},MA,zA,Aj=function(t){return!!t&&(t.readyState!==0&&t.readyState!==4||t.status===0)},AY={strings:{timedOut:"Upload stalled for %{seconds} seconds, aborting."}};const{nanoid:OY}=wj,{Provider:kY,RequestClient:BY,Socket:FY}=hY,{RateLimitedQueue:TY,internalRateLimitedQueue:O1}=SY;function $A(t,e){let r=e;return r||(r=new Error("Upload error")),typeof r=="string"&&(r=new Error(r)),r instanceof Error||(r=Object.assign(new Error("Upload error"),{data:r})),Aj(t)?(r=new D5(r,t),r):(r.request=t,r)}function HA(t){return t.data.slice(0,t.data.size,t.meta.type)}var _Y=(zA=MA=class extends w5{constructor(t,e){super(t,e),this.type="uploader",this.id=this.opts.id||"XHRUpload",this.title="XHRUpload",this.defaultLocale=AY;const r={formData:!0,fieldName:e.bundle?"files[]":"file",method:"post",metaFields:null,responseUrlFieldName:"url",bundle:!1,headers:{},timeout:3e4,limit:5,withCredentials:!1,responseType:"",getResponseData(n){let o={};try{o=JSON.parse(n)}catch(i){t.log(i)}return o},getResponseError(n,o){let i=new Error("Upload error");return Aj(o)&&(i=new D5(i,o)),i},validateStatus:n=>n>=200&&n<300};if(this.opts=Z(Z({},r),e),this.i18nInit(),this.handleUpload=this.handleUpload.bind(this),O1 in this.opts?this.requests=this.opts[O1]:this.requests=new TY(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:r}=this.opts,n=Zt(Z(Z(Z({},this.opts),e||{}),t.xhrUpload||{}),{headers:{}});return typeof r=="function"?n.headers=r(t):Object.assign(n.headers,this.opts.headers),e&&Object.assign(n.headers,e.headers),t.xhrUpload&&Object.assign(n.headers,t.xhrUpload.headers),n}addMetadata(t,e,r){(Array.isArray(r.metaFields)?r.metaFields:Object.keys(e)).forEach(n=>{t.append(n,e[n])})}createFormDataUpload(t,e){const r=new FormData;this.addMetadata(r,t.meta,e);const n=HA(t);return t.name?r.append(e.fieldName,n,t.meta.name):r.append(e.fieldName,n),r}createBundledUpload(t,e){const r=new FormData,{meta:n}=this.uppy.getState();return this.addMetadata(r,n,e),t.forEach(o=>{const i=this.getOptions(o),a=HA(o);o.name?r.append(i.fieldName,a,o.name):r.append(i.fieldName,a)}),r}upload(t,e,r){const n=this.getOptions(t);return this.uppy.log(`uploading ${e} of ${r}`),new Promise((o,i)=>{this.uppy.emit("upload-started",t);const a=n.formData?this.createFormDataUpload(t,n):t.data,u=new XMLHttpRequest;this.uploaderEvents[t.id]=new LA(this.uppy);const s=new RA(n.timeout,()=>{u.abort(),c.done();const f=new Error(this.i18n("timedOut",{seconds:Math.ceil(n.timeout/1e3)}));this.uppy.emit("upload-error",t,f),i(f)}),l=OY();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),n.validateStatus(f.target.status,u.responseText,u)){const y=n.getResponseData(u.responseText,u),g=y[n.responseUrlFieldName],m={status:f.target.status,body:y,uploadURL:g};return this.uppy.emit("upload-success",t,m),g&&this.uppy.log(`Download ${t.name} from ${g}`),o(t)}const d=n.getResponseData(u.responseText,u),p=$A(u,n.getResponseError(u.responseText,u)),v={status:f.target.status,body:d};return this.uppy.emit("upload-error",t,p,v),i(p)}),u.addEventListener("error",()=>{this.uppy.log(`[XHRUpload] ${l} errored`),s.done(),c.done(),this.uploaderEvents[t.id]&&(this.uploaderEvents[t.id].remove(),this.uploaderEvents[t.id]=null);const f=$A(u,n.getResponseError(u.responseText,u));return this.uppy.emit("upload-error",t,f),i(f)}),u.open(n.method.toUpperCase(),n.endpoint,!0),u.withCredentials=n.withCredentials,n.responseType!==""&&(u.responseType=n.responseType);const c=this.requests.run(()=>{this.uppy.emit("upload-started",t);const f=this.getOptions(t);return Object.keys(f.headers).forEach(d=>{u.setRequestHeader(d,f.headers[d])}),u.send(a),()=>{s.done(),u.abort()}});this.onFileRemove(t.id,()=>{c.abort(),i(new Error("File removed"))}),this.onCancelAll(t.id,()=>{c.abort(),i(new Error("Upload cancelled"))})})}uploadRemote(t){const e=this.getOptions(t);return new Promise((r,n)=>{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?kY:BY)(this.uppy,t.remote.providerOptions).post(t.remote.url,Zt(Z({},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 FY({target:`${u}/api/${a}`,autoOpen:!1});this.uploaderEvents[t.id]=new LA(this.uppy),this.onFileRemove(t.id,()=>{s.send("cancel",{}),l.abort(),r(`upload ${t.id} was removed`)}),this.onCancelAll(t.id,()=>{s.send("cancel",{}),l.abort(),r(`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=>gY(this,c,t)),s.on("success",c=>{const f=e.getResponseData(c.response.responseText,c.response),d=f[e.responseUrlFieldName],p={status:c.response.status,body:f,uploadURL:d};return this.uppy.emit("upload-success",t,p),l.done(),this.uploaderEvents[t.id]&&(this.uploaderEvents[t.id].remove(),this.uploaderEvents[t.id]=null),r()}),s.on("error",c=>{const f=c.response,d=f?e.getResponseError(f.responseText,f):Object.assign(new Error(c.error.message),{cause:c.error});this.uppy.emit("upload-error",t,d),l.done(),this.uploaderEvents[t.id]&&(this.uploaderEvents[t.id].remove(),this.uploaderEvents[t.id]=null),n(d)});const l=this.requests.run(()=>(s.open(),t.isPaused&&s.send("pause",{}),()=>s.close()))}).catch(i=>{this.uppy.emit("upload-error",t,i),n(i)})})}uploadBundle(t){return new Promise((e,r)=>{const{endpoint:n}=this.opts,{method:o}=this.opts,i=this.uppy.getState().xhrUpload,a=this.createBundledUpload(t,Z(Z({},this.opts),i||{})),u=new XMLHttpRequest,s=new RA(this.opts.timeout,()=>{u.abort();const c=new Error(this.i18n("timedOut",{seconds:Math.ceil(this.opts.timeout/1e3)}));l(c),r(c)}),l=c=>{t.forEach(f=>{this.uppy.emit("upload-error",f,c)})};u.upload.addEventListener("loadstart",()=>{this.uppy.log("[XHRUpload] started uploading bundle"),s.progress()}),u.upload.addEventListener("progress",c=>{s.progress(),c.lengthComputable&&t.forEach(f=>{this.uppy.emit("upload-progress",f,{uploader:this,bytesUploaded:c.loaded/c.total*f.size,bytesTotal:f.size})})}),u.addEventListener("load",c=>{if(s.done(),this.opts.validateStatus(c.target.status,u.responseText,u)){const d=this.opts.getResponseData(u.responseText,u),p={status:c.target.status,body:d};return t.forEach(v=>{this.uppy.emit("upload-success",v,p)}),e()}const f=this.opts.getResponseError(u.responseText,u)||new Error("Upload error");return f.request=u,l(f),r(f)}),u.addEventListener("error",()=>{s.done();const c=this.opts.getResponseError(u.responseText,u)||new Error("Upload error");return l(c),r(c)}),this.uppy.on("cancel-all",()=>{s.done(),u.abort()}),u.open(o.toUpperCase(),n,!0),u.withCredentials=this.opts.withCredentials,this.opts.responseType!==""&&(u.responseType=this.opts.responseType),Object.keys(this.opts.headers).forEach(c=>{u.setRequestHeader(c,this.opts.headers[c])}),u.send(a),t.forEach(c=>{this.uppy.emit("upload-started",c)})})}uploadFiles(t){const e=t.map((r,n)=>{const o=parseInt(n,10)+1,i=t.length;return r.error?Promise.reject(new Error(r.error)):r.isRemote?this.uploadRemote(r,o,i):this.upload(r,o,i)});return function(r){const n=[],o=[];function i(u){n.push(u)}function a(u){o.push(u)}return Promise.all(r.map(u=>u.then(i,a))).then(()=>({successful:n,failed:o}))}(e)}onFileRemove(t,e){this.uploaderEvents[t].on("file-removed",r=>{t===r.id&&e(r.id)})}onRetry(t,e){this.uploaderEvents[t].on("upload-retry",r=>{t===r&&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[O1]||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(r=>this.uppy.getFile(r));if(this.opts.bundle){if(e.some(r=>r.isRemote))throw new Error("Cant upload remote files when the `bundle: true` option is set");if(typeof this.opts.headers=="function")throw new TypeError("`headers` may not be a function when the `bundle: true` option is set");return this.uploadBundle(e)}return this.uploadFiles(e).then(()=>null)}install(){if(this.opts.bundle){const{capabilities:t}=this.uppy.getState();this.uppy.setState({capabilities:Zt(Z({},t),{individualCancellation:!1})})}this.uppy.addUploader(this.handleUpload)}uninstall(){if(this.opts.bundle){const{capabilities:t}=this.uppy.getState();this.uppy.setState({capabilities:Zt(Z({},t),{individualCancellation:!0})})}this.uppy.removeUploader(this.handleUpload)}},MA.VERSION="2.0.6",zA),VA=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function _p(t){var e={exports:{}};return t(e,e.exports),e.exports}var Si,Lg,Fh=function(t){return t&&t.Math==Math&&t},X=Fh(typeof globalThis=="object"&&globalThis)||Fh(typeof window=="object"&&window)||Fh(typeof self=="object"&&self)||Fh(typeof VA=="object"&&VA)||function(){return this}()||Function("return this")(),PY=Object.defineProperty,C5=function(t,e){try{PY(X,t,{value:e,configurable:!0,writable:!0})}catch(r){X[t]=e}return e},Zi=X["__core-js_shared__"]||C5("__core-js_shared__",{}),x5=_p(function(t){(t.exports=function(e,r){return Zi[e]||(Zi[e]=r!==void 0?r:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),Oj=Function.prototype,q4=Oj.bind,K4=Oj.call,jY=q4&&q4.bind(K4),ht=q4?function(t){return t&&jY(K4,t)}:function(t){return t&&function(){return K4.apply(t,arguments)}},NY=X.TypeError,Bn=function(t){if(t==null)throw NY("Can't call method on "+t);return t},IY=X.Object,ka=function(t){return IY(Bn(t))},LY=ht({}.hasOwnProperty),Re=Object.hasOwn||function(t,e){return LY(ka(t),e)},RY=0,MY=Math.random(),zY=ht(1 .toString),S5=function(t){return"Symbol("+(t===void 0?"":t)+")_"+zY(++RY+MY,36)},ie=function(t){return typeof t=="function"},$Y=function(t){return ie(t)?t:void 0},as=function(t,e){return arguments.length<2?$Y(X[t]):X[t]&&X[t][e]},sl=as("navigator","userAgent")||"",UA=X.process,WA=X.Deno,GA=UA&&UA.versions||WA&&WA.version,qA=GA&&GA.v8;qA&&(Lg=(Si=qA.split("."))[0]>0&&Si[0]<4?1:+(Si[0]+Si[1])),!Lg&&sl&&(!(Si=sl.match(/Edge\/(\d+)/))||Si[1]>=74)&&(Si=sl.match(/Chrome\/(\d+)/))&&(Lg=+Si[1]);var Td=Lg,Qt=function(t){try{return!!t()}catch(e){return!0}},Y4=!!Object.getOwnPropertySymbols&&!Qt(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&Td&&Td<41}),A5=Y4&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Lc=x5("wks"),wu=X.Symbol,KA=wu&&wu.for,HY=A5?wu:wu&&wu.withoutSetter||S5,Ae=function(t){if(!Re(Lc,t)||!Y4&&typeof Lc[t]!="string"){var e="Symbol."+t;Y4&&Re(wu,t)?Lc[t]=wu[t]:Lc[t]=A5&&KA?KA(e):HY(e)}return Lc[t]},kj={};kj[Ae("toStringTag")]="z";var O5=String(kj)==="[object z]",ir=!Qt(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),pe=function(t){return typeof t=="object"?t!==null:ie(t)},X4=X.document,VY=pe(X4)&&pe(X4.createElement),_d=function(t){return VY?X4.createElement(t):{}},Bj=!ir&&!Qt(function(){return Object.defineProperty(_d("div"),"a",{get:function(){return 7}}).a!=7}),UY=X.String,WY=X.TypeError,Me=function(t){if(pe(t))return t;throw WY(UY(t)+" is not an object")},Rc=Function.prototype.call,Kt=Rc.bind?Rc.bind(Rc):function(){return Rc.apply(Rc,arguments)},Vu=ht({}.isPrototypeOf),GY=X.Object,k1=A5?function(t){return typeof t=="symbol"}:function(t){var e=as("Symbol");return ie(e)&&Vu(e.prototype,GY(t))},qY=X.String,ky=function(t){try{return qY(t)}catch(e){return"Object"}},KY=X.TypeError,ya=function(t){if(ie(t))return t;throw KY(ky(t)+" is not a function")},Uu=function(t,e){var r=t[e];return r==null?void 0:ya(r)},YY=X.TypeError,XY=X.TypeError,ZY=Ae("toPrimitive"),k5=function(t){var e=function(r,n){if(!pe(r)||k1(r))return r;var o,i=Uu(r,ZY);if(i){if(o=Kt(i,r,n),!pe(o)||k1(o))return o;throw XY("Can't convert object to primitive value")}return function(a,u){var s,l;if(ie(s=a.toString)&&!pe(l=Kt(s,a))||ie(s=a.valueOf)&&!pe(l=Kt(s,a)))return l;throw YY("Can't convert object to primitive value")}(r)}(t,"string");return k1(e)?e:e+""},JY=X.TypeError,YA=Object.defineProperty,to={f:ir?YA:function(t,e,r){if(Me(t),e=k5(e),Me(r),Bj)try{return YA(t,e,r)}catch(n){}if("get"in r||"set"in r)throw JY("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},By=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},qn=ir?function(t,e,r){return to.f(t,e,By(1,r))}:function(t,e,r){return t[e]=r,t},QY=ht(Function.toString);ie(Zi.inspectSource)||(Zi.inspectSource=function(t){return QY(t)});var Vv,ed,Uv,Fy=Zi.inspectSource,XA=X.WeakMap,Fj=ie(XA)&&/native code/.test(Fy(XA)),ZA=x5("keys"),B5=function(t){return ZA[t]||(ZA[t]=S5(t))},Ty={},Z4=X.TypeError,tX=X.WeakMap;if(Fj||Zi.state){var Va=Zi.state||(Zi.state=new tX),eX=ht(Va.get),JA=ht(Va.has),rX=ht(Va.set);Vv=function(t,e){if(JA(Va,t))throw new Z4("Object already initialized");return e.facade=t,rX(Va,t,e),e},ed=function(t){return eX(Va,t)||{}},Uv=function(t){return JA(Va,t)}}else{var Cs=B5("state");Ty[Cs]=!0,Vv=function(t,e){if(Re(t,Cs))throw new Z4("Object already initialized");return e.facade=t,qn(t,Cs,e),e},ed=function(t){return Re(t,Cs)?t[Cs]:{}},Uv=function(t){return Re(t,Cs)}}var Sr={set:Vv,get:ed,has:Uv,enforce:function(t){return Uv(t)?ed(t):Vv(t,{})},getterFor:function(t){return function(e){var r;if(!pe(e)||(r=ed(e)).type!==t)throw Z4("Incompatible receiver, "+t+" required");return r}}},Tj=Function.prototype,nX=ir&&Object.getOwnPropertyDescriptor,B1=Re(Tj,"name"),tc={EXISTS:B1,PROPER:B1&&function(){}.name==="something",CONFIGURABLE:B1&&(!ir||ir&&nX(Tj,"name").configurable)},Ur=_p(function(t){var e=tc.CONFIGURABLE,r=Sr.get,n=Sr.enforce,o=String(String).split("String");(t.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet,p=s&&s.name!==void 0?s.name:a;ie(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Re(u,"name")||e&&u.name!==p)&&qn(u,"name",p),(l=n(u)).source||(l.source=o.join(typeof p=="string"?p:""))),i!==X?(c?!d&&i[a]&&(f=!0):delete i[a],f?i[a]=u:qn(i,a,u)):f?i[a]=u:C5(a,u)})(Function.prototype,"toString",function(){return ie(this)&&r(this).source||Fy(this)})}),oX=ht({}.toString),iX=ht("".slice),Kn=function(t){return iX(oX(t),8,-1)},aX=Ae("toStringTag"),uX=X.Object,sX=Kn(function(){return arguments}())=="Arguments",_y=O5?Kn:function(t){var e,r,n;return t===void 0?"Undefined":t===null?"Null":typeof(r=function(o,i){try{return o[i]}catch(a){}}(e=uX(t),aX))=="string"?r:sX?Kn(e):(n=Kn(e))=="Object"&&ie(e.callee)?"Arguments":n},lX=O5?{}.toString:function(){return"[object "+_y(this)+"]"};O5||Ur(Object.prototype,"toString",lX,{unsafe:!0});var Wv={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},F1=_d("span").classList,QA=F1&&F1.constructor&&F1.constructor.prototype,_j=QA===Object.prototype?void 0:QA,t7=ht(ht.bind),Wu=function(t,e){return ya(t),e===void 0?t:t7?t7(t,e):function(){return t.apply(e,arguments)}},T1=X.Object,cX=ht("".split),Py=Qt(function(){return!T1("z").propertyIsEnumerable(0)})?function(t){return Kn(t)=="String"?cX(t,""):T1(t)}:T1,fX=Math.ceil,dX=Math.floor,Pp=function(t){var e=+t;return e!=e||e===0?0:(e>0?dX:fX)(e)},pX=Math.min,ec=function(t){return t>0?pX(Pp(t),9007199254740991):0},us=function(t){return ec(t.length)},Gv=Array.isArray||function(t){return Kn(t)=="Array"},Pj=function(){},hX=[],jj=as("Reflect","construct"),F5=/^\s*(?:class|function)\b/,gX=ht(F5.exec),vX=!F5.exec(Pj),Mc=function(t){if(!ie(t))return!1;try{return jj(Pj,hX,t),!0}catch(e){return!1}},jy=!jj||Qt(function(){var t;return Mc(Mc.call)||!Mc(Object)||!Mc(function(){t=!0})||t})?function(t){if(!ie(t))return!1;switch(_y(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return vX||!!gX(F5,Fy(t))}:Mc,yX=Ae("species"),e7=X.Array,Nj=function(t,e){return new(function(r){var n;return Gv(r)&&(n=r.constructor,(jy(n)&&(n===e7||Gv(n.prototype))||pe(n)&&(n=n[yX])===null)&&(n=void 0)),n===void 0?e7:n}(t))(e===0?0:e)},r7=ht([].push),zc=function(t){var e=t==1,r=t==2,n=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var d,p,v=ka(s),y=Py(v),g=Wu(l,c),m=us(y),h=0,b=f||Nj,w=e?b(s,m):r||a?b(s,0):void 0;m>h;h++)if((u||h in y)&&(p=g(d=y[h],h,v),t))if(e)w[h]=p;else if(p)switch(t){case 3:return!0;case 5:return d;case 6:return h;case 2:r7(w,d)}else switch(t){case 4:return!1;case 7:r7(w,d)}return i?-1:n||o?o:w}},rc={forEach:zc(0),map:zc(1),filter:zc(2),find:zc(5),findIndex:zc(6)},Ij=function(t,e){var r=[][t];return!!r&&Qt(function(){r.call(null,e||function(){throw 1},1)})},mX=rc.forEach,_1=Ij("forEach")?[].forEach:function(t){return mX(this,t,arguments.length>1?arguments[1]:void 0)},Lj=function(t){if(t&&t.forEach!==_1)try{qn(t,"forEach",_1)}catch(e){t.forEach=_1}};for(var P1 in Wv)Wv[P1]&&Lj(X[P1]&&X[P1].prototype);Lj(_j);var n7={}.propertyIsEnumerable,o7=Object.getOwnPropertyDescriptor,bX=o7&&!n7.call({1:2},1)?function(t){var e=o7(this,t);return!!e&&e.enumerable}:n7,Rj={f:bX},Ba=function(t){return Py(Bn(t))},i7=Object.getOwnPropertyDescriptor,jp={f:ir?i7:function(t,e){if(t=Ba(t),e=k5(e),Bj)try{return i7(t,e)}catch(r){}if(Re(t,e))return By(!Kt(Rj.f,t,e),t[e])}},wX=Math.max,EX=Math.min,jl=function(t,e){var r=Pp(t);return r<0?wX(r+e,0):EX(r,e)},a7=function(t){return function(e,r,n){var o,i=Ba(e),a=us(i),u=jl(n,a);if(t&&r!=r){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===r)return t||u||0;return!t&&-1}},Mj={includes:a7(!0),indexOf:a7(!1)},DX=Mj.indexOf,u7=ht([].push),zj=function(t,e){var r,n=Ba(t),o=0,i=[];for(r in n)!Re(Ty,r)&&Re(n,r)&&u7(i,r);for(;e.length>o;)Re(n,r=e[o++])&&(~DX(i,r)||u7(i,r));return i},qv=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],CX=qv.concat("length","prototype"),Pd={f:Object.getOwnPropertyNames||function(t){return zj(t,CX)}},$j={f:Object.getOwnPropertySymbols},xX=ht([].concat),SX=as("Reflect","ownKeys")||function(t){var e=Pd.f(Me(t)),r=$j.f;return r?xX(e,r(t)):e},AX=function(t,e){for(var r=SX(e),n=to.f,o=jp.f,i=0;i<r.length;i++){var a=r[i];Re(t,a)||n(t,a,o(e,a))}},OX=/#|\.prototype\./,Np=function(t,e){var r=BX[kX(t)];return r==TX||r!=FX&&(ie(e)?Qt(e):!!e)},kX=Np.normalize=function(t){return String(t).replace(OX,".").toLowerCase()},BX=Np.data={},FX=Np.NATIVE="N",TX=Np.POLYFILL="P",jd=Np,_X=jp.f,xe=function(t,e){var r,n,o,i,a,u=t.target,s=t.global,l=t.stat;if(r=s?X:l?X[u]||C5(u,{}):(X[u]||{}).prototype)for(n in e){if(i=e[n],o=t.noTargetGet?(a=_X(r,n))&&a.value:r[n],!jd(s?n:u+(l?".":"#")+n,t.forced)&&o!==void 0){if(typeof i==typeof o)continue;AX(i,o)}(t.sham||o&&o.sham)&&qn(i,"sham",!0),Ur(r,n,i,t)}},ll=Object.keys||function(t){return zj(t,qv)},PX=Qt(function(){ll(1)});/*!
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
*
* Copyright (c) 2014-2017, Jon Schlinkert.
* Released under the MIT License.
*/function s7(t){return Object.prototype.toString.call(t)==="[object Object]"}xe({target:"Object",stat:!0,forced:PX},{keys:function(t){return ll(ka(t))}});var jX={isHistory(t){return s7(e=t)!==!1&&((r=e.constructor)===void 0||s7(n=r.prototype)!==!1&&n.hasOwnProperty("isPrototypeOf")!==!1)&&Array.isArray(t.redos)&&Array.isArray(t.undos)&&(t.redos.length===0||Ui.isOperationList(t.redos[0]))&&(t.undos.length===0||Ui.isOperationList(t.undos[0]));var e,r,n}},j1=new WeakMap,N1=new WeakMap,rl={isHistoryEditor:t=>jX.isHistory(t.history)&&E.isEditor(t),isMerging:t=>N1.get(t),isSaving:t=>j1.get(t),redo(t){t.redo()},undo(t){t.undo()},withoutMerging(t,e){var r=rl.isMerging(t);N1.set(t,!1),e(),N1.set(t,r)},withoutSaving(t,e){var r=rl.isSaving(t);j1.set(t,!1),e(),j1.set(t,r)}},NX=X.String,ue=function(t){if(_y(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return NX(t)},T5=function(){var t=Me(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},IX=tc.PROPER,J4=RegExp.prototype,Hj=J4.toString,LX=ht(T5),RX=Qt(function(){return Hj.call({source:"a",flags:"b"})!="/a/b"}),MX=IX&&Hj.name!="toString";(RX||MX)&&Ur(RegExp.prototype,"toString",function(){var t=Me(this),e=ue(t.source),r=t.flags;return"/"+e+"/"+ue(r===void 0&&Vu(J4,t)&&!("flags"in J4)?LX(t):r)},{unsafe:!0});var Th,zX=ir?Object.defineProperties:function(t,e){Me(t);for(var r,n=Ba(e),o=ll(e),i=o.length,a=0;i>a;)to.f(t,r=o[a++],n[r]);return t},Q4=as("document","documentElement"),Vj=B5("IE_PROTO"),I1=function(){},Uj=function(t){return"<script>"+t+"<\/script>"},l7=function(t){t.write(Uj("")),t.close();var e=t.parentWindow.Object;return t=null,e},Rg=function(){try{Th=new ActiveXObject("htmlfile")}catch(n){}var t,e;Rg=typeof document!="undefined"?document.domain&&Th?l7(Th):((e=_d("iframe")).style.display="none",Q4.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(Uj("document.F=Object")),t.close(),t.F):l7(Th);for(var r=qv.length;r--;)delete Rg.prototype[qv[r]];return Rg()};Ty[Vj]=!0;var Ny=Object.create||function(t,e){var r;return t!==null?(I1.prototype=Me(t),r=new I1,I1.prototype=null,r[Vj]=t):r=Rg(),e===void 0?r:zX(r,e)},tE=Ae("unscopables"),eE=Array.prototype;eE[tE]==null&&to.f(eE,tE,{configurable:!0,value:Ny(null)});var rd=function(t){eE[tE][t]=!0},$X=Mj.includes;xe({target:"Array",proto:!0},{includes:function(t){return $X(this,t,arguments.length>1?arguments[1]:void 0)}}),rd("includes");var HX=Ae("match"),_5=function(t){var e;return pe(t)&&((e=t[HX])!==void 0?!!e:Kn(t)=="RegExp")},VX=X.TypeError,P5=function(t){if(_5(t))throw VX("The method doesn't accept regular expressions");return t},UX=Ae("match"),j5=function(t){var e=/./;try{"/./"[t](e)}catch(r){try{return e[UX]=!1,"/./"[t](e)}catch(n){}}return!1},WX=ht("".indexOf);xe({target:"String",proto:!0,forced:!j5("includes")},{includes:function(t){return!!~WX(ue(Bn(this)),ue(P5(t)),arguments.length>1?arguments[1]:void 0)}});var GX=/"/g,qX=ht("".replace);xe({target:"String",proto:!0,forced:Qt(function(){var t="".anchor('"');return t!==t.toLowerCase()||t.split('"').length>3})},{anchor:function(t){return e=t,r=ue(Bn(this)),n="<a",(n+=' name="'+qX(ue(e),GX,"&quot;")+'"')+">"+r+"</a>";var e,r,n}});var rE=function(t,e,r){var n,o;Me(t);try{if(!(n=Uu(t,"return"))){if(e==="throw")throw r;return r}n=Kt(n,t)}catch(i){o=!0,n=i}if(e==="throw")throw r;if(o)throw n;return Me(n),r},KX=function(t,e,r,n){try{return n?e(Me(r)[0],r[1]):e(r)}catch(o){rE(t,"throw",o)}},Nl={},YX=Ae("iterator"),XX=Array.prototype,Wj=function(t){return t!==void 0&&(Nl.Array===t||XX[YX]===t)},Nd=function(t,e,r){var n=k5(e);n in t?to.f(t,n,By(0,r)):t[n]=r},ZX=Ae("iterator"),N5=function(t){if(t!=null)return Uu(t,ZX)||Uu(t,"@@iterator")||Nl[_y(t)]},JX=X.TypeError,Gj=function(t,e){var r=arguments.length<2?N5(t):e;if(ya(r))return Me(Kt(r,t));throw JX(ky(t)+" is not iterable")},c7=X.Array,qj=Ae("iterator"),Kj=!1;try{var QX=0,f7={next:function(){return{done:!!QX++}},return:function(){Kj=!0}};f7[qj]=function(){return this},Array.from(f7,function(){throw 2})}catch(t){}var I5=function(t,e){if(!Kj)return!1;var r=!1;try{var n={};n[qj]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch(o){}return r},tZ=!I5(function(t){Array.from(t)});xe({target:"Array",stat:!0,forced:tZ},{from:function(t){var e=ka(t),r=jy(this),n=arguments.length,o=n>1?arguments[1]:void 0,i=o!==void 0;i&&(o=Wu(o,n>2?arguments[2]:void 0));var a,u,s,l,c,f,d=N5(e),p=0;if(!d||this==c7&&Wj(d))for(a=us(e),u=r?new this(a):c7(a);a>p;p++)f=i?o(e[p],p):e[p],Nd(u,p,f);else for(c=(l=Gj(e,d)).next,u=r?new this:[];!(s=Kt(c,l)).done;p++)f=i?KX(l,o,[s.value,p],!0):s.value,Nd(u,p,f);return u.length=p,u}});var Eu,d7,p7,eZ=ht("".charAt),h7=ht("".charCodeAt),rZ=ht("".slice),nZ=function(t){return function(e,r){var n,o,i=ue(Bn(e)),a=Pp(r),u=i.length;return a<0||a>=u?t?"":void 0:(n=h7(i,a))<55296||n>56319||a+1===u||(o=h7(i,a+1))<56320||o>57343?t?eZ(i,a):n:t?rZ(i,a,a+2):o-56320+(n-55296<<10)+65536}},Yj={charAt:nZ(!0)},oZ=!Qt(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),g7=B5("IE_PROTO"),nE=X.Object,iZ=nE.prototype,Kv=oZ?nE.getPrototypeOf:function(t){var e=ka(t);if(Re(e,g7))return e[g7];var r=e.constructor;return ie(r)&&e instanceof r?r.prototype:e instanceof nE?iZ:null},oE=Ae("iterator"),Xj=!1;[].keys&&("next"in(p7=[].keys())?(d7=Kv(Kv(p7)))!==Object.prototype&&(Eu=d7):Xj=!0);var aZ=Eu==null||Qt(function(){var t={};return Eu[oE].call(t)!==t});aZ&&(Eu={}),ie(Eu[oE])||Ur(Eu,oE,function(){return this});var L5={IteratorPrototype:Eu,BUGGY_SAFARI_ITERATORS:Xj},uZ=to.f,v7=Ae("toStringTag"),Yv=function(t,e,r){t&&!Re(t=r?t:t.prototype,v7)&&uZ(t,v7,{configurable:!0,value:e})},sZ=L5.IteratorPrototype,lZ=function(){return this},cZ=X.String,fZ=X.TypeError,Il=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=ht(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),e=r instanceof Array}catch(n){}return function(n,o){return Me(n),function(i){if(typeof i=="object"||ie(i))return i;throw fZ("Can't set "+cZ(i)+" as a prototype")}(o),e?t(n,o):n.__proto__=o,n}}():void 0),dZ=tc.PROPER,pZ=tc.CONFIGURABLE,y7=L5.IteratorPrototype,_h=L5.BUGGY_SAFARI_ITERATORS,$c=Ae("iterator"),hZ=function(){return this},R5=function(t,e,r,n,o,i,a){(function(m,h,b,w){var D=h+" Iterator";m.prototype=Ny(sZ,{next:By(1,b)}),Yv(m,D,!1),Nl[D]=lZ})(r,e,n);var u,s,l,c=function(m){if(m===o&&y)return y;if(!_h&&m in p)return p[m];switch(m){case"keys":case"values":case"entries":return function(){return new r(this,m)}}return function(){return new r(this)}},f=e+" Iterator",d=!1,p=t.prototype,v=p[$c]||p["@@iterator"]||o&&p[o],y=!_h&&v||c(o),g=e=="Array"&&p.entries||v;if(g&&(u=Kv(g.call(new t)))!==Object.prototype&&u.next&&(Kv(u)!==y7&&(Il?Il(u,y7):ie(u[$c])||Ur(u,$c,hZ)),Yv(u,f,!0)),dZ&&o=="values"&&v&&v.name!=="values"&&(pZ?qn(p,"name","values"):(d=!0,y=function(){return Kt(v,this)})),o)if(s={values:c("values"),keys:i?y:c("keys"),entries:c("entries")},a)for(l in s)(_h||d||!(l in p))&&Ur(p,l,s[l]);else xe({target:e,proto:!0,forced:_h||d},s);return p[$c]!==y&&Ur(p,$c,y,{name:o}),Nl[e]=y,s},gZ=Yj.charAt,vZ=Sr.set,yZ=Sr.getterFor("String Iterator");R5(String,"String",function(t){vZ(this,{type:"String Iterator",string:ue(t),index:0})},function(){var t,e=yZ(this),r=e.string,n=e.index;return n>=r.length?{value:void 0,done:!0}:(t=gZ(r,n),e.index+=t.length,{value:t,done:!1})});var L1,mZ=jp.f,m7=ht("".endsWith),bZ=ht("".slice),wZ=Math.min,Zj=j5("endsWith"),EZ=!(Zj||(L1=mZ(String.prototype,"endsWith"),!L1||L1.writable));xe({target:"String",proto:!0,forced:!EZ&&!Zj},{endsWith:function(t){var e=ue(Bn(this));P5(t);var r=arguments.length>1?arguments[1]:void 0,n=e.length,o=r===void 0?n:wZ(ec(r),n),i=ue(t);return m7?m7(e,i,o):bZ(e,o-i.length,o)===i}});var DZ=ht([].join),CZ=Py!=Object,xZ=Ij("join",",");xe({target:"Array",proto:!0,forced:CZ||!xZ},{join:function(t){return DZ(Ba(this),t===void 0?",":t)}});var SZ=Ae("species"),Iy=function(t){return Td>=51||!Qt(function(){var e=[];return(e.constructor={})[SZ]=function(){return{foo:1}},e[t](Boolean).foo!==1})},AZ=rc.map,OZ=Iy("map");xe({target:"Array",proto:!0,forced:!OZ},{map:function(t){return AZ(this,t,arguments.length>1?arguments[1]:void 0)}});var M5=X.RegExp,iE=Qt(function(){var t=M5("a","y");return t.lastIndex=2,t.exec("abcd")!=null}),kZ=iE||Qt(function(){return!M5("a","y").sticky}),Ly={BROKEN_CARET:iE||Qt(function(){var t=M5("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),MISSED_STICKY:kZ,UNSUPPORTED_Y:iE},BZ=X.RegExp,z5=Qt(function(){var t=BZ(".","s");return!(t.dotAll&&t.exec(`
`)&&t.flags==="s")}),FZ=X.RegExp,$5=Qt(function(){var t=FZ("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),TZ=Sr.get,_Z=x5("native-string-replace",String.prototype.replace),Xv=RegExp.prototype.exec,aE=Xv,PZ=ht("".charAt),jZ=ht("".indexOf),NZ=ht("".replace),R1=ht("".slice),M1=function(){var t=/a/,e=/b*/g;return Kt(Xv,t,"a"),Kt(Xv,e,"a"),t.lastIndex!==0||e.lastIndex!==0}(),b7=Ly.BROKEN_CARET,z1=/()??/.exec("")[1]!==void 0;(M1||z1||b7||z5||$5)&&(aE=function(t){var e,r,n,o,i,a,u,s=this,l=TZ(s),c=ue(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=Kt(aE,f,c),s.lastIndex=f.lastIndex,e;var d=l.groups,p=b7&&s.sticky,v=Kt(T5,s),y=s.source,g=0,m=c;if(p&&(v=NZ(v,"y",""),jZ(v,"g")===-1&&(v+="g"),m=R1(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&PZ(c,s.lastIndex-1)!==`
`)&&(y="(?: "+y+")",m=" "+m,g++),r=new RegExp("^(?:"+y+")",v)),z1&&(r=new RegExp("^"+y+"$(?!\\s)",v)),M1&&(n=s.lastIndex),o=Kt(Xv,p?r:s,m),p?o?(o.input=R1(o.input,g),o[0]=R1(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:M1&&o&&(s.lastIndex=s.global?o.index+o[0].length:n),z1&&o&&o.length>1&&Kt(_Z,o[0],r,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&d)for(o.groups=a=Ny(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var Id=aE;xe({target:"RegExp",proto:!0,forced:/./.exec!==Id},{exec:Id});var H5=Function.prototype,w7=H5.apply,IZ=H5.bind,E7=H5.call,V5=typeof Reflect=="object"&&Reflect.apply||(IZ?E7.bind(w7):function(){return E7.apply(w7,arguments)}),LZ=Ae("species"),$1=RegExp.prototype,U5=function(t,e,r,n){var o=Ae(t),i=!Qt(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),a=i&&!Qt(function(){var l=!1,c=/a/;return t==="split"&&((c={}).constructor={},c.constructor[LZ]=function(){return c},c.flags="",c[o]=/./[o]),c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||r){var u=ht(/./[o]),s=e(o,""[t],function(l,c,f,d,p){var v=ht(l),y=c.exec;return y===Id||y===$1.exec?i&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:v(f,c,d)}:{done:!1}});Ur(String.prototype,t,s[0]),Ur($1,o,s[1])}n&&qn($1[o],"sham",!0)},RZ=Yj.charAt,W5=function(t,e,r){return e+(r?RZ(t,e).length:1)},MZ=Math.floor,H1=ht("".charAt),zZ=ht("".replace),V1=ht("".slice),$Z=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,HZ=/\$([$&'`]|\d{1,2})/g,VZ=function(t,e,r,n,o,i){var a=r+t.length,u=n.length,s=HZ;return o!==void 0&&(o=ka(o),s=$Z),zZ(i,s,function(l,c){var f;switch(H1(c,0)){case"$":return"$";case"&":return t;case"`":return V1(e,0,r);case"'":return V1(e,a);case"<":f=o[V1(c,1,-1)];break;default:var d=+c;if(d===0)return l;if(d>u){var p=MZ(d/10);return p===0?l:p<=u?n[p-1]===void 0?H1(c,1):n[p-1]+H1(c,1):l}f=n[d-1]}return f===void 0?"":f})},UZ=X.TypeError,Ld=function(t,e){var r=t.exec;if(ie(r)){var n=Kt(r,t,e);return n!==null&&Me(n),n}if(Kn(t)==="RegExp")return Kt(Id,t,e);throw UZ("RegExp#exec called on incompatible receiver")},uE=Ae("replace"),WZ=Math.max,GZ=Math.min,qZ=ht([].concat),U1=ht([].push),D7=ht("".indexOf),C7=ht("".slice),KZ="a".replace(/./,"$0")==="$0",x7=!!/./[uE]&&/./[uE]("a","$0")==="";U5("replace",function(t,e,r){var n=x7?"$":"$0";return[function(o,i){var a=Bn(this),u=o==null?void 0:Uu(o,uE);return u?Kt(u,o,a,i):Kt(e,ue(a),o,i)},function(o,i){var a=Me(this),u=ue(o);if(typeof i=="string"&&D7(i,n)===-1&&D7(i,"$<")===-1){var s=r(e,a,u,i);if(s.done)return s.value}var l=ie(i);l||(i=ue(i));var c=a.global;if(c){var f=a.unicode;a.lastIndex=0}for(var d=[];;){var p=Ld(a,u);if(p===null||(U1(d,p),!c))break;ue(p[0])===""&&(a.lastIndex=W5(u,ec(a.lastIndex),f))}for(var v,y="",g=0,m=0;m<d.length;m++){for(var h=ue((p=d[m])[0]),b=WZ(GZ(Pp(p.index),u.length),0),w=[],D=1;D<p.length;D++)U1(w,(v=p[D])===void 0?v:String(v));var x=p.groups;if(l){var C=qZ([h],w,b,u);x!==void 0&&U1(C,x);var O=ue(V5(i,void 0,C))}else O=VZ(h,u,b,w,x,i);b>=g&&(y+=C7(u,g,b)+O,g=b+h.length)}return y+C7(u,g)}]},!!Qt(function(){var t=/./;return t.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(t,"$<a>")!=="7"})||!KZ||x7);/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var sE=function(t,e){return sE=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])},sE(t,e)};function nc(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}sE(t,e),t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var wn=function(){return wn=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},wn.apply(this,arguments)};function En(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Vt(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(e===void 0||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(u){o={error:u}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function lE(t,e){for(var r=0,n=e.length,o=t.length;r<n;r++,o++)t[o]=e[r];return t}var YZ=0,S7=function(){this.id=""+YZ++},XZ=Sr.set,ZZ=Sr.getterFor("Array Iterator"),Uf=R5(Array,"Array",function(t,e){XZ(this,{type:"Array Iterator",target:Ba(t),index:0,kind:e})},function(){var t=ZZ(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):r=="keys"?{value:n,done:!1}:r=="values"?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}},"values");Nl.Arguments=Nl.Array,rd("keys"),rd("values"),rd("entries");var Ll=function(t,e,r){for(var n in e)Ur(t,n,e[n],r);return t},JZ=X.Array,QZ=Math.max,cE=function(t,e,r){for(var n=us(t),o=jl(e,n),i=jl(r===void 0?n:r,n),a=JZ(QZ(i-o,0)),u=0;o<i;o++,u++)Nd(a,u,t[o]);return a.length=u,a},A7=Pd.f,O7=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],tJ={f:function(t){return O7&&Kn(t)=="Window"?function(e){try{return A7(e)}catch(r){return cE(O7)}}(t):A7(Ba(t))}},k7=Qt(function(){if(typeof ArrayBuffer=="function"){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}),Ph=Object.isExtensible,cu=Qt(function(){Ph(1)})||k7?function(t){return!!pe(t)&&(!k7||Kn(t)!="ArrayBuffer")&&(!Ph||Ph(t))}:Ph,eJ=!Qt(function(){return Object.isExtensible(Object.preventExtensions({}))}),Ry=_p(function(t){var e=to.f,r=!1,n=S5("meta"),o=0,i=function(u){e(u,n,{value:{objectID:"O"+o++,weakData:{}}})},a=t.exports={enable:function(){a.enable=function(){},r=!0;var u=Pd.f,s=ht([].splice),l={};l[n]=1,u(l).length&&(Pd.f=function(c){for(var f=u(c),d=0,p=f.length;d<p;d++)if(f[d]===n){s(f,d,1);break}return f},xe({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:tJ.f}))},fastKey:function(u,s){if(!pe(u))return typeof u=="symbol"?u:(typeof u=="string"?"S":"P")+u;if(!Re(u,n)){if(!cu(u))return"F";if(!s)return"E";i(u)}return u[n].objectID},getWeakData:function(u,s){if(!Re(u,n)){if(!cu(u))return!0;if(!s)return!1;i(u)}return u[n].weakData},onFreeze:function(u){return eJ&&r&&cu(u)&&!Re(u,n)&&i(u),u}};Ty[n]=!0}),rJ=X.TypeError,Mg=function(t,e){this.stopped=t,this.result=e},B7=Mg.prototype,Rd=function(t,e,r){var n,o,i,a,u,s,l,c=r&&r.that,f=!(!r||!r.AS_ENTRIES),d=!(!r||!r.IS_ITERATOR),p=!(!r||!r.INTERRUPTED),v=Wu(e,c),y=function(m){return n&&rE(n,"normal",m),new Mg(!0,m)},g=function(m){return f?(Me(m),p?v(m[0],m[1],y):v(m[0],m[1])):p?v(m,y):v(m)};if(d)n=t;else{if(!(o=N5(t)))throw rJ(ky(t)+" is not iterable");if(Wj(o)){for(i=0,a=us(t);a>i;i++)if((u=g(t[i]))&&Vu(B7,u))return u;return new Mg(!1)}n=Gj(t,o)}for(s=n.next;!(l=Kt(s,n)).done;){try{u=g(l.value)}catch(m){rE(n,"throw",m)}if(typeof u=="object"&&u&&Vu(B7,u))return u}return new Mg(!1)},nJ=X.TypeError,My=function(t,e){if(Vu(e,t))return t;throw nJ("Incorrect invocation")},Jj=function(t,e,r){var n,o;return Il&&ie(n=e.constructor)&&n!==r&&pe(o=n.prototype)&&o!==r.prototype&&Il(t,o),t},Qj=function(t,e,r){var n=t.indexOf("Map")!==-1,o=t.indexOf("Weak")!==-1,i=n?"set":"add",a=X[t],u=a&&a.prototype,s=a,l={},c=function(g){var m=ht(u[g]);Ur(u,g,g=="add"?function(h){return m(this,h===0?0:h),this}:g=="delete"?function(h){return!(o&&!pe(h))&&m(this,h===0?0:h)}:g=="get"?function(h){return o&&!pe(h)?void 0:m(this,h===0?0:h)}:g=="has"?function(h){return!(o&&!pe(h))&&m(this,h===0?0:h)}:function(h,b){return m(this,h===0?0:h,b),this})};if(jd(t,!ie(a)||!(o||u.forEach&&!Qt(function(){new a().entries().next()}))))s=r.getConstructor(e,t,n,i),Ry.enable();else if(jd(t,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=Qt(function(){f.has(1)}),v=I5(function(g){new a(g)}),y=!o&&Qt(function(){for(var g=new a,m=5;m--;)g[i](m,m);return!g.has(-0)});v||((s=e(function(g,m){My(g,u);var h=Jj(new a,g,s);return m!=null&&Rd(m,h[i],{that:h,AS_ENTRIES:n}),h})).prototype=u,u.constructor=s),(p||y)&&(c("delete"),c("has"),n&&c("get")),(y||d)&&c(i),o&&u.clear&&delete u.clear}return l[t]=s,xe({global:!0,forced:s!=a},l),Yv(s,t),o||r.setStrong(s,t,n),s},jh=Ry.getWeakData,oJ=Sr.set,iJ=Sr.getterFor,aJ=rc.find,uJ=rc.findIndex,sJ=ht([].splice),lJ=0,Nh=function(t){return t.frozen||(t.frozen=new tN)},tN=function(){this.entries=[]},W1=function(t,e){return aJ(t.entries,function(r){return r[0]===e})};tN.prototype={get:function(t){var e=W1(this,t);if(e)return e[1]},has:function(t){return!!W1(this,t)},set:function(t,e){var r=W1(this,t);r?r[1]=e:this.entries.push([t,e])},delete:function(t){var e=uJ(this.entries,function(r){return r[0]===t});return~e&&sJ(this.entries,e,1),!!~e}};var Hc,eN={getConstructor:function(t,e,r,n){var o=t(function(s,l){My(s,i),oJ(s,{type:e,id:lJ++,frozen:void 0}),l!=null&&Rd(l,s[n],{that:s,AS_ENTRIES:r})}),i=o.prototype,a=iJ(e),u=function(s,l,c){var f=a(s),d=jh(Me(l),!0);return d===!0?Nh(f).set(l,c):d[f.id]=c,s};return Ll(i,{delete:function(s){var l=a(this);if(!pe(s))return!1;var c=jh(s);return c===!0?Nh(l).delete(s):c&&Re(c,l.id)&&delete c[l.id]},has:function(s){var l=a(this);if(!pe(s))return!1;var c=jh(s);return c===!0?Nh(l).has(s):c&&Re(c,l.id)}}),Ll(i,r?{get:function(s){var l=a(this);if(pe(s)){var c=jh(s);return c===!0?Nh(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}},Ih=Sr.enforce,cJ=!X.ActiveXObject&&"ActiveXObject"in X,rN=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},fJ=Qj("WeakMap",rN,eN);if(Fj&&cJ){Hc=eN.getConstructor(rN,"WeakMap",!0),Ry.enable();var Vc=fJ.prototype,F7=ht(Vc.delete),Lh=ht(Vc.has),T7=ht(Vc.get),_7=ht(Vc.set);Ll(Vc,{delete:function(t){if(pe(t)&&!cu(t)){var e=Ih(this);return e.frozen||(e.frozen=new Hc),F7(this,t)||e.frozen.delete(t)}return F7(this,t)},has:function(t){if(pe(t)&&!cu(t)){var e=Ih(this);return e.frozen||(e.frozen=new Hc),Lh(this,t)||e.frozen.has(t)}return Lh(this,t)},get:function(t){if(pe(t)&&!cu(t)){var e=Ih(this);return e.frozen||(e.frozen=new Hc),Lh(this,t)?T7(this,t):e.frozen.get(t)}return T7(this,t)},set:function(t,e){if(pe(t)&&!cu(t)){var r=Ih(this);r.frozen||(r.frozen=new Hc),Lh(this,t)?_7(this,t,e):r.frozen.set(t,e)}else _7(this,t,e);return this}})}var G1=Ae("iterator"),P7=Ae("toStringTag"),q1=Uf.values,nN=function(t,e){if(t){if(t[G1]!==q1)try{qn(t,G1,q1)}catch(n){t[G1]=q1}if(t[P7]||qn(t,P7,e),Wv[e]){for(var r in Uf)if(t[r]!==Uf[r])try{qn(t,r,Uf[r])}catch(n){t[r]=Uf[r]}}}};for(var K1 in Wv)nN(X[K1]&&X[K1].prototype,K1);nN(_j,"DOMTokenList");var fE=new WeakMap,dE=new WeakMap,G5=new WeakMap,zy=new WeakMap,pE=new WeakMap,Zv=new WeakMap,q5=new WeakMap,hE=new WeakMap,zg=new WeakMap,j7=new WeakMap,N7=new WeakMap,I7=new WeakMap,L7=new WeakMap,Md=new WeakMap,Rl=new WeakMap,K5=new WeakMap,Jv=new WeakMap,gE=new WeakMap,Qv=new WeakMap,$g=new WeakMap,oN=new WeakMap,Du=new WeakMap,Y1=new WeakMap,R7=new WeakMap,X1=new WeakMap,dJ=rc.find,M7=!0;"find"in[]&&Array(1).find(function(){M7=!1}),xe({target:"Array",proto:!0,forced:M7},{find:function(t){return dJ(this,t,arguments.length>1?arguments[1]:void 0)}}),rd("find"),xe({global:!0},{globalThis:X});const pJ=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","isindex","keygen","link","menuitem","meta","nextid","param","source","track","wbr"];Lv&&(B.fn.css=Lv),kn&&(B.fn.append=kn),Cl&&(B.fn.addClass=Cl),xl&&(B.fn.removeClass=xl),Sl&&(B.fn.hasClass=Sl),ko&&(B.fn.on=ko),va&&(B.fn.focus=va),On&&(B.fn.attr=On),Pv&&(B.fn.removeAttr=Pv),Ol&&(B.fn.hide=Ol),Iv&&(B.fn.show=Iv),eA&&(B.fn.offset=eA),jv&&(B.fn.width=jv),Nv&&(B.fn.height=Nv),kl&&(B.fn.parent=kl),zv&&(B.fn.parents=zv),nA&&(B.fn.is=nA),Al&&(B.fn.dataset=Al),Oo&&(B.fn.val=Oo),Mv&&(B.fn.text=Mv),ga&&(B.fn.html=ga),Fl&&(B.fn.children=Fl),Tl&&(B.fn.remove=Tl),Bl&&(B.fn.find=Bl),Rv&&(B.fn.each=Rv),_l&&(B.fn.empty=_l);var go,Dr,Y5=function(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView||null},zn=function(t){return Gu(t)&&t.nodeType===1},Gu=function(t){var e=Y5(t);return!!e&&t instanceof e.Node},z7=function(t){var e=t&&t.anchorNode&&Y5(t.anchorNode);return!!e&&t instanceof e.Selection},iN=function(t){return Gu(t)&&t.nodeType===3},vE=function(t){var e,r,n;return(e=window.document.getElementById(t))!==null&&e!==void 0?e:((n=(r=window.document.activeElement)===null||r===void 0?void 0:r.shadowRoot)===null||n===void 0?void 0:n.getElementById(t))||null},aN=function(t,e,r){for(var n,o=t.childNodes,i=o[e],a=e,u=!1,s=!1;(Gu(n=i)&&n.nodeType===8||zn(i)&&i.childNodes.length===0||zn(i)&&i.getAttribute("contenteditable")==="false")&&(!u||!s);)a>=o.length?(u=!0,a=e-1,r="backward"):a<0?(s=!0,a=e+1,r="forward"):(i=o[a],e=a,a+=r==="forward"?1:-1);return[i,e]},hJ=function(t,e,r){return Vt(aN(t,e,r),1)[0]},gJ=function t(e){var r,n,o="";if(iN(e)&&e.nodeValue)return e.nodeValue;if(zn(e)){try{for(var i=En(Array.from(e.childNodes)),a=i.next();!a.done;a=i.next())o+=t(a.value)}catch(s){r={error:s}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}var u=getComputedStyle(e).getPropertyValue("display");u!=="block"&&u!=="list"&&u!=="table-row"&&e.tagName!=="BR"||(o+=`
`)}return o};function uN(t,e){if(!(t instanceof HTMLElement&&t.dataset.slateVoid==="true"))for(var r=t.childNodes,n=r.length;n--;){var o=r[n],i=o.nodeType;i==3?e(o,t):i!=1&&i!=9&&i!=11||uN(o,e)}}function $7(t){if(t.length===0)return"";var e=t[0];return e.nodeType!==go.ELEMENT_NODE?"":e.tagName.toLowerCase()}(Dr=go||(go={}))[Dr.ELEMENT_NODE=1]="ELEMENT_NODE",Dr[Dr.TEXT_NODE=3]="TEXT_NODE",Dr[Dr.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",Dr[Dr.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",Dr[Dr.COMMENT_NODE=8]="COMMENT_NODE",Dr[Dr.DOCUMENT_NODE=9]="DOCUMENT_NODE",Dr[Dr.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",Dr[Dr.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE";var yE=typeof navigator!="undefined"&&/Mac OS X/.test(navigator.userAgent),nd=typeof navigator!="undefined"&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),Uc=typeof navigator!="undefined"&&/Version\/[\d\.]+.*Safari/.test(navigator.userAgent),vJ=typeof navigator!="undefined"&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),yJ=typeof navigator!="undefined"&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),mE=typeof navigator!="undefined"&&/Chrome/i.test(navigator.userAgent),Wc=!yJ&&!vJ&&typeof globalThis!="undefined"&&globalThis.InputEvent&&typeof globalThis.InputEvent.prototype.getTargetRanges=="function",A={getWindow:function(t){var e=oN.get(t);if(!e)throw new Error("Unable to find a host window element for this editor");return e},findKey:function(t,e){var r=$g.get(e);return r||(r=new S7,$g.set(e,r)),r},setNewKey:function(t){var e=new S7;$g.set(t,e)},findPath:function(t,e){for(var r=[],n=e;;){var o=Rl.get(n);if(o==null){if(E.isEditor(n))return r;break}var i=Md.get(n);if(i==null)break;r.unshift(i),n=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),r=e.getRootNode();return(r instanceof Document||r instanceof ShadowRoot)&&r.getSelection!=null?r:e.ownerDocument},getParentNode:function(t,e){return Rl.get(e)||null},getParentsNodes:function(t,e){for(var r=[],n=e;n!==t&&n!=null;){var o=A.getParentNode(t,n);if(o==null)break;r.push(o),n=o}return r},getTopNode:function(t,e){var r=[A.findPath(t,e)[0]];return Q.get(t,r)},toDOMNode:function(t,e){var r;if(E.isEditor(e))r=K5.get(t);else{var n=A.findKey(t,e);r=gE.get(n)}if(!r)throw new Error("Cannot resolve a DOM node from Slate node: "+JSON.stringify(e));return r},hasDOMNode:function(t,e,r){r===void 0&&(r={});var n,o=r.editable,i=o!==void 0&&o,a=A.toDOMNode(t,t);try{n=zn(e)?e:e.parentElement}catch(u){if(!u.message.includes('Permission denied to access property "nodeType"'))throw u}return!!n&&n.closest("[data-slate-editor]")===a&&(!i||n.isContentEditable||!!n.getAttribute("data-slate-zero-width"))},toDOMRange:function(t,e){var r=e.anchor,n=e.focus,o=L.isBackward(e),i=A.toDOMPoint(t,r),a=L.isCollapsed(e)?i:A.toDOMPoint(t,n),u=A.getWindow(t).document.createRange(),s=Vt(o?a:i,2),l=s[0],c=s[1],f=Vt(o?i:a,2),d=f[0],p=f[1],v=!!(zn(l)?l:l.parentElement).getAttribute("data-slate-zero-width"),y=!!(zn(d)?d:d.parentElement).getAttribute("data-slate-zero-width");return u.setStart(l,v?1:c),u.setEnd(d,y?1:p),u},toDOMPoint:function(t,e){var r,n,o,i=Vt(E.node(t,e.path),1)[0],a=A.toDOMNode(t,i);E.void(t,{at:e})&&(e={path:e.path,offset:0});var u=Array.from(a.querySelectorAll("[data-slate-string], [data-slate-zero-width]")),s=0;try{for(var l=En(u),c=l.next();!c.done;c=l.next()){var f=c.value,d=f.childNodes[0];if(d!=null&&d.textContent!=null){var p=d.textContent.length,v=f.getAttribute("data-slate-length"),y=s+(v==null?p:parseInt(v,10));if(e.offset<=y){o=[d,Math.min(p,Math.max(0,e.offset-s))];break}s=y}}}catch(g){r={error:g}}finally{try{c&&!c.done&&(n=l.return)&&n.call(l)}finally{if(r)throw r.error}}if(!o)throw new Error("Cannot resolve a DOM point from Slate point: "+JSON.stringify(e));return o},toSlateNode:function(t,e){var r=zn(e)?e:e.parentElement;r&&!r.hasAttribute("data-slate-node")&&(r=r.closest("[data-slate-node]"));var n=r?Jv.get(r):null;if(!n)throw new Error("Cannot resolve a Slate node from DOM node: "+r);return n},findEventRange:function(t,e){"nativeEvent"in e&&(e=e.nativeEvent);var r=e.clientX,n=e.clientY,o=e.target;if(r==null||n==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(E.isVoid(t,a)){var s=o.getBoundingClientRect(),l=t.isInline(a)?r-s.left<s.left+s.width-r:n-s.top<s.top+s.height-n,c=E.point(t,u,{edge:l?"start":"end"}),f=l?E.before(t,c):E.after(t,c);if(f)return E.range(t,f)}var d=this.getWindow(t).document;if(d.caretRangeFromPoint)i=d.caretRangeFromPoint(r,n);else{var p=d.caretPositionFromPoint(r,n);p&&((i=d.createRange()).setStart(p.offsetNode,p.offset),i.setEnd(p.offsetNode,p.offset))}if(!i)throw new Error("Cannot resolve a Slate range from a DOM event: "+e);return A.toSlateRange(t,i,{exactMatch:!1,suppressThrow:!1})},toSlateRange:function(t,e,r){var n,o,i,a,u,s=r.exactMatch,l=r.suppressThrow;if((z7(e)?e.anchorNode:e.startContainer)&&(z7(e)?(n=e.anchorNode,o=e.anchorOffset,i=e.focusNode,a=e.focusOffset,u=mE&&window.document.activeElement&&window.document.activeElement.shadowRoot?e.anchorNode===e.focusNode&&e.anchorOffset===e.focusOffset:e.isCollapsed):(n=e.startContainer,o=e.startOffset,i=e.endContainer,a=e.endOffset,u=e.collapsed)),n==null||i==null||o==null||a==null)throw new Error("Cannot resolve a Slate range from DOM range: "+e);var c=A.toSlatePoint(t,[n,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 d={anchor:c,focus:f};return L.isExpanded(d)&&L.isForward(d)&&zn(i)&&E.void(t,{at:d.focus,mode:"highest"})&&(d=E.unhangRange(t,d,{voids:!0})),d},toSlatePoint:function(t,e,r){var n,o=r.exactMatch,i=r.suppressThrow,a=Vt(o?e:function(h){var b,w=Vt(h,2),D=w[0],x=w[1];if(zn(D)&&D.childNodes.length){var C=x===D.childNodes.length,O=C?x-1:x;for(D=(b=Vt(aN(D,O,C?"backward":"forward"),2))[0],C=(O=b[1])<x;zn(D)&&D.childNodes.length;){var T=C?D.childNodes.length-1:0;D=hJ(D,T,C?"backward":"forward")}x=C&&D.textContent!=null?D.textContent.length:0}return[D,x]}(e),2),u=a[0],s=a[1],l=u.parentNode,c=null,f=0;if(l){var d=l.closest('[data-slate-void="true"]'),p=l.closest("[data-slate-leaf]"),v=null;if(p){c=p.closest('[data-slate-node="text"]');var y=A.getWindow(t).document.createRange();y.setStart(c,0),y.setEnd(u,s);var g=y.cloneContents();lE(lE([],Vt(JS(g.querySelectorAll("[data-slate-zero-width]")))),Vt(JS(g.querySelectorAll("[contenteditable=false]")))).forEach(function(h){h.parentNode.removeChild(h)}),f=g.textContent.length,v=c}else d&&((p=d.querySelector("[data-slate-leaf]"))?(c=p.closest('[data-slate-node="text"]'),f=(v=p).textContent.length,v.querySelectorAll("[data-slate-zero-width]").forEach(function(h){f-=h.textContent.length})):f=1);v&&f===v.textContent.length&&(l.hasAttribute("data-slate-zero-width")||nd&&(!((n=v.textContent)===null||n===void 0)&&n.endsWith(`
`)))&&f--}if(!c){if(i)return null;throw new Error("Cannot resolve a Slate point from DOM point: "+e)}var m=A.toSlateNode(t,c);return{path:A.findPath(t,m),offset:f}},hasRange:function(t,e){var r=e.anchor,n=e.focus;return E.hasPath(t,r.path)&&E.hasPath(t,n.path)},getNodeType:function(t){return ft.isElement(t)?t.type:""},checkNodeType:function(t,e){return this.getNodeType(t)===e},getNodesStr:function(t){return t.map(function(e){return Q.string(e)}).join("")},getSelectedElems:function(t){var e,r,n=[],o=E.nodes(t,{universal:!0});try{for(var i=En(o),a=i.next();!a.done;a=i.next()){var u=Vt(a.value,1)[0];ft.isElement(u)&&n.push(u)}}catch(s){e={error:s}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(e)throw e.error}}return n},getSelectedNodeByType:function(t,e){var r=this,n=Vt(E.nodes(t,{match:function(i){return r.checkNodeType(i,e)},universal:!0}),1),o=n[0];return o==null?null:o[0]},getSelectedTextNode:function(t){var e=Vt(E.nodes(t,{match:function(n){return it.isText(n)},universal:!0}),1),r=e[0];return r==null?null:r[0]},isNodeSelected:function(t,e){var r=Vt(E.nodes(t,{match:function(o){return o===e},universal:!0}),1),n=r[0];return n!=null&&Vt(n,1)[0]===e},isSelectionAtLineEnd:function(t,e){var r=t.selection;return!!r&&(E.isEnd(t,r.anchor,e)||E.isEnd(t,r.focus,e))},getTextarea:function(t){var e=fE.get(t);if(e==null)throw new Error("Cannot find textarea instance by editor");return e},getToolbar:function(t){return zy.get(t)||null},getHoverbar:function(t){return Zv.get(t)||null},normalizeContent:function(t){t.children.forEach(function(e,r){t.normalizeNode([e,[r]])})},getLeftLengthOfMaxLength:function(t){var e=t.getConfig(),r=e.maxLength,n=e.onMaxLength;if(typeof r!="number"||r<=0)return 1/0;var o=r-t.getText().replace(/\r|\n|(\r\n)/g,"").length;return o<=0&&n&&n(t),o},cleanExposedTexNodeInSelectionBlock:function(t){var e,r,n,o,i=A.getTextarea(t).$textArea,a=i==null?void 0:i[0].childNodes;if(a)try{for(var u=En(Array.from(a)),s=u.next();!s.done;s=u.next()){var l=s.value;if(l.nodeType!==3)break;l.remove()}}catch(y){e={error:y}}finally{try{s&&!s.done&&(r=u.return)&&r.call(u)}finally{if(e)throw e.error}}var c=E.nodes(t,{match:function(y){return!(!ft.isElement(y)||t.isInline(y))},universal:!0});try{for(var f=En(c),d=f.next();!d.done;d=f.next()){var p=d.value;if(p!=null){var v=p[0];uN(A.toDOMNode(t,v),function(y,g){var m=B(g);m.attr("data-slate-string")||m.attr("data-slate-zero-width")||m.attr("data-w-e-reserve")||g.removeChild(y)})}}}catch(y){n={error:y}}finally{try{d&&!d.done&&(o=f.return)&&o.call(f)}finally{if(n)throw n.error}}},isLastNode:function(t,e){var r=t.children||[];return r[r.length-1]===e},genEmptyParagraph:function(){return{type:"paragraph",children:[{text:""}]}},isSelectedVoidNode:function(t){var e,r,n=E.nodes(t,{match:function(u){return t.isVoid(u)}}),o=0;try{for(var i=En(n),a=i.next();!a.done;a=i.next())a.value,o++}catch(u){e={error:u}}finally{try{a&&!a.done&&(r=i.return)&&r.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 r=A.getSelectedNodeByType(t,"paragraph");if(r===null)return!1;var n=r.children;return n.length===1&&(n[0].text===""||void 0)},isEmptyPath:function(t,e){var r=E.node(t,e);if(r==null)return!1;var n=Vt(r,1)[0].children;return n.length===1&&n[0].text===""}},mJ=1,sN={},zd={},bJ=rc.filter,wJ=Iy("filter");xe({target:"Array",proto:!0,forced:!wJ},{filter:function(t){return bJ(this,t,arguments.length>1?arguments[1]:void 0)}});var bE=`
\v\f\r    \u2028\u2029\uFEFF`,H7=ht("".replace),t0="["+bE+"]",EJ=RegExp("^"+t0+t0+"*"),DJ=RegExp(t0+t0+"*$"),CJ=function(t){return function(e){var r=ue(Bn(e));return 1&t&&(r=H7(r,EJ,"")),2&t&&(r=H7(r,DJ,"")),r}},xJ={trim:CJ(3)},SJ=tc.PROPER,AJ=xJ.trim;xe({target:"String",proto:!0,forced:function(t){return Qt(function(){return!!bE[t]()||"…"[t]()!=="…"||SJ&&bE[t].name!==t})}("trim")},{trim:function(){return AJ(this)}});var wE=[],lN={};function OJ(t,e,r){var n=r.isInline(t)?"span":"div";return"<"+n+">"+e+"</"+n+">"}var $d,xs,V7,Z1,e0=X.Promise,U7=Ae("species"),X5=function(t){var e=as(t),r=to.f;ir&&e&&!e[U7]&&r(e,U7,{configurable:!0,get:function(){return this}})},kJ=X.TypeError,BJ=Ae("species"),cN=function(t,e){var r,n=Me(t).constructor;return n===void 0||(r=Me(n)[BJ])==null?e:function(o){if(jy(o))return o;throw kJ(ky(o)+" is not a constructor")}(r)},fN=ht([].slice),dN=/(?:ipad|iphone|ipod).*applewebkit/i.test(sl),Ji=Kn(X.process)=="process",EE=X.setImmediate,W7=X.clearImmediate,FJ=X.process,J1=X.Dispatch,TJ=X.Function,G7=X.MessageChannel,_J=X.String,Q1=0,od={};try{$d=X.location}catch(t){}var Z5=function(t){if(Re(od,t)){var e=od[t];delete od[t],e()}},tb=function(t){return function(){Z5(t)}},q7=function(t){Z5(t.data)},K7=function(t){X.postMessage(_J(t),$d.protocol+"//"+$d.host)};EE&&W7||(EE=function(t){var e=fN(arguments,1);return od[++Q1]=function(){V5(ie(t)?t:TJ(t),void 0,e)},xs(Q1),Q1},W7=function(t){delete od[t]},Ji?xs=function(t){FJ.nextTick(tb(t))}:J1&&J1.now?xs=function(t){J1.now(tb(t))}:G7&&!dN?(Z1=(V7=new G7).port2,V7.port1.onmessage=q7,xs=Wu(Z1.postMessage,Z1)):X.addEventListener&&ie(X.postMessage)&&!X.importScripts&&$d&&$d.protocol!=="file:"&&!Qt(K7)?(xs=K7,X.addEventListener("message",q7,!1)):xs="onreadystatechange"in _d("script")?function(t){Q4.appendChild(_d("script")).onreadystatechange=function(){Q4.removeChild(this),Z5(t)}}:function(t){setTimeout(tb(t),0)});var Gc,au,id,Xs,eb,rb,nb,Y7,pN={set:EE},PJ=/ipad|iphone|ipod/i.test(sl)&&X.Pebble!==void 0,jJ=/web0s(?!.*chrome)/i.test(sl),NJ=jp.f,ob=pN.set,X7=X.MutationObserver||X.WebKitMutationObserver,Z7=X.document,J7=X.process,Rh=X.Promise,Q7=NJ(X,"queueMicrotask"),hN=Q7&&Q7.value;hN||(Gc=function(){var t,e;for(Ji&&(t=J7.domain)&&t.exit();au;){e=au.fn,au=au.next;try{e()}catch(r){throw au?Xs():id=void 0,r}}id=void 0,t&&t.enter()},dN||Ji||jJ||!X7||!Z7?!PJ&&Rh&&Rh.resolve?((nb=Rh.resolve(void 0)).constructor=Rh,Y7=Wu(nb.then,nb),Xs=function(){Y7(Gc)}):Ji?Xs=function(){J7.nextTick(Gc)}:(ob=Wu(ob,X),Xs=function(){ob(Gc)}):(eb=!0,rb=Z7.createTextNode(""),new X7(Gc).observe(rb,{characterData:!0}),Xs=function(){rb.data=eb=!eb}));var ib,t9,gN,e9,vN=hN||function(t){var e={fn:t,next:void 0};id&&(id.next=e),au||(au=e,Xs()),id=e},IJ=function(t){var e,r;this.promise=new t(function(n,o){if(e!==void 0||r!==void 0)throw TypeError("Bad Promise constructor");e=n,r=o}),this.resolve=ya(e),this.reject=ya(r)},J5={f:function(t){return new IJ(t)}},DE=function(t){try{return{error:!1,value:t()}}catch(e){return{error:!0,value:e}}},LJ=typeof window=="object",yN=pN.set,RJ=Ae("species"),fo="Promise",r9=Sr.getterFor(fo),MJ=Sr.set,zJ=Sr.getterFor(fo),tu=e0&&e0.prototype,yo=e0,qc=tu,mN=X.TypeError,CE=X.document,Q5=X.process,cl=J5.f,$J=cl,HJ=!!(CE&&CE.createEvent&&X.dispatchEvent),bN=ie(X.PromiseRejectionEvent),wN=!1,ad=jd(fo,function(){var t=Fy(yo),e=t!==String(yo);if(!e&&Td===66)return!0;if(Td>=51&&/native code/.test(t))return!1;var r=new yo(function(o){o(1)}),n=function(o){o(function(){},function(){})};return(r.constructor={})[RJ]=n,!(wN=r.then(function(){})instanceof n)||!e&&LJ&&!bN}),VJ=ad||!I5(function(t){yo.all(t).catch(function(){})}),EN=function(t){var e;return!(!pe(t)||!ie(e=t.then))&&e},tD=function(t,e){if(!t.notified){t.notified=!0;var r=t.reactions;vN(function(){for(var n=t.value,o=t.state==1,i=0;r.length>i;){var a,u,s,l=r[i++],c=o?l.ok:l.fail,f=l.resolve,d=l.reject,p=l.domain;try{c?(o||(t.rejection===2&&WJ(t),t.rejection=1),c===!0?a=n:(p&&p.enter(),a=c(n),p&&(p.exit(),s=!0)),a===l.promise?d(mN("Promise-chain cycle")):(u=EN(a))?Kt(u,a,f,d):f(a)):d(n)}catch(v){p&&!s&&p.exit(),d(v)}}t.reactions=[],t.notified=!1,e&&!t.rejection&&UJ(t)})}},DN=function(t,e,r){var n,o;HJ?((n=CE.createEvent("Event")).promise=e,n.reason=r,n.initEvent(t,!1,!0),X.dispatchEvent(n)):n={promise:e,reason:r},!bN&&(o=X["on"+t])?o(n):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",r)},UJ=function(t){Kt(yN,X,function(){var e,r=t.facade,n=t.value;if(n9(t)&&(e=DE(function(){Ji?Q5.emit("unhandledRejection",n,r):DN("unhandledrejection",r,n)}),t.rejection=Ji||n9(t)?2:1,e.error))throw e.value})},n9=function(t){return t.rejection!==1&&!t.parent},WJ=function(t){Kt(yN,X,function(){var e=t.facade;Ji?Q5.emit("rejectionHandled",e):DN("rejectionhandled",e,t.value)})},nl=function(t,e,r){return function(n){t(e,n,r)}},fl=function(t,e,r){t.done||(t.done=!0,r&&(t=r),t.value=e,t.state=2,tD(t,!0))},xE=function(t,e,r){if(!t.done){t.done=!0,r&&(t=r);try{if(t.facade===e)throw mN("Promise can't be resolved itself");var n=EN(e);n?vN(function(){var o={done:!1};try{Kt(n,e,nl(xE,o,t),nl(fl,o,t))}catch(i){fl(o,i,t)}}):(t.value=e,t.state=1,tD(t,!1))}catch(o){fl({done:!1},o,t)}}};if(ad&&(qc=(yo=function(t){My(this,qc),ya(t),Kt(ib,this);var e=r9(this);try{t(nl(xE,e),nl(fl,e))}catch(r){fl(e,r)}}).prototype,(ib=function(t){MJ(this,{type:fo,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=Ll(qc,{then:function(t,e){var r=zJ(this),n=r.reactions,o=cl(cN(this,yo));return o.ok=!ie(t)||t,o.fail=ie(e)&&e,o.domain=Ji?Q5.domain:void 0,r.parent=!0,n[n.length]=o,r.state!=0&&tD(r,!1),o.promise},catch:function(t){return this.then(void 0,t)}}),t9=function(){var t=new ib,e=r9(t);this.promise=t,this.resolve=nl(xE,e),this.reject=nl(fl,e)},J5.f=cl=function(t){return t===yo||t===gN?new t9(t):$J(t)},ie(e0)&&tu!==Object.prototype)){e9=tu.then,wN||(Ur(tu,"then",function(t,e){var r=this;return new yo(function(n,o){Kt(e9,r,n,o)}).then(t,e)},{unsafe:!0}),Ur(tu,"catch",qc.catch,{unsafe:!0}));try{delete tu.constructor}catch(t){}Il&&Il(tu,qc)}xe({global:!0,wrap:!0,forced:ad},{Promise:yo}),Yv(yo,fo,!1),X5(fo),gN=as(fo),xe({target:fo,stat:!0,forced:ad},{reject:function(t){var e=cl(this);return Kt(e.reject,void 0,t),e.promise}}),xe({target:fo,stat:!0,forced:ad},{resolve:function(t){return function(e,r){if(Me(e),pe(r)&&r.constructor===e)return r;var n=J5.f(e);return(0,n.resolve)(r),n.promise}(this,t)}}),xe({target:fo,stat:!0,forced:VJ},{all:function(t){var e=this,r=cl(e),n=r.resolve,o=r.reject,i=DE(function(){var a=ya(e.resolve),u=[],s=0,l=1;Rd(t,function(c){var f=s++,d=!1;l++,Kt(a,e,c).then(function(p){d||(d=!0,u[f]=p,--l||n(u))},o)}),--l||n(u)});return i.error&&o(i.value),r.promise},race:function(t){var e=this,r=cl(e),n=r.reject,o=DE(function(){var i=ya(e.resolve);Rd(t,function(a){Kt(i,e,a).then(r.resolve,n)})});return o.error&&n(o.value),r.promise}});var Ss=Ly.UNSUPPORTED_Y,GJ=Math.min,CN=[].push,qJ=ht(/./.exec),As=ht(CN),Kc=ht("".slice);function Fn(t){Promise.resolve().then(t)}function xN(t,e){return ft.isElement(t)?function(r,n){var o=r.type,i=o===void 0?"":o,a=r.children,u=a===void 0?[]:a,s=E.isVoid(n,r),l="";s||(l=u.map(function(m){return xN(m,n)}).join(""));var c=function(m){return lN[m]||OJ}(i),f=c(r,l,n),d="";if(d=typeof f=="string"?f:f.html||"",s||wE.forEach(function(m){return d=m(r,d)}),typeof f=="string")return d;var p=f.prefix,v=p===void 0?"":p,y=f.suffix,g=y===void 0?"":y;return v&&(d=v+d),g&&(d+=g),d}(t,e):function(r,n){var o=r.text;if(o==null)throw new Error("Current node is not slate Text "+JSON.stringify(r));var i=o;i=function(s){return s.replace(/ {2}/g," &nbsp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/®/g,"&reg;").replace(/©/g,"&copy;").replace(/™/g,"&trade;")}(i);var a=A.getParentsNodes(n,r).some(function(s){return A.getNodeType(s)==="pre"});if(a||(i=i.replace(/\r\n|\r|\n/g,"<br>")),a&&(i=i.replace(/&nbsp;/g," ")),i===""){var u=A.getParentNode(null,r);if(!u||u.children.length!==0)return i;i="<br>"}return wE.forEach(function(s){return i=s(r,i)}),i}(t,e)}function SN(t){return"w-e-element-"+t}U5("split",function(t,e,r){var n;return n="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(o,i){var a=ue(Bn(this)),u=i===void 0?4294967295:i>>>0;if(u===0)return[];if(o===void 0)return[a];if(!_5(o))return Kt(e,a,o,u);for(var s,l,c,f=[],d=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(o.sticky?"y":""),p=0,v=new RegExp(o.source,d+"g");(s=Kt(Id,v,a))&&!((l=v.lastIndex)>p&&(As(f,Kc(a,p,s.index)),s.length>1&&s.index<a.length&&V5(CN,f,cE(s,1)),c=s[0].length,p=l,f.length>=u));)v.lastIndex===s.index&&v.lastIndex++;return p===a.length?!c&&qJ(v,"")||As(f,""):As(f,Kc(a,p)),f.length>u?cE(f,0,u):f}:"0".split(void 0,0).length?function(o,i){return o===void 0&&i===0?[]:Kt(e,this,o,i)}:e,[function(o,i){var a=Bn(this),u=o==null?void 0:Uu(o,t);return u?Kt(u,o,a,i):Kt(n,ue(a),o,i)},function(o,i){var a=Me(this),u=ue(o),s=r(n,a,u,i,n!==e);if(s.done)return s.value;var l=cN(a,RegExp),c=a.unicode,f=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(Ss?"g":"y"),d=new l(Ss?"^(?:"+a.source+")":a,f),p=i===void 0?4294967295:i>>>0;if(p===0)return[];if(u.length===0)return Ld(d,u)===null?[u]:[];for(var v=0,y=0,g=[];y<u.length;){d.lastIndex=Ss?0:y;var m,h=Ld(d,Ss?Kc(u,y):u);if(h===null||(m=GJ(ec(d.lastIndex+(Ss?y:0)),u.length))===v)y=W5(u,y,c);else{if(As(g,Kc(u,v,y)),g.length===p)return g;for(var b=1;b<=h.length-1;b++)if(As(g,h[b]),g.length===p)return g;y=v=m}}return As(g,Kc(u,v)),g}]},!!Qt(function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var r="ab".split(t);return r.length!==2||r[0]!=="a"||r[1]!=="b"}),Ss);var o9=function(t,e){var r=(e.top+e.bottom)/2;return t.top<=r&&t.bottom>=r},i9=function(t,e,r){var n=A.toDOMRange(t,e).getBoundingClientRect(),o=A.toDOMRange(t,r).getBoundingClientRect();return o9(n,o)&&o9(o,n)},AN=["span","b","strong","i","em","s","strike","u","font","sub","sup"],ON=[],eD=[],r0={},KJ=to.f,YJ=Pd.f,XJ=Sr.enforce,ZJ=Ae("match"),Jo=X.RegExp,Zs=Jo.prototype,JJ=X.SyntaxError,QJ=ht(T5),tQ=ht(Zs.exec),Mh=ht("".charAt),a9=ht("".replace),u9=ht("".indexOf),eQ=ht("".slice),rQ=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,Cu=/a/g,ab=/a/g,nQ=new Jo(Cu)!==Cu,kN=Ly.MISSED_STICKY,oQ=Ly.UNSUPPORTED_Y,iQ=ir&&(!nQ||kN||z5||$5||Qt(function(){return ab[ZJ]=!1,Jo(Cu)!=Cu||Jo(ab)==ab||Jo(Cu,"i")!="/a/i"}));if(jd("RegExp",iQ)){for(var Ai=function(t,e){var r,n,o,i,a,u,s=Vu(Zs,this),l=_5(t),c=e===void 0,f=[],d=t;if(!s&&l&&c&&t.constructor===Ai)return t;if((l||Vu(Zs,t))&&(t=t.source,c&&(e="flags"in d?d.flags:QJ(d))),t=t===void 0?"":ue(t),e=e===void 0?"":ue(e),d=t,z5&&"dotAll"in Cu&&(n=!!e&&u9(e,"s")>-1)&&(e=a9(e,/s/g,"")),r=e,kN&&"sticky"in Cu&&(o=!!e&&u9(e,"y")>-1)&&oQ&&(e=a9(e,/y/g,"")),$5&&(i=function(p){for(var v,y=p.length,g=0,m="",h=[],b={},w=!1,D=!1,x=0,C="";g<=y;g++){if((v=Mh(p,g))==="\\")v+=Mh(p,++g);else if(v==="]")w=!1;else if(!w)switch(!0){case v==="[":w=!0;break;case v==="(":tQ(rQ,eQ(p,g+1))&&(g+=2,D=!0),m+=v,x++;continue;case(v===">"&&D):if(C===""||Re(b,C))throw new JJ("Invalid capture group name");b[C]=!0,h[h.length]=[C,x],D=!1,C="";continue}D?C+=v:m+=v}return[m,h]}(t),t=i[0],f=i[1]),a=Jj(Jo(t,e),s?this:Zs,Ai),(n||o||f.length)&&(u=XJ(a),n&&(u.dotAll=!0,u.raw=Ai(function(p){for(var v,y=p.length,g=0,m="",h=!1;g<=y;g++)(v=Mh(p,g))!=="\\"?h||v!=="."?(v==="["?h=!0:v==="]"&&(h=!1),m+=v):m+="[\\s\\S]":m+=v+Mh(p,++g);return m}(t),r)),o&&(u.sticky=!0),f.length&&(u.groups=f)),t!==d)try{qn(a,"source",d===""?"(?:)":d)}catch(p){}return a},aQ=function(t){t in Ai||KJ(Ai,t,{configurable:!0,get:function(){return Jo[t]},set:function(e){Jo[t]=e}})},s9=YJ(Jo),l9=0;s9.length>l9;)aQ(s9[l9++]);Zs.constructor=Ai,Ai.prototype=Zs,Ur(X,"RegExp",Ai)}X5("RegExp");var uQ=new RegExp(" ","g");function BN(t){return t.replace(uQ," ")}function c9(t,e){var r=t.length;if(r){var n=t[r-1];if(it.isText(n)){var o=Object.keys(n);if(o.length===1&&o[0]==="text")return n.text=n.text+e,!0}}return!1}function sQ(t,e,r){return{type:"paragraph",children:[{text:B(t).text().replace(/\s+/gm," ")}]}}function ub(t,e){var r=function(i,a){var u=[];if(i.attr("data-w-e-is-void")!=null)return u;var s=i[0].childNodes;return s.length===1&&s[0].nodeName==="BR"?(u.push({text:""}),u):(s.forEach(function(l){if(l.nodeType!==go.ELEMENT_NODE){if(l.nodeType===go.TEXT_NODE){var c=l.textContent||"";if(c.trim()===""&&c.indexOf(`
`)>=0)return;c&&(c=BN(c),c9(u,c)||u.push({text:c}))}}else{if(l.nodeName==="BR")return void(c9(u,`
`)||u.push({text:`
`}));var f=rD(B(l),a);Array.isArray(f)?f.forEach(function(d){return u.push(d)}):u.push(f)}}),u)}(t,e),n=function(i){for(var a in r0)if(i[0].matches(a))return r0[a];return sQ}(t),o=n(t[0],r,e);return Array.isArray(o)||(o=[o]),o.forEach(function(i){E.isVoid(e,i)||(r.length===0&&(i.children=[{text:t.text().replace(/\s+/gm," ")}]),eD.forEach(function(a){i=a(t[0],i,e)}))}),o}function sb(t,e){t.parents("pre").length===0&&(t[0].innerHTML=t[0].innerHTML.replace(/\s+/gm," ").replace(/<br>/g,`
`));var r=t[0].textContent||"";r=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,'"')}(r);var n={text:r=BN(r)};return eD.forEach(function(o){n=o(t[0],n,e)}),n}function rD(t,e){ON.forEach(function(n){var o=n.selector,i=n.preParseHtml;t[0].matches(o)&&(t=B(i(t[0])))});var r=$7(t);return r==="span"?t.attr("data-w-e-type")?ub(t,e):sb(t,e):r==="code"?$7(t.parent())==="pre"?ub(t,e):sb(t,e):AN.includes(r)?sb(t,e):ub(t,e)}function FN(t,e,r){var n=B(r);return!!n.attr(e)||(n.attr(e,"true"),t.on("destroyed",function(){n.removeAttr(e)}),!1)}function f9(t,e){e===void 0&&(e="");var r=[];e===""&&(e="<p><br></p>"),e.indexOf("<")!==0&&(e=e.split(/\n/).map(function(o){return"<p>"+o+"</p>"}).join(""));var n=B("<div>"+e+"</div>");return Array.from(n.children()).forEach(function(o){var i=rD(B(o),t);Array.isArray(i)?i.forEach(function(a){return r.push(a)}):r.push(i)}),r}var lQ=to.f,d9=Ry.fastKey,p9=Sr.set,lb=Sr.getterFor,cQ={getConstructor:function(t,e,r,n){var o=t(function(l,c){My(l,i),p9(l,{type:e,index:Ny(null),first:void 0,last:void 0,size:0}),ir||(l.size=0),c!=null&&Rd(c,l[n],{that:l,AS_ENTRIES:r})}),i=o.prototype,a=lb(e),u=function(l,c,f){var d,p,v=a(l),y=s(l,c);return y?y.value=f:(v.last=y={index:p=d9(c,!0),key:c,value:f,previous:d=v.last,next:void 0,removed:!1},v.first||(v.first=y),d&&(d.next=y),ir?v.size++:l.size++,p!=="F"&&(v.index[p]=y)),l},s=function(l,c){var f,d=a(l),p=d9(c);if(p!=="F")return d.index[p];for(f=d.first;f;f=f.next)if(f.key==c)return f};return Ll(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,ir?l.size=0:this.size=0},delete:function(l){var c=this,f=a(c),d=s(c,l);if(d){var p=d.next,v=d.previous;delete f.index[d.index],d.removed=!0,v&&(v.next=p),p&&(p.previous=v),f.first==d&&(f.first=p),f.last==d&&(f.last=v),ir?f.size--:c.size--}return!!d},forEach:function(l){for(var c,f=a(this),d=Wu(l,arguments.length>1?arguments[1]:void 0);c=c?c.next:f.first;)for(d(c.value,c.key,this);c&&c.removed;)c=c.previous},has:function(l){return!!s(this,l)}}),Ll(i,r?{get:function(l){var c=s(this,l);return c&&c.value},set:function(l,c){return u(this,l===0?0:l,c)}}:{add:function(l){return u(this,l=l===0?0:l,l)}}),ir&&lQ(i,"size",{get:function(){return a(this).size}}),o},setStrong:function(t,e,r){var n=e+" Iterator",o=lb(e),i=lb(n);R5(t,e,function(a,u){p9(this,{type:n,target:a,state:o(a),kind:u,last:void 0})},function(){for(var a=i(this),u=a.kind,s=a.last;s&&s.removed;)s=s.previous;return a.target&&(a.last=s=s?s.next:a.state.first)?u=="keys"?{value:s.key,done:!1}:u=="values"?{value:s.value,done:!1}:{value:[s.key,s.value],done:!1}:(a.target=void 0,{value:void 0,done:!0})},r?"entries":"values",!r,!0),X5(e)}};Qj("Set",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},cQ);var h9=new Set(["doctype","!doctype","meta","script","style","link","frame","iframe","title","svg"]);function g9(t,e){t.isInline(e)?(t.insertNode(e),e.type==="link"&&t.insertFragment([{text:""}])):N.insertNodes(t,e,{mode:"highest"})}var fQ=function(t){var e=t,r=e.insertText;return e.insertFragment,e.setFragmentData=function(n){var o=e.selection;if(o){var i=Vt(L.edges(o),2),a=i[0],u=i[1],s=E.void(e,{at:a.path}),l=E.void(e,{at:u.path});if(!L.isCollapsed(o)||s){var c=A.toDOMRange(e,o),f=c.cloneContents(),d=f.childNodes[0];if(f.childNodes.forEach(function(D){D.textContent&&D.textContent.trim()!==""&&(d=D)}),l){var p=Vt(l,1)[0],v=c.cloneRange(),y=A.toDOMNode(e,p);v.setEndAfter(y),f=v.cloneContents()}if(s&&(d=f.querySelector("[data-slate-spacer]")),Array.from(f.querySelectorAll("[data-slate-zero-width]")).forEach(function(D){var x=D.getAttribute("data-slate-zero-width")==="n";D.textContent=x?`
`:""}),iN(d)){var g=d.ownerDocument.createElement("span");g.style.whiteSpace="pre",g.appendChild(d),f.appendChild(g),d=g}var m=e.getFragment(),h=JSON.stringify(m),b=window.btoa(encodeURIComponent(h));d.setAttribute("data-slate-fragment",b),n.setData("application/x-slate-fragment",b);var w=f.ownerDocument.createElement("div");return w.appendChild(f),w.setAttribute("hidden","true"),f.ownerDocument.body.appendChild(w),n.setData("text/html",w.innerHTML),n.setData("text/plain",gJ(w)),f.ownerDocument.body.removeChild(w),n}}},e.insertData=function(n){var o,i,a=n.getData("application/x-slate-fragment");if(a){var u=decodeURIComponent(window.atob(a)),s=JSON.parse(u);e.insertFragment(s)}else{var l=n.getData("text/plain"),c=n.getData("text/html");if(c)e.dangerouslyInsertHtml(c);else if(l){var f=l.split(/\r\n|\r|\n/),d=!1;try{for(var p=En(f),v=p.next();!v.done;v=p.next()){var y=v.value;d&&N.splitNodes(e,{always:!0}),r(y),d=!0}}catch(g){o={error:g}}finally{try{v&&!v.done&&(i=p.return)&&i.call(p)}finally{if(o)throw o.error}}}}},e},Wf=function(t){return t!=null},dQ={object:!0,function:!0,undefined:!0},pQ=/^\s*class[\s{/}]/,hQ=Function.prototype.toString,v9=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(r){return!1}return!function(r){if(!function(n){return!!Wf(n)&&hasOwnProperty.call(dQ,typeof n)}(r))return!1;try{return!!r.constructor&&r.constructor.prototype===r}catch(n){return!1}}(e)}(t)&&!pQ.test(hQ.call(t))},nD=function(t){return t!=null},gQ=Object.keys,vQ=function(){try{return Object.keys("primitive"),!0}catch(t){return!1}}()?Object.keys:function(t){return gQ(nD(t)?Object(t):t)},yQ=function(t){if(!nD(t))throw new TypeError("Cannot use null or undefined");return t},mQ=Math.max,y9=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 r,n,o,i=mQ(arguments.length,2);for(t=Object(yQ(t)),o=function(a){try{t[a]=e[a]}catch(u){r||(r=u)}},n=1;n<i;++n)vQ(e=arguments[n]).forEach(o);if(r!==void 0)throw r;return t},bQ=Array.prototype.forEach,wQ=Object.create,EQ=function(t,e){var r;for(r in t)e[r]=t[r]},m9=function(t){var e=wQ(null);return bQ.call(arguments,function(r){nD(r)&&EQ(Object(r),e)}),e},cb="razdwatrzy",DQ=String.prototype.indexOf,Yc=typeof cb.contains=="function"&&cb.contains("dwa")===!0&&cb.contains("foo")===!1?String.prototype.contains:function(t){return DQ.call(this,t,arguments[1])>-1},zh=_p(function(t){var e=t.exports=function(r,n){var o,i,a,u,s;return arguments.length<2||typeof r!="string"?(u=n,n=r,r=null):u=arguments[2],Wf(r)?(o=Yc.call(r,"c"),i=Yc.call(r,"e"),a=Yc.call(r,"w")):(o=a=!0,i=!1),s={value:n,configurable:o,enumerable:i,writable:a},u?y9(m9(u),s):s};e.gs=function(r,n,o){var i,a,u,s;return typeof r!="string"?(u=o,o=n,n=r,r=null):u=arguments[3],Wf(n)?v9(n)?Wf(o)?v9(o)||(u=o,o=void 0):o=void 0:(u=n,n=o=void 0):n=void 0,Wf(r)?(i=Yc.call(r,"c"),a=Yc.call(r,"e")):(i=!0,a=!1),s={get:n,set:o,configurable:i,enumerable:a},u?y9(m9(u),s):s}}),fb=function(t){if(typeof t!="function")throw new TypeError(t+" is not a function");return t},CQ=_p(function(t,e){var r,n,o,i,a,u,s,l=Function.prototype.apply,c=Function.prototype.call,f=Object.create,d=Object.defineProperty,p=Object.defineProperties,v=Object.prototype.hasOwnProperty,y={configurable:!0,enumerable:!1,writable:!0};r=function(g,m){var h;return fb(m),v.call(this,"__ee__")?h=this.__ee__:(h=y.value=f(null),d(this,"__ee__",y),y.value=null),h[g]?typeof h[g]=="object"?h[g].push(m):h[g]=[h[g],m]:h[g]=m,this},n=function(g,m){var h,b;return fb(m),b=this,r.call(this,g,h=function(){o.call(b,g,h),l.call(m,this,arguments)}),h.__eeOnceListener__=m,this},o=function(g,m){var h,b,w,D;if(fb(m),!v.call(this,"__ee__"))return this;if(!(h=this.__ee__)[g])return this;if(typeof(b=h[g])=="object")for(D=0;w=b[D];++D)w!==m&&w.__eeOnceListener__!==m||(b.length===2?h[g]=b[D?0:1]:b.splice(D,1));else b!==m&&b.__eeOnceListener__!==m||delete h[g];return this},i=function(g){var m,h,b,w,D;if(v.call(this,"__ee__")&&(w=this.__ee__[g]))if(typeof w=="object"){for(h=arguments.length,D=new Array(h-1),m=1;m<h;++m)D[m-1]=arguments[m];for(w=w.slice(),m=0;b=w[m];++m)l.call(b,this,D)}else switch(arguments.length){case 1:c.call(w,this);break;case 2:c.call(w,this,arguments[1]);break;case 3:c.call(w,this,arguments[1],arguments[2]);break;default:for(h=arguments.length,D=new Array(h-1),m=1;m<h;++m)D[m-1]=arguments[m];l.call(w,this,D)}},a={on:r,once:n,off:o,emit:i},u={on:zh(r),once:zh(n),off:zh(o),emit:zh(i)},s=p({},u),t.exports=e=function(g){return g==null?f(s):p(Object(g),u)},e.methods=a});function $h(t){var e=R7.get(t);return e==null&&(e=CQ(),R7.set(t,e)),e}var n0=new WeakMap;function b9(t,e){var r=n0.get(t);r==null&&(r=new Set,n0.set(t,r)),r.add(e)}function xQ(t){return n0.get(t)||new Set}function SQ(t){n0.set(t,new Set)}function oD(t){var e=A.getTextarea(t).$textAreaContainer,r=e.width(),n=e.height(),o=e.offset();return{top:o.top,left:o.left,width:r,height:n}}function iD(t){var e={top:"0",left:"0"},r=t.selection;if(r==null)return e;var n=oD(t);if(n==null)return e;var o=n.top,i=n.left,a=n.width,u=n.height,s=A.toDOMRange(t,r).getClientRects()[0];if(s==null)return e;s.width;var l=s.height,c={},f=s.top-o,d=s.left-i;if(d>a/2){var p=a-d;c.right=p+5+"px"}else c.left=d+5+"px";if(f>u/2){var v=u-f;c.bottom=v+5+"px"}else{var y=f+l;y<0&&(y=0),c.top=y+5+"px"}return c}function aD(t,e,r){r===void 0&&(r="modal");var n={top:"0",left:"0"};if(t.selection==null)return n;var o=ft.isElement(e)&&t.isVoid(e),i=ft.isElement(e)&&t.isInline(e),a=Qv.get(e);if(a==null)return n;var u=a.getBoundingClientRect(),s=u.top,l=u.left,c=u.height,f=u.width;if(o){var d=function(C){var O=[];O.push(C);for(var T=0;O.length>0;){var R=O.pop();if(R==null||++T>1e4)break;var H=R.nodeName;if(R.nodeType===1){var M=H.toLowerCase();if(pJ.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(d!=null){var p=d.getBoundingClientRect();s=p.top,c=p.height}}var v=oD(t);if(v==null)return n;var y,g=v.top,m=v.left,h=v.width,b=v.height,w={},D=s-g,x=l-m;if(r==="bar")return w.left=x+"px",D>40?w.bottom=b-D+5+"px":w.top=D+c+5+"px",w;if(r==="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?((y=D)<0&&(y=0),w.top=y+"px"):D>(b-c)/2?w.bottom=b-D+5+"px":((y=D+c)<0&&(y=0),w.top=y+5+"px"),w;throw new Error("type '"+r+"' is invalid")}function SE(t,e){Fn(function(){var r=oD(t);if(r!=null){var n,o=r.top,i=r.left,a=r.width,u=r.height,s=e.offset(),l=s.top,c=s.left,f=e.width(),d=e.height(),p=l-o,v=c-i,y=e.attr("style");if(y.indexOf("top")>=0&&(n=p+d-u)>0){var g=e.css("top"),m=parseInt(g.toString())-n;m<0&&(m=0),e.css("top",m+"px")}if(y.indexOf("bottom")>=0&&l<0){var h=e.css("bottom"),b=parseInt(h.toString())-Math.abs(l);e.css("bottom",b+"px")}if(y.indexOf("left")>=0&&(n=v+f-a)>0){var w=e.css("left"),D=parseInt(w.toString())-n;D<0&&(D=0),e.css("left",D+"px")}if(y.indexOf("right")>=0&&c<0){var x=e.css("right"),C=parseInt(x.toString())-Math.abs(c);e.css("right",C+"px")}}})}var AQ=Iy("slice"),OQ=Ae("species"),db=X.Array,kQ=Math.max;xe({target:"Array",proto:!0,forced:!AQ},{slice:function(t,e){var r,n,o,i=Ba(this),a=us(i),u=jl(t,a),s=jl(e===void 0?a:e,a);if(Gv(i)&&(r=i.constructor,(jy(r)&&(r===db||Gv(r.prototype))||pe(r)&&(r=r[OQ])===null)&&(r=void 0),r===db||r===void 0))return fN(i,u,s);for(n=new(r===void 0?db:r)(kQ(s-u,0)),o=0;u<s;u++,o++)u in i&&Nd(n,o,i[u]);return n.length=o,n}});var BQ=jp.f,w9=ht("".startsWith),FQ=ht("".slice),TQ=Math.min,TN=j5("startsWith"),_Q=!TN&&!!function(){var t=BQ(String.prototype,"startsWith");return t&&!t.writable}();xe({target:"String",proto:!0,forced:!_Q&&!TN},{startsWith:function(t){var e=ue(Bn(this));P5(t);var r=ec(TQ(arguments.length>1?arguments[1]:void 0,e.length)),n=ue(t);return w9?w9(e,n,r):FQ(e,r,r+n.length)===n}});var Os=Object.assign,E9=Object.defineProperty,PQ=ht([].concat),D9=!Os||Qt(function(){if(ir&&Os({b:1},Os(E9({},"a",{enumerable:!0,get:function(){E9(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var t={},e={},r=Symbol(),n="abcdefghijklmnopqrst";return t[r]=7,n.split("").forEach(function(o){e[o]=o}),Os({},t)[r]!=7||ll(Os({},e)).join("")!=n})?function(t,e){for(var r=ka(t),n=arguments.length,o=1,i=$j.f,a=Rj.f;n>o;)for(var u,s=Py(arguments[o++]),l=i?PQ(ll(s),i(s)):ll(s),c=l.length,f=0;c>f;)u=l[f++],ir&&!Kt(a,s,u)||(r[u]=s[u]);return r}:Os;xe({target:"Object",stat:!0,forced:Object.assign!==D9},{assign:D9});var jQ=["props","attrs","style","dataset","on","hook"];function _N(t){var e=t.data,r=e===void 0?{}:e,n=t.children,o=n===void 0?[]:n;Object.keys(r).forEach(function(i){var a,u,s=r[i];if(i!=="key"){if(!jQ.includes(i)){if(i.startsWith("data-")){var l=i.slice(5);return l=oK(l),function(c,f){c.data==null&&(c.data={});var d=c.data;d.dataset==null&&(d.dataset={}),Object.assign(d.dataset,f)}(t,((a={})[l]=s,a)),void delete r[i]}(function(c,f){c.data==null&&(c.data={});var d=c.data;d.props==null&&(d.props={}),Object.assign(d.props,f)})(t,(u={},u[i]=s,u)),delete r[i]}}else t.key=s}),o.length>0&&o.forEach(function(i){typeof i!="string"&&_N(i)})}var AE=[],PN={};function NQ(t,e,r){return wt(r.isInline(t)?"span":"div",null,e)}function C9(t,e){return e===void 0&&(e=!1),wt("span",{"data-slate-string":!0},e?t+`
`:t)}function pb(t,e){return t===void 0&&(t=0),e===void 0&&(e=!1),wt("span",{"data-slate-zero-width":e?"n":"z","data-slate-length":t},"\uFEFF",e?wt("br",null):null)}function OE(t,e,r,n){return Md.set(t,e),Rl.set(t,r),ft.isElement(t)?function(o,i){var a,u=A.findKey(i,o),s=i.isInline(o),l=E.isVoid(i,o),c=SN(u.id),f={id:c,key:u.id,"data-slate-node":"element","data-slate-inline":s},d=o.type,p=o.children,v=p===void 0?[]:p,y=function(D){return PN[D]||NQ}(d);a=l?null:v.map(function(D,x){return OE(D,x,o,i)});var g=y(o,a,i);if(l){f["data-slate-void"]=!0;var m=s?"span":"div",h=Vt(Q.texts(o),1),b=Vt(h[0],1)[0],w=wt(m,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},OE(b,0,o,i));g=wt(m,{style:{position:"relative"}},g,w),Md.set(b,0),Rl.set(b,o)}return g.data==null&&(g.data={}),Object.assign(g.data,f),l||s||(g=function(D,x){var C=x;return AE.forEach(function(O){C=O(D,x)}),C}(o,g)),Fn(function(){var D=vE(c);D!=null&&(gE.set(u,D),Qv.set(o,D),Jv.set(D,o))}),g}(t,n):function(o,i,a){if(o.text==null)throw new Error("Current node is not slate Text "+JSON.stringify(o));var u=A.findKey(a,o),s=a.getConfig().decorate;if(s==null)throw new Error("Can not get config.decorate");var l=A.findPath(a,o),c=s([o,l]),f=it.decorations(o,c),d=f.map(function(y,g){var m=function(h,b,w,D,x){b===void 0&&(b=!1);var C=h.text,O=A.findPath(x,w),T=j.parent(O);if(E.isEditor(D))throw new Error("Text node "+JSON.stringify(w)+" parent is Editor");return x.isVoid(D)?pb(Q.string(D).length):C!==""||D.children[D.children.length-1]!==w||x.isInline(D)||E.string(x,T)!==""?C===""?pb():b&&C.slice(-1)===`
`?C9(C,!0):C9(C):pb(0,!0)}(y,g===f.length-1,o,i,a);return m=function(h,b){var w=b;return AE.forEach(function(D){w=D(h,w)}),w}(y,m),wt("span",{"data-slate-leaf":!0},m)}),p=function(y){return"w-e-text-"+y}(u.id),v=wt("span",{"data-slate-node":"text",id:p,key:u.id},d);return Fn(function(){var y=vE(p);y!=null&&(gE.set(u,y),Qv.set(o,y),Jv.set(y,o))}),v}(t,r,n)}function IQ(t,e){var r,n=t.$scroll,o=function(y){return"w-e-textarea-"+y}(t.id),i=e.getConfig(),a=i.readOnly,u=i.autoFocus,s=function(y,g){return g===void 0&&(g=!1),Pl("div#"+y,{props:{contentEditable:!g}})}(o,a),l=e.children||[];s.children=l.map(function(y,g){var m=OE(y,g,e,e);return _N(m),m});var c=N7.get(t);if(c==null&&(c=!0),c){var f=function(y,g){return B(`<div
id="`+y+`"
data-slate-editor
data-slate-node="value"
suppressContentEditableWarning
role="textarea"
spellCheck="true"
autoCorrect="true"
autoCapitalize="true"
></div>`)}(o);n.append(f),t.$textArea=f,r=f[0],(p=Aq([kq,_q,jq,Bq,Tq,Oq]))(r,s),N7.set(t,!1),I7.set(t,p)}else{var d=L7.get(t),p=I7.get(t);if(d==null||p==null)return;r=d.elm,p(d,s)}if(r!=null||(r=vE(o))!=null){if((c?u:e.isFocused())&&r.focus({preventScroll:!0}),c){var v=Y5(r);v&&oN.set(e,v)}K5.set(e,r),Qv.set(e,r),Jv.set(r,e),L7.set(t,s)}}function x9(t){return typeof t=="object"&&t!=null&&t.nodeType===1}function S9(t,e){return(!e||t!=="hidden")&&t!=="visible"&&t!=="clip"}function hb(t,e){if(t.clientHeight<t.scrollHeight||t.clientWidth<t.scrollWidth){var r=getComputedStyle(t,null);return S9(r.overflowY,e)||S9(r.overflowX,e)||function(n){var o=function(i){if(!i.ownerDocument||!i.ownerDocument.defaultView)return null;try{return i.ownerDocument.defaultView.frameElement}catch(a){return null}}(n);return!!o&&(o.clientHeight<n.scrollHeight||o.clientWidth<n.scrollWidth)}(t)}return!1}function Hh(t,e,r,n,o,i,a,u){return i<t&&a>e||i>t&&a<e?0:i<=t&&u<=r||a>=e&&u>=r?i-t-n:a>e&&u<r||i<t&&u>r?a-e+o:0}function A9(t,e){var r=window,n=e.scrollMode,o=e.block,i=e.inline,a=e.boundary,u=e.skipOverflowHiddenElements,s=typeof a=="function"?a:function(Ct){return Ct!==a};if(!x9(t))throw new TypeError("Invalid target");for(var l=document.scrollingElement||document.documentElement,c=[],f=t;x9(f)&&s(f);){if((f=f.parentElement)===l){c.push(f);break}f!=null&&f===document.body&&hb(f)&&!hb(document.documentElement)||f!=null&&hb(f,u)&&c.push(f)}for(var d=r.visualViewport?r.visualViewport.width:innerWidth,p=r.visualViewport?r.visualViewport.height:innerHeight,v=window.scrollX||pageXOffset,y=window.scrollY||pageYOffset,g=t.getBoundingClientRect(),m=g.height,h=g.width,b=g.top,w=g.right,D=g.bottom,x=g.left,C=o==="start"||o==="nearest"?b:o==="end"?D:b+m/2,O=i==="center"?x+h/2:i==="end"?w:x,T=[],R=0;R<c.length;R++){var H=c[R],M=H.getBoundingClientRect(),K=M.height,U=M.width,W=M.top,q=M.right,rt=M.bottom,lt=M.left;if(n==="if-needed"&&b>=0&&x>=0&&D<=p&&w<=d&&b>=W&&D<=rt&&x>=lt&&w<=q)return T;var st=getComputedStyle(H),ut=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-ut-S:0,at="offsetHeight"in H?H.offsetHeight-H.clientHeight-k-P:0;if(l===H)$=o==="start"?C:o==="end"?C-p:o==="nearest"?Hh(y,y+p,p,k,P,y+C,y+C+m,m):C-p/2,Y=i==="start"?O:i==="center"?O-d/2:i==="end"?O-d:Hh(v,v+d,d,ut,S,v+O,v+O+h,h),$=Math.max(0,$+y),Y=Math.max(0,Y+v);else{$=o==="start"?C-W-k:o==="end"?C-rt+P+at:o==="nearest"?Hh(W,rt,K,k,P+at,C,C+m,m):C-(W+K/2)+at/2,Y=i==="start"?O-lt-ut:i==="center"?O-(lt+U/2)+V/2:i==="end"?O-q+S+V:Hh(lt,q,U,ut,S+V,O,O+h,h);var vt=H.scrollLeft,yt=H.scrollTop;C+=yt-($=Math.max(0,Math.min(yt+$,H.scrollHeight-K+at))),O+=vt-(Y=Math.max(0,Math.min(vt+Y,H.scrollWidth-U+V)))}T.push({el:H,top:$,left:Y})}return T}function O9(t){return t===Object(t)&&Object.keys(t).length!==0}function yn(t,e){return Gu(e)&&A.hasDOMNode(t,e,{editable:!0})}function k9(t,e){if(t.getConfig().readOnly)return!1;var r=Js(t,e)&&A.toSlateNode(t,e);return E.isVoid(t,r)}function Js(t,e){return Gu(e)&&A.hasDOMNode(t,e)}function jN(t,e,r){r===void 0&&(r=!1);var n=e.selection,o=e.getConfig(),i=A.findDocumentOrShadowRoot(e).getSelection();if(i&&(!t.isComposing||r)&&e.isFocused()){var a=i.type!=="None";if(n||a){var u=K5.get(e),s=!1;if(u.contains(i.anchorNode)&&u.contains(i.focusNode)&&(s=!0),a&&s&&n){var l=A.toSlateRange(e,i,{exactMatch:!0,suppressThrow:!0});if(l&&L.equals(l,n)){var c=!0;if(L.isCollapsed(n)){var f=i.anchorNode,d=i.anchorOffset;if(f===u){var p=u.childNodes,v=void 0;(v=p[d])&&v.matches("table")&&(c=!1),(v=p[d-1])&&v.matches("table")&&(c=!1)}}if(c)return}}if(!n||A.hasRange(e,n)){t.isUpdatingSelection=!0;var y=n&&A.toDOMRange(e,n);if(y){L.isBackward(n)?i.setBaseAndExtent(y.endContainer,y.endOffset,y.startContainer,y.startOffset):i.setBaseAndExtent(y.startContainer,y.startOffset,y.endContainer,y.endOffset);var g=y.startContainer.parentElement;if(!g.closest("[data-slate-spacer]")){g.getBoundingClientRect=y.getBoundingClientRect.bind(y);var m=document.body;(function(h,b){var w=!h.ownerDocument.documentElement.contains(h);if(O9(b)&&typeof b.behavior=="function")return b.behavior(w?[]:A9(h,b));if(!w){var D=function(x){return x===!1?{block:"end",inline:"nearest"}:O9(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(T){var R=T.el,H=T.top,M=T.left;R.scroll&&O?R.scroll({top:H,left:M,behavior:C}):(R.scrollTop=H,R.scrollLeft=M)})})(A9(h,D),D.behavior)}})(g,{scrollMode:"if-needed",boundary:o.scroll?u.parentElement:m,block:"end",behavior:"smooth"}),delete g.getBoundingClientRect}}else i.removeAllRanges();setTimeout(function(){y&&nd&&u.focus(),t.isUpdatingSelection=!1})}else e.selection=A.toSlateRange(e,i,{exactMatch:!1,suppressThrow:!1})}}}var gb=new WeakMap,B9=new WeakMap,LQ={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"},RQ={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"},MQ={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},be=function(t){var e=LQ[t],r=RQ[t],n=MQ[t],o=e&&h1(e),i=r&&h1(r),a=n&&h1(n);return function(u){return!(!o||!o(u))||!!(yE&&i&&i(u))||!(yE||!a||!a(u))}},De={isBold:be("bold"),isCompose:be("compose"),isMoveBackward:be("moveBackward"),isMoveForward:be("moveForward"),isDeleteBackward:be("deleteBackward"),isDeleteForward:be("deleteForward"),isDeleteLineBackward:be("deleteLineBackward"),isDeleteLineForward:be("deleteLineForward"),isDeleteWordBackward:be("deleteWordBackward"),isDeleteWordForward:be("deleteWordForward"),isExtendBackward:be("extendBackward"),isExtendForward:be("extendForward"),isExtendLineBackward:be("extendLineBackward"),isExtendLineForward:be("extendLineForward"),isItalic:be("italic"),isMoveLineBackward:be("moveLineBackward"),isMoveLineForward:be("moveLineForward"),isMoveWordBackward:be("moveWordBackward"),isMoveWordForward:be("moveWordForward"),isRedo:be("redo"),isSplitBlock:be("splitBlock"),isTransposeCharacter:be("transposeCharacter"),isUndo:be("undo"),isTab:be("tab"),isSelectAll:be("selectAll")};function Ue(t){t.preventDefault()}var zQ={beforeinput:function(t,e,r){var n=t,o=r.getConfig().readOnly;if(Wc&&!o&&yn(r,n.target)){var i=r.selection,a=n.inputType,u=n.dataTransfer||n.data||void 0;if(a!=="insertCompositionText"&&a!=="deleteCompositionText"){if(n.preventDefault(),!a.startsWith("delete")||a.startsWith("deleteBy")){var s=Vt(n.getTargetRanges(),1)[0];if(s){var l=A.toSlateRange(r,s,{exactMatch:!1,suppressThrow:!1});i&&L.equals(i,l)||N.select(r,l)}}if(i&&L.isExpanded(i)&&a.startsWith("delete")){var c=a.endsWith("Backward")?"backward":"forward";E.deleteFragment(r,{direction:c})}else switch(a){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":E.deleteFragment(r);break;case"deleteContent":case"deleteContentForward":E.deleteForward(r);break;case"deleteContentBackward":E.deleteBackward(r);break;case"deleteEntireSoftLine":E.deleteBackward(r,{unit:"line"}),E.deleteForward(r,{unit:"line"});break;case"deleteHardLineBackward":E.deleteBackward(r,{unit:"block"});break;case"deleteSoftLineBackward":E.deleteBackward(r,{unit:"line"});break;case"deleteHardLineForward":E.deleteForward(r,{unit:"block"});break;case"deleteSoftLineForward":E.deleteForward(r,{unit:"line"});break;case"deleteWordBackward":E.deleteBackward(r,{unit:"word"});break;case"deleteWordForward":E.deleteForward(r,{unit:"word"});break;case"insertLineBreak":case"insertParagraph":E.insertBreak(r);break;case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":if(a==="insertFromPaste"&&!X1.get(r))break;u instanceof DataTransfer?r.insertData(u):typeof u=="string"&&E.insertText(r,u)}}}},blur:function(t,e,r){var n=t,o=e.isUpdatingSelection,i=e.latestElement;if(!r.getConfig().readOnly&&!o&&yn(r,n.target)){var a=A.findDocumentOrShadowRoot(r);if(i!==a.activeElement){var u=n.relatedTarget;if(!(u===A.toDOMNode(r,r)||zn(u)&&u.hasAttribute("data-slate-spacer"))){if(u!=null&&Gu(u)&&A.hasDOMNode(r,u)){var s=A.toSlateNode(r,u);if(ft.isElement(s)&&!r.isVoid(s))return}if(Uc){var l=a.getSelection();l==null||l.removeAllRanges()}Du.delete(r)}}}},focus:function(t,e,r){var n=A.toDOMNode(r,r),o=A.findDocumentOrShadowRoot(r);e.latestElement=o.activeElement,nd&&t.target!==n?n.focus():Du.set(r,!0)},click:function(t,e,r){if(!r.getConfig().readOnly&&Js(r,t.target)&&Gu(t.target)){var n=A.toSlateNode(r,t.target),o=A.findPath(r,n);if(E.hasPath(r,o)&&Q.get(r,o)===n){var i=E.start(r,o),a=E.end(r,o),u=E.void(r,{at:i}),s=E.void(r,{at:a});if(u&&s&&j.equals(u[1],s[1])){var l=E.range(r,i);N.select(r,l)}}}},compositionstart:function(t,e,r){if(yn(r,t.target)){var n=r.selection;if(n&&L.isExpanded(n)&&(E.deleteFragment(r),Promise.resolve().then(function(){jN(e,r,!0)})),n&&L.isCollapsed(n)){var o=A.toDOMRange(r,n).startContainer,i=o.textContent||"";gb.set(r,i),B9.set(r,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,r)}},compositionend:function(t,e,r){var n=t;if(yn(r,n.target)){e.isComposing=!1;var o=r.selection;if(o!=null){(mE||nd)&&A.cleanExposedTexNodeInSelectionBlock(r);for(var i=L.isBackward(o)?o.focus:o.anchor,a=Vt(E.node(r,[i.path[0]]),1)[0],u=0;u<i.path.length;u++){var s=Vt(E.node(r,i.path.slice(0,u+1)),1)[0];if(ft.isElement(s)&&((Uc||nd)&&s.type==="link"||s.type==="code")){A.setNewKey(a);break}}var l=n.data;if(l){if(r.getConfig().maxLength){var c=A.getLeftLengthOfMaxLength(r);c<l.length?(A.toDOMRange(r,o).startContainer.textContent=gb.get(r)||"",c>0&&E.insertText(r,l.slice(0,c)),e.changeViewState()):E.insertText(r,l)}else E.insertText(r,l);Uc||setTimeout(function(){var f=r.selection;if(f!=null){var d=B9.get(r);d!=null&&A.toDOMRange(r,f).startContainer!==d&&(d.textContent=gb.get(r)||"")}})}}}},compositionupdate:function(t,e,r){yn(r,t.target)&&(e.isComposing=!0)},keydown:function(t,e,r){var n=t,o=r.selection;if(!r.getConfig().readOnly&&!e.isComposing&&yn(r,n.target)){if(function(a,u){var s=zy.get(a),l=s&&s.getMenus(),c=Zv.get(a),f=c&&c.getMenus(),d=wn(wn({},l),f);for(var p in d){var v=d[p],y=v.hotkey;if(y&&uK(y,u)&&!v.isDisabled(a)){var g=v.getValue(a);v.exec(a,g)}}}(r,n),De.isTab(n))return Ue(n),void r.handleTab();if(De.isRedo(n))return Ue(n),void(typeof r.redo=="function"&&r.redo());if(De.isUndo(n))return Ue(n),void(typeof r.undo=="function"&&r.undo());if(De.isMoveLineBackward(n))return Ue(n),void N.move(r,{unit:"line",reverse:!0});if(De.isMoveLineForward(n))return Ue(n),void N.move(r,{unit:"line"});if(De.isExtendLineBackward(n))return Ue(n),void N.move(r,{unit:"line",edge:"focus",reverse:!0});if(De.isExtendLineForward(n))return Ue(n),void N.move(r,{unit:"line",edge:"focus"});if(De.isMoveBackward(n))return Ue(n),void(o&&L.isCollapsed(o)?N.move(r,{reverse:!0}):N.collapse(r,{edge:"start"}));if(De.isMoveForward(n))return Ue(n),void(o&&L.isCollapsed(o)?N.move(r):N.collapse(r,{edge:"end"}));if(De.isMoveWordBackward(n))return Ue(n),o&&L.isExpanded(o)&&N.collapse(r,{edge:"focus"}),void N.move(r,{unit:"word",reverse:!0});if(De.isMoveWordForward(n))return Ue(n),o&&L.isExpanded(o)&&N.collapse(r,{edge:"focus"}),void N.move(r,{unit:"word"});if(De.isSelectAll(n))return Ue(n),void r.selectAll();if(Wc){if((mE||Uc)&&o&&(De.isDeleteBackward(n)||De.isDeleteForward(n))&&L.isCollapsed(o)){var i=Q.parent(r,o.anchor.path);if(ft.isElement(i)&&E.isVoid(r,i)&&E.isInline(r,i))return n.preventDefault(),void N.delete(r,{unit:"block"})}}else{if(De.isBold(n)||De.isItalic(n)||De.isTransposeCharacter(n))return void Ue(n);if(De.isSplitBlock(n))return Ue(n),void E.insertBreak(r);if(De.isDeleteBackward(n))return Ue(n),void(o&&L.isExpanded(o)?E.deleteFragment(r,{direction:"backward"}):E.deleteBackward(r));if(De.isDeleteForward(n))return Ue(n),void(o&&L.isExpanded(o)?E.deleteFragment(r,{direction:"forward"}):E.deleteForward(r));if(De.isDeleteLineBackward(n))return Ue(n),void(o&&L.isExpanded(o)?E.deleteFragment(r,{direction:"backward"}):E.deleteBackward(r,{unit:"line"}));if(De.isDeleteLineForward(n))return Ue(n),void(o&&L.isExpanded(o)?E.deleteFragment(r,{direction:"forward"}):E.deleteForward(r,{unit:"line"}));if(De.isDeleteWordBackward(n))return Ue(n),void(o&&L.isExpanded(o)?E.deleteFragment(r,{direction:"backward"}):E.deleteBackward(r,{unit:"word"}));if(De.isDeleteWordForward(n))return Ue(n),void(o&&L.isExpanded(o)?E.deleteFragment(r,{direction:"forward"}):E.deleteForward(r,{unit:"word"}))}}},keypress:function(t,e,r){if(!Wc&&!r.getConfig().readOnly&&yn(r,t.target)){t.preventDefault();var n=t.key;E.insertText(r,n)}},copy:function(t,e,r){var n=t;if(yn(r,n.target)){n.preventDefault();var o=n.clipboardData;o!=null&&r.setFragmentData(o)}},cut:function(t,e,r){var n=t,o=r.selection;if(!r.getConfig().readOnly&&yn(r,n.target)){n.preventDefault();var i=n.clipboardData;if(i!=null&&(r.setFragmentData(i),o))if(L.isExpanded(o))E.deleteFragment(r);else{var a=Q.parent(r,o.anchor.path);E.isVoid(r,a)&&N.delete(r)}}},paste:function(t,e,r){X1.set(r,!0);var n=t;if(!r.getConfig().readOnly&&yn(r,n.target)){var o=r.getConfig().customPaste;if(o&&o(r,n)===!1)return void X1.set(r,!1);if(!Wc||function(a){return a.clipboardData&&a.clipboardData.getData("text/plain")!==""&&a.clipboardData.types.length===1}(n)){n.preventDefault();var i=n.clipboardData;i!=null&&r.insertData(i)}}},dragover:function(t,e,r){if(Js(r,t.target)){var n=A.toSlateNode(r,t.target);E.isVoid(r,n)&&t.preventDefault()}},dragstart:function(t,e,r){var n=t;if(Js(r,n.target)&&!r.getConfig().readOnly){var o=A.toSlateNode(r,n.target),i=A.findPath(r,o);if(E.isVoid(r,o)||E.void(r,{at:i,voids:!0})){var a=E.range(r,i);N.select(r,a)}var u=n.dataTransfer;u!=null&&(e.isDraggingInternally=!0,r.setFragmentData(u))}},dragend:function(t,e,r){var n=t;r.getConfig().readOnly||e.isDraggingInternally&&Js(r,n.target)&&(e.isDraggingInternally=!1)},drop:function(t,e,r){var n=t,o=n.dataTransfer;if(!r.getConfig().readOnly&&Js(r,n.target)&&o!=null&&!(Wc&&Uc&&o.files.length>0)){n.preventDefault();var i=r.selection,a=A.findEventRange(r,n);N.select(r,a),e.isDraggingInternally&&(i&&N.delete(r,{at:i}),e.isDraggingInternally=!1),r.insertData(o),r.isFocused()||r.focus()}}},$Q=1,HQ=function(){function t(e){var r=this;this.id=$Q++,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=Hu(function(){var a=r.editorInstance;(function(u,s){var l=u.isComposing,c=u.isUpdatingSelection,f=u.isDraggingInternally;if(!(s.getConfig().readOnly||l||c||f)){var d=A.findDocumentOrShadowRoot(s),p=d.activeElement,v=A.toDOMNode(s,s),y=d.getSelection();if(p===v?(u.latestElement=p,Du.set(s,!0)):Du.delete(s),!y)return N.deselect(s);var g=y.anchorNode,m=y.focusNode,h=yn(s,g)||k9(s,g),b=yn(s,m)||k9(s,m);if(h&&b){var w=A.toSlateRange(s,y,{exactMatch:!1,suppressThrow:!1});N.select(s,w)}else N.deselect(s)}})(r,a)},100);var n=B(e);if(n.length===0)throw new Error("Cannot find textarea DOM by selector '"+e+"'");this.$box=n;var o=B('<div class="w-e-text-container"></div>');o.append(this.$progressBar),o.append(this.$maxLengthInfo),n.append(o);var i=B('<div class="w-e-scroll"></div>');o.append(i),this.$scroll=i,this.$textAreaContainer=o,Fn(function(){var a=r.editorInstance,u=A.getWindow(a);u.document.addEventListener("selectionchange",r.onDOMSelectionChange),a.on("destroyed",function(){u.document.removeEventListener("selectionchange",r.onDOMSelectionChange)}),o.on("click",function(){return a.hidePanelOrModal()}),a.on("change",r.changeViewState.bind(r));var s=a.getConfig().onChange;s&&a.on("change",function(){return s(a)}),r.onFocusAndOnBlur(),a.on("change",r.changeMaxLengthInfo.bind(r)),r.bindEvent()})}return Object.defineProperty(t.prototype,"editorInstance",{get:function(){var e=dE.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,r=this.$textArea,n=this.$scroll,o=this.editorInstance;r!=null&&(v5(zQ,function(i,a){r.on(a,function(u){i(u,e,o)})}),o.getConfig().scroll&&(n.css("overflow-y","auto"),n.on("scroll",Hu(function(){o.emit("scroll")},100))))},t.prototype.onFocusAndOnBlur=function(){var e=this,r=this.editorInstance,n=r.getConfig(),o=n.onBlur,i=n.onFocus;this.latestEditorSelection=r.selection,r.on("change",function(){e.latestEditorSelection==null&&r.selection!=null?setTimeout(function(){return i&&i(r)}):e.latestEditorSelection!=null&&r.selection==null&&setTimeout(function(){return o&&o(r)}),e.latestEditorSelection=r.selection})},t.prototype.changeMaxLengthInfo=function(){var e=this.editorInstance,r=e.getConfig().maxLength;if(r){var n=r-A.getLeftLengthOfMaxLength(e);this.$maxLengthInfo[0].innerHTML=n+"/"+r}},t.prototype.changeProgress=function(e){var r=this.$progressBar;r.css("width",e+"%"),e>=100&&setTimeout(function(){r.hide(),r.css("width","0"),r.show()},1e3)},t.prototype.changeViewState=function(){var e=this,r=this.editorInstance;IQ(this,r),function(n,o){var i,a=o.getConfig().placeholder;if(a){var u=o.isEmpty();if(u&&!n.showPlaceholder&&!n.isComposing){if(n.$placeholder==null){var s=B('<div class="w-e-text-placeholder">'+a+"</div>");n.$textAreaContainer.append(s),n.$placeholder=s}return n.$placeholder.show(),void(n.showPlaceholder=!0)}!u&&n.showPlaceholder&&((i=n.$placeholder)===null||i===void 0||i.hide(),n.showPlaceholder=!1)}}(this,r),Fn(function(){jN(e,r)})},t.prototype.destroy=function(){this.$textAreaContainer.remove()},t}();function uD(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&&uD(e)}function sD(){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 NN(){return B('<div class="w-e-bar-divider"></div>')}function IN(t,e,r,n,o){if(o===void 0&&(o=!1),e){if(n){var i=yE?"cmd":"ctrl";n=n.replace("mod",i)}if(o)n&&(t.attr("data-tooltip",n),t.addClass("w-e-menu-tooltip-v5"),t.addClass("tooltip-right"));else{var a=n?r+`
`+n:r;t.attr("data-tooltip",a),t.addClass("w-e-menu-tooltip-v5")}}}U5("match",function(t,e,r){return[function(n){var o=Bn(this),i=n==null?void 0:Uu(n,t);return i?Kt(i,n,o):new RegExp(n)[t](ue(o))},function(n){var o=Me(this),i=ue(n),a=r(e,o,i);if(a.done)return a.value;if(!o.global)return Ld(o,i);var u=o.unicode;o.lastIndex=0;for(var s,l=[],c=0;(s=Ld(o,i))!==null;){var f=ue(s[0]);l[c]=f,f===""&&(o.lastIndex=W5(i,ec(o.lastIndex),u)),c++}return c===0?null:l}]});var lD=function(){function t(e,r,n){var o=this;n===void 0&&(n=!1),this.$elem=B('<div class="w-e-bar-item"></div>'),this.$button=B('<button type="button"></button>'),this.disabled=!1,this.menu=r;var i=r.tag,a=r.width;if(i!=="button")throw new Error("Invalid tag '"+i+"', expected 'button'");var u=r.title,s=r.hotkey,l=s===void 0?"":s,c=r.iconSvg,f=c===void 0?"":c,d=this.$button;if(f){var p=B(f);uD(p),d.append(p)}else d.text(u);IN(d,f,u,l,n),n&&f&&d.append(B('<span class="title">'+u+"</span>")),a&&d.css("width",a+"px"),d.attr("data-menu-key",e),this.$elem.append(d),Fn(function(){return o.init()})}return t.prototype.init=function(){var e=this;this.setActive(),this.setDisabled(),this.$button.on("click",function(r){r.preventDefault(),tn(e).hidePanelOrModal(),e.disabled||(e.exec(),e.onButtonClick())})},t.prototype.exec=function(){var e=tn(this),r=this.menu,n=r.getValue(e);r.exec(e,n)},t.prototype.setActive=function(){var e=tn(this),r=this.$button,n="active";this.menu.isActive(e)?r.addClass(n):r.removeClass(n)},t.prototype.setDisabled=function(){var e=tn(this),r=this.$button,n=this.menu.isDisabled(e);(e.selection==null||e.isDisabled())&&(n=!0),this.menu.alwaysEnable&&(n=!1);var o="disabled";n?r.addClass(o):r.removeClass(o),this.disabled=n},t.prototype.changeMenuState=function(){this.setActive(),this.setDisabled()},t}(),VQ=function(t){function e(r,n,o){return o===void 0&&(o=!1),t.call(this,r,n,o)||this}return nc(e,t),e.prototype.onButtonClick=function(){},e}(lD),cD=function(){function t(e){this.isShow=!1,this.showTime=0,this.record(e)}return t.prototype.record=function(e){var r=hE.get(e);r==null&&(r=new Set,hE.set(e,r)),r.add(this),zg.set(this,e)},t.prototype.renderContent=function(e){var r=this.$elem;r.empty(),r.append(e);var n=this.genSelfElem();n&&r.append(n)},t.prototype.appendTo=function(e){var r=this.$elem;e.append(r)},t.prototype.show=function(){if(!this.isShow){this.showTime=Date.now(),this.$elem.show(),this.isShow=!0;var e=zg.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=zg.get(this);e&&e.emit("modalOrPanelHide")}},t}(),UQ=function(t){function e(r){var n=t.call(this,r)||this;return n.type="dropPanel",n.$elem=B('<div class="w-e-drop-panel"></div>'),n}return nc(e,t),e.prototype.genSelfElem=function(){return null},e}(cD),WQ=function(t){function e(r,n,o){o===void 0&&(o=!1);var i=t.call(this,r,n,o)||this;if(i.dropPanel=null,i.menu=n,n.showDropPanel){var a=sD();i.$button.append(a)}return i}return nc(e,t),e.prototype.onButtonClick=function(){this.menu.showDropPanel&&this.handleDropPanel()},e.prototype.handleDropPanel=function(){var r=this.menu;if(r.getPanelContentElem!=null){var n=tn(this);if(this.dropPanel==null){var o=new UQ(n),i=r.getPanelContentElem(n);o.renderContent(i),o.appendTo(this.$elem),o.show(),this.dropPanel=o}else{var a=this.dropPanel;a.isShow?a.hide():(i=r.getPanelContentElem(n),a.renderContent(i),a.show())}var u=this.dropPanel;if(u.isShow){var s=this.$elem,l=s.offset().left,c=s.parents(".w-e-bar");l-c.offset().left>=c.width()/2?u.$elem.css({left:"none",right:"0"}):u.$elem.css({left:"0",right:"none"})}}},e}(lD),GQ=function(t){function e(r,n){n===void 0&&(n=0);var o=t.call(this,r)||this;o.type="modal",o.$elem=B('<div class="w-e-modal"></div>'),o.width=0,n&&(o.width=n);var i=o.$elem;return i.on("click",function(a){return a.stopPropagation()}),i.on("keyup",function(a){a.code==="Escape"&&(o.hide(),r.restoreSelection())}),o}return nc(e,t),e.prototype.genSelfElem=function(){var r=this,n=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=zg.get(this);return n.on("click",function(){r.hide(),o==null||o.restoreSelection()}),n},e.prototype.setStyle=function(r){var n=this.width,o=this.$elem;o.attr("style",""),n&&o.css("width",n+"px"),o.css(r)},e}(cD);function rn(t,e,r){var n=B('<label class="babel-container"></label>');n.append("<span>"+t+"</span>");var o=B('<input type="text" id="'+e+'" placeholder="'+(r||"")+'">');return n.append(o),[n[0],o[0]]}function oc(t,e){var r=B('<div class="button-container"></div>'),n=B('<button type="button" id="'+t+'">'+e+"</button>");return r.append(n),[r[0],n[0]]}var qQ=function(t){function e(r,n,o){o===void 0&&(o=!1);var i=t.call(this,r,n,o)||this;return i.$body=B("body"),i.modal=null,i.menu=n,i}return nc(e,t),e.prototype.onButtonClick=function(){this.menu.showModal&&this.handleModal()},e.prototype.getPosition=function(){var r=tn(this),n=this.menu.getModalPositionNode(r);return ft.isElement(n)?aD(r,n,"modal"):iD(r)},e.prototype.handleModal=function(){var r=tn(this),n=this.menu;if(this.modal==null){var o=new GQ(r,n.modalWidth);this.renderAndShowModal(o,!0),this.modal=o}else(o=this.modal).isShow?o.hide():this.renderAndShowModal(o,!1)},e.prototype.renderAndShowModal=function(r,n){n===void 0&&(n=!1);var o=tn(this),i=this.menu;if(i.getModalContentElem!=null){var a=A.getTextarea(o),u=A.getToolbar(o),s=((u==null?void 0:u.getConfig())||{}).modalAppendToBody,l=i.getModalContentElem(o);if(r.renderContent(l),s)r.setStyle({left:"0",right:"0"});else{var c=this.getPosition();r.setStyle(c)}n&&(s?r.appendTo(this.$body):r.appendTo(a.$textAreaContainer)),r.show(),s||SE(o,r.$elem),setTimeout(function(){o.blur()})}},e}(lD),KQ=function(t){function e(r,n){var o=t.call(this,r)||this;return o.type="selectList",o.$elem=B('<div class="w-e-select-list"></div>'),n&&o.$elem.css("width",n+"px"),o.$elem.on("click",function(i){i.stopPropagation()}),o}return nc(e,t),e.prototype.renderList=function(r){var n=this.$elem;n.empty();var o=B("<ul></ul>");r.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)}),n.append(o)},e.prototype.genSelfElem=function(){return null},e}(cD),YQ=function(){function t(e,r,n){var o=this;n===void 0&&(n=!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=r.tag,a=r.title,u=r.width,s=r.iconSvg,l=s===void 0?"":s,c=r.hotkey,f=c===void 0?"":c;if(i!=="select")throw new Error("Invalid tag '"+i+"', expected 'select'");var d=this.$button;u&&d.css("width",u+"px"),d.attr("data-menu-key",e),IN(d,l,a,f,n),this.$elem.append(d),this.menu=r,Fn(function(){return o.init()})}return t.prototype.init=function(){var e=this;this.setSelectedValue(),this.$button.on("click",function(r){r.preventDefault(),tn(e).hidePanelOrModal(),e.trigger()})},t.prototype.trigger=function(){var e=this,r=tn(this);if(!r.isDisabled()&&!this.disabled){var n=this.menu;if(this.selectList==null){this.selectList=new KQ(r,n.selectPanelWidth);var o=this.selectList,i=n.getOptions(r);o.renderList(i),o.appendTo(this.$elem),o.show(),o.$elem.on("click","li",function(a){var u=a.target;if(u!=null){a.preventDefault();var s=B(u).attr("data-value");e.onChange(s)}})}else(o=this.selectList).isShow?o.hide():(i=n.getOptions(r),o.renderList(i),o.show())}},t.prototype.onChange=function(e){var r=tn(this),n=this.menu;n.exec&&n.exec(r,e)},t.prototype.setSelectedValue=function(){var e=tn(this),r=this.menu,n=r.getValue(e),o=function(u,s){for(var l=u.length,c="",f=0;f<l;f++){var d=u[f];if(d.value===s){c=d.text;break}}return c}(r.getOptions(e),n.toString()),i=this.$button,a=sD();i.empty(),i.text(o),i.append(a)},t.prototype.setDisabled=function(){var e=tn(this),r=this.menu.isDisabled(e),n=this.$button;(e.selection==null||e.isDisabled())&&(r=!0);var o="disabled";r?n.addClass(o):n.removeClass(o),this.disabled=r},t.prototype.changeMenuState=function(){this.setSelectedValue(),this.setDisabled()},t}(),F9=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 r=e.key,n=e.iconSvg,o=e.title,i=this.$elem,a=this.$button;if(n){var u=B(n);uD(u),a.append(u)}else a.text(o);a.attr("data-menu-key",r);var s=sD();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 r=e.$elem;this.$container.append(r)},t.prototype.observe=function(e){var r=this.$container;e.observe(r[0],{childList:!0,subtree:!0,attributes:!0})},t.prototype.createObserver=function(){var e=this,r=this.$container,n=this.$button,o=new MutationObserver(function(){var i=r.find("button"),a=i.length;if(a!==0){var u=0;i.each(function(s){B(s).hasClass("disabled")&&u++}),o.disconnect(),u===a?n.addClass("disabled"):n.removeClass("disabled"),e.observe(o)}});return o},t}(),T9=new WeakMap;function tn(t){var e=q5.get(t);if(e==null)throw new Error("Can not get editor instance");return e}function LN(t,e,r){r===void 0&&(r=!1);var n=T9.get(e);if(n)return n;var o=e.tag;if(o==="button"){var i=e.showDropPanel,a=e.showModal;n=i?new WQ(t,e,r):a?new qQ(t,e,r):new VQ(t,e,r)}if(o==="select"&&(n=new YQ(t,e,r)),n==null)throw new Error("Invalid tag in menu "+JSON.stringify(e));return T9.set(e,n),n}function XQ(t,e){var r=t.selection;return r!=null&&!L.isCollapsed(r)&&!A.getSelectedElems(t).some(function(n){if(t.isVoid(n))return!0;var o=n.type;return!!["pre","code","table"].includes(o)||void 0})&&!!it.isText(e)}var ZQ=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=pj(function(){var r=e.isShow,n=e.getSelectedNodeAndMenuKeys()||{},o=n.node,i=o===void 0?null:o,a=n.menuKeys,u=a===void 0?[]:a;i!=null&&e.changeItemsState(),i&&ft.isElement(i)&&r&&e.isSamePath(i,e.prevSelectedNode)||(e.hideAndClean(),i!=null&&(e.registerItems(u),e.setPosition(i),e.show()),e.prevSelectedNode=i)},200),Fn(function(){var r=e.getEditorInstance(),n=e.$elem;n.on("mousedown",function(i){return i.preventDefault()},{passive:!1}),A.getTextarea(r).$textAreaContainer.append(n),r.on("change",e.changeHoverbarState);var o=e.hideAndClean.bind(e);r.on("scroll",o),r.on("fullScreen",o),r.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,r=!1,n=window.innerHeight;n&&n>=360&&n-e[0].getBoundingClientRect().bottom<360&&(r=!0),r?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;Fn(function(){e.hoverbarItems.forEach(function(r){r.changeMenuState()})})},t.prototype.registerItems=function(e){var r=this,n=this.$elem;e.forEach(function(o){if(o!=="|")r.registerSingleItem(o);else{var i=NN();n.append(i)}})},t.prototype.registerSingleItem=function(e){var r=this.getEditorInstance(),n=this.menus,o=n[e];if(o==null){var i=zd[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(),n[e]=o}var a=LN(e,o);this.hoverbarItems.push(a),q5.set(a,r),this.$elem.append(a.$elem)},t.prototype.setPosition=function(e){var r=this.getEditorInstance(),n=this.$elem;if(n.attr("style",""),ft.isElement(e)){var o=aD(r,e,"bar");return n.css(o),void SE(r,n)}if(it.isText(e))return o=iD(r),n.css(o),void SE(r,n);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 r=this.getHoverbarKeysConf(),n=null,o=[],i=function(u){var s=r[u],l=s.match,c=s.menuKeys,f=c===void 0?[]:c,d=l||function(y,g){return A.checkNodeType(g,u)},p=Vt(E.nodes(e,{match:function(y){return d(e,y)},universal:!0}),1),v=p[0];if(v!=null)return n=v[0],o=f,"break"};for(var a in r)if(i(a)==="break")break;return n==null||o.length===0?null:{node:n,menuKeys:o}},t.prototype.getEditorInstance=function(){var e=pE.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,r=e===void 0?{}:e,n=r.text;return n&&n.match==null&&(n.match=XQ),r},t.prototype.isSamePath=function(e,r){if(e==null||r==null)return!1;var n=A.findPath(null,e),o=A.findPath(null,r);return j.equals(n,o)},t.prototype.destroy=function(){this.changeHoverbarState.cancel(),this.$elem.remove(),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null},t}();function RN(t,e,r,n){if(Md.set(t,e),Rl.set(t,r),ft.isElement(t)){var o=t.children;if((o===void 0?[]:o).forEach(function(u,s){return RN(u,s,t,n)}),E.isVoid(n,t)){var i=Vt(Q.texts(t),1),a=Vt(i[0],1)[0];Md.set(a,0),Rl.set(a,t)}}}function JQ(t){var e=t.selector,r=e===void 0?"":e,n=t.config,o=n===void 0?{}:n,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:D}=w;if(D.length>0){var x=D[D.length-1];rl.withoutSaving(h,()=>{E.withoutNormalizing(h,()=>{for(var C of x)h.apply(C)})}),w.redos.pop(),w.undos.push(x)}},h.undo=()=>{var{history:w}=h,{undos:D}=w;if(D.length>0){var x=D[D.length-1];rl.withoutSaving(h,()=>{E.withoutNormalizing(h,()=>{var C=x.map(Ui.inverse).reverse();for(var O of C)h.apply(O)})}),w.redos.push(x),w.undos.pop()}},h.apply=w=>{var{operations:D,history:x}=h,{undos:C}=x,O=C[C.length-1],T=O&&O[O.length-1],R=((U,W)=>!(!W||U.type!=="set_selection"||W.type!=="set_selection"))(w,T),H=rl.isSaving(h),M=rl.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&&(D.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,T)||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,D=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(T){h.insertNode(T)});else{var O=C[0];if(A.getLeftLengthOfMaxLength(h)<Q.string(O).length)return;D(C)}else D(C)},h.dangerouslyInsertHtml=function(C,O){if(C===void 0&&(C=""),O===void 0&&(O=!1),C)if(h.getConfig().maxLength){var T=A.getLeftLengthOfMaxLength(h);if(!(T<=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===go.TEXT_NODE?M+(K.textContent||""):U===go.ELEMENT_NODE?h9.has(W.toLowerCase())?M:M+(K.textContent||""):M:M},"");T<H.length||x(C,O)}}else x(C,O)},h}(function(m){var h=m;return h.on=function(b,w){var D=$h(h);if(D.on(b,w),b==="destroyed"&&b9(h,w),b!=="destroyed"){var x=function(){return D.off(b,w)};D.on("destroyed",x),b9(h,x)}},h.once=function(b,w){$h(h).once(b,w)},h.off=function(b,w){$h(h).off(b,w)},h.emit=function(b){for(var w=[],D=1;D<arguments.length;D++)w[D-1]=arguments[D];var x=$h(h);x.emit.apply(x,lE([b],Vt(w))),b==="destroyed"&&(xQ(h).forEach(function(C){return x.off("destroyed",C)}),SQ(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=Y1.get(h);b!=null&&(h.focus(),N.select(h,b))},h.getSelectionPosition=function(){return iD(h)},h.getNodePosition=function(b){return aD(h,b)},h.isSelectedAll=function(){var b=h.selection;if(b==null)return!1;var w=Vt(L.edges(b),2),D=w[0],x=w[1],C=Vt(E.edges(h,[]),2),O=C[0],T=C[1];return!(!Ft.equals(D,O)||!Ft.equals(x,T))},h.selectAll=function(){var b=E.start(h,[]),w=E.end(h,[]);N.select(h,{anchor:b,focus:w})},h}(function(m){var h=m,b=h.onChange,w=h.insertText,D=h.apply,x=h.deleteBackward;return h.insertText=function(C){h.getConfig().readOnly||w(C)},h.apply=function(C){var O,T,R,H,M,K,U,W,q=[];switch(C.type){case"insert_text":case"remove_text":case"set_node":try{for(var rt=En(E.levels(h,{at:C.path})),lt=rt.next();!lt.done;lt=rt.next()){var st=Vt(lt.value,2),ut=st[0],k=st[1],S=A.findKey(h,ut);q.push([k,S])}}catch(Lt){O={error:Lt}}finally{try{lt&&!lt.done&&(T=rt.return)&&T.call(rt)}finally{if(O)throw O.error}}break;case"insert_node":case"remove_node":case"merge_node":case"split_node":try{for(var P=En(E.levels(h,{at:j.parent(C.path)})),$=P.next();!$.done;$=P.next()){var Y=Vt($.value,2);ut=Y[0],k=Y[1],S=A.findKey(h,ut),q.push([k,S])}}catch(Lt){R={error:Lt}}finally{try{$&&!$.done&&(H=P.return)&&H.call(P)}finally{if(R)throw R.error}}break;case"move_node":try{for(var V=En(E.levels(h,{at:j.common(j.parent(C.path),j.parent(C.newPath))})),at=V.next();!at.done;at=V.next()){var vt=Vt(at.value,2);ut=vt[0],k=vt[1],S=A.findKey(h,ut),q.push([k,S])}}catch(Lt){M={error:Lt}}finally{try{at&&!at.done&&(K=V.return)&&K.call(V)}finally{if(M)throw M.error}}}D(C);try{for(var yt=En(q),Ct=yt.next();!Ct.done;Ct=yt.next()){var G=Vt(Ct.value,2);k=G[0],S=G[1],ut=Vt(E.node(h,k),1)[0],$g.set(ut,S)}}catch(Lt){U={error:Lt}}finally{try{Ct&&!Ct.done&&(W=yt.return)&&W.call(yt)}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=E.above(m,{match:function(M){return E.isBlock(m,M)},at:m.selection});if(O){var T=Vt(O,2)[1],R=E.range(m,T,m.selection.anchor),H=function(M,K){var U=E.range(M,L.end(K)),W=Array.from(E.positions(M,{at:K})),q=0,rt=W.length,lt=Math.floor(rt/2);if(i9(M,E.range(M,W[q]),U))return E.range(M,W[q],U);if(W.length<2)return E.range(M,W[W.length-1],U);for(;lt!==W.length&&lt!==q;)i9(M,E.range(M,W[lt]),U)?rt=lt:q=lt,lt=Math.floor((q+rt)/2);return E.range(M,W[rt],U)}(h,R);L.isCollapsed(H)||N.delete(m,{at:H})}}},h.onChange=function(){var C=h.selection;C!=null&&Y1.set(h,C),h.emit("change"),b()},h.handleTab=function(){h.insertText(" ")},h.getHtml=function(){var C=h.children;return(C===void 0?[]:C).map(function(O){return xN(O,h)}).join("")},h.getText=function(){var C=h.children;return(C===void 0?[]:C).map(function(O){return Q.string(O)}).join(`
`)},h.getSelectionText=function(){var C=h.selection;return C==null?"":E.string(m,C)},h.getElemsByType=function(C,O){var T,R;O===void 0&&(O=!1);var H=[],M=E.nodes(h,{at:[],universal:!0});try{for(var K=En(M),U=K.next();!U.done;U=K.next()){var W=Vt(U.value,1)[0];if(ft.isElement(W)&&(O?W.type.indexOf(C)>=0:W.type===C)){var q=SN(A.findKey(h,W).id);H.push(wn(wn({},W),{id:q}))}}}catch(rt){T={error:rt}}finally{try{U&&!U.done&&(R=K.return)&&R.call(K)}finally{if(T)throw T.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 T=O[0];if(T==null)return!0;if(ft.isElement(T)&&T.type==="paragraph"){var R=T.children,H=R===void 0?[]:R;if(H.length>1)return!1;var M=H[0];if(M==null||it.isText(M)&&M.text==="")return!0}return!1},h.clear=function(){N.delete(h,{at:{anchor:E.start(h,[]),focus:E.end(h,[])}}),h.children.length===0&&N.insertNodes(h,[{type:"paragraph",children:[{text:""}]}])},h.getParentNode=function(C){return A.getParentNode(h,C)},h.dangerouslyInsertHtml=function(C,O){if(C===void 0&&(C=""),O===void 0&&(O=!1),C){var T=document.createElement("div");T.innerHTML=C;var R=Array.from(T.childNodes);if(R=R.filter(function(U){var W=U.nodeType,q=U.nodeName;return W===go.TEXT_NODE||W===go.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]]),T.setAttribute("hidden","true"),document.body.appendChild(T);var K=0;R.forEach(function(U){var W=U.nodeType,q=U.nodeName,rt=U.textContent,lt=rt===void 0?"":rt;if(W!==go.TEXT_NODE)if(q!=="BR"){var st=U,ut=!1;if(AN.includes(q.toLowerCase()))ut=!0;else for(var k in r0)if(st.matches(k)){ut=!0;break}if(ut){var S=rD(B(st),h);return Array.isArray(S)?(S.forEach(function($){return g9(h,$)}),K++):(g9(h,S),K++),void(A.isSelectedVoidNode(h)&&h.move(1))}var P=window.getComputedStyle(st).display;A.isSelectedEmptyParagraph(h)||P.indexOf("inline")<0&&h.insertBreak(),h.dangerouslyInsertHtml(st.innerHTML,!0)}else h.insertText(`
`);else{if(!lt||!lt.trim())return;h.insertNode({text:lt})}}),K&&M&&A.isEmptyPath(h,M)&&N.removeNodes(h,{at:M}),T.remove()}}}},h.setHtml=function(C){C===void 0&&(C="");var O=h.isDisabled(),T=h.isFocused(),R=JSON.stringify(h.selection);h.enable(),h.focus(),h.clear();var H=f9(h,C);if(N.insertFragment(h,H),T||(h.deselect(),h.blur()),O&&(h.deselect(),h.disable()),h.isFocused())try{h.select(JSON.parse(R))}catch(M){h.select(E.start(h,[]))}},h}(function(m){var h=m;return h.getAllMenuKeys=function(){var b=[];for(var w in zd)b.push(w);return b},h.getConfig=function(){var b=j7.get(h);if(b==null)throw new Error("Can not get editor config");return b},h.getMenuConfig=function(b){var w=h.getConfig().MENU_CONF;return(w===void 0?{}:w)[b]||{}},h.alert=function(b,w){w===void 0&&(w="info");var D=h.getConfig().customAlert;D&&D(b,w)},h}(function(m){var h=fQ(jW());return h.id="wangEditor-"+mJ++,h.isDestroyed=!1,h.isFullScreen=!1,h.focus=function(b){if(A.toDOMNode(h,h).focus({preventScroll:!0}),Du.set(h,!0),b){var w=E.end(h,[]);N.select(h,w)}else{var D=Y1.get(h);D?N.select(h,D):N.select(h,E.start(h,[]))}},h.isFocused=function(){return!!Du.get(h)},h.blur=function(){A.toDOMNode(h,h).blur(),N.deselect(h),Du.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(),fE.delete(h),dE.delete(b);var w=A.getToolbar(h);w&&(w.destroy(),zy.delete(h),G5.delete(w));var D=A.getHoverbar(h);D&&(D.destroy(),Zv.delete(h),pE.delete(D)),h.isDestroyed=!0,h.emit("destroyed")}},h.scrollToElem=function(b){if(!h.getConfig().scroll){var w="编辑器禁用了 scroll ,编辑器内容无法滚动,请自行实现该功能";return w+=`
You has disabled editor scroll, please do this yourself`,void console.warn(w)}var D=B("#"+b);if(D.length!==0){var x=D[0];if(!A.hasDOMNode(h,x))return w="Element (found by id is '"+b+"') is not in editor DOM",w+=`
通过 id '`+b+"' 找到的 element 不在 editor DOM 之内",void console.error(w,x);var C=A.getTextarea(h),O=C.$textAreaContainer,T=C.$scroll,R=D.offset().top,H=O.offset().top;T[0].scrollBy({top:R-H,behavior:"smooth"})}},h.showProgressBar=function(b){b<1||A.getTextarea(h).changeProgress(b)},h.hidePanelOrModal=function(){var b=hE.get(h);b!=null&&b.forEach(function(w){return w.hide()})},h.enable=function(){h.getConfig().readOnly=!1,h.updateView()},h.disable=function(){h.getConfig().readOnly=!0,h.updateView()},h.isDisabled=function(){return h.getConfig().readOnly},h.toDOMNode=function(b){return A.toDOMNode(h,b)},h.fullScreen=function(){if(!h.isFullScreen){var b=null,w=A.getToolbar(h);w&&(b=w.$box);var D=A.getTextarea(h).$box.parent();if(b&&b.parent()[0]!==D[0])throw new Error(`Can not set full screen, cause toolbar DOM parent is not equal to textarea DOM parent
不能设置全屏,因为 toolbar DOM 父节点和 textarea DOM 父节点不一致`);D.addClass("w-e-full-screen-container");var x=D.css("z-index");D.attr("data-z-index",x.toString()),h.isFullScreen=!0,h.emit("fullScreen")}},h.unFullScreen=function(){if(h.isFullScreen){var b=A.getTextarea(h).$box.parent();setTimeout(function(){b.removeClass("w-e-full-screen-container"),h.isFullScreen=!1,h.emit("unFullScreen")},200)}},h.getEditableContainer=function(){return A.getTextarea(h).$textAreaContainer[0]},h}()))))));if(r&&function(m,h){return FN(m,"data-w-e-textarea",h)}(l,r))throw new Error("Repeated create editor by selector '"+r+"'");var c=function(m){m===void 0&&(m={});var h=hj(sN),b={},w=m.MENU_CONF,D=w===void 0?{}:w;return v5(h,function(x,C){b[C]=wn(wn({},x),D[C]||{})}),delete m.MENU_CONF,wn({scroll:!0,readOnly:!1,autoFocus:!0,decorate:function(){return[]},maxLength:0,MENU_CONF:b,hoverbarKeys:{},customAlert:function(x,C){window.alert(C+`:
`+x)}},m)}(o);j7.set(l,c);var f=c.hoverbarKeys,d=f===void 0?{}:f;if(s.forEach(function(m){l=m(l)}),a!=null&&(l.children=f9(l,a)),i&&i.length&&(l.children=i),l.children.length===0&&(l.children=[{type:"paragraph",children:[{text:""}]}]),A.normalizeContent(l),r){var p=new HQ(r);fE.set(l,p),dE.set(p,l),p.changeViewState(),Fn(function(){var m=p.$scroll;m!=null&&m.height()<300&&console.warn(`编辑区域高度 < 300px 这可能会导致 modal hoverbar 定位异常
Textarea height < 300px . This may be cause modal and hoverbar position error`,m)});var v=void 0;Object.keys(d).length>0&&(v=new ZQ,pE.set(v,l),Zv.set(l,v)),l.on("change",function(){l.hidePanelOrModal()}),l.on("scroll",function(){l.hidePanelOrModal()})}else l.children.forEach(function(m,h){return RN(m,h,l,l)});var y=c.onCreated,g=c.onDestroyed;return y&&l.on("created",function(){return y(l)}),g&&l.on("destroyed",function(){return g(l)}),Fn(function(){return l.emit("created")}),l}var QQ=Iy("splice"),ttt=X.TypeError,ett=Math.max,rtt=Math.min;xe({target:"Array",proto:!0,forced:!QQ},{splice:function(t,e){var r,n,o,i,a,u,s=ka(this),l=us(s),c=jl(t,l),f=arguments.length;if(f===0?r=n=0:f===1?(r=0,n=l-c):(r=f-2,n=rtt(ett(Pp(e),0),l-c)),l+r-n>9007199254740991)throw ttt("Maximum allowed length exceeded");for(o=Nj(s,n),i=0;i<n;i++)(a=c+i)in s&&Nd(o,i,s[a]);if(o.length=n,r<n){for(i=c;i<l-n;i++)u=i+r,(a=i+n)in s?s[u]=s[a]:delete s[u];for(i=l;i>l-n+r;i--)delete s[i-1]}else if(r>n)for(i=l-n;i>c;i--)u=i+r-1,(a=i+n-1)in s?s[u]=s[a]:delete s[u];for(i=0;i<r;i++)s[i+c]=arguments[i+2];return s.length=l-n+r,o}});var ntt=function(){function t(e,r){var n=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=pj(function(){n.toolbarItems.forEach(function(a){a.changeMenuState()})},200),this.config=r;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),Fn(function(){n.registerItems(),n.changeToolbarState(),n.getEditorInstance().on("change",n.changeToolbarState)})}return t.prototype.getMenus=function(){return this.menus},t.prototype.getConfig=function(){return this.config},t.prototype.registerItems=function(){var e=this,r="",n=this.$toolbar,o=this.config,i=o.toolbarKeys,a=i===void 0?[]:i,u=o.insertKeys,s=u===void 0?{index:0,keys:[]}:u,l=o.excludeKeys,c=l===void 0?[]:l,f=hj(a);s.keys.length>0&&(typeof s.keys=="string"&&(s.keys=[s.keys]),s.keys.forEach(function(v,y){f.splice(s.index+y,0,v)}));var d=f.filter(function(v){if(typeof v=="string"){if(c.includes(v))return!1}else if(c.includes(v.key))return!1;return!0}),p=d.length;d.forEach(function(v,y){if(v==="|"){if(y===0||y+1===p||r==="|")return;var g=NN();return n.append(g),void(r=v)}if(typeof v=="string")return e.registerSingleItem(v,e),void(r=v);e.registerGroup(v),r="group"})},t.prototype.registerGroup=function(e){var r=this,n=this.$toolbar,o=function(l){return new F9(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)||r.registerSingleItem(l,o)}),n.append(o.$elem)},t.prototype.registerSingleItem=function(e,r){var n=this.getEditorInstance(),o=r instanceof F9,i=this.menus,a=i[e];if(a==null){var u=zd[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+`'
重复注册了菜单栏 menu '`+e+"'");var s=LN(e,a,o);this.toolbarItems.push(s),q5.set(s,n),o?r.appendBarItem(s):r.$toolbar.append(s.$elem)},t.prototype.getEditorInstance=function(){var e=G5.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}(),ott=tc.EXISTS,itt=to.f,MN=Function.prototype,att=ht(MN.toString),zN=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,utt=ht(zN.exec);function $N(t){var e=t.server,r=e===void 0?"":e,n=t.fieldName,o=n===void 0?"":n,i=t.maxFileSize,a=i===void 0?10485760:i,u=t.maxNumberOfFiles,s=u===void 0?100:u,l=t.meta,c=l===void 0?{}:l,f=t.metaWithUrl,d=f!==void 0&&f,p=t.headers,v=p===void 0?{}:p,y=t.withCredentials,g=y!==void 0&&y,m=t.timeout,h=m===void 0?1e4:m,b=t.onBeforeUpload,w=b===void 0?function(K){return K}:b,D=t.onSuccess,x=D===void 0?function(K,U){}:D,C=t.onError,O=C===void 0?function(K,U,W){console.error(K.name+" upload error",U,W)}:C,T=t.onProgress,R=T===void 0?function(K){}:T;if(!r)throw new Error(`Cannot get upload server address
没有配置上传地址`);if(!o)throw new Error(`Cannot get fieldName
没有配置 fieldName`);var H=r;d&&(H=function(K,U){var W=Vt(K.split("#"),2),q=W[0],rt=W[1],lt=[];v5(U,function(ut,k){lt.push(k+"="+ut)});var st=lt.join("&");return q=q.indexOf("?")>0?q+"&"+st:q+"?"+st,rt?q+"#"+rt:q}(H,c));var M=new Hf({onBeforeUpload:w,restrictions:{maxFileSize:a,maxNumberOfFiles:s},meta:c}).use(_Y,{endpoint:H,headers:v,formData:!0,fieldName:o,bundle:!0,withCredentials:g,timeout:h});return M.on("upload-success",function(K,U){var W=U.body,q=W===void 0?{}:W;try{x(K,q)}catch(rt){console.error("wangEditor upload file - onSuccess error",rt)}M.removeFile(K.id)}),M.on("progress",function(K){K<1||R(K)}),M.on("upload-error",function(K,U,W){try{O(K,U,W)}catch(q){console.error("wangEditor upload file - onError error",q)}M.removeFile(K.id)}),M.on("restriction-failed",function(K,U){try{O(K,U)}catch(W){console.error("wangEditor upload file - onError error",W)}M.removeFile(K.id)}),M}function Qi(t){return Qi=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},Qi(t)}function stt(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function We(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?Object(arguments[e]):{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&n.push.apply(n,Object.getOwnPropertySymbols(r).filter(function(o){return Object.getOwnPropertyDescriptor(r,o).enumerable})),n.forEach(function(o){stt(t,o,r[o])})}return t}function ci(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _9(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function fi(t,e,r){return e&&_9(t.prototype,e),r&&_9(t,r),t}function qu(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Hd(t,e){if(e&&(Qi(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return qu(t)}function Ml(t){return Ml=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ml(t)}function kE(t,e){return kE=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r},kE(t,e)}function $y(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&&kE(t,e)}ir&&!ott&&itt(MN,"name",{configurable:!0,get:function(){try{return utt(zN,att(this))[1]}catch(t){return""}}});var ltt={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)}},Qo=new(function(){function t(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};ci(this,t),this.init(e,r)}return fi(t,[{key:"init",value:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=r.prefix||"i18next:",this.logger=e||ltt,this.options=r,this.debug=r.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return this.forward(r,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return this.forward(r,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return this.forward(r,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return this.forward(r,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,r,n,o){return o&&!this.debug?null:(typeof e[0]=="string"&&(e[0]="".concat(n).concat(this.prefix," ").concat(e[0])),this.logger[r](e))}},{key:"create",value:function(e){return new t(this.logger,We({},{prefix:"".concat(this.prefix,":").concat(e,":")},this.options))}}]),t}()),ma=function(){function t(){ci(this,t),this.observers={}}return fi(t,[{key:"on",value:function(e,r){var n=this;return e.split(" ").forEach(function(o){n.observers[o]=n.observers[o]||[],n.observers[o].push(r)}),this}},{key:"off",value:function(e,r){this.observers[e]&&(r?this.observers[e]=this.observers[e].filter(function(n){return n!==r}):delete this.observers[e])}},{key:"emit",value:function(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];if(this.observers[e]){var i=[].concat(this.observers[e]);i.forEach(function(u){u.apply(void 0,n)})}if(this.observers["*"]){var a=[].concat(this.observers["*"]);a.forEach(function(u){u.apply(u,[e].concat(n))})}}}]),t}();function Xc(){var t,e,r=new Promise(function(n,o){t=n,e=o});return r.resolve=t,r.reject=e,r}function P9(t){return t==null?"":""+t}function ctt(t,e,r){t.forEach(function(n){e[n]&&(r[n]=e[n])})}function fD(t,e,r){function n(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=n(i.shift());!t[a]&&r&&(t[a]=new r),t=Object.prototype.hasOwnProperty.call(t,a)?t[a]:{}}return o()?{}:{obj:t,k:n(i.shift())}}function j9(t,e,r){var n=fD(t,e,Object);n.obj[n.k]=r}function o0(t,e){var r=fD(t,e),n=r.obj,o=r.k;if(n)return n[o]}function N9(t,e,r){var n=o0(t,r);return n!==void 0?n:o0(e,r)}function HN(t,e,r){for(var n in e)n!=="__proto__"&&n!=="constructor"&&(n in t?typeof t[n]=="string"||t[n]instanceof String||typeof e[n]=="string"||e[n]instanceof String?r&&(t[n]=e[n]):HN(t[n],e[n],r):t[n]=e[n]);return t}function ks(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var ftt={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function dtt(t){return typeof t=="string"?t.replace(/[&<>"'\/]/g,function(e){return ftt[e]}):t}var Hy=typeof window!="undefined"&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1;function VN(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(t){if(t[e])return t[e];for(var n=e.split(r),o=t,i=0;i<n.length;++i){if(!o||typeof o[n[i]]=="string"&&i+1<n.length)return;if(o[n[i]]===void 0){for(var a=2,u=n.slice(i,i+a).join(r),s=o[u];s===void 0&&n.length>i+a;)a++,s=o[u=n.slice(i,i+a).join(r)];if(s===void 0)return;if(typeof s=="string")return s;if(u&&typeof s[u]=="string")return s[u];var l=n.slice(i+a).join(r);return l?VN(s,l,r):void 0}o=o[n[i]]}return o}}var ptt=function(t){function e(r){var n,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return ci(this,e),n=Hd(this,Ml(e).call(this)),Hy&&ma.call(qu(n)),n.data=r||{},n.options=o,n.options.keySeparator===void 0&&(n.options.keySeparator="."),n.options.ignoreJSONStructure===void 0&&(n.options.ignoreJSONStructure=!0),n}return $y(e,ma),fi(e,[{key:"addNamespaces",value:function(r){this.options.ns.indexOf(r)<0&&this.options.ns.push(r)}},{key:"removeNamespaces",value:function(r){var n=this.options.ns.indexOf(r);n>-1&&this.options.ns.splice(n,1)}},{key:"getResource",value:function(r,n,o){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,u=i.ignoreJSONStructure!==void 0?i.ignoreJSONStructure:this.options.ignoreJSONStructure,s=[r,n];o&&typeof o!="string"&&(s=s.concat(o)),o&&typeof o=="string"&&(s=s.concat(a?o.split(a):o)),r.indexOf(".")>-1&&(s=r.split("."));var l=o0(this.data,s);return l||!u||typeof o!="string"?l:VN(this.data&&this.data[r]&&this.data[r][n],o,a)}},{key:"addResource",value:function(r,n,o,i){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},u=this.options.keySeparator;u===void 0&&(u=".");var s=[r,n];o&&(s=s.concat(u?o.split(u):o)),r.indexOf(".")>-1&&(i=n,n=(s=r.split("."))[1]),this.addNamespaces(n),j9(this.data,s,i),a.silent||this.emit("added",r,n,o,i)}},{key:"addResources",value:function(r,n,o){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var a in o)typeof o[a]!="string"&&Object.prototype.toString.apply(o[a])!=="[object Array]"||this.addResource(r,n,a,o[a],{silent:!0});i.silent||this.emit("added",r,n,o)}},{key:"addResourceBundle",value:function(r,n,o,i,a){var u=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},s=[r,n];r.indexOf(".")>-1&&(i=o,o=n,n=(s=r.split("."))[1]),this.addNamespaces(n);var l=o0(this.data,s)||{};i?HN(l,o,a):l=We({},l,o),j9(this.data,s,l),u.silent||this.emit("added",r,n,o)}},{key:"removeResourceBundle",value:function(r,n){this.hasResourceBundle(r,n)&&delete this.data[r][n],this.removeNamespaces(n),this.emit("removed",r,n)}},{key:"hasResourceBundle",value:function(r,n){return this.getResource(r,n)!==void 0}},{key:"getResourceBundle",value:function(r,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?We({},{},this.getResource(r,n)):this.getResource(r,n)}},{key:"getDataByLanguage",value:function(r){return this.data[r]}},{key:"toJSON",value:function(){return this.data}}]),e}(),UN={processors:{},addPostProcessor:function(t){this.processors[t.name]=t},handle:function(t,e,r,n,o){var i=this;return t.forEach(function(a){i.processors[a]&&(e=i.processors[a].process(e,r,n,o))}),e}},I9={},L9=function(t){function e(r){var n,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return ci(this,e),n=Hd(this,Ml(e).call(this)),Hy&&ma.call(qu(n)),ctt(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],r,qu(n)),n.options=o,n.options.keySeparator===void 0&&(n.options.keySeparator="."),n.logger=Qo.create("translator"),n}return $y(e,ma),fi(e,[{key:"changeLanguage",value:function(r){r&&(this.language=r)}},{key:"exists",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(r==null)return!1;var o=this.resolve(r,n);return o&&o.res!==void 0}},{key:"extractFromKey",value:function(r,n){var o=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;o===void 0&&(o=":");var i=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,a=n.ns||this.options.defaultNS;if(o&&r.indexOf(o)>-1){var u=r.match(this.interpolator.nestingRegexp);if(u&&u.length>0)return{key:r,namespaces:a};var s=r.split(o);(o!==i||o===i&&this.options.ns.indexOf(s[0])>-1)&&(a=s.shift()),r=s.join(i)}return typeof a=="string"&&(a=[a]),{key:r,namespaces:a}}},{key:"translate",value:function(r,n,o){var i=this;if(Qi(n)!=="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),n||(n={}),r==null)return"";Array.isArray(r)||(r=[String(r)]);var a=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,u=this.extractFromKey(r[r.length-1],n),s=u.key,l=u.namespaces,c=l[l.length-1],f=n.lng||this.language,d=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(f&&f.toLowerCase()==="cimode"){if(d){var p=n.nsSeparator||this.options.nsSeparator;return c+p+s}return s}var v=this.resolve(r,n),y=v&&v.res,g=v&&v.usedKey||s,m=v&&v.exactUsedKey||s,h=Object.prototype.toString.apply(y),b=["[object Number]","[object Function]","[object RegExp]"],w=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,D=!this.i18nFormat||this.i18nFormat.handleAsObject,x=typeof y!="string"&&typeof y!="boolean"&&typeof y!="number";if(D&&y&&x&&b.indexOf(h)<0&&(typeof w!="string"||h!=="[object Array]")){if(!n.returnObjects&&!this.options.returnObjects)return this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,y,We({},n,{ns:l})):"key '".concat(s," (").concat(this.language,")' returned an object instead of string.");if(a){var C=h==="[object Array]",O=C?[]:{},T=C?m:g;for(var R in y)if(Object.prototype.hasOwnProperty.call(y,R)){var H="".concat(T).concat(a).concat(R);O[R]=this.translate(H,We({},n,{joinArrays:!1,ns:l})),O[R]===H&&(O[R]=y[R])}y=O}}else if(D&&typeof w=="string"&&h==="[object Array]")(y=y.join(w))&&(y=this.extendTranslation(y,r,n,o));else{var M=!1,K=!1,U=n.count!==void 0&&typeof n.count!="string",W=e.hasDefaultValue(n),q=U?this.pluralResolver.getSuffix(f,n.count):"",rt=n["defaultValue".concat(q)]||n.defaultValue;!this.isValidLookup(y)&&W&&(M=!0,y=rt),this.isValidLookup(y)||(K=!0,y=s);var lt=n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,st=lt&&K?void 0:y,ut=W&&rt!==y&&this.options.updateMissing;if(K||M||ut){if(this.logger.log(ut?"updateKey":"missingKey",f,c,s,ut?rt:y),a){var k=this.resolve(s,We({},n,{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,n.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(n.lng||this.language):S.push(n.lng||this.language);var Y=function(V,at,vt){i.options.missingKeyHandler?i.options.missingKeyHandler(V,c,at,ut?vt:st,ut,n):i.backendConnector&&i.backendConnector.saveMissing&&i.backendConnector.saveMissing(V,c,at,ut?vt:st,ut,n),i.emit("missingKey",V,c,at,y)};this.options.saveMissing&&(this.options.saveMissingPlurals&&U?S.forEach(function(V){i.pluralResolver.getSuffixes(V).forEach(function(at){Y([V],s+at,n["defaultValue".concat(at)]||rt)})}):Y(S,s,rt))}y=this.extendTranslation(y,r,n,v,o),K&&y===s&&this.options.appendNamespaceToMissingKey&&(y="".concat(c,":").concat(s)),(K||M)&&this.options.parseMissingKeyHandler&&(y=this.options.parseMissingKeyHandler(y))}return y}},{key:"extendTranslation",value:function(r,n,o,i,a){var u=this;if(this.i18nFormat&&this.i18nFormat.parse)r=this.i18nFormat.parse(r,o,i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!o.skipInterpolation){o.interpolation&&this.interpolator.init(We({},o,{interpolation:We({},this.options.interpolation,o.interpolation)}));var s,l=o.interpolation&&o.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;if(l){var c=r.match(this.interpolator.nestingRegexp);s=c&&c.length}var f=o.replace&&typeof o.replace!="string"?o.replace:o;if(this.options.interpolation.defaultVariables&&(f=We({},this.options.interpolation.defaultVariables,f)),r=this.interpolator.interpolate(r,f,o.lng||this.language,o),l){var d=r.match(this.interpolator.nestingRegexp);s<(d&&d.length)&&(o.nest=!1)}o.nest!==!1&&(r=this.interpolator.nest(r,function(){for(var y=arguments.length,g=new Array(y),m=0;m<y;m++)g[m]=arguments[m];return a&&a[0]===g[0]&&!o.context?(u.logger.warn("It seems you are nesting recursively key: ".concat(g[0]," in key: ").concat(n[0])),null):u.translate.apply(u,g.concat([n]))},o)),o.interpolation&&this.interpolator.reset()}var p=o.postProcess||this.options.postProcess,v=typeof p=="string"?[p]:p;return r!=null&&v&&v.length&&o.applyPostProcessor!==!1&&(r=UN.handle(v,r,n,this.options&&this.options.postProcessPassResolved?We({i18nResolved:i},o):o,this)),r}},{key:"resolve",value:function(r){var n,o,i,a,u,s=this,l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return typeof r=="string"&&(r=[r]),r.forEach(function(c){if(!s.isValidLookup(n)){var f=s.extractFromKey(c,l),d=f.key;o=d;var p=f.namespaces;s.options.fallbackNS&&(p=p.concat(s.options.fallbackNS));var v=l.count!==void 0&&typeof l.count!="string",y=l.context!==void 0&&(typeof l.context=="string"||typeof l.context=="number")&&l.context!=="",g=l.lngs?l.lngs:s.languageUtils.toResolveHierarchy(l.lng||s.language,l.fallbackLng);p.forEach(function(m){s.isValidLookup(n)||(u=m,!I9["".concat(g[0],"-").concat(m)]&&s.utils&&s.utils.hasLoadedNamespace&&!s.utils.hasLoadedNamespace(u)&&(I9["".concat(g[0],"-").concat(m)]=!0,s.logger.warn('key "'.concat(o,'" for languages "').concat(g.join(", "),`" won't get resolved as namespace "`).concat(u,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),g.forEach(function(h){if(!s.isValidLookup(n)){a=h;var b,w,D=d,x=[D];for(s.i18nFormat&&s.i18nFormat.addLookupKeys?s.i18nFormat.addLookupKeys(x,d,h,m,l):(v&&(b=s.pluralResolver.getSuffix(h,l.count)),v&&y&&x.push(D+b),y&&x.push(D+="".concat(s.options.contextSeparator).concat(l.context)),v&&x.push(D+=b));w=x.pop();)s.isValidLookup(n)||(i=w,n=s.getResource(h,m,w,l))}}))})}}),{res:n,usedKey:o,exactUsedKey:i,usedLng:a,usedNS:u}}},{key:"isValidLookup",value:function(r){return!(r===void 0||!this.options.returnNull&&r===null||!this.options.returnEmptyString&&r==="")}},{key:"getResource",value:function(r,n,o){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(r,n,o,i):this.resourceStore.getResource(r,n,o,i)}}],[{key:"hasDefaultValue",value:function(r){var n="defaultValue";for(var o in r)if(Object.prototype.hasOwnProperty.call(r,o)&&n===o.substring(0,n.length)&&r[o]!==void 0)return!0;return!1}}]),e}();function vb(t){return t.charAt(0).toUpperCase()+t.slice(1)}var htt=function(){function t(e){ci(this,t),this.options=e,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Qo.create("languageUtils")}return fi(t,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var r=e.split("-");return r.length===2?null:(r.pop(),r[r.length-1].toLowerCase()==="x"?null:this.formatLanguageCode(r.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var r=e.split("-");return this.formatLanguageCode(r[0])}},{key:"formatLanguageCode",value:function(e){if(typeof e=="string"&&e.indexOf("-")>-1){var r=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-");return this.options.lowerCaseLng?n=n.map(function(o){return o.toLowerCase()}):n.length===2?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),r.indexOf(n[1].toLowerCase())>-1&&(n[1]=vb(n[1].toLowerCase()))):n.length===3&&(n[0]=n[0].toLowerCase(),n[1].length===2&&(n[1]=n[1].toUpperCase()),n[0]!=="sgn"&&n[2].length===2&&(n[2]=n[2].toUpperCase()),r.indexOf(n[1].toLowerCase())>-1&&(n[1]=vb(n[1].toLowerCase())),r.indexOf(n[2].toLowerCase())>-1&&(n[2]=vb(n[2].toLowerCase()))),n.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 r,n=this;return e?(e.forEach(function(o){if(!r){var i=n.formatLanguageCode(o);n.options.supportedLngs&&!n.isSupportedCode(i)||(r=i)}}),!r&&this.options.supportedLngs&&e.forEach(function(o){if(!r){var i=n.getLanguagePartFromCode(o);if(n.isSupportedCode(i))return r=i;r=n.options.supportedLngs.find(function(a){if(a.indexOf(i)===0)return a})}}),r||(r=this.getFallbackCodes(this.options.fallbackLng)[0]),r):null}},{key:"getFallbackCodes",value:function(e,r){if(!e)return[];if(typeof e=="function"&&(e=e(r)),typeof e=="string"&&(e=[e]),Object.prototype.toString.apply(e)==="[object Array]")return e;if(!r)return e.default||[];var n=e[r];return n||(n=e[this.getScriptPartFromCode(r)]),n||(n=e[this.formatLanguageCode(r)]),n||(n=e[this.getLanguagePartFromCode(r)]),n||(n=e.default),n||[]}},{key:"toResolveHierarchy",value:function(e,r){var n=this,o=this.getFallbackCodes(r||this.options.fallbackLng||[],e),i=[],a=function(u){u&&(n.isSupportedCode(u)?i.push(u):n.logger.warn("rejecting language code not found in supportedLngs: ".concat(u)))};return typeof 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(n.formatLanguageCode(u))}),i}}]),t}(),gtt=[{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}],vtt={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 ytt(){var t={};return gtt.forEach(function(e){e.lngs.forEach(function(r){t[r]={numbers:e.nr,plurals:vtt[e.fc]}})}),t}var mtt=function(){function t(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};ci(this,t),this.languageUtils=e,this.options=r,this.logger=Qo.create("pluralResolver"),this.rules=ytt()}return fi(t,[{key:"addRule",value:function(e,r){this.rules[e]=r}},{key:"getRule",value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var r=this.getRule(e);return r&&r.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,r){return this.getSuffixes(e).map(function(n){return r+n})}},{key:"getSuffixes",value:function(e){var r=this,n=this.getRule(e);return n?n.numbers.map(function(o){return r.getSuffix(e,o)}):[]}},{key:"getSuffix",value:function(e,r){var n=this,o=this.getRule(e);if(o){var i=o.noAbs?o.plurals(r):o.plurals(Math.abs(r)),a=o.numbers[i];this.options.simplifyPluralSuffix&&o.numbers.length===2&&o.numbers[0]===1&&(a===2?a="plural":a===1&&(a=""));var u=function(){return n.options.prepend&&a.toString()?n.options.prepend+a.toString():a.toString()};return this.options.compatibilityJSON==="v1"?a===1?"":typeof a=="number"?"_plural_".concat(a.toString()):u():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&o.numbers.length===2&&o.numbers[0]===1?u():this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString()}return this.logger.warn("no plural rule found for: ".concat(e)),""}}]),t}(),btt=function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ci(this,t),this.logger=Qo.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||function(r){return r},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 r=e.interpolation;this.escape=r.escape!==void 0?r.escape:dtt,this.escapeValue=r.escapeValue===void 0||r.escapeValue,this.useRawValueToEscape=r.useRawValueToEscape!==void 0&&r.useRawValueToEscape,this.prefix=r.prefix?ks(r.prefix):r.prefixEscaped||"{{",this.suffix=r.suffix?ks(r.suffix):r.suffixEscaped||"}}",this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||",",this.unescapePrefix=r.unescapeSuffix?"":r.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":r.unescapeSuffix||"",this.nestingPrefix=r.nestingPrefix?ks(r.nestingPrefix):r.nestingPrefixEscaped||ks("$t("),this.nestingSuffix=r.nestingSuffix?ks(r.nestingSuffix):r.nestingSuffixEscaped||ks(")"),this.nestingOptionsSeparator=r.nestingOptionsSeparator?r.nestingOptionsSeparator:r.nestingOptionsSeparator||",",this.maxReplaces=r.maxReplaces?r.maxReplaces:1e3,this.alwaysFormat=r.alwaysFormat!==void 0&&r.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(e,"g");var r="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(r,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(n,"g")}},{key:"interpolate",value:function(e,r,n,o){var i,a,u,s=this,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function c(y){return y.replace(/\$/g,"$$$$")}var f=function(y){if(y.indexOf(s.formatSeparator)<0){var g=N9(r,l,y);return s.alwaysFormat?s.format(g,void 0,n,We({},o,r,{interpolationkey:y})):g}var m=y.split(s.formatSeparator),h=m.shift().trim(),b=m.join(s.formatSeparator).trim();return s.format(N9(r,l,h),b,n,We({},o,r,{interpolationkey:h}))};this.resetRegExp();var d=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,p=o&&o.interpolation&&o.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables,v=[{regex:this.regexpUnescape,safeValue:function(y){return c(y)}},{regex:this.regexp,safeValue:function(y){return s.escapeValue?c(s.escape(y)):c(y)}}];return v.forEach(function(y){for(u=0;i=y.regex.exec(e);){if((a=f(i[1].trim()))===void 0)if(typeof d=="function"){var g=d(e,i,o);a=typeof g=="string"?g:""}else{if(p){a=i[0];continue}s.logger.warn("missed to pass in variable ".concat(i[1]," for interpolating ").concat(e)),a=""}else typeof a=="string"||s.useRawValueToEscape||(a=P9(a));var m=y.safeValue(a);if(e=e.replace(i[0],m),p?(y.regex.lastIndex+=m.length,y.regex.lastIndex-=i[0].length):y.regex.lastIndex=0,++u>=s.maxReplaces)break}}),e}},{key:"nest",value:function(e,r){var n,o,i=this,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},u=We({},a);function s(d,p){var v=this.nestingOptionsSeparator;if(d.indexOf(v)<0)return d;var y=d.split(new RegExp("".concat(v,"[ ]*{"))),g="{".concat(y[1]);d=y[0],g=(g=this.interpolate(g,u)).replace(/'/g,'"');try{u=JSON.parse(g),p&&(u=We({},p,u))}catch(m){return this.logger.warn("failed parsing options string in nesting for key ".concat(d),m),"".concat(d).concat(v).concat(g)}return delete u.defaultValue,d}for(u.applyPostProcessor=!1,delete u.defaultValue;n=this.nestingRegexp.exec(e);){var l=[],c=!1;if(n[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(n[1])){var f=n[1].split(this.formatSeparator).map(function(d){return d.trim()});n[1]=f.shift(),l=f,c=!0}if((o=r(s.call(this,n[1].trim(),u),u))&&n[0]===e&&typeof o!="string")return o;typeof o!="string"&&(o=P9(o)),o||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),o=""),c&&(o=l.reduce(function(d,p){return i.format(d,p,a.lng,We({},a,{interpolationkey:n[1].trim()}))},o.trim())),e=e.replace(n[0],o),this.regexp.lastIndex=0}return e}}]),t}(),wtt=function(t){function e(r,n,o){var i,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return ci(this,e),i=Hd(this,Ml(e).call(this)),Hy&&ma.call(qu(i)),i.backend=r,i.store=n,i.services=o,i.languageUtils=o.languageUtils,i.options=a,i.logger=Qo.create("backendConnector"),i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(o,a.backend,a),i}return $y(e,ma),fi(e,[{key:"queueLoad",value:function(r,n,o,i){var a=this,u=[],s=[],l=[],c=[];return r.forEach(function(f){var d=!0;n.forEach(function(p){var v="".concat(f,"|").concat(p);!o.reload&&a.store.hasResourceBundle(f,p)?a.state[v]=2:a.state[v]<0||(a.state[v]===1?s.indexOf(v)<0&&s.push(v):(a.state[v]=1,d=!1,s.indexOf(v)<0&&s.push(v),u.indexOf(v)<0&&u.push(v),c.indexOf(p)<0&&c.push(p)))}),d||l.push(f)}),(u.length||s.length)&&this.queue.push({pending:s,loaded:{},errors:[],callback:i}),{toLoad:u,pending:s,toLoadLanguages:l,toLoadNamespaces:c}}},{key:"loaded",value:function(r,n,o){var i=r.split("|"),a=i[0],u=i[1];n&&this.emit("failedLoading",a,u,n),o&&this.store.addResourceBundle(a,u,o),this.state[r]=n?-1:2;var s={};this.queue.forEach(function(l){(function(c,f,d,p){var v=fD(c,f,Object),y=v.obj,g=v.k;y[g]=y[g]||[],y[g].push(d)})(l.loaded,[a],u),function(c,f){for(var d=c.indexOf(f);d!==-1;)c.splice(d,1),d=c.indexOf(f)}(l.pending,r),n&&l.errors.push(n),l.pending.length!==0||l.done||(Object.keys(l.loaded).forEach(function(c){s[c]||(s[c]=[]),l.loaded[c].length&&l.loaded[c].forEach(function(f){s[c].indexOf(f)<0&&s[c].push(f)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",s),this.queue=this.queue.filter(function(l){return!l.done})}},{key:"read",value:function(r,n,o){var i=this,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,u=arguments.length>4&&arguments[4]!==void 0?arguments[4]:350,s=arguments.length>5?arguments[5]:void 0;return r.length?this.backend[o](r,n,function(l,c){l&&c&&a<5?setTimeout(function(){i.read.call(i,r,n,o,a+1,2*u,s)},u):s(l,c)}):s(null,{})}},{key:"prepareLoading",value:function(r,n){var o=this,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),a&&a();typeof r=="string"&&(r=this.languageUtils.toResolveHierarchy(r)),typeof n=="string"&&(n=[n]);var u=this.queueLoad(r,n,i,a);if(!u.toLoad.length)return u.pending.length||a(),null;u.toLoad.forEach(function(s){o.loadOne(s)})}},{key:"load",value:function(r,n,o){this.prepareLoading(r,n,{},o)}},{key:"reload",value:function(r,n,o){this.prepareLoading(r,n,{reload:!0},o)}},{key:"loadOne",value:function(r){var n=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",i=r.split("|"),a=i[0],u=i[1];this.read(a,u,"read",void 0,void 0,function(s,l){s&&n.logger.warn("".concat(o,"loading namespace ").concat(u," for language ").concat(a," failed"),s),!s&&l&&n.logger.log("".concat(o,"loaded namespace ").concat(u," for language ").concat(a),l),n.loaded(r,s,l)})}},{key:"saveMissing",value:function(r,n,o,i,a){var u=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)?this.logger.warn('did not save key "'.concat(o,'" as the namespace "').concat(n,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):o!=null&&o!==""&&(this.backend&&this.backend.create&&this.backend.create(r,n,o,i,null,We({},u,{isUpdate:a})),r&&r[0]&&this.store.addResource(r[0],n,o,i))}}]),e}();function Ett(){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(Qi(t[1])==="object"&&(e=t[1]),typeof t[1]=="string"&&(e.defaultValue=t[1]),typeof t[2]=="string"&&(e.tDescription=t[2]),Qi(t[2])==="object"||Qi(t[3])==="object"){var r=t[3]||t[2];Object.keys(r).forEach(function(n){e[n]=r[n]})}return e},interpolation:{escapeValue:!0,format:function(t,e,r,n){return t},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}}}function R9(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 Vh(){}var Dtt=function(t){function e(){var r,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(ci(this,e),r=Hd(this,Ml(e).call(this)),Hy&&ma.call(qu(r)),r.options=R9(n),r.services={},r.logger=Qo,r.modules={external:[]},o&&!r.isInitialized&&!n.isClone){if(!r.options.initImmediate)return r.init(n,o),Hd(r,qu(r));setTimeout(function(){r.init(n,o)},0)}return r}return $y(e,ma),fi(e,[{key:"init",value:function(){var r=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;function i(p){return p?typeof p=="function"?new p:p:null}if(typeof n=="function"&&(o=n,n={}),n.whitelist&&!n.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),n.nonExplicitWhitelist&&!n.nonExplicitSupportedLngs&&this.logger.deprecate("whitelist",'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'),this.options=We({},Ett(),this.options,R9(n)),this.format=this.options.interpolation.format,o||(o=Vh),!this.options.isClone){this.modules.logger?Qo.init(i(this.modules.logger),this.options):Qo.init(null,this.options);var a=new htt(this.options);this.store=new ptt(this.options.resources,this.options);var u=this.services;u.logger=Qo,u.resourceStore=this.store,u.languageUtils=a,u.pluralResolver=new mtt(a,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),u.interpolator=new btt(this.options),u.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},u.backendConnector=new wtt(i(this.modules.backend),u.resourceStore,u,this.options),u.backendConnector.on("*",function(p){for(var v=arguments.length,y=new Array(v>1?v-1:0),g=1;g<v;g++)y[g-1]=arguments[g];r.emit.apply(r,[p].concat(y))}),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 L9(this.services,this.options),this.translator.on("*",function(p){for(var v=arguments.length,y=new Array(v>1?v-1:0),g=1;g<v;g++)y[g-1]=arguments[g];r.emit.apply(r,[p].concat(y))}),this.modules.external.forEach(function(p){p.init&&p.init(r)})}if(this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var s=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);s.length>0&&s[0]!=="dev"&&(this.options.lng=s[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");var l=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];l.forEach(function(p){r[p]=function(){var v;return(v=r.store)[p].apply(v,arguments)}});var c=["addResource","addResources","addResourceBundle","removeResourceBundle"];c.forEach(function(p){r[p]=function(){var v;return(v=r.store)[p].apply(v,arguments),r}});var f=Xc(),d=function(){var p=function(v,y){r.isInitialized&&!r.initializedStoreOnce&&r.logger.warn("init: i18next is already initialized. You should call init just once!"),r.isInitialized=!0,r.options.isClone||r.logger.log("initialized",r.options),r.emit("initialized",r.options),f.resolve(y),o(v,y)};if(r.languages&&r.options.compatibilityAPI!=="v1"&&!r.isInitialized)return p(null,r.t.bind(r));r.changeLanguage(r.options.lng,p)};return this.options.resources||!this.options.initImmediate?d():setTimeout(d,0),f}},{key:"loadResources",value:function(r){var n=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Vh,i=o,a=typeof r=="string"?r:this.language;if(typeof r=="function"&&(i=r),!this.options.resources||this.options.partialBundledLanguages){if(a&&a.toLowerCase()==="cimode")return i();var u=[],s=function(c){c&&n.services.languageUtils.toResolveHierarchy(c).forEach(function(f){u.indexOf(f)<0&&u.push(f)})};if(a)s(a);else{var l=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);l.forEach(function(c){return s(c)})}this.options.preload&&this.options.preload.forEach(function(c){return s(c)}),this.services.backendConnector.load(u,this.options.ns,i)}else i(null)}},{key:"reloadResources",value:function(r,n,o){var i=Xc();return r||(r=this.languages),n||(n=this.options.ns),o||(o=Vh),this.services.backendConnector.reload(r,n,function(a){i.resolve(),o(a)}),i}},{key:"use",value:function(r){if(!r)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!r.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return r.type==="backend"&&(this.modules.backend=r),(r.type==="logger"||r.log&&r.warn&&r.error)&&(this.modules.logger=r),r.type==="languageDetector"&&(this.modules.languageDetector=r),r.type==="i18nFormat"&&(this.modules.i18nFormat=r),r.type==="postProcessor"&&UN.addPostProcessor(r),r.type==="3rdParty"&&this.modules.external.push(r),this}},{key:"changeLanguage",value:function(r,n){var o=this;this.isLanguageChangingTo=r;var i=Xc();this.emit("languageChanging",r);var a=function(u){r||u||!o.services.languageDetector||(u=[]);var s=typeof u=="string"?u:o.services.languageUtils.getBestMatchFromCodes(u);s&&(o.language||(o.language=s,o.languages=o.services.languageUtils.toResolveHierarchy(s)),o.translator.language||o.translator.changeLanguage(s),o.services.languageDetector&&o.services.languageDetector.cacheUserLanguage(s)),o.loadResources(s,function(l){(function(c,f){f?(o.language=f,o.languages=o.services.languageUtils.toResolveHierarchy(f),o.translator.changeLanguage(f),o.isLanguageChangingTo=void 0,o.emit("languageChanged",f),o.logger.log("languageChanged",f)):o.isLanguageChangingTo=void 0,i.resolve(function(){return o.t.apply(o,arguments)}),n&&n(c,function(){return o.t.apply(o,arguments)})})(l,s)})};return r||!this.services.languageDetector||this.services.languageDetector.async?!r&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(a):a(r):a(this.services.languageDetector.detect()),i}},{key:"getFixedT",value:function(r,n,o){var i=this,a=function u(s,l){var c;if(Qi(l)!=="object"){for(var f=arguments.length,d=new Array(f>2?f-2:0),p=2;p<f;p++)d[p-2]=arguments[p];c=i.options.overloadTranslationOptionHandler([s,l].concat(d))}else c=We({},l);c.lng=c.lng||u.lng,c.lngs=c.lngs||u.lngs,c.ns=c.ns||u.ns;var v=i.options.keySeparator||".",y=o?"".concat(o).concat(v).concat(s):s;return i.t(y,c)};return typeof r=="string"?a.lng=r:a.lngs=r,a.ns=n,a.keyPrefix=o,a}},{key:"t",value:function(){var r;return this.translator&&(r=this.translator).translate.apply(r,arguments)}},{key:"exists",value:function(){var r;return this.translator&&(r=this.translator).exists.apply(r,arguments)}},{key:"setDefaultNamespace",value:function(r){this.options.defaultNS=r}},{key:"hasLoadedNamespace",value:function(r){var n=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var i=this.languages[0],a=!!this.options&&this.options.fallbackLng,u=this.languages[this.languages.length-1];if(i.toLowerCase()==="cimode")return!0;var s=function(c,f){var d=n.services.backendConnector.state["".concat(c,"|").concat(f)];return d===-1||d===2};if(o.precheck){var l=o.precheck(this,s);if(l!==void 0)return l}return!!this.hasResourceBundle(i,r)||!this.services.backendConnector.backend||!(!s(i,r)||a&&!s(u,r))}},{key:"loadNamespaces",value:function(r,n){var o=this,i=Xc();return this.options.ns?(typeof r=="string"&&(r=[r]),r.forEach(function(a){o.options.ns.indexOf(a)<0&&o.options.ns.push(a)}),this.loadResources(function(a){i.resolve(),n&&n(a)}),i):(n&&n(),Promise.resolve())}},{key:"loadLanguages",value:function(r,n){var o=Xc();typeof r=="string"&&(r=[r]);var i=this.options.preload||[],a=r.filter(function(u){return i.indexOf(u)<0});return a.length?(this.options.preload=i.concat(a),this.loadResources(function(u){o.resolve(),n&&n(u)}),o):(n&&n(),Promise.resolve())}},{key:"dir",value:function(r){return r||(r=this.languages&&this.languages.length>0?this.languages[0]:this.language),r?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"].indexOf(this.services.languageUtils.getLanguagePartFromCode(r))>=0?"rtl":"ltr":"rtl"}},{key:"createInstance",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new e(r,n)}},{key:"cloneInstance",value:function(){var r=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Vh,i=We({},this.options,n,{isClone:!0}),a=new e(i),u=["store","services","language"];return u.forEach(function(s){a[s]=r[s]}),a.services=We({},this.services),a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a.translator=new L9(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}(),i0=new Dtt;function qr(t,e){i0.addResourceBundle(t,"translation",e,!0,!0)}i0.init({lng:"zh-CN",resources:{}});var tt=i0.t.bind(i0);qr("en",{editor:{more:"More",justify:"Justify",indent:"Indent",image:"Image",video:"Video"}}),qr("zh-CN",{editor:{more:"更多",justify:"对齐",indent:"缩进",image:"图片",video:"视频"}});var Ctt=e5?{}.toString:function(){return"[object "+Ey(this)+"]"};e5||Mu(Object.prototype,"toString",Ctt,{unsafe:!0});var M9=Array.isArray||function(t){return vu(t)=="Array"},WN=function(){},xtt=[],GN=xp("Reflect","construct"),dD=/^\s*(?:class|function)\b/,Stt=oe(dD.exec),Att=!dD.exec(WN),Zc=function(t){if(!rr(t))return!1;try{return GN(WN,xtt,t),!0}catch(e){return!1}},Ott=!GN||lr(function(){var t;return Zc(Zc.call)||!Zc(Object)||!Zc(function(){t=!0})||t})?function(t){if(!rr(t))return!1;switch(Ey(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Att||!!Stt(dD,X3(t))}:Zc,ktt=Nr("species"),z9=Dt.Array,Btt=function(t,e){return new(function(r){var n;return M9(r)&&(n=r.constructor,(Ott(n)&&(n===z9||M9(n.prototype))||vo(n)&&(n=n[ktt])===null)&&(n=void 0)),n===void 0?z9:n}(t))(e===0?0:e)},$9=oe([].push),Ftt=function(t){var e=t==1,r=t==2,n=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var d,p,v=G3(s),y=sP(v),g=EP(l,c),m=wy(y),h=0,b=f||Btt,w=e?b(s,m):r||a?b(s,0):void 0;m>h;h++)if((u||h in y)&&(p=g(d=y[h],h,v),t))if(e)w[h]=p;else if(p)switch(t){case 3:return!0;case 5:return d;case 6:return h;case 2:$9(w,d)}else switch(t){case 4:return!1;case 7:$9(w,d)}return i?-1:n||o?o:w}},Ttt={forEach:Ftt(0)}.forEach,_tt=function(t,e){var r=[][t];return!!r&&lr(function(){r.call(null,e||function(){throw 1},1)})}("forEach"),yb=_tt?[].forEach:function(t){return Ttt(this,t,arguments.length>1?arguments[1]:void 0)},qN=function(t){if(t&&t.forEach!==yb)try{zr(t,"forEach",yb)}catch(e){t.forEach=yb}};for(var mb in xv)xv[mb]&&qN(Dt[mb]&&Dt[mb].prototype);qN(xP),qr("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"}}),qr("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 Ptt={type:"paragraph",renderElem:function(t,e,r){return wt("p",null,e)}},a0=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Vy(t){var e={exports:{}};return t(e,e.exports),e.exports}var Oi,Hg,Uh=function(t){return t&&t.Math==Math&&t},At=Uh(typeof globalThis=="object"&&globalThis)||Uh(typeof window=="object"&&window)||Uh(typeof self=="object"&&self)||Uh(typeof a0=="object"&&a0)||function(){return this}()||Function("return this")(),Se=function(t){try{return!!t()}catch(e){return!0}},Jn=!Se(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Jc=Function.prototype.call,Le=Jc.bind?Jc.bind(Jc):function(){return Jc.apply(Jc,arguments)},H9={}.propertyIsEnumerable,V9=Object.getOwnPropertyDescriptor,jtt=V9&&!H9.call({1:2},1)?function(t){var e=V9(this,t);return!!e&&e.enumerable}:H9,KN={f:jtt},pD=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},YN=Function.prototype,BE=YN.bind,FE=YN.call,Ntt=BE&&BE.bind(FE),mt=BE?function(t){return t&&Ntt(FE,t)}:function(t){return t&&function(){return FE.apply(t,arguments)}},Itt=mt({}.toString),Ltt=mt("".slice),ta=function(t){return Ltt(Itt(t),8,-1)},bb=At.Object,Rtt=mt("".split),Uy=Se(function(){return!bb("z").propertyIsEnumerable(0)})?function(t){return ta(t)=="String"?Rtt(t,""):bb(t)}:bb,Mtt=At.TypeError,Tn=function(t){if(t==null)throw Mtt("Can't call method on "+t);return t},ic=function(t){return Uy(Tn(t))},Ar=function(t){return typeof t=="function"},mo=function(t){return typeof t=="object"?t!==null:Ar(t)},ztt=function(t){return Ar(t)?t:void 0},Ip=function(t,e){return arguments.length<2?ztt(At[t]):At[t]&&At[t][e]},XN=mt({}.isPrototypeOf),wb=Ip("navigator","userAgent")||"",U9=At.process,W9=At.Deno,G9=U9&&U9.versions||W9&&W9.version,q9=G9&&G9.v8;q9&&(Hg=(Oi=q9.split("."))[0]>0&&Oi[0]<4?1:+(Oi[0]+Oi[1])),!Hg&&wb&&(!(Oi=wb.match(/Edge\/(\d+)/))||Oi[1]>=74)&&(Oi=wb.match(/Chrome\/(\d+)/))&&(Hg=+Oi[1]);var TE=Hg,_E=!!Object.getOwnPropertySymbols&&!Se(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&TE&&TE<41}),hD=_E&&!Symbol.sham&&typeof Symbol.iterator=="symbol",$tt=At.Object,Eb=hD?function(t){return typeof t=="symbol"}:function(t){var e=Ip("Symbol");return Ar(e)&&XN(e.prototype,$tt(t))},Htt=At.String,ZN=function(t){try{return Htt(t)}catch(e){return"Object"}},Vtt=At.TypeError,JN=function(t){if(Ar(t))return t;throw Vtt(ZN(t)+" is not a function")},Wy=function(t,e){var r=t[e];return r==null?void 0:JN(r)},Utt=At.TypeError,Wtt=Object.defineProperty,gD=function(t,e){try{Wtt(At,t,{value:e,configurable:!0,writable:!0})}catch(r){At[t]=e}return e},ea=At["__core-js_shared__"]||gD("__core-js_shared__",{}),vD=Vy(function(t){(t.exports=function(e,r){return ea[e]||(ea[e]=r!==void 0?r:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),Gtt=At.Object,Lp=function(t){return Gtt(Tn(t))},qtt=mt({}.hasOwnProperty),Cn=Object.hasOwn||function(t,e){return qtt(Lp(t),e)},Ktt=0,Ytt=Math.random(),Xtt=mt(1 .toString),QN=function(t){return"Symbol("+(t===void 0?"":t)+")_"+Xtt(++Ktt+Ytt,36)},Qc=vD("wks"),xu=At.Symbol,K9=xu&&xu.for,Ztt=hD?xu:xu&&xu.withoutSetter||QN,fn=function(t){if(!Cn(Qc,t)||!_E&&typeof Qc[t]!="string"){var e="Symbol."+t;_E&&Cn(xu,t)?Qc[t]=xu[t]:Qc[t]=hD&&K9?K9(e):Ztt(e)}return Qc[t]},Jtt=At.TypeError,Qtt=fn("toPrimitive"),yD=function(t){var e=function(r,n){if(!mo(r)||Eb(r))return r;var o,i=Wy(r,Qtt);if(i){if(o=Le(i,r,n),!mo(o)||Eb(o))return o;throw Jtt("Can't convert object to primitive value")}return function(a,u){var s,l;if(Ar(s=a.toString)&&!mo(l=Le(s,a))||Ar(s=a.valueOf)&&!mo(l=Le(s,a)))return l;throw Utt("Can't convert object to primitive value")}(r)}(t,"string");return Eb(e)?e:e+""},PE=At.document,tet=mo(PE)&&mo(PE.createElement),mD=function(t){return tet?PE.createElement(t):{}},tI=!Jn&&!Se(function(){return Object.defineProperty(mD("div"),"a",{get:function(){return 7}}).a!=7}),Y9=Object.getOwnPropertyDescriptor,bD={f:Jn?Y9:function(t,e){if(t=ic(t),e=yD(e),tI)try{return Y9(t,e)}catch(r){}if(Cn(t,e))return pD(!Le(KN.f,t,e),t[e])}},eet=At.String,ret=At.TypeError,nn=function(t){if(mo(t))return t;throw ret(eet(t)+" is not an object")},net=At.TypeError,X9=Object.defineProperty,ac={f:Jn?X9:function(t,e,r){if(nn(t),e=yD(e),nn(r),tI)try{return X9(t,e,r)}catch(n){}if("get"in r||"set"in r)throw net("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},zl=Jn?function(t,e,r){return ac.f(t,e,pD(1,r))}:function(t,e,r){return t[e]=r,t},oet=mt(Function.toString);Ar(ea.inspectSource)||(ea.inspectSource=function(t){return oet(t)});var jE,u0,NE,wD=ea.inspectSource,Z9=At.WeakMap,iet=Ar(Z9)&&/native code/.test(wD(Z9)),J9=vD("keys"),eI=function(t){return J9[t]||(J9[t]=QN(t))},ED={},Q9=At.TypeError,aet=At.WeakMap;if(iet||ea.state){var Ua=ea.state||(ea.state=new aet),uet=mt(Ua.get),tO=mt(Ua.has),set=mt(Ua.set);jE=function(t,e){if(tO(Ua,t))throw new Q9("Object already initialized");return e.facade=t,set(Ua,t,e),e},u0=function(t){return uet(Ua,t)||{}},NE=function(t){return tO(Ua,t)}}else{var Bs=eI("state");ED[Bs]=!0,jE=function(t,e){if(Cn(t,Bs))throw new Q9("Object already initialized");return e.facade=t,zl(t,Bs,e),e},u0=function(t){return Cn(t,Bs)?t[Bs]:{}},NE=function(t){return Cn(t,Bs)}}var IE={get:u0,enforce:function(t){return NE(t)?u0(t):jE(t,{})}},rI=Function.prototype,cet=Jn&&Object.getOwnPropertyDescriptor,Db=Cn(rI,"name"),Gy={EXISTS:Db,PROPER:Db&&function(){}.name==="something",CONFIGURABLE:Db&&(!Jn||Jn&&cet(rI,"name").configurable)},Vd=Vy(function(t){var e=Gy.CONFIGURABLE,r=IE.get,n=IE.enforce,o=String(String).split("String");(t.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet,p=s&&s.name!==void 0?s.name:a;Ar(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Cn(u,"name")||e&&u.name!==p)&&zl(u,"name",p),(l=n(u)).source||(l.source=o.join(typeof p=="string"?p:""))),i!==At?(c?!d&&i[a]&&(f=!0):delete i[a],f?i[a]=u:zl(i,a,u)):f?i[a]=u:gD(a,u)})(Function.prototype,"toString",function(){return Ar(this)&&r(this).source||wD(this)})}),fet=Math.ceil,det=Math.floor,uc=function(t){var e=+t;return e!=e||e===0?0:(e>0?det:fet)(e)},pet=Math.max,het=Math.min,Ud=function(t,e){var r=uc(t);return r<0?pet(r+e,0):het(r,e)},get=Math.min,Rp=function(t){return t>0?get(uc(t),9007199254740991):0},qy=function(t){return Rp(t.length)},eO=function(t){return function(e,r,n){var o,i=ic(e),a=qy(i),u=Ud(n,a);if(t&&r!=r){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===r)return t||u||0;return!t&&-1}},nI={includes:eO(!0),indexOf:eO(!1)},vet=nI.indexOf,rO=mt([].push),oI=function(t,e){var r,n=ic(t),o=0,i=[];for(r in n)!Cn(ED,r)&&Cn(n,r)&&rO(i,r);for(;e.length>o;)Cn(n,r=e[o++])&&(~vet(i,r)||rO(i,r));return i},s0=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],yet=s0.concat("length","prototype"),met={f:Object.getOwnPropertyNames||function(t){return oI(t,yet)}},iI={f:Object.getOwnPropertySymbols},bet=mt([].concat),wet=Ip("Reflect","ownKeys")||function(t){var e=met.f(nn(t)),r=iI.f;return r?bet(e,r(t)):e},Eet=function(t,e){for(var r=wet(e),n=ac.f,o=bD.f,i=0;i<r.length;i++){var a=r[i];Cn(t,a)||n(t,a,o(e,a))}},Det=/#|\.prototype\./,Mp=function(t,e){var r=xet[Cet(t)];return r==Oet||r!=Aet&&(Ar(e)?Se(e):!!e)},Cet=Mp.normalize=function(t){return String(t).replace(Det,".").toLowerCase()},xet=Mp.data={},Aet=Mp.NATIVE="N",Oet=Mp.POLYFILL="P",ket=Mp,Bet=bD.f,tr=function(t,e){var r,n,o,i,a,u=t.target,s=t.global,l=t.stat;if(r=s?At:l?At[u]||gD(u,{}):(At[u]||{}).prototype)for(n in e){if(i=e[n],o=t.noTargetGet?(a=Bet(r,n))&&a.value:r[n],!ket(s?n:u+(l?".":"#")+n,t.forced)&&o!==void 0){if(typeof i==typeof o)continue;Eet(i,o)}(t.sham||o&&o.sham)&&zl(i,"sham",!0),Vd(r,n,i,t)}},nO=mt(mt.bind),l0=Array.isArray||function(t){return ta(t)=="Array"},aI={};aI[fn("toStringTag")]="z";var DD=String(aI)==="[object z]",Fet=fn("toStringTag"),Tet=At.Object,_et=ta(function(){return arguments}())=="Arguments",CD=DD?ta:function(t){var e,r,n;return t===void 0?"Undefined":t===null?"Null":typeof(r=function(o,i){try{return o[i]}catch(a){}}(e=Tet(t),Fet))=="string"?r:_et?ta(e):(n=ta(e))=="Object"&&Ar(e.callee)?"Arguments":n},uI=function(){},Pet=[],sI=Ip("Reflect","construct"),xD=/^\s*(?:class|function)\b/,jet=mt(xD.exec),Net=!xD.exec(uI),tf=function(t){if(!Ar(t))return!1;try{return sI(uI,Pet,t),!0}catch(e){return!1}},SD=!sI||Se(function(){var t;return tf(tf.call)||!tf(Object)||!tf(function(){t=!0})||t})?function(t){if(!Ar(t))return!1;switch(CD(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Net||!!jet(xD,wD(t))}:tf,Iet=fn("species"),oO=At.Array,Let=function(t,e){return new(function(r){var n;return l0(r)&&(n=r.constructor,(SD(n)&&(n===oO||l0(n.prototype))||mo(n)&&(n=n[Iet])===null)&&(n=void 0)),n===void 0?oO:n}(t))(e===0?0:e)},iO=mt([].push),Wh=function(t){var e=t==1,r=t==2,n=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var d,p,v=Lp(s),y=Uy(v),g=function(D,x){return JN(D),x===void 0?D:nO?nO(D,x):function(){return D.apply(x,arguments)}}(l,c),m=qy(y),h=0,b=f||Let,w=e?b(s,m):r||a?b(s,0):void 0;m>h;h++)if((u||h in y)&&(p=g(d=y[h],h,v),t))if(e)w[h]=p;else if(p)switch(t){case 3:return!0;case 5:return d;case 6:return h;case 2:iO(w,d)}else switch(t){case 4:return!1;case 7:iO(w,d)}return i?-1:n||o?o:w}},Ky={forEach:Wh(0),map:Wh(1),filter:Wh(2),find:Wh(5)},Ret=fn("species"),AD=function(t){return TE>=51||!Se(function(){var e=[];return(e.constructor={})[Ret]=function(){return{foo:1}},e[t](Boolean).foo!==1})},Met=Ky.filter;tr({target:"Array",proto:!0,forced:!AD("filter")},{filter:function(t){return Met(this,t,arguments.length>1?arguments[1]:void 0)}});var zet=DD?{}.toString:function(){return"[object "+CD(this)+"]"};DD||Vd(Object.prototype,"toString",zet,{unsafe:!0});var Gh,$et=At.String,Ce=function(t){if(CD(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return $et(t)},lI=function(){var t=nn(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},OD=At.RegExp,LE=Se(function(){var t=OD("a","y");return t.lastIndex=2,t.exec("abcd")!=null});LE||Se(function(){return!OD("a","y").sticky});var cI={BROKEN_CARET:LE||Se(function(){var t=OD("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),UNSUPPORTED_Y:LE},dl=Object.keys||function(t){return oI(t,s0)},Het=Jn?Object.defineProperties:function(t,e){nn(t);for(var r,n=ic(e),o=dl(e),i=o.length,a=0;i>a;)ac.f(t,r=o[a++],n[r]);return t},Vet=Ip("document","documentElement"),fI=eI("IE_PROTO"),Cb=function(){},dI=function(t){return"<script>"+t+"<\/script>"},aO=function(t){t.write(dI("")),t.close();var e=t.parentWindow.Object;return t=null,e},Vg=function(){try{Gh=new ActiveXObject("htmlfile")}catch(n){}var t,e;Vg=typeof document!="undefined"?document.domain&&Gh?aO(Gh):((e=mD("iframe")).style.display="none",Vet.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(dI("document.F=Object")),t.close(),t.F):aO(Gh);for(var r=s0.length;r--;)delete Vg.prototype[s0[r]];return Vg()};ED[fI]=!0;var uO,xb,pI=Object.create||function(t,e){var r;return t!==null?(Cb.prototype=nn(t),r=new Cb,Cb.prototype=null,r[fI]=t):r=Vg(),e===void 0?r:Het(r,e)},Uet=At.RegExp,Wet=Se(function(){var t=Uet(".","s");return!(t.dotAll&&t.exec(`
`)&&t.flags==="s")}),Get=At.RegExp,qet=Se(function(){var t=Get("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),Ket=IE.get,Yet=vD("native-string-replace",String.prototype.replace),c0=RegExp.prototype.exec,RE=c0,Xet=mt("".charAt),Zet=mt("".indexOf),Jet=mt("".replace),Sb=mt("".slice),Ab=(xb=/b*/g,Le(c0,uO=/a/,"a"),Le(c0,xb,"a"),uO.lastIndex!==0||xb.lastIndex!==0),sO=cI.BROKEN_CARET,Ob=/()??/.exec("")[1]!==void 0;(Ab||Ob||sO||Wet||qet)&&(RE=function(t){var e,r,n,o,i,a,u,s=this,l=Ket(s),c=Ce(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=Le(RE,f,c),s.lastIndex=f.lastIndex,e;var d=l.groups,p=sO&&s.sticky,v=Le(lI,s),y=s.source,g=0,m=c;if(p&&(v=Jet(v,"y",""),Zet(v,"g")===-1&&(v+="g"),m=Sb(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&Xet(c,s.lastIndex-1)!==`
`)&&(y="(?: "+y+")",m=" "+m,g++),r=new RegExp("^(?:"+y+")",v)),Ob&&(r=new RegExp("^"+y+"$(?!\\s)",v)),Ab&&(n=s.lastIndex),o=Le(c0,p?r:s,m),p?o?(o.input=Sb(o.input,g),o[0]=Sb(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:Ab&&o&&(s.lastIndex=s.global?o.index+o[0].length:n),Ob&&o&&o.length>1&&Le(Yet,o[0],r,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&d)for(o.groups=a=pI(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var Wd=RE;tr({target:"RegExp",proto:!0,forced:/./.exec!==Wd},{exec:Wd});var kD=Function.prototype,lO=kD.apply,Qet=kD.bind,cO=kD.call,hI=typeof Reflect=="object"&&Reflect.apply||(Qet?cO.bind(lO):function(){return cO.apply(lO,arguments)}),trt=fn("species"),kb=RegExp.prototype,BD=function(t,e,r,n){var o=fn(t),i=!Se(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),a=i&&!Se(function(){var l=!1,c=/a/;return t==="split"&&((c={}).constructor={},c.constructor[trt]=function(){return c},c.flags="",c[o]=/./[o]),c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||r){var u=mt(/./[o]),s=e(o,""[t],function(l,c,f,d,p){var v=mt(l),y=c.exec;return y===Wd||y===kb.exec?i&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:v(f,c,d)}:{done:!1}});Vd(String.prototype,t,s[0]),Vd(kb,o,s[1])}n&&zl(kb[o],"sham",!0)},ert=mt("".charAt),fO=mt("".charCodeAt),rrt=mt("".slice),nrt=function(t){return function(e,r){var n,o,i=Ce(Tn(e)),a=uc(r),u=i.length;return a<0||a>=u?t?"":void 0:(n=fO(i,a))<55296||n>56319||a+1===u||(o=fO(i,a+1))<56320||o>57343?t?ert(i,a):n:t?rrt(i,a,a+2):o-56320+(n-55296<<10)+65536}},ort=nrt(!0),FD=function(t,e,r){return e+(r?ort(t,e).length:1)},irt=Math.floor,Bb=mt("".charAt),art=mt("".replace),Fb=mt("".slice),urt=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,srt=/\$([$&'`]|\d{1,2})/g,lrt=function(t,e,r,n,o,i){var a=r+t.length,u=n.length,s=srt;return o!==void 0&&(o=Lp(o),s=urt),art(i,s,function(l,c){var f;switch(Bb(c,0)){case"$":return"$";case"&":return t;case"`":return Fb(e,0,r);case"'":return Fb(e,a);case"<":f=o[Fb(c,1,-1)];break;default:var d=+c;if(d===0)return l;if(d>u){var p=irt(d/10);return p===0?l:p<=u?n[p-1]===void 0?Bb(c,1):n[p-1]+Bb(c,1):l}f=n[d-1]}return f===void 0?"":f})},crt=At.TypeError,Gd=function(t,e){var r=t.exec;if(Ar(r)){var n=Le(r,t,e);return n!==null&&nn(n),n}if(ta(t)==="RegExp")return Le(Wd,t,e);throw crt("RegExp#exec called on incompatible receiver")},ME=fn("replace"),frt=Math.max,drt=Math.min,prt=mt([].concat),Tb=mt([].push),dO=mt("".indexOf),pO=mt("".slice),hrt="a".replace(/./,"$0")==="$0",hO=!!/./[ME]&&/./[ME]("a","$0")==="";BD("replace",function(t,e,r){var n=hO?"$":"$0";return[function(o,i){var a=Tn(this),u=o==null?void 0:Wy(o,ME);return u?Le(u,o,a,i):Le(e,Ce(a),o,i)},function(o,i){var a=nn(this),u=Ce(o);if(typeof i=="string"&&dO(i,n)===-1&&dO(i,"$<")===-1){var s=r(e,a,u,i);if(s.done)return s.value}var l=Ar(i);l||(i=Ce(i));var c=a.global;if(c){var f=a.unicode;a.lastIndex=0}for(var d=[];;){var p=Gd(a,u);if(p===null||(Tb(d,p),!c))break;Ce(p[0])===""&&(a.lastIndex=FD(u,Rp(a.lastIndex),f))}for(var v,y="",g=0,m=0;m<d.length;m++){for(var h=Ce((p=d[m])[0]),b=frt(drt(uc(p.index),u.length),0),w=[],D=1;D<p.length;D++)Tb(w,(v=p[D])===void 0?v:String(v));var x=p.groups;if(l){var C=prt([h],w,b,u);x!==void 0&&Tb(C,x);var O=Ce(hI(i,void 0,C))}else O=lrt(h,u,b,w,x,i);b>=g&&(y+=pO(u,g,b)+O,g=b+h.length)}return y+pO(u,g)}]},!!Se(function(){var t=/./;return t.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(t,"$<a>")!=="7"})||!hrt||hO);var zE=fn("unscopables"),$E=Array.prototype;$E[zE]==null&&ac.f($E,zE,{configurable:!0,value:pI(null)});var gI=function(t){$E[zE][t]=!0},grt=Ky.find,gO=!0;"find"in[]&&Array(1).find(function(){gO=!1}),tr({target:"Array",proto:!0,forced:gO},{find:function(t){return grt(this,t,arguments.length>1?arguments[1]:void 0)}}),gI("find");var vrt=fn("match"),vI=function(t){var e;return mo(t)&&((e=t[vrt])!==void 0?!!e:ta(t)=="RegExp")},yrt=At.TypeError,mrt=fn("species"),yI=function(t,e,r){var n=yD(e);n in t?ac.f(t,n,pD(0,r)):t[n]=r},brt=At.Array,wrt=Math.max,vO=function(t,e,r){for(var n=qy(t),o=Ud(e,n),i=Ud(r===void 0?n:r,n),a=brt(wrt(i-o,0)),u=0;o<i;o++,u++)yI(a,u,t[o]);return a.length=u,a},Fs=cI.UNSUPPORTED_Y,Ert=Math.min,mI=[].push,Drt=mt(/./.exec),Ts=mt(mI),ef=mt("".slice);BD("split",function(t,e,r){var n;return n="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(o,i){var a=Ce(Tn(this)),u=i===void 0?4294967295:i>>>0;if(u===0)return[];if(o===void 0)return[a];if(!vI(o))return Le(e,a,o,u);for(var s,l,c,f=[],d=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(o.sticky?"y":""),p=0,v=new RegExp(o.source,d+"g");(s=Le(Wd,v,a))&&!((l=v.lastIndex)>p&&(Ts(f,ef(a,p,s.index)),s.length>1&&s.index<a.length&&hI(mI,f,vO(s,1)),c=s[0].length,p=l,f.length>=u));)v.lastIndex===s.index&&v.lastIndex++;return p===a.length?!c&&Drt(v,"")||Ts(f,""):Ts(f,ef(a,p)),f.length>u?vO(f,0,u):f}:"0".split(void 0,0).length?function(o,i){return o===void 0&&i===0?[]:Le(e,this,o,i)}:e,[function(o,i){var a=Tn(this),u=o==null?void 0:Wy(o,t);return u?Le(u,o,a,i):Le(n,Ce(a),o,i)},function(o,i){var a=nn(this),u=Ce(o),s=r(n,a,u,i,n!==e);if(s.done)return s.value;var l=function(w,D){var x,C=nn(w).constructor;return C===void 0||(x=nn(C)[mrt])==null?D:function(O){if(SD(O))return O;throw yrt(ZN(O)+" is not a constructor")}(x)}(a,RegExp),c=a.unicode,f=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(Fs?"g":"y"),d=new l(Fs?"^(?:"+a.source+")":a,f),p=i===void 0?4294967295:i>>>0;if(p===0)return[];if(u.length===0)return Gd(d,u)===null?[u]:[];for(var v=0,y=0,g=[];y<u.length;){d.lastIndex=Fs?0:y;var m,h=Gd(d,Fs?ef(u,y):u);if(h===null||(m=Ert(Rp(d.lastIndex+(Fs?y:0)),u.length))===v)y=FD(u,y,c);else{if(Ts(g,ef(u,v,y)),g.length===p)return g;for(var b=1;b<=h.length-1;b++)if(Ts(g,h[b]),g.length===p)return g;y=v=m}}return Ts(g,ef(u,v)),g}]},!!Se(function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var r="ab".split(t);return r.length!==2||r[0]!=="a"||r[1]!=="b"}),Fs);var HE=`
\v\f\r    \u2028\u2029\uFEFF`,yO=mt("".replace),f0="["+HE+"]",Crt=RegExp("^"+f0+f0+"*"),xrt=RegExp(f0+f0+"*$"),Srt=function(t){return function(e){var r=Ce(Tn(e));return 1&t&&(r=yO(r,Crt,"")),2&t&&(r=yO(r,xrt,"")),r}},Art={trim:Srt(3)},Ort=Gy.PROPER,krt=Art.trim;function TD(t){return B("<div>"+t+"</div>").children().filter(function(e){return e.tagName!=="BR"}).length===0}function sc(t){return t.length===0?"":t[0].outerHTML}function lc(t){return t.length?t[0].tagName.toLowerCase():""}function Yn(t,e){for(var r="",n=(t.attr("style")||"").split(";"),o=n.length,i=0;i<o;i++){var a=n[i];if(a){var u=a.split(":");u[0].trim()===e&&(r=u[1].trim())}}return r}tr({target:"String",proto:!0,forced:Se(function(){return!!HE.trim()||"…".trim()!=="…"||Ort&&HE.trim.name!=="trim"})},{trim:function(){return krt(this)}}),tr({global:!0},{globalThis:At}),Lv&&(B.fn.css=Lv),kn&&(B.fn.append=kn),oA&&(B.fn.prepend=oA),Cl&&(B.fn.addClass=Cl),xl&&(B.fn.removeClass=xl),Sl&&(B.fn.hasClass=Sl),ko&&(B.fn.on=ko),tA&&(B.fn.off=tA),va&&(B.fn.focus=va),On&&(B.fn.attr=On),Pv&&(B.fn.removeAttr=Pv),Ol&&(B.fn.hide=Ol),Iv&&(B.fn.show=Iv),zv&&(B.fn.parents=zv),Al&&(B.fn.dataset=Al),Oo&&(B.fn.val=Oo),Mv&&(B.fn.text=Mv),ga&&(B.fn.html=ga),Fl&&(B.fn.children=Fl),Tl&&(B.fn.remove=Tl),Bl&&(B.fn.find=Bl),jv&&(B.fn.width=jv),Nv&&(B.fn.height=Nv),rA&&(B.fn.filter=rA),_l&&(B.fn.empty=_l);var Brt={selector:"p:not([data-w-e-type])",parseElemHtml:function(t,e,r){var n=B(t);return(e=e.filter(function(o){return!!it.isText(o)||!!r.isInline(o)})).length===0&&(e=[{text:n.text().replace(/\s+/gm," ")}]),{type:"paragraph",children:e}}},VE=function(t,e){return VE=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])},VE(t,e);/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */};function Ee(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}VE(t,e),t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var ba=function(){return ba=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},ba.apply(this,arguments)};function Fa(t,e,r,n){return new(r||(r=Promise))(function(o,i){function a(l){try{s(n.next(l))}catch(c){i(c)}}function u(l){try{s(n.throw(l))}catch(c){i(c)}}function s(l){var c;l.done?o(l.value):(c=l.value,c instanceof r?c:new r(function(f){f(c)})).then(a,u)}s((n=n.apply(t,[])).next())})}function Ta(t,e){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function u(s){return function(l){return function(c){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||c[0]!==6&&c[0]!==2)){a=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){a.label=c[1];break}if(c[0]===6&&a.label<o[1]){a.label=o[1],o=c;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(c);break}o[2]&&a.ops.pop(),a.trys.pop();continue}c=e.call(t,a)}catch(f){c=[6,f],n=0}finally{r=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([s,l])}}}function bI(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Xt(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(e===void 0||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(u){o={error:u}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function mO(t){var e=Xt(E.nodes(t,{match:function(i){return t.children[0]===i},mode:"highest"}),1)[0];if(e==null)return!1;var r=e[0];if(!ft.isElement(r)||r.type==="paragraph"||Q.string(r)!=="")return!1;var n=r.children,o=n===void 0?[]:n;return!!it.isText(o[0])&&(N.setNodes(t,{type:"paragraph"}),!0)}var Frt={renderElems:[Ptt],elemsToHtml:[{type:"paragraph",elemToHtml:function(t,e){return e===""?"<p><br></p>":"<p>"+e+"</p>"}}],parseElemsHtml:[Brt],editorPlugin:function(t){var e=t.deleteBackward,r=t.deleteForward;t.insertText,t.insertBreak;var n=t;return n.deleteBackward=function(o){mO(n)||e(o)},n.deleteForward=function(o){mO(n)||r(o)},n}},Trt=/"/g,_rt=mt("".replace),Gf=function(t,e,r,n){var o=Ce(Tn(t)),i="<"+e;return r!==""&&(i+=" "+r+'="'+_rt(Ce(n),Trt,"&quot;")+'"'),i+">"+o+"</"+e+">"},qf=function(t){return Se(function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3})};function _b(t,e){var r=e,n=t,o=n.bold,i=n.italic,a=n.underline;return o&&(r="<strong>"+r+"</strong>"),n.code&&(r="<code>"+r+"</code>"),i&&(r="<em>"+r+"</em>"),a&&(r="<u>"+r+"</u>"),n.through&&(r="<s>"+r+"</s>"),n.sub&&(r="<sub>"+r+"</sub>"),n.sup&&(r="<sup>"+r+"</sup>"),r}function Wa(t,e){return t.length!==0&&(!!t[0].matches(e)||t.find(e).length>0)}tr({target:"String",proto:!0,forced:qf("bold")},{bold:function(){return Gf(this,"b","","")}}),tr({target:"String",proto:!0,forced:qf("italics")},{italics:function(){return Gf(this,"i","","")}}),tr({target:"String",proto:!0,forced:qf("sub")},{sub:function(){return Gf(this,"sub","","")}}),tr({target:"String",proto:!0,forced:qf("sup")},{sup:function(){return Gf(this,"sup","","")}});var bO={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},Pb=mD("span").classList,wO=Pb&&Pb.constructor&&Pb.constructor.prototype,Prt=wO===Object.prototype?void 0:wO,wI=function(t,e){var r=[][t];return!!r&&Se(function(){r.call(null,e||function(){throw 1},1)})},jrt=Ky.forEach,jb=wI("forEach")?[].forEach:function(t){return jrt(this,t,arguments.length>1?arguments[1]:void 0)},EI=function(t){if(t&&t.forEach!==jb)try{zl(t,"forEach",jb)}catch(e){t.forEach=jb}};for(var Nb in bO)bO[Nb]&&EI(At[Nb]&&At[Nb].prototype);function DI(t,e){return t.selection==null||!!Xt(E.nodes(t,{match:function(r){return A.getNodeType(r)==="pre"||!!E.isVoid(t,r)},universal:!0}),1)[0]}function Nrt(t,e){Object.keys(e).forEach(function(r){r!=="text"&&E.removeMark(t,r)})}EI(Prt),tr({target:"Object",stat:!0,forced:Se(function(){dl(1)})},{keys:function(t){return dl(Lp(t))}});var ss=function(){function t(){this.marksNeedToRemove=[],this.tag="button"}return t.prototype.getValue=function(e){var r=this.mark,n=E.marks(e);return n?n[r]:!!Xt(E.nodes(e,{match:function(o){return o[r]===!0}}),1)[0]},t.prototype.isActive=function(e){return!!this.getValue(e)},t.prototype.isDisabled=function(e){return DI(e,this.mark)},t.prototype.exec=function(e,r){var n=this.mark,o=this.marksNeedToRemove;r?e.removeMark(n):(e.addMark(n,!0),o&&o.forEach(function(i){return e.removeMark(i)}))},t}(),Irt='<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>',Lrt='<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>',Rrt='<svg viewBox="0 0 1024 1024"><path d="M896 64v64h-128L448 896h128v64H128v-64h128L576 128h-128V64z"></path></svg>',Mrt='<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>',zrt='<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>',CI='<svg viewBox="0 0 1024 1024"><path d="M864 0a160 160 0 0 1 128 256l-64 64-224-224 64-64c26.752-20.096 59.968-32 96-32zM64 736l-64 288 288-64 592-592-224-224L64 736z m651.584-372.416l-448 448-55.168-55.168 448-448 55.168 55.168z"></path></svg>',xI='<svg viewBox="0 0 1024 1024"><path d="M924.402464 1023.068211H0.679665V99.345412h461.861399v98.909208H99.596867v725.896389h725.896389V561.206811h98.909208z" p-id="10909"></path><path d="M930.805104 22.977336l69.965436 69.965436-453.492405 453.492404-69.965435-69.901489z" p-id="10910"></path><path d="M1022.464381 304.030081h-98.917201V99.345412H709.230573V0.428211h313.233808z"></path></svg>',$rt='<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>',Hrt='<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>',Vrt='<svg viewBox="0 0 1024 1024"><path d="M64 512h384v128h-128V1024h-128V640h-128z m896-256H708.2496v768h-136.4992V256H320V128h640z"></path></svg>',Urt='<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>',Wrt='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m256-512v384l-256-192z"></path></svg>',Grt='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',qrt='<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>',Krt='<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>',Yrt='<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>',Xrt='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z"></path></svg>',Zrt='<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>',Jrt='<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>',Qrt=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.mark="bold",r.title=tt("textStyle.bold"),r.iconSvg=Irt,r.hotkey="mod+b",r}return Ee(e,t),e}(ss),tnt=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.mark="code",r.title=tt("textStyle.code"),r.iconSvg=zrt,r.hotkey="mod+e",r}return Ee(e,t),e}(ss),ent=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.mark="italic",r.title=tt("textStyle.italic"),r.iconSvg=Rrt,r.hotkey="mod+i",r}return Ee(e,t),e}(ss),rnt=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.mark="through",r.title=tt("textStyle.through"),r.iconSvg=Mrt,r.hotkey="mod+shift+x",r}return Ee(e,t),e}(ss),nnt=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.mark="underline",r.title=tt("textStyle.underline"),r.iconSvg=Lrt,r.hotkey="mod+u",r}return Ee(e,t),e}(ss),ont=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.mark="sub",r.marksNeedToRemove=["sup"],r.title=tt("textStyle.sub"),r.iconSvg=Jrt,r.hotkey="",r}return Ee(e,t),e}(ss),int=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.mark="sup",r.marksNeedToRemove=["sub"],r.title=tt("textStyle.sup"),r.iconSvg=Zrt,r.hotkey="",r}return Ee(e,t),e}(ss),ant=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 DI(e)},t.prototype.exec=function(e,r){var n,o,i=E.nodes(e,{match:function(s){return it.isText(s)},universal:!0});try{for(var a=bI(i),u=a.next();!u.done;u=a.next())Nrt(e,u.value[0])}catch(s){n={error:s}}finally{try{u&&!u.done&&(o=a.return)&&o.call(a)}finally{if(n)throw n.error}}},t}(),unt={renderStyle:function(t,e){var r=t,n=r.bold,o=r.italic,i=r.underline,a=r.code,u=r.through,s=r.sub,l=r.sup,c=e;return n&&(c=wt("strong",null,c)),a&&(c=wt("code",null,c)),o&&(c=wt("em",null,c)),i&&(c=wt("u",null,c)),u&&(c=wt("s",null,c)),s&&(c=wt("sub",null,c)),l&&(c=wt("sup",null,c)),c},menus:[{key:"bold",factory:function(){return new Qrt}},{key:"underline",factory:function(){return new nnt}},{key:"italic",factory:function(){return new ent}},{key:"through",factory:function(){return new rnt}},{key:"code",factory:function(){return new tnt}},{key:"sub",factory:function(){return new ont}},{key:"sup",factory:function(){return new int}},{key:"clearStyle",factory:function(){return new ant}}],styleToHtml:function(t,e){if(!it.isText(t))return e;if(TD(e))return _b(t,e);var r=B(e);if(lc(r)==="br")return _b(t,"<br>");var n=r.html();return n=_b(t,n),r.html(n),sc(r)},parseStyleHtml:function(t,e,r){var n=B(t);if(!it.isText(e))return e;var o=e;return Wa(n,"b,strong")&&(o.bold=!0),Wa(n,"i,em")&&(o.italic=!0),Wa(n,"u")&&(o.underline=!0),Wa(n,"s,strike")&&(o.through=!0),Wa(n,"sub")&&(o.sub=!0),Wa(n,"sup")&&(o.sup=!0),Wa(n,"code")&&(o.code=!0),o}};function zp(t){return function(e,r,n){return wt("h"+t,null,r)}}var snt={type:"header1",renderElem:zp(1)},lnt={type:"header2",renderElem:zp(2)},cnt={type:"header3",renderElem:zp(3)},fnt={type:"header4",renderElem:zp(4)},dnt={type:"header5",renderElem:zp(5)},pnt=Gy.PROPER,UE=RegExp.prototype,SI=UE.toString,hnt=mt(lI),gnt=Se(function(){return SI.call({source:"a",flags:"b"})!="/a/b"}),vnt=pnt&&SI.name!="toString";(gnt||vnt)&&Vd(RegExp.prototype,"toString",function(){var t=nn(this),e=Ce(t.source),r=t.flags;return"/"+e+"/"+Ce(r===void 0&&XN(UE,t)&&!("flags"in UE)?hnt(t):r)},{unsafe:!0});var Ib,ynt=At.TypeError,AI=function(t){if(vI(t))throw ynt("The method doesn't accept regular expressions");return t},mnt=fn("match"),OI=function(t){var e=/./;try{"/./"[t](e)}catch(r){try{return e[mnt]=!1,"/./"[t](e)}catch(n){}}return!1},bnt=bD.f,EO=mt("".startsWith),wnt=mt("".slice),Ent=Math.min,DO=OI("startsWith");function kI(t){var e=Xt(E.nodes(t,{match:function(o){return A.getNodeType(o).startsWith("header")},universal:!0}),1),r=e[0];if(r==null)return"paragraph";var n=Xt(r,1)[0];return A.getNodeType(n)}function BI(t){return t.selection==null||!Xt(E.nodes(t,{match:function(e){var r=A.getNodeType(e);return r==="paragraph"||!!r.startsWith("header")},universal:!0,mode:"highest"}),1)[0]}function FI(t,e){e&&N.setNodes(t,{type:e})}tr({target:"String",proto:!0,forced:!(!DO&&(Ib=bnt(String.prototype,"startsWith"),Ib&&!Ib.writable)||DO)},{startsWith:function(t){var e=Ce(Tn(this));AI(t);var r=Rp(Ent(arguments.length>1?arguments[1]:void 0,e.length)),n=Ce(t);return EO?EO(e,n,r):wnt(e,r,r+n.length)===n}});var Dnt=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 r=[{value:"header1",text:"H1",styleForRenderMenuList:{"font-size":"32px","font-weight":"bold"}},{value:"header2",text:"H2",styleForRenderMenuList:{"font-size":"24px","font-weight":"bold"}},{value:"header3",text:"H3",styleForRenderMenuList:{"font-size":"18px","font-weight":"bold"}},{value:"header4",text:"H4",styleForRenderMenuList:{"font-size":"16px","font-weight":"bold"}},{value:"header5",text:"H5",styleForRenderMenuList:{"font-size":"13px","font-weight":"bold"}},{value:"paragraph",text:tt("header.text")}],n=this.getValue(e).toString();return r.forEach(function(o){o.value===n?o.selected=!0:delete o.selected}),r},t.prototype.isActive=function(e){return!1},t.prototype.getValue=function(e){return kI(e)},t.prototype.isDisabled=function(e){return BI(e)},t.prototype.exec=function(e,r){FI(e,r.toString())},t}(),$p=function(){function t(){this.tag="button"}return t.prototype.getValue=function(e){return kI(e)},t.prototype.isActive=function(e){return this.getValue(e)===this.type},t.prototype.isDisabled=function(e){return BI(e)},t.prototype.exec=function(e,r){var n=this.type;FI(e,r===n?"paragraph":n)},t}(),Cnt=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.title="H1",r.type="header1",r}return Ee(e,t),e}($p),xnt=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.title="H2",r.type="header2",r}return Ee(e,t),e}($p),Snt=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.title="H3",r.type="header3",r}return Ee(e,t),e}($p),Ant=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.title="H4",r.type="header4",r}return Ee(e,t),e}($p),Ont=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.title="H5",r.type="header5",r}return Ee(e,t),e}($p),knt={key:"headerSelect",factory:function(){return new Dnt}},Bnt={key:"header1",factory:function(){return new Cnt}},Fnt={key:"header2",factory:function(){return new xnt}},Tnt={key:"header3",factory:function(){return new Snt}},_nt={key:"header4",factory:function(){return new Ant}},Pnt={key:"header5",factory:function(){return new Ont}};function rf(t){return function(e,r){return"<h"+t+">"+r+"</h"+t+">"}}function nf(t){return function(e,r,n){var o=B(e);return(r=r.filter(function(i){return!!it.isText(i)||!!n.isInline(i)})).length===0&&(r=[{text:o.text().replace(/\s+/gm," ")}]),{type:"header"+t,children:r}}}var jnt={renderElems:[snt,lnt,cnt,fnt,dnt],elemsToHtml:[{type:"header1",elemToHtml:rf(1)},{type:"header2",elemToHtml:rf(2)},{type:"header3",elemToHtml:rf(3)},{type:"header4",elemToHtml:rf(4)},{type:"header5",elemToHtml:rf(5)}],parseElemsHtml:[{selector:"h1:not([data-w-e-type])",parseElemHtml:nf(1)},{selector:"h2:not([data-w-e-type])",parseElemHtml:nf(2)},{selector:"h3:not([data-w-e-type])",parseElemHtml:nf(3)},{selector:"h4:not([data-w-e-type])",parseElemHtml:nf(4)},{selector:"h5:not([data-w-e-type])",parseElemHtml:nf(5)}],menus:[knt,Bnt,Fnt,Tnt,_nt,Pnt],editorPlugin:function(t){var e=t.insertBreak;t.insertNode;var r=t;return r.insertBreak=function(){var n=Xt(E.nodes(r,{match:function(o){return A.getNodeType(o).startsWith("header")},universal:!0}),1)[0];n&&A.isSelectionAtLineEnd(t,n[1])?N.insertNodes(r,{type:"paragraph",children:[{text:""}]},{mode:"highest"}):e()},r}},_s=Object.assign,CO=Object.defineProperty,Nnt=mt([].concat),xO=!_s||Se(function(){if(Jn&&_s({b:1},_s(CO({},"a",{enumerable:!0,get:function(){CO(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var t={},e={},r=Symbol(),n="abcdefghijklmnopqrst";return t[r]=7,n.split("").forEach(function(o){e[o]=o}),_s({},t)[r]!=7||dl(_s({},e)).join("")!=n})?function(t,e){for(var r=Lp(t),n=arguments.length,o=1,i=iI.f,a=KN.f;n>o;)for(var u,s=Uy(arguments[o++]),l=i?Nnt(dl(s),i(s)):dl(s),c=l.length,f=0;c>f;)u=l[f++],Jn&&!Le(a,s,u)||(r[u]=s[u]);return r}:_s;function Ku(t,e){t.data==null&&(t.data={});var r=t.data;r.style==null&&(r.style={}),Object.assign(r.style,e)}tr({target:"Object",stat:!0,forced:Object.assign!==xO},{assign:xO});var Int={selector:"font",preParseHtml:function(t){var e=B(t);if(lc(e)!=="font")return t;var r=e.attr("color")||"";return r&&(e.removeAttr("color"),e.css("color",r)),e[0]}},TI=function(){function t(){this.tag="button",this.showDropPanel=!0,this.$content=null}return t.prototype.exec=function(e,r){},t.prototype.getValue=function(e){var r=this.mark,n=E.marks(e);return n&&n[r]?n[r]:""},t.prototype.isActive=function(e){return!!this.getValue(e)},t.prototype.isDisabled=function(e){return e.selection==null||!!Xt(E.nodes(e,{match:function(r){return A.getNodeType(r)==="pre"||!!E.isVoid(e,r)},universal:!0}),1)[0]},t.prototype.getPanelContentElem=function(e){var r=this.mark;if(this.$content==null){var n=B('<ul class="w-e-panel-content-color"></ul>');n.on("click","li",function(l){var c=l.target;if(c!=null&&(l.preventDefault(),e.selection!=null)){var f=B(c).attr("data-value");f==="0"?E.removeMark(e,r):E.addMark(e,r,f)}}),this.$content=n}var o=this.$content;if(o==null)return document.createElement("ul");o.empty();var i=this.getValue(e),a=e.getMenuConfig(r).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="";r==="color"&&(u=tt("color.default")),r==="bgColor"&&(u=tt("color.clear"));var s=B(`
<li data-value="0" class="clear">
<svg viewBox="0 0 1024 1024"><path d="M236.8 128L896 787.2V128H236.8z m614.4 704L192 172.8V832h659.2zM192 64h704c38.4 0 64 25.6 64 64v704c0 38.4-25.6 64-64 64H192c-38.4 0-64-25.6-64-64V128c0-38.4 25.6-64 64-64z"></path></svg>
`+u+`
</li>
`);return o.prepend(s),o[0]},t}(),Lnt=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.title=tt("color.color"),r.iconSvg=$rt,r.mark="color",r}return Ee(e,t),e}(TI),Rnt=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.title=tt("color.bgColor"),r.iconSvg=Hrt,r.mark="bgColor",r}return Ee(e,t),e}(TI),SO=["rgb(0, 0, 0)","rgb(38, 38, 38)","rgb(89, 89, 89)","rgb(140, 140, 140)","rgb(191, 191, 191)","rgb(217, 217, 217)","rgb(233, 233, 233)","rgb(245, 245, 245)","rgb(250, 250, 250)","rgb(255, 255, 255)","rgb(225, 60, 57)","rgb(231, 95, 51)","rgb(235, 144, 58)","rgb(245, 219, 77)","rgb(114, 192, 64)","rgb(89, 191, 192)","rgb(66, 144, 247)","rgb(54, 88, 226)","rgb(106, 57, 201)","rgb(216, 68, 147)","rgb(251, 233, 230)","rgb(252, 237, 225)","rgb(252, 239, 212)","rgb(252, 251, 207)","rgb(231, 246, 213)","rgb(218, 244, 240)","rgb(217, 237, 250)","rgb(224, 232, 250)","rgb(237, 225, 248)","rgb(246, 226, 234)","rgb(255, 163, 158)","rgb(255, 187, 150)","rgb(255, 213, 145)","rgb(255, 251, 143)","rgb(183, 235, 143)","rgb(135, 232, 222)","rgb(145, 213, 255)","rgb(173, 198, 255)","rgb(211, 173, 247)","rgb(255, 173, 210)","rgb(255, 77, 79)","rgb(255, 122, 69)","rgb(255, 169, 64)","rgb(255, 236, 61)","rgb(115, 209, 61)","rgb(54, 207, 201)","rgb(64, 169, 255)","rgb(89, 126, 247)","rgb(146, 84, 222)","rgb(247, 89, 171)","rgb(207, 19, 34)","rgb(212, 56, 13)","rgb(212, 107, 8)","rgb(212, 177, 6)","rgb(56, 158, 13)","rgb(8, 151, 156)","rgb(9, 109, 217)","rgb(29, 57, 196)","rgb(83, 29, 171)","rgb(196, 29, 127)","rgb(130, 0, 20)","rgb(135, 20, 0)","rgb(135, 56, 0)","rgb(97, 71, 0)","rgb(19, 82, 0)","rgb(0, 71, 79)","rgb(0, 58, 140)","rgb(6, 17, 120)","rgb(34, 7, 94)","rgb(120, 6, 80)"],Mnt={renderStyle:function(t,e){var r=t,n=r.color,o=r.bgColor,i=e;return n&&Ku(i,{color:n}),o&&Ku(i,{backgroundColor:o}),i},styleToHtml:function(t,e){if(!it.isText(t))return e;var r,n=t,o=n.color,i=n.bgColor;return o||i?((TD(e)||lc(r=B(e))!=="span")&&(r=B("<span>"+e+"</span>")),o&&r.css("color",o),i&&r.css("background-color",i),sc(r)):e},preParseHtml:[Int],parseStyleHtml:function(t,e,r){var n=B(t);if(!it.isText(e))return e;var o=e,i=Yn(n,"color");i&&(o.color=i);var a=Yn(n,"background-color");return a||(a=Yn(n,"background")),a&&(o.bgColor=a),o},menus:[{key:"color",factory:function(){return new Lnt},config:{colors:SO}},{key:"bgColor",factory:function(){return new Rnt},config:{colors:SO}}]},znt=/^(?:\w+:)?\/\/(\S+)$/,$nt=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,Hnt=/^[^\s\.]+\.\S{2,}$/,Vnt=nI.includes;function Yy(t){return t===void 0&&(t="r"),t+"-"+QP()}function _D(t){return t.replace(/</g,"&lt;").replace(/>/g,"&gt;")}function _I(t,e,r,n){return Fa(this,void 0,void 0,function(){var o,i;return Ta(this,function(a){switch(a.label){case 0:return(o=e.getMenuConfig(t).checkLink)?[4,o(r,n)]:[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 PI(t,e,r){return Fa(this,void 0,void 0,function(){var n;return Ta(this,function(o){switch(o.label){case 0:return(n=e.getMenuConfig(t).parseLinkUrl)?[4,n(r)]:[3,2];case 1:return[2,o.sent()];case 2:return[2,r]}})})}function PD(t){return t.selection==null||!!A.getSelectedElems(t).some(function(e){var r=e.type;return!!t.isVoid(e)||!!["pre","code","link"].includes(r)||void 0})}function Lb(t,e){return{type:"link",url:_D(t),children:e?[{text:e}]:[]}}function jI(t,e,r){return Fa(this,void 0,void 0,function(){var n,o,i;return Ta(this,function(a){switch(a.label){case 0:return r?(e||(e=r),t.restoreSelection(),PD(t)?[2]:[4,_I("insertLink",t,e,r)]):[2];case 1:return a.sent()?[4,PI("insertLink",t,r)]:[2];case 2:return n=a.sent(),(o=t.selection)==null||(L.isCollapsed(o)?(t.insertText(" "),i=Lb(n,e),N.insertNodes(t,i),t.insertFragment([{text:" "}])):E.string(t,o)!==e?(t.deleteFragment(),i=Lb(n,e),N.insertNodes(t,i)):(i=Lb(n),N.wrapNodes(t,i,{split:!0}),N.collapse(t,{edge:"end"}))),[2]}})})}tr({target:"Array",proto:!0},{includes:function(t){return Vnt(this,t,arguments.length>1?arguments[1]:void 0)}}),gI("includes");var Unt={type:"link",renderElem:function(t,e,r){var n=t,o=n.url,i=n.target;return wt("a",{href:o,target:i===void 0?"_blank":i},e)}},Wnt={selector:"a:not([data-w-e-type])",parseElemHtml:function(t,e,r){var n=B(t);return(e=e.filter(function(o){return!!it.isText(o)||!!r.isInline(o)})).length===0&&(e=[{text:n.text().replace(/\s+/gm," ")}]),{type:"link",url:n.attr("href")||"",target:n.attr("target")||"",children:e}}};function Rb(){return Yy("w-e-insert-link")}var Gnt=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=Rb(),this.urlInputId=Rb(),this.buttonId=Rb()}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,r){},t.prototype.isDisabled=function(e){return PD(e)},t.prototype.getModalPositionNode=function(e){return null},t.prototype.getModalContentElem=function(e){var r=e.selection,n=this,o=n.textInputId,i=n.urlInputId,a=n.buttonId,u=Xt(rn(tt("link.text"),o),2),s=u[0],l=B(u[1]),c=Xt(rn(tt("link.url"),i),2),f=c[0],d=B(c[1]),p=Xt(oc(a,tt("common.ok")),1)[0];if(this.$content==null){var v=B("<div></div>");v.on("click","#"+a,function(m){m.preventDefault();var h=v.find("#"+o).val(),b=v.find("#"+i).val();jI(e,h,b),e.hidePanelOrModal()}),this.$content=v}var y=this.$content;if(y.empty(),y.append(s),y.append(f),y.append(p),r==null||L.isCollapsed(r))l.val("");else{var g=E.string(e,r);l.val(g)}return d.val(""),setTimeout(function(){l.focus()}),y[0]},t}();function AO(){return Yy("w-e-update-link")}var qnt=function(){function t(){this.title=tt("link.edit"),this.iconSvg=CI,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.urlInputId=AO(),this.buttonId=AO()}return t.prototype.getSelectedLinkElem=function(e){var r=A.getSelectedNodeByType(e,"link");return r==null?null:r},t.prototype.getValue=function(e){var r=this.getSelectedLinkElem(e);return r&&r.url||""},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,r){},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 r=this.urlInputId,n=this.buttonId,o=Xt(rn(tt("link.url"),r),2),i=o[0],a=B(o[1]),u=Xt(oc(n,tt("common.ok")),1)[0];if(this.$content==null){var s=B("<div></div>");s.on("click","button",function(f){f.preventDefault(),e.restoreSelection();var d=A.getSelectedNodeByType(e,"link"),p=d?Q.string(d):"",v=s.find("#"+r).val();(function(y,g,m){Fa(this,void 0,void 0,function(){var h,b;return Ta(this,function(w){switch(w.label){case 0:return m?[4,_I("editLink",y,g,m)]:[2];case 1:return w.sent()?[4,PI("editLink",y,m)]:[2];case 2:return h=w.sent(),b={url:_D(h)},N.setNodes(y,b,{match:function(D){return A.checkNodeType(D,"link")}}),[2]}})})})(e,p,v),e.hidePanelOrModal()}),this.$content=s}var l=this.$content;l.empty(),l.append(i),l.append(u);var c=this.getValue(e);return a.val(c),setTimeout(function(){a.focus()}),l[0]},t}(),Knt=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,r){this.isDisabled(e)||N.unwrapNodes(e,{match:function(n){return A.checkNodeType(n,"link")}})},t}(),Ynt=function(){function t(){this.title=tt("link.view"),this.iconSvg=xI,this.tag="button"}return t.prototype.getSelectedLinkElem=function(e){var r=A.getSelectedNodeByType(e,"link");return r==null?null:r},t.prototype.getValue=function(e){var r=this.getSelectedLinkElem(e);return r&&r.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,r){if(!this.isDisabled(e)){if(!r||typeof r!="string")throw new Error("View link failed, link url is '"+r+"'");window.open(r,"_blank")}},t}(),OO={checkLink:function(t,e){return!0},parseLinkUrl:function(t){return t}},Xnt={renderElems:[Unt],elemsToHtml:[{type:"link",elemToHtml:function(t,e){var r=t,n=r.url,o=r.target;return'<a href="'+n+'" target="'+(o===void 0?"_blank":o)+'">'+e+"</a>"}}],parseElemsHtml:[Wnt],menus:[{key:"insertLink",factory:function(){return new Gnt},config:OO},{key:"editLink",factory:function(){return new qnt},config:OO},{key:"unLink",factory:function(){return new Knt}},{key:"viewLink",factory:function(){return new Ynt}}],editorPlugin:function(t){var e=t.isInline,r=t.insertData,n=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(znt);if(!c)return!1;var f=c[1];return!(!f||!$nt.test(f)&&!Hnt.test(f))}(a)){if(!PD(o)){var u=o.selection;if(u!=null){var s=E.string(o,u);jI(o,s,a)}}}else r(i)},o.normalizeNode=function(i){var a=Xt(i,2),u=a[0],s=a[1];return A.getNodeType(u)!=="link"?n([u,s]):Q.string(u)===""?N.removeNodes(o,{at:s}):n([u,s])},o}},Znt=mt(1 .valueOf),Jnt=At.RangeError,Qnt=At.RangeError,NI=At.String,II=Math.floor,WE=mt(function(t){var e=Ce(Tn(this)),r="",n=uc(t);if(n<0||n==1/0)throw Jnt("Wrong number of repetitions");for(;n>0;(n>>>=1)&&(e+=e))1&n&&(r+=e);return r}),kO=mt("".slice),of=mt(1 .toFixed),ol=function(t,e,r){return e===0?r:e%2==1?ol(t,e-1,r*t):ol(t*t,e/2,r)},Ps=function(t,e,r){for(var n=-1,o=r;++n<6;)o+=e*t[n],t[n]=o%1e7,o=II(o/1e7)},Mb=function(t,e){for(var r=6,n=0;--r>=0;)n+=t[r],t[r]=II(n/e),n=n%e*1e7},BO=function(t){for(var e=6,r="";--e>=0;)if(r!==""||e===0||t[e]!==0){var n=NI(t[e]);r=r===""?n:r+WE("0",7-n.length)+n}return r};function FO(t,e){return"w-e-image-container-"+A.findKey(t,e).id}tr({target:"Number",proto:!0,forced:Se(function(){return of(8e-5,3)!=="0.000"||of(.9,0)!=="1"||of(1.255,2)!=="1.25"||of(0xde0b6b3a7640080,0)!=="1000000000000000128"})||!Se(function(){of({})})},{toFixed:function(t){var e,r,n,o,i=Znt(this),a=uc(t),u=[0,0,0,0,0,0],s="",l="0";if(a<0||a>20)throw Qnt("Incorrect fraction digits");if(i!=i)return"NaN";if(i<=-1e21||i>=1e21)return NI(i);if(i<0&&(s="-",i=-i),i>1e-21)if(r=(e=function(c){for(var f=0,d=c;d>=4096;)f+=12,d/=4096;for(;d>=2;)f+=1,d/=2;return f}(i*ol(2,69,1))-69)<0?i*ol(2,-e,1):i/ol(2,e,1),r*=4503599627370496,(e=52-e)>0){for(Ps(u,0,r),n=a;n>=7;)Ps(u,1e7,0),n-=7;for(Ps(u,ol(10,n,1),0),n=e-1;n>=23;)Mb(u,1<<23),n-=23;Mb(u,1<<n),Ps(u,1,1),Mb(u,2),l=BO(u)}else Ps(u,0,r),Ps(u,1<<-e,0),l=BO(u)+WE("0",a);return a>0?s+((o=l.length)<=a?"0."+WE("0",a-o)+l:kO(l,0,o-a)+"."+kO(l,o-a)):s+l}});var tot={type:"image",renderElem:function(t,e,r){var n=t,o=n.src,i=n.alt,a=i===void 0?"":i,u=n.href,s=u===void 0?"":u,l=n.style,c=l===void 0?{}:l,f=c.width,d=f===void 0?"":f,p=c.height,v=p===void 0?"":p,y=A.isNodeSelected(r,t),g={};d&&(g.width="100%"),v&&(g.height="100%");var m=wt("img",{style:g,src:o,alt:a,"data-href":s}),h=r.isDisabled();return y&&!h?function(b,w,D,x){var C=B("body"),O=FO(b,w),T=x.width,R=x.height,H=0,M=0,K=0,U=!1,W=null;function q(ut){W=function(){var P=B("#"+O);if(P.length===0)throw new Error("Cannot find image container elem");return P}(),H=ut;var k=W.find("img");if(k.length===0)throw new Error("Cannot find image elem");M=k.width(),K=k.height(),C.on("mousemove",rt),C.on("mouseup",lt);var S=A.getHoverbar(b);S&&S.hideAndClean()}var rt=Hu(function(ut){ut.preventDefault();var k=ut.clientX,S=M+(U?H-k:k-H),P=K*(S/M);W!=null&&(S<=15||P<=15||(W.css("width",S+"px"),W.css("height",P+"px")))},100);function lt(ut){if(C.off("mousemove",rt),W!=null){var k=W.width().toFixed(2),S=W.height().toFixed(2),P={style:ba(ba({},w.style),{width:k+"px",height:S+"px"})};N.setNodes(b,P,{at:A.findPath(b,w)}),C.off("mouseup",lt)}}var st={};return T&&(st.width=T),R&&(st.height=R),wt("div",{id:O,style:st,className:"w-e-image-container w-e-selected-image-container",on:{mousedown:function(ut){var k=B(ut.target);k.hasClass("w-e-image-dragger")&&(ut.preventDefault(),(k.hasClass("left-top")||k.hasClass("left-bottom"))&&(U=!0),q(ut.clientX))}}},D,wt("div",{className:"w-e-image-dragger left-top"}),wt("div",{className:"w-e-image-dragger right-top"}),wt("div",{className:"w-e-image-dragger left-bottom"}),wt("div",{className:"w-e-image-dragger right-bottom"}))}(r,t,m,{width:d,height:v}):function(b,w,D,x){var C=x.width,O=x.height,T={};return C&&(T.width=C),O&&(T.height=O),wt("div",{id:FO(b,w),style:T,className:"w-e-image-container"},D)}(r,t,m,{width:d,height:v})}},eot={selector:"img:not([data-w-e-type])",parseElemHtml:function(t,e,r){var n=B(t),o=n.attr("data-href")||"";return o=decodeURIComponent(o),{type:"image",src:n.attr("src")||"",alt:n.attr("alt")||"",href:o,style:{width:Yn(n,"width"),height:Yn(n,"height")},children:[{text:""}]}}};function LI(t,e,r,n,o){return n===void 0&&(n=""),o===void 0&&(o=""),Fa(this,void 0,void 0,function(){var i,a;return Ta(this,function(u){switch(u.label){case 0:return(i=e.getMenuConfig(t).checkImage)?[4,i(r,n,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 RI(t,e,r){return Fa(this,void 0,void 0,function(){var n;return Ta(this,function(o){switch(o.label){case 0:return(n=e.getMenuConfig(t).parseImageSrc)?[4,n(r)]:[3,2];case 1:return[2,o.sent()];case 2:return[2,r]}})})}function Su(t,e,r,n){return r===void 0&&(r=""),n===void 0&&(n=""),Fa(this,void 0,void 0,function(){var o,i,a;return Ta(this,function(u){switch(u.label){case 0:return[4,LI("insertImage",t,e,r,n)];case 1:return u.sent()?[4,RI("insertImage",t,e)]:[2];case 2:return o=u.sent(),i={type:"image",src:_D(o),href:n,alt:r,style:{},children:[{text:""}]},t.selection===null&&t.restoreSelection(),A.getSelectedNodeByType(t,"image")&&t.move(1),Xy(t)||(N.insertNodes(t,i),(a=t.getMenuConfig("insertImage").onInsertedImage)&&a(i)),[2]}})})}function Xy(t){var e=t.selection;return e==null||!L.isCollapsed(e)||!!Xt(E.nodes(t,{match:function(r){var n=A.getNodeType(r);return n==="code"||n==="pre"||n==="link"||n==="list-item"||!!n.startsWith("header")||n==="blockquote"||!!E.isVoid(t,r)},universal:!0}),1)[0]}function qh(){return Yy("w-e-insert-image")}var rot=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=qh(),this.altInputId=qh(),this.hrefInputId=qh(),this.buttonId=qh()}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,r){},t.prototype.isDisabled=function(e){return Xy(e)},t.prototype.getModalPositionNode=function(e){return null},t.prototype.getModalContentElem=function(e){var r=this,n=this,o=n.srcInputId,i=n.altInputId,a=n.hrefInputId,u=n.buttonId,s=Xt(rn(tt("image.src"),o),2),l=s[0],c=B(s[1]),f=Xt(rn(tt("image.desc"),i),2),d=f[0],p=B(f[1]),v=Xt(rn(tt("image.link"),a),2),y=v[0],g=B(v[1]),m=Xt(oc(u,tt("common.ok")),1)[0];if(this.$content==null){var h=B("<div></div>");h.on("click","#"+u,function(w){w.preventDefault();var D=h.find("#"+o).val().trim(),x=h.find("#"+i).val().trim(),C=h.find("#"+a).val().trim();r.insertImage(e,D,x,C),e.hidePanelOrModal()}),this.$content=h}var b=this.$content;return b.empty(),b.append(l),b.append(d),b.append(y),b.append(m),c.val(""),p.val(""),g.val(""),setTimeout(function(){c.focus()}),b[0]},t.prototype.insertImage=function(e,r,n,o){n===void 0&&(n=""),o===void 0&&(o=""),r&&(e.restoreSelection(),this.isDisabled(e)||Su(e,r,n,o))},t}(),not=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,r){this.isDisabled(e)||N.removeNodes(e,{match:function(n){return A.checkNodeType(n,"image")}})},t}();function Kh(){return Yy("w-e-edit-image")}var oot=function(){function t(){this.title=tt("image.edit"),this.iconSvg=CI,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=Kh(),this.altInputId=Kh(),this.hrefInputId=Kh(),this.buttonId=Kh()}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,r){},t.prototype.isDisabled=function(e){var r=e.selection;return r==null||!L.isCollapsed(r)||A.getSelectedNodeByType(e,"image")==null},t.prototype.getModalPositionNode=function(e){return this.getImageNode(e)},t.prototype.getModalContentElem=function(e){var r=this,n=this,o=n.srcInputId,i=n.altInputId,a=n.hrefInputId,u=n.buttonId,s=this.getImageNode(e);if(s==null)throw new Error("Not found selected image node");var l=Xt(rn(tt("image.src"),o),2),c=l[0],f=B(l[1]),d=Xt(rn(tt("image.desc"),i),2),p=d[0],v=B(d[1]),y=Xt(rn(tt("image.link"),a),2),g=y[0],m=B(y[1]),h=Xt(oc(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();r.updateImage(e,M,K,U),e.hidePanelOrModal()}),this.$content=b}var w=this.$content;w.empty(),w.append(c),w.append(p),w.append(g),w.append(h);var D=s,x=D.src,C=D.alt,O=C===void 0?"":C,T=D.href,R=T===void 0?"":T;return f.val(x),v.val(O),m.val(R),setTimeout(function(){f.focus()}),w[0]},t.prototype.updateImage=function(e,r,n,o,i){n===void 0&&(n=""),o===void 0&&(o=""),i===void 0&&(i={}),r&&(e.restoreSelection(),this.isDisabled(e)||function(a,u,s,l,c){s===void 0&&(s=""),l===void 0&&(l=""),c===void 0&&(c={}),Fa(this,void 0,void 0,function(){var f,d,p,v,y,g;return Ta(this,function(m){switch(m.label){case 0:return[4,LI("editImage",a,u,s,l)];case 1:return m.sent()?[4,RI("editImage",a,u)]:[2];case 2:return f=m.sent(),(d=A.getSelectedNodeByType(a,"image"))==null||(p=d.style,v={src:f,alt:s,href:l,style:ba(ba({},p===void 0?{}:p),c)},N.setNodes(a,v,{match:function(h){return A.checkNodeType(h,"image")}}),y=A.getSelectedNodeByType(a,"image"),(g=a.getMenuConfig("editImage").onUpdatedImage)&&g(y)),[2]}})})}(e,r,n,o,i))},t}(),iot=function(){function t(){this.title=tt("image.viewLink"),this.iconSvg=xI,this.tag="button"}return t.prototype.getValue=function(e){var r=A.getSelectedNodeByType(e,"image");return r&&r.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,r){if(!this.isDisabled(e)){if(!r||typeof r!="string")throw new Error("View image link failed, image.href is '"+r+"'");window.open(r,"_blank")}},t}(),jD=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,r){if(!this.isDisabled(e)){var n=this.getSelectedNode(e);if(n!=null){var o=A.getHoverbar(e);o&&o.hideAndClean();var i=n.style,a={style:ba(ba({},i===void 0?{}:i),{width:this.value,height:""})};N.setNodes(e,a,{match:function(u){return A.checkNodeType(u,"image")}})}}},t}(),aot=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.title="30%",r.value="30%",r}return Ee(e,t),e}(jD),uot=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.title="50%",r.value="50%",r}return Ee(e,t),e}(jD),sot=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.title="100%",r.value="100%",r}return Ee(e,t),e}(jD),TO={onInsertedImage:function(t){},onUpdatedImage:function(t){},checkImage:function(t,e,r){return!0},parseImageSrc:function(t){return t}},lot={renderElems:[tot],elemsToHtml:[{type:"image",elemToHtml:function(t,e){var r=t,n=r.src,o=r.alt,i=o===void 0?"":o,a=r.href,u=a===void 0?"":a,s=r.style,l=s===void 0?{}:s,c=l.width,f=c===void 0?"":c,d=l.height,p=d===void 0?"":d,v="";return f&&(v+="width: "+f+";"),p&&(v+="height: "+p+";"),'<img src="'+n+'" alt="'+i+'" data-href="'+u+'" style="'+v+'"/>'}}],parseElemsHtml:[eot],menus:[{key:"insertImage",factory:function(){return new rot},config:TO},{key:"deleteImage",factory:function(){return new not}},{key:"editImage",factory:function(){return new oot},config:TO},{key:"viewImageLink",factory:function(){return new iot}},{key:"imageWidth30",factory:function(){return new aot}},{key:"imageWidth50",factory:function(){return new uot}},{key:"imageWidth100",factory:function(){return new sot}}],editorPlugin:function(t){var e=t.isInline,r=t.isVoid;t.insertNode;var n=t;return n.isInline=function(o){return o.type==="image"||e(o)},n.isVoid=function(o){return o.type==="image"||r(o)},n}},cot={type:"todo",renderElem:function(t,e,r){var n=!1;r.isDisabled()&&(n=!0);var o=wt("div",{style:{margin:"5px 0"}},wt("span",{contentEditable:!1,style:{marginRight:"0.5em"}},wt("input",{type:"checkbox",checked:t.checked,disabled:n,on:{change:function(i){var a=A.findPath(r,t),u={checked:i.target.checked};N.setNodes(r,u,{at:a})}}})),wt("span",null,e));return o}},fot=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(r){if(E.isVoid(e,r)&&E.isBlock(e,r))return!0;var n=r.type;return!!["pre","table","list-item"].includes(n)||void 0})},t.prototype.exec=function(e,r){var n=this.isActive(e);N.setNodes(e,{type:n?"paragraph":"todo"})},t}(),dot={selector:'div[data-w-e-type="todo"]',parseElemHtml:function(t,e,r){var n=B(t);(e=e.filter(function(i){return!!it.isText(i)||!!r.isInline(i)})).length===0&&(e=[{text:n.text().replace(/\s+/gm," ")}]);var o=!1;return n.find('input[type="checkbox"]').attr("checked")!=null&&(o=!0),{type:"todo",checked:o,children:e}}},pot={renderElems:[cot],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"),r=B('<div data-w-e-type="todo"></div>'),n=e.find("input[type]");return r.append(n),e.children()[0].remove(),r[0].innerHTML=r[0].innerHTML+e[0].innerHTML,r[0]}}],parseElemsHtml:[dot],menus:[{key:"todo",factory:function(){return new fot}}],editorPlugin:function(t){var e=t.deleteBackward,r=t;return r.deleteBackward=function(n){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(n)},r}},hot={type:"blockquote",renderElem:function(t,e,r){return wt("blockquote",null,e)}},got={selector:"blockquote:not([data-w-e-type])",parseElemHtml:function(t,e,r){var n=B(t);return(e=e.filter(function(o){return!!it.isText(o)||!!r.isInline(o)})).length===0&&(e=[{text:n.text().replace(/\s+/gm," ")}]),{type:"blockquote",children:e}}},vot=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||!Xt(E.nodes(e,{match:function(r){var n=A.getNodeType(r);return n==="paragraph"||n==="blockquote"},universal:!0,mode:"highest"}),1)[0]},t.prototype.exec=function(e,r){if(!this.isDisabled(e)){var n=this.isActive(e)?"paragraph":"blockquote";N.setNodes(e,{type:n},{mode:"highest"})}},t}(),yot={key:"blockquote",factory:function(){return new vot}},mot=mt([].slice),bot=AD("slice"),wot=fn("species"),zb=At.Array,Eot=Math.max;tr({target:"Array",proto:!0,forced:!bot},{slice:function(t,e){var r,n,o,i=ic(this),a=qy(i),u=Ud(t,a),s=Ud(e===void 0?a:e,a);if(l0(i)&&(r=i.constructor,(SD(r)&&(r===zb||l0(r.prototype))||mo(r)&&(r=r[wot])===null)&&(r=void 0),r===zb||r===void 0))return mot(i,u,s);for(n=new(r===void 0?zb:r)(Eot(s-u,0)),o=0;u<s;u++,o++)u in i&&yI(n,o,i[u]);return n.length=o,n}});var Dot={renderElems:[hot],elemsToHtml:[{type:"blockquote",elemToHtml:function(t,e){return"<blockquote>"+e+"</blockquote>"}}],parseElemsHtml:[got],menus:[yot],editorPlugin:function(t){var e=t.insertBreak,r=t.insertText,n=t;return n.insertBreak=function(){var o=n.selection;if(o==null)return e();var i=Xt(E.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=E.end(t,u);if(Ft.equals(s,o.focus)){var l=Q.string(a);if(l&&l.slice(-1)===`
`)return t.deleteBackward("character"),void N.insertNodes(n,{type:"paragraph",children:[{text:""}]},{mode:"highest"})}r(`
`)},n}},Cot=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,r){},t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null||!!Xt(E.nodes(e,{match:function(r){return A.getNodeType(r)==="pre"||!!E.isVoid(e,r)},universal:!0}),1)[0]},t.prototype.getPanelContentElem=function(e){if(this.$content==null){var r=B('<ul class="w-e-panel-content-emotion"></ul>');r.on("click","li",function(i){var a=i.target;if(a!=null){i.preventDefault();var u=B(a).text();e.insertText(u)}}),this.$content=r}var n=this.$content;if(n==null)return document.createElement("ul");n.empty();var o=e.getMenuConfig("emotion").emotions;return(o===void 0?[]:o).forEach(function(i){var a=B("<li>"+i+"</li>");n.append(a)}),n[0]},t}(),xot={menus:[{key:"emotion",factory:function(){return new Cot},config:{emotions:"😀 😃 😄 😁 😆 😅 😂 🤣 😊 😇 🙂 🙃 😉 😌 😍 😘 😗 😙 😚 😋 😛 😝 😜 🤓 😎 😏 😒 😞 😔 😟 😕 🙁 😣 😖 😫 😩 😢 😭 😤 😠 😡 😳 😱 😨 🤗 🤔 😶 😑 😬 🙄 😯 😴 😷 🤑 😈 🤡 💩 👻 💀 👀 👣 👐 🙌 👏 🤝 👍 👎 👊 ✊ 🤛 🤜 🤞 ✌️ 🤘 👌 👈 👉 👆 👇 ☝️ ✋ 🤚 🖐 🖖 👋 🤙 💪 🖕 ✍️ 🙏".split(" ")}}]},Sot={1:"12px",2:"14px",3:"16px",4:"19px",5:"24px",6:"32px",7:"48px"},Aot={selector:"font",preParseHtml:function(t){var e=B(t);if(lc(e)!=="font")return t;var r=e.attr("size")||"";r&&(e.removeAttr("size"),e.css("font-size",Sot[r]));var n=e.attr("face")||"";return n&&(e.removeAttr("face"),e.css("font-family",n)),e[0]}},Oot=mt("".indexOf);tr({target:"String",proto:!0,forced:!OI("includes")},{includes:function(t){return!!~Oot(Ce(Tn(this)),Ce(AI(t)),arguments.length>1?arguments[1]:void 0)}});var ki,Ug,Yh=function(t){return t&&t.Math==Math&&t},Tt=Yh(typeof globalThis=="object"&&globalThis)||Yh(typeof window=="object"&&window)||Yh(typeof self=="object"&&self)||Yh(typeof a0=="object"&&a0)||function(){return this}()||Function("return this")(),ND=Function.prototype,_O=ND.apply,kot=ND.bind,PO=ND.call,MI=typeof Reflect=="object"&&Reflect.apply||(kot?PO.bind(_O):function(){return PO.apply(_O,arguments)}),zI=Function.prototype,GE=zI.bind,qE=zI.call,Bot=GE&&GE.bind(qE),_e=GE?function(t){return t&&Bot(qE,t)}:function(t){return t&&function(){return qE.apply(t,arguments)}},Or=function(t){return typeof t=="function"},sn=function(t){try{return!!t()}catch(e){return!0}},Wr=!sn(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),af=Function.prototype.call,Co=af.bind?af.bind(af):function(){return af.apply(af,arguments)},jO={}.propertyIsEnumerable,NO=Object.getOwnPropertyDescriptor,Fot=NO&&!jO.call({1:2},1)?function(t){var e=NO(this,t);return!!e&&e.enumerable}:jO,ID={f:Fot},Yu=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},Tot=_e({}.toString),_ot=_e("".slice),Au=function(t){return _ot(Tot(t),8,-1)},$b=Tt.Object,Pot=_e("".split),$I=sn(function(){return!$b("z").propertyIsEnumerable(0)})?function(t){return Au(t)=="String"?Pot(t,""):$b(t)}:$b,jot=Tt.TypeError,LD=function(t){if(t==null)throw jot("Can't call method on "+t);return t},No=function(t){return $I(LD(t))},Un=function(t){return typeof t=="object"?t!==null:Or(t)},mn={},IO=function(t){return Or(t)?t:void 0},Hp=function(t,e){return arguments.length<2?IO(mn[t])||IO(Tt[t]):mn[t]&&mn[t][e]||Tt[t]&&Tt[t][e]},HI=_e({}.isPrototypeOf),Hb=Hp("navigator","userAgent")||"",LO=Tt.process,RO=Tt.Deno,MO=LO&&LO.versions||RO&&RO.version,zO=MO&&MO.v8;zO&&(Ug=(ki=zO.split("."))[0]>0&&ki[0]<4?1:+(ki[0]+ki[1])),!Ug&&Hb&&(!(ki=Hb.match(/Edge\/(\d+)/))||ki[1]>=74)&&(ki=Hb.match(/Chrome\/(\d+)/))&&(Ug=+ki[1]);var d0=Ug,co=!!Object.getOwnPropertySymbols&&!sn(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&d0&&d0<41}),RD=co&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Not=Tt.Object,pl=RD?function(t){return typeof t=="symbol"}:function(t){var e=Hp("Symbol");return Or(e)&&HI(e.prototype,Not(t))},Iot=Tt.String,Lot=Tt.TypeError,VI=function(t){if(Or(t))return t;throw Lot(function(e){try{return Iot(e)}catch(r){return"Object"}}(t)+" is not a function")},Rot=Tt.TypeError,Mot=Object.defineProperty,ra=Tt["__core-js_shared__"]||function(t,e){try{Mot(Tt,t,{value:e,configurable:!0,writable:!0})}catch(r){Tt[t]=e}return e}("__core-js_shared__",{}),ls=Vy(function(t){(t.exports=function(e,r){return ra[e]||(ra[e]=r!==void 0?r:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),zot=Tt.Object,Vp=function(t){return zot(LD(t))},$ot=_e({}.hasOwnProperty),Yt=Object.hasOwn||function(t,e){return $ot(Vp(t),e)},Hot=0,Vot=Math.random(),Uot=_e(1 .toString),p0=function(t){return"Symbol("+(t===void 0?"":t)+")_"+Uot(++Hot+Vot,36)},uf=ls("wks"),Ou=Tt.Symbol,$O=Ou&&Ou.for,Wot=RD?Ou:Ou&&Ou.withoutSetter||p0,dn=function(t){if(!Yt(uf,t)||!co&&typeof uf[t]!="string"){var e="Symbol."+t;co&&Yt(Ou,t)?uf[t]=Ou[t]:uf[t]=RD&&$O?$O(e):Wot(e)}return uf[t]},Got=Tt.TypeError,qot=dn("toPrimitive"),cc=function(t){var e=function(r,n){if(!Un(r)||pl(r))return r;var o,i,a=(o=r[qot])==null?void 0:VI(o);if(a){if(i=Co(a,r,n),!Un(i)||pl(i))return i;throw Got("Can't convert object to primitive value")}return function(u,s){var l,c;if(Or(l=u.toString)&&!Un(c=Co(l,u))||Or(l=u.valueOf)&&!Un(c=Co(l,u)))return c;throw Rot("Can't convert object to primitive value")}(r)}(t,"string");return pl(e)?e:e+""},KE=Tt.document,Kot=Un(KE)&&Un(KE.createElement),UI=function(t){return Kot?KE.createElement(t):{}},WI=!Wr&&!sn(function(){return Object.defineProperty(UI("div"),"a",{get:function(){return 7}}).a!=7}),HO=Object.getOwnPropertyDescriptor,MD={f:Wr?HO:function(t,e){if(t=No(t),e=cc(e),WI)try{return HO(t,e)}catch(r){}if(Yt(t,e))return Yu(!Co(ID.f,t,e),t[e])}},Yot=/#|\.prototype\./,Up=function(t,e){var r=Zot[Xot(t)];return r==Qot||r!=Jot&&(Or(e)?sn(e):!!e)},Xot=Up.normalize=function(t){return String(t).replace(Yot,".").toLowerCase()},Zot=Up.data={},Jot=Up.NATIVE="N",Qot=Up.POLYFILL="P",tit=Up,VO=_e(_e.bind),GI=function(t,e){return VI(t),e===void 0?t:VO?VO(t,e):function(){return t.apply(e,arguments)}},eit=Tt.String,rit=Tt.TypeError,Xu=function(t){if(Un(t))return t;throw rit(eit(t)+" is not an object")},nit=Tt.TypeError,UO=Object.defineProperty,cs={f:Wr?UO:function(t,e,r){if(Xu(t),e=cc(e),Xu(r),WI)try{return UO(t,e,r)}catch(n){}if("get"in r||"set"in r)throw nit("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},po=Wr?function(t,e,r){return cs.f(t,e,Yu(1,r))}:function(t,e,r){return t[e]=r,t},oit=MD.f,iit=function(t){var e=function(r,n,o){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(r);case 2:return new t(r,n)}return new t(r,n,o)}return MI(t,this,arguments)};return e.prototype=t.prototype,e},Li=function(t,e){var r,n,o,i,a,u,s,l,c=t.target,f=t.global,d=t.stat,p=t.proto,v=f?Tt:d?Tt[c]:(Tt[c]||{}).prototype,y=f?mn:mn[c]||po(mn,c,{})[c],g=y.prototype;for(o in e)r=!tit(f?o:c+(d?".":"#")+o,t.forced)&&v&&Yt(v,o),a=y[o],r&&(u=t.noTargetGet?(l=oit(v,o))&&l.value:v[o]),i=r&&u?u:e[o],r&&typeof a==typeof i||(s=t.bind&&r?GI(i,Tt):t.wrap&&r?iit(i):p&&Or(i)?_e(i):i,(t.sham||i&&i.sham||a&&a.sham)&&po(s,"sham",!0),po(y,o,s),p&&(Yt(mn,n=c+"Prototype")||po(mn,n,{}),po(mn[n],o,i),t.real&&g&&!g[o]&&po(g,o,i)))},h0=Array.isArray||function(t){return Au(t)=="Array"},ait=Math.ceil,uit=Math.floor,zD=function(t){var e=+t;return e!=e||e===0?0:(e>0?uit:ait)(e)},sit=Math.min,Zy=function(t){return(e=t.length)>0?sit(zD(e),9007199254740991):0;var e},YE=function(t,e,r){var n=cc(e);n in t?cs.f(t,n,Yu(0,r)):t[n]=r},qI={};qI[dn("toStringTag")]="z";var $D=String(qI)==="[object z]",lit=dn("toStringTag"),cit=Tt.Object,fit=Au(function(){return arguments}())=="Arguments",Jy=$D?Au:function(t){var e,r,n;return t===void 0?"Undefined":t===null?"Null":typeof(r=function(o,i){try{return o[i]}catch(a){}}(e=cit(t),lit))=="string"?r:fit?Au(e):(n=Au(e))=="Object"&&Or(e.callee)?"Arguments":n},dit=_e(Function.toString);Or(ra.inspectSource)||(ra.inspectSource=function(t){return dit(t)});var KI=ra.inspectSource,YI=function(){},pit=[],XI=Hp("Reflect","construct"),HD=/^\s*(?:class|function)\b/,hit=_e(HD.exec),git=!HD.exec(YI),sf=function(t){if(!Or(t))return!1;try{return XI(YI,pit,t),!0}catch(e){return!1}},vit=!XI||sn(function(){var t;return sf(sf.call)||!sf(Object)||!sf(function(){t=!0})||t})?function(t){if(!Or(t))return!1;switch(Jy(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return git||!!hit(HD,KI(t))}:sf,yit=dn("species"),WO=Tt.Array,ZI=function(t,e){return new(function(r){var n;return h0(r)&&(n=r.constructor,(vit(n)&&(n===WO||h0(n.prototype))||Un(n)&&(n=n[yit])===null)&&(n=void 0)),n===void 0?WO:n}(t))(e===0?0:e)},mit=dn("species"),JI=dn("isConcatSpreadable"),GO=Tt.TypeError,bit=d0>=51||!sn(function(){var t=[];return t[JI]=!1,t.concat()[0]!==t}),wit=d0>=51||!sn(function(){var t=[];return(t.constructor={})[mit]=function(){return{foo:1}},t.concat(Boolean).foo!==1}),Eit=function(t){if(!Un(t))return!1;var e=t[JI];return e!==void 0?!!e:h0(t)};Li({target:"Array",proto:!0,forced:!bit||!wit},{concat:function(t){var e,r,n,o,i,a=Vp(this),u=ZI(a,0),s=0;for(e=-1,n=arguments.length;e<n;e++)if(Eit(i=e===-1?a:arguments[e])){if(s+(o=Zy(i))>9007199254740991)throw GO("Maximum allowed index exceeded");for(r=0;r<o;r++,s++)r in i&&YE(u,s,i[r])}else{if(s>=9007199254740991)throw GO("Maximum allowed index exceeded");YE(u,s++,i)}return u.length=s,u}});var Xh,Dit=Tt.String,g0=function(t){if(Jy(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Dit(t)},Cit=Math.max,xit=Math.min,XE=function(t,e){var r=zD(t);return r<0?Cit(r+e,0):xit(r,e)},Sit=function(t){return function(e,r,n){var o,i=No(e),a=Zy(i),u=XE(n,a);if(t&&r!=r){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===r)return t||u||0;return!t&&-1}},Ait={indexOf:Sit(!1)},Wp={},Oit=Ait.indexOf,qO=_e([].push),QI=function(t,e){var r,n=No(t),o=0,i=[];for(r in n)!Yt(Wp,r)&&Yt(n,r)&&qO(i,r);for(;e.length>o;)Yt(n,r=e[o++])&&(~Oit(i,r)||qO(i,r));return i},v0=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],VD=Object.keys||function(t){return QI(t,v0)},kit=Wr?Object.defineProperties:function(t,e){Xu(t);for(var r,n=No(e),o=VD(e),i=o.length,a=0;i>a;)cs.f(t,r=o[a++],n[r]);return t},Bit=Hp("document","documentElement"),KO=ls("keys"),Qy=function(t){return KO[t]||(KO[t]=p0(t))},tL=Qy("IE_PROTO"),Vb=function(){},eL=function(t){return"<script>"+t+"<\/script>"},YO=function(t){t.write(eL("")),t.close();var e=t.parentWindow.Object;return t=null,e},Wg=function(){try{Xh=new ActiveXObject("htmlfile")}catch(n){}var t,e;Wg=typeof document!="undefined"?document.domain&&Xh?YO(Xh):((e=UI("iframe")).style.display="none",Bit.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(eL("document.F=Object")),t.close(),t.F):YO(Xh);for(var r=v0.length;r--;)delete Wg.prototype[v0[r]];return Wg()};Wp[tL]=!0;var y0,ud,m0,Zu=Object.create||function(t,e){var r;return t!==null?(Vb.prototype=Xu(t),r=new Vb,Vb.prototype=null,r[tL]=t):r=Wg(),e===void 0?r:kit(r,e)},Fit=v0.concat("length","prototype"),rL={f:Object.getOwnPropertyNames||function(t){return QI(t,Fit)}},Tit=Tt.Array,_it=Math.max,XO=rL.f,ZO=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],nL={f:function(t){return ZO&&Au(t)=="Window"?function(e){try{return XO(e)}catch(r){return function(n,o,i){for(var a=Zy(n),u=XE(void 0,a),s=XE(a,a),l=Tit(_it(s-u,0)),c=0;u<s;u++,c++)YE(l,c,n[u]);return l.length=c,l}(ZO)}}(t):XO(No(t))}},Ub={f:Object.getOwnPropertySymbols},Pit=_e([].slice),b0=function(t,e,r,n){po(t,e,r)},UD={f:dn},jit=cs.f,Ie=function(t){var e=mn.Symbol||(mn.Symbol={});Yt(e,t)||jit(e,t,{value:UD.f(t)})},Nit=$D?{}.toString:function(){return"[object "+Jy(this)+"]"},Iit=cs.f,JO=dn("toStringTag"),w0=function(t,e,r,n){if(t){var o=r?t:t.prototype;Yt(o,JO)||Iit(o,JO,{configurable:!0,value:e}),n&&!$D&&po(o,"toString",Nit)}},QO=Tt.WeakMap,Lit=Or(QO)&&/native code/.test(KI(QO)),ZE=Tt.TypeError,Rit=Tt.WeakMap;if(Lit||ra.state){var Ga=ra.state||(ra.state=new Rit),Mit=_e(Ga.get),tk=_e(Ga.has),zit=_e(Ga.set);y0=function(t,e){if(tk(Ga,t))throw new ZE("Object already initialized");return e.facade=t,zit(Ga,t,e),e},ud=function(t){return Mit(Ga,t)||{}},m0=function(t){return tk(Ga,t)}}else{var js=Qy("state");Wp[js]=!0,y0=function(t,e){if(Yt(t,js))throw new ZE("Object already initialized");return e.facade=t,po(t,js,e),e},ud=function(t){return Yt(t,js)?t[js]:{}},m0=function(t){return Yt(t,js)}}var fc={set:y0,get:ud,has:m0,enforce:function(t){return m0(t)?ud(t):y0(t,{})},getterFor:function(t){return function(e){var r;if(!Un(e)||(r=ud(e)).type!==t)throw ZE("Incompatible receiver, "+t+" required");return r}}},ek=_e([].push),Bi=function(t){var e=t==1,r=t==2,n=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var d,p,v=Vp(s),y=$I(v),g=GI(l,c),m=Zy(y),h=0,b=f||ZI,w=e?b(s,m):r||a?b(s,0):void 0;m>h;h++)if((u||h in y)&&(p=g(d=y[h],h,v),t))if(e)w[h]=p;else if(p)switch(t){case 3:return!0;case 5:return d;case 6:return h;case 2:ek(w,d)}else switch(t){case 4:return!1;case 7:ek(w,d)}return i?-1:n||o?o:w}},tm=[Bi(0),Bi(1),Bi(2),Bi(3),Bi(4),Bi(5),Bi(6),Bi(7)][0],Mr=Qy("hidden"),rk=dn("toPrimitive"),$it=fc.set,nk=fc.getterFor("Symbol"),Wn=Object.prototype,zi=Tt.Symbol,Gi=zi&&zi.prototype,ok=Tt.TypeError,Wb=Tt.QObject,lf=Hp("JSON","stringify"),oL=MD.f,$i=cs.f,iL=nL.f,Hit=ID.f,aL=_e([].push),si=ls("symbols"),Gp=ls("op-symbols"),Gb=ls("string-to-symbol-registry"),qb=ls("symbol-to-string-registry"),Vit=ls("wks"),Kb=!Wb||!Wb.prototype||!Wb.prototype.findChild,JE=Wr&&sn(function(){return Zu($i({},"a",{get:function(){return $i(this,"a",{value:7}).a}})).a!=7})?function(t,e,r){var n=oL(Wn,e);n&&delete Wn[e],$i(t,e,r),n&&t!==Wn&&$i(Wn,e,n)}:$i,Yb=function(t,e){var r=si[t]=Zu(Gi);return $it(r,{type:"Symbol",tag:t,description:e}),Wr||(r.description=e),r},E0=function(t,e,r){t===Wn&&E0(Gp,e,r),Xu(t);var n=cc(e);return Xu(r),Yt(si,n)?(r.enumerable?(Yt(t,Mr)&&t[Mr][n]&&(t[Mr][n]=!1),r=Zu(r,{enumerable:Yu(0,!1)})):(Yt(t,Mr)||$i(t,Mr,Yu(1,{})),t[Mr][n]=!0),JE(t,n,r)):$i(t,n,r)},ik=function(t,e){Xu(t);var r=No(e),n=VD(r).concat(QE(r));return tm(n,function(o){Wr&&!Co(uL,r,o)||E0(t,o,r[o])}),t},uL=function(t){var e=cc(t),r=Co(Hit,this,e);return!(this===Wn&&Yt(si,e)&&!Yt(Gp,e))&&(!(r||!Yt(this,e)||!Yt(si,e)||Yt(this,Mr)&&this[Mr][e])||r)},ak=function(t,e){var r=No(t),n=cc(e);if(r!==Wn||!Yt(si,n)||Yt(Gp,n)){var o=oL(r,n);return!o||!Yt(si,n)||Yt(r,Mr)&&r[Mr][n]||(o.enumerable=!0),o}},uk=function(t){var e=iL(No(t)),r=[];return tm(e,function(n){Yt(si,n)||Yt(Wp,n)||aL(r,n)}),r},QE=function(t){var e=t===Wn,r=iL(e?Gp:No(t)),n=[];return tm(r,function(o){!Yt(si,o)||e&&!Yt(Wn,o)||aL(n,si[o])}),n};if(co||(Gi=(zi=function(){if(HI(Gi,this))throw ok("Symbol is not a constructor");var t=arguments.length&&arguments[0]!==void 0?g0(arguments[0]):void 0,e=p0(t),r=function(n){this===Wn&&Co(r,Gp,n),Yt(this,Mr)&&Yt(this[Mr],e)&&(this[Mr][e]=!1),JE(this,e,Yu(1,n))};return Wr&&Kb&&JE(Wn,e,{configurable:!0,set:r}),Yb(e,t)}).prototype,b0(Gi,"toString",function(){return nk(this).tag}),b0(zi,"withoutSetter",function(t){return Yb(p0(t),t)}),ID.f=uL,cs.f=E0,MD.f=ak,rL.f=nL.f=uk,Ub.f=QE,UD.f=function(t){return Yb(dn(t),t)},Wr&&$i(Gi,"description",{configurable:!0,get:function(){return nk(this).description}})),Li({global:!0,wrap:!0,forced:!co,sham:!co},{Symbol:zi}),tm(VD(Vit),function(t){Ie(t)}),Li({target:"Symbol",stat:!0,forced:!co},{for:function(t){var e=g0(t);if(Yt(Gb,e))return Gb[e];var r=zi(e);return Gb[e]=r,qb[r]=e,r},keyFor:function(t){if(!pl(t))throw ok(t+" is not a symbol");if(Yt(qb,t))return qb[t]},useSetter:function(){Kb=!0},useSimple:function(){Kb=!1}}),Li({target:"Object",stat:!0,forced:!co,sham:!Wr},{create:function(t,e){return e===void 0?Zu(t):ik(Zu(t),e)},defineProperty:E0,defineProperties:ik,getOwnPropertyDescriptor:ak}),Li({target:"Object",stat:!0,forced:!co},{getOwnPropertyNames:uk,getOwnPropertySymbols:QE}),Li({target:"Object",stat:!0,forced:sn(function(){Ub.f(1)})},{getOwnPropertySymbols:function(t){return Ub.f(Vp(t))}}),lf){var Uit=!co||sn(function(){var t=zi();return lf([t])!="[null]"||lf({a:t})!="{}"||lf(Object(t))!="{}"});Li({target:"JSON",stat:!0,forced:Uit},{stringify:function(t,e,r){var n=Pit(arguments),o=e;if((Un(e)||t!==void 0)&&!pl(t))return h0(e)||(e=function(i,a){if(Or(o)&&(a=Co(o,this,i,a)),!pl(a))return a}),n[1]=e,MI(lf,null,n)}})}if(!Gi[rk]){var Wit=Gi.valueOf;b0(Gi,rk,function(t){return Co(Wit,this)})}w0(zi,"Symbol"),Wp[Mr]=!0,Ie("asyncIterator"),Ie("hasInstance"),Ie("isConcatSpreadable"),Ie("iterator"),Ie("match"),Ie("matchAll"),Ie("replace"),Ie("search"),Ie("species"),Ie("split"),Ie("toPrimitive"),Ie("toStringTag"),Ie("unscopables"),w0(Tt.JSON,"JSON",!0);var qi,sk,lk,Git=mn.Symbol,ku={},sL=Function.prototype,qit=Wr&&Object.getOwnPropertyDescriptor,ck=Yt(sL,"name"),Kit={PROPER:ck&&function(){}.name==="something",CONFIGURABLE:ck&&(!Wr||Wr&&qit(sL,"name").configurable)},Yit=!sn(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),fk=Qy("IE_PROTO"),t6=Tt.Object,Xit=t6.prototype,e6=Yit?t6.getPrototypeOf:function(t){var e=Vp(t);if(Yt(e,fk))return e[fk];var r=e.constructor;return Or(r)&&e instanceof r?r.prototype:e instanceof t6?Xit:null},r6=dn("iterator"),lL=!1;[].keys&&("next"in(lk=[].keys())?(sk=e6(e6(lk)))!==Object.prototype&&(qi=sk):lL=!0);var Zit=qi==null||sn(function(){var t={};return qi[r6].call(t)!==t});qi=Zit?{}:Zu(qi),Or(qi[r6])||b0(qi,r6,function(){return this});var cL={IteratorPrototype:qi,BUGGY_SAFARI_ITERATORS:lL},Jit=cL.IteratorPrototype,Qit=function(){return this};Tt.String,Tt.TypeError,Object.setPrototypeOf||"__proto__"in{}&&function(){var t={};try{_e(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set)(t,[]),t instanceof Array}catch(e){}}();var tat=Kit.PROPER,Xb=cL.BUGGY_SAFARI_ITERATORS,eat=dn("iterator"),rat=function(){return this},fL=function(t,e,r,n,o,i,a){(function(g,m,h,b){var w=m+" Iterator";g.prototype=Zu(Jit,{next:Yu(1,h)}),w0(g,w,!1,!0),ku[w]=Qit})(r,e,n);var u,s,l=function(g){if(g===o&&v)return v;if(!Xb&&g in d)return d[g];switch(g){case"keys":case"values":case"entries":return function(){return new r(this,g)}}return function(){return new r(this)}},c=e+" Iterator",f=!1,d=t.prototype,p=d[eat]||d["@@iterator"]||o&&d[o],v=!Xb&&p||l(o),y=e=="Array"&&d.entries||p;return y&&(u=e6(y.call(new t)))!==Object.prototype&&u.next&&(w0(u,c,!0,!0),ku[c]=rat),tat&&o=="values"&&p&&p.name!=="values"&&(f=!0,v=function(){return Co(p,this)}),o&&(s={values:l("values"),keys:l("keys"),entries:l("entries")},a||Li({target:e,proto:!0,forced:Xb||f},s)),ku[e]=v,s},nat=fc.set,oat=fc.getterFor("Array Iterator");fL(Array,"Array",function(t,e){nat(this,{type:"Array Iterator",target:No(t),index:0,kind:e})},function(){var t=oat(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):r=="keys"?{value:n,done:!1}:r=="values"?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}},"values"),ku.Arguments=ku.Array;var dk=dn("toStringTag");for(var Zb 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 pk=Tt[Zb],Jb=pk&&pk.prototype;Jb&&Jy(Jb)!==dk&&po(Jb,dk,Zb),ku[Zb]=ku.Array}var iat=Git;Ie("asyncDispose"),Ie("dispose"),Ie("matcher"),Ie("metadata"),Ie("observable"),Ie("patternMatch"),Ie("replaceAll");var Zh=iat,aat=_e("".charAt),hk=_e("".charCodeAt),uat=_e("".slice),sat=function(t){return function(e,r){var n,o,i=g0(LD(e)),a=zD(r),u=i.length;return a<0||a>=u?t?"":void 0:(n=hk(i,a))<55296||n>56319||a+1===u||(o=hk(i,a+1))<56320||o>57343?t?aat(i,a):n:t?uat(i,a,a+2):o-56320+(n-55296<<10)+65536}},lat=sat(!0),cat=fc.set,fat=fc.getterFor("String Iterator");fL(String,"String",function(t){cat(this,{type:"String Iterator",string:g0(t),index:0})},function(){var t,e=fat(this),r=e.string,n=e.index;return n>=r.length?{value:void 0,done:!0}:(t=lat(r,n),e.index+=t.length,{value:t,done:!1})});var dat=UD.f("iterator"),pat=Vy(function(t){function e(r){return typeof Zh=="function"&&typeof dat=="symbol"?(t.exports=e=function(n){return typeof n},t.exports.default=t.exports,t.exports.__esModule=!0):(t.exports=e=function(n){return n&&typeof Zh=="function"&&n.constructor===Zh&&n!==Zh.prototype?"symbol":typeof n},t.exports.default=t.exports,t.exports.__esModule=!0),e(r)}t.exports=e,t.exports.default=t.exports,t.exports.__esModule=!0}),dL=function(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}(pat),hat=Gy.EXISTS,gat=ac.f,pL=Function.prototype,vat=mt(pL.toString),hL=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,yat=mt(hL.exec);Jn&&!hat&&gat(pL,"name",{configurable:!0,get:function(){try{return yat(hL,vat(this))[1]}catch(t){return""}}});var gL=function(){function t(){this.tag="select",this.width=80}return t.prototype.isActive=function(e){return!1},t.prototype.getValue=function(e){var r=this.mark,n=E.marks(e);return n&&n[r]?n[r]:""},t.prototype.isDisabled=function(e){return e.selection==null||(this.mark,!!Xt(E.nodes(e,{match:function(r){return A.getNodeType(r)==="pre"||!!E.isVoid(e,r)},universal:!0}),1)[0])},t.prototype.exec=function(e,r){var n=this.mark;r?e.addMark(n,r):e.removeMark(n)},t}(),mat=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.title=tt("fontSize.title"),r.iconSvg=Vrt,r.mark="fontSize",r}return Ee(e,t),e.prototype.getOptions=function(r){var n=[],o=r.getMenuConfig(this.mark).fontSizeList,i=o===void 0?[]:o;n.push({text:tt("fontSize.default"),value:""}),i.forEach(function(u){if(typeof u=="string")n.push({text:u,value:u});else if(dL(u)==="object"){var s=u.name,l=u.value;n.push({text:s,value:l})}});var a=this.getValue(r);return n.forEach(function(u){u.value===a?u.selected=!0:delete u.selected}),n},e}(gL),bat=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.title=tt("fontFamily.title"),r.iconSvg=Urt,r.mark="fontFamily",r.selectPanelWidth=150,r}return Ee(e,t),e.prototype.getOptions=function(r){var n=[],o=r.getMenuConfig(this.mark).fontFamilyList,i=o===void 0?[]:o;n.push({text:tt("fontFamily.default"),value:""}),i.forEach(function(u){if(typeof u=="string")n.push({text:u,value:u,styleForRenderMenuList:{"font-family":u}});else if(dL(u)==="object"){var s=u.name,l=u.value;n.push({text:s,value:l,styleForRenderMenuList:{"font-family":l}})}});var a=this.getValue(r);return n.forEach(function(u){u.value===a?u.selected=!0:delete u.selected}),n},e}(gL),wat={renderStyle:function(t,e){var r=t,n=r.fontSize,o=r.fontFamily,i=e;return n&&Ku(i,{fontSize:n}),o&&Ku(i,{fontFamily:o}),i},styleToHtml:function(t,e){if(!it.isText(t))return e;var r,n=t,o=n.fontSize,i=n.fontFamily;return o||i?((TD(e)||lc(r=B(e))!=="span")&&(r=B("<span>"+e+"</span>")),o&&r.css("font-size",o),i&&r.css("font-family",i),sc(r)):e},preParseHtml:[Aot],parseStyleHtml:function(t,e,r){var n=B(t);if(!it.isText(e))return e;var o=e,i=r.getMenuConfig("fontSize").fontSizeList,a=i===void 0?[]:i,u=Yn(n,"font-size"),s=a.find(function(p){return p.value&&p.value===u})||a.includes(u);u&&s&&(o.fontSize=u);var l=r.getMenuConfig("fontFamily").fontFamilyList,c=l===void 0?[]:l,f=Yn(n,"font-family").replace(/"/g,""),d=c.find(function(p){return p.value&&p.value===f})||c.includes(f);return f&&d&&(o.fontFamily=f),o},menus:[{key:"fontSize",factory:function(){return new mat},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 bat},config:{fontFamilyList:["黑体",{name:"仿宋",value:"仿宋"},"楷体","标楷体","华文仿宋","华文楷体",{name:"宋体",value:"宋体"},"微软雅黑","Arial","Tahoma","Verdana","Times New Roman","Courier New"]}}]},Eat={selector:"p,h1,h2,h3,h4,h5",preParseHtml:function(t){var e=B(t),r=Yn(e,"padding-left");return/\dem/.test(r)&&e.css("text-indent","2em"),/\dpx/.test(r)&&parseInt(r,10)%32==0&&e.css("text-indent","2em"),e[0]}},vL=function(){function t(){this.tag="button"}return t.prototype.getValue=function(e){var r=Xt(E.nodes(e,{match:function(o){return!!o.indent},universal:!0}),1),n=r[0];return n==null?"":Xt(n,1)[0].indent||""},t.prototype.isActive=function(e){return!1},t.prototype.getMatchNode=function(e){var r=Xt(E.nodes(e,{match:function(n){var o=A.getNodeType(n);return o==="paragraph"||!!o.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return r==null?null:r[0]},t}(),Dat=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.title=tt("indent.decrease"),r.iconSvg=Wrt,r}return Ee(e,t),e.prototype.isDisabled=function(r){var n=this.getMatchNode(r);return n==null||!n.indent},e.prototype.exec=function(r,n){N.setNodes(r,{indent:null},{match:function(o){return ft.isElement(o)}})},e}(vL),Cat=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.title=tt("indent.increase"),r.iconSvg=Grt,r}return Ee(e,t),e.prototype.isDisabled=function(r){var n=this.getMatchNode(r);return n==null||!!n.indent},e.prototype.exec=function(r,n){N.setNodes(r,{indent:"2em"},{match:function(o){return ft.isElement(o)},mode:"highest"})},e}(vL),xat={renderStyle:function(t,e){if(!ft.isElement(t))return e;var r=t.indent,n=e;return r&&Ku(n,{textIndent:r}),n},styleToHtml:function(t,e){if(!ft.isElement(t))return e;var r=t.indent;if(!r)return e;var n=B(e);return n.css("text-indent",r),sc(n)},preParseHtml:[Eat],parseStyleHtml:function(t,e,r){var n=B(t);if(!ft.isElement(e))return e;var o=e,i=Yn(n,"text-indent"),a=parseInt(i,10);return i&&a>0&&(o.indent=i),o},menus:[{key:"indent",factory:function(){return new Cat}},{key:"delIndent",factory:function(){return new Dat}}]},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 r=Xt(E.nodes(e,{match:function(n){var o=A.getNodeType(n);return o==="paragraph"||o==="blockquote"||!!o.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return r==null?null:r[0]},t.prototype.isDisabled=function(e){return e.selection==null||!!A.getSelectedElems(e).some(function(r){if(E.isVoid(e,r)&&E.isBlock(e,r))return!0;var n=r.type;return!!["pre","code"].includes(n)||void 0})},t}(),Sat=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.title=tt("justify.left"),r.iconSvg=qrt,r}return Ee(e,t),e.prototype.exec=function(r,n){N.setNodes(r,{textAlign:"left"},{match:function(o){return ft.isElement(o)&&!r.isInline(o)}})},e}(em),Aat=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.title=tt("justify.right"),r.iconSvg=Krt,r}return Ee(e,t),e.prototype.exec=function(r,n){N.setNodes(r,{textAlign:"right"},{match:function(o){return ft.isElement(o)&&!r.isInline(o)}})},e}(em),Oat=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.title=tt("justify.center"),r.iconSvg=Yrt,r}return Ee(e,t),e.prototype.exec=function(r,n){N.setNodes(r,{textAlign:"center"},{match:function(o){return ft.isElement(o)&&!r.isInline(o)}})},e}(em),kat=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.title=tt("justify.justify"),r.iconSvg=Xrt,r}return Ee(e,t),e.prototype.exec=function(r,n){N.setNodes(r,{textAlign:"justify"},{match:function(o){return ft.isElement(o)&&!r.isInline(o)}})},e}(em),Bat={renderStyle:function(t,e){if(!ft.isElement(t))return e;var r=t.textAlign,n=e;return r&&Ku(n,{textAlign:r}),n},styleToHtml:function(t,e){if(!ft.isElement(t))return e;var r=t.textAlign;if(!r)return e;var n=B(e);return n.css("text-align",r),sc(n)},parseStyleHtml:function(t,e,r){var n=B(t);if(!ft.isElement(e))return e;var o=e,i=Yn(n,"text-align");return i&&(o.textAlign=i),o},menus:[{key:"justifyLeft",factory:function(){return new Sat}},{key:"justifyRight",factory:function(){return new Aat}},{key:"justifyCenter",factory:function(){return new Oat}},{key:"justifyJustify",factory:function(){return new kat}}]},Fat=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 r=[],n=e.getMenuConfig("lineHeight").lineHeightList,o=n===void 0?[]:n;r.push({text:tt("lineHeight.default"),value:""}),o.forEach(function(a){r.push({text:a,value:a})});var i=this.getValue(e);return r.forEach(function(a){a.value===i?a.selected=!0:delete a.selected}),r},t.prototype.getMatchNode=function(e){var r=Xt(E.nodes(e,{match:function(n){var o=A.getNodeType(n);return!!o.startsWith("header")||!!["paragraph","blockquote","list-item"].includes(o)},universal:!0,mode:"highest"}),1)[0];return r==null?null:r[0]},t.prototype.isActive=function(e){return!1},t.prototype.getValue=function(e){var r=this.getMatchNode(e);return r==null?"":ft.isElement(r)&&r.lineHeight||""},t.prototype.isDisabled=function(e){return e.selection==null||this.getMatchNode(e)==null},t.prototype.exec=function(e,r){N.setNodes(e,{lineHeight:r.toString()},{mode:"highest"})},t}(),Tat={renderStyle:function(t,e){if(!ft.isElement(t))return e;var r=t.lineHeight,n=e;return r&&Ku(n,{lineHeight:r}),n},styleToHtml:function(t,e){if(!ft.isElement(t))return e;var r=t.lineHeight;if(!r)return e;var n=B(e);return n.css("line-height",r),sc(n)},parseStyleHtml:function(t,e,r){var n=B(t);if(!ft.isElement(e))return e;var o=e,i=r.getMenuConfig("lineHeight").lineHeightList,a=i===void 0?[]:i,u=Yn(n,"line-height");return u&&a.includes(u)&&(o.lineHeight=u),o},menus:[{key:"lineHeight",factory:function(){return new Fat},config:{lineHeightList:["1","1.15","1.5","2","2.5","3"]}}]},_at=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,r){typeof e.redo=="function"&&e.redo()},t}(),Pat=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,r){typeof e.undo=="function"&&e.undo()},t}(),jat={menus:[{key:"redo",factory:function(){return new _at}},{key:"undo",factory:function(){return new Pat}}]},Nat={type:"divider",renderElem:function(t,e,r){return Pl("div",{props:{contentEditable:!1,className:"w-e-textarea-divider"},dataset:{selected:A.isNodeSelected(r,t)?"true":""},style:{},on:{mousedown:function(n){return n.preventDefault()}}},[Pl("hr")])}},Iat=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(r){if(e.isVoid(r))return!0;var n=A.getNodeType(r);return n==="table"||n==="pre"||void 0})},t.prototype.exec=function(e,r){N.insertNodes(e,{type:"divider",children:[{text:""}]},{mode:"highest"})},t}(),Lat={renderElems:[Nat],elemsToHtml:[{type:"divider",elemToHtml:function(t,e){return"<hr/>"}}],parseElemsHtml:[{selector:"hr:not([data-w-e-type])",parseElemHtml:function(t,e,r){return{type:"divider",children:[{text:""}]}}}],menus:[{key:"divider",factory:function(){return new Iat}}],editorPlugin:function(t){var e=t.isVoid,r=t.normalizeNode,n=t;return n.isVoid=function(o){return o.type==="divider"||e(o)},n.normalizeNode=function(o){var i=Xt(o,2),a=i[0],u=i[1];if(A.getNodeType(a)!=="divider")return r([a,u]);A.isLastNode(n,a)&&N.insertNodes(n,A.genEmptyParagraph(),{at:[u[0]+1]})},n}},Rat=Ky.map;tr({target:"Array",proto:!0,forced:!AD("map")},{map:function(t){return Rat(this,t,arguments.length>1?arguments[1]:void 0)}});var Mat=mt([].join),zat=Uy!=Object,$at=wI("join",",");tr({target:"Array",proto:!0,forced:zat||!$at},{join:function(t){return Mat(ic(this),t===void 0?",":t)}});var Hat=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 r=A.getSelectedNodeByType(e,"code");if(r==null)return null;var n=A.getParentNode(e,r);return n==null||A.getNodeType(n)!=="pre"?null:r},t.prototype.getValue=function(e){var r=this.getSelectCodeElem(e);return r==null?"":r.language||""},t.prototype.isActive=function(e){return!!this.getSelectCodeElem(e)},t.prototype.isDisabled=function(e){if(e.selection==null)return!0;var r=A.getSelectedElems(e);return!!r.some(function(n){return e.isVoid(n)})||!r.some(function(n){var o=A.getNodeType(n);if(o==="pre"||o==="paragraph")return!0})},t.prototype.exec=function(e,r){this.isActive(e)?this.changeToPlainText(e):this.changeToCodeBlock(e,r.toString())},t.prototype.changeToPlainText=function(e){var r=this.getSelectCodeElem(e);if(r!=null){var n=Q.string(r);N.removeNodes(e,{mode:"highest"});var o=n.split(`
`).map(function(i){return{type:"paragraph",children:[{text:i}]}});N.insertNodes(e,o,{mode:"highest"})}},t.prototype.changeToCodeBlock=function(e,r){var n,o,i=[],a=E.nodes(e,{match:function(f){return e.children.includes(f)},universal:!0});try{for(var u=bI(a),s=u.next();!s.done;s=u.next()){var l=Xt(s.value,1)[0];l&&i.push(Q.string(l))}}catch(f){n={error:f}}finally{try{s&&!s.done&&(o=u.return)&&o.call(u)}finally{if(n)throw n.error}}N.removeNodes(e,{mode:"highest"});var c={type:"pre",children:[{type:"code",language:r,children:[{text:i.join(`
`)}]}]};N.insertNodes(e,c,{mode:"highest"})},t}(),Vat={key:"codeBlock",factory:function(){return new Hat}};tr({target:"String",proto:!0,forced:qf("anchor")},{anchor:function(t){return Gf(this,"a","name",t)}}),BD("match",function(t,e,r){return[function(n){var o=Tn(this),i=n==null?void 0:Wy(n,t);return i?Le(i,n,o):new RegExp(n)[t](Ce(o))},function(n){var o=nn(this),i=Ce(n),a=r(e,o,i);if(a.done)return a.value;if(!o.global)return Gd(o,i);var u=o.unicode;o.lastIndex=0;for(var s,l=[],c=0;(s=Gd(o,i))!==null;){var f=Ce(s[0]);l[c]=f,f===""&&(o.lastIndex=FD(i,Rp(o.lastIndex),u)),c++}return c===0?null:l}]});var Uat={type:"pre",renderElem:function(t,e,r){return wt("pre",null,e)}},Wat={type:"code",renderElem:function(t,e,r){return wt("code",null,e)}},Gat={selector:"pre:not([data-w-e-type])",parseElemHtml:function(t,e,r){var n=B(t);return(e=e.filter(function(o){return A.getNodeType(o)==="code"})).length===0&&(e=[{type:"code",language:"",children:[{text:n[0].textContent||""}]}]),{type:"pre",children:e.filter(function(o){return A.getNodeType(o)==="code"})}}},qat={menus:[Vat],editorPlugin:function(t){var e=t.insertBreak,r=t.normalizeNode,n=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 d=Q.string(l),p=f.anchor.offset,v=d.slice(0,p).split(`
`),y=v.length;return y===0?"":v[y-1]}(i,o);if(a){var u=a.match(/^\s+/);if(u!=null&&u[0]!=null){var s=u[0];return void o.insertText(`
`+s)}}o.insertText(`
`)}else e()},o.normalizeNode=function(i){var a=Xt(i,2),u=a[0],s=a[1],l=A.getNodeType(u);return l==="code"&&s.length<=1&&N.setNodes(o,{type:"paragraph"},{at:s}),l==="pre"&&(A.isLastNode(o,u)&&N.insertNodes(o,A.genEmptyParagraph(),{at:[s[0]+1]}),A.getNodeType(u.children[0])!=="code"&&(N.unwrapNodes(o),N.setNodes(o,{type:"paragraph"},{mode:"highest"}))),r([u,s])},o.insertData=function(i){if(A.getSelectedNodeByType(o,"code")!=null){var a=i.getData("text/plain");E.insertText(o,a)}else n(i)},o},renderElems:[Uat,Wat],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(lc(e)!=="code")return t;var r=e.find("xmp");if(r.length===0)return t;var n=r.text();return r.remove(),e.text(n),e[0]}}],parseElemsHtml:[{selector:"pre:not([data-w-e-type])>code",parseElemHtml:function(t,e,r){return{type:"code",language:"",children:[{text:B(t)[0].textContent||""}]}}},Gat]},Kat=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,r){e.isFullScreen?e.unFullScreen():e.fullScreen()},t}(),Yat={menus:[{key:"fullScreen",factory:function(){return new Kat}}]},Xat=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 r=e.selection;return r==null||!!L.isExpanded(r)},t.prototype.exec=function(e,r){var n=e.selection;if(n!=null){var o=[n.anchor.path[0]];N.insertNodes(e,{type:"paragraph",children:[{text:""}]},{at:o}),e.select(E.start(e,o))}},t}(),Zat=[unt,Mnt,wat,xat,Bat,Tat,lot,Lat,xot,Xnt,qat,Dot,jnt,Frt,pot,jat,Yat,{menus:[{key:"enter",factory:function(){return new Xat}}]}];qr("en",{listModule:{unOrderedList:"Unordered list",orderedList:"Ordered list"}}),qr("zh-CN",{listModule:{unOrderedList:"无序列表",orderedList:"有序列表"}});var gk=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function WD(t){var e={exports:{}};return t(e,e.exports),e.exports}var Fi,Gg,Jh=function(t){return t&&t.Math==Math&&t},Et=Jh(typeof globalThis=="object"&&globalThis)||Jh(typeof window=="object"&&window)||Jh(typeof self=="object"&&self)||Jh(typeof gk=="object"&&gk)||function(){return this}()||Function("return this")(),yL=Function.prototype,n6=yL.bind,o6=yL.call,Jat=n6&&n6.bind(o6),Nt=n6?function(t){return t&&Jat(o6,t)}:function(t){return t&&function(){return o6.apply(t,arguments)}},ke=function(t){try{return!!t()}catch(e){return!0}},Qat=Nt({}.toString),tut=Nt("".slice),ni=function(t){return tut(Qat(t),8,-1)},Qb=Et.Object,eut=Nt("".split),mL=ke(function(){return!Qb("z").propertyIsEnumerable(0)})?function(t){return ni(t)=="String"?eut(t,""):Qb(t)}:Qb,rut=Et.TypeError,rm=function(t){if(t==null)throw rut("Can't call method on "+t);return t},dc=function(t){return mL(rm(t))},nut=Object.defineProperty,GD=function(t,e){try{nut(Et,t,{value:e,configurable:!0,writable:!0})}catch(r){Et[t]=e}return e},na=Et["__core-js_shared__"]||GD("__core-js_shared__",{}),qD=WD(function(t){(t.exports=function(e,r){return na[e]||(na[e]=r!==void 0?r:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),out=Et.Object,qp=function(t){return out(rm(t))},iut=Nt({}.hasOwnProperty),er=Object.hasOwn||function(t,e){return iut(qp(t),e)},aut=0,uut=Math.random(),sut=Nt(1 .toString),KD=function(t){return"Symbol("+(t===void 0?"":t)+")_"+sut(++aut+uut,36)},Pe=function(t){return typeof t=="function"},lut=function(t){return Pe(t)?t:void 0},Kp=function(t,e){return arguments.length<2?lut(Et[t]):Et[t]&&Et[t][e]},t2=Kp("navigator","userAgent")||"",vk=Et.process,yk=Et.Deno,mk=vk&&vk.versions||yk&&yk.version,bk=mk&&mk.v8;bk&&(Gg=(Fi=bk.split("."))[0]>0&&Fi[0]<4?1:+(Fi[0]+Fi[1])),!Gg&&t2&&(!(Fi=t2.match(/Edge\/(\d+)/))||Fi[1]>=74)&&(Fi=t2.match(/Chrome\/(\d+)/))&&(Gg=+Fi[1]);var Qh,i6=Gg,a6=!!Object.getOwnPropertySymbols&&!ke(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&i6&&i6<41}),YD=a6&&!Symbol.sham&&typeof Symbol.iterator=="symbol",cf=qD("wks"),Bu=Et.Symbol,wk=Bu&&Bu.for,cut=YD?Bu:Bu&&Bu.withoutSetter||KD,gr=function(t){if(!er(cf,t)||!a6&&typeof cf[t]!="string"){var e="Symbol."+t;a6&&er(Bu,t)?cf[t]=Bu[t]:cf[t]=YD&&wk?wk(e):cut(e)}return cf[t]},Te=function(t){return typeof t=="object"?t!==null:Pe(t)},fut=Et.String,dut=Et.TypeError,Kr=function(t){if(Te(t))return t;throw dut(fut(t)+" is not an object")},wa=!ke(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),u6=Et.document,put=Te(u6)&&Te(u6.createElement),XD=function(t){return put?u6.createElement(t):{}},bL=!wa&&!ke(function(){return Object.defineProperty(XD("div"),"a",{get:function(){return 7}}).a!=7}),ff=Function.prototype.call,ur=ff.bind?ff.bind(ff):function(){return ff.apply(ff,arguments)},D0=Nt({}.isPrototypeOf),hut=Et.Object,e2=YD?function(t){return typeof t=="symbol"}:function(t){var e=Kp("Symbol");return Pe(e)&&D0(e.prototype,hut(t))},gut=Et.String,s6=function(t){try{return gut(t)}catch(e){return"Object"}},vut=Et.TypeError,ZD=function(t){if(Pe(t))return t;throw vut(s6(t)+" is not a function")},qd=function(t,e){var r=t[e];return r==null?void 0:ZD(r)},yut=Et.TypeError,mut=Et.TypeError,but=gr("toPrimitive"),JD=function(t){var e=function(r,n){if(!Te(r)||e2(r))return r;var o,i=qd(r,but);if(i){if(o=ur(i,r,n),!Te(o)||e2(o))return o;throw mut("Can't convert object to primitive value")}return function(a,u){var s,l;if(Pe(s=a.toString)&&!Te(l=ur(s,a))||Pe(s=a.valueOf)&&!Te(l=ur(s,a)))return l;throw yut("Can't convert object to primitive value")}(r)}(t,"string");return e2(e)?e:e+""},wut=Et.TypeError,Ek=Object.defineProperty,fs={f:wa?Ek:function(t,e,r){if(Kr(t),e=JD(e),Kr(r),bL)try{return Ek(t,e,r)}catch(n){}if("get"in r||"set"in r)throw wut("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},Eut=Math.ceil,Dut=Math.floor,Yp=function(t){var e=+t;return e!=e||e===0?0:(e>0?Dut:Eut)(e)},Cut=Math.max,xut=Math.min,l6=function(t,e){var r=Yp(t);return r<0?Cut(r+e,0):xut(r,e)},Sut=Math.min,wL=function(t){return t>0?Sut(Yp(t),9007199254740991):0},pc=function(t){return wL(t.length)},Dk=function(t){return function(e,r,n){var o,i=dc(e),a=pc(i),u=l6(n,a);if(t&&r!=r){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===r)return t||u||0;return!t&&-1}},EL={includes:Dk(!0),indexOf:Dk(!1)},nm={},Aut=EL.indexOf,Ck=Nt([].push),DL=function(t,e){var r,n=dc(t),o=0,i=[];for(r in n)!er(nm,r)&&er(n,r)&&Ck(i,r);for(;e.length>o;)er(n,r=e[o++])&&(~Aut(i,r)||Ck(i,r));return i},C0=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Out=Object.keys||function(t){return DL(t,C0)},kut=wa?Object.defineProperties:function(t,e){Kr(t);for(var r,n=dc(e),o=Out(e),i=o.length,a=0;i>a;)fs.f(t,r=o[a++],n[r]);return t},But=Kp("document","documentElement"),xk=qD("keys"),QD=function(t){return xk[t]||(xk[t]=KD(t))},CL=QD("IE_PROTO"),r2=function(){},xL=function(t){return"<script>"+t+"<\/script>"},Sk=function(t){t.write(xL("")),t.close();var e=t.parentWindow.Object;return t=null,e},qg=function(){try{Qh=new ActiveXObject("htmlfile")}catch(n){}var t,e;qg=typeof document!="undefined"?document.domain&&Qh?Sk(Qh):((e=XD("iframe")).style.display="none",But.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(xL("document.F=Object")),t.close(),t.F):Sk(Qh);for(var r=C0.length;r--;)delete qg.prototype[C0[r]];return qg()};nm[CL]=!0;var t8=Object.create||function(t,e){var r;return t!==null?(r2.prototype=Kr(t),r=new r2,r2.prototype=null,r[CL]=t):r=qg(),e===void 0?r:kut(r,e)},c6=gr("unscopables"),f6=Array.prototype;f6[c6]==null&&fs.f(f6,c6,{configurable:!0,value:t8(null)});var sd=function(t){f6[c6][t]=!0},$l={},Fut=Nt(Function.toString);Pe(na.inspectSource)||(na.inspectSource=function(t){return Fut(t)});var x0,ld,S0,e8=na.inspectSource,Ak=Et.WeakMap,SL=Pe(Ak)&&/native code/.test(e8(Ak)),om=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},oa=wa?function(t,e,r){return fs.f(t,e,om(1,r))}:function(t,e,r){return t[e]=r,t},d6=Et.TypeError,Tut=Et.WeakMap;if(SL||na.state){var qa=na.state||(na.state=new Tut),_ut=Nt(qa.get),Ok=Nt(qa.has),Put=Nt(qa.set);x0=function(t,e){if(Ok(qa,t))throw new d6("Object already initialized");return e.facade=t,Put(qa,t,e),e},ld=function(t){return _ut(qa,t)||{}},S0=function(t){return Ok(qa,t)}}else{var Ns=QD("state");nm[Ns]=!0,x0=function(t,e){if(er(t,Ns))throw new d6("Object already initialized");return e.facade=t,oa(t,Ns,e),e},ld=function(t){return er(t,Ns)?t[Ns]:{}},S0=function(t){return er(t,Ns)}}var Fu,kk,Bk,Bo={set:x0,get:ld,has:S0,enforce:function(t){return S0(t)?ld(t):x0(t,{})},getterFor:function(t){return function(e){var r;if(!Te(e)||(r=ld(e)).type!==t)throw d6("Incompatible receiver, "+t+" required");return r}}},Fk={}.propertyIsEnumerable,Tk=Object.getOwnPropertyDescriptor,jut={f:Tk&&!Fk.call({1:2},1)?function(t){var e=Tk(this,t);return!!e&&e.enumerable}:Fk},_k=Object.getOwnPropertyDescriptor,AL={f:wa?_k:function(t,e){if(t=dc(t),e=JD(e),bL)try{return _k(t,e)}catch(r){}if(er(t,e))return om(!ur(jut.f,t,e),t[e])}},OL=Function.prototype,Nut=wa&&Object.getOwnPropertyDescriptor,Pk=er(OL,"name"),r8={PROPER:Pk&&function(){}.name==="something",CONFIGURABLE:Pk&&(!wa||wa&&Nut(OL,"name").configurable)},li=WD(function(t){var e=r8.CONFIGURABLE,r=Bo.get,n=Bo.enforce,o=String(String).split("String");(t.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet,p=s&&s.name!==void 0?s.name:a;Pe(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!er(u,"name")||e&&u.name!==p)&&oa(u,"name",p),(l=n(u)).source||(l.source=o.join(typeof p=="string"?p:""))),i!==Et?(c?!d&&i[a]&&(f=!0):delete i[a],f?i[a]=u:oa(i,a,u)):f?i[a]=u:GD(a,u)})(Function.prototype,"toString",function(){return Pe(this)&&r(this).source||e8(this)})}),Iut=C0.concat("length","prototype"),A0={f:Object.getOwnPropertyNames||function(t){return DL(t,Iut)}},Lut={f:Object.getOwnPropertySymbols},Rut=Nt([].concat),Mut=Kp("Reflect","ownKeys")||function(t){var e=A0.f(Kr(t)),r=Lut.f;return r?Rut(e,r(t)):e},zut=function(t,e){for(var r=Mut(e),n=fs.f,o=AL.f,i=0;i<r.length;i++){var a=r[i];er(t,a)||n(t,a,o(e,a))}},$ut=/#|\.prototype\./,Xp=function(t,e){var r=Vut[Hut(t)];return r==Wut||r!=Uut&&(Pe(e)?ke(e):!!e)},Hut=Xp.normalize=function(t){return String(t).replace($ut,".").toLowerCase()},Vut=Xp.data={},Uut=Xp.NATIVE="N",Wut=Xp.POLYFILL="P",p6=Xp,Gut=AL.f,Ea=function(t,e){var r,n,o,i,a,u=t.target,s=t.global,l=t.stat;if(r=s?Et:l?Et[u]||GD(u,{}):(Et[u]||{}).prototype)for(n in e){if(i=e[n],o=t.noTargetGet?(a=Gut(r,n))&&a.value:r[n],!p6(s?n:u+(l?".":"#")+n,t.forced)&&o!==void 0){if(typeof i==typeof o)continue;zut(i,o)}(t.sham||o&&o.sham)&&oa(i,"sham",!0),li(r,n,i,t)}},qut=!ke(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),jk=QD("IE_PROTO"),h6=Et.Object,Kut=h6.prototype,O0=qut?h6.getPrototypeOf:function(t){var e=qp(t);if(er(e,jk))return e[jk];var r=e.constructor;return Pe(r)&&e instanceof r?r.prototype:e instanceof h6?Kut:null},g6=gr("iterator"),kL=!1;[].keys&&("next"in(Bk=[].keys())?(kk=O0(O0(Bk)))!==Object.prototype&&(Fu=kk):kL=!0);var Yut=Fu==null||ke(function(){var t={};return Fu[g6].call(t)!==t});Yut&&(Fu={}),Pe(Fu[g6])||li(Fu,g6,function(){return this});var n8={IteratorPrototype:Fu,BUGGY_SAFARI_ITERATORS:kL},Xut=fs.f,Nk=gr("toStringTag"),v6=function(t,e,r){t&&!er(t=r?t:t.prototype,Nk)&&Xut(t,Nk,{configurable:!0,value:e})},Zut=n8.IteratorPrototype,Jut=function(){return this},Qut=Et.String,tst=Et.TypeError,k0=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=Nt(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),e=r instanceof Array}catch(n){}return function(n,o){return Kr(n),function(i){if(typeof i=="object"||Pe(i))return i;throw tst("Can't set "+Qut(i)+" as a prototype")}(o),e?t(n,o):n.__proto__=o,n}}():void 0),est=r8.PROPER,rst=r8.CONFIGURABLE,Ik=n8.IteratorPrototype,n2=n8.BUGGY_SAFARI_ITERATORS,df=gr("iterator"),nst=function(){return this},BL=function(t,e,r,n,o,i,a){(function(g,m,h,b){var w=m+" Iterator";g.prototype=t8(Zut,{next:om(1,h)}),v6(g,w,!1),$l[w]=Jut})(r,e,n);var u,s,l=function(g){if(g===o&&v)return v;if(!n2&&g in d)return d[g];switch(g){case"keys":case"values":case"entries":return function(){return new r(this,g)}}return function(){return new r(this)}},c=e+" Iterator",f=!1,d=t.prototype,p=d[df]||d["@@iterator"]||o&&d[o],v=!n2&&p||l(o),y=e=="Array"&&d.entries||p;return y&&(u=O0(y.call(new t)))!==Object.prototype&&u.next&&(O0(u)!==Ik&&(k0?k0(u,Ik):Pe(u[df])||li(u,df,nst)),v6(u,c,!0)),est&&o=="values"&&p&&p.name!=="values"&&(rst?oa(d,"name","values"):(f=!0,v=function(){return ur(p,this)})),o&&(s={values:l("values"),keys:l("keys"),entries:l("entries")},a||Ea({target:e,proto:!0,forced:n2||f},s)),d[df]!==v&&li(d,df,v,{name:o}),$l[e]=v,s},ost=Bo.set,ist=Bo.getterFor("Array Iterator"),Kf=BL(Array,"Array",function(t,e){ost(this,{type:"Array Iterator",target:dc(t),index:0,kind:e})},function(){var t=ist(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):r=="keys"?{value:n,done:!1}:r=="values"?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}},"values");$l.Arguments=$l.Array,sd("keys"),sd("values"),sd("entries");var FL={};FL[gr("toStringTag")]="z";var o8=String(FL)==="[object z]",ast=gr("toStringTag"),ust=Et.Object,sst=ni(function(){return arguments}())=="Arguments",im=o8?ni:function(t){var e,r,n;return t===void 0?"Undefined":t===null?"Null":typeof(r=function(o,i){try{return o[i]}catch(a){}}(e=ust(t),ast))=="string"?r:sst?ni(e):(n=ni(e))=="Object"&&Pe(e.callee)?"Arguments":n},lst=o8?{}.toString:function(){return"[object "+im(this)+"]"};o8||li(Object.prototype,"toString",lst,{unsafe:!0});var cst=Et.String,Ko=function(t){if(im(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return cst(t)},fst=Nt("".charAt),Lk=Nt("".charCodeAt),dst=Nt("".slice),pst=function(t){return function(e,r){var n,o,i=Ko(rm(e)),a=Yp(r),u=i.length;return a<0||a>=u?t?"":void 0:(n=Lk(i,a))<55296||n>56319||a+1===u||(o=Lk(i,a+1))<56320||o>57343?t?fst(i,a):n:t?dst(i,a,a+2):o-56320+(n-55296<<10)+65536}},TL={charAt:pst(!0)},hst=TL.charAt,gst=Bo.set,vst=Bo.getterFor("String Iterator");BL(String,"String",function(t){gst(this,{type:"String Iterator",string:Ko(t),index:0})},function(){var t,e=vst(this),r=e.string,n=e.index;return n>=r.length?{value:void 0,done:!0}:(t=hst(r,n),e.index+=t.length,{value:t,done:!1})});var y6=function(t,e,r){for(var n in e)li(t,n,e[n],r);return t},yst=Et.Array,mst=Math.max,Rk=A0.f,Mk=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],bst={f:function(t){return Mk&&ni(t)=="Window"?function(e){try{return Rk(e)}catch(r){return function(n,o,i){for(var a,u,s,l,c=pc(n),f=l6(void 0,c),d=l6(c,c),p=yst(mst(d-f,0)),v=0;f<d;f++,v++)a=p,u=v,s=n[f],(l=JD(u))in a?fs.f(a,l,om(0,s)):a[l]=s;return p.length=v,p}(Mk)}}(t):Rk(dc(t))}},zk=ke(function(){if(typeof ArrayBuffer=="function"){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}),tg=Object.isExtensible,fu=ke(function(){tg(1)})||zk?function(t){return!!Te(t)&&(!zk||ni(t)!="ArrayBuffer")&&(!tg||tg(t))}:tg,wst=!ke(function(){return Object.isExtensible(Object.preventExtensions({}))}),i8=WD(function(t){var e=fs.f,r=!1,n=KD("meta"),o=0,i=function(u){e(u,n,{value:{objectID:"O"+o++,weakData:{}}})},a=t.exports={enable:function(){a.enable=function(){},r=!0;var u=A0.f,s=Nt([].splice),l={};l[n]=1,u(l).length&&(A0.f=function(c){for(var f=u(c),d=0,p=f.length;d<p;d++)if(f[d]===n){s(f,d,1);break}return f},Ea({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:bst.f}))},fastKey:function(u,s){if(!Te(u))return typeof u=="symbol"?u:(typeof u=="string"?"S":"P")+u;if(!er(u,n)){if(!fu(u))return"F";if(!s)return"E";i(u)}return u[n].objectID},getWeakData:function(u,s){if(!er(u,n)){if(!fu(u))return!0;if(!s)return!1;i(u)}return u[n].weakData},onFreeze:function(u){return wst&&r&&fu(u)&&!er(u,n)&&i(u),u}};nm[n]=!0}),$k=Nt(Nt.bind),a8=function(t,e){return ZD(t),e===void 0?t:$k?$k(t,e):function(){return t.apply(e,arguments)}},Est=gr("iterator"),Dst=Array.prototype,Cst=gr("iterator"),Hk=function(t){if(t!=null)return qd(t,Cst)||qd(t,"@@iterator")||$l[im(t)]},xst=Et.TypeError,Vk=function(t,e,r){var n,o;Kr(t);try{if(!(n=qd(t,"return"))){if(e==="throw")throw r;return r}n=ur(n,t)}catch(i){o=!0,n=i}if(e==="throw")throw r;if(o)throw n;return Kr(n),r},Sst=Et.TypeError,Kg=function(t,e){this.stopped=t,this.result=e},Uk=Kg.prototype,_L=function(t,e,r){var n,o,i,a,u,s,l,c,f=r&&r.that,d=!(!r||!r.AS_ENTRIES),p=!(!r||!r.IS_ITERATOR),v=!(!r||!r.INTERRUPTED),y=a8(e,f),g=function(h){return n&&Vk(n,"normal",h),new Kg(!0,h)},m=function(h){return d?(Kr(h),v?y(h[0],h[1],g):y(h[0],h[1])):v?y(h,g):y(h)};if(p)n=t;else{if(!(o=Hk(t)))throw Sst(s6(t)+" is not iterable");if((c=o)!==void 0&&($l.Array===c||Dst[Est]===c)){for(i=0,a=pc(t);a>i;i++)if((u=m(t[i]))&&D0(Uk,u))return u;return new Kg(!1)}n=function(h,b){var w=arguments.length<2?Hk(h):b;if(ZD(w))return Kr(ur(w,h));throw xst(s6(h)+" is not iterable")}(t,o)}for(s=n.next;!(l=ur(s,n)).done;){try{u=m(l.value)}catch(h){Vk(n,"throw",h)}if(typeof u=="object"&&u&&D0(Uk,u))return u}return new Kg(!1)},Ast=Et.TypeError,PL=function(t,e){if(D0(e,t))return t;throw Ast("Incorrect invocation")},jL=gr("iterator"),NL=!1;try{var Ost=0,Wk={next:function(){return{done:!!Ost++}},return:function(){NL=!0}};Wk[jL]=function(){return this},Array.from(Wk,function(){throw 2})}catch(t){}var m6=Array.isArray||function(t){return ni(t)=="Array"},IL=function(){},kst=[],LL=Kp("Reflect","construct"),u8=/^\s*(?:class|function)\b/,Bst=Nt(u8.exec),Fst=!u8.exec(IL),pf=function(t){if(!Pe(t))return!1;try{return LL(IL,kst,t),!0}catch(e){return!1}},Tst=!LL||ke(function(){var t;return pf(pf.call)||!pf(Object)||!pf(function(){t=!0})||t})?function(t){if(!Pe(t))return!1;switch(im(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Fst||!!Bst(u8,e8(t))}:pf,_st=gr("species"),Gk=Et.Array,RL=function(t,e){return new(function(r){var n;return m6(r)&&(n=r.constructor,(Tst(n)&&(n===Gk||m6(n.prototype))||Te(n)&&(n=n[_st])===null)&&(n=void 0)),n===void 0?Gk:n}(t))(e===0?0:e)},qk=Nt([].push),o2=function(t){var e=t==1,r=t==2,n=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var d,p,v=qp(s),y=mL(v),g=a8(l,c),m=pc(y),h=0,b=f||RL,w=e?b(s,m):r||a?b(s,0):void 0;m>h;h++)if((u||h in y)&&(p=g(d=y[h],h,v),t))if(e)w[h]=p;else if(p)switch(t){case 3:return!0;case 5:return d;case 6:return h;case 2:qk(w,d)}else switch(t){case 4:return!1;case 7:qk(w,d)}return i?-1:n||o?o:w}},s8={filter:o2(2),find:o2(5),findIndex:o2(6)},eg=i8.getWeakData,Pst=Bo.set,jst=Bo.getterFor,Nst=s8.find,Ist=s8.findIndex,Lst=Nt([].splice),Rst=0,rg=function(t){return t.frozen||(t.frozen=new ML)},ML=function(){this.entries=[]},i2=function(t,e){return Nst(t.entries,function(r){return r[0]===e})};ML.prototype={get:function(t){var e=i2(this,t);if(e)return e[1]},has:function(t){return!!i2(this,t)},set:function(t,e){var r=i2(this,t);r?r[1]=e:this.entries.push([t,e])},delete:function(t){var e=Ist(this.entries,function(r){return r[0]===t});return~e&&Lst(this.entries,e,1),!!~e}};var hf,zL={getConstructor:function(t,e,r,n){var o=t(function(s,l){PL(s,i),Pst(s,{type:e,id:Rst++,frozen:void 0}),l!=null&&_L(l,s[n],{that:s,AS_ENTRIES:r})}),i=o.prototype,a=jst(e),u=function(s,l,c){var f=a(s),d=eg(Kr(l),!0);return d===!0?rg(f).set(l,c):d[f.id]=c,s};return y6(i,{delete:function(s){var l=a(this);if(!Te(s))return!1;var c=eg(s);return c===!0?rg(l).delete(s):c&&er(c,l.id)&&delete c[l.id]},has:function(s){var l=a(this);if(!Te(s))return!1;var c=eg(s);return c===!0?rg(l).has(s):c&&er(c,l.id)}}),y6(i,r?{get:function(s){var l=a(this);if(Te(s)){var c=eg(s);return c===!0?rg(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}},ng=Bo.enforce,Mst=!Et.ActiveXObject&&"ActiveXObject"in Et,$L=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},zst=function(t,e,r){var n=t.indexOf("Map")!==-1,o=t.indexOf("Weak")!==-1,i=n?"set":"add",a=Et[t],u=a&&a.prototype,s=a,l={},c=function(g){var m=Nt(u[g]);li(u,g,g=="add"?function(h){return m(this,h===0?0:h),this}:g=="delete"?function(h){return!(o&&!Te(h))&&m(this,h===0?0:h)}:g=="get"?function(h){return o&&!Te(h)?void 0:m(this,h===0?0:h)}:g=="has"?function(h){return!(o&&!Te(h))&&m(this,h===0?0:h)}:function(h,b){return m(this,h===0?0:h,b),this})};if(p6(t,!Pe(a)||!(o||u.forEach&&!ke(function(){new a().entries().next()}))))s=r.getConstructor(e,t,n,i),i8.enable();else if(p6(t,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=ke(function(){f.has(1)}),v=function(g,m){if(!NL)return!1;var h=!1;try{var b={};b[jL]=function(){return{next:function(){return{done:h=!0}}}},function(w){new a(w)}(b)}catch(w){}return h}(),y=!o&&ke(function(){for(var g=new a,m=5;m--;)g[i](m,m);return!g.has(-0)});v||((s=e(function(g,m){PL(g,u);var h=function(b,w,D){var x,C;return k0&&Pe(x=w.constructor)&&x!==D&&Te(C=x.prototype)&&C!==D.prototype&&k0(b,C),b}(new a,g,s);return m!=null&&_L(m,h[i],{that:h,AS_ENTRIES:n}),h})).prototype=u,u.constructor=s),(p||y)&&(c("delete"),c("has"),n&&c("get")),(y||d)&&c(i),o&&u.clear&&delete u.clear}return l[t]=s,Ea({global:!0,forced:s!=a},l),v6(s,t),o||r.setStrong(s,t,n),s}("WeakMap",$L,zL);if(SL&&Mst){hf=zL.getConstructor($L,"WeakMap",!0),i8.enable();var gf=zst.prototype,Kk=Nt(gf.delete),og=Nt(gf.has),Yk=Nt(gf.get),Xk=Nt(gf.set);y6(gf,{delete:function(t){if(Te(t)&&!fu(t)){var e=ng(this);return e.frozen||(e.frozen=new hf),Kk(this,t)||e.frozen.delete(t)}return Kk(this,t)},has:function(t){if(Te(t)&&!fu(t)){var e=ng(this);return e.frozen||(e.frozen=new hf),og(this,t)||e.frozen.has(t)}return og(this,t)},get:function(t){if(Te(t)&&!fu(t)){var e=ng(this);return e.frozen||(e.frozen=new hf),og(this,t)?Yk(this,t):e.frozen.get(t)}return Yk(this,t)},set:function(t,e){if(Te(t)&&!fu(t)){var r=ng(this);r.frozen||(r.frozen=new hf),og(this,t)?Xk(this,t,e):r.frozen.set(t,e)}else Xk(this,t,e);return this}})}var HL={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},a2=XD("span").classList,Zk=a2&&a2.constructor&&a2.constructor.prototype,$st=Zk===Object.prototype?void 0:Zk,u2=gr("iterator"),Jk=gr("toStringTag"),s2=Kf.values,VL=function(t,e){if(t){if(t[u2]!==s2)try{oa(t,u2,s2)}catch(n){t[u2]=s2}if(t[Jk]||oa(t,Jk,e),HL[e]){for(var r in Kf)if(t[r]!==Kf[r])try{oa(t,r,Kf[r])}catch(n){t[r]=Kf[r]}}}};for(var l2 in HL)VL(Et[l2]&&Et[l2].prototype,l2);VL($st,"DOMTokenList");var b6=new WeakMap,Hst={type:"list-item",renderElem:function(t,e,r){b6.set(t,r);var n=t,o=n.level,i=o===void 0?0:o,a=n.ordered,u={margin:"5px 0 5px "+20*i+"px"},s="";if(a!==void 0&&a){var l=function(f,d){var p=d,v=p.type,y=p.level,g=y===void 0?0:y,m=p.ordered,h=m!==void 0&&m;if(!h)return-1;var b=1,w=d,D=A.findPath(f,w);if(D[0]===0)return 1;for(;D[0]>0;){var x=j.previous(D),C=E.node(f,x);if(C==null)break;var O=C[0],T=O.level,R=T===void 0?0:T,H=O.type,M=O.ordered;if(H!==v||R<g)break;if(R===g){if(M!==h)break;b++}w=O,D=x}return b}(r,t);s=l+"."}else s=function(f){f===void 0&&(f=0);var d="";switch(f){case 0:d="•";break;case 1:d="◦";break;default:d="▪"}return d}(i);var c=function(f){var d,p=f.children||[],v=p.length;if(v===0)return"";for(var y=0;y<v&&!d;y++){var g=p[y];it.isText(g)&&(d=g)}return d==null?"":d.color||""}(t);return wt("div",{style:u},wt("span",{contentEditable:!1,style:{marginRight:"0.5em",color:c},"data-w-e-reserve":!0},s),wt("span",null,e))}},w6=function(t,e){return w6=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])},w6(t,e);/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */};function UL(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}w6(t,e),t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}function Qk(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function cd(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(e===void 0||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(u){o={error:u}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function tB(t){return E.nodes(t,{at:t.selection||void 0,match:function(e){return A.findPath(t,e).length===1}})}var Vst=EL.includes;Ea({target:"Array",proto:!0},{includes:function(t){return Vst(this,t,arguments.length>1?arguments[1]:void 0)}}),sd("includes");var eB,c2,Ust=function(){var t=Kr(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},l8=Et.RegExp,WL=ke(function(){var t=l8("a","y");return t.lastIndex=2,t.exec("abcd")!=null});WL||ke(function(){return!l8("a","y").sticky});var Wst={BROKEN_CARET:WL||ke(function(){var t=l8("^r","gy");return t.lastIndex=2,t.exec("str")!=null})},Gst=Et.RegExp,qst=ke(function(){var t=Gst(".","s");return!(t.dotAll&&t.exec(`
`)&&t.flags==="s")}),Kst=Et.RegExp,Yst=ke(function(){var t=Kst("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),Xst=Bo.get,Zst=qD("native-string-replace",String.prototype.replace),B0=RegExp.prototype.exec,E6=B0,Jst=Nt("".charAt),Qst=Nt("".indexOf),tlt=Nt("".replace),f2=Nt("".slice),d2=(c2=/b*/g,ur(B0,eB=/a/,"a"),ur(B0,c2,"a"),eB.lastIndex!==0||c2.lastIndex!==0),rB=Wst.BROKEN_CARET,p2=/()??/.exec("")[1]!==void 0;(d2||p2||rB||qst||Yst)&&(E6=function(t){var e,r,n,o,i,a,u,s=this,l=Xst(s),c=Ko(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=ur(E6,f,c),s.lastIndex=f.lastIndex,e;var d=l.groups,p=rB&&s.sticky,v=ur(Ust,s),y=s.source,g=0,m=c;if(p&&(v=tlt(v,"y",""),Qst(v,"g")===-1&&(v+="g"),m=f2(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&Jst(c,s.lastIndex-1)!==`
`)&&(y="(?: "+y+")",m=" "+m,g++),r=new RegExp("^(?:"+y+")",v)),p2&&(r=new RegExp("^"+y+"$(?!\\s)",v)),d2&&(n=s.lastIndex),o=ur(B0,p?r:s,m),p?o?(o.input=f2(o.input,g),o[0]=f2(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:d2&&o&&(s.lastIndex=s.global?o.index+o[0].length:n),p2&&o&&o.length>1&&ur(Zst,o[0],r,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&d)for(o.groups=a=t8(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var F0=E6;Ea({target:"RegExp",proto:!0,forced:/./.exec!==F0},{exec:F0});var GL=function(){function t(){this.type="list-item",this.tag="button"}return t.prototype.getListNode=function(e){var r=this.type;return A.getSelectedNodeByType(e,r)},t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){var r=this.getListNode(e);if(r==null)return!1;var n=r.ordered;return(n!==void 0&&n)===this.ordered},t.prototype.isDisabled=function(e){return e.selection==null||!!A.getSelectedElems(e).some(function(r){if(E.isVoid(e,r)&&E.isBlock(e,r))return!0;var n=r.type;return!!["pre","code","table"].includes(n)||void 0})},t.prototype.exec=function(e,r){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}(),elt='<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>',rlt='<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>',nlt=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.ordered=!1,r.title=tt("listModule.unOrderedList"),r.iconSvg=elt,r}return UL(e,t),e}(GL),olt=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.ordered=!0,r.title=tt("listModule.orderedList"),r.iconSvg=rlt,r}return UL(e,t),e}(GL),ilt={key:"bulletedList",factory:function(){return new nlt}},alt={key:"numberedList",factory:function(){return new olt}},nB=[],ult={type:"list-item",elemToHtml:function(t,e){var r="",n="",o=t.ordered,i=o!==void 0&&o?"ol":"ul",a=function(l){var c=b6.get(l);if(c==null)return 0;var f=l,d=f.type,p=f.ordered,v=p!==void 0&&p,y=f.level,g=y===void 0?0:y,m=A.findPath(c,l);if(m[0]===0)return g+1;var h=j.previous(m),b=E.node(c,h);if(!b)return 0;var w=cd(b,1)[0];if(A.getNodeType(w)!==d)return g+1;var D=w,x=D.ordered,C=x!==void 0&&x,O=D.level,T=O===void 0?0:O;return T<g?g-T:T>g?0:T===g?C===v?0:1:0}(t);if(a>0)for(var u=0;u<a;u++)r+="<"+i+">",nB.push(i);var s=function(l){var c=b6.get(l);if(c==null)return 0;var f=l,d=f.type,p=f.ordered,v=p!==void 0&&p,y=f.level,g=y===void 0?0:y,m=A.findPath(c,l);if(m[0]===c.children.length-1)return g+1;var h=j.next(m),b=E.node(c,h);if(!b)return 0;var w=cd(b,1)[0];if(A.getNodeType(w)!==d)return g+1;var D=w,x=D.ordered,C=x!==void 0&&x,O=D.level,T=O===void 0?0:O;return T<g?g-T:T>g?0:T===g?C===v?0:1:0}(t);if(s>0)for(u=0;u<s;u++)n+="</"+nB.pop()+">";return{html:"<li>"+e+"</li>",prefix:r,suffix:n}}},slt=gr("species"),llt=s8.filter,clt=i6>=51||!ke(function(){var t=[];return(t.constructor={})[slt]=function(){return{foo:1}},t.filter(Boolean).foo!==1});Ea({target:"Array",proto:!0,forced:!clt},{filter:function(t){return llt(this,t,arguments.length>1?arguments[1]:void 0)}});var c8=Function.prototype,oB=c8.apply,flt=c8.bind,iB=c8.call,dlt=typeof Reflect=="object"&&Reflect.apply||(flt?iB.bind(oB):function(){return iB.apply(oB,arguments)}),aB=(gr("species"),RegExp.prototype),plt=TL.charAt,hlt=function(t,e,r){return e+(r?plt(t,e).length:1)},glt=Math.floor,h2=Nt("".charAt),vlt=Nt("".replace),g2=Nt("".slice),ylt=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,mlt=/\$([$&'`]|\d{1,2})/g,blt=function(t,e,r,n,o,i){var a=r+t.length,u=n.length,s=mlt;return o!==void 0&&(o=qp(o),s=ylt),vlt(i,s,function(l,c){var f;switch(h2(c,0)){case"$":return"$";case"&":return t;case"`":return g2(e,0,r);case"'":return g2(e,a);case"<":f=o[g2(c,1,-1)];break;default:var d=+c;if(d===0)return l;if(d>u){var p=glt(d/10);return p===0?l:p<=u?n[p-1]===void 0?h2(c,1):n[p-1]+h2(c,1):l}f=n[d-1]}return f===void 0?"":f})},wlt=Et.TypeError,Elt=function(t,e){var r=t.exec;if(Pe(r)){var n=ur(r,t,e);return n!==null&&Kr(n),n}if(ni(t)==="RegExp")return ur(F0,t,e);throw wlt("RegExp#exec called on incompatible receiver")},D6=gr("replace"),Dlt=Math.max,Clt=Math.min,xlt=Nt([].concat),v2=Nt([].push),uB=Nt("".indexOf),sB=Nt("".slice),Slt="a".replace(/./,"$0")==="$0",lB=!!/./[D6]&&/./[D6]("a","$0")==="";(function(t,e,r,n){var o=gr(t),i=!ke(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),a=i&&!ke(function(){var l=!1,c=/a/;return c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||r){var u=Nt(/./[o]),s=function(l,c,f){var d=lB?"$":"$0";return[function(p,v){var y=rm(this),g=p==null?void 0:qd(p,D6);return g?ur(g,p,y,v):ur(c,Ko(y),p,v)},function(p,v){var y=Kr(this),g=Ko(p);if(typeof v=="string"&&uB(v,d)===-1&&uB(v,"$<")===-1){var m=f(c,y,g,v);if(m.done)return m.value}var h=Pe(v);h||(v=Ko(v));var b=y.global;if(b){var w=y.unicode;y.lastIndex=0}for(var D=[];;){var x=Elt(y,g);if(x===null||(v2(D,x),!b))break;Ko(x[0])===""&&(y.lastIndex=hlt(g,wL(y.lastIndex),w))}for(var C,O="",T=0,R=0;R<D.length;R++){for(var H=Ko((x=D[R])[0]),M=Dlt(Clt(Yp(x.index),g.length),0),K=[],U=1;U<x.length;U++)v2(K,(C=x[U])===void 0?C:String(C));var W=x.groups;if(h){var q=xlt([H],K,M,g);W!==void 0&&v2(q,W);var rt=Ko(dlt(v,void 0,q))}else rt=blt(H,g,M,K,W,v);M>=T&&(O+=sB(g,T,M)+rt,T=M+H.length)}return O+sB(g,T)}]}(0,""[t],function(l,c,f,d,p){var v=Nt(l),y=c.exec;return y===F0||y===aB.exec?i&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:v(f,c,d)}:{done:!1}});li(String.prototype,t,s[0]),li(aB,o,s[1])}})("replace",0,!!ke(function(){var t=/./;return t.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(t,"$<a>")!=="7"})||!Slt||lB);var Alt=Et.TypeError,qL=function(t,e,r,n,o,i,a,u){for(var s,l,c=o,f=0,d=!!a&&a8(a,u);f<n;){if(f in r){if(s=d?d(r[f],f,e):r[f],i>0&&m6(s))l=pc(s),c=qL(t,e,s,l,c,i-1)-1;else{if(c>=9007199254740991)throw Alt("Exceed the acceptable array length");t[c]=s}c++}f++}return c},Olt=qL;function y2(t){return t.length?t[0].tagName.toLowerCase():""}Ea({target:"Array",proto:!0},{flat:function(){var t=arguments.length?arguments[0]:void 0,e=qp(this),r=pc(e),n=RL(e,0);return n.length=Olt(n,e,e,r,0,t===void 0?1:Yp(t)),n}}),sd("flat"),Ea({global:!0},{globalThis:Et}),kn&&(B.fn.append=kn),On&&(B.fn.attr=On),kl&&(B.fn.parent=kl);var klt={renderElems:[Hst],editorPlugin:function(t){var e=t.deleteBackward,r=t.handleTab,n=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 r();if(l.focus.offset===0){var f=c.level,d=f===void 0?0:f;return void N.setNodes(o,{level:d+1})}}if(L.isExpanded(l)){var p=0,v=!1;try{for(var y=Qk(tB(o)),g=y.next();!g.done;g=y.next()){var m=cd(g.value,1)[0];A.getNodeType(m)==="list-item"?p++:v=!0}}catch(C){i={error:C}}finally{try{g&&!g.done&&(a=y.return)&&a.call(y)}finally{if(i)throw i.error}}if(v||p<=1)return void r();try{for(var h=Qk(tB(o)),b=h.next();!b.done;b=h.next()){var w=cd(b.value,2),D=(m=w[0],w[1]),x=m.level;d=x===void 0?0:x,N.setNodes(o,{level:d+1},{at:D})}}catch(C){u={error:C}}finally{try{b&&!b.done&&(s=h.return)&&s.call(h)}finally{if(u)throw u.error}}}else r()}else r()},o.normalizeNode=function(i){var a=cd(i,2),u=a[0],s=a[1],l=A.getNodeType(u);return l!=="bulleted-list"&&l!=="numbered-list"||N.unwrapNodes(o,{at:s}),n([u,s])},o},menus:[ilt,alt],elemsToHtml:[ult],parseElemsHtml:[{selector:"ul:not([data-w-e-type]),ol:not([data-w-e-type])",parseElemHtml:function(t,e,r){return e.flat(1/0)}},{selector:"li:not([data-w-e-type])",parseElemHtml:function(t,e,r){var n=B(t);(e=e.filter(function(a){return!!it.isText(a)||!!r.isInline(a)})).length===0&&(e=[{text:n.text().replace(/\s+/gm," ")}]);var o=function(a){return y2(a.parent())==="ol"}(n),i=function(a){for(var u=0,s=a.parent(),l=y2(s);l==="ul"||l==="ol";)l=y2(s=s.parent()),u++;return u-1}(n);return{type:"list-item",ordered:o,level:i,children:e}}}]},KL=ts(function(t,e){var r="__lodash_hash_undefined__",n=9007199254740991,o="[object Arguments]",i="[object Array]",a="[object Boolean]",u="[object Date]",s="[object Error]",l="[object Function]",c="[object Map]",f="[object Number]",d="[object Object]",p="[object Promise]",v="[object RegExp]",y="[object Set]",g="[object String]",m="[object Symbol]",h="[object WeakMap]",b="[object ArrayBuffer]",w="[object DataView]",D=/^\[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[d]=C[v]=C[y]=C[g]=C[h]=!1;var O=typeof se=="object"&&se&&se.Object===Object&&se,T=typeof self=="object"&&self&&self.Object===Object&&self,R=O||T||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 rt(_,I){for(var J=-1,gt=_==null?0:_.length;++J<gt;)if(I(_[J],J,_))return!0;return!1}function lt(_){var I=-1,J=Array(_.size);return _.forEach(function(gt,re){J[++I]=[re,gt]}),J}function st(_){var I=-1,J=Array(_.size);return _.forEach(function(gt){J[++I]=gt}),J}var ut=Array.prototype,k=Function.prototype,S=Object.prototype,P=R["__core-js_shared__"],$=k.toString,Y=S.hasOwnProperty,V=function(){var _=/[^.]+$/.exec(P&&P.keys&&P.keys.IE_PROTO||"");return _?"Symbol(src)_1."+_:""}(),at=S.toString,vt=RegExp("^"+$.call(Y).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),yt=K?R.Buffer:void 0,Ct=R.Symbol,G=R.Uint8Array,Lt=S.propertyIsEnumerable,Ot=ut.splice,pt=Ct?Ct.toStringTag:void 0,kt=Object.getOwnPropertySymbols,Be=yt?yt.isBuffer:void 0,Ht=function(_,I){return function(J){return _(I(J))}}(Object.keys,Object),ee=gi(R,"DataView"),ye=gi(R,"Map"),vr=gi(R,"Promise"),zt=gi(R,"Set"),Ir=gi(R,"WeakMap"),Nn=gi(Object,"create"),eo=Mo(ee),ds=Mo(ye),Na=Mo(vr),In=Mo(zt),ro=Mo(Ir),Io=Ct?Ct.prototype:void 0,yr=Io?Io.valueOf:void 0;function mr(_){var I=-1,J=_==null?0:_.length;for(this.clear();++I<J;){var gt=_[I];this.set(gt[0],gt[1])}}function br(_){var I=-1,J=_==null?0:_.length;for(this.clear();++I<J;){var gt=_[I];this.set(gt[0],gt[1])}}function Fr(_){var I=-1,J=_==null?0:_.length;for(this.clear();++I<J;){var gt=_[I];this.set(gt[0],gt[1])}}function nr(_){var I=-1,J=_==null?0:_.length;for(this.__data__=new Fr;++I<J;)this.add(_[I])}function pn(_){var I=this.__data__=new br(_);this.size=I.size}function gc(_,I){var J=zo(_),gt=!J&&ch(_),re=!J&&!gt&&no(_),jt=!J&&!gt&&!re&&io(_),F=J||gt||re||jt,z=F?function($t,me){for(var ce=-1,Wt=Array($t);++ce<$t;)Wt[ce]=me(ce);return Wt}(_.length,String):[],ot=z.length;for(var ct in _)!Y.call(_,ct)||F&&(ct=="length"||re&&(ct=="offset"||ct=="parent")||jt&&(ct=="buffer"||ct=="byteLength"||ct=="byteOffset")||vc(ct,ot))||z.push(ct);return z}function hi(_,I){for(var J=_.length;J--;)if(gs(_[J][0],I))return J;return-1}function Lo(_){return _==null?_===void 0?"[object Undefined]":"[object Null]":pt&&pt in Object(_)?function(I){var J=Y.call(I,pt),gt=I[pt];try{I[pt]=void 0;var re=!0}catch(F){}var jt=at.call(I);return re&&(J?I[pt]=gt:delete I[pt]),jt}(_):function(I){return at.call(I)}(_)}function ps(_){return vi(_)&&Lo(_)==o}function Ia(_,I,J,gt,re){return _===I||(_==null||I==null||!vi(_)&&!vi(I)?_!=_&&I!=I:function(jt,F,z,ot,ct,$t){var me=zo(jt),ce=zo(F),Wt=me?i:Yr(jt),Ze=ce?i:Yr(F),wr=(Wt=Wt==o?d:Wt)==d,La=(Ze=Ze==o?d:Ze)==d,$o=Wt==Ze;if($o&&no(jt)){if(!no(F))return!1;me=!0,wr=!1}if($o&&!wr)return $t||($t=new pn),me||io(jt)?hn(jt,F,z,ot,ct,$t):function(Rt,Gt,qt,Fe,Tr,Lr,Mn){switch(qt){case w:if(Rt.byteLength!=Gt.byteLength||Rt.byteOffset!=Gt.byteOffset)return!1;Rt=Rt.buffer,Gt=Gt.buffer;case b:return!(Rt.byteLength!=Gt.byteLength||!Lr(new G(Rt),new G(Gt)));case a:case u:case f:return gs(+Rt,+Gt);case s:return Rt.name==Gt.name&&Rt.message==Gt.message;case v:case g:return Rt==Gt+"";case c:var mi=lt;case y:var mc=1&Fe;if(mi||(mi=st),Rt.size!=Gt.size&&!mc)return!1;var ph=Mn.get(Rt);if(ph)return ph==Gt;Fe|=2,Mn.set(Rt,Gt);var vs=hn(mi(Rt),mi(Gt),Fe,Tr,Lr,Mn);return Mn.delete(Rt),vs;case m:if(yr)return yr.call(Rt)==yr.call(Gt)}return!1}(jt,F,Wt,z,ot,ct,$t);if(!(1&z)){var yi=wr&&Y.call(jt,"__wrapped__"),bt=La&&Y.call(F,"__wrapped__");if(yi||bt){var Jt=yi?jt.value():jt,je=bt?F.value():F;return $t||($t=new pn),ct(Jt,je,z,ot,$t)}}return $o?($t||($t=new pn),function(Rt,Gt,qt,Fe,Tr,Lr){var Mn=1&qt,mi=Ro(Rt),mc=mi.length,ph=Ro(Gt).length;if(mc!=ph&&!Mn)return!1;for(var vs=mc;vs--;){var Ra=mi[vs];if(!(Mn?Ra in Gt:Y.call(Gt,Ra)))return!1}var UC=Lr.get(Rt);if(UC&&Lr.get(Gt))return UC==Gt;var hh=!0;Lr.set(Rt,Gt),Lr.set(Gt,Rt);for(var Sm=Mn;++vs<mc;){var gh=Rt[Ra=mi[vs]],vh=Gt[Ra];if(Fe)var WC=Mn?Fe(vh,gh,Ra,Gt,Rt,Lr):Fe(gh,vh,Ra,Rt,Gt,Lr);if(!(WC===void 0?gh===vh||Tr(gh,vh,qt,Fe,Lr):WC)){hh=!1;break}Sm||(Sm=Ra=="constructor")}if(hh&&!Sm){var yh=Rt.constructor,mh=Gt.constructor;yh==mh||!("constructor"in Rt)||!("constructor"in Gt)||typeof yh=="function"&&yh instanceof yh&&typeof mh=="function"&&mh instanceof mh||(hh=!1)}return Lr.delete(Rt),Lr.delete(Gt),hh}(jt,F,z,ot,ct,$t)):!1}(_,I,J,gt,Ia,re))}function hs(_){return!(!fh(_)||function(I){return!!V&&V in I}(_))&&(yc(_)?vt:D).test(Mo(_))}function Ln(_){if(J=(I=_)&&I.constructor,gt=typeof J=="function"&&J.prototype||S,I!==gt)return Ht(_);var I,J,gt,re=[];for(var jt in Object(_))Y.call(_,jt)&&jt!="constructor"&&re.push(jt);return re}function hn(_,I,J,gt,re,jt){var F=1&J,z=_.length,ot=I.length;if(z!=ot&&!(F&&ot>z))return!1;var ct=jt.get(_);if(ct&&jt.get(I))return ct==I;var $t=-1,me=!0,ce=2&J?new nr:void 0;for(jt.set(_,I),jt.set(I,_);++$t<z;){var Wt=_[$t],Ze=I[$t];if(gt)var wr=F?gt(Ze,Wt,$t,I,_,jt):gt(Wt,Ze,$t,_,I,jt);if(wr!==void 0){if(wr)continue;me=!1;break}if(ce){if(!rt(I,function(La,$o){if(yi=$o,!ce.has(yi)&&(Wt===La||re(Wt,La,J,gt,jt)))return ce.push($o);var yi})){me=!1;break}}else if(Wt!==Ze&&!re(Wt,Ze,J,gt,jt)){me=!1;break}}return jt.delete(_),jt.delete(I),me}function Ro(_){return function(I,J,gt){var re=J(I);return zo(I)?re:function(jt,F){for(var z=-1,ot=F.length,ct=jt.length;++z<ot;)jt[ct+z]=F[z];return jt}(re,gt(I))}(_,dh,lh)}function Rn(_,I){var J,gt,re=_.__data__;return((gt=typeof(J=I))=="string"||gt=="number"||gt=="symbol"||gt=="boolean"?J!=="__proto__":J===null)?re[typeof I=="string"?"string":"hash"]:re.map}function gi(_,I){var J=function(gt,re){return gt==null?void 0:gt[re]}(_,I);return hs(J)?J:void 0}mr.prototype.clear=function(){this.__data__=Nn?Nn(null):{},this.size=0},mr.prototype.delete=function(_){var I=this.has(_)&&delete this.__data__[_];return this.size-=I?1:0,I},mr.prototype.get=function(_){var I=this.__data__;if(Nn){var J=I[_];return J===r?void 0:J}return Y.call(I,_)?I[_]:void 0},mr.prototype.has=function(_){var I=this.__data__;return Nn?I[_]!==void 0:Y.call(I,_)},mr.prototype.set=function(_,I){var J=this.__data__;return this.size+=this.has(_)?0:1,J[_]=Nn&&I===void 0?r:I,this},br.prototype.clear=function(){this.__data__=[],this.size=0},br.prototype.delete=function(_){var I=this.__data__,J=hi(I,_);return!(J<0)&&(J==I.length-1?I.pop():Ot.call(I,J,1),--this.size,!0)},br.prototype.get=function(_){var I=this.__data__,J=hi(I,_);return J<0?void 0:I[J][1]},br.prototype.has=function(_){return hi(this.__data__,_)>-1},br.prototype.set=function(_,I){var J=this.__data__,gt=hi(J,_);return gt<0?(++this.size,J.push([_,I])):J[gt][1]=I,this},Fr.prototype.clear=function(){this.size=0,this.__data__={hash:new mr,map:new(ye||br),string:new mr}},Fr.prototype.delete=function(_){var I=Rn(this,_).delete(_);return this.size-=I?1:0,I},Fr.prototype.get=function(_){return Rn(this,_).get(_)},Fr.prototype.has=function(_){return Rn(this,_).has(_)},Fr.prototype.set=function(_,I){var J=Rn(this,_),gt=J.size;return J.set(_,I),this.size+=J.size==gt?0:1,this},nr.prototype.add=nr.prototype.push=function(_){return this.__data__.set(_,r),this},nr.prototype.has=function(_){return this.__data__.has(_)},pn.prototype.clear=function(){this.__data__=new br,this.size=0},pn.prototype.delete=function(_){var I=this.__data__,J=I.delete(_);return this.size=I.size,J},pn.prototype.get=function(_){return this.__data__.get(_)},pn.prototype.has=function(_){return this.__data__.has(_)},pn.prototype.set=function(_,I){var J=this.__data__;if(J instanceof br){var gt=J.__data__;if(!ye||gt.length<199)return gt.push([_,I]),this.size=++J.size,this;J=this.__data__=new Fr(gt)}return J.set(_,I),this.size=J.size,this};var lh=kt?function(_){return _==null?[]:(_=Object(_),function(I,J){for(var gt=-1,re=I==null?0:I.length,jt=0,F=[];++gt<re;){var z=I[gt];J(z,gt,I)&&(F[jt++]=z)}return F}(kt(_),function(I){return Lt.call(_,I)}))}:function(){return[]},Yr=Lo;function vc(_,I){return!!(I=I==null?n:I)&&(typeof _=="number"||x.test(_))&&_>-1&&_%1==0&&_<I}function Mo(_){if(_!=null){try{return $.call(_)}catch(I){}try{return _+""}catch(I){}}return""}function gs(_,I){return _===I||_!=_&&I!=I}(ee&&Yr(new ee(new ArrayBuffer(1)))!=w||ye&&Yr(new ye)!=c||vr&&Yr(vr.resolve())!=p||zt&&Yr(new zt)!=y||Ir&&Yr(new Ir)!=h)&&(Yr=function(_){var I=Lo(_),J=I==d?_.constructor:void 0,gt=J?Mo(J):"";if(gt)switch(gt){case eo:return w;case ds:return c;case Na:return p;case In:return y;case ro:return h}return I});var ch=ps(function(){return arguments}())?ps:function(_){return vi(_)&&Y.call(_,"callee")&&!Lt.call(_,"callee")},zo=Array.isArray,no=Be||function(){return!1};function yc(_){if(!fh(_))return!1;var I=Lo(_);return I==l||I=="[object GeneratorFunction]"||I=="[object AsyncFunction]"||I=="[object Proxy]"}function oo(_){return typeof _=="number"&&_>-1&&_%1==0&&_<=n}function fh(_){var I=typeof _;return _!=null&&(I=="object"||I=="function")}function vi(_){return _!=null&&typeof _=="object"}var io=q?function(_){return function(I){return _(I)}}(q):function(_){return vi(_)&&oo(_.length)&&!!C[Lo(_)]};function dh(_){return(I=_)!=null&&oo(I.length)&&!yc(I)?gc(_):Ln(_);var I}t.exports=function(_,I){return Ia(_,I)}});qr("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"}}),qr("zh-CN",{tableModule:{deleteCol:"删除列",deleteRow:"删除行",deleteTable:"删除表格",widthAuto:"宽度自适应",insertCol:"插入列",insertRow:"插入行",insertTable:"插入表格",header:"表头"}});var cB=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function YL(t){var e={exports:{}};return t(e,e.exports),e.exports}var Ti,Yg,ig=function(t){return t&&t.Math==Math&&t},Pt=ig(typeof globalThis=="object"&&globalThis)||ig(typeof window=="object"&&window)||ig(typeof self=="object"&&self)||ig(typeof cB=="object"&&cB)||function(){return this}()||Function("return this")(),Ye=function(t){try{return!!t()}catch(e){return!0}},Da=!Ye(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),vf=Function.prototype.call,Qe=vf.bind?vf.bind(vf):function(){return vf.apply(vf,arguments)},fB={}.propertyIsEnumerable,dB=Object.getOwnPropertyDescriptor,Blt={f:dB&&!fB.call({1:2},1)?function(t){var e=dB(this,t);return!!e&&e.enumerable}:fB},f8=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},XL=Function.prototype,C6=XL.bind,x6=XL.call,Flt=C6&&C6.bind(x6),Mt=C6?function(t){return t&&Flt(x6,t)}:function(t){return t&&function(){return x6.apply(t,arguments)}},Tlt=Mt({}.toString),_lt=Mt("".slice),ia=function(t){return _lt(Tlt(t),8,-1)},m2=Pt.Object,Plt=Mt("".split),ZL=Ye(function(){return!m2("z").propertyIsEnumerable(0)})?function(t){return ia(t)=="String"?Plt(t,""):m2(t)}:m2,jlt=Pt.TypeError,Ca=function(t){if(t==null)throw jlt("Can't call method on "+t);return t},Zp=function(t){return ZL(Ca(t))},kr=function(t){return typeof t=="function"},bo=function(t){return typeof t=="object"?t!==null:kr(t)},Nlt=function(t){return kr(t)?t:void 0},Jp=function(t,e){return arguments.length<2?Nlt(Pt[t]):Pt[t]&&Pt[t][e]},JL=Mt({}.isPrototypeOf),b2=Jp("navigator","userAgent")||"",pB=Pt.process,hB=Pt.Deno,gB=pB&&pB.versions||hB&&hB.version,vB=gB&&gB.v8;vB&&(Yg=(Ti=vB.split("."))[0]>0&&Ti[0]<4?1:+(Ti[0]+Ti[1])),!Yg&&b2&&(!(Ti=b2.match(/Edge\/(\d+)/))||Ti[1]>=74)&&(Ti=b2.match(/Chrome\/(\d+)/))&&(Yg=+Ti[1]);var S6=Yg,A6=!!Object.getOwnPropertySymbols&&!Ye(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&S6&&S6<41}),d8=A6&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Ilt=Pt.Object,w2=d8?function(t){return typeof t=="symbol"}:function(t){var e=Jp("Symbol");return kr(e)&&JL(e.prototype,Ilt(t))},Llt=Pt.String,QL=function(t){try{return Llt(t)}catch(e){return"Object"}},Rlt=Pt.TypeError,tR=function(t){if(kr(t))return t;throw Rlt(QL(t)+" is not a function")},p8=function(t,e){var r=t[e];return r==null?void 0:tR(r)},Mlt=Pt.TypeError,zlt=Object.defineProperty,h8=function(t,e){try{zlt(Pt,t,{value:e,configurable:!0,writable:!0})}catch(r){Pt[t]=e}return e},aa=Pt["__core-js_shared__"]||h8("__core-js_shared__",{}),g8=YL(function(t){(t.exports=function(e,r){return aa[e]||(aa[e]=r!==void 0?r:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),$lt=Pt.Object,v8=function(t){return $lt(Ca(t))},Hlt=Mt({}.hasOwnProperty),xn=Object.hasOwn||function(t,e){return Hlt(v8(t),e)},Vlt=0,Ult=Math.random(),Wlt=Mt(1 .toString),eR=function(t){return"Symbol("+(t===void 0?"":t)+")_"+Wlt(++Vlt+Ult,36)},yf=g8("wks"),Tu=Pt.Symbol,yB=Tu&&Tu.for,Glt=d8?Tu:Tu&&Tu.withoutSetter||eR,jn=function(t){if(!xn(yf,t)||!A6&&typeof yf[t]!="string"){var e="Symbol."+t;A6&&xn(Tu,t)?yf[t]=Tu[t]:yf[t]=d8&&yB?yB(e):Glt(e)}return yf[t]},qlt=Pt.TypeError,Klt=jn("toPrimitive"),y8=function(t){var e=function(r,n){if(!bo(r)||w2(r))return r;var o,i=p8(r,Klt);if(i){if(o=Qe(i,r,n),!bo(o)||w2(o))return o;throw qlt("Can't convert object to primitive value")}return function(a,u){var s,l;if(kr(s=a.toString)&&!bo(l=Qe(s,a))||kr(s=a.valueOf)&&!bo(l=Qe(s,a)))return l;throw Mlt("Can't convert object to primitive value")}(r)}(t,"string");return w2(e)?e:e+""},O6=Pt.document,Ylt=bo(O6)&&bo(O6.createElement),m8=function(t){return Ylt?O6.createElement(t):{}},rR=!Da&&!Ye(function(){return Object.defineProperty(m8("div"),"a",{get:function(){return 7}}).a!=7}),mB=Object.getOwnPropertyDescriptor,nR={f:Da?mB:function(t,e){if(t=Zp(t),e=y8(e),rR)try{return mB(t,e)}catch(r){}if(xn(t,e))return f8(!Qe(Blt.f,t,e),t[e])}},Xlt=Pt.String,Zlt=Pt.TypeError,Sn=function(t){if(bo(t))return t;throw Zlt(Xlt(t)+" is not an object")},Jlt=Pt.TypeError,bB=Object.defineProperty,Qp={f:Da?bB:function(t,e,r){if(Sn(t),e=y8(e),Sn(r),rR)try{return bB(t,e,r)}catch(n){}if("get"in r||"set"in r)throw Jlt("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},Hl=Da?function(t,e,r){return Qp.f(t,e,f8(1,r))}:function(t,e,r){return t[e]=r,t},Qlt=Mt(Function.toString);kr(aa.inspectSource)||(aa.inspectSource=function(t){return Qlt(t)});var k6,T0,B6,b8=aa.inspectSource,wB=Pt.WeakMap,tct=kr(wB)&&/native code/.test(b8(wB)),EB=g8("keys"),oR=function(t){return EB[t]||(EB[t]=eR(t))},w8={},DB=Pt.TypeError,ect=Pt.WeakMap;if(tct||aa.state){var Ka=aa.state||(aa.state=new ect),rct=Mt(Ka.get),CB=Mt(Ka.has),nct=Mt(Ka.set);k6=function(t,e){if(CB(Ka,t))throw new DB("Object already initialized");return e.facade=t,nct(Ka,t,e),e},T0=function(t){return rct(Ka,t)||{}},B6=function(t){return CB(Ka,t)}}else{var Is=oR("state");w8[Is]=!0,k6=function(t,e){if(xn(t,Is))throw new DB("Object already initialized");return e.facade=t,Hl(t,Is,e),e},T0=function(t){return xn(t,Is)?t[Is]:{}},B6=function(t){return xn(t,Is)}}var F6={get:T0,enforce:function(t){return B6(t)?T0(t):k6(t,{})}},iR=Function.prototype,oct=Da&&Object.getOwnPropertyDescriptor,xB=xn(iR,"name"),E8={PROPER:xB&&function(){}.name==="something",CONFIGURABLE:xB&&(!Da||Da&&oct(iR,"name").configurable)},Kd=YL(function(t){var e=E8.CONFIGURABLE,r=F6.get,n=F6.enforce,o=String(String).split("String");(t.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet,p=s&&s.name!==void 0?s.name:a;kr(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!xn(u,"name")||e&&u.name!==p)&&Hl(u,"name",p),(l=n(u)).source||(l.source=o.join(typeof p=="string"?p:""))),i!==Pt?(c?!d&&i[a]&&(f=!0):delete i[a],f?i[a]=u:Hl(i,a,u)):f?i[a]=u:h8(a,u)})(Function.prototype,"toString",function(){return kr(this)&&r(this).source||b8(this)})}),ict=Math.ceil,act=Math.floor,am=function(t){var e=+t;return e!=e||e===0?0:(e>0?act:ict)(e)},uct=Math.max,sct=Math.min,Yd=function(t,e){var r=am(t);return r<0?uct(r+e,0):sct(r,e)},lct=Math.min,D8=function(t){return t>0?lct(am(t),9007199254740991):0},um=function(t){return D8(t.length)},cct=function(t){return function(e,r,n){var o,i=Zp(e),a=um(i),u=Yd(n,a);if(t&&r!=r){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===r)return t||u||0;return!t&&-1}},fct=cct(!1),SB=Mt([].push),aR=function(t,e){var r,n=Zp(t),o=0,i=[];for(r in n)!xn(w8,r)&&xn(n,r)&&SB(i,r);for(;e.length>o;)xn(n,r=e[o++])&&(~fct(i,r)||SB(i,r));return i},_0=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],dct=_0.concat("length","prototype"),pct={f:Object.getOwnPropertyNames||function(t){return aR(t,dct)}},hct={f:Object.getOwnPropertySymbols},gct=Mt([].concat),vct=Jp("Reflect","ownKeys")||function(t){var e=pct.f(Sn(t)),r=hct.f;return r?gct(e,r(t)):e},yct=function(t,e){for(var r=vct(e),n=Qp.f,o=nR.f,i=0;i<r.length;i++){var a=r[i];xn(t,a)||n(t,a,o(e,a))}},mct=/#|\.prototype\./,th=function(t,e){var r=wct[bct(t)];return r==Dct||r!=Ect&&(kr(e)?Ye(e):!!e)},bct=th.normalize=function(t){return String(t).replace(mct,".").toLowerCase()},wct=th.data={},Ect=th.NATIVE="N",Dct=th.POLYFILL="P",Cct=th,xct=nR.f,xa=function(t,e){var r,n,o,i,a,u=t.target,s=t.global,l=t.stat;if(r=s?Pt:l?Pt[u]||h8(u,{}):(Pt[u]||{}).prototype)for(n in e){if(i=e[n],o=t.noTargetGet?(a=xct(r,n))&&a.value:r[n],!Cct(s?n:u+(l?".":"#")+n,t.forced)&&o!==void 0){if(typeof i==typeof o)continue;yct(i,o)}(t.sham||o&&o.sham)&&Hl(i,"sham",!0),Kd(r,n,i,t)}},uR={};uR[jn("toStringTag")]="z";var C8=String(uR)==="[object z]",Sct=jn("toStringTag"),Act=Pt.Object,Oct=ia(function(){return arguments}())=="Arguments",x8=C8?ia:function(t){var e,r,n;return t===void 0?"Undefined":t===null?"Null":typeof(r=function(o,i){try{return o[i]}catch(a){}}(e=Act(t),Sct))=="string"?r:Oct?ia(e):(n=ia(e))=="Object"&&kr(e.callee)?"Arguments":n},kct=Pt.String,xr=function(t){if(x8(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return kct(t)},Bct=/"/g,Fct=Mt("".replace);xa({target:"String",proto:!0,forced:Ye(function(){var t="".anchor('"');return t!==t.toLowerCase()||t.split('"').length>3})},{anchor:function(t){return e=t,r=xr(Ca(this)),n="<a",(n+=' name="'+Fct(xr(e),Bct,"&quot;")+'"')+">"+r+"</a>";var e,r,n}});var ag,sR=function(){var t=Sn(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},S8=Pt.RegExp,T6=Ye(function(){var t=S8("a","y");return t.lastIndex=2,t.exec("abcd")!=null});T6||Ye(function(){return!S8("a","y").sticky});var lR={BROKEN_CARET:T6||Ye(function(){var t=S8("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),UNSUPPORTED_Y:T6},Tct=Object.keys||function(t){return aR(t,_0)},_ct=Da?Object.defineProperties:function(t,e){Sn(t);for(var r,n=Zp(e),o=Tct(e),i=o.length,a=0;i>a;)Qp.f(t,r=o[a++],n[r]);return t},Pct=Jp("document","documentElement"),cR=oR("IE_PROTO"),E2=function(){},fR=function(t){return"<script>"+t+"<\/script>"},AB=function(t){t.write(fR("")),t.close();var e=t.parentWindow.Object;return t=null,e},Xg=function(){try{ag=new ActiveXObject("htmlfile")}catch(n){}var t,e;Xg=typeof document!="undefined"?document.domain&&ag?AB(ag):((e=m8("iframe")).style.display="none",Pct.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(fR("document.F=Object")),t.close(),t.F):AB(ag);for(var r=_0.length;r--;)delete Xg.prototype[_0[r]];return Xg()};w8[cR]=!0;var OB,D2,dR=Object.create||function(t,e){var r;return t!==null?(E2.prototype=Sn(t),r=new E2,E2.prototype=null,r[cR]=t):r=Xg(),e===void 0?r:_ct(r,e)},jct=Pt.RegExp,Nct=Ye(function(){var t=jct(".","s");return!(t.dotAll&&t.exec(`
`)&&t.flags==="s")}),Ict=Pt.RegExp,Lct=Ye(function(){var t=Ict("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),Rct=F6.get,Mct=g8("native-string-replace",String.prototype.replace),P0=RegExp.prototype.exec,_6=P0,zct=Mt("".charAt),$ct=Mt("".indexOf),Hct=Mt("".replace),C2=Mt("".slice),x2=(D2=/b*/g,Qe(P0,OB=/a/,"a"),Qe(P0,D2,"a"),OB.lastIndex!==0||D2.lastIndex!==0),kB=lR.BROKEN_CARET,S2=/()??/.exec("")[1]!==void 0;(x2||S2||kB||Nct||Lct)&&(_6=function(t){var e,r,n,o,i,a,u,s=this,l=Rct(s),c=xr(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=Qe(_6,f,c),s.lastIndex=f.lastIndex,e;var d=l.groups,p=kB&&s.sticky,v=Qe(sR,s),y=s.source,g=0,m=c;if(p&&(v=Hct(v,"y",""),$ct(v,"g")===-1&&(v+="g"),m=C2(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&zct(c,s.lastIndex-1)!==`
`)&&(y="(?: "+y+")",m=" "+m,g++),r=new RegExp("^(?:"+y+")",v)),S2&&(r=new RegExp("^"+y+"$(?!\\s)",v)),x2&&(n=s.lastIndex),o=Qe(P0,p?r:s,m),p?o?(o.input=C2(o.input,g),o[0]=C2(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:x2&&o&&(s.lastIndex=s.global?o.index+o[0].length:n),S2&&o&&o.length>1&&Qe(Mct,o[0],r,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&d)for(o.groups=a=dR(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var Xd=_6;xa({target:"RegExp",proto:!0,forced:/./.exec!==Xd},{exec:Xd});var j0=Array.isArray||function(t){return ia(t)=="Array"},pR=function(){},Vct=[],hR=Jp("Reflect","construct"),A8=/^\s*(?:class|function)\b/,Uct=Mt(A8.exec),Wct=!A8.exec(pR),mf=function(t){if(!kr(t))return!1;try{return hR(pR,Vct,t),!0}catch(e){return!1}},O8=!hR||Ye(function(){var t;return mf(mf.call)||!mf(Object)||!mf(function(){t=!0})||t})?function(t){if(!kr(t))return!1;switch(x8(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Wct||!!Uct(A8,b8(t))}:mf,gR=function(t,e,r){var n=y8(e);n in t?Qp.f(t,n,f8(0,r)):t[n]=r},Gct=jn("species"),k8=function(t){return S6>=51||!Ye(function(){var e=[];return(e.constructor={})[Gct]=function(){return{foo:1}},e[t](Boolean).foo!==1})},qct=Mt([].slice),Kct=k8("slice"),Yct=jn("species"),A2=Pt.Array,Xct=Math.max;function Qn(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(e===void 0||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(u){o={error:u}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function BB(t){var e=t.selection;if(e==null)return!1;var r=Qn(E.nodes(t,{match:function(i){return A.checkNodeType(i,"table-cell")}}),1)[0];if(r){var n=Qn(r,2)[1],o=E.start(t,n);if(Ft.equals(e.anchor,o))return!0}return!1}function FB(t,e){var r,n,o=E.nodes(t,{at:e,match:function(s){return A.getNodeType(s)==="table"}}),i=!1;try{for(var a=function(s){var l=typeof Symbol=="function"&&Symbol.iterator,c=l&&s[l],f=0;if(c)return c.call(s);if(s&&typeof s.length=="number")return{next:function(){return s&&f>=s.length&&(s=void 0),{value:s&&s[f++],done:!s}}};throw new TypeError(l?"Object is not iterable.":"Symbol.iterator is not defined.")}(o),u=a.next();!u.done;u=a.next())u.value,i=!0}catch(s){r={error:s}}finally{try{u&&!u.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}return i}xa({target:"Array",proto:!0,forced:!Kct},{slice:function(t,e){var r,n,o,i=Zp(this),a=um(i),u=Yd(t,a),s=Yd(e===void 0?a:e,a);if(j0(i)&&(r=i.constructor,(O8(r)&&(r===A2||j0(r.prototype))||bo(r)&&(r=r[Yct])===null)&&(r=void 0),r===A2||r===void 0))return qct(i,u,s);for(n=new(r===void 0?A2:r)(Xct(s-u,0)),o=0;u<s;u++,o++)u in i&&gR(n,o,i[u]);return n.length=o,n}});var TB=Mt(Mt.bind),Zct=jn("species"),_B=Pt.Array,Jct=function(t,e){return new(function(r){var n;return j0(r)&&(n=r.constructor,(O8(n)&&(n===_B||j0(n.prototype))||bo(n)&&(n=n[Zct])===null)&&(n=void 0)),n===void 0?_B:n}(t))(e===0?0:e)},PB=Mt([].push),ug=function(t){var e=t==1,r=t==2,n=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var d,p,v=v8(s),y=ZL(v),g=function(D,x){return tR(D),x===void 0?D:TB?TB(D,x):function(){return D.apply(x,arguments)}}(l,c),m=um(y),h=0,b=f||Jct,w=e?b(s,m):r||a?b(s,0):void 0;m>h;h++)if((u||h in y)&&(p=g(d=y[h],h,v),t))if(e)w[h]=p;else if(p)switch(t){case 3:return!0;case 5:return d;case 6:return h;case 2:PB(w,d)}else switch(t){case 4:return!1;case 7:PB(w,d)}return i?-1:n||o?o:w}},sm={forEach:ug(0),map:ug(1),filter:ug(2),find:ug(5)},Qct=sm.map;xa({target:"Array",proto:!0,forced:!k8("map")},{map:function(t){return Qct(this,t,arguments.length>1?arguments[1]:void 0)}});var tft=C8?{}.toString:function(){return"[object "+x8(this)+"]"};function lm(t){var e=t.children||[];return e.length===0?[]:(e[0]||{}).children||[]}function vR(t){return lm(t).every(function(e){return!!e.isHeader})}C8||Kd(Object.prototype,"toString",tft,{unsafe:!0});var eft=E8.PROPER,P6=RegExp.prototype,yR=P6.toString,rft=Mt(sR),nft=Ye(function(){return yR.call({source:"a",flags:"b"})!="/a/b"}),oft=eft&&yR.name!="toString";(nft||oft)&&Kd(RegExp.prototype,"toString",function(){var t=Sn(this),e=xr(t.source),r=t.flags;return"/"+e+"/"+xr(r===void 0&&JL(P6,t)&&!("flags"in P6)?rft(t):r)},{unsafe:!0});var j6=jn("unscopables"),N6=Array.prototype;N6[j6]==null&&Qp.f(N6,j6,{configurable:!0,value:dR(null)});var ift=sm.find,jB=!0;"find"in[]&&Array(1).find(function(){jB=!1}),xa({target:"Array",proto:!0,forced:jB},{find:function(t){return ift(this,t,arguments.length>1?arguments[1]:void 0)}}),N6[j6].find=!0;var B8=Function.prototype,NB=B8.apply,aft=B8.bind,IB=B8.call,mR=typeof Reflect=="object"&&Reflect.apply||(aft?IB.bind(NB):function(){return IB.apply(NB,arguments)}),uft=jn("species"),O2=RegExp.prototype,bR=function(t,e,r,n){var o=jn(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[uft]=function(){return c},c.flags="",c[o]=/./[o]),c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||r){var u=Mt(/./[o]),s=e(o,""[t],function(l,c,f,d,p){var v=Mt(l),y=c.exec;return y===Xd||y===O2.exec?i&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:v(f,c,d)}:{done:!1}});Kd(String.prototype,t,s[0]),Kd(O2,o,s[1])}n&&Hl(O2[o],"sham",!0)},sft=jn("match"),lft=Pt.TypeError,cft=jn("species"),fft=Mt("".charAt),LB=Mt("".charCodeAt),dft=Mt("".slice),pft=function(t){return function(e,r){var n,o,i=xr(Ca(e)),a=am(r),u=i.length;return a<0||a>=u?t?"":void 0:(n=LB(i,a))<55296||n>56319||a+1===u||(o=LB(i,a+1))<56320||o>57343?t?fft(i,a):n:t?dft(i,a,a+2):o-56320+(n-55296<<10)+65536}},hft=pft(!0),wR=function(t,e,r){return e+(r?hft(t,e).length:1)},gft=Pt.Array,vft=Math.max,RB=function(t,e,r){for(var n=um(t),o=Yd(e,n),i=Yd(r===void 0?n:r,n),a=gft(vft(i-o,0)),u=0;o<i;o++,u++)gR(a,u,t[o]);return a.length=u,a},yft=Pt.TypeError,I6=function(t,e){var r=t.exec;if(kr(r)){var n=Qe(r,t,e);return n!==null&&Sn(n),n}if(ia(t)==="RegExp")return Qe(Xd,t,e);throw yft("RegExp#exec called on incompatible receiver")},Ls=lR.UNSUPPORTED_Y,mft=Math.min,ER=[].push,bft=Mt(/./.exec),Rs=Mt(ER),bf=Mt("".slice);bR("split",function(t,e,r){var n;return n="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(o,i){var a,u,s=xr(Ca(this)),l=i===void 0?4294967295:i>>>0;if(l===0)return[];if(o===void 0)return[s];if(!bo(a=o)||!((u=a[sft])!==void 0?u:ia(a)=="RegExp"))return Qe(e,s,o,l);for(var c,f,d,p=[],v=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(o.sticky?"y":""),y=0,g=new RegExp(o.source,v+"g");(c=Qe(Xd,g,s))&&!((f=g.lastIndex)>y&&(Rs(p,bf(s,y,c.index)),c.length>1&&c.index<s.length&&mR(ER,p,RB(c,1)),d=c[0].length,y=f,p.length>=l));)g.lastIndex===c.index&&g.lastIndex++;return y===s.length?!d&&bft(g,"")||Rs(p,""):Rs(p,bf(s,y)),p.length>l?RB(p,0,l):p}:"0".split(void 0,0).length?function(o,i){return o===void 0&&i===0?[]:Qe(e,this,o,i)}:e,[function(o,i){var a=Ca(this),u=o==null?void 0:p8(o,t);return u?Qe(u,o,a,i):Qe(n,xr(a),o,i)},function(o,i){var a=Sn(this),u=xr(o),s=r(n,a,u,i,n!==e);if(s.done)return s.value;var l=function(w,D){var x,C=Sn(w).constructor;return C===void 0||(x=Sn(C)[cft])==null?D:function(O){if(O8(O))return O;throw lft(QL(O)+" is not a constructor")}(x)}(a,RegExp),c=a.unicode,f=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(Ls?"g":"y"),d=new l(Ls?"^(?:"+a.source+")":a,f),p=i===void 0?4294967295:i>>>0;if(p===0)return[];if(u.length===0)return I6(d,u)===null?[u]:[];for(var v=0,y=0,g=[];y<u.length;){d.lastIndex=Ls?0:y;var m,h=I6(d,Ls?bf(u,y):u);if(h===null||(m=mft(D8(d.lastIndex+(Ls?y:0)),u.length))===v)y=wR(u,y,c);else{if(Rs(g,bf(u,v,y)),g.length===p)return g;for(var b=1;b<=h.length-1;b++)if(Rs(g,h[b]),g.length===p)return g;y=v=m}}return Rs(g,bf(u,v)),g}]},!!Ye(function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var r="ab".split(t);return r.length!==2||r[0]!=="a"||r[1]!=="b"}),Ls);var L6=`
\v\f\r    \u2028\u2029\uFEFF`,MB=Mt("".replace),N0="["+L6+"]",wft=RegExp("^"+N0+N0+"*"),Eft=RegExp(N0+N0+"*$"),Dft=function(t){return function(e){var r=xr(Ca(e));return 1&t&&(r=MB(r,wft,"")),2&t&&(r=MB(r,Eft,"")),r}},Cft={trim:Dft(3)},xft=E8.PROPER,Sft=Cft.trim;function DR(t){return t.length?t[0].tagName.toLowerCase():""}xa({target:"String",proto:!0,forced:function(t){return Ye(function(){return!!L6[t]()||"…"[t]()!=="…"||xft&&L6[t].name!==t})}("trim")},{trim:function(){return Sft(this)}}),xa({global:!0},{globalThis:Pt}),kn&&(B.fn.append=kn),ko&&(B.fn.on=ko),va&&(B.fn.focus=va),On&&(B.fn.attr=On),Oo&&(B.fn.val=Oo),ga&&(B.fn.html=ga),Al&&(B.fn.dataset=Al),Cl&&(B.fn.addClass=Cl),xl&&(B.fn.removeClass=xl),Fl&&(B.fn.children=Fl),Rv&&(B.fn.each=Rv),Bl&&(B.fn.find=Bl);var Zd=!1,CR=0,xR=0,Jd=null,Qd=null,fd=B("body");function SR(t){Zd=!1,Qd=null,Jd=null,fd.off("mousemove",AR),fd.off("mouseup",SR)}fd.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(),Zd=!0;var r=t.clientX;CR=r;var n=e.getBoundingClientRect().width;xR=n,fd.on("mousemove",AR),fd.on("mouseup",SR)}});var AR=Hu(function(t){if(Zd&&Qd!=null&&Jd!=null){t.preventDefault();var e=t.clientX,r=xR+(e-CR);(r=Math.floor(100*r)/100)<30&&(r=30),N.setNodes(Qd,{width:r.toString()},{at:Jd})}},100),Aft={type:"table",renderElem:function(t,e,r){var n=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,d=A.findPath(u,s),p=E.start(u,d),v=E.end(u,d),y=Ft.compare(c,v)<=0&&Ft.compare(c,p)>=0,g=Ft.compare(f,v)<=0&&Ft.compare(f,p)>=0;return!!(y&&g&&j.equals(c.path.slice(0,3),f.path.slice(0,3)))}(r,t),o=t.width,i=o===void 0?"auto":o,a=wt("div",{className:"table-container","data-selected":A.isNodeSelected(r,t),on:{mousedown:function(u){if(u.target.tagName==="DIV"&&u.preventDefault(),!r.isDisabled()){var s=A.findPath(r,t),l=E.start(r,s),c=r.selection;c!=null?c.anchor.path[0]!==s[0]&&r.select(l):r.select(l)}}}},wt("table",{width:i,contentEditable:n},wt("colgroup",null,lm(t).map(function(u){var s=u.width;return wt("col",{width:s===void 0?"auto":s})})),wt("tbody",null,e)));return a}},Oft={type:"table-row",renderElem:function(t,e,r){return wt("tr",null,e)}},kft={type:"table-cell",renderElem:function(t,e,r){var n=function(d,p){var v=A.getParentNode(d,p);if(v==null)return!1;var y=A.getParentNode(d,v);return y!=null&&lm(y).some(function(g){return g===p})}(r,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(!n)return wt("td",{colSpan:a,rowSpan:s},e);var f=wt(c?"th":"td",{colSpan:a,rowSpan:s,style:{borderRightWidth:"3px"},on:{mousemove:Hu(function(d){var p=this.elm;if(p!=null){var v=p.getBoundingClientRect(),y=v.left,g=v.width,m=v.top,h=v.height,b=d.clientX,w=d.clientY;Zd||(b>y+g-5&&b<y+g&&w>m&&w<m+h?(p.style.cursor="col-resize",Qd=r,Jd=A.findPath(r,t)):Zd||(p.style.cursor="auto",Qd=null,Jd=null))}},100)}},e);return f}},Bft={selector:"table",preParseHtml:function(t){var e=B(t);if(DR(e)!=="table")return t;var r=e.find("tbody");if(r.length===0)return t;var n=e.find("tr");return e.append(n),r.remove(),e[0]}},Fft=sm.filter;xa({target:"Array",proto:!0,forced:!k8("filter")},{filter:function(t){return Fft(this,t,arguments.length>1?arguments[1]:void 0)}});var Tft=Math.floor,k2=Mt("".charAt),_ft=Mt("".replace),B2=Mt("".slice),Pft=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,jft=/\$([$&'`]|\d{1,2})/g,Nft=function(t,e,r,n,o,i){var a=r+t.length,u=n.length,s=jft;return o!==void 0&&(o=v8(o),s=Pft),_ft(i,s,function(l,c){var f;switch(k2(c,0)){case"$":return"$";case"&":return t;case"`":return B2(e,0,r);case"'":return B2(e,a);case"<":f=o[B2(c,1,-1)];break;default:var d=+c;if(d===0)return l;if(d>u){var p=Tft(d/10);return p===0?l:p<=u?n[p-1]===void 0?k2(c,1):n[p-1]+k2(c,1):l}f=n[d-1]}return f===void 0?"":f})},R6=jn("replace"),Ift=Math.max,Lft=Math.min,Rft=Mt([].concat),F2=Mt([].push),zB=Mt("".indexOf),$B=Mt("".slice),Mft="a".replace(/./,"$0")==="$0",HB=!!/./[R6]&&/./[R6]("a","$0")==="";bR("replace",function(t,e,r){var n=HB?"$":"$0";return[function(o,i){var a=Ca(this),u=o==null?void 0:p8(o,R6);return u?Qe(u,o,a,i):Qe(e,xr(a),o,i)},function(o,i){var a=Sn(this),u=xr(o);if(typeof i=="string"&&zB(i,n)===-1&&zB(i,"$<")===-1){var s=r(e,a,u,i);if(s.done)return s.value}var l=kr(i);l||(i=xr(i));var c=a.global;if(c){var f=a.unicode;a.lastIndex=0}for(var d=[];;){var p=I6(a,u);if(p===null||(F2(d,p),!c))break;xr(p[0])===""&&(a.lastIndex=wR(u,D8(a.lastIndex),f))}for(var v,y="",g=0,m=0;m<d.length;m++){for(var h=xr((p=d[m])[0]),b=Ift(Lft(am(p.index),u.length),0),w=[],D=1;D<p.length;D++)F2(w,(v=p[D])===void 0?v:String(v));var x=p.groups;if(l){var C=Rft([h],w,b,u);x!==void 0&&F2(C,x);var O=xr(mR(i,void 0,C))}else O=Nft(h,u,b,w,x,i);b>=g&&(y+=$B(u,g,b)+O,g=b+h.length)}return y+$B(u,g)}]},!!Ye(function(){var t=/./;return t.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(t,"$<a>")!=="7"})||!Mft||HB);var zft={selector:"td:not([data-w-e-type]),th:not([data-w-e-type])",parseElemHtml:function(t,e,r){var n=B(t);(e=e.filter(function(u){return!!it.isText(u)||!!r.isInline(u)})).length===0&&(e=[{text:n.text().replace(/\s+/gm," ")}]);var o=parseInt(n.attr("colSpan")||"1"),i=parseInt(n.attr("rowSpan")||"1"),a=n.attr("width")||"auto";return{type:"table-cell",isHeader:DR(n)==="th",colSpan:o,rowSpan:i,width:a,children:e}}},$ft={selector:"tr:not([data-w-e-type])",parseElemHtml:function(t,e,r){return{type:"table-row",children:e.filter(function(n){return A.getNodeType(n)==="table-cell"})}}},Hft={selector:"table:not([data-w-e-type])",parseElemHtml:function(t,e,r){var n=B(t),o="auto";return function(i,a){for(var u="",s=(i.attr("style")||"").split(";"),l=s.length,c=0;c<l;c++){var f=s[c];if(f){var d=f.split(":");d[0].trim()==="width"&&(u=d[1].trim())}}return u}(n)==="100%"&&(o="100%"),n.attr("width")==="100%"&&(o="100%"),{type:"table",width:o,children:e.filter(function(i){return A.getNodeType(i)==="table-row"})}}},Vft=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,r){},t.prototype.isDisabled=function(e){var r=e.selection;return r==null||!L.isCollapsed(r)||!!A.getSelectedElems(e).some(function(n){var o=A.getNodeType(n);return o==="pre"||o==="table"||o==="list-item"||!!e.isVoid(n)})},t.prototype.getPanelContentElem=function(e){var r=this;if(this.$content)return this.$content[0];for(var n=B('<div class="w-e-panel-content-table"></div>'),o=B("<span>0 &times; 0</span>"),i=B("<table></table>"),a=0;a<10;a++){for(var u=B("<tr></tr>"),s=0;s<10;s++){var l=B("<td></td>");l.attr("data-x",s.toString()),l.attr("data-y",a.toString()),u.append(l),l.on("mouseenter",function(c){var f=c.target;if(f!=null){var d=B(f).dataset(),p=d.x,v=d.y;o[0].innerHTML=p+1+" &times; "+(v+1),i.children().each(function(y){B(y).children().each(function(g){var m=B(g),h=m.dataset(),b=h.x,w=h.y;b<=p&&w<=v?m.addClass("active"):m.removeClass("active")})})}}),l.on("click",function(c){c.preventDefault();var f=c.target;if(f!=null){var d=B(f).dataset(),p=d.x,v=d.y;r.insertTable(e,v+1,p+1)}})}i.append(u)}return n.append(i),n.append(o),this.$content=n,n[0]},t.prototype.insertTable=function(e,r,n){var o=parseInt(r,10),i=parseInt(n,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=[],d=0;d<s;d++){var p={type:"table-cell",children:[{text:""}]};c===0&&(p.isHeader=!0),f.push(p)}l.push({type:"table-row",children:f})}return{type:"table",width:"auto",children:l}}(o,i);N.insertNodes(e,a,{mode:"highest"})}},t}(),Uft=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,r){this.isDisabled(e)||N.removeNodes(e,{mode:"highest"})},t}(),Wft=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 r=e.selection;return r==null||!L.isCollapsed(r)||A.getSelectedNodeByType(e,"table")==null},t.prototype.exec=function(e,r){if(!this.isDisabled(e)){var n=Qn(E.nodes(e,{match:function(p){return A.checkNodeType(p,"table-cell")},universal:!0}),1),o=Qn(n[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),d=j.next(f);N.insertNodes(e,l,{at:d})}}},t}(),Gft=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 r=e.selection;return r==null||!L.isCollapsed(r)||A.getSelectedNodeByType(e,"table-row")==null},t.prototype.exec=function(e,r){if(!this.isDisabled(e)){var n=Qn(E.nodes(e,{match:function(s){return A.checkNodeType(s,"table-row")},universal:!0}),1),o=Qn(n[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}(),VB={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},T2=m8("span").classList,UB=T2&&T2.constructor&&T2.constructor.prototype,qft=UB===Object.prototype?void 0:UB,Kft=sm.forEach,Yft=function(t,e){var r=[].forEach;return!!r&&Ye(function(){r.call(null,function(){throw 1},1)})}(),_2=Yft?[].forEach:function(t){return Kft(this,t,arguments.length>1?arguments[1]:void 0)},OR=function(t){if(t&&t.forEach!==_2)try{Hl(t,"forEach",_2)}catch(e){t.forEach=_2}};for(var P2 in VB)VB[P2]&&OR(Pt[P2]&&Pt[P2].prototype);OR(qft);var Xft=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 r=e.selection;return r==null||!L.isCollapsed(r)||A.getSelectedNodeByType(e,"table")==null},t.prototype.exec=function(e,r){if(!this.isDisabled(e)){var n=Qn(E.nodes(e,{match:function(l){return A.checkNodeType(l,"table-cell")},universal:!0}),1),o=Qn(n[0],2),i=o[0],a=o[1],u=A.getParentNode(e,i);if(u!=null){var s=A.getParentNode(e,u);s!=null&&(s.children||[]).forEach(function(l,c){ft.isElement(l)&&(l.children||[]).forEach(function(f){var d=A.findPath(e,f);if(d.length===a.length&&KL(d.slice(-1),a.slice(-1))){var p={type:"table-cell",children:[{text:""}]};c===0&&vR(s)&&(p.isHeader=!0),N.insertNodes(e,p,{at:d})}})})}}},t}(),Zft=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 r=e.selection;return r==null||!L.isCollapsed(r)||A.getSelectedNodeByType(e,"table-cell")==null},t.prototype.exec=function(e,r){if(!this.isDisabled(e)){var n=Qn(E.nodes(e,{match:function(c){return A.checkNodeType(c,"table-cell")},universal:!0}),1),o=Qn(n[0],2),i=o[0],a=o[1],u=A.getParentNode(e,i),s=(u==null?void 0:u.children.length)||0;if(!u||s<=1)N.removeNodes(e,{mode:"highest"});else{var l=A.getParentNode(e,u);l!=null&&(l.children||[]).forEach(function(c){ft.isElement(c)&&(c.children||[]).forEach(function(f){var d=A.findPath(e,f);d.length===a.length&&KL(d.slice(-1),a.slice(-1))&&N.removeNodes(e,{at:d})})})}}},t}(),Jft=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 r=A.getSelectedNodeByType(e,"table");return r!=null&&vR(r)},t.prototype.isActive=function(e){return!!this.getValue(e)},t.prototype.isDisabled=function(e){var r=e.selection;return r==null||!L.isCollapsed(r)||A.getSelectedNodeByType(e,"table")==null},t.prototype.exec=function(e,r){if(!this.isDisabled(e)){var n=!r,o=A.getSelectedNodeByType(e,"table");o!=null&&lm(o).forEach(function(i){return N.setNodes(e,{isHeader:n},{at:A.findPath(e,i)})})}},t}(),Qft=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 r=A.getSelectedNodeByType(e,"table");return r!=null&&r.width==="100%"},t.prototype.isActive=function(e){return!!this.getValue(e)},t.prototype.isDisabled=function(e){var r=e.selection;return r==null||!L.isCollapsed(r)||A.getSelectedNodeByType(e,"table")==null},t.prototype.exec=function(e,r){if(!this.isDisabled(e)){var n={width:r?"auto":"100%"};N.setNodes(e,n,{mode:"highest"})}},t}(),tdt={renderElems:[Aft,Oft,kft],elemsToHtml:[{type:"table",elemToHtml:function(t,e){var r=t.width;return'<table style="width: '+(r===void 0?"auto":r)+';"><tbody>'+e+"</tbody></table>"}},{type:"table-row",elemToHtml:function(t,e){return"<tr>"+e+"</tr>"}},{type:"table-cell",elemToHtml:function(t,e){var r=t,n=r.colSpan,o=n===void 0?1:n,i=r.rowSpan,a=i===void 0?1:i,u=r.isHeader,s=u!==void 0&&u,l=r.width,c=s?"th":"td";return"<"+c+' colSpan="'+o+'" rowSpan="'+a+'" width="'+(l===void 0?"auto":l)+'">'+e+"</"+c+">"}}],preParseHtml:[Bft],parseElemsHtml:[zft,$ft,Hft],menus:[{key:"insertTable",factory:function(){return new Vft}},{key:"deleteTable",factory:function(){return new Uft}},{key:"insertTableRow",factory:function(){return new Wft}},{key:"deleteTableRow",factory:function(){return new Gft}},{key:"insertTableCol",factory:function(){return new Xft}},{key:"deleteTableCol",factory:function(){return new Zft}},{key:"tableHeader",factory:function(){return new Jft}},{key:"tableFullWidth",factory:function(){return new Qft}}],editorPlugin:function(t){var e=t.insertBreak,r=t.deleteBackward,n=t.deleteForward,o=t.normalizeNode,i=t.insertData,a=t.handleTab,u=t.selectAll,s=t;return s.insertBreak=function(){A.getSelectedNodeByType(s,"table")==null?e():s.insertText(`
`)},s.deleteBackward=function(l){if(!BB(s)){var c=s.selection;if(c){var f=E.before(s,c);if(f){var d=FB(s,f),p=FB(s,c);if(d&&!p)return}}r(l)}},s.handleTab=function(){var l;if(A.getSelectedNodeByType(s,"table")){var c=E.above(t);A.checkNodeType(c[0],"table-cell")&&N.select(t,c[1]);var f=E.next(t);if(f)f[0]&&f[0].text&&(f=(l=E.above(t,{at:f[1]}))!==null&&l!==void 0?l:f),N.select(t,f[1]);else{var d=s.children||[],p=d.length;if(A.checkNodeType(d[p-1],"table")){var v=A.genEmptyParagraph();N.insertNodes(s,v,{at:[p]}),s.handleTab()}}}else a()},s.deleteForward=function(l){BB(s)||n(l)},s.normalizeNode=function(l){var c=Qn(l,2),f=c[0],d=c[1];if(A.getNodeType(f)!=="table")return o([f,d]);if(A.isLastNode(s,f)){var p=A.genEmptyParagraph();N.insertNodes(s,p,{at:[d[0]+1]})}},s.insertData=function(l){if(A.getSelectedNodeByType(s,"table")!=null){var c=l.getData("text/plain");c===`
`||/<img[^>]+>/.test(l.getData("text/html"))?i(l):E.insertText(s,c)}else i(l)},s.selectAll=function(){var l=s.selection;if(l!=null){var c=A.getSelectedNodeByType(s,"table-cell");if(c!=null){var f=l.anchor,d=l.focus;if(j.equals(f.path.slice(0,3),d.path.slice(0,3)))if(Q.string(c).length!==0){var p=A.findPath(s,c),v={anchor:E.start(s,p),focus:E.end(s,p)};s.select(v)}else u();else u()}else u()}else u()},s}};qr("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"}}),qr("zh-CN",{videoModule:{delete:"删除视频",uploadVideo:"上传视频",insertVideo:"插入视频",videoSrc:"视频地址",videoSrcPlaceHolder:"视频文件 url 或第三方 <iframe>",videoPoster:"视频封面",videoPosterPlaceHolder:"封面图片 url",ok:"确定",editSize:"修改尺寸",width:"宽度",height:"高度"}});/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var I0=function(){return I0=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},I0.apply(this,arguments)};function cm(t,e,r,n){return new(r||(r=Promise))(function(o,i){function a(l){try{s(n.next(l))}catch(c){i(c)}}function u(l){try{s(n.throw(l))}catch(c){i(c)}}function s(l){var c;l.done?o(l.value):(c=l.value,c instanceof r?c:new r(function(f){f(c)})).then(a,u)}s((n=n.apply(t,[])).next())})}function fm(t,e){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function u(s){return function(l){return function(c){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||c[0]!==6&&c[0]!==2)){a=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){a.label=c[1];break}if(c[0]===6&&a.label<o[1]){a.label=o[1],o=c;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(c);break}o[2]&&a.ops.pop(),a.trys.pop();continue}c=e.call(t,a)}catch(f){c=[6,f],n=0}finally{r=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([s,l])}}}function _u(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(e===void 0||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(u){o={error:u}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function edt(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,r=t[Symbol.asyncIterator];return r?r.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={},n("next"),n("throw"),n("return"),e[Symbol.asyncIterator]=function(){return this},e);function n(o){e[o]=t[o]&&function(i){return new Promise(function(a,u){(function(s,l,c,f){Promise.resolve(f).then(function(d){s({value:d,done:c})},l)})(a,u,(i=t[o](i)).done,i.value)})}}}var WB=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function F8(t){var e={exports:{}};return t(e,e.exports),e.exports}var _i,Zg,sg=function(t){return t&&t.Math==Math&&t},nt=sg(typeof globalThis=="object"&&globalThis)||sg(typeof window=="object"&&window)||sg(typeof self=="object"&&self)||sg(typeof WB=="object"&&WB)||function(){return this}()||Function("return this")(),de=function(t){try{return!!t()}catch(e){return!0}},Fo=!de(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),wf=Function.prototype.call,fe=wf.bind?wf.bind(wf):function(){return wf.apply(wf,arguments)},GB={}.propertyIsEnumerable,qB=Object.getOwnPropertyDescriptor,rdt={f:qB&&!GB.call({1:2},1)?function(t){var e=qB(this,t);return!!e&&e.enumerable}:GB},dm=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},kR=Function.prototype,M6=kR.bind,z6=kR.call,ndt=M6&&M6.bind(z6),xt=M6?function(t){return t&&ndt(z6,t)}:function(t){return t&&function(){return z6.apply(t,arguments)}},odt=xt({}.toString),idt=xt("".slice),xo=function(t){return idt(odt(t),8,-1)},j2=nt.Object,adt=xt("".split),T8=de(function(){return!j2("z").propertyIsEnumerable(0)})?function(t){return xo(t)=="String"?adt(t,""):j2(t)}:j2,udt=nt.TypeError,eh=function(t){if(t==null)throw udt("Can't call method on "+t);return t},_a=function(t){return T8(eh(t))},ae=function(t){return typeof t=="function"},we=function(t){return typeof t=="object"?t!==null:ae(t)},sdt=function(t){return ae(t)?t:void 0},Ju=function(t,e){return arguments.length<2?sdt(nt[t]):nt[t]&&nt[t][e]},tp=xt({}.isPrototypeOf),hl=Ju("navigator","userAgent")||"",KB=nt.process,YB=nt.Deno,XB=KB&&KB.versions||YB&&YB.version,ZB=XB&&XB.v8;ZB&&(Zg=(_i=ZB.split("."))[0]>0&&_i[0]<4?1:+(_i[0]+_i[1])),!Zg&&hl&&(!(_i=hl.match(/Edge\/(\d+)/))||_i[1]>=74)&&(_i=hl.match(/Chrome\/(\d+)/))&&(Zg=+_i[1]);var ep=Zg,$6=!!Object.getOwnPropertySymbols&&!de(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&ep&&ep<41}),_8=$6&&!Symbol.sham&&typeof Symbol.iterator=="symbol",ldt=nt.Object,N2=_8?function(t){return typeof t=="symbol"}:function(t){var e=Ju("Symbol");return ae(e)&&tp(e.prototype,ldt(t))},cdt=nt.String,L0=function(t){try{return cdt(t)}catch(e){return"Object"}},fdt=nt.TypeError,Sa=function(t){if(ae(t))return t;throw fdt(L0(t)+" is not a function")},rp=function(t,e){var r=t[e];return r==null?void 0:Sa(r)},ddt=nt.TypeError,pdt=Object.defineProperty,P8=function(t,e){try{pdt(nt,t,{value:e,configurable:!0,writable:!0})}catch(r){nt[t]=e}return e},ua=nt["__core-js_shared__"]||P8("__core-js_shared__",{}),j8=F8(function(t){(t.exports=function(e,r){return ua[e]||(ua[e]=r!==void 0?r:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),hdt=nt.Object,pm=function(t){return hdt(eh(t))},gdt=xt({}.hasOwnProperty),qe=Object.hasOwn||function(t,e){return gdt(pm(t),e)},vdt=0,ydt=Math.random(),mdt=xt(1 .toString),N8=function(t){return"Symbol("+(t===void 0?"":t)+")_"+mdt(++vdt+ydt,36)},Ef=j8("wks"),Pu=nt.Symbol,JB=Pu&&Pu.for,bdt=_8?Pu:Pu&&Pu.withoutSetter||N8,ze=function(t){if(!qe(Ef,t)||!$6&&typeof Ef[t]!="string"){var e="Symbol."+t;$6&&qe(Pu,t)?Ef[t]=Pu[t]:Ef[t]=_8&&JB?JB(e):bdt(e)}return Ef[t]},wdt=nt.TypeError,Edt=ze("toPrimitive"),I8=function(t){var e=function(r,n){if(!we(r)||N2(r))return r;var o,i=rp(r,Edt);if(i){if(o=fe(i,r,n),!we(o)||N2(o))return o;throw wdt("Can't convert object to primitive value")}return function(a,u){var s,l;if(ae(s=a.toString)&&!we(l=fe(s,a))||ae(s=a.valueOf)&&!we(l=fe(s,a)))return l;throw ddt("Can't convert object to primitive value")}(r)}(t,"string");return N2(e)?e:e+""},H6=nt.document,Ddt=we(H6)&&we(H6.createElement),np=function(t){return Ddt?H6.createElement(t):{}},BR=!Fo&&!de(function(){return Object.defineProperty(np("div"),"a",{get:function(){return 7}}).a!=7}),QB=Object.getOwnPropertyDescriptor,L8={f:Fo?QB:function(t,e){if(t=_a(t),e=I8(e),BR)try{return QB(t,e)}catch(r){}if(qe(t,e))return dm(!fe(rdt.f,t,e),t[e])}},Cdt=nt.String,xdt=nt.TypeError,cr=function(t){if(we(t))return t;throw xdt(Cdt(t)+" is not an object")},Sdt=nt.TypeError,tF=Object.defineProperty,di={f:Fo?tF:function(t,e,r){if(cr(t),e=I8(e),cr(r),BR)try{return tF(t,e,r)}catch(n){}if("get"in r||"set"in r)throw Sdt("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},sa=Fo?function(t,e,r){return di.f(t,e,dm(1,r))}:function(t,e,r){return t[e]=r,t},Adt=xt(Function.toString);ae(ua.inspectSource)||(ua.inspectSource=function(t){return Adt(t)});var R0,dd,M0,hm=ua.inspectSource,eF=nt.WeakMap,FR=ae(eF)&&/native code/.test(hm(eF)),rF=j8("keys"),R8=function(t){return rF[t]||(rF[t]=N8(t))},gm={},V6=nt.TypeError,Odt=nt.WeakMap;if(FR||ua.state){var Ya=ua.state||(ua.state=new Odt),kdt=xt(Ya.get),nF=xt(Ya.has),Bdt=xt(Ya.set);R0=function(t,e){if(nF(Ya,t))throw new V6("Object already initialized");return e.facade=t,Bdt(Ya,t,e),e},dd=function(t){return kdt(Ya,t)||{}},M0=function(t){return nF(Ya,t)}}else{var Ms=R8("state");gm[Ms]=!0,R0=function(t,e){if(qe(t,Ms))throw new V6("Object already initialized");return e.facade=t,sa(t,Ms,e),e},dd=function(t){return qe(t,Ms)?t[Ms]:{}},M0=function(t){return qe(t,Ms)}}var ln={set:R0,get:dd,has:M0,enforce:function(t){return M0(t)?dd(t):R0(t,{})},getterFor:function(t){return function(e){var r;if(!we(e)||(r=dd(e)).type!==t)throw V6("Incompatible receiver, "+t+" required");return r}}},TR=Function.prototype,Fdt=Fo&&Object.getOwnPropertyDescriptor,I2=qe(TR,"name"),hc={EXISTS:I2,PROPER:I2&&function(){}.name==="something",CONFIGURABLE:I2&&(!Fo||Fo&&Fdt(TR,"name").configurable)},_n=F8(function(t){var e=hc.CONFIGURABLE,r=ln.get,n=ln.enforce,o=String(String).split("String");(t.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet,p=s&&s.name!==void 0?s.name:a;ae(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!qe(u,"name")||e&&u.name!==p)&&sa(u,"name",p),(l=n(u)).source||(l.source=o.join(typeof p=="string"?p:""))),i!==nt?(c?!d&&i[a]&&(f=!0):delete i[a],f?i[a]=u:sa(i,a,u)):f?i[a]=u:P8(a,u)})(Function.prototype,"toString",function(){return ae(this)&&r(this).source||hm(this)})}),Tdt=Math.ceil,_dt=Math.floor,vm=function(t){var e=+t;return e!=e||e===0?0:(e>0?_dt:Tdt)(e)},Pdt=Math.max,jdt=Math.min,op=function(t,e){var r=vm(t);return r<0?Pdt(r+e,0):jdt(r,e)},Ndt=Math.min,_R=function(t){return t>0?Ndt(vm(t),9007199254740991):0},rh=function(t){return _R(t.length)},oF=function(t){return function(e,r,n){var o,i=_a(e),a=rh(i),u=op(n,a);if(t&&r!=r){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===r)return t||u||0;return!t&&-1}},PR={includes:oF(!0),indexOf:oF(!1)},Idt=PR.indexOf,iF=xt([].push),jR=function(t,e){var r,n=_a(t),o=0,i=[];for(r in n)!qe(gm,r)&&qe(n,r)&&iF(i,r);for(;e.length>o;)qe(n,r=e[o++])&&(~Idt(i,r)||iF(i,r));return i},z0=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Ldt=z0.concat("length","prototype"),$0={f:Object.getOwnPropertyNames||function(t){return jR(t,Ldt)}},Rdt={f:Object.getOwnPropertySymbols},Mdt=xt([].concat),zdt=Ju("Reflect","ownKeys")||function(t){var e=$0.f(cr(t)),r=Rdt.f;return r?Mdt(e,r(t)):e},$dt=function(t,e){for(var r=zdt(e),n=di.f,o=L8.f,i=0;i<r.length;i++){var a=r[i];qe(t,a)||n(t,a,o(e,a))}},Hdt=/#|\.prototype\./,nh=function(t,e){var r=Udt[Vdt(t)];return r==Gdt||r!=Wdt&&(ae(e)?de(e):!!e)},Vdt=nh.normalize=function(t){return String(t).replace(Hdt,".").toLowerCase()},Udt=nh.data={},Wdt=nh.NATIVE="N",Gdt=nh.POLYFILL="P",H0=nh,qdt=L8.f,$r=function(t,e){var r,n,o,i,a,u=t.target,s=t.global,l=t.stat;if(r=s?nt:l?nt[u]||P8(u,{}):(nt[u]||{}).prototype)for(n in e){if(i=e[n],o=t.noTargetGet?(a=qdt(r,n))&&a.value:r[n],!H0(s?n:u+(l?".":"#")+n,t.forced)&&o!==void 0){if(typeof i==typeof o)continue;$dt(i,o)}(t.sham||o&&o.sham)&&sa(i,"sham",!0),_n(r,n,i,t)}},NR={};NR[ze("toStringTag")]="z";var M8=String(NR)==="[object z]",Kdt=ze("toStringTag"),Ydt=nt.Object,Xdt=xo(function(){return arguments}())=="Arguments",ym=M8?xo:function(t){var e,r,n;return t===void 0?"Undefined":t===null?"Null":typeof(r=function(o,i){try{return o[i]}catch(a){}}(e=Ydt(t),Kdt))=="string"?r:Xdt?xo(e):(n=xo(e))=="Object"&&ae(e.callee)?"Arguments":n},Zdt=nt.String,bn=function(t){if(ym(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Zdt(t)},U6=`
\v\f\r    \u2028\u2029\uFEFF`,aF=xt("".replace),V0="["+U6+"]",Jdt=RegExp("^"+V0+V0+"*"),Qdt=RegExp(V0+V0+"*$"),tpt=function(t){return function(e){var r=bn(eh(e));return 1&t&&(r=aF(r,Jdt,"")),2&t&&(r=aF(r,Qdt,"")),r}},ept={trim:tpt(3)},rpt=hc.PROPER,npt=ept.trim;function uF(t){return t.length?t[0].tagName.toLowerCase():""}function IR(t,e,r){e===void 0&&(e="auto"),r===void 0&&(r="auto");var n=B(t);return n.attr("width",e),n.attr("height",r),n[0].outerHTML}$r({target:"String",proto:!0,forced:de(function(){return!!U6.trim()||"…".trim()!=="…"||rpt&&U6.trim.name!=="trim"})},{trim:function(){return npt(this)}}),$r({global:!0},{globalThis:nt}),kn&&(B.fn.append=kn),ko&&(B.fn.on=ko),va&&(B.fn.focus=va),On&&(B.fn.attr=On),Oo&&(B.fn.val=Oo),ga&&(B.fn.html=ga),kl&&(B.fn.parent=kl),Sl&&(B.fn.hasClass=Sl),_l&&(B.fn.empty=_l);var lg,opt={type:"video",renderElem:function(t,e,r){var n,o=t,i=o.src,a=i===void 0?"":i,u=o.poster,s=u===void 0?"":u,l=o.width,c=l===void 0?"auto":l,f=o.height,d=f===void 0?"auto":f,p=A.isNodeSelected(r,t);if(a.trim().indexOf("<iframe ")===0)n=wt("div",{className:"w-e-textarea-video-container","data-selected":p?"true":"",innerHTML:IR(a,c,d)});else{var v=wt("video",{poster:s,controls:!0},wt("source",{src:a,type:"video/mp4"}),`Sorry, your browser doesn't support embedded videos.
抱歉,浏览器不支持 video 视频`);c!=="auto"&&(v.data.width=c),d!=="auto"&&(v.data.height=d),n=wt("div",{className:"w-e-textarea-video-container","data-selected":p?"true":""},v)}return Pl("div",{props:{contentEditable:!1},on:{mousedown:function(y){return y.preventDefault()}}},n)}},ipt={type:"video",elemToHtml:function(t,e){var r=t,n=r.src,o=n===void 0?"":n,i=r.poster,a=i===void 0?"":i,u=r.width,s=u===void 0?"auto":u,l=r.height,c=l===void 0?"auto":l,f=`<div data-w-e-type="video" data-w-e-is-void>
`;return o.trim().indexOf("<iframe ")===0?f+=IR(o,s,c):f+='<video poster="'+a+'" controls="true" width="'+s+'" height="'+c+'"><source src="'+o+'" type="video/mp4"/></video>',f+`
</div>`}},apt=Object.keys||function(t){return jR(t,z0)},upt=Fo?Object.defineProperties:function(t,e){cr(t);for(var r,n=_a(e),o=apt(e),i=o.length,a=0;i>a;)di.f(t,r=o[a++],n[r]);return t},W6=Ju("document","documentElement"),LR=R8("IE_PROTO"),L2=function(){},RR=function(t){return"<script>"+t+"<\/script>"},sF=function(t){t.write(RR("")),t.close();var e=t.parentWindow.Object;return t=null,e},Jg=function(){try{lg=new ActiveXObject("htmlfile")}catch(n){}var t,e;Jg=typeof document!="undefined"?document.domain&&lg?sF(lg):((e=np("iframe")).style.display="none",W6.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(RR("document.F=Object")),t.close(),t.F):sF(lg);for(var r=z0.length;r--;)delete Jg.prototype[z0[r]];return Jg()};gm[LR]=!0;var z8=Object.create||function(t,e){var r;return t!==null?(L2.prototype=cr(t),r=new L2,L2.prototype=null,r[LR]=t):r=Jg(),e===void 0?r:upt(r,e)},G6=ze("unscopables"),q6=Array.prototype;q6[G6]==null&&di.f(q6,G6,{configurable:!0,value:z8(null)});var pd=function(t){q6[G6][t]=!0},spt=PR.includes;$r({target:"Array",proto:!0},{includes:function(t){return spt(this,t,arguments.length>1?arguments[1]:void 0)}}),pd("includes");var lpt={selector:"iframe,video,p",preParseHtml:function(t){var e=B(t),r=e;if(uF(e)==="p"){var n=e.children();if(n.length===1){var o=n[0],i=o.tagName.toLowerCase();["iframe","video"].includes(i)&&(r=B(o))}}var a=uF(r);if(a!=="iframe"&&a!=="video"||r.parent().attr("data-w-e-type")==="video")return r[0];var u=B('<div data-w-e-type="video" data-w-e-is-void></div>');return u.append(r),u[0]}},lF=xt(xt.bind),ip=function(t,e){return Sa(t),e===void 0?t:lF?lF(t,e):function(){return t.apply(e,arguments)}},U0=Array.isArray||function(t){return xo(t)=="Array"},MR=function(){},cpt=[],zR=Ju("Reflect","construct"),$8=/^\s*(?:class|function)\b/,fpt=xt($8.exec),dpt=!$8.exec(MR),Df=function(t){if(!ae(t))return!1;try{return zR(MR,cpt,t),!0}catch(e){return!1}},H8=!zR||de(function(){var t;return Df(Df.call)||!Df(Object)||!Df(function(){t=!0})||t})?function(t){if(!ae(t))return!1;switch(ym(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return dpt||!!fpt($8,hm(t))}:Df,ppt=ze("species"),cF=nt.Array,hpt=function(t,e){return new(function(r){var n;return U0(r)&&(n=r.constructor,(H8(n)&&(n===cF||U0(n.prototype))||we(n)&&(n=n[ppt])===null)&&(n=void 0)),n===void 0?cF:n}(t))(e===0?0:e)},fF=xt([].push),dF=function(t){var e=t==1,r=t==2,n=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var d,p,v=pm(s),y=T8(v),g=ip(l,c),m=rh(y),h=0,b=f||hpt,w=e?b(s,m):r||a?b(s,0):void 0;m>h;h++)if((u||h in y)&&(p=g(d=y[h],h,v),t))if(e)w[h]=p;else if(p)switch(t){case 3:return!0;case 5:return d;case 6:return h;case 2:fF(w,d)}else switch(t){case 4:return!1;case 7:fF(w,d)}return i?-1:n||o?o:w}},V8={find:dF(5),findIndex:dF(6)},gpt=V8.find,pF=!0;"find"in[]&&Array(1).find(function(){pF=!1}),$r({target:"Array",proto:!0,forced:pF},{find:function(t){return gpt(this,t,arguments.length>1?arguments[1]:void 0)}}),pd("find");var vpt=M8?{}.toString:function(){return"[object "+ym(this)+"]"};function hF(t,e,r,n){return e===void 0&&(e=""),r===void 0&&(r="auto"),n===void 0&&(n="auto"),{type:"video",src:t,poster:e,width:r,height:n,children:[{text:""}]}}M8||_n(Object.prototype,"toString",vpt,{unsafe:!0});var gF,R2,ypt={selector:'div[data-w-e-type="video"]',parseElemHtml:function(t,e,r){var n=B(t),o="",i="",a="auto",u="auto",s=n.find("iframe");if(s.length>0)return a=s.attr("width")||"auto",u=s.attr("height")||"auto",hF(o=s[0].outerHTML,i,a,u);var l=n.find("video");return(o=l.attr("src")||"")||l.length>0&&(o=l.find("source").attr("src")||""),a=l.attr("width")||"auto",u=l.attr("height")||"auto",hF(o,i=l.attr("poster")||"",a,u)}},$R=function(){var t=cr(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},U8=nt.RegExp,HR=de(function(){var t=U8("a","y");return t.lastIndex=2,t.exec("abcd")!=null});HR||de(function(){return!U8("a","y").sticky});var mpt={BROKEN_CARET:HR||de(function(){var t=U8("^r","gy");return t.lastIndex=2,t.exec("str")!=null})},bpt=nt.RegExp,wpt=de(function(){var t=bpt(".","s");return!(t.dotAll&&t.exec(`
`)&&t.flags==="s")}),Ept=nt.RegExp,Dpt=de(function(){var t=Ept("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),Cpt=ln.get,xpt=j8("native-string-replace",String.prototype.replace),W0=RegExp.prototype.exec,K6=W0,Spt=xt("".charAt),Apt=xt("".indexOf),Opt=xt("".replace),M2=xt("".slice),z2=(R2=/b*/g,fe(W0,gF=/a/,"a"),fe(W0,R2,"a"),gF.lastIndex!==0||R2.lastIndex!==0),vF=mpt.BROKEN_CARET,$2=/()??/.exec("")[1]!==void 0;(z2||$2||vF||wpt||Dpt)&&(K6=function(t){var e,r,n,o,i,a,u,s=this,l=Cpt(s),c=bn(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=fe(K6,f,c),s.lastIndex=f.lastIndex,e;var d=l.groups,p=vF&&s.sticky,v=fe($R,s),y=s.source,g=0,m=c;if(p&&(v=Opt(v,"y",""),Apt(v,"g")===-1&&(v+="g"),m=M2(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&Spt(c,s.lastIndex-1)!==`
`)&&(y="(?: "+y+")",m=" "+m,g++),r=new RegExp("^(?:"+y+")",v)),$2&&(r=new RegExp("^"+y+"$(?!\\s)",v)),z2&&(n=s.lastIndex),o=fe(W0,p?r:s,m),p?o?(o.input=M2(o.input,g),o[0]=M2(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:z2&&o&&(s.lastIndex=s.global?o.index+o[0].length:n),$2&&o&&o.length>1&&fe(xpt,o[0],r,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&d)for(o.groups=a=z8(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var G0=K6;$r({target:"RegExp",proto:!0,forced:/./.exec!==G0},{exec:G0});var W8=Function.prototype,yF=W8.apply,kpt=W8.bind,mF=W8.call,VR=typeof Reflect=="object"&&Reflect.apply||(kpt?mF.bind(yF):function(){return mF.apply(yF,arguments)}),bF=(ze("species"),RegExp.prototype),Bpt=xt("".charAt),wF=xt("".charCodeAt),Fpt=xt("".slice),Tpt=function(t){return function(e,r){var n,o,i=bn(eh(e)),a=vm(r),u=i.length;return a<0||a>=u?t?"":void 0:(n=wF(i,a))<55296||n>56319||a+1===u||(o=wF(i,a+1))<56320||o>57343?t?Bpt(i,a):n:t?Fpt(i,a,a+2):o-56320+(n-55296<<10)+65536}},UR={charAt:Tpt(!0)},_pt=UR.charAt,Ppt=function(t,e,r){return e+(r?_pt(t,e).length:1)},jpt=Math.floor,H2=xt("".charAt),Npt=xt("".replace),V2=xt("".slice),Ipt=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Lpt=/\$([$&'`]|\d{1,2})/g,Rpt=function(t,e,r,n,o,i){var a=r+t.length,u=n.length,s=Lpt;return o!==void 0&&(o=pm(o),s=Ipt),Npt(i,s,function(l,c){var f;switch(H2(c,0)){case"$":return"$";case"&":return t;case"`":return V2(e,0,r);case"'":return V2(e,a);case"<":f=o[V2(c,1,-1)];break;default:var d=+c;if(d===0)return l;if(d>u){var p=jpt(d/10);return p===0?l:p<=u?n[p-1]===void 0?H2(c,1):n[p-1]+H2(c,1):l}f=n[d-1]}return f===void 0?"":f})},Mpt=nt.TypeError,zpt=function(t,e){var r=t.exec;if(ae(r)){var n=fe(r,t,e);return n!==null&&cr(n),n}if(xo(t)==="RegExp")return fe(G0,t,e);throw Mpt("RegExp#exec called on incompatible receiver")},Y6=ze("replace"),$pt=Math.max,Hpt=Math.min,Vpt=xt([].concat),U2=xt([].push),EF=xt("".indexOf),DF=xt("".slice),Upt="a".replace(/./,"$0")==="$0",CF=!!/./[Y6]&&/./[Y6]("a","$0")==="";function WR(t){return t+"-"+QP()}(function(t,e,r,n){var o=ze(t),i=!de(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),a=i&&!de(function(){var l=!1,c=/a/;return c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||r){var u=xt(/./[o]),s=function(l,c,f){var d=CF?"$":"$0";return[function(p,v){var y=eh(this),g=p==null?void 0:rp(p,Y6);return g?fe(g,p,y,v):fe(c,bn(y),p,v)},function(p,v){var y=cr(this),g=bn(p);if(typeof v=="string"&&EF(v,d)===-1&&EF(v,"$<")===-1){var m=f(c,y,g,v);if(m.done)return m.value}var h=ae(v);h||(v=bn(v));var b=y.global;if(b){var w=y.unicode;y.lastIndex=0}for(var D=[];;){var x=zpt(y,g);if(x===null||(U2(D,x),!b))break;bn(x[0])===""&&(y.lastIndex=Ppt(g,_R(y.lastIndex),w))}for(var C,O="",T=0,R=0;R<D.length;R++){for(var H=bn((x=D[R])[0]),M=$pt(Hpt(vm(x.index),g.length),0),K=[],U=1;U<x.length;U++)U2(K,(C=x[U])===void 0?C:String(C));var W=x.groups;if(h){var q=Vpt([H],K,M,g);W!==void 0&&U2(q,W);var rt=bn(VR(v,void 0,q))}else rt=Rpt(H,g,M,K,W,v);M>=T&&(O+=DF(g,T,M)+rt,T=M+H.length)}return O+DF(g,T)}]}(0,""[t],function(l,c,f,d,p){var v=xt(l),y=c.exec;return y===G0||y===bF.exec?i&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:v(f,c,d)}:{done:!1}});_n(String.prototype,t,s[0]),_n(bF,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"})||!Upt||CF);var q0=nt.Promise,K0=function(t,e,r){for(var n in e)_n(t,n,e[n],r);return t},Wpt=nt.String,Gpt=nt.TypeError,Vl=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=xt(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),e=r instanceof Array}catch(n){}return function(n,o){return cr(n),function(i){if(typeof i=="object"||ae(i))return i;throw Gpt("Can't set "+Wpt(i)+" as a prototype")}(o),e?t(n,o):n.__proto__=o,n}}():void 0),qpt=di.f,xF=ze("toStringTag"),Y0=function(t,e,r){t&&!qe(t=r?t:t.prototype,xF)&&qpt(t,xF,{configurable:!0,value:e})},SF=ze("species"),Kpt=nt.TypeError,G8=function(t,e){if(tp(e,t))return t;throw Kpt("Incorrect invocation")},Ul={},Ypt=ze("iterator"),Xpt=Array.prototype,Zpt=ze("iterator"),AF=function(t){if(t!=null)return rp(t,Zpt)||rp(t,"@@iterator")||Ul[ym(t)]},Jpt=nt.TypeError,OF=function(t,e,r){var n,o;cr(t);try{if(!(n=rp(t,"return"))){if(e==="throw")throw r;return r}n=fe(n,t)}catch(i){o=!0,n=i}if(e==="throw")throw r;if(o)throw n;return cr(n),r},Qpt=nt.TypeError,Qg=function(t,e){this.stopped=t,this.result=e},kF=Qg.prototype,X0=function(t,e,r){var n,o,i,a,u,s,l,c,f=r&&r.that,d=!(!r||!r.AS_ENTRIES),p=!(!r||!r.IS_ITERATOR),v=!(!r||!r.INTERRUPTED),y=ip(e,f),g=function(h){return n&&OF(n,"normal",h),new Qg(!0,h)},m=function(h){return d?(cr(h),v?y(h[0],h[1],g):y(h[0],h[1])):v?y(h,g):y(h)};if(p)n=t;else{if(!(o=AF(t)))throw Qpt(L0(t)+" is not iterable");if((c=o)!==void 0&&(Ul.Array===c||Xpt[Ypt]===c)){for(i=0,a=rh(t);a>i;i++)if((u=m(t[i]))&&tp(kF,u))return u;return new Qg(!1)}n=function(h,b){var w=arguments.length<2?AF(h):b;if(Sa(w))return cr(fe(w,h));throw Jpt(L0(h)+" is not iterable")}(t,o)}for(s=n.next;!(l=fe(s,n)).done;){try{u=m(l.value)}catch(h){OF(n,"throw",h)}if(typeof u=="object"&&u&&tp(kF,u))return u}return new Qg(!1)},GR=ze("iterator"),qR=!1;try{var tht=0,BF={next:function(){return{done:!!tht++}},return:function(){qR=!0}};BF[GR]=function(){return this},Array.from(BF,function(){throw 2})}catch(t){}var ap,zs,FF,W2,KR=function(t,e){if(!qR)return!1;var r=!1;try{var n={};n[GR]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch(o){}return r},eht=nt.TypeError,rht=ze("species"),YR=xt([].slice),XR=/(?:ipad|iphone|ipod).*applewebkit/i.test(hl),la=xo(nt.process)=="process",X6=nt.setImmediate,TF=nt.clearImmediate,nht=nt.process,G2=nt.Dispatch,oht=nt.Function,_F=nt.MessageChannel,iht=nt.String,q2=0,hd={};try{ap=nt.location}catch(t){}var q8=function(t){if(qe(hd,t)){var e=hd[t];delete hd[t],e()}},K2=function(t){return function(){q8(t)}},PF=function(t){q8(t.data)},jF=function(t){nt.postMessage(iht(t),ap.protocol+"//"+ap.host)};X6&&TF||(X6=function(t){var e=YR(arguments,1);return hd[++q2]=function(){VR(ae(t)?t:oht(t),void 0,e)},zs(q2),q2},TF=function(t){delete hd[t]},la?zs=function(t){nht.nextTick(K2(t))}:G2&&G2.now?zs=function(t){G2.now(K2(t))}:_F&&!XR?(W2=(FF=new _F).port2,FF.port1.onmessage=PF,zs=ip(W2.postMessage,W2)):nt.addEventListener&&ae(nt.postMessage)&&!nt.importScripts&&ap&&ap.protocol!=="file:"&&!de(jF)?(zs=jF,nt.addEventListener("message",PF,!1)):zs="onreadystatechange"in np("script")?function(t){W6.appendChild(np("script")).onreadystatechange=function(){W6.removeChild(this),q8(t)}}:function(t){setTimeout(K2(t),0)});var Cf,uu,gd,Qs,Y2,X2,Z2,NF,ZR={set:X6},aht=/ipad|iphone|ipod/i.test(hl)&&nt.Pebble!==void 0,uht=/web0s(?!.*chrome)/i.test(hl),sht=L8.f,J2=ZR.set,IF=nt.MutationObserver||nt.WebKitMutationObserver,LF=nt.document,RF=nt.process,cg=nt.Promise,MF=sht(nt,"queueMicrotask"),JR=MF&&MF.value;JR||(Cf=function(){var t,e;for(la&&(t=RF.domain)&&t.exit();uu;){e=uu.fn,uu=uu.next;try{e()}catch(r){throw uu?Qs():gd=void 0,r}}gd=void 0,t&&t.enter()},XR||la||uht||!IF||!LF?!aht&&cg&&cg.resolve?((Z2=cg.resolve(void 0)).constructor=cg,NF=ip(Z2.then,Z2),Qs=function(){NF(Cf)}):la?Qs=function(){RF.nextTick(Cf)}:(J2=ip(J2,nt),Qs=function(){J2(Cf)}):(Y2=!0,X2=LF.createTextNode(""),new IF(Cf).observe(X2,{characterData:!0}),Qs=function(){X2.data=Y2=!Y2}));var Q2,zF,QR,$F,tM=JR||function(t){var e={fn:t,next:void 0};gd&&(gd.next=e),uu||(uu=e,Qs()),gd=e},lht=function(t){var e,r;this.promise=new t(function(n,o){if(e!==void 0||r!==void 0)throw TypeError("Bad Promise constructor");e=n,r=o}),this.resolve=Sa(e),this.reject=Sa(r)},K8={f:function(t){return new lht(t)}},Z6=function(t){try{return{error:!1,value:t()}}catch(e){return{error:!0,value:e}}},cht=typeof window=="object",eM=ZR.set,fht=ze("species"),Xo="Promise",HF=ln.getterFor(Xo),dht=ln.set,pht=ln.getterFor(Xo),eu=q0&&q0.prototype,wo=q0,xf=eu,rM=nt.TypeError,J6=nt.document,Y8=nt.process,gl=K8.f,hht=gl,ght=!!(J6&&J6.createEvent&&nt.dispatchEvent),nM=ae(nt.PromiseRejectionEvent),oM=!1,vd=H0(Xo,function(){var t=hm(wo),e=t!==String(wo);if(!e&&ep===66)return!0;if(ep>=51&&/native code/.test(t))return!1;var r=new wo(function(o){o(1)}),n=function(o){o(function(){},function(){})};return(r.constructor={})[fht]=n,!(oM=r.then(function(){})instanceof n)||!e&&cht&&!nM}),vht=vd||!KR(function(t){wo.all(t).catch(function(){})}),iM=function(t){var e;return!(!we(t)||!ae(e=t.then))&&e},X8=function(t,e){if(!t.notified){t.notified=!0;var r=t.reactions;tM(function(){for(var n=t.value,o=t.state==1,i=0;r.length>i;){var a,u,s,l=r[i++],c=o?l.ok:l.fail,f=l.resolve,d=l.reject,p=l.domain;try{c?(o||(t.rejection===2&&mht(t),t.rejection=1),c===!0?a=n:(p&&p.enter(),a=c(n),p&&(p.exit(),s=!0)),a===l.promise?d(rM("Promise-chain cycle")):(u=iM(a))?fe(u,a,f,d):f(a)):d(n)}catch(v){p&&!s&&p.exit(),d(v)}}t.reactions=[],t.notified=!1,e&&!t.rejection&&yht(t)})}},aM=function(t,e,r){var n,o;ght?((n=J6.createEvent("Event")).promise=e,n.reason=r,n.initEvent(t,!1,!0),nt.dispatchEvent(n)):n={promise:e,reason:r},!nM&&(o=nt["on"+t])?o(n):t==="unhandledrejection"&&function(i,a){var u=nt.console;u&&u.error&&(arguments.length==1?u.error(i):u.error(i,a))}("Unhandled promise rejection",r)},yht=function(t){fe(eM,nt,function(){var e,r=t.facade,n=t.value;if(VF(t)&&(e=Z6(function(){la?Y8.emit("unhandledRejection",n,r):aM("unhandledrejection",r,n)}),t.rejection=la||VF(t)?2:1,e.error))throw e.value})},VF=function(t){return t.rejection!==1&&!t.parent},mht=function(t){fe(eM,nt,function(){var e=t.facade;la?Y8.emit("rejectionHandled",e):aM("rejectionhandled",e,t.value)})},il=function(t,e,r){return function(n){t(e,n,r)}},vl=function(t,e,r){t.done||(t.done=!0,r&&(t=r),t.value=e,t.state=2,X8(t,!0))},Q6=function(t,e,r){if(!t.done){t.done=!0,r&&(t=r);try{if(t.facade===e)throw rM("Promise can't be resolved itself");var n=iM(e);n?tM(function(){var o={done:!1};try{fe(n,e,il(Q6,o,t),il(vl,o,t))}catch(i){vl(o,i,t)}}):(t.value=e,t.state=1,X8(t,!1))}catch(o){vl({done:!1},o,t)}}};if(vd&&(xf=(wo=function(t){G8(this,xf),Sa(t),fe(Q2,this);var e=HF(this);try{t(il(Q6,e),il(vl,e))}catch(r){vl(e,r)}}).prototype,(Q2=function(t){dht(this,{type:Xo,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=K0(xf,{then:function(t,e){var r=pht(this),n=r.reactions,o=gl(function(i,a){var u,s=cr(i).constructor;return s===void 0||(u=cr(s)[rht])==null?a:function(l){if(H8(l))return l;throw eht(L0(l)+" is not a constructor")}(u)}(this,wo));return o.ok=!ae(t)||t,o.fail=ae(e)&&e,o.domain=la?Y8.domain:void 0,r.parent=!0,n[n.length]=o,r.state!=0&&X8(r,!1),o.promise},catch:function(t){return this.then(void 0,t)}}),zF=function(){var t=new Q2,e=HF(t);this.promise=t,this.resolve=il(Q6,e),this.reject=il(vl,e)},K8.f=gl=function(t){return t===wo||t===QR?new zF(t):hht(t)},ae(q0)&&eu!==Object.prototype)){$F=eu.then,oM||(_n(eu,"then",function(t,e){var r=this;return new wo(function(n,o){fe($F,r,n,o)}).then(t,e)},{unsafe:!0}),_n(eu,"catch",xf.catch,{unsafe:!0}));try{delete eu.constructor}catch(t){}Vl&&Vl(eu,xf)}function up(t,e,r){return r===void 0&&(r=""),cm(this,void 0,void 0,function(){var n,o,i,a,u,s,l;return fm(this,function(c){switch(c.label){case 0:return e?(t.restoreSelection(),n=t.getMenuConfig("insertVideo"),o=n.onInsertedVideo,i=n.checkVideo,a=n.parseVideoSrc,[4,i(e,r)]):[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:r,children:[{text:""}]},Promise.resolve().then(function(){N.insertNodes(t,l)}),o(l),[2]}})})}function tw(){return WR("w-e-insert-video")}$r({global:!0,wrap:!0,forced:vd},{Promise:wo}),Y0(wo,Xo,!1),function(t){var e=Ju("Promise"),r=di.f;Fo&&e&&!e[SF]&&r(e,SF,{configurable:!0,get:function(){return this}})}(),QR=Ju(Xo),$r({target:Xo,stat:!0,forced:vd},{reject:function(t){var e=gl(this);return fe(e.reject,void 0,t),e.promise}}),$r({target:Xo,stat:!0,forced:vd},{resolve:function(t){return function(e,r){if(cr(e),we(r)&&r.constructor===e)return r;var n=K8.f(e);return(0,n.resolve)(r),n.promise}(this,t)}}),$r({target:Xo,stat:!0,forced:vht},{all:function(t){var e=this,r=gl(e),n=r.resolve,o=r.reject,i=Z6(function(){var a=Sa(e.resolve),u=[],s=0,l=1;X0(t,function(c){var f=s++,d=!1;l++,fe(a,e,c).then(function(p){d||(d=!0,u[f]=p,--l||n(u))},o)}),--l||n(u)});return i.error&&o(i.value),r.promise},race:function(t){var e=this,r=gl(e),n=r.reject,o=Z6(function(){var i=Sa(e.resolve);X0(t,function(a){fe(i,e,a).then(r.resolve,n)})});return o.error&&n(o.value),r.promise}});var bht=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=tw(),this.posterInputId=tw(),this.buttonId=tw()}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,r){},t.prototype.isDisabled=function(e){var r=e.selection;return r==null||!L.isCollapsed(r)||!!A.getSelectedElems(e).some(function(n){var o=A.getNodeType(n);return o==="pre"||o==="list-item"||!!e.isVoid(n)})},t.prototype.getModalPositionNode=function(e){return null},t.prototype.getModalContentElem=function(e){var r=this,n=this,o=n.srcInputId,i=n.posterInputId,a=n.buttonId,u=_u(rn(tt("videoModule.videoSrc"),o,tt("videoModule.videoSrcPlaceHolder")),2),s=u[0],l=u[1],c=_u(rn(tt("videoModule.videoPoster"),i,tt("videoModule.videoPosterPlaceHolder")),2),f=c[0],d=c[1],p=B(l),v=B(d),y=_u(oc(a,tt("videoModule.ok")),1)[0];if(this.$content==null){var g=B("<div></div>");g.on("click","#"+a,function(h){return cm(r,void 0,void 0,function(){var b,w;return fm(this,function(D){switch(D.label){case 0:return h.preventDefault(),b=g.find("#"+o).val().trim(),w=g.find("#"+i).val().trim(),[4,up(e,b,w)];case 1:return D.sent(),e.hidePanelOrModal(),[2]}})})}),this.$content=g}var m=this.$content;return m.empty(),m.append(s),m.append(f),m.append(y),p.val(""),v.val(""),setTimeout(function(){p.focus()}),m[0]},t}(),wht=xt([].join),Eht=T8!=Object,Dht=function(t,e){var r=[].join;return!!r&&de(function(){r.call(null,",",1)})}();$r({target:"Array",proto:!0,forced:Eht||!Dht},{join:function(t){return wht(_a(this),t===void 0?",":t)}});var ju,UF,WF,Cht=!de(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),GF=R8("IE_PROTO"),t3=nt.Object,xht=t3.prototype,Z0=Cht?t3.getPrototypeOf:function(t){var e=pm(t);if(qe(e,GF))return e[GF];var r=e.constructor;return ae(r)&&e instanceof r?r.prototype:e instanceof t3?xht:null},e3=ze("iterator"),uM=!1;[].keys&&("next"in(WF=[].keys())?(UF=Z0(Z0(WF)))!==Object.prototype&&(ju=UF):uM=!0);var Sht=ju==null||de(function(){var t={};return ju[e3].call(t)!==t});Sht&&(ju={}),ae(ju[e3])||_n(ju,e3,function(){return this});var Z8={IteratorPrototype:ju,BUGGY_SAFARI_ITERATORS:uM},Aht=Z8.IteratorPrototype,Oht=function(){return this},kht=hc.PROPER,Bht=hc.CONFIGURABLE,qF=Z8.IteratorPrototype,ew=Z8.BUGGY_SAFARI_ITERATORS,Sf=ze("iterator"),Fht=function(){return this},sM=function(t,e,r,n,o,i,a){(function(g,m,h,b){var w=m+" Iterator";g.prototype=z8(Aht,{next:dm(1,h)}),Y0(g,w,!1),Ul[w]=Oht})(r,e,n);var u,s,l=function(g){if(g===o&&v)return v;if(!ew&&g in d)return d[g];switch(g){case"keys":case"values":case"entries":return function(){return new r(this,g)}}return function(){return new r(this)}},c=e+" Iterator",f=!1,d=t.prototype,p=d[Sf]||d["@@iterator"]||o&&d[o],v=!ew&&p||l(o),y=e=="Array"&&d.entries||p;return y&&(u=Z0(y.call(new t)))!==Object.prototype&&u.next&&(Z0(u)!==qF&&(Vl?Vl(u,qF):ae(u[Sf])||_n(u,Sf,Fht)),Y0(u,c,!0)),kht&&o=="values"&&p&&p.name!=="values"&&(Bht?sa(d,"name","values"):(f=!0,v=function(){return fe(p,this)})),o&&(s={values:l("values"),keys:l("keys"),entries:l("entries")},a||$r({target:e,proto:!0,forced:ew||f},s)),d[Sf]!==v&&_n(d,Sf,v,{name:o}),Ul[e]=v,s},Tht=ln.set,_ht=ln.getterFor("Array Iterator"),Yf=sM(Array,"Array",function(t,e){Tht(this,{type:"Array Iterator",target:_a(t),index:0,kind:e})},function(){var t=_ht(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):r=="keys"?{value:n,done:!1}:r=="values"?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}},"values");Ul.Arguments=Ul.Array,pd("keys"),pd("values"),pd("entries");var Pht=UR.charAt,jht=ln.set,Nht=ln.getterFor("String Iterator");sM(String,"String",function(t){jht(this,{type:"String Iterator",string:bn(t),index:0})},function(){var t,e=Nht(this),r=e.string,n=e.index;return n>=r.length?{value:void 0,done:!0}:(t=Pht(r,n),e.index+=t.length,{value:t,done:!1})});var lM=function(t,e,r){var n=I8(e);n in t?di.f(t,n,dm(0,r)):t[n]=r},Iht=nt.Array,Lht=Math.max,KF=$0.f,YF=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Rht={f:function(t){return YF&&xo(t)=="Window"?function(e){try{return KF(e)}catch(r){return function(n,o,i){for(var a=rh(n),u=op(void 0,a),s=op(a,a),l=Iht(Lht(s-u,0)),c=0;u<s;u++,c++)lM(l,c,n[u]);return l.length=c,l}(YF)}}(t):KF(_a(t))}},XF=de(function(){if(typeof ArrayBuffer=="function"){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}),fg=Object.isExtensible,du=de(function(){fg(1)})||XF?function(t){return!!we(t)&&(!XF||xo(t)!="ArrayBuffer")&&(!fg||fg(t))}:fg,Mht=!de(function(){return Object.isExtensible(Object.preventExtensions({}))}),J8=F8(function(t){var e=di.f,r=!1,n=N8("meta"),o=0,i=function(u){e(u,n,{value:{objectID:"O"+o++,weakData:{}}})},a=t.exports={enable:function(){a.enable=function(){},r=!0;var u=$0.f,s=xt([].splice),l={};l[n]=1,u(l).length&&($0.f=function(c){for(var f=u(c),d=0,p=f.length;d<p;d++)if(f[d]===n){s(f,d,1);break}return f},$r({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Rht.f}))},fastKey:function(u,s){if(!we(u))return typeof u=="symbol"?u:(typeof u=="string"?"S":"P")+u;if(!qe(u,n)){if(!du(u))return"F";if(!s)return"E";i(u)}return u[n].objectID},getWeakData:function(u,s){if(!qe(u,n)){if(!du(u))return!0;if(!s)return!1;i(u)}return u[n].weakData},onFreeze:function(u){return Mht&&r&&du(u)&&!qe(u,n)&&i(u),u}};gm[n]=!0}),dg=J8.getWeakData,zht=ln.set,$ht=ln.getterFor,Hht=V8.find,Vht=V8.findIndex,Uht=xt([].splice),Wht=0,pg=function(t){return t.frozen||(t.frozen=new cM)},cM=function(){this.entries=[]},rw=function(t,e){return Hht(t.entries,function(r){return r[0]===e})};cM.prototype={get:function(t){var e=rw(this,t);if(e)return e[1]},has:function(t){return!!rw(this,t)},set:function(t,e){var r=rw(this,t);r?r[1]=e:this.entries.push([t,e])},delete:function(t){var e=Vht(this.entries,function(r){return r[0]===t});return~e&&Uht(this.entries,e,1),!!~e}};var Af,fM={getConstructor:function(t,e,r,n){var o=t(function(s,l){G8(s,i),zht(s,{type:e,id:Wht++,frozen:void 0}),l!=null&&X0(l,s[n],{that:s,AS_ENTRIES:r})}),i=o.prototype,a=$ht(e),u=function(s,l,c){var f=a(s),d=dg(cr(l),!0);return d===!0?pg(f).set(l,c):d[f.id]=c,s};return K0(i,{delete:function(s){var l=a(this);if(!we(s))return!1;var c=dg(s);return c===!0?pg(l).delete(s):c&&qe(c,l.id)&&delete c[l.id]},has:function(s){var l=a(this);if(!we(s))return!1;var c=dg(s);return c===!0?pg(l).has(s):c&&qe(c,l.id)}}),K0(i,r?{get:function(s){var l=a(this);if(we(s)){var c=dg(s);return c===!0?pg(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}},hg=ln.enforce,Ght=!nt.ActiveXObject&&"ActiveXObject"in nt,dM=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},qht=function(t,e,r){var n=t.indexOf("Map")!==-1,o=t.indexOf("Weak")!==-1,i=n?"set":"add",a=nt[t],u=a&&a.prototype,s=a,l={},c=function(g){var m=xt(u[g]);_n(u,g,g=="add"?function(h){return m(this,h===0?0:h),this}:g=="delete"?function(h){return!(o&&!we(h))&&m(this,h===0?0:h)}:g=="get"?function(h){return o&&!we(h)?void 0:m(this,h===0?0:h)}:g=="has"?function(h){return!(o&&!we(h))&&m(this,h===0?0:h)}:function(h,b){return m(this,h===0?0:h,b),this})};if(H0(t,!ae(a)||!(o||u.forEach&&!de(function(){new a().entries().next()}))))s=r.getConstructor(e,t,n,i),J8.enable();else if(H0(t,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=de(function(){f.has(1)}),v=KR(function(g){new a(g)}),y=!o&&de(function(){for(var g=new a,m=5;m--;)g[i](m,m);return!g.has(-0)});v||((s=e(function(g,m){G8(g,u);var h=function(b,w,D){var x,C;return Vl&&ae(x=w.constructor)&&x!==D&&we(C=x.prototype)&&C!==D.prototype&&Vl(b,C),b}(new a,g,s);return m!=null&&X0(m,h[i],{that:h,AS_ENTRIES:n}),h})).prototype=u,u.constructor=s),(p||y)&&(c("delete"),c("has"),n&&c("get")),(y||d)&&c(i),o&&u.clear&&delete u.clear}return l[t]=s,$r({global:!0,forced:s!=a},l),Y0(s,t),o||r.setStrong(s,t,n),s}("WeakMap",dM,fM);if(FR&&Ght){Af=fM.getConstructor(dM,"WeakMap",!0),J8.enable();var Of=qht.prototype,ZF=xt(Of.delete),gg=xt(Of.has),JF=xt(Of.get),QF=xt(Of.set);K0(Of,{delete:function(t){if(we(t)&&!du(t)){var e=hg(this);return e.frozen||(e.frozen=new Af),ZF(this,t)||e.frozen.delete(t)}return ZF(this,t)},has:function(t){if(we(t)&&!du(t)){var e=hg(this);return e.frozen||(e.frozen=new Af),gg(this,t)||e.frozen.has(t)}return gg(this,t)},get:function(t){if(we(t)&&!du(t)){var e=hg(this);return e.frozen||(e.frozen=new Af),gg(this,t)?JF(this,t):e.frozen.get(t)}return JF(this,t)},set:function(t,e){if(we(t)&&!du(t)){var r=hg(this);r.frozen||(r.frozen=new Af),gg(this,t)?QF(this,t,e):r.frozen.set(t,e)}else QF(this,t,e);return this}})}var pM={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},nw=np("span").classList,tT=nw&&nw.constructor&&nw.constructor.prototype,Kht=tT===Object.prototype?void 0:tT,ow=ze("iterator"),eT=ze("toStringTag"),iw=Yf.values,hM=function(t,e){if(t){if(t[ow]!==iw)try{sa(t,ow,iw)}catch(n){t[ow]=iw}if(t[eT]||sa(t,eT,e),pM[e]){for(var r in Yf)if(t[r]!==Yf[r])try{sa(t,r,Yf[r])}catch(n){t[r]=Yf[r]}}}};for(var aw in pM)hM(nt[aw]&&nt[aw].prototype,aw);hM(Kht,"DOMTokenList");var Yht=hc.EXISTS,Xht=di.f,gM=Function.prototype,Zht=xt(gM.toString),vM=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Jht=xt(vM.exec);Fo&&!Yht&&Xht(gM,"name",{configurable:!0,get:function(){try{return Jht(vM,Zht(this))[1]}catch(t){return""}}});var Qht=ze("species"),tgt=ep>=51||!de(function(){var t=[];return(t.constructor={})[Qht]=function(){return{foo:1}},t.slice(Boolean).foo!==1}),egt=ze("species"),uw=nt.Array,rgt=Math.max;function yM(t){return t.getMenuConfig("uploadVideo")}$r({target:"Array",proto:!0,forced:!tgt},{slice:function(t,e){var r,n,o,i=_a(this),a=rh(i),u=op(t,a),s=op(e===void 0?a:e,a);if(U0(i)&&(r=i.constructor,(H8(r)&&(r===uw||U0(r.prototype))||we(r)&&(r=r[egt])===null)&&(r=void 0),r===uw||r===void 0))return YR(i,u,s);for(n=new(r===void 0?uw:r)(rgt(s-u,0)),o=0;u<s;u++,o++)u in i&&lM(n,o,i[u]);return n.length=o,n}});var rT=new WeakMap;function ngt(t,e){return cm(this,void 0,void 0,function(){var r,n,o,i;return fm(this,function(a){switch(a.label){case 0:return r=function(u){var s=rT.get(u);if(s!=null)return s;var l=yM(u),c=l.onSuccess,f=l.onProgress,d=l.onFailed,p=l.customInsert,v=l.onError;return s=$N(I0(I0({},l),{onProgress:function(y){u.showProgressBar(y),f&&f(y)},onSuccess:function(y,g){if(p)return p(g,function(O,T){return up(u,O,T)}),void c(y,g);var m=g.errno,h=m===void 0?1:m,b=g.data,w=b===void 0?{}:b;if(h===0){var D=w.url,x=D===void 0?"":D,C=w.poster;up(u,x,C===void 0?"":C),c(y,g)}else d(y,g)},onError:function(y,g,m){v(y,g,m)}})),rT.set(u,s),s}(t),n=e.name,o=e.type,i=e.size,r.addFile({name:n,type:o,size:i,data:e}),[4,r.upload()];case 1:return a.sent(),[2]}})})}var ogt=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,r){var n=this.getMenuConfig(e),o=n.allowedFileTypes,i=o===void 0?[]:o,a=n.customBrowseAndUpload;if(a)a(function(c,f){return up(e,c,f)});else{var u="";i.length>0&&(u='accept="'+i.join(", ")+'"');var s=B("body"),l=B('<input type="file" '+u+" multiple/>");l.hide(),s.append(l),l.click(),l.on("change",function(){var c=l[0].files;(function(f,d){var p,v;cm(this,void 0,void 0,function(){var y,g,m,h,b,w;return fm(this,function(D){switch(D.label){case 0:if(d==null)return[2];y=Array.prototype.slice.call(d),g=yM(f).customUpload,D.label=1;case 1:D.trys.push([1,9,10,15]),m=edt(y),D.label=2;case 2:return[4,m.next()];case 3:return(h=D.sent()).done?[3,8]:(b=h.value,g?[4,g(b,function(x,C){return up(f,x,C)})]:[3,5]);case 4:return D.sent(),[3,7];case 5:return[4,ngt(f,b)];case 6:D.sent(),D.label=7;case 7:return[3,2];case 8:return[3,15];case 9:return w=D.sent(),p={error:w},[3,15];case 10:return D.trys.push([10,,13,14]),h&&!h.done&&(v=m.return)?[4,v.call(m)]:[3,12];case 11:D.sent(),D.label=12;case 12:return[3,14];case 13:if(p)throw p.error;return[7];case 14:return[7];case 15:return[2]}})})})(e,c)})}},t.prototype.isDisabled=function(e){var r=e.selection;return r==null||!L.isCollapsed(r)||!!A.getSelectedElems(e).some(function(n){var o=A.getNodeType(n);return o==="pre"||o==="list-item"||!!e.isVoid(n)})},t.prototype.getMenuConfig=function(e){return e.getMenuConfig("uploadVideo")},t}(),igt=hc.PROPER,r3=RegExp.prototype,mM=r3.toString,agt=xt($R),ugt=de(function(){return mM.call({source:"a",flags:"b"})!="/a/b"}),sgt=igt&&mM.name!="toString";function sw(){return WR("w-e-insert-video")}(ugt||sgt)&&_n(RegExp.prototype,"toString",function(){var t=cr(this),e=bn(t.source),r=t.flags;return"/"+e+"/"+bn(r===void 0&&tp(r3,t)&&!("flags"in r3)?agt(t):r)},{unsafe:!0});var lgt=function(){function t(){this.title=tt("videoModule.editSize"),this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.widthInputId=sw(),this.heightInputId=sw(),this.buttonId=sw()}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,r){},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 r=this,n=r.widthInputId,o=r.heightInputId,i=r.buttonId,a=_u(rn(tt("videoModule.width"),n,"auto"),2),u=a[0],s=B(a[1]),l=_u(rn(tt("videoModule.height"),o,"auto"),2),c=l[0],f=B(l[1]),d=_u(oc(i,tt("videoModule.ok")),1)[0];if(this.$content==null){var p=B("<div></div>");p.on("click","#"+i,function(w){w.preventDefault();var D=p.find("#"+n).val().trim(),x=p.find("#"+o).val().trim(),C=parseInt(D),O=parseInt(x),T=C?C.toString():"auto",R=O?O.toString():"auto";e.restoreSelection(),N.setNodes(e,{width:T,height:R},{match:function(H){return A.checkNodeType(H,"video")}}),e.hidePanelOrModal()}),this.$content=p}var v=this.$content;v.empty(),v.append(u),v.append(c),v.append(d);var y=this.getSelectedVideoNode(e);if(y==null)return v[0];var g=y.width,m=g===void 0?"auto":g,h=y.height,b=h===void 0?"auto":h;return s.val(m),f.val(b),setTimeout(function(){s.focus()}),v[0]},t}(),cgt={renderElems:[opt],elemsToHtml:[ipt],preParseHtml:[lpt],parseElemsHtml:[ypt],menus:[{key:"insertVideo",factory:function(){return new bht},config:{onInsertedVideo:function(t){},checkVideo:function(t,e){return!0},parseVideoSrc:function(t){return t}}},{key:"uploadVideo",factory:function(){return new ogt},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,r){console.error("'"+t.name+" upload error",e,r)}}},{key:"editVideoSize",factory:function(){return new lgt}}],editorPlugin:function(t){var e=t.isVoid,r=t.normalizeNode,n=t;return n.isVoid=function(o){return o.type==="video"||e(o)},n.normalizeNode=function(o){var i=_u(o,2),a=i[0],u=i[1];return A.getNodeType(a)==="video"&&A.isLastNode(n,a)&&N.insertNodes(n,A.genEmptyParagraph(),{at:[u[0]+1]}),r([a,u])},n}};qr("en",{uploadImgModule:{uploadImage:"Upload Image",uploadError:"{{fileName}} upload error"}}),qr("zh-CN",{uploadImgModule:{uploadImage:"上传图片",uploadError:"{{fileName}} 上传出错"}});var nT=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Q8(t){var e={exports:{}};return t(e,e.exports),e.exports}var Pi,tv,vg=function(t){return t&&t.Math==Math&&t},et=vg(typeof globalThis=="object"&&globalThis)||vg(typeof window=="object"&&window)||vg(typeof self=="object"&&self)||vg(typeof nT=="object"&&nT)||function(){return this}()||Function("return this")(),ve=function(t){try{return!!t()}catch(e){return!0}},To=!ve(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),kf=Function.prototype.call,ne=kf.bind?kf.bind(kf):function(){return kf.apply(kf,arguments)},oT={}.propertyIsEnumerable,iT=Object.getOwnPropertyDescriptor,fgt={f:iT&&!oT.call({1:2},1)?function(t){var e=iT(this,t);return!!e&&e.enumerable}:oT},mm=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},bM=Function.prototype,n3=bM.bind,o3=bM.call,dgt=n3&&n3.bind(o3),_t=n3?function(t){return t&&dgt(o3,t)}:function(t){return t&&function(){return o3.apply(t,arguments)}},pgt=_t({}.toString),hgt=_t("".slice),Xn=function(t){return hgt(pgt(t),8,-1)},lw=et.Object,ggt=_t("".split),tC=ve(function(){return!lw("z").propertyIsEnumerable(0)})?function(t){return Xn(t)=="String"?ggt(t,""):lw(t)}:lw,vgt=et.TypeError,sp=function(t){if(t==null)throw vgt("Can't call method on "+t);return t},Pa=function(t){return tC(sp(t))},le=function(t){return typeof t=="function"},he=function(t){return typeof t=="object"?t!==null:le(t)},ygt=function(t){return le(t)?t:void 0},Qu=function(t,e){return arguments.length<2?ygt(et[t]):et[t]&&et[t][e]},lp=_t({}.isPrototypeOf),yl=Qu("navigator","userAgent")||"",aT=et.process,uT=et.Deno,sT=aT&&aT.versions||uT&&uT.version,lT=sT&&sT.v8;lT&&(tv=(Pi=lT.split("."))[0]>0&&Pi[0]<4?1:+(Pi[0]+Pi[1])),!tv&&yl&&(!(Pi=yl.match(/Edge\/(\d+)/))||Pi[1]>=74)&&(Pi=yl.match(/Chrome\/(\d+)/))&&(tv=+Pi[1]);var cp=tv,i3=!!Object.getOwnPropertySymbols&&!ve(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&cp&&cp<41}),eC=i3&&!Symbol.sham&&typeof Symbol.iterator=="symbol",mgt=et.Object,cw=eC?function(t){return typeof t=="symbol"}:function(t){var e=Qu("Symbol");return le(e)&&lp(e.prototype,mgt(t))},bgt=et.String,J0=function(t){try{return bgt(t)}catch(e){return"Object"}},wgt=et.TypeError,Aa=function(t){if(le(t))return t;throw wgt(J0(t)+" is not a function")},fp=function(t,e){var r=t[e];return r==null?void 0:Aa(r)},Egt=et.TypeError,Dgt=Object.defineProperty,rC=function(t,e){try{Dgt(et,t,{value:e,configurable:!0,writable:!0})}catch(r){et[t]=e}return e},ca=et["__core-js_shared__"]||rC("__core-js_shared__",{}),nC=Q8(function(t){(t.exports=function(e,r){return ca[e]||(ca[e]=r!==void 0?r:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),Cgt=et.Object,oC=function(t){return Cgt(sp(t))},xgt=_t({}.hasOwnProperty),Ke=Object.hasOwn||function(t,e){return xgt(oC(t),e)},Sgt=0,Agt=Math.random(),Ogt=_t(1 .toString),iC=function(t){return"Symbol("+(t===void 0?"":t)+")_"+Ogt(++Sgt+Agt,36)},Bf=nC("wks"),Nu=et.Symbol,cT=Nu&&Nu.for,kgt=eC?Nu:Nu&&Nu.withoutSetter||iC,$e=function(t){if(!Ke(Bf,t)||!i3&&typeof Bf[t]!="string"){var e="Symbol."+t;i3&&Ke(Nu,t)?Bf[t]=Nu[t]:Bf[t]=eC&&cT?cT(e):kgt(e)}return Bf[t]},Bgt=et.TypeError,Fgt=$e("toPrimitive"),aC=function(t){var e=function(r,n){if(!he(r)||cw(r))return r;var o,i=fp(r,Fgt);if(i){if(o=ne(i,r,n),!he(o)||cw(o))return o;throw Bgt("Can't convert object to primitive value")}return function(a,u){var s,l;if(le(s=a.toString)&&!he(l=ne(s,a))||le(s=a.valueOf)&&!he(l=ne(s,a)))return l;throw Egt("Can't convert object to primitive value")}(r)}(t,"string");return cw(e)?e:e+""},a3=et.document,Tgt=he(a3)&&he(a3.createElement),dp=function(t){return Tgt?a3.createElement(t):{}},wM=!To&&!ve(function(){return Object.defineProperty(dp("div"),"a",{get:function(){return 7}}).a!=7}),fT=Object.getOwnPropertyDescriptor,uC={f:To?fT:function(t,e){if(t=Pa(t),e=aC(e),wM)try{return fT(t,e)}catch(r){}if(Ke(t,e))return mm(!ne(fgt.f,t,e),t[e])}},_gt=et.String,Pgt=et.TypeError,fr=function(t){if(he(t))return t;throw Pgt(_gt(t)+" is not an object")},jgt=et.TypeError,dT=Object.defineProperty,pi={f:To?dT:function(t,e,r){if(fr(t),e=aC(e),fr(r),wM)try{return dT(t,e,r)}catch(n){}if("get"in r||"set"in r)throw jgt("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},So=To?function(t,e,r){return pi.f(t,e,mm(1,r))}:function(t,e,r){return t[e]=r,t},Ngt=_t(Function.toString);le(ca.inspectSource)||(ca.inspectSource=function(t){return Ngt(t)});var Q0,yd,ty,bm=ca.inspectSource,pT=et.WeakMap,EM=le(pT)&&/native code/.test(bm(pT)),hT=nC("keys"),sC=function(t){return hT[t]||(hT[t]=iC(t))},wm={},u3=et.TypeError,Igt=et.WeakMap;if(EM||ca.state){var Xa=ca.state||(ca.state=new Igt),Lgt=_t(Xa.get),gT=_t(Xa.has),Rgt=_t(Xa.set);Q0=function(t,e){if(gT(Xa,t))throw new u3("Object already initialized");return e.facade=t,Rgt(Xa,t,e),e},yd=function(t){return Lgt(Xa,t)||{}},ty=function(t){return gT(Xa,t)}}else{var $s=sC("state");wm[$s]=!0,Q0=function(t,e){if(Ke(t,$s))throw new u3("Object already initialized");return e.facade=t,So(t,$s,e),e},yd=function(t){return Ke(t,$s)?t[$s]:{}},ty=function(t){return Ke(t,$s)}}var cn={set:Q0,get:yd,has:ty,enforce:function(t){return ty(t)?yd(t):Q0(t,{})},getterFor:function(t){return function(e){var r;if(!he(e)||(r=yd(e)).type!==t)throw u3("Incompatible receiver, "+t+" required");return r}}},DM=Function.prototype,Mgt=To&&Object.getOwnPropertyDescriptor,fw=Ke(DM,"name"),oh={EXISTS:fw,PROPER:fw&&function(){}.name==="something",CONFIGURABLE:fw&&(!To||To&&Mgt(DM,"name").configurable)},Pn=Q8(function(t){var e=oh.CONFIGURABLE,r=cn.get,n=cn.enforce,o=String(String).split("String");(t.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet,p=s&&s.name!==void 0?s.name:a;le(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Ke(u,"name")||e&&u.name!==p)&&So(u,"name",p),(l=n(u)).source||(l.source=o.join(typeof p=="string"?p:""))),i!==et?(c?!d&&i[a]&&(f=!0):delete i[a],f?i[a]=u:So(i,a,u)):f?i[a]=u:rC(a,u)})(Function.prototype,"toString",function(){return le(this)&&r(this).source||bm(this)})}),zgt=Math.ceil,$gt=Math.floor,lC=function(t){var e=+t;return e!=e||e===0?0:(e>0?$gt:zgt)(e)},Hgt=Math.max,Vgt=Math.min,pp=function(t,e){var r=lC(t);return r<0?Hgt(r+e,0):Vgt(r,e)},Ugt=Math.min,CM=function(t){return t>0?Ugt(lC(t),9007199254740991):0},ih=function(t){return CM(t.length)},Wgt=function(t){return function(e,r,n){var o,i=Pa(e),a=ih(i),u=pp(n,a);if(t&&r!=r){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===r)return t||u||0;return!t&&-1}},Ggt=Wgt(!1),vT=_t([].push),xM=function(t,e){var r,n=Pa(t),o=0,i=[];for(r in n)!Ke(wm,r)&&Ke(n,r)&&vT(i,r);for(;e.length>o;)Ke(n,r=e[o++])&&(~Ggt(i,r)||vT(i,r));return i},ey=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],qgt=ey.concat("length","prototype"),ry={f:Object.getOwnPropertyNames||function(t){return xM(t,qgt)}},Kgt={f:Object.getOwnPropertySymbols},Ygt=_t([].concat),Xgt=Qu("Reflect","ownKeys")||function(t){var e=ry.f(fr(t)),r=Kgt.f;return r?Ygt(e,r(t)):e},Zgt=function(t,e){for(var r=Xgt(e),n=pi.f,o=uC.f,i=0;i<r.length;i++){var a=r[i];Ke(t,a)||n(t,a,o(e,a))}},Jgt=/#|\.prototype\./,ah=function(t,e){var r=tvt[Qgt(t)];return r==rvt||r!=evt&&(le(e)?ve(e):!!e)},Qgt=ah.normalize=function(t){return String(t).replace(Jgt,".").toLowerCase()},tvt=ah.data={},evt=ah.NATIVE="N",rvt=ah.POLYFILL="P",ny=ah,nvt=uC.f,Eo=function(t,e){var r,n,o,i,a,u=t.target,s=t.global,l=t.stat;if(r=s?et:l?et[u]||rC(u,{}):(et[u]||{}).prototype)for(n in e){if(i=e[n],o=t.noTargetGet?(a=nvt(r,n))&&a.value:r[n],!ny(s?n:u+(l?".":"#")+n,t.forced)&&o!==void 0){if(typeof i==typeof o)continue;Zgt(i,o)}(t.sham||o&&o.sham)&&So(i,"sham",!0),Pn(r,n,i,t)}},oy=Array.isArray||function(t){return Xn(t)=="Array"},SM={};SM[$e("toStringTag")]="z";var cC=String(SM)==="[object z]",ovt=$e("toStringTag"),ivt=et.Object,avt=Xn(function(){return arguments}())=="Arguments",Em=cC?Xn:function(t){var e,r,n;return t===void 0?"Undefined":t===null?"Null":typeof(r=function(o,i){try{return o[i]}catch(a){}}(e=ivt(t),ovt))=="string"?r:avt?Xn(e):(n=Xn(e))=="Object"&&le(e.callee)?"Arguments":n},AM=function(){},uvt=[],OM=Qu("Reflect","construct"),fC=/^\s*(?:class|function)\b/,svt=_t(fC.exec),lvt=!fC.exec(AM),Ff=function(t){if(!le(t))return!1;try{return OM(AM,uvt,t),!0}catch(e){return!1}},dC=!OM||ve(function(){var t;return Ff(Ff.call)||!Ff(Object)||!Ff(function(){t=!0})||t})?function(t){if(!le(t))return!1;switch(Em(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return lvt||!!svt(fC,bm(t))}:Ff,kM=function(t,e,r){var n=aC(e);n in t?pi.f(t,n,mm(0,r)):t[n]=r},cvt=$e("species"),BM=_t([].slice),fvt=cp>=51||!ve(function(){var t=[];return(t.constructor={})[cvt]=function(){return{foo:1}},t.slice(Boolean).foo!==1}),dvt=$e("species"),dw=et.Array,pvt=Math.max;Eo({target:"Array",proto:!0,forced:!fvt},{slice:function(t,e){var r,n,o,i=Pa(this),a=ih(i),u=pp(t,a),s=pp(e===void 0?a:e,a);if(oy(i)&&(r=i.constructor,(dC(r)&&(r===dw||oy(r.prototype))||he(r)&&(r=r[dvt])===null)&&(r=void 0),r===dw||r===void 0))return BM(i,u,s);for(n=new(r===void 0?dw:r)(pvt(s-u,0)),o=0;u<s;u++,o++)u in i&&kM(n,o,i[u]);return n.length=o,n}});var hvt=cC?{}.toString:function(){return"[object "+Em(this)+"]"};cC||Pn(Object.prototype,"toString",hvt,{unsafe:!0});var yg,gvt=et.String,fa=function(t){if(Em(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return gvt(t)},FM=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},pC=et.RegExp,s3=ve(function(){var t=pC("a","y");return t.lastIndex=2,t.exec("abcd")!=null});s3||ve(function(){return!pC("a","y").sticky});var TM={BROKEN_CARET:s3||ve(function(){var t=pC("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),UNSUPPORTED_Y:s3},vvt=Object.keys||function(t){return xM(t,ey)},yvt=To?Object.defineProperties:function(t,e){fr(t);for(var r,n=Pa(e),o=vvt(e),i=o.length,a=0;i>a;)pi.f(t,r=o[a++],n[r]);return t},l3=Qu("document","documentElement"),_M=sC("IE_PROTO"),pw=function(){},PM=function(t){return"<script>"+t+"<\/script>"},yT=function(t){t.write(PM("")),t.close();var e=t.parentWindow.Object;return t=null,e},ev=function(){try{yg=new ActiveXObject("htmlfile")}catch(n){}var t,e;ev=typeof document!="undefined"?document.domain&&yg?yT(yg):((e=dp("iframe")).style.display="none",l3.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(PM("document.F=Object")),t.close(),t.F):yT(yg);for(var r=ey.length;r--;)delete ev.prototype[ey[r]];return ev()};wm[_M]=!0;var mT,hw,hC=Object.create||function(t,e){var r;return t!==null?(pw.prototype=fr(t),r=new pw,pw.prototype=null,r[_M]=t):r=ev(),e===void 0?r:yvt(r,e)},mvt=et.RegExp,bvt=ve(function(){var t=mvt(".","s");return!(t.dotAll&&t.exec(`
`)&&t.flags==="s")}),wvt=et.RegExp,Evt=ve(function(){var t=wvt("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),Dvt=cn.get,Cvt=nC("native-string-replace",String.prototype.replace),iy=RegExp.prototype.exec,c3=iy,xvt=_t("".charAt),Svt=_t("".indexOf),Avt=_t("".replace),gw=_t("".slice),vw=(hw=/b*/g,ne(iy,mT=/a/,"a"),ne(iy,hw,"a"),mT.lastIndex!==0||hw.lastIndex!==0),bT=TM.BROKEN_CARET,yw=/()??/.exec("")[1]!==void 0;(vw||yw||bT||bvt||Evt)&&(c3=function(t){var e,r,n,o,i,a,u,s=this,l=Dvt(s),c=fa(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=ne(c3,f,c),s.lastIndex=f.lastIndex,e;var d=l.groups,p=bT&&s.sticky,v=ne(FM,s),y=s.source,g=0,m=c;if(p&&(v=Avt(v,"y",""),Svt(v,"g")===-1&&(v+="g"),m=gw(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&xvt(c,s.lastIndex-1)!==`
`)&&(y="(?: "+y+")",m=" "+m,g++),r=new RegExp("^(?:"+y+")",v)),yw&&(r=new RegExp("^"+y+"$(?!\\s)",v)),vw&&(n=s.lastIndex),o=ne(iy,p?r:s,m),p?o?(o.input=gw(o.input,g),o[0]=gw(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:vw&&o&&(s.lastIndex=s.global?o.index+o[0].length:n),yw&&o&&o.length>1&&ne(Cvt,o[0],r,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&d)for(o.groups=a=hC(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var hp=c3;Eo({target:"RegExp",proto:!0,forced:/./.exec!==hp},{exec:hp});var gC=Function.prototype,wT=gC.apply,Ovt=gC.bind,ET=gC.call,jM=typeof Reflect=="object"&&Reflect.apply||(Ovt?ET.bind(wT):function(){return ET.apply(wT,arguments)}),kvt=$e("species"),mw=RegExp.prototype,Bvt=$e("match"),Fvt=et.TypeError,Tvt=$e("species"),NM=function(t,e){var r,n=fr(t).constructor;return n===void 0||(r=fr(n)[Tvt])==null?e:function(o){if(dC(o))return o;throw Fvt(J0(o)+" is not a constructor")}(r)},_vt=_t("".charAt),DT=_t("".charCodeAt),Pvt=_t("".slice),jvt=function(t){return function(e,r){var n,o,i=fa(sp(e)),a=lC(r),u=i.length;return a<0||a>=u?t?"":void 0:(n=DT(i,a))<55296||n>56319||a+1===u||(o=DT(i,a+1))<56320||o>57343?t?_vt(i,a):n:t?Pvt(i,a,a+2):o-56320+(n-55296<<10)+65536}},IM={charAt:jvt(!0)},Nvt=IM.charAt,Ivt=function(t,e,r){return e+(r?Nvt(t,e).length:1)},Lvt=et.Array,Rvt=Math.max,f3=function(t,e,r){for(var n=ih(t),o=pp(e,n),i=pp(r===void 0?n:r,n),a=Lvt(Rvt(i-o,0)),u=0;o<i;o++,u++)kM(a,u,t[o]);return a.length=u,a},Mvt=et.TypeError,CT=function(t,e){var r=t.exec;if(le(r)){var n=ne(r,t,e);return n!==null&&fr(n),n}if(Xn(t)==="RegExp")return ne(hp,t,e);throw Mvt("RegExp#exec called on incompatible receiver")},Hs=TM.UNSUPPORTED_Y,zvt=Math.min,LM=[].push,$vt=_t(/./.exec),Vs=_t(LM),Tf=_t("".slice);(function(t,e,r,n){var o=$e(t),i=!ve(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),a=i&&!ve(function(){var l=!1,c=/a/;return(c={}).constructor={},c.constructor[kvt]=function(){return c},c.flags="",c[o]=/./[o],c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||r){var u=_t(/./[o]),s=function(l,c,f){var d;return d="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(p,v){var y,g,m=fa(sp(this)),h=v===void 0?4294967295:v>>>0;if(h===0)return[];if(p===void 0)return[m];if(!he(y=p)||!((g=y[Bvt])!==void 0?g:Xn(y)=="RegExp"))return ne(c,m,p,h);for(var b,w,D,x=[],C=(p.ignoreCase?"i":"")+(p.multiline?"m":"")+(p.unicode?"u":"")+(p.sticky?"y":""),O=0,T=new RegExp(p.source,C+"g");(b=ne(hp,T,m))&&!((w=T.lastIndex)>O&&(Vs(x,Tf(m,O,b.index)),b.length>1&&b.index<m.length&&jM(LM,x,f3(b,1)),D=b[0].length,O=w,x.length>=h));)T.lastIndex===b.index&&T.lastIndex++;return O===m.length?!D&&$vt(T,"")||Vs(x,""):Vs(x,Tf(m,O)),x.length>h?f3(x,0,h):x}:"0".split(void 0,0).length?function(p,v){return p===void 0&&v===0?[]:ne(c,this,p,v)}:c,[function(p,v){var y=sp(this),g=p==null?void 0:fp(p,l);return g?ne(g,p,y,v):ne(d,fa(y),p,v)},function(p,v){var y=fr(this),g=fa(p),m=f(d,y,g,v,d!==c);if(m.done)return m.value;var h=NM(y,RegExp),b=y.unicode,w=(y.ignoreCase?"i":"")+(y.multiline?"m":"")+(y.unicode?"u":"")+(Hs?"g":"y"),D=new h(Hs?"^(?:"+y.source+")":y,w),x=v===void 0?4294967295:v>>>0;if(x===0)return[];if(g.length===0)return CT(D,g)===null?[g]:[];for(var C=0,O=0,T=[];O<g.length;){D.lastIndex=Hs?0:O;var R,H=CT(D,Hs?Tf(g,O):g);if(H===null||(R=zvt(CM(D.lastIndex+(Hs?O:0)),g.length))===C)O=Ivt(g,O,b);else{if(Vs(T,Tf(g,C,O)),T.length===x)return T;for(var M=1;M<=H.length-1;M++)if(Vs(T,H[M]),T.length===x)return T;O=C=R}}return Vs(T,Tf(g,C)),T}]}(o,""[t],function(l,c,f,d,p){var v=_t(l),y=c.exec;return y===hp||y===mw.exec?i&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:v(f,c,d)}:{done:!1}});Pn(String.prototype,t,s[0]),Pn(mw,o,s[1])}n&&So(mw[o],"sham",!0)})("split",0,!!ve(function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var r="ab".split(t);return r.length!==2||r[0]!=="a"||r[1]!=="b"}),Hs);/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var ay=function(){return ay=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},ay.apply(this,arguments)};function vC(t,e,r,n){return new(r||(r=Promise))(function(o,i){function a(l){try{s(n.next(l))}catch(c){i(c)}}function u(l){try{s(n.throw(l))}catch(c){i(c)}}function s(l){var c;l.done?o(l.value):(c=l.value,c instanceof r?c:new r(function(f){f(c)})).then(a,u)}s((n=n.apply(t,[])).next())})}function yC(t,e){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function u(s){return function(l){return function(c){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||c[0]!==6&&c[0]!==2)){a=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){a.label=c[1];break}if(c[0]===6&&a.label<o[1]){a.label=o[1],o=c;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(c);break}o[2]&&a.ops.pop(),a.trys.pop();continue}c=e.call(t,a)}catch(f){c=[6,f],n=0}finally{r=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([s,l])}}}function Hvt(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,r=t[Symbol.asyncIterator];return r?r.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={},n("next"),n("throw"),n("return"),e[Symbol.asyncIterator]=function(){return this},e);function n(o){e[o]=t[o]&&function(i){return new Promise(function(a,u){(function(s,l,c,f){Promise.resolve(f).then(function(d){s({value:d,done:c})},l)})(a,u,(i=t[o](i)).done,i.value)})}}}var d3=$e("unscopables"),p3=Array.prototype;p3[d3]==null&&pi.f(p3,d3,{configurable:!0,value:hC(null)});var Iu,xT,ST,bw=function(t){p3[d3][t]=!0},Wl={},Vvt=!ve(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),AT=sC("IE_PROTO"),h3=et.Object,Uvt=h3.prototype,uy=Vvt?h3.getPrototypeOf:function(t){var e=oC(t);if(Ke(e,AT))return e[AT];var r=e.constructor;return le(r)&&e instanceof r?r.prototype:e instanceof h3?Uvt:null},g3=$e("iterator"),RM=!1;[].keys&&("next"in(ST=[].keys())?(xT=uy(uy(ST)))!==Object.prototype&&(Iu=xT):RM=!0);var Wvt=Iu==null||ve(function(){var t={};return Iu[g3].call(t)!==t});Wvt&&(Iu={}),le(Iu[g3])||Pn(Iu,g3,function(){return this});var mC={IteratorPrototype:Iu,BUGGY_SAFARI_ITERATORS:RM},Gvt=pi.f,OT=$e("toStringTag"),sy=function(t,e,r){t&&!Ke(t=r?t:t.prototype,OT)&&Gvt(t,OT,{configurable:!0,value:e})},qvt=mC.IteratorPrototype,Kvt=function(){return this},Yvt=et.String,Xvt=et.TypeError,Gl=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=_t(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),e=r instanceof Array}catch(n){}return function(n,o){return fr(n),function(i){if(typeof i=="object"||le(i))return i;throw Xvt("Can't set "+Yvt(i)+" as a prototype")}(o),e?t(n,o):n.__proto__=o,n}}():void 0),Zvt=oh.PROPER,Jvt=oh.CONFIGURABLE,kT=mC.IteratorPrototype,ww=mC.BUGGY_SAFARI_ITERATORS,_f=$e("iterator"),Qvt=function(){return this},MM=function(t,e,r,n,o,i,a){(function(g,m,h,b){var w=m+" Iterator";g.prototype=hC(qvt,{next:mm(1,h)}),sy(g,w,!1),Wl[w]=Kvt})(r,e,n);var u,s,l=function(g){if(g===o&&v)return v;if(!ww&&g in d)return d[g];switch(g){case"keys":case"values":case"entries":return function(){return new r(this,g)}}return function(){return new r(this)}},c=e+" Iterator",f=!1,d=t.prototype,p=d[_f]||d["@@iterator"]||o&&d[o],v=!ww&&p||l(o),y=e=="Array"&&d.entries||p;return y&&(u=uy(y.call(new t)))!==Object.prototype&&u.next&&(uy(u)!==kT&&(Gl?Gl(u,kT):le(u[_f])||Pn(u,_f,Qvt)),sy(u,c,!0)),Zvt&&o=="values"&&p&&p.name!=="values"&&(Jvt?So(d,"name","values"):(f=!0,v=function(){return ne(p,this)})),o&&(s={values:l("values"),keys:l("keys"),entries:l("entries")},a||Eo({target:e,proto:!0,forced:ww||f},s)),d[_f]!==v&&Pn(d,_f,v,{name:o}),Wl[e]=v,s},t0t=cn.set,e0t=cn.getterFor("Array Iterator"),Xf=MM(Array,"Array",function(t,e){t0t(this,{type:"Array Iterator",target:Pa(t),index:0,kind:e})},function(){var t=e0t(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):r=="keys"?{value:n,done:!1}:r=="values"?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}},"values");Wl.Arguments=Wl.Array,bw("keys"),bw("values"),bw("entries");var r0t=IM.charAt,n0t=cn.set,o0t=cn.getterFor("String Iterator");MM(String,"String",function(t){n0t(this,{type:"String Iterator",string:fa(t),index:0})},function(){var t,e=o0t(this),r=e.string,n=e.index;return n>=r.length?{value:void 0,done:!0}:(t=r0t(r,n),e.index+=t.length,{value:t,done:!1})});var ly=function(t,e,r){for(var n in e)Pn(t,n,e[n],r);return t},BT=ry.f,FT=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],i0t={f:function(t){return FT&&Xn(t)=="Window"?function(e){try{return BT(e)}catch(r){return f3(FT)}}(t):BT(Pa(t))}},TT=ve(function(){if(typeof ArrayBuffer=="function"){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}),mg=Object.isExtensible,pu=ve(function(){mg(1)})||TT?function(t){return!!he(t)&&(!TT||Xn(t)!="ArrayBuffer")&&(!mg||mg(t))}:mg,a0t=!ve(function(){return Object.isExtensible(Object.preventExtensions({}))}),bC=Q8(function(t){var e=pi.f,r=!1,n=iC("meta"),o=0,i=function(u){e(u,n,{value:{objectID:"O"+o++,weakData:{}}})},a=t.exports={enable:function(){a.enable=function(){},r=!0;var u=ry.f,s=_t([].splice),l={};l[n]=1,u(l).length&&(ry.f=function(c){for(var f=u(c),d=0,p=f.length;d<p;d++)if(f[d]===n){s(f,d,1);break}return f},Eo({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:i0t.f}))},fastKey:function(u,s){if(!he(u))return typeof u=="symbol"?u:(typeof u=="string"?"S":"P")+u;if(!Ke(u,n)){if(!pu(u))return"F";if(!s)return"E";i(u)}return u[n].objectID},getWeakData:function(u,s){if(!Ke(u,n)){if(!pu(u))return!0;if(!s)return!1;i(u)}return u[n].weakData},onFreeze:function(u){return a0t&&r&&pu(u)&&!Ke(u,n)&&i(u),u}};wm[n]=!0}),_T=_t(_t.bind),gp=function(t,e){return Aa(t),e===void 0?t:_T?_T(t,e):function(){return t.apply(e,arguments)}},u0t=$e("iterator"),s0t=Array.prototype,l0t=$e("iterator"),PT=function(t){if(t!=null)return fp(t,l0t)||fp(t,"@@iterator")||Wl[Em(t)]},c0t=et.TypeError,jT=function(t,e,r){var n,o;fr(t);try{if(!(n=fp(t,"return"))){if(e==="throw")throw r;return r}n=ne(n,t)}catch(i){o=!0,n=i}if(e==="throw")throw r;if(o)throw n;return fr(n),r},f0t=et.TypeError,rv=function(t,e){this.stopped=t,this.result=e},NT=rv.prototype,cy=function(t,e,r){var n,o,i,a,u,s,l,c,f=r&&r.that,d=!(!r||!r.AS_ENTRIES),p=!(!r||!r.IS_ITERATOR),v=!(!r||!r.INTERRUPTED),y=gp(e,f),g=function(h){return n&&jT(n,"normal",h),new rv(!0,h)},m=function(h){return d?(fr(h),v?y(h[0],h[1],g):y(h[0],h[1])):v?y(h,g):y(h)};if(p)n=t;else{if(!(o=PT(t)))throw f0t(J0(t)+" is not iterable");if((c=o)!==void 0&&(Wl.Array===c||s0t[u0t]===c)){for(i=0,a=ih(t);a>i;i++)if((u=m(t[i]))&&lp(NT,u))return u;return new rv(!1)}n=function(h,b){var w=arguments.length<2?PT(h):b;if(Aa(w))return fr(ne(w,h));throw c0t(J0(h)+" is not iterable")}(t,o)}for(s=n.next;!(l=ne(s,n)).done;){try{u=m(l.value)}catch(h){jT(n,"throw",h)}if(typeof u=="object"&&u&&lp(NT,u))return u}return new rv(!1)},d0t=et.TypeError,wC=function(t,e){if(lp(e,t))return t;throw d0t("Incorrect invocation")},zM=$e("iterator"),$M=!1;try{var p0t=0,IT={next:function(){return{done:!!p0t++}},return:function(){$M=!0}};IT[zM]=function(){return this},Array.from(IT,function(){throw 2})}catch(t){}var HM=function(t,e){if(!$M)return!1;var r=!1;try{var n={};n[zM]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch(o){}return r},h0t=$e("species"),LT=et.Array,g0t=function(t,e){return new(function(r){var n;return oy(r)&&(n=r.constructor,(dC(n)&&(n===LT||oy(n.prototype))||he(n)&&(n=n[h0t])===null)&&(n=void 0)),n===void 0?LT:n}(t))(e===0?0:e)},RT=_t([].push),Ew=function(t){var e=t==1,r=t==2,n=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var d,p,v=oC(s),y=tC(v),g=gp(l,c),m=ih(y),h=0,b=f||g0t,w=e?b(s,m):r||a?b(s,0):void 0;m>h;h++)if((u||h in y)&&(p=g(d=y[h],h,v),t))if(e)w[h]=p;else if(p)switch(t){case 3:return!0;case 5:return d;case 6:return h;case 2:RT(w,d)}else switch(t){case 4:return!1;case 7:RT(w,d)}return i?-1:n||o?o:w}},EC={forEach:Ew(0),find:Ew(5),findIndex:Ew(6)},bg=bC.getWeakData,v0t=cn.set,y0t=cn.getterFor,m0t=EC.find,b0t=EC.findIndex,w0t=_t([].splice),E0t=0,wg=function(t){return t.frozen||(t.frozen=new VM)},VM=function(){this.entries=[]},Dw=function(t,e){return m0t(t.entries,function(r){return r[0]===e})};VM.prototype={get:function(t){var e=Dw(this,t);if(e)return e[1]},has:function(t){return!!Dw(this,t)},set:function(t,e){var r=Dw(this,t);r?r[1]=e:this.entries.push([t,e])},delete:function(t){var e=b0t(this.entries,function(r){return r[0]===t});return~e&&w0t(this.entries,e,1),!!~e}};var Pf,UM={getConstructor:function(t,e,r,n){var o=t(function(s,l){wC(s,i),v0t(s,{type:e,id:E0t++,frozen:void 0}),l!=null&&cy(l,s[n],{that:s,AS_ENTRIES:r})}),i=o.prototype,a=y0t(e),u=function(s,l,c){var f=a(s),d=bg(fr(l),!0);return d===!0?wg(f).set(l,c):d[f.id]=c,s};return ly(i,{delete:function(s){var l=a(this);if(!he(s))return!1;var c=bg(s);return c===!0?wg(l).delete(s):c&&Ke(c,l.id)&&delete c[l.id]},has:function(s){var l=a(this);if(!he(s))return!1;var c=bg(s);return c===!0?wg(l).has(s):c&&Ke(c,l.id)}}),ly(i,r?{get:function(s){var l=a(this);if(he(s)){var c=bg(s);return c===!0?wg(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}},Eg=cn.enforce,D0t=!et.ActiveXObject&&"ActiveXObject"in et,WM=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},C0t=function(t,e,r){var n=t.indexOf("Map")!==-1,o=t.indexOf("Weak")!==-1,i=n?"set":"add",a=et[t],u=a&&a.prototype,s=a,l={},c=function(g){var m=_t(u[g]);Pn(u,g,g=="add"?function(h){return m(this,h===0?0:h),this}:g=="delete"?function(h){return!(o&&!he(h))&&m(this,h===0?0:h)}:g=="get"?function(h){return o&&!he(h)?void 0:m(this,h===0?0:h)}:g=="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(ny(t,!le(a)||!(o||u.forEach&&!ve(function(){new a().entries().next()}))))s=r.getConstructor(e,t,n,i),bC.enable();else if(ny(t,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=ve(function(){f.has(1)}),v=HM(function(g){new a(g)}),y=!o&&ve(function(){for(var g=new a,m=5;m--;)g[i](m,m);return!g.has(-0)});v||((s=e(function(g,m){wC(g,u);var h=function(b,w,D){var x,C;return Gl&&le(x=w.constructor)&&x!==D&&he(C=x.prototype)&&C!==D.prototype&&Gl(b,C),b}(new a,g,s);return m!=null&&cy(m,h[i],{that:h,AS_ENTRIES:n}),h})).prototype=u,u.constructor=s),(p||y)&&(c("delete"),c("has"),n&&c("get")),(y||d)&&c(i),o&&u.clear&&delete u.clear}return l[t]=s,Eo({global:!0,forced:s!=a},l),sy(s,t),o||r.setStrong(s,t,n),s}("WeakMap",WM,UM);if(EM&&D0t){Pf=UM.getConstructor(WM,"WeakMap",!0),bC.enable();var jf=C0t.prototype,MT=_t(jf.delete),Dg=_t(jf.has),zT=_t(jf.get),$T=_t(jf.set);ly(jf,{delete:function(t){if(he(t)&&!pu(t)){var e=Eg(this);return e.frozen||(e.frozen=new Pf),MT(this,t)||e.frozen.delete(t)}return MT(this,t)},has:function(t){if(he(t)&&!pu(t)){var e=Eg(this);return e.frozen||(e.frozen=new Pf),Dg(this,t)||e.frozen.has(t)}return Dg(this,t)},get:function(t){if(he(t)&&!pu(t)){var e=Eg(this);return e.frozen||(e.frozen=new Pf),Dg(this,t)?zT(this,t):e.frozen.get(t)}return zT(this,t)},set:function(t,e){if(he(t)&&!pu(t)){var r=Eg(this);r.frozen||(r.frozen=new Pf),Dg(this,t)?$T(this,t,e):r.frozen.set(t,e)}else $T(this,t,e);return this}})}var fy={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},Cw=dp("span").classList,HT=Cw&&Cw.constructor&&Cw.constructor.prototype,GM=HT===Object.prototype?void 0:HT,xw=$e("iterator"),VT=$e("toStringTag"),Sw=Xf.values,qM=function(t,e){if(t){if(t[xw]!==Sw)try{So(t,xw,Sw)}catch(n){t[xw]=Sw}if(t[VT]||So(t,VT,e),fy[e]){for(var r in Xf)if(t[r]!==Xf[r])try{So(t,r,Xf[r])}catch(n){t[r]=Xf[r]}}}};for(var Aw in fy)qM(et[Aw]&&et[Aw].prototype,Aw);qM(GM,"DOMTokenList");var KM=function(t,e){var r=[][t];return!!r&&ve(function(){r.call(null,e||function(){throw 1},1)})},x0t=EC.forEach,Ow=KM("forEach")?[].forEach:function(t){return x0t(this,t,arguments.length>1?arguments[1]:void 0)},YM=function(t){if(t&&t.forEach!==Ow)try{So(t,"forEach",Ow)}catch(e){t.forEach=Ow}};for(var kw in fy)fy[kw]&&YM(et[kw]&&et[kw].prototype);YM(GM);var vp,Us,UT,Bw,dy=et.Promise,WT=$e("species"),XM=/(?:ipad|iphone|ipod).*applewebkit/i.test(yl),da=Xn(et.process)=="process",v3=et.setImmediate,GT=et.clearImmediate,S0t=et.process,Fw=et.Dispatch,A0t=et.Function,qT=et.MessageChannel,O0t=et.String,Tw=0,md={};try{vp=et.location}catch(t){}var DC=function(t){if(Ke(md,t)){var e=md[t];delete md[t],e()}},_w=function(t){return function(){DC(t)}},KT=function(t){DC(t.data)},YT=function(t){et.postMessage(O0t(t),vp.protocol+"//"+vp.host)};v3&&GT||(v3=function(t){var e=BM(arguments,1);return md[++Tw]=function(){jM(le(t)?t:A0t(t),void 0,e)},Us(Tw),Tw},GT=function(t){delete md[t]},da?Us=function(t){S0t.nextTick(_w(t))}:Fw&&Fw.now?Us=function(t){Fw.now(_w(t))}:qT&&!XM?(Bw=(UT=new qT).port2,UT.port1.onmessage=KT,Us=gp(Bw.postMessage,Bw)):et.addEventListener&&le(et.postMessage)&&!et.importScripts&&vp&&vp.protocol!=="file:"&&!ve(YT)?(Us=YT,et.addEventListener("message",KT,!1)):Us="onreadystatechange"in dp("script")?function(t){l3.appendChild(dp("script")).onreadystatechange=function(){l3.removeChild(this),DC(t)}}:function(t){setTimeout(_w(t),0)});var Nf,su,bd,tl,Pw,jw,Nw,XT,ZM={set:v3},k0t=/ipad|iphone|ipod/i.test(yl)&&et.Pebble!==void 0,B0t=/web0s(?!.*chrome)/i.test(yl),F0t=uC.f,Iw=ZM.set,ZT=et.MutationObserver||et.WebKitMutationObserver,JT=et.document,QT=et.process,Cg=et.Promise,t_=F0t(et,"queueMicrotask"),JM=t_&&t_.value;JM||(Nf=function(){var t,e;for(da&&(t=QT.domain)&&t.exit();su;){e=su.fn,su=su.next;try{e()}catch(r){throw su?tl():bd=void 0,r}}bd=void 0,t&&t.enter()},XM||da||B0t||!ZT||!JT?!k0t&&Cg&&Cg.resolve?((Nw=Cg.resolve(void 0)).constructor=Cg,XT=gp(Nw.then,Nw),tl=function(){XT(Nf)}):da?tl=function(){QT.nextTick(Nf)}:(Iw=gp(Iw,et),tl=function(){Iw(Nf)}):(Pw=!0,jw=JT.createTextNode(""),new ZT(Nf).observe(jw,{characterData:!0}),tl=function(){jw.data=Pw=!Pw}));var Lw,e_,QM,r_,tz=JM||function(t){var e={fn:t,next:void 0};bd&&(bd.next=e),su||(su=e,tl()),bd=e},T0t=function(t){var e,r;this.promise=new t(function(n,o){if(e!==void 0||r!==void 0)throw TypeError("Bad Promise constructor");e=n,r=o}),this.resolve=Aa(e),this.reject=Aa(r)},CC={f:function(t){return new T0t(t)}},y3=function(t){try{return{error:!1,value:t()}}catch(e){return{error:!0,value:e}}},_0t=typeof window=="object",ez=ZM.set,P0t=$e("species"),Zo="Promise",n_=cn.getterFor(Zo),j0t=cn.set,N0t=cn.getterFor(Zo),ru=dy&&dy.prototype,Do=dy,If=ru,rz=et.TypeError,m3=et.document,xC=et.process,ml=CC.f,I0t=ml,L0t=!!(m3&&m3.createEvent&&et.dispatchEvent),nz=le(et.PromiseRejectionEvent),oz=!1,wd=ny(Zo,function(){var t=bm(Do),e=t!==String(Do);if(!e&&cp===66)return!0;if(cp>=51&&/native code/.test(t))return!1;var r=new Do(function(o){o(1)}),n=function(o){o(function(){},function(){})};return(r.constructor={})[P0t]=n,!(oz=r.then(function(){})instanceof n)||!e&&_0t&&!nz}),R0t=wd||!HM(function(t){Do.all(t).catch(function(){})}),iz=function(t){var e;return!(!he(t)||!le(e=t.then))&&e},SC=function(t,e){if(!t.notified){t.notified=!0;var r=t.reactions;tz(function(){for(var n=t.value,o=t.state==1,i=0;r.length>i;){var a,u,s,l=r[i++],c=o?l.ok:l.fail,f=l.resolve,d=l.reject,p=l.domain;try{c?(o||(t.rejection===2&&z0t(t),t.rejection=1),c===!0?a=n:(p&&p.enter(),a=c(n),p&&(p.exit(),s=!0)),a===l.promise?d(rz("Promise-chain cycle")):(u=iz(a))?ne(u,a,f,d):f(a)):d(n)}catch(v){p&&!s&&p.exit(),d(v)}}t.reactions=[],t.notified=!1,e&&!t.rejection&&M0t(t)})}},az=function(t,e,r){var n,o;L0t?((n=m3.createEvent("Event")).promise=e,n.reason=r,n.initEvent(t,!1,!0),et.dispatchEvent(n)):n={promise:e,reason:r},!nz&&(o=et["on"+t])?o(n):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",r)},M0t=function(t){ne(ez,et,function(){var e,r=t.facade,n=t.value;if(o_(t)&&(e=y3(function(){da?xC.emit("unhandledRejection",n,r):az("unhandledrejection",r,n)}),t.rejection=da||o_(t)?2:1,e.error))throw e.value})},o_=function(t){return t.rejection!==1&&!t.parent},z0t=function(t){ne(ez,et,function(){var e=t.facade;da?xC.emit("rejectionHandled",e):az("rejectionhandled",e,t.value)})},al=function(t,e,r){return function(n){t(e,n,r)}},bl=function(t,e,r){t.done||(t.done=!0,r&&(t=r),t.value=e,t.state=2,SC(t,!0))},b3=function(t,e,r){if(!t.done){t.done=!0,r&&(t=r);try{if(t.facade===e)throw rz("Promise can't be resolved itself");var n=iz(e);n?tz(function(){var o={done:!1};try{ne(n,e,al(b3,o,t),al(bl,o,t))}catch(i){bl(o,i,t)}}):(t.value=e,t.state=1,SC(t,!1))}catch(o){bl({done:!1},o,t)}}};if(wd&&(If=(Do=function(t){wC(this,If),Aa(t),ne(Lw,this);var e=n_(this);try{t(al(b3,e),al(bl,e))}catch(r){bl(e,r)}}).prototype,(Lw=function(t){j0t(this,{type:Zo,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=ly(If,{then:function(t,e){var r=N0t(this),n=r.reactions,o=ml(NM(this,Do));return o.ok=!le(t)||t,o.fail=le(e)&&e,o.domain=da?xC.domain:void 0,r.parent=!0,n[n.length]=o,r.state!=0&&SC(r,!1),o.promise},catch:function(t){return this.then(void 0,t)}}),e_=function(){var t=new Lw,e=n_(t);this.promise=t,this.resolve=al(b3,e),this.reject=al(bl,e)},CC.f=ml=function(t){return t===Do||t===QM?new e_(t):I0t(t)},le(dy)&&ru!==Object.prototype)){r_=ru.then,oz||(Pn(ru,"then",function(t,e){var r=this;return new Do(function(n,o){ne(r_,r,n,o)}).then(t,e)},{unsafe:!0}),Pn(ru,"catch",If.catch,{unsafe:!0}));try{delete ru.constructor}catch(t){}Gl&&Gl(ru,If)}Eo({global:!0,wrap:!0,forced:wd},{Promise:Do}),sy(Do,Zo,!1),function(t){var e=Qu("Promise"),r=pi.f;To&&e&&!e[WT]&&r(e,WT,{configurable:!0,get:function(){return this}})}(),QM=Qu(Zo),Eo({target:Zo,stat:!0,forced:wd},{reject:function(t){var e=ml(this);return ne(e.reject,void 0,t),e.promise}}),Eo({target:Zo,stat:!0,forced:wd},{resolve:function(t){return function(e,r){if(fr(e),he(r)&&r.constructor===e)return r;var n=CC.f(e);return(0,n.resolve)(r),n.promise}(this,t)}}),Eo({target:Zo,stat:!0,forced:R0t},{all:function(t){var e=this,r=ml(e),n=r.resolve,o=r.reject,i=y3(function(){var a=Aa(e.resolve),u=[],s=0,l=1;cy(t,function(c){var f=s++,d=!1;l++,ne(a,e,c).then(function(p){d||(d=!0,u[f]=p,--l||n(u))},o)}),--l||n(u)});return i.error&&o(i.value),r.promise},race:function(t){var e=this,r=ml(e),n=r.reject,o=y3(function(){var i=Aa(e.resolve);cy(t,function(a){ne(i,e,a).then(r.resolve,n)})});return o.error&&n(o.value),r.promise}});var $0t=oh.PROPER,w3=RegExp.prototype,uz=w3.toString,H0t=_t(FM),V0t=ve(function(){return uz.call({source:"a",flags:"b"})!="/a/b"}),U0t=$0t&&uz.name!="toString";(V0t||U0t)&&Pn(RegExp.prototype,"toString",function(){var t=fr(this),e=fa(t.source),r=t.flags;return"/"+e+"/"+fa(r===void 0&&lp(w3,t)&&!("flags"in w3)?H0t(t):r)},{unsafe:!0});var W0t=oh.EXISTS,G0t=pi.f,sz=Function.prototype,q0t=_t(sz.toString),lz=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,K0t=_t(lz.exec);To&&!W0t&&G0t(sz,"name",{configurable:!0,get:function(){try{return K0t(lz,q0t(this))[1]}catch(t){return""}}});var i_=new WeakMap;function cz(t){return t.getMenuConfig("uploadImage")}function Y0t(t,e){return vC(this,void 0,void 0,function(){return yC(this,function(r){return[2,new Promise(function(n){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;Su(t,a,e.name,u),n("ok")}}})]})})}function X0t(t,e){return vC(this,void 0,void 0,function(){var r,n,o,i;return yC(this,function(a){switch(a.label){case 0:return r=function(u){var s=i_.get(u);if(s!=null)return s;var l=cz(u),c=l.onSuccess,f=l.onProgress,d=l.onFailed,p=l.customInsert,v=l.onError;return s=$N(ay(ay({},l),{onProgress:function(y){u.showProgressBar(y),f&&f(y)},onSuccess:function(y,g){if(p)return p(g,function(R,H,M){return Su(u,R,H,M)}),void c(y,g);var m=g.errno,h=m===void 0?1:m,b=g.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;Su(u,M,U,W===void 0?"":W)});else{var D=w.url,x=D===void 0?"":D,C=w.alt,O=C===void 0?"":C,T=w.href;Su(u,x,O,T===void 0?"":T)}c(y,g)}else d(y,g)},onError:function(y,g,m){v(y,g,m)}})),i_.set(u,s),s}(t),n=e.name,o=e.type,i=e.size,r.addFile({name:n,type:o,size:i,data:e}),[4,r.upload()];case 1:return a.sent(),[2]}})})}function fz(t,e){var r,n;return vC(this,void 0,void 0,function(){var o,i,a,u,s,l,c,f,d;return yC(this,function(p){switch(p.label){case 0:if(e==null)return[2];o=Array.prototype.slice.call(e),i=cz(t),a=i.customUpload,u=i.base64LimitSize,p.label=1;case 1:p.trys.push([1,11,12,17]),s=Hvt(o),p.label=2;case 2:return[4,s.next()];case 3:return(l=p.sent()).done?[3,10]:(c=l.value,f=c.size,u&&f<=u?[4,Y0t(t,c)]:[3,5]);case 4:return p.sent(),[3,9];case 5:return a?[4,a(c,function(v,y,g){return Su(t,v,y,g)})]:[3,7];case 6:return p.sent(),[3,9];case 7:return[4,X0t(t,c)];case 8:p.sent(),p.label=9;case 9:return[3,2];case 10:return[3,17];case 11:return d=p.sent(),r={error:d},[3,17];case 12:return p.trys.push([12,,15,16]),l&&!l.done&&(n=s.return)?[4,n.call(s)]:[3,14];case 13:p.sent(),p.label=14;case 14:return[3,16];case 15:if(r)throw r.error;return[7];case 16:return[7];case 17:return[2]}})})}var Z0t=_t([].join),J0t=tC!=Object,Q0t=KM("join",",");Eo({target:"Array",proto:!0,forced:J0t||!Q0t},{join:function(t){return Z0t(Pa(this),t===void 0?",":t)}}),kn&&(B.fn.append=kn),ko&&(B.fn.on=ko),Tl&&(B.fn.remove=Tl),Oo&&(B.fn.val=Oo),iA&&(B.fn.click=iA),Ol&&(B.fn.hide=Ol);var tyt=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 Xy(e)},t.prototype.getMenuConfig=function(e){return e.getMenuConfig("uploadImage")},t.prototype.exec=function(e,r){var n=this.getMenuConfig(e),o=n.allowedFileTypes,i=o===void 0?[]:o,a=n.customBrowseAndUpload;if(a)a(function(c,f,d){return Su(e,c,f,d)});else{var u="";i.length>0&&(u='accept="'+i.join(", ")+'"');var s=B("body"),l=B('<input type="file" '+u+" multiple/>");l.hide(),s.append(l),l.click(),l.on("change",function(){var c=l[0].files;fz(e,c)})}},t}(),eyt={menus:[{key:"uploadImage",factory:function(){return new tyt},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,r){console.error("'"+t.name+"' upload error",r)},base64LimitSize:0}}],editorPlugin:function(t){var e=t.insertData,r=t;return r.insertData=function(n){if(Xy(r))e(n);else if(n.getData("text/plain"))e(n);else{var o=n.files;o.length<=0?e(n):Array.prototype.slice.call(o).some(function(i){return function(a,u){var s=typeof Symbol=="function"&&a[Symbol.iterator];if(!s)return a;var l,c,f=s.call(a),d=[];try{for(;(u===void 0||u-- >0)&&!(l=f.next()).done;)d.push(l.value)}catch(p){c={error:p}}finally{try{l&&!l.done&&(s=f.return)&&s.call(f)}finally{if(c)throw c.error}}return d}(i.type.split("/"),1)[0]==="image"})?fz(t,o):e(n)}},r}};qr("en",{highLightModule:{selectLang:"Language"}}),qr("zh-CN",{highLightModule:{selectLang:"选择语言"}});var py=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function AC(t){var e={exports:{}};return t(e,e.exports),e.exports}var ji,nv,xg=function(t){return t&&t.Math==Math&&t},It=xg(typeof globalThis=="object"&&globalThis)||xg(typeof window=="object"&&window)||xg(typeof self=="object"&&self)||xg(typeof py=="object"&&py)||function(){return this}()||Function("return this")(),ryt=Object.defineProperty,OC=function(t,e){try{ryt(It,t,{value:e,configurable:!0,writable:!0})}catch(r){It[t]=e}return e},pa=It["__core-js_shared__"]||OC("__core-js_shared__",{}),kC=AC(function(t){(t.exports=function(e,r){return pa[e]||(pa[e]=r!==void 0?r:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),dz=Function.prototype,E3=dz.bind,D3=dz.call,nyt=E3&&E3.bind(D3),te=E3?function(t){return t&&nyt(D3,t)}:function(t){return t&&function(){return D3.apply(t,arguments)}},oyt=It.TypeError,ql=function(t){if(t==null)throw oyt("Can't call method on "+t);return t},iyt=It.Object,BC=function(t){return iyt(ql(t))},ayt=te({}.hasOwnProperty),An=Object.hasOwn||function(t,e){return ayt(BC(t),e)},uyt=0,syt=Math.random(),lyt=te(1 .toString),pz=function(t){return"Symbol("+(t===void 0?"":t)+")_"+lyt(++uyt+syt,36)},jr=function(t){return typeof t=="function"},cyt=function(t){return jr(t)?t:void 0},uh=function(t,e){return arguments.length<2?cyt(It[t]):It[t]&&It[t][e]},Rw=uh("navigator","userAgent")||"",a_=It.process,u_=It.Deno,s_=a_&&a_.versions||u_&&u_.version,l_=s_&&s_.v8;l_&&(nv=(ji=l_.split("."))[0]>0&&ji[0]<4?1:+(ji[0]+ji[1])),!nv&&Rw&&(!(ji=Rw.match(/Edge\/(\d+)/))||ji[1]>=74)&&(ji=Rw.match(/Chrome\/(\d+)/))&&(nv=+ji[1]);var c_=nv,sr=function(t){try{return!!t()}catch(e){return!0}},C3=!!Object.getOwnPropertySymbols&&!sr(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&c_&&c_<41}),FC=C3&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Lf=kC("wks"),Lu=It.Symbol,f_=Lu&&Lu.for,fyt=FC?Lu:Lu&&Lu.withoutSetter||pz,ja=function(t){if(!An(Lf,t)||!C3&&typeof Lf[t]!="string"){var e="Symbol."+t;C3&&An(Lu,t)?Lf[t]=Lu[t]:Lf[t]=FC&&f_?f_(e):fyt(e)}return Lf[t]},hz={};hz[ja("toStringTag")]="z";var TC=String(hz)==="[object z]",_o=!sr(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),ti=function(t){return typeof t=="object"?t!==null:jr(t)},x3=It.document,dyt=ti(x3)&&ti(x3.createElement),_C=function(t){return dyt?x3.createElement(t):{}},gz=!_o&&!sr(function(){return Object.defineProperty(_C("div"),"a",{get:function(){return 7}}).a!=7}),pyt=It.String,hyt=It.TypeError,Zn=function(t){if(ti(t))return t;throw hyt(pyt(t)+" is not an object")},Rf=Function.prototype.call,ar=Rf.bind?Rf.bind(Rf):function(){return Rf.apply(Rf,arguments)},vz=te({}.isPrototypeOf),gyt=It.Object,Mw=FC?function(t){return typeof t=="symbol"}:function(t){var e=uh("Symbol");return jr(e)&&vz(e.prototype,gyt(t))},vyt=It.String,yz=function(t){try{return vyt(t)}catch(e){return"Object"}},yyt=It.TypeError,mz=function(t){if(jr(t))return t;throw yyt(yz(t)+" is not a function")},bz=function(t,e){var r=t[e];return r==null?void 0:mz(r)},myt=It.TypeError,byt=It.TypeError,wyt=ja("toPrimitive"),PC=function(t){var e=function(r,n){if(!ti(r)||Mw(r))return r;var o,i=bz(r,wyt);if(i){if(o=ar(i,r,n),!ti(o)||Mw(o))return o;throw byt("Can't convert object to primitive value")}return function(a,u){var s,l;if(jr(s=a.toString)&&!ti(l=ar(s,a))||jr(s=a.valueOf)&&!ti(l=ar(s,a)))return l;throw myt("Can't convert object to primitive value")}(r)}(t,"string");return Mw(e)?e:e+""},Eyt=It.TypeError,d_=Object.defineProperty,Dm={f:_o?d_:function(t,e,r){if(Zn(t),e=PC(e),Zn(r),gz)try{return d_(t,e,r)}catch(n){}if("get"in r||"set"in r)throw Eyt("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},jC=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},Kl=_o?function(t,e,r){return Dm.f(t,e,jC(1,r))}:function(t,e,r){return t[e]=r,t},Dyt=te(Function.toString);jr(pa.inspectSource)||(pa.inspectSource=function(t){return Dyt(t)});var S3,hy,A3,NC=pa.inspectSource,p_=It.WeakMap,Cyt=jr(p_)&&/native code/.test(NC(p_)),h_=kC("keys"),wz=function(t){return h_[t]||(h_[t]=pz(t))},IC={},g_=It.TypeError,xyt=It.WeakMap;if(Cyt||pa.state){var Za=pa.state||(pa.state=new xyt),Syt=te(Za.get),v_=te(Za.has),Ayt=te(Za.set);S3=function(t,e){if(v_(Za,t))throw new g_("Object already initialized");return e.facade=t,Ayt(Za,t,e),e},hy=function(t){return Syt(Za,t)||{}},A3=function(t){return v_(Za,t)}}else{var Ws=wz("state");IC[Ws]=!0,S3=function(t,e){if(An(t,Ws))throw new g_("Object already initialized");return e.facade=t,Kl(t,Ws,e),e},hy=function(t){return An(t,Ws)?t[Ws]:{}},A3=function(t){return An(t,Ws)}}var O3={get:hy,enforce:function(t){return A3(t)?hy(t):S3(t,{})}},Ez=Function.prototype,Oyt=_o&&Object.getOwnPropertyDescriptor,y_=An(Ez,"name"),Dz={PROPER:y_&&function(){}.name==="something",CONFIGURABLE:y_&&(!_o||_o&&Oyt(Ez,"name").configurable)},yp=AC(function(t){var e=Dz.CONFIGURABLE,r=O3.get,n=O3.enforce,o=String(String).split("String");(t.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet,p=s&&s.name!==void 0?s.name:a;jr(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!An(u,"name")||e&&u.name!==p)&&Kl(u,"name",p),(l=n(u)).source||(l.source=o.join(typeof p=="string"?p:""))),i!==It?(c?!d&&i[a]&&(f=!0):delete i[a],f?i[a]=u:Kl(i,a,u)):f?i[a]=u:OC(a,u)})(Function.prototype,"toString",function(){return jr(this)&&r(this).source||NC(this)})}),kyt=te({}.toString),Byt=te("".slice),ha=function(t){return Byt(kyt(t),8,-1)},Fyt=ja("toStringTag"),Tyt=It.Object,_yt=ha(function(){return arguments}())=="Arguments",LC=TC?ha:function(t){var e,r,n;return t===void 0?"Undefined":t===null?"Null":typeof(r=function(o,i){try{return o[i]}catch(a){}}(e=Tyt(t),Fyt))=="string"?r:_yt?ha(e):(n=ha(e))=="Object"&&jr(e.callee)?"Arguments":n},Pyt=TC?{}.toString:function(){return"[object "+LC(this)+"]"};TC||yp(Object.prototype,"toString",Pyt,{unsafe:!0});var m_,b_={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},zw=_C("span").classList,w_=zw&&zw.constructor&&zw.constructor.prototype,jyt=w_===Object.prototype?void 0:w_,E_=te(te.bind),$w=It.Object,Nyt=te("".split),RC=sr(function(){return!$w("z").propertyIsEnumerable(0)})?function(t){return ha(t)=="String"?Nyt(t,""):$w(t)}:$w,Iyt=Math.ceil,Lyt=Math.floor,MC=function(t){var e=+t;return e!=e||e===0?0:(e>0?Lyt:Iyt)(e)},Ryt=Math.min,Cz=function(t){return t>0?Ryt(MC(t),9007199254740991):0},zC=function(t){return Cz(t.length)},D_=Array.isArray||function(t){return ha(t)=="Array"},xz=function(){},Myt=[],Sz=uh("Reflect","construct"),$C=/^\s*(?:class|function)\b/,zyt=te($C.exec),$yt=!$C.exec(xz),Mf=function(t){if(!jr(t))return!1;try{return Sz(xz,Myt,t),!0}catch(e){return!1}},Az=!Sz||sr(function(){var t;return Mf(Mf.call)||!Mf(Object)||!Mf(function(){t=!0})||t})?function(t){if(!jr(t))return!1;switch(LC(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return $yt||!!zyt($C,NC(t))}:Mf,Hyt=ja("species"),C_=It.Array,Vyt=function(t,e){return new(function(r){var n;return D_(r)&&(n=r.constructor,(Az(n)&&(n===C_||D_(n.prototype))||ti(n)&&(n=n[Hyt])===null)&&(n=void 0)),n===void 0?C_:n}(t))(e===0?0:e)},x_=te([].push),Ni=function(t){var e=t==1,r=t==2,n=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var d,p,v=BC(s),y=RC(v),g=function(D,x){return mz(D),x===void 0?D:E_?E_(D,x):function(){return D.apply(x,arguments)}}(l,c),m=zC(y),h=0,b=f||Vyt,w=e?b(s,m):r||a?b(s,0):void 0;m>h;h++)if((u||h in y)&&(p=g(d=y[h],h,v),t))if(e)w[h]=p;else if(p)switch(t){case 3:return!0;case 5:return d;case 6:return h;case 2:x_(w,d)}else switch(t){case 4:return!1;case 7:x_(w,d)}return i?-1:n||o?o:w}},Uyt=[Ni(0),Ni(1),Ni(2),Ni(3),Ni(4),Ni(5),Ni(6),Ni(7)][0],Hw=(m_=[].forEach)&&sr(function(){m_.call(null,function(){throw 1},1)})?[].forEach:function(t){return Uyt(this,t,arguments.length>1?arguments[1]:void 0)},Oz=function(t){if(t&&t.forEach!==Hw)try{Kl(t,"forEach",Hw)}catch(e){t.forEach=Hw}};for(var Vw in b_)b_[Vw]&&Oz(It[Vw]&&It[Vw].prototype);Oz(jyt);var S_={}.propertyIsEnumerable,A_=Object.getOwnPropertyDescriptor,kz={f:A_&&!S_.call({1:2},1)?function(t){var e=A_(this,t);return!!e&&e.enumerable}:S_},Cm=function(t){return RC(ql(t))},O_=Object.getOwnPropertyDescriptor,Bz={f:_o?O_:function(t,e){if(t=Cm(t),e=PC(e),gz)try{return O_(t,e)}catch(r){}if(An(t,e))return jC(!ar(kz.f,t,e),t[e])}},Wyt=Math.max,Gyt=Math.min,k3=function(t,e){var r=MC(t);return r<0?Wyt(r+e,0):Gyt(r,e)},qyt=function(t){return function(e,r,n){var o,i=Cm(e),a=zC(i),u=k3(n,a);if(t&&r!=r){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===r)return t||u||0;return!t&&-1}},Kyt=qyt(!1),k_=te([].push),Fz=function(t,e){var r,n=Cm(t),o=0,i=[];for(r in n)!An(IC,r)&&An(n,r)&&k_(i,r);for(;e.length>o;)An(n,r=e[o++])&&(~Kyt(i,r)||k_(i,r));return i},gy=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Yyt=gy.concat("length","prototype"),Xyt={f:Object.getOwnPropertyNames||function(t){return Fz(t,Yyt)}},Tz={f:Object.getOwnPropertySymbols},Zyt=te([].concat),Jyt=uh("Reflect","ownKeys")||function(t){var e=Xyt.f(Zn(t)),r=Tz.f;return r?Zyt(e,r(t)):e},Qyt=function(t,e){for(var r=Jyt(e),n=Dm.f,o=Bz.f,i=0;i<r.length;i++){var a=r[i];An(t,a)||n(t,a,o(e,a))}},tmt=/#|\.prototype\./,sh=function(t,e){var r=rmt[emt(t)];return r==omt||r!=nmt&&(jr(e)?sr(e):!!e)},emt=sh.normalize=function(t){return String(t).replace(tmt,".").toLowerCase()},rmt=sh.data={},nmt=sh.NATIVE="N",omt=sh.POLYFILL="P",imt=sh,amt=Bz.f,xm=function(t,e){var r,n,o,i,a,u=t.target,s=t.global,l=t.stat;if(r=s?It:l?It[u]||OC(u,{}):(It[u]||{}).prototype)for(n in e){if(i=e[n],o=t.noTargetGet?(a=amt(r,n))&&a.value:r[n],!imt(s?n:u+(l?".":"#")+n,t.forced)&&o!==void 0){if(typeof i==typeof o)continue;Qyt(i,o)}(t.sham||o&&o.sham)&&Kl(i,"sham",!0),yp(r,n,i,t)}},ov=Object.keys||function(t){return Fz(t,gy)},Gs=Object.assign,B_=Object.defineProperty,umt=te([].concat),F_=!Gs||sr(function(){if(_o&&Gs({b:1},Gs(B_({},"a",{enumerable:!0,get:function(){B_(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var t={},e={},r=Symbol(),n="abcdefghijklmnopqrst";return t[r]=7,n.split("").forEach(function(o){e[o]=o}),Gs({},t)[r]!=7||ov(Gs({},e)).join("")!=n})?function(t,e){for(var r=BC(t),n=arguments.length,o=1,i=Tz.f,a=kz.f;n>o;)for(var u,s=RC(arguments[o++]),l=i?umt(ov(s),i(s)):ov(s),c=l.length,f=0;c>f;)u=l[f++],_o&&!ar(a,s,u)||(r[u]=s[u]);return r}:Gs;xm({target:"Object",stat:!0,forced:Object.assign!==F_},{assign:F_});var T_=AC(function(t){var e=function(r){var n=/\blang(?:uage)?-([\w-]+)\b/i,o=0,i={},a={manual:r.Prism&&r.Prism.manual,disableWorkerMessageHandler:r.Prism&&r.Prism.disableWorkerMessageHandler,util:{encode:function g(m){return m instanceof u?new u(m.type,g(m.content),m.alias):Array.isArray(m)?m.map(g):m.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(g){return Object.prototype.toString.call(g).slice(8,-1)},objId:function(g){return g.__id||Object.defineProperty(g,"__id",{value:++o}),g.__id},clone:function g(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 D in b={},h[w]=b,m)m.hasOwnProperty(D)&&(b[D]=g(m[D],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]=g(x,h)}),b);default:return m}},getLanguage:function(g){for(;g&&!n.test(g.className);)g=g.parentElement;return g?(g.className.match(n)||[,"none"])[1].toLowerCase():"none"},currentScript:function(){if(typeof document=="undefined")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(b){var g=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(b.stack)||[])[1];if(g){var m=document.getElementsByTagName("script");for(var h in m)if(m[h].src==g)return m[h]}return null}},isActive:function(g,m,h){for(var b="no-"+m;g;){var w=g.classList;if(w.contains(m))return!0;if(w.contains(b))return!1;g=g.parentElement}return!!h}},languages:{plain:i,plaintext:i,text:i,txt:i,extend:function(g,m){var h=a.util.clone(a.languages[g]);for(var b in m)h[b]=m[b];return h},insertBefore:function(g,m,h,b){var w=(b=b||a.languages)[g],D={};for(var x in w)if(w.hasOwnProperty(x)){if(x==m)for(var C in h)h.hasOwnProperty(C)&&(D[C]=h[C]);h.hasOwnProperty(x)||(D[x]=w[x])}var O=b[g];return b[g]=D,a.languages.DFS(a.languages,function(T,R){R===O&&T!=g&&(this[T]=D)}),D},DFS:function g(m,h,b,w){w=w||{};var D=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[D(C)]?O!=="Array"||w[D(C)]||(w[D(C)]=!0,g(C,h,x,w)):(w[D(C)]=!0,g(C,h,null,w))}}},plugins:{},highlightAll:function(g,m){a.highlightAllUnder(document,g,m)},highlightAllUnder:function(g,m,h){var b={callback:h,container:g,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};a.hooks.run("before-highlightall",b),b.elements=Array.prototype.slice.apply(b.container.querySelectorAll(b.selector)),a.hooks.run("before-all-elements-highlight",b);for(var w,D=0;w=b.elements[D++];)a.highlightElement(w,m===!0,b.callback)},highlightElement:function(g,m,h){var b=a.util.getLanguage(g),w=a.languages[b];g.className=g.className.replace(n,"").replace(/\s+/g," ")+" language-"+b;var D=g.parentElement;D&&D.nodeName.toLowerCase()==="pre"&&(D.className=D.className.replace(n,"").replace(/\s+/g," ")+" language-"+b);var x={element:g,language:b,grammar:w,code:g.textContent};function C(T){x.highlightedCode=T,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),(D=x.element.parentElement)&&D.nodeName.toLowerCase()==="pre"&&!D.hasAttribute("tabindex")&&D.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&&r.Worker){var O=new Worker(a.filename);O.onmessage=function(T){C(T.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(g,m,h){var b={code:g,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(g,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,g),l(g,w,m,w.head,0),function(D){for(var x=[],C=D.head.next;C!==D.tail;)x.push(C.value),C=C.next;return x}(w)},hooks:{all:{},add:function(g,m){var h=a.hooks.all;h[g]=h[g]||[],h[g].push(m)},run:function(g,m){var h=a.hooks.all[g];if(h&&h.length)for(var b,w=0;b=h[w++];)b(m)}},Token:u};function u(g,m,h,b){this.type=g,this.content=m,this.alias=h,this.length=0|(b||"").length}function s(g,m,h,b){g.lastIndex=m;var w=g.exec(h);if(w&&b&&w[1]){var D=w[1].length;w.index+=D,w[0]=w[0].slice(D)}return w}function l(g,m,h,b,w,D){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(D&&D.cause==x+","+O)return;var T=C[O],R=T.inside,H=!!T.lookbehind,M=!!T.greedy,K=T.alias;if(M&&!T.pattern.global){var U=T.pattern.toString().match(/[imsuy]*$/)[0];T.pattern=RegExp(T.pattern.source,U+"g")}for(var W=T.pattern||T,q=b.next,rt=w;q!==m.tail&&!(D&&rt>=D.reach);rt+=q.value.length,q=q.next){var lt=q.value;if(m.length>g.length)return;if(!(lt instanceof u)){var st,ut=1;if(M){if(!(st=s(W,rt,g,H)))break;var k=st.index,S=st.index+st[0].length,P=rt;for(P+=q.value.length;k>=P;)P+=(q=q.next).value.length;if(rt=P-=q.value.length,q.value instanceof u)continue;for(var $=q;$!==m.tail&&(P<S||typeof $.value=="string");$=$.next)ut++,P+=$.value.length;ut--,lt=g.slice(rt,P),st.index-=rt}else if(!(st=s(W,0,lt,H)))continue;k=st.index;var Y=st[0],V=lt.slice(0,k),at=lt.slice(k+Y.length),vt=rt+lt.length;D&&vt>D.reach&&(D.reach=vt);var yt=q.prev;if(V&&(yt=f(m,yt,V),rt+=V.length),d(m,yt,ut),q=f(m,yt,new u(x,R?a.tokenize(Y,R):Y,K,Y)),at&&f(m,q,at),ut>1){var Ct={cause:x+","+O,reach:vt};l(g,m,h,q.prev,rt,Ct),D&&Ct.reach>D.reach&&(D.reach=Ct.reach)}}}}}}function c(){var g={value:null,prev:null,next:null},m={value:null,prev:g,next:null};g.next=m,this.head=g,this.tail=m,this.length=0}function f(g,m,h){var b=m.next,w={value:h,prev:m,next:b};return m.next=w,b.prev=w,g.length++,w}function d(g,m,h){for(var b=m.next,w=0;w<h&&b!==g.tail;w++)b=b.next;m.next=b,b.prev=m,g.length-=w}if(r.Prism=a,u.stringify=function g(m,h){if(typeof m=="string")return m;if(Array.isArray(m)){var b="";return m.forEach(function(O){b+=g(O,h)}),b}var w={type:m.type,content:g(m.content,h),tag:"span",classes:["token",m.type],attributes:{},language:h},D=m.alias;D&&(Array.isArray(D)?Array.prototype.push.apply(w.classes,D):w.classes.push(D)),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+">"},!r.document)return r.addEventListener&&(a.disableWorkerMessageHandler||r.addEventListener("message",function(g){var m=JSON.parse(g.data),h=m.language,b=m.code,w=m.immediateClose;r.postMessage(a.highlight(b,a.languages[h],h)),w&&r.close()},!1)),a;var p=a.util.currentScript();function v(){a.manual||a.highlightAll()}if(p&&(a.filename=p.src,p.hasAttribute("data-manual")&&(a.manual=!0)),!a.manual){var y=document.readyState;y==="loading"||y==="interactive"&&p&&p.defer?document.addEventListener("DOMContentLoaded",v):window.requestAnimationFrame?window.requestAnimationFrame(v):window.setTimeout(v,16)}return a}(typeof window!="undefined"?window:typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope?self:{});/**
* Prism: Lightweight, robust, elegant syntax highlighting
*
* @license MIT <https://opensource.org/licenses/MIT>
* @author Lea Verou <https://lea.verou.me>
* @namespace
* @public
*/t.exports&&(t.exports=e),py!==void 0&&(py.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(r){r.type==="entity"&&(r.attributes.title=r.content.replace(/&amp;/,"&"))}),Object.defineProperty(e.languages.markup.tag,"addInlined",{value:function(r,n){var o={};o["language-"+n]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:e.languages[n]},o.cdata=/^<!\[CDATA\[|\]\]>$/i;var i={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:o}};i["language-"+n]={pattern:/[\s\S]+/,inside:e.languages[n]};var a={};a[r]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return r}),"i"),lookbehind:!0,greedy:!0,inside:i},e.languages.insertBefore("markup","cdata",a)}}),Object.defineProperty(e.languages.markup.tag,"addAttribute",{value:function(r,n){e.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+r+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[n,"language-"+n],inside:e.languages[n]},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(r){var n=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;r.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+n.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+n.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+n.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:n,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},r.languages.css.atrule.inside.rest=r.languages.css;var o=r.languages.markup;o&&(o.tag.addInlined("style","css"),o.tag.addAttribute("style","css"))}(e),e.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|interface|extends|implements|trait|instanceof|new)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,boolean:/\b(?:true|false)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},e.languages.javascript=e.languages.extend("clike",{"class-name":[e.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:prototype|constructor))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:/\b(?:(?:0[xX](?:[\dA-Fa-f](?:_[\dA-Fa-f])?)+|0[bB](?:[01](?:_[01])?)+|0[oO](?:[0-7](?:_[0-7])?)+)n?|(?:\d(?:_\d)?)+n|NaN|Infinity)\b|(?:\b(?:\d(?:_\d)?)+\.?(?:\d(?:_\d)?)*|\B\.(?:\d(?:_\d)?)+)(?:[Ee][+-]?(?:\d(?:_\d)?)+)?/,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),e.languages.javascript["class-name"][0].pattern=/(\b(?:class|interface|extends|implements|instanceof|new)\s+)[\w.\\]+/,e.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:e.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:e.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:e.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:e.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),e.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:e.languages.javascript}},string:/[\s\S]+/}}}),e.languages.markup&&(e.languages.markup.tag.addInlined("script","javascript"),e.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),e.languages.js=e.languages.javascript,function(){if(e!==void 0&&typeof document!="undefined"){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var r={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},n="data-src-status",o='pre[data-src]:not([data-src-status="loaded"]):not([data-src-status="loading"])',i=/\blang(?:uage)?-([\w-]+)\b/i;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(n,"loading");var c=l.appendChild(document.createElement("CODE"));c.textContent="Loading…";var f=l.getAttribute("data-src"),d=s.language;if(d==="none"){var p=(/\.(\w+)$/.exec(f)||[,"none"])[1];d=r[p]||p}u(c,d),u(l,d);var v=e.plugins.autoloader;v&&v.loadLanguages(d);var y=new XMLHttpRequest;y.open("GET",f,!0),y.onreadystatechange=function(){y.readyState==4&&(y.status<400&&y.responseText?(l.setAttribute(n,"loaded"),c.textContent=y.responseText,e.highlightElement(c)):(l.setAttribute(n,"failed"),y.status>=400?c.textContent="✖ Error "+y.status+" while fetching file: "+y.statusText:c.textContent="✖ Error: File does not exist or is empty"))},y.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),r=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,n=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,o=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function i(s,l){return s=s.replace(/<S>/g,function(){return r}).replace(/<BRACES>/g,function(){return n}).replace(/<SPREAD>/g,function(){return o}),RegExp(s,l)}o=i(o).source,t.languages.jsx=t.languages.extend("markup",e),t.languages.jsx.tag.pattern=i(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),t.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/i,t.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/i,t.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,t.languages.jsx.tag.inside.comment=e.comment,t.languages.insertBefore("inside","attr-name",{spread:{pattern:i(/<SPREAD>/.source),inside:t.languages.jsx}},t.languages.jsx.tag),t.languages.insertBefore("inside","special-attr",{script:{pattern:i(/=<BRACES>/.source),inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:t.languages.jsx},alias:"language-javascript"}},t.languages.jsx.tag);var a=function(s){return s?typeof s=="string"?s:typeof s.content=="string"?s.content:s.content.map(a).join(""):""},u=function(s){for(var l=[],c=0;c<s.length;c++){var f=s[c],d=!1;if(typeof f!="string"&&(f.type==="tag"&&f.content[0]&&f.content[0].type==="tag"?f.content[0].content[0].content==="</"?l.length>0&&l[l.length-1].tagName===a(f.content[0].content[1])&&l.pop():f.content[f.content.length-1].content==="/>"||l.push({tagName:a(f.content[0].content[1]),openedBraces:0}):l.length>0&&f.type==="punctuation"&&f.content==="{"?l[l.length-1].openedBraces++:l.length>0&&l[l.length-1].openedBraces>0&&f.type==="punctuation"&&f.content==="}"?l[l.length-1].openedBraces--:d=!0),(d||typeof f=="string")&&l.length>0&&l[l.length-1].openedBraces===0){var p=a(f);c<s.length-1&&(typeof s[c+1]=="string"||s[c+1].type==="plain-text")&&(p+=a(s[c+1]),s.splice(c+1,1)),c>0&&(typeof s[c-1]=="string"||s[c-1].type==="plain-text")&&(p=a(s[c-1])+p,s.splice(c-1,1),c--),s[c]=new t.Token("plain-text",p,null,p)}f.content&&typeof f.content!="string"&&u(f.content)}};t.hooks.add("after-tokenize",function(s){s.language!=="jsx"&&s.language!=="tsx"||u(s.tokens)})})(Prism),function(t){t.languages.typescript=t.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:string|Function|any|number|boolean|Array|symbol|console|Promise|unknown|never)\b/}),t.languages.typescript.keyword.push(/\b(?:abstract|as|declare|implements|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete t.languages.typescript.parameter;var e=t.languages.extend("typescript",{});delete e["class-name"],t.languages.typescript["class-name"].inside=e,t.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e}}}}),t.languages.ts=t.languages.typescript}(Prism),Prism.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup,Prism.hooks.add("wrap",function(t){t.type==="entity"&&(t.attributes.title=t.content.replace(/&amp;/,"&"))}),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(t,e){var r={};r["language-"+e]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[e]},r.cdata=/^<!\[CDATA\[|\]\]>$/i;var n={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:r}};n["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:n},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]*?\*\/|\/\/.*|#(?!\[).*/,r=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],n=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,o=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,i=/[{}\[\](),:;]/;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:r,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:n,operator:o,punctuation:i};var a={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside: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:r,number:n,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/,r=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,n={pattern:RegExp(r+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};t.languages.java=t.languages.extend("clike",{"class-name":[n,{pattern:RegExp(r+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:n.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":n,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/,r=/\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 r})+")"),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 r(S,P,$){return RegExp(e(S,P),"")}function n(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),d=s(o+" "+i+" "+u),p=n(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),v=n(/\((?:[^()]|<<self>>)*\)/.source,2),y=/@?\b[A-Za-z_]\w*\b/.source,g=e(/<<0>>(?:\s*<<1>>)?/.source,[y,p]),m=e(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[f,g]),h=/\[\s*(?:,\s*)*\]/.source,b=e(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[m,h]),w=e(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[p,v,h]),D=e(/\(<<0>>+(?:,<<0>>+)+\)/.source,[w]),x=e(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[D,m,h]),C={keyword:c,punctuation:/[<>()?,.:[\]]/},O=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,T=/"(?:\\.|[^\\"\r\n])*"/.source,R=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;t.languages.csharp=t.languages.extend("clike",{string:[{pattern:r(/(^|[^$\\])<<0>>/.source,[R]),lookbehind:!0,greedy:!0},{pattern:r(/(^|[^@$\\])<<0>>/.source,[T]),lookbehind:!0,greedy:!0},{pattern:RegExp(O),greedy:!0,alias:"character"}],"class-name":[{pattern:r(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[m]),lookbehind:!0,inside:C},{pattern:r(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[y,x]),lookbehind:!0,inside:C},{pattern:r(/(\busing\s+)<<0>>(?=\s*=)/.source,[y]),lookbehind:!0},{pattern:r(/(\b<<0>>\s+)<<1>>/.source,[l,g]),lookbehind:!0,inside:C},{pattern:r(/(\bcatch\s*\(\s*)<<0>>/.source,[m]),lookbehind:!0,inside:C},{pattern:r(/(\bwhere\s+)<<0>>/.source,[y]),lookbehind:!0},{pattern:r(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[b]),lookbehind:!0,inside:C},{pattern:r(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[x,d,y]),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:r(/([(,]\s*)<<0>>(?=\s*:)/.source,[y]),lookbehind:!0,alias:"punctuation"}}),t.languages.insertBefore("csharp","class-name",{namespace:{pattern:r(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[y]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:r(/(\b(?:default|typeof|sizeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[v]),lookbehind:!0,alias:"class-name",inside:C},"return-type":{pattern:r(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[x,m]),inside:C,alias:"class-name"},"constructor-invocation":{pattern:r(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[x]),lookbehind:!0,inside:C,alias:"class-name"},"generic-method":{pattern:r(/<<0>>\s*<<1>>(?=\s*\()/.source,[y,p]),inside:{function:r(/^<<0>>/.source,[y]),generic:{pattern:RegExp(p),alias:"class-name",inside:C}}},"type-list":{pattern:r(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[l,g,y,x,c.source,v,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:r(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[g,v]),lookbehind:!0,greedy:!0,inside: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=T+"|"+O,M=e(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[H]),K=n(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:r(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[U,W]),lookbehind:!0,greedy:!0,inside:{target:{pattern:r(/^<<0>>(?=\s*:)/.source,[U]),alias:"keyword"},"attribute-arguments":{pattern:r(/\(<<0>>*\)/.source,[K]),inside:t.languages.csharp},"class-name":{pattern:RegExp(m),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var q=/:[^}\r\n]+/.source,rt=n(e(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[M]),2),lt=e(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[rt,q]),st=n(e(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[H]),2),ut=e(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[st,q]);function k(S,P){return{interpolation:{pattern:r(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[S]),lookbehind:!0,inside:{"format-string":{pattern:r(/(^\{(?:(?![}:])<<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:r(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[lt]),lookbehind:!0,greedy:!0,inside:k(lt,rt)},{pattern:r(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[ut]),lookbehind:!0,greedy:!0,inside:k(ut,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",r={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},n={bash:r,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:n},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:r}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:n},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:n.entity}}],environment:{pattern:RegExp("\\$?"+e),alias:"constant"},variable:n.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|aptitude|apt-cache|apt-get|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:if|then|else|elif|fi|for|while|in|case|esac|function|select|do|done|until)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|break|cd|continue|eval|exec|exit|export|getopts|hash|pwd|readonly|return|shift|test|times|trap|umask|unset|alias|bind|builtin|caller|command|declare|echo|enable|help|let|local|logout|mapfile|printf|read|readarray|source|type|typeset|ulimit|unalias|set|shopt)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:true|false)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},r.inside=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=n.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 r(l){return l=l.replace(/<inner>/g,function(){return e}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+l+")")}var n=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,o=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return n}),i=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;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(n),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(n),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:r(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:r(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:r(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:r(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(l){["url","bold","italic","strike","code-snippet"].forEach(function(c){l!==c&&(t.languages.markdown[l].inside.content.inside[c]=t.languages.markdown[c])})}),t.hooks.add("after-tokenize",function(l){l.language!=="markdown"&&l.language!=="md"||function c(f){if(f&&typeof f!="string")for(var d=0,p=f.length;d<p;d++){var v=f[d];if(v.type==="code"){var y=v.content[1],g=v.content[3];if(y&&g&&y.type==="code-language"&&g.type==="code-block"&&typeof y.content=="string"){var m=y.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),h="language-"+(m=(/[a-z][\w-]*/i.exec(m)||[""])[0].toLowerCase());g.alias?typeof g.alias=="string"?g.alias=[g.alias,h]:g.alias.push(h):g.alias=[h]}}else c(v.content)}}(l.tokens)}),t.hooks.add("wrap",function(l){if(l.type==="code-block"){for(var c="",f=0,d=l.classes.length;f<d;f++){var p=l.classes[f],v=/language-(.+)/.exec(p);if(v){c=v[1];break}}var y=t.languages[c];if(y)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 D;return(w=w.toLowerCase())[0]==="#"?(D=w[1]==="x"?parseInt(w.slice(2),16):Number(w.slice(1)),s(D)):u[w]||b})}(l.content),y,c);else if(c&&c!=="none"&&t.plugins.autoloader){var g="md-"+new Date().valueOf()+"-"+Math.floor(1e16*Math.random());l.attributes.id=g,t.plugins.autoloader.loadLanguages(c,function(){var m=document.getElementById(g);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 r=/([^\\])(?:\$(?:\{.*?\}|[\w.]+))/;e==="$"&&(r=/([^\$])(?:\$(?:\{.*?\}|[\w.]+))/),t.content=t.content.replace(/&lt;/g,"<").replace(/&amp;/g,"&"),t.content=Prism.highlight(t.content,{expression:{pattern:r,lookbehind:!0,inside:Prism.languages.groovy}}),t.classes.push(e==="/"?"regex":"gstring")}}});var smt=["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 _z(t){return typeof t=="string"?t.length:typeof t.content=="string"?t.content.length:t.content.reduce(function(e,r){return e+_z(r)},0)}var Sg,lmt=It.String,oi=function(t){if(LC(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return lmt(t)},Pz=function(){var t=Zn(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},HC=It.RegExp,B3=sr(function(){var t=HC("a","y");return t.lastIndex=2,t.exec("abcd")!=null});B3||sr(function(){return!HC("a","y").sticky});var jz={BROKEN_CARET:B3||sr(function(){var t=HC("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),UNSUPPORTED_Y:B3},cmt=_o?Object.defineProperties:function(t,e){Zn(t);for(var r,n=Cm(e),o=ov(e),i=o.length,a=0;i>a;)Dm.f(t,r=o[a++],n[r]);return t},fmt=uh("document","documentElement"),Nz=wz("IE_PROTO"),Uw=function(){},Iz=function(t){return"<script>"+t+"<\/script>"},__=function(t){t.write(Iz("")),t.close();var e=t.parentWindow.Object;return t=null,e},iv=function(){try{Sg=new ActiveXObject("htmlfile")}catch(n){}var t,e;iv=typeof document!="undefined"?document.domain&&Sg?__(Sg):((e=_C("iframe")).style.display="none",fmt.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(Iz("document.F=Object")),t.close(),t.F):__(Sg);for(var r=gy.length;r--;)delete iv.prototype[gy[r]];return iv()};IC[Nz]=!0;var P_,Ww,dmt=Object.create||function(t,e){var r;return t!==null?(Uw.prototype=Zn(t),r=new Uw,Uw.prototype=null,r[Nz]=t):r=iv(),e===void 0?r:cmt(r,e)},pmt=It.RegExp,hmt=sr(function(){var t=pmt(".","s");return!(t.dotAll&&t.exec(`
`)&&t.flags==="s")}),gmt=It.RegExp,vmt=sr(function(){var t=gmt("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),ymt=O3.get,mmt=kC("native-string-replace",String.prototype.replace),vy=RegExp.prototype.exec,F3=vy,bmt=te("".charAt),wmt=te("".indexOf),Emt=te("".replace),Gw=te("".slice),qw=(Ww=/b*/g,ar(vy,P_=/a/,"a"),ar(vy,Ww,"a"),P_.lastIndex!==0||Ww.lastIndex!==0),j_=jz.BROKEN_CARET,Kw=/()??/.exec("")[1]!==void 0;(qw||Kw||j_||hmt||vmt)&&(F3=function(t){var e,r,n,o,i,a,u,s=this,l=ymt(s),c=oi(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=ar(F3,f,c),s.lastIndex=f.lastIndex,e;var d=l.groups,p=j_&&s.sticky,v=ar(Pz,s),y=s.source,g=0,m=c;if(p&&(v=Emt(v,"y",""),wmt(v,"g")===-1&&(v+="g"),m=Gw(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&bmt(c,s.lastIndex-1)!==`
`)&&(y="(?: "+y+")",m=" "+m,g++),r=new RegExp("^(?:"+y+")",v)),Kw&&(r=new RegExp("^"+y+"$(?!\\s)",v)),qw&&(n=s.lastIndex),o=ar(vy,p?r:s,m),p?o?(o.input=Gw(o.input,g),o[0]=Gw(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:qw&&o&&(s.lastIndex=s.global?o.index+o[0].length:n),Kw&&o&&o.length>1&&ar(mmt,o[0],r,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&d)for(o.groups=a=dmt(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var mp=F3;xm({target:"RegExp",proto:!0,forced:/./.exec!==mp},{exec:mp});var VC=Function.prototype,N_=VC.apply,Dmt=VC.bind,I_=VC.call,Cmt=typeof Reflect=="object"&&Reflect.apply||(Dmt?I_.bind(N_):function(){return I_.apply(N_,arguments)}),xmt=ja("species"),Yw=RegExp.prototype,Smt=ja("match"),Amt=It.TypeError,Omt=ja("species"),kmt=te("".charAt),L_=te("".charCodeAt),Bmt=te("".slice),Fmt=function(t){return function(e,r){var n,o,i=oi(ql(e)),a=MC(r),u=i.length;return a<0||a>=u?t?"":void 0:(n=L_(i,a))<55296||n>56319||a+1===u||(o=L_(i,a+1))<56320||o>57343?t?kmt(i,a):n:t?Bmt(i,a,a+2):o-56320+(n-55296<<10)+65536}},Tmt=Fmt(!0),_mt=function(t,e,r){return e+(r?Tmt(t,e).length:1)},Pmt=It.Array,jmt=Math.max,R_=function(t,e,r){for(var n,o,i,a,u=zC(t),s=k3(e,u),l=k3(r===void 0?u:r,u),c=Pmt(jmt(l-s,0)),f=0;s<l;s++,f++)n=c,o=f,i=t[s],(a=PC(o))in n?Dm.f(n,a,jC(0,i)):n[a]=i;return c.length=f,c},Nmt=It.TypeError,M_=function(t,e){var r=t.exec;if(jr(r)){var n=ar(r,t,e);return n!==null&&Zn(n),n}if(ha(t)==="RegExp")return ar(mp,t,e);throw Nmt("RegExp#exec called on incompatible receiver")},qs=jz.UNSUPPORTED_Y,Imt=Math.min,Lz=[].push,Lmt=te(/./.exec),Ks=te(Lz),zf=te("".slice);(function(t,e,r,n){var o=ja(t),i=!sr(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),a=i&&!sr(function(){var l=!1,c=/a/;return(c={}).constructor={},c.constructor[xmt]=function(){return c},c.flags="",c[o]=/./[o],c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||r){var u=te(/./[o]),s=function(l,c,f){var d;return d="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(p,v){var y,g,m=oi(ql(this)),h=v===void 0?4294967295:v>>>0;if(h===0)return[];if(p===void 0)return[m];if(!ti(y=p)||!((g=y[Smt])!==void 0?g:ha(y)=="RegExp"))return ar(c,m,p,h);for(var b,w,D,x=[],C=(p.ignoreCase?"i":"")+(p.multiline?"m":"")+(p.unicode?"u":"")+(p.sticky?"y":""),O=0,T=new RegExp(p.source,C+"g");(b=ar(mp,T,m))&&!((w=T.lastIndex)>O&&(Ks(x,zf(m,O,b.index)),b.length>1&&b.index<m.length&&Cmt(Lz,x,R_(b,1)),D=b[0].length,O=w,x.length>=h));)T.lastIndex===b.index&&T.lastIndex++;return O===m.length?!D&&Lmt(T,"")||Ks(x,""):Ks(x,zf(m,O)),x.length>h?R_(x,0,h):x}:"0".split(void 0,0).length?function(p,v){return p===void 0&&v===0?[]:ar(c,this,p,v)}:c,[function(p,v){var y=ql(this),g=p==null?void 0:bz(p,l);return g?ar(g,p,y,v):ar(d,oi(y),p,v)},function(p,v){var y=Zn(this),g=oi(p),m=f(d,y,g,v,d!==c);if(m.done)return m.value;var h=function(K,U){var W,q=Zn(K).constructor;return q===void 0||(W=Zn(q)[Omt])==null?U:function(rt){if(Az(rt))return rt;throw Amt(yz(rt)+" is not a constructor")}(W)}(y,RegExp),b=y.unicode,w=(y.ignoreCase?"i":"")+(y.multiline?"m":"")+(y.unicode?"u":"")+(qs?"g":"y"),D=new h(qs?"^(?:"+y.source+")":y,w),x=v===void 0?4294967295:v>>>0;if(x===0)return[];if(g.length===0)return M_(D,g)===null?[g]:[];for(var C=0,O=0,T=[];O<g.length;){D.lastIndex=qs?0:O;var R,H=M_(D,qs?zf(g,O):g);if(H===null||(R=Imt(Cz(D.lastIndex+(qs?O:0)),g.length))===C)O=_mt(g,O,b);else{if(Ks(T,zf(g,C,O)),T.length===x)return T;for(var M=1;M<=H.length-1;M++)if(Ks(T,H[M]),T.length===x)return T;O=C=R}}return Ks(T,zf(g,C)),T}]}(o,""[t],function(l,c,f,d,p){var v=te(l),y=c.exec;return y===mp||y===Yw.exec?i&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:v(f,c,d)}:{done:!1}});yp(String.prototype,t,s[0]),yp(Yw,o,s[1])}n&&Kl(Yw[o],"sham",!0)})("split",0,!!sr(function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var r="ab".split(t);return r.length!==2||r[0]!=="a"||r[1]!=="b"}),qs),xm({global:!0},{globalThis:It}),On&&(B.fn.attr=On);var Rmt=Dz.PROPER,T3=RegExp.prototype,Rz=T3.toString,Mmt=te(Pz),zmt=sr(function(){return Rz.call({source:"a",flags:"b"})!="/a/b"}),$mt=Rmt&&Rz.name!="toString";(zmt||$mt)&&yp(RegExp.prototype,"toString",function(){var t=Zn(this),e=oi(t.source),r=t.flags;return"/"+e+"/"+oi(r===void 0&&vz(T3,t)&&!("flags"in T3)?Mmt(t):r)},{unsafe:!0});var Hmt=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 r=[],n=e.getMenuConfig("codeSelectLang").codeLangs,o=n===void 0?[]:n;r.push({text:"plain text",value:""}),o.forEach(function(a){var u=a.text,s=a.value;r.push({text:u,value:s})});var i=this.getValue(e);return r.forEach(function(a){a.value===i?a.selected=!0:delete a.selected}),r},t.prototype.isActive=function(e){return!1},t.prototype.getValue=function(e){var r=this.getSelectCodeElem(e);if(r==null||!ft.isElement(r))return"";var n=r.language.toString(),o=e.getMenuConfig("codeSelectLang").codeLangs;return(o===void 0?[]:o).some(function(i){return i.value===n})?n:""},t.prototype.isDisabled=function(e){return e.selection==null||!this.getSelectCodeElem(e)},t.prototype.exec=function(e,r){if(this.getSelectCodeElem(e)!=null){var n={language:r.toString()};N.setNodes(e,n,{match:function(o){return A.checkNodeType(o,"code")}})}},t.prototype.getSelectCodeElem=function(e){var r=A.getSelectedNodeByType(e,"code");if(r==null)return null;var n=A.getParentNode(e,r);return ft.isElement(n)?n.type!=="pre"?null:r:null},t}(),Vmt={renderStyle:function(t,e){var r=t,n=e,o="";return smt.forEach(function(i){r[i]&&(o=i)}),o&&function(i,a){i.data==null&&(i.data={});var u=i.data;u.props==null&&(u.props={}),Object.assign(u.props,{className:a})}(n,o="token "+o),n},parseStyleHtml:function(t,e,r){var n=B(t);if(!ft.isElement(e)||A.getNodeType(e)!=="code")return e;var o=e,i=n.attr("class")||"";return i.indexOf("language-")===0?o.language=i.split("-")[1]||"":o.language=i.toLowerCase(),o},menus:[{key:"codeSelectLang",factory:function(){return new Hmt},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 r=t.language,n=r===void 0?"":r;return"<code "+(n?'class="language-'+n+'"':"")+">"+e+"</code>"}}]},Umt=/"/g,Wmt=te("".replace);xm({target:"String",proto:!0,forced:sr(function(){var t="".anchor('"');return t!==t.toLowerCase()||t.split('"').length>3})},{anchor:function(t){return e=t,r=oi(ql(this)),n="<a",(n+=' name="'+Wmt(oi(e),Umt,"&quot;")+'"')+">"+r+"</a>";var e,r,n}});var Mz=function(t){var e,r,n,o=function(m,h){var b=typeof Symbol=="function"&&m[Symbol.iterator];if(!b)return m;var w,D,x=b.call(m),C=[];try{for(;(h===void 0||h-- >0)&&!(w=x.next()).done;)C.push(w.value)}catch(O){D={error:O}}finally{try{w&&!w.done&&(b=x.return)&&b.call(x)}finally{if(D)throw D.error}}return C}(t,2),i=o[0],a=o[1],u=[],s=function(m){if(!it.isText(m))return null;var h=A.getParentNode(null,m);if(h&&A.getNodeType(h)==="code"){var b=A.getParentNode(null,h);if(b&&A.getNodeType(b)==="pre")return h}return null}(i);if(s==null)return u;var l=s.language,c=l===void 0?"":l;if(!c)return u;var f=function(m,h){if(!h)return[];var b=T_.languages[h];return b?T_.tokenize(m.text,b):[]}(i,c),d=0;try{for(var p=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),v=p.next();!v.done;v=p.next()){var y=v.value,g=d+_z(y);typeof y!="string"&&u.push(((n={})[y.type]=!0,n.anchor={path:a,offset:d},n.focus={path:a,offset:g},n)),d=g}}catch(m){e={error:m}}finally{try{v&&!v.done&&(r=p.return)&&r.call(p)}finally{if(e)throw e.error}}return u},Oe=function(){return Oe=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Oe.apply(this,arguments)},or=function(){function t(){throw new Error(`不能实例化
Can not construct a instance`)}return t.setEditorConfig=function(e){e===void 0&&(e={}),this.editorConfig=Oe(Oe({},this.editorConfig),e)},t.setSimpleEditorConfig=function(e){e===void 0&&(e={}),this.simpleEditorConfig=Oe(Oe({},this.simpleEditorConfig),e)},t.setToolbarConfig=function(e){e===void 0&&(e={}),this.toolbarConfig=Oe(Oe({},this.toolbarConfig),e)},t.setSimpleToolbarConfig=function(e){e===void 0&&(e={}),this.simpleToolbarConfig=Oe(Oe({},this.simpleToolbarConfig),e)},t.registerPlugin=function(e){this.plugins.push(e)},t.registerMenu=function(e,r){(function(n,o){var i=n.key,a=n.factory,u=n.config,s=wn(wn({},u),o||{});if(zd[i]!=null)throw new Error("Duplicated key '"+i+"' in menu items");zd[i]=a,function(l,c){c!=null&&(sN[l]=c)}(i,s)})(e,r)},t.registerRenderElem=function(e){(function(r){var n=r.type,o=r.renderElem;PN[n||""]=o})(e)},t.registerRenderStyle=function(e){(function(r){AE.push(r)})(e)},t.registerElemToHtml=function(e){(function(r){var n=r.type,o=r.elemToHtml;lN[n||""]=o})(e)},t.registerStyleToHtml=function(e){(function(r){wE.push(r)})(e)},t.registerPreParseHtml=function(e){(function(r){ON.push(r)})(e)},t.registerParseElemHtml=function(e){(function(r){var n=r.selector,o=r.parseElemHtml;r0[n]=o})(e)},t.registerParseStyleHtml=function(e){(function(r){eD.push(r)})(e)},t.registerModule=function(e){nu(e)},t.editorConfig={},t.simpleEditorConfig={},t.toolbarConfig={},t.simpleToolbarConfig={},t.plugins=[],t}();/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */function nu(t){var e=t.menus,r=t.renderElems,n=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 or.registerMenu(c)}),r&&r.forEach(function(c){return or.registerRenderElem(c)}),n&&or.registerRenderStyle(n),o&&o.forEach(function(c){return or.registerElemToHtml(c)}),i&&or.registerStyleToHtml(i),a&&a.forEach(function(c){return or.registerPreParseHtml(c)}),u&&u.forEach(function(c){return or.registerParseElemHtml(c)}),s&&or.registerParseStyleHtml(s),l&&or.registerPlugin(l)}Zat.forEach(function(t){return nu(t)}),nu(klt),nu(tdt),nu(cgt),nu(eyt),nu(Vmt);var zz='<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>',$z={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"]}},Gmt={hoverbarKeys:Oe(Oe({},$z),{text:{menuKeys:["headerSelect","insertLink","bulletedList","|","bold","through","color","bgColor","clearStyle"]}})};or.setEditorConfig(Oe(Oe({},Gmt),{decorate:Mz}));var qmt={hoverbarKeys:$z};or.setSimpleEditorConfig(Oe(Oe({},qmt),{decorate:Mz}));var Kmt={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:zz,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"]};or.setToolbarConfig(Kmt);var Ymt={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:zz,menuKeys:["insertImage","uploadImage"]},"insertVideo","insertTable","codeBlock","|","undo","redo","|","fullScreen"]};function Xmt(t){t===void 0&&(t={});var e=t.selector,r=e===void 0?"":e,n=t.content,o=n===void 0?[]:n,i=t.html,a=t.config,u=a===void 0?{}:a,s=t.mode,l=(s===void 0?"default":s)==="simple"?or.simpleEditorConfig:or.editorConfig,c=Oe(Oe({},l.hoverbarKeys||{}),u.hoverbarKeys||{});return JQ({selector:r,config:Oe(Oe(Oe({},l),u),{hoverbarKeys:c}),content:o,html:i,plugins:or.plugins})}function Zmt(t){var e=t.selector,r=t.editor,n=t.config,o=n===void 0?{}:n,i=t.mode,a=i===void 0?"default":i;if(!e)throw new Error("Cannot find 'selector' when create toolbar");var u=a==="simple"?or.simpleToolbarConfig:or.toolbarConfig,s=function(l,c){if(l==null)throw new Error("Cannot create toolbar, because editor is null");var f=c.selector,d=c.config,p=d===void 0?{}:d;if(function(g,m){return FN(g,"data-w-e-toolbar",m)}(l,f))throw new Error("Repeated create toolbar by selector '"+f+"'");var v=wn({toolbarKeys:[],excludeKeys:[],insertKeys:{index:0,keys:[]},modalAppendToBody:!1},p||{}),y=new ntt(f,v);return G5.set(y,l),zy.set(l,y),y}(r,{selector:e,config:Oe(Oe({},u),o)});return s}or.setSimpleToolbarConfig(Ymt);var Jmt=Object.defineProperty,Qmt=Object.defineProperties,t1t=Object.getOwnPropertyDescriptors,z_=Object.getOwnPropertySymbols,e1t=Object.prototype.hasOwnProperty,r1t=Object.prototype.propertyIsEnumerable,$_=(t,e,r)=>e in t?Jmt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,n1t=(t,e)=>{for(var r in e||(e={}))e1t.call(e,r)&&$_(t,r,e[r]);if(z_)for(var r of z_(e))r1t.call(e,r)&&$_(t,r,e[r]);return t},o1t=(t,e)=>Qmt(t,t1t(e));function Ii(t){let e=`请使用 '@${t}' 事件,不要放在 props 中`;return e+=`
Please use '@${t}' event instead of props`,e}var Hz=(t,e)=>{for(const[r,n]of e)t[r]=n;return t};const i1t=H_({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 r=Xw(null),n=Xz(null),o=Xw(""),i=()=>{if(!r.value)return;const u=Qz(t.defaultContent);Xmt({selector:r.value,mode:t.mode,content:u||[],html:t.defaultHtml||t.modelValue||"",config:o1t(n1t({},t.defaultConfig),{onCreated(s){if(n.value=s,e.emit("onCreated",s),t.defaultConfig.onCreated){const l=Ii("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=Ii("onChange");throw new Error(c)}},onDestroyed(s){if(e.emit("onDestroyed",s),t.defaultConfig.onDestroyed){const l=Ii("onDestroyed");throw new Error(l)}},onMaxLength(s){if(e.emit("onMaxLength",s),t.defaultConfig.onMaxLength){const l=Ii("onMaxLength");throw new Error(l)}},onFocus(s){if(e.emit("onFocus",s),t.defaultConfig.onFocus){const l=Ii("onFocus");throw new Error(l)}},onBlur(s){if(e.emit("onBlur",s),t.defaultConfig.onBlur){const l=Ii("onBlur");throw new Error(l)}},customAlert(s,l){if(e.emit("customAlert",s,l),t.defaultConfig.customAlert){const c=Ii("customAlert");throw new Error(c)}},customPaste:(s,l)=>{if(t.defaultConfig.customPaste){const f=Ii("customPaste");throw new Error(f)}let c;return e.emit("customPaste",s,l,f=>{c=f}),c}})})};function a(u){const s=n.value;s!=null&&s.setHtml(u)}return Zz(()=>{i()}),Jz(()=>t.modelValue,u=>{u!==o.value&&a(u)}),{box:r}}}),a1t={ref:"box",style:{height:"100%"}};function u1t(t,e,r,n,o,i){return U_(),V_("div",a1t,null,512)}var p1t=Hz(i1t,[["render",u1t]]);const s1t=H_({props:{editor:{type:Object},mode:{type:String,default:"default"},defaultConfig:{type:Object,default:{}}},setup(t){const e=Xw(null),r=n=>{if(e.value){if(n==null)throw new Error("Not found instance of Editor when create <Toolbar/> component");A.getToolbar(n)||Zmt({editor:n,selector:e.value||"<div></div>",mode:t.mode,config:t.defaultConfig})}};return t$(()=>{const{editor:n}=t;n!=null&&r(n)}),{selector:e}}}),l1t={ref:"selector"};function c1t(t,e,r,n,o,i){return U_(),V_("div",l1t,null,512)}var h1t=Hz(s1t,[["render",c1t]]);export{p1t as E,h1t as T};