@oiyo/framework 0.4.0-beta.2 → 0.4.0-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{index-DCAh9vr9.d.cts → index-5kdIt9Pt.d.cts} +1 -1
- package/dist/{index-DCAh9vr9.d.mts → index-5kdIt9Pt.d.mts} +1 -1
- package/dist/index.cjs +3 -3
- package/dist/index.d.cts +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +3 -3
- package/dist/oiyo-BGCwnpnq.mjs +7 -0
- package/dist/oiyo-Bk99mH2t.cjs +7 -0
- package/dist/oiyo.cjs +2 -2
- package/dist/oiyo.d.cts +2 -2
- package/dist/oiyo.d.mts +2 -2
- package/dist/oiyo.mjs +2 -2
- package/dist/{chunk-BnILMwZG.cjs → rolldown-runtime-BU7qlqHq.cjs} +1 -1
- package/dist/{chunk-Bcqm9nz_.mjs → rolldown-runtime-C4TXImMl.mjs} +1 -1
- package/dist/uni.cjs +2 -2
- package/dist/uni.d.cts +1 -1
- package/dist/uni.d.mts +1 -1
- package/dist/uni.mjs +2 -2
- package/dist/vue.cjs +2 -2
- package/dist/vue.d.cts +1 -1
- package/dist/vue.d.mts +1 -1
- package/dist/vue.mjs +2 -2
- package/package.json +1 -1
- package/dist/oiyo-CUWG-Hhg.mjs +0 -7
- package/dist/oiyo-CZ64L3f6.cjs +0 -7
package/dist/index.cjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @oiyo/framework v0.4.0-beta.
|
|
2
|
+
* @oiyo/framework v0.4.0-beta.4
|
|
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
|
-
require("./
|
|
9
|
-
const require_oiyo = require("./oiyo-
|
|
8
|
+
require("./rolldown-runtime-BU7qlqHq.cjs");
|
|
9
|
+
const require_oiyo = require("./oiyo-Bk99mH2t.cjs");
|
|
10
10
|
require("./uni.cjs");
|
|
11
11
|
require("./vue.cjs");
|
|
12
12
|
//#endregion
|
package/dist/index.d.cts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @oiyo/framework v0.4.0-beta.
|
|
2
|
+
* @oiyo/framework v0.4.0-beta.4
|
|
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 HttpDownloadOptions, d as ResponseBodyType, f as createHttpAborter, i as HttpError, l as HttpRequestOptions, n as http, o as HttpRequestResponse, r as HttpConfig, s as HttpUploadResponse, t as createHttp, u as HttpUploadOptions } from "./index-
|
|
7
|
+
import { a as HttpDownloadResponse, c as HttpDownloadOptions, d as ResponseBodyType, f as createHttpAborter, i as HttpError, l as HttpRequestOptions, n as http, o as HttpRequestResponse, r as HttpConfig, s as HttpUploadResponse, t as createHttp, u as HttpUploadOptions } from "./index-5kdIt9Pt.cjs";
|
|
8
8
|
export * from "@dcloudio/uni-app";
|
|
9
9
|
export * from "vue";
|
|
10
10
|
|
package/dist/index.d.mts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @oiyo/framework v0.4.0-beta.
|
|
2
|
+
* @oiyo/framework v0.4.0-beta.4
|
|
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 HttpDownloadOptions, d as ResponseBodyType, f as createHttpAborter, i as HttpError, l as HttpRequestOptions, n as http, o as HttpRequestResponse, r as HttpConfig, s as HttpUploadResponse, t as createHttp, u as HttpUploadOptions } from "./index-
|
|
7
|
+
import { a as HttpDownloadResponse, c as HttpDownloadOptions, d as ResponseBodyType, f as createHttpAborter, i as HttpError, l as HttpRequestOptions, n as http, o as HttpRequestResponse, r as HttpConfig, s as HttpUploadResponse, t as createHttp, u as HttpUploadOptions } from "./index-5kdIt9Pt.mjs";
|
|
8
8
|
export * from "@dcloudio/uni-app";
|
|
9
9
|
export * from "vue";
|
|
10
10
|
|
package/dist/index.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @oiyo/framework v0.4.0-beta.
|
|
2
|
+
* @oiyo/framework v0.4.0-beta.4
|
|
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 "./
|
|
8
|
-
import { n as http, r as createHttpAborter, t as createHttp } from "./oiyo-
|
|
7
|
+
import "./rolldown-runtime-C4TXImMl.mjs";
|
|
8
|
+
import { n as http, r as createHttpAborter, t as createHttp } from "./oiyo-BGCwnpnq.mjs";
|
|
9
9
|
import "./uni.mjs";
|
|
10
10
|
import "./vue.mjs";
|
|
11
11
|
export * from "@dcloudio/uni-app";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @oiyo/framework v0.4.0-beta.4
|
|
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 _0x5f16bb=_0x58fd;(function(_0x432d1b,_0x354ba7){const _0x4f5b5c=_0x58fd,_0x5a3f5c=_0x432d1b();while(!![]){try{const _0x45abc3=parseInt(_0x4f5b5c(0xf2))/0x1+parseInt(_0x4f5b5c(0xed))/0x2*(parseInt(_0x4f5b5c(0x104))/0x3)+parseInt(_0x4f5b5c(0xd4))/0x4+parseInt(_0x4f5b5c(0xbd))/0x5*(-parseInt(_0x4f5b5c(0xcb))/0x6)+-parseInt(_0x4f5b5c(0xde))/0x7+parseInt(_0x4f5b5c(0xd5))/0x8*(parseInt(_0x4f5b5c(0xfa))/0x9)+-parseInt(_0x4f5b5c(0xd8))/0xa*(-parseInt(_0x4f5b5c(0xec))/0xb);if(_0x45abc3===_0x354ba7)break;else _0x5a3f5c['push'](_0x5a3f5c['shift']());}catch(_0x317011){_0x5a3f5c['push'](_0x5a3f5c['shift']());}}}(_0x2ec7,0xc0f33));function createHttpAborter(){const _0x421071=new HttpAbortSignal();return{'signal':_0x421071,'abort':_0x589e1c=>_0x421071['_abort'](_0x589e1c)};}const ABORT_ERROR_NAME='AbortError';var AbortEmitter=class{[_0x5f16bb(0xd3)]=[];[_0x5f16bb(0xc5)](_0x1ba258,_0x5d7614){const _0x11d90b=_0x5f16bb;if(_0x1ba258!=='abort')return;this[_0x11d90b(0xd3)]['push'](_0x5d7614);}['removeEventListener'](_0x52489c,_0x573816){const _0x2ddd5e=_0x5f16bb;if(_0x52489c!==_0x2ddd5e(0xc6))return;const _0x2f0795=this['listeners']['indexOf'](_0x573816);if(_0x2f0795!==-0x1)this[_0x2ddd5e(0xd3)]['splice'](_0x2f0795,0x1);}[_0x5f16bb(0xfc)](_0x522b38){for(const _0x2dcf2f of this['listeners']['slice']())_0x2dcf2f['call'](this,_0x522b38);}},HttpAbortSignal=class extends AbortEmitter{[_0x5f16bb(0xd1)]=![];['reason']=void 0x0;['onabort']=null;[_0x5f16bb(0xc9)](_0x283a0){const _0xfe0b8=_0x5f16bb;if(this['aborted'])return;this[_0xfe0b8(0xd1)]=!![],this['reason']=_0x283a0===void 0x0?createAbortError():_0x283a0;const _0x244c78={};_0x244c78['type']='abort';const _0x36b9a9=_0x244c78;if(typeof this[_0xfe0b8(0xea)]==='function')this['onabort'](_0x36b9a9);this['emit'](_0x36b9a9);}[_0x5f16bb(0xf7)](){if(this['aborted'])throw this['reason'];}};function createAbortError(_0x368035='The\x20operation\x20was\x20aborted'){const _0x2d70da=new Error(_0x368035);return _0x2d70da['name']=ABORT_ERROR_NAME,_0x2d70da;}function isAbortError(_0x52ebea){const _0xb51ec0=_0x5f16bb;return _0x52ebea instanceof Error&&_0x52ebea[_0xb51ec0(0xf0)]===ABORT_ERROR_NAME;}function onAbort(_0x22ef8b,_0x26bd1c){const _0x248d4b=_0x5f16bb;if(!_0x22ef8b)return()=>{};if(_0x22ef8b[_0x248d4b(0xd1)])return _0x26bd1c(),()=>{};return _0x22ef8b['addEventListener']('abort',_0x26bd1c),()=>_0x22ef8b['removeEventListener'](_0x248d4b(0xc6),_0x26bd1c);}const HOOK_NAMES=['onRequest','onRequestError','onResponse','onResponseError'];function mergeOptions(..._0x5d7f77){const _0x337b1a=_0x5f16bb,_0x46ca81={},_0x1d8841={};for(const _0x488233 of _0x5d7f77){if(!_0x488233)continue;for(const _0x47a241 of HOOK_NAMES)collectHook(_0x1d8841,_0x47a241,_0x488233);const _0x4af1ec=_0x46ca81[_0x337b1a(0xe9)],_0x1157c8=_0x46ca81[_0x337b1a(0xee)];Object[_0x337b1a(0xe6)](_0x46ca81,_0x488233);const _0x587413={..._0x4af1ec,..._0x488233['headers']};_0x46ca81[_0x337b1a(0xe9)]=_0x587413;const _0x50bc32={..._0x1157c8,..._0x488233[_0x337b1a(0xee)]};_0x46ca81['query']=_0x50bc32;}for(const [_0x105ec8,_0x483624]of Object['entries'](_0x1d8841))Object[_0x337b1a(0xe6)](_0x46ca81,{[_0x105ec8]:async _0x3ec4ad=>{for(const _0x4579a8 of _0x483624)await _0x4579a8(_0x3ec4ad);}});return _0x46ca81;}function collectHook(_0x5d2d02,_0x2faf9f,_0x33d233){const _0x1e83bf=_0x33d233[_0x2faf9f];if(typeof _0x1e83bf!=='function')return;_0x5d2d02[_0x2faf9f]??=[],_0x5d2d02[_0x2faf9f]['push'](_0x1e83bf);}function dispatch(_0x4ebd4d,_0x22016e,_0x5f5c99,_0x4a3eba){const _0x6dcc9a=_0x5f16bb;let _0x492775;if(_0x4ebd4d===_0x6dcc9a(0xc7))_0x492775=dispatchUpload(_0x22016e,_0x5f5c99,_0x4a3eba);else{if(_0x4ebd4d==='download')_0x492775=dispatchDownload(_0x22016e,_0x5f5c99,_0x4a3eba);else _0x492775=dispatchRequest(_0x22016e,_0x5f5c99,_0x4a3eba);}bindTask(_0x492775,_0x5f5c99);}function bindTask(_0x249ea6,_0x2ab371){const _0x56caa9=_0x5f16bb;onAbort(_0x2ab371[_0x56caa9(0xe1)],()=>_0x249ea6['abort']());if(typeof _0x2ab371[_0x56caa9(0xcd)]==='function')_0x249ea6['onHeadersReceived'](_0x2ab371['onHeadersReceived']);const _0x1497e6=_0x2ab371['onProgress'];if(typeof _0x1497e6===_0x56caa9(0xe7)&&_0x56caa9(0xdd)in _0x249ea6)_0x249ea6['onProgressUpdate'](_0x1497e6);}function dispatchRequest(_0x13a22f,_0x500499,_0x19b825){const _0x149872=_0x5f16bb,_0x56dd7c={'url':_0x13a22f,'method':_0x500499['method'],'header':_0x500499[_0x149872(0xe9)],'data':_0x500499[_0x149872(0xda)]??{},'timeout':_0x500499[_0x149872(0xe4)],'dataType':_0x500499[_0x149872(0xc3)]||_0x149872(0xcc),'responseType':mappedResponseBodyType(_0x500499['responseType']),'sslVerify':_0x500499['sslVerify'],'withCredentials':_0x500499[_0x149872(0xc2)],'firstIpv4':_0x500499['firstIpv4'],'enableHttp2':_0x500499['enableHttp2'],'enableQuic':_0x500499['enableQuic'],'enableCache':_0x500499['enableCache'],'enableHttpDNS':_0x500499['enableHttpDNS'],'httpDNSServiceId':_0x500499['httpDNSServiceId'],'enableChunked':_0x500499['enableChunked'],'forceCellularNetwork':_0x500499['forceCellularNetwork'],'success':_0x19b825['onSuccess'],'fail':_0x19b825[_0x149872(0xf4)],'complete':()=>{}};return uni['request'](_0x56dd7c);}function dispatchUpload(_0x59b7d6,_0x22ef0f,_0x59a574){const _0x95adce=_0x5f16bb,_0x45a804={};_0x45a804[_0x95adce(0xf3)]=_0x59b7d6,_0x45a804['fileType']=_0x22ef0f['fileType'],_0x45a804[_0x95adce(0xf9)]=_0x22ef0f[_0x95adce(0xf9)],_0x45a804[_0x95adce(0xd7)]=_0x22ef0f['filePath'],_0x45a804['name']=_0x22ef0f[_0x95adce(0xf0)]??'file',_0x45a804['files']=_0x22ef0f[_0x95adce(0xc0)],_0x45a804[_0x95adce(0xd6)]=_0x22ef0f[_0x95adce(0xe9)],_0x45a804['formData']=_0x22ef0f[_0x95adce(0xda)]??{},_0x45a804['timeout']=_0x22ef0f[_0x95adce(0xe4)],_0x45a804[_0x95adce(0xd0)]=_0x59a574[_0x95adce(0xfe)],_0x45a804['fail']=_0x59a574['onFail'],_0x45a804['complete']=()=>{};const _0x5735d0=_0x45a804;return uni[_0x95adce(0xf8)](_0x5735d0);}function dispatchDownload(_0x728de1,_0x51c910,_0x4c89ec){const _0x118f3c=_0x5f16bb,_0x9cbb39={'url':_0x728de1,'header':_0x51c910['headers'],'timeout':_0x51c910[_0x118f3c(0xe4)],'success':_0x1081c6=>{const _0x91db83=_0x118f3c,_0x4138f2={..._0x1081c6};_0x4138f2[_0x91db83(0xff)]={},_0x4138f2[_0x91db83(0xff)][_0x91db83(0x102)]=_0x1081c6[_0x91db83(0x102)],_0x4c89ec[_0x91db83(0xfe)](_0x4138f2);},'fail':_0x4c89ec['onFail'],'complete':()=>{}};return uni[_0x118f3c(0xcf)](_0x9cbb39);}function mappedResponseBodyType(_0x4eca7b){const _0x354f05=_0x5f16bb;if(!_0x4eca7b||_0x4eca7b===_0x354f05(0xcc))return _0x354f05(0xba);if(_0x4eca7b==='arrayBuffer')return'arraybuffer';return _0x354f05(0xba);}var HttpError=class extends Error{constructor(_0x1b3d94){const _0x35fee9=_0x5f16bb;super(_0x1b3d94),this[_0x35fee9(0xf0)]=_0x35fee9(0xbb);}};function createResponseError(_0x296c38,_0x13b10f,_0x5cf258){const _0x5a1877=_0x5f16bb,_0x214086=_0x296c38,_0x4dc265='['+(_0x13b10f?.[_0x5a1877(0xc1)]||_0x5a1877(0xbe))+']\x20'+_0x214086,_0x33c23c=_0x5cf258?_0x5cf258['statusCode']+'\x20'+(_0x5cf258['errMsg']||''):_0x5a1877(0xe0),_0x5d6f19=_0x5cf258?JSON['stringify'](_0x5cf258['data']):_0x5a1877(0xef),_0x1a491c=new HttpError(_0x4dc265+':\x20'+_0x33c23c+(_0x5cf258[_0x5a1877(0xff)]?'\x20'+_0x5d6f19:''));for(const _0x5b1948 of['request','options',_0x5a1877(0xdc),'data'])Object['defineProperty'](_0x1a491c,_0x5b1948,{'get'(){const _0x57c2ef=_0x5a1877,_0x1603a6={};return _0x1603a6['request']=_0x296c38,_0x1603a6['options']=_0x13b10f,_0x1603a6['response']=_0x5cf258,_0x1603a6[_0x57c2ef(0xff)]=_0x5cf258['data'],_0x1603a6[_0x5b1948];}});return _0x1a491c;}function normalizeError(_0x5a15b3){const _0x554bab=_0x5f16bb;if(_0x5a15b3 instanceof Error)return _0x5a15b3;return Object['assign'](new Error(_0x5a15b3?.['errMsg']||_0x5a15b3?.[_0x554bab(0xfd)]||'HTTP\x20request\x20failed'),{'cause':_0x5a15b3});}async function callRequestHooks(_0x2ce964,_0x203ef1){const _0x24cb24=_0x5f16bb;await _0x203ef1[_0x24cb24(0x100)]?.({'options':_0x203ef1,'resource':_0x2ce964});}async function callRequestErrorHooks(_0x4ed394,_0x37ae9e,_0x74ca3f){const _0x3a2bbd=_0x5f16bb;await _0x37ae9e[_0x3a2bbd(0xbf)]?.({'options':_0x37ae9e,'resource':_0x4ed394,'error':_0x74ca3f});}async function callResponseHooks(_0x5b1ee8,_0x3e7890,_0x24ad29){const _0x31db9d=_0x5f16bb;await _0x3e7890[_0x31db9d(0xdb)]?.({'options':_0x3e7890,'resource':_0x5b1ee8,'response':_0x24ad29});}async function callResponseErrorHooks(_0x530ba1,_0x495402,_0x5de876){const _0x3339f2=_0x5f16bb;await _0x495402[_0x3339f2(0xeb)]?.({'options':_0x495402,'resource':_0x530ba1,'response':_0x5de876});}async function refineResponse(_0x2a15a8,_0x37e684){const _0x117c39=_0x5f16bb;if(_0x37e684[_0x117c39(0xd9)]==='json'||!_0x37e684['responseType'])return{..._0x2a15a8,'data':await parseJSONResponse(_0x2a15a8[_0x117c39(0xff)],_0x37e684)};return _0x2a15a8;}function parseJSONResponse(_0x4a53ab,_0x4f5fac){const _0x34164c=_0x5f16bb;if(typeof _0x4a53ab!==_0x34164c(0xe5))return _0x4a53ab;if(_0x4f5fac[_0x34164c(0xe2)])return _0x4f5fac[_0x34164c(0xe2)](_0x4a53ab);return _0x4a53ab?JSON['parse'](_0x4a53ab):null;}function isResponseError(_0x2e9e6a){const _0x262f81=_0x5f16bb,_0x32d37c=_0x262f81(0x103)in _0x2e9e6a?_0x2e9e6a['statusCode']:void 0x0;return typeof _0x32d37c==='number'&&(_0x32d37c<0xc8||_0x32d37c>=0x12c);}const DEFAULT_RETRY_STATUS_CODES=[0x198,0x199,0x1a9,0x1ad,0x1f4,0x1f6,0x1f7,0x1f8],PAYLOAD_METHODS=new Set(['POST',_0x5f16bb(0xd2),_0x5f16bb(0xf1),_0x5f16bb(0xce)]);async function withRetry(_0x25fe52,_0xb401ee){const _0x3b686e=_0x5f16bb,_0x1d28c9=resolveRetryCount(_0x25fe52);for(let _0x496e09=0x0;;_0x496e09++)try{return await _0xb401ee();}catch(_0x3f0091){if(_0x496e09>=_0x1d28c9||!shouldRetry(_0x3f0091,_0x25fe52))throw _0x3f0091;await sleep(_0x25fe52['retryDelay']??0x0,_0x25fe52[_0x3b686e(0xe1)]);}}function resolveRetryCount(_0x5561a0){const _0x2281d5=_0x5f16bb,{retry:_0x49bc72}=_0x5561a0;if(_0x49bc72===![])return 0x0;if(typeof _0x49bc72===_0x2281d5(0xc4))return _0x49bc72>0x0?_0x49bc72:0x0;return isPayloadMethod(_0x5561a0[_0x2281d5(0xc1)])?0x0:0x1;}function shouldRetry(_0x10534a,_0x357d78){const _0xeed176=_0x5f16bb;if(_0x357d78[_0xeed176(0xe1)]?.[_0xeed176(0xd1)]||isAbortError(_0x10534a))return![];const _0x49ce1d=_0x10534a?.[_0xeed176(0xdc)]?.['statusCode'];if(typeof _0x49ce1d!=='number')return!![];return(_0x357d78['retryStatusCodes']??DEFAULT_RETRY_STATUS_CODES)['includes'](_0x49ce1d);}function isPayloadMethod(_0x39fed3){return!!_0x39fed3&&PAYLOAD_METHODS['has'](_0x39fed3['toUpperCase']());}function sleep(_0x2d4996,_0x45054e){return new Promise((_0x363d0f,_0x2bc051)=>{if(_0x45054e?.['aborted']){_0x2bc051(_0x45054e['reason']);return;}if(!(_0x2d4996>0x0)){_0x363d0f();return;}let _0x49f35a=()=>{};const _0x3703b1=setTimeout(()=>{_0x49f35a(),_0x363d0f();},_0x2d4996);_0x49f35a=onAbort(_0x45054e,()=>{const _0x1d12b1=_0x58fd;clearTimeout(_0x3703b1),_0x2bc051(_0x45054e[_0x1d12b1(0xf5)]);});});}function buildURL(_0x454d7c,_0x407a44){const _0x52be54=_0x5f16bb,_0x111d3f=joinURL(_0x407a44['baseURL'],_0x454d7c),_0x366e57=_0x407a44[_0x52be54(0xee)]??{},_0x4714ff=Object['keys'](_0x366e57)['filter'](_0x49cb4d=>_0x366e57[_0x49cb4d]!==void 0x0)['flatMap'](_0x358e60=>{const _0x77a42a=_0x52be54,_0x39f0b6=_0x366e57[_0x358e60];return(Array['isArray'](_0x39f0b6)?_0x39f0b6:[_0x39f0b6])[_0x77a42a(0x101)](_0x190321=>encodeURIComponent(_0x358e60)+'='+encodeURIComponent(String(_0x190321)));})[_0x52be54(0xbc)]('&');if(!_0x4714ff)return _0x111d3f;return''+_0x111d3f+(_0x111d3f['includes']('?')?'&':'?')+_0x4714ff;}function joinURL(_0x4bd75f,_0x3d2bb3){const _0x165134=_0x5f16bb;if(!_0x4bd75f||isAbsoluteURL(_0x3d2bb3))return _0x3d2bb3;return _0x4bd75f[_0x165134(0x105)](/\/+$/,'')+'/'+_0x3d2bb3[_0x165134(0x105)](/^\/+/,'');}function isAbsoluteURL(_0x2fd3e9){const _0x53ccaa=_0x5f16bb;return/^[a-z][a-z\d+\-.]*:\/\//i[_0x53ccaa(0xfb)](_0x2fd3e9)||_0x2fd3e9['startsWith']('//');}function dispatchHttp(_0x839ebc,_0x101cdf,_0x575256){const _0x987592=buildURL(_0x101cdf,_0x575256);return withRetry(_0x575256,()=>attemptRequest(_0x839ebc,_0x101cdf,_0x987592,_0x575256));}function attemptRequest(_0x3936a8,_0x441b44,_0x3ab946,_0x5aa87e){const _0xb450bc=_0x5f16bb,_0x4437ac=!!_0x5aa87e[_0xb450bc(0xca)];return new Promise((_0xa98d40,_0x31aa57)=>{const _0x36140a=_0xb450bc;let _0x44729a=![];const _0x50ea0e=_0x1b76d3=>{if(_0x44729a)return;_0x44729a=!![],_0x1b76d3();},_0x3f2d85=onAbort(_0x5aa87e[_0x36140a(0xe1)],()=>{const _0x5cbb54=_0x36140a;_0x50ea0e(()=>_0x31aa57(_0x5aa87e[_0x5cbb54(0xe1)]['reason']));}),_0xb04ca7=_0x341a38=>{_0x3f2d85(),_0x50ea0e(_0x341a38);};callRequestHooks(_0x441b44,_0x5aa87e)['then'](()=>{if(_0x44729a)return;dispatch(_0x3936a8,_0x3ab946,_0x5aa87e,{'onSuccess':_0x1923a3=>{Promise['resolve']()['then'](()=>refineResponse(_0x1923a3,_0x5aa87e))['then'](async _0x19b989=>{if(isResponseError(_0x1923a3)){await callResponseErrorHooks(_0x441b44,_0x5aa87e,_0x19b989);if(!_0x5aa87e['ignoreResponseError'])throw createResponseError(_0x441b44,_0x5aa87e,_0x19b989);}else await callResponseHooks(_0x441b44,_0x5aa87e,_0x19b989);_0xb04ca7(()=>_0xa98d40(_0x4437ac?_0x19b989:_0x19b989['data']));})['catch'](_0x2dfe35=>_0xb04ca7(()=>_0x31aa57(_0x2dfe35)));},'onFail':_0x2eb8b0=>{const _0x8cbe00=_0x58fd;Promise[_0x8cbe00(0xe3)]()['then'](async()=>{const _0x1c039f=normalizeError(_0x2eb8b0);if(!isAbortError(_0x1c039f))await callRequestErrorHooks(_0x441b44,_0x5aa87e,_0x1c039f);throw _0x1c039f;})['catch'](_0x2668d2=>_0xb04ca7(()=>_0x31aa57(_0x2668d2)));}});})['catch'](async _0x32dc60=>{const _0x30bc3b=normalizeError(_0x32dc60);await callRequestErrorHooks(_0x441b44,_0x5aa87e,_0x30bc3b),_0xb04ca7(()=>_0x31aa57(_0x30bc3b));});});}const _0x16428d={};_0x16428d['method']=_0x5f16bb(0xbe),_0x16428d['responseType']=_0x5f16bb(0xcc);function _0x58fd(_0x580f99,_0x2c01a5){_0x580f99=_0x580f99-0xba;const _0x2ec763=_0x2ec7();let _0x58fdf7=_0x2ec763[_0x580f99];return _0x58fdf7;}function _0x2ec7(){const _0x2f2c76=['uploadFile','file','207ruWaqb','test','emit','message','onSuccess','data','onRequest','map','tempFilePath','statusCode','36sKcFva','replace','text','HttpError','join','6556255edxHwG','GET','onRequestError','files','method','withCredentials','dataType','number','addEventListener','abort','upload','POST','_abort','raw','6lxXGwL','json','onHeadersReceived','PATCH','downloadFile','success','aborted','PUT','listeners','5302396PFsLnZ','2712ddlwUY','header','filePath','220kLtISE','responseType','body','onResponse','response','onProgressUpdate','5802328InleCZ','request','<no\x20response>','signal','parseResponse','resolve','timeout','string','assign','function','create','headers','onabort','onResponseError','267278XbIjjG','69382HGpvRP','query','<no\x20response\x20body>','name','DELETE','646234oCiZlX','url','onFail','reason','download','throwIfAborted'];_0x2ec7=function(){return _0x2f2c76;};return _0x2ec7();}const defaultConfig=_0x16428d;function createHttp(_0x535440={}){const _0x34fe15=_0x5f16bb,_0x1d30a4=(_0x2f95f1,_0x3f7b8c)=>{const _0xd28ba4=_0x58fd;return dispatchHttp(_0xd28ba4(0xdf),_0x2f95f1,mergeOptions(defaultConfig,_0x535440,_0x3f7b8c));},_0x2a9de5=(_0x289158,_0x2a9994)=>{const _0x3ea28b=_0x58fd,_0x11dbff={};return _0x11dbff[_0x3ea28b(0xc1)]=_0x3ea28b(0xc8),dispatchHttp(_0x3ea28b(0xc7),_0x289158,mergeOptions(defaultConfig,_0x535440,_0x2a9994,_0x11dbff));},_0x8fc065=(_0x356233,_0x388108)=>{const _0x3d9cf5=_0x58fd,_0x454f16={};return _0x454f16['method']=_0x3d9cf5(0xbe),dispatchHttp(_0x3d9cf5(0xf6),_0x356233,mergeOptions(defaultConfig,_0x535440,_0x388108,_0x454f16));},_0x5b286=_0x183b0a=>createHttp(mergeOptions(_0x535440,_0x183b0a)),_0xe73817={};return _0xe73817['request']=_0x1d30a4,_0xe73817['upload']=_0x2a9de5,_0xe73817['download']=_0x8fc065,_0xe73817[_0x34fe15(0xe8)]=_0x5b286,_0xe73817;}const http=createHttp();export{http as n,createHttpAborter as r,createHttp as t};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @oiyo/framework v0.4.0-beta.4
|
|
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 _0x4fba51=_0x13fd;(function(_0x121627,_0x5c4e87){const _0x1bad9e=_0x13fd,_0x3cbb18=_0x121627();while(!![]){try{const _0x3300f7=parseInt(_0x1bad9e(0x1f6))/0x1+-parseInt(_0x1bad9e(0x23c))/0x2*(parseInt(_0x1bad9e(0x210))/0x3)+-parseInt(_0x1bad9e(0x23e))/0x4+-parseInt(_0x1bad9e(0x232))/0x5*(parseInt(_0x1bad9e(0x20a))/0x6)+-parseInt(_0x1bad9e(0x21e))/0x7+-parseInt(_0x1bad9e(0x23d))/0x8+parseInt(_0x1bad9e(0x213))/0x9;if(_0x3300f7===_0x5c4e87)break;else _0x3cbb18['push'](_0x3cbb18['shift']());}catch(_0x3d4709){_0x3cbb18['push'](_0x3cbb18['shift']());}}}(_0x2230,0xec852));function createHttpAborter(){const _0x2adf00=new HttpAbortSignal();return{'signal':_0x2adf00,'abort':_0x131b6b=>_0x2adf00['_abort'](_0x131b6b)};}const ABORT_ERROR_NAME='AbortError';var AbortEmitter=class{['listeners']=[];['addEventListener'](_0x2f0680,_0x5c853e){if(_0x2f0680!=='abort')return;this['listeners']['push'](_0x5c853e);}[_0x4fba51(0x219)](_0x41508e,_0xfaffe3){const _0x4a4e76=_0x4fba51;if(_0x41508e!==_0x4a4e76(0x22f))return;const _0x26e7cf=this[_0x4a4e76(0x202)][_0x4a4e76(0x205)](_0xfaffe3);if(_0x26e7cf!==-0x1)this[_0x4a4e76(0x202)]['splice'](_0x26e7cf,0x1);}[_0x4fba51(0x242)](_0x1db2f5){const _0x515fb1=_0x4fba51;for(const _0x320119 of this[_0x515fb1(0x202)][_0x515fb1(0x225)]())_0x320119[_0x515fb1(0x222)](this,_0x1db2f5);}},HttpAbortSignal=class extends AbortEmitter{[_0x4fba51(0x226)]=![];['reason']=void 0x0;[_0x4fba51(0x20b)]=null;['_abort'](_0x1da01c){const _0x4dc615=_0x4fba51;if(this[_0x4dc615(0x226)])return;this['aborted']=!![],this[_0x4dc615(0x236)]=_0x1da01c===void 0x0?createAbortError():_0x1da01c;const _0x58bdb0={};_0x58bdb0['type']=_0x4dc615(0x22f);const _0x147217=_0x58bdb0;if(typeof this[_0x4dc615(0x20b)]===_0x4dc615(0x20c))this[_0x4dc615(0x20b)](_0x147217);this[_0x4dc615(0x242)](_0x147217);}['throwIfAborted'](){const _0xb757f2=_0x4fba51;if(this[_0xb757f2(0x226)])throw this['reason'];}};function createAbortError(_0x14df8d='The\x20operation\x20was\x20aborted'){const _0x4080c6=_0x4fba51,_0xfdcacf=new Error(_0x14df8d);return _0xfdcacf[_0x4080c6(0x233)]=ABORT_ERROR_NAME,_0xfdcacf;}function isAbortError(_0x4444f4){const _0x256ed0=_0x4fba51;return _0x4444f4 instanceof Error&&_0x4444f4[_0x256ed0(0x233)]===ABORT_ERROR_NAME;}function onAbort(_0x52b469,_0x21aa11){const _0x45bced=_0x4fba51;if(!_0x52b469)return()=>{};if(_0x52b469[_0x45bced(0x226)])return _0x21aa11(),()=>{};return _0x52b469['addEventListener'](_0x45bced(0x22f),_0x21aa11),()=>_0x52b469[_0x45bced(0x219)]('abort',_0x21aa11);}const HOOK_NAMES=['onRequest',_0x4fba51(0x1ef),'onResponse',_0x4fba51(0x22b)];function mergeOptions(..._0x2918e7){const _0xaa7149=_0x4fba51,_0x472caa={},_0x1f6497={};for(const _0x18b625 of _0x2918e7){if(!_0x18b625)continue;for(const _0x18ac57 of HOOK_NAMES)collectHook(_0x1f6497,_0x18ac57,_0x18b625);const _0x2d214b=_0x472caa[_0xaa7149(0x240)],_0x200f47=_0x472caa['query'];Object['assign'](_0x472caa,_0x18b625);const _0x1e7f17={..._0x2d214b,..._0x18b625['headers']};_0x472caa['headers']=_0x1e7f17;const _0x3a3b80={..._0x200f47,..._0x18b625[_0xaa7149(0x214)]};_0x472caa['query']=_0x3a3b80;}for(const [_0x3b8282,_0x5bd359]of Object[_0xaa7149(0x1f8)](_0x1f6497))Object['assign'](_0x472caa,{[_0x3b8282]:async _0x462fc2=>{for(const _0x4033e6 of _0x5bd359)await _0x4033e6(_0x462fc2);}});return _0x472caa;}function collectHook(_0x326173,_0x4c65db,_0x4ee633){const _0x41fddf=_0x4fba51,_0x4ee0b0=_0x4ee633[_0x4c65db];if(typeof _0x4ee0b0!==_0x41fddf(0x20c))return;_0x326173[_0x4c65db]??=[],_0x326173[_0x4c65db]['push'](_0x4ee0b0);}function dispatch(_0x5f44ff,_0x50e0b9,_0x20f28a,_0x4283fa){const _0x278e4b=_0x4fba51;let _0x46b6a5;if(_0x5f44ff==='upload')_0x46b6a5=dispatchUpload(_0x50e0b9,_0x20f28a,_0x4283fa);else{if(_0x5f44ff===_0x278e4b(0x243))_0x46b6a5=dispatchDownload(_0x50e0b9,_0x20f28a,_0x4283fa);else _0x46b6a5=dispatchRequest(_0x50e0b9,_0x20f28a,_0x4283fa);}bindTask(_0x46b6a5,_0x20f28a);}function bindTask(_0x4d0e68,_0x4143fb){const _0x6a93c7=_0x4fba51;onAbort(_0x4143fb[_0x6a93c7(0x208)],()=>_0x4d0e68['abort']());if(typeof _0x4143fb['onHeadersReceived']===_0x6a93c7(0x20c))_0x4d0e68['onHeadersReceived'](_0x4143fb[_0x6a93c7(0x20e)]);const _0x5352dd=_0x4143fb[_0x6a93c7(0x1f2)];if(typeof _0x5352dd==='function'&&_0x6a93c7(0x1fa)in _0x4d0e68)_0x4d0e68['onProgressUpdate'](_0x5352dd);}function dispatchRequest(_0x3dacc1,_0x30ea27,_0x57e27f){const _0x1502bb=_0x4fba51,_0x5213f1={'url':_0x3dacc1,'method':_0x30ea27['method'],'header':_0x30ea27[_0x1502bb(0x240)],'data':_0x30ea27[_0x1502bb(0x212)]??{},'timeout':_0x30ea27[_0x1502bb(0x238)],'dataType':_0x30ea27['dataType']||'json','responseType':mappedResponseBodyType(_0x30ea27[_0x1502bb(0x206)]),'sslVerify':_0x30ea27[_0x1502bb(0x244)],'withCredentials':_0x30ea27[_0x1502bb(0x1fe)],'firstIpv4':_0x30ea27[_0x1502bb(0x1f7)],'enableHttp2':_0x30ea27[_0x1502bb(0x1ee)],'enableQuic':_0x30ea27['enableQuic'],'enableCache':_0x30ea27[_0x1502bb(0x1f3)],'enableHttpDNS':_0x30ea27[_0x1502bb(0x1f9)],'httpDNSServiceId':_0x30ea27[_0x1502bb(0x230)],'enableChunked':_0x30ea27['enableChunked'],'forceCellularNetwork':_0x30ea27['forceCellularNetwork'],'success':_0x57e27f['onSuccess'],'fail':_0x57e27f['onFail'],'complete':()=>{}};return uni[_0x1502bb(0x1fb)](_0x5213f1);}function dispatchUpload(_0x2af804,_0x245f22,_0x11725f){const _0x416d8f=_0x4fba51,_0x4fd5a6={};_0x4fd5a6[_0x416d8f(0x201)]=_0x2af804,_0x4fd5a6['fileType']=_0x245f22[_0x416d8f(0x227)],_0x4fd5a6['file']=_0x245f22[_0x416d8f(0x203)],_0x4fd5a6[_0x416d8f(0x21b)]=_0x245f22[_0x416d8f(0x21b)],_0x4fd5a6[_0x416d8f(0x233)]=_0x245f22[_0x416d8f(0x233)]??'file',_0x4fd5a6['files']=_0x245f22['files'],_0x4fd5a6[_0x416d8f(0x22d)]=_0x245f22[_0x416d8f(0x240)],_0x4fd5a6['formData']=_0x245f22[_0x416d8f(0x212)]??{},_0x4fd5a6['timeout']=_0x245f22[_0x416d8f(0x238)],_0x4fd5a6['success']=_0x11725f['onSuccess'],_0x4fd5a6['fail']=_0x11725f[_0x416d8f(0x204)],_0x4fd5a6['complete']=()=>{};const _0x3bf949=_0x4fd5a6;return uni[_0x416d8f(0x221)](_0x3bf949);}function dispatchDownload(_0xdc869,_0x57e5a1,_0x3e9c3a){const _0x36e81f=_0x4fba51,_0x3c24d7={'url':_0xdc869,'header':_0x57e5a1[_0x36e81f(0x240)],'timeout':_0x57e5a1[_0x36e81f(0x238)],'success':_0x3c0dd5=>{const _0x2fabfc=_0x36e81f,_0x30d3b7={..._0x3c0dd5};_0x30d3b7[_0x2fabfc(0x22c)]={},_0x30d3b7[_0x2fabfc(0x22c)][_0x2fabfc(0x239)]=_0x3c0dd5[_0x2fabfc(0x239)],_0x3e9c3a[_0x2fabfc(0x20d)](_0x30d3b7);},'fail':_0x3e9c3a[_0x36e81f(0x204)],'complete':()=>{}};return uni[_0x36e81f(0x200)](_0x3c24d7);}function mappedResponseBodyType(_0x5698bd){const _0x3f5a61=_0x4fba51;if(!_0x5698bd||_0x5698bd===_0x3f5a61(0x23f))return _0x3f5a61(0x211);if(_0x5698bd==='arrayBuffer')return'arraybuffer';return _0x3f5a61(0x211);}var HttpError=class extends Error{constructor(_0x2ad565){const _0x13036b=_0x4fba51;super(_0x2ad565),this[_0x13036b(0x233)]='HttpError';}};function createResponseError(_0x524bd4,_0x3bc9ba,_0x44bc35){const _0x55da7e=_0x4fba51,_0x18dca1=_0x524bd4,_0x24d529='['+(_0x3bc9ba?.[_0x55da7e(0x21c)]||'GET')+']\x20'+_0x18dca1,_0x591176=_0x44bc35?_0x44bc35['statusCode']+'\x20'+(_0x44bc35[_0x55da7e(0x231)]||''):'<no\x20response>',_0x9368a7=_0x44bc35?JSON['stringify'](_0x44bc35['data']):'<no\x20response\x20body>',_0x149565=new HttpError(_0x24d529+':\x20'+_0x591176+(_0x44bc35['data']?'\x20'+_0x9368a7:''));for(const _0x39acd0 of[_0x55da7e(0x1fb),_0x55da7e(0x220),'response','data'])Object['defineProperty'](_0x149565,_0x39acd0,{'get'(){const _0x263d8a=_0x55da7e,_0x3a31c2={};return _0x3a31c2['request']=_0x524bd4,_0x3a31c2[_0x263d8a(0x220)]=_0x3bc9ba,_0x3a31c2[_0x263d8a(0x245)]=_0x44bc35,_0x3a31c2['data']=_0x44bc35[_0x263d8a(0x22c)],_0x3a31c2[_0x39acd0];}});return _0x149565;}function normalizeError(_0x149089){const _0x164914=_0x4fba51;if(_0x149089 instanceof Error)return _0x149089;return Object['assign'](new Error(_0x149089?.['errMsg']||_0x149089?.[_0x164914(0x1fc)]||_0x164914(0x207)),{'cause':_0x149089});}async function callRequestHooks(_0x58361e,_0x35241b){await _0x35241b['onRequest']?.({'options':_0x35241b,'resource':_0x58361e});}async function callRequestErrorHooks(_0x46b2b3,_0x3727ed,_0x4ecdcc){const _0xa11a68=_0x4fba51;await _0x3727ed[_0xa11a68(0x1ef)]?.({'options':_0x3727ed,'resource':_0x46b2b3,'error':_0x4ecdcc});}async function callResponseHooks(_0x581d92,_0x50607c,_0x27581a){await _0x50607c['onResponse']?.({'options':_0x50607c,'resource':_0x581d92,'response':_0x27581a});}async function callResponseErrorHooks(_0x557ee4,_0x1b1d8c,_0x2df16f){const _0x51d5de=_0x4fba51;await _0x1b1d8c[_0x51d5de(0x22b)]?.({'options':_0x1b1d8c,'resource':_0x557ee4,'response':_0x2df16f});}async function refineResponse(_0x4b2b9e,_0x5f4a9d){const _0x33cdeb=_0x4fba51;if(_0x5f4a9d['responseType']===_0x33cdeb(0x23f)||!_0x5f4a9d[_0x33cdeb(0x206)])return{..._0x4b2b9e,'data':await parseJSONResponse(_0x4b2b9e[_0x33cdeb(0x22c)],_0x5f4a9d)};return _0x4b2b9e;}function parseJSONResponse(_0x46e458,_0x430caa){const _0x2bcf86=_0x4fba51;if(typeof _0x46e458!==_0x2bcf86(0x235))return _0x46e458;if(_0x430caa['parseResponse'])return _0x430caa['parseResponse'](_0x46e458);return _0x46e458?JSON['parse'](_0x46e458):null;}function isResponseError(_0x198df6){const _0x339244='statusCode'in _0x198df6?_0x198df6['statusCode']:void 0x0;return typeof _0x339244==='number'&&(_0x339244<0xc8||_0x339244>=0x12c);}const DEFAULT_RETRY_STATUS_CODES=[0x198,0x199,0x1a9,0x1ad,0x1f4,0x1f6,0x1f7,0x1f8],PAYLOAD_METHODS=new Set([_0x4fba51(0x234),_0x4fba51(0x1f1),_0x4fba51(0x23a),_0x4fba51(0x22e)]);async function withRetry(_0x462d19,_0x10eac8){const _0x4a302b=_0x4fba51,_0x3b618b=resolveRetryCount(_0x462d19);for(let _0x71db86=0x0;;_0x71db86++)try{return await _0x10eac8();}catch(_0x2af24c){if(_0x71db86>=_0x3b618b||!shouldRetry(_0x2af24c,_0x462d19))throw _0x2af24c;await sleep(_0x462d19[_0x4a302b(0x218)]??0x0,_0x462d19[_0x4a302b(0x208)]);}}function resolveRetryCount(_0xcdd1fb){const _0x317f20=_0x4fba51,{retry:_0x24000c}=_0xcdd1fb;if(_0x24000c===![])return 0x0;if(typeof _0x24000c===_0x317f20(0x229))return _0x24000c>0x0?_0x24000c:0x0;return isPayloadMethod(_0xcdd1fb[_0x317f20(0x21c)])?0x0:0x1;}function _0x13fd(_0x18275c,_0x44762a){_0x18275c=_0x18275c-0x1ee;const _0x223014=_0x2230();let _0x13fd4f=_0x223014[_0x18275c];return _0x13fd4f;}function shouldRetry(_0x2a639e,_0x1b4293){const _0x35556a=_0x4fba51;if(_0x1b4293[_0x35556a(0x208)]?.[_0x35556a(0x226)]||isAbortError(_0x2a639e))return![];const _0x21d53a=_0x2a639e?.[_0x35556a(0x245)]?.[_0x35556a(0x22a)];if(typeof _0x21d53a!==_0x35556a(0x229))return!![];return(_0x1b4293[_0x35556a(0x215)]??DEFAULT_RETRY_STATUS_CODES)['includes'](_0x21d53a);}function isPayloadMethod(_0xa386ce){const _0x3a021b=_0x4fba51;return!!_0xa386ce&&PAYLOAD_METHODS[_0x3a021b(0x216)](_0xa386ce[_0x3a021b(0x217)]());}function sleep(_0x56b2a5,_0x349583){return new Promise((_0xae12b4,_0x7db377)=>{if(_0x349583?.['aborted']){_0x7db377(_0x349583['reason']);return;}if(!(_0x56b2a5>0x0)){_0xae12b4();return;}let _0x4688b0=()=>{};const _0x379b16=setTimeout(()=>{_0x4688b0(),_0xae12b4();},_0x56b2a5);_0x4688b0=onAbort(_0x349583,()=>{const _0x49dc9a=_0x13fd;clearTimeout(_0x379b16),_0x7db377(_0x349583[_0x49dc9a(0x236)]);});});}function buildURL(_0x376fdf,_0x396097){const _0x15552e=_0x4fba51,_0x3062f3=joinURL(_0x396097[_0x15552e(0x1ff)],_0x376fdf),_0x266462=_0x396097['query']??{},_0x178826=Object['keys'](_0x266462)[_0x15552e(0x1fd)](_0xcf386b=>_0x266462[_0xcf386b]!==void 0x0)[_0x15552e(0x224)](_0x4377f0=>{const _0x2ed398=_0x15552e,_0x11f3e5=_0x266462[_0x4377f0];return(Array[_0x2ed398(0x209)](_0x11f3e5)?_0x11f3e5:[_0x11f3e5])['map'](_0x8e1834=>encodeURIComponent(_0x4377f0)+'='+encodeURIComponent(String(_0x8e1834)));})['join']('&');if(!_0x178826)return _0x3062f3;return''+_0x3062f3+(_0x3062f3['includes']('?')?'&':'?')+_0x178826;}function joinURL(_0x4ddcaa,_0x1a43fd){const _0x2cefac=_0x4fba51;if(!_0x4ddcaa||isAbsoluteURL(_0x1a43fd))return _0x1a43fd;return _0x4ddcaa[_0x2cefac(0x1f4)](/\/+$/,'')+'/'+_0x1a43fd['replace'](/^\/+/,'');}function isAbsoluteURL(_0x142287){const _0x3f307b=_0x4fba51;return/^[a-z][a-z\d+\-.]*:\/\//i[_0x3f307b(0x223)](_0x142287)||_0x142287['startsWith']('//');}function dispatchHttp(_0x410cdb,_0x54f997,_0x3a4864){const _0x222f35=buildURL(_0x54f997,_0x3a4864);return withRetry(_0x3a4864,()=>attemptRequest(_0x410cdb,_0x54f997,_0x222f35,_0x3a4864));}function attemptRequest(_0x449e55,_0x40101c,_0x50968f,_0x1f80dc){const _0x1a2a6a=!!_0x1f80dc['raw'];return new Promise((_0xa8de34,_0x1bf077)=>{const _0x21b8d1=_0x13fd;let _0x413685=![];const _0x2610c2=_0x60d159=>{if(_0x413685)return;_0x413685=!![],_0x60d159();},_0x3289e4=onAbort(_0x1f80dc[_0x21b8d1(0x208)],()=>{const _0x4aa346=_0x21b8d1;_0x2610c2(()=>_0x1bf077(_0x1f80dc[_0x4aa346(0x208)][_0x4aa346(0x236)]));}),_0x42aa53=_0x5b3691=>{_0x3289e4(),_0x2610c2(_0x5b3691);};callRequestHooks(_0x40101c,_0x1f80dc)[_0x21b8d1(0x241)](()=>{if(_0x413685)return;dispatch(_0x449e55,_0x50968f,_0x1f80dc,{'onSuccess':_0x2ce980=>{const _0x2da601=_0x13fd;Promise[_0x2da601(0x23b)]()[_0x2da601(0x241)](()=>refineResponse(_0x2ce980,_0x1f80dc))[_0x2da601(0x241)](async _0x167a76=>{const _0x1bb346=_0x2da601;if(isResponseError(_0x2ce980)){await callResponseErrorHooks(_0x40101c,_0x1f80dc,_0x167a76);if(!_0x1f80dc[_0x1bb346(0x21d)])throw createResponseError(_0x40101c,_0x1f80dc,_0x167a76);}else await callResponseHooks(_0x40101c,_0x1f80dc,_0x167a76);_0x42aa53(()=>_0xa8de34(_0x1a2a6a?_0x167a76:_0x167a76[_0x1bb346(0x22c)]));})['catch'](_0x59f817=>_0x42aa53(()=>_0x1bf077(_0x59f817)));},'onFail':_0x6684c2=>{const _0x4f2567=_0x13fd;Promise[_0x4f2567(0x23b)]()['then'](async()=>{const _0x546c26=normalizeError(_0x6684c2);if(!isAbortError(_0x546c26))await callRequestErrorHooks(_0x40101c,_0x1f80dc,_0x546c26);throw _0x546c26;})[_0x4f2567(0x21f)](_0x5d0b13=>_0x42aa53(()=>_0x1bf077(_0x5d0b13)));}});})['catch'](async _0x454fff=>{const _0x5b17b2=normalizeError(_0x454fff);await callRequestErrorHooks(_0x40101c,_0x1f80dc,_0x5b17b2),_0x42aa53(()=>_0x1bf077(_0x5b17b2));});});}const _0x25331f={};_0x25331f[_0x4fba51(0x21c)]=_0x4fba51(0x228),_0x25331f['responseType']='json';function _0x2230(){const _0x12c5c9=['indexOf','responseType','HTTP\x20request\x20failed','signal','isArray','6942TmatzC','onabort','function','onSuccess','onHeadersReceived','enumerable','93sgLfcf','text','body','28436589WQaqnA','query','retryStatusCodes','has','toUpperCase','retryDelay','removeEventListener','defineProperty','filePath','method','ignoreResponseError','6444977QyhzhP','catch','options','uploadFile','call','test','flatMap','slice','aborted','fileType','GET','number','statusCode','onResponseError','data','header','PATCH','abort','httpDNSServiceId','errMsg','285CsAwYJ','name','POST','string','reason','upload','timeout','tempFilePath','DELETE','resolve','16194dHfsFu','1410312EhhWdQ','7254244DQRiOm','json','headers','then','emit','download','sslVerify','response','enableHttp2','onRequestError','createHttp','PUT','onProgress','enableCache','replace','get','1036682lHugaG','firstIpv4','entries','enableHttpDNS','onProgressUpdate','request','message','filter','withCredentials','baseURL','downloadFile','url','listeners','file','onFail'];_0x2230=function(){return _0x12c5c9;};return _0x2230();}const defaultConfig=_0x25331f;function createHttp(_0x31a7b4={}){const _0x2667ea=_0x4fba51,_0xb6a4bb=(_0x14bba9,_0x46f349)=>{const _0x215842=_0x13fd;return dispatchHttp(_0x215842(0x1fb),_0x14bba9,mergeOptions(defaultConfig,_0x31a7b4,_0x46f349));},_0x328e75=(_0x4c5366,_0x358b78)=>{const _0x2fc11b=_0x13fd,_0x216718={};return _0x216718['method']=_0x2fc11b(0x234),dispatchHttp('upload',_0x4c5366,mergeOptions(defaultConfig,_0x31a7b4,_0x358b78,_0x216718));},_0x5c456a=(_0x4d4b29,_0x355eb7)=>{const _0x1a32cc=_0x13fd,_0x5b8ab8={};return _0x5b8ab8[_0x1a32cc(0x21c)]=_0x1a32cc(0x228),dispatchHttp(_0x1a32cc(0x243),_0x4d4b29,mergeOptions(defaultConfig,_0x31a7b4,_0x355eb7,_0x5b8ab8));},_0x22558a=_0x399de5=>createHttp(mergeOptions(_0x31a7b4,_0x399de5)),_0xfeafa3={};return _0xfeafa3[_0x2667ea(0x1fb)]=_0xb6a4bb,_0xfeafa3[_0x2667ea(0x237)]=_0x328e75,_0xfeafa3[_0x2667ea(0x243)]=_0x5c456a,_0xfeafa3['create']=_0x22558a,_0xfeafa3;}const http=createHttp(),_0xb321e1={};_0xb321e1['enumerable']=!![],_0xb321e1[_0x4fba51(0x1f5)]=function(){return createHttp;},Object['defineProperty'](exports,_0x4fba51(0x1f0),_0xb321e1);const _0x208945={};_0x208945['enumerable']=!![],_0x208945['get']=function(){return createHttpAborter;},Object['defineProperty'](exports,'createHttpAborter',_0x208945);const _0x137483={};_0x137483[_0x4fba51(0x20f)]=!![],_0x137483[_0x4fba51(0x1f5)]=function(){return http;},Object[_0x4fba51(0x21a)](exports,'http',_0x137483);
|
package/dist/oiyo.cjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @oiyo/framework v0.4.0-beta.
|
|
2
|
+
* @oiyo/framework v0.4.0-beta.4
|
|
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-
|
|
8
|
+
const require_oiyo = require("./oiyo-Bk99mH2t.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.0-beta.
|
|
2
|
+
* @oiyo/framework v0.4.0-beta.4
|
|
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 HttpDownloadOptions, d as ResponseBodyType, f as createHttpAborter, i as HttpError, l as HttpRequestOptions, n as http, o as HttpRequestResponse, r as HttpConfig, s as HttpUploadResponse, t as createHttp, u as HttpUploadOptions } from "./index-
|
|
7
|
+
import { a as HttpDownloadResponse, c as HttpDownloadOptions, d as ResponseBodyType, f as createHttpAborter, i as HttpError, l as HttpRequestOptions, n as http, o as HttpRequestResponse, r as HttpConfig, s as HttpUploadResponse, t as createHttp, u as HttpUploadOptions } from "./index-5kdIt9Pt.cjs";
|
|
8
8
|
export { type HttpConfig, type HttpDownloadOptions, type HttpDownloadResponse, type HttpError, type HttpRequestOptions, type HttpRequestResponse, 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.0-beta.
|
|
2
|
+
* @oiyo/framework v0.4.0-beta.4
|
|
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 HttpDownloadOptions, d as ResponseBodyType, f as createHttpAborter, i as HttpError, l as HttpRequestOptions, n as http, o as HttpRequestResponse, r as HttpConfig, s as HttpUploadResponse, t as createHttp, u as HttpUploadOptions } from "./index-
|
|
7
|
+
import { a as HttpDownloadResponse, c as HttpDownloadOptions, d as ResponseBodyType, f as createHttpAborter, i as HttpError, l as HttpRequestOptions, n as http, o as HttpRequestResponse, r as HttpConfig, s as HttpUploadResponse, t as createHttp, u as HttpUploadOptions } from "./index-5kdIt9Pt.mjs";
|
|
8
8
|
export { type HttpConfig, type HttpDownloadOptions, type HttpDownloadResponse, type HttpError, type HttpRequestOptions, type HttpRequestResponse, 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.0-beta.
|
|
2
|
+
* @oiyo/framework v0.4.0-beta.4
|
|
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-
|
|
7
|
+
import { n as http, r as createHttpAborter, t as createHttp } from "./oiyo-BGCwnpnq.mjs";
|
|
8
8
|
export { createHttp, createHttpAborter, http };
|
package/dist/uni.cjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @oiyo/framework v0.4.0-beta.
|
|
2
|
+
* @oiyo/framework v0.4.0-beta.4
|
|
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
|
-
require("./
|
|
8
|
+
require("./rolldown-runtime-BU7qlqHq.cjs");
|
|
9
9
|
var _dcloudio_uni_app = require("@dcloudio/uni-app");
|
|
10
10
|
Object.keys(_dcloudio_uni_app).forEach(function(k) {
|
|
11
11
|
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
package/dist/uni.d.cts
CHANGED
package/dist/uni.d.mts
CHANGED
package/dist/uni.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @oiyo/framework v0.4.0-beta.
|
|
2
|
+
* @oiyo/framework v0.4.0-beta.4
|
|
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 "./
|
|
7
|
+
import "./rolldown-runtime-C4TXImMl.mjs";
|
|
8
8
|
export * from "@dcloudio/uni-app";
|
|
9
9
|
export {};
|
package/dist/vue.cjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @oiyo/framework v0.4.0-beta.
|
|
2
|
+
* @oiyo/framework v0.4.0-beta.4
|
|
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
|
-
require("./
|
|
8
|
+
require("./rolldown-runtime-BU7qlqHq.cjs");
|
|
9
9
|
var vue = require("vue");
|
|
10
10
|
Object.keys(vue).forEach(function(k) {
|
|
11
11
|
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
package/dist/vue.d.cts
CHANGED
package/dist/vue.d.mts
CHANGED
package/dist/vue.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @oiyo/framework v0.4.0-beta.
|
|
2
|
+
* @oiyo/framework v0.4.0-beta.4
|
|
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 "./
|
|
7
|
+
import "./rolldown-runtime-C4TXImMl.mjs";
|
|
8
8
|
export * from "vue";
|
|
9
9
|
export {};
|
package/package.json
CHANGED
package/dist/oiyo-CUWG-Hhg.mjs
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @oiyo/framework v0.4.0-beta.2
|
|
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 _0x2b5027=_0x167a;(function(_0x369913,_0x37e29a){const _0x481d05=_0x167a,_0x5c5bde=_0x369913();while(!![]){try{const _0x29de9c=-parseInt(_0x481d05(0x10e))/0x1*(parseInt(_0x481d05(0x119))/0x2)+parseInt(_0x481d05(0xfc))/0x3*(parseInt(_0x481d05(0x115))/0x4)+-parseInt(_0x481d05(0x107))/0x5*(-parseInt(_0x481d05(0xf4))/0x6)+-parseInt(_0x481d05(0xf7))/0x7+-parseInt(_0x481d05(0xd6))/0x8*(parseInt(_0x481d05(0x10b))/0x9)+parseInt(_0x481d05(0xd8))/0xa+parseInt(_0x481d05(0xe4))/0xb;if(_0x29de9c===_0x37e29a)break;else _0x5c5bde['push'](_0x5c5bde['shift']());}catch(_0x271def){_0x5c5bde['push'](_0x5c5bde['shift']());}}}(_0x1c3b,0x68e1c));function createHttpAborter(){const _0x5a8243=new HttpAbortSignal();return{'signal':_0x5a8243,'abort':_0x19de66=>_0x5a8243['_abort'](_0x19de66)};}const ABORT_ERROR_NAME='AbortError';var AbortEmitter=class{['listeners']=[];['addEventListener'](_0x1d14a1,_0x1e3382){const _0x3753ee=_0x167a;if(_0x1d14a1!=='abort')return;this[_0x3753ee(0xff)][_0x3753ee(0xd1)](_0x1e3382);}[_0x2b5027(0xd9)](_0x16eea4,_0x3c875d){const _0x2065c5=_0x2b5027;if(_0x16eea4!=='abort')return;const _0x228222=this[_0x2065c5(0xff)][_0x2065c5(0xdf)](_0x3c875d);if(_0x228222!==-0x1)this[_0x2065c5(0xff)]['splice'](_0x228222,0x1);}['emit'](_0x460a13){for(const _0x2fe4d6 of this['listeners']['slice']())_0x2fe4d6['call'](this,_0x460a13);}},HttpAbortSignal=class extends AbortEmitter{['aborted']=![];[_0x2b5027(0x106)]=void 0x0;['onabort']=null;[_0x2b5027(0xe2)](_0x50020c){const _0xc3e650=_0x2b5027;if(this['aborted'])return;this['aborted']=!![],this['reason']=_0x50020c===void 0x0?createAbortError():_0x50020c;const _0x2ee881={};_0x2ee881[_0xc3e650(0x11b)]=_0xc3e650(0xd4);const _0x46b8de=_0x2ee881;if(typeof this[_0xc3e650(0x10f)]==='function')this['onabort'](_0x46b8de);this['emit'](_0x46b8de);}['throwIfAborted'](){const _0x1e7d73=_0x2b5027;if(this[_0x1e7d73(0xdc)])throw this[_0x1e7d73(0x106)];}};function createAbortError(_0x3eefc0=_0x2b5027(0x101)){const _0xb82315=new Error(_0x3eefc0);return _0xb82315['name']=ABORT_ERROR_NAME,_0xb82315;}function isAbortError(_0x52a9aa){const _0x385137=_0x2b5027;return _0x52a9aa instanceof Error&&_0x52a9aa[_0x385137(0x108)]===ABORT_ERROR_NAME;}function onAbort(_0x38742e,_0x1714f4){const _0x7feeb8=_0x2b5027;if(!_0x38742e)return()=>{};if(_0x38742e[_0x7feeb8(0xdc)])return _0x1714f4(),()=>{};return _0x38742e[_0x7feeb8(0x114)](_0x7feeb8(0xd4),_0x1714f4),()=>_0x38742e['removeEventListener']('abort',_0x1714f4);}function _0x167a(_0x5661b0,_0x584ce0){_0x5661b0=_0x5661b0-0xc3;const _0x1c3b4d=_0x1c3b();let _0x167adf=_0x1c3b4d[_0x5661b0];return _0x167adf;}const HOOK_NAMES=['onRequest',_0x2b5027(0xe0),'onResponse','onResponseError'];function mergeOptions(..._0x3820dd){const _0x35614e=_0x2b5027,_0x4299c5={},_0x542a5c={};for(const _0x17c8c1 of _0x3820dd){if(!_0x17c8c1)continue;for(const _0x25d2f8 of HOOK_NAMES)collectHook(_0x542a5c,_0x25d2f8,_0x17c8c1);const _0x13ff84=_0x4299c5['headers'],_0x2cdfa5=_0x4299c5['query'];Object[_0x35614e(0xd7)](_0x4299c5,_0x17c8c1);const _0x267e82={..._0x13ff84,..._0x17c8c1['headers']};_0x4299c5['headers']=_0x267e82;const _0x215bff={..._0x2cdfa5,..._0x17c8c1[_0x35614e(0xea)]};_0x4299c5[_0x35614e(0xea)]=_0x215bff;}for(const [_0x449045,_0x20e1ef]of Object['entries'](_0x542a5c))Object['assign'](_0x4299c5,{[_0x449045]:async _0x17d19b=>{for(const _0x2afca4 of _0x20e1ef)await _0x2afca4(_0x17d19b);}});return _0x4299c5;}function collectHook(_0x29568b,_0x1207c8,_0x377d25){const _0x5212e6=_0x2b5027,_0x4b9611=_0x377d25[_0x1207c8];if(typeof _0x4b9611!==_0x5212e6(0xe1))return;_0x29568b[_0x1207c8]??=[],_0x29568b[_0x1207c8]['push'](_0x4b9611);}function dispatch(_0x44ea88,_0x2ac0e5,_0x13d576,_0x326236){const _0x1c7b88=_0x2b5027;let _0x69fbde;if(_0x44ea88===_0x1c7b88(0x116))_0x69fbde=dispatchUpload(_0x2ac0e5,_0x13d576,_0x326236);else{if(_0x44ea88==='download')_0x69fbde=dispatchDownload(_0x2ac0e5,_0x13d576,_0x326236);else _0x69fbde=dispatchRequest(_0x2ac0e5,_0x13d576,_0x326236);}bindTask(_0x69fbde,_0x13d576);}function bindTask(_0x51e77b,_0x3e9dc8){const _0x12f7b8=_0x2b5027;onAbort(_0x3e9dc8['signal'],()=>_0x51e77b[_0x12f7b8(0xd4)]());if(typeof _0x3e9dc8['onHeadersReceived']===_0x12f7b8(0xe1))_0x51e77b['onHeadersReceived'](_0x3e9dc8[_0x12f7b8(0xf5)]);const _0x310183=_0x3e9dc8[_0x12f7b8(0xcc)];if(typeof _0x310183==='function'&&_0x12f7b8(0xfa)in _0x51e77b)_0x51e77b[_0x12f7b8(0xfa)](_0x310183);}function _0x1c3b(){const _0x50c8b7=['enableHttpDNS','catch','onProgress','dataType','flatMap','create','onResponse','push','tempFilePath','includes','abort','data','8UTJXTA','assign','510640EBvjYt','removeEventListener','url','toUpperCase','aborted','HTTP\x20request\x20failed','json','indexOf','onRequestError','function','_abort','formData','13449623aHAgyf','timeout','method','filePath','arrayBuffer','fileType','query','ignoreResponseError','errMsg','retryStatusCodes','forceCellularNetwork','enableQuic','headers','number','request','enableChunked','335334ljHvWW','onHeadersReceived','files','3021270ODWxeO','defineProperty','signal','onProgressUpdate','message','3fRLyty','then','GET','listeners','replace','The\x20operation\x20was\x20aborted','has','response','test','onFail','reason','5UWEjWx','name','body','POST','3891996WFStVD','statusCode','isArray','4790BrpbMw','onabort','responseType','PATCH','onResponseError','enableCache','addEventListener','2710856ZUqEmW','upload','text','baseURL','298MPUcMC','join','type','download','<no\x20response>','resolve','arraybuffer','PUT','enableHttp2','startsWith'];_0x1c3b=function(){return _0x50c8b7;};return _0x1c3b();}function dispatchRequest(_0x1594c0,_0x421334,_0x2c7a59){const _0x41dc81=_0x2b5027,_0x3edf08={'url':_0x1594c0,'method':_0x421334[_0x41dc81(0xe6)],'header':_0x421334[_0x41dc81(0xf0)],'data':_0x421334[_0x41dc81(0x109)]??{},'timeout':_0x421334['timeout'],'dataType':_0x421334[_0x41dc81(0xcd)]||'json','responseType':mappedResponseBodyType(_0x421334['responseType']),'sslVerify':_0x421334['sslVerify'],'withCredentials':_0x421334['withCredentials'],'firstIpv4':_0x421334['firstIpv4'],'enableHttp2':_0x421334[_0x41dc81(0xc8)],'enableQuic':_0x421334[_0x41dc81(0xef)],'enableCache':_0x421334[_0x41dc81(0x113)],'enableHttpDNS':_0x421334[_0x41dc81(0xca)],'httpDNSServiceId':_0x421334['httpDNSServiceId'],'enableChunked':_0x421334[_0x41dc81(0xf3)],'forceCellularNetwork':_0x421334[_0x41dc81(0xee)],'success':_0x2c7a59['onSuccess'],'fail':_0x2c7a59[_0x41dc81(0x105)],'complete':()=>{}};return uni['request'](_0x3edf08);}function dispatchUpload(_0x255ff5,_0x34f365,_0x4c7282){const _0x422fda=_0x2b5027,_0x13b266={};_0x13b266[_0x422fda(0xda)]=_0x255ff5,_0x13b266[_0x422fda(0xe9)]=_0x34f365['fileType'],_0x13b266['file']=_0x34f365['file'],_0x13b266['filePath']=_0x34f365[_0x422fda(0xe7)],_0x13b266['name']=_0x34f365['name']??'file',_0x13b266[_0x422fda(0xf6)]=_0x34f365[_0x422fda(0xf6)],_0x13b266['header']=_0x34f365[_0x422fda(0xf0)],_0x13b266[_0x422fda(0xe3)]=_0x34f365[_0x422fda(0x109)]??{},_0x13b266['timeout']=_0x34f365[_0x422fda(0xe5)],_0x13b266['success']=_0x4c7282['onSuccess'],_0x13b266['fail']=_0x4c7282[_0x422fda(0x105)],_0x13b266['complete']=()=>{};const _0x140615=_0x13b266;return uni['uploadFile'](_0x140615);}function dispatchDownload(_0x597dd8,_0x29b619,_0x574c10){const _0x45c597=_0x2b5027,_0x461ac6={'url':_0x597dd8,'header':_0x29b619['headers'],'timeout':_0x29b619[_0x45c597(0xe5)],'success':_0x36bee4=>{const _0x3aa507=_0x45c597,_0x498ac2={..._0x36bee4};_0x498ac2[_0x3aa507(0xd5)]={},_0x498ac2[_0x3aa507(0xd5)][_0x3aa507(0xd2)]=_0x36bee4['tempFilePath'],_0x574c10['onSuccess'](_0x498ac2);},'fail':_0x574c10['onFail'],'complete':()=>{}};return uni['downloadFile'](_0x461ac6);}function mappedResponseBodyType(_0x1b4f4a){const _0x108aaa=_0x2b5027;if(!_0x1b4f4a||_0x1b4f4a==='json')return'text';if(_0x1b4f4a===_0x108aaa(0xe8))return _0x108aaa(0xc6);return _0x108aaa(0x117);}var HttpError=class extends Error{constructor(_0x149bb2){super(_0x149bb2),this['name']='HttpError';}};function createResponseError(_0x1aebad,_0x14b814,_0x749082){const _0x150b8a=_0x2b5027,_0x3887f3=_0x1aebad,_0x42b20d='['+(_0x14b814?.['method']||'GET')+']\x20'+_0x3887f3,_0x5beff7=_0x749082?_0x749082[_0x150b8a(0x10c)]+'\x20'+(_0x749082[_0x150b8a(0xec)]||''):_0x150b8a(0xc4),_0x5a661d=_0x749082?JSON['stringify'](_0x749082[_0x150b8a(0xd5)]):'<no\x20response\x20body>',_0x464136=new HttpError(_0x42b20d+':\x20'+_0x5beff7+(_0x749082['data']?'\x20'+_0x5a661d:''));for(const _0x577157 of['request','options',_0x150b8a(0x103),'data'])Object[_0x150b8a(0xf8)](_0x464136,_0x577157,{'get'(){const _0x40ee5f=_0x150b8a,_0x12032e={};return _0x12032e[_0x40ee5f(0xf2)]=_0x1aebad,_0x12032e['options']=_0x14b814,_0x12032e['response']=_0x749082,_0x12032e['data']=_0x749082[_0x40ee5f(0xd5)],_0x12032e[_0x577157];}});return _0x464136;}function normalizeError(_0x47dca7){const _0x2e551b=_0x2b5027;if(_0x47dca7 instanceof Error)return _0x47dca7;return Object[_0x2e551b(0xd7)](new Error(_0x47dca7?.[_0x2e551b(0xec)]||_0x47dca7?.[_0x2e551b(0xfb)]||_0x2e551b(0xdd)),{'cause':_0x47dca7});}async function callRequestHooks(_0x19ded4,_0x4768ae){await _0x4768ae['onRequest']?.({'options':_0x4768ae,'resource':_0x19ded4});}async function callRequestErrorHooks(_0x2b2afd,_0x21d50d,_0x46e6fd){await _0x21d50d['onRequestError']?.({'options':_0x21d50d,'resource':_0x2b2afd,'error':_0x46e6fd});}async function callResponseHooks(_0xd08b59,_0x1f164a,_0x994454){const _0x1e3fcd=_0x2b5027;await _0x1f164a[_0x1e3fcd(0xd0)]?.({'options':_0x1f164a,'resource':_0xd08b59,'response':_0x994454});}async function callResponseErrorHooks(_0x591c48,_0x4ea977,_0x4ac985){const _0x481cf4=_0x2b5027;await _0x4ea977[_0x481cf4(0x112)]?.({'options':_0x4ea977,'resource':_0x591c48,'response':_0x4ac985});}async function refineResponse(_0x4da2d7,_0x5708ac){const _0x2e97c0=_0x2b5027;if(_0x5708ac[_0x2e97c0(0x110)]==='json'||!_0x5708ac['responseType'])return{..._0x4da2d7,'data':await parseJSONResponse(_0x4da2d7['data'],_0x5708ac)};return _0x4da2d7;}function parseJSONResponse(_0x1c5bbd,_0xf954a5){if(typeof _0x1c5bbd!=='string')return _0x1c5bbd;if(_0xf954a5['parseResponse'])return _0xf954a5['parseResponse'](_0x1c5bbd);return _0x1c5bbd?JSON['parse'](_0x1c5bbd):null;}function isResponseError(_0x471b14){const _0x565c17=_0x2b5027,_0x19a6c5='statusCode'in _0x471b14?_0x471b14[_0x565c17(0x10c)]:void 0x0;return typeof _0x19a6c5===_0x565c17(0xf1)&&(_0x19a6c5<0xc8||_0x19a6c5>=0x12c);}const DEFAULT_RETRY_STATUS_CODES=[0x198,0x199,0x1a9,0x1ad,0x1f4,0x1f6,0x1f7,0x1f8],PAYLOAD_METHODS=new Set([_0x2b5027(0x10a),_0x2b5027(0xc7),'DELETE',_0x2b5027(0x111)]);async function withRetry(_0x272f73,_0x29fd77){const _0x1adf15=_0x2b5027,_0x341cbd=resolveRetryCount(_0x272f73);for(let _0x48fe33=0x0;;_0x48fe33++)try{return await _0x29fd77();}catch(_0x2fd81c){if(_0x48fe33>=_0x341cbd||!shouldRetry(_0x2fd81c,_0x272f73))throw _0x2fd81c;await sleep(_0x272f73['retryDelay']??0x0,_0x272f73[_0x1adf15(0xf9)]);}}function resolveRetryCount(_0x1e67f1){const {retry:_0x532595}=_0x1e67f1;if(_0x532595===![])return 0x0;if(typeof _0x532595==='number')return _0x532595>0x0?_0x532595:0x0;return isPayloadMethod(_0x1e67f1['method'])?0x0:0x1;}function shouldRetry(_0x296f7e,_0x30f08b){const _0x5f4932=_0x2b5027;if(_0x30f08b[_0x5f4932(0xf9)]?.['aborted']||isAbortError(_0x296f7e))return![];const _0x5cc7c9=_0x296f7e?.[_0x5f4932(0x103)]?.[_0x5f4932(0x10c)];if(typeof _0x5cc7c9!=='number')return!![];return(_0x30f08b[_0x5f4932(0xed)]??DEFAULT_RETRY_STATUS_CODES)['includes'](_0x5cc7c9);}function isPayloadMethod(_0xdaf9fc){const _0x18bd6f=_0x2b5027;return!!_0xdaf9fc&&PAYLOAD_METHODS[_0x18bd6f(0x102)](_0xdaf9fc[_0x18bd6f(0xdb)]());}function sleep(_0x222eb3,_0x1ef38c){return new Promise((_0x28ec9a,_0x4ccc73)=>{const _0x11f9e1=_0x167a;if(_0x1ef38c?.[_0x11f9e1(0xdc)]){_0x4ccc73(_0x1ef38c['reason']);return;}if(!(_0x222eb3>0x0)){_0x28ec9a();return;}let _0x7332ae=()=>{};const _0xf1f75d=setTimeout(()=>{_0x7332ae(),_0x28ec9a();},_0x222eb3);_0x7332ae=onAbort(_0x1ef38c,()=>{clearTimeout(_0xf1f75d),_0x4ccc73(_0x1ef38c['reason']);});});}function buildURL(_0x201eb2,_0x2a07a9){const _0x1cfcc2=_0x2b5027,_0x445420=joinURL(_0x2a07a9[_0x1cfcc2(0x118)],_0x201eb2),_0x4e843f=_0x2a07a9['query']??{},_0x3cc429=Object['keys'](_0x4e843f)['filter'](_0x25b573=>_0x4e843f[_0x25b573]!==void 0x0)[_0x1cfcc2(0xce)](_0x2756e9=>{const _0x1f5fb9=_0x1cfcc2,_0x52f1a9=_0x4e843f[_0x2756e9];return(Array[_0x1f5fb9(0x10d)](_0x52f1a9)?_0x52f1a9:[_0x52f1a9])['map'](_0xd5d5c5=>encodeURIComponent(_0x2756e9)+'='+encodeURIComponent(String(_0xd5d5c5)));})[_0x1cfcc2(0x11a)]('&');if(!_0x3cc429)return _0x445420;return''+_0x445420+(_0x445420[_0x1cfcc2(0xd3)]('?')?'&':'?')+_0x3cc429;}function joinURL(_0x392199,_0xd1268b){const _0x22cddb=_0x2b5027;if(!_0x392199||isAbsoluteURL(_0xd1268b))return _0xd1268b;return _0x392199['replace'](/\/+$/,'')+'/'+_0xd1268b[_0x22cddb(0x100)](/^\/+/,'');}function isAbsoluteURL(_0x19be06){const _0x121396=_0x2b5027;return/^[a-z][a-z\d+\-.]*:\/\//i[_0x121396(0x104)](_0x19be06)||_0x19be06[_0x121396(0xc9)]('//');}function dispatchHttp(_0x3cdeaa,_0x5d2330,_0x221b47){const _0x4b121e=buildURL(_0x5d2330,_0x221b47);return withRetry(_0x221b47,()=>attemptRequest(_0x3cdeaa,_0x5d2330,_0x4b121e,_0x221b47));}function attemptRequest(_0x21d6d0,_0x513be7,_0x44cc30,_0x3a717d){const _0x31abf4=!!_0x3a717d['raw'];return new Promise((_0x33a20d,_0xbe2fa9)=>{const _0x4a52b6=_0x167a;let _0x53994c=![];const _0x58382f=_0x1c3808=>{if(_0x53994c)return;_0x53994c=!![],_0x1c3808();},_0x3f6362=onAbort(_0x3a717d['signal'],()=>{const _0x52d034=_0x167a;_0x58382f(()=>_0xbe2fa9(_0x3a717d['signal'][_0x52d034(0x106)]));}),_0x94bf9b=_0x5b89fe=>{_0x3f6362(),_0x58382f(_0x5b89fe);};callRequestHooks(_0x513be7,_0x3a717d)[_0x4a52b6(0xfd)](()=>{if(_0x53994c)return;dispatch(_0x21d6d0,_0x44cc30,_0x3a717d,{'onSuccess':_0x3ab3cf=>{Promise['resolve']()['then'](()=>refineResponse(_0x3ab3cf,_0x3a717d))['then'](async _0x4ab5cd=>{const _0x19dde6=_0x167a;if(isResponseError(_0x3ab3cf)){await callResponseErrorHooks(_0x513be7,_0x3a717d,_0x4ab5cd);if(!_0x3a717d[_0x19dde6(0xeb)])throw createResponseError(_0x513be7,_0x3a717d,_0x4ab5cd);}else await callResponseHooks(_0x513be7,_0x3a717d,_0x4ab5cd);_0x94bf9b(()=>_0x33a20d(_0x31abf4?_0x4ab5cd:_0x4ab5cd['data']));})['catch'](_0x3cbbb7=>_0x94bf9b(()=>_0xbe2fa9(_0x3cbbb7)));},'onFail':_0x3234b2=>{const _0x4796f8=_0x167a;Promise[_0x4796f8(0xc5)]()[_0x4796f8(0xfd)](async()=>{const _0x184679=normalizeError(_0x3234b2);if(!isAbortError(_0x184679))await callRequestErrorHooks(_0x513be7,_0x3a717d,_0x184679);throw _0x184679;})[_0x4796f8(0xcb)](_0x36a984=>_0x94bf9b(()=>_0xbe2fa9(_0x36a984)));}});})[_0x4a52b6(0xcb)](async _0x12011b=>{const _0x432976=normalizeError(_0x12011b);await callRequestErrorHooks(_0x513be7,_0x3a717d,_0x432976),_0x94bf9b(()=>_0xbe2fa9(_0x432976));});});}const _0x15a9f7={};_0x15a9f7['method']=_0x2b5027(0xfe),_0x15a9f7['responseType']=_0x2b5027(0xde);const defaultConfig=_0x15a9f7;function createHttp(_0x54e2ce={}){const _0x3aadf4=_0x2b5027,_0x52a994=(_0x210d5f,_0x38c05c)=>{const _0x3207f8=_0x167a;return dispatchHttp(_0x3207f8(0xf2),_0x210d5f,mergeOptions(defaultConfig,_0x54e2ce,_0x38c05c));},_0x53a720=(_0x59770d,_0x52af02)=>{const _0x52b156=_0x167a,_0x44400c={};return _0x44400c['method']=_0x52b156(0x10a),dispatchHttp(_0x52b156(0x116),_0x59770d,mergeOptions(defaultConfig,_0x54e2ce,_0x52af02,_0x44400c));},_0x268a29=(_0x462177,_0x2f6f20)=>{const _0x47567a=_0x167a,_0x11bf67={};return _0x11bf67[_0x47567a(0xe6)]=_0x47567a(0xfe),dispatchHttp(_0x47567a(0xc3),_0x462177,mergeOptions(defaultConfig,_0x54e2ce,_0x2f6f20,_0x11bf67));},_0x343296=_0x5d0dab=>createHttp(mergeOptions(_0x54e2ce,_0x5d0dab)),_0x41cd82={};return _0x41cd82[_0x3aadf4(0xf2)]=_0x52a994,_0x41cd82[_0x3aadf4(0x116)]=_0x53a720,_0x41cd82['download']=_0x268a29,_0x41cd82[_0x3aadf4(0xcf)]=_0x343296,_0x41cd82;}const http=createHttp();export{http as n,createHttpAborter as r,createHttp as t};
|
package/dist/oiyo-CZ64L3f6.cjs
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @oiyo/framework v0.4.0-beta.2
|
|
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 _0x351574=_0x5285;(function(_0x3dda41,_0x134864){const _0x654f75=_0x5285,_0x3e58da=_0x3dda41();while(!![]){try{const _0x306b2d=parseInt(_0x654f75(0x1be))/0x1*(parseInt(_0x654f75(0x1c9))/0x2)+-parseInt(_0x654f75(0x1c8))/0x3+-parseInt(_0x654f75(0x1ec))/0x4*(parseInt(_0x654f75(0x1e9))/0x5)+parseInt(_0x654f75(0x1b9))/0x6*(parseInt(_0x654f75(0x1c2))/0x7)+parseInt(_0x654f75(0x1fc))/0x8*(parseInt(_0x654f75(0x1f0))/0x9)+parseInt(_0x654f75(0x1d0))/0xa*(parseInt(_0x654f75(0x1fb))/0xb)+-parseInt(_0x654f75(0x210))/0xc;if(_0x306b2d===_0x134864)break;else _0x3e58da['push'](_0x3e58da['shift']());}catch(_0x503577){_0x3e58da['push'](_0x3e58da['shift']());}}}(_0x3192,0xad737));function createHttpAborter(){const _0x97092a=_0x5285,_0xa00505=new HttpAbortSignal();return{'signal':_0xa00505,'abort':_0x22b86c=>_0xa00505[_0x97092a(0x1dc)](_0x22b86c)};}const ABORT_ERROR_NAME='AbortError';var AbortEmitter=class{['listeners']=[];['addEventListener'](_0x1780b4,_0x3da2ed){const _0x3e81ef=_0x5285;if(_0x1780b4!==_0x3e81ef(0x1d9))return;this['listeners']['push'](_0x3da2ed);}[_0x351574(0x1bc)](_0x326a39,_0x5de996){const _0x711962=_0x351574;if(_0x326a39!==_0x711962(0x1d9))return;const _0x5e0cd1=this[_0x711962(0x1ee)][_0x711962(0x1f2)](_0x5de996);if(_0x5e0cd1!==-0x1)this[_0x711962(0x1ee)]['splice'](_0x5e0cd1,0x1);}['emit'](_0x302124){for(const _0x14d9c3 of this['listeners']['slice']())_0x14d9c3['call'](this,_0x302124);}},HttpAbortSignal=class extends AbortEmitter{[_0x351574(0x1cb)]=![];['reason']=void 0x0;['onabort']=null;['_abort'](_0x59c7e7){const _0xfbf602=_0x351574;if(this[_0xfbf602(0x1cb)])return;this['aborted']=!![],this[_0xfbf602(0x1ff)]=_0x59c7e7===void 0x0?createAbortError():_0x59c7e7;const _0x31b093={};_0x31b093[_0xfbf602(0x1c1)]=_0xfbf602(0x1d9);const _0x5648ad=_0x31b093;if(typeof this['onabort']==='function')this['onabort'](_0x5648ad);this[_0xfbf602(0x204)](_0x5648ad);}['throwIfAborted'](){const _0x24588c=_0x351574;if(this[_0x24588c(0x1cb)])throw this['reason'];}};function createAbortError(_0x9abc1e='The\x20operation\x20was\x20aborted'){const _0x232a3b=_0x351574,_0x3c8361=new Error(_0x9abc1e);return _0x3c8361[_0x232a3b(0x209)]=ABORT_ERROR_NAME,_0x3c8361;}function isAbortError(_0x382d76){const _0x1096ff=_0x351574;return _0x382d76 instanceof Error&&_0x382d76[_0x1096ff(0x209)]===ABORT_ERROR_NAME;}function onAbort(_0x4a2ab3,_0x2d0a9d){const _0x3e81c8=_0x351574;if(!_0x4a2ab3)return()=>{};if(_0x4a2ab3['aborted'])return _0x2d0a9d(),()=>{};return _0x4a2ab3[_0x3e81c8(0x1da)](_0x3e81c8(0x1d9),_0x2d0a9d),()=>_0x4a2ab3[_0x3e81c8(0x1bc)]('abort',_0x2d0a9d);}const HOOK_NAMES=['onRequest',_0x351574(0x1df),'onResponse','onResponseError'];function mergeOptions(..._0x2cc5cd){const _0x3a4cdd=_0x351574,_0x2b672c={},_0xa58b46={};for(const _0x3f4b87 of _0x2cc5cd){if(!_0x3f4b87)continue;for(const _0x7f763c of HOOK_NAMES)collectHook(_0xa58b46,_0x7f763c,_0x3f4b87);const _0x1d67e0=_0x2b672c['headers'],_0x46474f=_0x2b672c[_0x3a4cdd(0x20f)];Object[_0x3a4cdd(0x1e7)](_0x2b672c,_0x3f4b87);const _0x5378ec={..._0x1d67e0,..._0x3f4b87['headers']};_0x2b672c['headers']=_0x5378ec;const _0x3cbc7d={..._0x46474f,..._0x3f4b87[_0x3a4cdd(0x20f)]};_0x2b672c['query']=_0x3cbc7d;}for(const [_0x3d89f3,_0x191ac0]of Object['entries'](_0xa58b46))Object['assign'](_0x2b672c,{[_0x3d89f3]:async _0x1105de=>{for(const _0x4b290c of _0x191ac0)await _0x4b290c(_0x1105de);}});return _0x2b672c;}function collectHook(_0x4e63d8,_0x1e80ec,_0x56fab2){const _0x46234d=_0x351574,_0x51ea2a=_0x56fab2[_0x1e80ec];if(typeof _0x51ea2a!==_0x46234d(0x1d3))return;_0x4e63d8[_0x1e80ec]??=[],_0x4e63d8[_0x1e80ec][_0x46234d(0x1f6)](_0x51ea2a);}function dispatch(_0x55bc4,_0x1d7822,_0x14ca55,_0x5928a9){let _0x55e044;if(_0x55bc4==='upload')_0x55e044=dispatchUpload(_0x1d7822,_0x14ca55,_0x5928a9);else{if(_0x55bc4==='download')_0x55e044=dispatchDownload(_0x1d7822,_0x14ca55,_0x5928a9);else _0x55e044=dispatchRequest(_0x1d7822,_0x14ca55,_0x5928a9);}bindTask(_0x55e044,_0x14ca55);}function bindTask(_0x22c745,_0x1d119b){const _0xeb36b2=_0x351574;onAbort(_0x1d119b['signal'],()=>_0x22c745['abort']());if(typeof _0x1d119b['onHeadersReceived']===_0xeb36b2(0x1d3))_0x22c745[_0xeb36b2(0x1e6)](_0x1d119b['onHeadersReceived']);const _0x5b1125=_0x1d119b[_0xeb36b2(0x1c5)];if(typeof _0x5b1125===_0xeb36b2(0x1d3)&&'onProgressUpdate'in _0x22c745)_0x22c745[_0xeb36b2(0x1d5)](_0x5b1125);}function dispatchRequest(_0x4b2309,_0x8e2a75,_0xf439ec){const _0x338e01=_0x351574,_0x2b5a99={'url':_0x4b2309,'method':_0x8e2a75[_0x338e01(0x202)],'header':_0x8e2a75[_0x338e01(0x1f4)],'data':_0x8e2a75['body']??{},'timeout':_0x8e2a75[_0x338e01(0x1f8)],'dataType':_0x8e2a75['dataType']||_0x338e01(0x1cd),'responseType':mappedResponseBodyType(_0x8e2a75['responseType']),'sslVerify':_0x8e2a75[_0x338e01(0x1e3)],'withCredentials':_0x8e2a75['withCredentials'],'firstIpv4':_0x8e2a75[_0x338e01(0x1bd)],'enableHttp2':_0x8e2a75['enableHttp2'],'enableQuic':_0x8e2a75[_0x338e01(0x1d2)],'enableCache':_0x8e2a75['enableCache'],'enableHttpDNS':_0x8e2a75[_0x338e01(0x1ea)],'httpDNSServiceId':_0x8e2a75['httpDNSServiceId'],'enableChunked':_0x8e2a75['enableChunked'],'forceCellularNetwork':_0x8e2a75[_0x338e01(0x1e8)],'success':_0xf439ec[_0x338e01(0x1ba)],'fail':_0xf439ec['onFail'],'complete':()=>{}};return uni['request'](_0x2b5a99);}function dispatchUpload(_0x53cc8d,_0x5e74b9,_0x2ac009){const _0xc9a1a2=_0x351574,_0x128c5c={};_0x128c5c[_0xc9a1a2(0x1d7)]=_0x53cc8d,_0x128c5c['fileType']=_0x5e74b9['fileType'],_0x128c5c['file']=_0x5e74b9['file'],_0x128c5c[_0xc9a1a2(0x1f3)]=_0x5e74b9['filePath'],_0x128c5c[_0xc9a1a2(0x209)]=_0x5e74b9['name']??'file',_0x128c5c[_0xc9a1a2(0x1db)]=_0x5e74b9[_0xc9a1a2(0x1db)],_0x128c5c[_0xc9a1a2(0x1e0)]=_0x5e74b9['headers'],_0x128c5c[_0xc9a1a2(0x1c0)]=_0x5e74b9['body']??{},_0x128c5c[_0xc9a1a2(0x1f8)]=_0x5e74b9[_0xc9a1a2(0x1f8)],_0x128c5c[_0xc9a1a2(0x1cf)]=_0x2ac009[_0xc9a1a2(0x1ba)],_0x128c5c[_0xc9a1a2(0x20e)]=_0x2ac009['onFail'],_0x128c5c[_0xc9a1a2(0x1f9)]=()=>{};const _0x5d9b1d=_0x128c5c;return uni[_0xc9a1a2(0x1ca)](_0x5d9b1d);}function dispatchDownload(_0x1bf236,_0x1a1f29,_0x199441){const _0x566d45=_0x351574,_0x48f6e5={'url':_0x1bf236,'header':_0x1a1f29['headers'],'timeout':_0x1a1f29[_0x566d45(0x1f8)],'success':_0xdae9b2=>{const _0x39711e=_0x566d45,_0x978b60={..._0xdae9b2};_0x978b60[_0x39711e(0x1cc)]={},_0x978b60[_0x39711e(0x1cc)][_0x39711e(0x203)]=_0xdae9b2['tempFilePath'],_0x199441['onSuccess'](_0x978b60);},'fail':_0x199441[_0x566d45(0x1c6)],'complete':()=>{}};return uni[_0x566d45(0x1e1)](_0x48f6e5);}function mappedResponseBodyType(_0x28d927){const _0x20de18=_0x351574;if(!_0x28d927||_0x28d927===_0x20de18(0x1cd))return _0x20de18(0x1d6);if(_0x28d927==='arrayBuffer')return'arraybuffer';return'text';}var HttpError=class extends Error{constructor(_0x70f2ed){const _0x4a601a=_0x351574;super(_0x70f2ed),this['name']=_0x4a601a(0x211);}};function createResponseError(_0x13895c,_0x45c0e0,_0x3968e9){const _0x5b79de=_0x351574,_0x332078=_0x13895c,_0x5d3d11='['+(_0x45c0e0?.[_0x5b79de(0x202)]||'GET')+']\x20'+_0x332078,_0x3b278a=_0x3968e9?_0x3968e9['statusCode']+'\x20'+(_0x3968e9[_0x5b79de(0x1e2)]||''):'<no\x20response>',_0x30484f=_0x3968e9?JSON['stringify'](_0x3968e9['data']):_0x5b79de(0x1f7),_0x4e8bdb=new HttpError(_0x5d3d11+':\x20'+_0x3b278a+(_0x3968e9['data']?'\x20'+_0x30484f:''));for(const _0x1cb020 of['request','options',_0x5b79de(0x206),_0x5b79de(0x1cc)])Object[_0x5b79de(0x1bb)](_0x4e8bdb,_0x1cb020,{'get'(){const _0x41dbcb=_0x5b79de,_0x3d3862={};return _0x3d3862[_0x41dbcb(0x1de)]=_0x13895c,_0x3d3862[_0x41dbcb(0x1c7)]=_0x45c0e0,_0x3d3862['response']=_0x3968e9,_0x3d3862['data']=_0x3968e9[_0x41dbcb(0x1cc)],_0x3d3862[_0x1cb020];}});return _0x4e8bdb;}function normalizeError(_0x2d12d0){if(_0x2d12d0 instanceof Error)return _0x2d12d0;return Object['assign'](new Error(_0x2d12d0?.['errMsg']||_0x2d12d0?.['message']||'HTTP\x20request\x20failed'),{'cause':_0x2d12d0});}async function callRequestHooks(_0x5adcaa,_0x59040b){await _0x59040b['onRequest']?.({'options':_0x59040b,'resource':_0x5adcaa});}async function callRequestErrorHooks(_0xb96117,_0x4e2277,_0x481625){await _0x4e2277['onRequestError']?.({'options':_0x4e2277,'resource':_0xb96117,'error':_0x481625});}async function callResponseHooks(_0x4a72e9,_0x43a748,_0xc72657){const _0x2fef8f=_0x351574;await _0x43a748[_0x2fef8f(0x1dd)]?.({'options':_0x43a748,'resource':_0x4a72e9,'response':_0xc72657});}async function callResponseErrorHooks(_0xfc7503,_0x103eb4,_0x2288d2){const _0x165a83=_0x351574;await _0x103eb4[_0x165a83(0x20d)]?.({'options':_0x103eb4,'resource':_0xfc7503,'response':_0x2288d2});}async function refineResponse(_0x38dd83,_0x4223c3){const _0x36464f=_0x351574;if(_0x4223c3[_0x36464f(0x1c4)]===_0x36464f(0x1cd)||!_0x4223c3[_0x36464f(0x1c4)])return{..._0x38dd83,'data':await parseJSONResponse(_0x38dd83[_0x36464f(0x1cc)],_0x4223c3)};return _0x38dd83;}function parseJSONResponse(_0x3cd3ef,_0x402e33){const _0x2429d9=_0x351574;if(typeof _0x3cd3ef!=='string')return _0x3cd3ef;if(_0x402e33['parseResponse'])return _0x402e33[_0x2429d9(0x205)](_0x3cd3ef);return _0x3cd3ef?JSON[_0x2429d9(0x212)](_0x3cd3ef):null;}function isResponseError(_0x4e6002){const _0x34df53=_0x351574,_0x1bdd85=_0x34df53(0x1fd)in _0x4e6002?_0x4e6002[_0x34df53(0x1fd)]:void 0x0;return typeof _0x1bdd85==='number'&&(_0x1bdd85<0xc8||_0x1bdd85>=0x12c);}const DEFAULT_RETRY_STATUS_CODES=[0x198,0x199,0x1a9,0x1ad,0x1f4,0x1f6,0x1f7,0x1f8],PAYLOAD_METHODS=new Set(['POST','PUT','DELETE',_0x351574(0x207)]);async function withRetry(_0x59edb3,_0x32970a){const _0x258cb4=_0x351574,_0x227341=resolveRetryCount(_0x59edb3);for(let _0x3ca263=0x0;;_0x3ca263++)try{return await _0x32970a();}catch(_0xb1b8f6){if(_0x3ca263>=_0x227341||!shouldRetry(_0xb1b8f6,_0x59edb3))throw _0xb1b8f6;await sleep(_0x59edb3[_0x258cb4(0x1c3)]??0x0,_0x59edb3['signal']);}}function resolveRetryCount(_0xfbd84f){const {retry:_0x24f350}=_0xfbd84f;if(_0x24f350===![])return 0x0;if(typeof _0x24f350==='number')return _0x24f350>0x0?_0x24f350:0x0;return isPayloadMethod(_0xfbd84f['method'])?0x0:0x1;}function shouldRetry(_0x351c59,_0x5a14d2){const _0x244442=_0x351574;if(_0x5a14d2['signal']?.['aborted']||isAbortError(_0x351c59))return![];const _0x34ac20=_0x351c59?.['response']?.[_0x244442(0x1fd)];if(typeof _0x34ac20!==_0x244442(0x1fe))return!![];return(_0x5a14d2['retryStatusCodes']??DEFAULT_RETRY_STATUS_CODES)['includes'](_0x34ac20);}function isPayloadMethod(_0x312403){return!!_0x312403&&PAYLOAD_METHODS['has'](_0x312403['toUpperCase']());}function sleep(_0x1cea43,_0x3aba64){return new Promise((_0x3544a1,_0x1a7273)=>{const _0x465650=_0x5285;if(_0x3aba64?.['aborted']){_0x1a7273(_0x3aba64[_0x465650(0x1ff)]);return;}if(!(_0x1cea43>0x0)){_0x3544a1();return;}let _0x35f8a8=()=>{};const _0x59a2d1=setTimeout(()=>{_0x35f8a8(),_0x3544a1();},_0x1cea43);_0x35f8a8=onAbort(_0x3aba64,()=>{const _0x3731df=_0x465650;clearTimeout(_0x59a2d1),_0x1a7273(_0x3aba64[_0x3731df(0x1ff)]);});});}function buildURL(_0x3a3101,_0x341a47){const _0x558409=_0x351574,_0xfbdddd=joinURL(_0x341a47[_0x558409(0x201)],_0x3a3101),_0x58d150=_0x341a47[_0x558409(0x20f)]??{},_0x2f5010=Object[_0x558409(0x1fa)](_0x58d150)[_0x558409(0x1d1)](_0x139ae8=>_0x58d150[_0x139ae8]!==void 0x0)[_0x558409(0x1eb)](_0x2992ce=>{const _0x1eeb56=_0x558409,_0x2fa4a9=_0x58d150[_0x2992ce];return(Array[_0x1eeb56(0x1ef)](_0x2fa4a9)?_0x2fa4a9:[_0x2fa4a9])['map'](_0x413df2=>encodeURIComponent(_0x2992ce)+'='+encodeURIComponent(String(_0x413df2)));})['join']('&');if(!_0x2f5010)return _0xfbdddd;return''+_0xfbdddd+(_0xfbdddd[_0x558409(0x208)]('?')?'&':'?')+_0x2f5010;}function joinURL(_0xc9c725,_0x5c5f4b){const _0x5416d7=_0x351574;if(!_0xc9c725||isAbsoluteURL(_0x5c5f4b))return _0x5c5f4b;return _0xc9c725[_0x5416d7(0x20c)](/\/+$/,'')+'/'+_0x5c5f4b['replace'](/^\/+/,'');}function _0x3192(){const _0x320e1a=['createHttpAborter','baseURL','method','tempFilePath','emit','parseResponse','response','PATCH','includes','name','http','test','replace','onResponseError','fail','query','15123144jlAnLe','HttpError','parse','6738048RErlwD','onSuccess','defineProperty','removeEventListener','firstIpv4','1zIaQRD','resolve','formData','type','7fMmGVE','retryDelay','responseType','onProgress','onFail','options','3458793dAXUyE','2109010zVdftr','uploadFile','aborted','data','json','GET','success','10RPeexx','filter','enableQuic','function','catch','onProgressUpdate','text','url','ignoreResponseError','abort','addEventListener','files','_abort','onResponse','request','onRequestError','header','downloadFile','errMsg','sslVerify','create','enumerable','onHeadersReceived','assign','forceCellularNetwork','5yCBSUn','enableHttpDNS','flatMap','2491400ToKVZZ','download','listeners','isArray','64791TCjgSo','createHttp','indexOf','filePath','headers','upload','push','<no\x20response\x20body>','timeout','complete','keys','15437488odBFLk','184cOvrfM','statusCode','number','reason'];_0x3192=function(){return _0x320e1a;};return _0x3192();}function isAbsoluteURL(_0x5ccea9){const _0xb1a615=_0x351574;return/^[a-z][a-z\d+\-.]*:\/\//i[_0xb1a615(0x20b)](_0x5ccea9)||_0x5ccea9['startsWith']('//');}function dispatchHttp(_0x461db6,_0x3b6e1e,_0x247ea3){const _0x68a1fd=buildURL(_0x3b6e1e,_0x247ea3);return withRetry(_0x247ea3,()=>attemptRequest(_0x461db6,_0x3b6e1e,_0x68a1fd,_0x247ea3));}function attemptRequest(_0x4e39c3,_0x1e5cc2,_0x2c368e,_0x3011b5){const _0x19cba3=!!_0x3011b5['raw'];return new Promise((_0x355fb3,_0x5353d4)=>{let _0x7773e5=![];const _0x37f1a5=_0x2e573a=>{if(_0x7773e5)return;_0x7773e5=!![],_0x2e573a();},_0x10ff81=onAbort(_0x3011b5['signal'],()=>{const _0x318cb3=_0x5285;_0x37f1a5(()=>_0x5353d4(_0x3011b5['signal'][_0x318cb3(0x1ff)]));}),_0x13ba6a=_0x242e84=>{_0x10ff81(),_0x37f1a5(_0x242e84);};callRequestHooks(_0x1e5cc2,_0x3011b5)['then'](()=>{if(_0x7773e5)return;dispatch(_0x4e39c3,_0x2c368e,_0x3011b5,{'onSuccess':_0xcdca6=>{const _0x4b0a19=_0x5285;Promise['resolve']()['then'](()=>refineResponse(_0xcdca6,_0x3011b5))['then'](async _0x584a5b=>{const _0x15b8f7=_0x5285;if(isResponseError(_0xcdca6)){await callResponseErrorHooks(_0x1e5cc2,_0x3011b5,_0x584a5b);if(!_0x3011b5[_0x15b8f7(0x1d8)])throw createResponseError(_0x1e5cc2,_0x3011b5,_0x584a5b);}else await callResponseHooks(_0x1e5cc2,_0x3011b5,_0x584a5b);_0x13ba6a(()=>_0x355fb3(_0x19cba3?_0x584a5b:_0x584a5b['data']));})[_0x4b0a19(0x1d4)](_0x1c1f3e=>_0x13ba6a(()=>_0x5353d4(_0x1c1f3e)));},'onFail':_0x73c10a=>{const _0x3416a4=_0x5285;Promise[_0x3416a4(0x1bf)]()['then'](async()=>{const _0x256138=normalizeError(_0x73c10a);if(!isAbortError(_0x256138))await callRequestErrorHooks(_0x1e5cc2,_0x3011b5,_0x256138);throw _0x256138;})[_0x3416a4(0x1d4)](_0x33ec24=>_0x13ba6a(()=>_0x5353d4(_0x33ec24)));}});})['catch'](async _0x2de28c=>{const _0x1806c5=normalizeError(_0x2de28c);await callRequestErrorHooks(_0x1e5cc2,_0x3011b5,_0x1806c5),_0x13ba6a(()=>_0x5353d4(_0x1806c5));});});}const _0x488ff8={};_0x488ff8['method']='GET',_0x488ff8[_0x351574(0x1c4)]=_0x351574(0x1cd);const defaultConfig=_0x488ff8;function _0x5285(_0x2e7584,_0x4bc5f2){_0x2e7584=_0x2e7584-0x1b9;const _0x319204=_0x3192();let _0x5285e0=_0x319204[_0x2e7584];return _0x5285e0;}function createHttp(_0x4fadc9={}){const _0x58b816=_0x351574,_0x5bf06c=(_0x273403,_0x14639a)=>{const _0x525d50=_0x5285;return dispatchHttp(_0x525d50(0x1de),_0x273403,mergeOptions(defaultConfig,_0x4fadc9,_0x14639a));},_0x4f4e25=(_0x3ae0c5,_0x3cbb5e)=>{const _0x2530bb=_0x5285,_0x4cc701={};return _0x4cc701[_0x2530bb(0x202)]='POST',dispatchHttp(_0x2530bb(0x1f5),_0x3ae0c5,mergeOptions(defaultConfig,_0x4fadc9,_0x3cbb5e,_0x4cc701));},_0xdb3334=(_0x173979,_0x482970)=>{const _0x233ab8=_0x5285,_0x4a26ea={};return _0x4a26ea[_0x233ab8(0x202)]=_0x233ab8(0x1ce),dispatchHttp(_0x233ab8(0x1ed),_0x173979,mergeOptions(defaultConfig,_0x4fadc9,_0x482970,_0x4a26ea));},_0x456954=_0x5f20c3=>createHttp(mergeOptions(_0x4fadc9,_0x5f20c3)),_0x32e13={};return _0x32e13[_0x58b816(0x1de)]=_0x5bf06c,_0x32e13['upload']=_0x4f4e25,_0x32e13['download']=_0xdb3334,_0x32e13[_0x58b816(0x1e4)]=_0x456954,_0x32e13;}const http=createHttp(),_0x25be38={};_0x25be38['enumerable']=!![],_0x25be38['get']=function(){return createHttp;},Object[_0x351574(0x1bb)](exports,_0x351574(0x1f1),_0x25be38);const _0xc1833f={};_0xc1833f[_0x351574(0x1e5)]=!![],_0xc1833f['get']=function(){return createHttpAborter;},Object[_0x351574(0x1bb)](exports,_0x351574(0x200),_0xc1833f);const _0xe345cf={};_0xe345cf[_0x351574(0x1e5)]=!![],_0xe345cf['get']=function(){return http;},Object['defineProperty'](exports,_0x351574(0x20a),_0xe345cf);
|