@unicom-cloud/utils 0.1.25 → 0.1.27
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/axios/chunk/BJvTEV6n.js +253 -0
- package/axios/chunk/CB3wlosT.js +64 -0
- package/axios/index.d.ts +796 -0
- package/axios/index.js +43 -0
- package/axios/lib/axios.js +1635 -0
- package/axios/lib/utils.js +5 -0
- package/axios/mock-adapter/index.d.ts +59 -0
- package/axios/mock-adapter/index.js +205 -0
- package/axios/mock-adapter/request.js +50 -0
- package/axios/mock-adapter/utils.js +130 -0
- package/case-name/index.js +1 -1
- package/caseName.js +1 -1
- package/class-name/index.js +1 -1
- package/className.js +1 -1
- package/clipboard-copy/index.js +1 -1
- package/clipboardCopy.js +1 -1
- package/constant/address.js +1 -1
- package/constant/chineseCharacters.js +1 -1
- package/constant/constellations.js +1 -1
- package/constant/domain.js +1 -1
- package/constant/emoji.js +1 -1
- package/constant/identity.js +1 -1
- package/constant/index.js +1 -1
- package/constant/keyboardCode.js +1 -1
- package/constant/licensePlate.js +1 -1
- package/constant/name.js +1 -1
- package/constant/platform.js +16 -17
- package/constant/protocol.js +1 -1
- package/constant/ui.js +16 -16
- package/constant.js +1 -1
- package/content-disposition/index.js +1 -1
- package/contentDisposition.js +1 -1
- package/cookie/index.js +1 -1
- package/cookie/src/index.js +1 -1
- package/cookie.js +1 -1
- package/date/convertTime.js +1 -1
- package/date/convertToDuration.js +1 -1
- package/date/index.js +1 -1
- package/date.js +1 -1
- package/decimal/decimal.js +1 -8
- package/decimal/index.js +1 -1
- package/decimal.js +1 -1
- package/dom-helpers/activeElement.js +1 -1
- package/dom-helpers/addClass.js +1 -1
- package/dom-helpers/addEventListener.js +1 -1
- package/dom-helpers/animate.js +1 -1
- package/dom-helpers/animationFrame.js +1 -1
- package/dom-helpers/attribute.js +1 -1
- package/dom-helpers/camelize.js +1 -1
- package/dom-helpers/camelizeStyle.js +1 -1
- package/dom-helpers/canUseDOM.js +1 -1
- package/dom-helpers/childElements.js +1 -1
- package/dom-helpers/childNodes.js +1 -1
- package/dom-helpers/clear.js +1 -1
- package/dom-helpers/closest.js +1 -1
- package/dom-helpers/collectElements.js +1 -1
- package/dom-helpers/collectSiblings.js +1 -1
- package/dom-helpers/contains.js +1 -1
- package/dom-helpers/css.js +1 -1
- package/dom-helpers/filterEventHandler.js +1 -1
- package/dom-helpers/getComputedStyle.js +1 -1
- package/dom-helpers/getScrollAccessor.js +1 -1
- package/dom-helpers/hasClass.js +1 -1
- package/dom-helpers/height.js +1 -1
- package/dom-helpers/hyphenate.js +1 -1
- package/dom-helpers/hyphenateStyle.js +1 -1
- package/dom-helpers/index.js +1 -1
- package/dom-helpers/insertAfter.js +1 -1
- package/dom-helpers/isDocument.js +1 -1
- package/dom-helpers/isInput.js +1 -1
- package/dom-helpers/isTransform.js +1 -1
- package/dom-helpers/isVisible.js +1 -1
- package/dom-helpers/isWindow.js +1 -1
- package/dom-helpers/listen.js +1 -1
- package/dom-helpers/matches.js +1 -1
- package/dom-helpers/nextUntil.js +1 -1
- package/dom-helpers/offset.js +1 -1
- package/dom-helpers/offsetParent.js +1 -1
- package/dom-helpers/ownerDocument.js +1 -1
- package/dom-helpers/ownerWindow.js +1 -1
- package/dom-helpers/parents.js +1 -1
- package/dom-helpers/position.js +1 -1
- package/dom-helpers/prepend.js +1 -1
- package/dom-helpers/querySelectorAll.js +1 -1
- package/dom-helpers/reflow.js +1 -1
- package/dom-helpers/remove.js +1 -1
- package/dom-helpers/removeClass.js +1 -1
- package/dom-helpers/removeEventListener.js +1 -1
- package/dom-helpers/scrollLeft.js +1 -1
- package/dom-helpers/scrollParent.js +1 -1
- package/dom-helpers/scrollTo.js +1 -1
- package/dom-helpers/scrollTop.js +1 -1
- package/dom-helpers/scrollbarSize.js +1 -1
- package/dom-helpers/siblings.js +1 -1
- package/dom-helpers/text.js +1 -1
- package/dom-helpers/toggleClass.js +1 -1
- package/dom-helpers/transitionEnd.js +1 -1
- package/dom-helpers/triggerEvent.js +1 -1
- package/dom-helpers/types.js +1 -1
- package/dom-helpers/width.js +1 -1
- package/domHelpers.js +1 -1
- package/emitter/index.js +1 -1
- package/emitter/src/index.js +1 -1
- package/emitter.js +1 -1
- package/file/fileToURL.js +1 -1
- package/file/index.js +1 -1
- package/file/saveAs.js +1 -1
- package/file.js +1 -1
- package/idb/index.js +1 -1
- package/idb.js +1 -1
- package/index.js +1 -1
- package/invariant/index.js +1 -1
- package/invariant.js +1 -1
- package/is/index.js +140 -123
- package/is.js +77 -76
- package/js-cookie/index.js +1 -1
- package/js-cookie/src/api.js +1 -1
- package/js-cookie/src/assign.js +1 -1
- package/js-cookie/src/converter.js +1 -1
- package/jsCookie.js +1 -1
- package/lunar/index.js +1 -1
- package/lunar/lib/Holiday.js +1 -1
- package/lunar/lib/HolidayUtil.js +1 -1
- package/lunar/lib/I18n.js +1 -1
- package/lunar/lib/JieQi.js +1 -1
- package/lunar/lib/Lunar.js +1 -1
- package/lunar/lib/LunarMonth.js +1 -1
- package/lunar/lib/LunarTime.js +1 -1
- package/lunar/lib/LunarUtil.js +1 -1
- package/lunar/lib/LunarYear.js +1 -1
- package/lunar/lib/ShouXingUtil.js +1 -1
- package/lunar/lib/Solar.js +1 -1
- package/lunar/lib/SolarHalfYear.js +1 -1
- package/lunar/lib/SolarMonth.js +1 -1
- package/lunar/lib/SolarSeason.js +1 -1
- package/lunar/lib/SolarUtil.js +1 -1
- package/lunar/lib/SolarWeek.js +1 -1
- package/lunar/lib/SolarYear.js +1 -1
- package/lunar/lib/index.js +1 -1
- package/lunar.js +1 -1
- package/math/index.js +1 -1
- package/math.js +1 -1
- package/md5/index.js +1 -1
- package/md5.js +1 -1
- package/mock/MockWebSocket.js +1 -1
- package/mock/MockXMLHttpRequest.js +1 -1
- package/mock/index.js +1 -1
- package/mock.js +1 -1
- package/normalize-wheel/ExecutionEnvironment.js +1 -1
- package/normalize-wheel/UserAgent_DEPRECATED.js +1 -1
- package/normalize-wheel/index.js +1 -1
- package/normalize-wheel/isEventSupported.js +1 -15
- package/normalizeWheel.js +1 -1
- package/number-to-chinese/index.js +1 -1
- package/numberToChinese.js +1 -1
- package/nzh/cn.js +1 -1
- package/nzh/hk.js +1 -1
- package/nzh/index.js +1 -1
- package/nzh/nzh.js +1 -1
- package/nzh/src/autoGet.js +1 -1
- package/nzh/src/index.js +1 -1
- package/nzh/src/langs/cn_b.js +1 -1
- package/nzh/src/langs/cn_s.js +1 -1
- package/nzh/src/langs/hk_b.js +1 -1
- package/nzh/src/langs/hk_s.js +1 -1
- package/nzh/src/utils.js +1 -1
- package/nzh.js +1 -1
- package/object-keys-sort/index.js +1 -1
- package/object-prototype-to-string-call/index.js +7 -0
- package/objectKeysSort.js +1 -1
- package/objectPrototypeToStringCall.js +5 -0
- package/package.json +1 -1
- package/pinyin/index.js +1 -1
- package/pinyin/simplified.js +1 -1
- package/pinyin/src/core.js +1 -1
- package/pinyin/src/simplified.js +1 -1
- package/pinyin/src/simplified_dict.js +1 -1
- package/pinyin/src/traditional.js +1 -1
- package/pinyin/src/traditional_dict.js +1 -1
- package/pinyin/traditional.js +1 -1
- package/pinyin.js +1 -1
- package/query-string/base.js +1 -1
- package/query-string/index.js +1 -1
- package/query-string/splitOnFirst.js +1 -1
- package/queryString.js +1 -1
- package/random/address.js +1 -1
- package/random/constellation.js +1 -1
- package/random/image.js +1 -1
- package/random/index.js +1 -1
- package/random/licensePlate.js +1 -1
- package/random/name.js +1 -1
- package/random/number.js +1 -1
- package/random/text.js +12 -11
- package/random/time.js +1 -1
- package/random/web.js +1 -1
- package/random.js +1 -1
- package/screenfull/index.js +21 -20
- package/screenfull.js +4 -3
- package/sleep/index.js +1 -1
- package/sleep.js +1 -1
- package/snapdom/index.js +1 -1
- package/snapdom/src/api/preCache.js +1 -1
- package/snapdom/src/api/snapdom.js +1 -1
- package/snapdom/src/core/cache.js +1 -1
- package/snapdom/src/core/capture.js +1 -1
- package/snapdom/src/core/clone.js +1 -1
- package/snapdom/src/core/context.js +1 -1
- package/snapdom/src/core/plugins.js +1 -1
- package/snapdom/src/core/prepare.js +1 -1
- package/snapdom/src/exporters/download.js +1 -1
- package/snapdom/src/exporters/toBlob.js +1 -1
- package/snapdom/src/exporters/toCanvas.js +1 -1
- package/snapdom/src/exporters/toImg.js +1 -1
- package/snapdom/src/modules/CSSVar.js +1 -1
- package/snapdom/src/modules/background.js +1 -1
- package/snapdom/src/modules/changeCSS.js +1 -1
- package/snapdom/src/modules/counter.js +1 -1
- package/snapdom/src/modules/fonts.js +1 -1
- package/snapdom/src/modules/iconFonts.js +1 -1
- package/snapdom/src/modules/images.js +1 -1
- package/snapdom/src/modules/lineClamp.js +1 -1
- package/snapdom/src/modules/pseudo.js +1 -1
- package/snapdom/src/modules/rasterize.js +1 -1
- package/snapdom/src/modules/snapFetch.js +1 -1
- package/snapdom/src/modules/styles.js +1 -1
- package/snapdom/src/modules/svgDefs.js +1 -1
- package/snapdom/src/utils/browser.js +1 -1
- package/snapdom/src/utils/css.js +1 -1
- package/snapdom/src/utils/helpers.js +1 -1
- package/snapdom/src/utils/image.js +1 -1
- package/snapdom.js +1 -1
- package/tinycolor/index.js +1 -1
- package/tinycolor/src/conversion.js +1 -1
- package/tinycolor/src/css-color-names.js +1 -1
- package/tinycolor/src/format-input.js +1 -1
- package/tinycolor/src/from-ratio.js +1 -1
- package/tinycolor/src/index.js +1 -1
- package/tinycolor/src/random.js +1 -1
- package/tinycolor/src/readability.js +1 -1
- package/tinycolor/src/to-ms-filter.js +1 -1
- package/tinycolor/src/utils.js +1 -1
- package/tinycolor.js +1 -1
- package/tree/index.js +31 -30
- package/tree/search/index.js +1 -1
- package/tree.js +13 -12
- package/tween/index.js +1 -1
- package/tween/src/easing.js +1 -1
- package/tween/src/tween.js +1 -1
- package/tween.js +1 -1
- package/types/constant/platform.d.ts +8 -7
- package/types/is/index.d.ts +16 -16
- package/types/object-prototype-to-string-call/index.d.ts +2 -0
- package/types/validate/src/locale/en-US.d.ts +2 -2
- package/types/validate/src/locale/zh-CN.d.ts +2 -2
- package/ui-color/compareColorByRange.js +1 -1
- package/ui-color/index.js +1 -1
- package/uiColor.js +1 -1
- package/url-toolkit/index.js +1 -1
- package/url-toolkit/src/url-toolkit.js +1 -1
- package/urlToolkit.js +1 -1
- package/validate/index.js +11 -11
- package/validate/src/index.js +1 -1
- package/validate/src/locale/en-US.js +1 -1
- package/validate/src/locale/zh-CN.js +1 -1
- package/validate/src/message.js +3 -3
- package/validate/src/rules/array.js +1 -1
- package/validate/src/rules/base.js +15 -15
- package/validate/src/rules/boolean.js +1 -1
- package/validate/src/rules/custom.js +1 -1
- package/validate/src/rules/number.js +1 -1
- package/validate/src/rules/object.js +1 -1
- package/validate/src/rules/string.js +1 -1
- package/validate/src/rules/type.js +1 -1
- package/validate/src/utils.js +1 -1
- package/validate.js +11 -11
- package/version/index.js +1 -1
- package/version.js +1 -1
|
@@ -0,0 +1,253 @@
|
|
|
1
|
+
/* 2025-11-07 13:23:48 */
|
|
2
|
+
function R(e, t) {
|
|
3
|
+
return function() {
|
|
4
|
+
return e.apply(t, arguments);
|
|
5
|
+
};
|
|
6
|
+
}
|
|
7
|
+
const { toString: T } = Object.prototype, { getPrototypeOf: A } = Object, { iterator: g, toStringTag: S } = Symbol, O = /* @__PURE__ */ ((e) => (t) => {
|
|
8
|
+
const n = T.call(t);
|
|
9
|
+
return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
|
|
10
|
+
})(/* @__PURE__ */ Object.create(null)), f = (e) => (e = e.toLowerCase(), (t) => O(t) === e), F = (e) => (t) => typeof t === e, { isArray: p } = Array, a = F("undefined");
|
|
11
|
+
function d(e) {
|
|
12
|
+
return e !== null && !a(e) && e.constructor !== null && !a(e.constructor) && c(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
13
|
+
}
|
|
14
|
+
const B = f("ArrayBuffer");
|
|
15
|
+
function M(e) {
|
|
16
|
+
let t;
|
|
17
|
+
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && B(e.buffer), t;
|
|
18
|
+
}
|
|
19
|
+
const k = F("string"), c = F("function"), P = F("number"), y = (e) => e !== null && typeof e == "object", U = (e) => e === !0 || e === !1, w = (e) => {
|
|
20
|
+
if (O(e) !== "object")
|
|
21
|
+
return !1;
|
|
22
|
+
const t = A(e);
|
|
23
|
+
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(S in e) && !(g in e);
|
|
24
|
+
}, N = (e) => {
|
|
25
|
+
if (!y(e) || d(e))
|
|
26
|
+
return !1;
|
|
27
|
+
try {
|
|
28
|
+
return Object.keys(e).length === 0 && Object.getPrototypeOf(e) === Object.prototype;
|
|
29
|
+
} catch {
|
|
30
|
+
return !1;
|
|
31
|
+
}
|
|
32
|
+
}, I = f("Date"), V = f("File"), _ = f("Blob"), q = f("FileList"), H = (e) => y(e) && c(e.pipe), z = (e) => {
|
|
33
|
+
let t;
|
|
34
|
+
return e && (typeof FormData == "function" && e instanceof FormData || c(e.append) && ((t = O(e)) === "formdata" || // detect form-data instance
|
|
35
|
+
t === "object" && c(e.toString) && e.toString() === "[object FormData]"));
|
|
36
|
+
}, J = f("URLSearchParams"), [K, $, W, G] = [
|
|
37
|
+
"ReadableStream",
|
|
38
|
+
"Request",
|
|
39
|
+
"Response",
|
|
40
|
+
"Headers"
|
|
41
|
+
].map(f), Q = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
42
|
+
function m(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
43
|
+
if (e === null || typeof e > "u")
|
|
44
|
+
return;
|
|
45
|
+
let r, s;
|
|
46
|
+
if (typeof e != "object" && (e = [e]), p(e))
|
|
47
|
+
for (r = 0, s = e.length; r < s; r++)
|
|
48
|
+
t.call(null, e[r], r, e);
|
|
49
|
+
else {
|
|
50
|
+
if (d(e))
|
|
51
|
+
return;
|
|
52
|
+
const o = n ? Object.getOwnPropertyNames(e) : Object.keys(e), i = o.length;
|
|
53
|
+
let l;
|
|
54
|
+
for (r = 0; r < i; r++)
|
|
55
|
+
l = o[r], t.call(null, e[l], l, e);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
function E(e, t) {
|
|
59
|
+
if (d(e))
|
|
60
|
+
return null;
|
|
61
|
+
t = t.toLowerCase();
|
|
62
|
+
const n = Object.keys(e);
|
|
63
|
+
let r = n.length, s;
|
|
64
|
+
for (; r-- > 0; )
|
|
65
|
+
if (s = n[r], t === s.toLowerCase())
|
|
66
|
+
return s;
|
|
67
|
+
return null;
|
|
68
|
+
}
|
|
69
|
+
const u = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, L = (e) => !a(e) && e !== u;
|
|
70
|
+
function h() {
|
|
71
|
+
const { caseless: e, skipUndefined: t } = L(this) && this || {}, n = {}, r = (s, o) => {
|
|
72
|
+
const i = e && E(n, o) || o;
|
|
73
|
+
w(n[i]) && w(s) ? n[i] = h(n[i], s) : w(s) ? n[i] = h({}, s) : p(s) ? n[i] = s.slice() : (!t || !a(s)) && (n[i] = s);
|
|
74
|
+
};
|
|
75
|
+
for (let s = 0, o = arguments.length; s < o; s++)
|
|
76
|
+
arguments[s] && m(arguments[s], r);
|
|
77
|
+
return n;
|
|
78
|
+
}
|
|
79
|
+
const X = (e, t, n, { allOwnKeys: r } = {}) => (m(
|
|
80
|
+
t,
|
|
81
|
+
(s, o) => {
|
|
82
|
+
n && c(s) ? e[o] = R(s, n) : e[o] = s;
|
|
83
|
+
},
|
|
84
|
+
{ allOwnKeys: r }
|
|
85
|
+
), e), Y = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Z = (e, t, n, r) => {
|
|
86
|
+
e.prototype = Object.create(
|
|
87
|
+
t.prototype,
|
|
88
|
+
r
|
|
89
|
+
), e.prototype.constructor = e, Object.defineProperty(e, "super", {
|
|
90
|
+
value: t.prototype
|
|
91
|
+
}), n && Object.assign(e.prototype, n);
|
|
92
|
+
}, j = (e, t, n, r) => {
|
|
93
|
+
let s, o, i;
|
|
94
|
+
const l = {};
|
|
95
|
+
if (t = t || {}, e == null) return t;
|
|
96
|
+
do {
|
|
97
|
+
for (s = Object.getOwnPropertyNames(e), o = s.length; o-- > 0; )
|
|
98
|
+
i = s[o], (!r || r(i, e, t)) && !l[i] && (t[i] = e[i], l[i] = !0);
|
|
99
|
+
e = n !== !1 && A(e);
|
|
100
|
+
} while (e && (!n || n(e, t)) && e !== Object.prototype);
|
|
101
|
+
return t;
|
|
102
|
+
}, v = (e, t, n) => {
|
|
103
|
+
e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
|
|
104
|
+
const r = e.indexOf(t, n);
|
|
105
|
+
return r !== -1 && r === n;
|
|
106
|
+
}, ee = (e) => {
|
|
107
|
+
if (!e) return null;
|
|
108
|
+
if (p(e)) return e;
|
|
109
|
+
let t = e.length;
|
|
110
|
+
if (!P(t)) return null;
|
|
111
|
+
const n = new Array(t);
|
|
112
|
+
for (; t-- > 0; )
|
|
113
|
+
n[t] = e[t];
|
|
114
|
+
return n;
|
|
115
|
+
}, te = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && A(Uint8Array)), ne = (e, t) => {
|
|
116
|
+
const r = (e && e[g]).call(e);
|
|
117
|
+
let s;
|
|
118
|
+
for (; (s = r.next()) && !s.done; ) {
|
|
119
|
+
const o = s.value;
|
|
120
|
+
t.call(e, o[0], o[1]);
|
|
121
|
+
}
|
|
122
|
+
}, re = (e, t) => {
|
|
123
|
+
let n;
|
|
124
|
+
const r = [];
|
|
125
|
+
for (; (n = e.exec(t)) !== null; )
|
|
126
|
+
r.push(n);
|
|
127
|
+
return r;
|
|
128
|
+
}, se = f("HTMLFormElement"), oe = (e) => e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function(n, r, s) {
|
|
129
|
+
return r.toUpperCase() + s;
|
|
130
|
+
}), x = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), ie = f("RegExp"), C = (e, t) => {
|
|
131
|
+
const n = Object.getOwnPropertyDescriptors(e), r = {};
|
|
132
|
+
m(n, (s, o) => {
|
|
133
|
+
let i;
|
|
134
|
+
(i = t(s, o, e)) !== !1 && (r[o] = i || s);
|
|
135
|
+
}), Object.defineProperties(e, r);
|
|
136
|
+
}, ce = (e) => {
|
|
137
|
+
C(e, (t, n) => {
|
|
138
|
+
if (c(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
|
|
139
|
+
return !1;
|
|
140
|
+
const r = e[n];
|
|
141
|
+
if (c(r)) {
|
|
142
|
+
if (t.enumerable = !1, "writable" in t) {
|
|
143
|
+
t.writable = !1;
|
|
144
|
+
return;
|
|
145
|
+
}
|
|
146
|
+
t.set || (t.set = () => {
|
|
147
|
+
throw Error("Can not rewrite read-only method '" + n + "'");
|
|
148
|
+
});
|
|
149
|
+
}
|
|
150
|
+
});
|
|
151
|
+
}, fe = (e, t) => {
|
|
152
|
+
const n = {}, r = (s) => {
|
|
153
|
+
s.forEach((o) => {
|
|
154
|
+
n[o] = !0;
|
|
155
|
+
});
|
|
156
|
+
};
|
|
157
|
+
return p(e) ? r(e) : r(String(e).split(t)), n;
|
|
158
|
+
}, le = () => {
|
|
159
|
+
}, ue = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
|
|
160
|
+
function ae(e) {
|
|
161
|
+
return !!(e && c(e.append) && e[S] === "FormData" && e[g]);
|
|
162
|
+
}
|
|
163
|
+
const pe = (e) => {
|
|
164
|
+
const t = new Array(10), n = (r, s) => {
|
|
165
|
+
if (y(r)) {
|
|
166
|
+
if (t.indexOf(r) >= 0)
|
|
167
|
+
return;
|
|
168
|
+
if (d(r))
|
|
169
|
+
return r;
|
|
170
|
+
if (!("toJSON" in r)) {
|
|
171
|
+
t[s] = r;
|
|
172
|
+
const o = p(r) ? [] : {};
|
|
173
|
+
return m(r, (i, l) => {
|
|
174
|
+
const b = n(i, s + 1);
|
|
175
|
+
!a(b) && (o[l] = b);
|
|
176
|
+
}), t[s] = void 0, o;
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
return r;
|
|
180
|
+
};
|
|
181
|
+
return n(e, 0);
|
|
182
|
+
}, de = f("AsyncFunction"), ye = (e) => e && (y(e) || c(e)) && c(e.then) && c(e.catch), D = ((e, t) => e ? setImmediate : t ? ((n, r) => (u.addEventListener(
|
|
183
|
+
"message",
|
|
184
|
+
({ source: s, data: o }) => {
|
|
185
|
+
s === u && o === n && r.length && r.shift()();
|
|
186
|
+
},
|
|
187
|
+
!1
|
|
188
|
+
), (s) => {
|
|
189
|
+
r.push(s), u.postMessage(n, "*");
|
|
190
|
+
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(typeof setImmediate == "function", c(u.postMessage)), me = typeof queueMicrotask < "u" ? queueMicrotask.bind(u) : typeof process < "u" && process.nextTick || D, we = (e) => e != null && c(e[g]), ge = {
|
|
191
|
+
isArray: p,
|
|
192
|
+
isArrayBuffer: B,
|
|
193
|
+
isBuffer: d,
|
|
194
|
+
isFormData: z,
|
|
195
|
+
isArrayBufferView: M,
|
|
196
|
+
isString: k,
|
|
197
|
+
isNumber: P,
|
|
198
|
+
isBoolean: U,
|
|
199
|
+
isObject: y,
|
|
200
|
+
isPlainObject: w,
|
|
201
|
+
isEmptyObject: N,
|
|
202
|
+
isReadableStream: K,
|
|
203
|
+
isRequest: $,
|
|
204
|
+
isResponse: W,
|
|
205
|
+
isHeaders: G,
|
|
206
|
+
isUndefined: a,
|
|
207
|
+
isDate: I,
|
|
208
|
+
isFile: V,
|
|
209
|
+
isBlob: _,
|
|
210
|
+
isRegExp: ie,
|
|
211
|
+
isFunction: c,
|
|
212
|
+
isStream: H,
|
|
213
|
+
isURLSearchParams: J,
|
|
214
|
+
isTypedArray: te,
|
|
215
|
+
isFileList: q,
|
|
216
|
+
forEach: m,
|
|
217
|
+
merge: h,
|
|
218
|
+
extend: X,
|
|
219
|
+
trim: Q,
|
|
220
|
+
stripBOM: Y,
|
|
221
|
+
inherits: Z,
|
|
222
|
+
toFlatObject: j,
|
|
223
|
+
kindOf: O,
|
|
224
|
+
kindOfTest: f,
|
|
225
|
+
endsWith: v,
|
|
226
|
+
toArray: ee,
|
|
227
|
+
forEachEntry: ne,
|
|
228
|
+
matchAll: re,
|
|
229
|
+
isHTMLForm: se,
|
|
230
|
+
hasOwnProperty: x,
|
|
231
|
+
hasOwnProp: x,
|
|
232
|
+
// an alias to avoid ESLint no-prototype-builtins detection
|
|
233
|
+
reduceDescriptors: C,
|
|
234
|
+
freezeMethods: ce,
|
|
235
|
+
toObjectSet: fe,
|
|
236
|
+
toCamelCase: oe,
|
|
237
|
+
noop: le,
|
|
238
|
+
toFiniteNumber: ue,
|
|
239
|
+
findKey: E,
|
|
240
|
+
global: u,
|
|
241
|
+
isContextDefined: L,
|
|
242
|
+
isSpecCompliantForm: ae,
|
|
243
|
+
toJSONObject: pe,
|
|
244
|
+
isAsyncFn: de,
|
|
245
|
+
isThenable: ye,
|
|
246
|
+
setImmediate: D,
|
|
247
|
+
asap: me,
|
|
248
|
+
isIterable: we
|
|
249
|
+
};
|
|
250
|
+
export {
|
|
251
|
+
ge as A,
|
|
252
|
+
R as b
|
|
253
|
+
};
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/* 2025-11-07 13:23:48 */
|
|
2
|
+
import { A as c } from "./BJvTEV6n.js";
|
|
3
|
+
function r(t, i, o, a, e) {
|
|
4
|
+
Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = t, this.name = "AxiosError", i && (this.code = i), o && (this.config = o), a && (this.request = a), e && (this.response = e, this.status = e.status ? e.status : null);
|
|
5
|
+
}
|
|
6
|
+
c.inherits(r, Error, {
|
|
7
|
+
toJSON: function() {
|
|
8
|
+
return {
|
|
9
|
+
// Standard
|
|
10
|
+
message: this.message,
|
|
11
|
+
name: this.name,
|
|
12
|
+
// Microsoft
|
|
13
|
+
description: this.description,
|
|
14
|
+
number: this.number,
|
|
15
|
+
// Mozilla
|
|
16
|
+
fileName: this.fileName,
|
|
17
|
+
lineNumber: this.lineNumber,
|
|
18
|
+
columnNumber: this.columnNumber,
|
|
19
|
+
stack: this.stack,
|
|
20
|
+
// Axios
|
|
21
|
+
config: c.toJSONObject(this.config),
|
|
22
|
+
code: this.code,
|
|
23
|
+
status: this.status
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
const u = r.prototype, R = {};
|
|
28
|
+
[
|
|
29
|
+
"ERR_BAD_OPTION_VALUE",
|
|
30
|
+
"ERR_BAD_OPTION",
|
|
31
|
+
"ECONNABORTED",
|
|
32
|
+
"ETIMEDOUT",
|
|
33
|
+
"ERR_NETWORK",
|
|
34
|
+
"ERR_FR_TOO_MANY_REDIRECTS",
|
|
35
|
+
"ERR_DEPRECATED",
|
|
36
|
+
"ERR_BAD_RESPONSE",
|
|
37
|
+
"ERR_BAD_REQUEST",
|
|
38
|
+
"ERR_CANCELED",
|
|
39
|
+
"ERR_NOT_SUPPORT",
|
|
40
|
+
"ERR_INVALID_URL"
|
|
41
|
+
].forEach((t) => {
|
|
42
|
+
R[t] = { value: t };
|
|
43
|
+
});
|
|
44
|
+
Object.defineProperties(r, R);
|
|
45
|
+
Object.defineProperty(u, "isAxiosError", { value: !0 });
|
|
46
|
+
r.from = (t, i, o, a, e, E) => {
|
|
47
|
+
const s = Object.create(u);
|
|
48
|
+
c.toFlatObject(
|
|
49
|
+
t,
|
|
50
|
+
s,
|
|
51
|
+
function(m) {
|
|
52
|
+
return m !== Error.prototype;
|
|
53
|
+
},
|
|
54
|
+
(n) => n !== "isAxiosError"
|
|
55
|
+
);
|
|
56
|
+
const h = t && t.message ? t.message : "Error", l = i == null && t ? t.code : i;
|
|
57
|
+
return r.call(s, h, l, o, a, e), t && s.cause == null && Object.defineProperty(s, "cause", {
|
|
58
|
+
value: t,
|
|
59
|
+
configurable: !0
|
|
60
|
+
}), s.name = t && t.name || "Error", E && Object.assign(s, E), s;
|
|
61
|
+
};
|
|
62
|
+
export {
|
|
63
|
+
r as A
|
|
64
|
+
};
|