UNPKG

agora-rtc-sdk-ng

Version:
5 lines (4 loc) 1.58 MB
/** * AgoraWebSDK_N-v4.24.4-0-gb4d645709-dirty Copyright AgoraInc. */ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).AgoraRTC=t()}(this,(function(){"use strict";function e(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(n){if("default"!==n&&!(n in e)){var i=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,i.get?i:{enumerable:!0,get:function(){return t[n]}})}}))})),Object.freeze(e)}var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var i=function(e){try{return!!e()}catch(e){return!0}},r=!i((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),o=r,s=Function.prototype,a=s.call,c=o&&s.bind.bind(a,a),d=o?c:function(e){return function(){return a.apply(e,arguments)}},l=d({}.isPrototypeOf),u=function(e){return e&&e.Math===Math&&e},h=u("object"==typeof globalThis&&globalThis)||u("object"==typeof window&&window)||u("object"==typeof self&&self)||u("object"==typeof t&&t)||u("object"==typeof t&&t)||function(){return this}()||Function("return this")(),p=r,_=Function.prototype,E=_.apply,m=_.call,f="object"==typeof Reflect&&Reflect.apply||(p?m.bind(E):function(){return m.apply(E,arguments)}),g=d,S=g({}.toString),T=g("".slice),R=function(e){return T(S(e),8,-1)},v=R,y=d,b=function(e){if("Function"===v(e))return y(e)},C="object"==typeof document&&document.all,I=void 0===C&&void 0!==C?function(e){return"function"==typeof e||e===C}:function(e){return"function"==typeof e},A={},w=!i((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),O=r,N=Function.prototype.call,D=O?N.bind(N):function(){return N.apply(N,arguments)},P={},L={}.propertyIsEnumerable,k=Object.getOwnPropertyDescriptor,M=k&&!L.call({1:2},1);P.f=M?function(e){var t=k(this,e);return!!t&&t.enumerable}:L;var U,V,x=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},F=i,B=R,j=Object,G=d("".split),W=F((function(){return!j("z").propertyIsEnumerable(0)}))?function(e){return"String"===B(e)?G(e,""):j(e)}:j,K=function(e){return null==e},H=K,Y=TypeError,X=function(e){if(H(e))throw new Y("Can't call method on "+e);return e},J=W,z=X,Z=function(e){return J(z(e))},q=I,Q=function(e){return"object"==typeof e?null!==e:q(e)},$={},ee=$,te=h,ne=I,ie=function(e){return ne(e)?e:void 0},re=function(e,t){return arguments.length<2?ie(ee[e])||ie(te[e]):ee[e]&&ee[e][t]||te[e]&&te[e][t]},oe=h.navigator,se=oe&&oe.userAgent,ae=se?String(se):"",ce=h,de=ae,le=ce.process,ue=ce.Deno,he=le&&le.versions||ue&&ue.version,pe=he&&he.v8;pe&&(V=(U=pe.split("."))[0]>0&&U[0]<4?1:+(U[0]+U[1])),!V&&de&&(!(U=de.match(/Edge\/(\d+)/))||U[1]>=74)&&(U=de.match(/Chrome\/(\d+)/))&&(V=+U[1]);var _e=V,Ee=_e,me=i,fe=h.String,ge=!!Object.getOwnPropertySymbols&&!me((function(){var e=Symbol("symbol detection");return!fe(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Ee&&Ee<41})),Se=ge&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Te=re,Re=I,ve=l,ye=Object,be=Se?function(e){return"symbol"==typeof e}:function(e){var t=Te("Symbol");return Re(t)&&ve(t.prototype,ye(e))},Ce=String,Ie=function(e){try{return Ce(e)}catch(e){return"Object"}},Ae=I,we=Ie,Oe=TypeError,Ne=function(e){if(Ae(e))return e;throw new Oe(we(e)+" is not a function")},De=Ne,Pe=K,Le=function(e,t){var n=e[t];return Pe(n)?void 0:De(n)},ke=D,Me=I,Ue=Q,Ve=TypeError,xe={exports:{}},Fe=h,Be=Object.defineProperty,je=h,Ge=function(e,t){try{Be(Fe,e,{value:t,configurable:!0,writable:!0})}catch(n){Fe[e]=t}return t},We="__core-js_shared__",Ke=xe.exports=je[We]||Ge(We,{});(Ke.versions||(Ke.versions=[])).push({version:"3.49.0",mode:"pure",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.49.0/LICENSE",source:"https://github.com/zloirock/core-js"});var He=xe.exports,Ye=He,Xe=function(e,t){return Ye[e]||(Ye[e]=t||{})},Je=X,ze=Object,Ze=function(e){return ze(Je(e))},qe=Ze,Qe=d({}.hasOwnProperty),$e=Object.hasOwn||function(e,t){return Qe(qe(e),t)},et=d,tt=0,nt=Math.random(),it=et(1.1.toString),rt=function(e){return"Symbol("+(void 0===e?"":e)+")_"+it(++tt+nt,36)},ot=Xe,st=$e,at=rt,ct=ge,dt=Se,lt=h.Symbol,ut=ot("wks"),ht=dt?lt.for||lt:lt&&lt.withoutSetter||at,pt=function(e){return st(ut,e)||(ut[e]=ct&&st(lt,e)?lt[e]:ht("Symbol."+e)),ut[e]},_t=D,Et=Q,mt=be,ft=Le,gt=function(e,t){var n,i;if("string"===t&&Me(n=e.toString)&&!Ue(i=ke(n,e)))return i;if(Me(n=e.valueOf)&&!Ue(i=ke(n,e)))return i;if("string"!==t&&Me(n=e.toString)&&!Ue(i=ke(n,e)))return i;throw new Ve("Can't convert object to primitive value")},St=TypeError,Tt=pt("toPrimitive"),Rt=function(e,t){if(!Et(e)||mt(e))return e;var n,i=ft(e,Tt);if(i){if(void 0===t&&(t="default"),n=_t(i,e,t),!Et(n)||mt(n))return n;throw new St("Can't convert object to primitive value")}return void 0===t&&(t="number"),gt(e,t)},vt=be,yt=function(e){var t=Rt(e,"string");return vt(t)?t:t+""},bt=Q,Ct=h.document,It=bt(Ct)&&bt(Ct.createElement),At=function(e){return It?Ct.createElement(e):{}},wt=At,Ot=!w&&!i((function(){return 7!==Object.defineProperty(wt("div"),"a",{get:function(){return 7}}).a})),Nt=w,Dt=D,Pt=P,Lt=x,kt=Z,Mt=yt,Ut=$e,Vt=Ot,xt=Object.getOwnPropertyDescriptor;A.f=Nt?xt:function(e,t){if(e=kt(e),t=Mt(t),Vt)try{return xt(e,t)}catch(e){}if(Ut(e,t))return Lt(!Dt(Pt.f,e,t),e[t])};var Ft=i,Bt=I,jt=/#|\.prototype\./,Gt=function(e,t){var n=Kt[Wt(e)];return n===Yt||n!==Ht&&(Bt(t)?Ft(t):!!t)},Wt=Gt.normalize=function(e){return String(e).replace(jt,".").toLowerCase()},Kt=Gt.data={},Ht=Gt.NATIVE="N",Yt=Gt.POLYFILL="P",Xt=Gt,Jt=Ne,zt=r,Zt=b(b.bind),qt=function(e,t){return Jt(e),void 0===t?e:zt?Zt(e,t):function(){return e.apply(t,arguments)}},Qt={},$t=w&&i((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),en=Q,tn=String,nn=TypeError,rn=function(e){if(en(e))return e;throw new nn(tn(e)+" is not an object")},on=w,sn=Ot,an=$t,cn=rn,dn=yt,ln=TypeError,un=Object.defineProperty,hn=Object.getOwnPropertyDescriptor,pn="enumerable",_n="configurable",En="writable";Qt.f=on?an?function(e,t,n){if(cn(e),t=dn(t),cn(n),"function"==typeof e&&"prototype"===t&&"value"in n&&En in n&&!n[En]){var i=hn(e,t);i&&i[En]&&(e[t]=n.value,n={configurable:_n in n?n[_n]:i[_n],enumerable:pn in n?n[pn]:i[pn],writable:!1})}return un(e,t,n)}:un:function(e,t,n){if(cn(e),t=dn(t),cn(n),sn)try{return un(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new ln("Accessors not supported");return"value"in n&&(e[t]=n.value),e};var mn=Qt,fn=x,gn=w?function(e,t,n){return mn.f(e,t,fn(1,n))}:function(e,t,n){return e[t]=n,e},Sn=h,Tn=f,Rn=b,vn=I,yn=A.f,bn=Xt,Cn=$,In=qt,An=gn,wn=$e,On=function(e){var t=function(n,i,r){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(n);case 2:return new e(n,i)}return new e(n,i,r)}return Tn(e,this,arguments)};return t.prototype=e.prototype,t},Nn=function(e,t){var n,i,r,o,s,a,c,d,l,u=e.target,h=e.global,p=e.stat,_=e.proto,E=h?Sn:p?Sn[u]:Sn[u]&&Sn[u].prototype,m=h?Cn:Cn[u]||An(Cn,u,{})[u],f=m.prototype;for(o in t)i=!(n=bn(h?o:u+(p?".":"#")+o,e.forced))&&E&&wn(E,o),a=m[o],i&&(c=e.dontCallGetSet?(l=yn(E,o))&&l.value:E[o]),s=i&&c?c:t[o],(n||_||typeof a!=typeof s)&&(d=e.bind&&i?In(s,Sn):e.wrap&&i?On(s):_&&vn(s)?Rn(s):s,(e.sham||s&&s.sham||a&&a.sham)&&An(d,"sham",!0),An(m,o,d),_&&(wn(Cn,r=u+"Prototype")||An(Cn,r,{}),An(Cn[r],o,s),e.real&&f&&(n||!f[o])&&An(f,o,s)))},Dn=Math.ceil,Pn=Math.floor,Ln=Math.trunc||function(e){var t=+e;return(t>0?Pn:Dn)(t)},kn=Ln,Mn=function(e){var t=+e;return t!=t||0===t?0:kn(t)},Un=Mn,Vn=Math.max,xn=Math.min,Fn=function(e,t){var n=Un(e);return n<0?Vn(n+t,0):xn(n,t)},Bn=Mn,jn=Math.min,Gn=function(e){var t=Bn(e);return t>0?jn(t,9007199254740991):0},Wn=Gn,Kn=function(e){return Wn(e.length)},Hn=Z,Yn=Fn,Xn=Kn,Jn=function(e){return function(t,n,i){var r=Hn(t),o=Xn(r);if(0===o)return!e&&-1;var s,a=Yn(i,o);if(e&&n!=n){for(;o>a;)if((s=r[a++])!=s)return!0}else for(;o>a;a++)if((e||a in r)&&r[a]===n)return e||a||0;return!e&&-1}},zn={includes:Jn(!0),indexOf:Jn(!1)},Zn=Nn,qn=zn.includes,Qn=i,$n=Qn((function(){return!Array(1).includes()})),ei=Qn((function(){return[,1].includes(void 0,1)}));Zn({target:"Array",proto:!0,forced:$n||ei},{includes:function(e){return qn(this,e,arguments.length>1?arguments[1]:void 0)}});var ti=h,ni=$,ii=function(e,t){var n=ni[e+"Prototype"],i=n&&n[t];if(i)return i;var r=ti[e],o=r&&r.prototype;return o&&o[t]},ri=ii("Array","includes"),oi=Q,si=R,ai=pt("match"),ci=function(e){var t;return oi(e)&&(void 0!==(t=e[ai])?!!t:"RegExp"===si(e))},di=ci,li=TypeError,ui={};ui[pt("toStringTag")]="z";var hi="[object z]"===String(ui),pi=hi,_i=I,Ei=R,mi=pt("toStringTag"),fi=Object,gi="Arguments"===Ei(function(){return arguments}()),Si=pi?Ei:function(e){var t,n,i;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=fi(e),mi))?n:gi?Ei(t):"Object"===(i=Ei(t))&&_i(t.callee)?"Arguments":i},Ti=Si,Ri=String,vi=function(e){if("Symbol"===Ti(e))throw new TypeError("Cannot convert a Symbol value to a string");return Ri(e)},yi=pt("match"),bi=Nn,Ci=function(e){if(di(e))throw new li("The method doesn't accept regular expressions");return e},Ii=X,Ai=vi,wi=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[yi]=!1,"/./"[e](t)}catch(e){}}return!1},Oi=d("".indexOf);bi({target:"String",proto:!0,forced:!wi("includes")},{includes:function(e){return!!~Oi(Ai(Ii(this)),Ai(Ci(e)),arguments.length>1?arguments[1]:void 0)}});var Ni=ii("String","includes"),Di=l,Pi=ri,Li=Ni,ki=Array.prototype,Mi=String.prototype,Ui=function(e){var t=e.includes;return e===ki||Di(ki,e)&&t===ki.includes?Pi:"string"==typeof e||e===Mi||Di(Mi,e)&&t===Mi.includes?Li:t},Vi=n(Ui),xi=Ne,Fi=Ze,Bi=W,ji=Kn,Gi=TypeError,Wi="Reduce of empty array with no initial value",Ki=function(e){return function(t,n,i,r){var o=Fi(t),s=Bi(o),a=ji(o);if(xi(n),0===a&&i<2)throw new Gi(Wi);var c=e?a-1:0,d=e?-1:1;if(i<2)for(;;){if(c in s){r=s[c],c+=d;break}if(c+=d,e?c<0:a<=c)throw new Gi(Wi)}for(;e?c>=0:a>c;c+=d)c in s&&(r=n(r,s[c],c,o));return r}},Hi={left:Ki(!1),right:Ki(!0)},Yi=i,Xi=function(e,t){var n=[][e];return!!n&&Yi((function(){n.call(null,t||function(){return 1},1)}))},Ji=h,zi=ae,Zi=R,qi=function(e){return zi.slice(0,e.length)===e},Qi=qi("Bun/")?"BUN":qi("Cloudflare-Workers")?"CLOUDFLARE":qi("Deno/")?"DENO":qi("Node.js/")?"NODE":Ji.Bun&&"string"==typeof Bun.version?"BUN":Ji.Deno&&"object"==typeof Deno.version?"DENO":"process"===Zi(Ji.process)?"NODE":Ji.window&&Ji.document?"BROWSER":"REST",$i="NODE"===Qi,er=Hi.left;Nn({target:"Array",proto:!0,forced:!$i&&_e>79&&_e<83||!Xi("reduce")},{reduce:function(e){var t=arguments.length;return er(this,e,t,t>1?arguments[1]:void 0)}});var tr=ii("Array","reduce"),nr=l,ir=tr,rr=Array.prototype,or=function(e){var t=e.reduce;return e===rr||nr(rr,e)&&t===rr.reduce?ir:t},sr=or,ar=n(sr),cr=R,dr=Array.isArray||function(e){return"Array"===cr(e)},lr=Nn,ur=dr,hr=d([].reverse),pr=[1,2];lr({target:"Array",proto:!0,forced:String(pr)===String(pr.reverse())},{reverse:function(){return ur(this)&&(this.length=this.length),hr(this)}});var _r=ii("Array","reverse"),Er=l,mr=_r,fr=Array.prototype,gr=function(e){var t=e.reverse;return e===fr||Er(fr,e)&&t===fr.reverse?mr:t},Sr=gr,Tr=n(Sr),Rr=rt,vr=Xe("keys"),yr=function(e){return vr[e]||(vr[e]=Rr(e))},br=!i((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Cr=$e,Ir=I,Ar=Ze,wr=br,Or=yr("IE_PROTO"),Nr=Object,Dr=Nr.prototype,Pr=wr?Nr.getPrototypeOf:function(e){var t=Ar(e);if(Cr(t,Or))return t[Or];var n=t.constructor;return Ir(n)&&t instanceof n?n.prototype:t instanceof Nr?Dr:null},Lr=d,kr=Ne,Mr=Q,Ur=function(e){return Mr(e)||null===e},Vr=String,xr=TypeError,Fr=function(e,t,n){try{return Lr(kr(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(e){}},Br=Q,jr=X,Gr=function(e){if(Ur(e))return e;throw new xr("Can't set "+Vr(e)+" as a prototype")},Wr=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Fr(Object.prototype,"__proto__","set"))(n,[]),t=n instanceof Array}catch(e){}return function(n,i){return jr(n),Gr(i),Br(n)?(t?e(n,i):n.__proto__=i,n):n}}():void 0),Kr={},Hr={},Yr=$e,Xr=Z,Jr=zn.indexOf,zr=Hr,Zr=d([].push),qr=function(e,t){var n,i=Xr(e),r=0,o=[];for(n in i)!Yr(zr,n)&&Yr(i,n)&&Zr(o,n);for(;t.length>r;)Yr(i,n=t[r++])&&(~Jr(o,n)||Zr(o,n));return o},Qr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],$r=qr,eo=Qr.concat("length","prototype");Kr.f=Object.getOwnPropertyNames||function(e){return $r(e,eo)};var to={};to.f=Object.getOwnPropertySymbols;var no=re,io=Kr,ro=to,oo=rn,so=d([].concat),ao=no("Reflect","ownKeys")||function(e){var t=io.f(oo(e)),n=ro.f;return n?so(t,n(e)):t},co=$e,lo=ao,uo=A,ho=Qt,po={},_o=qr,Eo=Qr,mo=Object.keys||function(e){return _o(e,Eo)},fo=w,go=$t,So=Qt,To=rn,Ro=Z,vo=mo;po.f=fo&&!go?Object.defineProperties:function(e,t){To(e);for(var n,i=Ro(t),r=vo(t),o=r.length,s=0;o>s;)So.f(e,n=r[s++],i[n]);return e};var yo,bo=re("document","documentElement"),Co=rn,Io=po,Ao=Qr,wo=Hr,Oo=bo,No=At,Do="prototype",Po="script",Lo=yr("IE_PROTO"),ko=function(){},Mo=function(e){return"<"+Po+">"+e+"</"+Po+">"},Uo=function(e){e.write(Mo("")),e.close();var t=e.parentWindow.Object;return e=null,t},Vo=function(){try{yo=new ActiveXObject("htmlfile")}catch(e){}var e,t,n;Vo="undefined"!=typeof document?document.domain&&yo?Uo(yo):(t=No("iframe"),n="java"+Po+":",t.style.display="none",Oo.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(Mo("document.F=Object")),e.close(),e.F):Uo(yo);for(var i=Ao.length;i--;)delete Vo[Do][Ao[i]];return Vo()};wo[Lo]=!0;var xo=Object.create||function(e,t){var n;return null!==e?(ko[Do]=Co(e),n=new ko,ko[Do]=null,n[Lo]=e):n=Vo(),void 0===t?n:Io.f(n,t)},Fo=Q,Bo=gn,jo=Error,Go=d("".replace),Wo=String(new jo("zxcasd").stack),Ko=/\n\s*at [^:]*:[^\n]*/,Ho=Ko.test(Wo),Yo=x,Xo=!i((function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",Yo(1,7)),7!==e.stack)})),Jo=gn,zo=function(e,t){if(Ho&&"string"==typeof e&&!jo.prepareStackTrace)for(;t--;)e=Go(e,Ko,"");return e},Zo=Xo,qo=Error.captureStackTrace,Qo={},$o=Qo,es=pt("iterator"),ts=Array.prototype,ns=function(e){return void 0!==e&&($o.Array===e||ts[es]===e)},is=Si,rs=Le,os=K,ss=Qo,as=pt("iterator"),cs=function(e){if(!os(e))return rs(e,as)||rs(e,"@@iterator")||ss[is(e)]},ds=D,ls=Ne,us=rn,hs=Ie,ps=cs,_s=TypeError,Es=function(e,t){var n=arguments.length<2?ps(e):t;if(ls(n))return us(ds(n,e));throw new _s(hs(e)+" is not iterable")},ms=D,fs=rn,gs=Le,Ss=function(e,t,n){var i,r;fs(e);try{if(!(i=gs(e,"return"))){if("throw"===t)throw n;return n}i=ms(i,e)}catch(e){r=!0,i=e}if("throw"===t)throw n;if(r)throw i;return fs(i),n},Ts=qt,Rs=D,vs=rn,ys=Ie,bs=ns,Cs=Kn,Is=l,As=Es,ws=cs,Os=Ss,Ns=TypeError,Ds=function(e,t){this.stopped=e,this.result=t},Ps=Ds.prototype,Ls=function(e,t,n){var i,r,o,s,a,c,d,l=n&&n.that,u=!(!n||!n.AS_ENTRIES),h=!(!n||!n.IS_RECORD),p=!(!n||!n.IS_ITERATOR),_=!(!n||!n.INTERRUPTED),E=Ts(t,l),m=function(e){var t=i;return i=void 0,t&&Os(t,"normal"),new Ds(!0,e)},f=function(e){return u?(vs(e),_?E(e[0],e[1],m):E(e[0],e[1])):_?E(e,m):E(e)};if(h)i=e.iterator;else if(p)i=e;else{if(!(r=ws(e)))throw new Ns(ys(e)+" is not iterable");if(bs(r)){for(o=0,s=Cs(e);s>o;o++)if((a=f(e[o]))&&Is(Ps,a))return a;return new Ds(!1)}i=As(e,r)}for(c=h?e.next:i.next;!(d=Rs(c,i)).done;){var g=d.value;try{a=f(g)}catch(e){if(!i)throw e;Os(i,"throw",e)}if("object"==typeof a&&a&&Is(Ps,a))return a}return new Ds(!1)},ks=vi,Ms=Nn,Us=l,Vs=Pr,xs=Wr,Fs=function(e,t,n){for(var i=lo(t),r=ho.f,o=uo.f,s=0;s<i.length;s++){var a=i[s];co(e,a)||n&&co(n,a)||r(e,a,o(t,a))}},Bs=xo,js=gn,Gs=x,Ws=function(e,t){Fo(t)&&"cause"in t&&Bo(e,"cause",t.cause)},Ks=function(e,t,n,i){Zo&&(qo?qo(e,t):Jo(e,"stack",zo(n,i)))},Hs=Ls,Ys=function(e,t){return void 0===e?arguments.length<2?"":t:ks(e)},Xs=pt("toStringTag"),Js=Error,zs=[].push,Zs=function(e,t){var n,i=Us(qs,this);xs?n=xs(new Js,i?Vs(this):qs):(n=i?this:Bs(qs),js(n,Xs,"Error")),void 0!==t&&js(n,"message",Ys(t)),Ks(n,Zs,n.stack,1),arguments.length>2&&Ws(n,arguments[2]);var r=[];return Hs(e,zs,{that:r}),js(n,"errors",r),n};xs?xs(Zs,Js):Fs(Zs,Js,{name:!0});var qs=Zs.prototype=Bs(Js.prototype,{constructor:Gs(1,Zs),message:Gs(1,""),name:Gs(1,"AggregateError")});Ms({global:!0,constructor:!0,arity:2},{AggregateError:Zs});var Qs,$s,ea,ta=I,na=h.WeakMap,ia=ta(na)&&/native code/.test(String(na)),ra=h,oa=Q,sa=gn,aa=$e,ca=He,da=yr,la=Hr,ua="Object already initialized",ha=ra.TypeError,pa=ra.WeakMap;if(ia||ca.state){var _a=ca.state||(ca.state=new pa);_a.get=_a.get,_a.has=_a.has,_a.set=_a.set,Qs=function(e,t){if(_a.has(e))throw new ha(ua);return t.facade=e,_a.set(e,t),t},$s=function(e){return _a.get(e)||{}},ea=function(e){return _a.has(e)}}else{var Ea=da("state");la[Ea]=!0,Qs=function(e,t){if(aa(e,Ea))throw new ha(ua);return t.facade=e,sa(e,Ea,t),t},$s=function(e){return aa(e,Ea)?e[Ea]:{}},ea=function(e){return aa(e,Ea)}}var ma,fa,ga,Sa={set:Qs,get:$s,has:ea,enforce:function(e){return ea(e)?$s(e):Qs(e,{})},getterFor:function(e){return function(t){var n;if(!oa(t)||(n=$s(t)).type!==e)throw new ha("Incompatible receiver, "+e+" required");return n}}},Ta=w,Ra=$e,va=Function.prototype,ya=Ta&&Object.getOwnPropertyDescriptor,ba=Ra(va,"name"),Ca={EXISTS:ba,PROPER:ba&&"something"===function(){}.name,CONFIGURABLE:ba&&(!Ta||Ta&&ya(va,"name").configurable)},Ia=gn,Aa=function(e,t,n,i){return i&&i.enumerable?e[t]=n:Ia(e,t,n),e},wa=i,Oa=I,Na=Q,Da=xo,Pa=Pr,La=Aa,ka=pt("iterator"),Ma=!1;[].keys&&("next"in(ga=[].keys())?(fa=Pa(Pa(ga)))!==Object.prototype&&(ma=fa):Ma=!0);var Ua=!Na(ma)||wa((function(){var e={};return ma[ka].call(e)!==e}));Oa((ma=Ua?{}:Da(ma))[ka])||La(ma,ka,(function(){return this}));var Va={IteratorPrototype:ma,BUGGY_SAFARI_ITERATORS:Ma},xa=Si,Fa=hi?{}.toString:function(){return"[object "+xa(this)+"]"},Ba=hi,ja=Qt.f,Ga=gn,Wa=$e,Ka=Fa,Ha=pt("toStringTag"),Ya=function(e,t,n,i){var r=n?e:e&&e.prototype;r&&(Wa(r,Ha)||ja(r,Ha,{configurable:!0,value:t}),i&&!Ba&&Ga(r,"toString",Ka))},Xa=Va.IteratorPrototype,Ja=xo,za=x,Za=Ya,qa=Qo,Qa=function(){return this},$a=function(e,t,n,i){var r=t+" Iterator";return e.prototype=Ja(Xa,{next:za(+!i,n)}),Za(e,r,!1,!0),qa[r]=Qa,e},ec=Nn,tc=D,nc=Ca,ic=$a,rc=Pr,oc=Ya,sc=Aa,ac=Qo,cc=Va,dc=nc.PROPER,lc=cc.BUGGY_SAFARI_ITERATORS,uc=pt("iterator"),hc="keys",pc="values",_c="entries",Ec=function(){return this},mc=function(e,t,n,i,r,o,s){ic(n,t,i);var a,c,d,l=function(e){if(e===r&&E)return E;if(!lc&&e&&e in p)return p[e];switch(e){case hc:case pc:case _c:return function(){return new n(this,e)}}return function(){return new n(this)}},u=t+" Iterator",h=!1,p=e.prototype,_=p[uc]||p["@@iterator"]||r&&p[r],E=!lc&&_||l(r),m="Array"===t&&p.entries||_;if(m&&(a=rc(m.call(new e)))!==Object.prototype&&a.next&&(oc(a,u,!0,!0),ac[u]=Ec),dc&&r===pc&&_&&_.name!==pc&&(h=!0,E=function(){return tc(_,this)}),r)if(c={values:l(pc),keys:o?E:l(hc),entries:l(_c)},s)for(d in c)(lc||h||!(d in p))&&sc(p,d,c[d]);else ec({target:t,proto:!0,forced:lc||h},c);return s&&p[uc]!==E&&sc(p,uc,E,{name:r}),ac[t]=E,c},fc=function(e,t){return{value:e,done:t}},gc=Z,Sc=Qo,Tc=Sa;Qt.f;var Rc=mc,vc=fc,yc="Array Iterator",bc=Tc.set,Cc=Tc.getterFor(yc);Rc(Array,"Array",(function(e,t){bc(this,{type:yc,target:gc(e),index:0,kind:t})}),(function(){var e=Cc(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=null,vc(void 0,!0);switch(e.kind){case"keys":return vc(n,!1);case"values":return vc(t[n],!1)}return vc([n,t[n]],!1)}),"values"),Sc.Arguments=Sc.Array;var Ic=Qt,Ac=function(e,t,n){return Ic.f(e,t,n)},wc=re,Oc=Ac,Nc=w,Dc=pt("species"),Pc=l,Lc=TypeError,kc=function(e,t){if(Pc(t,e))return e;throw new Lc("Incorrect invocation")},Mc=I,Uc=He,Vc=d(Function.toString);Mc(Uc.inspectSource)||(Uc.inspectSource=function(e){return Vc(e)});var xc=Uc.inspectSource,Fc=d,Bc=i,jc=I,Gc=Si,Wc=xc,Kc=function(){},Hc=re("Reflect","construct"),Yc=/^\s*(?:class|function)\b/,Xc=Fc(Yc.exec),Jc=!Yc.test(Kc),zc=function(e){if(!jc(e))return!1;try{return Hc(Kc,[],e),!0}catch(e){return!1}},Zc=function(e){if(!jc(e))return!1;switch(Gc(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Jc||!!Xc(Yc,Wc(e))}catch(e){return!0}};Zc.sham=!0;var qc,Qc,$c,ed,td=!Hc||Bc((function(){var e;return zc(zc.call)||!zc(Object)||!zc((function(){e=!0}))||e}))?Zc:zc,nd=td,id=Ie,rd=TypeError,od=rn,sd=function(e){if(nd(e))return e;throw new rd(id(e)+" is not a constructor")},ad=K,cd=pt("species"),dd=function(e,t){var n,i=od(e).constructor;return void 0===i||ad(n=od(i)[cd])?t:sd(n)},ld=d([].slice),ud=TypeError,hd=function(e,t){if(e<t)throw new ud("Not enough arguments");return e},pd=ae,_d=/ipad|iphone|ipod/i.test(pd)&&/applewebkit/i.test(pd),Ed=h,md=f,fd=qt,gd=I,Sd=$e,Td=i,Rd=bo,vd=ld,yd=At,bd=hd,Cd=_d,Id=$i,Ad=Ed.setImmediate,wd=Ed.clearImmediate,Od=Ed.process,Nd=Ed.Dispatch,Dd=Ed.Function,Pd=Ed.MessageChannel,Ld=Ed.String,kd=0,Md={},Ud="onreadystatechange";Td((function(){qc=Ed.location}));var Vd=function(e){if(Sd(Md,e)){var t=Md[e];delete Md[e],t()}},xd=function(e){return function(){Vd(e)}},Fd=function(e){Vd(e.data)},Bd=function(e){Ed.postMessage(Ld(e),qc.protocol+"//"+qc.host)};Ad&&wd||(Ad=function(e){bd(arguments.length,1);var t=gd(e)?e:Dd(e),n=vd(arguments,1);return Md[++kd]=function(){md(t,void 0,n)},Qc(kd),kd},wd=function(e){delete Md[e]},Id?Qc=function(e){Od.nextTick(xd(e))}:Nd&&Nd.now?Qc=function(e){Nd.now(xd(e))}:Pd&&!Cd?(ed=($c=new Pd).port2,$c.port1.onmessage=Fd,Qc=fd(ed.postMessage,ed)):Ed.addEventListener&&gd(Ed.postMessage)&&!Ed.importScripts&&qc&&"file:"!==qc.protocol&&!Td(Bd)?(Qc=Bd,Ed.addEventListener("message",Fd,!1)):Qc=Ud in yd("script")?function(e){Rd.appendChild(yd("script"))[Ud]=function(){Rd.removeChild(this),Vd(e)}}:function(e){setTimeout(xd(e),0)});var jd={set:Ad,clear:wd},Gd=h,Wd=w,Kd=Object.getOwnPropertyDescriptor,Hd=function(e){if(!Wd)return Gd[e];var t=Kd(Gd,e);return t&&t.value},Yd=function(){this.head=null,this.tail=null};Yd.prototype={add:function(e){var t={item:e,next:null},n=this.tail;n?n.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}};var Xd,Jd,zd,Zd,qd,Qd=Yd,$d=/ipad|iphone|ipod/i.test(ae)&&"undefined"!=typeof Pebble,el=/web0s(?!.*chrome)/i.test(ae),tl=h,nl=Hd,il=qt,rl=jd.set,ol=Qd,sl=_d,al=$d,cl=el,dl=$i,ll=tl.MutationObserver||tl.WebKitMutationObserver,ul=tl.document,hl=tl.process,pl=tl.Promise,_l=nl("queueMicrotask");if(!_l){var El=new ol,ml=function(){var e,t;for(dl&&(e=hl.domain)&&e.exit();t=El.get();)try{t()}catch(e){throw El.head&&Xd(),e}e&&e.enter()};sl||dl||cl||!ll||!ul?!al&&pl&&pl.resolve?((Zd=pl.resolve(void 0)).constructor=pl,qd=il(Zd.then,Zd),Xd=function(){qd(ml)}):dl?Xd=function(){hl.nextTick(ml)}:(rl=il(rl,tl),Xd=function(){rl(ml)}):(Jd=!0,zd=ul.createTextNode(""),new ll(ml).observe(zd,{characterData:!0}),Xd=function(){zd.data=Jd=!Jd}),_l=function(e){El.head||Xd(),El.add(e)}}var fl=_l,gl=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},Sl=h.Promise,Tl=h,Rl=Sl,vl=I,yl=Xt,bl=xc,Cl=pt,Il=Qi,Al=_e,wl=Rl&&Rl.prototype,Ol=Cl("species"),Nl=!1,Dl=vl(Tl.PromiseRejectionEvent),Pl=yl("Promise",(function(){var e=bl(Rl),t=e!==String(Rl);if(!t&&66===Al)return!0;if(!wl.catch||!wl.finally)return!0;if(!Al||Al<51||!/native code/.test(e)){var n=new Rl((function(e){e(1)})),i=function(e){e((function(){}),(function(){}))};if((n.constructor={})[Ol]=i,!(Nl=n.then((function(){}))instanceof i))return!0}return!(t||"BROWSER"!==Il&&"DENO"!==Il||Dl)})),Ll={CONSTRUCTOR:Pl,REJECTION_EVENT:Dl,SUBCLASSING:Nl},kl={},Ml=Ne,Ul=TypeError,Vl=function(e){var t,n;this.promise=new e((function(e,i){if(void 0!==t||void 0!==n)throw new Ul("Bad Promise constructor");t=e,n=i})),this.resolve=Ml(t),this.reject=Ml(n)};kl.f=function(e){return new Vl(e)};var xl,Fl,Bl,jl=Nn,Gl=$i,Wl=h,Kl=$,Hl=D,Yl=Aa,Xl=Ya,Jl=function(e){var t=wc(e);Nc&&t&&!t[Dc]&&Oc(t,Dc,{configurable:!0,get:function(){return this}})},zl=Ne,Zl=I,ql=Q,Ql=kc,$l=dd,eu=jd.set,tu=fl,nu=function(e,t){try{1===arguments.length?console.error(e):console.error(e,t)}catch(e){}},iu=gl,ru=Qd,ou=Sa,su=Sl,au=Ll,cu=kl,du="Promise",lu=au.CONSTRUCTOR,uu=au.REJECTION_EVENT,hu=ou.getterFor(du),pu=ou.set,_u=su&&su.prototype,Eu=su,mu=_u,fu=Wl.TypeError,gu=Wl.document,Su=Wl.process,Tu=cu.f,Ru=Tu,vu=!!(gu&&gu.createEvent&&Wl.dispatchEvent),yu="unhandledrejection",bu=function(e){var t;return!(!ql(e)||!Zl(t=e.then))&&t},Cu=function(e,t){var n,i,r,o=t.value,s=1===t.state,a=s?e.ok:e.fail,c=e.resolve,d=e.reject,l=e.domain;try{a?(s||(2===t.rejection&&Nu(t),t.rejection=1),!0===a?n=o:(l&&l.enter(),n=a(o),l&&(l.exit(),r=!0)),n===e.promise?d(new fu("Promise-chain cycle")):(i=bu(n))?Hl(i,n,c,d):c(n)):d(o)}catch(e){l&&!r&&l.exit(),d(e)}},Iu=function(e,t){e.notified||(e.notified=!0,tu((function(){for(var n,i=e.reactions;n=i.get();)Cu(n,e);e.notified=!1,t&&!e.rejection&&wu(e)})))},Au=function(e,t,n){var i,r;vu?((i=gu.createEvent("Event")).promise=t,i.reason=n,i.initEvent(e,!1,!0),Wl.dispatchEvent(i)):i={promise:t,reason:n},!uu&&(r=Wl["on"+e])?r(i):e===yu&&nu("Unhandled promise rejection",n)},wu=function(e){Hl(eu,Wl,(function(){var t,n=e.facade,i=e.value;if(Ou(e)&&(t=iu((function(){Gl?Su.emit("unhandledRejection",i,n):Au(yu,n,i)})),e.rejection=Gl||Ou(e)?2:1,t.error))throw t.value}))},Ou=function(e){return 1!==e.rejection&&!e.parent},Nu=function(e){Hl(eu,Wl,(function(){var t=e.facade;Gl?Su.emit("rejectionHandled",t):Au("rejectionhandled",t,e.value)}))},Du=function(e,t,n){return function(i){e(t,i,n)}},Pu=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,Iu(e,!0))},Lu=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw new fu("Promise can't be resolved itself");var i=bu(t);i?tu((function(){var n={done:!1};try{Hl(i,t,Du(Lu,n,e),Du(Pu,n,e))}catch(t){Pu(n,t,e)}})):(e.value=t,e.state=1,Iu(e,!1))}catch(t){Pu({done:!1},t,e)}}};lu&&(mu=(Eu=function(e){Ql(this,mu),zl(e),Hl(xl,this);var t=hu(this);try{e(Du(Lu,t),Du(Pu,t))}catch(e){Pu(t,e)}}).prototype,(xl=function(e){pu(this,{type:du,done:!1,notified:!1,parent:!1,reactions:new ru,rejection:!1,state:0,value:null})}).prototype=Yl(mu,"then",(function(e,t){var n=hu(this),i=Tu($l(this,Eu));return n.parent=!0,i.ok=!Zl(e)||e,i.fail=Zl(t)&&t,i.domain=Gl?Su.domain:void 0,0===n.state?n.reactions.add(i):tu((function(){Cu(i,n)})),i.promise})),Fl=function(){var e=new xl,t=hu(e);this.promise=e,this.resolve=Du(Lu,t),this.reject=Du(Pu,t)},cu.f=Tu=function(e){return e===Eu||e===Bl?new Fl(e):Ru(e)}),jl({global:!0,constructor:!0,wrap:!0,forced:lu},{Promise:Eu}),Bl=Kl.Promise,Xl(Eu,du,!1,!0),Jl(du);var ku=pt("iterator"),Mu=!1;try{var Uu=0,Vu={next:function(){return{done:!!Uu++}},return:function(){Mu=!0}};Vu[ku]=function(){return this},Array.from(Vu,(function(){throw 2}))}catch(e){}var xu=function(e,t){try{if(!t&&!Mu)return!1}catch(e){return!1}var n=!1;try{var i={};i[ku]=function(){return{next:function(){return{done:n=!0}}}},e(i)}catch(e){}return n},Fu=Sl,Bu=Ll.CONSTRUCTOR||!xu((function(e){Fu.all(e).then(void 0,(function(){}))})),ju=D,Gu=Ne,Wu=kl,Ku=gl,Hu=Ls;Nn({target:"Promise",stat:!0,forced:Bu},{all:function(e){var t=this,n=Wu.f(t),i=n.resolve,r=n.reject,o=Ku((function(){var n=Gu(t.resolve),o=[],s=0,a=1;Hu(e,(function(e){var c=s++,d=!1;a++,ju(n,t,e).then((function(e){d||(d=!0,o[c]=e,--a||i(o))}),r)})),--a||i(o)}));return o.error&&r(o.value),n.promise}});var Yu=Nn,Xu=Ll.CONSTRUCTOR;Sl&&Sl.prototype,Yu({target:"Promise",proto:!0,forced:Xu,real:!0},{catch:function(e){return this.then(void 0,e)}});var Ju=D,zu=Ne,Zu=kl,qu=gl,Qu=Ls;Nn({target:"Promise",stat:!0,forced:Bu},{race:function(e){var t=this,n=Zu.f(t),i=n.reject,r=qu((function(){var r=zu(t.resolve);Qu(e,(function(e){Ju(r,t,e).then(n.resolve,i)}))}));return r.error&&i(r.value),n.promise}});var $u=kl;Nn({target:"Promise",stat:!0,forced:Ll.CONSTRUCTOR},{reject:function(e){var t=$u.f(this);return(0,t.reject)(e),t.promise}});var eh=rn,th=Q,nh=kl,ih=function(e,t){if(eh(e),th(t)&&t.constructor===e)return t;var n=nh.f(e);return(0,n.resolve)(t),n.promise},rh=Nn,oh=Sl,sh=Ll.CONSTRUCTOR,ah=ih,ch=re("Promise"),dh=!sh;rh({target:"Promise",stat:!0,forced:true},{resolve:function(e){return ah(dh&&this===ch?oh:this,e)}});var lh=D,uh=Ne,hh=kl,ph=gl,_h=Ls;Nn({target:"Promise",stat:!0,forced:Bu},{allSettled:function(e){var t=this,n=hh.f(t),i=n.resolve,r=n.reject,o=ph((function(){var n=uh(t.resolve),r=[],o=0,s=1;_h(e,(function(e){var a=o++,c=!1;s++,lh(n,t,e).then((function(e){c||(c=!0,r[a]={status:"fulfilled",value:e},--s||i(r))}),(function(e){c||(c=!0,r[a]={status:"rejected",reason:e},--s||i(r))}))})),--s||i(r)}));return o.error&&r(o.value),n.promise}});var Eh=D,mh=Ne,fh=re,gh=kl,Sh=gl,Th=Ls,Rh="No one promise resolved";Nn({target:"Promise",stat:!0,forced:Bu},{any:function(e){var t=this,n=fh("AggregateError"),i=gh.f(t),r=i.resolve,o=i.reject,s=Sh((function(){var i=mh(t.resolve),s=[],a=0,c=1,d=!1;Th(e,(function(e){var l=a++,u=!1;c++,Eh(i,t,e).then((function(e){u||d||(d=!0,r(e))}),(function(e){u||d||(u=!0,s[l]=e,--c||o(new n(s,Rh)))}))})),--c||o(new n(s,Rh))}));return s.error&&o(s.value),i.promise}});var vh=Nn,yh=f,bh=ld,Ch=kl,Ih=Ne,Ah=gl,wh=h.Promise,Oh=!1;vh({target:"Promise",stat:!0,forced:!wh||!wh.try||Ah((function(){wh.try((function(e){Oh=8===e}),8)})).error||!Oh},{try:function(e){var t=arguments.length>1?bh(arguments,1):[],n=Ch.f(this),i=Ah((function(){return yh(Ih(e),void 0,t)}));return(i.error?n.reject:n.resolve)(i.value),n.promise}});var Nh=kl;Nn({target:"Promise",stat:!0},{withResolvers:function(){var e=Nh.f(this);return{promise:e.promise,resolve:e.resolve,reject:e.reject}}});var Dh=Nn,Ph=Sl,Lh=i,kh=re,Mh=I,Uh=dd,Vh=ih,xh=Ph&&Ph.prototype;Dh({target:"Promise",proto:!0,real:!0,forced:!!Ph&&Lh((function(){xh.finally.call({then:function(){}},(function(){}))}))},{finally:function(e){var t=Uh(this,kh("Promise")),n=Mh(e);return this.then(n?function(n){return Vh(t,e()).then((function(){return n}))}:e,n?function(n){return Vh(t,e()).then((function(){throw n}))}:e)}});var Fh=d,Bh=Mn,jh=vi,Gh=X,Wh=Fh("".charAt),Kh=Fh("".charCodeAt),Hh=Fh("".slice),Yh=function(e){return function(t,n){var i,r,o=jh(Gh(t)),s=Bh(n),a=o.length;return s<0||s>=a?e?"":void 0:(i=Kh(o,s))<55296||i>56319||s+1===a||(r=Kh(o,s+1))<56320||r>57343?e?Wh(o,s):i:e?Hh(o,s,s+2):r-56320+(i-55296<<10)+65536}},Xh={codeAt:Yh(!1),charAt:Yh(!0)},Jh=Xh.charAt,zh=vi,Zh=Sa,qh=mc,Qh=fc,$h="String Iterator",ep=Zh.set,tp=Zh.getterFor($h);qh(String,"String",(function(e){ep(this,{type:$h,string:zh(e),index:0})}),(function(){var e,t=tp(this),n=t.string,i=t.index;return i>=n.length?Qh(void 0,!0):(e=Jh(n,i),t.index+=e.length,Qh(e,!1))}));var np=$.Promise,ip={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},rp=h,op=Ya,sp=Qo;for(var ap in ip)op(rp[ap],ap),sp[ap]=sp.Array;var cp=np,dp=n(cp),lp=ii("Array","values"),up=Si,hp=$e,pp=l,_p=lp,Ep=Array.prototype,mp={DOMTokenList:!0,NodeList:!0},fp=function(e){var t=e.values;return e===Ep||pp(Ep,e)&&t===Ep.values||hp(mp,up(e))?_p:t},gp=n(fp),Sp=Ie,Tp=TypeError,Rp=ld,vp=Math.floor,yp=function(e,t){var n=e.length;if(n<8)for(var i,r,o=1;o<n;){for(r=o,i=e[o];r&&t(e[r-1],i)>0;)e[r]=e[--r];r!==o++&&(e[r]=i)}else for(var s=vp(n/2),a=yp(Rp(e,0,s),t),c=yp(Rp(e,s),t),d=a.length,l=c.length,u=0,h=0;u<d||h<l;)e[u+h]=u<d&&h<l?t(a[u],c[h])<=0?a[u++]:c[h++]:u<d?a[u++]:c[h++];return e},bp=yp,Cp=ae.match(/firefox\/(\d+)/i),Ip=!!Cp&&+Cp[1],Ap=/MSIE|Trident/.test(ae),wp=ae.match(/AppleWebKit\/(\d+)\./),Op=!!wp&&+wp[1],Np=Nn,Dp=d,Pp=Ne,Lp=Ze,kp=Kn,Mp=function(e,t){if(!delete e[t])throw new Tp("Cannot delete property "+Sp(t)+" of "+Sp(e))},Up=vi,Vp=i,xp=bp,Fp=Xi,Bp=Ip,jp=Ap,Gp=_e,Wp=Op,Kp=[],Hp=Dp(Kp.sort),Yp=Dp(Kp.push),Xp=Vp((function(){Kp.sort(void 0)})),Jp=Vp((function(){Kp.sort(null)})),zp=Fp("sort"),Zp=!Vp((function(){if(Gp)return Gp<70;if(!(Bp&&Bp>3)){if(jp)return!0;if(Wp)return Wp<603;var e,t,n,i,r="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(i=0;i<47;i++)Kp.push({k:t+i,v:n})}for(Kp.sort((function(e,t){return t.v-e.v})),i=0;i<Kp.length;i++)t=Kp[i].k.charAt(0),r.charAt(r.length-1)!==t&&(r+=t);return"DGBEFHACIJK"!==r}}));Np({target:"Array",proto:!0,forced:Xp||!Jp||!zp||!Zp},{sort:function(e){void 0!==e&&Pp(e);var t=Lp(this);if(Zp)return void 0===e?Hp(t):Hp(t,e);var n,i,r=[],o=kp(t);for(i=0;i<o;i++)i in t&&Yp(r,t[i]);for(xp(r,function(e){return function(t,n){if(void 0===n)return-1;if(void 0===t)return 1;if(void 0!==e)return+e(t,n)||0;var i=Up(t),r=Up(n);return i===r?0:i>r?1:-1}}(e)),n=kp(r),i=0;i<n;)t[i]=r[i++];for(;i<o;)Mp(t,i++);return t}});var qp=ii("Array","sort"),Qp=l,$p=qp,e_=Array.prototype,t_=function(e){var t=e.sort;return e===e_||Qp(e_,e)&&t===e_.sort?$p:t},n_=n(t_),i_=Nn,r_=d,o_=Fn,s_=RangeError,a_=String.fromCharCode,c_=String.fromCodePoint,d_=r_([].join);i_({target:"String",stat:!0,arity:1,forced:!!c_&&1!==c_.length},{fromCodePoint:function(e){for(var t,n=[],i=arguments.length,r=0;i>r;){if(o_(t=+arguments[r],1114111)!==t)throw new s_(t+" is not a valid code point");n[r++]=t<65536?a_(t):a_(55296+((t-=65536)>>10),t%1024+56320)}return d_(n,"")}});var l_=i,u_=pt("iterator"),h_=!l_((function(){var e=new URL("b?a=1&b=2&c=3","https://a"),t=e.searchParams,n=new URLSearchParams("a=1&a=2&b=3"),i="";return e.pathname="c%20d",t.forEach((function(e,n){t.delete("b"),i+=n+e})),n.delete("a",2),n.delete("b",void 0),!e.toJSON||!n.has("a",1)||n.has("a",2)||!n.has("a",void 0)||n.has("b")||!t.size&&true||!t.sort||"https://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[u_]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("https://тест").host||"#%D0%B1"!==new URL("https://a#б").hash||"a1c3"!==i||"x"!==new URL("https://x",void 0).host})),p_=Aa,__=Nn,E_=h,m_=Hd,f_=re,g_=D,S_=d,T_=w,R_=h_,v_=Aa,y_=Ac,b_=function(e,t,n){for(var i in t)n&&n.unsafe&&e[i]?e[i]=t[i]:p_(e,i,t[i],n);return e},C_=Ya,I_=$a,A_=Sa,w_=kc,O_=I,N_=$e,D_=qt,P_=Si,L_=rn,k_=Q,M_=vi,U_=xo,V_=x,x_=Es,F_=cs,B_=fc,j_=hd,G_=bp,W_=pt("iterator"),K_="URLSearchParams",H_=K_+"Iterator",Y_=A_.set,X_=A_.getterFor(K_),J_=A_.getterFor(H_),z_=m_("fetch"),Z_=m_("Request"),q_=m_("Headers"),Q_=Z_&&Z_.prototype,$_=q_&&q_.prototype,eE=E_.TypeError,tE=E_.encodeURIComponent,nE=String.fromCharCode,iE=f_("String","fromCodePoint"),rE=parseInt,oE=S_("".charAt),sE=S_([].join),aE=S_([].push),cE=S_("".replace),dE=S_([].shift),lE=S_([].splice),uE=S_("".split),hE=S_("".slice),pE=S_(/./.exec),_E=/\+/g,EE=/^[0-9a-f]+$/i,mE=function(e,t){var n=hE(e,t,t+2);return pE(EE,n)?rE(n,16):NaN},fE=function(e){for(var t=0,n=128;n>0&&0!=(e&n);n>>=1)t++;return t},gE=function(e){var t=null,n=e.length;switch(n){case 1:t=e[0];break;case 2:t=(31&e[0])<<6|63&e[1];break;case 3:t=(15&e[0])<<12|(63&e[1])<<6|63&e[2];break;case 4:t=(7&e[0])<<18|(63&e[1])<<12|(63&e[2])<<6|63&e[3]}return null===t||t>1114111||t>=55296&&t<=57343||t<(n>3?65536:n>2?2048:n>1?128:0)?null:t},SE=function(e){for(var t=(e=cE(e,_E," ")).length,n="",i=0;i<t;){var r=oE(e,i);if("%"===r){if("%"===oE(e,i+1)||i+3>t){n+="%",i++;continue}var o=mE(e,i+1);if(o!=o){n+=r,i++;continue}i+=2;var s=fE(o);if(0===s)r=nE(o);else{if(1===s||s>4){n+="�",i++;continue}for(var a=[o],c=1;c<s&&!(++i+3>t||"%"!==oE(e,i));){var d=mE(e,i+1);if(d!=d||d>191||d<128)break;if(1===c){if(224===o&&d<160)break;if(237===o&&d>159)break;if(240===o&&d<144)break;if(244===o&&d>143)break}aE(a,d),i+=2,c++}if(a.length!==s){n+="�";continue}var l=gE(a);if(null===l){for(var u=0;u<s;u++)n+="�";i++;continue}r=iE(l)}}n+=r,i++}return n},TE=/[!'()~]|%20/g,RE={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},vE=function(e){return RE[e]},yE=function(e){return cE(tE(e),TE,vE)},bE=I_((function(e,t){Y_(this,{type:H_,target:X_(e).entries,index:0,kind:t})}),K_,(function(){var e=J_(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=null,B_(void 0,!0);var i=t[n];switch(e.kind){case"keys":return B_(i.key,!1);case"values":return B_(i.value,!1)}return B_([i.key,i.value],!1)}),!0),CE=function(e){this.entries=[],this.url=null,void 0!==e&&(k_(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===oE(e,0)?hE(e,1):e:M_(e)))};CE.prototype={type:K_,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,n,i,r,o,s,a,c=this.entries,d=F_(e);if(d)for(n=(t=x_(e,d)).next;!(i=g_(n,t)).done;){if(o=(r=x_(L_(i.value))).next,(s=g_(o,r)).done||(a=g_(o,r)).done||!g_(o,r).done)throw new eE("Expected sequence with length 2");aE(c,{key:M_(s.value),value:M_(a.value)})}else for(var l in e)N_(e,l)&&aE(c,{key:l,value:M_(e[l])})},parseQuery:function(e){if(e)for(var t,n,i=this.entries,r=uE(e,"&"),o=0;o<r.length;)(t=r[o++]).length&&(n=uE(t,"="),aE(i,{key:SE(dE(n)),value:SE(sE(n,"="))}))},serialize:function(){for(var e,t=this.entries,n=[],i=0;i<t.length;)e=t[i++],aE(n,yE(e.key)+"="+yE(e.value));return sE(n,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var IE=function(){w_(this,AE);var e=Y_(this,new CE(arguments.length>0?arguments[0]:void 0));T_||(this.size=e.entries.length)},AE=IE.prototype;if(b_(AE,{append:function(e,t){var n=X_(this);j_(arguments.length,2),aE(n.entries,{key:M_(e),value:M_(t)}),T_||this.size++,n.updateURL()},delete:function(e){for(var t=X_(this),n=j_(arguments.length,1),i=t.entries,r=M_(e),o=n<2?void 0:arguments[1],s=void 0===o?o:M_(o),a=0;a<i.length;){var c=i[a];c.key!==r||void 0!==s&&c.value!==s?a++:lE(i,a,1)}T_||(this.size=i.length),t.updateURL()},get:function(e){var t=X_(this).entries;j_(arguments.length,1);for(var n=M_(e),i=0;i<t.length;i++)if(t[i].key===n)return t[i].value;return null},getAll:function(e){var t=X_(this).entries;j_(arguments.length,1);for(var n=M_(e),i=[],r=0;r<t.length;r++)t[r].key===n&&aE(i,t[r].value);return i},has:function(e){for(var t=X_(this).entries,n=j_(arguments.length,1),i=M_(e),r=n<2?void 0:arguments[1],o=void 0===r?r:M_(r),s=0;s<t.length;){var a=t[s++];if(a.key===i&&(void 0===o||a.value===o))return!0}return!1},set:function(e,t){var n=X_(this);j_(arguments.length,2);for(var i,r=n.entries,o=!1,s=M_(e),a=M_(t),c=0;c<r.length;c++)(i=r[c]).key===s&&(o?lE(r,c--,1):(o=!0,i.value=a));o||aE(r,{key:s,value:a}),T_||(this.size=r.length),n.updateURL()},sort:function(){var e=X_(this);G_(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,n=X_(this).entries,i=D_(e,arguments.length>1?arguments[1]:void 0),r=0;r<n.length;)i((t=n[r++]).value,t.key,this)},keys:function(){return new bE(this,"keys")},values:function(){return new bE(this,"values")},entries:function(){return new bE(this,"entries")}},{enumerable:!0}),v_(AE,W_,AE.entries,{name:"entries"}),v_(AE,"toString",(function(){return X_(this).serialize()}),{enumerable:!0}),T_&&y_(AE,"size",{get:function(){return X_(this).entries.length},configurable:!0,enumerable:!0}),C_(IE,K_),__({global:!0,constructor:!0,forced:!R_},{URLSearchParams:IE}),!R_&&O_(q_)){var wE=S_($_.has),OE=S_($_.set),NE=function(e){if(k_(e)){var t,n=e.body;if(P_(n)===K_)return t=e.headers?new q_(e.headers):new q_,wE(t,"content-type")||OE(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),U_(e,{body:V_(0,M_(n)),headers:V_(0,t)})}return e};if(O_(z_)&&__({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return z_(e,arguments.length>1?NE(arguments[1]):{})}}),O_(Z_)){var DE=function(e){return w_(this,Q_),new Z_(e,arguments.length>1?NE(arguments[1]):{})};Q_.constructor=DE,DE.prototype=Q_,__({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:DE})}}var PE,LE={URLSearchParams:IE,getState:X_},kE=$.URLSearchParams,ME=w,UE=d,VE=D,xE=i,FE=mo,BE=to,jE=P,GE=Ze,WE=W,KE=Object.assign,HE=Object.defineProperty,YE=UE([].concat),XE=!KE||xE((function(){if(ME&&1!==KE({b:1},KE(HE({},"a",{enumerable:!0,get:function(){HE(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol("assign detection"),i="abcdefghijklmnopqrst";return e[n]=7,i.split("").forEach((function(e){t[e]=e})),7!==KE({},e)[n]||FE(KE({},t)).join("")!==i}))?function(e,t){for(var n=GE(e),i=arguments.length,r=1,o=BE.f,s=jE.f;i>r;)for(var a,c=WE(arguments[r++]),d=o?YE(FE(c),o(c)):FE(c),l=d.length,u=0;l>u;)a=d[u++],ME&&!VE(s,c,a)||(n[a]=c[a]);return n}:KE,JE=rn,zE=Ss,ZE=w,qE=Qt,QE=x,$E=function(e,t,n){ZE?qE.f(e,t,QE(0,n)):e[t]=n},em=w,tm=dr,nm=TypeError,im=Object.getOwnPropertyDescriptor,rm=em&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}()?function(e,t){if(tm(e)&&!im(e,"length").writable)throw new nm("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t},om=qt,sm=D,am=Ze,cm=function(e,t,n,i){try{return i?t(JE(n)[0],n[1]):t(n)}catch(t){zE(e,"throw",t)}},dm=ns,lm=td,um=Kn,hm=$E,pm=rm,_m=Es,Em=cs,mm=Ss,fm=Array,gm=function(e){var t=lm(this),n=arguments.length,i=n>1?arguments[1]:void 0,r=void 0!==i;r&&(i=om(i,n>2?arguments[2]:void 0));var o,s,a,c,d,l,u=am(e),h=Em(u),p=0;if(!h||this===fm&&dm(h))for(o=um(u),s=t?new this(o):fm(o);o>p;p++)l=r?i(u[p],p):u[p],hm(s,p,l);else for(s=t?new this:[],d=(c=_m(u,h)).next;!(a=sm(d,c)).done;p++){l=r?cm(c,i,[a.value,p],!0):a.value;try{hm(s,p,l)}catch(e){mm(c,"throw",e)}}return pm(s,p),s},Sm=d,Tm=2147483647,Rm=/[^\0-\u007E]/,vm=/[.\u3002\uFF0E\uFF61]/g,ym="Overflow: input needs wider integers to process",bm=RangeError,Cm=Sm(vm.exec),Im=Math.floor,Am=String.fromCharCode,wm=Sm("".charCodeAt),Om=Sm([].join),Nm=Sm([].push),Dm=Sm("".replace),Pm=Sm("".split),Lm=Sm("".toLowerCase),km=function(e){return e+22+75*(e<26)},Mm=function(e,t,n){var i=0;for(e=n?Im(e/700):e>>1,e+=Im(e/t);e>455;)e=Im(e/35),i+=36;return Im(i+36*e/(e+38))},Um=function(e){var t=[];e=function(e){for(var t=[],n=0,i=e.length;n<i;){var r=wm(e,n++);if(r>=55296&&r<=56319&&n<i){var o=wm(e,n++);56320==(64512&o)?Nm(t,((1023&r)<<10)+(1023&o)+65536):(Nm(t,r),n--)}else Nm(t,r)}return t}(e);var n,i,r=e.length,o=128,s=0,a=72;for(n=0;n<e.length;n++)(i=e[n])<128&&Nm(t,Am(i));var c=t.length,d=c;for(c&&Nm(t,"-");d<r;){var l=Tm;for(n=0;n<e.length;n++)(i=e[n])>=o&&i<l&&(l=i);var u=d+1;if(l-o>Im((Tm-s)/u))throw new bm(ym);for(s+=(l-o)*u,o=l,n=0;n<e.length;n++){if((i=e[n])<o&&++s>Tm)throw new bm(ym);if(i===o){for(var h=s,p=36;;){var _=p<=a?1:p>=a+26?26:p-a;if(h<_)break;var E=h-_,m=36-_;Nm(t,Am(km(_+E%m))),h=Im(E/m),p+=36}Nm(t,Am(km(h))),a=Mm(s,u,d===c),s=0,d++}}s++,o++}return Om(t,"")},Vm=Nn,xm=w,Fm=h_,Bm=h,jm=qt,Gm=d,Wm=Aa,Km=Ac,Hm=kc,Ym=$e,Xm=XE,Jm=gm,zm=ld,Zm=Xh.codeAt,qm=function(e){var t,n,i=[],r=Pm(Dm(Lm(e),vm,"."),".");for(t=0;t<r.length;t++)n=r[t],Nm(i,Cm(Rm,n)?"xn--"+Um(n):n);return Om(i,".")},Qm=vi,$m=Ya,ef=hd,tf=LE,nf=Sa,rf=nf.set,of=nf.getterFor("URL"),sf=tf.URLSearchParams,af=tf.getState,cf=Bm.URL,df=Bm.TypeError,lf=Bm.encodeURIComponent,uf=Bm.parseInt,hf=Math.floor,pf=Math.pow,_f=Gm("".charAt),Ef=Gm(/./.exec),mf=Gm([].join),ff=Gm(1.1.toString),gf=Gm([].pop),Sf=Gm([].push),Tf=Gm("".replace),Rf=Gm([].shift),vf=Gm("".split),yf=Gm("".slice),bf=Gm("".toLowerCase),Cf=Gm([].unshift),If="Invalid scheme",Af="Invalid host",wf="Invalid port",Of=/[a-z]/i,Nf=/[\d+\-.a-z]/i,Df=/\d/,Pf=/^0x/i,Lf=/^[0-7]+$/,kf=/^\d+$/,Mf=/^[\da-f]+$/i,Uf=/[\0\t\n\r #%/:<>?@[\\\]^|]/,Vf=/[\0\t\n\r #/:<>?@[\\\]^|]/,xf=/^[\u0000-\u0020]+/,Ff=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,Bf=/[\t\n\r]/g,jf=function(e){var t,n,i,r;if("number"==typeof e){for(t=[],n=0;n<4;n++)Cf(t,e%256),e=hf(e/256);return mf(t,".")}if("object"==typeof e){for(t="",i=function(e){for(var t=null,n=1,i=null,r=0,o=0;o<8;o++)0!==e[o]?(r>n&&(t=i,n=r),i=null,r=0):(null===i&&(i=o),++r);return r>n?i:t}(e),n=0;n<8;n++)r&&0===e[n]||(r&&(r=!1),i===n?(t+=n?":":"::",r=!0):(t+=ff(e[n],16),n<7&&(t+=":")));return"["+t+"]"}return e},Gf={},Wf=Xm({},Gf,{" ":1,'"':1,"#":1,"<":1,">":1}),Kf=Xm({},Wf,{"'":1}),Hf=Xm({},Gf,{" ":1,'"':1,"<":1,">":1,"`":1}),Yf=Xm({},Hf,{"#":1,"?":1,"{":1,"}":1,"^":1}),Xf=Xm({},Yf,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),Jf=function(e,t){var n=Zm(e,0);return n>=32&&n<127&&!Ym(t,e)?e:"'"===e&&Ym(t,e)?"%27":lf(e)},zf={ftp:21,file:null,http:80,https:443,ws:80,wss:443},Zf=function(e,t){var n;return 2===e.length&&Ef(Of,_f(e,0))&&(":"===(n=_f(e,1))||!t&&"|"===n)},qf=function(e){var t;return e.length>1&&Zf(yf(e,0,2))&&(2===e.length||"/"===(t=_f(e,2))||"\\"===t||"?"===t||"#"===t)},Qf=function(e){return"."===e||"%2e"===bf(e)},$f={},eg={},tg={},ng={},ig={},rg={},og={},sg={},ag={},cg={},dg={},lg={},ug={},hg={},pg={},_g={},Eg={},mg={},fg={},gg={},Sg={},Tg=function(e,t,n){var i,r,o,s=Qm(e);if(t){if(r=this.parse(s))throw new df(r);this.searchParams=null}else{if(void 0!==n&&(i=new Tg(n,!0)),r=this.parse(s,null,i))throw new df(r);(o=af(new sf)).bindURL(this),this.searchParams=o}};Tg.prototype={type:"URL",parse:function(e,t,n){var i,r,o,s,a,c=this,d=t||$f,l=0,u="",h=!1,p=!1,_=!1;for(e=Qm(e),t||(c.scheme="",c.username="",c.password="",c.host=null,c.port=null,c.path=[],c.query=null,c.fragment=null,c.cannotBeABaseURL=!1,e=Tf(e,xf,""),e=Tf(e,Ff,"$1")),e=Tf(e,Bf,""),i=Jm(e);l<=i.length;){switch(r=i[l],d){case $f:if(!r||!Ef(Of,r)){if(t)return If;d=tg;continue}u+=bf(r),d=eg;break;case eg:if(r&&Ef(Nf,r))u+=bf(r);else{if(":"!==r){if(t)return If;u="",d=tg,l=0;continue}if(t&&(c.isSpecial()!==Ym(zf,u)||"file"===u&&(c.includesCredentials()||null!==c.port)||"file"===c.scheme&&""===c.host))return;if(c.scheme=u,t)return void(c.isSpecial()&&zf[c.scheme]===c.port&&(c.port=null));u="","file"===c.scheme?d=hg:c.isSpecial()&&n&&n.scheme===c.scheme?d=ng:c.isSpecial()?d=sg:"/"===i[l+1]?(d=ig,l++):(c.cannotBeABaseURL=!0,Sf(c.path,""),d=fg)}break;case tg:if(!n||n.cannotBeABaseURL&&"#"!==r)return If;if(n.cannotBeABaseURL&&"#"===r){c.scheme=n.scheme,c.path=zm(n.path),c.query=n.query,c.fragment="",c.cannotBeABaseURL=!0,d=Sg;break}d="file"===n.scheme?hg:rg;continue;case ng:if("/"!==r||"/"!==i[l+1]){d=rg;continue}d=ag,l++;break;case ig:if("/"===r){d=cg;break}d=mg;continue;case rg:if(c.scheme=n.scheme,r===PE)c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=zm(n.path),c.query=n.query;else if("/"===r||"\\"===r&&c.isSpecial())d=og;else if("?"===r)c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=zm(n.path),c.query="",d=gg;else{if("#"!==r){c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=zm(n.path),c.path.length&&c.path.length--,d=mg;continue}c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=zm(n.path),c.query=n.query,c.fragment="",d=Sg}break;case og:if(!c.isSpecial()||"/"!==r&&"\\"!==r){if("/"!==r){c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,d=mg;continue}d=cg}else d=ag;break;case sg:if(d=ag,"/"!==r||"/"!==i[l+1])continue;l++;break;case ag:if("/"!==r&&"\\"!==r){d=cg;continue}break;case cg:if("@"===r){h&&(u="%40"+u),h=!0,o=Jm(u);for(var E=0;E<o.length;E++){var m=o[E];if(":"!==m||_){var f=Jf(m,Xf);_?c.password+=f:c.username+=f}else _=!0}u=""}else if(r===PE||"/"===r||"?"===r||"#"===r||"\\"===r&&c.isSpecial()){if(h&&""===u)return"Invalid authority";l-=Jm(u).length+1,u="",d=dg}else u+=r;break;case dg:case lg:if(t&&"file"===c.scheme){d=_g;continue}if(":"!==r||p){if(r===PE||"/"===r||"?"===r||"#"===r||"\\"===r&&c.isSpecial()){if(c.isSpecial()&&""===u)return Af;if(t&&""===u&&(c.includesCredentials()||null!==c.port))return;if(s=c.parseHost(u))return s;if(u="",d=Eg,t)return;continue}"["===r?p=!0:"]"===r&&(p=!1),u+=r}else{if(""===u)return Af;if(t===lg)return;if(s=c.parseHost(u))return s;u="",d=ug}break;case ug:if(!Ef(Df,r)){if(r===PE||"/"===r||"?"===r||"#"===r||"\\"===r&&c.isSpecial()||t){if(""!==u){var g=uf(u,10);if(g>65535)return wf;c.port=c.isSpecial()&&g===zf[c.scheme]?null:g,u=""}if(t)return;d=Eg;continue}return wf}u+=r;break;case hg:if(c.scheme="file",c.host="","/"===r||"\\"===r)d=pg;else{if(!n||"file"!==n.scheme){d=mg;continue}switch(r){case PE:c.host=n.host,c.path=zm(n.path),c.query=n.query;break;case"?":c.host=n.host,c.path=zm(n.path),c.query="",d=gg;break;case"#":c.host=n.host,c.path=zm(n.path),c.query=n.query,c.fragment="",d=Sg;break;default:c.host=n.host,qf(mf(zm(i,l),""))||(c.path=zm(n.path),c.shortenPath()),d=mg;continue}}break;case pg:if("/"===r||"\\"===r){d=_g;break}n&&"file"===n.scheme&&(c.host=n.host,!qf(mf(zm(i,l),""))&&Zf(n.path[0],!0)&&Sf(c.path,n.path[0])),d=mg;continue;case _g:if(r===PE||"/"===r||"\\"===r||"?"===r||"#"===r){if(!t&&Zf(u))d=mg;else if(""===u){if(c.host="",t)return;d=Eg}else{if(s=c.parseHost(u))return s;if("localhost"===c.host&&(c.host=""),t)return;u="",d=Eg}continue}u+=r;break;case Eg:if(c.isSpecial()){if(d=mg,"/"!==r&&"\\"!==r)continue}else if(t||"?"!==r)if(t||"#"!==r){if(r!==PE&&(d=mg,"/"!==r))continue}else c.fragment="",d=Sg;else c.query="",d=gg;break;case mg:if(r===PE||"/"===r||"\\"===r&&c.isSpecial()||!t&&("?"===r||"#"===r)){if(".."===(a=bf(a=u))||"%2e."===a||".%2e"===a||"%2e%2e"===a?(c.shortenPath(),"/"===r||"\\"===r&&c.isSpecial()||Sf(c.path,"")):Qf(u)?"/"===r||"\\"===r&&c.isSpecial()||Sf(c.path,""):("file"===c.scheme&&!c.path.length&&Zf(u)&&(null!==c.host&&""!==c.host&&(c.host=""),u=_f(u,0)+":"),Sf(c.path,u)),u="","file"===c.scheme&&(r===PE||"?"===r||"#"===r))for(;c.path.length>1&&""===c.path[0];)Rf(c.path);"?"===r?(c.query="",d=gg):"#"===r&&(c.fragment="",d=Sg)