@andre1502/react-utilities 1.0.6 → 1.0.7
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 +35 -51
- package/dist/EnvironmentEnum-CXTWJxNo.js +10 -0
- package/dist/EnvironmentEnum-CXTWJxNo.js.map +1 -0
- package/dist/Utils-CJ7ureSW.js +14 -0
- package/dist/Utils-CJ7ureSW.js.map +1 -0
- package/dist/browser-ponyfill-C-HVh7ck.js +321 -0
- package/dist/browser-ponyfill-C-HVh7ck.js.map +1 -0
- package/dist/chunk-vKJrgz-R.js +16 -0
- package/dist/config-cli-BIF4xuoO.js +1491 -0
- package/dist/config-cli-BIF4xuoO.js.map +1 -0
- package/dist/config-cli.js +3 -229
- package/dist/enums/CurrencySymbolEnum.d.ts +6 -5
- package/dist/enums/DeviceEnum.d.ts +5 -4
- package/dist/enums/EnvironmentEnum.d.ts +6 -5
- package/dist/format-BgweN3o5.js +65549 -0
- package/dist/format-BgweN3o5.js.map +1 -0
- package/dist/format.d.ts +26 -26
- package/dist/format.js +2 -55
- package/dist/hooks-oAipbPQ2.js +78 -0
- package/dist/hooks-oAipbPQ2.js.map +1 -0
- package/dist/hooks.js +2 -86
- package/dist/i18n-D1jKJPI0.js +1941 -0
- package/dist/i18n-D1jKJPI0.js.map +1 -0
- package/dist/i18n.js +4 -28
- package/dist/index-cli.d.ts +0 -1
- package/dist/index-cli.js +3 -28
- package/dist/index-rn.js +6 -39
- package/dist/index.js +7 -61
- package/dist/sentry-rn-DZwIel7y.js +743 -0
- package/dist/sentry-rn-DZwIel7y.js.map +1 -0
- package/dist/sentry-rn.js +2 -28
- package/dist/sentry.js +39 -26
- package/dist/sentry.js.map +1 -1
- package/dist/utils.js +45 -37
- package/dist/utils.js.map +1 -1
- package/package.json +56 -86
- package/src/Config/GoogleAuth.ts +1 -1
- package/src/Sentry/React.ts +2 -4
- package/src/Sentry/ReactNative.ts +2 -4
- package/src/enums/CurrencySymbolEnum.ts +8 -5
- package/src/enums/DeviceEnum.ts +6 -4
- package/src/enums/EnvironmentEnum.ts +8 -5
- package/src/format.ts +32 -32
- package/src/index-cli.ts +0 -1
- package/dist/Config/Config.js +0 -249
- package/dist/Config/Config.js.map +0 -1
- package/dist/Config/GoogleAuth.js +0 -68
- package/dist/Config/GoogleAuth.js.map +0 -1
- package/dist/Config/Locales.js +0 -62
- package/dist/Config/Locales.js.map +0 -1
- package/dist/Config/Output.js +0 -36
- package/dist/Config/Output.js.map +0 -1
- package/dist/Config/Sitemap.js +0 -72
- package/dist/Config/Sitemap.js.map +0 -1
- package/dist/EnvironmentEnum-BjXsfSRZ.js +0 -9
- package/dist/EnvironmentEnum-BjXsfSRZ.js.map +0 -1
- package/dist/EnvironmentEnum-UcQ6Il1O.js +0 -9
- package/dist/EnvironmentEnum-UcQ6Il1O.js.map +0 -1
- package/dist/Format/NumberFormat.js +0 -77
- package/dist/Format/NumberFormat.js.map +0 -1
- package/dist/Format/NumberParser.js +0 -51
- package/dist/Format/NumberParser.js.map +0 -1
- package/dist/Hooks/useDevice.js +0 -47
- package/dist/Hooks/useDevice.js.map +0 -1
- package/dist/Hooks/useSound.js +0 -47
- package/dist/Hooks/useSound.js.map +0 -1
- package/dist/Hooks/useWebSocket.js +0 -120
- package/dist/Hooks/useWebSocket.js.map +0 -1
- package/dist/I18n/I18n.js +0 -134
- package/dist/I18n/I18n.js.map +0 -1
- package/dist/NumberFormat-CvvBWhHc.js +0 -89
- package/dist/NumberFormat-CvvBWhHc.js.map +0 -1
- package/dist/NumberFormat-glmpbk7E.js +0 -94
- package/dist/NumberFormat-glmpbk7E.js.map +0 -1
- package/dist/React-BaJ1KfGF.js +0 -87
- package/dist/React-BaJ1KfGF.js.map +0 -1
- package/dist/React-qUl0CBmE.js +0 -109
- package/dist/React-qUl0CBmE.js.map +0 -1
- package/dist/ReactNative-B4gt8nBr.js +0 -1790
- package/dist/ReactNative-B4gt8nBr.js.map +0 -1
- package/dist/ReactNative-CDMfQFfN.js +0 -1812
- package/dist/ReactNative-CDMfQFfN.js.map +0 -1
- package/dist/Sentry/Build.d.ts +0 -9
- package/dist/Sentry/Build.js +0 -87
- package/dist/Sentry/Build.js.map +0 -1
- package/dist/Sentry/React.js +0 -103
- package/dist/Sentry/React.js.map +0 -1
- package/dist/Sentry/ReactNative.js +0 -113
- package/dist/Sentry/ReactNative.js.map +0 -1
- package/dist/Sentry/Utils.js +0 -24
- package/dist/Sentry/Utils.js.map +0 -1
- package/dist/Utils/Array.js +0 -26
- package/dist/Utils/Array.js.map +0 -1
- package/dist/Utils/Files.js +0 -51
- package/dist/Utils/Files.js.map +0 -1
- package/dist/Utils/Pagination.js +0 -32
- package/dist/Utils/Pagination.js.map +0 -1
- package/dist/Utils/Utils.js +0 -101
- package/dist/Utils/Utils.js.map +0 -1
- package/dist/Utils-BC1fDy39.js +0 -74
- package/dist/Utils-BC1fDy39.js.map +0 -1
- package/dist/Utils-Cq948gfa.js +0 -20
- package/dist/Utils-Cq948gfa.js.map +0 -1
- package/dist/Utils-D7KRF8VU.js +0 -64
- package/dist/Utils-D7KRF8VU.js.map +0 -1
- package/dist/Utils-Dilye04y.js +0 -22
- package/dist/Utils-Dilye04y.js.map +0 -1
- package/dist/config-cli.cjs +0 -532
- package/dist/config-cli.cjs.map +0 -1
- package/dist/config-cli.js.map +0 -1
- package/dist/config-cli.mjs +0 -500
- package/dist/config-cli.mjs.map +0 -1
- package/dist/enums/CurrencySymbolEnum.js +0 -15
- package/dist/enums/CurrencySymbolEnum.js.map +0 -1
- package/dist/enums/DeviceEnum.js +0 -12
- package/dist/enums/DeviceEnum.js.map +0 -1
- package/dist/enums/EnvironmentEnum.js +0 -13
- package/dist/enums/EnvironmentEnum.js.map +0 -1
- package/dist/format.cjs +0 -43
- package/dist/format.cjs.map +0 -1
- package/dist/format.js.map +0 -1
- package/dist/format.mjs +0 -30
- package/dist/format.mjs.map +0 -1
- package/dist/hooks.cjs +0 -13
- package/dist/hooks.cjs.map +0 -1
- package/dist/hooks.js.map +0 -1
- package/dist/hooks.mjs +0 -4
- package/dist/hooks.mjs.map +0 -1
- package/dist/i18n.cjs +0 -3039
- package/dist/i18n.cjs.map +0 -1
- package/dist/i18n.js.map +0 -1
- package/dist/i18n.mjs +0 -3032
- package/dist/i18n.mjs.map +0 -1
- package/dist/index-cli.cjs +0 -31
- package/dist/index-cli.cjs.map +0 -1
- package/dist/index-cli.js.map +0 -1
- package/dist/index-cli.mjs +0 -14
- package/dist/index-cli.mjs.map +0 -1
- package/dist/index-rn.cjs +0 -57
- package/dist/index-rn.cjs.map +0 -1
- package/dist/index-rn.js.map +0 -1
- package/dist/index-rn.mjs +0 -36
- package/dist/index-rn.mjs.map +0 -1
- package/dist/index.cjs +0 -79
- package/dist/index.cjs.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/index.mjs +0 -40
- package/dist/index.mjs.map +0 -1
- package/dist/interfaces/Config/ConfigOptions.js +0 -6
- package/dist/interfaces/Config/ConfigOptions.js.map +0 -1
- package/dist/interfaces/Config/EntryOptions.js +0 -6
- package/dist/interfaces/Config/EntryOptions.js.map +0 -1
- package/dist/interfaces/Config/OutputMap.js +0 -6
- package/dist/interfaces/Config/OutputMap.js.map +0 -1
- package/dist/interfaces/Config/OutputOptions.js +0 -6
- package/dist/interfaces/Config/OutputOptions.js.map +0 -1
- package/dist/interfaces/Config/SitemapMap.js +0 -6
- package/dist/interfaces/Config/SitemapMap.js.map +0 -1
- package/dist/interfaces/Config/StringMap.js +0 -6
- package/dist/interfaces/Config/StringMap.js.map +0 -1
- package/dist/interfaces/Format/FormatOptions.js +0 -6
- package/dist/interfaces/Format/FormatOptions.js.map +0 -1
- package/dist/interfaces/Sentry/InitOptions.js +0 -6
- package/dist/interfaces/Sentry/InitOptions.js.map +0 -1
- package/dist/interfaces/Sentry/InitOptionsRN.js +0 -6
- package/dist/interfaces/Sentry/InitOptionsRN.js.map +0 -1
- package/dist/interfaces/Sentry/SourceMapOptions.d.ts +0 -7
- package/dist/interfaces/Sentry/SourceMapOptions.js +0 -6
- package/dist/interfaces/Sentry/SourceMapOptions.js.map +0 -1
- package/dist/sentry-cli.cjs +0 -119
- package/dist/sentry-cli.cjs.map +0 -1
- package/dist/sentry-cli.d.ts +0 -9
- package/dist/sentry-cli.js +0 -49
- package/dist/sentry-cli.js.map +0 -1
- package/dist/sentry-cli.mjs +0 -98
- package/dist/sentry-cli.mjs.map +0 -1
- package/dist/sentry-rn.cjs +0 -11
- package/dist/sentry-rn.cjs.map +0 -1
- package/dist/sentry-rn.js.map +0 -1
- package/dist/sentry-rn.mjs +0 -4
- package/dist/sentry-rn.mjs.map +0 -1
- package/dist/sentry.cjs +0 -11
- package/dist/sentry.cjs.map +0 -1
- package/dist/sentry.mjs +0 -4
- package/dist/sentry.mjs.map +0 -1
- package/dist/types/Config/OptionType.js +0 -6
- package/dist/types/Config/OptionType.js.map +0 -1
- package/dist/types/Format/OptionType.js +0 -6
- package/dist/types/Format/OptionType.js.map +0 -1
- package/dist/types/Sentry/OptionType.js +0 -6
- package/dist/types/Sentry/OptionType.js.map +0 -1
- package/dist/useWebSocket-B_B6kWXM.js +0 -167
- package/dist/useWebSocket-B_B6kWXM.js.map +0 -1
- package/dist/useWebSocket-YQWaiBz9.js +0 -172
- package/dist/useWebSocket-YQWaiBz9.js.map +0 -1
- package/dist/utils.cjs +0 -59
- package/dist/utils.cjs.map +0 -1
- package/dist/utils.mjs +0 -43
- package/dist/utils.mjs.map +0 -1
- package/src/Sentry/Build.ts +0 -67
- package/src/interfaces/Sentry/SourceMapOptions.ts +0 -7
- package/src/sentry-cli.ts +0 -16
package/README.md
CHANGED
|
@@ -28,9 +28,9 @@ npm install @andre1502/react-utilities
|
|
|
28
28
|
Filename will be auto defined by locales key (e.g. zh-TW, filename will be zh-tw.json).
|
|
29
29
|
|
|
30
30
|
```js
|
|
31
|
-
|
|
31
|
+
import { fetchLocales } from '@andre1502/react-utilities/cli';
|
|
32
32
|
// OR
|
|
33
|
-
|
|
33
|
+
import { fetchLocales } from '@andre1502/react-utilities/config-cli';
|
|
34
34
|
|
|
35
35
|
// https://docs.google.com/spreadsheets/d/<google-sheet-id>/edit
|
|
36
36
|
const optionLocales = {
|
|
@@ -52,9 +52,9 @@ fetchLocales(optionLocales);
|
|
|
52
52
|
Config file only support export as js file, since you need to combine it with transform function.
|
|
53
53
|
|
|
54
54
|
```js
|
|
55
|
-
|
|
55
|
+
import { fetchConfig } from '@andre1502/react-utilities/cli';
|
|
56
56
|
// OR
|
|
57
|
-
|
|
57
|
+
import { fetchConfig } from '@andre1502/react-utilities/config-cli';
|
|
58
58
|
|
|
59
59
|
// https://docs.google.com/spreadsheets/d/<google-sheet-id>/edit
|
|
60
60
|
const optionConfig = {
|
|
@@ -107,9 +107,9 @@ module.exports = {
|
|
|
107
107
|
To fetch both locales and config.
|
|
108
108
|
|
|
109
109
|
```js
|
|
110
|
-
|
|
110
|
+
import { fetchAll } from '@andre1502/react-utilities/cli';
|
|
111
111
|
// OR
|
|
112
|
-
|
|
112
|
+
import { fetchAll } from '@andre1502/react-utilities/config-cli';
|
|
113
113
|
|
|
114
114
|
// https://docs.google.com/spreadsheets/d/<google-sheet-id>/edit
|
|
115
115
|
const spreadsheetId = ''; // Google Sheet Id
|
|
@@ -145,14 +145,17 @@ fetchAll([optionLocales, optionConfig]);
|
|
|
145
145
|
### Transform Config
|
|
146
146
|
|
|
147
147
|
```js
|
|
148
|
-
|
|
148
|
+
import { transformConfig } from '@andre1502/react-utilities/cli';
|
|
149
149
|
// OR
|
|
150
|
-
|
|
150
|
+
import { transformConfig } from '@andre1502/react-utilities/config-cli';
|
|
151
151
|
const version = '<app-brand>';
|
|
152
152
|
const env = '<env-value>'; // support 'dev' | 'stag' | 'prod'
|
|
153
153
|
|
|
154
|
-
|
|
155
|
-
const currentConfig = {
|
|
154
|
+
import versionConfig from './versionConfig.json' with { type: 'json' };
|
|
155
|
+
const currentConfig = {
|
|
156
|
+
...versionConfig.params.default,
|
|
157
|
+
...versionConfig.params[version],
|
|
158
|
+
};
|
|
156
159
|
|
|
157
160
|
transformConfig(currentConfig, env, 'REACT_APP_', {
|
|
158
161
|
folder: '.', // transformed config folder location
|
|
@@ -165,14 +168,17 @@ transformConfig(currentConfig, env, 'REACT_APP_', {
|
|
|
165
168
|
### Transform Sitemap
|
|
166
169
|
|
|
167
170
|
```js
|
|
168
|
-
|
|
171
|
+
import { transformSitemap } from '@andre1502/react-utilities/cli';
|
|
169
172
|
// OR
|
|
170
|
-
|
|
173
|
+
import { transformSitemap } from '@andre1502/react-utilities/config-cli';
|
|
171
174
|
const version = '<app-brand>';
|
|
172
175
|
const env = '<env-value>'; // support 'dev' | 'stag' | 'prod'
|
|
173
176
|
|
|
174
|
-
|
|
175
|
-
const currentConfig = {
|
|
177
|
+
import versionConfig from './versionConfig.json' with { type: 'json' };
|
|
178
|
+
const currentConfig = {
|
|
179
|
+
...versionConfig.params.default,
|
|
180
|
+
...versionConfig.params[version],
|
|
181
|
+
};
|
|
176
182
|
const hostname = currentConfig['MAIN_URL'][env];
|
|
177
183
|
const urls = currentConfig['SITEMAP'];
|
|
178
184
|
|
|
@@ -183,43 +189,6 @@ transformSitemap(hostname, urls, true, {
|
|
|
183
189
|
});
|
|
184
190
|
```
|
|
185
191
|
|
|
186
|
-
## Sentry CLI
|
|
187
|
-
|
|
188
|
-
### Release Sentry Source Map
|
|
189
|
-
|
|
190
|
-
Add `.sentryclirc` file in root project with these value
|
|
191
|
-
|
|
192
|
-
```
|
|
193
|
-
[defaults]
|
|
194
|
-
url=https://<sentry_host_url>/
|
|
195
|
-
org=<organization>
|
|
196
|
-
project=<sentry_project_name>
|
|
197
|
-
```
|
|
198
|
-
|
|
199
|
-
Update system environment variables with
|
|
200
|
-
|
|
201
|
-
```sh
|
|
202
|
-
export SENTRY_AUTH_TOKEN=<sentry_auth_token>
|
|
203
|
-
```
|
|
204
|
-
|
|
205
|
-
Add sentry file in root project with this code
|
|
206
|
-
|
|
207
|
-
```js
|
|
208
|
-
const { releaseSentrySourceMap } = require('@andre1502/react-utilities/cli');
|
|
209
|
-
// OR
|
|
210
|
-
const {
|
|
211
|
-
releaseSentrySourceMap,
|
|
212
|
-
} = require('@andre1502/react-utilities/sentry-cli');
|
|
213
|
-
|
|
214
|
-
releaseSentrySourceMap({
|
|
215
|
-
env: '',
|
|
216
|
-
release: '',
|
|
217
|
-
includeFolder: [''],
|
|
218
|
-
urlPrefix: '~',
|
|
219
|
-
requiredEnvForSourceMap: [''],
|
|
220
|
-
});
|
|
221
|
-
```
|
|
222
|
-
|
|
223
192
|
## Sentry
|
|
224
193
|
|
|
225
194
|
### Init Sentry for React
|
|
@@ -397,3 +366,18 @@ initI18n({
|
|
|
397
366
|
debug: debug,
|
|
398
367
|
});
|
|
399
368
|
```
|
|
369
|
+
|
|
370
|
+
## 💖 Support the Project
|
|
371
|
+
|
|
372
|
+
If this project saved you time or helped you build something cool, consider a one-time donation!
|
|
373
|
+
|
|
374
|
+
[](https://liberapay.com/andre1502/donate)
|
|
375
|
+
|
|
376
|
+
| Amount | Goal |
|
|
377
|
+
| :-- | :-- |
|
|
378
|
+
| **[$5 USD](https://liberapay.com/andre1502/donate?amount=5.00¤cy=USD)** | ☕ Buy me a coffee |
|
|
379
|
+
| **[$15 USD](https://liberapay.com/andre1502/donate?amount=15.00¤cy=USD)** | 🍕 Buy me a pizza |
|
|
380
|
+
| **[$50 USD](https://liberapay.com/andre1502/donate?amount=50.00¤cy=USD)** | 🛠️ Support a new feature |
|
|
381
|
+
| **Custom** | 🚀 Every bit helps! |
|
|
382
|
+
|
|
383
|
+
> **Note:** 100% of your donation goes to development (excluding PayPal's standard transaction fee).
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EnvironmentEnum-CXTWJxNo.js","names":[],"sources":["../src/enums/EnvironmentEnum.ts"],"sourcesContent":["export const EnvironmentEnum = {\n DEV: 'dev',\n STAGING: 'staging',\n PRODUCTION: 'production',\n} as const;\n\nexport type EnvironmentEnum =\n (typeof EnvironmentEnum)[keyof typeof EnvironmentEnum];\n"],"mappings":";AAAA,IAAa,IAAkB;CAC7B,KAAK;CACL,SAAS;CACT,YAAY;CACb"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
//#region src/Sentry/Utils.ts
|
|
2
|
+
var e = (e, t, n, r) => {
|
|
3
|
+
t && e.withScope((e) => {
|
|
4
|
+
e.setContext("config", t);
|
|
5
|
+
}), n && e.withScope((e) => {
|
|
6
|
+
e.setContext("request", n);
|
|
7
|
+
}), r && e.withScope((e) => {
|
|
8
|
+
e.setContext("response", r);
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
//#endregion
|
|
12
|
+
export { e as t };
|
|
13
|
+
|
|
14
|
+
//# sourceMappingURL=Utils-CJ7ureSW.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Utils-CJ7ureSW.js","names":[],"sources":["../src/Sentry/Utils.ts"],"sourcesContent":["const recordSentryHttp = (\n Sentry: any,\n config?: any,\n request?: any,\n response?: any,\n) => {\n if (config) {\n Sentry.withScope((scope: any) => {\n scope.setContext('config', config);\n });\n }\n\n if (request) {\n Sentry.withScope((scope: any) => {\n scope.setContext('request', request);\n });\n }\n\n if (response) {\n Sentry.withScope((scope: any) => {\n scope.setContext('response', response);\n });\n }\n};\n\nexport { recordSentryHttp };\n"],"mappings":";AAAA,IAAM,KACJ,GACA,GACA,GACA,MACG;AAaH,CAZI,KACF,EAAO,WAAW,MAAe;AAC/B,IAAM,WAAW,UAAU,EAAO;GAClC,EAGA,KACF,EAAO,WAAW,MAAe;AAC/B,IAAM,WAAW,WAAW,EAAQ;GACpC,EAGA,KACF,EAAO,WAAW,MAAe;AAC/B,IAAM,WAAW,YAAY,EAAS;GACtC"}
|
|
@@ -0,0 +1,321 @@
|
|
|
1
|
+
import { t as e } from "./chunk-vKJrgz-R.js";
|
|
2
|
+
//#region node_modules/cross-fetch/dist/browser-ponyfill.js
|
|
3
|
+
var t = /* @__PURE__ */ e(((e, t) => {
|
|
4
|
+
var n = typeof globalThis < "u" && globalThis || typeof self < "u" && self || typeof global < "u" && global, r = (function() {
|
|
5
|
+
function e() {
|
|
6
|
+
this.fetch = !1, this.DOMException = n.DOMException;
|
|
7
|
+
}
|
|
8
|
+
return e.prototype = n, new e();
|
|
9
|
+
})();
|
|
10
|
+
(function(e) {
|
|
11
|
+
(function(t) {
|
|
12
|
+
var n = e !== void 0 && e || typeof self < "u" && self || typeof global < "u" && global || {}, r = {
|
|
13
|
+
searchParams: "URLSearchParams" in n,
|
|
14
|
+
iterable: "Symbol" in n && "iterator" in Symbol,
|
|
15
|
+
blob: "FileReader" in n && "Blob" in n && (function() {
|
|
16
|
+
try {
|
|
17
|
+
return new Blob(), !0;
|
|
18
|
+
} catch {
|
|
19
|
+
return !1;
|
|
20
|
+
}
|
|
21
|
+
})(),
|
|
22
|
+
formData: "FormData" in n,
|
|
23
|
+
arrayBuffer: "ArrayBuffer" in n
|
|
24
|
+
};
|
|
25
|
+
function i(e) {
|
|
26
|
+
return e && DataView.prototype.isPrototypeOf(e);
|
|
27
|
+
}
|
|
28
|
+
if (r.arrayBuffer) var a = [
|
|
29
|
+
"[object Int8Array]",
|
|
30
|
+
"[object Uint8Array]",
|
|
31
|
+
"[object Uint8ClampedArray]",
|
|
32
|
+
"[object Int16Array]",
|
|
33
|
+
"[object Uint16Array]",
|
|
34
|
+
"[object Int32Array]",
|
|
35
|
+
"[object Uint32Array]",
|
|
36
|
+
"[object Float32Array]",
|
|
37
|
+
"[object Float64Array]"
|
|
38
|
+
], o = ArrayBuffer.isView || function(e) {
|
|
39
|
+
return e && a.indexOf(Object.prototype.toString.call(e)) > -1;
|
|
40
|
+
};
|
|
41
|
+
function s(e) {
|
|
42
|
+
if (typeof e != "string" && (e = String(e)), /[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e) || e === "") throw TypeError("Invalid character in header field name: \"" + e + "\"");
|
|
43
|
+
return e.toLowerCase();
|
|
44
|
+
}
|
|
45
|
+
function c(e) {
|
|
46
|
+
return typeof e != "string" && (e = String(e)), e;
|
|
47
|
+
}
|
|
48
|
+
function l(e) {
|
|
49
|
+
var t = { next: function() {
|
|
50
|
+
var t = e.shift();
|
|
51
|
+
return {
|
|
52
|
+
done: t === void 0,
|
|
53
|
+
value: t
|
|
54
|
+
};
|
|
55
|
+
} };
|
|
56
|
+
return r.iterable && (t[Symbol.iterator] = function() {
|
|
57
|
+
return t;
|
|
58
|
+
}), t;
|
|
59
|
+
}
|
|
60
|
+
function u(e) {
|
|
61
|
+
this.map = {}, e instanceof u ? e.forEach(function(e, t) {
|
|
62
|
+
this.append(t, e);
|
|
63
|
+
}, this) : Array.isArray(e) ? e.forEach(function(e) {
|
|
64
|
+
if (e.length != 2) throw TypeError("Headers constructor: expected name/value pair to be length 2, found" + e.length);
|
|
65
|
+
this.append(e[0], e[1]);
|
|
66
|
+
}, this) : e && Object.getOwnPropertyNames(e).forEach(function(t) {
|
|
67
|
+
this.append(t, e[t]);
|
|
68
|
+
}, this);
|
|
69
|
+
}
|
|
70
|
+
u.prototype.append = function(e, t) {
|
|
71
|
+
e = s(e), t = c(t);
|
|
72
|
+
var n = this.map[e];
|
|
73
|
+
this.map[e] = n ? n + ", " + t : t;
|
|
74
|
+
}, u.prototype.delete = function(e) {
|
|
75
|
+
delete this.map[s(e)];
|
|
76
|
+
}, u.prototype.get = function(e) {
|
|
77
|
+
return e = s(e), this.has(e) ? this.map[e] : null;
|
|
78
|
+
}, u.prototype.has = function(e) {
|
|
79
|
+
return this.map.hasOwnProperty(s(e));
|
|
80
|
+
}, u.prototype.set = function(e, t) {
|
|
81
|
+
this.map[s(e)] = c(t);
|
|
82
|
+
}, u.prototype.forEach = function(e, t) {
|
|
83
|
+
for (var n in this.map) this.map.hasOwnProperty(n) && e.call(t, this.map[n], n, this);
|
|
84
|
+
}, u.prototype.keys = function() {
|
|
85
|
+
var e = [];
|
|
86
|
+
return this.forEach(function(t, n) {
|
|
87
|
+
e.push(n);
|
|
88
|
+
}), l(e);
|
|
89
|
+
}, u.prototype.values = function() {
|
|
90
|
+
var e = [];
|
|
91
|
+
return this.forEach(function(t) {
|
|
92
|
+
e.push(t);
|
|
93
|
+
}), l(e);
|
|
94
|
+
}, u.prototype.entries = function() {
|
|
95
|
+
var e = [];
|
|
96
|
+
return this.forEach(function(t, n) {
|
|
97
|
+
e.push([n, t]);
|
|
98
|
+
}), l(e);
|
|
99
|
+
}, r.iterable && (u.prototype[Symbol.iterator] = u.prototype.entries);
|
|
100
|
+
function d(e) {
|
|
101
|
+
if (!e._noBody) {
|
|
102
|
+
if (e.bodyUsed) return Promise.reject(/* @__PURE__ */ TypeError("Already read"));
|
|
103
|
+
e.bodyUsed = !0;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
function f(e) {
|
|
107
|
+
return new Promise(function(t, n) {
|
|
108
|
+
e.onload = function() {
|
|
109
|
+
t(e.result);
|
|
110
|
+
}, e.onerror = function() {
|
|
111
|
+
n(e.error);
|
|
112
|
+
};
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
function p(e) {
|
|
116
|
+
var t = new FileReader(), n = f(t);
|
|
117
|
+
return t.readAsArrayBuffer(e), n;
|
|
118
|
+
}
|
|
119
|
+
function m(e) {
|
|
120
|
+
var t = new FileReader(), n = f(t), r = /charset=([A-Za-z0-9_-]+)/.exec(e.type), i = r ? r[1] : "utf-8";
|
|
121
|
+
return t.readAsText(e, i), n;
|
|
122
|
+
}
|
|
123
|
+
function h(e) {
|
|
124
|
+
for (var t = new Uint8Array(e), n = Array(t.length), r = 0; r < t.length; r++) n[r] = String.fromCharCode(t[r]);
|
|
125
|
+
return n.join("");
|
|
126
|
+
}
|
|
127
|
+
function g(e) {
|
|
128
|
+
if (e.slice) return e.slice(0);
|
|
129
|
+
var t = new Uint8Array(e.byteLength);
|
|
130
|
+
return t.set(new Uint8Array(e)), t.buffer;
|
|
131
|
+
}
|
|
132
|
+
function _() {
|
|
133
|
+
return this.bodyUsed = !1, this._initBody = function(e) {
|
|
134
|
+
this.bodyUsed = this.bodyUsed, this._bodyInit = e, e ? typeof e == "string" ? this._bodyText = e : r.blob && Blob.prototype.isPrototypeOf(e) ? this._bodyBlob = e : r.formData && FormData.prototype.isPrototypeOf(e) ? this._bodyFormData = e : r.searchParams && URLSearchParams.prototype.isPrototypeOf(e) ? this._bodyText = e.toString() : r.arrayBuffer && r.blob && i(e) ? (this._bodyArrayBuffer = g(e.buffer), this._bodyInit = new Blob([this._bodyArrayBuffer])) : r.arrayBuffer && (ArrayBuffer.prototype.isPrototypeOf(e) || o(e)) ? this._bodyArrayBuffer = g(e) : this._bodyText = e = Object.prototype.toString.call(e) : (this._noBody = !0, this._bodyText = ""), this.headers.get("content-type") || (typeof e == "string" ? this.headers.set("content-type", "text/plain;charset=UTF-8") : this._bodyBlob && this._bodyBlob.type ? this.headers.set("content-type", this._bodyBlob.type) : r.searchParams && URLSearchParams.prototype.isPrototypeOf(e) && this.headers.set("content-type", "application/x-www-form-urlencoded;charset=UTF-8"));
|
|
135
|
+
}, r.blob && (this.blob = function() {
|
|
136
|
+
var e = d(this);
|
|
137
|
+
if (e) return e;
|
|
138
|
+
if (this._bodyBlob) return Promise.resolve(this._bodyBlob);
|
|
139
|
+
if (this._bodyArrayBuffer) return Promise.resolve(new Blob([this._bodyArrayBuffer]));
|
|
140
|
+
if (this._bodyFormData) throw Error("could not read FormData body as blob");
|
|
141
|
+
return Promise.resolve(new Blob([this._bodyText]));
|
|
142
|
+
}), this.arrayBuffer = function() {
|
|
143
|
+
if (this._bodyArrayBuffer) return d(this) || (ArrayBuffer.isView(this._bodyArrayBuffer) ? Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset, this._bodyArrayBuffer.byteOffset + this._bodyArrayBuffer.byteLength)) : Promise.resolve(this._bodyArrayBuffer));
|
|
144
|
+
if (r.blob) return this.blob().then(p);
|
|
145
|
+
throw Error("could not read as ArrayBuffer");
|
|
146
|
+
}, this.text = function() {
|
|
147
|
+
var e = d(this);
|
|
148
|
+
if (e) return e;
|
|
149
|
+
if (this._bodyBlob) return m(this._bodyBlob);
|
|
150
|
+
if (this._bodyArrayBuffer) return Promise.resolve(h(this._bodyArrayBuffer));
|
|
151
|
+
if (this._bodyFormData) throw Error("could not read FormData body as text");
|
|
152
|
+
return Promise.resolve(this._bodyText);
|
|
153
|
+
}, r.formData && (this.formData = function() {
|
|
154
|
+
return this.text().then(x);
|
|
155
|
+
}), this.json = function() {
|
|
156
|
+
return this.text().then(JSON.parse);
|
|
157
|
+
}, this;
|
|
158
|
+
}
|
|
159
|
+
var v = [
|
|
160
|
+
"CONNECT",
|
|
161
|
+
"DELETE",
|
|
162
|
+
"GET",
|
|
163
|
+
"HEAD",
|
|
164
|
+
"OPTIONS",
|
|
165
|
+
"PATCH",
|
|
166
|
+
"POST",
|
|
167
|
+
"PUT",
|
|
168
|
+
"TRACE"
|
|
169
|
+
];
|
|
170
|
+
function y(e) {
|
|
171
|
+
var t = e.toUpperCase();
|
|
172
|
+
return v.indexOf(t) > -1 ? t : e;
|
|
173
|
+
}
|
|
174
|
+
function b(e, t) {
|
|
175
|
+
if (!(this instanceof b)) throw TypeError("Please use the \"new\" operator, this DOM object constructor cannot be called as a function.");
|
|
176
|
+
t ||= {};
|
|
177
|
+
var r = t.body;
|
|
178
|
+
if (e instanceof b) {
|
|
179
|
+
if (e.bodyUsed) throw TypeError("Already read");
|
|
180
|
+
this.url = e.url, this.credentials = e.credentials, t.headers || (this.headers = new u(e.headers)), this.method = e.method, this.mode = e.mode, this.signal = e.signal, !r && e._bodyInit != null && (r = e._bodyInit, e.bodyUsed = !0);
|
|
181
|
+
} else this.url = String(e);
|
|
182
|
+
if (this.credentials = t.credentials || this.credentials || "same-origin", (t.headers || !this.headers) && (this.headers = new u(t.headers)), this.method = y(t.method || this.method || "GET"), this.mode = t.mode || this.mode || null, this.signal = t.signal || this.signal || function() {
|
|
183
|
+
if ("AbortController" in n) return new AbortController().signal;
|
|
184
|
+
}(), this.referrer = null, (this.method === "GET" || this.method === "HEAD") && r) throw TypeError("Body not allowed for GET or HEAD requests");
|
|
185
|
+
if (this._initBody(r), (this.method === "GET" || this.method === "HEAD") && (t.cache === "no-store" || t.cache === "no-cache")) {
|
|
186
|
+
var i = /([?&])_=[^&]*/;
|
|
187
|
+
i.test(this.url) ? this.url = this.url.replace(i, "$1_=" + (/* @__PURE__ */ new Date()).getTime()) : this.url += (/\?/.test(this.url) ? "&" : "?") + "_=" + (/* @__PURE__ */ new Date()).getTime();
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
b.prototype.clone = function() {
|
|
191
|
+
return new b(this, { body: this._bodyInit });
|
|
192
|
+
};
|
|
193
|
+
function x(e) {
|
|
194
|
+
var t = new FormData();
|
|
195
|
+
return e.trim().split("&").forEach(function(e) {
|
|
196
|
+
if (e) {
|
|
197
|
+
var n = e.split("="), r = n.shift().replace(/\+/g, " "), i = n.join("=").replace(/\+/g, " ");
|
|
198
|
+
t.append(decodeURIComponent(r), decodeURIComponent(i));
|
|
199
|
+
}
|
|
200
|
+
}), t;
|
|
201
|
+
}
|
|
202
|
+
function S(e) {
|
|
203
|
+
var t = new u();
|
|
204
|
+
return e.replace(/\r?\n[\t ]+/g, " ").split("\r").map(function(e) {
|
|
205
|
+
return e.indexOf("\n") === 0 ? e.substr(1, e.length) : e;
|
|
206
|
+
}).forEach(function(e) {
|
|
207
|
+
var n = e.split(":"), r = n.shift().trim();
|
|
208
|
+
if (r) {
|
|
209
|
+
var i = n.join(":").trim();
|
|
210
|
+
try {
|
|
211
|
+
t.append(r, i);
|
|
212
|
+
} catch (e) {
|
|
213
|
+
console.warn("Response " + e.message);
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
}), t;
|
|
217
|
+
}
|
|
218
|
+
_.call(b.prototype);
|
|
219
|
+
function C(e, t) {
|
|
220
|
+
if (!(this instanceof C)) throw TypeError("Please use the \"new\" operator, this DOM object constructor cannot be called as a function.");
|
|
221
|
+
if (t ||= {}, this.type = "default", this.status = t.status === void 0 ? 200 : t.status, this.status < 200 || this.status > 599) throw RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");
|
|
222
|
+
this.ok = this.status >= 200 && this.status < 300, this.statusText = t.statusText === void 0 ? "" : "" + t.statusText, this.headers = new u(t.headers), this.url = t.url || "", this._initBody(e);
|
|
223
|
+
}
|
|
224
|
+
_.call(C.prototype), C.prototype.clone = function() {
|
|
225
|
+
return new C(this._bodyInit, {
|
|
226
|
+
status: this.status,
|
|
227
|
+
statusText: this.statusText,
|
|
228
|
+
headers: new u(this.headers),
|
|
229
|
+
url: this.url
|
|
230
|
+
});
|
|
231
|
+
}, C.error = function() {
|
|
232
|
+
var e = new C(null, {
|
|
233
|
+
status: 200,
|
|
234
|
+
statusText: ""
|
|
235
|
+
});
|
|
236
|
+
return e.ok = !1, e.status = 0, e.type = "error", e;
|
|
237
|
+
};
|
|
238
|
+
var w = [
|
|
239
|
+
301,
|
|
240
|
+
302,
|
|
241
|
+
303,
|
|
242
|
+
307,
|
|
243
|
+
308
|
|
244
|
+
];
|
|
245
|
+
C.redirect = function(e, t) {
|
|
246
|
+
if (w.indexOf(t) === -1) throw RangeError("Invalid status code");
|
|
247
|
+
return new C(null, {
|
|
248
|
+
status: t,
|
|
249
|
+
headers: { location: e }
|
|
250
|
+
});
|
|
251
|
+
}, t.DOMException = n.DOMException;
|
|
252
|
+
try {
|
|
253
|
+
new t.DOMException();
|
|
254
|
+
} catch {
|
|
255
|
+
t.DOMException = function(e, t) {
|
|
256
|
+
this.message = e, this.name = t, this.stack = Error(e).stack;
|
|
257
|
+
}, t.DOMException.prototype = Object.create(Error.prototype), t.DOMException.prototype.constructor = t.DOMException;
|
|
258
|
+
}
|
|
259
|
+
function T(e, i) {
|
|
260
|
+
return new Promise(function(a, o) {
|
|
261
|
+
var l = new b(e, i);
|
|
262
|
+
if (l.signal && l.signal.aborted) return o(new t.DOMException("Aborted", "AbortError"));
|
|
263
|
+
var d = new XMLHttpRequest();
|
|
264
|
+
function f() {
|
|
265
|
+
d.abort();
|
|
266
|
+
}
|
|
267
|
+
d.onload = function() {
|
|
268
|
+
var e = {
|
|
269
|
+
statusText: d.statusText,
|
|
270
|
+
headers: S(d.getAllResponseHeaders() || "")
|
|
271
|
+
};
|
|
272
|
+
l.url.indexOf("file://") === 0 && (d.status < 200 || d.status > 599) ? e.status = 200 : e.status = d.status, e.url = "responseURL" in d ? d.responseURL : e.headers.get("X-Request-URL");
|
|
273
|
+
var t = "response" in d ? d.response : d.responseText;
|
|
274
|
+
setTimeout(function() {
|
|
275
|
+
a(new C(t, e));
|
|
276
|
+
}, 0);
|
|
277
|
+
}, d.onerror = function() {
|
|
278
|
+
setTimeout(function() {
|
|
279
|
+
o(/* @__PURE__ */ TypeError("Network request failed"));
|
|
280
|
+
}, 0);
|
|
281
|
+
}, d.ontimeout = function() {
|
|
282
|
+
setTimeout(function() {
|
|
283
|
+
o(/* @__PURE__ */ TypeError("Network request timed out"));
|
|
284
|
+
}, 0);
|
|
285
|
+
}, d.onabort = function() {
|
|
286
|
+
setTimeout(function() {
|
|
287
|
+
o(new t.DOMException("Aborted", "AbortError"));
|
|
288
|
+
}, 0);
|
|
289
|
+
};
|
|
290
|
+
function p(e) {
|
|
291
|
+
try {
|
|
292
|
+
return e === "" && n.location.href ? n.location.href : e;
|
|
293
|
+
} catch {
|
|
294
|
+
return e;
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
if (d.open(l.method, p(l.url), !0), l.credentials === "include" ? d.withCredentials = !0 : l.credentials === "omit" && (d.withCredentials = !1), "responseType" in d && (r.blob ? d.responseType = "blob" : r.arrayBuffer && (d.responseType = "arraybuffer")), i && typeof i.headers == "object" && !(i.headers instanceof u || n.Headers && i.headers instanceof n.Headers)) {
|
|
298
|
+
var m = [];
|
|
299
|
+
Object.getOwnPropertyNames(i.headers).forEach(function(e) {
|
|
300
|
+
m.push(s(e)), d.setRequestHeader(e, c(i.headers[e]));
|
|
301
|
+
}), l.headers.forEach(function(e, t) {
|
|
302
|
+
m.indexOf(t) === -1 && d.setRequestHeader(t, e);
|
|
303
|
+
});
|
|
304
|
+
} else l.headers.forEach(function(e, t) {
|
|
305
|
+
d.setRequestHeader(t, e);
|
|
306
|
+
});
|
|
307
|
+
l.signal && (l.signal.addEventListener("abort", f), d.onreadystatechange = function() {
|
|
308
|
+
d.readyState === 4 && l.signal.removeEventListener("abort", f);
|
|
309
|
+
}), d.send(l._bodyInit === void 0 ? null : l._bodyInit);
|
|
310
|
+
});
|
|
311
|
+
}
|
|
312
|
+
return T.polyfill = !0, n.fetch || (n.fetch = T, n.Headers = u, n.Request = b, n.Response = C), t.Headers = u, t.Request = b, t.Response = C, t.fetch = T, t;
|
|
313
|
+
})({});
|
|
314
|
+
})(r), r.fetch.ponyfill = !0, delete r.fetch.polyfill;
|
|
315
|
+
var i = n.fetch ? n : r;
|
|
316
|
+
e = i.fetch, e.default = i.fetch, e.fetch = i.fetch, e.Headers = i.Headers, e.Request = i.Request, e.Response = i.Response, t.exports = e;
|
|
317
|
+
}));
|
|
318
|
+
//#endregion
|
|
319
|
+
export default t();
|
|
320
|
+
|
|
321
|
+
//# sourceMappingURL=browser-ponyfill-C-HVh7ck.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"browser-ponyfill-C-HVh7ck.js","names":["exports"],"sources":["../node_modules/cross-fetch/dist/browser-ponyfill.js"],"sourcesContent":["// Save global object in a variable\nvar __global__ =\n(typeof globalThis !== 'undefined' && globalThis) ||\n(typeof self !== 'undefined' && self) ||\n(typeof global !== 'undefined' && global);\n// Create an object that extends from __global__ without the fetch function\nvar __globalThis__ = (function () {\nfunction F() {\nthis.fetch = false;\nthis.DOMException = __global__.DOMException\n}\nF.prototype = __global__; // Needed for feature detection on whatwg-fetch's code\nreturn new F();\n})();\n// Wraps whatwg-fetch with a function scope to hijack the global object\n// \"globalThis\" that's going to be patched\n(function(globalThis) {\n\nvar irrelevant = (function (exports) {\n\n /* eslint-disable no-prototype-builtins */\n var g =\n (typeof globalThis !== 'undefined' && globalThis) ||\n (typeof self !== 'undefined' && self) ||\n // eslint-disable-next-line no-undef\n (typeof global !== 'undefined' && global) ||\n {};\n\n var support = {\n searchParams: 'URLSearchParams' in g,\n iterable: 'Symbol' in g && 'iterator' in Symbol,\n blob:\n 'FileReader' in g &&\n 'Blob' in g &&\n (function() {\n try {\n new Blob();\n return true\n } catch (e) {\n return false\n }\n })(),\n formData: 'FormData' in g,\n arrayBuffer: 'ArrayBuffer' in g\n };\n\n function isDataView(obj) {\n return obj && DataView.prototype.isPrototypeOf(obj)\n }\n\n if (support.arrayBuffer) {\n var viewClasses = [\n '[object Int8Array]',\n '[object Uint8Array]',\n '[object Uint8ClampedArray]',\n '[object Int16Array]',\n '[object Uint16Array]',\n '[object Int32Array]',\n '[object Uint32Array]',\n '[object Float32Array]',\n '[object Float64Array]'\n ];\n\n var isArrayBufferView =\n ArrayBuffer.isView ||\n function(obj) {\n return obj && viewClasses.indexOf(Object.prototype.toString.call(obj)) > -1\n };\n }\n\n function normalizeName(name) {\n if (typeof name !== 'string') {\n name = String(name);\n }\n if (/[^a-z0-9\\-#$%&'*+.^_`|~!]/i.test(name) || name === '') {\n throw new TypeError('Invalid character in header field name: \"' + name + '\"')\n }\n return name.toLowerCase()\n }\n\n function normalizeValue(value) {\n if (typeof value !== 'string') {\n value = String(value);\n }\n return value\n }\n\n // Build a destructive iterator for the value list\n function iteratorFor(items) {\n var iterator = {\n next: function() {\n var value = items.shift();\n return {done: value === undefined, value: value}\n }\n };\n\n if (support.iterable) {\n iterator[Symbol.iterator] = function() {\n return iterator\n };\n }\n\n return iterator\n }\n\n function Headers(headers) {\n this.map = {};\n\n if (headers instanceof Headers) {\n headers.forEach(function(value, name) {\n this.append(name, value);\n }, this);\n } else if (Array.isArray(headers)) {\n headers.forEach(function(header) {\n if (header.length != 2) {\n throw new TypeError('Headers constructor: expected name/value pair to be length 2, found' + header.length)\n }\n this.append(header[0], header[1]);\n }, this);\n } else if (headers) {\n Object.getOwnPropertyNames(headers).forEach(function(name) {\n this.append(name, headers[name]);\n }, this);\n }\n }\n\n Headers.prototype.append = function(name, value) {\n name = normalizeName(name);\n value = normalizeValue(value);\n var oldValue = this.map[name];\n this.map[name] = oldValue ? oldValue + ', ' + value : value;\n };\n\n Headers.prototype['delete'] = function(name) {\n delete this.map[normalizeName(name)];\n };\n\n Headers.prototype.get = function(name) {\n name = normalizeName(name);\n return this.has(name) ? this.map[name] : null\n };\n\n Headers.prototype.has = function(name) {\n return this.map.hasOwnProperty(normalizeName(name))\n };\n\n Headers.prototype.set = function(name, value) {\n this.map[normalizeName(name)] = normalizeValue(value);\n };\n\n Headers.prototype.forEach = function(callback, thisArg) {\n for (var name in this.map) {\n if (this.map.hasOwnProperty(name)) {\n callback.call(thisArg, this.map[name], name, this);\n }\n }\n };\n\n Headers.prototype.keys = function() {\n var items = [];\n this.forEach(function(value, name) {\n items.push(name);\n });\n return iteratorFor(items)\n };\n\n Headers.prototype.values = function() {\n var items = [];\n this.forEach(function(value) {\n items.push(value);\n });\n return iteratorFor(items)\n };\n\n Headers.prototype.entries = function() {\n var items = [];\n this.forEach(function(value, name) {\n items.push([name, value]);\n });\n return iteratorFor(items)\n };\n\n if (support.iterable) {\n Headers.prototype[Symbol.iterator] = Headers.prototype.entries;\n }\n\n function consumed(body) {\n if (body._noBody) return\n if (body.bodyUsed) {\n return Promise.reject(new TypeError('Already read'))\n }\n body.bodyUsed = true;\n }\n\n function fileReaderReady(reader) {\n return new Promise(function(resolve, reject) {\n reader.onload = function() {\n resolve(reader.result);\n };\n reader.onerror = function() {\n reject(reader.error);\n };\n })\n }\n\n function readBlobAsArrayBuffer(blob) {\n var reader = new FileReader();\n var promise = fileReaderReady(reader);\n reader.readAsArrayBuffer(blob);\n return promise\n }\n\n function readBlobAsText(blob) {\n var reader = new FileReader();\n var promise = fileReaderReady(reader);\n var match = /charset=([A-Za-z0-9_-]+)/.exec(blob.type);\n var encoding = match ? match[1] : 'utf-8';\n reader.readAsText(blob, encoding);\n return promise\n }\n\n function readArrayBufferAsText(buf) {\n var view = new Uint8Array(buf);\n var chars = new Array(view.length);\n\n for (var i = 0; i < view.length; i++) {\n chars[i] = String.fromCharCode(view[i]);\n }\n return chars.join('')\n }\n\n function bufferClone(buf) {\n if (buf.slice) {\n return buf.slice(0)\n } else {\n var view = new Uint8Array(buf.byteLength);\n view.set(new Uint8Array(buf));\n return view.buffer\n }\n }\n\n function Body() {\n this.bodyUsed = false;\n\n this._initBody = function(body) {\n /*\n fetch-mock wraps the Response object in an ES6 Proxy to\n provide useful test harness features such as flush. However, on\n ES5 browsers without fetch or Proxy support pollyfills must be used;\n the proxy-pollyfill is unable to proxy an attribute unless it exists\n on the object before the Proxy is created. This change ensures\n Response.bodyUsed exists on the instance, while maintaining the\n semantic of setting Request.bodyUsed in the constructor before\n _initBody is called.\n */\n // eslint-disable-next-line no-self-assign\n this.bodyUsed = this.bodyUsed;\n this._bodyInit = body;\n if (!body) {\n this._noBody = true;\n this._bodyText = '';\n } else if (typeof body === 'string') {\n this._bodyText = body;\n } else if (support.blob && Blob.prototype.isPrototypeOf(body)) {\n this._bodyBlob = body;\n } else if (support.formData && FormData.prototype.isPrototypeOf(body)) {\n this._bodyFormData = body;\n } else if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body)) {\n this._bodyText = body.toString();\n } else if (support.arrayBuffer && support.blob && isDataView(body)) {\n this._bodyArrayBuffer = bufferClone(body.buffer);\n // IE 10-11 can't handle a DataView body.\n this._bodyInit = new Blob([this._bodyArrayBuffer]);\n } else if (support.arrayBuffer && (ArrayBuffer.prototype.isPrototypeOf(body) || isArrayBufferView(body))) {\n this._bodyArrayBuffer = bufferClone(body);\n } else {\n this._bodyText = body = Object.prototype.toString.call(body);\n }\n\n if (!this.headers.get('content-type')) {\n if (typeof body === 'string') {\n this.headers.set('content-type', 'text/plain;charset=UTF-8');\n } else if (this._bodyBlob && this._bodyBlob.type) {\n this.headers.set('content-type', this._bodyBlob.type);\n } else if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body)) {\n this.headers.set('content-type', 'application/x-www-form-urlencoded;charset=UTF-8');\n }\n }\n };\n\n if (support.blob) {\n this.blob = function() {\n var rejected = consumed(this);\n if (rejected) {\n return rejected\n }\n\n if (this._bodyBlob) {\n return Promise.resolve(this._bodyBlob)\n } else if (this._bodyArrayBuffer) {\n return Promise.resolve(new Blob([this._bodyArrayBuffer]))\n } else if (this._bodyFormData) {\n throw new Error('could not read FormData body as blob')\n } else {\n return Promise.resolve(new Blob([this._bodyText]))\n }\n };\n }\n\n this.arrayBuffer = function() {\n if (this._bodyArrayBuffer) {\n var isConsumed = consumed(this);\n if (isConsumed) {\n return isConsumed\n } else if (ArrayBuffer.isView(this._bodyArrayBuffer)) {\n return Promise.resolve(\n this._bodyArrayBuffer.buffer.slice(\n this._bodyArrayBuffer.byteOffset,\n this._bodyArrayBuffer.byteOffset + this._bodyArrayBuffer.byteLength\n )\n )\n } else {\n return Promise.resolve(this._bodyArrayBuffer)\n }\n } else if (support.blob) {\n return this.blob().then(readBlobAsArrayBuffer)\n } else {\n throw new Error('could not read as ArrayBuffer')\n }\n };\n\n this.text = function() {\n var rejected = consumed(this);\n if (rejected) {\n return rejected\n }\n\n if (this._bodyBlob) {\n return readBlobAsText(this._bodyBlob)\n } else if (this._bodyArrayBuffer) {\n return Promise.resolve(readArrayBufferAsText(this._bodyArrayBuffer))\n } else if (this._bodyFormData) {\n throw new Error('could not read FormData body as text')\n } else {\n return Promise.resolve(this._bodyText)\n }\n };\n\n if (support.formData) {\n this.formData = function() {\n return this.text().then(decode)\n };\n }\n\n this.json = function() {\n return this.text().then(JSON.parse)\n };\n\n return this\n }\n\n // HTTP methods whose capitalization should be normalized\n var methods = ['CONNECT', 'DELETE', 'GET', 'HEAD', 'OPTIONS', 'PATCH', 'POST', 'PUT', 'TRACE'];\n\n function normalizeMethod(method) {\n var upcased = method.toUpperCase();\n return methods.indexOf(upcased) > -1 ? upcased : method\n }\n\n function Request(input, options) {\n if (!(this instanceof Request)) {\n throw new TypeError('Please use the \"new\" operator, this DOM object constructor cannot be called as a function.')\n }\n\n options = options || {};\n var body = options.body;\n\n if (input instanceof Request) {\n if (input.bodyUsed) {\n throw new TypeError('Already read')\n }\n this.url = input.url;\n this.credentials = input.credentials;\n if (!options.headers) {\n this.headers = new Headers(input.headers);\n }\n this.method = input.method;\n this.mode = input.mode;\n this.signal = input.signal;\n if (!body && input._bodyInit != null) {\n body = input._bodyInit;\n input.bodyUsed = true;\n }\n } else {\n this.url = String(input);\n }\n\n this.credentials = options.credentials || this.credentials || 'same-origin';\n if (options.headers || !this.headers) {\n this.headers = new Headers(options.headers);\n }\n this.method = normalizeMethod(options.method || this.method || 'GET');\n this.mode = options.mode || this.mode || null;\n this.signal = options.signal || this.signal || (function () {\n if ('AbortController' in g) {\n var ctrl = new AbortController();\n return ctrl.signal;\n }\n }());\n this.referrer = null;\n\n if ((this.method === 'GET' || this.method === 'HEAD') && body) {\n throw new TypeError('Body not allowed for GET or HEAD requests')\n }\n this._initBody(body);\n\n if (this.method === 'GET' || this.method === 'HEAD') {\n if (options.cache === 'no-store' || options.cache === 'no-cache') {\n // Search for a '_' parameter in the query string\n var reParamSearch = /([?&])_=[^&]*/;\n if (reParamSearch.test(this.url)) {\n // If it already exists then set the value with the current time\n this.url = this.url.replace(reParamSearch, '$1_=' + new Date().getTime());\n } else {\n // Otherwise add a new '_' parameter to the end with the current time\n var reQueryString = /\\?/;\n this.url += (reQueryString.test(this.url) ? '&' : '?') + '_=' + new Date().getTime();\n }\n }\n }\n }\n\n Request.prototype.clone = function() {\n return new Request(this, {body: this._bodyInit})\n };\n\n function decode(body) {\n var form = new FormData();\n body\n .trim()\n .split('&')\n .forEach(function(bytes) {\n if (bytes) {\n var split = bytes.split('=');\n var name = split.shift().replace(/\\+/g, ' ');\n var value = split.join('=').replace(/\\+/g, ' ');\n form.append(decodeURIComponent(name), decodeURIComponent(value));\n }\n });\n return form\n }\n\n function parseHeaders(rawHeaders) {\n var headers = new Headers();\n // Replace instances of \\r\\n and \\n followed by at least one space or horizontal tab with a space\n // https://tools.ietf.org/html/rfc7230#section-3.2\n var preProcessedHeaders = rawHeaders.replace(/\\r?\\n[\\t ]+/g, ' ');\n // Avoiding split via regex to work around a common IE11 bug with the core-js 3.6.0 regex polyfill\n // https://github.com/github/fetch/issues/748\n // https://github.com/zloirock/core-js/issues/751\n preProcessedHeaders\n .split('\\r')\n .map(function(header) {\n return header.indexOf('\\n') === 0 ? header.substr(1, header.length) : header\n })\n .forEach(function(line) {\n var parts = line.split(':');\n var key = parts.shift().trim();\n if (key) {\n var value = parts.join(':').trim();\n try {\n headers.append(key, value);\n } catch (error) {\n console.warn('Response ' + error.message);\n }\n }\n });\n return headers\n }\n\n Body.call(Request.prototype);\n\n function Response(bodyInit, options) {\n if (!(this instanceof Response)) {\n throw new TypeError('Please use the \"new\" operator, this DOM object constructor cannot be called as a function.')\n }\n if (!options) {\n options = {};\n }\n\n this.type = 'default';\n this.status = options.status === undefined ? 200 : options.status;\n if (this.status < 200 || this.status > 599) {\n throw new RangeError(\"Failed to construct 'Response': The status provided (0) is outside the range [200, 599].\")\n }\n this.ok = this.status >= 200 && this.status < 300;\n this.statusText = options.statusText === undefined ? '' : '' + options.statusText;\n this.headers = new Headers(options.headers);\n this.url = options.url || '';\n this._initBody(bodyInit);\n }\n\n Body.call(Response.prototype);\n\n Response.prototype.clone = function() {\n return new Response(this._bodyInit, {\n status: this.status,\n statusText: this.statusText,\n headers: new Headers(this.headers),\n url: this.url\n })\n };\n\n Response.error = function() {\n var response = new Response(null, {status: 200, statusText: ''});\n response.ok = false;\n response.status = 0;\n response.type = 'error';\n return response\n };\n\n var redirectStatuses = [301, 302, 303, 307, 308];\n\n Response.redirect = function(url, status) {\n if (redirectStatuses.indexOf(status) === -1) {\n throw new RangeError('Invalid status code')\n }\n\n return new Response(null, {status: status, headers: {location: url}})\n };\n\n exports.DOMException = g.DOMException;\n try {\n new exports.DOMException();\n } catch (err) {\n exports.DOMException = function(message, name) {\n this.message = message;\n this.name = name;\n var error = Error(message);\n this.stack = error.stack;\n };\n exports.DOMException.prototype = Object.create(Error.prototype);\n exports.DOMException.prototype.constructor = exports.DOMException;\n }\n\n function fetch(input, init) {\n return new Promise(function(resolve, reject) {\n var request = new Request(input, init);\n\n if (request.signal && request.signal.aborted) {\n return reject(new exports.DOMException('Aborted', 'AbortError'))\n }\n\n var xhr = new XMLHttpRequest();\n\n function abortXhr() {\n xhr.abort();\n }\n\n xhr.onload = function() {\n var options = {\n statusText: xhr.statusText,\n headers: parseHeaders(xhr.getAllResponseHeaders() || '')\n };\n // This check if specifically for when a user fetches a file locally from the file system\n // Only if the status is out of a normal range\n if (request.url.indexOf('file://') === 0 && (xhr.status < 200 || xhr.status > 599)) {\n options.status = 200;\n } else {\n options.status = xhr.status;\n }\n options.url = 'responseURL' in xhr ? xhr.responseURL : options.headers.get('X-Request-URL');\n var body = 'response' in xhr ? xhr.response : xhr.responseText;\n setTimeout(function() {\n resolve(new Response(body, options));\n }, 0);\n };\n\n xhr.onerror = function() {\n setTimeout(function() {\n reject(new TypeError('Network request failed'));\n }, 0);\n };\n\n xhr.ontimeout = function() {\n setTimeout(function() {\n reject(new TypeError('Network request timed out'));\n }, 0);\n };\n\n xhr.onabort = function() {\n setTimeout(function() {\n reject(new exports.DOMException('Aborted', 'AbortError'));\n }, 0);\n };\n\n function fixUrl(url) {\n try {\n return url === '' && g.location.href ? g.location.href : url\n } catch (e) {\n return url\n }\n }\n\n xhr.open(request.method, fixUrl(request.url), true);\n\n if (request.credentials === 'include') {\n xhr.withCredentials = true;\n } else if (request.credentials === 'omit') {\n xhr.withCredentials = false;\n }\n\n if ('responseType' in xhr) {\n if (support.blob) {\n xhr.responseType = 'blob';\n } else if (\n support.arrayBuffer\n ) {\n xhr.responseType = 'arraybuffer';\n }\n }\n\n if (init && typeof init.headers === 'object' && !(init.headers instanceof Headers || (g.Headers && init.headers instanceof g.Headers))) {\n var names = [];\n Object.getOwnPropertyNames(init.headers).forEach(function(name) {\n names.push(normalizeName(name));\n xhr.setRequestHeader(name, normalizeValue(init.headers[name]));\n });\n request.headers.forEach(function(value, name) {\n if (names.indexOf(name) === -1) {\n xhr.setRequestHeader(name, value);\n }\n });\n } else {\n request.headers.forEach(function(value, name) {\n xhr.setRequestHeader(name, value);\n });\n }\n\n if (request.signal) {\n request.signal.addEventListener('abort', abortXhr);\n\n xhr.onreadystatechange = function() {\n // DONE (success or failure)\n if (xhr.readyState === 4) {\n request.signal.removeEventListener('abort', abortXhr);\n }\n };\n }\n\n xhr.send(typeof request._bodyInit === 'undefined' ? null : request._bodyInit);\n })\n }\n\n fetch.polyfill = true;\n\n if (!g.fetch) {\n g.fetch = fetch;\n g.Headers = Headers;\n g.Request = Request;\n g.Response = Response;\n }\n\n exports.Headers = Headers;\n exports.Request = Request;\n exports.Response = Response;\n exports.fetch = fetch;\n\n return exports;\n\n})({});\n})(__globalThis__);\n// This is a ponyfill, so...\n__globalThis__.fetch.ponyfill = true;\ndelete __globalThis__.fetch.polyfill;\n// Choose between native implementation (__global__) or custom implementation (__globalThis__)\nvar ctx = __global__.fetch ? __global__ : __globalThis__;\nexports = ctx.fetch // To enable: import fetch from 'cross-fetch'\nexports.default = ctx.fetch // For TypeScript consumers without esModuleInterop.\nexports.fetch = ctx.fetch // To enable: import {fetch} from 'cross-fetch'\nexports.Headers = ctx.Headers\nexports.Request = ctx.Request\nexports.Response = ctx.Response\nmodule.exports = exports\n"],"x_google_ignoreList":[0],"mappings":";;;CACA,IAAI,IACH,OAAO,aAAe,OAAe,cACrC,OAAO,OAAS,OAAe,QAC/B,OAAO,SAAW,OAAe,QAE9B,KAAkB,WAAY;EAClC,SAAS,IAAI;AAEb,GADA,KAAK,QAAQ,IACb,KAAK,eAAe,EAAW;;AAG/B,SADA,EAAE,YAAY,GACP,IAAI,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|
|
1
|
+
//#region \0rolldown/runtime.js
|
|
2
|
+
var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescriptor, r = Object.getOwnPropertyNames, i = Object.getPrototypeOf, a = Object.prototype.hasOwnProperty, o = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), s = (e, i, o, s) => {
|
|
3
|
+
if (i && typeof i == "object" || typeof i == "function") for (var c = r(i), l = 0, u = c.length, d; l < u; l++) d = c[l], !a.call(e, d) && d !== o && t(e, d, {
|
|
4
|
+
get: ((e) => i[e]).bind(null, d),
|
|
5
|
+
enumerable: !(s = n(i, d)) || s.enumerable
|
|
6
|
+
});
|
|
7
|
+
return e;
|
|
8
|
+
}, c = (n, r, a) => (a = n == null ? {} : e(i(n)), s(r || !n || !n.__esModule ? t(a, "default", {
|
|
9
|
+
value: n,
|
|
10
|
+
enumerable: !0
|
|
11
|
+
}) : a, n)), l = /* @__PURE__ */ ((e) => typeof require < "u" ? require : typeof Proxy < "u" ? new Proxy(e, { get: (e, t) => (typeof require < "u" ? require : e)[t] }) : e)(function(e) {
|
|
12
|
+
if (typeof require < "u") return require.apply(this, arguments);
|
|
13
|
+
throw Error("Calling `require` for \"" + e + "\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.");
|
|
14
|
+
});
|
|
15
|
+
//#endregion
|
|
16
|
+
export { l as n, c as r, o as t };
|