commerce-sdk-isomorphic 4.1.0 → 4.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -114
- package/lib/index.cjs.d.ts +1320 -169
- package/lib/index.cjs.js +1 -1
- package/lib/index.esm.d.ts +1320 -169
- package/lib/index.esm.js +1 -1
- package/package.json +24 -91
- package/lib/clientConfig.cjs.d.ts +0 -54
- package/lib/clientConfig.cjs.js +0 -1
- package/lib/clientConfig.d.ts +0 -54
- package/lib/clientConfig.js +0 -1
- package/lib/config.cjs.d.ts +0 -2
- package/lib/config.cjs.js +0 -1
- package/lib/config.d.ts +0 -2
- package/lib/config.js +0 -1
- package/lib/helpers.cjs.d.ts +0 -2225
- package/lib/helpers.cjs.js +0 -1
- package/lib/helpers.d.ts +0 -2225
- package/lib/helpers.js +0 -1
- package/lib/responseError.cjs.d.ts +0 -12
- package/lib/responseError.cjs.js +0 -1
- package/lib/responseError.d.ts +0 -12
- package/lib/responseError.js +0 -1
- package/lib/shopperBaskets.cjs.d.ts +0 -10264
- package/lib/shopperBaskets.cjs.js +0 -1
- package/lib/shopperBaskets.d.ts +0 -10264
- package/lib/shopperBaskets.js +0 -1
- package/lib/shopperBasketsv2.cjs.d.ts +0 -10458
- package/lib/shopperBasketsv2.cjs.js +0 -1
- package/lib/shopperBasketsv2.d.ts +0 -10458
- package/lib/shopperBasketsv2.js +0 -1
- package/lib/shopperConsents.cjs.d.ts +0 -1147
- package/lib/shopperConsents.cjs.js +0 -1
- package/lib/shopperConsents.d.ts +0 -1147
- package/lib/shopperConsents.js +0 -1
- package/lib/shopperContext.cjs.d.ts +0 -1406
- package/lib/shopperContext.cjs.js +0 -1
- package/lib/shopperContext.d.ts +0 -1406
- package/lib/shopperContext.js +0 -1
- package/lib/shopperCustomers.cjs.d.ts +0 -12190
- package/lib/shopperCustomers.cjs.js +0 -1
- package/lib/shopperCustomers.d.ts +0 -12190
- package/lib/shopperCustomers.js +0 -1
- package/lib/shopperExperience.cjs.d.ts +0 -1174
- package/lib/shopperExperience.cjs.js +0 -1
- package/lib/shopperExperience.d.ts +0 -1174
- package/lib/shopperExperience.js +0 -1
- package/lib/shopperGiftCertificates.cjs.d.ts +0 -734
- package/lib/shopperGiftCertificates.cjs.js +0 -1
- package/lib/shopperGiftCertificates.d.ts +0 -734
- package/lib/shopperGiftCertificates.js +0 -1
- package/lib/shopperLogin.cjs.d.ts +0 -3847
- package/lib/shopperLogin.cjs.js +0 -1
- package/lib/shopperLogin.d.ts +0 -3847
- package/lib/shopperLogin.js +0 -1
- package/lib/shopperOrders.cjs.d.ts +0 -5398
- package/lib/shopperOrders.cjs.js +0 -1
- package/lib/shopperOrders.d.ts +0 -5398
- package/lib/shopperOrders.js +0 -1
- package/lib/shopperProducts.cjs.d.ts +0 -3484
- package/lib/shopperProducts.cjs.js +0 -1
- package/lib/shopperProducts.d.ts +0 -3484
- package/lib/shopperProducts.js +0 -1
- package/lib/shopperPromotions.cjs.d.ts +0 -1006
- package/lib/shopperPromotions.cjs.js +0 -1
- package/lib/shopperPromotions.d.ts +0 -1006
- package/lib/shopperPromotions.js +0 -1
- package/lib/shopperSearch.cjs.d.ts +0 -3357
- package/lib/shopperSearch.cjs.js +0 -1
- package/lib/shopperSearch.d.ts +0 -3357
- package/lib/shopperSearch.js +0 -1
- package/lib/shopperSeo.cjs.d.ts +0 -774
- package/lib/shopperSeo.cjs.js +0 -1
- package/lib/shopperSeo.d.ts +0 -774
- package/lib/shopperSeo.js +0 -1
- package/lib/shopperStores.cjs.d.ts +0 -1294
- package/lib/shopperStores.cjs.js +0 -1
- package/lib/shopperStores.d.ts +0 -1294
- package/lib/shopperStores.js +0 -1
- package/lib/templateUrl.cjs.d.ts +0 -76
- package/lib/templateUrl.cjs.js +0 -1
- package/lib/templateUrl.d.ts +0 -76
- package/lib/templateUrl.js +0 -1
- package/lib/version.cjs.d.ts +0 -3
- package/lib/version.cjs.js +0 -1
- package/lib/version.d.ts +0 -3
- package/lib/version.js +0 -1
package/lib/shopperStores.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var t="https://{shortCode}.api.commercecloud.salesforce.com/store/shopper-stores/v1",e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function r(t,e,r){return t(r={path:e,exports:{},require:function(t,e){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==e&&r.path)}},r.exports),r.exports}var n,o,i=function(t){return t&&t.Math==Math&&t},a=i("object"==typeof globalThis&&globalThis)||i("object"==typeof window&&window)||i("object"==typeof self&&self)||i("object"==typeof e&&e)||function(){return this}()||Function("return this")(),c=function(t){try{return!!t()}catch(t){return!0}},u=!c((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),s=!c((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),f=Function.prototype.call,l=s?f.bind(f):function(){return f.apply(f,arguments)},h={}.propertyIsEnumerable,p=Object.getOwnPropertyDescriptor,d={f:p&&!h.call({1:2},1)?function(t){var e=p(this,t);return!!e&&e.enumerable}:h},v=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},y=Function.prototype,g=y.bind,m=y.call,b=s&&g.bind(m,m),w=s?function(t){return t&&b(t)}:function(t){return t&&function(){return m.apply(t,arguments)}},O=w({}.toString),S=w("".slice),x=function(t){return S(O(t),8,-1)},P=Object,j=w("".split),E=c((function(){return!P("z").propertyIsEnumerable(0)}))?function(t){return"String"==x(t)?j(t,""):P(t)}:P,R=TypeError,k=function(t){if(null==t)throw R("Can't call method on "+t);return t},I=function(t){return E(k(t))},L=function(t){return"function"==typeof t},C=function(t){return"object"==typeof t?null!==t:L(t)},T=function(t){return L(t)?t:void 0},U=function(t,e){return arguments.length<2?T(a[t]):a[t]&&a[t][e]},A=w({}.isPrototypeOf),_=U("navigator","userAgent")||"",q=a.process,F=a.Deno,D=q&&q.versions||F&&F.version,B=D&&D.v8;B&&(o=(n=B.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!o&&_&&(!(n=_.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=_.match(/Chrome\/(\d+)/))&&(o=+n[1]);var M=o,N=!!Object.getOwnPropertySymbols&&!c((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&M&&M<41})),z=N&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,H=Object,G=z?function(t){return"symbol"==typeof t}:function(t){var e=U("Symbol");return L(e)&&A(e.prototype,H(t))},$=String,W=function(t){try{return $(t)}catch(t){return"Object"}},V=TypeError,J=function(t){if(L(t))return t;throw V(W(t)+" is not a function")},Y=function(t,e){var r=t[e];return null==r?void 0:J(r)},K=TypeError,Q=Object.defineProperty,X=function(t,e){try{Q(a,t,{value:e,configurable:!0,writable:!0})}catch(r){a[t]=e}return e},Z=a["__core-js_shared__"]||X("__core-js_shared__",{}),tt=r((function(t){(t.exports=function(t,e){return Z[t]||(Z[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.23.4",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.23.4/LICENSE",source:"https://github.com/zloirock/core-js"})})),et=Object,rt=function(t){return et(k(t))},nt=w({}.hasOwnProperty),ot=Object.hasOwn||function(t,e){return nt(rt(t),e)},it=0,at=Math.random(),ct=w(1..toString),ut=function(t){return"Symbol("+(void 0===t?"":t)+")_"+ct(++it+at,36)},st=tt("wks"),ft=a.Symbol,lt=ft&&ft.for,ht=z?ft:ft&&ft.withoutSetter||ut,pt=function(t){if(!ot(st,t)||!N&&"string"!=typeof st[t]){var e="Symbol."+t;N&&ot(ft,t)?st[t]=ft[t]:st[t]=z&<?lt(e):ht(e)}return st[t]},dt=TypeError,vt=pt("toPrimitive"),yt=function(t,e){if(!C(t)||G(t))return t;var r,n=Y(t,vt);if(n){if(void 0===e&&(e="default"),r=l(n,t,e),!C(r)||G(r))return r;throw dt("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var r,n;if("string"===e&&L(r=t.toString)&&!C(n=l(r,t)))return n;if(L(r=t.valueOf)&&!C(n=l(r,t)))return n;if("string"!==e&&L(r=t.toString)&&!C(n=l(r,t)))return n;throw K("Can't convert object to primitive value")}(t,e)},gt=function(t){var e=yt(t,"string");return G(e)?e:e+""},mt=a.document,bt=C(mt)&&C(mt.createElement),wt=function(t){return bt?mt.createElement(t):{}},Ot=!u&&!c((function(){return 7!=Object.defineProperty(wt("div"),"a",{get:function(){return 7}}).a})),St=Object.getOwnPropertyDescriptor,xt={f:u?St:function(t,e){if(t=I(t),e=gt(e),Ot)try{return St(t,e)}catch(t){}if(ot(t,e))return v(!l(d.f,t,e),t[e])}},Pt=u&&c((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),jt=String,Et=TypeError,Rt=function(t){if(C(t))return t;throw Et(jt(t)+" is not an object")},kt=TypeError,It=Object.defineProperty,Lt=Object.getOwnPropertyDescriptor,Ct={f:u?Pt?function(t,e,r){if(Rt(t),e=gt(e),Rt(r),"function"==typeof t&&"prototype"===e&&"value"in r&&"writable"in r&&!r.writable){var n=Lt(t,e);n&&n.writable&&(t[e]=r.value,r={configurable:"configurable"in r?r.configurable:n.configurable,enumerable:"enumerable"in r?r.enumerable:n.enumerable,writable:!1})}return It(t,e,r)}:It:function(t,e,r){if(Rt(t),e=gt(e),Rt(r),Ot)try{return It(t,e,r)}catch(t){}if("get"in r||"set"in r)throw kt("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},Tt=u?function(t,e,r){return Ct.f(t,e,v(1,r))}:function(t,e,r){return t[e]=r,t},Ut=Function.prototype,At=u&&Object.getOwnPropertyDescriptor,_t=ot(Ut,"name"),qt={EXISTS:_t,PROPER:_t&&"something"===function(){}.name,CONFIGURABLE:_t&&(!u||u&&At(Ut,"name").configurable)},Ft=w(Function.toString);L(Z.inspectSource)||(Z.inspectSource=function(t){return Ft(t)});var Dt,Bt,Mt,Nt=Z.inspectSource,zt=a.WeakMap,Ht=L(zt)&&/native code/.test(Nt(zt)),Gt=tt("keys"),$t=function(t){return Gt[t]||(Gt[t]=ut(t))},Wt={},Vt=a.TypeError,Jt=a.WeakMap;if(Ht||Z.state){var Yt=Z.state||(Z.state=new Jt),Kt=w(Yt.get),Qt=w(Yt.has),Xt=w(Yt.set);Dt=function(t,e){if(Qt(Yt,t))throw new Vt("Object already initialized");return e.facade=t,Xt(Yt,t,e),e},Bt=function(t){return Kt(Yt,t)||{}},Mt=function(t){return Qt(Yt,t)}}else{var Zt=$t("state");Wt[Zt]=!0,Dt=function(t,e){if(ot(t,Zt))throw new Vt("Object already initialized");return e.facade=t,Tt(t,Zt,e),e},Bt=function(t){return ot(t,Zt)?t[Zt]:{}},Mt=function(t){return ot(t,Zt)}}var te={set:Dt,get:Bt,has:Mt,enforce:function(t){return Mt(t)?Bt(t):Dt(t,{})},getterFor:function(t){return function(e){var r;if(!C(e)||(r=Bt(e)).type!==t)throw Vt("Incompatible receiver, "+t+" required");return r}}},ee=r((function(t){var e=qt.CONFIGURABLE,r=te.enforce,n=te.get,o=Object.defineProperty,i=u&&!c((function(){return 8!==o((function(){}),"length",{value:8}).length})),a=String(String).split("String"),s=t.exports=function(t,n,c){"Symbol("===String(n).slice(0,7)&&(n="["+String(n).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),c&&c.getter&&(n="get "+n),c&&c.setter&&(n="set "+n),(!ot(t,"name")||e&&t.name!==n)&&(u?o(t,"name",{value:n,configurable:!0}):t.name=n),i&&c&&ot(c,"arity")&&t.length!==c.arity&&o(t,"length",{value:c.arity});try{c&&ot(c,"constructor")&&c.constructor?u&&o(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var s=r(t);return ot(s,"source")||(s.source=a.join("string"==typeof n?n:"")),t};Function.prototype.toString=s((function(){return L(this)&&n(this).source||Nt(this)}),"toString")})),re=function(t,e,r,n){n||(n={});var o=n.enumerable,i=void 0!==n.name?n.name:e;if(L(r)&&ee(r,i,n),n.global)o?t[e]=r:X(e,r);else{try{n.unsafe?t[e]&&(o=!0):delete t[e]}catch(t){}o?t[e]=r:Ct.f(t,e,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return t},ne=Math.ceil,oe=Math.floor,ie=Math.trunc||function(t){var e=+t;return(e>0?oe:ne)(e)},ae=function(t){var e=+t;return e!=e||0===e?0:ie(e)},ce=Math.max,ue=Math.min,se=function(t,e){var r=ae(t);return r<0?ce(r+e,0):ue(r,e)},fe=Math.min,le=function(t){return t>0?fe(ae(t),9007199254740991):0},he=function(t){return le(t.length)},pe=function(t){return function(e,r,n){var o,i=I(e),a=he(i),c=se(n,a);if(t&&r!=r){for(;a>c;)if((o=i[c++])!=o)return!0}else for(;a>c;c++)if((t||c in i)&&i[c]===r)return t||c||0;return!t&&-1}},de={includes:pe(!0),indexOf:pe(!1)}.indexOf,ve=w([].push),ye=function(t,e){var r,n=I(t),o=0,i=[];for(r in n)!ot(Wt,r)&&ot(n,r)&&ve(i,r);for(;e.length>o;)ot(n,r=e[o++])&&(~de(i,r)||ve(i,r));return i},ge=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],me=ge.concat("length","prototype"),be={f:Object.getOwnPropertyNames||function(t){return ye(t,me)}},we={f:Object.getOwnPropertySymbols},Oe=w([].concat),Se=U("Reflect","ownKeys")||function(t){var e=be.f(Rt(t)),r=we.f;return r?Oe(e,r(t)):e},xe=function(t,e,r){for(var n=Se(e),o=Ct.f,i=xt.f,a=0;a<n.length;a++){var c=n[a];ot(t,c)||r&&ot(r,c)||o(t,c,i(e,c))}},Pe=/#|\.prototype\./,je=function(t,e){var r=Re[Ee(t)];return r==Ie||r!=ke&&(L(e)?c(e):!!e)},Ee=je.normalize=function(t){return String(t).replace(Pe,".").toLowerCase()},Re=je.data={},ke=je.NATIVE="N",Ie=je.POLYFILL="P",Le=je,Ce=xt.f,Te=function(t,e){var r,n,o,i,c,u=t.target,s=t.global,f=t.stat;if(r=s?a:f?a[u]||X(u,{}):(a[u]||{}).prototype)for(n in e){if(i=e[n],o=t.dontCallGetSet?(c=Ce(r,n))&&c.value:r[n],!Le(s?n:u+(f?".":"#")+n,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;xe(i,o)}(t.sham||o&&o.sham)&&Tt(i,"sham",!0),re(r,n,i,t)}},Ue=Object.keys||function(t){return ye(t,ge)},Ae=c((function(){Ue(1)}));Te({target:"Object",stat:!0,forced:Ae},{keys:function(t){return Ue(rt(t))}});var _e={};_e[pt("toStringTag")]="z";var qe,Fe="[object z]"===String(_e),De=pt("toStringTag"),Be=Object,Me="Arguments"==x(function(){return arguments}()),Ne=Fe?x: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=Be(t),De))?r:Me?x(e):"Object"==(n=x(e))&&L(e.callee)?"Arguments":n},ze=String,He=function(t){if("Symbol"===Ne(t))throw TypeError("Cannot convert a Symbol value to a string");return ze(t)},Ge={f:u&&!Pt?Object.defineProperties:function(t,e){Rt(t);for(var r,n=I(e),o=Ue(e),i=o.length,a=0;i>a;)Ct.f(t,r=o[a++],n[r]);return t}},$e=U("document","documentElement"),We=$t("IE_PROTO"),Ve=function(){},Je=function(t){return"<script>"+t+"<\/script>"},Ye=function(t){t.write(Je("")),t.close();var e=t.parentWindow.Object;return t=null,e},Ke=function(){try{qe=new ActiveXObject("htmlfile")}catch(t){}var t,e;Ke="undefined"!=typeof document?document.domain&&qe?Ye(qe):((e=wt("iframe")).style.display="none",$e.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(Je("document.F=Object")),t.close(),t.F):Ye(qe);for(var r=ge.length;r--;)delete Ke.prototype[ge[r]];return Ke()};Wt[We]=!0;var Qe=Object.create||function(t,e){var r;return null!==t?(Ve.prototype=Rt(t),r=new Ve,Ve.prototype=null,r[We]=t):r=Ke(),void 0===e?r:Ge.f(r,e)},Xe=function(t,e,r){var n=gt(e);n in t?Ct.f(t,n,v(0,r)):t[n]=r},Ze=Array,tr=Math.max,er=function(t,e,r){for(var n=he(t),o=se(e,n),i=se(void 0===r?n:r,n),a=Ze(tr(i-o,0)),c=0;o<i;o++,c++)Xe(a,c,t[o]);return a.length=c,a},rr=be.f,nr="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],or={f:function(t){return nr&&"Window"==x(t)?function(t){try{return rr(t)}catch(t){return er(nr)}}(t):rr(I(t))}},ir={f:pt},ar=a,cr=Ct.f,ur=Ct.f,sr=pt("toStringTag"),fr=function(t,e,r){t&&!r&&(t=t.prototype),t&&!ot(t,sr)&&ur(t,sr,{configurable:!0,value:e})},lr=w(w.bind),hr=function(t,e){return J(t),void 0===e?t:s?lr(t,e):function(){return t.apply(e,arguments)}},pr=Array.isArray||function(t){return"Array"==x(t)},dr=function(){},vr=[],yr=U("Reflect","construct"),gr=/^\s*(?:class|function)\b/,mr=w(gr.exec),br=!gr.exec(dr),wr=function(t){if(!L(t))return!1;try{return yr(dr,vr,t),!0}catch(t){return!1}},Or=function(t){if(!L(t))return!1;switch(Ne(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return br||!!mr(gr,Nt(t))}catch(t){return!0}};Or.sham=!0;var Sr=!yr||c((function(){var t;return wr(wr.call)||!wr(Object)||!wr((function(){t=!0}))||t}))?Or:wr,xr=pt("species"),Pr=Array,jr=function(t,e){return new(function(t){var e;return pr(t)&&(e=t.constructor,(Sr(e)&&(e===Pr||pr(e.prototype))||C(e)&&null===(e=e[xr]))&&(e=void 0)),void 0===e?Pr:e}(t))(0===e?0:e)},Er=w([].push),Rr=function(t){var e=1==t,r=2==t,n=3==t,o=4==t,i=6==t,a=7==t,c=5==t||i;return function(u,s,f,l){for(var h,p,d=rt(u),v=E(d),y=hr(s,f),g=he(v),m=0,b=l||jr,w=e?b(u,g):r||a?b(u,0):void 0;g>m;m++)if((c||m in v)&&(p=y(h=v[m],m,d),t))if(e)w[m]=p;else if(p)switch(t){case 3:return!0;case 5:return h;case 6:return m;case 2:Er(w,h)}else switch(t){case 4:return!1;case 7:Er(w,h)}return i?-1:n||o?o:w}},kr={forEach:Rr(0),map:Rr(1),filter:Rr(2),some:Rr(3),every:Rr(4),find:Rr(5),findIndex:Rr(6),filterReject:Rr(7)},Ir=kr.forEach,Lr=$t("hidden"),Cr=te.set,Tr=te.getterFor("Symbol"),Ur=Object.prototype,Ar=a.Symbol,_r=Ar&&Ar.prototype,qr=a.TypeError,Fr=a.QObject,Dr=xt.f,Br=Ct.f,Mr=or.f,Nr=d.f,zr=w([].push),Hr=tt("symbols"),Gr=tt("op-symbols"),$r=tt("wks"),Wr=!Fr||!Fr.prototype||!Fr.prototype.findChild,Vr=u&&c((function(){return 7!=Qe(Br({},"a",{get:function(){return Br(this,"a",{value:7}).a}})).a}))?function(t,e,r){var n=Dr(Ur,e);n&&delete Ur[e],Br(t,e,r),n&&t!==Ur&&Br(Ur,e,n)}:Br,Jr=function(t,e){var r=Hr[t]=Qe(_r);return Cr(r,{type:"Symbol",tag:t,description:e}),u||(r.description=e),r},Yr=function(t,e,r){t===Ur&&Yr(Gr,e,r),Rt(t);var n=gt(e);return Rt(r),ot(Hr,n)?(r.enumerable?(ot(t,Lr)&&t[Lr][n]&&(t[Lr][n]=!1),r=Qe(r,{enumerable:v(0,!1)})):(ot(t,Lr)||Br(t,Lr,v(1,{})),t[Lr][n]=!0),Vr(t,n,r)):Br(t,n,r)},Kr=function(t,e){Rt(t);var r=I(e),n=Ue(r).concat(tn(r));return Ir(n,(function(e){u&&!l(Qr,r,e)||Yr(t,e,r[e])})),t},Qr=function(t){var e=gt(t),r=l(Nr,this,e);return!(this===Ur&&ot(Hr,e)&&!ot(Gr,e))&&(!(r||!ot(this,e)||!ot(Hr,e)||ot(this,Lr)&&this[Lr][e])||r)},Xr=function(t,e){var r=I(t),n=gt(e);if(r!==Ur||!ot(Hr,n)||ot(Gr,n)){var o=Dr(r,n);return!o||!ot(Hr,n)||ot(r,Lr)&&r[Lr][n]||(o.enumerable=!0),o}},Zr=function(t){var e=Mr(I(t)),r=[];return Ir(e,(function(t){ot(Hr,t)||ot(Wt,t)||zr(r,t)})),r},tn=function(t){var e=t===Ur,r=Mr(e?Gr:I(t)),n=[];return Ir(r,(function(t){!ot(Hr,t)||e&&!ot(Ur,t)||zr(n,Hr[t])})),n};N||(_r=(Ar=function(){if(A(_r,this))throw qr("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?He(arguments[0]):void 0,e=ut(t),r=function(t){this===Ur&&l(r,Gr,t),ot(this,Lr)&&ot(this[Lr],e)&&(this[Lr][e]=!1),Vr(this,e,v(1,t))};return u&&Wr&&Vr(Ur,e,{configurable:!0,set:r}),Jr(e,t)}).prototype,re(_r,"toString",(function(){return Tr(this).tag})),re(Ar,"withoutSetter",(function(t){return Jr(ut(t),t)})),d.f=Qr,Ct.f=Yr,Ge.f=Kr,xt.f=Xr,be.f=or.f=Zr,we.f=tn,ir.f=function(t){return Jr(pt(t),t)},u&&(Br(_r,"description",{configurable:!0,get:function(){return Tr(this).description}}),re(Ur,"propertyIsEnumerable",Qr,{unsafe:!0}))),Te({global:!0,constructor:!0,wrap:!0,forced:!N,sham:!N},{Symbol:Ar}),Ir(Ue($r),(function(t){!function(t){var e=ar.Symbol||(ar.Symbol={});ot(e,t)||cr(e,t,{value:ir.f(t)})}(t)})),Te({target:"Symbol",stat:!0,forced:!N},{useSetter:function(){Wr=!0},useSimple:function(){Wr=!1}}),Te({target:"Object",stat:!0,forced:!N,sham:!u},{create:function(t,e){return void 0===e?Qe(t):Kr(Qe(t),e)},defineProperty:Yr,defineProperties:Kr,getOwnPropertyDescriptor:Xr}),Te({target:"Object",stat:!0,forced:!N},{getOwnPropertyNames:Zr}),function(){var t=U("Symbol"),e=t&&t.prototype,r=e&&e.valueOf,n=pt("toPrimitive");e&&!e[n]&&re(e,n,(function(t){return l(r,this)}),{arity:1})}(),fr(Ar,"Symbol"),Wt[Lr]=!0;var en=N&&!!Symbol.for&&!!Symbol.keyFor,rn=tt("string-to-symbol-registry"),nn=tt("symbol-to-string-registry");Te({target:"Symbol",stat:!0,forced:!en},{for:function(t){var e=He(t);if(ot(rn,e))return rn[e];var r=U("Symbol")(e);return rn[e]=r,nn[r]=e,r}});var on=tt("symbol-to-string-registry");Te({target:"Symbol",stat:!0,forced:!en},{keyFor:function(t){if(!G(t))throw TypeError(W(t)+" is not a symbol");if(ot(on,t))return on[t]}});var an=Function.prototype,cn=an.apply,un=an.call,sn="object"==typeof Reflect&&Reflect.apply||(s?un.bind(cn):function(){return un.apply(cn,arguments)}),fn=w([].slice),ln=U("JSON","stringify"),hn=w(/./.exec),pn=w("".charAt),dn=w("".charCodeAt),vn=w("".replace),yn=w(1..toString),gn=/[\uD800-\uDFFF]/g,mn=/^[\uD800-\uDBFF]$/,bn=/^[\uDC00-\uDFFF]$/,wn=!N||c((function(){var t=U("Symbol")();return"[null]"!=ln([t])||"{}"!=ln({a:t})||"{}"!=ln(Object(t))})),On=c((function(){return'"\\udf06\\ud834"'!==ln("\udf06\ud834")||'"\\udead"'!==ln("\udead")})),Sn=function(t,e){var r=fn(arguments),n=e;if((C(e)||void 0!==t)&&!G(t))return pr(e)||(e=function(t,e){if(L(n)&&(e=l(n,this,t,e)),!G(e))return e}),r[1]=e,sn(ln,null,r)},xn=function(t,e,r){var n=pn(r,e-1),o=pn(r,e+1);return hn(mn,t)&&!hn(bn,o)||hn(bn,t)&&!hn(mn,n)?"\\u"+yn(dn(t,0),16):t};ln&&Te({target:"JSON",stat:!0,arity:3,forced:wn||On},{stringify:function(t,e,r){var n=fn(arguments),o=sn(wn?Sn:ln,null,n);return On&&"string"==typeof o?vn(o,gn,xn):o}});var Pn=!N||c((function(){we.f(1)}));Te({target:"Object",stat:!0,forced:Pn},{getOwnPropertySymbols:function(t){var e=we.f;return e?e(rt(t)):[]}});var jn=pt("species"),En=function(t){return M>=51||!c((function(){var e=[];return(e.constructor={})[jn]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},Rn=kr.filter,kn=En("filter");Te({target:"Array",proto:!0,forced:!kn},{filter:function(t){return Rn(this,t,arguments.length>1?arguments[1]:void 0)}});var In=Fe?{}.toString:function(){return"[object "+Ne(this)+"]"};Fe||re(Object.prototype,"toString",In,{unsafe:!0});var Ln=xt.f,Cn=c((function(){Ln(1)}));Te({target:"Object",stat:!0,forced:!u||Cn,sham:!u},{getOwnPropertyDescriptor:function(t,e){return Ln(I(t),e)}});var Tn={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},Un=wt("span").classList,An=Un&&Un.constructor&&Un.constructor.prototype,_n=An===Object.prototype?void 0:An,qn=kr.forEach,Fn=function(t,e){var r=[][t];return!!r&&c((function(){r.call(null,e||function(){return 1},1)}))}("forEach")?[].forEach:function(t){return qn(this,t,arguments.length>1?arguments[1]:void 0)},Dn=function(t){if(t&&t.forEach!==Fn)try{Tt(t,"forEach",Fn)}catch(e){t.forEach=Fn}};for(var Bn in Tn)Tn[Bn]&&Dn(a[Bn]&&a[Bn].prototype);Dn(_n),Te({target:"Object",stat:!0,sham:!u},{getOwnPropertyDescriptors:function(t){for(var e,r,n=I(t),o=xt.f,i=Se(n),a={},c=0;i.length>c;)void 0!==(r=o(n,e=i[c++]))&&Xe(a,e,r);return a}});var Mn=Ge.f;Te({target:"Object",stat:!0,forced:Object.defineProperties!==Mn,sham:!u},{defineProperties:Mn});var Nn=Ct.f;Te({target:"Object",stat:!0,forced:Object.defineProperty!==Nn,sham:!u},{defineProperty:Nn});var zn,Hn=pt("match"),Gn=TypeError,$n=function(t){if(function(t){var e;return C(t)&&(void 0!==(e=t[Hn])?!!e:"RegExp"==x(t))}(t))throw Gn("The method doesn't accept regular expressions");return t},Wn=pt("match"),Vn=xt.f,Jn=w("".startsWith),Yn=w("".slice),Kn=Math.min,Qn=function(t){var e=/./;try{"/./"[t](e)}catch(r){try{return e[Wn]=!1,"/./"[t](e)}catch(t){}}return!1}("startsWith"),Xn=!(Qn||(zn=Vn(String.prototype,"startsWith"),!zn||zn.writable));Te({target:"String",proto:!0,forced:!Xn&&!Qn},{startsWith:function(t){var e=He(k(this));$n(t);var r=le(Kn(arguments.length>1?arguments[1]:void 0,e.length)),n=He(t);return Jn?Jn(e,n,r):Yn(e,r,r+n.length)===n}});var Zn=function(){var t=Rt(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e},to=RegExp.prototype,eo=qt.PROPER,ro=RegExp.prototype.toString,no=c((function(){return"/a/b"!=ro.call({source:"a",flags:"b"})})),oo=eo&&"toString"!=ro.name;function io(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}function ao(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){io(i,n,o,a,c,"next",t)}function c(t){io(i,n,o,a,c,"throw",t)}a(void 0)}))}}function co(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function uo(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function so(t,e,r){return e&&uo(t.prototype,e),r&&uo(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function fo(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}(no||oo)&&re(RegExp.prototype,"toString",(function(){var t=Rt(this);return"/"+He(t.source)+"/"+He(function(t){var e=t.flags;return void 0!==e||"flags"in to||ot(t,"flags")||!A(to,t)?e:l(Zn,t)}(t))}),{unsafe:!0});var lo=Object.prototype,ho=lo.hasOwnProperty,po="function"==typeof Symbol?Symbol:{},vo=po.iterator||"@@iterator",yo=po.asyncIterator||"@@asyncIterator",go=po.toStringTag||"@@toStringTag";function mo(t,e,r,n){var o=e&&e.prototype instanceof Oo?e:Oo,i=Object.create(o.prototype),a=new Ao(n||[]);return i._invoke=function(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return qo()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=Co(a,r);if(c){if(c===wo)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=bo(t,e,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===wo)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}(t,r,a),i}function bo(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}var wo={};function Oo(){}function So(){}function xo(){}var Po={};Po[vo]=function(){return this};var jo=Object.getPrototypeOf,Eo=jo&&jo(jo(_o([])));Eo&&Eo!==lo&&ho.call(Eo,vo)&&(Po=Eo);var Ro=xo.prototype=Oo.prototype=Object.create(Po);function ko(t){["next","throw","return"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function Io(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===So||"GeneratorFunction"===(e.displayName||e.name))}function Lo(t,e){var r;this._invoke=function(n,o){function i(){return new e((function(r,i){!function r(n,o,i,a){var c=bo(t[n],t,o);if("throw"!==c.type){var u=c.arg,s=u.value;return s&&"object"==typeof s&&ho.call(s,"__await")?e.resolve(s.__await).then((function(t){r("next",t,i,a)}),(function(t){r("throw",t,i,a)})):e.resolve(s).then((function(t){u.value=t,i(u)}),(function(t){return r("throw",t,i,a)}))}a(c.arg)}(n,o,r,i)}))}return r=r?r.then(i,i):i()}}function Co(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,Co(t,e),"throw"===e.method))return wo;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return wo}var n=bo(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,wo;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,wo):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,wo)}function To(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function Uo(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function Ao(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(To,this),this.reset(!0)}function _o(t){if(t){var e=t[vo];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,n=function e(){for(;++r<t.length;)if(ho.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return n.next=n}}return{next:qo}}function qo(){return{value:void 0,done:!0}}So.prototype=Ro.constructor=xo,xo.constructor=So,xo[go]=So.displayName="GeneratorFunction",ko(Lo.prototype),Lo.prototype[yo]=function(){return this},ko(Ro),Ro[go]="Generator",Ro[vo]=function(){return this},Ro.toString=function(){return"[object Generator]"},Ao.prototype={constructor:Ao,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(Uo),!t)for(var e in this)"t"===e.charAt(0)&&ho.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,n){return i.type="throw",i.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var a=ho.call(o,"catchLoc"),c=ho.call(o,"finallyLoc");if(a&&c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(a){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&ho.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o.finallyLoc,wo):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),wo},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),Uo(r),wo}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;Uo(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:_o(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),wo}};var Fo={wrap:mo,isGeneratorFunction:Io,AsyncIterator:Lo,mark:function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,xo):(t.__proto__=xo,go in t||(t[go]="GeneratorFunction")),t.prototype=Object.create(Ro),t},awrap:function(t){return{__await:t}},async:function(t,e,r,n,o){void 0===o&&(o=Promise);var i=new Lo(mo(t,e,r,n),o);return Io(e)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},keys:function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},values:_o},Do=Ct.f,Bo=pt("unscopables"),Mo=Array.prototype;null==Mo[Bo]&&Do(Mo,Bo,{configurable:!0,value:Qe(null)});var No,zo,Ho,Go=function(t){Mo[Bo][t]=!0},$o={},Wo=!c((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),Vo=$t("IE_PROTO"),Jo=Object,Yo=Jo.prototype,Ko=Wo?Jo.getPrototypeOf:function(t){var e=rt(t);if(ot(e,Vo))return e[Vo];var r=e.constructor;return L(r)&&e instanceof r?r.prototype:e instanceof Jo?Yo:null},Qo=pt("iterator"),Xo=!1;[].keys&&("next"in(Ho=[].keys())?(zo=Ko(Ko(Ho)))!==Object.prototype&&(No=zo):Xo=!0),(null==No||c((function(){var t={};return No[Qo].call(t)!==t})))&&(No={}),L(No[Qo])||re(No,Qo,(function(){return this}));var Zo={IteratorPrototype:No,BUGGY_SAFARI_ITERATORS:Xo},ti=Zo.IteratorPrototype,ei=function(){return this},ri=function(t,e,r,n){var o=e+" Iterator";return t.prototype=Qe(ti,{next:v(+!n,r)}),fr(t,o,!1),$o[o]=ei,t},ni=String,oi=TypeError,ii=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=w(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return Rt(r),function(t){if("object"==typeof t||L(t))return t;throw oi("Can't set "+ni(t)+" as a prototype")}(n),e?t(r,n):r.__proto__=n,r}}():void 0),ai=qt.PROPER,ci=qt.CONFIGURABLE,ui=Zo.IteratorPrototype,si=Zo.BUGGY_SAFARI_ITERATORS,fi=pt("iterator"),li=function(){return this},hi=function(t,e,r,n,o,i,a){ri(r,e,n);var c,u,s,f=function(t){if(t===o&&y)return y;if(!si&&t in d)return d[t];switch(t){case"keys":case"values":case"entries":return function(){return new r(this,t)}}return function(){return new r(this)}},h=e+" Iterator",p=!1,d=t.prototype,v=d[fi]||d["@@iterator"]||o&&d[o],y=!si&&v||f(o),g="Array"==e&&d.entries||v;if(g&&(c=Ko(g.call(new t)))!==Object.prototype&&c.next&&(Ko(c)!==ui&&(ii?ii(c,ui):L(c[fi])||re(c,fi,li)),fr(c,h,!0)),ai&&"values"==o&&v&&"values"!==v.name&&(ci?Tt(d,"name","values"):(p=!0,y=function(){return l(v,this)})),o)if(u={values:f("values"),keys:i?y:f("keys"),entries:f("entries")},a)for(s in u)(si||p||!(s in d))&&re(d,s,u[s]);else Te({target:e,proto:!0,forced:si||p},u);return d[fi]!==y&&re(d,fi,y,{name:o}),$o[e]=y,u},pi=Ct.f,di=te.set,vi=te.getterFor("Array Iterator"),yi=hi(Array,"Array",(function(t,e){di(this,{type:"Array Iterator",target:I(t),index:0,kind:e})}),(function(){var t=vi(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:n,done:!1}:"values"==r?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}}),"values"),gi=$o.Arguments=$o.Array;if(Go("keys"),Go("values"),Go("entries"),u&&"values"!==gi.name)try{pi(gi,"name",{value:"values"})}catch(t){}var mi=w("".charAt),bi=w("".charCodeAt),wi=w("".slice),Oi=function(t){return function(e,r){var n,o,i=He(k(e)),a=ae(r),c=i.length;return a<0||a>=c?t?"":void 0:(n=bi(i,a))<55296||n>56319||a+1===c||(o=bi(i,a+1))<56320||o>57343?t?mi(i,a):n:t?wi(i,a,a+2):o-56320+(n-55296<<10)+65536}},Si={codeAt:Oi(!1),charAt:Oi(!0)},xi=Si.charAt,Pi=te.set,ji=te.getterFor("String Iterator");hi(String,"String",(function(t){Pi(this,{type:"String Iterator",string:He(t),index:0})}),(function(){var t,e=ji(this),r=e.string,n=e.index;return n>=r.length?{value:void 0,done:!0}:(t=xi(r,n),e.index+=t.length,{value:t,done:!1})}));var Ei=pt("iterator"),Ri=pt("toStringTag"),ki=yi.values,Ii=function(t,e){if(t){if(t[Ei]!==ki)try{Tt(t,Ei,ki)}catch(e){t[Ei]=ki}if(t[Ri]||Tt(t,Ri,e),Tn[e])for(var r in yi)if(t[r]!==yi[r])try{Tt(t,r,yi[r])}catch(e){t[r]=yi[r]}}};for(var Li in Tn)Ii(a[Li]&&a[Li].prototype,Li);Ii(_n,"DOMTokenList");var Ci=pt("iterator"),Ti=!c((function(){var t=new URL("b?a=1&b=2&c=3","http://a"),e=t.searchParams,r="";return t.pathname="c%20d",e.forEach((function(t,n){e.delete("b"),r+=n+t})),!e.sort||"http://a/c%20d?a=1&c=3"!==t.href||"3"!==e.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!e[Ci]||"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"!==r||"x"!==new URL("http://x",void 0).host})),Ui=TypeError,Ai=function(t,e){if(A(e,t))return t;throw Ui("Incorrect invocation")},_i=pt("iterator"),qi=function(t){if(null!=t)return Y(t,_i)||Y(t,"@@iterator")||$o[Ne(t)]},Fi=TypeError,Di=function(t,e){var r=arguments.length<2?qi(t):e;if(J(r))return Rt(l(r,t));throw Fi(W(t)+" is not iterable")},Bi=TypeError,Mi=function(t,e){if(t<e)throw Bi("Not enough arguments");return t},Ni=Math.floor,zi=function(t,e){var r=t.length,n=Ni(r/2);return r<8?Hi(t,e):Gi(t,zi(er(t,0,n),e),zi(er(t,n),e),e)},Hi=function(t,e){for(var r,n,o=t.length,i=1;i<o;){for(n=i,r=t[i];n&&e(t[n-1],r)>0;)t[n]=t[--n];n!==i++&&(t[n]=r)}return t},Gi=function(t,e,r,n){for(var o=e.length,i=r.length,a=0,c=0;a<o||c<i;)t[a+c]=a<o&&c<i?n(e[a],r[c])<=0?e[a++]:r[c++]:a<o?e[a++]:r[c++];return t},$i=zi,Wi=pt("iterator"),Vi=te.set,Ji=te.getterFor("URLSearchParams"),Yi=te.getterFor("URLSearchParamsIterator"),Ki=Object.getOwnPropertyDescriptor,Qi=function(t){if(!u)return a[t];var e=Ki(a,t);return e&&e.value},Xi=Qi("fetch"),Zi=Qi("Request"),ta=Qi("Headers"),ea=Zi&&Zi.prototype,ra=ta&&ta.prototype,na=a.RegExp,oa=a.TypeError,ia=a.decodeURIComponent,aa=a.encodeURIComponent,ca=w("".charAt),ua=w([].join),sa=w([].push),fa=w("".replace),la=w([].shift),ha=w([].splice),pa=w("".split),da=w("".slice),va=/\+/g,ya=Array(4),ga=function(t){return ya[t-1]||(ya[t-1]=na("((?:%[\\da-f]{2}){"+t+"})","gi"))},ma=function(t){try{return ia(t)}catch(e){return t}},ba=function(t){var e=fa(t,va," "),r=4;try{return ia(e)}catch(t){for(;r;)e=fa(e,ga(r--),ma);return e}},wa=/[!'()~]|%20/g,Oa={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},Sa=function(t){return Oa[t]},xa=function(t){return fa(aa(t),wa,Sa)},Pa=ri((function(t,e){Vi(this,{type:"URLSearchParamsIterator",iterator:Di(Ji(t).entries),kind:e})}),"Iterator",(function(){var t=Yi(this),e=t.kind,r=t.iterator.next(),n=r.value;return r.done||(r.value="keys"===e?n.key:"values"===e?n.value:[n.key,n.value]),r}),!0),ja=function(t){this.entries=[],this.url=null,void 0!==t&&(C(t)?this.parseObject(t):this.parseQuery("string"==typeof t?"?"===ca(t,0)?da(t,1):t:He(t)))};ja.prototype={type:"URLSearchParams",bindURL:function(t){this.url=t,this.update()},parseObject:function(t){var e,r,n,o,i,a,c,u=qi(t);if(u)for(r=(e=Di(t,u)).next;!(n=l(r,e)).done;){if(i=(o=Di(Rt(n.value))).next,(a=l(i,o)).done||(c=l(i,o)).done||!l(i,o).done)throw oa("Expected sequence with length 2");sa(this.entries,{key:He(a.value),value:He(c.value)})}else for(var s in t)ot(t,s)&&sa(this.entries,{key:s,value:He(t[s])})},parseQuery:function(t){if(t)for(var e,r,n=pa(t,"&"),o=0;o<n.length;)(e=n[o++]).length&&(r=pa(e,"="),sa(this.entries,{key:ba(la(r)),value:ba(ua(r,"="))}))},serialize:function(){for(var t,e=this.entries,r=[],n=0;n<e.length;)t=e[n++],sa(r,xa(t.key)+"="+xa(t.value));return ua(r,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var Ea=function(){Ai(this,Ra);var t=arguments.length>0?arguments[0]:void 0;Vi(this,new ja(t))},Ra=Ea.prototype;if(function(t,e,r){for(var n in e)re(t,n,e[n],r)}(Ra,{append:function(t,e){Mi(arguments.length,2);var r=Ji(this);sa(r.entries,{key:He(t),value:He(e)}),r.updateURL()},delete:function(t){Mi(arguments.length,1);for(var e=Ji(this),r=e.entries,n=He(t),o=0;o<r.length;)r[o].key===n?ha(r,o,1):o++;e.updateURL()},get:function(t){Mi(arguments.length,1);for(var e=Ji(this).entries,r=He(t),n=0;n<e.length;n++)if(e[n].key===r)return e[n].value;return null},getAll:function(t){Mi(arguments.length,1);for(var e=Ji(this).entries,r=He(t),n=[],o=0;o<e.length;o++)e[o].key===r&&sa(n,e[o].value);return n},has:function(t){Mi(arguments.length,1);for(var e=Ji(this).entries,r=He(t),n=0;n<e.length;)if(e[n++].key===r)return!0;return!1},set:function(t,e){Mi(arguments.length,1);for(var r,n=Ji(this),o=n.entries,i=!1,a=He(t),c=He(e),u=0;u<o.length;u++)(r=o[u]).key===a&&(i?ha(o,u--,1):(i=!0,r.value=c));i||sa(o,{key:a,value:c}),n.updateURL()},sort:function(){var t=Ji(this);$i(t.entries,(function(t,e){return t.key>e.key?1:-1})),t.updateURL()},forEach:function(t){for(var e,r=Ji(this).entries,n=hr(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 Pa(this,"keys")},values:function(){return new Pa(this,"values")},entries:function(){return new Pa(this,"entries")}},{enumerable:!0}),re(Ra,Wi,Ra.entries,{name:"entries"}),re(Ra,"toString",(function(){return Ji(this).serialize()}),{enumerable:!0}),fr(Ea,"URLSearchParams"),Te({global:!0,constructor:!0,forced:!Ti},{URLSearchParams:Ea}),!Ti&&L(ta)){var ka=w(ra.has),Ia=w(ra.set),La=function(t){if(C(t)){var e,r=t.body;if("URLSearchParams"===Ne(r))return e=t.headers?new ta(t.headers):new ta,ka(e,"content-type")||Ia(e,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),Qe(t,{body:v(0,He(r)),headers:v(0,e)})}return t};if(L(Xi)&&Te({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(t){return Xi(t,arguments.length>1?La(arguments[1]):{})}}),L(Zi)){var Ca=function(t){return Ai(this,ea),new Zi(t,arguments.length>1?La(arguments[1]):{})};ea.constructor=Ca,Ca.prototype=ea,Te({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:Ca})}}var Ta={URLSearchParams:Ea,getState:Ji};function Ua(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Aa(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Ua(Object(r),!0).forEach((function(e){fo(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ua(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var _a=so((function t(e){if(co(this,t),fo(this,"baseUri",void 0),fo(this,"proxy",void 0),fo(this,"headers",void 0),fo(this,"parameters",void 0),fo(this,"fetchOptions",void 0),fo(this,"fetch",void 0),fo(this,"transformRequest",void 0),fo(this,"throwOnBadResponse",void 0),this.headers=Aa({},e.headers),this.parameters=Aa({},e.parameters),!this.parameters.shortCode)throw new Error("Missing required parameter: shortCode");this.fetchOptions=Aa({credentials:"omit"},e.fetchOptions),this.transformRequest=e.transformRequest||t.defaults.transformRequest,this.fetch=e.fetch,e.baseUri&&(this.baseUri=e.baseUri),e.proxy&&(this.proxy=e.proxy),this.throwOnBadResponse=!!e.throwOnBadResponse}));fo(_a,"defaults",{transformRequest:function(t,e){switch(e["Content-Type"]){case"application/json":return JSON.stringify(t);case"application/x-www-form-urlencoded":return new URLSearchParams(t);default:return t}}}),Te({global:!0},{globalThis:a});var qa,Fa,Da,Ba,Ma="process"==x(a.process),Na=pt("species"),za=TypeError,Ha=function(t){if(Sr(t))return t;throw za(W(t)+" is not a constructor")},Ga=pt("species"),$a=/(?:ipad|iphone|ipod).*applewebkit/i.test(_),Wa=a.setImmediate,Va=a.clearImmediate,Ja=a.process,Ya=a.Dispatch,Ka=a.Function,Qa=a.MessageChannel,Xa=a.String,Za=0,tc={};try{qa=a.location}catch(t){}var ec=function(t){if(ot(tc,t)){var e=tc[t];delete tc[t],e()}},rc=function(t){return function(){ec(t)}},nc=function(t){ec(t.data)},oc=function(t){a.postMessage(Xa(t),qa.protocol+"//"+qa.host)};Wa&&Va||(Wa=function(t){Mi(arguments.length,1);var e=L(t)?t:Ka(t),r=fn(arguments,1);return tc[++Za]=function(){sn(e,void 0,r)},Fa(Za),Za},Va=function(t){delete tc[t]},Ma?Fa=function(t){Ja.nextTick(rc(t))}:Ya&&Ya.now?Fa=function(t){Ya.now(rc(t))}:Qa&&!$a?(Ba=(Da=new Qa).port2,Da.port1.onmessage=nc,Fa=hr(Ba.postMessage,Ba)):a.addEventListener&&L(a.postMessage)&&!a.importScripts&&qa&&"file:"!==qa.protocol&&!c(oc)?(Fa=oc,a.addEventListener("message",nc,!1)):Fa="onreadystatechange"in wt("script")?function(t){$e.appendChild(wt("script")).onreadystatechange=function(){$e.removeChild(this),ec(t)}}:function(t){setTimeout(rc(t),0)});var ic,ac,cc,uc,sc,fc,lc,hc,pc={set:Wa,clear:Va},dc=/ipad|iphone|ipod/i.test(_)&&void 0!==a.Pebble,vc=/web0s(?!.*chrome)/i.test(_),yc=xt.f,gc=pc.set,mc=a.MutationObserver||a.WebKitMutationObserver,bc=a.document,wc=a.process,Oc=a.Promise,Sc=yc(a,"queueMicrotask"),xc=Sc&&Sc.value;xc||(ic=function(){var t,e;for(Ma&&(t=wc.domain)&&t.exit();ac;){e=ac.fn,ac=ac.next;try{e()}catch(t){throw ac?uc():cc=void 0,t}}cc=void 0,t&&t.enter()},$a||Ma||vc||!mc||!bc?!dc&&Oc&&Oc.resolve?((lc=Oc.resolve(void 0)).constructor=Oc,hc=hr(lc.then,lc),uc=function(){hc(ic)}):Ma?uc=function(){wc.nextTick(ic)}:(gc=hr(gc,a),uc=function(){gc(ic)}):(sc=!0,fc=bc.createTextNode(""),new mc(ic).observe(fc,{characterData:!0}),uc=function(){fc.data=sc=!sc}));var Pc=xc||function(t){var e={fn:t,next:void 0};cc&&(cc.next=e),ac||(ac=e,uc()),cc=e},jc=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},Ec=function(){this.head=null,this.tail=null};Ec.prototype={add:function(t){var e={item:t,next:null};this.head?this.tail.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return this.head=t.next,this.tail===t&&(this.tail=null),t.item}};var Rc=Ec,kc=a.Promise,Ic="object"==typeof window&&"object"!=typeof Deno;kc&&kc.prototype;var Lc,Cc,Tc,Uc=pt("species"),Ac=!1,_c=L(a.PromiseRejectionEvent),qc={CONSTRUCTOR:Le("Promise",(function(){var t=Nt(kc),e=t!==String(kc);if(!e&&66===M)return!0;if(M>=51&&/native code/.test(t))return!1;var r=new kc((function(t){t(1)})),n=function(t){t((function(){}),(function(){}))};return(r.constructor={})[Uc]=n,!(Ac=r.then((function(){}))instanceof n)||!e&&Ic&&!_c})),REJECTION_EVENT:_c,SUBCLASSING:Ac},Fc=function(t){var e,r;this.promise=new t((function(t,n){if(void 0!==e||void 0!==r)throw TypeError("Bad Promise constructor");e=t,r=n})),this.resolve=J(e),this.reject=J(r)},Dc={f:function(t){return new Fc(t)}},Bc=pc.set,Mc=qc.CONSTRUCTOR,Nc=qc.REJECTION_EVENT,zc=qc.SUBCLASSING,Hc=te.getterFor("Promise"),Gc=te.set,$c=kc&&kc.prototype,Wc=kc,Vc=$c,Jc=a.TypeError,Yc=a.document,Kc=a.process,Qc=Dc.f,Xc=Qc,Zc=!!(Yc&&Yc.createEvent&&a.dispatchEvent),tu=function(t){var e;return!(!C(t)||!L(e=t.then))&&e},eu=function(t,e){var r,n,o,i=e.value,a=1==e.state,c=a?t.ok:t.fail,u=t.resolve,s=t.reject,f=t.domain;try{c?(a||(2===e.rejection&&au(e),e.rejection=1),!0===c?r=i:(f&&f.enter(),r=c(i),f&&(f.exit(),o=!0)),r===t.promise?s(Jc("Promise-chain cycle")):(n=tu(r))?l(n,r,u,s):u(r)):s(i)}catch(t){f&&!o&&f.exit(),s(t)}},ru=function(t,e){t.notified||(t.notified=!0,Pc((function(){for(var r,n=t.reactions;r=n.get();)eu(r,t);t.notified=!1,e&&!t.rejection&&ou(t)})))},nu=function(t,e,r){var n,o;Zc?((n=Yc.createEvent("Event")).promise=e,n.reason=r,n.initEvent(t,!1,!0),a.dispatchEvent(n)):n={promise:e,reason:r},!Nc&&(o=a["on"+t])?o(n):"unhandledrejection"===t&&function(t,e){var r=a.console;r&&r.error&&(1==arguments.length?r.error(t):r.error(t,e))}("Unhandled promise rejection",r)},ou=function(t){l(Bc,a,(function(){var e,r=t.facade,n=t.value;if(iu(t)&&(e=jc((function(){Ma?Kc.emit("unhandledRejection",n,r):nu("unhandledrejection",r,n)})),t.rejection=Ma||iu(t)?2:1,e.error))throw e.value}))},iu=function(t){return 1!==t.rejection&&!t.parent},au=function(t){l(Bc,a,(function(){var e=t.facade;Ma?Kc.emit("rejectionHandled",e):nu("rejectionhandled",e,t.value)}))},cu=function(t,e,r){return function(n){t(e,n,r)}},uu=function(t,e,r){t.done||(t.done=!0,r&&(t=r),t.value=e,t.state=2,ru(t,!0))},su=function(t,e,r){if(!t.done){t.done=!0,r&&(t=r);try{if(t.facade===e)throw Jc("Promise can't be resolved itself");var n=tu(e);n?Pc((function(){var r={done:!1};try{l(n,e,cu(su,r,t),cu(uu,r,t))}catch(e){uu(r,e,t)}})):(t.value=e,t.state=1,ru(t,!1))}catch(e){uu({done:!1},e,t)}}};if(Mc&&(Vc=(Wc=function(t){Ai(this,Vc),J(t),l(Lc,this);var e=Hc(this);try{t(cu(su,e),cu(uu,e))}catch(t){uu(e,t)}}).prototype,(Lc=function(t){Gc(this,{type:"Promise",done:!1,notified:!1,parent:!1,reactions:new Rc,rejection:!1,state:0,value:void 0})}).prototype=re(Vc,"then",(function(t,e){var r,n,o,i=Hc(this),a=Qc((r=Wc,void 0===(o=Rt(this).constructor)||null==(n=Rt(o)[Ga])?r:Ha(n)));return i.parent=!0,a.ok=!L(t)||t,a.fail=L(e)&&e,a.domain=Ma?Kc.domain:void 0,0==i.state?i.reactions.add(a):Pc((function(){eu(a,i)})),a.promise})),Cc=function(){var t=new Lc,e=Hc(t);this.promise=t,this.resolve=cu(su,e),this.reject=cu(uu,e)},Dc.f=Qc=function(t){return t===Wc||void 0===t?new Cc(t):Xc(t)},L(kc)&&$c!==Object.prototype)){Tc=$c.then,zc||re($c,"then",(function(t,e){var r=this;return new Wc((function(t,e){l(Tc,r,t,e)})).then(t,e)}),{unsafe:!0});try{delete $c.constructor}catch(t){}ii&&ii($c,Vc)}Te({global:!0,constructor:!0,wrap:!0,forced:Mc},{Promise:Wc}),fr(Wc,"Promise",!1),function(t){var e=U(t),r=Ct.f;u&&e&&!e[Na]&&r(e,Na,{configurable:!0,get:function(){return this}})}("Promise");var fu=pt("iterator"),lu=Array.prototype,hu=function(t){return void 0!==t&&($o.Array===t||lu[fu]===t)},pu=function(t,e,r){var n,o;Rt(t);try{if(!(n=Y(t,"return"))){if("throw"===e)throw r;return r}n=l(n,t)}catch(t){o=!0,n=t}if("throw"===e)throw r;if(o)throw n;return Rt(n),r},du=TypeError,vu=function(t,e){this.stopped=t,this.result=e},yu=vu.prototype,gu=function(t,e,r){var n,o,i,a,c,u,s,f=r&&r.that,h=!(!r||!r.AS_ENTRIES),p=!(!r||!r.IS_RECORD),d=!(!r||!r.IS_ITERATOR),v=!(!r||!r.INTERRUPTED),y=hr(e,f),g=function(t){return n&&pu(n,"normal",t),new vu(!0,t)},m=function(t){return h?(Rt(t),v?y(t[0],t[1],g):y(t[0],t[1])):v?y(t,g):y(t)};if(p)n=t.iterator;else if(d)n=t;else{if(!(o=qi(t)))throw du(W(t)+" is not iterable");if(hu(o)){for(i=0,a=he(t);a>i;i++)if((c=m(t[i]))&&A(yu,c))return c;return new vu(!1)}n=Di(t,o)}for(u=p?t.next:n.next;!(s=l(u,n)).done;){try{c=m(s.value)}catch(t){pu(n,"throw",t)}if("object"==typeof c&&c&&A(yu,c))return c}return new vu(!1)},mu=pt("iterator"),bu=!1;try{var wu=0,Ou={next:function(){return{done:!!wu++}},return:function(){bu=!0}};Ou[mu]=function(){return this},Array.from(Ou,(function(){throw 2}))}catch(t){}var Su=qc.CONSTRUCTOR||!function(t,e){if(!e&&!bu)return!1;var r=!1;try{var n={};n[mu]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch(t){}return r}((function(t){kc.all(t).then(void 0,(function(){}))}));Te({target:"Promise",stat:!0,forced:Su},{all:function(t){var e=this,r=Dc.f(e),n=r.resolve,o=r.reject,i=jc((function(){var r=J(e.resolve),i=[],a=0,c=1;gu(t,(function(t){var u=a++,s=!1;c++,l(r,e,t).then((function(t){s||(s=!0,i[u]=t,--c||n(i))}),o)})),--c||n(i)}));return i.error&&o(i.value),r.promise}});var xu=qc.CONSTRUCTOR,Pu=kc&&kc.prototype;if(Te({target:"Promise",proto:!0,forced:xu,real:!0},{catch:function(t){return this.then(void 0,t)}}),L(kc)){var ju=U("Promise").prototype.catch;Pu.catch!==ju&&re(Pu,"catch",ju,{unsafe:!0})}Te({target:"Promise",stat:!0,forced:Su},{race:function(t){var e=this,r=Dc.f(e),n=r.reject,o=jc((function(){var o=J(e.resolve);gu(t,(function(t){l(o,e,t).then(r.resolve,n)}))}));return o.error&&n(o.value),r.promise}}),Te({target:"Promise",stat:!0,forced:qc.CONSTRUCTOR},{reject:function(t){var e=Dc.f(this);return l(e.reject,void 0,t),e.promise}});var Eu=qc.CONSTRUCTOR;function Ru(t){return(Ru="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}U("Promise"),Te({target:"Promise",stat:!0,forced:Eu},{resolve:function(t){return function(t,e){if(Rt(t),C(e)&&e.constructor===t)return e;var r=Dc.f(t);return(0,r.resolve)(e),r.promise}(this,t)}});var ku,Iu,Lu,Cu,Tu="object"===("undefined"==typeof window?"undefined":Ru(window))&&"object"===Ru(window.document),Uu="object"===("undefined"==typeof process?"undefined":Ru(process))&&"object"===Ru(process.versions)&&"string"==typeof process.versions.node,Au=Tu?window:globalThis,_u="function"==typeof Au.fetch,qu=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return ku?ku.apply(void 0,e):(Iu||(Iu=ao(Fo.mark((function t(){var e,r,n;return Fo.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!Uu){t.next=7;break}return t.next=3,import("node-fetch");case 3:return r=t.sent,n=null!==(e=r.default)&&void 0!==e?e:r,ku=n,t.abrupt("return",n);case 7:if(_u){t.next=9;break}throw new Error("Bad environment: it is not a node environment but fetch is not defined");case 9:return ku=Au.fetch.bind(Au),t.abrupt("return",ku);case 11:case"end":return t.stop()}}),t)})))()),Iu.then((function(t){return t.apply(void 0,e)})))},Fu=a.RegExp,Du=c((function(){var t=Fu("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),Bu=Du||c((function(){return!Fu("a","y").sticky})),Mu={BROKEN_CARET:Du||c((function(){var t=Fu("^r","gy");return t.lastIndex=2,null!=t.exec("str")})),MISSED_STICKY:Bu,UNSUPPORTED_Y:Du},Nu=a.RegExp,zu=c((function(){var t=Nu(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)})),Hu=a.RegExp,Gu=c((function(){var t=Hu("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),$u=te.get,Wu=tt("native-string-replace",String.prototype.replace),Vu=RegExp.prototype.exec,Ju=Vu,Yu=w("".charAt),Ku=w("".indexOf),Qu=w("".replace),Xu=w("".slice),Zu=(Cu=/b*/g,l(Vu,Lu=/a/,"a"),l(Vu,Cu,"a"),0!==Lu.lastIndex||0!==Cu.lastIndex),ts=Mu.BROKEN_CARET,es=void 0!==/()??/.exec("")[1];(Zu||es||ts||zu||Gu)&&(Ju=function(t){var e,r,n,o,i,a,c,u=this,s=$u(u),f=He(t),h=s.raw;if(h)return h.lastIndex=u.lastIndex,e=l(Ju,h,f),u.lastIndex=h.lastIndex,e;var p=s.groups,d=ts&&u.sticky,v=l(Zn,u),y=u.source,g=0,m=f;if(d&&(v=Qu(v,"y",""),-1===Ku(v,"g")&&(v+="g"),m=Xu(f,u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&"\n"!==Yu(f,u.lastIndex-1))&&(y="(?: "+y+")",m=" "+m,g++),r=new RegExp("^(?:"+y+")",v)),es&&(r=new RegExp("^"+y+"$(?!\\s)",v)),Zu&&(n=u.lastIndex),o=l(Vu,d?r:u,m),d?o?(o.input=Xu(o.input,g),o[0]=Xu(o[0],g),o.index=u.lastIndex,u.lastIndex+=o[0].length):u.lastIndex=0:Zu&&o&&(u.lastIndex=u.global?o.index+o[0].length:n),es&&o&&o.length>1&&l(Wu,o[0],r,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&p)for(o.groups=a=Qe(null),i=0;i<p.length;i++)a[(c=p[i])[0]]=o[c[1]];return o});var rs=Ju;Te({target:"RegExp",proto:!0,forced:/./.exec!==rs},{exec:rs});var ns=pt("species"),os=RegExp.prototype,is=function(t,e,r,n){var o=pt(t),i=!c((function(){var e={};return e[o]=function(){return 7},7!=""[t](e)})),a=i&&!c((function(){var e=!1,r=/a/;return"split"===t&&((r={}).constructor={},r.constructor[ns]=function(){return r},r.flags="",r[o]=/./[o]),r.exec=function(){return e=!0,null},r[o](""),!e}));if(!i||!a||r){var u=w(/./[o]),s=e(o,""[t],(function(t,e,r,n,o){var a=w(t),c=e.exec;return c===rs||c===os.exec?i&&!o?{done:!0,value:u(e,r,n)}:{done:!0,value:a(r,e,n)}:{done:!1}}));re(String.prototype,t,s[0]),re(os,o,s[1])}n&&Tt(os[o],"sham",!0)},as=Si.charAt,cs=function(t,e,r){return e+(r?as(t,e).length:1)},us=Math.floor,ss=w("".charAt),fs=w("".replace),ls=w("".slice),hs=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,ps=/\$([$&'`]|\d{1,2})/g,ds=function(t,e,r,n,o,i){var a=r+t.length,c=n.length,u=ps;return void 0!==o&&(o=rt(o),u=hs),fs(i,u,(function(i,u){var s;switch(ss(u,0)){case"$":return"$";case"&":return t;case"`":return ls(e,0,r);case"'":return ls(e,a);case"<":s=o[ls(u,1,-1)];break;default:var f=+u;if(0===f)return i;if(f>c){var l=us(f/10);return 0===l?i:l<=c?void 0===n[l-1]?ss(u,1):n[l-1]+ss(u,1):i}s=n[f-1]}return void 0===s?"":s}))},vs=TypeError,ys=function(t,e){var r=t.exec;if(L(r)){var n=l(r,t,e);return null!==n&&Rt(n),n}if("RegExp"===x(t))return l(rs,t,e);throw vs("RegExp#exec called on incompatible receiver")},gs=pt("replace"),ms=Math.max,bs=Math.min,ws=w([].concat),Os=w([].push),Ss=w("".indexOf),xs=w("".slice),Ps="$0"==="a".replace(/./,"$0"),js=!!/./[gs]&&""===/./[gs]("a","$0");is("replace",(function(t,e,r){var n=js?"$":"$0";return[function(t,r){var n=k(this),o=null==t?void 0:Y(t,gs);return o?l(o,t,n,r):l(e,He(n),t,r)},function(t,o){var i=Rt(this),a=He(t);if("string"==typeof o&&-1===Ss(o,n)&&-1===Ss(o,"$<")){var c=r(e,i,a,o);if(c.done)return c.value}var u=L(o);u||(o=He(o));var s=i.global;if(s){var f=i.unicode;i.lastIndex=0}for(var l=[];;){var h=ys(i,a);if(null===h)break;if(Os(l,h),!s)break;""===He(h[0])&&(i.lastIndex=cs(a,le(i.lastIndex),f))}for(var p,d="",v=0,y=0;y<l.length;y++){for(var g=He((h=l[y])[0]),m=ms(bs(ae(h.index),a.length),0),b=[],w=1;w<h.length;w++)Os(b,void 0===(p=h[w])?p:String(p));var O=h.groups;if(u){var S=ws([g],b,m,a);void 0!==O&&Os(S,O);var x=He(sn(o,void 0,S))}else x=ds(g,a,m,b,O,o);m>=v&&(d+=xs(a,v,m)+x,v=m+g.length)}return d+xs(a,v)}]}),!!c((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!Ps||js);var Es=Function,Rs=w([].concat),ks=w([].join),Is={},Ls=function(t,e,r){if(!ot(Is,e)){for(var n=[],o=0;o<e;o++)n[o]="a["+o+"]";Is[e]=Es("C,a","return new C("+ks(n,",")+")")}return Is[e](t,r)},Cs=s?Es.bind:function(t){var e=J(this),r=e.prototype,n=fn(arguments,1),o=function(){var r=Rs(n,fn(arguments));return this instanceof o?Ls(e,r.length,r):e.apply(t,r)};return C(r)&&(o.prototype=r),o},Ts=U("Reflect","construct"),Us=Object.prototype,As=[].push,_s=c((function(){function t(){}return!(Ts((function(){}),[],t)instanceof t)})),qs=!c((function(){Ts((function(){}))})),Fs=_s||qs;Te({target:"Reflect",stat:!0,forced:Fs,sham:Fs},{construct:function(t,e){Ha(t),Rt(e);var r=arguments.length<3?t:Ha(arguments[2]);if(qs&&!_s)return Ts(t,e,r);if(t==r){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var n=[null];return sn(As,n,e),new(sn(Cs,t,n))}var o=r.prototype,i=Qe(C(o)?o:Us),a=sn(t,i,e);return C(a)?a:i}});var Ds=TypeError,Bs=function(t){if(t>9007199254740991)throw Ds("Maximum allowed index exceeded");return t},Ms=pt("isConcatSpreadable"),Ns=M>=51||!c((function(){var t=[];return t[Ms]=!1,t.concat()[0]!==t})),zs=En("concat"),Hs=function(t){if(!C(t))return!1;var e=t[Ms];return void 0!==e?!!e:pr(t)};function Gs(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function $s(t,e){return($s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function Ws(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&$s(t,e)}function Vs(t,e){if(e&&("object"===Ru(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Gs(t)}function Js(t){return(Js=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Ys(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function Ks(t,e,r){return(Ks=Ys()?Reflect.construct.bind():function(t,e,r){var n=[null];n.push.apply(n,e);var o=new(Function.bind.apply(t,n));return r&&$s(o,r.prototype),o}).apply(null,arguments)}function Qs(t){var e="function"==typeof Map?new Map:void 0;return(Qs=function(t){if(null===t||(r=t,-1===Function.toString.call(r).indexOf("[native code]")))return t;var r;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return Ks(t,arguments,Js(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),$s(n,t)})(t)}function Xs(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=Js(t);if(e){var o=Js(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Vs(this,r)}}Te({target:"Array",proto:!0,arity:1,forced:!Ns||!zs},{concat:function(t){var e,r,n,o,i,a=rt(this),c=jr(a,0),u=0;for(e=-1,n=arguments.length;e<n;e++)if(Hs(i=-1===e?a:arguments[e]))for(o=he(i),Bs(u+o),r=0;r<o;r++,u++)r in i&&Xe(c,u,i[r]);else Bs(u+1),Xe(c,u++,i);return c.length=u,c}});var Zs=function(t){Ws(r,Qs(Error));var e=Xs(r);function r(t){var n;return co(this,r),fo(Gs(n=e.call(this,"".concat(t.status," ").concat(t.statusText))),"response",void 0),n.response=t,n}return so(r)}();function tf(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function ef(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?tf(Object(r),!0).forEach((function(e){fo(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):tf(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var rf,nf=function(){var t=ao(Fo.mark((function t(e,r,n,o){var i,a,c,u,s,f;return Fo.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=ef(ef({},null==n?void 0:n.headers),null==r?void 0:r.headers),c=ef(ef({},null==n?void 0:n.fetchOptions),{},{headers:a,body:null==r?void 0:r.body,method:null!==(i=null==r?void 0:r.method)&&void 0!==i?i:"GET"}),u=(null==n?void 0:n.fetch)||qu,t.next=5,u(e,c);case 5:if(s=t.sent,!o){t.next=8;break}return t.abrupt("return",s);case 8:if(null==n||!n.throwOnBadResponse||s.ok||304===s.status){t.next=12;break}throw new Zs(s);case 12:return t.next=14,s.text();case 14:return f=t.sent,t.abrupt("return",f?JSON.parse(f):{});case 16:case"end":return t.stop()}}),t)})));return function(e,r,n,o){return t.apply(this,arguments)}}(),of=function(t,e,r){return r.get&&ee(r.get,e,{getter:!0}),r.set&&ee(r.set,e,{setter:!0}),Ct.f(t,e,r)},af=Object.assign,cf=Object.defineProperty,uf=w([].concat),sf=!af||c((function(){if(u&&1!==af({b:1},af(cf({},"a",{enumerable:!0,get:function(){cf(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},r=Symbol();return t[r]=7,"abcdefghijklmnopqrst".split("").forEach((function(t){e[t]=t})),7!=af({},t)[r]||"abcdefghijklmnopqrst"!=Ue(af({},e)).join("")}))?function(t,e){for(var r=rt(t),n=arguments.length,o=1,i=we.f,a=d.f;n>o;)for(var c,s=E(arguments[o++]),f=i?uf(Ue(s),i(s)):Ue(s),h=f.length,p=0;h>p;)c=f[p++],u&&!l(a,s,c)||(r[c]=s[c]);return r}:af,ff=function(t,e,r,n){try{return n?e(Rt(r)[0],r[1]):e(r)}catch(e){pu(t,"throw",e)}},lf=Array,hf=function(t){var e=rt(t),r=Sr(this),n=arguments.length,o=n>1?arguments[1]:void 0,i=void 0!==o;i&&(o=hr(o,n>2?arguments[2]:void 0));var a,c,u,s,f,h,p=qi(e),d=0;if(!p||this===lf&&hu(p))for(a=he(e),c=r?new this(a):lf(a);a>d;d++)h=i?o(e[d],d):e[d],Xe(c,d,h);else for(f=(s=Di(e,p)).next,c=r?new this:[];!(u=l(f,s)).done;d++)h=i?ff(s,o,[u.value,d],!0):u.value,Xe(c,d,h);return c.length=d,c},pf=/[^\0-\u007E]/,df=/[.\u3002\uFF0E\uFF61]/g,vf="Overflow: input needs wider integers to process",yf=RangeError,gf=w(df.exec),mf=Math.floor,bf=String.fromCharCode,wf=w("".charCodeAt),Of=w([].join),Sf=w([].push),xf=w("".replace),Pf=w("".split),jf=w("".toLowerCase),Ef=function(t){return t+22+75*(t<26)},Rf=function(t,e,r){var n=0;for(t=r?mf(t/700):t>>1,t+=mf(t/e);t>455;)t=mf(t/35),n+=36;return mf(n+36*t/(t+38))},kf=function(t){var e,r,n=[],o=(t=function(t){for(var e=[],r=0,n=t.length;r<n;){var o=wf(t,r++);if(o>=55296&&o<=56319&&r<n){var i=wf(t,r++);56320==(64512&i)?Sf(e,((1023&o)<<10)+(1023&i)+65536):(Sf(e,o),r--)}else Sf(e,o)}return e}(t)).length,i=128,a=0,c=72;for(e=0;e<t.length;e++)(r=t[e])<128&&Sf(n,bf(r));var u=n.length,s=u;for(u&&Sf(n,"-");s<o;){var f=2147483647;for(e=0;e<t.length;e++)(r=t[e])>=i&&r<f&&(f=r);var l=s+1;if(f-i>mf((2147483647-a)/l))throw yf(vf);for(a+=(f-i)*l,i=f,e=0;e<t.length;e++){if((r=t[e])<i&&++a>2147483647)throw yf(vf);if(r==i){for(var h=a,p=36;;){var d=p<=c?1:p>=c+26?26:p-c;if(h<d)break;var v=h-d,y=36-d;Sf(n,bf(Ef(d+v%y))),h=mf(v/y),p+=36}Sf(n,bf(Ef(h))),c=Rf(a,l,s==u),a=0,s++}}a++,i++}return Of(n,"")},If=Si.codeAt,Lf=te.set,Cf=te.getterFor("URL"),Tf=Ta.URLSearchParams,Uf=Ta.getState,Af=a.URL,_f=a.TypeError,qf=a.parseInt,Ff=Math.floor,Df=Math.pow,Bf=w("".charAt),Mf=w(/./.exec),Nf=w([].join),zf=w(1..toString),Hf=w([].pop),Gf=w([].push),$f=w("".replace),Wf=w([].shift),Vf=w("".split),Jf=w("".slice),Yf=w("".toLowerCase),Kf=w([].unshift),Qf=/[a-z]/i,Xf=/[\d+-.a-z]/i,Zf=/\d/,tl=/^0x/i,el=/^[0-7]+$/,rl=/^\d+$/,nl=/^[\da-f]+$/i,ol=/[\0\t\n\r #%/:<>?@[\\\]^|]/,il=/[\0\t\n\r #/:<>?@[\\\]^|]/,al=/^[\u0000-\u0020]+|[\u0000-\u0020]+$/g,cl=/[\t\n\r]/g,ul=function(t){var e,r,n,o;if("number"==typeof t){for(e=[],r=0;r<4;r++)Kf(e,t%256),t=Ff(t/256);return Nf(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+=zf(t[r],16),r<7&&(e+=":")));return"["+e+"]"}return t},sl={},fl=sf({},sl,{" ":1,'"':1,"<":1,">":1,"`":1}),ll=sf({},fl,{"#":1,"?":1,"{":1,"}":1}),hl=sf({},ll,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),pl=function(t,e){var r=If(t,0);return r>32&&r<127&&!ot(e,t)?t:encodeURIComponent(t)},dl={ftp:21,file:null,http:80,https:443,ws:80,wss:443},vl=function(t,e){var r;return 2==t.length&&Mf(Qf,Bf(t,0))&&(":"==(r=Bf(t,1))||!e&&"|"==r)},yl=function(t){var e;return t.length>1&&vl(Jf(t,0,2))&&(2==t.length||"/"===(e=Bf(t,2))||"\\"===e||"?"===e||"#"===e)},gl=function(t){return"."===t||"%2e"===Yf(t)},ml={},bl={},wl={},Ol={},Sl={},xl={},Pl={},jl={},El={},Rl={},kl={},Il={},Ll={},Cl={},Tl={},Ul={},Al={},_l={},ql={},Fl={},Dl={},Bl=function(t,e,r){var n,o,i,a=He(t);if(e){if(o=this.parse(a))throw _f(o);this.searchParams=null}else{if(void 0!==r&&(n=new Bl(r,!0)),o=this.parse(a,null,n))throw _f(o);(i=Uf(new Tf)).bindURL(this),this.searchParams=i}};Bl.prototype={type:"URL",parse:function(t,e,r){var n,o,i,a,c,u=this,s=e||ml,f=0,l="",h=!1,p=!1,d=!1;for(t=He(t),e||(u.scheme="",u.username="",u.password="",u.host=null,u.port=null,u.path=[],u.query=null,u.fragment=null,u.cannotBeABaseURL=!1,t=$f(t,al,"")),t=$f(t,cl,""),n=hf(t);f<=n.length;){switch(o=n[f],s){case ml:if(!o||!Mf(Qf,o)){if(e)return"Invalid scheme";s=wl;continue}l+=Yf(o),s=bl;break;case bl:if(o&&(Mf(Xf,o)||"+"==o||"-"==o||"."==o))l+=Yf(o);else{if(":"!=o){if(e)return"Invalid scheme";l="",s=wl,f=0;continue}if(e&&(u.isSpecial()!=ot(dl,l)||"file"==l&&(u.includesCredentials()||null!==u.port)||"file"==u.scheme&&!u.host))return;if(u.scheme=l,e)return void(u.isSpecial()&&dl[u.scheme]==u.port&&(u.port=null));l="","file"==u.scheme?s=Cl:u.isSpecial()&&r&&r.scheme==u.scheme?s=Ol:u.isSpecial()?s=jl:"/"==n[f+1]?(s=Sl,f++):(u.cannotBeABaseURL=!0,Gf(u.path,""),s=ql)}break;case wl:if(!r||r.cannotBeABaseURL&&"#"!=o)return"Invalid scheme";if(r.cannotBeABaseURL&&"#"==o){u.scheme=r.scheme,u.path=er(r.path),u.query=r.query,u.fragment="",u.cannotBeABaseURL=!0,s=Dl;break}s="file"==r.scheme?Cl:xl;continue;case Ol:if("/"!=o||"/"!=n[f+1]){s=xl;continue}s=El,f++;break;case Sl:if("/"==o){s=Rl;break}s=_l;continue;case xl:if(u.scheme=r.scheme,o==rf)u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=er(r.path),u.query=r.query;else if("/"==o||"\\"==o&&u.isSpecial())s=Pl;else if("?"==o)u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=er(r.path),u.query="",s=Fl;else{if("#"!=o){u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=er(r.path),u.path.length--,s=_l;continue}u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=er(r.path),u.query=r.query,u.fragment="",s=Dl}break;case Pl:if(!u.isSpecial()||"/"!=o&&"\\"!=o){if("/"!=o){u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,s=_l;continue}s=Rl}else s=El;break;case jl:if(s=El,"/"!=o||"/"!=Bf(l,f+1))continue;f++;break;case El:if("/"!=o&&"\\"!=o){s=Rl;continue}break;case Rl:if("@"==o){h&&(l="%40"+l),h=!0,i=hf(l);for(var v=0;v<i.length;v++){var y=i[v];if(":"!=y||d){var g=pl(y,hl);d?u.password+=g:u.username+=g}else d=!0}l=""}else if(o==rf||"/"==o||"?"==o||"#"==o||"\\"==o&&u.isSpecial()){if(h&&""==l)return"Invalid authority";f-=hf(l).length+1,l="",s=kl}else l+=o;break;case kl:case Il:if(e&&"file"==u.scheme){s=Ul;continue}if(":"!=o||p){if(o==rf||"/"==o||"?"==o||"#"==o||"\\"==o&&u.isSpecial()){if(u.isSpecial()&&""==l)return"Invalid host";if(e&&""==l&&(u.includesCredentials()||null!==u.port))return;if(a=u.parseHost(l))return a;if(l="",s=Al,e)return;continue}"["==o?p=!0:"]"==o&&(p=!1),l+=o}else{if(""==l)return"Invalid host";if(a=u.parseHost(l))return a;if(l="",s=Ll,e==Il)return}break;case Ll:if(!Mf(Zf,o)){if(o==rf||"/"==o||"?"==o||"#"==o||"\\"==o&&u.isSpecial()||e){if(""!=l){var m=qf(l,10);if(m>65535)return"Invalid port";u.port=u.isSpecial()&&m===dl[u.scheme]?null:m,l=""}if(e)return;s=Al;continue}return"Invalid port"}l+=o;break;case Cl:if(u.scheme="file","/"==o||"\\"==o)s=Tl;else{if(!r||"file"!=r.scheme){s=_l;continue}if(o==rf)u.host=r.host,u.path=er(r.path),u.query=r.query;else if("?"==o)u.host=r.host,u.path=er(r.path),u.query="",s=Fl;else{if("#"!=o){yl(Nf(er(n,f),""))||(u.host=r.host,u.path=er(r.path),u.shortenPath()),s=_l;continue}u.host=r.host,u.path=er(r.path),u.query=r.query,u.fragment="",s=Dl}}break;case Tl:if("/"==o||"\\"==o){s=Ul;break}r&&"file"==r.scheme&&!yl(Nf(er(n,f),""))&&(vl(r.path[0],!0)?Gf(u.path,r.path[0]):u.host=r.host),s=_l;continue;case Ul:if(o==rf||"/"==o||"\\"==o||"?"==o||"#"==o){if(!e&&vl(l))s=_l;else if(""==l){if(u.host="",e)return;s=Al}else{if(a=u.parseHost(l))return a;if("localhost"==u.host&&(u.host=""),e)return;l="",s=Al}continue}l+=o;break;case Al:if(u.isSpecial()){if(s=_l,"/"!=o&&"\\"!=o)continue}else if(e||"?"!=o)if(e||"#"!=o){if(o!=rf&&(s=_l,"/"!=o))continue}else u.fragment="",s=Dl;else u.query="",s=Fl;break;case _l:if(o==rf||"/"==o||"\\"==o&&u.isSpecial()||!e&&("?"==o||"#"==o)){if(".."===(c=Yf(c=l))||"%2e."===c||".%2e"===c||"%2e%2e"===c?(u.shortenPath(),"/"==o||"\\"==o&&u.isSpecial()||Gf(u.path,"")):gl(l)?"/"==o||"\\"==o&&u.isSpecial()||Gf(u.path,""):("file"==u.scheme&&!u.path.length&&vl(l)&&(u.host&&(u.host=""),l=Bf(l,0)+":"),Gf(u.path,l)),l="","file"==u.scheme&&(o==rf||"?"==o||"#"==o))for(;u.path.length>1&&""===u.path[0];)Wf(u.path);"?"==o?(u.query="",s=Fl):"#"==o&&(u.fragment="",s=Dl)}else l+=pl(o,ll);break;case ql:"?"==o?(u.query="",s=Fl):"#"==o?(u.fragment="",s=Dl):o!=rf&&(u.path[0]+=pl(o,sl));break;case Fl:e||"#"!=o?o!=rf&&("'"==o&&u.isSpecial()?u.query+="%27":u.query+="#"==o?"%23":pl(o,sl)):(u.fragment="",s=Dl);break;case Dl:o!=rf&&(u.fragment+=pl(o,fl))}f++}},parseHost:function(t){var e,r,n;if("["==Bf(t,0)){if("]"!=Bf(t,t.length-1))return"Invalid host";if(!(e=function(t){var e,r,n,o,i,a,c,u=[0,0,0,0,0,0,0,0],s=0,f=null,l=0,h=function(){return Bf(t,l)};if(":"==h()){if(":"!=Bf(t,1))return;l+=2,f=++s}for(;h();){if(8==s)return;if(":"!=h()){for(e=r=0;r<4&&Mf(nl,h());)e=16*e+qf(h(),16),l++,r++;if("."==h()){if(0==r)return;if(l-=r,s>6)return;for(n=0;h();){if(o=null,n>0){if(!("."==h()&&n<4))return;l++}if(!Mf(Zf,h()))return;for(;Mf(Zf,h());){if(i=qf(h(),10),null===o)o=i;else{if(0==o)return;o=10*o+i}if(o>255)return;l++}u[s]=256*u[s]+o,2!=++n&&4!=n||s++}if(4!=n)return;break}if(":"==h()){if(l++,!h())return}else if(h())return;u[s++]=e}else{if(null!==f)return;l++,f=++s}}if(null!==f)for(a=s-f,s=7;0!=s&&a>0;)c=u[s],u[s--]=u[f+a-1],u[f+--a]=c;else if(8!=s)return;return u}(Jf(t,1,-1))))return"Invalid host";this.host=e}else if(this.isSpecial()){if(t=function(t){var e,r,n=[],o=Pf(xf(jf(t),df,"."),".");for(e=0;e<o.length;e++)r=o[e],Sf(n,gf(pf,r)?"xn--"+kf(r):r);return Of(n,".")}(t),Mf(ol,t))return"Invalid host";if(null===(e=function(t){var e,r,n,o,i,a,c,u=Vf(t,".");if(u.length&&""==u[u.length-1]&&u.length--,(e=u.length)>4)return t;for(r=[],n=0;n<e;n++){if(""==(o=u[n]))return t;if(i=10,o.length>1&&"0"==Bf(o,0)&&(i=Mf(tl,o)?16:8,o=Jf(o,8==i?1:2)),""===o)a=0;else{if(!Mf(10==i?rl:8==i?el:nl,o))return t;a=qf(o,i)}Gf(r,a)}for(n=0;n<e;n++)if(a=r[n],n==e-1){if(a>=Df(256,5-e))return null}else if(a>255)return null;for(c=Hf(r),n=0;n<r.length;n++)c+=r[n]*Df(256,3-n);return c}(t)))return"Invalid host";this.host=e}else{if(Mf(il,t))return"Invalid host";for(e="",r=hf(t),n=0;n<r.length;n++)e+=pl(r[n],sl);this.host=e}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"==this.scheme},includesCredentials:function(){return""!=this.username||""!=this.password},isSpecial:function(){return ot(dl,this.scheme)},shortenPath:function(){var t=this.path,e=t.length;!e||"file"==this.scheme&&1==e&&vl(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,c=t.query,u=t.fragment,s=e+":";return null!==o?(s+="//",t.includesCredentials()&&(s+=r+(n?":"+n:"")+"@"),s+=ul(o),null!==i&&(s+=":"+i)):"file"==e&&(s+="//"),s+=t.cannotBeABaseURL?a[0]:a.length?"/"+Nf(a,"/"):"",null!==c&&(s+="?"+c),null!==u&&(s+="#"+u),s},setHref:function(t){var e=this.parse(t);if(e)throw _f(e);this.searchParams.update()},getOrigin:function(){var t=this.scheme,e=this.port;if("blob"==t)try{return new Ml(t.path[0]).origin}catch(t){return"null"}return"file"!=t&&this.isSpecial()?t+"://"+ul(this.host)+(null!==e?":"+e:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(t){this.parse(He(t)+":",ml)},getUsername:function(){return this.username},setUsername:function(t){var e=hf(He(t));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var r=0;r<e.length;r++)this.username+=pl(e[r],hl)}},getPassword:function(){return this.password},setPassword:function(t){var e=hf(He(t));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var r=0;r<e.length;r++)this.password+=pl(e[r],hl)}},getHost:function(){var t=this.host,e=this.port;return null===t?"":null===e?ul(t):ul(t)+":"+e},setHost:function(t){this.cannotBeABaseURL||this.parse(t,kl)},getHostname:function(){var t=this.host;return null===t?"":ul(t)},setHostname:function(t){this.cannotBeABaseURL||this.parse(t,Il)},getPort:function(){var t=this.port;return null===t?"":He(t)},setPort:function(t){this.cannotHaveUsernamePasswordPort()||(""==(t=He(t))?this.port=null:this.parse(t,Ll))},getPathname:function(){var t=this.path;return this.cannotBeABaseURL?t[0]:t.length?"/"+Nf(t,"/"):""},setPathname:function(t){this.cannotBeABaseURL||(this.path=[],this.parse(t,Al))},getSearch:function(){var t=this.query;return t?"?"+t:""},setSearch:function(t){""==(t=He(t))?this.query=null:("?"==Bf(t,0)&&(t=Jf(t,1)),this.query="",this.parse(t,Fl)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var t=this.fragment;return t?"#"+t:""},setHash:function(t){""!=(t=He(t))?("#"==Bf(t,0)&&(t=Jf(t,1)),this.fragment="",this.parse(t,Dl)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var Ml=function(t){var e=Ai(this,Nl),r=Mi(arguments.length,1)>1?arguments[1]:void 0,n=Lf(e,new Bl(t,!1,r));u||(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())},Nl=Ml.prototype,zl=function(t,e){return{get:function(){return Cf(this)[t]()},set:e&&function(t){return Cf(this)[e](t)},configurable:!0,enumerable:!0}};if(u&&(of(Nl,"href",zl("serialize","setHref")),of(Nl,"origin",zl("getOrigin")),of(Nl,"protocol",zl("getProtocol","setProtocol")),of(Nl,"username",zl("getUsername","setUsername")),of(Nl,"password",zl("getPassword","setPassword")),of(Nl,"host",zl("getHost","setHost")),of(Nl,"hostname",zl("getHostname","setHostname")),of(Nl,"port",zl("getPort","setPort")),of(Nl,"pathname",zl("getPathname","setPathname")),of(Nl,"search",zl("getSearch","setSearch")),of(Nl,"searchParams",zl("getSearchParams")),of(Nl,"hash",zl("getHash","setHash"))),re(Nl,"toJSON",(function(){return Cf(this).serialize()}),{enumerable:!0}),re(Nl,"toString",(function(){return Cf(this).serialize()}),{enumerable:!0}),Af){var Hl=Af.createObjectURL,Gl=Af.revokeObjectURL;Hl&&re(Ml,"createObjectURL",hr(Hl,Af)),Gl&&re(Ml,"revokeObjectURL",hr(Gl,Af))}function $l(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=Js(t);if(e){var o=Js(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Vs(this,r)}}fr(Ml,"URL"),Te({global:!0,constructor:!0,forced:!Ti,sham:!u},{URL:Ml}),is("match",(function(t,e,r){return[function(e){var r=k(this),n=null==e?void 0:Y(e,t);return n?l(n,e,r):new RegExp(e)[t](He(r))},function(t){var n=Rt(this),o=He(t),i=r(e,n,o);if(i.done)return i.value;if(!n.global)return ys(n,o);var a=n.unicode;n.lastIndex=0;for(var c,u=[],s=0;null!==(c=ys(n,o));){var f=He(c[0]);u[s]=f,""===f&&(n.lastIndex=cs(o,le(n.lastIndex),a)),s++}return 0===s?null:u}]}));var Wl=function(t){Ws(r,Qs(URL));var e=$l(r);function r(t,n,o){var i;co(this,r);var a={};return Object.keys((null==o?void 0:o.pathParams)||{}).forEach((function(t){var e,r=null==o||null===(e=o.pathParams)||void 0===e?void 0:e[t];r&&(a[t]=encodeURIComponent(r))})),(i=e.call(this,r.renderTemplateUri("".concat(n,"/").concat(t).replace(/\/\/+/g,"/"),a))).addQueryParams(null==o?void 0:o.queryParams),null!=o&&o.origin&&i.replaceOrigin(null==o?void 0:o.origin),i}return so(r,[{key:"replaceOrigin",value:function(t){var e=new URL(t);this.protocol=e.protocol,this.host=e.host,this.pathname="".concat(e.pathname,"/").concat(this.pathname).replace(/\/\/+/g,"/")}},{key:"addQueryParams",value:function(t){var e=this;t&&Object.keys(t).forEach((function(r){var n=t[r];if(Array.isArray(n))if("refine"===r)for(var o=0;o<n.length;o+=1)e.searchParams.append(r,String(n[o]));else e.searchParams.append(r,n.join());else e.searchParams.append(r,String(n))}))}}],[{key:"renderTemplateUri",value:function(t,e){var r=e?t.replace(/\{([^\}]+)\}/g,(function(t,r){return String(e[r])})):t,n=/(\.|%2e|%2E|%252e|%252E)+(\/|%2f|%2F|%252f|%252F)+/g;return r.match(n)&&(console.warn("Path traversal attempt detected. Normalizing url"),r=r.replace(n,"")),r}}]),r}(),Vl="commerce-sdk-isomorphic@4.1.0";function Jl(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Yl(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Jl(Object(r),!0).forEach((function(e){fo(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Jl(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var Kl=function(){function t(e){co(this,t),fo(this,"clientConfig",void 0);var r=Yl({},e);r.baseUri||(r.baseUri=(this instanceof t?this.constructor:void 0).defaultBaseUri),this.clientConfig=new _a(r)}var e,r;return so(t,[{key:"getStores",value:(r=ao(Fo.mark((function t(e,r){var n,o,i,a,c,u,s;return Fo.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=(null==e?void 0:e.parameters)||{},o=this.clientConfig.parameters,i={shortCode:o.shortCode},void 0===n.organizationId){t.next=7;break}i.organizationId=n.organizationId,t.next=12;break;case 7:if(void 0===o.organizationId){t.next=11;break}i.organizationId=o.organizationId,t.next=12;break;case 11:throw new Error("Missing required path parameter: organizationId");case 12:if(a={},void 0===n.ids){t.next=17;break}a.ids=n.ids,t.next=22;break;case 17:if(void 0===o.ids){t.next=21;break}a.ids=o.ids,t.next=22;break;case 21:throw new Error("Missing required query parameter: ids");case 22:if(void 0===n.siteId){t.next=26;break}a.siteId=n.siteId,t.next=31;break;case 26:if(void 0===o.siteId){t.next=30;break}a.siteId=o.siteId,t.next=31;break;case 30:throw new Error("Missing required query parameter: siteId");case 31:return void 0!==n.locale?a.locale=n.locale:void 0!==o.locale&&(a.locale=o.locale),Object.keys(n).forEach((function(t){var e=n[t];void 0===e||!t.startsWith("c_")&&(t in a||t in i)||(t.startsWith("c_")||console.warn("Found unknown parameter for getStores: ".concat(t,", adding as query parameter anyway")),a[t]=e)})),c=new Wl("/organizations/{organizationId}/stores",this.clientConfig.baseUri,{pathParams:i,queryParams:a,origin:this.clientConfig.proxy}),u=Yl(Yl({},this.clientConfig.headers),null==e?void 0:e.headers),Tu||(u["user-agent"]=[u["user-agent"],Vl].join(" ")),t.next=38,nf(c.toString(),{method:"GET",headers:u},this.clientConfig,r);case 38:return s=t.sent,t.abrupt("return",s);case 40:case"end":return t.stop()}}),t,this)}))),function(t,e){return r.apply(this,arguments)})},{key:"searchStores",value:(e=ao(Fo.mark((function t(e,r){var n,o,i,a,c,u,s;return Fo.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=(null==e?void 0:e.parameters)||{},o=this.clientConfig.parameters,i={shortCode:o.shortCode},void 0===n.organizationId){t.next=7;break}i.organizationId=n.organizationId,t.next=12;break;case 7:if(void 0===o.organizationId){t.next=11;break}i.organizationId=o.organizationId,t.next=12;break;case 11:throw new Error("Missing required path parameter: organizationId");case 12:if(a={},void 0!==n.countryCode?a.countryCode=n.countryCode:void 0!==o.countryCode&&(a.countryCode=o.countryCode),void 0!==n.distanceUnit?a.distanceUnit=n.distanceUnit:void 0!==o.distanceUnit&&(a.distanceUnit=o.distanceUnit),void 0!==n.latitude?a.latitude=n.latitude:void 0!==o.latitude&&(a.latitude=o.latitude),void 0!==n.longitude?a.longitude=n.longitude:void 0!==o.longitude&&(a.longitude=o.longitude),void 0!==n.maxDistance?a.maxDistance=n.maxDistance:void 0!==o.maxDistance&&(a.maxDistance=o.maxDistance),void 0!==n.postalCode?a.postalCode=n.postalCode:void 0!==o.postalCode&&(a.postalCode=o.postalCode),void 0===n.siteId){t.next=23;break}a.siteId=n.siteId,t.next=28;break;case 23:if(void 0===o.siteId){t.next=27;break}a.siteId=o.siteId,t.next=28;break;case 27:throw new Error("Missing required query parameter: siteId");case 28:return void 0!==n.locale?a.locale=n.locale:void 0!==o.locale&&(a.locale=o.locale),void 0!==n.limit?a.limit=n.limit:void 0!==o.limit&&(a.limit=o.limit),void 0!==n.offset?a.offset=n.offset:void 0!==o.offset&&(a.offset=o.offset),Object.keys(n).forEach((function(t){var e=n[t];void 0===e||!t.startsWith("c_")&&(t in a||t in i)||(t.startsWith("c_")||console.warn("Found unknown parameter for searchStores: ".concat(t,", adding as query parameter anyway")),a[t]=e)})),c=new Wl("/organizations/{organizationId}/store-search",this.clientConfig.baseUri,{pathParams:i,queryParams:a,origin:this.clientConfig.proxy}),u=Yl(Yl({},this.clientConfig.headers),null==e?void 0:e.headers),Tu||(u["user-agent"]=[u["user-agent"],Vl].join(" ")),t.next=37,nf(c.toString(),{method:"GET",headers:u},this.clientConfig,r);case 37:return s=t.sent,t.abrupt("return",s);case 39:case"end":return t.stop()}}),t,this)}))),function(t,r){return e.apply(this,arguments)})}]),t}();fo(Kl,"defaultBaseUri",t),fo(Kl,"apiPaths",{getStores:"/organizations/{organizationId}/stores",searchStores:"/organizations/{organizationId}/store-search"}),fo(Kl,"paramKeys",{getStores:["organizationId","ids","siteId","locale"],getStoresRequired:["organizationId","ids","siteId"],searchStores:["organizationId","siteId","countryCode","distanceUnit","latitude","longitude","maxDistance","postalCode","locale","limit","offset"],searchStoresRequired:["organizationId","siteId"]});export{Kl as ShopperStores,t as defaultBaseUri};
|
package/lib/templateUrl.cjs.d.ts
DELETED
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
type LocaleCode = {
|
|
2
|
-
[key: string]: any;
|
|
3
|
-
};
|
|
4
|
-
/**
|
|
5
|
-
* Generic interface for path parameters.
|
|
6
|
-
*/
|
|
7
|
-
interface PathParameters {
|
|
8
|
-
[key: string]: string | number | boolean;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* Generic interface for query parameters.
|
|
12
|
-
*/
|
|
13
|
-
interface QueryParameters {
|
|
14
|
-
[key: string]: string | number | boolean | string[] | number[] | LocaleCode;
|
|
15
|
-
}
|
|
16
|
-
declare class TemplateURL extends URL {
|
|
17
|
-
/**
|
|
18
|
-
* @param url -
|
|
19
|
-
* @param base -
|
|
20
|
-
*/
|
|
21
|
-
/**
|
|
22
|
-
* @param url -
|
|
23
|
-
* @param base -
|
|
24
|
-
*/
|
|
25
|
-
constructor(url: string, base: string, parameters?: {
|
|
26
|
-
pathParams?: PathParameters;
|
|
27
|
-
queryParams?: QueryParameters;
|
|
28
|
-
origin?: string;
|
|
29
|
-
});
|
|
30
|
-
/**
|
|
31
|
-
* Replace the origin (protocol/host) portion of the URL with a new origin.
|
|
32
|
-
* The path portion is retained and concatenated with any path included in the
|
|
33
|
-
* new origin. Thee primary use of this function is to use a proxy.
|
|
34
|
-
*
|
|
35
|
-
* @param newOriginString - The new origin to substitute (ex: https://example.com)
|
|
36
|
-
*/
|
|
37
|
-
/**
|
|
38
|
-
* Replace the origin (protocol/host) portion of the URL with a new origin.
|
|
39
|
-
* The path portion is retained and concatenated with any path included in the
|
|
40
|
-
* new origin. Thee primary use of this function is to use a proxy.
|
|
41
|
-
*
|
|
42
|
-
* @param newOriginString - The new origin to substitute (ex: https://example.com)
|
|
43
|
-
*/
|
|
44
|
-
replaceOrigin(newOriginString: string): void;
|
|
45
|
-
/**
|
|
46
|
-
* Add append an object literal of query parameters to the URL object. SCAPI expects
|
|
47
|
-
* Arrays to be comma separated where \{ a: ["1", "2"] \} becomes ?a=1,2.
|
|
48
|
-
* The 'refine' query parameter is an exception, where SCAPI expects the the "repeat"
|
|
49
|
-
* convention where \{ refine: ["1", "2"] \} becomes "?refine=1&refine=2"
|
|
50
|
-
*/
|
|
51
|
-
/**
|
|
52
|
-
* Add append an object literal of query parameters to the URL object. SCAPI expects
|
|
53
|
-
* Arrays to be comma separated where \{ a: ["1", "2"] \} becomes ?a=1,2.
|
|
54
|
-
* The 'refine' query parameter is an exception, where SCAPI expects the the "repeat"
|
|
55
|
-
* convention where \{ refine: ["1", "2"] \} becomes "?refine=1&refine=2"
|
|
56
|
-
*/
|
|
57
|
-
addQueryParams(queryParams?: QueryParameters): void;
|
|
58
|
-
/**
|
|
59
|
-
* Replace bracketed URL template parameters with values from parameters object
|
|
60
|
-
*
|
|
61
|
-
* @param template - The URL template string to make substitutions in
|
|
62
|
-
* @param parameters - The object literal that provides the values to substitute
|
|
63
|
-
*
|
|
64
|
-
* @returns String URL with substitutions made
|
|
65
|
-
*/
|
|
66
|
-
/**
|
|
67
|
-
* Replace bracketed URL template parameters with values from parameters object
|
|
68
|
-
*
|
|
69
|
-
* @param template - The URL template string to make substitutions in
|
|
70
|
-
* @param parameters - The object literal that provides the values to substitute
|
|
71
|
-
*
|
|
72
|
-
* @returns String URL with substitutions made
|
|
73
|
-
*/
|
|
74
|
-
static renderTemplateUri(template: string, parameters?: PathParameters): string;
|
|
75
|
-
}
|
|
76
|
-
export { TemplateURL as default };
|
package/lib/templateUrl.cjs.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function e(t,e,r){return t(r={path:e,exports:{},require:function(t,e){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==e&&r.path)}},r.exports),r.exports}var r,n,o=function(t){return t&&t.Math==Math&&t},i=o("object"==typeof globalThis&&globalThis)||o("object"==typeof window&&window)||o("object"==typeof self&&self)||o("object"==typeof t&&t)||function(){return this}()||Function("return this")(),a=function(t){try{return!!t()}catch(t){return!0}},u=!a((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),c=!a((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),s=Function.prototype.call,f=c?s.bind(s):function(){return s.apply(s,arguments)},l={}.propertyIsEnumerable,h=Object.getOwnPropertyDescriptor,p={f:h&&!l.call({1:2},1)?function(t){var e=h(this,t);return!!e&&e.enumerable}:l},v=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},g=Function.prototype,y=g.bind,d=g.call,m=c&&y.bind(d,d),b=c?function(t){return t&&m(t)}:function(t){return t&&function(){return d.apply(t,arguments)}},w=b({}.toString),S=b("".slice),O=function(t){return S(w(t),8,-1)},P=Object,R=b("".split),x=a((function(){return!P("z").propertyIsEnumerable(0)}))?function(t){return"String"==O(t)?R(t,""):P(t)}:P,j=TypeError,L=function(t){if(null==t)throw j("Can't call method on "+t);return t},E=function(t){return x(L(t))},k=function(t){return"function"==typeof t},I=function(t){return"object"==typeof t?null!==t:k(t)},U=function(t){return k(t)?t:void 0},A=function(t,e){return arguments.length<2?U(i[t]):i[t]&&i[t][e]},T=b({}.isPrototypeOf),C=A("navigator","userAgent")||"",_=i.process,B=i.Deno,F=_&&_.versions||B&&B.version,M=F&&F.v8;M&&(n=(r=M.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!n&&C&&(!(r=C.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=C.match(/Chrome\/(\d+)/))&&(n=+r[1]);var q=n,H=!!Object.getOwnPropertySymbols&&!a((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&q&&q<41})),z=H&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,$=Object,D=z?function(t){return"symbol"==typeof t}:function(t){var e=A("Symbol");return k(e)&&T(e.prototype,$(t))},G=String,N=function(t){try{return G(t)}catch(t){return"Object"}},V=TypeError,Q=function(t){if(k(t))return t;throw V(N(t)+" is not a function")},W=function(t,e){var r=t[e];return null==r?void 0:Q(r)},Y=TypeError,K=Object.defineProperty,X=function(t,e){try{K(i,t,{value:e,configurable:!0,writable:!0})}catch(r){i[t]=e}return e},J=i["__core-js_shared__"]||X("__core-js_shared__",{}),Z=e((function(t){(t.exports=function(t,e){return J[t]||(J[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.23.4",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.23.4/LICENSE",source:"https://github.com/zloirock/core-js"})})),tt=Object,et=function(t){return tt(L(t))},rt=b({}.hasOwnProperty),nt=Object.hasOwn||function(t,e){return rt(et(t),e)},ot=0,it=Math.random(),at=b(1..toString),ut=function(t){return"Symbol("+(void 0===t?"":t)+")_"+at(++ot+it,36)},ct=Z("wks"),st=i.Symbol,ft=st&&st.for,lt=z?st:st&&st.withoutSetter||ut,ht=function(t){if(!nt(ct,t)||!H&&"string"!=typeof ct[t]){var e="Symbol."+t;H&&nt(st,t)?ct[t]=st[t]:ct[t]=z&&ft?ft(e):lt(e)}return ct[t]},pt=TypeError,vt=ht("toPrimitive"),gt=function(t,e){if(!I(t)||D(t))return t;var r,n=W(t,vt);if(n){if(void 0===e&&(e="default"),r=f(n,t,e),!I(r)||D(r))return r;throw pt("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var r,n;if("string"===e&&k(r=t.toString)&&!I(n=f(r,t)))return n;if(k(r=t.valueOf)&&!I(n=f(r,t)))return n;if("string"!==e&&k(r=t.toString)&&!I(n=f(r,t)))return n;throw Y("Can't convert object to primitive value")}(t,e)},yt=function(t){var e=gt(t,"string");return D(e)?e:e+""},dt=i.document,mt=I(dt)&&I(dt.createElement),bt=function(t){return mt?dt.createElement(t):{}},wt=!u&&!a((function(){return 7!=Object.defineProperty(bt("div"),"a",{get:function(){return 7}}).a})),St=Object.getOwnPropertyDescriptor,Ot={f:u?St:function(t,e){if(t=E(t),e=yt(e),wt)try{return St(t,e)}catch(t){}if(nt(t,e))return v(!f(p.f,t,e),t[e])}},Pt=u&&a((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Rt=String,xt=TypeError,jt=function(t){if(I(t))return t;throw xt(Rt(t)+" is not an object")},Lt=TypeError,Et=Object.defineProperty,kt=Object.getOwnPropertyDescriptor,It={f:u?Pt?function(t,e,r){if(jt(t),e=yt(e),jt(r),"function"==typeof t&&"prototype"===e&&"value"in r&&"writable"in r&&!r.writable){var n=kt(t,e);n&&n.writable&&(t[e]=r.value,r={configurable:"configurable"in r?r.configurable:n.configurable,enumerable:"enumerable"in r?r.enumerable:n.enumerable,writable:!1})}return Et(t,e,r)}:Et:function(t,e,r){if(jt(t),e=yt(e),jt(r),wt)try{return Et(t,e,r)}catch(t){}if("get"in r||"set"in r)throw Lt("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},Ut=u?function(t,e,r){return It.f(t,e,v(1,r))}:function(t,e,r){return t[e]=r,t},At=Function.prototype,Tt=u&&Object.getOwnPropertyDescriptor,Ct=nt(At,"name"),_t={EXISTS:Ct,PROPER:Ct&&"something"===function(){}.name,CONFIGURABLE:Ct&&(!u||u&&Tt(At,"name").configurable)},Bt=b(Function.toString);k(J.inspectSource)||(J.inspectSource=function(t){return Bt(t)});var Ft,Mt,qt,Ht=J.inspectSource,zt=i.WeakMap,$t=k(zt)&&/native code/.test(Ht(zt)),Dt=Z("keys"),Gt=function(t){return Dt[t]||(Dt[t]=ut(t))},Nt={},Vt=i.TypeError,Qt=i.WeakMap;if($t||J.state){var Wt=J.state||(J.state=new Qt),Yt=b(Wt.get),Kt=b(Wt.has),Xt=b(Wt.set);Ft=function(t,e){if(Kt(Wt,t))throw new Vt("Object already initialized");return e.facade=t,Xt(Wt,t,e),e},Mt=function(t){return Yt(Wt,t)||{}},qt=function(t){return Kt(Wt,t)}}else{var Jt=Gt("state");Nt[Jt]=!0,Ft=function(t,e){if(nt(t,Jt))throw new Vt("Object already initialized");return e.facade=t,Ut(t,Jt,e),e},Mt=function(t){return nt(t,Jt)?t[Jt]:{}},qt=function(t){return nt(t,Jt)}}var Zt={set:Ft,get:Mt,has:qt,enforce:function(t){return qt(t)?Mt(t):Ft(t,{})},getterFor:function(t){return function(e){var r;if(!I(e)||(r=Mt(e)).type!==t)throw Vt("Incompatible receiver, "+t+" required");return r}}},te=e((function(t){var e=_t.CONFIGURABLE,r=Zt.enforce,n=Zt.get,o=Object.defineProperty,i=u&&!a((function(){return 8!==o((function(){}),"length",{value:8}).length})),c=String(String).split("String"),s=t.exports=function(t,n,a){"Symbol("===String(n).slice(0,7)&&(n="["+String(n).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),a&&a.getter&&(n="get "+n),a&&a.setter&&(n="set "+n),(!nt(t,"name")||e&&t.name!==n)&&(u?o(t,"name",{value:n,configurable:!0}):t.name=n),i&&a&&nt(a,"arity")&&t.length!==a.arity&&o(t,"length",{value:a.arity});try{a&&nt(a,"constructor")&&a.constructor?u&&o(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var s=r(t);return nt(s,"source")||(s.source=c.join("string"==typeof n?n:"")),t};Function.prototype.toString=s((function(){return k(this)&&n(this).source||Ht(this)}),"toString")})),ee=function(t,e,r,n){n||(n={});var o=n.enumerable,i=void 0!==n.name?n.name:e;if(k(r)&&te(r,i,n),n.global)o?t[e]=r:X(e,r);else{try{n.unsafe?t[e]&&(o=!0):delete t[e]}catch(t){}o?t[e]=r:It.f(t,e,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return t},re=Math.ceil,ne=Math.floor,oe=Math.trunc||function(t){var e=+t;return(e>0?ne:re)(e)},ie=function(t){var e=+t;return e!=e||0===e?0:oe(e)},ae=Math.max,ue=Math.min,ce=function(t,e){var r=ie(t);return r<0?ae(r+e,0):ue(r,e)},se=Math.min,fe=function(t){return t>0?se(ie(t),9007199254740991):0},le=function(t){return fe(t.length)},he=function(t){return function(e,r,n){var o,i=E(e),a=le(i),u=ce(n,a);if(t&&r!=r){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===r)return t||u||0;return!t&&-1}},pe={includes:he(!0),indexOf:he(!1)}.indexOf,ve=b([].push),ge=function(t,e){var r,n=E(t),o=0,i=[];for(r in n)!nt(Nt,r)&&nt(n,r)&&ve(i,r);for(;e.length>o;)nt(n,r=e[o++])&&(~pe(i,r)||ve(i,r));return i},ye=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],de=ye.concat("length","prototype"),me={f:Object.getOwnPropertyNames||function(t){return ge(t,de)}},be={f:Object.getOwnPropertySymbols},we=b([].concat),Se=A("Reflect","ownKeys")||function(t){var e=me.f(jt(t)),r=be.f;return r?we(e,r(t)):e},Oe=function(t,e,r){for(var n=Se(e),o=It.f,i=Ot.f,a=0;a<n.length;a++){var u=n[a];nt(t,u)||r&&nt(r,u)||o(t,u,i(e,u))}},Pe=/#|\.prototype\./,Re=function(t,e){var r=je[xe(t)];return r==Ee||r!=Le&&(k(e)?a(e):!!e)},xe=Re.normalize=function(t){return String(t).replace(Pe,".").toLowerCase()},je=Re.data={},Le=Re.NATIVE="N",Ee=Re.POLYFILL="P",ke=Re,Ie=Ot.f,Ue=function(t,e){var r,n,o,a,u,c=t.target,s=t.global,f=t.stat;if(r=s?i:f?i[c]||X(c,{}):(i[c]||{}).prototype)for(n in e){if(a=e[n],o=t.dontCallGetSet?(u=Ie(r,n))&&u.value:r[n],!ke(s?n:c+(f?".":"#")+n,t.forced)&&void 0!==o){if(typeof a==typeof o)continue;Oe(a,o)}(t.sham||o&&o.sham)&&Ut(a,"sham",!0),ee(r,n,a,t)}},Ae=Function.prototype,Te=Ae.apply,Ce=Ae.call,_e="object"==typeof Reflect&&Reflect.apply||(c?Ce.bind(Te):function(){return Ce.apply(Te,arguments)}),Be=b([].slice),Fe=Function,Me=b([].concat),qe=b([].join),He={},ze=function(t,e,r){if(!nt(He,e)){for(var n=[],o=0;o<e;o++)n[o]="a["+o+"]";He[e]=Fe("C,a","return new C("+qe(n,",")+")")}return He[e](t,r)},$e=c?Fe.bind:function(t){var e=Q(this),r=e.prototype,n=Be(arguments,1),o=function(){var r=Me(n,Be(arguments));return this instanceof o?ze(e,r.length,r):e.apply(t,r)};return I(r)&&(o.prototype=r),o},De={};De[ht("toStringTag")]="z";var Ge="[object z]"===String(De),Ne=ht("toStringTag"),Ve=Object,Qe="Arguments"==O(function(){return arguments}()),We=Ge?O: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=Ve(t),Ne))?r:Qe?O(e):"Object"==(n=O(e))&&k(e.callee)?"Arguments":n},Ye=function(){},Ke=[],Xe=A("Reflect","construct"),Je=/^\s*(?:class|function)\b/,Ze=b(Je.exec),tr=!Je.exec(Ye),er=function(t){if(!k(t))return!1;try{return Xe(Ye,Ke,t),!0}catch(t){return!1}},rr=function(t){if(!k(t))return!1;switch(We(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return tr||!!Ze(Je,Ht(t))}catch(t){return!0}};rr.sham=!0;var nr,or=!Xe||a((function(){var t;return er(er.call)||!er(Object)||!er((function(){t=!0}))||t}))?rr:er,ir=TypeError,ar=function(t){if(or(t))return t;throw ir(N(t)+" is not a constructor")},ur=Object.keys||function(t){return ge(t,ye)},cr={f:u&&!Pt?Object.defineProperties:function(t,e){jt(t);for(var r,n=E(e),o=ur(e),i=o.length,a=0;i>a;)It.f(t,r=o[a++],n[r]);return t}},sr=A("document","documentElement"),fr=Gt("IE_PROTO"),lr=function(){},hr=function(t){return"<script>"+t+"<\/script>"},pr=function(t){t.write(hr("")),t.close();var e=t.parentWindow.Object;return t=null,e},vr=function(){try{nr=new ActiveXObject("htmlfile")}catch(t){}var t,e;vr="undefined"!=typeof document?document.domain&&nr?pr(nr):((e=bt("iframe")).style.display="none",sr.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(hr("document.F=Object")),t.close(),t.F):pr(nr);for(var r=ye.length;r--;)delete vr.prototype[ye[r]];return vr()};Nt[fr]=!0;var gr=Object.create||function(t,e){var r;return null!==t?(lr.prototype=jt(t),r=new lr,lr.prototype=null,r[fr]=t):r=vr(),void 0===e?r:cr.f(r,e)},yr=A("Reflect","construct"),dr=Object.prototype,mr=[].push,br=a((function(){function t(){}return!(yr((function(){}),[],t)instanceof t)})),wr=!a((function(){yr((function(){}))})),Sr=br||wr;Ue({target:"Reflect",stat:!0,forced:Sr,sham:Sr},{construct:function(t,e){ar(t),jt(e);var r=arguments.length<3?t:ar(arguments[2]);if(wr&&!br)return yr(t,e,r);if(t==r){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var n=[null];return _e(mr,n,e),new(_e($e,t,n))}var o=r.prototype,i=gr(I(o)?o:dr),a=_e(t,i,e);return I(a)?a:i}});var Or=Ge?{}.toString:function(){return"[object "+We(this)+"]"};Ge||ee(Object.prototype,"toString",Or,{unsafe:!0});var Pr,Rr,xr={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},jr=bt("span").classList,Lr=jr&&jr.constructor&&jr.constructor.prototype,Er=Lr===Object.prototype?void 0:Lr,kr=b(b.bind),Ir=function(t,e){return Q(t),void 0===e?t:c?kr(t,e):function(){return t.apply(e,arguments)}},Ur=Array.isArray||function(t){return"Array"==O(t)},Ar=ht("species"),Tr=Array,Cr=function(t,e){return new(function(t){var e;return Ur(t)&&(e=t.constructor,(or(e)&&(e===Tr||Ur(e.prototype))||I(e)&&null===(e=e[Ar]))&&(e=void 0)),void 0===e?Tr:e}(t))(0===e?0:e)},_r=b([].push),Br=function(t){var e=1==t,r=2==t,n=3==t,o=4==t,i=6==t,a=7==t,u=5==t||i;return function(c,s,f,l){for(var h,p,v=et(c),g=x(v),y=Ir(s,f),d=le(g),m=0,b=l||Cr,w=e?b(c,d):r||a?b(c,0):void 0;d>m;m++)if((u||m in g)&&(p=y(h=g[m],m,v),t))if(e)w[m]=p;else if(p)switch(t){case 3:return!0;case 5:return h;case 6:return m;case 2:_r(w,h)}else switch(t){case 4:return!1;case 7:_r(w,h)}return i?-1:n||o?o:w}},Fr={forEach:Br(0),map:Br(1),filter:Br(2),some:Br(3),every:Br(4),find:Br(5),findIndex:Br(6),filterReject:Br(7)}.forEach,Mr=!!(Rr=[]["forEach"])&&a((function(){Rr.call(null,Pr||function(){return 1},1)}))?[].forEach:function(t){return Fr(this,t,arguments.length>1?arguments[1]:void 0)},qr=function(t){if(t&&t.forEach!==Mr)try{Ut(t,"forEach",Mr)}catch(e){t.forEach=Mr}};for(var Hr in xr)xr[Hr]&&qr(i[Hr]&&i[Hr].prototype);qr(Er);var zr=a((function(){ur(1)}));Ue({target:"Object",stat:!0,forced:zr},{keys:function(t){return ur(et(t))}});var $r,Dr,Gr=String,Nr=function(t){if("Symbol"===We(t))throw TypeError("Cannot convert a Symbol value to a string");return Gr(t)},Vr=function(){var t=jt(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e},Qr=i.RegExp,Wr=a((function(){var t=Qr("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),Yr=Wr||a((function(){return!Qr("a","y").sticky})),Kr={BROKEN_CARET:Wr||a((function(){var t=Qr("^r","gy");return t.lastIndex=2,null!=t.exec("str")})),MISSED_STICKY:Yr,UNSUPPORTED_Y:Wr},Xr=i.RegExp,Jr=a((function(){var t=Xr(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)})),Zr=i.RegExp,tn=a((function(){var t=Zr("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),en=Zt.get,rn=Z("native-string-replace",String.prototype.replace),nn=RegExp.prototype.exec,on=nn,an=b("".charAt),un=b("".indexOf),cn=b("".replace),sn=b("".slice),fn=(Dr=/b*/g,f(nn,$r=/a/,"a"),f(nn,Dr,"a"),0!==$r.lastIndex||0!==Dr.lastIndex),ln=Kr.BROKEN_CARET,hn=void 0!==/()??/.exec("")[1];(fn||hn||ln||Jr||tn)&&(on=function(t){var e,r,n,o,i,a,u,c=this,s=en(c),l=Nr(t),h=s.raw;if(h)return h.lastIndex=c.lastIndex,e=f(on,h,l),c.lastIndex=h.lastIndex,e;var p=s.groups,v=ln&&c.sticky,g=f(Vr,c),y=c.source,d=0,m=l;if(v&&(g=cn(g,"y",""),-1===un(g,"g")&&(g+="g"),m=sn(l,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&"\n"!==an(l,c.lastIndex-1))&&(y="(?: "+y+")",m=" "+m,d++),r=new RegExp("^(?:"+y+")",g)),hn&&(r=new RegExp("^"+y+"$(?!\\s)",g)),fn&&(n=c.lastIndex),o=f(nn,v?r:c,m),v?o?(o.input=sn(o.input,d),o[0]=sn(o[0],d),o.index=c.lastIndex,c.lastIndex+=o[0].length):c.lastIndex=0:fn&&o&&(c.lastIndex=c.global?o.index+o[0].length:n),hn&&o&&o.length>1&&f(rn,o[0],r,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&p)for(o.groups=a=gr(null),i=0;i<p.length;i++)a[(u=p[i])[0]]=o[u[1]];return o});var pn=on;Ue({target:"RegExp",proto:!0,forced:/./.exec!==pn},{exec:pn});var vn=ht("species"),gn=RegExp.prototype,yn=function(t,e,r,n){var o=ht(t),i=!a((function(){var e={};return e[o]=function(){return 7},7!=""[t](e)})),u=i&&!a((function(){var e=!1,r=/a/;return"split"===t&&((r={}).constructor={},r.constructor[vn]=function(){return r},r.flags="",r[o]=/./[o]),r.exec=function(){return e=!0,null},r[o](""),!e}));if(!i||!u||r){var c=b(/./[o]),s=e(o,""[t],(function(t,e,r,n,o){var a=b(t),u=e.exec;return u===pn||u===gn.exec?i&&!o?{done:!0,value:c(e,r,n)}:{done:!0,value:a(r,e,n)}:{done:!1}}));ee(String.prototype,t,s[0]),ee(gn,o,s[1])}n&&Ut(gn[o],"sham",!0)},dn=b("".charAt),mn=b("".charCodeAt),bn=b("".slice),wn=function(t){return function(e,r){var n,o,i=Nr(L(e)),a=ie(r),u=i.length;return a<0||a>=u?t?"":void 0:(n=mn(i,a))<55296||n>56319||a+1===u||(o=mn(i,a+1))<56320||o>57343?t?dn(i,a):n:t?bn(i,a,a+2):o-56320+(n-55296<<10)+65536}},Sn={codeAt:wn(!1),charAt:wn(!0)},On=Sn.charAt,Pn=function(t,e,r){return e+(r?On(t,e).length:1)},Rn=Math.floor,xn=b("".charAt),jn=b("".replace),Ln=b("".slice),En=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,kn=/\$([$&'`]|\d{1,2})/g,In=function(t,e,r,n,o,i){var a=r+t.length,u=n.length,c=kn;return void 0!==o&&(o=et(o),c=En),jn(i,c,(function(i,c){var s;switch(xn(c,0)){case"$":return"$";case"&":return t;case"`":return Ln(e,0,r);case"'":return Ln(e,a);case"<":s=o[Ln(c,1,-1)];break;default:var f=+c;if(0===f)return i;if(f>u){var l=Rn(f/10);return 0===l?i:l<=u?void 0===n[l-1]?xn(c,1):n[l-1]+xn(c,1):i}s=n[f-1]}return void 0===s?"":s}))},Un=TypeError,An=function(t,e){var r=t.exec;if(k(r)){var n=f(r,t,e);return null!==n&&jt(n),n}if("RegExp"===O(t))return f(pn,t,e);throw Un("RegExp#exec called on incompatible receiver")},Tn=ht("replace"),Cn=Math.max,_n=Math.min,Bn=b([].concat),Fn=b([].push),Mn=b("".indexOf),qn=b("".slice),Hn="$0"==="a".replace(/./,"$0"),zn=!!/./[Tn]&&""===/./[Tn]("a","$0");yn("replace",(function(t,e,r){var n=zn?"$":"$0";return[function(t,r){var n=L(this),o=null==t?void 0:W(t,Tn);return o?f(o,t,n,r):f(e,Nr(n),t,r)},function(t,o){var i=jt(this),a=Nr(t);if("string"==typeof o&&-1===Mn(o,n)&&-1===Mn(o,"$<")){var u=r(e,i,a,o);if(u.done)return u.value}var c=k(o);c||(o=Nr(o));var s=i.global;if(s){var f=i.unicode;i.lastIndex=0}for(var l=[];;){var h=An(i,a);if(null===h)break;if(Fn(l,h),!s)break;""===Nr(h[0])&&(i.lastIndex=Pn(a,fe(i.lastIndex),f))}for(var p,v="",g=0,y=0;y<l.length;y++){for(var d=Nr((h=l[y])[0]),m=Cn(_n(ie(h.index),a.length),0),b=[],w=1;w<h.length;w++)Fn(b,void 0===(p=h[w])?p:String(p));var S=h.groups;if(c){var O=Bn([d],b,m,a);void 0!==S&&Fn(O,S);var P=Nr(_e(o,void 0,O))}else P=In(d,a,m,b,S,o);m>=g&&(v+=qn(a,g,m)+P,g=m+d.length)}return v+qn(a,g)}]}),!!a((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!Hn||zn);var $n=TypeError,Dn=function(t){if(t>9007199254740991)throw $n("Maximum allowed index exceeded");return t},Gn=function(t,e,r){var n=yt(e);n in t?It.f(t,n,v(0,r)):t[n]=r},Nn=ht("species"),Vn=ht("isConcatSpreadable"),Qn=q>=51||!a((function(){var t=[];return t[Vn]=!1,t.concat()[0]!==t})),Wn=function(t){return q>=51||!a((function(){var e=[];return(e.constructor={})[Nn]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}("concat"),Yn=function(t){if(!I(t))return!1;var e=t[Vn];return void 0!==e?!!e:Ur(t)};Ue({target:"Array",proto:!0,arity:1,forced:!Qn||!Wn},{concat:function(t){var e,r,n,o,i,a=et(this),u=Cr(a,0),c=0;for(e=-1,n=arguments.length;e<n;e++)if(Yn(i=-1===e?a:arguments[e]))for(o=le(i),Dn(c+o),r=0;r<o;r++,c++)r in i&&Gn(u,c,i[r]);else Dn(c+1),Gn(u,c++,i);return u.length=c,u}});var Kn=It.f,Xn=ht("unscopables"),Jn=Array.prototype;null==Jn[Xn]&&Kn(Jn,Xn,{configurable:!0,value:gr(null)});var Zn,to,eo,ro=function(t){Jn[Xn][t]=!0},no={},oo=!a((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),io=Gt("IE_PROTO"),ao=Object,uo=ao.prototype,co=oo?ao.getPrototypeOf:function(t){var e=et(t);if(nt(e,io))return e[io];var r=e.constructor;return k(r)&&e instanceof r?r.prototype:e instanceof ao?uo:null},so=ht("iterator"),fo=!1;[].keys&&("next"in(eo=[].keys())?(to=co(co(eo)))!==Object.prototype&&(Zn=to):fo=!0),(null==Zn||a((function(){var t={};return Zn[so].call(t)!==t})))&&(Zn={}),k(Zn[so])||ee(Zn,so,(function(){return this}));var lo={IteratorPrototype:Zn,BUGGY_SAFARI_ITERATORS:fo},ho=It.f,po=ht("toStringTag"),vo=function(t,e,r){t&&!r&&(t=t.prototype),t&&!nt(t,po)&&ho(t,po,{configurable:!0,value:e})},go=lo.IteratorPrototype,yo=function(){return this},mo=function(t,e,r,n){var o=e+" Iterator";return t.prototype=gr(go,{next:v(+!n,r)}),vo(t,o,!1),no[o]=yo,t},bo=String,wo=TypeError,So=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=b(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return jt(r),function(t){if("object"==typeof t||k(t))return t;throw wo("Can't set "+bo(t)+" as a prototype")}(n),e?t(r,n):r.__proto__=n,r}}():void 0),Oo=_t.PROPER,Po=_t.CONFIGURABLE,Ro=lo.IteratorPrototype,xo=lo.BUGGY_SAFARI_ITERATORS,jo=ht("iterator"),Lo=function(){return this},Eo=function(t,e,r,n,o,i,a){mo(r,e,n);var u,c,s,l=function(t){if(t===o&&y)return y;if(!xo&&t in v)return v[t];switch(t){case"keys":case"values":case"entries":return function(){return new r(this,t)}}return function(){return new r(this)}},h=e+" Iterator",p=!1,v=t.prototype,g=v[jo]||v["@@iterator"]||o&&v[o],y=!xo&&g||l(o),d="Array"==e&&v.entries||g;if(d&&(u=co(d.call(new t)))!==Object.prototype&&u.next&&(co(u)!==Ro&&(So?So(u,Ro):k(u[jo])||ee(u,jo,Lo)),vo(u,h,!0)),Oo&&"values"==o&&g&&"values"!==g.name&&(Po?Ut(v,"name","values"):(p=!0,y=function(){return f(g,this)})),o)if(c={values:l("values"),keys:i?y:l("keys"),entries:l("entries")},a)for(s in c)(xo||p||!(s in v))&&ee(v,s,c[s]);else Ue({target:e,proto:!0,forced:xo||p},c);return v[jo]!==y&&ee(v,jo,y,{name:o}),no[e]=y,c},ko=It.f,Io=Zt.set,Uo=Zt.getterFor("Array Iterator"),Ao=Eo(Array,"Array",(function(t,e){Io(this,{type:"Array Iterator",target:E(t),index:0,kind:e})}),(function(){var t=Uo(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:n,done:!1}:"values"==r?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}}),"values"),To=no.Arguments=no.Array;if(ro("keys"),ro("values"),ro("entries"),u&&"values"!==To.name)try{ko(To,"name",{value:"values"})}catch(t){}var Co=Sn.charAt,_o=Zt.set,Bo=Zt.getterFor("String Iterator");Eo(String,"String",(function(t){_o(this,{type:"String Iterator",string:Nr(t),index:0})}),(function(){var t,e=Bo(this),r=e.string,n=e.index;return n>=r.length?{value:void 0,done:!0}:(t=Co(r,n),e.index+=t.length,{value:t,done:!1})}));var Fo=ht("iterator"),Mo=ht("toStringTag"),qo=Ao.values,Ho=function(t,e){if(t){if(t[Fo]!==qo)try{Ut(t,Fo,qo)}catch(e){t[Fo]=qo}if(t[Mo]||Ut(t,Mo,e),xr[e])for(var r in Ao)if(t[r]!==Ao[r])try{Ut(t,r,Ao[r])}catch(e){t[r]=Ao[r]}}};for(var zo in xr)Ho(i[zo]&&i[zo].prototype,zo);Ho(Er,"DOMTokenList");var $o=ht("iterator"),Do=!a((function(){var t=new URL("b?a=1&b=2&c=3","http://a"),e=t.searchParams,r="";return t.pathname="c%20d",e.forEach((function(t,n){e.delete("b"),r+=n+t})),!e.sort||"http://a/c%20d?a=1&c=3"!==t.href||"3"!==e.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!e[$o]||"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"!==r||"x"!==new URL("http://x",void 0).host})),Go=function(t,e,r){return r.get&&te(r.get,e,{getter:!0}),r.set&&te(r.set,e,{setter:!0}),It.f(t,e,r)},No=TypeError,Vo=function(t,e){if(T(e,t))return t;throw No("Incorrect invocation")},Qo=Object.assign,Wo=Object.defineProperty,Yo=b([].concat),Ko=!Qo||a((function(){if(u&&1!==Qo({b:1},Qo(Wo({},"a",{enumerable:!0,get:function(){Wo(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},r=Symbol();return t[r]=7,"abcdefghijklmnopqrst".split("").forEach((function(t){e[t]=t})),7!=Qo({},t)[r]||"abcdefghijklmnopqrst"!=ur(Qo({},e)).join("")}))?function(t,e){for(var r=et(t),n=arguments.length,o=1,i=be.f,a=p.f;n>o;)for(var c,s=x(arguments[o++]),l=i?Yo(ur(s),i(s)):ur(s),h=l.length,v=0;h>v;)c=l[v++],u&&!f(a,s,c)||(r[c]=s[c]);return r}:Qo,Xo=function(t,e,r,n){try{return n?e(jt(r)[0],r[1]):e(r)}catch(e){!function(t,e,r){var n,o;jt(t);try{if(!(n=W(t,"return"))){if("throw"===e)throw r;return r}n=f(n,t)}catch(t){o=!0,n=t}if("throw"===e)throw r;if(o)throw n;jt(n)}(t,"throw",e)}},Jo=ht("iterator"),Zo=Array.prototype,ti=function(t){return void 0!==t&&(no.Array===t||Zo[Jo]===t)},ei=ht("iterator"),ri=function(t){if(null!=t)return W(t,ei)||W(t,"@@iterator")||no[We(t)]},ni=TypeError,oi=function(t,e){var r=arguments.length<2?ri(t):e;if(Q(r))return jt(f(r,t));throw ni(N(t)+" is not iterable")},ii=Array,ai=function(t){var e=et(t),r=or(this),n=arguments.length,o=n>1?arguments[1]:void 0,i=void 0!==o;i&&(o=Ir(o,n>2?arguments[2]:void 0));var a,u,c,s,l,h,p=ri(e),v=0;if(!p||this===ii&&ti(p))for(a=le(e),u=r?new this(a):ii(a);a>v;v++)h=i?o(e[v],v):e[v],Gn(u,v,h);else for(l=(s=oi(e,p)).next,u=r?new this:[];!(c=f(l,s)).done;v++)h=i?Xo(s,o,[c.value,v],!0):c.value,Gn(u,v,h);return u.length=v,u},ui=Array,ci=Math.max,si=function(t,e,r){for(var n=le(t),o=ce(e,n),i=ce(void 0===r?n:r,n),a=ui(ci(i-o,0)),u=0;o<i;o++,u++)Gn(a,u,t[o]);return a.length=u,a},fi=/[^\0-\u007E]/,li=/[.\u3002\uFF0E\uFF61]/g,hi="Overflow: input needs wider integers to process",pi=RangeError,vi=b(li.exec),gi=Math.floor,yi=String.fromCharCode,di=b("".charCodeAt),mi=b([].join),bi=b([].push),wi=b("".replace),Si=b("".split),Oi=b("".toLowerCase),Pi=function(t){return t+22+75*(t<26)},Ri=function(t,e,r){var n=0;for(t=r?gi(t/700):t>>1,t+=gi(t/e);t>455;)t=gi(t/35),n+=36;return gi(n+36*t/(t+38))},xi=function(t){var e,r,n=[],o=(t=function(t){for(var e=[],r=0,n=t.length;r<n;){var o=di(t,r++);if(o>=55296&&o<=56319&&r<n){var i=di(t,r++);56320==(64512&i)?bi(e,((1023&o)<<10)+(1023&i)+65536):(bi(e,o),r--)}else bi(e,o)}return e}(t)).length,i=128,a=0,u=72;for(e=0;e<t.length;e++)(r=t[e])<128&&bi(n,yi(r));var c=n.length,s=c;for(c&&bi(n,"-");s<o;){var f=2147483647;for(e=0;e<t.length;e++)(r=t[e])>=i&&r<f&&(f=r);var l=s+1;if(f-i>gi((2147483647-a)/l))throw pi(hi);for(a+=(f-i)*l,i=f,e=0;e<t.length;e++){if((r=t[e])<i&&++a>2147483647)throw pi(hi);if(r==i){for(var h=a,p=36;;){var v=p<=u?1:p>=u+26?26:p-u;if(h<v)break;var g=h-v,y=36-v;bi(n,yi(Pi(v+g%y))),h=gi(g/y),p+=36}bi(n,yi(Pi(h))),u=Ri(a,l,s==c),a=0,s++}}a++,i++}return mi(n,"")},ji=TypeError,Li=function(t,e){if(t<e)throw ji("Not enough arguments");return t},Ei=Math.floor,ki=function(t,e){var r=t.length,n=Ei(r/2);return r<8?Ii(t,e):Ui(t,ki(si(t,0,n),e),ki(si(t,n),e),e)},Ii=function(t,e){for(var r,n,o=t.length,i=1;i<o;){for(n=i,r=t[i];n&&e(t[n-1],r)>0;)t[n]=t[--n];n!==i++&&(t[n]=r)}return t},Ui=function(t,e,r,n){for(var o=e.length,i=r.length,a=0,u=0;a<o||u<i;)t[a+u]=a<o&&u<i?n(e[a],r[u])<=0?e[a++]:r[u++]:a<o?e[a++]:r[u++];return t},Ai=ki,Ti=ht("iterator"),Ci=Zt.set,_i=Zt.getterFor("URLSearchParams"),Bi=Zt.getterFor("URLSearchParamsIterator"),Fi=Object.getOwnPropertyDescriptor,Mi=function(t){if(!u)return i[t];var e=Fi(i,t);return e&&e.value},qi=Mi("fetch"),Hi=Mi("Request"),zi=Mi("Headers"),$i=Hi&&Hi.prototype,Di=zi&&zi.prototype,Gi=i.RegExp,Ni=i.TypeError,Vi=i.decodeURIComponent,Qi=i.encodeURIComponent,Wi=b("".charAt),Yi=b([].join),Ki=b([].push),Xi=b("".replace),Ji=b([].shift),Zi=b([].splice),ta=b("".split),ea=b("".slice),ra=/\+/g,na=Array(4),oa=function(t){return na[t-1]||(na[t-1]=Gi("((?:%[\\da-f]{2}){"+t+"})","gi"))},ia=function(t){try{return Vi(t)}catch(e){return t}},aa=function(t){var e=Xi(t,ra," "),r=4;try{return Vi(e)}catch(t){for(;r;)e=Xi(e,oa(r--),ia);return e}},ua=/[!'()~]|%20/g,ca={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},sa=function(t){return ca[t]},fa=function(t){return Xi(Qi(t),ua,sa)},la=mo((function(t,e){Ci(this,{type:"URLSearchParamsIterator",iterator:oi(_i(t).entries),kind:e})}),"Iterator",(function(){var t=Bi(this),e=t.kind,r=t.iterator.next(),n=r.value;return r.done||(r.value="keys"===e?n.key:"values"===e?n.value:[n.key,n.value]),r}),!0),ha=function(t){this.entries=[],this.url=null,void 0!==t&&(I(t)?this.parseObject(t):this.parseQuery("string"==typeof t?"?"===Wi(t,0)?ea(t,1):t:Nr(t)))};ha.prototype={type:"URLSearchParams",bindURL:function(t){this.url=t,this.update()},parseObject:function(t){var e,r,n,o,i,a,u,c=ri(t);if(c)for(r=(e=oi(t,c)).next;!(n=f(r,e)).done;){if(i=(o=oi(jt(n.value))).next,(a=f(i,o)).done||(u=f(i,o)).done||!f(i,o).done)throw Ni("Expected sequence with length 2");Ki(this.entries,{key:Nr(a.value),value:Nr(u.value)})}else for(var s in t)nt(t,s)&&Ki(this.entries,{key:s,value:Nr(t[s])})},parseQuery:function(t){if(t)for(var e,r,n=ta(t,"&"),o=0;o<n.length;)(e=n[o++]).length&&(r=ta(e,"="),Ki(this.entries,{key:aa(Ji(r)),value:aa(Yi(r,"="))}))},serialize:function(){for(var t,e=this.entries,r=[],n=0;n<e.length;)t=e[n++],Ki(r,fa(t.key)+"="+fa(t.value));return Yi(r,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var pa=function(){Vo(this,va);var t=arguments.length>0?arguments[0]:void 0;Ci(this,new ha(t))},va=pa.prototype;if(function(t,e,r){for(var n in e)ee(t,n,e[n],r)}(va,{append:function(t,e){Li(arguments.length,2);var r=_i(this);Ki(r.entries,{key:Nr(t),value:Nr(e)}),r.updateURL()},delete:function(t){Li(arguments.length,1);for(var e=_i(this),r=e.entries,n=Nr(t),o=0;o<r.length;)r[o].key===n?Zi(r,o,1):o++;e.updateURL()},get:function(t){Li(arguments.length,1);for(var e=_i(this).entries,r=Nr(t),n=0;n<e.length;n++)if(e[n].key===r)return e[n].value;return null},getAll:function(t){Li(arguments.length,1);for(var e=_i(this).entries,r=Nr(t),n=[],o=0;o<e.length;o++)e[o].key===r&&Ki(n,e[o].value);return n},has:function(t){Li(arguments.length,1);for(var e=_i(this).entries,r=Nr(t),n=0;n<e.length;)if(e[n++].key===r)return!0;return!1},set:function(t,e){Li(arguments.length,1);for(var r,n=_i(this),o=n.entries,i=!1,a=Nr(t),u=Nr(e),c=0;c<o.length;c++)(r=o[c]).key===a&&(i?Zi(o,c--,1):(i=!0,r.value=u));i||Ki(o,{key:a,value:u}),n.updateURL()},sort:function(){var t=_i(this);Ai(t.entries,(function(t,e){return t.key>e.key?1:-1})),t.updateURL()},forEach:function(t){for(var e,r=_i(this).entries,n=Ir(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 la(this,"keys")},values:function(){return new la(this,"values")},entries:function(){return new la(this,"entries")}},{enumerable:!0}),ee(va,Ti,va.entries,{name:"entries"}),ee(va,"toString",(function(){return _i(this).serialize()}),{enumerable:!0}),vo(pa,"URLSearchParams"),Ue({global:!0,constructor:!0,forced:!Do},{URLSearchParams:pa}),!Do&&k(zi)){var ga=b(Di.has),ya=b(Di.set),da=function(t){if(I(t)){var e,r=t.body;if("URLSearchParams"===We(r))return e=t.headers?new zi(t.headers):new zi,ga(e,"content-type")||ya(e,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),gr(t,{body:v(0,Nr(r)),headers:v(0,e)})}return t};if(k(qi)&&Ue({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(t){return qi(t,arguments.length>1?da(arguments[1]):{})}}),k(Hi)){var ma=function(t){return Vo(this,$i),new Hi(t,arguments.length>1?da(arguments[1]):{})};$i.constructor=ma,ma.prototype=$i,Ue({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:ma})}}var ba,wa={URLSearchParams:pa,getState:_i},Sa=Sn.codeAt,Oa=Zt.set,Pa=Zt.getterFor("URL"),Ra=wa.URLSearchParams,xa=wa.getState,ja=i.URL,La=i.TypeError,Ea=i.parseInt,ka=Math.floor,Ia=Math.pow,Ua=b("".charAt),Aa=b(/./.exec),Ta=b([].join),Ca=b(1..toString),_a=b([].pop),Ba=b([].push),Fa=b("".replace),Ma=b([].shift),qa=b("".split),Ha=b("".slice),za=b("".toLowerCase),$a=b([].unshift),Da=/[a-z]/i,Ga=/[\d+-.a-z]/i,Na=/\d/,Va=/^0x/i,Qa=/^[0-7]+$/,Wa=/^\d+$/,Ya=/^[\da-f]+$/i,Ka=/[\0\t\n\r #%/:<>?@[\\\]^|]/,Xa=/[\0\t\n\r #/:<>?@[\\\]^|]/,Ja=/^[\u0000-\u0020]+|[\u0000-\u0020]+$/g,Za=/[\t\n\r]/g,tu=function(t){var e,r,n,o;if("number"==typeof t){for(e=[],r=0;r<4;r++)$a(e,t%256),t=ka(t/256);return Ta(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+=Ca(t[r],16),r<7&&(e+=":")));return"["+e+"]"}return t},eu={},ru=Ko({},eu,{" ":1,'"':1,"<":1,">":1,"`":1}),nu=Ko({},ru,{"#":1,"?":1,"{":1,"}":1}),ou=Ko({},nu,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),iu=function(t,e){var r=Sa(t,0);return r>32&&r<127&&!nt(e,t)?t:encodeURIComponent(t)},au={ftp:21,file:null,http:80,https:443,ws:80,wss:443},uu=function(t,e){var r;return 2==t.length&&Aa(Da,Ua(t,0))&&(":"==(r=Ua(t,1))||!e&&"|"==r)},cu=function(t){var e;return t.length>1&&uu(Ha(t,0,2))&&(2==t.length||"/"===(e=Ua(t,2))||"\\"===e||"?"===e||"#"===e)},su=function(t){return"."===t||"%2e"===za(t)},fu={},lu={},hu={},pu={},vu={},gu={},yu={},du={},mu={},bu={},wu={},Su={},Ou={},Pu={},Ru={},xu={},ju={},Lu={},Eu={},ku={},Iu={},Uu=function(t,e,r){var n,o,i,a=Nr(t);if(e){if(o=this.parse(a))throw La(o);this.searchParams=null}else{if(void 0!==r&&(n=new Uu(r,!0)),o=this.parse(a,null,n))throw La(o);(i=xa(new Ra)).bindURL(this),this.searchParams=i}};Uu.prototype={type:"URL",parse:function(t,e,r){var n,o,i,a,u,c=this,s=e||fu,f=0,l="",h=!1,p=!1,v=!1;for(t=Nr(t),e||(c.scheme="",c.username="",c.password="",c.host=null,c.port=null,c.path=[],c.query=null,c.fragment=null,c.cannotBeABaseURL=!1,t=Fa(t,Ja,"")),t=Fa(t,Za,""),n=ai(t);f<=n.length;){switch(o=n[f],s){case fu:if(!o||!Aa(Da,o)){if(e)return"Invalid scheme";s=hu;continue}l+=za(o),s=lu;break;case lu:if(o&&(Aa(Ga,o)||"+"==o||"-"==o||"."==o))l+=za(o);else{if(":"!=o){if(e)return"Invalid scheme";l="",s=hu,f=0;continue}if(e&&(c.isSpecial()!=nt(au,l)||"file"==l&&(c.includesCredentials()||null!==c.port)||"file"==c.scheme&&!c.host))return;if(c.scheme=l,e)return void(c.isSpecial()&&au[c.scheme]==c.port&&(c.port=null));l="","file"==c.scheme?s=Pu:c.isSpecial()&&r&&r.scheme==c.scheme?s=pu:c.isSpecial()?s=du:"/"==n[f+1]?(s=vu,f++):(c.cannotBeABaseURL=!0,Ba(c.path,""),s=Eu)}break;case hu:if(!r||r.cannotBeABaseURL&&"#"!=o)return"Invalid scheme";if(r.cannotBeABaseURL&&"#"==o){c.scheme=r.scheme,c.path=si(r.path),c.query=r.query,c.fragment="",c.cannotBeABaseURL=!0,s=Iu;break}s="file"==r.scheme?Pu:gu;continue;case pu:if("/"!=o||"/"!=n[f+1]){s=gu;continue}s=mu,f++;break;case vu:if("/"==o){s=bu;break}s=Lu;continue;case gu:if(c.scheme=r.scheme,o==ba)c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,c.path=si(r.path),c.query=r.query;else if("/"==o||"\\"==o&&c.isSpecial())s=yu;else if("?"==o)c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,c.path=si(r.path),c.query="",s=ku;else{if("#"!=o){c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,c.path=si(r.path),c.path.length--,s=Lu;continue}c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,c.path=si(r.path),c.query=r.query,c.fragment="",s=Iu}break;case yu:if(!c.isSpecial()||"/"!=o&&"\\"!=o){if("/"!=o){c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,s=Lu;continue}s=bu}else s=mu;break;case du:if(s=mu,"/"!=o||"/"!=Ua(l,f+1))continue;f++;break;case mu:if("/"!=o&&"\\"!=o){s=bu;continue}break;case bu:if("@"==o){h&&(l="%40"+l),h=!0,i=ai(l);for(var g=0;g<i.length;g++){var y=i[g];if(":"!=y||v){var d=iu(y,ou);v?c.password+=d:c.username+=d}else v=!0}l=""}else if(o==ba||"/"==o||"?"==o||"#"==o||"\\"==o&&c.isSpecial()){if(h&&""==l)return"Invalid authority";f-=ai(l).length+1,l="",s=wu}else l+=o;break;case wu:case Su:if(e&&"file"==c.scheme){s=xu;continue}if(":"!=o||p){if(o==ba||"/"==o||"?"==o||"#"==o||"\\"==o&&c.isSpecial()){if(c.isSpecial()&&""==l)return"Invalid host";if(e&&""==l&&(c.includesCredentials()||null!==c.port))return;if(a=c.parseHost(l))return a;if(l="",s=ju,e)return;continue}"["==o?p=!0:"]"==o&&(p=!1),l+=o}else{if(""==l)return"Invalid host";if(a=c.parseHost(l))return a;if(l="",s=Ou,e==Su)return}break;case Ou:if(!Aa(Na,o)){if(o==ba||"/"==o||"?"==o||"#"==o||"\\"==o&&c.isSpecial()||e){if(""!=l){var m=Ea(l,10);if(m>65535)return"Invalid port";c.port=c.isSpecial()&&m===au[c.scheme]?null:m,l=""}if(e)return;s=ju;continue}return"Invalid port"}l+=o;break;case Pu:if(c.scheme="file","/"==o||"\\"==o)s=Ru;else{if(!r||"file"!=r.scheme){s=Lu;continue}if(o==ba)c.host=r.host,c.path=si(r.path),c.query=r.query;else if("?"==o)c.host=r.host,c.path=si(r.path),c.query="",s=ku;else{if("#"!=o){cu(Ta(si(n,f),""))||(c.host=r.host,c.path=si(r.path),c.shortenPath()),s=Lu;continue}c.host=r.host,c.path=si(r.path),c.query=r.query,c.fragment="",s=Iu}}break;case Ru:if("/"==o||"\\"==o){s=xu;break}r&&"file"==r.scheme&&!cu(Ta(si(n,f),""))&&(uu(r.path[0],!0)?Ba(c.path,r.path[0]):c.host=r.host),s=Lu;continue;case xu:if(o==ba||"/"==o||"\\"==o||"?"==o||"#"==o){if(!e&&uu(l))s=Lu;else if(""==l){if(c.host="",e)return;s=ju}else{if(a=c.parseHost(l))return a;if("localhost"==c.host&&(c.host=""),e)return;l="",s=ju}continue}l+=o;break;case ju:if(c.isSpecial()){if(s=Lu,"/"!=o&&"\\"!=o)continue}else if(e||"?"!=o)if(e||"#"!=o){if(o!=ba&&(s=Lu,"/"!=o))continue}else c.fragment="",s=Iu;else c.query="",s=ku;break;case Lu:if(o==ba||"/"==o||"\\"==o&&c.isSpecial()||!e&&("?"==o||"#"==o)){if(".."===(u=za(u=l))||"%2e."===u||".%2e"===u||"%2e%2e"===u?(c.shortenPath(),"/"==o||"\\"==o&&c.isSpecial()||Ba(c.path,"")):su(l)?"/"==o||"\\"==o&&c.isSpecial()||Ba(c.path,""):("file"==c.scheme&&!c.path.length&&uu(l)&&(c.host&&(c.host=""),l=Ua(l,0)+":"),Ba(c.path,l)),l="","file"==c.scheme&&(o==ba||"?"==o||"#"==o))for(;c.path.length>1&&""===c.path[0];)Ma(c.path);"?"==o?(c.query="",s=ku):"#"==o&&(c.fragment="",s=Iu)}else l+=iu(o,nu);break;case Eu:"?"==o?(c.query="",s=ku):"#"==o?(c.fragment="",s=Iu):o!=ba&&(c.path[0]+=iu(o,eu));break;case ku:e||"#"!=o?o!=ba&&("'"==o&&c.isSpecial()?c.query+="%27":c.query+="#"==o?"%23":iu(o,eu)):(c.fragment="",s=Iu);break;case Iu:o!=ba&&(c.fragment+=iu(o,ru))}f++}},parseHost:function(t){var e,r,n;if("["==Ua(t,0)){if("]"!=Ua(t,t.length-1))return"Invalid host";if(!(e=function(t){var e,r,n,o,i,a,u,c=[0,0,0,0,0,0,0,0],s=0,f=null,l=0,h=function(){return Ua(t,l)};if(":"==h()){if(":"!=Ua(t,1))return;l+=2,f=++s}for(;h();){if(8==s)return;if(":"!=h()){for(e=r=0;r<4&&Aa(Ya,h());)e=16*e+Ea(h(),16),l++,r++;if("."==h()){if(0==r)return;if(l-=r,s>6)return;for(n=0;h();){if(o=null,n>0){if(!("."==h()&&n<4))return;l++}if(!Aa(Na,h()))return;for(;Aa(Na,h());){if(i=Ea(h(),10),null===o)o=i;else{if(0==o)return;o=10*o+i}if(o>255)return;l++}c[s]=256*c[s]+o,2!=++n&&4!=n||s++}if(4!=n)return;break}if(":"==h()){if(l++,!h())return}else if(h())return;c[s++]=e}else{if(null!==f)return;l++,f=++s}}if(null!==f)for(a=s-f,s=7;0!=s&&a>0;)u=c[s],c[s--]=c[f+a-1],c[f+--a]=u;else if(8!=s)return;return c}(Ha(t,1,-1))))return"Invalid host";this.host=e}else if(this.isSpecial()){if(t=function(t){var e,r,n=[],o=Si(wi(Oi(t),li,"."),".");for(e=0;e<o.length;e++)r=o[e],bi(n,vi(fi,r)?"xn--"+xi(r):r);return mi(n,".")}(t),Aa(Ka,t))return"Invalid host";if(null===(e=function(t){var e,r,n,o,i,a,u,c=qa(t,".");if(c.length&&""==c[c.length-1]&&c.length--,(e=c.length)>4)return t;for(r=[],n=0;n<e;n++){if(""==(o=c[n]))return t;if(i=10,o.length>1&&"0"==Ua(o,0)&&(i=Aa(Va,o)?16:8,o=Ha(o,8==i?1:2)),""===o)a=0;else{if(!Aa(10==i?Wa:8==i?Qa:Ya,o))return t;a=Ea(o,i)}Ba(r,a)}for(n=0;n<e;n++)if(a=r[n],n==e-1){if(a>=Ia(256,5-e))return null}else if(a>255)return null;for(u=_a(r),n=0;n<r.length;n++)u+=r[n]*Ia(256,3-n);return u}(t)))return"Invalid host";this.host=e}else{if(Aa(Xa,t))return"Invalid host";for(e="",r=ai(t),n=0;n<r.length;n++)e+=iu(r[n],eu);this.host=e}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"==this.scheme},includesCredentials:function(){return""!=this.username||""!=this.password},isSpecial:function(){return nt(au,this.scheme)},shortenPath:function(){var t=this.path,e=t.length;!e||"file"==this.scheme&&1==e&&uu(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,c=t.fragment,s=e+":";return null!==o?(s+="//",t.includesCredentials()&&(s+=r+(n?":"+n:"")+"@"),s+=tu(o),null!==i&&(s+=":"+i)):"file"==e&&(s+="//"),s+=t.cannotBeABaseURL?a[0]:a.length?"/"+Ta(a,"/"):"",null!==u&&(s+="?"+u),null!==c&&(s+="#"+c),s},setHref:function(t){var e=this.parse(t);if(e)throw La(e);this.searchParams.update()},getOrigin:function(){var t=this.scheme,e=this.port;if("blob"==t)try{return new Au(t.path[0]).origin}catch(t){return"null"}return"file"!=t&&this.isSpecial()?t+"://"+tu(this.host)+(null!==e?":"+e:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(t){this.parse(Nr(t)+":",fu)},getUsername:function(){return this.username},setUsername:function(t){var e=ai(Nr(t));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var r=0;r<e.length;r++)this.username+=iu(e[r],ou)}},getPassword:function(){return this.password},setPassword:function(t){var e=ai(Nr(t));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var r=0;r<e.length;r++)this.password+=iu(e[r],ou)}},getHost:function(){var t=this.host,e=this.port;return null===t?"":null===e?tu(t):tu(t)+":"+e},setHost:function(t){this.cannotBeABaseURL||this.parse(t,wu)},getHostname:function(){var t=this.host;return null===t?"":tu(t)},setHostname:function(t){this.cannotBeABaseURL||this.parse(t,Su)},getPort:function(){var t=this.port;return null===t?"":Nr(t)},setPort:function(t){this.cannotHaveUsernamePasswordPort()||(""==(t=Nr(t))?this.port=null:this.parse(t,Ou))},getPathname:function(){var t=this.path;return this.cannotBeABaseURL?t[0]:t.length?"/"+Ta(t,"/"):""},setPathname:function(t){this.cannotBeABaseURL||(this.path=[],this.parse(t,ju))},getSearch:function(){var t=this.query;return t?"?"+t:""},setSearch:function(t){""==(t=Nr(t))?this.query=null:("?"==Ua(t,0)&&(t=Ha(t,1)),this.query="",this.parse(t,ku)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var t=this.fragment;return t?"#"+t:""},setHash:function(t){""!=(t=Nr(t))?("#"==Ua(t,0)&&(t=Ha(t,1)),this.fragment="",this.parse(t,Iu)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var Au=function(t){var e=Vo(this,Tu),r=Li(arguments.length,1)>1?arguments[1]:void 0,n=Oa(e,new Uu(t,!1,r));u||(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())},Tu=Au.prototype,Cu=function(t,e){return{get:function(){return Pa(this)[t]()},set:e&&function(t){return Pa(this)[e](t)},configurable:!0,enumerable:!0}};if(u&&(Go(Tu,"href",Cu("serialize","setHref")),Go(Tu,"origin",Cu("getOrigin")),Go(Tu,"protocol",Cu("getProtocol","setProtocol")),Go(Tu,"username",Cu("getUsername","setUsername")),Go(Tu,"password",Cu("getPassword","setPassword")),Go(Tu,"host",Cu("getHost","setHost")),Go(Tu,"hostname",Cu("getHostname","setHostname")),Go(Tu,"port",Cu("getPort","setPort")),Go(Tu,"pathname",Cu("getPathname","setPathname")),Go(Tu,"search",Cu("getSearch","setSearch")),Go(Tu,"searchParams",Cu("getSearchParams")),Go(Tu,"hash",Cu("getHash","setHash"))),ee(Tu,"toJSON",(function(){return Pa(this).serialize()}),{enumerable:!0}),ee(Tu,"toString",(function(){return Pa(this).serialize()}),{enumerable:!0}),ja){var _u=ja.createObjectURL,Bu=ja.revokeObjectURL;_u&&ee(Au,"createObjectURL",Ir(_u,ja)),Bu&&ee(Au,"revokeObjectURL",Ir(Bu,ja))}function Fu(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function Mu(t,e){return(Mu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function qu(t){return(qu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Hu(t,e){if(e&&("object"===qu(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function zu(t){return(zu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function $u(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function Du(t,e,r){return(Du=$u()?Reflect.construct.bind():function(t,e,r){var n=[null];n.push.apply(n,e);var o=new(Function.bind.apply(t,n));return r&&Mu(o,r.prototype),o}).apply(null,arguments)}function Gu(t){var e="function"==typeof Map?new Map:void 0;return(Gu=function(t){if(null===t||(r=t,-1===Function.toString.call(r).indexOf("[native code]")))return t;var r;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return Du(t,arguments,zu(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Mu(n,t)})(t)}function Nu(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=zu(t);if(e){var o=zu(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Hu(this,r)}}vo(Au,"URL"),Ue({global:!0,constructor:!0,forced:!Do,sham:!u},{URL:Au}),yn("match",(function(t,e,r){return[function(e){var r=L(this),n=null==e?void 0:W(e,t);return n?f(n,e,r):new RegExp(e)[t](Nr(r))},function(t){var n=jt(this),o=Nr(t),i=r(e,n,o);if(i.done)return i.value;if(!n.global)return An(n,o);var a=n.unicode;n.lastIndex=0;for(var u,c=[],s=0;null!==(u=An(n,o));){var f=Nr(u[0]);c[s]=f,""===f&&(n.lastIndex=Pn(o,fe(n.lastIndex),a)),s++}return 0===s?null:c}]}));var Vu=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Mu(t,e)}(i,Gu(URL));var e,r,n,o=Nu(i);function i(t,e,r){var n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i);var a={};return Object.keys((null==r?void 0:r.pathParams)||{}).forEach((function(t){var e,n=null==r||null===(e=r.pathParams)||void 0===e?void 0:e[t];n&&(a[t]=encodeURIComponent(n))})),(n=o.call(this,i.renderTemplateUri("".concat(e,"/").concat(t).replace(/\/\/+/g,"/"),a))).addQueryParams(null==r?void 0:r.queryParams),null!=r&&r.origin&&n.replaceOrigin(null==r?void 0:r.origin),n}return e=i,n=[{key:"renderTemplateUri",value:function(t,e){var r=e?t.replace(/\{([^\}]+)\}/g,(function(t,r){return String(e[r])})):t,n=/(\.|%2e|%2E|%252e|%252E)+(\/|%2f|%2F|%252f|%252F)+/g;return r.match(n)&&(console.warn("Path traversal attempt detected. Normalizing url"),r=r.replace(n,"")),r}}],(r=[{key:"replaceOrigin",value:function(t){var e=new URL(t);this.protocol=e.protocol,this.host=e.host,this.pathname="".concat(e.pathname,"/").concat(this.pathname).replace(/\/\/+/g,"/")}},{key:"addQueryParams",value:function(t){var e=this;t&&Object.keys(t).forEach((function(r){var n=t[r];if(Array.isArray(n))if("refine"===r)for(var o=0;o<n.length;o+=1)e.searchParams.append(r,String(n[o]));else e.searchParams.append(r,n.join());else e.searchParams.append(r,String(n))}))}}])&&Fu(e.prototype,r),n&&Fu(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();exports.default=Vu;
|
package/lib/templateUrl.d.ts
DELETED
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
type LocaleCode = {
|
|
2
|
-
[key: string]: any;
|
|
3
|
-
};
|
|
4
|
-
/**
|
|
5
|
-
* Generic interface for path parameters.
|
|
6
|
-
*/
|
|
7
|
-
interface PathParameters {
|
|
8
|
-
[key: string]: string | number | boolean;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* Generic interface for query parameters.
|
|
12
|
-
*/
|
|
13
|
-
interface QueryParameters {
|
|
14
|
-
[key: string]: string | number | boolean | string[] | number[] | LocaleCode;
|
|
15
|
-
}
|
|
16
|
-
declare class TemplateURL extends URL {
|
|
17
|
-
/**
|
|
18
|
-
* @param url -
|
|
19
|
-
* @param base -
|
|
20
|
-
*/
|
|
21
|
-
/**
|
|
22
|
-
* @param url -
|
|
23
|
-
* @param base -
|
|
24
|
-
*/
|
|
25
|
-
constructor(url: string, base: string, parameters?: {
|
|
26
|
-
pathParams?: PathParameters;
|
|
27
|
-
queryParams?: QueryParameters;
|
|
28
|
-
origin?: string;
|
|
29
|
-
});
|
|
30
|
-
/**
|
|
31
|
-
* Replace the origin (protocol/host) portion of the URL with a new origin.
|
|
32
|
-
* The path portion is retained and concatenated with any path included in the
|
|
33
|
-
* new origin. Thee primary use of this function is to use a proxy.
|
|
34
|
-
*
|
|
35
|
-
* @param newOriginString - The new origin to substitute (ex: https://example.com)
|
|
36
|
-
*/
|
|
37
|
-
/**
|
|
38
|
-
* Replace the origin (protocol/host) portion of the URL with a new origin.
|
|
39
|
-
* The path portion is retained and concatenated with any path included in the
|
|
40
|
-
* new origin. Thee primary use of this function is to use a proxy.
|
|
41
|
-
*
|
|
42
|
-
* @param newOriginString - The new origin to substitute (ex: https://example.com)
|
|
43
|
-
*/
|
|
44
|
-
replaceOrigin(newOriginString: string): void;
|
|
45
|
-
/**
|
|
46
|
-
* Add append an object literal of query parameters to the URL object. SCAPI expects
|
|
47
|
-
* Arrays to be comma separated where \{ a: ["1", "2"] \} becomes ?a=1,2.
|
|
48
|
-
* The 'refine' query parameter is an exception, where SCAPI expects the the "repeat"
|
|
49
|
-
* convention where \{ refine: ["1", "2"] \} becomes "?refine=1&refine=2"
|
|
50
|
-
*/
|
|
51
|
-
/**
|
|
52
|
-
* Add append an object literal of query parameters to the URL object. SCAPI expects
|
|
53
|
-
* Arrays to be comma separated where \{ a: ["1", "2"] \} becomes ?a=1,2.
|
|
54
|
-
* The 'refine' query parameter is an exception, where SCAPI expects the the "repeat"
|
|
55
|
-
* convention where \{ refine: ["1", "2"] \} becomes "?refine=1&refine=2"
|
|
56
|
-
*/
|
|
57
|
-
addQueryParams(queryParams?: QueryParameters): void;
|
|
58
|
-
/**
|
|
59
|
-
* Replace bracketed URL template parameters with values from parameters object
|
|
60
|
-
*
|
|
61
|
-
* @param template - The URL template string to make substitutions in
|
|
62
|
-
* @param parameters - The object literal that provides the values to substitute
|
|
63
|
-
*
|
|
64
|
-
* @returns String URL with substitutions made
|
|
65
|
-
*/
|
|
66
|
-
/**
|
|
67
|
-
* Replace bracketed URL template parameters with values from parameters object
|
|
68
|
-
*
|
|
69
|
-
* @param template - The URL template string to make substitutions in
|
|
70
|
-
* @param parameters - The object literal that provides the values to substitute
|
|
71
|
-
*
|
|
72
|
-
* @returns String URL with substitutions made
|
|
73
|
-
*/
|
|
74
|
-
static renderTemplateUri(template: string, parameters?: PathParameters): string;
|
|
75
|
-
}
|
|
76
|
-
export { TemplateURL as default };
|