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