@gradientedge/commercetools-utils 4.11.3 → 4.12.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 (44) hide show
  1. package/dist/ge-commercetools-utils-browser.cjs.js +1 -1
  2. package/dist/ge-commercetools-utils-browser.cjs.js.map +1 -1
  3. package/dist/ge-commercetools-utils-browser.esm.js +1 -1
  4. package/dist/ge-commercetools-utils-browser.esm.js.map +1 -1
  5. package/dist/ge-commercetools-utils-node.cjs.js +1 -1
  6. package/dist/ge-commercetools-utils-node.cjs.js.map +1 -1
  7. package/dist/ge-commercetools-utils-node.esm.js +1 -1
  8. package/dist/typings/api/CommercetoolsApi.d.ts +1 -1
  9. package/dist/typings/index.d.ts +1 -1
  10. package/dist/typings/models/cart-discount.d.ts +196 -0
  11. package/dist/typings/models/cart.d.ts +597 -0
  12. package/dist/typings/models/category.d.ts +166 -0
  13. package/dist/typings/models/channel.d.ts +103 -0
  14. package/dist/typings/models/common.d.ts +232 -0
  15. package/dist/typings/models/custom-object.d.ts +30 -0
  16. package/dist/typings/models/customer-group.d.ts +58 -0
  17. package/dist/typings/models/customer.d.ts +276 -0
  18. package/dist/typings/models/discount-code.d.ts +116 -0
  19. package/dist/typings/models/error.d.ts +412 -0
  20. package/dist/typings/models/extension.d.ts +78 -0
  21. package/dist/typings/models/graph-ql.d.ts +21 -0
  22. package/dist/typings/models/index.d.ts +33 -0
  23. package/dist/typings/models/inventory.d.ts +82 -0
  24. package/dist/typings/models/me.d.ts +481 -0
  25. package/dist/typings/models/message.d.ts +1823 -0
  26. package/dist/typings/models/order-edit.d.ts +565 -0
  27. package/dist/typings/models/order.d.ts +558 -0
  28. package/dist/typings/models/payment.d.ts +208 -0
  29. package/dist/typings/models/product-discount.d.ts +123 -0
  30. package/dist/typings/models/product-selection.d.ts +106 -0
  31. package/dist/typings/models/product-type.d.ts +216 -0
  32. package/dist/typings/models/product.d.ts +517 -0
  33. package/dist/typings/models/project.d.ts +108 -0
  34. package/dist/typings/models/review.d.ts +115 -0
  35. package/dist/typings/models/scalar-types.d.ts +4 -0
  36. package/dist/typings/models/shipping-method.d.ts +160 -0
  37. package/dist/typings/models/shopping-list.d.ts +217 -0
  38. package/dist/typings/models/state.d.ts +86 -0
  39. package/dist/typings/models/store.d.ts +121 -0
  40. package/dist/typings/models/subscription.d.ts +148 -0
  41. package/dist/typings/models/tax-category.d.ts +87 -0
  42. package/dist/typings/models/type.d.ts +182 -0
  43. package/dist/typings/models/zone.d.ts +65 -0
  44. package/package.json +13 -14
@@ -1,2 +1,2 @@
1
- var e={9818:function(e,t,r){var s=this&&this.__assign||function(){return s=Object.assign||function(e){for(var t,r=1,s=arguments.length;r<s;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},s.apply(this,arguments)},a=this&&this.__awaiter||function(e,t,r,s){return new(r||(r=Promise))((function(a,i){function o(e){try{u(s.next(e))}catch(e){i(e)}}function n(e){try{u(s.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?a(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,n)}u((s=s.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var r,s,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:n(0),throw:n(1),return:n(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function n(i){return function(n){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;o;)try{if(r=1,s&&(a=2&i[0]?s.return:i[0]?s.throw||((a=s.return)&&a.call(s),0):s.next)&&!(a=a.call(s,i[1])).done)return a;switch(s=0,a&&(i=[2&i[0],a.value]),i[0]){case 0:case 1:a=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,s=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!((a=(a=o.trys).length>0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]<a[3])){o.label=i[1];break}if(6===i[0]&&o.label<a[1]){o.label=a[1],a=i;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(i);break}a[2]&&o.ops.pop(),o.trys.pop();continue}i=t.call(e,o)}catch(e){i=[6,e],s=0}finally{r=a=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,n])}}},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CommercetoolsApi=void 0;var n=o(r(9669)),u=o(r(129)),h=r(2915),c=r(3028),p=r(7111),l=r(4060),d=r(893),g={maxRetries:0,delayMs:0},y=[500,501,502,503,504],m=function(){function e(t){e.validateConfig(t),this.config=t,this.auth=new h.CommercetoolsAuth(t),this.endpoints=p.REGION_URLS[this.config.region],this.userAgent=(0,d.buildUserAgent)(this.config.systemIdentifier),this.axios=this.createAxiosInstance(),this.retry=t.retry||g}return e.prototype.createAxiosInstance=function(){return n.default.create({timeout:this.config.timeoutMs||l.DEFAULT_REQUEST_TIMEOUT_MS,paramsSerializer:function(e){return u.default.stringify(e,{arrayFormat:"repeat"})},httpsAgent:void 0})},e.prototype.getStoreById=function(e){return this.request(s(s({},this.extractCommonRequestOptions(e)),{path:"/stores/".concat(e.id),method:"GET"}))},e.prototype.getStoreByKey=function(e){return this.request(s(s({},this.extractCommonRequestOptions(e)),{path:"/stores/key=".concat(e.key),method:"GET"}))},e.prototype.queryStores=function(e){return this.request(s(s({},this.extractCommonRequestOptions(e)),{path:"/stores",method:"GET"}))},e.prototype.createStore=function(e){return this.request({path:"/stores",method:"POST",data:e.data})},e.prototype.updateStoreById=function(e){return this.request(s(s({},this.extractCommonRequestOptions(e)),{path:"/stores/".concat(e.id),method:"POST",data:e.data}))},e.prototype.updateStoreByKey=function(e){return this.request({path:"/stores/key=".concat(e.key),method:"POST",data:e.data})},e.prototype.deleteStoreById=function(e){return this.request(s(s({},this.extractCommonRequestOptions(e)),{path:"/stores/".concat(e.id),method:"DELETE",params:s(s({},e.params),{version:e.version})}))},e.prototype.deleteStoreByKey=function(e){return this.request(s(s({},this.extractCommonRequestOptions(e)),{path:"/stores/key=".concat(e.key),method:"DELETE",params:s(s({},e.params),{version:e.version})}))},e.prototype.getCategoryById=function(e){return this.request(s(s({},this.extractCommonRequestOptions(e)),{path:"/categories/".concat(e.id),method:"GET"}))},e.prototype.getCategoryByKey=function(e){return this.request(s(s({},this.extractCommonRequestOptions(e)),{path:"/categories/key=".concat(e.key),method:"GET"}))},e.prototype.queryChannels=function(e){return this.request(s(s({},this.extractCommonRequestOptions(e)),{path:"/channels",method:"GET"}))},e.prototype.importOrder=function(e){return a(this,void 0,void 0,(function(){return i(this,(function(t){return[2,this.request(s(s({},this.extractCommonRequestOptions(e)),{path:"/orders/import",method:"POST",data:e.data}))]}))}))},e.prototype.getChannelById=function(e){return this.request(s(s({},this.extractCommonRequestOptions(e)),{path:"/channels/".concat(e.id),method:"GET"}))},e.prototype.getCategory=function(e){if(!e.id&&!e.key)throw new c.CommercetoolsError("Either an id, key or slug must be provided");return e.id?this.request(s(s({},this.extractCommonRequestOptions(e)),{path:"/categories/".concat(e.id),method:"GET"})):this.request(s(s({},this.extractCommonRequestOptions(e)),{path:"/categories/key=".concat(e.key),method:"GET"}))},e.prototype.getCategoryBySlug=function(e){return a(this,void 0,void 0,(function(){var t,r;return i(this,(function(a){switch(a.label){case 0:if(!e.languageCode&&!e.languageCodes)throw new c.CommercetoolsError("Either the `languageCode` or `languageCodes` property must be provided");return t=[],e.languageCodes?t.push.apply(t,e.languageCodes):e.languageCode&&t.push(e.languageCode),[4,this.request(s(s({},this.extractCommonRequestOptions(s(s({},e),{params:s(s({},null==e?void 0:e.params),{where:"slug(".concat(t.map((function(t){return"".concat(t,'="').concat(e.slug,'"')})).join(" or "),")")})}))),{path:"/categories",method:"GET"}))];case 1:if(!(r=a.sent()).count)throw new c.CommercetoolsError("No category found with slug [".concat(e.slug,"] and language code [").concat(e.languageCode,"]"),{options:e},404);return[2,r.results[0]]}}))}))},e.prototype.queryCategories=function(e){return this.request(s(s({},this.extractCommonRequestOptions(e)),{path:"/categories",method:"GET"}))},e.prototype.getCategoryParents=function(e){return a(this,void 0,void 0,(function(){var t,r;return i(this,(function(a){switch(a.label){case 0:return[4,this.getCategory(s(s({},e),{params:s(s({},e.params),{expand:"ancestors[*]"})}))];case 1:return t=a.sent(),(r=t.ancestors.map((function(e){return e.obj}))).push(s(s({},t),{ancestors:t.ancestors.map((function(e){return{id:e.id,typeId:e.typeId}}))})),[2,r]}}))}))},e.prototype.getProductById=function(e){return this.request(s(s({},this.extractCommonRequestOptions(e)),{path:"/products/".concat(e.id),method:"GET"}))},e.prototype.getProductByKey=function(e){return this.request(s(s({},this.extractCommonRequestOptions(e)),{path:"/products/key=".concat(e.key),method:"GET"}))},e.prototype.getProductProjectionById=function(e){return this.request(s(s({},this.extractCommonRequestOptions(e)),{path:this.applyStore("/product-projections/".concat(e.id),e.storeKey),method:"GET"}))},e.prototype.getProductProjectionByKey=function(e){return this.request(s(s({},this.extractCommonRequestOptions(e)),{path:this.applyStore("/product-projections/key=".concat(e.key),e.storeKey),method:"GET"}))},e.prototype.getProductProjectionBySlug=function(e){return a(this,void 0,void 0,(function(){var t,r;return i(this,(function(a){switch(a.label){case 0:if(!e.languageCode&&!e.languageCodes)throw new c.CommercetoolsError("Either the `languageCode` or `languageCodes` property must be provided");return t=[],e.languageCodes?t.push.apply(t,e.languageCodes):e.languageCode&&t.push(e.languageCode),[4,this.request(s(s({},this.extractCommonRequestOptions(s(s({},e),{params:s(s({},null==e?void 0:e.params),{where:"slug(".concat(t.map((function(t){return"".concat(t,'="').concat(e.slug,'"')})).join(" or "),")")})}))),{path:"/product-projections",method:"GET"}))];case 1:if(!(r=a.sent()).count)throw new c.CommercetoolsError("No product projection found with slug [".concat(e.slug,"] and language code [").concat(e.languageCode,"]"),{options:e},404);return[2,r.results[0]]}}))}))},e.prototype.queryProductProjections=function(e){return this.request(s(s({},this.extractCommonRequestOptions(e)),{path:"/product-projections",method:"GET"}))},e.prototype.searchProductProjections=function(e){return this.request(s(s({},this.extractCommonRequestOptions(e)),{path:"/product-projections/search",method:"GET"}))},e.prototype.getProductSelectionById=function(e){return this.request(s(s({},this.extractCommonRequestOptions(e)),{path:this.applyStore("/product-selections/".concat(e.id),e.storeKey),method:"GET"}))},e.prototype.getProductSelectionByKey=function(e){return this.request(s(s({},this.extractCommonRequestOptions(e)),{path:this.applyStore("/product-selections/key=".concat(e.key),e.storeKey),method:"GET"}))},e.prototype.queryProductSelections=function(e){return this.request(s(s({},this.extractCommonRequestOptions(e)),{path:"/product-selections",method:"GET"}))},e.prototype.createProductSelection=function(e){return this.request(s(s({},this.extractCommonRequestOptions(e)),{path:"/product-selections",method:"POST",data:e.data}))},e.prototype.updateProductSelectionByKey=function(e){return this.request(s(s({},this.extractCommonRequestOptions(e)),{path:"/product-selections/key=".concat(e.key),method:"POST",data:{version:e.version,actions:e.actions}}))},e.prototype.deleteProductSelectionByKey=function(e){return this.request(s(s({},this.extractCommonRequestOptions(e)),{path:"/product-selections/key=".concat(e.key,"&version=").concat(e.version),method:"DELETE"}))},e.prototype.queryProductsInStore=function(e){return this.request(s(s({},this.extractCommonRequestOptions(e)),{path:"/in-store/key=".concat(e.storeKey,"/product-selection-assignments"),method:"GET"}))},e.prototype.getCartById=function(e){return this.request(s(s({},this.extractCommonRequestOptions(e)),{path:this.applyStore("/carts/".concat(e.id),e.storeKey),method:"GET"}))},e.prototype.queryCarts=function(e){return a(this,void 0,void 0,(function(){return i(this,(function(t){return[2,this.request(s(s({},this.extractCommonRequestOptions(e)),{path:this.applyStore("/carts",null==e?void 0:e.storeKey),method:"GET"}))]}))}))},e.prototype.queryMyCarts=function(e){return a(this,void 0,void 0,(function(){return i(this,(function(t){return[2,this.request(s(s({},this.extractCommonRequestOptions(e)),{path:this.applyStore("/me/carts",e.storeKey),method:"GET",accessToken:e.accessToken}))]}))}))},e.prototype.createCart=function(e){return a(this,void 0,void 0,(function(){return i(this,(function(t){return[2,this.request(s(s({},this.extractCommonRequestOptions(e)),{path:this.applyStore("/carts",e.storeKey),method:"POST",data:e.data}))]}))}))},e.prototype.updateCartById=function(e){return a(this,void 0,void 0,(function(){return i(this,(function(t){return[2,this.request(s(s({},this.extractCommonRequestOptions(e)),{path:this.applyStore("/carts/".concat(e.id),e.storeKey),method:"POST",data:{version:e.version,actions:e.actions}}))]}))}))},e.prototype.getMyActiveCart=function(e){return a(this,void 0,void 0,(function(){return i(this,(function(t){return[2,this.request(s(s({},this.extractCommonRequestOptions(e)),{path:this.applyStore("/me/active-cart",e.storeKey),method:"GET",accessToken:e.accessToken}))]}))}))},e.prototype.getMyCartById=function(e){return a(this,void 0,void 0,(function(){return i(this,(function(t){return[2,this.request(s(s({},this.extractCommonRequestOptions(e)),{path:this.applyStore("/me/carts/".concat(e.cartId),e.storeKey),method:"GET",accessToken:e.accessToken}))]}))}))},e.prototype.createMyCart=function(e){return a(this,void 0,void 0,(function(){return i(this,(function(t){return[2,this.request(s(s({},this.extractCommonRequestOptions(e)),{path:this.applyStore("/me/carts",e.storeKey),method:"POST",data:e.data,accessToken:e.accessToken}))]}))}))},e.prototype.deleteMyActiveCart=function(e){return a(this,void 0,void 0,(function(){var t;return i(this,(function(r){switch(r.label){case 0:return[4,this.getMyActiveCart(e)];case 1:return t=r.sent(),[4,this.request(s(s({},this.extractCommonRequestOptions(e)),{path:this.applyStore("/me/carts/".concat(t.id),e.storeKey),method:"DELETE",params:s(s({},e.params),{version:t.version}),accessToken:e.accessToken}))];case 2:return[2,r.sent()]}}))}))},e.prototype.deleteMyCartById=function(e){return a(this,void 0,void 0,(function(){var t;return i(this,(function(r){switch(r.label){case 0:return[4,this.getMyCartById(e)];case 1:return t=r.sent(),[4,this.request(s(s({},this.extractCommonRequestOptions(e)),{path:this.applyStore("/me/carts/".concat(e.cartId),e.storeKey),method:"DELETE",params:s(s({},e.params),{version:t.version}),accessToken:e.accessToken}))];case 2:return[2,r.sent()]}}))}))},e.prototype.updateMyActiveCart=function(e){return a(this,void 0,void 0,(function(){var t;return i(this,(function(r){switch(r.label){case 0:return[4,this.getMyActiveCart(e)];case 1:return t=r.sent(),[2,this.request(s(s({},this.extractCommonRequestOptions(e)),{path:this.applyStore("/me/carts/".concat(t.id),e.storeKey),method:"POST",data:{version:t.version,actions:e.actions},accessToken:e.accessToken}))]}}))}))},e.prototype.createMyOrderFromActiveCart=function(e){return a(this,void 0,void 0,(function(){var t;return i(this,(function(r){switch(r.label){case 0:return[4,this.getMyActiveCart(e)];case 1:return t=r.sent(),[2,this.request(s(s({},this.extractCommonRequestOptions(e)),{path:this.applyStore("/me/orders",e.storeKey),method:"POST",data:{version:t.version,id:t.id},accessToken:e.accessToken}))]}}))}))},e.prototype.deleteCartById=function(e){return a(this,void 0,void 0,(function(){return i(this,(function(t){switch(t.label){case 0:return[4,this.request(s(s({},this.extractCommonRequestOptions(e)),{path:this.applyStore("/carts/".concat(e.id),e.storeKey),method:"DELETE",params:s(s({},e.params),{version:e.version})}))];case 1:return[2,t.sent()]}}))}))},e.prototype.createPayment=function(e){return this.request(s(s({},this.extractCommonRequestOptions(e)),{path:"/payments",method:"POST",data:e.data}))},e.prototype.deletePaymentById=function(e){return this.request(s(s({},this.extractCommonRequestOptions(e)),{path:"/payments/".concat(e.id),method:"DELETE",params:s(s({},e.params),{version:e.version})}))},e.prototype.updatePaymentById=function(e){return this.request(s(s({},this.extractCommonRequestOptions(e)),{path:"/payments/".concat(e.id),method:"POST",data:e.data}))},e.prototype.getPaymentById=function(e){return this.request(s(s({},this.extractCommonRequestOptions(e)),{path:"/payments/".concat(e.id),method:"GET"}))},e.prototype.queryPayments=function(e){return this.request(s(s({},this.extractCommonRequestOptions(e)),{path:"/payments",method:"GET"}))},e.prototype.createMyPayment=function(e){return this.request(s(s({},this.extractCommonRequestOptions(e)),{path:"/me/payments",method:"POST",data:e.data,accessToken:e.accessToken}))},e.prototype.updateMyPaymentById=function(e){return this.request(s(s({},this.extractCommonRequestOptions(e)),{path:"/me/payments/".concat(e.id),method:"POST",data:e.data,accessToken:e.accessToken}))},e.prototype.getMyPaymentById=function(e){return this.request(s(s({},this.extractCommonRequestOptions(e)),{path:"/me/payments/".concat(e.id),method:"GET",accessToken:e.accessToken}))},e.prototype.queryMyPayments=function(e){return this.request(s(s({},this.extractCommonRequestOptions(e)),{path:"/me/payments",method:"GET",accessToken:e.accessToken}))},e.prototype.getMyOrderById=function(e){return this.request(s(s({},this.extractCommonRequestOptions(e)),{path:this.applyStore("/me/orders/".concat(e.id),e.storeKey),method:"GET",accessToken:e.accessToken}))},e.prototype.queryMyOrders=function(e){return this.request(s(s({},this.extractCommonRequestOptions(e)),{path:this.applyStore("/me/orders",e.storeKey),method:"GET",accessToken:e.accessToken}))},e.prototype.updateOrderById=function(e){return this.request(s(s({},this.extractCommonRequestOptions(e)),{path:this.applyStore("/orders/".concat(e.id),e.storeKey),method:"POST",data:e.data}))},e.prototype.updateOrderByOrderNumber=function(e){return this.request(s(s({},this.extractCommonRequestOptions(e)),{path:this.applyStore("/orders/order-number=".concat(e.orderNumber),e.storeKey),method:"POST",data:e.data}))},e.prototype.getOrderById=function(e){return this.request(s(s({},this.extractCommonRequestOptions(e)),{path:this.applyStore("/orders/".concat(e.id),e.storeKey),method:"GET"}))},e.prototype.getOrderByOrderNumber=function(e){return this.request(s(s({},this.extractCommonRequestOptions(e)),{path:this.applyStore("/orders/order-number=".concat(e.orderNumber),e.storeKey),method:"GET"}))},e.prototype.deleteOrderById=function(e){return this.request(s(s({},this.extractCommonRequestOptions(e)),{path:this.applyStore("/orders/".concat(e.id),e.storeKey),method:"DELETE",params:s(s({},e.params),{version:e.version,dataErasure:e.dataErasure})}))},e.prototype.deleteOrderByOrderNumber=function(e){return this.request(s(s({},this.extractCommonRequestOptions(e)),{path:this.applyStore("/orders/order-number=".concat(e.orderNo),e.storeKey),method:"DELETE",params:s(s({},e.params),{version:e.version,dataErasure:e.dataErasure})}))},e.prototype.queryOrders=function(e){return this.request(s(s({},this.extractCommonRequestOptions(e)),{path:this.applyStore("/orders",e.storeKey),method:"GET"}))},e.prototype.createProduct=function(e){return this.request(s(s({},this.extractCommonRequestOptions(e)),{path:"/products",method:"POST",data:e.data}))},e.prototype.updateProductByKey=function(e){return this.request(s(s({},this.extractCommonRequestOptions(e)),{path:"/products/key=".concat(e.key),method:"POST",data:e.data}))},e.prototype.updateProductById=function(e){return this.request(s(s({},this.extractCommonRequestOptions(e)),{path:"/products/".concat(e.id),method:"POST",data:e.data}))},e.prototype.deleteProductById=function(e){return a(this,void 0,void 0,(function(){var t,r;return i(this,(function(a){switch(a.label){case 0:return t=e.version,e.unpublish?[4,this.unpublishProductById({id:e.id,version:e.version})]:[3,2];case 1:r=a.sent(),t=r.version,a.label=2;case 2:return[2,this.request(s(s({},this.extractCommonRequestOptions(e)),{path:"/products/".concat(e.id),method:"DELETE",params:s(s({},e.params),{version:t})}))]}}))}))},e.prototype.deleteProductByKey=function(e){return a(this,void 0,void 0,(function(){var t,r;return i(this,(function(a){switch(a.label){case 0:return t=e.version,e.unpublish?[4,this.unpublishProductByKey({key:e.key,version:e.version})]:[3,2];case 1:r=a.sent(),t=r.version,a.label=2;case 2:return[2,this.request(s(s({},this.extractCommonRequestOptions(e)),{path:"/products/key=".concat(e.key),method:"DELETE",params:s(s({},e.params),{version:t})}))]}}))}))},e.prototype.unpublishProductByKey=function(e){return this.request(s(s({},this.extractCommonRequestOptions(e)),{path:"/products/key=".concat(e.key),method:"POST",params:e.params,data:{version:e.version,actions:[{action:"unpublish"}]}}))},e.prototype.unpublishProductById=function(e){return this.request(s(s({},this.extractCommonRequestOptions(e)),{path:"/products/".concat(e.id),method:"POST",params:e.params,data:{version:e.version,actions:[{action:"unpublish"}]}}))},e.prototype.createCategory=function(e){return this.request({path:"/categories",method:"POST",data:e.data})},e.prototype.updateCategoryByKey=function(e){return this.request({path:"/categories/key=".concat(e.key),method:"POST",data:e.data})},e.prototype.updateCategoryById=function(e){return this.request(s(s({},this.extractCommonRequestOptions(e)),{path:"/categories/".concat(e.id),method:"POST",data:e.data}))},e.prototype.deleteCategoryById=function(e){return this.request(s(s({},this.extractCommonRequestOptions(e)),{path:"/categories/".concat(e.id),method:"DELETE",params:s(s({},e.params),{version:e.version})}))},e.prototype.deleteCategoryByKey=function(e){return this.request(s(s({},this.extractCommonRequestOptions(e)),{path:"/categories/key=".concat(e.key),method:"DELETE",params:s(s({},e.params),{version:e.version})}))},e.prototype.createAccount=function(e){return this.request(s(s({},this.extractCommonRequestOptions(e)),{path:this.applyStore("/customers",e.storeKey),method:"POST",data:e.data}))},e.prototype.deleteCustomerById=function(e){return this.request(s(s({},this.extractCommonRequestOptions(e)),{path:this.applyStore("/customers/".concat(e.id),e.storeKey),method:"DELETE",params:s(s({},e.params),{version:e.version,dataErasure:e.dataErasure})}))},e.prototype.deleteCustomerByKey=function(e){return this.request(s(s({},this.extractCommonRequestOptions(e)),{path:this.applyStore("/customers/key=".concat(e.key),e.storeKey),method:"DELETE",params:s(s({},e.params),{version:e.version,dataErasure:e.dataErasure})}))},e.prototype.createMyAccount=function(e){return this.request(s(s({},this.extractCommonRequestOptions(e)),{path:this.applyStore("/me/signup",e.storeKey),method:"POST",data:e.data,accessToken:e.accessToken}))},e.prototype.loginMyAccount=function(e){return this.request(s(s({},this.extractCommonRequestOptions(e)),{path:this.applyStore("/me/login",e.storeKey),method:"POST",data:e.data,accessToken:e.accessToken}))},e.prototype.login=function(e){return this.request(s(s({},this.extractCommonRequestOptions(e)),{path:this.applyStore("/login",e.storeKey),method:"POST",data:e.data}))},e.prototype.getMyAccount=function(e){return this.request(s(s({},this.extractCommonRequestOptions(e)),{path:this.applyStore("/me",e.storeKey),method:"GET",accessToken:e.accessToken}))},e.prototype.updateMyAccount=function(e){return this.request(s(s({},this.extractCommonRequestOptions(e)),{path:this.applyStore("/me",e.storeKey),method:"POST",accessToken:e.accessToken,data:e.data}))},e.prototype.changeMyPassword=function(e){return this.request(s(s({},this.extractCommonRequestOptions(e)),{path:this.applyStore("/me/password",e.storeKey),method:"POST",accessToken:e.accessToken,data:e.data}))},e.prototype.resetMyPassword=function(e){return this.request(s(s({},this.extractCommonRequestOptions(e)),{path:this.applyStore("/me/password/reset",e.storeKey),method:"POST",accessToken:e.accessToken,data:e.data}))},e.prototype.getPasswordResetToken=function(e){return this.request(s(s({},this.extractCommonRequestOptions(e)),{path:this.applyStore("/customers/password-token",e.storeKey),method:"POST",data:e.data}))},e.prototype.getCustomerById=function(e){return this.request(s(s({},this.extractCommonRequestOptions(e)),{path:this.applyStore("/customers/".concat(e.id),e.storeKey),method:"GET"}))},e.prototype.getCustomerByKey=function(e){return this.request(s(s({},this.extractCommonRequestOptions(e)),{path:this.applyStore("/customers/key=".concat(e.key),e.storeKey),method:"GET"}))},e.prototype.getCustomerByPasswordToken=function(e){return this.request(s(s({},this.extractCommonRequestOptions(e)),{path:this.applyStore("/customers/password-token=".concat(e.token),e.storeKey),method:"GET"}))},e.prototype.queryCustomers=function(e){return this.request(s(s({},this.extractCommonRequestOptions(e)),{path:this.applyStore("/customers",e.storeKey),method:"GET"}))},e.prototype.updateCustomerById=function(e){return this.request(s(s({},this.extractCommonRequestOptions(e)),{path:"/customers/".concat(e.id),method:"POST",data:e.data}))},e.prototype.updateCustomerByKey=function(e){return this.request(s(s({},this.extractCommonRequestOptions(e)),{path:"/customers/key=".concat(e.key),method:"POST",data:e.data}))},e.prototype.getProductTypeById=function(e){return this.request(s(s({},this.extractCommonRequestOptions(e)),{path:"/product-types/".concat(e.id),method:"GET"}))},e.prototype.getProductTypeByKey=function(e){return this.request(s(s({},this.extractCommonRequestOptions(e)),{path:"/product-types/key=".concat(e.key),method:"GET"}))},e.prototype.getTypeById=function(e){return this.request(s(s({},this.extractCommonRequestOptions(e)),{path:"/types/".concat(e.id),method:"GET"}))},e.prototype.getTypeByKey=function(e){return this.request(s(s({},this.extractCommonRequestOptions(e)),{path:"/types/key=".concat(e.key),method:"GET"}))},e.prototype.getDiscountCodeById=function(e){return this.request(s(s({},this.extractCommonRequestOptions(e)),{path:"/discount-codes/".concat(e.id),method:"GET"}))},e.prototype.getCartDiscountById=function(e){return this.request(s(s({},this.extractCommonRequestOptions(e)),{path:"/cart-discounts/".concat(e.id),method:"GET"}))},e.prototype.getCartDiscountByKey=function(e){return this.request(s(s({},this.extractCommonRequestOptions(e)),{path:"/cart-discounts/key=".concat(e.key),method:"GET"}))},e.prototype.queryCartDiscounts=function(e){return this.request(s(s({},this.extractCommonRequestOptions(e)),{path:"/cart-discounts",method:"GET"}))},e.prototype.getCustomObject=function(e){return this.request(s(s({},this.extractCommonRequestOptions(e)),{path:"/custom-objects/".concat(e.container,"/").concat(e.key),method:"GET"}))},e.prototype.getCustomObjectById=function(e){return this.request(s(s({},this.extractCommonRequestOptions(e)),{path:"/custom-objects/".concat(e.id),method:"GET"}))},e.prototype.saveCustomObject=function(e){return this.request(s(s({},this.extractCommonRequestOptions(e)),{path:"/custom-objects",method:"POST",data:e.data}))},e.prototype.deleteCustomObject=function(e){return this.request(s(s({},this.extractCommonRequestOptions(e)),{path:"/custom-objects/".concat(e.container,"/").concat(e.key),method:"DELETE"}))},e.prototype.getShippingMethodById=function(e){return this.request(s(s({},this.extractCommonRequestOptions(e)),{path:"/shipping-methods/".concat(e.id),method:"GET"}))},e.prototype.getShippingMethodByKey=function(e){return this.request(s(s({},this.extractCommonRequestOptions(e)),{path:"/shipping-methods/key=".concat(e.key),method:"GET"}))},e.prototype.getShippingMethodsForLocation=function(e){return this.request(s(s({},this.extractCommonRequestOptions(s(s({},e),{params:s(s({},null==e?void 0:e.params),{country:e.country,state:e.state,currency:e.currency})}))),{path:"/shipping-methods/matching-location",method:"GET",accessToken:e.accessToken}))},e.prototype.getShippingMethodsForCart=function(e){return this.request(s(s({},this.extractCommonRequestOptions(s(s({},e),{params:s(s({},null==e?void 0:e.params),{cartId:e.cartId})}))),{path:"/shipping-methods/matching-cart",method:"GET",accessToken:e.accessToken}))},e.prototype.queryShippingMethods=function(e){return this.request(s(s({},this.extractCommonRequestOptions(e)),{path:"/shipping-methods",method:"GET"}))},e.prototype.getCustomerGroupById=function(e){return this.request(s(s({},this.extractCommonRequestOptions(e)),{path:"/customer-groups/".concat(e.id),method:"GET"}))},e.prototype.getCustomerGroupByKey=function(e){return this.request(s(s({},this.extractCommonRequestOptions(e)),{path:"/customer-groups/key=".concat(e.key),method:"GET"}))},e.prototype.queryCustomerGroups=function(e){return this.request(s(s({},this.extractCommonRequestOptions(e)),{path:"/customer-groups",method:"GET"}))},e.prototype.createCustomerGroup=function(e){return this.request({path:"/customer-groups",method:"POST",data:e.data})},e.prototype.updateCustomerGroupByKey=function(e){return this.request({path:"/customer-groups/key=".concat(e.key),method:"POST",data:e.data})},e.prototype.updateCustomerGroupById=function(e){return this.request(s(s({},this.extractCommonRequestOptions(e)),{path:"/customer-groups/".concat(e.id),method:"POST",data:e.data}))},e.prototype.deleteCustomerGroupById=function(e){return this.request(s(s({},this.extractCommonRequestOptions(e)),{path:"/customer-groups/".concat(e.id),method:"DELETE",params:s(s({},e.params),{version:e.version})}))},e.prototype.deleteCustomerGroupByKey=function(e){return this.request(s(s({},this.extractCommonRequestOptions(e)),{path:"/customer-groups/key=".concat(e.key),method:"DELETE",params:s(s({},e.params),{version:e.version})}))},e.prototype.graphql=function(e){return this.request(s(s({},this.extractCommonRequestOptions(e)),{path:"/graphql",method:"POST",data:e.data,accessToken:e.accessToken}))},e.prototype.request=function(e){return a(this,void 0,void 0,(function(){var t,r,s,a,o,n,u;return i(this,(function(h){switch(h.label){case 0:return[4,this.getRequestOptions(e)];case 1:t=h.sent(),r=this.getRetryConfig(e.retry),s=0,o=function(){var e,o;return i(this,(function(i){switch(i.label){case 0:return s>0?(e=n.calculateDelay(s,r),[4,new Promise((function(t){return setTimeout(t,e)}))]):[3,2];case 1:i.sent(),i.label=2;case 2:return i.trys.push([2,4,,5]),[4,n.axios(t)];case 3:return[2,{value:i.sent().data}];case 4:if(o=i.sent(),!n.isRetryableError(o))throw n.transformError(o);return a=o,[3,5];case 5:return s++,[2]}}))},n=this,h.label=2;case 2:return[5,o()];case 3:if("object"==typeof(u=h.sent()))return[2,u.value];h.label=4;case 4:if(s<=r.maxRetries)return[3,2];h.label=5;case 5:throw this.transformError(a)}}))}))},e.prototype.getRetryConfig=function(e){return e||this.retry},e.prototype.getRequestOptions=function(e){return a(this,void 0,void 0,(function(){var t,r,a,o,n;return i(this,(function(i){switch(i.label){case 0:return t=e.accessToken,r="".concat(this.endpoints.api,"/").concat(this.config.projectKey).concat(e.path),(a=s({},e)).path&&delete a.path,a.accessToken&&delete a.accessToken,t?[3,2]:[4,this.auth.getClientGrant()];case 1:o=i.sent(),t=o.accessToken,i.label=2;case 2:return n=s(s(s({},this.axios.defaults.headers),{Authorization:"Bearer ".concat(t)}),a.headers),"string"==typeof e.correlationId&&""!==e.correlationId&&(n["X-Correlation-ID"]=e.correlationId,delete e.correlationId),[2,s(s({},a),{url:r,headers:n})]}}))}))},e.prototype.calculateDelay=function(e,t){if(!t||0===e)return 0;var r=t.delayMs*Math.pow(2,e-1);if(t.jitter){var s=r*(1+1/(e+1));return Math.floor(Math.random()*s)}return r},e.prototype.isRetryableError=function(e){return!e.isAxiosError||!e.request||!e.response||y.includes(e.response.status)},e.prototype.extractCommonRequestOptions=function(e){return e?{correlationId:e.correlationId,params:e.params,retry:e.retry}:{}},e.prototype.applyStore=function(e,t){return"string"==typeof t&&""!==t?"/in-store/key=".concat(t).concat(e):this.config.storeKey?"/in-store/key=".concat(this.config.storeKey).concat(e):e},e.prototype.transformError=function(e){return e.isAxiosError?c.CommercetoolsError.fromAxiosError(e):e},e.validateConfig=function(e){var t=[];if(e?(e.projectKey?"string"!=typeof e.projectKey&&t.push("The `projectKey` property must be a string"):t.push("The `projectKey` property is empty"),e.clientId?"string"!=typeof e.clientId&&t.push("The `clientId` property must be a string"):t.push("The `clientId` property is empty"),e.clientSecret?"string"!=typeof e.clientSecret&&t.push("The `clientSecret` property must be a string"):t.push("The `clientSecret` property is empty"),Array.isArray(e.clientScopes)?0===e.clientScopes.length&&t.push("The `clientScopes` property must have at least 1 scope defined"):t.push("The `clientScopes` property must be an array")):t.push("The config object missing or empty"),t.length)throw new c.CommercetoolsError("The configuration object passed in to the `CommercetoolsApi` constructor is not valid: \n"+t.map((function(e){return"• ".concat(e)})).join("\n"))},e}();t.CommercetoolsApi=m},3713:function(e,t,r){var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r),Object.defineProperty(e,s,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),a=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||s(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),a(r(9818),t),a(r(7013),t)},7013:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},2442:function(e,t,r){var s=this&&this.__assign||function(){return s=Object.assign||function(e){for(var t,r=1,s=arguments.length;r<s;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},s.apply(this,arguments)},a=this&&this.__awaiter||function(e,t,r,s){return new(r||(r=Promise))((function(a,i){function o(e){try{u(s.next(e))}catch(e){i(e)}}function n(e){try{u(s.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?a(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,n)}u((s=s.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var r,s,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:n(0),throw:n(1),return:n(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function n(i){return function(n){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;o;)try{if(r=1,s&&(a=2&i[0]?s.return:i[0]?s.throw||((a=s.return)&&a.call(s),0):s.next)&&!(a=a.call(s,i[1])).done)return a;switch(s=0,a&&(i=[2&i[0],a.value]),i[0]){case 0:case 1:a=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,s=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!((a=(a=o.trys).length>0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]<a[3])){o.label=i[1];break}if(6===i[0]&&o.label<a[1]){o.label=a[1],a=i;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(i);break}a[2]&&o.ops.pop(),o.trys.pop();continue}i=t.call(e,o)}catch(e){i=[6,e],s=0}finally{r=a=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,n])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.CommercetoolsAuth=void 0;var o=r(2915),n=r(8003),u=r(3032),h={refreshIfWithinSecs:1800,timeoutMs:5e3},c=function(){function e(e){if(this.grantPromise=Promise.resolve(),this.config=s(s({},h),e),!this.config.clientScopes.length)throw new o.CommercetoolsError("`config.clientScopes` must contain at least one scope");this.api=new u.CommercetoolsAuthApi(e)}return e.prototype.getClientGrant=function(){return a(this,void 0,void 0,(function(){var e,t;return i(this,(function(r){switch(r.label){case 0:return[4,this.grantPromise];case 1:return r.sent(),this.grant&&!this.grant.expiresWithin(this.config.refreshIfWithinSecs)?[2,this.grant]:(this.grantPromise=this.api.getClientGrant(this.config.clientScopes),e=this,t=n.CommercetoolsGrant.bind,[4,this.grantPromise]);case 2:return e.grant=new(t.apply(n.CommercetoolsGrant,[void 0,r.sent()])),[2,this.grant]}}))}))},e.prototype.refreshCustomerGrant=function(e){return a(this,void 0,void 0,(function(){var t;return i(this,(function(r){switch(r.label){case 0:return[4,this.getClientGrant()];case 1:return r.sent(),[4,this.api.refreshGrant(e)];case 2:return t=r.sent(),[2,new n.CommercetoolsGrant(s(s({},t),{refresh_token:e}))]}}))}))},e.prototype.login=function(e){return a(this,void 0,void 0,(function(){var t,r;return i(this,(function(a){switch(a.label){case 0:if(!(t=e.scopes||this.config.customerScopes))throw new o.CommercetoolsError("Customer scopes must be set on either the `options` parameter of this `login` method, or on the `customerScopes` property of the `CommercetoolsAuth` constructor");return[4,this.getClientGrant()];case 1:return a.sent(),[4,this.api.login(s(s({},e),{scopes:t}))];case 2:return r=a.sent(),[2,new n.CommercetoolsGrant(r)]}}))}))},e.prototype.getAnonymousGrant=function(e){return a(this,void 0,void 0,(function(){var t,r,s;return i(this,(function(a){switch(a.label){case 0:if(t=(null==e?void 0:e.scopes)||this.config.customerScopes,r=null==e?void 0:e.anonymousId,!t)throw new o.CommercetoolsError("Customer scopes must be set on either the `options` parameter of this `login` method, or on the `customerScopes` property of the `CommercetoolsAuth` constructor");return[4,this.getClientGrant()];case 1:return a.sent(),[4,this.api.getAnonymousGrant({scopes:t,anonymousId:r})];case 2:return s=a.sent(),[2,new n.CommercetoolsGrant(s)]}}))}))},e.prototype.logout=function(e){return a(this,void 0,void 0,(function(){return i(this,(function(t){switch(t.label){case 0:return[4,this.api.logout(e)];case 1:return t.sent(),[2]}}))}))},e.prototype.revokeToken=function(e){return a(this,void 0,void 0,(function(){return i(this,(function(t){switch(t.label){case 0:return[4,this.api.revokeToken(e)];case 1:return t.sent(),[2]}}))}))},e}();t.CommercetoolsAuth=c},3032:function(e,t,r){var s=this&&this.__assign||function(){return s=Object.assign||function(e){for(var t,r=1,s=arguments.length;r<s;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},s.apply(this,arguments)},a=this&&this.__awaiter||function(e,t,r,s){return new(r||(r=Promise))((function(a,i){function o(e){try{u(s.next(e))}catch(e){i(e)}}function n(e){try{u(s.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?a(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,n)}u((s=s.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var r,s,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:n(0),throw:n(1),return:n(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function n(i){return function(n){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;o;)try{if(r=1,s&&(a=2&i[0]?s.return:i[0]?s.throw||((a=s.return)&&a.call(s),0):s.next)&&!(a=a.call(s,i[1])).done)return a;switch(s=0,a&&(i=[2&i[0],a.value]),i[0]){case 0:case 1:a=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,s=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!((a=(a=o.trys).length>0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]<a[3])){o.label=i[1];break}if(6===i[0]&&o.label<a[1]){o.label=a[1],a=i;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(i);break}a[2]&&o.ops.pop(),o.trys.pop();continue}i=t.call(e,o)}catch(e){i=[6,e],s=0}finally{r=a=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,n])}}},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CommercetoolsAuthApi=void 0;var n=r(2849),u=r(2915),h=r(7530),c=r(7111),p=r(9017),l=o(r(9669)),d=r(4060),g=r(893),y=function(){function e(e){this.config=e,this.endpoints=c.REGION_URLS[this.config.region],this.userAgent=(0,g.buildUserAgent)(this.config.systemIdentifier)}return e.prototype.getClientGrant=function(e){return a(this,void 0,void 0,(function(){return i(this,(function(t){return[2,this.post("/token",{grant_type:n.GrantType.CLIENT_CREDENTIALS,scope:(0,h.scopeArrayToRequestString)(e,this.config.projectKey)})]}))}))},e.prototype.refreshGrant=function(e){return a(this,void 0,void 0,(function(){return i(this,(function(t){switch(t.label){case 0:return[4,this.post("/token",{grant_type:n.GrantType.REFRESH_TOKEN,refresh_token:e})];case 1:return[2,t.sent()]}}))}))},e.prototype.login=function(e){return a(this,void 0,void 0,(function(){return i(this,(function(t){return[2,this.post("/".concat(this.config.projectKey).concat(this.applyStore("/customers/token",e.storeKey)),{username:e.username,password:e.password,grant_type:n.GrantType.PASSWORD,scope:(0,h.scopeArrayToRequestString)(e.scopes,this.config.projectKey)})]}))}))},e.prototype.revokeToken=function(e){return a(this,void 0,void 0,(function(){return i(this,(function(t){switch(t.label){case 0:return[4,this.post("/token/revoke",{token:e.tokenValue,token_type_hint:e.tokenType})];case 1:return t.sent(),[2]}}))}))},e.prototype.logout=function(e){return a(this,void 0,void 0,(function(){var t,r;return i(this,(function(s){switch(s.label){case 0:return[4,Promise.allSettled([this.revokeToken({tokenType:"access_token",tokenValue:e.accessToken}),this.revokeToken({tokenType:"refresh_token",tokenValue:e.refreshToken})])];case 1:if(t=s.sent(),(r=t.reduce((function(e,t){return"rejected"===t.status&&e.push(t.reason),e}),[])).length)throw new u.CommercetoolsError("Logout failed in one or more calls to the token revocation endpoint",r);return[2]}}))}))},e.prototype.getAnonymousGrant=function(e){var t;return a(this,void 0,void 0,(function(){var r;return i(this,(function(s){return r={grant_type:n.GrantType.CLIENT_CREDENTIALS},(null===(t=null==e?void 0:e.scopes)||void 0===t?void 0:t.length)&&(r.scope=(0,h.scopeArrayToRequestString)(e.scopes,this.config.projectKey)),(null==e?void 0:e.anonymousId)&&(r.anonymous_id=e.anonymousId),[2,this.post("/".concat(this.config.projectKey,"/anonymous/token"),r)]}))}))},e.prototype.post=function(e,t){return a(this,void 0,void 0,(function(){var r,a,o;return i(this,(function(i){switch(i.label){case 0:r={url:"".concat(this.endpoints.auth,"/oauth").concat(e),method:"POST",data:new URLSearchParams(t).toString()},a={Authorization:"Basic ".concat((0,p.base64EncodeForBasicAuth)(this.config.clientId,this.config.clientSecret)),"Content-Type":"application/x-www-form-urlencoded"},i.label=1;case 1:return i.trys.push([1,3,,4]),[4,(0,l.default)(s(s({},r),{headers:a,timeout:this.config.timeoutMs||d.DEFAULT_REQUEST_TIMEOUT_MS}))];case 2:return[2,i.sent().data];case 3:if((o=i.sent()).isAxiosError)throw u.CommercetoolsError.fromAxiosError(o);throw o;case 4:return[2]}}))}))},e.prototype.applyStore=function(e,t){return"string"==typeof t&&""!==t?"/in-store/key=".concat(t).concat(e):this.config.storeKey?"/in-store/key=".concat(this.config.storeKey).concat(e):e},e}();t.CommercetoolsAuthApi=y},8003:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CommercetoolsGrant=void 0;var s=r(7530),a=function(){function e(e){this.accessToken="",this.expiresIn=0,this.expiresAt=new Date,this.scopes=[],this.accessToken=e.access_token,this.expiresIn=e.expires_in,this.scopes=(0,s.scopeRequestStringToArray)(e.scope),this.anonymousId=this.extractKeyFromScope("anonymous_id",e.scope),this.customerId=this.extractKeyFromScope("customer_id",e.scope),this.expiresAt=new Date((new Date).getTime()+1e3*e.expires_in),"refresh_token"in e&&e.refresh_token&&(this.refreshToken=e.refresh_token)}return e.prototype.expiresWithin=function(e){var t=(new Date).getTime()+1e3*e;return this.expiresAt.getTime()<t},e.prototype.extractKeyFromScope=function(e,t){if(t&&e){var r=null==t?void 0:t.split(" ");if(Array.isArray(r)&&0!==r.length){var s=r.find((function(t){return t.slice(0,e.length+1)==="".concat(e,":")}));return s?s.slice(e.length+1):void 0}}},e}();t.CommercetoolsGrant=a},7111:(e,t,r)=>{var s;Object.defineProperty(t,"__esModule",{value:!0}),t.INVALID_SCOPES=t.REGION_URLS=void 0;var a=r(9291);t.REGION_URLS=((s={})[a.Region.EUROPE_GCP]={auth:"https://auth.europe-west1.gcp.commercetools.com",api:"https://api.europe-west1.gcp.commercetools.com"},s[a.Region.EUROPE_AWS]={auth:"https://auth.eu-central-1.aws.commercetools.com",api:"https://api.eu-central-1.aws.commercetools.com"},s[a.Region.NORTH_AMERICA_GCP]={auth:"https://auth.us-central1.gcp.commercetools.com",api:"https://api.us-central1.gcp.commercetools.com"},s[a.Region.NORTH_AMERICA_AWS]={auth:"https://auth.us-east-2.aws.commercetools.com",api:"https://api.us-east-2.aws.commercetools.com"},s[a.Region.AUSTRALIA_GCP]={auth:"https://auth.australia-southeast1.gcp.commercetools.com",api:"https://api.australia-southeast1.gcp.commercetools.com"},s),t.INVALID_SCOPES=["anonymous_id","customer_id"]},7443:function(e,t,r){var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r),Object.defineProperty(e,s,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),a=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||s(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),a(r(2442),t),a(r(8003),t)},7530:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.scopeRequestStringToArray=t.scopeArrayToRequestString=void 0;var s=r(7111);t.scopeArrayToRequestString=function(e,t){return e?e.map((function(e){return"".concat(e,":").concat(t)})).join(" "):""},t.scopeRequestStringToArray=function(e){return e?e.split(" ").map((function(e){return e.split(":")[0]})).filter((function(e){return!s.INVALID_SCOPES.includes(e)})):[]}},2849:(e,t)=>{var r;Object.defineProperty(t,"__esModule",{value:!0}),t.GrantType=void 0,(r=t.GrantType||(t.GrantType={})).CLIENT_CREDENTIALS="client_credentials",r.REFRESH_TOKEN="refresh_token",r.PASSWORD="password"},9017:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.base64EncodeForBasicAuth=void 0,t.base64EncodeForBasicAuth=function(e,t){var r="".concat(e,":").concat(t);return btoa(r)}},4060:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_REQUEST_TIMEOUT_MS=void 0,t.DEFAULT_REQUEST_TIMEOUT_MS=5e3},6781:function(e,t,r){var s,a=this&&this.__extends||(s=function(e,t){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},s(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}s(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CommercetoolsError=void 0;var o=i(r(4530)),n=r(893),u=function(e){function t(r,s,a){var i=e.call(this,r)||this;return i.isCommercetoolsError=!0,i.data=s,i.status=a,Object.setPrototypeOf(i,t.prototype),i}return a(t,e),t.fromAxiosError=function(e){var r,s,a,i,o,u,h,c;return new t(e.message,{code:e.code,request:{url:null===(r=e.config)||void 0===r?void 0:r.url,method:null===(s=e.config)||void 0===s?void 0:s.method,headers:(0,n.maskSensitiveHeaders)(null===(a=e.config)||void 0===a?void 0:a.headers),params:(0,n.maskSensitiveInput)(null===(i=e.config)||void 0===i?void 0:i.params),data:(0,n.maskSensitiveInput)(this.parseRequestData(e.config))},response:{status:null===(o=e.response)||void 0===o?void 0:o.status,data:(0,n.maskSensitiveInput)(null===(u=e.response)||void 0===u?void 0:u.data),headers:null===(h=e.response)||void 0===h?void 0:h.headers}},null===(c=e.response)||void 0===c?void 0:c.status)},t.parseRequestData=function(e){var t,r,s=null==e?void 0:e.data;if("string"==typeof s&&s){var a="";if("string"==typeof(null===(t=null==e?void 0:e.headers)||void 0===t?void 0:t["Content-Type"])&&(a=null===(r=null==e?void 0:e.headers)||void 0===r?void 0:r["Content-Type"]),"application/json"===a.substring(0,16))try{s=JSON.parse(e.data)}catch(e){}else if("application/x-www-form-urlencoded"===a.substring(0,33))try{var i=new URLSearchParams(e.data),o={};i.forEach((function(e,t,r){var s=r.getAll(t);0===s.length?o[t]="":1===s.length?o[t]=s[0]:o[t]=s})),s=o}catch(e){}}return s},t.prototype.toJSON=function(){return{status:this.status,message:this.message,data:this.data,isCommercetoolsError:!0}},t.prototype.toString=function(){return(0,o.default)(this.toJSON())},t}(Error);t.CommercetoolsError=u},3028:function(e,t,r){var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r),Object.defineProperty(e,s,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),a=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||s(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),a(r(6781),t)},2915:function(e,t,r){var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r),Object.defineProperty(e,s,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),a=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||s(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.Region=void 0,a(r(3028),t),a(r(7443),t),a(r(3713),t);var i=r(9291);Object.defineProperty(t,"Region",{enumerable:!0,get:function(){return i.Region}}),a(r(893),t),a(r(3037),t)},9291:(e,t)=>{var r;Object.defineProperty(t,"__esModule",{value:!0}),t.Region=void 0,(r=t.Region||(t.Region={})).NORTH_AMERICA_GCP="north_america_gcp",r.NORTH_AMERICA_AWS="north_america_aws",r.EUROPE_GCP="europe_gcp",r.EUROPE_AWS="europe_aws",r.AUSTRALIA_GCP="australia_gcp"},3930:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.formatAsKey=void 0;var s=r(3028);t.formatAsKey=function(e){var t="";if("string"!=typeof e)throw new s.CommercetoolsError("The [input] parameter must be a string");if((t=(t=(t=(t=(t=(t=e.trim().toLowerCase()).replace(/ {2,}/g,"")).replace(/&/g,"and")).replace(/[ _]/g,"-")).replace(/[^0-9a-z-]+/g,"")).replace(/-{2,}/g,"-")).length&&"-"===t[0]&&(t=t.slice(1)),t.length&&"-"===t[t.length-1]&&(t=t.slice(0,-1)),t.length<2)throw new s.CommercetoolsError("Formatted key did not meet minimum length of 2 characters: ".concat(t));if(t.length>256)throw new s.CommercetoolsError("Formatted key exceeds the maximum length of 256 characters: ".concat(t));return t}},893:function(e,t,r){var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r),Object.defineProperty(e,s,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),a=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||s(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),a(r(3930),t),a(r(3190),t),a(r(9998),t)},9998:function(e,t,r){var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.maskSensitiveData=t.maskSensitiveHeaders=t.maskSensitiveInput=t.DEFAULT_MASKING_STRING=t.SENSITIVE_HEADER_NAMES=t.SENSITIVE_PROPERTY_NAMES=void 0;var a=s(r(3465)),i=s(r(3692));function o(e,r,s){if(void 0===s&&(s=t.DEFAULT_MASKING_STRING),"object"==typeof e){var o=(0,a.default)(e);return(0,i.default)(o).forEach((function(){var e,t;r.includes(null!==(t=null===(e=this.key)||void 0===e?void 0:e.toLowerCase())&&void 0!==t?t:"")&&this.update(s)})),o}return e}t.SENSITIVE_PROPERTY_NAMES=["password","refresh_token"],t.SENSITIVE_HEADER_NAMES=["authorization"],t.DEFAULT_MASKING_STRING="********",t.maskSensitiveInput=function(e){return o(e,t.SENSITIVE_PROPERTY_NAMES)},t.maskSensitiveHeaders=function(e){return o(e,t.SENSITIVE_HEADER_NAMES)},t.maskSensitiveData=o},3190:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.buildUserAgent=void 0,t.buildUserAgent=function(e){var t="@gradientedge/commercetools-utils";return e&&(t="".concat(t," (").concat(e,")")),t}},3037:(e,t,r)=>{r.r(t),r.d(t,{ApiRoot:()=>cr,createApiBuilderFromCtpClient:()=>gr,createExecutorFromMiddlewares:()=>pr});var s=r(7673);function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i(e){return null!=e}function o(e){const t=e.pathVariables;var r=e.uriTemplate;for(const e in t)r=r.replace(`{${e}}`,`${t[e]}`);return`${r}${function(e){const t=(r=e,Object.keys(r).reduce(((e,t)=>{const s=r[t];if(Array.isArray(s)){const r=s.filter(i);return r.length?{...e,[t]:r}:e}return i(s)?{...e,[t]:s}:e}),{}));var r;const a=(0,s.stringify)(t);return""===a?"":`?${a}`}(e.queryParams||{})}`}class n{constructor(e,t){this.requestExecutor=t,a(this,"request",void 0),this.request={...e,uri:o(e)}}clientRequest(){return this.request}execute(){return this.requestExecutor(this.request)}}class u{constructor(e){this.args=e}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/api-clients/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers}},this.args.executeRequest)}delete(e){return new n({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/api-clients/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers}},this.args.executeRequest)}}class h{constructor(e){this.args=e}withId(e){return new u({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/api-clients",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/api-clients",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}}class c{constructor(e){this.args=e}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/cart-discounts/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/cart-discounts/{ID}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new n({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/cart-discounts/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class p{constructor(e){this.args=e}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/cart-discounts/key={key}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/cart-discounts/key={key}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new n({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/cart-discounts/key={key}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class l{constructor(e){this.args=e}withKey(e){return new p({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}withId(e){return new c({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/cart-discounts",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/cart-discounts",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}}class d{constructor(e){this.args=e}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/carts/replicate",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},body:null==e?void 0:e.body},this.args.executeRequest)}}class g{constructor(e){this.args=e}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/carts/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/carts/{ID}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new n({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/carts/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class y{constructor(e){this.args=e}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/carts/customer-id={customerId}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class m{constructor(e){this.args=e}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/carts/key={key}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/carts/key={key}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new n({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/carts/key={key}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class b{constructor(e){this.args=e}replicate(){return new d({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}withCustomerId(e){return new y({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}withKey(e){return new m({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}withId(e){return new g({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/carts",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/carts",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}}class f{constructor(e){this.args=e}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/categories/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/categories/{ID}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new n({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/categories/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class q{constructor(e){this.args=e}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/categories/key={key}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/categories/key={key}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new n({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/categories/key={key}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class v{constructor(e){this.args=e}withKey(e){return new q({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}withId(e){return new f({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/categories",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/categories",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}}class A{constructor(e){this.args=e}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/channels/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/channels/{ID}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new n({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/channels/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class T{constructor(e){this.args=e}withId(e){return new A({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/channels",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/channels",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}}class U{constructor(e){this.args=e}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/custom-objects/{container}/{key}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}delete(e){return new n({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/custom-objects/{container}/{key}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class x{constructor(e){this.args=e}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/custom-objects/{container}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class w{constructor(e){this.args=e}withContainerAndKey(e){return new U({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}withContainer(e){return new x({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/custom-objects",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/custom-objects",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}}class R{constructor(e){this.args=e}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/customer-groups/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/customer-groups/{ID}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new n({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/customer-groups/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class j{constructor(e){this.args=e}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/customer-groups/key={key}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/customer-groups/key={key}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new n({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/customer-groups/key={key}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class P{constructor(e){this.args=e}withKey(e){return new j({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}withId(e){return new R({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/customer-groups",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/customer-groups",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}}class E{constructor(e){this.args=e}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/customers/email/confirm",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},body:null==e?void 0:e.body},this.args.executeRequest)}}class O{constructor(e){this.args=e}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/customers/email-token",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},body:null==e?void 0:e.body},this.args.executeRequest)}}class S{constructor(e){this.args=e}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/customers/password-token",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},body:null==e?void 0:e.body},this.args.executeRequest)}}class k{constructor(e){this.args=e}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/customers/password",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},body:null==e?void 0:e.body},this.args.executeRequest)}}class K{constructor(e){this.args=e}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/customers/password/reset",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},body:null==e?void 0:e.body},this.args.executeRequest)}}class C{constructor(e){this.args=e}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/customers/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/customers/{ID}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new n({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/customers/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class V{constructor(e){this.args=e}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/customers/email-token={emailToken}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class I{constructor(e){this.args=e}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/customers/key={key}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/customers/key={key}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new n({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/customers/key={key}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class _{constructor(e){this.args=e}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/customers/password-token={passwordToken}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class D{constructor(e){this.args=e}withPasswordToken(e){return new _({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}withEmailToken(e){return new V({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}emailToken(){return new O({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}emailConfirm(){return new E({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}password(){return new k({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}passwordReset(){return new K({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}passwordToken(){return new S({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}withKey(e){return new I({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}withId(e){return new C({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/customers",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/customers",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}}class G{constructor(e){this.args=e}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/discount-codes/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/discount-codes/{ID}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new n({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/discount-codes/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class L{constructor(e){this.args=e}withId(e){return new G({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/discount-codes",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/discount-codes",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}}class N{constructor(e){this.args=e}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/extensions/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/extensions/{ID}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new n({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/extensions/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class B{constructor(e){this.args=e}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/extensions/key={key}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/extensions/key={key}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new n({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/extensions/key={key}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class M{constructor(e){this.args=e}withKey(e){return new B({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}withId(e){return new N({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/extensions",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/extensions",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}}class F{constructor(e){this.args=e}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/graphql",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/graphql",...null==e?void 0:e.headers},body:null==e?void 0:e.body},this.args.executeRequest)}}class W{constructor(e){this.args=e}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/in-store/key={storeKey}/carts/replicate",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},body:null==e?void 0:e.body},this.args.executeRequest)}}class H{constructor(e){this.args=e}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/in-store/key={storeKey}/carts/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/in-store/key={storeKey}/carts/{ID}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new n({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/in-store/key={storeKey}/carts/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class z{constructor(e){this.args=e}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/in-store/key={storeKey}/carts/customer-id={customerId}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class ${constructor(e){this.args=e}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/in-store/key={storeKey}/carts/key={key}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/in-store/key={storeKey}/carts/key={key}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new n({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/in-store/key={storeKey}/carts/key={key}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class J{constructor(e){this.args=e}withCustomerId(e){return new z({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}withKey(e){return new $({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}replicate(){return new W({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}withId(e){return new H({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/in-store/key={storeKey}/carts",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/in-store/key={storeKey}/carts",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}}class Q{constructor(e){this.args=e}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/in-store/key={storeKey}/customers/email/confirm",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},body:null==e?void 0:e.body},this.args.executeRequest)}}class X{constructor(e){this.args=e}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/in-store/key={storeKey}/customers/email-token",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},body:null==e?void 0:e.body},this.args.executeRequest)}}class Y{constructor(e){this.args=e}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/in-store/key={storeKey}/customers/password-token",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},body:null==e?void 0:e.body},this.args.executeRequest)}}class Z{constructor(e){this.args=e}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/in-store/key={storeKey}/customers/password",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},body:null==e?void 0:e.body},this.args.executeRequest)}}class ee{constructor(e){this.args=e}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/in-store/key={storeKey}/customers/password/reset",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},body:null==e?void 0:e.body},this.args.executeRequest)}}class te{constructor(e){this.args=e}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/in-store/key={storeKey}/customers/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/in-store/key={storeKey}/customers/{ID}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new n({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/in-store/key={storeKey}/customers/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class re{constructor(e){this.args=e}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/in-store/key={storeKey}/customers/email-token={emailToken}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class se{constructor(e){this.args=e}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/in-store/key={storeKey}/customers/key={key}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/in-store/key={storeKey}/customers/key={key}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new n({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/in-store/key={storeKey}/customers/key={key}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class ae{constructor(e){this.args=e}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/in-store/key={storeKey}/customers/password-token={passwordToken}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class ie{constructor(e){this.args=e}withPasswordToken(e){return new ae({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}withEmailToken(e){return new re({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}emailToken(){return new X({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}emailConfirm(){return new Q({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}password(){return new Z({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}passwordReset(){return new ee({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}passwordToken(){return new Y({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}withKey(e){return new se({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}withId(e){return new te({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/in-store/key={storeKey}/customers",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/in-store/key={storeKey}/customers",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}}class oe{constructor(e){this.args=e}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/in-store/key={storeKey}/login",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},body:null==e?void 0:e.body},this.args.executeRequest)}}class ne{constructor(e){this.args=e}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/in-store/key={storeKey}/me/active-cart",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers}},this.args.executeRequest)}}class ue{constructor(e){this.args=e}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/in-store/key={storeKey}/me/carts/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/in-store/key={storeKey}/me/carts/{ID}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new n({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/in-store/key={storeKey}/me/carts/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class he{constructor(e){this.args=e}withId(e){return new ue({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/in-store/key={storeKey}/me/carts",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/in-store/key={storeKey}/me/carts",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}}class ce{constructor(e){this.args=e}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/in-store/key={storeKey}/me/orders/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class pe{constructor(e){this.args=e}withId(e){return new ce({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/in-store/key={storeKey}/me/orders",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/in-store/key={storeKey}/me/orders",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}}class le{constructor(e){this.args=e}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/in-store/key={storeKey}/me/shopping-lists/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/in-store/key={storeKey}/me/shopping-lists/{ID}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new n({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/in-store/key={storeKey}/me/shopping-lists/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class de{constructor(e){this.args=e}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/in-store/key={storeKey}/me/shopping-lists/key={key}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/in-store/key={storeKey}/me/shopping-lists/key={key}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new n({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/in-store/key={storeKey}/me/shopping-lists/key={key}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class ge{constructor(e){this.args=e}withKey(e){return new de({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}withId(e){return new le({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/in-store/key={storeKey}/me/shopping-lists",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/in-store/key={storeKey}/me/shopping-lists",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}}class ye{constructor(e){this.args=e}carts(){return new he({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}orders(){return new pe({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}activeCart(){return new ne({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}shoppingLists(){return new ge({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}}class me{constructor(e){this.args=e}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/in-store/key={storeKey}/orders/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/in-store/key={storeKey}/orders/{ID}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new n({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/in-store/key={storeKey}/orders/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class be{constructor(e){this.args=e}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/in-store/key={storeKey}/orders/order-number={orderNumber}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/in-store/key={storeKey}/orders/order-number={orderNumber}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new n({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/in-store/key={storeKey}/orders/order-number={orderNumber}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class fe{constructor(e){this.args=e}withOrderNumber(e){return new be({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}withId(e){return new me({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/in-store/key={storeKey}/orders",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/in-store/key={storeKey}/orders",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}}class qe{constructor(e){this.args=e}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/in-store/key={storeKey}/product-projections/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class ve{constructor(e){this.args=e}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/in-store/key={storeKey}/product-projections/key={key}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class Ae{constructor(e){this.args=e}withKey(e){return new ve({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}withId(e){return new qe({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/in-store/key={storeKey}/product-projections",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class Te{constructor(e){this.args=e}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/in-store/key={storeKey}/product-selection-assignments",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers}},this.args.executeRequest)}}class Ue{constructor(e){this.args=e}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/in-store/key={storeKey}/shipping-methods/matching-cart",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class xe{constructor(e){this.args=e}matchingCart(){return new Ue({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}}class we{constructor(e){this.args=e}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/in-store/key={storeKey}/shopping-lists/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/in-store/key={storeKey}/shopping-lists/{ID}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new n({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/in-store/key={storeKey}/shopping-lists/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class Re{constructor(e){this.args=e}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/in-store/key={storeKey}/shopping-lists/key={key}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/in-store/key={storeKey}/shopping-lists/key={key}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new n({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/in-store/key={storeKey}/shopping-lists/key={key}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class je{constructor(e){this.args=e}withKey(e){return new Re({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}withId(e){return new we({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/in-store/key={storeKey}/shopping-lists",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/in-store/key={storeKey}/shopping-lists",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}}class Pe{constructor(e){this.args=e}carts(){return new J({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}orders(){return new fe({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}me(){return new ye({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}customers(){return new ie({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}login(){return new oe({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}shippingMethods(){return new xe({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}shoppingLists(){return new je({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}productProjections(){return new Ae({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}productSelectionAssignments(){return new Te({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}}class Ee{constructor(e){this.args=e}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/inventory/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/inventory/{ID}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new n({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/inventory/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class Oe{constructor(e){this.args=e}withId(e){return new Ee({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/inventory",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/inventory",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}}class Se{constructor(e){this.args=e}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/login",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},body:null==e?void 0:e.body},this.args.executeRequest)}}class ke{constructor(e){this.args=e}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/me/active-cart",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers}},this.args.executeRequest)}}class Ke{constructor(e){this.args=e}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/me/carts/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/me/carts/{ID}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new n({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/me/carts/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class Ce{constructor(e){this.args=e}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/me/carts/key={key}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/me/carts/key={key}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new n({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/me/carts/key={key}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class Ve{constructor(e){this.args=e}withKey(e){return new Ce({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}withId(e){return new Ke({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/me/carts",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/me/carts",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}}class Ie{constructor(e){this.args=e}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/me/email/confirm",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers}},this.args.executeRequest)}}class _e{constructor(e){this.args=e}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/me/login",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},body:null==e?void 0:e.body},this.args.executeRequest)}}class De{constructor(e){this.args=e}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/me/orders/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class Ge{constructor(e){this.args=e}withId(e){return new De({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/me/orders",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/me/orders",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}}class Le{constructor(e){this.args=e}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/me/password/reset",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},body:null==e?void 0:e.body},this.args.executeRequest)}}class Ne{constructor(e){this.args=e}reset(){return new Le({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/me/password",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},body:null==e?void 0:e.body},this.args.executeRequest)}}class Be{constructor(e){this.args=e}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/me/payments/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/me/payments/{ID}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new n({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/me/payments/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class Me{constructor(e){this.args=e}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/me/payments/key={key}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/me/payments/key={key}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new n({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/me/payments/key={key}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class Fe{constructor(e){this.args=e}withKey(e){return new Me({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}withId(e){return new Be({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/me/payments",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/me/payments",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}}class We{constructor(e){this.args=e}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/me/shopping-lists/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/me/shopping-lists/{ID}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new n({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/me/shopping-lists/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class He{constructor(e){this.args=e}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/me/shopping-lists/key={key}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/me/shopping-lists/key={key}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new n({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/me/shopping-lists/key={key}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class ze{constructor(e){this.args=e}withId(e){return new We({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}withKey(e){return new He({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/me/shopping-lists",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/me/shopping-lists",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}}class $e{constructor(e){this.args=e}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/me/signup",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},body:null==e?void 0:e.body},this.args.executeRequest)}}class Je{constructor(e){this.args=e}emailConfirm(){return new Ie({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}password(){return new Ne({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}signup(){return new $e({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}login(){return new _e({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}activeCart(){return new ke({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}carts(){return new Ve({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}orders(){return new Ge({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}payments(){return new Fe({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}shoppingLists(){return new ze({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/me",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/me",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new n({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/me",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class Qe{constructor(e){this.args=e}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/messages/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class Xe{constructor(e){this.args=e}withId(e){return new Qe({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/messages",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class Ye{constructor(e){this.args=e}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/orders/edits/{ID}/apply",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},body:null==e?void 0:e.body},this.args.executeRequest)}}class Ze{constructor(e){this.args=e}apply(){return new Ye({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/orders/edits/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/orders/edits/{ID}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new n({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/orders/edits/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class et{constructor(e){this.args=e}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/orders/edits/key={key}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/orders/edits/key={key}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new n({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/orders/edits/key={key}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class tt{constructor(e){this.args=e}withKey(e){return new et({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}withId(e){return new Ze({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/orders/edits",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/orders/edits",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}}class rt{constructor(e){this.args=e}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/orders/import",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},body:null==e?void 0:e.body},this.args.executeRequest)}}class st{constructor(e){this.args=e}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/orders/search",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},body:null==e?void 0:e.body},this.args.executeRequest)}head(e){return new n({baseUri:this.args.baseUri,method:"HEAD",uriTemplate:"/{projectKey}/orders/search",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers}},this.args.executeRequest)}}class at{constructor(e){this.args=e}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/orders/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/orders/{ID}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new n({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/orders/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class it{constructor(e){this.args=e}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/orders/order-number={orderNumber}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/orders/order-number={orderNumber}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new n({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/orders/order-number={orderNumber}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class ot{constructor(e){this.args=e}importOrder(){return new rt({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}withOrderNumber(e){return new it({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}edits(){return new tt({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}withId(e){return new at({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}search(){return new st({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/orders",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/orders",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}}class nt{constructor(e){this.args=e}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/payments/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/payments/{ID}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new n({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/payments/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class ut{constructor(e){this.args=e}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/payments/key={key}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/payments/key={key}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new n({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/payments/key={key}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class ht{constructor(e){this.args=e}withKey(e){return new ut({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}withId(e){return new nt({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/payments",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/payments",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}}class ct{constructor(e){this.args=e}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/product-discounts/matching",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},body:null==e?void 0:e.body},this.args.executeRequest)}}class pt{constructor(e){this.args=e}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/product-discounts/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/product-discounts/{ID}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new n({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/product-discounts/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class lt{constructor(e){this.args=e}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/product-discounts/key={key}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/product-discounts/key={key}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new n({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/product-discounts/key={key}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class dt{constructor(e){this.args=e}matching(){return new ct({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}withKey(e){return new lt({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}withId(e){return new pt({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/product-discounts",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/product-discounts",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}}class gt{constructor(e){this.args=e}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/product-projections/search",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/x-www-form-urlencoded",...null==e?void 0:e.headers},body:null==e?void 0:e.body},this.args.executeRequest)}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/product-projections/search",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class yt{constructor(e){this.args=e}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/product-projections/suggest",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class mt{constructor(e){this.args=e}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/product-projections/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class bt{constructor(e){this.args=e}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/product-projections/key={key}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class ft{constructor(e){this.args=e}search(){return new gt({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}suggest(){return new yt({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}withKey(e){return new bt({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}withId(e){return new mt({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/product-projections",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class qt{constructor(e){this.args=e}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/product-selections/{ID}/products",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class vt{constructor(e){this.args=e}products(){return new qt({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/product-selections/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/product-selections/{ID}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new n({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/product-selections/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class At{constructor(e){this.args=e}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/product-selections/key={key}/products",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class Tt{constructor(e){this.args=e}products(){return new At({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/product-selections/key={key}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/product-selections/key={key}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new n({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/product-selections/key={key}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class Ut{constructor(e){this.args=e}withKey(e){return new Tt({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}withId(e){return new vt({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/product-selections",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/product-selections",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}}class xt{constructor(e){this.args=e}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/product-types/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/product-types/{ID}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new n({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/product-types/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class wt{constructor(e){this.args=e}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/product-types/key={key}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/product-types/key={key}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new n({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/product-types/key={key}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class Rt{constructor(e){this.args=e}withKey(e){return new wt({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}withId(e){return new xt({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/product-types",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/product-types",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}}class jt{constructor(e){this.args=e}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/products/{ID}/images",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}}class Pt{constructor(e){this.args=e}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/products/{ID}/product-selections",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class Et{constructor(e){this.args=e}images(){return new jt({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}productSelections(){return new Pt({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/products/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}head(e){return new n({baseUri:this.args.baseUri,method:"HEAD",uriTemplate:"/{projectKey}/products/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers}},this.args.executeRequest)}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/products/{ID}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new n({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/products/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class Ot{constructor(e){this.args=e}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/products/key={key}/product-selections",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class St{constructor(e){this.args=e}productSelections(){return new Ot({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/products/key={key}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}head(e){return new n({baseUri:this.args.baseUri,method:"HEAD",uriTemplate:"/{projectKey}/products/key={key}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers}},this.args.executeRequest)}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/products/key={key}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new n({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/products/key={key}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class kt{constructor(e){this.args=e}withKey(e){return new St({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}withId(e){return new Et({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/products",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}head(e){return new n({baseUri:this.args.baseUri,method:"HEAD",uriTemplate:"/{projectKey}/products",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers}},this.args.executeRequest)}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/products",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}}class Kt{constructor(e){this.args=e}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/reviews/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/reviews/{ID}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new n({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/reviews/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class Ct{constructor(e){this.args=e}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/reviews/key={key}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/reviews/key={key}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new n({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/reviews/key={key}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class Vt{constructor(e){this.args=e}withKey(e){return new Ct({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}withId(e){return new Kt({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/reviews",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/reviews",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}}class It{constructor(e){this.args=e}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/shipping-methods/matching-cart",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class _t{constructor(e){this.args=e}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/shipping-methods/matching-location",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class Dt{constructor(e){this.args=e}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/shipping-methods/matching-orderedit",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class Gt{constructor(e){this.args=e}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/shipping-methods/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/shipping-methods/{ID}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new n({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/shipping-methods/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class Lt{constructor(e){this.args=e}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/shipping-methods/key={key}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/shipping-methods/key={key}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new n({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/shipping-methods/key={key}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class Nt{constructor(e){this.args=e}withKey(e){return new Lt({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}matchingCart(){return new It({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}matchingOrderedit(){return new Dt({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}matchingLocation(){return new _t({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}withId(e){return new Gt({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/shipping-methods",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/shipping-methods",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}}class Bt{constructor(e){this.args=e}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/shopping-lists/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/shopping-lists/{ID}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new n({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/shopping-lists/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class Mt{constructor(e){this.args=e}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/shopping-lists/key={key}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/shopping-lists/key={key}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new n({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/shopping-lists/key={key}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class Ft{constructor(e){this.args=e}withKey(e){return new Mt({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}withId(e){return new Bt({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/shopping-lists",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/shopping-lists",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}}class Wt{constructor(e){this.args=e}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/states/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/states/{ID}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new n({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/states/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class Ht{constructor(e){this.args=e}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/states/key={key}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/states/key={key}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new n({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/states/key={key}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class zt{constructor(e){this.args=e}withKey(e){return new Ht({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}withId(e){return new Wt({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/states",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/states",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}}class $t{constructor(e){this.args=e}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/stores/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/stores/{ID}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new n({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/stores/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class Jt{constructor(e){this.args=e}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/stores/key={key}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/stores/key={key}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new n({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/stores/key={key}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class Qt{constructor(e){this.args=e}withKey(e){return new Jt({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}withId(e){return new $t({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/stores",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/stores",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}}class Xt{constructor(e){this.args=e}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/subscriptions/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/subscriptions/{ID}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new n({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/subscriptions/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class Yt{constructor(e){this.args=e}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/subscriptions/key={key}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/subscriptions/key={key}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new n({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/subscriptions/key={key}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class Zt{constructor(e){this.args=e}withKey(e){return new Yt({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}withId(e){return new Xt({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/subscriptions",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/subscriptions",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}}class er{constructor(e){this.args=e}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/tax-categories/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/tax-categories/{ID}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new n({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/tax-categories/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class tr{constructor(e){this.args=e}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/tax-categories/key={key}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/tax-categories/key={key}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new n({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/tax-categories/key={key}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class rr{constructor(e){this.args=e}withKey(e){return new tr({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}withId(e){return new er({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/tax-categories",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/tax-categories",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}}class sr{constructor(e){this.args=e}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/types/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/types/{ID}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new n({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/types/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class ar{constructor(e){this.args=e}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/types/key={key}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/types/key={key}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new n({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/types/key={key}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class ir{constructor(e){this.args=e}withKey(e){return new ar({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}withId(e){return new sr({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/types",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/types",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}}class or{constructor(e){this.args=e}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/zones/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/zones/{ID}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new n({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/zones/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class nr{constructor(e){this.args=e}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/zones/key={key}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/zones/key={key}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new n({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/zones/key={key}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class ur{constructor(e){this.args=e}withKey(e){return new nr({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}withId(e){return new or({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/zones",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/zones",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}}class hr{constructor(e){this.args=e}categories(){return new v({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}carts(){return new b({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}cartDiscounts(){return new l({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}channels(){return new T({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}customers(){return new D({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}customerGroups(){return new P({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}customObjects(){return new w({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}discountCodes(){return new L({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}graphql(){return new F({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}inventory(){return new Oe({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}login(){return new Se({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}messages(){return new Xe({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}orders(){return new ot({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}payments(){return new ht({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}products(){return new kt({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}productDiscounts(){return new dt({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}productProjections(){return new ft({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}productSelections(){return new Ut({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}productTypes(){return new Rt({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}reviews(){return new Vt({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}shippingMethods(){return new Nt({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}shoppingLists(){return new Ft({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}states(){return new zt({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}subscriptions(){return new Zt({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}taxCategories(){return new rr({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}types(){return new ir({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}zones(){return new ur({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}me(){return new Je({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}extensions(){return new M({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}apiClients(){return new h({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}stores(){return new Qt({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}inStoreKeyWithStoreKeyValue(e){return new Pe({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}get(e){return new n({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers}},this.args.executeRequest)}post(e){return new n({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},body:null==e?void 0:e.body},this.args.executeRequest)}}class cr{constructor(e){a(this,"executeRequest",void 0),a(this,"baseUri",void 0),this.executeRequest=e.executeRequest,this.baseUri=e.baseUri||"https://api.europe-west1.gcp.commercetools.com"}withProjectKey(e){return new hr({pathArgs:{...e},executeRequest:this.executeRequest,baseUri:this.baseUri})}}const pr=(e,t)=>t&&0!=t.length?dr(t.reduce(lr),e):e;function lr(e,t){return(r,s)=>e(r,dr(t,s))}function dr(e,t){return r=>e(r,t)}function gr(e,t){return new cr({executeRequest:e.execute,baseUri:t})}},9669:(e,t,r)=>{e.exports=r(1609)},5448:(e,t,r)=>{var s=r(4867),a=r(6026),i=r(4372),o=r(5327),n=r(4097),u=r(4109),h=r(7985),c=r(5061),p=r(5655),l=r(5263);e.exports=function(e){return new Promise((function(t,r){var d,g=e.data,y=e.headers,m=e.responseType;function b(){e.cancelToken&&e.cancelToken.unsubscribe(d),e.signal&&e.signal.removeEventListener("abort",d)}s.isFormData(g)&&delete y["Content-Type"];var f=new XMLHttpRequest;if(e.auth){var q=e.auth.username||"",v=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";y.Authorization="Basic "+btoa(q+":"+v)}var A=n(e.baseURL,e.url);function T(){if(f){var s="getAllResponseHeaders"in f?u(f.getAllResponseHeaders()):null,i={data:m&&"text"!==m&&"json"!==m?f.response:f.responseText,status:f.status,statusText:f.statusText,headers:s,config:e,request:f};a((function(e){t(e),b()}),(function(e){r(e),b()}),i),f=null}}if(f.open(e.method.toUpperCase(),o(A,e.params,e.paramsSerializer),!0),f.timeout=e.timeout,"onloadend"in f?f.onloadend=T:f.onreadystatechange=function(){f&&4===f.readyState&&(0!==f.status||f.responseURL&&0===f.responseURL.indexOf("file:"))&&setTimeout(T)},f.onabort=function(){f&&(r(c("Request aborted",e,"ECONNABORTED",f)),f=null)},f.onerror=function(){r(c("Network Error",e,null,f)),f=null},f.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",s=e.transitional||p.transitional;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(c(t,e,s.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",f)),f=null},s.isStandardBrowserEnv()){var U=(e.withCredentials||h(A))&&e.xsrfCookieName?i.read(e.xsrfCookieName):void 0;U&&(y[e.xsrfHeaderName]=U)}"setRequestHeader"in f&&s.forEach(y,(function(e,t){void 0===g&&"content-type"===t.toLowerCase()?delete y[t]:f.setRequestHeader(t,e)})),s.isUndefined(e.withCredentials)||(f.withCredentials=!!e.withCredentials),m&&"json"!==m&&(f.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&f.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&f.upload&&f.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(d=function(e){f&&(r(!e||e&&e.type?new l("canceled"):e),f.abort(),f=null)},e.cancelToken&&e.cancelToken.subscribe(d),e.signal&&(e.signal.aborted?d():e.signal.addEventListener("abort",d))),g||(g=null),f.send(g)}))}},1609:(e,t,r)=>{var s=r(4867),a=r(1849),i=r(321),o=r(7185),n=function e(t){var r=new i(t),n=a(i.prototype.request,r);return s.extend(n,i.prototype,r),s.extend(n,r),n.create=function(r){return e(o(t,r))},n}(r(5655));n.Axios=i,n.Cancel=r(5263),n.CancelToken=r(4972),n.isCancel=r(6502),n.VERSION=r(7288).version,n.all=function(e){return Promise.all(e)},n.spread=r(8713),n.isAxiosError=r(6268),e.exports=n,e.exports.default=n},5263:e=>{function t(e){this.message=e}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,e.exports=t},4972:(e,t,r)=>{var s=r(5263);function a(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var r=this;this.promise.then((function(e){if(r._listeners){var t,s=r._listeners.length;for(t=0;t<s;t++)r._listeners[t](e);r._listeners=null}})),this.promise.then=function(e){var t,s=new Promise((function(e){r.subscribe(e),t=e})).then(e);return s.cancel=function(){r.unsubscribe(t)},s},e((function(e){r.reason||(r.reason=new s(e),t(r.reason))}))}a.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},a.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},a.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},a.source=function(){var e;return{token:new a((function(t){e=t})),cancel:e}},e.exports=a},6502:e=>{e.exports=function(e){return!(!e||!e.__CANCEL__)}},321:(e,t,r)=>{var s=r(4867),a=r(5327),i=r(782),o=r(3572),n=r(7185),u=r(4875),h=u.validators;function c(e){this.defaults=e,this.interceptors={request:new i,response:new i}}c.prototype.request=function(e,t){if("string"==typeof e?(t=t||{}).url=e:t=e||{},!t.url)throw new Error("Provided config url is not valid");(t=n(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var r=t.transitional;void 0!==r&&u.assertOptions(r,{silentJSONParsing:h.transitional(h.boolean),forcedJSONParsing:h.transitional(h.boolean),clarifyTimeoutError:h.transitional(h.boolean)},!1);var s=[],a=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(a=a&&e.synchronous,s.unshift(e.fulfilled,e.rejected))}));var i,c=[];if(this.interceptors.response.forEach((function(e){c.push(e.fulfilled,e.rejected)})),!a){var p=[o,void 0];for(Array.prototype.unshift.apply(p,s),p=p.concat(c),i=Promise.resolve(t);p.length;)i=i.then(p.shift(),p.shift());return i}for(var l=t;s.length;){var d=s.shift(),g=s.shift();try{l=d(l)}catch(e){g(e);break}}try{i=o(l)}catch(e){return Promise.reject(e)}for(;c.length;)i=i.then(c.shift(),c.shift());return i},c.prototype.getUri=function(e){if(!e.url)throw new Error("Provided config url is not valid");return e=n(this.defaults,e),a(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},s.forEach(["delete","get","head","options"],(function(e){c.prototype[e]=function(t,r){return this.request(n(r||{},{method:e,url:t,data:(r||{}).data}))}})),s.forEach(["post","put","patch"],(function(e){c.prototype[e]=function(t,r,s){return this.request(n(s||{},{method:e,url:t,data:r}))}})),e.exports=c},782:(e,t,r)=>{var s=r(4867);function a(){this.handlers=[]}a.prototype.use=function(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1},a.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},a.prototype.forEach=function(e){s.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=a},4097:(e,t,r)=>{var s=r(1793),a=r(7303);e.exports=function(e,t){return e&&!s(t)?a(e,t):t}},5061:(e,t,r)=>{var s=r(481);e.exports=function(e,t,r,a,i){var o=new Error(e);return s(o,t,r,a,i)}},3572:(e,t,r)=>{var s=r(4867),a=r(8527),i=r(6502),o=r(5655),n=r(5263);function u(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new n("canceled")}e.exports=function(e){return u(e),e.headers=e.headers||{},e.data=a.call(e,e.data,e.headers,e.transformRequest),e.headers=s.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),s.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||o.adapter)(e).then((function(t){return u(e),t.data=a.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return i(t)||(u(e),t&&t.response&&(t.response.data=a.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},481:e=>{e.exports=function(e,t,r,s,a){return e.config=t,r&&(e.code=r),e.request=s,e.response=a,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},e}},7185:(e,t,r)=>{var s=r(4867);e.exports=function(e,t){t=t||{};var r={};function a(e,t){return s.isPlainObject(e)&&s.isPlainObject(t)?s.merge(e,t):s.isPlainObject(t)?s.merge({},t):s.isArray(t)?t.slice():t}function i(r){return s.isUndefined(t[r])?s.isUndefined(e[r])?void 0:a(void 0,e[r]):a(e[r],t[r])}function o(e){if(!s.isUndefined(t[e]))return a(void 0,t[e])}function n(r){return s.isUndefined(t[r])?s.isUndefined(e[r])?void 0:a(void 0,e[r]):a(void 0,t[r])}function u(r){return r in t?a(e[r],t[r]):r in e?a(void 0,e[r]):void 0}var h={url:o,method:o,data:o,baseURL:n,transformRequest:n,transformResponse:n,paramsSerializer:n,timeout:n,timeoutMessage:n,withCredentials:n,adapter:n,responseType:n,xsrfCookieName:n,xsrfHeaderName:n,onUploadProgress:n,onDownloadProgress:n,decompress:n,maxContentLength:n,maxBodyLength:n,transport:n,httpAgent:n,httpsAgent:n,cancelToken:n,socketPath:n,responseEncoding:n,validateStatus:u};return s.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=h[e]||i,a=t(e);s.isUndefined(a)&&t!==u||(r[e]=a)})),r}},6026:(e,t,r)=>{var s=r(5061);e.exports=function(e,t,r){var a=r.config.validateStatus;r.status&&a&&!a(r.status)?t(s("Request failed with status code "+r.status,r.config,null,r.request,r)):e(r)}},8527:(e,t,r)=>{var s=r(4867),a=r(5655);e.exports=function(e,t,r){var i=this||a;return s.forEach(r,(function(r){e=r.call(i,e,t)})),e}},5655:(e,t,r)=>{var s=r(4867),a=r(6016),i=r(481),o={"Content-Type":"application/x-www-form-urlencoded"};function n(e,t){!s.isUndefined(e)&&s.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var u,h={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(u=r(5448)),u),transformRequest:[function(e,t){return a(t,"Accept"),a(t,"Content-Type"),s.isFormData(e)||s.isArrayBuffer(e)||s.isBuffer(e)||s.isStream(e)||s.isFile(e)||s.isBlob(e)?e:s.isArrayBufferView(e)?e.buffer:s.isURLSearchParams(e)?(n(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):s.isObject(e)||t&&"application/json"===t["Content-Type"]?(n(t,"application/json"),function(e,t,r){if(s.isString(e))try{return(0,JSON.parse)(e),s.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||h.transitional,r=t&&t.silentJSONParsing,a=t&&t.forcedJSONParsing,o=!r&&"json"===this.responseType;if(o||a&&s.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(o){if("SyntaxError"===e.name)throw i(e,this,"E_JSON_PARSE");throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};s.forEach(["delete","get","head"],(function(e){h.headers[e]={}})),s.forEach(["post","put","patch"],(function(e){h.headers[e]=s.merge(o)})),e.exports=h},7288:e=>{e.exports={version:"0.25.0"}},1849:e=>{e.exports=function(e,t){return function(){for(var r=new Array(arguments.length),s=0;s<r.length;s++)r[s]=arguments[s];return e.apply(t,r)}}},5327:(e,t,r)=>{var s=r(4867);function a(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,r){if(!t)return e;var i;if(r)i=r(t);else if(s.isURLSearchParams(t))i=t.toString();else{var o=[];s.forEach(t,(function(e,t){null!=e&&(s.isArray(e)?t+="[]":e=[e],s.forEach(e,(function(e){s.isDate(e)?e=e.toISOString():s.isObject(e)&&(e=JSON.stringify(e)),o.push(a(t)+"="+a(e))})))})),i=o.join("&")}if(i){var n=e.indexOf("#");-1!==n&&(e=e.slice(0,n)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}},7303:e=>{e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},4372:(e,t,r)=>{var s=r(4867);e.exports=s.isStandardBrowserEnv()?{write:function(e,t,r,a,i,o){var n=[];n.push(e+"="+encodeURIComponent(t)),s.isNumber(r)&&n.push("expires="+new Date(r).toGMTString()),s.isString(a)&&n.push("path="+a),s.isString(i)&&n.push("domain="+i),!0===o&&n.push("secure"),document.cookie=n.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},1793:e=>{e.exports=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}},6268:(e,t,r)=>{var s=r(4867);e.exports=function(e){return s.isObject(e)&&!0===e.isAxiosError}},7985:(e,t,r)=>{var s=r(4867);e.exports=s.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function a(e){var s=e;return t&&(r.setAttribute("href",s),s=r.href),r.setAttribute("href",s),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return e=a(window.location.href),function(t){var r=s.isString(t)?a(t):t;return r.protocol===e.protocol&&r.host===e.host}}():function(){return!0}},6016:(e,t,r)=>{var s=r(4867);e.exports=function(e,t){s.forEach(e,(function(r,s){s!==t&&s.toUpperCase()===t.toUpperCase()&&(e[t]=r,delete e[s])}))}},4109:(e,t,r)=>{var s=r(4867),a=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,r,i,o={};return e?(s.forEach(e.split("\n"),(function(e){if(i=e.indexOf(":"),t=s.trim(e.substr(0,i)).toLowerCase(),r=s.trim(e.substr(i+1)),t){if(o[t]&&a.indexOf(t)>=0)return;o[t]="set-cookie"===t?(o[t]?o[t]:[]).concat([r]):o[t]?o[t]+", "+r:r}})),o):o}},8713:e=>{e.exports=function(e){return function(t){return e.apply(null,t)}}},4875:(e,t,r)=>{var s=r(7288).version,a={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){a[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));var i={};a.transitional=function(e,t,r){function a(e,t){return"[Axios v"+s+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return function(r,s,o){if(!1===e)throw new Error(a(s," has been removed"+(t?" in "+t:"")));return t&&!i[s]&&(i[s]=!0,console.warn(a(s," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,s,o)}},e.exports={assertOptions:function(e,t,r){if("object"!=typeof e)throw new TypeError("options must be an object");for(var s=Object.keys(e),a=s.length;a-- >0;){var i=s[a],o=t[i];if(o){var n=e[i],u=void 0===n||o(n,i,e);if(!0!==u)throw new TypeError("option "+i+" must be "+u)}else if(!0!==r)throw Error("Unknown option "+i)}},validators:a}},4867:(e,t,r)=>{var s=r(1849),a=Object.prototype.toString;function i(e){return Array.isArray(e)}function o(e){return void 0===e}function n(e){return"[object ArrayBuffer]"===a.call(e)}function u(e){return null!==e&&"object"==typeof e}function h(e){if("[object Object]"!==a.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function c(e){return"[object Function]"===a.call(e)}function p(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),i(e))for(var r=0,s=e.length;r<s;r++)t.call(null,e[r],r,e);else for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.call(null,e[a],a,e)}e.exports={isArray:i,isArrayBuffer:n,isBuffer:function(e){return null!==e&&!o(e)&&null!==e.constructor&&!o(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"[object FormData]"===a.call(e)},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&n(e.buffer)},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:u,isPlainObject:h,isUndefined:o,isDate:function(e){return"[object Date]"===a.call(e)},isFile:function(e){return"[object File]"===a.call(e)},isBlob:function(e){return"[object Blob]"===a.call(e)},isFunction:c,isStream:function(e){return u(e)&&c(e.pipe)},isURLSearchParams:function(e){return"[object URLSearchParams]"===a.call(e)},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:p,merge:function e(){var t={};function r(r,s){h(t[s])&&h(r)?t[s]=e(t[s],r):h(r)?t[s]=e({},r):i(r)?t[s]=r.slice():t[s]=r}for(var s=0,a=arguments.length;s<a;s++)p(arguments[s],r);return t},extend:function(e,t,r){return p(t,(function(t,a){e[a]=r&&"function"==typeof t?s(t,r):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}}},1924:(e,t,r)=>{var s=r(210),a=r(5559),i=a(s("String.prototype.indexOf"));e.exports=function(e,t){var r=s(e,!!t);return"function"==typeof r&&i(e,".prototype.")>-1?a(r):r}},5559:(e,t,r)=>{var s=r(8612),a=r(210),i=a("%Function.prototype.apply%"),o=a("%Function.prototype.call%"),n=a("%Reflect.apply%",!0)||s.call(o,i),u=a("%Object.getOwnPropertyDescriptor%",!0),h=a("%Object.defineProperty%",!0),c=a("%Math.max%");if(h)try{h({},"a",{value:1})}catch(e){h=null}e.exports=function(e){var t=n(s,o,arguments);if(u&&h){var r=u(t,"length");r.configurable&&h(t,"length",{value:1+c(0,e.length-(arguments.length-1))})}return t};var p=function(){return n(s,i,arguments)};h?h(e.exports,"apply",{value:p}):e.exports.apply=p},7648:e=>{var t="Function.prototype.bind called on incompatible ",r=Array.prototype.slice,s=Object.prototype.toString,a="[object Function]";e.exports=function(e){var i=this;if("function"!=typeof i||s.call(i)!==a)throw new TypeError(t+i);for(var o,n=r.call(arguments,1),u=function(){if(this instanceof o){var t=i.apply(this,n.concat(r.call(arguments)));return Object(t)===t?t:this}return i.apply(e,n.concat(r.call(arguments)))},h=Math.max(0,i.length-n.length),c=[],p=0;p<h;p++)c.push("$"+p);if(o=Function("binder","return function ("+c.join(",")+"){ return binder.apply(this,arguments); }")(u),i.prototype){var l=function(){};l.prototype=i.prototype,o.prototype=new l,l.prototype=null}return o}},8612:(e,t,r)=>{var s=r(7648);e.exports=Function.prototype.bind||s},210:(e,t,r)=>{var s,a=SyntaxError,i=Function,o=TypeError,n=function(e){try{return i('"use strict"; return ('+e+").constructor;")()}catch(e){}},u=Object.getOwnPropertyDescriptor;if(u)try{u({},"")}catch(e){u=null}var h=function(){throw new o},c=u?function(){try{return h}catch(e){try{return u(arguments,"callee").get}catch(e){return h}}}():h,p=r(1405)(),l=Object.getPrototypeOf||function(e){return e.__proto__},d={},g="undefined"==typeof Uint8Array?s:l(Uint8Array),y={"%AggregateError%":"undefined"==typeof AggregateError?s:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?s:ArrayBuffer,"%ArrayIteratorPrototype%":p?l([][Symbol.iterator]()):s,"%AsyncFromSyncIteratorPrototype%":s,"%AsyncFunction%":d,"%AsyncGenerator%":d,"%AsyncGeneratorFunction%":d,"%AsyncIteratorPrototype%":d,"%Atomics%":"undefined"==typeof Atomics?s:Atomics,"%BigInt%":"undefined"==typeof BigInt?s:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?s:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?s:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?s:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?s:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":d,"%Int8Array%":"undefined"==typeof Int8Array?s:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?s:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?s:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":p?l(l([][Symbol.iterator]())):s,"%JSON%":"object"==typeof JSON?JSON:s,"%Map%":"undefined"==typeof Map?s:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&p?l((new Map)[Symbol.iterator]()):s,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?s:Promise,"%Proxy%":"undefined"==typeof Proxy?s:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?s:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?s:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&p?l((new Set)[Symbol.iterator]()):s,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?s:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":p?l(""[Symbol.iterator]()):s,"%Symbol%":p?Symbol:s,"%SyntaxError%":a,"%ThrowTypeError%":c,"%TypedArray%":g,"%TypeError%":o,"%Uint8Array%":"undefined"==typeof Uint8Array?s:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?s:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?s:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?s:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?s:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?s:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?s:WeakSet},m=function e(t){var r;if("%AsyncFunction%"===t)r=n("async function () {}");else if("%GeneratorFunction%"===t)r=n("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=n("async function* () {}");else if("%AsyncGenerator%"===t){var s=e("%AsyncGeneratorFunction%");s&&(r=s.prototype)}else if("%AsyncIteratorPrototype%"===t){var a=e("%AsyncGenerator%");a&&(r=l(a.prototype))}return y[t]=r,r},b={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},f=r(8612),q=r(7642),v=f.call(Function.call,Array.prototype.concat),A=f.call(Function.apply,Array.prototype.splice),T=f.call(Function.call,String.prototype.replace),U=f.call(Function.call,String.prototype.slice),x=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,w=/\\(\\)?/g,R=function(e){var t=U(e,0,1),r=U(e,-1);if("%"===t&&"%"!==r)throw new a("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new a("invalid intrinsic syntax, expected opening `%`");var s=[];return T(e,x,(function(e,t,r,a){s[s.length]=r?T(a,w,"$1"):t||e})),s},j=function(e,t){var r,s=e;if(q(b,s)&&(s="%"+(r=b[s])[0]+"%"),q(y,s)){var i=y[s];if(i===d&&(i=m(s)),void 0===i&&!t)throw new o("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:s,value:i}}throw new a("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new o("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new o('"allowMissing" argument must be a boolean');var r=R(e),s=r.length>0?r[0]:"",i=j("%"+s+"%",t),n=i.name,h=i.value,c=!1,p=i.alias;p&&(s=p[0],A(r,v([0,1],p)));for(var l=1,d=!0;l<r.length;l+=1){var g=r[l],m=U(g,0,1),b=U(g,-1);if(('"'===m||"'"===m||"`"===m||'"'===b||"'"===b||"`"===b)&&m!==b)throw new a("property names with quotes must have matching quotes");if("constructor"!==g&&d||(c=!0),q(y,n="%"+(s+="."+g)+"%"))h=y[n];else if(null!=h){if(!(g in h)){if(!t)throw new o("base intrinsic for "+e+" exists, but the property is not available.");return}if(u&&l+1>=r.length){var f=u(h,g);h=(d=!!f)&&"get"in f&&!("originalValue"in f.get)?f.get:h[g]}else d=q(h,g),h=h[g];d&&!c&&(y[n]=h)}}return h}},1405:(e,t,r)=>{var s="undefined"!=typeof Symbol&&Symbol,a=r(5419);e.exports=function(){return"function"==typeof s&&"function"==typeof Symbol&&"symbol"==typeof s("foo")&&"symbol"==typeof Symbol("bar")&&a()}},5419:e=>{e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var s=Object.getOwnPropertySymbols(e);if(1!==s.length||s[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var a=Object.getOwnPropertyDescriptor(e,t);if(42!==a.value||!0!==a.enumerable)return!1}return!0}},7642:(e,t,r)=>{var s=r(8612);e.exports=s.call(Function.call,Object.prototype.hasOwnProperty)},4530:(e,t)=>{function r(e,t){var r=[],s=[];return null==t&&(t=function(e,t){return r[0]===t?"[Circular ~]":"[Circular ~."+s.slice(0,r.indexOf(t)).join(".")+"]"}),function(a,i){if(r.length>0){var o=r.indexOf(this);~o?r.splice(o+1):r.push(this),~o?s.splice(o,1/0,a):s.push(a),~r.indexOf(i)&&(i=t.call(this,a,i))}else r.push(i);return null==e?i:e.call(this,a,i)}}(e.exports=function(e,t,s,a){return JSON.stringify(e,r(t,a),s)}).getSerialize=r},3465:(e,t,r)=>{e=r.nmd(e);var s="__lodash_hash_undefined__",a=9007199254740991,i="[object Arguments]",o="[object Boolean]",n="[object Date]",u="[object Function]",h="[object GeneratorFunction]",c="[object Map]",p="[object Number]",l="[object Object]",d="[object Promise]",g="[object RegExp]",y="[object Set]",m="[object String]",b="[object Symbol]",f="[object WeakMap]",q="[object ArrayBuffer]",v="[object DataView]",A="[object Float32Array]",T="[object Float64Array]",U="[object Int8Array]",x="[object Int16Array]",w="[object Int32Array]",R="[object Uint8Array]",j="[object Uint8ClampedArray]",P="[object Uint16Array]",E="[object Uint32Array]",O=/\w*$/,S=/^\[object .+?Constructor\]$/,k=/^(?:0|[1-9]\d*)$/,K={};K[i]=K["[object Array]"]=K[q]=K[v]=K[o]=K[n]=K[A]=K[T]=K[U]=K[x]=K[w]=K[c]=K[p]=K[l]=K[g]=K[y]=K[m]=K[b]=K[R]=K[j]=K[P]=K[E]=!0,K["[object Error]"]=K[u]=K[f]=!1;var C="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,V="object"==typeof self&&self&&self.Object===Object&&self,I=C||V||Function("return this")(),_=t&&!t.nodeType&&t,D=_&&e&&!e.nodeType&&e,G=D&&D.exports===_;function L(e,t){return e.set(t[0],t[1]),e}function N(e,t){return e.add(t),e}function B(e,t,r,s){var a=-1,i=e?e.length:0;for(s&&i&&(r=e[++a]);++a<i;)r=t(r,e[a],a,e);return r}function M(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function F(e){var t=-1,r=Array(e.size);return e.forEach((function(e,s){r[++t]=[s,e]})),r}function W(e,t){return function(r){return e(t(r))}}function H(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}var z,$=Array.prototype,J=Function.prototype,Q=Object.prototype,X=I["__core-js_shared__"],Y=(z=/[^.]+$/.exec(X&&X.keys&&X.keys.IE_PROTO||""))?"Symbol(src)_1."+z:"",Z=J.toString,ee=Q.hasOwnProperty,te=Q.toString,re=RegExp("^"+Z.call(ee).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),se=G?I.Buffer:void 0,ae=I.Symbol,ie=I.Uint8Array,oe=W(Object.getPrototypeOf,Object),ne=Object.create,ue=Q.propertyIsEnumerable,he=$.splice,ce=Object.getOwnPropertySymbols,pe=se?se.isBuffer:void 0,le=W(Object.keys,Object),de=Ie(I,"DataView"),ge=Ie(I,"Map"),ye=Ie(I,"Promise"),me=Ie(I,"Set"),be=Ie(I,"WeakMap"),fe=Ie(Object,"create"),qe=Ne(de),ve=Ne(ge),Ae=Ne(ye),Te=Ne(me),Ue=Ne(be),xe=ae?ae.prototype:void 0,we=xe?xe.valueOf:void 0;function Re(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var s=e[t];this.set(s[0],s[1])}}function je(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var s=e[t];this.set(s[0],s[1])}}function Pe(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var s=e[t];this.set(s[0],s[1])}}function Ee(e){this.__data__=new je(e)}function Oe(e,t,r){var s=e[t];ee.call(e,t)&&Be(s,r)&&(void 0!==r||t in e)||(e[t]=r)}function Se(e,t){for(var r=e.length;r--;)if(Be(e[r][0],t))return r;return-1}function ke(e,t,r,s,a,d,f){var S;if(s&&(S=d?s(e,a,d,f):s(e)),void 0!==S)return S;if(!ze(e))return e;var k=Me(e);if(k){if(S=function(e){var t=e.length,r=e.constructor(t);return t&&"string"==typeof e[0]&&ee.call(e,"index")&&(r.index=e.index,r.input=e.input),r}(e),!t)return function(e,t){var r=-1,s=e.length;for(t||(t=Array(s));++r<s;)t[r]=e[r];return t}(e,S)}else{var C=De(e),V=C==u||C==h;if(We(e))return function(e,t){if(t)return e.slice();var r=new e.constructor(e.length);return e.copy(r),r}(e,t);if(C==l||C==i||V&&!d){if(M(e))return d?e:{};if(S=function(e){return"function"!=typeof e.constructor||Le(e)?{}:ze(t=oe(e))?ne(t):{};var t}(V?{}:e),!t)return function(e,t){return Ce(e,_e(e),t)}(e,function(e,t){return e&&Ce(t,$e(t),e)}(S,e))}else{if(!K[C])return d?e:{};S=function(e,t,r,s){var a,i=e.constructor;switch(t){case q:return Ke(e);case o:case n:return new i(+e);case v:return function(e,t){var r=t?Ke(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}(e,s);case A:case T:case U:case x:case w:case R:case j:case P:case E:return function(e,t){var r=t?Ke(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}(e,s);case c:return function(e,t,r){return B(t?r(F(e),!0):F(e),L,new e.constructor)}(e,s,r);case p:case m:return new i(e);case g:return function(e){var t=new e.constructor(e.source,O.exec(e));return t.lastIndex=e.lastIndex,t}(e);case y:return function(e,t,r){return B(t?r(H(e),!0):H(e),N,new e.constructor)}(e,s,r);case b:return a=e,we?Object(we.call(a)):{}}}(e,C,ke,t)}}f||(f=new Ee);var I=f.get(e);if(I)return I;if(f.set(e,S),!k)var _=r?function(e){return function(e,t,r){var s=t(e);return Me(e)?s:function(e,t){for(var r=-1,s=t.length,a=e.length;++r<s;)e[a+r]=t[r];return e}(s,r(e))}(e,$e,_e)}(e):$e(e);return function(e,t){for(var r=-1,s=e?e.length:0;++r<s&&!1!==t(e[r],r););}(_||e,(function(a,i){_&&(a=e[i=a]),Oe(S,i,ke(a,t,r,s,i,e,f))})),S}function Ke(e){var t=new e.constructor(e.byteLength);return new ie(t).set(new ie(e)),t}function Ce(e,t,r,s){r||(r={});for(var a=-1,i=t.length;++a<i;){var o=t[a],n=s?s(r[o],e[o],o,r,e):void 0;Oe(r,o,void 0===n?e[o]:n)}return r}function Ve(e,t){var r,s,a=e.__data__;return("string"==(s=typeof(r=t))||"number"==s||"symbol"==s||"boolean"==s?"__proto__"!==r:null===r)?a["string"==typeof t?"string":"hash"]:a.map}function Ie(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!ze(e)||(t=e,Y&&Y in t))&&(He(e)||M(e)?re:S).test(Ne(e));var t}(r)?r:void 0}Re.prototype.clear=function(){this.__data__=fe?fe(null):{}},Re.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},Re.prototype.get=function(e){var t=this.__data__;if(fe){var r=t[e];return r===s?void 0:r}return ee.call(t,e)?t[e]:void 0},Re.prototype.has=function(e){var t=this.__data__;return fe?void 0!==t[e]:ee.call(t,e)},Re.prototype.set=function(e,t){return this.__data__[e]=fe&&void 0===t?s:t,this},je.prototype.clear=function(){this.__data__=[]},je.prototype.delete=function(e){var t=this.__data__,r=Se(t,e);return!(r<0||(r==t.length-1?t.pop():he.call(t,r,1),0))},je.prototype.get=function(e){var t=this.__data__,r=Se(t,e);return r<0?void 0:t[r][1]},je.prototype.has=function(e){return Se(this.__data__,e)>-1},je.prototype.set=function(e,t){var r=this.__data__,s=Se(r,e);return s<0?r.push([e,t]):r[s][1]=t,this},Pe.prototype.clear=function(){this.__data__={hash:new Re,map:new(ge||je),string:new Re}},Pe.prototype.delete=function(e){return Ve(this,e).delete(e)},Pe.prototype.get=function(e){return Ve(this,e).get(e)},Pe.prototype.has=function(e){return Ve(this,e).has(e)},Pe.prototype.set=function(e,t){return Ve(this,e).set(e,t),this},Ee.prototype.clear=function(){this.__data__=new je},Ee.prototype.delete=function(e){return this.__data__.delete(e)},Ee.prototype.get=function(e){return this.__data__.get(e)},Ee.prototype.has=function(e){return this.__data__.has(e)},Ee.prototype.set=function(e,t){var r=this.__data__;if(r instanceof je){var s=r.__data__;if(!ge||s.length<199)return s.push([e,t]),this;r=this.__data__=new Pe(s)}return r.set(e,t),this};var _e=ce?W(ce,Object):function(){return[]},De=function(e){return te.call(e)};function Ge(e,t){return!!(t=null==t?a:t)&&("number"==typeof e||k.test(e))&&e>-1&&e%1==0&&e<t}function Le(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Q)}function Ne(e){if(null!=e){try{return Z.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Be(e,t){return e===t||e!=e&&t!=t}(de&&De(new de(new ArrayBuffer(1)))!=v||ge&&De(new ge)!=c||ye&&De(ye.resolve())!=d||me&&De(new me)!=y||be&&De(new be)!=f)&&(De=function(e){var t=te.call(e),r=t==l?e.constructor:void 0,s=r?Ne(r):void 0;if(s)switch(s){case qe:return v;case ve:return c;case Ae:return d;case Te:return y;case Ue:return f}return t});var Me=Array.isArray;function Fe(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=a}(e.length)&&!He(e)}var We=pe||function(){return!1};function He(e){var t=ze(e)?te.call(e):"";return t==u||t==h}function ze(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function $e(e){return Fe(e)?function(e,t){var r=Me(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&Fe(e)}(e)&&ee.call(e,"callee")&&(!ue.call(e,"callee")||te.call(e)==i)}(e)?function(e,t){for(var r=-1,s=Array(e);++r<e;)s[r]=t(r);return s}(e.length,String):[],s=r.length,a=!!s;for(var o in e)!t&&!ee.call(e,o)||a&&("length"==o||Ge(o,s))||r.push(o);return r}(e):function(e){if(!Le(e))return le(e);var t=[];for(var r in Object(e))ee.call(e,r)&&"constructor"!=r&&t.push(r);return t}(e)}e.exports=function(e){return ke(e,!0,!0)}},631:(e,t,r)=>{var s="function"==typeof Map&&Map.prototype,a=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=s&&a&&"function"==typeof a.get?a.get:null,o=s&&Map.prototype.forEach,n="function"==typeof Set&&Set.prototype,u=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,h=n&&u&&"function"==typeof u.get?u.get:null,c=n&&Set.prototype.forEach,p="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,l="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,d="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,g=Boolean.prototype.valueOf,y=Object.prototype.toString,m=Function.prototype.toString,b=String.prototype.match,f=String.prototype.slice,q=String.prototype.replace,v=String.prototype.toUpperCase,A=String.prototype.toLowerCase,T=RegExp.prototype.test,U=Array.prototype.concat,x=Array.prototype.join,w=Array.prototype.slice,R=Math.floor,j="function"==typeof BigInt?BigInt.prototype.valueOf:null,P=Object.getOwnPropertySymbols,E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,O="function"==typeof Symbol&&"object"==typeof Symbol.iterator,S="function"==typeof Symbol&&Symbol.toStringTag&&(Symbol.toStringTag,1)?Symbol.toStringTag:null,k=Object.prototype.propertyIsEnumerable,K=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function C(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||T.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var s=e<0?-R(-e):R(e);if(s!==e){var a=String(s),i=f.call(t,a.length+1);return q.call(a,r,"$&_")+"."+q.call(q.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return q.call(t,r,"$&_")}var V=r(4654).custom,I=V&&L(V)?V:null;function _(e,t,r){var s="double"===(r.quoteStyle||t)?'"':"'";return s+e+s}function D(e){return q.call(String(e),/"/g,"&quot;")}function G(e){return!("[object Array]"!==M(e)||S&&"object"==typeof e&&S in e)}function L(e){if(O)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!E)return!1;try{return E.call(e),!0}catch(e){}return!1}e.exports=function e(t,r,s,a){var n=r||{};if(B(n,"quoteStyle")&&"single"!==n.quoteStyle&&"double"!==n.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(B(n,"maxStringLength")&&("number"==typeof n.maxStringLength?n.maxStringLength<0&&n.maxStringLength!==1/0:null!==n.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var u=!B(n,"customInspect")||n.customInspect;if("boolean"!=typeof u&&"symbol"!==u)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(B(n,"indent")&&null!==n.indent&&"\t"!==n.indent&&!(parseInt(n.indent,10)===n.indent&&n.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(B(n,"numericSeparator")&&"boolean"!=typeof n.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var y=n.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return W(t,n);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var v=String(t);return y?C(t,v):v}if("bigint"==typeof t){var T=String(t)+"n";return y?C(t,T):T}var R=void 0===n.depth?5:n.depth;if(void 0===s&&(s=0),s>=R&&R>0&&"object"==typeof t)return G(t)?"[Array]":"[Object]";var P,V=function(e,t){var r;if("\t"===e.indent)r="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;r=x.call(Array(e.indent+1)," ")}return{base:r,prev:x.call(Array(t+1),r)}}(n,s);if(void 0===a)a=[];else if(F(a,t)>=0)return"[Circular]";function N(t,r,i){if(r&&(a=w.call(a)).push(r),i){var o={depth:n.depth};return B(n,"quoteStyle")&&(o.quoteStyle=n.quoteStyle),e(t,o,s+1,a)}return e(t,n,s+1,a)}if("function"==typeof t){var H=function(e){if(e.name)return e.name;var t=b.call(m.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(t),Y=X(t,N);return"[Function"+(H?": "+H:" (anonymous)")+"]"+(Y.length>0?" { "+x.call(Y,", ")+" }":"")}if(L(t)){var Z=O?q.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):E.call(t);return"object"!=typeof t||O?Z:z(Z)}if((P=t)&&"object"==typeof P&&("undefined"!=typeof HTMLElement&&P instanceof HTMLElement||"string"==typeof P.nodeName&&"function"==typeof P.getAttribute)){for(var ee="<"+A.call(String(t.nodeName)),te=t.attributes||[],re=0;re<te.length;re++)ee+=" "+te[re].name+"="+_(D(te[re].value),"double",n);return ee+=">",t.childNodes&&t.childNodes.length&&(ee+="..."),ee+"</"+A.call(String(t.nodeName))+">"}if(G(t)){if(0===t.length)return"[]";var se=X(t,N);return V&&!function(e){for(var t=0;t<e.length;t++)if(F(e[t],"\n")>=0)return!1;return!0}(se)?"["+Q(se,V)+"]":"[ "+x.call(se,", ")+" ]"}if(function(e){return!("[object Error]"!==M(e)||S&&"object"==typeof e&&S in e)}(t)){var ae=X(t,N);return"cause"in t&&!k.call(t,"cause")?"{ ["+String(t)+"] "+x.call(U.call("[cause]: "+N(t.cause),ae),", ")+" }":0===ae.length?"["+String(t)+"]":"{ ["+String(t)+"] "+x.call(ae,", ")+" }"}if("object"==typeof t&&u){if(I&&"function"==typeof t[I])return t[I]();if("symbol"!==u&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!i||!e||"object"!=typeof e)return!1;try{i.call(e);try{h.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var ie=[];return o.call(t,(function(e,r){ie.push(N(r,t,!0)+" => "+N(e,t))})),J("Map",i.call(t),ie,V)}if(function(e){if(!h||!e||"object"!=typeof e)return!1;try{h.call(e);try{i.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var oe=[];return c.call(t,(function(e){oe.push(N(e,t))})),J("Set",h.call(t),oe,V)}if(function(e){if(!p||!e||"object"!=typeof e)return!1;try{p.call(e,p);try{l.call(e,l)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return $("WeakMap");if(function(e){if(!l||!e||"object"!=typeof e)return!1;try{l.call(e,l);try{p.call(e,p)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return $("WeakSet");if(function(e){if(!d||!e||"object"!=typeof e)return!1;try{return d.call(e),!0}catch(e){}return!1}(t))return $("WeakRef");if(function(e){return!("[object Number]"!==M(e)||S&&"object"==typeof e&&S in e)}(t))return z(N(Number(t)));if(function(e){if(!e||"object"!=typeof e||!j)return!1;try{return j.call(e),!0}catch(e){}return!1}(t))return z(N(j.call(t)));if(function(e){return!("[object Boolean]"!==M(e)||S&&"object"==typeof e&&S in e)}(t))return z(g.call(t));if(function(e){return!("[object String]"!==M(e)||S&&"object"==typeof e&&S in e)}(t))return z(N(String(t)));if(!function(e){return!("[object Date]"!==M(e)||S&&"object"==typeof e&&S in e)}(t)&&!function(e){return!("[object RegExp]"!==M(e)||S&&"object"==typeof e&&S in e)}(t)){var ne=X(t,N),ue=K?K(t)===Object.prototype:t instanceof Object||t.constructor===Object,he=t instanceof Object?"":"null prototype",ce=!ue&&S&&Object(t)===t&&S in t?f.call(M(t),8,-1):he?"Object":"",pe=(ue||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(ce||he?"["+x.call(U.call([],ce||[],he||[]),": ")+"] ":"");return 0===ne.length?pe+"{}":V?pe+"{"+Q(ne,V)+"}":pe+"{ "+x.call(ne,", ")+" }"}return String(t)};var N=Object.prototype.hasOwnProperty||function(e){return e in this};function B(e,t){return N.call(e,t)}function M(e){return y.call(e)}function F(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,s=e.length;r<s;r++)if(e[r]===t)return r;return-1}function W(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,s="... "+r+" more character"+(r>1?"s":"");return W(f.call(e,0,t.maxStringLength),t)+s}return _(q.call(q.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,H),"single",t)}function H(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+v.call(t.toString(16))}function z(e){return"Object("+e+")"}function $(e){return e+" { ? }"}function J(e,t,r,s){return e+" ("+t+") {"+(s?Q(r,s):x.call(r,", "))+"}"}function Q(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+x.call(e,","+r)+"\n"+t.prev}function X(e,t){var r=G(e),s=[];if(r){s.length=e.length;for(var a=0;a<e.length;a++)s[a]=B(e,a)?t(e[a],e):""}var i,o="function"==typeof P?P(e):[];if(O){i={};for(var n=0;n<o.length;n++)i["$"+o[n]]=o[n]}for(var u in e)B(e,u)&&(r&&String(Number(u))===u&&u<e.length||O&&i["$"+u]instanceof Symbol||(T.call(/[^\w$]/,u)?s.push(t(u,e)+": "+t(e[u],e)):s.push(u+": "+t(e[u],e))));if("function"==typeof P)for(var h=0;h<o.length;h++)k.call(e,o[h])&&s.push("["+t(o[h])+"]: "+t(e[o[h]],e));return s}},5798:e=>{var t=String.prototype.replace,r=/%20/g,s="RFC3986";e.exports={default:s,formatters:{RFC1738:function(e){return t.call(e,r,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:s}},129:(e,t,r)=>{var s=r(8261),a=r(5235),i=r(5798);e.exports={formats:i,parse:a,stringify:s}},5235:(e,t,r)=>{var s=r(2769),a=Object.prototype.hasOwnProperty,i=Array.isArray,o={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:s.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},n=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},u=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},h=function(e,t,r,s){if(e){var i=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,o=/(\[[^[\]]*])/g,n=r.depth>0&&/(\[[^[\]]*])/.exec(i),h=n?i.slice(0,n.index):i,c=[];if(h){if(!r.plainObjects&&a.call(Object.prototype,h)&&!r.allowPrototypes)return;c.push(h)}for(var p=0;r.depth>0&&null!==(n=o.exec(i))&&p<r.depth;){if(p+=1,!r.plainObjects&&a.call(Object.prototype,n[1].slice(1,-1))&&!r.allowPrototypes)return;c.push(n[1])}return n&&c.push("["+i.slice(n.index)+"]"),function(e,t,r,s){for(var a=s?t:u(t,r),i=e.length-1;i>=0;--i){var o,n=e[i];if("[]"===n&&r.parseArrays)o=[].concat(a);else{o=r.plainObjects?Object.create(null):{};var h="["===n.charAt(0)&&"]"===n.charAt(n.length-1)?n.slice(1,-1):n,c=parseInt(h,10);r.parseArrays||""!==h?!isNaN(c)&&n!==h&&String(c)===h&&c>=0&&r.parseArrays&&c<=r.arrayLimit?(o=[])[c]=a:"__proto__"!==h&&(o[h]=a):o={0:a}}a=o}return a}(c,t,r,s)}};e.exports=function(e,t){var r=function(e){if(!e)return o;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?o.charset:e.charset;return{allowDots:void 0===e.allowDots?o.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:o.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:o.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:o.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:o.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:o.comma,decoder:"function"==typeof e.decoder?e.decoder:o.decoder,delimiter:"string"==typeof e.delimiter||s.isRegExp(e.delimiter)?e.delimiter:o.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:o.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:o.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:o.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:o.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:o.strictNullHandling}}(t);if(""===e||null==e)return r.plainObjects?Object.create(null):{};for(var c="string"==typeof e?function(e,t){var r,h={},c=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,p=t.parameterLimit===1/0?void 0:t.parameterLimit,l=c.split(t.delimiter,p),d=-1,g=t.charset;if(t.charsetSentinel)for(r=0;r<l.length;++r)0===l[r].indexOf("utf8=")&&("utf8=%E2%9C%93"===l[r]?g="utf-8":"utf8=%26%2310003%3B"===l[r]&&(g="iso-8859-1"),d=r,r=l.length);for(r=0;r<l.length;++r)if(r!==d){var y,m,b=l[r],f=b.indexOf("]="),q=-1===f?b.indexOf("="):f+1;-1===q?(y=t.decoder(b,o.decoder,g,"key"),m=t.strictNullHandling?null:""):(y=t.decoder(b.slice(0,q),o.decoder,g,"key"),m=s.maybeMap(u(b.slice(q+1),t),(function(e){return t.decoder(e,o.decoder,g,"value")}))),m&&t.interpretNumericEntities&&"iso-8859-1"===g&&(m=n(m)),b.indexOf("[]=")>-1&&(m=i(m)?[m]:m),a.call(h,y)?h[y]=s.combine(h[y],m):h[y]=m}return h}(e,r):e,p=r.plainObjects?Object.create(null):{},l=Object.keys(c),d=0;d<l.length;++d){var g=l[d],y=h(g,c[g],r,"string"==typeof e);p=s.merge(p,y,r)}return!0===r.allowSparse?p:s.compact(p)}},8261:(e,t,r)=>{var s=r(7478),a=r(2769),i=r(5798),o=Object.prototype.hasOwnProperty,n={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},u=Array.isArray,h=String.prototype.split,c=Array.prototype.push,p=function(e,t){c.apply(e,u(t)?t:[t])},l=Date.prototype.toISOString,d=i.default,g={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:a.encode,encodeValuesOnly:!1,format:d,formatter:i.formatters[d],indices:!1,serializeDate:function(e){return l.call(e)},skipNulls:!1,strictNullHandling:!1},y={},m=function e(t,r,i,o,n,c,l,d,m,b,f,q,v,A,T){for(var U,x=t,w=T,R=0,j=!1;void 0!==(w=w.get(y))&&!j;){var P=w.get(t);if(R+=1,void 0!==P){if(P===R)throw new RangeError("Cyclic object value");j=!0}void 0===w.get(y)&&(R=0)}if("function"==typeof l?x=l(r,x):x instanceof Date?x=b(x):"comma"===i&&u(x)&&(x=a.maybeMap(x,(function(e){return e instanceof Date?b(e):e}))),null===x){if(o)return c&&!v?c(r,g.encoder,A,"key",f):r;x=""}if("string"==typeof(U=x)||"number"==typeof U||"boolean"==typeof U||"symbol"==typeof U||"bigint"==typeof U||a.isBuffer(x)){if(c){var E=v?r:c(r,g.encoder,A,"key",f);if("comma"===i&&v){for(var O=h.call(String(x),","),S="",k=0;k<O.length;++k)S+=(0===k?"":",")+q(c(O[k],g.encoder,A,"value",f));return[q(E)+"="+S]}return[q(E)+"="+q(c(x,g.encoder,A,"value",f))]}return[q(r)+"="+q(String(x))]}var K,C=[];if(void 0===x)return C;if("comma"===i&&u(x))K=[{value:x.length>0?x.join(",")||null:void 0}];else if(u(l))K=l;else{var V=Object.keys(x);K=d?V.sort(d):V}for(var I=0;I<K.length;++I){var _=K[I],D="object"==typeof _&&void 0!==_.value?_.value:x[_];if(!n||null!==D){var G=u(x)?"function"==typeof i?i(r,_):r:r+(m?"."+_:"["+_+"]");T.set(t,R);var L=s();L.set(y,T),p(C,e(D,G,i,o,n,c,l,d,m,b,f,q,v,A,L))}}return C};e.exports=function(e,t){var r,a=e,h=function(e){if(!e)return g;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||g.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=i.default;if(void 0!==e.format){if(!o.call(i.formatters,e.format))throw new TypeError("Unknown format option provided.");r=e.format}var s=i.formatters[r],a=g.filter;return("function"==typeof e.filter||u(e.filter))&&(a=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:g.addQueryPrefix,allowDots:void 0===e.allowDots?g.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:g.charsetSentinel,delimiter:void 0===e.delimiter?g.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:g.encode,encoder:"function"==typeof e.encoder?e.encoder:g.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:g.encodeValuesOnly,filter:a,format:r,formatter:s,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:g.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:g.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:g.strictNullHandling}}(t);"function"==typeof h.filter?a=(0,h.filter)("",a):u(h.filter)&&(r=h.filter);var c,l=[];if("object"!=typeof a||null===a)return"";c=t&&t.arrayFormat in n?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var d=n[c];r||(r=Object.keys(a)),h.sort&&r.sort(h.sort);for(var y=s(),b=0;b<r.length;++b){var f=r[b];h.skipNulls&&null===a[f]||p(l,m(a[f],f,d,h.strictNullHandling,h.skipNulls,h.encode?h.encoder:null,h.filter,h.sort,h.allowDots,h.serializeDate,h.format,h.formatter,h.encodeValuesOnly,h.charset,y))}var q=l.join(h.delimiter),v=!0===h.addQueryPrefix?"?":"";return h.charsetSentinel&&("iso-8859-1"===h.charset?v+="utf8=%26%2310003%3B&":v+="utf8=%E2%9C%93&"),q.length>0?v+q:""}},2769:(e,t,r)=>{var s=r(5798),a=Object.prototype.hasOwnProperty,i=Array.isArray,o=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),n=function(e,t){for(var r=t&&t.plainObjects?Object.create(null):{},s=0;s<e.length;++s)void 0!==e[s]&&(r[s]=e[s]);return r};e.exports={arrayToObject:n,assign:function(e,t){return Object.keys(t).reduce((function(e,r){return e[r]=t[r],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],s=0;s<t.length;++s)for(var a=t[s],o=a.obj[a.prop],n=Object.keys(o),u=0;u<n.length;++u){var h=n[u],c=o[h];"object"==typeof c&&null!==c&&-1===r.indexOf(c)&&(t.push({obj:o,prop:h}),r.push(c))}return function(e){for(;e.length>1;){var t=e.pop(),r=t.obj[t.prop];if(i(r)){for(var s=[],a=0;a<r.length;++a)void 0!==r[a]&&s.push(r[a]);t.obj[t.prop]=s}}}(t),e},decode:function(e,t,r){var s=e.replace(/\+/g," ");if("iso-8859-1"===r)return s.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(s)}catch(e){return s}},encode:function(e,t,r,a,i){if(0===e.length)return e;var n=e;if("symbol"==typeof e?n=Symbol.prototype.toString.call(e):"string"!=typeof e&&(n=String(e)),"iso-8859-1"===r)return escape(n).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var u="",h=0;h<n.length;++h){var c=n.charCodeAt(h);45===c||46===c||95===c||126===c||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||i===s.RFC1738&&(40===c||41===c)?u+=n.charAt(h):c<128?u+=o[c]:c<2048?u+=o[192|c>>6]+o[128|63&c]:c<55296||c>=57344?u+=o[224|c>>12]+o[128|c>>6&63]+o[128|63&c]:(h+=1,c=65536+((1023&c)<<10|1023&n.charCodeAt(h)),u+=o[240|c>>18]+o[128|c>>12&63]+o[128|c>>6&63]+o[128|63&c])}return u},isBuffer:function(e){return!(!e||"object"!=typeof e||!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e)))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(i(e)){for(var r=[],s=0;s<e.length;s+=1)r.push(t(e[s]));return r}return t(e)},merge:function e(t,r,s){if(!r)return t;if("object"!=typeof r){if(i(t))t.push(r);else{if(!t||"object"!=typeof t)return[t,r];(s&&(s.plainObjects||s.allowPrototypes)||!a.call(Object.prototype,r))&&(t[r]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(r);var o=t;return i(t)&&!i(r)&&(o=n(t,s)),i(t)&&i(r)?(r.forEach((function(r,i){if(a.call(t,i)){var o=t[i];o&&"object"==typeof o&&r&&"object"==typeof r?t[i]=e(o,r,s):t.push(r)}else t[i]=r})),t):Object.keys(r).reduce((function(t,i){var o=r[i];return a.call(t,i)?t[i]=e(t[i],o,s):t[i]=o,t}),o)}}},2587:e=>{function t(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,r,s,a){r=r||"&",s=s||"=";var i={};if("string"!=typeof e||0===e.length)return i;var o=/\+/g;e=e.split(r);var n=1e3;a&&"number"==typeof a.maxKeys&&(n=a.maxKeys);var u=e.length;n>0&&u>n&&(u=n);for(var h=0;h<u;++h){var c,p,l,d,g=e[h].replace(o,"%20"),y=g.indexOf(s);y>=0?(c=g.substr(0,y),p=g.substr(y+1)):(c=g,p=""),l=decodeURIComponent(c),d=decodeURIComponent(p),t(i,l)?Array.isArray(i[l])?i[l].push(d):i[l]=[i[l],d]:i[l]=d}return i}},2361:e=>{var t=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,r,s,a){return r=r||"&",s=s||"=",null===e&&(e=void 0),"object"==typeof e?Object.keys(e).map((function(a){var i=encodeURIComponent(t(a))+s;return Array.isArray(e[a])?e[a].map((function(e){return i+encodeURIComponent(t(e))})).join(r):i+encodeURIComponent(t(e[a]))})).filter(Boolean).join(r):a?encodeURIComponent(t(a))+s+encodeURIComponent(t(e)):""}},7673:(e,t,r)=>{r(2587),t.stringify=r(2361)},7478:(e,t,r)=>{var s=r(210),a=r(1924),i=r(631),o=s("%TypeError%"),n=s("%WeakMap%",!0),u=s("%Map%",!0),h=a("WeakMap.prototype.get",!0),c=a("WeakMap.prototype.set",!0),p=a("WeakMap.prototype.has",!0),l=a("Map.prototype.get",!0),d=a("Map.prototype.set",!0),g=a("Map.prototype.has",!0),y=function(e,t){for(var r,s=e;null!==(r=s.next);s=r)if(r.key===t)return s.next=r.next,r.next=e.next,e.next=r,r};e.exports=function(){var e,t,r,s={assert:function(e){if(!s.has(e))throw new o("Side channel does not contain "+i(e))},get:function(s){if(n&&s&&("object"==typeof s||"function"==typeof s)){if(e)return h(e,s)}else if(u){if(t)return l(t,s)}else if(r)return function(e,t){var r=y(e,t);return r&&r.value}(r,s)},has:function(s){if(n&&s&&("object"==typeof s||"function"==typeof s)){if(e)return p(e,s)}else if(u){if(t)return g(t,s)}else if(r)return function(e,t){return!!y(e,t)}(r,s);return!1},set:function(s,a){n&&s&&("object"==typeof s||"function"==typeof s)?(e||(e=new n),c(e,s,a)):u?(t||(t=new u),d(t,s,a)):(r||(r={key:{},next:null}),function(e,t,r){var s=y(e,t);s?s.value=r:e.next={key:t,next:e.next,value:r}}(r,s,a))}};return s}},3692:e=>{var t=e.exports=function(e){return new r(e)};function r(e){this.value=e}function s(e,t,r){var s=[],o=[],c=!0;return function e(p){var l=r?a(p):p,d={},g=!0,y={node:l,node_:p,path:[].concat(s),parent:o[o.length-1],parents:o,key:s.slice(-1)[0],isRoot:0===s.length,level:s.length,circular:null,update:function(e,t){y.isRoot||(y.parent.node[y.key]=e),y.node=e,t&&(g=!1)},delete:function(e){delete y.parent.node[y.key],e&&(g=!1)},remove:function(e){n(y.parent.node)?y.parent.node.splice(y.key,1):delete y.parent.node[y.key],e&&(g=!1)},keys:null,before:function(e){d.before=e},after:function(e){d.after=e},pre:function(e){d.pre=e},post:function(e){d.post=e},stop:function(){c=!1},block:function(){g=!1}};if(!c)return y;function m(){if("object"==typeof y.node&&null!==y.node){y.keys&&y.node_===y.node||(y.keys=i(y.node)),y.isLeaf=0==y.keys.length;for(var e=0;e<o.length;e++)if(o[e].node_===p){y.circular=o[e];break}}else y.isLeaf=!0,y.keys=null;y.notLeaf=!y.isLeaf,y.notRoot=!y.isRoot}m();var b=t.call(y,y.node);return void 0!==b&&y.update&&y.update(b),d.before&&d.before.call(y,y.node),g?("object"!=typeof y.node||null===y.node||y.circular||(o.push(y),m(),u(y.keys,(function(t,a){s.push(t),d.pre&&d.pre.call(y,y.node[t],t);var i=e(y.node[t]);r&&h.call(y.node,t)&&(y.node[t]=i.node),i.isLast=a==y.keys.length-1,i.isFirst=0==a,d.post&&d.post.call(y,i),s.pop()})),o.pop()),d.after&&d.after.call(y,y.node),y):y}(e).node}function a(e){if("object"==typeof e&&null!==e){var t;if(n(e))t=[];else if("[object Date]"===o(e))t=new Date(e.getTime?e.getTime():e);else if("[object RegExp]"===o(e))t=new RegExp(e);else if(function(e){return"[object Error]"===o(e)}(e))t={message:e.message};else if(function(e){return"[object Boolean]"===o(e)}(e))t=new Boolean(e);else if(function(e){return"[object Number]"===o(e)}(e))t=new Number(e);else if(function(e){return"[object String]"===o(e)}(e))t=new String(e);else if(Object.create&&Object.getPrototypeOf)t=Object.create(Object.getPrototypeOf(e));else if(e.constructor===Object)t={};else{var r=e.constructor&&e.constructor.prototype||e.__proto__||{},s=function(){};s.prototype=r,t=new s}return u(i(e),(function(r){t[r]=e[r]})),t}return e}r.prototype.get=function(e){for(var t=this.value,r=0;r<e.length;r++){var s=e[r];if(!t||!h.call(t,s)){t=void 0;break}t=t[s]}return t},r.prototype.has=function(e){for(var t=this.value,r=0;r<e.length;r++){var s=e[r];if(!t||!h.call(t,s))return!1;t=t[s]}return!0},r.prototype.set=function(e,t){for(var r=this.value,s=0;s<e.length-1;s++){var a=e[s];h.call(r,a)||(r[a]={}),r=r[a]}return r[e[s]]=t,t},r.prototype.map=function(e){return s(this.value,e,!0)},r.prototype.forEach=function(e){return this.value=s(this.value,e,!1),this.value},r.prototype.reduce=function(e,t){var r=1===arguments.length,s=r?this.value:t;return this.forEach((function(t){this.isRoot&&r||(s=e.call(this,s,t))})),s},r.prototype.paths=function(){var e=[];return this.forEach((function(t){e.push(this.path)})),e},r.prototype.nodes=function(){var e=[];return this.forEach((function(t){e.push(this.node)})),e},r.prototype.clone=function(){var e=[],t=[];return function r(s){for(var o=0;o<e.length;o++)if(e[o]===s)return t[o];if("object"==typeof s&&null!==s){var n=a(s);return e.push(s),t.push(n),u(i(s),(function(e){n[e]=r(s[e])})),e.pop(),t.pop(),n}return s}(this.value)};var i=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};function o(e){return Object.prototype.toString.call(e)}var n=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},u=function(e,t){if(e.forEach)return e.forEach(t);for(var r=0;r<e.length;r++)t(e[r],r,e)};u(i(r.prototype),(function(e){t[e]=function(t){var s=[].slice.call(arguments,1),a=new r(t);return a[e].apply(a,s)}}));var h=Object.hasOwnProperty||function(e,t){return t in e}},4654:()=>{}},t={};function r(s){var a=t[s];if(void 0!==a)return a.exports;var i=t[s]={id:s,loaded:!1,exports:{}};return e[s].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}r.d=(e,t)=>{for(var s in t)r.o(t,s)&&!r.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var s=r(2915),a=exports;for(var i in s)a[i]=s[i];s.__esModule&&Object.defineProperty(a,"__esModule",{value:!0});
1
+ var t={9818:function(t,e,r){var o=this&&this.__assign||function(){return o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var n in e=arguments[r])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},o.apply(this,arguments)},n=this&&this.__awaiter||function(t,e,r,o){return new(r||(r=Promise))((function(n,i){function a(t){try{c(o.next(t))}catch(t){i(t)}}function s(t){try{c(o.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?n(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}c((o=o.apply(t,e||[])).next())}))},i=this&&this.__generator||function(t,e){var r,o,n,i,a={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,o&&(n=2&i[0]?o.return:i[0]?o.throw||((n=o.return)&&n.call(o),0):o.next)&&!(n=n.call(o,i[1])).done)return n;switch(o=0,n&&(i=[2&i[0],n.value]),i[0]){case 0:case 1:n=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,o=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((n=(n=a.trys).length>0&&n[n.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!n||i[1]>n[0]&&i[1]<n[3])){a.label=i[1];break}if(6===i[0]&&a.label<n[1]){a.label=n[1],n=i;break}if(n&&a.label<n[2]){a.label=n[2],a.ops.push(i);break}n[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],o=0}finally{r=n=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},a=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.CommercetoolsApi=void 0;var s=a(r(9669)),c=a(r(129)),u=r(2915),p=r(3028),l=r(7111),f=r(4060),h=r(893),y={maxRetries:0,delayMs:0},d=[500,501,502,503,504],m=function(){function t(e){t.validateConfig(e),this.config=e,this.auth=new u.CommercetoolsAuth(e),this.endpoints=l.REGION_URLS[this.config.region],this.userAgent=(0,h.buildUserAgent)(this.config.systemIdentifier),this.axios=this.createAxiosInstance(),this.retry=e.retry||y}return t.prototype.createAxiosInstance=function(){return s.default.create({timeout:this.config.timeoutMs||f.DEFAULT_REQUEST_TIMEOUT_MS,paramsSerializer:function(t){return c.default.stringify(t,{arrayFormat:"repeat"})},httpsAgent:void 0})},t.prototype.getStoreById=function(t){return this.request(o(o({},this.extractCommonRequestOptions(t)),{path:"/stores/".concat(t.id),method:"GET"}))},t.prototype.getStoreByKey=function(t){return this.request(o(o({},this.extractCommonRequestOptions(t)),{path:"/stores/key=".concat(t.key),method:"GET"}))},t.prototype.queryStores=function(t){return this.request(o(o({},this.extractCommonRequestOptions(t)),{path:"/stores",method:"GET"}))},t.prototype.createStore=function(t){return this.request({path:"/stores",method:"POST",data:t.data})},t.prototype.updateStoreById=function(t){return this.request(o(o({},this.extractCommonRequestOptions(t)),{path:"/stores/".concat(t.id),method:"POST",data:t.data}))},t.prototype.updateStoreByKey=function(t){return this.request({path:"/stores/key=".concat(t.key),method:"POST",data:t.data})},t.prototype.deleteStoreById=function(t){return this.request(o(o({},this.extractCommonRequestOptions(t)),{path:"/stores/".concat(t.id),method:"DELETE",params:o(o({},t.params),{version:t.version})}))},t.prototype.deleteStoreByKey=function(t){return this.request(o(o({},this.extractCommonRequestOptions(t)),{path:"/stores/key=".concat(t.key),method:"DELETE",params:o(o({},t.params),{version:t.version})}))},t.prototype.getCategoryById=function(t){return this.request(o(o({},this.extractCommonRequestOptions(t)),{path:"/categories/".concat(t.id),method:"GET"}))},t.prototype.getCategoryByKey=function(t){return this.request(o(o({},this.extractCommonRequestOptions(t)),{path:"/categories/key=".concat(t.key),method:"GET"}))},t.prototype.queryChannels=function(t){return this.request(o(o({},this.extractCommonRequestOptions(t)),{path:"/channels",method:"GET"}))},t.prototype.importOrder=function(t){return n(this,void 0,void 0,(function(){return i(this,(function(e){return[2,this.request(o(o({},this.extractCommonRequestOptions(t)),{path:"/orders/import",method:"POST",data:t.data}))]}))}))},t.prototype.getChannelById=function(t){return this.request(o(o({},this.extractCommonRequestOptions(t)),{path:"/channels/".concat(t.id),method:"GET"}))},t.prototype.getCategory=function(t){if(!t.id&&!t.key)throw new p.CommercetoolsError("Either an id, key or slug must be provided");return t.id?this.request(o(o({},this.extractCommonRequestOptions(t)),{path:"/categories/".concat(t.id),method:"GET"})):this.request(o(o({},this.extractCommonRequestOptions(t)),{path:"/categories/key=".concat(t.key),method:"GET"}))},t.prototype.getCategoryBySlug=function(t){return n(this,void 0,void 0,(function(){var e,r;return i(this,(function(n){switch(n.label){case 0:if(!t.languageCode&&!t.languageCodes)throw new p.CommercetoolsError("Either the `languageCode` or `languageCodes` property must be provided");return e=[],t.languageCodes?e.push.apply(e,t.languageCodes):t.languageCode&&e.push(t.languageCode),[4,this.request(o(o({},this.extractCommonRequestOptions(o(o({},t),{params:o(o({},null==t?void 0:t.params),{where:"slug(".concat(e.map((function(e){return"".concat(e,'="').concat(t.slug,'"')})).join(" or "),")")})}))),{path:"/categories",method:"GET"}))];case 1:if(!(r=n.sent()).count)throw new p.CommercetoolsError("No category found with slug [".concat(t.slug,"] and language code [").concat(t.languageCode,"]"),{options:t},404);return[2,r.results[0]]}}))}))},t.prototype.queryCategories=function(t){return this.request(o(o({},this.extractCommonRequestOptions(t)),{path:"/categories",method:"GET"}))},t.prototype.getCategoryParents=function(t){return n(this,void 0,void 0,(function(){var e,r;return i(this,(function(n){switch(n.label){case 0:return[4,this.getCategory(o(o({},t),{params:o(o({},t.params),{expand:"ancestors[*]"})}))];case 1:return e=n.sent(),(r=e.ancestors.map((function(t){return t.obj}))).push(o(o({},e),{ancestors:e.ancestors.map((function(t){return{id:t.id,typeId:t.typeId}}))})),[2,r]}}))}))},t.prototype.getProductById=function(t){return this.request(o(o({},this.extractCommonRequestOptions(t)),{path:"/products/".concat(t.id),method:"GET"}))},t.prototype.getProductByKey=function(t){return this.request(o(o({},this.extractCommonRequestOptions(t)),{path:"/products/key=".concat(t.key),method:"GET"}))},t.prototype.getProductProjectionById=function(t){return this.request(o(o({},this.extractCommonRequestOptions(t)),{path:this.applyStore("/product-projections/".concat(t.id),t.storeKey),method:"GET"}))},t.prototype.getProductProjectionByKey=function(t){return this.request(o(o({},this.extractCommonRequestOptions(t)),{path:this.applyStore("/product-projections/key=".concat(t.key),t.storeKey),method:"GET"}))},t.prototype.getProductProjectionBySlug=function(t){return n(this,void 0,void 0,(function(){var e,r;return i(this,(function(n){switch(n.label){case 0:if(!t.languageCode&&!t.languageCodes)throw new p.CommercetoolsError("Either the `languageCode` or `languageCodes` property must be provided");return e=[],t.languageCodes?e.push.apply(e,t.languageCodes):t.languageCode&&e.push(t.languageCode),[4,this.request(o(o({},this.extractCommonRequestOptions(o(o({},t),{params:o(o({},null==t?void 0:t.params),{where:"slug(".concat(e.map((function(e){return"".concat(e,'="').concat(t.slug,'"')})).join(" or "),")")})}))),{path:"/product-projections",method:"GET"}))];case 1:if(!(r=n.sent()).count)throw new p.CommercetoolsError("No product projection found with slug [".concat(t.slug,"] and language code [").concat(t.languageCode,"]"),{options:t},404);return[2,r.results[0]]}}))}))},t.prototype.queryProductProjections=function(t){return this.request(o(o({},this.extractCommonRequestOptions(t)),{path:"/product-projections",method:"GET"}))},t.prototype.searchProductProjections=function(t){return this.request(o(o({},this.extractCommonRequestOptions(t)),{path:"/product-projections/search",method:"GET"}))},t.prototype.getProductSelectionById=function(t){return this.request(o(o({},this.extractCommonRequestOptions(t)),{path:this.applyStore("/product-selections/".concat(t.id),t.storeKey),method:"GET"}))},t.prototype.getProductSelectionByKey=function(t){return this.request(o(o({},this.extractCommonRequestOptions(t)),{path:this.applyStore("/product-selections/key=".concat(t.key),t.storeKey),method:"GET"}))},t.prototype.queryProductSelections=function(t){return this.request(o(o({},this.extractCommonRequestOptions(t)),{path:"/product-selections",method:"GET"}))},t.prototype.createProductSelection=function(t){return this.request(o(o({},this.extractCommonRequestOptions(t)),{path:"/product-selections",method:"POST",data:t.data}))},t.prototype.updateProductSelectionByKey=function(t){return this.request(o(o({},this.extractCommonRequestOptions(t)),{path:"/product-selections/key=".concat(t.key),method:"POST",data:{version:t.version,actions:t.actions}}))},t.prototype.deleteProductSelectionByKey=function(t){return this.request(o(o({},this.extractCommonRequestOptions(t)),{path:"/product-selections/key=".concat(t.key,"&version=").concat(t.version),method:"DELETE"}))},t.prototype.queryProductsInStore=function(t){return this.request(o(o({},this.extractCommonRequestOptions(t)),{path:"/in-store/key=".concat(t.storeKey,"/product-selection-assignments"),method:"GET"}))},t.prototype.getCartById=function(t){return this.request(o(o({},this.extractCommonRequestOptions(t)),{path:this.applyStore("/carts/".concat(t.id),t.storeKey),method:"GET"}))},t.prototype.queryCarts=function(t){return n(this,void 0,void 0,(function(){return i(this,(function(e){return[2,this.request(o(o({},this.extractCommonRequestOptions(t)),{path:this.applyStore("/carts",null==t?void 0:t.storeKey),method:"GET"}))]}))}))},t.prototype.queryMyCarts=function(t){return n(this,void 0,void 0,(function(){return i(this,(function(e){return[2,this.request(o(o({},this.extractCommonRequestOptions(t)),{path:this.applyStore("/me/carts",t.storeKey),method:"GET",accessToken:t.accessToken}))]}))}))},t.prototype.createCart=function(t){return n(this,void 0,void 0,(function(){return i(this,(function(e){return[2,this.request(o(o({},this.extractCommonRequestOptions(t)),{path:this.applyStore("/carts",t.storeKey),method:"POST",data:t.data}))]}))}))},t.prototype.updateCartById=function(t){return n(this,void 0,void 0,(function(){return i(this,(function(e){return[2,this.request(o(o({},this.extractCommonRequestOptions(t)),{path:this.applyStore("/carts/".concat(t.id),t.storeKey),method:"POST",data:{version:t.version,actions:t.actions}}))]}))}))},t.prototype.getMyActiveCart=function(t){return n(this,void 0,void 0,(function(){return i(this,(function(e){return[2,this.request(o(o({},this.extractCommonRequestOptions(t)),{path:this.applyStore("/me/active-cart",t.storeKey),method:"GET",accessToken:t.accessToken}))]}))}))},t.prototype.getMyCartById=function(t){return n(this,void 0,void 0,(function(){return i(this,(function(e){return[2,this.request(o(o({},this.extractCommonRequestOptions(t)),{path:this.applyStore("/me/carts/".concat(t.cartId),t.storeKey),method:"GET",accessToken:t.accessToken}))]}))}))},t.prototype.createMyCart=function(t){return n(this,void 0,void 0,(function(){return i(this,(function(e){return[2,this.request(o(o({},this.extractCommonRequestOptions(t)),{path:this.applyStore("/me/carts",t.storeKey),method:"POST",data:t.data,accessToken:t.accessToken}))]}))}))},t.prototype.deleteMyActiveCart=function(t){return n(this,void 0,void 0,(function(){var e;return i(this,(function(r){switch(r.label){case 0:return[4,this.getMyActiveCart(t)];case 1:return e=r.sent(),[4,this.request(o(o({},this.extractCommonRequestOptions(t)),{path:this.applyStore("/me/carts/".concat(e.id),t.storeKey),method:"DELETE",params:o(o({},t.params),{version:e.version}),accessToken:t.accessToken}))];case 2:return[2,r.sent()]}}))}))},t.prototype.deleteMyCartById=function(t){return n(this,void 0,void 0,(function(){var e;return i(this,(function(r){switch(r.label){case 0:return[4,this.getMyCartById(t)];case 1:return e=r.sent(),[4,this.request(o(o({},this.extractCommonRequestOptions(t)),{path:this.applyStore("/me/carts/".concat(t.cartId),t.storeKey),method:"DELETE",params:o(o({},t.params),{version:e.version}),accessToken:t.accessToken}))];case 2:return[2,r.sent()]}}))}))},t.prototype.updateMyActiveCart=function(t){return n(this,void 0,void 0,(function(){var e;return i(this,(function(r){switch(r.label){case 0:return[4,this.getMyActiveCart(t)];case 1:return e=r.sent(),[2,this.request(o(o({},this.extractCommonRequestOptions(t)),{path:this.applyStore("/me/carts/".concat(e.id),t.storeKey),method:"POST",data:{version:e.version,actions:t.actions},accessToken:t.accessToken}))]}}))}))},t.prototype.createMyOrderFromActiveCart=function(t){return n(this,void 0,void 0,(function(){var e;return i(this,(function(r){switch(r.label){case 0:return[4,this.getMyActiveCart(t)];case 1:return e=r.sent(),[2,this.request(o(o({},this.extractCommonRequestOptions(t)),{path:this.applyStore("/me/orders",t.storeKey),method:"POST",data:{version:e.version,id:e.id},accessToken:t.accessToken}))]}}))}))},t.prototype.deleteCartById=function(t){return n(this,void 0,void 0,(function(){return i(this,(function(e){switch(e.label){case 0:return[4,this.request(o(o({},this.extractCommonRequestOptions(t)),{path:this.applyStore("/carts/".concat(t.id),t.storeKey),method:"DELETE",params:o(o({},t.params),{version:t.version})}))];case 1:return[2,e.sent()]}}))}))},t.prototype.createPayment=function(t){return this.request(o(o({},this.extractCommonRequestOptions(t)),{path:"/payments",method:"POST",data:t.data}))},t.prototype.deletePaymentById=function(t){return this.request(o(o({},this.extractCommonRequestOptions(t)),{path:"/payments/".concat(t.id),method:"DELETE",params:o(o({},t.params),{version:t.version})}))},t.prototype.updatePaymentById=function(t){return this.request(o(o({},this.extractCommonRequestOptions(t)),{path:"/payments/".concat(t.id),method:"POST",data:t.data}))},t.prototype.getPaymentById=function(t){return this.request(o(o({},this.extractCommonRequestOptions(t)),{path:"/payments/".concat(t.id),method:"GET"}))},t.prototype.queryPayments=function(t){return this.request(o(o({},this.extractCommonRequestOptions(t)),{path:"/payments",method:"GET"}))},t.prototype.createMyPayment=function(t){return this.request(o(o({},this.extractCommonRequestOptions(t)),{path:"/me/payments",method:"POST",data:t.data,accessToken:t.accessToken}))},t.prototype.updateMyPaymentById=function(t){return this.request(o(o({},this.extractCommonRequestOptions(t)),{path:"/me/payments/".concat(t.id),method:"POST",data:t.data,accessToken:t.accessToken}))},t.prototype.getMyPaymentById=function(t){return this.request(o(o({},this.extractCommonRequestOptions(t)),{path:"/me/payments/".concat(t.id),method:"GET",accessToken:t.accessToken}))},t.prototype.queryMyPayments=function(t){return this.request(o(o({},this.extractCommonRequestOptions(t)),{path:"/me/payments",method:"GET",accessToken:t.accessToken}))},t.prototype.getMyOrderById=function(t){return this.request(o(o({},this.extractCommonRequestOptions(t)),{path:this.applyStore("/me/orders/".concat(t.id),t.storeKey),method:"GET",accessToken:t.accessToken}))},t.prototype.queryMyOrders=function(t){return this.request(o(o({},this.extractCommonRequestOptions(t)),{path:this.applyStore("/me/orders",t.storeKey),method:"GET",accessToken:t.accessToken}))},t.prototype.updateOrderById=function(t){return this.request(o(o({},this.extractCommonRequestOptions(t)),{path:this.applyStore("/orders/".concat(t.id),t.storeKey),method:"POST",data:t.data}))},t.prototype.updateOrderByOrderNumber=function(t){return this.request(o(o({},this.extractCommonRequestOptions(t)),{path:this.applyStore("/orders/order-number=".concat(t.orderNumber),t.storeKey),method:"POST",data:t.data}))},t.prototype.getOrderById=function(t){return this.request(o(o({},this.extractCommonRequestOptions(t)),{path:this.applyStore("/orders/".concat(t.id),t.storeKey),method:"GET"}))},t.prototype.getOrderByOrderNumber=function(t){return this.request(o(o({},this.extractCommonRequestOptions(t)),{path:this.applyStore("/orders/order-number=".concat(t.orderNumber),t.storeKey),method:"GET"}))},t.prototype.deleteOrderById=function(t){return this.request(o(o({},this.extractCommonRequestOptions(t)),{path:this.applyStore("/orders/".concat(t.id),t.storeKey),method:"DELETE",params:o(o({},t.params),{version:t.version,dataErasure:t.dataErasure})}))},t.prototype.deleteOrderByOrderNumber=function(t){return this.request(o(o({},this.extractCommonRequestOptions(t)),{path:this.applyStore("/orders/order-number=".concat(t.orderNo),t.storeKey),method:"DELETE",params:o(o({},t.params),{version:t.version,dataErasure:t.dataErasure})}))},t.prototype.queryOrders=function(t){return this.request(o(o({},this.extractCommonRequestOptions(t)),{path:this.applyStore("/orders",t.storeKey),method:"GET"}))},t.prototype.createProduct=function(t){return this.request(o(o({},this.extractCommonRequestOptions(t)),{path:"/products",method:"POST",data:t.data}))},t.prototype.updateProductByKey=function(t){return this.request(o(o({},this.extractCommonRequestOptions(t)),{path:"/products/key=".concat(t.key),method:"POST",data:t.data}))},t.prototype.updateProductById=function(t){return this.request(o(o({},this.extractCommonRequestOptions(t)),{path:"/products/".concat(t.id),method:"POST",data:t.data}))},t.prototype.deleteProductById=function(t){return n(this,void 0,void 0,(function(){var e,r;return i(this,(function(n){switch(n.label){case 0:return e=t.version,t.unpublish?[4,this.unpublishProductById({id:t.id,version:t.version})]:[3,2];case 1:r=n.sent(),e=r.version,n.label=2;case 2:return[2,this.request(o(o({},this.extractCommonRequestOptions(t)),{path:"/products/".concat(t.id),method:"DELETE",params:o(o({},t.params),{version:e})}))]}}))}))},t.prototype.deleteProductByKey=function(t){return n(this,void 0,void 0,(function(){var e,r;return i(this,(function(n){switch(n.label){case 0:return e=t.version,t.unpublish?[4,this.unpublishProductByKey({key:t.key,version:t.version})]:[3,2];case 1:r=n.sent(),e=r.version,n.label=2;case 2:return[2,this.request(o(o({},this.extractCommonRequestOptions(t)),{path:"/products/key=".concat(t.key),method:"DELETE",params:o(o({},t.params),{version:e})}))]}}))}))},t.prototype.unpublishProductByKey=function(t){return this.request(o(o({},this.extractCommonRequestOptions(t)),{path:"/products/key=".concat(t.key),method:"POST",params:t.params,data:{version:t.version,actions:[{action:"unpublish"}]}}))},t.prototype.unpublishProductById=function(t){return this.request(o(o({},this.extractCommonRequestOptions(t)),{path:"/products/".concat(t.id),method:"POST",params:t.params,data:{version:t.version,actions:[{action:"unpublish"}]}}))},t.prototype.createCategory=function(t){return this.request({path:"/categories",method:"POST",data:t.data})},t.prototype.updateCategoryByKey=function(t){return this.request({path:"/categories/key=".concat(t.key),method:"POST",data:t.data})},t.prototype.updateCategoryById=function(t){return this.request(o(o({},this.extractCommonRequestOptions(t)),{path:"/categories/".concat(t.id),method:"POST",data:t.data}))},t.prototype.deleteCategoryById=function(t){return this.request(o(o({},this.extractCommonRequestOptions(t)),{path:"/categories/".concat(t.id),method:"DELETE",params:o(o({},t.params),{version:t.version})}))},t.prototype.deleteCategoryByKey=function(t){return this.request(o(o({},this.extractCommonRequestOptions(t)),{path:"/categories/key=".concat(t.key),method:"DELETE",params:o(o({},t.params),{version:t.version})}))},t.prototype.createAccount=function(t){return this.request(o(o({},this.extractCommonRequestOptions(t)),{path:this.applyStore("/customers",t.storeKey),method:"POST",data:t.data}))},t.prototype.deleteCustomerById=function(t){return this.request(o(o({},this.extractCommonRequestOptions(t)),{path:this.applyStore("/customers/".concat(t.id),t.storeKey),method:"DELETE",params:o(o({},t.params),{version:t.version,dataErasure:t.dataErasure})}))},t.prototype.deleteCustomerByKey=function(t){return this.request(o(o({},this.extractCommonRequestOptions(t)),{path:this.applyStore("/customers/key=".concat(t.key),t.storeKey),method:"DELETE",params:o(o({},t.params),{version:t.version,dataErasure:t.dataErasure})}))},t.prototype.createMyAccount=function(t){return this.request(o(o({},this.extractCommonRequestOptions(t)),{path:this.applyStore("/me/signup",t.storeKey),method:"POST",data:t.data,accessToken:t.accessToken}))},t.prototype.loginMyAccount=function(t){return this.request(o(o({},this.extractCommonRequestOptions(t)),{path:this.applyStore("/me/login",t.storeKey),method:"POST",data:t.data,accessToken:t.accessToken}))},t.prototype.login=function(t){return this.request(o(o({},this.extractCommonRequestOptions(t)),{path:this.applyStore("/login",t.storeKey),method:"POST",data:t.data}))},t.prototype.getMyAccount=function(t){return this.request(o(o({},this.extractCommonRequestOptions(t)),{path:this.applyStore("/me",t.storeKey),method:"GET",accessToken:t.accessToken}))},t.prototype.updateMyAccount=function(t){return this.request(o(o({},this.extractCommonRequestOptions(t)),{path:this.applyStore("/me",t.storeKey),method:"POST",accessToken:t.accessToken,data:t.data}))},t.prototype.changeMyPassword=function(t){return this.request(o(o({},this.extractCommonRequestOptions(t)),{path:this.applyStore("/me/password",t.storeKey),method:"POST",accessToken:t.accessToken,data:t.data}))},t.prototype.resetMyPassword=function(t){return this.request(o(o({},this.extractCommonRequestOptions(t)),{path:this.applyStore("/me/password/reset",t.storeKey),method:"POST",accessToken:t.accessToken,data:t.data}))},t.prototype.getPasswordResetToken=function(t){return this.request(o(o({},this.extractCommonRequestOptions(t)),{path:this.applyStore("/customers/password-token",t.storeKey),method:"POST",data:t.data}))},t.prototype.getCustomerById=function(t){return this.request(o(o({},this.extractCommonRequestOptions(t)),{path:this.applyStore("/customers/".concat(t.id),t.storeKey),method:"GET"}))},t.prototype.getCustomerByKey=function(t){return this.request(o(o({},this.extractCommonRequestOptions(t)),{path:this.applyStore("/customers/key=".concat(t.key),t.storeKey),method:"GET"}))},t.prototype.getCustomerByPasswordToken=function(t){return this.request(o(o({},this.extractCommonRequestOptions(t)),{path:this.applyStore("/customers/password-token=".concat(t.token),t.storeKey),method:"GET"}))},t.prototype.queryCustomers=function(t){return this.request(o(o({},this.extractCommonRequestOptions(t)),{path:this.applyStore("/customers",t.storeKey),method:"GET"}))},t.prototype.updateCustomerById=function(t){return this.request(o(o({},this.extractCommonRequestOptions(t)),{path:"/customers/".concat(t.id),method:"POST",data:t.data}))},t.prototype.updateCustomerByKey=function(t){return this.request(o(o({},this.extractCommonRequestOptions(t)),{path:"/customers/key=".concat(t.key),method:"POST",data:t.data}))},t.prototype.getProductTypeById=function(t){return this.request(o(o({},this.extractCommonRequestOptions(t)),{path:"/product-types/".concat(t.id),method:"GET"}))},t.prototype.getProductTypeByKey=function(t){return this.request(o(o({},this.extractCommonRequestOptions(t)),{path:"/product-types/key=".concat(t.key),method:"GET"}))},t.prototype.getTypeById=function(t){return this.request(o(o({},this.extractCommonRequestOptions(t)),{path:"/types/".concat(t.id),method:"GET"}))},t.prototype.getTypeByKey=function(t){return this.request(o(o({},this.extractCommonRequestOptions(t)),{path:"/types/key=".concat(t.key),method:"GET"}))},t.prototype.getDiscountCodeById=function(t){return this.request(o(o({},this.extractCommonRequestOptions(t)),{path:"/discount-codes/".concat(t.id),method:"GET"}))},t.prototype.getCartDiscountById=function(t){return this.request(o(o({},this.extractCommonRequestOptions(t)),{path:"/cart-discounts/".concat(t.id),method:"GET"}))},t.prototype.getCartDiscountByKey=function(t){return this.request(o(o({},this.extractCommonRequestOptions(t)),{path:"/cart-discounts/key=".concat(t.key),method:"GET"}))},t.prototype.queryCartDiscounts=function(t){return this.request(o(o({},this.extractCommonRequestOptions(t)),{path:"/cart-discounts",method:"GET"}))},t.prototype.getCustomObject=function(t){return this.request(o(o({},this.extractCommonRequestOptions(t)),{path:"/custom-objects/".concat(t.container,"/").concat(t.key),method:"GET"}))},t.prototype.getCustomObjectById=function(t){return this.request(o(o({},this.extractCommonRequestOptions(t)),{path:"/custom-objects/".concat(t.id),method:"GET"}))},t.prototype.saveCustomObject=function(t){return this.request(o(o({},this.extractCommonRequestOptions(t)),{path:"/custom-objects",method:"POST",data:t.data}))},t.prototype.deleteCustomObject=function(t){return this.request(o(o({},this.extractCommonRequestOptions(t)),{path:"/custom-objects/".concat(t.container,"/").concat(t.key),method:"DELETE"}))},t.prototype.getShippingMethodById=function(t){return this.request(o(o({},this.extractCommonRequestOptions(t)),{path:"/shipping-methods/".concat(t.id),method:"GET"}))},t.prototype.getShippingMethodByKey=function(t){return this.request(o(o({},this.extractCommonRequestOptions(t)),{path:"/shipping-methods/key=".concat(t.key),method:"GET"}))},t.prototype.getShippingMethodsForLocation=function(t){return this.request(o(o({},this.extractCommonRequestOptions(o(o({},t),{params:o(o({},null==t?void 0:t.params),{country:t.country,state:t.state,currency:t.currency})}))),{path:"/shipping-methods/matching-location",method:"GET",accessToken:t.accessToken}))},t.prototype.getShippingMethodsForCart=function(t){return this.request(o(o({},this.extractCommonRequestOptions(o(o({},t),{params:o(o({},null==t?void 0:t.params),{cartId:t.cartId})}))),{path:"/shipping-methods/matching-cart",method:"GET",accessToken:t.accessToken}))},t.prototype.queryShippingMethods=function(t){return this.request(o(o({},this.extractCommonRequestOptions(t)),{path:"/shipping-methods",method:"GET"}))},t.prototype.getCustomerGroupById=function(t){return this.request(o(o({},this.extractCommonRequestOptions(t)),{path:"/customer-groups/".concat(t.id),method:"GET"}))},t.prototype.getCustomerGroupByKey=function(t){return this.request(o(o({},this.extractCommonRequestOptions(t)),{path:"/customer-groups/key=".concat(t.key),method:"GET"}))},t.prototype.queryCustomerGroups=function(t){return this.request(o(o({},this.extractCommonRequestOptions(t)),{path:"/customer-groups",method:"GET"}))},t.prototype.createCustomerGroup=function(t){return this.request({path:"/customer-groups",method:"POST",data:t.data})},t.prototype.updateCustomerGroupByKey=function(t){return this.request({path:"/customer-groups/key=".concat(t.key),method:"POST",data:t.data})},t.prototype.updateCustomerGroupById=function(t){return this.request(o(o({},this.extractCommonRequestOptions(t)),{path:"/customer-groups/".concat(t.id),method:"POST",data:t.data}))},t.prototype.deleteCustomerGroupById=function(t){return this.request(o(o({},this.extractCommonRequestOptions(t)),{path:"/customer-groups/".concat(t.id),method:"DELETE",params:o(o({},t.params),{version:t.version})}))},t.prototype.deleteCustomerGroupByKey=function(t){return this.request(o(o({},this.extractCommonRequestOptions(t)),{path:"/customer-groups/key=".concat(t.key),method:"DELETE",params:o(o({},t.params),{version:t.version})}))},t.prototype.graphql=function(t){return this.request(o(o({},this.extractCommonRequestOptions(t)),{path:"/graphql",method:"POST",data:t.data,accessToken:t.accessToken}))},t.prototype.request=function(t){return n(this,void 0,void 0,(function(){var e,r,o,n,a,s,c;return i(this,(function(u){switch(u.label){case 0:return[4,this.getRequestOptions(t)];case 1:e=u.sent(),r=this.getRetryConfig(t.retry),o=0,a=function(){var t,a;return i(this,(function(i){switch(i.label){case 0:return o>0?(t=s.calculateDelay(o,r),[4,new Promise((function(e){return setTimeout(e,t)}))]):[3,2];case 1:i.sent(),i.label=2;case 2:return i.trys.push([2,4,,5]),[4,s.axios(e)];case 3:return[2,{value:i.sent().data}];case 4:if(a=i.sent(),!s.isRetryableError(a))throw s.transformError(a);return n=a,[3,5];case 5:return o++,[2]}}))},s=this,u.label=2;case 2:return[5,a()];case 3:if("object"==typeof(c=u.sent()))return[2,c.value];u.label=4;case 4:if(o<=r.maxRetries)return[3,2];u.label=5;case 5:throw this.transformError(n)}}))}))},t.prototype.getRetryConfig=function(t){return t||this.retry},t.prototype.getRequestOptions=function(t){return n(this,void 0,void 0,(function(){var e,r,n,a,s;return i(this,(function(i){switch(i.label){case 0:return e=t.accessToken,r="".concat(this.endpoints.api,"/").concat(this.config.projectKey).concat(t.path),(n=o({},t)).path&&delete n.path,n.accessToken&&delete n.accessToken,e?[3,2]:[4,this.auth.getClientGrant()];case 1:a=i.sent(),e=a.accessToken,i.label=2;case 2:return s=o(o(o({},this.axios.defaults.headers),{Authorization:"Bearer ".concat(e)}),n.headers),"string"==typeof t.correlationId&&""!==t.correlationId&&(s["X-Correlation-ID"]=t.correlationId,delete t.correlationId),[2,o(o({},n),{url:r,headers:s})]}}))}))},t.prototype.calculateDelay=function(t,e){if(!e||0===t)return 0;var r=e.delayMs*Math.pow(2,t-1);if(e.jitter){var o=r*(1+1/(t+1));return Math.floor(Math.random()*o)}return r},t.prototype.isRetryableError=function(t){return!t.isAxiosError||!t.request||!t.response||d.includes(t.response.status)},t.prototype.extractCommonRequestOptions=function(t){return t?{correlationId:t.correlationId,params:t.params,retry:t.retry}:{}},t.prototype.applyStore=function(t,e){return"string"==typeof e&&""!==e?"/in-store/key=".concat(e).concat(t):this.config.storeKey?"/in-store/key=".concat(this.config.storeKey).concat(t):t},t.prototype.transformError=function(t){return t.isAxiosError?p.CommercetoolsError.fromAxiosError(t):t},t.validateConfig=function(t){var e=[];if(t?(t.projectKey?"string"!=typeof t.projectKey&&e.push("The `projectKey` property must be a string"):e.push("The `projectKey` property is empty"),t.clientId?"string"!=typeof t.clientId&&e.push("The `clientId` property must be a string"):e.push("The `clientId` property is empty"),t.clientSecret?"string"!=typeof t.clientSecret&&e.push("The `clientSecret` property must be a string"):e.push("The `clientSecret` property is empty"),Array.isArray(t.clientScopes)?0===t.clientScopes.length&&e.push("The `clientScopes` property must have at least 1 scope defined"):e.push("The `clientScopes` property must be an array")):e.push("The config object missing or empty"),e.length)throw new p.CommercetoolsError("The configuration object passed in to the `CommercetoolsApi` constructor is not valid: \n"+e.map((function(t){return"• ".concat(t)})).join("\n"))},t}();e.CommercetoolsApi=m},3713:function(t,e,r){var o=this&&this.__createBinding||(Object.create?function(t,e,r,o){void 0===o&&(o=r);var n=Object.getOwnPropertyDescriptor(e,r);n&&!("get"in n?!e.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,o,n)}:function(t,e,r,o){void 0===o&&(o=r),t[o]=e[r]}),n=this&&this.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||o(e,t,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(9818),e),n(r(7013),e)},7013:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},2442:function(t,e,r){var o=this&&this.__assign||function(){return o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var n in e=arguments[r])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},o.apply(this,arguments)},n=this&&this.__awaiter||function(t,e,r,o){return new(r||(r=Promise))((function(n,i){function a(t){try{c(o.next(t))}catch(t){i(t)}}function s(t){try{c(o.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?n(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}c((o=o.apply(t,e||[])).next())}))},i=this&&this.__generator||function(t,e){var r,o,n,i,a={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,o&&(n=2&i[0]?o.return:i[0]?o.throw||((n=o.return)&&n.call(o),0):o.next)&&!(n=n.call(o,i[1])).done)return n;switch(o=0,n&&(i=[2&i[0],n.value]),i[0]){case 0:case 1:n=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,o=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((n=(n=a.trys).length>0&&n[n.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!n||i[1]>n[0]&&i[1]<n[3])){a.label=i[1];break}if(6===i[0]&&a.label<n[1]){a.label=n[1],n=i;break}if(n&&a.label<n[2]){a.label=n[2],a.ops.push(i);break}n[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],o=0}finally{r=n=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.CommercetoolsAuth=void 0;var a=r(2915),s=r(8003),c=r(3032),u={refreshIfWithinSecs:1800,timeoutMs:5e3},p=function(){function t(t){if(this.grantPromise=Promise.resolve(),this.config=o(o({},u),t),!this.config.clientScopes.length)throw new a.CommercetoolsError("`config.clientScopes` must contain at least one scope");this.api=new c.CommercetoolsAuthApi(t)}return t.prototype.getClientGrant=function(){return n(this,void 0,void 0,(function(){var t,e;return i(this,(function(r){switch(r.label){case 0:return[4,this.grantPromise];case 1:return r.sent(),this.grant&&!this.grant.expiresWithin(this.config.refreshIfWithinSecs)?[2,this.grant]:(this.grantPromise=this.api.getClientGrant(this.config.clientScopes),t=this,e=s.CommercetoolsGrant.bind,[4,this.grantPromise]);case 2:return t.grant=new(e.apply(s.CommercetoolsGrant,[void 0,r.sent()])),[2,this.grant]}}))}))},t.prototype.refreshCustomerGrant=function(t){return n(this,void 0,void 0,(function(){var e;return i(this,(function(r){switch(r.label){case 0:return[4,this.getClientGrant()];case 1:return r.sent(),[4,this.api.refreshGrant(t)];case 2:return e=r.sent(),[2,new s.CommercetoolsGrant(o(o({},e),{refresh_token:t}))]}}))}))},t.prototype.login=function(t){return n(this,void 0,void 0,(function(){var e,r;return i(this,(function(n){switch(n.label){case 0:if(!(e=t.scopes||this.config.customerScopes))throw new a.CommercetoolsError("Customer scopes must be set on either the `options` parameter of this `login` method, or on the `customerScopes` property of the `CommercetoolsAuth` constructor");return[4,this.getClientGrant()];case 1:return n.sent(),[4,this.api.login(o(o({},t),{scopes:e}))];case 2:return r=n.sent(),[2,new s.CommercetoolsGrant(r)]}}))}))},t.prototype.getAnonymousGrant=function(t){return n(this,void 0,void 0,(function(){var e,r,o;return i(this,(function(n){switch(n.label){case 0:if(e=(null==t?void 0:t.scopes)||this.config.customerScopes,r=null==t?void 0:t.anonymousId,!e)throw new a.CommercetoolsError("Customer scopes must be set on either the `options` parameter of this `login` method, or on the `customerScopes` property of the `CommercetoolsAuth` constructor");return[4,this.getClientGrant()];case 1:return n.sent(),[4,this.api.getAnonymousGrant({scopes:e,anonymousId:r})];case 2:return o=n.sent(),[2,new s.CommercetoolsGrant(o)]}}))}))},t.prototype.logout=function(t){return n(this,void 0,void 0,(function(){return i(this,(function(e){switch(e.label){case 0:return[4,this.api.logout(t)];case 1:return e.sent(),[2]}}))}))},t.prototype.revokeToken=function(t){return n(this,void 0,void 0,(function(){return i(this,(function(e){switch(e.label){case 0:return[4,this.api.revokeToken(t)];case 1:return e.sent(),[2]}}))}))},t}();e.CommercetoolsAuth=p},3032:function(t,e,r){var o=this&&this.__assign||function(){return o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var n in e=arguments[r])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},o.apply(this,arguments)},n=this&&this.__awaiter||function(t,e,r,o){return new(r||(r=Promise))((function(n,i){function a(t){try{c(o.next(t))}catch(t){i(t)}}function s(t){try{c(o.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?n(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}c((o=o.apply(t,e||[])).next())}))},i=this&&this.__generator||function(t,e){var r,o,n,i,a={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,o&&(n=2&i[0]?o.return:i[0]?o.throw||((n=o.return)&&n.call(o),0):o.next)&&!(n=n.call(o,i[1])).done)return n;switch(o=0,n&&(i=[2&i[0],n.value]),i[0]){case 0:case 1:n=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,o=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((n=(n=a.trys).length>0&&n[n.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!n||i[1]>n[0]&&i[1]<n[3])){a.label=i[1];break}if(6===i[0]&&a.label<n[1]){a.label=n[1],n=i;break}if(n&&a.label<n[2]){a.label=n[2],a.ops.push(i);break}n[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],o=0}finally{r=n=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},a=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.CommercetoolsAuthApi=void 0;var s=r(2849),c=r(2915),u=r(7530),p=r(7111),l=r(9017),f=a(r(9669)),h=r(4060),y=r(893),d=function(){function t(t){this.config=t,this.endpoints=p.REGION_URLS[this.config.region],this.userAgent=(0,y.buildUserAgent)(this.config.systemIdentifier)}return t.prototype.getClientGrant=function(t){return n(this,void 0,void 0,(function(){return i(this,(function(e){return[2,this.post("/token",{grant_type:s.GrantType.CLIENT_CREDENTIALS,scope:(0,u.scopeArrayToRequestString)(t,this.config.projectKey)})]}))}))},t.prototype.refreshGrant=function(t){return n(this,void 0,void 0,(function(){return i(this,(function(e){switch(e.label){case 0:return[4,this.post("/token",{grant_type:s.GrantType.REFRESH_TOKEN,refresh_token:t})];case 1:return[2,e.sent()]}}))}))},t.prototype.login=function(t){return n(this,void 0,void 0,(function(){return i(this,(function(e){return[2,this.post("/".concat(this.config.projectKey).concat(this.applyStore("/customers/token",t.storeKey)),{username:t.username,password:t.password,grant_type:s.GrantType.PASSWORD,scope:(0,u.scopeArrayToRequestString)(t.scopes,this.config.projectKey)})]}))}))},t.prototype.revokeToken=function(t){return n(this,void 0,void 0,(function(){return i(this,(function(e){switch(e.label){case 0:return[4,this.post("/token/revoke",{token:t.tokenValue,token_type_hint:t.tokenType})];case 1:return e.sent(),[2]}}))}))},t.prototype.logout=function(t){return n(this,void 0,void 0,(function(){var e,r;return i(this,(function(o){switch(o.label){case 0:return[4,Promise.allSettled([this.revokeToken({tokenType:"access_token",tokenValue:t.accessToken}),this.revokeToken({tokenType:"refresh_token",tokenValue:t.refreshToken})])];case 1:if(e=o.sent(),(r=e.reduce((function(t,e){return"rejected"===e.status&&t.push(e.reason),t}),[])).length)throw new c.CommercetoolsError("Logout failed in one or more calls to the token revocation endpoint",r);return[2]}}))}))},t.prototype.getAnonymousGrant=function(t){var e;return n(this,void 0,void 0,(function(){var r;return i(this,(function(o){return r={grant_type:s.GrantType.CLIENT_CREDENTIALS},(null===(e=null==t?void 0:t.scopes)||void 0===e?void 0:e.length)&&(r.scope=(0,u.scopeArrayToRequestString)(t.scopes,this.config.projectKey)),(null==t?void 0:t.anonymousId)&&(r.anonymous_id=t.anonymousId),[2,this.post("/".concat(this.config.projectKey,"/anonymous/token"),r)]}))}))},t.prototype.post=function(t,e){return n(this,void 0,void 0,(function(){var r,n,a;return i(this,(function(i){switch(i.label){case 0:r={url:"".concat(this.endpoints.auth,"/oauth").concat(t),method:"POST",data:new URLSearchParams(e).toString()},n={Authorization:"Basic ".concat((0,l.base64EncodeForBasicAuth)(this.config.clientId,this.config.clientSecret)),"Content-Type":"application/x-www-form-urlencoded"},i.label=1;case 1:return i.trys.push([1,3,,4]),[4,(0,f.default)(o(o({},r),{headers:n,timeout:this.config.timeoutMs||h.DEFAULT_REQUEST_TIMEOUT_MS}))];case 2:return[2,i.sent().data];case 3:if((a=i.sent()).isAxiosError)throw c.CommercetoolsError.fromAxiosError(a);throw a;case 4:return[2]}}))}))},t.prototype.applyStore=function(t,e){return"string"==typeof e&&""!==e?"/in-store/key=".concat(e).concat(t):this.config.storeKey?"/in-store/key=".concat(this.config.storeKey).concat(t):t},t}();e.CommercetoolsAuthApi=d},8003:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.CommercetoolsGrant=void 0;var o=r(7530),n=function(){function t(t){this.accessToken="",this.expiresIn=0,this.expiresAt=new Date,this.scopes=[],this.accessToken=t.access_token,this.expiresIn=t.expires_in,this.scopes=(0,o.scopeRequestStringToArray)(t.scope),this.anonymousId=this.extractKeyFromScope("anonymous_id",t.scope),this.customerId=this.extractKeyFromScope("customer_id",t.scope),this.expiresAt=new Date((new Date).getTime()+1e3*t.expires_in),"refresh_token"in t&&t.refresh_token&&(this.refreshToken=t.refresh_token)}return t.prototype.expiresWithin=function(t){var e=(new Date).getTime()+1e3*t;return this.expiresAt.getTime()<e},t.prototype.extractKeyFromScope=function(t,e){if(e&&t){var r=null==e?void 0:e.split(" ");if(Array.isArray(r)&&0!==r.length){var o=r.find((function(e){return e.slice(0,t.length+1)==="".concat(t,":")}));return o?o.slice(t.length+1):void 0}}},t}();e.CommercetoolsGrant=n},7111:(t,e,r)=>{var o;Object.defineProperty(e,"__esModule",{value:!0}),e.INVALID_SCOPES=e.REGION_URLS=void 0;var n=r(9291);e.REGION_URLS=((o={})[n.Region.EUROPE_GCP]={auth:"https://auth.europe-west1.gcp.commercetools.com",api:"https://api.europe-west1.gcp.commercetools.com"},o[n.Region.EUROPE_AWS]={auth:"https://auth.eu-central-1.aws.commercetools.com",api:"https://api.eu-central-1.aws.commercetools.com"},o[n.Region.NORTH_AMERICA_GCP]={auth:"https://auth.us-central1.gcp.commercetools.com",api:"https://api.us-central1.gcp.commercetools.com"},o[n.Region.NORTH_AMERICA_AWS]={auth:"https://auth.us-east-2.aws.commercetools.com",api:"https://api.us-east-2.aws.commercetools.com"},o[n.Region.AUSTRALIA_GCP]={auth:"https://auth.australia-southeast1.gcp.commercetools.com",api:"https://api.australia-southeast1.gcp.commercetools.com"},o),e.INVALID_SCOPES=["anonymous_id","customer_id"]},7443:function(t,e,r){var o=this&&this.__createBinding||(Object.create?function(t,e,r,o){void 0===o&&(o=r);var n=Object.getOwnPropertyDescriptor(e,r);n&&!("get"in n?!e.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,o,n)}:function(t,e,r,o){void 0===o&&(o=r),t[o]=e[r]}),n=this&&this.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||o(e,t,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(2442),e),n(r(8003),e)},7530:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.scopeRequestStringToArray=e.scopeArrayToRequestString=void 0;var o=r(7111);e.scopeArrayToRequestString=function(t,e){return t?t.map((function(t){return"".concat(t,":").concat(e)})).join(" "):""},e.scopeRequestStringToArray=function(t){return t?t.split(" ").map((function(t){return t.split(":")[0]})).filter((function(t){return!o.INVALID_SCOPES.includes(t)})):[]}},2849:(t,e)=>{var r;Object.defineProperty(e,"__esModule",{value:!0}),e.GrantType=void 0,(r=e.GrantType||(e.GrantType={})).CLIENT_CREDENTIALS="client_credentials",r.REFRESH_TOKEN="refresh_token",r.PASSWORD="password"},9017:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.base64EncodeForBasicAuth=void 0,e.base64EncodeForBasicAuth=function(t,e){var r="".concat(t,":").concat(e);return btoa(r)}},4060:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_REQUEST_TIMEOUT_MS=void 0,e.DEFAULT_REQUEST_TIMEOUT_MS=5e3},6781:function(t,e,r){var o,n=this&&this.__extends||(o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},o(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.CommercetoolsError=void 0;var a=i(r(4530)),s=r(893),c=function(t){function e(r,o,n){var i=t.call(this,r)||this;return i.isCommercetoolsError=!0,i.data=o,i.status=n,Object.setPrototypeOf(i,e.prototype),i}return n(e,t),e.fromAxiosError=function(t){var r,o,n,i,a,c,u,p;return new e(t.message,{code:t.code,request:{url:null===(r=t.config)||void 0===r?void 0:r.url,method:null===(o=t.config)||void 0===o?void 0:o.method,headers:(0,s.maskSensitiveHeaders)(null===(n=t.config)||void 0===n?void 0:n.headers),params:(0,s.maskSensitiveInput)(null===(i=t.config)||void 0===i?void 0:i.params),data:(0,s.maskSensitiveInput)(this.parseRequestData(t.config))},response:{status:null===(a=t.response)||void 0===a?void 0:a.status,data:(0,s.maskSensitiveInput)(null===(c=t.response)||void 0===c?void 0:c.data),headers:null===(u=t.response)||void 0===u?void 0:u.headers}},null===(p=t.response)||void 0===p?void 0:p.status)},e.parseRequestData=function(t){var e,r,o=null==t?void 0:t.data;if("string"==typeof o&&o){var n="";if("string"==typeof(null===(e=null==t?void 0:t.headers)||void 0===e?void 0:e["Content-Type"])&&(n=null===(r=null==t?void 0:t.headers)||void 0===r?void 0:r["Content-Type"]),"application/json"===n.substring(0,16))try{o=JSON.parse(t.data)}catch(t){}else if("application/x-www-form-urlencoded"===n.substring(0,33))try{var i=new URLSearchParams(t.data),a={};i.forEach((function(t,e,r){var o=r.getAll(e);0===o.length?a[e]="":1===o.length?a[e]=o[0]:a[e]=o})),o=a}catch(t){}}return o},e.prototype.toJSON=function(){return{status:this.status,message:this.message,data:this.data,isCommercetoolsError:!0}},e.prototype.toString=function(){return(0,a.default)(this.toJSON())},e}(Error);e.CommercetoolsError=c},3028:function(t,e,r){var o=this&&this.__createBinding||(Object.create?function(t,e,r,o){void 0===o&&(o=r);var n=Object.getOwnPropertyDescriptor(e,r);n&&!("get"in n?!e.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,o,n)}:function(t,e,r,o){void 0===o&&(o=r),t[o]=e[r]}),n=this&&this.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||o(e,t,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(6781),e)},2915:function(t,e,r){var o=this&&this.__createBinding||(Object.create?function(t,e,r,o){void 0===o&&(o=r);var n=Object.getOwnPropertyDescriptor(e,r);n&&!("get"in n?!e.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,o,n)}:function(t,e,r,o){void 0===o&&(o=r),t[o]=e[r]}),n=this&&this.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||o(e,t,r)};Object.defineProperty(e,"__esModule",{value:!0}),e.Region=void 0,n(r(3028),e),n(r(7443),e),n(r(3713),e);var i=r(9291);Object.defineProperty(e,"Region",{enumerable:!0,get:function(){return i.Region}}),n(r(893),e),n(r(6249),e)},625:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},9605:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},5554:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},4294:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},5991:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},5714:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},7942:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},9906:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},4241:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},146:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},5167:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},4236:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},6249:function(t,e,r){var o=this&&this.__createBinding||(Object.create?function(t,e,r,o){void 0===o&&(o=r);var n=Object.getOwnPropertyDescriptor(e,r);n&&!("get"in n?!e.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,o,n)}:function(t,e,r,o){void 0===o&&(o=r),t[o]=e[r]}),n=this&&this.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||o(e,t,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(9605),e),n(r(625),e),n(r(5554),e),n(r(4294),e),n(r(5991),e),n(r(5714),e),n(r(9906),e),n(r(7942),e),n(r(4241),e),n(r(146),e),n(r(5167),e),n(r(4236),e),n(r(2949),e),n(r(492),e),n(r(6871),e),n(r(6487),e),n(r(8386),e),n(r(4946),e),n(r(6313),e),n(r(5285),e),n(r(5283),e),n(r(3708),e),n(r(6883),e),n(r(2246),e),n(r(4089),e),n(r(6614),e),n(r(7607),e),n(r(7183),e),n(r(2569),e),n(r(1027),e),n(r(6080),e),n(r(1613),e),n(r(721),e)},2949:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},492:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},6871:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},8386:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},6487:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},4946:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},5285:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},5283:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},3708:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},6313:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},6883:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},2246:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},4089:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},6614:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},7607:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},7183:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},2569:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},1027:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},6080:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},1613:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},721:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},9291:(t,e)=>{var r;Object.defineProperty(e,"__esModule",{value:!0}),e.Region=void 0,(r=e.Region||(e.Region={})).NORTH_AMERICA_GCP="north_america_gcp",r.NORTH_AMERICA_AWS="north_america_aws",r.EUROPE_GCP="europe_gcp",r.EUROPE_AWS="europe_aws",r.AUSTRALIA_GCP="australia_gcp"},3930:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.formatAsKey=void 0;var o=r(3028);e.formatAsKey=function(t){var e="";if("string"!=typeof t)throw new o.CommercetoolsError("The [input] parameter must be a string");if((e=(e=(e=(e=(e=(e=t.trim().toLowerCase()).replace(/ {2,}/g,"")).replace(/&/g,"and")).replace(/[ _]/g,"-")).replace(/[^0-9a-z-]+/g,"")).replace(/-{2,}/g,"-")).length&&"-"===e[0]&&(e=e.slice(1)),e.length&&"-"===e[e.length-1]&&(e=e.slice(0,-1)),e.length<2)throw new o.CommercetoolsError("Formatted key did not meet minimum length of 2 characters: ".concat(e));if(e.length>256)throw new o.CommercetoolsError("Formatted key exceeds the maximum length of 256 characters: ".concat(e));return e}},893:function(t,e,r){var o=this&&this.__createBinding||(Object.create?function(t,e,r,o){void 0===o&&(o=r);var n=Object.getOwnPropertyDescriptor(e,r);n&&!("get"in n?!e.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,o,n)}:function(t,e,r,o){void 0===o&&(o=r),t[o]=e[r]}),n=this&&this.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||o(e,t,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(3930),e),n(r(3190),e),n(r(9998),e)},9998:function(t,e,r){var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.maskSensitiveData=e.maskSensitiveHeaders=e.maskSensitiveInput=e.DEFAULT_MASKING_STRING=e.SENSITIVE_HEADER_NAMES=e.SENSITIVE_PROPERTY_NAMES=void 0;var n=o(r(3465)),i=o(r(3692));function a(t,r,o){if(void 0===o&&(o=e.DEFAULT_MASKING_STRING),"object"==typeof t){var a=(0,n.default)(t);return(0,i.default)(a).forEach((function(){var t,e;r.includes(null!==(e=null===(t=this.key)||void 0===t?void 0:t.toLowerCase())&&void 0!==e?e:"")&&this.update(o)})),a}return t}e.SENSITIVE_PROPERTY_NAMES=["password","refresh_token"],e.SENSITIVE_HEADER_NAMES=["authorization"],e.DEFAULT_MASKING_STRING="********",e.maskSensitiveInput=function(t){return a(t,e.SENSITIVE_PROPERTY_NAMES)},e.maskSensitiveHeaders=function(t){return a(t,e.SENSITIVE_HEADER_NAMES)},e.maskSensitiveData=a},3190:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.buildUserAgent=void 0,e.buildUserAgent=function(t){var e="@gradientedge/commercetools-utils";return t&&(e="".concat(e," (").concat(t,")")),e}},9669:(t,e,r)=>{t.exports=r(1609)},5448:(t,e,r)=>{var o=r(4867),n=r(6026),i=r(4372),a=r(5327),s=r(4097),c=r(4109),u=r(7985),p=r(5061),l=r(7874),f=r(5263);t.exports=function(t){return new Promise((function(e,r){var h,y=t.data,d=t.headers,m=t.responseType;function v(){t.cancelToken&&t.cancelToken.unsubscribe(h),t.signal&&t.signal.removeEventListener("abort",h)}o.isFormData(y)&&delete d["Content-Type"];var g=new XMLHttpRequest;if(t.auth){var b=t.auth.username||"",O=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";d.Authorization="Basic "+btoa(b+":"+O)}var S=s(t.baseURL,t.url);function _(){if(g){var o="getAllResponseHeaders"in g?c(g.getAllResponseHeaders()):null,i={data:m&&"text"!==m&&"json"!==m?g.response:g.responseText,status:g.status,statusText:g.statusText,headers:o,config:t,request:g};n((function(t){e(t),v()}),(function(t){r(t),v()}),i),g=null}}if(g.open(t.method.toUpperCase(),a(S,t.params,t.paramsSerializer),!0),g.timeout=t.timeout,"onloadend"in g?g.onloadend=_:g.onreadystatechange=function(){g&&4===g.readyState&&(0!==g.status||g.responseURL&&0===g.responseURL.indexOf("file:"))&&setTimeout(_)},g.onabort=function(){g&&(r(p("Request aborted",t,"ECONNABORTED",g)),g=null)},g.onerror=function(){r(p("Network Error",t,null,g)),g=null},g.ontimeout=function(){var e=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded",o=t.transitional||l;t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),r(p(e,t,o.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",g)),g=null},o.isStandardBrowserEnv()){var E=(t.withCredentials||u(S))&&t.xsrfCookieName?i.read(t.xsrfCookieName):void 0;E&&(d[t.xsrfHeaderName]=E)}"setRequestHeader"in g&&o.forEach(d,(function(t,e){void 0===y&&"content-type"===e.toLowerCase()?delete d[e]:g.setRequestHeader(e,t)})),o.isUndefined(t.withCredentials)||(g.withCredentials=!!t.withCredentials),m&&"json"!==m&&(g.responseType=t.responseType),"function"==typeof t.onDownloadProgress&&g.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&g.upload&&g.upload.addEventListener("progress",t.onUploadProgress),(t.cancelToken||t.signal)&&(h=function(t){g&&(r(!t||t&&t.type?new f("canceled"):t),g.abort(),g=null)},t.cancelToken&&t.cancelToken.subscribe(h),t.signal&&(t.signal.aborted?h():t.signal.addEventListener("abort",h))),y||(y=null),g.send(y)}))}},1609:(t,e,r)=>{var o=r(4867),n=r(1849),i=r(321),a=r(7185),s=function t(e){var r=new i(e),s=n(i.prototype.request,r);return o.extend(s,i.prototype,r),o.extend(s,r),s.create=function(r){return t(a(e,r))},s}(r(5546));s.Axios=i,s.Cancel=r(5263),s.CancelToken=r(4972),s.isCancel=r(6502),s.VERSION=r(7288).version,s.all=function(t){return Promise.all(t)},s.spread=r(8713),s.isAxiosError=r(6268),t.exports=s,t.exports.default=s},5263:t=>{function e(t){this.message=t}e.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},e.prototype.__CANCEL__=!0,t.exports=e},4972:(t,e,r)=>{var o=r(5263);function n(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var r=this;this.promise.then((function(t){if(r._listeners){var e,o=r._listeners.length;for(e=0;e<o;e++)r._listeners[e](t);r._listeners=null}})),this.promise.then=function(t){var e,o=new Promise((function(t){r.subscribe(t),e=t})).then(t);return o.cancel=function(){r.unsubscribe(e)},o},t((function(t){r.reason||(r.reason=new o(t),e(r.reason))}))}n.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},n.prototype.subscribe=function(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]},n.prototype.unsubscribe=function(t){if(this._listeners){var e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}},n.source=function(){var t;return{token:new n((function(e){t=e})),cancel:t}},t.exports=n},6502:t=>{t.exports=function(t){return!(!t||!t.__CANCEL__)}},321:(t,e,r)=>{var o=r(4867),n=r(5327),i=r(782),a=r(3572),s=r(7185),c=r(4875),u=c.validators;function p(t){this.defaults=t,this.interceptors={request:new i,response:new i}}p.prototype.request=function(t,e){"string"==typeof t?(e=e||{}).url=t:e=t||{},(e=s(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var r=e.transitional;void 0!==r&&c.assertOptions(r,{silentJSONParsing:u.transitional(u.boolean),forcedJSONParsing:u.transitional(u.boolean),clarifyTimeoutError:u.transitional(u.boolean)},!1);var o=[],n=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(n=n&&t.synchronous,o.unshift(t.fulfilled,t.rejected))}));var i,p=[];if(this.interceptors.response.forEach((function(t){p.push(t.fulfilled,t.rejected)})),!n){var l=[a,void 0];for(Array.prototype.unshift.apply(l,o),l=l.concat(p),i=Promise.resolve(e);l.length;)i=i.then(l.shift(),l.shift());return i}for(var f=e;o.length;){var h=o.shift(),y=o.shift();try{f=h(f)}catch(t){y(t);break}}try{i=a(f)}catch(t){return Promise.reject(t)}for(;p.length;)i=i.then(p.shift(),p.shift());return i},p.prototype.getUri=function(t){return t=s(this.defaults,t),n(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},o.forEach(["delete","get","head","options"],(function(t){p.prototype[t]=function(e,r){return this.request(s(r||{},{method:t,url:e,data:(r||{}).data}))}})),o.forEach(["post","put","patch"],(function(t){p.prototype[t]=function(e,r,o){return this.request(s(o||{},{method:t,url:e,data:r}))}})),t.exports=p},782:(t,e,r)=>{var o=r(4867);function n(){this.handlers=[]}n.prototype.use=function(t,e,r){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1},n.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},n.prototype.forEach=function(t){o.forEach(this.handlers,(function(e){null!==e&&t(e)}))},t.exports=n},4097:(t,e,r)=>{var o=r(1793),n=r(7303);t.exports=function(t,e){return t&&!o(e)?n(t,e):e}},5061:(t,e,r)=>{var o=r(481);t.exports=function(t,e,r,n,i){var a=new Error(t);return o(a,e,r,n,i)}},3572:(t,e,r)=>{var o=r(4867),n=r(8527),i=r(6502),a=r(5546),s=r(5263);function c(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new s("canceled")}t.exports=function(t){return c(t),t.headers=t.headers||{},t.data=n.call(t,t.data,t.headers,t.transformRequest),t.headers=o.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),o.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),(t.adapter||a.adapter)(t).then((function(e){return c(t),e.data=n.call(t,e.data,e.headers,t.transformResponse),e}),(function(e){return i(e)||(c(t),e&&e.response&&(e.response.data=n.call(t,e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))}},481:t=>{t.exports=function(t,e,r,o,n){return t.config=e,r&&(t.code=r),t.request=o,t.response=n,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},t}},7185:(t,e,r)=>{var o=r(4867);t.exports=function(t,e){e=e||{};var r={};function n(t,e){return o.isPlainObject(t)&&o.isPlainObject(e)?o.merge(t,e):o.isPlainObject(e)?o.merge({},e):o.isArray(e)?e.slice():e}function i(r){return o.isUndefined(e[r])?o.isUndefined(t[r])?void 0:n(void 0,t[r]):n(t[r],e[r])}function a(t){if(!o.isUndefined(e[t]))return n(void 0,e[t])}function s(r){return o.isUndefined(e[r])?o.isUndefined(t[r])?void 0:n(void 0,t[r]):n(void 0,e[r])}function c(r){return r in e?n(t[r],e[r]):r in t?n(void 0,t[r]):void 0}var u={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:c};return o.forEach(Object.keys(t).concat(Object.keys(e)),(function(t){var e=u[t]||i,n=e(t);o.isUndefined(n)&&e!==c||(r[t]=n)})),r}},6026:(t,e,r)=>{var o=r(5061);t.exports=function(t,e,r){var n=r.config.validateStatus;r.status&&n&&!n(r.status)?e(o("Request failed with status code "+r.status,r.config,null,r.request,r)):t(r)}},8527:(t,e,r)=>{var o=r(4867),n=r(5546);t.exports=function(t,e,r){var i=this||n;return o.forEach(r,(function(r){t=r.call(i,t,e)})),t}},5546:(t,e,r)=>{var o=r(4867),n=r(6016),i=r(481),a=r(7874),s={"Content-Type":"application/x-www-form-urlencoded"};function c(t,e){!o.isUndefined(t)&&o.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var u,p={transitional:a,adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(u=r(5448)),u),transformRequest:[function(t,e){return n(e,"Accept"),n(e,"Content-Type"),o.isFormData(t)||o.isArrayBuffer(t)||o.isBuffer(t)||o.isStream(t)||o.isFile(t)||o.isBlob(t)?t:o.isArrayBufferView(t)?t.buffer:o.isURLSearchParams(t)?(c(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):o.isObject(t)||e&&"application/json"===e["Content-Type"]?(c(e,"application/json"),function(t,e,r){if(o.isString(t))try{return(0,JSON.parse)(t),o.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(0,JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){var e=this.transitional||p.transitional,r=e&&e.silentJSONParsing,n=e&&e.forcedJSONParsing,a=!r&&"json"===this.responseType;if(a||n&&o.isString(t)&&t.length)try{return JSON.parse(t)}catch(t){if(a){if("SyntaxError"===t.name)throw i(t,this,"E_JSON_PARSE");throw t}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};o.forEach(["delete","get","head"],(function(t){p.headers[t]={}})),o.forEach(["post","put","patch"],(function(t){p.headers[t]=o.merge(s)})),t.exports=p},7874:t=>{t.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},7288:t=>{t.exports={version:"0.26.1"}},1849:t=>{t.exports=function(t,e){return function(){for(var r=new Array(arguments.length),o=0;o<r.length;o++)r[o]=arguments[o];return t.apply(e,r)}}},5327:(t,e,r)=>{var o=r(4867);function n(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,e,r){if(!e)return t;var i;if(r)i=r(e);else if(o.isURLSearchParams(e))i=e.toString();else{var a=[];o.forEach(e,(function(t,e){null!=t&&(o.isArray(t)?e+="[]":t=[t],o.forEach(t,(function(t){o.isDate(t)?t=t.toISOString():o.isObject(t)&&(t=JSON.stringify(t)),a.push(n(e)+"="+n(t))})))})),i=a.join("&")}if(i){var s=t.indexOf("#");-1!==s&&(t=t.slice(0,s)),t+=(-1===t.indexOf("?")?"?":"&")+i}return t}},7303:t=>{t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},4372:(t,e,r)=>{var o=r(4867);t.exports=o.isStandardBrowserEnv()?{write:function(t,e,r,n,i,a){var s=[];s.push(t+"="+encodeURIComponent(e)),o.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),o.isString(n)&&s.push("path="+n),o.isString(i)&&s.push("domain="+i),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},1793:t=>{t.exports=function(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}},6268:(t,e,r)=>{var o=r(4867);t.exports=function(t){return o.isObject(t)&&!0===t.isAxiosError}},7985:(t,e,r)=>{var o=r(4867);t.exports=o.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function n(t){var o=t;return e&&(r.setAttribute("href",o),o=r.href),r.setAttribute("href",o),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return t=n(window.location.href),function(e){var r=o.isString(e)?n(e):e;return r.protocol===t.protocol&&r.host===t.host}}():function(){return!0}},6016:(t,e,r)=>{var o=r(4867);t.exports=function(t,e){o.forEach(t,(function(r,o){o!==e&&o.toUpperCase()===e.toUpperCase()&&(t[e]=r,delete t[o])}))}},4109:(t,e,r)=>{var o=r(4867),n=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,r,i,a={};return t?(o.forEach(t.split("\n"),(function(t){if(i=t.indexOf(":"),e=o.trim(t.substr(0,i)).toLowerCase(),r=o.trim(t.substr(i+1)),e){if(a[e]&&n.indexOf(e)>=0)return;a[e]="set-cookie"===e?(a[e]?a[e]:[]).concat([r]):a[e]?a[e]+", "+r:r}})),a):a}},8713:t=>{t.exports=function(t){return function(e){return t.apply(null,e)}}},4875:(t,e,r)=>{var o=r(7288).version,n={};["object","boolean","number","function","string","symbol"].forEach((function(t,e){n[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}}));var i={};n.transitional=function(t,e,r){function n(t,e){return"[Axios v"+o+"] Transitional option '"+t+"'"+e+(r?". "+r:"")}return function(r,o,a){if(!1===t)throw new Error(n(o," has been removed"+(e?" in "+e:"")));return e&&!i[o]&&(i[o]=!0,console.warn(n(o," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(r,o,a)}},t.exports={assertOptions:function(t,e,r){if("object"!=typeof t)throw new TypeError("options must be an object");for(var o=Object.keys(t),n=o.length;n-- >0;){var i=o[n],a=e[i];if(a){var s=t[i],c=void 0===s||a(s,i,t);if(!0!==c)throw new TypeError("option "+i+" must be "+c)}else if(!0!==r)throw Error("Unknown option "+i)}},validators:n}},4867:(t,e,r)=>{var o=r(1849),n=Object.prototype.toString;function i(t){return Array.isArray(t)}function a(t){return void 0===t}function s(t){return"[object ArrayBuffer]"===n.call(t)}function c(t){return null!==t&&"object"==typeof t}function u(t){if("[object Object]"!==n.call(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function p(t){return"[object Function]"===n.call(t)}function l(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),i(t))for(var r=0,o=t.length;r<o;r++)e.call(null,t[r],r,t);else for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.call(null,t[n],n,t)}t.exports={isArray:i,isArrayBuffer:s,isBuffer:function(t){return null!==t&&!a(t)&&null!==t.constructor&&!a(t.constructor)&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)},isFormData:function(t){return"[object FormData]"===n.call(t)},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&s(t.buffer)},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isObject:c,isPlainObject:u,isUndefined:a,isDate:function(t){return"[object Date]"===n.call(t)},isFile:function(t){return"[object File]"===n.call(t)},isBlob:function(t){return"[object Blob]"===n.call(t)},isFunction:p,isStream:function(t){return c(t)&&p(t.pipe)},isURLSearchParams:function(t){return"[object URLSearchParams]"===n.call(t)},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:l,merge:function t(){var e={};function r(r,o){u(e[o])&&u(r)?e[o]=t(e[o],r):u(r)?e[o]=t({},r):i(r)?e[o]=r.slice():e[o]=r}for(var o=0,n=arguments.length;o<n;o++)l(arguments[o],r);return e},extend:function(t,e,r){return l(e,(function(e,n){t[n]=r&&"function"==typeof e?o(e,r):e})),t},trim:function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")},stripBOM:function(t){return 65279===t.charCodeAt(0)&&(t=t.slice(1)),t}}},1924:(t,e,r)=>{var o=r(210),n=r(5559),i=n(o("String.prototype.indexOf"));t.exports=function(t,e){var r=o(t,!!e);return"function"==typeof r&&i(t,".prototype.")>-1?n(r):r}},5559:(t,e,r)=>{var o=r(8612),n=r(210),i=n("%Function.prototype.apply%"),a=n("%Function.prototype.call%"),s=n("%Reflect.apply%",!0)||o.call(a,i),c=n("%Object.getOwnPropertyDescriptor%",!0),u=n("%Object.defineProperty%",!0),p=n("%Math.max%");if(u)try{u({},"a",{value:1})}catch(t){u=null}t.exports=function(t){var e=s(o,a,arguments);if(c&&u){var r=c(e,"length");r.configurable&&u(e,"length",{value:1+p(0,t.length-(arguments.length-1))})}return e};var l=function(){return s(o,i,arguments)};u?u(t.exports,"apply",{value:l}):t.exports.apply=l},7648:t=>{var e="Function.prototype.bind called on incompatible ",r=Array.prototype.slice,o=Object.prototype.toString,n="[object Function]";t.exports=function(t){var i=this;if("function"!=typeof i||o.call(i)!==n)throw new TypeError(e+i);for(var a,s=r.call(arguments,1),c=function(){if(this instanceof a){var e=i.apply(this,s.concat(r.call(arguments)));return Object(e)===e?e:this}return i.apply(t,s.concat(r.call(arguments)))},u=Math.max(0,i.length-s.length),p=[],l=0;l<u;l++)p.push("$"+l);if(a=Function("binder","return function ("+p.join(",")+"){ return binder.apply(this,arguments); }")(c),i.prototype){var f=function(){};f.prototype=i.prototype,a.prototype=new f,f.prototype=null}return a}},8612:(t,e,r)=>{var o=r(7648);t.exports=Function.prototype.bind||o},210:(t,e,r)=>{var o,n=SyntaxError,i=Function,a=TypeError,s=function(t){try{return i('"use strict"; return ('+t+").constructor;")()}catch(t){}},c=Object.getOwnPropertyDescriptor;if(c)try{c({},"")}catch(t){c=null}var u=function(){throw new a},p=c?function(){try{return u}catch(t){try{return c(arguments,"callee").get}catch(t){return u}}}():u,l=r(1405)(),f=Object.getPrototypeOf||function(t){return t.__proto__},h={},y="undefined"==typeof Uint8Array?o:f(Uint8Array),d={"%AggregateError%":"undefined"==typeof AggregateError?o:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?o:ArrayBuffer,"%ArrayIteratorPrototype%":l?f([][Symbol.iterator]()):o,"%AsyncFromSyncIteratorPrototype%":o,"%AsyncFunction%":h,"%AsyncGenerator%":h,"%AsyncGeneratorFunction%":h,"%AsyncIteratorPrototype%":h,"%Atomics%":"undefined"==typeof Atomics?o:Atomics,"%BigInt%":"undefined"==typeof BigInt?o:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?o:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?o:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?o:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?o:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":h,"%Int8Array%":"undefined"==typeof Int8Array?o:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?o:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?o:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":l?f(f([][Symbol.iterator]())):o,"%JSON%":"object"==typeof JSON?JSON:o,"%Map%":"undefined"==typeof Map?o:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&l?f((new Map)[Symbol.iterator]()):o,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?o:Promise,"%Proxy%":"undefined"==typeof Proxy?o:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?o:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?o:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&l?f((new Set)[Symbol.iterator]()):o,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?o:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":l?f(""[Symbol.iterator]()):o,"%Symbol%":l?Symbol:o,"%SyntaxError%":n,"%ThrowTypeError%":p,"%TypedArray%":y,"%TypeError%":a,"%Uint8Array%":"undefined"==typeof Uint8Array?o:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?o:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?o:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?o:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?o:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?o:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?o:WeakSet},m=function t(e){var r;if("%AsyncFunction%"===e)r=s("async function () {}");else if("%GeneratorFunction%"===e)r=s("function* () {}");else if("%AsyncGeneratorFunction%"===e)r=s("async function* () {}");else if("%AsyncGenerator%"===e){var o=t("%AsyncGeneratorFunction%");o&&(r=o.prototype)}else if("%AsyncIteratorPrototype%"===e){var n=t("%AsyncGenerator%");n&&(r=f(n.prototype))}return d[e]=r,r},v={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},g=r(8612),b=r(7642),O=g.call(Function.call,Array.prototype.concat),S=g.call(Function.apply,Array.prototype.splice),_=g.call(Function.call,String.prototype.replace),E=g.call(Function.call,String.prototype.slice),w=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,j=/\\(\\)?/g,x=function(t){var e=E(t,0,1),r=E(t,-1);if("%"===e&&"%"!==r)throw new n("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==e)throw new n("invalid intrinsic syntax, expected opening `%`");var o=[];return _(t,w,(function(t,e,r,n){o[o.length]=r?_(n,j,"$1"):e||t})),o},P=function(t,e){var r,o=t;if(b(v,o)&&(o="%"+(r=v[o])[0]+"%"),b(d,o)){var i=d[o];if(i===h&&(i=m(o)),void 0===i&&!e)throw new a("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:r,name:o,value:i}}throw new n("intrinsic "+t+" does not exist!")};t.exports=function(t,e){if("string"!=typeof t||0===t.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new a('"allowMissing" argument must be a boolean');var r=x(t),o=r.length>0?r[0]:"",i=P("%"+o+"%",e),s=i.name,u=i.value,p=!1,l=i.alias;l&&(o=l[0],S(r,O([0,1],l)));for(var f=1,h=!0;f<r.length;f+=1){var y=r[f],m=E(y,0,1),v=E(y,-1);if(('"'===m||"'"===m||"`"===m||'"'===v||"'"===v||"`"===v)&&m!==v)throw new n("property names with quotes must have matching quotes");if("constructor"!==y&&h||(p=!0),b(d,s="%"+(o+="."+y)+"%"))u=d[s];else if(null!=u){if(!(y in u)){if(!e)throw new a("base intrinsic for "+t+" exists, but the property is not available.");return}if(c&&f+1>=r.length){var g=c(u,y);u=(h=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:u[y]}else h=b(u,y),u=u[y];h&&!p&&(d[s]=u)}}return u}},1405:(t,e,r)=>{var o="undefined"!=typeof Symbol&&Symbol,n=r(5419);t.exports=function(){return"function"==typeof o&&"function"==typeof Symbol&&"symbol"==typeof o("foo")&&"symbol"==typeof Symbol("bar")&&n()}},5419:t=>{t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),r=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(e in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var o=Object.getOwnPropertySymbols(t);if(1!==o.length||o[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var n=Object.getOwnPropertyDescriptor(t,e);if(42!==n.value||!0!==n.enumerable)return!1}return!0}},7642:(t,e,r)=>{var o=r(8612);t.exports=o.call(Function.call,Object.prototype.hasOwnProperty)},4530:(t,e)=>{function r(t,e){var r=[],o=[];return null==e&&(e=function(t,e){return r[0]===e?"[Circular ~]":"[Circular ~."+o.slice(0,r.indexOf(e)).join(".")+"]"}),function(n,i){if(r.length>0){var a=r.indexOf(this);~a?r.splice(a+1):r.push(this),~a?o.splice(a,1/0,n):o.push(n),~r.indexOf(i)&&(i=e.call(this,n,i))}else r.push(i);return null==t?i:t.call(this,n,i)}}(t.exports=function(t,e,o,n){return JSON.stringify(t,r(e,n),o)}).getSerialize=r},3465:(t,e,r)=>{t=r.nmd(t);var o="__lodash_hash_undefined__",n=9007199254740991,i="[object Arguments]",a="[object Boolean]",s="[object Date]",c="[object Function]",u="[object GeneratorFunction]",p="[object Map]",l="[object Number]",f="[object Object]",h="[object Promise]",y="[object RegExp]",d="[object Set]",m="[object String]",v="[object Symbol]",g="[object WeakMap]",b="[object ArrayBuffer]",O="[object DataView]",S="[object Float32Array]",_="[object Float64Array]",E="[object Int8Array]",w="[object Int16Array]",j="[object Int32Array]",x="[object Uint8Array]",P="[object Uint8ClampedArray]",T="[object Uint16Array]",C="[object Uint32Array]",A=/\w*$/,q=/^\[object .+?Constructor\]$/,R=/^(?:0|[1-9]\d*)$/,k={};k[i]=k["[object Array]"]=k[b]=k[O]=k[a]=k[s]=k[S]=k[_]=k[E]=k[w]=k[j]=k[p]=k[l]=k[f]=k[y]=k[d]=k[m]=k[v]=k[x]=k[P]=k[T]=k[C]=!0,k["[object Error]"]=k[c]=k[g]=!1;var I="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,M="object"==typeof self&&self&&self.Object===Object&&self,B=I||M||Function("return this")(),N=e&&!e.nodeType&&e,G=N&&t&&!t.nodeType&&t,D=G&&G.exports===N;function U(t,e){return t.set(e[0],e[1]),t}function L(t,e){return t.add(e),t}function F(t,e,r,o){var n=-1,i=t?t.length:0;for(o&&i&&(r=t[++n]);++n<i;)r=e(r,t[n],n,t);return r}function K(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}function W(t){var e=-1,r=Array(t.size);return t.forEach((function(t,o){r[++e]=[o,t]})),r}function H(t,e){return function(r){return t(e(r))}}function V(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r}var z,$=Array.prototype,J=Function.prototype,Q=Object.prototype,X=B["__core-js_shared__"],Y=(z=/[^.]+$/.exec(X&&X.keys&&X.keys.IE_PROTO||""))?"Symbol(src)_1."+z:"",Z=J.toString,tt=Q.hasOwnProperty,et=Q.toString,rt=RegExp("^"+Z.call(tt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ot=D?B.Buffer:void 0,nt=B.Symbol,it=B.Uint8Array,at=H(Object.getPrototypeOf,Object),st=Object.create,ct=Q.propertyIsEnumerable,ut=$.splice,pt=Object.getOwnPropertySymbols,lt=ot?ot.isBuffer:void 0,ft=H(Object.keys,Object),ht=Bt(B,"DataView"),yt=Bt(B,"Map"),dt=Bt(B,"Promise"),mt=Bt(B,"Set"),vt=Bt(B,"WeakMap"),gt=Bt(Object,"create"),bt=Lt(ht),Ot=Lt(yt),St=Lt(dt),_t=Lt(mt),Et=Lt(vt),wt=nt?nt.prototype:void 0,jt=wt?wt.valueOf:void 0;function xt(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var o=t[e];this.set(o[0],o[1])}}function Pt(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var o=t[e];this.set(o[0],o[1])}}function Tt(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var o=t[e];this.set(o[0],o[1])}}function Ct(t){this.__data__=new Pt(t)}function At(t,e,r){var o=t[e];tt.call(t,e)&&Ft(o,r)&&(void 0!==r||e in t)||(t[e]=r)}function qt(t,e){for(var r=t.length;r--;)if(Ft(t[r][0],e))return r;return-1}function Rt(t,e,r,o,n,h,g){var q;if(o&&(q=h?o(t,n,h,g):o(t)),void 0!==q)return q;if(!zt(t))return t;var R=Kt(t);if(R){if(q=function(t){var e=t.length,r=t.constructor(e);return e&&"string"==typeof t[0]&&tt.call(t,"index")&&(r.index=t.index,r.input=t.input),r}(t),!e)return function(t,e){var r=-1,o=t.length;for(e||(e=Array(o));++r<o;)e[r]=t[r];return e}(t,q)}else{var I=Gt(t),M=I==c||I==u;if(Ht(t))return function(t,e){if(e)return t.slice();var r=new t.constructor(t.length);return t.copy(r),r}(t,e);if(I==f||I==i||M&&!h){if(K(t))return h?t:{};if(q=function(t){return"function"!=typeof t.constructor||Ut(t)?{}:zt(e=at(t))?st(e):{};var e}(M?{}:t),!e)return function(t,e){return It(t,Nt(t),e)}(t,function(t,e){return t&&It(e,$t(e),t)}(q,t))}else{if(!k[I])return h?t:{};q=function(t,e,r,o){var n,i=t.constructor;switch(e){case b:return kt(t);case a:case s:return new i(+t);case O:return function(t,e){var r=e?kt(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}(t,o);case S:case _:case E:case w:case j:case x:case P:case T:case C:return function(t,e){var r=e?kt(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}(t,o);case p:return function(t,e,r){return F(e?r(W(t),!0):W(t),U,new t.constructor)}(t,o,r);case l:case m:return new i(t);case y:return function(t){var e=new t.constructor(t.source,A.exec(t));return e.lastIndex=t.lastIndex,e}(t);case d:return function(t,e,r){return F(e?r(V(t),!0):V(t),L,new t.constructor)}(t,o,r);case v:return n=t,jt?Object(jt.call(n)):{}}}(t,I,Rt,e)}}g||(g=new Ct);var B=g.get(t);if(B)return B;if(g.set(t,q),!R)var N=r?function(t){return function(t,e,r){var o=e(t);return Kt(t)?o:function(t,e){for(var r=-1,o=e.length,n=t.length;++r<o;)t[n+r]=e[r];return t}(o,r(t))}(t,$t,Nt)}(t):$t(t);return function(t,e){for(var r=-1,o=t?t.length:0;++r<o&&!1!==e(t[r],r););}(N||t,(function(n,i){N&&(n=t[i=n]),At(q,i,Rt(n,e,r,o,i,t,g))})),q}function kt(t){var e=new t.constructor(t.byteLength);return new it(e).set(new it(t)),e}function It(t,e,r,o){r||(r={});for(var n=-1,i=e.length;++n<i;){var a=e[n],s=o?o(r[a],t[a],a,r,t):void 0;At(r,a,void 0===s?t[a]:s)}return r}function Mt(t,e){var r,o,n=t.__data__;return("string"==(o=typeof(r=e))||"number"==o||"symbol"==o||"boolean"==o?"__proto__"!==r:null===r)?n["string"==typeof e?"string":"hash"]:n.map}function Bt(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return function(t){return!(!zt(t)||(e=t,Y&&Y in e))&&(Vt(t)||K(t)?rt:q).test(Lt(t));var e}(r)?r:void 0}xt.prototype.clear=function(){this.__data__=gt?gt(null):{}},xt.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},xt.prototype.get=function(t){var e=this.__data__;if(gt){var r=e[t];return r===o?void 0:r}return tt.call(e,t)?e[t]:void 0},xt.prototype.has=function(t){var e=this.__data__;return gt?void 0!==e[t]:tt.call(e,t)},xt.prototype.set=function(t,e){return this.__data__[t]=gt&&void 0===e?o:e,this},Pt.prototype.clear=function(){this.__data__=[]},Pt.prototype.delete=function(t){var e=this.__data__,r=qt(e,t);return!(r<0||(r==e.length-1?e.pop():ut.call(e,r,1),0))},Pt.prototype.get=function(t){var e=this.__data__,r=qt(e,t);return r<0?void 0:e[r][1]},Pt.prototype.has=function(t){return qt(this.__data__,t)>-1},Pt.prototype.set=function(t,e){var r=this.__data__,o=qt(r,t);return o<0?r.push([t,e]):r[o][1]=e,this},Tt.prototype.clear=function(){this.__data__={hash:new xt,map:new(yt||Pt),string:new xt}},Tt.prototype.delete=function(t){return Mt(this,t).delete(t)},Tt.prototype.get=function(t){return Mt(this,t).get(t)},Tt.prototype.has=function(t){return Mt(this,t).has(t)},Tt.prototype.set=function(t,e){return Mt(this,t).set(t,e),this},Ct.prototype.clear=function(){this.__data__=new Pt},Ct.prototype.delete=function(t){return this.__data__.delete(t)},Ct.prototype.get=function(t){return this.__data__.get(t)},Ct.prototype.has=function(t){return this.__data__.has(t)},Ct.prototype.set=function(t,e){var r=this.__data__;if(r instanceof Pt){var o=r.__data__;if(!yt||o.length<199)return o.push([t,e]),this;r=this.__data__=new Tt(o)}return r.set(t,e),this};var Nt=pt?H(pt,Object):function(){return[]},Gt=function(t){return et.call(t)};function Dt(t,e){return!!(e=null==e?n:e)&&("number"==typeof t||R.test(t))&&t>-1&&t%1==0&&t<e}function Ut(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Q)}function Lt(t){if(null!=t){try{return Z.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function Ft(t,e){return t===e||t!=t&&e!=e}(ht&&Gt(new ht(new ArrayBuffer(1)))!=O||yt&&Gt(new yt)!=p||dt&&Gt(dt.resolve())!=h||mt&&Gt(new mt)!=d||vt&&Gt(new vt)!=g)&&(Gt=function(t){var e=et.call(t),r=e==f?t.constructor:void 0,o=r?Lt(r):void 0;if(o)switch(o){case bt:return O;case Ot:return p;case St:return h;case _t:return d;case Et:return g}return e});var Kt=Array.isArray;function Wt(t){return null!=t&&function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=n}(t.length)&&!Vt(t)}var Ht=lt||function(){return!1};function Vt(t){var e=zt(t)?et.call(t):"";return e==c||e==u}function zt(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function $t(t){return Wt(t)?function(t,e){var r=Kt(t)||function(t){return function(t){return function(t){return!!t&&"object"==typeof t}(t)&&Wt(t)}(t)&&tt.call(t,"callee")&&(!ct.call(t,"callee")||et.call(t)==i)}(t)?function(t,e){for(var r=-1,o=Array(t);++r<t;)o[r]=e(r);return o}(t.length,String):[],o=r.length,n=!!o;for(var a in t)!e&&!tt.call(t,a)||n&&("length"==a||Dt(a,o))||r.push(a);return r}(t):function(t){if(!Ut(t))return ft(t);var e=[];for(var r in Object(t))tt.call(t,r)&&"constructor"!=r&&e.push(r);return e}(t)}t.exports=function(t){return Rt(t,!0,!0)}},631:(t,e,r)=>{var o="function"==typeof Map&&Map.prototype,n=Object.getOwnPropertyDescriptor&&o?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=o&&n&&"function"==typeof n.get?n.get:null,a=o&&Map.prototype.forEach,s="function"==typeof Set&&Set.prototype,c=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,u=s&&c&&"function"==typeof c.get?c.get:null,p=s&&Set.prototype.forEach,l="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,f="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,h="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,y=Boolean.prototype.valueOf,d=Object.prototype.toString,m=Function.prototype.toString,v=String.prototype.match,g=String.prototype.slice,b=String.prototype.replace,O=String.prototype.toUpperCase,S=String.prototype.toLowerCase,_=RegExp.prototype.test,E=Array.prototype.concat,w=Array.prototype.join,j=Array.prototype.slice,x=Math.floor,P="function"==typeof BigInt?BigInt.prototype.valueOf:null,T=Object.getOwnPropertySymbols,C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,A="function"==typeof Symbol&&"object"==typeof Symbol.iterator,q="function"==typeof Symbol&&Symbol.toStringTag&&(Symbol.toStringTag,1)?Symbol.toStringTag:null,R=Object.prototype.propertyIsEnumerable,k=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function I(t,e){if(t===1/0||t===-1/0||t!=t||t&&t>-1e3&&t<1e3||_.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof t){var o=t<0?-x(-t):x(t);if(o!==t){var n=String(o),i=g.call(e,n.length+1);return b.call(n,r,"$&_")+"."+b.call(b.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return b.call(e,r,"$&_")}var M=r(4654).custom,B=M&&U(M)?M:null;function N(t,e,r){var o="double"===(r.quoteStyle||e)?'"':"'";return o+t+o}function G(t){return b.call(String(t),/"/g,"&quot;")}function D(t){return!("[object Array]"!==K(t)||q&&"object"==typeof t&&q in t)}function U(t){if(A)return t&&"object"==typeof t&&t instanceof Symbol;if("symbol"==typeof t)return!0;if(!t||"object"!=typeof t||!C)return!1;try{return C.call(t),!0}catch(t){}return!1}t.exports=function t(e,r,o,n){var s=r||{};if(F(s,"quoteStyle")&&"single"!==s.quoteStyle&&"double"!==s.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(F(s,"maxStringLength")&&("number"==typeof s.maxStringLength?s.maxStringLength<0&&s.maxStringLength!==1/0:null!==s.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var c=!F(s,"customInspect")||s.customInspect;if("boolean"!=typeof c&&"symbol"!==c)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(F(s,"indent")&&null!==s.indent&&"\t"!==s.indent&&!(parseInt(s.indent,10)===s.indent&&s.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(F(s,"numericSeparator")&&"boolean"!=typeof s.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var d=s.numericSeparator;if(void 0===e)return"undefined";if(null===e)return"null";if("boolean"==typeof e)return e?"true":"false";if("string"==typeof e)return H(e,s);if("number"==typeof e){if(0===e)return 1/0/e>0?"0":"-0";var O=String(e);return d?I(e,O):O}if("bigint"==typeof e){var _=String(e)+"n";return d?I(e,_):_}var x=void 0===s.depth?5:s.depth;if(void 0===o&&(o=0),o>=x&&x>0&&"object"==typeof e)return D(e)?"[Array]":"[Object]";var T,M=function(t,e){var r;if("\t"===t.indent)r="\t";else{if(!("number"==typeof t.indent&&t.indent>0))return null;r=w.call(Array(t.indent+1)," ")}return{base:r,prev:w.call(Array(e+1),r)}}(s,o);if(void 0===n)n=[];else if(W(n,e)>=0)return"[Circular]";function L(e,r,i){if(r&&(n=j.call(n)).push(r),i){var a={depth:s.depth};return F(s,"quoteStyle")&&(a.quoteStyle=s.quoteStyle),t(e,a,o+1,n)}return t(e,s,o+1,n)}if("function"==typeof e){var V=function(t){if(t.name)return t.name;var e=v.call(m.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}(e),Y=X(e,L);return"[Function"+(V?": "+V:" (anonymous)")+"]"+(Y.length>0?" { "+w.call(Y,", ")+" }":"")}if(U(e)){var Z=A?b.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):C.call(e);return"object"!=typeof e||A?Z:z(Z)}if((T=e)&&"object"==typeof T&&("undefined"!=typeof HTMLElement&&T instanceof HTMLElement||"string"==typeof T.nodeName&&"function"==typeof T.getAttribute)){for(var tt="<"+S.call(String(e.nodeName)),et=e.attributes||[],rt=0;rt<et.length;rt++)tt+=" "+et[rt].name+"="+N(G(et[rt].value),"double",s);return tt+=">",e.childNodes&&e.childNodes.length&&(tt+="..."),tt+"</"+S.call(String(e.nodeName))+">"}if(D(e)){if(0===e.length)return"[]";var ot=X(e,L);return M&&!function(t){for(var e=0;e<t.length;e++)if(W(t[e],"\n")>=0)return!1;return!0}(ot)?"["+Q(ot,M)+"]":"[ "+w.call(ot,", ")+" ]"}if(function(t){return!("[object Error]"!==K(t)||q&&"object"==typeof t&&q in t)}(e)){var nt=X(e,L);return"cause"in e&&!R.call(e,"cause")?"{ ["+String(e)+"] "+w.call(E.call("[cause]: "+L(e.cause),nt),", ")+" }":0===nt.length?"["+String(e)+"]":"{ ["+String(e)+"] "+w.call(nt,", ")+" }"}if("object"==typeof e&&c){if(B&&"function"==typeof e[B])return e[B]();if("symbol"!==c&&"function"==typeof e.inspect)return e.inspect()}if(function(t){if(!i||!t||"object"!=typeof t)return!1;try{i.call(t);try{u.call(t)}catch(t){return!0}return t instanceof Map}catch(t){}return!1}(e)){var it=[];return a.call(e,(function(t,r){it.push(L(r,e,!0)+" => "+L(t,e))})),J("Map",i.call(e),it,M)}if(function(t){if(!u||!t||"object"!=typeof t)return!1;try{u.call(t);try{i.call(t)}catch(t){return!0}return t instanceof Set}catch(t){}return!1}(e)){var at=[];return p.call(e,(function(t){at.push(L(t,e))})),J("Set",u.call(e),at,M)}if(function(t){if(!l||!t||"object"!=typeof t)return!1;try{l.call(t,l);try{f.call(t,f)}catch(t){return!0}return t instanceof WeakMap}catch(t){}return!1}(e))return $("WeakMap");if(function(t){if(!f||!t||"object"!=typeof t)return!1;try{f.call(t,f);try{l.call(t,l)}catch(t){return!0}return t instanceof WeakSet}catch(t){}return!1}(e))return $("WeakSet");if(function(t){if(!h||!t||"object"!=typeof t)return!1;try{return h.call(t),!0}catch(t){}return!1}(e))return $("WeakRef");if(function(t){return!("[object Number]"!==K(t)||q&&"object"==typeof t&&q in t)}(e))return z(L(Number(e)));if(function(t){if(!t||"object"!=typeof t||!P)return!1;try{return P.call(t),!0}catch(t){}return!1}(e))return z(L(P.call(e)));if(function(t){return!("[object Boolean]"!==K(t)||q&&"object"==typeof t&&q in t)}(e))return z(y.call(e));if(function(t){return!("[object String]"!==K(t)||q&&"object"==typeof t&&q in t)}(e))return z(L(String(e)));if(!function(t){return!("[object Date]"!==K(t)||q&&"object"==typeof t&&q in t)}(e)&&!function(t){return!("[object RegExp]"!==K(t)||q&&"object"==typeof t&&q in t)}(e)){var st=X(e,L),ct=k?k(e)===Object.prototype:e instanceof Object||e.constructor===Object,ut=e instanceof Object?"":"null prototype",pt=!ct&&q&&Object(e)===e&&q in e?g.call(K(e),8,-1):ut?"Object":"",lt=(ct||"function"!=typeof e.constructor?"":e.constructor.name?e.constructor.name+" ":"")+(pt||ut?"["+w.call(E.call([],pt||[],ut||[]),": ")+"] ":"");return 0===st.length?lt+"{}":M?lt+"{"+Q(st,M)+"}":lt+"{ "+w.call(st,", ")+" }"}return String(e)};var L=Object.prototype.hasOwnProperty||function(t){return t in this};function F(t,e){return L.call(t,e)}function K(t){return d.call(t)}function W(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,o=t.length;r<o;r++)if(t[r]===e)return r;return-1}function H(t,e){if(t.length>e.maxStringLength){var r=t.length-e.maxStringLength,o="... "+r+" more character"+(r>1?"s":"");return H(g.call(t,0,e.maxStringLength),e)+o}return N(b.call(b.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,V),"single",e)}function V(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(e<16?"0":"")+O.call(e.toString(16))}function z(t){return"Object("+t+")"}function $(t){return t+" { ? }"}function J(t,e,r,o){return t+" ("+e+") {"+(o?Q(r,o):w.call(r,", "))+"}"}function Q(t,e){if(0===t.length)return"";var r="\n"+e.prev+e.base;return r+w.call(t,","+r)+"\n"+e.prev}function X(t,e){var r=D(t),o=[];if(r){o.length=t.length;for(var n=0;n<t.length;n++)o[n]=F(t,n)?e(t[n],t):""}var i,a="function"==typeof T?T(t):[];if(A){i={};for(var s=0;s<a.length;s++)i["$"+a[s]]=a[s]}for(var c in t)F(t,c)&&(r&&String(Number(c))===c&&c<t.length||A&&i["$"+c]instanceof Symbol||(_.call(/[^\w$]/,c)?o.push(e(c,t)+": "+e(t[c],t)):o.push(c+": "+e(t[c],t))));if("function"==typeof T)for(var u=0;u<a.length;u++)R.call(t,a[u])&&o.push("["+e(a[u])+"]: "+e(t[a[u]],t));return o}},5798:t=>{var e=String.prototype.replace,r=/%20/g,o="RFC3986";t.exports={default:o,formatters:{RFC1738:function(t){return e.call(t,r,"+")},RFC3986:function(t){return String(t)}},RFC1738:"RFC1738",RFC3986:o}},129:(t,e,r)=>{var o=r(8261),n=r(5235),i=r(5798);t.exports={formats:i,parse:n,stringify:o}},5235:(t,e,r)=>{var o=r(2769),n=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:o.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},s=function(t){return t.replace(/&#(\d+);/g,(function(t,e){return String.fromCharCode(parseInt(e,10))}))},c=function(t,e){return t&&"string"==typeof t&&e.comma&&t.indexOf(",")>-1?t.split(","):t},u=function(t,e,r,o){if(t){var i=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,a=/(\[[^[\]]*])/g,s=r.depth>0&&/(\[[^[\]]*])/.exec(i),u=s?i.slice(0,s.index):i,p=[];if(u){if(!r.plainObjects&&n.call(Object.prototype,u)&&!r.allowPrototypes)return;p.push(u)}for(var l=0;r.depth>0&&null!==(s=a.exec(i))&&l<r.depth;){if(l+=1,!r.plainObjects&&n.call(Object.prototype,s[1].slice(1,-1))&&!r.allowPrototypes)return;p.push(s[1])}return s&&p.push("["+i.slice(s.index)+"]"),function(t,e,r,o){for(var n=o?e:c(e,r),i=t.length-1;i>=0;--i){var a,s=t[i];if("[]"===s&&r.parseArrays)a=[].concat(n);else{a=r.plainObjects?Object.create(null):{};var u="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,p=parseInt(u,10);r.parseArrays||""!==u?!isNaN(p)&&s!==u&&String(p)===u&&p>=0&&r.parseArrays&&p<=r.arrayLimit?(a=[])[p]=n:"__proto__"!==u&&(a[u]=n):a={0:n}}n=a}return n}(p,e,r,o)}};t.exports=function(t,e){var r=function(t){if(!t)return a;if(null!==t.decoder&&void 0!==t.decoder&&"function"!=typeof t.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var e=void 0===t.charset?a.charset:t.charset;return{allowDots:void 0===t.allowDots?a.allowDots:!!t.allowDots,allowPrototypes:"boolean"==typeof t.allowPrototypes?t.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"==typeof t.allowSparse?t.allowSparse:a.allowSparse,arrayLimit:"number"==typeof t.arrayLimit?t.arrayLimit:a.arrayLimit,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof t.comma?t.comma:a.comma,decoder:"function"==typeof t.decoder?t.decoder:a.decoder,delimiter:"string"==typeof t.delimiter||o.isRegExp(t.delimiter)?t.delimiter:a.delimiter,depth:"number"==typeof t.depth||!1===t.depth?+t.depth:a.depth,ignoreQueryPrefix:!0===t.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof t.interpretNumericEntities?t.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof t.parameterLimit?t.parameterLimit:a.parameterLimit,parseArrays:!1!==t.parseArrays,plainObjects:"boolean"==typeof t.plainObjects?t.plainObjects:a.plainObjects,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:a.strictNullHandling}}(e);if(""===t||null==t)return r.plainObjects?Object.create(null):{};for(var p="string"==typeof t?function(t,e){var r,u={},p=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,l=e.parameterLimit===1/0?void 0:e.parameterLimit,f=p.split(e.delimiter,l),h=-1,y=e.charset;if(e.charsetSentinel)for(r=0;r<f.length;++r)0===f[r].indexOf("utf8=")&&("utf8=%E2%9C%93"===f[r]?y="utf-8":"utf8=%26%2310003%3B"===f[r]&&(y="iso-8859-1"),h=r,r=f.length);for(r=0;r<f.length;++r)if(r!==h){var d,m,v=f[r],g=v.indexOf("]="),b=-1===g?v.indexOf("="):g+1;-1===b?(d=e.decoder(v,a.decoder,y,"key"),m=e.strictNullHandling?null:""):(d=e.decoder(v.slice(0,b),a.decoder,y,"key"),m=o.maybeMap(c(v.slice(b+1),e),(function(t){return e.decoder(t,a.decoder,y,"value")}))),m&&e.interpretNumericEntities&&"iso-8859-1"===y&&(m=s(m)),v.indexOf("[]=")>-1&&(m=i(m)?[m]:m),n.call(u,d)?u[d]=o.combine(u[d],m):u[d]=m}return u}(t,r):t,l=r.plainObjects?Object.create(null):{},f=Object.keys(p),h=0;h<f.length;++h){var y=f[h],d=u(y,p[y],r,"string"==typeof t);l=o.merge(l,d,r)}return!0===r.allowSparse?l:o.compact(l)}},8261:(t,e,r)=>{var o=r(7478),n=r(2769),i=r(5798),a=Object.prototype.hasOwnProperty,s={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},c=Array.isArray,u=String.prototype.split,p=Array.prototype.push,l=function(t,e){p.apply(t,c(e)?e:[e])},f=Date.prototype.toISOString,h=i.default,y={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:n.encode,encodeValuesOnly:!1,format:h,formatter:i.formatters[h],indices:!1,serializeDate:function(t){return f.call(t)},skipNulls:!1,strictNullHandling:!1},d={},m=function t(e,r,i,a,s,p,f,h,m,v,g,b,O,S,_){for(var E,w=e,j=_,x=0,P=!1;void 0!==(j=j.get(d))&&!P;){var T=j.get(e);if(x+=1,void 0!==T){if(T===x)throw new RangeError("Cyclic object value");P=!0}void 0===j.get(d)&&(x=0)}if("function"==typeof f?w=f(r,w):w instanceof Date?w=v(w):"comma"===i&&c(w)&&(w=n.maybeMap(w,(function(t){return t instanceof Date?v(t):t}))),null===w){if(a)return p&&!O?p(r,y.encoder,S,"key",g):r;w=""}if("string"==typeof(E=w)||"number"==typeof E||"boolean"==typeof E||"symbol"==typeof E||"bigint"==typeof E||n.isBuffer(w)){if(p){var C=O?r:p(r,y.encoder,S,"key",g);if("comma"===i&&O){for(var A=u.call(String(w),","),q="",R=0;R<A.length;++R)q+=(0===R?"":",")+b(p(A[R],y.encoder,S,"value",g));return[b(C)+"="+q]}return[b(C)+"="+b(p(w,y.encoder,S,"value",g))]}return[b(r)+"="+b(String(w))]}var k,I=[];if(void 0===w)return I;if("comma"===i&&c(w))k=[{value:w.length>0?w.join(",")||null:void 0}];else if(c(f))k=f;else{var M=Object.keys(w);k=h?M.sort(h):M}for(var B=0;B<k.length;++B){var N=k[B],G="object"==typeof N&&void 0!==N.value?N.value:w[N];if(!s||null!==G){var D=c(w)?"function"==typeof i?i(r,N):r:r+(m?"."+N:"["+N+"]");_.set(e,x);var U=o();U.set(d,_),l(I,t(G,D,i,a,s,p,f,h,m,v,g,b,O,S,U))}}return I};t.exports=function(t,e){var r,n=t,u=function(t){if(!t)return y;if(null!==t.encoder&&void 0!==t.encoder&&"function"!=typeof t.encoder)throw new TypeError("Encoder has to be a function.");var e=t.charset||y.charset;if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=i.default;if(void 0!==t.format){if(!a.call(i.formatters,t.format))throw new TypeError("Unknown format option provided.");r=t.format}var o=i.formatters[r],n=y.filter;return("function"==typeof t.filter||c(t.filter))&&(n=t.filter),{addQueryPrefix:"boolean"==typeof t.addQueryPrefix?t.addQueryPrefix:y.addQueryPrefix,allowDots:void 0===t.allowDots?y.allowDots:!!t.allowDots,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:y.charsetSentinel,delimiter:void 0===t.delimiter?y.delimiter:t.delimiter,encode:"boolean"==typeof t.encode?t.encode:y.encode,encoder:"function"==typeof t.encoder?t.encoder:y.encoder,encodeValuesOnly:"boolean"==typeof t.encodeValuesOnly?t.encodeValuesOnly:y.encodeValuesOnly,filter:n,format:r,formatter:o,serializeDate:"function"==typeof t.serializeDate?t.serializeDate:y.serializeDate,skipNulls:"boolean"==typeof t.skipNulls?t.skipNulls:y.skipNulls,sort:"function"==typeof t.sort?t.sort:null,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:y.strictNullHandling}}(e);"function"==typeof u.filter?n=(0,u.filter)("",n):c(u.filter)&&(r=u.filter);var p,f=[];if("object"!=typeof n||null===n)return"";p=e&&e.arrayFormat in s?e.arrayFormat:e&&"indices"in e?e.indices?"indices":"repeat":"indices";var h=s[p];r||(r=Object.keys(n)),u.sort&&r.sort(u.sort);for(var d=o(),v=0;v<r.length;++v){var g=r[v];u.skipNulls&&null===n[g]||l(f,m(n[g],g,h,u.strictNullHandling,u.skipNulls,u.encode?u.encoder:null,u.filter,u.sort,u.allowDots,u.serializeDate,u.format,u.formatter,u.encodeValuesOnly,u.charset,d))}var b=f.join(u.delimiter),O=!0===u.addQueryPrefix?"?":"";return u.charsetSentinel&&("iso-8859-1"===u.charset?O+="utf8=%26%2310003%3B&":O+="utf8=%E2%9C%93&"),b.length>0?O+b:""}},2769:(t,e,r)=>{var o=r(5798),n=Object.prototype.hasOwnProperty,i=Array.isArray,a=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),s=function(t,e){for(var r=e&&e.plainObjects?Object.create(null):{},o=0;o<t.length;++o)void 0!==t[o]&&(r[o]=t[o]);return r};t.exports={arrayToObject:s,assign:function(t,e){return Object.keys(e).reduce((function(t,r){return t[r]=e[r],t}),t)},combine:function(t,e){return[].concat(t,e)},compact:function(t){for(var e=[{obj:{o:t},prop:"o"}],r=[],o=0;o<e.length;++o)for(var n=e[o],a=n.obj[n.prop],s=Object.keys(a),c=0;c<s.length;++c){var u=s[c],p=a[u];"object"==typeof p&&null!==p&&-1===r.indexOf(p)&&(e.push({obj:a,prop:u}),r.push(p))}return function(t){for(;t.length>1;){var e=t.pop(),r=e.obj[e.prop];if(i(r)){for(var o=[],n=0;n<r.length;++n)void 0!==r[n]&&o.push(r[n]);e.obj[e.prop]=o}}}(e),t},decode:function(t,e,r){var o=t.replace(/\+/g," ");if("iso-8859-1"===r)return o.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(o)}catch(t){return o}},encode:function(t,e,r,n,i){if(0===t.length)return t;var s=t;if("symbol"==typeof t?s=Symbol.prototype.toString.call(t):"string"!=typeof t&&(s=String(t)),"iso-8859-1"===r)return escape(s).replace(/%u[0-9a-f]{4}/gi,(function(t){return"%26%23"+parseInt(t.slice(2),16)+"%3B"}));for(var c="",u=0;u<s.length;++u){var p=s.charCodeAt(u);45===p||46===p||95===p||126===p||p>=48&&p<=57||p>=65&&p<=90||p>=97&&p<=122||i===o.RFC1738&&(40===p||41===p)?c+=s.charAt(u):p<128?c+=a[p]:p<2048?c+=a[192|p>>6]+a[128|63&p]:p<55296||p>=57344?c+=a[224|p>>12]+a[128|p>>6&63]+a[128|63&p]:(u+=1,p=65536+((1023&p)<<10|1023&s.charCodeAt(u)),c+=a[240|p>>18]+a[128|p>>12&63]+a[128|p>>6&63]+a[128|63&p])}return c},isBuffer:function(t){return!(!t||"object"!=typeof t||!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t)))},isRegExp:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},maybeMap:function(t,e){if(i(t)){for(var r=[],o=0;o<t.length;o+=1)r.push(e(t[o]));return r}return e(t)},merge:function t(e,r,o){if(!r)return e;if("object"!=typeof r){if(i(e))e.push(r);else{if(!e||"object"!=typeof e)return[e,r];(o&&(o.plainObjects||o.allowPrototypes)||!n.call(Object.prototype,r))&&(e[r]=!0)}return e}if(!e||"object"!=typeof e)return[e].concat(r);var a=e;return i(e)&&!i(r)&&(a=s(e,o)),i(e)&&i(r)?(r.forEach((function(r,i){if(n.call(e,i)){var a=e[i];a&&"object"==typeof a&&r&&"object"==typeof r?e[i]=t(a,r,o):e.push(r)}else e[i]=r})),e):Object.keys(r).reduce((function(e,i){var a=r[i];return n.call(e,i)?e[i]=t(e[i],a,o):e[i]=a,e}),a)}}},7478:(t,e,r)=>{var o=r(210),n=r(1924),i=r(631),a=o("%TypeError%"),s=o("%WeakMap%",!0),c=o("%Map%",!0),u=n("WeakMap.prototype.get",!0),p=n("WeakMap.prototype.set",!0),l=n("WeakMap.prototype.has",!0),f=n("Map.prototype.get",!0),h=n("Map.prototype.set",!0),y=n("Map.prototype.has",!0),d=function(t,e){for(var r,o=t;null!==(r=o.next);o=r)if(r.key===e)return o.next=r.next,r.next=t.next,t.next=r,r};t.exports=function(){var t,e,r,o={assert:function(t){if(!o.has(t))throw new a("Side channel does not contain "+i(t))},get:function(o){if(s&&o&&("object"==typeof o||"function"==typeof o)){if(t)return u(t,o)}else if(c){if(e)return f(e,o)}else if(r)return function(t,e){var r=d(t,e);return r&&r.value}(r,o)},has:function(o){if(s&&o&&("object"==typeof o||"function"==typeof o)){if(t)return l(t,o)}else if(c){if(e)return y(e,o)}else if(r)return function(t,e){return!!d(t,e)}(r,o);return!1},set:function(o,n){s&&o&&("object"==typeof o||"function"==typeof o)?(t||(t=new s),p(t,o,n)):c?(e||(e=new c),h(e,o,n)):(r||(r={key:{},next:null}),function(t,e,r){var o=d(t,e);o?o.value=r:t.next={key:e,next:t.next,value:r}}(r,o,n))}};return o}},3692:t=>{var e=t.exports=function(t){return new r(t)};function r(t){this.value=t}function o(t,e,r){var o=[],a=[],p=!0;return function t(l){var f=r?n(l):l,h={},y=!0,d={node:f,node_:l,path:[].concat(o),parent:a[a.length-1],parents:a,key:o.slice(-1)[0],isRoot:0===o.length,level:o.length,circular:null,update:function(t,e){d.isRoot||(d.parent.node[d.key]=t),d.node=t,e&&(y=!1)},delete:function(t){delete d.parent.node[d.key],t&&(y=!1)},remove:function(t){s(d.parent.node)?d.parent.node.splice(d.key,1):delete d.parent.node[d.key],t&&(y=!1)},keys:null,before:function(t){h.before=t},after:function(t){h.after=t},pre:function(t){h.pre=t},post:function(t){h.post=t},stop:function(){p=!1},block:function(){y=!1}};if(!p)return d;function m(){if("object"==typeof d.node&&null!==d.node){d.keys&&d.node_===d.node||(d.keys=i(d.node)),d.isLeaf=0==d.keys.length;for(var t=0;t<a.length;t++)if(a[t].node_===l){d.circular=a[t];break}}else d.isLeaf=!0,d.keys=null;d.notLeaf=!d.isLeaf,d.notRoot=!d.isRoot}m();var v=e.call(d,d.node);return void 0!==v&&d.update&&d.update(v),h.before&&h.before.call(d,d.node),y?("object"!=typeof d.node||null===d.node||d.circular||(a.push(d),m(),c(d.keys,(function(e,n){o.push(e),h.pre&&h.pre.call(d,d.node[e],e);var i=t(d.node[e]);r&&u.call(d.node,e)&&(d.node[e]=i.node),i.isLast=n==d.keys.length-1,i.isFirst=0==n,h.post&&h.post.call(d,i),o.pop()})),a.pop()),h.after&&h.after.call(d,d.node),d):d}(t).node}function n(t){if("object"==typeof t&&null!==t){var e;if(s(t))e=[];else if("[object Date]"===a(t))e=new Date(t.getTime?t.getTime():t);else if("[object RegExp]"===a(t))e=new RegExp(t);else if(function(t){return"[object Error]"===a(t)}(t))e={message:t.message};else if(function(t){return"[object Boolean]"===a(t)}(t))e=new Boolean(t);else if(function(t){return"[object Number]"===a(t)}(t))e=new Number(t);else if(function(t){return"[object String]"===a(t)}(t))e=new String(t);else if(Object.create&&Object.getPrototypeOf)e=Object.create(Object.getPrototypeOf(t));else if(t.constructor===Object)e={};else{var r=t.constructor&&t.constructor.prototype||t.__proto__||{},o=function(){};o.prototype=r,e=new o}return c(i(t),(function(r){e[r]=t[r]})),e}return t}r.prototype.get=function(t){for(var e=this.value,r=0;r<t.length;r++){var o=t[r];if(!e||!u.call(e,o)){e=void 0;break}e=e[o]}return e},r.prototype.has=function(t){for(var e=this.value,r=0;r<t.length;r++){var o=t[r];if(!e||!u.call(e,o))return!1;e=e[o]}return!0},r.prototype.set=function(t,e){for(var r=this.value,o=0;o<t.length-1;o++){var n=t[o];u.call(r,n)||(r[n]={}),r=r[n]}return r[t[o]]=e,e},r.prototype.map=function(t){return o(this.value,t,!0)},r.prototype.forEach=function(t){return this.value=o(this.value,t,!1),this.value},r.prototype.reduce=function(t,e){var r=1===arguments.length,o=r?this.value:e;return this.forEach((function(e){this.isRoot&&r||(o=t.call(this,o,e))})),o},r.prototype.paths=function(){var t=[];return this.forEach((function(e){t.push(this.path)})),t},r.prototype.nodes=function(){var t=[];return this.forEach((function(e){t.push(this.node)})),t},r.prototype.clone=function(){var t=[],e=[];return function r(o){for(var a=0;a<t.length;a++)if(t[a]===o)return e[a];if("object"==typeof o&&null!==o){var s=n(o);return t.push(o),e.push(s),c(i(o),(function(t){s[t]=r(o[t])})),t.pop(),e.pop(),s}return o}(this.value)};var i=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};function a(t){return Object.prototype.toString.call(t)}var s=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)},c=function(t,e){if(t.forEach)return t.forEach(e);for(var r=0;r<t.length;r++)e(t[r],r,t)};c(i(r.prototype),(function(t){e[t]=function(e){var o=[].slice.call(arguments,1),n=new r(e);return n[t].apply(n,o)}}));var u=Object.hasOwnProperty||function(t,e){return e in t}},4654:()=>{}},e={};function r(o){var n=e[o];if(void 0!==n)return n.exports;var i=e[o]={id:o,loaded:!1,exports:{}};return t[o].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.nmd=t=>(t.paths=[],t.children||(t.children=[]),t);var o=r(2915),n=exports;for(var i in o)n[i]=o[i];o.__esModule&&Object.defineProperty(n,"__esModule",{value:!0});
2
2
  //# sourceMappingURL=ge-commercetools-utils-browser.cjs.js.map