snaptrade-typescript-sdk 9.0.113 → 9.0.115
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
Connect brokerage accounts to your app for live positions and trading
|
|
8
8
|
|
|
9
|
-
[](https://www.npmjs.com/package/snaptrade-typescript-sdk/v/9.0.115)
|
|
10
10
|
[](https://snaptrade.com/)
|
|
11
11
|
|
|
12
12
|
</div>
|
|
@@ -2100,7 +2100,7 @@ For Equity orders, this represents the number of shares for the order. This can
|
|
|
2100
2100
|
|
|
2101
2101
|
### `snaptrade.trading.placeMlegOrder`<a id="snaptradetradingplacemlegorder"></a>
|
|
2102
2102
|
|
|
2103
|
-
Places a multi-leg option order. Only supported on certain option trading brokerages. https://snaptrade.notion.site/brokerages has information on brokerage trading support
|
|
2103
|
+
Places a multi-leg option order. Only supported on certain option trading brokerages. https://snaptrade.notion.site/brokerages has information on brokerage trading support
|
|
2104
2104
|
|
|
2105
2105
|
|
|
2106
2106
|
#### 🛠️ Usage<a id="🛠️-usage"></a>
|
|
@@ -99,7 +99,7 @@ export declare const TradingApiAxiosParamCreator: (configuration?: Configuration
|
|
|
99
99
|
*/
|
|
100
100
|
placeForceOrder: (userId: string, userSecret: string, manualTradeFormWithOptions: ManualTradeFormWithOptions, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
101
101
|
/**
|
|
102
|
-
* Places a multi-leg option order. Only supported on certain option trading brokerages. https://snaptrade.notion.site/brokerages has information on brokerage trading support
|
|
102
|
+
* Places a multi-leg option order. Only supported on certain option trading brokerages. https://snaptrade.notion.site/brokerages has information on brokerage trading support
|
|
103
103
|
* @summary Place multi-leg option order
|
|
104
104
|
* @param {string} userId
|
|
105
105
|
* @param {string} userSecret
|
|
@@ -229,7 +229,7 @@ export declare const TradingApiFp: (configuration?: Configuration) => {
|
|
|
229
229
|
*/
|
|
230
230
|
placeForceOrder(requestParameters: TradingApiPlaceForceOrderRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AccountOrderRecord>>;
|
|
231
231
|
/**
|
|
232
|
-
* Places a multi-leg option order. Only supported on certain option trading brokerages. https://snaptrade.notion.site/brokerages has information on brokerage trading support
|
|
232
|
+
* Places a multi-leg option order. Only supported on certain option trading brokerages. https://snaptrade.notion.site/brokerages has information on brokerage trading support
|
|
233
233
|
* @summary Place multi-leg option order
|
|
234
234
|
* @param {TradingApiPlaceMlegOrderRequest} requestParameters Request parameters.
|
|
235
235
|
* @param {*} [options] Override http request option.
|
|
@@ -339,7 +339,7 @@ export declare const TradingApiFactory: (configuration?: Configuration, basePath
|
|
|
339
339
|
*/
|
|
340
340
|
placeForceOrder(requestParameters: TradingApiPlaceForceOrderRequest, options?: AxiosRequestConfig): AxiosPromise<AccountOrderRecord>;
|
|
341
341
|
/**
|
|
342
|
-
* Places a multi-leg option order. Only supported on certain option trading brokerages. https://snaptrade.notion.site/brokerages has information on brokerage trading support
|
|
342
|
+
* Places a multi-leg option order. Only supported on certain option trading brokerages. https://snaptrade.notion.site/brokerages has information on brokerage trading support
|
|
343
343
|
* @summary Place multi-leg option order
|
|
344
344
|
* @param {TradingApiPlaceMlegOrderRequest} requestParameters Request parameters.
|
|
345
345
|
* @param {*} [options] Override http request option.
|
|
@@ -813,7 +813,7 @@ export declare class TradingApiGenerated extends BaseAPI {
|
|
|
813
813
|
*/
|
|
814
814
|
placeForceOrder(requestParameters: TradingApiPlaceForceOrderRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<AccountOrderRecord, any>>;
|
|
815
815
|
/**
|
|
816
|
-
* Places a multi-leg option order. Only supported on certain option trading brokerages. https://snaptrade.notion.site/brokerages has information on brokerage trading support
|
|
816
|
+
* Places a multi-leg option order. Only supported on certain option trading brokerages. https://snaptrade.notion.site/brokerages has information on brokerage trading support
|
|
817
817
|
* @summary Place multi-leg option order
|
|
818
818
|
* @param {TradingApiPlaceMlegOrderRequest} requestParameters Request parameters.
|
|
819
819
|
* @param {*} [options] Override http request option.
|
|
@@ -455,7 +455,7 @@ const TradingApiAxiosParamCreator = function (configuration) {
|
|
|
455
455
|
};
|
|
456
456
|
}),
|
|
457
457
|
/**
|
|
458
|
-
* Places a multi-leg option order. Only supported on certain option trading brokerages. https://snaptrade.notion.site/brokerages has information on brokerage trading support
|
|
458
|
+
* Places a multi-leg option order. Only supported on certain option trading brokerages. https://snaptrade.notion.site/brokerages has information on brokerage trading support
|
|
459
459
|
* @summary Place multi-leg option order
|
|
460
460
|
* @param {string} userId
|
|
461
461
|
* @param {string} userSecret
|
|
@@ -964,7 +964,7 @@ const TradingApiFp = function (configuration) {
|
|
|
964
964
|
});
|
|
965
965
|
},
|
|
966
966
|
/**
|
|
967
|
-
* Places a multi-leg option order. Only supported on certain option trading brokerages. https://snaptrade.notion.site/brokerages has information on brokerage trading support
|
|
967
|
+
* Places a multi-leg option order. Only supported on certain option trading brokerages. https://snaptrade.notion.site/brokerages has information on brokerage trading support
|
|
968
968
|
* @summary Place multi-leg option order
|
|
969
969
|
* @param {TradingApiPlaceMlegOrderRequest} requestParameters Request parameters.
|
|
970
970
|
* @param {*} [options] Override http request option.
|
|
@@ -1164,7 +1164,7 @@ const TradingApiFactory = function (configuration, basePath, axios) {
|
|
|
1164
1164
|
return localVarFp.placeForceOrder(requestParameters, options).then((request) => request(axios, basePath));
|
|
1165
1165
|
},
|
|
1166
1166
|
/**
|
|
1167
|
-
* Places a multi-leg option order. Only supported on certain option trading brokerages. https://snaptrade.notion.site/brokerages has information on brokerage trading support
|
|
1167
|
+
* Places a multi-leg option order. Only supported on certain option trading brokerages. https://snaptrade.notion.site/brokerages has information on brokerage trading support
|
|
1168
1168
|
* @summary Place multi-leg option order
|
|
1169
1169
|
* @param {TradingApiPlaceMlegOrderRequest} requestParameters Request parameters.
|
|
1170
1170
|
* @param {*} [options] Override http request option.
|
|
@@ -1311,7 +1311,7 @@ class TradingApiGenerated extends base_1.BaseAPI {
|
|
|
1311
1311
|
return (0, exports.TradingApiFp)(this.configuration).placeForceOrder(requestParameters, options).then((request) => request(this.axios, this.basePath));
|
|
1312
1312
|
}
|
|
1313
1313
|
/**
|
|
1314
|
-
* Places a multi-leg option order. Only supported on certain option trading brokerages. https://snaptrade.notion.site/brokerages has information on brokerage trading support
|
|
1314
|
+
* Places a multi-leg option order. Only supported on certain option trading brokerages. https://snaptrade.notion.site/brokerages has information on brokerage trading support
|
|
1315
1315
|
* @summary Place multi-leg option order
|
|
1316
1316
|
* @param {TradingApiPlaceMlegOrderRequest} requestParameters Request parameters.
|
|
1317
1317
|
* @param {*} [options] Override http request option.
|
package/dist/browser.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! For license information please see browser.js.LICENSE.txt */
|
|
2
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.client=t():e.client=t()}(self,()=>(()=>{var e={129:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},160:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},400:function(e,t,r){"use strict";var s=this&&this.__awaiter||function(e,t,r,s){return new(r||(r=Promise))(function(n,i){function o(e){try{c(s.next(e))}catch(e){i(e)}}function a(e){try{c(s.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(o,a)}c((s=s.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.OptionsApiGenerated=t.OptionsApiFactory=t.OptionsApiFp=t.OptionsApiAxiosParamCreator=void 0;const n=r(8451),i=r(5511),o=r(4467),a=r(4445);t.OptionsApiAxiosParamCreator=function(e){return{getOptionStrategy:(t,r,n,o,c={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("getOptionStrategy","userId",t),(0,i.assertParamExists)("getOptionStrategy","userSecret",r),(0,i.assertParamExists)("getOptionStrategy","accountId",n),(0,i.assertParamExists)("getOptionStrategy","optionsGetOptionStrategyRequest",o);const s="/accounts/{accountId}/optionStrategy".replace("{accountId}",encodeURIComponent(String(void 0!==n?n:"-accountId-"))),u=new URL(s,i.DUMMY_BASE_URL);let d;e&&(d=e.baseOptions);const l=Object.assign(Object.assign({method:"POST"},d),c),p=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},h={};yield(0,i.setApiKeyToObject)({object:h,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:h,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(h.userId=t),void 0!==r&&(h.userSecret=r),p["Content-Type"]="application/json";let g=d&&d.headers?d.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},p),g),c.headers),(0,a.requestBeforeHook)({requestBody:o,queryParameters:h,requestConfig:l,path:s,configuration:e,pathTemplate:"/accounts/{accountId}/optionStrategy",httpMethod:"POST"}),l.data=(0,i.serializeDataIfNeeded)(o,l,e),(0,i.setSearchParams)(u,h),{url:(0,i.toPathString)(u),options:l}}),getOptionsChain:(t,r,n,o,c={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("getOptionsChain","userId",t),(0,i.assertParamExists)("getOptionsChain","userSecret",r),(0,i.assertParamExists)("getOptionsChain","accountId",n),(0,i.assertParamExists)("getOptionsChain","symbol",o);const s="/accounts/{accountId}/optionsChain".replace("{accountId}",encodeURIComponent(String(void 0!==n?n:"-accountId-"))),u=new URL(s,i.DUMMY_BASE_URL);let d;e&&(d=e.baseOptions);const l=Object.assign(Object.assign({method:"GET"},d),c),p=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},h={};yield(0,i.setApiKeyToObject)({object:h,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:h,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(h.userId=t),void 0!==r&&(h.userSecret=r),void 0!==o&&(h.symbol=o);let g=d&&d.headers?d.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},p),g),c.headers),(0,a.requestBeforeHook)({queryParameters:h,requestConfig:l,path:s,configuration:e,pathTemplate:"/accounts/{accountId}/optionsChain",httpMethod:"GET"}),(0,i.setSearchParams)(u,h),{url:(0,i.toPathString)(u),options:l}}),getOptionsStrategyQuote:(t,r,n,o,c={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("getOptionsStrategyQuote","userId",t),(0,i.assertParamExists)("getOptionsStrategyQuote","userSecret",r),(0,i.assertParamExists)("getOptionsStrategyQuote","accountId",n),(0,i.assertParamExists)("getOptionsStrategyQuote","optionStrategyId",o);const s="/accounts/{accountId}/optionStrategy/{optionStrategyId}".replace("{accountId}",encodeURIComponent(String(void 0!==n?n:"-accountId-"))).replace("{optionStrategyId}",encodeURIComponent(String(void 0!==o?o:"-optionStrategyId-"))),u=new URL(s,i.DUMMY_BASE_URL);let d;e&&(d=e.baseOptions);const l=Object.assign(Object.assign({method:"GET"},d),c),p=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},h={};yield(0,i.setApiKeyToObject)({object:h,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:h,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(h.userId=t),void 0!==r&&(h.userSecret=r);let g=d&&d.headers?d.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},p),g),c.headers),(0,a.requestBeforeHook)({queryParameters:h,requestConfig:l,path:s,configuration:e,pathTemplate:"/accounts/{accountId}/optionStrategy/{optionStrategyId}",httpMethod:"GET"}),(0,i.setSearchParams)(u,h),{url:(0,i.toPathString)(u),options:l}}),listOptionHoldings:(t,r,n,o={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("listOptionHoldings","userId",t),(0,i.assertParamExists)("listOptionHoldings","userSecret",r),(0,i.assertParamExists)("listOptionHoldings","accountId",n);const s="/accounts/{accountId}/options".replace("{accountId}",encodeURIComponent(String(void 0!==n?n:"-accountId-"))),c=new URL(s,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"GET"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(p.userId=t),void 0!==r&&(p.userSecret=r);let h=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),h),o.headers),(0,a.requestBeforeHook)({queryParameters:p,requestConfig:d,path:s,configuration:e,pathTemplate:"/accounts/{accountId}/options",httpMethod:"GET"}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}}),placeOptionStrategy:(t,r,n,o,c,u={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("placeOptionStrategy","userId",t),(0,i.assertParamExists)("placeOptionStrategy","userSecret",r),(0,i.assertParamExists)("placeOptionStrategy","accountId",n),(0,i.assertParamExists)("placeOptionStrategy","optionStrategyId",o),(0,i.assertParamExists)("placeOptionStrategy","optionsPlaceOptionStrategyRequest",c);const s="/accounts/{accountId}/optionStrategy/{optionStrategyId}/execute".replace("{accountId}",encodeURIComponent(String(void 0!==n?n:"-accountId-"))).replace("{optionStrategyId}",encodeURIComponent(String(void 0!==o?o:"-optionStrategyId-"))),d=new URL(s,i.DUMMY_BASE_URL);let l;e&&(l=e.baseOptions);const p=Object.assign(Object.assign({method:"POST"},l),u),h=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},g={};yield(0,i.setApiKeyToObject)({object:g,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:h,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:g,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(g.userId=t),void 0!==r&&(g.userSecret=r),h["Content-Type"]="application/json";let f=l&&l.headers?l.headers:{};return p.headers=Object.assign(Object.assign(Object.assign({},h),f),u.headers),(0,a.requestBeforeHook)({requestBody:c,queryParameters:g,requestConfig:p,path:s,configuration:e,pathTemplate:"/accounts/{accountId}/optionStrategy/{optionStrategyId}/execute",httpMethod:"POST"}),p.data=(0,i.serializeDataIfNeeded)(c,p,e),(0,i.setSearchParams)(d,g),{url:(0,i.toPathString)(d),options:p}})}},t.OptionsApiFp=function(e){const r=(0,t.OptionsApiAxiosParamCreator)(e);return{getOptionStrategy(t,a){return s(this,void 0,void 0,function*(){const s={underlying_symbol_id:t.underlying_symbol_id,legs:t.legs,strategy_type:t.strategy_type},c=yield r.getOptionStrategy(t.userId,t.userSecret,t.accountId,s,a);return(0,i.createRequestFunction)(c,n.default,o.BASE_PATH,e)})},getOptionsChain(t,a){return s(this,void 0,void 0,function*(){const s=yield r.getOptionsChain(t.userId,t.userSecret,t.accountId,t.symbol,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},getOptionsStrategyQuote(t,a){return s(this,void 0,void 0,function*(){const s=yield r.getOptionsStrategyQuote(t.userId,t.userSecret,t.accountId,t.optionStrategyId,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},listOptionHoldings(t,a){return s(this,void 0,void 0,function*(){const s=yield r.listOptionHoldings(t.userId,t.userSecret,t.accountId,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},placeOptionStrategy(t,a){return s(this,void 0,void 0,function*(){const s={order_type:t.order_type,time_in_force:t.time_in_force,price:t.price},c=yield r.placeOptionStrategy(t.userId,t.userSecret,t.accountId,t.optionStrategyId,s,a);return(0,i.createRequestFunction)(c,n.default,o.BASE_PATH,e)})}}},t.OptionsApiFactory=function(e,r,s){const n=(0,t.OptionsApiFp)(e);return{getOptionStrategy:(e,t)=>n.getOptionStrategy(e,t).then(e=>e(s,r)),getOptionsChain:(e,t)=>n.getOptionsChain(e,t).then(e=>e(s,r)),getOptionsStrategyQuote:(e,t)=>n.getOptionsStrategyQuote(e,t).then(e=>e(s,r)),listOptionHoldings:(e,t)=>n.listOptionHoldings(e,t).then(e=>e(s,r)),placeOptionStrategy:(e,t)=>n.placeOptionStrategy(e,t).then(e=>e(s,r))}};class c extends o.BaseAPI{getOptionStrategy(e,r){return(0,t.OptionsApiFp)(this.configuration).getOptionStrategy(e,r).then(e=>e(this.axios,this.basePath))}getOptionsChain(e,r){return(0,t.OptionsApiFp)(this.configuration).getOptionsChain(e,r).then(e=>e(this.axios,this.basePath))}getOptionsStrategyQuote(e,r){return(0,t.OptionsApiFp)(this.configuration).getOptionsStrategyQuote(e,r).then(e=>e(this.axios,this.basePath))}listOptionHoldings(e,r){return(0,t.OptionsApiFp)(this.configuration).listOptionHoldings(e,r).then(e=>e(this.axios,this.basePath))}placeOptionStrategy(e,r){return(0,t.OptionsApiFp)(this.configuration).placeOptionStrategy(e,r).then(e=>e(this.axios,this.basePath))}}t.OptionsApiGenerated=c},589:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},612:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},624:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},689:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},803:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},833:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1061:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1070:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1108:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1164:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1186:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1190:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1204:function(e,t,r){"use strict";var s=this&&this.__awaiter||function(e,t,r,s){return new(r||(r=Promise))(function(n,i){function o(e){try{c(s.next(e))}catch(e){i(e)}}function a(e){try{c(s.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(o,a)}c((s=s.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.requestAfterHook=void 0,t.requestAfterHook=function(e){return s(this,void 0,void 0,function*(){const{configuration:t,basePath:n,axiosArgs:i,url:o}=e;if(void 0===(null==t?void 0:t.consumerKey))throw Error("Consumer key is required");const a=encodeURI(t.consumerKey),c=void 0===i.options.data||"{}"===i.options.data?null:JSON.parse(i.options.data),u=-1===i.url.indexOf("?")?`${i.url}`:`${i.url.split("?")[0]}`,d=(l={content:c,path:`/api/v1${u}`,query:o.replace(n,"").replace(u,"").replace("?","")},p=[],h={},JSON.stringify(l,function(e,t){return e in h||(p.push(e),h[e]=null),t}),p.sort(),JSON.stringify(l,p));var l,p,h;const g=yield function(e,t){return s(this,void 0,void 0,function*(){if("undefined"!=typeof process&&process.versions&&process.versions.node){const s=r(2349).createHmac("sha256",t);return s.update(e),s.digest("base64")}{const r=new TextEncoder,s=r.encode(t),n=r.encode(e),i=yield globalThis.crypto.subtle.importKey("raw",s,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),o=yield globalThis.crypto.subtle.sign("HMAC",i,n),a=Array.from(new Uint8Array(o));return btoa(String.fromCharCode.apply(null,a))}})}(d,a);i.options.headers&&(i.options.headers.Signature=g)})}},1345:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1447:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1456:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1590:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1641:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1766:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1837:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1843:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1871:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1882:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1883:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1934:function(e,t){"use strict";var r=this&&this.__awaiter||function(e,t,r,s){return new(r||(r=Promise))(function(n,i){function o(e){try{c(s.next(e))}catch(e){i(e)}}function a(e){try{c(s.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(o,a)}c((s=s.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.parseIfJson=t.readableStreamToString=t.SnaptradeError=void 0;class s extends Error{constructor(e,t,r){var s,n,i,o,a;super(e.message+"\nRESPONSE HEADERS:\n"+JSON.stringify(r,null,2)),this.name="SnaptradeError",this.code=e.code,this.method=null===(n=null===(s=e.config)||void 0===s?void 0:s.method)||void 0===n?void 0:n.toUpperCase(),this.url=null===(i=e.config)||void 0===i?void 0:i.url,this.status=null===(o=e.response)||void 0===o?void 0:o.status,this.statusText=null===(a=e.response)||void 0===a?void 0:a.statusText,this.responseBody=t}toJSON(){return{name:this.name,message:this.message,method:this.method,url:this.url,code:this.code,status:this.status,statusText:this.statusText,responseBody:this.responseBody}}}t.SnaptradeError=s,t.readableStreamToString=function(e){return r(this,void 0,void 0,function*(){const t=new TextDecoder,r=e.getReader();let s="";try{for(;;){const{done:e,value:n}=yield r.read();if(e)break;s+=t.decode(n,{stream:!0})}}finally{r.releaseLock()}return s})},t.parseIfJson=function(e){if("string"!=typeof e)return e;try{const t=JSON.parse(e);return"object"==typeof t&&null!==t?t:e}catch(t){return e}}},1953:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2010:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2059:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2074:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2095:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2135:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2165:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2286:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2327:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2349:()=>{},2350:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2362:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.requestBeforeUrlHook=void 0,t.requestBeforeUrlHook=function(e){}},2459:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2501:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2525:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2581:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2670:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2684:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2731:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2784:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3104:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3262:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3287:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3304:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3321:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3450:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3485:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3504:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3603:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,s,n)}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),n=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.TradingApi=void 0;const i=r(7483);n(r(7483),t);class o extends i.TradingApiGenerated{}t.TradingApi=o},3703:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3756:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3814:function(e,t,r){"use strict";var s=this&&this.__awaiter||function(e,t,r,s){return new(r||(r=Promise))(function(n,i){function o(e){try{c(s.next(e))}catch(e){i(e)}}function a(e){try{c(s.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(o,a)}c((s=s.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.AuthenticationApiGenerated=t.AuthenticationApiFactory=t.AuthenticationApiFp=t.AuthenticationApiAxiosParamCreator=void 0;const n=r(8451),i=r(5511),o=r(4467),a=r(4445);t.AuthenticationApiAxiosParamCreator=function(e){return{deleteSnapTradeUser:(t,r={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("deleteSnapTradeUser","userId",t);const s="/snapTrade/deleteUser",n=new URL(s,i.DUMMY_BASE_URL);let o;e&&(o=e.baseOptions);const c=Object.assign(Object.assign({method:"DELETE"},o),r),u=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},d={};yield(0,i.setApiKeyToObject)({object:d,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:u,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:d,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(d.userId=t);let l=o&&o.headers?o.headers:{};return c.headers=Object.assign(Object.assign(Object.assign({},u),l),r.headers),(0,a.requestBeforeHook)({queryParameters:d,requestConfig:c,path:s,configuration:e,pathTemplate:"/snapTrade/deleteUser",httpMethod:"DELETE"}),(0,i.setSearchParams)(n,d),{url:(0,i.toPathString)(n),options:c}}),listSnapTradeUsers:(t={})=>s(this,void 0,void 0,function*(){const r="/snapTrade/listUsers",s=new URL(r,i.DUMMY_BASE_URL);let n;e&&(n=e.baseOptions);const o=Object.assign(Object.assign({method:"GET"},n),t),c=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},u={};yield(0,i.setApiKeyToObject)({object:u,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:c,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:u,key:"timestamp",keyParamName:"timestamp",configuration:e});let d=n&&n.headers?n.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},c),d),t.headers),(0,a.requestBeforeHook)({queryParameters:u,requestConfig:o,path:r,configuration:e,pathTemplate:"/snapTrade/listUsers",httpMethod:"GET"}),(0,i.setSearchParams)(s,u),{url:(0,i.toPathString)(s),options:o}}),loginSnapTradeUser:(t,r,n,o={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("loginSnapTradeUser","userId",t),(0,i.assertParamExists)("loginSnapTradeUser","userSecret",r);const s="/snapTrade/login",c=new URL(s,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"POST"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(p.userId=t),void 0!==r&&(p.userSecret=r),l["Content-Type"]="application/json";let h=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),h),o.headers),(0,a.requestBeforeHook)({requestBody:n,queryParameters:p,requestConfig:d,path:s,configuration:e,pathTemplate:"/snapTrade/login",httpMethod:"POST"}),d.data=(0,i.serializeDataIfNeeded)(n,d,e),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}}),registerSnapTradeUser:(t,r={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("registerSnapTradeUser","snapTradeRegisterUserRequestBody",t);const s="/snapTrade/registerUser",n=new URL(s,i.DUMMY_BASE_URL);let o;e&&(o=e.baseOptions);const c=Object.assign(Object.assign({method:"POST"},o),r),u=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},d={};yield(0,i.setApiKeyToObject)({object:d,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:u,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:d,key:"timestamp",keyParamName:"timestamp",configuration:e}),u["Content-Type"]="application/json";let l=o&&o.headers?o.headers:{};return c.headers=Object.assign(Object.assign(Object.assign({},u),l),r.headers),(0,a.requestBeforeHook)({requestBody:t,queryParameters:d,requestConfig:c,path:s,configuration:e,pathTemplate:"/snapTrade/registerUser",httpMethod:"POST"}),c.data=(0,i.serializeDataIfNeeded)(t,c,e),(0,i.setSearchParams)(n,d),{url:(0,i.toPathString)(n),options:c}}),resetSnapTradeUserSecret:(t,r={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("resetSnapTradeUserSecret","userIDandSecret",t);const s="/snapTrade/resetUserSecret",n=new URL(s,i.DUMMY_BASE_URL);let o;e&&(o=e.baseOptions);const c=Object.assign(Object.assign({method:"POST"},o),r),u=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},d={};yield(0,i.setApiKeyToObject)({object:d,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:u,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:d,key:"timestamp",keyParamName:"timestamp",configuration:e}),u["Content-Type"]="application/json";let l=o&&o.headers?o.headers:{};return c.headers=Object.assign(Object.assign(Object.assign({},u),l),r.headers),(0,a.requestBeforeHook)({requestBody:t,queryParameters:d,requestConfig:c,path:s,configuration:e,pathTemplate:"/snapTrade/resetUserSecret",httpMethod:"POST"}),c.data=(0,i.serializeDataIfNeeded)(t,c,e),(0,i.setSearchParams)(n,d),{url:(0,i.toPathString)(n),options:c}})}},t.AuthenticationApiFp=function(e){const r=(0,t.AuthenticationApiAxiosParamCreator)(e);return{deleteSnapTradeUser(t,a){return s(this,void 0,void 0,function*(){const s=yield r.deleteSnapTradeUser(t.userId,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},listSnapTradeUsers(t){return s(this,void 0,void 0,function*(){const s=yield r.listSnapTradeUsers(t);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},loginSnapTradeUser(t,a){return s(this,void 0,void 0,function*(){const s={broker:t.broker,immediateRedirect:t.immediateRedirect,customRedirect:t.customRedirect,reconnect:t.reconnect,connectionType:t.connectionType,connectionPortalVersion:t.connectionPortalVersion},c=yield r.loginSnapTradeUser(t.userId,t.userSecret,s,a);return(0,i.createRequestFunction)(c,n.default,o.BASE_PATH,e)})},registerSnapTradeUser(t,a){return s(this,void 0,void 0,function*(){const s={userId:t.userId},c=yield r.registerSnapTradeUser(s,a);return(0,i.createRequestFunction)(c,n.default,o.BASE_PATH,e)})},resetSnapTradeUserSecret(t,a){return s(this,void 0,void 0,function*(){const s={userId:t.userId,userSecret:t.userSecret},c=yield r.resetSnapTradeUserSecret(s,a);return(0,i.createRequestFunction)(c,n.default,o.BASE_PATH,e)})}}},t.AuthenticationApiFactory=function(e,r,s){const n=(0,t.AuthenticationApiFp)(e);return{deleteSnapTradeUser:(e,t)=>n.deleteSnapTradeUser(e,t).then(e=>e(s,r)),listSnapTradeUsers:e=>n.listSnapTradeUsers(e).then(e=>e(s,r)),loginSnapTradeUser:(e,t)=>n.loginSnapTradeUser(e,t).then(e=>e(s,r)),registerSnapTradeUser:(e,t)=>n.registerSnapTradeUser(e,t).then(e=>e(s,r)),resetSnapTradeUserSecret:(e,t)=>n.resetSnapTradeUserSecret(e,t).then(e=>e(s,r))}};class c extends o.BaseAPI{deleteSnapTradeUser(e,r){return(0,t.AuthenticationApiFp)(this.configuration).deleteSnapTradeUser(e,r).then(e=>e(this.axios,this.basePath))}listSnapTradeUsers(e){return(0,t.AuthenticationApiFp)(this.configuration).listSnapTradeUsers(e).then(e=>e(this.axios,this.basePath))}loginSnapTradeUser(e,r){return(0,t.AuthenticationApiFp)(this.configuration).loginSnapTradeUser(e,r).then(e=>e(this.axios,this.basePath))}registerSnapTradeUser(e,r){return(0,t.AuthenticationApiFp)(this.configuration).registerSnapTradeUser(e,r).then(e=>e(this.axios,this.basePath))}resetSnapTradeUserSecret(e,r){return(0,t.AuthenticationApiFp)(this.configuration).resetSnapTradeUserSecret(e,r).then(e=>e(this.axios,this.basePath))}}t.AuthenticationApiGenerated=c},3926:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3959:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4105:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4188:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,s,n)}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),n=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.OptionsApi=void 0;const i=r(400);n(r(400),t);class o extends i.OptionsApiGenerated{}t.OptionsApi=o},4251:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,s,n)}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),n=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}),n(r(3304),t),n(r(3321),t),n(r(2670),t),n(r(589),t),n(r(6687),t),n(r(2459),t),n(r(2135),t),n(r(2074),t),n(r(6612),t),n(r(2731),t),n(r(5854),t),n(r(1456),t),n(r(8911),t),n(r(833),t),n(r(612),t),n(r(7602),t),n(r(1641),t),n(r(1061),t),n(r(2095),t),n(r(7295),t),n(r(689),t),n(r(7291),t),n(r(1447),t),n(r(4747),t),n(r(1871),t),n(r(9168),t),n(r(5491),t),n(r(3504),t),n(r(6837),t),n(r(4700),t),n(r(8222),t),n(r(1590),t),n(r(3926),t),n(r(6483),t),n(r(9452),t),n(r(3104),t),n(r(7249),t),n(r(1843),t),n(r(2525),t),n(r(1766),t),n(r(4105),t),n(r(2286),t),n(r(9634),t),n(r(160),t),n(r(1186),t),n(r(1345),t),n(r(4415),t),n(r(2165),t),n(r(5100),t),n(r(8038),t),n(r(9301),t),n(r(8329),t),n(r(2010),t),n(r(7451),t),n(r(7707),t),n(r(1883),t),n(r(9383),t),n(r(3959),t),n(r(2684),t),n(r(1108),t),n(r(8066),t),n(r(3450),t),n(r(1953),t),n(r(6392),t),n(r(7275),t),n(r(4635),t),n(r(4384),t),n(r(6822),t),n(r(5103),t),n(r(6599),t),n(r(3287),t),n(r(7854),t),n(r(7214),t),n(r(7867),t),n(r(3756),t),n(r(4695),t),n(r(3703),t),n(r(2501),t),n(r(7615),t),n(r(9354),t),n(r(5407),t),n(r(2784),t),n(r(5803),t),n(r(2581),t),n(r(5433),t),n(r(8486),t),n(r(9032),t),n(r(8305),t),n(r(8996),t),n(r(8032),t),n(r(6142),t),n(r(6375),t),n(r(4909),t),n(r(6944),t),n(r(6489),t),n(r(4784),t),n(r(1164),t),n(r(6882),t),n(r(6342),t),n(r(3262),t),n(r(8927),t),n(r(7637),t),n(r(8847),t),n(r(2327),t),n(r(7906),t),n(r(7335),t),n(r(5267),t),n(r(129),t),n(r(6927),t),n(r(6337),t),n(r(1882),t),n(r(8951),t),n(r(9957),t),n(r(5359),t),n(r(6435),t),n(r(3485),t),n(r(7091),t),n(r(2350),t),n(r(5675),t),n(r(5547),t),n(r(6054),t),n(r(8818),t),n(r(4606),t),n(r(1190),t),n(r(1837),t),n(r(9486),t),n(r(5401),t),n(r(6255),t),n(r(1070),t),n(r(8670),t),n(r(803),t),n(r(624),t),n(r(2059),t)},4375:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,s,n)}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),n=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.ConnectionsApi=void 0;const i=r(8015);n(r(8015),t);class o extends i.ConnectionsApiGenerated{}t.ConnectionsApi=o},4384:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4415:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4445:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.requestBeforeHook=void 0,t.requestBeforeHook=function(e){const{queryParameters:t}=e;t.timestamp=Math.round((new Date).getTime()/1e3).toString()}},4467:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RequiredError=t.BaseAPI=t.COLLECTION_FORMATS=t.BASE_PATH=void 0;const s=r(8451);t.BASE_PATH="https://api.snaptrade.com/api/v1".replace(/\/+$/,""),t.COLLECTION_FORMATS={csv:",",ssv:" ",tsv:"\t",pipes:"|"},t.BaseAPI=class{constructor(e,r=t.BASE_PATH,n=s.default){this.basePath=r,this.axios=n,e&&(this.configuration=e,this.basePath=e.basePath||this.basePath)}};class n extends Error{constructor(e,t){super(t),this.field=e,this.name="RequiredError"}}t.RequiredError=n},4606:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4635:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4695:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4700:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4747:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4784:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4909:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5100:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5103:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5198:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,s,n)}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),n=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.ReferenceDataApi=void 0;const i=r(8902);n(r(8902),t);class o extends i.ReferenceDataApiGenerated{}t.ReferenceDataApi=o},5267:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5359:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5401:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5407:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5433:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5469:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SnaptradeCustom=void 0,t.SnaptradeCustom=class{constructor(e){}}},5491:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5511:function(e,t,r){"use strict";var s=this&&this.__awaiter||function(e,t,r,s){return new(r||(r=Promise))(function(n,i){function o(e){try{c(s.next(e))}catch(e){i(e)}}function a(e){try{c(s.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(o,a)}c((s=s.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.isBrowser=t.createRequestFunction=t.removeTrailingSlash=t.toPathString=t.serializeDataIfNeeded=t.setSearchParams=t.setBearerAuthToObject=t.setBasicAuthToObject=t.setApiKeyToObject=t.assertParamExists=t.DUMMY_BASE_URL=void 0;const n=r(4467),i=r(8451),o=r(1204),a=r(2362),c=r(1934);function u(e,t,r=""){"object"==typeof t?Array.isArray(t)?t.forEach(t=>u(e,t,r)):Object.keys(t).forEach(s=>u(e,t[s],`${r}${""!==r?".":""}${s}`)):e.has(r)?e.append(r,t):e.set(r,t)}t.DUMMY_BASE_URL="https://example.com",t.assertParamExists=function(e,t,r){if(null==r)throw new n.RequiredError(t,`Required parameter ${t} was null or undefined when calling ${e}.`)},t.setApiKeyToObject=function({object:e,key:t,type:r,keyParamName:n,configuration:i,prefix:o}){return s(this,void 0,void 0,function*(){t=t||n;let s=null;if(i&&i.apiKey)if("function"==typeof i.apiKey)s=yield i.apiKey(n);else if("string"==typeof i.apiKey)s=i.apiKey;else{if("object"!=typeof i.apiKey)throw Error(`Unexpected type ${typeof i.apiKey} for Configuration.apiKey`);n in i.apiKey&&(s=i.apiKey[n])}s&&(e[t]=void 0!==o?`${o}${s}`:s,"Cookie"===r&&(e[t]=`${n}=${e[t]}`))})},t.setBasicAuthToObject=function(e,t){t&&(t.username||t.password)&&(e.auth={username:t.username,password:t.password})},t.setBearerAuthToObject=function(e,t){return s(this,void 0,void 0,function*(){if(t&&t.accessToken){const r="function"==typeof t.accessToken?yield t.accessToken():yield t.accessToken;e.Authorization="Bearer "+r}})},t.setSearchParams=function(e,...t){const r=new URLSearchParams(e.search);u(r,t),e.search=r.toString()},t.serializeDataIfNeeded=function(e,t,r){const s="string"!=typeof e;return(s&&r&&r.isJsonMime?r.isJsonMime(t.headers["Content-Type"]):s)?JSON.stringify(void 0!==e?e:{}):e||""},t.toPathString=function(e){return(0,t.removeTrailingSlash)(e.pathname)+e.search+e.hash},t.removeTrailingSlash=function(e){return e.replace(/\/$/,"")},t.createRequestFunction=function(e,t,r,n){return(u=t,d=r)=>s(this,void 0,void 0,function*(){(0,a.requestBeforeUrlHook)({axiosArgs:e,basePath:d,configuration:n});const t=((null==n?void 0:n.basePath)||d)+e.url;return yield(0,o.requestAfterHook)({axiosArgs:e,basePath:d,url:t,configuration:n}),function(e){var t,r,n,o,a,u;return s(this,void 0,void 0,function*(){let s=0,d=5e3;for(;s<3;)try{return yield e()}catch(e){if(e instanceof i.AxiosError&&e.isAxiosError){if(429==(null===(t=e.response)||void 0===t?void 0:t.status)){s++,console.log(`429 error encountered, retrying in ${d/1e3} seconds...`),yield new Promise(e=>setTimeout(e,d)),d*=2;continue}try{const t=(null===(r=e.response)||void 0===r?void 0:r.data)instanceof ReadableStream?yield(0,c.readableStreamToString)(e.response.data):null===(n=e.response)||void 0===n?void 0:n.data;throw new c.SnaptradeError(e,(0,c.parseIfJson)(t),null===(o=e.response)||void 0===o?void 0:o.headers)}catch(t){if(t instanceof ReferenceError)throw new c.SnaptradeError(e,null===(a=e.response)||void 0===a?void 0:a.data,null===(u=e.response)||void 0===u?void 0:u.headers);if(t instanceof c.SnaptradeError)throw t;throw e}}throw e}throw new Error("Request failed after 3 retries due to 429 (rate limit) errors.")})}(()=>s(this,void 0,void 0,function*(){return yield u.request(Object.assign(Object.assign({},e.options),{url:t}))}))})},t.isBrowser=function(){return"undefined"!=typeof window}},5547:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5675:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5803:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5854:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6054:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6057:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Snaptrade=void 0;const s=r(8564),n=r(6254),i=r(5469);class o extends i.SnaptradeCustom{constructor(e={}){super(e);const t=new n.Configuration(e);this.accountInformation=new s.AccountInformationApi(t),this.apiStatus=new s.ApiStatusApi(t),this.authentication=new s.AuthenticationApi(t),this.connections=new s.ConnectionsApi(t),this.options=new s.OptionsApi(t),this.referenceData=new s.ReferenceDataApi(t),this.trading=new s.TradingApi(t),this.transactionsAndReporting=new s.TransactionsAndReportingApi(t)}}t.Snaptrade=o},6142:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6227:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,s,n)}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),n=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.ApiStatusApi=void 0;const i=r(8747);n(r(8747),t);class o extends i.ApiStatusApiGenerated{}t.ApiStatusApi=o},6254:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Configuration=void 0,t.Configuration=class{constructor(e={}){var t;this.consumerKey=e.consumerKey,this.apiKey=e.apiKey,void 0===this.apiKey&&(this.apiKey={},void 0!==e.clientId&&(this.apiKey.clientId=e.clientId),void 0!==e.signature&&(this.apiKey.signature=e.signature),void 0!==e.timestamp&&(this.apiKey.timestamp=e.timestamp)),this.username=e.username,this.password=e.password,this.accessToken=e.accessToken,this.basePath=e.basePath,this.baseOptions=null!==(t=e.baseOptions)&&void 0!==t?t:{},this.userAgent=void 0===e.userAgent?"Konfig/9.0.113/typescript":e.userAgent,this.formDataCtor=e.formDataCtor}isJsonMime(e){const t=new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$","i");return null!==e&&(t.test(e)||"application/json-patch+json"===e.toLowerCase())}}},6255:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6337:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6342:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6375:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6392:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6435:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6483:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6489:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6599:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6612:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6687:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6822:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6837:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6882:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6927:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6944:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7091:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7214:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7249:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7275:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7291:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7295:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7335:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7451:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7483:function(e,t,r){"use strict";var s=this&&this.__awaiter||function(e,t,r,s){return new(r||(r=Promise))(function(n,i){function o(e){try{c(s.next(e))}catch(e){i(e)}}function a(e){try{c(s.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(o,a)}c((s=s.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.TradingApiGenerated=t.TradingApiFactory=t.TradingApiFp=t.TradingApiAxiosParamCreator=void 0;const n=r(8451),i=r(5511),o=r(4467),a=r(4445);t.TradingApiAxiosParamCreator=function(e){return{cancelOrder:(t,r,n,o,c={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("cancelOrder","userId",t),(0,i.assertParamExists)("cancelOrder","userSecret",r),(0,i.assertParamExists)("cancelOrder","accountId",n),(0,i.assertParamExists)("cancelOrder","brokerageOrderId",o);const s="/accounts/{accountId}/trading/simple/{brokerageOrderId}/cancel".replace("{accountId}",encodeURIComponent(String(void 0!==n?n:"-accountId-"))).replace("{brokerageOrderId}",encodeURIComponent(String(void 0!==o?o:"-brokerageOrderId-"))),u=new URL(s,i.DUMMY_BASE_URL);let d;e&&(d=e.baseOptions);const l=Object.assign(Object.assign({method:"POST"},d),c),p=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},h={};yield(0,i.setApiKeyToObject)({object:h,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:h,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(h.userId=t),void 0!==r&&(h.userSecret=r);let g=d&&d.headers?d.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},p),g),c.headers),(0,a.requestBeforeHook)({queryParameters:h,requestConfig:l,path:s,configuration:e,pathTemplate:"/accounts/{accountId}/trading/simple/{brokerageOrderId}/cancel",httpMethod:"POST"}),(0,i.setSearchParams)(u,h),{url:(0,i.toPathString)(u),options:l}}),cancelUserAccountOrder:(t,r,n,o,c={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("cancelUserAccountOrder","userId",t),(0,i.assertParamExists)("cancelUserAccountOrder","userSecret",r),(0,i.assertParamExists)("cancelUserAccountOrder","accountId",n),(0,i.assertParamExists)("cancelUserAccountOrder","tradingCancelUserAccountOrderRequest",o);const s="/accounts/{accountId}/orders/cancel".replace("{accountId}",encodeURIComponent(String(void 0!==n?n:"-accountId-"))),u=new URL(s,i.DUMMY_BASE_URL);let d;e&&(d=e.baseOptions);const l=Object.assign(Object.assign({method:"POST"},d),c),p=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},h={};yield(0,i.setApiKeyToObject)({object:h,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:h,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(h.userId=t),void 0!==r&&(h.userSecret=r),p["Content-Type"]="application/json";let g=d&&d.headers?d.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},p),g),c.headers),(0,a.requestBeforeHook)({requestBody:o,queryParameters:h,requestConfig:l,path:s,configuration:e,pathTemplate:"/accounts/{accountId}/orders/cancel",httpMethod:"POST"}),l.data=(0,i.serializeDataIfNeeded)(o,l,e),(0,i.setSearchParams)(u,h),{url:(0,i.toPathString)(u),options:l}}),getCryptocurrencyPairQuote:(t,r,n,o,c={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("getCryptocurrencyPairQuote","userId",t),(0,i.assertParamExists)("getCryptocurrencyPairQuote","userSecret",r),(0,i.assertParamExists)("getCryptocurrencyPairQuote","accountId",n),(0,i.assertParamExists)("getCryptocurrencyPairQuote","instrumentSymbol",o);const s="/accounts/{accountId}/trading/instruments/cryptocurrencyPairs/{instrumentSymbol}/quote".replace("{accountId}",encodeURIComponent(String(void 0!==n?n:"-accountId-"))).replace("{instrumentSymbol}",encodeURIComponent(String(void 0!==o?o:"-instrumentSymbol-"))),u=new URL(s,i.DUMMY_BASE_URL);let d;e&&(d=e.baseOptions);const l=Object.assign(Object.assign({method:"GET"},d),c),p=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},h={};yield(0,i.setApiKeyToObject)({object:h,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:h,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(h.userId=t),void 0!==r&&(h.userSecret=r);let g=d&&d.headers?d.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},p),g),c.headers),(0,a.requestBeforeHook)({queryParameters:h,requestConfig:l,path:s,configuration:e,pathTemplate:"/accounts/{accountId}/trading/instruments/cryptocurrencyPairs/{instrumentSymbol}/quote",httpMethod:"GET"}),(0,i.setSearchParams)(u,h),{url:(0,i.toPathString)(u),options:l}}),getOrderImpact:(t,r,n,o={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("getOrderImpact","userId",t),(0,i.assertParamExists)("getOrderImpact","userSecret",r),(0,i.assertParamExists)("getOrderImpact","manualTradeForm",n);const s="/trade/impact",c=new URL(s,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"POST"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(p.userId=t),void 0!==r&&(p.userSecret=r),l["Content-Type"]="application/json";let h=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),h),o.headers),(0,a.requestBeforeHook)({requestBody:n,queryParameters:p,requestConfig:d,path:s,configuration:e,pathTemplate:"/trade/impact",httpMethod:"POST"}),d.data=(0,i.serializeDataIfNeeded)(n,d,e),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}}),getUserAccountQuotes:(t,r,n,o,c,u={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("getUserAccountQuotes","userId",t),(0,i.assertParamExists)("getUserAccountQuotes","userSecret",r),(0,i.assertParamExists)("getUserAccountQuotes","symbols",n),(0,i.assertParamExists)("getUserAccountQuotes","accountId",o);const s="/accounts/{accountId}/quotes".replace("{accountId}",encodeURIComponent(String(void 0!==o?o:"-accountId-"))),d=new URL(s,i.DUMMY_BASE_URL);let l;e&&(l=e.baseOptions);const p=Object.assign(Object.assign({method:"GET"},l),u),h=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},g={};yield(0,i.setApiKeyToObject)({object:g,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:h,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:g,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(g.userId=t),void 0!==r&&(g.userSecret=r),void 0!==n&&(g.symbols=n),void 0!==c&&(g.use_ticker=c);let f=l&&l.headers?l.headers:{};return p.headers=Object.assign(Object.assign(Object.assign({},h),f),u.headers),(0,a.requestBeforeHook)({queryParameters:g,requestConfig:p,path:s,configuration:e,pathTemplate:"/accounts/{accountId}/quotes",httpMethod:"GET"}),(0,i.setSearchParams)(d,g),{url:(0,i.toPathString)(d),options:p}}),placeBracketOrder:(t,r,n,o,c={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("placeBracketOrder","accountId",t),(0,i.assertParamExists)("placeBracketOrder","userId",r),(0,i.assertParamExists)("placeBracketOrder","userSecret",n),(0,i.assertParamExists)("placeBracketOrder","manualTradeFormBracket",o);const s="/accounts/{accountId}/trading/bracket".replace("{accountId}",encodeURIComponent(String(void 0!==t?t:"-accountId-"))),u=new URL(s,i.DUMMY_BASE_URL);let d;e&&(d=e.baseOptions);const l=Object.assign(Object.assign({method:"POST"},d),c),p=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},h={};yield(0,i.setApiKeyToObject)({object:h,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:h,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==r&&(h.userId=r),void 0!==n&&(h.userSecret=n),p["Content-Type"]="application/json";let g=d&&d.headers?d.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},p),g),c.headers),(0,a.requestBeforeHook)({requestBody:o,queryParameters:h,requestConfig:l,path:s,configuration:e,pathTemplate:"/accounts/{accountId}/trading/bracket",httpMethod:"POST"}),l.data=(0,i.serializeDataIfNeeded)(o,l,e),(0,i.setSearchParams)(u,h),{url:(0,i.toPathString)(u),options:l}}),placeForceOrder:(t,r,n,o={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("placeForceOrder","userId",t),(0,i.assertParamExists)("placeForceOrder","userSecret",r),(0,i.assertParamExists)("placeForceOrder","manualTradeFormWithOptions",n);const s="/trade/place",c=new URL(s,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"POST"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(p.userId=t),void 0!==r&&(p.userSecret=r),l["Content-Type"]="application/json";let h=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),h),o.headers),(0,a.requestBeforeHook)({requestBody:n,queryParameters:p,requestConfig:d,path:s,configuration:e,pathTemplate:"/trade/place",httpMethod:"POST"}),d.data=(0,i.serializeDataIfNeeded)(n,d,e),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}}),placeMlegOrder:(t,r,n,o,c={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("placeMlegOrder","userId",t),(0,i.assertParamExists)("placeMlegOrder","userSecret",r),(0,i.assertParamExists)("placeMlegOrder","accountId",n),(0,i.assertParamExists)("placeMlegOrder","mlegTradeForm",o);const s="/accounts/{accountId}/trading/options".replace("{accountId}",encodeURIComponent(String(void 0!==n?n:"-accountId-"))),u=new URL(s,i.DUMMY_BASE_URL);let d;e&&(d=e.baseOptions);const l=Object.assign(Object.assign({method:"POST"},d),c),p=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},h={};yield(0,i.setApiKeyToObject)({object:h,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:h,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(h.userId=t),void 0!==r&&(h.userSecret=r),p["Content-Type"]="application/json";let g=d&&d.headers?d.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},p),g),c.headers),(0,a.requestBeforeHook)({requestBody:o,queryParameters:h,requestConfig:l,path:s,configuration:e,pathTemplate:"/accounts/{accountId}/trading/options",httpMethod:"POST"}),l.data=(0,i.serializeDataIfNeeded)(o,l,e),(0,i.setSearchParams)(u,h),{url:(0,i.toPathString)(u),options:l}}),placeOrder:(t,r,n,o,c={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("placeOrder","tradeId",t),(0,i.assertParamExists)("placeOrder","userId",r),(0,i.assertParamExists)("placeOrder","userSecret",n);const s="/trade/{tradeId}".replace("{tradeId}",encodeURIComponent(String(void 0!==t?t:"-tradeId-"))),u=new URL(s,i.DUMMY_BASE_URL);let d;e&&(d=e.baseOptions);const l=Object.assign(Object.assign({method:"POST"},d),c),p=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},h={};yield(0,i.setApiKeyToObject)({object:h,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:h,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==r&&(h.userId=r),void 0!==n&&(h.userSecret=n),p["Content-Type"]="application/json";let g=d&&d.headers?d.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},p),g),c.headers),(0,a.requestBeforeHook)({requestBody:o,queryParameters:h,requestConfig:l,path:s,configuration:e,pathTemplate:"/trade/{tradeId}",httpMethod:"POST"}),l.data=(0,i.serializeDataIfNeeded)(o,l,e),(0,i.setSearchParams)(u,h),{url:(0,i.toPathString)(u),options:l}}),placeSimpleOrder:(t,r,n,o,c={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("placeSimpleOrder","userId",t),(0,i.assertParamExists)("placeSimpleOrder","userSecret",r),(0,i.assertParamExists)("placeSimpleOrder","accountId",n),(0,i.assertParamExists)("placeSimpleOrder","simpleOrderForm",o);const s="/accounts/{accountId}/trading/simple".replace("{accountId}",encodeURIComponent(String(void 0!==n?n:"-accountId-"))),u=new URL(s,i.DUMMY_BASE_URL);let d;e&&(d=e.baseOptions);const l=Object.assign(Object.assign({method:"POST"},d),c),p=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},h={};yield(0,i.setApiKeyToObject)({object:h,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:h,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(h.userId=t),void 0!==r&&(h.userSecret=r),p["Content-Type"]="application/json";let g=d&&d.headers?d.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},p),g),c.headers),(0,a.requestBeforeHook)({requestBody:o,queryParameters:h,requestConfig:l,path:s,configuration:e,pathTemplate:"/accounts/{accountId}/trading/simple",httpMethod:"POST"}),l.data=(0,i.serializeDataIfNeeded)(o,l,e),(0,i.setSearchParams)(u,h),{url:(0,i.toPathString)(u),options:l}}),previewSimpleOrder:(t,r,n,o,c={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("previewSimpleOrder","userId",t),(0,i.assertParamExists)("previewSimpleOrder","userSecret",r),(0,i.assertParamExists)("previewSimpleOrder","accountId",n),(0,i.assertParamExists)("previewSimpleOrder","simpleOrderForm",o);const s="/accounts/{accountId}/trading/simple/preview".replace("{accountId}",encodeURIComponent(String(void 0!==n?n:"-accountId-"))),u=new URL(s,i.DUMMY_BASE_URL);let d;e&&(d=e.baseOptions);const l=Object.assign(Object.assign({method:"POST"},d),c),p=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},h={};yield(0,i.setApiKeyToObject)({object:h,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:h,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(h.userId=t),void 0!==r&&(h.userSecret=r),p["Content-Type"]="application/json";let g=d&&d.headers?d.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},p),g),c.headers),(0,a.requestBeforeHook)({requestBody:o,queryParameters:h,requestConfig:l,path:s,configuration:e,pathTemplate:"/accounts/{accountId}/trading/simple/preview",httpMethod:"POST"}),l.data=(0,i.serializeDataIfNeeded)(o,l,e),(0,i.setSearchParams)(u,h),{url:(0,i.toPathString)(u),options:l}}),replaceOrder:(t,r,n,o,c,u={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("replaceOrder","accountId",t),(0,i.assertParamExists)("replaceOrder","brokerageOrderId",r),(0,i.assertParamExists)("replaceOrder","userId",n),(0,i.assertParamExists)("replaceOrder","userSecret",o),(0,i.assertParamExists)("replaceOrder","manualTradeReplaceForm",c);const s="/accounts/{accountId}/trading/simple/{brokerageOrderId}/replace".replace("{accountId}",encodeURIComponent(String(void 0!==t?t:"-accountId-"))).replace("{brokerageOrderId}",encodeURIComponent(String(void 0!==r?r:"-brokerageOrderId-"))),d=new URL(s,i.DUMMY_BASE_URL);let l;e&&(l=e.baseOptions);const p=Object.assign(Object.assign({method:"PATCH"},l),u),h=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},g={};yield(0,i.setApiKeyToObject)({object:g,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:h,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:g,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==n&&(g.userId=n),void 0!==o&&(g.userSecret=o),h["Content-Type"]="application/json";let f=l&&l.headers?l.headers:{};return p.headers=Object.assign(Object.assign(Object.assign({},h),f),u.headers),(0,a.requestBeforeHook)({requestBody:c,queryParameters:g,requestConfig:p,path:s,configuration:e,pathTemplate:"/accounts/{accountId}/trading/simple/{brokerageOrderId}/replace",httpMethod:"PATCH"}),p.data=(0,i.serializeDataIfNeeded)(c,p,e),(0,i.setSearchParams)(d,g),{url:(0,i.toPathString)(d),options:p}}),searchCryptocurrencyPairInstruments:(t,r,n,o,c,u={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("searchCryptocurrencyPairInstruments","userId",t),(0,i.assertParamExists)("searchCryptocurrencyPairInstruments","userSecret",r),(0,i.assertParamExists)("searchCryptocurrencyPairInstruments","accountId",n);const s="/accounts/{accountId}/trading/instruments/cryptocurrencyPairs".replace("{accountId}",encodeURIComponent(String(void 0!==n?n:"-accountId-"))),d=new URL(s,i.DUMMY_BASE_URL);let l;e&&(l=e.baseOptions);const p=Object.assign(Object.assign({method:"GET"},l),u),h=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},g={};yield(0,i.setApiKeyToObject)({object:g,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:h,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:g,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(g.userId=t),void 0!==r&&(g.userSecret=r),void 0!==o&&(g.base=o),void 0!==c&&(g.quote=c);let f=l&&l.headers?l.headers:{};return p.headers=Object.assign(Object.assign(Object.assign({},h),f),u.headers),(0,a.requestBeforeHook)({queryParameters:g,requestConfig:p,path:s,configuration:e,pathTemplate:"/accounts/{accountId}/trading/instruments/cryptocurrencyPairs",httpMethod:"GET"}),(0,i.setSearchParams)(d,g),{url:(0,i.toPathString)(d),options:p}})}},t.TradingApiFp=function(e){const r=(0,t.TradingApiAxiosParamCreator)(e);return{cancelOrder(t,a){return s(this,void 0,void 0,function*(){const s=yield r.cancelOrder(t.userId,t.userSecret,t.accountId,t.brokerageOrderId,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},cancelUserAccountOrder(t,a){return s(this,void 0,void 0,function*(){const s={brokerage_order_id:t.brokerage_order_id},c=yield r.cancelUserAccountOrder(t.userId,t.userSecret,t.accountId,s,a);return(0,i.createRequestFunction)(c,n.default,o.BASE_PATH,e)})},getCryptocurrencyPairQuote(t,a){return s(this,void 0,void 0,function*(){const s=yield r.getCryptocurrencyPairQuote(t.userId,t.userSecret,t.accountId,t.instrumentSymbol,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},getOrderImpact(t,a){return s(this,void 0,void 0,function*(){const s={account_id:t.account_id,action:t.action,universal_symbol_id:t.universal_symbol_id,order_type:t.order_type,time_in_force:t.time_in_force,price:t.price,stop:t.stop,units:t.units,notional_value:t.notional_value},c=yield r.getOrderImpact(t.userId,t.userSecret,s,a);return(0,i.createRequestFunction)(c,n.default,o.BASE_PATH,e)})},getUserAccountQuotes(t,a){return s(this,void 0,void 0,function*(){const s=yield r.getUserAccountQuotes(t.userId,t.userSecret,t.symbols,t.accountId,t.useTicker,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},placeBracketOrder(t,a){return s(this,void 0,void 0,function*(){const s={action:t.action,symbol:t.symbol,instrument:t.instrument,order_type:t.order_type,time_in_force:t.time_in_force,price:t.price,stop:t.stop,units:t.units,stop_loss:t.stop_loss,take_profit:t.take_profit},c=yield r.placeBracketOrder(t.accountId,t.userId,t.userSecret,s,a);return(0,i.createRequestFunction)(c,n.default,o.BASE_PATH,e)})},placeForceOrder(t,a){return s(this,void 0,void 0,function*(){const s={account_id:t.account_id,action:t.action,universal_symbol_id:t.universal_symbol_id,symbol:t.symbol,order_type:t.order_type,time_in_force:t.time_in_force,price:t.price,stop:t.stop,units:t.units,notional_value:t.notional_value},c=yield r.placeForceOrder(t.userId,t.userSecret,s,a);return(0,i.createRequestFunction)(c,n.default,o.BASE_PATH,e)})},placeMlegOrder(t,a){return s(this,void 0,void 0,function*(){const s={order_type:t.order_type,time_in_force:t.time_in_force,limit_price:t.limit_price,stop_price:t.stop_price,price_effect:t.price_effect,legs:t.legs},c=yield r.placeMlegOrder(t.userId,t.userSecret,t.accountId,s,a);return(0,i.createRequestFunction)(c,n.default,o.BASE_PATH,e)})},placeOrder(t,a){return s(this,void 0,void 0,function*(){const s={wait_to_confirm:t.wait_to_confirm},c=yield r.placeOrder(t.tradeId,t.userId,t.userSecret,s,a);return(0,i.createRequestFunction)(c,n.default,o.BASE_PATH,e)})},placeSimpleOrder(t,a){return s(this,void 0,void 0,function*(){const s={instrument:t.instrument,side:t.side,type:t.type,time_in_force:t.time_in_force,amount:t.amount,limit_price:t.limit_price,stop_price:t.stop_price,post_only:t.post_only,expiration_date:t.expiration_date},c=yield r.placeSimpleOrder(t.userId,t.userSecret,t.accountId,s,a);return(0,i.createRequestFunction)(c,n.default,o.BASE_PATH,e)})},previewSimpleOrder(t,a){return s(this,void 0,void 0,function*(){const s={instrument:t.instrument,side:t.side,type:t.type,time_in_force:t.time_in_force,amount:t.amount,limit_price:t.limit_price,stop_price:t.stop_price,post_only:t.post_only,expiration_date:t.expiration_date},c=yield r.previewSimpleOrder(t.userId,t.userSecret,t.accountId,s,a);return(0,i.createRequestFunction)(c,n.default,o.BASE_PATH,e)})},replaceOrder(t,a){return s(this,void 0,void 0,function*(){const s={action:t.action,order_type:t.order_type,time_in_force:t.time_in_force,price:t.price,symbol:t.symbol,stop:t.stop,units:t.units},c=yield r.replaceOrder(t.accountId,t.brokerageOrderId,t.userId,t.userSecret,s,a);return(0,i.createRequestFunction)(c,n.default,o.BASE_PATH,e)})},searchCryptocurrencyPairInstruments(t,a){return s(this,void 0,void 0,function*(){const s=yield r.searchCryptocurrencyPairInstruments(t.userId,t.userSecret,t.accountId,t.base,t.quote,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})}}},t.TradingApiFactory=function(e,r,s){const n=(0,t.TradingApiFp)(e);return{cancelOrder:(e,t)=>n.cancelOrder(e,t).then(e=>e(s,r)),cancelUserAccountOrder:(e,t)=>n.cancelUserAccountOrder(e,t).then(e=>e(s,r)),getCryptocurrencyPairQuote:(e,t)=>n.getCryptocurrencyPairQuote(e,t).then(e=>e(s,r)),getOrderImpact:(e,t)=>n.getOrderImpact(e,t).then(e=>e(s,r)),getUserAccountQuotes:(e,t)=>n.getUserAccountQuotes(e,t).then(e=>e(s,r)),placeBracketOrder:(e,t)=>n.placeBracketOrder(e,t).then(e=>e(s,r)),placeForceOrder:(e,t)=>n.placeForceOrder(e,t).then(e=>e(s,r)),placeMlegOrder:(e,t)=>n.placeMlegOrder(e,t).then(e=>e(s,r)),placeOrder:(e,t)=>n.placeOrder(e,t).then(e=>e(s,r)),placeSimpleOrder:(e,t)=>n.placeSimpleOrder(e,t).then(e=>e(s,r)),previewSimpleOrder:(e,t)=>n.previewSimpleOrder(e,t).then(e=>e(s,r)),replaceOrder:(e,t)=>n.replaceOrder(e,t).then(e=>e(s,r)),searchCryptocurrencyPairInstruments:(e,t)=>n.searchCryptocurrencyPairInstruments(e,t).then(e=>e(s,r))}};class c extends o.BaseAPI{cancelOrder(e,r){return(0,t.TradingApiFp)(this.configuration).cancelOrder(e,r).then(e=>e(this.axios,this.basePath))}cancelUserAccountOrder(e,r){return(0,t.TradingApiFp)(this.configuration).cancelUserAccountOrder(e,r).then(e=>e(this.axios,this.basePath))}getCryptocurrencyPairQuote(e,r){return(0,t.TradingApiFp)(this.configuration).getCryptocurrencyPairQuote(e,r).then(e=>e(this.axios,this.basePath))}getOrderImpact(e,r){return(0,t.TradingApiFp)(this.configuration).getOrderImpact(e,r).then(e=>e(this.axios,this.basePath))}getUserAccountQuotes(e,r){return(0,t.TradingApiFp)(this.configuration).getUserAccountQuotes(e,r).then(e=>e(this.axios,this.basePath))}placeBracketOrder(e,r){return(0,t.TradingApiFp)(this.configuration).placeBracketOrder(e,r).then(e=>e(this.axios,this.basePath))}placeForceOrder(e,r){return(0,t.TradingApiFp)(this.configuration).placeForceOrder(e,r).then(e=>e(this.axios,this.basePath))}placeMlegOrder(e,r){return(0,t.TradingApiFp)(this.configuration).placeMlegOrder(e,r).then(e=>e(this.axios,this.basePath))}placeOrder(e,r){return(0,t.TradingApiFp)(this.configuration).placeOrder(e,r).then(e=>e(this.axios,this.basePath))}placeSimpleOrder(e,r){return(0,t.TradingApiFp)(this.configuration).placeSimpleOrder(e,r).then(e=>e(this.axios,this.basePath))}previewSimpleOrder(e,r){return(0,t.TradingApiFp)(this.configuration).previewSimpleOrder(e,r).then(e=>e(this.axios,this.basePath))}replaceOrder(e,r){return(0,t.TradingApiFp)(this.configuration).replaceOrder(e,r).then(e=>e(this.axios,this.basePath))}searchCryptocurrencyPairInstruments(e,r){return(0,t.TradingApiFp)(this.configuration).searchCryptocurrencyPairInstruments(e,r).then(e=>e(this.axios,this.basePath))}}t.TradingApiGenerated=c},7602:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7615:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7637:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7707:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7854:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7867:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7906:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8015:function(e,t,r){"use strict";var s=this&&this.__awaiter||function(e,t,r,s){return new(r||(r=Promise))(function(n,i){function o(e){try{c(s.next(e))}catch(e){i(e)}}function a(e){try{c(s.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(o,a)}c((s=s.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectionsApiGenerated=t.ConnectionsApiFactory=t.ConnectionsApiFp=t.ConnectionsApiAxiosParamCreator=void 0;const n=r(8451),i=r(5511),o=r(4467),a=r(4445);t.ConnectionsApiAxiosParamCreator=function(e){return{detailBrokerageAuthorization:(t,r,n,o={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("detailBrokerageAuthorization","authorizationId",t),(0,i.assertParamExists)("detailBrokerageAuthorization","userId",r),(0,i.assertParamExists)("detailBrokerageAuthorization","userSecret",n);const s="/authorizations/{authorizationId}".replace("{authorizationId}",encodeURIComponent(String(void 0!==t?t:"-authorizationId-"))),c=new URL(s,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"GET"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==r&&(p.userId=r),void 0!==n&&(p.userSecret=n);let h=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),h),o.headers),(0,a.requestBeforeHook)({queryParameters:p,requestConfig:d,path:s,configuration:e,pathTemplate:"/authorizations/{authorizationId}",httpMethod:"GET"}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}}),disableBrokerageAuthorization:(t,r,n,o={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("disableBrokerageAuthorization","authorizationId",t),(0,i.assertParamExists)("disableBrokerageAuthorization","userId",r),(0,i.assertParamExists)("disableBrokerageAuthorization","userSecret",n);const s="/authorizations/{authorizationId}/disable".replace("{authorizationId}",encodeURIComponent(String(void 0!==t?t:"-authorizationId-"))),c=new URL(s,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"POST"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==r&&(p.userId=r),void 0!==n&&(p.userSecret=n);let h=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),h),o.headers),(0,a.requestBeforeHook)({queryParameters:p,requestConfig:d,path:s,configuration:e,pathTemplate:"/authorizations/{authorizationId}/disable",httpMethod:"POST"}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}}),listBrokerageAuthorizations:(t,r,n={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("listBrokerageAuthorizations","userId",t),(0,i.assertParamExists)("listBrokerageAuthorizations","userSecret",r);const s="/authorizations",o=new URL(s,i.DUMMY_BASE_URL);let c;e&&(c=e.baseOptions);const u=Object.assign(Object.assign({method:"GET"},c),n),d=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},l={};yield(0,i.setApiKeyToObject)({object:l,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:d,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(l.userId=t),void 0!==r&&(l.userSecret=r);let p=c&&c.headers?c.headers:{};return u.headers=Object.assign(Object.assign(Object.assign({},d),p),n.headers),(0,a.requestBeforeHook)({queryParameters:l,requestConfig:u,path:s,configuration:e,pathTemplate:"/authorizations",httpMethod:"GET"}),(0,i.setSearchParams)(o,l),{url:(0,i.toPathString)(o),options:u}}),refreshBrokerageAuthorization:(t,r,n,o={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("refreshBrokerageAuthorization","authorizationId",t),(0,i.assertParamExists)("refreshBrokerageAuthorization","userId",r),(0,i.assertParamExists)("refreshBrokerageAuthorization","userSecret",n);const s="/authorizations/{authorizationId}/refresh".replace("{authorizationId}",encodeURIComponent(String(void 0!==t?t:"-authorizationId-"))),c=new URL(s,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"POST"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==r&&(p.userId=r),void 0!==n&&(p.userSecret=n);let h=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),h),o.headers),(0,a.requestBeforeHook)({queryParameters:p,requestConfig:d,path:s,configuration:e,pathTemplate:"/authorizations/{authorizationId}/refresh",httpMethod:"POST"}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}}),removeBrokerageAuthorization:(t,r,n,o={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("removeBrokerageAuthorization","authorizationId",t),(0,i.assertParamExists)("removeBrokerageAuthorization","userId",r),(0,i.assertParamExists)("removeBrokerageAuthorization","userSecret",n);const s="/authorizations/{authorizationId}".replace("{authorizationId}",encodeURIComponent(String(void 0!==t?t:"-authorizationId-"))),c=new URL(s,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"DELETE"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==r&&(p.userId=r),void 0!==n&&(p.userSecret=n);let h=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),h),o.headers),(0,a.requestBeforeHook)({queryParameters:p,requestConfig:d,path:s,configuration:e,pathTemplate:"/authorizations/{authorizationId}",httpMethod:"DELETE"}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}}),returnRates:(t,r,n,o={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("returnRates","userId",t),(0,i.assertParamExists)("returnRates","userSecret",r),(0,i.assertParamExists)("returnRates","authorizationId",n);const s="/authorizations/{authorizationId}/returnRates".replace("{authorizationId}",encodeURIComponent(String(void 0!==n?n:"-authorizationId-"))),c=new URL(s,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"GET"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(p.userId=t),void 0!==r&&(p.userSecret=r);let h=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),h),o.headers),(0,a.requestBeforeHook)({queryParameters:p,requestConfig:d,path:s,configuration:e,pathTemplate:"/authorizations/{authorizationId}/returnRates",httpMethod:"GET"}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}}),sessionEvents:(t,r,n,o={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("sessionEvents","partnerClientId",t);const s="/sessionEvents",c=new URL(s,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"GET"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(p.PartnerClientId=t),void 0!==r&&(p.userId=r),void 0!==n&&(p.sessionId=n);let h=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),h),o.headers),(0,a.requestBeforeHook)({queryParameters:p,requestConfig:d,path:s,configuration:e,pathTemplate:"/sessionEvents",httpMethod:"GET"}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}})}},t.ConnectionsApiFp=function(e){const r=(0,t.ConnectionsApiAxiosParamCreator)(e);return{detailBrokerageAuthorization(t,a){return s(this,void 0,void 0,function*(){const s=yield r.detailBrokerageAuthorization(t.authorizationId,t.userId,t.userSecret,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},disableBrokerageAuthorization(t,a){return s(this,void 0,void 0,function*(){const s=yield r.disableBrokerageAuthorization(t.authorizationId,t.userId,t.userSecret,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},listBrokerageAuthorizations(t,a){return s(this,void 0,void 0,function*(){const s=yield r.listBrokerageAuthorizations(t.userId,t.userSecret,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},refreshBrokerageAuthorization(t,a){return s(this,void 0,void 0,function*(){const s=yield r.refreshBrokerageAuthorization(t.authorizationId,t.userId,t.userSecret,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},removeBrokerageAuthorization(t,a){return s(this,void 0,void 0,function*(){const s=yield r.removeBrokerageAuthorization(t.authorizationId,t.userId,t.userSecret,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},returnRates(t,a){return s(this,void 0,void 0,function*(){const s=yield r.returnRates(t.userId,t.userSecret,t.authorizationId,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},sessionEvents(t,a){return s(this,void 0,void 0,function*(){const s=yield r.sessionEvents(t.partnerClientId,t.userId,t.sessionId,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})}}},t.ConnectionsApiFactory=function(e,r,s){const n=(0,t.ConnectionsApiFp)(e);return{detailBrokerageAuthorization:(e,t)=>n.detailBrokerageAuthorization(e,t).then(e=>e(s,r)),disableBrokerageAuthorization:(e,t)=>n.disableBrokerageAuthorization(e,t).then(e=>e(s,r)),listBrokerageAuthorizations:(e,t)=>n.listBrokerageAuthorizations(e,t).then(e=>e(s,r)),refreshBrokerageAuthorization:(e,t)=>n.refreshBrokerageAuthorization(e,t).then(e=>e(s,r)),removeBrokerageAuthorization:(e,t)=>n.removeBrokerageAuthorization(e,t).then(e=>e(s,r)),returnRates:(e,t)=>n.returnRates(e,t).then(e=>e(s,r)),sessionEvents:(e,t)=>n.sessionEvents(e,t).then(e=>e(s,r))}};class c extends o.BaseAPI{detailBrokerageAuthorization(e,r){return(0,t.ConnectionsApiFp)(this.configuration).detailBrokerageAuthorization(e,r).then(e=>e(this.axios,this.basePath))}disableBrokerageAuthorization(e,r){return(0,t.ConnectionsApiFp)(this.configuration).disableBrokerageAuthorization(e,r).then(e=>e(this.axios,this.basePath))}listBrokerageAuthorizations(e,r){return(0,t.ConnectionsApiFp)(this.configuration).listBrokerageAuthorizations(e,r).then(e=>e(this.axios,this.basePath))}refreshBrokerageAuthorization(e,r){return(0,t.ConnectionsApiFp)(this.configuration).refreshBrokerageAuthorization(e,r).then(e=>e(this.axios,this.basePath))}removeBrokerageAuthorization(e,r){return(0,t.ConnectionsApiFp)(this.configuration).removeBrokerageAuthorization(e,r).then(e=>e(this.axios,this.basePath))}returnRates(e,r){return(0,t.ConnectionsApiFp)(this.configuration).returnRates(e,r).then(e=>e(this.axios,this.basePath))}sessionEvents(e,r){return(0,t.ConnectionsApiFp)(this.configuration).sessionEvents(e,r).then(e=>e(this.axios,this.basePath))}}t.ConnectionsApiGenerated=c},8032:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8038:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8066:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8190:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,s,n)}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),n=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.AuthenticationApi=void 0;const i=r(3814);n(r(3814),t);class o extends i.AuthenticationApiGenerated{}t.AuthenticationApi=o},8222:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8270:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,s,n)}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),n=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.AccountInformationApi=void 0;const i=r(9190);n(r(9190),t);class o extends i.AccountInformationApiGenerated{}t.AccountInformationApi=o},8305:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8329:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8451:(e,t,r)=>{"use strict";function s(e,t){return function(){return e.apply(t,arguments)}}const{toString:n}=Object.prototype,{getPrototypeOf:i}=Object,{iterator:o,toStringTag:a}=Symbol,c=(u=Object.create(null),e=>{const t=n.call(e);return u[t]||(u[t]=t.slice(8,-1).toLowerCase())});var u;const d=e=>(e=e.toLowerCase(),t=>c(t)===e),l=e=>t=>typeof t===e,{isArray:p}=Array,h=l("undefined"),g=d("ArrayBuffer"),f=l("string"),y=l("function"),m=l("number"),b=e=>null!==e&&"object"==typeof e,O=e=>{if("object"!==c(e))return!1;const t=i(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||a in e||o in e)},A=d("Date"),P=d("File"),j=d("Blob"),v=d("FileList"),S=d("URLSearchParams"),[_,T,I,k]=["ReadableStream","Request","Response","Headers"].map(d);function E(e,t,{allOwnKeys:r=!1}={}){if(null==e)return;let s,n;if("object"!=typeof e&&(e=[e]),p(e))for(s=0,n=e.length;s<n;s++)t.call(null,e[s],s,e);else{const n=r?Object.getOwnPropertyNames(e):Object.keys(e),i=n.length;let o;for(s=0;s<i;s++)o=n[s],t.call(null,e[o],o,e)}}function U(e,t){t=t.toLowerCase();const r=Object.keys(e);let s,n=r.length;for(;n-- >0;)if(s=r[n],t===s.toLowerCase())return s;return null}const R="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:r.g,w=e=>!h(e)&&e!==R,B=(x="undefined"!=typeof Uint8Array&&i(Uint8Array),e=>x&&e instanceof x);var x;const M=d("HTMLFormElement"),C=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),q=d("RegExp"),N=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),s={};E(r,(r,n)=>{let i;!1!==(i=t(r,n,e))&&(s[n]=i||r)}),Object.defineProperties(e,s)},F=d("AsyncFunction"),D=(K="function"==typeof setImmediate,L=y(R.postMessage),K?setImmediate:L?(H=`axios@${Math.random()}`,z=[],R.addEventListener("message",({source:e,data:t})=>{e===R&&t===H&&z.length&&z.shift()()},!1),e=>{z.push(e),R.postMessage(H,"*")}):e=>setTimeout(e));var K,L,H,z;const G="undefined"!=typeof queueMicrotask?queueMicrotask.bind(R):"undefined"!=typeof process&&process.nextTick||D;var Y={isArray:p,isArrayBuffer:g,isBuffer:function(e){return null!==e&&!h(e)&&null!==e.constructor&&!h(e.constructor)&&y(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||y(e.append)&&("formdata"===(t=c(e))||"object"===t&&y(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&g(e.buffer),t},isString:f,isNumber:m,isBoolean:e=>!0===e||!1===e,isObject:b,isPlainObject:O,isReadableStream:_,isRequest:T,isResponse:I,isHeaders:k,isUndefined:h,isDate:A,isFile:P,isBlob:j,isRegExp:q,isFunction:y,isStream:e=>b(e)&&y(e.pipe),isURLSearchParams:S,isTypedArray:B,isFileList:v,forEach:E,merge:function e(){const{caseless:t}=w(this)&&this||{},r={},s=(s,n)=>{const i=t&&U(r,n)||n;O(r[i])&&O(s)?r[i]=e(r[i],s):O(s)?r[i]=e({},s):p(s)?r[i]=s.slice():r[i]=s};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&E(arguments[e],s);return r},extend:(e,t,r,{allOwnKeys:n}={})=>(E(t,(t,n)=>{r&&y(t)?e[n]=s(t,r):e[n]=t},{allOwnKeys:n}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,r,s)=>{e.prototype=Object.create(t.prototype,s),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,r,s)=>{let n,o,a;const c={};if(t=t||{},null==e)return t;do{for(n=Object.getOwnPropertyNames(e),o=n.length;o-- >0;)a=n[o],s&&!s(a,e,t)||c[a]||(t[a]=e[a],c[a]=!0);e=!1!==r&&i(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:c,kindOfTest:d,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;const s=e.indexOf(t,r);return-1!==s&&s===r},toArray:e=>{if(!e)return null;if(p(e))return e;let t=e.length;if(!m(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{const r=(e&&e[o]).call(e);let s;for(;(s=r.next())&&!s.done;){const r=s.value;t.call(e,r[0],r[1])}},matchAll:(e,t)=>{let r;const s=[];for(;null!==(r=e.exec(t));)s.push(r);return s},isHTMLForm:M,hasOwnProperty:C,hasOwnProp:C,reduceDescriptors:N,freezeMethods:e=>{N(e,(t,r)=>{if(y(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const s=e[r];y(s)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")}))})},toObjectSet:(e,t)=>{const r={},s=e=>{e.forEach(e=>{r[e]=!0})};return p(e)?s(e):s(String(e).split(t)),r},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,r){return t.toUpperCase()+r}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:U,global:R,isContextDefined:w,isSpecCompliantForm:function(e){return!!(e&&y(e.append)&&"FormData"===e[a]&&e[o])},toJSONObject:e=>{const t=new Array(10),r=(e,s)=>{if(b(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[s]=e;const n=p(e)?[]:{};return E(e,(e,t)=>{const i=r(e,s+1);!h(i)&&(n[t]=i)}),t[s]=void 0,n}}return e};return r(e,0)},isAsyncFn:F,isThenable:e=>e&&(b(e)||y(e))&&y(e.then)&&y(e.catch),setImmediate:D,asap:G,isIterable:e=>null!=e&&y(e[o])};function Q(e,t,r,s,n){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),s&&(this.request=s),n&&(this.response=n,this.status=n.status?n.status:null)}Y.inherits(Q,Error,{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:Y.toJSONObject(this.config),code:this.code,status:this.status}}});const J=Q.prototype,$={};function W(e){return Y.isPlainObject(e)||Y.isArray(e)}function V(e){return Y.endsWith(e,"[]")?e.slice(0,-2):e}function X(e,t,r){return e?e.concat(t).map(function(e,t){return e=V(e),!r&&t?"["+e+"]":e}).join(r?".":""):t}["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{$[e]={value:e}}),Object.defineProperties(Q,$),Object.defineProperty(J,"isAxiosError",{value:!0}),Q.from=(e,t,r,s,n,i)=>{const o=Object.create(J);return Y.toFlatObject(e,o,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e),Q.call(o,e.message,t,r,s,n),o.cause=e,o.name=e.name,i&&Object.assign(o,i),o};const Z=Y.toFlatObject(Y,{},null,function(e){return/^is[A-Z]/.test(e)});function ee(e,t,r){if(!Y.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const s=(r=Y.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!Y.isUndefined(t[e])})).metaTokens,n=r.visitor||u,i=r.dots,o=r.indexes,a=(r.Blob||"undefined"!=typeof Blob&&Blob)&&Y.isSpecCompliantForm(t);if(!Y.isFunction(n))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(Y.isDate(e))return e.toISOString();if(Y.isBoolean(e))return e.toString();if(!a&&Y.isBlob(e))throw new Q("Blob is not supported. Use a Buffer instead.");return Y.isArrayBuffer(e)||Y.isTypedArray(e)?a&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,r,n){let a=e;if(e&&!n&&"object"==typeof e)if(Y.endsWith(r,"{}"))r=s?r:r.slice(0,-2),e=JSON.stringify(e);else if(Y.isArray(e)&&function(e){return Y.isArray(e)&&!e.some(W)}(e)||(Y.isFileList(e)||Y.endsWith(r,"[]"))&&(a=Y.toArray(e)))return r=V(r),a.forEach(function(e,s){!Y.isUndefined(e)&&null!==e&&t.append(!0===o?X([r],s,i):null===o?r:r+"[]",c(e))}),!1;return!!W(e)||(t.append(X(n,r,i),c(e)),!1)}const d=[],l=Object.assign(Z,{defaultVisitor:u,convertValue:c,isVisitable:W});if(!Y.isObject(e))throw new TypeError("data must be an object");return function e(r,s){if(!Y.isUndefined(r)){if(-1!==d.indexOf(r))throw Error("Circular reference detected in "+s.join("."));d.push(r),Y.forEach(r,function(r,i){!0===(!(Y.isUndefined(r)||null===r)&&n.call(t,r,Y.isString(i)?i.trim():i,s,l))&&e(r,s?s.concat(i):[i])}),d.pop()}}(e),t}function te(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function re(e,t){this._pairs=[],e&&ee(e,this,t)}const se=re.prototype;function ne(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ie(e,t,r){if(!t)return e;const s=r&&r.encode||ne;Y.isFunction(r)&&(r={serialize:r});const n=r&&r.serialize;let i;if(i=n?n(t,r):Y.isURLSearchParams(t)?t.toString():new re(t,r).toString(s),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}se.append=function(e,t){this._pairs.push([e,t])},se.toString=function(e){const t=e?function(t){return e.call(this,t,te)}:te;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};var oe=class{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){Y.forEach(this.handlers,function(t){null!==t&&e(t)})}},ae={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ce={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:re,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const ue="undefined"!=typeof window&&"undefined"!=typeof document,de="object"==typeof navigator&&navigator||void 0,le=ue&&(!de||["ReactNative","NativeScript","NS"].indexOf(de.product)<0),pe="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,he=ue&&window.location.href||"http://localhost";var ge={...Object.freeze({__proto__:null,hasBrowserEnv:ue,hasStandardBrowserWebWorkerEnv:pe,hasStandardBrowserEnv:le,navigator:de,origin:he}),...ce};function fe(e){function t(e,r,s,n){let i=e[n++];if("__proto__"===i)return!0;const o=Number.isFinite(+i),a=n>=e.length;return i=!i&&Y.isArray(s)?s.length:i,a?(Y.hasOwnProp(s,i)?s[i]=[s[i],r]:s[i]=r,!o):(s[i]&&Y.isObject(s[i])||(s[i]=[]),t(e,r,s[i],n)&&Y.isArray(s[i])&&(s[i]=function(e){const t={},r=Object.keys(e);let s;const n=r.length;let i;for(s=0;s<n;s++)i=r[s],t[i]=e[i];return t}(s[i])),!o)}if(Y.isFormData(e)&&Y.isFunction(e.entries)){const r={};return Y.forEachEntry(e,(e,s)=>{t(function(e){return Y.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),s,r,0)}),r}return null}const ye={transitional:ae,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",s=r.indexOf("application/json")>-1,n=Y.isObject(e);if(n&&Y.isHTMLForm(e)&&(e=new FormData(e)),Y.isFormData(e))return s?JSON.stringify(fe(e)):e;if(Y.isArrayBuffer(e)||Y.isBuffer(e)||Y.isStream(e)||Y.isFile(e)||Y.isBlob(e)||Y.isReadableStream(e))return e;if(Y.isArrayBufferView(e))return e.buffer;if(Y.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(n){if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return ee(e,new ge.classes.URLSearchParams,Object.assign({visitor:function(e,t,r,s){return ge.isNode&&Y.isBuffer(e)?(this.append(t,e.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=Y.isFileList(e))||r.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return ee(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return n||s?(t.setContentType("application/json",!1),function(e){if(Y.isString(e))try{return(0,JSON.parse)(e),Y.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||ye.transitional,r=t&&t.forcedJSONParsing,s="json"===this.responseType;if(Y.isResponse(e)||Y.isReadableStream(e))return e;if(e&&Y.isString(e)&&(r&&!this.responseType||s)){const r=!(t&&t.silentJSONParsing)&&s;try{return JSON.parse(e)}catch(e){if(r){if("SyntaxError"===e.name)throw Q.from(e,Q.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ge.classes.FormData,Blob:ge.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Y.forEach(["delete","get","head","post","put","patch"],e=>{ye.headers[e]={}});var me=ye;const be=Y.toObjectSet(["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"]),Oe=Symbol("internals");function Ae(e){return e&&String(e).trim().toLowerCase()}function Pe(e){return!1===e||null==e?e:Y.isArray(e)?e.map(Pe):String(e)}function je(e,t,r,s,n){return Y.isFunction(s)?s.call(this,t,r):(n&&(t=r),Y.isString(t)?Y.isString(s)?-1!==t.indexOf(s):Y.isRegExp(s)?s.test(t):void 0:void 0)}class ve{constructor(e){e&&this.set(e)}set(e,t,r){const s=this;function n(e,t,r){const n=Ae(t);if(!n)throw new Error("header name must be a non-empty string");const i=Y.findKey(s,n);(!i||void 0===s[i]||!0===r||void 0===r&&!1!==s[i])&&(s[i||t]=Pe(e))}const i=(e,t)=>Y.forEach(e,(e,r)=>n(e,r,t));if(Y.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(Y.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const t={};let r,s,n;return e&&e.split("\n").forEach(function(e){n=e.indexOf(":"),r=e.substring(0,n).trim().toLowerCase(),s=e.substring(n+1).trim(),!r||t[r]&&be[r]||("set-cookie"===r?t[r]?t[r].push(s):t[r]=[s]:t[r]=t[r]?t[r]+", "+s:s)}),t})(e),t);else if(Y.isObject(e)&&Y.isIterable(e)){let r,s,n={};for(const t of e){if(!Y.isArray(t))throw TypeError("Object iterator must return a key-value pair");n[s=t[0]]=(r=n[s])?Y.isArray(r)?[...r,t[1]]:[r,t[1]]:t[1]}i(n,t)}else null!=e&&n(t,e,r);return this}get(e,t){if(e=Ae(e)){const r=Y.findKey(this,e);if(r){const e=this[r];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=r.exec(e);)t[s[1]]=s[2];return t}(e);if(Y.isFunction(t))return t.call(this,e,r);if(Y.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Ae(e)){const r=Y.findKey(this,e);return!(!r||void 0===this[r]||t&&!je(0,this[r],r,t))}return!1}delete(e,t){const r=this;let s=!1;function n(e){if(e=Ae(e)){const n=Y.findKey(r,e);!n||t&&!je(0,r[n],n,t)||(delete r[n],s=!0)}}return Y.isArray(e)?e.forEach(n):n(e),s}clear(e){const t=Object.keys(this);let r=t.length,s=!1;for(;r--;){const n=t[r];e&&!je(0,this[n],n,e,!0)||(delete this[n],s=!0)}return s}normalize(e){const t=this,r={};return Y.forEach(this,(s,n)=>{const i=Y.findKey(r,n);if(i)return t[i]=Pe(s),void delete t[n];const o=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,r)=>t.toUpperCase()+r)}(n):String(n).trim();o!==n&&delete t[n],t[o]=Pe(s),r[o]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return Y.forEach(this,(r,s)=>{null!=r&&!1!==r&&(t[s]=e&&Y.isArray(r)?r.join(", "):r)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const r=new this(e);return t.forEach(e=>r.set(e)),r}static accessor(e){const t=(this[Oe]=this[Oe]={accessors:{}}).accessors,r=this.prototype;function s(e){const s=Ae(e);t[s]||(function(e,t){const r=Y.toCamelCase(" "+t);["get","set","has"].forEach(s=>{Object.defineProperty(e,s+r,{value:function(e,r,n){return this[s].call(this,t,e,r,n)},configurable:!0})})}(r,e),t[s]=!0)}return Y.isArray(e)?e.forEach(s):s(e),this}}ve.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Y.reduceDescriptors(ve.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}}),Y.freezeMethods(ve);var Se=ve;function _e(e,t){const r=this||me,s=t||r,n=Se.from(s.headers);let i=s.data;return Y.forEach(e,function(e){i=e.call(r,i,n.normalize(),t?t.status:void 0)}),n.normalize(),i}function Te(e){return!(!e||!e.__CANCEL__)}function Ie(e,t,r){Q.call(this,null==e?"canceled":e,Q.ERR_CANCELED,t,r),this.name="CanceledError"}function ke(e,t,r){const s=r.config.validateStatus;r.status&&s&&!s(r.status)?t(new Q("Request failed with status code "+r.status,[Q.ERR_BAD_REQUEST,Q.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}Y.inherits(Ie,Q,{__CANCEL__:!0});const Ee=(e,t,r=3)=>{let s=0;const n=function(e,t){e=e||10;const r=new Array(e),s=new Array(e);let n,i=0,o=0;return t=void 0!==t?t:1e3,function(a){const c=Date.now(),u=s[o];n||(n=c),r[i]=a,s[i]=c;let d=o,l=0;for(;d!==i;)l+=r[d++],d%=e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),c-n<t)return;const p=u&&c-u;return p?Math.round(1e3*l/p):void 0}}(50,250);return function(e,t){let r,s,n=0,i=1e3/t;const o=(t,i=Date.now())=>{n=i,r=null,s&&(clearTimeout(s),s=null),e.apply(null,t)};return[(...e)=>{const t=Date.now(),a=t-n;a>=i?o(e,t):(r=e,s||(s=setTimeout(()=>{s=null,o(r)},i-a)))},()=>r&&o(r)]}(r=>{const i=r.loaded,o=r.lengthComputable?r.total:void 0,a=i-s,c=n(a);s=i,e({loaded:i,total:o,progress:o?i/o:void 0,bytes:a,rate:c||void 0,estimated:c&&o&&i<=o?(o-i)/c:void 0,event:r,lengthComputable:null!=o,[t?"download":"upload"]:!0})},r)},Ue=(e,t)=>{const r=null!=e;return[s=>t[0]({lengthComputable:r,total:e,loaded:s}),t[1]]},Re=e=>(...t)=>Y.asap(()=>e(...t));var we=ge.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,ge.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(ge.origin),ge.navigator&&/(msie|trident)/i.test(ge.navigator.userAgent)):()=>!0,Be=ge.hasStandardBrowserEnv?{write(e,t,r,s,n,i){const o=[e+"="+encodeURIComponent(t)];Y.isNumber(r)&&o.push("expires="+new Date(r).toGMTString()),Y.isString(s)&&o.push("path="+s),Y.isString(n)&&o.push("domain="+n),!0===i&&o.push("secure"),document.cookie=o.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function xe(e,t,r){let s=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&(s||0==r)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Me=e=>e instanceof Se?{...e}:e;function Ce(e,t){t=t||{};const r={};function s(e,t,r,s){return Y.isPlainObject(e)&&Y.isPlainObject(t)?Y.merge.call({caseless:s},e,t):Y.isPlainObject(t)?Y.merge({},t):Y.isArray(t)?t.slice():t}function n(e,t,r,n){return Y.isUndefined(t)?Y.isUndefined(e)?void 0:s(void 0,e,0,n):s(e,t,0,n)}function i(e,t){if(!Y.isUndefined(t))return s(void 0,t)}function o(e,t){return Y.isUndefined(t)?Y.isUndefined(e)?void 0:s(void 0,e):s(void 0,t)}function a(r,n,i){return i in t?s(r,n):i in e?s(void 0,r):void 0}const c={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:a,headers:(e,t,r)=>n(Me(e),Me(t),0,!0)};return Y.forEach(Object.keys(Object.assign({},e,t)),function(s){const i=c[s]||n,o=i(e[s],t[s],s);Y.isUndefined(o)&&i!==a||(r[s]=o)}),r}var qe=e=>{const t=Ce({},e);let r,{data:s,withXSRFToken:n,xsrfHeaderName:i,xsrfCookieName:o,headers:a,auth:c}=t;if(t.headers=a=Se.from(a),t.url=ie(xe(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),c&&a.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),Y.isFormData(s))if(ge.hasStandardBrowserEnv||ge.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(!1!==(r=a.getContentType())){const[e,...t]=r?r.split(";").map(e=>e.trim()).filter(Boolean):[];a.setContentType([e||"multipart/form-data",...t].join("; "))}if(ge.hasStandardBrowserEnv&&(n&&Y.isFunction(n)&&(n=n(t)),n||!1!==n&&we(t.url))){const e=i&&o&&Be.read(o);e&&a.set(i,e)}return t},Ne="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,r){const s=qe(e);let n=s.data;const i=Se.from(s.headers).normalize();let o,a,c,u,d,{responseType:l,onUploadProgress:p,onDownloadProgress:h}=s;function g(){u&&u(),d&&d(),s.cancelToken&&s.cancelToken.unsubscribe(o),s.signal&&s.signal.removeEventListener("abort",o)}let f=new XMLHttpRequest;function y(){if(!f)return;const s=Se.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders());ke(function(e){t(e),g()},function(e){r(e),g()},{data:l&&"text"!==l&&"json"!==l?f.response:f.responseText,status:f.status,statusText:f.statusText,headers:s,config:e,request:f}),f=null}f.open(s.method.toUpperCase(),s.url,!0),f.timeout=s.timeout,"onloadend"in f?f.onloadend=y:f.onreadystatechange=function(){f&&4===f.readyState&&(0!==f.status||f.responseURL&&0===f.responseURL.indexOf("file:"))&&setTimeout(y)},f.onabort=function(){f&&(r(new Q("Request aborted",Q.ECONNABORTED,e,f)),f=null)},f.onerror=function(){r(new Q("Network Error",Q.ERR_NETWORK,e,f)),f=null},f.ontimeout=function(){let t=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const n=s.transitional||ae;s.timeoutErrorMessage&&(t=s.timeoutErrorMessage),r(new Q(t,n.clarifyTimeoutError?Q.ETIMEDOUT:Q.ECONNABORTED,e,f)),f=null},void 0===n&&i.setContentType(null),"setRequestHeader"in f&&Y.forEach(i.toJSON(),function(e,t){f.setRequestHeader(t,e)}),Y.isUndefined(s.withCredentials)||(f.withCredentials=!!s.withCredentials),l&&"json"!==l&&(f.responseType=s.responseType),h&&([c,d]=Ee(h,!0),f.addEventListener("progress",c)),p&&f.upload&&([a,u]=Ee(p),f.upload.addEventListener("progress",a),f.upload.addEventListener("loadend",u)),(s.cancelToken||s.signal)&&(o=t=>{f&&(r(!t||t.type?new Ie(null,e,f):t),f.abort(),f=null)},s.cancelToken&&s.cancelToken.subscribe(o),s.signal&&(s.signal.aborted?o():s.signal.addEventListener("abort",o)));const m=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(s.url);m&&-1===ge.protocols.indexOf(m)?r(new Q("Unsupported protocol "+m+":",Q.ERR_BAD_REQUEST,e)):f.send(n||null)})},Fe=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let r,s=new AbortController;const n=function(e){if(!r){r=!0,o();const t=e instanceof Error?e:this.reason;s.abort(t instanceof Q?t:new Ie(t instanceof Error?t.message:t))}};let i=t&&setTimeout(()=>{i=null,n(new Q(`timeout ${t} of ms exceeded`,Q.ETIMEDOUT))},t);const o=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(n):e.removeEventListener("abort",n)}),e=null)};e.forEach(e=>e.addEventListener("abort",n));const{signal:a}=s;return a.unsubscribe=()=>Y.asap(o),a}};const De=function*(e,t){let r=e.byteLength;if(!t||r<t)return void(yield e);let s,n=0;for(;n<r;)s=n+t,yield e.slice(n,s),n=s},Ke=(e,t,r,s)=>{const n=async function*(e,t){for await(const r of async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:r}=await t.read();if(e)break;yield r}}finally{await t.cancel()}}(e))yield*De(r,t)}(e,t);let i,o=0,a=e=>{i||(i=!0,s&&s(e))};return new ReadableStream({async pull(e){try{const{done:t,value:s}=await n.next();if(t)return a(),void e.close();let i=s.byteLength;if(r){let e=o+=i;r(e)}e.enqueue(new Uint8Array(s))}catch(e){throw a(e),e}},cancel:e=>(a(e),n.return())},{highWaterMark:2})},Le="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,He=Le&&"function"==typeof ReadableStream,ze=Le&&("function"==typeof TextEncoder?(Ge=new TextEncoder,e=>Ge.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var Ge;const Ye=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},Qe=He&&Ye(()=>{let e=!1;const t=new Request(ge.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Je=He&&Ye(()=>Y.isReadableStream(new Response("").body)),$e={stream:Je&&(e=>e.body)};var We;Le&&(We=new Response,["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!$e[e]&&($e[e]=Y.isFunction(We[e])?t=>t[e]():(t,r)=>{throw new Q(`Response type '${e}' is not supported`,Q.ERR_NOT_SUPPORT,r)})}));const Ve={http:null,xhr:Ne,fetch:Le&&(async e=>{let{url:t,method:r,data:s,signal:n,cancelToken:i,timeout:o,onDownloadProgress:a,onUploadProgress:c,responseType:u,headers:d,withCredentials:l="same-origin",fetchOptions:p}=qe(e);u=u?(u+"").toLowerCase():"text";let h,g=Fe([n,i&&i.toAbortSignal()],o);const f=g&&g.unsubscribe&&(()=>{g.unsubscribe()});let y;try{if(c&&Qe&&"get"!==r&&"head"!==r&&0!==(y=await(async(e,t)=>{const r=Y.toFiniteNumber(e.getContentLength());return null==r?(async e=>{if(null==e)return 0;if(Y.isBlob(e))return e.size;if(Y.isSpecCompliantForm(e)){const t=new Request(ge.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return Y.isArrayBufferView(e)||Y.isArrayBuffer(e)?e.byteLength:(Y.isURLSearchParams(e)&&(e+=""),Y.isString(e)?(await ze(e)).byteLength:void 0)})(t):r})(d,s))){let e,r=new Request(t,{method:"POST",body:s,duplex:"half"});if(Y.isFormData(s)&&(e=r.headers.get("content-type"))&&d.setContentType(e),r.body){const[e,t]=Ue(y,Ee(Re(c)));s=Ke(r.body,65536,e,t)}}Y.isString(l)||(l=l?"include":"omit");const n="credentials"in Request.prototype;h=new Request(t,{...p,signal:g,method:r.toUpperCase(),headers:d.normalize().toJSON(),body:s,duplex:"half",credentials:n?l:void 0});let i=await fetch(h,p);const o=Je&&("stream"===u||"response"===u);if(Je&&(a||o&&f)){const e={};["status","statusText","headers"].forEach(t=>{e[t]=i[t]});const t=Y.toFiniteNumber(i.headers.get("content-length")),[r,s]=a&&Ue(t,Ee(Re(a),!0))||[];i=new Response(Ke(i.body,65536,r,()=>{s&&s(),f&&f()}),e)}u=u||"text";let m=await $e[Y.findKey($e,u)||"text"](i,e);return!o&&f&&f(),await new Promise((t,r)=>{ke(t,r,{data:m,headers:Se.from(i.headers),status:i.status,statusText:i.statusText,config:e,request:h})})}catch(t){if(f&&f(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new Q("Network Error",Q.ERR_NETWORK,e,h),{cause:t.cause||t});throw Q.from(t,t&&t.code,e,h)}})};Y.forEach(Ve,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});const Xe=e=>`- ${e}`,Ze=e=>Y.isFunction(e)||null===e||!1===e;var et=e=>{e=Y.isArray(e)?e:[e];const{length:t}=e;let r,s;const n={};for(let i=0;i<t;i++){let t;if(r=e[i],s=r,!Ze(r)&&(s=Ve[(t=String(r)).toLowerCase()],void 0===s))throw new Q(`Unknown adapter '${t}'`);if(s)break;n[t||"#"+i]=s}if(!s){const e=Object.entries(n).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new Q("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(Xe).join("\n"):" "+Xe(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return s};function tt(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ie(null,e)}function rt(e){return tt(e),e.headers=Se.from(e.headers),e.data=_e.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),et(e.adapter||me.adapter)(e).then(function(t){return tt(e),t.data=_e.call(e,e.transformResponse,t),t.headers=Se.from(t.headers),t},function(t){return Te(t)||(tt(e),t&&t.response&&(t.response.data=_e.call(e,e.transformResponse,t.response),t.response.headers=Se.from(t.response.headers))),Promise.reject(t)})}const st="1.10.0",nt={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{nt[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const it={};nt.transitional=function(e,t,r){function s(e,t){return"[Axios v"+st+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,n,i)=>{if(!1===e)throw new Q(s(n," has been removed"+(t?" in "+t:"")),Q.ERR_DEPRECATED);return t&&!it[n]&&(it[n]=!0,console.warn(s(n," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,n,i)}},nt.spelling=function(e){return(t,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};var ot={assertOptions:function(e,t,r){if("object"!=typeof e)throw new Q("options must be an object",Q.ERR_BAD_OPTION_VALUE);const s=Object.keys(e);let n=s.length;for(;n-- >0;){const i=s[n],o=t[i];if(o){const t=e[i],r=void 0===t||o(t,i,e);if(!0!==r)throw new Q("option "+i+" must be "+r,Q.ERR_BAD_OPTION_VALUE);continue}if(!0!==r)throw new Q("Unknown option "+i,Q.ERR_BAD_OPTION)}},validators:nt};const at=ot.validators;class ct{constructor(e){this.defaults=e||{},this.interceptors={request:new oe,response:new oe}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const r=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?r&&!String(e.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+r):e.stack=r}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Ce(this.defaults,t);const{transitional:r,paramsSerializer:s,headers:n}=t;void 0!==r&&ot.assertOptions(r,{silentJSONParsing:at.transitional(at.boolean),forcedJSONParsing:at.transitional(at.boolean),clarifyTimeoutError:at.transitional(at.boolean)},!1),null!=s&&(Y.isFunction(s)?t.paramsSerializer={serialize:s}:ot.assertOptions(s,{encode:at.function,serialize:at.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),ot.assertOptions(t,{baseUrl:at.spelling("baseURL"),withXsrfToken:at.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=n&&Y.merge(n.common,n[t.method]);n&&Y.forEach(["delete","get","head","post","put","patch","common"],e=>{delete n[e]}),t.headers=Se.concat(i,n);const o=[];let a=!0;this.interceptors.request.forEach(function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(a=a&&e.synchronous,o.unshift(e.fulfilled,e.rejected))});const c=[];let u;this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let d,l=0;if(!a){const e=[rt.bind(this),void 0];for(e.unshift.apply(e,o),e.push.apply(e,c),d=e.length,u=Promise.resolve(t);l<d;)u=u.then(e[l++],e[l++]);return u}d=o.length;let p=t;for(l=0;l<d;){const e=o[l++],t=o[l++];try{p=e(p)}catch(e){t.call(this,e);break}}try{u=rt.call(this,p)}catch(e){return Promise.reject(e)}for(l=0,d=c.length;l<d;)u=u.then(c[l++],c[l++]);return u}getUri(e){return ie(xe((e=Ce(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}Y.forEach(["delete","get","head","options"],function(e){ct.prototype[e]=function(t,r){return this.request(Ce(r||{},{method:e,url:t,data:(r||{}).data}))}}),Y.forEach(["post","put","patch"],function(e){function t(t){return function(r,s,n){return this.request(Ce(n||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:s}))}}ct.prototype[e]=t(),ct.prototype[e+"Form"]=t(!0)});var ut=ct;class dt{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(e){t=e});const r=this;this.promise.then(e=>{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null}),this.promise.then=e=>{let t;const s=new Promise(e=>{r.subscribe(e),t=e}).then(e);return s.cancel=function(){r.unsubscribe(t)},s},e(function(e,s,n){r.reason||(r.reason=new Ie(e,s,n),t(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new dt(function(t){e=t}),cancel:e}}}var lt=dt;const pt={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(pt).forEach(([e,t])=>{pt[t]=e});var ht=pt;const gt=function e(t){const r=new ut(t),n=s(ut.prototype.request,r);return Y.extend(n,ut.prototype,r,{allOwnKeys:!0}),Y.extend(n,r,null,{allOwnKeys:!0}),n.create=function(r){return e(Ce(t,r))},n}(me);gt.Axios=ut,gt.CanceledError=Ie,gt.CancelToken=lt,gt.isCancel=Te,gt.VERSION=st,gt.toFormData=ee,gt.AxiosError=Q,gt.Cancel=gt.CanceledError,gt.all=function(e){return Promise.all(e)},gt.spread=function(e){return function(t){return e.apply(null,t)}},gt.isAxiosError=function(e){return Y.isObject(e)&&!0===e.isAxiosError},gt.mergeConfig=Ce,gt.AxiosHeaders=Se,gt.formToJSON=e=>fe(Y.isHTMLForm(e)?new FormData(e):e),gt.getAdapter=et,gt.HttpStatusCode=ht,gt.default=gt,e.exports=gt},8486:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8564:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,s,n)}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),n=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}),n(r(8270),t),n(r(6227),t),n(r(8190),t),n(r(4375),t),n(r(4188),t),n(r(5198),t),n(r(3603),t),n(r(8660),t)},8660:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,s,n)}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),n=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.TransactionsAndReportingApi=void 0;const i=r(8936);n(r(8936),t);class o extends i.TransactionsAndReportingApiGenerated{}t.TransactionsAndReportingApi=o},8670:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8692:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,s,n)}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),n=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}),n(r(8564),t),n(r(6254),t),n(r(4251),t),n(r(6057),t),n(r(1934),t)},8747:function(e,t,r){"use strict";var s=this&&this.__awaiter||function(e,t,r,s){return new(r||(r=Promise))(function(n,i){function o(e){try{c(s.next(e))}catch(e){i(e)}}function a(e){try{c(s.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(o,a)}c((s=s.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.ApiStatusApiGenerated=t.ApiStatusApiFactory=t.ApiStatusApiFp=t.ApiStatusApiAxiosParamCreator=void 0;const n=r(8451),i=r(5511),o=r(4467),a=r(4445);t.ApiStatusApiAxiosParamCreator=function(e){return{check:(t={})=>s(this,void 0,void 0,function*(){const r=new URL("/",i.DUMMY_BASE_URL);let s;e&&(s=e.baseOptions);const n=Object.assign(Object.assign({method:"GET"},s),t),o=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},c={};let u=s&&s.headers?s.headers:{};return n.headers=Object.assign(Object.assign(Object.assign({},o),u),t.headers),(0,a.requestBeforeHook)({queryParameters:c,requestConfig:n,path:"/",configuration:e,pathTemplate:"/",httpMethod:"GET"}),(0,i.setSearchParams)(r,c),{url:(0,i.toPathString)(r),options:n}})}},t.ApiStatusApiFp=function(e){const r=(0,t.ApiStatusApiAxiosParamCreator)(e);return{check(t){return s(this,void 0,void 0,function*(){const s=yield r.check(t);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})}}},t.ApiStatusApiFactory=function(e,r,s){const n=(0,t.ApiStatusApiFp)(e);return{check:e=>n.check(e).then(e=>e(s,r))}};class c extends o.BaseAPI{check(e){return(0,t.ApiStatusApiFp)(this.configuration).check(e).then(e=>e(this.axios,this.basePath))}}t.ApiStatusApiGenerated=c},8818:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8847:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8902:function(e,t,r){"use strict";var s=this&&this.__awaiter||function(e,t,r,s){return new(r||(r=Promise))(function(n,i){function o(e){try{c(s.next(e))}catch(e){i(e)}}function a(e){try{c(s.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(o,a)}c((s=s.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.ReferenceDataApiGenerated=t.ReferenceDataApiFactory=t.ReferenceDataApiFp=t.ReferenceDataApiAxiosParamCreator=void 0;const n=r(8451),i=r(5511),o=r(4467),a=r(4445);t.ReferenceDataApiAxiosParamCreator=function(e){return{getCurrencyExchangeRatePair:(t,r={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("getCurrencyExchangeRatePair","currencyPair",t);const s="/currencies/rates/{currencyPair}".replace("{currencyPair}",encodeURIComponent(String(void 0!==t?t:"-currencyPair-"))),n=new URL(s,i.DUMMY_BASE_URL);let o;e&&(o=e.baseOptions);const c=Object.assign(Object.assign({method:"GET"},o),r),u=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},d={};yield(0,i.setApiKeyToObject)({object:d,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:u,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:d,key:"timestamp",keyParamName:"timestamp",configuration:e});let l=o&&o.headers?o.headers:{};return c.headers=Object.assign(Object.assign(Object.assign({},u),l),r.headers),(0,a.requestBeforeHook)({queryParameters:d,requestConfig:c,path:s,configuration:e,pathTemplate:"/currencies/rates/{currencyPair}",httpMethod:"GET"}),(0,i.setSearchParams)(n,d),{url:(0,i.toPathString)(n),options:c}}),getPartnerInfo:(t={})=>s(this,void 0,void 0,function*(){const r="/snapTrade/partners",s=new URL(r,i.DUMMY_BASE_URL);let n;e&&(n=e.baseOptions);const o=Object.assign(Object.assign({method:"GET"},n),t),c=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},u={};yield(0,i.setApiKeyToObject)({object:u,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:c,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:u,key:"timestamp",keyParamName:"timestamp",configuration:e});let d=n&&n.headers?n.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},c),d),t.headers),(0,a.requestBeforeHook)({queryParameters:u,requestConfig:o,path:r,configuration:e,pathTemplate:"/snapTrade/partners",httpMethod:"GET"}),(0,i.setSearchParams)(s,u),{url:(0,i.toPathString)(s),options:o}}),getSecurityTypes:(t={})=>s(this,void 0,void 0,function*(){const r="/securityTypes",s=new URL(r,i.DUMMY_BASE_URL);let n;e&&(n=e.baseOptions);const o=Object.assign(Object.assign({method:"GET"},n),t),c=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},u={};yield(0,i.setApiKeyToObject)({object:u,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:c,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:u,key:"timestamp",keyParamName:"timestamp",configuration:e});let d=n&&n.headers?n.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},c),d),t.headers),(0,a.requestBeforeHook)({queryParameters:u,requestConfig:o,path:r,configuration:e,pathTemplate:"/securityTypes",httpMethod:"GET"}),(0,i.setSearchParams)(s,u),{url:(0,i.toPathString)(s),options:o}}),getStockExchanges:(t={})=>s(this,void 0,void 0,function*(){const r="/exchanges",s=new URL(r,i.DUMMY_BASE_URL);let n;e&&(n=e.baseOptions);const o=Object.assign(Object.assign({method:"GET"},n),t),c=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},u={};yield(0,i.setApiKeyToObject)({object:u,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:c,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:u,key:"timestamp",keyParamName:"timestamp",configuration:e});let d=n&&n.headers?n.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},c),d),t.headers),(0,a.requestBeforeHook)({queryParameters:u,requestConfig:o,path:r,configuration:e,pathTemplate:"/exchanges",httpMethod:"GET"}),(0,i.setSearchParams)(s,u),{url:(0,i.toPathString)(s),options:o}}),getSymbols:(t,r={})=>s(this,void 0,void 0,function*(){const s="/symbols",n=new URL(s,i.DUMMY_BASE_URL);let o;e&&(o=e.baseOptions);const c=Object.assign(Object.assign({method:"POST"},o),r),u=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},d={};yield(0,i.setApiKeyToObject)({object:d,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:u,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:d,key:"timestamp",keyParamName:"timestamp",configuration:e}),u["Content-Type"]="application/json";let l=o&&o.headers?o.headers:{};return c.headers=Object.assign(Object.assign(Object.assign({},u),l),r.headers),(0,a.requestBeforeHook)({requestBody:t,queryParameters:d,requestConfig:c,path:s,configuration:e,pathTemplate:"/symbols",httpMethod:"POST"}),c.data=(0,i.serializeDataIfNeeded)(t,c,e),(0,i.setSearchParams)(n,d),{url:(0,i.toPathString)(n),options:c}}),getSymbolsByTicker:(t,r={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("getSymbolsByTicker","query",t);const s="/symbols/{query}".replace("{query}",encodeURIComponent(String(void 0!==t?t:"-query-"))),n=new URL(s,i.DUMMY_BASE_URL);let o;e&&(o=e.baseOptions);const c=Object.assign(Object.assign({method:"GET"},o),r),u=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},d={};yield(0,i.setApiKeyToObject)({object:d,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:u,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:d,key:"timestamp",keyParamName:"timestamp",configuration:e});let l=o&&o.headers?o.headers:{};return c.headers=Object.assign(Object.assign(Object.assign({},u),l),r.headers),(0,a.requestBeforeHook)({queryParameters:d,requestConfig:c,path:s,configuration:e,pathTemplate:"/symbols/{query}",httpMethod:"GET"}),(0,i.setSearchParams)(n,d),{url:(0,i.toPathString)(n),options:c}}),listAllBrokerageAuthorizationType:(t,r={})=>s(this,void 0,void 0,function*(){const s="/brokerageAuthorizationTypes",n=new URL(s,i.DUMMY_BASE_URL);let o;e&&(o=e.baseOptions);const c=Object.assign(Object.assign({method:"GET"},o),r),u=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},d={};yield(0,i.setApiKeyToObject)({object:d,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:u,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:d,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(d.brokerage=t);let l=o&&o.headers?o.headers:{};return c.headers=Object.assign(Object.assign(Object.assign({},u),l),r.headers),(0,a.requestBeforeHook)({queryParameters:d,requestConfig:c,path:s,configuration:e,pathTemplate:"/brokerageAuthorizationTypes",httpMethod:"GET"}),(0,i.setSearchParams)(n,d),{url:(0,i.toPathString)(n),options:c}}),listAllBrokerages:(t={})=>s(this,void 0,void 0,function*(){const r="/brokerages",s=new URL(r,i.DUMMY_BASE_URL);let n;e&&(n=e.baseOptions);const o=Object.assign(Object.assign({method:"GET"},n),t),c=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},u={};yield(0,i.setApiKeyToObject)({object:u,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:c,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:u,key:"timestamp",keyParamName:"timestamp",configuration:e});let d=n&&n.headers?n.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},c),d),t.headers),(0,a.requestBeforeHook)({queryParameters:u,requestConfig:o,path:r,configuration:e,pathTemplate:"/brokerages",httpMethod:"GET"}),(0,i.setSearchParams)(s,u),{url:(0,i.toPathString)(s),options:o}}),listAllCurrencies:(t={})=>s(this,void 0,void 0,function*(){const r="/currencies",s=new URL(r,i.DUMMY_BASE_URL);let n;e&&(n=e.baseOptions);const o=Object.assign(Object.assign({method:"GET"},n),t),c=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},u={};yield(0,i.setApiKeyToObject)({object:u,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:c,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:u,key:"timestamp",keyParamName:"timestamp",configuration:e});let d=n&&n.headers?n.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},c),d),t.headers),(0,a.requestBeforeHook)({queryParameters:u,requestConfig:o,path:r,configuration:e,pathTemplate:"/currencies",httpMethod:"GET"}),(0,i.setSearchParams)(s,u),{url:(0,i.toPathString)(s),options:o}}),listAllCurrenciesRates:(t={})=>s(this,void 0,void 0,function*(){const r="/currencies/rates",s=new URL(r,i.DUMMY_BASE_URL);let n;e&&(n=e.baseOptions);const o=Object.assign(Object.assign({method:"GET"},n),t),c=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},u={};yield(0,i.setApiKeyToObject)({object:u,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:c,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:u,key:"timestamp",keyParamName:"timestamp",configuration:e});let d=n&&n.headers?n.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},c),d),t.headers),(0,a.requestBeforeHook)({queryParameters:u,requestConfig:o,path:r,configuration:e,pathTemplate:"/currencies/rates",httpMethod:"GET"}),(0,i.setSearchParams)(s,u),{url:(0,i.toPathString)(s),options:o}}),symbolSearchUserAccount:(t,r,n,o,c={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("symbolSearchUserAccount","userId",t),(0,i.assertParamExists)("symbolSearchUserAccount","userSecret",r),(0,i.assertParamExists)("symbolSearchUserAccount","accountId",n);const s="/accounts/{accountId}/symbols".replace("{accountId}",encodeURIComponent(String(void 0!==n?n:"-accountId-"))),u=new URL(s,i.DUMMY_BASE_URL);let d;e&&(d=e.baseOptions);const l=Object.assign(Object.assign({method:"POST"},d),c),p=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},h={};yield(0,i.setApiKeyToObject)({object:h,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:h,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(h.userId=t),void 0!==r&&(h.userSecret=r),p["Content-Type"]="application/json";let g=d&&d.headers?d.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},p),g),c.headers),(0,a.requestBeforeHook)({requestBody:o,queryParameters:h,requestConfig:l,path:s,configuration:e,pathTemplate:"/accounts/{accountId}/symbols",httpMethod:"POST"}),l.data=(0,i.serializeDataIfNeeded)(o,l,e),(0,i.setSearchParams)(u,h),{url:(0,i.toPathString)(u),options:l}})}},t.ReferenceDataApiFp=function(e){const r=(0,t.ReferenceDataApiAxiosParamCreator)(e);return{getCurrencyExchangeRatePair(t,a){return s(this,void 0,void 0,function*(){const s=yield r.getCurrencyExchangeRatePair(t.currencyPair,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},getPartnerInfo(t){return s(this,void 0,void 0,function*(){const s=yield r.getPartnerInfo(t);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},getSecurityTypes(t){return s(this,void 0,void 0,function*(){const s=yield r.getSecurityTypes(t);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},getStockExchanges(t){return s(this,void 0,void 0,function*(){const s=yield r.getStockExchanges(t);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},getSymbols(t={},a){return s(this,void 0,void 0,function*(){const s={substring:t.substring},c=yield r.getSymbols(s,a);return(0,i.createRequestFunction)(c,n.default,o.BASE_PATH,e)})},getSymbolsByTicker(t,a){return s(this,void 0,void 0,function*(){const s=yield r.getSymbolsByTicker(t.query,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},listAllBrokerageAuthorizationType(t={},a){return s(this,void 0,void 0,function*(){const s=yield r.listAllBrokerageAuthorizationType(t.brokerage,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},listAllBrokerages(t){return s(this,void 0,void 0,function*(){const s=yield r.listAllBrokerages(t);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},listAllCurrencies(t){return s(this,void 0,void 0,function*(){const s=yield r.listAllCurrencies(t);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},listAllCurrenciesRates(t){return s(this,void 0,void 0,function*(){const s=yield r.listAllCurrenciesRates(t);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},symbolSearchUserAccount(t,a){return s(this,void 0,void 0,function*(){const s={substring:t.substring},c=yield r.symbolSearchUserAccount(t.userId,t.userSecret,t.accountId,s,a);return(0,i.createRequestFunction)(c,n.default,o.BASE_PATH,e)})}}},t.ReferenceDataApiFactory=function(e,r,s){const n=(0,t.ReferenceDataApiFp)(e);return{getCurrencyExchangeRatePair:(e,t)=>n.getCurrencyExchangeRatePair(e,t).then(e=>e(s,r)),getPartnerInfo:e=>n.getPartnerInfo(e).then(e=>e(s,r)),getSecurityTypes:e=>n.getSecurityTypes(e).then(e=>e(s,r)),getStockExchanges:e=>n.getStockExchanges(e).then(e=>e(s,r)),getSymbols:(e={},t)=>n.getSymbols(e,t).then(e=>e(s,r)),getSymbolsByTicker:(e,t)=>n.getSymbolsByTicker(e,t).then(e=>e(s,r)),listAllBrokerageAuthorizationType:(e={},t)=>n.listAllBrokerageAuthorizationType(e,t).then(e=>e(s,r)),listAllBrokerages:e=>n.listAllBrokerages(e).then(e=>e(s,r)),listAllCurrencies:e=>n.listAllCurrencies(e).then(e=>e(s,r)),listAllCurrenciesRates:e=>n.listAllCurrenciesRates(e).then(e=>e(s,r)),symbolSearchUserAccount:(e,t)=>n.symbolSearchUserAccount(e,t).then(e=>e(s,r))}};class c extends o.BaseAPI{getCurrencyExchangeRatePair(e,r){return(0,t.ReferenceDataApiFp)(this.configuration).getCurrencyExchangeRatePair(e,r).then(e=>e(this.axios,this.basePath))}getPartnerInfo(e){return(0,t.ReferenceDataApiFp)(this.configuration).getPartnerInfo(e).then(e=>e(this.axios,this.basePath))}getSecurityTypes(e){return(0,t.ReferenceDataApiFp)(this.configuration).getSecurityTypes(e).then(e=>e(this.axios,this.basePath))}getStockExchanges(e){return(0,t.ReferenceDataApiFp)(this.configuration).getStockExchanges(e).then(e=>e(this.axios,this.basePath))}getSymbols(e={},r){return(0,t.ReferenceDataApiFp)(this.configuration).getSymbols(e,r).then(e=>e(this.axios,this.basePath))}getSymbolsByTicker(e,r){return(0,t.ReferenceDataApiFp)(this.configuration).getSymbolsByTicker(e,r).then(e=>e(this.axios,this.basePath))}listAllBrokerageAuthorizationType(e={},r){return(0,t.ReferenceDataApiFp)(this.configuration).listAllBrokerageAuthorizationType(e,r).then(e=>e(this.axios,this.basePath))}listAllBrokerages(e){return(0,t.ReferenceDataApiFp)(this.configuration).listAllBrokerages(e).then(e=>e(this.axios,this.basePath))}listAllCurrencies(e){return(0,t.ReferenceDataApiFp)(this.configuration).listAllCurrencies(e).then(e=>e(this.axios,this.basePath))}listAllCurrenciesRates(e){return(0,t.ReferenceDataApiFp)(this.configuration).listAllCurrenciesRates(e).then(e=>e(this.axios,this.basePath))}symbolSearchUserAccount(e,r){return(0,t.ReferenceDataApiFp)(this.configuration).symbolSearchUserAccount(e,r).then(e=>e(this.axios,this.basePath))}}t.ReferenceDataApiGenerated=c},8911:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8927:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8936:function(e,t,r){"use strict";var s=this&&this.__awaiter||function(e,t,r,s){return new(r||(r=Promise))(function(n,i){function o(e){try{c(s.next(e))}catch(e){i(e)}}function a(e){try{c(s.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(o,a)}c((s=s.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.TransactionsAndReportingApiGenerated=t.TransactionsAndReportingApiFactory=t.TransactionsAndReportingApiFp=t.TransactionsAndReportingApiAxiosParamCreator=void 0;const n=r(8451),i=r(5511),o=r(4467),a=r(4445);t.TransactionsAndReportingApiAxiosParamCreator=function(e){return{getActivities:(t,r,n,o,c,u,d,l={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("getActivities","userId",t),(0,i.assertParamExists)("getActivities","userSecret",r);const s="/activities",p=new URL(s,i.DUMMY_BASE_URL);let h;e&&(h=e.baseOptions);const g=Object.assign(Object.assign({method:"GET"},h),l),f=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},y={};yield(0,i.setApiKeyToObject)({object:y,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:f,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:y,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==n&&(y.startDate=n instanceof Date?n.toISOString().substr(0,10):n),void 0!==o&&(y.endDate=o instanceof Date?o.toISOString().substr(0,10):o),void 0!==c&&(y.accounts=c),void 0!==u&&(y.brokerageAuthorizations=u),void 0!==d&&(y.type=d),void 0!==t&&(y.userId=t),void 0!==r&&(y.userSecret=r);let m=h&&h.headers?h.headers:{};return g.headers=Object.assign(Object.assign(Object.assign({},f),m),l.headers),(0,a.requestBeforeHook)({queryParameters:y,requestConfig:g,path:s,configuration:e,pathTemplate:"/activities",httpMethod:"GET"}),(0,i.setSearchParams)(p,y),{url:(0,i.toPathString)(p),options:g}}),getReportingCustomRange:(t,r,n,o,c,u,d,l={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("getReportingCustomRange","startDate",t),(0,i.assertParamExists)("getReportingCustomRange","endDate",r),(0,i.assertParamExists)("getReportingCustomRange","userId",n),(0,i.assertParamExists)("getReportingCustomRange","userSecret",o);const s="/performance/custom",p=new URL(s,i.DUMMY_BASE_URL);let h;e&&(h=e.baseOptions);const g=Object.assign(Object.assign({method:"GET"},h),l),f=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},y={};yield(0,i.setApiKeyToObject)({object:y,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:f,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:y,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(y.startDate=t instanceof Date?t.toISOString().substr(0,10):t),void 0!==r&&(y.endDate=r instanceof Date?r.toISOString().substr(0,10):r),void 0!==c&&(y.accounts=c),void 0!==u&&(y.detailed=u),void 0!==d&&(y.frequency=d),void 0!==n&&(y.userId=n),void 0!==o&&(y.userSecret=o);let m=h&&h.headers?h.headers:{};return g.headers=Object.assign(Object.assign(Object.assign({},f),m),l.headers),(0,a.requestBeforeHook)({queryParameters:y,requestConfig:g,path:s,configuration:e,pathTemplate:"/performance/custom",httpMethod:"GET"}),(0,i.setSearchParams)(p,y),{url:(0,i.toPathString)(p),options:g}})}},t.TransactionsAndReportingApiFp=function(e){const r=(0,t.TransactionsAndReportingApiAxiosParamCreator)(e);return{getActivities(t,a){return s(this,void 0,void 0,function*(){const s=yield r.getActivities(t.userId,t.userSecret,t.startDate,t.endDate,t.accounts,t.brokerageAuthorizations,t.type,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},getReportingCustomRange(t,a){return s(this,void 0,void 0,function*(){const s=yield r.getReportingCustomRange(t.startDate,t.endDate,t.userId,t.userSecret,t.accounts,t.detailed,t.frequency,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})}}},t.TransactionsAndReportingApiFactory=function(e,r,s){const n=(0,t.TransactionsAndReportingApiFp)(e);return{getActivities:(e,t)=>n.getActivities(e,t).then(e=>e(s,r)),getReportingCustomRange:(e,t)=>n.getReportingCustomRange(e,t).then(e=>e(s,r))}};class c extends o.BaseAPI{getActivities(e,r){return(0,t.TransactionsAndReportingApiFp)(this.configuration).getActivities(e,r).then(e=>e(this.axios,this.basePath))}getReportingCustomRange(e,r){return(0,t.TransactionsAndReportingApiFp)(this.configuration).getReportingCustomRange(e,r).then(e=>e(this.axios,this.basePath))}}t.TransactionsAndReportingApiGenerated=c},8951:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8996:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9032:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9168:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9190:function(e,t,r){"use strict";var s=this&&this.__awaiter||function(e,t,r,s){return new(r||(r=Promise))(function(n,i){function o(e){try{c(s.next(e))}catch(e){i(e)}}function a(e){try{c(s.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(o,a)}c((s=s.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.AccountInformationApiGenerated=t.AccountInformationApiFactory=t.AccountInformationApiFp=t.AccountInformationApiAxiosParamCreator=void 0;const n=r(8451),i=r(5511),o=r(4467),a=r(4445);t.AccountInformationApiAxiosParamCreator=function(e){return{getAccountActivities:(t,r,n,o,c,u,d,l,p={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("getAccountActivities","accountId",t),(0,i.assertParamExists)("getAccountActivities","userId",r),(0,i.assertParamExists)("getAccountActivities","userSecret",n);const s="/accounts/{accountId}/activities".replace("{accountId}",encodeURIComponent(String(void 0!==t?t:"-accountId-"))),h=new URL(s,i.DUMMY_BASE_URL);let g;e&&(g=e.baseOptions);const f=Object.assign(Object.assign({method:"GET"},g),p),y=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},m={};yield(0,i.setApiKeyToObject)({object:m,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:y,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:m,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==o&&(m.startDate=o instanceof Date?o.toISOString().substr(0,10):o),void 0!==c&&(m.endDate=c instanceof Date?c.toISOString().substr(0,10):c),void 0!==u&&(m.offset=u),void 0!==d&&(m.limit=d),void 0!==l&&(m.type=l),void 0!==r&&(m.userId=r),void 0!==n&&(m.userSecret=n);let b=g&&g.headers?g.headers:{};return f.headers=Object.assign(Object.assign(Object.assign({},y),b),p.headers),(0,a.requestBeforeHook)({queryParameters:m,requestConfig:f,path:s,configuration:e,pathTemplate:"/accounts/{accountId}/activities",httpMethod:"GET"}),(0,i.setSearchParams)(h,m),{url:(0,i.toPathString)(h),options:f}}),getAllUserHoldings:(t,r,n,o={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("getAllUserHoldings","userId",t),(0,i.assertParamExists)("getAllUserHoldings","userSecret",r);const s="/holdings",c=new URL(s,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"GET"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(p.userId=t),void 0!==r&&(p.userSecret=r),void 0!==n&&(p.brokerage_authorizations=n);let h=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),h),o.headers),(0,a.requestBeforeHook)({queryParameters:p,requestConfig:d,path:s,configuration:e,pathTemplate:"/holdings",httpMethod:"GET"}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}}),getUserAccountBalance:(t,r,n,o={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("getUserAccountBalance","userId",t),(0,i.assertParamExists)("getUserAccountBalance","userSecret",r),(0,i.assertParamExists)("getUserAccountBalance","accountId",n);const s="/accounts/{accountId}/balances".replace("{accountId}",encodeURIComponent(String(void 0!==n?n:"-accountId-"))),c=new URL(s,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"GET"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(p.userId=t),void 0!==r&&(p.userSecret=r);let h=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),h),o.headers),(0,a.requestBeforeHook)({queryParameters:p,requestConfig:d,path:s,configuration:e,pathTemplate:"/accounts/{accountId}/balances",httpMethod:"GET"}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}}),getUserAccountDetails:(t,r,n,o={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("getUserAccountDetails","userId",t),(0,i.assertParamExists)("getUserAccountDetails","userSecret",r),(0,i.assertParamExists)("getUserAccountDetails","accountId",n);const s="/accounts/{accountId}".replace("{accountId}",encodeURIComponent(String(void 0!==n?n:"-accountId-"))),c=new URL(s,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"GET"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(p.userId=t),void 0!==r&&(p.userSecret=r);let h=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),h),o.headers),(0,a.requestBeforeHook)({queryParameters:p,requestConfig:d,path:s,configuration:e,pathTemplate:"/accounts/{accountId}",httpMethod:"GET"}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}}),getUserAccountOrders:(t,r,n,o,c,u={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("getUserAccountOrders","userId",t),(0,i.assertParamExists)("getUserAccountOrders","userSecret",r),(0,i.assertParamExists)("getUserAccountOrders","accountId",n);const s="/accounts/{accountId}/orders".replace("{accountId}",encodeURIComponent(String(void 0!==n?n:"-accountId-"))),d=new URL(s,i.DUMMY_BASE_URL);let l;e&&(l=e.baseOptions);const p=Object.assign(Object.assign({method:"GET"},l),u),h=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},g={};yield(0,i.setApiKeyToObject)({object:g,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:h,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:g,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(g.userId=t),void 0!==r&&(g.userSecret=r),void 0!==o&&(g.state=o),void 0!==c&&(g.days=c);let f=l&&l.headers?l.headers:{};return p.headers=Object.assign(Object.assign(Object.assign({},h),f),u.headers),(0,a.requestBeforeHook)({queryParameters:g,requestConfig:p,path:s,configuration:e,pathTemplate:"/accounts/{accountId}/orders",httpMethod:"GET"}),(0,i.setSearchParams)(d,g),{url:(0,i.toPathString)(d),options:p}}),getUserAccountPositions:(t,r,n,o={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("getUserAccountPositions","userId",t),(0,i.assertParamExists)("getUserAccountPositions","userSecret",r),(0,i.assertParamExists)("getUserAccountPositions","accountId",n);const s="/accounts/{accountId}/positions".replace("{accountId}",encodeURIComponent(String(void 0!==n?n:"-accountId-"))),c=new URL(s,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"GET"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(p.userId=t),void 0!==r&&(p.userSecret=r);let h=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),h),o.headers),(0,a.requestBeforeHook)({queryParameters:p,requestConfig:d,path:s,configuration:e,pathTemplate:"/accounts/{accountId}/positions",httpMethod:"GET"}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}}),getUserAccountRecentOrders:(t,r,n,o,c={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("getUserAccountRecentOrders","userId",t),(0,i.assertParamExists)("getUserAccountRecentOrders","userSecret",r),(0,i.assertParamExists)("getUserAccountRecentOrders","accountId",n);const s="/accounts/{accountId}/recentOrders".replace("{accountId}",encodeURIComponent(String(void 0!==n?n:"-accountId-"))),u=new URL(s,i.DUMMY_BASE_URL);let d;e&&(d=e.baseOptions);const l=Object.assign(Object.assign({method:"GET"},d),c),p=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},h={};yield(0,i.setApiKeyToObject)({object:h,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:h,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(h.userId=t),void 0!==r&&(h.userSecret=r),void 0!==o&&(h.only_executed=o);let g=d&&d.headers?d.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},p),g),c.headers),(0,a.requestBeforeHook)({queryParameters:h,requestConfig:l,path:s,configuration:e,pathTemplate:"/accounts/{accountId}/recentOrders",httpMethod:"GET"}),(0,i.setSearchParams)(u,h),{url:(0,i.toPathString)(u),options:l}}),getUserAccountReturnRates:(t,r,n,o={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("getUserAccountReturnRates","userId",t),(0,i.assertParamExists)("getUserAccountReturnRates","userSecret",r),(0,i.assertParamExists)("getUserAccountReturnRates","accountId",n);const s="/accounts/{accountId}/returnRates".replace("{accountId}",encodeURIComponent(String(void 0!==n?n:"-accountId-"))),c=new URL(s,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"GET"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(p.userId=t),void 0!==r&&(p.userSecret=r);let h=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),h),o.headers),(0,a.requestBeforeHook)({queryParameters:p,requestConfig:d,path:s,configuration:e,pathTemplate:"/accounts/{accountId}/returnRates",httpMethod:"GET"}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}}),getUserHoldings:(t,r,n,o={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("getUserHoldings","accountId",t),(0,i.assertParamExists)("getUserHoldings","userId",r),(0,i.assertParamExists)("getUserHoldings","userSecret",n);const s="/accounts/{accountId}/holdings".replace("{accountId}",encodeURIComponent(String(void 0!==t?t:"-accountId-"))),c=new URL(s,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"GET"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==r&&(p.userId=r),void 0!==n&&(p.userSecret=n);let h=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),h),o.headers),(0,a.requestBeforeHook)({queryParameters:p,requestConfig:d,path:s,configuration:e,pathTemplate:"/accounts/{accountId}/holdings",httpMethod:"GET"}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}}),listUserAccounts:(t,r,n={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("listUserAccounts","userId",t),(0,i.assertParamExists)("listUserAccounts","userSecret",r);const s="/accounts",o=new URL(s,i.DUMMY_BASE_URL);let c;e&&(c=e.baseOptions);const u=Object.assign(Object.assign({method:"GET"},c),n),d=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},l={};yield(0,i.setApiKeyToObject)({object:l,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:d,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(l.userId=t),void 0!==r&&(l.userSecret=r);let p=c&&c.headers?c.headers:{};return u.headers=Object.assign(Object.assign(Object.assign({},d),p),n.headers),(0,a.requestBeforeHook)({queryParameters:l,requestConfig:u,path:s,configuration:e,pathTemplate:"/accounts",httpMethod:"GET"}),(0,i.setSearchParams)(o,l),{url:(0,i.toPathString)(o),options:u}}),updateUserAccount:(t,r,n,o={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("updateUserAccount","userId",t),(0,i.assertParamExists)("updateUserAccount","userSecret",r),(0,i.assertParamExists)("updateUserAccount","accountId",n);const s="/accounts/{accountId}".replace("{accountId}",encodeURIComponent(String(void 0!==n?n:"-accountId-"))),c=new URL(s,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"PUT"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(p.userId=t),void 0!==r&&(p.userSecret=r);let h=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),h),o.headers),(0,a.requestBeforeHook)({queryParameters:p,requestConfig:d,path:s,configuration:e,pathTemplate:"/accounts/{accountId}",httpMethod:"PUT"}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}})}},t.AccountInformationApiFp=function(e){const r=(0,t.AccountInformationApiAxiosParamCreator)(e);return{getAccountActivities(t,a){return s(this,void 0,void 0,function*(){const s=yield r.getAccountActivities(t.accountId,t.userId,t.userSecret,t.startDate,t.endDate,t.offset,t.limit,t.type,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},getAllUserHoldings(t,a){return s(this,void 0,void 0,function*(){const s=yield r.getAllUserHoldings(t.userId,t.userSecret,t.brokerageAuthorizations,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},getUserAccountBalance(t,a){return s(this,void 0,void 0,function*(){const s=yield r.getUserAccountBalance(t.userId,t.userSecret,t.accountId,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},getUserAccountDetails(t,a){return s(this,void 0,void 0,function*(){const s=yield r.getUserAccountDetails(t.userId,t.userSecret,t.accountId,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},getUserAccountOrders(t,a){return s(this,void 0,void 0,function*(){const s=yield r.getUserAccountOrders(t.userId,t.userSecret,t.accountId,t.state,t.days,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},getUserAccountPositions(t,a){return s(this,void 0,void 0,function*(){const s=yield r.getUserAccountPositions(t.userId,t.userSecret,t.accountId,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},getUserAccountRecentOrders(t,a){return s(this,void 0,void 0,function*(){const s=yield r.getUserAccountRecentOrders(t.userId,t.userSecret,t.accountId,t.onlyExecuted,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},getUserAccountReturnRates(t,a){return s(this,void 0,void 0,function*(){const s=yield r.getUserAccountReturnRates(t.userId,t.userSecret,t.accountId,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},getUserHoldings(t,a){return s(this,void 0,void 0,function*(){const s=yield r.getUserHoldings(t.accountId,t.userId,t.userSecret,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},listUserAccounts(t,a){return s(this,void 0,void 0,function*(){const s=yield r.listUserAccounts(t.userId,t.userSecret,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},updateUserAccount(t,a){return s(this,void 0,void 0,function*(){const s=yield r.updateUserAccount(t.userId,t.userSecret,t.accountId,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})}}},t.AccountInformationApiFactory=function(e,r,s){const n=(0,t.AccountInformationApiFp)(e);return{getAccountActivities:(e,t)=>n.getAccountActivities(e,t).then(e=>e(s,r)),getAllUserHoldings:(e,t)=>n.getAllUserHoldings(e,t).then(e=>e(s,r)),getUserAccountBalance:(e,t)=>n.getUserAccountBalance(e,t).then(e=>e(s,r)),getUserAccountDetails:(e,t)=>n.getUserAccountDetails(e,t).then(e=>e(s,r)),getUserAccountOrders:(e,t)=>n.getUserAccountOrders(e,t).then(e=>e(s,r)),getUserAccountPositions:(e,t)=>n.getUserAccountPositions(e,t).then(e=>e(s,r)),getUserAccountRecentOrders:(e,t)=>n.getUserAccountRecentOrders(e,t).then(e=>e(s,r)),getUserAccountReturnRates:(e,t)=>n.getUserAccountReturnRates(e,t).then(e=>e(s,r)),getUserHoldings:(e,t)=>n.getUserHoldings(e,t).then(e=>e(s,r)),listUserAccounts:(e,t)=>n.listUserAccounts(e,t).then(e=>e(s,r)),updateUserAccount:(e,t)=>n.updateUserAccount(e,t).then(e=>e(s,r))}};class c extends o.BaseAPI{getAccountActivities(e,r){return(0,t.AccountInformationApiFp)(this.configuration).getAccountActivities(e,r).then(e=>e(this.axios,this.basePath))}getAllUserHoldings(e,r){return(0,t.AccountInformationApiFp)(this.configuration).getAllUserHoldings(e,r).then(e=>e(this.axios,this.basePath))}getUserAccountBalance(e,r){return(0,t.AccountInformationApiFp)(this.configuration).getUserAccountBalance(e,r).then(e=>e(this.axios,this.basePath))}getUserAccountDetails(e,r){return(0,t.AccountInformationApiFp)(this.configuration).getUserAccountDetails(e,r).then(e=>e(this.axios,this.basePath))}getUserAccountOrders(e,r){return(0,t.AccountInformationApiFp)(this.configuration).getUserAccountOrders(e,r).then(e=>e(this.axios,this.basePath))}getUserAccountPositions(e,r){return(0,t.AccountInformationApiFp)(this.configuration).getUserAccountPositions(e,r).then(e=>e(this.axios,this.basePath))}getUserAccountRecentOrders(e,r){return(0,t.AccountInformationApiFp)(this.configuration).getUserAccountRecentOrders(e,r).then(e=>e(this.axios,this.basePath))}getUserAccountReturnRates(e,r){return(0,t.AccountInformationApiFp)(this.configuration).getUserAccountReturnRates(e,r).then(e=>e(this.axios,this.basePath))}getUserHoldings(e,r){return(0,t.AccountInformationApiFp)(this.configuration).getUserHoldings(e,r).then(e=>e(this.axios,this.basePath))}listUserAccounts(e,r){return(0,t.AccountInformationApiFp)(this.configuration).listUserAccounts(e,r).then(e=>e(this.axios,this.basePath))}updateUserAccount(e,r){return(0,t.AccountInformationApiFp)(this.configuration).updateUserAccount(e,r).then(e=>e(this.axios,this.basePath))}}t.AccountInformationApiGenerated=c},9301:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9354:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9383:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9452:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9486:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9634:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9957:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})}},t={};function r(s){var n=t[s];if(void 0!==n)return n.exports;var i=t[s]={exports:{}};return e[s].call(i.exports,i,i.exports,r),i.exports}return 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(8692)})());
|
|
2
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.client=t():e.client=t()}(self,()=>(()=>{var e={129:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},160:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},400:function(e,t,r){"use strict";var s=this&&this.__awaiter||function(e,t,r,s){return new(r||(r=Promise))(function(n,i){function o(e){try{c(s.next(e))}catch(e){i(e)}}function a(e){try{c(s.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(o,a)}c((s=s.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.OptionsApiGenerated=t.OptionsApiFactory=t.OptionsApiFp=t.OptionsApiAxiosParamCreator=void 0;const n=r(8451),i=r(5511),o=r(4467),a=r(4445);t.OptionsApiAxiosParamCreator=function(e){return{getOptionStrategy:(t,r,n,o,c={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("getOptionStrategy","userId",t),(0,i.assertParamExists)("getOptionStrategy","userSecret",r),(0,i.assertParamExists)("getOptionStrategy","accountId",n),(0,i.assertParamExists)("getOptionStrategy","optionsGetOptionStrategyRequest",o);const s="/accounts/{accountId}/optionStrategy".replace("{accountId}",encodeURIComponent(String(void 0!==n?n:"-accountId-"))),u=new URL(s,i.DUMMY_BASE_URL);let d;e&&(d=e.baseOptions);const l=Object.assign(Object.assign({method:"POST"},d),c),p=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},h={};yield(0,i.setApiKeyToObject)({object:h,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:h,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(h.userId=t),void 0!==r&&(h.userSecret=r),p["Content-Type"]="application/json";let g=d&&d.headers?d.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},p),g),c.headers),(0,a.requestBeforeHook)({requestBody:o,queryParameters:h,requestConfig:l,path:s,configuration:e,pathTemplate:"/accounts/{accountId}/optionStrategy",httpMethod:"POST"}),l.data=(0,i.serializeDataIfNeeded)(o,l,e),(0,i.setSearchParams)(u,h),{url:(0,i.toPathString)(u),options:l}}),getOptionsChain:(t,r,n,o,c={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("getOptionsChain","userId",t),(0,i.assertParamExists)("getOptionsChain","userSecret",r),(0,i.assertParamExists)("getOptionsChain","accountId",n),(0,i.assertParamExists)("getOptionsChain","symbol",o);const s="/accounts/{accountId}/optionsChain".replace("{accountId}",encodeURIComponent(String(void 0!==n?n:"-accountId-"))),u=new URL(s,i.DUMMY_BASE_URL);let d;e&&(d=e.baseOptions);const l=Object.assign(Object.assign({method:"GET"},d),c),p=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},h={};yield(0,i.setApiKeyToObject)({object:h,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:h,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(h.userId=t),void 0!==r&&(h.userSecret=r),void 0!==o&&(h.symbol=o);let g=d&&d.headers?d.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},p),g),c.headers),(0,a.requestBeforeHook)({queryParameters:h,requestConfig:l,path:s,configuration:e,pathTemplate:"/accounts/{accountId}/optionsChain",httpMethod:"GET"}),(0,i.setSearchParams)(u,h),{url:(0,i.toPathString)(u),options:l}}),getOptionsStrategyQuote:(t,r,n,o,c={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("getOptionsStrategyQuote","userId",t),(0,i.assertParamExists)("getOptionsStrategyQuote","userSecret",r),(0,i.assertParamExists)("getOptionsStrategyQuote","accountId",n),(0,i.assertParamExists)("getOptionsStrategyQuote","optionStrategyId",o);const s="/accounts/{accountId}/optionStrategy/{optionStrategyId}".replace("{accountId}",encodeURIComponent(String(void 0!==n?n:"-accountId-"))).replace("{optionStrategyId}",encodeURIComponent(String(void 0!==o?o:"-optionStrategyId-"))),u=new URL(s,i.DUMMY_BASE_URL);let d;e&&(d=e.baseOptions);const l=Object.assign(Object.assign({method:"GET"},d),c),p=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},h={};yield(0,i.setApiKeyToObject)({object:h,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:h,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(h.userId=t),void 0!==r&&(h.userSecret=r);let g=d&&d.headers?d.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},p),g),c.headers),(0,a.requestBeforeHook)({queryParameters:h,requestConfig:l,path:s,configuration:e,pathTemplate:"/accounts/{accountId}/optionStrategy/{optionStrategyId}",httpMethod:"GET"}),(0,i.setSearchParams)(u,h),{url:(0,i.toPathString)(u),options:l}}),listOptionHoldings:(t,r,n,o={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("listOptionHoldings","userId",t),(0,i.assertParamExists)("listOptionHoldings","userSecret",r),(0,i.assertParamExists)("listOptionHoldings","accountId",n);const s="/accounts/{accountId}/options".replace("{accountId}",encodeURIComponent(String(void 0!==n?n:"-accountId-"))),c=new URL(s,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"GET"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(p.userId=t),void 0!==r&&(p.userSecret=r);let h=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),h),o.headers),(0,a.requestBeforeHook)({queryParameters:p,requestConfig:d,path:s,configuration:e,pathTemplate:"/accounts/{accountId}/options",httpMethod:"GET"}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}}),placeOptionStrategy:(t,r,n,o,c,u={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("placeOptionStrategy","userId",t),(0,i.assertParamExists)("placeOptionStrategy","userSecret",r),(0,i.assertParamExists)("placeOptionStrategy","accountId",n),(0,i.assertParamExists)("placeOptionStrategy","optionStrategyId",o),(0,i.assertParamExists)("placeOptionStrategy","optionsPlaceOptionStrategyRequest",c);const s="/accounts/{accountId}/optionStrategy/{optionStrategyId}/execute".replace("{accountId}",encodeURIComponent(String(void 0!==n?n:"-accountId-"))).replace("{optionStrategyId}",encodeURIComponent(String(void 0!==o?o:"-optionStrategyId-"))),d=new URL(s,i.DUMMY_BASE_URL);let l;e&&(l=e.baseOptions);const p=Object.assign(Object.assign({method:"POST"},l),u),h=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},g={};yield(0,i.setApiKeyToObject)({object:g,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:h,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:g,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(g.userId=t),void 0!==r&&(g.userSecret=r),h["Content-Type"]="application/json";let f=l&&l.headers?l.headers:{};return p.headers=Object.assign(Object.assign(Object.assign({},h),f),u.headers),(0,a.requestBeforeHook)({requestBody:c,queryParameters:g,requestConfig:p,path:s,configuration:e,pathTemplate:"/accounts/{accountId}/optionStrategy/{optionStrategyId}/execute",httpMethod:"POST"}),p.data=(0,i.serializeDataIfNeeded)(c,p,e),(0,i.setSearchParams)(d,g),{url:(0,i.toPathString)(d),options:p}})}},t.OptionsApiFp=function(e){const r=(0,t.OptionsApiAxiosParamCreator)(e);return{getOptionStrategy(t,a){return s(this,void 0,void 0,function*(){const s={underlying_symbol_id:t.underlying_symbol_id,legs:t.legs,strategy_type:t.strategy_type},c=yield r.getOptionStrategy(t.userId,t.userSecret,t.accountId,s,a);return(0,i.createRequestFunction)(c,n.default,o.BASE_PATH,e)})},getOptionsChain(t,a){return s(this,void 0,void 0,function*(){const s=yield r.getOptionsChain(t.userId,t.userSecret,t.accountId,t.symbol,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},getOptionsStrategyQuote(t,a){return s(this,void 0,void 0,function*(){const s=yield r.getOptionsStrategyQuote(t.userId,t.userSecret,t.accountId,t.optionStrategyId,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},listOptionHoldings(t,a){return s(this,void 0,void 0,function*(){const s=yield r.listOptionHoldings(t.userId,t.userSecret,t.accountId,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},placeOptionStrategy(t,a){return s(this,void 0,void 0,function*(){const s={order_type:t.order_type,time_in_force:t.time_in_force,price:t.price},c=yield r.placeOptionStrategy(t.userId,t.userSecret,t.accountId,t.optionStrategyId,s,a);return(0,i.createRequestFunction)(c,n.default,o.BASE_PATH,e)})}}},t.OptionsApiFactory=function(e,r,s){const n=(0,t.OptionsApiFp)(e);return{getOptionStrategy:(e,t)=>n.getOptionStrategy(e,t).then(e=>e(s,r)),getOptionsChain:(e,t)=>n.getOptionsChain(e,t).then(e=>e(s,r)),getOptionsStrategyQuote:(e,t)=>n.getOptionsStrategyQuote(e,t).then(e=>e(s,r)),listOptionHoldings:(e,t)=>n.listOptionHoldings(e,t).then(e=>e(s,r)),placeOptionStrategy:(e,t)=>n.placeOptionStrategy(e,t).then(e=>e(s,r))}};class c extends o.BaseAPI{getOptionStrategy(e,r){return(0,t.OptionsApiFp)(this.configuration).getOptionStrategy(e,r).then(e=>e(this.axios,this.basePath))}getOptionsChain(e,r){return(0,t.OptionsApiFp)(this.configuration).getOptionsChain(e,r).then(e=>e(this.axios,this.basePath))}getOptionsStrategyQuote(e,r){return(0,t.OptionsApiFp)(this.configuration).getOptionsStrategyQuote(e,r).then(e=>e(this.axios,this.basePath))}listOptionHoldings(e,r){return(0,t.OptionsApiFp)(this.configuration).listOptionHoldings(e,r).then(e=>e(this.axios,this.basePath))}placeOptionStrategy(e,r){return(0,t.OptionsApiFp)(this.configuration).placeOptionStrategy(e,r).then(e=>e(this.axios,this.basePath))}}t.OptionsApiGenerated=c},589:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},612:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},624:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},689:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},803:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},833:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1061:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1070:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1108:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1164:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1186:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1190:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1204:function(e,t,r){"use strict";var s=this&&this.__awaiter||function(e,t,r,s){return new(r||(r=Promise))(function(n,i){function o(e){try{c(s.next(e))}catch(e){i(e)}}function a(e){try{c(s.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(o,a)}c((s=s.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.requestAfterHook=void 0,t.requestAfterHook=function(e){return s(this,void 0,void 0,function*(){const{configuration:t,basePath:n,axiosArgs:i,url:o}=e;if(void 0===(null==t?void 0:t.consumerKey))throw Error("Consumer key is required");const a=encodeURI(t.consumerKey),c=void 0===i.options.data||"{}"===i.options.data?null:JSON.parse(i.options.data),u=-1===i.url.indexOf("?")?`${i.url}`:`${i.url.split("?")[0]}`,d=(l={content:c,path:`/api/v1${u}`,query:o.replace(n,"").replace(u,"").replace("?","")},p=[],h={},JSON.stringify(l,function(e,t){return e in h||(p.push(e),h[e]=null),t}),p.sort(),JSON.stringify(l,p));var l,p,h;const g=yield function(e,t){return s(this,void 0,void 0,function*(){if("undefined"!=typeof process&&process.versions&&process.versions.node){const s=r(2349).createHmac("sha256",t);return s.update(e),s.digest("base64")}{const r=new TextEncoder,s=r.encode(t),n=r.encode(e),i=yield globalThis.crypto.subtle.importKey("raw",s,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),o=yield globalThis.crypto.subtle.sign("HMAC",i,n),a=Array.from(new Uint8Array(o));return btoa(String.fromCharCode.apply(null,a))}})}(d,a);i.options.headers&&(i.options.headers.Signature=g)})}},1345:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1447:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1456:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1590:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1641:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1766:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1837:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1843:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1871:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1882:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1883:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1934:function(e,t){"use strict";var r=this&&this.__awaiter||function(e,t,r,s){return new(r||(r=Promise))(function(n,i){function o(e){try{c(s.next(e))}catch(e){i(e)}}function a(e){try{c(s.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(o,a)}c((s=s.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.parseIfJson=t.readableStreamToString=t.SnaptradeError=void 0;class s extends Error{constructor(e,t,r){var s,n,i,o,a;super(e.message+"\nRESPONSE HEADERS:\n"+JSON.stringify(r,null,2)),this.name="SnaptradeError",this.code=e.code,this.method=null===(n=null===(s=e.config)||void 0===s?void 0:s.method)||void 0===n?void 0:n.toUpperCase(),this.url=null===(i=e.config)||void 0===i?void 0:i.url,this.status=null===(o=e.response)||void 0===o?void 0:o.status,this.statusText=null===(a=e.response)||void 0===a?void 0:a.statusText,this.responseBody=t}toJSON(){return{name:this.name,message:this.message,method:this.method,url:this.url,code:this.code,status:this.status,statusText:this.statusText,responseBody:this.responseBody}}}t.SnaptradeError=s,t.readableStreamToString=function(e){return r(this,void 0,void 0,function*(){const t=new TextDecoder,r=e.getReader();let s="";try{for(;;){const{done:e,value:n}=yield r.read();if(e)break;s+=t.decode(n,{stream:!0})}}finally{r.releaseLock()}return s})},t.parseIfJson=function(e){if("string"!=typeof e)return e;try{const t=JSON.parse(e);return"object"==typeof t&&null!==t?t:e}catch(t){return e}}},1953:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2010:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2059:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2074:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2095:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2135:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2165:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2286:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2327:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2349:()=>{},2350:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2362:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.requestBeforeUrlHook=void 0,t.requestBeforeUrlHook=function(e){}},2459:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2501:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2525:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2581:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2670:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2684:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2731:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2784:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3104:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3262:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3287:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3304:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3321:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3450:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3485:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3504:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3603:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,s,n)}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),n=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.TradingApi=void 0;const i=r(7483);n(r(7483),t);class o extends i.TradingApiGenerated{}t.TradingApi=o},3703:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3756:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3814:function(e,t,r){"use strict";var s=this&&this.__awaiter||function(e,t,r,s){return new(r||(r=Promise))(function(n,i){function o(e){try{c(s.next(e))}catch(e){i(e)}}function a(e){try{c(s.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(o,a)}c((s=s.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.AuthenticationApiGenerated=t.AuthenticationApiFactory=t.AuthenticationApiFp=t.AuthenticationApiAxiosParamCreator=void 0;const n=r(8451),i=r(5511),o=r(4467),a=r(4445);t.AuthenticationApiAxiosParamCreator=function(e){return{deleteSnapTradeUser:(t,r={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("deleteSnapTradeUser","userId",t);const s="/snapTrade/deleteUser",n=new URL(s,i.DUMMY_BASE_URL);let o;e&&(o=e.baseOptions);const c=Object.assign(Object.assign({method:"DELETE"},o),r),u=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},d={};yield(0,i.setApiKeyToObject)({object:d,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:u,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:d,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(d.userId=t);let l=o&&o.headers?o.headers:{};return c.headers=Object.assign(Object.assign(Object.assign({},u),l),r.headers),(0,a.requestBeforeHook)({queryParameters:d,requestConfig:c,path:s,configuration:e,pathTemplate:"/snapTrade/deleteUser",httpMethod:"DELETE"}),(0,i.setSearchParams)(n,d),{url:(0,i.toPathString)(n),options:c}}),listSnapTradeUsers:(t={})=>s(this,void 0,void 0,function*(){const r="/snapTrade/listUsers",s=new URL(r,i.DUMMY_BASE_URL);let n;e&&(n=e.baseOptions);const o=Object.assign(Object.assign({method:"GET"},n),t),c=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},u={};yield(0,i.setApiKeyToObject)({object:u,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:c,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:u,key:"timestamp",keyParamName:"timestamp",configuration:e});let d=n&&n.headers?n.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},c),d),t.headers),(0,a.requestBeforeHook)({queryParameters:u,requestConfig:o,path:r,configuration:e,pathTemplate:"/snapTrade/listUsers",httpMethod:"GET"}),(0,i.setSearchParams)(s,u),{url:(0,i.toPathString)(s),options:o}}),loginSnapTradeUser:(t,r,n,o={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("loginSnapTradeUser","userId",t),(0,i.assertParamExists)("loginSnapTradeUser","userSecret",r);const s="/snapTrade/login",c=new URL(s,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"POST"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(p.userId=t),void 0!==r&&(p.userSecret=r),l["Content-Type"]="application/json";let h=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),h),o.headers),(0,a.requestBeforeHook)({requestBody:n,queryParameters:p,requestConfig:d,path:s,configuration:e,pathTemplate:"/snapTrade/login",httpMethod:"POST"}),d.data=(0,i.serializeDataIfNeeded)(n,d,e),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}}),registerSnapTradeUser:(t,r={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("registerSnapTradeUser","snapTradeRegisterUserRequestBody",t);const s="/snapTrade/registerUser",n=new URL(s,i.DUMMY_BASE_URL);let o;e&&(o=e.baseOptions);const c=Object.assign(Object.assign({method:"POST"},o),r),u=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},d={};yield(0,i.setApiKeyToObject)({object:d,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:u,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:d,key:"timestamp",keyParamName:"timestamp",configuration:e}),u["Content-Type"]="application/json";let l=o&&o.headers?o.headers:{};return c.headers=Object.assign(Object.assign(Object.assign({},u),l),r.headers),(0,a.requestBeforeHook)({requestBody:t,queryParameters:d,requestConfig:c,path:s,configuration:e,pathTemplate:"/snapTrade/registerUser",httpMethod:"POST"}),c.data=(0,i.serializeDataIfNeeded)(t,c,e),(0,i.setSearchParams)(n,d),{url:(0,i.toPathString)(n),options:c}}),resetSnapTradeUserSecret:(t,r={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("resetSnapTradeUserSecret","userIDandSecret",t);const s="/snapTrade/resetUserSecret",n=new URL(s,i.DUMMY_BASE_URL);let o;e&&(o=e.baseOptions);const c=Object.assign(Object.assign({method:"POST"},o),r),u=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},d={};yield(0,i.setApiKeyToObject)({object:d,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:u,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:d,key:"timestamp",keyParamName:"timestamp",configuration:e}),u["Content-Type"]="application/json";let l=o&&o.headers?o.headers:{};return c.headers=Object.assign(Object.assign(Object.assign({},u),l),r.headers),(0,a.requestBeforeHook)({requestBody:t,queryParameters:d,requestConfig:c,path:s,configuration:e,pathTemplate:"/snapTrade/resetUserSecret",httpMethod:"POST"}),c.data=(0,i.serializeDataIfNeeded)(t,c,e),(0,i.setSearchParams)(n,d),{url:(0,i.toPathString)(n),options:c}})}},t.AuthenticationApiFp=function(e){const r=(0,t.AuthenticationApiAxiosParamCreator)(e);return{deleteSnapTradeUser(t,a){return s(this,void 0,void 0,function*(){const s=yield r.deleteSnapTradeUser(t.userId,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},listSnapTradeUsers(t){return s(this,void 0,void 0,function*(){const s=yield r.listSnapTradeUsers(t);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},loginSnapTradeUser(t,a){return s(this,void 0,void 0,function*(){const s={broker:t.broker,immediateRedirect:t.immediateRedirect,customRedirect:t.customRedirect,reconnect:t.reconnect,connectionType:t.connectionType,connectionPortalVersion:t.connectionPortalVersion},c=yield r.loginSnapTradeUser(t.userId,t.userSecret,s,a);return(0,i.createRequestFunction)(c,n.default,o.BASE_PATH,e)})},registerSnapTradeUser(t,a){return s(this,void 0,void 0,function*(){const s={userId:t.userId},c=yield r.registerSnapTradeUser(s,a);return(0,i.createRequestFunction)(c,n.default,o.BASE_PATH,e)})},resetSnapTradeUserSecret(t,a){return s(this,void 0,void 0,function*(){const s={userId:t.userId,userSecret:t.userSecret},c=yield r.resetSnapTradeUserSecret(s,a);return(0,i.createRequestFunction)(c,n.default,o.BASE_PATH,e)})}}},t.AuthenticationApiFactory=function(e,r,s){const n=(0,t.AuthenticationApiFp)(e);return{deleteSnapTradeUser:(e,t)=>n.deleteSnapTradeUser(e,t).then(e=>e(s,r)),listSnapTradeUsers:e=>n.listSnapTradeUsers(e).then(e=>e(s,r)),loginSnapTradeUser:(e,t)=>n.loginSnapTradeUser(e,t).then(e=>e(s,r)),registerSnapTradeUser:(e,t)=>n.registerSnapTradeUser(e,t).then(e=>e(s,r)),resetSnapTradeUserSecret:(e,t)=>n.resetSnapTradeUserSecret(e,t).then(e=>e(s,r))}};class c extends o.BaseAPI{deleteSnapTradeUser(e,r){return(0,t.AuthenticationApiFp)(this.configuration).deleteSnapTradeUser(e,r).then(e=>e(this.axios,this.basePath))}listSnapTradeUsers(e){return(0,t.AuthenticationApiFp)(this.configuration).listSnapTradeUsers(e).then(e=>e(this.axios,this.basePath))}loginSnapTradeUser(e,r){return(0,t.AuthenticationApiFp)(this.configuration).loginSnapTradeUser(e,r).then(e=>e(this.axios,this.basePath))}registerSnapTradeUser(e,r){return(0,t.AuthenticationApiFp)(this.configuration).registerSnapTradeUser(e,r).then(e=>e(this.axios,this.basePath))}resetSnapTradeUserSecret(e,r){return(0,t.AuthenticationApiFp)(this.configuration).resetSnapTradeUserSecret(e,r).then(e=>e(this.axios,this.basePath))}}t.AuthenticationApiGenerated=c},3926:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3959:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4105:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4188:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,s,n)}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),n=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.OptionsApi=void 0;const i=r(400);n(r(400),t);class o extends i.OptionsApiGenerated{}t.OptionsApi=o},4251:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,s,n)}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),n=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}),n(r(3304),t),n(r(3321),t),n(r(2670),t),n(r(589),t),n(r(6687),t),n(r(2459),t),n(r(2135),t),n(r(2074),t),n(r(6612),t),n(r(2731),t),n(r(5854),t),n(r(1456),t),n(r(8911),t),n(r(833),t),n(r(612),t),n(r(7602),t),n(r(1641),t),n(r(1061),t),n(r(2095),t),n(r(7295),t),n(r(689),t),n(r(7291),t),n(r(1447),t),n(r(4747),t),n(r(1871),t),n(r(9168),t),n(r(5491),t),n(r(3504),t),n(r(6837),t),n(r(4700),t),n(r(8222),t),n(r(1590),t),n(r(3926),t),n(r(6483),t),n(r(9452),t),n(r(3104),t),n(r(7249),t),n(r(1843),t),n(r(2525),t),n(r(1766),t),n(r(4105),t),n(r(2286),t),n(r(9634),t),n(r(160),t),n(r(1186),t),n(r(1345),t),n(r(4415),t),n(r(2165),t),n(r(5100),t),n(r(8038),t),n(r(9301),t),n(r(8329),t),n(r(2010),t),n(r(7451),t),n(r(7707),t),n(r(1883),t),n(r(9383),t),n(r(3959),t),n(r(2684),t),n(r(1108),t),n(r(8066),t),n(r(3450),t),n(r(1953),t),n(r(6392),t),n(r(7275),t),n(r(4635),t),n(r(4384),t),n(r(6822),t),n(r(5103),t),n(r(6599),t),n(r(3287),t),n(r(7854),t),n(r(7214),t),n(r(7867),t),n(r(3756),t),n(r(4695),t),n(r(3703),t),n(r(2501),t),n(r(7615),t),n(r(9354),t),n(r(5407),t),n(r(2784),t),n(r(5803),t),n(r(2581),t),n(r(5433),t),n(r(8486),t),n(r(9032),t),n(r(8305),t),n(r(8996),t),n(r(8032),t),n(r(6142),t),n(r(6375),t),n(r(4909),t),n(r(6944),t),n(r(6489),t),n(r(4784),t),n(r(1164),t),n(r(6882),t),n(r(6342),t),n(r(3262),t),n(r(8927),t),n(r(7637),t),n(r(8847),t),n(r(2327),t),n(r(7906),t),n(r(7335),t),n(r(5267),t),n(r(129),t),n(r(6927),t),n(r(6337),t),n(r(1882),t),n(r(8951),t),n(r(9957),t),n(r(5359),t),n(r(6435),t),n(r(3485),t),n(r(7091),t),n(r(2350),t),n(r(5675),t),n(r(5547),t),n(r(6054),t),n(r(8818),t),n(r(4606),t),n(r(1190),t),n(r(1837),t),n(r(9486),t),n(r(5401),t),n(r(6255),t),n(r(1070),t),n(r(8670),t),n(r(803),t),n(r(624),t),n(r(2059),t)},4375:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,s,n)}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),n=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.ConnectionsApi=void 0;const i=r(8015);n(r(8015),t);class o extends i.ConnectionsApiGenerated{}t.ConnectionsApi=o},4384:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4415:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4445:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.requestBeforeHook=void 0,t.requestBeforeHook=function(e){const{queryParameters:t}=e;t.timestamp=Math.round((new Date).getTime()/1e3).toString()}},4467:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RequiredError=t.BaseAPI=t.COLLECTION_FORMATS=t.BASE_PATH=void 0;const s=r(8451);t.BASE_PATH="https://api.snaptrade.com/api/v1".replace(/\/+$/,""),t.COLLECTION_FORMATS={csv:",",ssv:" ",tsv:"\t",pipes:"|"},t.BaseAPI=class{constructor(e,r=t.BASE_PATH,n=s.default){this.basePath=r,this.axios=n,e&&(this.configuration=e,this.basePath=e.basePath||this.basePath)}};class n extends Error{constructor(e,t){super(t),this.field=e,this.name="RequiredError"}}t.RequiredError=n},4606:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4635:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4695:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4700:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4747:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4784:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4909:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5100:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5103:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5198:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,s,n)}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),n=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.ReferenceDataApi=void 0;const i=r(8902);n(r(8902),t);class o extends i.ReferenceDataApiGenerated{}t.ReferenceDataApi=o},5267:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5359:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5401:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5407:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5433:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5469:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SnaptradeCustom=void 0,t.SnaptradeCustom=class{constructor(e){}}},5491:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5511:function(e,t,r){"use strict";var s=this&&this.__awaiter||function(e,t,r,s){return new(r||(r=Promise))(function(n,i){function o(e){try{c(s.next(e))}catch(e){i(e)}}function a(e){try{c(s.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(o,a)}c((s=s.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.isBrowser=t.createRequestFunction=t.removeTrailingSlash=t.toPathString=t.serializeDataIfNeeded=t.setSearchParams=t.setBearerAuthToObject=t.setBasicAuthToObject=t.setApiKeyToObject=t.assertParamExists=t.DUMMY_BASE_URL=void 0;const n=r(4467),i=r(8451),o=r(1204),a=r(2362),c=r(1934);function u(e,t,r=""){"object"==typeof t?Array.isArray(t)?t.forEach(t=>u(e,t,r)):Object.keys(t).forEach(s=>u(e,t[s],`${r}${""!==r?".":""}${s}`)):e.has(r)?e.append(r,t):e.set(r,t)}t.DUMMY_BASE_URL="https://example.com",t.assertParamExists=function(e,t,r){if(null==r)throw new n.RequiredError(t,`Required parameter ${t} was null or undefined when calling ${e}.`)},t.setApiKeyToObject=function({object:e,key:t,type:r,keyParamName:n,configuration:i,prefix:o}){return s(this,void 0,void 0,function*(){t=t||n;let s=null;if(i&&i.apiKey)if("function"==typeof i.apiKey)s=yield i.apiKey(n);else if("string"==typeof i.apiKey)s=i.apiKey;else{if("object"!=typeof i.apiKey)throw Error(`Unexpected type ${typeof i.apiKey} for Configuration.apiKey`);n in i.apiKey&&(s=i.apiKey[n])}s&&(e[t]=void 0!==o?`${o}${s}`:s,"Cookie"===r&&(e[t]=`${n}=${e[t]}`))})},t.setBasicAuthToObject=function(e,t){t&&(t.username||t.password)&&(e.auth={username:t.username,password:t.password})},t.setBearerAuthToObject=function(e,t){return s(this,void 0,void 0,function*(){if(t&&t.accessToken){const r="function"==typeof t.accessToken?yield t.accessToken():yield t.accessToken;e.Authorization="Bearer "+r}})},t.setSearchParams=function(e,...t){const r=new URLSearchParams(e.search);u(r,t),e.search=r.toString()},t.serializeDataIfNeeded=function(e,t,r){const s="string"!=typeof e;return(s&&r&&r.isJsonMime?r.isJsonMime(t.headers["Content-Type"]):s)?JSON.stringify(void 0!==e?e:{}):e||""},t.toPathString=function(e){return(0,t.removeTrailingSlash)(e.pathname)+e.search+e.hash},t.removeTrailingSlash=function(e){return e.replace(/\/$/,"")},t.createRequestFunction=function(e,t,r,n){return(u=t,d=r)=>s(this,void 0,void 0,function*(){(0,a.requestBeforeUrlHook)({axiosArgs:e,basePath:d,configuration:n});const t=((null==n?void 0:n.basePath)||d)+e.url;return yield(0,o.requestAfterHook)({axiosArgs:e,basePath:d,url:t,configuration:n}),function(e){var t,r,n,o,a,u;return s(this,void 0,void 0,function*(){let s=0,d=5e3;for(;s<3;)try{return yield e()}catch(e){if(e instanceof i.AxiosError&&e.isAxiosError){if(429==(null===(t=e.response)||void 0===t?void 0:t.status)){s++,console.log(`429 error encountered, retrying in ${d/1e3} seconds...`),yield new Promise(e=>setTimeout(e,d)),d*=2;continue}try{const t=(null===(r=e.response)||void 0===r?void 0:r.data)instanceof ReadableStream?yield(0,c.readableStreamToString)(e.response.data):null===(n=e.response)||void 0===n?void 0:n.data;throw new c.SnaptradeError(e,(0,c.parseIfJson)(t),null===(o=e.response)||void 0===o?void 0:o.headers)}catch(t){if(t instanceof ReferenceError)throw new c.SnaptradeError(e,null===(a=e.response)||void 0===a?void 0:a.data,null===(u=e.response)||void 0===u?void 0:u.headers);if(t instanceof c.SnaptradeError)throw t;throw e}}throw e}throw new Error("Request failed after 3 retries due to 429 (rate limit) errors.")})}(()=>s(this,void 0,void 0,function*(){return yield u.request(Object.assign(Object.assign({},e.options),{url:t}))}))})},t.isBrowser=function(){return"undefined"!=typeof window}},5547:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5675:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5803:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5854:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6054:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6057:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Snaptrade=void 0;const s=r(8564),n=r(6254),i=r(5469);class o extends i.SnaptradeCustom{constructor(e={}){super(e);const t=new n.Configuration(e);this.accountInformation=new s.AccountInformationApi(t),this.apiStatus=new s.ApiStatusApi(t),this.authentication=new s.AuthenticationApi(t),this.connections=new s.ConnectionsApi(t),this.options=new s.OptionsApi(t),this.referenceData=new s.ReferenceDataApi(t),this.trading=new s.TradingApi(t),this.transactionsAndReporting=new s.TransactionsAndReportingApi(t)}}t.Snaptrade=o},6142:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6227:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,s,n)}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),n=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.ApiStatusApi=void 0;const i=r(8747);n(r(8747),t);class o extends i.ApiStatusApiGenerated{}t.ApiStatusApi=o},6254:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Configuration=void 0,t.Configuration=class{constructor(e={}){var t;this.consumerKey=e.consumerKey,this.apiKey=e.apiKey,void 0===this.apiKey&&(this.apiKey={},void 0!==e.clientId&&(this.apiKey.clientId=e.clientId),void 0!==e.signature&&(this.apiKey.signature=e.signature),void 0!==e.timestamp&&(this.apiKey.timestamp=e.timestamp)),this.username=e.username,this.password=e.password,this.accessToken=e.accessToken,this.basePath=e.basePath,this.baseOptions=null!==(t=e.baseOptions)&&void 0!==t?t:{},this.userAgent=void 0===e.userAgent?"Konfig/9.0.115/typescript":e.userAgent,this.formDataCtor=e.formDataCtor}isJsonMime(e){const t=new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$","i");return null!==e&&(t.test(e)||"application/json-patch+json"===e.toLowerCase())}}},6255:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6337:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6342:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6375:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6392:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6435:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6483:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6489:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6599:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6612:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6687:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6822:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6837:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6882:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6927:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6944:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7091:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7214:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7249:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7275:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7291:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7295:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7335:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7451:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7483:function(e,t,r){"use strict";var s=this&&this.__awaiter||function(e,t,r,s){return new(r||(r=Promise))(function(n,i){function o(e){try{c(s.next(e))}catch(e){i(e)}}function a(e){try{c(s.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(o,a)}c((s=s.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.TradingApiGenerated=t.TradingApiFactory=t.TradingApiFp=t.TradingApiAxiosParamCreator=void 0;const n=r(8451),i=r(5511),o=r(4467),a=r(4445);t.TradingApiAxiosParamCreator=function(e){return{cancelOrder:(t,r,n,o,c={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("cancelOrder","userId",t),(0,i.assertParamExists)("cancelOrder","userSecret",r),(0,i.assertParamExists)("cancelOrder","accountId",n),(0,i.assertParamExists)("cancelOrder","brokerageOrderId",o);const s="/accounts/{accountId}/trading/simple/{brokerageOrderId}/cancel".replace("{accountId}",encodeURIComponent(String(void 0!==n?n:"-accountId-"))).replace("{brokerageOrderId}",encodeURIComponent(String(void 0!==o?o:"-brokerageOrderId-"))),u=new URL(s,i.DUMMY_BASE_URL);let d;e&&(d=e.baseOptions);const l=Object.assign(Object.assign({method:"POST"},d),c),p=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},h={};yield(0,i.setApiKeyToObject)({object:h,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:h,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(h.userId=t),void 0!==r&&(h.userSecret=r);let g=d&&d.headers?d.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},p),g),c.headers),(0,a.requestBeforeHook)({queryParameters:h,requestConfig:l,path:s,configuration:e,pathTemplate:"/accounts/{accountId}/trading/simple/{brokerageOrderId}/cancel",httpMethod:"POST"}),(0,i.setSearchParams)(u,h),{url:(0,i.toPathString)(u),options:l}}),cancelUserAccountOrder:(t,r,n,o,c={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("cancelUserAccountOrder","userId",t),(0,i.assertParamExists)("cancelUserAccountOrder","userSecret",r),(0,i.assertParamExists)("cancelUserAccountOrder","accountId",n),(0,i.assertParamExists)("cancelUserAccountOrder","tradingCancelUserAccountOrderRequest",o);const s="/accounts/{accountId}/orders/cancel".replace("{accountId}",encodeURIComponent(String(void 0!==n?n:"-accountId-"))),u=new URL(s,i.DUMMY_BASE_URL);let d;e&&(d=e.baseOptions);const l=Object.assign(Object.assign({method:"POST"},d),c),p=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},h={};yield(0,i.setApiKeyToObject)({object:h,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:h,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(h.userId=t),void 0!==r&&(h.userSecret=r),p["Content-Type"]="application/json";let g=d&&d.headers?d.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},p),g),c.headers),(0,a.requestBeforeHook)({requestBody:o,queryParameters:h,requestConfig:l,path:s,configuration:e,pathTemplate:"/accounts/{accountId}/orders/cancel",httpMethod:"POST"}),l.data=(0,i.serializeDataIfNeeded)(o,l,e),(0,i.setSearchParams)(u,h),{url:(0,i.toPathString)(u),options:l}}),getCryptocurrencyPairQuote:(t,r,n,o,c={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("getCryptocurrencyPairQuote","userId",t),(0,i.assertParamExists)("getCryptocurrencyPairQuote","userSecret",r),(0,i.assertParamExists)("getCryptocurrencyPairQuote","accountId",n),(0,i.assertParamExists)("getCryptocurrencyPairQuote","instrumentSymbol",o);const s="/accounts/{accountId}/trading/instruments/cryptocurrencyPairs/{instrumentSymbol}/quote".replace("{accountId}",encodeURIComponent(String(void 0!==n?n:"-accountId-"))).replace("{instrumentSymbol}",encodeURIComponent(String(void 0!==o?o:"-instrumentSymbol-"))),u=new URL(s,i.DUMMY_BASE_URL);let d;e&&(d=e.baseOptions);const l=Object.assign(Object.assign({method:"GET"},d),c),p=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},h={};yield(0,i.setApiKeyToObject)({object:h,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:h,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(h.userId=t),void 0!==r&&(h.userSecret=r);let g=d&&d.headers?d.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},p),g),c.headers),(0,a.requestBeforeHook)({queryParameters:h,requestConfig:l,path:s,configuration:e,pathTemplate:"/accounts/{accountId}/trading/instruments/cryptocurrencyPairs/{instrumentSymbol}/quote",httpMethod:"GET"}),(0,i.setSearchParams)(u,h),{url:(0,i.toPathString)(u),options:l}}),getOrderImpact:(t,r,n,o={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("getOrderImpact","userId",t),(0,i.assertParamExists)("getOrderImpact","userSecret",r),(0,i.assertParamExists)("getOrderImpact","manualTradeForm",n);const s="/trade/impact",c=new URL(s,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"POST"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(p.userId=t),void 0!==r&&(p.userSecret=r),l["Content-Type"]="application/json";let h=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),h),o.headers),(0,a.requestBeforeHook)({requestBody:n,queryParameters:p,requestConfig:d,path:s,configuration:e,pathTemplate:"/trade/impact",httpMethod:"POST"}),d.data=(0,i.serializeDataIfNeeded)(n,d,e),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}}),getUserAccountQuotes:(t,r,n,o,c,u={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("getUserAccountQuotes","userId",t),(0,i.assertParamExists)("getUserAccountQuotes","userSecret",r),(0,i.assertParamExists)("getUserAccountQuotes","symbols",n),(0,i.assertParamExists)("getUserAccountQuotes","accountId",o);const s="/accounts/{accountId}/quotes".replace("{accountId}",encodeURIComponent(String(void 0!==o?o:"-accountId-"))),d=new URL(s,i.DUMMY_BASE_URL);let l;e&&(l=e.baseOptions);const p=Object.assign(Object.assign({method:"GET"},l),u),h=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},g={};yield(0,i.setApiKeyToObject)({object:g,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:h,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:g,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(g.userId=t),void 0!==r&&(g.userSecret=r),void 0!==n&&(g.symbols=n),void 0!==c&&(g.use_ticker=c);let f=l&&l.headers?l.headers:{};return p.headers=Object.assign(Object.assign(Object.assign({},h),f),u.headers),(0,a.requestBeforeHook)({queryParameters:g,requestConfig:p,path:s,configuration:e,pathTemplate:"/accounts/{accountId}/quotes",httpMethod:"GET"}),(0,i.setSearchParams)(d,g),{url:(0,i.toPathString)(d),options:p}}),placeBracketOrder:(t,r,n,o,c={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("placeBracketOrder","accountId",t),(0,i.assertParamExists)("placeBracketOrder","userId",r),(0,i.assertParamExists)("placeBracketOrder","userSecret",n),(0,i.assertParamExists)("placeBracketOrder","manualTradeFormBracket",o);const s="/accounts/{accountId}/trading/bracket".replace("{accountId}",encodeURIComponent(String(void 0!==t?t:"-accountId-"))),u=new URL(s,i.DUMMY_BASE_URL);let d;e&&(d=e.baseOptions);const l=Object.assign(Object.assign({method:"POST"},d),c),p=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},h={};yield(0,i.setApiKeyToObject)({object:h,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:h,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==r&&(h.userId=r),void 0!==n&&(h.userSecret=n),p["Content-Type"]="application/json";let g=d&&d.headers?d.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},p),g),c.headers),(0,a.requestBeforeHook)({requestBody:o,queryParameters:h,requestConfig:l,path:s,configuration:e,pathTemplate:"/accounts/{accountId}/trading/bracket",httpMethod:"POST"}),l.data=(0,i.serializeDataIfNeeded)(o,l,e),(0,i.setSearchParams)(u,h),{url:(0,i.toPathString)(u),options:l}}),placeForceOrder:(t,r,n,o={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("placeForceOrder","userId",t),(0,i.assertParamExists)("placeForceOrder","userSecret",r),(0,i.assertParamExists)("placeForceOrder","manualTradeFormWithOptions",n);const s="/trade/place",c=new URL(s,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"POST"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(p.userId=t),void 0!==r&&(p.userSecret=r),l["Content-Type"]="application/json";let h=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),h),o.headers),(0,a.requestBeforeHook)({requestBody:n,queryParameters:p,requestConfig:d,path:s,configuration:e,pathTemplate:"/trade/place",httpMethod:"POST"}),d.data=(0,i.serializeDataIfNeeded)(n,d,e),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}}),placeMlegOrder:(t,r,n,o,c={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("placeMlegOrder","userId",t),(0,i.assertParamExists)("placeMlegOrder","userSecret",r),(0,i.assertParamExists)("placeMlegOrder","accountId",n),(0,i.assertParamExists)("placeMlegOrder","mlegTradeForm",o);const s="/accounts/{accountId}/trading/options".replace("{accountId}",encodeURIComponent(String(void 0!==n?n:"-accountId-"))),u=new URL(s,i.DUMMY_BASE_URL);let d;e&&(d=e.baseOptions);const l=Object.assign(Object.assign({method:"POST"},d),c),p=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},h={};yield(0,i.setApiKeyToObject)({object:h,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:h,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(h.userId=t),void 0!==r&&(h.userSecret=r),p["Content-Type"]="application/json";let g=d&&d.headers?d.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},p),g),c.headers),(0,a.requestBeforeHook)({requestBody:o,queryParameters:h,requestConfig:l,path:s,configuration:e,pathTemplate:"/accounts/{accountId}/trading/options",httpMethod:"POST"}),l.data=(0,i.serializeDataIfNeeded)(o,l,e),(0,i.setSearchParams)(u,h),{url:(0,i.toPathString)(u),options:l}}),placeOrder:(t,r,n,o,c={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("placeOrder","tradeId",t),(0,i.assertParamExists)("placeOrder","userId",r),(0,i.assertParamExists)("placeOrder","userSecret",n);const s="/trade/{tradeId}".replace("{tradeId}",encodeURIComponent(String(void 0!==t?t:"-tradeId-"))),u=new URL(s,i.DUMMY_BASE_URL);let d;e&&(d=e.baseOptions);const l=Object.assign(Object.assign({method:"POST"},d),c),p=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},h={};yield(0,i.setApiKeyToObject)({object:h,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:h,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==r&&(h.userId=r),void 0!==n&&(h.userSecret=n),p["Content-Type"]="application/json";let g=d&&d.headers?d.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},p),g),c.headers),(0,a.requestBeforeHook)({requestBody:o,queryParameters:h,requestConfig:l,path:s,configuration:e,pathTemplate:"/trade/{tradeId}",httpMethod:"POST"}),l.data=(0,i.serializeDataIfNeeded)(o,l,e),(0,i.setSearchParams)(u,h),{url:(0,i.toPathString)(u),options:l}}),placeSimpleOrder:(t,r,n,o,c={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("placeSimpleOrder","userId",t),(0,i.assertParamExists)("placeSimpleOrder","userSecret",r),(0,i.assertParamExists)("placeSimpleOrder","accountId",n),(0,i.assertParamExists)("placeSimpleOrder","simpleOrderForm",o);const s="/accounts/{accountId}/trading/simple".replace("{accountId}",encodeURIComponent(String(void 0!==n?n:"-accountId-"))),u=new URL(s,i.DUMMY_BASE_URL);let d;e&&(d=e.baseOptions);const l=Object.assign(Object.assign({method:"POST"},d),c),p=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},h={};yield(0,i.setApiKeyToObject)({object:h,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:h,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(h.userId=t),void 0!==r&&(h.userSecret=r),p["Content-Type"]="application/json";let g=d&&d.headers?d.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},p),g),c.headers),(0,a.requestBeforeHook)({requestBody:o,queryParameters:h,requestConfig:l,path:s,configuration:e,pathTemplate:"/accounts/{accountId}/trading/simple",httpMethod:"POST"}),l.data=(0,i.serializeDataIfNeeded)(o,l,e),(0,i.setSearchParams)(u,h),{url:(0,i.toPathString)(u),options:l}}),previewSimpleOrder:(t,r,n,o,c={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("previewSimpleOrder","userId",t),(0,i.assertParamExists)("previewSimpleOrder","userSecret",r),(0,i.assertParamExists)("previewSimpleOrder","accountId",n),(0,i.assertParamExists)("previewSimpleOrder","simpleOrderForm",o);const s="/accounts/{accountId}/trading/simple/preview".replace("{accountId}",encodeURIComponent(String(void 0!==n?n:"-accountId-"))),u=new URL(s,i.DUMMY_BASE_URL);let d;e&&(d=e.baseOptions);const l=Object.assign(Object.assign({method:"POST"},d),c),p=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},h={};yield(0,i.setApiKeyToObject)({object:h,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:h,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(h.userId=t),void 0!==r&&(h.userSecret=r),p["Content-Type"]="application/json";let g=d&&d.headers?d.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},p),g),c.headers),(0,a.requestBeforeHook)({requestBody:o,queryParameters:h,requestConfig:l,path:s,configuration:e,pathTemplate:"/accounts/{accountId}/trading/simple/preview",httpMethod:"POST"}),l.data=(0,i.serializeDataIfNeeded)(o,l,e),(0,i.setSearchParams)(u,h),{url:(0,i.toPathString)(u),options:l}}),replaceOrder:(t,r,n,o,c,u={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("replaceOrder","accountId",t),(0,i.assertParamExists)("replaceOrder","brokerageOrderId",r),(0,i.assertParamExists)("replaceOrder","userId",n),(0,i.assertParamExists)("replaceOrder","userSecret",o),(0,i.assertParamExists)("replaceOrder","manualTradeReplaceForm",c);const s="/accounts/{accountId}/trading/simple/{brokerageOrderId}/replace".replace("{accountId}",encodeURIComponent(String(void 0!==t?t:"-accountId-"))).replace("{brokerageOrderId}",encodeURIComponent(String(void 0!==r?r:"-brokerageOrderId-"))),d=new URL(s,i.DUMMY_BASE_URL);let l;e&&(l=e.baseOptions);const p=Object.assign(Object.assign({method:"PATCH"},l),u),h=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},g={};yield(0,i.setApiKeyToObject)({object:g,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:h,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:g,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==n&&(g.userId=n),void 0!==o&&(g.userSecret=o),h["Content-Type"]="application/json";let f=l&&l.headers?l.headers:{};return p.headers=Object.assign(Object.assign(Object.assign({},h),f),u.headers),(0,a.requestBeforeHook)({requestBody:c,queryParameters:g,requestConfig:p,path:s,configuration:e,pathTemplate:"/accounts/{accountId}/trading/simple/{brokerageOrderId}/replace",httpMethod:"PATCH"}),p.data=(0,i.serializeDataIfNeeded)(c,p,e),(0,i.setSearchParams)(d,g),{url:(0,i.toPathString)(d),options:p}}),searchCryptocurrencyPairInstruments:(t,r,n,o,c,u={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("searchCryptocurrencyPairInstruments","userId",t),(0,i.assertParamExists)("searchCryptocurrencyPairInstruments","userSecret",r),(0,i.assertParamExists)("searchCryptocurrencyPairInstruments","accountId",n);const s="/accounts/{accountId}/trading/instruments/cryptocurrencyPairs".replace("{accountId}",encodeURIComponent(String(void 0!==n?n:"-accountId-"))),d=new URL(s,i.DUMMY_BASE_URL);let l;e&&(l=e.baseOptions);const p=Object.assign(Object.assign({method:"GET"},l),u),h=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},g={};yield(0,i.setApiKeyToObject)({object:g,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:h,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:g,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(g.userId=t),void 0!==r&&(g.userSecret=r),void 0!==o&&(g.base=o),void 0!==c&&(g.quote=c);let f=l&&l.headers?l.headers:{};return p.headers=Object.assign(Object.assign(Object.assign({},h),f),u.headers),(0,a.requestBeforeHook)({queryParameters:g,requestConfig:p,path:s,configuration:e,pathTemplate:"/accounts/{accountId}/trading/instruments/cryptocurrencyPairs",httpMethod:"GET"}),(0,i.setSearchParams)(d,g),{url:(0,i.toPathString)(d),options:p}})}},t.TradingApiFp=function(e){const r=(0,t.TradingApiAxiosParamCreator)(e);return{cancelOrder(t,a){return s(this,void 0,void 0,function*(){const s=yield r.cancelOrder(t.userId,t.userSecret,t.accountId,t.brokerageOrderId,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},cancelUserAccountOrder(t,a){return s(this,void 0,void 0,function*(){const s={brokerage_order_id:t.brokerage_order_id},c=yield r.cancelUserAccountOrder(t.userId,t.userSecret,t.accountId,s,a);return(0,i.createRequestFunction)(c,n.default,o.BASE_PATH,e)})},getCryptocurrencyPairQuote(t,a){return s(this,void 0,void 0,function*(){const s=yield r.getCryptocurrencyPairQuote(t.userId,t.userSecret,t.accountId,t.instrumentSymbol,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},getOrderImpact(t,a){return s(this,void 0,void 0,function*(){const s={account_id:t.account_id,action:t.action,universal_symbol_id:t.universal_symbol_id,order_type:t.order_type,time_in_force:t.time_in_force,price:t.price,stop:t.stop,units:t.units,notional_value:t.notional_value},c=yield r.getOrderImpact(t.userId,t.userSecret,s,a);return(0,i.createRequestFunction)(c,n.default,o.BASE_PATH,e)})},getUserAccountQuotes(t,a){return s(this,void 0,void 0,function*(){const s=yield r.getUserAccountQuotes(t.userId,t.userSecret,t.symbols,t.accountId,t.useTicker,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},placeBracketOrder(t,a){return s(this,void 0,void 0,function*(){const s={action:t.action,symbol:t.symbol,instrument:t.instrument,order_type:t.order_type,time_in_force:t.time_in_force,price:t.price,stop:t.stop,units:t.units,stop_loss:t.stop_loss,take_profit:t.take_profit},c=yield r.placeBracketOrder(t.accountId,t.userId,t.userSecret,s,a);return(0,i.createRequestFunction)(c,n.default,o.BASE_PATH,e)})},placeForceOrder(t,a){return s(this,void 0,void 0,function*(){const s={account_id:t.account_id,action:t.action,universal_symbol_id:t.universal_symbol_id,symbol:t.symbol,order_type:t.order_type,time_in_force:t.time_in_force,price:t.price,stop:t.stop,units:t.units,notional_value:t.notional_value},c=yield r.placeForceOrder(t.userId,t.userSecret,s,a);return(0,i.createRequestFunction)(c,n.default,o.BASE_PATH,e)})},placeMlegOrder(t,a){return s(this,void 0,void 0,function*(){const s={order_type:t.order_type,time_in_force:t.time_in_force,limit_price:t.limit_price,stop_price:t.stop_price,price_effect:t.price_effect,legs:t.legs},c=yield r.placeMlegOrder(t.userId,t.userSecret,t.accountId,s,a);return(0,i.createRequestFunction)(c,n.default,o.BASE_PATH,e)})},placeOrder(t,a){return s(this,void 0,void 0,function*(){const s={wait_to_confirm:t.wait_to_confirm},c=yield r.placeOrder(t.tradeId,t.userId,t.userSecret,s,a);return(0,i.createRequestFunction)(c,n.default,o.BASE_PATH,e)})},placeSimpleOrder(t,a){return s(this,void 0,void 0,function*(){const s={instrument:t.instrument,side:t.side,type:t.type,time_in_force:t.time_in_force,amount:t.amount,limit_price:t.limit_price,stop_price:t.stop_price,post_only:t.post_only,expiration_date:t.expiration_date},c=yield r.placeSimpleOrder(t.userId,t.userSecret,t.accountId,s,a);return(0,i.createRequestFunction)(c,n.default,o.BASE_PATH,e)})},previewSimpleOrder(t,a){return s(this,void 0,void 0,function*(){const s={instrument:t.instrument,side:t.side,type:t.type,time_in_force:t.time_in_force,amount:t.amount,limit_price:t.limit_price,stop_price:t.stop_price,post_only:t.post_only,expiration_date:t.expiration_date},c=yield r.previewSimpleOrder(t.userId,t.userSecret,t.accountId,s,a);return(0,i.createRequestFunction)(c,n.default,o.BASE_PATH,e)})},replaceOrder(t,a){return s(this,void 0,void 0,function*(){const s={action:t.action,order_type:t.order_type,time_in_force:t.time_in_force,price:t.price,symbol:t.symbol,stop:t.stop,units:t.units},c=yield r.replaceOrder(t.accountId,t.brokerageOrderId,t.userId,t.userSecret,s,a);return(0,i.createRequestFunction)(c,n.default,o.BASE_PATH,e)})},searchCryptocurrencyPairInstruments(t,a){return s(this,void 0,void 0,function*(){const s=yield r.searchCryptocurrencyPairInstruments(t.userId,t.userSecret,t.accountId,t.base,t.quote,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})}}},t.TradingApiFactory=function(e,r,s){const n=(0,t.TradingApiFp)(e);return{cancelOrder:(e,t)=>n.cancelOrder(e,t).then(e=>e(s,r)),cancelUserAccountOrder:(e,t)=>n.cancelUserAccountOrder(e,t).then(e=>e(s,r)),getCryptocurrencyPairQuote:(e,t)=>n.getCryptocurrencyPairQuote(e,t).then(e=>e(s,r)),getOrderImpact:(e,t)=>n.getOrderImpact(e,t).then(e=>e(s,r)),getUserAccountQuotes:(e,t)=>n.getUserAccountQuotes(e,t).then(e=>e(s,r)),placeBracketOrder:(e,t)=>n.placeBracketOrder(e,t).then(e=>e(s,r)),placeForceOrder:(e,t)=>n.placeForceOrder(e,t).then(e=>e(s,r)),placeMlegOrder:(e,t)=>n.placeMlegOrder(e,t).then(e=>e(s,r)),placeOrder:(e,t)=>n.placeOrder(e,t).then(e=>e(s,r)),placeSimpleOrder:(e,t)=>n.placeSimpleOrder(e,t).then(e=>e(s,r)),previewSimpleOrder:(e,t)=>n.previewSimpleOrder(e,t).then(e=>e(s,r)),replaceOrder:(e,t)=>n.replaceOrder(e,t).then(e=>e(s,r)),searchCryptocurrencyPairInstruments:(e,t)=>n.searchCryptocurrencyPairInstruments(e,t).then(e=>e(s,r))}};class c extends o.BaseAPI{cancelOrder(e,r){return(0,t.TradingApiFp)(this.configuration).cancelOrder(e,r).then(e=>e(this.axios,this.basePath))}cancelUserAccountOrder(e,r){return(0,t.TradingApiFp)(this.configuration).cancelUserAccountOrder(e,r).then(e=>e(this.axios,this.basePath))}getCryptocurrencyPairQuote(e,r){return(0,t.TradingApiFp)(this.configuration).getCryptocurrencyPairQuote(e,r).then(e=>e(this.axios,this.basePath))}getOrderImpact(e,r){return(0,t.TradingApiFp)(this.configuration).getOrderImpact(e,r).then(e=>e(this.axios,this.basePath))}getUserAccountQuotes(e,r){return(0,t.TradingApiFp)(this.configuration).getUserAccountQuotes(e,r).then(e=>e(this.axios,this.basePath))}placeBracketOrder(e,r){return(0,t.TradingApiFp)(this.configuration).placeBracketOrder(e,r).then(e=>e(this.axios,this.basePath))}placeForceOrder(e,r){return(0,t.TradingApiFp)(this.configuration).placeForceOrder(e,r).then(e=>e(this.axios,this.basePath))}placeMlegOrder(e,r){return(0,t.TradingApiFp)(this.configuration).placeMlegOrder(e,r).then(e=>e(this.axios,this.basePath))}placeOrder(e,r){return(0,t.TradingApiFp)(this.configuration).placeOrder(e,r).then(e=>e(this.axios,this.basePath))}placeSimpleOrder(e,r){return(0,t.TradingApiFp)(this.configuration).placeSimpleOrder(e,r).then(e=>e(this.axios,this.basePath))}previewSimpleOrder(e,r){return(0,t.TradingApiFp)(this.configuration).previewSimpleOrder(e,r).then(e=>e(this.axios,this.basePath))}replaceOrder(e,r){return(0,t.TradingApiFp)(this.configuration).replaceOrder(e,r).then(e=>e(this.axios,this.basePath))}searchCryptocurrencyPairInstruments(e,r){return(0,t.TradingApiFp)(this.configuration).searchCryptocurrencyPairInstruments(e,r).then(e=>e(this.axios,this.basePath))}}t.TradingApiGenerated=c},7602:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7615:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7637:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7707:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7854:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7867:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7906:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8015:function(e,t,r){"use strict";var s=this&&this.__awaiter||function(e,t,r,s){return new(r||(r=Promise))(function(n,i){function o(e){try{c(s.next(e))}catch(e){i(e)}}function a(e){try{c(s.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(o,a)}c((s=s.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectionsApiGenerated=t.ConnectionsApiFactory=t.ConnectionsApiFp=t.ConnectionsApiAxiosParamCreator=void 0;const n=r(8451),i=r(5511),o=r(4467),a=r(4445);t.ConnectionsApiAxiosParamCreator=function(e){return{detailBrokerageAuthorization:(t,r,n,o={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("detailBrokerageAuthorization","authorizationId",t),(0,i.assertParamExists)("detailBrokerageAuthorization","userId",r),(0,i.assertParamExists)("detailBrokerageAuthorization","userSecret",n);const s="/authorizations/{authorizationId}".replace("{authorizationId}",encodeURIComponent(String(void 0!==t?t:"-authorizationId-"))),c=new URL(s,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"GET"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==r&&(p.userId=r),void 0!==n&&(p.userSecret=n);let h=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),h),o.headers),(0,a.requestBeforeHook)({queryParameters:p,requestConfig:d,path:s,configuration:e,pathTemplate:"/authorizations/{authorizationId}",httpMethod:"GET"}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}}),disableBrokerageAuthorization:(t,r,n,o={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("disableBrokerageAuthorization","authorizationId",t),(0,i.assertParamExists)("disableBrokerageAuthorization","userId",r),(0,i.assertParamExists)("disableBrokerageAuthorization","userSecret",n);const s="/authorizations/{authorizationId}/disable".replace("{authorizationId}",encodeURIComponent(String(void 0!==t?t:"-authorizationId-"))),c=new URL(s,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"POST"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==r&&(p.userId=r),void 0!==n&&(p.userSecret=n);let h=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),h),o.headers),(0,a.requestBeforeHook)({queryParameters:p,requestConfig:d,path:s,configuration:e,pathTemplate:"/authorizations/{authorizationId}/disable",httpMethod:"POST"}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}}),listBrokerageAuthorizations:(t,r,n={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("listBrokerageAuthorizations","userId",t),(0,i.assertParamExists)("listBrokerageAuthorizations","userSecret",r);const s="/authorizations",o=new URL(s,i.DUMMY_BASE_URL);let c;e&&(c=e.baseOptions);const u=Object.assign(Object.assign({method:"GET"},c),n),d=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},l={};yield(0,i.setApiKeyToObject)({object:l,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:d,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(l.userId=t),void 0!==r&&(l.userSecret=r);let p=c&&c.headers?c.headers:{};return u.headers=Object.assign(Object.assign(Object.assign({},d),p),n.headers),(0,a.requestBeforeHook)({queryParameters:l,requestConfig:u,path:s,configuration:e,pathTemplate:"/authorizations",httpMethod:"GET"}),(0,i.setSearchParams)(o,l),{url:(0,i.toPathString)(o),options:u}}),refreshBrokerageAuthorization:(t,r,n,o={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("refreshBrokerageAuthorization","authorizationId",t),(0,i.assertParamExists)("refreshBrokerageAuthorization","userId",r),(0,i.assertParamExists)("refreshBrokerageAuthorization","userSecret",n);const s="/authorizations/{authorizationId}/refresh".replace("{authorizationId}",encodeURIComponent(String(void 0!==t?t:"-authorizationId-"))),c=new URL(s,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"POST"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==r&&(p.userId=r),void 0!==n&&(p.userSecret=n);let h=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),h),o.headers),(0,a.requestBeforeHook)({queryParameters:p,requestConfig:d,path:s,configuration:e,pathTemplate:"/authorizations/{authorizationId}/refresh",httpMethod:"POST"}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}}),removeBrokerageAuthorization:(t,r,n,o={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("removeBrokerageAuthorization","authorizationId",t),(0,i.assertParamExists)("removeBrokerageAuthorization","userId",r),(0,i.assertParamExists)("removeBrokerageAuthorization","userSecret",n);const s="/authorizations/{authorizationId}".replace("{authorizationId}",encodeURIComponent(String(void 0!==t?t:"-authorizationId-"))),c=new URL(s,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"DELETE"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==r&&(p.userId=r),void 0!==n&&(p.userSecret=n);let h=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),h),o.headers),(0,a.requestBeforeHook)({queryParameters:p,requestConfig:d,path:s,configuration:e,pathTemplate:"/authorizations/{authorizationId}",httpMethod:"DELETE"}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}}),returnRates:(t,r,n,o={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("returnRates","userId",t),(0,i.assertParamExists)("returnRates","userSecret",r),(0,i.assertParamExists)("returnRates","authorizationId",n);const s="/authorizations/{authorizationId}/returnRates".replace("{authorizationId}",encodeURIComponent(String(void 0!==n?n:"-authorizationId-"))),c=new URL(s,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"GET"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(p.userId=t),void 0!==r&&(p.userSecret=r);let h=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),h),o.headers),(0,a.requestBeforeHook)({queryParameters:p,requestConfig:d,path:s,configuration:e,pathTemplate:"/authorizations/{authorizationId}/returnRates",httpMethod:"GET"}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}}),sessionEvents:(t,r,n,o={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("sessionEvents","partnerClientId",t);const s="/sessionEvents",c=new URL(s,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"GET"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(p.PartnerClientId=t),void 0!==r&&(p.userId=r),void 0!==n&&(p.sessionId=n);let h=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),h),o.headers),(0,a.requestBeforeHook)({queryParameters:p,requestConfig:d,path:s,configuration:e,pathTemplate:"/sessionEvents",httpMethod:"GET"}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}})}},t.ConnectionsApiFp=function(e){const r=(0,t.ConnectionsApiAxiosParamCreator)(e);return{detailBrokerageAuthorization(t,a){return s(this,void 0,void 0,function*(){const s=yield r.detailBrokerageAuthorization(t.authorizationId,t.userId,t.userSecret,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},disableBrokerageAuthorization(t,a){return s(this,void 0,void 0,function*(){const s=yield r.disableBrokerageAuthorization(t.authorizationId,t.userId,t.userSecret,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},listBrokerageAuthorizations(t,a){return s(this,void 0,void 0,function*(){const s=yield r.listBrokerageAuthorizations(t.userId,t.userSecret,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},refreshBrokerageAuthorization(t,a){return s(this,void 0,void 0,function*(){const s=yield r.refreshBrokerageAuthorization(t.authorizationId,t.userId,t.userSecret,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},removeBrokerageAuthorization(t,a){return s(this,void 0,void 0,function*(){const s=yield r.removeBrokerageAuthorization(t.authorizationId,t.userId,t.userSecret,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},returnRates(t,a){return s(this,void 0,void 0,function*(){const s=yield r.returnRates(t.userId,t.userSecret,t.authorizationId,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},sessionEvents(t,a){return s(this,void 0,void 0,function*(){const s=yield r.sessionEvents(t.partnerClientId,t.userId,t.sessionId,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})}}},t.ConnectionsApiFactory=function(e,r,s){const n=(0,t.ConnectionsApiFp)(e);return{detailBrokerageAuthorization:(e,t)=>n.detailBrokerageAuthorization(e,t).then(e=>e(s,r)),disableBrokerageAuthorization:(e,t)=>n.disableBrokerageAuthorization(e,t).then(e=>e(s,r)),listBrokerageAuthorizations:(e,t)=>n.listBrokerageAuthorizations(e,t).then(e=>e(s,r)),refreshBrokerageAuthorization:(e,t)=>n.refreshBrokerageAuthorization(e,t).then(e=>e(s,r)),removeBrokerageAuthorization:(e,t)=>n.removeBrokerageAuthorization(e,t).then(e=>e(s,r)),returnRates:(e,t)=>n.returnRates(e,t).then(e=>e(s,r)),sessionEvents:(e,t)=>n.sessionEvents(e,t).then(e=>e(s,r))}};class c extends o.BaseAPI{detailBrokerageAuthorization(e,r){return(0,t.ConnectionsApiFp)(this.configuration).detailBrokerageAuthorization(e,r).then(e=>e(this.axios,this.basePath))}disableBrokerageAuthorization(e,r){return(0,t.ConnectionsApiFp)(this.configuration).disableBrokerageAuthorization(e,r).then(e=>e(this.axios,this.basePath))}listBrokerageAuthorizations(e,r){return(0,t.ConnectionsApiFp)(this.configuration).listBrokerageAuthorizations(e,r).then(e=>e(this.axios,this.basePath))}refreshBrokerageAuthorization(e,r){return(0,t.ConnectionsApiFp)(this.configuration).refreshBrokerageAuthorization(e,r).then(e=>e(this.axios,this.basePath))}removeBrokerageAuthorization(e,r){return(0,t.ConnectionsApiFp)(this.configuration).removeBrokerageAuthorization(e,r).then(e=>e(this.axios,this.basePath))}returnRates(e,r){return(0,t.ConnectionsApiFp)(this.configuration).returnRates(e,r).then(e=>e(this.axios,this.basePath))}sessionEvents(e,r){return(0,t.ConnectionsApiFp)(this.configuration).sessionEvents(e,r).then(e=>e(this.axios,this.basePath))}}t.ConnectionsApiGenerated=c},8032:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8038:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8066:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8190:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,s,n)}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),n=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.AuthenticationApi=void 0;const i=r(3814);n(r(3814),t);class o extends i.AuthenticationApiGenerated{}t.AuthenticationApi=o},8222:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8270:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,s,n)}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),n=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.AccountInformationApi=void 0;const i=r(9190);n(r(9190),t);class o extends i.AccountInformationApiGenerated{}t.AccountInformationApi=o},8305:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8329:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8451:(e,t,r)=>{"use strict";function s(e,t){return function(){return e.apply(t,arguments)}}const{toString:n}=Object.prototype,{getPrototypeOf:i}=Object,{iterator:o,toStringTag:a}=Symbol,c=(u=Object.create(null),e=>{const t=n.call(e);return u[t]||(u[t]=t.slice(8,-1).toLowerCase())});var u;const d=e=>(e=e.toLowerCase(),t=>c(t)===e),l=e=>t=>typeof t===e,{isArray:p}=Array,h=l("undefined"),g=d("ArrayBuffer"),f=l("string"),y=l("function"),m=l("number"),b=e=>null!==e&&"object"==typeof e,O=e=>{if("object"!==c(e))return!1;const t=i(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||a in e||o in e)},A=d("Date"),P=d("File"),j=d("Blob"),v=d("FileList"),S=d("URLSearchParams"),[_,T,I,k]=["ReadableStream","Request","Response","Headers"].map(d);function E(e,t,{allOwnKeys:r=!1}={}){if(null==e)return;let s,n;if("object"!=typeof e&&(e=[e]),p(e))for(s=0,n=e.length;s<n;s++)t.call(null,e[s],s,e);else{const n=r?Object.getOwnPropertyNames(e):Object.keys(e),i=n.length;let o;for(s=0;s<i;s++)o=n[s],t.call(null,e[o],o,e)}}function U(e,t){t=t.toLowerCase();const r=Object.keys(e);let s,n=r.length;for(;n-- >0;)if(s=r[n],t===s.toLowerCase())return s;return null}const R="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:r.g,w=e=>!h(e)&&e!==R,B=(x="undefined"!=typeof Uint8Array&&i(Uint8Array),e=>x&&e instanceof x);var x;const M=d("HTMLFormElement"),C=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),q=d("RegExp"),N=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),s={};E(r,(r,n)=>{let i;!1!==(i=t(r,n,e))&&(s[n]=i||r)}),Object.defineProperties(e,s)},F=d("AsyncFunction"),D=(K="function"==typeof setImmediate,L=y(R.postMessage),K?setImmediate:L?(H=`axios@${Math.random()}`,z=[],R.addEventListener("message",({source:e,data:t})=>{e===R&&t===H&&z.length&&z.shift()()},!1),e=>{z.push(e),R.postMessage(H,"*")}):e=>setTimeout(e));var K,L,H,z;const G="undefined"!=typeof queueMicrotask?queueMicrotask.bind(R):"undefined"!=typeof process&&process.nextTick||D;var Y={isArray:p,isArrayBuffer:g,isBuffer:function(e){return null!==e&&!h(e)&&null!==e.constructor&&!h(e.constructor)&&y(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||y(e.append)&&("formdata"===(t=c(e))||"object"===t&&y(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&g(e.buffer),t},isString:f,isNumber:m,isBoolean:e=>!0===e||!1===e,isObject:b,isPlainObject:O,isReadableStream:_,isRequest:T,isResponse:I,isHeaders:k,isUndefined:h,isDate:A,isFile:P,isBlob:j,isRegExp:q,isFunction:y,isStream:e=>b(e)&&y(e.pipe),isURLSearchParams:S,isTypedArray:B,isFileList:v,forEach:E,merge:function e(){const{caseless:t}=w(this)&&this||{},r={},s=(s,n)=>{const i=t&&U(r,n)||n;O(r[i])&&O(s)?r[i]=e(r[i],s):O(s)?r[i]=e({},s):p(s)?r[i]=s.slice():r[i]=s};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&E(arguments[e],s);return r},extend:(e,t,r,{allOwnKeys:n}={})=>(E(t,(t,n)=>{r&&y(t)?e[n]=s(t,r):e[n]=t},{allOwnKeys:n}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,r,s)=>{e.prototype=Object.create(t.prototype,s),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,r,s)=>{let n,o,a;const c={};if(t=t||{},null==e)return t;do{for(n=Object.getOwnPropertyNames(e),o=n.length;o-- >0;)a=n[o],s&&!s(a,e,t)||c[a]||(t[a]=e[a],c[a]=!0);e=!1!==r&&i(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:c,kindOfTest:d,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;const s=e.indexOf(t,r);return-1!==s&&s===r},toArray:e=>{if(!e)return null;if(p(e))return e;let t=e.length;if(!m(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{const r=(e&&e[o]).call(e);let s;for(;(s=r.next())&&!s.done;){const r=s.value;t.call(e,r[0],r[1])}},matchAll:(e,t)=>{let r;const s=[];for(;null!==(r=e.exec(t));)s.push(r);return s},isHTMLForm:M,hasOwnProperty:C,hasOwnProp:C,reduceDescriptors:N,freezeMethods:e=>{N(e,(t,r)=>{if(y(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const s=e[r];y(s)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")}))})},toObjectSet:(e,t)=>{const r={},s=e=>{e.forEach(e=>{r[e]=!0})};return p(e)?s(e):s(String(e).split(t)),r},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,r){return t.toUpperCase()+r}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:U,global:R,isContextDefined:w,isSpecCompliantForm:function(e){return!!(e&&y(e.append)&&"FormData"===e[a]&&e[o])},toJSONObject:e=>{const t=new Array(10),r=(e,s)=>{if(b(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[s]=e;const n=p(e)?[]:{};return E(e,(e,t)=>{const i=r(e,s+1);!h(i)&&(n[t]=i)}),t[s]=void 0,n}}return e};return r(e,0)},isAsyncFn:F,isThenable:e=>e&&(b(e)||y(e))&&y(e.then)&&y(e.catch),setImmediate:D,asap:G,isIterable:e=>null!=e&&y(e[o])};function Q(e,t,r,s,n){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),s&&(this.request=s),n&&(this.response=n,this.status=n.status?n.status:null)}Y.inherits(Q,Error,{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:Y.toJSONObject(this.config),code:this.code,status:this.status}}});const J=Q.prototype,$={};function W(e){return Y.isPlainObject(e)||Y.isArray(e)}function V(e){return Y.endsWith(e,"[]")?e.slice(0,-2):e}function X(e,t,r){return e?e.concat(t).map(function(e,t){return e=V(e),!r&&t?"["+e+"]":e}).join(r?".":""):t}["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{$[e]={value:e}}),Object.defineProperties(Q,$),Object.defineProperty(J,"isAxiosError",{value:!0}),Q.from=(e,t,r,s,n,i)=>{const o=Object.create(J);return Y.toFlatObject(e,o,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e),Q.call(o,e.message,t,r,s,n),o.cause=e,o.name=e.name,i&&Object.assign(o,i),o};const Z=Y.toFlatObject(Y,{},null,function(e){return/^is[A-Z]/.test(e)});function ee(e,t,r){if(!Y.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const s=(r=Y.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!Y.isUndefined(t[e])})).metaTokens,n=r.visitor||u,i=r.dots,o=r.indexes,a=(r.Blob||"undefined"!=typeof Blob&&Blob)&&Y.isSpecCompliantForm(t);if(!Y.isFunction(n))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(Y.isDate(e))return e.toISOString();if(Y.isBoolean(e))return e.toString();if(!a&&Y.isBlob(e))throw new Q("Blob is not supported. Use a Buffer instead.");return Y.isArrayBuffer(e)||Y.isTypedArray(e)?a&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,r,n){let a=e;if(e&&!n&&"object"==typeof e)if(Y.endsWith(r,"{}"))r=s?r:r.slice(0,-2),e=JSON.stringify(e);else if(Y.isArray(e)&&function(e){return Y.isArray(e)&&!e.some(W)}(e)||(Y.isFileList(e)||Y.endsWith(r,"[]"))&&(a=Y.toArray(e)))return r=V(r),a.forEach(function(e,s){!Y.isUndefined(e)&&null!==e&&t.append(!0===o?X([r],s,i):null===o?r:r+"[]",c(e))}),!1;return!!W(e)||(t.append(X(n,r,i),c(e)),!1)}const d=[],l=Object.assign(Z,{defaultVisitor:u,convertValue:c,isVisitable:W});if(!Y.isObject(e))throw new TypeError("data must be an object");return function e(r,s){if(!Y.isUndefined(r)){if(-1!==d.indexOf(r))throw Error("Circular reference detected in "+s.join("."));d.push(r),Y.forEach(r,function(r,i){!0===(!(Y.isUndefined(r)||null===r)&&n.call(t,r,Y.isString(i)?i.trim():i,s,l))&&e(r,s?s.concat(i):[i])}),d.pop()}}(e),t}function te(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function re(e,t){this._pairs=[],e&&ee(e,this,t)}const se=re.prototype;function ne(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ie(e,t,r){if(!t)return e;const s=r&&r.encode||ne;Y.isFunction(r)&&(r={serialize:r});const n=r&&r.serialize;let i;if(i=n?n(t,r):Y.isURLSearchParams(t)?t.toString():new re(t,r).toString(s),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}se.append=function(e,t){this._pairs.push([e,t])},se.toString=function(e){const t=e?function(t){return e.call(this,t,te)}:te;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};var oe=class{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){Y.forEach(this.handlers,function(t){null!==t&&e(t)})}},ae={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ce={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:re,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const ue="undefined"!=typeof window&&"undefined"!=typeof document,de="object"==typeof navigator&&navigator||void 0,le=ue&&(!de||["ReactNative","NativeScript","NS"].indexOf(de.product)<0),pe="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,he=ue&&window.location.href||"http://localhost";var ge={...Object.freeze({__proto__:null,hasBrowserEnv:ue,hasStandardBrowserWebWorkerEnv:pe,hasStandardBrowserEnv:le,navigator:de,origin:he}),...ce};function fe(e){function t(e,r,s,n){let i=e[n++];if("__proto__"===i)return!0;const o=Number.isFinite(+i),a=n>=e.length;return i=!i&&Y.isArray(s)?s.length:i,a?(Y.hasOwnProp(s,i)?s[i]=[s[i],r]:s[i]=r,!o):(s[i]&&Y.isObject(s[i])||(s[i]=[]),t(e,r,s[i],n)&&Y.isArray(s[i])&&(s[i]=function(e){const t={},r=Object.keys(e);let s;const n=r.length;let i;for(s=0;s<n;s++)i=r[s],t[i]=e[i];return t}(s[i])),!o)}if(Y.isFormData(e)&&Y.isFunction(e.entries)){const r={};return Y.forEachEntry(e,(e,s)=>{t(function(e){return Y.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),s,r,0)}),r}return null}const ye={transitional:ae,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",s=r.indexOf("application/json")>-1,n=Y.isObject(e);if(n&&Y.isHTMLForm(e)&&(e=new FormData(e)),Y.isFormData(e))return s?JSON.stringify(fe(e)):e;if(Y.isArrayBuffer(e)||Y.isBuffer(e)||Y.isStream(e)||Y.isFile(e)||Y.isBlob(e)||Y.isReadableStream(e))return e;if(Y.isArrayBufferView(e))return e.buffer;if(Y.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(n){if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return ee(e,new ge.classes.URLSearchParams,Object.assign({visitor:function(e,t,r,s){return ge.isNode&&Y.isBuffer(e)?(this.append(t,e.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=Y.isFileList(e))||r.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return ee(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return n||s?(t.setContentType("application/json",!1),function(e){if(Y.isString(e))try{return(0,JSON.parse)(e),Y.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||ye.transitional,r=t&&t.forcedJSONParsing,s="json"===this.responseType;if(Y.isResponse(e)||Y.isReadableStream(e))return e;if(e&&Y.isString(e)&&(r&&!this.responseType||s)){const r=!(t&&t.silentJSONParsing)&&s;try{return JSON.parse(e)}catch(e){if(r){if("SyntaxError"===e.name)throw Q.from(e,Q.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ge.classes.FormData,Blob:ge.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Y.forEach(["delete","get","head","post","put","patch"],e=>{ye.headers[e]={}});var me=ye;const be=Y.toObjectSet(["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"]),Oe=Symbol("internals");function Ae(e){return e&&String(e).trim().toLowerCase()}function Pe(e){return!1===e||null==e?e:Y.isArray(e)?e.map(Pe):String(e)}function je(e,t,r,s,n){return Y.isFunction(s)?s.call(this,t,r):(n&&(t=r),Y.isString(t)?Y.isString(s)?-1!==t.indexOf(s):Y.isRegExp(s)?s.test(t):void 0:void 0)}class ve{constructor(e){e&&this.set(e)}set(e,t,r){const s=this;function n(e,t,r){const n=Ae(t);if(!n)throw new Error("header name must be a non-empty string");const i=Y.findKey(s,n);(!i||void 0===s[i]||!0===r||void 0===r&&!1!==s[i])&&(s[i||t]=Pe(e))}const i=(e,t)=>Y.forEach(e,(e,r)=>n(e,r,t));if(Y.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(Y.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const t={};let r,s,n;return e&&e.split("\n").forEach(function(e){n=e.indexOf(":"),r=e.substring(0,n).trim().toLowerCase(),s=e.substring(n+1).trim(),!r||t[r]&&be[r]||("set-cookie"===r?t[r]?t[r].push(s):t[r]=[s]:t[r]=t[r]?t[r]+", "+s:s)}),t})(e),t);else if(Y.isObject(e)&&Y.isIterable(e)){let r,s,n={};for(const t of e){if(!Y.isArray(t))throw TypeError("Object iterator must return a key-value pair");n[s=t[0]]=(r=n[s])?Y.isArray(r)?[...r,t[1]]:[r,t[1]]:t[1]}i(n,t)}else null!=e&&n(t,e,r);return this}get(e,t){if(e=Ae(e)){const r=Y.findKey(this,e);if(r){const e=this[r];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=r.exec(e);)t[s[1]]=s[2];return t}(e);if(Y.isFunction(t))return t.call(this,e,r);if(Y.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Ae(e)){const r=Y.findKey(this,e);return!(!r||void 0===this[r]||t&&!je(0,this[r],r,t))}return!1}delete(e,t){const r=this;let s=!1;function n(e){if(e=Ae(e)){const n=Y.findKey(r,e);!n||t&&!je(0,r[n],n,t)||(delete r[n],s=!0)}}return Y.isArray(e)?e.forEach(n):n(e),s}clear(e){const t=Object.keys(this);let r=t.length,s=!1;for(;r--;){const n=t[r];e&&!je(0,this[n],n,e,!0)||(delete this[n],s=!0)}return s}normalize(e){const t=this,r={};return Y.forEach(this,(s,n)=>{const i=Y.findKey(r,n);if(i)return t[i]=Pe(s),void delete t[n];const o=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,r)=>t.toUpperCase()+r)}(n):String(n).trim();o!==n&&delete t[n],t[o]=Pe(s),r[o]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return Y.forEach(this,(r,s)=>{null!=r&&!1!==r&&(t[s]=e&&Y.isArray(r)?r.join(", "):r)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const r=new this(e);return t.forEach(e=>r.set(e)),r}static accessor(e){const t=(this[Oe]=this[Oe]={accessors:{}}).accessors,r=this.prototype;function s(e){const s=Ae(e);t[s]||(function(e,t){const r=Y.toCamelCase(" "+t);["get","set","has"].forEach(s=>{Object.defineProperty(e,s+r,{value:function(e,r,n){return this[s].call(this,t,e,r,n)},configurable:!0})})}(r,e),t[s]=!0)}return Y.isArray(e)?e.forEach(s):s(e),this}}ve.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Y.reduceDescriptors(ve.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}}),Y.freezeMethods(ve);var Se=ve;function _e(e,t){const r=this||me,s=t||r,n=Se.from(s.headers);let i=s.data;return Y.forEach(e,function(e){i=e.call(r,i,n.normalize(),t?t.status:void 0)}),n.normalize(),i}function Te(e){return!(!e||!e.__CANCEL__)}function Ie(e,t,r){Q.call(this,null==e?"canceled":e,Q.ERR_CANCELED,t,r),this.name="CanceledError"}function ke(e,t,r){const s=r.config.validateStatus;r.status&&s&&!s(r.status)?t(new Q("Request failed with status code "+r.status,[Q.ERR_BAD_REQUEST,Q.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}Y.inherits(Ie,Q,{__CANCEL__:!0});const Ee=(e,t,r=3)=>{let s=0;const n=function(e,t){e=e||10;const r=new Array(e),s=new Array(e);let n,i=0,o=0;return t=void 0!==t?t:1e3,function(a){const c=Date.now(),u=s[o];n||(n=c),r[i]=a,s[i]=c;let d=o,l=0;for(;d!==i;)l+=r[d++],d%=e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),c-n<t)return;const p=u&&c-u;return p?Math.round(1e3*l/p):void 0}}(50,250);return function(e,t){let r,s,n=0,i=1e3/t;const o=(t,i=Date.now())=>{n=i,r=null,s&&(clearTimeout(s),s=null),e.apply(null,t)};return[(...e)=>{const t=Date.now(),a=t-n;a>=i?o(e,t):(r=e,s||(s=setTimeout(()=>{s=null,o(r)},i-a)))},()=>r&&o(r)]}(r=>{const i=r.loaded,o=r.lengthComputable?r.total:void 0,a=i-s,c=n(a);s=i,e({loaded:i,total:o,progress:o?i/o:void 0,bytes:a,rate:c||void 0,estimated:c&&o&&i<=o?(o-i)/c:void 0,event:r,lengthComputable:null!=o,[t?"download":"upload"]:!0})},r)},Ue=(e,t)=>{const r=null!=e;return[s=>t[0]({lengthComputable:r,total:e,loaded:s}),t[1]]},Re=e=>(...t)=>Y.asap(()=>e(...t));var we=ge.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,ge.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(ge.origin),ge.navigator&&/(msie|trident)/i.test(ge.navigator.userAgent)):()=>!0,Be=ge.hasStandardBrowserEnv?{write(e,t,r,s,n,i){const o=[e+"="+encodeURIComponent(t)];Y.isNumber(r)&&o.push("expires="+new Date(r).toGMTString()),Y.isString(s)&&o.push("path="+s),Y.isString(n)&&o.push("domain="+n),!0===i&&o.push("secure"),document.cookie=o.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function xe(e,t,r){let s=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&(s||0==r)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Me=e=>e instanceof Se?{...e}:e;function Ce(e,t){t=t||{};const r={};function s(e,t,r,s){return Y.isPlainObject(e)&&Y.isPlainObject(t)?Y.merge.call({caseless:s},e,t):Y.isPlainObject(t)?Y.merge({},t):Y.isArray(t)?t.slice():t}function n(e,t,r,n){return Y.isUndefined(t)?Y.isUndefined(e)?void 0:s(void 0,e,0,n):s(e,t,0,n)}function i(e,t){if(!Y.isUndefined(t))return s(void 0,t)}function o(e,t){return Y.isUndefined(t)?Y.isUndefined(e)?void 0:s(void 0,e):s(void 0,t)}function a(r,n,i){return i in t?s(r,n):i in e?s(void 0,r):void 0}const c={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:a,headers:(e,t,r)=>n(Me(e),Me(t),0,!0)};return Y.forEach(Object.keys(Object.assign({},e,t)),function(s){const i=c[s]||n,o=i(e[s],t[s],s);Y.isUndefined(o)&&i!==a||(r[s]=o)}),r}var qe=e=>{const t=Ce({},e);let r,{data:s,withXSRFToken:n,xsrfHeaderName:i,xsrfCookieName:o,headers:a,auth:c}=t;if(t.headers=a=Se.from(a),t.url=ie(xe(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),c&&a.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),Y.isFormData(s))if(ge.hasStandardBrowserEnv||ge.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(!1!==(r=a.getContentType())){const[e,...t]=r?r.split(";").map(e=>e.trim()).filter(Boolean):[];a.setContentType([e||"multipart/form-data",...t].join("; "))}if(ge.hasStandardBrowserEnv&&(n&&Y.isFunction(n)&&(n=n(t)),n||!1!==n&&we(t.url))){const e=i&&o&&Be.read(o);e&&a.set(i,e)}return t},Ne="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,r){const s=qe(e);let n=s.data;const i=Se.from(s.headers).normalize();let o,a,c,u,d,{responseType:l,onUploadProgress:p,onDownloadProgress:h}=s;function g(){u&&u(),d&&d(),s.cancelToken&&s.cancelToken.unsubscribe(o),s.signal&&s.signal.removeEventListener("abort",o)}let f=new XMLHttpRequest;function y(){if(!f)return;const s=Se.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders());ke(function(e){t(e),g()},function(e){r(e),g()},{data:l&&"text"!==l&&"json"!==l?f.response:f.responseText,status:f.status,statusText:f.statusText,headers:s,config:e,request:f}),f=null}f.open(s.method.toUpperCase(),s.url,!0),f.timeout=s.timeout,"onloadend"in f?f.onloadend=y:f.onreadystatechange=function(){f&&4===f.readyState&&(0!==f.status||f.responseURL&&0===f.responseURL.indexOf("file:"))&&setTimeout(y)},f.onabort=function(){f&&(r(new Q("Request aborted",Q.ECONNABORTED,e,f)),f=null)},f.onerror=function(){r(new Q("Network Error",Q.ERR_NETWORK,e,f)),f=null},f.ontimeout=function(){let t=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const n=s.transitional||ae;s.timeoutErrorMessage&&(t=s.timeoutErrorMessage),r(new Q(t,n.clarifyTimeoutError?Q.ETIMEDOUT:Q.ECONNABORTED,e,f)),f=null},void 0===n&&i.setContentType(null),"setRequestHeader"in f&&Y.forEach(i.toJSON(),function(e,t){f.setRequestHeader(t,e)}),Y.isUndefined(s.withCredentials)||(f.withCredentials=!!s.withCredentials),l&&"json"!==l&&(f.responseType=s.responseType),h&&([c,d]=Ee(h,!0),f.addEventListener("progress",c)),p&&f.upload&&([a,u]=Ee(p),f.upload.addEventListener("progress",a),f.upload.addEventListener("loadend",u)),(s.cancelToken||s.signal)&&(o=t=>{f&&(r(!t||t.type?new Ie(null,e,f):t),f.abort(),f=null)},s.cancelToken&&s.cancelToken.subscribe(o),s.signal&&(s.signal.aborted?o():s.signal.addEventListener("abort",o)));const m=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(s.url);m&&-1===ge.protocols.indexOf(m)?r(new Q("Unsupported protocol "+m+":",Q.ERR_BAD_REQUEST,e)):f.send(n||null)})},Fe=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let r,s=new AbortController;const n=function(e){if(!r){r=!0,o();const t=e instanceof Error?e:this.reason;s.abort(t instanceof Q?t:new Ie(t instanceof Error?t.message:t))}};let i=t&&setTimeout(()=>{i=null,n(new Q(`timeout ${t} of ms exceeded`,Q.ETIMEDOUT))},t);const o=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(n):e.removeEventListener("abort",n)}),e=null)};e.forEach(e=>e.addEventListener("abort",n));const{signal:a}=s;return a.unsubscribe=()=>Y.asap(o),a}};const De=function*(e,t){let r=e.byteLength;if(!t||r<t)return void(yield e);let s,n=0;for(;n<r;)s=n+t,yield e.slice(n,s),n=s},Ke=(e,t,r,s)=>{const n=async function*(e,t){for await(const r of async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:r}=await t.read();if(e)break;yield r}}finally{await t.cancel()}}(e))yield*De(r,t)}(e,t);let i,o=0,a=e=>{i||(i=!0,s&&s(e))};return new ReadableStream({async pull(e){try{const{done:t,value:s}=await n.next();if(t)return a(),void e.close();let i=s.byteLength;if(r){let e=o+=i;r(e)}e.enqueue(new Uint8Array(s))}catch(e){throw a(e),e}},cancel:e=>(a(e),n.return())},{highWaterMark:2})},Le="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,He=Le&&"function"==typeof ReadableStream,ze=Le&&("function"==typeof TextEncoder?(Ge=new TextEncoder,e=>Ge.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var Ge;const Ye=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},Qe=He&&Ye(()=>{let e=!1;const t=new Request(ge.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Je=He&&Ye(()=>Y.isReadableStream(new Response("").body)),$e={stream:Je&&(e=>e.body)};var We;Le&&(We=new Response,["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!$e[e]&&($e[e]=Y.isFunction(We[e])?t=>t[e]():(t,r)=>{throw new Q(`Response type '${e}' is not supported`,Q.ERR_NOT_SUPPORT,r)})}));const Ve={http:null,xhr:Ne,fetch:Le&&(async e=>{let{url:t,method:r,data:s,signal:n,cancelToken:i,timeout:o,onDownloadProgress:a,onUploadProgress:c,responseType:u,headers:d,withCredentials:l="same-origin",fetchOptions:p}=qe(e);u=u?(u+"").toLowerCase():"text";let h,g=Fe([n,i&&i.toAbortSignal()],o);const f=g&&g.unsubscribe&&(()=>{g.unsubscribe()});let y;try{if(c&&Qe&&"get"!==r&&"head"!==r&&0!==(y=await(async(e,t)=>{const r=Y.toFiniteNumber(e.getContentLength());return null==r?(async e=>{if(null==e)return 0;if(Y.isBlob(e))return e.size;if(Y.isSpecCompliantForm(e)){const t=new Request(ge.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return Y.isArrayBufferView(e)||Y.isArrayBuffer(e)?e.byteLength:(Y.isURLSearchParams(e)&&(e+=""),Y.isString(e)?(await ze(e)).byteLength:void 0)})(t):r})(d,s))){let e,r=new Request(t,{method:"POST",body:s,duplex:"half"});if(Y.isFormData(s)&&(e=r.headers.get("content-type"))&&d.setContentType(e),r.body){const[e,t]=Ue(y,Ee(Re(c)));s=Ke(r.body,65536,e,t)}}Y.isString(l)||(l=l?"include":"omit");const n="credentials"in Request.prototype;h=new Request(t,{...p,signal:g,method:r.toUpperCase(),headers:d.normalize().toJSON(),body:s,duplex:"half",credentials:n?l:void 0});let i=await fetch(h,p);const o=Je&&("stream"===u||"response"===u);if(Je&&(a||o&&f)){const e={};["status","statusText","headers"].forEach(t=>{e[t]=i[t]});const t=Y.toFiniteNumber(i.headers.get("content-length")),[r,s]=a&&Ue(t,Ee(Re(a),!0))||[];i=new Response(Ke(i.body,65536,r,()=>{s&&s(),f&&f()}),e)}u=u||"text";let m=await $e[Y.findKey($e,u)||"text"](i,e);return!o&&f&&f(),await new Promise((t,r)=>{ke(t,r,{data:m,headers:Se.from(i.headers),status:i.status,statusText:i.statusText,config:e,request:h})})}catch(t){if(f&&f(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new Q("Network Error",Q.ERR_NETWORK,e,h),{cause:t.cause||t});throw Q.from(t,t&&t.code,e,h)}})};Y.forEach(Ve,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});const Xe=e=>`- ${e}`,Ze=e=>Y.isFunction(e)||null===e||!1===e;var et=e=>{e=Y.isArray(e)?e:[e];const{length:t}=e;let r,s;const n={};for(let i=0;i<t;i++){let t;if(r=e[i],s=r,!Ze(r)&&(s=Ve[(t=String(r)).toLowerCase()],void 0===s))throw new Q(`Unknown adapter '${t}'`);if(s)break;n[t||"#"+i]=s}if(!s){const e=Object.entries(n).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new Q("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(Xe).join("\n"):" "+Xe(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return s};function tt(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ie(null,e)}function rt(e){return tt(e),e.headers=Se.from(e.headers),e.data=_e.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),et(e.adapter||me.adapter)(e).then(function(t){return tt(e),t.data=_e.call(e,e.transformResponse,t),t.headers=Se.from(t.headers),t},function(t){return Te(t)||(tt(e),t&&t.response&&(t.response.data=_e.call(e,e.transformResponse,t.response),t.response.headers=Se.from(t.response.headers))),Promise.reject(t)})}const st="1.10.0",nt={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{nt[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const it={};nt.transitional=function(e,t,r){function s(e,t){return"[Axios v"+st+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,n,i)=>{if(!1===e)throw new Q(s(n," has been removed"+(t?" in "+t:"")),Q.ERR_DEPRECATED);return t&&!it[n]&&(it[n]=!0,console.warn(s(n," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,n,i)}},nt.spelling=function(e){return(t,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};var ot={assertOptions:function(e,t,r){if("object"!=typeof e)throw new Q("options must be an object",Q.ERR_BAD_OPTION_VALUE);const s=Object.keys(e);let n=s.length;for(;n-- >0;){const i=s[n],o=t[i];if(o){const t=e[i],r=void 0===t||o(t,i,e);if(!0!==r)throw new Q("option "+i+" must be "+r,Q.ERR_BAD_OPTION_VALUE);continue}if(!0!==r)throw new Q("Unknown option "+i,Q.ERR_BAD_OPTION)}},validators:nt};const at=ot.validators;class ct{constructor(e){this.defaults=e||{},this.interceptors={request:new oe,response:new oe}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const r=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?r&&!String(e.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+r):e.stack=r}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Ce(this.defaults,t);const{transitional:r,paramsSerializer:s,headers:n}=t;void 0!==r&&ot.assertOptions(r,{silentJSONParsing:at.transitional(at.boolean),forcedJSONParsing:at.transitional(at.boolean),clarifyTimeoutError:at.transitional(at.boolean)},!1),null!=s&&(Y.isFunction(s)?t.paramsSerializer={serialize:s}:ot.assertOptions(s,{encode:at.function,serialize:at.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),ot.assertOptions(t,{baseUrl:at.spelling("baseURL"),withXsrfToken:at.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=n&&Y.merge(n.common,n[t.method]);n&&Y.forEach(["delete","get","head","post","put","patch","common"],e=>{delete n[e]}),t.headers=Se.concat(i,n);const o=[];let a=!0;this.interceptors.request.forEach(function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(a=a&&e.synchronous,o.unshift(e.fulfilled,e.rejected))});const c=[];let u;this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let d,l=0;if(!a){const e=[rt.bind(this),void 0];for(e.unshift.apply(e,o),e.push.apply(e,c),d=e.length,u=Promise.resolve(t);l<d;)u=u.then(e[l++],e[l++]);return u}d=o.length;let p=t;for(l=0;l<d;){const e=o[l++],t=o[l++];try{p=e(p)}catch(e){t.call(this,e);break}}try{u=rt.call(this,p)}catch(e){return Promise.reject(e)}for(l=0,d=c.length;l<d;)u=u.then(c[l++],c[l++]);return u}getUri(e){return ie(xe((e=Ce(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}Y.forEach(["delete","get","head","options"],function(e){ct.prototype[e]=function(t,r){return this.request(Ce(r||{},{method:e,url:t,data:(r||{}).data}))}}),Y.forEach(["post","put","patch"],function(e){function t(t){return function(r,s,n){return this.request(Ce(n||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:s}))}}ct.prototype[e]=t(),ct.prototype[e+"Form"]=t(!0)});var ut=ct;class dt{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(e){t=e});const r=this;this.promise.then(e=>{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null}),this.promise.then=e=>{let t;const s=new Promise(e=>{r.subscribe(e),t=e}).then(e);return s.cancel=function(){r.unsubscribe(t)},s},e(function(e,s,n){r.reason||(r.reason=new Ie(e,s,n),t(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new dt(function(t){e=t}),cancel:e}}}var lt=dt;const pt={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(pt).forEach(([e,t])=>{pt[t]=e});var ht=pt;const gt=function e(t){const r=new ut(t),n=s(ut.prototype.request,r);return Y.extend(n,ut.prototype,r,{allOwnKeys:!0}),Y.extend(n,r,null,{allOwnKeys:!0}),n.create=function(r){return e(Ce(t,r))},n}(me);gt.Axios=ut,gt.CanceledError=Ie,gt.CancelToken=lt,gt.isCancel=Te,gt.VERSION=st,gt.toFormData=ee,gt.AxiosError=Q,gt.Cancel=gt.CanceledError,gt.all=function(e){return Promise.all(e)},gt.spread=function(e){return function(t){return e.apply(null,t)}},gt.isAxiosError=function(e){return Y.isObject(e)&&!0===e.isAxiosError},gt.mergeConfig=Ce,gt.AxiosHeaders=Se,gt.formToJSON=e=>fe(Y.isHTMLForm(e)?new FormData(e):e),gt.getAdapter=et,gt.HttpStatusCode=ht,gt.default=gt,e.exports=gt},8486:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8564:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,s,n)}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),n=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}),n(r(8270),t),n(r(6227),t),n(r(8190),t),n(r(4375),t),n(r(4188),t),n(r(5198),t),n(r(3603),t),n(r(8660),t)},8660:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,s,n)}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),n=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.TransactionsAndReportingApi=void 0;const i=r(8936);n(r(8936),t);class o extends i.TransactionsAndReportingApiGenerated{}t.TransactionsAndReportingApi=o},8670:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8692:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,s,n)}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),n=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}),n(r(8564),t),n(r(6254),t),n(r(4251),t),n(r(6057),t),n(r(1934),t)},8747:function(e,t,r){"use strict";var s=this&&this.__awaiter||function(e,t,r,s){return new(r||(r=Promise))(function(n,i){function o(e){try{c(s.next(e))}catch(e){i(e)}}function a(e){try{c(s.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(o,a)}c((s=s.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.ApiStatusApiGenerated=t.ApiStatusApiFactory=t.ApiStatusApiFp=t.ApiStatusApiAxiosParamCreator=void 0;const n=r(8451),i=r(5511),o=r(4467),a=r(4445);t.ApiStatusApiAxiosParamCreator=function(e){return{check:(t={})=>s(this,void 0,void 0,function*(){const r=new URL("/",i.DUMMY_BASE_URL);let s;e&&(s=e.baseOptions);const n=Object.assign(Object.assign({method:"GET"},s),t),o=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},c={};let u=s&&s.headers?s.headers:{};return n.headers=Object.assign(Object.assign(Object.assign({},o),u),t.headers),(0,a.requestBeforeHook)({queryParameters:c,requestConfig:n,path:"/",configuration:e,pathTemplate:"/",httpMethod:"GET"}),(0,i.setSearchParams)(r,c),{url:(0,i.toPathString)(r),options:n}})}},t.ApiStatusApiFp=function(e){const r=(0,t.ApiStatusApiAxiosParamCreator)(e);return{check(t){return s(this,void 0,void 0,function*(){const s=yield r.check(t);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})}}},t.ApiStatusApiFactory=function(e,r,s){const n=(0,t.ApiStatusApiFp)(e);return{check:e=>n.check(e).then(e=>e(s,r))}};class c extends o.BaseAPI{check(e){return(0,t.ApiStatusApiFp)(this.configuration).check(e).then(e=>e(this.axios,this.basePath))}}t.ApiStatusApiGenerated=c},8818:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8847:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8902:function(e,t,r){"use strict";var s=this&&this.__awaiter||function(e,t,r,s){return new(r||(r=Promise))(function(n,i){function o(e){try{c(s.next(e))}catch(e){i(e)}}function a(e){try{c(s.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(o,a)}c((s=s.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.ReferenceDataApiGenerated=t.ReferenceDataApiFactory=t.ReferenceDataApiFp=t.ReferenceDataApiAxiosParamCreator=void 0;const n=r(8451),i=r(5511),o=r(4467),a=r(4445);t.ReferenceDataApiAxiosParamCreator=function(e){return{getCurrencyExchangeRatePair:(t,r={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("getCurrencyExchangeRatePair","currencyPair",t);const s="/currencies/rates/{currencyPair}".replace("{currencyPair}",encodeURIComponent(String(void 0!==t?t:"-currencyPair-"))),n=new URL(s,i.DUMMY_BASE_URL);let o;e&&(o=e.baseOptions);const c=Object.assign(Object.assign({method:"GET"},o),r),u=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},d={};yield(0,i.setApiKeyToObject)({object:d,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:u,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:d,key:"timestamp",keyParamName:"timestamp",configuration:e});let l=o&&o.headers?o.headers:{};return c.headers=Object.assign(Object.assign(Object.assign({},u),l),r.headers),(0,a.requestBeforeHook)({queryParameters:d,requestConfig:c,path:s,configuration:e,pathTemplate:"/currencies/rates/{currencyPair}",httpMethod:"GET"}),(0,i.setSearchParams)(n,d),{url:(0,i.toPathString)(n),options:c}}),getPartnerInfo:(t={})=>s(this,void 0,void 0,function*(){const r="/snapTrade/partners",s=new URL(r,i.DUMMY_BASE_URL);let n;e&&(n=e.baseOptions);const o=Object.assign(Object.assign({method:"GET"},n),t),c=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},u={};yield(0,i.setApiKeyToObject)({object:u,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:c,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:u,key:"timestamp",keyParamName:"timestamp",configuration:e});let d=n&&n.headers?n.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},c),d),t.headers),(0,a.requestBeforeHook)({queryParameters:u,requestConfig:o,path:r,configuration:e,pathTemplate:"/snapTrade/partners",httpMethod:"GET"}),(0,i.setSearchParams)(s,u),{url:(0,i.toPathString)(s),options:o}}),getSecurityTypes:(t={})=>s(this,void 0,void 0,function*(){const r="/securityTypes",s=new URL(r,i.DUMMY_BASE_URL);let n;e&&(n=e.baseOptions);const o=Object.assign(Object.assign({method:"GET"},n),t),c=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},u={};yield(0,i.setApiKeyToObject)({object:u,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:c,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:u,key:"timestamp",keyParamName:"timestamp",configuration:e});let d=n&&n.headers?n.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},c),d),t.headers),(0,a.requestBeforeHook)({queryParameters:u,requestConfig:o,path:r,configuration:e,pathTemplate:"/securityTypes",httpMethod:"GET"}),(0,i.setSearchParams)(s,u),{url:(0,i.toPathString)(s),options:o}}),getStockExchanges:(t={})=>s(this,void 0,void 0,function*(){const r="/exchanges",s=new URL(r,i.DUMMY_BASE_URL);let n;e&&(n=e.baseOptions);const o=Object.assign(Object.assign({method:"GET"},n),t),c=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},u={};yield(0,i.setApiKeyToObject)({object:u,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:c,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:u,key:"timestamp",keyParamName:"timestamp",configuration:e});let d=n&&n.headers?n.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},c),d),t.headers),(0,a.requestBeforeHook)({queryParameters:u,requestConfig:o,path:r,configuration:e,pathTemplate:"/exchanges",httpMethod:"GET"}),(0,i.setSearchParams)(s,u),{url:(0,i.toPathString)(s),options:o}}),getSymbols:(t,r={})=>s(this,void 0,void 0,function*(){const s="/symbols",n=new URL(s,i.DUMMY_BASE_URL);let o;e&&(o=e.baseOptions);const c=Object.assign(Object.assign({method:"POST"},o),r),u=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},d={};yield(0,i.setApiKeyToObject)({object:d,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:u,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:d,key:"timestamp",keyParamName:"timestamp",configuration:e}),u["Content-Type"]="application/json";let l=o&&o.headers?o.headers:{};return c.headers=Object.assign(Object.assign(Object.assign({},u),l),r.headers),(0,a.requestBeforeHook)({requestBody:t,queryParameters:d,requestConfig:c,path:s,configuration:e,pathTemplate:"/symbols",httpMethod:"POST"}),c.data=(0,i.serializeDataIfNeeded)(t,c,e),(0,i.setSearchParams)(n,d),{url:(0,i.toPathString)(n),options:c}}),getSymbolsByTicker:(t,r={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("getSymbolsByTicker","query",t);const s="/symbols/{query}".replace("{query}",encodeURIComponent(String(void 0!==t?t:"-query-"))),n=new URL(s,i.DUMMY_BASE_URL);let o;e&&(o=e.baseOptions);const c=Object.assign(Object.assign({method:"GET"},o),r),u=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},d={};yield(0,i.setApiKeyToObject)({object:d,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:u,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:d,key:"timestamp",keyParamName:"timestamp",configuration:e});let l=o&&o.headers?o.headers:{};return c.headers=Object.assign(Object.assign(Object.assign({},u),l),r.headers),(0,a.requestBeforeHook)({queryParameters:d,requestConfig:c,path:s,configuration:e,pathTemplate:"/symbols/{query}",httpMethod:"GET"}),(0,i.setSearchParams)(n,d),{url:(0,i.toPathString)(n),options:c}}),listAllBrokerageAuthorizationType:(t,r={})=>s(this,void 0,void 0,function*(){const s="/brokerageAuthorizationTypes",n=new URL(s,i.DUMMY_BASE_URL);let o;e&&(o=e.baseOptions);const c=Object.assign(Object.assign({method:"GET"},o),r),u=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},d={};yield(0,i.setApiKeyToObject)({object:d,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:u,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:d,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(d.brokerage=t);let l=o&&o.headers?o.headers:{};return c.headers=Object.assign(Object.assign(Object.assign({},u),l),r.headers),(0,a.requestBeforeHook)({queryParameters:d,requestConfig:c,path:s,configuration:e,pathTemplate:"/brokerageAuthorizationTypes",httpMethod:"GET"}),(0,i.setSearchParams)(n,d),{url:(0,i.toPathString)(n),options:c}}),listAllBrokerages:(t={})=>s(this,void 0,void 0,function*(){const r="/brokerages",s=new URL(r,i.DUMMY_BASE_URL);let n;e&&(n=e.baseOptions);const o=Object.assign(Object.assign({method:"GET"},n),t),c=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},u={};yield(0,i.setApiKeyToObject)({object:u,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:c,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:u,key:"timestamp",keyParamName:"timestamp",configuration:e});let d=n&&n.headers?n.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},c),d),t.headers),(0,a.requestBeforeHook)({queryParameters:u,requestConfig:o,path:r,configuration:e,pathTemplate:"/brokerages",httpMethod:"GET"}),(0,i.setSearchParams)(s,u),{url:(0,i.toPathString)(s),options:o}}),listAllCurrencies:(t={})=>s(this,void 0,void 0,function*(){const r="/currencies",s=new URL(r,i.DUMMY_BASE_URL);let n;e&&(n=e.baseOptions);const o=Object.assign(Object.assign({method:"GET"},n),t),c=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},u={};yield(0,i.setApiKeyToObject)({object:u,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:c,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:u,key:"timestamp",keyParamName:"timestamp",configuration:e});let d=n&&n.headers?n.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},c),d),t.headers),(0,a.requestBeforeHook)({queryParameters:u,requestConfig:o,path:r,configuration:e,pathTemplate:"/currencies",httpMethod:"GET"}),(0,i.setSearchParams)(s,u),{url:(0,i.toPathString)(s),options:o}}),listAllCurrenciesRates:(t={})=>s(this,void 0,void 0,function*(){const r="/currencies/rates",s=new URL(r,i.DUMMY_BASE_URL);let n;e&&(n=e.baseOptions);const o=Object.assign(Object.assign({method:"GET"},n),t),c=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},u={};yield(0,i.setApiKeyToObject)({object:u,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:c,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:u,key:"timestamp",keyParamName:"timestamp",configuration:e});let d=n&&n.headers?n.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},c),d),t.headers),(0,a.requestBeforeHook)({queryParameters:u,requestConfig:o,path:r,configuration:e,pathTemplate:"/currencies/rates",httpMethod:"GET"}),(0,i.setSearchParams)(s,u),{url:(0,i.toPathString)(s),options:o}}),symbolSearchUserAccount:(t,r,n,o,c={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("symbolSearchUserAccount","userId",t),(0,i.assertParamExists)("symbolSearchUserAccount","userSecret",r),(0,i.assertParamExists)("symbolSearchUserAccount","accountId",n);const s="/accounts/{accountId}/symbols".replace("{accountId}",encodeURIComponent(String(void 0!==n?n:"-accountId-"))),u=new URL(s,i.DUMMY_BASE_URL);let d;e&&(d=e.baseOptions);const l=Object.assign(Object.assign({method:"POST"},d),c),p=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},h={};yield(0,i.setApiKeyToObject)({object:h,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:h,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(h.userId=t),void 0!==r&&(h.userSecret=r),p["Content-Type"]="application/json";let g=d&&d.headers?d.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},p),g),c.headers),(0,a.requestBeforeHook)({requestBody:o,queryParameters:h,requestConfig:l,path:s,configuration:e,pathTemplate:"/accounts/{accountId}/symbols",httpMethod:"POST"}),l.data=(0,i.serializeDataIfNeeded)(o,l,e),(0,i.setSearchParams)(u,h),{url:(0,i.toPathString)(u),options:l}})}},t.ReferenceDataApiFp=function(e){const r=(0,t.ReferenceDataApiAxiosParamCreator)(e);return{getCurrencyExchangeRatePair(t,a){return s(this,void 0,void 0,function*(){const s=yield r.getCurrencyExchangeRatePair(t.currencyPair,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},getPartnerInfo(t){return s(this,void 0,void 0,function*(){const s=yield r.getPartnerInfo(t);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},getSecurityTypes(t){return s(this,void 0,void 0,function*(){const s=yield r.getSecurityTypes(t);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},getStockExchanges(t){return s(this,void 0,void 0,function*(){const s=yield r.getStockExchanges(t);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},getSymbols(t={},a){return s(this,void 0,void 0,function*(){const s={substring:t.substring},c=yield r.getSymbols(s,a);return(0,i.createRequestFunction)(c,n.default,o.BASE_PATH,e)})},getSymbolsByTicker(t,a){return s(this,void 0,void 0,function*(){const s=yield r.getSymbolsByTicker(t.query,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},listAllBrokerageAuthorizationType(t={},a){return s(this,void 0,void 0,function*(){const s=yield r.listAllBrokerageAuthorizationType(t.brokerage,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},listAllBrokerages(t){return s(this,void 0,void 0,function*(){const s=yield r.listAllBrokerages(t);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},listAllCurrencies(t){return s(this,void 0,void 0,function*(){const s=yield r.listAllCurrencies(t);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},listAllCurrenciesRates(t){return s(this,void 0,void 0,function*(){const s=yield r.listAllCurrenciesRates(t);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},symbolSearchUserAccount(t,a){return s(this,void 0,void 0,function*(){const s={substring:t.substring},c=yield r.symbolSearchUserAccount(t.userId,t.userSecret,t.accountId,s,a);return(0,i.createRequestFunction)(c,n.default,o.BASE_PATH,e)})}}},t.ReferenceDataApiFactory=function(e,r,s){const n=(0,t.ReferenceDataApiFp)(e);return{getCurrencyExchangeRatePair:(e,t)=>n.getCurrencyExchangeRatePair(e,t).then(e=>e(s,r)),getPartnerInfo:e=>n.getPartnerInfo(e).then(e=>e(s,r)),getSecurityTypes:e=>n.getSecurityTypes(e).then(e=>e(s,r)),getStockExchanges:e=>n.getStockExchanges(e).then(e=>e(s,r)),getSymbols:(e={},t)=>n.getSymbols(e,t).then(e=>e(s,r)),getSymbolsByTicker:(e,t)=>n.getSymbolsByTicker(e,t).then(e=>e(s,r)),listAllBrokerageAuthorizationType:(e={},t)=>n.listAllBrokerageAuthorizationType(e,t).then(e=>e(s,r)),listAllBrokerages:e=>n.listAllBrokerages(e).then(e=>e(s,r)),listAllCurrencies:e=>n.listAllCurrencies(e).then(e=>e(s,r)),listAllCurrenciesRates:e=>n.listAllCurrenciesRates(e).then(e=>e(s,r)),symbolSearchUserAccount:(e,t)=>n.symbolSearchUserAccount(e,t).then(e=>e(s,r))}};class c extends o.BaseAPI{getCurrencyExchangeRatePair(e,r){return(0,t.ReferenceDataApiFp)(this.configuration).getCurrencyExchangeRatePair(e,r).then(e=>e(this.axios,this.basePath))}getPartnerInfo(e){return(0,t.ReferenceDataApiFp)(this.configuration).getPartnerInfo(e).then(e=>e(this.axios,this.basePath))}getSecurityTypes(e){return(0,t.ReferenceDataApiFp)(this.configuration).getSecurityTypes(e).then(e=>e(this.axios,this.basePath))}getStockExchanges(e){return(0,t.ReferenceDataApiFp)(this.configuration).getStockExchanges(e).then(e=>e(this.axios,this.basePath))}getSymbols(e={},r){return(0,t.ReferenceDataApiFp)(this.configuration).getSymbols(e,r).then(e=>e(this.axios,this.basePath))}getSymbolsByTicker(e,r){return(0,t.ReferenceDataApiFp)(this.configuration).getSymbolsByTicker(e,r).then(e=>e(this.axios,this.basePath))}listAllBrokerageAuthorizationType(e={},r){return(0,t.ReferenceDataApiFp)(this.configuration).listAllBrokerageAuthorizationType(e,r).then(e=>e(this.axios,this.basePath))}listAllBrokerages(e){return(0,t.ReferenceDataApiFp)(this.configuration).listAllBrokerages(e).then(e=>e(this.axios,this.basePath))}listAllCurrencies(e){return(0,t.ReferenceDataApiFp)(this.configuration).listAllCurrencies(e).then(e=>e(this.axios,this.basePath))}listAllCurrenciesRates(e){return(0,t.ReferenceDataApiFp)(this.configuration).listAllCurrenciesRates(e).then(e=>e(this.axios,this.basePath))}symbolSearchUserAccount(e,r){return(0,t.ReferenceDataApiFp)(this.configuration).symbolSearchUserAccount(e,r).then(e=>e(this.axios,this.basePath))}}t.ReferenceDataApiGenerated=c},8911:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8927:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8936:function(e,t,r){"use strict";var s=this&&this.__awaiter||function(e,t,r,s){return new(r||(r=Promise))(function(n,i){function o(e){try{c(s.next(e))}catch(e){i(e)}}function a(e){try{c(s.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(o,a)}c((s=s.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.TransactionsAndReportingApiGenerated=t.TransactionsAndReportingApiFactory=t.TransactionsAndReportingApiFp=t.TransactionsAndReportingApiAxiosParamCreator=void 0;const n=r(8451),i=r(5511),o=r(4467),a=r(4445);t.TransactionsAndReportingApiAxiosParamCreator=function(e){return{getActivities:(t,r,n,o,c,u,d,l={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("getActivities","userId",t),(0,i.assertParamExists)("getActivities","userSecret",r);const s="/activities",p=new URL(s,i.DUMMY_BASE_URL);let h;e&&(h=e.baseOptions);const g=Object.assign(Object.assign({method:"GET"},h),l),f=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},y={};yield(0,i.setApiKeyToObject)({object:y,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:f,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:y,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==n&&(y.startDate=n instanceof Date?n.toISOString().substr(0,10):n),void 0!==o&&(y.endDate=o instanceof Date?o.toISOString().substr(0,10):o),void 0!==c&&(y.accounts=c),void 0!==u&&(y.brokerageAuthorizations=u),void 0!==d&&(y.type=d),void 0!==t&&(y.userId=t),void 0!==r&&(y.userSecret=r);let m=h&&h.headers?h.headers:{};return g.headers=Object.assign(Object.assign(Object.assign({},f),m),l.headers),(0,a.requestBeforeHook)({queryParameters:y,requestConfig:g,path:s,configuration:e,pathTemplate:"/activities",httpMethod:"GET"}),(0,i.setSearchParams)(p,y),{url:(0,i.toPathString)(p),options:g}}),getReportingCustomRange:(t,r,n,o,c,u,d,l={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("getReportingCustomRange","startDate",t),(0,i.assertParamExists)("getReportingCustomRange","endDate",r),(0,i.assertParamExists)("getReportingCustomRange","userId",n),(0,i.assertParamExists)("getReportingCustomRange","userSecret",o);const s="/performance/custom",p=new URL(s,i.DUMMY_BASE_URL);let h;e&&(h=e.baseOptions);const g=Object.assign(Object.assign({method:"GET"},h),l),f=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},y={};yield(0,i.setApiKeyToObject)({object:y,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:f,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:y,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(y.startDate=t instanceof Date?t.toISOString().substr(0,10):t),void 0!==r&&(y.endDate=r instanceof Date?r.toISOString().substr(0,10):r),void 0!==c&&(y.accounts=c),void 0!==u&&(y.detailed=u),void 0!==d&&(y.frequency=d),void 0!==n&&(y.userId=n),void 0!==o&&(y.userSecret=o);let m=h&&h.headers?h.headers:{};return g.headers=Object.assign(Object.assign(Object.assign({},f),m),l.headers),(0,a.requestBeforeHook)({queryParameters:y,requestConfig:g,path:s,configuration:e,pathTemplate:"/performance/custom",httpMethod:"GET"}),(0,i.setSearchParams)(p,y),{url:(0,i.toPathString)(p),options:g}})}},t.TransactionsAndReportingApiFp=function(e){const r=(0,t.TransactionsAndReportingApiAxiosParamCreator)(e);return{getActivities(t,a){return s(this,void 0,void 0,function*(){const s=yield r.getActivities(t.userId,t.userSecret,t.startDate,t.endDate,t.accounts,t.brokerageAuthorizations,t.type,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},getReportingCustomRange(t,a){return s(this,void 0,void 0,function*(){const s=yield r.getReportingCustomRange(t.startDate,t.endDate,t.userId,t.userSecret,t.accounts,t.detailed,t.frequency,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})}}},t.TransactionsAndReportingApiFactory=function(e,r,s){const n=(0,t.TransactionsAndReportingApiFp)(e);return{getActivities:(e,t)=>n.getActivities(e,t).then(e=>e(s,r)),getReportingCustomRange:(e,t)=>n.getReportingCustomRange(e,t).then(e=>e(s,r))}};class c extends o.BaseAPI{getActivities(e,r){return(0,t.TransactionsAndReportingApiFp)(this.configuration).getActivities(e,r).then(e=>e(this.axios,this.basePath))}getReportingCustomRange(e,r){return(0,t.TransactionsAndReportingApiFp)(this.configuration).getReportingCustomRange(e,r).then(e=>e(this.axios,this.basePath))}}t.TransactionsAndReportingApiGenerated=c},8951:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8996:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9032:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9168:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9190:function(e,t,r){"use strict";var s=this&&this.__awaiter||function(e,t,r,s){return new(r||(r=Promise))(function(n,i){function o(e){try{c(s.next(e))}catch(e){i(e)}}function a(e){try{c(s.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(o,a)}c((s=s.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.AccountInformationApiGenerated=t.AccountInformationApiFactory=t.AccountInformationApiFp=t.AccountInformationApiAxiosParamCreator=void 0;const n=r(8451),i=r(5511),o=r(4467),a=r(4445);t.AccountInformationApiAxiosParamCreator=function(e){return{getAccountActivities:(t,r,n,o,c,u,d,l,p={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("getAccountActivities","accountId",t),(0,i.assertParamExists)("getAccountActivities","userId",r),(0,i.assertParamExists)("getAccountActivities","userSecret",n);const s="/accounts/{accountId}/activities".replace("{accountId}",encodeURIComponent(String(void 0!==t?t:"-accountId-"))),h=new URL(s,i.DUMMY_BASE_URL);let g;e&&(g=e.baseOptions);const f=Object.assign(Object.assign({method:"GET"},g),p),y=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},m={};yield(0,i.setApiKeyToObject)({object:m,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:y,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:m,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==o&&(m.startDate=o instanceof Date?o.toISOString().substr(0,10):o),void 0!==c&&(m.endDate=c instanceof Date?c.toISOString().substr(0,10):c),void 0!==u&&(m.offset=u),void 0!==d&&(m.limit=d),void 0!==l&&(m.type=l),void 0!==r&&(m.userId=r),void 0!==n&&(m.userSecret=n);let b=g&&g.headers?g.headers:{};return f.headers=Object.assign(Object.assign(Object.assign({},y),b),p.headers),(0,a.requestBeforeHook)({queryParameters:m,requestConfig:f,path:s,configuration:e,pathTemplate:"/accounts/{accountId}/activities",httpMethod:"GET"}),(0,i.setSearchParams)(h,m),{url:(0,i.toPathString)(h),options:f}}),getAllUserHoldings:(t,r,n,o={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("getAllUserHoldings","userId",t),(0,i.assertParamExists)("getAllUserHoldings","userSecret",r);const s="/holdings",c=new URL(s,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"GET"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(p.userId=t),void 0!==r&&(p.userSecret=r),void 0!==n&&(p.brokerage_authorizations=n);let h=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),h),o.headers),(0,a.requestBeforeHook)({queryParameters:p,requestConfig:d,path:s,configuration:e,pathTemplate:"/holdings",httpMethod:"GET"}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}}),getUserAccountBalance:(t,r,n,o={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("getUserAccountBalance","userId",t),(0,i.assertParamExists)("getUserAccountBalance","userSecret",r),(0,i.assertParamExists)("getUserAccountBalance","accountId",n);const s="/accounts/{accountId}/balances".replace("{accountId}",encodeURIComponent(String(void 0!==n?n:"-accountId-"))),c=new URL(s,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"GET"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(p.userId=t),void 0!==r&&(p.userSecret=r);let h=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),h),o.headers),(0,a.requestBeforeHook)({queryParameters:p,requestConfig:d,path:s,configuration:e,pathTemplate:"/accounts/{accountId}/balances",httpMethod:"GET"}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}}),getUserAccountDetails:(t,r,n,o={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("getUserAccountDetails","userId",t),(0,i.assertParamExists)("getUserAccountDetails","userSecret",r),(0,i.assertParamExists)("getUserAccountDetails","accountId",n);const s="/accounts/{accountId}".replace("{accountId}",encodeURIComponent(String(void 0!==n?n:"-accountId-"))),c=new URL(s,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"GET"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(p.userId=t),void 0!==r&&(p.userSecret=r);let h=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),h),o.headers),(0,a.requestBeforeHook)({queryParameters:p,requestConfig:d,path:s,configuration:e,pathTemplate:"/accounts/{accountId}",httpMethod:"GET"}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}}),getUserAccountOrders:(t,r,n,o,c,u={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("getUserAccountOrders","userId",t),(0,i.assertParamExists)("getUserAccountOrders","userSecret",r),(0,i.assertParamExists)("getUserAccountOrders","accountId",n);const s="/accounts/{accountId}/orders".replace("{accountId}",encodeURIComponent(String(void 0!==n?n:"-accountId-"))),d=new URL(s,i.DUMMY_BASE_URL);let l;e&&(l=e.baseOptions);const p=Object.assign(Object.assign({method:"GET"},l),u),h=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},g={};yield(0,i.setApiKeyToObject)({object:g,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:h,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:g,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(g.userId=t),void 0!==r&&(g.userSecret=r),void 0!==o&&(g.state=o),void 0!==c&&(g.days=c);let f=l&&l.headers?l.headers:{};return p.headers=Object.assign(Object.assign(Object.assign({},h),f),u.headers),(0,a.requestBeforeHook)({queryParameters:g,requestConfig:p,path:s,configuration:e,pathTemplate:"/accounts/{accountId}/orders",httpMethod:"GET"}),(0,i.setSearchParams)(d,g),{url:(0,i.toPathString)(d),options:p}}),getUserAccountPositions:(t,r,n,o={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("getUserAccountPositions","userId",t),(0,i.assertParamExists)("getUserAccountPositions","userSecret",r),(0,i.assertParamExists)("getUserAccountPositions","accountId",n);const s="/accounts/{accountId}/positions".replace("{accountId}",encodeURIComponent(String(void 0!==n?n:"-accountId-"))),c=new URL(s,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"GET"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(p.userId=t),void 0!==r&&(p.userSecret=r);let h=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),h),o.headers),(0,a.requestBeforeHook)({queryParameters:p,requestConfig:d,path:s,configuration:e,pathTemplate:"/accounts/{accountId}/positions",httpMethod:"GET"}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}}),getUserAccountRecentOrders:(t,r,n,o,c={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("getUserAccountRecentOrders","userId",t),(0,i.assertParamExists)("getUserAccountRecentOrders","userSecret",r),(0,i.assertParamExists)("getUserAccountRecentOrders","accountId",n);const s="/accounts/{accountId}/recentOrders".replace("{accountId}",encodeURIComponent(String(void 0!==n?n:"-accountId-"))),u=new URL(s,i.DUMMY_BASE_URL);let d;e&&(d=e.baseOptions);const l=Object.assign(Object.assign({method:"GET"},d),c),p=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},h={};yield(0,i.setApiKeyToObject)({object:h,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:h,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(h.userId=t),void 0!==r&&(h.userSecret=r),void 0!==o&&(h.only_executed=o);let g=d&&d.headers?d.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},p),g),c.headers),(0,a.requestBeforeHook)({queryParameters:h,requestConfig:l,path:s,configuration:e,pathTemplate:"/accounts/{accountId}/recentOrders",httpMethod:"GET"}),(0,i.setSearchParams)(u,h),{url:(0,i.toPathString)(u),options:l}}),getUserAccountReturnRates:(t,r,n,o={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("getUserAccountReturnRates","userId",t),(0,i.assertParamExists)("getUserAccountReturnRates","userSecret",r),(0,i.assertParamExists)("getUserAccountReturnRates","accountId",n);const s="/accounts/{accountId}/returnRates".replace("{accountId}",encodeURIComponent(String(void 0!==n?n:"-accountId-"))),c=new URL(s,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"GET"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(p.userId=t),void 0!==r&&(p.userSecret=r);let h=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),h),o.headers),(0,a.requestBeforeHook)({queryParameters:p,requestConfig:d,path:s,configuration:e,pathTemplate:"/accounts/{accountId}/returnRates",httpMethod:"GET"}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}}),getUserHoldings:(t,r,n,o={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("getUserHoldings","accountId",t),(0,i.assertParamExists)("getUserHoldings","userId",r),(0,i.assertParamExists)("getUserHoldings","userSecret",n);const s="/accounts/{accountId}/holdings".replace("{accountId}",encodeURIComponent(String(void 0!==t?t:"-accountId-"))),c=new URL(s,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"GET"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==r&&(p.userId=r),void 0!==n&&(p.userSecret=n);let h=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),h),o.headers),(0,a.requestBeforeHook)({queryParameters:p,requestConfig:d,path:s,configuration:e,pathTemplate:"/accounts/{accountId}/holdings",httpMethod:"GET"}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}}),listUserAccounts:(t,r,n={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("listUserAccounts","userId",t),(0,i.assertParamExists)("listUserAccounts","userSecret",r);const s="/accounts",o=new URL(s,i.DUMMY_BASE_URL);let c;e&&(c=e.baseOptions);const u=Object.assign(Object.assign({method:"GET"},c),n),d=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},l={};yield(0,i.setApiKeyToObject)({object:l,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:d,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(l.userId=t),void 0!==r&&(l.userSecret=r);let p=c&&c.headers?c.headers:{};return u.headers=Object.assign(Object.assign(Object.assign({},d),p),n.headers),(0,a.requestBeforeHook)({queryParameters:l,requestConfig:u,path:s,configuration:e,pathTemplate:"/accounts",httpMethod:"GET"}),(0,i.setSearchParams)(o,l),{url:(0,i.toPathString)(o),options:u}}),updateUserAccount:(t,r,n,o={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("updateUserAccount","userId",t),(0,i.assertParamExists)("updateUserAccount","userSecret",r),(0,i.assertParamExists)("updateUserAccount","accountId",n);const s="/accounts/{accountId}".replace("{accountId}",encodeURIComponent(String(void 0!==n?n:"-accountId-"))),c=new URL(s,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"PUT"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(p.userId=t),void 0!==r&&(p.userSecret=r);let h=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),h),o.headers),(0,a.requestBeforeHook)({queryParameters:p,requestConfig:d,path:s,configuration:e,pathTemplate:"/accounts/{accountId}",httpMethod:"PUT"}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}})}},t.AccountInformationApiFp=function(e){const r=(0,t.AccountInformationApiAxiosParamCreator)(e);return{getAccountActivities(t,a){return s(this,void 0,void 0,function*(){const s=yield r.getAccountActivities(t.accountId,t.userId,t.userSecret,t.startDate,t.endDate,t.offset,t.limit,t.type,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},getAllUserHoldings(t,a){return s(this,void 0,void 0,function*(){const s=yield r.getAllUserHoldings(t.userId,t.userSecret,t.brokerageAuthorizations,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},getUserAccountBalance(t,a){return s(this,void 0,void 0,function*(){const s=yield r.getUserAccountBalance(t.userId,t.userSecret,t.accountId,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},getUserAccountDetails(t,a){return s(this,void 0,void 0,function*(){const s=yield r.getUserAccountDetails(t.userId,t.userSecret,t.accountId,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},getUserAccountOrders(t,a){return s(this,void 0,void 0,function*(){const s=yield r.getUserAccountOrders(t.userId,t.userSecret,t.accountId,t.state,t.days,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},getUserAccountPositions(t,a){return s(this,void 0,void 0,function*(){const s=yield r.getUserAccountPositions(t.userId,t.userSecret,t.accountId,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},getUserAccountRecentOrders(t,a){return s(this,void 0,void 0,function*(){const s=yield r.getUserAccountRecentOrders(t.userId,t.userSecret,t.accountId,t.onlyExecuted,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},getUserAccountReturnRates(t,a){return s(this,void 0,void 0,function*(){const s=yield r.getUserAccountReturnRates(t.userId,t.userSecret,t.accountId,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},getUserHoldings(t,a){return s(this,void 0,void 0,function*(){const s=yield r.getUserHoldings(t.accountId,t.userId,t.userSecret,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},listUserAccounts(t,a){return s(this,void 0,void 0,function*(){const s=yield r.listUserAccounts(t.userId,t.userSecret,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},updateUserAccount(t,a){return s(this,void 0,void 0,function*(){const s=yield r.updateUserAccount(t.userId,t.userSecret,t.accountId,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})}}},t.AccountInformationApiFactory=function(e,r,s){const n=(0,t.AccountInformationApiFp)(e);return{getAccountActivities:(e,t)=>n.getAccountActivities(e,t).then(e=>e(s,r)),getAllUserHoldings:(e,t)=>n.getAllUserHoldings(e,t).then(e=>e(s,r)),getUserAccountBalance:(e,t)=>n.getUserAccountBalance(e,t).then(e=>e(s,r)),getUserAccountDetails:(e,t)=>n.getUserAccountDetails(e,t).then(e=>e(s,r)),getUserAccountOrders:(e,t)=>n.getUserAccountOrders(e,t).then(e=>e(s,r)),getUserAccountPositions:(e,t)=>n.getUserAccountPositions(e,t).then(e=>e(s,r)),getUserAccountRecentOrders:(e,t)=>n.getUserAccountRecentOrders(e,t).then(e=>e(s,r)),getUserAccountReturnRates:(e,t)=>n.getUserAccountReturnRates(e,t).then(e=>e(s,r)),getUserHoldings:(e,t)=>n.getUserHoldings(e,t).then(e=>e(s,r)),listUserAccounts:(e,t)=>n.listUserAccounts(e,t).then(e=>e(s,r)),updateUserAccount:(e,t)=>n.updateUserAccount(e,t).then(e=>e(s,r))}};class c extends o.BaseAPI{getAccountActivities(e,r){return(0,t.AccountInformationApiFp)(this.configuration).getAccountActivities(e,r).then(e=>e(this.axios,this.basePath))}getAllUserHoldings(e,r){return(0,t.AccountInformationApiFp)(this.configuration).getAllUserHoldings(e,r).then(e=>e(this.axios,this.basePath))}getUserAccountBalance(e,r){return(0,t.AccountInformationApiFp)(this.configuration).getUserAccountBalance(e,r).then(e=>e(this.axios,this.basePath))}getUserAccountDetails(e,r){return(0,t.AccountInformationApiFp)(this.configuration).getUserAccountDetails(e,r).then(e=>e(this.axios,this.basePath))}getUserAccountOrders(e,r){return(0,t.AccountInformationApiFp)(this.configuration).getUserAccountOrders(e,r).then(e=>e(this.axios,this.basePath))}getUserAccountPositions(e,r){return(0,t.AccountInformationApiFp)(this.configuration).getUserAccountPositions(e,r).then(e=>e(this.axios,this.basePath))}getUserAccountRecentOrders(e,r){return(0,t.AccountInformationApiFp)(this.configuration).getUserAccountRecentOrders(e,r).then(e=>e(this.axios,this.basePath))}getUserAccountReturnRates(e,r){return(0,t.AccountInformationApiFp)(this.configuration).getUserAccountReturnRates(e,r).then(e=>e(this.axios,this.basePath))}getUserHoldings(e,r){return(0,t.AccountInformationApiFp)(this.configuration).getUserHoldings(e,r).then(e=>e(this.axios,this.basePath))}listUserAccounts(e,r){return(0,t.AccountInformationApiFp)(this.configuration).listUserAccounts(e,r).then(e=>e(this.axios,this.basePath))}updateUserAccount(e,r){return(0,t.AccountInformationApiFp)(this.configuration).updateUserAccount(e,r).then(e=>e(this.axios,this.basePath))}}t.AccountInformationApiGenerated=c},9301:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9354:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9383:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9452:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9486:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9634:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9957:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})}},t={};function r(s){var n=t[s];if(void 0!==n)return n.exports;var i=t[s]={exports:{}};return e[s].call(i.exports,i,i.exports,r),i.exports}return 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(8692)})());
|
package/dist/configuration.js
CHANGED
|
@@ -32,7 +32,7 @@ class Configuration {
|
|
|
32
32
|
this.accessToken = param.accessToken;
|
|
33
33
|
this.basePath = param.basePath;
|
|
34
34
|
this.baseOptions = (_a = param.baseOptions) !== null && _a !== void 0 ? _a : {};
|
|
35
|
-
this.userAgent = param.userAgent === undefined ? "Konfig/9.0.
|
|
35
|
+
this.userAgent = param.userAgent === undefined ? "Konfig/9.0.115/typescript" : param.userAgent;
|
|
36
36
|
this.formDataCtor = param.formDataCtor;
|
|
37
37
|
}
|
|
38
38
|
/**
|