hook-fetch 2.1.3 → 2.1.5
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/CHANGELOG.md +155 -0
- package/README.en.md +28 -20
- package/README.md +40 -28
- package/dist/cjs/index.cjs +1 -1
- package/dist/es/index.mjs +1 -1
- package/dist/umd/index.js +1 -1
- package/package.json +2 -1
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
# hook-fetch
|
|
2
|
+
|
|
3
|
+
## 2.1.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 更新文档
|
|
8
|
+
|
|
9
|
+
## 2.1.4
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 修复beforeRequest中不能抛错的问题
|
|
14
|
+
|
|
15
|
+
## 2.1.3
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- 修复stream方法的错误不会走plugin的错误生命周期的bug
|
|
20
|
+
|
|
21
|
+
## 2.1.2
|
|
22
|
+
|
|
23
|
+
### Patch Changes
|
|
24
|
+
|
|
25
|
+
- 修复抛出的HookFetchRequest类型不支持泛型的问题
|
|
26
|
+
|
|
27
|
+
## 2.1.1
|
|
28
|
+
|
|
29
|
+
### Patch Changes
|
|
30
|
+
|
|
31
|
+
- 8d4d6b6: 修复HookFetchRequest实例没有抛出的问题
|
|
32
|
+
|
|
33
|
+
## 2.1.1-beta.0
|
|
34
|
+
|
|
35
|
+
### Patch Changes
|
|
36
|
+
|
|
37
|
+
- 修复HookFetchRequest实例没有抛出的问题
|
|
38
|
+
|
|
39
|
+
## 3.0.0-beta.0
|
|
40
|
+
|
|
41
|
+
### Major Changes
|
|
42
|
+
|
|
43
|
+
- 4b15105: 修改changeset配置, 改用changeset进行发布
|
|
44
|
+
|
|
45
|
+
## v2.1.0 💥
|
|
46
|
+
|
|
47
|
+
**发布日期**: 2025-08-08
|
|
48
|
+
|
|
49
|
+
#### 💔 破坏性变更
|
|
50
|
+
|
|
51
|
+
- 泛型签名调整:`HookFetch` 与 `hookFetch.create` 的泛型从
|
|
52
|
+
`<R extends AnyObject = AnyObject, K extends keyof R = 'data', E = AnyObject>`
|
|
53
|
+
调整为
|
|
54
|
+
`<R extends AnyObject | null = null, K extends keyof R = never, E = AnyObject>`。
|
|
55
|
+
- 当 `R = null`(默认)时:`json<T>()` 的返回类型为 `T`,不做包裹映射(更贴近原生 fetch 的直觉)。
|
|
56
|
+
- 当你需要“包裹响应”并做键映射时:显式传入响应包裹类型和键名,例如 `hookFetch.create<ResponseVO, 'data'>(...)`,此时 `json<User>()` 的返回类型为 `ResponseVO` 且其中 `data` 为 `User`。
|
|
57
|
+
|
|
58
|
+
#### 🔧 迁移指南
|
|
59
|
+
|
|
60
|
+
- 旧代码:
|
|
61
|
+
|
|
62
|
+
```ts
|
|
63
|
+
interface ResponseVO {
|
|
64
|
+
code: number;
|
|
65
|
+
message: string;
|
|
66
|
+
data: never;
|
|
67
|
+
}
|
|
68
|
+
const api = hookFetch.create<ResponseVO>({ baseURL: "..." });
|
|
69
|
+
const res = await api.get<User>("/user").json();
|
|
70
|
+
// res.data: User
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
新代码需显式指定键名:
|
|
74
|
+
|
|
75
|
+
```ts
|
|
76
|
+
const api = hookFetch.create<ResponseVO, "data">({ baseURL: "..." });
|
|
77
|
+
const res = await api.get<User>("/user").json();
|
|
78
|
+
// res.data: User
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
- 若无需包裹(直接拿到 `T`):
|
|
82
|
+
```ts
|
|
83
|
+
const api = hookFetch.create(); // 等价于 <null, never>
|
|
84
|
+
const user = await api.get<User>("/user").json(); // user: User
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
#### 🧰 其他
|
|
88
|
+
|
|
89
|
+
- 同步更新文档:README 与 API 参考已更新示例,明确 `R | null` 与 `K` 的用法。
|
|
90
|
+
|
|
91
|
+
### v2.0.7 🛠️
|
|
92
|
+
|
|
93
|
+
**发布日期**: 2025-08-08
|
|
94
|
+
|
|
95
|
+
#### 🐛 修复
|
|
96
|
+
|
|
97
|
+
- 修复 `json`、`text`、`blob`、`arrayBuffer`、`formData`、`bytes` 方法的类型推断缺失问题(更完善的返回值类型提示)。
|
|
98
|
+
|
|
99
|
+
#### 🧱 基础设施
|
|
100
|
+
|
|
101
|
+
- 调整与修复发布 CI/CD 流程相关配置。
|
|
102
|
+
|
|
103
|
+
### v2.0.6
|
|
104
|
+
|
|
105
|
+
**发布日期**: 2025-08-07
|
|
106
|
+
|
|
107
|
+
#### 🔧 变更
|
|
108
|
+
|
|
109
|
+
- 发布流程与版本稳定性相关的调整。
|
|
110
|
+
|
|
111
|
+
### v2.0.3 🎉
|
|
112
|
+
|
|
113
|
+
**发布日期**: 2025-06-30
|
|
114
|
+
|
|
115
|
+
#### 💔 破坏性变更
|
|
116
|
+
|
|
117
|
+
- **移除默认JSON解析**: 不再自动解析JSON响应,需要显式调用 `.json()` 方法
|
|
118
|
+
- **更明确的响应处理**: 提供更明确的响应数据处理方式,避免隐式行为
|
|
119
|
+
|
|
120
|
+
#### 🔧 API 调整
|
|
121
|
+
|
|
122
|
+
- 所有请求方法现在需要显式调用响应处理方法(如 `.json()`, `.text()` 等)
|
|
123
|
+
- 提高了API的明确性和可预测性
|
|
124
|
+
|
|
125
|
+
#### 📚 文档更新
|
|
126
|
+
|
|
127
|
+
- 更新了所有示例代码,明确显示 `.json()` 调用
|
|
128
|
+
- 改进了响应处理的文档说明
|
|
129
|
+
|
|
130
|
+
### v1.0.x
|
|
131
|
+
|
|
132
|
+
**发布日期**: 2025-04
|
|
133
|
+
|
|
134
|
+
#### 🎯 首次发布
|
|
135
|
+
|
|
136
|
+
- 基于原生 fetch API 的现代化 HTTP 请求库
|
|
137
|
+
- **自动JSON解析**: 默认自动解析JSON响应
|
|
138
|
+
- **完整插件系统**: 支持 `beforeRequest`, `afterResponse`, `beforeStream`, `transformStreamChunk`, `onError`, `onFinally` 生命周期钩子
|
|
139
|
+
- **Vue Hooks 支持**: 提供 `useHookFetch` Vue 组合式 API
|
|
140
|
+
- **React Hooks 支持**: 提供 `useHookFetch` React Hook
|
|
141
|
+
- **多种响应处理**: 支持 `json()`, `text()`, `blob()`, `arrayBuffer()`, `formData()`, `bytes()` 方法
|
|
142
|
+
- **请求重试机制**: 支持 `.retry()` 方法重试已中断的请求
|
|
143
|
+
- **流式数据处理**: 强大的流式响应处理能力
|
|
144
|
+
- **请求中断**: 支持 `.abort()` 方法中断请求
|
|
145
|
+
- **插件优先级**: 支持插件优先级设置
|
|
146
|
+
- **SSE 支持**: 提供 `sseTextDecoderPlugin` 插件
|
|
147
|
+
- **完整 TypeScript 支持**: 提供完善的类型定义和泛型支持
|
|
148
|
+
- **灵活配置**: 支持超时、baseURL、请求头、参数序列化等配置选项
|
|
149
|
+
- **VSCode 智能提示**: 提供专门的类型声明文件
|
|
150
|
+
|
|
151
|
+
### 即将发布
|
|
152
|
+
|
|
153
|
+
- 更多内置插件
|
|
154
|
+
- 更丰富的插件生态
|
|
155
|
+
- 更多框架集成支持
|
package/README.en.md
CHANGED
|
@@ -1,11 +1,18 @@
|
|
|
1
|
-
|
|
1
|
+
<div align="center">
|
|
2
|
+
<a href="https://jsonlee12138.github.io/hook-fetch/"><img src="https://jsonlee12138.github.io/hook-fetch/img/logo.png" /></a><br>
|
|
3
|
+
</div>
|
|
4
|
+
<h1 align="center" style="margin-bottom: 0;">Hook-Fetch</h1>
|
|
5
|
+
<div align="center">
|
|
2
6
|
|
|
3
|
-
|
|
7
|
+
[](https://github.com/JsonLee12138/hook-fetch/actions/workflows/release.yml) [](https://packagephobia.com/result?p=hook-fetch) [](https://bundlephobia.com/package/hook-fetch@latest) [](https://npm-stat.com/charts.html?package=hook-fetch) [](https://discord.com/invite/666U6JTCQY)
|
|
4
8
|
|
|
5
|
-
|
|
9
|
+
**[中文文档](https://github.com/JsonLee12138/hook-fetch/blob/main/README.md)**
|
|
6
10
|
|
|
7
11
|
Hook-Fetch is a powerful request library based on the native fetch API, offering a simpler syntax, richer features, and a more flexible plugin system. It supports request retries, streaming data processing, request cancellation, and more. With its Promise-based chaining style, API requests become simpler and more controllable.
|
|
8
12
|
|
|
13
|
+
</div>
|
|
14
|
+
<br />
|
|
15
|
+
|
|
9
16
|
## Installation
|
|
10
17
|
|
|
11
18
|
```bash
|
|
@@ -149,7 +156,7 @@ Hook-Fetch offers a robust plugin system allowing intervention at various stages
|
|
|
149
156
|
```typescript
|
|
150
157
|
// Custom plugin example: SSE text decoding plugin
|
|
151
158
|
// This is just an example. It's recommended to use the provided `sseTextDecoderPlugin` which has more comprehensive handling
|
|
152
|
-
|
|
159
|
+
function ssePlugin() {
|
|
153
160
|
const decoder = new TextDecoder('utf-8');
|
|
154
161
|
return {
|
|
155
162
|
name: 'sse',
|
|
@@ -159,8 +166,8 @@ const ssePlugin = () => {
|
|
|
159
166
|
}
|
|
160
167
|
return chunk;
|
|
161
168
|
}
|
|
162
|
-
}
|
|
163
|
-
}
|
|
169
|
+
};
|
|
170
|
+
}
|
|
164
171
|
|
|
165
172
|
// Register the plugin
|
|
166
173
|
api.use(ssePlugin());
|
|
@@ -176,7 +183,7 @@ for await (const chunk of req.stream<string>()) {
|
|
|
176
183
|
|
|
177
184
|
```typescript
|
|
178
185
|
// Complete plugin example showing the usage of each lifecycle hook
|
|
179
|
-
|
|
186
|
+
function examplePlugin() {
|
|
180
187
|
return {
|
|
181
188
|
name: 'example',
|
|
182
189
|
priority: 1, // Priority, lower numbers have higher priority
|
|
@@ -194,17 +201,18 @@ const examplePlugin = () => {
|
|
|
194
201
|
// Can process response data. context.result is the result after being processed by methods like json()
|
|
195
202
|
if (context.responseType === 'json') {
|
|
196
203
|
// For example, determine if the request is truly successful based on the backend's business code
|
|
197
|
-
if(context.result.code === 200){
|
|
204
|
+
if (context.result.code === 200) {
|
|
198
205
|
// Business success, return context directly
|
|
199
|
-
return context
|
|
200
|
-
}
|
|
206
|
+
return context;
|
|
207
|
+
}
|
|
208
|
+
else {
|
|
201
209
|
// Business failure, actively throw a ResponseError, which will be caught in the onError hook
|
|
202
210
|
throw new ResponseError({
|
|
203
211
|
message: context.result.message, // Use the error message from the backend
|
|
204
|
-
status: context.result.code,
|
|
205
|
-
response: context.response,
|
|
212
|
+
status: context.result.code, // Use the business code as the status
|
|
213
|
+
response: context.response, // Original Response object
|
|
206
214
|
config: context.config,
|
|
207
|
-
name: 'BusinessError'
|
|
215
|
+
name: 'BusinessError' // Custom error name
|
|
208
216
|
});
|
|
209
217
|
}
|
|
210
218
|
}
|
|
@@ -233,7 +241,8 @@ const examplePlugin = () => {
|
|
|
233
241
|
if (error.name === 'BusinessError') {
|
|
234
242
|
// Handle custom business errors
|
|
235
243
|
console.error(`Business Error: ${error.message}`);
|
|
236
|
-
}
|
|
244
|
+
}
|
|
245
|
+
else if (error.status === 401) {
|
|
237
246
|
// Handle unauthorized error
|
|
238
247
|
console.error('Login has expired, please log in again');
|
|
239
248
|
// window.location.href = '/login';
|
|
@@ -248,7 +257,7 @@ const examplePlugin = () => {
|
|
|
248
257
|
console.log(`Request to ${config.url} completed`);
|
|
249
258
|
}
|
|
250
259
|
};
|
|
251
|
-
}
|
|
260
|
+
}
|
|
252
261
|
```
|
|
253
262
|
|
|
254
263
|
All lifecycle hooks support both synchronous and asynchronous operations. They can return either a Promise or a direct value. Each hook function receives the current configuration object (config), which can be used to make decisions and handle different request scenarios.
|
|
@@ -355,17 +364,13 @@ interface HookFetchPlugin<T = unknown, E = unknown, P = unknown, D = unknown> {
|
|
|
355
364
|
}
|
|
356
365
|
```
|
|
357
366
|
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
367
|
## Vue Hooks
|
|
363
368
|
|
|
364
369
|
Hook-Fetch provides Vue Composition API support, making it easier to use in Vue components:
|
|
365
370
|
|
|
366
371
|
```typescript
|
|
367
|
-
import { useHookFetch } from 'hook-fetch/vue';
|
|
368
372
|
import hookFetch from 'hook-fetch';
|
|
373
|
+
import { useHookFetch } from 'hook-fetch/vue';
|
|
369
374
|
|
|
370
375
|
// Create request instance
|
|
371
376
|
const api = hookFetch.create({
|
|
@@ -478,6 +483,7 @@ const YourComponent = () => {
|
|
|
478
483
|
```
|
|
479
484
|
|
|
480
485
|
### vscode hint plugin reference path
|
|
486
|
+
|
|
481
487
|
```typescript
|
|
482
488
|
// Create a file hook-fetch.d.ts in src with the following content
|
|
483
489
|
/// <reference types="hook-fetch/plugins" />
|
|
@@ -493,10 +499,12 @@ const YourComponent = () => {
|
|
|
493
499
|
4. Plugins execute in order of priority.
|
|
494
500
|
|
|
495
501
|
## Upcoming Features
|
|
502
|
+
|
|
496
503
|
- `umd` support
|
|
497
504
|
- More plugin support
|
|
498
505
|
|
|
499
506
|
## 📝 Contribution Guide
|
|
507
|
+
|
|
500
508
|
Feel free to submit `issues` or `pull requests` to help improve `Hook-Fetch`.
|
|
501
509
|
|
|
502
510
|
## 📄 License
|
package/README.md
CHANGED
|
@@ -1,11 +1,18 @@
|
|
|
1
|
-
|
|
1
|
+
<div align="center">
|
|
2
|
+
<a href="https://jsonlee12138.github.io/hook-fetch/"><img src="https://jsonlee12138.github.io/hook-fetch/img/logo.png" /></a><br>
|
|
3
|
+
</div>
|
|
4
|
+
<h1 align="center" style="margin-bottom: 0;">Hook-Fetch</h1>
|
|
5
|
+
<div align="center">
|
|
2
6
|
|
|
3
|
-
|
|
7
|
+
[](https://github.com/JsonLee12138/hook-fetch/actions/workflows/release.yml) [](https://packagephobia.com/result?p=hook-fetch) [](https://bundlephobia.com/package/hook-fetch@latest) [](https://npm-stat.com/charts.html?package=hook-fetch) [](https://discord.com/invite/666U6JTCQY)
|
|
4
8
|
|
|
5
|
-
|
|
9
|
+
**[English document](https://github.com/JsonLee12138/hook-fetch/blob/main/README.en.md)**
|
|
6
10
|
|
|
7
11
|
Hook-Fetch 是一个强大的基于原生 fetch API 的请求库,提供了更简洁的语法、更丰富的功能和更灵活的插件系统。它支持请求重试、流式数据处理、中断请求等特性,并且采用Promise链式调用风格,使API请求变得更加简单和可控。
|
|
8
12
|
|
|
13
|
+
</div>
|
|
14
|
+
<br />
|
|
15
|
+
|
|
9
16
|
## 安装
|
|
10
17
|
|
|
11
18
|
```bash
|
|
@@ -149,7 +156,7 @@ Hook-Fetch 提供了强大的插件系统,可以在请求生命周期的各个
|
|
|
149
156
|
```typescript
|
|
150
157
|
// 自定义插件示例:SSE文本解码插件
|
|
151
158
|
// 当前只是示例, 建议使用当前库提供的`sseTextDecoderPlugin`插件, 那里做了更完善的处理
|
|
152
|
-
|
|
159
|
+
function ssePlugin() {
|
|
153
160
|
const decoder = new TextDecoder('utf-8');
|
|
154
161
|
return {
|
|
155
162
|
name: 'sse',
|
|
@@ -159,8 +166,8 @@ const ssePlugin = () => {
|
|
|
159
166
|
}
|
|
160
167
|
return chunk;
|
|
161
168
|
}
|
|
162
|
-
}
|
|
163
|
-
}
|
|
169
|
+
};
|
|
170
|
+
}
|
|
164
171
|
|
|
165
172
|
// 注册插件
|
|
166
173
|
api.use(ssePlugin());
|
|
@@ -176,7 +183,7 @@ for await (const chunk of req.stream<string>()) {
|
|
|
176
183
|
|
|
177
184
|
```typescript
|
|
178
185
|
// 完整的插件示例,展示各个生命周期的使用
|
|
179
|
-
|
|
186
|
+
function examplePlugin() {
|
|
180
187
|
return {
|
|
181
188
|
name: 'example',
|
|
182
189
|
priority: 1, // 优先级,数字越小优先级越高
|
|
@@ -194,17 +201,18 @@ const examplePlugin = () => {
|
|
|
194
201
|
// 可以处理响应数据, context.result 是已经过 json() 等方法处理后的结果
|
|
195
202
|
if (context.responseType === 'json') {
|
|
196
203
|
// 例如,根据后端的业务码判断请求是否真正成功
|
|
197
|
-
if(context.result.code === 200){
|
|
204
|
+
if (context.result.code === 200) {
|
|
198
205
|
// 业务成功,直接返回 context
|
|
199
|
-
return context
|
|
200
|
-
}
|
|
206
|
+
return context;
|
|
207
|
+
}
|
|
208
|
+
else {
|
|
201
209
|
// 业务失败,主动抛出一个 ResponseError,它将在 onError 钩子中被捕获
|
|
202
210
|
throw new ResponseError({
|
|
203
211
|
message: context.result.message, // 使用后端的错误信息
|
|
204
|
-
status: context.result.code,
|
|
205
|
-
response: context.response,
|
|
212
|
+
status: context.result.code, // 使用后端的业务码作为状态
|
|
213
|
+
response: context.response, // 原始 Response 对象
|
|
206
214
|
config: context.config,
|
|
207
|
-
name: 'BusinessError'
|
|
215
|
+
name: 'BusinessError' // 自定义错误名称
|
|
208
216
|
});
|
|
209
217
|
}
|
|
210
218
|
}
|
|
@@ -233,7 +241,8 @@ const examplePlugin = () => {
|
|
|
233
241
|
if (error.name === 'BusinessError') {
|
|
234
242
|
// 处理自定义的业务错误
|
|
235
243
|
console.error(`业务错误: ${error.message}`);
|
|
236
|
-
}
|
|
244
|
+
}
|
|
245
|
+
else if (error.status === 401) {
|
|
237
246
|
// 处理未授权错误
|
|
238
247
|
console.error('登录已过期,请重新登录');
|
|
239
248
|
// window.location.href = '/login';
|
|
@@ -248,14 +257,14 @@ const examplePlugin = () => {
|
|
|
248
257
|
console.log(`Request to ${config.url} completed`);
|
|
249
258
|
}
|
|
250
259
|
};
|
|
251
|
-
}
|
|
260
|
+
}
|
|
252
261
|
```
|
|
253
262
|
|
|
254
263
|
#### 业务场景封装示例
|
|
255
264
|
|
|
256
265
|
```typescript
|
|
257
266
|
// 创建一个业务请求实例
|
|
258
|
-
|
|
267
|
+
function createRequest() {
|
|
259
268
|
// 创建基础实例
|
|
260
269
|
const request = hookFetch.create({
|
|
261
270
|
baseURL: 'https://api.example.com',
|
|
@@ -322,24 +331,24 @@ const createRequest = () => {
|
|
|
322
331
|
return {
|
|
323
332
|
// 用户相关接口
|
|
324
333
|
user: {
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
334
|
+
// 获取用户信息
|
|
335
|
+
getInfo: () => request.get('/user/info').json(),
|
|
336
|
+
// 更新用户信息
|
|
337
|
+
updateInfo: data => request.put('/user/info', data).json(),
|
|
338
|
+
// 修改密码
|
|
339
|
+
changePassword: data => request.post('/user/password', data).json()
|
|
331
340
|
},
|
|
332
341
|
// 订单相关接口
|
|
333
342
|
order: {
|
|
334
343
|
// 获取订单列表
|
|
335
|
-
getList:
|
|
344
|
+
getList: params => request.get('/orders', params).json(),
|
|
336
345
|
// 创建订单
|
|
337
|
-
create:
|
|
346
|
+
create: data => request.post('/orders', data).json(),
|
|
338
347
|
// 取消订单
|
|
339
|
-
cancel:
|
|
348
|
+
cancel: id => request.post(`/orders/${id}/cancel`).json()
|
|
340
349
|
}
|
|
341
350
|
};
|
|
342
|
-
}
|
|
351
|
+
}
|
|
343
352
|
|
|
344
353
|
// 使用示例
|
|
345
354
|
const api = createRequest();
|
|
@@ -355,6 +364,7 @@ const order = await api.order.create({
|
|
|
355
364
|
```
|
|
356
365
|
|
|
357
366
|
插件钩子函数:
|
|
367
|
+
|
|
358
368
|
- `beforeRequest`: 请求发送前处理配置,可以返回新的配置或直接修改配置
|
|
359
369
|
- `afterResponse`: 响应接收后处理数据,可以返回新的响应或直接修改响应
|
|
360
370
|
- `beforeStream`: 流式请求开始时的处理,用于初始化或转换流
|
|
@@ -466,14 +476,13 @@ interface HookFetchPlugin<T = unknown, E = unknown, P = unknown, D = unknown> {
|
|
|
466
476
|
}
|
|
467
477
|
```
|
|
468
478
|
|
|
469
|
-
|
|
470
479
|
## Vue Hooks
|
|
471
480
|
|
|
472
481
|
Hook-Fetch 提供了 Vue 组合式 API 的支持,可以更方便地在 Vue 组件中使用:
|
|
473
482
|
|
|
474
483
|
```typescript
|
|
475
|
-
import { useHookFetch } from 'hook-fetch/vue';
|
|
476
484
|
import hookFetch from 'hook-fetch';
|
|
485
|
+
import { useHookFetch } from 'hook-fetch/vue';
|
|
477
486
|
|
|
478
487
|
// 创建请求实例
|
|
479
488
|
const api = hookFetch.create({
|
|
@@ -586,6 +595,7 @@ const YourComponent = () => {
|
|
|
586
595
|
```
|
|
587
596
|
|
|
588
597
|
### vscode提示插件的引用路径
|
|
598
|
+
|
|
589
599
|
```typescript
|
|
590
600
|
// 在 src 中创建文件 hook-fetch.d.ts, 内容如下
|
|
591
601
|
/// <reference types="hook-fetch/plugins" />
|
|
@@ -601,10 +611,12 @@ const YourComponent = () => {
|
|
|
601
611
|
4. 插件按照优先级顺序执行
|
|
602
612
|
|
|
603
613
|
## 预计开发内容
|
|
614
|
+
|
|
604
615
|
- `umd` 支持
|
|
605
616
|
- 更多的插件支持
|
|
606
617
|
|
|
607
618
|
## 📝 贡献指南
|
|
619
|
+
|
|
608
620
|
欢迎提交`issue`或`pull request`,共同完善`Hook-Fetch`。
|
|
609
621
|
|
|
610
622
|
## 📄 许可证
|
package/dist/cjs/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports,`__esModule`,{value:!0});const e=require(`./chunk.cjs`);var t=e.__commonJSMin((exports,t)=>{t.exports=TypeError}),n=e.__commonJSMin((exports,t)=>{t.exports=require(`util`).inspect}),r=e.__commonJSMin((exports,t)=>{var r=typeof Map==`function`&&Map.prototype,i=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,`size`):null,a=r&&i&&typeof i.get==`function`?i.get:null,o=r&&Map.prototype.forEach,s=typeof Set==`function`&&Set.prototype,c=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,`size`):null,l=s&&c&&typeof c.get==`function`?c.get:null,u=s&&Set.prototype.forEach,d=typeof WeakMap==`function`&&WeakMap.prototype,f=d?WeakMap.prototype.has:null,p=typeof WeakSet==`function`&&WeakSet.prototype,m=p?WeakSet.prototype.has:null,h=typeof WeakRef==`function`&&WeakRef.prototype,g=h?WeakRef.prototype.deref:null,_=Boolean.prototype.valueOf,v=Object.prototype.toString,y=Function.prototype.toString,b=String.prototype.match,x=String.prototype.slice,S=String.prototype.replace,C=String.prototype.toUpperCase,w=String.prototype.toLowerCase,T=RegExp.prototype.test,E=Array.prototype.concat,D=Array.prototype.join,O=Array.prototype.slice,k=Math.floor,ee=typeof BigInt==`function`?BigInt.prototype.valueOf:null,A=Object.getOwnPropertySymbols,j=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?Symbol.prototype.toString:null,M=typeof Symbol==`function`&&typeof Symbol.iterator==`object`,N=typeof Symbol==`function`&&Symbol.toStringTag&&(typeof Symbol.toStringTag===M||`symbol`)?Symbol.toStringTag:null,te=Object.prototype.propertyIsEnumerable,P=(typeof Reflect==`function`?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function F(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||T.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e==`number`){var r=e<0?-k(-e):k(e);if(r!==e){var i=String(r),a=x.call(t,i.length+1);return S.call(i,n,`$&_`)+`.`+S.call(S.call(a,/([0-9]{3})/g,`$&_`),/_$/,``)}}return S.call(t,n,`$&_`)}var I=n(),L=I.custom,R=G(L)?L:null,ne={__proto__:null,double:`"`,single:`'`},z={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};t.exports=function e(t,n,r,i){var s=n||{};if(q(s,`quoteStyle`)&&!q(ne,s.quoteStyle))throw TypeError(`option "quoteStyle" must be "single" or "double"`);if(q(s,`maxStringLength`)&&(typeof s.maxStringLength==`number`?s.maxStringLength<0&&s.maxStringLength!==1/0:s.maxStringLength!==null))throw TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var c=q(s,`customInspect`)?s.customInspect:!0;if(typeof c!=`boolean`&&c!==`symbol`)throw TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(q(s,`indent`)&&s.indent!==null&&s.indent!==` `&&!(parseInt(s.indent,10)===s.indent&&s.indent>0))throw TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(q(s,`numericSeparator`)&&typeof s.numericSeparator!=`boolean`)throw TypeError('option "numericSeparator", if provided, must be `true` or `false`');var d=s.numericSeparator;if(t===void 0)return`undefined`;if(t===null)return`null`;if(typeof t==`boolean`)return t?`true`:`false`;if(typeof t==`string`)return Z(t,s);if(typeof t==`number`){if(t===0)return 1/0/t>0?`0`:`-0`;var f=String(t);return d?F(t,f):f}if(typeof t==`bigint`){var p=String(t)+`n`;return d?F(t,p):p}var m=s.depth===void 0?5:s.depth;if(r===void 0&&(r=0),r>=m&&m>0&&typeof t==`object`)return ae(t)?`[Array]`:`[Object]`;var h=ye(s,r);if(i===void 0)i=[];else if(ue(i,t)>=0)return`[Circular]`;function g(t,n,a){if(n&&(i=O.call(i),i.push(n)),a){var o={depth:s.depth};return q(s,`quoteStyle`)&&(o.quoteStyle=s.quoteStyle),e(t,o,r+1,i)}return e(t,s,r+1,i)}if(typeof t==`function`&&!V(t)){var v=le(t),y=xe(t,g);return`[Function`+(v?`: `+v:` (anonymous)`)+`]`+(y.length>0?` { `+D.call(y,`, `)+` }`:``)}if(G(t)){var b=M?S.call(String(t),/^(Symbol\(.*\))_[^)]*$/,`$1`):j.call(t);return typeof t==`object`&&!M?he(b):b}if(X(t)){for(var C=`<`+w.call(String(t.nodeName)),T=t.attributes||[],k=0;k<T.length;k++)C+=` `+T[k].name+`=`+re(ie(T[k].value),`double`,s);return C+=`>`,t.childNodes&&t.childNodes.length&&(C+=`...`),C+=`</`+w.call(String(t.nodeName))+`>`,C}if(ae(t)){if(t.length===0)return`[]`;var A=xe(t,g);return h&&!ve(A)?`[`+be(A,h)+`]`:`[ `+D.call(A,`, `)+` ]`}if(H(t)){var L=xe(t,g);return!(`cause`in Error.prototype)&&`cause`in t&&!te.call(t,`cause`)?`{ [`+String(t)+`] `+D.call(E.call(`[cause]: `+g(t.cause),L),`, `)+` }`:L.length===0?`[`+String(t)+`]`:`{ [`+String(t)+`] `+D.call(L,`, `)+` }`}if(typeof t==`object`&&c){if(R&&typeof t[R]==`function`&&I)return I(t,{depth:m-r});if(c!==`symbol`&&typeof t.inspect==`function`)return t.inspect()}if(de(t)){var z=[];return o&&o.call(t,function(e,n){z.push(g(n,t,!0)+` => `+g(e,t))}),_e(`Map`,a.call(t),z,h)}if(pe(t)){var B=[];return u&&u.call(t,function(e){B.push(g(e,t))}),_e(`Set`,l.call(t),B,h)}if(Y(t))return ge(`WeakMap`);if(me(t))return ge(`WeakSet`);if(fe(t))return ge(`WeakRef`);if(W(t))return he(g(Number(t)));if(ce(t))return he(g(ee.call(t)));if(se(t))return he(_.call(t));if(U(t))return he(g(String(t)));if(typeof window<`u`&&t===window)return`{ [object Window] }`;if(typeof globalThis<`u`&&t===globalThis||typeof global<`u`&&t===global)return`{ [object globalThis] }`;if(!oe(t)&&!V(t)){var K=xe(t,g),Q=P?P(t)===Object.prototype:t instanceof Object||t.constructor===Object,Se=t instanceof Object?``:`null prototype`,Ce=!Q&&N&&Object(t)===t&&N in t?x.call(J(t),8,-1):Se?`Object`:``,$=Q||typeof t.constructor!=`function`?``:t.constructor.name?t.constructor.name+` `:``,we=$+(Ce||Se?`[`+D.call(E.call([],Ce||[],Se||[]),`: `)+`] `:``);return K.length===0?we+`{}`:h?we+`{`+be(K,h)+`}`:we+`{ `+D.call(K,`, `)+` }`}return String(t)};function re(e,t,n){var r=n.quoteStyle||t,i=ne[r];return i+e+i}function ie(e){return S.call(String(e),/"/g,`"`)}function B(e){return!N||!(typeof e==`object`&&(N in e||e[N]!==void 0))}function ae(e){return J(e)===`[object Array]`&&B(e)}function oe(e){return J(e)===`[object Date]`&&B(e)}function V(e){return J(e)===`[object RegExp]`&&B(e)}function H(e){return J(e)===`[object Error]`&&B(e)}function U(e){return J(e)===`[object String]`&&B(e)}function W(e){return J(e)===`[object Number]`&&B(e)}function se(e){return J(e)===`[object Boolean]`&&B(e)}function G(e){if(M)return e&&typeof e==`object`&&e instanceof Symbol;if(typeof e==`symbol`)return!0;if(!e||typeof e!=`object`||!j)return!1;try{return j.call(e),!0}catch{}return!1}function ce(e){if(!e||typeof e!=`object`||!ee)return!1;try{return ee.call(e),!0}catch{}return!1}var K=Object.prototype.hasOwnProperty||function(e){return e in this};function q(e,t){return K.call(e,t)}function J(e){return v.call(e)}function le(e){if(e.name)return e.name;var t=b.call(y.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function ue(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function de(e){if(!a||!e||typeof e!=`object`)return!1;try{a.call(e);try{l.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function Y(e){if(!f||!e||typeof e!=`object`)return!1;try{f.call(e,f);try{m.call(e,m)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function fe(e){if(!g||!e||typeof e!=`object`)return!1;try{return g.call(e),!0}catch{}return!1}function pe(e){if(!l||!e||typeof e!=`object`)return!1;try{l.call(e);try{a.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function me(e){if(!m||!e||typeof e!=`object`)return!1;try{m.call(e,m);try{f.call(e,f)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function X(e){return!e||typeof e!=`object`?!1:typeof HTMLElement<`u`&&e instanceof HTMLElement?!0:typeof e.nodeName==`string`&&typeof e.getAttribute==`function`}function Z(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r=`... `+n+` more character`+(n>1?`s`:``);return Z(x.call(e,0,t.maxStringLength),t)+r}var i=z[t.quoteStyle||`single`];i.lastIndex=0;var a=S.call(S.call(e,i,`\\$1`),/[\x00-\x1f]/g,Q);return re(a,`single`,t)}function Q(e){var t=e.charCodeAt(0),n={8:`b`,9:`t`,10:`n`,12:`f`,13:`r`}[t];return n?`\\`+n:`\\x`+(t<16?`0`:``)+C.call(t.toString(16))}function he(e){return`Object(`+e+`)`}function ge(e){return e+` { ? }`}function _e(e,t,n,r){var i=r?be(n,r):D.call(n,`, `);return e+` (`+t+`) {`+i+`}`}function ve(e){for(var t=0;t<e.length;t++)if(ue(e[t],`
|
|
2
2
|
`)>=0)return!1;return!0}function ye(e,t){var n;if(e.indent===` `)n=` `;else if(typeof e.indent==`number`&&e.indent>0)n=D.call(Array(e.indent+1),` `);else return null;return{base:n,prev:D.call(Array(t+1),n)}}function be(e,t){if(e.length===0)return``;var n=`
|
|
3
3
|
`+t.prev+t.base;return n+D.call(e,`,`+n)+`
|
|
4
|
-
`+t.prev}function xe(e,t){var n=ae(e),r=[];if(n){r.length=e.length;for(var i=0;i<e.length;i++)r[i]=q(e,i)?t(e[i],e):``}var a=typeof A==`function`?A(e):[],o;if(M){o={};for(var s=0;s<a.length;s++)o[`$`+a[s]]=a[s]}for(var c in e){if(!q(e,c)||n&&String(Number(c))===c&&c<e.length||M&&o[`$`+c]instanceof Symbol)continue;T.call(/[^\w$]/,c)?r.push(t(c,e)+`: `+t(e[c],e)):r.push(c+`: `+t(e[c],e))}if(typeof A==`function`)for(var l=0;l<a.length;l++)te.call(e,a[l])&&r.push(`[`+t(a[l])+`]: `+t(e[a[l]],e));return r}}),i=e.__commonJSMin((exports,n)=>{var i=r(),a=t(),o=function(e,t,n){for(var r=e,i;(i=r.next)!=null;r=i)if(i.key===t)return r.next=i.next,n||(i.next=e.next,e.next=i),i},s=function(e,t){if(e){var n=o(e,t);return n&&n.value}},c=function(e,t,n){var r=o(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}},l=function(e,t){return e?!!o(e,t):!1},u=function(e,t){if(e)return o(e,t,!0)};n.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new a(`Side channel does not contain `+i(e))},delete:function(t){var n=e&&e.next,r=u(e,t);return r&&n&&n===r&&(e=void 0),!!r},get:function(t){return s(e,t)},has:function(t){return l(e,t)},set:function(t,n){e||={next:void 0},c(e,t,n)}};return t}}),a=e.__commonJSMin((exports,t)=>{t.exports=Object}),o=e.__commonJSMin((exports,t)=>{t.exports=Error}),s=e.__commonJSMin((exports,t)=>{t.exports=EvalError}),c=e.__commonJSMin((exports,t)=>{t.exports=RangeError}),l=e.__commonJSMin((exports,t)=>{t.exports=ReferenceError}),u=e.__commonJSMin((exports,t)=>{t.exports=SyntaxError}),d=e.__commonJSMin((exports,t)=>{t.exports=URIError}),f=e.__commonJSMin((exports,t)=>{t.exports=Math.abs}),p=e.__commonJSMin((exports,t)=>{t.exports=Math.floor}),m=e.__commonJSMin((exports,t)=>{t.exports=Math.max}),h=e.__commonJSMin((exports,t)=>{t.exports=Math.min}),g=e.__commonJSMin((exports,t)=>{t.exports=Math.pow}),_=e.__commonJSMin((exports,t)=>{t.exports=Math.round}),v=e.__commonJSMin((exports,t)=>{t.exports=Number.isNaN||function(e){return e!==e}}),y=e.__commonJSMin((exports,t)=>{var n=v();t.exports=function(e){return n(e)||e===0?e:e<0?-1:1}}),b=e.__commonJSMin((exports,t)=>{t.exports=Object.getOwnPropertyDescriptor}),x=e.__commonJSMin((exports,t)=>{var n=b();if(n)try{n([],`length`)}catch{n=null}t.exports=n}),S=e.__commonJSMin((exports,t)=>{var n=Object.defineProperty||!1;if(n)try{n({},`a`,{value:1})}catch{n=!1}t.exports=n}),C=e.__commonJSMin((exports,t)=>{t.exports=function(){if(typeof Symbol!=`function`||typeof Object.getOwnPropertySymbols!=`function`)return!1;if(typeof Symbol.iterator==`symbol`)return!0;var e={},t=Symbol(`test`),n=Object(t);if(typeof t==`string`||Object.prototype.toString.call(t)!==`[object Symbol]`||Object.prototype.toString.call(n)!==`[object Symbol]`)return!1;var r=42;for(var i in e[t]=r,e)return!1;if(typeof Object.keys==`function`&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames==`function`&&Object.getOwnPropertyNames(e).length!==0)return!1;var a=Object.getOwnPropertySymbols(e);if(a.length!==1||a[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor==`function`){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==r||o.enumerable!==!0)return!1}return!0}}),w=e.__commonJSMin((exports,t)=>{var n=typeof Symbol<`u`&&Symbol,r=C();t.exports=function(){return typeof n!=`function`||typeof Symbol!=`function`||typeof n(`foo`)!=`symbol`||typeof Symbol(`bar`)!=`symbol`?!1:r()}}),T=e.__commonJSMin((exports,t)=>{t.exports=typeof Reflect<`u`&&Reflect.getPrototypeOf||null}),E=e.__commonJSMin((exports,t)=>{var n=a();t.exports=n.getPrototypeOf||null}),D=e.__commonJSMin((exports,t)=>{var n=`Function.prototype.bind called on incompatible `,r=Object.prototype.toString,i=Math.max,a=`[object Function]`,o=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var i=0;i<t.length;i+=1)n[i+e.length]=t[i];return n},s=function(e,t){for(var n=[],r=t||0,i=0;r<e.length;r+=1,i+=1)n[i]=e[r];return n},c=function(e,t){for(var n=``,r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n};t.exports=function(e){var t=this;if(typeof t!=`function`||r.apply(t)!==a)throw TypeError(n+t);for(var l=s(arguments,1),u,d=function(){if(this instanceof u){var n=t.apply(this,o(l,arguments));return Object(n)===n?n:this}return t.apply(e,o(l,arguments))},f=i(0,t.length-l.length),p=[],m=0;m<f;m++)p[m]=`$`+m;if(u=Function(`binder`,`return function (`+c(p,`,`)+`){ return binder.apply(this,arguments); }`)(d),t.prototype){var h=function(){};h.prototype=t.prototype,u.prototype=new h,h.prototype=null}return u}}),O=e.__commonJSMin((exports,t)=>{var n=D();t.exports=Function.prototype.bind||n}),k=e.__commonJSMin((exports,t)=>{t.exports=Function.prototype.call}),ee=e.__commonJSMin((exports,t)=>{t.exports=Function.prototype.apply}),A=e.__commonJSMin((exports,t)=>{t.exports=typeof Reflect<`u`&&Reflect&&Reflect.apply}),j=e.__commonJSMin((exports,t)=>{var n=O(),r=ee(),i=k(),a=A();t.exports=a||n.call(i,r)}),M=e.__commonJSMin((exports,n)=>{var r=O(),i=t(),a=k(),o=j();n.exports=function(e){if(e.length<1||typeof e[0]!=`function`)throw new i(`a function is required`);return o(r,a,e)}}),N=e.__commonJSMin((exports,t)=>{var n=M(),r=x(),i;try{i=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!=`object`||!(`code`in e)||e.code!==`ERR_PROTO_ACCESS`)throw e}var a=!!i&&r&&r(Object.prototype,`__proto__`),o=Object,s=o.getPrototypeOf;t.exports=a&&typeof a.get==`function`?n([a.get]):typeof s==`function`?function(e){return s(e==null?e:o(e))}:!1}),te=e.__commonJSMin((exports,t)=>{var n=T(),r=E(),i=N();t.exports=n?function(e){return n(e)}:r?function(e){if(!e||typeof e!=`object`&&typeof e!=`function`)throw TypeError(`getProto: not an object`);return r(e)}:i?function(e){return i(e)}:null}),P=e.__commonJSMin((exports,t)=>{var n=Function.prototype.call,r=Object.prototype.hasOwnProperty,i=O();t.exports=i.call(n,r)}),F=e.__commonJSMin((exports,n)=>{var r,i=a(),v=o(),b=s(),C=c(),D=l(),A=u(),j=t(),M=d(),N=f(),F=p(),I=m(),L=h(),R=g(),ne=_(),z=y(),re=Function,ie=function(e){try{return re(`"use strict"; return (`+e+`).constructor;`)()}catch{}},B=x(),ae=S(),oe=function(){throw new j},V=B?function(){try{return arguments.callee,oe}catch{try{return B(arguments,`callee`).get}catch{return oe}}}():oe,H=w()(),U=te(),W=E(),se=T(),G=ee(),ce=k(),K={},q=typeof Uint8Array>`u`||!U?r:U(Uint8Array),J={__proto__:null,"%AggregateError%":typeof AggregateError>`u`?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>`u`?r:ArrayBuffer,"%ArrayIteratorPrototype%":H&&U?U([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":K,"%AsyncGenerator%":K,"%AsyncGeneratorFunction%":K,"%AsyncIteratorPrototype%":K,"%Atomics%":typeof Atomics>`u`?r:Atomics,"%BigInt%":typeof BigInt>`u`?r:BigInt,"%BigInt64Array%":typeof BigInt64Array>`u`?r:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>`u`?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>`u`?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":v,"%eval%":eval,"%EvalError%":b,"%Float16Array%":typeof Float16Array>`u`?r:Float16Array,"%Float32Array%":typeof Float32Array>`u`?r:Float32Array,"%Float64Array%":typeof Float64Array>`u`?r:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>`u`?r:FinalizationRegistry,"%Function%":re,"%GeneratorFunction%":K,"%Int8Array%":typeof Int8Array>`u`?r:Int8Array,"%Int16Array%":typeof Int16Array>`u`?r:Int16Array,"%Int32Array%":typeof Int32Array>`u`?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":H&&U?U(U([][Symbol.iterator]())):r,"%JSON%":typeof JSON==`object`?JSON:r,"%Map%":typeof Map>`u`?r:Map,"%MapIteratorPrototype%":typeof Map>`u`||!H||!U?r:U(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":i,"%Object.getOwnPropertyDescriptor%":B,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>`u`?r:Promise,"%Proxy%":typeof Proxy>`u`?r:Proxy,"%RangeError%":C,"%ReferenceError%":D,"%Reflect%":typeof Reflect>`u`?r:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>`u`?r:Set,"%SetIteratorPrototype%":typeof Set>`u`||!H||!U?r:U(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>`u`?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":H&&U?U(``[Symbol.iterator]()):r,"%Symbol%":H?Symbol:r,"%SyntaxError%":A,"%ThrowTypeError%":V,"%TypedArray%":q,"%TypeError%":j,"%Uint8Array%":typeof Uint8Array>`u`?r:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>`u`?r:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>`u`?r:Uint16Array,"%Uint32Array%":typeof Uint32Array>`u`?r:Uint32Array,"%URIError%":M,"%WeakMap%":typeof WeakMap>`u`?r:WeakMap,"%WeakRef%":typeof WeakRef>`u`?r:WeakRef,"%WeakSet%":typeof WeakSet>`u`?r:WeakSet,"%Function.prototype.call%":ce,"%Function.prototype.apply%":G,"%Object.defineProperty%":ae,"%Object.getPrototypeOf%":W,"%Math.abs%":N,"%Math.floor%":F,"%Math.max%":I,"%Math.min%":L,"%Math.pow%":R,"%Math.round%":ne,"%Math.sign%":z,"%Reflect.getPrototypeOf%":se};if(U)try{null.error}catch(e){var le=U(U(e));J[`%Error.prototype%`]=le}var ue=function e(t){var n;if(t===`%AsyncFunction%`)n=ie(`async function () {}`);else if(t===`%GeneratorFunction%`)n=ie(`function* () {}`);else if(t===`%AsyncGeneratorFunction%`)n=ie(`async function* () {}`);else if(t===`%AsyncGenerator%`){var r=e(`%AsyncGeneratorFunction%`);r&&(n=r.prototype)}else if(t===`%AsyncIteratorPrototype%`){var i=e(`%AsyncGenerator%`);i&&U&&(n=U(i.prototype))}return J[t]=n,n},de={__proto__:null,"%ArrayBufferPrototype%":[`ArrayBuffer`,`prototype`],"%ArrayPrototype%":[`Array`,`prototype`],"%ArrayProto_entries%":[`Array`,`prototype`,`entries`],"%ArrayProto_forEach%":[`Array`,`prototype`,`forEach`],"%ArrayProto_keys%":[`Array`,`prototype`,`keys`],"%ArrayProto_values%":[`Array`,`prototype`,`values`],"%AsyncFunctionPrototype%":[`AsyncFunction`,`prototype`],"%AsyncGenerator%":[`AsyncGeneratorFunction`,`prototype`],"%AsyncGeneratorPrototype%":[`AsyncGeneratorFunction`,`prototype`,`prototype`],"%BooleanPrototype%":[`Boolean`,`prototype`],"%DataViewPrototype%":[`DataView`,`prototype`],"%DatePrototype%":[`Date`,`prototype`],"%ErrorPrototype%":[`Error`,`prototype`],"%EvalErrorPrototype%":[`EvalError`,`prototype`],"%Float32ArrayPrototype%":[`Float32Array`,`prototype`],"%Float64ArrayPrototype%":[`Float64Array`,`prototype`],"%FunctionPrototype%":[`Function`,`prototype`],"%Generator%":[`GeneratorFunction`,`prototype`],"%GeneratorPrototype%":[`GeneratorFunction`,`prototype`,`prototype`],"%Int8ArrayPrototype%":[`Int8Array`,`prototype`],"%Int16ArrayPrototype%":[`Int16Array`,`prototype`],"%Int32ArrayPrototype%":[`Int32Array`,`prototype`],"%JSONParse%":[`JSON`,`parse`],"%JSONStringify%":[`JSON`,`stringify`],"%MapPrototype%":[`Map`,`prototype`],"%NumberPrototype%":[`Number`,`prototype`],"%ObjectPrototype%":[`Object`,`prototype`],"%ObjProto_toString%":[`Object`,`prototype`,`toString`],"%ObjProto_valueOf%":[`Object`,`prototype`,`valueOf`],"%PromisePrototype%":[`Promise`,`prototype`],"%PromiseProto_then%":[`Promise`,`prototype`,`then`],"%Promise_all%":[`Promise`,`all`],"%Promise_reject%":[`Promise`,`reject`],"%Promise_resolve%":[`Promise`,`resolve`],"%RangeErrorPrototype%":[`RangeError`,`prototype`],"%ReferenceErrorPrototype%":[`ReferenceError`,`prototype`],"%RegExpPrototype%":[`RegExp`,`prototype`],"%SetPrototype%":[`Set`,`prototype`],"%SharedArrayBufferPrototype%":[`SharedArrayBuffer`,`prototype`],"%StringPrototype%":[`String`,`prototype`],"%SymbolPrototype%":[`Symbol`,`prototype`],"%SyntaxErrorPrototype%":[`SyntaxError`,`prototype`],"%TypedArrayPrototype%":[`TypedArray`,`prototype`],"%TypeErrorPrototype%":[`TypeError`,`prototype`],"%Uint8ArrayPrototype%":[`Uint8Array`,`prototype`],"%Uint8ClampedArrayPrototype%":[`Uint8ClampedArray`,`prototype`],"%Uint16ArrayPrototype%":[`Uint16Array`,`prototype`],"%Uint32ArrayPrototype%":[`Uint32Array`,`prototype`],"%URIErrorPrototype%":[`URIError`,`prototype`],"%WeakMapPrototype%":[`WeakMap`,`prototype`],"%WeakSetPrototype%":[`WeakSet`,`prototype`]},Y=O(),fe=P(),pe=Y.call(ce,Array.prototype.concat),me=Y.call(G,Array.prototype.splice),X=Y.call(ce,String.prototype.replace),Z=Y.call(ce,String.prototype.slice),Q=Y.call(ce,RegExp.prototype.exec),he=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ge=/\\(\\)?/g,_e=function(e){var t=Z(e,0,1),n=Z(e,-1);if(t===`%`&&n!==`%`)throw new A("invalid intrinsic syntax, expected closing `%`");if(n===`%`&&t!==`%`)throw new A("invalid intrinsic syntax, expected opening `%`");var r=[];return X(e,he,function(e,t,n,i){r[r.length]=n?X(i,ge,`$1`):t||e}),r},ve=function(e,t){var n=e,r;if(fe(de,n)&&(r=de[n],n=`%`+r[0]+`%`),fe(J,n)){var i=J[n];if(i===K&&(i=ue(n)),i===void 0&&!t)throw new j(`intrinsic `+e+` exists, but is not available. Please file an issue!`);return{alias:r,name:n,value:i}}throw new A(`intrinsic `+e+` does not exist!`)};n.exports=function(e,t){if(typeof e!=`string`||e.length===0)throw new j(`intrinsic name must be a non-empty string`);if(arguments.length>1&&typeof t!=`boolean`)throw new j(`"allowMissing" argument must be a boolean`);if(Q(/^%?[^%]*%?$/,e)===null)throw new A("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=_e(e),r=n.length>0?n[0]:``,i=ve(`%`+r+`%`,t),a=i.name,o=i.value,s=!1,c=i.alias;c&&(r=c[0],me(n,pe([0,1],c)));for(var l=1,u=!0;l<n.length;l+=1){var d=n[l],f=Z(d,0,1),p=Z(d,-1);if((f===`"`||f===`'`||f==="`"||p===`"`||p===`'`||p==="`")&&f!==p)throw new A(`property names with quotes must have matching quotes`);if((d===`constructor`||!u)&&(s=!0),r+=`.`+d,a=`%`+r+`%`,fe(J,a))o=J[a];else if(o!=null){if(!(d in o)){if(!t)throw new j(`base intrinsic for `+e+` exists, but the property is not available.`);return}if(B&&l+1>=n.length){var m=B(o,d);u=!!m,o=u&&`get`in m&&!(`originalValue`in m.get)?m.get:o[d]}else u=fe(o,d),o=o[d];u&&!s&&(J[a]=o)}}return o}}),I=e.__commonJSMin((exports,t)=>{var n=F(),r=M(),i=r([n(`%String.prototype.indexOf%`)]);t.exports=function(e,t){var a=n(e,!!t);return typeof a==`function`&&i(e,`.prototype.`)>-1?r([a]):a}}),L=e.__commonJSMin((exports,n)=>{var i=F(),a=I(),o=r(),s=t(),c=i(`%Map%`,!0),l=a(`Map.prototype.get`,!0),u=a(`Map.prototype.set`,!0),d=a(`Map.prototype.has`,!0),f=a(`Map.prototype.delete`,!0),p=a(`Map.prototype.size`,!0);n.exports=!!c&&function(){var e,t={assert:function(e){if(!t.has(e))throw new s(`Side channel does not contain `+o(e))},delete:function(t){if(e){var n=f(e,t);return p(e)===0&&(e=void 0),n}return!1},get:function(t){if(e)return l(e,t)},has:function(t){return e?d(e,t):!1},set:function(t,n){e||=new c,u(e,t,n)}};return t}}),R=e.__commonJSMin((exports,n)=>{var i=F(),a=I(),o=r(),s=L(),c=t(),l=i(`%WeakMap%`,!0),u=a(`WeakMap.prototype.get`,!0),d=a(`WeakMap.prototype.set`,!0),f=a(`WeakMap.prototype.has`,!0),p=a(`WeakMap.prototype.delete`,!0);n.exports=l?function(){var e,t,n={assert:function(e){if(!n.has(e))throw new c(`Side channel does not contain `+o(e))},delete:function(n){if(l&&n&&(typeof n==`object`||typeof n==`function`)){if(e)return p(e,n)}else if(s&&t)return t.delete(n);return!1},get:function(n){return l&&n&&(typeof n==`object`||typeof n==`function`)&&e?u(e,n):t&&t.get(n)},has:function(n){return l&&n&&(typeof n==`object`||typeof n==`function`)&&e?f(e,n):!!t&&t.has(n)},set:function(n,r){l&&n&&(typeof n==`object`||typeof n==`function`)?(e||=new l,d(e,n,r)):s&&(t||=s(),t.set(n,r))}};return n}:s}),ne=e.__commonJSMin((exports,n)=>{var a=t(),o=r(),s=i(),c=L(),l=R(),u=l||c||s;n.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new a(`Side channel does not contain `+o(e))},delete:function(t){return!!e&&e.delete(t)},get:function(t){return e&&e.get(t)},has:function(t){return!!e&&e.has(t)},set:function(t,n){e||=u(),e.set(t,n)}};return t}}),z=e.__commonJSMin((exports,t)=>{var n=String.prototype.replace,r=/%20/g,i={RFC1738:`RFC1738`,RFC3986:`RFC3986`};t.exports={default:i.RFC3986,formatters:{RFC1738:function(e){return n.call(e,r,`+`)},RFC3986:function(e){return String(e)}},RFC1738:i.RFC1738,RFC3986:i.RFC3986}}),re=e.__commonJSMin((exports,t)=>{var n=z(),r=Object.prototype.hasOwnProperty,i=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push(`%`+((t<16?`0`:``)+t.toString(16)).toUpperCase());return e}(),o=function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(i(n)){for(var r=[],a=0;a<n.length;++a)n[a]!==void 0&&r.push(n[a]);t.obj[t.prop]=r}}},s=function(e,t){for(var n=t&&t.plainObjects?{__proto__:null}:{},r=0;r<e.length;++r)e[r]!==void 0&&(n[r]=e[r]);return n},c=function e(t,n,a){if(!n)return t;if(typeof n!=`object`&&typeof n!=`function`){if(i(t))t.push(n);else if(t&&typeof t==`object`)(a&&(a.plainObjects||a.allowPrototypes)||!r.call(Object.prototype,n))&&(t[n]=!0);else return[t,n];return t}if(!t||typeof t!=`object`)return[t].concat(n);var o=t;return i(t)&&!i(n)&&(o=s(t,a)),i(t)&&i(n)?(n.forEach(function(n,i){if(r.call(t,i)){var o=t[i];o&&typeof o==`object`&&n&&typeof n==`object`?t[i]=e(o,n,a):t.push(n)}else t[i]=n}),t):Object.keys(n).reduce(function(t,i){var o=n[i];return r.call(t,i)?t[i]=e(t[i],o,a):t[i]=o,t},o)},l=function(e,t){return Object.keys(t).reduce(function(e,n){return e[n]=t[n],e},e)},u=function(e,t,n){var r=e.replace(/\+/g,` `);if(n===`iso-8859-1`)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch{return r}},d=1024,f=function(e,t,r,i,o){if(e.length===0)return e;var s=e;if(typeof e==`symbol`?s=Symbol.prototype.toString.call(e):typeof e!=`string`&&(s=String(e)),r===`iso-8859-1`)return escape(s).replace(/%u[0-9a-f]{4}/gi,function(e){return`%26%23`+parseInt(e.slice(2),16)+`%3B`});for(var c=``,l=0;l<s.length;l+=d){for(var u=s.length>=d?s.slice(l,l+d):s,f=[],p=0;p<u.length;++p){var m=u.charCodeAt(p);if(m===45||m===46||m===95||m===126||m>=48&&m<=57||m>=65&&m<=90||m>=97&&m<=122||o===n.RFC1738&&(m===40||m===41)){f[f.length]=u.charAt(p);continue}if(m<128){f[f.length]=a[m];continue}if(m<2048){f[f.length]=a[192|m>>6]+a[128|m&63];continue}if(m<55296||m>=57344){f[f.length]=a[224|m>>12]+a[128|m>>6&63]+a[128|m&63];continue}p+=1,m=65536+((m&1023)<<10|u.charCodeAt(p)&1023),f[f.length]=a[240|m>>18]+a[128|m>>12&63]+a[128|m>>6&63]+a[128|m&63]}c+=f.join(``)}return c},p=function(e){for(var t=[{obj:{o:e},prop:`o`}],n=[],r=0;r<t.length;++r)for(var i=t[r],a=i.obj[i.prop],s=Object.keys(a),c=0;c<s.length;++c){var l=s[c],u=a[l];typeof u==`object`&&u&&n.indexOf(u)===-1&&(t.push({obj:a,prop:l}),n.push(u))}return o(t),e},m=function(e){return Object.prototype.toString.call(e)===`[object RegExp]`},h=function(e){return!e||typeof e!=`object`?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},g=function(e,t){return[].concat(e,t)},_=function(e,t){if(i(e)){for(var n=[],r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)};t.exports={arrayToObject:s,assign:l,combine:g,compact:p,decode:u,encode:f,isBuffer:h,isRegExp:m,maybeMap:_,merge:c}}),ie=e.__commonJSMin((exports,t)=>{var n=ne(),r=re(),i=z(),a=Object.prototype.hasOwnProperty,o={brackets:function(e){return e+`[]`},comma:`comma`,indices:function(e,t){return e+`[`+t+`]`},repeat:function(e){return e}},s=Array.isArray,c=Array.prototype.push,l=function(e,t){c.apply(e,s(t)?t:[t])},u=Date.prototype.toISOString,d=i.default,f={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:`indices`,charset:`utf-8`,charsetSentinel:!1,commaRoundTrip:!1,delimiter:`&`,encode:!0,encodeDotInKeys:!1,encoder:r.encode,encodeValuesOnly:!1,filter:void 0,format:d,formatter:i.formatters[d],indices:!1,serializeDate:function(e){return u.call(e)},skipNulls:!1,strictNullHandling:!1},p=function(e){return typeof e==`string`||typeof e==`number`||typeof e==`boolean`||typeof e==`symbol`||typeof e==`bigint`},m={},h=function e(t,i,a,o,c,u,d,h,g,_,v,y,b,x,S,C,w,T){for(var E=t,D=T,O=0,k=!1;(D=D.get(m))!==void 0&&!k;){var ee=D.get(t);if(O+=1,ee!==void 0){if(ee===O)throw RangeError(`Cyclic object value`);k=!0}D.get(m)===void 0&&(O=0)}if(typeof _==`function`?E=_(i,E):E instanceof Date?E=b(E):a===`comma`&&s(E)&&(E=r.maybeMap(E,function(e){return e instanceof Date?b(e):e})),E===null){if(u)return g&&!C?g(i,f.encoder,w,`key`,x):i;E=``}if(p(E)||r.isBuffer(E)){if(g){var A=C?i:g(i,f.encoder,w,`key`,x);return[S(A)+`=`+S(g(E,f.encoder,w,`value`,x))]}return[S(i)+`=`+S(String(E))]}var j=[];if(E===void 0)return j;var M;if(a===`comma`&&s(E))C&&g&&(E=r.maybeMap(E,g)),M=[{value:E.length>0?E.join(`,`)||null:void 0}];else if(s(_))M=_;else{var N=Object.keys(E);M=v?N.sort(v):N}var te=h?String(i).replace(/\./g,`%2E`):String(i),P=o&&s(E)&&E.length===1?te+`[]`:te;if(c&&s(E)&&E.length===0)return P+`[]`;for(var F=0;F<M.length;++F){var I=M[F],L=typeof I==`object`&&I&&I.value!==void 0?I.value:E[I];if(!(d&&L===null)){var R=y&&h?String(I).replace(/\./g,`%2E`):String(I),ne=s(E)?typeof a==`function`?a(P,R):P:P+(y?`.`+R:`[`+R+`]`);T.set(t,O);var z=n();z.set(m,T),l(j,e(L,ne,a,o,c,u,d,h,a===`comma`&&C&&s(E)?null:g,_,v,y,b,x,S,C,w,z))}}return j},g=function(e){if(!e)return f;if(e.allowEmptyArrays!==void 0&&typeof e.allowEmptyArrays!=`boolean`)throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(e.encodeDotInKeys!==void 0&&typeof e.encodeDotInKeys!=`boolean`)throw TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(e.encoder!==null&&e.encoder!==void 0&&typeof e.encoder!=`function`)throw TypeError(`Encoder has to be a function.`);var t=e.charset||f.charset;if(e.charset!==void 0&&e.charset!==`utf-8`&&e.charset!==`iso-8859-1`)throw TypeError(`The charset option must be either utf-8, iso-8859-1, or undefined`);var n=i.default;if(e.format!==void 0){if(!a.call(i.formatters,e.format))throw TypeError(`Unknown format option provided.`);n=e.format}var r=i.formatters[n],c=f.filter;(typeof e.filter==`function`||s(e.filter))&&(c=e.filter);var l;if(l=e.arrayFormat in o?e.arrayFormat:`indices`in e?e.indices?`indices`:`repeat`:f.arrayFormat,`commaRoundTrip`in e&&typeof e.commaRoundTrip!=`boolean`)throw TypeError("`commaRoundTrip` must be a boolean, or absent");var u=e.allowDots===void 0?e.encodeDotInKeys===!0?!0:f.allowDots:!!e.allowDots;return{addQueryPrefix:typeof e.addQueryPrefix==`boolean`?e.addQueryPrefix:f.addQueryPrefix,allowDots:u,allowEmptyArrays:typeof e.allowEmptyArrays==`boolean`?!!e.allowEmptyArrays:f.allowEmptyArrays,arrayFormat:l,charset:t,charsetSentinel:typeof e.charsetSentinel==`boolean`?e.charsetSentinel:f.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:e.delimiter===void 0?f.delimiter:e.delimiter,encode:typeof e.encode==`boolean`?e.encode:f.encode,encodeDotInKeys:typeof e.encodeDotInKeys==`boolean`?e.encodeDotInKeys:f.encodeDotInKeys,encoder:typeof e.encoder==`function`?e.encoder:f.encoder,encodeValuesOnly:typeof e.encodeValuesOnly==`boolean`?e.encodeValuesOnly:f.encodeValuesOnly,filter:c,format:n,formatter:r,serializeDate:typeof e.serializeDate==`function`?e.serializeDate:f.serializeDate,skipNulls:typeof e.skipNulls==`boolean`?e.skipNulls:f.skipNulls,sort:typeof e.sort==`function`?e.sort:null,strictNullHandling:typeof e.strictNullHandling==`boolean`?e.strictNullHandling:f.strictNullHandling}};t.exports=function(e,t){var r=e,i=g(t),a,c;typeof i.filter==`function`?(c=i.filter,r=c(``,r)):s(i.filter)&&(c=i.filter,a=c);var u=[];if(typeof r!=`object`||!r)return``;var d=o[i.arrayFormat],f=d===`comma`&&i.commaRoundTrip;a||=Object.keys(r),i.sort&&a.sort(i.sort);for(var p=n(),m=0;m<a.length;++m){var _=a[m],v=r[_];i.skipNulls&&v===null||l(u,h(v,_,d,f,i.allowEmptyArrays,i.strictNullHandling,i.skipNulls,i.encodeDotInKeys,i.encode?i.encoder:null,i.filter,i.sort,i.allowDots,i.serializeDate,i.format,i.formatter,i.encodeValuesOnly,i.charset,p))}var y=u.join(i.delimiter),b=i.addQueryPrefix===!0?`?`:``;return i.charsetSentinel&&(i.charset===`iso-8859-1`?b+=`utf8=%26%2310003%3B&`:b+=`utf8=%E2%9C%93&`),y.length>0?b+y:``}}),B=e.__commonJSMin((exports,t)=>{var n=re(),r=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:`utf-8`,charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:n.decode,delimiter:`&`,depth:5,duplicates:`combine`,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},o=function(e){return e.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},s=function(e,t,n){if(e&&typeof e==`string`&&t.comma&&e.indexOf(`,`)>-1)return e.split(`,`);if(t.throwOnLimitExceeded&&n>=t.arrayLimit)throw RangeError(`Array limit exceeded. Only `+t.arrayLimit+` element`+(t.arrayLimit===1?``:`s`)+` allowed in an array.`);return e},c=`utf8=%26%2310003%3B`,l=`utf8=%E2%9C%93`,u=function(e,t){var u={__proto__:null},d=t.ignoreQueryPrefix?e.replace(/^\?/,``):e;d=d.replace(/%5B/gi,`[`).replace(/%5D/gi,`]`);var f=t.parameterLimit===1/0?void 0:t.parameterLimit,p=d.split(t.delimiter,t.throwOnLimitExceeded?f+1:f);if(t.throwOnLimitExceeded&&p.length>f)throw RangeError(`Parameter limit exceeded. Only `+f+` parameter`+(f===1?``:`s`)+` allowed.`);var m=-1,h,g=t.charset;if(t.charsetSentinel)for(h=0;h<p.length;++h)p[h].indexOf(`utf8=`)===0&&(p[h]===l?g=`utf-8`:p[h]===c&&(g=`iso-8859-1`),m=h,h=p.length);for(h=0;h<p.length;++h)if(h!==m){var _=p[h],v=_.indexOf(`]=`),y=v===-1?_.indexOf(`=`):v+1,b,x;y===-1?(b=t.decoder(_,a.decoder,g,`key`),x=t.strictNullHandling?null:``):(b=t.decoder(_.slice(0,y),a.decoder,g,`key`),x=n.maybeMap(s(_.slice(y+1),t,i(u[b])?u[b].length:0),function(e){return t.decoder(e,a.decoder,g,`value`)})),x&&t.interpretNumericEntities&&g===`iso-8859-1`&&(x=o(String(x))),_.indexOf(`[]=`)>-1&&(x=i(x)?[x]:x);var S=r.call(u,b);S&&t.duplicates===`combine`?u[b]=n.combine(u[b],x):(!S||t.duplicates===`last`)&&(u[b]=x)}return u},d=function(e,t,r,i){var a=0;if(e.length>0&&e[e.length-1]===`[]`){var o=e.slice(0,-1).join(``);a=Array.isArray(t)&&t[o]?t[o].length:0}for(var c=i?t:s(t,r,a),l=e.length-1;l>=0;--l){var u,d=e[l];if(d===`[]`&&r.parseArrays)u=r.allowEmptyArrays&&(c===``||r.strictNullHandling&&c===null)?[]:n.combine([],c);else{u=r.plainObjects?{__proto__:null}:{};var f=d.charAt(0)===`[`&&d.charAt(d.length-1)===`]`?d.slice(1,-1):d,p=r.decodeDotInKeys?f.replace(/%2E/g,`.`):f,m=parseInt(p,10);!r.parseArrays&&p===``?u={0:c}:!isNaN(m)&&d!==p&&String(m)===p&&m>=0&&r.parseArrays&&m<=r.arrayLimit?(u=[],u[m]=c):p!==`__proto__`&&(u[p]=c)}c=u}return c},f=function(e,t,n,i){if(e){var a=n.allowDots?e.replace(/\.([^.[]+)/g,`[$1]`):e,o=/(\[[^[\]]*])/,s=/(\[[^[\]]*])/g,c=n.depth>0&&o.exec(a),l=c?a.slice(0,c.index):a,u=[];if(l){if(!n.plainObjects&&r.call(Object.prototype,l)&&!n.allowPrototypes)return;u.push(l)}for(var f=0;n.depth>0&&(c=s.exec(a))!==null&&f<n.depth;){if(f+=1,!n.plainObjects&&r.call(Object.prototype,c[1].slice(1,-1))&&!n.allowPrototypes)return;u.push(c[1])}if(c){if(n.strictDepth===!0)throw RangeError(`Input depth exceeded depth option of `+n.depth+` and strictDepth is true`);u.push(`[`+a.slice(c.index)+`]`)}return d(u,t,n,i)}},p=function(e){if(!e)return a;if(e.allowEmptyArrays!==void 0&&typeof e.allowEmptyArrays!=`boolean`)throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(e.decodeDotInKeys!==void 0&&typeof e.decodeDotInKeys!=`boolean`)throw TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(e.decoder!==null&&e.decoder!==void 0&&typeof e.decoder!=`function`)throw TypeError(`Decoder has to be a function.`);if(e.charset!==void 0&&e.charset!==`utf-8`&&e.charset!==`iso-8859-1`)throw TypeError(`The charset option must be either utf-8, iso-8859-1, or undefined`);if(e.throwOnLimitExceeded!==void 0&&typeof e.throwOnLimitExceeded!=`boolean`)throw TypeError("`throwOnLimitExceeded` option must be a boolean");var t=e.charset===void 0?a.charset:e.charset,r=e.duplicates===void 0?a.duplicates:e.duplicates;if(r!==`combine`&&r!==`first`&&r!==`last`)throw TypeError(`The duplicates option must be either combine, first, or last`);var i=e.allowDots===void 0?e.decodeDotInKeys===!0?!0:a.allowDots:!!e.allowDots;return{allowDots:i,allowEmptyArrays:typeof e.allowEmptyArrays==`boolean`?!!e.allowEmptyArrays:a.allowEmptyArrays,allowPrototypes:typeof e.allowPrototypes==`boolean`?e.allowPrototypes:a.allowPrototypes,allowSparse:typeof e.allowSparse==`boolean`?e.allowSparse:a.allowSparse,arrayLimit:typeof e.arrayLimit==`number`?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:typeof e.charsetSentinel==`boolean`?e.charsetSentinel:a.charsetSentinel,comma:typeof e.comma==`boolean`?e.comma:a.comma,decodeDotInKeys:typeof e.decodeDotInKeys==`boolean`?e.decodeDotInKeys:a.decodeDotInKeys,decoder:typeof e.decoder==`function`?e.decoder:a.decoder,delimiter:typeof e.delimiter==`string`||n.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:typeof e.depth==`number`||e.depth===!1?+e.depth:a.depth,duplicates:r,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities==`boolean`?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:typeof e.parameterLimit==`number`?e.parameterLimit:a.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects==`boolean`?e.plainObjects:a.plainObjects,strictDepth:typeof e.strictDepth==`boolean`?!!e.strictDepth:a.strictDepth,strictNullHandling:typeof e.strictNullHandling==`boolean`?e.strictNullHandling:a.strictNullHandling,throwOnLimitExceeded:typeof e.throwOnLimitExceeded==`boolean`?e.throwOnLimitExceeded:!1}};t.exports=function(e,t){var r=p(t);if(e===``||e==null)return r.plainObjects?{__proto__:null}:{};for(var i=typeof e==`string`?u(e,r):e,a=r.plainObjects?{__proto__:null}:{},o=Object.keys(i),s=0;s<o.length;++s){var c=o[s],l=f(c,i[c],r,typeof e==`string`);a=n.merge(a,l,r)}return r.allowSparse===!0?a:n.compact(a)}}),ae=e.__commonJSMin((exports,t)=>{var n=ie(),r=B(),i=z();t.exports={formats:i,parse:r,stringify:n}});const oe=(e,t)=>e?!t||t.length===0?e:t.reduce((e,t)=>(delete e[t],e),{...e}):{};let V=function(e){return e.JSON=`application/json`,e.FORM_URLENCODED=`application/x-www-form-urlencoded`,e.FORM_DATA=`multipart/form-data`,e.TEXT=`text/plain`,e.HTML=`text/html`,e.XML=`text/xml`,e.CSV=`text/csv`,e.STREAM=`application/octet-stream`,e}({}),H=function(e){return e[e.TIME_OUT=408]=`TIME_OUT`,e[e.ABORTED=499]=`ABORTED`,e[e.NETWORK_ERROR=599]=`NETWORK_ERROR`,e[e.BODY_NULL=502]=`BODY_NULL`,e[e.UNKNOWN=601]=`UNKNOWN`,e}({}),U=function(e){return e.GET=`GET`,e.POST=`POST`,e.PUT=`PUT`,e.DELETE=`DELETE`,e.PATCH=`PATCH`,e.HEAD=`HEAD`,e.OPTIONS=`OPTIONS`,e}({});var W=class extends Error{#message;#name;#status;#statusText;#response;#config;constructor({message:e,status:t,statusText:n,response:r,config:i,name:a}){super(e),this.#message=e,this.#status=t,this.#statusText=n,this.#response=r,this.#config=i,this.#name=a??e}get message(){return this.#message}get status(){return this.#status}get statusText(){return this.#statusText}get response(){return this.#response}get config(){return this.#config}get name(){return this.#name}},se=e.__toESM(ae(),1),G=function(e){return e.JSON=`json`,e.BLOB=`blob`,e.TEXT=`text`,e.ARRAY_BUFFER=`arrayBuffer`,e.FORM_DATA=`formData`,e.BYTES=`bytes`,e}(G||{});function ce(e){let t=new Map;e.forEach(e=>{t.set(e.name,e)});let n=Array.from(t.values()).sort((e,t)=>(e.priority??0)-(t.priority??0)),r=[],i=[],a=[],o=[],s=[],c=[];return n.forEach(e=>{e.beforeRequest&&r.push(e.beforeRequest),e.afterResponse&&i.push(e.afterResponse),e.onError&&a.push(e.onError),e.onFinally&&o.push(e.onFinally),e.transformStreamChunk&&s.push(e.transformStreamChunk),e.beforeStream&&c.push(e.beforeStream)}),{beforeRequestPlugins:r,afterResponsePlugins:i,errorPlugins:a,finallyPlugins:o,beforeStreamPlugins:c,transformStreamChunkPlugins:s}}function K(e,t,n=`repeat`){if(t){let r=se.default.stringify(t,{arrayFormat:n});r&&(e=e.includes(`?`)?`${e}&${r}`:`${e}?${r}`)}return e}function q(e={},t={}){let n=e instanceof Headers?e:new Headers(e),r=e=>{e instanceof Headers||(e=new Headers(e)),e.forEach((e,t)=>{n.set(t,e)})};return r(t),n}const J=[`PATCH`,`POST`,`PUT`,`DELETE`,`OPTIONS`],le=[`GET`,`HEAD`];function ue(e,t,n,r=`repeat`){if(!e)return null;if(e instanceof FormData)return e;let i=null;if(J.includes(t.toUpperCase())){let t=new Headers(n||{}),a=t.get(`Content-Type`)||V.JSON;if(a.includes(V.JSON))i=JSON.stringify(e);else if(a.includes(V.FORM_URLENCODED))i=se.default.stringify(e,{arrayFormat:r});else if(a.includes(V.FORM_DATA)){let t=new FormData;if(!(e instanceof FormData)&&typeof e==`object`){let n=e;Object.keys(n).forEach(e=>{n.prototype.hasOwnProperty.call(e)&&t.append(e,n[e])}),i=t}}}return le.includes(t.toUpperCase())&&(i=null),i}var de=class e{#plugins;#controller;#config;#promise;#isTimeout=!1;#executor=null;#finallyCallbacks=new Set;#responseType=`json`;#fullOptions;constructor(e){this.#fullOptions=e;let{plugins:t=[],controller:n,url:r,baseURL:i=``,params:a,data:o,qsArrayFormat:s=`repeat`,withCredentials:c=!1,extra:l,method:u=`GET`,headers:d={}}=e;this.#controller=n??new AbortController,this.#plugins=ce(t),this.#config={url:r,baseURL:i,params:a,data:o,withCredentials:c,extra:l,method:u,headers:d,qsArrayFormat:s},this.#promise=this.#init(e)}#init({timeout:e}){return new Promise(async(t,n)=>{let r=this.#config,{beforeRequestPlugins:i}=this.#plugins;for(let e of i)r=await e(r);let a=K(r.baseURL+r.url,r.params,r.qsArrayFormat),o=ue(r.data,r.method,r.headers,r.qsArrayFormat),s=oe(r??{},[`baseURL`,`data`,`extra`,`headers`,`method`,`params`,`url`,`withCredentials`]),c={...s,method:r.method,headers:r.headers,signal:this.#controller.signal,credentials:r.withCredentials?`include`:`omit`,body:o},l=fetch(a,c),u=[l],d=null;if(e){let t=new Promise(t=>{d=setTimeout(()=>{this.#isTimeout=!0,this.#controller?.abort()},e)});u.push(t)}let f=null;try{let e=await Promise.race(u);e?(e.ok&&t(e),f=new W({message:`Fail Request`,status:e.status,statusText:e.statusText,config:this.#config,name:`Fail Request`,response:e})):f=new W({message:`NETWORK_ERROR`,status:H.NETWORK_ERROR,statusText:`Network Error`,config:this.#config,name:`Network Error`})}catch(e){f=e}finally{f&&n(f),d&&clearTimeout(d)}})}async#createNormalizeError(e){return e instanceof W?e:e instanceof TypeError?e.name===`AbortError`?this.#isTimeout?new W({message:`Request timeout`,status:H.TIME_OUT,statusText:`Request timeout`,config:this.#config,name:`Request timeout`,response:await this.#response}):new W({message:`Request aborted`,status:H.ABORTED,statusText:`Request aborted`,config:this.#config,name:`Request aborted`,response:await this.#response}):new W({message:e.message,status:H.NETWORK_ERROR,statusText:`Unknown Request Error`,config:this.#config,name:e.name,response:await this.#response}):new W({message:e?.message??`Unknown Request Error`,status:H.UNKNOWN,statusText:`Unknown Request Error`,config:this.#config,name:`Unknown Request Error`,response:await this.#response})}async#normalizeError(e){let t=await this.#createNormalizeError(e);for(let e of this.#plugins.errorPlugins)t=await e(t,this.#config);return t.__normalized=!0,t}#execFinally(){for(let e of this.#finallyCallbacks)e();this.#finallyCallbacks.clear()}get#getExecutor(){return this.#executor?this.#executor:this.#response}async#resolve(e){let t=this.#plugins.afterResponsePlugins,n={config:this.#config,response:await this.#response,responseType:this.#responseType,controller:this.#controller,result:e};try{for(let e of t)n=await e(n,this.#config);return n.result}catch(e){return Promise.reject(e)}}then(e,t){return this.#getExecutor.then(async t=>e?.call(this,await this.#resolve(t)),async e=>t?.call(this,await this.#normalizeError(e)))}catch(e){return this.#getExecutor.catch(e)}finally(e){this.#finallyCallbacks.add(e)}abort(){this.#controller.abort()}get#response(){return this.#promise.then(e=>e.clone()).catch(async e=>{throw await this.#normalizeError(e)})}json(){return this.#then(G.JSON,this.#response.then(e=>e.json()))}blob(){return this.#then(G.BLOB,this.#response.then(e=>e.blob()))}text(){return this.#then(G.TEXT,this.#response.then(e=>e.text()))}arrayBuffer(){return this.#then(G.ARRAY_BUFFER,this.#response.then(e=>e.arrayBuffer()))}#then(e,t){return this.#executor=t.then(t=>(this.#responseType=e,this.#resolve(t))).catch(async t=>{throw this.#responseType=e,t.__normalized?t:await this.#normalizeError(t)}).finally(this.#execFinally.bind(this)),this.#executor}formData(){return this.#then(G.FORM_DATA,this.#response.then(e=>e.formData()))}bytes(){return this.#then(G.BYTES,this.#response.then(e=>e.bytes()))}async*stream(){let e=(await this.#response)?.body;if(!e)throw Error(`Response body is null`);for(let t of this.#plugins.beforeStreamPlugins)e=await t(e,this.#config);let t=e.getReader();if(!t)throw Error(`Response body reader is null`);try{for(;;){let{done:e,value:n}=await t.read();if(e)break;let r={source:n,result:n,error:null};try{for(let e of this.#plugins.transformStreamChunkPlugins)r=await e(r,this.#config);if(r.result&&(Y(r.result)||fe(r.result)))for await(let e of r.result){let t={source:r.source,result:e,error:null};yield t}else yield r}catch(e){r.error=e,r.result=null,yield r}}}catch(e){return this.#normalizeError(e)}finally{t.releaseLock(),this.#execFinally()}}retry(){let{controller:t,...n}=this.#fullOptions;return new e(n)}get response(){return this.#response}};function Y(e){return e[Symbol.toStringTag]===`Generator`&&typeof e.next==`function`&&typeof e.return==`function`&&typeof e.throw==`function`&&typeof e[Symbol.iterator]==`function`}function fe(e){return e[Symbol.toStringTag]===`AsyncGenerator`&&typeof e.next==`function`&&typeof e.return==`function`&&typeof e.throw==`function`&&typeof e[Symbol.asyncIterator]==`function`}function pe(e){return new de(e)}var me=class{#timeout;#baseURL;#commonHeaders;#queue=[];#plugins=[];#withCredentials;constructor({timeout:e=0,baseURL:t=``,headers:n={},plugins:r=[],withCredentials:i=!1}){this.#timeout=e,this.#baseURL=t,this.#commonHeaders=n,this.#plugins=r,this.#withCredentials=i,this.request=this.request.bind(this),this.get=this.get.bind(this),this.head=this.head.bind(this),this.options=this.options.bind(this),this.delete=this.delete.bind(this),this.post=this.post.bind(this),this.put=this.put.bind(this),this.patch=this.patch.bind(this),this.abortAll=this.abortAll.bind(this),this.use=this.use.bind(this)}use(e){return this.#plugins.push(e),this}request(e,{timeout:t,headers:n,method:r=`GET`,params:i={},data:a={},qsArrayFormat:o,withCredentials:s,extra:c={}}={}){let l=new AbortController;this.#queue.push(l);let u=pe({url:e,baseURL:this.#baseURL,timeout:t??this.#timeout,plugins:this.#plugins,headers:q(this.#commonHeaders,n),controller:l,method:r,params:i,data:a,qsArrayFormat:o,withCredentials:s??this.#withCredentials,extra:c});return u.finally(()=>{this.#queue=this.#queue.filter(e=>e!==l)}),u}#requestWithParams(e,t={},n={}){return this.request(e,{...n,params:t})}#requestWithBody(e,t={},n={}){return this.request(e,{...n,data:t})}get(e,t={},n){return this.#requestWithParams(e,t,{...n,method:`GET`})}head(e,t={},n){return this.#requestWithParams(e,t,{...n,method:`HEAD`})}options(e,t={},n){return this.request(e,{...n,method:`OPTIONS`,params:t})}delete(e,t){return this.request(e,{...t,method:`DELETE`})}post(e,t,n){return this.#requestWithBody(e,t,{...n,method:`POST`})}upload(e,t,n){let r=new FormData;for(let e in t)if(Object.prototype.hasOwnProperty.call(t,e)){let n=t[e];n instanceof File||n instanceof Blob?r.append(e,n):r.append(e,String(n))}return this.#requestWithBody(e,r,{...n,method:`POST`})}put(e,t,n){return this.#requestWithBody(e,t,{...n,method:`PUT`})}patch(e,t,n){return this.#requestWithBody(e,t,{...n,method:`PATCH`})}abortAll(){this.#queue.forEach(e=>e.abort()),this.#queue=[]}};function X(e,t={}){return pe({url:e,baseURL:``,...t})}function Z(e,t,n={}){return X(e,{...n,params:t})}function Q(e,t=null,n={}){return X(e,{...n,data:t})}const he=X;function ge(e,t={},n){return Z(e,t,{...n,method:`GET`})}function _e(e,t={},n){return Z(e,t,{...n,method:`HEAD`})}function ve(e,t={},n){return X(e,{...n,params:t,method:`OPTIONS`})}function ye(e,t){return X(e,{...t,method:`DELETE`})}function be(e,t,n){return Q(e,t,{...n,method:`POST`})}function xe(e,t,n){let r=new FormData;for(let e in t)if(Object.prototype.hasOwnProperty.call(t,e)){let n=t[e];n instanceof File||n instanceof Blob?r.append(e,n):r.append(e,String(n))}return Q(e,r,{...n,method:`POST`})}function Se(e,t,n){return Q(e,t,{...n,method:`PUT`})}function Ce(e,t,n){return Q(e,t,{...n,method:`PATCH`})}const $=X;$.create=e=>{let t=new me(e),n=t.request.bind(void 0);return Object.assign(n,me.prototype,t),n},$.get=ge,$.head=_e,$.options=ve,$.delete=ye,$.post=be,$.put=Se,$.patch=Ce,$.upload=xe;var we=$,Te=we;exports.ContentType=V,exports.Method=U,exports.ResponseError=W,exports.StatusCode=H,exports.default=Te,exports.del=ye,exports.get=ge,exports.head=_e,exports.options=ve,exports.patch=Ce,exports.post=be,exports.put=Se,exports.request=he,exports.upload=xe;
|
|
4
|
+
`+t.prev}function xe(e,t){var n=ae(e),r=[];if(n){r.length=e.length;for(var i=0;i<e.length;i++)r[i]=q(e,i)?t(e[i],e):``}var a=typeof A==`function`?A(e):[],o;if(M){o={};for(var s=0;s<a.length;s++)o[`$`+a[s]]=a[s]}for(var c in e){if(!q(e,c)||n&&String(Number(c))===c&&c<e.length||M&&o[`$`+c]instanceof Symbol)continue;T.call(/[^\w$]/,c)?r.push(t(c,e)+`: `+t(e[c],e)):r.push(c+`: `+t(e[c],e))}if(typeof A==`function`)for(var l=0;l<a.length;l++)te.call(e,a[l])&&r.push(`[`+t(a[l])+`]: `+t(e[a[l]],e));return r}}),i=e.__commonJSMin((exports,n)=>{var i=r(),a=t(),o=function(e,t,n){for(var r=e,i;(i=r.next)!=null;r=i)if(i.key===t)return r.next=i.next,n||(i.next=e.next,e.next=i),i},s=function(e,t){if(e){var n=o(e,t);return n&&n.value}},c=function(e,t,n){var r=o(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}},l=function(e,t){return e?!!o(e,t):!1},u=function(e,t){if(e)return o(e,t,!0)};n.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new a(`Side channel does not contain `+i(e))},delete:function(t){var n=e&&e.next,r=u(e,t);return r&&n&&n===r&&(e=void 0),!!r},get:function(t){return s(e,t)},has:function(t){return l(e,t)},set:function(t,n){e||={next:void 0},c(e,t,n)}};return t}}),a=e.__commonJSMin((exports,t)=>{t.exports=Object}),o=e.__commonJSMin((exports,t)=>{t.exports=Error}),s=e.__commonJSMin((exports,t)=>{t.exports=EvalError}),c=e.__commonJSMin((exports,t)=>{t.exports=RangeError}),l=e.__commonJSMin((exports,t)=>{t.exports=ReferenceError}),u=e.__commonJSMin((exports,t)=>{t.exports=SyntaxError}),d=e.__commonJSMin((exports,t)=>{t.exports=URIError}),f=e.__commonJSMin((exports,t)=>{t.exports=Math.abs}),p=e.__commonJSMin((exports,t)=>{t.exports=Math.floor}),m=e.__commonJSMin((exports,t)=>{t.exports=Math.max}),h=e.__commonJSMin((exports,t)=>{t.exports=Math.min}),g=e.__commonJSMin((exports,t)=>{t.exports=Math.pow}),_=e.__commonJSMin((exports,t)=>{t.exports=Math.round}),v=e.__commonJSMin((exports,t)=>{t.exports=Number.isNaN||function(e){return e!==e}}),y=e.__commonJSMin((exports,t)=>{var n=v();t.exports=function(e){return n(e)||e===0?e:e<0?-1:1}}),b=e.__commonJSMin((exports,t)=>{t.exports=Object.getOwnPropertyDescriptor}),x=e.__commonJSMin((exports,t)=>{var n=b();if(n)try{n([],`length`)}catch{n=null}t.exports=n}),S=e.__commonJSMin((exports,t)=>{var n=Object.defineProperty||!1;if(n)try{n({},`a`,{value:1})}catch{n=!1}t.exports=n}),C=e.__commonJSMin((exports,t)=>{t.exports=function(){if(typeof Symbol!=`function`||typeof Object.getOwnPropertySymbols!=`function`)return!1;if(typeof Symbol.iterator==`symbol`)return!0;var e={},t=Symbol(`test`),n=Object(t);if(typeof t==`string`||Object.prototype.toString.call(t)!==`[object Symbol]`||Object.prototype.toString.call(n)!==`[object Symbol]`)return!1;var r=42;for(var i in e[t]=r,e)return!1;if(typeof Object.keys==`function`&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames==`function`&&Object.getOwnPropertyNames(e).length!==0)return!1;var a=Object.getOwnPropertySymbols(e);if(a.length!==1||a[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor==`function`){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==r||o.enumerable!==!0)return!1}return!0}}),w=e.__commonJSMin((exports,t)=>{var n=typeof Symbol<`u`&&Symbol,r=C();t.exports=function(){return typeof n!=`function`||typeof Symbol!=`function`||typeof n(`foo`)!=`symbol`||typeof Symbol(`bar`)!=`symbol`?!1:r()}}),T=e.__commonJSMin((exports,t)=>{t.exports=typeof Reflect<`u`&&Reflect.getPrototypeOf||null}),E=e.__commonJSMin((exports,t)=>{var n=a();t.exports=n.getPrototypeOf||null}),D=e.__commonJSMin((exports,t)=>{var n=`Function.prototype.bind called on incompatible `,r=Object.prototype.toString,i=Math.max,a=`[object Function]`,o=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var i=0;i<t.length;i+=1)n[i+e.length]=t[i];return n},s=function(e,t){for(var n=[],r=t||0,i=0;r<e.length;r+=1,i+=1)n[i]=e[r];return n},c=function(e,t){for(var n=``,r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n};t.exports=function(e){var t=this;if(typeof t!=`function`||r.apply(t)!==a)throw TypeError(n+t);for(var l=s(arguments,1),u,d=function(){if(this instanceof u){var n=t.apply(this,o(l,arguments));return Object(n)===n?n:this}return t.apply(e,o(l,arguments))},f=i(0,t.length-l.length),p=[],m=0;m<f;m++)p[m]=`$`+m;if(u=Function(`binder`,`return function (`+c(p,`,`)+`){ return binder.apply(this,arguments); }`)(d),t.prototype){var h=function(){};h.prototype=t.prototype,u.prototype=new h,h.prototype=null}return u}}),O=e.__commonJSMin((exports,t)=>{var n=D();t.exports=Function.prototype.bind||n}),k=e.__commonJSMin((exports,t)=>{t.exports=Function.prototype.call}),ee=e.__commonJSMin((exports,t)=>{t.exports=Function.prototype.apply}),A=e.__commonJSMin((exports,t)=>{t.exports=typeof Reflect<`u`&&Reflect&&Reflect.apply}),j=e.__commonJSMin((exports,t)=>{var n=O(),r=ee(),i=k(),a=A();t.exports=a||n.call(i,r)}),M=e.__commonJSMin((exports,n)=>{var r=O(),i=t(),a=k(),o=j();n.exports=function(e){if(e.length<1||typeof e[0]!=`function`)throw new i(`a function is required`);return o(r,a,e)}}),N=e.__commonJSMin((exports,t)=>{var n=M(),r=x(),i;try{i=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!=`object`||!(`code`in e)||e.code!==`ERR_PROTO_ACCESS`)throw e}var a=!!i&&r&&r(Object.prototype,`__proto__`),o=Object,s=o.getPrototypeOf;t.exports=a&&typeof a.get==`function`?n([a.get]):typeof s==`function`?function(e){return s(e==null?e:o(e))}:!1}),te=e.__commonJSMin((exports,t)=>{var n=T(),r=E(),i=N();t.exports=n?function(e){return n(e)}:r?function(e){if(!e||typeof e!=`object`&&typeof e!=`function`)throw TypeError(`getProto: not an object`);return r(e)}:i?function(e){return i(e)}:null}),P=e.__commonJSMin((exports,t)=>{var n=Function.prototype.call,r=Object.prototype.hasOwnProperty,i=O();t.exports=i.call(n,r)}),F=e.__commonJSMin((exports,n)=>{var r,i=a(),v=o(),b=s(),C=c(),D=l(),A=u(),j=t(),M=d(),N=f(),F=p(),I=m(),L=h(),R=g(),ne=_(),z=y(),re=Function,ie=function(e){try{return re(`"use strict"; return (`+e+`).constructor;`)()}catch{}},B=x(),ae=S(),oe=function(){throw new j},V=B?function(){try{return arguments.callee,oe}catch{try{return B(arguments,`callee`).get}catch{return oe}}}():oe,H=w()(),U=te(),W=E(),se=T(),G=ee(),ce=k(),K={},q=typeof Uint8Array>`u`||!U?r:U(Uint8Array),J={__proto__:null,"%AggregateError%":typeof AggregateError>`u`?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>`u`?r:ArrayBuffer,"%ArrayIteratorPrototype%":H&&U?U([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":K,"%AsyncGenerator%":K,"%AsyncGeneratorFunction%":K,"%AsyncIteratorPrototype%":K,"%Atomics%":typeof Atomics>`u`?r:Atomics,"%BigInt%":typeof BigInt>`u`?r:BigInt,"%BigInt64Array%":typeof BigInt64Array>`u`?r:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>`u`?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>`u`?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":v,"%eval%":eval,"%EvalError%":b,"%Float16Array%":typeof Float16Array>`u`?r:Float16Array,"%Float32Array%":typeof Float32Array>`u`?r:Float32Array,"%Float64Array%":typeof Float64Array>`u`?r:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>`u`?r:FinalizationRegistry,"%Function%":re,"%GeneratorFunction%":K,"%Int8Array%":typeof Int8Array>`u`?r:Int8Array,"%Int16Array%":typeof Int16Array>`u`?r:Int16Array,"%Int32Array%":typeof Int32Array>`u`?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":H&&U?U(U([][Symbol.iterator]())):r,"%JSON%":typeof JSON==`object`?JSON:r,"%Map%":typeof Map>`u`?r:Map,"%MapIteratorPrototype%":typeof Map>`u`||!H||!U?r:U(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":i,"%Object.getOwnPropertyDescriptor%":B,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>`u`?r:Promise,"%Proxy%":typeof Proxy>`u`?r:Proxy,"%RangeError%":C,"%ReferenceError%":D,"%Reflect%":typeof Reflect>`u`?r:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>`u`?r:Set,"%SetIteratorPrototype%":typeof Set>`u`||!H||!U?r:U(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>`u`?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":H&&U?U(``[Symbol.iterator]()):r,"%Symbol%":H?Symbol:r,"%SyntaxError%":A,"%ThrowTypeError%":V,"%TypedArray%":q,"%TypeError%":j,"%Uint8Array%":typeof Uint8Array>`u`?r:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>`u`?r:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>`u`?r:Uint16Array,"%Uint32Array%":typeof Uint32Array>`u`?r:Uint32Array,"%URIError%":M,"%WeakMap%":typeof WeakMap>`u`?r:WeakMap,"%WeakRef%":typeof WeakRef>`u`?r:WeakRef,"%WeakSet%":typeof WeakSet>`u`?r:WeakSet,"%Function.prototype.call%":ce,"%Function.prototype.apply%":G,"%Object.defineProperty%":ae,"%Object.getPrototypeOf%":W,"%Math.abs%":N,"%Math.floor%":F,"%Math.max%":I,"%Math.min%":L,"%Math.pow%":R,"%Math.round%":ne,"%Math.sign%":z,"%Reflect.getPrototypeOf%":se};if(U)try{null.error}catch(e){var le=U(U(e));J[`%Error.prototype%`]=le}var ue=function e(t){var n;if(t===`%AsyncFunction%`)n=ie(`async function () {}`);else if(t===`%GeneratorFunction%`)n=ie(`function* () {}`);else if(t===`%AsyncGeneratorFunction%`)n=ie(`async function* () {}`);else if(t===`%AsyncGenerator%`){var r=e(`%AsyncGeneratorFunction%`);r&&(n=r.prototype)}else if(t===`%AsyncIteratorPrototype%`){var i=e(`%AsyncGenerator%`);i&&U&&(n=U(i.prototype))}return J[t]=n,n},de={__proto__:null,"%ArrayBufferPrototype%":[`ArrayBuffer`,`prototype`],"%ArrayPrototype%":[`Array`,`prototype`],"%ArrayProto_entries%":[`Array`,`prototype`,`entries`],"%ArrayProto_forEach%":[`Array`,`prototype`,`forEach`],"%ArrayProto_keys%":[`Array`,`prototype`,`keys`],"%ArrayProto_values%":[`Array`,`prototype`,`values`],"%AsyncFunctionPrototype%":[`AsyncFunction`,`prototype`],"%AsyncGenerator%":[`AsyncGeneratorFunction`,`prototype`],"%AsyncGeneratorPrototype%":[`AsyncGeneratorFunction`,`prototype`,`prototype`],"%BooleanPrototype%":[`Boolean`,`prototype`],"%DataViewPrototype%":[`DataView`,`prototype`],"%DatePrototype%":[`Date`,`prototype`],"%ErrorPrototype%":[`Error`,`prototype`],"%EvalErrorPrototype%":[`EvalError`,`prototype`],"%Float32ArrayPrototype%":[`Float32Array`,`prototype`],"%Float64ArrayPrototype%":[`Float64Array`,`prototype`],"%FunctionPrototype%":[`Function`,`prototype`],"%Generator%":[`GeneratorFunction`,`prototype`],"%GeneratorPrototype%":[`GeneratorFunction`,`prototype`,`prototype`],"%Int8ArrayPrototype%":[`Int8Array`,`prototype`],"%Int16ArrayPrototype%":[`Int16Array`,`prototype`],"%Int32ArrayPrototype%":[`Int32Array`,`prototype`],"%JSONParse%":[`JSON`,`parse`],"%JSONStringify%":[`JSON`,`stringify`],"%MapPrototype%":[`Map`,`prototype`],"%NumberPrototype%":[`Number`,`prototype`],"%ObjectPrototype%":[`Object`,`prototype`],"%ObjProto_toString%":[`Object`,`prototype`,`toString`],"%ObjProto_valueOf%":[`Object`,`prototype`,`valueOf`],"%PromisePrototype%":[`Promise`,`prototype`],"%PromiseProto_then%":[`Promise`,`prototype`,`then`],"%Promise_all%":[`Promise`,`all`],"%Promise_reject%":[`Promise`,`reject`],"%Promise_resolve%":[`Promise`,`resolve`],"%RangeErrorPrototype%":[`RangeError`,`prototype`],"%ReferenceErrorPrototype%":[`ReferenceError`,`prototype`],"%RegExpPrototype%":[`RegExp`,`prototype`],"%SetPrototype%":[`Set`,`prototype`],"%SharedArrayBufferPrototype%":[`SharedArrayBuffer`,`prototype`],"%StringPrototype%":[`String`,`prototype`],"%SymbolPrototype%":[`Symbol`,`prototype`],"%SyntaxErrorPrototype%":[`SyntaxError`,`prototype`],"%TypedArrayPrototype%":[`TypedArray`,`prototype`],"%TypeErrorPrototype%":[`TypeError`,`prototype`],"%Uint8ArrayPrototype%":[`Uint8Array`,`prototype`],"%Uint8ClampedArrayPrototype%":[`Uint8ClampedArray`,`prototype`],"%Uint16ArrayPrototype%":[`Uint16Array`,`prototype`],"%Uint32ArrayPrototype%":[`Uint32Array`,`prototype`],"%URIErrorPrototype%":[`URIError`,`prototype`],"%WeakMapPrototype%":[`WeakMap`,`prototype`],"%WeakSetPrototype%":[`WeakSet`,`prototype`]},Y=O(),fe=P(),pe=Y.call(ce,Array.prototype.concat),me=Y.call(G,Array.prototype.splice),X=Y.call(ce,String.prototype.replace),Z=Y.call(ce,String.prototype.slice),Q=Y.call(ce,RegExp.prototype.exec),he=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ge=/\\(\\)?/g,_e=function(e){var t=Z(e,0,1),n=Z(e,-1);if(t===`%`&&n!==`%`)throw new A("invalid intrinsic syntax, expected closing `%`");if(n===`%`&&t!==`%`)throw new A("invalid intrinsic syntax, expected opening `%`");var r=[];return X(e,he,function(e,t,n,i){r[r.length]=n?X(i,ge,`$1`):t||e}),r},ve=function(e,t){var n=e,r;if(fe(de,n)&&(r=de[n],n=`%`+r[0]+`%`),fe(J,n)){var i=J[n];if(i===K&&(i=ue(n)),i===void 0&&!t)throw new j(`intrinsic `+e+` exists, but is not available. Please file an issue!`);return{alias:r,name:n,value:i}}throw new A(`intrinsic `+e+` does not exist!`)};n.exports=function(e,t){if(typeof e!=`string`||e.length===0)throw new j(`intrinsic name must be a non-empty string`);if(arguments.length>1&&typeof t!=`boolean`)throw new j(`"allowMissing" argument must be a boolean`);if(Q(/^%?[^%]*%?$/,e)===null)throw new A("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=_e(e),r=n.length>0?n[0]:``,i=ve(`%`+r+`%`,t),a=i.name,o=i.value,s=!1,c=i.alias;c&&(r=c[0],me(n,pe([0,1],c)));for(var l=1,u=!0;l<n.length;l+=1){var d=n[l],f=Z(d,0,1),p=Z(d,-1);if((f===`"`||f===`'`||f==="`"||p===`"`||p===`'`||p==="`")&&f!==p)throw new A(`property names with quotes must have matching quotes`);if((d===`constructor`||!u)&&(s=!0),r+=`.`+d,a=`%`+r+`%`,fe(J,a))o=J[a];else if(o!=null){if(!(d in o)){if(!t)throw new j(`base intrinsic for `+e+` exists, but the property is not available.`);return}if(B&&l+1>=n.length){var m=B(o,d);u=!!m,o=u&&`get`in m&&!(`originalValue`in m.get)?m.get:o[d]}else u=fe(o,d),o=o[d];u&&!s&&(J[a]=o)}}return o}}),I=e.__commonJSMin((exports,t)=>{var n=F(),r=M(),i=r([n(`%String.prototype.indexOf%`)]);t.exports=function(e,t){var a=n(e,!!t);return typeof a==`function`&&i(e,`.prototype.`)>-1?r([a]):a}}),L=e.__commonJSMin((exports,n)=>{var i=F(),a=I(),o=r(),s=t(),c=i(`%Map%`,!0),l=a(`Map.prototype.get`,!0),u=a(`Map.prototype.set`,!0),d=a(`Map.prototype.has`,!0),f=a(`Map.prototype.delete`,!0),p=a(`Map.prototype.size`,!0);n.exports=!!c&&function(){var e,t={assert:function(e){if(!t.has(e))throw new s(`Side channel does not contain `+o(e))},delete:function(t){if(e){var n=f(e,t);return p(e)===0&&(e=void 0),n}return!1},get:function(t){if(e)return l(e,t)},has:function(t){return e?d(e,t):!1},set:function(t,n){e||=new c,u(e,t,n)}};return t}}),R=e.__commonJSMin((exports,n)=>{var i=F(),a=I(),o=r(),s=L(),c=t(),l=i(`%WeakMap%`,!0),u=a(`WeakMap.prototype.get`,!0),d=a(`WeakMap.prototype.set`,!0),f=a(`WeakMap.prototype.has`,!0),p=a(`WeakMap.prototype.delete`,!0);n.exports=l?function(){var e,t,n={assert:function(e){if(!n.has(e))throw new c(`Side channel does not contain `+o(e))},delete:function(n){if(l&&n&&(typeof n==`object`||typeof n==`function`)){if(e)return p(e,n)}else if(s&&t)return t.delete(n);return!1},get:function(n){return l&&n&&(typeof n==`object`||typeof n==`function`)&&e?u(e,n):t&&t.get(n)},has:function(n){return l&&n&&(typeof n==`object`||typeof n==`function`)&&e?f(e,n):!!t&&t.has(n)},set:function(n,r){l&&n&&(typeof n==`object`||typeof n==`function`)?(e||=new l,d(e,n,r)):s&&(t||=s(),t.set(n,r))}};return n}:s}),ne=e.__commonJSMin((exports,n)=>{var a=t(),o=r(),s=i(),c=L(),l=R(),u=l||c||s;n.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new a(`Side channel does not contain `+o(e))},delete:function(t){return!!e&&e.delete(t)},get:function(t){return e&&e.get(t)},has:function(t){return!!e&&e.has(t)},set:function(t,n){e||=u(),e.set(t,n)}};return t}}),z=e.__commonJSMin((exports,t)=>{var n=String.prototype.replace,r=/%20/g,i={RFC1738:`RFC1738`,RFC3986:`RFC3986`};t.exports={default:i.RFC3986,formatters:{RFC1738:function(e){return n.call(e,r,`+`)},RFC3986:function(e){return String(e)}},RFC1738:i.RFC1738,RFC3986:i.RFC3986}}),re=e.__commonJSMin((exports,t)=>{var n=z(),r=Object.prototype.hasOwnProperty,i=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push(`%`+((t<16?`0`:``)+t.toString(16)).toUpperCase());return e}(),o=function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(i(n)){for(var r=[],a=0;a<n.length;++a)n[a]!==void 0&&r.push(n[a]);t.obj[t.prop]=r}}},s=function(e,t){for(var n=t&&t.plainObjects?{__proto__:null}:{},r=0;r<e.length;++r)e[r]!==void 0&&(n[r]=e[r]);return n},c=function e(t,n,a){if(!n)return t;if(typeof n!=`object`&&typeof n!=`function`){if(i(t))t.push(n);else if(t&&typeof t==`object`)(a&&(a.plainObjects||a.allowPrototypes)||!r.call(Object.prototype,n))&&(t[n]=!0);else return[t,n];return t}if(!t||typeof t!=`object`)return[t].concat(n);var o=t;return i(t)&&!i(n)&&(o=s(t,a)),i(t)&&i(n)?(n.forEach(function(n,i){if(r.call(t,i)){var o=t[i];o&&typeof o==`object`&&n&&typeof n==`object`?t[i]=e(o,n,a):t.push(n)}else t[i]=n}),t):Object.keys(n).reduce(function(t,i){var o=n[i];return r.call(t,i)?t[i]=e(t[i],o,a):t[i]=o,t},o)},l=function(e,t){return Object.keys(t).reduce(function(e,n){return e[n]=t[n],e},e)},u=function(e,t,n){var r=e.replace(/\+/g,` `);if(n===`iso-8859-1`)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch{return r}},d=1024,f=function(e,t,r,i,o){if(e.length===0)return e;var s=e;if(typeof e==`symbol`?s=Symbol.prototype.toString.call(e):typeof e!=`string`&&(s=String(e)),r===`iso-8859-1`)return escape(s).replace(/%u[0-9a-f]{4}/gi,function(e){return`%26%23`+parseInt(e.slice(2),16)+`%3B`});for(var c=``,l=0;l<s.length;l+=d){for(var u=s.length>=d?s.slice(l,l+d):s,f=[],p=0;p<u.length;++p){var m=u.charCodeAt(p);if(m===45||m===46||m===95||m===126||m>=48&&m<=57||m>=65&&m<=90||m>=97&&m<=122||o===n.RFC1738&&(m===40||m===41)){f[f.length]=u.charAt(p);continue}if(m<128){f[f.length]=a[m];continue}if(m<2048){f[f.length]=a[192|m>>6]+a[128|m&63];continue}if(m<55296||m>=57344){f[f.length]=a[224|m>>12]+a[128|m>>6&63]+a[128|m&63];continue}p+=1,m=65536+((m&1023)<<10|u.charCodeAt(p)&1023),f[f.length]=a[240|m>>18]+a[128|m>>12&63]+a[128|m>>6&63]+a[128|m&63]}c+=f.join(``)}return c},p=function(e){for(var t=[{obj:{o:e},prop:`o`}],n=[],r=0;r<t.length;++r)for(var i=t[r],a=i.obj[i.prop],s=Object.keys(a),c=0;c<s.length;++c){var l=s[c],u=a[l];typeof u==`object`&&u&&n.indexOf(u)===-1&&(t.push({obj:a,prop:l}),n.push(u))}return o(t),e},m=function(e){return Object.prototype.toString.call(e)===`[object RegExp]`},h=function(e){return!e||typeof e!=`object`?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},g=function(e,t){return[].concat(e,t)},_=function(e,t){if(i(e)){for(var n=[],r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)};t.exports={arrayToObject:s,assign:l,combine:g,compact:p,decode:u,encode:f,isBuffer:h,isRegExp:m,maybeMap:_,merge:c}}),ie=e.__commonJSMin((exports,t)=>{var n=ne(),r=re(),i=z(),a=Object.prototype.hasOwnProperty,o={brackets:function(e){return e+`[]`},comma:`comma`,indices:function(e,t){return e+`[`+t+`]`},repeat:function(e){return e}},s=Array.isArray,c=Array.prototype.push,l=function(e,t){c.apply(e,s(t)?t:[t])},u=Date.prototype.toISOString,d=i.default,f={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:`indices`,charset:`utf-8`,charsetSentinel:!1,commaRoundTrip:!1,delimiter:`&`,encode:!0,encodeDotInKeys:!1,encoder:r.encode,encodeValuesOnly:!1,filter:void 0,format:d,formatter:i.formatters[d],indices:!1,serializeDate:function(e){return u.call(e)},skipNulls:!1,strictNullHandling:!1},p=function(e){return typeof e==`string`||typeof e==`number`||typeof e==`boolean`||typeof e==`symbol`||typeof e==`bigint`},m={},h=function e(t,i,a,o,c,u,d,h,g,_,v,y,b,x,S,C,w,T){for(var E=t,D=T,O=0,k=!1;(D=D.get(m))!==void 0&&!k;){var ee=D.get(t);if(O+=1,ee!==void 0){if(ee===O)throw RangeError(`Cyclic object value`);k=!0}D.get(m)===void 0&&(O=0)}if(typeof _==`function`?E=_(i,E):E instanceof Date?E=b(E):a===`comma`&&s(E)&&(E=r.maybeMap(E,function(e){return e instanceof Date?b(e):e})),E===null){if(u)return g&&!C?g(i,f.encoder,w,`key`,x):i;E=``}if(p(E)||r.isBuffer(E)){if(g){var A=C?i:g(i,f.encoder,w,`key`,x);return[S(A)+`=`+S(g(E,f.encoder,w,`value`,x))]}return[S(i)+`=`+S(String(E))]}var j=[];if(E===void 0)return j;var M;if(a===`comma`&&s(E))C&&g&&(E=r.maybeMap(E,g)),M=[{value:E.length>0?E.join(`,`)||null:void 0}];else if(s(_))M=_;else{var N=Object.keys(E);M=v?N.sort(v):N}var te=h?String(i).replace(/\./g,`%2E`):String(i),P=o&&s(E)&&E.length===1?te+`[]`:te;if(c&&s(E)&&E.length===0)return P+`[]`;for(var F=0;F<M.length;++F){var I=M[F],L=typeof I==`object`&&I&&I.value!==void 0?I.value:E[I];if(!(d&&L===null)){var R=y&&h?String(I).replace(/\./g,`%2E`):String(I),ne=s(E)?typeof a==`function`?a(P,R):P:P+(y?`.`+R:`[`+R+`]`);T.set(t,O);var z=n();z.set(m,T),l(j,e(L,ne,a,o,c,u,d,h,a===`comma`&&C&&s(E)?null:g,_,v,y,b,x,S,C,w,z))}}return j},g=function(e){if(!e)return f;if(e.allowEmptyArrays!==void 0&&typeof e.allowEmptyArrays!=`boolean`)throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(e.encodeDotInKeys!==void 0&&typeof e.encodeDotInKeys!=`boolean`)throw TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(e.encoder!==null&&e.encoder!==void 0&&typeof e.encoder!=`function`)throw TypeError(`Encoder has to be a function.`);var t=e.charset||f.charset;if(e.charset!==void 0&&e.charset!==`utf-8`&&e.charset!==`iso-8859-1`)throw TypeError(`The charset option must be either utf-8, iso-8859-1, or undefined`);var n=i.default;if(e.format!==void 0){if(!a.call(i.formatters,e.format))throw TypeError(`Unknown format option provided.`);n=e.format}var r=i.formatters[n],c=f.filter;(typeof e.filter==`function`||s(e.filter))&&(c=e.filter);var l;if(l=e.arrayFormat in o?e.arrayFormat:`indices`in e?e.indices?`indices`:`repeat`:f.arrayFormat,`commaRoundTrip`in e&&typeof e.commaRoundTrip!=`boolean`)throw TypeError("`commaRoundTrip` must be a boolean, or absent");var u=e.allowDots===void 0?e.encodeDotInKeys===!0?!0:f.allowDots:!!e.allowDots;return{addQueryPrefix:typeof e.addQueryPrefix==`boolean`?e.addQueryPrefix:f.addQueryPrefix,allowDots:u,allowEmptyArrays:typeof e.allowEmptyArrays==`boolean`?!!e.allowEmptyArrays:f.allowEmptyArrays,arrayFormat:l,charset:t,charsetSentinel:typeof e.charsetSentinel==`boolean`?e.charsetSentinel:f.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:e.delimiter===void 0?f.delimiter:e.delimiter,encode:typeof e.encode==`boolean`?e.encode:f.encode,encodeDotInKeys:typeof e.encodeDotInKeys==`boolean`?e.encodeDotInKeys:f.encodeDotInKeys,encoder:typeof e.encoder==`function`?e.encoder:f.encoder,encodeValuesOnly:typeof e.encodeValuesOnly==`boolean`?e.encodeValuesOnly:f.encodeValuesOnly,filter:c,format:n,formatter:r,serializeDate:typeof e.serializeDate==`function`?e.serializeDate:f.serializeDate,skipNulls:typeof e.skipNulls==`boolean`?e.skipNulls:f.skipNulls,sort:typeof e.sort==`function`?e.sort:null,strictNullHandling:typeof e.strictNullHandling==`boolean`?e.strictNullHandling:f.strictNullHandling}};t.exports=function(e,t){var r=e,i=g(t),a,c;typeof i.filter==`function`?(c=i.filter,r=c(``,r)):s(i.filter)&&(c=i.filter,a=c);var u=[];if(typeof r!=`object`||!r)return``;var d=o[i.arrayFormat],f=d===`comma`&&i.commaRoundTrip;a||=Object.keys(r),i.sort&&a.sort(i.sort);for(var p=n(),m=0;m<a.length;++m){var _=a[m],v=r[_];i.skipNulls&&v===null||l(u,h(v,_,d,f,i.allowEmptyArrays,i.strictNullHandling,i.skipNulls,i.encodeDotInKeys,i.encode?i.encoder:null,i.filter,i.sort,i.allowDots,i.serializeDate,i.format,i.formatter,i.encodeValuesOnly,i.charset,p))}var y=u.join(i.delimiter),b=i.addQueryPrefix===!0?`?`:``;return i.charsetSentinel&&(i.charset===`iso-8859-1`?b+=`utf8=%26%2310003%3B&`:b+=`utf8=%E2%9C%93&`),y.length>0?b+y:``}}),B=e.__commonJSMin((exports,t)=>{var n=re(),r=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:`utf-8`,charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:n.decode,delimiter:`&`,depth:5,duplicates:`combine`,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},o=function(e){return e.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},s=function(e,t,n){if(e&&typeof e==`string`&&t.comma&&e.indexOf(`,`)>-1)return e.split(`,`);if(t.throwOnLimitExceeded&&n>=t.arrayLimit)throw RangeError(`Array limit exceeded. Only `+t.arrayLimit+` element`+(t.arrayLimit===1?``:`s`)+` allowed in an array.`);return e},c=`utf8=%26%2310003%3B`,l=`utf8=%E2%9C%93`,u=function(e,t){var u={__proto__:null},d=t.ignoreQueryPrefix?e.replace(/^\?/,``):e;d=d.replace(/%5B/gi,`[`).replace(/%5D/gi,`]`);var f=t.parameterLimit===1/0?void 0:t.parameterLimit,p=d.split(t.delimiter,t.throwOnLimitExceeded?f+1:f);if(t.throwOnLimitExceeded&&p.length>f)throw RangeError(`Parameter limit exceeded. Only `+f+` parameter`+(f===1?``:`s`)+` allowed.`);var m=-1,h,g=t.charset;if(t.charsetSentinel)for(h=0;h<p.length;++h)p[h].indexOf(`utf8=`)===0&&(p[h]===l?g=`utf-8`:p[h]===c&&(g=`iso-8859-1`),m=h,h=p.length);for(h=0;h<p.length;++h)if(h!==m){var _=p[h],v=_.indexOf(`]=`),y=v===-1?_.indexOf(`=`):v+1,b,x;y===-1?(b=t.decoder(_,a.decoder,g,`key`),x=t.strictNullHandling?null:``):(b=t.decoder(_.slice(0,y),a.decoder,g,`key`),x=n.maybeMap(s(_.slice(y+1),t,i(u[b])?u[b].length:0),function(e){return t.decoder(e,a.decoder,g,`value`)})),x&&t.interpretNumericEntities&&g===`iso-8859-1`&&(x=o(String(x))),_.indexOf(`[]=`)>-1&&(x=i(x)?[x]:x);var S=r.call(u,b);S&&t.duplicates===`combine`?u[b]=n.combine(u[b],x):(!S||t.duplicates===`last`)&&(u[b]=x)}return u},d=function(e,t,r,i){var a=0;if(e.length>0&&e[e.length-1]===`[]`){var o=e.slice(0,-1).join(``);a=Array.isArray(t)&&t[o]?t[o].length:0}for(var c=i?t:s(t,r,a),l=e.length-1;l>=0;--l){var u,d=e[l];if(d===`[]`&&r.parseArrays)u=r.allowEmptyArrays&&(c===``||r.strictNullHandling&&c===null)?[]:n.combine([],c);else{u=r.plainObjects?{__proto__:null}:{};var f=d.charAt(0)===`[`&&d.charAt(d.length-1)===`]`?d.slice(1,-1):d,p=r.decodeDotInKeys?f.replace(/%2E/g,`.`):f,m=parseInt(p,10);!r.parseArrays&&p===``?u={0:c}:!isNaN(m)&&d!==p&&String(m)===p&&m>=0&&r.parseArrays&&m<=r.arrayLimit?(u=[],u[m]=c):p!==`__proto__`&&(u[p]=c)}c=u}return c},f=function(e,t,n,i){if(e){var a=n.allowDots?e.replace(/\.([^.[]+)/g,`[$1]`):e,o=/(\[[^[\]]*])/,s=/(\[[^[\]]*])/g,c=n.depth>0&&o.exec(a),l=c?a.slice(0,c.index):a,u=[];if(l){if(!n.plainObjects&&r.call(Object.prototype,l)&&!n.allowPrototypes)return;u.push(l)}for(var f=0;n.depth>0&&(c=s.exec(a))!==null&&f<n.depth;){if(f+=1,!n.plainObjects&&r.call(Object.prototype,c[1].slice(1,-1))&&!n.allowPrototypes)return;u.push(c[1])}if(c){if(n.strictDepth===!0)throw RangeError(`Input depth exceeded depth option of `+n.depth+` and strictDepth is true`);u.push(`[`+a.slice(c.index)+`]`)}return d(u,t,n,i)}},p=function(e){if(!e)return a;if(e.allowEmptyArrays!==void 0&&typeof e.allowEmptyArrays!=`boolean`)throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(e.decodeDotInKeys!==void 0&&typeof e.decodeDotInKeys!=`boolean`)throw TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(e.decoder!==null&&e.decoder!==void 0&&typeof e.decoder!=`function`)throw TypeError(`Decoder has to be a function.`);if(e.charset!==void 0&&e.charset!==`utf-8`&&e.charset!==`iso-8859-1`)throw TypeError(`The charset option must be either utf-8, iso-8859-1, or undefined`);if(e.throwOnLimitExceeded!==void 0&&typeof e.throwOnLimitExceeded!=`boolean`)throw TypeError("`throwOnLimitExceeded` option must be a boolean");var t=e.charset===void 0?a.charset:e.charset,r=e.duplicates===void 0?a.duplicates:e.duplicates;if(r!==`combine`&&r!==`first`&&r!==`last`)throw TypeError(`The duplicates option must be either combine, first, or last`);var i=e.allowDots===void 0?e.decodeDotInKeys===!0?!0:a.allowDots:!!e.allowDots;return{allowDots:i,allowEmptyArrays:typeof e.allowEmptyArrays==`boolean`?!!e.allowEmptyArrays:a.allowEmptyArrays,allowPrototypes:typeof e.allowPrototypes==`boolean`?e.allowPrototypes:a.allowPrototypes,allowSparse:typeof e.allowSparse==`boolean`?e.allowSparse:a.allowSparse,arrayLimit:typeof e.arrayLimit==`number`?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:typeof e.charsetSentinel==`boolean`?e.charsetSentinel:a.charsetSentinel,comma:typeof e.comma==`boolean`?e.comma:a.comma,decodeDotInKeys:typeof e.decodeDotInKeys==`boolean`?e.decodeDotInKeys:a.decodeDotInKeys,decoder:typeof e.decoder==`function`?e.decoder:a.decoder,delimiter:typeof e.delimiter==`string`||n.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:typeof e.depth==`number`||e.depth===!1?+e.depth:a.depth,duplicates:r,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities==`boolean`?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:typeof e.parameterLimit==`number`?e.parameterLimit:a.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects==`boolean`?e.plainObjects:a.plainObjects,strictDepth:typeof e.strictDepth==`boolean`?!!e.strictDepth:a.strictDepth,strictNullHandling:typeof e.strictNullHandling==`boolean`?e.strictNullHandling:a.strictNullHandling,throwOnLimitExceeded:typeof e.throwOnLimitExceeded==`boolean`?e.throwOnLimitExceeded:!1}};t.exports=function(e,t){var r=p(t);if(e===``||e==null)return r.plainObjects?{__proto__:null}:{};for(var i=typeof e==`string`?u(e,r):e,a=r.plainObjects?{__proto__:null}:{},o=Object.keys(i),s=0;s<o.length;++s){var c=o[s],l=f(c,i[c],r,typeof e==`string`);a=n.merge(a,l,r)}return r.allowSparse===!0?a:n.compact(a)}}),ae=e.__commonJSMin((exports,t)=>{var n=ie(),r=B(),i=z();t.exports={formats:i,parse:r,stringify:n}});const oe=(e,t)=>e?!t||t.length===0?e:t.reduce((e,t)=>(delete e[t],e),{...e}):{};let V=function(e){return e.JSON=`application/json`,e.FORM_URLENCODED=`application/x-www-form-urlencoded`,e.FORM_DATA=`multipart/form-data`,e.TEXT=`text/plain`,e.HTML=`text/html`,e.XML=`text/xml`,e.CSV=`text/csv`,e.STREAM=`application/octet-stream`,e}({}),H=function(e){return e[e.TIME_OUT=408]=`TIME_OUT`,e[e.ABORTED=499]=`ABORTED`,e[e.NETWORK_ERROR=599]=`NETWORK_ERROR`,e[e.BODY_NULL=502]=`BODY_NULL`,e[e.UNKNOWN=601]=`UNKNOWN`,e}({}),U=function(e){return e.GET=`GET`,e.POST=`POST`,e.PUT=`PUT`,e.DELETE=`DELETE`,e.PATCH=`PATCH`,e.HEAD=`HEAD`,e.OPTIONS=`OPTIONS`,e}({});var W=class extends Error{#message;#name;#status;#statusText;#response;#config;constructor({message:e,status:t,statusText:n,response:r,config:i,name:a}){super(e),this.#message=e,this.#status=t,this.#statusText=n,this.#response=r,this.#config=i,this.#name=a??e}get message(){return this.#message}get status(){return this.#status}get statusText(){return this.#statusText}get response(){return this.#response}get config(){return this.#config}get name(){return this.#name}},se=e.__toESM(ae(),1),G=function(e){return e.JSON=`json`,e.BLOB=`blob`,e.TEXT=`text`,e.ARRAY_BUFFER=`arrayBuffer`,e.FORM_DATA=`formData`,e.BYTES=`bytes`,e}(G||{});function ce(e){let t=new Map;e.forEach(e=>{t.set(e.name,e)});let n=Array.from(t.values()).sort((e,t)=>(e.priority??0)-(t.priority??0)),r=[],i=[],a=[],o=[],s=[],c=[];return n.forEach(e=>{e.beforeRequest&&r.push(e.beforeRequest),e.afterResponse&&i.push(e.afterResponse),e.onError&&a.push(e.onError),e.onFinally&&o.push(e.onFinally),e.transformStreamChunk&&s.push(e.transformStreamChunk),e.beforeStream&&c.push(e.beforeStream)}),{beforeRequestPlugins:r,afterResponsePlugins:i,errorPlugins:a,finallyPlugins:o,beforeStreamPlugins:c,transformStreamChunkPlugins:s}}function K(e,t,n=`repeat`){if(t){let r=se.default.stringify(t,{arrayFormat:n});r&&(e=e.includes(`?`)?`${e}&${r}`:`${e}?${r}`)}return e}function q(e={},t={}){let n=e instanceof Headers?e:new Headers(e),r=e=>{e instanceof Headers||(e=new Headers(e)),e.forEach((e,t)=>{n.set(t,e)})};return r(t),n}const J=[`PATCH`,`POST`,`PUT`,`DELETE`,`OPTIONS`],le=[`GET`,`HEAD`];function ue(e,t,n,r=`repeat`){if(!e)return null;if(e instanceof FormData)return e;let i=null;if(J.includes(t.toUpperCase())){let t=new Headers(n||{}),a=t.get(`Content-Type`)||V.JSON;if(a.includes(V.JSON))i=JSON.stringify(e);else if(a.includes(V.FORM_URLENCODED))i=se.default.stringify(e,{arrayFormat:r});else if(a.includes(V.FORM_DATA)){let t=new FormData;if(!(e instanceof FormData)&&typeof e==`object`){let n=e;Object.keys(n).forEach(e=>{n.prototype.hasOwnProperty.call(e)&&t.append(e,n[e])}),i=t}}}return le.includes(t.toUpperCase())&&(i=null),i}var de=class e{#plugins;#controller;#config;#promise;#isTimeout=!1;#executor=null;#finallyCallbacks=new Set;#responseType=`json`;#fullOptions;constructor(e){this.#fullOptions=e;let{plugins:t=[],controller:n,url:r,baseURL:i=``,params:a,data:o,qsArrayFormat:s=`repeat`,withCredentials:c=!1,extra:l,method:u=`GET`,headers:d={}}=e;this.#controller=n??new AbortController,this.#plugins=ce(t),this.#config={url:r,baseURL:i,params:a,data:o,withCredentials:c,extra:l,method:u,headers:d,qsArrayFormat:s},this.#promise=this.#init(e)}#init({timeout:e}){return new Promise(async(t,n)=>{let r=this.#config,{beforeRequestPlugins:i}=this.#plugins,a=null;for(let e of i)try{r=await e(r)}catch(e){a=new W({message:e?.message??`Unknown Request Error in beforeRequest`,status:e?.status??H.UNKNOWN,statusText:e?.statusText??`Unknown Request Error in beforeRequest`,config:this.#config,name:e?.name??`Unknown Request Error in beforeRequest`});break}if(a)return n(a);let o=K(r.baseURL+r.url,r.params,r.qsArrayFormat),s=ue(r.data,r.method,r.headers,r.qsArrayFormat),c=oe(r??{},[`baseURL`,`data`,`extra`,`headers`,`method`,`params`,`url`,`withCredentials`]),l={...c,method:r.method,headers:r.headers,signal:this.#controller.signal,credentials:r.withCredentials?`include`:`omit`,body:s},u=fetch(o,l),d=[u],f=null;if(e){let t=new Promise(t=>{f=setTimeout(()=>{this.#isTimeout=!0,this.#controller?.abort()},e)});d.push(t)}try{let e=await Promise.race(d);e?(e.ok&&t(e),a=new W({message:`Fail Request`,status:e.status,statusText:e.statusText,config:this.#config,name:`Fail Request`,response:e})):a=new W({message:`NETWORK_ERROR`,status:H.NETWORK_ERROR,statusText:`Network Error`,config:this.#config,name:`Network Error`})}catch(e){a=e}finally{a&&n(a),f&&clearTimeout(f)}})}async#createNormalizeError(e){return e instanceof W?e:e instanceof TypeError?e.name===`AbortError`?this.#isTimeout?new W({message:`Request timeout`,status:H.TIME_OUT,statusText:`Request timeout`,config:this.#config,name:`Request timeout`,response:await this.#response}):new W({message:`Request aborted`,status:H.ABORTED,statusText:`Request aborted`,config:this.#config,name:`Request aborted`,response:await this.#response}):new W({message:e.message,status:H.NETWORK_ERROR,statusText:`Unknown Request Error`,config:this.#config,name:e.name,response:await this.#response}):new W({message:e?.message??`Unknown Request Error`,status:H.UNKNOWN,statusText:`Unknown Request Error`,config:this.#config,name:`Unknown Request Error`,response:await this.#response})}async#normalizeError(e){let t=await this.#createNormalizeError(e);for(let e of this.#plugins.errorPlugins)t=await e(t,this.#config);return t.__normalized=!0,t}#execFinally(){for(let e of this.#finallyCallbacks)e();this.#finallyCallbacks.clear()}get#getExecutor(){return this.#executor?this.#executor:this.#response}async#resolve(e){let t=this.#plugins.afterResponsePlugins,n={config:this.#config,response:await this.#response,responseType:this.#responseType,controller:this.#controller,result:e};try{for(let e of t)n=await e(n,this.#config);return n.result}catch(e){return Promise.reject(e)}}then(e,t){return this.#getExecutor.then(async t=>e?.call(this,await this.#resolve(t)),async e=>t?.call(this,await this.#normalizeError(e)))}catch(e){return this.#getExecutor.catch(e)}finally(e){this.#finallyCallbacks.add(e)}abort(){this.#controller.abort()}get#response(){return this.#promise.then(e=>e.clone()).catch(async e=>{throw await this.#normalizeError(e)})}json(){return this.#then(G.JSON,this.#response.then(e=>e.json()))}blob(){return this.#then(G.BLOB,this.#response.then(e=>e.blob()))}text(){return this.#then(G.TEXT,this.#response.then(e=>e.text()))}arrayBuffer(){return this.#then(G.ARRAY_BUFFER,this.#response.then(e=>e.arrayBuffer()))}#then(e,t){return this.#executor=t.then(t=>(this.#responseType=e,this.#resolve(t))).catch(async t=>{throw this.#responseType=e,t.__normalized?t:await this.#normalizeError(t)}).finally(this.#execFinally.bind(this)),this.#executor}formData(){return this.#then(G.FORM_DATA,this.#response.then(e=>e.formData()))}bytes(){return this.#then(G.BYTES,this.#response.then(e=>e.bytes()))}async*stream(){let e=(await this.#response)?.body;if(!e)throw Error(`Response body is null`);for(let t of this.#plugins.beforeStreamPlugins)e=await t(e,this.#config);let t=e.getReader();if(!t)throw Error(`Response body reader is null`);try{for(;;){let{done:e,value:n}=await t.read();if(e)break;let r={source:n,result:n,error:null};try{for(let e of this.#plugins.transformStreamChunkPlugins)r=await e(r,this.#config);if(r.result&&(Y(r.result)||fe(r.result)))for await(let e of r.result){let t={source:r.source,result:e,error:null};yield t}else yield r}catch(e){r.error=e,r.result=null,yield r}}}catch(e){return this.#normalizeError(e)}finally{t.releaseLock(),this.#execFinally()}}retry(){let{controller:t,...n}=this.#fullOptions;return new e(n)}get response(){return this.#response}};function Y(e){return e[Symbol.toStringTag]===`Generator`&&typeof e.next==`function`&&typeof e.return==`function`&&typeof e.throw==`function`&&typeof e[Symbol.iterator]==`function`}function fe(e){return e[Symbol.toStringTag]===`AsyncGenerator`&&typeof e.next==`function`&&typeof e.return==`function`&&typeof e.throw==`function`&&typeof e[Symbol.asyncIterator]==`function`}function pe(e){return new de(e)}var me=class{#timeout;#baseURL;#commonHeaders;#queue=[];#plugins=[];#withCredentials;constructor({timeout:e=0,baseURL:t=``,headers:n={},plugins:r=[],withCredentials:i=!1}){this.#timeout=e,this.#baseURL=t,this.#commonHeaders=n,this.#plugins=r,this.#withCredentials=i,this.request=this.request.bind(this),this.get=this.get.bind(this),this.head=this.head.bind(this),this.options=this.options.bind(this),this.delete=this.delete.bind(this),this.post=this.post.bind(this),this.put=this.put.bind(this),this.patch=this.patch.bind(this),this.abortAll=this.abortAll.bind(this),this.use=this.use.bind(this)}use(e){return this.#plugins.push(e),this}request(e,{timeout:t,headers:n,method:r=`GET`,params:i={},data:a={},qsArrayFormat:o,withCredentials:s,extra:c={}}={}){let l=new AbortController;this.#queue.push(l);let u=pe({url:e,baseURL:this.#baseURL,timeout:t??this.#timeout,plugins:this.#plugins,headers:q(this.#commonHeaders,n),controller:l,method:r,params:i,data:a,qsArrayFormat:o,withCredentials:s??this.#withCredentials,extra:c});return u.finally(()=>{this.#queue=this.#queue.filter(e=>e!==l)}),u}#requestWithParams(e,t={},n={}){return this.request(e,{...n,params:t})}#requestWithBody(e,t={},n={}){return this.request(e,{...n,data:t})}get(e,t={},n){return this.#requestWithParams(e,t,{...n,method:`GET`})}head(e,t={},n){return this.#requestWithParams(e,t,{...n,method:`HEAD`})}options(e,t={},n){return this.request(e,{...n,method:`OPTIONS`,params:t})}delete(e,t){return this.request(e,{...t,method:`DELETE`})}post(e,t,n){return this.#requestWithBody(e,t,{...n,method:`POST`})}upload(e,t,n){let r=new FormData;for(let e in t)if(Object.prototype.hasOwnProperty.call(t,e)){let n=t[e];n instanceof File||n instanceof Blob?r.append(e,n):r.append(e,String(n))}return this.#requestWithBody(e,r,{...n,method:`POST`})}put(e,t,n){return this.#requestWithBody(e,t,{...n,method:`PUT`})}patch(e,t,n){return this.#requestWithBody(e,t,{...n,method:`PATCH`})}abortAll(){this.#queue.forEach(e=>e.abort()),this.#queue=[]}};function X(e,t={}){return pe({url:e,baseURL:``,...t})}function Z(e,t,n={}){return X(e,{...n,params:t})}function Q(e,t=null,n={}){return X(e,{...n,data:t})}const he=X;function ge(e,t={},n){return Z(e,t,{...n,method:`GET`})}function _e(e,t={},n){return Z(e,t,{...n,method:`HEAD`})}function ve(e,t={},n){return X(e,{...n,params:t,method:`OPTIONS`})}function ye(e,t){return X(e,{...t,method:`DELETE`})}function be(e,t,n){return Q(e,t,{...n,method:`POST`})}function xe(e,t,n){let r=new FormData;for(let e in t)if(Object.prototype.hasOwnProperty.call(t,e)){let n=t[e];n instanceof File||n instanceof Blob?r.append(e,n):r.append(e,String(n))}return Q(e,r,{...n,method:`POST`})}function Se(e,t,n){return Q(e,t,{...n,method:`PUT`})}function Ce(e,t,n){return Q(e,t,{...n,method:`PATCH`})}const $=X;$.create=e=>{let t=new me(e),n=t.request.bind(void 0);return Object.assign(n,me.prototype,t),n},$.get=ge,$.head=_e,$.options=ve,$.delete=ye,$.post=be,$.put=Se,$.patch=Ce,$.upload=xe;var we=$,Te=we;exports.ContentType=V,exports.Method=U,exports.ResponseError=W,exports.StatusCode=H,exports.default=Te,exports.del=ye,exports.get=ge,exports.head=_e,exports.options=ve,exports.patch=Ce,exports.post=be,exports.put=Se,exports.request=he,exports.upload=xe;
|
|
5
5
|
//# sourceMappingURL=index.cjs.map
|
package/dist/es/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
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)=>{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,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},c=(n,r,a)=>(a=n==null?{}:e(i(n)),s(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n)),l=o((exports,t)=>{t.exports=TypeError}),u=o(()=>{}),d=o((exports,t)=>{var n=typeof Map==`function`&&Map.prototype,r=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,`size`):null,i=n&&r&&typeof r.get==`function`?r.get:null,a=n&&Map.prototype.forEach,o=typeof Set==`function`&&Set.prototype,s=Object.getOwnPropertyDescriptor&&o?Object.getOwnPropertyDescriptor(Set.prototype,`size`):null,c=o&&s&&typeof s.get==`function`?s.get:null,l=o&&Set.prototype.forEach,d=typeof WeakMap==`function`&&WeakMap.prototype,f=d?WeakMap.prototype.has:null,p=typeof WeakSet==`function`&&WeakSet.prototype,m=p?WeakSet.prototype.has:null,h=typeof WeakRef==`function`&&WeakRef.prototype,g=h?WeakRef.prototype.deref:null,_=Boolean.prototype.valueOf,v=Object.prototype.toString,y=Function.prototype.toString,b=String.prototype.match,x=String.prototype.slice,S=String.prototype.replace,C=String.prototype.toUpperCase,w=String.prototype.toLowerCase,T=RegExp.prototype.test,E=Array.prototype.concat,D=Array.prototype.join,O=Array.prototype.slice,k=Math.floor,ee=typeof BigInt==`function`?BigInt.prototype.valueOf:null,A=Object.getOwnPropertySymbols,j=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?Symbol.prototype.toString:null,M=typeof Symbol==`function`&&typeof Symbol.iterator==`object`,N=typeof Symbol==`function`&&Symbol.toStringTag&&(typeof Symbol.toStringTag===M||`symbol`)?Symbol.toStringTag:null,te=Object.prototype.propertyIsEnumerable,P=(typeof Reflect==`function`?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function F(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||T.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e==`number`){var r=e<0?-k(-e):k(e);if(r!==e){var i=String(r),a=x.call(t,i.length+1);return S.call(i,n,`$&_`)+`.`+S.call(S.call(a,/([0-9]{3})/g,`$&_`),/_$/,``)}}return S.call(t,n,`$&_`)}var I=u(),L=I.custom,R=le(L)?L:null,z={__proto__:null,double:`"`,single:`'`},B={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};t.exports=function e(t,n,r,o){var s=n||{};if(K(s,`quoteStyle`)&&!K(z,s.quoteStyle))throw TypeError(`option "quoteStyle" must be "single" or "double"`);if(K(s,`maxStringLength`)&&(typeof s.maxStringLength==`number`?s.maxStringLength<0&&s.maxStringLength!==1/0:s.maxStringLength!==null))throw TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var u=K(s,`customInspect`)?s.customInspect:!0;if(typeof u!=`boolean`&&u!==`symbol`)throw TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(K(s,`indent`)&&s.indent!==null&&s.indent!==` `&&!(parseInt(s.indent,10)===s.indent&&s.indent>0))throw TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(K(s,`numericSeparator`)&&typeof s.numericSeparator!=`boolean`)throw TypeError('option "numericSeparator", if provided, must be `true` or `false`');var d=s.numericSeparator;if(t===void 0)return`undefined`;if(t===null)return`null`;if(typeof t==`boolean`)return t?`true`:`false`;if(typeof t==`string`)return X(t,s);if(typeof t==`number`){if(t===0)return 1/0/t>0?`0`:`-0`;var f=String(t);return d?F(t,f):f}if(typeof t==`bigint`){var p=String(t)+`n`;return d?F(t,p):p}var m=s.depth===void 0?5:s.depth;if(r===void 0&&(r=0),r>=m&&m>0&&typeof t==`object`)return ie(t)?`[Array]`:`[Object]`;var h=be(s,r);if(o===void 0)o=[];else if(J(o,t)>=0)return`[Circular]`;function g(t,n,i){if(n&&(o=O.call(o),o.push(n)),i){var a={depth:s.depth};return K(s,`quoteStyle`)&&(a.quoteStyle=s.quoteStyle),e(t,a,r+1,o)}return e(t,s,r+1,o)}if(typeof t==`function`&&!oe(t)){var v=ue(t),y=xe(t,g);return`[Function`+(v?`: `+v:` (anonymous)`)+`]`+(y.length>0?` { `+D.call(y,`, `)+` }`:``)}if(le(t)){var b=M?S.call(String(t),/^(Symbol\(.*\))_[^)]*$/,`$1`):j.call(t);return typeof t==`object`&&!M?Z(b):b}if(he(t)){for(var C=`<`+w.call(String(t.nodeName)),T=t.attributes||[],k=0;k<T.length;k++)C+=` `+T[k].name+`=`+ne(re(T[k].value),`double`,s);return C+=`>`,t.childNodes&&t.childNodes.length&&(C+=`...`),C+=`</`+w.call(String(t.nodeName))+`>`,C}if(ie(t)){if(t.length===0)return`[]`;var A=xe(t,g);return h&&!ye(A)?`[`+Q(A,h)+`]`:`[ `+D.call(A,`, `)+` ]`}if(H(t)){var L=xe(t,g);return!(`cause`in Error.prototype)&&`cause`in t&&!te.call(t,`cause`)?`{ [`+String(t)+`] `+D.call(E.call(`[cause]: `+g(t.cause),L),`, `)+` }`:L.length===0?`[`+String(t)+`]`:`{ [`+String(t)+`] `+D.call(L,`, `)+` }`}if(typeof t==`object`&&u){if(R&&typeof t[R]==`function`&&I)return I(t,{depth:m-r});if(u!==`symbol`&&typeof t.inspect==`function`)return t.inspect()}if(de(t)){var B=[];return a&&a.call(t,function(e,n){B.push(g(n,t,!0)+` => `+g(e,t))}),ve(`Map`,i.call(t),B,h)}if(pe(t)){var V=[];return l&&l.call(t,function(e){V.push(g(e,t))}),ve(`Set`,c.call(t),V,h)}if(Y(t))return _e(`WeakMap`);if(me(t))return _e(`WeakSet`);if(fe(t))return _e(`WeakRef`);if(se(t))return Z(g(Number(t)));if(W(t))return Z(g(ee.call(t)));if(ce(t))return Z(_.call(t));if(U(t))return Z(g(String(t)));if(typeof window<`u`&&t===window)return`{ [object Window] }`;if(typeof globalThis<`u`&&t===globalThis||typeof global<`u`&&t===global)return`{ [object globalThis] }`;if(!ae(t)&&!oe(t)){var G=xe(t,g),ge=P?P(t)===Object.prototype:t instanceof Object||t.constructor===Object,Se=t instanceof Object?``:`null prototype`,Ce=!ge&&N&&Object(t)===t&&N in t?x.call(q(t),8,-1):Se?`Object`:``,we=ge||typeof t.constructor!=`function`?``:t.constructor.name?t.constructor.name+` `:``,Te=we+(Ce||Se?`[`+D.call(E.call([],Ce||[],Se||[]),`: `)+`] `:``);return G.length===0?Te+`{}`:h?Te+`{`+Q(G,h)+`}`:Te+`{ `+D.call(G,`, `)+` }`}return String(t)};function ne(e,t,n){var r=n.quoteStyle||t,i=z[r];return i+e+i}function re(e){return S.call(String(e),/"/g,`"`)}function V(e){return!N||!(typeof e==`object`&&(N in e||e[N]!==void 0))}function ie(e){return q(e)===`[object Array]`&&V(e)}function ae(e){return q(e)===`[object Date]`&&V(e)}function oe(e){return q(e)===`[object RegExp]`&&V(e)}function H(e){return q(e)===`[object Error]`&&V(e)}function U(e){return q(e)===`[object String]`&&V(e)}function se(e){return q(e)===`[object Number]`&&V(e)}function ce(e){return q(e)===`[object Boolean]`&&V(e)}function le(e){if(M)return e&&typeof e==`object`&&e instanceof Symbol;if(typeof e==`symbol`)return!0;if(!e||typeof e!=`object`||!j)return!1;try{return j.call(e),!0}catch{}return!1}function W(e){if(!e||typeof e!=`object`||!ee)return!1;try{return ee.call(e),!0}catch{}return!1}var G=Object.prototype.hasOwnProperty||function(e){return e in this};function K(e,t){return G.call(e,t)}function q(e){return v.call(e)}function ue(e){if(e.name)return e.name;var t=b.call(y.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function J(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function de(e){if(!i||!e||typeof e!=`object`)return!1;try{i.call(e);try{c.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function Y(e){if(!f||!e||typeof e!=`object`)return!1;try{f.call(e,f);try{m.call(e,m)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function fe(e){if(!g||!e||typeof e!=`object`)return!1;try{return g.call(e),!0}catch{}return!1}function pe(e){if(!c||!e||typeof e!=`object`)return!1;try{c.call(e);try{i.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function me(e){if(!m||!e||typeof e!=`object`)return!1;try{m.call(e,m);try{f.call(e,f)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function he(e){return!e||typeof e!=`object`?!1:typeof HTMLElement<`u`&&e instanceof HTMLElement?!0:typeof e.nodeName==`string`&&typeof e.getAttribute==`function`}function X(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r=`... `+n+` more character`+(n>1?`s`:``);return X(x.call(e,0,t.maxStringLength),t)+r}var i=B[t.quoteStyle||`single`];i.lastIndex=0;var a=S.call(S.call(e,i,`\\$1`),/[\x00-\x1f]/g,ge);return ne(a,`single`,t)}function ge(e){var t=e.charCodeAt(0),n={8:`b`,9:`t`,10:`n`,12:`f`,13:`r`}[t];return n?`\\`+n:`\\x`+(t<16?`0`:``)+C.call(t.toString(16))}function Z(e){return`Object(`+e+`)`}function _e(e){return e+` { ? }`}function ve(e,t,n,r){var i=r?Q(n,r):D.call(n,`, `);return e+` (`+t+`) {`+i+`}`}function ye(e){for(var t=0;t<e.length;t++)if(J(e[t],`
|
|
2
2
|
`)>=0)return!1;return!0}function be(e,t){var n;if(e.indent===` `)n=` `;else if(typeof e.indent==`number`&&e.indent>0)n=D.call(Array(e.indent+1),` `);else return null;return{base:n,prev:D.call(Array(t+1),n)}}function Q(e,t){if(e.length===0)return``;var n=`
|
|
3
3
|
`+t.prev+t.base;return n+D.call(e,`,`+n)+`
|
|
4
|
-
`+t.prev}function xe(e,t){var n=ie(e),r=[];if(n){r.length=e.length;for(var i=0;i<e.length;i++)r[i]=K(e,i)?t(e[i],e):``}var a=typeof A==`function`?A(e):[],o;if(M){o={};for(var s=0;s<a.length;s++)o[`$`+a[s]]=a[s]}for(var c in e){if(!K(e,c)||n&&String(Number(c))===c&&c<e.length||M&&o[`$`+c]instanceof Symbol)continue;T.call(/[^\w$]/,c)?r.push(t(c,e)+`: `+t(e[c],e)):r.push(c+`: `+t(e[c],e))}if(typeof A==`function`)for(var l=0;l<a.length;l++)te.call(e,a[l])&&r.push(`[`+t(a[l])+`]: `+t(e[a[l]],e));return r}}),f=o((exports,t)=>{var n=d(),r=l(),i=function(e,t,n){for(var r=e,i;(i=r.next)!=null;r=i)if(i.key===t)return r.next=i.next,n||(i.next=e.next,e.next=i),i},a=function(e,t){if(e){var n=i(e,t);return n&&n.value}},o=function(e,t,n){var r=i(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}},s=function(e,t){return e?!!i(e,t):!1},c=function(e,t){if(e)return i(e,t,!0)};t.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new r(`Side channel does not contain `+n(e))},delete:function(t){var n=e&&e.next,r=c(e,t);return r&&n&&n===r&&(e=void 0),!!r},get:function(t){return a(e,t)},has:function(t){return s(e,t)},set:function(t,n){e||={next:void 0},o(e,t,n)}};return t}}),p=o((exports,t)=>{t.exports=Object}),m=o((exports,t)=>{t.exports=Error}),h=o((exports,t)=>{t.exports=EvalError}),g=o((exports,t)=>{t.exports=RangeError}),_=o((exports,t)=>{t.exports=ReferenceError}),v=o((exports,t)=>{t.exports=SyntaxError}),y=o((exports,t)=>{t.exports=URIError}),b=o((exports,t)=>{t.exports=Math.abs}),x=o((exports,t)=>{t.exports=Math.floor}),S=o((exports,t)=>{t.exports=Math.max}),C=o((exports,t)=>{t.exports=Math.min}),w=o((exports,t)=>{t.exports=Math.pow}),T=o((exports,t)=>{t.exports=Math.round}),E=o((exports,t)=>{t.exports=Number.isNaN||function(e){return e!==e}}),D=o((exports,t)=>{var n=E();t.exports=function(e){return n(e)||e===0?e:e<0?-1:1}}),O=o((exports,t)=>{t.exports=Object.getOwnPropertyDescriptor}),k=o((exports,t)=>{var n=O();if(n)try{n([],`length`)}catch{n=null}t.exports=n}),ee=o((exports,t)=>{var n=Object.defineProperty||!1;if(n)try{n({},`a`,{value:1})}catch{n=!1}t.exports=n}),A=o((exports,t)=>{t.exports=function(){if(typeof Symbol!=`function`||typeof Object.getOwnPropertySymbols!=`function`)return!1;if(typeof Symbol.iterator==`symbol`)return!0;var e={},t=Symbol(`test`),n=Object(t);if(typeof t==`string`||Object.prototype.toString.call(t)!==`[object Symbol]`||Object.prototype.toString.call(n)!==`[object Symbol]`)return!1;var r=42;for(var i in e[t]=r,e)return!1;if(typeof Object.keys==`function`&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames==`function`&&Object.getOwnPropertyNames(e).length!==0)return!1;var a=Object.getOwnPropertySymbols(e);if(a.length!==1||a[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor==`function`){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==r||o.enumerable!==!0)return!1}return!0}}),j=o((exports,t)=>{var n=typeof Symbol<`u`&&Symbol,r=A();t.exports=function(){return typeof n!=`function`||typeof Symbol!=`function`||typeof n(`foo`)!=`symbol`||typeof Symbol(`bar`)!=`symbol`?!1:r()}}),M=o((exports,t)=>{t.exports=typeof Reflect<`u`&&Reflect.getPrototypeOf||null}),N=o((exports,t)=>{var n=p();t.exports=n.getPrototypeOf||null}),te=o((exports,t)=>{var n=`Function.prototype.bind called on incompatible `,r=Object.prototype.toString,i=Math.max,a=`[object Function]`,o=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var i=0;i<t.length;i+=1)n[i+e.length]=t[i];return n},s=function(e,t){for(var n=[],r=t||0,i=0;r<e.length;r+=1,i+=1)n[i]=e[r];return n},c=function(e,t){for(var n=``,r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n};t.exports=function(e){var t=this;if(typeof t!=`function`||r.apply(t)!==a)throw TypeError(n+t);for(var l=s(arguments,1),u,d=function(){if(this instanceof u){var n=t.apply(this,o(l,arguments));return Object(n)===n?n:this}return t.apply(e,o(l,arguments))},f=i(0,t.length-l.length),p=[],m=0;m<f;m++)p[m]=`$`+m;if(u=Function(`binder`,`return function (`+c(p,`,`)+`){ return binder.apply(this,arguments); }`)(d),t.prototype){var h=function(){};h.prototype=t.prototype,u.prototype=new h,h.prototype=null}return u}}),P=o((exports,t)=>{var n=te();t.exports=Function.prototype.bind||n}),F=o((exports,t)=>{t.exports=Function.prototype.call}),I=o((exports,t)=>{t.exports=Function.prototype.apply}),L=o((exports,t)=>{t.exports=typeof Reflect<`u`&&Reflect&&Reflect.apply}),R=o((exports,t)=>{var n=P(),r=I(),i=F(),a=L();t.exports=a||n.call(i,r)}),z=o((exports,t)=>{var n=P(),r=l(),i=F(),a=R();t.exports=function(e){if(e.length<1||typeof e[0]!=`function`)throw new r(`a function is required`);return a(n,i,e)}}),B=o((exports,t)=>{var n=z(),r=k(),i;try{i=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!=`object`||!(`code`in e)||e.code!==`ERR_PROTO_ACCESS`)throw e}var a=!!i&&r&&r(Object.prototype,`__proto__`),o=Object,s=o.getPrototypeOf;t.exports=a&&typeof a.get==`function`?n([a.get]):typeof s==`function`?function(e){return s(e==null?e:o(e))}:!1}),ne=o((exports,t)=>{var n=M(),r=N(),i=B();t.exports=n?function(e){return n(e)}:r?function(e){if(!e||typeof e!=`object`&&typeof e!=`function`)throw TypeError(`getProto: not an object`);return r(e)}:i?function(e){return i(e)}:null}),re=o((exports,t)=>{var n=Function.prototype.call,r=Object.prototype.hasOwnProperty,i=P();t.exports=i.call(n,r)}),V=o((exports,t)=>{var n,r=p(),i=m(),a=h(),o=g(),s=_(),c=v(),u=l(),d=y(),f=b(),E=x(),O=S(),A=C(),te=w(),L=T(),R=D(),z=Function,B=function(e){try{return z(`"use strict"; return (`+e+`).constructor;`)()}catch{}},V=k(),ie=ee(),ae=function(){throw new u},oe=V?function(){try{return arguments.callee,ae}catch{try{return V(arguments,`callee`).get}catch{return ae}}}():ae,H=j()(),U=ne(),se=N(),ce=M(),le=I(),W=F(),G={},K=typeof Uint8Array>`u`||!U?n:U(Uint8Array),q={__proto__:null,"%AggregateError%":typeof AggregateError>`u`?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>`u`?n:ArrayBuffer,"%ArrayIteratorPrototype%":H&&U?U([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":G,"%AsyncGenerator%":G,"%AsyncGeneratorFunction%":G,"%AsyncIteratorPrototype%":G,"%Atomics%":typeof Atomics>`u`?n:Atomics,"%BigInt%":typeof BigInt>`u`?n:BigInt,"%BigInt64Array%":typeof BigInt64Array>`u`?n:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>`u`?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>`u`?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":a,"%Float16Array%":typeof Float16Array>`u`?n:Float16Array,"%Float32Array%":typeof Float32Array>`u`?n:Float32Array,"%Float64Array%":typeof Float64Array>`u`?n:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>`u`?n:FinalizationRegistry,"%Function%":z,"%GeneratorFunction%":G,"%Int8Array%":typeof Int8Array>`u`?n:Int8Array,"%Int16Array%":typeof Int16Array>`u`?n:Int16Array,"%Int32Array%":typeof Int32Array>`u`?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":H&&U?U(U([][Symbol.iterator]())):n,"%JSON%":typeof JSON==`object`?JSON:n,"%Map%":typeof Map>`u`?n:Map,"%MapIteratorPrototype%":typeof Map>`u`||!H||!U?n:U(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":r,"%Object.getOwnPropertyDescriptor%":V,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>`u`?n:Promise,"%Proxy%":typeof Proxy>`u`?n:Proxy,"%RangeError%":o,"%ReferenceError%":s,"%Reflect%":typeof Reflect>`u`?n:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>`u`?n:Set,"%SetIteratorPrototype%":typeof Set>`u`||!H||!U?n:U(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>`u`?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":H&&U?U(``[Symbol.iterator]()):n,"%Symbol%":H?Symbol:n,"%SyntaxError%":c,"%ThrowTypeError%":oe,"%TypedArray%":K,"%TypeError%":u,"%Uint8Array%":typeof Uint8Array>`u`?n:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>`u`?n:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>`u`?n:Uint16Array,"%Uint32Array%":typeof Uint32Array>`u`?n:Uint32Array,"%URIError%":d,"%WeakMap%":typeof WeakMap>`u`?n:WeakMap,"%WeakRef%":typeof WeakRef>`u`?n:WeakRef,"%WeakSet%":typeof WeakSet>`u`?n:WeakSet,"%Function.prototype.call%":W,"%Function.prototype.apply%":le,"%Object.defineProperty%":ie,"%Object.getPrototypeOf%":se,"%Math.abs%":f,"%Math.floor%":E,"%Math.max%":O,"%Math.min%":A,"%Math.pow%":te,"%Math.round%":L,"%Math.sign%":R,"%Reflect.getPrototypeOf%":ce};if(U)try{null.error}catch(e){var ue=U(U(e));q[`%Error.prototype%`]=ue}var J=function e(t){var n;if(t===`%AsyncFunction%`)n=B(`async function () {}`);else if(t===`%GeneratorFunction%`)n=B(`function* () {}`);else if(t===`%AsyncGeneratorFunction%`)n=B(`async function* () {}`);else if(t===`%AsyncGenerator%`){var r=e(`%AsyncGeneratorFunction%`);r&&(n=r.prototype)}else if(t===`%AsyncIteratorPrototype%`){var i=e(`%AsyncGenerator%`);i&&U&&(n=U(i.prototype))}return q[t]=n,n},de={__proto__:null,"%ArrayBufferPrototype%":[`ArrayBuffer`,`prototype`],"%ArrayPrototype%":[`Array`,`prototype`],"%ArrayProto_entries%":[`Array`,`prototype`,`entries`],"%ArrayProto_forEach%":[`Array`,`prototype`,`forEach`],"%ArrayProto_keys%":[`Array`,`prototype`,`keys`],"%ArrayProto_values%":[`Array`,`prototype`,`values`],"%AsyncFunctionPrototype%":[`AsyncFunction`,`prototype`],"%AsyncGenerator%":[`AsyncGeneratorFunction`,`prototype`],"%AsyncGeneratorPrototype%":[`AsyncGeneratorFunction`,`prototype`,`prototype`],"%BooleanPrototype%":[`Boolean`,`prototype`],"%DataViewPrototype%":[`DataView`,`prototype`],"%DatePrototype%":[`Date`,`prototype`],"%ErrorPrototype%":[`Error`,`prototype`],"%EvalErrorPrototype%":[`EvalError`,`prototype`],"%Float32ArrayPrototype%":[`Float32Array`,`prototype`],"%Float64ArrayPrototype%":[`Float64Array`,`prototype`],"%FunctionPrototype%":[`Function`,`prototype`],"%Generator%":[`GeneratorFunction`,`prototype`],"%GeneratorPrototype%":[`GeneratorFunction`,`prototype`,`prototype`],"%Int8ArrayPrototype%":[`Int8Array`,`prototype`],"%Int16ArrayPrototype%":[`Int16Array`,`prototype`],"%Int32ArrayPrototype%":[`Int32Array`,`prototype`],"%JSONParse%":[`JSON`,`parse`],"%JSONStringify%":[`JSON`,`stringify`],"%MapPrototype%":[`Map`,`prototype`],"%NumberPrototype%":[`Number`,`prototype`],"%ObjectPrototype%":[`Object`,`prototype`],"%ObjProto_toString%":[`Object`,`prototype`,`toString`],"%ObjProto_valueOf%":[`Object`,`prototype`,`valueOf`],"%PromisePrototype%":[`Promise`,`prototype`],"%PromiseProto_then%":[`Promise`,`prototype`,`then`],"%Promise_all%":[`Promise`,`all`],"%Promise_reject%":[`Promise`,`reject`],"%Promise_resolve%":[`Promise`,`resolve`],"%RangeErrorPrototype%":[`RangeError`,`prototype`],"%ReferenceErrorPrototype%":[`ReferenceError`,`prototype`],"%RegExpPrototype%":[`RegExp`,`prototype`],"%SetPrototype%":[`Set`,`prototype`],"%SharedArrayBufferPrototype%":[`SharedArrayBuffer`,`prototype`],"%StringPrototype%":[`String`,`prototype`],"%SymbolPrototype%":[`Symbol`,`prototype`],"%SyntaxErrorPrototype%":[`SyntaxError`,`prototype`],"%TypedArrayPrototype%":[`TypedArray`,`prototype`],"%TypeErrorPrototype%":[`TypeError`,`prototype`],"%Uint8ArrayPrototype%":[`Uint8Array`,`prototype`],"%Uint8ClampedArrayPrototype%":[`Uint8ClampedArray`,`prototype`],"%Uint16ArrayPrototype%":[`Uint16Array`,`prototype`],"%Uint32ArrayPrototype%":[`Uint32Array`,`prototype`],"%URIErrorPrototype%":[`URIError`,`prototype`],"%WeakMapPrototype%":[`WeakMap`,`prototype`],"%WeakSetPrototype%":[`WeakSet`,`prototype`]},Y=P(),fe=re(),pe=Y.call(W,Array.prototype.concat),me=Y.call(le,Array.prototype.splice),he=Y.call(W,String.prototype.replace),X=Y.call(W,String.prototype.slice),ge=Y.call(W,RegExp.prototype.exec),Z=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,_e=/\\(\\)?/g,ve=function(e){var t=X(e,0,1),n=X(e,-1);if(t===`%`&&n!==`%`)throw new c("invalid intrinsic syntax, expected closing `%`");if(n===`%`&&t!==`%`)throw new c("invalid intrinsic syntax, expected opening `%`");var r=[];return he(e,Z,function(e,t,n,i){r[r.length]=n?he(i,_e,`$1`):t||e}),r},ye=function(e,t){var n=e,r;if(fe(de,n)&&(r=de[n],n=`%`+r[0]+`%`),fe(q,n)){var i=q[n];if(i===G&&(i=J(n)),i===void 0&&!t)throw new u(`intrinsic `+e+` exists, but is not available. Please file an issue!`);return{alias:r,name:n,value:i}}throw new c(`intrinsic `+e+` does not exist!`)};t.exports=function(e,t){if(typeof e!=`string`||e.length===0)throw new u(`intrinsic name must be a non-empty string`);if(arguments.length>1&&typeof t!=`boolean`)throw new u(`"allowMissing" argument must be a boolean`);if(ge(/^%?[^%]*%?$/,e)===null)throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=ve(e),r=n.length>0?n[0]:``,i=ye(`%`+r+`%`,t),a=i.name,o=i.value,s=!1,l=i.alias;l&&(r=l[0],me(n,pe([0,1],l)));for(var d=1,f=!0;d<n.length;d+=1){var p=n[d],m=X(p,0,1),h=X(p,-1);if((m===`"`||m===`'`||m==="`"||h===`"`||h===`'`||h==="`")&&m!==h)throw new c(`property names with quotes must have matching quotes`);if((p===`constructor`||!f)&&(s=!0),r+=`.`+p,a=`%`+r+`%`,fe(q,a))o=q[a];else if(o!=null){if(!(p in o)){if(!t)throw new u(`base intrinsic for `+e+` exists, but the property is not available.`);return}if(V&&d+1>=n.length){var g=V(o,p);f=!!g,o=f&&`get`in g&&!(`originalValue`in g.get)?g.get:o[p]}else f=fe(o,p),o=o[p];f&&!s&&(q[a]=o)}}return o}}),ie=o((exports,t)=>{var n=V(),r=z(),i=r([n(`%String.prototype.indexOf%`)]);t.exports=function(e,t){var a=n(e,!!t);return typeof a==`function`&&i(e,`.prototype.`)>-1?r([a]):a}}),ae=o((exports,t)=>{var n=V(),r=ie(),i=d(),a=l(),o=n(`%Map%`,!0),s=r(`Map.prototype.get`,!0),c=r(`Map.prototype.set`,!0),u=r(`Map.prototype.has`,!0),f=r(`Map.prototype.delete`,!0),p=r(`Map.prototype.size`,!0);t.exports=!!o&&function(){var e,t={assert:function(e){if(!t.has(e))throw new a(`Side channel does not contain `+i(e))},delete:function(t){if(e){var n=f(e,t);return p(e)===0&&(e=void 0),n}return!1},get:function(t){if(e)return s(e,t)},has:function(t){return e?u(e,t):!1},set:function(t,n){e||=new o,c(e,t,n)}};return t}}),oe=o((exports,t)=>{var n=V(),r=ie(),i=d(),a=ae(),o=l(),s=n(`%WeakMap%`,!0),c=r(`WeakMap.prototype.get`,!0),u=r(`WeakMap.prototype.set`,!0),f=r(`WeakMap.prototype.has`,!0),p=r(`WeakMap.prototype.delete`,!0);t.exports=s?function(){var e,t,n={assert:function(e){if(!n.has(e))throw new o(`Side channel does not contain `+i(e))},delete:function(n){if(s&&n&&(typeof n==`object`||typeof n==`function`)){if(e)return p(e,n)}else if(a&&t)return t.delete(n);return!1},get:function(n){return s&&n&&(typeof n==`object`||typeof n==`function`)&&e?c(e,n):t&&t.get(n)},has:function(n){return s&&n&&(typeof n==`object`||typeof n==`function`)&&e?f(e,n):!!t&&t.has(n)},set:function(n,r){s&&n&&(typeof n==`object`||typeof n==`function`)?(e||=new s,u(e,n,r)):a&&(t||=a(),t.set(n,r))}};return n}:a}),H=o((exports,t)=>{var n=l(),r=d(),i=f(),a=ae(),o=oe(),s=o||a||i;t.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new n(`Side channel does not contain `+r(e))},delete:function(t){return!!e&&e.delete(t)},get:function(t){return e&&e.get(t)},has:function(t){return!!e&&e.has(t)},set:function(t,n){e||=s(),e.set(t,n)}};return t}}),U=o((exports,t)=>{var n=String.prototype.replace,r=/%20/g,i={RFC1738:`RFC1738`,RFC3986:`RFC3986`};t.exports={default:i.RFC3986,formatters:{RFC1738:function(e){return n.call(e,r,`+`)},RFC3986:function(e){return String(e)}},RFC1738:i.RFC1738,RFC3986:i.RFC3986}}),se=o((exports,t)=>{var n=U(),r=Object.prototype.hasOwnProperty,i=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push(`%`+((t<16?`0`:``)+t.toString(16)).toUpperCase());return e}(),o=function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(i(n)){for(var r=[],a=0;a<n.length;++a)n[a]!==void 0&&r.push(n[a]);t.obj[t.prop]=r}}},s=function(e,t){for(var n=t&&t.plainObjects?{__proto__:null}:{},r=0;r<e.length;++r)e[r]!==void 0&&(n[r]=e[r]);return n},c=function e(t,n,a){if(!n)return t;if(typeof n!=`object`&&typeof n!=`function`){if(i(t))t.push(n);else if(t&&typeof t==`object`)(a&&(a.plainObjects||a.allowPrototypes)||!r.call(Object.prototype,n))&&(t[n]=!0);else return[t,n];return t}if(!t||typeof t!=`object`)return[t].concat(n);var o=t;return i(t)&&!i(n)&&(o=s(t,a)),i(t)&&i(n)?(n.forEach(function(n,i){if(r.call(t,i)){var o=t[i];o&&typeof o==`object`&&n&&typeof n==`object`?t[i]=e(o,n,a):t.push(n)}else t[i]=n}),t):Object.keys(n).reduce(function(t,i){var o=n[i];return r.call(t,i)?t[i]=e(t[i],o,a):t[i]=o,t},o)},l=function(e,t){return Object.keys(t).reduce(function(e,n){return e[n]=t[n],e},e)},u=function(e,t,n){var r=e.replace(/\+/g,` `);if(n===`iso-8859-1`)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch{return r}},d=1024,f=function(e,t,r,i,o){if(e.length===0)return e;var s=e;if(typeof e==`symbol`?s=Symbol.prototype.toString.call(e):typeof e!=`string`&&(s=String(e)),r===`iso-8859-1`)return escape(s).replace(/%u[0-9a-f]{4}/gi,function(e){return`%26%23`+parseInt(e.slice(2),16)+`%3B`});for(var c=``,l=0;l<s.length;l+=d){for(var u=s.length>=d?s.slice(l,l+d):s,f=[],p=0;p<u.length;++p){var m=u.charCodeAt(p);if(m===45||m===46||m===95||m===126||m>=48&&m<=57||m>=65&&m<=90||m>=97&&m<=122||o===n.RFC1738&&(m===40||m===41)){f[f.length]=u.charAt(p);continue}if(m<128){f[f.length]=a[m];continue}if(m<2048){f[f.length]=a[192|m>>6]+a[128|m&63];continue}if(m<55296||m>=57344){f[f.length]=a[224|m>>12]+a[128|m>>6&63]+a[128|m&63];continue}p+=1,m=65536+((m&1023)<<10|u.charCodeAt(p)&1023),f[f.length]=a[240|m>>18]+a[128|m>>12&63]+a[128|m>>6&63]+a[128|m&63]}c+=f.join(``)}return c},p=function(e){for(var t=[{obj:{o:e},prop:`o`}],n=[],r=0;r<t.length;++r)for(var i=t[r],a=i.obj[i.prop],s=Object.keys(a),c=0;c<s.length;++c){var l=s[c],u=a[l];typeof u==`object`&&u&&n.indexOf(u)===-1&&(t.push({obj:a,prop:l}),n.push(u))}return o(t),e},m=function(e){return Object.prototype.toString.call(e)===`[object RegExp]`},h=function(e){return!e||typeof e!=`object`?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},g=function(e,t){return[].concat(e,t)},_=function(e,t){if(i(e)){for(var n=[],r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)};t.exports={arrayToObject:s,assign:l,combine:g,compact:p,decode:u,encode:f,isBuffer:h,isRegExp:m,maybeMap:_,merge:c}}),ce=o((exports,t)=>{var n=H(),r=se(),i=U(),a=Object.prototype.hasOwnProperty,o={brackets:function(e){return e+`[]`},comma:`comma`,indices:function(e,t){return e+`[`+t+`]`},repeat:function(e){return e}},s=Array.isArray,c=Array.prototype.push,l=function(e,t){c.apply(e,s(t)?t:[t])},u=Date.prototype.toISOString,d=i.default,f={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:`indices`,charset:`utf-8`,charsetSentinel:!1,commaRoundTrip:!1,delimiter:`&`,encode:!0,encodeDotInKeys:!1,encoder:r.encode,encodeValuesOnly:!1,filter:void 0,format:d,formatter:i.formatters[d],indices:!1,serializeDate:function(e){return u.call(e)},skipNulls:!1,strictNullHandling:!1},p=function(e){return typeof e==`string`||typeof e==`number`||typeof e==`boolean`||typeof e==`symbol`||typeof e==`bigint`},m={},h=function e(t,i,a,o,c,u,d,h,g,_,v,y,b,x,S,C,w,T){for(var E=t,D=T,O=0,k=!1;(D=D.get(m))!==void 0&&!k;){var ee=D.get(t);if(O+=1,ee!==void 0){if(ee===O)throw RangeError(`Cyclic object value`);k=!0}D.get(m)===void 0&&(O=0)}if(typeof _==`function`?E=_(i,E):E instanceof Date?E=b(E):a===`comma`&&s(E)&&(E=r.maybeMap(E,function(e){return e instanceof Date?b(e):e})),E===null){if(u)return g&&!C?g(i,f.encoder,w,`key`,x):i;E=``}if(p(E)||r.isBuffer(E)){if(g){var A=C?i:g(i,f.encoder,w,`key`,x);return[S(A)+`=`+S(g(E,f.encoder,w,`value`,x))]}return[S(i)+`=`+S(String(E))]}var j=[];if(E===void 0)return j;var M;if(a===`comma`&&s(E))C&&g&&(E=r.maybeMap(E,g)),M=[{value:E.length>0?E.join(`,`)||null:void 0}];else if(s(_))M=_;else{var N=Object.keys(E);M=v?N.sort(v):N}var te=h?String(i).replace(/\./g,`%2E`):String(i),P=o&&s(E)&&E.length===1?te+`[]`:te;if(c&&s(E)&&E.length===0)return P+`[]`;for(var F=0;F<M.length;++F){var I=M[F],L=typeof I==`object`&&I&&I.value!==void 0?I.value:E[I];if(!(d&&L===null)){var R=y&&h?String(I).replace(/\./g,`%2E`):String(I),z=s(E)?typeof a==`function`?a(P,R):P:P+(y?`.`+R:`[`+R+`]`);T.set(t,O);var B=n();B.set(m,T),l(j,e(L,z,a,o,c,u,d,h,a===`comma`&&C&&s(E)?null:g,_,v,y,b,x,S,C,w,B))}}return j},g=function(e){if(!e)return f;if(e.allowEmptyArrays!==void 0&&typeof e.allowEmptyArrays!=`boolean`)throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(e.encodeDotInKeys!==void 0&&typeof e.encodeDotInKeys!=`boolean`)throw TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(e.encoder!==null&&e.encoder!==void 0&&typeof e.encoder!=`function`)throw TypeError(`Encoder has to be a function.`);var t=e.charset||f.charset;if(e.charset!==void 0&&e.charset!==`utf-8`&&e.charset!==`iso-8859-1`)throw TypeError(`The charset option must be either utf-8, iso-8859-1, or undefined`);var n=i.default;if(e.format!==void 0){if(!a.call(i.formatters,e.format))throw TypeError(`Unknown format option provided.`);n=e.format}var r=i.formatters[n],c=f.filter;(typeof e.filter==`function`||s(e.filter))&&(c=e.filter);var l;if(l=e.arrayFormat in o?e.arrayFormat:`indices`in e?e.indices?`indices`:`repeat`:f.arrayFormat,`commaRoundTrip`in e&&typeof e.commaRoundTrip!=`boolean`)throw TypeError("`commaRoundTrip` must be a boolean, or absent");var u=e.allowDots===void 0?e.encodeDotInKeys===!0?!0:f.allowDots:!!e.allowDots;return{addQueryPrefix:typeof e.addQueryPrefix==`boolean`?e.addQueryPrefix:f.addQueryPrefix,allowDots:u,allowEmptyArrays:typeof e.allowEmptyArrays==`boolean`?!!e.allowEmptyArrays:f.allowEmptyArrays,arrayFormat:l,charset:t,charsetSentinel:typeof e.charsetSentinel==`boolean`?e.charsetSentinel:f.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:e.delimiter===void 0?f.delimiter:e.delimiter,encode:typeof e.encode==`boolean`?e.encode:f.encode,encodeDotInKeys:typeof e.encodeDotInKeys==`boolean`?e.encodeDotInKeys:f.encodeDotInKeys,encoder:typeof e.encoder==`function`?e.encoder:f.encoder,encodeValuesOnly:typeof e.encodeValuesOnly==`boolean`?e.encodeValuesOnly:f.encodeValuesOnly,filter:c,format:n,formatter:r,serializeDate:typeof e.serializeDate==`function`?e.serializeDate:f.serializeDate,skipNulls:typeof e.skipNulls==`boolean`?e.skipNulls:f.skipNulls,sort:typeof e.sort==`function`?e.sort:null,strictNullHandling:typeof e.strictNullHandling==`boolean`?e.strictNullHandling:f.strictNullHandling}};t.exports=function(e,t){var r=e,i=g(t),a,c;typeof i.filter==`function`?(c=i.filter,r=c(``,r)):s(i.filter)&&(c=i.filter,a=c);var u=[];if(typeof r!=`object`||!r)return``;var d=o[i.arrayFormat],f=d===`comma`&&i.commaRoundTrip;a||=Object.keys(r),i.sort&&a.sort(i.sort);for(var p=n(),m=0;m<a.length;++m){var _=a[m],v=r[_];i.skipNulls&&v===null||l(u,h(v,_,d,f,i.allowEmptyArrays,i.strictNullHandling,i.skipNulls,i.encodeDotInKeys,i.encode?i.encoder:null,i.filter,i.sort,i.allowDots,i.serializeDate,i.format,i.formatter,i.encodeValuesOnly,i.charset,p))}var y=u.join(i.delimiter),b=i.addQueryPrefix===!0?`?`:``;return i.charsetSentinel&&(i.charset===`iso-8859-1`?b+=`utf8=%26%2310003%3B&`:b+=`utf8=%E2%9C%93&`),y.length>0?b+y:``}}),le=o((exports,t)=>{var n=se(),r=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:`utf-8`,charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:n.decode,delimiter:`&`,depth:5,duplicates:`combine`,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},o=function(e){return e.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},s=function(e,t,n){if(e&&typeof e==`string`&&t.comma&&e.indexOf(`,`)>-1)return e.split(`,`);if(t.throwOnLimitExceeded&&n>=t.arrayLimit)throw RangeError(`Array limit exceeded. Only `+t.arrayLimit+` element`+(t.arrayLimit===1?``:`s`)+` allowed in an array.`);return e},c=`utf8=%26%2310003%3B`,l=`utf8=%E2%9C%93`,u=function(e,t){var u={__proto__:null},d=t.ignoreQueryPrefix?e.replace(/^\?/,``):e;d=d.replace(/%5B/gi,`[`).replace(/%5D/gi,`]`);var f=t.parameterLimit===1/0?void 0:t.parameterLimit,p=d.split(t.delimiter,t.throwOnLimitExceeded?f+1:f);if(t.throwOnLimitExceeded&&p.length>f)throw RangeError(`Parameter limit exceeded. Only `+f+` parameter`+(f===1?``:`s`)+` allowed.`);var m=-1,h,g=t.charset;if(t.charsetSentinel)for(h=0;h<p.length;++h)p[h].indexOf(`utf8=`)===0&&(p[h]===l?g=`utf-8`:p[h]===c&&(g=`iso-8859-1`),m=h,h=p.length);for(h=0;h<p.length;++h)if(h!==m){var _=p[h],v=_.indexOf(`]=`),y=v===-1?_.indexOf(`=`):v+1,b,x;y===-1?(b=t.decoder(_,a.decoder,g,`key`),x=t.strictNullHandling?null:``):(b=t.decoder(_.slice(0,y),a.decoder,g,`key`),x=n.maybeMap(s(_.slice(y+1),t,i(u[b])?u[b].length:0),function(e){return t.decoder(e,a.decoder,g,`value`)})),x&&t.interpretNumericEntities&&g===`iso-8859-1`&&(x=o(String(x))),_.indexOf(`[]=`)>-1&&(x=i(x)?[x]:x);var S=r.call(u,b);S&&t.duplicates===`combine`?u[b]=n.combine(u[b],x):(!S||t.duplicates===`last`)&&(u[b]=x)}return u},d=function(e,t,r,i){var a=0;if(e.length>0&&e[e.length-1]===`[]`){var o=e.slice(0,-1).join(``);a=Array.isArray(t)&&t[o]?t[o].length:0}for(var c=i?t:s(t,r,a),l=e.length-1;l>=0;--l){var u,d=e[l];if(d===`[]`&&r.parseArrays)u=r.allowEmptyArrays&&(c===``||r.strictNullHandling&&c===null)?[]:n.combine([],c);else{u=r.plainObjects?{__proto__:null}:{};var f=d.charAt(0)===`[`&&d.charAt(d.length-1)===`]`?d.slice(1,-1):d,p=r.decodeDotInKeys?f.replace(/%2E/g,`.`):f,m=parseInt(p,10);!r.parseArrays&&p===``?u={0:c}:!isNaN(m)&&d!==p&&String(m)===p&&m>=0&&r.parseArrays&&m<=r.arrayLimit?(u=[],u[m]=c):p!==`__proto__`&&(u[p]=c)}c=u}return c},f=function(e,t,n,i){if(e){var a=n.allowDots?e.replace(/\.([^.[]+)/g,`[$1]`):e,o=/(\[[^[\]]*])/,s=/(\[[^[\]]*])/g,c=n.depth>0&&o.exec(a),l=c?a.slice(0,c.index):a,u=[];if(l){if(!n.plainObjects&&r.call(Object.prototype,l)&&!n.allowPrototypes)return;u.push(l)}for(var f=0;n.depth>0&&(c=s.exec(a))!==null&&f<n.depth;){if(f+=1,!n.plainObjects&&r.call(Object.prototype,c[1].slice(1,-1))&&!n.allowPrototypes)return;u.push(c[1])}if(c){if(n.strictDepth===!0)throw RangeError(`Input depth exceeded depth option of `+n.depth+` and strictDepth is true`);u.push(`[`+a.slice(c.index)+`]`)}return d(u,t,n,i)}},p=function(e){if(!e)return a;if(e.allowEmptyArrays!==void 0&&typeof e.allowEmptyArrays!=`boolean`)throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(e.decodeDotInKeys!==void 0&&typeof e.decodeDotInKeys!=`boolean`)throw TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(e.decoder!==null&&e.decoder!==void 0&&typeof e.decoder!=`function`)throw TypeError(`Decoder has to be a function.`);if(e.charset!==void 0&&e.charset!==`utf-8`&&e.charset!==`iso-8859-1`)throw TypeError(`The charset option must be either utf-8, iso-8859-1, or undefined`);if(e.throwOnLimitExceeded!==void 0&&typeof e.throwOnLimitExceeded!=`boolean`)throw TypeError("`throwOnLimitExceeded` option must be a boolean");var t=e.charset===void 0?a.charset:e.charset,r=e.duplicates===void 0?a.duplicates:e.duplicates;if(r!==`combine`&&r!==`first`&&r!==`last`)throw TypeError(`The duplicates option must be either combine, first, or last`);var i=e.allowDots===void 0?e.decodeDotInKeys===!0?!0:a.allowDots:!!e.allowDots;return{allowDots:i,allowEmptyArrays:typeof e.allowEmptyArrays==`boolean`?!!e.allowEmptyArrays:a.allowEmptyArrays,allowPrototypes:typeof e.allowPrototypes==`boolean`?e.allowPrototypes:a.allowPrototypes,allowSparse:typeof e.allowSparse==`boolean`?e.allowSparse:a.allowSparse,arrayLimit:typeof e.arrayLimit==`number`?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:typeof e.charsetSentinel==`boolean`?e.charsetSentinel:a.charsetSentinel,comma:typeof e.comma==`boolean`?e.comma:a.comma,decodeDotInKeys:typeof e.decodeDotInKeys==`boolean`?e.decodeDotInKeys:a.decodeDotInKeys,decoder:typeof e.decoder==`function`?e.decoder:a.decoder,delimiter:typeof e.delimiter==`string`||n.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:typeof e.depth==`number`||e.depth===!1?+e.depth:a.depth,duplicates:r,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities==`boolean`?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:typeof e.parameterLimit==`number`?e.parameterLimit:a.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects==`boolean`?e.plainObjects:a.plainObjects,strictDepth:typeof e.strictDepth==`boolean`?!!e.strictDepth:a.strictDepth,strictNullHandling:typeof e.strictNullHandling==`boolean`?e.strictNullHandling:a.strictNullHandling,throwOnLimitExceeded:typeof e.throwOnLimitExceeded==`boolean`?e.throwOnLimitExceeded:!1}};t.exports=function(e,t){var r=p(t);if(e===``||e==null)return r.plainObjects?{__proto__:null}:{};for(var i=typeof e==`string`?u(e,r):e,a=r.plainObjects?{__proto__:null}:{},o=Object.keys(i),s=0;s<o.length;++s){var c=o[s],l=f(c,i[c],r,typeof e==`string`);a=n.merge(a,l,r)}return r.allowSparse===!0?a:n.compact(a)}}),W=o((exports,t)=>{var n=ce(),r=le(),i=U();t.exports={formats:i,parse:r,stringify:n}});const G=(e,t)=>e?!t||t.length===0?e:t.reduce((e,t)=>(delete e[t],e),{...e}):{};let K=function(e){return e.JSON=`application/json`,e.FORM_URLENCODED=`application/x-www-form-urlencoded`,e.FORM_DATA=`multipart/form-data`,e.TEXT=`text/plain`,e.HTML=`text/html`,e.XML=`text/xml`,e.CSV=`text/csv`,e.STREAM=`application/octet-stream`,e}({}),q=function(e){return e[e.TIME_OUT=408]=`TIME_OUT`,e[e.ABORTED=499]=`ABORTED`,e[e.NETWORK_ERROR=599]=`NETWORK_ERROR`,e[e.BODY_NULL=502]=`BODY_NULL`,e[e.UNKNOWN=601]=`UNKNOWN`,e}({}),ue=function(e){return e.GET=`GET`,e.POST=`POST`,e.PUT=`PUT`,e.DELETE=`DELETE`,e.PATCH=`PATCH`,e.HEAD=`HEAD`,e.OPTIONS=`OPTIONS`,e}({});var J=class extends Error{#message;#name;#status;#statusText;#response;#config;constructor({message:e,status:t,statusText:n,response:r,config:i,name:a}){super(e),this.#message=e,this.#status=t,this.#statusText=n,this.#response=r,this.#config=i,this.#name=a??e}get message(){return this.#message}get status(){return this.#status}get statusText(){return this.#statusText}get response(){return this.#response}get config(){return this.#config}get name(){return this.#name}},de=c(W(),1),Y=function(e){return e.JSON=`json`,e.BLOB=`blob`,e.TEXT=`text`,e.ARRAY_BUFFER=`arrayBuffer`,e.FORM_DATA=`formData`,e.BYTES=`bytes`,e}(Y||{});function fe(e){let t=new Map;e.forEach(e=>{t.set(e.name,e)});let n=Array.from(t.values()).sort((e,t)=>(e.priority??0)-(t.priority??0)),r=[],i=[],a=[],o=[],s=[],c=[];return n.forEach(e=>{e.beforeRequest&&r.push(e.beforeRequest),e.afterResponse&&i.push(e.afterResponse),e.onError&&a.push(e.onError),e.onFinally&&o.push(e.onFinally),e.transformStreamChunk&&s.push(e.transformStreamChunk),e.beforeStream&&c.push(e.beforeStream)}),{beforeRequestPlugins:r,afterResponsePlugins:i,errorPlugins:a,finallyPlugins:o,beforeStreamPlugins:c,transformStreamChunkPlugins:s}}function pe(e,t,n=`repeat`){if(t){let r=de.default.stringify(t,{arrayFormat:n});r&&(e=e.includes(`?`)?`${e}&${r}`:`${e}?${r}`)}return e}function me(e={},t={}){let n=e instanceof Headers?e:new Headers(e),r=e=>{e instanceof Headers||(e=new Headers(e)),e.forEach((e,t)=>{n.set(t,e)})};return r(t),n}const he=[`PATCH`,`POST`,`PUT`,`DELETE`,`OPTIONS`],X=[`GET`,`HEAD`];function ge(e,t,n,r=`repeat`){if(!e)return null;if(e instanceof FormData)return e;let i=null;if(he.includes(t.toUpperCase())){let t=new Headers(n||{}),a=t.get(`Content-Type`)||K.JSON;if(a.includes(K.JSON))i=JSON.stringify(e);else if(a.includes(K.FORM_URLENCODED))i=de.default.stringify(e,{arrayFormat:r});else if(a.includes(K.FORM_DATA)){let t=new FormData;if(!(e instanceof FormData)&&typeof e==`object`){let n=e;Object.keys(n).forEach(e=>{n.prototype.hasOwnProperty.call(e)&&t.append(e,n[e])}),i=t}}}return X.includes(t.toUpperCase())&&(i=null),i}var Z=class e{#plugins;#controller;#config;#promise;#isTimeout=!1;#executor=null;#finallyCallbacks=new Set;#responseType=`json`;#fullOptions;constructor(e){this.#fullOptions=e;let{plugins:t=[],controller:n,url:r,baseURL:i=``,params:a,data:o,qsArrayFormat:s=`repeat`,withCredentials:c=!1,extra:l,method:u=`GET`,headers:d={}}=e;this.#controller=n??new AbortController,this.#plugins=fe(t),this.#config={url:r,baseURL:i,params:a,data:o,withCredentials:c,extra:l,method:u,headers:d,qsArrayFormat:s},this.#promise=this.#init(e)}#init({timeout:e}){return new Promise(async(t,n)=>{let r=this.#config,{beforeRequestPlugins:i}=this.#plugins;for(let e of i)r=await e(r);let a=pe(r.baseURL+r.url,r.params,r.qsArrayFormat),o=ge(r.data,r.method,r.headers,r.qsArrayFormat),s=G(r??{},[`baseURL`,`data`,`extra`,`headers`,`method`,`params`,`url`,`withCredentials`]),c={...s,method:r.method,headers:r.headers,signal:this.#controller.signal,credentials:r.withCredentials?`include`:`omit`,body:o},l=fetch(a,c),u=[l],d=null;if(e){let t=new Promise(t=>{d=setTimeout(()=>{this.#isTimeout=!0,this.#controller?.abort()},e)});u.push(t)}let f=null;try{let e=await Promise.race(u);e?(e.ok&&t(e),f=new J({message:`Fail Request`,status:e.status,statusText:e.statusText,config:this.#config,name:`Fail Request`,response:e})):f=new J({message:`NETWORK_ERROR`,status:q.NETWORK_ERROR,statusText:`Network Error`,config:this.#config,name:`Network Error`})}catch(e){f=e}finally{f&&n(f),d&&clearTimeout(d)}})}async#createNormalizeError(e){return e instanceof J?e:e instanceof TypeError?e.name===`AbortError`?this.#isTimeout?new J({message:`Request timeout`,status:q.TIME_OUT,statusText:`Request timeout`,config:this.#config,name:`Request timeout`,response:await this.#response}):new J({message:`Request aborted`,status:q.ABORTED,statusText:`Request aborted`,config:this.#config,name:`Request aborted`,response:await this.#response}):new J({message:e.message,status:q.NETWORK_ERROR,statusText:`Unknown Request Error`,config:this.#config,name:e.name,response:await this.#response}):new J({message:e?.message??`Unknown Request Error`,status:q.UNKNOWN,statusText:`Unknown Request Error`,config:this.#config,name:`Unknown Request Error`,response:await this.#response})}async#normalizeError(e){let t=await this.#createNormalizeError(e);for(let e of this.#plugins.errorPlugins)t=await e(t,this.#config);return t.__normalized=!0,t}#execFinally(){for(let e of this.#finallyCallbacks)e();this.#finallyCallbacks.clear()}get#getExecutor(){return this.#executor?this.#executor:this.#response}async#resolve(e){let t=this.#plugins.afterResponsePlugins,n={config:this.#config,response:await this.#response,responseType:this.#responseType,controller:this.#controller,result:e};try{for(let e of t)n=await e(n,this.#config);return n.result}catch(e){return Promise.reject(e)}}then(e,t){return this.#getExecutor.then(async t=>e?.call(this,await this.#resolve(t)),async e=>t?.call(this,await this.#normalizeError(e)))}catch(e){return this.#getExecutor.catch(e)}finally(e){this.#finallyCallbacks.add(e)}abort(){this.#controller.abort()}get#response(){return this.#promise.then(e=>e.clone()).catch(async e=>{throw await this.#normalizeError(e)})}json(){return this.#then(Y.JSON,this.#response.then(e=>e.json()))}blob(){return this.#then(Y.BLOB,this.#response.then(e=>e.blob()))}text(){return this.#then(Y.TEXT,this.#response.then(e=>e.text()))}arrayBuffer(){return this.#then(Y.ARRAY_BUFFER,this.#response.then(e=>e.arrayBuffer()))}#then(e,t){return this.#executor=t.then(t=>(this.#responseType=e,this.#resolve(t))).catch(async t=>{throw this.#responseType=e,t.__normalized?t:await this.#normalizeError(t)}).finally(this.#execFinally.bind(this)),this.#executor}formData(){return this.#then(Y.FORM_DATA,this.#response.then(e=>e.formData()))}bytes(){return this.#then(Y.BYTES,this.#response.then(e=>e.bytes()))}async*stream(){let e=(await this.#response)?.body;if(!e)throw Error(`Response body is null`);for(let t of this.#plugins.beforeStreamPlugins)e=await t(e,this.#config);let t=e.getReader();if(!t)throw Error(`Response body reader is null`);try{for(;;){let{done:e,value:n}=await t.read();if(e)break;let r={source:n,result:n,error:null};try{for(let e of this.#plugins.transformStreamChunkPlugins)r=await e(r,this.#config);if(r.result&&(_e(r.result)||ve(r.result)))for await(let e of r.result){let t={source:r.source,result:e,error:null};yield t}else yield r}catch(e){r.error=e,r.result=null,yield r}}}catch(e){return this.#normalizeError(e)}finally{t.releaseLock(),this.#execFinally()}}retry(){let{controller:t,...n}=this.#fullOptions;return new e(n)}get response(){return this.#response}};function _e(e){return e[Symbol.toStringTag]===`Generator`&&typeof e.next==`function`&&typeof e.return==`function`&&typeof e.throw==`function`&&typeof e[Symbol.iterator]==`function`}function ve(e){return e[Symbol.toStringTag]===`AsyncGenerator`&&typeof e.next==`function`&&typeof e.return==`function`&&typeof e.throw==`function`&&typeof e[Symbol.asyncIterator]==`function`}function ye(e){return new Z(e)}var be=class{#timeout;#baseURL;#commonHeaders;#queue=[];#plugins=[];#withCredentials;constructor({timeout:e=0,baseURL:t=``,headers:n={},plugins:r=[],withCredentials:i=!1}){this.#timeout=e,this.#baseURL=t,this.#commonHeaders=n,this.#plugins=r,this.#withCredentials=i,this.request=this.request.bind(this),this.get=this.get.bind(this),this.head=this.head.bind(this),this.options=this.options.bind(this),this.delete=this.delete.bind(this),this.post=this.post.bind(this),this.put=this.put.bind(this),this.patch=this.patch.bind(this),this.abortAll=this.abortAll.bind(this),this.use=this.use.bind(this)}use(e){return this.#plugins.push(e),this}request(e,{timeout:t,headers:n,method:r=`GET`,params:i={},data:a={},qsArrayFormat:o,withCredentials:s,extra:c={}}={}){let l=new AbortController;this.#queue.push(l);let u=ye({url:e,baseURL:this.#baseURL,timeout:t??this.#timeout,plugins:this.#plugins,headers:me(this.#commonHeaders,n),controller:l,method:r,params:i,data:a,qsArrayFormat:o,withCredentials:s??this.#withCredentials,extra:c});return u.finally(()=>{this.#queue=this.#queue.filter(e=>e!==l)}),u}#requestWithParams(e,t={},n={}){return this.request(e,{...n,params:t})}#requestWithBody(e,t={},n={}){return this.request(e,{...n,data:t})}get(e,t={},n){return this.#requestWithParams(e,t,{...n,method:`GET`})}head(e,t={},n){return this.#requestWithParams(e,t,{...n,method:`HEAD`})}options(e,t={},n){return this.request(e,{...n,method:`OPTIONS`,params:t})}delete(e,t){return this.request(e,{...t,method:`DELETE`})}post(e,t,n){return this.#requestWithBody(e,t,{...n,method:`POST`})}upload(e,t,n){let r=new FormData;for(let e in t)if(Object.prototype.hasOwnProperty.call(t,e)){let n=t[e];n instanceof File||n instanceof Blob?r.append(e,n):r.append(e,String(n))}return this.#requestWithBody(e,r,{...n,method:`POST`})}put(e,t,n){return this.#requestWithBody(e,t,{...n,method:`PUT`})}patch(e,t,n){return this.#requestWithBody(e,t,{...n,method:`PATCH`})}abortAll(){this.#queue.forEach(e=>e.abort()),this.#queue=[]}};function Q(e,t={}){return ye({url:e,baseURL:``,...t})}function xe(e,t,n={}){return Q(e,{...n,params:t})}function Se(e,t=null,n={}){return Q(e,{...n,data:t})}const Ce=Q;function we(e,t={},n){return xe(e,t,{...n,method:`GET`})}function Te(e,t={},n){return xe(e,t,{...n,method:`HEAD`})}function Ee(e,t={},n){return Q(e,{...n,params:t,method:`OPTIONS`})}function De(e,t){return Q(e,{...t,method:`DELETE`})}function Oe(e,t,n){return Se(e,t,{...n,method:`POST`})}function ke(e,t,n){let r=new FormData;for(let e in t)if(Object.prototype.hasOwnProperty.call(t,e)){let n=t[e];n instanceof File||n instanceof Blob?r.append(e,n):r.append(e,String(n))}return Se(e,r,{...n,method:`POST`})}function Ae(e,t,n){return Se(e,t,{...n,method:`PUT`})}function je(e,t,n){return Se(e,t,{...n,method:`PATCH`})}const $=Q;$.create=e=>{let t=new be(e),n=t.request.bind(void 0);return Object.assign(n,be.prototype,t),n},$.get=we,$.head=Te,$.options=Ee,$.delete=De,$.post=Oe,$.put=Ae,$.patch=je,$.upload=ke;var Me=$,Ne=Me;export{K as ContentType,ue as Method,J as ResponseError,q as StatusCode,Ne as default,De as del,we as get,Te as head,Ee as options,je as patch,Oe as post,Ae as put,Ce as request,ke as upload};
|
|
4
|
+
`+t.prev}function xe(e,t){var n=ie(e),r=[];if(n){r.length=e.length;for(var i=0;i<e.length;i++)r[i]=K(e,i)?t(e[i],e):``}var a=typeof A==`function`?A(e):[],o;if(M){o={};for(var s=0;s<a.length;s++)o[`$`+a[s]]=a[s]}for(var c in e){if(!K(e,c)||n&&String(Number(c))===c&&c<e.length||M&&o[`$`+c]instanceof Symbol)continue;T.call(/[^\w$]/,c)?r.push(t(c,e)+`: `+t(e[c],e)):r.push(c+`: `+t(e[c],e))}if(typeof A==`function`)for(var l=0;l<a.length;l++)te.call(e,a[l])&&r.push(`[`+t(a[l])+`]: `+t(e[a[l]],e));return r}}),f=o((exports,t)=>{var n=d(),r=l(),i=function(e,t,n){for(var r=e,i;(i=r.next)!=null;r=i)if(i.key===t)return r.next=i.next,n||(i.next=e.next,e.next=i),i},a=function(e,t){if(e){var n=i(e,t);return n&&n.value}},o=function(e,t,n){var r=i(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}},s=function(e,t){return e?!!i(e,t):!1},c=function(e,t){if(e)return i(e,t,!0)};t.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new r(`Side channel does not contain `+n(e))},delete:function(t){var n=e&&e.next,r=c(e,t);return r&&n&&n===r&&(e=void 0),!!r},get:function(t){return a(e,t)},has:function(t){return s(e,t)},set:function(t,n){e||={next:void 0},o(e,t,n)}};return t}}),p=o((exports,t)=>{t.exports=Object}),m=o((exports,t)=>{t.exports=Error}),h=o((exports,t)=>{t.exports=EvalError}),g=o((exports,t)=>{t.exports=RangeError}),_=o((exports,t)=>{t.exports=ReferenceError}),v=o((exports,t)=>{t.exports=SyntaxError}),y=o((exports,t)=>{t.exports=URIError}),b=o((exports,t)=>{t.exports=Math.abs}),x=o((exports,t)=>{t.exports=Math.floor}),S=o((exports,t)=>{t.exports=Math.max}),C=o((exports,t)=>{t.exports=Math.min}),w=o((exports,t)=>{t.exports=Math.pow}),T=o((exports,t)=>{t.exports=Math.round}),E=o((exports,t)=>{t.exports=Number.isNaN||function(e){return e!==e}}),D=o((exports,t)=>{var n=E();t.exports=function(e){return n(e)||e===0?e:e<0?-1:1}}),O=o((exports,t)=>{t.exports=Object.getOwnPropertyDescriptor}),k=o((exports,t)=>{var n=O();if(n)try{n([],`length`)}catch{n=null}t.exports=n}),ee=o((exports,t)=>{var n=Object.defineProperty||!1;if(n)try{n({},`a`,{value:1})}catch{n=!1}t.exports=n}),A=o((exports,t)=>{t.exports=function(){if(typeof Symbol!=`function`||typeof Object.getOwnPropertySymbols!=`function`)return!1;if(typeof Symbol.iterator==`symbol`)return!0;var e={},t=Symbol(`test`),n=Object(t);if(typeof t==`string`||Object.prototype.toString.call(t)!==`[object Symbol]`||Object.prototype.toString.call(n)!==`[object Symbol]`)return!1;var r=42;for(var i in e[t]=r,e)return!1;if(typeof Object.keys==`function`&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames==`function`&&Object.getOwnPropertyNames(e).length!==0)return!1;var a=Object.getOwnPropertySymbols(e);if(a.length!==1||a[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor==`function`){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==r||o.enumerable!==!0)return!1}return!0}}),j=o((exports,t)=>{var n=typeof Symbol<`u`&&Symbol,r=A();t.exports=function(){return typeof n!=`function`||typeof Symbol!=`function`||typeof n(`foo`)!=`symbol`||typeof Symbol(`bar`)!=`symbol`?!1:r()}}),M=o((exports,t)=>{t.exports=typeof Reflect<`u`&&Reflect.getPrototypeOf||null}),N=o((exports,t)=>{var n=p();t.exports=n.getPrototypeOf||null}),te=o((exports,t)=>{var n=`Function.prototype.bind called on incompatible `,r=Object.prototype.toString,i=Math.max,a=`[object Function]`,o=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var i=0;i<t.length;i+=1)n[i+e.length]=t[i];return n},s=function(e,t){for(var n=[],r=t||0,i=0;r<e.length;r+=1,i+=1)n[i]=e[r];return n},c=function(e,t){for(var n=``,r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n};t.exports=function(e){var t=this;if(typeof t!=`function`||r.apply(t)!==a)throw TypeError(n+t);for(var l=s(arguments,1),u,d=function(){if(this instanceof u){var n=t.apply(this,o(l,arguments));return Object(n)===n?n:this}return t.apply(e,o(l,arguments))},f=i(0,t.length-l.length),p=[],m=0;m<f;m++)p[m]=`$`+m;if(u=Function(`binder`,`return function (`+c(p,`,`)+`){ return binder.apply(this,arguments); }`)(d),t.prototype){var h=function(){};h.prototype=t.prototype,u.prototype=new h,h.prototype=null}return u}}),P=o((exports,t)=>{var n=te();t.exports=Function.prototype.bind||n}),F=o((exports,t)=>{t.exports=Function.prototype.call}),I=o((exports,t)=>{t.exports=Function.prototype.apply}),L=o((exports,t)=>{t.exports=typeof Reflect<`u`&&Reflect&&Reflect.apply}),R=o((exports,t)=>{var n=P(),r=I(),i=F(),a=L();t.exports=a||n.call(i,r)}),z=o((exports,t)=>{var n=P(),r=l(),i=F(),a=R();t.exports=function(e){if(e.length<1||typeof e[0]!=`function`)throw new r(`a function is required`);return a(n,i,e)}}),B=o((exports,t)=>{var n=z(),r=k(),i;try{i=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!=`object`||!(`code`in e)||e.code!==`ERR_PROTO_ACCESS`)throw e}var a=!!i&&r&&r(Object.prototype,`__proto__`),o=Object,s=o.getPrototypeOf;t.exports=a&&typeof a.get==`function`?n([a.get]):typeof s==`function`?function(e){return s(e==null?e:o(e))}:!1}),ne=o((exports,t)=>{var n=M(),r=N(),i=B();t.exports=n?function(e){return n(e)}:r?function(e){if(!e||typeof e!=`object`&&typeof e!=`function`)throw TypeError(`getProto: not an object`);return r(e)}:i?function(e){return i(e)}:null}),re=o((exports,t)=>{var n=Function.prototype.call,r=Object.prototype.hasOwnProperty,i=P();t.exports=i.call(n,r)}),V=o((exports,t)=>{var n,r=p(),i=m(),a=h(),o=g(),s=_(),c=v(),u=l(),d=y(),f=b(),E=x(),O=S(),A=C(),te=w(),L=T(),R=D(),z=Function,B=function(e){try{return z(`"use strict"; return (`+e+`).constructor;`)()}catch{}},V=k(),ie=ee(),ae=function(){throw new u},oe=V?function(){try{return arguments.callee,ae}catch{try{return V(arguments,`callee`).get}catch{return ae}}}():ae,H=j()(),U=ne(),se=N(),ce=M(),le=I(),W=F(),G={},K=typeof Uint8Array>`u`||!U?n:U(Uint8Array),q={__proto__:null,"%AggregateError%":typeof AggregateError>`u`?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>`u`?n:ArrayBuffer,"%ArrayIteratorPrototype%":H&&U?U([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":G,"%AsyncGenerator%":G,"%AsyncGeneratorFunction%":G,"%AsyncIteratorPrototype%":G,"%Atomics%":typeof Atomics>`u`?n:Atomics,"%BigInt%":typeof BigInt>`u`?n:BigInt,"%BigInt64Array%":typeof BigInt64Array>`u`?n:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>`u`?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>`u`?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":a,"%Float16Array%":typeof Float16Array>`u`?n:Float16Array,"%Float32Array%":typeof Float32Array>`u`?n:Float32Array,"%Float64Array%":typeof Float64Array>`u`?n:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>`u`?n:FinalizationRegistry,"%Function%":z,"%GeneratorFunction%":G,"%Int8Array%":typeof Int8Array>`u`?n:Int8Array,"%Int16Array%":typeof Int16Array>`u`?n:Int16Array,"%Int32Array%":typeof Int32Array>`u`?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":H&&U?U(U([][Symbol.iterator]())):n,"%JSON%":typeof JSON==`object`?JSON:n,"%Map%":typeof Map>`u`?n:Map,"%MapIteratorPrototype%":typeof Map>`u`||!H||!U?n:U(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":r,"%Object.getOwnPropertyDescriptor%":V,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>`u`?n:Promise,"%Proxy%":typeof Proxy>`u`?n:Proxy,"%RangeError%":o,"%ReferenceError%":s,"%Reflect%":typeof Reflect>`u`?n:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>`u`?n:Set,"%SetIteratorPrototype%":typeof Set>`u`||!H||!U?n:U(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>`u`?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":H&&U?U(``[Symbol.iterator]()):n,"%Symbol%":H?Symbol:n,"%SyntaxError%":c,"%ThrowTypeError%":oe,"%TypedArray%":K,"%TypeError%":u,"%Uint8Array%":typeof Uint8Array>`u`?n:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>`u`?n:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>`u`?n:Uint16Array,"%Uint32Array%":typeof Uint32Array>`u`?n:Uint32Array,"%URIError%":d,"%WeakMap%":typeof WeakMap>`u`?n:WeakMap,"%WeakRef%":typeof WeakRef>`u`?n:WeakRef,"%WeakSet%":typeof WeakSet>`u`?n:WeakSet,"%Function.prototype.call%":W,"%Function.prototype.apply%":le,"%Object.defineProperty%":ie,"%Object.getPrototypeOf%":se,"%Math.abs%":f,"%Math.floor%":E,"%Math.max%":O,"%Math.min%":A,"%Math.pow%":te,"%Math.round%":L,"%Math.sign%":R,"%Reflect.getPrototypeOf%":ce};if(U)try{null.error}catch(e){var ue=U(U(e));q[`%Error.prototype%`]=ue}var J=function e(t){var n;if(t===`%AsyncFunction%`)n=B(`async function () {}`);else if(t===`%GeneratorFunction%`)n=B(`function* () {}`);else if(t===`%AsyncGeneratorFunction%`)n=B(`async function* () {}`);else if(t===`%AsyncGenerator%`){var r=e(`%AsyncGeneratorFunction%`);r&&(n=r.prototype)}else if(t===`%AsyncIteratorPrototype%`){var i=e(`%AsyncGenerator%`);i&&U&&(n=U(i.prototype))}return q[t]=n,n},de={__proto__:null,"%ArrayBufferPrototype%":[`ArrayBuffer`,`prototype`],"%ArrayPrototype%":[`Array`,`prototype`],"%ArrayProto_entries%":[`Array`,`prototype`,`entries`],"%ArrayProto_forEach%":[`Array`,`prototype`,`forEach`],"%ArrayProto_keys%":[`Array`,`prototype`,`keys`],"%ArrayProto_values%":[`Array`,`prototype`,`values`],"%AsyncFunctionPrototype%":[`AsyncFunction`,`prototype`],"%AsyncGenerator%":[`AsyncGeneratorFunction`,`prototype`],"%AsyncGeneratorPrototype%":[`AsyncGeneratorFunction`,`prototype`,`prototype`],"%BooleanPrototype%":[`Boolean`,`prototype`],"%DataViewPrototype%":[`DataView`,`prototype`],"%DatePrototype%":[`Date`,`prototype`],"%ErrorPrototype%":[`Error`,`prototype`],"%EvalErrorPrototype%":[`EvalError`,`prototype`],"%Float32ArrayPrototype%":[`Float32Array`,`prototype`],"%Float64ArrayPrototype%":[`Float64Array`,`prototype`],"%FunctionPrototype%":[`Function`,`prototype`],"%Generator%":[`GeneratorFunction`,`prototype`],"%GeneratorPrototype%":[`GeneratorFunction`,`prototype`,`prototype`],"%Int8ArrayPrototype%":[`Int8Array`,`prototype`],"%Int16ArrayPrototype%":[`Int16Array`,`prototype`],"%Int32ArrayPrototype%":[`Int32Array`,`prototype`],"%JSONParse%":[`JSON`,`parse`],"%JSONStringify%":[`JSON`,`stringify`],"%MapPrototype%":[`Map`,`prototype`],"%NumberPrototype%":[`Number`,`prototype`],"%ObjectPrototype%":[`Object`,`prototype`],"%ObjProto_toString%":[`Object`,`prototype`,`toString`],"%ObjProto_valueOf%":[`Object`,`prototype`,`valueOf`],"%PromisePrototype%":[`Promise`,`prototype`],"%PromiseProto_then%":[`Promise`,`prototype`,`then`],"%Promise_all%":[`Promise`,`all`],"%Promise_reject%":[`Promise`,`reject`],"%Promise_resolve%":[`Promise`,`resolve`],"%RangeErrorPrototype%":[`RangeError`,`prototype`],"%ReferenceErrorPrototype%":[`ReferenceError`,`prototype`],"%RegExpPrototype%":[`RegExp`,`prototype`],"%SetPrototype%":[`Set`,`prototype`],"%SharedArrayBufferPrototype%":[`SharedArrayBuffer`,`prototype`],"%StringPrototype%":[`String`,`prototype`],"%SymbolPrototype%":[`Symbol`,`prototype`],"%SyntaxErrorPrototype%":[`SyntaxError`,`prototype`],"%TypedArrayPrototype%":[`TypedArray`,`prototype`],"%TypeErrorPrototype%":[`TypeError`,`prototype`],"%Uint8ArrayPrototype%":[`Uint8Array`,`prototype`],"%Uint8ClampedArrayPrototype%":[`Uint8ClampedArray`,`prototype`],"%Uint16ArrayPrototype%":[`Uint16Array`,`prototype`],"%Uint32ArrayPrototype%":[`Uint32Array`,`prototype`],"%URIErrorPrototype%":[`URIError`,`prototype`],"%WeakMapPrototype%":[`WeakMap`,`prototype`],"%WeakSetPrototype%":[`WeakSet`,`prototype`]},Y=P(),fe=re(),pe=Y.call(W,Array.prototype.concat),me=Y.call(le,Array.prototype.splice),he=Y.call(W,String.prototype.replace),X=Y.call(W,String.prototype.slice),ge=Y.call(W,RegExp.prototype.exec),Z=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,_e=/\\(\\)?/g,ve=function(e){var t=X(e,0,1),n=X(e,-1);if(t===`%`&&n!==`%`)throw new c("invalid intrinsic syntax, expected closing `%`");if(n===`%`&&t!==`%`)throw new c("invalid intrinsic syntax, expected opening `%`");var r=[];return he(e,Z,function(e,t,n,i){r[r.length]=n?he(i,_e,`$1`):t||e}),r},ye=function(e,t){var n=e,r;if(fe(de,n)&&(r=de[n],n=`%`+r[0]+`%`),fe(q,n)){var i=q[n];if(i===G&&(i=J(n)),i===void 0&&!t)throw new u(`intrinsic `+e+` exists, but is not available. Please file an issue!`);return{alias:r,name:n,value:i}}throw new c(`intrinsic `+e+` does not exist!`)};t.exports=function(e,t){if(typeof e!=`string`||e.length===0)throw new u(`intrinsic name must be a non-empty string`);if(arguments.length>1&&typeof t!=`boolean`)throw new u(`"allowMissing" argument must be a boolean`);if(ge(/^%?[^%]*%?$/,e)===null)throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=ve(e),r=n.length>0?n[0]:``,i=ye(`%`+r+`%`,t),a=i.name,o=i.value,s=!1,l=i.alias;l&&(r=l[0],me(n,pe([0,1],l)));for(var d=1,f=!0;d<n.length;d+=1){var p=n[d],m=X(p,0,1),h=X(p,-1);if((m===`"`||m===`'`||m==="`"||h===`"`||h===`'`||h==="`")&&m!==h)throw new c(`property names with quotes must have matching quotes`);if((p===`constructor`||!f)&&(s=!0),r+=`.`+p,a=`%`+r+`%`,fe(q,a))o=q[a];else if(o!=null){if(!(p in o)){if(!t)throw new u(`base intrinsic for `+e+` exists, but the property is not available.`);return}if(V&&d+1>=n.length){var g=V(o,p);f=!!g,o=f&&`get`in g&&!(`originalValue`in g.get)?g.get:o[p]}else f=fe(o,p),o=o[p];f&&!s&&(q[a]=o)}}return o}}),ie=o((exports,t)=>{var n=V(),r=z(),i=r([n(`%String.prototype.indexOf%`)]);t.exports=function(e,t){var a=n(e,!!t);return typeof a==`function`&&i(e,`.prototype.`)>-1?r([a]):a}}),ae=o((exports,t)=>{var n=V(),r=ie(),i=d(),a=l(),o=n(`%Map%`,!0),s=r(`Map.prototype.get`,!0),c=r(`Map.prototype.set`,!0),u=r(`Map.prototype.has`,!0),f=r(`Map.prototype.delete`,!0),p=r(`Map.prototype.size`,!0);t.exports=!!o&&function(){var e,t={assert:function(e){if(!t.has(e))throw new a(`Side channel does not contain `+i(e))},delete:function(t){if(e){var n=f(e,t);return p(e)===0&&(e=void 0),n}return!1},get:function(t){if(e)return s(e,t)},has:function(t){return e?u(e,t):!1},set:function(t,n){e||=new o,c(e,t,n)}};return t}}),oe=o((exports,t)=>{var n=V(),r=ie(),i=d(),a=ae(),o=l(),s=n(`%WeakMap%`,!0),c=r(`WeakMap.prototype.get`,!0),u=r(`WeakMap.prototype.set`,!0),f=r(`WeakMap.prototype.has`,!0),p=r(`WeakMap.prototype.delete`,!0);t.exports=s?function(){var e,t,n={assert:function(e){if(!n.has(e))throw new o(`Side channel does not contain `+i(e))},delete:function(n){if(s&&n&&(typeof n==`object`||typeof n==`function`)){if(e)return p(e,n)}else if(a&&t)return t.delete(n);return!1},get:function(n){return s&&n&&(typeof n==`object`||typeof n==`function`)&&e?c(e,n):t&&t.get(n)},has:function(n){return s&&n&&(typeof n==`object`||typeof n==`function`)&&e?f(e,n):!!t&&t.has(n)},set:function(n,r){s&&n&&(typeof n==`object`||typeof n==`function`)?(e||=new s,u(e,n,r)):a&&(t||=a(),t.set(n,r))}};return n}:a}),H=o((exports,t)=>{var n=l(),r=d(),i=f(),a=ae(),o=oe(),s=o||a||i;t.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new n(`Side channel does not contain `+r(e))},delete:function(t){return!!e&&e.delete(t)},get:function(t){return e&&e.get(t)},has:function(t){return!!e&&e.has(t)},set:function(t,n){e||=s(),e.set(t,n)}};return t}}),U=o((exports,t)=>{var n=String.prototype.replace,r=/%20/g,i={RFC1738:`RFC1738`,RFC3986:`RFC3986`};t.exports={default:i.RFC3986,formatters:{RFC1738:function(e){return n.call(e,r,`+`)},RFC3986:function(e){return String(e)}},RFC1738:i.RFC1738,RFC3986:i.RFC3986}}),se=o((exports,t)=>{var n=U(),r=Object.prototype.hasOwnProperty,i=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push(`%`+((t<16?`0`:``)+t.toString(16)).toUpperCase());return e}(),o=function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(i(n)){for(var r=[],a=0;a<n.length;++a)n[a]!==void 0&&r.push(n[a]);t.obj[t.prop]=r}}},s=function(e,t){for(var n=t&&t.plainObjects?{__proto__:null}:{},r=0;r<e.length;++r)e[r]!==void 0&&(n[r]=e[r]);return n},c=function e(t,n,a){if(!n)return t;if(typeof n!=`object`&&typeof n!=`function`){if(i(t))t.push(n);else if(t&&typeof t==`object`)(a&&(a.plainObjects||a.allowPrototypes)||!r.call(Object.prototype,n))&&(t[n]=!0);else return[t,n];return t}if(!t||typeof t!=`object`)return[t].concat(n);var o=t;return i(t)&&!i(n)&&(o=s(t,a)),i(t)&&i(n)?(n.forEach(function(n,i){if(r.call(t,i)){var o=t[i];o&&typeof o==`object`&&n&&typeof n==`object`?t[i]=e(o,n,a):t.push(n)}else t[i]=n}),t):Object.keys(n).reduce(function(t,i){var o=n[i];return r.call(t,i)?t[i]=e(t[i],o,a):t[i]=o,t},o)},l=function(e,t){return Object.keys(t).reduce(function(e,n){return e[n]=t[n],e},e)},u=function(e,t,n){var r=e.replace(/\+/g,` `);if(n===`iso-8859-1`)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch{return r}},d=1024,f=function(e,t,r,i,o){if(e.length===0)return e;var s=e;if(typeof e==`symbol`?s=Symbol.prototype.toString.call(e):typeof e!=`string`&&(s=String(e)),r===`iso-8859-1`)return escape(s).replace(/%u[0-9a-f]{4}/gi,function(e){return`%26%23`+parseInt(e.slice(2),16)+`%3B`});for(var c=``,l=0;l<s.length;l+=d){for(var u=s.length>=d?s.slice(l,l+d):s,f=[],p=0;p<u.length;++p){var m=u.charCodeAt(p);if(m===45||m===46||m===95||m===126||m>=48&&m<=57||m>=65&&m<=90||m>=97&&m<=122||o===n.RFC1738&&(m===40||m===41)){f[f.length]=u.charAt(p);continue}if(m<128){f[f.length]=a[m];continue}if(m<2048){f[f.length]=a[192|m>>6]+a[128|m&63];continue}if(m<55296||m>=57344){f[f.length]=a[224|m>>12]+a[128|m>>6&63]+a[128|m&63];continue}p+=1,m=65536+((m&1023)<<10|u.charCodeAt(p)&1023),f[f.length]=a[240|m>>18]+a[128|m>>12&63]+a[128|m>>6&63]+a[128|m&63]}c+=f.join(``)}return c},p=function(e){for(var t=[{obj:{o:e},prop:`o`}],n=[],r=0;r<t.length;++r)for(var i=t[r],a=i.obj[i.prop],s=Object.keys(a),c=0;c<s.length;++c){var l=s[c],u=a[l];typeof u==`object`&&u&&n.indexOf(u)===-1&&(t.push({obj:a,prop:l}),n.push(u))}return o(t),e},m=function(e){return Object.prototype.toString.call(e)===`[object RegExp]`},h=function(e){return!e||typeof e!=`object`?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},g=function(e,t){return[].concat(e,t)},_=function(e,t){if(i(e)){for(var n=[],r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)};t.exports={arrayToObject:s,assign:l,combine:g,compact:p,decode:u,encode:f,isBuffer:h,isRegExp:m,maybeMap:_,merge:c}}),ce=o((exports,t)=>{var n=H(),r=se(),i=U(),a=Object.prototype.hasOwnProperty,o={brackets:function(e){return e+`[]`},comma:`comma`,indices:function(e,t){return e+`[`+t+`]`},repeat:function(e){return e}},s=Array.isArray,c=Array.prototype.push,l=function(e,t){c.apply(e,s(t)?t:[t])},u=Date.prototype.toISOString,d=i.default,f={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:`indices`,charset:`utf-8`,charsetSentinel:!1,commaRoundTrip:!1,delimiter:`&`,encode:!0,encodeDotInKeys:!1,encoder:r.encode,encodeValuesOnly:!1,filter:void 0,format:d,formatter:i.formatters[d],indices:!1,serializeDate:function(e){return u.call(e)},skipNulls:!1,strictNullHandling:!1},p=function(e){return typeof e==`string`||typeof e==`number`||typeof e==`boolean`||typeof e==`symbol`||typeof e==`bigint`},m={},h=function e(t,i,a,o,c,u,d,h,g,_,v,y,b,x,S,C,w,T){for(var E=t,D=T,O=0,k=!1;(D=D.get(m))!==void 0&&!k;){var ee=D.get(t);if(O+=1,ee!==void 0){if(ee===O)throw RangeError(`Cyclic object value`);k=!0}D.get(m)===void 0&&(O=0)}if(typeof _==`function`?E=_(i,E):E instanceof Date?E=b(E):a===`comma`&&s(E)&&(E=r.maybeMap(E,function(e){return e instanceof Date?b(e):e})),E===null){if(u)return g&&!C?g(i,f.encoder,w,`key`,x):i;E=``}if(p(E)||r.isBuffer(E)){if(g){var A=C?i:g(i,f.encoder,w,`key`,x);return[S(A)+`=`+S(g(E,f.encoder,w,`value`,x))]}return[S(i)+`=`+S(String(E))]}var j=[];if(E===void 0)return j;var M;if(a===`comma`&&s(E))C&&g&&(E=r.maybeMap(E,g)),M=[{value:E.length>0?E.join(`,`)||null:void 0}];else if(s(_))M=_;else{var N=Object.keys(E);M=v?N.sort(v):N}var te=h?String(i).replace(/\./g,`%2E`):String(i),P=o&&s(E)&&E.length===1?te+`[]`:te;if(c&&s(E)&&E.length===0)return P+`[]`;for(var F=0;F<M.length;++F){var I=M[F],L=typeof I==`object`&&I&&I.value!==void 0?I.value:E[I];if(!(d&&L===null)){var R=y&&h?String(I).replace(/\./g,`%2E`):String(I),z=s(E)?typeof a==`function`?a(P,R):P:P+(y?`.`+R:`[`+R+`]`);T.set(t,O);var B=n();B.set(m,T),l(j,e(L,z,a,o,c,u,d,h,a===`comma`&&C&&s(E)?null:g,_,v,y,b,x,S,C,w,B))}}return j},g=function(e){if(!e)return f;if(e.allowEmptyArrays!==void 0&&typeof e.allowEmptyArrays!=`boolean`)throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(e.encodeDotInKeys!==void 0&&typeof e.encodeDotInKeys!=`boolean`)throw TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(e.encoder!==null&&e.encoder!==void 0&&typeof e.encoder!=`function`)throw TypeError(`Encoder has to be a function.`);var t=e.charset||f.charset;if(e.charset!==void 0&&e.charset!==`utf-8`&&e.charset!==`iso-8859-1`)throw TypeError(`The charset option must be either utf-8, iso-8859-1, or undefined`);var n=i.default;if(e.format!==void 0){if(!a.call(i.formatters,e.format))throw TypeError(`Unknown format option provided.`);n=e.format}var r=i.formatters[n],c=f.filter;(typeof e.filter==`function`||s(e.filter))&&(c=e.filter);var l;if(l=e.arrayFormat in o?e.arrayFormat:`indices`in e?e.indices?`indices`:`repeat`:f.arrayFormat,`commaRoundTrip`in e&&typeof e.commaRoundTrip!=`boolean`)throw TypeError("`commaRoundTrip` must be a boolean, or absent");var u=e.allowDots===void 0?e.encodeDotInKeys===!0?!0:f.allowDots:!!e.allowDots;return{addQueryPrefix:typeof e.addQueryPrefix==`boolean`?e.addQueryPrefix:f.addQueryPrefix,allowDots:u,allowEmptyArrays:typeof e.allowEmptyArrays==`boolean`?!!e.allowEmptyArrays:f.allowEmptyArrays,arrayFormat:l,charset:t,charsetSentinel:typeof e.charsetSentinel==`boolean`?e.charsetSentinel:f.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:e.delimiter===void 0?f.delimiter:e.delimiter,encode:typeof e.encode==`boolean`?e.encode:f.encode,encodeDotInKeys:typeof e.encodeDotInKeys==`boolean`?e.encodeDotInKeys:f.encodeDotInKeys,encoder:typeof e.encoder==`function`?e.encoder:f.encoder,encodeValuesOnly:typeof e.encodeValuesOnly==`boolean`?e.encodeValuesOnly:f.encodeValuesOnly,filter:c,format:n,formatter:r,serializeDate:typeof e.serializeDate==`function`?e.serializeDate:f.serializeDate,skipNulls:typeof e.skipNulls==`boolean`?e.skipNulls:f.skipNulls,sort:typeof e.sort==`function`?e.sort:null,strictNullHandling:typeof e.strictNullHandling==`boolean`?e.strictNullHandling:f.strictNullHandling}};t.exports=function(e,t){var r=e,i=g(t),a,c;typeof i.filter==`function`?(c=i.filter,r=c(``,r)):s(i.filter)&&(c=i.filter,a=c);var u=[];if(typeof r!=`object`||!r)return``;var d=o[i.arrayFormat],f=d===`comma`&&i.commaRoundTrip;a||=Object.keys(r),i.sort&&a.sort(i.sort);for(var p=n(),m=0;m<a.length;++m){var _=a[m],v=r[_];i.skipNulls&&v===null||l(u,h(v,_,d,f,i.allowEmptyArrays,i.strictNullHandling,i.skipNulls,i.encodeDotInKeys,i.encode?i.encoder:null,i.filter,i.sort,i.allowDots,i.serializeDate,i.format,i.formatter,i.encodeValuesOnly,i.charset,p))}var y=u.join(i.delimiter),b=i.addQueryPrefix===!0?`?`:``;return i.charsetSentinel&&(i.charset===`iso-8859-1`?b+=`utf8=%26%2310003%3B&`:b+=`utf8=%E2%9C%93&`),y.length>0?b+y:``}}),le=o((exports,t)=>{var n=se(),r=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:`utf-8`,charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:n.decode,delimiter:`&`,depth:5,duplicates:`combine`,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},o=function(e){return e.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},s=function(e,t,n){if(e&&typeof e==`string`&&t.comma&&e.indexOf(`,`)>-1)return e.split(`,`);if(t.throwOnLimitExceeded&&n>=t.arrayLimit)throw RangeError(`Array limit exceeded. Only `+t.arrayLimit+` element`+(t.arrayLimit===1?``:`s`)+` allowed in an array.`);return e},c=`utf8=%26%2310003%3B`,l=`utf8=%E2%9C%93`,u=function(e,t){var u={__proto__:null},d=t.ignoreQueryPrefix?e.replace(/^\?/,``):e;d=d.replace(/%5B/gi,`[`).replace(/%5D/gi,`]`);var f=t.parameterLimit===1/0?void 0:t.parameterLimit,p=d.split(t.delimiter,t.throwOnLimitExceeded?f+1:f);if(t.throwOnLimitExceeded&&p.length>f)throw RangeError(`Parameter limit exceeded. Only `+f+` parameter`+(f===1?``:`s`)+` allowed.`);var m=-1,h,g=t.charset;if(t.charsetSentinel)for(h=0;h<p.length;++h)p[h].indexOf(`utf8=`)===0&&(p[h]===l?g=`utf-8`:p[h]===c&&(g=`iso-8859-1`),m=h,h=p.length);for(h=0;h<p.length;++h)if(h!==m){var _=p[h],v=_.indexOf(`]=`),y=v===-1?_.indexOf(`=`):v+1,b,x;y===-1?(b=t.decoder(_,a.decoder,g,`key`),x=t.strictNullHandling?null:``):(b=t.decoder(_.slice(0,y),a.decoder,g,`key`),x=n.maybeMap(s(_.slice(y+1),t,i(u[b])?u[b].length:0),function(e){return t.decoder(e,a.decoder,g,`value`)})),x&&t.interpretNumericEntities&&g===`iso-8859-1`&&(x=o(String(x))),_.indexOf(`[]=`)>-1&&(x=i(x)?[x]:x);var S=r.call(u,b);S&&t.duplicates===`combine`?u[b]=n.combine(u[b],x):(!S||t.duplicates===`last`)&&(u[b]=x)}return u},d=function(e,t,r,i){var a=0;if(e.length>0&&e[e.length-1]===`[]`){var o=e.slice(0,-1).join(``);a=Array.isArray(t)&&t[o]?t[o].length:0}for(var c=i?t:s(t,r,a),l=e.length-1;l>=0;--l){var u,d=e[l];if(d===`[]`&&r.parseArrays)u=r.allowEmptyArrays&&(c===``||r.strictNullHandling&&c===null)?[]:n.combine([],c);else{u=r.plainObjects?{__proto__:null}:{};var f=d.charAt(0)===`[`&&d.charAt(d.length-1)===`]`?d.slice(1,-1):d,p=r.decodeDotInKeys?f.replace(/%2E/g,`.`):f,m=parseInt(p,10);!r.parseArrays&&p===``?u={0:c}:!isNaN(m)&&d!==p&&String(m)===p&&m>=0&&r.parseArrays&&m<=r.arrayLimit?(u=[],u[m]=c):p!==`__proto__`&&(u[p]=c)}c=u}return c},f=function(e,t,n,i){if(e){var a=n.allowDots?e.replace(/\.([^.[]+)/g,`[$1]`):e,o=/(\[[^[\]]*])/,s=/(\[[^[\]]*])/g,c=n.depth>0&&o.exec(a),l=c?a.slice(0,c.index):a,u=[];if(l){if(!n.plainObjects&&r.call(Object.prototype,l)&&!n.allowPrototypes)return;u.push(l)}for(var f=0;n.depth>0&&(c=s.exec(a))!==null&&f<n.depth;){if(f+=1,!n.plainObjects&&r.call(Object.prototype,c[1].slice(1,-1))&&!n.allowPrototypes)return;u.push(c[1])}if(c){if(n.strictDepth===!0)throw RangeError(`Input depth exceeded depth option of `+n.depth+` and strictDepth is true`);u.push(`[`+a.slice(c.index)+`]`)}return d(u,t,n,i)}},p=function(e){if(!e)return a;if(e.allowEmptyArrays!==void 0&&typeof e.allowEmptyArrays!=`boolean`)throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(e.decodeDotInKeys!==void 0&&typeof e.decodeDotInKeys!=`boolean`)throw TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(e.decoder!==null&&e.decoder!==void 0&&typeof e.decoder!=`function`)throw TypeError(`Decoder has to be a function.`);if(e.charset!==void 0&&e.charset!==`utf-8`&&e.charset!==`iso-8859-1`)throw TypeError(`The charset option must be either utf-8, iso-8859-1, or undefined`);if(e.throwOnLimitExceeded!==void 0&&typeof e.throwOnLimitExceeded!=`boolean`)throw TypeError("`throwOnLimitExceeded` option must be a boolean");var t=e.charset===void 0?a.charset:e.charset,r=e.duplicates===void 0?a.duplicates:e.duplicates;if(r!==`combine`&&r!==`first`&&r!==`last`)throw TypeError(`The duplicates option must be either combine, first, or last`);var i=e.allowDots===void 0?e.decodeDotInKeys===!0?!0:a.allowDots:!!e.allowDots;return{allowDots:i,allowEmptyArrays:typeof e.allowEmptyArrays==`boolean`?!!e.allowEmptyArrays:a.allowEmptyArrays,allowPrototypes:typeof e.allowPrototypes==`boolean`?e.allowPrototypes:a.allowPrototypes,allowSparse:typeof e.allowSparse==`boolean`?e.allowSparse:a.allowSparse,arrayLimit:typeof e.arrayLimit==`number`?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:typeof e.charsetSentinel==`boolean`?e.charsetSentinel:a.charsetSentinel,comma:typeof e.comma==`boolean`?e.comma:a.comma,decodeDotInKeys:typeof e.decodeDotInKeys==`boolean`?e.decodeDotInKeys:a.decodeDotInKeys,decoder:typeof e.decoder==`function`?e.decoder:a.decoder,delimiter:typeof e.delimiter==`string`||n.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:typeof e.depth==`number`||e.depth===!1?+e.depth:a.depth,duplicates:r,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities==`boolean`?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:typeof e.parameterLimit==`number`?e.parameterLimit:a.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects==`boolean`?e.plainObjects:a.plainObjects,strictDepth:typeof e.strictDepth==`boolean`?!!e.strictDepth:a.strictDepth,strictNullHandling:typeof e.strictNullHandling==`boolean`?e.strictNullHandling:a.strictNullHandling,throwOnLimitExceeded:typeof e.throwOnLimitExceeded==`boolean`?e.throwOnLimitExceeded:!1}};t.exports=function(e,t){var r=p(t);if(e===``||e==null)return r.plainObjects?{__proto__:null}:{};for(var i=typeof e==`string`?u(e,r):e,a=r.plainObjects?{__proto__:null}:{},o=Object.keys(i),s=0;s<o.length;++s){var c=o[s],l=f(c,i[c],r,typeof e==`string`);a=n.merge(a,l,r)}return r.allowSparse===!0?a:n.compact(a)}}),W=o((exports,t)=>{var n=ce(),r=le(),i=U();t.exports={formats:i,parse:r,stringify:n}});const G=(e,t)=>e?!t||t.length===0?e:t.reduce((e,t)=>(delete e[t],e),{...e}):{};let K=function(e){return e.JSON=`application/json`,e.FORM_URLENCODED=`application/x-www-form-urlencoded`,e.FORM_DATA=`multipart/form-data`,e.TEXT=`text/plain`,e.HTML=`text/html`,e.XML=`text/xml`,e.CSV=`text/csv`,e.STREAM=`application/octet-stream`,e}({}),q=function(e){return e[e.TIME_OUT=408]=`TIME_OUT`,e[e.ABORTED=499]=`ABORTED`,e[e.NETWORK_ERROR=599]=`NETWORK_ERROR`,e[e.BODY_NULL=502]=`BODY_NULL`,e[e.UNKNOWN=601]=`UNKNOWN`,e}({}),ue=function(e){return e.GET=`GET`,e.POST=`POST`,e.PUT=`PUT`,e.DELETE=`DELETE`,e.PATCH=`PATCH`,e.HEAD=`HEAD`,e.OPTIONS=`OPTIONS`,e}({});var J=class extends Error{#message;#name;#status;#statusText;#response;#config;constructor({message:e,status:t,statusText:n,response:r,config:i,name:a}){super(e),this.#message=e,this.#status=t,this.#statusText=n,this.#response=r,this.#config=i,this.#name=a??e}get message(){return this.#message}get status(){return this.#status}get statusText(){return this.#statusText}get response(){return this.#response}get config(){return this.#config}get name(){return this.#name}},de=c(W(),1),Y=function(e){return e.JSON=`json`,e.BLOB=`blob`,e.TEXT=`text`,e.ARRAY_BUFFER=`arrayBuffer`,e.FORM_DATA=`formData`,e.BYTES=`bytes`,e}(Y||{});function fe(e){let t=new Map;e.forEach(e=>{t.set(e.name,e)});let n=Array.from(t.values()).sort((e,t)=>(e.priority??0)-(t.priority??0)),r=[],i=[],a=[],o=[],s=[],c=[];return n.forEach(e=>{e.beforeRequest&&r.push(e.beforeRequest),e.afterResponse&&i.push(e.afterResponse),e.onError&&a.push(e.onError),e.onFinally&&o.push(e.onFinally),e.transformStreamChunk&&s.push(e.transformStreamChunk),e.beforeStream&&c.push(e.beforeStream)}),{beforeRequestPlugins:r,afterResponsePlugins:i,errorPlugins:a,finallyPlugins:o,beforeStreamPlugins:c,transformStreamChunkPlugins:s}}function pe(e,t,n=`repeat`){if(t){let r=de.default.stringify(t,{arrayFormat:n});r&&(e=e.includes(`?`)?`${e}&${r}`:`${e}?${r}`)}return e}function me(e={},t={}){let n=e instanceof Headers?e:new Headers(e),r=e=>{e instanceof Headers||(e=new Headers(e)),e.forEach((e,t)=>{n.set(t,e)})};return r(t),n}const he=[`PATCH`,`POST`,`PUT`,`DELETE`,`OPTIONS`],X=[`GET`,`HEAD`];function ge(e,t,n,r=`repeat`){if(!e)return null;if(e instanceof FormData)return e;let i=null;if(he.includes(t.toUpperCase())){let t=new Headers(n||{}),a=t.get(`Content-Type`)||K.JSON;if(a.includes(K.JSON))i=JSON.stringify(e);else if(a.includes(K.FORM_URLENCODED))i=de.default.stringify(e,{arrayFormat:r});else if(a.includes(K.FORM_DATA)){let t=new FormData;if(!(e instanceof FormData)&&typeof e==`object`){let n=e;Object.keys(n).forEach(e=>{n.prototype.hasOwnProperty.call(e)&&t.append(e,n[e])}),i=t}}}return X.includes(t.toUpperCase())&&(i=null),i}var Z=class e{#plugins;#controller;#config;#promise;#isTimeout=!1;#executor=null;#finallyCallbacks=new Set;#responseType=`json`;#fullOptions;constructor(e){this.#fullOptions=e;let{plugins:t=[],controller:n,url:r,baseURL:i=``,params:a,data:o,qsArrayFormat:s=`repeat`,withCredentials:c=!1,extra:l,method:u=`GET`,headers:d={}}=e;this.#controller=n??new AbortController,this.#plugins=fe(t),this.#config={url:r,baseURL:i,params:a,data:o,withCredentials:c,extra:l,method:u,headers:d,qsArrayFormat:s},this.#promise=this.#init(e)}#init({timeout:e}){return new Promise(async(t,n)=>{let r=this.#config,{beforeRequestPlugins:i}=this.#plugins,a=null;for(let e of i)try{r=await e(r)}catch(e){a=new J({message:e?.message??`Unknown Request Error in beforeRequest`,status:e?.status??q.UNKNOWN,statusText:e?.statusText??`Unknown Request Error in beforeRequest`,config:this.#config,name:e?.name??`Unknown Request Error in beforeRequest`});break}if(a)return n(a);let o=pe(r.baseURL+r.url,r.params,r.qsArrayFormat),s=ge(r.data,r.method,r.headers,r.qsArrayFormat),c=G(r??{},[`baseURL`,`data`,`extra`,`headers`,`method`,`params`,`url`,`withCredentials`]),l={...c,method:r.method,headers:r.headers,signal:this.#controller.signal,credentials:r.withCredentials?`include`:`omit`,body:s},u=fetch(o,l),d=[u],f=null;if(e){let t=new Promise(t=>{f=setTimeout(()=>{this.#isTimeout=!0,this.#controller?.abort()},e)});d.push(t)}try{let e=await Promise.race(d);e?(e.ok&&t(e),a=new J({message:`Fail Request`,status:e.status,statusText:e.statusText,config:this.#config,name:`Fail Request`,response:e})):a=new J({message:`NETWORK_ERROR`,status:q.NETWORK_ERROR,statusText:`Network Error`,config:this.#config,name:`Network Error`})}catch(e){a=e}finally{a&&n(a),f&&clearTimeout(f)}})}async#createNormalizeError(e){return e instanceof J?e:e instanceof TypeError?e.name===`AbortError`?this.#isTimeout?new J({message:`Request timeout`,status:q.TIME_OUT,statusText:`Request timeout`,config:this.#config,name:`Request timeout`,response:await this.#response}):new J({message:`Request aborted`,status:q.ABORTED,statusText:`Request aborted`,config:this.#config,name:`Request aborted`,response:await this.#response}):new J({message:e.message,status:q.NETWORK_ERROR,statusText:`Unknown Request Error`,config:this.#config,name:e.name,response:await this.#response}):new J({message:e?.message??`Unknown Request Error`,status:q.UNKNOWN,statusText:`Unknown Request Error`,config:this.#config,name:`Unknown Request Error`,response:await this.#response})}async#normalizeError(e){let t=await this.#createNormalizeError(e);for(let e of this.#plugins.errorPlugins)t=await e(t,this.#config);return t.__normalized=!0,t}#execFinally(){for(let e of this.#finallyCallbacks)e();this.#finallyCallbacks.clear()}get#getExecutor(){return this.#executor?this.#executor:this.#response}async#resolve(e){let t=this.#plugins.afterResponsePlugins,n={config:this.#config,response:await this.#response,responseType:this.#responseType,controller:this.#controller,result:e};try{for(let e of t)n=await e(n,this.#config);return n.result}catch(e){return Promise.reject(e)}}then(e,t){return this.#getExecutor.then(async t=>e?.call(this,await this.#resolve(t)),async e=>t?.call(this,await this.#normalizeError(e)))}catch(e){return this.#getExecutor.catch(e)}finally(e){this.#finallyCallbacks.add(e)}abort(){this.#controller.abort()}get#response(){return this.#promise.then(e=>e.clone()).catch(async e=>{throw await this.#normalizeError(e)})}json(){return this.#then(Y.JSON,this.#response.then(e=>e.json()))}blob(){return this.#then(Y.BLOB,this.#response.then(e=>e.blob()))}text(){return this.#then(Y.TEXT,this.#response.then(e=>e.text()))}arrayBuffer(){return this.#then(Y.ARRAY_BUFFER,this.#response.then(e=>e.arrayBuffer()))}#then(e,t){return this.#executor=t.then(t=>(this.#responseType=e,this.#resolve(t))).catch(async t=>{throw this.#responseType=e,t.__normalized?t:await this.#normalizeError(t)}).finally(this.#execFinally.bind(this)),this.#executor}formData(){return this.#then(Y.FORM_DATA,this.#response.then(e=>e.formData()))}bytes(){return this.#then(Y.BYTES,this.#response.then(e=>e.bytes()))}async*stream(){let e=(await this.#response)?.body;if(!e)throw Error(`Response body is null`);for(let t of this.#plugins.beforeStreamPlugins)e=await t(e,this.#config);let t=e.getReader();if(!t)throw Error(`Response body reader is null`);try{for(;;){let{done:e,value:n}=await t.read();if(e)break;let r={source:n,result:n,error:null};try{for(let e of this.#plugins.transformStreamChunkPlugins)r=await e(r,this.#config);if(r.result&&(_e(r.result)||ve(r.result)))for await(let e of r.result){let t={source:r.source,result:e,error:null};yield t}else yield r}catch(e){r.error=e,r.result=null,yield r}}}catch(e){return this.#normalizeError(e)}finally{t.releaseLock(),this.#execFinally()}}retry(){let{controller:t,...n}=this.#fullOptions;return new e(n)}get response(){return this.#response}};function _e(e){return e[Symbol.toStringTag]===`Generator`&&typeof e.next==`function`&&typeof e.return==`function`&&typeof e.throw==`function`&&typeof e[Symbol.iterator]==`function`}function ve(e){return e[Symbol.toStringTag]===`AsyncGenerator`&&typeof e.next==`function`&&typeof e.return==`function`&&typeof e.throw==`function`&&typeof e[Symbol.asyncIterator]==`function`}function ye(e){return new Z(e)}var be=class{#timeout;#baseURL;#commonHeaders;#queue=[];#plugins=[];#withCredentials;constructor({timeout:e=0,baseURL:t=``,headers:n={},plugins:r=[],withCredentials:i=!1}){this.#timeout=e,this.#baseURL=t,this.#commonHeaders=n,this.#plugins=r,this.#withCredentials=i,this.request=this.request.bind(this),this.get=this.get.bind(this),this.head=this.head.bind(this),this.options=this.options.bind(this),this.delete=this.delete.bind(this),this.post=this.post.bind(this),this.put=this.put.bind(this),this.patch=this.patch.bind(this),this.abortAll=this.abortAll.bind(this),this.use=this.use.bind(this)}use(e){return this.#plugins.push(e),this}request(e,{timeout:t,headers:n,method:r=`GET`,params:i={},data:a={},qsArrayFormat:o,withCredentials:s,extra:c={}}={}){let l=new AbortController;this.#queue.push(l);let u=ye({url:e,baseURL:this.#baseURL,timeout:t??this.#timeout,plugins:this.#plugins,headers:me(this.#commonHeaders,n),controller:l,method:r,params:i,data:a,qsArrayFormat:o,withCredentials:s??this.#withCredentials,extra:c});return u.finally(()=>{this.#queue=this.#queue.filter(e=>e!==l)}),u}#requestWithParams(e,t={},n={}){return this.request(e,{...n,params:t})}#requestWithBody(e,t={},n={}){return this.request(e,{...n,data:t})}get(e,t={},n){return this.#requestWithParams(e,t,{...n,method:`GET`})}head(e,t={},n){return this.#requestWithParams(e,t,{...n,method:`HEAD`})}options(e,t={},n){return this.request(e,{...n,method:`OPTIONS`,params:t})}delete(e,t){return this.request(e,{...t,method:`DELETE`})}post(e,t,n){return this.#requestWithBody(e,t,{...n,method:`POST`})}upload(e,t,n){let r=new FormData;for(let e in t)if(Object.prototype.hasOwnProperty.call(t,e)){let n=t[e];n instanceof File||n instanceof Blob?r.append(e,n):r.append(e,String(n))}return this.#requestWithBody(e,r,{...n,method:`POST`})}put(e,t,n){return this.#requestWithBody(e,t,{...n,method:`PUT`})}patch(e,t,n){return this.#requestWithBody(e,t,{...n,method:`PATCH`})}abortAll(){this.#queue.forEach(e=>e.abort()),this.#queue=[]}};function Q(e,t={}){return ye({url:e,baseURL:``,...t})}function xe(e,t,n={}){return Q(e,{...n,params:t})}function Se(e,t=null,n={}){return Q(e,{...n,data:t})}const Ce=Q;function we(e,t={},n){return xe(e,t,{...n,method:`GET`})}function Te(e,t={},n){return xe(e,t,{...n,method:`HEAD`})}function Ee(e,t={},n){return Q(e,{...n,params:t,method:`OPTIONS`})}function De(e,t){return Q(e,{...t,method:`DELETE`})}function Oe(e,t,n){return Se(e,t,{...n,method:`POST`})}function ke(e,t,n){let r=new FormData;for(let e in t)if(Object.prototype.hasOwnProperty.call(t,e)){let n=t[e];n instanceof File||n instanceof Blob?r.append(e,n):r.append(e,String(n))}return Se(e,r,{...n,method:`POST`})}function Ae(e,t,n){return Se(e,t,{...n,method:`PUT`})}function je(e,t,n){return Se(e,t,{...n,method:`PATCH`})}const $=Q;$.create=e=>{let t=new be(e),n=t.request.bind(void 0);return Object.assign(n,be.prototype,t),n},$.get=we,$.head=Te,$.options=Ee,$.delete=De,$.post=Oe,$.put=Ae,$.patch=je,$.upload=ke;var Me=$,Ne=Me;export{K as ContentType,ue as Method,J as ResponseError,q as StatusCode,Ne as default,De as del,we as get,Te as head,Ee as options,je as patch,Oe as post,Ae as put,Ce as request,ke as upload};
|
|
5
5
|
//# sourceMappingURL=index.mjs.map
|
package/dist/umd/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
(function(e,t){typeof exports==`object`&&typeof module<`u`?t(exports):typeof define==`function`&&define.amd?define([`exports`],t):(e=typeof globalThis<`u`?globalThis:e||self,t(e.HookFetch={}))})(this,function(exports){Object.defineProperty(exports,`__esModule`,{value:!0});var t=Object.create,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,a=Object.getPrototypeOf,o=Object.prototype.hasOwnProperty,s=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),c=(e,t,a,s)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var c=i(t),l=0,u=c.length,d;l<u;l++)d=c[l],!o.call(e,d)&&d!==a&&n(e,d,{get:(e=>t[e]).bind(null,d),enumerable:!(s=r(t,d))||s.enumerable});return e},l=(e,r,i)=>(i=e==null?{}:t(a(e)),c(r||!e||!e.__esModule?n(i,`default`,{value:e,enumerable:!0}):i,e)),u=s((exports,t)=>{t.exports=TypeError}),d=s(()=>{}),f=s((exports,t)=>{var n=typeof Map==`function`&&Map.prototype,r=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,`size`):null,i=n&&r&&typeof r.get==`function`?r.get:null,a=n&&Map.prototype.forEach,o=typeof Set==`function`&&Set.prototype,s=Object.getOwnPropertyDescriptor&&o?Object.getOwnPropertyDescriptor(Set.prototype,`size`):null,c=o&&s&&typeof s.get==`function`?s.get:null,l=o&&Set.prototype.forEach,u=typeof WeakMap==`function`&&WeakMap.prototype,f=u?WeakMap.prototype.has:null,p=typeof WeakSet==`function`&&WeakSet.prototype,m=p?WeakSet.prototype.has:null,h=typeof WeakRef==`function`&&WeakRef.prototype,g=h?WeakRef.prototype.deref:null,_=Boolean.prototype.valueOf,v=Object.prototype.toString,y=Function.prototype.toString,b=String.prototype.match,x=String.prototype.slice,S=String.prototype.replace,C=String.prototype.toUpperCase,w=String.prototype.toLowerCase,T=RegExp.prototype.test,E=Array.prototype.concat,D=Array.prototype.join,ee=Array.prototype.slice,O=Math.floor,k=typeof BigInt==`function`?BigInt.prototype.valueOf:null,A=Object.getOwnPropertySymbols,j=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?Symbol.prototype.toString:null,M=typeof Symbol==`function`&&typeof Symbol.iterator==`object`,N=typeof Symbol==`function`&&Symbol.toStringTag&&(typeof Symbol.toStringTag===M||`symbol`)?Symbol.toStringTag:null,te=Object.prototype.propertyIsEnumerable,P=(typeof Reflect==`function`?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function F(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||T.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e==`number`){var r=e<0?-O(-e):O(e);if(r!==e){var i=String(r),a=x.call(t,i.length+1);return S.call(i,n,`$&_`)+`.`+S.call(S.call(a,/([0-9]{3})/g,`$&_`),/_$/,``)}}return S.call(t,n,`$&_`)}var I=d(),L=I.custom,R=ce(L)?L:null,ne={__proto__:null,double:`"`,single:`'`},z={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};t.exports=function e(t,n,r,o){var s=n||{};if(K(s,`quoteStyle`)&&!K(ne,s.quoteStyle))throw TypeError(`option "quoteStyle" must be "single" or "double"`);if(K(s,`maxStringLength`)&&(typeof s.maxStringLength==`number`?s.maxStringLength<0&&s.maxStringLength!==1/0:s.maxStringLength!==null))throw TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var u=K(s,`customInspect`)?s.customInspect:!0;if(typeof u!=`boolean`&&u!==`symbol`)throw TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(K(s,`indent`)&&s.indent!==null&&s.indent!==` `&&!(parseInt(s.indent,10)===s.indent&&s.indent>0))throw TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(K(s,`numericSeparator`)&&typeof s.numericSeparator!=`boolean`)throw TypeError('option "numericSeparator", if provided, must be `true` or `false`');var d=s.numericSeparator;if(t===void 0)return`undefined`;if(t===null)return`null`;if(typeof t==`boolean`)return t?`true`:`false`;if(typeof t==`string`)return me(t,s);if(typeof t==`number`){if(t===0)return 1/0/t>0?`0`:`-0`;var f=String(t);return d?F(t,f):f}if(typeof t==`bigint`){var p=String(t)+`n`;return d?F(t,p):p}var m=s.depth===void 0?5:s.depth;if(r===void 0&&(r=0),r>=m&&m>0&&typeof t==`object`)return H(t)?`[Array]`:`[Object]`;var h=be(s,r);if(o===void 0)o=[];else if(ue(o,t)>=0)return`[Circular]`;function g(t,n,i){if(n&&(o=ee.call(o),o.push(n)),i){var a={depth:s.depth};return K(s,`quoteStyle`)&&(a.quoteStyle=s.quoteStyle),e(t,a,r+1,o)}return e(t,s,r+1,o)}if(typeof t==`function`&&!ae(t)){var v=J(t),y=Q(t,g);return`[Function`+(v?`: `+v:` (anonymous)`)+`]`+(y.length>0?` { `+D.call(y,`, `)+` }`:``)}if(ce(t)){var b=M?S.call(String(t),/^(Symbol\(.*\))_[^)]*$/,`$1`):j.call(t);return typeof t==`object`&&!M?ge(b):b}if(pe(t)){for(var C=`<`+w.call(String(t.nodeName)),T=t.attributes||[],O=0;O<T.length;O++)C+=` `+T[O].name+`=`+B(re(T[O].value),`double`,s);return C+=`>`,t.childNodes&&t.childNodes.length&&(C+=`...`),C+=`</`+w.call(String(t.nodeName))+`>`,C}if(H(t)){if(t.length===0)return`[]`;var A=Q(t,g);return h&&!ye(A)?`[`+xe(A,h)+`]`:`[ `+D.call(A,`, `)+` ]`}if(U(t)){var L=Q(t,g);return!(`cause`in Error.prototype)&&`cause`in t&&!te.call(t,`cause`)?`{ [`+String(t)+`] `+D.call(E.call(`[cause]: `+g(t.cause),L),`, `)+` }`:L.length===0?`[`+String(t)+`]`:`{ [`+String(t)+`] `+D.call(L,`, `)+` }`}if(typeof t==`object`&&u){if(R&&typeof t[R]==`function`&&I)return I(t,{depth:m-r});if(u!==`symbol`&&typeof t.inspect==`function`)return t.inspect()}if(Y(t)){var z=[];return a&&a.call(t,function(e,n){z.push(g(n,t,!0)+` => `+g(e,t))}),ve(`Map`,i.call(t),z,h)}if(de(t)){var V=[];return l&&l.call(t,function(e){V.push(g(e,t))}),ve(`Set`,c.call(t),V,h)}if(X(t))return _e(`WeakMap`);if(fe(t))return _e(`WeakSet`);if(Z(t))return _e(`WeakRef`);if(oe(t))return ge(g(Number(t)));if(le(t))return ge(g(k.call(t)));if(se(t))return ge(_.call(t));if(W(t))return ge(g(String(t)));if(typeof window<`u`&&t===window)return`{ [object Window] }`;if(typeof globalThis<`u`&&t===globalThis||typeof global<`u`&&t===global)return`{ [object globalThis] }`;if(!ie(t)&&!ae(t)){var G=Q(t,g),he=P?P(t)===Object.prototype:t instanceof Object||t.constructor===Object,Se=t instanceof Object?``:`null prototype`,Ce=!he&&N&&Object(t)===t&&N in t?x.call(q(t),8,-1):Se?`Object`:``,we=he||typeof t.constructor!=`function`?``:t.constructor.name?t.constructor.name+` `:``,Te=we+(Ce||Se?`[`+D.call(E.call([],Ce||[],Se||[]),`: `)+`] `:``);return G.length===0?Te+`{}`:h?Te+`{`+xe(G,h)+`}`:Te+`{ `+D.call(G,`, `)+` }`}return String(t)};function B(e,t,n){var r=n.quoteStyle||t,i=ne[r];return i+e+i}function re(e){return S.call(String(e),/"/g,`"`)}function V(e){return!N||!(typeof e==`object`&&(N in e||e[N]!==void 0))}function H(e){return q(e)===`[object Array]`&&V(e)}function ie(e){return q(e)===`[object Date]`&&V(e)}function ae(e){return q(e)===`[object RegExp]`&&V(e)}function U(e){return q(e)===`[object Error]`&&V(e)}function W(e){return q(e)===`[object String]`&&V(e)}function oe(e){return q(e)===`[object Number]`&&V(e)}function se(e){return q(e)===`[object Boolean]`&&V(e)}function ce(e){if(M)return e&&typeof e==`object`&&e instanceof Symbol;if(typeof e==`symbol`)return!0;if(!e||typeof e!=`object`||!j)return!1;try{return j.call(e),!0}catch{}return!1}function le(e){if(!e||typeof e!=`object`||!k)return!1;try{return k.call(e),!0}catch{}return!1}var G=Object.prototype.hasOwnProperty||function(e){return e in this};function K(e,t){return G.call(e,t)}function q(e){return v.call(e)}function J(e){if(e.name)return e.name;var t=b.call(y.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function ue(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function Y(e){if(!i||!e||typeof e!=`object`)return!1;try{i.call(e);try{c.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function X(e){if(!f||!e||typeof e!=`object`)return!1;try{f.call(e,f);try{m.call(e,m)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function Z(e){if(!g||!e||typeof e!=`object`)return!1;try{return g.call(e),!0}catch{}return!1}function de(e){if(!c||!e||typeof e!=`object`)return!1;try{c.call(e);try{i.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function fe(e){if(!m||!e||typeof e!=`object`)return!1;try{m.call(e,m);try{f.call(e,f)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function pe(e){return!e||typeof e!=`object`?!1:typeof HTMLElement<`u`&&e instanceof HTMLElement?!0:typeof e.nodeName==`string`&&typeof e.getAttribute==`function`}function me(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r=`... `+n+` more character`+(n>1?`s`:``);return me(x.call(e,0,t.maxStringLength),t)+r}var i=z[t.quoteStyle||`single`];i.lastIndex=0;var a=S.call(S.call(e,i,`\\$1`),/[\x00-\x1f]/g,he);return B(a,`single`,t)}function he(e){var t=e.charCodeAt(0),n={8:`b`,9:`t`,10:`n`,12:`f`,13:`r`}[t];return n?`\\`+n:`\\x`+(t<16?`0`:``)+C.call(t.toString(16))}function ge(e){return`Object(`+e+`)`}function _e(e){return e+` { ? }`}function ve(e,t,n,r){var i=r?xe(n,r):D.call(n,`, `);return e+` (`+t+`) {`+i+`}`}function ye(e){for(var t=0;t<e.length;t++)if(ue(e[t],`
|
|
2
2
|
`)>=0)return!1;return!0}function be(e,t){var n;if(e.indent===` `)n=` `;else if(typeof e.indent==`number`&&e.indent>0)n=D.call(Array(e.indent+1),` `);else return null;return{base:n,prev:D.call(Array(t+1),n)}}function xe(e,t){if(e.length===0)return``;var n=`
|
|
3
3
|
`+t.prev+t.base;return n+D.call(e,`,`+n)+`
|
|
4
|
-
`+t.prev}function Q(e,t){var n=H(e),r=[];if(n){r.length=e.length;for(var i=0;i<e.length;i++)r[i]=K(e,i)?t(e[i],e):``}var a=typeof A==`function`?A(e):[],o;if(M){o={};for(var s=0;s<a.length;s++)o[`$`+a[s]]=a[s]}for(var c in e){if(!K(e,c)||n&&String(Number(c))===c&&c<e.length||M&&o[`$`+c]instanceof Symbol)continue;T.call(/[^\w$]/,c)?r.push(t(c,e)+`: `+t(e[c],e)):r.push(c+`: `+t(e[c],e))}if(typeof A==`function`)for(var l=0;l<a.length;l++)te.call(e,a[l])&&r.push(`[`+t(a[l])+`]: `+t(e[a[l]],e));return r}}),p=s((exports,t)=>{var n=f(),r=u(),i=function(e,t,n){for(var r=e,i;(i=r.next)!=null;r=i)if(i.key===t)return r.next=i.next,n||(i.next=e.next,e.next=i),i},a=function(e,t){if(e){var n=i(e,t);return n&&n.value}},o=function(e,t,n){var r=i(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}},s=function(e,t){return e?!!i(e,t):!1},c=function(e,t){if(e)return i(e,t,!0)};t.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new r(`Side channel does not contain `+n(e))},delete:function(t){var n=e&&e.next,r=c(e,t);return r&&n&&n===r&&(e=void 0),!!r},get:function(t){return a(e,t)},has:function(t){return s(e,t)},set:function(t,n){e||={next:void 0},o(e,t,n)}};return t}}),m=s((exports,t)=>{t.exports=Object}),h=s((exports,t)=>{t.exports=Error}),g=s((exports,t)=>{t.exports=EvalError}),_=s((exports,t)=>{t.exports=RangeError}),v=s((exports,t)=>{t.exports=ReferenceError}),y=s((exports,t)=>{t.exports=SyntaxError}),b=s((exports,t)=>{t.exports=URIError}),x=s((exports,t)=>{t.exports=Math.abs}),S=s((exports,t)=>{t.exports=Math.floor}),C=s((exports,t)=>{t.exports=Math.max}),w=s((exports,t)=>{t.exports=Math.min}),T=s((exports,t)=>{t.exports=Math.pow}),E=s((exports,t)=>{t.exports=Math.round}),D=s((exports,t)=>{t.exports=Number.isNaN||function(e){return e!==e}}),ee=s((exports,t)=>{var n=D();t.exports=function(e){return n(e)||e===0?e:e<0?-1:1}}),O=s((exports,t)=>{t.exports=Object.getOwnPropertyDescriptor}),k=s((exports,t)=>{var n=O();if(n)try{n([],`length`)}catch{n=null}t.exports=n}),A=s((exports,t)=>{var n=Object.defineProperty||!1;if(n)try{n({},`a`,{value:1})}catch{n=!1}t.exports=n}),j=s((exports,t)=>{t.exports=function(){if(typeof Symbol!=`function`||typeof Object.getOwnPropertySymbols!=`function`)return!1;if(typeof Symbol.iterator==`symbol`)return!0;var e={},t=Symbol(`test`),n=Object(t);if(typeof t==`string`||Object.prototype.toString.call(t)!==`[object Symbol]`||Object.prototype.toString.call(n)!==`[object Symbol]`)return!1;var r=42;for(var i in e[t]=r,e)return!1;if(typeof Object.keys==`function`&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames==`function`&&Object.getOwnPropertyNames(e).length!==0)return!1;var a=Object.getOwnPropertySymbols(e);if(a.length!==1||a[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor==`function`){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==r||o.enumerable!==!0)return!1}return!0}}),M=s((exports,t)=>{var n=typeof Symbol<`u`&&Symbol,r=j();t.exports=function(){return typeof n!=`function`||typeof Symbol!=`function`||typeof n(`foo`)!=`symbol`||typeof Symbol(`bar`)!=`symbol`?!1:r()}}),N=s((exports,t)=>{t.exports=typeof Reflect<`u`&&Reflect.getPrototypeOf||null}),te=s((exports,t)=>{var n=m();t.exports=n.getPrototypeOf||null}),P=s((exports,t)=>{var n=`Function.prototype.bind called on incompatible `,r=Object.prototype.toString,i=Math.max,a=`[object Function]`,o=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var i=0;i<t.length;i+=1)n[i+e.length]=t[i];return n},s=function(e,t){for(var n=[],r=t||0,i=0;r<e.length;r+=1,i+=1)n[i]=e[r];return n},c=function(e,t){for(var n=``,r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n};t.exports=function(e){var t=this;if(typeof t!=`function`||r.apply(t)!==a)throw TypeError(n+t);for(var l=s(arguments,1),u,d=function(){if(this instanceof u){var n=t.apply(this,o(l,arguments));return Object(n)===n?n:this}return t.apply(e,o(l,arguments))},f=i(0,t.length-l.length),p=[],m=0;m<f;m++)p[m]=`$`+m;if(u=Function(`binder`,`return function (`+c(p,`,`)+`){ return binder.apply(this,arguments); }`)(d),t.prototype){var h=function(){};h.prototype=t.prototype,u.prototype=new h,h.prototype=null}return u}}),F=s((exports,t)=>{var n=P();t.exports=Function.prototype.bind||n}),I=s((exports,t)=>{t.exports=Function.prototype.call}),L=s((exports,t)=>{t.exports=Function.prototype.apply}),R=s((exports,t)=>{t.exports=typeof Reflect<`u`&&Reflect&&Reflect.apply}),ne=s((exports,t)=>{var n=F(),r=L(),i=I(),a=R();t.exports=a||n.call(i,r)}),z=s((exports,t)=>{var n=F(),r=u(),i=I(),a=ne();t.exports=function(e){if(e.length<1||typeof e[0]!=`function`)throw new r(`a function is required`);return a(n,i,e)}}),B=s((exports,t)=>{var n=z(),r=k(),i;try{i=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!=`object`||!(`code`in e)||e.code!==`ERR_PROTO_ACCESS`)throw e}var a=!!i&&r&&r(Object.prototype,`__proto__`),o=Object,s=o.getPrototypeOf;t.exports=a&&typeof a.get==`function`?n([a.get]):typeof s==`function`?function(e){return s(e==null?e:o(e))}:!1}),re=s((exports,t)=>{var n=N(),r=te(),i=B();t.exports=n?function(e){return n(e)}:r?function(e){if(!e||typeof e!=`object`&&typeof e!=`function`)throw TypeError(`getProto: not an object`);return r(e)}:i?function(e){return i(e)}:null}),V=s((exports,t)=>{var n=Function.prototype.call,r=Object.prototype.hasOwnProperty,i=F();t.exports=i.call(n,r)}),H=s((exports,t)=>{var n,r=m(),i=h(),a=g(),o=_(),s=v(),c=y(),l=u(),d=b(),f=x(),p=S(),D=C(),O=w(),j=T(),P=E(),R=ee(),ne=Function,z=function(e){try{return ne(`"use strict"; return (`+e+`).constructor;`)()}catch{}},B=k(),H=A(),ie=function(){throw new l},ae=B?function(){try{return arguments.callee,ie}catch{try{return B(arguments,`callee`).get}catch{return ie}}}():ie,U=M()(),W=re(),oe=te(),se=N(),ce=L(),le=I(),G={},K=typeof Uint8Array>`u`||!W?n:W(Uint8Array),q={__proto__:null,"%AggregateError%":typeof AggregateError>`u`?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>`u`?n:ArrayBuffer,"%ArrayIteratorPrototype%":U&&W?W([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":G,"%AsyncGenerator%":G,"%AsyncGeneratorFunction%":G,"%AsyncIteratorPrototype%":G,"%Atomics%":typeof Atomics>`u`?n:Atomics,"%BigInt%":typeof BigInt>`u`?n:BigInt,"%BigInt64Array%":typeof BigInt64Array>`u`?n:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>`u`?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>`u`?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":a,"%Float16Array%":typeof Float16Array>`u`?n:Float16Array,"%Float32Array%":typeof Float32Array>`u`?n:Float32Array,"%Float64Array%":typeof Float64Array>`u`?n:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>`u`?n:FinalizationRegistry,"%Function%":ne,"%GeneratorFunction%":G,"%Int8Array%":typeof Int8Array>`u`?n:Int8Array,"%Int16Array%":typeof Int16Array>`u`?n:Int16Array,"%Int32Array%":typeof Int32Array>`u`?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":U&&W?W(W([][Symbol.iterator]())):n,"%JSON%":typeof JSON==`object`?JSON:n,"%Map%":typeof Map>`u`?n:Map,"%MapIteratorPrototype%":typeof Map>`u`||!U||!W?n:W(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":r,"%Object.getOwnPropertyDescriptor%":B,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>`u`?n:Promise,"%Proxy%":typeof Proxy>`u`?n:Proxy,"%RangeError%":o,"%ReferenceError%":s,"%Reflect%":typeof Reflect>`u`?n:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>`u`?n:Set,"%SetIteratorPrototype%":typeof Set>`u`||!U||!W?n:W(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>`u`?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":U&&W?W(``[Symbol.iterator]()):n,"%Symbol%":U?Symbol:n,"%SyntaxError%":c,"%ThrowTypeError%":ae,"%TypedArray%":K,"%TypeError%":l,"%Uint8Array%":typeof Uint8Array>`u`?n:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>`u`?n:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>`u`?n:Uint16Array,"%Uint32Array%":typeof Uint32Array>`u`?n:Uint32Array,"%URIError%":d,"%WeakMap%":typeof WeakMap>`u`?n:WeakMap,"%WeakRef%":typeof WeakRef>`u`?n:WeakRef,"%WeakSet%":typeof WeakSet>`u`?n:WeakSet,"%Function.prototype.call%":le,"%Function.prototype.apply%":ce,"%Object.defineProperty%":H,"%Object.getPrototypeOf%":oe,"%Math.abs%":f,"%Math.floor%":p,"%Math.max%":D,"%Math.min%":O,"%Math.pow%":j,"%Math.round%":P,"%Math.sign%":R,"%Reflect.getPrototypeOf%":se};if(W)try{null.error}catch(e){var J=W(W(e));q[`%Error.prototype%`]=J}var ue=function e(t){var n;if(t===`%AsyncFunction%`)n=z(`async function () {}`);else if(t===`%GeneratorFunction%`)n=z(`function* () {}`);else if(t===`%AsyncGeneratorFunction%`)n=z(`async function* () {}`);else if(t===`%AsyncGenerator%`){var r=e(`%AsyncGeneratorFunction%`);r&&(n=r.prototype)}else if(t===`%AsyncIteratorPrototype%`){var i=e(`%AsyncGenerator%`);i&&W&&(n=W(i.prototype))}return q[t]=n,n},Y={__proto__:null,"%ArrayBufferPrototype%":[`ArrayBuffer`,`prototype`],"%ArrayPrototype%":[`Array`,`prototype`],"%ArrayProto_entries%":[`Array`,`prototype`,`entries`],"%ArrayProto_forEach%":[`Array`,`prototype`,`forEach`],"%ArrayProto_keys%":[`Array`,`prototype`,`keys`],"%ArrayProto_values%":[`Array`,`prototype`,`values`],"%AsyncFunctionPrototype%":[`AsyncFunction`,`prototype`],"%AsyncGenerator%":[`AsyncGeneratorFunction`,`prototype`],"%AsyncGeneratorPrototype%":[`AsyncGeneratorFunction`,`prototype`,`prototype`],"%BooleanPrototype%":[`Boolean`,`prototype`],"%DataViewPrototype%":[`DataView`,`prototype`],"%DatePrototype%":[`Date`,`prototype`],"%ErrorPrototype%":[`Error`,`prototype`],"%EvalErrorPrototype%":[`EvalError`,`prototype`],"%Float32ArrayPrototype%":[`Float32Array`,`prototype`],"%Float64ArrayPrototype%":[`Float64Array`,`prototype`],"%FunctionPrototype%":[`Function`,`prototype`],"%Generator%":[`GeneratorFunction`,`prototype`],"%GeneratorPrototype%":[`GeneratorFunction`,`prototype`,`prototype`],"%Int8ArrayPrototype%":[`Int8Array`,`prototype`],"%Int16ArrayPrototype%":[`Int16Array`,`prototype`],"%Int32ArrayPrototype%":[`Int32Array`,`prototype`],"%JSONParse%":[`JSON`,`parse`],"%JSONStringify%":[`JSON`,`stringify`],"%MapPrototype%":[`Map`,`prototype`],"%NumberPrototype%":[`Number`,`prototype`],"%ObjectPrototype%":[`Object`,`prototype`],"%ObjProto_toString%":[`Object`,`prototype`,`toString`],"%ObjProto_valueOf%":[`Object`,`prototype`,`valueOf`],"%PromisePrototype%":[`Promise`,`prototype`],"%PromiseProto_then%":[`Promise`,`prototype`,`then`],"%Promise_all%":[`Promise`,`all`],"%Promise_reject%":[`Promise`,`reject`],"%Promise_resolve%":[`Promise`,`resolve`],"%RangeErrorPrototype%":[`RangeError`,`prototype`],"%ReferenceErrorPrototype%":[`ReferenceError`,`prototype`],"%RegExpPrototype%":[`RegExp`,`prototype`],"%SetPrototype%":[`Set`,`prototype`],"%SharedArrayBufferPrototype%":[`SharedArrayBuffer`,`prototype`],"%StringPrototype%":[`String`,`prototype`],"%SymbolPrototype%":[`Symbol`,`prototype`],"%SyntaxErrorPrototype%":[`SyntaxError`,`prototype`],"%TypedArrayPrototype%":[`TypedArray`,`prototype`],"%TypeErrorPrototype%":[`TypeError`,`prototype`],"%Uint8ArrayPrototype%":[`Uint8Array`,`prototype`],"%Uint8ClampedArrayPrototype%":[`Uint8ClampedArray`,`prototype`],"%Uint16ArrayPrototype%":[`Uint16Array`,`prototype`],"%Uint32ArrayPrototype%":[`Uint32Array`,`prototype`],"%URIErrorPrototype%":[`URIError`,`prototype`],"%WeakMapPrototype%":[`WeakMap`,`prototype`],"%WeakSetPrototype%":[`WeakSet`,`prototype`]},X=F(),Z=V(),de=X.call(le,Array.prototype.concat),fe=X.call(ce,Array.prototype.splice),pe=X.call(le,String.prototype.replace),me=X.call(le,String.prototype.slice),he=X.call(le,RegExp.prototype.exec),ge=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,_e=/\\(\\)?/g,ve=function(e){var t=me(e,0,1),n=me(e,-1);if(t===`%`&&n!==`%`)throw new c("invalid intrinsic syntax, expected closing `%`");if(n===`%`&&t!==`%`)throw new c("invalid intrinsic syntax, expected opening `%`");var r=[];return pe(e,ge,function(e,t,n,i){r[r.length]=n?pe(i,_e,`$1`):t||e}),r},ye=function(e,t){var n=e,r;if(Z(Y,n)&&(r=Y[n],n=`%`+r[0]+`%`),Z(q,n)){var i=q[n];if(i===G&&(i=ue(n)),i===void 0&&!t)throw new l(`intrinsic `+e+` exists, but is not available. Please file an issue!`);return{alias:r,name:n,value:i}}throw new c(`intrinsic `+e+` does not exist!`)};t.exports=function(e,t){if(typeof e!=`string`||e.length===0)throw new l(`intrinsic name must be a non-empty string`);if(arguments.length>1&&typeof t!=`boolean`)throw new l(`"allowMissing" argument must be a boolean`);if(he(/^%?[^%]*%?$/,e)===null)throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=ve(e),r=n.length>0?n[0]:``,i=ye(`%`+r+`%`,t),a=i.name,o=i.value,s=!1,u=i.alias;u&&(r=u[0],fe(n,de([0,1],u)));for(var d=1,f=!0;d<n.length;d+=1){var p=n[d],m=me(p,0,1),h=me(p,-1);if((m===`"`||m===`'`||m==="`"||h===`"`||h===`'`||h==="`")&&m!==h)throw new c(`property names with quotes must have matching quotes`);if((p===`constructor`||!f)&&(s=!0),r+=`.`+p,a=`%`+r+`%`,Z(q,a))o=q[a];else if(o!=null){if(!(p in o)){if(!t)throw new l(`base intrinsic for `+e+` exists, but the property is not available.`);return}if(B&&d+1>=n.length){var g=B(o,p);f=!!g,o=f&&`get`in g&&!(`originalValue`in g.get)?g.get:o[p]}else f=Z(o,p),o=o[p];f&&!s&&(q[a]=o)}}return o}}),ie=s((exports,t)=>{var n=H(),r=z(),i=r([n(`%String.prototype.indexOf%`)]);t.exports=function(e,t){var a=n(e,!!t);return typeof a==`function`&&i(e,`.prototype.`)>-1?r([a]):a}}),ae=s((exports,t)=>{var n=H(),r=ie(),i=f(),a=u(),o=n(`%Map%`,!0),s=r(`Map.prototype.get`,!0),c=r(`Map.prototype.set`,!0),l=r(`Map.prototype.has`,!0),d=r(`Map.prototype.delete`,!0),p=r(`Map.prototype.size`,!0);t.exports=!!o&&function(){var e,t={assert:function(e){if(!t.has(e))throw new a(`Side channel does not contain `+i(e))},delete:function(t){if(e){var n=d(e,t);return p(e)===0&&(e=void 0),n}return!1},get:function(t){if(e)return s(e,t)},has:function(t){return e?l(e,t):!1},set:function(t,n){e||=new o,c(e,t,n)}};return t}}),U=s((exports,t)=>{var n=H(),r=ie(),i=f(),a=ae(),o=u(),s=n(`%WeakMap%`,!0),c=r(`WeakMap.prototype.get`,!0),l=r(`WeakMap.prototype.set`,!0),d=r(`WeakMap.prototype.has`,!0),p=r(`WeakMap.prototype.delete`,!0);t.exports=s?function(){var e,t,n={assert:function(e){if(!n.has(e))throw new o(`Side channel does not contain `+i(e))},delete:function(n){if(s&&n&&(typeof n==`object`||typeof n==`function`)){if(e)return p(e,n)}else if(a&&t)return t.delete(n);return!1},get:function(n){return s&&n&&(typeof n==`object`||typeof n==`function`)&&e?c(e,n):t&&t.get(n)},has:function(n){return s&&n&&(typeof n==`object`||typeof n==`function`)&&e?d(e,n):!!t&&t.has(n)},set:function(n,r){s&&n&&(typeof n==`object`||typeof n==`function`)?(e||=new s,l(e,n,r)):a&&(t||=a(),t.set(n,r))}};return n}:a}),W=s((exports,t)=>{var n=u(),r=f(),i=p(),a=ae(),o=U(),s=o||a||i;t.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new n(`Side channel does not contain `+r(e))},delete:function(t){return!!e&&e.delete(t)},get:function(t){return e&&e.get(t)},has:function(t){return!!e&&e.has(t)},set:function(t,n){e||=s(),e.set(t,n)}};return t}}),oe=s((exports,t)=>{var n=String.prototype.replace,r=/%20/g,i={RFC1738:`RFC1738`,RFC3986:`RFC3986`};t.exports={default:i.RFC3986,formatters:{RFC1738:function(e){return n.call(e,r,`+`)},RFC3986:function(e){return String(e)}},RFC1738:i.RFC1738,RFC3986:i.RFC3986}}),se=s((exports,t)=>{var n=oe(),r=Object.prototype.hasOwnProperty,i=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push(`%`+((t<16?`0`:``)+t.toString(16)).toUpperCase());return e}(),o=function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(i(n)){for(var r=[],a=0;a<n.length;++a)n[a]!==void 0&&r.push(n[a]);t.obj[t.prop]=r}}},s=function(e,t){for(var n=t&&t.plainObjects?{__proto__:null}:{},r=0;r<e.length;++r)e[r]!==void 0&&(n[r]=e[r]);return n},c=function e(t,n,a){if(!n)return t;if(typeof n!=`object`&&typeof n!=`function`){if(i(t))t.push(n);else if(t&&typeof t==`object`)(a&&(a.plainObjects||a.allowPrototypes)||!r.call(Object.prototype,n))&&(t[n]=!0);else return[t,n];return t}if(!t||typeof t!=`object`)return[t].concat(n);var o=t;return i(t)&&!i(n)&&(o=s(t,a)),i(t)&&i(n)?(n.forEach(function(n,i){if(r.call(t,i)){var o=t[i];o&&typeof o==`object`&&n&&typeof n==`object`?t[i]=e(o,n,a):t.push(n)}else t[i]=n}),t):Object.keys(n).reduce(function(t,i){var o=n[i];return r.call(t,i)?t[i]=e(t[i],o,a):t[i]=o,t},o)},l=function(e,t){return Object.keys(t).reduce(function(e,n){return e[n]=t[n],e},e)},u=function(e,t,n){var r=e.replace(/\+/g,` `);if(n===`iso-8859-1`)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch{return r}},d=1024,f=function(e,t,r,i,o){if(e.length===0)return e;var s=e;if(typeof e==`symbol`?s=Symbol.prototype.toString.call(e):typeof e!=`string`&&(s=String(e)),r===`iso-8859-1`)return escape(s).replace(/%u[0-9a-f]{4}/gi,function(e){return`%26%23`+parseInt(e.slice(2),16)+`%3B`});for(var c=``,l=0;l<s.length;l+=d){for(var u=s.length>=d?s.slice(l,l+d):s,f=[],p=0;p<u.length;++p){var m=u.charCodeAt(p);if(m===45||m===46||m===95||m===126||m>=48&&m<=57||m>=65&&m<=90||m>=97&&m<=122||o===n.RFC1738&&(m===40||m===41)){f[f.length]=u.charAt(p);continue}if(m<128){f[f.length]=a[m];continue}if(m<2048){f[f.length]=a[192|m>>6]+a[128|m&63];continue}if(m<55296||m>=57344){f[f.length]=a[224|m>>12]+a[128|m>>6&63]+a[128|m&63];continue}p+=1,m=65536+((m&1023)<<10|u.charCodeAt(p)&1023),f[f.length]=a[240|m>>18]+a[128|m>>12&63]+a[128|m>>6&63]+a[128|m&63]}c+=f.join(``)}return c},p=function(e){for(var t=[{obj:{o:e},prop:`o`}],n=[],r=0;r<t.length;++r)for(var i=t[r],a=i.obj[i.prop],s=Object.keys(a),c=0;c<s.length;++c){var l=s[c],u=a[l];typeof u==`object`&&u&&n.indexOf(u)===-1&&(t.push({obj:a,prop:l}),n.push(u))}return o(t),e},m=function(e){return Object.prototype.toString.call(e)===`[object RegExp]`},h=function(e){return!e||typeof e!=`object`?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},g=function(e,t){return[].concat(e,t)},_=function(e,t){if(i(e)){for(var n=[],r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)};t.exports={arrayToObject:s,assign:l,combine:g,compact:p,decode:u,encode:f,isBuffer:h,isRegExp:m,maybeMap:_,merge:c}}),ce=s((exports,t)=>{var n=W(),r=se(),i=oe(),a=Object.prototype.hasOwnProperty,o={brackets:function(e){return e+`[]`},comma:`comma`,indices:function(e,t){return e+`[`+t+`]`},repeat:function(e){return e}},s=Array.isArray,c=Array.prototype.push,l=function(e,t){c.apply(e,s(t)?t:[t])},u=Date.prototype.toISOString,d=i.default,f={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:`indices`,charset:`utf-8`,charsetSentinel:!1,commaRoundTrip:!1,delimiter:`&`,encode:!0,encodeDotInKeys:!1,encoder:r.encode,encodeValuesOnly:!1,filter:void 0,format:d,formatter:i.formatters[d],indices:!1,serializeDate:function(e){return u.call(e)},skipNulls:!1,strictNullHandling:!1},p=function(e){return typeof e==`string`||typeof e==`number`||typeof e==`boolean`||typeof e==`symbol`||typeof e==`bigint`},m={},h=function e(t,i,a,o,c,u,d,h,g,_,v,y,b,x,S,C,w,T){for(var E=t,D=T,ee=0,O=!1;(D=D.get(m))!==void 0&&!O;){var k=D.get(t);if(ee+=1,k!==void 0){if(k===ee)throw RangeError(`Cyclic object value`);O=!0}D.get(m)===void 0&&(ee=0)}if(typeof _==`function`?E=_(i,E):E instanceof Date?E=b(E):a===`comma`&&s(E)&&(E=r.maybeMap(E,function(e){return e instanceof Date?b(e):e})),E===null){if(u)return g&&!C?g(i,f.encoder,w,`key`,x):i;E=``}if(p(E)||r.isBuffer(E)){if(g){var A=C?i:g(i,f.encoder,w,`key`,x);return[S(A)+`=`+S(g(E,f.encoder,w,`value`,x))]}return[S(i)+`=`+S(String(E))]}var j=[];if(E===void 0)return j;var M;if(a===`comma`&&s(E))C&&g&&(E=r.maybeMap(E,g)),M=[{value:E.length>0?E.join(`,`)||null:void 0}];else if(s(_))M=_;else{var N=Object.keys(E);M=v?N.sort(v):N}var te=h?String(i).replace(/\./g,`%2E`):String(i),P=o&&s(E)&&E.length===1?te+`[]`:te;if(c&&s(E)&&E.length===0)return P+`[]`;for(var F=0;F<M.length;++F){var I=M[F],L=typeof I==`object`&&I&&I.value!==void 0?I.value:E[I];if(!(d&&L===null)){var R=y&&h?String(I).replace(/\./g,`%2E`):String(I),ne=s(E)?typeof a==`function`?a(P,R):P:P+(y?`.`+R:`[`+R+`]`);T.set(t,ee);var z=n();z.set(m,T),l(j,e(L,ne,a,o,c,u,d,h,a===`comma`&&C&&s(E)?null:g,_,v,y,b,x,S,C,w,z))}}return j},g=function(e){if(!e)return f;if(e.allowEmptyArrays!==void 0&&typeof e.allowEmptyArrays!=`boolean`)throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(e.encodeDotInKeys!==void 0&&typeof e.encodeDotInKeys!=`boolean`)throw TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(e.encoder!==null&&e.encoder!==void 0&&typeof e.encoder!=`function`)throw TypeError(`Encoder has to be a function.`);var t=e.charset||f.charset;if(e.charset!==void 0&&e.charset!==`utf-8`&&e.charset!==`iso-8859-1`)throw TypeError(`The charset option must be either utf-8, iso-8859-1, or undefined`);var n=i.default;if(e.format!==void 0){if(!a.call(i.formatters,e.format))throw TypeError(`Unknown format option provided.`);n=e.format}var r=i.formatters[n],c=f.filter;(typeof e.filter==`function`||s(e.filter))&&(c=e.filter);var l;if(l=e.arrayFormat in o?e.arrayFormat:`indices`in e?e.indices?`indices`:`repeat`:f.arrayFormat,`commaRoundTrip`in e&&typeof e.commaRoundTrip!=`boolean`)throw TypeError("`commaRoundTrip` must be a boolean, or absent");var u=e.allowDots===void 0?e.encodeDotInKeys===!0?!0:f.allowDots:!!e.allowDots;return{addQueryPrefix:typeof e.addQueryPrefix==`boolean`?e.addQueryPrefix:f.addQueryPrefix,allowDots:u,allowEmptyArrays:typeof e.allowEmptyArrays==`boolean`?!!e.allowEmptyArrays:f.allowEmptyArrays,arrayFormat:l,charset:t,charsetSentinel:typeof e.charsetSentinel==`boolean`?e.charsetSentinel:f.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:e.delimiter===void 0?f.delimiter:e.delimiter,encode:typeof e.encode==`boolean`?e.encode:f.encode,encodeDotInKeys:typeof e.encodeDotInKeys==`boolean`?e.encodeDotInKeys:f.encodeDotInKeys,encoder:typeof e.encoder==`function`?e.encoder:f.encoder,encodeValuesOnly:typeof e.encodeValuesOnly==`boolean`?e.encodeValuesOnly:f.encodeValuesOnly,filter:c,format:n,formatter:r,serializeDate:typeof e.serializeDate==`function`?e.serializeDate:f.serializeDate,skipNulls:typeof e.skipNulls==`boolean`?e.skipNulls:f.skipNulls,sort:typeof e.sort==`function`?e.sort:null,strictNullHandling:typeof e.strictNullHandling==`boolean`?e.strictNullHandling:f.strictNullHandling}};t.exports=function(e,t){var r=e,i=g(t),a,c;typeof i.filter==`function`?(c=i.filter,r=c(``,r)):s(i.filter)&&(c=i.filter,a=c);var u=[];if(typeof r!=`object`||!r)return``;var d=o[i.arrayFormat],f=d===`comma`&&i.commaRoundTrip;a||=Object.keys(r),i.sort&&a.sort(i.sort);for(var p=n(),m=0;m<a.length;++m){var _=a[m],v=r[_];i.skipNulls&&v===null||l(u,h(v,_,d,f,i.allowEmptyArrays,i.strictNullHandling,i.skipNulls,i.encodeDotInKeys,i.encode?i.encoder:null,i.filter,i.sort,i.allowDots,i.serializeDate,i.format,i.formatter,i.encodeValuesOnly,i.charset,p))}var y=u.join(i.delimiter),b=i.addQueryPrefix===!0?`?`:``;return i.charsetSentinel&&(i.charset===`iso-8859-1`?b+=`utf8=%26%2310003%3B&`:b+=`utf8=%E2%9C%93&`),y.length>0?b+y:``}}),le=s((exports,t)=>{var n=se(),r=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:`utf-8`,charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:n.decode,delimiter:`&`,depth:5,duplicates:`combine`,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},o=function(e){return e.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},s=function(e,t,n){if(e&&typeof e==`string`&&t.comma&&e.indexOf(`,`)>-1)return e.split(`,`);if(t.throwOnLimitExceeded&&n>=t.arrayLimit)throw RangeError(`Array limit exceeded. Only `+t.arrayLimit+` element`+(t.arrayLimit===1?``:`s`)+` allowed in an array.`);return e},c=`utf8=%26%2310003%3B`,l=`utf8=%E2%9C%93`,u=function(e,t){var u={__proto__:null},d=t.ignoreQueryPrefix?e.replace(/^\?/,``):e;d=d.replace(/%5B/gi,`[`).replace(/%5D/gi,`]`);var f=t.parameterLimit===1/0?void 0:t.parameterLimit,p=d.split(t.delimiter,t.throwOnLimitExceeded?f+1:f);if(t.throwOnLimitExceeded&&p.length>f)throw RangeError(`Parameter limit exceeded. Only `+f+` parameter`+(f===1?``:`s`)+` allowed.`);var m=-1,h,g=t.charset;if(t.charsetSentinel)for(h=0;h<p.length;++h)p[h].indexOf(`utf8=`)===0&&(p[h]===l?g=`utf-8`:p[h]===c&&(g=`iso-8859-1`),m=h,h=p.length);for(h=0;h<p.length;++h)if(h!==m){var _=p[h],v=_.indexOf(`]=`),y=v===-1?_.indexOf(`=`):v+1,b,x;y===-1?(b=t.decoder(_,a.decoder,g,`key`),x=t.strictNullHandling?null:``):(b=t.decoder(_.slice(0,y),a.decoder,g,`key`),x=n.maybeMap(s(_.slice(y+1),t,i(u[b])?u[b].length:0),function(e){return t.decoder(e,a.decoder,g,`value`)})),x&&t.interpretNumericEntities&&g===`iso-8859-1`&&(x=o(String(x))),_.indexOf(`[]=`)>-1&&(x=i(x)?[x]:x);var S=r.call(u,b);S&&t.duplicates===`combine`?u[b]=n.combine(u[b],x):(!S||t.duplicates===`last`)&&(u[b]=x)}return u},d=function(e,t,r,i){var a=0;if(e.length>0&&e[e.length-1]===`[]`){var o=e.slice(0,-1).join(``);a=Array.isArray(t)&&t[o]?t[o].length:0}for(var c=i?t:s(t,r,a),l=e.length-1;l>=0;--l){var u,d=e[l];if(d===`[]`&&r.parseArrays)u=r.allowEmptyArrays&&(c===``||r.strictNullHandling&&c===null)?[]:n.combine([],c);else{u=r.plainObjects?{__proto__:null}:{};var f=d.charAt(0)===`[`&&d.charAt(d.length-1)===`]`?d.slice(1,-1):d,p=r.decodeDotInKeys?f.replace(/%2E/g,`.`):f,m=parseInt(p,10);!r.parseArrays&&p===``?u={0:c}:!isNaN(m)&&d!==p&&String(m)===p&&m>=0&&r.parseArrays&&m<=r.arrayLimit?(u=[],u[m]=c):p!==`__proto__`&&(u[p]=c)}c=u}return c},f=function(e,t,n,i){if(e){var a=n.allowDots?e.replace(/\.([^.[]+)/g,`[$1]`):e,o=/(\[[^[\]]*])/,s=/(\[[^[\]]*])/g,c=n.depth>0&&o.exec(a),l=c?a.slice(0,c.index):a,u=[];if(l){if(!n.plainObjects&&r.call(Object.prototype,l)&&!n.allowPrototypes)return;u.push(l)}for(var f=0;n.depth>0&&(c=s.exec(a))!==null&&f<n.depth;){if(f+=1,!n.plainObjects&&r.call(Object.prototype,c[1].slice(1,-1))&&!n.allowPrototypes)return;u.push(c[1])}if(c){if(n.strictDepth===!0)throw RangeError(`Input depth exceeded depth option of `+n.depth+` and strictDepth is true`);u.push(`[`+a.slice(c.index)+`]`)}return d(u,t,n,i)}},p=function(e){if(!e)return a;if(e.allowEmptyArrays!==void 0&&typeof e.allowEmptyArrays!=`boolean`)throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(e.decodeDotInKeys!==void 0&&typeof e.decodeDotInKeys!=`boolean`)throw TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(e.decoder!==null&&e.decoder!==void 0&&typeof e.decoder!=`function`)throw TypeError(`Decoder has to be a function.`);if(e.charset!==void 0&&e.charset!==`utf-8`&&e.charset!==`iso-8859-1`)throw TypeError(`The charset option must be either utf-8, iso-8859-1, or undefined`);if(e.throwOnLimitExceeded!==void 0&&typeof e.throwOnLimitExceeded!=`boolean`)throw TypeError("`throwOnLimitExceeded` option must be a boolean");var t=e.charset===void 0?a.charset:e.charset,r=e.duplicates===void 0?a.duplicates:e.duplicates;if(r!==`combine`&&r!==`first`&&r!==`last`)throw TypeError(`The duplicates option must be either combine, first, or last`);var i=e.allowDots===void 0?e.decodeDotInKeys===!0?!0:a.allowDots:!!e.allowDots;return{allowDots:i,allowEmptyArrays:typeof e.allowEmptyArrays==`boolean`?!!e.allowEmptyArrays:a.allowEmptyArrays,allowPrototypes:typeof e.allowPrototypes==`boolean`?e.allowPrototypes:a.allowPrototypes,allowSparse:typeof e.allowSparse==`boolean`?e.allowSparse:a.allowSparse,arrayLimit:typeof e.arrayLimit==`number`?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:typeof e.charsetSentinel==`boolean`?e.charsetSentinel:a.charsetSentinel,comma:typeof e.comma==`boolean`?e.comma:a.comma,decodeDotInKeys:typeof e.decodeDotInKeys==`boolean`?e.decodeDotInKeys:a.decodeDotInKeys,decoder:typeof e.decoder==`function`?e.decoder:a.decoder,delimiter:typeof e.delimiter==`string`||n.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:typeof e.depth==`number`||e.depth===!1?+e.depth:a.depth,duplicates:r,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities==`boolean`?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:typeof e.parameterLimit==`number`?e.parameterLimit:a.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects==`boolean`?e.plainObjects:a.plainObjects,strictDepth:typeof e.strictDepth==`boolean`?!!e.strictDepth:a.strictDepth,strictNullHandling:typeof e.strictNullHandling==`boolean`?e.strictNullHandling:a.strictNullHandling,throwOnLimitExceeded:typeof e.throwOnLimitExceeded==`boolean`?e.throwOnLimitExceeded:!1}};t.exports=function(e,t){var r=p(t);if(e===``||e==null)return r.plainObjects?{__proto__:null}:{};for(var i=typeof e==`string`?u(e,r):e,a=r.plainObjects?{__proto__:null}:{},o=Object.keys(i),s=0;s<o.length;++s){var c=o[s],l=f(c,i[c],r,typeof e==`string`);a=n.merge(a,l,r)}return r.allowSparse===!0?a:n.compact(a)}}),G=s((exports,t)=>{var n=ce(),r=le(),i=oe();t.exports={formats:i,parse:r,stringify:n}});let K=(e,t)=>e?!t||t.length===0?e:t.reduce((e,t)=>(delete e[t],e),{...e}):{},q=function(e){return e.JSON=`application/json`,e.FORM_URLENCODED=`application/x-www-form-urlencoded`,e.FORM_DATA=`multipart/form-data`,e.TEXT=`text/plain`,e.HTML=`text/html`,e.XML=`text/xml`,e.CSV=`text/csv`,e.STREAM=`application/octet-stream`,e}({}),J=function(e){return e[e.TIME_OUT=408]=`TIME_OUT`,e[e.ABORTED=499]=`ABORTED`,e[e.NETWORK_ERROR=599]=`NETWORK_ERROR`,e[e.BODY_NULL=502]=`BODY_NULL`,e[e.UNKNOWN=601]=`UNKNOWN`,e}({}),ue=function(e){return e.GET=`GET`,e.POST=`POST`,e.PUT=`PUT`,e.DELETE=`DELETE`,e.PATCH=`PATCH`,e.HEAD=`HEAD`,e.OPTIONS=`OPTIONS`,e}({});var Y=class extends Error{#message;#name;#status;#statusText;#response;#config;constructor({message:e,status:t,statusText:n,response:r,config:i,name:a}){super(e),this.#message=e,this.#status=t,this.#statusText=n,this.#response=r,this.#config=i,this.#name=a??e}get message(){return this.#message}get status(){return this.#status}get statusText(){return this.#statusText}get response(){return this.#response}get config(){return this.#config}get name(){return this.#name}},X=l(G(),1),Z=function(e){return e.JSON=`json`,e.BLOB=`blob`,e.TEXT=`text`,e.ARRAY_BUFFER=`arrayBuffer`,e.FORM_DATA=`formData`,e.BYTES=`bytes`,e}(Z||{});function de(e){let t=new Map;e.forEach(e=>{t.set(e.name,e)});let n=Array.from(t.values()).sort((e,t)=>(e.priority??0)-(t.priority??0)),r=[],i=[],a=[],o=[],s=[],c=[];return n.forEach(e=>{e.beforeRequest&&r.push(e.beforeRequest),e.afterResponse&&i.push(e.afterResponse),e.onError&&a.push(e.onError),e.onFinally&&o.push(e.onFinally),e.transformStreamChunk&&s.push(e.transformStreamChunk),e.beforeStream&&c.push(e.beforeStream)}),{beforeRequestPlugins:r,afterResponsePlugins:i,errorPlugins:a,finallyPlugins:o,beforeStreamPlugins:c,transformStreamChunkPlugins:s}}function fe(e,t,n=`repeat`){if(t){let r=X.default.stringify(t,{arrayFormat:n});r&&(e=e.includes(`?`)?`${e}&${r}`:`${e}?${r}`)}return e}function pe(e={},t={}){let n=e instanceof Headers?e:new Headers(e),r=e=>{e instanceof Headers||(e=new Headers(e)),e.forEach((e,t)=>{n.set(t,e)})};return r(t),n}let me=[`PATCH`,`POST`,`PUT`,`DELETE`,`OPTIONS`],he=[`GET`,`HEAD`];function ge(e,t,n,r=`repeat`){if(!e)return null;if(e instanceof FormData)return e;let i=null;if(me.includes(t.toUpperCase())){let t=new Headers(n||{}),a=t.get(`Content-Type`)||q.JSON;if(a.includes(q.JSON))i=JSON.stringify(e);else if(a.includes(q.FORM_URLENCODED))i=X.default.stringify(e,{arrayFormat:r});else if(a.includes(q.FORM_DATA)){let t=new FormData;if(!(e instanceof FormData)&&typeof e==`object`){let n=e;Object.keys(n).forEach(e=>{n.prototype.hasOwnProperty.call(e)&&t.append(e,n[e])}),i=t}}}return he.includes(t.toUpperCase())&&(i=null),i}var _e=class e{#plugins;#controller;#config;#promise;#isTimeout=!1;#executor=null;#finallyCallbacks=new Set;#responseType=`json`;#fullOptions;constructor(e){this.#fullOptions=e;let{plugins:t=[],controller:n,url:r,baseURL:i=``,params:a,data:o,qsArrayFormat:s=`repeat`,withCredentials:c=!1,extra:l,method:u=`GET`,headers:d={}}=e;this.#controller=n??new AbortController,this.#plugins=de(t),this.#config={url:r,baseURL:i,params:a,data:o,withCredentials:c,extra:l,method:u,headers:d,qsArrayFormat:s},this.#promise=this.#init(e)}#init({timeout:e}){return new Promise(async(t,n)=>{let r=this.#config,{beforeRequestPlugins:i}=this.#plugins;for(let e of i)r=await e(r);let a=fe(r.baseURL+r.url,r.params,r.qsArrayFormat),o=ge(r.data,r.method,r.headers,r.qsArrayFormat),s=K(r??{},[`baseURL`,`data`,`extra`,`headers`,`method`,`params`,`url`,`withCredentials`]),c={...s,method:r.method,headers:r.headers,signal:this.#controller.signal,credentials:r.withCredentials?`include`:`omit`,body:o},l=fetch(a,c),u=[l],d=null;if(e){let t=new Promise(t=>{d=setTimeout(()=>{this.#isTimeout=!0,this.#controller?.abort()},e)});u.push(t)}let f=null;try{let e=await Promise.race(u);e?(e.ok&&t(e),f=new Y({message:`Fail Request`,status:e.status,statusText:e.statusText,config:this.#config,name:`Fail Request`,response:e})):f=new Y({message:`NETWORK_ERROR`,status:J.NETWORK_ERROR,statusText:`Network Error`,config:this.#config,name:`Network Error`})}catch(e){f=e}finally{f&&n(f),d&&clearTimeout(d)}})}async#createNormalizeError(e){return e instanceof Y?e:e instanceof TypeError?e.name===`AbortError`?this.#isTimeout?new Y({message:`Request timeout`,status:J.TIME_OUT,statusText:`Request timeout`,config:this.#config,name:`Request timeout`,response:await this.#response}):new Y({message:`Request aborted`,status:J.ABORTED,statusText:`Request aborted`,config:this.#config,name:`Request aborted`,response:await this.#response}):new Y({message:e.message,status:J.NETWORK_ERROR,statusText:`Unknown Request Error`,config:this.#config,name:e.name,response:await this.#response}):new Y({message:e?.message??`Unknown Request Error`,status:J.UNKNOWN,statusText:`Unknown Request Error`,config:this.#config,name:`Unknown Request Error`,response:await this.#response})}async#normalizeError(e){let t=await this.#createNormalizeError(e);for(let e of this.#plugins.errorPlugins)t=await e(t,this.#config);return t.__normalized=!0,t}#execFinally(){for(let e of this.#finallyCallbacks)e();this.#finallyCallbacks.clear()}get#getExecutor(){return this.#executor?this.#executor:this.#response}async#resolve(e){let t=this.#plugins.afterResponsePlugins,n={config:this.#config,response:await this.#response,responseType:this.#responseType,controller:this.#controller,result:e};try{for(let e of t)n=await e(n,this.#config);return n.result}catch(e){return Promise.reject(e)}}then(e,t){return this.#getExecutor.then(async t=>e?.call(this,await this.#resolve(t)),async e=>t?.call(this,await this.#normalizeError(e)))}catch(e){return this.#getExecutor.catch(e)}finally(e){this.#finallyCallbacks.add(e)}abort(){this.#controller.abort()}get#response(){return this.#promise.then(e=>e.clone()).catch(async e=>{throw await this.#normalizeError(e)})}json(){return this.#then(Z.JSON,this.#response.then(e=>e.json()))}blob(){return this.#then(Z.BLOB,this.#response.then(e=>e.blob()))}text(){return this.#then(Z.TEXT,this.#response.then(e=>e.text()))}arrayBuffer(){return this.#then(Z.ARRAY_BUFFER,this.#response.then(e=>e.arrayBuffer()))}#then(e,t){return this.#executor=t.then(t=>(this.#responseType=e,this.#resolve(t))).catch(async t=>{throw this.#responseType=e,t.__normalized?t:await this.#normalizeError(t)}).finally(this.#execFinally.bind(this)),this.#executor}formData(){return this.#then(Z.FORM_DATA,this.#response.then(e=>e.formData()))}bytes(){return this.#then(Z.BYTES,this.#response.then(e=>e.bytes()))}async*stream(){let e=(await this.#response)?.body;if(!e)throw Error(`Response body is null`);for(let t of this.#plugins.beforeStreamPlugins)e=await t(e,this.#config);let t=e.getReader();if(!t)throw Error(`Response body reader is null`);try{for(;;){let{done:e,value:n}=await t.read();if(e)break;let r={source:n,result:n,error:null};try{for(let e of this.#plugins.transformStreamChunkPlugins)r=await e(r,this.#config);if(r.result&&(ve(r.result)||ye(r.result)))for await(let e of r.result){let t={source:r.source,result:e,error:null};yield t}else yield r}catch(e){r.error=e,r.result=null,yield r}}}catch(e){return this.#normalizeError(e)}finally{t.releaseLock(),this.#execFinally()}}retry(){let{controller:t,...n}=this.#fullOptions;return new e(n)}get response(){return this.#response}};function ve(e){return e[Symbol.toStringTag]===`Generator`&&typeof e.next==`function`&&typeof e.return==`function`&&typeof e.throw==`function`&&typeof e[Symbol.iterator]==`function`}function ye(e){return e[Symbol.toStringTag]===`AsyncGenerator`&&typeof e.next==`function`&&typeof e.return==`function`&&typeof e.throw==`function`&&typeof e[Symbol.asyncIterator]==`function`}function be(e){return new _e(e)}var xe=class{#timeout;#baseURL;#commonHeaders;#queue=[];#plugins=[];#withCredentials;constructor({timeout:e=0,baseURL:t=``,headers:n={},plugins:r=[],withCredentials:i=!1}){this.#timeout=e,this.#baseURL=t,this.#commonHeaders=n,this.#plugins=r,this.#withCredentials=i,this.request=this.request.bind(this),this.get=this.get.bind(this),this.head=this.head.bind(this),this.options=this.options.bind(this),this.delete=this.delete.bind(this),this.post=this.post.bind(this),this.put=this.put.bind(this),this.patch=this.patch.bind(this),this.abortAll=this.abortAll.bind(this),this.use=this.use.bind(this)}use(e){return this.#plugins.push(e),this}request(e,{timeout:t,headers:n,method:r=`GET`,params:i={},data:a={},qsArrayFormat:o,withCredentials:s,extra:c={}}={}){let l=new AbortController;this.#queue.push(l);let u=be({url:e,baseURL:this.#baseURL,timeout:t??this.#timeout,plugins:this.#plugins,headers:pe(this.#commonHeaders,n),controller:l,method:r,params:i,data:a,qsArrayFormat:o,withCredentials:s??this.#withCredentials,extra:c});return u.finally(()=>{this.#queue=this.#queue.filter(e=>e!==l)}),u}#requestWithParams(e,t={},n={}){return this.request(e,{...n,params:t})}#requestWithBody(e,t={},n={}){return this.request(e,{...n,data:t})}get(e,t={},n){return this.#requestWithParams(e,t,{...n,method:`GET`})}head(e,t={},n){return this.#requestWithParams(e,t,{...n,method:`HEAD`})}options(e,t={},n){return this.request(e,{...n,method:`OPTIONS`,params:t})}delete(e,t){return this.request(e,{...t,method:`DELETE`})}post(e,t,n){return this.#requestWithBody(e,t,{...n,method:`POST`})}upload(e,t,n){let r=new FormData;for(let e in t)if(Object.prototype.hasOwnProperty.call(t,e)){let n=t[e];n instanceof File||n instanceof Blob?r.append(e,n):r.append(e,String(n))}return this.#requestWithBody(e,r,{...n,method:`POST`})}put(e,t,n){return this.#requestWithBody(e,t,{...n,method:`PUT`})}patch(e,t,n){return this.#requestWithBody(e,t,{...n,method:`PATCH`})}abortAll(){this.#queue.forEach(e=>e.abort()),this.#queue=[]}};function Q(e,t={}){return be({url:e,baseURL:``,...t})}function Se(e,t,n={}){return Q(e,{...n,params:t})}function Ce(e,t=null,n={}){return Q(e,{...n,data:t})}let we=Q;function Te(e,t={},n){return Se(e,t,{...n,method:`GET`})}function Ee(e,t={},n){return Se(e,t,{...n,method:`HEAD`})}function De(e,t={},n){return Q(e,{...n,params:t,method:`OPTIONS`})}function Oe(e,t){return Q(e,{...t,method:`DELETE`})}function ke(e,t,n){return Ce(e,t,{...n,method:`POST`})}function Ae(e,t,n){let r=new FormData;for(let e in t)if(Object.prototype.hasOwnProperty.call(t,e)){let n=t[e];n instanceof File||n instanceof Blob?r.append(e,n):r.append(e,String(n))}return Ce(e,r,{...n,method:`POST`})}function je(e,t,n){return Ce(e,t,{...n,method:`PUT`})}function Me(e,t,n){return Ce(e,t,{...n,method:`PATCH`})}let $=Q;$.create=e=>{let t=new xe(e),n=t.request.bind(void 0);return Object.assign(n,xe.prototype,t),n},$.get=Te,$.head=Ee,$.options=De,$.delete=Oe,$.post=ke,$.put=je,$.patch=Me,$.upload=Ae;var Ne=$;let Pe=({splitSeparator:e=`
|
|
4
|
+
`+t.prev}function Q(e,t){var n=H(e),r=[];if(n){r.length=e.length;for(var i=0;i<e.length;i++)r[i]=K(e,i)?t(e[i],e):``}var a=typeof A==`function`?A(e):[],o;if(M){o={};for(var s=0;s<a.length;s++)o[`$`+a[s]]=a[s]}for(var c in e){if(!K(e,c)||n&&String(Number(c))===c&&c<e.length||M&&o[`$`+c]instanceof Symbol)continue;T.call(/[^\w$]/,c)?r.push(t(c,e)+`: `+t(e[c],e)):r.push(c+`: `+t(e[c],e))}if(typeof A==`function`)for(var l=0;l<a.length;l++)te.call(e,a[l])&&r.push(`[`+t(a[l])+`]: `+t(e[a[l]],e));return r}}),p=s((exports,t)=>{var n=f(),r=u(),i=function(e,t,n){for(var r=e,i;(i=r.next)!=null;r=i)if(i.key===t)return r.next=i.next,n||(i.next=e.next,e.next=i),i},a=function(e,t){if(e){var n=i(e,t);return n&&n.value}},o=function(e,t,n){var r=i(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}},s=function(e,t){return e?!!i(e,t):!1},c=function(e,t){if(e)return i(e,t,!0)};t.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new r(`Side channel does not contain `+n(e))},delete:function(t){var n=e&&e.next,r=c(e,t);return r&&n&&n===r&&(e=void 0),!!r},get:function(t){return a(e,t)},has:function(t){return s(e,t)},set:function(t,n){e||={next:void 0},o(e,t,n)}};return t}}),m=s((exports,t)=>{t.exports=Object}),h=s((exports,t)=>{t.exports=Error}),g=s((exports,t)=>{t.exports=EvalError}),_=s((exports,t)=>{t.exports=RangeError}),v=s((exports,t)=>{t.exports=ReferenceError}),y=s((exports,t)=>{t.exports=SyntaxError}),b=s((exports,t)=>{t.exports=URIError}),x=s((exports,t)=>{t.exports=Math.abs}),S=s((exports,t)=>{t.exports=Math.floor}),C=s((exports,t)=>{t.exports=Math.max}),w=s((exports,t)=>{t.exports=Math.min}),T=s((exports,t)=>{t.exports=Math.pow}),E=s((exports,t)=>{t.exports=Math.round}),D=s((exports,t)=>{t.exports=Number.isNaN||function(e){return e!==e}}),ee=s((exports,t)=>{var n=D();t.exports=function(e){return n(e)||e===0?e:e<0?-1:1}}),O=s((exports,t)=>{t.exports=Object.getOwnPropertyDescriptor}),k=s((exports,t)=>{var n=O();if(n)try{n([],`length`)}catch{n=null}t.exports=n}),A=s((exports,t)=>{var n=Object.defineProperty||!1;if(n)try{n({},`a`,{value:1})}catch{n=!1}t.exports=n}),j=s((exports,t)=>{t.exports=function(){if(typeof Symbol!=`function`||typeof Object.getOwnPropertySymbols!=`function`)return!1;if(typeof Symbol.iterator==`symbol`)return!0;var e={},t=Symbol(`test`),n=Object(t);if(typeof t==`string`||Object.prototype.toString.call(t)!==`[object Symbol]`||Object.prototype.toString.call(n)!==`[object Symbol]`)return!1;var r=42;for(var i in e[t]=r,e)return!1;if(typeof Object.keys==`function`&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames==`function`&&Object.getOwnPropertyNames(e).length!==0)return!1;var a=Object.getOwnPropertySymbols(e);if(a.length!==1||a[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor==`function`){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==r||o.enumerable!==!0)return!1}return!0}}),M=s((exports,t)=>{var n=typeof Symbol<`u`&&Symbol,r=j();t.exports=function(){return typeof n!=`function`||typeof Symbol!=`function`||typeof n(`foo`)!=`symbol`||typeof Symbol(`bar`)!=`symbol`?!1:r()}}),N=s((exports,t)=>{t.exports=typeof Reflect<`u`&&Reflect.getPrototypeOf||null}),te=s((exports,t)=>{var n=m();t.exports=n.getPrototypeOf||null}),P=s((exports,t)=>{var n=`Function.prototype.bind called on incompatible `,r=Object.prototype.toString,i=Math.max,a=`[object Function]`,o=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var i=0;i<t.length;i+=1)n[i+e.length]=t[i];return n},s=function(e,t){for(var n=[],r=t||0,i=0;r<e.length;r+=1,i+=1)n[i]=e[r];return n},c=function(e,t){for(var n=``,r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n};t.exports=function(e){var t=this;if(typeof t!=`function`||r.apply(t)!==a)throw TypeError(n+t);for(var l=s(arguments,1),u,d=function(){if(this instanceof u){var n=t.apply(this,o(l,arguments));return Object(n)===n?n:this}return t.apply(e,o(l,arguments))},f=i(0,t.length-l.length),p=[],m=0;m<f;m++)p[m]=`$`+m;if(u=Function(`binder`,`return function (`+c(p,`,`)+`){ return binder.apply(this,arguments); }`)(d),t.prototype){var h=function(){};h.prototype=t.prototype,u.prototype=new h,h.prototype=null}return u}}),F=s((exports,t)=>{var n=P();t.exports=Function.prototype.bind||n}),I=s((exports,t)=>{t.exports=Function.prototype.call}),L=s((exports,t)=>{t.exports=Function.prototype.apply}),R=s((exports,t)=>{t.exports=typeof Reflect<`u`&&Reflect&&Reflect.apply}),ne=s((exports,t)=>{var n=F(),r=L(),i=I(),a=R();t.exports=a||n.call(i,r)}),z=s((exports,t)=>{var n=F(),r=u(),i=I(),a=ne();t.exports=function(e){if(e.length<1||typeof e[0]!=`function`)throw new r(`a function is required`);return a(n,i,e)}}),B=s((exports,t)=>{var n=z(),r=k(),i;try{i=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!=`object`||!(`code`in e)||e.code!==`ERR_PROTO_ACCESS`)throw e}var a=!!i&&r&&r(Object.prototype,`__proto__`),o=Object,s=o.getPrototypeOf;t.exports=a&&typeof a.get==`function`?n([a.get]):typeof s==`function`?function(e){return s(e==null?e:o(e))}:!1}),re=s((exports,t)=>{var n=N(),r=te(),i=B();t.exports=n?function(e){return n(e)}:r?function(e){if(!e||typeof e!=`object`&&typeof e!=`function`)throw TypeError(`getProto: not an object`);return r(e)}:i?function(e){return i(e)}:null}),V=s((exports,t)=>{var n=Function.prototype.call,r=Object.prototype.hasOwnProperty,i=F();t.exports=i.call(n,r)}),H=s((exports,t)=>{var n,r=m(),i=h(),a=g(),o=_(),s=v(),c=y(),l=u(),d=b(),f=x(),p=S(),D=C(),O=w(),j=T(),P=E(),R=ee(),ne=Function,z=function(e){try{return ne(`"use strict"; return (`+e+`).constructor;`)()}catch{}},B=k(),H=A(),ie=function(){throw new l},ae=B?function(){try{return arguments.callee,ie}catch{try{return B(arguments,`callee`).get}catch{return ie}}}():ie,U=M()(),W=re(),oe=te(),se=N(),ce=L(),le=I(),G={},K=typeof Uint8Array>`u`||!W?n:W(Uint8Array),q={__proto__:null,"%AggregateError%":typeof AggregateError>`u`?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>`u`?n:ArrayBuffer,"%ArrayIteratorPrototype%":U&&W?W([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":G,"%AsyncGenerator%":G,"%AsyncGeneratorFunction%":G,"%AsyncIteratorPrototype%":G,"%Atomics%":typeof Atomics>`u`?n:Atomics,"%BigInt%":typeof BigInt>`u`?n:BigInt,"%BigInt64Array%":typeof BigInt64Array>`u`?n:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>`u`?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>`u`?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":a,"%Float16Array%":typeof Float16Array>`u`?n:Float16Array,"%Float32Array%":typeof Float32Array>`u`?n:Float32Array,"%Float64Array%":typeof Float64Array>`u`?n:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>`u`?n:FinalizationRegistry,"%Function%":ne,"%GeneratorFunction%":G,"%Int8Array%":typeof Int8Array>`u`?n:Int8Array,"%Int16Array%":typeof Int16Array>`u`?n:Int16Array,"%Int32Array%":typeof Int32Array>`u`?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":U&&W?W(W([][Symbol.iterator]())):n,"%JSON%":typeof JSON==`object`?JSON:n,"%Map%":typeof Map>`u`?n:Map,"%MapIteratorPrototype%":typeof Map>`u`||!U||!W?n:W(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":r,"%Object.getOwnPropertyDescriptor%":B,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>`u`?n:Promise,"%Proxy%":typeof Proxy>`u`?n:Proxy,"%RangeError%":o,"%ReferenceError%":s,"%Reflect%":typeof Reflect>`u`?n:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>`u`?n:Set,"%SetIteratorPrototype%":typeof Set>`u`||!U||!W?n:W(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>`u`?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":U&&W?W(``[Symbol.iterator]()):n,"%Symbol%":U?Symbol:n,"%SyntaxError%":c,"%ThrowTypeError%":ae,"%TypedArray%":K,"%TypeError%":l,"%Uint8Array%":typeof Uint8Array>`u`?n:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>`u`?n:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>`u`?n:Uint16Array,"%Uint32Array%":typeof Uint32Array>`u`?n:Uint32Array,"%URIError%":d,"%WeakMap%":typeof WeakMap>`u`?n:WeakMap,"%WeakRef%":typeof WeakRef>`u`?n:WeakRef,"%WeakSet%":typeof WeakSet>`u`?n:WeakSet,"%Function.prototype.call%":le,"%Function.prototype.apply%":ce,"%Object.defineProperty%":H,"%Object.getPrototypeOf%":oe,"%Math.abs%":f,"%Math.floor%":p,"%Math.max%":D,"%Math.min%":O,"%Math.pow%":j,"%Math.round%":P,"%Math.sign%":R,"%Reflect.getPrototypeOf%":se};if(W)try{null.error}catch(e){var J=W(W(e));q[`%Error.prototype%`]=J}var ue=function e(t){var n;if(t===`%AsyncFunction%`)n=z(`async function () {}`);else if(t===`%GeneratorFunction%`)n=z(`function* () {}`);else if(t===`%AsyncGeneratorFunction%`)n=z(`async function* () {}`);else if(t===`%AsyncGenerator%`){var r=e(`%AsyncGeneratorFunction%`);r&&(n=r.prototype)}else if(t===`%AsyncIteratorPrototype%`){var i=e(`%AsyncGenerator%`);i&&W&&(n=W(i.prototype))}return q[t]=n,n},Y={__proto__:null,"%ArrayBufferPrototype%":[`ArrayBuffer`,`prototype`],"%ArrayPrototype%":[`Array`,`prototype`],"%ArrayProto_entries%":[`Array`,`prototype`,`entries`],"%ArrayProto_forEach%":[`Array`,`prototype`,`forEach`],"%ArrayProto_keys%":[`Array`,`prototype`,`keys`],"%ArrayProto_values%":[`Array`,`prototype`,`values`],"%AsyncFunctionPrototype%":[`AsyncFunction`,`prototype`],"%AsyncGenerator%":[`AsyncGeneratorFunction`,`prototype`],"%AsyncGeneratorPrototype%":[`AsyncGeneratorFunction`,`prototype`,`prototype`],"%BooleanPrototype%":[`Boolean`,`prototype`],"%DataViewPrototype%":[`DataView`,`prototype`],"%DatePrototype%":[`Date`,`prototype`],"%ErrorPrototype%":[`Error`,`prototype`],"%EvalErrorPrototype%":[`EvalError`,`prototype`],"%Float32ArrayPrototype%":[`Float32Array`,`prototype`],"%Float64ArrayPrototype%":[`Float64Array`,`prototype`],"%FunctionPrototype%":[`Function`,`prototype`],"%Generator%":[`GeneratorFunction`,`prototype`],"%GeneratorPrototype%":[`GeneratorFunction`,`prototype`,`prototype`],"%Int8ArrayPrototype%":[`Int8Array`,`prototype`],"%Int16ArrayPrototype%":[`Int16Array`,`prototype`],"%Int32ArrayPrototype%":[`Int32Array`,`prototype`],"%JSONParse%":[`JSON`,`parse`],"%JSONStringify%":[`JSON`,`stringify`],"%MapPrototype%":[`Map`,`prototype`],"%NumberPrototype%":[`Number`,`prototype`],"%ObjectPrototype%":[`Object`,`prototype`],"%ObjProto_toString%":[`Object`,`prototype`,`toString`],"%ObjProto_valueOf%":[`Object`,`prototype`,`valueOf`],"%PromisePrototype%":[`Promise`,`prototype`],"%PromiseProto_then%":[`Promise`,`prototype`,`then`],"%Promise_all%":[`Promise`,`all`],"%Promise_reject%":[`Promise`,`reject`],"%Promise_resolve%":[`Promise`,`resolve`],"%RangeErrorPrototype%":[`RangeError`,`prototype`],"%ReferenceErrorPrototype%":[`ReferenceError`,`prototype`],"%RegExpPrototype%":[`RegExp`,`prototype`],"%SetPrototype%":[`Set`,`prototype`],"%SharedArrayBufferPrototype%":[`SharedArrayBuffer`,`prototype`],"%StringPrototype%":[`String`,`prototype`],"%SymbolPrototype%":[`Symbol`,`prototype`],"%SyntaxErrorPrototype%":[`SyntaxError`,`prototype`],"%TypedArrayPrototype%":[`TypedArray`,`prototype`],"%TypeErrorPrototype%":[`TypeError`,`prototype`],"%Uint8ArrayPrototype%":[`Uint8Array`,`prototype`],"%Uint8ClampedArrayPrototype%":[`Uint8ClampedArray`,`prototype`],"%Uint16ArrayPrototype%":[`Uint16Array`,`prototype`],"%Uint32ArrayPrototype%":[`Uint32Array`,`prototype`],"%URIErrorPrototype%":[`URIError`,`prototype`],"%WeakMapPrototype%":[`WeakMap`,`prototype`],"%WeakSetPrototype%":[`WeakSet`,`prototype`]},X=F(),Z=V(),de=X.call(le,Array.prototype.concat),fe=X.call(ce,Array.prototype.splice),pe=X.call(le,String.prototype.replace),me=X.call(le,String.prototype.slice),he=X.call(le,RegExp.prototype.exec),ge=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,_e=/\\(\\)?/g,ve=function(e){var t=me(e,0,1),n=me(e,-1);if(t===`%`&&n!==`%`)throw new c("invalid intrinsic syntax, expected closing `%`");if(n===`%`&&t!==`%`)throw new c("invalid intrinsic syntax, expected opening `%`");var r=[];return pe(e,ge,function(e,t,n,i){r[r.length]=n?pe(i,_e,`$1`):t||e}),r},ye=function(e,t){var n=e,r;if(Z(Y,n)&&(r=Y[n],n=`%`+r[0]+`%`),Z(q,n)){var i=q[n];if(i===G&&(i=ue(n)),i===void 0&&!t)throw new l(`intrinsic `+e+` exists, but is not available. Please file an issue!`);return{alias:r,name:n,value:i}}throw new c(`intrinsic `+e+` does not exist!`)};t.exports=function(e,t){if(typeof e!=`string`||e.length===0)throw new l(`intrinsic name must be a non-empty string`);if(arguments.length>1&&typeof t!=`boolean`)throw new l(`"allowMissing" argument must be a boolean`);if(he(/^%?[^%]*%?$/,e)===null)throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=ve(e),r=n.length>0?n[0]:``,i=ye(`%`+r+`%`,t),a=i.name,o=i.value,s=!1,u=i.alias;u&&(r=u[0],fe(n,de([0,1],u)));for(var d=1,f=!0;d<n.length;d+=1){var p=n[d],m=me(p,0,1),h=me(p,-1);if((m===`"`||m===`'`||m==="`"||h===`"`||h===`'`||h==="`")&&m!==h)throw new c(`property names with quotes must have matching quotes`);if((p===`constructor`||!f)&&(s=!0),r+=`.`+p,a=`%`+r+`%`,Z(q,a))o=q[a];else if(o!=null){if(!(p in o)){if(!t)throw new l(`base intrinsic for `+e+` exists, but the property is not available.`);return}if(B&&d+1>=n.length){var g=B(o,p);f=!!g,o=f&&`get`in g&&!(`originalValue`in g.get)?g.get:o[p]}else f=Z(o,p),o=o[p];f&&!s&&(q[a]=o)}}return o}}),ie=s((exports,t)=>{var n=H(),r=z(),i=r([n(`%String.prototype.indexOf%`)]);t.exports=function(e,t){var a=n(e,!!t);return typeof a==`function`&&i(e,`.prototype.`)>-1?r([a]):a}}),ae=s((exports,t)=>{var n=H(),r=ie(),i=f(),a=u(),o=n(`%Map%`,!0),s=r(`Map.prototype.get`,!0),c=r(`Map.prototype.set`,!0),l=r(`Map.prototype.has`,!0),d=r(`Map.prototype.delete`,!0),p=r(`Map.prototype.size`,!0);t.exports=!!o&&function(){var e,t={assert:function(e){if(!t.has(e))throw new a(`Side channel does not contain `+i(e))},delete:function(t){if(e){var n=d(e,t);return p(e)===0&&(e=void 0),n}return!1},get:function(t){if(e)return s(e,t)},has:function(t){return e?l(e,t):!1},set:function(t,n){e||=new o,c(e,t,n)}};return t}}),U=s((exports,t)=>{var n=H(),r=ie(),i=f(),a=ae(),o=u(),s=n(`%WeakMap%`,!0),c=r(`WeakMap.prototype.get`,!0),l=r(`WeakMap.prototype.set`,!0),d=r(`WeakMap.prototype.has`,!0),p=r(`WeakMap.prototype.delete`,!0);t.exports=s?function(){var e,t,n={assert:function(e){if(!n.has(e))throw new o(`Side channel does not contain `+i(e))},delete:function(n){if(s&&n&&(typeof n==`object`||typeof n==`function`)){if(e)return p(e,n)}else if(a&&t)return t.delete(n);return!1},get:function(n){return s&&n&&(typeof n==`object`||typeof n==`function`)&&e?c(e,n):t&&t.get(n)},has:function(n){return s&&n&&(typeof n==`object`||typeof n==`function`)&&e?d(e,n):!!t&&t.has(n)},set:function(n,r){s&&n&&(typeof n==`object`||typeof n==`function`)?(e||=new s,l(e,n,r)):a&&(t||=a(),t.set(n,r))}};return n}:a}),W=s((exports,t)=>{var n=u(),r=f(),i=p(),a=ae(),o=U(),s=o||a||i;t.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new n(`Side channel does not contain `+r(e))},delete:function(t){return!!e&&e.delete(t)},get:function(t){return e&&e.get(t)},has:function(t){return!!e&&e.has(t)},set:function(t,n){e||=s(),e.set(t,n)}};return t}}),oe=s((exports,t)=>{var n=String.prototype.replace,r=/%20/g,i={RFC1738:`RFC1738`,RFC3986:`RFC3986`};t.exports={default:i.RFC3986,formatters:{RFC1738:function(e){return n.call(e,r,`+`)},RFC3986:function(e){return String(e)}},RFC1738:i.RFC1738,RFC3986:i.RFC3986}}),se=s((exports,t)=>{var n=oe(),r=Object.prototype.hasOwnProperty,i=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push(`%`+((t<16?`0`:``)+t.toString(16)).toUpperCase());return e}(),o=function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(i(n)){for(var r=[],a=0;a<n.length;++a)n[a]!==void 0&&r.push(n[a]);t.obj[t.prop]=r}}},s=function(e,t){for(var n=t&&t.plainObjects?{__proto__:null}:{},r=0;r<e.length;++r)e[r]!==void 0&&(n[r]=e[r]);return n},c=function e(t,n,a){if(!n)return t;if(typeof n!=`object`&&typeof n!=`function`){if(i(t))t.push(n);else if(t&&typeof t==`object`)(a&&(a.plainObjects||a.allowPrototypes)||!r.call(Object.prototype,n))&&(t[n]=!0);else return[t,n];return t}if(!t||typeof t!=`object`)return[t].concat(n);var o=t;return i(t)&&!i(n)&&(o=s(t,a)),i(t)&&i(n)?(n.forEach(function(n,i){if(r.call(t,i)){var o=t[i];o&&typeof o==`object`&&n&&typeof n==`object`?t[i]=e(o,n,a):t.push(n)}else t[i]=n}),t):Object.keys(n).reduce(function(t,i){var o=n[i];return r.call(t,i)?t[i]=e(t[i],o,a):t[i]=o,t},o)},l=function(e,t){return Object.keys(t).reduce(function(e,n){return e[n]=t[n],e},e)},u=function(e,t,n){var r=e.replace(/\+/g,` `);if(n===`iso-8859-1`)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch{return r}},d=1024,f=function(e,t,r,i,o){if(e.length===0)return e;var s=e;if(typeof e==`symbol`?s=Symbol.prototype.toString.call(e):typeof e!=`string`&&(s=String(e)),r===`iso-8859-1`)return escape(s).replace(/%u[0-9a-f]{4}/gi,function(e){return`%26%23`+parseInt(e.slice(2),16)+`%3B`});for(var c=``,l=0;l<s.length;l+=d){for(var u=s.length>=d?s.slice(l,l+d):s,f=[],p=0;p<u.length;++p){var m=u.charCodeAt(p);if(m===45||m===46||m===95||m===126||m>=48&&m<=57||m>=65&&m<=90||m>=97&&m<=122||o===n.RFC1738&&(m===40||m===41)){f[f.length]=u.charAt(p);continue}if(m<128){f[f.length]=a[m];continue}if(m<2048){f[f.length]=a[192|m>>6]+a[128|m&63];continue}if(m<55296||m>=57344){f[f.length]=a[224|m>>12]+a[128|m>>6&63]+a[128|m&63];continue}p+=1,m=65536+((m&1023)<<10|u.charCodeAt(p)&1023),f[f.length]=a[240|m>>18]+a[128|m>>12&63]+a[128|m>>6&63]+a[128|m&63]}c+=f.join(``)}return c},p=function(e){for(var t=[{obj:{o:e},prop:`o`}],n=[],r=0;r<t.length;++r)for(var i=t[r],a=i.obj[i.prop],s=Object.keys(a),c=0;c<s.length;++c){var l=s[c],u=a[l];typeof u==`object`&&u&&n.indexOf(u)===-1&&(t.push({obj:a,prop:l}),n.push(u))}return o(t),e},m=function(e){return Object.prototype.toString.call(e)===`[object RegExp]`},h=function(e){return!e||typeof e!=`object`?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},g=function(e,t){return[].concat(e,t)},_=function(e,t){if(i(e)){for(var n=[],r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)};t.exports={arrayToObject:s,assign:l,combine:g,compact:p,decode:u,encode:f,isBuffer:h,isRegExp:m,maybeMap:_,merge:c}}),ce=s((exports,t)=>{var n=W(),r=se(),i=oe(),a=Object.prototype.hasOwnProperty,o={brackets:function(e){return e+`[]`},comma:`comma`,indices:function(e,t){return e+`[`+t+`]`},repeat:function(e){return e}},s=Array.isArray,c=Array.prototype.push,l=function(e,t){c.apply(e,s(t)?t:[t])},u=Date.prototype.toISOString,d=i.default,f={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:`indices`,charset:`utf-8`,charsetSentinel:!1,commaRoundTrip:!1,delimiter:`&`,encode:!0,encodeDotInKeys:!1,encoder:r.encode,encodeValuesOnly:!1,filter:void 0,format:d,formatter:i.formatters[d],indices:!1,serializeDate:function(e){return u.call(e)},skipNulls:!1,strictNullHandling:!1},p=function(e){return typeof e==`string`||typeof e==`number`||typeof e==`boolean`||typeof e==`symbol`||typeof e==`bigint`},m={},h=function e(t,i,a,o,c,u,d,h,g,_,v,y,b,x,S,C,w,T){for(var E=t,D=T,ee=0,O=!1;(D=D.get(m))!==void 0&&!O;){var k=D.get(t);if(ee+=1,k!==void 0){if(k===ee)throw RangeError(`Cyclic object value`);O=!0}D.get(m)===void 0&&(ee=0)}if(typeof _==`function`?E=_(i,E):E instanceof Date?E=b(E):a===`comma`&&s(E)&&(E=r.maybeMap(E,function(e){return e instanceof Date?b(e):e})),E===null){if(u)return g&&!C?g(i,f.encoder,w,`key`,x):i;E=``}if(p(E)||r.isBuffer(E)){if(g){var A=C?i:g(i,f.encoder,w,`key`,x);return[S(A)+`=`+S(g(E,f.encoder,w,`value`,x))]}return[S(i)+`=`+S(String(E))]}var j=[];if(E===void 0)return j;var M;if(a===`comma`&&s(E))C&&g&&(E=r.maybeMap(E,g)),M=[{value:E.length>0?E.join(`,`)||null:void 0}];else if(s(_))M=_;else{var N=Object.keys(E);M=v?N.sort(v):N}var te=h?String(i).replace(/\./g,`%2E`):String(i),P=o&&s(E)&&E.length===1?te+`[]`:te;if(c&&s(E)&&E.length===0)return P+`[]`;for(var F=0;F<M.length;++F){var I=M[F],L=typeof I==`object`&&I&&I.value!==void 0?I.value:E[I];if(!(d&&L===null)){var R=y&&h?String(I).replace(/\./g,`%2E`):String(I),ne=s(E)?typeof a==`function`?a(P,R):P:P+(y?`.`+R:`[`+R+`]`);T.set(t,ee);var z=n();z.set(m,T),l(j,e(L,ne,a,o,c,u,d,h,a===`comma`&&C&&s(E)?null:g,_,v,y,b,x,S,C,w,z))}}return j},g=function(e){if(!e)return f;if(e.allowEmptyArrays!==void 0&&typeof e.allowEmptyArrays!=`boolean`)throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(e.encodeDotInKeys!==void 0&&typeof e.encodeDotInKeys!=`boolean`)throw TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(e.encoder!==null&&e.encoder!==void 0&&typeof e.encoder!=`function`)throw TypeError(`Encoder has to be a function.`);var t=e.charset||f.charset;if(e.charset!==void 0&&e.charset!==`utf-8`&&e.charset!==`iso-8859-1`)throw TypeError(`The charset option must be either utf-8, iso-8859-1, or undefined`);var n=i.default;if(e.format!==void 0){if(!a.call(i.formatters,e.format))throw TypeError(`Unknown format option provided.`);n=e.format}var r=i.formatters[n],c=f.filter;(typeof e.filter==`function`||s(e.filter))&&(c=e.filter);var l;if(l=e.arrayFormat in o?e.arrayFormat:`indices`in e?e.indices?`indices`:`repeat`:f.arrayFormat,`commaRoundTrip`in e&&typeof e.commaRoundTrip!=`boolean`)throw TypeError("`commaRoundTrip` must be a boolean, or absent");var u=e.allowDots===void 0?e.encodeDotInKeys===!0?!0:f.allowDots:!!e.allowDots;return{addQueryPrefix:typeof e.addQueryPrefix==`boolean`?e.addQueryPrefix:f.addQueryPrefix,allowDots:u,allowEmptyArrays:typeof e.allowEmptyArrays==`boolean`?!!e.allowEmptyArrays:f.allowEmptyArrays,arrayFormat:l,charset:t,charsetSentinel:typeof e.charsetSentinel==`boolean`?e.charsetSentinel:f.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:e.delimiter===void 0?f.delimiter:e.delimiter,encode:typeof e.encode==`boolean`?e.encode:f.encode,encodeDotInKeys:typeof e.encodeDotInKeys==`boolean`?e.encodeDotInKeys:f.encodeDotInKeys,encoder:typeof e.encoder==`function`?e.encoder:f.encoder,encodeValuesOnly:typeof e.encodeValuesOnly==`boolean`?e.encodeValuesOnly:f.encodeValuesOnly,filter:c,format:n,formatter:r,serializeDate:typeof e.serializeDate==`function`?e.serializeDate:f.serializeDate,skipNulls:typeof e.skipNulls==`boolean`?e.skipNulls:f.skipNulls,sort:typeof e.sort==`function`?e.sort:null,strictNullHandling:typeof e.strictNullHandling==`boolean`?e.strictNullHandling:f.strictNullHandling}};t.exports=function(e,t){var r=e,i=g(t),a,c;typeof i.filter==`function`?(c=i.filter,r=c(``,r)):s(i.filter)&&(c=i.filter,a=c);var u=[];if(typeof r!=`object`||!r)return``;var d=o[i.arrayFormat],f=d===`comma`&&i.commaRoundTrip;a||=Object.keys(r),i.sort&&a.sort(i.sort);for(var p=n(),m=0;m<a.length;++m){var _=a[m],v=r[_];i.skipNulls&&v===null||l(u,h(v,_,d,f,i.allowEmptyArrays,i.strictNullHandling,i.skipNulls,i.encodeDotInKeys,i.encode?i.encoder:null,i.filter,i.sort,i.allowDots,i.serializeDate,i.format,i.formatter,i.encodeValuesOnly,i.charset,p))}var y=u.join(i.delimiter),b=i.addQueryPrefix===!0?`?`:``;return i.charsetSentinel&&(i.charset===`iso-8859-1`?b+=`utf8=%26%2310003%3B&`:b+=`utf8=%E2%9C%93&`),y.length>0?b+y:``}}),le=s((exports,t)=>{var n=se(),r=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:`utf-8`,charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:n.decode,delimiter:`&`,depth:5,duplicates:`combine`,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},o=function(e){return e.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},s=function(e,t,n){if(e&&typeof e==`string`&&t.comma&&e.indexOf(`,`)>-1)return e.split(`,`);if(t.throwOnLimitExceeded&&n>=t.arrayLimit)throw RangeError(`Array limit exceeded. Only `+t.arrayLimit+` element`+(t.arrayLimit===1?``:`s`)+` allowed in an array.`);return e},c=`utf8=%26%2310003%3B`,l=`utf8=%E2%9C%93`,u=function(e,t){var u={__proto__:null},d=t.ignoreQueryPrefix?e.replace(/^\?/,``):e;d=d.replace(/%5B/gi,`[`).replace(/%5D/gi,`]`);var f=t.parameterLimit===1/0?void 0:t.parameterLimit,p=d.split(t.delimiter,t.throwOnLimitExceeded?f+1:f);if(t.throwOnLimitExceeded&&p.length>f)throw RangeError(`Parameter limit exceeded. Only `+f+` parameter`+(f===1?``:`s`)+` allowed.`);var m=-1,h,g=t.charset;if(t.charsetSentinel)for(h=0;h<p.length;++h)p[h].indexOf(`utf8=`)===0&&(p[h]===l?g=`utf-8`:p[h]===c&&(g=`iso-8859-1`),m=h,h=p.length);for(h=0;h<p.length;++h)if(h!==m){var _=p[h],v=_.indexOf(`]=`),y=v===-1?_.indexOf(`=`):v+1,b,x;y===-1?(b=t.decoder(_,a.decoder,g,`key`),x=t.strictNullHandling?null:``):(b=t.decoder(_.slice(0,y),a.decoder,g,`key`),x=n.maybeMap(s(_.slice(y+1),t,i(u[b])?u[b].length:0),function(e){return t.decoder(e,a.decoder,g,`value`)})),x&&t.interpretNumericEntities&&g===`iso-8859-1`&&(x=o(String(x))),_.indexOf(`[]=`)>-1&&(x=i(x)?[x]:x);var S=r.call(u,b);S&&t.duplicates===`combine`?u[b]=n.combine(u[b],x):(!S||t.duplicates===`last`)&&(u[b]=x)}return u},d=function(e,t,r,i){var a=0;if(e.length>0&&e[e.length-1]===`[]`){var o=e.slice(0,-1).join(``);a=Array.isArray(t)&&t[o]?t[o].length:0}for(var c=i?t:s(t,r,a),l=e.length-1;l>=0;--l){var u,d=e[l];if(d===`[]`&&r.parseArrays)u=r.allowEmptyArrays&&(c===``||r.strictNullHandling&&c===null)?[]:n.combine([],c);else{u=r.plainObjects?{__proto__:null}:{};var f=d.charAt(0)===`[`&&d.charAt(d.length-1)===`]`?d.slice(1,-1):d,p=r.decodeDotInKeys?f.replace(/%2E/g,`.`):f,m=parseInt(p,10);!r.parseArrays&&p===``?u={0:c}:!isNaN(m)&&d!==p&&String(m)===p&&m>=0&&r.parseArrays&&m<=r.arrayLimit?(u=[],u[m]=c):p!==`__proto__`&&(u[p]=c)}c=u}return c},f=function(e,t,n,i){if(e){var a=n.allowDots?e.replace(/\.([^.[]+)/g,`[$1]`):e,o=/(\[[^[\]]*])/,s=/(\[[^[\]]*])/g,c=n.depth>0&&o.exec(a),l=c?a.slice(0,c.index):a,u=[];if(l){if(!n.plainObjects&&r.call(Object.prototype,l)&&!n.allowPrototypes)return;u.push(l)}for(var f=0;n.depth>0&&(c=s.exec(a))!==null&&f<n.depth;){if(f+=1,!n.plainObjects&&r.call(Object.prototype,c[1].slice(1,-1))&&!n.allowPrototypes)return;u.push(c[1])}if(c){if(n.strictDepth===!0)throw RangeError(`Input depth exceeded depth option of `+n.depth+` and strictDepth is true`);u.push(`[`+a.slice(c.index)+`]`)}return d(u,t,n,i)}},p=function(e){if(!e)return a;if(e.allowEmptyArrays!==void 0&&typeof e.allowEmptyArrays!=`boolean`)throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(e.decodeDotInKeys!==void 0&&typeof e.decodeDotInKeys!=`boolean`)throw TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(e.decoder!==null&&e.decoder!==void 0&&typeof e.decoder!=`function`)throw TypeError(`Decoder has to be a function.`);if(e.charset!==void 0&&e.charset!==`utf-8`&&e.charset!==`iso-8859-1`)throw TypeError(`The charset option must be either utf-8, iso-8859-1, or undefined`);if(e.throwOnLimitExceeded!==void 0&&typeof e.throwOnLimitExceeded!=`boolean`)throw TypeError("`throwOnLimitExceeded` option must be a boolean");var t=e.charset===void 0?a.charset:e.charset,r=e.duplicates===void 0?a.duplicates:e.duplicates;if(r!==`combine`&&r!==`first`&&r!==`last`)throw TypeError(`The duplicates option must be either combine, first, or last`);var i=e.allowDots===void 0?e.decodeDotInKeys===!0?!0:a.allowDots:!!e.allowDots;return{allowDots:i,allowEmptyArrays:typeof e.allowEmptyArrays==`boolean`?!!e.allowEmptyArrays:a.allowEmptyArrays,allowPrototypes:typeof e.allowPrototypes==`boolean`?e.allowPrototypes:a.allowPrototypes,allowSparse:typeof e.allowSparse==`boolean`?e.allowSparse:a.allowSparse,arrayLimit:typeof e.arrayLimit==`number`?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:typeof e.charsetSentinel==`boolean`?e.charsetSentinel:a.charsetSentinel,comma:typeof e.comma==`boolean`?e.comma:a.comma,decodeDotInKeys:typeof e.decodeDotInKeys==`boolean`?e.decodeDotInKeys:a.decodeDotInKeys,decoder:typeof e.decoder==`function`?e.decoder:a.decoder,delimiter:typeof e.delimiter==`string`||n.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:typeof e.depth==`number`||e.depth===!1?+e.depth:a.depth,duplicates:r,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities==`boolean`?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:typeof e.parameterLimit==`number`?e.parameterLimit:a.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects==`boolean`?e.plainObjects:a.plainObjects,strictDepth:typeof e.strictDepth==`boolean`?!!e.strictDepth:a.strictDepth,strictNullHandling:typeof e.strictNullHandling==`boolean`?e.strictNullHandling:a.strictNullHandling,throwOnLimitExceeded:typeof e.throwOnLimitExceeded==`boolean`?e.throwOnLimitExceeded:!1}};t.exports=function(e,t){var r=p(t);if(e===``||e==null)return r.plainObjects?{__proto__:null}:{};for(var i=typeof e==`string`?u(e,r):e,a=r.plainObjects?{__proto__:null}:{},o=Object.keys(i),s=0;s<o.length;++s){var c=o[s],l=f(c,i[c],r,typeof e==`string`);a=n.merge(a,l,r)}return r.allowSparse===!0?a:n.compact(a)}}),G=s((exports,t)=>{var n=ce(),r=le(),i=oe();t.exports={formats:i,parse:r,stringify:n}});let K=(e,t)=>e?!t||t.length===0?e:t.reduce((e,t)=>(delete e[t],e),{...e}):{},q=function(e){return e.JSON=`application/json`,e.FORM_URLENCODED=`application/x-www-form-urlencoded`,e.FORM_DATA=`multipart/form-data`,e.TEXT=`text/plain`,e.HTML=`text/html`,e.XML=`text/xml`,e.CSV=`text/csv`,e.STREAM=`application/octet-stream`,e}({}),J=function(e){return e[e.TIME_OUT=408]=`TIME_OUT`,e[e.ABORTED=499]=`ABORTED`,e[e.NETWORK_ERROR=599]=`NETWORK_ERROR`,e[e.BODY_NULL=502]=`BODY_NULL`,e[e.UNKNOWN=601]=`UNKNOWN`,e}({}),ue=function(e){return e.GET=`GET`,e.POST=`POST`,e.PUT=`PUT`,e.DELETE=`DELETE`,e.PATCH=`PATCH`,e.HEAD=`HEAD`,e.OPTIONS=`OPTIONS`,e}({});var Y=class extends Error{#message;#name;#status;#statusText;#response;#config;constructor({message:e,status:t,statusText:n,response:r,config:i,name:a}){super(e),this.#message=e,this.#status=t,this.#statusText=n,this.#response=r,this.#config=i,this.#name=a??e}get message(){return this.#message}get status(){return this.#status}get statusText(){return this.#statusText}get response(){return this.#response}get config(){return this.#config}get name(){return this.#name}},X=l(G(),1),Z=function(e){return e.JSON=`json`,e.BLOB=`blob`,e.TEXT=`text`,e.ARRAY_BUFFER=`arrayBuffer`,e.FORM_DATA=`formData`,e.BYTES=`bytes`,e}(Z||{});function de(e){let t=new Map;e.forEach(e=>{t.set(e.name,e)});let n=Array.from(t.values()).sort((e,t)=>(e.priority??0)-(t.priority??0)),r=[],i=[],a=[],o=[],s=[],c=[];return n.forEach(e=>{e.beforeRequest&&r.push(e.beforeRequest),e.afterResponse&&i.push(e.afterResponse),e.onError&&a.push(e.onError),e.onFinally&&o.push(e.onFinally),e.transformStreamChunk&&s.push(e.transformStreamChunk),e.beforeStream&&c.push(e.beforeStream)}),{beforeRequestPlugins:r,afterResponsePlugins:i,errorPlugins:a,finallyPlugins:o,beforeStreamPlugins:c,transformStreamChunkPlugins:s}}function fe(e,t,n=`repeat`){if(t){let r=X.default.stringify(t,{arrayFormat:n});r&&(e=e.includes(`?`)?`${e}&${r}`:`${e}?${r}`)}return e}function pe(e={},t={}){let n=e instanceof Headers?e:new Headers(e),r=e=>{e instanceof Headers||(e=new Headers(e)),e.forEach((e,t)=>{n.set(t,e)})};return r(t),n}let me=[`PATCH`,`POST`,`PUT`,`DELETE`,`OPTIONS`],he=[`GET`,`HEAD`];function ge(e,t,n,r=`repeat`){if(!e)return null;if(e instanceof FormData)return e;let i=null;if(me.includes(t.toUpperCase())){let t=new Headers(n||{}),a=t.get(`Content-Type`)||q.JSON;if(a.includes(q.JSON))i=JSON.stringify(e);else if(a.includes(q.FORM_URLENCODED))i=X.default.stringify(e,{arrayFormat:r});else if(a.includes(q.FORM_DATA)){let t=new FormData;if(!(e instanceof FormData)&&typeof e==`object`){let n=e;Object.keys(n).forEach(e=>{n.prototype.hasOwnProperty.call(e)&&t.append(e,n[e])}),i=t}}}return he.includes(t.toUpperCase())&&(i=null),i}var _e=class e{#plugins;#controller;#config;#promise;#isTimeout=!1;#executor=null;#finallyCallbacks=new Set;#responseType=`json`;#fullOptions;constructor(e){this.#fullOptions=e;let{plugins:t=[],controller:n,url:r,baseURL:i=``,params:a,data:o,qsArrayFormat:s=`repeat`,withCredentials:c=!1,extra:l,method:u=`GET`,headers:d={}}=e;this.#controller=n??new AbortController,this.#plugins=de(t),this.#config={url:r,baseURL:i,params:a,data:o,withCredentials:c,extra:l,method:u,headers:d,qsArrayFormat:s},this.#promise=this.#init(e)}#init({timeout:e}){return new Promise(async(t,n)=>{let r=this.#config,{beforeRequestPlugins:i}=this.#plugins,a=null;for(let e of i)try{r=await e(r)}catch(e){a=new Y({message:e?.message??`Unknown Request Error in beforeRequest`,status:e?.status??J.UNKNOWN,statusText:e?.statusText??`Unknown Request Error in beforeRequest`,config:this.#config,name:e?.name??`Unknown Request Error in beforeRequest`});break}if(a)return n(a);let o=fe(r.baseURL+r.url,r.params,r.qsArrayFormat),s=ge(r.data,r.method,r.headers,r.qsArrayFormat),c=K(r??{},[`baseURL`,`data`,`extra`,`headers`,`method`,`params`,`url`,`withCredentials`]),l={...c,method:r.method,headers:r.headers,signal:this.#controller.signal,credentials:r.withCredentials?`include`:`omit`,body:s},u=fetch(o,l),d=[u],f=null;if(e){let t=new Promise(t=>{f=setTimeout(()=>{this.#isTimeout=!0,this.#controller?.abort()},e)});d.push(t)}try{let e=await Promise.race(d);e?(e.ok&&t(e),a=new Y({message:`Fail Request`,status:e.status,statusText:e.statusText,config:this.#config,name:`Fail Request`,response:e})):a=new Y({message:`NETWORK_ERROR`,status:J.NETWORK_ERROR,statusText:`Network Error`,config:this.#config,name:`Network Error`})}catch(e){a=e}finally{a&&n(a),f&&clearTimeout(f)}})}async#createNormalizeError(e){return e instanceof Y?e:e instanceof TypeError?e.name===`AbortError`?this.#isTimeout?new Y({message:`Request timeout`,status:J.TIME_OUT,statusText:`Request timeout`,config:this.#config,name:`Request timeout`,response:await this.#response}):new Y({message:`Request aborted`,status:J.ABORTED,statusText:`Request aborted`,config:this.#config,name:`Request aborted`,response:await this.#response}):new Y({message:e.message,status:J.NETWORK_ERROR,statusText:`Unknown Request Error`,config:this.#config,name:e.name,response:await this.#response}):new Y({message:e?.message??`Unknown Request Error`,status:J.UNKNOWN,statusText:`Unknown Request Error`,config:this.#config,name:`Unknown Request Error`,response:await this.#response})}async#normalizeError(e){let t=await this.#createNormalizeError(e);for(let e of this.#plugins.errorPlugins)t=await e(t,this.#config);return t.__normalized=!0,t}#execFinally(){for(let e of this.#finallyCallbacks)e();this.#finallyCallbacks.clear()}get#getExecutor(){return this.#executor?this.#executor:this.#response}async#resolve(e){let t=this.#plugins.afterResponsePlugins,n={config:this.#config,response:await this.#response,responseType:this.#responseType,controller:this.#controller,result:e};try{for(let e of t)n=await e(n,this.#config);return n.result}catch(e){return Promise.reject(e)}}then(e,t){return this.#getExecutor.then(async t=>e?.call(this,await this.#resolve(t)),async e=>t?.call(this,await this.#normalizeError(e)))}catch(e){return this.#getExecutor.catch(e)}finally(e){this.#finallyCallbacks.add(e)}abort(){this.#controller.abort()}get#response(){return this.#promise.then(e=>e.clone()).catch(async e=>{throw await this.#normalizeError(e)})}json(){return this.#then(Z.JSON,this.#response.then(e=>e.json()))}blob(){return this.#then(Z.BLOB,this.#response.then(e=>e.blob()))}text(){return this.#then(Z.TEXT,this.#response.then(e=>e.text()))}arrayBuffer(){return this.#then(Z.ARRAY_BUFFER,this.#response.then(e=>e.arrayBuffer()))}#then(e,t){return this.#executor=t.then(t=>(this.#responseType=e,this.#resolve(t))).catch(async t=>{throw this.#responseType=e,t.__normalized?t:await this.#normalizeError(t)}).finally(this.#execFinally.bind(this)),this.#executor}formData(){return this.#then(Z.FORM_DATA,this.#response.then(e=>e.formData()))}bytes(){return this.#then(Z.BYTES,this.#response.then(e=>e.bytes()))}async*stream(){let e=(await this.#response)?.body;if(!e)throw Error(`Response body is null`);for(let t of this.#plugins.beforeStreamPlugins)e=await t(e,this.#config);let t=e.getReader();if(!t)throw Error(`Response body reader is null`);try{for(;;){let{done:e,value:n}=await t.read();if(e)break;let r={source:n,result:n,error:null};try{for(let e of this.#plugins.transformStreamChunkPlugins)r=await e(r,this.#config);if(r.result&&(ve(r.result)||ye(r.result)))for await(let e of r.result){let t={source:r.source,result:e,error:null};yield t}else yield r}catch(e){r.error=e,r.result=null,yield r}}}catch(e){return this.#normalizeError(e)}finally{t.releaseLock(),this.#execFinally()}}retry(){let{controller:t,...n}=this.#fullOptions;return new e(n)}get response(){return this.#response}};function ve(e){return e[Symbol.toStringTag]===`Generator`&&typeof e.next==`function`&&typeof e.return==`function`&&typeof e.throw==`function`&&typeof e[Symbol.iterator]==`function`}function ye(e){return e[Symbol.toStringTag]===`AsyncGenerator`&&typeof e.next==`function`&&typeof e.return==`function`&&typeof e.throw==`function`&&typeof e[Symbol.asyncIterator]==`function`}function be(e){return new _e(e)}var xe=class{#timeout;#baseURL;#commonHeaders;#queue=[];#plugins=[];#withCredentials;constructor({timeout:e=0,baseURL:t=``,headers:n={},plugins:r=[],withCredentials:i=!1}){this.#timeout=e,this.#baseURL=t,this.#commonHeaders=n,this.#plugins=r,this.#withCredentials=i,this.request=this.request.bind(this),this.get=this.get.bind(this),this.head=this.head.bind(this),this.options=this.options.bind(this),this.delete=this.delete.bind(this),this.post=this.post.bind(this),this.put=this.put.bind(this),this.patch=this.patch.bind(this),this.abortAll=this.abortAll.bind(this),this.use=this.use.bind(this)}use(e){return this.#plugins.push(e),this}request(e,{timeout:t,headers:n,method:r=`GET`,params:i={},data:a={},qsArrayFormat:o,withCredentials:s,extra:c={}}={}){let l=new AbortController;this.#queue.push(l);let u=be({url:e,baseURL:this.#baseURL,timeout:t??this.#timeout,plugins:this.#plugins,headers:pe(this.#commonHeaders,n),controller:l,method:r,params:i,data:a,qsArrayFormat:o,withCredentials:s??this.#withCredentials,extra:c});return u.finally(()=>{this.#queue=this.#queue.filter(e=>e!==l)}),u}#requestWithParams(e,t={},n={}){return this.request(e,{...n,params:t})}#requestWithBody(e,t={},n={}){return this.request(e,{...n,data:t})}get(e,t={},n){return this.#requestWithParams(e,t,{...n,method:`GET`})}head(e,t={},n){return this.#requestWithParams(e,t,{...n,method:`HEAD`})}options(e,t={},n){return this.request(e,{...n,method:`OPTIONS`,params:t})}delete(e,t){return this.request(e,{...t,method:`DELETE`})}post(e,t,n){return this.#requestWithBody(e,t,{...n,method:`POST`})}upload(e,t,n){let r=new FormData;for(let e in t)if(Object.prototype.hasOwnProperty.call(t,e)){let n=t[e];n instanceof File||n instanceof Blob?r.append(e,n):r.append(e,String(n))}return this.#requestWithBody(e,r,{...n,method:`POST`})}put(e,t,n){return this.#requestWithBody(e,t,{...n,method:`PUT`})}patch(e,t,n){return this.#requestWithBody(e,t,{...n,method:`PATCH`})}abortAll(){this.#queue.forEach(e=>e.abort()),this.#queue=[]}};function Q(e,t={}){return be({url:e,baseURL:``,...t})}function Se(e,t,n={}){return Q(e,{...n,params:t})}function Ce(e,t=null,n={}){return Q(e,{...n,data:t})}let we=Q;function Te(e,t={},n){return Se(e,t,{...n,method:`GET`})}function Ee(e,t={},n){return Se(e,t,{...n,method:`HEAD`})}function De(e,t={},n){return Q(e,{...n,params:t,method:`OPTIONS`})}function Oe(e,t){return Q(e,{...t,method:`DELETE`})}function ke(e,t,n){return Ce(e,t,{...n,method:`POST`})}function Ae(e,t,n){let r=new FormData;for(let e in t)if(Object.prototype.hasOwnProperty.call(t,e)){let n=t[e];n instanceof File||n instanceof Blob?r.append(e,n):r.append(e,String(n))}return Ce(e,r,{...n,method:`POST`})}function je(e,t,n){return Ce(e,t,{...n,method:`PUT`})}function Me(e,t,n){return Ce(e,t,{...n,method:`PATCH`})}let $=Q;$.create=e=>{let t=new xe(e),n=t.request.bind(void 0);return Object.assign(n,xe.prototype,t),n},$.get=Te,$.head=Ee,$.options=De,$.delete=Oe,$.post=ke,$.put=je,$.patch=Me,$.upload=Ae;var Ne=$;let Pe=({splitSeparator:e=`
|
|
5
5
|
|
|
6
6
|
`,lineSeparator:t=void 0,trim:n=!0,json:r=!1,prefix:i=``,doneSymbol:a=void 0}={})=>({name:`sse`,async beforeStream(o,s){if(!(s.extra?.sseAble??!0))return o;let c=new TextDecoderStream,l=new Ie({splitSeparator:e}),u=new Le({splitSeparator:t,trim:n,json:r,prefix:i,doneSymbol:a});return o.pipeThrough(c).pipeThrough(l).pipeThrough(u)}}),Fe=e=>(e??``).trim()!==``;var Ie=class extends TransformStream{constructor({splitSeparator:e=`
|
|
7
7
|
|
package/package.json
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"hook-fetch-plugin-response-transform",
|
|
19
19
|
"hook-fetch-plugin-request-transform"
|
|
20
20
|
],
|
|
21
|
-
"version": "2.1.
|
|
21
|
+
"version": "2.1.5",
|
|
22
22
|
"scripts": {
|
|
23
23
|
"dev": "vite",
|
|
24
24
|
"build:rolldown": "rolldown -c ./rolldown.config.ts",
|
|
@@ -37,6 +37,7 @@
|
|
|
37
37
|
"!dist/**/*.map",
|
|
38
38
|
"README.md",
|
|
39
39
|
"LICENSE",
|
|
40
|
+
"CHANGELOG.md",
|
|
40
41
|
"README.en.md"
|
|
41
42
|
],
|
|
42
43
|
"main": "./dist/cjs/index.cjs",
|