@qlover/fe-corekit 3.0.0 → 3.0.1
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/dist/index.cjs +71 -7
- package/dist/index.d.ts +45 -4
- package/dist/index.iife.js +71 -7
- package/dist/index.iife.min.js +1 -1
- package/dist/index.js +71 -7
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -4739,7 +4739,11 @@ var SimpleUrlBuilder = /*#__PURE__*/ function() {
|
|
|
4739
4739
|
var _this_config;
|
|
4740
4740
|
if ((_this_config = this.config) === null || _this_config === void 0 ? void 0 : _this_config.strict) {
|
|
4741
4741
|
if (baseURL) {
|
|
4742
|
-
|
|
4742
|
+
if (this.isFullURL(baseURL)) {
|
|
4743
|
+
urlObject = this.joinPathsToBaseURL(url, baseURL);
|
|
4744
|
+
} else {
|
|
4745
|
+
throw new Error("Invalid baseURL format");
|
|
4746
|
+
}
|
|
4743
4747
|
} else {
|
|
4744
4748
|
urlObject = new URL(url, "http://temp");
|
|
4745
4749
|
shouldReturnPathOnly = true;
|
|
@@ -4747,9 +4751,24 @@ var SimpleUrlBuilder = /*#__PURE__*/ function() {
|
|
|
4747
4751
|
} else {
|
|
4748
4752
|
var base = typeof baseURL === "string" && baseURL ? baseURL : "";
|
|
4749
4753
|
if (base && this.isFullURL(base)) {
|
|
4750
|
-
urlObject =
|
|
4754
|
+
urlObject = this.joinPathsToBaseURL(url, base);
|
|
4755
|
+
} else if (base && (base.startsWith("/") || base.startsWith("./") || base.startsWith("../") || base.includes("/"))) {
|
|
4756
|
+
var basePath = base;
|
|
4757
|
+
if (!basePath.startsWith("/")) {
|
|
4758
|
+
basePath = "/" + basePath;
|
|
4759
|
+
}
|
|
4760
|
+
var combinedPath = basePath;
|
|
4761
|
+
if (!combinedPath.endsWith("/") && !url.startsWith("/")) {
|
|
4762
|
+
combinedPath += "/";
|
|
4763
|
+
}
|
|
4764
|
+
combinedPath += url.replace(/^\//, "");
|
|
4765
|
+
urlObject = new URL(combinedPath, "http://temp");
|
|
4766
|
+
shouldReturnPathOnly = true;
|
|
4767
|
+
} else if (base) {
|
|
4768
|
+
urlObject = new URL(url, "http://temp");
|
|
4769
|
+
shouldReturnPathOnly = true;
|
|
4751
4770
|
} else {
|
|
4752
|
-
urlObject = new URL(url, "http://temp"
|
|
4771
|
+
urlObject = new URL(url, "http://temp");
|
|
4753
4772
|
shouldReturnPathOnly = true;
|
|
4754
4773
|
}
|
|
4755
4774
|
}
|
|
@@ -4762,6 +4781,44 @@ var SimpleUrlBuilder = /*#__PURE__*/ function() {
|
|
|
4762
4781
|
},
|
|
4763
4782
|
{
|
|
4764
4783
|
/**
|
|
4784
|
+
* Joins relative URL path to a base URL that has path segments
|
|
4785
|
+
*
|
|
4786
|
+
* This method addresses the issue where using new URL('/path', 'https://domain/base/path')
|
|
4787
|
+
* would replace the entire path of the base URL instead of appending to it.
|
|
4788
|
+
*
|
|
4789
|
+
* @param relativePath - The relative path to append
|
|
4790
|
+
* @param baseURL - The base URL to append to
|
|
4791
|
+
* @returns URL object with properly joined paths
|
|
4792
|
+
*/ key: "joinPathsToBaseURL",
|
|
4793
|
+
value: function joinPathsToBaseURL(relativePath, baseURL) {
|
|
4794
|
+
var baseURLObject = new URL(baseURL);
|
|
4795
|
+
var cleanPath = relativePath;
|
|
4796
|
+
var hash = "";
|
|
4797
|
+
var query = "";
|
|
4798
|
+
var hashIndex = relativePath.indexOf("#");
|
|
4799
|
+
if (hashIndex !== -1) {
|
|
4800
|
+
hash = relativePath.substring(hashIndex);
|
|
4801
|
+
cleanPath = relativePath.substring(0, hashIndex);
|
|
4802
|
+
}
|
|
4803
|
+
var queryIndex = cleanPath.indexOf("?");
|
|
4804
|
+
if (queryIndex !== -1) {
|
|
4805
|
+
query = cleanPath.substring(queryIndex);
|
|
4806
|
+
cleanPath = cleanPath.substring(0, queryIndex);
|
|
4807
|
+
}
|
|
4808
|
+
var adjustedPath = cleanPath.startsWith("/") ? cleanPath.substring(1) : cleanPath;
|
|
4809
|
+
var newPathname = baseURLObject.pathname;
|
|
4810
|
+
if (!newPathname.endsWith("/")) {
|
|
4811
|
+
newPathname += "/";
|
|
4812
|
+
}
|
|
4813
|
+
newPathname += adjustedPath;
|
|
4814
|
+
baseURLObject.pathname = newPathname;
|
|
4815
|
+
baseURLObject.search += query;
|
|
4816
|
+
baseURLObject.hash = hash || baseURLObject.hash;
|
|
4817
|
+
return baseURLObject;
|
|
4818
|
+
}
|
|
4819
|
+
},
|
|
4820
|
+
{
|
|
4821
|
+
/**
|
|
4765
4822
|
* Builds complete URL from request configuration
|
|
4766
4823
|
*
|
|
4767
4824
|
* Constructs a URL string by combining the request URL, base URL, and query parameters.
|
|
@@ -4774,6 +4831,11 @@ var SimpleUrlBuilder = /*#__PURE__*/ function() {
|
|
|
4774
4831
|
* - `null` and `undefined` parameter values are filtered out
|
|
4775
4832
|
* - Hash fragments are preserved in the final URL
|
|
4776
4833
|
*
|
|
4834
|
+
* **Bug Fix Note**: This implementation correctly handles baseURLs that contain
|
|
4835
|
+
* path segments. Previous versions incorrectly lost the path portion when using
|
|
4836
|
+
* `new URL(relativePath, baseURLWithPath)`. Now the relative path is properly
|
|
4837
|
+
* appended to the base URL's path instead of replacing it.
|
|
4838
|
+
*
|
|
4777
4839
|
* @override
|
|
4778
4840
|
* @param config - Request configuration containing URL components
|
|
4779
4841
|
* @param {string} [config.url=''] - The URL path (absolute or relative)
|
|
@@ -4792,13 +4854,15 @@ var SimpleUrlBuilder = /*#__PURE__*/ function() {
|
|
|
4792
4854
|
* // Returns: 'https://api.example.com/users?role=admin&page=1'
|
|
4793
4855
|
* ```
|
|
4794
4856
|
*
|
|
4795
|
-
* @example
|
|
4857
|
+
* @example Complex baseURL with path segments (Bug Fix Example)
|
|
4796
4858
|
* ```typescript
|
|
4797
4859
|
* const url = urlBuilder.buildUrl({
|
|
4798
|
-
* url: '/api/
|
|
4799
|
-
*
|
|
4860
|
+
* url: '/api/token.json',
|
|
4861
|
+
* baseURL: 'https://brus-dev.api.brain.ai/v1.0/invoke/brain-user-system/method',
|
|
4862
|
+
* params: { grant_type: 'authorization_code' }
|
|
4800
4863
|
* });
|
|
4801
|
-
* // Returns: '/api/
|
|
4864
|
+
* // Returns: 'https://brus-dev.api.brain.ai/v1.0/invoke/brain-user-system/method/api/token.json?grant_type=authorization_code'
|
|
4865
|
+
* // ✅ Correctly preserves the baseURL's path segment: '/v1.0/invoke/brain-user-system/method'
|
|
4802
4866
|
* ```
|
|
4803
4867
|
*
|
|
4804
4868
|
* @example Absolute URL ignores baseURL
|
package/dist/index.d.ts
CHANGED
|
@@ -7628,11 +7628,23 @@ declare function isRequestAdapterResponse(value: unknown): value is RequestAdapt
|
|
|
7628
7628
|
* - URL normalization: Leverages native URL API for consistent path resolution
|
|
7629
7629
|
* - Extensible design: Protected methods allow subclass customization
|
|
7630
7630
|
*
|
|
7631
|
+
* Important behaviors:
|
|
7632
|
+
* - Path preservation: When using relative paths with base URLs that contain path segments,
|
|
7633
|
+
* the relative path is appended to the base URL's path instead of replacing it
|
|
7634
|
+
* - Strict vs Non-strict mode: In strict mode, invalid base URLs cause errors;
|
|
7635
|
+
* in non-strict mode, they are handled gracefully
|
|
7636
|
+
* - Authentication info: Preserves authentication credentials in base URLs (e.g., https://user:pass@domain.com/)
|
|
7637
|
+
* - Hash fragments: Maintains hash fragments from both base URLs and relative paths
|
|
7638
|
+
* - Query parameters: Combines query parameters from base URL and config, with new parameters taking precedence
|
|
7639
|
+
*
|
|
7631
7640
|
* Design considerations:
|
|
7632
7641
|
* - Uses temporary domain (`http://temp`) for relative URL processing to leverage URL API
|
|
7633
7642
|
* - Supports strict mode for stricter baseURL validation
|
|
7634
7643
|
* - Returns path-only strings for relative URLs without valid baseURL
|
|
7635
7644
|
*
|
|
7645
|
+
* Configuration options:
|
|
7646
|
+
* - strict: Enables strict mode for stricter validation of base URLs (default: false)
|
|
7647
|
+
*
|
|
7636
7648
|
* `@since` `3.0.0`
|
|
7637
7649
|
*
|
|
7638
7650
|
* @example Basic usage with absolute baseURL
|
|
@@ -7664,6 +7676,17 @@ declare function isRequestAdapterResponse(value: unknown): value is RequestAdapt
|
|
|
7664
7676
|
* baseURL: 'invalid-url' // Will throw error in strict mode
|
|
7665
7677
|
* });
|
|
7666
7678
|
* ```
|
|
7679
|
+
*
|
|
7680
|
+
* @example Preserving path segments in baseURL
|
|
7681
|
+
* ```typescript
|
|
7682
|
+
* const urlBuilder = new SimpleUrlBuilder();
|
|
7683
|
+
* const url = urlBuilder.buildUrl({
|
|
7684
|
+
* url: '/api/token.json',
|
|
7685
|
+
* baseURL: 'https://brus-dev.api.brain.ai/v1.0/invoke/brain-user-system/method'
|
|
7686
|
+
* });
|
|
7687
|
+
* // Returns: 'https://brus-dev.api.brain.ai/v1.0/invoke/brain-user-system/method/api/token.json'
|
|
7688
|
+
* // ✅ Correctly preserves the baseURL's path segment: '/v1.0/invoke/brain-user-system/method'
|
|
7689
|
+
* ```
|
|
7667
7690
|
*/
|
|
7668
7691
|
declare class SimpleUrlBuilder implements UrlBuilderInterface {
|
|
7669
7692
|
/**
|
|
@@ -7773,6 +7796,17 @@ declare class SimpleUrlBuilder implements UrlBuilderInterface {
|
|
|
7773
7796
|
urlObject: URL;
|
|
7774
7797
|
shouldReturnPathOnly: boolean;
|
|
7775
7798
|
};
|
|
7799
|
+
/**
|
|
7800
|
+
* Joins relative URL path to a base URL that has path segments
|
|
7801
|
+
*
|
|
7802
|
+
* This method addresses the issue where using new URL('/path', 'https://domain/base/path')
|
|
7803
|
+
* would replace the entire path of the base URL instead of appending to it.
|
|
7804
|
+
*
|
|
7805
|
+
* @param relativePath - The relative path to append
|
|
7806
|
+
* @param baseURL - The base URL to append to
|
|
7807
|
+
* @returns URL object with properly joined paths
|
|
7808
|
+
*/
|
|
7809
|
+
private joinPathsToBaseURL;
|
|
7776
7810
|
/**
|
|
7777
7811
|
* Builds complete URL from request configuration
|
|
7778
7812
|
*
|
|
@@ -7786,6 +7820,11 @@ declare class SimpleUrlBuilder implements UrlBuilderInterface {
|
|
|
7786
7820
|
* - `null` and `undefined` parameter values are filtered out
|
|
7787
7821
|
* - Hash fragments are preserved in the final URL
|
|
7788
7822
|
*
|
|
7823
|
+
* **Bug Fix Note**: This implementation correctly handles baseURLs that contain
|
|
7824
|
+
* path segments. Previous versions incorrectly lost the path portion when using
|
|
7825
|
+
* `new URL(relativePath, baseURLWithPath)`. Now the relative path is properly
|
|
7826
|
+
* appended to the base URL's path instead of replacing it.
|
|
7827
|
+
*
|
|
7789
7828
|
* @override
|
|
7790
7829
|
* @param config - Request configuration containing URL components
|
|
7791
7830
|
* @param {string} [config.url=''] - The URL path (absolute or relative)
|
|
@@ -7804,13 +7843,15 @@ declare class SimpleUrlBuilder implements UrlBuilderInterface {
|
|
|
7804
7843
|
* // Returns: 'https://api.example.com/users?role=admin&page=1'
|
|
7805
7844
|
* ```
|
|
7806
7845
|
*
|
|
7807
|
-
* @example
|
|
7846
|
+
* @example Complex baseURL with path segments (Bug Fix Example)
|
|
7808
7847
|
* ```typescript
|
|
7809
7848
|
* const url = urlBuilder.buildUrl({
|
|
7810
|
-
* url: '/api/
|
|
7811
|
-
*
|
|
7849
|
+
* url: '/api/token.json',
|
|
7850
|
+
* baseURL: 'https://brus-dev.api.brain.ai/v1.0/invoke/brain-user-system/method',
|
|
7851
|
+
* params: { grant_type: 'authorization_code' }
|
|
7812
7852
|
* });
|
|
7813
|
-
* // Returns: '/api/
|
|
7853
|
+
* // Returns: 'https://brus-dev.api.brain.ai/v1.0/invoke/brain-user-system/method/api/token.json?grant_type=authorization_code'
|
|
7854
|
+
* // ✅ Correctly preserves the baseURL's path segment: '/v1.0/invoke/brain-user-system/method'
|
|
7814
7855
|
* ```
|
|
7815
7856
|
*
|
|
7816
7857
|
* @example Absolute URL ignores baseURL
|
package/dist/index.iife.js
CHANGED
|
@@ -6417,7 +6417,11 @@ var qloverFeCorekit = function() {
|
|
|
6417
6417
|
var _this_config;
|
|
6418
6418
|
if ((_this_config = this.config) === null || _this_config === void 0 ? void 0 : _this_config.strict) {
|
|
6419
6419
|
if (baseURL) {
|
|
6420
|
-
|
|
6420
|
+
if (this.isFullURL(baseURL)) {
|
|
6421
|
+
urlObject = this.joinPathsToBaseURL(url, baseURL);
|
|
6422
|
+
} else {
|
|
6423
|
+
throw new Error("Invalid baseURL format");
|
|
6424
|
+
}
|
|
6421
6425
|
} else {
|
|
6422
6426
|
urlObject = new URL(url, "http://temp");
|
|
6423
6427
|
shouldReturnPathOnly = true;
|
|
@@ -6425,9 +6429,24 @@ var qloverFeCorekit = function() {
|
|
|
6425
6429
|
} else {
|
|
6426
6430
|
var base = typeof baseURL === "string" && baseURL ? baseURL : "";
|
|
6427
6431
|
if (base && this.isFullURL(base)) {
|
|
6428
|
-
urlObject =
|
|
6432
|
+
urlObject = this.joinPathsToBaseURL(url, base);
|
|
6433
|
+
} else if (base && (base.startsWith("/") || base.startsWith("./") || base.startsWith("../") || base.includes("/"))) {
|
|
6434
|
+
var basePath = base;
|
|
6435
|
+
if (!basePath.startsWith("/")) {
|
|
6436
|
+
basePath = "/" + basePath;
|
|
6437
|
+
}
|
|
6438
|
+
var combinedPath = basePath;
|
|
6439
|
+
if (!combinedPath.endsWith("/") && !url.startsWith("/")) {
|
|
6440
|
+
combinedPath += "/";
|
|
6441
|
+
}
|
|
6442
|
+
combinedPath += url.replace(/^\//, "");
|
|
6443
|
+
urlObject = new URL(combinedPath, "http://temp");
|
|
6444
|
+
shouldReturnPathOnly = true;
|
|
6445
|
+
} else if (base) {
|
|
6446
|
+
urlObject = new URL(url, "http://temp");
|
|
6447
|
+
shouldReturnPathOnly = true;
|
|
6429
6448
|
} else {
|
|
6430
|
-
urlObject = new URL(url, "http://temp"
|
|
6449
|
+
urlObject = new URL(url, "http://temp");
|
|
6431
6450
|
shouldReturnPathOnly = true;
|
|
6432
6451
|
}
|
|
6433
6452
|
}
|
|
@@ -6440,6 +6459,44 @@ var qloverFeCorekit = function() {
|
|
|
6440
6459
|
},
|
|
6441
6460
|
{
|
|
6442
6461
|
/**
|
|
6462
|
+
* Joins relative URL path to a base URL that has path segments
|
|
6463
|
+
*
|
|
6464
|
+
* This method addresses the issue where using new URL('/path', 'https://domain/base/path')
|
|
6465
|
+
* would replace the entire path of the base URL instead of appending to it.
|
|
6466
|
+
*
|
|
6467
|
+
* @param relativePath - The relative path to append
|
|
6468
|
+
* @param baseURL - The base URL to append to
|
|
6469
|
+
* @returns URL object with properly joined paths
|
|
6470
|
+
*/ key: "joinPathsToBaseURL",
|
|
6471
|
+
value: function joinPathsToBaseURL(relativePath, baseURL) {
|
|
6472
|
+
var baseURLObject = new URL(baseURL);
|
|
6473
|
+
var cleanPath = relativePath;
|
|
6474
|
+
var hash = "";
|
|
6475
|
+
var query = "";
|
|
6476
|
+
var hashIndex = relativePath.indexOf("#");
|
|
6477
|
+
if (hashIndex !== -1) {
|
|
6478
|
+
hash = relativePath.substring(hashIndex);
|
|
6479
|
+
cleanPath = relativePath.substring(0, hashIndex);
|
|
6480
|
+
}
|
|
6481
|
+
var queryIndex = cleanPath.indexOf("?");
|
|
6482
|
+
if (queryIndex !== -1) {
|
|
6483
|
+
query = cleanPath.substring(queryIndex);
|
|
6484
|
+
cleanPath = cleanPath.substring(0, queryIndex);
|
|
6485
|
+
}
|
|
6486
|
+
var adjustedPath = cleanPath.startsWith("/") ? cleanPath.substring(1) : cleanPath;
|
|
6487
|
+
var newPathname = baseURLObject.pathname;
|
|
6488
|
+
if (!newPathname.endsWith("/")) {
|
|
6489
|
+
newPathname += "/";
|
|
6490
|
+
}
|
|
6491
|
+
newPathname += adjustedPath;
|
|
6492
|
+
baseURLObject.pathname = newPathname;
|
|
6493
|
+
baseURLObject.search += query;
|
|
6494
|
+
baseURLObject.hash = hash || baseURLObject.hash;
|
|
6495
|
+
return baseURLObject;
|
|
6496
|
+
}
|
|
6497
|
+
},
|
|
6498
|
+
{
|
|
6499
|
+
/**
|
|
6443
6500
|
* Builds complete URL from request configuration
|
|
6444
6501
|
*
|
|
6445
6502
|
* Constructs a URL string by combining the request URL, base URL, and query parameters.
|
|
@@ -6452,6 +6509,11 @@ var qloverFeCorekit = function() {
|
|
|
6452
6509
|
* - `null` and `undefined` parameter values are filtered out
|
|
6453
6510
|
* - Hash fragments are preserved in the final URL
|
|
6454
6511
|
*
|
|
6512
|
+
* **Bug Fix Note**: This implementation correctly handles baseURLs that contain
|
|
6513
|
+
* path segments. Previous versions incorrectly lost the path portion when using
|
|
6514
|
+
* `new URL(relativePath, baseURLWithPath)`. Now the relative path is properly
|
|
6515
|
+
* appended to the base URL's path instead of replacing it.
|
|
6516
|
+
*
|
|
6455
6517
|
* @override
|
|
6456
6518
|
* @param config - Request configuration containing URL components
|
|
6457
6519
|
* @param {string} [config.url=''] - The URL path (absolute or relative)
|
|
@@ -6470,13 +6532,15 @@ var qloverFeCorekit = function() {
|
|
|
6470
6532
|
* // Returns: 'https://api.example.com/users?role=admin&page=1'
|
|
6471
6533
|
* ```
|
|
6472
6534
|
*
|
|
6473
|
-
* @example
|
|
6535
|
+
* @example Complex baseURL with path segments (Bug Fix Example)
|
|
6474
6536
|
* ```typescript
|
|
6475
6537
|
* const url = urlBuilder.buildUrl({
|
|
6476
|
-
* url: '/api/
|
|
6477
|
-
*
|
|
6538
|
+
* url: '/api/token.json',
|
|
6539
|
+
* baseURL: 'https://brus-dev.api.brain.ai/v1.0/invoke/brain-user-system/method',
|
|
6540
|
+
* params: { grant_type: 'authorization_code' }
|
|
6478
6541
|
* });
|
|
6479
|
-
* // Returns: '/api/
|
|
6542
|
+
* // Returns: 'https://brus-dev.api.brain.ai/v1.0/invoke/brain-user-system/method/api/token.json?grant_type=authorization_code'
|
|
6543
|
+
* // ✅ Correctly preserves the baseURL's path segment: '/v1.0/invoke/brain-user-system/method'
|
|
6480
6544
|
* ```
|
|
6481
6545
|
*
|
|
6482
6546
|
* @example Absolute URL ignores baseURL
|
package/dist/index.iife.min.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";function e(e,r){if(r==null||r>e.length)r=e.length;for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function r(e){if(Array.isArray(e))return e}function t(r){if(Array.isArray(r))return e(r)}function n(e){if(e===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function o(e,r,t,n,o,a,u){try{var i=e[a](u);var s=i.value}catch(e){t(e);return}if(i.done){r(s)}else{Promise.resolve(s).then(n,o)}}function a(e){return function(){var r=this,t=arguments;return new Promise(function(n,a){var u=e.apply(r,t);function i(e){o(u,n,a,i,s,"next",e)}function s(e){o(u,n,a,i,s,"throw",e)}i(undefined)})}}function u(e,r){if(!(e instanceof r)){throw new TypeError("Cannot call a class as a function")}}function i(e,r,t){if(C()){i=Reflect.construct}else{i=function e(e,r,t){var n=[null];n.push.apply(n,r);var o=Function.bind.apply(e,n);var a=new o;if(t)_(a,t.prototype);return a}}return i.apply(null,arguments)}function s(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}function c(e,r,t){if(r)s(e.prototype,r);if(t)s(e,t);return e}function l(e,r,t){if(r in e){Object.defineProperty(e,r,{value:t,enumerable:true,configurable:true,writable:true})}else{e[r]=t}return e}function f(e){f=Object.setPrototypeOf?Object.getPrototypeOf:function e(e){return e.__proto__||Object.getPrototypeOf(e)};return f(e)}function v(e,r){if(typeof r!=="function"&&r!==null){throw new TypeError("Super expression must either be null or a function")}e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:true,configurable:true}});if(r)_(e,r)}function h(e,r){if(r!=null&&typeof Symbol!=="undefined"&&r[Symbol.hasInstance]){return!!r[Symbol.hasInstance](e)}else{return e instanceof r}}function p(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function d(e){if(typeof Symbol!=="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function y(e,r){var t=e==null?null:typeof Symbol!=="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(t==null)return;var n=[];var o=true;var a=false;var u,i;try{for(t=t.call(e);!(o=(u=t.next()).done);o=true){n.push(u.value);if(r&&n.length===r)break}}catch(e){a=true;i=e}finally{try{if(!o&&t["return"]!=null)t["return"]()}finally{if(a)throw i}}return n}function b(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function g(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function m(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};var n=Object.keys(t);if(typeof Object.getOwnPropertySymbols==="function"){n=n.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))}n.forEach(function(r){l(e,r,t[r])})}return e}function k(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);if(r){n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})}t.push.apply(t,n)}return t}function w(e,r){r=r!=null?r:{};if(Object.getOwnPropertyDescriptors){Object.defineProperties(e,Object.getOwnPropertyDescriptors(r))}else{k(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function j(e,r){if(e==null)return{};var t=O(e,r);var n,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++){n=a[o];if(r.indexOf(n)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(e,n))continue;t[n]=e[n]}}return t}function O(e,r){if(e==null)return{};var t={};var n=Object.keys(e);var o,a;for(a=0;a<n.length;a++){o=n[a];if(r.indexOf(o)>=0)continue;t[o]=e[o]}return t}function E(e,r){if(r&&(S(r)==="object"||typeof r==="function")){return r}return n(e)}function _(e,r){_=Object.setPrototypeOf||function e(e,r){e.__proto__=r;return e};return _(e,r)}function A(e,t){return r(e)||y(e,t)||x(e,t)||b()}function R(e){return t(e)||d(e)||x(e)||g()}function S(e){"@swc/helpers - typeof";return e&&typeof Symbol!=="undefined"&&e.constructor===Symbol?"symbol":typeof e}function x(r,t){if(!r)return;if(typeof r==="string")return e(r,t);var n=Object.prototype.toString.call(r).slice(8,-1);if(n==="Object"&&r.constructor)n=r.constructor.name;if(n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return e(r,t)}function P(e){var r=typeof Map==="function"?new Map:undefined;P=function e(e){if(e===null||!p(e))return e;if(typeof e!=="function"){throw new TypeError("Super expression must either be null or a function")}if(typeof r!=="undefined"){if(r.has(e))return r.get(e);r.set(e,t)}function t(){return i(e,arguments,f(this).constructor)}t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:false,writable:true,configurable:true}});return _(t,e)};return P(e)}function C(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true}catch(e){return false}}function T(e){var r=C();return function t(){var t=f(e),n;if(r){var o=f(this).constructor;n=Reflect.construct(t,arguments,o)}else{n=t.apply(this,arguments)}return E(this,n)}}function I(e,r){var t,n,o,a,u={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]};return a={next:i(0),"throw":i(1),"return":i(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function i(e){return function(r){return s([e,r])}}function s(a){if(t)throw new TypeError("Generator is already executing.");while(u)try{if(t=1,n&&(o=a[0]&2?n["return"]:a[0]?n["throw"]||((o=n["return"])&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;if(n=0,o)a=[a[0]&2,o.value];switch(a[0]){case 0:case 1:o=a;break;case 4:u.label++;return{value:a[1],done:false};case 5:u.label++;n=a[1];a=[0];continue;case 7:a=u.ops.pop();u.trys.pop();continue;default:if(!(o=u.trys,o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){u=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){u.label=a[1];break}if(a[0]===6&&u.label<o[1]){u.label=o[1];o=a;break}if(o&&u.label<o[2]){u.label=o[2];u.ops.push(a);break}if(o[2])u.ops.pop();u.trys.pop();continue}a=r.call(e,u)}catch(e){a=[6,e];n=0}finally{t=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}}var qloverFeCorekit=function(){var e,r,t,n,o,i;var s=function e(e){var r=r0.call(e,r3),t=e[r3];try{e[r3]=void 0;var n=!0}catch(e){}var o=r1.call(e);return n&&(r?e[r3]=t:delete e[r3]),o};var f=function e(e){return r6.call(e)};var p=function e(e){return e==null?e===void 0?r7:r8:r9&&r9 in Object(e)?r2(e):r5(e)};var d=function e(e){return e!=null&&(typeof e==="undefined"?"undefined":S(e))=="object"};var y=function e(e){return(typeof e==="undefined"?"undefined":S(e))=="symbol"||tr(e)&&te(e)==tt};var b=function e(e,r){for(var t=-1,n=e==null?0:e.length,o=Array(n);++t<n;)o[t]=r(e[t],t,e);return o};var g=function e(e){var r=typeof e==="undefined"?"undefined":S(e);return e!=null&&(r=="object"||r=="function")};var k=function e(e){return e};var O=function e(e){if(!tv(e))return!1;var r=te(e);return r==td||r==ty||r==tp||r==tb};var E=function e(e){return!!tw&&tw in e};var _=function e(e){if(e!=null){try{return tE.call(e)}catch(e){}try{return e+""}catch(e){}}return""};var x=function e(e){if(!tv(e)||tj(e))return!1;var r=tg(e)?tT:tR;return r.test(t_(e))};var C=function e(e,r){return e===null||e===void 0?void 0:e[r]};var N=function e(e,r){var t=tN(e,r);return tI(t)?t:void 0};var H=function e(e,r,t){switch(t.length){case 0:return e.call(r);case 1:return e.call(r,t[0]);case 2:return e.call(r,t[0],t[1]);case 3:return e.call(r,t[0],t[1],t[2])}return e.apply(r,t)};var U=function e(e,r){var t=-1,n=e.length;for(r||(r=Array(n));++t<n;)r[t]=e[t];return r};var z=function e(e){var r=0,t=0;return function(){var n=tK(),o=tM-(n-t);if(t=n,o>0){if(++r>=tq)return arguments[0]}else r=0;return e.apply(void 0,arguments)}};var D=function e(e){return function(){return e}};var F=function e(e,r){for(var t=-1,n=e==null?0:e.length;++t<n&&r(e[t],t,e)!==!1;);return e};var B=function e(e,r){var t=typeof e==="undefined"?"undefined":S(e);return r=r!==null&&r!==void 0?r:t1,!!r&&(t=="number"||t!="symbol"&&t3.test(e))&&e>-1&&e%1==0&&e<r};var L=function e(e,r,t){r=="__proto__"&&tJ?tJ(e,r,{configurable:!0,enumerable:!0,value:t,writable:!0}):e[r]=t};var V=function e(e,r){return e===r||e!==e&&r!==r};var q=function e(e,r,t){var n=e[r];(!(t8.call(e,r)&&t6(n,t))||t===void 0&&!(r in e))&&t4(e,r,t)};var M=function e(e,r,t,n){var o=!t;t||(t={});for(var a=-1,u=r.length;++a<u;){var i=r[a],s=n?n(t[i],e[i],i,t,e):void 0;s===void 0&&(s=e[i]),o?t4(t,i,s):t7(t,i,s)}return t};var K=function e(e,r,t){return r=ne(r===void 0?e.length-1:r,0),function(){for(var n=arguments,o=-1,a=ne(n.length-r,0),u=Array(a);++o<a;)u[o]=n[r+o];o=-1;for(var i=Array(r+1);++o<r;)i[o]=n[o];return i[r]=t(u),tL(e,this,i)}};var W=function e(e,r){return tQ(nr(e,r,th),e+"")};var $=function e(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=nn};var G=function e(e){return e!=null&&no(e.length)&&!tg(e)};var J=function e(e,r,t){if(!tv(t))return!1;var n=typeof r==="undefined"?"undefined":S(r);return(n=="number"?na(t)&&t2(r,t.length):n=="string"&&r in t)?t6(t[r],e):!1};var Y=function e(e){return nt(function(r,t){var n=-1,o=t.length,a=o>1?t[o-1]:void 0,u=o>2?t[2]:void 0;for(a=e.length>3&&typeof a=="function"?(o--,a):void 0,u&&nu(t[0],t[1],u)&&(a=o<3?void 0:a,o=1),r=Object(r);++n<o;){var i=t[n];i&&e(r,i,n,a)}return r})};var X=function e(e){var r=e&&e.constructor,t=typeof r=="function"&&r.prototype||ns;return e===t};var Z=function e(e,r){for(var t=-1,n=Array(e);++t<e;)n[t]=r(t);return n};var Q=function e(e){return tr(e)&&te(e)==nf};var ee=function e(){return!1};var er=function e(e){return tr(e)&&no(e.length)&&!!nY[te(e)]};var et=function e(e){return function(r){return e(r)}};var en=function e(e,r){var t=tu(e),n=!t&&nb(e),o=!t&&!n&&n_(e),a=!t&&!n&&!o&&n8(e),u=t||n||o||a,i=u?nl(e.length,String):[],s=i.length;for(var c in e)(r||n9.call(e,c))&&!(u&&(c=="length"||o&&(c=="offset"||c=="parent")||a&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||t2(c,s)))&&i.push(c);return i};var eo=function e(e,r){return function(t){return e(r(t))}};var ea=function e(e){if(!nc(e))return on(e);var r=[];for(var t in Object(e))oa.call(e,t)&&t!="constructor"&&r.push(t);return r};var eu=function e(e){return na(e)?oe(e):ou(e)};var ei=function e(e){var r=[];if(e!=null)for(var t in Object(e))r.push(t);return r};var es=function e(e){if(!tv(e))return os(e);var r=nc(e),t=[];for(var n in e)n=="constructor"&&(r||!ol.call(e,n))||t.push(n);return t};var ec=function e(e){return na(e)?oe(e,!0):of(e)};var el=function e(e,r){if(tu(e))return!1;var t=typeof e==="undefined"?"undefined":S(e);return t=="number"||t=="symbol"||t=="boolean"||e==null||tn(e)?!0:op.test(e)||!oh.test(e)||r!=null&&e in Object(r)};var ef=function e(){this.__data__=ob?ob(null):{},this.size=0};var ev=function e(e){var r=this.has(e)&&delete this.__data__[e];return this.size-=r?1:0,r};var eh=function e(e){var r=this.__data__;if(ob){var t=r[e];return t===ok?void 0:t}return oj.call(r,e)?r[e]:void 0};var ep=function e(e){var r=this.__data__;return ob?r[e]!==void 0:o_.call(r,e)};var ed=function e(e,r){var t=this.__data__;return this.size+=this.has(e)?0:1,t[e]=ob&&r===void 0?oR:r,this};var ey=function e(e){var r=-1,t=e==null?0:e.length;for(this.clear();++r<t;){var n=e[r];this.set(n[0],n[1])}};var eb=function e(){this.__data__=[],this.size=0};var eg=function e(e,r){for(var t=e.length;t--;)if(t6(e[t][0],r))return t;return-1};var em=function e(e){var r=this.__data__,t=oC(r,e);if(t<0)return!1;var n=r.length-1;return t==n?r.pop():oI.call(r,t,1),--this.size,!0};var ek=function e(e){var r=this.__data__,t=oC(r,e);return t<0?void 0:r[t][1]};var ew=function e(e){return oC(this.__data__,e)>-1};var ej=function e(e,r){var t=this.__data__,n=oC(t,e);return n<0?(++this.size,t.push([e,r])):t[n][1]=r,this};var eO=function e(e){var r=-1,t=e==null?0:e.length;for(this.clear();++r<t;){var n=e[r];this.set(n[0],n[1])}};var eE=function e(){this.size=0,this.__data__={hash:new ox,map:new(oB||oD),string:new ox}};var e_=function e(e){var r=typeof e==="undefined"?"undefined":S(e);return r=="string"||r=="number"||r=="symbol"||r=="boolean"?e!=="__proto__":e===null};var eA=function e(e,r){var t=e.__data__;return oV(r)?t[typeof r=="string"?"string":"hash"]:t.map};var eR=function e(e){var r=oq(this,e).delete(e);return this.size-=r?1:0,r};var eS=function e(e){return oq(this,e).get(e)};var ex=function e(e){return oq(this,e).has(e)};var eP=function e(e,r){var t=oq(this,e),n=t.size;return t.set(e,r),this.size+=t.size==n?0:1,this};var eC=function e(e){var r=-1,t=e==null?0:e.length;for(this.clear();++r<t;){var n=e[r];this.set(n[0],n[1])}};var eT=function e(e){var r=oX(e,function(e){return t.size===oZ&&t.clear(),e}),t=r.cache;return r};var eI=function e(e){return e==null?"":tf(e)};var eN=function e(e,r){return tu(e)?e:od(e,r)?[e]:o2(o4(e))};var eH=function e(e){if(typeof e=="string"||tn(e))return e;var r=e+"";return r=="0"&&1/e==-o5?"-0":r};var eU=function e(e,r){r=o6(r,e);for(var t=0,n=r.length;e!=null&&t<n;)e=e[o8(r[t++])];return t&&t==n?e:void 0};var ez=function e(e,r){for(var t=-1,n=r.length,o=e.length;++t<n;)e[o+t]=r[t];return e};var eD=function e(e){return tu(e)||nb(e)||!!(ae&&e&&e[ae])};var eF=function e(e){var r=e==null?0:e.length;return r?an(e,1):[]};var eB=function e(e){return tQ(nr(e,void 0,ao),e+"")};var eL=function e(e){if(!tr(e)||te(e)!=as)return!1;var r=ai(e);if(r===null)return!0;var t=av.call(r,"constructor")&&r.constructor;return typeof t=="function"&&h(t,t)&&af.call(t)==ah};var eV=function e(){this.__data__=new oD,this.size=0};var eq=function e(e){var r=this.__data__,t=r.delete(e);return this.size=r.size,t};var eM=function e(e){return this.__data__.get(e)};var eK=function e(e){return this.__data__.has(e)};var eW=function e(e,r){var t=this.__data__;if(h(t,oD)){var n=t.__data__;if(!oB||n.length<am-1)return n.push([e,r]),this.size=++t.size,this;t=this.__data__=new oG(n)}return t.set(e,r),this.size=t.size,this};var e$=function e(e){var r=this.__data__=new oD(e);this.size=r.size};var eG=function e(e,r){return e&&t9(r,oi(r),e)};var eJ=function e(e,r){return e&&t9(r,ov(r),e)};var eY=function e(e,r){if(r)return e.slice();var t=e.length,n=aS?aS(t):new e.constructor(t);return e.copy(n),n};var eX=function e(e,r){for(var t=-1,n=e==null?0:e.length,o=0,a=[];++t<n;){var u=e[t];r(u,t,e)&&(a[o++]=u)}return a};var eZ=function e(){return[]};var eQ=function e(e,r){return t9(e,aU(e),r)};var e0=function e(e,r){return t9(e,aB(e),r)};var e1=function e(e,r,t){var n=r(e);return tu(e)?n:o9(n,t(e))};var e3=function e(e){return aV(e,oi,aU)};var e2=function e(e){return aV(e,ov,aB)};var e4=function e(e){var r=e.length,t=new e.constructor(r);return r&&typeof e[0]=="string"&&ur.call(e,"index")&&(t.index=e.index,t.input=e.input),t};var e6=function e(e){var r=new e.constructor(e.byteLength);return new uo(r).set(new uo(e)),r};var e5=function e(e,r){var t=r?ua(e.buffer):e.buffer;return new e.constructor(t,e.byteOffset,e.byteLength)};var e8=function e(e){var r=new e.constructor(e.source,ui.exec(e));return r.lastIndex=e.lastIndex,r};var e7=function e(e){return ul?Object(ul.call(e)):{}};var e9=function e(e,r){var t=r?ua(e.buffer):e.buffer;return new e.constructor(t,e.byteOffset,e.length)};var re=function e(e,r,t){var n=e.constructor;switch(r){case uw:return ua(e);case uh:case up:return new n(+e);case uj:return uu(e,t);case uO:case uE:case u_:case uA:case uR:case uS:case ux:case uP:case uC:return uv(e,t);case ud:return new n;case uy:case um:return new n(e);case ub:return us(e);case ug:return new n;case uk:return uf(e)}};var rr=function e(e){return typeof e.constructor=="function"&&!nc(e)?tB(ai(e)):{}};var rt=function e(e){return tr(e)&&a9(e)==uN};var rn=function e(e){return tr(e)&&a9(e)==uF};var ro=function e(e){return ih(e,ip)};var ra=function e(e,r){return e!=null&&r in Object(e)};var ru=function e(e,r,t){r=o6(r,e);for(var n=-1,o=r.length,a=!1;++n<o;){var u=o8(r[n]);if(!(a=e!=null&&t(e,u)))break;e=e[u]}return a||++n!=o?a:(o=e==null?0:e.length,!!o&&no(o)&&t2(u,o)&&(tu(e)||nb(e)))};var ri=function e(e,r){return e!=null&&ib(e,r,iy)};var rs=function e(e){return function(r,t,n){for(var o=-1,a=Object(r),u=n(r),i=u.length;i--;){var s=u[e?i:++o];if(t(a[s],s,a)===!1)break}return r}};var rc=function e(e,r,t){(t!==void 0&&!t6(e[r],t)||t===void 0&&!(r in e))&&t4(e,r,t)};var rl=function e(e){return tr(e)&&na(e)};var rf=function e(e,r){if(!(r==="constructor"&&typeof e[r]=="function")&&r!="__proto__")return e[r]};var rv=function e(e){return t9(e,ov(e))};var rh=function e(e,r,t,n,o,a,u){var i=iE(e,t),s=iE(r,t),c=u.get(s);if(c){ij(e,t,c);return}var l=a?a(i,s,t+"",e,r,u):void 0,f=l===void 0;if(f){var v=tu(s),h=!v&&n_(s),p=!v&&!h&&n8(s);l=s,v||h||p?tu(i)?l=i:iO(i)?l=tV(i):h?(f=!1,l=ax(s,!0)):p?(f=!1,l=uv(s,!0)):l=[]:ap(s)||nb(s)?(l=i,nb(i)?l=i_(i):(!tv(i)||tg(i))&&(l=uI(s))):f=!1}f&&(u.set(s,l),o(l,s,n,a,u),u.delete(s)),ij(e,t,l)};var rp=function e(e){return typeof e=="string"||!tu(e)&&tr(e)&&te(e)==ix};var rd=function e(e,r,t,n){if(!tv(e))return e;r=o6(r,e);for(var o=-1,a=r.length,u=a-1,i=e;i!=null&&++o<a;){var s=o8(r[o]),c=t;if(s==="__proto__"||s==="constructor"||s==="prototype")return e;if(o!=u){var l=i[s];c=n?n(l,s,i):void 0,c===void 0&&(c=tv(l)?l:t2(r[o+1])?[]:{})}t7(i,s,c),i=i[s]}return e};var ry=function e(e,r,t){for(var n=-1,o=r.length,a={};++n<o;){var u=r[n],i=o7(e,u);t(i,u)&&iI(a,o6(u,e),i)}return a};var rb=function e(e,r){return iN(e,r,function(r,t){return ig(e,t)})};var rg=function e(e){return h(e,iL)||(typeof DOMException==="undefined"?"undefined":S(DOMException))<"u"&&h(e,DOMException)&&(e.name==="AbortError"||e.name==="TimeoutError")||h(e,iF)&&(e===null||e===void 0?void 0:e.id)===iB||h(e,Event)&&e.type==="abort"||h(e,Error)&&e.name==="AbortError"};var rm=function e(e){var r=new globalThis.AbortController;function t(){var n=e.filter(function(e){return(e===null||e===void 0?void 0:e.aborted)===!0}).map(function(e){return e===null||e===void 0?void 0:e.reason}).pop();r.abort(n);var o=true,a=false,u=undefined;try{for(var i=e[Symbol.iterator](),s;!(o=(s=i.next()).done);o=true){var c=s.value;(c===null||c===void 0?void 0:c.removeEventListener)!=null&&c.removeEventListener("abort",t)}}catch(e){a=true;u=e}finally{try{if(!o&&i.return!=null){i.return()}}finally{if(a){throw u}}}}var n=true,o=false,a=undefined;try{for(var u=e[Symbol.iterator](),i;!(n=(i=u.next()).done);n=true){var s=i.value;if((s===null||s===void 0?void 0:s.aborted)===!0){t();break}(s===null||s===void 0?void 0:s.addEventListener)!=null&&s.addEventListener("abort",t)}}catch(e){o=true;a=e}finally{try{if(!n&&u.return!=null){u.return()}}finally{if(o){throw a}}}function c(){var r=true,n=false,o=undefined;try{for(var a=e[Symbol.iterator](),u;!(r=(u=a.next()).done);r=true){var i=u.value;(i===null||i===void 0?void 0:i.removeEventListener)!=null&&i.removeEventListener("abort",t)}}catch(e){n=true;o=e}finally{try{if(!r&&a.return!=null){a.return()}}finally{if(n){throw o}}}}var l=r.signal;return l.clear=c,l};var rk=function e(e){var r=AbortSignal.any;if(typeof r=="function"){var t=e.filter(function(e){return e!=null});if(t.length>0){var n=r(t);return n.clear=function(){},n}}return rm(e)};var rw=function e(e){if(typeof AbortSignal.timeout=="function"&&Number.isFinite(e)&&e>=0)try{return AbortSignal.timeout(e)}catch(e){}var r=new AbortController,t=Number.isFinite(e)&&e>=0?Math.min(e,2147483647):2147483647,n=setTimeout(function(){r.abort(new DOMException("The operation timed out","TimeoutError"))},t),o=r.signal;return o.clear=function(){return clearTimeout(n)},o};var rj=function e(e){var r=function(){};return{promise:new Promise(function(t,n){if(e.aborted){n(e.reason||new iL("The operation was aborted"));return}var o=function(){n(e.reason||new iL("The operation was aborted"))};e.addEventListener("abort",o),r=function(){e.removeEventListener("abort",o)}}),cleanup:r}};var rO=function e(e,r){if(!r)return e;r.throwIfAborted();var t=rj(r),n=t.promise,o=t.cleanup;return Promise.race([e,n]).finally(function(){o()})};var rE=function e(e,r,t){for(var n=arguments.length,o=new Array(n>3?n-3:0),a=3;a<n;a++){o[a-3]=arguments[a]}var u;if(typeof e[r]=="function")return(u=e)[r].apply(u,[t].concat(R(o)))};var r_=function e(e){return Array.isArray(e)?e:[e]};var rA=function e(e,r,t){return i0.apply(this,arguments)};var rR=function e(e,r,t){return i1.apply(this,arguments)};var rS=function e(e,r,t){for(var n=arguments.length,o=new Array(n>3?n-3:0),a=3;a<n;a++){o[a-3]=arguments[a]}var u;t.resetHooksRuntimes(r);for(var i=0;i<e.length;i++){var s=e[i];if(t.shouldSkipPluginHook(s,r))continue;if(t.shouldBreakChain())break;var c=(t.hooksRuntimes.times||0)+1;t.runtimes({pluginName:s.pluginName,hookName:r,pluginIndex:i,times:c});try{var l=rE.apply(void 0,[s,r,t].concat(R(o)));if(l!==void 0&&(u=l,t.runtimeReturnValue(l),t.shouldBreakChainOnReturn()))break}catch(e){if(t.shouldContinueOnError())continue;throw e}}return u};var rx=function e(e,r,t){for(var n=arguments.length,o=new Array(n>3?n-3:0),a=3;a<n;a++){o[a-3]=arguments[a]}var u=r_(r),i;var s=true,c=false,l=undefined;try{for(var f=u[Symbol.iterator](),v;!(s=(v=f.next()).done);s=true){var h=v.value;try{var p=rS.apply(void 0,[e,h,t].concat(R(o)));if(p!==void 0&&(i=p),t.shouldBreakChain())break}catch(e){if(t.shouldContinueOnError())continue;throw e}}}catch(e){c=true;l=e}finally{try{if(!s&&f.return!=null){f.return()}}finally{if(c){throw l}}}return i};var rP=function e(e){return e.startsWith("http://")||e.startsWith("https://")};var rC=function e(e,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return typeof e!="string"?!1:r!==void 0?t?e===r:e.toLowerCase()===r.toLowerCase():!0};var rT=function e(e,r,t){if(t)return r in e?{found:!0,value:e[r],actualKey:r}:{found:!1};var n=r.toLowerCase();for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)&&o.toLowerCase()===n)return{found:!0,value:e[o],actualKey:o};return{found:!1}};var rI=function e(e,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return(typeof e==="undefined"?"undefined":S(e))!="object"||e===null?!1:rT(e,r,t).found};var rN=function e(e,r,t,n){if((typeof e==="undefined"?"undefined":S(e))!="object"||e===null)return!1;var o;var a=(o=n===null||n===void 0?void 0:n.keyCaseSensitive)!==null&&o!==void 0?o:!0,u=rT(e,r,a);var i;return u.found?t===void 0?!0:((i=n===null||n===void 0?void 0:n.valueCaseSensitive)!==null&&i!==void 0?i:!0)?u.value===t:typeof u.value=="string"&&typeof t=="string"?u.value.toLowerCase()===t.toLowerCase():u.value===t:!1};var rH=function e(e,r,t){return e?h(e,Headers)?(e.set(r,String(t)),e):w(m({},e),l({},r,t)):l({},r,t)};var rU=function e(e){if(!e||(typeof e==="undefined"?"undefined":S(e))!="object")return!1;var r=e;return"response"in r&&h(r.response,Response)&&"status"in r&&typeof r.status=="number"&&"statusText"in r&&typeof r.statusText=="string"&&"headers"in r&&S(r.headers)=="object"&&r.headers!==null&&"config"in r&&S(r.config)=="object"&&r.config!==null};var rz=function e(e){return"type"in e&&"pipe"in e?e:"serialize"in e&&"deserialize"in e?{pipe:e,type:"serialize"}:"encrypt"in e&&"decrypt"in e?{pipe:e,type:"encrypt"}:"setItem"in e&&"getItem"in e&&"removeItem"in e&&"clear"in e?{pipe:e,type:"storage"}:null};var rD=Object.defineProperty;var rF=Object.getOwnPropertyDescriptor;var rB=Object.getOwnPropertyNames;var rL=Object.prototype.hasOwnProperty;var rV=function(e,r){for(var t in r)rD(e,t,{get:r[t],enumerable:!0})},rq=function(e,r,t,n){var o=true,a=false,u=undefined;if(r&&(typeof r==="undefined"?"undefined":S(r))=="object"||typeof r=="function")try{var i=function(){var o=c.value;!rL.call(e,o)&&o!==t&&rD(e,o,{get:function(){return r[o]},enumerable:!(n=rF(r,o))||n.enumerable})};for(var s=rB(r)[Symbol.iterator](),c;!(o=(c=s.next()).done);o=true)i()}catch(e){a=true;u=e}finally{try{if(!o&&s.return!=null){s.return()}}finally{if(a){throw u}}}return e};var rM=function(e){return rq(rD({},"__esModule",{value:!0}),e)};var rK={};rV(rK,{ABORT_ERROR_ID:function(){return iB},AbortError:function(){return iL},Aborter:function(){return iV},AborterPlugin:function(){return iq},Base64Serializer:function(){return sp},BasePluginExecutor:function(){return iQ},DEFAULT_HOOK_ON_BEFORE:function(){return iG},DEFAULT_HOOK_ON_ERROR:function(){return iX},DEFAULT_HOOK_ON_EXEC:function(){return iJ},DEFAULT_HOOK_ON_FINALLY:function(){return iZ},DEFAULT_HOOK_ON_SUCCESS:function(){return iY},EXECUTOR_ASYNC_ERROR:function(){return i$},EXECUTOR_ERROR_NAME:function(){return iD},EXECUTOR_SYNC_ERROR:function(){return iW},ExecutorContextImpl:function(){return iK},ExecutorError:function(){return iF},HttpMethods:function(){return su},JSONSerializer:function(){return sh},KeyStorage:function(){return sd},LifecycleExecutor:function(){return i3},LifecycleSyncExecutor:function(){return i2},ObjectStorage:function(){return sy},RETRY_ERROR_ID:function(){return i4},RequestAdapterAxios:function(){return sa},RequestAdapterFetch:function(){return so},RequestExecutor:function(){return si},RequestHeaderInjector:function(){return ss},RequestPlugin:function(){return sl},ResponsePlugin:function(){return sf},RetryPlugin:function(){return i6},SimpleUrlBuilder:function(){return sc},SyncStorage:function(){return sg},appendHeaders:function(){return rH},createAbortPromise:function(){return rj},hasObjectKey:function(){return rI},hasObjectKeyWithValue:function(){return rN},isAbortError:function(){return rg},isAbsoluteUrl:function(){return rP},isAsString:function(){return rC},isRequestAdapterResponse:function(){return rU},normalizeHookNames:function(){return r_},raceWithAbort:function(){return rO},runPluginHook:function(){return rE},runPluginsHookAsync:function(){return rA},runPluginsHookSync:function(){return rS},runPluginsHooksAsync:function(){return rR},runPluginsHooksSync:function(){return rx}});var rW=(typeof global==="undefined"?"undefined":S(global))=="object"&&global&&global.Object===Object&&global,r$=rW;var rG=(typeof self==="undefined"?"undefined":S(self))=="object"&&self&&self.Object===Object&&self,rJ=r$||rG||Function("return this")(),rY=rJ;var rX=rY.Symbol,rZ=rX;var rQ=Object.prototype,r0=rQ.hasOwnProperty,r1=rQ.toString,r3=rZ?rZ.toStringTag:void 0;var r2=s;var r4=Object.prototype,r6=r4.toString;var r5=f;var r8="[object Null]",r7="[object Undefined]",r9=rZ?rZ.toStringTag:void 0;var te=p;var tr=d;var tt="[object Symbol]";var tn=y;var to=b;var ta=Array.isArray,tu=ta;var ti=1/0,ts=rZ?rZ.prototype:void 0,tc=ts?ts.toString:void 0;function tl(e){if(typeof e=="string")return e;if(tu(e))return to(e,tl)+"";if(tn(e))return tc?tc.call(e):"";var r=e+"";return r=="0"&&1/e==-ti?"-0":r}var tf=tl;var tv=g;var th=k;var tp="[object AsyncFunction]",td="[object Function]",ty="[object GeneratorFunction]",tb="[object Proxy]";var tg=O;var tm=rY["__core-js_shared__"],tk=tm;var tw=function(){var e=/[^.]+$/.exec(tk&&tk.keys&&tk.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();var tj=E;var tO=Function.prototype,tE=tO.toString;var t_=_;var tA=/[\\^$.*+?()[\]{}|]/g,tR=/^\[object .+?Constructor\]$/,tS=Function.prototype,tx=Object.prototype,tP=tS.toString,tC=tx.hasOwnProperty,tT=RegExp("^"+tP.call(tC).replace(tA,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var tI=x;var tN=C;var tH=N;var tU=tH(rY,"WeakMap"),tz=tU;var tD=Object.create,tF=function(){function e(){}return function(r){if(!tv(r))return{};if(tD)return tD(r);e.prototype=r;var t=new e;return e.prototype=void 0,t}}(),tB=tF;var tL=H;var tV=U;var tq=800,tM=16,tK=Date.now;var tW=z;var t$=D;var tG=function(){try{var e=tH(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),tJ=tG;var tY=tJ?function e(e,r){return tJ(e,"toString",{configurable:!0,enumerable:!1,value:t$(r),writable:!0})}:th,tX=tY;var tZ=tW(tX),tQ=tZ;var t0=F;var t1=9007199254740991,t3=/^(?:0|[1-9]\d*)$/;var t2=B;var t4=L;var t6=V;var t5=Object.prototype,t8=t5.hasOwnProperty;var t7=q;var t9=M;var ne=Math.max;var nr=K;var nt=W;var nn=9007199254740991;var no=$;var na=G;var nu=J;var ni=Y;var ns=Object.prototype;var nc=X;var nl=Z;var nf="[object Arguments]";var nv=Q;var nh=Object.prototype,np=nh.hasOwnProperty,nd=nh.propertyIsEnumerable,ny=nv(function(){return arguments}())?nv:function e(e){return tr(e)&&np.call(e,"callee")&&!nd.call(e,"callee")},nb=ny;var ng=ee;var nm=(typeof exports==="undefined"?"undefined":S(exports))=="object"&&exports&&!exports.nodeType&&exports,nk=nm&&(typeof module==="undefined"?"undefined":S(module))=="object"&&module&&!module.nodeType&&module,nw=nk&&nk.exports===nm,nj=nw?rY.Buffer:void 0,nO=nj?nj.isBuffer:void 0,nE=nO||ng,n_=nE;var nA="[object Arguments]",nR="[object Array]",nS="[object Boolean]",nx="[object Date]",nP="[object Error]",nC="[object Function]",nT="[object Map]",nI="[object Number]",nN="[object Object]",nH="[object RegExp]",nU="[object Set]",nz="[object String]",nD="[object WeakMap]",nF="[object ArrayBuffer]",nB="[object DataView]",nL="[object Float32Array]",nV="[object Float64Array]",nq="[object Int8Array]",nM="[object Int16Array]",nK="[object Int32Array]",nW="[object Uint8Array]",n$="[object Uint8ClampedArray]",nG="[object Uint16Array]",nJ="[object Uint32Array]",nY={};nY[nL]=nY[nV]=nY[nq]=nY[nM]=nY[nK]=nY[nW]=nY[n$]=nY[nG]=nY[nJ]=!0;nY[nA]=nY[nR]=nY[nF]=nY[nS]=nY[nB]=nY[nx]=nY[nP]=nY[nC]=nY[nT]=nY[nI]=nY[nN]=nY[nH]=nY[nU]=nY[nz]=nY[nD]=!1;var nX=er;var nZ=et;var nQ=(typeof exports==="undefined"?"undefined":S(exports))=="object"&&exports&&!exports.nodeType&&exports,n0=nQ&&(typeof module==="undefined"?"undefined":S(module))=="object"&&module&&!module.nodeType&&module,n1=n0&&n0.exports===nQ,n3=n1&&r$.process,n2=function(){try{var e=n0&&n0.require&&n0.require("util").types;return e||n3&&n3.binding&&n3.binding("util")}catch(e){}}(),n4=n2;var n6=n4&&n4.isTypedArray,n5=n6?nZ(n6):nX,n8=n5;var n7=Object.prototype,n9=n7.hasOwnProperty;var oe=en;var or=eo;var ot=or(Object.keys,Object),on=ot;var oo=Object.prototype,oa=oo.hasOwnProperty;var ou=ea;var oi=eu;var os=ei;var oc=Object.prototype,ol=oc.hasOwnProperty;var of=es;var ov=ec;var oh=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,op=/^\w*$/;var od=el;var oy=tH(Object,"create"),ob=oy;var og=ef;var om=ev;var ok="__lodash_hash_undefined__",ow=Object.prototype,oj=ow.hasOwnProperty;var oO=eh;var oE=Object.prototype,o_=oE.hasOwnProperty;var oA=ep;var oR="__lodash_hash_undefined__";var oS=ed;ey.prototype.clear=og;ey.prototype.delete=om;ey.prototype.get=oO;ey.prototype.has=oA;ey.prototype.set=oS;var ox=ey;var oP=eb;var oC=eg;var oT=Array.prototype,oI=oT.splice;var oN=em;var oH=ek;var oU=ew;var oz=ej;eO.prototype.clear=oP;eO.prototype.delete=oN;eO.prototype.get=oH;eO.prototype.has=oU;eO.prototype.set=oz;var oD=eO;var oF=tH(rY,"Map"),oB=oF;var oL=eE;var oV=e_;var oq=eA;var oM=eR;var oK=eS;var oW=ex;var o$=eP;eC.prototype.clear=oL;eC.prototype.delete=oM;eC.prototype.get=oK;eC.prototype.has=oW;eC.prototype.set=o$;var oG=eC;var oJ="Expected a function";function oY(e,r){if(typeof e!="function"||r!=null&&typeof r!="function")throw new TypeError(oJ);var t=function n(){var n=arguments,o=r?r.apply(this,n):n[0],a=t.cache;if(a.has(o))return a.get(o);var u=e.apply(this,n);return t.cache=a.set(o,u)||a,u};return t.cache=new(oY.Cache||oG),t}oY.Cache=oG;var oX=oY;var oZ=500;var oQ=eT;var o0=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o1=/\\(\\)?/g,o3=oQ(function(e){var r=[];return e.charCodeAt(0)===46&&r.push(""),e.replace(o0,function(e,t,n,o){r.push(n?o.replace(o1,"$1"):t||e)}),r}),o2=o3;var o4=eI;var o6=eN;var o5=1/0;var o8=eH;var o7=eU;var o9=ez;var ae=rZ?rZ.isConcatSpreadable:void 0;var ar=eD;function at(e,r,t,n,o){var a=-1,u=e.length;for(t||(t=ar),o||(o=[]);++a<u;){var i=e[a];r>0&&t(i)?r>1?at(i,r-1,t,n,o):o9(o,i):n||(o[o.length]=i)}return o}var an=at;var ao=eF;var aa=eB;var au=or(Object.getPrototypeOf,Object),ai=au;var as="[object Object]",ac=Function.prototype,al=Object.prototype,af=ac.toString,av=al.hasOwnProperty,ah=af.call(Object);var ap=eL;var ad=eV;var ay=eq;var ab=eM;var ag=eK;var am=200;var ak=eW;e$.prototype.clear=ad;e$.prototype.delete=ay;e$.prototype.get=ab;e$.prototype.has=ag;e$.prototype.set=ak;var aw=e$;var aj=eG;var aO=eJ;var aE=(typeof exports==="undefined"?"undefined":S(exports))=="object"&&exports&&!exports.nodeType&&exports,a_=aE&&(typeof module==="undefined"?"undefined":S(module))=="object"&&module&&!module.nodeType&&module,aA=a_&&a_.exports===aE,aR=aA?rY.Buffer:void 0,aS=aR?aR.allocUnsafe:void 0;var ax=eY;var aP=eX;var aC=eZ;var aT=Object.prototype,aI=aT.propertyIsEnumerable,aN=Object.getOwnPropertySymbols,aH=aN?function e(e){return e==null?[]:(e=Object(e),aP(aN(e),function(r){return aI.call(e,r)}))}:aC,aU=aH;var az=eQ;var aD=Object.getOwnPropertySymbols,aF=aD?function e(e){for(var r=[];e;)o9(r,aU(e)),e=ai(e);return r}:aC,aB=aF;var aL=e0;var aV=e1;var aq=e3;var aM=e2;var aK=tH(rY,"DataView"),aW=aK;var a$=tH(rY,"Promise"),aG=a$;var aJ=tH(rY,"Set"),aY=aJ;var aX="[object Map]",aZ="[object Object]",aQ="[object Promise]",a0="[object Set]",a1="[object WeakMap]",a3="[object DataView]",a2=t_(aW),a4=t_(oB),a6=t_(aG),a5=t_(aY),a8=t_(tz),a7=te;(aW&&a7(new aW(new ArrayBuffer(1)))!=a3||oB&&a7(new oB)!=aX||aG&&a7(aG.resolve())!=aQ||aY&&a7(new aY)!=a0||tz&&a7(new tz)!=a1)&&(a7=function e(e){var r=te(e),t=r==aZ?e.constructor:void 0,n=t?t_(t):"";if(n)switch(n){case a2:return a3;case a4:return aX;case a6:return aQ;case a5:return a0;case a8:return a1}return r});var a9=a7;var ue=Object.prototype,ur=ue.hasOwnProperty;var ut=e4;var un=rY.Uint8Array,uo=un;var ua=e6;var uu=e5;var ui=/\w*$/;var us=e8;var uc=rZ?rZ.prototype:void 0,ul=uc?uc.valueOf:void 0;var uf=e7;var uv=e9;var uh="[object Boolean]",up="[object Date]",ud="[object Map]",uy="[object Number]",ub="[object RegExp]",ug="[object Set]",um="[object String]",uk="[object Symbol]",uw="[object ArrayBuffer]",uj="[object DataView]",uO="[object Float32Array]",uE="[object Float64Array]",u_="[object Int8Array]",uA="[object Int16Array]",uR="[object Int32Array]",uS="[object Uint8Array]",ux="[object Uint8ClampedArray]",uP="[object Uint16Array]",uC="[object Uint32Array]";var uT=re;var uI=rr;var uN="[object Map]";var uH=rt;var uU=n4&&n4.isMap,uz=uU?nZ(uU):uH,uD=uz;var uF="[object Set]";var uB=rn;var uL=n4&&n4.isSet,uV=uL?nZ(uL):uB,uq=uV;var uM=1,uK=2,uW=4,u$="[object Arguments]",uG="[object Array]",uJ="[object Boolean]",uY="[object Date]",uX="[object Error]",uZ="[object Function]",uQ="[object GeneratorFunction]",u0="[object Map]",u1="[object Number]",u3="[object Object]",u2="[object RegExp]",u4="[object Set]",u6="[object String]",u5="[object Symbol]",u8="[object WeakMap]",u7="[object ArrayBuffer]",u9="[object DataView]",ie="[object Float32Array]",ir="[object Float64Array]",it="[object Int8Array]",io="[object Int16Array]",ia="[object Int32Array]",iu="[object Uint8Array]",ii="[object Uint8ClampedArray]",is="[object Uint16Array]",ic="[object Uint32Array]",il={};il[u$]=il[uG]=il[u7]=il[u9]=il[uJ]=il[uY]=il[ie]=il[ir]=il[it]=il[io]=il[ia]=il[u0]=il[u1]=il[u3]=il[u2]=il[u4]=il[u6]=il[u5]=il[iu]=il[ii]=il[is]=il[ic]=!0;il[uX]=il[uZ]=il[u8]=!1;function iv(e,r,t,n,o,a){var u,i=r&uM,s=r&uK,c=r&uW;if(t&&(u=o?t(e,n,o,a):t(e)),u!==void 0)return u;if(!tv(e))return e;var l=tu(e);if(l){if(u=ut(e),!i)return tV(e,u)}else{var f=a9(e),v=f==uZ||f==uQ;if(n_(e))return ax(e,i);if(f==u3||f==u$||v&&!o){if(u=s||v?{}:uI(e),!i)return s?aL(e,aO(u,e)):az(e,aj(u,e))}else{if(!il[f])return o?e:{};u=uT(e,f,i)}}a||(a=new aw);var h=a.get(e);if(h)return h;a.set(e,u),uq(e)?e.forEach(function(n){u.add(iv(n,r,t,n,e,a))}):uD(e)&&e.forEach(function(n,o){u.set(o,iv(n,r,t,o,e,a))});var p=c?s?aM:aq:s?ov:oi,d=l?void 0:p(e);return t0(d||e,function(n,o){d&&(o=n,n=e[o]),t7(u,o,iv(n,r,t,o,e,a))}),u}var ih=iv;var ip=4;var id=ro;var iy=ra;var ib=ru;var ig=ri;var im=rs;var ik=im(),iw=ik;var ij=rc;var iO=rl;var iE=rf;var i_=rv;var iA=rh;function iR(e,r,t,n,o){e!==r&&iw(r,function(a,u){if(o||(o=new aw),tv(a))iA(e,r,u,t,iR,n,o);else{var i=n?n(iE(e,u),a,u+"",e,r,o):void 0;i===void 0&&(i=a),ij(e,u,i)}},ov)}var iS=iR;var ix="[object String]";var iP=rp;var iC=ni(function(e,r,t){iS(e,r,t)}),iT=iC;var iI=rd;var iN=ry;var iH=rb;var iU=aa(function(e,r){return e==null?{}:iH(e,r)}),iz=iU;var iD="ExecutorError",iF=function(e){v(t,e);var r=T(t);function t(e,n){u(this,t);var o;o=r.call(this);o.id=e;o.name=o.constructor!==t?o.constructor.name:iD,h(n,Error)?o.message=n.message:typeof n=="string"&&(o.message=n),o.message||(o.message=e),o.message!==n&&(o.cause=n);return o}return t}(P(Error));var iB="ABORT_ERROR",iL=function(e){v(t,e);var r=T(t);function t(e,n,o){u(this,t);var a;a=r.call(this,iB,e);a.name="AbortError";a.abortId=n,a.timeout=o;return a}return t}(iF);var iV=function(){function e(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"Aborter";u(this,e);this.aborterName=r;this.requestCounter=0;this.wrappers=new Map}c(e,[{key:"generateAbortedId",value:function e(e){var r;return e?(r=e.abortId)!==null&&r!==void 0?r:"".concat(this.aborterName,"-").concat(++this.requestCounter):"".concat(this.aborterName,"-").concat(++this.requestCounter)}},{key:"register",value:function e(e){var r;var t=this.generateAbortedId(e);if(this.wrappers.has(t))throw new Error('Operation with ID "'.concat(t,'" is already registered in ').concat(this.aborterName));if((r=e.signal)===null||r===void 0?void 0:r.aborted){var n=new AbortController;return n.abort(e.signal.reason),{abortId:t,signal:n.signal}}var o=new AbortController,a=this.createComposedSignal(e,o.signal,t),u=a.signal,i=a.cleanup;return this.wrappers.set(t,{controller:o,config:e,cleanup:i}),{abortId:t,signal:u}}},{key:"createComposedSignal",value:function e(e,r,t){var n=this;var o=[r],a=[];if(this.hasValidTimeout(e)){var u=rw(e.abortTimeout);o.push(u),this.isClearable(u)&&a.push(function(){return u.clear()})}if(e.signal&&o.push(e.signal),o.length===1)return{signal:r};var i=rk(o),s=function(){var r=i.reason;n.isTimeoutError(r)&&n.invokeCallback(e,"onAbortedTimeout"),n.cleanup(t)};return i.addEventListener("abort",s,{once:!0}),a.push(function(){return i.removeEventListener("abort",s)},function(){return i.clear()}),{signal:i,cleanup:function(){return a.forEach(function(e){return e()})}}}},{key:"hasValidTimeout",value:function e(e){return"abortTimeout"in e&&Number.isInteger(e.abortTimeout)&&e.abortTimeout>0}},{key:"isClearable",value:function e(e){return"clear"in e&&typeof e.clear=="function"}},{key:"isTimeoutError",value:function e(e){var r;return(e===null||e===void 0?void 0:e.name)==="TimeoutError"||(e===null||e===void 0?void 0:(r=e.message)===null||r===void 0?void 0:r.includes("timed out"))}},{key:"invokeCallback",value:function e(e,r){if(r in e&&typeof e[r]=="function")try{e[r](w(m({},e),{onAborted:void 0,onAbortedTimeout:void 0}))}catch(e){var t;(typeof process==="undefined"?"undefined":S(process))<"u"&&((t=process.env)===null||t===void 0?void 0:t.NODE_ENV)==="development"&&console.error("[".concat(this.aborterName,"] Error in ").concat(r," callback:"),e)}}},{key:"resolveAbortId",value:function e(e){return iP(e)?e:this.generateAbortedId(e)}},{key:"cleanup",value:function e(e){var r=this.resolveAbortId(e),t=this.wrappers.get(r);if(t){this.wrappers.delete(r);try{var n;(n=t.cleanup)===null||n===void 0?void 0:n.call(t)}catch(e){}return!0}return!1}},{key:"abort",value:function e(e){var r=this.resolveAbortId(e),t=this.wrappers.get(r);if(!t)return!1;var n=iP(e)?t.config:e;return t.controller.abort(new iL("The operation was aborted",r)),this.cleanup(r),this.invokeCallback(n,"onAborted"),!0}},{key:"abortAll",value:function e(){var e=Array.from(this.wrappers.entries());this.wrappers.clear(),e.forEach(function(e){var r=A(e,2),t=r[0],n=r[1];try{n.controller.signal.aborted||n.controller.abort(new iL("All operations were aborted",t))}catch(e){}try{var o;(o=n.cleanup)===null||o===void 0?void 0:o.call(n)}catch(e){}})}},{key:"autoCleanup",value:function e(e,r){var t=this;var n=this.register(r!==null&&r!==void 0?r:{}),o=n.abortId,a=n.signal;try{var u=e({abortId:o,signal:a});return Promise.resolve(u).finally(function(){return t.cleanup(o)})}catch(e){return this.cleanup(o),Promise.reject(e)}}},{key:"getSignal",value:function e(e){var r;return(r=this.wrappers.get(e))===null||r===void 0?void 0:r.controller.signal}}]);return e}();var iq=function(){function e(r){u(this,e);this.onlyOne=!0;var t=r!==null&&r!==void 0?r:{},n=t.pluginName,o=j(t,["pluginName"]);var a;this.pluginName=n!==null&&n!==void 0?n:"AborterPlugin",this.getConfig=(o===null||o===void 0?void 0:o.getConfig)||function(e){return e},this.timeout=o===null||o===void 0?void 0:o.timeout,this.aborter=(a=o===null||o===void 0?void 0:o.aborter)!==null&&a!==void 0?a:new iV(this.pluginName)}c(e,[{key:"onBefore",value:function e(e){var r=this.getConfig(e.parameters);process.env.NODE_ENV!=="production"&&!("signal"in r&&h(r.signal,AbortSignal))&&console.warn("[".concat(this.pluginName,"] Warning: config.signal is missing. Make sure your getConfig extracts the signal property."));var t=this.timeout!==void 0&&"abortTimeout"in r&&(r.abortTimeout===void 0||r.abortTimeout===null)?w(m({},r),{abortTimeout:this.timeout}):r;this.aborter.abort(t);var n=this.aborter.register(t),o=n.signal,a=n.abortId;S(e.parameters)=="object"&&e.parameters!==null&&e.setParameters(w(m({},e.parameters),{signal:o,abortId:a}))}},{key:"cleanupFromContext",value:function e(e){this.aborter.cleanup(e)}},{key:"onError",value:function e(e){if(!e.parameters)return;var r=this.getConfig(e.parameters);if(rg(e.error)){if(h(e.error,iL))return e.error;var t="The operation was aborted",n=e.error;return n&&(typeof n==="undefined"?"undefined":S(n))=="object"&&"message"in n&&(t=String(n.message)),new iL(t,r.abortId)}}},{key:"onFinally",value:function e(e){e.parameters&&this.cleanupFromContext(e.parameters)}},{key:"abort",value:function e(e){return this.aborter.abort(e)}},{key:"abortAll",value:function e(){this.aborter.abortAll()}},{key:"getAborter",value:function e(){return this.aborter}}]);return e}();var iM=new WeakMap,iK=function(){function e(r){u(this,e);this._parameters=r,iM.set(this,{pluginName:"",pluginIndex:void 0,hookName:"",returnValue:void 0,returnBreakChain:!1,times:0,breakChain:!1})}c(e,[{key:"parameters",get:function e(){return this._parameters}},{key:"error",get:function e(){return this._error}},{key:"returnValue",get:function e(){return this._returnValue}},{key:"hooksRuntimes",get:function e(){var e=iM.get(this);if(!e)throw new Error("Runtime state not initialized");return Object.freeze(m({},e))}},{key:"setError",value:function e(e){this._error=e}},{key:"setReturnValue",value:function e(e){this._returnValue=e}},{key:"setParameters",value:function e(e){this._parameters=e}},{key:"resetHooksRuntimes",value:function e(e){var r=iM.get(this);if(!r)throw new Error("Runtime state not initialized");if(e){iM.set(this,w(m({},r),{hookName:e,times:0,returnValue:void 0}));return}iM.set(this,{pluginName:"",pluginIndex:void 0,hookName:"",returnValue:void 0,returnBreakChain:!1,times:0,breakChain:!1})}},{key:"reset",value:function e(){this.resetHooksRuntimes(),this._returnValue=void 0,this._error=void 0}},{key:"shouldSkipPluginHook",value:function e(e,r){return typeof e[r]!="function"||typeof e.enabled=="function"&&!e.enabled(r,this)}},{key:"runtimes",value:function e(e){var r=iM.get(this);if(!r)throw new Error("Runtime state not initialized");iM.set(this,m({},r,e))}},{key:"runtimeReturnValue",value:function e(e){var r=iM.get(this);if(!r)throw new Error("Runtime state not initialized");iM.set(this,w(m({},r),{returnValue:e}))}},{key:"shouldBreakChain",value:function e(){var e;return!!((e=iM.get(this))===null||e===void 0?void 0:e.breakChain)}},{key:"shouldBreakChainOnReturn",value:function e(){var e;return!!((e=iM.get(this))===null||e===void 0?void 0:e.returnBreakChain)}},{key:"shouldContinueOnError",value:function e(){var e;return!!((e=iM.get(this))===null||e===void 0?void 0:e.continueOnError)}}]);return e}();var iW="UNKNOWN_SYNC_ERROR",i$="UNKNOWN_ASYNC_ERROR",iG="onBefore",iJ="onExec",iY="onSuccess",iX="onError",iZ="onFinally";var iQ=function(){function e(r){u(this,e);this.config=r;this.plugins=[]}c(e,[{key:"use",value:function e(e){this.validePlugin(e),this.plugins.push(e)}},{key:"validePlugin",value:function e(e){if((typeof e==="undefined"?"undefined":S(e))!="object"||e===null)throw new Error("Plugin must be an object");if(e.onlyOne&&this.plugins.some(function(r){return r===e||r.pluginName&&e.pluginName&&r.pluginName===e.pluginName||r.constructor===e.constructor})){var r=e.pluginName||"Unknown";throw new Error("Plugin ".concat(r," is already used"))}}},{key:"createContext",value:function e(e){return new iK(e)}},{key:"getBeforeHooks",value:function e(){var e;var r;return(r=(e=this.config)===null||e===void 0?void 0:e.beforeHooks)!==null&&r!==void 0?r:iG}},{key:"getAfterHooks",value:function e(){var e;var r;return(r=(e=this.config)===null||e===void 0?void 0:e.afterHooks)!==null&&r!==void 0?r:iY}},{key:"getExecHook",value:function e(){var e;var r;return(r=(e=this.config)===null||e===void 0?void 0:e.execHook)!==null&&r!==void 0?r:iJ}},{key:"getErrorHook",value:function e(){return iX}},{key:"getFinallyHook",value:function e(){return iZ}}]);return e}();function i0(){i0=a(function(e,r,t){var n,o,a,u,i,s,c,l,f;var v=arguments;return I(this,function(h){switch(h.label){case 0:for(n=v.length,o=new Array(n>3?n-3:0),a=3;a<n;a++){o[a-3]=v[a]}t.resetHooksRuntimes(r);i=0;h.label=1;case 1:if(!(i<e.length))return[3,6];s=e[i];if(t.shouldSkipPluginHook(s,r))return[3,5];if(t.shouldBreakChain())return[3,6];c=(t.hooksRuntimes.times||0)+1;t.runtimes({pluginName:s.pluginName,hookName:r,pluginIndex:i,times:c});h.label=2;case 2:h.trys.push([2,4,,5]);return[4,rE.apply(void 0,[s,r,t].concat(R(o)))];case 3:l=h.sent();if(l!==void 0&&(u=l,t.runtimeReturnValue(l),t.shouldBreakChainOnReturn()))return[3,6];return[3,5];case 4:f=h.sent();if(t.shouldContinueOnError())return[3,5];throw f;case 5:i++;return[3,1];case 6:return[2,u]}})});return i0.apply(this,arguments)}function i1(){i1=a(function(e,r,t){var n,o,a,u,i,s,c,l,f,v,h,p,d,y;var b=arguments;return I(this,function(g){switch(g.label){case 0:for(n=b.length,o=new Array(n>3?n-3:0),a=3;a<n;a++){o[a-3]=b[a]}u=r_(r);s=true,c=false,l=undefined;g.label=1;case 1:g.trys.push([1,8,9,10]);f=u[Symbol.iterator]();g.label=2;case 2:if(!!(s=(v=f.next()).done))return[3,7];h=v.value;g.label=3;case 3:g.trys.push([3,5,,6]);return[4,rA.apply(void 0,[e,h,t].concat(R(o)))];case 4:p=g.sent();if(p!==void 0&&(i=p),t.shouldBreakChain())return[3,7];return[3,6];case 5:d=g.sent();if(t.shouldContinueOnError())return[3,6];throw d;case 6:s=true;return[3,2];case 7:return[3,10];case 8:y=g.sent();c=true;l=y;return[3,10];case 9:try{if(!s&&f.return!=null){f.return()}}finally{if(c){throw l}}return[7];case 10:return[2,i]}})});return i1.apply(this,arguments)}var i3=function(e){v(t,e);var r=T(t);function t(){u(this,t);return r.apply(this,arguments)}c(t,[{key:"execNoError",value:function e(e,r){var t=this;return a(function(){var n,o;return I(this,function(a){switch(a.label){case 0:a.trys.push([0,5,,6]);if(!(r!==void 0))return[3,2];return[4,t.exec(e,r)];case 1:n=a.sent();return[3,4];case 2:return[4,t.exec(e)];case 3:n=a.sent();a.label=4;case 4:return[2,n];case 5:o=a.sent();return[2,h(o,iF)?o:new iF(i$,o)];case 6:return[2]}})})()}},{key:"exec",value:function e(e,r){var t=r||e,n=r?e:void 0;if(typeof t!="function")throw new Error("Task must be a function!");var o=this.createContext(n!==null&&n!==void 0?n:{});return this.run(o,t)}},{key:"runHook",value:function e(e,r,t){for(var n=arguments.length,o=new Array(n>3?n-3:0),a=3;a<n;a++){o[a-3]=arguments[a]}return rA.apply(void 0,[e,r,t].concat(R(o)))}},{key:"runHooks",value:function e(e,r,t){for(var n=arguments.length,o=new Array(n>3?n-3:0),a=3;a<n;a++){o[a-3]=arguments[a]}return rR.apply(void 0,[e,r,t].concat(R(o)))}},{key:"runExec",value:function e(e,r){var t=this;return a(function(){var n,o,a,u;return I(this,function(i){switch(i.label){case 0:n=t.getExecHook();return[4,t.runHook(t.plugins,n,e,r)];case 1:i.sent();if(!!e.hooksRuntimes.times)return[3,3];return[4,r(e)];case 2:o=i.sent();return[3,7];case 3:a=e.hooksRuntimes.returnValue;if(!(typeof a=="function"))return[3,5];return[4,a(e)];case 4:u=o=i.sent();return[3,6];case 5:u=o=a;i.label=6;case 6:u;i.label=7;case 7:return[2,(e.setReturnValue(o),o)]}})})()}},{key:"run",value:function e(e,r){var t=this;return a(function(){var n;return I(this,function(o){switch(o.label){case 0:o.trys.push([0,2,4,6]);return[4,t.handler(e,r)];case 1:return[2,(o.sent(),e.returnValue)];case 2:n=o.sent();return[4,t.handlerCatch(e,n)];case 3:throw o.sent();case 4:return[4,t.handlerFinally(e)];case 5:o.sent();return[7];case 6:return[2]}})})()}},{key:"handler",value:function e(e,r){var t=this;return a(function(){var n;return I(this,function(o){switch(o.label){case 0:return[4,t.runHooks(t.plugins,t.getBeforeHooks(),e)];case 1:n=o.sent();n!==void 0&&e.setParameters(n);return[4,t.runExec(e,r)];case 2:o.sent();return[4,t.runHooks(t.plugins,t.getAfterHooks(),e)];case 3:return[2,(o.sent(),e.returnValue)]}})})()}},{key:"handlerCatch",value:function e(e,r){var t=this;return a(function(){var n;return I(this,function(o){switch(o.label){case 0:e.setError(r);return[4,t.runHook(t.plugins,t.getErrorHook(),e)];case 1:if(o.sent(),e.hooksRuntimes.returnValue&&e.setError(e.hooksRuntimes.returnValue),h(e.error,iF))return[2,e.error];n=new iF(i$,e.error);return[2,(e.setError(n),n)]}})})()}},{key:"handlerFinally",value:function e(e){var r=this;return a(function(){return I(this,function(t){switch(t.label){case 0:e.runtimes({continueOnError:!0});return[4,r.runHooks(r.plugins,r.getFinallyHook(),e)];case 1:t.sent(),e.reset();return[2]}})})()}}]);return t}(iQ);var i2=function(e){v(t,e);var r=T(t);function t(){u(this,t);return r.apply(this,arguments)}c(t,[{key:"runHook",value:function e(e,r,t){for(var n=arguments.length,o=new Array(n>3?n-3:0),a=3;a<n;a++){o[a-3]=arguments[a]}return rS.apply(void 0,[e,r,t].concat(R(o)))}},{key:"runHooks",value:function e(e,r,t){for(var n=arguments.length,o=new Array(n>3?n-3:0),a=3;a<n;a++){o[a-3]=arguments[a]}return rx.apply(void 0,[e,r,t].concat(R(o)))}},{key:"runExec",value:function e(e,r){var t=this.getExecHook();this.runHook(this.plugins,t,e,r);var n;if(!e.hooksRuntimes.times)n=r(e);else{var o=e.hooksRuntimes.returnValue;o===void 0?n=r(e):typeof o=="function"?n=o(e):n=o}return e.setReturnValue(n),n}},{key:"run",value:function e(e,r){try{return this.handler(e,r),e.returnValue}catch(r){throw this.handlerCatch(e,r)}finally{this.handlerFinally(e)}}},{key:"handler",value:function e(e,r){var t=this.runHooks(this.plugins,this.getBeforeHooks(),e);return t!==void 0&&e.setParameters(t),this.runExec(e,r),this.runHooks(this.plugins,this.getAfterHooks(),e),e.returnValue}},{key:"handlerCatch",value:function e(e,r){var t=h(r,Error)?r:new Error(String(r));if(e.setError(h(t,iF)?t:new iF(iW,t)),this.runHook(this.plugins,this.getErrorHook(),e),e.hooksRuntimes.returnValue){var n=e.hooksRuntimes.returnValue;e.setError(h(n,iF)?n:new iF(iW,n))}return h(e.error,iF)?e.error:new iF(iW,e.error)}},{key:"handlerFinally",value:function e(e){e.runtimes({continueOnError:!0}),this.runHooks(this.plugins,this.getFinallyHook(),e),e.reset()}},{key:"execNoError",value:function e(e,r){try{var t=r||e,n=r?e:void 0;if(typeof t!="function")throw new Error("Task must be a function!");var o=this.createContext(n!==null&&n!==void 0?n:{});return this.run(o,t)}catch(e){if(h(e,iF))return e;var a=h(e,Error)?e:new Error(String(e));return new iF(iW,a)}}},{key:"exec",value:function e(e,r){var t=r||e,n=r?e:void 0;if(typeof t!="function")throw new Error("Task must be a function!");var o=this.createContext(n!==null&&n!==void 0?n:{});return this.run(o,t)}}]);return t}(iQ);var i4="RETRY_ERROR",i6=function(){function e(r,t){u(this,e);this.onlyOne=!0;this.retryer=r,this.pluginName=t!==null&&t!==void 0?t:"RetryPlugin"}c(e,[{key:"onExec",value:function e(e,r){var t=function(){var e=a(function(e){var t;return I(this,function(n){t=r(e);return[2,h(t,Promise)?t:Promise.resolve(t)]})});return function r(r){return e.apply(this,arguments)}}(),n=function(){var e=a(function(e){return I(this,function(r){return[2,t(e)]})});return function r(r){return e.apply(this,arguments)}}(),o=this.retryer.makeRetriable(n);return function(){var e=a(function(e){return I(this,function(r){return[2,o(e)]})});return function(r){return e.apply(this,arguments)}}()}}]);return e}();var i5="Authorization",i8="Content-Type",i7="application/json",i9="json";var se="ENV_FETCH_NOT_SUPPORT",sr="FETCHER_NONE",st="RESPONSE_NOT_OK";var sn=["cache","credentials","headers","integrity","keepalive","mode","priority","redirect","referrer","referrerPolicy","signal"],so=function(){function e(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};u(this,e);if(!r.fetcher){if(typeof fetch!="function")throw new iF(se);r.fetcher=fetch}this.config=r}c(e,[{key:"getConfig",value:function e(){return this.config}},{key:"setConfig",value:function e(e){Object.assign(this.config,e)}},{key:"request",value:function e(e){var r=this;return a(function(){var t,n,o,a,u,i;return I(this,function(s){switch(s.label){case 0:t=r.getConfig(),n=iT({},t,e),o=n.fetcher,a=j(n,["fetcher"]);if(typeof o!="function")throw new iF(sr);u=r.parametersToRequest(a);return[4,o(u)];case 1:i=s.sent();return[2,r.toAdapterResponse(i,i,a)]}})})()}},{key:"buildRequestUrl",value:function e(e,r){return rP(e)||!r?e:r.endsWith("/")&&e.startsWith("/")?r.slice(0,-1)+e:r+e}},{key:"parametersToRequest",value:function e(e){var r=e.url,t=r===void 0?"/":r,n=e.baseURL,o=e.method,a=o===void 0?"GET":o,u=e.data,i=iz(e,sn);return new Request(this.buildRequestUrl(t,n),Object.assign(i,{body:u,method:a.toUpperCase()}))}},{key:"toAdapterResponse",value:function e(e,r,t){return{data:e,status:r.status,statusText:r.statusText,headers:this.getResponseHeaders(r),config:t,response:r}}},{key:"getResponseHeaders",value:function e(e){var r={};return e.headers.forEach(function(e,t){r[t]=e}),r}}]);return e}();var sa=function(){function e(r){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};u(this,e);this.config=t;this.axiosInstance=r.create(t)}c(e,[{key:"getConfig",value:function e(){return this.config}},{key:"setConfig",value:function e(e){Object.assign(this.config,e)}},{key:"request",value:function e(e){var r=this;return a(function(){return I(this,function(t){return[2,r.axiosInstance.request(e)]})})()}}]);return e}();var su={GET:"GET",POST:"POST",PUT:"PUT",DELETE:"DELETE",PATCH:"PATCH",HEAD:"HEAD",OPTIONS:"OPTIONS",TRACE:"TRACE",CONNECT:"CONNECT"};var si=function(){function e(r,t){u(this,e);this.adapter=r;this.executor=t}c(e,[{key:"use",value:function e(e){if(!this.executor)throw new Error("RequestExecutor: Executor is not set");return this.executor.use(e),this}},{key:"request",value:function e(e){var r=this;var t=Object.assign(id(this.adapter.getConfig()),e);return this.executor?this.executor.exec(t,function(e){return r.adapter.request(e.parameters)}):this.adapter.request(t)}},{key:"get",value:function e(e,r){return this.request(w(m({},r),{url:e,method:su.GET}))}},{key:"delete",value:function e(e,r){return this.request(w(m({},r),{url:e,method:su.DELETE}))}},{key:"head",value:function e(e,r){return this.request(w(m({},r),{url:e,method:su.HEAD}))}},{key:"options",value:function e(e,r){return this.request(w(m({},r),{url:e,method:su.OPTIONS}))}},{key:"post",value:function e(e,r,t){return this.request(w(m({},t),{url:e,data:r,method:su.POST}))}},{key:"put",value:function e(e,r,t){return this.request(w(m({},t),{url:e,data:r,method:su.PUT}))}},{key:"patch",value:function e(e,r,t){return this.request(w(m({},t),{url:e,data:r,method:su.PATCH}))}}]);return e}();var ss=function(){function e(r){u(this,e);this.config=r}c(e,[{key:"inject",value:function e(e){var r,t;var n=m({},this.config,e),o=(r=this.config.headers)!==null&&r!==void 0?r:{},a=(t=e.headers)!==null&&t!==void 0?t:{},u=m({},o,a);!rN(u,i8)&&rC(n.responseType,i9,!0)&&(u=rH(u,i8,i7));var i=this.getAuthKey(n);if(i!==!1&&!rN(u,i)){var s=this.getAuthToken(n);rC(s)&&s.length>0&&(u=rH(u,i,s))}return this.normalizeHeaders(u)}},{key:"normalizeHeaders",value:function e(e){var r={};var t=true,n=false,o=undefined;try{for(var a=Object.entries(e)[Symbol.iterator](),u;!(t=(u=a.next()).done);t=true){var i=A(u.value,2),s=i[0],c=i[1];c!=null&&(r[s]=String(c))}}catch(e){n=true;o=e}finally{try{if(!t&&a.return!=null){a.return()}}finally{if(n){throw o}}}return r}},{key:"getAuthToken",value:function e(e){var r=e.token,t="";if(typeof r=="function"){var n=r.call(e);t=rC(n)?n:""}else rC(r)&&(t=r);if(!t)return"";var o=e.tokenPrefix;return rC(o)&&o.length>0?"".concat(o," ").concat(t):t}},{key:"getAuthKey",value:function e(e){var r;return e.authKey===!1?!1:(r=e.authKey)!==null&&r!==void 0?r:i5}}]);return e}();var sc=function(){function e(r){u(this,e);this.config=r}c(e,[{key:"isFullURL",value:function e(e){return rP(e)}},{key:"createUrlObject",value:function e(e,r){var t;var n,o=!1;if(this.isFullURL(e))n=new URL(e);else if((t=this.config)===null||t===void 0?void 0:t.strict)r?n=new URL(e,r):(n=new URL(e,"http://temp"),o=!0);else{var a=typeof r=="string"&&r?r:"";a&&this.isFullURL(a)?n=new URL(e,a):(n=new URL(e,"http://temp"+a),o=!0)}return{urlObject:n,shouldReturnPathOnly:o}}},{key:"buildUrl",value:function e(e){var r=e.url,t=r===void 0?"":r,n=e.baseURL,o=n===void 0?"":n,a=e.params;if(!t)return"";var u=this.createUrlObject(t,o),i=u.urlObject,s=u.shouldReturnPathOnly;return a&&Object.keys(a).length>0&&Object.entries(a).forEach(function(e){var r=A(e,2),t=r[0],n=r[1];n!=null&&i.searchParams.set(t,String(n))}),s?i.pathname+i.search+i.hash:i.toString()}}]);return e}();var sl=function(){function e(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};u(this,e);this.pluginName="RequestPlugin";var t=r.urlBuilder,n=r.headerInjector,o=j(r,["urlBuilder","headerInjector"]);this.config=o,this.urlBuilder=t!==null&&t!==void 0?t:new sc,this.headerInjector=n!==null&&n!==void 0?n:new ss(o)}c(e,[{key:"onBefore",value:function e(e){var r=this.mergeConfig(e.parameters),t=this.processRequestData(r),n=this.buildUrl(r),o=this.injectHeaders(r);e.setParameters(w(m({},e.parameters,r),{data:t,url:n,headers:o}))}},{key:"mergeConfig",value:function e(e){var r=m({},this.config,e);return!("data"in e)&&"data"in this.config&&(r.data=this.config.data),r}},{key:"buildUrl",value:function e(e){var r=this.urlBuilder.buildUrl(e);var t,n;if(!r||r.trim()==="")throw new Error("RequestPlugin: Invalid URL. URL cannot be empty. baseURL: ".concat((t=e.baseURL)!==null&&t!==void 0?t:"undefined",", url: ").concat((n=e.url)!==null&&n!==void 0?n:"undefined"));return r}},{key:"injectHeaders",value:function e(e){return this.headerInjector.inject(e)}},{key:"processRequestData",value:function e(e){var r;var t=e.requestDataSerializer,n=e.data,o=e.headers,a=e.responseType,u=e.method,i=u===null||u===void 0?void 0:(r=u.toUpperCase())===null||r===void 0?void 0:r.trim();return i==="GET"||i==="HEAD"||i==="OPTIONS"?null:n==null?n:typeof t=="function"?t(n,w(m({},e),{requestDataSerializer:void 0})):a===i9||rN(o,i8,i7,{keyCaseSensitive:!1,valueCaseSensitive:!1})?JSON.stringify(n):n}}]);return e}();var sf=function(){function e(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};u(this,e);this.pluginName="ResponsePlugin";this.defaultParsers={json:function(e){return e.json()},text:function(e){return e.text()},blob:function(e){return e.blob()},arraybuffer:function(e){return e.arrayBuffer()},formdata:function(e){return e.formData()},stream:function(e){var r;return(r=e.body)!==null&&r!==void 0?r:null},document:function(e){return e.text()}};this.config=r,r.responseParsers===!1?this.parsers={}:this.parsers=m({},this.defaultParsers,r.responseParsers)}c(e,[{key:"enabled",value:function e(e,r){return this.config.responseParsers!==!1}},{key:"onSuccess",value:function e(e){var r=this;return a(function(){var t,n,o,a;return I(this,function(u){switch(u.label){case 0:t=e.returnValue,n=e.parameters;if(!h(t,Response))return[3,2];return[4,r.processResponse(t,n)];case 1:o=u.sent();e.setReturnValue(o);return[2];case 2:if(!rU(t))return[3,4];return[4,r.processAdapterResponse(t,n)];case 3:a=u.sent();e.setReturnValue(a);return[2];case 4:return[2]}})})()}},{key:"validateResponseStatus",value:function e(e){if(!e.ok)throw new iF(st,e)}},{key:"processResponse",value:function e(e,r){var t=this;return a(function(){var n;return I(this,function(o){switch(o.label){case 0:t.validateResponseStatus(e);return[4,t.parseResponseData(e,r.responseType)];case 1:n=o.sent();return[2,t.buildAdapterResponse(n,e,r)]}})})()}},{key:"processAdapterResponse",value:function e(e,r){var t=this;return a(function(){var n;return I(this,function(o){switch(o.label){case 0:if(!h(e.data,Response))return[2,e];return[4,t.parseResponseData(e.data,r.responseType)];case 1:n=o.sent();return[2,w(m({},e),{data:n})]}})})()}},{key:"parseResponseData",value:function e(e,r){var t=this;return a(function(){var n;return I(this,function(o){switch(o.label){case 0:if(!tg(t.config.responseDataParser))return[3,2];return[4,t.config.responseDataParser(e,r)];case 1:n=o.sent();return[3,4];case 2:return[4,t.defaultParseResponseData(e,r)];case 3:n=o.sent();o.label=4;case 4:return[2,n]}})})()}},{key:"defaultParseResponseData",value:function e(e,r){var t=this;return a(function(){var n,o,a,u,i,s;return I(this,function(c){switch(c.label){case 0:a=(o=r===null||r===void 0?void 0:(n=r.toLowerCase())===null||n===void 0?void 0:n.trim())!==null&&o!==void 0?o:i9,u=t.parsers[a];if(!(u===!1))return[3,1];i=e;return[3,6];case 1:if(!tg(u))return[3,3];return[4,u(e)];case 2:s=c.sent();return[3,5];case 3:return[4,t.fallbackParseByContentType(e,a)];case 4:s=c.sent();c.label=5;case 5:i=s;c.label=6;case 6:return[2,i]}})})()}},{key:"inferParserFromContentType",value:function e(e){var r=e.toLowerCase();if(r.includes("application/json")){var t=this.parsers.json;if(tg(t))return t}if(r.includes("text/")||r.includes("application/xml")||r.includes("application/xhtml")){var n=this.parsers.text;if(tg(n))return n}}},{key:"getFallbackParsers",value:function e(){var e=[],r=this.parsers.json;tg(r)&&e.push(r);var t=this.parsers.text;return tg(t)&&e.push(t),e}},{key:"fallbackParseByContentType",value:function e(e,r){var t=this;return a(function(){var r,n,o,a,u,i,s,c,l,f,v,h;return I(this,function(p){switch(p.label){case 0:r=e.headers.get("content-type");if(!r)return[3,4];n=t.inferParserFromContentType(r);if(!n)return[3,4];p.label=1;case 1:p.trys.push([1,3,,4]);return[4,n(e)];case 2:return[2,p.sent()];case 3:o=p.sent();return[3,4];case 4:a=t.getFallbackParsers();u=true,i=false,s=undefined;p.label=5;case 5:p.trys.push([5,12,13,14]);c=a[Symbol.iterator]();p.label=6;case 6:if(!!(u=(l=c.next()).done))return[3,11];f=l.value;p.label=7;case 7:p.trys.push([7,9,,10]);return[4,f(e)];case 8:return[2,p.sent()];case 9:v=p.sent();return[3,10];case 10:u=true;return[3,6];case 11:return[3,14];case 12:h=p.sent();i=true;s=h;return[3,14];case 13:try{if(!u&&c.return!=null){c.return()}}finally{if(i){throw s}}return[7];case 14:return[2,e]}})})()}},{key:"extractHeaders",value:function e(e){var r={};return e.headers.forEach(function(e,t){r[t]=e}),r}},{key:"buildAdapterResponse",value:function e(e,r,t){return{data:e,status:r.status,statusText:r.statusText,headers:this.extractHeaders(r),config:t,response:r}}}]);return e}();var sv;sv=Symbol.toStringTag;var sh=function(){function e(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};u(this,e);this.options=r;this[sv]="JSONSerializer"}c(e,[{key:"createReplacer",value:function e(e){return Array.isArray(e)?e:e===null?function(e,r){return typeof r=="string"?r.replace(/\r\n/g,"\n"):r}:typeof e=="function"?function(r,t){var n=typeof t=="string"?t.replace(/\r\n/g,"\n"):t;return e.call(this,r,n)}:function(e,r){return typeof r=="string"?r.replace(/\r\n/g,"\n"):r}}},{key:"stringify",value:function e(e,r,t){try{var n=this.createReplacer(r);return Array.isArray(n)?JSON.stringify(e,n,t):JSON.stringify(e,n,t!==null&&t!==void 0?t:this.options.pretty?this.options.indent||2:void 0)}catch(e){throw h(e,TypeError)&&e.message.includes("circular")?new TypeError("Cannot stringify data with circular references"):e}}},{key:"parse",value:function e(e,r){return JSON.parse(e,r)}},{key:"serialize",value:function e(e){return this.stringify(e,this.options.replacer||null,this.options.pretty?this.options.indent||2:void 0)}},{key:"deserialize",value:function e(e,r){try{return this.parse(e)}catch(e){return r}}},{key:"serializeArray",value:function e(e){return"["+e.map(function(e){return JSON.stringify(e)}).join(",")+"]"}}]);return e}();var sp=function(){function e(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};u(this,e);this.options=r}c(e,[{key:"isNodeEnvironment",value:function e(){return(typeof process==="undefined"?"undefined":S(process))<"u"&&process.versions&&!!process.versions.node}},{key:"isValidBase64",value:function e(e){try{if(!/^[A-Za-z0-9+/\-_]*={0,2}$/.test(e))return!1;var r=this.options.urlSafe?this.makeUrlUnsafe(e):e;return r.length%4!==0?!1:(this.isNodeEnvironment()?Buffer.from(r,"base64").toString("utf8"):atob(r),!0)}catch(e){return!1}}},{key:"serialize",value:function e(e){try{var r;if(this.isNodeEnvironment())r=Buffer.from(e,"utf8").toString("base64");else{var t=new TextEncoder().encode(e),n=Array.from(t,function(e){return String.fromCharCode(e)}).join("");r=btoa(n)}return this.options.urlSafe?this.makeUrlSafe(r):r}catch(e){return""}}},{key:"deserialize",value:function e(e,r){try{if(typeof e!="string")return r!==null&&r!==void 0?r:"";if(e.length===0)return"";if(!this.isValidBase64(e))return r!==null&&r!==void 0?r:"";var t=e;if(this.options.urlSafe&&(t=this.makeUrlUnsafe(e)),this.isNodeEnvironment())return Buffer.from(t,"base64").toString("utf8");{var n=atob(t),o=new Uint8Array(n.length);for(var a=0;a<n.length;a++)o[a]=n.charCodeAt(a);return new TextDecoder().decode(o)}}catch(e){return r!==null&&r!==void 0?r:""}}},{key:"makeUrlSafe",value:function e(e){return e.replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}},{key:"makeUrlUnsafe",value:function e(e){for(e=e.replace(/-/g,"+").replace(/_/g,"/");e.length%4;)e+="=";return e}}]);return e}();var sd=function(){function e(r){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};u(this,e);this.key=r;this.options=t;try{var n;var o=(n=t.storage)===null||n===void 0?void 0:n.getItem(r);this.value=o!==null&&o!==void 0?o:null}catch(e){this.value=null}}c(e,[{key:"mergeOptions",value:function e(e){return m({},this.options,e)}},{key:"getKey",value:function e(){return this.key}},{key:"getValue",value:function e(){return this.value}},{key:"get",value:function e(e){var r=this.mergeOptions(e),t=r.storage,n=j(r,["storage"]);if(this.value!=null)return this.value;if(t){var o=t.getItem(this.key,void 0,n);return o==null?(this.remove(),null):(this.value=o,o)}return this.value}},{key:"set",value:function e(e,r){var t=this.mergeOptions(r),n=t.storage,o=j(t,["storage"]);this.value=e,n&&n.setItem(this.key,e,o)}},{key:"remove",value:function e(e){var r=this.mergeOptions(e),t=r.storage,n=j(r,["storage"]);this.value=null,t===null||t===void 0?void 0:t.removeItem(this.key,n)}}]);return e}();var sy=function(){function e(r){u(this,e);this.serializer=r;this.store=new Map}c(e,[{key:"length",get:function e(){return this.store.size}},{key:"setItem",value:function e(e,r,t){var n={key:e,value:r!==null&&r!==void 0?r:null};typeof(t===null||t===void 0?void 0:t.expires)=="number"&&t.expires>0&&(n.expires=t.expires);var o=this.serializer?this.serializer.serialize(n):n;return this.store.set(e,o),o}},{key:"getItem",value:function e(e,r){var t=this.store.get(e),n=r!==null&&r!==void 0?r:null;if(!t)return n;var o=this.serializer?this.serializer.deserialize(t,n):t;return this.getRawValue(o,n)}},{key:"getRawValue",value:function e(e,r){var t,n;return this.isStorageValue(e)?this.isExpired(e)?(this.removeItem(e.key),r!==null&&r!==void 0?r:null):(t=e===null||e===void 0?void 0:e.value)!==null&&t!==void 0?t:r:(n=e!==null&&e!==void 0?e:r)!==null&&n!==void 0?n:null}},{key:"removeItem",value:function e(e){this.store.delete(e)}},{key:"clear",value:function e(){this.store.clear()}},{key:"isExpired",value:function e(e){return typeof e.expires=="number"&&e.expires<Date.now()&&e.expires>0}},{key:"isStorageValue",value:function e(e){return(typeof e==="undefined"?"undefined":S(e))=="object"&&e!==null&&"key"in e&&"value"in e}},{key:"getSerializer",value:function e(){return this.serializer}}]);return e}();var sb={setItem:{serialize:function(r,t){return(e=r).serialize.apply(e,R(t))},encrypt:function(e,t){return(r=e).encrypt.apply(r,R(t))},storage:function(e,r){return(t=e).setItem.apply(t,R(r))}},getItem:{serialize:function(e,r){return(n=e).deserialize.apply(n,R(r))},encrypt:function(e,r){return(o=e).decrypt.apply(o,R(r))},storage:function(e,r){return(i=e).getItem.apply(i,R(r))}}},sg=function(){function e(r){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];u(this,e);this.storage=r;this.pipes=(Array.isArray(t)?t:[t]).map(function(e){return rz(e)}).filter(function(e){return e!=null})}c(e,[{key:"length",get:function e(){return this.storage.length}},{key:"setItem",value:function e(e,r,t){var n=r;var o=true,a=false,u=undefined;try{for(var i=this.pipes[Symbol.iterator](),s;!(o=(s=i.next()).done);o=true){var c=s.value;var l=c.type,f=c.pipe;if(l==="storage")f.setItem(e,n,t);else{var v=sb.setItem[l](f,[n]);v!=null&&(n=v)}}}catch(e){a=true;u=e}finally{try{if(!o&&i.return!=null){i.return()}}finally{if(a){throw u}}}this.storage.setItem(e,n,t)}},{key:"getItem",value:function e(e,r,t){var n=this.storage.getItem(e,r,t);if(n==null){var o=R(this.pipes).reverse();var a=true,u=false,i=undefined;try{for(var s=o[Symbol.iterator](),c;!(a=(c=s.next()).done);a=true){var l=c.value;var f=l.type,v=l.pipe;if(f!=="storage")continue;var h=sb.getItem[f](v,[e,n,t]);if(h!=null){n=h;break}}}catch(e){u=true;i=e}finally{try{if(!a&&s.return!=null){s.return()}}finally{if(u){throw i}}}}if(n==null)return r!==null&&r!==void 0?r:null;var p=R(this.pipes).reverse();var d=true,y=false,b=undefined;try{for(var g=p[Symbol.iterator](),m;!(d=(m=g.next()).done);d=true){var k=m.value;var w=k.type,j=k.pipe;w!=="storage"&&(n=sb.getItem[w](j,[n]))}}catch(e){y=true;b=e}finally{try{if(!d&&g.return!=null){g.return()}}finally{if(y){throw b}}}return n!==null&&this.storage.getRawValue&&(n=this.storage.getRawValue(n,t)),n!==null&&n!==void 0?n:null}},{key:"removeItem",value:function e(e,r){this.storage.removeItem(e,r),this.pipes.filter(function(e){return e.type==="storage"}).forEach(function(t){t.pipe.removeItem(e,r)})}},{key:"clear",value:function e(){this.storage.clear(),this.pipes.filter(function(e){return e.type==="storage"}).forEach(function(e){e.pipe.clear()})}}]);return e}();return rM(rK)}();/*! Bundled license information:
|
|
1
|
+
"use strict";function e(e,r){if(r==null||r>e.length)r=e.length;for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function r(e){if(Array.isArray(e))return e}function t(r){if(Array.isArray(r))return e(r)}function n(e){if(e===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function o(e,r,t,n,o,a,i){try{var u=e[a](i);var s=u.value}catch(e){t(e);return}if(u.done){r(s)}else{Promise.resolve(s).then(n,o)}}function a(e){return function(){var r=this,t=arguments;return new Promise(function(n,a){var i=e.apply(r,t);function u(e){o(i,n,a,u,s,"next",e)}function s(e){o(i,n,a,u,s,"throw",e)}u(undefined)})}}function i(e,r){if(!(e instanceof r)){throw new TypeError("Cannot call a class as a function")}}function u(e,r,t){if(T()){u=Reflect.construct}else{u=function e(e,r,t){var n=[null];n.push.apply(n,r);var o=Function.bind.apply(e,n);var a=new o;if(t)_(a,t.prototype);return a}}return u.apply(null,arguments)}function s(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}function c(e,r,t){if(r)s(e.prototype,r);if(t)s(e,t);return e}function l(e,r,t){if(r in e){Object.defineProperty(e,r,{value:t,enumerable:true,configurable:true,writable:true})}else{e[r]=t}return e}function f(e){f=Object.setPrototypeOf?Object.getPrototypeOf:function e(e){return e.__proto__||Object.getPrototypeOf(e)};return f(e)}function v(e,r){if(typeof r!=="function"&&r!==null){throw new TypeError("Super expression must either be null or a function")}e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:true,configurable:true}});if(r)_(e,r)}function h(e,r){if(r!=null&&typeof Symbol!=="undefined"&&r[Symbol.hasInstance]){return!!r[Symbol.hasInstance](e)}else{return e instanceof r}}function p(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function d(e){if(typeof Symbol!=="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function y(e,r){var t=e==null?null:typeof Symbol!=="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(t==null)return;var n=[];var o=true;var a=false;var i,u;try{for(t=t.call(e);!(o=(i=t.next()).done);o=true){n.push(i.value);if(r&&n.length===r)break}}catch(e){a=true;u=e}finally{try{if(!o&&t["return"]!=null)t["return"]()}finally{if(a)throw u}}return n}function b(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function g(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function m(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};var n=Object.keys(t);if(typeof Object.getOwnPropertySymbols==="function"){n=n.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))}n.forEach(function(r){l(e,r,t[r])})}return e}function k(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);if(r){n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})}t.push.apply(t,n)}return t}function w(e,r){r=r!=null?r:{};if(Object.getOwnPropertyDescriptors){Object.defineProperties(e,Object.getOwnPropertyDescriptors(r))}else{k(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function j(e,r){if(e==null)return{};var t=O(e,r);var n,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++){n=a[o];if(r.indexOf(n)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(e,n))continue;t[n]=e[n]}}return t}function O(e,r){if(e==null)return{};var t={};var n=Object.keys(e);var o,a;for(a=0;a<n.length;a++){o=n[a];if(r.indexOf(o)>=0)continue;t[o]=e[o]}return t}function E(e,r){if(r&&(S(r)==="object"||typeof r==="function")){return r}return n(e)}function _(e,r){_=Object.setPrototypeOf||function e(e,r){e.__proto__=r;return e};return _(e,r)}function A(e,t){return r(e)||y(e,t)||x(e,t)||b()}function R(e){return t(e)||d(e)||x(e)||g()}function S(e){"@swc/helpers - typeof";return e&&typeof Symbol!=="undefined"&&e.constructor===Symbol?"symbol":typeof e}function x(r,t){if(!r)return;if(typeof r==="string")return e(r,t);var n=Object.prototype.toString.call(r).slice(8,-1);if(n==="Object"&&r.constructor)n=r.constructor.name;if(n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return e(r,t)}function P(e){var r=typeof Map==="function"?new Map:undefined;P=function e(e){if(e===null||!p(e))return e;if(typeof e!=="function"){throw new TypeError("Super expression must either be null or a function")}if(typeof r!=="undefined"){if(r.has(e))return r.get(e);r.set(e,t)}function t(){return u(e,arguments,f(this).constructor)}t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:false,writable:true,configurable:true}});return _(t,e)};return P(e)}function T(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true}catch(e){return false}}function C(e){var r=T();return function t(){var t=f(e),n;if(r){var o=f(this).constructor;n=Reflect.construct(t,arguments,o)}else{n=t.apply(this,arguments)}return E(this,n)}}function I(e,r){var t,n,o,a,i={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]};return a={next:u(0),"throw":u(1),"return":u(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function u(e){return function(r){return s([e,r])}}function s(a){if(t)throw new TypeError("Generator is already executing.");while(i)try{if(t=1,n&&(o=a[0]&2?n["return"]:a[0]?n["throw"]||((o=n["return"])&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;if(n=0,o)a=[a[0]&2,o.value];switch(a[0]){case 0:case 1:o=a;break;case 4:i.label++;return{value:a[1],done:false};case 5:i.label++;n=a[1];a=[0];continue;case 7:a=i.ops.pop();i.trys.pop();continue;default:if(!(o=i.trys,o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){i=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(a[0]===6&&i.label<o[1]){i.label=o[1];o=a;break}if(o&&i.label<o[2]){i.label=o[2];i.ops.push(a);break}if(o[2])i.ops.pop();i.trys.pop();continue}a=r.call(e,i)}catch(e){a=[6,e];n=0}finally{t=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}}var qloverFeCorekit=function(){var e,r,t,n,o,u;var s=function e(e){var r=r0.call(e,r3),t=e[r3];try{e[r3]=void 0;var n=!0}catch(e){}var o=r1.call(e);return n&&(r?e[r3]=t:delete e[r3]),o};var f=function e(e){return r6.call(e)};var p=function e(e){return e==null?e===void 0?r7:r8:r9&&r9 in Object(e)?r2(e):r5(e)};var d=function e(e){return e!=null&&(typeof e==="undefined"?"undefined":S(e))=="object"};var y=function e(e){return(typeof e==="undefined"?"undefined":S(e))=="symbol"||tr(e)&&te(e)==tt};var b=function e(e,r){for(var t=-1,n=e==null?0:e.length,o=Array(n);++t<n;)o[t]=r(e[t],t,e);return o};var g=function e(e){var r=typeof e==="undefined"?"undefined":S(e);return e!=null&&(r=="object"||r=="function")};var k=function e(e){return e};var O=function e(e){if(!tv(e))return!1;var r=te(e);return r==td||r==ty||r==tp||r==tb};var E=function e(e){return!!tw&&tw in e};var _=function e(e){if(e!=null){try{return tE.call(e)}catch(e){}try{return e+""}catch(e){}}return""};var x=function e(e){if(!tv(e)||tj(e))return!1;var r=tg(e)?tC:tR;return r.test(t_(e))};var T=function e(e,r){return e===null||e===void 0?void 0:e[r]};var N=function e(e,r){var t=tN(e,r);return tI(t)?t:void 0};var U=function e(e,r,t){switch(t.length){case 0:return e.call(r);case 1:return e.call(r,t[0]);case 2:return e.call(r,t[0],t[1]);case 3:return e.call(r,t[0],t[1],t[2])}return e.apply(r,t)};var H=function e(e,r){var t=-1,n=e.length;for(r||(r=Array(n));++t<n;)r[t]=e[t];return r};var z=function e(e){var r=0,t=0;return function(){var n=tW(),o=tM-(n-t);if(t=n,o>0){if(++r>=tq)return arguments[0]}else r=0;return e.apply(void 0,arguments)}};var L=function e(e){return function(){return e}};var B=function e(e,r){for(var t=-1,n=e==null?0:e.length;++t<n&&r(e[t],t,e)!==!1;);return e};var D=function e(e,r){var t=typeof e==="undefined"?"undefined":S(e);return r=r!==null&&r!==void 0?r:t1,!!r&&(t=="number"||t!="symbol"&&t3.test(e))&&e>-1&&e%1==0&&e<r};var F=function e(e,r,t){r=="__proto__"&&tJ?tJ(e,r,{configurable:!0,enumerable:!0,value:t,writable:!0}):e[r]=t};var V=function e(e,r){return e===r||e!==e&&r!==r};var q=function e(e,r,t){var n=e[r];(!(t8.call(e,r)&&t6(n,t))||t===void 0&&!(r in e))&&t4(e,r,t)};var M=function e(e,r,t,n){var o=!t;t||(t={});for(var a=-1,i=r.length;++a<i;){var u=r[a],s=n?n(t[u],e[u],u,t,e):void 0;s===void 0&&(s=e[u]),o?t4(t,u,s):t7(t,u,s)}return t};var W=function e(e,r,t){return r=ne(r===void 0?e.length-1:r,0),function(){for(var n=arguments,o=-1,a=ne(n.length-r,0),i=Array(a);++o<a;)i[o]=n[r+o];o=-1;for(var u=Array(r+1);++o<r;)u[o]=n[o];return u[r]=t(i),tF(e,this,u)}};var K=function e(e,r){return tQ(nr(e,r,th),e+"")};var $=function e(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=nn};var G=function e(e){return e!=null&&no(e.length)&&!tg(e)};var J=function e(e,r,t){if(!tv(t))return!1;var n=typeof r==="undefined"?"undefined":S(r);return(n=="number"?na(t)&&t2(r,t.length):n=="string"&&r in t)?t6(t[r],e):!1};var Y=function e(e){return nt(function(r,t){var n=-1,o=t.length,a=o>1?t[o-1]:void 0,i=o>2?t[2]:void 0;for(a=e.length>3&&typeof a=="function"?(o--,a):void 0,i&&ni(t[0],t[1],i)&&(a=o<3?void 0:a,o=1),r=Object(r);++n<o;){var u=t[n];u&&e(r,u,n,a)}return r})};var X=function e(e){var r=e&&e.constructor,t=typeof r=="function"&&r.prototype||ns;return e===t};var Z=function e(e,r){for(var t=-1,n=Array(e);++t<e;)n[t]=r(t);return n};var Q=function e(e){return tr(e)&&te(e)==nf};var ee=function e(){return!1};var er=function e(e){return tr(e)&&no(e.length)&&!!nY[te(e)]};var et=function e(e){return function(r){return e(r)}};var en=function e(e,r){var t=ti(e),n=!t&&nb(e),o=!t&&!n&&n_(e),a=!t&&!n&&!o&&n8(e),i=t||n||o||a,u=i?nl(e.length,String):[],s=u.length;for(var c in e)(r||n9.call(e,c))&&!(i&&(c=="length"||o&&(c=="offset"||c=="parent")||a&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||t2(c,s)))&&u.push(c);return u};var eo=function e(e,r){return function(t){return e(r(t))}};var ea=function e(e){if(!nc(e))return on(e);var r=[];for(var t in Object(e))oa.call(e,t)&&t!="constructor"&&r.push(t);return r};var ei=function e(e){return na(e)?oe(e):oi(e)};var eu=function e(e){var r=[];if(e!=null)for(var t in Object(e))r.push(t);return r};var es=function e(e){if(!tv(e))return os(e);var r=nc(e),t=[];for(var n in e)n=="constructor"&&(r||!ol.call(e,n))||t.push(n);return t};var ec=function e(e){return na(e)?oe(e,!0):of(e)};var el=function e(e,r){if(ti(e))return!1;var t=typeof e==="undefined"?"undefined":S(e);return t=="number"||t=="symbol"||t=="boolean"||e==null||tn(e)?!0:op.test(e)||!oh.test(e)||r!=null&&e in Object(r)};var ef=function e(){this.__data__=ob?ob(null):{},this.size=0};var ev=function e(e){var r=this.has(e)&&delete this.__data__[e];return this.size-=r?1:0,r};var eh=function e(e){var r=this.__data__;if(ob){var t=r[e];return t===ok?void 0:t}return oj.call(r,e)?r[e]:void 0};var ep=function e(e){var r=this.__data__;return ob?r[e]!==void 0:o_.call(r,e)};var ed=function e(e,r){var t=this.__data__;return this.size+=this.has(e)?0:1,t[e]=ob&&r===void 0?oR:r,this};var ey=function e(e){var r=-1,t=e==null?0:e.length;for(this.clear();++r<t;){var n=e[r];this.set(n[0],n[1])}};var eb=function e(){this.__data__=[],this.size=0};var eg=function e(e,r){for(var t=e.length;t--;)if(t6(e[t][0],r))return t;return-1};var em=function e(e){var r=this.__data__,t=oT(r,e);if(t<0)return!1;var n=r.length-1;return t==n?r.pop():oI.call(r,t,1),--this.size,!0};var ek=function e(e){var r=this.__data__,t=oT(r,e);return t<0?void 0:r[t][1]};var ew=function e(e){return oT(this.__data__,e)>-1};var ej=function e(e,r){var t=this.__data__,n=oT(t,e);return n<0?(++this.size,t.push([e,r])):t[n][1]=r,this};var eO=function e(e){var r=-1,t=e==null?0:e.length;for(this.clear();++r<t;){var n=e[r];this.set(n[0],n[1])}};var eE=function e(){this.size=0,this.__data__={hash:new ox,map:new(oD||oL),string:new ox}};var e_=function e(e){var r=typeof e==="undefined"?"undefined":S(e);return r=="string"||r=="number"||r=="symbol"||r=="boolean"?e!=="__proto__":e===null};var eA=function e(e,r){var t=e.__data__;return oV(r)?t[typeof r=="string"?"string":"hash"]:t.map};var eR=function e(e){var r=oq(this,e).delete(e);return this.size-=r?1:0,r};var eS=function e(e){return oq(this,e).get(e)};var ex=function e(e){return oq(this,e).has(e)};var eP=function e(e,r){var t=oq(this,e),n=t.size;return t.set(e,r),this.size+=t.size==n?0:1,this};var eT=function e(e){var r=-1,t=e==null?0:e.length;for(this.clear();++r<t;){var n=e[r];this.set(n[0],n[1])}};var eC=function e(e){var r=oX(e,function(e){return t.size===oZ&&t.clear(),e}),t=r.cache;return r};var eI=function e(e){return e==null?"":tf(e)};var eN=function e(e,r){return ti(e)?e:od(e,r)?[e]:o2(o4(e))};var eU=function e(e){if(typeof e=="string"||tn(e))return e;var r=e+"";return r=="0"&&1/e==-o5?"-0":r};var eH=function e(e,r){r=o6(r,e);for(var t=0,n=r.length;e!=null&&t<n;)e=e[o8(r[t++])];return t&&t==n?e:void 0};var ez=function e(e,r){for(var t=-1,n=r.length,o=e.length;++t<n;)e[o+t]=r[t];return e};var eL=function e(e){return ti(e)||nb(e)||!!(ae&&e&&e[ae])};var eB=function e(e){var r=e==null?0:e.length;return r?an(e,1):[]};var eD=function e(e){return tQ(nr(e,void 0,ao),e+"")};var eF=function e(e){if(!tr(e)||te(e)!=as)return!1;var r=au(e);if(r===null)return!0;var t=av.call(r,"constructor")&&r.constructor;return typeof t=="function"&&h(t,t)&&af.call(t)==ah};var eV=function e(){this.__data__=new oL,this.size=0};var eq=function e(e){var r=this.__data__,t=r.delete(e);return this.size=r.size,t};var eM=function e(e){return this.__data__.get(e)};var eW=function e(e){return this.__data__.has(e)};var eK=function e(e,r){var t=this.__data__;if(h(t,oL)){var n=t.__data__;if(!oD||n.length<am-1)return n.push([e,r]),this.size=++t.size,this;t=this.__data__=new oG(n)}return t.set(e,r),this.size=t.size,this};var e$=function e(e){var r=this.__data__=new oL(e);this.size=r.size};var eG=function e(e,r){return e&&t9(r,ou(r),e)};var eJ=function e(e,r){return e&&t9(r,ov(r),e)};var eY=function e(e,r){if(r)return e.slice();var t=e.length,n=aS?aS(t):new e.constructor(t);return e.copy(n),n};var eX=function e(e,r){for(var t=-1,n=e==null?0:e.length,o=0,a=[];++t<n;){var i=e[t];r(i,t,e)&&(a[o++]=i)}return a};var eZ=function e(){return[]};var eQ=function e(e,r){return t9(e,aH(e),r)};var e0=function e(e,r){return t9(e,aD(e),r)};var e1=function e(e,r,t){var n=r(e);return ti(e)?n:o9(n,t(e))};var e3=function e(e){return aV(e,ou,aH)};var e2=function e(e){return aV(e,ov,aD)};var e4=function e(e){var r=e.length,t=new e.constructor(r);return r&&typeof e[0]=="string"&&ir.call(e,"index")&&(t.index=e.index,t.input=e.input),t};var e6=function e(e){var r=new e.constructor(e.byteLength);return new ia(r).set(new ia(e)),r};var e5=function e(e,r){var t=r?ii(e.buffer):e.buffer;return new e.constructor(t,e.byteOffset,e.byteLength)};var e8=function e(e){var r=new e.constructor(e.source,is.exec(e));return r.lastIndex=e.lastIndex,r};var e7=function e(e){return iv?Object(iv.call(e)):{}};var e9=function e(e,r){var t=r?ii(e.buffer):e.buffer;return new e.constructor(t,e.byteOffset,e.length)};var re=function e(e,r,t){var n=e.constructor;switch(r){case iO:return ii(e);case id:case iy:return new n(+e);case iE:return iu(e,t);case i_:case iA:case iR:case iS:case ix:case iP:case iT:case iC:case iI:return ip(e,t);case ib:return new n;case ig:case iw:return new n(e);case im:return ic(e);case ik:return new n;case ij:return ih(e)}};var rr=function e(e){return typeof e.constructor=="function"&&!nc(e)?tD(au(e)):{}};var rt=function e(e){return tr(e)&&a9(e)==iH};var rn=function e(e){return tr(e)&&a9(e)==iF};var ro=function e(e){return uh(e,up)};var ra=function e(e,r){return e!=null&&r in Object(e)};var ri=function e(e,r,t){r=o6(r,e);for(var n=-1,o=r.length,a=!1;++n<o;){var i=o8(r[n]);if(!(a=e!=null&&t(e,i)))break;e=e[i]}return a||++n!=o?a:(o=e==null?0:e.length,!!o&&no(o)&&t2(i,o)&&(ti(e)||nb(e)))};var ru=function e(e,r){return e!=null&&ub(e,r,uy)};var rs=function e(e){return function(r,t,n){for(var o=-1,a=Object(r),i=n(r),u=i.length;u--;){var s=i[e?u:++o];if(t(a[s],s,a)===!1)break}return r}};var rc=function e(e,r,t){(t!==void 0&&!t6(e[r],t)||t===void 0&&!(r in e))&&t4(e,r,t)};var rl=function e(e){return tr(e)&&na(e)};var rf=function e(e,r){if(!(r==="constructor"&&typeof e[r]=="function")&&r!="__proto__")return e[r]};var rv=function e(e){return t9(e,ov(e))};var rh=function e(e,r,t,n,o,a,i){var u=uE(e,t),s=uE(r,t),c=i.get(s);if(c){uj(e,t,c);return}var l=a?a(u,s,t+"",e,r,i):void 0,f=l===void 0;if(f){var v=ti(s),h=!v&&n_(s),p=!v&&!h&&n8(s);l=s,v||h||p?ti(u)?l=u:uO(u)?l=tV(u):h?(f=!1,l=ax(s,!0)):p?(f=!1,l=ip(s,!0)):l=[]:ap(s)||nb(s)?(l=u,nb(u)?l=u_(u):(!tv(u)||tg(u))&&(l=iU(s))):f=!1}f&&(i.set(s,l),o(l,s,n,a,i),i.delete(s)),uj(e,t,l)};var rp=function e(e){return typeof e=="string"||!ti(e)&&tr(e)&&te(e)==ux};var rd=function e(e,r,t,n){if(!tv(e))return e;r=o6(r,e);for(var o=-1,a=r.length,i=a-1,u=e;u!=null&&++o<a;){var s=o8(r[o]),c=t;if(s==="__proto__"||s==="constructor"||s==="prototype")return e;if(o!=i){var l=u[s];c=n?n(l,s,u):void 0,c===void 0&&(c=tv(l)?l:t2(r[o+1])?[]:{})}t7(u,s,c),u=u[s]}return e};var ry=function e(e,r,t){for(var n=-1,o=r.length,a={};++n<o;){var i=r[n],u=o7(e,i);t(u,i)&&uI(a,o6(i,e),u)}return a};var rb=function e(e,r){return uN(e,r,function(r,t){return ug(e,t)})};var rg=function e(e){return h(e,uF)||(typeof DOMException==="undefined"?"undefined":S(DOMException))<"u"&&h(e,DOMException)&&(e.name==="AbortError"||e.name==="TimeoutError")||h(e,uB)&&(e===null||e===void 0?void 0:e.id)===uD||h(e,Event)&&e.type==="abort"||h(e,Error)&&e.name==="AbortError"};var rm=function e(e){var r=new globalThis.AbortController;function t(){var n=e.filter(function(e){return(e===null||e===void 0?void 0:e.aborted)===!0}).map(function(e){return e===null||e===void 0?void 0:e.reason}).pop();r.abort(n);var o=true,a=false,i=undefined;try{for(var u=e[Symbol.iterator](),s;!(o=(s=u.next()).done);o=true){var c=s.value;(c===null||c===void 0?void 0:c.removeEventListener)!=null&&c.removeEventListener("abort",t)}}catch(e){a=true;i=e}finally{try{if(!o&&u.return!=null){u.return()}}finally{if(a){throw i}}}}var n=true,o=false,a=undefined;try{for(var i=e[Symbol.iterator](),u;!(n=(u=i.next()).done);n=true){var s=u.value;if((s===null||s===void 0?void 0:s.aborted)===!0){t();break}(s===null||s===void 0?void 0:s.addEventListener)!=null&&s.addEventListener("abort",t)}}catch(e){o=true;a=e}finally{try{if(!n&&i.return!=null){i.return()}}finally{if(o){throw a}}}function c(){var r=true,n=false,o=undefined;try{for(var a=e[Symbol.iterator](),i;!(r=(i=a.next()).done);r=true){var u=i.value;(u===null||u===void 0?void 0:u.removeEventListener)!=null&&u.removeEventListener("abort",t)}}catch(e){n=true;o=e}finally{try{if(!r&&a.return!=null){a.return()}}finally{if(n){throw o}}}}var l=r.signal;return l.clear=c,l};var rk=function e(e){var r=AbortSignal.any;if(typeof r=="function"){var t=e.filter(function(e){return e!=null});if(t.length>0){var n=r(t);return n.clear=function(){},n}}return rm(e)};var rw=function e(e){if(typeof AbortSignal.timeout=="function"&&Number.isFinite(e)&&e>=0)try{return AbortSignal.timeout(e)}catch(e){}var r=new AbortController,t=Number.isFinite(e)&&e>=0?Math.min(e,2147483647):2147483647,n=setTimeout(function(){r.abort(new DOMException("The operation timed out","TimeoutError"))},t),o=r.signal;return o.clear=function(){return clearTimeout(n)},o};var rj=function e(e){var r=function(){};return{promise:new Promise(function(t,n){if(e.aborted){n(e.reason||new uF("The operation was aborted"));return}var o=function(){n(e.reason||new uF("The operation was aborted"))};e.addEventListener("abort",o),r=function(){e.removeEventListener("abort",o)}}),cleanup:r}};var rO=function e(e,r){if(!r)return e;r.throwIfAborted();var t=rj(r),n=t.promise,o=t.cleanup;return Promise.race([e,n]).finally(function(){o()})};var rE=function e(e,r,t){for(var n=arguments.length,o=new Array(n>3?n-3:0),a=3;a<n;a++){o[a-3]=arguments[a]}var i;if(typeof e[r]=="function")return(i=e)[r].apply(i,[t].concat(R(o)))};var r_=function e(e){return Array.isArray(e)?e:[e]};var rA=function e(e,r,t){return u0.apply(this,arguments)};var rR=function e(e,r,t){return u1.apply(this,arguments)};var rS=function e(e,r,t){for(var n=arguments.length,o=new Array(n>3?n-3:0),a=3;a<n;a++){o[a-3]=arguments[a]}var i;t.resetHooksRuntimes(r);for(var u=0;u<e.length;u++){var s=e[u];if(t.shouldSkipPluginHook(s,r))continue;if(t.shouldBreakChain())break;var c=(t.hooksRuntimes.times||0)+1;t.runtimes({pluginName:s.pluginName,hookName:r,pluginIndex:u,times:c});try{var l=rE.apply(void 0,[s,r,t].concat(R(o)));if(l!==void 0&&(i=l,t.runtimeReturnValue(l),t.shouldBreakChainOnReturn()))break}catch(e){if(t.shouldContinueOnError())continue;throw e}}return i};var rx=function e(e,r,t){for(var n=arguments.length,o=new Array(n>3?n-3:0),a=3;a<n;a++){o[a-3]=arguments[a]}var i=r_(r),u;var s=true,c=false,l=undefined;try{for(var f=i[Symbol.iterator](),v;!(s=(v=f.next()).done);s=true){var h=v.value;try{var p=rS.apply(void 0,[e,h,t].concat(R(o)));if(p!==void 0&&(u=p),t.shouldBreakChain())break}catch(e){if(t.shouldContinueOnError())continue;throw e}}}catch(e){c=true;l=e}finally{try{if(!s&&f.return!=null){f.return()}}finally{if(c){throw l}}}return u};var rP=function e(e){return e.startsWith("http://")||e.startsWith("https://")};var rT=function e(e,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return typeof e!="string"?!1:r!==void 0?t?e===r:e.toLowerCase()===r.toLowerCase():!0};var rC=function e(e,r,t){if(t)return r in e?{found:!0,value:e[r],actualKey:r}:{found:!1};var n=r.toLowerCase();for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)&&o.toLowerCase()===n)return{found:!0,value:e[o],actualKey:o};return{found:!1}};var rI=function e(e,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return(typeof e==="undefined"?"undefined":S(e))!="object"||e===null?!1:rC(e,r,t).found};var rN=function e(e,r,t,n){if((typeof e==="undefined"?"undefined":S(e))!="object"||e===null)return!1;var o;var a=(o=n===null||n===void 0?void 0:n.keyCaseSensitive)!==null&&o!==void 0?o:!0,i=rC(e,r,a);var u;return i.found?t===void 0?!0:((u=n===null||n===void 0?void 0:n.valueCaseSensitive)!==null&&u!==void 0?u:!0)?i.value===t:typeof i.value=="string"&&typeof t=="string"?i.value.toLowerCase()===t.toLowerCase():i.value===t:!1};var rU=function e(e,r,t){return e?h(e,Headers)?(e.set(r,String(t)),e):w(m({},e),l({},r,t)):l({},r,t)};var rH=function e(e){if(!e||(typeof e==="undefined"?"undefined":S(e))!="object")return!1;var r=e;return"response"in r&&h(r.response,Response)&&"status"in r&&typeof r.status=="number"&&"statusText"in r&&typeof r.statusText=="string"&&"headers"in r&&S(r.headers)=="object"&&r.headers!==null&&"config"in r&&S(r.config)=="object"&&r.config!==null};var rz=function e(e){return"type"in e&&"pipe"in e?e:"serialize"in e&&"deserialize"in e?{pipe:e,type:"serialize"}:"encrypt"in e&&"decrypt"in e?{pipe:e,type:"encrypt"}:"setItem"in e&&"getItem"in e&&"removeItem"in e&&"clear"in e?{pipe:e,type:"storage"}:null};var rL=Object.defineProperty;var rB=Object.getOwnPropertyDescriptor;var rD=Object.getOwnPropertyNames;var rF=Object.prototype.hasOwnProperty;var rV=function(e,r){for(var t in r)rL(e,t,{get:r[t],enumerable:!0})},rq=function(e,r,t,n){var o=true,a=false,i=undefined;if(r&&(typeof r==="undefined"?"undefined":S(r))=="object"||typeof r=="function")try{var u=function(){var o=c.value;!rF.call(e,o)&&o!==t&&rL(e,o,{get:function(){return r[o]},enumerable:!(n=rB(r,o))||n.enumerable})};for(var s=rD(r)[Symbol.iterator](),c;!(o=(c=s.next()).done);o=true)u()}catch(e){a=true;i=e}finally{try{if(!o&&s.return!=null){s.return()}}finally{if(a){throw i}}}return e};var rM=function(e){return rq(rL({},"__esModule",{value:!0}),e)};var rW={};rV(rW,{ABORT_ERROR_ID:function(){return uD},AbortError:function(){return uF},Aborter:function(){return uV},AborterPlugin:function(){return uq},Base64Serializer:function(){return sp},BasePluginExecutor:function(){return uQ},DEFAULT_HOOK_ON_BEFORE:function(){return uG},DEFAULT_HOOK_ON_ERROR:function(){return uX},DEFAULT_HOOK_ON_EXEC:function(){return uJ},DEFAULT_HOOK_ON_FINALLY:function(){return uZ},DEFAULT_HOOK_ON_SUCCESS:function(){return uY},EXECUTOR_ASYNC_ERROR:function(){return u$},EXECUTOR_ERROR_NAME:function(){return uL},EXECUTOR_SYNC_ERROR:function(){return uK},ExecutorContextImpl:function(){return uW},ExecutorError:function(){return uB},HttpMethods:function(){return si},JSONSerializer:function(){return sh},KeyStorage:function(){return sd},LifecycleExecutor:function(){return u3},LifecycleSyncExecutor:function(){return u2},ObjectStorage:function(){return sy},RETRY_ERROR_ID:function(){return u4},RequestAdapterAxios:function(){return sa},RequestAdapterFetch:function(){return so},RequestExecutor:function(){return su},RequestHeaderInjector:function(){return ss},RequestPlugin:function(){return sl},ResponsePlugin:function(){return sf},RetryPlugin:function(){return u6},SimpleUrlBuilder:function(){return sc},SyncStorage:function(){return sg},appendHeaders:function(){return rU},createAbortPromise:function(){return rj},hasObjectKey:function(){return rI},hasObjectKeyWithValue:function(){return rN},isAbortError:function(){return rg},isAbsoluteUrl:function(){return rP},isAsString:function(){return rT},isRequestAdapterResponse:function(){return rH},normalizeHookNames:function(){return r_},raceWithAbort:function(){return rO},runPluginHook:function(){return rE},runPluginsHookAsync:function(){return rA},runPluginsHookSync:function(){return rS},runPluginsHooksAsync:function(){return rR},runPluginsHooksSync:function(){return rx}});var rK=(typeof global==="undefined"?"undefined":S(global))=="object"&&global&&global.Object===Object&&global,r$=rK;var rG=(typeof self==="undefined"?"undefined":S(self))=="object"&&self&&self.Object===Object&&self,rJ=r$||rG||Function("return this")(),rY=rJ;var rX=rY.Symbol,rZ=rX;var rQ=Object.prototype,r0=rQ.hasOwnProperty,r1=rQ.toString,r3=rZ?rZ.toStringTag:void 0;var r2=s;var r4=Object.prototype,r6=r4.toString;var r5=f;var r8="[object Null]",r7="[object Undefined]",r9=rZ?rZ.toStringTag:void 0;var te=p;var tr=d;var tt="[object Symbol]";var tn=y;var to=b;var ta=Array.isArray,ti=ta;var tu=1/0,ts=rZ?rZ.prototype:void 0,tc=ts?ts.toString:void 0;function tl(e){if(typeof e=="string")return e;if(ti(e))return to(e,tl)+"";if(tn(e))return tc?tc.call(e):"";var r=e+"";return r=="0"&&1/e==-tu?"-0":r}var tf=tl;var tv=g;var th=k;var tp="[object AsyncFunction]",td="[object Function]",ty="[object GeneratorFunction]",tb="[object Proxy]";var tg=O;var tm=rY["__core-js_shared__"],tk=tm;var tw=function(){var e=/[^.]+$/.exec(tk&&tk.keys&&tk.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();var tj=E;var tO=Function.prototype,tE=tO.toString;var t_=_;var tA=/[\\^$.*+?()[\]{}|]/g,tR=/^\[object .+?Constructor\]$/,tS=Function.prototype,tx=Object.prototype,tP=tS.toString,tT=tx.hasOwnProperty,tC=RegExp("^"+tP.call(tT).replace(tA,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var tI=x;var tN=T;var tU=N;var tH=tU(rY,"WeakMap"),tz=tH;var tL=Object.create,tB=function(){function e(){}return function(r){if(!tv(r))return{};if(tL)return tL(r);e.prototype=r;var t=new e;return e.prototype=void 0,t}}(),tD=tB;var tF=U;var tV=H;var tq=800,tM=16,tW=Date.now;var tK=z;var t$=L;var tG=function(){try{var e=tU(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),tJ=tG;var tY=tJ?function e(e,r){return tJ(e,"toString",{configurable:!0,enumerable:!1,value:t$(r),writable:!0})}:th,tX=tY;var tZ=tK(tX),tQ=tZ;var t0=B;var t1=9007199254740991,t3=/^(?:0|[1-9]\d*)$/;var t2=D;var t4=F;var t6=V;var t5=Object.prototype,t8=t5.hasOwnProperty;var t7=q;var t9=M;var ne=Math.max;var nr=W;var nt=K;var nn=9007199254740991;var no=$;var na=G;var ni=J;var nu=Y;var ns=Object.prototype;var nc=X;var nl=Z;var nf="[object Arguments]";var nv=Q;var nh=Object.prototype,np=nh.hasOwnProperty,nd=nh.propertyIsEnumerable,ny=nv(function(){return arguments}())?nv:function e(e){return tr(e)&&np.call(e,"callee")&&!nd.call(e,"callee")},nb=ny;var ng=ee;var nm=(typeof exports==="undefined"?"undefined":S(exports))=="object"&&exports&&!exports.nodeType&&exports,nk=nm&&(typeof module==="undefined"?"undefined":S(module))=="object"&&module&&!module.nodeType&&module,nw=nk&&nk.exports===nm,nj=nw?rY.Buffer:void 0,nO=nj?nj.isBuffer:void 0,nE=nO||ng,n_=nE;var nA="[object Arguments]",nR="[object Array]",nS="[object Boolean]",nx="[object Date]",nP="[object Error]",nT="[object Function]",nC="[object Map]",nI="[object Number]",nN="[object Object]",nU="[object RegExp]",nH="[object Set]",nz="[object String]",nL="[object WeakMap]",nB="[object ArrayBuffer]",nD="[object DataView]",nF="[object Float32Array]",nV="[object Float64Array]",nq="[object Int8Array]",nM="[object Int16Array]",nW="[object Int32Array]",nK="[object Uint8Array]",n$="[object Uint8ClampedArray]",nG="[object Uint16Array]",nJ="[object Uint32Array]",nY={};nY[nF]=nY[nV]=nY[nq]=nY[nM]=nY[nW]=nY[nK]=nY[n$]=nY[nG]=nY[nJ]=!0;nY[nA]=nY[nR]=nY[nB]=nY[nS]=nY[nD]=nY[nx]=nY[nP]=nY[nT]=nY[nC]=nY[nI]=nY[nN]=nY[nU]=nY[nH]=nY[nz]=nY[nL]=!1;var nX=er;var nZ=et;var nQ=(typeof exports==="undefined"?"undefined":S(exports))=="object"&&exports&&!exports.nodeType&&exports,n0=nQ&&(typeof module==="undefined"?"undefined":S(module))=="object"&&module&&!module.nodeType&&module,n1=n0&&n0.exports===nQ,n3=n1&&r$.process,n2=function(){try{var e=n0&&n0.require&&n0.require("util").types;return e||n3&&n3.binding&&n3.binding("util")}catch(e){}}(),n4=n2;var n6=n4&&n4.isTypedArray,n5=n6?nZ(n6):nX,n8=n5;var n7=Object.prototype,n9=n7.hasOwnProperty;var oe=en;var or=eo;var ot=or(Object.keys,Object),on=ot;var oo=Object.prototype,oa=oo.hasOwnProperty;var oi=ea;var ou=ei;var os=eu;var oc=Object.prototype,ol=oc.hasOwnProperty;var of=es;var ov=ec;var oh=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,op=/^\w*$/;var od=el;var oy=tU(Object,"create"),ob=oy;var og=ef;var om=ev;var ok="__lodash_hash_undefined__",ow=Object.prototype,oj=ow.hasOwnProperty;var oO=eh;var oE=Object.prototype,o_=oE.hasOwnProperty;var oA=ep;var oR="__lodash_hash_undefined__";var oS=ed;ey.prototype.clear=og;ey.prototype.delete=om;ey.prototype.get=oO;ey.prototype.has=oA;ey.prototype.set=oS;var ox=ey;var oP=eb;var oT=eg;var oC=Array.prototype,oI=oC.splice;var oN=em;var oU=ek;var oH=ew;var oz=ej;eO.prototype.clear=oP;eO.prototype.delete=oN;eO.prototype.get=oU;eO.prototype.has=oH;eO.prototype.set=oz;var oL=eO;var oB=tU(rY,"Map"),oD=oB;var oF=eE;var oV=e_;var oq=eA;var oM=eR;var oW=eS;var oK=ex;var o$=eP;eT.prototype.clear=oF;eT.prototype.delete=oM;eT.prototype.get=oW;eT.prototype.has=oK;eT.prototype.set=o$;var oG=eT;var oJ="Expected a function";function oY(e,r){if(typeof e!="function"||r!=null&&typeof r!="function")throw new TypeError(oJ);var t=function n(){var n=arguments,o=r?r.apply(this,n):n[0],a=t.cache;if(a.has(o))return a.get(o);var i=e.apply(this,n);return t.cache=a.set(o,i)||a,i};return t.cache=new(oY.Cache||oG),t}oY.Cache=oG;var oX=oY;var oZ=500;var oQ=eC;var o0=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o1=/\\(\\)?/g,o3=oQ(function(e){var r=[];return e.charCodeAt(0)===46&&r.push(""),e.replace(o0,function(e,t,n,o){r.push(n?o.replace(o1,"$1"):t||e)}),r}),o2=o3;var o4=eI;var o6=eN;var o5=1/0;var o8=eU;var o7=eH;var o9=ez;var ae=rZ?rZ.isConcatSpreadable:void 0;var ar=eL;function at(e,r,t,n,o){var a=-1,i=e.length;for(t||(t=ar),o||(o=[]);++a<i;){var u=e[a];r>0&&t(u)?r>1?at(u,r-1,t,n,o):o9(o,u):n||(o[o.length]=u)}return o}var an=at;var ao=eB;var aa=eD;var ai=or(Object.getPrototypeOf,Object),au=ai;var as="[object Object]",ac=Function.prototype,al=Object.prototype,af=ac.toString,av=al.hasOwnProperty,ah=af.call(Object);var ap=eF;var ad=eV;var ay=eq;var ab=eM;var ag=eW;var am=200;var ak=eK;e$.prototype.clear=ad;e$.prototype.delete=ay;e$.prototype.get=ab;e$.prototype.has=ag;e$.prototype.set=ak;var aw=e$;var aj=eG;var aO=eJ;var aE=(typeof exports==="undefined"?"undefined":S(exports))=="object"&&exports&&!exports.nodeType&&exports,a_=aE&&(typeof module==="undefined"?"undefined":S(module))=="object"&&module&&!module.nodeType&&module,aA=a_&&a_.exports===aE,aR=aA?rY.Buffer:void 0,aS=aR?aR.allocUnsafe:void 0;var ax=eY;var aP=eX;var aT=eZ;var aC=Object.prototype,aI=aC.propertyIsEnumerable,aN=Object.getOwnPropertySymbols,aU=aN?function e(e){return e==null?[]:(e=Object(e),aP(aN(e),function(r){return aI.call(e,r)}))}:aT,aH=aU;var az=eQ;var aL=Object.getOwnPropertySymbols,aB=aL?function e(e){for(var r=[];e;)o9(r,aH(e)),e=au(e);return r}:aT,aD=aB;var aF=e0;var aV=e1;var aq=e3;var aM=e2;var aW=tU(rY,"DataView"),aK=aW;var a$=tU(rY,"Promise"),aG=a$;var aJ=tU(rY,"Set"),aY=aJ;var aX="[object Map]",aZ="[object Object]",aQ="[object Promise]",a0="[object Set]",a1="[object WeakMap]",a3="[object DataView]",a2=t_(aK),a4=t_(oD),a6=t_(aG),a5=t_(aY),a8=t_(tz),a7=te;(aK&&a7(new aK(new ArrayBuffer(1)))!=a3||oD&&a7(new oD)!=aX||aG&&a7(aG.resolve())!=aQ||aY&&a7(new aY)!=a0||tz&&a7(new tz)!=a1)&&(a7=function e(e){var r=te(e),t=r==aZ?e.constructor:void 0,n=t?t_(t):"";if(n)switch(n){case a2:return a3;case a4:return aX;case a6:return aQ;case a5:return a0;case a8:return a1}return r});var a9=a7;var ie=Object.prototype,ir=ie.hasOwnProperty;var it=e4;var io=rY.Uint8Array,ia=io;var ii=e6;var iu=e5;var is=/\w*$/;var ic=e8;var il=rZ?rZ.prototype:void 0,iv=il?il.valueOf:void 0;var ih=e7;var ip=e9;var id="[object Boolean]",iy="[object Date]",ib="[object Map]",ig="[object Number]",im="[object RegExp]",ik="[object Set]",iw="[object String]",ij="[object Symbol]",iO="[object ArrayBuffer]",iE="[object DataView]",i_="[object Float32Array]",iA="[object Float64Array]",iR="[object Int8Array]",iS="[object Int16Array]",ix="[object Int32Array]",iP="[object Uint8Array]",iT="[object Uint8ClampedArray]",iC="[object Uint16Array]",iI="[object Uint32Array]";var iN=re;var iU=rr;var iH="[object Map]";var iz=rt;var iL=n4&&n4.isMap,iB=iL?nZ(iL):iz,iD=iB;var iF="[object Set]";var iV=rn;var iq=n4&&n4.isSet,iM=iq?nZ(iq):iV,iW=iM;var iK=1,i$=2,iG=4,iJ="[object Arguments]",iY="[object Array]",iX="[object Boolean]",iZ="[object Date]",iQ="[object Error]",i0="[object Function]",i1="[object GeneratorFunction]",i3="[object Map]",i2="[object Number]",i4="[object Object]",i6="[object RegExp]",i5="[object Set]",i8="[object String]",i7="[object Symbol]",i9="[object WeakMap]",ue="[object ArrayBuffer]",ur="[object DataView]",ut="[object Float32Array]",un="[object Float64Array]",uo="[object Int8Array]",ua="[object Int16Array]",ui="[object Int32Array]",uu="[object Uint8Array]",us="[object Uint8ClampedArray]",uc="[object Uint16Array]",ul="[object Uint32Array]",uf={};uf[iJ]=uf[iY]=uf[ue]=uf[ur]=uf[iX]=uf[iZ]=uf[ut]=uf[un]=uf[uo]=uf[ua]=uf[ui]=uf[i3]=uf[i2]=uf[i4]=uf[i6]=uf[i5]=uf[i8]=uf[i7]=uf[uu]=uf[us]=uf[uc]=uf[ul]=!0;uf[iQ]=uf[i0]=uf[i9]=!1;function uv(e,r,t,n,o,a){var i,u=r&iK,s=r&i$,c=r&iG;if(t&&(i=o?t(e,n,o,a):t(e)),i!==void 0)return i;if(!tv(e))return e;var l=ti(e);if(l){if(i=it(e),!u)return tV(e,i)}else{var f=a9(e),v=f==i0||f==i1;if(n_(e))return ax(e,u);if(f==i4||f==iJ||v&&!o){if(i=s||v?{}:iU(e),!u)return s?aF(e,aO(i,e)):az(e,aj(i,e))}else{if(!uf[f])return o?e:{};i=iN(e,f,u)}}a||(a=new aw);var h=a.get(e);if(h)return h;a.set(e,i),iW(e)?e.forEach(function(n){i.add(uv(n,r,t,n,e,a))}):iD(e)&&e.forEach(function(n,o){i.set(o,uv(n,r,t,o,e,a))});var p=c?s?aM:aq:s?ov:ou,d=l?void 0:p(e);return t0(d||e,function(n,o){d&&(o=n,n=e[o]),t7(i,o,uv(n,r,t,o,e,a))}),i}var uh=uv;var up=4;var ud=ro;var uy=ra;var ub=ri;var ug=ru;var um=rs;var uk=um(),uw=uk;var uj=rc;var uO=rl;var uE=rf;var u_=rv;var uA=rh;function uR(e,r,t,n,o){e!==r&&uw(r,function(a,i){if(o||(o=new aw),tv(a))uA(e,r,i,t,uR,n,o);else{var u=n?n(uE(e,i),a,i+"",e,r,o):void 0;u===void 0&&(u=a),uj(e,i,u)}},ov)}var uS=uR;var ux="[object String]";var uP=rp;var uT=nu(function(e,r,t){uS(e,r,t)}),uC=uT;var uI=rd;var uN=ry;var uU=rb;var uH=aa(function(e,r){return e==null?{}:uU(e,r)}),uz=uH;var uL="ExecutorError",uB=function(e){v(t,e);var r=C(t);function t(e,n){i(this,t);var o;o=r.call(this);o.id=e;o.name=o.constructor!==t?o.constructor.name:uL,h(n,Error)?o.message=n.message:typeof n=="string"&&(o.message=n),o.message||(o.message=e),o.message!==n&&(o.cause=n);return o}return t}(P(Error));var uD="ABORT_ERROR",uF=function(e){v(t,e);var r=C(t);function t(e,n,o){i(this,t);var a;a=r.call(this,uD,e);a.name="AbortError";a.abortId=n,a.timeout=o;return a}return t}(uB);var uV=function(){function e(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"Aborter";i(this,e);this.aborterName=r;this.requestCounter=0;this.wrappers=new Map}c(e,[{key:"generateAbortedId",value:function e(e){var r;return e?(r=e.abortId)!==null&&r!==void 0?r:"".concat(this.aborterName,"-").concat(++this.requestCounter):"".concat(this.aborterName,"-").concat(++this.requestCounter)}},{key:"register",value:function e(e){var r;var t=this.generateAbortedId(e);if(this.wrappers.has(t))throw new Error('Operation with ID "'.concat(t,'" is already registered in ').concat(this.aborterName));if((r=e.signal)===null||r===void 0?void 0:r.aborted){var n=new AbortController;return n.abort(e.signal.reason),{abortId:t,signal:n.signal}}var o=new AbortController,a=this.createComposedSignal(e,o.signal,t),i=a.signal,u=a.cleanup;return this.wrappers.set(t,{controller:o,config:e,cleanup:u}),{abortId:t,signal:i}}},{key:"createComposedSignal",value:function e(e,r,t){var n=this;var o=[r],a=[];if(this.hasValidTimeout(e)){var i=rw(e.abortTimeout);o.push(i),this.isClearable(i)&&a.push(function(){return i.clear()})}if(e.signal&&o.push(e.signal),o.length===1)return{signal:r};var u=rk(o),s=function(){var r=u.reason;n.isTimeoutError(r)&&n.invokeCallback(e,"onAbortedTimeout"),n.cleanup(t)};return u.addEventListener("abort",s,{once:!0}),a.push(function(){return u.removeEventListener("abort",s)},function(){return u.clear()}),{signal:u,cleanup:function(){return a.forEach(function(e){return e()})}}}},{key:"hasValidTimeout",value:function e(e){return"abortTimeout"in e&&Number.isInteger(e.abortTimeout)&&e.abortTimeout>0}},{key:"isClearable",value:function e(e){return"clear"in e&&typeof e.clear=="function"}},{key:"isTimeoutError",value:function e(e){var r;return(e===null||e===void 0?void 0:e.name)==="TimeoutError"||(e===null||e===void 0?void 0:(r=e.message)===null||r===void 0?void 0:r.includes("timed out"))}},{key:"invokeCallback",value:function e(e,r){if(r in e&&typeof e[r]=="function")try{e[r](w(m({},e),{onAborted:void 0,onAbortedTimeout:void 0}))}catch(e){var t;(typeof process==="undefined"?"undefined":S(process))<"u"&&((t=process.env)===null||t===void 0?void 0:t.NODE_ENV)==="development"&&console.error("[".concat(this.aborterName,"] Error in ").concat(r," callback:"),e)}}},{key:"resolveAbortId",value:function e(e){return uP(e)?e:this.generateAbortedId(e)}},{key:"cleanup",value:function e(e){var r=this.resolveAbortId(e),t=this.wrappers.get(r);if(t){this.wrappers.delete(r);try{var n;(n=t.cleanup)===null||n===void 0?void 0:n.call(t)}catch(e){}return!0}return!1}},{key:"abort",value:function e(e){var r=this.resolveAbortId(e),t=this.wrappers.get(r);if(!t)return!1;var n=uP(e)?t.config:e;return t.controller.abort(new uF("The operation was aborted",r)),this.cleanup(r),this.invokeCallback(n,"onAborted"),!0}},{key:"abortAll",value:function e(){var e=Array.from(this.wrappers.entries());this.wrappers.clear(),e.forEach(function(e){var r=A(e,2),t=r[0],n=r[1];try{n.controller.signal.aborted||n.controller.abort(new uF("All operations were aborted",t))}catch(e){}try{var o;(o=n.cleanup)===null||o===void 0?void 0:o.call(n)}catch(e){}})}},{key:"autoCleanup",value:function e(e,r){var t=this;var n=this.register(r!==null&&r!==void 0?r:{}),o=n.abortId,a=n.signal;try{var i=e({abortId:o,signal:a});return Promise.resolve(i).finally(function(){return t.cleanup(o)})}catch(e){return this.cleanup(o),Promise.reject(e)}}},{key:"getSignal",value:function e(e){var r;return(r=this.wrappers.get(e))===null||r===void 0?void 0:r.controller.signal}}]);return e}();var uq=function(){function e(r){i(this,e);this.onlyOne=!0;var t=r!==null&&r!==void 0?r:{},n=t.pluginName,o=j(t,["pluginName"]);var a;this.pluginName=n!==null&&n!==void 0?n:"AborterPlugin",this.getConfig=(o===null||o===void 0?void 0:o.getConfig)||function(e){return e},this.timeout=o===null||o===void 0?void 0:o.timeout,this.aborter=(a=o===null||o===void 0?void 0:o.aborter)!==null&&a!==void 0?a:new uV(this.pluginName)}c(e,[{key:"onBefore",value:function e(e){var r=this.getConfig(e.parameters);process.env.NODE_ENV!=="production"&&!("signal"in r&&h(r.signal,AbortSignal))&&console.warn("[".concat(this.pluginName,"] Warning: config.signal is missing. Make sure your getConfig extracts the signal property."));var t=this.timeout!==void 0&&"abortTimeout"in r&&(r.abortTimeout===void 0||r.abortTimeout===null)?w(m({},r),{abortTimeout:this.timeout}):r;this.aborter.abort(t);var n=this.aborter.register(t),o=n.signal,a=n.abortId;S(e.parameters)=="object"&&e.parameters!==null&&e.setParameters(w(m({},e.parameters),{signal:o,abortId:a}))}},{key:"cleanupFromContext",value:function e(e){this.aborter.cleanup(e)}},{key:"onError",value:function e(e){if(!e.parameters)return;var r=this.getConfig(e.parameters);if(rg(e.error)){if(h(e.error,uF))return e.error;var t="The operation was aborted",n=e.error;return n&&(typeof n==="undefined"?"undefined":S(n))=="object"&&"message"in n&&(t=String(n.message)),new uF(t,r.abortId)}}},{key:"onFinally",value:function e(e){e.parameters&&this.cleanupFromContext(e.parameters)}},{key:"abort",value:function e(e){return this.aborter.abort(e)}},{key:"abortAll",value:function e(){this.aborter.abortAll()}},{key:"getAborter",value:function e(){return this.aborter}}]);return e}();var uM=new WeakMap,uW=function(){function e(r){i(this,e);this._parameters=r,uM.set(this,{pluginName:"",pluginIndex:void 0,hookName:"",returnValue:void 0,returnBreakChain:!1,times:0,breakChain:!1})}c(e,[{key:"parameters",get:function e(){return this._parameters}},{key:"error",get:function e(){return this._error}},{key:"returnValue",get:function e(){return this._returnValue}},{key:"hooksRuntimes",get:function e(){var e=uM.get(this);if(!e)throw new Error("Runtime state not initialized");return Object.freeze(m({},e))}},{key:"setError",value:function e(e){this._error=e}},{key:"setReturnValue",value:function e(e){this._returnValue=e}},{key:"setParameters",value:function e(e){this._parameters=e}},{key:"resetHooksRuntimes",value:function e(e){var r=uM.get(this);if(!r)throw new Error("Runtime state not initialized");if(e){uM.set(this,w(m({},r),{hookName:e,times:0,returnValue:void 0}));return}uM.set(this,{pluginName:"",pluginIndex:void 0,hookName:"",returnValue:void 0,returnBreakChain:!1,times:0,breakChain:!1})}},{key:"reset",value:function e(){this.resetHooksRuntimes(),this._returnValue=void 0,this._error=void 0}},{key:"shouldSkipPluginHook",value:function e(e,r){return typeof e[r]!="function"||typeof e.enabled=="function"&&!e.enabled(r,this)}},{key:"runtimes",value:function e(e){var r=uM.get(this);if(!r)throw new Error("Runtime state not initialized");uM.set(this,m({},r,e))}},{key:"runtimeReturnValue",value:function e(e){var r=uM.get(this);if(!r)throw new Error("Runtime state not initialized");uM.set(this,w(m({},r),{returnValue:e}))}},{key:"shouldBreakChain",value:function e(){var e;return!!((e=uM.get(this))===null||e===void 0?void 0:e.breakChain)}},{key:"shouldBreakChainOnReturn",value:function e(){var e;return!!((e=uM.get(this))===null||e===void 0?void 0:e.returnBreakChain)}},{key:"shouldContinueOnError",value:function e(){var e;return!!((e=uM.get(this))===null||e===void 0?void 0:e.continueOnError)}}]);return e}();var uK="UNKNOWN_SYNC_ERROR",u$="UNKNOWN_ASYNC_ERROR",uG="onBefore",uJ="onExec",uY="onSuccess",uX="onError",uZ="onFinally";var uQ=function(){function e(r){i(this,e);this.config=r;this.plugins=[]}c(e,[{key:"use",value:function e(e){this.validePlugin(e),this.plugins.push(e)}},{key:"validePlugin",value:function e(e){if((typeof e==="undefined"?"undefined":S(e))!="object"||e===null)throw new Error("Plugin must be an object");if(e.onlyOne&&this.plugins.some(function(r){return r===e||r.pluginName&&e.pluginName&&r.pluginName===e.pluginName||r.constructor===e.constructor})){var r=e.pluginName||"Unknown";throw new Error("Plugin ".concat(r," is already used"))}}},{key:"createContext",value:function e(e){return new uW(e)}},{key:"getBeforeHooks",value:function e(){var e;var r;return(r=(e=this.config)===null||e===void 0?void 0:e.beforeHooks)!==null&&r!==void 0?r:uG}},{key:"getAfterHooks",value:function e(){var e;var r;return(r=(e=this.config)===null||e===void 0?void 0:e.afterHooks)!==null&&r!==void 0?r:uY}},{key:"getExecHook",value:function e(){var e;var r;return(r=(e=this.config)===null||e===void 0?void 0:e.execHook)!==null&&r!==void 0?r:uJ}},{key:"getErrorHook",value:function e(){return uX}},{key:"getFinallyHook",value:function e(){return uZ}}]);return e}();function u0(){u0=a(function(e,r,t){var n,o,a,i,u,s,c,l,f;var v=arguments;return I(this,function(h){switch(h.label){case 0:for(n=v.length,o=new Array(n>3?n-3:0),a=3;a<n;a++){o[a-3]=v[a]}t.resetHooksRuntimes(r);u=0;h.label=1;case 1:if(!(u<e.length))return[3,6];s=e[u];if(t.shouldSkipPluginHook(s,r))return[3,5];if(t.shouldBreakChain())return[3,6];c=(t.hooksRuntimes.times||0)+1;t.runtimes({pluginName:s.pluginName,hookName:r,pluginIndex:u,times:c});h.label=2;case 2:h.trys.push([2,4,,5]);return[4,rE.apply(void 0,[s,r,t].concat(R(o)))];case 3:l=h.sent();if(l!==void 0&&(i=l,t.runtimeReturnValue(l),t.shouldBreakChainOnReturn()))return[3,6];return[3,5];case 4:f=h.sent();if(t.shouldContinueOnError())return[3,5];throw f;case 5:u++;return[3,1];case 6:return[2,i]}})});return u0.apply(this,arguments)}function u1(){u1=a(function(e,r,t){var n,o,a,i,u,s,c,l,f,v,h,p,d,y;var b=arguments;return I(this,function(g){switch(g.label){case 0:for(n=b.length,o=new Array(n>3?n-3:0),a=3;a<n;a++){o[a-3]=b[a]}i=r_(r);s=true,c=false,l=undefined;g.label=1;case 1:g.trys.push([1,8,9,10]);f=i[Symbol.iterator]();g.label=2;case 2:if(!!(s=(v=f.next()).done))return[3,7];h=v.value;g.label=3;case 3:g.trys.push([3,5,,6]);return[4,rA.apply(void 0,[e,h,t].concat(R(o)))];case 4:p=g.sent();if(p!==void 0&&(u=p),t.shouldBreakChain())return[3,7];return[3,6];case 5:d=g.sent();if(t.shouldContinueOnError())return[3,6];throw d;case 6:s=true;return[3,2];case 7:return[3,10];case 8:y=g.sent();c=true;l=y;return[3,10];case 9:try{if(!s&&f.return!=null){f.return()}}finally{if(c){throw l}}return[7];case 10:return[2,u]}})});return u1.apply(this,arguments)}var u3=function(e){v(t,e);var r=C(t);function t(){i(this,t);return r.apply(this,arguments)}c(t,[{key:"execNoError",value:function e(e,r){var t=this;return a(function(){var n,o;return I(this,function(a){switch(a.label){case 0:a.trys.push([0,5,,6]);if(!(r!==void 0))return[3,2];return[4,t.exec(e,r)];case 1:n=a.sent();return[3,4];case 2:return[4,t.exec(e)];case 3:n=a.sent();a.label=4;case 4:return[2,n];case 5:o=a.sent();return[2,h(o,uB)?o:new uB(u$,o)];case 6:return[2]}})})()}},{key:"exec",value:function e(e,r){var t=r||e,n=r?e:void 0;if(typeof t!="function")throw new Error("Task must be a function!");var o=this.createContext(n!==null&&n!==void 0?n:{});return this.run(o,t)}},{key:"runHook",value:function e(e,r,t){for(var n=arguments.length,o=new Array(n>3?n-3:0),a=3;a<n;a++){o[a-3]=arguments[a]}return rA.apply(void 0,[e,r,t].concat(R(o)))}},{key:"runHooks",value:function e(e,r,t){for(var n=arguments.length,o=new Array(n>3?n-3:0),a=3;a<n;a++){o[a-3]=arguments[a]}return rR.apply(void 0,[e,r,t].concat(R(o)))}},{key:"runExec",value:function e(e,r){var t=this;return a(function(){var n,o,a,i;return I(this,function(u){switch(u.label){case 0:n=t.getExecHook();return[4,t.runHook(t.plugins,n,e,r)];case 1:u.sent();if(!!e.hooksRuntimes.times)return[3,3];return[4,r(e)];case 2:o=u.sent();return[3,7];case 3:a=e.hooksRuntimes.returnValue;if(!(typeof a=="function"))return[3,5];return[4,a(e)];case 4:i=o=u.sent();return[3,6];case 5:i=o=a;u.label=6;case 6:i;u.label=7;case 7:return[2,(e.setReturnValue(o),o)]}})})()}},{key:"run",value:function e(e,r){var t=this;return a(function(){var n;return I(this,function(o){switch(o.label){case 0:o.trys.push([0,2,4,6]);return[4,t.handler(e,r)];case 1:return[2,(o.sent(),e.returnValue)];case 2:n=o.sent();return[4,t.handlerCatch(e,n)];case 3:throw o.sent();case 4:return[4,t.handlerFinally(e)];case 5:o.sent();return[7];case 6:return[2]}})})()}},{key:"handler",value:function e(e,r){var t=this;return a(function(){var n;return I(this,function(o){switch(o.label){case 0:return[4,t.runHooks(t.plugins,t.getBeforeHooks(),e)];case 1:n=o.sent();n!==void 0&&e.setParameters(n);return[4,t.runExec(e,r)];case 2:o.sent();return[4,t.runHooks(t.plugins,t.getAfterHooks(),e)];case 3:return[2,(o.sent(),e.returnValue)]}})})()}},{key:"handlerCatch",value:function e(e,r){var t=this;return a(function(){var n;return I(this,function(o){switch(o.label){case 0:e.setError(r);return[4,t.runHook(t.plugins,t.getErrorHook(),e)];case 1:if(o.sent(),e.hooksRuntimes.returnValue&&e.setError(e.hooksRuntimes.returnValue),h(e.error,uB))return[2,e.error];n=new uB(u$,e.error);return[2,(e.setError(n),n)]}})})()}},{key:"handlerFinally",value:function e(e){var r=this;return a(function(){return I(this,function(t){switch(t.label){case 0:e.runtimes({continueOnError:!0});return[4,r.runHooks(r.plugins,r.getFinallyHook(),e)];case 1:t.sent(),e.reset();return[2]}})})()}}]);return t}(uQ);var u2=function(e){v(t,e);var r=C(t);function t(){i(this,t);return r.apply(this,arguments)}c(t,[{key:"runHook",value:function e(e,r,t){for(var n=arguments.length,o=new Array(n>3?n-3:0),a=3;a<n;a++){o[a-3]=arguments[a]}return rS.apply(void 0,[e,r,t].concat(R(o)))}},{key:"runHooks",value:function e(e,r,t){for(var n=arguments.length,o=new Array(n>3?n-3:0),a=3;a<n;a++){o[a-3]=arguments[a]}return rx.apply(void 0,[e,r,t].concat(R(o)))}},{key:"runExec",value:function e(e,r){var t=this.getExecHook();this.runHook(this.plugins,t,e,r);var n;if(!e.hooksRuntimes.times)n=r(e);else{var o=e.hooksRuntimes.returnValue;o===void 0?n=r(e):typeof o=="function"?n=o(e):n=o}return e.setReturnValue(n),n}},{key:"run",value:function e(e,r){try{return this.handler(e,r),e.returnValue}catch(r){throw this.handlerCatch(e,r)}finally{this.handlerFinally(e)}}},{key:"handler",value:function e(e,r){var t=this.runHooks(this.plugins,this.getBeforeHooks(),e);return t!==void 0&&e.setParameters(t),this.runExec(e,r),this.runHooks(this.plugins,this.getAfterHooks(),e),e.returnValue}},{key:"handlerCatch",value:function e(e,r){var t=h(r,Error)?r:new Error(String(r));if(e.setError(h(t,uB)?t:new uB(uK,t)),this.runHook(this.plugins,this.getErrorHook(),e),e.hooksRuntimes.returnValue){var n=e.hooksRuntimes.returnValue;e.setError(h(n,uB)?n:new uB(uK,n))}return h(e.error,uB)?e.error:new uB(uK,e.error)}},{key:"handlerFinally",value:function e(e){e.runtimes({continueOnError:!0}),this.runHooks(this.plugins,this.getFinallyHook(),e),e.reset()}},{key:"execNoError",value:function e(e,r){try{var t=r||e,n=r?e:void 0;if(typeof t!="function")throw new Error("Task must be a function!");var o=this.createContext(n!==null&&n!==void 0?n:{});return this.run(o,t)}catch(e){if(h(e,uB))return e;var a=h(e,Error)?e:new Error(String(e));return new uB(uK,a)}}},{key:"exec",value:function e(e,r){var t=r||e,n=r?e:void 0;if(typeof t!="function")throw new Error("Task must be a function!");var o=this.createContext(n!==null&&n!==void 0?n:{});return this.run(o,t)}}]);return t}(uQ);var u4="RETRY_ERROR",u6=function(){function e(r,t){i(this,e);this.onlyOne=!0;this.retryer=r,this.pluginName=t!==null&&t!==void 0?t:"RetryPlugin"}c(e,[{key:"onExec",value:function e(e,r){var t=function(){var e=a(function(e){var t;return I(this,function(n){t=r(e);return[2,h(t,Promise)?t:Promise.resolve(t)]})});return function r(r){return e.apply(this,arguments)}}(),n=function(){var e=a(function(e){return I(this,function(r){return[2,t(e)]})});return function r(r){return e.apply(this,arguments)}}(),o=this.retryer.makeRetriable(n);return function(){var e=a(function(e){return I(this,function(r){return[2,o(e)]})});return function(r){return e.apply(this,arguments)}}()}}]);return e}();var u5="Authorization",u8="Content-Type",u7="application/json",u9="json";var se="ENV_FETCH_NOT_SUPPORT",sr="FETCHER_NONE",st="RESPONSE_NOT_OK";var sn=["cache","credentials","headers","integrity","keepalive","mode","priority","redirect","referrer","referrerPolicy","signal"],so=function(){function e(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};i(this,e);if(!r.fetcher){if(typeof fetch!="function")throw new uB(se);r.fetcher=fetch}this.config=r}c(e,[{key:"getConfig",value:function e(){return this.config}},{key:"setConfig",value:function e(e){Object.assign(this.config,e)}},{key:"request",value:function e(e){var r=this;return a(function(){var t,n,o,a,i,u;return I(this,function(s){switch(s.label){case 0:t=r.getConfig(),n=uC({},t,e),o=n.fetcher,a=j(n,["fetcher"]);if(typeof o!="function")throw new uB(sr);i=r.parametersToRequest(a);return[4,o(i)];case 1:u=s.sent();return[2,r.toAdapterResponse(u,u,a)]}})})()}},{key:"buildRequestUrl",value:function e(e,r){return rP(e)||!r?e:r.endsWith("/")&&e.startsWith("/")?r.slice(0,-1)+e:r+e}},{key:"parametersToRequest",value:function e(e){var r=e.url,t=r===void 0?"/":r,n=e.baseURL,o=e.method,a=o===void 0?"GET":o,i=e.data,u=uz(e,sn);return new Request(this.buildRequestUrl(t,n),Object.assign(u,{body:i,method:a.toUpperCase()}))}},{key:"toAdapterResponse",value:function e(e,r,t){return{data:e,status:r.status,statusText:r.statusText,headers:this.getResponseHeaders(r),config:t,response:r}}},{key:"getResponseHeaders",value:function e(e){var r={};return e.headers.forEach(function(e,t){r[t]=e}),r}}]);return e}();var sa=function(){function e(r){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};i(this,e);this.config=t;this.axiosInstance=r.create(t)}c(e,[{key:"getConfig",value:function e(){return this.config}},{key:"setConfig",value:function e(e){Object.assign(this.config,e)}},{key:"request",value:function e(e){var r=this;return a(function(){return I(this,function(t){return[2,r.axiosInstance.request(e)]})})()}}]);return e}();var si={GET:"GET",POST:"POST",PUT:"PUT",DELETE:"DELETE",PATCH:"PATCH",HEAD:"HEAD",OPTIONS:"OPTIONS",TRACE:"TRACE",CONNECT:"CONNECT"};var su=function(){function e(r,t){i(this,e);this.adapter=r;this.executor=t}c(e,[{key:"use",value:function e(e){if(!this.executor)throw new Error("RequestExecutor: Executor is not set");return this.executor.use(e),this}},{key:"request",value:function e(e){var r=this;var t=Object.assign(ud(this.adapter.getConfig()),e);return this.executor?this.executor.exec(t,function(e){return r.adapter.request(e.parameters)}):this.adapter.request(t)}},{key:"get",value:function e(e,r){return this.request(w(m({},r),{url:e,method:si.GET}))}},{key:"delete",value:function e(e,r){return this.request(w(m({},r),{url:e,method:si.DELETE}))}},{key:"head",value:function e(e,r){return this.request(w(m({},r),{url:e,method:si.HEAD}))}},{key:"options",value:function e(e,r){return this.request(w(m({},r),{url:e,method:si.OPTIONS}))}},{key:"post",value:function e(e,r,t){return this.request(w(m({},t),{url:e,data:r,method:si.POST}))}},{key:"put",value:function e(e,r,t){return this.request(w(m({},t),{url:e,data:r,method:si.PUT}))}},{key:"patch",value:function e(e,r,t){return this.request(w(m({},t),{url:e,data:r,method:si.PATCH}))}}]);return e}();var ss=function(){function e(r){i(this,e);this.config=r}c(e,[{key:"inject",value:function e(e){var r,t;var n=m({},this.config,e),o=(r=this.config.headers)!==null&&r!==void 0?r:{},a=(t=e.headers)!==null&&t!==void 0?t:{},i=m({},o,a);!rN(i,u8)&&rT(n.responseType,u9,!0)&&(i=rU(i,u8,u7));var u=this.getAuthKey(n);if(u!==!1&&!rN(i,u)){var s=this.getAuthToken(n);rT(s)&&s.length>0&&(i=rU(i,u,s))}return this.normalizeHeaders(i)}},{key:"normalizeHeaders",value:function e(e){var r={};var t=true,n=false,o=undefined;try{for(var a=Object.entries(e)[Symbol.iterator](),i;!(t=(i=a.next()).done);t=true){var u=A(i.value,2),s=u[0],c=u[1];c!=null&&(r[s]=String(c))}}catch(e){n=true;o=e}finally{try{if(!t&&a.return!=null){a.return()}}finally{if(n){throw o}}}return r}},{key:"getAuthToken",value:function e(e){var r=e.token,t="";if(typeof r=="function"){var n=r.call(e);t=rT(n)?n:""}else rT(r)&&(t=r);if(!t)return"";var o=e.tokenPrefix;return rT(o)&&o.length>0?"".concat(o," ").concat(t):t}},{key:"getAuthKey",value:function e(e){var r;return e.authKey===!1?!1:(r=e.authKey)!==null&&r!==void 0?r:u5}}]);return e}();var sc=function(){function e(r){i(this,e);this.config=r}c(e,[{key:"isFullURL",value:function e(e){return rP(e)}},{key:"createUrlObject",value:function e(e,r){var t;var n,o=!1;if(this.isFullURL(e))n=new URL(e);else if((t=this.config)===null||t===void 0?void 0:t.strict)if(r)if(this.isFullURL(r))n=this.joinPathsToBaseURL(e,r);else throw new Error("Invalid baseURL format");else n=new URL(e,"http://temp"),o=!0;else{var a=typeof r=="string"&&r?r:"";if(a&&this.isFullURL(a))n=this.joinPathsToBaseURL(e,a);else if(a&&(a.startsWith("/")||a.startsWith("./")||a.startsWith("../")||a.includes("/"))){var i=a;i.startsWith("/")||(i="/"+i);var u=i;!u.endsWith("/")&&!e.startsWith("/")&&(u+="/"),u+=e.replace(/^\//,""),n=new URL(u,"http://temp"),o=!0}else a?(n=new URL(e,"http://temp"),o=!0):(n=new URL(e,"http://temp"),o=!0)}return{urlObject:n,shouldReturnPathOnly:o}}},{key:"joinPathsToBaseURL",value:function e(e,r){var t=new URL(r),n=e,o="",a="",i=e.indexOf("#");i!==-1&&(o=e.substring(i),n=e.substring(0,i));var u=n.indexOf("?");u!==-1&&(a=n.substring(u),n=n.substring(0,u));var s=n.startsWith("/")?n.substring(1):n,c=t.pathname;return c.endsWith("/")||(c+="/"),c+=s,t.pathname=c,t.search+=a,t.hash=o||t.hash,t}},{key:"buildUrl",value:function e(e){var r=e.url,t=r===void 0?"":r,n=e.baseURL,o=n===void 0?"":n,a=e.params;if(!t)return"";var i=this.createUrlObject(t,o),u=i.urlObject,s=i.shouldReturnPathOnly;return a&&Object.keys(a).length>0&&Object.entries(a).forEach(function(e){var r=A(e,2),t=r[0],n=r[1];n!=null&&u.searchParams.set(t,String(n))}),s?u.pathname+u.search+u.hash:u.toString()}}]);return e}();var sl=function(){function e(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};i(this,e);this.pluginName="RequestPlugin";var t=r.urlBuilder,n=r.headerInjector,o=j(r,["urlBuilder","headerInjector"]);this.config=o,this.urlBuilder=t!==null&&t!==void 0?t:new sc,this.headerInjector=n!==null&&n!==void 0?n:new ss(o)}c(e,[{key:"onBefore",value:function e(e){var r=this.mergeConfig(e.parameters),t=this.processRequestData(r),n=this.buildUrl(r),o=this.injectHeaders(r);e.setParameters(w(m({},e.parameters,r),{data:t,url:n,headers:o}))}},{key:"mergeConfig",value:function e(e){var r=m({},this.config,e);return!("data"in e)&&"data"in this.config&&(r.data=this.config.data),r}},{key:"buildUrl",value:function e(e){var r=this.urlBuilder.buildUrl(e);var t,n;if(!r||r.trim()==="")throw new Error("RequestPlugin: Invalid URL. URL cannot be empty. baseURL: ".concat((t=e.baseURL)!==null&&t!==void 0?t:"undefined",", url: ").concat((n=e.url)!==null&&n!==void 0?n:"undefined"));return r}},{key:"injectHeaders",value:function e(e){return this.headerInjector.inject(e)}},{key:"processRequestData",value:function e(e){var r;var t=e.requestDataSerializer,n=e.data,o=e.headers,a=e.responseType,i=e.method,u=i===null||i===void 0?void 0:(r=i.toUpperCase())===null||r===void 0?void 0:r.trim();return u==="GET"||u==="HEAD"||u==="OPTIONS"?null:n==null?n:typeof t=="function"?t(n,w(m({},e),{requestDataSerializer:void 0})):a===u9||rN(o,u8,u7,{keyCaseSensitive:!1,valueCaseSensitive:!1})?JSON.stringify(n):n}}]);return e}();var sf=function(){function e(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};i(this,e);this.pluginName="ResponsePlugin";this.defaultParsers={json:function(e){return e.json()},text:function(e){return e.text()},blob:function(e){return e.blob()},arraybuffer:function(e){return e.arrayBuffer()},formdata:function(e){return e.formData()},stream:function(e){var r;return(r=e.body)!==null&&r!==void 0?r:null},document:function(e){return e.text()}};this.config=r,r.responseParsers===!1?this.parsers={}:this.parsers=m({},this.defaultParsers,r.responseParsers)}c(e,[{key:"enabled",value:function e(e,r){return this.config.responseParsers!==!1}},{key:"onSuccess",value:function e(e){var r=this;return a(function(){var t,n,o,a;return I(this,function(i){switch(i.label){case 0:t=e.returnValue,n=e.parameters;if(!h(t,Response))return[3,2];return[4,r.processResponse(t,n)];case 1:o=i.sent();e.setReturnValue(o);return[2];case 2:if(!rH(t))return[3,4];return[4,r.processAdapterResponse(t,n)];case 3:a=i.sent();e.setReturnValue(a);return[2];case 4:return[2]}})})()}},{key:"validateResponseStatus",value:function e(e){if(!e.ok)throw new uB(st,e)}},{key:"processResponse",value:function e(e,r){var t=this;return a(function(){var n;return I(this,function(o){switch(o.label){case 0:t.validateResponseStatus(e);return[4,t.parseResponseData(e,r.responseType)];case 1:n=o.sent();return[2,t.buildAdapterResponse(n,e,r)]}})})()}},{key:"processAdapterResponse",value:function e(e,r){var t=this;return a(function(){var n;return I(this,function(o){switch(o.label){case 0:if(!h(e.data,Response))return[2,e];return[4,t.parseResponseData(e.data,r.responseType)];case 1:n=o.sent();return[2,w(m({},e),{data:n})]}})})()}},{key:"parseResponseData",value:function e(e,r){var t=this;return a(function(){var n;return I(this,function(o){switch(o.label){case 0:if(!tg(t.config.responseDataParser))return[3,2];return[4,t.config.responseDataParser(e,r)];case 1:n=o.sent();return[3,4];case 2:return[4,t.defaultParseResponseData(e,r)];case 3:n=o.sent();o.label=4;case 4:return[2,n]}})})()}},{key:"defaultParseResponseData",value:function e(e,r){var t=this;return a(function(){var n,o,a,i,u,s;return I(this,function(c){switch(c.label){case 0:a=(o=r===null||r===void 0?void 0:(n=r.toLowerCase())===null||n===void 0?void 0:n.trim())!==null&&o!==void 0?o:u9,i=t.parsers[a];if(!(i===!1))return[3,1];u=e;return[3,6];case 1:if(!tg(i))return[3,3];return[4,i(e)];case 2:s=c.sent();return[3,5];case 3:return[4,t.fallbackParseByContentType(e,a)];case 4:s=c.sent();c.label=5;case 5:u=s;c.label=6;case 6:return[2,u]}})})()}},{key:"inferParserFromContentType",value:function e(e){var r=e.toLowerCase();if(r.includes("application/json")){var t=this.parsers.json;if(tg(t))return t}if(r.includes("text/")||r.includes("application/xml")||r.includes("application/xhtml")){var n=this.parsers.text;if(tg(n))return n}}},{key:"getFallbackParsers",value:function e(){var e=[],r=this.parsers.json;tg(r)&&e.push(r);var t=this.parsers.text;return tg(t)&&e.push(t),e}},{key:"fallbackParseByContentType",value:function e(e,r){var t=this;return a(function(){var r,n,o,a,i,u,s,c,l,f,v,h;return I(this,function(p){switch(p.label){case 0:r=e.headers.get("content-type");if(!r)return[3,4];n=t.inferParserFromContentType(r);if(!n)return[3,4];p.label=1;case 1:p.trys.push([1,3,,4]);return[4,n(e)];case 2:return[2,p.sent()];case 3:o=p.sent();return[3,4];case 4:a=t.getFallbackParsers();i=true,u=false,s=undefined;p.label=5;case 5:p.trys.push([5,12,13,14]);c=a[Symbol.iterator]();p.label=6;case 6:if(!!(i=(l=c.next()).done))return[3,11];f=l.value;p.label=7;case 7:p.trys.push([7,9,,10]);return[4,f(e)];case 8:return[2,p.sent()];case 9:v=p.sent();return[3,10];case 10:i=true;return[3,6];case 11:return[3,14];case 12:h=p.sent();u=true;s=h;return[3,14];case 13:try{if(!i&&c.return!=null){c.return()}}finally{if(u){throw s}}return[7];case 14:return[2,e]}})})()}},{key:"extractHeaders",value:function e(e){var r={};return e.headers.forEach(function(e,t){r[t]=e}),r}},{key:"buildAdapterResponse",value:function e(e,r,t){return{data:e,status:r.status,statusText:r.statusText,headers:this.extractHeaders(r),config:t,response:r}}}]);return e}();var sv;sv=Symbol.toStringTag;var sh=function(){function e(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};i(this,e);this.options=r;this[sv]="JSONSerializer"}c(e,[{key:"createReplacer",value:function e(e){return Array.isArray(e)?e:e===null?function(e,r){return typeof r=="string"?r.replace(/\r\n/g,"\n"):r}:typeof e=="function"?function(r,t){var n=typeof t=="string"?t.replace(/\r\n/g,"\n"):t;return e.call(this,r,n)}:function(e,r){return typeof r=="string"?r.replace(/\r\n/g,"\n"):r}}},{key:"stringify",value:function e(e,r,t){try{var n=this.createReplacer(r);return Array.isArray(n)?JSON.stringify(e,n,t):JSON.stringify(e,n,t!==null&&t!==void 0?t:this.options.pretty?this.options.indent||2:void 0)}catch(e){throw h(e,TypeError)&&e.message.includes("circular")?new TypeError("Cannot stringify data with circular references"):e}}},{key:"parse",value:function e(e,r){return JSON.parse(e,r)}},{key:"serialize",value:function e(e){return this.stringify(e,this.options.replacer||null,this.options.pretty?this.options.indent||2:void 0)}},{key:"deserialize",value:function e(e,r){try{return this.parse(e)}catch(e){return r}}},{key:"serializeArray",value:function e(e){return"["+e.map(function(e){return JSON.stringify(e)}).join(",")+"]"}}]);return e}();var sp=function(){function e(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};i(this,e);this.options=r}c(e,[{key:"isNodeEnvironment",value:function e(){return(typeof process==="undefined"?"undefined":S(process))<"u"&&process.versions&&!!process.versions.node}},{key:"isValidBase64",value:function e(e){try{if(!/^[A-Za-z0-9+/\-_]*={0,2}$/.test(e))return!1;var r=this.options.urlSafe?this.makeUrlUnsafe(e):e;return r.length%4!==0?!1:(this.isNodeEnvironment()?Buffer.from(r,"base64").toString("utf8"):atob(r),!0)}catch(e){return!1}}},{key:"serialize",value:function e(e){try{var r;if(this.isNodeEnvironment())r=Buffer.from(e,"utf8").toString("base64");else{var t=new TextEncoder().encode(e),n=Array.from(t,function(e){return String.fromCharCode(e)}).join("");r=btoa(n)}return this.options.urlSafe?this.makeUrlSafe(r):r}catch(e){return""}}},{key:"deserialize",value:function e(e,r){try{if(typeof e!="string")return r!==null&&r!==void 0?r:"";if(e.length===0)return"";if(!this.isValidBase64(e))return r!==null&&r!==void 0?r:"";var t=e;if(this.options.urlSafe&&(t=this.makeUrlUnsafe(e)),this.isNodeEnvironment())return Buffer.from(t,"base64").toString("utf8");{var n=atob(t),o=new Uint8Array(n.length);for(var a=0;a<n.length;a++)o[a]=n.charCodeAt(a);return new TextDecoder().decode(o)}}catch(e){return r!==null&&r!==void 0?r:""}}},{key:"makeUrlSafe",value:function e(e){return e.replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}},{key:"makeUrlUnsafe",value:function e(e){for(e=e.replace(/-/g,"+").replace(/_/g,"/");e.length%4;)e+="=";return e}}]);return e}();var sd=function(){function e(r){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};i(this,e);this.key=r;this.options=t;try{var n;var o=(n=t.storage)===null||n===void 0?void 0:n.getItem(r);this.value=o!==null&&o!==void 0?o:null}catch(e){this.value=null}}c(e,[{key:"mergeOptions",value:function e(e){return m({},this.options,e)}},{key:"getKey",value:function e(){return this.key}},{key:"getValue",value:function e(){return this.value}},{key:"get",value:function e(e){var r=this.mergeOptions(e),t=r.storage,n=j(r,["storage"]);if(this.value!=null)return this.value;if(t){var o=t.getItem(this.key,void 0,n);return o==null?(this.remove(),null):(this.value=o,o)}return this.value}},{key:"set",value:function e(e,r){var t=this.mergeOptions(r),n=t.storage,o=j(t,["storage"]);this.value=e,n&&n.setItem(this.key,e,o)}},{key:"remove",value:function e(e){var r=this.mergeOptions(e),t=r.storage,n=j(r,["storage"]);this.value=null,t===null||t===void 0?void 0:t.removeItem(this.key,n)}}]);return e}();var sy=function(){function e(r){i(this,e);this.serializer=r;this.store=new Map}c(e,[{key:"length",get:function e(){return this.store.size}},{key:"setItem",value:function e(e,r,t){var n={key:e,value:r!==null&&r!==void 0?r:null};typeof(t===null||t===void 0?void 0:t.expires)=="number"&&t.expires>0&&(n.expires=t.expires);var o=this.serializer?this.serializer.serialize(n):n;return this.store.set(e,o),o}},{key:"getItem",value:function e(e,r){var t=this.store.get(e),n=r!==null&&r!==void 0?r:null;if(!t)return n;var o=this.serializer?this.serializer.deserialize(t,n):t;return this.getRawValue(o,n)}},{key:"getRawValue",value:function e(e,r){var t,n;return this.isStorageValue(e)?this.isExpired(e)?(this.removeItem(e.key),r!==null&&r!==void 0?r:null):(t=e===null||e===void 0?void 0:e.value)!==null&&t!==void 0?t:r:(n=e!==null&&e!==void 0?e:r)!==null&&n!==void 0?n:null}},{key:"removeItem",value:function e(e){this.store.delete(e)}},{key:"clear",value:function e(){this.store.clear()}},{key:"isExpired",value:function e(e){return typeof e.expires=="number"&&e.expires<Date.now()&&e.expires>0}},{key:"isStorageValue",value:function e(e){return(typeof e==="undefined"?"undefined":S(e))=="object"&&e!==null&&"key"in e&&"value"in e}},{key:"getSerializer",value:function e(){return this.serializer}}]);return e}();var sb={setItem:{serialize:function(r,t){return(e=r).serialize.apply(e,R(t))},encrypt:function(e,t){return(r=e).encrypt.apply(r,R(t))},storage:function(e,r){return(t=e).setItem.apply(t,R(r))}},getItem:{serialize:function(e,r){return(n=e).deserialize.apply(n,R(r))},encrypt:function(e,r){return(o=e).decrypt.apply(o,R(r))},storage:function(e,r){return(u=e).getItem.apply(u,R(r))}}},sg=function(){function e(r){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];i(this,e);this.storage=r;this.pipes=(Array.isArray(t)?t:[t]).map(function(e){return rz(e)}).filter(function(e){return e!=null})}c(e,[{key:"length",get:function e(){return this.storage.length}},{key:"setItem",value:function e(e,r,t){var n=r;var o=true,a=false,i=undefined;try{for(var u=this.pipes[Symbol.iterator](),s;!(o=(s=u.next()).done);o=true){var c=s.value;var l=c.type,f=c.pipe;if(l==="storage")f.setItem(e,n,t);else{var v=sb.setItem[l](f,[n]);v!=null&&(n=v)}}}catch(e){a=true;i=e}finally{try{if(!o&&u.return!=null){u.return()}}finally{if(a){throw i}}}this.storage.setItem(e,n,t)}},{key:"getItem",value:function e(e,r,t){var n=this.storage.getItem(e,r,t);if(n==null){var o=R(this.pipes).reverse();var a=true,i=false,u=undefined;try{for(var s=o[Symbol.iterator](),c;!(a=(c=s.next()).done);a=true){var l=c.value;var f=l.type,v=l.pipe;if(f!=="storage")continue;var h=sb.getItem[f](v,[e,n,t]);if(h!=null){n=h;break}}}catch(e){i=true;u=e}finally{try{if(!a&&s.return!=null){s.return()}}finally{if(i){throw u}}}}if(n==null)return r!==null&&r!==void 0?r:null;var p=R(this.pipes).reverse();var d=true,y=false,b=undefined;try{for(var g=p[Symbol.iterator](),m;!(d=(m=g.next()).done);d=true){var k=m.value;var w=k.type,j=k.pipe;w!=="storage"&&(n=sb.getItem[w](j,[n]))}}catch(e){y=true;b=e}finally{try{if(!d&&g.return!=null){g.return()}}finally{if(y){throw b}}}return n!==null&&this.storage.getRawValue&&(n=this.storage.getRawValue(n,t)),n!==null&&n!==void 0?n:null}},{key:"removeItem",value:function e(e,r){this.storage.removeItem(e,r),this.pipes.filter(function(e){return e.type==="storage"}).forEach(function(t){t.pipe.removeItem(e,r)})}},{key:"clear",value:function e(){this.storage.clear(),this.pipes.filter(function(e){return e.type==="storage"}).forEach(function(e){e.pipe.clear()})}}]);return e}();return rM(rW)}();/*! Bundled license information:
|
|
2
2
|
|
|
3
3
|
lodash-es/lodash.js:
|
|
4
4
|
(**
|
package/dist/index.js
CHANGED
|
@@ -4560,7 +4560,11 @@ var SimpleUrlBuilder = /*#__PURE__*/ function() {
|
|
|
4560
4560
|
var _this_config;
|
|
4561
4561
|
if ((_this_config = this.config) === null || _this_config === void 0 ? void 0 : _this_config.strict) {
|
|
4562
4562
|
if (baseURL) {
|
|
4563
|
-
|
|
4563
|
+
if (this.isFullURL(baseURL)) {
|
|
4564
|
+
urlObject = this.joinPathsToBaseURL(url, baseURL);
|
|
4565
|
+
} else {
|
|
4566
|
+
throw new Error("Invalid baseURL format");
|
|
4567
|
+
}
|
|
4564
4568
|
} else {
|
|
4565
4569
|
urlObject = new URL(url, "http://temp");
|
|
4566
4570
|
shouldReturnPathOnly = true;
|
|
@@ -4568,9 +4572,24 @@ var SimpleUrlBuilder = /*#__PURE__*/ function() {
|
|
|
4568
4572
|
} else {
|
|
4569
4573
|
var base = typeof baseURL === "string" && baseURL ? baseURL : "";
|
|
4570
4574
|
if (base && this.isFullURL(base)) {
|
|
4571
|
-
urlObject =
|
|
4575
|
+
urlObject = this.joinPathsToBaseURL(url, base);
|
|
4576
|
+
} else if (base && (base.startsWith("/") || base.startsWith("./") || base.startsWith("../") || base.includes("/"))) {
|
|
4577
|
+
var basePath = base;
|
|
4578
|
+
if (!basePath.startsWith("/")) {
|
|
4579
|
+
basePath = "/" + basePath;
|
|
4580
|
+
}
|
|
4581
|
+
var combinedPath = basePath;
|
|
4582
|
+
if (!combinedPath.endsWith("/") && !url.startsWith("/")) {
|
|
4583
|
+
combinedPath += "/";
|
|
4584
|
+
}
|
|
4585
|
+
combinedPath += url.replace(/^\//, "");
|
|
4586
|
+
urlObject = new URL(combinedPath, "http://temp");
|
|
4587
|
+
shouldReturnPathOnly = true;
|
|
4588
|
+
} else if (base) {
|
|
4589
|
+
urlObject = new URL(url, "http://temp");
|
|
4590
|
+
shouldReturnPathOnly = true;
|
|
4572
4591
|
} else {
|
|
4573
|
-
urlObject = new URL(url, "http://temp"
|
|
4592
|
+
urlObject = new URL(url, "http://temp");
|
|
4574
4593
|
shouldReturnPathOnly = true;
|
|
4575
4594
|
}
|
|
4576
4595
|
}
|
|
@@ -4583,6 +4602,44 @@ var SimpleUrlBuilder = /*#__PURE__*/ function() {
|
|
|
4583
4602
|
},
|
|
4584
4603
|
{
|
|
4585
4604
|
/**
|
|
4605
|
+
* Joins relative URL path to a base URL that has path segments
|
|
4606
|
+
*
|
|
4607
|
+
* This method addresses the issue where using new URL('/path', 'https://domain/base/path')
|
|
4608
|
+
* would replace the entire path of the base URL instead of appending to it.
|
|
4609
|
+
*
|
|
4610
|
+
* @param relativePath - The relative path to append
|
|
4611
|
+
* @param baseURL - The base URL to append to
|
|
4612
|
+
* @returns URL object with properly joined paths
|
|
4613
|
+
*/ key: "joinPathsToBaseURL",
|
|
4614
|
+
value: function joinPathsToBaseURL(relativePath, baseURL) {
|
|
4615
|
+
var baseURLObject = new URL(baseURL);
|
|
4616
|
+
var cleanPath = relativePath;
|
|
4617
|
+
var hash = "";
|
|
4618
|
+
var query = "";
|
|
4619
|
+
var hashIndex = relativePath.indexOf("#");
|
|
4620
|
+
if (hashIndex !== -1) {
|
|
4621
|
+
hash = relativePath.substring(hashIndex);
|
|
4622
|
+
cleanPath = relativePath.substring(0, hashIndex);
|
|
4623
|
+
}
|
|
4624
|
+
var queryIndex = cleanPath.indexOf("?");
|
|
4625
|
+
if (queryIndex !== -1) {
|
|
4626
|
+
query = cleanPath.substring(queryIndex);
|
|
4627
|
+
cleanPath = cleanPath.substring(0, queryIndex);
|
|
4628
|
+
}
|
|
4629
|
+
var adjustedPath = cleanPath.startsWith("/") ? cleanPath.substring(1) : cleanPath;
|
|
4630
|
+
var newPathname = baseURLObject.pathname;
|
|
4631
|
+
if (!newPathname.endsWith("/")) {
|
|
4632
|
+
newPathname += "/";
|
|
4633
|
+
}
|
|
4634
|
+
newPathname += adjustedPath;
|
|
4635
|
+
baseURLObject.pathname = newPathname;
|
|
4636
|
+
baseURLObject.search += query;
|
|
4637
|
+
baseURLObject.hash = hash || baseURLObject.hash;
|
|
4638
|
+
return baseURLObject;
|
|
4639
|
+
}
|
|
4640
|
+
},
|
|
4641
|
+
{
|
|
4642
|
+
/**
|
|
4586
4643
|
* Builds complete URL from request configuration
|
|
4587
4644
|
*
|
|
4588
4645
|
* Constructs a URL string by combining the request URL, base URL, and query parameters.
|
|
@@ -4595,6 +4652,11 @@ var SimpleUrlBuilder = /*#__PURE__*/ function() {
|
|
|
4595
4652
|
* - `null` and `undefined` parameter values are filtered out
|
|
4596
4653
|
* - Hash fragments are preserved in the final URL
|
|
4597
4654
|
*
|
|
4655
|
+
* **Bug Fix Note**: This implementation correctly handles baseURLs that contain
|
|
4656
|
+
* path segments. Previous versions incorrectly lost the path portion when using
|
|
4657
|
+
* `new URL(relativePath, baseURLWithPath)`. Now the relative path is properly
|
|
4658
|
+
* appended to the base URL's path instead of replacing it.
|
|
4659
|
+
*
|
|
4598
4660
|
* @override
|
|
4599
4661
|
* @param config - Request configuration containing URL components
|
|
4600
4662
|
* @param {string} [config.url=''] - The URL path (absolute or relative)
|
|
@@ -4613,13 +4675,15 @@ var SimpleUrlBuilder = /*#__PURE__*/ function() {
|
|
|
4613
4675
|
* // Returns: 'https://api.example.com/users?role=admin&page=1'
|
|
4614
4676
|
* ```
|
|
4615
4677
|
*
|
|
4616
|
-
* @example
|
|
4678
|
+
* @example Complex baseURL with path segments (Bug Fix Example)
|
|
4617
4679
|
* ```typescript
|
|
4618
4680
|
* const url = urlBuilder.buildUrl({
|
|
4619
|
-
* url: '/api/
|
|
4620
|
-
*
|
|
4681
|
+
* url: '/api/token.json',
|
|
4682
|
+
* baseURL: 'https://brus-dev.api.brain.ai/v1.0/invoke/brain-user-system/method',
|
|
4683
|
+
* params: { grant_type: 'authorization_code' }
|
|
4621
4684
|
* });
|
|
4622
|
-
* // Returns: '/api/
|
|
4685
|
+
* // Returns: 'https://brus-dev.api.brain.ai/v1.0/invoke/brain-user-system/method/api/token.json?grant_type=authorization_code'
|
|
4686
|
+
* // ✅ Correctly preserves the baseURL's path segment: '/v1.0/invoke/brain-user-system/method'
|
|
4623
4687
|
* ```
|
|
4624
4688
|
*
|
|
4625
4689
|
* @example Absolute URL ignores baseURL
|