mazey 3.7.3 → 3.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +47 -0
- package/lib/index.cjs.js +48 -24
- package/lib/index.d.ts +37 -19
- package/lib/index.d.ts.map +1 -1
- package/lib/index.esm.js +48 -25
- package/lib/mazey.min.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -63,7 +63,9 @@ There ara some examples maintained by hand below. For more information, please c
|
|
|
63
63
|
- Generated with ❤️
|
|
64
64
|
- [Load Resource](#load-resource)
|
|
65
65
|
* [loadScript](#loadscript)
|
|
66
|
+
* [loadScriptIfUndefined](#loadscriptifundefined)
|
|
66
67
|
* [loadCSS](#loadcss)
|
|
68
|
+
* [loadImage](#loadimage)
|
|
67
69
|
* [windowLoaded](#windowloaded)
|
|
68
70
|
- [Util](#util)
|
|
69
71
|
* [isNumber](#isnumber)
|
|
@@ -140,6 +142,20 @@ loadScript(
|
|
|
140
142
|
@returns {Promise<boolean>} -- true 成功
|
|
141
143
|
@category Load Resource -->
|
|
142
144
|
|
|
145
|
+
#### loadScriptIfUndefined
|
|
146
|
+
|
|
147
|
+
Load a script from the given URL if it (`window['attribute']`) has not already been loaded.
|
|
148
|
+
|
|
149
|
+
```js
|
|
150
|
+
loadScriptIfUndefined('jQuery', 'https://example.com/lib/jquery.min.js')
|
|
151
|
+
.then(() => {
|
|
152
|
+
console.log('jQuery is loaded.');
|
|
153
|
+
})
|
|
154
|
+
.catch(err => {
|
|
155
|
+
console.log('Failed to load jQuery.', err);
|
|
156
|
+
});
|
|
157
|
+
```
|
|
158
|
+
|
|
143
159
|
#### loadCSS
|
|
144
160
|
|
|
145
161
|
Load a CSS file from the server.
|
|
@@ -170,6 +186,24 @@ loadCSS(
|
|
|
170
186
|
@returns {Promise<boolean>} true -- 加载成功
|
|
171
187
|
@category Load Resource -->
|
|
172
188
|
|
|
189
|
+
#### loadImage
|
|
190
|
+
|
|
191
|
+
Load an image from the given URL.
|
|
192
|
+
|
|
193
|
+
The target image will be loaded in the background, and the Promise status will change after the image is loaded. If the image fails to load, the Promise status will change to `reject` with the error object. If the image is loaded successfully, the Promise status will change to `resolve` with the image object. This method can be used to preload images and cache them in the browser. It can also be used to implement lazy loading of images.
|
|
194
|
+
|
|
195
|
+
Note that this method will not add the image to the DOM.
|
|
196
|
+
|
|
197
|
+
```js
|
|
198
|
+
loadImage('https://example.com/example.png')
|
|
199
|
+
.then((img) => {
|
|
200
|
+
console.log(img);
|
|
201
|
+
})
|
|
202
|
+
.catch((err) => {
|
|
203
|
+
console.log(err);
|
|
204
|
+
});
|
|
205
|
+
```
|
|
206
|
+
|
|
173
207
|
#### windowLoaded
|
|
174
208
|
|
|
175
209
|
Check whether the page is loaded successfully (Keepe the compatibility in case that browser's `load` event has been triggered).
|
|
@@ -884,6 +918,19 @@ npm run docs
|
|
|
884
918
|
npm run test
|
|
885
919
|
```
|
|
886
920
|
|
|
921
|
+
Returns:
|
|
922
|
+
|
|
923
|
+
| Values | Description | Type |
|
|
924
|
+
| :-------- | :--------------------------------------- | :------ |
|
|
925
|
+
| ok | The operation was successful. | string |
|
|
926
|
+
| loaded | Some assets have been loaded. | string |
|
|
927
|
+
| fail | An error occurred. | string |
|
|
928
|
+
| defined | The value is defined. | string |
|
|
929
|
+
| undefined | The value is undefined. | string |
|
|
930
|
+
| timeout | The operation timed out. | string |
|
|
931
|
+
| true | The value is true. | boolean |
|
|
932
|
+
| false | The value is false. | boolean |
|
|
933
|
+
|
|
887
934
|
## License
|
|
888
935
|
|
|
889
936
|
This software is released under the terms of the [MIT license](https://github.com/mazeyqian/mazey/blob/master/LICENSE).
|
package/lib/index.cjs.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* mazey v3.
|
|
2
|
+
* mazey v3.8.0
|
|
3
3
|
* (c) 2018-2023 Mazey Chu
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -5250,7 +5250,7 @@ function getLocalStorage(key) {
|
|
|
5250
5250
|
*
|
|
5251
5251
|
* @param {string} url -- css资源路径
|
|
5252
5252
|
* @param {string} options.id -- link标签id
|
|
5253
|
-
* @returns {Promise<
|
|
5253
|
+
* @returns {Promise<string>} true -- 加载成功
|
|
5254
5254
|
* @category Load Resource
|
|
5255
5255
|
*/
|
|
5256
5256
|
function loadCSS(url, options) {
|
|
@@ -5268,7 +5268,7 @@ function loadCSS(url, options) {
|
|
|
5268
5268
|
// const tempCB = (typeof callback === 'function' ? callback : function () { });
|
|
5269
5269
|
var callback = function callback() {
|
|
5270
5270
|
// doFn(success, true);
|
|
5271
|
-
success(
|
|
5271
|
+
success('loaded');
|
|
5272
5272
|
};
|
|
5273
5273
|
var node = document.createElement('link');
|
|
5274
5274
|
var supportOnload = ('onload' in node);
|
|
@@ -5391,7 +5391,7 @@ function loadCSS(url, options) {
|
|
|
5391
5391
|
* @param {function} options.callback -- 加载后回调函数
|
|
5392
5392
|
* @param {number} options.timeout -- 超时时长
|
|
5393
5393
|
* @param {boolean} options.isDefer -- 是否添加 defer 标签
|
|
5394
|
-
* @returns {Promise<
|
|
5394
|
+
* @returns {Promise<string>} -- true 成功
|
|
5395
5395
|
* @category Load Resource
|
|
5396
5396
|
*/
|
|
5397
5397
|
function loadScript(url, options) {
|
|
@@ -5435,14 +5435,14 @@ function loadScript(url, options) {
|
|
|
5435
5435
|
if (script.readyState === 'loaded' || script.readyState === 'complete') {
|
|
5436
5436
|
script.onreadystatechange = null;
|
|
5437
5437
|
doFn(callback);
|
|
5438
|
-
doFn(success,
|
|
5438
|
+
doFn(success, 'loaded');
|
|
5439
5439
|
}
|
|
5440
5440
|
};
|
|
5441
5441
|
} else {
|
|
5442
5442
|
// Others
|
|
5443
5443
|
script.onload = function () {
|
|
5444
5444
|
doFn(callback);
|
|
5445
|
-
doFn(success,
|
|
5445
|
+
doFn(success, 'loaded');
|
|
5446
5446
|
};
|
|
5447
5447
|
}
|
|
5448
5448
|
script.src = url;
|
|
@@ -5451,7 +5451,7 @@ function loadScript(url, options) {
|
|
|
5451
5451
|
var _a;
|
|
5452
5452
|
_a = [resolve, reject], success = _a[0], fail = _a[1];
|
|
5453
5453
|
if (timeout) {
|
|
5454
|
-
setTimeout(fail.bind(null,
|
|
5454
|
+
setTimeout(fail.bind(null, 'timeout'), timeout);
|
|
5455
5455
|
}
|
|
5456
5456
|
});
|
|
5457
5457
|
}
|
|
@@ -6578,7 +6578,7 @@ function isNonEmptyArray(arr) {
|
|
|
6578
6578
|
function isValidData(data, attributes, validValue) {
|
|
6579
6579
|
var ret = false;
|
|
6580
6580
|
var foundRet = attributes.reduce(function (foundValue, curr) {
|
|
6581
|
-
if (foundValue[curr]) {
|
|
6581
|
+
if (typeof foundValue[curr] !== 'undefined') {
|
|
6582
6582
|
foundValue = foundValue[curr];
|
|
6583
6583
|
} else {
|
|
6584
6584
|
return Object.create(null);
|
|
@@ -6992,27 +6992,25 @@ function genStyleString(className, styleArray) {
|
|
|
6992
6992
|
return ".".concat(className, "{").concat(style, "}");
|
|
6993
6993
|
}
|
|
6994
6994
|
/**
|
|
6995
|
-
* Load
|
|
6996
|
-
*
|
|
6997
|
-
* If the image fails to load, the Promise status will change to `reject
|
|
6998
|
-
*
|
|
6999
|
-
*
|
|
7000
|
-
* If the image fails to load, the Promise will return the error object.
|
|
7001
|
-
* The method will help Web to preload the image. And the image will be cached by the browser.
|
|
7002
|
-
* We can use it to implement the lazy loading of images.
|
|
7003
|
-
* The method will not add the image to the DOM.
|
|
6995
|
+
* Load an image from the given URL.
|
|
6996
|
+
*
|
|
6997
|
+
* The target image will be loaded in the background, and the Promise status will change after the image is loaded. If the image fails to load, the Promise status will change to `reject` with the error object. If the image is loaded successfully, the Promise status will change to `resolve` with the image object. This method can be used to preload images and cache them in the browser. It can also be used to implement lazy loading of images.
|
|
6998
|
+
*
|
|
6999
|
+
* Note that this method will not add the image to the DOM.
|
|
7004
7000
|
*
|
|
7005
7001
|
* @example
|
|
7006
7002
|
* ```js
|
|
7007
|
-
* loadImage('https://example.com/example.png')
|
|
7008
|
-
*
|
|
7009
|
-
*
|
|
7010
|
-
*
|
|
7011
|
-
*
|
|
7003
|
+
* loadImage('https://example.com/example.png')
|
|
7004
|
+
* .then((img) => {
|
|
7005
|
+
* console.log(img);
|
|
7006
|
+
* })
|
|
7007
|
+
* .catch((err) => {
|
|
7008
|
+
* console.log(err);
|
|
7009
|
+
* });
|
|
7012
7010
|
* ```
|
|
7013
7011
|
*
|
|
7014
|
-
* @param {string} url - The image
|
|
7015
|
-
* @returns {Promise}
|
|
7012
|
+
* @param {string} url - The URL of the image to load.
|
|
7013
|
+
* @returns {Promise} A Promise that resolves with the loaded image or rejects with an error.
|
|
7016
7014
|
* @category Load Resource
|
|
7017
7015
|
*/
|
|
7018
7016
|
function loadImage(url) {
|
|
@@ -7096,6 +7094,31 @@ function repeatUntilConditionMet(callback, options, condition) {
|
|
|
7096
7094
|
}
|
|
7097
7095
|
clearAndInvokeNext();
|
|
7098
7096
|
}
|
|
7097
|
+
/**
|
|
7098
|
+
* Load a script from the given URL if it (`window['attribute']`) has not already been loaded.
|
|
7099
|
+
*
|
|
7100
|
+
* @example
|
|
7101
|
+
* ```js
|
|
7102
|
+
* loadScriptIfUndefined('jQuery', 'https://example.com/lib/jquery.min.js')
|
|
7103
|
+
* .then(() => {
|
|
7104
|
+
* console.log('jQuery is loaded.');
|
|
7105
|
+
* })
|
|
7106
|
+
* .catch(err => {
|
|
7107
|
+
* console.log('Failed to load jQuery.', err);
|
|
7108
|
+
* });
|
|
7109
|
+
* ```
|
|
7110
|
+
*
|
|
7111
|
+
* @param {string} windowAttribute - The name of the window attribute to check (e.g. `jQuery`, `axios`, etc.).
|
|
7112
|
+
* @param {string} url - The URL of the script to load.
|
|
7113
|
+
* @returns {Promise} A Promise that resolves when the script has been loaded.
|
|
7114
|
+
* @category Load Resource
|
|
7115
|
+
*/
|
|
7116
|
+
function loadScriptIfUndefined(windowAttribute, url) {
|
|
7117
|
+
if (window[windowAttribute]) {
|
|
7118
|
+
return Promise.resolve('defined');
|
|
7119
|
+
}
|
|
7120
|
+
return loadScript(url);
|
|
7121
|
+
}
|
|
7099
7122
|
|
|
7100
7123
|
exports.addClass = addClass;
|
|
7101
7124
|
exports.addEvent = addEvent;
|
|
@@ -7151,6 +7174,7 @@ exports.isValidUrl = isValidUrl;
|
|
|
7151
7174
|
exports.loadCSS = loadCSS;
|
|
7152
7175
|
exports.loadImage = loadImage;
|
|
7153
7176
|
exports.loadScript = loadScript;
|
|
7177
|
+
exports.loadScriptIfUndefined = loadScriptIfUndefined;
|
|
7154
7178
|
exports.mNow = mNow;
|
|
7155
7179
|
exports.mTrim = mTrim;
|
|
7156
7180
|
exports.newLine = newLine;
|
package/lib/index.d.ts
CHANGED
|
@@ -575,7 +575,7 @@ export declare function getLocalStorage<T>(key: string): T | null;
|
|
|
575
575
|
*
|
|
576
576
|
* @param {string} url -- css资源路径
|
|
577
577
|
* @param {string} options.id -- link标签id
|
|
578
|
-
* @returns {Promise<
|
|
578
|
+
* @returns {Promise<string>} true -- 加载成功
|
|
579
579
|
* @category Load Resource
|
|
580
580
|
*/
|
|
581
581
|
export declare function loadCSS(url: string, options?: {
|
|
@@ -612,7 +612,7 @@ export declare function loadCSS(url: string, options?: {
|
|
|
612
612
|
* @param {function} options.callback -- 加载后回调函数
|
|
613
613
|
* @param {number} options.timeout -- 超时时长
|
|
614
614
|
* @param {boolean} options.isDefer -- 是否添加 defer 标签
|
|
615
|
-
* @returns {Promise<
|
|
615
|
+
* @returns {Promise<string>} -- true 成功
|
|
616
616
|
* @category Load Resource
|
|
617
617
|
*/
|
|
618
618
|
export declare function loadScript(url: string, options?: {
|
|
@@ -620,7 +620,7 @@ export declare function loadScript(url: string, options?: {
|
|
|
620
620
|
callback?: (...params: any[]) => any;
|
|
621
621
|
timeout?: number;
|
|
622
622
|
isDefer?: boolean;
|
|
623
|
-
}):
|
|
623
|
+
}): LoadScriptReturns;
|
|
624
624
|
/**
|
|
625
625
|
* 获取时间戳
|
|
626
626
|
*
|
|
@@ -1197,27 +1197,25 @@ export declare function setImgWidHeiBySrc(): boolean;
|
|
|
1197
1197
|
*/
|
|
1198
1198
|
export declare function genStyleString(className: string, styleArray: Array<string>): string;
|
|
1199
1199
|
/**
|
|
1200
|
-
* Load
|
|
1201
|
-
*
|
|
1202
|
-
* If the image fails to load, the Promise status will change to `reject
|
|
1203
|
-
*
|
|
1204
|
-
*
|
|
1205
|
-
* If the image fails to load, the Promise will return the error object.
|
|
1206
|
-
* The method will help Web to preload the image. And the image will be cached by the browser.
|
|
1207
|
-
* We can use it to implement the lazy loading of images.
|
|
1208
|
-
* The method will not add the image to the DOM.
|
|
1200
|
+
* Load an image from the given URL.
|
|
1201
|
+
*
|
|
1202
|
+
* The target image will be loaded in the background, and the Promise status will change after the image is loaded. If the image fails to load, the Promise status will change to `reject` with the error object. If the image is loaded successfully, the Promise status will change to `resolve` with the image object. This method can be used to preload images and cache them in the browser. It can also be used to implement lazy loading of images.
|
|
1203
|
+
*
|
|
1204
|
+
* Note that this method will not add the image to the DOM.
|
|
1209
1205
|
*
|
|
1210
1206
|
* @example
|
|
1211
1207
|
* ```js
|
|
1212
|
-
* loadImage('https://example.com/example.png')
|
|
1213
|
-
*
|
|
1214
|
-
*
|
|
1215
|
-
*
|
|
1216
|
-
*
|
|
1208
|
+
* loadImage('https://example.com/example.png')
|
|
1209
|
+
* .then((img) => {
|
|
1210
|
+
* console.log(img);
|
|
1211
|
+
* })
|
|
1212
|
+
* .catch((err) => {
|
|
1213
|
+
* console.log(err);
|
|
1214
|
+
* });
|
|
1217
1215
|
* ```
|
|
1218
1216
|
*
|
|
1219
|
-
* @param {string} url - The image
|
|
1220
|
-
* @returns {Promise}
|
|
1217
|
+
* @param {string} url - The URL of the image to load.
|
|
1218
|
+
* @returns {Promise} A Promise that resolves with the loaded image or rejects with an error.
|
|
1221
1219
|
* @category Load Resource
|
|
1222
1220
|
*/
|
|
1223
1221
|
export declare function loadImage(url: string): Promise<HTMLImageElement>;
|
|
@@ -1240,5 +1238,25 @@ export declare function getCurrentVersion(): string;
|
|
|
1240
1238
|
* @category Util
|
|
1241
1239
|
*/
|
|
1242
1240
|
export declare function repeatUntilConditionMet<T extends (...args: any[]) => any>(callback: T, options?: RepeatUntilOptions, condition?: (result: ReturnType<T>) => boolean): void;
|
|
1241
|
+
/**
|
|
1242
|
+
* Load a script from the given URL if it (`window['attribute']`) has not already been loaded.
|
|
1243
|
+
*
|
|
1244
|
+
* @example
|
|
1245
|
+
* ```js
|
|
1246
|
+
* loadScriptIfUndefined('jQuery', 'https://example.com/lib/jquery.min.js')
|
|
1247
|
+
* .then(() => {
|
|
1248
|
+
* console.log('jQuery is loaded.');
|
|
1249
|
+
* })
|
|
1250
|
+
* .catch(err => {
|
|
1251
|
+
* console.log('Failed to load jQuery.', err);
|
|
1252
|
+
* });
|
|
1253
|
+
* ```
|
|
1254
|
+
*
|
|
1255
|
+
* @param {string} windowAttribute - The name of the window attribute to check (e.g. `jQuery`, `axios`, etc.).
|
|
1256
|
+
* @param {string} url - The URL of the script to load.
|
|
1257
|
+
* @returns {Promise} A Promise that resolves when the script has been loaded.
|
|
1258
|
+
* @category Load Resource
|
|
1259
|
+
*/
|
|
1260
|
+
export declare function loadScriptIfUndefined(windowAttribute: string, url: string): LoadScriptReturns;
|
|
1243
1261
|
export {};
|
|
1244
1262
|
//# sourceMappingURL=index.d.ts.map
|
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAqB5E;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,2BAA2B,CACzC,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,GACX,MAAM,CA8BR;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAQnD;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,EAAE,CAkBzE;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,gBAAgB,CAC9B,GAAG,EAAE,MAAM,EACX,KAAK,EAAE,MAAM,EACb,KAAK,EAAE,MAAM,GACZ,MAAM,CAQR;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAQvD;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,WAAe,GAAG,MAAM,CAOnE;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,mBAAmB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAG7D;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAE9D;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,mBAAmB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAG7D;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAE9D;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,KAAK,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAQzC;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAM3C;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,cAAc,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,CAE3C;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CASjD;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAEjD;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,cAAc,CAAC,CAAC,SAAI,GAAG,MAAM,CAM5C;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,SAAI,GAAG,MAAM,CAG/C;AAED;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,SAAI,GAAG,MAAM,CAQ/D;AAED;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,SAAI,GAAG,MAAM,CAExD;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,CAAC,EAAE,KAAK,GAAG,IAAI,CAS3C;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,QAAQ,CAAC,GAAG,EAAE,WAAW,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAS/D;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,QAAQ,CAAC,GAAG,EAAE,WAAW,EAAE,GAAG,EAAE,MAAM,GAAG,IAAI,CAS5D;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,WAAW,EAAE,GAAG,EAAE,MAAM,GAAG,IAAI,CAQ/D;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,QAAQ,CAAC,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,EACxD,IAAI,EAAE,CAAC,EACP,IAAI,EAAE,MAAM,EACZ,OAAO,GAAE;IAAE,OAAO,CAAC,EAAE,OAAO,CAAC;IAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;CAAO,GACtD,YAAY,CAAC,CAAC,CAAC,CAqCjB;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,QAAQ,CAAC,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,EACxD,IAAI,EAAE,CAAC,EACP,IAAI,EAAE,MAAM,EACZ,SAAS,CAAC,EAAE,OAAO,GAClB,YAAY,CAAC,CAAC,CAAC,CAkCjB;AAMD;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,mBAAmB,CACjC,KAAK,GAAE,MAAM,GAAG,MAAM,GAAG,IAAQ,EACjC,GAAG,GAAE,MAAM,GAAG,MAAM,GAAG,IAAQ,EAC/B,OAAO,GAAE;IAAE,IAAI,CAAC,EAAE,MAAM,CAAA;CAAsC,GAC7D,MAAM,GAAG,MAAM,CA6BjB;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,QAAQ,CAAC,GAAG,EAAE,OAAO,EAAE,OAAO,GAAE,eAAoB,GAAG,OAAO,CAuB7E;AAED;;;;;GAKG;AACH,wBAAgB,IAAI,CAClB,EAAE,EAAE,WAAW,EACf,GAAG,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC,GACjC,UAAU,CAAC,WAAW,CAAC,GAAG,IAAI,CAMhC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,EACjC,GAAG,EAAE,MAAM,EACX,KAAK,GAAE,CAAC,GAAG,IAAW,GACrB,IAAI,CAIN;AAED;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,GAAG,CAAC,GAAG,IAAI,CAS1D;AAED;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,eAAe,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,GAAE,CAAC,GAAG,IAAW,GAAG,IAAI,CAI5E;AAED;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,eAAe,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,GAAG,CAAC,GAAG,IAAI,CASxD;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,wBAAgB,OAAO,CACrB,GAAG,EAAE,MAAM,EACX,OAAO,GAAE;IAAE,EAAE,CAAC,EAAE,MAAM,CAAA;CAAe,GACpC,OAAO,CAAC,OAAO,GAAG,KAAK,GAAG,GAAG,CAAC,CAsHhC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,wBAAgB,UAAU,CACxB,GAAG,EAAE,MAAM,EACX,OAAO,GAAE;IACP,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,QAAQ,CAAC,EAAE,CAAC,GAAG,MAAM,EAAE,GAAG,EAAE,KAAK,GAAG,CAAC;IACrC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,OAAO,CAAC;CAQnB,GACA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAqB5E;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,2BAA2B,CACzC,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,GACX,MAAM,CA8BR;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAQnD;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,EAAE,CAkBzE;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,gBAAgB,CAC9B,GAAG,EAAE,MAAM,EACX,KAAK,EAAE,MAAM,EACb,KAAK,EAAE,MAAM,GACZ,MAAM,CAQR;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAQvD;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,WAAe,GAAG,MAAM,CAOnE;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,mBAAmB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAG7D;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAE9D;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,mBAAmB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAG7D;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAE9D;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,KAAK,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAQzC;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAM3C;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,cAAc,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,CAE3C;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CASjD;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAEjD;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,cAAc,CAAC,CAAC,SAAI,GAAG,MAAM,CAM5C;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,SAAI,GAAG,MAAM,CAG/C;AAED;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,SAAI,GAAG,MAAM,CAQ/D;AAED;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,SAAI,GAAG,MAAM,CAExD;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,CAAC,EAAE,KAAK,GAAG,IAAI,CAS3C;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,QAAQ,CAAC,GAAG,EAAE,WAAW,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAS/D;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,QAAQ,CAAC,GAAG,EAAE,WAAW,EAAE,GAAG,EAAE,MAAM,GAAG,IAAI,CAS5D;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,WAAW,EAAE,GAAG,EAAE,MAAM,GAAG,IAAI,CAQ/D;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,QAAQ,CAAC,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,EACxD,IAAI,EAAE,CAAC,EACP,IAAI,EAAE,MAAM,EACZ,OAAO,GAAE;IAAE,OAAO,CAAC,EAAE,OAAO,CAAC;IAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;CAAO,GACtD,YAAY,CAAC,CAAC,CAAC,CAqCjB;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,QAAQ,CAAC,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,EACxD,IAAI,EAAE,CAAC,EACP,IAAI,EAAE,MAAM,EACZ,SAAS,CAAC,EAAE,OAAO,GAClB,YAAY,CAAC,CAAC,CAAC,CAkCjB;AAMD;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,mBAAmB,CACjC,KAAK,GAAE,MAAM,GAAG,MAAM,GAAG,IAAQ,EACjC,GAAG,GAAE,MAAM,GAAG,MAAM,GAAG,IAAQ,EAC/B,OAAO,GAAE;IAAE,IAAI,CAAC,EAAE,MAAM,CAAA;CAAsC,GAC7D,MAAM,GAAG,MAAM,CA6BjB;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,QAAQ,CAAC,GAAG,EAAE,OAAO,EAAE,OAAO,GAAE,eAAoB,GAAG,OAAO,CAuB7E;AAED;;;;;GAKG;AACH,wBAAgB,IAAI,CAClB,EAAE,EAAE,WAAW,EACf,GAAG,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC,GACjC,UAAU,CAAC,WAAW,CAAC,GAAG,IAAI,CAMhC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,EACjC,GAAG,EAAE,MAAM,EACX,KAAK,GAAE,CAAC,GAAG,IAAW,GACrB,IAAI,CAIN;AAED;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,GAAG,CAAC,GAAG,IAAI,CAS1D;AAED;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,eAAe,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,GAAE,CAAC,GAAG,IAAW,GAAG,IAAI,CAI5E;AAED;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,eAAe,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,GAAG,CAAC,GAAG,IAAI,CASxD;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,wBAAgB,OAAO,CACrB,GAAG,EAAE,MAAM,EACX,OAAO,GAAE;IAAE,EAAE,CAAC,EAAE,MAAM,CAAA;CAAe,GACpC,OAAO,CAAC,OAAO,GAAG,KAAK,GAAG,GAAG,CAAC,CAsHhC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,wBAAgB,UAAU,CACxB,GAAG,EAAE,MAAM,EACX,OAAO,GAAE;IACP,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,QAAQ,CAAC,EAAE,CAAC,GAAG,MAAM,EAAE,GAAG,EAAE,KAAK,GAAG,CAAC;IACrC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,OAAO,CAAC;CAQnB,GACA,iBAAiB,CAgDnB;AAED;;;;GAIG;AACH,wBAAgB,IAAI,IAAI,MAAM,CAQ7B;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,SAAS,CACvB,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,MAAM,GACb,IAAI,CAsCN;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAW9C;AAED;;GAEG;AACH,UAAU,cAAc;IACtB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;CAChC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,wBAAgB,cAAc,CAC5B,SAAS,UAAQ,GAChB,OAAO,CAAC,cAAc,GAAG,KAAK,CAAC,CAsPjC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,wBAAgB,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAK5C;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,YAAY,IAAI,OAAO,CAyCtC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH,wBAAgB,cAAc,IAAI,WAAW,CAkN5C;AAED;;;;;;GAMG;AACH,wBAAgB,SAAS,CACvB,GAAG,EAAE,MAAM,EACX,OAAO,GAAE;IAAE,aAAa,CAAC,EAAE,OAAO,CAAA;CAAO,GACxC,MAAM,CAWR;AAED;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAiBnD;AAED;;;;;;;;GAQG;AACH,wBAAgB,gBAAgB,CAC9B,GAAG,EAAE,MAAM,EACX,GAAG,EAAE,MAAM,EACX,MAAM,UAAQ,GACb,MAAM,CA4BR;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,UAAQ,GAAG,MAAM,CAE7E;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,YAAY,CAAC,OAAO,SAAK,GAAG,OAAO,CAAC,MAAM,GAAG,KAAK,CAAC,CAiBlE;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;AACH,wBAAgB,QAAQ,CACtB,KAAK,EAAE,MAAM,EACb,OAAO,GAAE;IAAE,EAAE,CAAC,EAAE,MAAM,CAAA;CAAe,GACpC,OAAO,CAiCT;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,wBAAgB,gBAAgB,CAC9B,MAAM,SAAK,EACX,OAAO,GAAE;IACP,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,IAAI,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CAQtB,GACA,OAAO,CAoFT;AAED;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAC9B,GAAG,EAAE,YAAY,GAAG,SAAS,EAC7B,OAAO,GAAE,qBAGR,GACA,OAAO,CAyBT;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,CAAC,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC,GAAG,OAAO,CAMzD;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,wBAAgB,WAAW,CACzB,IAAI,EAAE,GAAG,EACT,UAAU,EAAE,MAAM,EAAE,EACpB,UAAU,EAAE,GAAG,GACd,OAAO,CAgBT;AAED;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAiBhD;AAED;;;;;;GAMG;AACH,wBAAgB,aAAa,IAAI,OAAO,CAAC,OAAO,CAAC,CAahD;AAED;;;;;;GAMG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAU/C;AAED;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,UAAU,CACxB,OAAO,CAAC,EAAE,IAAI,GAAG,MAAM,GAAG,MAAM,EAChC,MAAM,SAAe,GACpB,MAAM,CAiCR;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,IAAI,eAAe,CAOpD;AAED;;;;;;GAMG;AACH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,GAAG,GAAG,IAAI,CAQpD;AAED;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAY9C;AAED;;;;;;GAMG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,GAAG,GAAG,IAAI,CAevD;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAG/C;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAG1D;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAGnD;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAWjD;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,CAmB5D;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,iBAAiB,IAAI,OAAO,CAgD3C;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,cAAc,CAC5B,SAAS,EAAE,MAAM,EACjB,UAAU,EAAE,KAAK,CAAC,MAAM,CAAC,GACxB,MAAM,CAQR;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAWhE;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,IAAI,MAAM,CAE1C;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,uBAAuB,CAAC,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,EACvE,QAAQ,EAAE,CAAC,EACX,OAAO,GAAE,kBAAuB,EAChC,SAAS,GAAE,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC,KAAK,OAErC,GACA,IAAI,CA2BN;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,qBAAqB,CACnC,eAAe,EAAE,MAAM,EACvB,GAAG,EAAE,MAAM,GACV,iBAAiB,CAKnB"}
|
package/lib/index.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* mazey v3.
|
|
2
|
+
* mazey v3.8.0
|
|
3
3
|
* (c) 2018-2023 Mazey Chu
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -5246,7 +5246,7 @@ function getLocalStorage(key) {
|
|
|
5246
5246
|
*
|
|
5247
5247
|
* @param {string} url -- css资源路径
|
|
5248
5248
|
* @param {string} options.id -- link标签id
|
|
5249
|
-
* @returns {Promise<
|
|
5249
|
+
* @returns {Promise<string>} true -- 加载成功
|
|
5250
5250
|
* @category Load Resource
|
|
5251
5251
|
*/
|
|
5252
5252
|
function loadCSS(url, options) {
|
|
@@ -5264,7 +5264,7 @@ function loadCSS(url, options) {
|
|
|
5264
5264
|
// const tempCB = (typeof callback === 'function' ? callback : function () { });
|
|
5265
5265
|
var callback = function callback() {
|
|
5266
5266
|
// doFn(success, true);
|
|
5267
|
-
success(
|
|
5267
|
+
success('loaded');
|
|
5268
5268
|
};
|
|
5269
5269
|
var node = document.createElement('link');
|
|
5270
5270
|
var supportOnload = ('onload' in node);
|
|
@@ -5387,7 +5387,7 @@ function loadCSS(url, options) {
|
|
|
5387
5387
|
* @param {function} options.callback -- 加载后回调函数
|
|
5388
5388
|
* @param {number} options.timeout -- 超时时长
|
|
5389
5389
|
* @param {boolean} options.isDefer -- 是否添加 defer 标签
|
|
5390
|
-
* @returns {Promise<
|
|
5390
|
+
* @returns {Promise<string>} -- true 成功
|
|
5391
5391
|
* @category Load Resource
|
|
5392
5392
|
*/
|
|
5393
5393
|
function loadScript(url, options) {
|
|
@@ -5431,14 +5431,14 @@ function loadScript(url, options) {
|
|
|
5431
5431
|
if (script.readyState === 'loaded' || script.readyState === 'complete') {
|
|
5432
5432
|
script.onreadystatechange = null;
|
|
5433
5433
|
doFn(callback);
|
|
5434
|
-
doFn(success,
|
|
5434
|
+
doFn(success, 'loaded');
|
|
5435
5435
|
}
|
|
5436
5436
|
};
|
|
5437
5437
|
} else {
|
|
5438
5438
|
// Others
|
|
5439
5439
|
script.onload = function () {
|
|
5440
5440
|
doFn(callback);
|
|
5441
|
-
doFn(success,
|
|
5441
|
+
doFn(success, 'loaded');
|
|
5442
5442
|
};
|
|
5443
5443
|
}
|
|
5444
5444
|
script.src = url;
|
|
@@ -5447,7 +5447,7 @@ function loadScript(url, options) {
|
|
|
5447
5447
|
var _a;
|
|
5448
5448
|
_a = [resolve, reject], success = _a[0], fail = _a[1];
|
|
5449
5449
|
if (timeout) {
|
|
5450
|
-
setTimeout(fail.bind(null,
|
|
5450
|
+
setTimeout(fail.bind(null, 'timeout'), timeout);
|
|
5451
5451
|
}
|
|
5452
5452
|
});
|
|
5453
5453
|
}
|
|
@@ -6574,7 +6574,7 @@ function isNonEmptyArray(arr) {
|
|
|
6574
6574
|
function isValidData(data, attributes, validValue) {
|
|
6575
6575
|
var ret = false;
|
|
6576
6576
|
var foundRet = attributes.reduce(function (foundValue, curr) {
|
|
6577
|
-
if (foundValue[curr]) {
|
|
6577
|
+
if (typeof foundValue[curr] !== 'undefined') {
|
|
6578
6578
|
foundValue = foundValue[curr];
|
|
6579
6579
|
} else {
|
|
6580
6580
|
return Object.create(null);
|
|
@@ -6988,27 +6988,25 @@ function genStyleString(className, styleArray) {
|
|
|
6988
6988
|
return ".".concat(className, "{").concat(style, "}");
|
|
6989
6989
|
}
|
|
6990
6990
|
/**
|
|
6991
|
-
* Load
|
|
6992
|
-
*
|
|
6993
|
-
* If the image fails to load, the Promise status will change to `reject
|
|
6994
|
-
*
|
|
6995
|
-
*
|
|
6996
|
-
* If the image fails to load, the Promise will return the error object.
|
|
6997
|
-
* The method will help Web to preload the image. And the image will be cached by the browser.
|
|
6998
|
-
* We can use it to implement the lazy loading of images.
|
|
6999
|
-
* The method will not add the image to the DOM.
|
|
6991
|
+
* Load an image from the given URL.
|
|
6992
|
+
*
|
|
6993
|
+
* The target image will be loaded in the background, and the Promise status will change after the image is loaded. If the image fails to load, the Promise status will change to `reject` with the error object. If the image is loaded successfully, the Promise status will change to `resolve` with the image object. This method can be used to preload images and cache them in the browser. It can also be used to implement lazy loading of images.
|
|
6994
|
+
*
|
|
6995
|
+
* Note that this method will not add the image to the DOM.
|
|
7000
6996
|
*
|
|
7001
6997
|
* @example
|
|
7002
6998
|
* ```js
|
|
7003
|
-
* loadImage('https://example.com/example.png')
|
|
7004
|
-
*
|
|
7005
|
-
*
|
|
7006
|
-
*
|
|
7007
|
-
*
|
|
6999
|
+
* loadImage('https://example.com/example.png')
|
|
7000
|
+
* .then((img) => {
|
|
7001
|
+
* console.log(img);
|
|
7002
|
+
* })
|
|
7003
|
+
* .catch((err) => {
|
|
7004
|
+
* console.log(err);
|
|
7005
|
+
* });
|
|
7008
7006
|
* ```
|
|
7009
7007
|
*
|
|
7010
|
-
* @param {string} url - The image
|
|
7011
|
-
* @returns {Promise}
|
|
7008
|
+
* @param {string} url - The URL of the image to load.
|
|
7009
|
+
* @returns {Promise} A Promise that resolves with the loaded image or rejects with an error.
|
|
7012
7010
|
* @category Load Resource
|
|
7013
7011
|
*/
|
|
7014
7012
|
function loadImage(url) {
|
|
@@ -7092,5 +7090,30 @@ function repeatUntilConditionMet(callback, options, condition) {
|
|
|
7092
7090
|
}
|
|
7093
7091
|
clearAndInvokeNext();
|
|
7094
7092
|
}
|
|
7093
|
+
/**
|
|
7094
|
+
* Load a script from the given URL if it (`window['attribute']`) has not already been loaded.
|
|
7095
|
+
*
|
|
7096
|
+
* @example
|
|
7097
|
+
* ```js
|
|
7098
|
+
* loadScriptIfUndefined('jQuery', 'https://example.com/lib/jquery.min.js')
|
|
7099
|
+
* .then(() => {
|
|
7100
|
+
* console.log('jQuery is loaded.');
|
|
7101
|
+
* })
|
|
7102
|
+
* .catch(err => {
|
|
7103
|
+
* console.log('Failed to load jQuery.', err);
|
|
7104
|
+
* });
|
|
7105
|
+
* ```
|
|
7106
|
+
*
|
|
7107
|
+
* @param {string} windowAttribute - The name of the window attribute to check (e.g. `jQuery`, `axios`, etc.).
|
|
7108
|
+
* @param {string} url - The URL of the script to load.
|
|
7109
|
+
* @returns {Promise} A Promise that resolves when the script has been loaded.
|
|
7110
|
+
* @category Load Resource
|
|
7111
|
+
*/
|
|
7112
|
+
function loadScriptIfUndefined(windowAttribute, url) {
|
|
7113
|
+
if (window[windowAttribute]) {
|
|
7114
|
+
return Promise.resolve('defined');
|
|
7115
|
+
}
|
|
7116
|
+
return loadScript(url);
|
|
7117
|
+
}
|
|
7095
7118
|
|
|
7096
|
-
export { addClass, addEvent, addStyle, calLongestCommonSubsequence, calLongestCommonSubstring, camelCase2Underscore, camelCaseToKebabCase, cancelBubble, clearHtml, convert10To26, convertCamelToKebab, convertCamelToUnder, cutCHSString, debounce, deepCopyObject, doFn, floatFixed, floatToPercent, formatDate, genCustomConsole, genHashCode, genStyleString, generateRndNum, generateUniqueNum, getBrowserInfo, getCookie, getCurrentVersion, getDefineListeners, getDomain, getFileSize, getFriendlyInterval, getHashQueryParam, getLocalStorage, getPerformance, getQueryParam, getSessionStorage, getUrlFileType, getUrlParam, hasClass, inRate, invokeEvent, isJSONString, isJsonString, isNonEmptyArray, isNumber, isSafePWAEnv, isSupportWebp, isValidData, isValidEmail, isValidPhoneNumber, isValidUrl, loadCSS, loadImage, loadScript, mNow, mTrim, newLine, removeClass, removeEvent, repeatUntilConditionMet, sanitizeInput, setCookie, setImgWidHeiBySrc, setLocalStorage, setSessionStorage, throttle, truncateZHString, updateQueryParam, windowLoaded, zAxiosIsValidRes };
|
|
7119
|
+
export { addClass, addEvent, addStyle, calLongestCommonSubsequence, calLongestCommonSubstring, camelCase2Underscore, camelCaseToKebabCase, cancelBubble, clearHtml, convert10To26, convertCamelToKebab, convertCamelToUnder, cutCHSString, debounce, deepCopyObject, doFn, floatFixed, floatToPercent, formatDate, genCustomConsole, genHashCode, genStyleString, generateRndNum, generateUniqueNum, getBrowserInfo, getCookie, getCurrentVersion, getDefineListeners, getDomain, getFileSize, getFriendlyInterval, getHashQueryParam, getLocalStorage, getPerformance, getQueryParam, getSessionStorage, getUrlFileType, getUrlParam, hasClass, inRate, invokeEvent, isJSONString, isJsonString, isNonEmptyArray, isNumber, isSafePWAEnv, isSupportWebp, isValidData, isValidEmail, isValidPhoneNumber, isValidUrl, loadCSS, loadImage, loadScript, loadScriptIfUndefined, mNow, mTrim, newLine, removeClass, removeEvent, repeatUntilConditionMet, sanitizeInput, setCookie, setImgWidHeiBySrc, setLocalStorage, setSessionStorage, throttle, truncateZHString, updateQueryParam, windowLoaded, zAxiosIsValidRes };
|
package/lib/mazey.min.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* mazey v3.
|
|
2
|
+
* mazey v3.8.0
|
|
3
3
|
* (c) 2018-2023 Mazey Chu
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
var mazey=function(t){"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(t,e){return t(e={exports:{}},e.exports),e.exports}var r,o,i,a=n((function(t){function e(n){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports})),c=(r=a)&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r,u=function(t){return t&&t.Math==Math&&t},f=u("object"==typeof globalThis&&globalThis)||u("object"==typeof window&&window)||u("object"==typeof self&&self)||u("object"==typeof e&&e)||function(){return this}()||Function("return this")(),s=function(t){try{return!!t()}catch(t){return!0}},l=!s((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),d=!s((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),p=Function.prototype.call,v=d?p.bind(p):function(){return p.apply(p,arguments)},g={}.propertyIsEnumerable,h=Object.getOwnPropertyDescriptor,y={f:h&&!g.call({1:2},1)?function(t){var e=h(this,t);return!!e&&e.enumerable}:g},m=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},w=Function.prototype,b=w.call,S=d&&w.bind.bind(b,b),E=d?S:function(t){return function(){return b.apply(t,arguments)}},x=E({}.toString),O=E("".slice),T=function(t){return O(x(t),8,-1)},A=Object,j=E("".split),I=s((function(){return!A("z").propertyIsEnumerable(0)}))?function(t){return"String"==T(t)?j(t,""):A(t)}:A,R=function(t){return null==t},M=TypeError,P=function(t){if(R(t))throw M("Can't call method on "+t);return t},C=function(t){return I(P(t))},_="object"==typeof document&&document.all,N={all:_,IS_HTMLDDA:void 0===_&&void 0!==_},k=N.all,L=N.IS_HTMLDDA?function(t){return"function"==typeof t||t===k}:function(t){return"function"==typeof t},F=N.all,D=N.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:L(t)||t===F}:function(t){return"object"==typeof t?null!==t:L(t)},B=function(t,e){return arguments.length<2?(n=f[t],L(n)?n:void 0):f[t]&&f[t][e];var n},U=E({}.isPrototypeOf),$="undefined"!=typeof navigator&&String(navigator.userAgent)||"",V=f.process,z=f.Deno,G=V&&V.versions||z&&z.version,W=G&&G.v8;W&&(i=(o=W.split("."))[0]>0&&o[0]<4?1:+(o[0]+o[1])),!i&&$&&(!(o=$.match(/Edge\/(\d+)/))||o[1]>=74)&&(o=$.match(/Chrome\/(\d+)/))&&(i=+o[1]);var q=i,H=!!Object.getOwnPropertySymbols&&!s((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&q&&q<41})),Y=H&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Z=Object,J=Y?function(t){return"symbol"==typeof t}:function(t){var e=B("Symbol");return L(e)&&U(e.prototype,Z(t))},K=String,X=function(t){try{return K(t)}catch(t){return"Object"}},Q=TypeError,tt=function(t){if(L(t))return t;throw Q(X(t)+" is not a function")},et=function(t,e){var n=t[e];return R(n)?void 0:tt(n)},nt=TypeError,rt=Object.defineProperty,ot=function(t,e){try{rt(f,t,{value:e,configurable:!0,writable:!0})}catch(n){f[t]=e}return e},it="__core-js_shared__",at=f[it]||ot(it,{}),ct=n((function(t){(t.exports=function(t,e){return at[t]||(at[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.29.1",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.29.1/LICENSE",source:"https://github.com/zloirock/core-js"})})),ut=Object,ft=function(t){return ut(P(t))},st=E({}.hasOwnProperty),lt=Object.hasOwn||function(t,e){return st(ft(t),e)},dt=0,pt=Math.random(),vt=E(1..toString),gt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+vt(++dt+pt,36)},ht=f.Symbol,yt=ct("wks"),mt=Y?ht.for||ht:ht&&ht.withoutSetter||gt,wt=function(t){return lt(yt,t)||(yt[t]=H&<(ht,t)?ht[t]:mt("Symbol."+t)),yt[t]},bt=TypeError,St=wt("toPrimitive"),Et=function(t,e){if(!D(t)||J(t))return t;var n,r=et(t,St);if(r){if(void 0===e&&(e="default"),n=v(r,t,e),!D(n)||J(n))return n;throw bt("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var n,r;if("string"===e&&L(n=t.toString)&&!D(r=v(n,t)))return r;if(L(n=t.valueOf)&&!D(r=v(n,t)))return r;if("string"!==e&&L(n=t.toString)&&!D(r=v(n,t)))return r;throw nt("Can't convert object to primitive value")}(t,e)},xt=function(t){var e=Et(t,"string");return J(e)?e:e+""},Ot=f.document,Tt=D(Ot)&&D(Ot.createElement),At=function(t){return Tt?Ot.createElement(t):{}},jt=!l&&!s((function(){return 7!=Object.defineProperty(At("div"),"a",{get:function(){return 7}}).a})),It=Object.getOwnPropertyDescriptor,Rt={f:l?It:function(t,e){if(t=C(t),e=xt(e),jt)try{return It(t,e)}catch(t){}if(lt(t,e))return m(!v(y.f,t,e),t[e])}},Mt=l&&s((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Pt=String,Ct=TypeError,_t=function(t){if(D(t))return t;throw Ct(Pt(t)+" is not an object")},Nt=TypeError,kt=Object.defineProperty,Lt=Object.getOwnPropertyDescriptor,Ft="enumerable",Dt="configurable",Bt="writable",Ut={f:l?Mt?function(t,e,n){if(_t(t),e=xt(e),_t(n),"function"==typeof t&&"prototype"===e&&"value"in n&&Bt in n&&!n[Bt]){var r=Lt(t,e);r&&r[Bt]&&(t[e]=n.value,n={configurable:Dt in n?n[Dt]:r[Dt],enumerable:Ft in n?n[Ft]:r[Ft],writable:!1})}return kt(t,e,n)}:kt:function(t,e,n){if(_t(t),e=xt(e),_t(n),jt)try{return kt(t,e,n)}catch(t){}if("get"in n||"set"in n)throw Nt("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},$t=l?function(t,e,n){return Ut.f(t,e,m(1,n))}:function(t,e,n){return t[e]=n,t},Vt=Function.prototype,zt=l&&Object.getOwnPropertyDescriptor,Gt=lt(Vt,"name"),Wt={EXISTS:Gt,PROPER:Gt&&"something"===function(){}.name,CONFIGURABLE:Gt&&(!l||l&&zt(Vt,"name").configurable)},qt=E(Function.toString);L(at.inspectSource)||(at.inspectSource=function(t){return qt(t)});var Ht,Yt,Zt,Jt=at.inspectSource,Kt=f.WeakMap,Xt=L(Kt)&&/native code/.test(String(Kt)),Qt=ct("keys"),te=function(t){return Qt[t]||(Qt[t]=gt(t))},ee={},ne="Object already initialized",re=f.TypeError,oe=f.WeakMap;if(Xt||at.state){var ie=at.state||(at.state=new oe);ie.get=ie.get,ie.has=ie.has,ie.set=ie.set,Ht=function(t,e){if(ie.has(t))throw re(ne);return e.facade=t,ie.set(t,e),e},Yt=function(t){return ie.get(t)||{}},Zt=function(t){return ie.has(t)}}else{var ae=te("state");ee[ae]=!0,Ht=function(t,e){if(lt(t,ae))throw re(ne);return e.facade=t,$t(t,ae,e),e},Yt=function(t){return lt(t,ae)?t[ae]:{}},Zt=function(t){return lt(t,ae)}}var ce,ue={set:Ht,get:Yt,has:Zt,enforce:function(t){return Zt(t)?Yt(t):Ht(t,{})},getterFor:function(t){return function(e){var n;if(!D(e)||(n=Yt(e)).type!==t)throw re("Incompatible receiver, "+t+" required");return n}}},fe=n((function(t){var e=Wt.CONFIGURABLE,n=ue.enforce,r=ue.get,o=String,i=Object.defineProperty,a=E("".slice),c=E("".replace),u=E([].join),f=l&&!s((function(){return 8!==i((function(){}),"length",{value:8}).length})),d=String(String).split("String"),p=t.exports=function(t,r,s){"Symbol("===a(o(r),0,7)&&(r="["+c(o(r),/^Symbol\(([^)]*)\)/,"$1")+"]"),s&&s.getter&&(r="get "+r),s&&s.setter&&(r="set "+r),(!lt(t,"name")||e&&t.name!==r)&&(l?i(t,"name",{value:r,configurable:!0}):t.name=r),f&&s&<(s,"arity")&&t.length!==s.arity&&i(t,"length",{value:s.arity});try{s&<(s,"constructor")&&s.constructor?l&&i(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var p=n(t);return lt(p,"source")||(p.source=u(d,"string"==typeof r?r:"")),t};Function.prototype.toString=p((function(){return L(this)&&r(this).source||Jt(this)}),"toString")})),se=function(t,e,n,r){r||(r={});var o=r.enumerable,i=void 0!==r.name?r.name:e;if(L(n)&&fe(n,i,r),r.global)o?t[e]=n:ot(e,n);else{try{r.unsafe?t[e]&&(o=!0):delete t[e]}catch(t){}o?t[e]=n:Ut.f(t,e,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return t},le=Math.ceil,de=Math.floor,pe=Math.trunc||function(t){var e=+t;return(e>0?de:le)(e)},ve=function(t){var e=+t;return e!=e||0===e?0:pe(e)},ge=Math.max,he=Math.min,ye=function(t,e){var n=ve(t);return n<0?ge(n+e,0):he(n,e)},me=Math.min,we=function(t){return t>0?me(ve(t),9007199254740991):0},be=function(t){return we(t.length)},Se=function(t){return function(e,n,r){var o,i=C(e),a=be(i),c=ye(r,a);if(t&&n!=n){for(;a>c;)if((o=i[c++])!=o)return!0}else for(;a>c;c++)if((t||c in i)&&i[c]===n)return t||c||0;return!t&&-1}},Ee={includes:Se(!0),indexOf:Se(!1)},xe=Ee.indexOf,Oe=E([].push),Te=function(t,e){var n,r=C(t),o=0,i=[];for(n in r)!lt(ee,n)&<(r,n)&&Oe(i,n);for(;e.length>o;)lt(r,n=e[o++])&&(~xe(i,n)||Oe(i,n));return i},Ae=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],je=Ae.concat("length","prototype"),Ie={f:Object.getOwnPropertyNames||function(t){return Te(t,je)}},Re={f:Object.getOwnPropertySymbols},Me=E([].concat),Pe=B("Reflect","ownKeys")||function(t){var e=Ie.f(_t(t)),n=Re.f;return n?Me(e,n(t)):e},Ce=function(t,e,n){for(var r=Pe(e),o=Ut.f,i=Rt.f,a=0;a<r.length;a++){var c=r[a];lt(t,c)||n&<(n,c)||o(t,c,i(e,c))}},_e=/#|\.prototype\./,Ne=function(t,e){var n=Le[ke(t)];return n==De||n!=Fe&&(L(e)?s(e):!!e)},ke=Ne.normalize=function(t){return String(t).replace(_e,".").toLowerCase()},Le=Ne.data={},Fe=Ne.NATIVE="N",De=Ne.POLYFILL="P",Be=Ne,Ue=Rt.f,$e=function(t,e){var n,r,o,i,a,c=t.target,u=t.global,s=t.stat;if(n=u?f:s?f[c]||ot(c,{}):(f[c]||{}).prototype)for(r in e){if(i=e[r],o=t.dontCallGetSet?(a=Ue(n,r))&&a.value:n[r],!Be(u?r:c+(s?".":"#")+r,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;Ce(i,o)}(t.sham||o&&o.sham)&&$t(i,"sham",!0),se(n,r,i,t)}},Ve=Object.keys||function(t){return Te(t,Ae)},ze=l&&!Mt?Object.defineProperties:function(t,e){_t(t);for(var n,r=C(e),o=Ve(e),i=o.length,a=0;i>a;)Ut.f(t,n=o[a++],r[n]);return t},Ge={f:ze},We=B("document","documentElement"),qe="prototype",He="script",Ye=te("IE_PROTO"),Ze=function(){},Je=function(t){return"<"+He+">"+t+"</"+He+">"},Ke=function(t){t.write(Je("")),t.close();var e=t.parentWindow.Object;return t=null,e},Xe=function(){try{ce=new ActiveXObject("htmlfile")}catch(t){}var t,e,n;Xe="undefined"!=typeof document?document.domain&&ce?Ke(ce):(e=At("iframe"),n="java"+He+":",e.style.display="none",We.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(Je("document.F=Object")),t.close(),t.F):Ke(ce);for(var r=Ae.length;r--;)delete Xe[qe][Ae[r]];return Xe()};ee[Ye]=!0;var Qe=Object.create||function(t,e){var n;return null!==t?(Ze[qe]=_t(t),n=new Ze,Ze[qe]=null,n[Ye]=t):n=Xe(),void 0===e?n:Ge.f(n,e)},tn=Ut.f,en=wt("unscopables"),nn=Array.prototype;null==nn[en]&&tn(nn,en,{configurable:!0,value:Qe(null)});var rn=function(t){nn[en][t]=!0};$e({target:"Array",proto:!0},{fill:function(t){for(var e=ft(this),n=be(e),r=arguments.length,o=ye(r>1?arguments[1]:void 0,n),i=r>2?arguments[2]:void 0,a=void 0===i?n:ye(i,n);a>o;)e[o++]=t;return e}}),rn("fill");var on=Array.isArray||function(t){return"Array"==T(t)},an=TypeError,cn=function(t){if(t>9007199254740991)throw an("Maximum allowed index exceeded");return t},un=function(t,e,n){var r=xt(e);r in t?Ut.f(t,r,m(0,n)):t[r]=n},fn={};fn[wt("toStringTag")]="z";var sn="[object z]"===String(fn),ln=wt("toStringTag"),dn=Object,pn="Arguments"==T(function(){return arguments}()),vn=sn?T:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=dn(t),ln))?n:pn?T(e):"Object"==(r=T(e))&&L(e.callee)?"Arguments":r},gn=function(){},hn=[],yn=B("Reflect","construct"),mn=/^\s*(?:class|function)\b/,wn=E(mn.exec),bn=!mn.exec(gn),Sn=function(t){if(!L(t))return!1;try{return yn(gn,hn,t),!0}catch(t){return!1}},En=function(t){if(!L(t))return!1;switch(vn(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return bn||!!wn(mn,Jt(t))}catch(t){return!0}};En.sham=!0;var xn=!yn||s((function(){var t;return Sn(Sn.call)||!Sn(Object)||!Sn((function(){t=!0}))||t}))?En:Sn,On=wt("species"),Tn=Array,An=function(t,e){return new(function(t){var e;return on(t)&&(e=t.constructor,(xn(e)&&(e===Tn||on(e.prototype))||D(e)&&null===(e=e[On]))&&(e=void 0)),void 0===e?Tn:e}(t))(0===e?0:e)},jn=wt("species"),In=function(t){return q>=51||!s((function(){var e=[];return(e.constructor={})[jn]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},Rn=wt("isConcatSpreadable"),Mn=q>=51||!s((function(){var t=[];return t[Rn]=!1,t.concat()[0]!==t})),Pn=function(t){if(!D(t))return!1;var e=t[Rn];return void 0!==e?!!e:on(t)},Cn=!Mn||!In("concat");$e({target:"Array",proto:!0,arity:1,forced:Cn},{concat:function(t){var e,n,r,o,i,a=ft(this),c=An(a,0),u=0;for(e=-1,r=arguments.length;e<r;e++)if(Pn(i=-1===e?a:arguments[e]))for(o=be(i),cn(u+o),n=0;n<o;n++,u++)n in i&&un(c,u,i[n]);else cn(u+1),un(c,u++,i);return c.length=u,c}});var _n=String,Nn=TypeError,kn=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{t=function(t,e,n){try{return E(tt(Object.getOwnPropertyDescriptor(t,e)[n]))}catch(t){}}(Object.prototype,"__proto__","set"),t(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return _t(n),function(t){if("object"==typeof t||L(t))return t;throw Nn("Can't set "+_n(t)+" as a prototype")}(r),e?t(n,r):n.__proto__=r,n}}():void 0),Ln=function(t,e,n){var r,o;return kn&&L(r=e.constructor)&&r!==n&&D(o=r.prototype)&&o!==n.prototype&&kn(t,o),t},Fn=wt("match"),Dn=function(t){var e;return D(t)&&(void 0!==(e=t[Fn])?!!e:"RegExp"==T(t))},Bn=String,Un=function(t){if("Symbol"===vn(t))throw TypeError("Cannot convert a Symbol value to a string");return Bn(t)},$n=function(){var t=_t(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e},Vn=RegExp.prototype,zn=function(t){var e=t.flags;return void 0!==e||"flags"in Vn||lt(t,"flags")||!U(Vn,t)?e:v($n,t)},Gn=f.RegExp,Wn=s((function(){var t=Gn("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),qn=Wn||s((function(){return!Gn("a","y").sticky})),Hn={BROKEN_CARET:Wn||s((function(){var t=Gn("^r","gy");return t.lastIndex=2,null!=t.exec("str")})),MISSED_STICKY:qn,UNSUPPORTED_Y:Wn},Yn=Ut.f,Zn=function(t,e,n){n in t||Yn(t,n,{configurable:!0,get:function(){return e[n]},set:function(t){e[n]=t}})},Jn=function(t,e,n){return n.get&&fe(n.get,e,{getter:!0}),n.set&&fe(n.set,e,{setter:!0}),Ut.f(t,e,n)},Kn=wt("species"),Xn=function(t){var e=B(t);l&&e&&!e[Kn]&&Jn(e,Kn,{configurable:!0,get:function(){return this}})},Qn=f.RegExp,tr=s((function(){var t=Qn(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)})),er=f.RegExp,nr=s((function(){var t=er("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),rr=Ie.f,or=ue.enforce,ir=wt("match"),ar=f.RegExp,cr=ar.prototype,ur=f.SyntaxError,fr=E(cr.exec),sr=E("".charAt),lr=E("".replace),dr=E("".indexOf),pr=E("".slice),vr=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,gr=/a/g,hr=/a/g,yr=new ar(gr)!==gr,mr=Hn.MISSED_STICKY,wr=Hn.UNSUPPORTED_Y,br=l&&(!yr||mr||tr||nr||s((function(){return hr[ir]=!1,ar(gr)!=gr||ar(hr)==hr||"/a/i"!=ar(gr,"i")})));if(Be("RegExp",br)){for(var Sr=function(t,e){var n,r,o,i,a,c,u=U(cr,this),f=Dn(t),s=void 0===e,l=[],d=t;if(!u&&f&&s&&t.constructor===Sr)return t;if((f||U(cr,t))&&(t=t.source,s&&(e=zn(d))),t=void 0===t?"":Un(t),e=void 0===e?"":Un(e),d=t,tr&&"dotAll"in gr&&(r=!!e&&dr(e,"s")>-1)&&(e=lr(e,/s/g,"")),n=e,mr&&"sticky"in gr&&(o=!!e&&dr(e,"y")>-1)&&wr&&(e=lr(e,/y/g,"")),nr&&(i=function(t){for(var e,n=t.length,r=0,o="",i=[],a={},c=!1,u=!1,f=0,s="";r<=n;r++){if("\\"===(e=sr(t,r)))e+=sr(t,++r);else if("]"===e)c=!1;else if(!c)switch(!0){case"["===e:c=!0;break;case"("===e:fr(vr,pr(t,r+1))&&(r+=2,u=!0),o+=e,f++;continue;case">"===e&&u:if(""===s||lt(a,s))throw new ur("Invalid capture group name");a[s]=!0,i[i.length]=[s,f],u=!1,s="";continue}u?s+=e:o+=e}return[o,i]}(t),t=i[0],l=i[1]),a=Ln(ar(t,e),u?this:cr,Sr),(r||o||l.length)&&(c=or(a),r&&(c.dotAll=!0,c.raw=Sr(function(t){for(var e,n=t.length,r=0,o="",i=!1;r<=n;r++)"\\"!==(e=sr(t,r))?i||"."!==e?("["===e?i=!0:"]"===e&&(i=!1),o+=e):o+="[\\s\\S]":o+=e+sr(t,++r);return o}(t),n)),o&&(c.sticky=!0),l.length&&(c.groups=l)),t!==d)try{$t(a,"source",""===d?"(?:)":d)}catch(t){}return a},Er=rr(ar),xr=0;Er.length>xr;)Zn(Sr,ar,Er[xr++]);cr.constructor=Sr,Sr.prototype=cr,se(f,"RegExp",Sr,{constructor:!0})}Xn("RegExp");var Or=ue.get,Tr=ct("native-string-replace",String.prototype.replace),Ar=RegExp.prototype.exec,jr=Ar,Ir=E("".charAt),Rr=E("".indexOf),Mr=E("".replace),Pr=E("".slice),Cr=function(){var t=/a/,e=/b*/g;return v(Ar,t,"a"),v(Ar,e,"a"),0!==t.lastIndex||0!==e.lastIndex}(),_r=Hn.BROKEN_CARET,Nr=void 0!==/()??/.exec("")[1];(Cr||Nr||_r||tr||nr)&&(jr=function(t){var e,n,r,o,i,a,c,u=this,f=Or(u),s=Un(t),l=f.raw;if(l)return l.lastIndex=u.lastIndex,e=v(jr,l,s),u.lastIndex=l.lastIndex,e;var d=f.groups,p=_r&&u.sticky,g=v($n,u),h=u.source,y=0,m=s;if(p&&(g=Mr(g,"y",""),-1===Rr(g,"g")&&(g+="g"),m=Pr(s,u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&"\n"!==Ir(s,u.lastIndex-1))&&(h="(?: "+h+")",m=" "+m,y++),n=new RegExp("^(?:"+h+")",g)),Nr&&(n=new RegExp("^"+h+"$(?!\\s)",g)),Cr&&(r=u.lastIndex),o=v(Ar,p?n:u,m),p?o?(o.input=Pr(o.input,y),o[0]=Pr(o[0],y),o.index=u.lastIndex,u.lastIndex+=o[0].length):u.lastIndex=0:Cr&&o&&(u.lastIndex=u.global?o.index+o[0].length:r),Nr&&o&&o.length>1&&v(Tr,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=Qe(null),i=0;i<d.length;i++)a[(c=d[i])[0]]=o[c[1]];return o});var kr=jr;$e({target:"RegExp",proto:!0,forced:/./.exec!==kr},{exec:kr});var Lr=Wt.PROPER,Fr="toString",Dr=RegExp.prototype[Fr],Br=s((function(){return"/a/b"!=Dr.call({source:"a",flags:"b"})})),Ur=Lr&&Dr.name!=Fr;(Br||Ur)&&se(RegExp.prototype,Fr,(function(){var t=_t(this);return"/"+Un(t.source)+"/"+Un(zn(t))}),{unsafe:!0});var $r=function(t){if("Function"===T(t))return E(t)},Vr=wt("species"),zr=RegExp.prototype,Gr=function(t,e,n,r){var o=wt(t),i=!s((function(){var e={};return e[o]=function(){return 7},7!=""[t](e)})),a=i&&!s((function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[Vr]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return e=!0,null},n[o](""),!e}));if(!i||!a||n){var c=$r(/./[o]),u=e(o,""[t],(function(t,e,n,r,o){var a=$r(t),u=e.exec;return u===kr||u===zr.exec?i&&!o?{done:!0,value:c(e,n,r)}:{done:!0,value:a(n,e,r)}:{done:!1}}));se(String.prototype,t,u[0]),se(zr,o,u[1])}r&&$t(zr[o],"sham",!0)},Wr=E("".charAt),qr=E("".charCodeAt),Hr=E("".slice),Yr=function(t){return function(e,n){var r,o,i=Un(P(e)),a=ve(n),c=i.length;return a<0||a>=c?t?"":void 0:(r=qr(i,a))<55296||r>56319||a+1===c||(o=qr(i,a+1))<56320||o>57343?t?Wr(i,a):r:t?Hr(i,a,a+2):o-56320+(r-55296<<10)+65536}},Zr={codeAt:Yr(!1),charAt:Yr(!0)},Jr=Zr.charAt,Kr=function(t,e,n){return e+(n?Jr(t,e).length:1)},Xr=TypeError,Qr=function(t,e){var n=t.exec;if(L(n)){var r=v(n,t,e);return null!==r&&_t(r),r}if("RegExp"===T(t))return v(kr,t,e);throw Xr("RegExp#exec called on incompatible receiver")};Gr("match",(function(t,e,n){return[function(e){var n=P(this),r=R(e)?void 0:et(e,t);return r?v(r,e,n):new RegExp(e)[t](Un(n))},function(t){var r=_t(this),o=Un(t),i=n(e,r,o);if(i.done)return i.value;if(!r.global)return Qr(r,o);var a=r.unicode;r.lastIndex=0;for(var c,u=[],f=0;null!==(c=Qr(r,o));){var s=Un(c[0]);u[f]=s,""===s&&(r.lastIndex=Kr(o,we(r.lastIndex),a)),f++}return 0===f?null:u}]}));var to=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e};Gr("search",(function(t,e,n){return[function(e){var n=P(this),r=R(e)?void 0:et(e,t);return r?v(r,e,n):new RegExp(e)[t](Un(n))},function(t){var r=_t(this),o=Un(t),i=n(e,r,o);if(i.done)return i.value;var a=r.lastIndex;to(a,0)||(r.lastIndex=0);var c=Qr(r,o);return to(r.lastIndex,a)||(r.lastIndex=a),null===c?-1:c.index}]}));var eo=Function.prototype,no=eo.apply,ro=eo.call,oo="object"==typeof Reflect&&Reflect.apply||(d?ro.bind(no):function(){return ro.apply(no,arguments)}),io=Math.floor,ao=E("".charAt),co=E("".replace),uo=E("".slice),fo=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,so=/\$([$&'`]|\d{1,2})/g,lo=function(t,e,n,r,o,i){var a=n+t.length,c=r.length,u=so;return void 0!==o&&(o=ft(o),u=fo),co(i,u,(function(i,u){var f;switch(ao(u,0)){case"$":return"$";case"&":return t;case"`":return uo(e,0,n);case"'":return uo(e,a);case"<":f=o[uo(u,1,-1)];break;default:var s=+u;if(0===s)return i;if(s>c){var l=io(s/10);return 0===l?i:l<=c?void 0===r[l-1]?ao(u,1):r[l-1]+ao(u,1):i}f=r[s-1]}return void 0===f?"":f}))},po=wt("replace"),vo=Math.max,go=Math.min,ho=E([].concat),yo=E([].push),mo=E("".indexOf),wo=E("".slice),bo="$0"==="a".replace(/./,"$0"),So=!!/./[po]&&""===/./[po]("a","$0");Gr("replace",(function(t,e,n){var r=So?"$":"$0";return[function(t,n){var r=P(this),o=R(t)?void 0:et(t,po);return o?v(o,t,r,n):v(e,Un(r),t,n)},function(t,o){var i=_t(this),a=Un(t);if("string"==typeof o&&-1===mo(o,r)&&-1===mo(o,"$<")){var c=n(e,i,a,o);if(c.done)return c.value}var u=L(o);u||(o=Un(o));var f=i.global;if(f){var s=i.unicode;i.lastIndex=0}for(var l=[];;){var d=Qr(i,a);if(null===d)break;if(yo(l,d),!f)break;""===Un(d[0])&&(i.lastIndex=Kr(a,we(i.lastIndex),s))}for(var p,v="",g=0,h=0;h<l.length;h++){for(var y=Un((d=l[h])[0]),m=vo(go(ve(d.index),a.length),0),w=[],b=1;b<d.length;b++)yo(w,void 0===(p=d[b])?p:String(p));var S=d.groups;if(u){var E=ho([y],w,m,a);void 0!==S&&yo(E,S);var x=Un(oo(o,void 0,E))}else x=lo(y,a,m,w,S,o);m>=g&&(v+=wo(a,g,m)+x,g=m+y.length)}return v+wo(a,g)}]}),!!s((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!bo||So);var Eo=function(t,e){var n=[][t];return!!n&&s((function(){n.call(null,e||function(){return 1},1)}))},xo=Ee.indexOf,Oo=$r([].indexOf),To=!!Oo&&1/Oo([1],1,-0)<0,Ao=To||!Eo("indexOf");$e({target:"Array",proto:!0,forced:Ao},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return To?Oo(this,t,e)||0:xo(this,t,e)}});var jo=TypeError,Io=function(t){return function(e,n,r,o){tt(n);var i=ft(e),a=I(i),c=be(i),u=t?c-1:0,f=t?-1:1;if(r<2)for(;;){if(u in a){o=a[u],u+=f;break}if(u+=f,t?u<0:c<=u)throw jo("Reduce of empty array with no initial value")}for(;t?u>=0:c>u;u+=f)u in a&&(o=n(o,a[u],u,i));return o}},Ro={left:Io(!1),right:Io(!0)},Mo="undefined"!=typeof process&&"process"==T(process),Po=Ro.left,Co=!Mo&&q>79&&q<83||!Eo("reduce");$e({target:"Array",proto:!0,forced:Co},{reduce:function(t){var e=arguments.length;return Po(this,t,e,e>1?arguments[1]:void 0)}});var _o=sn?{}.toString:function(){return"[object "+vn(this)+"]"};sn||se(Object.prototype,"toString",_o,{unsafe:!0});var No=E([].slice),ko=In("slice"),Lo=wt("species"),Fo=Array,Do=Math.max;$e({target:"Array",proto:!0,forced:!ko},{slice:function(t,e){var n,r,o,i=C(this),a=be(i),c=ye(t,a),u=ye(void 0===e?a:e,a);if(on(i)&&(n=i.constructor,(xn(n)&&(n===Fo||on(n.prototype))||D(n)&&null===(n=n[Lo]))&&(n=void 0),n===Fo||void 0===n))return No(i,c,u);for(r=new(void 0===n?Fo:n)(Do(u-c,0)),o=0;c<u;c++,o++)c in i&&un(r,o,i[c]);return r.length=o,r}});var Bo=E(1..valueOf),Uo=RangeError,$o=RangeError,Vo=String,zo=Math.floor,Go=E((function(t){var e=Un(P(this)),n="",r=ve(t);if(r<0||r==1/0)throw Uo("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(e+=e))1&r&&(n+=e);return n})),Wo=E("".slice),qo=E(1..toFixed),Ho=function(t,e,n){return 0===e?n:e%2==1?Ho(t,e-1,n*t):Ho(t*t,e/2,n)},Yo=function(t,e,n){for(var r=-1,o=n;++r<6;)o+=e*t[r],t[r]=o%1e7,o=zo(o/1e7)},Zo=function(t,e){for(var n=6,r=0;--n>=0;)r+=t[n],t[n]=zo(r/e),r=r%e*1e7},Jo=function(t){for(var e=6,n="";--e>=0;)if(""!==n||0===e||0!==t[e]){var r=Vo(t[e]);n=""===n?r:n+Go("0",7-r.length)+r}return n},Ko=s((function(){return"0.000"!==qo(8e-5,3)||"1"!==qo(.9,0)||"1.25"!==qo(1.255,2)||"1000000000000000128"!==qo(0xde0b6b3a7640080,0)}))||!s((function(){qo({})}));$e({target:"Number",proto:!0,forced:Ko},{toFixed:function(t){var e,n,r,o,i=Bo(this),a=ve(t),c=[0,0,0,0,0,0],u="",f="0";if(a<0||a>20)throw $o("Incorrect fraction digits");if(i!=i)return"NaN";if(i<=-1e21||i>=1e21)return Vo(i);if(i<0&&(u="-",i=-i),i>1e-21)if(e=function(t){for(var e=0,n=t;n>=4096;)e+=12,n/=4096;for(;n>=2;)e+=1,n/=2;return e}(i*Ho(2,69,1))-69,n=e<0?i*Ho(2,-e,1):i/Ho(2,e,1),n*=4503599627370496,(e=52-e)>0){for(Yo(c,0,n),r=a;r>=7;)Yo(c,1e7,0),r-=7;for(Yo(c,Ho(10,r,1),0),r=e-1;r>=23;)Zo(c,1<<23),r-=23;Zo(c,1<<r),Yo(c,1,1),Zo(c,2),f=Jo(c)}else Yo(c,0,n),Yo(c,1<<-e,0),f=Jo(c)+Go("0",a);return f=a>0?u+((o=f.length)<=a?"0."+Go("0",a-o)+f:Wo(f,0,o-a)+"."+Wo(f,o-a)):u+f}});var Xo="\t\n\v\f\r \u2028\u2029\ufeff",Qo=E("".replace),ti=RegExp("^["+Xo+"]+"),ei=RegExp("(^|[^"+Xo+"])["+Xo+"]+$"),ni=function(t){return function(e){var n=Un(P(e));return 1&t&&(n=Qo(n,ti,"")),2&t&&(n=Qo(n,ei,"$1")),n}},ri={start:ni(1),end:ni(2),trim:ni(3)},oi=ri.trim,ii=E("".charAt),ai=f.parseFloat,ci=f.Symbol,ui=ci&&ci.iterator,fi=1/ai(Xo+"-0")!=-1/0||ui&&!s((function(){ai(Object(ui))}))?function(t){var e=oi(Un(t)),n=ai(e);return 0===n&&"-"==ii(e,0)?-0:n}:ai;$e({global:!0,forced:parseFloat!=fi},{parseFloat:fi});var si=TypeError,li=wt("species"),di=function(t,e){var n,r=_t(t).constructor;return void 0===r||R(n=_t(r)[li])?e:function(t){if(xn(t))return t;throw si(X(t)+" is not a constructor")}(n)},pi=Array,vi=Math.max,gi=function(t,e,n){for(var r=be(t),o=ye(e,r),i=ye(void 0===n?r:n,r),a=pi(vi(i-o,0)),c=0;o<i;o++,c++)un(a,c,t[o]);return a.length=c,a},hi=Hn.UNSUPPORTED_Y,yi=4294967295,mi=Math.min,wi=[].push,bi=E(/./.exec),Si=E(wi),Ei=E("".slice),xi=!s((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));Gr("split",(function(t,e,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,n){var r=Un(P(this)),o=void 0===n?yi:n>>>0;if(0===o)return[];if(void 0===t)return[r];if(!Dn(t))return v(e,r,t,o);for(var i,a,c,u=[],f=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),s=0,l=new RegExp(t.source,f+"g");(i=v(kr,l,r))&&!((a=l.lastIndex)>s&&(Si(u,Ei(r,s,i.index)),i.length>1&&i.index<r.length&&oo(wi,u,gi(i,1)),c=i[0].length,s=a,u.length>=o));)l.lastIndex===i.index&&l.lastIndex++;return s===r.length?!c&&bi(l,"")||Si(u,""):Si(u,Ei(r,s)),u.length>o?gi(u,0,o):u}:"0".split(void 0,0).length?function(t,n){return void 0===t&&0===n?[]:v(e,this,t,n)}:e,[function(e,n){var o=P(this),i=R(e)?void 0:et(e,t);return i?v(i,e,o,n):v(r,Un(o),e,n)},function(t,o){var i=_t(this),a=Un(t),c=n(r,i,a,o,r!==e);if(c.done)return c.value;var u=di(i,RegExp),f=i.unicode,s=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(hi?"g":"y"),l=new u(hi?"^(?:"+i.source+")":i,s),d=void 0===o?yi:o>>>0;if(0===d)return[];if(0===a.length)return null===Qr(l,a)?[a]:[];for(var p=0,v=0,g=[];v<a.length;){l.lastIndex=hi?0:v;var h,y=Qr(l,hi?Ei(a,v):a);if(null===y||(h=mi(we(l.lastIndex+(hi?v:0)),a.length))===p)v=Kr(a,v,f);else{if(Si(g,Ei(a,p,v)),g.length===d)return g;for(var m=1;m<=y.length-1;m++)if(Si(g,y[m]),g.length===d)return g;v=p=h}}return Si(g,Ei(a,p)),g}]}),!xi,hi);var Oi=Object.assign,Ti=Object.defineProperty,Ai=E([].concat),ji=!Oi||s((function(){if(l&&1!==Oi({b:1},Oi(Ti({},"a",{enumerable:!0,get:function(){Ti(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!=Oi({},t)[n]||Ve(Oi({},e)).join("")!=r}))?function(t,e){for(var n=ft(t),r=arguments.length,o=1,i=Re.f,a=y.f;r>o;)for(var c,u=I(arguments[o++]),f=i?Ai(Ve(u),i(u)):Ve(u),s=f.length,d=0;s>d;)c=f[d++],l&&!v(a,u,c)||(n[c]=u[c]);return n}:Oi;$e({target:"Object",stat:!0,arity:2,forced:Object.assign!==ji},{assign:ji});var Ii=f,Ri=Ie.f,Mi=Rt.f,Pi=Ut.f,Ci=ri.trim,_i="Number",Ni=f[_i];Ii[_i];var ki=Ni.prototype,Li=f.TypeError,Fi=E("".slice),Di=E("".charCodeAt),Bi=function(t){var e,n,r,o,i,a,c,u,f=Et(t,"number");if(J(f))throw Li("Cannot convert a Symbol value to a number");if("string"==typeof f&&f.length>2)if(f=Ci(f),43===(e=Di(f,0))||45===e){if(88===(n=Di(f,2))||120===n)return NaN}else if(48===e){switch(Di(f,1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+f}for(a=(i=Fi(f,2)).length,c=0;c<a;c++)if((u=Di(i,c))<48||u>o)return NaN;return parseInt(i,r)}return+f},Ui=Be(_i,!Ni(" 0o1")||!Ni("0b1")||Ni("+0x1")),$i=function(t){var e,n=arguments.length<1?0:Ni(function(t){var e=Et(t,"number");return"bigint"==typeof e?e:Bi(e)}(t));return U(ki,e=this)&&s((function(){Bo(e)}))?Ln(Object(n),this,$i):n};$i.prototype=ki,Ui&&(ki.constructor=$i),$e({global:!0,constructor:!0,wrap:!0,forced:Ui},{Number:$i});Ui&&function(t,e){for(var n,r=l?Ri(e):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),o=0;r.length>o;o++)lt(e,n=r[o])&&!lt(t,n)&&Pi(t,n,Mi(e,n))}(Ii[_i],Ni);var Vi,zi,Gi,Wi,qi=Ut.f,Hi=wt("toStringTag"),Yi=function(t,e,n){t&&!n&&(t=t.prototype),t&&!lt(t,Hi)&&qi(t,Hi,{configurable:!0,value:e})},Zi=TypeError,Ji=$r($r.bind),Ki=function(t,e){return tt(t),void 0===e?t:d?Ji(t,e):function(){return t.apply(e,arguments)}},Xi=TypeError,Qi=/(?:ipad|iphone|ipod).*applewebkit/i.test($),ta=f.setImmediate,ea=f.clearImmediate,na=f.process,ra=f.Dispatch,oa=f.Function,ia=f.MessageChannel,aa=f.String,ca=0,ua={},fa="onreadystatechange";s((function(){Vi=f.location}));var sa=function(t){if(lt(ua,t)){var e=ua[t];delete ua[t],e()}},la=function(t){return function(){sa(t)}},da=function(t){sa(t.data)},pa=function(t){f.postMessage(aa(t),Vi.protocol+"//"+Vi.host)};ta&&ea||(ta=function(t){!function(t,e){if(t<e)throw Xi("Not enough arguments")}(arguments.length,1);var e=L(t)?t:oa(t),n=No(arguments,1);return ua[++ca]=function(){oo(e,void 0,n)},zi(ca),ca},ea=function(t){delete ua[t]},Mo?zi=function(t){na.nextTick(la(t))}:ra&&ra.now?zi=function(t){ra.now(la(t))}:ia&&!Qi?(Wi=(Gi=new ia).port2,Gi.port1.onmessage=da,zi=Ki(Wi.postMessage,Wi)):f.addEventListener&&L(f.postMessage)&&!f.importScripts&&Vi&&"file:"!==Vi.protocol&&!s(pa)?(zi=pa,f.addEventListener("message",da,!1)):zi=fa in At("script")?function(t){We.appendChild(At("script"))[fa]=function(){We.removeChild(this),sa(t)}}:function(t){setTimeout(la(t),0)});var va={set:ta,clear:ea},ga=function(){this.head=null,this.tail=null};ga.prototype={add:function(t){var e={item:t,next:null},n=this.tail;n?n.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}};var ha,ya,ma,wa,ba,Sa=ga,Ea=/ipad|iphone|ipod/i.test($)&&"undefined"!=typeof Pebble,xa=/web0s(?!.*chrome)/i.test($),Oa=Rt.f,Ta=va.set,Aa=f.MutationObserver||f.WebKitMutationObserver,ja=f.document,Ia=f.process,Ra=f.Promise,Ma=Oa(f,"queueMicrotask"),Pa=Ma&&Ma.value;if(!Pa){var Ca=new Sa,_a=function(){var t,e;for(Mo&&(t=Ia.domain)&&t.exit();e=Ca.get();)try{e()}catch(t){throw Ca.head&&ha(),t}t&&t.enter()};Qi||Mo||xa||!Aa||!ja?!Ea&&Ra&&Ra.resolve?((wa=Ra.resolve(void 0)).constructor=Ra,ba=Ki(wa.then,wa),ha=function(){ba(_a)}):Mo?ha=function(){Ia.nextTick(_a)}:(Ta=Ki(Ta,f),ha=function(){Ta(_a)}):(ya=!0,ma=ja.createTextNode(""),new Aa(_a).observe(ma,{characterData:!0}),ha=function(){ma.data=ya=!ya}),Pa=function(t){Ca.head||ha(),Ca.add(t)}}var Na=Pa,ka=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},La=f.Promise,Fa="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,Da=!Fa&&!Mo&&"object"==typeof window&&"object"==typeof document;La&&La.prototype;var Ba,Ua,$a,Va=wt("species"),za=!1,Ga=L(f.PromiseRejectionEvent),Wa=Be("Promise",(function(){var t=Jt(La),e=t!==String(La);if(!e&&66===q)return!0;if(!q||q<51||!/native code/.test(t)){var n=new La((function(t){t(1)})),r=function(t){t((function(){}),(function(){}))};if((n.constructor={})[Va]=r,!(za=n.then((function(){}))instanceof r))return!0}return!e&&(Da||Fa)&&!Ga})),qa={CONSTRUCTOR:Wa,REJECTION_EVENT:Ga,SUBCLASSING:za},Ha=TypeError,Ya=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw Ha("Bad Promise constructor");e=t,n=r})),this.resolve=tt(e),this.reject=tt(n)},Za={f:function(t){return new Ya(t)}},Ja=va.set,Ka="Promise",Xa=qa.CONSTRUCTOR,Qa=qa.REJECTION_EVENT,tc=qa.SUBCLASSING,ec=ue.getterFor(Ka),nc=ue.set,rc=La&&La.prototype,oc=La,ic=rc,ac=f.TypeError,cc=f.document,uc=f.process,fc=Za.f,sc=fc,lc=!!(cc&&cc.createEvent&&f.dispatchEvent),dc="unhandledrejection",pc=function(t){var e;return!(!D(t)||!L(e=t.then))&&e},vc=function(t,e){var n,r,o,i=e.value,a=1==e.state,c=a?t.ok:t.fail,u=t.resolve,f=t.reject,s=t.domain;try{c?(a||(2===e.rejection&&wc(e),e.rejection=1),!0===c?n=i:(s&&s.enter(),n=c(i),s&&(s.exit(),o=!0)),n===t.promise?f(ac("Promise-chain cycle")):(r=pc(n))?v(r,n,u,f):u(n)):f(i)}catch(t){s&&!o&&s.exit(),f(t)}},gc=function(t,e){t.notified||(t.notified=!0,Na((function(){for(var n,r=t.reactions;n=r.get();)vc(n,t);t.notified=!1,e&&!t.rejection&&yc(t)})))},hc=function(t,e,n){var r,o;lc?((r=cc.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),f.dispatchEvent(r)):r={promise:e,reason:n},!Qa&&(o=f["on"+t])?o(r):t===dc&&function(t,e){try{1==arguments.length?console.error(t):console.error(t,e)}catch(t){}}("Unhandled promise rejection",n)},yc=function(t){v(Ja,f,(function(){var e,n=t.facade,r=t.value;if(mc(t)&&(e=ka((function(){Mo?uc.emit("unhandledRejection",r,n):hc(dc,n,r)})),t.rejection=Mo||mc(t)?2:1,e.error))throw e.value}))},mc=function(t){return 1!==t.rejection&&!t.parent},wc=function(t){v(Ja,f,(function(){var e=t.facade;Mo?uc.emit("rejectionHandled",e):hc("rejectionhandled",e,t.value)}))},bc=function(t,e,n){return function(r){t(e,r,n)}},Sc=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,gc(t,!0))},Ec=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw ac("Promise can't be resolved itself");var r=pc(e);r?Na((function(){var n={done:!1};try{v(r,e,bc(Ec,n,t),bc(Sc,n,t))}catch(e){Sc(n,e,t)}})):(t.value=e,t.state=1,gc(t,!1))}catch(e){Sc({done:!1},e,t)}}};if(Xa&&(ic=(oc=function(t){!function(t,e){if(U(e,t))return t;throw Zi("Incorrect invocation")}(this,ic),tt(t),v(Ba,this);var e=ec(this);try{t(bc(Ec,e),bc(Sc,e))}catch(t){Sc(e,t)}}).prototype,(Ba=function(t){nc(this,{type:Ka,done:!1,notified:!1,parent:!1,reactions:new Sa,rejection:!1,state:0,value:void 0})}).prototype=se(ic,"then",(function(t,e){var n=ec(this),r=fc(di(this,oc));return n.parent=!0,r.ok=!L(t)||t,r.fail=L(e)&&e,r.domain=Mo?uc.domain:void 0,0==n.state?n.reactions.add(r):Na((function(){vc(r,n)})),r.promise})),Ua=function(){var t=new Ba,e=ec(t);this.promise=t,this.resolve=bc(Ec,e),this.reject=bc(Sc,e)},Za.f=fc=function(t){return t===oc||undefined===t?new Ua(t):sc(t)},L(La)&&rc!==Object.prototype)){$a=rc.then,tc||se(rc,"then",(function(t,e){var n=this;return new oc((function(t,e){v($a,n,t,e)})).then(t,e)}),{unsafe:!0});try{delete rc.constructor}catch(t){}kn&&kn(rc,ic)}$e({global:!0,constructor:!0,wrap:!0,forced:Xa},{Promise:oc}),Yi(oc,Ka,!1),Xn(Ka);var xc={},Oc=wt("iterator"),Tc=Array.prototype,Ac=function(t){return void 0!==t&&(xc.Array===t||Tc[Oc]===t)},jc=wt("iterator"),Ic=function(t){if(!R(t))return et(t,jc)||et(t,"@@iterator")||xc[vn(t)]},Rc=TypeError,Mc=function(t,e){var n=arguments.length<2?Ic(t):e;if(tt(n))return _t(v(n,t));throw Rc(X(t)+" is not iterable")},Pc=function(t,e,n){var r,o;_t(t);try{if(!(r=et(t,"return"))){if("throw"===e)throw n;return n}r=v(r,t)}catch(t){o=!0,r=t}if("throw"===e)throw n;if(o)throw r;return _t(r),n},Cc=TypeError,_c=function(t,e){this.stopped=t,this.result=e},Nc=_c.prototype,kc=function(t,e,n){var r,o,i,a,c,u,f,s=n&&n.that,l=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_RECORD),p=!(!n||!n.IS_ITERATOR),g=!(!n||!n.INTERRUPTED),h=Ki(e,s),y=function(t){return r&&Pc(r,"normal",t),new _c(!0,t)},m=function(t){return l?(_t(t),g?h(t[0],t[1],y):h(t[0],t[1])):g?h(t,y):h(t)};if(d)r=t.iterator;else if(p)r=t;else{if(!(o=Ic(t)))throw Cc(X(t)+" is not iterable");if(Ac(o)){for(i=0,a=be(t);a>i;i++)if((c=m(t[i]))&&U(Nc,c))return c;return new _c(!1)}r=Mc(t,o)}for(u=d?t.next:r.next;!(f=v(u,r)).done;){try{c=m(f.value)}catch(t){Pc(r,"throw",t)}if("object"==typeof c&&c&&U(Nc,c))return c}return new _c(!1)},Lc=wt("iterator"),Fc=!1;try{var Dc=0,Bc={next:function(){return{done:!!Dc++}},return:function(){Fc=!0}};Bc[Lc]=function(){return this},Array.from(Bc,(function(){throw 2}))}catch(t){}var Uc=function(t,e){if(!e&&!Fc)return!1;var n=!1;try{var r={};r[Lc]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(t){}return n},$c=qa.CONSTRUCTOR||!Uc((function(t){La.all(t).then(void 0,(function(){}))}));$e({target:"Promise",stat:!0,forced:$c},{all:function(t){var e=this,n=Za.f(e),r=n.resolve,o=n.reject,i=ka((function(){var n=tt(e.resolve),i=[],a=0,c=1;kc(t,(function(t){var u=a++,f=!1;c++,v(n,e,t).then((function(t){f||(f=!0,i[u]=t,--c||r(i))}),o)})),--c||r(i)}));return i.error&&o(i.value),n.promise}});var Vc=qa.CONSTRUCTOR,zc=La&&La.prototype;if($e({target:"Promise",proto:!0,forced:Vc,real:!0},{catch:function(t){return this.then(void 0,t)}}),L(La)){var Gc=B("Promise").prototype.catch;zc.catch!==Gc&&se(zc,"catch",Gc,{unsafe:!0})}$e({target:"Promise",stat:!0,forced:$c},{race:function(t){var e=this,n=Za.f(e),r=n.reject,o=ka((function(){var o=tt(e.resolve);kc(t,(function(t){v(o,e,t).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}}),$e({target:"Promise",stat:!0,forced:qa.CONSTRUCTOR},{reject:function(t){var e=Za.f(this);return v(e.reject,void 0,t),e.promise}});var Wc=qa.CONSTRUCTOR;B("Promise"),$e({target:"Promise",stat:!0,forced:Wc},{resolve:function(t){return function(t,e){if(_t(t),D(e)&&e.constructor===t)return e;var n=Za.f(t);return(0,n.resolve)(e),n.promise}(this,t)}});var qc=Wt.EXISTS,Hc=Function.prototype,Yc=E(Hc.toString),Zc=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Jc=E(Zc.exec);l&&!qc&&Jn(Hc,"name",{configurable:!0,get:function(){try{return Jc(Zc,Yc(this))[1]}catch(t){return""}}});var Kc=E([].join),Xc=I!=Object||!Eo("join",",");$e({target:"Array",proto:!0,forced:Xc},{join:function(t){return Kc(C(this),void 0===t?",":t)}});var Qc=E([].push),tu=function(t){var e=1==t,n=2==t,r=3==t,o=4==t,i=6==t,a=7==t,c=5==t||i;return function(u,f,s,l){for(var d,p,v=ft(u),g=I(v),h=Ki(f,s),y=be(g),m=0,w=l||An,b=e?w(u,y):n||a?w(u,0):void 0;y>m;m++)if((c||m in g)&&(p=h(d=g[m],m,v),t))if(e)b[m]=p;else if(p)switch(t){case 3:return!0;case 5:return d;case 6:return m;case 2:Qc(b,d)}else switch(t){case 4:return!1;case 7:Qc(b,d)}return i?-1:r||o?o:b}},eu={forEach:tu(0),map:tu(1),filter:tu(2),some:tu(3),every:tu(4),find:tu(5),findIndex:tu(6),filterReject:tu(7)}.forEach,nu=Eo("forEach")?[].forEach:function(t){return eu(this,t,arguments.length>1?arguments[1]:void 0)};$e({target:"Array",proto:!0,forced:[].forEach!=nu},{forEach:nu});var ru={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},ou=At("span").classList,iu=ou&&ou.constructor&&ou.constructor.prototype,au=iu===Object.prototype?void 0:iu,cu=function(t){if(t&&t.forEach!==nu)try{$t(t,"forEach",nu)}catch(e){t.forEach=nu}};for(var uu in ru)ru[uu]&&cu(f[uu]&&f[uu].prototype);cu(au);var fu=s((function(){Ve(1)}));$e({target:"Object",stat:!0,forced:fu},{keys:function(t){return Ve(ft(t))}});var su=!s((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),lu=te("IE_PROTO"),du=Object,pu=du.prototype,vu=su?du.getPrototypeOf:function(t){var e=ft(t);if(lt(e,lu))return e[lu];var n=e.constructor;return L(n)&&e instanceof n?n.prototype:e instanceof du?pu:null},gu=s((function(){vu(1)}));$e({target:"Object",stat:!0,forced:gu,sham:!su},{getPrototypeOf:function(t){return vu(ft(t))}});var hu=Ee.includes,yu=s((function(){return!Array(1).includes()}));$e({target:"Array",proto:!0,forced:yu},{includes:function(t){return hu(this,t,arguments.length>1?arguments[1]:void 0)}}),rn("includes");var mu=TypeError,wu=wt("match"),bu=E("".indexOf);$e({target:"String",proto:!0,forced:!function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[wu]=!1,"/./"[t](e)}catch(t){}}return!1}("includes")},{includes:function(t){return!!~bu(Un(P(this)),Un(function(t){if(Dn(t))throw mu("The method doesn't accept regular expressions");return t}(t)),arguments.length>1?arguments[1]:void 0)}});var Su=TypeError,Eu=Object.getOwnPropertyDescriptor,xu=l&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}()?function(t,e){if(on(t)&&!Eu(t,"length").writable)throw Su("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e},Ou=TypeError,Tu=function(t,e){if(!delete t[e])throw Ou("Cannot delete property "+X(e)+" of "+X(t))},Au=In("splice"),ju=Math.max,Iu=Math.min;$e({target:"Array",proto:!0,forced:!Au},{splice:function(t,e){var n,r,o,i,a,c,u=ft(this),f=be(u),s=ye(t,f),l=arguments.length;for(0===l?n=r=0:1===l?(n=0,r=f-s):(n=l-2,r=Iu(ju(ve(e),0),f-s)),cn(f+n-r),o=An(u,r),i=0;i<r;i++)(a=s+i)in u&&un(o,i,u[a]);if(o.length=r,n<r){for(i=s;i<f-r;i++)c=i+n,(a=i+r)in u?u[c]=u[a]:Tu(u,c);for(i=f;i>f-r+n;i--)Tu(u,i-1)}else if(n>r)for(i=f-r;i>s;i--)c=i+n-1,(a=i+r-1)in u?u[c]=u[a]:Tu(u,c);for(i=0;i<n;i++)u[i+s]=arguments[i+2];return xu(u,f-r+n),o}});var Ru=function(t,e,n,r){try{return r?e(_t(n)[0],n[1]):e(n)}catch(e){Pc(t,"throw",e)}},Mu=Array,Pu=!Uc((function(t){Array.from(t)}));$e({target:"Array",stat:!0,forced:Pu},{from:function(t){var e=ft(t),n=xn(this),r=arguments.length,o=r>1?arguments[1]:void 0,i=void 0!==o;i&&(o=Ki(o,r>2?arguments[2]:void 0));var a,c,u,f,s,l,d=Ic(e),p=0;if(!d||this===Mu&&Ac(d))for(a=be(e),c=n?new this(a):Mu(a);a>p;p++)l=i?o(e[p],p):e[p],un(c,p,l);else for(s=(f=Mc(e,d)).next,c=n?new this:[];!(u=v(s,f)).done;p++)l=i?Ru(f,o,[u.value,p],!0):u.value,un(c,p,l);return c.length=p,c}});var Cu,_u,Nu,ku=wt("iterator"),Lu=!1;[].keys&&("next"in(Nu=[].keys())?(_u=vu(vu(Nu)))!==Object.prototype&&(Cu=_u):Lu=!0);var Fu=!D(Cu)||s((function(){var t={};return Cu[ku].call(t)!==t}));Fu&&(Cu={}),L(Cu[ku])||se(Cu,ku,(function(){return this}));var Du={IteratorPrototype:Cu,BUGGY_SAFARI_ITERATORS:Lu},Bu=Du.IteratorPrototype,Uu=function(){return this},$u=Wt.PROPER,Vu=Wt.CONFIGURABLE,zu=Du.IteratorPrototype,Gu=Du.BUGGY_SAFARI_ITERATORS,Wu=wt("iterator"),qu="keys",Hu="values",Yu="entries",Zu=function(){return this},Ju=function(t,e){return{value:t,done:e}},Ku=Zr.charAt,Xu="String Iterator",Qu=ue.set,tf=ue.getterFor(Xu);!function(t,e,n,r,o,i,a){!function(t,e,n,r){var o=e+" Iterator";t.prototype=Qe(Bu,{next:m(+!r,n)}),Yi(t,o,!1),xc[o]=Uu}(n,e,r);var c,u,f,s=function(t){if(t===o&&h)return h;if(!Gu&&t in p)return p[t];switch(t){case qu:case Hu:case Yu:return function(){return new n(this,t)}}return function(){return new n(this)}},l=e+" Iterator",d=!1,p=t.prototype,g=p[Wu]||p["@@iterator"]||o&&p[o],h=!Gu&&g||s(o),y="Array"==e&&p.entries||g;if(y&&(c=vu(y.call(new t)))!==Object.prototype&&c.next&&(vu(c)!==zu&&(kn?kn(c,zu):L(c[Wu])||se(c,Wu,Zu)),Yi(c,l,!0)),$u&&o==Hu&&g&&g.name!==Hu&&(Vu?$t(p,"name",Hu):(d=!0,h=function(){return v(g,this)})),o)if(u={values:s(Hu),keys:i?h:s(qu),entries:s(Yu)},a)for(f in u)(Gu||d||!(f in p))&&se(p,f,u[f]);else $e({target:e,proto:!0,forced:Gu||d},u);p[Wu]!==h&&se(p,Wu,h,{name:o}),xc[e]=h}(String,"String",(function(t){Qu(this,{type:Xu,string:Un(t),index:0})}),(function(){var t,e=tf(this),n=e.string,r=e.index;return r>=n.length?Ju(void 0,!0):(t=Ku(n,r),e.index+=t.length,Ju(t,!1))}));var ef=function(){return ef=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},ef.apply(this,arguments)};function nf(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function c(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,c)}u((r=r.apply(t,e||[])).next())}))}function rf(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}}function of(t){var e=t.replace(/([A-Z])/g,"-$1").toLowerCase();return"-"===e[0]?e.substr(1):e}function af(t){var e=t.replace(/([A-Z])/g,"_$1").toLowerCase();return"_"===e[0]?e.substr(1):e}function cf(t){return af(t)}function uf(t){return JSON.parse(JSON.stringify(t))}function ff(t){try{if("object"===c(JSON.parse(t)))return!0}catch(t){}return!1}function sf(t){void 0===t&&(t=5);for(var e="";t--;)e+=Math.floor(10*Math.random());return e}var lf={type:"d"};function df(t,e){void 0===e&&(e={});var n=e.isNaNAsNumber,r=void 0!==n&&n,o=e.isInfinityAsNumber,i=void 0!==o&&o,a=e.isUnFiniteAsNumber;return"number"==typeof t&&(!(!0!==i&&!0!==(void 0!==a&&a)&&!isFinite(t))&&!(!r&&isNaN(t)))}function pf(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=null;return t&&"function"==typeof t&&(r=t.apply(void 0,e)),r}function vf(){return Date.now?Date.now():(new Date).getTime()}function gf(t){for(var e=t+"=",n=document.cookie.split(";"),r=0;r<n.length;r++){for(var o=n[r];" "==o.charAt(0);)o=o.substring(1,o.length);if(0==o.indexOf(e))return o.substring(e.length,o.length)}return""}function hf(){if(window.MAZEY_BROWSER_INFO&&"object"===c(window.MAZEY_BROWSER_INFO))return window.MAZEY_BROWSER_INFO;var t={engine:"",engineVs:"",platform:"",supporter:"",supporterVs:"",system:"",systemVs:""};try{var e=navigator.userAgent.toLowerCase();if(!e)return t;var n=function(t){return t.test(e)},r=function(t){var n="",r=e.match(t);return r&&mf(r)&&(n=(n=(n=r.toString()).replace(/[^0-9|_.]/g,"")).replace(/_/g,".")),n},o="",i="";n(/windows|win32|win64|wow32|wow64/g)?o="windows":n(/macintosh|macintel/g)?o="macos":n(/x11/g)?o="linux":n(/android|adr/g)?o="android":n(/ios|iphone|ipad|ipod|iwatch/g)&&(o="ios",n(/ipad/g)?i="ipad":n(/iphone/g)?i="iphone":n(/iwatch/g)?i="iwatch":n(/ipod/g)&&(i="ipod")),t=ef(ef({},t),{system:o,appleType:i});var a="";"windows"===o?n(/windows nt 5.0|windows 2000/g)?a="2000":n(/windows nt 5.1|windows xp/g)?a="xp":n(/windows nt 5.2|windows 2003/g)?a="2003":n(/windows nt 6.0|windows vista/g)?a="vista":n(/windows nt 6.1|windows 7/g)?a="7":n(/windows nt 6.2|windows 8/g)?a="8":n(/windows nt 6.3|windows 8.1/g)?a="8.1":n(/windows nt 10.0|windows 10/g)&&(a="10"):"macos"===o?a=r(/os x [\d._]+/g):"android"===o?a=r(/android [\d._]+/g):"ios"===o&&(a=r(/os [\d._]+/g)),t=ef(ef({},t),{systemVs:a});var u="";"windows"===o||"macos"===o||"linux"===o?u="desktop":("android"===o||"ios"===o||n(/mobile/g))&&(u="mobile"),t=ef(ef({},t),{platform:u});var f="",s="";n(/applewebkit/g)?(f="webkit",n(/edge/g)?s="edge":n(/opr/g)?s="opera":n(/chrome/g)?s="chrome":n(/safari/g)&&(s="safari")):n(/gecko/g)&&n(/firefox/g)?(f="gecko",s="firefox"):n(/presto/g)?(f="presto",s="opera"):n(/trident|compatible|msie/g)&&(f="trident",s="iexplore"),t=ef(ef({},t),{engine:f,supporter:s});var l="";"webkit"===f?l=r(/applewebkit\/[\d._]+/g):"gecko"===f?l=r(/gecko\/[\d._]+/g):"presto"===f?l=r(/presto\/[\d._]+/g):"trident"===f&&(l=r(/trident\/[\d._]+/g)),t=ef(ef({},t),{engineVs:l});var d="";"chrome"===s?d=r(/chrome\/[\d._]+/g):"safari"===s?d=r(/version\/[\d._]+/g):"firefox"===s?d=r(/firefox\/[\d._]+/g):"opera"===s?d=r(/opr\/[\d._]+/g):"iexplore"===s?d=r(/(msie [\d._]+)|(rv:[\d._]+)/g):"edge"===s&&(d=r(/edge\/[\d._]+/g)),t=ef(ef({},t),{supporterVs:d});var p="",v="";return n(/micromessenger/g)?(p="wechat",v=r(/micromessenger\/[\d._]+/g)):n(/qqbrowser/g)?(p="qq_browser",v=r(/qqbrowser\/[\d._]+/g)):n(/\sqq/g)?p="qq_app":n(/ucbrowser/g)?(p="uc",v=r(/ucbrowser\/[\d._]+/g)):n(/qihu 360se/g)?p="360":n(/2345explorer/g)?(p="2345",v=r(/2345explorer\/[\d._]+/g)):n(/metasr/g)?p="sougou":n(/lbbrowser/g)?p="liebao":n(/maxthon/g)?(p="maxthon",v=r(/maxthon\/[\d._]+/g)):n(/biliapp/g)&&(p="bilibili"),t=ef(ef({},t),{shell:p,shellVs:v}),window.MAZEY_BROWSER_INFO=t,t}catch(e){return console.warn("MazeyCon:",e),t}}function yf(t,e,n){if(void 0===n&&(n=!1),""!=t&&t){for(var r=0,o="",i=/[^\x00-\xff]/g,a="",c=t.replace(i,"**").length,u=0;u<c&&(null!=(a=t.charAt(u).toString()).match(i)?r+=2:r++,!(r>e));u++)o+=a;return n&&c>e&&(o+="..."),o}return""}function mf(t){var e=!1;return Array.isArray(t)&&t.length&&(e=!0),e}function wf(){var t=window.MAZEY_DEFINE_LISTENERS;return"object"!==c(t)&&(t={},window.MAZEY_DEFINE_LISTENERS=t),t}return t.addClass=function(t,e){var n,r=t.className,o="";""!==r&&(o=" "),n=r+o+e,t.className=n},t.addEvent=function(t,e){var n=wf();void 0===n[t]&&(n[t]=[]),"function"==typeof e&&n[t].push(e)},t.addStyle=function(t,e){if(void 0===e&&(e={id:""}),!t)return!1;var n=document.createDocumentFragment(),r=null,o="",i=document.createElement("style");return e.id?(o="".concat(e.id),(r=document.getElementById(o))?r.innerHTML=t:(i.setAttribute("id",e.id),i.innerHTML=t,n.appendChild(i),document.head.appendChild(n))):(i.innerHTML=t,n.appendChild(i),document.head.appendChild(n)),!0},t.calLongestCommonSubsequence=function(t,e){for(var n=t.length,r=e.length,o=uf(new Array(n).fill(new Array(r).fill(0))),i=0;i<n;++i)for(var a=0;a<r;++a)if(t[i]===e[a]){var c=0;i>0&&a>0&&(c=o[i-1][a-1]),o[i][a]=c+1}else{var u=[0,0],f=u[0],s=u[1];a>0&&(f=o[i][a-1]),i>0&&(s=o[i-1][a]),o[i][a]=Math.max(f,s)}var l=Array.prototype.concat.apply([],o);return Math.max.apply(Math,l)},t.calLongestCommonSubstring=function(t,e){for(var n=t.length,r=e.length,o=uf(new Array(n).fill(new Array(r).fill(0))),i=0;i<n;++i)for(var a=0;a<r;++a)if(t[i]===e[a]){var c=0;i>0&&a>0&&(c=o[i-1][a-1]),o[i][a]=c+1}var u=Array.prototype.concat.apply([],o);return Math.max.apply(Math,u)},t.camelCase2Underscore=cf,t.camelCaseToKebabCase=function(t){return of(t)},t.cancelBubble=function(t){var e=t||window.event;e.stopPropagation?e.stopPropagation():e.cancelBubble=!0},t.clearHtml=function(t,e){void 0===e&&(e={});var n=e.removeNewLine,r=void 0!==n&&n,o="";return t&&(o=t.replace(/<\/?.+?>/g,""),r&&(o=o.replace(/[\r\n]/g,""))),o},t.convert10To26=function(t){for(var e="";t>0;){var n=t%26;0===n&&(n=26),e=String.fromCharCode(n+96)+e,t=(t-n)/26}return e},t.convertCamelToKebab=of,t.convertCamelToUnder=af,t.cutCHSString=function(t,e,n){return void 0===n&&(n=!1),yf(t,e,n)},t.debounce=function(t,e,n){var r=null,o=null,i=null,a=null,c=null,u=function u(){var f=vf()-i;f<e&&f>=0?o=setTimeout(u,e-f):(o=null,n||(c=t.apply(r,a),o||(r=a=null)))};return function(){for(var f=[],s=0;s<arguments.length;s++)f[s]=arguments[s];r=this,a=f,i=vf();var l=n&&!o;return o||(o=setTimeout(u,e)),l&&(c=t.apply(r,a),r=a=null),c}},t.deepCopyObject=uf,t.doFn=pf,t.floatFixed=function(t,e){return void 0===e&&(e=0),parseFloat(t).toFixed(e)},t.floatToPercent=function(t,e){void 0===e&&(e=0);var n="";return n=e?(100*t).toFixed(e):String(Math.floor(100*t)),"".concat(n,"%")},t.formatDate=function(t,e){void 0===e&&(e="yyyy-MM-dd"),t||(t=new Date);var n=new Date(t),r={yyyy:n.getFullYear(),MM:n.getMonth()+1,dd:n.getDate(),hh:n.getHours()<10?"0"+n.getHours():n.getHours(),mm:n.getMinutes()<10?"0"+n.getMinutes():n.getMinutes(),ss:n.getSeconds()<10?"0"+n.getSeconds():n.getSeconds()},o=e||"yyyy-MM-dd";return Object.keys(r).forEach((function(t){var e=r[t];"MM"===t&&Number(e)<=9&&(e="0".concat(e)),o=o.replace(t,String(e))})),o},t.genCustomConsole=function(t,e){void 0===t&&(t=""),void 0===e&&(e={isClosed:!1,showWrap:!1,showDate:!1,locales:"en-US",logFn:function(){},errorFn:function(){}});var n=Object.assign({isClosed:!1,showWrap:!1,showDate:!1,locales:"en-US",logFn:function(){},errorFn:function(){}},e),r=n.isClosed,o=n.showWrap,i=n.showDate,a=n.locales,c=n.logFn,u=n.errorFn,f=Object.create(null),s=function(){return(new Date).toLocaleDateString(a,{weekday:"short",year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"})};return["log","info","warn","error"].forEach((function(e){f[e]=function(){for(var n,a,f=[],l=0;l<arguments.length;l++)f[l]=arguments[l];if(r)return!1;var d=t,p=t;if("string"==typeof t&&t.length>=2){var v=t.length;d=":"===t[v-1]?t.substring(0,v-1):t}o&&console.log("--- ".concat(d," - begin ---")),i&&(p=t?"".concat(s()," ").concat(t):"".concat(s())),t||i?(n=console)[e].apply(n,function(t,e){for(var n=0,r=e.length,o=t.length;n<r;n++,o++)t[o]=e[n];return t}([p],f)):(a=console)[e].apply(a,f),"log"===e&&c(),"error"===e&&u(),o&&console.log("--- ".concat(d," - end ---"))}})),f},t.genHashCode=function(t){var e,n=0;for(e=0;e<t.length;e++)n=(n<<5)-n+t.charCodeAt(e),n|=0;return n},t.genStyleString=function(t,e){var n="";return e&&e.length>0&&(n=e.join(";")+";"),".".concat(t,"{").concat(n,"}")},t.generateRndNum=sf,t.generateUniqueNum=function(t){void 0===t&&(t=3);var e=[vf(),sf(t||3)];return e[0]+e[1]},t.getBrowserInfo=hf,t.getCookie=gf,t.getCurrentVersion=function(){return"v3.x"},t.getDefineListeners=wf,t.getDomain=function(t,e){void 0===e&&(e=["hostname"]);var n=document.createElement("a");return n.href=t,e.reduce((function(t,e){return t+=n[e]}),"")},t.getFileSize=function(t){var e=function(t){return String(Math.ceil(t))};if(!t)return"";var n=1024;return t<n?t+" B":t<Math.pow(n,2)?e(t/n)+" KB":t<Math.pow(n,3)?e(t/Math.pow(n,2))+" MB":t<Math.pow(n,4)?e(t/Math.pow(n,3))+" G":e(t/Math.pow(n,4))+" T"},t.getFriendlyInterval=function(t,e,n){void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=lf);var r=(n=Object.assign(lf,n)).type;df(t)||(t=new Date(t).getTime()),df(e)||(e=new Date(e).getTime());var o=Number(e)-Number(t),i="",a=new Array(4).fill(0),c=a[0],u=(a[1],a[2],a[3]);if(o>=0)switch(c=Math.floor(o/1e3/60/60/24),Math.floor(o/1e3/60/60),Math.floor(o/1e3/60),u=Math.floor(o/1e3),r){case"d":i=c;break;case"text":i=(c=Math.floor(o/1e3/60/60/24))+" 天 "+Math.floor(o/1e3/60/60%24)+" 时 "+Math.floor(o/1e3/60%60)+" 分 "+(u=Math.floor(o/1e3%60))+" 秒";break;default:i=u}return i},t.getHashQueryParam=function(t){var e=location.hash.split("?");if(1===e.length)return"";var n=new RegExp("(^|&)".concat(t,"=([^&]*)(&|$)")),r=e[1].match(n);return r?r[2]:""},t.getLocalStorage=function(t){var e=null;if(t){var n=localStorage.getItem(t);n&&(e=JSON.parse(n))}return e},t.getPerformance=function(t){var e,n;void 0===t&&(t=!1);var r,o,i=new Promise((function(t,r){var o;e=(o=[t,r])[0],n=o[1]})),a=window.performance.timing,c=a.navigationStart||a.fetchStart;function u(){try{if(window.performance&&Boolean(window.performance.getEntriesByType))window.performance.getEntriesByType("paint").forEach((function(t,e,n){var i=Math.round(t.startTime);"first-paint"===t.name?r=i:"first-contentful-paint"===t.name&&(o=i)}));else console.error("paint")}catch(t){console.error(t.message)}if(window.performance&&"function"==typeof window.performance.getEntries){var i,u=(window.performance.getEntries()||[])[0]||{},g={os:f(),osVersion:s(),deviceType:l(),network:d(),screenDirection:p(),unloadTime:a.unloadEventEnd-a.unloadEventStart,redirectTime:a.redirectEnd-a.redirectStart,dnsTime:a.domainLookupEnd-a.domainLookupStart,tcpTime:a.connectEnd-a.connectStart,sslTime:v(a.connectEnd,a.secureConnectionStart),responseTime:a.responseStart-a.requestStart,downloadTime:a.responseEnd-a.responseStart,firstPaintTime:r,firstContentfulPaintTime:o,domreadyTime:a.domContentLoadedEventStart-c||0,onloadTime:a.loadEventStart-c||0,whiteTime:a.responseStart-c,renderTime:a.loadEventEnd-c||0,decodedBodySize:u.decodedBodySize||"",encodedBodySize:u.encodedBodySize||""};if(Object.keys(g).forEach((function(t){df(g[t])&&g[t]<0&&(g[t]=0)})),df(g.whiteTime)&&g.whiteTime>g.onloadTime&&(g.whiteTime=0),c>0)t||Object.keys(g).forEach((function(t){i||(i={}),i[cf(t)]=g[t]})),e(i||g);else n(Error("startTime"))}else n(Error("getEntries"))}function f(){return navigator.userAgent.indexOf("Android")>-1||navigator.userAgent.indexOf("Linux")>-1?"android":navigator.userAgent.indexOf("iPhone")>-1?"ios":navigator.userAgent.indexOf("Windows Phone")>-1?"wp":"others"}function s(){var t,e=navigator.userAgent,n=e.indexOf("Android")>-1||e.indexOf("Linux")>-1,r=!!e.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);return n&&(t=(navigator.userAgent.split(";")[1].match(/\d+\.\d+/g)||[])[0]),r&&(t=(navigator.userAgent.split(";")[1].match(/(\d+)_(\d+)_?(\d+)?/)||[])[0]),t}function l(){var t=navigator.userAgent.toLowerCase(),e=t.match(/(ipad)/i)&&"ipad",n=t.match(/iphone os/i)&&"iphone os",r=t.match(/midp/i)&&"midp",o=t.match(/rv:1.2.3.4/i)&&"rv:1.2.3.4",i=t.match(/ucweb/i)&&"ucweb",a=t.match(/android/i)&&"android",c=t.match(/windows ce/i)&&"windows ce",u=t.match(/windows mobile/i)&&"windows mobile";return e||n||r||o||i||a||c||u?n||r||o||i||a||c||u?"phone":e?"ipad":void 0:"pc"}function d(){var t;if(navigator.connection&&navigator.connection.effectiveType)switch(navigator.connection.effectiveType){case"wifi":t="wifi";break;case"4g":t="4g";break;case"2g":t="2g";break;case"3g":t="3g";break;case"ethernet":t="ethernet";break;case"default":t=void 0}return t}function p(){var t;return window.screen&&window.screen.orientation&&window.screen.orientation.angle&&(180!==window.screen.orientation.angle&&0!==window.screen.orientation.angle||(t="|"),90!==window.screen.orientation.angle&&-90!==window.screen.orientation.angle||(t="-")),t}function v(t,e){var n;return e&&(n=t-e),n}return window.performance&&window.performance.timing&&window.performance.timing.loadEventEnd>0?u():window.addEventListener("load",(function(){window.setTimeout((function(){u()}),0)})),i},t.getQueryParam=function(t){var e=new RegExp("(^|&)"+t+"=([^&]*)(&|$)"),n=location.search.substr(1).match(e);return null!==n?decodeURIComponent(n[2]):""},t.getSessionStorage=function(t){var e=null;if(t){var n=sessionStorage.getItem(t);n&&(e=JSON.parse(n))}return e},t.getUrlFileType=function(t){var e="";if("string"!=typeof t||""==t)return e;var n=/\.[^/?#]+$/.exec(t);return n?(n[0].length>1&&(e=n[0].substring(1)),e):e},t.getUrlParam=function(t,e){var n={};return t.replace(/\??(\w+)=([^&]*)&?/g,(function(t,e,r){if(void 0!==n[e]){var o=n[e];n[e]=[].concat(o,r)}else n[e]=r;return""})),n[e]||""},t.hasClass=function(t,e){for(var n=t.className.split(/\s+/),r=0;r<n.length;r++)if(n[r]===e)return!0;return!1},t.inRate=function(t){return Math.random()<t},t.invokeEvent=function(t){var e=wf()[t];if(e instanceof Array)for(var n=0,r=e.length;n<r;n++)"function"==typeof e[n]&&e[n]({type:t})},t.isJSONString=ff,t.isJsonString=function(t){return ff(t)},t.isNonEmptyArray=mf,t.isNumber=df,t.isSafePWAEnv=function(){var t=hf();return!(!("serviceWorker"in navigator&&function(){var t;try{return t=new Function("return async function(){};")(),null!=Object.getPrototypeOf(t).constructor}catch(t){return!1}}()&&"undefined"!=typeof Promise&&-1!==Promise.toString().indexOf("[native code]")&&Boolean(window.fetch)&&Boolean(window.indexedDB)&&Boolean(window.caches))||t.shell)},t.isSupportWebp=function(){return new Promise((function(t){var e=new Image;e.onload=function(){t(e.width>0&&e.height>0)},e.onerror=function(){t(!1)},e.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAAAAAAfQ//73v/+BiOh/AAA="}))},t.isValidData=function(t,e,n){var r=!1;return e.reduce((function(t,e){return t[e]?t=t[e]:Object.create(null)}),t)===n&&(r=!0),r},t.isValidEmail=function(t){return/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(t)},t.isValidPhoneNumber=function(t){return/^1[3456789]\d{9}$/.test(t)},t.isValidUrl=function(t){return/[a-zA-Z0-9]+:\/\/[-a-zA-Z0-9@:%._+~#=]{1,256}\b([-a-zA-Z0-9\u4E00-\u9FA5()!@:%_+.~#?&//=]*)/gm.test(t)},t.loadCSS=function(t,e){void 0===e&&(e={id:""});var n,r=e.id,o=new Promise((function(t,e){n=[t,e][0]})),i=function(){n(!0)},a=document.createElement("link"),c="onload"in a,u=+navigator.userAgent.replace(/.*(?:AppleWebKit|AndroidWebKit)\/?(\d+).*/i,"$1")<536;if(a.rel="stylesheet",a.type="text/css",a.href=t,void 0!==r&&(a.id=r),document.getElementsByTagName("head")[0].appendChild(a),u||!c)return setTimeout((function(){s(a,i,0)}),1),o;function f(){a.onload=a.onerror=a.onreadystatechange=null,a=null,i()}function s(t,e,n){var r,o=t.sheet;if((n+=1)>3e5)return r=!0,t=null,void e();if(u)o&&(r=!0);else if(o)try{o.cssRules&&(r=!0)}catch(t){"NS_ERROR_DOM_SECURITY_ERR"===t.name&&(r=!0)}setTimeout((function(){r?e():s(t,e,n)}),20)}return c?(a.onload=f,a.onerror=function(){f()}):a.onreadystatechange=function(){/loaded|complete/.test(a.readyState)&&f()},o},t.loadImage=function(t){return new Promise((function(e,n){var r=new Image;r.onload=function(){e(r)},r.onerror=function(t){n(t)},r.src=t}))},t.loadScript=function(t,e){void 0===e&&(e={id:"",callback:function(){},timeout:5e3,isDefer:!1});var n=Object.assign({id:"",callback:function(){},timeout:5e3,isDefer:!1},e),r=n.id,o=n.callback,i=n.timeout,a=n.isDefer,c=null,u=null,f=document.createElement("script"),s=document.getElementsByTagName("script")[0];return f.type="text/javascript",a&&(f.defer="defer"),r&&(f.id=r),f.readyState?f.onreadystatechange=function(){"loaded"!==f.readyState&&"complete"!==f.readyState||(f.onreadystatechange=null,pf(o),pf(c,!0))}:f.onload=function(){pf(o),pf(c,!0)},f.src=t,s&&s.parentNode.insertBefore(f,s),new Promise((function(t,e){var n;c=(n=[t,e])[0],u=n[1],i&&setTimeout(u.bind(null,Error("timeout")),i)}))},t.mNow=vf,t.mTrim=function(t){for(var e=(t=t.replace(/^\s+/,"")).length-1,n=/\s/;n.test(t.charAt(e));)e--;return t.slice(0,e+1)},t.newLine=function(t){if(!t)return"";var e=new RegExp("\\n","g");return t.replace(e,"<br />")},t.removeClass=function(t,e){var n;n=(n=(n=(n=" "+t.className+" ").replace(/(\s+)/gi," ")).replace(" "+e+" "," ")).replace(/(^\s+)|(\s+$)/g,""),t.className=n},t.removeEvent=function(t,e){var n=wf(),r=n[t];if("string"==typeof t&&r instanceof Array)if("function"==typeof e){for(var o=0,i=r.length;o<i;o++)if(r[o]===e){n[t].splice(o,1);break}}else delete n[t]},t.repeatUntilConditionMet=function(t,e,n){var r=this;void 0===e&&(e={}),void 0===n&&(n=function(t){return!0===t});var o=e.interval,i=void 0===o?1e3:o,a=e.times,c=void 0===a?10:a,u=e.context,f=e.args,s=0;"function"!=typeof t&&console.error("Expected a function."),("number"!=typeof i||i<0)&&console.error("Expected a non-negative number for interval."),("number"!=typeof c||c<0)&&console.error("Expected a non-negative number for times."),function e(){setTimeout((function(){return nf(r,void 0,void 0,(function(){var r;return rf(this,(function(o){switch(o.label){case 0:return[4,t.apply(u,f)];case 1:return r=o.sent(),n(r)||++s>=c?[2]:(e(),[2])}}))}))}),i)}()},t.sanitizeInput=function(t){var e={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};return"string"!=typeof t&&console.error("Input must be a string"),t.replace(/[&<>"'/]/g,(function(t){return e[t]}))},t.setCookie=function(t,e,n,r){var o,i;if(n){var a=new Date;a.setTime(a.getTime()+24*n*60*60*1e3),i="; expires="+a.toUTCString()}else i="";var c=location.host;1===c.split(".").length?document.cookie=t+"="+e+i+"; path=/":((o=c.split(".")).shift(),r=r||"."+o.join("."),document.cookie=t+"="+e+i+"; path=/; domain="+r,null!==gf(t)&&gf(t)===e||(r=r||"."+c,document.cookie=t+"="+e+i+"; path=/; domain="+r))},t.setImgWidHeiBySrc=function(){var t,e=window.jQuery||window.$;return e?!(!(t=e("img"))||!t.length)&&(t.each((function(){var t=e(this);if(t){var n=t.attr("src");if(n&&"string"==typeof n&&n.length){var r=n.match(/width=([0-9]+[a-z%]*)/),o=n.match(/height=([0-9]+[a-z%]*)/);r&&mf(r)&&r[1]&&t.width(r[1]),o&&mf(o)&&o[1]&&t.height(o[1])}}})),!0):(t=document.getElementsByTagName("img")).length>0&&(Array.from(t).forEach((function(t){var e=t;if(e){var n=e.getAttribute("src");if(n&&"string"==typeof n&&n.length){var r=n.match(/width=([0-9]+[a-z%]*)/),o=n.match(/height=([0-9]+[a-z%]*)/);r&&mf(r)&&r[1]&&(e.style.width=r[1]),o&&mf(o)&&o[1]&&(e.style.height=o[1])}}})),!0)},t.setLocalStorage=function(t,e){void 0===e&&(e=null),t&&localStorage.setItem(t,JSON.stringify(e))},t.setSessionStorage=function(t,e){void 0===e&&(e=null),t&&sessionStorage.setItem(t,JSON.stringify(e))},t.throttle=function(t,e,n){void 0===n&&(n={}),n=Object.assign({},n);var r=null,o=null,i=null,a=[null,0],c=a[0],u=a[1],f=function(){u=!1===n.leading?0:vf(),i=null,c=t.apply(this,o),i||(r=o=null)};return function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];var l=vf();u||!1!==n.leading||(u=l);var d=e-(l-u);return r=this,o=a,d<=0||d>e?(i&&(clearTimeout(i),i=null),u=l,c=t.apply(r,o),i||(r=o=null)):i||!1===n.trailing||(i=setTimeout(f.bind(r),d)),c}},t.truncateZHString=yf,t.updateQueryParam=function(t,e,n){var r=new RegExp("([?&])"+e+"=.*?(&|$)","i"),o=-1!==t.indexOf("?")?"&":"?";return t.match(r)?t.replace(r,"$1"+e+"="+n+"$2"):t+o+e+"="+n},t.windowLoaded=function(t){void 0===t&&(t=90);var e,n=function(){},r=new Promise((function(t,r){n=t,e=r}));return"complete"===document.readyState?n("complete"):window.addEventListener("load",(function(){return n("load")})),setTimeout((function(){return e(Error("timeout"))}),1e3*t),r},t.zAxiosIsValidRes=function(t,e){void 0===e&&(e={validStatusRange:[200,300],validCode:[0]});var n=Object.assign({validStatusRange:[200,300],validCode:[0]},e),r=n.validStatusRange,o=n.validCode;2!==r.length&&console.error("valid validStatusRange is required");var i=!1;if(t&&t.status&&2===r.length&&t.status>=r[0]&&t.status<r[1]){var a=t.data;a&&o.includes(a.code)&&(i=!0)}return i},Object.defineProperty(t,"__esModule",{value:!0}),t}({});
|
|
6
|
+
var mazey=function(t){"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(t,e){return t(e={exports:{}},e.exports),e.exports}var r,o,i,a=n((function(t){function e(n){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports})),c=(r=a)&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r,u=function(t){return t&&t.Math==Math&&t},f=u("object"==typeof globalThis&&globalThis)||u("object"==typeof window&&window)||u("object"==typeof self&&self)||u("object"==typeof e&&e)||function(){return this}()||Function("return this")(),s=function(t){try{return!!t()}catch(t){return!0}},l=!s((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),d=!s((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),p=Function.prototype.call,v=d?p.bind(p):function(){return p.apply(p,arguments)},g={}.propertyIsEnumerable,h=Object.getOwnPropertyDescriptor,y={f:h&&!g.call({1:2},1)?function(t){var e=h(this,t);return!!e&&e.enumerable}:g},m=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},w=Function.prototype,b=w.call,S=d&&w.bind.bind(b,b),E=d?S:function(t){return function(){return b.apply(t,arguments)}},x=E({}.toString),O=E("".slice),T=function(t){return O(x(t),8,-1)},A=Object,j=E("".split),I=s((function(){return!A("z").propertyIsEnumerable(0)}))?function(t){return"String"==T(t)?j(t,""):A(t)}:A,R=function(t){return null==t},M=TypeError,P=function(t){if(R(t))throw M("Can't call method on "+t);return t},C=function(t){return I(P(t))},_="object"==typeof document&&document.all,N={all:_,IS_HTMLDDA:void 0===_&&void 0!==_},k=N.all,L=N.IS_HTMLDDA?function(t){return"function"==typeof t||t===k}:function(t){return"function"==typeof t},F=N.all,D=N.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:L(t)||t===F}:function(t){return"object"==typeof t?null!==t:L(t)},B=function(t,e){return arguments.length<2?(n=f[t],L(n)?n:void 0):f[t]&&f[t][e];var n},U=E({}.isPrototypeOf),$="undefined"!=typeof navigator&&String(navigator.userAgent)||"",V=f.process,z=f.Deno,G=V&&V.versions||z&&z.version,W=G&&G.v8;W&&(i=(o=W.split("."))[0]>0&&o[0]<4?1:+(o[0]+o[1])),!i&&$&&(!(o=$.match(/Edge\/(\d+)/))||o[1]>=74)&&(o=$.match(/Chrome\/(\d+)/))&&(i=+o[1]);var q=i,H=!!Object.getOwnPropertySymbols&&!s((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&q&&q<41})),Y=H&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Z=Object,J=Y?function(t){return"symbol"==typeof t}:function(t){var e=B("Symbol");return L(e)&&U(e.prototype,Z(t))},K=String,X=function(t){try{return K(t)}catch(t){return"Object"}},Q=TypeError,tt=function(t){if(L(t))return t;throw Q(X(t)+" is not a function")},et=function(t,e){var n=t[e];return R(n)?void 0:tt(n)},nt=TypeError,rt=Object.defineProperty,ot=function(t,e){try{rt(f,t,{value:e,configurable:!0,writable:!0})}catch(n){f[t]=e}return e},it="__core-js_shared__",at=f[it]||ot(it,{}),ct=n((function(t){(t.exports=function(t,e){return at[t]||(at[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.29.1",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.29.1/LICENSE",source:"https://github.com/zloirock/core-js"})})),ut=Object,ft=function(t){return ut(P(t))},st=E({}.hasOwnProperty),lt=Object.hasOwn||function(t,e){return st(ft(t),e)},dt=0,pt=Math.random(),vt=E(1..toString),gt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+vt(++dt+pt,36)},ht=f.Symbol,yt=ct("wks"),mt=Y?ht.for||ht:ht&&ht.withoutSetter||gt,wt=function(t){return lt(yt,t)||(yt[t]=H&<(ht,t)?ht[t]:mt("Symbol."+t)),yt[t]},bt=TypeError,St=wt("toPrimitive"),Et=function(t,e){if(!D(t)||J(t))return t;var n,r=et(t,St);if(r){if(void 0===e&&(e="default"),n=v(r,t,e),!D(n)||J(n))return n;throw bt("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var n,r;if("string"===e&&L(n=t.toString)&&!D(r=v(n,t)))return r;if(L(n=t.valueOf)&&!D(r=v(n,t)))return r;if("string"!==e&&L(n=t.toString)&&!D(r=v(n,t)))return r;throw nt("Can't convert object to primitive value")}(t,e)},xt=function(t){var e=Et(t,"string");return J(e)?e:e+""},Ot=f.document,Tt=D(Ot)&&D(Ot.createElement),At=function(t){return Tt?Ot.createElement(t):{}},jt=!l&&!s((function(){return 7!=Object.defineProperty(At("div"),"a",{get:function(){return 7}}).a})),It=Object.getOwnPropertyDescriptor,Rt={f:l?It:function(t,e){if(t=C(t),e=xt(e),jt)try{return It(t,e)}catch(t){}if(lt(t,e))return m(!v(y.f,t,e),t[e])}},Mt=l&&s((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Pt=String,Ct=TypeError,_t=function(t){if(D(t))return t;throw Ct(Pt(t)+" is not an object")},Nt=TypeError,kt=Object.defineProperty,Lt=Object.getOwnPropertyDescriptor,Ft="enumerable",Dt="configurable",Bt="writable",Ut={f:l?Mt?function(t,e,n){if(_t(t),e=xt(e),_t(n),"function"==typeof t&&"prototype"===e&&"value"in n&&Bt in n&&!n[Bt]){var r=Lt(t,e);r&&r[Bt]&&(t[e]=n.value,n={configurable:Dt in n?n[Dt]:r[Dt],enumerable:Ft in n?n[Ft]:r[Ft],writable:!1})}return kt(t,e,n)}:kt:function(t,e,n){if(_t(t),e=xt(e),_t(n),jt)try{return kt(t,e,n)}catch(t){}if("get"in n||"set"in n)throw Nt("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},$t=l?function(t,e,n){return Ut.f(t,e,m(1,n))}:function(t,e,n){return t[e]=n,t},Vt=Function.prototype,zt=l&&Object.getOwnPropertyDescriptor,Gt=lt(Vt,"name"),Wt={EXISTS:Gt,PROPER:Gt&&"something"===function(){}.name,CONFIGURABLE:Gt&&(!l||l&&zt(Vt,"name").configurable)},qt=E(Function.toString);L(at.inspectSource)||(at.inspectSource=function(t){return qt(t)});var Ht,Yt,Zt,Jt=at.inspectSource,Kt=f.WeakMap,Xt=L(Kt)&&/native code/.test(String(Kt)),Qt=ct("keys"),te=function(t){return Qt[t]||(Qt[t]=gt(t))},ee={},ne="Object already initialized",re=f.TypeError,oe=f.WeakMap;if(Xt||at.state){var ie=at.state||(at.state=new oe);ie.get=ie.get,ie.has=ie.has,ie.set=ie.set,Ht=function(t,e){if(ie.has(t))throw re(ne);return e.facade=t,ie.set(t,e),e},Yt=function(t){return ie.get(t)||{}},Zt=function(t){return ie.has(t)}}else{var ae=te("state");ee[ae]=!0,Ht=function(t,e){if(lt(t,ae))throw re(ne);return e.facade=t,$t(t,ae,e),e},Yt=function(t){return lt(t,ae)?t[ae]:{}},Zt=function(t){return lt(t,ae)}}var ce,ue={set:Ht,get:Yt,has:Zt,enforce:function(t){return Zt(t)?Yt(t):Ht(t,{})},getterFor:function(t){return function(e){var n;if(!D(e)||(n=Yt(e)).type!==t)throw re("Incompatible receiver, "+t+" required");return n}}},fe=n((function(t){var e=Wt.CONFIGURABLE,n=ue.enforce,r=ue.get,o=String,i=Object.defineProperty,a=E("".slice),c=E("".replace),u=E([].join),f=l&&!s((function(){return 8!==i((function(){}),"length",{value:8}).length})),d=String(String).split("String"),p=t.exports=function(t,r,s){"Symbol("===a(o(r),0,7)&&(r="["+c(o(r),/^Symbol\(([^)]*)\)/,"$1")+"]"),s&&s.getter&&(r="get "+r),s&&s.setter&&(r="set "+r),(!lt(t,"name")||e&&t.name!==r)&&(l?i(t,"name",{value:r,configurable:!0}):t.name=r),f&&s&<(s,"arity")&&t.length!==s.arity&&i(t,"length",{value:s.arity});try{s&<(s,"constructor")&&s.constructor?l&&i(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var p=n(t);return lt(p,"source")||(p.source=u(d,"string"==typeof r?r:"")),t};Function.prototype.toString=p((function(){return L(this)&&r(this).source||Jt(this)}),"toString")})),se=function(t,e,n,r){r||(r={});var o=r.enumerable,i=void 0!==r.name?r.name:e;if(L(n)&&fe(n,i,r),r.global)o?t[e]=n:ot(e,n);else{try{r.unsafe?t[e]&&(o=!0):delete t[e]}catch(t){}o?t[e]=n:Ut.f(t,e,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return t},le=Math.ceil,de=Math.floor,pe=Math.trunc||function(t){var e=+t;return(e>0?de:le)(e)},ve=function(t){var e=+t;return e!=e||0===e?0:pe(e)},ge=Math.max,he=Math.min,ye=function(t,e){var n=ve(t);return n<0?ge(n+e,0):he(n,e)},me=Math.min,we=function(t){return t>0?me(ve(t),9007199254740991):0},be=function(t){return we(t.length)},Se=function(t){return function(e,n,r){var o,i=C(e),a=be(i),c=ye(r,a);if(t&&n!=n){for(;a>c;)if((o=i[c++])!=o)return!0}else for(;a>c;c++)if((t||c in i)&&i[c]===n)return t||c||0;return!t&&-1}},Ee={includes:Se(!0),indexOf:Se(!1)},xe=Ee.indexOf,Oe=E([].push),Te=function(t,e){var n,r=C(t),o=0,i=[];for(n in r)!lt(ee,n)&<(r,n)&&Oe(i,n);for(;e.length>o;)lt(r,n=e[o++])&&(~xe(i,n)||Oe(i,n));return i},Ae=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],je=Ae.concat("length","prototype"),Ie={f:Object.getOwnPropertyNames||function(t){return Te(t,je)}},Re={f:Object.getOwnPropertySymbols},Me=E([].concat),Pe=B("Reflect","ownKeys")||function(t){var e=Ie.f(_t(t)),n=Re.f;return n?Me(e,n(t)):e},Ce=function(t,e,n){for(var r=Pe(e),o=Ut.f,i=Rt.f,a=0;a<r.length;a++){var c=r[a];lt(t,c)||n&<(n,c)||o(t,c,i(e,c))}},_e=/#|\.prototype\./,Ne=function(t,e){var n=Le[ke(t)];return n==De||n!=Fe&&(L(e)?s(e):!!e)},ke=Ne.normalize=function(t){return String(t).replace(_e,".").toLowerCase()},Le=Ne.data={},Fe=Ne.NATIVE="N",De=Ne.POLYFILL="P",Be=Ne,Ue=Rt.f,$e=function(t,e){var n,r,o,i,a,c=t.target,u=t.global,s=t.stat;if(n=u?f:s?f[c]||ot(c,{}):(f[c]||{}).prototype)for(r in e){if(i=e[r],o=t.dontCallGetSet?(a=Ue(n,r))&&a.value:n[r],!Be(u?r:c+(s?".":"#")+r,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;Ce(i,o)}(t.sham||o&&o.sham)&&$t(i,"sham",!0),se(n,r,i,t)}},Ve=Object.keys||function(t){return Te(t,Ae)},ze=l&&!Mt?Object.defineProperties:function(t,e){_t(t);for(var n,r=C(e),o=Ve(e),i=o.length,a=0;i>a;)Ut.f(t,n=o[a++],r[n]);return t},Ge={f:ze},We=B("document","documentElement"),qe="prototype",He="script",Ye=te("IE_PROTO"),Ze=function(){},Je=function(t){return"<"+He+">"+t+"</"+He+">"},Ke=function(t){t.write(Je("")),t.close();var e=t.parentWindow.Object;return t=null,e},Xe=function(){try{ce=new ActiveXObject("htmlfile")}catch(t){}var t,e,n;Xe="undefined"!=typeof document?document.domain&&ce?Ke(ce):(e=At("iframe"),n="java"+He+":",e.style.display="none",We.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(Je("document.F=Object")),t.close(),t.F):Ke(ce);for(var r=Ae.length;r--;)delete Xe[qe][Ae[r]];return Xe()};ee[Ye]=!0;var Qe=Object.create||function(t,e){var n;return null!==t?(Ze[qe]=_t(t),n=new Ze,Ze[qe]=null,n[Ye]=t):n=Xe(),void 0===e?n:Ge.f(n,e)},tn=Ut.f,en=wt("unscopables"),nn=Array.prototype;null==nn[en]&&tn(nn,en,{configurable:!0,value:Qe(null)});var rn=function(t){nn[en][t]=!0};$e({target:"Array",proto:!0},{fill:function(t){for(var e=ft(this),n=be(e),r=arguments.length,o=ye(r>1?arguments[1]:void 0,n),i=r>2?arguments[2]:void 0,a=void 0===i?n:ye(i,n);a>o;)e[o++]=t;return e}}),rn("fill");var on=Array.isArray||function(t){return"Array"==T(t)},an=TypeError,cn=function(t){if(t>9007199254740991)throw an("Maximum allowed index exceeded");return t},un=function(t,e,n){var r=xt(e);r in t?Ut.f(t,r,m(0,n)):t[r]=n},fn={};fn[wt("toStringTag")]="z";var sn="[object z]"===String(fn),ln=wt("toStringTag"),dn=Object,pn="Arguments"==T(function(){return arguments}()),vn=sn?T:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=dn(t),ln))?n:pn?T(e):"Object"==(r=T(e))&&L(e.callee)?"Arguments":r},gn=function(){},hn=[],yn=B("Reflect","construct"),mn=/^\s*(?:class|function)\b/,wn=E(mn.exec),bn=!mn.exec(gn),Sn=function(t){if(!L(t))return!1;try{return yn(gn,hn,t),!0}catch(t){return!1}},En=function(t){if(!L(t))return!1;switch(vn(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return bn||!!wn(mn,Jt(t))}catch(t){return!0}};En.sham=!0;var xn=!yn||s((function(){var t;return Sn(Sn.call)||!Sn(Object)||!Sn((function(){t=!0}))||t}))?En:Sn,On=wt("species"),Tn=Array,An=function(t,e){return new(function(t){var e;return on(t)&&(e=t.constructor,(xn(e)&&(e===Tn||on(e.prototype))||D(e)&&null===(e=e[On]))&&(e=void 0)),void 0===e?Tn:e}(t))(0===e?0:e)},jn=wt("species"),In=function(t){return q>=51||!s((function(){var e=[];return(e.constructor={})[jn]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},Rn=wt("isConcatSpreadable"),Mn=q>=51||!s((function(){var t=[];return t[Rn]=!1,t.concat()[0]!==t})),Pn=function(t){if(!D(t))return!1;var e=t[Rn];return void 0!==e?!!e:on(t)},Cn=!Mn||!In("concat");$e({target:"Array",proto:!0,arity:1,forced:Cn},{concat:function(t){var e,n,r,o,i,a=ft(this),c=An(a,0),u=0;for(e=-1,r=arguments.length;e<r;e++)if(Pn(i=-1===e?a:arguments[e]))for(o=be(i),cn(u+o),n=0;n<o;n++,u++)n in i&&un(c,u,i[n]);else cn(u+1),un(c,u++,i);return c.length=u,c}});var _n=String,Nn=TypeError,kn=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{t=function(t,e,n){try{return E(tt(Object.getOwnPropertyDescriptor(t,e)[n]))}catch(t){}}(Object.prototype,"__proto__","set"),t(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return _t(n),function(t){if("object"==typeof t||L(t))return t;throw Nn("Can't set "+_n(t)+" as a prototype")}(r),e?t(n,r):n.__proto__=r,n}}():void 0),Ln=function(t,e,n){var r,o;return kn&&L(r=e.constructor)&&r!==n&&D(o=r.prototype)&&o!==n.prototype&&kn(t,o),t},Fn=wt("match"),Dn=function(t){var e;return D(t)&&(void 0!==(e=t[Fn])?!!e:"RegExp"==T(t))},Bn=String,Un=function(t){if("Symbol"===vn(t))throw TypeError("Cannot convert a Symbol value to a string");return Bn(t)},$n=function(){var t=_t(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e},Vn=RegExp.prototype,zn=function(t){var e=t.flags;return void 0!==e||"flags"in Vn||lt(t,"flags")||!U(Vn,t)?e:v($n,t)},Gn=f.RegExp,Wn=s((function(){var t=Gn("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),qn=Wn||s((function(){return!Gn("a","y").sticky})),Hn={BROKEN_CARET:Wn||s((function(){var t=Gn("^r","gy");return t.lastIndex=2,null!=t.exec("str")})),MISSED_STICKY:qn,UNSUPPORTED_Y:Wn},Yn=Ut.f,Zn=function(t,e,n){n in t||Yn(t,n,{configurable:!0,get:function(){return e[n]},set:function(t){e[n]=t}})},Jn=function(t,e,n){return n.get&&fe(n.get,e,{getter:!0}),n.set&&fe(n.set,e,{setter:!0}),Ut.f(t,e,n)},Kn=wt("species"),Xn=function(t){var e=B(t);l&&e&&!e[Kn]&&Jn(e,Kn,{configurable:!0,get:function(){return this}})},Qn=f.RegExp,tr=s((function(){var t=Qn(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)})),er=f.RegExp,nr=s((function(){var t=er("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),rr=Ie.f,or=ue.enforce,ir=wt("match"),ar=f.RegExp,cr=ar.prototype,ur=f.SyntaxError,fr=E(cr.exec),sr=E("".charAt),lr=E("".replace),dr=E("".indexOf),pr=E("".slice),vr=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,gr=/a/g,hr=/a/g,yr=new ar(gr)!==gr,mr=Hn.MISSED_STICKY,wr=Hn.UNSUPPORTED_Y,br=l&&(!yr||mr||tr||nr||s((function(){return hr[ir]=!1,ar(gr)!=gr||ar(hr)==hr||"/a/i"!=ar(gr,"i")})));if(Be("RegExp",br)){for(var Sr=function(t,e){var n,r,o,i,a,c,u=U(cr,this),f=Dn(t),s=void 0===e,l=[],d=t;if(!u&&f&&s&&t.constructor===Sr)return t;if((f||U(cr,t))&&(t=t.source,s&&(e=zn(d))),t=void 0===t?"":Un(t),e=void 0===e?"":Un(e),d=t,tr&&"dotAll"in gr&&(r=!!e&&dr(e,"s")>-1)&&(e=lr(e,/s/g,"")),n=e,mr&&"sticky"in gr&&(o=!!e&&dr(e,"y")>-1)&&wr&&(e=lr(e,/y/g,"")),nr&&(i=function(t){for(var e,n=t.length,r=0,o="",i=[],a={},c=!1,u=!1,f=0,s="";r<=n;r++){if("\\"===(e=sr(t,r)))e+=sr(t,++r);else if("]"===e)c=!1;else if(!c)switch(!0){case"["===e:c=!0;break;case"("===e:fr(vr,pr(t,r+1))&&(r+=2,u=!0),o+=e,f++;continue;case">"===e&&u:if(""===s||lt(a,s))throw new ur("Invalid capture group name");a[s]=!0,i[i.length]=[s,f],u=!1,s="";continue}u?s+=e:o+=e}return[o,i]}(t),t=i[0],l=i[1]),a=Ln(ar(t,e),u?this:cr,Sr),(r||o||l.length)&&(c=or(a),r&&(c.dotAll=!0,c.raw=Sr(function(t){for(var e,n=t.length,r=0,o="",i=!1;r<=n;r++)"\\"!==(e=sr(t,r))?i||"."!==e?("["===e?i=!0:"]"===e&&(i=!1),o+=e):o+="[\\s\\S]":o+=e+sr(t,++r);return o}(t),n)),o&&(c.sticky=!0),l.length&&(c.groups=l)),t!==d)try{$t(a,"source",""===d?"(?:)":d)}catch(t){}return a},Er=rr(ar),xr=0;Er.length>xr;)Zn(Sr,ar,Er[xr++]);cr.constructor=Sr,Sr.prototype=cr,se(f,"RegExp",Sr,{constructor:!0})}Xn("RegExp");var Or=ue.get,Tr=ct("native-string-replace",String.prototype.replace),Ar=RegExp.prototype.exec,jr=Ar,Ir=E("".charAt),Rr=E("".indexOf),Mr=E("".replace),Pr=E("".slice),Cr=function(){var t=/a/,e=/b*/g;return v(Ar,t,"a"),v(Ar,e,"a"),0!==t.lastIndex||0!==e.lastIndex}(),_r=Hn.BROKEN_CARET,Nr=void 0!==/()??/.exec("")[1];(Cr||Nr||_r||tr||nr)&&(jr=function(t){var e,n,r,o,i,a,c,u=this,f=Or(u),s=Un(t),l=f.raw;if(l)return l.lastIndex=u.lastIndex,e=v(jr,l,s),u.lastIndex=l.lastIndex,e;var d=f.groups,p=_r&&u.sticky,g=v($n,u),h=u.source,y=0,m=s;if(p&&(g=Mr(g,"y",""),-1===Rr(g,"g")&&(g+="g"),m=Pr(s,u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&"\n"!==Ir(s,u.lastIndex-1))&&(h="(?: "+h+")",m=" "+m,y++),n=new RegExp("^(?:"+h+")",g)),Nr&&(n=new RegExp("^"+h+"$(?!\\s)",g)),Cr&&(r=u.lastIndex),o=v(Ar,p?n:u,m),p?o?(o.input=Pr(o.input,y),o[0]=Pr(o[0],y),o.index=u.lastIndex,u.lastIndex+=o[0].length):u.lastIndex=0:Cr&&o&&(u.lastIndex=u.global?o.index+o[0].length:r),Nr&&o&&o.length>1&&v(Tr,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=Qe(null),i=0;i<d.length;i++)a[(c=d[i])[0]]=o[c[1]];return o});var kr=jr;$e({target:"RegExp",proto:!0,forced:/./.exec!==kr},{exec:kr});var Lr=Wt.PROPER,Fr="toString",Dr=RegExp.prototype[Fr],Br=s((function(){return"/a/b"!=Dr.call({source:"a",flags:"b"})})),Ur=Lr&&Dr.name!=Fr;(Br||Ur)&&se(RegExp.prototype,Fr,(function(){var t=_t(this);return"/"+Un(t.source)+"/"+Un(zn(t))}),{unsafe:!0});var $r=function(t){if("Function"===T(t))return E(t)},Vr=wt("species"),zr=RegExp.prototype,Gr=function(t,e,n,r){var o=wt(t),i=!s((function(){var e={};return e[o]=function(){return 7},7!=""[t](e)})),a=i&&!s((function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[Vr]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return e=!0,null},n[o](""),!e}));if(!i||!a||n){var c=$r(/./[o]),u=e(o,""[t],(function(t,e,n,r,o){var a=$r(t),u=e.exec;return u===kr||u===zr.exec?i&&!o?{done:!0,value:c(e,n,r)}:{done:!0,value:a(n,e,r)}:{done:!1}}));se(String.prototype,t,u[0]),se(zr,o,u[1])}r&&$t(zr[o],"sham",!0)},Wr=E("".charAt),qr=E("".charCodeAt),Hr=E("".slice),Yr=function(t){return function(e,n){var r,o,i=Un(P(e)),a=ve(n),c=i.length;return a<0||a>=c?t?"":void 0:(r=qr(i,a))<55296||r>56319||a+1===c||(o=qr(i,a+1))<56320||o>57343?t?Wr(i,a):r:t?Hr(i,a,a+2):o-56320+(r-55296<<10)+65536}},Zr={codeAt:Yr(!1),charAt:Yr(!0)},Jr=Zr.charAt,Kr=function(t,e,n){return e+(n?Jr(t,e).length:1)},Xr=TypeError,Qr=function(t,e){var n=t.exec;if(L(n)){var r=v(n,t,e);return null!==r&&_t(r),r}if("RegExp"===T(t))return v(kr,t,e);throw Xr("RegExp#exec called on incompatible receiver")};Gr("match",(function(t,e,n){return[function(e){var n=P(this),r=R(e)?void 0:et(e,t);return r?v(r,e,n):new RegExp(e)[t](Un(n))},function(t){var r=_t(this),o=Un(t),i=n(e,r,o);if(i.done)return i.value;if(!r.global)return Qr(r,o);var a=r.unicode;r.lastIndex=0;for(var c,u=[],f=0;null!==(c=Qr(r,o));){var s=Un(c[0]);u[f]=s,""===s&&(r.lastIndex=Kr(o,we(r.lastIndex),a)),f++}return 0===f?null:u}]}));var to=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e};Gr("search",(function(t,e,n){return[function(e){var n=P(this),r=R(e)?void 0:et(e,t);return r?v(r,e,n):new RegExp(e)[t](Un(n))},function(t){var r=_t(this),o=Un(t),i=n(e,r,o);if(i.done)return i.value;var a=r.lastIndex;to(a,0)||(r.lastIndex=0);var c=Qr(r,o);return to(r.lastIndex,a)||(r.lastIndex=a),null===c?-1:c.index}]}));var eo=Function.prototype,no=eo.apply,ro=eo.call,oo="object"==typeof Reflect&&Reflect.apply||(d?ro.bind(no):function(){return ro.apply(no,arguments)}),io=Math.floor,ao=E("".charAt),co=E("".replace),uo=E("".slice),fo=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,so=/\$([$&'`]|\d{1,2})/g,lo=function(t,e,n,r,o,i){var a=n+t.length,c=r.length,u=so;return void 0!==o&&(o=ft(o),u=fo),co(i,u,(function(i,u){var f;switch(ao(u,0)){case"$":return"$";case"&":return t;case"`":return uo(e,0,n);case"'":return uo(e,a);case"<":f=o[uo(u,1,-1)];break;default:var s=+u;if(0===s)return i;if(s>c){var l=io(s/10);return 0===l?i:l<=c?void 0===r[l-1]?ao(u,1):r[l-1]+ao(u,1):i}f=r[s-1]}return void 0===f?"":f}))},po=wt("replace"),vo=Math.max,go=Math.min,ho=E([].concat),yo=E([].push),mo=E("".indexOf),wo=E("".slice),bo="$0"==="a".replace(/./,"$0"),So=!!/./[po]&&""===/./[po]("a","$0");Gr("replace",(function(t,e,n){var r=So?"$":"$0";return[function(t,n){var r=P(this),o=R(t)?void 0:et(t,po);return o?v(o,t,r,n):v(e,Un(r),t,n)},function(t,o){var i=_t(this),a=Un(t);if("string"==typeof o&&-1===mo(o,r)&&-1===mo(o,"$<")){var c=n(e,i,a,o);if(c.done)return c.value}var u=L(o);u||(o=Un(o));var f=i.global;if(f){var s=i.unicode;i.lastIndex=0}for(var l=[];;){var d=Qr(i,a);if(null===d)break;if(yo(l,d),!f)break;""===Un(d[0])&&(i.lastIndex=Kr(a,we(i.lastIndex),s))}for(var p,v="",g=0,h=0;h<l.length;h++){for(var y=Un((d=l[h])[0]),m=vo(go(ve(d.index),a.length),0),w=[],b=1;b<d.length;b++)yo(w,void 0===(p=d[b])?p:String(p));var S=d.groups;if(u){var E=ho([y],w,m,a);void 0!==S&&yo(E,S);var x=Un(oo(o,void 0,E))}else x=lo(y,a,m,w,S,o);m>=g&&(v+=wo(a,g,m)+x,g=m+y.length)}return v+wo(a,g)}]}),!!s((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!bo||So);var Eo=function(t,e){var n=[][t];return!!n&&s((function(){n.call(null,e||function(){return 1},1)}))},xo=Ee.indexOf,Oo=$r([].indexOf),To=!!Oo&&1/Oo([1],1,-0)<0,Ao=To||!Eo("indexOf");$e({target:"Array",proto:!0,forced:Ao},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return To?Oo(this,t,e)||0:xo(this,t,e)}});var jo=TypeError,Io=function(t){return function(e,n,r,o){tt(n);var i=ft(e),a=I(i),c=be(i),u=t?c-1:0,f=t?-1:1;if(r<2)for(;;){if(u in a){o=a[u],u+=f;break}if(u+=f,t?u<0:c<=u)throw jo("Reduce of empty array with no initial value")}for(;t?u>=0:c>u;u+=f)u in a&&(o=n(o,a[u],u,i));return o}},Ro={left:Io(!1),right:Io(!0)},Mo="undefined"!=typeof process&&"process"==T(process),Po=Ro.left,Co=!Mo&&q>79&&q<83||!Eo("reduce");$e({target:"Array",proto:!0,forced:Co},{reduce:function(t){var e=arguments.length;return Po(this,t,e,e>1?arguments[1]:void 0)}});var _o=sn?{}.toString:function(){return"[object "+vn(this)+"]"};sn||se(Object.prototype,"toString",_o,{unsafe:!0});var No=E([].slice),ko=In("slice"),Lo=wt("species"),Fo=Array,Do=Math.max;$e({target:"Array",proto:!0,forced:!ko},{slice:function(t,e){var n,r,o,i=C(this),a=be(i),c=ye(t,a),u=ye(void 0===e?a:e,a);if(on(i)&&(n=i.constructor,(xn(n)&&(n===Fo||on(n.prototype))||D(n)&&null===(n=n[Lo]))&&(n=void 0),n===Fo||void 0===n))return No(i,c,u);for(r=new(void 0===n?Fo:n)(Do(u-c,0)),o=0;c<u;c++,o++)c in i&&un(r,o,i[c]);return r.length=o,r}});var Bo=E(1..valueOf),Uo=RangeError,$o=RangeError,Vo=String,zo=Math.floor,Go=E((function(t){var e=Un(P(this)),n="",r=ve(t);if(r<0||r==1/0)throw Uo("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(e+=e))1&r&&(n+=e);return n})),Wo=E("".slice),qo=E(1..toFixed),Ho=function(t,e,n){return 0===e?n:e%2==1?Ho(t,e-1,n*t):Ho(t*t,e/2,n)},Yo=function(t,e,n){for(var r=-1,o=n;++r<6;)o+=e*t[r],t[r]=o%1e7,o=zo(o/1e7)},Zo=function(t,e){for(var n=6,r=0;--n>=0;)r+=t[n],t[n]=zo(r/e),r=r%e*1e7},Jo=function(t){for(var e=6,n="";--e>=0;)if(""!==n||0===e||0!==t[e]){var r=Vo(t[e]);n=""===n?r:n+Go("0",7-r.length)+r}return n},Ko=s((function(){return"0.000"!==qo(8e-5,3)||"1"!==qo(.9,0)||"1.25"!==qo(1.255,2)||"1000000000000000128"!==qo(0xde0b6b3a7640080,0)}))||!s((function(){qo({})}));$e({target:"Number",proto:!0,forced:Ko},{toFixed:function(t){var e,n,r,o,i=Bo(this),a=ve(t),c=[0,0,0,0,0,0],u="",f="0";if(a<0||a>20)throw $o("Incorrect fraction digits");if(i!=i)return"NaN";if(i<=-1e21||i>=1e21)return Vo(i);if(i<0&&(u="-",i=-i),i>1e-21)if(e=function(t){for(var e=0,n=t;n>=4096;)e+=12,n/=4096;for(;n>=2;)e+=1,n/=2;return e}(i*Ho(2,69,1))-69,n=e<0?i*Ho(2,-e,1):i/Ho(2,e,1),n*=4503599627370496,(e=52-e)>0){for(Yo(c,0,n),r=a;r>=7;)Yo(c,1e7,0),r-=7;for(Yo(c,Ho(10,r,1),0),r=e-1;r>=23;)Zo(c,1<<23),r-=23;Zo(c,1<<r),Yo(c,1,1),Zo(c,2),f=Jo(c)}else Yo(c,0,n),Yo(c,1<<-e,0),f=Jo(c)+Go("0",a);return f=a>0?u+((o=f.length)<=a?"0."+Go("0",a-o)+f:Wo(f,0,o-a)+"."+Wo(f,o-a)):u+f}});var Xo="\t\n\v\f\r \u2028\u2029\ufeff",Qo=E("".replace),ti=RegExp("^["+Xo+"]+"),ei=RegExp("(^|[^"+Xo+"])["+Xo+"]+$"),ni=function(t){return function(e){var n=Un(P(e));return 1&t&&(n=Qo(n,ti,"")),2&t&&(n=Qo(n,ei,"$1")),n}},ri={start:ni(1),end:ni(2),trim:ni(3)},oi=ri.trim,ii=E("".charAt),ai=f.parseFloat,ci=f.Symbol,ui=ci&&ci.iterator,fi=1/ai(Xo+"-0")!=-1/0||ui&&!s((function(){ai(Object(ui))}))?function(t){var e=oi(Un(t)),n=ai(e);return 0===n&&"-"==ii(e,0)?-0:n}:ai;$e({global:!0,forced:parseFloat!=fi},{parseFloat:fi});var si=TypeError,li=wt("species"),di=function(t,e){var n,r=_t(t).constructor;return void 0===r||R(n=_t(r)[li])?e:function(t){if(xn(t))return t;throw si(X(t)+" is not a constructor")}(n)},pi=Array,vi=Math.max,gi=function(t,e,n){for(var r=be(t),o=ye(e,r),i=ye(void 0===n?r:n,r),a=pi(vi(i-o,0)),c=0;o<i;o++,c++)un(a,c,t[o]);return a.length=c,a},hi=Hn.UNSUPPORTED_Y,yi=4294967295,mi=Math.min,wi=[].push,bi=E(/./.exec),Si=E(wi),Ei=E("".slice),xi=!s((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));Gr("split",(function(t,e,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,n){var r=Un(P(this)),o=void 0===n?yi:n>>>0;if(0===o)return[];if(void 0===t)return[r];if(!Dn(t))return v(e,r,t,o);for(var i,a,c,u=[],f=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),s=0,l=new RegExp(t.source,f+"g");(i=v(kr,l,r))&&!((a=l.lastIndex)>s&&(Si(u,Ei(r,s,i.index)),i.length>1&&i.index<r.length&&oo(wi,u,gi(i,1)),c=i[0].length,s=a,u.length>=o));)l.lastIndex===i.index&&l.lastIndex++;return s===r.length?!c&&bi(l,"")||Si(u,""):Si(u,Ei(r,s)),u.length>o?gi(u,0,o):u}:"0".split(void 0,0).length?function(t,n){return void 0===t&&0===n?[]:v(e,this,t,n)}:e,[function(e,n){var o=P(this),i=R(e)?void 0:et(e,t);return i?v(i,e,o,n):v(r,Un(o),e,n)},function(t,o){var i=_t(this),a=Un(t),c=n(r,i,a,o,r!==e);if(c.done)return c.value;var u=di(i,RegExp),f=i.unicode,s=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(hi?"g":"y"),l=new u(hi?"^(?:"+i.source+")":i,s),d=void 0===o?yi:o>>>0;if(0===d)return[];if(0===a.length)return null===Qr(l,a)?[a]:[];for(var p=0,v=0,g=[];v<a.length;){l.lastIndex=hi?0:v;var h,y=Qr(l,hi?Ei(a,v):a);if(null===y||(h=mi(we(l.lastIndex+(hi?v:0)),a.length))===p)v=Kr(a,v,f);else{if(Si(g,Ei(a,p,v)),g.length===d)return g;for(var m=1;m<=y.length-1;m++)if(Si(g,y[m]),g.length===d)return g;v=p=h}}return Si(g,Ei(a,p)),g}]}),!xi,hi);var Oi=Object.assign,Ti=Object.defineProperty,Ai=E([].concat),ji=!Oi||s((function(){if(l&&1!==Oi({b:1},Oi(Ti({},"a",{enumerable:!0,get:function(){Ti(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!=Oi({},t)[n]||Ve(Oi({},e)).join("")!=r}))?function(t,e){for(var n=ft(t),r=arguments.length,o=1,i=Re.f,a=y.f;r>o;)for(var c,u=I(arguments[o++]),f=i?Ai(Ve(u),i(u)):Ve(u),s=f.length,d=0;s>d;)c=f[d++],l&&!v(a,u,c)||(n[c]=u[c]);return n}:Oi;$e({target:"Object",stat:!0,arity:2,forced:Object.assign!==ji},{assign:ji});var Ii=f,Ri=Ie.f,Mi=Rt.f,Pi=Ut.f,Ci=ri.trim,_i="Number",Ni=f[_i];Ii[_i];var ki=Ni.prototype,Li=f.TypeError,Fi=E("".slice),Di=E("".charCodeAt),Bi=function(t){var e,n,r,o,i,a,c,u,f=Et(t,"number");if(J(f))throw Li("Cannot convert a Symbol value to a number");if("string"==typeof f&&f.length>2)if(f=Ci(f),43===(e=Di(f,0))||45===e){if(88===(n=Di(f,2))||120===n)return NaN}else if(48===e){switch(Di(f,1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+f}for(a=(i=Fi(f,2)).length,c=0;c<a;c++)if((u=Di(i,c))<48||u>o)return NaN;return parseInt(i,r)}return+f},Ui=Be(_i,!Ni(" 0o1")||!Ni("0b1")||Ni("+0x1")),$i=function(t){var e,n=arguments.length<1?0:Ni(function(t){var e=Et(t,"number");return"bigint"==typeof e?e:Bi(e)}(t));return U(ki,e=this)&&s((function(){Bo(e)}))?Ln(Object(n),this,$i):n};$i.prototype=ki,Ui&&(ki.constructor=$i),$e({global:!0,constructor:!0,wrap:!0,forced:Ui},{Number:$i});Ui&&function(t,e){for(var n,r=l?Ri(e):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),o=0;r.length>o;o++)lt(e,n=r[o])&&!lt(t,n)&&Pi(t,n,Mi(e,n))}(Ii[_i],Ni);var Vi,zi,Gi,Wi,qi=Ut.f,Hi=wt("toStringTag"),Yi=function(t,e,n){t&&!n&&(t=t.prototype),t&&!lt(t,Hi)&&qi(t,Hi,{configurable:!0,value:e})},Zi=TypeError,Ji=$r($r.bind),Ki=function(t,e){return tt(t),void 0===e?t:d?Ji(t,e):function(){return t.apply(e,arguments)}},Xi=TypeError,Qi=/(?:ipad|iphone|ipod).*applewebkit/i.test($),ta=f.setImmediate,ea=f.clearImmediate,na=f.process,ra=f.Dispatch,oa=f.Function,ia=f.MessageChannel,aa=f.String,ca=0,ua={},fa="onreadystatechange";s((function(){Vi=f.location}));var sa=function(t){if(lt(ua,t)){var e=ua[t];delete ua[t],e()}},la=function(t){return function(){sa(t)}},da=function(t){sa(t.data)},pa=function(t){f.postMessage(aa(t),Vi.protocol+"//"+Vi.host)};ta&&ea||(ta=function(t){!function(t,e){if(t<e)throw Xi("Not enough arguments")}(arguments.length,1);var e=L(t)?t:oa(t),n=No(arguments,1);return ua[++ca]=function(){oo(e,void 0,n)},zi(ca),ca},ea=function(t){delete ua[t]},Mo?zi=function(t){na.nextTick(la(t))}:ra&&ra.now?zi=function(t){ra.now(la(t))}:ia&&!Qi?(Wi=(Gi=new ia).port2,Gi.port1.onmessage=da,zi=Ki(Wi.postMessage,Wi)):f.addEventListener&&L(f.postMessage)&&!f.importScripts&&Vi&&"file:"!==Vi.protocol&&!s(pa)?(zi=pa,f.addEventListener("message",da,!1)):zi=fa in At("script")?function(t){We.appendChild(At("script"))[fa]=function(){We.removeChild(this),sa(t)}}:function(t){setTimeout(la(t),0)});var va={set:ta,clear:ea},ga=function(){this.head=null,this.tail=null};ga.prototype={add:function(t){var e={item:t,next:null},n=this.tail;n?n.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}};var ha,ya,ma,wa,ba,Sa=ga,Ea=/ipad|iphone|ipod/i.test($)&&"undefined"!=typeof Pebble,xa=/web0s(?!.*chrome)/i.test($),Oa=Rt.f,Ta=va.set,Aa=f.MutationObserver||f.WebKitMutationObserver,ja=f.document,Ia=f.process,Ra=f.Promise,Ma=Oa(f,"queueMicrotask"),Pa=Ma&&Ma.value;if(!Pa){var Ca=new Sa,_a=function(){var t,e;for(Mo&&(t=Ia.domain)&&t.exit();e=Ca.get();)try{e()}catch(t){throw Ca.head&&ha(),t}t&&t.enter()};Qi||Mo||xa||!Aa||!ja?!Ea&&Ra&&Ra.resolve?((wa=Ra.resolve(void 0)).constructor=Ra,ba=Ki(wa.then,wa),ha=function(){ba(_a)}):Mo?ha=function(){Ia.nextTick(_a)}:(Ta=Ki(Ta,f),ha=function(){Ta(_a)}):(ya=!0,ma=ja.createTextNode(""),new Aa(_a).observe(ma,{characterData:!0}),ha=function(){ma.data=ya=!ya}),Pa=function(t){Ca.head||ha(),Ca.add(t)}}var Na=Pa,ka=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},La=f.Promise,Fa="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,Da=!Fa&&!Mo&&"object"==typeof window&&"object"==typeof document;La&&La.prototype;var Ba,Ua,$a,Va=wt("species"),za=!1,Ga=L(f.PromiseRejectionEvent),Wa=Be("Promise",(function(){var t=Jt(La),e=t!==String(La);if(!e&&66===q)return!0;if(!q||q<51||!/native code/.test(t)){var n=new La((function(t){t(1)})),r=function(t){t((function(){}),(function(){}))};if((n.constructor={})[Va]=r,!(za=n.then((function(){}))instanceof r))return!0}return!e&&(Da||Fa)&&!Ga})),qa={CONSTRUCTOR:Wa,REJECTION_EVENT:Ga,SUBCLASSING:za},Ha=TypeError,Ya=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw Ha("Bad Promise constructor");e=t,n=r})),this.resolve=tt(e),this.reject=tt(n)},Za={f:function(t){return new Ya(t)}},Ja=va.set,Ka="Promise",Xa=qa.CONSTRUCTOR,Qa=qa.REJECTION_EVENT,tc=qa.SUBCLASSING,ec=ue.getterFor(Ka),nc=ue.set,rc=La&&La.prototype,oc=La,ic=rc,ac=f.TypeError,cc=f.document,uc=f.process,fc=Za.f,sc=fc,lc=!!(cc&&cc.createEvent&&f.dispatchEvent),dc="unhandledrejection",pc=function(t){var e;return!(!D(t)||!L(e=t.then))&&e},vc=function(t,e){var n,r,o,i=e.value,a=1==e.state,c=a?t.ok:t.fail,u=t.resolve,f=t.reject,s=t.domain;try{c?(a||(2===e.rejection&&wc(e),e.rejection=1),!0===c?n=i:(s&&s.enter(),n=c(i),s&&(s.exit(),o=!0)),n===t.promise?f(ac("Promise-chain cycle")):(r=pc(n))?v(r,n,u,f):u(n)):f(i)}catch(t){s&&!o&&s.exit(),f(t)}},gc=function(t,e){t.notified||(t.notified=!0,Na((function(){for(var n,r=t.reactions;n=r.get();)vc(n,t);t.notified=!1,e&&!t.rejection&&yc(t)})))},hc=function(t,e,n){var r,o;lc?((r=cc.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),f.dispatchEvent(r)):r={promise:e,reason:n},!Qa&&(o=f["on"+t])?o(r):t===dc&&function(t,e){try{1==arguments.length?console.error(t):console.error(t,e)}catch(t){}}("Unhandled promise rejection",n)},yc=function(t){v(Ja,f,(function(){var e,n=t.facade,r=t.value;if(mc(t)&&(e=ka((function(){Mo?uc.emit("unhandledRejection",r,n):hc(dc,n,r)})),t.rejection=Mo||mc(t)?2:1,e.error))throw e.value}))},mc=function(t){return 1!==t.rejection&&!t.parent},wc=function(t){v(Ja,f,(function(){var e=t.facade;Mo?uc.emit("rejectionHandled",e):hc("rejectionhandled",e,t.value)}))},bc=function(t,e,n){return function(r){t(e,r,n)}},Sc=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,gc(t,!0))},Ec=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw ac("Promise can't be resolved itself");var r=pc(e);r?Na((function(){var n={done:!1};try{v(r,e,bc(Ec,n,t),bc(Sc,n,t))}catch(e){Sc(n,e,t)}})):(t.value=e,t.state=1,gc(t,!1))}catch(e){Sc({done:!1},e,t)}}};if(Xa&&(ic=(oc=function(t){!function(t,e){if(U(e,t))return t;throw Zi("Incorrect invocation")}(this,ic),tt(t),v(Ba,this);var e=ec(this);try{t(bc(Ec,e),bc(Sc,e))}catch(t){Sc(e,t)}}).prototype,(Ba=function(t){nc(this,{type:Ka,done:!1,notified:!1,parent:!1,reactions:new Sa,rejection:!1,state:0,value:void 0})}).prototype=se(ic,"then",(function(t,e){var n=ec(this),r=fc(di(this,oc));return n.parent=!0,r.ok=!L(t)||t,r.fail=L(e)&&e,r.domain=Mo?uc.domain:void 0,0==n.state?n.reactions.add(r):Na((function(){vc(r,n)})),r.promise})),Ua=function(){var t=new Ba,e=ec(t);this.promise=t,this.resolve=bc(Ec,e),this.reject=bc(Sc,e)},Za.f=fc=function(t){return t===oc||undefined===t?new Ua(t):sc(t)},L(La)&&rc!==Object.prototype)){$a=rc.then,tc||se(rc,"then",(function(t,e){var n=this;return new oc((function(t,e){v($a,n,t,e)})).then(t,e)}),{unsafe:!0});try{delete rc.constructor}catch(t){}kn&&kn(rc,ic)}$e({global:!0,constructor:!0,wrap:!0,forced:Xa},{Promise:oc}),Yi(oc,Ka,!1),Xn(Ka);var xc={},Oc=wt("iterator"),Tc=Array.prototype,Ac=function(t){return void 0!==t&&(xc.Array===t||Tc[Oc]===t)},jc=wt("iterator"),Ic=function(t){if(!R(t))return et(t,jc)||et(t,"@@iterator")||xc[vn(t)]},Rc=TypeError,Mc=function(t,e){var n=arguments.length<2?Ic(t):e;if(tt(n))return _t(v(n,t));throw Rc(X(t)+" is not iterable")},Pc=function(t,e,n){var r,o;_t(t);try{if(!(r=et(t,"return"))){if("throw"===e)throw n;return n}r=v(r,t)}catch(t){o=!0,r=t}if("throw"===e)throw n;if(o)throw r;return _t(r),n},Cc=TypeError,_c=function(t,e){this.stopped=t,this.result=e},Nc=_c.prototype,kc=function(t,e,n){var r,o,i,a,c,u,f,s=n&&n.that,l=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_RECORD),p=!(!n||!n.IS_ITERATOR),g=!(!n||!n.INTERRUPTED),h=Ki(e,s),y=function(t){return r&&Pc(r,"normal",t),new _c(!0,t)},m=function(t){return l?(_t(t),g?h(t[0],t[1],y):h(t[0],t[1])):g?h(t,y):h(t)};if(d)r=t.iterator;else if(p)r=t;else{if(!(o=Ic(t)))throw Cc(X(t)+" is not iterable");if(Ac(o)){for(i=0,a=be(t);a>i;i++)if((c=m(t[i]))&&U(Nc,c))return c;return new _c(!1)}r=Mc(t,o)}for(u=d?t.next:r.next;!(f=v(u,r)).done;){try{c=m(f.value)}catch(t){Pc(r,"throw",t)}if("object"==typeof c&&c&&U(Nc,c))return c}return new _c(!1)},Lc=wt("iterator"),Fc=!1;try{var Dc=0,Bc={next:function(){return{done:!!Dc++}},return:function(){Fc=!0}};Bc[Lc]=function(){return this},Array.from(Bc,(function(){throw 2}))}catch(t){}var Uc=function(t,e){if(!e&&!Fc)return!1;var n=!1;try{var r={};r[Lc]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(t){}return n},$c=qa.CONSTRUCTOR||!Uc((function(t){La.all(t).then(void 0,(function(){}))}));$e({target:"Promise",stat:!0,forced:$c},{all:function(t){var e=this,n=Za.f(e),r=n.resolve,o=n.reject,i=ka((function(){var n=tt(e.resolve),i=[],a=0,c=1;kc(t,(function(t){var u=a++,f=!1;c++,v(n,e,t).then((function(t){f||(f=!0,i[u]=t,--c||r(i))}),o)})),--c||r(i)}));return i.error&&o(i.value),n.promise}});var Vc=qa.CONSTRUCTOR,zc=La&&La.prototype;if($e({target:"Promise",proto:!0,forced:Vc,real:!0},{catch:function(t){return this.then(void 0,t)}}),L(La)){var Gc=B("Promise").prototype.catch;zc.catch!==Gc&&se(zc,"catch",Gc,{unsafe:!0})}$e({target:"Promise",stat:!0,forced:$c},{race:function(t){var e=this,n=Za.f(e),r=n.reject,o=ka((function(){var o=tt(e.resolve);kc(t,(function(t){v(o,e,t).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}}),$e({target:"Promise",stat:!0,forced:qa.CONSTRUCTOR},{reject:function(t){var e=Za.f(this);return v(e.reject,void 0,t),e.promise}});var Wc=qa.CONSTRUCTOR;B("Promise"),$e({target:"Promise",stat:!0,forced:Wc},{resolve:function(t){return function(t,e){if(_t(t),D(e)&&e.constructor===t)return e;var n=Za.f(t);return(0,n.resolve)(e),n.promise}(this,t)}});var qc=Wt.EXISTS,Hc=Function.prototype,Yc=E(Hc.toString),Zc=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Jc=E(Zc.exec);l&&!qc&&Jn(Hc,"name",{configurable:!0,get:function(){try{return Jc(Zc,Yc(this))[1]}catch(t){return""}}});var Kc=E([].join),Xc=I!=Object||!Eo("join",",");$e({target:"Array",proto:!0,forced:Xc},{join:function(t){return Kc(C(this),void 0===t?",":t)}});var Qc=E([].push),tu=function(t){var e=1==t,n=2==t,r=3==t,o=4==t,i=6==t,a=7==t,c=5==t||i;return function(u,f,s,l){for(var d,p,v=ft(u),g=I(v),h=Ki(f,s),y=be(g),m=0,w=l||An,b=e?w(u,y):n||a?w(u,0):void 0;y>m;m++)if((c||m in g)&&(p=h(d=g[m],m,v),t))if(e)b[m]=p;else if(p)switch(t){case 3:return!0;case 5:return d;case 6:return m;case 2:Qc(b,d)}else switch(t){case 4:return!1;case 7:Qc(b,d)}return i?-1:r||o?o:b}},eu={forEach:tu(0),map:tu(1),filter:tu(2),some:tu(3),every:tu(4),find:tu(5),findIndex:tu(6),filterReject:tu(7)}.forEach,nu=Eo("forEach")?[].forEach:function(t){return eu(this,t,arguments.length>1?arguments[1]:void 0)};$e({target:"Array",proto:!0,forced:[].forEach!=nu},{forEach:nu});var ru={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},ou=At("span").classList,iu=ou&&ou.constructor&&ou.constructor.prototype,au=iu===Object.prototype?void 0:iu,cu=function(t){if(t&&t.forEach!==nu)try{$t(t,"forEach",nu)}catch(e){t.forEach=nu}};for(var uu in ru)ru[uu]&&cu(f[uu]&&f[uu].prototype);cu(au);var fu=s((function(){Ve(1)}));$e({target:"Object",stat:!0,forced:fu},{keys:function(t){return Ve(ft(t))}});var su=!s((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),lu=te("IE_PROTO"),du=Object,pu=du.prototype,vu=su?du.getPrototypeOf:function(t){var e=ft(t);if(lt(e,lu))return e[lu];var n=e.constructor;return L(n)&&e instanceof n?n.prototype:e instanceof du?pu:null},gu=s((function(){vu(1)}));$e({target:"Object",stat:!0,forced:gu,sham:!su},{getPrototypeOf:function(t){return vu(ft(t))}});var hu=Ee.includes,yu=s((function(){return!Array(1).includes()}));$e({target:"Array",proto:!0,forced:yu},{includes:function(t){return hu(this,t,arguments.length>1?arguments[1]:void 0)}}),rn("includes");var mu=TypeError,wu=wt("match"),bu=E("".indexOf);$e({target:"String",proto:!0,forced:!function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[wu]=!1,"/./"[t](e)}catch(t){}}return!1}("includes")},{includes:function(t){return!!~bu(Un(P(this)),Un(function(t){if(Dn(t))throw mu("The method doesn't accept regular expressions");return t}(t)),arguments.length>1?arguments[1]:void 0)}});var Su=TypeError,Eu=Object.getOwnPropertyDescriptor,xu=l&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}()?function(t,e){if(on(t)&&!Eu(t,"length").writable)throw Su("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e},Ou=TypeError,Tu=function(t,e){if(!delete t[e])throw Ou("Cannot delete property "+X(e)+" of "+X(t))},Au=In("splice"),ju=Math.max,Iu=Math.min;$e({target:"Array",proto:!0,forced:!Au},{splice:function(t,e){var n,r,o,i,a,c,u=ft(this),f=be(u),s=ye(t,f),l=arguments.length;for(0===l?n=r=0:1===l?(n=0,r=f-s):(n=l-2,r=Iu(ju(ve(e),0),f-s)),cn(f+n-r),o=An(u,r),i=0;i<r;i++)(a=s+i)in u&&un(o,i,u[a]);if(o.length=r,n<r){for(i=s;i<f-r;i++)c=i+n,(a=i+r)in u?u[c]=u[a]:Tu(u,c);for(i=f;i>f-r+n;i--)Tu(u,i-1)}else if(n>r)for(i=f-r;i>s;i--)c=i+n-1,(a=i+r-1)in u?u[c]=u[a]:Tu(u,c);for(i=0;i<n;i++)u[i+s]=arguments[i+2];return xu(u,f-r+n),o}});var Ru=function(t,e,n,r){try{return r?e(_t(n)[0],n[1]):e(n)}catch(e){Pc(t,"throw",e)}},Mu=Array,Pu=!Uc((function(t){Array.from(t)}));$e({target:"Array",stat:!0,forced:Pu},{from:function(t){var e=ft(t),n=xn(this),r=arguments.length,o=r>1?arguments[1]:void 0,i=void 0!==o;i&&(o=Ki(o,r>2?arguments[2]:void 0));var a,c,u,f,s,l,d=Ic(e),p=0;if(!d||this===Mu&&Ac(d))for(a=be(e),c=n?new this(a):Mu(a);a>p;p++)l=i?o(e[p],p):e[p],un(c,p,l);else for(s=(f=Mc(e,d)).next,c=n?new this:[];!(u=v(s,f)).done;p++)l=i?Ru(f,o,[u.value,p],!0):u.value,un(c,p,l);return c.length=p,c}});var Cu,_u,Nu,ku=wt("iterator"),Lu=!1;[].keys&&("next"in(Nu=[].keys())?(_u=vu(vu(Nu)))!==Object.prototype&&(Cu=_u):Lu=!0);var Fu=!D(Cu)||s((function(){var t={};return Cu[ku].call(t)!==t}));Fu&&(Cu={}),L(Cu[ku])||se(Cu,ku,(function(){return this}));var Du={IteratorPrototype:Cu,BUGGY_SAFARI_ITERATORS:Lu},Bu=Du.IteratorPrototype,Uu=function(){return this},$u=Wt.PROPER,Vu=Wt.CONFIGURABLE,zu=Du.IteratorPrototype,Gu=Du.BUGGY_SAFARI_ITERATORS,Wu=wt("iterator"),qu="keys",Hu="values",Yu="entries",Zu=function(){return this},Ju=function(t,e){return{value:t,done:e}},Ku=Zr.charAt,Xu="String Iterator",Qu=ue.set,tf=ue.getterFor(Xu);!function(t,e,n,r,o,i,a){!function(t,e,n,r){var o=e+" Iterator";t.prototype=Qe(Bu,{next:m(+!r,n)}),Yi(t,o,!1),xc[o]=Uu}(n,e,r);var c,u,f,s=function(t){if(t===o&&h)return h;if(!Gu&&t in p)return p[t];switch(t){case qu:case Hu:case Yu:return function(){return new n(this,t)}}return function(){return new n(this)}},l=e+" Iterator",d=!1,p=t.prototype,g=p[Wu]||p["@@iterator"]||o&&p[o],h=!Gu&&g||s(o),y="Array"==e&&p.entries||g;if(y&&(c=vu(y.call(new t)))!==Object.prototype&&c.next&&(vu(c)!==zu&&(kn?kn(c,zu):L(c[Wu])||se(c,Wu,Zu)),Yi(c,l,!0)),$u&&o==Hu&&g&&g.name!==Hu&&(Vu?$t(p,"name",Hu):(d=!0,h=function(){return v(g,this)})),o)if(u={values:s(Hu),keys:i?h:s(qu),entries:s(Yu)},a)for(f in u)(Gu||d||!(f in p))&&se(p,f,u[f]);else $e({target:e,proto:!0,forced:Gu||d},u);p[Wu]!==h&&se(p,Wu,h,{name:o}),xc[e]=h}(String,"String",(function(t){Qu(this,{type:Xu,string:Un(t),index:0})}),(function(){var t,e=tf(this),n=e.string,r=e.index;return r>=n.length?Ju(void 0,!0):(t=Ku(n,r),e.index+=t.length,Ju(t,!1))}));var ef=function(){return ef=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},ef.apply(this,arguments)};function nf(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function c(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,c)}u((r=r.apply(t,e||[])).next())}))}function rf(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}}function of(t){var e=t.replace(/([A-Z])/g,"-$1").toLowerCase();return"-"===e[0]?e.substr(1):e}function af(t){var e=t.replace(/([A-Z])/g,"_$1").toLowerCase();return"_"===e[0]?e.substr(1):e}function cf(t){return af(t)}function uf(t){return JSON.parse(JSON.stringify(t))}function ff(t){try{if("object"===c(JSON.parse(t)))return!0}catch(t){}return!1}function sf(t){void 0===t&&(t=5);for(var e="";t--;)e+=Math.floor(10*Math.random());return e}var lf={type:"d"};function df(t,e){void 0===e&&(e={});var n=e.isNaNAsNumber,r=void 0!==n&&n,o=e.isInfinityAsNumber,i=void 0!==o&&o,a=e.isUnFiniteAsNumber;return"number"==typeof t&&(!(!0!==i&&!0!==(void 0!==a&&a)&&!isFinite(t))&&!(!r&&isNaN(t)))}function pf(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=null;return t&&"function"==typeof t&&(r=t.apply(void 0,e)),r}function vf(t,e){void 0===e&&(e={id:"",callback:function(){},timeout:5e3,isDefer:!1});var n=Object.assign({id:"",callback:function(){},timeout:5e3,isDefer:!1},e),r=n.id,o=n.callback,i=n.timeout,a=n.isDefer,c=null,u=null,f=document.createElement("script"),s=document.getElementsByTagName("script")[0];return f.type="text/javascript",a&&(f.defer="defer"),r&&(f.id=r),f.readyState?f.onreadystatechange=function(){"loaded"!==f.readyState&&"complete"!==f.readyState||(f.onreadystatechange=null,pf(o),pf(c,"loaded"))}:f.onload=function(){pf(o),pf(c,"loaded")},f.src=t,s&&s.parentNode.insertBefore(f,s),new Promise((function(t,e){var n;c=(n=[t,e])[0],u=n[1],i&&setTimeout(u.bind(null,"timeout"),i)}))}function gf(){return Date.now?Date.now():(new Date).getTime()}function hf(t){for(var e=t+"=",n=document.cookie.split(";"),r=0;r<n.length;r++){for(var o=n[r];" "==o.charAt(0);)o=o.substring(1,o.length);if(0==o.indexOf(e))return o.substring(e.length,o.length)}return""}function yf(){if(window.MAZEY_BROWSER_INFO&&"object"===c(window.MAZEY_BROWSER_INFO))return window.MAZEY_BROWSER_INFO;var t={engine:"",engineVs:"",platform:"",supporter:"",supporterVs:"",system:"",systemVs:""};try{var e=navigator.userAgent.toLowerCase();if(!e)return t;var n=function(t){return t.test(e)},r=function(t){var n="",r=e.match(t);return r&&wf(r)&&(n=(n=(n=r.toString()).replace(/[^0-9|_.]/g,"")).replace(/_/g,".")),n},o="",i="";n(/windows|win32|win64|wow32|wow64/g)?o="windows":n(/macintosh|macintel/g)?o="macos":n(/x11/g)?o="linux":n(/android|adr/g)?o="android":n(/ios|iphone|ipad|ipod|iwatch/g)&&(o="ios",n(/ipad/g)?i="ipad":n(/iphone/g)?i="iphone":n(/iwatch/g)?i="iwatch":n(/ipod/g)&&(i="ipod")),t=ef(ef({},t),{system:o,appleType:i});var a="";"windows"===o?n(/windows nt 5.0|windows 2000/g)?a="2000":n(/windows nt 5.1|windows xp/g)?a="xp":n(/windows nt 5.2|windows 2003/g)?a="2003":n(/windows nt 6.0|windows vista/g)?a="vista":n(/windows nt 6.1|windows 7/g)?a="7":n(/windows nt 6.2|windows 8/g)?a="8":n(/windows nt 6.3|windows 8.1/g)?a="8.1":n(/windows nt 10.0|windows 10/g)&&(a="10"):"macos"===o?a=r(/os x [\d._]+/g):"android"===o?a=r(/android [\d._]+/g):"ios"===o&&(a=r(/os [\d._]+/g)),t=ef(ef({},t),{systemVs:a});var u="";"windows"===o||"macos"===o||"linux"===o?u="desktop":("android"===o||"ios"===o||n(/mobile/g))&&(u="mobile"),t=ef(ef({},t),{platform:u});var f="",s="";n(/applewebkit/g)?(f="webkit",n(/edge/g)?s="edge":n(/opr/g)?s="opera":n(/chrome/g)?s="chrome":n(/safari/g)&&(s="safari")):n(/gecko/g)&&n(/firefox/g)?(f="gecko",s="firefox"):n(/presto/g)?(f="presto",s="opera"):n(/trident|compatible|msie/g)&&(f="trident",s="iexplore"),t=ef(ef({},t),{engine:f,supporter:s});var l="";"webkit"===f?l=r(/applewebkit\/[\d._]+/g):"gecko"===f?l=r(/gecko\/[\d._]+/g):"presto"===f?l=r(/presto\/[\d._]+/g):"trident"===f&&(l=r(/trident\/[\d._]+/g)),t=ef(ef({},t),{engineVs:l});var d="";"chrome"===s?d=r(/chrome\/[\d._]+/g):"safari"===s?d=r(/version\/[\d._]+/g):"firefox"===s?d=r(/firefox\/[\d._]+/g):"opera"===s?d=r(/opr\/[\d._]+/g):"iexplore"===s?d=r(/(msie [\d._]+)|(rv:[\d._]+)/g):"edge"===s&&(d=r(/edge\/[\d._]+/g)),t=ef(ef({},t),{supporterVs:d});var p="",v="";return n(/micromessenger/g)?(p="wechat",v=r(/micromessenger\/[\d._]+/g)):n(/qqbrowser/g)?(p="qq_browser",v=r(/qqbrowser\/[\d._]+/g)):n(/\sqq/g)?p="qq_app":n(/ucbrowser/g)?(p="uc",v=r(/ucbrowser\/[\d._]+/g)):n(/qihu 360se/g)?p="360":n(/2345explorer/g)?(p="2345",v=r(/2345explorer\/[\d._]+/g)):n(/metasr/g)?p="sougou":n(/lbbrowser/g)?p="liebao":n(/maxthon/g)?(p="maxthon",v=r(/maxthon\/[\d._]+/g)):n(/biliapp/g)&&(p="bilibili"),t=ef(ef({},t),{shell:p,shellVs:v}),window.MAZEY_BROWSER_INFO=t,t}catch(e){return console.warn("MazeyCon:",e),t}}function mf(t,e,n){if(void 0===n&&(n=!1),""!=t&&t){for(var r=0,o="",i=/[^\x00-\xff]/g,a="",c=t.replace(i,"**").length,u=0;u<c&&(null!=(a=t.charAt(u).toString()).match(i)?r+=2:r++,!(r>e));u++)o+=a;return n&&c>e&&(o+="..."),o}return""}function wf(t){var e=!1;return Array.isArray(t)&&t.length&&(e=!0),e}function bf(){var t=window.MAZEY_DEFINE_LISTENERS;return"object"!==c(t)&&(t={},window.MAZEY_DEFINE_LISTENERS=t),t}return t.addClass=function(t,e){var n,r=t.className,o="";""!==r&&(o=" "),n=r+o+e,t.className=n},t.addEvent=function(t,e){var n=bf();void 0===n[t]&&(n[t]=[]),"function"==typeof e&&n[t].push(e)},t.addStyle=function(t,e){if(void 0===e&&(e={id:""}),!t)return!1;var n=document.createDocumentFragment(),r=null,o="",i=document.createElement("style");return e.id?(o="".concat(e.id),(r=document.getElementById(o))?r.innerHTML=t:(i.setAttribute("id",e.id),i.innerHTML=t,n.appendChild(i),document.head.appendChild(n))):(i.innerHTML=t,n.appendChild(i),document.head.appendChild(n)),!0},t.calLongestCommonSubsequence=function(t,e){for(var n=t.length,r=e.length,o=uf(new Array(n).fill(new Array(r).fill(0))),i=0;i<n;++i)for(var a=0;a<r;++a)if(t[i]===e[a]){var c=0;i>0&&a>0&&(c=o[i-1][a-1]),o[i][a]=c+1}else{var u=[0,0],f=u[0],s=u[1];a>0&&(f=o[i][a-1]),i>0&&(s=o[i-1][a]),o[i][a]=Math.max(f,s)}var l=Array.prototype.concat.apply([],o);return Math.max.apply(Math,l)},t.calLongestCommonSubstring=function(t,e){for(var n=t.length,r=e.length,o=uf(new Array(n).fill(new Array(r).fill(0))),i=0;i<n;++i)for(var a=0;a<r;++a)if(t[i]===e[a]){var c=0;i>0&&a>0&&(c=o[i-1][a-1]),o[i][a]=c+1}var u=Array.prototype.concat.apply([],o);return Math.max.apply(Math,u)},t.camelCase2Underscore=cf,t.camelCaseToKebabCase=function(t){return of(t)},t.cancelBubble=function(t){var e=t||window.event;e.stopPropagation?e.stopPropagation():e.cancelBubble=!0},t.clearHtml=function(t,e){void 0===e&&(e={});var n=e.removeNewLine,r=void 0!==n&&n,o="";return t&&(o=t.replace(/<\/?.+?>/g,""),r&&(o=o.replace(/[\r\n]/g,""))),o},t.convert10To26=function(t){for(var e="";t>0;){var n=t%26;0===n&&(n=26),e=String.fromCharCode(n+96)+e,t=(t-n)/26}return e},t.convertCamelToKebab=of,t.convertCamelToUnder=af,t.cutCHSString=function(t,e,n){return void 0===n&&(n=!1),mf(t,e,n)},t.debounce=function(t,e,n){var r=null,o=null,i=null,a=null,c=null,u=function u(){var f=gf()-i;f<e&&f>=0?o=setTimeout(u,e-f):(o=null,n||(c=t.apply(r,a),o||(r=a=null)))};return function(){for(var f=[],s=0;s<arguments.length;s++)f[s]=arguments[s];r=this,a=f,i=gf();var l=n&&!o;return o||(o=setTimeout(u,e)),l&&(c=t.apply(r,a),r=a=null),c}},t.deepCopyObject=uf,t.doFn=pf,t.floatFixed=function(t,e){return void 0===e&&(e=0),parseFloat(t).toFixed(e)},t.floatToPercent=function(t,e){void 0===e&&(e=0);var n="";return n=e?(100*t).toFixed(e):String(Math.floor(100*t)),"".concat(n,"%")},t.formatDate=function(t,e){void 0===e&&(e="yyyy-MM-dd"),t||(t=new Date);var n=new Date(t),r={yyyy:n.getFullYear(),MM:n.getMonth()+1,dd:n.getDate(),hh:n.getHours()<10?"0"+n.getHours():n.getHours(),mm:n.getMinutes()<10?"0"+n.getMinutes():n.getMinutes(),ss:n.getSeconds()<10?"0"+n.getSeconds():n.getSeconds()},o=e||"yyyy-MM-dd";return Object.keys(r).forEach((function(t){var e=r[t];"MM"===t&&Number(e)<=9&&(e="0".concat(e)),o=o.replace(t,String(e))})),o},t.genCustomConsole=function(t,e){void 0===t&&(t=""),void 0===e&&(e={isClosed:!1,showWrap:!1,showDate:!1,locales:"en-US",logFn:function(){},errorFn:function(){}});var n=Object.assign({isClosed:!1,showWrap:!1,showDate:!1,locales:"en-US",logFn:function(){},errorFn:function(){}},e),r=n.isClosed,o=n.showWrap,i=n.showDate,a=n.locales,c=n.logFn,u=n.errorFn,f=Object.create(null),s=function(){return(new Date).toLocaleDateString(a,{weekday:"short",year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"})};return["log","info","warn","error"].forEach((function(e){f[e]=function(){for(var n,a,f=[],l=0;l<arguments.length;l++)f[l]=arguments[l];if(r)return!1;var d=t,p=t;if("string"==typeof t&&t.length>=2){var v=t.length;d=":"===t[v-1]?t.substring(0,v-1):t}o&&console.log("--- ".concat(d," - begin ---")),i&&(p=t?"".concat(s()," ").concat(t):"".concat(s())),t||i?(n=console)[e].apply(n,function(t,e){for(var n=0,r=e.length,o=t.length;n<r;n++,o++)t[o]=e[n];return t}([p],f)):(a=console)[e].apply(a,f),"log"===e&&c(),"error"===e&&u(),o&&console.log("--- ".concat(d," - end ---"))}})),f},t.genHashCode=function(t){var e,n=0;for(e=0;e<t.length;e++)n=(n<<5)-n+t.charCodeAt(e),n|=0;return n},t.genStyleString=function(t,e){var n="";return e&&e.length>0&&(n=e.join(";")+";"),".".concat(t,"{").concat(n,"}")},t.generateRndNum=sf,t.generateUniqueNum=function(t){void 0===t&&(t=3);var e=[gf(),sf(t||3)];return e[0]+e[1]},t.getBrowserInfo=yf,t.getCookie=hf,t.getCurrentVersion=function(){return"v3.x"},t.getDefineListeners=bf,t.getDomain=function(t,e){void 0===e&&(e=["hostname"]);var n=document.createElement("a");return n.href=t,e.reduce((function(t,e){return t+=n[e]}),"")},t.getFileSize=function(t){var e=function(t){return String(Math.ceil(t))};if(!t)return"";var n=1024;return t<n?t+" B":t<Math.pow(n,2)?e(t/n)+" KB":t<Math.pow(n,3)?e(t/Math.pow(n,2))+" MB":t<Math.pow(n,4)?e(t/Math.pow(n,3))+" G":e(t/Math.pow(n,4))+" T"},t.getFriendlyInterval=function(t,e,n){void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=lf);var r=(n=Object.assign(lf,n)).type;df(t)||(t=new Date(t).getTime()),df(e)||(e=new Date(e).getTime());var o=Number(e)-Number(t),i="",a=new Array(4).fill(0),c=a[0],u=(a[1],a[2],a[3]);if(o>=0)switch(c=Math.floor(o/1e3/60/60/24),Math.floor(o/1e3/60/60),Math.floor(o/1e3/60),u=Math.floor(o/1e3),r){case"d":i=c;break;case"text":i=(c=Math.floor(o/1e3/60/60/24))+" 天 "+Math.floor(o/1e3/60/60%24)+" 时 "+Math.floor(o/1e3/60%60)+" 分 "+(u=Math.floor(o/1e3%60))+" 秒";break;default:i=u}return i},t.getHashQueryParam=function(t){var e=location.hash.split("?");if(1===e.length)return"";var n=new RegExp("(^|&)".concat(t,"=([^&]*)(&|$)")),r=e[1].match(n);return r?r[2]:""},t.getLocalStorage=function(t){var e=null;if(t){var n=localStorage.getItem(t);n&&(e=JSON.parse(n))}return e},t.getPerformance=function(t){var e,n;void 0===t&&(t=!1);var r,o,i=new Promise((function(t,r){var o;e=(o=[t,r])[0],n=o[1]})),a=window.performance.timing,c=a.navigationStart||a.fetchStart;function u(){try{if(window.performance&&Boolean(window.performance.getEntriesByType))window.performance.getEntriesByType("paint").forEach((function(t,e,n){var i=Math.round(t.startTime);"first-paint"===t.name?r=i:"first-contentful-paint"===t.name&&(o=i)}));else console.error("paint")}catch(t){console.error(t.message)}if(window.performance&&"function"==typeof window.performance.getEntries){var i,u=(window.performance.getEntries()||[])[0]||{},g={os:f(),osVersion:s(),deviceType:l(),network:d(),screenDirection:p(),unloadTime:a.unloadEventEnd-a.unloadEventStart,redirectTime:a.redirectEnd-a.redirectStart,dnsTime:a.domainLookupEnd-a.domainLookupStart,tcpTime:a.connectEnd-a.connectStart,sslTime:v(a.connectEnd,a.secureConnectionStart),responseTime:a.responseStart-a.requestStart,downloadTime:a.responseEnd-a.responseStart,firstPaintTime:r,firstContentfulPaintTime:o,domreadyTime:a.domContentLoadedEventStart-c||0,onloadTime:a.loadEventStart-c||0,whiteTime:a.responseStart-c,renderTime:a.loadEventEnd-c||0,decodedBodySize:u.decodedBodySize||"",encodedBodySize:u.encodedBodySize||""};if(Object.keys(g).forEach((function(t){df(g[t])&&g[t]<0&&(g[t]=0)})),df(g.whiteTime)&&g.whiteTime>g.onloadTime&&(g.whiteTime=0),c>0)t||Object.keys(g).forEach((function(t){i||(i={}),i[cf(t)]=g[t]})),e(i||g);else n(Error("startTime"))}else n(Error("getEntries"))}function f(){return navigator.userAgent.indexOf("Android")>-1||navigator.userAgent.indexOf("Linux")>-1?"android":navigator.userAgent.indexOf("iPhone")>-1?"ios":navigator.userAgent.indexOf("Windows Phone")>-1?"wp":"others"}function s(){var t,e=navigator.userAgent,n=e.indexOf("Android")>-1||e.indexOf("Linux")>-1,r=!!e.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);return n&&(t=(navigator.userAgent.split(";")[1].match(/\d+\.\d+/g)||[])[0]),r&&(t=(navigator.userAgent.split(";")[1].match(/(\d+)_(\d+)_?(\d+)?/)||[])[0]),t}function l(){var t=navigator.userAgent.toLowerCase(),e=t.match(/(ipad)/i)&&"ipad",n=t.match(/iphone os/i)&&"iphone os",r=t.match(/midp/i)&&"midp",o=t.match(/rv:1.2.3.4/i)&&"rv:1.2.3.4",i=t.match(/ucweb/i)&&"ucweb",a=t.match(/android/i)&&"android",c=t.match(/windows ce/i)&&"windows ce",u=t.match(/windows mobile/i)&&"windows mobile";return e||n||r||o||i||a||c||u?n||r||o||i||a||c||u?"phone":e?"ipad":void 0:"pc"}function d(){var t;if(navigator.connection&&navigator.connection.effectiveType)switch(navigator.connection.effectiveType){case"wifi":t="wifi";break;case"4g":t="4g";break;case"2g":t="2g";break;case"3g":t="3g";break;case"ethernet":t="ethernet";break;case"default":t=void 0}return t}function p(){var t;return window.screen&&window.screen.orientation&&window.screen.orientation.angle&&(180!==window.screen.orientation.angle&&0!==window.screen.orientation.angle||(t="|"),90!==window.screen.orientation.angle&&-90!==window.screen.orientation.angle||(t="-")),t}function v(t,e){var n;return e&&(n=t-e),n}return window.performance&&window.performance.timing&&window.performance.timing.loadEventEnd>0?u():window.addEventListener("load",(function(){window.setTimeout((function(){u()}),0)})),i},t.getQueryParam=function(t){var e=new RegExp("(^|&)"+t+"=([^&]*)(&|$)"),n=location.search.substr(1).match(e);return null!==n?decodeURIComponent(n[2]):""},t.getSessionStorage=function(t){var e=null;if(t){var n=sessionStorage.getItem(t);n&&(e=JSON.parse(n))}return e},t.getUrlFileType=function(t){var e="";if("string"!=typeof t||""==t)return e;var n=/\.[^/?#]+$/.exec(t);return n?(n[0].length>1&&(e=n[0].substring(1)),e):e},t.getUrlParam=function(t,e){var n={};return t.replace(/\??(\w+)=([^&]*)&?/g,(function(t,e,r){if(void 0!==n[e]){var o=n[e];n[e]=[].concat(o,r)}else n[e]=r;return""})),n[e]||""},t.hasClass=function(t,e){for(var n=t.className.split(/\s+/),r=0;r<n.length;r++)if(n[r]===e)return!0;return!1},t.inRate=function(t){return Math.random()<t},t.invokeEvent=function(t){var e=bf()[t];if(e instanceof Array)for(var n=0,r=e.length;n<r;n++)"function"==typeof e[n]&&e[n]({type:t})},t.isJSONString=ff,t.isJsonString=function(t){return ff(t)},t.isNonEmptyArray=wf,t.isNumber=df,t.isSafePWAEnv=function(){var t=yf();return!(!("serviceWorker"in navigator&&function(){var t;try{return t=new Function("return async function(){};")(),null!=Object.getPrototypeOf(t).constructor}catch(t){return!1}}()&&"undefined"!=typeof Promise&&-1!==Promise.toString().indexOf("[native code]")&&Boolean(window.fetch)&&Boolean(window.indexedDB)&&Boolean(window.caches))||t.shell)},t.isSupportWebp=function(){return new Promise((function(t){var e=new Image;e.onload=function(){t(e.width>0&&e.height>0)},e.onerror=function(){t(!1)},e.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAAAAAAfQ//73v/+BiOh/AAA="}))},t.isValidData=function(t,e,n){var r=!1;return e.reduce((function(t,e){return void 0===t[e]?Object.create(null):t=t[e]}),t)===n&&(r=!0),r},t.isValidEmail=function(t){return/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(t)},t.isValidPhoneNumber=function(t){return/^1[3456789]\d{9}$/.test(t)},t.isValidUrl=function(t){return/[a-zA-Z0-9]+:\/\/[-a-zA-Z0-9@:%._+~#=]{1,256}\b([-a-zA-Z0-9\u4E00-\u9FA5()!@:%_+.~#?&//=]*)/gm.test(t)},t.loadCSS=function(t,e){void 0===e&&(e={id:""});var n,r=e.id,o=new Promise((function(t,e){n=[t,e][0]})),i=function(){n("loaded")},a=document.createElement("link"),c="onload"in a,u=+navigator.userAgent.replace(/.*(?:AppleWebKit|AndroidWebKit)\/?(\d+).*/i,"$1")<536;if(a.rel="stylesheet",a.type="text/css",a.href=t,void 0!==r&&(a.id=r),document.getElementsByTagName("head")[0].appendChild(a),u||!c)return setTimeout((function(){s(a,i,0)}),1),o;function f(){a.onload=a.onerror=a.onreadystatechange=null,a=null,i()}function s(t,e,n){var r,o=t.sheet;if((n+=1)>3e5)return r=!0,t=null,void e();if(u)o&&(r=!0);else if(o)try{o.cssRules&&(r=!0)}catch(t){"NS_ERROR_DOM_SECURITY_ERR"===t.name&&(r=!0)}setTimeout((function(){r?e():s(t,e,n)}),20)}return c?(a.onload=f,a.onerror=function(){f()}):a.onreadystatechange=function(){/loaded|complete/.test(a.readyState)&&f()},o},t.loadImage=function(t){return new Promise((function(e,n){var r=new Image;r.onload=function(){e(r)},r.onerror=function(t){n(t)},r.src=t}))},t.loadScript=vf,t.loadScriptIfUndefined=function(t,e){return window[t]?Promise.resolve("defined"):vf(e)},t.mNow=gf,t.mTrim=function(t){for(var e=(t=t.replace(/^\s+/,"")).length-1,n=/\s/;n.test(t.charAt(e));)e--;return t.slice(0,e+1)},t.newLine=function(t){if(!t)return"";var e=new RegExp("\\n","g");return t.replace(e,"<br />")},t.removeClass=function(t,e){var n;n=(n=(n=(n=" "+t.className+" ").replace(/(\s+)/gi," ")).replace(" "+e+" "," ")).replace(/(^\s+)|(\s+$)/g,""),t.className=n},t.removeEvent=function(t,e){var n=bf(),r=n[t];if("string"==typeof t&&r instanceof Array)if("function"==typeof e){for(var o=0,i=r.length;o<i;o++)if(r[o]===e){n[t].splice(o,1);break}}else delete n[t]},t.repeatUntilConditionMet=function(t,e,n){var r=this;void 0===e&&(e={}),void 0===n&&(n=function(t){return!0===t});var o=e.interval,i=void 0===o?1e3:o,a=e.times,c=void 0===a?10:a,u=e.context,f=e.args,s=0;"function"!=typeof t&&console.error("Expected a function."),("number"!=typeof i||i<0)&&console.error("Expected a non-negative number for interval."),("number"!=typeof c||c<0)&&console.error("Expected a non-negative number for times."),function e(){setTimeout((function(){return nf(r,void 0,void 0,(function(){var r;return rf(this,(function(o){switch(o.label){case 0:return[4,t.apply(u,f)];case 1:return r=o.sent(),n(r)||++s>=c?[2]:(e(),[2])}}))}))}),i)}()},t.sanitizeInput=function(t){var e={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};return"string"!=typeof t&&console.error("Input must be a string"),t.replace(/[&<>"'/]/g,(function(t){return e[t]}))},t.setCookie=function(t,e,n,r){var o,i;if(n){var a=new Date;a.setTime(a.getTime()+24*n*60*60*1e3),i="; expires="+a.toUTCString()}else i="";var c=location.host;1===c.split(".").length?document.cookie=t+"="+e+i+"; path=/":((o=c.split(".")).shift(),r=r||"."+o.join("."),document.cookie=t+"="+e+i+"; path=/; domain="+r,null!==hf(t)&&hf(t)===e||(r=r||"."+c,document.cookie=t+"="+e+i+"; path=/; domain="+r))},t.setImgWidHeiBySrc=function(){var t,e=window.jQuery||window.$;return e?!(!(t=e("img"))||!t.length)&&(t.each((function(){var t=e(this);if(t){var n=t.attr("src");if(n&&"string"==typeof n&&n.length){var r=n.match(/width=([0-9]+[a-z%]*)/),o=n.match(/height=([0-9]+[a-z%]*)/);r&&wf(r)&&r[1]&&t.width(r[1]),o&&wf(o)&&o[1]&&t.height(o[1])}}})),!0):(t=document.getElementsByTagName("img")).length>0&&(Array.from(t).forEach((function(t){var e=t;if(e){var n=e.getAttribute("src");if(n&&"string"==typeof n&&n.length){var r=n.match(/width=([0-9]+[a-z%]*)/),o=n.match(/height=([0-9]+[a-z%]*)/);r&&wf(r)&&r[1]&&(e.style.width=r[1]),o&&wf(o)&&o[1]&&(e.style.height=o[1])}}})),!0)},t.setLocalStorage=function(t,e){void 0===e&&(e=null),t&&localStorage.setItem(t,JSON.stringify(e))},t.setSessionStorage=function(t,e){void 0===e&&(e=null),t&&sessionStorage.setItem(t,JSON.stringify(e))},t.throttle=function(t,e,n){void 0===n&&(n={}),n=Object.assign({},n);var r=null,o=null,i=null,a=[null,0],c=a[0],u=a[1],f=function(){u=!1===n.leading?0:gf(),i=null,c=t.apply(this,o),i||(r=o=null)};return function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];var l=gf();u||!1!==n.leading||(u=l);var d=e-(l-u);return r=this,o=a,d<=0||d>e?(i&&(clearTimeout(i),i=null),u=l,c=t.apply(r,o),i||(r=o=null)):i||!1===n.trailing||(i=setTimeout(f.bind(r),d)),c}},t.truncateZHString=mf,t.updateQueryParam=function(t,e,n){var r=new RegExp("([?&])"+e+"=.*?(&|$)","i"),o=-1!==t.indexOf("?")?"&":"?";return t.match(r)?t.replace(r,"$1"+e+"="+n+"$2"):t+o+e+"="+n},t.windowLoaded=function(t){void 0===t&&(t=90);var e,n=function(){},r=new Promise((function(t,r){n=t,e=r}));return"complete"===document.readyState?n("complete"):window.addEventListener("load",(function(){return n("load")})),setTimeout((function(){return e(Error("timeout"))}),1e3*t),r},t.zAxiosIsValidRes=function(t,e){void 0===e&&(e={validStatusRange:[200,300],validCode:[0]});var n=Object.assign({validStatusRange:[200,300],validCode:[0]},e),r=n.validStatusRange,o=n.validCode;2!==r.length&&console.error("valid validStatusRange is required");var i=!1;if(t&&t.status&&2===r.length&&t.status>=r[0]&&t.status<r[1]){var a=t.data;a&&o.includes(a.code)&&(i=!0)}return i},Object.defineProperty(t,"__esModule",{value:!0}),t}({});
|