@oiyo/framework 0.4.7 → 0.4.8

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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @oiyo/framework v0.4.7
2
+ * @oiyo/framework v0.4.8
3
3
  * Copyright (c) 2026 skiyee. All rights reserved.
4
4
  * Commercial software. See LICENSE for terms.
5
5
  * Official site: https://oiyo.js.org
@@ -57,22 +57,21 @@ type MappedResponseBodyType<TRBType extends ResponseBodyType, TRBJsonType = any>
57
57
  //#endregion
58
58
  //#region src/oiyo/http/types/uni.d.ts
59
59
  type UniAppRequestOptions = Omit<UniNamespace.RequestOptions, 'url' | 'data' | 'header' | 'method' | 'timeout' | 'responseType' | 'success' | 'fail' | 'complete'>;
60
+ interface UniAppOnChunkData {
61
+ data: ArrayBuffer;
62
+ }
60
63
  type UniAppRequestResponse<TRBody = any> = Prettify<Omit<UniNamespace.RequestSuccessCallbackResult, 'data'> & {
61
64
  data: TRBody;
62
65
  }>;
63
66
  type UniAppUploadOptions = Omit<UniNamespace.UploadFileOption, 'url' | 'header' | 'formData' | 'timeout' | 'success' | 'fail' | 'complete'>;
64
- interface UniAppOnUploadProgress extends UniNamespace.OnProgressUpdateResult {}
67
+ interface UniAppOnUploadProgressData extends UniNamespace.OnProgressUpdateResult {}
65
68
  type UniAppUploadResponse<TRBody = any> = Prettify<Omit<UniNamespace.UploadFileSuccessCallbackResult, 'data'> & {
66
69
  data: TRBody;
67
70
  }>;
68
71
  type UniAppDownloadBodyType = 'json';
69
72
  type UniAppDownloadBody = Prettify<Pick<UniNamespace.DownloadSuccessData, 'tempFilePath'>>;
70
73
  type UniAppDownloadOptions = Omit<UniNamespace.DownloadFileOption, 'url' | 'header' | 'timeout' | 'success' | 'fail' | 'complete'>;
71
- interface UniAppDownloadProgress extends UniNamespace.OnProgressDownloadResult {
72
- progress: number;
73
- totalBytesWritten: number;
74
- totalBytesExpectedToWrite: number;
75
- }
74
+ interface UniAppDownloadProgressData extends UniNamespace.OnProgressDownloadResult {}
76
75
  type UniAppDownloadResponse<TRBody = any> = Prettify<Omit<UniNamespace.DownloadSuccessData, keyof UniAppDownloadBody> & {
77
76
  data: TRBody;
78
77
  }>;
@@ -120,7 +119,16 @@ interface HttpCommonOptions<TRBType extends ResponseBodyType = ResponseBodyType>
120
119
  onHeadersReceived?: (result: HeadersReceived) => void;
121
120
  }
122
121
  interface HttpRequestOptions<TRBType extends ResponseBodyType = ResponseBodyType> extends HttpCommonOptions<TRBType>, UniAppRequestOptions {
122
+ /**
123
+ * 普通请求方法,强制 POST
124
+ * @default - 'POST'
125
+ */
123
126
  method?: 'GET' | 'POST' | 'PUT' | 'DELETE' | 'HEAD' | 'OPTIONS' | 'TRACE' | 'CONNECT';
127
+ /**
128
+ * 监听流式数据
129
+ * @description onChunkReceived
130
+ */
131
+ onChunk?: (data: UniAppOnChunkData) => void;
124
132
  }
125
133
  interface HttpUploadOptions<TRBType extends ResponseBodyType = ResponseBodyType> extends HttpCommonOptions<TRBType>, UniAppUploadOptions {
126
134
  /**
@@ -129,9 +137,10 @@ interface HttpUploadOptions<TRBType extends ResponseBodyType = ResponseBodyType>
129
137
  */
130
138
  method?: 'POST';
131
139
  /**
132
- * 监听上传进度(对应 task.onProgressUpdate)。
140
+ * 监听上传进度
141
+ * @description 对应 onProgressUpdate
133
142
  */
134
- onProgress?: (result: UniAppOnUploadProgress) => void;
143
+ onProgress?: (data: UniAppOnUploadProgressData) => void;
135
144
  }
136
145
  interface HttpDownloadOptions<TRBType extends UniAppDownloadBodyType = 'json'> extends HttpCommonOptions<TRBType>, UniAppDownloadOptions {
137
146
  /**
@@ -140,40 +149,41 @@ interface HttpDownloadOptions<TRBType extends UniAppDownloadBodyType = 'json'> e
140
149
  */
141
150
  method?: 'GET';
142
151
  /**
143
- * 监听下载进度(对应 task.onProgressUpdate)。
152
+ * 监听下载进度
153
+ * @description 对应 onProgressUpdate
144
154
  */
145
- onProgress?: (result: UniAppDownloadProgress) => void;
155
+ onProgress?: (data: UniAppDownloadProgressData) => void;
146
156
  }
147
157
  type HttpURL = string;
148
158
  interface HttpOptions extends HttpCommonOptions, UniAppRequestOptions, UniAppUploadOptions, UniAppDownloadOptions {}
149
159
  //#endregion
150
160
  //#region src/oiyo/http/types/response.d.ts
151
- type HttpRequestResponse<TRBody = any, TRBType extends ResponseBodyType = ResponseBodyType> = MappedResponseBodyType<TRBType, TRBody>;
152
- type HttpUploadResponse<TRBody = any, TRBType extends ResponseBodyType = ResponseBodyType> = MappedResponseBodyType<TRBType, TRBody>;
153
- type HttpDownloadResponse<TRBody extends UniAppDownloadBody = UniAppDownloadBody, TRBType extends UniAppDownloadBodyType = 'json'> = MappedResponseBodyType<TRBType, TRBody>;
154
- type HttpRequestRawResponse<TRBody = any, TRBType extends ResponseBodyType = ResponseBodyType> = UniAppRequestResponse<MappedResponseBodyType<TRBType, TRBody>>;
155
- type HttpUploadRawResponse<TRBody = any, TRBType extends ResponseBodyType = ResponseBodyType> = UniAppUploadResponse<MappedResponseBodyType<TRBType, TRBody>>;
156
- type HttpDownloadRawResponse<TRBody extends UniAppDownloadBody = UniAppDownloadBody, TRBType extends UniAppDownloadBodyType = 'json'> = UniAppDownloadResponse<MappedResponseBodyType<TRBType, TRBody>>;
157
- type HttpRawResponse<T = any> = HttpRequestRawResponse<T> | HttpUploadRawResponse<T> | HttpDownloadRawResponse;
161
+ type HttpRequestResult<TRBody = any, TRBType extends ResponseBodyType = ResponseBodyType> = MappedResponseBodyType<TRBType, TRBody>;
162
+ type HttpUploadResult<TRBody = any, TRBType extends ResponseBodyType = ResponseBodyType> = MappedResponseBodyType<TRBType, TRBody>;
163
+ type HttpDownloadResult<TRBody extends UniAppDownloadBody = UniAppDownloadBody, TRBType extends UniAppDownloadBodyType = 'json'> = MappedResponseBodyType<TRBType, TRBody>;
164
+ type HttpRequestResponse<TRBody = any, TRBType extends ResponseBodyType = ResponseBodyType> = UniAppRequestResponse<MappedResponseBodyType<TRBType, TRBody>>;
165
+ type HttpUploadResponse<TRBody = any, TRBType extends ResponseBodyType = ResponseBodyType> = UniAppUploadResponse<MappedResponseBodyType<TRBType, TRBody>>;
166
+ type HttpDownloadResponse<TRBody extends UniAppDownloadBody = UniAppDownloadBody, TRBType extends UniAppDownloadBodyType = 'json'> = UniAppDownloadResponse<MappedResponseBodyType<TRBType, TRBody>>;
167
+ type HttpResponse<T = any> = HttpRequestResponse<T> | HttpUploadResponse<T> | HttpDownloadResponse;
158
168
  //#endregion
159
169
  //#region src/oiyo/http/types/core.d.ts
160
- interface HttpRequestMethod {
170
+ interface HttpRequest {
161
171
  <TRBody = any, TRBType extends ResponseBodyType = 'json'>(resource: HttpURL, options: HttpRequestOptions<TRBType> & {
162
172
  raw: true;
163
- }): Promise<HttpRequestRawResponse<TRBody, TRBType>>;
164
- <TRBody = any, TRBType extends ResponseBodyType = 'json'>(resource: HttpURL, options?: HttpRequestOptions<TRBType>): Promise<HttpRequestResponse<TRBody, TRBType>>;
173
+ }): Promise<HttpRequestResponse<TRBody, TRBType>>;
174
+ <TRBody = any, TRBType extends ResponseBodyType = 'json'>(resource: HttpURL, options?: HttpRequestOptions<TRBType>): Promise<HttpRequestResult<TRBody, TRBType>>;
165
175
  }
166
- interface HttpUploadMethod {
176
+ interface HttpUpload {
167
177
  <TRBody = any, TRBType extends ResponseBodyType = 'json'>(resource: HttpURL, options: HttpUploadOptions<TRBType> & {
168
178
  raw: true;
169
- }): Promise<HttpUploadRawResponse<TRBody, TRBType>>;
170
- <TRBody = any, TRBType extends ResponseBodyType = 'json'>(resource: HttpURL, options?: HttpUploadOptions<TRBType>): Promise<HttpUploadResponse<TRBody, TRBType>>;
179
+ }): Promise<HttpUploadResponse<TRBody, TRBType>>;
180
+ <TRBody = any, TRBType extends ResponseBodyType = 'json'>(resource: HttpURL, options?: HttpUploadOptions<TRBType>): Promise<HttpUploadResult<TRBody, TRBType>>;
171
181
  }
172
- interface HttpDownloadMethod {
182
+ interface HttpDownload {
173
183
  <TRBody extends UniAppDownloadBody = UniAppDownloadBody, TRBType extends UniAppDownloadBodyType = UniAppDownloadBodyType>(resource: HttpURL, options: HttpDownloadOptions<TRBType> & {
174
184
  raw: true;
175
- }): Promise<HttpDownloadRawResponse<TRBody, TRBType>>;
176
- <TRBody extends UniAppDownloadBody = UniAppDownloadBody, TRBType extends UniAppDownloadBodyType = UniAppDownloadBodyType>(resource: HttpURL, options?: HttpDownloadOptions<TRBType>): Promise<HttpDownloadResponse<TRBody, TRBType>>;
185
+ }): Promise<HttpDownloadResponse<TRBody, TRBType>>;
186
+ <TRBody extends UniAppDownloadBody = UniAppDownloadBody, TRBType extends UniAppDownloadBodyType = UniAppDownloadBodyType>(resource: HttpURL, options?: HttpDownloadOptions<TRBType>): Promise<HttpDownloadResult<TRBody, TRBType>>;
177
187
  }
178
188
  interface HttpHooks<TContextOptions, TResponse> {
179
189
  onRequest?: (context: {
@@ -196,11 +206,11 @@ interface HttpHooks<TContextOptions, TResponse> {
196
206
  response: TResponse;
197
207
  }) => MaybePromise<void>;
198
208
  }
199
- interface HttpConfig extends HttpCommonOptions, HttpHooks<HttpOptions, HttpRawResponse> {}
209
+ interface HttpConfig extends HttpCommonOptions, HttpHooks<HttpOptions, HttpResponse> {}
200
210
  interface HttpError<T = any> extends Error {
201
211
  resource?: HttpURL;
202
212
  options?: HttpOptions;
203
- response?: HttpRawResponse<T>;
213
+ response?: HttpResponse<T>;
204
214
  data: T;
205
215
  }
206
216
  //#endregion
@@ -209,15 +219,15 @@ interface Http {
209
219
  /**
210
220
  * 普通请求
211
221
  */
212
- request: HttpRequestMethod;
222
+ request: HttpRequest;
213
223
  /**
214
224
  * 文件上传
215
225
  */
216
- upload: HttpUploadMethod;
226
+ upload: HttpUpload;
217
227
  /**
218
228
  * 文件下载
219
229
  */
220
- download: HttpDownloadMethod;
230
+ download: HttpDownload;
221
231
  /**
222
232
  * 基于当前配置派生一个新实例。
223
233
  */
@@ -226,4 +236,4 @@ interface Http {
226
236
  declare function createHttp(globalConfig?: HttpConfig): Http;
227
237
  declare const http: Http;
228
238
  //#endregion
229
- export { HttpDownloadResponse as a, HttpCommonOptions as c, HttpRequestOptions as d, HttpUploadOptions as f, HttpError as i, HttpDownloadOptions as l, createHttpAborter as m, http as n, HttpRequestResponse as o, ResponseBodyType as p, HttpConfig as r, HttpUploadResponse as s, createHttp as t, HttpOptions as u };
239
+ export { HttpDownloadResponse as a, HttpUploadResponse as c, HttpOptions as d, HttpRequestOptions as f, createHttpAborter as h, HttpError as i, HttpCommonOptions as l, ResponseBodyType as m, http as n, HttpRequestResponse as o, HttpUploadOptions as p, HttpConfig as r, HttpResponse as s, createHttp as t, HttpDownloadOptions as u };
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @oiyo/framework v0.4.7
2
+ * @oiyo/framework v0.4.8
3
3
  * Copyright (c) 2026 skiyee. All rights reserved.
4
4
  * Commercial software. See LICENSE for terms.
5
5
  * Official site: https://oiyo.js.org
@@ -57,22 +57,21 @@ type MappedResponseBodyType<TRBType extends ResponseBodyType, TRBJsonType = any>
57
57
  //#endregion
58
58
  //#region src/oiyo/http/types/uni.d.ts
59
59
  type UniAppRequestOptions = Omit<UniNamespace.RequestOptions, 'url' | 'data' | 'header' | 'method' | 'timeout' | 'responseType' | 'success' | 'fail' | 'complete'>;
60
+ interface UniAppOnChunkData {
61
+ data: ArrayBuffer;
62
+ }
60
63
  type UniAppRequestResponse<TRBody = any> = Prettify<Omit<UniNamespace.RequestSuccessCallbackResult, 'data'> & {
61
64
  data: TRBody;
62
65
  }>;
63
66
  type UniAppUploadOptions = Omit<UniNamespace.UploadFileOption, 'url' | 'header' | 'formData' | 'timeout' | 'success' | 'fail' | 'complete'>;
64
- interface UniAppOnUploadProgress extends UniNamespace.OnProgressUpdateResult {}
67
+ interface UniAppOnUploadProgressData extends UniNamespace.OnProgressUpdateResult {}
65
68
  type UniAppUploadResponse<TRBody = any> = Prettify<Omit<UniNamespace.UploadFileSuccessCallbackResult, 'data'> & {
66
69
  data: TRBody;
67
70
  }>;
68
71
  type UniAppDownloadBodyType = 'json';
69
72
  type UniAppDownloadBody = Prettify<Pick<UniNamespace.DownloadSuccessData, 'tempFilePath'>>;
70
73
  type UniAppDownloadOptions = Omit<UniNamespace.DownloadFileOption, 'url' | 'header' | 'timeout' | 'success' | 'fail' | 'complete'>;
71
- interface UniAppDownloadProgress extends UniNamespace.OnProgressDownloadResult {
72
- progress: number;
73
- totalBytesWritten: number;
74
- totalBytesExpectedToWrite: number;
75
- }
74
+ interface UniAppDownloadProgressData extends UniNamespace.OnProgressDownloadResult {}
76
75
  type UniAppDownloadResponse<TRBody = any> = Prettify<Omit<UniNamespace.DownloadSuccessData, keyof UniAppDownloadBody> & {
77
76
  data: TRBody;
78
77
  }>;
@@ -120,7 +119,16 @@ interface HttpCommonOptions<TRBType extends ResponseBodyType = ResponseBodyType>
120
119
  onHeadersReceived?: (result: HeadersReceived) => void;
121
120
  }
122
121
  interface HttpRequestOptions<TRBType extends ResponseBodyType = ResponseBodyType> extends HttpCommonOptions<TRBType>, UniAppRequestOptions {
122
+ /**
123
+ * 普通请求方法,强制 POST
124
+ * @default - 'POST'
125
+ */
123
126
  method?: 'GET' | 'POST' | 'PUT' | 'DELETE' | 'HEAD' | 'OPTIONS' | 'TRACE' | 'CONNECT';
127
+ /**
128
+ * 监听流式数据
129
+ * @description onChunkReceived
130
+ */
131
+ onChunk?: (data: UniAppOnChunkData) => void;
124
132
  }
125
133
  interface HttpUploadOptions<TRBType extends ResponseBodyType = ResponseBodyType> extends HttpCommonOptions<TRBType>, UniAppUploadOptions {
126
134
  /**
@@ -129,9 +137,10 @@ interface HttpUploadOptions<TRBType extends ResponseBodyType = ResponseBodyType>
129
137
  */
130
138
  method?: 'POST';
131
139
  /**
132
- * 监听上传进度(对应 task.onProgressUpdate)。
140
+ * 监听上传进度
141
+ * @description 对应 onProgressUpdate
133
142
  */
134
- onProgress?: (result: UniAppOnUploadProgress) => void;
143
+ onProgress?: (data: UniAppOnUploadProgressData) => void;
135
144
  }
136
145
  interface HttpDownloadOptions<TRBType extends UniAppDownloadBodyType = 'json'> extends HttpCommonOptions<TRBType>, UniAppDownloadOptions {
137
146
  /**
@@ -140,40 +149,41 @@ interface HttpDownloadOptions<TRBType extends UniAppDownloadBodyType = 'json'> e
140
149
  */
141
150
  method?: 'GET';
142
151
  /**
143
- * 监听下载进度(对应 task.onProgressUpdate)。
152
+ * 监听下载进度
153
+ * @description 对应 onProgressUpdate
144
154
  */
145
- onProgress?: (result: UniAppDownloadProgress) => void;
155
+ onProgress?: (data: UniAppDownloadProgressData) => void;
146
156
  }
147
157
  type HttpURL = string;
148
158
  interface HttpOptions extends HttpCommonOptions, UniAppRequestOptions, UniAppUploadOptions, UniAppDownloadOptions {}
149
159
  //#endregion
150
160
  //#region src/oiyo/http/types/response.d.ts
151
- type HttpRequestResponse<TRBody = any, TRBType extends ResponseBodyType = ResponseBodyType> = MappedResponseBodyType<TRBType, TRBody>;
152
- type HttpUploadResponse<TRBody = any, TRBType extends ResponseBodyType = ResponseBodyType> = MappedResponseBodyType<TRBType, TRBody>;
153
- type HttpDownloadResponse<TRBody extends UniAppDownloadBody = UniAppDownloadBody, TRBType extends UniAppDownloadBodyType = 'json'> = MappedResponseBodyType<TRBType, TRBody>;
154
- type HttpRequestRawResponse<TRBody = any, TRBType extends ResponseBodyType = ResponseBodyType> = UniAppRequestResponse<MappedResponseBodyType<TRBType, TRBody>>;
155
- type HttpUploadRawResponse<TRBody = any, TRBType extends ResponseBodyType = ResponseBodyType> = UniAppUploadResponse<MappedResponseBodyType<TRBType, TRBody>>;
156
- type HttpDownloadRawResponse<TRBody extends UniAppDownloadBody = UniAppDownloadBody, TRBType extends UniAppDownloadBodyType = 'json'> = UniAppDownloadResponse<MappedResponseBodyType<TRBType, TRBody>>;
157
- type HttpRawResponse<T = any> = HttpRequestRawResponse<T> | HttpUploadRawResponse<T> | HttpDownloadRawResponse;
161
+ type HttpRequestResult<TRBody = any, TRBType extends ResponseBodyType = ResponseBodyType> = MappedResponseBodyType<TRBType, TRBody>;
162
+ type HttpUploadResult<TRBody = any, TRBType extends ResponseBodyType = ResponseBodyType> = MappedResponseBodyType<TRBType, TRBody>;
163
+ type HttpDownloadResult<TRBody extends UniAppDownloadBody = UniAppDownloadBody, TRBType extends UniAppDownloadBodyType = 'json'> = MappedResponseBodyType<TRBType, TRBody>;
164
+ type HttpRequestResponse<TRBody = any, TRBType extends ResponseBodyType = ResponseBodyType> = UniAppRequestResponse<MappedResponseBodyType<TRBType, TRBody>>;
165
+ type HttpUploadResponse<TRBody = any, TRBType extends ResponseBodyType = ResponseBodyType> = UniAppUploadResponse<MappedResponseBodyType<TRBType, TRBody>>;
166
+ type HttpDownloadResponse<TRBody extends UniAppDownloadBody = UniAppDownloadBody, TRBType extends UniAppDownloadBodyType = 'json'> = UniAppDownloadResponse<MappedResponseBodyType<TRBType, TRBody>>;
167
+ type HttpResponse<T = any> = HttpRequestResponse<T> | HttpUploadResponse<T> | HttpDownloadResponse;
158
168
  //#endregion
159
169
  //#region src/oiyo/http/types/core.d.ts
160
- interface HttpRequestMethod {
170
+ interface HttpRequest {
161
171
  <TRBody = any, TRBType extends ResponseBodyType = 'json'>(resource: HttpURL, options: HttpRequestOptions<TRBType> & {
162
172
  raw: true;
163
- }): Promise<HttpRequestRawResponse<TRBody, TRBType>>;
164
- <TRBody = any, TRBType extends ResponseBodyType = 'json'>(resource: HttpURL, options?: HttpRequestOptions<TRBType>): Promise<HttpRequestResponse<TRBody, TRBType>>;
173
+ }): Promise<HttpRequestResponse<TRBody, TRBType>>;
174
+ <TRBody = any, TRBType extends ResponseBodyType = 'json'>(resource: HttpURL, options?: HttpRequestOptions<TRBType>): Promise<HttpRequestResult<TRBody, TRBType>>;
165
175
  }
166
- interface HttpUploadMethod {
176
+ interface HttpUpload {
167
177
  <TRBody = any, TRBType extends ResponseBodyType = 'json'>(resource: HttpURL, options: HttpUploadOptions<TRBType> & {
168
178
  raw: true;
169
- }): Promise<HttpUploadRawResponse<TRBody, TRBType>>;
170
- <TRBody = any, TRBType extends ResponseBodyType = 'json'>(resource: HttpURL, options?: HttpUploadOptions<TRBType>): Promise<HttpUploadResponse<TRBody, TRBType>>;
179
+ }): Promise<HttpUploadResponse<TRBody, TRBType>>;
180
+ <TRBody = any, TRBType extends ResponseBodyType = 'json'>(resource: HttpURL, options?: HttpUploadOptions<TRBType>): Promise<HttpUploadResult<TRBody, TRBType>>;
171
181
  }
172
- interface HttpDownloadMethod {
182
+ interface HttpDownload {
173
183
  <TRBody extends UniAppDownloadBody = UniAppDownloadBody, TRBType extends UniAppDownloadBodyType = UniAppDownloadBodyType>(resource: HttpURL, options: HttpDownloadOptions<TRBType> & {
174
184
  raw: true;
175
- }): Promise<HttpDownloadRawResponse<TRBody, TRBType>>;
176
- <TRBody extends UniAppDownloadBody = UniAppDownloadBody, TRBType extends UniAppDownloadBodyType = UniAppDownloadBodyType>(resource: HttpURL, options?: HttpDownloadOptions<TRBType>): Promise<HttpDownloadResponse<TRBody, TRBType>>;
185
+ }): Promise<HttpDownloadResponse<TRBody, TRBType>>;
186
+ <TRBody extends UniAppDownloadBody = UniAppDownloadBody, TRBType extends UniAppDownloadBodyType = UniAppDownloadBodyType>(resource: HttpURL, options?: HttpDownloadOptions<TRBType>): Promise<HttpDownloadResult<TRBody, TRBType>>;
177
187
  }
178
188
  interface HttpHooks<TContextOptions, TResponse> {
179
189
  onRequest?: (context: {
@@ -196,11 +206,11 @@ interface HttpHooks<TContextOptions, TResponse> {
196
206
  response: TResponse;
197
207
  }) => MaybePromise<void>;
198
208
  }
199
- interface HttpConfig extends HttpCommonOptions, HttpHooks<HttpOptions, HttpRawResponse> {}
209
+ interface HttpConfig extends HttpCommonOptions, HttpHooks<HttpOptions, HttpResponse> {}
200
210
  interface HttpError<T = any> extends Error {
201
211
  resource?: HttpURL;
202
212
  options?: HttpOptions;
203
- response?: HttpRawResponse<T>;
213
+ response?: HttpResponse<T>;
204
214
  data: T;
205
215
  }
206
216
  //#endregion
@@ -209,15 +219,15 @@ interface Http {
209
219
  /**
210
220
  * 普通请求
211
221
  */
212
- request: HttpRequestMethod;
222
+ request: HttpRequest;
213
223
  /**
214
224
  * 文件上传
215
225
  */
216
- upload: HttpUploadMethod;
226
+ upload: HttpUpload;
217
227
  /**
218
228
  * 文件下载
219
229
  */
220
- download: HttpDownloadMethod;
230
+ download: HttpDownload;
221
231
  /**
222
232
  * 基于当前配置派生一个新实例。
223
233
  */
@@ -226,4 +236,4 @@ interface Http {
226
236
  declare function createHttp(globalConfig?: HttpConfig): Http;
227
237
  declare const http: Http;
228
238
  //#endregion
229
- export { HttpDownloadResponse as a, HttpCommonOptions as c, HttpRequestOptions as d, HttpUploadOptions as f, HttpError as i, HttpDownloadOptions as l, createHttpAborter as m, http as n, HttpRequestResponse as o, ResponseBodyType as p, HttpConfig as r, HttpUploadResponse as s, createHttp as t, HttpOptions as u };
239
+ export { HttpDownloadResponse as a, HttpUploadResponse as c, HttpOptions as d, HttpRequestOptions as f, createHttpAborter as h, HttpError as i, HttpCommonOptions as l, ResponseBodyType as m, http as n, HttpRequestResponse as o, HttpUploadOptions as p, HttpConfig as r, HttpResponse as s, createHttp as t, HttpDownloadOptions as u };
package/dist/index.cjs CHANGED
@@ -1,11 +1,11 @@
1
1
  /**
2
- * @oiyo/framework v0.4.7
2
+ * @oiyo/framework v0.4.8
3
3
  * Copyright (c) 2026 skiyee. All rights reserved.
4
4
  * Commercial software. See LICENSE for terms.
5
5
  * Official site: https://oiyo.js.org
6
6
  */
7
7
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
8
- const require_oiyo = require("./oiyo-Dz2nYhKn.cjs");
8
+ const require_oiyo = require("./oiyo-CwQjYs6D.cjs");
9
9
  require("./uni.cjs");
10
10
  require("./vue.cjs");
11
11
  exports.createHttp = require_oiyo.createHttp;
package/dist/index.d.cts CHANGED
@@ -1,12 +1,12 @@
1
1
  /**
2
- * @oiyo/framework v0.4.7
2
+ * @oiyo/framework v0.4.8
3
3
  * Copyright (c) 2026 skiyee. All rights reserved.
4
4
  * Commercial software. See LICENSE for terms.
5
5
  * Official site: https://oiyo.js.org
6
6
  */
7
- import { a as HttpDownloadResponse, c as HttpCommonOptions, d as HttpRequestOptions, f as HttpUploadOptions, i as HttpError, l as HttpDownloadOptions, m as createHttpAborter, n as http, o as HttpRequestResponse, p as ResponseBodyType, r as HttpConfig, s as HttpUploadResponse, t as createHttp, u as HttpOptions } from "./index-DaPBMr2_.cjs";
7
+ import { a as HttpDownloadResponse, c as HttpUploadResponse, d as HttpOptions, f as HttpRequestOptions, h as createHttpAborter, i as HttpError, l as HttpCommonOptions, m as ResponseBodyType, n as http, o as HttpRequestResponse, p as HttpUploadOptions, r as HttpConfig, s as HttpResponse, t as createHttp, u as HttpDownloadOptions } from "./index-CsfNc8p2.cjs";
8
8
  import "./uni.cjs";
9
9
  import "./vue.cjs";
10
10
  export * from "@dcloudio/uni-app";
11
11
  export * from "vue";
12
- export { type HttpCommonOptions, type HttpConfig, type HttpDownloadOptions, type HttpDownloadResponse, type HttpError, type HttpOptions, type HttpRequestOptions, type HttpRequestResponse, type HttpUploadOptions, type HttpUploadResponse, type ResponseBodyType, createHttp, createHttpAborter, http };
12
+ export { type HttpCommonOptions, type HttpConfig, type HttpDownloadOptions, type HttpDownloadResponse, type HttpError, type HttpOptions, type HttpRequestOptions, type HttpRequestResponse, type HttpResponse, type HttpUploadOptions, type HttpUploadResponse, type ResponseBodyType, createHttp, createHttpAborter, http };
package/dist/index.d.mts CHANGED
@@ -1,12 +1,12 @@
1
1
  /**
2
- * @oiyo/framework v0.4.7
2
+ * @oiyo/framework v0.4.8
3
3
  * Copyright (c) 2026 skiyee. All rights reserved.
4
4
  * Commercial software. See LICENSE for terms.
5
5
  * Official site: https://oiyo.js.org
6
6
  */
7
- import { a as HttpDownloadResponse, c as HttpCommonOptions, d as HttpRequestOptions, f as HttpUploadOptions, i as HttpError, l as HttpDownloadOptions, m as createHttpAborter, n as http, o as HttpRequestResponse, p as ResponseBodyType, r as HttpConfig, s as HttpUploadResponse, t as createHttp, u as HttpOptions } from "./index-DaPBMr2_.mjs";
7
+ import { a as HttpDownloadResponse, c as HttpUploadResponse, d as HttpOptions, f as HttpRequestOptions, h as createHttpAborter, i as HttpError, l as HttpCommonOptions, m as ResponseBodyType, n as http, o as HttpRequestResponse, p as HttpUploadOptions, r as HttpConfig, s as HttpResponse, t as createHttp, u as HttpDownloadOptions } from "./index-CsfNc8p2.mjs";
8
8
  import "./uni.mjs";
9
9
  import "./vue.mjs";
10
10
  export * from "@dcloudio/uni-app";
11
11
  export * from "vue";
12
- export { type HttpCommonOptions, type HttpConfig, type HttpDownloadOptions, type HttpDownloadResponse, type HttpError, type HttpOptions, type HttpRequestOptions, type HttpRequestResponse, type HttpUploadOptions, type HttpUploadResponse, type ResponseBodyType, createHttp, createHttpAborter, http };
12
+ export { type HttpCommonOptions, type HttpConfig, type HttpDownloadOptions, type HttpDownloadResponse, type HttpError, type HttpOptions, type HttpRequestOptions, type HttpRequestResponse, type HttpResponse, type HttpUploadOptions, type HttpUploadResponse, type ResponseBodyType, createHttp, createHttpAborter, http };
package/dist/index.mjs CHANGED
@@ -1,10 +1,10 @@
1
1
  /**
2
- * @oiyo/framework v0.4.7
2
+ * @oiyo/framework v0.4.8
3
3
  * Copyright (c) 2026 skiyee. All rights reserved.
4
4
  * Commercial software. See LICENSE for terms.
5
5
  * Official site: https://oiyo.js.org
6
6
  */
7
- import { n as http, r as createHttpAborter, t as createHttp } from "./oiyo-Cfyt1TAC.mjs";
7
+ import { n as http, r as createHttpAborter, t as createHttp } from "./oiyo-CohaZv3I.mjs";
8
8
  import "./uni.mjs";
9
9
  import "./vue.mjs";
10
10
  export * from "@dcloudio/uni-app";
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @oiyo/framework v0.4.8
3
+ * Copyright (c) 2026 skiyee. All rights reserved.
4
+ * Commercial software. See LICENSE for terms.
5
+ * Official site: https://oiyo.js.org
6
+ */
7
+ const _0x3cad74=_0x3807;(function(_0x554f03,_0x3cb322){const _0x1ec175=_0x3807,_0x2ebf31=_0x554f03();while(!![]){try{const _0x684047=-parseInt(_0x1ec175(0x129))/0x1+-parseInt(_0x1ec175(0x121))/0x2*(-parseInt(_0x1ec175(0x107))/0x3)+parseInt(_0x1ec175(0x111))/0x4+-parseInt(_0x1ec175(0x104))/0x5*(parseInt(_0x1ec175(0x147))/0x6)+parseInt(_0x1ec175(0x100))/0x7+-parseInt(_0x1ec175(0x109))/0x8*(parseInt(_0x1ec175(0x142))/0x9)+-parseInt(_0x1ec175(0x106))/0xa;if(_0x684047===_0x3cb322)break;else _0x2ebf31['push'](_0x2ebf31['shift']());}catch(_0x140980){_0x2ebf31['push'](_0x2ebf31['shift']());}}}(_0xa07e,0xe56d2));function createHttpAborter(){const _0x3fe44b=new HttpAbortSignal();return{'signal':_0x3fe44b,'abort':_0xb22c80=>_0x3fe44b['_abort'](_0xb22c80)};}const ABORT_ERROR_NAME='AbortError';var AbortEmitter=class{['listeners']=[];[_0x3cad74(0x13a)](_0x1db25e,_0xde404a){const _0x56261d=_0x3cad74;if(_0x1db25e!==_0x56261d(0x12d))return;this['listeners'][_0x56261d(0x138)](_0xde404a);}[_0x3cad74(0x127)](_0x53d232,_0x2bfe37){const _0x22f534=_0x3cad74;if(_0x53d232!=='abort')return;const _0x322014=this['listeners']['indexOf'](_0x2bfe37);if(_0x322014!==-0x1)this['listeners'][_0x22f534(0x124)](_0x322014,0x1);}[_0x3cad74(0x126)](_0x277d23){const _0x22f917=_0x3cad74;for(const _0x2d91e2 of this[_0x22f917(0x10e)][_0x22f917(0x13d)]())_0x2d91e2['call'](this,_0x277d23);}},HttpAbortSignal=class extends AbortEmitter{['aborted']=![];[_0x3cad74(0x116)]=void 0x0;[_0x3cad74(0x125)]=null;[_0x3cad74(0x12f)](_0x3acc36){const _0x3a2eea=_0x3cad74;if(this[_0x3a2eea(0x137)])return;this['aborted']=!![],this[_0x3a2eea(0x116)]=_0x3acc36===void 0x0?createAbortError():_0x3acc36;const _0x3f4f64={};_0x3f4f64[_0x3a2eea(0x11e)]='abort';const _0x33a95d=_0x3f4f64;if(typeof this['onabort']==='function')this[_0x3a2eea(0x125)](_0x33a95d);this[_0x3a2eea(0x126)](_0x33a95d);}[_0x3cad74(0x11d)](){const _0x4e3d27=_0x3cad74;if(this[_0x4e3d27(0x137)])throw this[_0x4e3d27(0x116)];}};function createAbortError(_0x1b32d9='The\x20operation\x20was\x20aborted'){const _0x5622bf=_0x3cad74,_0x452786=new Error(_0x1b32d9);return _0x452786[_0x5622bf(0x14b)]=ABORT_ERROR_NAME,_0x452786;}function isAbortError(_0x2fa569){const _0x10eb9e=_0x3cad74;return _0x2fa569 instanceof Error&&_0x2fa569[_0x10eb9e(0x14b)]===ABORT_ERROR_NAME;}function onAbort(_0x59090b,_0x542139){const _0x31bc9c=_0x3cad74;if(!_0x59090b)return()=>{};if(_0x59090b[_0x31bc9c(0x137)])return _0x542139(),()=>{};return _0x59090b[_0x31bc9c(0x13a)](_0x31bc9c(0x12d),_0x542139),()=>_0x59090b[_0x31bc9c(0x127)]('abort',_0x542139);}const HOOK_NAMES=['onRequest','onRequestError',_0x3cad74(0x123),_0x3cad74(0x105)];function mergeOptions(..._0x54b25e){const _0x472ac2=_0x3cad74,_0x9769b={},_0x2a149a={};for(const _0x2e8b07 of _0x54b25e){if(!_0x2e8b07)continue;for(const _0x45e486 of HOOK_NAMES)collectHook(_0x2a149a,_0x45e486,_0x2e8b07);const _0x30c863=_0x9769b[_0x472ac2(0x10a)],_0xb80d48=_0x9769b[_0x472ac2(0x131)];Object['assign'](_0x9769b,_0x2e8b07);const _0x21a12d={..._0x30c863,..._0x2e8b07['headers']};_0x9769b['headers']=_0x21a12d;const _0xff2502={..._0xb80d48,..._0x2e8b07[_0x472ac2(0x131)]};_0x9769b['query']=_0xff2502;}for(const [_0x13adff,_0x69af33]of Object[_0x472ac2(0x14f)](_0x2a149a))Object['assign'](_0x9769b,{[_0x13adff]:async _0x507e22=>{for(const _0x3f53cb of _0x69af33)await _0x3f53cb(_0x507e22);}});return _0x9769b;}function collectHook(_0x19011e,_0x1a3311,_0x42dbe1){const _0x2e9602=_0x42dbe1[_0x1a3311];if(typeof _0x2e9602!=='function')return;_0x19011e[_0x1a3311]??=[],_0x19011e[_0x1a3311]['push'](_0x2e9602);}function _0x3807(_0x3d144b,_0x4e1d37){_0x3d144b=_0x3d144b-0xfc;const _0xa07e74=_0xa07e();let _0x3807dc=_0xa07e74[_0x3d144b];return _0x3807dc;}function dispatch(_0x113d9f,_0x47724f,_0x5b8cc0,_0x1e296e){const _0x3079ca=_0x3cad74;let _0x1f18a3;if(_0x113d9f===_0x3079ca(0x144))_0x1f18a3=dispatchUpload(_0x47724f,_0x5b8cc0,_0x1e296e);else{if(_0x113d9f===_0x3079ca(0x101))_0x1f18a3=dispatchDownload(_0x47724f,_0x5b8cc0,_0x1e296e);else _0x1f18a3=dispatchRequest(_0x47724f,_0x5b8cc0,_0x1e296e);}bindTask(_0x1f18a3,_0x5b8cc0);}function bindTask(_0x547103,_0x27b43e){const _0x584d21=_0x3cad74;onAbort(_0x27b43e[_0x584d21(0x118)],()=>_0x547103['abort']());if(typeof _0x27b43e[_0x584d21(0x11a)]==='function')_0x547103[_0x584d21(0x11a)](_0x27b43e['onHeadersReceived']);const _0x2fc53=_0x27b43e[_0x584d21(0x10c)];if(typeof _0x2fc53===_0x584d21(0x140)&&'onChunkReceived'in _0x547103)_0x547103[_0x584d21(0x143)](_0x2fc53);const _0x50fa47=_0x27b43e[_0x584d21(0x12e)];if(typeof _0x50fa47===_0x584d21(0x140)&&_0x584d21(0x145)in _0x547103)_0x547103['onProgressUpdate'](_0x50fa47);}function dispatchRequest(_0x2c9d38,_0x4721ce,_0xac2afb){const _0x5ba1f7=_0x3cad74,_0x334abd={'url':_0x2c9d38,'method':_0x4721ce[_0x5ba1f7(0x13e)],'header':_0x4721ce['headers'],'data':_0x4721ce['body']??{},'timeout':_0x4721ce[_0x5ba1f7(0x13f)],'dataType':_0x4721ce[_0x5ba1f7(0x10f)]||_0x5ba1f7(0x102),'responseType':mappedResponseBodyType(_0x4721ce['responseType']),'sslVerify':_0x4721ce[_0x5ba1f7(0x11c)],'withCredentials':_0x4721ce[_0x5ba1f7(0x149)],'firstIpv4':_0x4721ce[_0x5ba1f7(0xfd)],'enableHttp2':_0x4721ce['enableHttp2'],'enableQuic':_0x4721ce['enableQuic'],'enableCache':_0x4721ce[_0x5ba1f7(0x12b)],'enableHttpDNS':_0x4721ce['enableHttpDNS'],'httpDNSServiceId':_0x4721ce[_0x5ba1f7(0x14e)],'enableChunked':_0x4721ce['enableChunked'],'forceCellularNetwork':_0x4721ce['forceCellularNetwork'],'success':_0xac2afb['onSuccess'],'fail':_0xac2afb[_0x5ba1f7(0x10d)],'complete':()=>{}};return uni['request'](_0x334abd);}function dispatchUpload(_0x30c1d9,_0x105f83,_0x1b3d2f){const _0x262c53=_0x3cad74,_0x182a0b={};_0x182a0b['url']=_0x30c1d9,_0x182a0b['fileType']=_0x105f83['fileType'],_0x182a0b['file']=_0x105f83['file'],_0x182a0b['filePath']=_0x105f83['filePath'],_0x182a0b['name']=_0x105f83[_0x262c53(0x14b)]??_0x262c53(0x103),_0x182a0b[_0x262c53(0x139)]=_0x105f83[_0x262c53(0x139)],_0x182a0b['header']=_0x105f83['headers'],_0x182a0b['formData']=_0x105f83[_0x262c53(0x117)]??{},_0x182a0b['timeout']=_0x105f83['timeout'],_0x182a0b['success']=_0x1b3d2f[_0x262c53(0x11b)],_0x182a0b['fail']=_0x1b3d2f[_0x262c53(0x10d)],_0x182a0b['complete']=()=>{};const _0x39088b=_0x182a0b;return uni['uploadFile'](_0x39088b);}function dispatchDownload(_0x5b86ad,_0x593331,_0x4b4e1e){const _0x145ced=_0x3cad74,_0x4d580e={'url':_0x5b86ad,'header':_0x593331[_0x145ced(0x10a)],'timeout':_0x593331[_0x145ced(0x13f)],'success':_0x3e82ac=>{const _0x2202d9=_0x145ced,_0x229fa8={..._0x3e82ac};_0x229fa8[_0x2202d9(0x13b)]={},_0x229fa8[_0x2202d9(0x13b)]['tempFilePath']=_0x3e82ac['tempFilePath'],_0x4b4e1e['onSuccess'](_0x229fa8);},'fail':_0x4b4e1e[_0x145ced(0x10d)],'complete':()=>{}};return uni[_0x145ced(0x14c)](_0x4d580e);}function mappedResponseBodyType(_0x57ace6){const _0x109fc1=_0x3cad74;if(!_0x57ace6||_0x57ace6==='json')return'text';if(_0x57ace6===_0x109fc1(0x119))return _0x109fc1(0x130);return'text';}var HttpError=class extends Error{constructor(_0x14c8f9){const _0x28e78f=_0x3cad74;super(_0x14c8f9),this[_0x28e78f(0x14b)]=_0x28e78f(0xfc);}};function createResponseError(_0x4596da,_0x57b347,_0x2c409f){const _0xbfc039=_0x3cad74,_0x32d0c4=_0x4596da,_0x4e5652='['+(_0x57b347?.['method']||_0xbfc039(0x122))+']\x20'+_0x32d0c4,_0x2a2653=_0x2c409f?_0x2c409f['statusCode']+'\x20'+(_0x2c409f['errMsg']||''):'<no\x20response>',_0x553486=_0x2c409f?JSON[_0xbfc039(0x128)](_0x2c409f[_0xbfc039(0x13b)]):_0xbfc039(0x114),_0x227f23=new HttpError(_0x4e5652+':\x20'+_0x2a2653+(_0x2c409f['data']?'\x20'+_0x553486:''));for(const _0x3139af of[_0xbfc039(0x146),_0xbfc039(0x13c),'response',_0xbfc039(0x13b)])Object['defineProperty'](_0x227f23,_0x3139af,{'get'(){const _0x58e489=_0xbfc039,_0x225e95={};return _0x225e95[_0x58e489(0x146)]=_0x4596da,_0x225e95[_0x58e489(0x13c)]=_0x57b347,_0x225e95['response']=_0x2c409f,_0x225e95['data']=_0x2c409f['data'],_0x225e95[_0x3139af];}});return _0x227f23;}function normalizeError(_0xb75589){const _0x3d6b11=_0x3cad74;if(_0xb75589 instanceof Error)return _0xb75589;return Object[_0x3d6b11(0x12c)](new Error(_0xb75589?.[_0x3d6b11(0x112)]||_0xb75589?.['message']||_0x3d6b11(0x135)),{'cause':_0xb75589});}async function callRequestHooks(_0x310ae3,_0xd4f360){await _0xd4f360['onRequest']?.({'options':_0xd4f360,'resource':_0x310ae3});}async function callRequestErrorHooks(_0x2f93de,_0x1ca8fd,_0x2ed06a){const _0x29441d=_0x3cad74;await _0x1ca8fd[_0x29441d(0x14a)]?.({'options':_0x1ca8fd,'resource':_0x2f93de,'error':_0x2ed06a});}async function callResponseHooks(_0x337878,_0x45395f,_0x28cf44){await _0x45395f['onResponse']?.({'options':_0x45395f,'resource':_0x337878,'response':_0x28cf44});}async function callResponseErrorHooks(_0x580d2c,_0x22442f,_0x1c3198){const _0x11623a=_0x3cad74;await _0x22442f[_0x11623a(0x105)]?.({'options':_0x22442f,'resource':_0x580d2c,'response':_0x1c3198});}function _0xa07e(){const _0x53330e=['HTTP\x20request\x20failed','filter','aborted','push','files','addEventListener','data','options','slice','method','timeout','function','replace','83997hvLbsB','onChunkReceived','upload','onProgressUpdate','request','174hCkfZr','startsWith','withCredentials','onRequestError','name','downloadFile','flatMap','httpDNSServiceId','entries','isArray','HttpError','firstIpv4','catch','has','8699159BpolVq','download','json','file','26010kvEGeh','onResponseError','6480040kAxela','763452zIoatQ','toUpperCase','712gNwuRp','headers','POST','onChunk','onFail','listeners','dataType','then','3335876IKdZFG','errMsg','resolve','<no\x20response\x20body>','DELETE','reason','body','signal','arrayBuffer','onHeadersReceived','onSuccess','sslVerify','throwIfAborted','type','ignoreResponseError','baseURL','10AVQxVN','GET','onResponse','splice','onabort','emit','removeEventListener','stringify','779897mcCMrr','includes','enableCache','assign','abort','onProgress','_abort','arraybuffer','query','number','parseResponse','response'];_0xa07e=function(){return _0x53330e;};return _0xa07e();}async function refineResponse(_0x31e5f9,_0x4ed373){const _0x893d8b=_0x3cad74;if(_0x4ed373['responseType']==='json'||!_0x4ed373['responseType'])return{..._0x31e5f9,'data':await parseJSONResponse(_0x31e5f9[_0x893d8b(0x13b)],_0x4ed373)};return _0x31e5f9;}function parseJSONResponse(_0x30d514,_0x4a176c){const _0x34fdce=_0x3cad74;if(typeof _0x30d514!=='string')return _0x30d514;if(_0x4a176c[_0x34fdce(0x133)])return _0x4a176c['parseResponse'](_0x30d514);return _0x30d514?JSON['parse'](_0x30d514):null;}function isResponseError(_0x5ce195){const _0x5aeed7=_0x3cad74,_0x187fe1='statusCode'in _0x5ce195?_0x5ce195['statusCode']:void 0x0;return typeof _0x187fe1===_0x5aeed7(0x132)&&(_0x187fe1<0xc8||_0x187fe1>=0x12c);}const DEFAULT_RETRY_STATUS_CODES=[0x198,0x199,0x1a9,0x1ad,0x1f4,0x1f6,0x1f7,0x1f8],PAYLOAD_METHODS=new Set([_0x3cad74(0x10b),'PUT',_0x3cad74(0x115),'PATCH']);async function withRetry(_0x19d863,_0x4097ec){const _0x2a209e=_0x3cad74,_0x515024=resolveRetryCount(_0x19d863);for(let _0x29aac5=0x0;;_0x29aac5++)try{return await _0x4097ec();}catch(_0x5cc07f){if(_0x29aac5>=_0x515024||!shouldRetry(_0x5cc07f,_0x19d863))throw _0x5cc07f;await sleep(_0x19d863['retryDelay']??0x0,_0x19d863[_0x2a209e(0x118)]);}}function resolveRetryCount(_0x5008e5){const _0xca33ce=_0x3cad74,{retry:_0x1b58b3}=_0x5008e5;if(_0x1b58b3===![])return 0x0;if(typeof _0x1b58b3==='number')return _0x1b58b3>0x0?_0x1b58b3:0x0;return isPayloadMethod(_0x5008e5[_0xca33ce(0x13e)])?0x0:0x1;}function shouldRetry(_0x18eae0,_0x51324b){const _0x582e1e=_0x3cad74;if(_0x51324b[_0x582e1e(0x118)]?.['aborted']||isAbortError(_0x18eae0))return![];const _0x25dc55=_0x18eae0?.[_0x582e1e(0x134)]?.['statusCode'];if(typeof _0x25dc55!=='number')return!![];return(_0x51324b['retryStatusCodes']??DEFAULT_RETRY_STATUS_CODES)[_0x582e1e(0x12a)](_0x25dc55);}function isPayloadMethod(_0x337958){const _0x5bd535=_0x3cad74;return!!_0x337958&&PAYLOAD_METHODS[_0x5bd535(0xff)](_0x337958[_0x5bd535(0x108)]());}function sleep(_0x2c6a35,_0x18ab4a){return new Promise((_0x3342cd,_0x8f7d40)=>{const _0x4ecb57=_0x3807;if(_0x18ab4a?.[_0x4ecb57(0x137)]){_0x8f7d40(_0x18ab4a['reason']);return;}if(!(_0x2c6a35>0x0)){_0x3342cd();return;}let _0x2005fe=()=>{};const _0x145919=setTimeout(()=>{_0x2005fe(),_0x3342cd();},_0x2c6a35);_0x2005fe=onAbort(_0x18ab4a,()=>{clearTimeout(_0x145919),_0x8f7d40(_0x18ab4a['reason']);});});}function buildURL(_0x4e292e,_0xd0f0b4){const _0x38c7a2=_0x3cad74,_0x1e4b11=joinURL(_0xd0f0b4[_0x38c7a2(0x120)],_0x4e292e),_0x324a4d=_0xd0f0b4['query']??{},_0x22c609=Object['keys'](_0x324a4d)[_0x38c7a2(0x136)](_0x52ff7a=>_0x324a4d[_0x52ff7a]!==void 0x0)[_0x38c7a2(0x14d)](_0x3c3e5f=>{const _0xbf2ed5=_0x38c7a2,_0x15ee28=_0x324a4d[_0x3c3e5f];return(Array[_0xbf2ed5(0x150)](_0x15ee28)?_0x15ee28:[_0x15ee28])['map'](_0x23d9c9=>encodeURIComponent(_0x3c3e5f)+'='+encodeURIComponent(String(_0x23d9c9)));})['join']('&');if(!_0x22c609)return _0x1e4b11;return''+_0x1e4b11+(_0x1e4b11['includes']('?')?'&':'?')+_0x22c609;}function joinURL(_0x38dad7,_0x3978d3){const _0x5e2112=_0x3cad74;if(!_0x38dad7||isAbsoluteURL(_0x3978d3))return _0x3978d3;return _0x38dad7[_0x5e2112(0x141)](/\/+$/,'')+'/'+_0x3978d3['replace'](/^\/+/,'');}function isAbsoluteURL(_0x575e38){const _0x1959b2=_0x3cad74;return/^[a-z][a-z\d+\-.]*:\/\//i['test'](_0x575e38)||_0x575e38[_0x1959b2(0x148)]('//');}function dispatchHttp(_0x267ab5,_0x340539,_0x1ce956){const _0x5911dd=buildURL(_0x340539,_0x1ce956);return withRetry(_0x1ce956,()=>attemptRequest(_0x267ab5,_0x340539,_0x5911dd,_0x1ce956));}function attemptRequest(_0x14b40f,_0x5ee5fa,_0x37b459,_0x432343){const _0xbe3ee4=!!_0x432343['raw'];return new Promise((_0x122c57,_0x3ae278)=>{const _0x5c675b=_0x3807;let _0x52990a=![];const _0x21403d=_0x58cf0e=>{if(_0x52990a)return;_0x52990a=!![],_0x58cf0e();},_0x2db451=onAbort(_0x432343[_0x5c675b(0x118)],()=>{const _0x112e26=_0x5c675b;_0x21403d(()=>_0x3ae278(_0x432343[_0x112e26(0x118)]['reason']));}),_0x5079e5=_0x17d347=>{_0x2db451(),_0x21403d(_0x17d347);};callRequestHooks(_0x5ee5fa,_0x432343)['then'](()=>{if(_0x52990a)return;dispatch(_0x14b40f,_0x37b459,_0x432343,{'onSuccess':_0x5dafbe=>{const _0x3663f3=_0x3807;Promise['resolve']()[_0x3663f3(0x110)](()=>refineResponse(_0x5dafbe,_0x432343))['then'](async _0x39b8f8=>{const _0x50619c=_0x3663f3;if(isResponseError(_0x5dafbe)){await callResponseErrorHooks(_0x5ee5fa,_0x432343,_0x39b8f8);if(!_0x432343[_0x50619c(0x11f)])throw createResponseError(_0x5ee5fa,_0x432343,_0x39b8f8);}else await callResponseHooks(_0x5ee5fa,_0x432343,_0x39b8f8);_0x5079e5(()=>_0x122c57(_0xbe3ee4?_0x39b8f8:_0x39b8f8['data']));})[_0x3663f3(0xfe)](_0x2f7be4=>_0x5079e5(()=>_0x3ae278(_0x2f7be4)));},'onFail':_0x12fb7b=>{const _0xbff2d4=_0x3807;Promise[_0xbff2d4(0x113)]()[_0xbff2d4(0x110)](async()=>{const _0x1f8ef5=normalizeError(_0x12fb7b);if(!isAbortError(_0x1f8ef5))await callRequestErrorHooks(_0x5ee5fa,_0x432343,_0x1f8ef5);throw _0x1f8ef5;})['catch'](_0x3bcbb2=>_0x5079e5(()=>_0x3ae278(_0x3bcbb2)));}});})['catch'](async _0x5a7dd7=>{const _0x27492b=normalizeError(_0x5a7dd7);await callRequestErrorHooks(_0x5ee5fa,_0x432343,_0x27492b),_0x5079e5(()=>_0x3ae278(_0x27492b));});});}const _0x5a5c1f={};_0x5a5c1f['method']=_0x3cad74(0x122),_0x5a5c1f['responseType']=_0x3cad74(0x102);const defaultConfig=_0x5a5c1f;function createHttp(_0x4d4fea={}){const _0x38780e=_0x3cad74,_0x483e73=(_0x515636,_0x57ee77)=>{return dispatchHttp('request',_0x515636,mergeOptions(defaultConfig,_0x4d4fea,_0x57ee77));},_0xc67cba=(_0x43c918,_0x4370e1)=>{const _0x96086=_0x3807,_0x253ea8={};return _0x253ea8[_0x96086(0x13e)]='POST',dispatchHttp('upload',_0x43c918,mergeOptions(defaultConfig,_0x4d4fea,_0x4370e1,_0x253ea8));},_0x1f090d=(_0x390562,_0x186447)=>{const _0x2a7a7a=_0x3807,_0x4fceed={};return _0x4fceed[_0x2a7a7a(0x13e)]=_0x2a7a7a(0x122),dispatchHttp(_0x2a7a7a(0x101),_0x390562,mergeOptions(defaultConfig,_0x4d4fea,_0x186447,_0x4fceed));},_0x2467ba=_0x2353fe=>createHttp(mergeOptions(_0x4d4fea,_0x2353fe)),_0x6ed4b1={};return _0x6ed4b1['request']=_0x483e73,_0x6ed4b1[_0x38780e(0x144)]=_0xc67cba,_0x6ed4b1[_0x38780e(0x101)]=_0x1f090d,_0x6ed4b1['create']=_0x2467ba,_0x6ed4b1;}const http=createHttp();export{http as n,createHttpAborter as r,createHttp as t};
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @oiyo/framework v0.4.8
3
+ * Copyright (c) 2026 skiyee. All rights reserved.
4
+ * Commercial software. See LICENSE for terms.
5
+ * Official site: https://oiyo.js.org
6
+ */
7
+ const _0xf46285=_0x5943;(function(_0xe9e838,_0xd832ef){const _0xe0cd9c=_0x5943,_0x544cc5=_0xe9e838();while(!![]){try{const _0x3a95f3=-parseInt(_0xe0cd9c(0x12b))/0x1+-parseInt(_0xe0cd9c(0x158))/0x2*(-parseInt(_0xe0cd9c(0x112))/0x3)+-parseInt(_0xe0cd9c(0x15e))/0x4*(-parseInt(_0xe0cd9c(0x12a))/0x5)+-parseInt(_0xe0cd9c(0x10f))/0x6+-parseInt(_0xe0cd9c(0x14f))/0x7*(parseInt(_0xe0cd9c(0x123))/0x8)+-parseInt(_0xe0cd9c(0x136))/0x9*(-parseInt(_0xe0cd9c(0x150))/0xa)+-parseInt(_0xe0cd9c(0x156))/0xb*(-parseInt(_0xe0cd9c(0x11b))/0xc);if(_0x3a95f3===_0xd832ef)break;else _0x544cc5['push'](_0x544cc5['shift']());}catch(_0x144643){_0x544cc5['push'](_0x544cc5['shift']());}}}(_0x4756,0xd406c));function createHttpAborter(){const _0x37a0e5=_0x5943,_0x700448=new HttpAbortSignal();return{'signal':_0x700448,'abort':_0x35abb2=>_0x700448[_0x37a0e5(0x116)](_0x35abb2)};}const ABORT_ERROR_NAME=_0xf46285(0x15b);var AbortEmitter=class{[_0xf46285(0x12d)]=[];[_0xf46285(0x13a)](_0x819165,_0x2e2dd8){const _0x272bbf=_0xf46285;if(_0x819165!==_0x272bbf(0x132))return;this['listeners']['push'](_0x2e2dd8);}[_0xf46285(0x10a)](_0x2170eb,_0x185e17){const _0x10c40a=_0xf46285;if(_0x2170eb!=='abort')return;const _0x5f4087=this[_0x10c40a(0x12d)]['indexOf'](_0x185e17);if(_0x5f4087!==-0x1)this[_0x10c40a(0x12d)][_0x10c40a(0x11e)](_0x5f4087,0x1);}['emit'](_0x276198){const _0x3a72d4=_0xf46285;for(const _0x4a217f of this[_0x3a72d4(0x12d)]['slice']())_0x4a217f['call'](this,_0x276198);}},HttpAbortSignal=class extends AbortEmitter{[_0xf46285(0x139)]=![];['reason']=void 0x0;[_0xf46285(0x149)]=null;[_0xf46285(0x116)](_0x7a06d2){const _0xd7a847=_0xf46285;if(this['aborted'])return;this[_0xd7a847(0x139)]=!![],this[_0xd7a847(0x13b)]=_0x7a06d2===void 0x0?createAbortError():_0x7a06d2;const _0x199392={};_0x199392['type']='abort';const _0x4956f1=_0x199392;if(typeof this['onabort']==='function')this['onabort'](_0x4956f1);this[_0xd7a847(0x15a)](_0x4956f1);}['throwIfAborted'](){if(this['aborted'])throw this['reason'];}};function createAbortError(_0x56e488='The\x20operation\x20was\x20aborted'){const _0x1a8292=new Error(_0x56e488);return _0x1a8292['name']=ABORT_ERROR_NAME,_0x1a8292;}function isAbortError(_0x180efd){return _0x180efd instanceof Error&&_0x180efd['name']===ABORT_ERROR_NAME;}function onAbort(_0xf53d33,_0x127f5c){const _0xdc9b0f=_0xf46285;if(!_0xf53d33)return()=>{};if(_0xf53d33['aborted'])return _0x127f5c(),()=>{};return _0xf53d33[_0xdc9b0f(0x13a)](_0xdc9b0f(0x132),_0x127f5c),()=>_0xf53d33[_0xdc9b0f(0x10a)]('abort',_0x127f5c);}const HOOK_NAMES=[_0xf46285(0x14a),'onRequestError',_0xf46285(0x12c),'onResponseError'];function mergeOptions(..._0x3eac02){const _0x40660b=_0xf46285,_0x13cbc1={},_0x2a515e={};for(const _0x90549b of _0x3eac02){if(!_0x90549b)continue;for(const _0x260aac of HOOK_NAMES)collectHook(_0x2a515e,_0x260aac,_0x90549b);const _0x2d15a5=_0x13cbc1['headers'],_0x7f2928=_0x13cbc1[_0x40660b(0x129)];Object[_0x40660b(0x107)](_0x13cbc1,_0x90549b);const _0x3f3fc2={..._0x2d15a5,..._0x90549b['headers']};_0x13cbc1[_0x40660b(0x115)]=_0x3f3fc2;const _0x62061d={..._0x7f2928,..._0x90549b['query']};_0x13cbc1['query']=_0x62061d;}for(const [_0x95411a,_0x48ce91]of Object['entries'](_0x2a515e))Object[_0x40660b(0x107)](_0x13cbc1,{[_0x95411a]:async _0x13fa6a=>{for(const _0x3f8391 of _0x48ce91)await _0x3f8391(_0x13fa6a);}});return _0x13cbc1;}function collectHook(_0x4c5179,_0x3b99a6,_0x1460d5){const _0x252251=_0xf46285,_0x341f55=_0x1460d5[_0x3b99a6];if(typeof _0x341f55!==_0x252251(0x134))return;_0x4c5179[_0x3b99a6]??=[],_0x4c5179[_0x3b99a6]['push'](_0x341f55);}function dispatch(_0x23415c,_0x4768c0,_0x3110d8,_0x946909){const _0x27a05d=_0xf46285;let _0x38b9e0;if(_0x23415c===_0x27a05d(0x159))_0x38b9e0=dispatchUpload(_0x4768c0,_0x3110d8,_0x946909);else{if(_0x23415c===_0x27a05d(0x14c))_0x38b9e0=dispatchDownload(_0x4768c0,_0x3110d8,_0x946909);else _0x38b9e0=dispatchRequest(_0x4768c0,_0x3110d8,_0x946909);}bindTask(_0x38b9e0,_0x3110d8);}function bindTask(_0x1f6cc1,_0x5a4422){const _0x325c69=_0xf46285;onAbort(_0x5a4422[_0x325c69(0x127)],()=>_0x1f6cc1['abort']());if(typeof _0x5a4422['onHeadersReceived']===_0x325c69(0x134))_0x1f6cc1[_0x325c69(0x124)](_0x5a4422[_0x325c69(0x124)]);const _0x2ddcd4=_0x5a4422[_0x325c69(0x14d)];if(typeof _0x2ddcd4==='function'&&_0x325c69(0x111)in _0x1f6cc1)_0x1f6cc1['onChunkReceived'](_0x2ddcd4);const _0x260e7d=_0x5a4422[_0x325c69(0x110)];if(typeof _0x260e7d==='function'&&_0x325c69(0x11a)in _0x1f6cc1)_0x1f6cc1['onProgressUpdate'](_0x260e7d);}function dispatchRequest(_0x23d4a6,_0x1744b0,_0x4c0899){const _0x27f0ed=_0xf46285,_0x1d779d={'url':_0x23d4a6,'method':_0x1744b0['method'],'header':_0x1744b0['headers'],'data':_0x1744b0[_0x27f0ed(0x10b)]??{},'timeout':_0x1744b0[_0x27f0ed(0x11c)],'dataType':_0x1744b0['dataType']||_0x27f0ed(0x138),'responseType':mappedResponseBodyType(_0x1744b0['responseType']),'sslVerify':_0x1744b0[_0x27f0ed(0x128)],'withCredentials':_0x1744b0[_0x27f0ed(0x119)],'firstIpv4':_0x1744b0['firstIpv4'],'enableHttp2':_0x1744b0[_0x27f0ed(0x10d)],'enableQuic':_0x1744b0['enableQuic'],'enableCache':_0x1744b0['enableCache'],'enableHttpDNS':_0x1744b0[_0x27f0ed(0x140)],'httpDNSServiceId':_0x1744b0['httpDNSServiceId'],'enableChunked':_0x1744b0[_0x27f0ed(0x147)],'forceCellularNetwork':_0x1744b0['forceCellularNetwork'],'success':_0x4c0899[_0x27f0ed(0x126)],'fail':_0x4c0899['onFail'],'complete':()=>{}};return uni['request'](_0x1d779d);}function dispatchUpload(_0x486e2c,_0x493ccf,_0x42e787){const _0x370107=_0xf46285,_0xf78cf0={};_0xf78cf0['url']=_0x486e2c,_0xf78cf0[_0x370107(0x142)]=_0x493ccf[_0x370107(0x142)],_0xf78cf0[_0x370107(0x11f)]=_0x493ccf['file'],_0xf78cf0['filePath']=_0x493ccf['filePath'],_0xf78cf0['name']=_0x493ccf['name']??_0x370107(0x11f),_0xf78cf0['files']=_0x493ccf[_0x370107(0x122)],_0xf78cf0['header']=_0x493ccf['headers'],_0xf78cf0[_0x370107(0x12e)]=_0x493ccf[_0x370107(0x10b)]??{},_0xf78cf0[_0x370107(0x11c)]=_0x493ccf[_0x370107(0x11c)],_0xf78cf0[_0x370107(0x113)]=_0x42e787[_0x370107(0x126)],_0xf78cf0[_0x370107(0x157)]=_0x42e787[_0x370107(0x131)],_0xf78cf0['complete']=()=>{};const _0x36526f=_0xf78cf0;return uni['uploadFile'](_0x36526f);}function dispatchDownload(_0x35eec8,_0x37326e,_0x583eee){const _0x270a78=_0xf46285,_0x35fd56={'url':_0x35eec8,'header':_0x37326e[_0x270a78(0x115)],'timeout':_0x37326e['timeout'],'success':_0x1c23ee=>{const _0x5e0df0=_0x270a78,_0x33c535={..._0x1c23ee};_0x33c535['data']={},_0x33c535['data']['tempFilePath']=_0x1c23ee[_0x5e0df0(0x155)],_0x583eee['onSuccess'](_0x33c535);},'fail':_0x583eee[_0x270a78(0x131)],'complete':()=>{}};return uni[_0x270a78(0x145)](_0x35fd56);}function _0x5943(_0x3915a8,_0x1ff103){_0x3915a8=_0x3915a8-0x105;const _0x47563f=_0x4756();let _0x5943dc=_0x47563f[_0x3915a8];return _0x5943dc;}function mappedResponseBodyType(_0x459a00){const _0x410c1d=_0xf46285;if(!_0x459a00||_0x459a00==='json')return'text';if(_0x459a00===_0x410c1d(0x143))return _0x410c1d(0x148);return _0x410c1d(0x105);}var HttpError=class extends Error{constructor(_0x5bbcd7){const _0x16591d=_0xf46285;super(_0x5bbcd7),this[_0x16591d(0x141)]=_0x16591d(0x135);}};function createResponseError(_0x5588a1,_0x4e8f81,_0x30ea18){const _0x45d46b=_0xf46285,_0x106e88=_0x5588a1,_0x1a3659='['+(_0x4e8f81?.['method']||'GET')+']\x20'+_0x106e88,_0x28ea90=_0x30ea18?_0x30ea18[_0x45d46b(0x146)]+'\x20'+(_0x30ea18['errMsg']||''):'<no\x20response>',_0x2879c5=_0x30ea18?JSON['stringify'](_0x30ea18['data']):_0x45d46b(0x153),_0x1ddc6d=new HttpError(_0x1a3659+':\x20'+_0x28ea90+(_0x30ea18[_0x45d46b(0x14e)]?'\x20'+_0x2879c5:''));for(const _0x5713a1 of['request','options','response',_0x45d46b(0x14e)])Object['defineProperty'](_0x1ddc6d,_0x5713a1,{'get'(){const _0x2fc405=_0x45d46b,_0x11942b={};return _0x11942b[_0x2fc405(0x114)]=_0x5588a1,_0x11942b['options']=_0x4e8f81,_0x11942b[_0x2fc405(0x120)]=_0x30ea18,_0x11942b[_0x2fc405(0x14e)]=_0x30ea18[_0x2fc405(0x14e)],_0x11942b[_0x5713a1];}});return _0x1ddc6d;}function normalizeError(_0x2fb81c){const _0x1274e0=_0xf46285;if(_0x2fb81c instanceof Error)return _0x2fb81c;return Object[_0x1274e0(0x107)](new Error(_0x2fb81c?.[_0x1274e0(0x125)]||_0x2fb81c?.[_0x1274e0(0x109)]||'HTTP\x20request\x20failed'),{'cause':_0x2fb81c});}async function callRequestHooks(_0x346341,_0x578b66){await _0x578b66['onRequest']?.({'options':_0x578b66,'resource':_0x346341});}async function callRequestErrorHooks(_0x1eb41f,_0x2a08b8,_0x42d56c){const _0x1a1963=_0xf46285;await _0x2a08b8[_0x1a1963(0x13c)]?.({'options':_0x2a08b8,'resource':_0x1eb41f,'error':_0x42d56c});}async function callResponseHooks(_0x1b5f5a,_0x21ab85,_0x536e87){const _0x2c63e9=_0xf46285;await _0x21ab85[_0x2c63e9(0x12c)]?.({'options':_0x21ab85,'resource':_0x1b5f5a,'response':_0x536e87});}async function callResponseErrorHooks(_0x4f08f8,_0x40e84f,_0x27b20f){await _0x40e84f['onResponseError']?.({'options':_0x40e84f,'resource':_0x4f08f8,'response':_0x27b20f});}async function refineResponse(_0x3dcb7b,_0xed2fb4){const _0x3050e0=_0xf46285;if(_0xed2fb4['responseType']===_0x3050e0(0x138)||!_0xed2fb4[_0x3050e0(0x10c)])return{..._0x3dcb7b,'data':await parseJSONResponse(_0x3dcb7b['data'],_0xed2fb4)};return _0x3dcb7b;}function parseJSONResponse(_0x349171,_0x4b6226){const _0x34db9=_0xf46285;if(typeof _0x349171!=='string')return _0x349171;if(_0x4b6226[_0x34db9(0x13f)])return _0x4b6226['parseResponse'](_0x349171);return _0x349171?JSON['parse'](_0x349171):null;}function isResponseError(_0x421864){const _0xabed90='statusCode'in _0x421864?_0x421864['statusCode']:void 0x0;return typeof _0xabed90==='number'&&(_0xabed90<0xc8||_0xabed90>=0x12c);}const DEFAULT_RETRY_STATUS_CODES=[0x198,0x199,0x1a9,0x1ad,0x1f4,0x1f6,0x1f7,0x1f8],PAYLOAD_METHODS=new Set(['POST','PUT',_0xf46285(0x12f),'PATCH']);async function withRetry(_0x45a01a,_0x561f72){const _0x54e123=resolveRetryCount(_0x45a01a);for(let _0x8bd7d3=0x0;;_0x8bd7d3++)try{return await _0x561f72();}catch(_0x2db062){if(_0x8bd7d3>=_0x54e123||!shouldRetry(_0x2db062,_0x45a01a))throw _0x2db062;await sleep(_0x45a01a['retryDelay']??0x0,_0x45a01a['signal']);}}function resolveRetryCount(_0x1fcaed){const {retry:_0x2cb525}=_0x1fcaed;if(_0x2cb525===![])return 0x0;if(typeof _0x2cb525==='number')return _0x2cb525>0x0?_0x2cb525:0x0;return isPayloadMethod(_0x1fcaed['method'])?0x0:0x1;}function shouldRetry(_0x19c7e1,_0x100d90){const _0x18b7fa=_0xf46285;if(_0x100d90['signal']?.['aborted']||isAbortError(_0x19c7e1))return![];const _0x4e2612=_0x19c7e1?.['response']?.[_0x18b7fa(0x146)];if(typeof _0x4e2612!==_0x18b7fa(0x151))return!![];return(_0x100d90['retryStatusCodes']??DEFAULT_RETRY_STATUS_CODES)[_0x18b7fa(0x133)](_0x4e2612);}function isPayloadMethod(_0x4c0788){const _0x410b8f=_0xf46285;return!!_0x4c0788&&PAYLOAD_METHODS[_0x410b8f(0x13d)](_0x4c0788[_0x410b8f(0x14b)]());}function sleep(_0x5c83f9,_0x3d8dfe){return new Promise((_0x2ed680,_0x4eedbd)=>{const _0x27ac80=_0x5943;if(_0x3d8dfe?.[_0x27ac80(0x139)]){_0x4eedbd(_0x3d8dfe[_0x27ac80(0x13b)]);return;}if(!(_0x5c83f9>0x0)){_0x2ed680();return;}let _0x512dbd=()=>{};const _0x5ca443=setTimeout(()=>{_0x512dbd(),_0x2ed680();},_0x5c83f9);_0x512dbd=onAbort(_0x3d8dfe,()=>{const _0x54f96b=_0x27ac80;clearTimeout(_0x5ca443),_0x4eedbd(_0x3d8dfe[_0x54f96b(0x13b)]);});});}function buildURL(_0x31b621,_0x1cfdad){const _0x1f7dfb=_0xf46285,_0x3b8215=joinURL(_0x1cfdad[_0x1f7dfb(0x118)],_0x31b621),_0x2bce6a=_0x1cfdad['query']??{},_0x3f9432=Object['keys'](_0x2bce6a)[_0x1f7dfb(0x11d)](_0x53eda3=>_0x2bce6a[_0x53eda3]!==void 0x0)['flatMap'](_0x57e021=>{const _0x1b6a0f=_0x1f7dfb,_0x3bdaf8=_0x2bce6a[_0x57e021];return(Array['isArray'](_0x3bdaf8)?_0x3bdaf8:[_0x3bdaf8])[_0x1b6a0f(0x154)](_0x3575f8=>encodeURIComponent(_0x57e021)+'='+encodeURIComponent(String(_0x3575f8)));})[_0x1f7dfb(0x130)]('&');if(!_0x3f9432)return _0x3b8215;return''+_0x3b8215+(_0x3b8215['includes']('?')?'&':'?')+_0x3f9432;}function _0x4756(){const _0x412776=['enumerable','parseResponse','enableHttpDNS','name','fileType','arrayBuffer','create','downloadFile','statusCode','enableChunked','arraybuffer','onabort','onRequest','toUpperCase','download','onChunk','data','735721sNEMIp','20lAGvEL','number','get','<no\x20response\x20body>','map','tempFilePath','7205nTRJsK','fail','3294274nXwjUh','upload','emit','AbortError','startsWith','then','1637564VUTzYS','text','test','assign','replace','message','removeEventListener','body','responseType','enableHttp2','resolve','4503768DVykmi','onProgress','onChunkReceived','3YZOZoy','success','request','headers','_abort','defineProperty','baseURL','withCredentials','onProgressUpdate','120vwHljH','timeout','filter','splice','file','response','catch','files','128gpDRPt','onHeadersReceived','errMsg','onSuccess','signal','sslVerify','query','20oMOrzV','666857zTYBRh','onResponse','listeners','formData','DELETE','join','onFail','abort','includes','function','HttpError','3043539AiacYy','method','json','aborted','addEventListener','reason','onRequestError','has'];_0x4756=function(){return _0x412776;};return _0x4756();}function joinURL(_0x1f745e,_0x1b3d92){const _0x5d0678=_0xf46285;if(!_0x1f745e||isAbsoluteURL(_0x1b3d92))return _0x1b3d92;return _0x1f745e[_0x5d0678(0x108)](/\/+$/,'')+'/'+_0x1b3d92[_0x5d0678(0x108)](/^\/+/,'');}function isAbsoluteURL(_0x2064ff){const _0x3e6a95=_0xf46285;return/^[a-z][a-z\d+\-.]*:\/\//i[_0x3e6a95(0x106)](_0x2064ff)||_0x2064ff[_0x3e6a95(0x15c)]('//');}function dispatchHttp(_0x403ab2,_0x406b28,_0xde4809){const _0x37a6d2=buildURL(_0x406b28,_0xde4809);return withRetry(_0xde4809,()=>attemptRequest(_0x403ab2,_0x406b28,_0x37a6d2,_0xde4809));}function attemptRequest(_0xba14a3,_0xffe39e,_0x513855,_0xe48998){const _0x7fb5d0=!!_0xe48998['raw'];return new Promise((_0x5c1b2d,_0x345116)=>{const _0x2096db=_0x5943;let _0x9e8d29=![];const _0x1ea559=_0x3f011f=>{if(_0x9e8d29)return;_0x9e8d29=!![],_0x3f011f();},_0x5de442=onAbort(_0xe48998[_0x2096db(0x127)],()=>{const _0x34b806=_0x2096db;_0x1ea559(()=>_0x345116(_0xe48998['signal'][_0x34b806(0x13b)]));}),_0x2ffc28=_0x168e3f=>{_0x5de442(),_0x1ea559(_0x168e3f);};callRequestHooks(_0xffe39e,_0xe48998)[_0x2096db(0x15d)](()=>{if(_0x9e8d29)return;dispatch(_0xba14a3,_0x513855,_0xe48998,{'onSuccess':_0x1c87ae=>{const _0x3fed16=_0x5943;Promise[_0x3fed16(0x10e)]()['then'](()=>refineResponse(_0x1c87ae,_0xe48998))[_0x3fed16(0x15d)](async _0x3bf00d=>{const _0x69b4af=_0x3fed16;if(isResponseError(_0x1c87ae)){await callResponseErrorHooks(_0xffe39e,_0xe48998,_0x3bf00d);if(!_0xe48998['ignoreResponseError'])throw createResponseError(_0xffe39e,_0xe48998,_0x3bf00d);}else await callResponseHooks(_0xffe39e,_0xe48998,_0x3bf00d);_0x2ffc28(()=>_0x5c1b2d(_0x7fb5d0?_0x3bf00d:_0x3bf00d[_0x69b4af(0x14e)]));})[_0x3fed16(0x121)](_0x1411a4=>_0x2ffc28(()=>_0x345116(_0x1411a4)));},'onFail':_0x564862=>{const _0x23360b=_0x5943;Promise[_0x23360b(0x10e)]()[_0x23360b(0x15d)](async()=>{const _0xfa46a0=normalizeError(_0x564862);if(!isAbortError(_0xfa46a0))await callRequestErrorHooks(_0xffe39e,_0xe48998,_0xfa46a0);throw _0xfa46a0;})['catch'](_0x27da0a=>_0x2ffc28(()=>_0x345116(_0x27da0a)));}});})[_0x2096db(0x121)](async _0x392a63=>{const _0x3c59aa=normalizeError(_0x392a63);await callRequestErrorHooks(_0xffe39e,_0xe48998,_0x3c59aa),_0x2ffc28(()=>_0x345116(_0x3c59aa));});});}const _0x283253={};_0x283253['method']='GET',_0x283253['responseType']='json';const defaultConfig=_0x283253;function createHttp(_0x3e7359={}){const _0x25ca62=_0xf46285,_0x3e183c=(_0x372816,_0x57db9c)=>{return dispatchHttp('request',_0x372816,mergeOptions(defaultConfig,_0x3e7359,_0x57db9c));},_0x56f7fb=(_0x47cfe9,_0xeb77b9)=>{const _0x8b6ce2=_0x5943,_0x32058a={};return _0x32058a[_0x8b6ce2(0x137)]='POST',dispatchHttp(_0x8b6ce2(0x159),_0x47cfe9,mergeOptions(defaultConfig,_0x3e7359,_0xeb77b9,_0x32058a));},_0x3556fd=(_0x4abad7,_0x13deac)=>{const _0x76ce89=_0x5943,_0x5f3609={};return _0x5f3609[_0x76ce89(0x137)]='GET',dispatchHttp(_0x76ce89(0x14c),_0x4abad7,mergeOptions(defaultConfig,_0x3e7359,_0x13deac,_0x5f3609));},_0x23b94c=_0x4dbcb2=>createHttp(mergeOptions(_0x3e7359,_0x4dbcb2)),_0x5f0e60={};return _0x5f0e60[_0x25ca62(0x114)]=_0x3e183c,_0x5f0e60['upload']=_0x56f7fb,_0x5f0e60['download']=_0x3556fd,_0x5f0e60[_0x25ca62(0x144)]=_0x23b94c,_0x5f0e60;}const http=createHttp(),_0xddf3e8={};_0xddf3e8[_0xf46285(0x13e)]=!![],_0xddf3e8[_0xf46285(0x152)]=function(){return createHttp;},Object['defineProperty'](exports,'createHttp',_0xddf3e8);const _0x4b5d86={};_0x4b5d86[_0xf46285(0x13e)]=!![],_0x4b5d86['get']=function(){return createHttpAborter;},Object[_0xf46285(0x117)](exports,'createHttpAborter',_0x4b5d86);const _0x489846={};_0x489846['enumerable']=!![],_0x489846[_0xf46285(0x152)]=function(){return http;},Object['defineProperty'](exports,'http',_0x489846);
package/dist/oiyo.cjs CHANGED
@@ -1,11 +1,11 @@
1
1
  /**
2
- * @oiyo/framework v0.4.7
2
+ * @oiyo/framework v0.4.8
3
3
  * Copyright (c) 2026 skiyee. All rights reserved.
4
4
  * Commercial software. See LICENSE for terms.
5
5
  * Official site: https://oiyo.js.org
6
6
  */
7
7
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
8
- const require_oiyo = require("./oiyo-Dz2nYhKn.cjs");
8
+ const require_oiyo = require("./oiyo-CwQjYs6D.cjs");
9
9
  exports.createHttp = require_oiyo.createHttp;
10
10
  exports.createHttpAborter = require_oiyo.createHttpAborter;
11
11
  exports.http = require_oiyo.http;
package/dist/oiyo.d.cts CHANGED
@@ -1,8 +1,8 @@
1
1
  /**
2
- * @oiyo/framework v0.4.7
2
+ * @oiyo/framework v0.4.8
3
3
  * Copyright (c) 2026 skiyee. All rights reserved.
4
4
  * Commercial software. See LICENSE for terms.
5
5
  * Official site: https://oiyo.js.org
6
6
  */
7
- import { a as HttpDownloadResponse, c as HttpCommonOptions, d as HttpRequestOptions, f as HttpUploadOptions, i as HttpError, l as HttpDownloadOptions, m as createHttpAborter, n as http, o as HttpRequestResponse, p as ResponseBodyType, r as HttpConfig, s as HttpUploadResponse, t as createHttp, u as HttpOptions } from "./index-DaPBMr2_.cjs";
8
- export { type HttpCommonOptions, type HttpConfig, type HttpDownloadOptions, type HttpDownloadResponse, type HttpError, type HttpOptions, type HttpRequestOptions, type HttpRequestResponse, type HttpUploadOptions, type HttpUploadResponse, type ResponseBodyType, createHttp, createHttpAborter, http };
7
+ import { a as HttpDownloadResponse, c as HttpUploadResponse, d as HttpOptions, f as HttpRequestOptions, h as createHttpAborter, i as HttpError, l as HttpCommonOptions, m as ResponseBodyType, n as http, o as HttpRequestResponse, p as HttpUploadOptions, r as HttpConfig, s as HttpResponse, t as createHttp, u as HttpDownloadOptions } from "./index-CsfNc8p2.cjs";
8
+ export { type HttpCommonOptions, type HttpConfig, type HttpDownloadOptions, type HttpDownloadResponse, type HttpError, type HttpOptions, type HttpRequestOptions, type HttpRequestResponse, type HttpResponse, type HttpUploadOptions, type HttpUploadResponse, type ResponseBodyType, createHttp, createHttpAborter, http };
package/dist/oiyo.d.mts CHANGED
@@ -1,8 +1,8 @@
1
1
  /**
2
- * @oiyo/framework v0.4.7
2
+ * @oiyo/framework v0.4.8
3
3
  * Copyright (c) 2026 skiyee. All rights reserved.
4
4
  * Commercial software. See LICENSE for terms.
5
5
  * Official site: https://oiyo.js.org
6
6
  */
7
- import { a as HttpDownloadResponse, c as HttpCommonOptions, d as HttpRequestOptions, f as HttpUploadOptions, i as HttpError, l as HttpDownloadOptions, m as createHttpAborter, n as http, o as HttpRequestResponse, p as ResponseBodyType, r as HttpConfig, s as HttpUploadResponse, t as createHttp, u as HttpOptions } from "./index-DaPBMr2_.mjs";
8
- export { type HttpCommonOptions, type HttpConfig, type HttpDownloadOptions, type HttpDownloadResponse, type HttpError, type HttpOptions, type HttpRequestOptions, type HttpRequestResponse, type HttpUploadOptions, type HttpUploadResponse, type ResponseBodyType, createHttp, createHttpAborter, http };
7
+ import { a as HttpDownloadResponse, c as HttpUploadResponse, d as HttpOptions, f as HttpRequestOptions, h as createHttpAborter, i as HttpError, l as HttpCommonOptions, m as ResponseBodyType, n as http, o as HttpRequestResponse, p as HttpUploadOptions, r as HttpConfig, s as HttpResponse, t as createHttp, u as HttpDownloadOptions } from "./index-CsfNc8p2.mjs";
8
+ export { type HttpCommonOptions, type HttpConfig, type HttpDownloadOptions, type HttpDownloadResponse, type HttpError, type HttpOptions, type HttpRequestOptions, type HttpRequestResponse, type HttpResponse, type HttpUploadOptions, type HttpUploadResponse, type ResponseBodyType, createHttp, createHttpAborter, http };
package/dist/oiyo.mjs CHANGED
@@ -1,8 +1,8 @@
1
1
  /**
2
- * @oiyo/framework v0.4.7
2
+ * @oiyo/framework v0.4.8
3
3
  * Copyright (c) 2026 skiyee. All rights reserved.
4
4
  * Commercial software. See LICENSE for terms.
5
5
  * Official site: https://oiyo.js.org
6
6
  */
7
- import { n as http, r as createHttpAborter, t as createHttp } from "./oiyo-Cfyt1TAC.mjs";
7
+ import { n as http, r as createHttpAborter, t as createHttp } from "./oiyo-CohaZv3I.mjs";
8
8
  export { createHttp, createHttpAborter, http };
package/dist/uni.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @oiyo/framework v0.4.7
2
+ * @oiyo/framework v0.4.8
3
3
  * Copyright (c) 2026 skiyee. All rights reserved.
4
4
  * Commercial software. See LICENSE for terms.
5
5
  * Official site: https://oiyo.js.org
package/dist/uni.d.cts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @oiyo/framework v0.4.7
2
+ * @oiyo/framework v0.4.8
3
3
  * Copyright (c) 2026 skiyee. All rights reserved.
4
4
  * Commercial software. See LICENSE for terms.
5
5
  * Official site: https://oiyo.js.org
package/dist/uni.d.mts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @oiyo/framework v0.4.7
2
+ * @oiyo/framework v0.4.8
3
3
  * Copyright (c) 2026 skiyee. All rights reserved.
4
4
  * Commercial software. See LICENSE for terms.
5
5
  * Official site: https://oiyo.js.org
package/dist/uni.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @oiyo/framework v0.4.7
2
+ * @oiyo/framework v0.4.8
3
3
  * Copyright (c) 2026 skiyee. All rights reserved.
4
4
  * Commercial software. See LICENSE for terms.
5
5
  * Official site: https://oiyo.js.org
package/dist/vue.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @oiyo/framework v0.4.7
2
+ * @oiyo/framework v0.4.8
3
3
  * Copyright (c) 2026 skiyee. All rights reserved.
4
4
  * Commercial software. See LICENSE for terms.
5
5
  * Official site: https://oiyo.js.org
package/dist/vue.d.cts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @oiyo/framework v0.4.7
2
+ * @oiyo/framework v0.4.8
3
3
  * Copyright (c) 2026 skiyee. All rights reserved.
4
4
  * Commercial software. See LICENSE for terms.
5
5
  * Official site: https://oiyo.js.org
package/dist/vue.d.mts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @oiyo/framework v0.4.7
2
+ * @oiyo/framework v0.4.8
3
3
  * Copyright (c) 2026 skiyee. All rights reserved.
4
4
  * Commercial software. See LICENSE for terms.
5
5
  * Official site: https://oiyo.js.org
package/dist/vue.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @oiyo/framework v0.4.7
2
+ * @oiyo/framework v0.4.8
3
3
  * Copyright (c) 2026 skiyee. All rights reserved.
4
4
  * Commercial software. See LICENSE for terms.
5
5
  * Official site: https://oiyo.js.org
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@oiyo/framework",
3
3
  "type": "module",
4
- "version": "0.4.7",
4
+ "version": "0.4.8",
5
5
  "author": {
6
6
  "name": "skiyee",
7
7
  "email": "319619193@qq.com",
@@ -1,7 +0,0 @@
1
- /**
2
- * @oiyo/framework v0.4.7
3
- * Copyright (c) 2026 skiyee. All rights reserved.
4
- * Commercial software. See LICENSE for terms.
5
- * Official site: https://oiyo.js.org
6
- */
7
- const _0x9a34dd=_0x480c;(function(_0x2ff281,_0xf5c4c2){const _0x262cab=_0x480c,_0x433a86=_0x2ff281();while(!![]){try{const _0x381ae9=parseInt(_0x262cab(0xc7))/0x1+parseInt(_0x262cab(0xf7))/0x2*(-parseInt(_0x262cab(0xd1))/0x3)+-parseInt(_0x262cab(0xe8))/0x4*(-parseInt(_0x262cab(0xec))/0x5)+-parseInt(_0x262cab(0xef))/0x6+parseInt(_0x262cab(0xf8))/0x7*(-parseInt(_0x262cab(0xfd))/0x8)+parseInt(_0x262cab(0xda))/0x9*(-parseInt(_0x262cab(0xfc))/0xa)+parseInt(_0x262cab(0x10e))/0xb*(parseInt(_0x262cab(0xff))/0xc);if(_0x381ae9===_0xf5c4c2)break;else _0x433a86['push'](_0x433a86['shift']());}catch(_0x53d0a7){_0x433a86['push'](_0x433a86['shift']());}}}(_0x1013,0x6a914));function createHttpAborter(){const _0x4739b5=new HttpAbortSignal();return{'signal':_0x4739b5,'abort':_0x13fcd9=>_0x4739b5['_abort'](_0x13fcd9)};}const ABORT_ERROR_NAME='AbortError';var AbortEmitter=class{[_0x9a34dd(0x10a)]=[];[_0x9a34dd(0xc4)](_0x1616ef,_0x58ce9a){const _0x107a5e=_0x9a34dd;if(_0x1616ef!=='abort')return;this[_0x107a5e(0x10a)]['push'](_0x58ce9a);}[_0x9a34dd(0x10b)](_0x4382c3,_0x2bfb16){const _0x3bef99=_0x9a34dd;if(_0x4382c3!=='abort')return;const _0x3d77b8=this['listeners'][_0x3bef99(0xd9)](_0x2bfb16);if(_0x3d77b8!==-0x1)this[_0x3bef99(0x10a)][_0x3bef99(0xc5)](_0x3d77b8,0x1);}['emit'](_0x3e0dc5){const _0x55d1a9=_0x9a34dd;for(const _0x1ca8e0 of this['listeners'][_0x55d1a9(0xf1)]())_0x1ca8e0['call'](this,_0x3e0dc5);}},HttpAbortSignal=class extends AbortEmitter{[_0x9a34dd(0xc6)]=![];[_0x9a34dd(0xd4)]=void 0x0;[_0x9a34dd(0xf5)]=null;['_abort'](_0x3a9b2e){const _0x24ac9e=_0x9a34dd;if(this['aborted'])return;this['aborted']=!![],this['reason']=_0x3a9b2e===void 0x0?createAbortError():_0x3a9b2e;const _0x537951={};_0x537951['type']=_0x24ac9e(0xe6);const _0x37b1a0=_0x537951;if(typeof this[_0x24ac9e(0xf5)]==='function')this['onabort'](_0x37b1a0);this['emit'](_0x37b1a0);}[_0x9a34dd(0xfb)](){const _0x5880be=_0x9a34dd;if(this['aborted'])throw this[_0x5880be(0xd4)];}};function createAbortError(_0x564a9d=_0x9a34dd(0x100)){const _0x326076=new Error(_0x564a9d);return _0x326076['name']=ABORT_ERROR_NAME,_0x326076;}function isAbortError(_0x25f112){const _0x357226=_0x9a34dd;return _0x25f112 instanceof Error&&_0x25f112[_0x357226(0x102)]===ABORT_ERROR_NAME;}function onAbort(_0x433621,_0x5485f2){const _0x14698f=_0x9a34dd;if(!_0x433621)return()=>{};if(_0x433621['aborted'])return _0x5485f2(),()=>{};return _0x433621[_0x14698f(0xc4)](_0x14698f(0xe6),_0x5485f2),()=>_0x433621['removeEventListener']('abort',_0x5485f2);}const HOOK_NAMES=[_0x9a34dd(0x107),_0x9a34dd(0xe7),'onResponse','onResponseError'];function _0x480c(_0x46d8ff,_0x42f565){_0x46d8ff=_0x46d8ff-0xc4;const _0x1013a0=_0x1013();let _0x480cf8=_0x1013a0[_0x46d8ff];return _0x480cf8;}function mergeOptions(..._0x261b08){const _0x4f7c2c=_0x9a34dd,_0x3d5df2={},_0x488392={};for(const _0x5d2255 of _0x261b08){if(!_0x5d2255)continue;for(const _0x1a6ed9 of HOOK_NAMES)collectHook(_0x488392,_0x1a6ed9,_0x5d2255);const _0x16f771=_0x3d5df2[_0x4f7c2c(0xe3)],_0x4b23a5=_0x3d5df2[_0x4f7c2c(0xea)];Object[_0x4f7c2c(0xe2)](_0x3d5df2,_0x5d2255);const _0x1425c7={..._0x16f771,..._0x5d2255['headers']};_0x3d5df2[_0x4f7c2c(0xe3)]=_0x1425c7;const _0x3e6420={..._0x4b23a5,..._0x5d2255[_0x4f7c2c(0xea)]};_0x3d5df2['query']=_0x3e6420;}for(const [_0x51a750,_0x5c93bb]of Object['entries'](_0x488392))Object[_0x4f7c2c(0xe2)](_0x3d5df2,{[_0x51a750]:async _0x2d467b=>{for(const _0x1b52fd of _0x5c93bb)await _0x1b52fd(_0x2d467b);}});return _0x3d5df2;}function collectHook(_0x4ae99d,_0x43c441,_0x5c38a6){const _0x3d43ca=_0x9a34dd,_0x1a25e0=_0x5c38a6[_0x43c441];if(typeof _0x1a25e0!==_0x3d43ca(0x111))return;_0x4ae99d[_0x43c441]??=[],_0x4ae99d[_0x43c441][_0x3d43ca(0xdc)](_0x1a25e0);}function dispatch(_0x3246d7,_0x14d138,_0x5aa343,_0x2aadfb){let _0x45b066;if(_0x3246d7==='upload')_0x45b066=dispatchUpload(_0x14d138,_0x5aa343,_0x2aadfb);else{if(_0x3246d7==='download')_0x45b066=dispatchDownload(_0x14d138,_0x5aa343,_0x2aadfb);else _0x45b066=dispatchRequest(_0x14d138,_0x5aa343,_0x2aadfb);}bindTask(_0x45b066,_0x5aa343);}function bindTask(_0x53f7bc,_0x2695ce){const _0x2cd083=_0x9a34dd;onAbort(_0x2695ce['signal'],()=>_0x53f7bc[_0x2cd083(0xe6)]());if(typeof _0x2695ce['onHeadersReceived']===_0x2cd083(0x111))_0x53f7bc['onHeadersReceived'](_0x2695ce[_0x2cd083(0x105)]);const _0x2ebd34=_0x2695ce[_0x2cd083(0xcc)];if(typeof _0x2ebd34==='function'&&'onProgressUpdate'in _0x53f7bc)_0x53f7bc['onProgressUpdate'](_0x2ebd34);}function dispatchRequest(_0x8185c0,_0x2636db,_0x13d596){const _0x1c16fa=_0x9a34dd,_0x3a3cc6={'url':_0x8185c0,'method':_0x2636db['method'],'header':_0x2636db['headers'],'data':_0x2636db[_0x1c16fa(0xe0)]??{},'timeout':_0x2636db['timeout'],'dataType':_0x2636db[_0x1c16fa(0xd3)]||'json','responseType':mappedResponseBodyType(_0x2636db[_0x1c16fa(0xdd)]),'sslVerify':_0x2636db[_0x1c16fa(0xf3)],'withCredentials':_0x2636db['withCredentials'],'firstIpv4':_0x2636db['firstIpv4'],'enableHttp2':_0x2636db[_0x1c16fa(0xce)],'enableQuic':_0x2636db['enableQuic'],'enableCache':_0x2636db['enableCache'],'enableHttpDNS':_0x2636db['enableHttpDNS'],'httpDNSServiceId':_0x2636db['httpDNSServiceId'],'enableChunked':_0x2636db['enableChunked'],'forceCellularNetwork':_0x2636db[_0x1c16fa(0x10c)],'success':_0x13d596[_0x1c16fa(0xe4)],'fail':_0x13d596['onFail'],'complete':()=>{}};return uni[_0x1c16fa(0xf9)](_0x3a3cc6);}function dispatchUpload(_0x4861cd,_0x572df0,_0x5d491d){const _0x22d96a=_0x9a34dd,_0x58267c={};_0x58267c[_0x22d96a(0xd6)]=_0x4861cd,_0x58267c['fileType']=_0x572df0['fileType'],_0x58267c['file']=_0x572df0[_0x22d96a(0xed)],_0x58267c[_0x22d96a(0xdf)]=_0x572df0[_0x22d96a(0xdf)],_0x58267c[_0x22d96a(0x102)]=_0x572df0[_0x22d96a(0x102)]??_0x22d96a(0xed),_0x58267c['files']=_0x572df0['files'],_0x58267c[_0x22d96a(0x10d)]=_0x572df0['headers'],_0x58267c['formData']=_0x572df0[_0x22d96a(0xe0)]??{},_0x58267c[_0x22d96a(0x110)]=_0x572df0[_0x22d96a(0x110)],_0x58267c['success']=_0x5d491d[_0x22d96a(0xe4)],_0x58267c['fail']=_0x5d491d['onFail'],_0x58267c['complete']=()=>{};const _0x5174e8=_0x58267c;return uni['uploadFile'](_0x5174e8);}function dispatchDownload(_0x5d9c77,_0x37c7a6,_0x46313b){const _0x446854=_0x9a34dd,_0x4159b2={'url':_0x5d9c77,'header':_0x37c7a6[_0x446854(0xe3)],'timeout':_0x37c7a6[_0x446854(0x110)],'success':_0x53fe75=>{const _0x5ba138=_0x446854,_0x3e782c={..._0x53fe75};_0x3e782c['data']={},_0x3e782c['data'][_0x5ba138(0x109)]=_0x53fe75['tempFilePath'],_0x46313b[_0x5ba138(0xe4)](_0x3e782c);},'fail':_0x46313b['onFail'],'complete':()=>{}};return uni['downloadFile'](_0x4159b2);}function mappedResponseBodyType(_0x441935){const _0x33ceef=_0x9a34dd;if(!_0x441935||_0x441935==='json')return'text';if(_0x441935==='arrayBuffer')return'arraybuffer';return _0x33ceef(0xfa);}var HttpError=class extends Error{constructor(_0x342cd7){super(_0x342cd7),this['name']='HttpError';}};function createResponseError(_0x38ec63,_0x2cf82d,_0x324d04){const _0x4a7588=_0x9a34dd,_0x508fdf=_0x38ec63,_0xe2de30='['+(_0x2cf82d?.[_0x4a7588(0x108)]||'GET')+']\x20'+_0x508fdf,_0x404de2=_0x324d04?_0x324d04[_0x4a7588(0xd5)]+'\x20'+(_0x324d04['errMsg']||''):'<no\x20response>',_0x193bfb=_0x324d04?JSON['stringify'](_0x324d04['data']):'<no\x20response\x20body>',_0x6e95bf=new HttpError(_0xe2de30+':\x20'+_0x404de2+(_0x324d04[_0x4a7588(0xde)]?'\x20'+_0x193bfb:''));for(const _0xc1d880 of[_0x4a7588(0xf9),_0x4a7588(0x112),_0x4a7588(0x10f),'data'])Object[_0x4a7588(0xd0)](_0x6e95bf,_0xc1d880,{'get'(){const _0x565b7e=_0x4a7588,_0x5750df={};return _0x5750df[_0x565b7e(0xf9)]=_0x38ec63,_0x5750df['options']=_0x2cf82d,_0x5750df[_0x565b7e(0x10f)]=_0x324d04,_0x5750df[_0x565b7e(0xde)]=_0x324d04['data'],_0x5750df[_0xc1d880];}});return _0x6e95bf;}function normalizeError(_0x2b116e){const _0x5944f3=_0x9a34dd;if(_0x2b116e instanceof Error)return _0x2b116e;return Object['assign'](new Error(_0x2b116e?.['errMsg']||_0x2b116e?.[_0x5944f3(0xca)]||_0x5944f3(0xee)),{'cause':_0x2b116e});}async function callRequestHooks(_0x35b7ed,_0x4f6011){await _0x4f6011['onRequest']?.({'options':_0x4f6011,'resource':_0x35b7ed});}async function callRequestErrorHooks(_0x235e13,_0x9a4e53,_0xb39135){await _0x9a4e53['onRequestError']?.({'options':_0x9a4e53,'resource':_0x235e13,'error':_0xb39135});}async function callResponseHooks(_0x35a05c,_0x3d81b6,_0x3dfed3){const _0x395d09=_0x9a34dd;await _0x3d81b6[_0x395d09(0xe1)]?.({'options':_0x3d81b6,'resource':_0x35a05c,'response':_0x3dfed3});}async function callResponseErrorHooks(_0x5ca8a0,_0x286fef,_0x5e771a){await _0x286fef['onResponseError']?.({'options':_0x286fef,'resource':_0x5ca8a0,'response':_0x5e771a});}async function refineResponse(_0x511ed3,_0x4c9f02){const _0x462b9a=_0x9a34dd;if(_0x4c9f02[_0x462b9a(0xdd)]===_0x462b9a(0xf6)||!_0x4c9f02[_0x462b9a(0xdd)])return{..._0x511ed3,'data':await parseJSONResponse(_0x511ed3['data'],_0x4c9f02)};return _0x511ed3;}function parseJSONResponse(_0x2b5bc0,_0x219e72){const _0x486cd7=_0x9a34dd;if(typeof _0x2b5bc0!==_0x486cd7(0xc8))return _0x2b5bc0;if(_0x219e72[_0x486cd7(0xf2)])return _0x219e72['parseResponse'](_0x2b5bc0);return _0x2b5bc0?JSON['parse'](_0x2b5bc0):null;}function isResponseError(_0x2b0c41){const _0x13e2f5=_0x9a34dd,_0x59e32b='statusCode'in _0x2b0c41?_0x2b0c41[_0x13e2f5(0xd5)]:void 0x0;return typeof _0x59e32b==='number'&&(_0x59e32b<0xc8||_0x59e32b>=0x12c);}const DEFAULT_RETRY_STATUS_CODES=[0x198,0x199,0x1a9,0x1ad,0x1f4,0x1f6,0x1f7,0x1f8],PAYLOAD_METHODS=new Set([_0x9a34dd(0xd2),_0x9a34dd(0xc9),_0x9a34dd(0xd8),_0x9a34dd(0xf4)]);async function withRetry(_0x2e14f2,_0x479e7d){const _0x3ffbc2=resolveRetryCount(_0x2e14f2);for(let _0x76ca5d=0x0;;_0x76ca5d++)try{return await _0x479e7d();}catch(_0x4a2f2b){if(_0x76ca5d>=_0x3ffbc2||!shouldRetry(_0x4a2f2b,_0x2e14f2))throw _0x4a2f2b;await sleep(_0x2e14f2['retryDelay']??0x0,_0x2e14f2['signal']);}}function resolveRetryCount(_0x43f2e4){const _0x3cd3d4=_0x9a34dd,{retry:_0x30c053}=_0x43f2e4;if(_0x30c053===![])return 0x0;if(typeof _0x30c053==='number')return _0x30c053>0x0?_0x30c053:0x0;return isPayloadMethod(_0x43f2e4[_0x3cd3d4(0x108)])?0x0:0x1;}function shouldRetry(_0x315a26,_0xcc77bb){const _0x35f353=_0x9a34dd;if(_0xcc77bb[_0x35f353(0xdb)]?.['aborted']||isAbortError(_0x315a26))return![];const _0x509160=_0x315a26?.['response']?.[_0x35f353(0xd5)];if(typeof _0x509160!==_0x35f353(0x101))return!![];return(_0xcc77bb['retryStatusCodes']??DEFAULT_RETRY_STATUS_CODES)['includes'](_0x509160);}function isPayloadMethod(_0x129166){return!!_0x129166&&PAYLOAD_METHODS['has'](_0x129166['toUpperCase']());}function sleep(_0x3edcbf,_0x147c94){return new Promise((_0x4d42e9,_0x1f0320)=>{if(_0x147c94?.['aborted']){_0x1f0320(_0x147c94['reason']);return;}if(!(_0x3edcbf>0x0)){_0x4d42e9();return;}let _0x41c8a9=()=>{};const _0x301cc2=setTimeout(()=>{_0x41c8a9(),_0x4d42e9();},_0x3edcbf);_0x41c8a9=onAbort(_0x147c94,()=>{const _0x19dca5=_0x480c;clearTimeout(_0x301cc2),_0x1f0320(_0x147c94[_0x19dca5(0xd4)]);});});}function buildURL(_0x70de90,_0xeb3555){const _0x2f8a13=_0x9a34dd,_0x47ee2e=joinURL(_0xeb3555['baseURL'],_0x70de90),_0x336f2d=_0xeb3555['query']??{},_0x10a031=Object['keys'](_0x336f2d)[_0x2f8a13(0xcd)](_0x4a9649=>_0x336f2d[_0x4a9649]!==void 0x0)[_0x2f8a13(0xe5)](_0x1c097e=>{const _0x3b09ae=_0x336f2d[_0x1c097e];return(Array['isArray'](_0x3b09ae)?_0x3b09ae:[_0x3b09ae])['map'](_0x28d9a8=>encodeURIComponent(_0x1c097e)+'='+encodeURIComponent(String(_0x28d9a8)));})[_0x2f8a13(0xe9)]('&');if(!_0x10a031)return _0x47ee2e;return''+_0x47ee2e+(_0x47ee2e['includes']('?')?'&':'?')+_0x10a031;}function joinURL(_0x217b21,_0x462259){const _0x20880c=_0x9a34dd;if(!_0x217b21||isAbsoluteURL(_0x462259))return _0x462259;return _0x217b21[_0x20880c(0xeb)](/\/+$/,'')+'/'+_0x462259['replace'](/^\/+/,'');}function isAbsoluteURL(_0x572f17){const _0x52b05e=_0x9a34dd;return/^[a-z][a-z\d+\-.]*:\/\//i[_0x52b05e(0xf0)](_0x572f17)||_0x572f17['startsWith']('//');}function dispatchHttp(_0x12f5ae,_0x17a0f1,_0x5de830){const _0x391ec8=buildURL(_0x17a0f1,_0x5de830);return withRetry(_0x5de830,()=>attemptRequest(_0x12f5ae,_0x17a0f1,_0x391ec8,_0x5de830));}function attemptRequest(_0x1d06e8,_0x55124d,_0x50377d,_0x50b56c){const _0x50d8d9=!!_0x50b56c['raw'];return new Promise((_0x58cc26,_0x5b9b22)=>{const _0x42f212=_0x480c;let _0x1c6c02=![];const _0x552d06=_0x21a577=>{if(_0x1c6c02)return;_0x1c6c02=!![],_0x21a577();},_0x568ff3=onAbort(_0x50b56c[_0x42f212(0xdb)],()=>{const _0x351269=_0x42f212;_0x552d06(()=>_0x5b9b22(_0x50b56c[_0x351269(0xdb)]['reason']));}),_0x7e3dc6=_0x51a80d=>{_0x568ff3(),_0x552d06(_0x51a80d);};callRequestHooks(_0x55124d,_0x50b56c)['then'](()=>{if(_0x1c6c02)return;dispatch(_0x1d06e8,_0x50377d,_0x50b56c,{'onSuccess':_0x3a5b5e=>{const _0x373073=_0x480c;Promise[_0x373073(0x104)]()[_0x373073(0x106)](()=>refineResponse(_0x3a5b5e,_0x50b56c))[_0x373073(0x106)](async _0x2be88a=>{const _0xcde284=_0x373073;if(isResponseError(_0x3a5b5e)){await callResponseErrorHooks(_0x55124d,_0x50b56c,_0x2be88a);if(!_0x50b56c[_0xcde284(0xcb)])throw createResponseError(_0x55124d,_0x50b56c,_0x2be88a);}else await callResponseHooks(_0x55124d,_0x50b56c,_0x2be88a);_0x7e3dc6(()=>_0x58cc26(_0x50d8d9?_0x2be88a:_0x2be88a['data']));})[_0x373073(0x103)](_0xbdc548=>_0x7e3dc6(()=>_0x5b9b22(_0xbdc548)));},'onFail':_0x5899bc=>{const _0x16bbae=_0x480c;Promise['resolve']()['then'](async()=>{const _0x4b2209=normalizeError(_0x5899bc);if(!isAbortError(_0x4b2209))await callRequestErrorHooks(_0x55124d,_0x50b56c,_0x4b2209);throw _0x4b2209;})[_0x16bbae(0x103)](_0x4ab787=>_0x7e3dc6(()=>_0x5b9b22(_0x4ab787)));}});})['catch'](async _0x2e8583=>{const _0x4cfef6=normalizeError(_0x2e8583);await callRequestErrorHooks(_0x55124d,_0x50b56c,_0x4cfef6),_0x7e3dc6(()=>_0x5b9b22(_0x4cfef6));});});}const _0x1fca69={};_0x1fca69['method']=_0x9a34dd(0xd7),_0x1fca69['responseType']='json';function _0x1013(){const _0x10fc22=['enableHttp2','download','defineProperty','593313SyWTfA','POST','dataType','reason','statusCode','url','GET','DELETE','indexOf','542664moIfcR','signal','push','responseType','data','filePath','body','onResponse','assign','headers','onSuccess','flatMap','abort','onRequestError','1204Bhhgcp','join','query','replace','9715xLYdVS','file','HTTP\x20request\x20failed','2552694EJFlHe','test','slice','parseResponse','sslVerify','PATCH','onabort','json','6mePETq','194747yEaeyP','request','text','throwIfAborted','100JnRbmA','224rCCJDy','upload','24509844OYKnlK','The\x20operation\x20was\x20aborted','number','name','catch','resolve','onHeadersReceived','then','onRequest','method','tempFilePath','listeners','removeEventListener','forceCellularNetwork','header','11hMkGYr','response','timeout','function','options','addEventListener','splice','aborted','209880JNHUob','string','PUT','message','ignoreResponseError','onProgress','filter'];_0x1013=function(){return _0x10fc22;};return _0x1013();}const defaultConfig=_0x1fca69;function createHttp(_0x2178c9={}){const _0x2233a0=_0x9a34dd,_0x593412=(_0x45d5f5,_0x3393ee)=>{const _0x2ded71=_0x480c;return dispatchHttp(_0x2ded71(0xf9),_0x45d5f5,mergeOptions(defaultConfig,_0x2178c9,_0x3393ee));},_0x4b4d27=(_0x32f372,_0x5b30be)=>{const _0x52fc13=_0x480c,_0x618bdf={};return _0x618bdf[_0x52fc13(0x108)]='POST',dispatchHttp(_0x52fc13(0xfe),_0x32f372,mergeOptions(defaultConfig,_0x2178c9,_0x5b30be,_0x618bdf));},_0x57c092=(_0x50fd6d,_0x5abd95)=>{const _0xf89190=_0x480c,_0x464784={};return _0x464784['method']='GET',dispatchHttp(_0xf89190(0xcf),_0x50fd6d,mergeOptions(defaultConfig,_0x2178c9,_0x5abd95,_0x464784));},_0x383dd5=_0x7ee4d4=>createHttp(mergeOptions(_0x2178c9,_0x7ee4d4)),_0x288b98={};return _0x288b98['request']=_0x593412,_0x288b98['upload']=_0x4b4d27,_0x288b98[_0x2233a0(0xcf)]=_0x57c092,_0x288b98['create']=_0x383dd5,_0x288b98;}const http=createHttp();export{http as n,createHttpAborter as r,createHttp as t};
@@ -1,7 +0,0 @@
1
- /**
2
- * @oiyo/framework v0.4.7
3
- * Copyright (c) 2026 skiyee. All rights reserved.
4
- * Commercial software. See LICENSE for terms.
5
- * Official site: https://oiyo.js.org
6
- */
7
- const _0x2a89f2=_0x4447;(function(_0x285e33,_0xafda58){const _0x27a5a0=_0x4447,_0x405da3=_0x285e33();while(!![]){try{const _0x5d7a50=-parseInt(_0x27a5a0(0x206))/0x1*(-parseInt(_0x27a5a0(0x203))/0x2)+-parseInt(_0x27a5a0(0x1f5))/0x3+parseInt(_0x27a5a0(0x214))/0x4+-parseInt(_0x27a5a0(0x1e2))/0x5*(-parseInt(_0x27a5a0(0x1d9))/0x6)+parseInt(_0x27a5a0(0x1ca))/0x7*(-parseInt(_0x27a5a0(0x1da))/0x8)+-parseInt(_0x27a5a0(0x201))/0x9+parseInt(_0x27a5a0(0x1c5))/0xa;if(_0x5d7a50===_0xafda58)break;else _0x405da3['push'](_0x405da3['shift']());}catch(_0x8e272e){_0x405da3['push'](_0x405da3['shift']());}}}(_0x38cf,0x92ee1));function createHttpAborter(){const _0x39cd55=new HttpAbortSignal();return{'signal':_0x39cd55,'abort':_0x188460=>_0x39cd55['_abort'](_0x188460)};}const ABORT_ERROR_NAME=_0x2a89f2(0x21b);var AbortEmitter=class{[_0x2a89f2(0x202)]=[];['addEventListener'](_0x3d2dab,_0x598dd4){const _0x3834ff=_0x2a89f2;if(_0x3d2dab!==_0x3834ff(0x209))return;this['listeners']['push'](_0x598dd4);}['removeEventListener'](_0x4df258,_0x5ef6cd){const _0x2a1492=_0x2a89f2;if(_0x4df258!=='abort')return;const _0x5db49f=this[_0x2a1492(0x202)]['indexOf'](_0x5ef6cd);if(_0x5db49f!==-0x1)this['listeners']['splice'](_0x5db49f,0x1);}[_0x2a89f2(0x20d)](_0x182ae6){const _0xe7fd50=_0x2a89f2;for(const _0x19d8ae of this[_0xe7fd50(0x202)][_0xe7fd50(0x1ef)]())_0x19d8ae[_0xe7fd50(0x1c7)](this,_0x182ae6);}},HttpAbortSignal=class extends AbortEmitter{['aborted']=![];[_0x2a89f2(0x1e0)]=void 0x0;[_0x2a89f2(0x1df)]=null;['_abort'](_0x37b4fb){const _0x21f39f=_0x2a89f2;if(this[_0x21f39f(0x207)])return;this[_0x21f39f(0x207)]=!![],this[_0x21f39f(0x1e0)]=_0x37b4fb===void 0x0?createAbortError():_0x37b4fb;const _0x4db41b={};_0x4db41b['type']='abort';const _0x45c023=_0x4db41b;if(typeof this['onabort']==='function')this['onabort'](_0x45c023);this['emit'](_0x45c023);}[_0x2a89f2(0x1fb)](){const _0x1febd9=_0x2a89f2;if(this[_0x1febd9(0x207)])throw this[_0x1febd9(0x1e0)];}};function createAbortError(_0x12843d=_0x2a89f2(0x1cc)){const _0x4612a8=_0x2a89f2,_0x469ab6=new Error(_0x12843d);return _0x469ab6[_0x4612a8(0x1f0)]=ABORT_ERROR_NAME,_0x469ab6;}function isAbortError(_0x18a741){const _0x3130b0=_0x2a89f2;return _0x18a741 instanceof Error&&_0x18a741[_0x3130b0(0x1f0)]===ABORT_ERROR_NAME;}function onAbort(_0x46df1e,_0x16c022){const _0x4ae787=_0x2a89f2;if(!_0x46df1e)return()=>{};if(_0x46df1e['aborted'])return _0x16c022(),()=>{};return _0x46df1e['addEventListener']('abort',_0x16c022),()=>_0x46df1e['removeEventListener'](_0x4ae787(0x209),_0x16c022);}const HOOK_NAMES=['onRequest',_0x2a89f2(0x1e5),_0x2a89f2(0x1f2),'onResponseError'];function mergeOptions(..._0x2ce094){const _0x5af313=_0x2a89f2,_0x2be285={},_0x1b536a={};for(const _0xa5cb36 of _0x2ce094){if(!_0xa5cb36)continue;for(const _0x31774c of HOOK_NAMES)collectHook(_0x1b536a,_0x31774c,_0xa5cb36);const _0x3115fa=_0x2be285['headers'],_0x340292=_0x2be285[_0x5af313(0x1ed)];Object[_0x5af313(0x1d7)](_0x2be285,_0xa5cb36);const _0x22539d={..._0x3115fa,..._0xa5cb36[_0x5af313(0x1d3)]};_0x2be285[_0x5af313(0x1d3)]=_0x22539d;const _0x209afc={..._0x340292,..._0xa5cb36[_0x5af313(0x1ed)]};_0x2be285['query']=_0x209afc;}for(const [_0xc08038,_0x3030f6]of Object[_0x5af313(0x1de)](_0x1b536a))Object[_0x5af313(0x1d7)](_0x2be285,{[_0xc08038]:async _0x2225d3=>{for(const _0x4da1df of _0x3030f6)await _0x4da1df(_0x2225d3);}});return _0x2be285;}function collectHook(_0x1792b4,_0x48aec4,_0xa54d5c){const _0x50ce69=_0xa54d5c[_0x48aec4];if(typeof _0x50ce69!=='function')return;_0x1792b4[_0x48aec4]??=[],_0x1792b4[_0x48aec4]['push'](_0x50ce69);}function dispatch(_0x47f4f7,_0x3f723c,_0x1d757c,_0x131493){let _0x5a0a2a;if(_0x47f4f7==='upload')_0x5a0a2a=dispatchUpload(_0x3f723c,_0x1d757c,_0x131493);else{if(_0x47f4f7==='download')_0x5a0a2a=dispatchDownload(_0x3f723c,_0x1d757c,_0x131493);else _0x5a0a2a=dispatchRequest(_0x3f723c,_0x1d757c,_0x131493);}bindTask(_0x5a0a2a,_0x1d757c);}function bindTask(_0x4716fd,_0x2b4e09){const _0x4b831d=_0x2a89f2;onAbort(_0x2b4e09[_0x4b831d(0x1d0)],()=>_0x4716fd[_0x4b831d(0x209)]());if(typeof _0x2b4e09['onHeadersReceived']==='function')_0x4716fd[_0x4b831d(0x1c2)](_0x2b4e09[_0x4b831d(0x1c2)]);const _0x50203f=_0x2b4e09['onProgress'];if(typeof _0x50203f==='function'&&'onProgressUpdate'in _0x4716fd)_0x4716fd[_0x4b831d(0x1c6)](_0x50203f);}function dispatchRequest(_0x22553a,_0x1bd96b,_0x89e072){const _0x5ae744=_0x2a89f2,_0x3e0db2={'url':_0x22553a,'method':_0x1bd96b[_0x5ae744(0x210)],'header':_0x1bd96b['headers'],'data':_0x1bd96b['body']??{},'timeout':_0x1bd96b[_0x5ae744(0x216)],'dataType':_0x1bd96b[_0x5ae744(0x1e1)]||_0x5ae744(0x1db),'responseType':mappedResponseBodyType(_0x1bd96b[_0x5ae744(0x1dc)]),'sslVerify':_0x1bd96b[_0x5ae744(0x1cd)],'withCredentials':_0x1bd96b['withCredentials'],'firstIpv4':_0x1bd96b[_0x5ae744(0x1ce)],'enableHttp2':_0x1bd96b[_0x5ae744(0x20c)],'enableQuic':_0x1bd96b[_0x5ae744(0x1d4)],'enableCache':_0x1bd96b[_0x5ae744(0x213)],'enableHttpDNS':_0x1bd96b[_0x5ae744(0x208)],'httpDNSServiceId':_0x1bd96b['httpDNSServiceId'],'enableChunked':_0x1bd96b[_0x5ae744(0x1cf)],'forceCellularNetwork':_0x1bd96b[_0x5ae744(0x1c8)],'success':_0x89e072['onSuccess'],'fail':_0x89e072[_0x5ae744(0x1ff)],'complete':()=>{}};return uni['request'](_0x3e0db2);}function dispatchUpload(_0x4cd20e,_0x36ebdf,_0x1db79f){const _0x11d4a9=_0x2a89f2,_0x59e0ff={};_0x59e0ff['url']=_0x4cd20e,_0x59e0ff[_0x11d4a9(0x1f1)]=_0x36ebdf['fileType'],_0x59e0ff[_0x11d4a9(0x1e3)]=_0x36ebdf[_0x11d4a9(0x1e3)],_0x59e0ff['filePath']=_0x36ebdf[_0x11d4a9(0x200)],_0x59e0ff[_0x11d4a9(0x1f0)]=_0x36ebdf[_0x11d4a9(0x1f0)]??_0x11d4a9(0x1e3),_0x59e0ff[_0x11d4a9(0x1d6)]=_0x36ebdf[_0x11d4a9(0x1d6)],_0x59e0ff[_0x11d4a9(0x1d2)]=_0x36ebdf['headers'],_0x59e0ff['formData']=_0x36ebdf['body']??{},_0x59e0ff[_0x11d4a9(0x216)]=_0x36ebdf['timeout'],_0x59e0ff['success']=_0x1db79f[_0x11d4a9(0x21a)],_0x59e0ff[_0x11d4a9(0x1cb)]=_0x1db79f[_0x11d4a9(0x1ff)],_0x59e0ff['complete']=()=>{};const _0x5808f5=_0x59e0ff;return uni['uploadFile'](_0x5808f5);}function dispatchDownload(_0x534c13,_0x46b29d,_0x5232ff){const _0x36dddd=_0x2a89f2,_0x25ed57={'url':_0x534c13,'header':_0x46b29d[_0x36dddd(0x1d3)],'timeout':_0x46b29d[_0x36dddd(0x216)],'success':_0x2ab795=>{const _0x2dcab3=_0x36dddd,_0x14d07e={..._0x2ab795};_0x14d07e[_0x2dcab3(0x205)]={},_0x14d07e[_0x2dcab3(0x205)]['tempFilePath']=_0x2ab795[_0x2dcab3(0x20f)],_0x5232ff['onSuccess'](_0x14d07e);},'fail':_0x5232ff[_0x36dddd(0x1ff)],'complete':()=>{}};return uni['downloadFile'](_0x25ed57);}function mappedResponseBodyType(_0x3c9006){const _0x5c3b98=_0x2a89f2;if(!_0x3c9006||_0x3c9006===_0x5c3b98(0x1db))return _0x5c3b98(0x1e9);if(_0x3c9006===_0x5c3b98(0x1d1))return _0x5c3b98(0x1e8);return _0x5c3b98(0x1e9);}var HttpError=class extends Error{constructor(_0x226d5d){const _0x3a9d4d=_0x2a89f2;super(_0x226d5d),this['name']=_0x3a9d4d(0x1fa);}};function createResponseError(_0x3397dc,_0x134aa8,_0x13ef42){const _0x44422a=_0x2a89f2,_0x38ed50=_0x3397dc,_0x2ec1ad='['+(_0x134aa8?.[_0x44422a(0x210)]||_0x44422a(0x20a))+']\x20'+_0x38ed50,_0xe1f557=_0x13ef42?_0x13ef42['statusCode']+'\x20'+(_0x13ef42['errMsg']||''):_0x44422a(0x1ee),_0x3e00be=_0x13ef42?JSON[_0x44422a(0x1f6)](_0x13ef42[_0x44422a(0x205)]):_0x44422a(0x212),_0x599468=new HttpError(_0x2ec1ad+':\x20'+_0xe1f557+(_0x13ef42[_0x44422a(0x205)]?'\x20'+_0x3e00be:''));for(const _0x2bb94e of['request','options',_0x44422a(0x1d8),_0x44422a(0x205)])Object['defineProperty'](_0x599468,_0x2bb94e,{'get'(){const _0x1ad317=_0x44422a,_0x4e5733={};return _0x4e5733['request']=_0x3397dc,_0x4e5733[_0x1ad317(0x1c3)]=_0x134aa8,_0x4e5733['response']=_0x13ef42,_0x4e5733['data']=_0x13ef42['data'],_0x4e5733[_0x2bb94e];}});return _0x599468;}function normalizeError(_0x51bfea){const _0x352be3=_0x2a89f2;if(_0x51bfea instanceof Error)return _0x51bfea;return Object[_0x352be3(0x1d7)](new Error(_0x51bfea?.['errMsg']||_0x51bfea?.['message']||_0x352be3(0x1d5)),{'cause':_0x51bfea});}async function callRequestHooks(_0x74aa3f,_0xcec4ee){await _0xcec4ee['onRequest']?.({'options':_0xcec4ee,'resource':_0x74aa3f});}async function callRequestErrorHooks(_0x1f605f,_0x30be86,_0x22c4e7){await _0x30be86['onRequestError']?.({'options':_0x30be86,'resource':_0x1f605f,'error':_0x22c4e7});}async function callResponseHooks(_0x880e83,_0x1b6e77,_0x206c2f){await _0x1b6e77['onResponse']?.({'options':_0x1b6e77,'resource':_0x880e83,'response':_0x206c2f});}async function callResponseErrorHooks(_0x1b0717,_0x22311e,_0x817ee9){const _0x40384e=_0x2a89f2;await _0x22311e[_0x40384e(0x1c9)]?.({'options':_0x22311e,'resource':_0x1b0717,'response':_0x817ee9});}async function refineResponse(_0x4554bb,_0x231f1e){const _0xcf7351=_0x2a89f2;if(_0x231f1e[_0xcf7351(0x1dc)]===_0xcf7351(0x1db)||!_0x231f1e[_0xcf7351(0x1dc)])return{..._0x4554bb,'data':await parseJSONResponse(_0x4554bb[_0xcf7351(0x205)],_0x231f1e)};return _0x4554bb;}function parseJSONResponse(_0x518e21,_0x4eca49){const _0x45ac27=_0x2a89f2;if(typeof _0x518e21!=='string')return _0x518e21;if(_0x4eca49[_0x45ac27(0x1f7)])return _0x4eca49[_0x45ac27(0x1f7)](_0x518e21);return _0x518e21?JSON[_0x45ac27(0x215)](_0x518e21):null;}function isResponseError(_0x1040ee){const _0x25e8f4=_0x2a89f2,_0x2f3166='statusCode'in _0x1040ee?_0x1040ee[_0x25e8f4(0x1eb)]:void 0x0;return typeof _0x2f3166==='number'&&(_0x2f3166<0xc8||_0x2f3166>=0x12c);}const DEFAULT_RETRY_STATUS_CODES=[0x198,0x199,0x1a9,0x1ad,0x1f4,0x1f6,0x1f7,0x1f8],PAYLOAD_METHODS=new Set([_0x2a89f2(0x1ea),_0x2a89f2(0x20b),'DELETE',_0x2a89f2(0x20e)]);async function withRetry(_0x5474e3,_0x5e7dde){const _0xe77195=_0x2a89f2,_0x539131=resolveRetryCount(_0x5474e3);for(let _0x5d56eb=0x0;;_0x5d56eb++)try{return await _0x5e7dde();}catch(_0x267056){if(_0x5d56eb>=_0x539131||!shouldRetry(_0x267056,_0x5474e3))throw _0x267056;await sleep(_0x5474e3[_0xe77195(0x1f9)]??0x0,_0x5474e3['signal']);}}function resolveRetryCount(_0x5ab607){const _0x3880ea=_0x2a89f2,{retry:_0x3a5b7e}=_0x5ab607;if(_0x3a5b7e===![])return 0x0;if(typeof _0x3a5b7e==='number')return _0x3a5b7e>0x0?_0x3a5b7e:0x0;return isPayloadMethod(_0x5ab607[_0x3880ea(0x210)])?0x0:0x1;}function shouldRetry(_0x6d2bab,_0x492f01){const _0x1bf38b=_0x2a89f2;if(_0x492f01['signal']?.[_0x1bf38b(0x207)]||isAbortError(_0x6d2bab))return![];const _0x53a3db=_0x6d2bab?.[_0x1bf38b(0x1d8)]?.[_0x1bf38b(0x1eb)];if(typeof _0x53a3db!=='number')return!![];return(_0x492f01[_0x1bf38b(0x1dd)]??DEFAULT_RETRY_STATUS_CODES)['includes'](_0x53a3db);}function isPayloadMethod(_0x2bbd90){const _0x19f123=_0x2a89f2;return!!_0x2bbd90&&PAYLOAD_METHODS[_0x19f123(0x1fd)](_0x2bbd90[_0x19f123(0x1e6)]());}function sleep(_0x5809b0,_0x4f9537){return new Promise((_0x4be4ef,_0x458335)=>{const _0x34d1b8=_0x4447;if(_0x4f9537?.[_0x34d1b8(0x207)]){_0x458335(_0x4f9537[_0x34d1b8(0x1e0)]);return;}if(!(_0x5809b0>0x0)){_0x4be4ef();return;}let _0x2bc96f=()=>{};const _0x51ba56=setTimeout(()=>{_0x2bc96f(),_0x4be4ef();},_0x5809b0);_0x2bc96f=onAbort(_0x4f9537,()=>{const _0x3819ab=_0x34d1b8;clearTimeout(_0x51ba56),_0x458335(_0x4f9537[_0x3819ab(0x1e0)]);});});}function buildURL(_0x206e4d,_0x5d5ff7){const _0x1bbfba=_0x2a89f2,_0x5bee0a=joinURL(_0x5d5ff7['baseURL'],_0x206e4d),_0x1ce55a=_0x5d5ff7['query']??{},_0x59a59b=Object[_0x1bbfba(0x1ec)](_0x1ce55a)['filter'](_0x1402e3=>_0x1ce55a[_0x1402e3]!==void 0x0)[_0x1bbfba(0x1c4)](_0x3c604b=>{const _0x668250=_0x1ce55a[_0x3c604b];return(Array['isArray'](_0x668250)?_0x668250:[_0x668250])['map'](_0x37240e=>encodeURIComponent(_0x3c604b)+'='+encodeURIComponent(String(_0x37240e)));})[_0x1bbfba(0x218)]('&');if(!_0x59a59b)return _0x5bee0a;return''+_0x5bee0a+(_0x5bee0a['includes']('?')?'&':'?')+_0x59a59b;}function joinURL(_0x1d9f00,_0x16a365){const _0x195e62=_0x2a89f2;if(!_0x1d9f00||isAbsoluteURL(_0x16a365))return _0x16a365;return _0x1d9f00[_0x195e62(0x1e4)](/\/+$/,'')+'/'+_0x16a365[_0x195e62(0x1e4)](/^\/+/,'');}function isAbsoluteURL(_0x415140){return/^[a-z][a-z\d+\-.]*:\/\//i['test'](_0x415140)||_0x415140['startsWith']('//');}function dispatchHttp(_0xc1e385,_0x5695e6,_0x4207e5){const _0x38e38c=buildURL(_0x5695e6,_0x4207e5);return withRetry(_0x4207e5,()=>attemptRequest(_0xc1e385,_0x5695e6,_0x38e38c,_0x4207e5));}function attemptRequest(_0xaebc87,_0x494710,_0x175ee6,_0xe82e7e){const _0x11f8e0=_0x2a89f2,_0x231f6c=!!_0xe82e7e[_0x11f8e0(0x1fe)];return new Promise((_0x564458,_0x3ae56f)=>{const _0x4a1024=_0x11f8e0;let _0x3f51a3=![];const _0x2e5c57=_0x3ef91f=>{if(_0x3f51a3)return;_0x3f51a3=!![],_0x3ef91f();},_0xc7242b=onAbort(_0xe82e7e['signal'],()=>{const _0x127b62=_0x4447;_0x2e5c57(()=>_0x3ae56f(_0xe82e7e[_0x127b62(0x1d0)][_0x127b62(0x1e0)]));}),_0x4fab32=_0x39b23f=>{_0xc7242b(),_0x2e5c57(_0x39b23f);};callRequestHooks(_0x494710,_0xe82e7e)[_0x4a1024(0x1f8)](()=>{if(_0x3f51a3)return;dispatch(_0xaebc87,_0x175ee6,_0xe82e7e,{'onSuccess':_0x8a49cd=>{const _0x50c6dd=_0x4447;Promise['resolve']()[_0x50c6dd(0x1f8)](()=>refineResponse(_0x8a49cd,_0xe82e7e))['then'](async _0x11e2c9=>{const _0x290a7a=_0x50c6dd;if(isResponseError(_0x8a49cd)){await callResponseErrorHooks(_0x494710,_0xe82e7e,_0x11e2c9);if(!_0xe82e7e[_0x290a7a(0x1f3)])throw createResponseError(_0x494710,_0xe82e7e,_0x11e2c9);}else await callResponseHooks(_0x494710,_0xe82e7e,_0x11e2c9);_0x4fab32(()=>_0x564458(_0x231f6c?_0x11e2c9:_0x11e2c9[_0x290a7a(0x205)]));})[_0x50c6dd(0x217)](_0x51b52c=>_0x4fab32(()=>_0x3ae56f(_0x51b52c)));},'onFail':_0x415b49=>{const _0x2ae480=_0x4447;Promise['resolve']()[_0x2ae480(0x1f8)](async()=>{const _0x1b9b47=normalizeError(_0x415b49);if(!isAbortError(_0x1b9b47))await callRequestErrorHooks(_0x494710,_0xe82e7e,_0x1b9b47);throw _0x1b9b47;})['catch'](_0x3792d8=>_0x4fab32(()=>_0x3ae56f(_0x3792d8)));}});})[_0x4a1024(0x217)](async _0x48154d=>{const _0x421433=normalizeError(_0x48154d);await callRequestErrorHooks(_0x494710,_0xe82e7e,_0x421433),_0x4fab32(()=>_0x3ae56f(_0x421433));});});}const _0x2fd224={};_0x2fd224['method']='GET',_0x2fd224['responseType']='json';const defaultConfig=_0x2fd224;function createHttp(_0x209740={}){const _0x5dfeff=_0x2a89f2,_0x464b1e=(_0x562183,_0x1ec768)=>{const _0x130bf6=_0x4447;return dispatchHttp(_0x130bf6(0x211),_0x562183,mergeOptions(defaultConfig,_0x209740,_0x1ec768));},_0x54f92e=(_0x13f7a2,_0x2bd065)=>{const _0x5e028b=_0x4447,_0xf2100={};return _0xf2100['method']=_0x5e028b(0x1ea),dispatchHttp('upload',_0x13f7a2,mergeOptions(defaultConfig,_0x209740,_0x2bd065,_0xf2100));},_0x330d2d=(_0x33f8cb,_0x30f560)=>{const _0xe541dc=_0x4447,_0x1fa6e0={};return _0x1fa6e0['method']='GET',dispatchHttp(_0xe541dc(0x1e7),_0x33f8cb,mergeOptions(defaultConfig,_0x209740,_0x30f560,_0x1fa6e0));},_0x541c8a=_0x3856c5=>createHttp(mergeOptions(_0x209740,_0x3856c5)),_0x18289e={};return _0x18289e[_0x5dfeff(0x211)]=_0x464b1e,_0x18289e['upload']=_0x54f92e,_0x18289e['download']=_0x330d2d,_0x18289e['create']=_0x541c8a,_0x18289e;}function _0x4447(_0x52cdd1,_0x5a05cf){_0x52cdd1=_0x52cdd1-0x1c2;const _0x38cf5d=_0x38cf();let _0x44476b=_0x38cf5d[_0x52cdd1];return _0x44476b;}const http=createHttp(),_0x5a410f={};_0x5a410f[_0x2a89f2(0x1fc)]=!![],_0x5a410f[_0x2a89f2(0x219)]=function(){return createHttp;},Object[_0x2a89f2(0x204)](exports,_0x2a89f2(0x1f4),_0x5a410f);const _0x227556={};function _0x38cf(){const _0x187763=['then','retryDelay','HttpError','throwIfAborted','enumerable','has','raw','onFail','filePath','2788758rOBcme','listeners','108HODkrx','defineProperty','data','577BRnAzs','aborted','enableHttpDNS','abort','GET','PUT','enableHttp2','emit','PATCH','tempFilePath','method','request','<no\x20response\x20body>','enableCache','2913520jnECEA','parse','timeout','catch','join','get','onSuccess','AbortError','onHeadersReceived','options','flatMap','5791230YdxtGW','onProgressUpdate','call','forceCellularNetwork','onResponseError','7icnivw','fail','The\x20operation\x20was\x20aborted','sslVerify','firstIpv4','enableChunked','signal','arrayBuffer','header','headers','enableQuic','HTTP\x20request\x20failed','files','assign','response','3415482FkINWx','3390584UXNTLt','json','responseType','retryStatusCodes','entries','onabort','reason','dataType','5OlwxGZ','file','replace','onRequestError','toUpperCase','download','arraybuffer','text','POST','statusCode','keys','query','<no\x20response>','slice','name','fileType','onResponse','ignoreResponseError','createHttp','1717194dWHZaR','stringify','parseResponse'];_0x38cf=function(){return _0x187763;};return _0x38cf();}_0x227556['enumerable']=!![],_0x227556['get']=function(){return createHttpAborter;},Object[_0x2a89f2(0x204)](exports,'createHttpAborter',_0x227556);const _0x5ab8c3={};_0x5ab8c3['enumerable']=!![],_0x5ab8c3['get']=function(){return http;},Object[_0x2a89f2(0x204)](exports,'http',_0x5ab8c3);