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