UNPKG

string-to-react-component

Version:

Dynamically create and render React components from strings at runtime, converting strings to React components for flexible UI generation.

9 lines 54.6 kB
/** * string-to-react-component - Dynamically create and render React components from strings at runtime, converting strings to React components for flexible UI generation. * * @version v4.0.1 * @homepage https://github.com/dev-javascript/string-to-react-component/ * @author dev-javascript javascript.code.dev@gmail.com * @license MIT */ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("react"),require("@babel/standalone")):"function"==typeof define&&define.amd?define(["react","@babel/standalone"],e):(t="undefined"!=typeof globalThis?globalThis:t||self).StringToReactComponent=e(t.React,t.Babel)}(this,(function(t,e){"use strict";function r(t){var e=Object.create(null);return t&&Object.keys(t).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,n.get?n:{enumerable:!0,get:function(){return t[r]}})}})),e.default=t,Object.freeze(e)}var n=r(e),o="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function i(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var a=function(t){try{return!!t()}catch(t){return!0}},u=!a((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),s=u,c=Function.prototype,f=c.call,l=s&&c.bind.bind(f,f),h=s?l:function(t){return function(){return f.apply(t,arguments)}},p=h({}.isPrototypeOf),v=function(t){return t&&t.Math===Math&&t},d=v("object"==typeof globalThis&&globalThis)||v("object"==typeof window&&window)||v("object"==typeof self&&self)||v("object"==typeof o&&o)||v("object"==typeof o&&o)||function(){return this}()||Function("return this")(),g=u,m=Function.prototype,y=m.apply,b=m.call,w="object"==typeof Reflect&&Reflect.apply||(g?b.bind(y):function(){return b.apply(y,arguments)}),S=h,O=S({}.toString),P=S("".slice),j=function(t){return P(O(t),8,-1)},R=j,E=h,k=function(t){if("Function"===R(t))return E(t)},T="object"==typeof document&&document.all,L=void 0===T&&void 0!==T?function(t){return"function"==typeof t||t===T}:function(t){return"function"==typeof t},_={},U=!a((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),C=u,A=Function.prototype.call,x=C?A.bind(A):function(){return A.apply(A,arguments)},I={},B={}.propertyIsEnumerable,M=Object.getOwnPropertyDescriptor,F=M&&!B.call({1:2},1);I.f=F?function(t){var e=M(this,t);return!!e&&e.enumerable}:B;var q,H,N=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},z=a,D=j,G=Object,V=h("".split),W=z((function(){return!G("z").propertyIsEnumerable(0)}))?function(t){return"String"===D(t)?V(t,""):G(t)}:G,$=function(t){return null==t},J=$,Q=TypeError,Y=function(t){if(J(t))throw new Q("Can't call method on "+t);return t},K=W,X=Y,Z=function(t){return K(X(t))},tt=L,et=function(t){return"object"==typeof t?null!==t:tt(t)},rt={},nt=rt,ot=d,it=L,at=function(t){return it(t)?t:void 0},ut=function(t,e){return arguments.length<2?at(nt[t])||at(ot[t]):nt[t]&&nt[t][e]||ot[t]&&ot[t][e]},st="undefined"!=typeof navigator&&String(navigator.userAgent)||"",ct=d,ft=st,lt=ct.process,ht=ct.Deno,pt=lt&&lt.versions||ht&&ht.version,vt=pt&&pt.v8;vt&&(H=(q=vt.split("."))[0]>0&&q[0]<4?1:+(q[0]+q[1])),!H&&ft&&(!(q=ft.match(/Edge\/(\d+)/))||q[1]>=74)&&(q=ft.match(/Chrome\/(\d+)/))&&(H=+q[1]);var dt=H,gt=dt,mt=a,yt=d.String,bt=!!Object.getOwnPropertySymbols&&!mt((function(){var t=Symbol("symbol detection");return!yt(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&gt&&gt<41})),wt=bt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,St=ut,Ot=L,Pt=p,jt=Object,Rt=wt?function(t){return"symbol"==typeof t}:function(t){var e=St("Symbol");return Ot(e)&&Pt(e.prototype,jt(t))},Et=String,kt=function(t){try{return Et(t)}catch(t){return"Object"}},Tt=L,Lt=kt,_t=TypeError,Ut=function(t){if(Tt(t))return t;throw new _t(Lt(t)+" is not a function")},Ct=Ut,At=$,xt=function(t,e){var r=t[e];return At(r)?void 0:Ct(r)},It=x,Bt=L,Mt=et,Ft=TypeError,qt={exports:{}},Ht=!0,Nt=d,zt=Object.defineProperty,Dt=d,Gt=function(t,e){try{zt(Nt,t,{value:e,configurable:!0,writable:!0})}catch(r){Nt[t]=e}return e},Vt="__core-js_shared__",Wt=qt.exports=Dt[Vt]||Gt(Vt,{});(Wt.versions||(Wt.versions=[])).push({version:"3.36.1",mode:"pure",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.36.1/LICENSE",source:"https://github.com/zloirock/core-js"});var $t=qt.exports,Jt=$t,Qt=function(t,e){return Jt[t]||(Jt[t]=e||{})},Yt=Y,Kt=Object,Xt=function(t){return Kt(Yt(t))},Zt=Xt,te=h({}.hasOwnProperty),ee=Object.hasOwn||function(t,e){return te(Zt(t),e)},re=h,ne=0,oe=Math.random(),ie=re(1..toString),ae=function(t){return"Symbol("+(void 0===t?"":t)+")_"+ie(++ne+oe,36)},ue=Qt,se=ee,ce=ae,fe=bt,le=wt,he=d.Symbol,pe=ue("wks"),ve=le?he.for||he:he&&he.withoutSetter||ce,de=function(t){return se(pe,t)||(pe[t]=fe&&se(he,t)?he[t]:ve("Symbol."+t)),pe[t]},ge=x,me=et,ye=Rt,be=xt,we=function(t,e){var r,n;if("string"===e&&Bt(r=t.toString)&&!Mt(n=It(r,t)))return n;if(Bt(r=t.valueOf)&&!Mt(n=It(r,t)))return n;if("string"!==e&&Bt(r=t.toString)&&!Mt(n=It(r,t)))return n;throw new Ft("Can't convert object to primitive value")},Se=TypeError,Oe=de("toPrimitive"),Pe=function(t,e){if(!me(t)||ye(t))return t;var r,n=be(t,Oe);if(n){if(void 0===e&&(e="default"),r=ge(n,t,e),!me(r)||ye(r))return r;throw new Se("Can't convert object to primitive value")}return void 0===e&&(e="number"),we(t,e)},je=Rt,Re=function(t){var e=Pe(t,"string");return je(e)?e:e+""},Ee=et,ke=d.document,Te=Ee(ke)&&Ee(ke.createElement),Le=function(t){return Te?ke.createElement(t):{}},_e=Le,Ue=!U&&!a((function(){return 7!==Object.defineProperty(_e("div"),"a",{get:function(){return 7}}).a})),Ce=U,Ae=x,xe=I,Ie=N,Be=Z,Me=Re,Fe=ee,qe=Ue,He=Object.getOwnPropertyDescriptor;_.f=Ce?He:function(t,e){if(t=Be(t),e=Me(e),qe)try{return He(t,e)}catch(t){}if(Fe(t,e))return Ie(!Ae(xe.f,t,e),t[e])};var Ne=a,ze=L,De=/#|\.prototype\./,Ge=function(t,e){var r=We[Ve(t)];return r===Je||r!==$e&&(ze(e)?Ne(e):!!e)},Ve=Ge.normalize=function(t){return String(t).replace(De,".").toLowerCase()},We=Ge.data={},$e=Ge.NATIVE="N",Je=Ge.POLYFILL="P",Qe=Ge,Ye=Ut,Ke=u,Xe=k(k.bind),Ze=function(t,e){return Ye(t),void 0===e?t:Ke?Xe(t,e):function(){return t.apply(e,arguments)}},tr={},er=U&&a((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),rr=et,nr=String,or=TypeError,ir=function(t){if(rr(t))return t;throw new or(nr(t)+" is not an object")},ar=U,ur=Ue,sr=er,cr=ir,fr=Re,lr=TypeError,hr=Object.defineProperty,pr=Object.getOwnPropertyDescriptor,vr="enumerable",dr="configurable",gr="writable";tr.f=ar?sr?function(t,e,r){if(cr(t),e=fr(e),cr(r),"function"==typeof t&&"prototype"===e&&"value"in r&&gr in r&&!r[gr]){var n=pr(t,e);n&&n[gr]&&(t[e]=r.value,r={configurable:dr in r?r[dr]:n[dr],enumerable:vr in r?r[vr]:n[vr],writable:!1})}return hr(t,e,r)}:hr:function(t,e,r){if(cr(t),e=fr(e),cr(r),ur)try{return hr(t,e,r)}catch(t){}if("get"in r||"set"in r)throw new lr("Accessors not supported");return"value"in r&&(t[e]=r.value),t};var mr=tr,yr=N,br=U?function(t,e,r){return mr.f(t,e,yr(1,r))}:function(t,e,r){return t[e]=r,t},wr=d,Sr=w,Or=k,Pr=L,jr=_.f,Rr=Qe,Er=rt,kr=Ze,Tr=br,Lr=ee,_r=function(t){var e=function(r,n,o){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(r);case 2:return new t(r,n)}return new t(r,n,o)}return Sr(t,this,arguments)};return e.prototype=t.prototype,e},Ur=function(t,e){var r,n,o,i,a,u,s,c,f,l=t.target,h=t.global,p=t.stat,v=t.proto,d=h?wr:p?wr[l]:wr[l]&&wr[l].prototype,g=h?Er:Er[l]||Tr(Er,l,{})[l],m=g.prototype;for(i in e)n=!(r=Rr(h?i:l+(p?".":"#")+i,t.forced))&&d&&Lr(d,i),u=g[i],n&&(s=t.dontCallGetSet?(f=jr(d,i))&&f.value:d[i]),a=n&&s?s:e[i],(r||v||typeof u!=typeof a)&&(c=t.bind&&n?kr(a,wr):t.wrap&&n?_r(a):v&&Pr(a)?Or(a):a,(t.sham||a&&a.sham||u&&u.sham)&&Tr(c,"sham",!0),Tr(g,i,c),v&&(Lr(Er,o=l+"Prototype")||Tr(Er,o,{}),Tr(Er[o],i,a),t.real&&m&&(r||!m[i])&&Tr(m,i,a)))},Cr=h([].slice),Ar=h,xr=Ut,Ir=et,Br=ee,Mr=Cr,Fr=u,qr=Function,Hr=Ar([].concat),Nr=Ar([].join),zr={},Dr=Fr?qr.bind:function(t){var e=xr(this),r=e.prototype,n=Mr(arguments,1),o=function(){var r=Hr(n,Mr(arguments));return this instanceof o?function(t,e,r){if(!Br(zr,e)){for(var n=[],o=0;o<e;o++)n[o]="a["+o+"]";zr[e]=qr("C,a","return new C("+Nr(n,",")+")")}return zr[e](t,r)}(e,r.length,r):e.apply(t,r)};return Ir(r)&&(o.prototype=r),o},Gr=Dr;Ur({target:"Function",proto:!0,forced:Function.bind!==Gr},{bind:Gr});var Vr=d,Wr=rt,$r=function(t,e){var r=Wr[t+"Prototype"],n=r&&r[e];if(n)return n;var o=Vr[t],i=o&&o.prototype;return i&&i[e]},Jr=$r("Function","bind"),Qr=p,Yr=Jr,Kr=Function.prototype,Xr=i((function(t){var e=t.bind;return t===Kr||Qr(Kr,t)&&e===Kr.bind?Yr:e})),Zr=Math.ceil,tn=Math.floor,en=Math.trunc||function(t){var e=+t;return(e>0?tn:Zr)(e)},rn=function(t){var e=+t;return e!=e||0===e?0:en(e)},nn=rn,on=Math.max,an=Math.min,un=rn,sn=Math.min,cn=function(t){var e=un(t);return e>0?sn(e,9007199254740991):0},fn=function(t){return cn(t.length)},ln=Z,hn=function(t,e){var r=nn(t);return r<0?on(r+e,0):an(r,e)},pn=fn,vn=function(t){return function(e,r,n){var o=ln(e),i=pn(o);if(0===i)return!t&&-1;var a,u=hn(n,i);if(t&&r!=r){for(;i>u;)if((a=o[u++])!=a)return!0}else for(;i>u;u++)if((t||u in o)&&o[u]===r)return t||u||0;return!t&&-1}},dn={includes:vn(!0),indexOf:vn(!1)},gn=a,mn=Ur,yn=dn.indexOf,bn=function(t,e){var r=[][t];return!!r&&gn((function(){r.call(null,e||function(){return 1},1)}))},wn=k([].indexOf),Sn=!!wn&&1/wn([1],1,-0)<0;mn({target:"Array",proto:!0,forced:Sn||!bn("indexOf")},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return Sn?wn(this,t,e)||0:yn(this,t,e)}});var On,Pn,jn,Rn=$r("Array","indexOf"),En=p,kn=Rn,Tn=Array.prototype,Ln=i((function(t){var e=t.indexOf;return t===Tn||En(Tn,t)&&e===Tn.indexOf?kn:e})),_n={},Un=L,Cn=d.WeakMap,An=Un(Cn)&&/native code/.test(String(Cn)),xn=ae,In=Qt("keys"),Bn=function(t){return In[t]||(In[t]=xn(t))},Mn={},Fn=An,qn=d,Hn=et,Nn=br,zn=ee,Dn=$t,Gn=Bn,Vn=Mn,Wn="Object already initialized",$n=qn.TypeError,Jn=qn.WeakMap;if(Fn||Dn.state){var Qn=Dn.state||(Dn.state=new Jn);Qn.get=Qn.get,Qn.has=Qn.has,Qn.set=Qn.set,On=function(t,e){if(Qn.has(t))throw new $n(Wn);return e.facade=t,Qn.set(t,e),e},Pn=function(t){return Qn.get(t)||{}},jn=function(t){return Qn.has(t)}}else{var Yn=Gn("state");Vn[Yn]=!0,On=function(t,e){if(zn(t,Yn))throw new $n(Wn);return e.facade=t,Nn(t,Yn,e),e},Pn=function(t){return zn(t,Yn)?t[Yn]:{}},jn=function(t){return zn(t,Yn)}}var Kn={set:On,get:Pn,has:jn,enforce:function(t){return jn(t)?Pn(t):On(t,{})},getterFor:function(t){return function(e){var r;if(!Hn(e)||(r=Pn(e)).type!==t)throw new $n("Incompatible receiver, "+t+" required");return r}}},Xn=U,Zn=ee,to=Function.prototype,eo=Xn&&Object.getOwnPropertyDescriptor,ro=Zn(to,"name"),no={EXISTS:ro,PROPER:ro&&"something"===function(){}.name,CONFIGURABLE:ro&&(!Xn||Xn&&eo(to,"name").configurable)},oo={},io=ee,ao=Z,uo=dn.indexOf,so=Mn,co=h([].push),fo=function(t,e){var r,n=ao(t),o=0,i=[];for(r in n)!io(so,r)&&io(n,r)&&co(i,r);for(;e.length>o;)io(n,r=e[o++])&&(~uo(i,r)||co(i,r));return i},lo=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ho=fo,po=lo,vo=Object.keys||function(t){return ho(t,po)},go=U,mo=er,yo=tr,bo=ir,wo=Z,So=vo;oo.f=go&&!mo?Object.defineProperties:function(t,e){bo(t);for(var r,n=wo(e),o=So(e),i=o.length,a=0;i>a;)yo.f(t,r=o[a++],n[r]);return t};var Oo,Po=ut("document","documentElement"),jo=ir,Ro=oo,Eo=lo,ko=Mn,To=Po,Lo=Le,_o="prototype",Uo="script",Co=Bn("IE_PROTO"),Ao=function(){},xo=function(t){return"<"+Uo+">"+t+"</"+Uo+">"},Io=function(t){t.write(xo("")),t.close();var e=t.parentWindow.Object;return t=null,e},Bo=function(){try{Oo=new ActiveXObject("htmlfile")}catch(t){}var t,e,r;Bo="undefined"!=typeof document?document.domain&&Oo?Io(Oo):(e=Lo("iframe"),r="java"+Uo+":",e.style.display="none",To.appendChild(e),e.src=String(r),(t=e.contentWindow.document).open(),t.write(xo("document.F=Object")),t.close(),t.F):Io(Oo);for(var n=Eo.length;n--;)delete Bo[_o][Eo[n]];return Bo()};ko[Co]=!0;var Mo,Fo,qo,Ho=Object.create||function(t,e){var r;return null!==t?(Ao[_o]=jo(t),r=new Ao,Ao[_o]=null,r[Co]=t):r=Bo(),void 0===e?r:Ro.f(r,e)},No=!a((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),zo=ee,Do=L,Go=Xt,Vo=No,Wo=Bn("IE_PROTO"),$o=Object,Jo=$o.prototype,Qo=Vo?$o.getPrototypeOf:function(t){var e=Go(t);if(zo(e,Wo))return e[Wo];var r=e.constructor;return Do(r)&&e instanceof r?r.prototype:e instanceof $o?Jo:null},Yo=br,Ko=function(t,e,r,n){return n&&n.enumerable?t[e]=r:Yo(t,e,r),t},Xo=a,Zo=L,ti=et,ei=Ho,ri=Qo,ni=Ko,oi=de("iterator"),ii=!1;[].keys&&("next"in(qo=[].keys())?(Fo=ri(ri(qo)))!==Object.prototype&&(Mo=Fo):ii=!0);var ai=!ti(Mo)||Xo((function(){var t={};return Mo[oi].call(t)!==t}));Zo((Mo=ai?{}:ei(Mo))[oi])||ni(Mo,oi,(function(){return this}));var ui={IteratorPrototype:Mo,BUGGY_SAFARI_ITERATORS:ii},si={};si[de("toStringTag")]="z";var ci="[object z]"===String(si),fi=ci,li=L,hi=j,pi=de("toStringTag"),vi=Object,di="Arguments"===hi(function(){return arguments}()),gi=fi?hi:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=vi(t),pi))?r:di?hi(e):"Object"===(n=hi(e))&&li(e.callee)?"Arguments":n},mi=gi,yi=ci?{}.toString:function(){return"[object "+mi(this)+"]"},bi=ci,wi=tr.f,Si=br,Oi=ee,Pi=yi,ji=de("toStringTag"),Ri=function(t,e,r,n){var o=r?t:t&&t.prototype;o&&(Oi(o,ji)||wi(o,ji,{configurable:!0,value:e}),n&&!bi&&Si(o,"toString",Pi))},Ei=ui.IteratorPrototype,ki=Ho,Ti=N,Li=Ri,_i=_n,Ui=function(){return this},Ci=function(t,e,r,n){var o=e+" Iterator";return t.prototype=ki(Ei,{next:Ti(+!n,r)}),Li(t,o,!1,!0),_i[o]=Ui,t},Ai=h,xi=Ut,Ii=et,Bi=function(t){return Ii(t)||null===t},Mi=String,Fi=TypeError,qi=function(t,e,r){try{return Ai(xi(Object.getOwnPropertyDescriptor(t,e)[r]))}catch(t){}},Hi=et,Ni=Y,zi=function(t){if(Bi(t))return t;throw new Fi("Can't set "+Mi(t)+" as a prototype")},Di=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=qi(Object.prototype,"__proto__","set"))(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return Ni(r),zi(n),Hi(r)?(e?t(r,n):r.__proto__=n,r):r}}():void 0),Gi=Ur,Vi=x,Wi=no,$i=Ci,Ji=Qo,Qi=Ri,Yi=Ko,Ki=_n,Xi=ui,Zi=Wi.PROPER,ta=Xi.BUGGY_SAFARI_ITERATORS,ea=de("iterator"),ra="keys",na="values",oa="entries",ia=function(){return this},aa=function(t,e,r,n,o,i,a){$i(r,e,n);var u,s,c,f=function(t){if(t===o&&d)return d;if(!ta&&t&&t in p)return p[t];switch(t){case ra:case na:case oa:return function(){return new r(this,t)}}return function(){return new r(this)}},l=e+" Iterator",h=!1,p=t.prototype,v=p[ea]||p["@@iterator"]||o&&p[o],d=!ta&&v||f(o),g="Array"===e&&p.entries||v;if(g&&(u=Ji(g.call(new t)))!==Object.prototype&&u.next&&(Qi(u,l,!0,!0),Ki[l]=ia),Zi&&o===na&&v&&v.name!==na&&(h=!0,d=function(){return Vi(v,this)}),o)if(s={values:f(na),keys:i?d:f(ra),entries:f(oa)},a)for(c in s)(ta||h||!(c in p))&&Yi(p,c,s[c]);else Gi({target:e,proto:!0,forced:ta||h},s);return a&&p[ea]!==d&&Yi(p,ea,d,{name:o}),Ki[e]=d,s},ua=function(t,e){return{value:t,done:e}},sa=Z,ca=_n,fa=Kn;tr.f;var la=aa,ha=ua,pa="Array Iterator",va=fa.set,da=fa.getterFor(pa);la(Array,"Array",(function(t,e){va(this,{type:pa,target:sa(t),index:0,kind:e})}),(function(){var t=da(this),e=t.target,r=t.index++;if(!e||r>=e.length)return t.target=void 0,ha(void 0,!0);switch(t.kind){case"keys":return ha(r,!1);case"values":return ha(e[r],!1)}return ha([r,e[r]],!1)}),"values"),ca.Arguments=ca.Array;var ga=d,ma=U,ya=Object.getOwnPropertyDescriptor,ba=function(t){if(!ma)return ga[t];var e=ya(ga,t);return e&&e.value},wa=a,Sa=Ht,Oa=de("iterator"),Pa=!wa((function(){var t=new URL("b?a=1&b=2&c=3","http://a"),e=t.searchParams,r=new URLSearchParams("a=1&a=2&b=3"),n="";return t.pathname="c%20d",e.forEach((function(t,r){e.delete("b"),n+=r+t})),r.delete("a",2),r.delete("b",void 0),!t.toJSON||!r.has("a",1)||r.has("a",2)||!r.has("a",void 0)||r.has("b")||!e.size&&Sa||!e.sort||"http://a/c%20d?a=1&c=3"!==t.href||"3"!==e.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!e[Oa]||"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"!==n||"x"!==new URL("http://x",void 0).host})),ja=tr,Ra=function(t,e,r){return ja.f(t,e,r)},Ea=Ko,ka=p,Ta=TypeError,La=function(t,e){if(ka(e,t))return t;throw new Ta("Incorrect invocation")},_a=gi,Ua=String,Ca=function(t){if("Symbol"===_a(t))throw new TypeError("Cannot convert a Symbol value to a string");return Ua(t)},Aa=gi,xa=xt,Ia=$,Ba=_n,Ma=de("iterator"),Fa=function(t){if(!Ia(t))return xa(t,Ma)||xa(t,"@@iterator")||Ba[Aa(t)]},qa=x,Ha=Ut,Na=ir,za=kt,Da=Fa,Ga=TypeError,Va=function(t,e){var r=arguments.length<2?Da(t):e;if(Ha(r))return Na(qa(r,t));throw new Ga(za(t)+" is not iterable")},Wa=TypeError,$a=function(t,e){if(t<e)throw new Wa("Not enough arguments");return t},Ja=Cr,Qa=Math.floor,Ya=function(t,e){var r=t.length;if(r<8)for(var n,o,i=1;i<r;){for(o=i,n=t[i];o&&e(t[o-1],n)>0;)t[o]=t[--o];o!==i++&&(t[o]=n)}else for(var a=Qa(r/2),u=Ya(Ja(t,0,a),e),s=Ya(Ja(t,a),e),c=u.length,f=s.length,l=0,h=0;l<c||h<f;)t[l+h]=l<c&&h<f?e(u[l],s[h])<=0?u[l++]:s[h++]:l<c?u[l++]:s[h++];return t},Ka=Ur,Xa=d,Za=ba,tu=x,eu=h,ru=U,nu=Pa,ou=Ko,iu=Ra,au=function(t,e,r){for(var n in e)r&&r.unsafe&&t[n]?t[n]=e[n]:Ea(t,n,e[n],r);return t},uu=Ri,su=Ci,cu=Kn,fu=La,lu=L,hu=ee,pu=Ze,vu=gi,du=ir,gu=et,mu=Ca,yu=Ho,bu=N,wu=Va,Su=Fa,Ou=ua,Pu=$a,ju=Ya,Ru=de("iterator"),Eu="URLSearchParams",ku=Eu+"Iterator",Tu=cu.set,Lu=cu.getterFor(Eu),_u=cu.getterFor(ku),Uu=Za("fetch"),Cu=Za("Request"),Au=Za("Headers"),xu=Cu&&Cu.prototype,Iu=Au&&Au.prototype,Bu=Xa.RegExp,Mu=Xa.TypeError,Fu=Xa.decodeURIComponent,qu=Xa.encodeURIComponent,Hu=eu("".charAt),Nu=eu([].join),zu=eu([].push),Du=eu("".replace),Gu=eu([].shift),Vu=eu([].splice),Wu=eu("".split),$u=eu("".slice),Ju=/\+/g,Qu=Array(4),Yu=function(t){return Qu[t-1]||(Qu[t-1]=Bu("((?:%[\\da-f]{2}){"+t+"})","gi"))},Ku=function(t){try{return Fu(t)}catch(e){return t}},Xu=function(t){var e=Du(t,Ju," "),r=4;try{return Fu(e)}catch(t){for(;r;)e=Du(e,Yu(r--),Ku);return e}},Zu=/[!'()~]|%20/g,ts={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},es=function(t){return ts[t]},rs=function(t){return Du(qu(t),Zu,es)},ns=su((function(t,e){Tu(this,{type:ku,target:Lu(t).entries,index:0,kind:e})}),Eu,(function(){var t=_u(this),e=t.target,r=t.index++;if(!e||r>=e.length)return t.target=void 0,Ou(void 0,!0);var n=e[r];switch(t.kind){case"keys":return Ou(n.key,!1);case"values":return Ou(n.value,!1)}return Ou([n.key,n.value],!1)}),!0),os=function(t){this.entries=[],this.url=null,void 0!==t&&(gu(t)?this.parseObject(t):this.parseQuery("string"==typeof t?"?"===Hu(t,0)?$u(t,1):t:mu(t)))};os.prototype={type:Eu,bindURL:function(t){this.url=t,this.update()},parseObject:function(t){var e,r,n,o,i,a,u,s=this.entries,c=Su(t);if(c)for(r=(e=wu(t,c)).next;!(n=tu(r,e)).done;){if(i=(o=wu(du(n.value))).next,(a=tu(i,o)).done||(u=tu(i,o)).done||!tu(i,o).done)throw new Mu("Expected sequence with length 2");zu(s,{key:mu(a.value),value:mu(u.value)})}else for(var f in t)hu(t,f)&&zu(s,{key:f,value:mu(t[f])})},parseQuery:function(t){if(t)for(var e,r,n=this.entries,o=Wu(t,"&"),i=0;i<o.length;)(e=o[i++]).length&&(r=Wu(e,"="),zu(n,{key:Xu(Gu(r)),value:Xu(Nu(r,"="))}))},serialize:function(){for(var t,e=this.entries,r=[],n=0;n<e.length;)t=e[n++],zu(r,rs(t.key)+"="+rs(t.value));return Nu(r,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var is=function(){fu(this,as);var t=Tu(this,new os(arguments.length>0?arguments[0]:void 0));ru||(this.size=t.entries.length)},as=is.prototype;if(au(as,{append:function(t,e){var r=Lu(this);Pu(arguments.length,2),zu(r.entries,{key:mu(t),value:mu(e)}),ru||this.length++,r.updateURL()},delete:function(t){for(var e=Lu(this),r=Pu(arguments.length,1),n=e.entries,o=mu(t),i=r<2?void 0:arguments[1],a=void 0===i?i:mu(i),u=0;u<n.length;){var s=n[u];if(s.key!==o||void 0!==a&&s.value!==a)u++;else if(Vu(n,u,1),void 0!==a)break}ru||(this.size=n.length),e.updateURL()},get:function(t){var e=Lu(this).entries;Pu(arguments.length,1);for(var r=mu(t),n=0;n<e.length;n++)if(e[n].key===r)return e[n].value;return null},getAll:function(t){var e=Lu(this).entries;Pu(arguments.length,1);for(var r=mu(t),n=[],o=0;o<e.length;o++)e[o].key===r&&zu(n,e[o].value);return n},has:function(t){for(var e=Lu(this).entries,r=Pu(arguments.length,1),n=mu(t),o=r<2?void 0:arguments[1],i=void 0===o?o:mu(o),a=0;a<e.length;){var u=e[a++];if(u.key===n&&(void 0===i||u.value===i))return!0}return!1},set:function(t,e){var r=Lu(this);Pu(arguments.length,1);for(var n,o=r.entries,i=!1,a=mu(t),u=mu(e),s=0;s<o.length;s++)(n=o[s]).key===a&&(i?Vu(o,s--,1):(i=!0,n.value=u));i||zu(o,{key:a,value:u}),ru||(this.size=o.length),r.updateURL()},sort:function(){var t=Lu(this);ju(t.entries,(function(t,e){return t.key>e.key?1:-1})),t.updateURL()},forEach:function(t){for(var e,r=Lu(this).entries,n=pu(t,arguments.length>1?arguments[1]:void 0),o=0;o<r.length;)n((e=r[o++]).value,e.key,this)},keys:function(){return new ns(this,"keys")},values:function(){return new ns(this,"values")},entries:function(){return new ns(this,"entries")}},{enumerable:!0}),ou(as,Ru,as.entries,{name:"entries"}),ou(as,"toString",(function(){return Lu(this).serialize()}),{enumerable:!0}),ru&&iu(as,"size",{get:function(){return Lu(this).entries.length},configurable:!0,enumerable:!0}),uu(is,Eu),Ka({global:!0,constructor:!0,forced:!nu},{URLSearchParams:is}),!nu&&lu(Au)){var us=eu(Iu.has),ss=eu(Iu.set),cs=function(t){if(gu(t)){var e,r=t.body;if(vu(r)===Eu)return e=t.headers?new Au(t.headers):new Au,us(e,"content-type")||ss(e,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),yu(t,{body:bu(0,mu(r)),headers:bu(0,e)})}return t};if(lu(Uu)&&Ka({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(t){return Uu(t,arguments.length>1?cs(arguments[1]):{})}}),lu(Cu)){var fs=function(t){return fu(this,xu),new Cu(t,arguments.length>1?cs(arguments[1]):{})};xu.constructor=fs,fs.prototype=xu,Ka({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:fs})}}var ls={URLSearchParams:is,getState:Lu},hs=h,ps=rn,vs=Ca,ds=Y,gs=hs("".charAt),ms=hs("".charCodeAt),ys=hs("".slice),bs=function(t){return function(e,r){var n,o,i=vs(ds(e)),a=ps(r),u=i.length;return a<0||a>=u?t?"":void 0:(n=ms(i,a))<55296||n>56319||a+1===u||(o=ms(i,a+1))<56320||o>57343?t?gs(i,a):n:t?ys(i,a,a+2):o-56320+(n-55296<<10)+65536}},ws={codeAt:bs(!1),charAt:bs(!0)},Ss=ws.charAt,Os=Ca,Ps=Kn,js=aa,Rs=ua,Es="String Iterator",ks=Ps.set,Ts=Ps.getterFor(Es);js(String,"String",(function(t){ks(this,{type:Es,string:Os(t),index:0})}),(function(){var t,e=Ts(this),r=e.string,n=e.index;return n>=r.length?Rs(void 0,!0):(t=Ss(r,n),e.index+=t.length,Rs(t,!1))}));var Ls={};Ls.f=Object.getOwnPropertySymbols;var _s=U,Us=h,Cs=x,As=a,xs=vo,Is=Ls,Bs=I,Ms=Xt,Fs=W,qs=Object.assign,Hs=Object.defineProperty,Ns=Us([].concat),zs=!qs||As((function(){if(_s&&1!==qs({b:1},qs(Hs({},"a",{enumerable:!0,get:function(){Hs(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},r=Symbol("assign detection"),n="abcdefghijklmnopqrst";return t[r]=7,n.split("").forEach((function(t){e[t]=t})),7!==qs({},t)[r]||xs(qs({},e)).join("")!==n}))?function(t,e){for(var r=Ms(t),n=arguments.length,o=1,i=Is.f,a=Bs.f;n>o;)for(var u,s=Fs(arguments[o++]),c=i?Ns(xs(s),i(s)):xs(s),f=c.length,l=0;f>l;)u=c[l++],_s&&!Cs(a,s,u)||(r[u]=s[u]);return r}:qs,Ds=x,Gs=ir,Vs=xt,Ws=function(t,e,r){var n,o;Gs(t);try{if(!(n=Vs(t,"return"))){if("throw"===e)throw r;return r}n=Ds(n,t)}catch(t){o=!0,n=t}if("throw"===e)throw r;if(o)throw n;return Gs(n),r},$s=ir,Js=Ws,Qs=_n,Ys=de("iterator"),Ks=Array.prototype,Xs=function(t){return void 0!==t&&(Qs.Array===t||Ks[Ys]===t)},Zs=L,tc=$t,ec=h(Function.toString);Zs(tc.inspectSource)||(tc.inspectSource=function(t){return ec(t)});var rc=tc.inspectSource,nc=h,oc=a,ic=L,ac=gi,uc=rc,sc=function(){},cc=ut("Reflect","construct"),fc=/^\s*(?:class|function)\b/,lc=nc(fc.exec),hc=!fc.test(sc),pc=function(t){if(!ic(t))return!1;try{return cc(sc,[],t),!0}catch(t){return!1}},vc=function(t){if(!ic(t))return!1;switch(ac(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return hc||!!lc(fc,uc(t))}catch(t){return!0}};vc.sham=!0;var dc,gc=!cc||oc((function(){var t;return pc(pc.call)||!pc(Object)||!pc((function(){t=!0}))||t}))?vc:pc,mc=U,yc=tr,bc=N,wc=Ze,Sc=x,Oc=Xt,Pc=function(t,e,r,n){try{return n?e($s(r)[0],r[1]):e(r)}catch(e){Js(t,"throw",e)}},jc=Xs,Rc=gc,Ec=fn,kc=function(t,e,r){mc?yc.f(t,e,bc(0,r)):t[e]=r},Tc=Va,Lc=Fa,_c=Array,Uc=h,Cc=2147483647,Ac=/[^\0-\u007E]/,xc=/[.\u3002\uFF0E\uFF61]/g,Ic="Overflow: input needs wider integers to process",Bc=RangeError,Mc=Uc(xc.exec),Fc=Math.floor,qc=String.fromCharCode,Hc=Uc("".charCodeAt),Nc=Uc([].join),zc=Uc([].push),Dc=Uc("".replace),Gc=Uc("".split),Vc=Uc("".toLowerCase),Wc=function(t){return t+22+75*(t<26)},$c=function(t,e,r){var n=0;for(t=r?Fc(t/700):t>>1,t+=Fc(t/e);t>455;)t=Fc(t/35),n+=36;return Fc(n+36*t/(t+38))},Jc=function(t){var e=[];t=function(t){for(var e=[],r=0,n=t.length;r<n;){var o=Hc(t,r++);if(o>=55296&&o<=56319&&r<n){var i=Hc(t,r++);56320==(64512&i)?zc(e,((1023&o)<<10)+(1023&i)+65536):(zc(e,o),r--)}else zc(e,o)}return e}(t);var r,n,o=t.length,i=128,a=0,u=72;for(r=0;r<t.length;r++)(n=t[r])<128&&zc(e,qc(n));var s=e.length,c=s;for(s&&zc(e,"-");c<o;){var f=Cc;for(r=0;r<t.length;r++)(n=t[r])>=i&&n<f&&(f=n);var l=c+1;if(f-i>Fc((Cc-a)/l))throw new Bc(Ic);for(a+=(f-i)*l,i=f,r=0;r<t.length;r++){if((n=t[r])<i&&++a>Cc)throw new Bc(Ic);if(n===i){for(var h=a,p=36;;){var v=p<=u?1:p>=u+26?26:p-u;if(h<v)break;var d=h-v,g=36-v;zc(e,qc(Wc(v+d%g))),h=Fc(d/g),p+=36}zc(e,qc(Wc(h))),u=$c(a,l,c===s),a=0,c++}}a++,i++}return Nc(e,"")},Qc=Ur,Yc=U,Kc=Pa,Xc=d,Zc=Ze,tf=h,ef=Ko,rf=Ra,nf=La,of=ee,af=zs,uf=function(t){var e=Oc(t),r=Rc(this),n=arguments.length,o=n>1?arguments[1]:void 0,i=void 0!==o;i&&(o=wc(o,n>2?arguments[2]:void 0));var a,u,s,c,f,l,h=Lc(e),p=0;if(!h||this===_c&&jc(h))for(a=Ec(e),u=r?new this(a):_c(a);a>p;p++)l=i?o(e[p],p):e[p],kc(u,p,l);else for(u=r?new this:[],f=(c=Tc(e,h)).next;!(s=Sc(f,c)).done;p++)l=i?Pc(c,o,[s.value,p],!0):s.value,kc(u,p,l);return u.length=p,u},sf=Cr,cf=ws.codeAt,ff=function(t){var e,r,n=[],o=Gc(Dc(Vc(t),xc,"."),".");for(e=0;e<o.length;e++)r=o[e],zc(n,Mc(Ac,r)?"xn--"+Jc(r):r);return Nc(n,".")},lf=Ca,hf=Ri,pf=$a,vf=ls,df=Kn,gf=df.set,mf=df.getterFor("URL"),yf=vf.URLSearchParams,bf=vf.getState,wf=Xc.URL,Sf=Xc.TypeError,Of=Xc.parseInt,Pf=Math.floor,jf=Math.pow,Rf=tf("".charAt),Ef=tf(/./.exec),kf=tf([].join),Tf=tf(1..toString),Lf=tf([].pop),_f=tf([].push),Uf=tf("".replace),Cf=tf([].shift),Af=tf("".split),xf=tf("".slice),If=tf("".toLowerCase),Bf=tf([].unshift),Mf="Invalid scheme",Ff="Invalid host",qf="Invalid port",Hf=/[a-z]/i,Nf=/[\d+-.a-z]/i,zf=/\d/,Df=/^0x/i,Gf=/^[0-7]+$/,Vf=/^\d+$/,Wf=/^[\da-f]+$/i,$f=/[\0\t\n\r #%/:<>?@[\\\]^|]/,Jf=/[\0\t\n\r #/:<>?@[\\\]^|]/,Qf=/^[\u0000-\u0020]+/,Yf=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,Kf=/[\t\n\r]/g,Xf=function(t){var e,r,n,o;if("number"==typeof t){for(e=[],r=0;r<4;r++)Bf(e,t%256),t=Pf(t/256);return kf(e,".")}if("object"==typeof t){for(e="",n=function(t){for(var e=null,r=1,n=null,o=0,i=0;i<8;i++)0!==t[i]?(o>r&&(e=n,r=o),n=null,o=0):(null===n&&(n=i),++o);return o>r&&(e=n,r=o),e}(t),r=0;r<8;r++)o&&0===t[r]||(o&&(o=!1),n===r?(e+=r?":":"::",o=!0):(e+=Tf(t[r],16),r<7&&(e+=":")));return"["+e+"]"}return t},Zf={},tl=af({},Zf,{" ":1,'"':1,"<":1,">":1,"`":1}),el=af({},tl,{"#":1,"?":1,"{":1,"}":1}),rl=af({},el,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),nl=function(t,e){var r=cf(t,0);return r>32&&r<127&&!of(e,t)?t:encodeURIComponent(t)},ol={ftp:21,file:null,http:80,https:443,ws:80,wss:443},il=function(t,e){var r;return 2===t.length&&Ef(Hf,Rf(t,0))&&(":"===(r=Rf(t,1))||!e&&"|"===r)},al=function(t){var e;return t.length>1&&il(xf(t,0,2))&&(2===t.length||"/"===(e=Rf(t,2))||"\\"===e||"?"===e||"#"===e)},ul=function(t){return"."===t||"%2e"===If(t)},sl={},cl={},fl={},ll={},hl={},pl={},vl={},dl={},gl={},ml={},yl={},bl={},wl={},Sl={},Ol={},Pl={},jl={},Rl={},El={},kl={},Tl={},Ll=function(t,e,r){var n,o,i,a=lf(t);if(e){if(o=this.parse(a))throw new Sf(o);this.searchParams=null}else{if(void 0!==r&&(n=new Ll(r,!0)),o=this.parse(a,null,n))throw new Sf(o);(i=bf(new yf)).bindURL(this),this.searchParams=i}};Ll.prototype={type:"URL",parse:function(t,e,r){var n,o,i,a,u,s=this,c=e||sl,f=0,l="",h=!1,p=!1,v=!1;for(t=lf(t),e||(s.scheme="",s.username="",s.password="",s.host=null,s.port=null,s.path=[],s.query=null,s.fragment=null,s.cannotBeABaseURL=!1,t=Uf(t,Qf,""),t=Uf(t,Yf,"$1")),t=Uf(t,Kf,""),n=uf(t);f<=n.length;){switch(o=n[f],c){case sl:if(!o||!Ef(Hf,o)){if(e)return Mf;c=fl;continue}l+=If(o),c=cl;break;case cl:if(o&&(Ef(Nf,o)||"+"===o||"-"===o||"."===o))l+=If(o);else{if(":"!==o){if(e)return Mf;l="",c=fl,f=0;continue}if(e&&(s.isSpecial()!==of(ol,l)||"file"===l&&(s.includesCredentials()||null!==s.port)||"file"===s.scheme&&!s.host))return;if(s.scheme=l,e)return void(s.isSpecial()&&ol[s.scheme]===s.port&&(s.port=null));l="","file"===s.scheme?c=Sl:s.isSpecial()&&r&&r.scheme===s.scheme?c=ll:s.isSpecial()?c=dl:"/"===n[f+1]?(c=hl,f++):(s.cannotBeABaseURL=!0,_f(s.path,""),c=El)}break;case fl:if(!r||r.cannotBeABaseURL&&"#"!==o)return Mf;if(r.cannotBeABaseURL&&"#"===o){s.scheme=r.scheme,s.path=sf(r.path),s.query=r.query,s.fragment="",s.cannotBeABaseURL=!0,c=Tl;break}c="file"===r.scheme?Sl:pl;continue;case ll:if("/"!==o||"/"!==n[f+1]){c=pl;continue}c=gl,f++;break;case hl:if("/"===o){c=ml;break}c=Rl;continue;case pl:if(s.scheme=r.scheme,o===dc)s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,s.path=sf(r.path),s.query=r.query;else if("/"===o||"\\"===o&&s.isSpecial())c=vl;else if("?"===o)s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,s.path=sf(r.path),s.query="",c=kl;else{if("#"!==o){s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,s.path=sf(r.path),s.path.length--,c=Rl;continue}s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,s.path=sf(r.path),s.query=r.query,s.fragment="",c=Tl}break;case vl:if(!s.isSpecial()||"/"!==o&&"\\"!==o){if("/"!==o){s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,c=Rl;continue}c=ml}else c=gl;break;case dl:if(c=gl,"/"!==o||"/"!==Rf(l,f+1))continue;f++;break;case gl:if("/"!==o&&"\\"!==o){c=ml;continue}break;case ml:if("@"===o){h&&(l="%40"+l),h=!0,i=uf(l);for(var d=0;d<i.length;d++){var g=i[d];if(":"!==g||v){var m=nl(g,rl);v?s.password+=m:s.username+=m}else v=!0}l=""}else if(o===dc||"/"===o||"?"===o||"#"===o||"\\"===o&&s.isSpecial()){if(h&&""===l)return"Invalid authority";f-=uf(l).length+1,l="",c=yl}else l+=o;break;case yl:case bl:if(e&&"file"===s.scheme){c=Pl;continue}if(":"!==o||p){if(o===dc||"/"===o||"?"===o||"#"===o||"\\"===o&&s.isSpecial()){if(s.isSpecial()&&""===l)return Ff;if(e&&""===l&&(s.includesCredentials()||null!==s.port))return;if(a=s.parseHost(l))return a;if(l="",c=jl,e)return;continue}"["===o?p=!0:"]"===o&&(p=!1),l+=o}else{if(""===l)return Ff;if(a=s.parseHost(l))return a;if(l="",c=wl,e===bl)return}break;case wl:if(!Ef(zf,o)){if(o===dc||"/"===o||"?"===o||"#"===o||"\\"===o&&s.isSpecial()||e){if(""!==l){var y=Of(l,10);if(y>65535)return qf;s.port=s.isSpecial()&&y===ol[s.scheme]?null:y,l=""}if(e)return;c=jl;continue}return qf}l+=o;break;case Sl:if(s.scheme="file","/"===o||"\\"===o)c=Ol;else{if(!r||"file"!==r.scheme){c=Rl;continue}switch(o){case dc:s.host=r.host,s.path=sf(r.path),s.query=r.query;break;case"?":s.host=r.host,s.path=sf(r.path),s.query="",c=kl;break;case"#":s.host=r.host,s.path=sf(r.path),s.query=r.query,s.fragment="",c=Tl;break;default:al(kf(sf(n,f),""))||(s.host=r.host,s.path=sf(r.path),s.shortenPath()),c=Rl;continue}}break;case Ol:if("/"===o||"\\"===o){c=Pl;break}r&&"file"===r.scheme&&!al(kf(sf(n,f),""))&&(il(r.path[0],!0)?_f(s.path,r.path[0]):s.host=r.host),c=Rl;continue;case Pl:if(o===dc||"/"===o||"\\"===o||"?"===o||"#"===o){if(!e&&il(l))c=Rl;else if(""===l){if(s.host="",e)return;c=jl}else{if(a=s.parseHost(l))return a;if("localhost"===s.host&&(s.host=""),e)return;l="",c=jl}continue}l+=o;break;case jl:if(s.isSpecial()){if(c=Rl,"/"!==o&&"\\"!==o)continue}else if(e||"?"!==o)if(e||"#"!==o){if(o!==dc&&(c=Rl,"/"!==o))continue}else s.fragment="",c=Tl;else s.query="",c=kl;break;case Rl:if(o===dc||"/"===o||"\\"===o&&s.isSpecial()||!e&&("?"===o||"#"===o)){if(".."===(u=If(u=l))||"%2e."===u||".%2e"===u||"%2e%2e"===u?(s.shortenPath(),"/"===o||"\\"===o&&s.isSpecial()||_f(s.path,"")):ul(l)?"/"===o||"\\"===o&&s.isSpecial()||_f(s.path,""):("file"===s.scheme&&!s.path.length&&il(l)&&(s.host&&(s.host=""),l=Rf(l,0)+":"),_f(s.path,l)),l="","file"===s.scheme&&(o===dc||"?"===o||"#"===o))for(;s.path.length>1&&""===s.path[0];)Cf(s.path);"?"===o?(s.query="",c=kl):"#"===o&&(s.fragment="",c=Tl)}else l+=nl(o,el);break;case El:"?"===o?(s.query="",c=kl):"#"===o?(s.fragment="",c=Tl):o!==dc&&(s.path[0]+=nl(o,Zf));break;case kl:e||"#"!==o?o!==dc&&("'"===o&&s.isSpecial()?s.query+="%27":s.query+="#"===o?"%23":nl(o,Zf)):(s.fragment="",c=Tl);break;case Tl:o!==dc&&(s.fragment+=nl(o,tl))}f++}},parseHost:function(t){var e,r,n;if("["===Rf(t,0)){if("]"!==Rf(t,t.length-1))return Ff;if(e=function(t){var e,r,n,o,i,a,u,s=[0,0,0,0,0,0,0,0],c=0,f=null,l=0,h=function(){return Rf(t,l)};if(":"===h()){if(":"!==Rf(t,1))return;l+=2,f=++c}for(;h();){if(8===c)return;if(":"!==h()){for(e=r=0;r<4&&Ef(Wf,h());)e=16*e+Of(h(),16),l++,r++;if("."===h()){if(0===r)return;if(l-=r,c>6)return;for(n=0;h();){if(o=null,n>0){if(!("."===h()&&n<4))return;l++}if(!Ef(zf,h()))return;for(;Ef(zf,h());){if(i=Of(h(),10),null===o)o=i;else{if(0===o)return;o=10*o+i}if(o>255)return;l++}s[c]=256*s[c]+o,2!=++n&&4!==n||c++}if(4!==n)return;break}if(":"===h()){if(l++,!h())return}else if(h())return;s[c++]=e}else{if(null!==f)return;l++,f=++c}}if(null!==f)for(a=c-f,c=7;0!==c&&a>0;)u=s[c],s[c--]=s[f+a-1],s[f+--a]=u;else if(8!==c)return;return s}(xf(t,1,-1)),!e)return Ff;this.host=e}else if(this.isSpecial()){if(t=ff(t),Ef($f,t))return Ff;if(e=function(t){var e,r,n,o,i,a,u,s=Af(t,".");if(s.length&&""===s[s.length-1]&&s.length--,(e=s.length)>4)return t;for(r=[],n=0;n<e;n++){if(""===(o=s[n]))return t;if(i=10,o.length>1&&"0"===Rf(o,0)&&(i=Ef(Df,o)?16:8,o=xf(o,8===i?1:2)),""===o)a=0;else{if(!Ef(10===i?Vf:8===i?Gf:Wf,o))return t;a=Of(o,i)}_f(r,a)}for(n=0;n<e;n++)if(a=r[n],n===e-1){if(a>=jf(256,5-e))return null}else if(a>255)return null;for(u=Lf(r),n=0;n<r.length;n++)u+=r[n]*jf(256,3-n);return u}(t),null===e)return Ff;this.host=e}else{if(Ef(Jf,t))return Ff;for(e="",r=uf(t),n=0;n<r.length;n++)e+=nl(r[n],Zf);this.host=e}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"===this.scheme},includesCredentials:function(){return""!==this.username||""!==this.password},isSpecial:function(){return of(ol,this.scheme)},shortenPath:function(){var t=this.path,e=t.length;!e||"file"===this.scheme&&1===e&&il(t[0],!0)||t.length--},serialize:function(){var t=this,e=t.scheme,r=t.username,n=t.password,o=t.host,i=t.port,a=t.path,u=t.query,s=t.fragment,c=e+":";return null!==o?(c+="//",t.includesCredentials()&&(c+=r+(n?":"+n:"")+"@"),c+=Xf(o),null!==i&&(c+=":"+i)):"file"===e&&(c+="//"),c+=t.cannotBeABaseURL?a[0]:a.length?"/"+kf(a,"/"):"",null!==u&&(c+="?"+u),null!==s&&(c+="#"+s),c},setHref:function(t){var e=this.parse(t);if(e)throw new Sf(e);this.searchParams.update()},getOrigin:function(){var t=this.scheme,e=this.port;if("blob"===t)try{return new _l(t.path[0]).origin}catch(t){return"null"}return"file"!==t&&this.isSpecial()?t+"://"+Xf(this.host)+(null!==e?":"+e:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(t){this.parse(lf(t)+":",sl)},getUsername:function(){return this.username},setUsername:function(t){var e=uf(lf(t));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var r=0;r<e.length;r++)this.username+=nl(e[r],rl)}},getPassword:function(){return this.password},setPassword:function(t){var e=uf(lf(t));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var r=0;r<e.length;r++)this.password+=nl(e[r],rl)}},getHost:function(){var t=this.host,e=this.port;return null===t?"":null===e?Xf(t):Xf(t)+":"+e},setHost:function(t){this.cannotBeABaseURL||this.parse(t,yl)},getHostname:function(){var t=this.host;return null===t?"":Xf(t)},setHostname:function(t){this.cannotBeABaseURL||this.parse(t,bl)},getPort:function(){var t=this.port;return null===t?"":lf(t)},setPort:function(t){this.cannotHaveUsernamePasswordPort()||(""===(t=lf(t))?this.port=null:this.parse(t,wl))},getPathname:function(){var t=this.path;return this.cannotBeABaseURL?t[0]:t.length?"/"+kf(t,"/"):""},setPathname:function(t){this.cannotBeABaseURL||(this.path=[],this.parse(t,jl))},getSearch:function(){var t=this.query;return t?"?"+t:""},setSearch:function(t){""===(t=lf(t))?this.query=null:("?"===Rf(t,0)&&(t=xf(t,1)),this.query="",this.parse(t,kl)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var t=this.fragment;return t?"#"+t:""},setHash:function(t){""!==(t=lf(t))?("#"===Rf(t,0)&&(t=xf(t,1)),this.fragment="",this.parse(t,Tl)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var _l=function(t){var e=nf(this,Ul),r=pf(arguments.length,1)>1?arguments[1]:void 0,n=gf(e,new Ll(t,!1,r));Yc||(e.href=n.serialize(),e.origin=n.getOrigin(),e.protocol=n.getProtocol(),e.username=n.getUsername(),e.password=n.getPassword(),e.host=n.getHost(),e.hostname=n.getHostname(),e.port=n.getPort(),e.pathname=n.getPathname(),e.search=n.getSearch(),e.searchParams=n.getSearchParams(),e.hash=n.getHash())},Ul=_l.prototype,Cl=function(t,e){return{get:function(){return mf(this)[t]()},set:e&&function(t){return mf(this)[e](t)},configurable:!0,enumerable:!0}};if(Yc&&(rf(Ul,"href",Cl("serialize","setHref")),rf(Ul,"origin",Cl("getOrigin")),rf(Ul,"protocol",Cl("getProtocol","setProtocol")),rf(Ul,"username",Cl("getUsername","setUsername")),rf(Ul,"password",Cl("getPassword","setPassword")),rf(Ul,"host",Cl("getHost","setHost")),rf(Ul,"hostname",Cl("getHostname","setHostname")),rf(Ul,"port",Cl("getPort","setPort")),rf(Ul,"pathname",Cl("getPathname","setPathname")),rf(Ul,"search",Cl("getSearch","setSearch")),rf(Ul,"searchParams",Cl("getSearchParams")),rf(Ul,"hash",Cl("getHash","setHash"))),ef(Ul,"toJSON",(function(){return mf(this).serialize()}),{enumerable:!0}),ef(Ul,"toString",(function(){return mf(this).serialize()}),{enumerable:!0}),wf){var Al=wf.createObjectURL,xl=wf.revokeObjectURL;Al&&ef(_l,"createObjectURL",Zc(Al,wf)),xl&&ef(_l,"revokeObjectURL",Zc(xl,wf))}hf(_l,"URL"),Qc({global:!0,constructor:!0,forced:!Kc,sham:!Yc},{URL:_l});var Il=Ur,Bl=a,Ml=$a,Fl=Ca,ql=Pa,Hl=ut("URL"),Nl=ql&&Bl((function(){Hl.canParse()})),zl=Bl((function(){return 1!==Hl.canParse.length}));Il({target:"URL",stat:!0,forced:!Nl||zl},{canParse:function(t){var e=Ml(arguments.length,1),r=Fl(t),n=e<2||void 0===arguments[1]?void 0:Fl(arguments[1]);try{return!!new Hl(r,n)}catch(t){return!1}}});var Dl=i(rt.URL),Gl={},Vl=fo,Wl=lo.concat("length","prototype");Gl.f=Object.getOwnPropertyNames||function(t){return Vl(t,Wl)};var $l=ut,Jl=Gl,Ql=Ls,Yl=ir,Kl=h([].concat),Xl=$l("Reflect","ownKeys")||function(t){var e=Jl.f(Yl(t)),r=Ql.f;return r?Kl(e,r(t)):e},Zl=ee,th=Xl,eh=_,rh=tr,nh=et,oh=br,ih=Error,ah=h("".replace),uh=String(new ih("zxcasd").stack),sh=/\n\s*at [^:]*:[^\n]*/,ch=sh.test(uh),fh=N,lh=!a((function(){var t=new Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",fh(1,7)),7!==t.stack)})),hh=br,ph=function(t,e){if(ch&&"string"==typeof t&&!ih.prepareStackTrace)for(;e--;)t=ah(t,sh,"");return t},vh=lh,dh=Error.captureStackTrace,gh=Ze,mh=x,yh=ir,bh=kt,wh=Xs,Sh=fn,Oh=p,Ph=Va,jh=Fa,Rh=Ws,Eh=TypeError,kh=function(t,e){this.stopped=t,this.result=e},Th=kh.prototype,Lh=function(t,e,r){var n,o,i,a,u,s,c,f=r&&r.that,l=!(!r||!r.AS_ENTRIES),h=!(!r||!r.IS_RECORD),p=!(!r||!r.IS_ITERATOR),v=!(!r||!r.INTERRUPTED),d=gh(e,f),g=function(t){return n&&Rh(n,"normal",t),new kh(!0,t)},m=function(t){return l?(yh(t),v?d(t[0],t[1],g):d(t[0],t[1])):v?d(t,g):d(t)};if(h)n=t.iterator;else if(p)n=t;else{if(!(o=jh(t)))throw new Eh(bh(t)+" is not iterable");if(wh(o)){for(i=0,a=Sh(t);a>i;i++)if((u=m(t[i]))&&Oh(Th,u))return u;return new kh(!1)}n=Ph(t,o)}for(s=h?t.next:n.next;!(c=mh(s,n)).done;){try{u=m(c.value)}catch(t){Rh(n,"throw",t)}if("object"==typeof u&&u&&Oh(Th,u))return u}return new kh(!1)},_h=Ca,Uh=Ur,Ch=p,Ah=Qo,xh=Di,Ih=function(t,e,r){for(var n=th(e),o=rh.f,i=eh.f,a=0;a<n.length;a++){var u=n[a];Zl(t,u)||r&&Zl(r,u)||o(t,u,i(e,u))}},Bh=Ho,Mh=br,Fh=N,qh=function(t,e){nh(e)&&"cause"in e&&oh(t,"cause",e.cause)},Hh=function(t,e,r,n){vh&&(dh?dh(t,e):hh(t,"stack",ph(r,n)))},Nh=Lh,zh=function(t,e){return void 0===t?arguments.length<2?"":e:_h(t)},Dh=de("toStringTag"),Gh=Error,Vh=[].push,Wh=function(t,e){var r,n=Ch($h,this);xh?r=xh(new Gh,n?Ah(this):$h):(r=n?this:Bh($h),Mh(r,Dh,"Error")),void 0!==e&&Mh(r,"message",zh(e)),Hh(r,Wh,r.stack,1),arguments.length>2&&qh(r,arguments[2]);var o=[];return Nh(t,Vh,{that:o}),Mh(r,"errors",o),r};xh?xh(Wh,Gh):Ih(Wh,Gh,{name:!0});var $h=Wh.prototype=Bh(Gh.prototype,{constructor:Fh(1,Wh),message:Fh(1,""),name:Fh(1,"AggregateError")});Uh({global:!0,constructor:!0,arity:2},{AggregateError:Wh});var Jh,Qh,Yh,Kh,Xh="process"===j(d.process),Zh=ut,tp=Ra,ep=U,rp=de("species"),np=gc,op=kt,ip=TypeError,ap=ir,up=function(t){if(np(t))return t;throw new ip(op(t)+" is not a constructor")},sp=$,cp=de("species"),fp=function(t,e){var r,n=ap(t).constructor;return void 0===n||sp(r=ap(n)[cp])?e:up(r)},lp=/(?:ipad|iphone|ipod).*applewebkit/i.test(st),hp=d,pp=w,vp=Ze,dp=L,gp=ee,mp=a,yp=Po,bp=Cr,wp=Le,Sp=$a,Op=lp,Pp=Xh,jp=hp.setImmediate,Rp=hp.clearImmediate,Ep=hp.process,kp=hp.Dispatch,Tp=hp.Function,Lp=hp.MessageChannel,_p=hp.String,Up=0,Cp={},Ap="onreadystatechange";mp((function(){Jh=hp.location}));var xp=function(t){if(gp(Cp,t)){var e=Cp[t];delete Cp[t],e()}},Ip=function(t){return function(){xp(t)}},Bp=function(t){xp(t.data)},Mp=function(t){hp.postMessage(_p(t),Jh.protocol+"//"+Jh.host)};jp&&Rp||(jp=function(t){Sp(arguments.length,1);var e=dp(t)?t:Tp(t),r=bp(arguments,1);return Cp[++Up]=function(){pp(e,void 0,r)},Qh(Up),Up},Rp=function(t){delete Cp[t]},Pp?Qh=function(t){Ep.nextTick(Ip(t))}:kp&&kp.now?Qh=function(t){kp.now(Ip(t))}:Lp&&!Op?(Kh=(Yh=new Lp).port2,Yh.port1.onmessage=Bp,Qh=vp(Kh.postMessage,Kh)):hp.addEventListener&&dp(hp.postMessage)&&!hp.importScripts&&Jh&&"file:"!==Jh.protocol&&!mp(Mp)?(Qh=Mp,hp.addEventListener("message",Bp,!1)):Qh=Ap in wp("script")?function(t){yp.appendChild(wp("script"))[Ap]=function(){yp.removeChild(this),xp(t)}}:function(t){setTimeout(Ip(t),0)});var Fp={set:jp,clear:Rp},qp=function(){this.head=null,this.tail=null};qp.prototype={add:function(t){var e={item:t,next:null},r=this.tail;r?r.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}};var Hp,Np,zp,Dp,Gp,Vp=qp,Wp=/ipad|iphone|ipod/i.test(st)&&"undefined"!=typeof Pebble,$p=/web0s(?!.*chrome)/i.test(st),Jp=d,Qp=ba,Yp=Ze,Kp=Fp.set,Xp=Vp,Zp=lp,tv=Wp,ev=$p,rv=Xh,nv=Jp.MutationObserver||Jp.WebKitMutationObserver,ov=Jp.document,iv=Jp.process,av=Jp.Promise,uv=Qp("queueMicrotask");if(!uv){var sv=new Xp,cv=function(){var t,e;for(rv&&(t=iv.domain)&&t.exit();e=sv.get();)try{e()}catch(t){throw sv.head&&Hp(),t}t&&t.enter()};Zp||rv||ev||!nv||!ov?!tv&&av&&av.resolve?((Dp=av.resolve(void 0)).constructor=av,Gp=Yp(Dp.then,Dp),Hp=function(){Gp(cv)}):rv?Hp=function(){iv.nextTick(cv)}:(Kp=Yp(Kp,Jp),Hp=function(){Kp(cv)}):(Np=!0,zp=ov.createTextNode(""),new nv(cv).observe(zp,{characterData:!0}),Hp=function(){zp.data=Np=!Np}),uv=function(t){sv.head||Hp(),sv.add(t)}}var fv=uv,lv=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},hv=d.Promise,pv="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,vv=!pv&&!Xh&&"object"==typeof window&&"object"==typeof document,dv=d,gv=hv,mv=L,yv=Qe,bv=rc,wv=de,Sv=vv,Ov=pv,Pv=dt,jv=gv&&gv.prototype,Rv=wv("species"),Ev=!1,kv=mv(dv.PromiseRejectionEvent),Tv=yv("Promise",(function(){var t=bv(gv),e=t!==String(gv);if(!e&&66===Pv)return!0;if(!jv.catch||!jv.finally)return!0;if(!Pv||Pv<51||!/native code/.test(t)){var r=new gv((function(t){t(1)})),n=function(t){t((function(){}),(function(){}))};if((r.constructor={})[Rv]=n,!(Ev=r.then((function(){}))instanceof n))return!0}return!e&&(Sv||Ov)&&!kv})),Lv={CONSTRUCTOR:Tv,REJECTION_EVENT:kv,SUBCLASSING:Ev},_v={},Uv=Ut,Cv=TypeError,Av=function(t){var e,r;this.promise=new t((function(t,n){if(void 0!==e||void 0!==r)throw new Cv("Bad Promise constructor");e=t,r=n})),this.resolve=Uv(e),this.reject=Uv(r)};_v.f=function(t){return new Av(t)};var xv,Iv,Bv=Ur,Mv=Xh,Fv=d,qv=x,Hv=Ko,Nv=Ri,zv=function(t){var e=Zh(t);ep&&e&&!e[rp]&&tp(e,rp,{configurable:!0,get:function(){return this}})},Dv=Ut,Gv=L,Vv=et,Wv=La,$v=fp,Jv=Fp.set,Qv=fv,Yv=function(t,e){try{1===arguments.length?console.error(t):console.error(t,e)}catch(t){}},Kv=lv,Xv=Vp,Zv=Kn,td=hv,ed=Lv,rd=_v,nd="Promise",od=ed.CONSTRUCTOR,id=ed.REJECTION_EVENT,ad=Zv.getterFor(nd),ud=Zv.set,sd=td&&td.prototype,cd=td,fd=sd,ld=Fv.TypeError,hd=Fv.document,pd=Fv.process,vd=rd.f,dd=vd,gd=!!(hd&&hd.createEvent&&Fv.dispatchEvent),md="unhandledrejection",yd=function(t){var e;return!(!Vv(t)||!Gv(e=t.then))&&e},bd=function(t,e){var r,n,o,i=e.value,a=1===e.state,u=a?t.ok:t.fail,s=t.resolve,c=t.reject,f=t.domain;try{u?(a||(2===e.rejection&&jd(e),e.rejection=1),!0===u?r=i:(f&&f.enter(),r=u(i),f&&(f.exit(),o=!0)),r===t.promise?c(new ld("Promise-chain cycle")):(n=yd(r))?qv(n,r,s,c):s(r)):c(i)}catch(t){f&&!o&&f.exit(),c(t)}},wd=function(t,e){t.notified||(t.notified=!0,Qv((function(){for(var r,n=t.reactions;r=n.get();)bd(r,t);t.notified=!1,e&&!t.rejection&&Od(t)})))},Sd=function(t,e,r){var n,o;gd?((n=hd.createEvent("Event")).promise=e,n.reason=r,n.initEvent(t,!1,!0),Fv.dispatchEvent(n)):n={promise:e,reason:r},!id&&(o=Fv["on"+t])?o(n):t===md&&Yv("Unhandled promise rejection",r)},Od=function(t){qv(Jv,Fv,(function(){var e,r=t.facade,n=t.value;if(Pd(t)&&(e=Kv((function(){Mv?pd.emit("unhandledRejection",n,r):Sd(md,r,n)})),t.rejection=Mv||Pd(t)?2:1,e.error))throw e.value}))},Pd=function(t){return 1!==t.rejection&&!t.parent},jd=function(t){qv(Jv,Fv,(function(){var e=t.facade;Mv?pd.emit("rejectionHandled",e):Sd("rejectionhandled",e,t.value)}))},Rd=function(t,e,r){return function(n){t(e,n,r)}},Ed=function(t,e,r){t.done||(t.done=!0,r&&(t=r),t.value=e,t.state=2,wd(t,!0))},kd=function(t,e,r){if(!t.done){t.done=!0,r&&(t=r);try{if(t.facade===e)throw new ld("Promise can't be resolved itself");var n=yd(e);n?Qv((function(){var r={done:!1};try{qv(n,e,Rd(kd,r,t),Rd(Ed,r,t))}catch(e){Ed(r,e,t)}})):(t.value=e,t.state=1,wd(t,!1))}catch(e){Ed({done:!1},e,t)}}};od&&(fd=(cd=function(t){Wv(this,fd),Dv(t),qv(xv,this);var e=ad(this);try{t(Rd(kd,e),Rd(Ed,e))}catch(t){Ed(e,t)}}).prototype,(xv=function(t){ud(this,{type:nd,done:!1,notified:!1,parent:!1,reactions:new Xv,rejection:!1,state:0,value:void 0})}).prototype=Hv(fd,"then",(function(t,e){var r=ad(this),n=vd($v(this,cd));return r.parent=!0,n.ok=!Gv(t)||t,n.fail=Gv(e)&&e,n.domain=Mv?pd.domain:void 0,0===r.state?r.reactions.add(n):Qv((function(){bd(n,r)})),n.promise})),Iv=function(){var t=new xv,e=ad(t);this.promise=t,this.resolve=Rd(kd,e),this.reject=Rd(Ed,e)},rd.f=vd=function(t){return t===cd||undefined===t?new Iv(t):dd(t)}),Bv({global:!0,constructor:!0,wrap:!0,forced:od},{Promise:cd}),Nv(cd,nd,!1,!0),zv(nd);var Td=de("iterator"),Ld=!1;try{var _d=0,Ud={next:function(){return{done:!!_d++}},return:function(){Ld=!0}};Ud[Td]=function(){return this},Array.from(Ud,(function(){throw 2}))}catch(t){}var Cd=hv,Ad=function(t,e){try{if(!e&&!Ld)return!1}catch(t){return!1}var r=!1;try{var n={};n[Td]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch(t){}return r},xd=Lv.CONSTRUCTOR||!Ad((function(t){Cd.all(t).then(void 0,(function(){}))})),Id=x,Bd=Ut,Md=_v,Fd=lv,qd=Lh;Ur({target:"Promise",stat:!0,forced:xd},{all:function(t){var e=this,r=Md.f(e),n=r.resolve,o=r.reject,i=Fd((function(){var r=Bd(e.resolve),i=[],a=0,u=1;qd(t,(function(t){var s=a++,c=!1;u++,Id(r,e,t).then((function(t){c||(c=!0,i[s]=t,--u||n(i))}),o)})),--u||n(i)}));return i.error&&o(i.value),r.promise}});var Hd=Ur,Nd=Lv.CONSTRUCTOR;hv&&hv.prototype,Hd({target:"Promise",proto:!0,forced:Nd,real:!0},{catch:function(t){return this.then(void 0,t)}});var zd=x,Dd=Ut,Gd=_v,Vd=lv,Wd=Lh;Ur({target:"Promise",stat:!0,forced:xd},{race:function(t){var e=this,r=Gd.f(e),n=r.reject,o=Vd((function(){var o=Dd(e.resolve);Wd(t,(function(t){zd(o,e,t).then(r.resolve,n)}))}));return o.error&&n(o.value),r.promise}});var $d=_v;Ur({target:"Promise",stat:!0,forced:Lv.CONSTRUCTOR},{reject:function(t){var e=$d.f(this);return(0,e.reject)(t),e.promise}});var Jd=ir,Qd=et,Yd=_v,Kd=function(t,e){if(Jd(t),Qd(e)&&e.constructor===t)return e;var r=Yd.f(t);return(0,r.resolve)(e),r.promise},Xd=Ur,Zd=hv,tg=Lv.CONSTRUCTOR,eg=Kd,rg=ut("Promise"),ng=!tg;Xd({target:"Promise",stat:!0,forced:true},{resolve:function(t){return eg(ng&&this===rg?Zd:this,t)}});var og=x,ig=Ut,ag=_v,ug=lv,sg=Lh;Ur({target:"Promise",stat:!0,forced:xd},{allSettled:function(t){var e=this,r=ag.f(e),n=r.resolve,o=r.reject,i=ug((function(){var r=ig(e.resolve),o=[],i=0,a=1;sg(t,(function(t){var u=i++,s=!1;a++,og(r,e,t).then((function(t){s||(s=!0,o[u]={status:"fulfilled",value:t},--a||n(o))}),(function(t){s||(s=!0,o[u]={status:"rejected",reason:t},--a||n(o))}))})),--a||n(o)}));return i.error&&o(i.value),r.promise}});var cg=x,fg=Ut,lg=ut,hg=_v,pg=lv,vg=Lh,dg="No one promise resolved";Ur({target:"Promise",stat:!0,forced:xd},{any:function(t){var e=this,r=lg("AggregateError"),n=hg.f(e),o=n.resolve,i=n.reject,a=pg((f