var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},e=function(t){return t&&t.Math===Math&&t},n=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof t&&t)||e("object"==typeof t&&t)||function(){return this}()||Function("return this")(),r={},o=function(t){try{return!!t()}catch(t){return!0}},i=!o((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),c=!o((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),u=c,a=Function.prototype.call,f=u?a.bind(a):function(){return a.apply(a,arguments)},s={},l={}.propertyIsEnumerable,p=Object.getOwnPropertyDescriptor,v=p&&!l.call({1:2},1);s.f=v?function(t){var e=p(this,t);return!!e&&e.enumerable}:l;var h,d,y=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},b=c,g=Function.prototype,m=g.call,w=b&&g.bind.bind(m,m),O=b?w:function(t){return function(){return m.apply(t,arguments)}},j=O,S=j({}.toString),E=j("".slice),T=function(t){return E(S(t),8,-1)},P=o,C=T,R=Object,x=O("".split),N=P((function(){return!R("z").propertyIsEnumerable(0)}))?function(t){return"String"===C(t)?x(t,""):R(t)}:R,_=function(t){return null==t},I=_,M=TypeError,A=function(t){if(I(t))throw new M("Can't call method on "+t);return t},F=N,D=A,k=function(t){return F(D(t))},U="object"==typeof document&&document.all,L=void 0===U&&void 0!==U?function(t){return"function"==typeof t||t===U}:function(t){return"function"==typeof t},z=L,G=function(t){return"object"==typeof t?null!==t:z(t)},B=n,W=L,V=function(t,e){return arguments.length<2?(n=B[t],W(n)?n:void 0):B[t]&&B[t][e];var n},q=O({}.isPrototypeOf),J="undefined"!=typeof navigator&&String(navigator.userAgent)||"",K=n,$=J,H=K.process,X=K.Deno,Y=H&&H.versions||X&&X.version,Q=Y&&Y.v8;Q&&(d=(h=Q.split("."))[0]>0&&h[0]<4?1:+(h[0]+h[1])),!d&&$&&(!(h=$.match(/Edge\/(\d+)/))||h[1]>=74)&&(h=$.match(/Chrome\/(\d+)/))&&(d=+h[1]);var Z=d,tt=Z,et=o,nt=n.String,rt=!!Object.getOwnPropertySymbols&&!et((function(){var t=Symbol("symbol detection");return!nt(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&tt&&tt<41})),ot=rt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,it=V,ct=L,ut=q,at=Object,ft=ot?function(t){return"symbol"==typeof t}:function(t){var e=it("Symbol");return ct(e)&&ut(e.prototype,at(t))},st=String,lt=function(t){try{return st(t)}catch(t){return"Object"}},pt=L,vt=lt,ht=TypeError,dt=function(t){if(pt(t))return t;throw new ht(vt(t)+" is not a function")},yt=dt,bt=_,gt=function(t,e){var n=t[e];return bt(n)?void 0:yt(n)},mt=f,wt=L,Ot=G,jt=TypeError,St={exports:{}},Et=n,Tt=Object.defineProperty,Pt=function(t,e){try{Tt(Et,t,{value:e,configurable:!0,writable:!0})}catch(n){Et[t]=e}return e},Ct=n,Rt=Pt,xt="__core-js_shared__",Nt=St.exports=Ct[xt]||Rt(xt,{});(Nt.versions||(Nt.versions=[])).push({version:"3.37.1",mode:"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.37.1/LICENSE",source:"https://github.com/zloirock/core-js"});var _t=St.exports,It=function(t,e){return _t[t]||(_t[t]=e||{})},Mt=A,At=Object,Ft=function(t){return At(Mt(t))},Dt=O({}.hasOwnProperty),kt=Object.hasOwn||function(t,e){return Dt(Ft(t),e)},Ut=O,Lt=0,zt=Math.random(),Gt=Ut(1..toString),Bt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+Gt(++Lt+zt,36)},Wt=It,Vt=kt,qt=Bt,Jt=rt,Kt=ot,$t=n.Symbol,Ht=Wt("wks"),Xt=Kt?$t.for||$t:$t&&$t.withoutSetter||qt,Yt=function(t){return Vt(Ht,t)||(Ht[t]=Jt&&Vt($t,t)?$t[t]:Xt("Symbol."+t)),Ht[t]},Qt=f,Zt=G,te=ft,ee=gt,ne=function(t,e){var n,r;if("string"===e&&wt(n=t.toString)&&!Ot(r=mt(n,t)))return r;if(wt(n=t.valueOf)&&!Ot(r=mt(n,t)))return r;if("string"!==e&&wt(n=t.toString)&&!Ot(r=mt(n,t)))return r;throw new jt("Can't convert object to primitive value")},re=TypeError,oe=Yt("toPrimitive"),ie=function(t,e){if(!Zt(t)||te(t))return t;var n,r=ee(t,oe);if(r){if(void 0===e&&(e="default"),n=Qt(r,t,e),!Zt(n)||te(n))return n;throw new re("Can't convert object to primitive value")}return void 0===e&&(e="number"),ne(t,e)},ce=ft,ue=function(t){var e=ie(t,"string");return ce(e)?e:e+""},ae=G,fe=n.document,se=ae(fe)&&ae(fe.createElement),le=function(t){return se?fe.createElement(t):{}},pe=le,ve=!i&&!o((function(){return 7!==Object.defineProperty(pe("div"),"a",{get:function(){return 7}}).a})),he=i,de=f,ye=s,be=y,ge=k,me=ue,we=kt,Oe=ve,je=Object.getOwnPropertyDescriptor;r.f=he?je:function(t,e){if(t=ge(t),e=me(e),Oe)try{return je(t,e)}catch(t){}if(we(t,e))return be(!de(ye.f,t,e),t[e])};var Se={},Ee=i&&o((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Te=G,Pe=String,Ce=TypeError,Re=function(t){if(Te(t))return t;throw new Ce(Pe(t)+" is not an object")},xe=i,Ne=ve,_e=Ee,Ie=Re,Me=ue,Ae=TypeError,Fe=Object.defineProperty,De=Object.getOwnPropertyDescriptor,ke="enumerable",Ue="configurable",Le="writable";Se.f=xe?_e?function(t,e,n){if(Ie(t),e=Me(e),Ie(n),"function"==typeof t&&"prototype"===e&&"value"in n&&Le in n&&!n[Le]){var r=De(t,e);r&&r[Le]&&(t[e]=n.value,n={configurable:Ue in n?n[Ue]:r[Ue],enumerable:ke in n?n[ke]:r[ke],writable:!1})}return Fe(t,e,n)}:Fe:function(t,e,n){if(Ie(t),e=Me(e),Ie(n),Ne)try{return Fe(t,e,n)}catch(t){}if("get"in n||"set"in n)throw new Ae("Accessors not supported");return"value"in n&&(t[e]=n.value),t};var ze=Se,Ge=y,Be=i?function(t,e,n){return ze.f(t,e,Ge(1,n))}:function(t,e,n){return t[e]=n,t},We={exports:{}},Ve=i,qe=kt,Je=Function.prototype,Ke=Ve&&Object.getOwnPropertyDescriptor,$e=qe(Je,"name"),He={EXISTS:$e,PROPER:$e&&"something"===function(){}.name,CONFIGURABLE:$e&&(!Ve||Ve&&Ke(Je,"name").configurable)},Xe=O,Ye=L,Qe=St.exports,Ze=Xe(Function.toString);Ye(Qe.inspectSource)||(Qe.inspectSource=function(t){return Ze(t)});var tn,en,nn,rn=Qe.inspectSource,on=L,cn=n.WeakMap,un=on(cn)&&/native code/.test(String(cn)),an=Bt,fn=It("keys"),sn={},ln=un,pn=n,vn=G,hn=Be,dn=kt,yn=St.exports,bn=function(t){return fn[t]||(fn[t]=an(t))},gn=sn,mn="Object already initialized",wn=pn.TypeError,On=pn.WeakMap;if(ln||yn.state){var jn=yn.state||(yn.state=new On);jn.get=jn.get,jn.has=jn.has,jn.set=jn.set,tn=function(t,e){if(jn.has(t))throw new wn(mn);return e.facade=t,jn.set(t,e),e},en=function(t){return jn.get(t)||{}},nn=function(t){return jn.has(t)}}else{var Sn=bn("state");gn[Sn]=!0,tn=function(t,e){if(dn(t,Sn))throw new wn(mn);return e.facade=t,hn(t,Sn,e),e},en=function(t){return dn(t,Sn)?t[Sn]:{}},nn=function(t){return dn(t,Sn)}}var En={set:tn,get:en,has:nn,enforce:function(t){return nn(t)?en(t):tn(t,{})},getterFor:function(t){return function(e){var n;if(!vn(e)||(n=en(e)).type!==t)throw new wn("Incompatible receiver, "+t+" required");return n}}},Tn=O,Pn=o,Cn=L,Rn=kt,xn=i,Nn=He.CONFIGURABLE,_n=rn,In=En.enforce,Mn=En.get,An=String,Fn=Object.defineProperty,Dn=Tn("".slice),kn=Tn("".replace),Un=Tn([].join),Ln=xn&&!Pn((function(){return 8!==Fn((function(){}),"length",{value:8}).length})),zn=String(String).split("String"),Gn=We.exports=function(t,e,n){"Symbol("===Dn(An(e),0,7)&&(e="["+kn(An(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!Rn(t,"name")||Nn&&t.name!==e)&&(xn?Fn(t,"name",{value:e,configurable:!0}):t.name=e),Ln&&n&&Rn(n,"arity")&&t.length!==n.arity&&Fn(t,"length",{value:n.arity});try{n&&Rn(n,"constructor")&&n.constructor?xn&&Fn(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var r=In(t);return Rn(r,"source")||(r.source=Un(zn,"string"==typeof e?e:"")),t};Function.prototype.toString=Gn((function(){return Cn(this)&&Mn(this).source||_n(this)}),"toString");var Bn=L,Wn=Se,Vn=We.exports,qn=Pt,Jn=function(t,e,n,r){r||(r={});var o=r.enumerable,i=void 0!==r.name?r.name:e;if(Bn(n)&&Vn(n,i,r),r.global)o?t[e]=n:qn(e,n);else{try{r.unsafe?t[e]&&(o=!0):delete t[e]}catch(t){}o?t[e]=n:Wn.f(t,e,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return t},Kn={},$n=Math.ceil,Hn=Math.floor,Xn=Math.trunc||function(t){var e=+t;return(e>0?Hn:$n)(e)},Yn=function(t){var e=+t;return e!=e||0===e?0:Xn(e)},Qn=Yn,Zn=Math.max,tr=Math.min,er=Yn,nr=Math.min,rr=function(t){var e=er(t);return e>0?nr(e,9007199254740991):0},or=function(t){return rr(t.length)},ir=k,cr=function(t,e){var n=Qn(t);return n<0?Zn(n+e,0):tr(n,e)},ur=or,ar=function(t){return function(e,n,r){var o=ir(e),i=ur(o);if(0===i)return!t&&-1;var c,u=cr(r,i);if(t&&n!=n){for(;i>u;)if((c=o[u++])!=c)return!0}else for(;i>u;u++)if((t||u in o)&&o[u]===n)return t||u||0;return!t&&-1}},fr={includes:ar(!0),indexOf:ar(!1)},sr=kt,lr=k,pr=fr.indexOf,vr=sn,hr=O([].push),dr=function(t,e){var n,r=lr(t),o=0,i=[];for(n in r)!sr(vr,n)&&sr(r,n)&&hr(i,n);for(;e.length>o;)sr(r,n=e[o++])&&(~pr(i,n)||hr(i,n));return i},yr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"].concat("length","prototype");Kn.f=Object.getOwnPropertyNames||function(t){return dr(t,yr)};var br={};br.f=Object.getOwnPropertySymbols;var gr=V,mr=Kn,wr=br,Or=Re,jr=O([].concat),Sr=gr("Reflect","ownKeys")||function(t){var e=mr.f(Or(t)),n=wr.f;return n?jr(e,n(t)):e},Er=kt,Tr=Sr,Pr=r,Cr=Se,Rr=o,xr=L,Nr=/#|\.prototype\./,_r=function(t,e){var n=Mr[Ir(t)];return n===Fr||n!==Ar&&(xr(e)?Rr(e):!!e)},Ir=_r.normalize=function(t){return String(t).replace(Nr,".").toLowerCase()},Mr=_r.data={},Ar=_r.NATIVE="N",Fr=_r.POLYFILL="P",Dr=_r,kr=n,Ur=r.f,Lr=Be,zr=Jn,Gr=Pt,Br=function(t,e,n){for(var r=Tr(e),o=Cr.f,i=Pr.f,c=0;c<r.length;c++){var u=r[c];Er(t,u)||n&&Er(n,u)||o(t,u,i(e,u))}},Wr=Dr,Vr=function(t,e){var n,r,o,i,c,u=t.target,a=t.global,f=t.stat;if(n=a?kr:f?kr[u]||Gr(u,{}):kr[u]&&kr[u].prototype)for(r in e){if(i=e[r],o=t.dontCallGetSet?(c=Ur(n,r))&&c.value:n[r],!Wr(a?r:u+(f?".":"#")+r,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;Br(i,o)}(t.sham||o&&o.sham)&&Lr(i,"sham",!0),zr(n,r,i,t)}},qr="process"===T(n.process),Jr=O,Kr=dt,$r=G,Hr=function(t){return $r(t)||null===t},Xr=String,Yr=TypeError,Qr=function(t,e,n){try{return Jr(Kr(Object.getOwnPropertyDescriptor(t,e)[n]))}catch(t){}},Zr=G,to=A,eo=function(t){if(Hr(t))return t;throw new Yr("Can't set "+Xr(t)+" as a prototype")},no=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=Qr(Object.prototype,"__proto__","set"))(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return to(n),eo(r),Zr(n)?(e?t(n,r):n.__proto__=r,n):n}}():void 0),ro=Se.f,oo=kt,io=Yt("toStringTag"),co=We.exports,uo=Se,ao=V,fo=function(t,e,n){return n.get&&co(n.get,e,{getter:!0}),n.set&&co(n.set,e,{setter:!0}),uo.f(t,e,n)},so=i,lo=Yt("species"),po=q,vo=TypeError,ho={};ho[Yt("toStringTag")]="z";var yo="[object z]"===String(ho),bo=L,go=T,mo=Yt("toStringTag"),wo=Object,Oo="Arguments"===go(function(){return arguments}()),jo=yo?go:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=wo(t),mo))?n:Oo?go(e):"Object"===(r=go(e))&&bo(e.callee)?"Arguments":r},So=O,Eo=o,To=L,Po=jo,Co=rn,Ro=function(){},xo=V("Reflect","construct"),No=/^\s*(?:class|function)\b/,_o=So(No.exec),Io=!No.test(Ro),Mo=function(t){if(!To(t))return!1;try{return xo(Ro,[],t),!0}catch(t){return!1}},Ao=function(t){if(!To(t))return!1;switch(Po(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Io||!!_o(No,Co(t))}catch(t){return!0}};Ao.sham=!0;var Fo,Do,ko,Uo,Lo=!xo||Eo((function(){var t;return Mo(Mo.call)||!Mo(Object)||!Mo((function(){t=!0}))||t}))?Ao:Mo,zo=Lo,Go=lt,Bo=TypeError,Wo=Re,Vo=function(t){if(zo(t))return t;throw new Bo(Go(t)+" is not a constructor")},qo=_,Jo=Yt("species"),Ko=c,$o=Function.prototype,Ho=$o.apply,Xo=$o.call,Yo="object"==typeof Reflect&&Reflect.apply||(Ko?Xo.bind(Ho):function(){return Xo.apply(Ho,arguments)}),Qo=T,Zo=O,ti=function(t){if("Function"===Qo(t))return Zo(t)},ei=dt,ni=c,ri=ti(ti.bind),oi=function(t,e){return ei(t),void 0===e?t:ni?ri(t,e):function(){return t.apply(e,arguments)}},ii=V("document","documentElement"),ci=O([].slice),ui=TypeError,ai=/(?:ipad|iphone|ipod).*applewebkit/i.test(J),fi=n,si=Yo,li=oi,pi=L,vi=kt,hi=o,di=ii,yi=ci,bi=le,gi=function(t,e){if(t<e)throw new ui("Not enough arguments");return t},mi=ai,wi=qr,Oi=fi.setImmediate,ji=fi.clearImmediate,Si=fi.process,Ei=fi.Dispatch,Ti=fi.Function,Pi=fi.MessageChannel,Ci=fi.String,Ri=0,xi={},Ni="onreadystatechange";hi((function(){Fo=fi.location}));var _i=function(t){if(vi(xi,t)){var e=xi[t];delete xi[t],e()}},Ii=function(t){return function(){_i(t)}},Mi=function(t){_i(t.data)},Ai=function(t){fi.postMessage(Ci(t),Fo.protocol+"//"+Fo.host)};Oi&&ji||(Oi=function(t){gi(arguments.length,1);var e=pi(t)?t:Ti(t),n=yi(arguments,1);return xi[++Ri]=function(){si(e,void 0,n)},Do(Ri),Ri},ji=function(t){delete xi[t]},wi?Do=function(t){Si.nextTick(Ii(t))}:Ei&&Ei.now?Do=function(t){Ei.now(Ii(t))}:Pi&&!mi?(Uo=(ko=new Pi).port2,ko.port1.onmessage=Mi,Do=li(Uo.postMessage,Uo)):fi.addEventListener&&pi(fi.postMessage)&&!fi.importScripts&&Fo&&"file:"!==Fo.protocol&&!hi(Ai)?(Do=Ai,fi.addEventListener("message",Mi,!1)):Do=Ni in bi("script")?function(t){di.appendChild(bi("script"))[Ni]=function(){di.removeChild(this),_i(t)}}:function(t){setTimeout(Ii(t),0)});var Fi={set:Oi,clear:ji},Di=n,ki=i,Ui=Object.getOwnPropertyDescriptor,Li=function(){this.head=null,this.tail=null};Li.prototype={add:function(t){var e={item:t,next:null},n=this.tail;n?n.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}};var zi,Gi,Bi,Wi,Vi,qi=Li,Ji=/ipad|iphone|ipod/i.test(J)&&"undefined"!=typeof Pebble,Ki=/web0s(?!.*chrome)/i.test(J),$i=n,Hi=function(t){if(!ki)return Di[t];var e=Ui(Di,t);return e&&e.value},Xi=oi,Yi=Fi.set,Qi=qi,Zi=ai,tc=Ji,ec=Ki,nc=qr,rc=$i.MutationObserver||$i.WebKitMutationObserver,oc=$i.document,ic=$i.process,cc=$i.Promise,uc=Hi("queueMicrotask");if(!uc){var ac=new Qi,fc=function(){var t,e;for(nc&&(t=ic.domain)&&t.exit();e=ac.get();)try{e()}catch(t){throw ac.head&&zi(),t}t&&t.enter()};Zi||nc||ec||!rc||!oc?!tc&&cc&&cc.resolve?((Wi=cc.resolve(void 0)).constructor=cc,Vi=Xi(Wi.then,Wi),zi=function(){Vi(fc)}):nc?zi=function(){ic.nextTick(fc)}:(Yi=Xi(Yi,$i),zi=function(){Yi(fc)}):(Gi=!0,Bi=oc.createTextNode(""),new rc(fc).observe(Bi,{characterData:!0}),zi=function(){Bi.data=Gi=!Gi}),uc=function(t){ac.head||zi(),ac.add(t)}}var sc=uc,lc=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},pc=n.Promise,vc="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,hc=!vc&&!qr&&"object"==typeof window&&"object"==typeof document,dc=n,yc=pc,bc=L,gc=Dr,mc=rn,wc=Yt,Oc=hc,jc=vc,Sc=Z;yc&&yc.prototype;var Ec=wc("species"),Tc=!1,Pc=bc(dc.PromiseRejectionEvent),Cc=gc("Promise",(function(){var t=mc(yc),e=t!==String(yc);if(!e&&66===Sc)return!0;if(!Sc||Sc<51||!/native code/.test(t)){var n=new yc((function(t){t(1)})),r=function(t){t((function(){}),(function(){}))};if((n.constructor={})[Ec]=r,!(Tc=n.then((function(){}))instanceof r))return!0}return!e&&(Oc||jc)&&!Pc})),Rc={CONSTRUCTOR:Cc,REJECTION_EVENT:Pc,SUBCLASSING:Tc},xc={},Nc=dt,_c=TypeError,Ic=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw new _c("Bad Promise constructor");e=t,n=r})),this.resolve=Nc(e),this.reject=Nc(n)};xc.f=function(t){return new Ic(t)};var Mc,Ac,Fc,Dc=Vr,kc=qr,Uc=n,Lc=f,zc=Jn,Gc=no,Bc=function(t,e,n){t&&!n&&(t=t.prototype),t&&!oo(t,io)&&ro(t,io,{configurable:!0,value:e})},Wc=function(t){var e=ao(t);so&&e&&!e[lo]&&fo(e,lo,{configurable:!0,get:function(){return this}})},Vc=dt,qc=L,Jc=G,Kc=function(t,e){if(po(e,t))return t;throw new vo("Incorrect invocation")},$c=function(t,e){var n,r=Wo(t).constructor;return void 0===r||qo(n=Wo(r)[Jo])?e:Vo(n)},Hc=Fi.set,Xc=sc,Yc=function(t,e){try{1===arguments.length?console.error(t):console.error(t,e)}catch(t){}},Qc=lc,Zc=qi,tu=En,eu=pc,nu=xc,ru="Promise",ou=Rc.CONSTRUCTOR,iu=Rc.REJECTION_EVENT,cu=Rc.SUBCLASSING,uu=tu.getterFor(ru),au=tu.set,fu=eu&&eu.prototype,su=eu,lu=fu,pu=Uc.TypeError,vu=Uc.document,hu=Uc.process,du=nu.f,yu=du,bu=!!(vu&&vu.createEvent&&Uc.dispatchEvent),gu="unhandledrejection",mu=function(t){var e;return!(!Jc(t)||!qc(e=t.then))&&e},wu=function(t,e){var n,r,o,i=e.value,c=1===e.state,u=c?t.ok:t.fail,a=t.resolve,f=t.reject,s=t.domain;try{u?(c||(2===e.rejection&&Tu(e),e.rejection=1),!0===u?n=i:(s&&s.enter(),n=u(i),s&&(s.exit(),o=!0)),n===t.promise?f(new pu("Promise-chain cycle")):(r=mu(n))?Lc(r,n,a,f):a(n)):f(i)}catch(t){s&&!o&&s.exit(),f(t)}},Ou=function(t,e){t.notified||(t.notified=!0,Xc((function(){for(var n,r=t.reactions;n=r.get();)wu(n,t);t.notified=!1,e&&!t.rejection&&Su(t)})))},ju=function(t,e,n){var r,o;bu?((r=vu.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),Uc.dispatchEvent(r)):r={promise:e,reason:n},!iu&&(o=Uc["on"+t])?o(r):t===gu&&Yc("Unhandled promise rejection",n)},Su=function(t){Lc(Hc,Uc,(function(){var e,n=t.facade,r=t.value;if(Eu(t)&&(e=Qc((function(){kc?hu.emit("unhandledRejection",r,n):ju(gu,n,r)})),t.rejection=kc||Eu(t)?2:1,e.error))throw e.value}))},Eu=function(t){return 1!==t.rejection&&!t.parent},Tu=function(t){Lc(Hc,Uc,(function(){var e=t.facade;kc?hu.emit("rejectionHandled",e):ju("rejectionhandled",e,t.value)}))},Pu=function(t,e,n){return function(r){t(e,r,n)}},Cu=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,Ou(t,!0))},Ru=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw new pu("Promise can't be resolved itself");var r=mu(e);r?Xc((function(){var n={done:!1};try{Lc(r,e,Pu(Ru,n,t),Pu(Cu,n,t))}catch(e){Cu(n,e,t)}})):(t.value=e,t.state=1,Ou(t,!1))}catch(e){Cu({done:!1},e,t)}}};if(ou&&(lu=(su=function(t){Kc(this,lu),Vc(t),Lc(Mc,this);var e=uu(this);try{t(Pu(Ru,e),Pu(Cu,e))}catch(t){Cu(e,t)}}).prototype,(Mc=function(t){au(this,{type:ru,done:!1,notified:!1,parent:!1,reactions:new Zc,rejection:!1,state:0,value:void 0})}).prototype=zc(lu,"then",(function(t,e){var n=uu(this),r=du($c(this,su));return n.parent=!0,r.ok=!qc(t)||t,r.fail=qc(e)&&e,r.domain=kc?hu.domain:void 0,0===n.state?n.reactions.add(r):Xc((function(){wu(r,n)})),r.promise})),Ac=function(){var t=new Mc,e=uu(t);this.promise=t,this.resolve=Pu(Ru,e),this.reject=Pu(Cu,e)},nu.f=du=function(t){return t===su||undefined===t?new Ac(t):yu(t)},qc(eu)&&fu!==Object.prototype)){Fc=fu.then,cu||zc(fu,"then",(function(t,e){var n=this;return new su((function(t,e){Lc(Fc,n,t,e)})).then(t,e)}),{unsafe:!0});try{delete fu.constructor}catch(t){}Gc&&Gc(fu,lu)}Dc({global:!0,constructor:!0,wrap:!0,forced:ou},{Promise:su}),Bc(su,ru,!1),Wc(ru);var xu={},Nu=xu,_u=Yt("iterator"),Iu=Array.prototype,Mu=jo,Au=gt,Fu=_,Du=xu,ku=Yt("iterator"),Uu=function(t){if(!Fu(t))return Au(t,ku)||Au(t,"@@iterator")||Du[Mu(t)]},Lu=f,zu=dt,Gu=Re,Bu=lt,Wu=Uu,Vu=TypeError,qu=f,Ju=Re,Ku=gt,$u=oi,Hu=f,Xu=Re,Yu=lt,Qu=function(t){return void 0!==t&&(Nu.Array===t||Iu[_u]===t)},Zu=or,ta=q,ea=function(t,e){var n=arguments.length<2?Wu(t):e;if(zu(n))return Gu(Lu(n,t));throw new Vu(Bu(t)+" is not iterable")},na=Uu,ra=function(t,e,n){var r,o;Ju(t);try{if(!(r=Ku(t,"return"))){if("throw"===e)throw n;return n}r=qu(r,t)}catch(t){o=!0,r=t}if("throw"===e)throw n;if(o)throw r;return Ju(r),n},oa=TypeError,ia=function(t,e){this.stopped=t,this.result=e},ca=ia.prototype,ua=function(t,e,n){var r,o,i,c,u,a,f,s=n&&n.that,l=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_RECORD),v=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),d=$u(e,s),y=function(t){return r&&ra(r,"normal",t),new ia(!0,t)},b=function(t){return l?(Xu(t),h?d(t[0],t[1],y):d(t[0],t[1])):h?d(t,y):d(t)};if(p)r=t.iterator;else if(v)r=t;else{if(!(o=na(t)))throw new oa(Yu(t)+" is not iterable");if(Qu(o)){for(i=0,c=Zu(t);c>i;i++)if((u=b(t[i]))&&ta(ca,u))return u;return new ia(!1)}r=ea(t,o)}for(a=p?t.next:r.next;!(f=Hu(a,r)).done;){try{u=b(f.value)}catch(t){ra(r,"throw",t)}if("object"==typeof u&&u&&ta(ca,u))return u}return new ia(!1)},aa=Yt("iterator"),fa=!1;try{var sa=0,la={next:function(){return{done:!!sa++}},return:function(){fa=!0}};la[aa]=function(){return this},Array.from(la,(function(){throw 2}))}catch(t){}var pa=pc,va=function(t,e){try{if(!e&&!fa)return!1}catch(t){return!1}var n=!1;try{var r={};r[aa]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(t){}return n},ha=Rc.CONSTRUCTOR||!va((function(t){pa.all(t).then(void 0,(function(){}))})),da=f,ya=dt,ba=xc,ga=lc,ma=ua;Vr({target:"Promise",stat:!0,forced:ha},{all:function(t){var e=this,n=ba.f(e),r=n.resolve,o=n.reject,i=ga((function(){var n=ya(e.resolve),i=[],c=0,u=1;ma(t,(function(t){var a=c++,f=!1;u++,da(n,e,t).then((function(t){f||(f=!0,i[a]=t,--u||r(i))}),o)})),--u||r(i)}));return i.error&&o(i.value),n.promise}});var wa=Vr,Oa=Rc.CONSTRUCTOR,ja=pc,Sa=V,Ea=L,Ta=Jn,Pa=ja&&ja.prototype;if(wa({target:"Promise",proto:!0,forced:Oa,real:!0},{catch:function(t){return this.then(void 0,t)}}),Ea(ja)){var Ca=Sa("Promise").prototype.catch;Pa.catch!==Ca&&Ta(Pa,"catch",Ca,{unsafe:!0})}var Ra=f,xa=dt,Na=xc,_a=lc,Ia=ua;Vr({target:"Promise",stat:!0,forced:ha},{race:function(t){var e=this,n=Na.f(e),r=n.reject,o=_a((function(){var o=xa(e.resolve);Ia(t,(function(t){Ra(o,e,t).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var Ma=xc;Vr({target:"Promise",stat:!0,forced:Rc.CONSTRUCTOR},{reject:function(t){var e=Ma.f(this);return(0,e.reject)(t),e.promise}});var Aa=Re,Fa=G,Da=xc,ka=Vr,Ua=Rc.CONSTRUCTOR,La=function(t,e){if(Aa(t),Fa(e)&&e.constructor===t)return e;var n=Da.f(t);return(0,n.resolve)(e),n.promise};V("Promise"),ka({target:"Promise",stat:!0,forced:Ua},{resolve:function(t){return La(this,t)}});export{t as c};
