commerce-sdk-isomorphic 4.1.0 → 4.2.0

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