snaptrade-typescript-sdk 9.0.78 → 9.0.80

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
- [![npm](https://img.shields.io/badge/npm-v9.0.78-blue)](https://www.npmjs.com/package/snaptrade-typescript-sdk/v/9.0.78)
9
+ [![npm](https://img.shields.io/badge/npm-v9.0.80-blue)](https://www.npmjs.com/package/snaptrade-typescript-sdk/v/9.0.80)
10
10
  [![More Info](https://img.shields.io/badge/More%20Info-Click%20Here-orange)](https://snaptrade.com/)
11
11
 
12
12
  </div>
@@ -185,7 +185,7 @@ main();
185
185
 
186
186
  Returns all historical transactions for the specified account.
187
187
 
188
- This endpoint is paginated and will return a maximum of 1000 transactions per request. See the query parameters for pagination options.
188
+ This endpoint is paginated with a default page size of 1000. The endpoint will return a maximum of 1000 transactions per request. See the query parameters for pagination options.
189
189
 
190
190
  Transaction are returned in reverse chronological order, using the `trade_date` field.
191
191
 
@@ -232,7 +232,7 @@ An integer that specifies the maximum number of transactions to return. Default
232
232
 
233
233
  ##### type: `string`<a id="type-string"></a>
234
234
 
235
- Optional comma separated list of transaction types to filter by. SnapTrade does a best effort to categorize brokerage transaction types into a common set of values. Here are some of the most popular values: - `BUY` - Asset bought. - `SELL` - Asset sold. - `DIVIDEND` - Dividend payout. - `CONTRIBUTION` - Cash contribution. - `WITHDRAWAL` - Cash withdrawal. - `REI` - Dividend reinvestment. - `INTEREST` - Interest deposited into the account. - `FEE` - Fee withdrawn from the account. - `OPTIONEXPIRATION` - Option expiration event. - `OPTIONASSIGNMENT` - Option assignment event. - `OPTIONEXERCISE` - Option exercise event. - `TRANSFER` - Transfer of assets from one account to another
235
+ Optional comma separated list of transaction types to filter by. SnapTrade does a best effort to categorize brokerage transaction types into a common set of values. Here are some of the most popular values: - `BUY` - Asset bought. - `SELL` - Asset sold. - `DIVIDEND` - Dividend payout. - `CONTRIBUTION` - Cash contribution. - `WITHDRAWAL` - Cash withdrawal. - `REI` - Dividend reinvestment. - `STOCK_DIVIDEND` - A type of dividend where a company distributes shares instead of cash - `INTEREST` - Interest deposited into the account. - `FEE` - Fee withdrawn from the account. - `OPTIONEXPIRATION` - Option expiration event. - `OPTIONASSIGNMENT` - Option assignment event. - `OPTIONEXERCISE` - Option exercise event. - `TRANSFER` - Transfer of assets from one account to another
236
236
 
237
237
  #### 🔄 Return<a id="🔄-return"></a>
238
238
 
@@ -16,7 +16,7 @@ import { RecentOrdersResponse } from '../models';
16
16
  */
17
17
  export declare const AccountInformationApiAxiosParamCreator: (configuration?: Configuration) => {
18
18
  /**
19
- * Returns all historical transactions for the specified account. This endpoint is paginated and will return a maximum of 1000 transactions per request. See the query parameters for pagination options. Transaction are returned in reverse chronological order, using the `trade_date` field. The data returned here is always cached and refreshed once a day.
19
+ * Returns all historical transactions for the specified account. This endpoint is paginated with a default page size of 1000. The endpoint will return a maximum of 1000 transactions per request. See the query parameters for pagination options. Transaction are returned in reverse chronological order, using the `trade_date` field. The data returned here is always cached and refreshed once a day.
20
20
  * @summary List account activities
21
21
  * @param {string} accountId
22
22
  * @param {string} userId
@@ -25,7 +25,7 @@ export declare const AccountInformationApiAxiosParamCreator: (configuration?: Co
25
25
  * @param {string | Date} [endDate] The end date (inclusive) of the transaction history to retrieve. If not provided, the default is the last transaction known to SnapTrade based on &#x60;trade_date&#x60;.
26
26
  * @param {number} [offset] An integer that specifies the starting point of the paginated results. Default is 0.
27
27
  * @param {number} [limit] An integer that specifies the maximum number of transactions to return. Default of 1000.
28
- * @param {string} [type] Optional comma separated list of transaction types to filter by. SnapTrade does a best effort to categorize brokerage transaction types into a common set of values. Here are some of the most popular values: - &#x60;BUY&#x60; - Asset bought. - &#x60;SELL&#x60; - Asset sold. - &#x60;DIVIDEND&#x60; - Dividend payout. - &#x60;CONTRIBUTION&#x60; - Cash contribution. - &#x60;WITHDRAWAL&#x60; - Cash withdrawal. - &#x60;REI&#x60; - Dividend reinvestment. - &#x60;INTEREST&#x60; - Interest deposited into the account. - &#x60;FEE&#x60; - Fee withdrawn from the account. - &#x60;OPTIONEXPIRATION&#x60; - Option expiration event. - &#x60;OPTIONASSIGNMENT&#x60; - Option assignment event. - &#x60;OPTIONEXERCISE&#x60; - Option exercise event. - &#x60;TRANSFER&#x60; - Transfer of assets from one account to another
28
+ * @param {string} [type] Optional comma separated list of transaction types to filter by. SnapTrade does a best effort to categorize brokerage transaction types into a common set of values. Here are some of the most popular values: - &#x60;BUY&#x60; - Asset bought. - &#x60;SELL&#x60; - Asset sold. - &#x60;DIVIDEND&#x60; - Dividend payout. - &#x60;CONTRIBUTION&#x60; - Cash contribution. - &#x60;WITHDRAWAL&#x60; - Cash withdrawal. - &#x60;REI&#x60; - Dividend reinvestment. - &#x60;STOCK_DIVIDEND&#x60; - A type of dividend where a company distributes shares instead of cash - &#x60;INTEREST&#x60; - Interest deposited into the account. - &#x60;FEE&#x60; - Fee withdrawn from the account. - &#x60;OPTIONEXPIRATION&#x60; - Option expiration event. - &#x60;OPTIONASSIGNMENT&#x60; - Option assignment event. - &#x60;OPTIONEXERCISE&#x60; - Option exercise event. - &#x60;TRANSFER&#x60; - Transfer of assets from one account to another
29
29
  * @param {*} [options] Override http request option.
30
30
  * @throws {RequiredError}
31
31
  */
@@ -140,7 +140,7 @@ export declare const AccountInformationApiAxiosParamCreator: (configuration?: Co
140
140
  */
141
141
  export declare const AccountInformationApiFp: (configuration?: Configuration) => {
142
142
  /**
143
- * Returns all historical transactions for the specified account. This endpoint is paginated and will return a maximum of 1000 transactions per request. See the query parameters for pagination options. Transaction are returned in reverse chronological order, using the `trade_date` field. The data returned here is always cached and refreshed once a day.
143
+ * Returns all historical transactions for the specified account. This endpoint is paginated with a default page size of 1000. The endpoint will return a maximum of 1000 transactions per request. See the query parameters for pagination options. Transaction are returned in reverse chronological order, using the `trade_date` field. The data returned here is always cached and refreshed once a day.
144
144
  * @summary List account activities
145
145
  * @param {AccountInformationApiGetAccountActivitiesRequest} requestParameters Request parameters.
146
146
  * @param {*} [options] Override http request option.
@@ -235,7 +235,7 @@ export declare const AccountInformationApiFp: (configuration?: Configuration) =>
235
235
  */
236
236
  export declare const AccountInformationApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
237
237
  /**
238
- * Returns all historical transactions for the specified account. This endpoint is paginated and will return a maximum of 1000 transactions per request. See the query parameters for pagination options. Transaction are returned in reverse chronological order, using the `trade_date` field. The data returned here is always cached and refreshed once a day.
238
+ * Returns all historical transactions for the specified account. This endpoint is paginated with a default page size of 1000. The endpoint will return a maximum of 1000 transactions per request. See the query parameters for pagination options. Transaction are returned in reverse chronological order, using the `trade_date` field. The data returned here is always cached and refreshed once a day.
239
239
  * @summary List account activities
240
240
  * @param {AccountInformationApiGetAccountActivitiesRequest} requestParameters Request parameters.
241
241
  * @param {*} [options] Override http request option.
@@ -373,7 +373,7 @@ export type AccountInformationApiGetAccountActivitiesRequest = {
373
373
  */
374
374
  readonly limit?: number;
375
375
  /**
376
- * Optional comma separated list of transaction types to filter by. SnapTrade does a best effort to categorize brokerage transaction types into a common set of values. Here are some of the most popular values: - `BUY` - Asset bought. - `SELL` - Asset sold. - `DIVIDEND` - Dividend payout. - `CONTRIBUTION` - Cash contribution. - `WITHDRAWAL` - Cash withdrawal. - `REI` - Dividend reinvestment. - `INTEREST` - Interest deposited into the account. - `FEE` - Fee withdrawn from the account. - `OPTIONEXPIRATION` - Option expiration event. - `OPTIONASSIGNMENT` - Option assignment event. - `OPTIONEXERCISE` - Option exercise event. - `TRANSFER` - Transfer of assets from one account to another
376
+ * Optional comma separated list of transaction types to filter by. SnapTrade does a best effort to categorize brokerage transaction types into a common set of values. Here are some of the most popular values: - `BUY` - Asset bought. - `SELL` - Asset sold. - `DIVIDEND` - Dividend payout. - `CONTRIBUTION` - Cash contribution. - `WITHDRAWAL` - Cash withdrawal. - `REI` - Dividend reinvestment. - `STOCK_DIVIDEND` - A type of dividend where a company distributes shares instead of cash - `INTEREST` - Interest deposited into the account. - `FEE` - Fee withdrawn from the account. - `OPTIONEXPIRATION` - Option expiration event. - `OPTIONASSIGNMENT` - Option assignment event. - `OPTIONEXERCISE` - Option exercise event. - `TRANSFER` - Transfer of assets from one account to another
377
377
  * @type {string}
378
378
  * @memberof AccountInformationApiGetAccountActivities
379
379
  */
@@ -649,7 +649,7 @@ export type AccountInformationApiUpdateUserAccountRequest = {
649
649
  */
650
650
  export declare class AccountInformationApiGenerated extends BaseAPI {
651
651
  /**
652
- * Returns all historical transactions for the specified account. This endpoint is paginated and will return a maximum of 1000 transactions per request. See the query parameters for pagination options. Transaction are returned in reverse chronological order, using the `trade_date` field. The data returned here is always cached and refreshed once a day.
652
+ * Returns all historical transactions for the specified account. This endpoint is paginated with a default page size of 1000. The endpoint will return a maximum of 1000 transactions per request. See the query parameters for pagination options. Transaction are returned in reverse chronological order, using the `trade_date` field. The data returned here is always cached and refreshed once a day.
653
653
  * @summary List account activities
654
654
  * @param {AccountInformationApiGetAccountActivitiesRequest} requestParameters Request parameters.
655
655
  * @param {*} [options] Override http request option.
@@ -36,7 +36,7 @@ const requestBeforeHook_1 = require("../requestBeforeHook");
36
36
  const AccountInformationApiAxiosParamCreator = function (configuration) {
37
37
  return {
38
38
  /**
39
- * Returns all historical transactions for the specified account. This endpoint is paginated and will return a maximum of 1000 transactions per request. See the query parameters for pagination options. Transaction are returned in reverse chronological order, using the `trade_date` field. The data returned here is always cached and refreshed once a day.
39
+ * Returns all historical transactions for the specified account. This endpoint is paginated with a default page size of 1000. The endpoint will return a maximum of 1000 transactions per request. See the query parameters for pagination options. Transaction are returned in reverse chronological order, using the `trade_date` field. The data returned here is always cached and refreshed once a day.
40
40
  * @summary List account activities
41
41
  * @param {string} accountId
42
42
  * @param {string} userId
@@ -45,7 +45,7 @@ const AccountInformationApiAxiosParamCreator = function (configuration) {
45
45
  * @param {string | Date} [endDate] The end date (inclusive) of the transaction history to retrieve. If not provided, the default is the last transaction known to SnapTrade based on &#x60;trade_date&#x60;.
46
46
  * @param {number} [offset] An integer that specifies the starting point of the paginated results. Default is 0.
47
47
  * @param {number} [limit] An integer that specifies the maximum number of transactions to return. Default of 1000.
48
- * @param {string} [type] Optional comma separated list of transaction types to filter by. SnapTrade does a best effort to categorize brokerage transaction types into a common set of values. Here are some of the most popular values: - &#x60;BUY&#x60; - Asset bought. - &#x60;SELL&#x60; - Asset sold. - &#x60;DIVIDEND&#x60; - Dividend payout. - &#x60;CONTRIBUTION&#x60; - Cash contribution. - &#x60;WITHDRAWAL&#x60; - Cash withdrawal. - &#x60;REI&#x60; - Dividend reinvestment. - &#x60;INTEREST&#x60; - Interest deposited into the account. - &#x60;FEE&#x60; - Fee withdrawn from the account. - &#x60;OPTIONEXPIRATION&#x60; - Option expiration event. - &#x60;OPTIONASSIGNMENT&#x60; - Option assignment event. - &#x60;OPTIONEXERCISE&#x60; - Option exercise event. - &#x60;TRANSFER&#x60; - Transfer of assets from one account to another
48
+ * @param {string} [type] Optional comma separated list of transaction types to filter by. SnapTrade does a best effort to categorize brokerage transaction types into a common set of values. Here are some of the most popular values: - &#x60;BUY&#x60; - Asset bought. - &#x60;SELL&#x60; - Asset sold. - &#x60;DIVIDEND&#x60; - Dividend payout. - &#x60;CONTRIBUTION&#x60; - Cash contribution. - &#x60;WITHDRAWAL&#x60; - Cash withdrawal. - &#x60;REI&#x60; - Dividend reinvestment. - &#x60;STOCK_DIVIDEND&#x60; - A type of dividend where a company distributes shares instead of cash - &#x60;INTEREST&#x60; - Interest deposited into the account. - &#x60;FEE&#x60; - Fee withdrawn from the account. - &#x60;OPTIONEXPIRATION&#x60; - Option expiration event. - &#x60;OPTIONASSIGNMENT&#x60; - Option assignment event. - &#x60;OPTIONEXERCISE&#x60; - Option exercise event. - &#x60;TRANSFER&#x60; - Transfer of assets from one account to another
49
49
  * @param {*} [options] Override http request option.
50
50
  * @throws {RequiredError}
51
51
  */
@@ -684,7 +684,7 @@ const AccountInformationApiFp = function (configuration) {
684
684
  const localVarAxiosParamCreator = (0, exports.AccountInformationApiAxiosParamCreator)(configuration);
685
685
  return {
686
686
  /**
687
- * Returns all historical transactions for the specified account. This endpoint is paginated and will return a maximum of 1000 transactions per request. See the query parameters for pagination options. Transaction are returned in reverse chronological order, using the `trade_date` field. The data returned here is always cached and refreshed once a day.
687
+ * Returns all historical transactions for the specified account. This endpoint is paginated with a default page size of 1000. The endpoint will return a maximum of 1000 transactions per request. See the query parameters for pagination options. Transaction are returned in reverse chronological order, using the `trade_date` field. The data returned here is always cached and refreshed once a day.
688
688
  * @summary List account activities
689
689
  * @param {AccountInformationApiGetAccountActivitiesRequest} requestParameters Request parameters.
690
690
  * @param {*} [options] Override http request option.
@@ -838,7 +838,7 @@ const AccountInformationApiFactory = function (configuration, basePath, axios) {
838
838
  const localVarFp = (0, exports.AccountInformationApiFp)(configuration);
839
839
  return {
840
840
  /**
841
- * Returns all historical transactions for the specified account. This endpoint is paginated and will return a maximum of 1000 transactions per request. See the query parameters for pagination options. Transaction are returned in reverse chronological order, using the `trade_date` field. The data returned here is always cached and refreshed once a day.
841
+ * Returns all historical transactions for the specified account. This endpoint is paginated with a default page size of 1000. The endpoint will return a maximum of 1000 transactions per request. See the query parameters for pagination options. Transaction are returned in reverse chronological order, using the `trade_date` field. The data returned here is always cached and refreshed once a day.
842
842
  * @summary List account activities
843
843
  * @param {AccountInformationApiGetAccountActivitiesRequest} requestParameters Request parameters.
844
844
  * @param {*} [options] Override http request option.
@@ -959,7 +959,7 @@ exports.AccountInformationApiFactory = AccountInformationApiFactory;
959
959
  */
960
960
  class AccountInformationApiGenerated extends base_1.BaseAPI {
961
961
  /**
962
- * Returns all historical transactions for the specified account. This endpoint is paginated and will return a maximum of 1000 transactions per request. See the query parameters for pagination options. Transaction are returned in reverse chronological order, using the `trade_date` field. The data returned here is always cached and refreshed once a day.
962
+ * Returns all historical transactions for the specified account. This endpoint is paginated with a default page size of 1000. The endpoint will return a maximum of 1000 transactions per request. See the query parameters for pagination options. Transaction are returned in reverse chronological order, using the `trade_date` field. The data returned here is always cached and refreshed once a day.
963
963
  * @summary List account activities
964
964
  * @param {AccountInformationApiGetAccountActivitiesRequest} requestParameters Request parameters.
965
965
  * @param {*} [options] Override http request option.
package/dist/browser.js CHANGED
@@ -1 +1 @@
1
- !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={3708:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var s=Object.getOwnPropertyDescriptor(t,r);s&&!("get"in s?!t.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,s)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),s=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),s(r(8598),t),s(r(459),t),s(r(7766),t),s(r(2319),t),s(r(4420),t),s(r(502),t),s(r(9819),t),s(r(9900),t)},2734:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(s,i){function o(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?s(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,a)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.AccountInformationApiGenerated=t.AccountInformationApiFactory=t.AccountInformationApiFp=t.AccountInformationApiAxiosParamCreator=void 0;const s=r(4088),i=r(6479),o=r(7275),a=r(8917);t.AccountInformationApiAxiosParamCreator=function(e){return{getAccountActivities:(t,r,s,o,c,u,d,l,p={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getAccountActivities","accountId",t),(0,i.assertParamExists)("getAccountActivities","userId",r),(0,i.assertParamExists)("getAccountActivities","userSecret",s);const n="/accounts/{accountId}/activities".replace("{accountId}",encodeURIComponent(String(void 0!==t?t:"-accountId-"))),h=new URL(n,i.DUMMY_BASE_URL);let f;e&&(f=e.baseOptions);const g=Object.assign(Object.assign({method:"GET"},f),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!==s&&(m.userSecret=s);let b=f&&f.headers?f.headers:{};return g.headers=Object.assign(Object.assign(Object.assign({},y),b),p.headers),(0,a.requestBeforeHook)({queryParameters:m,requestConfig:g,path:n,configuration:e,pathTemplate:"/accounts/{accountId}/activities",httpMethod:"GET"}),(0,i.setSearchParams)(h,m),{url:(0,i.toPathString)(h),options:g}})),getAllUserHoldings:(t,r,s,o={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getAllUserHoldings","userId",t),(0,i.assertParamExists)("getAllUserHoldings","userSecret",r);const n="/holdings",c=new URL(n,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!==s&&(p.brokerage_authorizations=s);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:n,configuration:e,pathTemplate:"/holdings",httpMethod:"GET"}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}})),getUserAccountBalance:(t,r,s,o={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getUserAccountBalance","userId",t),(0,i.assertParamExists)("getUserAccountBalance","userSecret",r),(0,i.assertParamExists)("getUserAccountBalance","accountId",s);const n="/accounts/{accountId}/balances".replace("{accountId}",encodeURIComponent(String(void 0!==s?s:"-accountId-"))),c=new URL(n,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:n,configuration:e,pathTemplate:"/accounts/{accountId}/balances",httpMethod:"GET"}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}})),getUserAccountDetails:(t,r,s,o={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getUserAccountDetails","userId",t),(0,i.assertParamExists)("getUserAccountDetails","userSecret",r),(0,i.assertParamExists)("getUserAccountDetails","accountId",s);const n="/accounts/{accountId}".replace("{accountId}",encodeURIComponent(String(void 0!==s?s:"-accountId-"))),c=new URL(n,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:n,configuration:e,pathTemplate:"/accounts/{accountId}",httpMethod:"GET"}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}})),getUserAccountOrders:(t,r,s,o,c,u={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getUserAccountOrders","userId",t),(0,i.assertParamExists)("getUserAccountOrders","userSecret",r),(0,i.assertParamExists)("getUserAccountOrders","accountId",s);const n="/accounts/{accountId}/orders".replace("{accountId}",encodeURIComponent(String(void 0!==s?s:"-accountId-"))),d=new URL(n,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}:{},f={};yield(0,i.setApiKeyToObject)({object:f,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:h,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:f,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(f.userId=t),void 0!==r&&(f.userSecret=r),void 0!==o&&(f.state=o),void 0!==c&&(f.days=c);let g=l&&l.headers?l.headers:{};return p.headers=Object.assign(Object.assign(Object.assign({},h),g),u.headers),(0,a.requestBeforeHook)({queryParameters:f,requestConfig:p,path:n,configuration:e,pathTemplate:"/accounts/{accountId}/orders",httpMethod:"GET"}),(0,i.setSearchParams)(d,f),{url:(0,i.toPathString)(d),options:p}})),getUserAccountPositions:(t,r,s,o={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getUserAccountPositions","userId",t),(0,i.assertParamExists)("getUserAccountPositions","userSecret",r),(0,i.assertParamExists)("getUserAccountPositions","accountId",s);const n="/accounts/{accountId}/positions".replace("{accountId}",encodeURIComponent(String(void 0!==s?s:"-accountId-"))),c=new URL(n,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:n,configuration:e,pathTemplate:"/accounts/{accountId}/positions",httpMethod:"GET"}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}})),getUserAccountRecentOrders:(t,r,s,o,c={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getUserAccountRecentOrders","userId",t),(0,i.assertParamExists)("getUserAccountRecentOrders","userSecret",r),(0,i.assertParamExists)("getUserAccountRecentOrders","accountId",s);const n="/accounts/{accountId}/recentOrders".replace("{accountId}",encodeURIComponent(String(void 0!==s?s:"-accountId-"))),u=new URL(n,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 f=d&&d.headers?d.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},p),f),c.headers),(0,a.requestBeforeHook)({queryParameters:h,requestConfig:l,path:n,configuration:e,pathTemplate:"/accounts/{accountId}/recentOrders",httpMethod:"GET"}),(0,i.setSearchParams)(u,h),{url:(0,i.toPathString)(u),options:l}})),getUserAccountReturnRates:(t,r,s,o={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getUserAccountReturnRates","userId",t),(0,i.assertParamExists)("getUserAccountReturnRates","userSecret",r),(0,i.assertParamExists)("getUserAccountReturnRates","accountId",s);const n="/accounts/{accountId}/returnRates".replace("{accountId}",encodeURIComponent(String(void 0!==s?s:"-accountId-"))),c=new URL(n,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:n,configuration:e,pathTemplate:"/accounts/{accountId}/returnRates",httpMethod:"GET"}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}})),getUserHoldings:(t,r,s,o={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getUserHoldings","accountId",t),(0,i.assertParamExists)("getUserHoldings","userId",r),(0,i.assertParamExists)("getUserHoldings","userSecret",s);const n="/accounts/{accountId}/holdings".replace("{accountId}",encodeURIComponent(String(void 0!==t?t:"-accountId-"))),c=new URL(n,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!==s&&(p.userSecret=s);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:n,configuration:e,pathTemplate:"/accounts/{accountId}/holdings",httpMethod:"GET"}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}})),listUserAccounts:(t,r,s={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("listUserAccounts","userId",t),(0,i.assertParamExists)("listUserAccounts","userSecret",r);const n="/accounts",o=new URL(n,i.DUMMY_BASE_URL);let c;e&&(c=e.baseOptions);const u=Object.assign(Object.assign({method:"GET"},c),s),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),s.headers),(0,a.requestBeforeHook)({queryParameters:l,requestConfig:u,path:n,configuration:e,pathTemplate:"/accounts",httpMethod:"GET"}),(0,i.setSearchParams)(o,l),{url:(0,i.toPathString)(o),options:u}})),updateUserAccount:(t,r,s,o={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("updateUserAccount","userId",t),(0,i.assertParamExists)("updateUserAccount","userSecret",r),(0,i.assertParamExists)("updateUserAccount","accountId",s);const n="/accounts/{accountId}".replace("{accountId}",encodeURIComponent(String(void 0!==s?s:"-accountId-"))),c=new URL(n,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:n,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 n(this,void 0,void 0,(function*(){const n=yield r.getAccountActivities(t.accountId,t.userId,t.userSecret,t.startDate,t.endDate,t.offset,t.limit,t.type,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},getAllUserHoldings(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.getAllUserHoldings(t.userId,t.userSecret,t.brokerageAuthorizations,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},getUserAccountBalance(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.getUserAccountBalance(t.userId,t.userSecret,t.accountId,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},getUserAccountDetails(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.getUserAccountDetails(t.userId,t.userSecret,t.accountId,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},getUserAccountOrders(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.getUserAccountOrders(t.userId,t.userSecret,t.accountId,t.state,t.days,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},getUserAccountPositions(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.getUserAccountPositions(t.userId,t.userSecret,t.accountId,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},getUserAccountRecentOrders(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.getUserAccountRecentOrders(t.userId,t.userSecret,t.accountId,t.onlyExecuted,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},getUserAccountReturnRates(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.getUserAccountReturnRates(t.userId,t.userSecret,t.accountId,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},getUserHoldings(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.getUserHoldings(t.accountId,t.userId,t.userSecret,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},listUserAccounts(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.listUserAccounts(t.userId,t.userSecret,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},updateUserAccount(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.updateUserAccount(t.userId,t.userSecret,t.accountId,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))}}},t.AccountInformationApiFactory=function(e,r,n){const s=(0,t.AccountInformationApiFp)(e);return{getAccountActivities:(e,t)=>s.getAccountActivities(e,t).then((e=>e(n,r))),getAllUserHoldings:(e,t)=>s.getAllUserHoldings(e,t).then((e=>e(n,r))),getUserAccountBalance:(e,t)=>s.getUserAccountBalance(e,t).then((e=>e(n,r))),getUserAccountDetails:(e,t)=>s.getUserAccountDetails(e,t).then((e=>e(n,r))),getUserAccountOrders:(e,t)=>s.getUserAccountOrders(e,t).then((e=>e(n,r))),getUserAccountPositions:(e,t)=>s.getUserAccountPositions(e,t).then((e=>e(n,r))),getUserAccountRecentOrders:(e,t)=>s.getUserAccountRecentOrders(e,t).then((e=>e(n,r))),getUserAccountReturnRates:(e,t)=>s.getUserAccountReturnRates(e,t).then((e=>e(n,r))),getUserHoldings:(e,t)=>s.getUserHoldings(e,t).then((e=>e(n,r))),listUserAccounts:(e,t)=>s.listUserAccounts(e,t).then((e=>e(n,r))),updateUserAccount:(e,t)=>s.updateUserAccount(e,t).then((e=>e(n,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},8598:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var s=Object.getOwnPropertyDescriptor(t,r);s&&!("get"in s?!t.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,s)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),s=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.AccountInformationApi=void 0;const i=r(2734);s(r(2734),t);class o extends i.AccountInformationApiGenerated{}t.AccountInformationApi=o},7971:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(s,i){function o(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?s(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,a)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.ApiStatusApiGenerated=t.ApiStatusApiFactory=t.ApiStatusApiFp=t.ApiStatusApiAxiosParamCreator=void 0;const s=r(4088),i=r(6479),o=r(7275),a=r(8917);t.ApiStatusApiAxiosParamCreator=function(e){return{check:(t={})=>n(this,void 0,void 0,(function*(){const r=new URL("/",i.DUMMY_BASE_URL);let n;e&&(n=e.baseOptions);const s=Object.assign(Object.assign({method:"GET"},n),t),o=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},c={};let u=n&&n.headers?n.headers:{};return s.headers=Object.assign(Object.assign(Object.assign({},o),u),t.headers),(0,a.requestBeforeHook)({queryParameters:c,requestConfig:s,path:"/",configuration:e,pathTemplate:"/",httpMethod:"GET"}),(0,i.setSearchParams)(r,c),{url:(0,i.toPathString)(r),options:s}}))}},t.ApiStatusApiFp=function(e){const r=(0,t.ApiStatusApiAxiosParamCreator)(e);return{check(t){return n(this,void 0,void 0,(function*(){const n=yield r.check(t);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))}}},t.ApiStatusApiFactory=function(e,r,n){const s=(0,t.ApiStatusApiFp)(e);return{check:e=>s.check(e).then((e=>e(n,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},459:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var s=Object.getOwnPropertyDescriptor(t,r);s&&!("get"in s?!t.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,s)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),s=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.ApiStatusApi=void 0;const i=r(7971);s(r(7971),t);class o extends i.ApiStatusApiGenerated{}t.ApiStatusApi=o},3022:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(s,i){function o(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?s(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,a)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.AuthenticationApiGenerated=t.AuthenticationApiFactory=t.AuthenticationApiFp=t.AuthenticationApiAxiosParamCreator=void 0;const s=r(4088),i=r(6479),o=r(7275),a=r(8917);t.AuthenticationApiAxiosParamCreator=function(e){return{deleteSnapTradeUser:(t,r={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("deleteSnapTradeUser","userId",t);const n="/snapTrade/deleteUser",s=new URL(n,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:n,configuration:e,pathTemplate:"/snapTrade/deleteUser",httpMethod:"DELETE"}),(0,i.setSearchParams)(s,d),{url:(0,i.toPathString)(s),options:c}})),listSnapTradeUsers:(t={})=>n(this,void 0,void 0,(function*(){const r="/snapTrade/listUsers",n=new URL(r,i.DUMMY_BASE_URL);let s;e&&(s=e.baseOptions);const o=Object.assign(Object.assign({method:"GET"},s),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=s&&s.headers?s.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)(n,u),{url:(0,i.toPathString)(n),options:o}})),loginSnapTradeUser:(t,r,s,o={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("loginSnapTradeUser","userId",t),(0,i.assertParamExists)("loginSnapTradeUser","userSecret",r);const n="/snapTrade/login",c=new URL(n,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:s,queryParameters:p,requestConfig:d,path:n,configuration:e,pathTemplate:"/snapTrade/login",httpMethod:"POST"}),d.data=(0,i.serializeDataIfNeeded)(s,d,e),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}})),registerSnapTradeUser:(t,r={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("registerSnapTradeUser","snapTradeRegisterUserRequestBody",t);const n="/snapTrade/registerUser",s=new URL(n,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:n,configuration:e,pathTemplate:"/snapTrade/registerUser",httpMethod:"POST"}),c.data=(0,i.serializeDataIfNeeded)(t,c,e),(0,i.setSearchParams)(s,d),{url:(0,i.toPathString)(s),options:c}})),resetSnapTradeUserSecret:(t,r={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("resetSnapTradeUserSecret","userIDandSecret",t);const n="/snapTrade/resetUserSecret",s=new URL(n,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:n,configuration:e,pathTemplate:"/snapTrade/resetUserSecret",httpMethod:"POST"}),c.data=(0,i.serializeDataIfNeeded)(t,c,e),(0,i.setSearchParams)(s,d),{url:(0,i.toPathString)(s),options:c}}))}},t.AuthenticationApiFp=function(e){const r=(0,t.AuthenticationApiAxiosParamCreator)(e);return{deleteSnapTradeUser(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.deleteSnapTradeUser(t.userId,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},listSnapTradeUsers(t){return n(this,void 0,void 0,(function*(){const n=yield r.listSnapTradeUsers(t);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},loginSnapTradeUser(t,a){return n(this,void 0,void 0,(function*(){const n={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,n,a);return(0,i.createRequestFunction)(c,s.default,o.BASE_PATH,e)}))},registerSnapTradeUser(t,a){return n(this,void 0,void 0,(function*(){const n={userId:t.userId},c=yield r.registerSnapTradeUser(n,a);return(0,i.createRequestFunction)(c,s.default,o.BASE_PATH,e)}))},resetSnapTradeUserSecret(t,a){return n(this,void 0,void 0,(function*(){const n={userId:t.userId,userSecret:t.userSecret},c=yield r.resetSnapTradeUserSecret(n,a);return(0,i.createRequestFunction)(c,s.default,o.BASE_PATH,e)}))}}},t.AuthenticationApiFactory=function(e,r,n){const s=(0,t.AuthenticationApiFp)(e);return{deleteSnapTradeUser:(e,t)=>s.deleteSnapTradeUser(e,t).then((e=>e(n,r))),listSnapTradeUsers:e=>s.listSnapTradeUsers(e).then((e=>e(n,r))),loginSnapTradeUser:(e,t)=>s.loginSnapTradeUser(e,t).then((e=>e(n,r))),registerSnapTradeUser:(e,t)=>s.registerSnapTradeUser(e,t).then((e=>e(n,r))),resetSnapTradeUserSecret:(e,t)=>s.resetSnapTradeUserSecret(e,t).then((e=>e(n,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},7766:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var s=Object.getOwnPropertyDescriptor(t,r);s&&!("get"in s?!t.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,s)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),s=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.AuthenticationApi=void 0;const i=r(3022);s(r(3022),t);class o extends i.AuthenticationApiGenerated{}t.AuthenticationApi=o},9239:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(s,i){function o(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?s(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,a)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectionsApiGenerated=t.ConnectionsApiFactory=t.ConnectionsApiFp=t.ConnectionsApiAxiosParamCreator=void 0;const s=r(4088),i=r(6479),o=r(7275),a=r(8917);t.ConnectionsApiAxiosParamCreator=function(e){return{detailBrokerageAuthorization:(t,r,s,o={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("detailBrokerageAuthorization","authorizationId",t),(0,i.assertParamExists)("detailBrokerageAuthorization","userId",r),(0,i.assertParamExists)("detailBrokerageAuthorization","userSecret",s);const n="/authorizations/{authorizationId}".replace("{authorizationId}",encodeURIComponent(String(void 0!==t?t:"-authorizationId-"))),c=new URL(n,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!==s&&(p.userSecret=s);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:n,configuration:e,pathTemplate:"/authorizations/{authorizationId}",httpMethod:"GET"}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}})),disableBrokerageAuthorization:(t,r,s,o={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("disableBrokerageAuthorization","authorizationId",t),(0,i.assertParamExists)("disableBrokerageAuthorization","userId",r),(0,i.assertParamExists)("disableBrokerageAuthorization","userSecret",s);const n="/authorizations/{authorizationId}/disable".replace("{authorizationId}",encodeURIComponent(String(void 0!==t?t:"-authorizationId-"))),c=new URL(n,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!==s&&(p.userSecret=s);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:n,configuration:e,pathTemplate:"/authorizations/{authorizationId}/disable",httpMethod:"POST"}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}})),listBrokerageAuthorizations:(t,r,s={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("listBrokerageAuthorizations","userId",t),(0,i.assertParamExists)("listBrokerageAuthorizations","userSecret",r);const n="/authorizations",o=new URL(n,i.DUMMY_BASE_URL);let c;e&&(c=e.baseOptions);const u=Object.assign(Object.assign({method:"GET"},c),s),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),s.headers),(0,a.requestBeforeHook)({queryParameters:l,requestConfig:u,path:n,configuration:e,pathTemplate:"/authorizations",httpMethod:"GET"}),(0,i.setSearchParams)(o,l),{url:(0,i.toPathString)(o),options:u}})),refreshBrokerageAuthorization:(t,r,s,o={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("refreshBrokerageAuthorization","authorizationId",t),(0,i.assertParamExists)("refreshBrokerageAuthorization","userId",r),(0,i.assertParamExists)("refreshBrokerageAuthorization","userSecret",s);const n="/authorizations/{authorizationId}/refresh".replace("{authorizationId}",encodeURIComponent(String(void 0!==t?t:"-authorizationId-"))),c=new URL(n,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!==s&&(p.userSecret=s);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:n,configuration:e,pathTemplate:"/authorizations/{authorizationId}/refresh",httpMethod:"POST"}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}})),removeBrokerageAuthorization:(t,r,s,o={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("removeBrokerageAuthorization","authorizationId",t),(0,i.assertParamExists)("removeBrokerageAuthorization","userId",r),(0,i.assertParamExists)("removeBrokerageAuthorization","userSecret",s);const n="/authorizations/{authorizationId}".replace("{authorizationId}",encodeURIComponent(String(void 0!==t?t:"-authorizationId-"))),c=new URL(n,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!==s&&(p.userSecret=s);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:n,configuration:e,pathTemplate:"/authorizations/{authorizationId}",httpMethod:"DELETE"}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}})),returnRates:(t,r,s,o={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("returnRates","userId",t),(0,i.assertParamExists)("returnRates","userSecret",r),(0,i.assertParamExists)("returnRates","authorizationId",s);const n="/authorizations/{authorizationId}/returnRates".replace("{authorizationId}",encodeURIComponent(String(void 0!==s?s:"-authorizationId-"))),c=new URL(n,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:n,configuration:e,pathTemplate:"/authorizations/{authorizationId}/returnRates",httpMethod:"GET"}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}})),sessionEvents:(t,r,s,o={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("sessionEvents","partnerClientId",t);const n="/sessionEvents",c=new URL(n,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!==s&&(p.sessionId=s);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:n,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 n(this,void 0,void 0,(function*(){const n=yield r.detailBrokerageAuthorization(t.authorizationId,t.userId,t.userSecret,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},disableBrokerageAuthorization(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.disableBrokerageAuthorization(t.authorizationId,t.userId,t.userSecret,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},listBrokerageAuthorizations(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.listBrokerageAuthorizations(t.userId,t.userSecret,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},refreshBrokerageAuthorization(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.refreshBrokerageAuthorization(t.authorizationId,t.userId,t.userSecret,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},removeBrokerageAuthorization(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.removeBrokerageAuthorization(t.authorizationId,t.userId,t.userSecret,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},returnRates(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.returnRates(t.userId,t.userSecret,t.authorizationId,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},sessionEvents(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.sessionEvents(t.partnerClientId,t.userId,t.sessionId,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))}}},t.ConnectionsApiFactory=function(e,r,n){const s=(0,t.ConnectionsApiFp)(e);return{detailBrokerageAuthorization:(e,t)=>s.detailBrokerageAuthorization(e,t).then((e=>e(n,r))),disableBrokerageAuthorization:(e,t)=>s.disableBrokerageAuthorization(e,t).then((e=>e(n,r))),listBrokerageAuthorizations:(e,t)=>s.listBrokerageAuthorizations(e,t).then((e=>e(n,r))),refreshBrokerageAuthorization:(e,t)=>s.refreshBrokerageAuthorization(e,t).then((e=>e(n,r))),removeBrokerageAuthorization:(e,t)=>s.removeBrokerageAuthorization(e,t).then((e=>e(n,r))),returnRates:(e,t)=>s.returnRates(e,t).then((e=>e(n,r))),sessionEvents:(e,t)=>s.sessionEvents(e,t).then((e=>e(n,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},2319:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var s=Object.getOwnPropertyDescriptor(t,r);s&&!("get"in s?!t.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,s)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),s=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectionsApi=void 0;const i=r(9239);s(r(9239),t);class o extends i.ConnectionsApiGenerated{}t.ConnectionsApi=o},9448:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(s,i){function o(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?s(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,a)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.OptionsApiGenerated=t.OptionsApiFactory=t.OptionsApiFp=t.OptionsApiAxiosParamCreator=void 0;const s=r(4088),i=r(6479),o=r(7275),a=r(8917);t.OptionsApiAxiosParamCreator=function(e){return{getOptionStrategy:(t,r,s,o,c={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getOptionStrategy","userId",t),(0,i.assertParamExists)("getOptionStrategy","userSecret",r),(0,i.assertParamExists)("getOptionStrategy","accountId",s),(0,i.assertParamExists)("getOptionStrategy","optionsGetOptionStrategyRequest",o);const n="/accounts/{accountId}/optionStrategy".replace("{accountId}",encodeURIComponent(String(void 0!==s?s:"-accountId-"))),u=new URL(n,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 f=d&&d.headers?d.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},p),f),c.headers),(0,a.requestBeforeHook)({requestBody:o,queryParameters:h,requestConfig:l,path:n,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,s,o,c={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getOptionsChain","userId",t),(0,i.assertParamExists)("getOptionsChain","userSecret",r),(0,i.assertParamExists)("getOptionsChain","accountId",s),(0,i.assertParamExists)("getOptionsChain","symbol",o);const n="/accounts/{accountId}/optionsChain".replace("{accountId}",encodeURIComponent(String(void 0!==s?s:"-accountId-"))),u=new URL(n,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 f=d&&d.headers?d.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},p),f),c.headers),(0,a.requestBeforeHook)({queryParameters:h,requestConfig:l,path:n,configuration:e,pathTemplate:"/accounts/{accountId}/optionsChain",httpMethod:"GET"}),(0,i.setSearchParams)(u,h),{url:(0,i.toPathString)(u),options:l}})),getOptionsStrategyQuote:(t,r,s,o,c={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getOptionsStrategyQuote","userId",t),(0,i.assertParamExists)("getOptionsStrategyQuote","userSecret",r),(0,i.assertParamExists)("getOptionsStrategyQuote","accountId",s),(0,i.assertParamExists)("getOptionsStrategyQuote","optionStrategyId",o);const n="/accounts/{accountId}/optionStrategy/{optionStrategyId}".replace("{accountId}",encodeURIComponent(String(void 0!==s?s:"-accountId-"))).replace("{optionStrategyId}",encodeURIComponent(String(void 0!==o?o:"-optionStrategyId-"))),u=new URL(n,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 f=d&&d.headers?d.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},p),f),c.headers),(0,a.requestBeforeHook)({queryParameters:h,requestConfig:l,path:n,configuration:e,pathTemplate:"/accounts/{accountId}/optionStrategy/{optionStrategyId}",httpMethod:"GET"}),(0,i.setSearchParams)(u,h),{url:(0,i.toPathString)(u),options:l}})),listOptionHoldings:(t,r,s,o={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("listOptionHoldings","userId",t),(0,i.assertParamExists)("listOptionHoldings","userSecret",r),(0,i.assertParamExists)("listOptionHoldings","accountId",s);const n="/accounts/{accountId}/options".replace("{accountId}",encodeURIComponent(String(void 0!==s?s:"-accountId-"))),c=new URL(n,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:n,configuration:e,pathTemplate:"/accounts/{accountId}/options",httpMethod:"GET"}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}})),placeOptionStrategy:(t,r,s,o,c,u={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("placeOptionStrategy","userId",t),(0,i.assertParamExists)("placeOptionStrategy","userSecret",r),(0,i.assertParamExists)("placeOptionStrategy","accountId",s),(0,i.assertParamExists)("placeOptionStrategy","optionStrategyId",o),(0,i.assertParamExists)("placeOptionStrategy","optionsPlaceOptionStrategyRequest",c);const n="/accounts/{accountId}/optionStrategy/{optionStrategyId}/execute".replace("{accountId}",encodeURIComponent(String(void 0!==s?s:"-accountId-"))).replace("{optionStrategyId}",encodeURIComponent(String(void 0!==o?o:"-optionStrategyId-"))),d=new URL(n,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}:{},f={};yield(0,i.setApiKeyToObject)({object:f,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:h,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:f,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(f.userId=t),void 0!==r&&(f.userSecret=r),h["Content-Type"]="application/json";let g=l&&l.headers?l.headers:{};return p.headers=Object.assign(Object.assign(Object.assign({},h),g),u.headers),(0,a.requestBeforeHook)({requestBody:c,queryParameters:f,requestConfig:p,path:n,configuration:e,pathTemplate:"/accounts/{accountId}/optionStrategy/{optionStrategyId}/execute",httpMethod:"POST"}),p.data=(0,i.serializeDataIfNeeded)(c,p,e),(0,i.setSearchParams)(d,f),{url:(0,i.toPathString)(d),options:p}}))}},t.OptionsApiFp=function(e){const r=(0,t.OptionsApiAxiosParamCreator)(e);return{getOptionStrategy(t,a){return n(this,void 0,void 0,(function*(){const n={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,n,a);return(0,i.createRequestFunction)(c,s.default,o.BASE_PATH,e)}))},getOptionsChain(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.getOptionsChain(t.userId,t.userSecret,t.accountId,t.symbol,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},getOptionsStrategyQuote(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.getOptionsStrategyQuote(t.userId,t.userSecret,t.accountId,t.optionStrategyId,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},listOptionHoldings(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.listOptionHoldings(t.userId,t.userSecret,t.accountId,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},placeOptionStrategy(t,a){return n(this,void 0,void 0,(function*(){const n={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,n,a);return(0,i.createRequestFunction)(c,s.default,o.BASE_PATH,e)}))}}},t.OptionsApiFactory=function(e,r,n){const s=(0,t.OptionsApiFp)(e);return{getOptionStrategy:(e,t)=>s.getOptionStrategy(e,t).then((e=>e(n,r))),getOptionsChain:(e,t)=>s.getOptionsChain(e,t).then((e=>e(n,r))),getOptionsStrategyQuote:(e,t)=>s.getOptionsStrategyQuote(e,t).then((e=>e(n,r))),listOptionHoldings:(e,t)=>s.listOptionHoldings(e,t).then((e=>e(n,r))),placeOptionStrategy:(e,t)=>s.placeOptionStrategy(e,t).then((e=>e(n,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},4420:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var s=Object.getOwnPropertyDescriptor(t,r);s&&!("get"in s?!t.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,s)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),s=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.OptionsApi=void 0;const i=r(9448);s(r(9448),t);class o extends i.OptionsApiGenerated{}t.OptionsApi=o},7342:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(s,i){function o(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?s(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,a)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.ReferenceDataApiGenerated=t.ReferenceDataApiFactory=t.ReferenceDataApiFp=t.ReferenceDataApiAxiosParamCreator=void 0;const s=r(4088),i=r(6479),o=r(7275),a=r(8917);t.ReferenceDataApiAxiosParamCreator=function(e){return{getCurrencyExchangeRatePair:(t,r={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getCurrencyExchangeRatePair","currencyPair",t);const n="/currencies/rates/{currencyPair}".replace("{currencyPair}",encodeURIComponent(String(void 0!==t?t:"-currencyPair-"))),s=new URL(n,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:n,configuration:e,pathTemplate:"/currencies/rates/{currencyPair}",httpMethod:"GET"}),(0,i.setSearchParams)(s,d),{url:(0,i.toPathString)(s),options:c}})),getPartnerInfo:(t={})=>n(this,void 0,void 0,(function*(){const r="/snapTrade/partners",n=new URL(r,i.DUMMY_BASE_URL);let s;e&&(s=e.baseOptions);const o=Object.assign(Object.assign({method:"GET"},s),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=s&&s.headers?s.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)(n,u),{url:(0,i.toPathString)(n),options:o}})),getSecurityTypes:(t={})=>n(this,void 0,void 0,(function*(){const r="/securityTypes",n=new URL(r,i.DUMMY_BASE_URL);let s;e&&(s=e.baseOptions);const o=Object.assign(Object.assign({method:"GET"},s),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=s&&s.headers?s.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)(n,u),{url:(0,i.toPathString)(n),options:o}})),getStockExchanges:(t={})=>n(this,void 0,void 0,(function*(){const r="/exchanges",n=new URL(r,i.DUMMY_BASE_URL);let s;e&&(s=e.baseOptions);const o=Object.assign(Object.assign({method:"GET"},s),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=s&&s.headers?s.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)(n,u),{url:(0,i.toPathString)(n),options:o}})),getSymbols:(t,r={})=>n(this,void 0,void 0,(function*(){const n="/symbols",s=new URL(n,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:n,configuration:e,pathTemplate:"/symbols",httpMethod:"POST"}),c.data=(0,i.serializeDataIfNeeded)(t,c,e),(0,i.setSearchParams)(s,d),{url:(0,i.toPathString)(s),options:c}})),getSymbolsByTicker:(t,r={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getSymbolsByTicker","query",t);const n="/symbols/{query}".replace("{query}",encodeURIComponent(String(void 0!==t?t:"-query-"))),s=new URL(n,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:n,configuration:e,pathTemplate:"/symbols/{query}",httpMethod:"GET"}),(0,i.setSearchParams)(s,d),{url:(0,i.toPathString)(s),options:c}})),listAllBrokerageAuthorizationType:(t,r={})=>n(this,void 0,void 0,(function*(){const n="/brokerageAuthorizationTypes",s=new URL(n,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:n,configuration:e,pathTemplate:"/brokerageAuthorizationTypes",httpMethod:"GET"}),(0,i.setSearchParams)(s,d),{url:(0,i.toPathString)(s),options:c}})),listAllBrokerages:(t={})=>n(this,void 0,void 0,(function*(){const r="/brokerages",n=new URL(r,i.DUMMY_BASE_URL);let s;e&&(s=e.baseOptions);const o=Object.assign(Object.assign({method:"GET"},s),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=s&&s.headers?s.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)(n,u),{url:(0,i.toPathString)(n),options:o}})),listAllCurrencies:(t={})=>n(this,void 0,void 0,(function*(){const r="/currencies",n=new URL(r,i.DUMMY_BASE_URL);let s;e&&(s=e.baseOptions);const o=Object.assign(Object.assign({method:"GET"},s),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=s&&s.headers?s.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)(n,u),{url:(0,i.toPathString)(n),options:o}})),listAllCurrenciesRates:(t={})=>n(this,void 0,void 0,(function*(){const r="/currencies/rates",n=new URL(r,i.DUMMY_BASE_URL);let s;e&&(s=e.baseOptions);const o=Object.assign(Object.assign({method:"GET"},s),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=s&&s.headers?s.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)(n,u),{url:(0,i.toPathString)(n),options:o}})),symbolSearchUserAccount:(t,r,s,o,c={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("symbolSearchUserAccount","userId",t),(0,i.assertParamExists)("symbolSearchUserAccount","userSecret",r),(0,i.assertParamExists)("symbolSearchUserAccount","accountId",s);const n="/accounts/{accountId}/symbols".replace("{accountId}",encodeURIComponent(String(void 0!==s?s:"-accountId-"))),u=new URL(n,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 f=d&&d.headers?d.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},p),f),c.headers),(0,a.requestBeforeHook)({requestBody:o,queryParameters:h,requestConfig:l,path:n,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 n(this,void 0,void 0,(function*(){const n=yield r.getCurrencyExchangeRatePair(t.currencyPair,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},getPartnerInfo(t){return n(this,void 0,void 0,(function*(){const n=yield r.getPartnerInfo(t);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},getSecurityTypes(t){return n(this,void 0,void 0,(function*(){const n=yield r.getSecurityTypes(t);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},getStockExchanges(t){return n(this,void 0,void 0,(function*(){const n=yield r.getStockExchanges(t);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},getSymbols(t={},a){return n(this,void 0,void 0,(function*(){const n={substring:t.substring},c=yield r.getSymbols(n,a);return(0,i.createRequestFunction)(c,s.default,o.BASE_PATH,e)}))},getSymbolsByTicker(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.getSymbolsByTicker(t.query,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},listAllBrokerageAuthorizationType(t={},a){return n(this,void 0,void 0,(function*(){const n=yield r.listAllBrokerageAuthorizationType(t.brokerage,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},listAllBrokerages(t){return n(this,void 0,void 0,(function*(){const n=yield r.listAllBrokerages(t);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},listAllCurrencies(t){return n(this,void 0,void 0,(function*(){const n=yield r.listAllCurrencies(t);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},listAllCurrenciesRates(t){return n(this,void 0,void 0,(function*(){const n=yield r.listAllCurrenciesRates(t);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},symbolSearchUserAccount(t,a){return n(this,void 0,void 0,(function*(){const n={substring:t.substring},c=yield r.symbolSearchUserAccount(t.userId,t.userSecret,t.accountId,n,a);return(0,i.createRequestFunction)(c,s.default,o.BASE_PATH,e)}))}}},t.ReferenceDataApiFactory=function(e,r,n){const s=(0,t.ReferenceDataApiFp)(e);return{getCurrencyExchangeRatePair:(e,t)=>s.getCurrencyExchangeRatePair(e,t).then((e=>e(n,r))),getPartnerInfo:e=>s.getPartnerInfo(e).then((e=>e(n,r))),getSecurityTypes:e=>s.getSecurityTypes(e).then((e=>e(n,r))),getStockExchanges:e=>s.getStockExchanges(e).then((e=>e(n,r))),getSymbols:(e={},t)=>s.getSymbols(e,t).then((e=>e(n,r))),getSymbolsByTicker:(e,t)=>s.getSymbolsByTicker(e,t).then((e=>e(n,r))),listAllBrokerageAuthorizationType:(e={},t)=>s.listAllBrokerageAuthorizationType(e,t).then((e=>e(n,r))),listAllBrokerages:e=>s.listAllBrokerages(e).then((e=>e(n,r))),listAllCurrencies:e=>s.listAllCurrencies(e).then((e=>e(n,r))),listAllCurrenciesRates:e=>s.listAllCurrenciesRates(e).then((e=>e(n,r))),symbolSearchUserAccount:(e,t)=>s.symbolSearchUserAccount(e,t).then((e=>e(n,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},502:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var s=Object.getOwnPropertyDescriptor(t,r);s&&!("get"in s?!t.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,s)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),s=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.ReferenceDataApi=void 0;const i=r(7342);s(r(7342),t);class o extends i.ReferenceDataApiGenerated{}t.ReferenceDataApi=o},3171:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(s,i){function o(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?s(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,a)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.TradingApiGenerated=t.TradingApiFactory=t.TradingApiFp=t.TradingApiAxiosParamCreator=void 0;const s=r(4088),i=r(6479),o=r(7275),a=r(8917);t.TradingApiAxiosParamCreator=function(e){return{cancelUserAccountOrder:(t,r,s,o,c={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("cancelUserAccountOrder","userId",t),(0,i.assertParamExists)("cancelUserAccountOrder","userSecret",r),(0,i.assertParamExists)("cancelUserAccountOrder","accountId",s),(0,i.assertParamExists)("cancelUserAccountOrder","tradingCancelUserAccountOrderRequest",o);const n="/accounts/{accountId}/orders/cancel".replace("{accountId}",encodeURIComponent(String(void 0!==s?s:"-accountId-"))),u=new URL(n,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 f=d&&d.headers?d.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},p),f),c.headers),(0,a.requestBeforeHook)({requestBody:o,queryParameters:h,requestConfig:l,path:n,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}})),getOrderImpact:(t,r,s,o={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getOrderImpact","userId",t),(0,i.assertParamExists)("getOrderImpact","userSecret",r),(0,i.assertParamExists)("getOrderImpact","manualTradeForm",s);const n="/trade/impact",c=new URL(n,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:s,queryParameters:p,requestConfig:d,path:n,configuration:e,pathTemplate:"/trade/impact",httpMethod:"POST"}),d.data=(0,i.serializeDataIfNeeded)(s,d,e),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}})),getUserAccountQuotes:(t,r,s,o,c,u={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getUserAccountQuotes","userId",t),(0,i.assertParamExists)("getUserAccountQuotes","userSecret",r),(0,i.assertParamExists)("getUserAccountQuotes","symbols",s),(0,i.assertParamExists)("getUserAccountQuotes","accountId",o);const n="/accounts/{accountId}/quotes".replace("{accountId}",encodeURIComponent(String(void 0!==o?o:"-accountId-"))),d=new URL(n,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}:{},f={};yield(0,i.setApiKeyToObject)({object:f,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:h,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:f,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(f.userId=t),void 0!==r&&(f.userSecret=r),void 0!==s&&(f.symbols=s),void 0!==c&&(f.use_ticker=c);let g=l&&l.headers?l.headers:{};return p.headers=Object.assign(Object.assign(Object.assign({},h),g),u.headers),(0,a.requestBeforeHook)({queryParameters:f,requestConfig:p,path:n,configuration:e,pathTemplate:"/accounts/{accountId}/quotes",httpMethod:"GET"}),(0,i.setSearchParams)(d,f),{url:(0,i.toPathString)(d),options:p}})),placeForceOrder:(t,r,s,o={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("placeForceOrder","userId",t),(0,i.assertParamExists)("placeForceOrder","userSecret",r),(0,i.assertParamExists)("placeForceOrder","manualTradeFormWithOptions",s);const n="/trade/place",c=new URL(n,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:s,queryParameters:p,requestConfig:d,path:n,configuration:e,pathTemplate:"/trade/place",httpMethod:"POST"}),d.data=(0,i.serializeDataIfNeeded)(s,d,e),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}})),placeOrder:(t,r,s,o,c={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("placeOrder","tradeId",t),(0,i.assertParamExists)("placeOrder","userId",r),(0,i.assertParamExists)("placeOrder","userSecret",s);const n="/trade/{tradeId}".replace("{tradeId}",encodeURIComponent(String(void 0!==t?t:"-tradeId-"))),u=new URL(n,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!==s&&(h.userSecret=s),p["Content-Type"]="application/json";let f=d&&d.headers?d.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},p),f),c.headers),(0,a.requestBeforeHook)({requestBody:o,queryParameters:h,requestConfig:l,path:n,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}}))}},t.TradingApiFp=function(e){const r=(0,t.TradingApiAxiosParamCreator)(e);return{cancelUserAccountOrder(t,a){return n(this,void 0,void 0,(function*(){const n={brokerage_order_id:t.brokerage_order_id},c=yield r.cancelUserAccountOrder(t.userId,t.userSecret,t.accountId,n,a);return(0,i.createRequestFunction)(c,s.default,o.BASE_PATH,e)}))},getOrderImpact(t,a){return n(this,void 0,void 0,(function*(){const n={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,n,a);return(0,i.createRequestFunction)(c,s.default,o.BASE_PATH,e)}))},getUserAccountQuotes(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.getUserAccountQuotes(t.userId,t.userSecret,t.symbols,t.accountId,t.useTicker,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},placeForceOrder(t,a){return n(this,void 0,void 0,(function*(){const n={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,order_class:t.order_class,stop_loss:t.stop_loss,take_profit:t.take_profit},c=yield r.placeForceOrder(t.userId,t.userSecret,n,a);return(0,i.createRequestFunction)(c,s.default,o.BASE_PATH,e)}))},placeOrder(t,a){return n(this,void 0,void 0,(function*(){const n={wait_to_confirm:t.wait_to_confirm},c=yield r.placeOrder(t.tradeId,t.userId,t.userSecret,n,a);return(0,i.createRequestFunction)(c,s.default,o.BASE_PATH,e)}))}}},t.TradingApiFactory=function(e,r,n){const s=(0,t.TradingApiFp)(e);return{cancelUserAccountOrder:(e,t)=>s.cancelUserAccountOrder(e,t).then((e=>e(n,r))),getOrderImpact:(e,t)=>s.getOrderImpact(e,t).then((e=>e(n,r))),getUserAccountQuotes:(e,t)=>s.getUserAccountQuotes(e,t).then((e=>e(n,r))),placeForceOrder:(e,t)=>s.placeForceOrder(e,t).then((e=>e(n,r))),placeOrder:(e,t)=>s.placeOrder(e,t).then((e=>e(n,r)))}};class c extends o.BaseAPI{cancelUserAccountOrder(e,r){return(0,t.TradingApiFp)(this.configuration).cancelUserAccountOrder(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)))}placeForceOrder(e,r){return(0,t.TradingApiFp)(this.configuration).placeForceOrder(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)))}}t.TradingApiGenerated=c},9819:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var s=Object.getOwnPropertyDescriptor(t,r);s&&!("get"in s?!t.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,s)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),s=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.TradingApi=void 0;const i=r(3171);s(r(3171),t);class o extends i.TradingApiGenerated{}t.TradingApi=o},288:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(s,i){function o(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?s(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,a)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.TransactionsAndReportingApiGenerated=t.TransactionsAndReportingApiFactory=t.TransactionsAndReportingApiFp=t.TransactionsAndReportingApiAxiosParamCreator=void 0;const s=r(4088),i=r(6479),o=r(7275),a=r(8917);t.TransactionsAndReportingApiAxiosParamCreator=function(e){return{getActivities:(t,r,s,o,c,u,d,l={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getActivities","userId",t),(0,i.assertParamExists)("getActivities","userSecret",r);const n="/activities",p=new URL(n,i.DUMMY_BASE_URL);let h;e&&(h=e.baseOptions);const f=Object.assign(Object.assign({method:"GET"},h),l),g=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:g,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:y,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==s&&(y.startDate=s instanceof Date?s.toISOString().substr(0,10):s),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 f.headers=Object.assign(Object.assign(Object.assign({},g),m),l.headers),(0,a.requestBeforeHook)({queryParameters:y,requestConfig:f,path:n,configuration:e,pathTemplate:"/activities",httpMethod:"GET"}),(0,i.setSearchParams)(p,y),{url:(0,i.toPathString)(p),options:f}})),getReportingCustomRange:(t,r,s,o,c,u,d,l={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getReportingCustomRange","startDate",t),(0,i.assertParamExists)("getReportingCustomRange","endDate",r),(0,i.assertParamExists)("getReportingCustomRange","userId",s),(0,i.assertParamExists)("getReportingCustomRange","userSecret",o);const n="/performance/custom",p=new URL(n,i.DUMMY_BASE_URL);let h;e&&(h=e.baseOptions);const f=Object.assign(Object.assign({method:"GET"},h),l),g=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:g,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!==s&&(y.userId=s),void 0!==o&&(y.userSecret=o);let m=h&&h.headers?h.headers:{};return f.headers=Object.assign(Object.assign(Object.assign({},g),m),l.headers),(0,a.requestBeforeHook)({queryParameters:y,requestConfig:f,path:n,configuration:e,pathTemplate:"/performance/custom",httpMethod:"GET"}),(0,i.setSearchParams)(p,y),{url:(0,i.toPathString)(p),options:f}}))}},t.TransactionsAndReportingApiFp=function(e){const r=(0,t.TransactionsAndReportingApiAxiosParamCreator)(e);return{getActivities(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.getActivities(t.userId,t.userSecret,t.startDate,t.endDate,t.accounts,t.brokerageAuthorizations,t.type,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},getReportingCustomRange(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.getReportingCustomRange(t.startDate,t.endDate,t.userId,t.userSecret,t.accounts,t.detailed,t.frequency,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))}}},t.TransactionsAndReportingApiFactory=function(e,r,n){const s=(0,t.TransactionsAndReportingApiFp)(e);return{getActivities:(e,t)=>s.getActivities(e,t).then((e=>e(n,r))),getReportingCustomRange:(e,t)=>s.getReportingCustomRange(e,t).then((e=>e(n,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},9900:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var s=Object.getOwnPropertyDescriptor(t,r);s&&!("get"in s?!t.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,s)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),s=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.TransactionsAndReportingApi=void 0;const i=r(288);s(r(288),t);class o extends i.TransactionsAndReportingApiGenerated{}t.TransactionsAndReportingApi=o},7275:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RequiredError=t.BaseAPI=t.COLLECTION_FORMATS=t.BASE_PATH=void 0;const n=r(4088);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,s=n.default){this.basePath=r,this.axios=s,e&&(this.configuration=e,this.basePath=e.basePath||this.basePath)}};class s extends Error{constructor(e,t){super(t),this.field=e,this.name="RequiredError"}}t.RequiredError=s},4085:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SnaptradeCustom=void 0,t.SnaptradeCustom=class{constructor(e){}}},9009:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Snaptrade=void 0;const n=r(3708),s=r(4438),i=r(4085);class o extends i.SnaptradeCustom{constructor(e={}){super(e);const t=new s.Configuration(e);this.accountInformation=new n.AccountInformationApi(t),this.apiStatus=new n.ApiStatusApi(t),this.authentication=new n.AuthenticationApi(t),this.connections=new n.ConnectionsApi(t),this.options=new n.OptionsApi(t),this.referenceData=new n.ReferenceDataApi(t),this.trading=new n.TradingApi(t),this.transactionsAndReporting=new n.TransactionsAndReportingApi(t)}}t.Snaptrade=o},6479:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(s,i){function o(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?s(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,a)}c((n=n.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 s=r(7275),i=r(4088),o=r(4700),a=r(6642),c=r(7270);function u(e,t,r=""){"object"==typeof t?Array.isArray(t)?t.forEach((t=>u(e,t,r))):Object.keys(t).forEach((n=>u(e,t[n],`${r}${""!==r?".":""}${n}`))):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 s.RequiredError(t,`Required parameter ${t} was null or undefined when calling ${e}.`)},t.setApiKeyToObject=function({object:e,key:t,type:r,keyParamName:s,configuration:i,prefix:o}){return n(this,void 0,void 0,(function*(){t=t||s;let n=null;if(i&&i.apiKey)if("function"==typeof i.apiKey)n=yield i.apiKey(s);else if("string"==typeof i.apiKey)n=i.apiKey;else{if("object"!=typeof i.apiKey)throw Error(`Unexpected type ${typeof i.apiKey} for Configuration.apiKey`);s in i.apiKey&&(n=i.apiKey[s])}n&&(e[t]=void 0!==o?`${o}${n}`:n,"Cookie"===r&&(e[t]=`${s}=${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 n(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 n="string"!=typeof e;return(n&&r&&r.isJsonMime?r.isJsonMime(t.headers["Content-Type"]):n)?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,s){return(u=t,d=r)=>n(this,void 0,void 0,(function*(){(0,a.requestBeforeUrlHook)({axiosArgs:e,basePath:d,configuration:s});const t=((null==s?void 0:s.basePath)||d)+e.url;return yield(0,o.requestAfterHook)({axiosArgs:e,basePath:d,url:t,configuration:s}),function(e){var t,r,s,o,a,u;return n(this,void 0,void 0,(function*(){let n=0,d=5e3;for(;n<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)){n++,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===(s=e.response)||void 0===s?void 0:s.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.")}))}((()=>n(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}},4438:(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.78/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())}}},7270:function(e,t){"use strict";var r=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(s,i){function o(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?s(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,a)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.parseIfJson=t.readableStreamToString=t.SnaptradeError=void 0;class n extends Error{constructor(e,t,r){var n,s,i,o,a;super(e.message+"\nRESPONSE HEADERS:\n"+JSON.stringify(r,null,2)),this.name="SnaptradeError",this.code=e.code,this.method=null===(s=null===(n=e.config)||void 0===n?void 0:n.method)||void 0===s?void 0:s.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=n,t.readableStreamToString=function(e){return r(this,void 0,void 0,(function*(){const t=new TextDecoder,r=e.getReader();let n="";try{for(;;){const{done:e,value:s}=yield r.read();if(e)break;n+=t.decode(s,{stream:!0})}}finally{r.releaseLock()}return n}))},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}}},2316:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var s=Object.getOwnPropertyDescriptor(t,r);s&&!("get"in s?!t.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,s)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),s=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),s(r(3708),t),s(r(4438),t),s(r(8659),t),s(r(9009),t),s(r(7270),t)},8358:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9409:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},423:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3477:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8898:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8262:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6392:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2867:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9847:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1289:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8010:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6977:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1501:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9132:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3376:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6183:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2935:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3433:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7055:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8083:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8552:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8827:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3421:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7704:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},967:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6420:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1763:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},414:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9188:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},680:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},457:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3045:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3403:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2113:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8142:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5542:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8234:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8659:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var s=Object.getOwnPropertyDescriptor(t,r);s&&!("get"in s?!t.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,s)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),s=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),s(r(3376),t),s(r(9409),t),s(r(8358),t),s(r(3477),t),s(r(423),t),s(r(2867),t),s(r(8898),t),s(r(8262),t),s(r(6392),t),s(r(9847),t),s(r(1289),t),s(r(9132),t),s(r(8010),t),s(r(6977),t),s(r(1501),t),s(r(2935),t),s(r(6183),t),s(r(3433),t),s(r(8083),t),s(r(7055),t),s(r(1763),t),s(r(967),t),s(r(8552),t),s(r(8827),t),s(r(7704),t),s(r(3421),t),s(r(6420),t),s(r(414),t),s(r(9188),t),s(r(680),t),s(r(457),t),s(r(3403),t),s(r(3045),t),s(r(8142),t),s(r(2113),t),s(r(5542),t),s(r(8234),t),s(r(6760),t),s(r(3146),t),s(r(5577),t),s(r(9143),t),s(r(7565),t),s(r(2158),t),s(r(4653),t),s(r(6828),t),s(r(6764),t),s(r(993),t),s(r(9123),t),s(r(3826),t),s(r(2633),t),s(r(8752),t),s(r(9571),t),s(r(6195),t),s(r(1720),t),s(r(7742),t),s(r(7527),t),s(r(831),t),s(r(7871),t),s(r(7446),t),s(r(5718),t),s(r(8707),t),s(r(4948),t),s(r(8159),t),s(r(3647),t),s(r(4189),t),s(r(8407),t),s(r(7170),t),s(r(3015),t),s(r(9416),t),s(r(1811),t),s(r(765),t),s(r(4609),t),s(r(2270),t),s(r(7120),t),s(r(4508),t),s(r(7784),t),s(r(1942),t),s(r(5583),t),s(r(7109),t),s(r(4984),t),s(r(2353),t),s(r(888),t),s(r(4244),t),s(r(3434),t),s(r(510),t),s(r(9494),t),s(r(9935),t),s(r(9098),t),s(r(5535),t),s(r(3115),t),s(r(6121),t),s(r(7623),t),s(r(8793),t),s(r(8082),t),s(r(2015),t),s(r(8365),t),s(r(5959),t),s(r(3371),t),s(r(9637),t),s(r(2619),t),s(r(6342),t),s(r(8467),t),s(r(8883),t),s(r(1918),t),s(r(3050),t),s(r(6261),t),s(r(54),t),s(r(1553),t),s(r(6903),t),s(r(8086),t),s(r(8646),t),s(r(5867),t),s(r(4264),t),s(r(2659),t)},6760:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5577:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9143:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2158:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6828:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6764:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4653:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7565:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},993:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9123:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3146:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3826:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2633:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8752:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9571:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6195:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1720:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7742:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7527:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},831:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7871:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7446:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5718:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8707:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4948:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4189:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3647:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8159:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8407:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3015:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7170:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9416:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1811:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4609:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},765:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2270:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7120:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4508:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7784:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1942:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5583:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7109:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2353:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4984:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},888:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4244:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3434:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},510:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9494:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9935:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9098:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5535:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3115:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6121:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7623:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8793:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2015:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8082:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8365:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3371:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9637:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2619:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6342:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5959:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8467:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8883:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1918:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3050:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6261:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6903:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8086:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1553:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8646:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5867:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4264:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},54:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2659:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4700:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(s,i){function o(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?s(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,a)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.requestAfterHook=void 0,t.requestAfterHook=function(e){return n(this,void 0,void 0,(function*(){const{configuration:t,basePath:s,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(s,"").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 f=yield function(e,t){return n(this,void 0,void 0,(function*(){if("undefined"!=typeof process&&process.versions&&process.versions.node){const n=r(2349).createHmac("sha256",t);return n.update(e),n.digest("base64")}{const r=new TextEncoder,n=r.encode(t),s=r.encode(e),i=yield globalThis.crypto.subtle.importKey("raw",n,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),o=yield globalThis.crypto.subtle.sign("HMAC",i,s),a=Array.from(new Uint8Array(o));return btoa(String.fromCharCode.apply(null,a))}}))}(d,a);i.options.headers&&(i.options.headers.Signature=f)}))}},8917:(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()}},6642:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.requestBeforeUrlHook=void 0,t.requestBeforeUrlHook=function(e){}},2349:()=>{},4088:(e,t,r)=>{"use strict";function n(e,t){return function(){return e.apply(t,arguments)}}const{toString:s}=Object.prototype,{getPrototypeOf:i}=Object,o=(a=Object.create(null),e=>{const t=s.call(e);return a[t]||(a[t]=t.slice(8,-1).toLowerCase())});var a;const c=e=>(e=e.toLowerCase(),t=>o(t)===e),u=e=>t=>typeof t===e,{isArray:d}=Array,l=u("undefined"),p=c("ArrayBuffer"),h=u("string"),f=u("function"),g=u("number"),y=e=>null!==e&&"object"==typeof e,m=e=>{if("object"!==o(e))return!1;const t=i(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},b=c("Date"),A=c("File"),O=c("Blob"),P=c("FileList"),j=c("URLSearchParams"),[v,S,_,T]=["ReadableStream","Request","Response","Headers"].map(c);function k(e,t,{allOwnKeys:r=!1}={}){if(null==e)return;let n,s;if("object"!=typeof e&&(e=[e]),d(e))for(n=0,s=e.length;n<s;n++)t.call(null,e[n],n,e);else{const s=r?Object.getOwnPropertyNames(e):Object.keys(e),i=s.length;let o;for(n=0;n<i;n++)o=s[n],t.call(null,e[o],o,e)}}function E(e,t){t=t.toLowerCase();const r=Object.keys(e);let n,s=r.length;for(;s-- >0;)if(n=r[s],t===n.toLowerCase())return n;return null}const I="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:r.g,U=e=>!l(e)&&e!==I,R=(w="undefined"!=typeof Uint8Array&&i(Uint8Array),e=>w&&e instanceof w);var w;const B=c("HTMLFormElement"),x=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),M=c("RegExp"),C=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};k(r,((r,s)=>{let i;!1!==(i=t(r,s,e))&&(n[s]=i||r)})),Object.defineProperties(e,n)},q="abcdefghijklmnopqrstuvwxyz",N="0123456789",F={DIGIT:N,ALPHA:q,ALPHA_DIGIT:q+q.toUpperCase()+N},D=c("AsyncFunction"),L=(K="function"==typeof setImmediate,H=f(I.postMessage),K?setImmediate:H?(z=`axios@${Math.random()}`,G=[],I.addEventListener("message",(({source:e,data:t})=>{e===I&&t===z&&G.length&&G.shift()()}),!1),e=>{G.push(e),I.postMessage(z,"*")}):e=>setTimeout(e));var K,H,z,G;const Y="undefined"!=typeof queueMicrotask?queueMicrotask.bind(I):"undefined"!=typeof process&&process.nextTick||L;var J={isArray:d,isArrayBuffer:p,isBuffer:function(e){return null!==e&&!l(e)&&null!==e.constructor&&!l(e.constructor)&&f(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||f(e.append)&&("formdata"===(t=o(e))||"object"===t&&f(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&p(e.buffer),t},isString:h,isNumber:g,isBoolean:e=>!0===e||!1===e,isObject:y,isPlainObject:m,isReadableStream:v,isRequest:S,isResponse:_,isHeaders:T,isUndefined:l,isDate:b,isFile:A,isBlob:O,isRegExp:M,isFunction:f,isStream:e=>y(e)&&f(e.pipe),isURLSearchParams:j,isTypedArray:R,isFileList:P,forEach:k,merge:function e(){const{caseless:t}=U(this)&&this||{},r={},n=(n,s)=>{const i=t&&E(r,s)||s;m(r[i])&&m(n)?r[i]=e(r[i],n):m(n)?r[i]=e({},n):d(n)?r[i]=n.slice():r[i]=n};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&k(arguments[e],n);return r},extend:(e,t,r,{allOwnKeys:s}={})=>(k(t,((t,s)=>{r&&f(t)?e[s]=n(t,r):e[s]=t}),{allOwnKeys:s}),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,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,r,n)=>{let s,o,a;const c={};if(t=t||{},null==e)return t;do{for(s=Object.getOwnPropertyNames(e),o=s.length;o-- >0;)a=s[o],n&&!n(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:o,kindOfTest:c,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return-1!==n&&n===r},toArray:e=>{if(!e)return null;if(d(e))return e;let t=e.length;if(!g(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let n;for(;(n=r.next())&&!n.done;){const r=n.value;t.call(e,r[0],r[1])}},matchAll:(e,t)=>{let r;const n=[];for(;null!==(r=e.exec(t));)n.push(r);return n},isHTMLForm:B,hasOwnProperty:x,hasOwnProp:x,reduceDescriptors:C,freezeMethods:e=>{C(e,((t,r)=>{if(f(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const n=e[r];f(n)&&(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={},n=e=>{e.forEach((e=>{r[e]=!0}))};return d(e)?n(e):n(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:E,global:I,isContextDefined:U,ALPHABET:F,generateString:(e=16,t=F.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r},isSpecCompliantForm:function(e){return!!(e&&f(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),r=(e,n)=>{if(y(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[n]=e;const s=d(e)?[]:{};return k(e,((e,t)=>{const i=r(e,n+1);!l(i)&&(s[t]=i)})),t[n]=void 0,s}}return e};return r(e,0)},isAsyncFn:D,isThenable:e=>e&&(y(e)||f(e))&&f(e.then)&&f(e.catch),setImmediate:L,asap:Y};function $(e,t,r,n,s){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),n&&(this.request=n),s&&(this.response=s,this.status=s.status?s.status:null)}J.inherits($,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:J.toJSONObject(this.config),code:this.code,status:this.status}}});const Q=$.prototype,W={};function V(e){return J.isPlainObject(e)||J.isArray(e)}function X(e){return J.endsWith(e,"[]")?e.slice(0,-2):e}function Z(e,t,r){return e?e.concat(t).map((function(e,t){return e=X(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=>{W[e]={value:e}})),Object.defineProperties($,W),Object.defineProperty(Q,"isAxiosError",{value:!0}),$.from=(e,t,r,n,s,i)=>{const o=Object.create(Q);return J.toFlatObject(e,o,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),$.call(o,e.message,t,r,n,s),o.cause=e,o.name=e.name,i&&Object.assign(o,i),o};const ee=J.toFlatObject(J,{},null,(function(e){return/^is[A-Z]/.test(e)}));function te(e,t,r){if(!J.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const n=(r=J.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!J.isUndefined(t[e])}))).metaTokens,s=r.visitor||u,i=r.dots,o=r.indexes,a=(r.Blob||"undefined"!=typeof Blob&&Blob)&&J.isSpecCompliantForm(t);if(!J.isFunction(s))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(J.isDate(e))return e.toISOString();if(!a&&J.isBlob(e))throw new $("Blob is not supported. Use a Buffer instead.");return J.isArrayBuffer(e)||J.isTypedArray(e)?a&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,r,s){let a=e;if(e&&!s&&"object"==typeof e)if(J.endsWith(r,"{}"))r=n?r:r.slice(0,-2),e=JSON.stringify(e);else if(J.isArray(e)&&function(e){return J.isArray(e)&&!e.some(V)}(e)||(J.isFileList(e)||J.endsWith(r,"[]"))&&(a=J.toArray(e)))return r=X(r),a.forEach((function(e,n){!J.isUndefined(e)&&null!==e&&t.append(!0===o?Z([r],n,i):null===o?r:r+"[]",c(e))})),!1;return!!V(e)||(t.append(Z(s,r,i),c(e)),!1)}const d=[],l=Object.assign(ee,{defaultVisitor:u,convertValue:c,isVisitable:V});if(!J.isObject(e))throw new TypeError("data must be an object");return function e(r,n){if(!J.isUndefined(r)){if(-1!==d.indexOf(r))throw Error("Circular reference detected in "+n.join("."));d.push(r),J.forEach(r,(function(r,i){!0===(!(J.isUndefined(r)||null===r)&&s.call(t,r,J.isString(i)?i.trim():i,n,l))&&e(r,n?n.concat(i):[i])})),d.pop()}}(e),t}function re(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function ne(e,t){this._pairs=[],e&&te(e,this,t)}const se=ne.prototype;function ie(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function oe(e,t,r){if(!t)return e;const n=r&&r.encode||ie;J.isFunction(r)&&(r={serialize:r});const s=r&&r.serialize;let i;if(i=s?s(t,r):J.isURLSearchParams(t)?t.toString():new ne(t,r).toString(n),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,re)}:re;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var ae=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){J.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},ce={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ue={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:ne,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const de="undefined"!=typeof window&&"undefined"!=typeof document,le="object"==typeof navigator&&navigator||void 0,pe=de&&(!le||["ReactNative","NativeScript","NS"].indexOf(le.product)<0),he="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,fe=de&&window.location.href||"http://localhost";var ge={...Object.freeze({__proto__:null,hasBrowserEnv:de,hasStandardBrowserWebWorkerEnv:he,hasStandardBrowserEnv:pe,navigator:le,origin:fe}),...ue};function ye(e){function t(e,r,n,s){let i=e[s++];if("__proto__"===i)return!0;const o=Number.isFinite(+i),a=s>=e.length;return i=!i&&J.isArray(n)?n.length:i,a?(J.hasOwnProp(n,i)?n[i]=[n[i],r]:n[i]=r,!o):(n[i]&&J.isObject(n[i])||(n[i]=[]),t(e,r,n[i],s)&&J.isArray(n[i])&&(n[i]=function(e){const t={},r=Object.keys(e);let n;const s=r.length;let i;for(n=0;n<s;n++)i=r[n],t[i]=e[i];return t}(n[i])),!o)}if(J.isFormData(e)&&J.isFunction(e.entries)){const r={};return J.forEachEntry(e,((e,n)=>{t(function(e){return J.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),n,r,0)})),r}return null}const me={transitional:ce,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,s=J.isObject(e);if(s&&J.isHTMLForm(e)&&(e=new FormData(e)),J.isFormData(e))return n?JSON.stringify(ye(e)):e;if(J.isArrayBuffer(e)||J.isBuffer(e)||J.isStream(e)||J.isFile(e)||J.isBlob(e)||J.isReadableStream(e))return e;if(J.isArrayBufferView(e))return e.buffer;if(J.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(s){if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return te(e,new ge.classes.URLSearchParams,Object.assign({visitor:function(e,t,r,n){return ge.isNode&&J.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=J.isFileList(e))||r.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return te(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return s||n?(t.setContentType("application/json",!1),function(e){if(J.isString(e))try{return(0,JSON.parse)(e),J.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||me.transitional,r=t&&t.forcedJSONParsing,n="json"===this.responseType;if(J.isResponse(e)||J.isReadableStream(e))return e;if(e&&J.isString(e)&&(r&&!this.responseType||n)){const r=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(e){if(r){if("SyntaxError"===e.name)throw $.from(e,$.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}}};J.forEach(["delete","get","head","post","put","patch"],(e=>{me.headers[e]={}}));var be=me;const Ae=J.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 Pe(e){return e&&String(e).trim().toLowerCase()}function je(e){return!1===e||null==e?e:J.isArray(e)?e.map(je):String(e)}function ve(e,t,r,n,s){return J.isFunction(n)?n.call(this,t,r):(s&&(t=r),J.isString(t)?J.isString(n)?-1!==t.indexOf(n):J.isRegExp(n)?n.test(t):void 0:void 0)}class Se{constructor(e){e&&this.set(e)}set(e,t,r){const n=this;function s(e,t,r){const s=Pe(t);if(!s)throw new Error("header name must be a non-empty string");const i=J.findKey(n,s);(!i||void 0===n[i]||!0===r||void 0===r&&!1!==n[i])&&(n[i||t]=je(e))}const i=(e,t)=>J.forEach(e,((e,r)=>s(e,r,t)));if(J.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(J.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const t={};let r,n,s;return e&&e.split("\n").forEach((function(e){s=e.indexOf(":"),r=e.substring(0,s).trim().toLowerCase(),n=e.substring(s+1).trim(),!r||t[r]&&Ae[r]||("set-cookie"===r?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)})),t})(e),t);else if(J.isHeaders(e))for(const[t,n]of e.entries())s(n,t,r);else null!=e&&s(t,e,r);return this}get(e,t){if(e=Pe(e)){const r=J.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 n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}(e);if(J.isFunction(t))return t.call(this,e,r);if(J.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Pe(e)){const r=J.findKey(this,e);return!(!r||void 0===this[r]||t&&!ve(0,this[r],r,t))}return!1}delete(e,t){const r=this;let n=!1;function s(e){if(e=Pe(e)){const s=J.findKey(r,e);!s||t&&!ve(0,r[s],s,t)||(delete r[s],n=!0)}}return J.isArray(e)?e.forEach(s):s(e),n}clear(e){const t=Object.keys(this);let r=t.length,n=!1;for(;r--;){const s=t[r];e&&!ve(0,this[s],s,e,!0)||(delete this[s],n=!0)}return n}normalize(e){const t=this,r={};return J.forEach(this,((n,s)=>{const i=J.findKey(r,s);if(i)return t[i]=je(n),void delete t[s];const o=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,r)=>t.toUpperCase()+r))}(s):String(s).trim();o!==s&&delete t[s],t[o]=je(n),r[o]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return J.forEach(this,((r,n)=>{null!=r&&!1!==r&&(t[n]=e&&J.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")}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 n(e){const n=Pe(e);t[n]||(function(e,t){const r=J.toCamelCase(" "+t);["get","set","has"].forEach((n=>{Object.defineProperty(e,n+r,{value:function(e,r,s){return this[n].call(this,t,e,r,s)},configurable:!0})}))}(r,e),t[n]=!0)}return J.isArray(e)?e.forEach(n):n(e),this}}Se.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),J.reduceDescriptors(Se.prototype,(({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}})),J.freezeMethods(Se);var _e=Se;function Te(e,t){const r=this||be,n=t||r,s=_e.from(n.headers);let i=n.data;return J.forEach(e,(function(e){i=e.call(r,i,s.normalize(),t?t.status:void 0)})),s.normalize(),i}function ke(e){return!(!e||!e.__CANCEL__)}function Ee(e,t,r){$.call(this,null==e?"canceled":e,$.ERR_CANCELED,t,r),this.name="CanceledError"}function Ie(e,t,r){const n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(new $("Request failed with status code "+r.status,[$.ERR_BAD_REQUEST,$.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}J.inherits(Ee,$,{__CANCEL__:!0});const Ue=(e,t,r=3)=>{let n=0;const s=function(e,t){e=e||10;const r=new Array(e),n=new Array(e);let s,i=0,o=0;return t=void 0!==t?t:1e3,function(a){const c=Date.now(),u=n[o];s||(s=c),r[i]=a,n[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-s<t)return;const p=u&&c-u;return p?Math.round(1e3*l/p):void 0}}(50,250);return function(e,t){let r,n,s=0,i=1e3/t;const o=(t,i=Date.now())=>{s=i,r=null,n&&(clearTimeout(n),n=null),e.apply(null,t)};return[(...e)=>{const t=Date.now(),a=t-s;a>=i?o(e,t):(r=e,n||(n=setTimeout((()=>{n=null,o(r)}),i-a)))},()=>r&&o(r)]}((r=>{const i=r.loaded,o=r.lengthComputable?r.total:void 0,a=i-n,c=s(a);n=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)},Re=(e,t)=>{const r=null!=e;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},we=e=>(...t)=>J.asap((()=>e(...t)));var Be=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,xe=ge.hasStandardBrowserEnv?{write(e,t,r,n,s,i){const o=[e+"="+encodeURIComponent(t)];J.isNumber(r)&&o.push("expires="+new Date(r).toGMTString()),J.isString(n)&&o.push("path="+n),J.isString(s)&&o.push("domain="+s),!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 Me(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Ce=e=>e instanceof _e?{...e}:e;function qe(e,t){t=t||{};const r={};function n(e,t,r,n){return J.isPlainObject(e)&&J.isPlainObject(t)?J.merge.call({caseless:n},e,t):J.isPlainObject(t)?J.merge({},t):J.isArray(t)?t.slice():t}function s(e,t,r,s){return J.isUndefined(t)?J.isUndefined(e)?void 0:n(void 0,e,0,s):n(e,t,0,s)}function i(e,t){if(!J.isUndefined(t))return n(void 0,t)}function o(e,t){return J.isUndefined(t)?J.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function a(r,s,i){return i in t?n(r,s):i in e?n(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)=>s(Ce(e),Ce(t),0,!0)};return J.forEach(Object.keys(Object.assign({},e,t)),(function(n){const i=c[n]||s,o=i(e[n],t[n],n);J.isUndefined(o)&&i!==a||(r[n]=o)})),r}var Ne=e=>{const t=qe({},e);let r,{data:n,withXSRFToken:s,xsrfHeaderName:i,xsrfCookieName:o,headers:a,auth:c}=t;if(t.headers=a=_e.from(a),t.url=oe(Me(t.baseURL,t.url),e.params,e.paramsSerializer),c&&a.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),J.isFormData(n))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&&(s&&J.isFunction(s)&&(s=s(t)),s||!1!==s&&Be(t.url))){const e=i&&o&&xe.read(o);e&&a.set(i,e)}return t},Fe="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,r){const n=Ne(e);let s=n.data;const i=_e.from(n.headers).normalize();let o,a,c,u,d,{responseType:l,onUploadProgress:p,onDownloadProgress:h}=n;function f(){u&&u(),d&&d(),n.cancelToken&&n.cancelToken.unsubscribe(o),n.signal&&n.signal.removeEventListener("abort",o)}let g=new XMLHttpRequest;function y(){if(!g)return;const n=_e.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders());Ie((function(e){t(e),f()}),(function(e){r(e),f()}),{data:l&&"text"!==l&&"json"!==l?g.response:g.responseText,status:g.status,statusText:g.statusText,headers:n,config:e,request:g}),g=null}g.open(n.method.toUpperCase(),n.url,!0),g.timeout=n.timeout,"onloadend"in g?g.onloadend=y:g.onreadystatechange=function(){g&&4===g.readyState&&(0!==g.status||g.responseURL&&0===g.responseURL.indexOf("file:"))&&setTimeout(y)},g.onabort=function(){g&&(r(new $("Request aborted",$.ECONNABORTED,e,g)),g=null)},g.onerror=function(){r(new $("Network Error",$.ERR_NETWORK,e,g)),g=null},g.ontimeout=function(){let t=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const s=n.transitional||ce;n.timeoutErrorMessage&&(t=n.timeoutErrorMessage),r(new $(t,s.clarifyTimeoutError?$.ETIMEDOUT:$.ECONNABORTED,e,g)),g=null},void 0===s&&i.setContentType(null),"setRequestHeader"in g&&J.forEach(i.toJSON(),(function(e,t){g.setRequestHeader(t,e)})),J.isUndefined(n.withCredentials)||(g.withCredentials=!!n.withCredentials),l&&"json"!==l&&(g.responseType=n.responseType),h&&([c,d]=Ue(h,!0),g.addEventListener("progress",c)),p&&g.upload&&([a,u]=Ue(p),g.upload.addEventListener("progress",a),g.upload.addEventListener("loadend",u)),(n.cancelToken||n.signal)&&(o=t=>{g&&(r(!t||t.type?new Ee(null,e,g):t),g.abort(),g=null)},n.cancelToken&&n.cancelToken.subscribe(o),n.signal&&(n.signal.aborted?o():n.signal.addEventListener("abort",o)));const m=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(n.url);m&&-1===ge.protocols.indexOf(m)?r(new $("Unsupported protocol "+m+":",$.ERR_BAD_REQUEST,e)):g.send(s||null)}))},De=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let r,n=new AbortController;const s=function(e){if(!r){r=!0,o();const t=e instanceof Error?e:this.reason;n.abort(t instanceof $?t:new Ee(t instanceof Error?t.message:t))}};let i=t&&setTimeout((()=>{i=null,s(new $(`timeout ${t} of ms exceeded`,$.ETIMEDOUT))}),t);const o=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach((e=>{e.unsubscribe?e.unsubscribe(s):e.removeEventListener("abort",s)})),e=null)};e.forEach((e=>e.addEventListener("abort",s)));const{signal:a}=n;return a.unsubscribe=()=>J.asap(o),a}};const Le=function*(e,t){let r=e.byteLength;if(!t||r<t)return void(yield e);let n,s=0;for(;s<r;)n=s+t,yield e.slice(s,n),s=n},Ke=(e,t,r,n)=>{const s=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*Le(r,t)}(e,t);let i,o=0,a=e=>{i||(i=!0,n&&n(e))};return new ReadableStream({async pull(e){try{const{done:t,value:n}=await s.next();if(t)return a(),void e.close();let i=n.byteLength;if(r){let e=o+=i;r(e)}e.enqueue(new Uint8Array(n))}catch(e){throw a(e),e}},cancel:e=>(a(e),s.return())},{highWaterMark:2})},He="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,ze=He&&"function"==typeof ReadableStream,Ge=He&&("function"==typeof TextEncoder?(Ye=new TextEncoder,e=>Ye.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var Ye;const Je=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},$e=ze&&Je((()=>{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})),Qe=ze&&Je((()=>J.isReadableStream(new Response("").body))),We={stream:Qe&&(e=>e.body)};var Ve;He&&(Ve=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!We[e]&&(We[e]=J.isFunction(Ve[e])?t=>t[e]():(t,r)=>{throw new $(`Response type '${e}' is not supported`,$.ERR_NOT_SUPPORT,r)})})));const Xe={http:null,xhr:Fe,fetch:He&&(async e=>{let{url:t,method:r,data:n,signal:s,cancelToken:i,timeout:o,onDownloadProgress:a,onUploadProgress:c,responseType:u,headers:d,withCredentials:l="same-origin",fetchOptions:p}=Ne(e);u=u?(u+"").toLowerCase():"text";let h,f=De([s,i&&i.toAbortSignal()],o);const g=f&&f.unsubscribe&&(()=>{f.unsubscribe()});let y;try{if(c&&$e&&"get"!==r&&"head"!==r&&0!==(y=await(async(e,t)=>{const r=J.toFiniteNumber(e.getContentLength());return null==r?(async e=>{if(null==e)return 0;if(J.isBlob(e))return e.size;if(J.isSpecCompliantForm(e)){const t=new Request(ge.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return J.isArrayBufferView(e)||J.isArrayBuffer(e)?e.byteLength:(J.isURLSearchParams(e)&&(e+=""),J.isString(e)?(await Ge(e)).byteLength:void 0)})(t):r})(d,n))){let e,r=new Request(t,{method:"POST",body:n,duplex:"half"});if(J.isFormData(n)&&(e=r.headers.get("content-type"))&&d.setContentType(e),r.body){const[e,t]=Re(y,Ue(we(c)));n=Ke(r.body,65536,e,t)}}J.isString(l)||(l=l?"include":"omit");const s="credentials"in Request.prototype;h=new Request(t,{...p,signal:f,method:r.toUpperCase(),headers:d.normalize().toJSON(),body:n,duplex:"half",credentials:s?l:void 0});let i=await fetch(h);const o=Qe&&("stream"===u||"response"===u);if(Qe&&(a||o&&g)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=i[t]}));const t=J.toFiniteNumber(i.headers.get("content-length")),[r,n]=a&&Re(t,Ue(we(a),!0))||[];i=new Response(Ke(i.body,65536,r,(()=>{n&&n(),g&&g()})),e)}u=u||"text";let m=await We[J.findKey(We,u)||"text"](i,e);return!o&&g&&g(),await new Promise(((t,r)=>{Ie(t,r,{data:m,headers:_e.from(i.headers),status:i.status,statusText:i.statusText,config:e,request:h})}))}catch(t){if(g&&g(),t&&"TypeError"===t.name&&/fetch/i.test(t.message))throw Object.assign(new $("Network Error",$.ERR_NETWORK,e,h),{cause:t.cause||t});throw $.from(t,t&&t.code,e,h)}})};J.forEach(Xe,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const Ze=e=>`- ${e}`,et=e=>J.isFunction(e)||null===e||!1===e;var tt=e=>{e=J.isArray(e)?e:[e];const{length:t}=e;let r,n;const s={};for(let i=0;i<t;i++){let t;if(r=e[i],n=r,!et(r)&&(n=Xe[(t=String(r)).toLowerCase()],void 0===n))throw new $(`Unknown adapter '${t}'`);if(n)break;s[t||"#"+i]=n}if(!n){const e=Object.entries(s).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));throw new $("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(Ze).join("\n"):" "+Ze(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return n};function rt(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ee(null,e)}function nt(e){return rt(e),e.headers=_e.from(e.headers),e.data=Te.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),tt(e.adapter||be.adapter)(e).then((function(t){return rt(e),t.data=Te.call(e,e.transformResponse,t),t.headers=_e.from(t.headers),t}),(function(t){return ke(t)||(rt(e),t&&t.response&&(t.response.data=Te.call(e,e.transformResponse,t.response),t.response.headers=_e.from(t.response.headers))),Promise.reject(t)}))}const st={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{st[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));const it={};st.transitional=function(e,t,r){function n(e,t){return"[Axios v1.7.9] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,s,i)=>{if(!1===e)throw new $(n(s," has been removed"+(t?" in "+t:"")),$.ERR_DEPRECATED);return t&&!it[s]&&(it[s]=!0,console.warn(n(s," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,s,i)}},st.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 $("options must be an object",$.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let s=n.length;for(;s-- >0;){const i=n[s],o=t[i];if(o){const t=e[i],r=void 0===t||o(t,i,e);if(!0!==r)throw new $("option "+i+" must be "+r,$.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new $("Unknown option "+i,$.ERR_BAD_OPTION)}},validators:st};const at=ot.validators;class ct{constructor(e){this.defaults=e,this.interceptors={request:new ae,response:new ae}}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=qe(this.defaults,t);const{transitional:r,paramsSerializer:n,headers:s}=t;void 0!==r&&ot.assertOptions(r,{silentJSONParsing:at.transitional(at.boolean),forcedJSONParsing:at.transitional(at.boolean),clarifyTimeoutError:at.transitional(at.boolean)},!1),null!=n&&(J.isFunction(n)?t.paramsSerializer={serialize:n}:ot.assertOptions(n,{encode:at.function,serialize:at.function},!0)),ot.assertOptions(t,{baseUrl:at.spelling("baseURL"),withXsrfToken:at.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=s&&J.merge(s.common,s[t.method]);s&&J.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete s[e]})),t.headers=_e.concat(i,s);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=[nt.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=nt.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 oe(Me((e=qe(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}J.forEach(["delete","get","head","options"],(function(e){ct.prototype[e]=function(t,r){return this.request(qe(r||{},{method:e,url:t,data:(r||{}).data}))}})),J.forEach(["post","put","patch"],(function(e){function t(t){return function(r,n,s){return this.request(qe(s||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}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 n=new Promise((e=>{r.subscribe(e),t=e})).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e((function(e,n,s){r.reason||(r.reason=new Ee(e,n,s),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 ft=function e(t){const r=new ut(t),s=n(ut.prototype.request,r);return J.extend(s,ut.prototype,r,{allOwnKeys:!0}),J.extend(s,r,null,{allOwnKeys:!0}),s.create=function(r){return e(qe(t,r))},s}(be);ft.Axios=ut,ft.CanceledError=Ee,ft.CancelToken=lt,ft.isCancel=ke,ft.VERSION="1.7.9",ft.toFormData=te,ft.AxiosError=$,ft.Cancel=ft.CanceledError,ft.all=function(e){return Promise.all(e)},ft.spread=function(e){return function(t){return e.apply(null,t)}},ft.isAxiosError=function(e){return J.isObject(e)&&!0===e.isAxiosError},ft.mergeConfig=qe,ft.AxiosHeaders=_e,ft.formToJSON=e=>ye(J.isHTMLForm(e)?new FormData(e):e),ft.getAdapter=tt,ft.HttpStatusCode=ht,ft.default=ft,e.exports=ft}},t={};function r(n){var s=t[n];if(void 0!==s)return s.exports;var i=t[n]={exports:{}};return e[n].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(2316)})()));
1
+ !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={3708:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var s=Object.getOwnPropertyDescriptor(t,r);s&&!("get"in s?!t.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,s)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),s=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),s(r(8598),t),s(r(459),t),s(r(7766),t),s(r(2319),t),s(r(4420),t),s(r(502),t),s(r(9819),t),s(r(9900),t)},2734:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(s,i){function o(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?s(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,a)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.AccountInformationApiGenerated=t.AccountInformationApiFactory=t.AccountInformationApiFp=t.AccountInformationApiAxiosParamCreator=void 0;const s=r(4088),i=r(6479),o=r(7275),a=r(8917);t.AccountInformationApiAxiosParamCreator=function(e){return{getAccountActivities:(t,r,s,o,c,u,d,l,p={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getAccountActivities","accountId",t),(0,i.assertParamExists)("getAccountActivities","userId",r),(0,i.assertParamExists)("getAccountActivities","userSecret",s);const n="/accounts/{accountId}/activities".replace("{accountId}",encodeURIComponent(String(void 0!==t?t:"-accountId-"))),h=new URL(n,i.DUMMY_BASE_URL);let f;e&&(f=e.baseOptions);const g=Object.assign(Object.assign({method:"GET"},f),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!==s&&(m.userSecret=s);let b=f&&f.headers?f.headers:{};return g.headers=Object.assign(Object.assign(Object.assign({},y),b),p.headers),(0,a.requestBeforeHook)({queryParameters:m,requestConfig:g,path:n,configuration:e,pathTemplate:"/accounts/{accountId}/activities",httpMethod:"GET"}),(0,i.setSearchParams)(h,m),{url:(0,i.toPathString)(h),options:g}})),getAllUserHoldings:(t,r,s,o={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getAllUserHoldings","userId",t),(0,i.assertParamExists)("getAllUserHoldings","userSecret",r);const n="/holdings",c=new URL(n,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!==s&&(p.brokerage_authorizations=s);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:n,configuration:e,pathTemplate:"/holdings",httpMethod:"GET"}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}})),getUserAccountBalance:(t,r,s,o={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getUserAccountBalance","userId",t),(0,i.assertParamExists)("getUserAccountBalance","userSecret",r),(0,i.assertParamExists)("getUserAccountBalance","accountId",s);const n="/accounts/{accountId}/balances".replace("{accountId}",encodeURIComponent(String(void 0!==s?s:"-accountId-"))),c=new URL(n,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:n,configuration:e,pathTemplate:"/accounts/{accountId}/balances",httpMethod:"GET"}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}})),getUserAccountDetails:(t,r,s,o={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getUserAccountDetails","userId",t),(0,i.assertParamExists)("getUserAccountDetails","userSecret",r),(0,i.assertParamExists)("getUserAccountDetails","accountId",s);const n="/accounts/{accountId}".replace("{accountId}",encodeURIComponent(String(void 0!==s?s:"-accountId-"))),c=new URL(n,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:n,configuration:e,pathTemplate:"/accounts/{accountId}",httpMethod:"GET"}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}})),getUserAccountOrders:(t,r,s,o,c,u={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getUserAccountOrders","userId",t),(0,i.assertParamExists)("getUserAccountOrders","userSecret",r),(0,i.assertParamExists)("getUserAccountOrders","accountId",s);const n="/accounts/{accountId}/orders".replace("{accountId}",encodeURIComponent(String(void 0!==s?s:"-accountId-"))),d=new URL(n,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}:{},f={};yield(0,i.setApiKeyToObject)({object:f,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:h,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:f,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(f.userId=t),void 0!==r&&(f.userSecret=r),void 0!==o&&(f.state=o),void 0!==c&&(f.days=c);let g=l&&l.headers?l.headers:{};return p.headers=Object.assign(Object.assign(Object.assign({},h),g),u.headers),(0,a.requestBeforeHook)({queryParameters:f,requestConfig:p,path:n,configuration:e,pathTemplate:"/accounts/{accountId}/orders",httpMethod:"GET"}),(0,i.setSearchParams)(d,f),{url:(0,i.toPathString)(d),options:p}})),getUserAccountPositions:(t,r,s,o={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getUserAccountPositions","userId",t),(0,i.assertParamExists)("getUserAccountPositions","userSecret",r),(0,i.assertParamExists)("getUserAccountPositions","accountId",s);const n="/accounts/{accountId}/positions".replace("{accountId}",encodeURIComponent(String(void 0!==s?s:"-accountId-"))),c=new URL(n,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:n,configuration:e,pathTemplate:"/accounts/{accountId}/positions",httpMethod:"GET"}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}})),getUserAccountRecentOrders:(t,r,s,o,c={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getUserAccountRecentOrders","userId",t),(0,i.assertParamExists)("getUserAccountRecentOrders","userSecret",r),(0,i.assertParamExists)("getUserAccountRecentOrders","accountId",s);const n="/accounts/{accountId}/recentOrders".replace("{accountId}",encodeURIComponent(String(void 0!==s?s:"-accountId-"))),u=new URL(n,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 f=d&&d.headers?d.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},p),f),c.headers),(0,a.requestBeforeHook)({queryParameters:h,requestConfig:l,path:n,configuration:e,pathTemplate:"/accounts/{accountId}/recentOrders",httpMethod:"GET"}),(0,i.setSearchParams)(u,h),{url:(0,i.toPathString)(u),options:l}})),getUserAccountReturnRates:(t,r,s,o={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getUserAccountReturnRates","userId",t),(0,i.assertParamExists)("getUserAccountReturnRates","userSecret",r),(0,i.assertParamExists)("getUserAccountReturnRates","accountId",s);const n="/accounts/{accountId}/returnRates".replace("{accountId}",encodeURIComponent(String(void 0!==s?s:"-accountId-"))),c=new URL(n,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:n,configuration:e,pathTemplate:"/accounts/{accountId}/returnRates",httpMethod:"GET"}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}})),getUserHoldings:(t,r,s,o={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getUserHoldings","accountId",t),(0,i.assertParamExists)("getUserHoldings","userId",r),(0,i.assertParamExists)("getUserHoldings","userSecret",s);const n="/accounts/{accountId}/holdings".replace("{accountId}",encodeURIComponent(String(void 0!==t?t:"-accountId-"))),c=new URL(n,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!==s&&(p.userSecret=s);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:n,configuration:e,pathTemplate:"/accounts/{accountId}/holdings",httpMethod:"GET"}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}})),listUserAccounts:(t,r,s={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("listUserAccounts","userId",t),(0,i.assertParamExists)("listUserAccounts","userSecret",r);const n="/accounts",o=new URL(n,i.DUMMY_BASE_URL);let c;e&&(c=e.baseOptions);const u=Object.assign(Object.assign({method:"GET"},c),s),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),s.headers),(0,a.requestBeforeHook)({queryParameters:l,requestConfig:u,path:n,configuration:e,pathTemplate:"/accounts",httpMethod:"GET"}),(0,i.setSearchParams)(o,l),{url:(0,i.toPathString)(o),options:u}})),updateUserAccount:(t,r,s,o={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("updateUserAccount","userId",t),(0,i.assertParamExists)("updateUserAccount","userSecret",r),(0,i.assertParamExists)("updateUserAccount","accountId",s);const n="/accounts/{accountId}".replace("{accountId}",encodeURIComponent(String(void 0!==s?s:"-accountId-"))),c=new URL(n,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:n,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 n(this,void 0,void 0,(function*(){const n=yield r.getAccountActivities(t.accountId,t.userId,t.userSecret,t.startDate,t.endDate,t.offset,t.limit,t.type,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},getAllUserHoldings(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.getAllUserHoldings(t.userId,t.userSecret,t.brokerageAuthorizations,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},getUserAccountBalance(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.getUserAccountBalance(t.userId,t.userSecret,t.accountId,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},getUserAccountDetails(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.getUserAccountDetails(t.userId,t.userSecret,t.accountId,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},getUserAccountOrders(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.getUserAccountOrders(t.userId,t.userSecret,t.accountId,t.state,t.days,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},getUserAccountPositions(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.getUserAccountPositions(t.userId,t.userSecret,t.accountId,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},getUserAccountRecentOrders(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.getUserAccountRecentOrders(t.userId,t.userSecret,t.accountId,t.onlyExecuted,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},getUserAccountReturnRates(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.getUserAccountReturnRates(t.userId,t.userSecret,t.accountId,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},getUserHoldings(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.getUserHoldings(t.accountId,t.userId,t.userSecret,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},listUserAccounts(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.listUserAccounts(t.userId,t.userSecret,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},updateUserAccount(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.updateUserAccount(t.userId,t.userSecret,t.accountId,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))}}},t.AccountInformationApiFactory=function(e,r,n){const s=(0,t.AccountInformationApiFp)(e);return{getAccountActivities:(e,t)=>s.getAccountActivities(e,t).then((e=>e(n,r))),getAllUserHoldings:(e,t)=>s.getAllUserHoldings(e,t).then((e=>e(n,r))),getUserAccountBalance:(e,t)=>s.getUserAccountBalance(e,t).then((e=>e(n,r))),getUserAccountDetails:(e,t)=>s.getUserAccountDetails(e,t).then((e=>e(n,r))),getUserAccountOrders:(e,t)=>s.getUserAccountOrders(e,t).then((e=>e(n,r))),getUserAccountPositions:(e,t)=>s.getUserAccountPositions(e,t).then((e=>e(n,r))),getUserAccountRecentOrders:(e,t)=>s.getUserAccountRecentOrders(e,t).then((e=>e(n,r))),getUserAccountReturnRates:(e,t)=>s.getUserAccountReturnRates(e,t).then((e=>e(n,r))),getUserHoldings:(e,t)=>s.getUserHoldings(e,t).then((e=>e(n,r))),listUserAccounts:(e,t)=>s.listUserAccounts(e,t).then((e=>e(n,r))),updateUserAccount:(e,t)=>s.updateUserAccount(e,t).then((e=>e(n,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},8598:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var s=Object.getOwnPropertyDescriptor(t,r);s&&!("get"in s?!t.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,s)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),s=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.AccountInformationApi=void 0;const i=r(2734);s(r(2734),t);class o extends i.AccountInformationApiGenerated{}t.AccountInformationApi=o},7971:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(s,i){function o(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?s(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,a)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.ApiStatusApiGenerated=t.ApiStatusApiFactory=t.ApiStatusApiFp=t.ApiStatusApiAxiosParamCreator=void 0;const s=r(4088),i=r(6479),o=r(7275),a=r(8917);t.ApiStatusApiAxiosParamCreator=function(e){return{check:(t={})=>n(this,void 0,void 0,(function*(){const r=new URL("/",i.DUMMY_BASE_URL);let n;e&&(n=e.baseOptions);const s=Object.assign(Object.assign({method:"GET"},n),t),o=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},c={};let u=n&&n.headers?n.headers:{};return s.headers=Object.assign(Object.assign(Object.assign({},o),u),t.headers),(0,a.requestBeforeHook)({queryParameters:c,requestConfig:s,path:"/",configuration:e,pathTemplate:"/",httpMethod:"GET"}),(0,i.setSearchParams)(r,c),{url:(0,i.toPathString)(r),options:s}}))}},t.ApiStatusApiFp=function(e){const r=(0,t.ApiStatusApiAxiosParamCreator)(e);return{check(t){return n(this,void 0,void 0,(function*(){const n=yield r.check(t);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))}}},t.ApiStatusApiFactory=function(e,r,n){const s=(0,t.ApiStatusApiFp)(e);return{check:e=>s.check(e).then((e=>e(n,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},459:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var s=Object.getOwnPropertyDescriptor(t,r);s&&!("get"in s?!t.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,s)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),s=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.ApiStatusApi=void 0;const i=r(7971);s(r(7971),t);class o extends i.ApiStatusApiGenerated{}t.ApiStatusApi=o},3022:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(s,i){function o(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?s(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,a)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.AuthenticationApiGenerated=t.AuthenticationApiFactory=t.AuthenticationApiFp=t.AuthenticationApiAxiosParamCreator=void 0;const s=r(4088),i=r(6479),o=r(7275),a=r(8917);t.AuthenticationApiAxiosParamCreator=function(e){return{deleteSnapTradeUser:(t,r={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("deleteSnapTradeUser","userId",t);const n="/snapTrade/deleteUser",s=new URL(n,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:n,configuration:e,pathTemplate:"/snapTrade/deleteUser",httpMethod:"DELETE"}),(0,i.setSearchParams)(s,d),{url:(0,i.toPathString)(s),options:c}})),listSnapTradeUsers:(t={})=>n(this,void 0,void 0,(function*(){const r="/snapTrade/listUsers",n=new URL(r,i.DUMMY_BASE_URL);let s;e&&(s=e.baseOptions);const o=Object.assign(Object.assign({method:"GET"},s),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=s&&s.headers?s.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)(n,u),{url:(0,i.toPathString)(n),options:o}})),loginSnapTradeUser:(t,r,s,o={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("loginSnapTradeUser","userId",t),(0,i.assertParamExists)("loginSnapTradeUser","userSecret",r);const n="/snapTrade/login",c=new URL(n,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:s,queryParameters:p,requestConfig:d,path:n,configuration:e,pathTemplate:"/snapTrade/login",httpMethod:"POST"}),d.data=(0,i.serializeDataIfNeeded)(s,d,e),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}})),registerSnapTradeUser:(t,r={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("registerSnapTradeUser","snapTradeRegisterUserRequestBody",t);const n="/snapTrade/registerUser",s=new URL(n,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:n,configuration:e,pathTemplate:"/snapTrade/registerUser",httpMethod:"POST"}),c.data=(0,i.serializeDataIfNeeded)(t,c,e),(0,i.setSearchParams)(s,d),{url:(0,i.toPathString)(s),options:c}})),resetSnapTradeUserSecret:(t,r={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("resetSnapTradeUserSecret","userIDandSecret",t);const n="/snapTrade/resetUserSecret",s=new URL(n,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:n,configuration:e,pathTemplate:"/snapTrade/resetUserSecret",httpMethod:"POST"}),c.data=(0,i.serializeDataIfNeeded)(t,c,e),(0,i.setSearchParams)(s,d),{url:(0,i.toPathString)(s),options:c}}))}},t.AuthenticationApiFp=function(e){const r=(0,t.AuthenticationApiAxiosParamCreator)(e);return{deleteSnapTradeUser(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.deleteSnapTradeUser(t.userId,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},listSnapTradeUsers(t){return n(this,void 0,void 0,(function*(){const n=yield r.listSnapTradeUsers(t);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},loginSnapTradeUser(t,a){return n(this,void 0,void 0,(function*(){const n={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,n,a);return(0,i.createRequestFunction)(c,s.default,o.BASE_PATH,e)}))},registerSnapTradeUser(t,a){return n(this,void 0,void 0,(function*(){const n={userId:t.userId},c=yield r.registerSnapTradeUser(n,a);return(0,i.createRequestFunction)(c,s.default,o.BASE_PATH,e)}))},resetSnapTradeUserSecret(t,a){return n(this,void 0,void 0,(function*(){const n={userId:t.userId,userSecret:t.userSecret},c=yield r.resetSnapTradeUserSecret(n,a);return(0,i.createRequestFunction)(c,s.default,o.BASE_PATH,e)}))}}},t.AuthenticationApiFactory=function(e,r,n){const s=(0,t.AuthenticationApiFp)(e);return{deleteSnapTradeUser:(e,t)=>s.deleteSnapTradeUser(e,t).then((e=>e(n,r))),listSnapTradeUsers:e=>s.listSnapTradeUsers(e).then((e=>e(n,r))),loginSnapTradeUser:(e,t)=>s.loginSnapTradeUser(e,t).then((e=>e(n,r))),registerSnapTradeUser:(e,t)=>s.registerSnapTradeUser(e,t).then((e=>e(n,r))),resetSnapTradeUserSecret:(e,t)=>s.resetSnapTradeUserSecret(e,t).then((e=>e(n,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},7766:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var s=Object.getOwnPropertyDescriptor(t,r);s&&!("get"in s?!t.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,s)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),s=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.AuthenticationApi=void 0;const i=r(3022);s(r(3022),t);class o extends i.AuthenticationApiGenerated{}t.AuthenticationApi=o},9239:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(s,i){function o(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?s(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,a)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectionsApiGenerated=t.ConnectionsApiFactory=t.ConnectionsApiFp=t.ConnectionsApiAxiosParamCreator=void 0;const s=r(4088),i=r(6479),o=r(7275),a=r(8917);t.ConnectionsApiAxiosParamCreator=function(e){return{detailBrokerageAuthorization:(t,r,s,o={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("detailBrokerageAuthorization","authorizationId",t),(0,i.assertParamExists)("detailBrokerageAuthorization","userId",r),(0,i.assertParamExists)("detailBrokerageAuthorization","userSecret",s);const n="/authorizations/{authorizationId}".replace("{authorizationId}",encodeURIComponent(String(void 0!==t?t:"-authorizationId-"))),c=new URL(n,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!==s&&(p.userSecret=s);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:n,configuration:e,pathTemplate:"/authorizations/{authorizationId}",httpMethod:"GET"}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}})),disableBrokerageAuthorization:(t,r,s,o={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("disableBrokerageAuthorization","authorizationId",t),(0,i.assertParamExists)("disableBrokerageAuthorization","userId",r),(0,i.assertParamExists)("disableBrokerageAuthorization","userSecret",s);const n="/authorizations/{authorizationId}/disable".replace("{authorizationId}",encodeURIComponent(String(void 0!==t?t:"-authorizationId-"))),c=new URL(n,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!==s&&(p.userSecret=s);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:n,configuration:e,pathTemplate:"/authorizations/{authorizationId}/disable",httpMethod:"POST"}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}})),listBrokerageAuthorizations:(t,r,s={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("listBrokerageAuthorizations","userId",t),(0,i.assertParamExists)("listBrokerageAuthorizations","userSecret",r);const n="/authorizations",o=new URL(n,i.DUMMY_BASE_URL);let c;e&&(c=e.baseOptions);const u=Object.assign(Object.assign({method:"GET"},c),s),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),s.headers),(0,a.requestBeforeHook)({queryParameters:l,requestConfig:u,path:n,configuration:e,pathTemplate:"/authorizations",httpMethod:"GET"}),(0,i.setSearchParams)(o,l),{url:(0,i.toPathString)(o),options:u}})),refreshBrokerageAuthorization:(t,r,s,o={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("refreshBrokerageAuthorization","authorizationId",t),(0,i.assertParamExists)("refreshBrokerageAuthorization","userId",r),(0,i.assertParamExists)("refreshBrokerageAuthorization","userSecret",s);const n="/authorizations/{authorizationId}/refresh".replace("{authorizationId}",encodeURIComponent(String(void 0!==t?t:"-authorizationId-"))),c=new URL(n,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!==s&&(p.userSecret=s);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:n,configuration:e,pathTemplate:"/authorizations/{authorizationId}/refresh",httpMethod:"POST"}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}})),removeBrokerageAuthorization:(t,r,s,o={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("removeBrokerageAuthorization","authorizationId",t),(0,i.assertParamExists)("removeBrokerageAuthorization","userId",r),(0,i.assertParamExists)("removeBrokerageAuthorization","userSecret",s);const n="/authorizations/{authorizationId}".replace("{authorizationId}",encodeURIComponent(String(void 0!==t?t:"-authorizationId-"))),c=new URL(n,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!==s&&(p.userSecret=s);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:n,configuration:e,pathTemplate:"/authorizations/{authorizationId}",httpMethod:"DELETE"}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}})),returnRates:(t,r,s,o={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("returnRates","userId",t),(0,i.assertParamExists)("returnRates","userSecret",r),(0,i.assertParamExists)("returnRates","authorizationId",s);const n="/authorizations/{authorizationId}/returnRates".replace("{authorizationId}",encodeURIComponent(String(void 0!==s?s:"-authorizationId-"))),c=new URL(n,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:n,configuration:e,pathTemplate:"/authorizations/{authorizationId}/returnRates",httpMethod:"GET"}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}})),sessionEvents:(t,r,s,o={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("sessionEvents","partnerClientId",t);const n="/sessionEvents",c=new URL(n,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!==s&&(p.sessionId=s);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:n,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 n(this,void 0,void 0,(function*(){const n=yield r.detailBrokerageAuthorization(t.authorizationId,t.userId,t.userSecret,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},disableBrokerageAuthorization(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.disableBrokerageAuthorization(t.authorizationId,t.userId,t.userSecret,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},listBrokerageAuthorizations(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.listBrokerageAuthorizations(t.userId,t.userSecret,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},refreshBrokerageAuthorization(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.refreshBrokerageAuthorization(t.authorizationId,t.userId,t.userSecret,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},removeBrokerageAuthorization(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.removeBrokerageAuthorization(t.authorizationId,t.userId,t.userSecret,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},returnRates(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.returnRates(t.userId,t.userSecret,t.authorizationId,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},sessionEvents(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.sessionEvents(t.partnerClientId,t.userId,t.sessionId,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))}}},t.ConnectionsApiFactory=function(e,r,n){const s=(0,t.ConnectionsApiFp)(e);return{detailBrokerageAuthorization:(e,t)=>s.detailBrokerageAuthorization(e,t).then((e=>e(n,r))),disableBrokerageAuthorization:(e,t)=>s.disableBrokerageAuthorization(e,t).then((e=>e(n,r))),listBrokerageAuthorizations:(e,t)=>s.listBrokerageAuthorizations(e,t).then((e=>e(n,r))),refreshBrokerageAuthorization:(e,t)=>s.refreshBrokerageAuthorization(e,t).then((e=>e(n,r))),removeBrokerageAuthorization:(e,t)=>s.removeBrokerageAuthorization(e,t).then((e=>e(n,r))),returnRates:(e,t)=>s.returnRates(e,t).then((e=>e(n,r))),sessionEvents:(e,t)=>s.sessionEvents(e,t).then((e=>e(n,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},2319:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var s=Object.getOwnPropertyDescriptor(t,r);s&&!("get"in s?!t.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,s)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),s=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectionsApi=void 0;const i=r(9239);s(r(9239),t);class o extends i.ConnectionsApiGenerated{}t.ConnectionsApi=o},9448:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(s,i){function o(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?s(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,a)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.OptionsApiGenerated=t.OptionsApiFactory=t.OptionsApiFp=t.OptionsApiAxiosParamCreator=void 0;const s=r(4088),i=r(6479),o=r(7275),a=r(8917);t.OptionsApiAxiosParamCreator=function(e){return{getOptionStrategy:(t,r,s,o,c={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getOptionStrategy","userId",t),(0,i.assertParamExists)("getOptionStrategy","userSecret",r),(0,i.assertParamExists)("getOptionStrategy","accountId",s),(0,i.assertParamExists)("getOptionStrategy","optionsGetOptionStrategyRequest",o);const n="/accounts/{accountId}/optionStrategy".replace("{accountId}",encodeURIComponent(String(void 0!==s?s:"-accountId-"))),u=new URL(n,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 f=d&&d.headers?d.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},p),f),c.headers),(0,a.requestBeforeHook)({requestBody:o,queryParameters:h,requestConfig:l,path:n,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,s,o,c={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getOptionsChain","userId",t),(0,i.assertParamExists)("getOptionsChain","userSecret",r),(0,i.assertParamExists)("getOptionsChain","accountId",s),(0,i.assertParamExists)("getOptionsChain","symbol",o);const n="/accounts/{accountId}/optionsChain".replace("{accountId}",encodeURIComponent(String(void 0!==s?s:"-accountId-"))),u=new URL(n,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 f=d&&d.headers?d.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},p),f),c.headers),(0,a.requestBeforeHook)({queryParameters:h,requestConfig:l,path:n,configuration:e,pathTemplate:"/accounts/{accountId}/optionsChain",httpMethod:"GET"}),(0,i.setSearchParams)(u,h),{url:(0,i.toPathString)(u),options:l}})),getOptionsStrategyQuote:(t,r,s,o,c={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getOptionsStrategyQuote","userId",t),(0,i.assertParamExists)("getOptionsStrategyQuote","userSecret",r),(0,i.assertParamExists)("getOptionsStrategyQuote","accountId",s),(0,i.assertParamExists)("getOptionsStrategyQuote","optionStrategyId",o);const n="/accounts/{accountId}/optionStrategy/{optionStrategyId}".replace("{accountId}",encodeURIComponent(String(void 0!==s?s:"-accountId-"))).replace("{optionStrategyId}",encodeURIComponent(String(void 0!==o?o:"-optionStrategyId-"))),u=new URL(n,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 f=d&&d.headers?d.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},p),f),c.headers),(0,a.requestBeforeHook)({queryParameters:h,requestConfig:l,path:n,configuration:e,pathTemplate:"/accounts/{accountId}/optionStrategy/{optionStrategyId}",httpMethod:"GET"}),(0,i.setSearchParams)(u,h),{url:(0,i.toPathString)(u),options:l}})),listOptionHoldings:(t,r,s,o={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("listOptionHoldings","userId",t),(0,i.assertParamExists)("listOptionHoldings","userSecret",r),(0,i.assertParamExists)("listOptionHoldings","accountId",s);const n="/accounts/{accountId}/options".replace("{accountId}",encodeURIComponent(String(void 0!==s?s:"-accountId-"))),c=new URL(n,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:n,configuration:e,pathTemplate:"/accounts/{accountId}/options",httpMethod:"GET"}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}})),placeOptionStrategy:(t,r,s,o,c,u={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("placeOptionStrategy","userId",t),(0,i.assertParamExists)("placeOptionStrategy","userSecret",r),(0,i.assertParamExists)("placeOptionStrategy","accountId",s),(0,i.assertParamExists)("placeOptionStrategy","optionStrategyId",o),(0,i.assertParamExists)("placeOptionStrategy","optionsPlaceOptionStrategyRequest",c);const n="/accounts/{accountId}/optionStrategy/{optionStrategyId}/execute".replace("{accountId}",encodeURIComponent(String(void 0!==s?s:"-accountId-"))).replace("{optionStrategyId}",encodeURIComponent(String(void 0!==o?o:"-optionStrategyId-"))),d=new URL(n,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}:{},f={};yield(0,i.setApiKeyToObject)({object:f,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:h,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:f,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(f.userId=t),void 0!==r&&(f.userSecret=r),h["Content-Type"]="application/json";let g=l&&l.headers?l.headers:{};return p.headers=Object.assign(Object.assign(Object.assign({},h),g),u.headers),(0,a.requestBeforeHook)({requestBody:c,queryParameters:f,requestConfig:p,path:n,configuration:e,pathTemplate:"/accounts/{accountId}/optionStrategy/{optionStrategyId}/execute",httpMethod:"POST"}),p.data=(0,i.serializeDataIfNeeded)(c,p,e),(0,i.setSearchParams)(d,f),{url:(0,i.toPathString)(d),options:p}}))}},t.OptionsApiFp=function(e){const r=(0,t.OptionsApiAxiosParamCreator)(e);return{getOptionStrategy(t,a){return n(this,void 0,void 0,(function*(){const n={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,n,a);return(0,i.createRequestFunction)(c,s.default,o.BASE_PATH,e)}))},getOptionsChain(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.getOptionsChain(t.userId,t.userSecret,t.accountId,t.symbol,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},getOptionsStrategyQuote(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.getOptionsStrategyQuote(t.userId,t.userSecret,t.accountId,t.optionStrategyId,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},listOptionHoldings(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.listOptionHoldings(t.userId,t.userSecret,t.accountId,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},placeOptionStrategy(t,a){return n(this,void 0,void 0,(function*(){const n={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,n,a);return(0,i.createRequestFunction)(c,s.default,o.BASE_PATH,e)}))}}},t.OptionsApiFactory=function(e,r,n){const s=(0,t.OptionsApiFp)(e);return{getOptionStrategy:(e,t)=>s.getOptionStrategy(e,t).then((e=>e(n,r))),getOptionsChain:(e,t)=>s.getOptionsChain(e,t).then((e=>e(n,r))),getOptionsStrategyQuote:(e,t)=>s.getOptionsStrategyQuote(e,t).then((e=>e(n,r))),listOptionHoldings:(e,t)=>s.listOptionHoldings(e,t).then((e=>e(n,r))),placeOptionStrategy:(e,t)=>s.placeOptionStrategy(e,t).then((e=>e(n,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},4420:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var s=Object.getOwnPropertyDescriptor(t,r);s&&!("get"in s?!t.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,s)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),s=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.OptionsApi=void 0;const i=r(9448);s(r(9448),t);class o extends i.OptionsApiGenerated{}t.OptionsApi=o},7342:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(s,i){function o(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?s(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,a)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.ReferenceDataApiGenerated=t.ReferenceDataApiFactory=t.ReferenceDataApiFp=t.ReferenceDataApiAxiosParamCreator=void 0;const s=r(4088),i=r(6479),o=r(7275),a=r(8917);t.ReferenceDataApiAxiosParamCreator=function(e){return{getCurrencyExchangeRatePair:(t,r={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getCurrencyExchangeRatePair","currencyPair",t);const n="/currencies/rates/{currencyPair}".replace("{currencyPair}",encodeURIComponent(String(void 0!==t?t:"-currencyPair-"))),s=new URL(n,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:n,configuration:e,pathTemplate:"/currencies/rates/{currencyPair}",httpMethod:"GET"}),(0,i.setSearchParams)(s,d),{url:(0,i.toPathString)(s),options:c}})),getPartnerInfo:(t={})=>n(this,void 0,void 0,(function*(){const r="/snapTrade/partners",n=new URL(r,i.DUMMY_BASE_URL);let s;e&&(s=e.baseOptions);const o=Object.assign(Object.assign({method:"GET"},s),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=s&&s.headers?s.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)(n,u),{url:(0,i.toPathString)(n),options:o}})),getSecurityTypes:(t={})=>n(this,void 0,void 0,(function*(){const r="/securityTypes",n=new URL(r,i.DUMMY_BASE_URL);let s;e&&(s=e.baseOptions);const o=Object.assign(Object.assign({method:"GET"},s),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=s&&s.headers?s.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)(n,u),{url:(0,i.toPathString)(n),options:o}})),getStockExchanges:(t={})=>n(this,void 0,void 0,(function*(){const r="/exchanges",n=new URL(r,i.DUMMY_BASE_URL);let s;e&&(s=e.baseOptions);const o=Object.assign(Object.assign({method:"GET"},s),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=s&&s.headers?s.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)(n,u),{url:(0,i.toPathString)(n),options:o}})),getSymbols:(t,r={})=>n(this,void 0,void 0,(function*(){const n="/symbols",s=new URL(n,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:n,configuration:e,pathTemplate:"/symbols",httpMethod:"POST"}),c.data=(0,i.serializeDataIfNeeded)(t,c,e),(0,i.setSearchParams)(s,d),{url:(0,i.toPathString)(s),options:c}})),getSymbolsByTicker:(t,r={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getSymbolsByTicker","query",t);const n="/symbols/{query}".replace("{query}",encodeURIComponent(String(void 0!==t?t:"-query-"))),s=new URL(n,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:n,configuration:e,pathTemplate:"/symbols/{query}",httpMethod:"GET"}),(0,i.setSearchParams)(s,d),{url:(0,i.toPathString)(s),options:c}})),listAllBrokerageAuthorizationType:(t,r={})=>n(this,void 0,void 0,(function*(){const n="/brokerageAuthorizationTypes",s=new URL(n,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:n,configuration:e,pathTemplate:"/brokerageAuthorizationTypes",httpMethod:"GET"}),(0,i.setSearchParams)(s,d),{url:(0,i.toPathString)(s),options:c}})),listAllBrokerages:(t={})=>n(this,void 0,void 0,(function*(){const r="/brokerages",n=new URL(r,i.DUMMY_BASE_URL);let s;e&&(s=e.baseOptions);const o=Object.assign(Object.assign({method:"GET"},s),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=s&&s.headers?s.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)(n,u),{url:(0,i.toPathString)(n),options:o}})),listAllCurrencies:(t={})=>n(this,void 0,void 0,(function*(){const r="/currencies",n=new URL(r,i.DUMMY_BASE_URL);let s;e&&(s=e.baseOptions);const o=Object.assign(Object.assign({method:"GET"},s),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=s&&s.headers?s.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)(n,u),{url:(0,i.toPathString)(n),options:o}})),listAllCurrenciesRates:(t={})=>n(this,void 0,void 0,(function*(){const r="/currencies/rates",n=new URL(r,i.DUMMY_BASE_URL);let s;e&&(s=e.baseOptions);const o=Object.assign(Object.assign({method:"GET"},s),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=s&&s.headers?s.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)(n,u),{url:(0,i.toPathString)(n),options:o}})),symbolSearchUserAccount:(t,r,s,o,c={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("symbolSearchUserAccount","userId",t),(0,i.assertParamExists)("symbolSearchUserAccount","userSecret",r),(0,i.assertParamExists)("symbolSearchUserAccount","accountId",s);const n="/accounts/{accountId}/symbols".replace("{accountId}",encodeURIComponent(String(void 0!==s?s:"-accountId-"))),u=new URL(n,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 f=d&&d.headers?d.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},p),f),c.headers),(0,a.requestBeforeHook)({requestBody:o,queryParameters:h,requestConfig:l,path:n,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 n(this,void 0,void 0,(function*(){const n=yield r.getCurrencyExchangeRatePair(t.currencyPair,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},getPartnerInfo(t){return n(this,void 0,void 0,(function*(){const n=yield r.getPartnerInfo(t);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},getSecurityTypes(t){return n(this,void 0,void 0,(function*(){const n=yield r.getSecurityTypes(t);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},getStockExchanges(t){return n(this,void 0,void 0,(function*(){const n=yield r.getStockExchanges(t);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},getSymbols(t={},a){return n(this,void 0,void 0,(function*(){const n={substring:t.substring},c=yield r.getSymbols(n,a);return(0,i.createRequestFunction)(c,s.default,o.BASE_PATH,e)}))},getSymbolsByTicker(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.getSymbolsByTicker(t.query,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},listAllBrokerageAuthorizationType(t={},a){return n(this,void 0,void 0,(function*(){const n=yield r.listAllBrokerageAuthorizationType(t.brokerage,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},listAllBrokerages(t){return n(this,void 0,void 0,(function*(){const n=yield r.listAllBrokerages(t);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},listAllCurrencies(t){return n(this,void 0,void 0,(function*(){const n=yield r.listAllCurrencies(t);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},listAllCurrenciesRates(t){return n(this,void 0,void 0,(function*(){const n=yield r.listAllCurrenciesRates(t);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},symbolSearchUserAccount(t,a){return n(this,void 0,void 0,(function*(){const n={substring:t.substring},c=yield r.symbolSearchUserAccount(t.userId,t.userSecret,t.accountId,n,a);return(0,i.createRequestFunction)(c,s.default,o.BASE_PATH,e)}))}}},t.ReferenceDataApiFactory=function(e,r,n){const s=(0,t.ReferenceDataApiFp)(e);return{getCurrencyExchangeRatePair:(e,t)=>s.getCurrencyExchangeRatePair(e,t).then((e=>e(n,r))),getPartnerInfo:e=>s.getPartnerInfo(e).then((e=>e(n,r))),getSecurityTypes:e=>s.getSecurityTypes(e).then((e=>e(n,r))),getStockExchanges:e=>s.getStockExchanges(e).then((e=>e(n,r))),getSymbols:(e={},t)=>s.getSymbols(e,t).then((e=>e(n,r))),getSymbolsByTicker:(e,t)=>s.getSymbolsByTicker(e,t).then((e=>e(n,r))),listAllBrokerageAuthorizationType:(e={},t)=>s.listAllBrokerageAuthorizationType(e,t).then((e=>e(n,r))),listAllBrokerages:e=>s.listAllBrokerages(e).then((e=>e(n,r))),listAllCurrencies:e=>s.listAllCurrencies(e).then((e=>e(n,r))),listAllCurrenciesRates:e=>s.listAllCurrenciesRates(e).then((e=>e(n,r))),symbolSearchUserAccount:(e,t)=>s.symbolSearchUserAccount(e,t).then((e=>e(n,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},502:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var s=Object.getOwnPropertyDescriptor(t,r);s&&!("get"in s?!t.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,s)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),s=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.ReferenceDataApi=void 0;const i=r(7342);s(r(7342),t);class o extends i.ReferenceDataApiGenerated{}t.ReferenceDataApi=o},3171:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(s,i){function o(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?s(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,a)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.TradingApiGenerated=t.TradingApiFactory=t.TradingApiFp=t.TradingApiAxiosParamCreator=void 0;const s=r(4088),i=r(6479),o=r(7275),a=r(8917);t.TradingApiAxiosParamCreator=function(e){return{cancelUserAccountOrder:(t,r,s,o,c={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("cancelUserAccountOrder","userId",t),(0,i.assertParamExists)("cancelUserAccountOrder","userSecret",r),(0,i.assertParamExists)("cancelUserAccountOrder","accountId",s),(0,i.assertParamExists)("cancelUserAccountOrder","tradingCancelUserAccountOrderRequest",o);const n="/accounts/{accountId}/orders/cancel".replace("{accountId}",encodeURIComponent(String(void 0!==s?s:"-accountId-"))),u=new URL(n,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 f=d&&d.headers?d.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},p),f),c.headers),(0,a.requestBeforeHook)({requestBody:o,queryParameters:h,requestConfig:l,path:n,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}})),getOrderImpact:(t,r,s,o={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getOrderImpact","userId",t),(0,i.assertParamExists)("getOrderImpact","userSecret",r),(0,i.assertParamExists)("getOrderImpact","manualTradeForm",s);const n="/trade/impact",c=new URL(n,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:s,queryParameters:p,requestConfig:d,path:n,configuration:e,pathTemplate:"/trade/impact",httpMethod:"POST"}),d.data=(0,i.serializeDataIfNeeded)(s,d,e),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}})),getUserAccountQuotes:(t,r,s,o,c,u={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getUserAccountQuotes","userId",t),(0,i.assertParamExists)("getUserAccountQuotes","userSecret",r),(0,i.assertParamExists)("getUserAccountQuotes","symbols",s),(0,i.assertParamExists)("getUserAccountQuotes","accountId",o);const n="/accounts/{accountId}/quotes".replace("{accountId}",encodeURIComponent(String(void 0!==o?o:"-accountId-"))),d=new URL(n,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}:{},f={};yield(0,i.setApiKeyToObject)({object:f,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:h,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:f,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(f.userId=t),void 0!==r&&(f.userSecret=r),void 0!==s&&(f.symbols=s),void 0!==c&&(f.use_ticker=c);let g=l&&l.headers?l.headers:{};return p.headers=Object.assign(Object.assign(Object.assign({},h),g),u.headers),(0,a.requestBeforeHook)({queryParameters:f,requestConfig:p,path:n,configuration:e,pathTemplate:"/accounts/{accountId}/quotes",httpMethod:"GET"}),(0,i.setSearchParams)(d,f),{url:(0,i.toPathString)(d),options:p}})),placeForceOrder:(t,r,s,o={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("placeForceOrder","userId",t),(0,i.assertParamExists)("placeForceOrder","userSecret",r),(0,i.assertParamExists)("placeForceOrder","manualTradeFormWithOptions",s);const n="/trade/place",c=new URL(n,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:s,queryParameters:p,requestConfig:d,path:n,configuration:e,pathTemplate:"/trade/place",httpMethod:"POST"}),d.data=(0,i.serializeDataIfNeeded)(s,d,e),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}})),placeOrder:(t,r,s,o,c={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("placeOrder","tradeId",t),(0,i.assertParamExists)("placeOrder","userId",r),(0,i.assertParamExists)("placeOrder","userSecret",s);const n="/trade/{tradeId}".replace("{tradeId}",encodeURIComponent(String(void 0!==t?t:"-tradeId-"))),u=new URL(n,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!==s&&(h.userSecret=s),p["Content-Type"]="application/json";let f=d&&d.headers?d.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},p),f),c.headers),(0,a.requestBeforeHook)({requestBody:o,queryParameters:h,requestConfig:l,path:n,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}}))}},t.TradingApiFp=function(e){const r=(0,t.TradingApiAxiosParamCreator)(e);return{cancelUserAccountOrder(t,a){return n(this,void 0,void 0,(function*(){const n={brokerage_order_id:t.brokerage_order_id},c=yield r.cancelUserAccountOrder(t.userId,t.userSecret,t.accountId,n,a);return(0,i.createRequestFunction)(c,s.default,o.BASE_PATH,e)}))},getOrderImpact(t,a){return n(this,void 0,void 0,(function*(){const n={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,n,a);return(0,i.createRequestFunction)(c,s.default,o.BASE_PATH,e)}))},getUserAccountQuotes(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.getUserAccountQuotes(t.userId,t.userSecret,t.symbols,t.accountId,t.useTicker,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},placeForceOrder(t,a){return n(this,void 0,void 0,(function*(){const n={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,order_class:t.order_class,stop_loss:t.stop_loss,take_profit:t.take_profit},c=yield r.placeForceOrder(t.userId,t.userSecret,n,a);return(0,i.createRequestFunction)(c,s.default,o.BASE_PATH,e)}))},placeOrder(t,a){return n(this,void 0,void 0,(function*(){const n={wait_to_confirm:t.wait_to_confirm},c=yield r.placeOrder(t.tradeId,t.userId,t.userSecret,n,a);return(0,i.createRequestFunction)(c,s.default,o.BASE_PATH,e)}))}}},t.TradingApiFactory=function(e,r,n){const s=(0,t.TradingApiFp)(e);return{cancelUserAccountOrder:(e,t)=>s.cancelUserAccountOrder(e,t).then((e=>e(n,r))),getOrderImpact:(e,t)=>s.getOrderImpact(e,t).then((e=>e(n,r))),getUserAccountQuotes:(e,t)=>s.getUserAccountQuotes(e,t).then((e=>e(n,r))),placeForceOrder:(e,t)=>s.placeForceOrder(e,t).then((e=>e(n,r))),placeOrder:(e,t)=>s.placeOrder(e,t).then((e=>e(n,r)))}};class c extends o.BaseAPI{cancelUserAccountOrder(e,r){return(0,t.TradingApiFp)(this.configuration).cancelUserAccountOrder(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)))}placeForceOrder(e,r){return(0,t.TradingApiFp)(this.configuration).placeForceOrder(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)))}}t.TradingApiGenerated=c},9819:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var s=Object.getOwnPropertyDescriptor(t,r);s&&!("get"in s?!t.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,s)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),s=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.TradingApi=void 0;const i=r(3171);s(r(3171),t);class o extends i.TradingApiGenerated{}t.TradingApi=o},288:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(s,i){function o(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?s(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,a)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.TransactionsAndReportingApiGenerated=t.TransactionsAndReportingApiFactory=t.TransactionsAndReportingApiFp=t.TransactionsAndReportingApiAxiosParamCreator=void 0;const s=r(4088),i=r(6479),o=r(7275),a=r(8917);t.TransactionsAndReportingApiAxiosParamCreator=function(e){return{getActivities:(t,r,s,o,c,u,d,l={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getActivities","userId",t),(0,i.assertParamExists)("getActivities","userSecret",r);const n="/activities",p=new URL(n,i.DUMMY_BASE_URL);let h;e&&(h=e.baseOptions);const f=Object.assign(Object.assign({method:"GET"},h),l),g=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:g,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:y,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==s&&(y.startDate=s instanceof Date?s.toISOString().substr(0,10):s),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 f.headers=Object.assign(Object.assign(Object.assign({},g),m),l.headers),(0,a.requestBeforeHook)({queryParameters:y,requestConfig:f,path:n,configuration:e,pathTemplate:"/activities",httpMethod:"GET"}),(0,i.setSearchParams)(p,y),{url:(0,i.toPathString)(p),options:f}})),getReportingCustomRange:(t,r,s,o,c,u,d,l={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getReportingCustomRange","startDate",t),(0,i.assertParamExists)("getReportingCustomRange","endDate",r),(0,i.assertParamExists)("getReportingCustomRange","userId",s),(0,i.assertParamExists)("getReportingCustomRange","userSecret",o);const n="/performance/custom",p=new URL(n,i.DUMMY_BASE_URL);let h;e&&(h=e.baseOptions);const f=Object.assign(Object.assign({method:"GET"},h),l),g=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:g,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!==s&&(y.userId=s),void 0!==o&&(y.userSecret=o);let m=h&&h.headers?h.headers:{};return f.headers=Object.assign(Object.assign(Object.assign({},g),m),l.headers),(0,a.requestBeforeHook)({queryParameters:y,requestConfig:f,path:n,configuration:e,pathTemplate:"/performance/custom",httpMethod:"GET"}),(0,i.setSearchParams)(p,y),{url:(0,i.toPathString)(p),options:f}}))}},t.TransactionsAndReportingApiFp=function(e){const r=(0,t.TransactionsAndReportingApiAxiosParamCreator)(e);return{getActivities(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.getActivities(t.userId,t.userSecret,t.startDate,t.endDate,t.accounts,t.brokerageAuthorizations,t.type,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},getReportingCustomRange(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.getReportingCustomRange(t.startDate,t.endDate,t.userId,t.userSecret,t.accounts,t.detailed,t.frequency,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))}}},t.TransactionsAndReportingApiFactory=function(e,r,n){const s=(0,t.TransactionsAndReportingApiFp)(e);return{getActivities:(e,t)=>s.getActivities(e,t).then((e=>e(n,r))),getReportingCustomRange:(e,t)=>s.getReportingCustomRange(e,t).then((e=>e(n,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},9900:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var s=Object.getOwnPropertyDescriptor(t,r);s&&!("get"in s?!t.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,s)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),s=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.TransactionsAndReportingApi=void 0;const i=r(288);s(r(288),t);class o extends i.TransactionsAndReportingApiGenerated{}t.TransactionsAndReportingApi=o},7275:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RequiredError=t.BaseAPI=t.COLLECTION_FORMATS=t.BASE_PATH=void 0;const n=r(4088);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,s=n.default){this.basePath=r,this.axios=s,e&&(this.configuration=e,this.basePath=e.basePath||this.basePath)}};class s extends Error{constructor(e,t){super(t),this.field=e,this.name="RequiredError"}}t.RequiredError=s},4085:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SnaptradeCustom=void 0,t.SnaptradeCustom=class{constructor(e){}}},9009:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Snaptrade=void 0;const n=r(3708),s=r(4438),i=r(4085);class o extends i.SnaptradeCustom{constructor(e={}){super(e);const t=new s.Configuration(e);this.accountInformation=new n.AccountInformationApi(t),this.apiStatus=new n.ApiStatusApi(t),this.authentication=new n.AuthenticationApi(t),this.connections=new n.ConnectionsApi(t),this.options=new n.OptionsApi(t),this.referenceData=new n.ReferenceDataApi(t),this.trading=new n.TradingApi(t),this.transactionsAndReporting=new n.TransactionsAndReportingApi(t)}}t.Snaptrade=o},6479:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(s,i){function o(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?s(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,a)}c((n=n.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 s=r(7275),i=r(4088),o=r(4700),a=r(6642),c=r(7270);function u(e,t,r=""){"object"==typeof t?Array.isArray(t)?t.forEach((t=>u(e,t,r))):Object.keys(t).forEach((n=>u(e,t[n],`${r}${""!==r?".":""}${n}`))):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 s.RequiredError(t,`Required parameter ${t} was null or undefined when calling ${e}.`)},t.setApiKeyToObject=function({object:e,key:t,type:r,keyParamName:s,configuration:i,prefix:o}){return n(this,void 0,void 0,(function*(){t=t||s;let n=null;if(i&&i.apiKey)if("function"==typeof i.apiKey)n=yield i.apiKey(s);else if("string"==typeof i.apiKey)n=i.apiKey;else{if("object"!=typeof i.apiKey)throw Error(`Unexpected type ${typeof i.apiKey} for Configuration.apiKey`);s in i.apiKey&&(n=i.apiKey[s])}n&&(e[t]=void 0!==o?`${o}${n}`:n,"Cookie"===r&&(e[t]=`${s}=${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 n(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 n="string"!=typeof e;return(n&&r&&r.isJsonMime?r.isJsonMime(t.headers["Content-Type"]):n)?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,s){return(u=t,d=r)=>n(this,void 0,void 0,(function*(){(0,a.requestBeforeUrlHook)({axiosArgs:e,basePath:d,configuration:s});const t=((null==s?void 0:s.basePath)||d)+e.url;return yield(0,o.requestAfterHook)({axiosArgs:e,basePath:d,url:t,configuration:s}),function(e){var t,r,s,o,a,u;return n(this,void 0,void 0,(function*(){let n=0,d=5e3;for(;n<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)){n++,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===(s=e.response)||void 0===s?void 0:s.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.")}))}((()=>n(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}},4438:(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.80/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())}}},7270:function(e,t){"use strict";var r=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(s,i){function o(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?s(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,a)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.parseIfJson=t.readableStreamToString=t.SnaptradeError=void 0;class n extends Error{constructor(e,t,r){var n,s,i,o,a;super(e.message+"\nRESPONSE HEADERS:\n"+JSON.stringify(r,null,2)),this.name="SnaptradeError",this.code=e.code,this.method=null===(s=null===(n=e.config)||void 0===n?void 0:n.method)||void 0===s?void 0:s.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=n,t.readableStreamToString=function(e){return r(this,void 0,void 0,(function*(){const t=new TextDecoder,r=e.getReader();let n="";try{for(;;){const{done:e,value:s}=yield r.read();if(e)break;n+=t.decode(s,{stream:!0})}}finally{r.releaseLock()}return n}))},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}}},2316:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var s=Object.getOwnPropertyDescriptor(t,r);s&&!("get"in s?!t.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,s)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),s=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),s(r(3708),t),s(r(4438),t),s(r(8659),t),s(r(9009),t),s(r(7270),t)},8358:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9409:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},423:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3477:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8898:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8262:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6392:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2867:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9847:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1289:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8010:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6977:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1501:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9132:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3376:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6183:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2935:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3433:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7055:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8083:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8552:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8827:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3421:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7704:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},967:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6420:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1763:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},414:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9188:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},680:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},457:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3045:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3403:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2113:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8142:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5542:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8234:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8659:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var s=Object.getOwnPropertyDescriptor(t,r);s&&!("get"in s?!t.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,s)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),s=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),s(r(3376),t),s(r(9409),t),s(r(8358),t),s(r(3477),t),s(r(423),t),s(r(2867),t),s(r(8898),t),s(r(8262),t),s(r(6392),t),s(r(9847),t),s(r(1289),t),s(r(9132),t),s(r(8010),t),s(r(6977),t),s(r(1501),t),s(r(2935),t),s(r(6183),t),s(r(3433),t),s(r(8083),t),s(r(7055),t),s(r(1763),t),s(r(967),t),s(r(8552),t),s(r(8827),t),s(r(7704),t),s(r(3421),t),s(r(6420),t),s(r(414),t),s(r(9188),t),s(r(680),t),s(r(457),t),s(r(3403),t),s(r(3045),t),s(r(8142),t),s(r(2113),t),s(r(5542),t),s(r(8234),t),s(r(6760),t),s(r(3146),t),s(r(5577),t),s(r(9143),t),s(r(7565),t),s(r(2158),t),s(r(4653),t),s(r(6828),t),s(r(6764),t),s(r(993),t),s(r(9123),t),s(r(3826),t),s(r(2633),t),s(r(8752),t),s(r(9571),t),s(r(6195),t),s(r(1720),t),s(r(7742),t),s(r(7527),t),s(r(831),t),s(r(7871),t),s(r(7446),t),s(r(5718),t),s(r(8707),t),s(r(4948),t),s(r(8159),t),s(r(3647),t),s(r(4189),t),s(r(8407),t),s(r(7170),t),s(r(3015),t),s(r(9416),t),s(r(1811),t),s(r(765),t),s(r(4609),t),s(r(2270),t),s(r(7120),t),s(r(4508),t),s(r(7784),t),s(r(1942),t),s(r(5583),t),s(r(7109),t),s(r(4984),t),s(r(2353),t),s(r(888),t),s(r(4244),t),s(r(3434),t),s(r(510),t),s(r(9494),t),s(r(9935),t),s(r(9098),t),s(r(5535),t),s(r(3115),t),s(r(6121),t),s(r(7623),t),s(r(8793),t),s(r(8082),t),s(r(2015),t),s(r(8365),t),s(r(5959),t),s(r(3371),t),s(r(9637),t),s(r(2619),t),s(r(6342),t),s(r(8467),t),s(r(8883),t),s(r(1918),t),s(r(3050),t),s(r(6261),t),s(r(54),t),s(r(1553),t),s(r(6903),t),s(r(8086),t),s(r(8646),t),s(r(5867),t),s(r(4264),t),s(r(2659),t)},6760:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5577:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9143:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2158:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6828:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6764:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4653:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7565:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},993:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9123:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3146:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3826:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2633:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8752:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9571:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6195:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1720:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7742:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7527:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},831:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7871:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7446:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5718:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8707:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4948:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4189:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3647:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8159:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8407:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3015:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7170:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9416:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1811:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4609:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},765:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2270:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7120:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4508:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7784:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1942:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5583:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7109:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2353:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4984:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},888:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4244:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3434:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},510:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9494:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9935:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9098:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5535:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3115:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6121:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7623:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8793:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2015:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8082:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8365:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3371:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9637:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2619:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6342:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5959:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8467:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8883:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1918:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3050:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6261:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6903:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8086:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1553:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8646:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5867:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4264:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},54:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2659:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4700:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(s,i){function o(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?s(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,a)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.requestAfterHook=void 0,t.requestAfterHook=function(e){return n(this,void 0,void 0,(function*(){const{configuration:t,basePath:s,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(s,"").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 f=yield function(e,t){return n(this,void 0,void 0,(function*(){if("undefined"!=typeof process&&process.versions&&process.versions.node){const n=r(2349).createHmac("sha256",t);return n.update(e),n.digest("base64")}{const r=new TextEncoder,n=r.encode(t),s=r.encode(e),i=yield globalThis.crypto.subtle.importKey("raw",n,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),o=yield globalThis.crypto.subtle.sign("HMAC",i,s),a=Array.from(new Uint8Array(o));return btoa(String.fromCharCode.apply(null,a))}}))}(d,a);i.options.headers&&(i.options.headers.Signature=f)}))}},8917:(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()}},6642:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.requestBeforeUrlHook=void 0,t.requestBeforeUrlHook=function(e){}},2349:()=>{},4088:(e,t,r)=>{"use strict";function n(e,t){return function(){return e.apply(t,arguments)}}const{toString:s}=Object.prototype,{getPrototypeOf:i}=Object,o=(a=Object.create(null),e=>{const t=s.call(e);return a[t]||(a[t]=t.slice(8,-1).toLowerCase())});var a;const c=e=>(e=e.toLowerCase(),t=>o(t)===e),u=e=>t=>typeof t===e,{isArray:d}=Array,l=u("undefined"),p=c("ArrayBuffer"),h=u("string"),f=u("function"),g=u("number"),y=e=>null!==e&&"object"==typeof e,m=e=>{if("object"!==o(e))return!1;const t=i(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},b=c("Date"),A=c("File"),O=c("Blob"),P=c("FileList"),j=c("URLSearchParams"),[v,S,_,T]=["ReadableStream","Request","Response","Headers"].map(c);function k(e,t,{allOwnKeys:r=!1}={}){if(null==e)return;let n,s;if("object"!=typeof e&&(e=[e]),d(e))for(n=0,s=e.length;n<s;n++)t.call(null,e[n],n,e);else{const s=r?Object.getOwnPropertyNames(e):Object.keys(e),i=s.length;let o;for(n=0;n<i;n++)o=s[n],t.call(null,e[o],o,e)}}function E(e,t){t=t.toLowerCase();const r=Object.keys(e);let n,s=r.length;for(;s-- >0;)if(n=r[s],t===n.toLowerCase())return n;return null}const I="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:r.g,U=e=>!l(e)&&e!==I,R=(w="undefined"!=typeof Uint8Array&&i(Uint8Array),e=>w&&e instanceof w);var w;const B=c("HTMLFormElement"),x=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),M=c("RegExp"),C=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};k(r,((r,s)=>{let i;!1!==(i=t(r,s,e))&&(n[s]=i||r)})),Object.defineProperties(e,n)},q="abcdefghijklmnopqrstuvwxyz",N="0123456789",F={DIGIT:N,ALPHA:q,ALPHA_DIGIT:q+q.toUpperCase()+N},D=c("AsyncFunction"),L=(K="function"==typeof setImmediate,H=f(I.postMessage),K?setImmediate:H?(z=`axios@${Math.random()}`,G=[],I.addEventListener("message",(({source:e,data:t})=>{e===I&&t===z&&G.length&&G.shift()()}),!1),e=>{G.push(e),I.postMessage(z,"*")}):e=>setTimeout(e));var K,H,z,G;const Y="undefined"!=typeof queueMicrotask?queueMicrotask.bind(I):"undefined"!=typeof process&&process.nextTick||L;var J={isArray:d,isArrayBuffer:p,isBuffer:function(e){return null!==e&&!l(e)&&null!==e.constructor&&!l(e.constructor)&&f(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||f(e.append)&&("formdata"===(t=o(e))||"object"===t&&f(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&p(e.buffer),t},isString:h,isNumber:g,isBoolean:e=>!0===e||!1===e,isObject:y,isPlainObject:m,isReadableStream:v,isRequest:S,isResponse:_,isHeaders:T,isUndefined:l,isDate:b,isFile:A,isBlob:O,isRegExp:M,isFunction:f,isStream:e=>y(e)&&f(e.pipe),isURLSearchParams:j,isTypedArray:R,isFileList:P,forEach:k,merge:function e(){const{caseless:t}=U(this)&&this||{},r={},n=(n,s)=>{const i=t&&E(r,s)||s;m(r[i])&&m(n)?r[i]=e(r[i],n):m(n)?r[i]=e({},n):d(n)?r[i]=n.slice():r[i]=n};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&k(arguments[e],n);return r},extend:(e,t,r,{allOwnKeys:s}={})=>(k(t,((t,s)=>{r&&f(t)?e[s]=n(t,r):e[s]=t}),{allOwnKeys:s}),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,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,r,n)=>{let s,o,a;const c={};if(t=t||{},null==e)return t;do{for(s=Object.getOwnPropertyNames(e),o=s.length;o-- >0;)a=s[o],n&&!n(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:o,kindOfTest:c,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return-1!==n&&n===r},toArray:e=>{if(!e)return null;if(d(e))return e;let t=e.length;if(!g(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let n;for(;(n=r.next())&&!n.done;){const r=n.value;t.call(e,r[0],r[1])}},matchAll:(e,t)=>{let r;const n=[];for(;null!==(r=e.exec(t));)n.push(r);return n},isHTMLForm:B,hasOwnProperty:x,hasOwnProp:x,reduceDescriptors:C,freezeMethods:e=>{C(e,((t,r)=>{if(f(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const n=e[r];f(n)&&(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={},n=e=>{e.forEach((e=>{r[e]=!0}))};return d(e)?n(e):n(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:E,global:I,isContextDefined:U,ALPHABET:F,generateString:(e=16,t=F.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r},isSpecCompliantForm:function(e){return!!(e&&f(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),r=(e,n)=>{if(y(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[n]=e;const s=d(e)?[]:{};return k(e,((e,t)=>{const i=r(e,n+1);!l(i)&&(s[t]=i)})),t[n]=void 0,s}}return e};return r(e,0)},isAsyncFn:D,isThenable:e=>e&&(y(e)||f(e))&&f(e.then)&&f(e.catch),setImmediate:L,asap:Y};function $(e,t,r,n,s){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),n&&(this.request=n),s&&(this.response=s,this.status=s.status?s.status:null)}J.inherits($,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:J.toJSONObject(this.config),code:this.code,status:this.status}}});const Q=$.prototype,W={};function V(e){return J.isPlainObject(e)||J.isArray(e)}function X(e){return J.endsWith(e,"[]")?e.slice(0,-2):e}function Z(e,t,r){return e?e.concat(t).map((function(e,t){return e=X(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=>{W[e]={value:e}})),Object.defineProperties($,W),Object.defineProperty(Q,"isAxiosError",{value:!0}),$.from=(e,t,r,n,s,i)=>{const o=Object.create(Q);return J.toFlatObject(e,o,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),$.call(o,e.message,t,r,n,s),o.cause=e,o.name=e.name,i&&Object.assign(o,i),o};const ee=J.toFlatObject(J,{},null,(function(e){return/^is[A-Z]/.test(e)}));function te(e,t,r){if(!J.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const n=(r=J.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!J.isUndefined(t[e])}))).metaTokens,s=r.visitor||u,i=r.dots,o=r.indexes,a=(r.Blob||"undefined"!=typeof Blob&&Blob)&&J.isSpecCompliantForm(t);if(!J.isFunction(s))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(J.isDate(e))return e.toISOString();if(!a&&J.isBlob(e))throw new $("Blob is not supported. Use a Buffer instead.");return J.isArrayBuffer(e)||J.isTypedArray(e)?a&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,r,s){let a=e;if(e&&!s&&"object"==typeof e)if(J.endsWith(r,"{}"))r=n?r:r.slice(0,-2),e=JSON.stringify(e);else if(J.isArray(e)&&function(e){return J.isArray(e)&&!e.some(V)}(e)||(J.isFileList(e)||J.endsWith(r,"[]"))&&(a=J.toArray(e)))return r=X(r),a.forEach((function(e,n){!J.isUndefined(e)&&null!==e&&t.append(!0===o?Z([r],n,i):null===o?r:r+"[]",c(e))})),!1;return!!V(e)||(t.append(Z(s,r,i),c(e)),!1)}const d=[],l=Object.assign(ee,{defaultVisitor:u,convertValue:c,isVisitable:V});if(!J.isObject(e))throw new TypeError("data must be an object");return function e(r,n){if(!J.isUndefined(r)){if(-1!==d.indexOf(r))throw Error("Circular reference detected in "+n.join("."));d.push(r),J.forEach(r,(function(r,i){!0===(!(J.isUndefined(r)||null===r)&&s.call(t,r,J.isString(i)?i.trim():i,n,l))&&e(r,n?n.concat(i):[i])})),d.pop()}}(e),t}function re(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function ne(e,t){this._pairs=[],e&&te(e,this,t)}const se=ne.prototype;function ie(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function oe(e,t,r){if(!t)return e;const n=r&&r.encode||ie;J.isFunction(r)&&(r={serialize:r});const s=r&&r.serialize;let i;if(i=s?s(t,r):J.isURLSearchParams(t)?t.toString():new ne(t,r).toString(n),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,re)}:re;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var ae=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){J.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},ce={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ue={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:ne,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const de="undefined"!=typeof window&&"undefined"!=typeof document,le="object"==typeof navigator&&navigator||void 0,pe=de&&(!le||["ReactNative","NativeScript","NS"].indexOf(le.product)<0),he="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,fe=de&&window.location.href||"http://localhost";var ge={...Object.freeze({__proto__:null,hasBrowserEnv:de,hasStandardBrowserWebWorkerEnv:he,hasStandardBrowserEnv:pe,navigator:le,origin:fe}),...ue};function ye(e){function t(e,r,n,s){let i=e[s++];if("__proto__"===i)return!0;const o=Number.isFinite(+i),a=s>=e.length;return i=!i&&J.isArray(n)?n.length:i,a?(J.hasOwnProp(n,i)?n[i]=[n[i],r]:n[i]=r,!o):(n[i]&&J.isObject(n[i])||(n[i]=[]),t(e,r,n[i],s)&&J.isArray(n[i])&&(n[i]=function(e){const t={},r=Object.keys(e);let n;const s=r.length;let i;for(n=0;n<s;n++)i=r[n],t[i]=e[i];return t}(n[i])),!o)}if(J.isFormData(e)&&J.isFunction(e.entries)){const r={};return J.forEachEntry(e,((e,n)=>{t(function(e){return J.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),n,r,0)})),r}return null}const me={transitional:ce,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,s=J.isObject(e);if(s&&J.isHTMLForm(e)&&(e=new FormData(e)),J.isFormData(e))return n?JSON.stringify(ye(e)):e;if(J.isArrayBuffer(e)||J.isBuffer(e)||J.isStream(e)||J.isFile(e)||J.isBlob(e)||J.isReadableStream(e))return e;if(J.isArrayBufferView(e))return e.buffer;if(J.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(s){if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return te(e,new ge.classes.URLSearchParams,Object.assign({visitor:function(e,t,r,n){return ge.isNode&&J.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=J.isFileList(e))||r.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return te(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return s||n?(t.setContentType("application/json",!1),function(e){if(J.isString(e))try{return(0,JSON.parse)(e),J.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||me.transitional,r=t&&t.forcedJSONParsing,n="json"===this.responseType;if(J.isResponse(e)||J.isReadableStream(e))return e;if(e&&J.isString(e)&&(r&&!this.responseType||n)){const r=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(e){if(r){if("SyntaxError"===e.name)throw $.from(e,$.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}}};J.forEach(["delete","get","head","post","put","patch"],(e=>{me.headers[e]={}}));var be=me;const Ae=J.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 Pe(e){return e&&String(e).trim().toLowerCase()}function je(e){return!1===e||null==e?e:J.isArray(e)?e.map(je):String(e)}function ve(e,t,r,n,s){return J.isFunction(n)?n.call(this,t,r):(s&&(t=r),J.isString(t)?J.isString(n)?-1!==t.indexOf(n):J.isRegExp(n)?n.test(t):void 0:void 0)}class Se{constructor(e){e&&this.set(e)}set(e,t,r){const n=this;function s(e,t,r){const s=Pe(t);if(!s)throw new Error("header name must be a non-empty string");const i=J.findKey(n,s);(!i||void 0===n[i]||!0===r||void 0===r&&!1!==n[i])&&(n[i||t]=je(e))}const i=(e,t)=>J.forEach(e,((e,r)=>s(e,r,t)));if(J.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(J.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const t={};let r,n,s;return e&&e.split("\n").forEach((function(e){s=e.indexOf(":"),r=e.substring(0,s).trim().toLowerCase(),n=e.substring(s+1).trim(),!r||t[r]&&Ae[r]||("set-cookie"===r?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)})),t})(e),t);else if(J.isHeaders(e))for(const[t,n]of e.entries())s(n,t,r);else null!=e&&s(t,e,r);return this}get(e,t){if(e=Pe(e)){const r=J.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 n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}(e);if(J.isFunction(t))return t.call(this,e,r);if(J.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Pe(e)){const r=J.findKey(this,e);return!(!r||void 0===this[r]||t&&!ve(0,this[r],r,t))}return!1}delete(e,t){const r=this;let n=!1;function s(e){if(e=Pe(e)){const s=J.findKey(r,e);!s||t&&!ve(0,r[s],s,t)||(delete r[s],n=!0)}}return J.isArray(e)?e.forEach(s):s(e),n}clear(e){const t=Object.keys(this);let r=t.length,n=!1;for(;r--;){const s=t[r];e&&!ve(0,this[s],s,e,!0)||(delete this[s],n=!0)}return n}normalize(e){const t=this,r={};return J.forEach(this,((n,s)=>{const i=J.findKey(r,s);if(i)return t[i]=je(n),void delete t[s];const o=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,r)=>t.toUpperCase()+r))}(s):String(s).trim();o!==s&&delete t[s],t[o]=je(n),r[o]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return J.forEach(this,((r,n)=>{null!=r&&!1!==r&&(t[n]=e&&J.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")}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 n(e){const n=Pe(e);t[n]||(function(e,t){const r=J.toCamelCase(" "+t);["get","set","has"].forEach((n=>{Object.defineProperty(e,n+r,{value:function(e,r,s){return this[n].call(this,t,e,r,s)},configurable:!0})}))}(r,e),t[n]=!0)}return J.isArray(e)?e.forEach(n):n(e),this}}Se.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),J.reduceDescriptors(Se.prototype,(({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}})),J.freezeMethods(Se);var _e=Se;function Te(e,t){const r=this||be,n=t||r,s=_e.from(n.headers);let i=n.data;return J.forEach(e,(function(e){i=e.call(r,i,s.normalize(),t?t.status:void 0)})),s.normalize(),i}function ke(e){return!(!e||!e.__CANCEL__)}function Ee(e,t,r){$.call(this,null==e?"canceled":e,$.ERR_CANCELED,t,r),this.name="CanceledError"}function Ie(e,t,r){const n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(new $("Request failed with status code "+r.status,[$.ERR_BAD_REQUEST,$.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}J.inherits(Ee,$,{__CANCEL__:!0});const Ue=(e,t,r=3)=>{let n=0;const s=function(e,t){e=e||10;const r=new Array(e),n=new Array(e);let s,i=0,o=0;return t=void 0!==t?t:1e3,function(a){const c=Date.now(),u=n[o];s||(s=c),r[i]=a,n[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-s<t)return;const p=u&&c-u;return p?Math.round(1e3*l/p):void 0}}(50,250);return function(e,t){let r,n,s=0,i=1e3/t;const o=(t,i=Date.now())=>{s=i,r=null,n&&(clearTimeout(n),n=null),e.apply(null,t)};return[(...e)=>{const t=Date.now(),a=t-s;a>=i?o(e,t):(r=e,n||(n=setTimeout((()=>{n=null,o(r)}),i-a)))},()=>r&&o(r)]}((r=>{const i=r.loaded,o=r.lengthComputable?r.total:void 0,a=i-n,c=s(a);n=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)},Re=(e,t)=>{const r=null!=e;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},we=e=>(...t)=>J.asap((()=>e(...t)));var Be=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,xe=ge.hasStandardBrowserEnv?{write(e,t,r,n,s,i){const o=[e+"="+encodeURIComponent(t)];J.isNumber(r)&&o.push("expires="+new Date(r).toGMTString()),J.isString(n)&&o.push("path="+n),J.isString(s)&&o.push("domain="+s),!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 Me(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Ce=e=>e instanceof _e?{...e}:e;function qe(e,t){t=t||{};const r={};function n(e,t,r,n){return J.isPlainObject(e)&&J.isPlainObject(t)?J.merge.call({caseless:n},e,t):J.isPlainObject(t)?J.merge({},t):J.isArray(t)?t.slice():t}function s(e,t,r,s){return J.isUndefined(t)?J.isUndefined(e)?void 0:n(void 0,e,0,s):n(e,t,0,s)}function i(e,t){if(!J.isUndefined(t))return n(void 0,t)}function o(e,t){return J.isUndefined(t)?J.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function a(r,s,i){return i in t?n(r,s):i in e?n(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)=>s(Ce(e),Ce(t),0,!0)};return J.forEach(Object.keys(Object.assign({},e,t)),(function(n){const i=c[n]||s,o=i(e[n],t[n],n);J.isUndefined(o)&&i!==a||(r[n]=o)})),r}var Ne=e=>{const t=qe({},e);let r,{data:n,withXSRFToken:s,xsrfHeaderName:i,xsrfCookieName:o,headers:a,auth:c}=t;if(t.headers=a=_e.from(a),t.url=oe(Me(t.baseURL,t.url),e.params,e.paramsSerializer),c&&a.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),J.isFormData(n))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&&(s&&J.isFunction(s)&&(s=s(t)),s||!1!==s&&Be(t.url))){const e=i&&o&&xe.read(o);e&&a.set(i,e)}return t},Fe="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,r){const n=Ne(e);let s=n.data;const i=_e.from(n.headers).normalize();let o,a,c,u,d,{responseType:l,onUploadProgress:p,onDownloadProgress:h}=n;function f(){u&&u(),d&&d(),n.cancelToken&&n.cancelToken.unsubscribe(o),n.signal&&n.signal.removeEventListener("abort",o)}let g=new XMLHttpRequest;function y(){if(!g)return;const n=_e.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders());Ie((function(e){t(e),f()}),(function(e){r(e),f()}),{data:l&&"text"!==l&&"json"!==l?g.response:g.responseText,status:g.status,statusText:g.statusText,headers:n,config:e,request:g}),g=null}g.open(n.method.toUpperCase(),n.url,!0),g.timeout=n.timeout,"onloadend"in g?g.onloadend=y:g.onreadystatechange=function(){g&&4===g.readyState&&(0!==g.status||g.responseURL&&0===g.responseURL.indexOf("file:"))&&setTimeout(y)},g.onabort=function(){g&&(r(new $("Request aborted",$.ECONNABORTED,e,g)),g=null)},g.onerror=function(){r(new $("Network Error",$.ERR_NETWORK,e,g)),g=null},g.ontimeout=function(){let t=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const s=n.transitional||ce;n.timeoutErrorMessage&&(t=n.timeoutErrorMessage),r(new $(t,s.clarifyTimeoutError?$.ETIMEDOUT:$.ECONNABORTED,e,g)),g=null},void 0===s&&i.setContentType(null),"setRequestHeader"in g&&J.forEach(i.toJSON(),(function(e,t){g.setRequestHeader(t,e)})),J.isUndefined(n.withCredentials)||(g.withCredentials=!!n.withCredentials),l&&"json"!==l&&(g.responseType=n.responseType),h&&([c,d]=Ue(h,!0),g.addEventListener("progress",c)),p&&g.upload&&([a,u]=Ue(p),g.upload.addEventListener("progress",a),g.upload.addEventListener("loadend",u)),(n.cancelToken||n.signal)&&(o=t=>{g&&(r(!t||t.type?new Ee(null,e,g):t),g.abort(),g=null)},n.cancelToken&&n.cancelToken.subscribe(o),n.signal&&(n.signal.aborted?o():n.signal.addEventListener("abort",o)));const m=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(n.url);m&&-1===ge.protocols.indexOf(m)?r(new $("Unsupported protocol "+m+":",$.ERR_BAD_REQUEST,e)):g.send(s||null)}))},De=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let r,n=new AbortController;const s=function(e){if(!r){r=!0,o();const t=e instanceof Error?e:this.reason;n.abort(t instanceof $?t:new Ee(t instanceof Error?t.message:t))}};let i=t&&setTimeout((()=>{i=null,s(new $(`timeout ${t} of ms exceeded`,$.ETIMEDOUT))}),t);const o=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach((e=>{e.unsubscribe?e.unsubscribe(s):e.removeEventListener("abort",s)})),e=null)};e.forEach((e=>e.addEventListener("abort",s)));const{signal:a}=n;return a.unsubscribe=()=>J.asap(o),a}};const Le=function*(e,t){let r=e.byteLength;if(!t||r<t)return void(yield e);let n,s=0;for(;s<r;)n=s+t,yield e.slice(s,n),s=n},Ke=(e,t,r,n)=>{const s=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*Le(r,t)}(e,t);let i,o=0,a=e=>{i||(i=!0,n&&n(e))};return new ReadableStream({async pull(e){try{const{done:t,value:n}=await s.next();if(t)return a(),void e.close();let i=n.byteLength;if(r){let e=o+=i;r(e)}e.enqueue(new Uint8Array(n))}catch(e){throw a(e),e}},cancel:e=>(a(e),s.return())},{highWaterMark:2})},He="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,ze=He&&"function"==typeof ReadableStream,Ge=He&&("function"==typeof TextEncoder?(Ye=new TextEncoder,e=>Ye.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var Ye;const Je=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},$e=ze&&Je((()=>{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})),Qe=ze&&Je((()=>J.isReadableStream(new Response("").body))),We={stream:Qe&&(e=>e.body)};var Ve;He&&(Ve=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!We[e]&&(We[e]=J.isFunction(Ve[e])?t=>t[e]():(t,r)=>{throw new $(`Response type '${e}' is not supported`,$.ERR_NOT_SUPPORT,r)})})));const Xe={http:null,xhr:Fe,fetch:He&&(async e=>{let{url:t,method:r,data:n,signal:s,cancelToken:i,timeout:o,onDownloadProgress:a,onUploadProgress:c,responseType:u,headers:d,withCredentials:l="same-origin",fetchOptions:p}=Ne(e);u=u?(u+"").toLowerCase():"text";let h,f=De([s,i&&i.toAbortSignal()],o);const g=f&&f.unsubscribe&&(()=>{f.unsubscribe()});let y;try{if(c&&$e&&"get"!==r&&"head"!==r&&0!==(y=await(async(e,t)=>{const r=J.toFiniteNumber(e.getContentLength());return null==r?(async e=>{if(null==e)return 0;if(J.isBlob(e))return e.size;if(J.isSpecCompliantForm(e)){const t=new Request(ge.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return J.isArrayBufferView(e)||J.isArrayBuffer(e)?e.byteLength:(J.isURLSearchParams(e)&&(e+=""),J.isString(e)?(await Ge(e)).byteLength:void 0)})(t):r})(d,n))){let e,r=new Request(t,{method:"POST",body:n,duplex:"half"});if(J.isFormData(n)&&(e=r.headers.get("content-type"))&&d.setContentType(e),r.body){const[e,t]=Re(y,Ue(we(c)));n=Ke(r.body,65536,e,t)}}J.isString(l)||(l=l?"include":"omit");const s="credentials"in Request.prototype;h=new Request(t,{...p,signal:f,method:r.toUpperCase(),headers:d.normalize().toJSON(),body:n,duplex:"half",credentials:s?l:void 0});let i=await fetch(h);const o=Qe&&("stream"===u||"response"===u);if(Qe&&(a||o&&g)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=i[t]}));const t=J.toFiniteNumber(i.headers.get("content-length")),[r,n]=a&&Re(t,Ue(we(a),!0))||[];i=new Response(Ke(i.body,65536,r,(()=>{n&&n(),g&&g()})),e)}u=u||"text";let m=await We[J.findKey(We,u)||"text"](i,e);return!o&&g&&g(),await new Promise(((t,r)=>{Ie(t,r,{data:m,headers:_e.from(i.headers),status:i.status,statusText:i.statusText,config:e,request:h})}))}catch(t){if(g&&g(),t&&"TypeError"===t.name&&/fetch/i.test(t.message))throw Object.assign(new $("Network Error",$.ERR_NETWORK,e,h),{cause:t.cause||t});throw $.from(t,t&&t.code,e,h)}})};J.forEach(Xe,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const Ze=e=>`- ${e}`,et=e=>J.isFunction(e)||null===e||!1===e;var tt=e=>{e=J.isArray(e)?e:[e];const{length:t}=e;let r,n;const s={};for(let i=0;i<t;i++){let t;if(r=e[i],n=r,!et(r)&&(n=Xe[(t=String(r)).toLowerCase()],void 0===n))throw new $(`Unknown adapter '${t}'`);if(n)break;s[t||"#"+i]=n}if(!n){const e=Object.entries(s).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));throw new $("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(Ze).join("\n"):" "+Ze(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return n};function rt(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ee(null,e)}function nt(e){return rt(e),e.headers=_e.from(e.headers),e.data=Te.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),tt(e.adapter||be.adapter)(e).then((function(t){return rt(e),t.data=Te.call(e,e.transformResponse,t),t.headers=_e.from(t.headers),t}),(function(t){return ke(t)||(rt(e),t&&t.response&&(t.response.data=Te.call(e,e.transformResponse,t.response),t.response.headers=_e.from(t.response.headers))),Promise.reject(t)}))}const st={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{st[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));const it={};st.transitional=function(e,t,r){function n(e,t){return"[Axios v1.7.9] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,s,i)=>{if(!1===e)throw new $(n(s," has been removed"+(t?" in "+t:"")),$.ERR_DEPRECATED);return t&&!it[s]&&(it[s]=!0,console.warn(n(s," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,s,i)}},st.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 $("options must be an object",$.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let s=n.length;for(;s-- >0;){const i=n[s],o=t[i];if(o){const t=e[i],r=void 0===t||o(t,i,e);if(!0!==r)throw new $("option "+i+" must be "+r,$.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new $("Unknown option "+i,$.ERR_BAD_OPTION)}},validators:st};const at=ot.validators;class ct{constructor(e){this.defaults=e,this.interceptors={request:new ae,response:new ae}}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=qe(this.defaults,t);const{transitional:r,paramsSerializer:n,headers:s}=t;void 0!==r&&ot.assertOptions(r,{silentJSONParsing:at.transitional(at.boolean),forcedJSONParsing:at.transitional(at.boolean),clarifyTimeoutError:at.transitional(at.boolean)},!1),null!=n&&(J.isFunction(n)?t.paramsSerializer={serialize:n}:ot.assertOptions(n,{encode:at.function,serialize:at.function},!0)),ot.assertOptions(t,{baseUrl:at.spelling("baseURL"),withXsrfToken:at.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=s&&J.merge(s.common,s[t.method]);s&&J.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete s[e]})),t.headers=_e.concat(i,s);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=[nt.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=nt.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 oe(Me((e=qe(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}J.forEach(["delete","get","head","options"],(function(e){ct.prototype[e]=function(t,r){return this.request(qe(r||{},{method:e,url:t,data:(r||{}).data}))}})),J.forEach(["post","put","patch"],(function(e){function t(t){return function(r,n,s){return this.request(qe(s||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}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 n=new Promise((e=>{r.subscribe(e),t=e})).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e((function(e,n,s){r.reason||(r.reason=new Ee(e,n,s),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 ft=function e(t){const r=new ut(t),s=n(ut.prototype.request,r);return J.extend(s,ut.prototype,r,{allOwnKeys:!0}),J.extend(s,r,null,{allOwnKeys:!0}),s.create=function(r){return e(qe(t,r))},s}(be);ft.Axios=ut,ft.CanceledError=Ee,ft.CancelToken=lt,ft.isCancel=ke,ft.VERSION="1.7.9",ft.toFormData=te,ft.AxiosError=$,ft.Cancel=ft.CanceledError,ft.all=function(e){return Promise.all(e)},ft.spread=function(e){return function(t){return e.apply(null,t)}},ft.isAxiosError=function(e){return J.isObject(e)&&!0===e.isAxiosError},ft.mergeConfig=qe,ft.AxiosHeaders=_e,ft.formToJSON=e=>ye(J.isHTMLForm(e)?new FormData(e):e),ft.getAdapter=tt,ft.HttpStatusCode=ht,ft.default=ft,e.exports=ft}},t={};function r(n){var s=t[n];if(void 0!==s)return s.exports;var i=t[n]={exports:{}};return e[n].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(2316)})()));
@@ -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.78/typescript" : param.userAgent;
35
+ this.userAgent = param.userAgent === undefined ? "Konfig/9.0.80/typescript" : param.userAgent;
36
36
  this.formDataCtor = param.formDataCtor;
37
37
  }
38
38
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "snaptrade-typescript-sdk",
3
- "version": "9.0.78",
3
+ "version": "9.0.80",
4
4
  "description": "Client for SnapTrade",
5
5
  "author": "Konfig",
6
6
  "engines": {