ndjjd-vite-plugin-federation 0.0.1 → 0.0.3
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.iife.js +7 -7
- package/dist/index.js +428 -426
- package/dist/index.umd.cjs +7 -7
- package/package.json +5 -1
- package/src/types/vite.d.ts +31 -0
- package/dist/global.d.ts +0 -14
- package/dist/types/global.d.ts +0 -14
package/dist/index.js
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
import on from "fs";
|
|
2
|
+
import q from "path";
|
|
3
|
+
function sn(t) {
|
|
2
4
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
3
5
|
}
|
|
4
|
-
function
|
|
6
|
+
function an(t) {
|
|
5
7
|
if (Object.prototype.hasOwnProperty.call(t, "__esModule")) return t;
|
|
6
8
|
var e = t.default;
|
|
7
9
|
if (typeof e == "function") {
|
|
@@ -25,14 +27,9 @@ function on(t) {
|
|
|
25
27
|
});
|
|
26
28
|
}), n;
|
|
27
29
|
}
|
|
28
|
-
var
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
default: H
|
|
32
|
-
}, Symbol.toStringTag, { value: "Module" })), J = /* @__PURE__ */ on(sn);
|
|
33
|
-
var Ie, Je;
|
|
34
|
-
function _t() {
|
|
35
|
-
return Je || (Je = 1, Ie = {
|
|
30
|
+
var X = { exports: {} }, Ie, Ke;
|
|
31
|
+
function Tt() {
|
|
32
|
+
return Ke || (Ke = 1, Ie = {
|
|
36
33
|
/* The local file header */
|
|
37
34
|
LOCHDR: 30,
|
|
38
35
|
// LOC header size
|
|
@@ -246,9 +243,9 @@ function _t() {
|
|
|
246
243
|
EF_ZIP64_DSN: 24
|
|
247
244
|
}), Ie;
|
|
248
245
|
}
|
|
249
|
-
var Oe = {},
|
|
246
|
+
var Oe = {}, Ye;
|
|
250
247
|
function ke() {
|
|
251
|
-
return
|
|
248
|
+
return Ye || (Ye = 1, (function(t) {
|
|
252
249
|
const e = {
|
|
253
250
|
/* Header error messages */
|
|
254
251
|
INVALID_LOC: "Invalid LOC header (bad signature)",
|
|
@@ -301,11 +298,11 @@ function ke() {
|
|
|
301
298
|
t[r] = n(e[r]);
|
|
302
299
|
})(Oe)), Oe;
|
|
303
300
|
}
|
|
304
|
-
var De,
|
|
305
|
-
function
|
|
306
|
-
if (
|
|
307
|
-
|
|
308
|
-
const t =
|
|
301
|
+
var De, Qe;
|
|
302
|
+
function cn() {
|
|
303
|
+
if (Qe) return De;
|
|
304
|
+
Qe = 1;
|
|
305
|
+
const t = on, e = q, n = Tt(), r = ke(), o = typeof process == "object" && process.platform === "win32", i = (a) => typeof a == "object" && a !== null, s = new Uint32Array(256).map((a, f) => {
|
|
309
306
|
for (let d = 0; d < 8; d++)
|
|
310
307
|
(f & 1) !== 0 ? f = 3988292384 ^ f >>> 1 : f >>>= 1;
|
|
311
308
|
return f >>> 0;
|
|
@@ -467,11 +464,11 @@ function an() {
|
|
|
467
464
|
return a.getFullYear() > 1979 && (f = (a.getFullYear() - 1980 & 127) << 9 | a.getMonth() + 1 << 5 | a.getDate(), d = a.getHours() << 11 | a.getMinutes() << 5 | a.getSeconds() >> 1), f << 16 | d;
|
|
468
465
|
}, c.isWin = o, c.crcTable = s, De;
|
|
469
466
|
}
|
|
470
|
-
var Re,
|
|
471
|
-
function
|
|
472
|
-
if (
|
|
473
|
-
|
|
474
|
-
const t =
|
|
467
|
+
var Re, et;
|
|
468
|
+
function fn() {
|
|
469
|
+
if (et) return Re;
|
|
470
|
+
et = 1;
|
|
471
|
+
const t = q;
|
|
475
472
|
return Re = function(e, { fs: n }) {
|
|
476
473
|
var r = e || "", o = s(), i = null;
|
|
477
474
|
function s() {
|
|
@@ -524,22 +521,22 @@ function cn() {
|
|
|
524
521
|
};
|
|
525
522
|
}, Re;
|
|
526
523
|
}
|
|
527
|
-
var _e,
|
|
528
|
-
function
|
|
529
|
-
return
|
|
524
|
+
var _e, tt;
|
|
525
|
+
function un() {
|
|
526
|
+
return tt || (tt = 1, _e = {
|
|
530
527
|
efs: !0,
|
|
531
528
|
encode: (t) => Buffer.from(t, "utf8"),
|
|
532
529
|
decode: (t) => t.toString("utf8")
|
|
533
530
|
}), _e;
|
|
534
531
|
}
|
|
535
|
-
var
|
|
532
|
+
var nt;
|
|
536
533
|
function ie() {
|
|
537
|
-
return
|
|
534
|
+
return nt || (nt = 1, X.exports = cn(), X.exports.Constants = Tt(), X.exports.Errors = ke(), X.exports.FileAttr = fn(), X.exports.decoder = un()), X.exports;
|
|
538
535
|
}
|
|
539
|
-
var de = {}, Te,
|
|
540
|
-
function
|
|
541
|
-
if (
|
|
542
|
-
|
|
536
|
+
var de = {}, Te, rt;
|
|
537
|
+
function ln() {
|
|
538
|
+
if (rt) return Te;
|
|
539
|
+
rt = 1;
|
|
543
540
|
var t = ie(), e = t.Constants;
|
|
544
541
|
return Te = function() {
|
|
545
542
|
var n = 20, r = 10, o = 0, i = 0, s = 0, c = 0, a = 0, f = 0, d = 0, g = 0, N = 0, y = 0, E = 0, C = 0, L = 0;
|
|
@@ -738,10 +735,10 @@ function un() {
|
|
|
738
735
|
};
|
|
739
736
|
}, Te;
|
|
740
737
|
}
|
|
741
|
-
var Ae,
|
|
742
|
-
function
|
|
743
|
-
if (
|
|
744
|
-
|
|
738
|
+
var Ae, ot;
|
|
739
|
+
function dn() {
|
|
740
|
+
if (ot) return Ae;
|
|
741
|
+
ot = 1;
|
|
745
742
|
var t = ie(), e = t.Constants;
|
|
746
743
|
return Ae = function() {
|
|
747
744
|
var n = 0, r = 0, o = 0, i = 0, s = 0;
|
|
@@ -808,14 +805,19 @@ function ln() {
|
|
|
808
805
|
};
|
|
809
806
|
}, Ae;
|
|
810
807
|
}
|
|
811
|
-
var
|
|
812
|
-
function
|
|
813
|
-
return
|
|
808
|
+
var st;
|
|
809
|
+
function At() {
|
|
810
|
+
return st || (st = 1, de.EntryHeader = ln(), de.MainHeader = dn()), de;
|
|
814
811
|
}
|
|
815
|
-
var re = {}
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
812
|
+
var re = {};
|
|
813
|
+
const G = {}, hn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
814
|
+
__proto__: null,
|
|
815
|
+
default: G
|
|
816
|
+
}, Symbol.toStringTag, { value: "Module" })), $e = /* @__PURE__ */ an(hn);
|
|
817
|
+
var Fe, it;
|
|
818
|
+
function En() {
|
|
819
|
+
return it || (it = 1, Fe = function(t) {
|
|
820
|
+
var e = $e, n = { chunkSize: (parseInt(t.length / 1024) + 1) * 1024 };
|
|
819
821
|
return {
|
|
820
822
|
deflate: function() {
|
|
821
823
|
return e.deflateRawSync(t, n);
|
|
@@ -837,13 +839,13 @@ function dn() {
|
|
|
837
839
|
};
|
|
838
840
|
}), Fe;
|
|
839
841
|
}
|
|
840
|
-
var xe,
|
|
841
|
-
function
|
|
842
|
-
if (
|
|
843
|
-
|
|
842
|
+
var xe, at;
|
|
843
|
+
function mn() {
|
|
844
|
+
if (at) return xe;
|
|
845
|
+
at = 1;
|
|
844
846
|
const t = +(process.versions ? process.versions.node : "").split(".")[0] || 0;
|
|
845
847
|
return xe = function(e, n) {
|
|
846
|
-
var r =
|
|
848
|
+
var r = $e;
|
|
847
849
|
const o = t >= 15 && n > 0 ? { maxOutputLength: n } : {};
|
|
848
850
|
return {
|
|
849
851
|
inflate: function() {
|
|
@@ -866,11 +868,11 @@ function hn() {
|
|
|
866
868
|
};
|
|
867
869
|
}, xe;
|
|
868
870
|
}
|
|
869
|
-
var be,
|
|
870
|
-
function
|
|
871
|
-
if (
|
|
872
|
-
|
|
873
|
-
const { randomFillSync: t } =
|
|
871
|
+
var be, ct;
|
|
872
|
+
function pn() {
|
|
873
|
+
if (ct) return be;
|
|
874
|
+
ct = 1;
|
|
875
|
+
const { randomFillSync: t } = $e, e = ke(), n = new Uint32Array(256).map((y, E) => {
|
|
874
876
|
for (let C = 0; C < 8; C++)
|
|
875
877
|
(E & 1) !== 0 ? E = E >>> 1 ^ 3988292384 : E >>>= 1;
|
|
876
878
|
return E >>> 0;
|
|
@@ -939,15 +941,15 @@ function En() {
|
|
|
939
941
|
}
|
|
940
942
|
return be = { decrypt: d, encrypt: N, _salter: g }, be;
|
|
941
943
|
}
|
|
942
|
-
var
|
|
943
|
-
function
|
|
944
|
-
return
|
|
944
|
+
var ft;
|
|
945
|
+
function yn() {
|
|
946
|
+
return ft || (ft = 1, re.Deflater = En(), re.Inflater = mn(), re.ZipCrypto = pn()), re;
|
|
945
947
|
}
|
|
946
|
-
var Ue,
|
|
947
|
-
function
|
|
948
|
-
if (
|
|
949
|
-
|
|
950
|
-
var t = ie(), e =
|
|
948
|
+
var Ue, ut;
|
|
949
|
+
function Ft() {
|
|
950
|
+
if (ut) return Ue;
|
|
951
|
+
ut = 1;
|
|
952
|
+
var t = ie(), e = At(), n = t.Constants, r = yn();
|
|
951
953
|
return Ue = function(o, i) {
|
|
952
954
|
var s = new e.EntryHeader(), c = Buffer.alloc(0), a = Buffer.alloc(0), f = !1, d = null, g = Buffer.alloc(0), N = Buffer.alloc(0), y = !0;
|
|
953
955
|
const E = o, C = typeof E.decoder == "object" ? E.decoder : t.decoder;
|
|
@@ -1141,11 +1143,11 @@ function At() {
|
|
|
1141
1143
|
};
|
|
1142
1144
|
}, Ue;
|
|
1143
1145
|
}
|
|
1144
|
-
var Pe,
|
|
1145
|
-
function
|
|
1146
|
-
if (
|
|
1147
|
-
|
|
1148
|
-
const t =
|
|
1146
|
+
var Pe, lt;
|
|
1147
|
+
function gn() {
|
|
1148
|
+
if (lt) return Pe;
|
|
1149
|
+
lt = 1;
|
|
1150
|
+
const t = Ft(), e = At(), n = ie();
|
|
1149
1151
|
return Pe = function(r, o) {
|
|
1150
1152
|
var i = [], s = {}, c = Buffer.alloc(0), a = new e.MainHeader(), f = !1;
|
|
1151
1153
|
const d = /* @__PURE__ */ new Set(), g = o, { noSort: N, decoder: y } = g;
|
|
@@ -1357,11 +1359,11 @@ function pn() {
|
|
|
1357
1359
|
};
|
|
1358
1360
|
}, Pe;
|
|
1359
1361
|
}
|
|
1360
|
-
var Be,
|
|
1361
|
-
function
|
|
1362
|
-
if (
|
|
1363
|
-
|
|
1364
|
-
const t = ie(), e =
|
|
1362
|
+
var Be, dt;
|
|
1363
|
+
function Sn() {
|
|
1364
|
+
if (dt) return Be;
|
|
1365
|
+
dt = 1;
|
|
1366
|
+
const t = ie(), e = q, n = Ft(), r = gn(), o = (...a) => t.findLast(a, (f) => typeof f == "boolean"), i = (...a) => t.findLast(a, (f) => typeof f == "string"), s = (...a) => t.findLast(a, (f) => typeof f == "function"), c = {
|
|
1365
1367
|
// option "noSort" : if true it disables files sorting
|
|
1366
1368
|
noSort: !1,
|
|
1367
1369
|
// read entries during load (initial loading may be slower)
|
|
@@ -1629,8 +1631,8 @@ function yn() {
|
|
|
1629
1631
|
if (A += 1, A < T.length) {
|
|
1630
1632
|
var x = T[A], b = h(u, x).split("\\").join("/");
|
|
1631
1633
|
b = b.normalize("NFD").replace(/[\u0300-\u036f]/g, "").replace(/[^\x20-\x7E]/g, ""), p(b) ? N.fs.stat(x, function(U, B) {
|
|
1632
|
-
U && S(void 0, U), B.isFile() ? N.fs.readFile(x, function(P,
|
|
1633
|
-
P ? S(void 0, P) : (w.addFile(l + b,
|
|
1634
|
+
U && S(void 0, U), B.isFile() ? N.fs.readFile(x, function(P, z) {
|
|
1635
|
+
P ? S(void 0, P) : (w.addFile(l + b, z, "", B), O());
|
|
1634
1636
|
}) : (w.addFile(l + b + "/", Buffer.alloc(0), "", B), O());
|
|
1635
1637
|
}) : process.nextTick(() => {
|
|
1636
1638
|
O();
|
|
@@ -1670,8 +1672,8 @@ function yn() {
|
|
|
1670
1672
|
if (x) return S(x);
|
|
1671
1673
|
b = b.filter((U) => w(T(U))), b.length || S(void 0, !1), setImmediate(
|
|
1672
1674
|
b.reverse().reduce(function(U, B) {
|
|
1673
|
-
return function(P,
|
|
1674
|
-
if (P ||
|
|
1675
|
+
return function(P, z) {
|
|
1676
|
+
if (P || z === !1) return setImmediate(U, P, !1);
|
|
1675
1677
|
l.addLocalFileAsync(
|
|
1676
1678
|
{
|
|
1677
1679
|
localPath: B,
|
|
@@ -1773,9 +1775,9 @@ function yn() {
|
|
|
1773
1775
|
var P = B.getData();
|
|
1774
1776
|
if (!P)
|
|
1775
1777
|
throw t.Errors.CANT_EXTRACT_FILE();
|
|
1776
|
-
var
|
|
1777
|
-
const
|
|
1778
|
-
N.writeFileTo(ne, P, p,
|
|
1778
|
+
var z = E(B.entryName), ne = C(S, l ? z : e.basename(z));
|
|
1779
|
+
const Z = w ? B.header.fileAttr : void 0;
|
|
1780
|
+
N.writeFileTo(ne, P, p, Z);
|
|
1779
1781
|
}), !0;
|
|
1780
1782
|
}
|
|
1781
1783
|
var b = T.getData(y.password);
|
|
@@ -1874,15 +1876,15 @@ function yn() {
|
|
|
1874
1876
|
O(b);
|
|
1875
1877
|
else {
|
|
1876
1878
|
const U = e.normalize(E(x.entryName)), B = C(u, U);
|
|
1877
|
-
x.getDataAsync(function(P,
|
|
1878
|
-
if (
|
|
1879
|
-
O(
|
|
1879
|
+
x.getDataAsync(function(P, z) {
|
|
1880
|
+
if (z)
|
|
1881
|
+
O(z);
|
|
1880
1882
|
else if (!P)
|
|
1881
1883
|
O(t.Errors.CANT_EXTRACT_FILE());
|
|
1882
1884
|
else {
|
|
1883
1885
|
const ne = l ? x.header.fileAttr : void 0;
|
|
1884
|
-
N.writeFileToAsync(B, P, S, ne, function(
|
|
1885
|
-
|
|
1886
|
+
N.writeFileToAsync(B, P, S, ne, function(Z) {
|
|
1887
|
+
Z || O(_("Unable to write file", B)), N.fs.utimes(B, x.header.time, x.header.time, function(V) {
|
|
1886
1888
|
V ? O(_("Unable to set times", B)) : O();
|
|
1887
1889
|
});
|
|
1888
1890
|
});
|
|
@@ -1948,31 +1950,31 @@ function yn() {
|
|
|
1948
1950
|
};
|
|
1949
1951
|
}, Be;
|
|
1950
1952
|
}
|
|
1951
|
-
var
|
|
1952
|
-
const
|
|
1953
|
-
function
|
|
1953
|
+
var wn = Sn();
|
|
1954
|
+
const Cn = /* @__PURE__ */ sn(wn);
|
|
1955
|
+
function xt(t, e) {
|
|
1954
1956
|
return function() {
|
|
1955
1957
|
return t.apply(e, arguments);
|
|
1956
1958
|
};
|
|
1957
1959
|
}
|
|
1958
|
-
const { toString:
|
|
1959
|
-
const n =
|
|
1960
|
+
const { toString: Nn } = Object.prototype, { getPrototypeOf: Ge } = Object, { iterator: ge, toStringTag: bt } = Symbol, Se = /* @__PURE__ */ ((t) => (e) => {
|
|
1961
|
+
const n = Nn.call(e);
|
|
1960
1962
|
return t[n] || (t[n] = n.slice(8, -1).toLowerCase());
|
|
1961
1963
|
})(/* @__PURE__ */ Object.create(null)), k = (t) => (t = t.toLowerCase(), (e) => Se(e) === t), we = (t) => (e) => typeof e === t, { isArray: ee } = Array, Q = we("undefined");
|
|
1962
1964
|
function ae(t) {
|
|
1963
|
-
return t !== null && !Q(t) && t.constructor !== null && !Q(t.constructor) &&
|
|
1965
|
+
return t !== null && !Q(t) && t.constructor !== null && !Q(t.constructor) && M(t.constructor.isBuffer) && t.constructor.isBuffer(t);
|
|
1964
1966
|
}
|
|
1965
|
-
const
|
|
1966
|
-
function
|
|
1967
|
+
const Ut = k("ArrayBuffer");
|
|
1968
|
+
function Ln(t) {
|
|
1967
1969
|
let e;
|
|
1968
|
-
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer &&
|
|
1970
|
+
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && Ut(t.buffer), e;
|
|
1969
1971
|
}
|
|
1970
|
-
const
|
|
1972
|
+
const In = we("string"), M = we("function"), Pt = we("number"), ce = (t) => t !== null && typeof t == "object", On = (t) => t === !0 || t === !1, Ee = (t) => {
|
|
1971
1973
|
if (Se(t) !== "object")
|
|
1972
1974
|
return !1;
|
|
1973
1975
|
const e = Ge(t);
|
|
1974
|
-
return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(
|
|
1975
|
-
},
|
|
1976
|
+
return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(bt in t) && !(ge in t);
|
|
1977
|
+
}, Dn = (t) => {
|
|
1976
1978
|
if (!ce(t) || ae(t))
|
|
1977
1979
|
return !1;
|
|
1978
1980
|
try {
|
|
@@ -1980,11 +1982,11 @@ const Nn = we("string"), j = we("function"), Ut = we("number"), ce = (t) => t !=
|
|
|
1980
1982
|
} catch {
|
|
1981
1983
|
return !1;
|
|
1982
1984
|
}
|
|
1983
|
-
},
|
|
1985
|
+
}, Rn = k("Date"), _n = k("File"), Tn = k("Blob"), An = k("FileList"), Fn = (t) => ce(t) && M(t.pipe), xn = (t) => {
|
|
1984
1986
|
let e;
|
|
1985
|
-
return t && (typeof FormData == "function" && t instanceof FormData ||
|
|
1986
|
-
e === "object" &&
|
|
1987
|
-
},
|
|
1987
|
+
return t && (typeof FormData == "function" && t instanceof FormData || M(t.append) && ((e = Se(t)) === "formdata" || // detect form-data instance
|
|
1988
|
+
e === "object" && M(t.toString) && t.toString() === "[object FormData]"));
|
|
1989
|
+
}, bn = k("URLSearchParams"), [Un, Pn, Bn, vn] = ["ReadableStream", "Request", "Response", "Headers"].map(k), Hn = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
1988
1990
|
function fe(t, e, { allOwnKeys: n = !1 } = {}) {
|
|
1989
1991
|
if (t === null || typeof t > "u")
|
|
1990
1992
|
return;
|
|
@@ -2001,7 +2003,7 @@ function fe(t, e, { allOwnKeys: n = !1 } = {}) {
|
|
|
2001
2003
|
c = i[r], e.call(null, t[c], c, t);
|
|
2002
2004
|
}
|
|
2003
2005
|
}
|
|
2004
|
-
function
|
|
2006
|
+
function Bt(t, e) {
|
|
2005
2007
|
if (ae(t))
|
|
2006
2008
|
return null;
|
|
2007
2009
|
e = e.toLowerCase();
|
|
@@ -2012,23 +2014,23 @@ function Pt(t, e) {
|
|
|
2012
2014
|
return o;
|
|
2013
2015
|
return null;
|
|
2014
2016
|
}
|
|
2015
|
-
const
|
|
2017
|
+
const W = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, vt = (t) => !Q(t) && t !== W;
|
|
2016
2018
|
function je() {
|
|
2017
|
-
const { caseless: t, skipUndefined: e } =
|
|
2018
|
-
const s = t &&
|
|
2019
|
+
const { caseless: t, skipUndefined: e } = vt(this) && this || {}, n = {}, r = (o, i) => {
|
|
2020
|
+
const s = t && Bt(n, i) || i;
|
|
2019
2021
|
Ee(n[s]) && Ee(o) ? n[s] = je(n[s], o) : Ee(o) ? n[s] = je({}, o) : ee(o) ? n[s] = o.slice() : (!e || !Q(o)) && (n[s] = o);
|
|
2020
2022
|
};
|
|
2021
2023
|
for (let o = 0, i = arguments.length; o < i; o++)
|
|
2022
2024
|
arguments[o] && fe(arguments[o], r);
|
|
2023
2025
|
return n;
|
|
2024
2026
|
}
|
|
2025
|
-
const
|
|
2026
|
-
n &&
|
|
2027
|
-
}, { allOwnKeys: r }), t),
|
|
2027
|
+
const Mn = (t, e, n, { allOwnKeys: r } = {}) => (fe(e, (o, i) => {
|
|
2028
|
+
n && M(o) ? t[i] = xt(o, n) : t[i] = o;
|
|
2029
|
+
}, { allOwnKeys: r }), t), jn = (t) => (t.charCodeAt(0) === 65279 && (t = t.slice(1)), t), zn = (t, e, n, r) => {
|
|
2028
2030
|
t.prototype = Object.create(e.prototype, r), t.prototype.constructor = t, Object.defineProperty(t, "super", {
|
|
2029
2031
|
value: e.prototype
|
|
2030
2032
|
}), n && Object.assign(t.prototype, n);
|
|
2031
|
-
},
|
|
2033
|
+
}, Zn = (t, e, n, r) => {
|
|
2032
2034
|
let o, i, s;
|
|
2033
2035
|
const c = {};
|
|
2034
2036
|
if (e = e || {}, t == null) return e;
|
|
@@ -2038,49 +2040,49 @@ const vn = (t, e, n, { allOwnKeys: r } = {}) => (fe(e, (o, i) => {
|
|
|
2038
2040
|
t = n !== !1 && Ge(t);
|
|
2039
2041
|
} while (t && (!n || n(t, e)) && t !== Object.prototype);
|
|
2040
2042
|
return e;
|
|
2041
|
-
},
|
|
2043
|
+
}, qn = (t, e, n) => {
|
|
2042
2044
|
t = String(t), (n === void 0 || n > t.length) && (n = t.length), n -= e.length;
|
|
2043
2045
|
const r = t.indexOf(e, n);
|
|
2044
2046
|
return r !== -1 && r === n;
|
|
2045
|
-
},
|
|
2047
|
+
}, kn = (t) => {
|
|
2046
2048
|
if (!t) return null;
|
|
2047
2049
|
if (ee(t)) return t;
|
|
2048
2050
|
let e = t.length;
|
|
2049
|
-
if (!
|
|
2051
|
+
if (!Pt(e)) return null;
|
|
2050
2052
|
const n = new Array(e);
|
|
2051
2053
|
for (; e-- > 0; )
|
|
2052
2054
|
n[e] = t[e];
|
|
2053
2055
|
return n;
|
|
2054
|
-
},
|
|
2056
|
+
}, $n = /* @__PURE__ */ ((t) => (e) => t && e instanceof t)(typeof Uint8Array < "u" && Ge(Uint8Array)), Gn = (t, e) => {
|
|
2055
2057
|
const r = (t && t[ge]).call(t);
|
|
2056
2058
|
let o;
|
|
2057
2059
|
for (; (o = r.next()) && !o.done; ) {
|
|
2058
2060
|
const i = o.value;
|
|
2059
2061
|
e.call(t, i[0], i[1]);
|
|
2060
2062
|
}
|
|
2061
|
-
},
|
|
2063
|
+
}, Vn = (t, e) => {
|
|
2062
2064
|
let n;
|
|
2063
2065
|
const r = [];
|
|
2064
2066
|
for (; (n = t.exec(e)) !== null; )
|
|
2065
2067
|
r.push(n);
|
|
2066
2068
|
return r;
|
|
2067
|
-
},
|
|
2069
|
+
}, Xn = k("HTMLFormElement"), Wn = (t) => t.toLowerCase().replace(
|
|
2068
2070
|
/[-_\s]([a-z\d])(\w*)/g,
|
|
2069
2071
|
function(n, r, o) {
|
|
2070
2072
|
return r.toUpperCase() + o;
|
|
2071
2073
|
}
|
|
2072
|
-
),
|
|
2074
|
+
), ht = (({ hasOwnProperty: t }) => (e, n) => t.call(e, n))(Object.prototype), Jn = k("RegExp"), Ht = (t, e) => {
|
|
2073
2075
|
const n = Object.getOwnPropertyDescriptors(t), r = {};
|
|
2074
2076
|
fe(n, (o, i) => {
|
|
2075
2077
|
let s;
|
|
2076
2078
|
(s = e(o, i, t)) !== !1 && (r[i] = s || o);
|
|
2077
2079
|
}), Object.defineProperties(t, r);
|
|
2078
|
-
},
|
|
2079
|
-
|
|
2080
|
-
if (
|
|
2080
|
+
}, Kn = (t) => {
|
|
2081
|
+
Ht(t, (e, n) => {
|
|
2082
|
+
if (M(t) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
|
|
2081
2083
|
return !1;
|
|
2082
2084
|
const r = t[n];
|
|
2083
|
-
if (
|
|
2085
|
+
if (M(r)) {
|
|
2084
2086
|
if (e.enumerable = !1, "writable" in e) {
|
|
2085
2087
|
e.writable = !1;
|
|
2086
2088
|
return;
|
|
@@ -2090,19 +2092,19 @@ const vn = (t, e, n, { allOwnKeys: r } = {}) => (fe(e, (o, i) => {
|
|
|
2090
2092
|
});
|
|
2091
2093
|
}
|
|
2092
2094
|
});
|
|
2093
|
-
},
|
|
2095
|
+
}, Yn = (t, e) => {
|
|
2094
2096
|
const n = {}, r = (o) => {
|
|
2095
2097
|
o.forEach((i) => {
|
|
2096
2098
|
n[i] = !0;
|
|
2097
2099
|
});
|
|
2098
2100
|
};
|
|
2099
2101
|
return ee(t) ? r(t) : r(String(t).split(e)), n;
|
|
2100
|
-
},
|
|
2101
|
-
},
|
|
2102
|
-
function
|
|
2103
|
-
return !!(t &&
|
|
2102
|
+
}, Qn = () => {
|
|
2103
|
+
}, er = (t, e) => t != null && Number.isFinite(t = +t) ? t : e;
|
|
2104
|
+
function tr(t) {
|
|
2105
|
+
return !!(t && M(t.append) && t[bt] === "FormData" && t[ge]);
|
|
2104
2106
|
}
|
|
2105
|
-
const
|
|
2107
|
+
const nr = (t) => {
|
|
2106
2108
|
const e = new Array(10), n = (r, o) => {
|
|
2107
2109
|
if (ce(r)) {
|
|
2108
2110
|
if (e.indexOf(r) >= 0)
|
|
@@ -2121,72 +2123,72 @@ const er = (t) => {
|
|
|
2121
2123
|
return r;
|
|
2122
2124
|
};
|
|
2123
2125
|
return n(t, 0);
|
|
2124
|
-
},
|
|
2125
|
-
o ===
|
|
2126
|
+
}, rr = k("AsyncFunction"), or = (t) => t && (ce(t) || M(t)) && M(t.then) && M(t.catch), Mt = ((t, e) => t ? setImmediate : e ? ((n, r) => (W.addEventListener("message", ({ source: o, data: i }) => {
|
|
2127
|
+
o === W && i === n && r.length && r.shift()();
|
|
2126
2128
|
}, !1), (o) => {
|
|
2127
|
-
r.push(o),
|
|
2129
|
+
r.push(o), W.postMessage(n, "*");
|
|
2128
2130
|
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
|
|
2129
2131
|
typeof setImmediate == "function",
|
|
2130
|
-
|
|
2131
|
-
),
|
|
2132
|
+
M(W.postMessage)
|
|
2133
|
+
), sr = typeof queueMicrotask < "u" ? queueMicrotask.bind(W) : typeof process < "u" && process.nextTick || Mt, ir = (t) => t != null && M(t[ge]), m = {
|
|
2132
2134
|
isArray: ee,
|
|
2133
|
-
isArrayBuffer:
|
|
2135
|
+
isArrayBuffer: Ut,
|
|
2134
2136
|
isBuffer: ae,
|
|
2135
|
-
isFormData:
|
|
2136
|
-
isArrayBufferView:
|
|
2137
|
-
isString:
|
|
2138
|
-
isNumber:
|
|
2139
|
-
isBoolean:
|
|
2137
|
+
isFormData: xn,
|
|
2138
|
+
isArrayBufferView: Ln,
|
|
2139
|
+
isString: In,
|
|
2140
|
+
isNumber: Pt,
|
|
2141
|
+
isBoolean: On,
|
|
2140
2142
|
isObject: ce,
|
|
2141
2143
|
isPlainObject: Ee,
|
|
2142
|
-
isEmptyObject:
|
|
2143
|
-
isReadableStream:
|
|
2144
|
-
isRequest:
|
|
2145
|
-
isResponse:
|
|
2146
|
-
isHeaders:
|
|
2144
|
+
isEmptyObject: Dn,
|
|
2145
|
+
isReadableStream: Un,
|
|
2146
|
+
isRequest: Pn,
|
|
2147
|
+
isResponse: Bn,
|
|
2148
|
+
isHeaders: vn,
|
|
2147
2149
|
isUndefined: Q,
|
|
2148
|
-
isDate:
|
|
2149
|
-
isFile:
|
|
2150
|
-
isBlob:
|
|
2151
|
-
isRegExp:
|
|
2152
|
-
isFunction:
|
|
2153
|
-
isStream:
|
|
2154
|
-
isURLSearchParams:
|
|
2155
|
-
isTypedArray:
|
|
2156
|
-
isFileList:
|
|
2150
|
+
isDate: Rn,
|
|
2151
|
+
isFile: _n,
|
|
2152
|
+
isBlob: Tn,
|
|
2153
|
+
isRegExp: Jn,
|
|
2154
|
+
isFunction: M,
|
|
2155
|
+
isStream: Fn,
|
|
2156
|
+
isURLSearchParams: bn,
|
|
2157
|
+
isTypedArray: $n,
|
|
2158
|
+
isFileList: An,
|
|
2157
2159
|
forEach: fe,
|
|
2158
2160
|
merge: je,
|
|
2159
|
-
extend:
|
|
2160
|
-
trim:
|
|
2161
|
-
stripBOM:
|
|
2162
|
-
inherits:
|
|
2163
|
-
toFlatObject:
|
|
2161
|
+
extend: Mn,
|
|
2162
|
+
trim: Hn,
|
|
2163
|
+
stripBOM: jn,
|
|
2164
|
+
inherits: zn,
|
|
2165
|
+
toFlatObject: Zn,
|
|
2164
2166
|
kindOf: Se,
|
|
2165
2167
|
kindOfTest: k,
|
|
2166
|
-
endsWith:
|
|
2167
|
-
toArray:
|
|
2168
|
-
forEachEntry:
|
|
2169
|
-
matchAll:
|
|
2170
|
-
isHTMLForm:
|
|
2171
|
-
hasOwnProperty:
|
|
2172
|
-
hasOwnProp:
|
|
2168
|
+
endsWith: qn,
|
|
2169
|
+
toArray: kn,
|
|
2170
|
+
forEachEntry: Gn,
|
|
2171
|
+
matchAll: Vn,
|
|
2172
|
+
isHTMLForm: Xn,
|
|
2173
|
+
hasOwnProperty: ht,
|
|
2174
|
+
hasOwnProp: ht,
|
|
2173
2175
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
2174
|
-
reduceDescriptors:
|
|
2175
|
-
freezeMethods:
|
|
2176
|
-
toObjectSet:
|
|
2177
|
-
toCamelCase:
|
|
2178
|
-
noop:
|
|
2179
|
-
toFiniteNumber:
|
|
2180
|
-
findKey:
|
|
2181
|
-
global:
|
|
2182
|
-
isContextDefined:
|
|
2183
|
-
isSpecCompliantForm:
|
|
2184
|
-
toJSONObject:
|
|
2185
|
-
isAsyncFn:
|
|
2186
|
-
isThenable:
|
|
2187
|
-
setImmediate:
|
|
2188
|
-
asap:
|
|
2189
|
-
isIterable:
|
|
2176
|
+
reduceDescriptors: Ht,
|
|
2177
|
+
freezeMethods: Kn,
|
|
2178
|
+
toObjectSet: Yn,
|
|
2179
|
+
toCamelCase: Wn,
|
|
2180
|
+
noop: Qn,
|
|
2181
|
+
toFiniteNumber: er,
|
|
2182
|
+
findKey: Bt,
|
|
2183
|
+
global: W,
|
|
2184
|
+
isContextDefined: vt,
|
|
2185
|
+
isSpecCompliantForm: tr,
|
|
2186
|
+
toJSONObject: nr,
|
|
2187
|
+
isAsyncFn: rr,
|
|
2188
|
+
isThenable: or,
|
|
2189
|
+
setImmediate: Mt,
|
|
2190
|
+
asap: sr,
|
|
2191
|
+
isIterable: ir
|
|
2190
2192
|
};
|
|
2191
2193
|
function F(t, e, n, r, o) {
|
|
2192
2194
|
Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = t, this.name = "AxiosError", e && (this.code = e), n && (this.config = n), r && (this.request = r), o && (this.response = o, this.status = o.status ? o.status : null);
|
|
@@ -2212,7 +2214,7 @@ m.inherits(F, Error, {
|
|
|
2212
2214
|
};
|
|
2213
2215
|
}
|
|
2214
2216
|
});
|
|
2215
|
-
const
|
|
2217
|
+
const jt = F.prototype, zt = {};
|
|
2216
2218
|
[
|
|
2217
2219
|
"ERR_BAD_OPTION_VALUE",
|
|
2218
2220
|
"ERR_BAD_OPTION",
|
|
@@ -2228,34 +2230,34 @@ const Mt = F.prototype, jt = {};
|
|
|
2228
2230
|
"ERR_INVALID_URL"
|
|
2229
2231
|
// eslint-disable-next-line func-names
|
|
2230
2232
|
].forEach((t) => {
|
|
2231
|
-
|
|
2233
|
+
zt[t] = { value: t };
|
|
2232
2234
|
});
|
|
2233
|
-
Object.defineProperties(F,
|
|
2234
|
-
Object.defineProperty(
|
|
2235
|
+
Object.defineProperties(F, zt);
|
|
2236
|
+
Object.defineProperty(jt, "isAxiosError", { value: !0 });
|
|
2235
2237
|
F.from = (t, e, n, r, o, i) => {
|
|
2236
|
-
const s = Object.create(
|
|
2238
|
+
const s = Object.create(jt);
|
|
2237
2239
|
m.toFlatObject(t, s, function(d) {
|
|
2238
2240
|
return d !== Error.prototype;
|
|
2239
2241
|
}, (f) => f !== "isAxiosError");
|
|
2240
2242
|
const c = t && t.message ? t.message : "Error", a = e == null && t ? t.code : e;
|
|
2241
2243
|
return F.call(s, c, a, n, r, o), t && s.cause == null && Object.defineProperty(s, "cause", { value: t, configurable: !0 }), s.name = t && t.name || "Error", i && Object.assign(s, i), s;
|
|
2242
2244
|
};
|
|
2243
|
-
const
|
|
2245
|
+
const ar = null;
|
|
2244
2246
|
function ze(t) {
|
|
2245
2247
|
return m.isPlainObject(t) || m.isArray(t);
|
|
2246
2248
|
}
|
|
2247
|
-
function
|
|
2249
|
+
function Zt(t) {
|
|
2248
2250
|
return m.endsWith(t, "[]") ? t.slice(0, -2) : t;
|
|
2249
2251
|
}
|
|
2250
|
-
function
|
|
2252
|
+
function Et(t, e, n) {
|
|
2251
2253
|
return t ? t.concat(e).map(function(o, i) {
|
|
2252
|
-
return o =
|
|
2254
|
+
return o = Zt(o), !n && i ? "[" + o + "]" : o;
|
|
2253
2255
|
}).join(n ? "." : "") : e;
|
|
2254
2256
|
}
|
|
2255
|
-
function
|
|
2257
|
+
function cr(t) {
|
|
2256
2258
|
return m.isArray(t) && !t.some(ze);
|
|
2257
2259
|
}
|
|
2258
|
-
const
|
|
2260
|
+
const fr = m.toFlatObject(m, {}, null, function(e) {
|
|
2259
2261
|
return /^is[A-Z]/.test(e);
|
|
2260
2262
|
});
|
|
2261
2263
|
function Ce(t, e, n) {
|
|
@@ -2286,18 +2288,18 @@ function Ce(t, e, n) {
|
|
|
2286
2288
|
if (E && !L && typeof E == "object") {
|
|
2287
2289
|
if (m.endsWith(C, "{}"))
|
|
2288
2290
|
C = r ? C : C.slice(0, -2), E = JSON.stringify(E);
|
|
2289
|
-
else if (m.isArray(E) &&
|
|
2290
|
-
return C =
|
|
2291
|
+
else if (m.isArray(E) && cr(E) || (m.isFileList(E) || m.endsWith(C, "[]")) && (D = m.toArray(E)))
|
|
2292
|
+
return C = Zt(C), D.forEach(function(R, h) {
|
|
2291
2293
|
!(m.isUndefined(R) || R === null) && e.append(
|
|
2292
2294
|
// eslint-disable-next-line no-nested-ternary
|
|
2293
|
-
s === !0 ?
|
|
2295
|
+
s === !0 ? Et([C], h, i) : s === null ? C : C + "[]",
|
|
2294
2296
|
f(R)
|
|
2295
2297
|
);
|
|
2296
2298
|
}), !1;
|
|
2297
2299
|
}
|
|
2298
|
-
return ze(E) ? !0 : (e.append(
|
|
2300
|
+
return ze(E) ? !0 : (e.append(Et(L, C, i), f(E)), !1);
|
|
2299
2301
|
}
|
|
2300
|
-
const g = [], N = Object.assign(
|
|
2302
|
+
const g = [], N = Object.assign(fr, {
|
|
2301
2303
|
defaultVisitor: d,
|
|
2302
2304
|
convertValue: f,
|
|
2303
2305
|
isVisitable: ze
|
|
@@ -2321,7 +2323,7 @@ function Ce(t, e, n) {
|
|
|
2321
2323
|
throw new TypeError("data must be an object");
|
|
2322
2324
|
return y(t), e;
|
|
2323
2325
|
}
|
|
2324
|
-
function
|
|
2326
|
+
function mt(t) {
|
|
2325
2327
|
const e = {
|
|
2326
2328
|
"!": "%21",
|
|
2327
2329
|
"'": "%27",
|
|
@@ -2338,25 +2340,25 @@ function Et(t) {
|
|
|
2338
2340
|
function Ve(t, e) {
|
|
2339
2341
|
this._pairs = [], t && Ce(t, this, e);
|
|
2340
2342
|
}
|
|
2341
|
-
const
|
|
2342
|
-
|
|
2343
|
+
const qt = Ve.prototype;
|
|
2344
|
+
qt.append = function(e, n) {
|
|
2343
2345
|
this._pairs.push([e, n]);
|
|
2344
2346
|
};
|
|
2345
|
-
|
|
2347
|
+
qt.toString = function(e) {
|
|
2346
2348
|
const n = e ? function(r) {
|
|
2347
|
-
return e.call(this, r,
|
|
2348
|
-
} :
|
|
2349
|
+
return e.call(this, r, mt);
|
|
2350
|
+
} : mt;
|
|
2349
2351
|
return this._pairs.map(function(o) {
|
|
2350
2352
|
return n(o[0]) + "=" + n(o[1]);
|
|
2351
2353
|
}, "").join("&");
|
|
2352
2354
|
};
|
|
2353
|
-
function
|
|
2355
|
+
function ur(t) {
|
|
2354
2356
|
return encodeURIComponent(t).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
|
|
2355
2357
|
}
|
|
2356
|
-
function
|
|
2358
|
+
function kt(t, e, n) {
|
|
2357
2359
|
if (!e)
|
|
2358
2360
|
return t;
|
|
2359
|
-
const r = n && n.encode ||
|
|
2361
|
+
const r = n && n.encode || ur;
|
|
2360
2362
|
m.isFunction(n) && (n = {
|
|
2361
2363
|
serialize: n
|
|
2362
2364
|
});
|
|
@@ -2368,7 +2370,7 @@ function qt(t, e, n) {
|
|
|
2368
2370
|
}
|
|
2369
2371
|
return t;
|
|
2370
2372
|
}
|
|
2371
|
-
class
|
|
2373
|
+
class pt {
|
|
2372
2374
|
constructor() {
|
|
2373
2375
|
this.handlers = [];
|
|
2374
2376
|
}
|
|
@@ -2422,42 +2424,42 @@ class mt {
|
|
|
2422
2424
|
});
|
|
2423
2425
|
}
|
|
2424
2426
|
}
|
|
2425
|
-
const
|
|
2427
|
+
const $t = {
|
|
2426
2428
|
silentJSONParsing: !0,
|
|
2427
2429
|
forcedJSONParsing: !0,
|
|
2428
2430
|
clarifyTimeoutError: !1
|
|
2429
|
-
},
|
|
2431
|
+
}, lr = typeof URLSearchParams < "u" ? URLSearchParams : Ve, dr = typeof FormData < "u" ? FormData : null, hr = typeof Blob < "u" ? Blob : null, Er = {
|
|
2430
2432
|
isBrowser: !0,
|
|
2431
2433
|
classes: {
|
|
2432
|
-
URLSearchParams:
|
|
2433
|
-
FormData:
|
|
2434
|
-
Blob:
|
|
2434
|
+
URLSearchParams: lr,
|
|
2435
|
+
FormData: dr,
|
|
2436
|
+
Blob: hr
|
|
2435
2437
|
},
|
|
2436
2438
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
2437
|
-
},
|
|
2438
|
-
self instanceof WorkerGlobalScope && typeof self.importScripts == "function",
|
|
2439
|
+
}, Xe = typeof window < "u" && typeof document < "u", Ze = typeof navigator == "object" && navigator || void 0, mr = Xe && (!Ze || ["ReactNative", "NativeScript", "NS"].indexOf(Ze.product) < 0), pr = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
2440
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", yr = Xe && window.location.href || "http://localhost", gr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2439
2441
|
__proto__: null,
|
|
2440
|
-
hasBrowserEnv:
|
|
2441
|
-
hasStandardBrowserEnv:
|
|
2442
|
-
hasStandardBrowserWebWorkerEnv:
|
|
2442
|
+
hasBrowserEnv: Xe,
|
|
2443
|
+
hasStandardBrowserEnv: mr,
|
|
2444
|
+
hasStandardBrowserWebWorkerEnv: pr,
|
|
2443
2445
|
navigator: Ze,
|
|
2444
|
-
origin:
|
|
2445
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2446
|
-
...
|
|
2447
|
-
...
|
|
2446
|
+
origin: yr
|
|
2447
|
+
}, Symbol.toStringTag, { value: "Module" })), H = {
|
|
2448
|
+
...gr,
|
|
2449
|
+
...Er
|
|
2448
2450
|
};
|
|
2449
|
-
function
|
|
2450
|
-
return Ce(t, new
|
|
2451
|
+
function Sr(t, e) {
|
|
2452
|
+
return Ce(t, new H.classes.URLSearchParams(), {
|
|
2451
2453
|
visitor: function(n, r, o, i) {
|
|
2452
|
-
return
|
|
2454
|
+
return H.isNode && m.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : i.defaultVisitor.apply(this, arguments);
|
|
2453
2455
|
},
|
|
2454
2456
|
...e
|
|
2455
2457
|
});
|
|
2456
2458
|
}
|
|
2457
|
-
function
|
|
2459
|
+
function wr(t) {
|
|
2458
2460
|
return m.matchAll(/\w+|\[(\w*)]/g, t).map((e) => e[0] === "[]" ? "" : e[1] || e[0]);
|
|
2459
2461
|
}
|
|
2460
|
-
function
|
|
2462
|
+
function Cr(t) {
|
|
2461
2463
|
const e = {}, n = Object.keys(t);
|
|
2462
2464
|
let r;
|
|
2463
2465
|
const o = n.length;
|
|
@@ -2471,17 +2473,17 @@ function Gt(t) {
|
|
|
2471
2473
|
let s = n[i++];
|
|
2472
2474
|
if (s === "__proto__") return !0;
|
|
2473
2475
|
const c = Number.isFinite(+s), a = i >= n.length;
|
|
2474
|
-
return s = !s && m.isArray(o) ? o.length : s, a ? (m.hasOwnProp(o, s) ? o[s] = [o[s], r] : o[s] = r, !c) : ((!o[s] || !m.isObject(o[s])) && (o[s] = []), e(n, r, o[s], i) && m.isArray(o[s]) && (o[s] =
|
|
2476
|
+
return s = !s && m.isArray(o) ? o.length : s, a ? (m.hasOwnProp(o, s) ? o[s] = [o[s], r] : o[s] = r, !c) : ((!o[s] || !m.isObject(o[s])) && (o[s] = []), e(n, r, o[s], i) && m.isArray(o[s]) && (o[s] = Cr(o[s])), !c);
|
|
2475
2477
|
}
|
|
2476
2478
|
if (m.isFormData(t) && m.isFunction(t.entries)) {
|
|
2477
2479
|
const n = {};
|
|
2478
2480
|
return m.forEachEntry(t, (r, o) => {
|
|
2479
|
-
e(
|
|
2481
|
+
e(wr(r), o, n, 0);
|
|
2480
2482
|
}), n;
|
|
2481
2483
|
}
|
|
2482
2484
|
return null;
|
|
2483
2485
|
}
|
|
2484
|
-
function
|
|
2486
|
+
function Nr(t, e, n) {
|
|
2485
2487
|
if (m.isString(t))
|
|
2486
2488
|
try {
|
|
2487
2489
|
return (e || JSON.parse)(t), m.trim(t);
|
|
@@ -2492,7 +2494,7 @@ function wr(t, e, n) {
|
|
|
2492
2494
|
return (n || JSON.stringify)(t);
|
|
2493
2495
|
}
|
|
2494
2496
|
const ue = {
|
|
2495
|
-
transitional:
|
|
2497
|
+
transitional: $t,
|
|
2496
2498
|
adapter: ["xhr", "http", "fetch"],
|
|
2497
2499
|
transformRequest: [function(e, n) {
|
|
2498
2500
|
const r = n.getContentType() || "", o = r.indexOf("application/json") > -1, i = m.isObject(e);
|
|
@@ -2507,7 +2509,7 @@ const ue = {
|
|
|
2507
2509
|
let c;
|
|
2508
2510
|
if (i) {
|
|
2509
2511
|
if (r.indexOf("application/x-www-form-urlencoded") > -1)
|
|
2510
|
-
return
|
|
2512
|
+
return Sr(e, this.formSerializer).toString();
|
|
2511
2513
|
if ((c = m.isFileList(e)) || r.indexOf("multipart/form-data") > -1) {
|
|
2512
2514
|
const a = this.env && this.env.FormData;
|
|
2513
2515
|
return Ce(
|
|
@@ -2517,7 +2519,7 @@ const ue = {
|
|
|
2517
2519
|
);
|
|
2518
2520
|
}
|
|
2519
2521
|
}
|
|
2520
|
-
return i || o ? (n.setContentType("application/json", !1),
|
|
2522
|
+
return i || o ? (n.setContentType("application/json", !1), Nr(e)) : e;
|
|
2521
2523
|
}],
|
|
2522
2524
|
transformResponse: [function(e) {
|
|
2523
2525
|
const n = this.transitional || ue.transitional, r = n && n.forcedJSONParsing, o = this.responseType === "json";
|
|
@@ -2544,8 +2546,8 @@ const ue = {
|
|
|
2544
2546
|
maxContentLength: -1,
|
|
2545
2547
|
maxBodyLength: -1,
|
|
2546
2548
|
env: {
|
|
2547
|
-
FormData:
|
|
2548
|
-
Blob:
|
|
2549
|
+
FormData: H.classes.FormData,
|
|
2550
|
+
Blob: H.classes.Blob
|
|
2549
2551
|
},
|
|
2550
2552
|
validateStatus: function(e) {
|
|
2551
2553
|
return e >= 200 && e < 300;
|
|
@@ -2560,7 +2562,7 @@ const ue = {
|
|
|
2560
2562
|
m.forEach(["delete", "get", "head", "post", "put", "patch"], (t) => {
|
|
2561
2563
|
ue.headers[t] = {};
|
|
2562
2564
|
});
|
|
2563
|
-
const
|
|
2565
|
+
const Lr = m.toObjectSet([
|
|
2564
2566
|
"age",
|
|
2565
2567
|
"authorization",
|
|
2566
2568
|
"content-length",
|
|
@@ -2578,28 +2580,28 @@ const Cr = m.toObjectSet([
|
|
|
2578
2580
|
"referer",
|
|
2579
2581
|
"retry-after",
|
|
2580
2582
|
"user-agent"
|
|
2581
|
-
]),
|
|
2583
|
+
]), Ir = (t) => {
|
|
2582
2584
|
const e = {};
|
|
2583
2585
|
let n, r, o;
|
|
2584
2586
|
return t && t.split(`
|
|
2585
2587
|
`).forEach(function(s) {
|
|
2586
|
-
o = s.indexOf(":"), n = s.substring(0, o).trim().toLowerCase(), r = s.substring(o + 1).trim(), !(!n || e[n] &&
|
|
2588
|
+
o = s.indexOf(":"), n = s.substring(0, o).trim().toLowerCase(), r = s.substring(o + 1).trim(), !(!n || e[n] && Lr[n]) && (n === "set-cookie" ? e[n] ? e[n].push(r) : e[n] = [r] : e[n] = e[n] ? e[n] + ", " + r : r);
|
|
2587
2589
|
}), e;
|
|
2588
|
-
},
|
|
2590
|
+
}, yt = /* @__PURE__ */ Symbol("internals");
|
|
2589
2591
|
function oe(t) {
|
|
2590
2592
|
return t && String(t).trim().toLowerCase();
|
|
2591
2593
|
}
|
|
2592
2594
|
function me(t) {
|
|
2593
2595
|
return t === !1 || t == null ? t : m.isArray(t) ? t.map(me) : String(t);
|
|
2594
2596
|
}
|
|
2595
|
-
function
|
|
2597
|
+
function Or(t) {
|
|
2596
2598
|
const e = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
2597
2599
|
let r;
|
|
2598
2600
|
for (; r = n.exec(t); )
|
|
2599
2601
|
e[r[1]] = r[2];
|
|
2600
2602
|
return e;
|
|
2601
2603
|
}
|
|
2602
|
-
const
|
|
2604
|
+
const Dr = (t) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());
|
|
2603
2605
|
function ve(t, e, n, r, o) {
|
|
2604
2606
|
if (m.isFunction(r))
|
|
2605
2607
|
return r.call(this, e, n);
|
|
@@ -2610,10 +2612,10 @@ function ve(t, e, n, r, o) {
|
|
|
2610
2612
|
return r.test(e);
|
|
2611
2613
|
}
|
|
2612
2614
|
}
|
|
2613
|
-
function
|
|
2615
|
+
function Rr(t) {
|
|
2614
2616
|
return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (e, n, r) => n.toUpperCase() + r);
|
|
2615
2617
|
}
|
|
2616
|
-
function
|
|
2618
|
+
function _r(t, e) {
|
|
2617
2619
|
const n = m.toCamelCase(" " + e);
|
|
2618
2620
|
["get", "set", "has"].forEach((r) => {
|
|
2619
2621
|
Object.defineProperty(t, r + n, {
|
|
@@ -2624,7 +2626,7 @@ function Dr(t, e) {
|
|
|
2624
2626
|
});
|
|
2625
2627
|
});
|
|
2626
2628
|
}
|
|
2627
|
-
let
|
|
2629
|
+
let j = class {
|
|
2628
2630
|
constructor(e) {
|
|
2629
2631
|
e && this.set(e);
|
|
2630
2632
|
}
|
|
@@ -2640,8 +2642,8 @@ let z = class {
|
|
|
2640
2642
|
const s = (c, a) => m.forEach(c, (f, d) => i(f, d, a));
|
|
2641
2643
|
if (m.isPlainObject(e) || e instanceof this.constructor)
|
|
2642
2644
|
s(e, n);
|
|
2643
|
-
else if (m.isString(e) && (e = e.trim()) && !
|
|
2644
|
-
s(
|
|
2645
|
+
else if (m.isString(e) && (e = e.trim()) && !Dr(e))
|
|
2646
|
+
s(Ir(e), n);
|
|
2645
2647
|
else if (m.isObject(e) && m.isIterable(e)) {
|
|
2646
2648
|
let c = {}, a, f;
|
|
2647
2649
|
for (const d of e) {
|
|
@@ -2662,7 +2664,7 @@ let z = class {
|
|
|
2662
2664
|
if (!n)
|
|
2663
2665
|
return o;
|
|
2664
2666
|
if (n === !0)
|
|
2665
|
-
return
|
|
2667
|
+
return Or(o);
|
|
2666
2668
|
if (m.isFunction(n))
|
|
2667
2669
|
return n.call(this, o, r);
|
|
2668
2670
|
if (m.isRegExp(n))
|
|
@@ -2706,7 +2708,7 @@ let z = class {
|
|
|
2706
2708
|
n[s] = me(o), delete n[i];
|
|
2707
2709
|
return;
|
|
2708
2710
|
}
|
|
2709
|
-
const c = e ?
|
|
2711
|
+
const c = e ? Rr(i) : String(i).trim();
|
|
2710
2712
|
c !== i && delete n[i], n[c] = me(o), r[c] = !0;
|
|
2711
2713
|
}), this;
|
|
2712
2714
|
}
|
|
@@ -2740,18 +2742,18 @@ let z = class {
|
|
|
2740
2742
|
return n.forEach((o) => r.set(o)), r;
|
|
2741
2743
|
}
|
|
2742
2744
|
static accessor(e) {
|
|
2743
|
-
const r = (this[
|
|
2745
|
+
const r = (this[yt] = this[yt] = {
|
|
2744
2746
|
accessors: {}
|
|
2745
2747
|
}).accessors, o = this.prototype;
|
|
2746
2748
|
function i(s) {
|
|
2747
2749
|
const c = oe(s);
|
|
2748
|
-
r[c] || (
|
|
2750
|
+
r[c] || (_r(o, s), r[c] = !0);
|
|
2749
2751
|
}
|
|
2750
2752
|
return m.isArray(e) ? e.forEach(i) : i(e), this;
|
|
2751
2753
|
}
|
|
2752
2754
|
};
|
|
2753
|
-
|
|
2754
|
-
m.reduceDescriptors(
|
|
2755
|
+
j.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
|
|
2756
|
+
m.reduceDescriptors(j.prototype, ({ value: t }, e) => {
|
|
2755
2757
|
let n = e[0].toUpperCase() + e.slice(1);
|
|
2756
2758
|
return {
|
|
2757
2759
|
get: () => t,
|
|
@@ -2760,9 +2762,9 @@ m.reduceDescriptors(z.prototype, ({ value: t }, e) => {
|
|
|
2760
2762
|
}
|
|
2761
2763
|
};
|
|
2762
2764
|
});
|
|
2763
|
-
m.freezeMethods(
|
|
2765
|
+
m.freezeMethods(j);
|
|
2764
2766
|
function He(t, e) {
|
|
2765
|
-
const n = this || ue, r = e || n, o =
|
|
2767
|
+
const n = this || ue, r = e || n, o = j.from(r.headers);
|
|
2766
2768
|
let i = r.data;
|
|
2767
2769
|
return m.forEach(t, function(c) {
|
|
2768
2770
|
i = c.call(n, i, o.normalize(), e ? e.status : void 0);
|
|
@@ -2777,7 +2779,7 @@ function te(t, e, n) {
|
|
|
2777
2779
|
m.inherits(te, F, {
|
|
2778
2780
|
__CANCEL__: !0
|
|
2779
2781
|
});
|
|
2780
|
-
function
|
|
2782
|
+
function Xt(t, e, n) {
|
|
2781
2783
|
const r = n.config.validateStatus;
|
|
2782
2784
|
!n.status || !r || r(n.status) ? t(n) : e(new F(
|
|
2783
2785
|
"Request failed with status code " + n.status,
|
|
@@ -2787,11 +2789,11 @@ function $t(t, e, n) {
|
|
|
2787
2789
|
n
|
|
2788
2790
|
));
|
|
2789
2791
|
}
|
|
2790
|
-
function
|
|
2792
|
+
function Tr(t) {
|
|
2791
2793
|
const e = /^([-+\w]{1,25})(:?\/\/|:)/.exec(t);
|
|
2792
2794
|
return e && e[1] || "";
|
|
2793
2795
|
}
|
|
2794
|
-
function
|
|
2796
|
+
function Ar(t, e) {
|
|
2795
2797
|
t = t || 10;
|
|
2796
2798
|
const n = new Array(t), r = new Array(t);
|
|
2797
2799
|
let o = 0, i = 0, s;
|
|
@@ -2807,7 +2809,7 @@ function _r(t, e) {
|
|
|
2807
2809
|
return y ? Math.round(N * 1e3 / y) : void 0;
|
|
2808
2810
|
};
|
|
2809
2811
|
}
|
|
2810
|
-
function
|
|
2812
|
+
function Fr(t, e) {
|
|
2811
2813
|
let n = 0, r = 1e3 / e, o, i;
|
|
2812
2814
|
const s = (f, d = Date.now()) => {
|
|
2813
2815
|
n = d, o = null, i && (clearTimeout(i), i = null), t(...f);
|
|
@@ -2821,8 +2823,8 @@ function Tr(t, e) {
|
|
|
2821
2823
|
}
|
|
2822
2824
|
const ye = (t, e, n = 3) => {
|
|
2823
2825
|
let r = 0;
|
|
2824
|
-
const o =
|
|
2825
|
-
return
|
|
2826
|
+
const o = Ar(50, 250);
|
|
2827
|
+
return Fr((i) => {
|
|
2826
2828
|
const s = i.loaded, c = i.lengthComputable ? i.total : void 0, a = s - r, f = o(a), d = s <= c;
|
|
2827
2829
|
r = s;
|
|
2828
2830
|
const g = {
|
|
@@ -2838,17 +2840,17 @@ const ye = (t, e, n = 3) => {
|
|
|
2838
2840
|
};
|
|
2839
2841
|
t(g);
|
|
2840
2842
|
}, n);
|
|
2841
|
-
},
|
|
2843
|
+
}, gt = (t, e) => {
|
|
2842
2844
|
const n = t != null;
|
|
2843
2845
|
return [(r) => e[0]({
|
|
2844
2846
|
lengthComputable: n,
|
|
2845
2847
|
total: t,
|
|
2846
2848
|
loaded: r
|
|
2847
2849
|
}), e[1]];
|
|
2848
|
-
},
|
|
2849
|
-
new URL(
|
|
2850
|
-
|
|
2851
|
-
) : () => !0,
|
|
2850
|
+
}, St = (t) => (...e) => m.asap(() => t(...e)), xr = H.hasStandardBrowserEnv ? /* @__PURE__ */ ((t, e) => (n) => (n = new URL(n, H.origin), t.protocol === n.protocol && t.host === n.host && (e || t.port === n.port)))(
|
|
2851
|
+
new URL(H.origin),
|
|
2852
|
+
H.navigator && /(msie|trident)/i.test(H.navigator.userAgent)
|
|
2853
|
+
) : () => !0, br = H.hasStandardBrowserEnv ? (
|
|
2852
2854
|
// Standard browser envs support document.cookie
|
|
2853
2855
|
{
|
|
2854
2856
|
write(t, e, n, r, o, i, s) {
|
|
@@ -2877,17 +2879,17 @@ const ye = (t, e, n = 3) => {
|
|
|
2877
2879
|
}
|
|
2878
2880
|
}
|
|
2879
2881
|
);
|
|
2880
|
-
function
|
|
2882
|
+
function Ur(t) {
|
|
2881
2883
|
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);
|
|
2882
2884
|
}
|
|
2883
|
-
function
|
|
2885
|
+
function Pr(t, e) {
|
|
2884
2886
|
return e ? t.replace(/\/?\/$/, "") + "/" + e.replace(/^\/+/, "") : t;
|
|
2885
2887
|
}
|
|
2886
|
-
function
|
|
2887
|
-
let r = !
|
|
2888
|
-
return t && (r || n == !1) ?
|
|
2888
|
+
function Wt(t, e, n) {
|
|
2889
|
+
let r = !Ur(e);
|
|
2890
|
+
return t && (r || n == !1) ? Pr(t, e) : e;
|
|
2889
2891
|
}
|
|
2890
|
-
const
|
|
2892
|
+
const wt = (t) => t instanceof j ? { ...t } : t;
|
|
2891
2893
|
function K(t, e) {
|
|
2892
2894
|
e = e || {};
|
|
2893
2895
|
const n = {};
|
|
@@ -2945,21 +2947,21 @@ function K(t, e) {
|
|
|
2945
2947
|
socketPath: s,
|
|
2946
2948
|
responseEncoding: s,
|
|
2947
2949
|
validateStatus: c,
|
|
2948
|
-
headers: (f, d, g) => o(
|
|
2950
|
+
headers: (f, d, g) => o(wt(f), wt(d), g, !0)
|
|
2949
2951
|
};
|
|
2950
2952
|
return m.forEach(Object.keys({ ...t, ...e }), function(d) {
|
|
2951
2953
|
const g = a[d] || o, N = g(t[d], e[d], d);
|
|
2952
2954
|
m.isUndefined(N) && g !== c || (n[d] = N);
|
|
2953
2955
|
}), n;
|
|
2954
2956
|
}
|
|
2955
|
-
const
|
|
2957
|
+
const Jt = (t) => {
|
|
2956
2958
|
const e = K({}, t);
|
|
2957
2959
|
let { data: n, withXSRFToken: r, xsrfHeaderName: o, xsrfCookieName: i, headers: s, auth: c } = e;
|
|
2958
|
-
if (e.headers = s =
|
|
2960
|
+
if (e.headers = s = j.from(s), e.url = kt(Wt(e.baseURL, e.url, e.allowAbsoluteUrls), t.params, t.paramsSerializer), c && s.set(
|
|
2959
2961
|
"Authorization",
|
|
2960
2962
|
"Basic " + btoa((c.username || "") + ":" + (c.password ? unescape(encodeURIComponent(c.password)) : ""))
|
|
2961
2963
|
), m.isFormData(n)) {
|
|
2962
|
-
if (
|
|
2964
|
+
if (H.hasStandardBrowserEnv || H.hasStandardBrowserWebWorkerEnv)
|
|
2963
2965
|
s.setContentType(void 0);
|
|
2964
2966
|
else if (m.isFunction(n.getHeaders)) {
|
|
2965
2967
|
const a = n.getHeaders(), f = ["content-type", "content-length"];
|
|
@@ -2968,16 +2970,16 @@ const Wt = (t) => {
|
|
|
2968
2970
|
});
|
|
2969
2971
|
}
|
|
2970
2972
|
}
|
|
2971
|
-
if (
|
|
2972
|
-
const a = o && i &&
|
|
2973
|
+
if (H.hasStandardBrowserEnv && (r && m.isFunction(r) && (r = r(e)), r || r !== !1 && xr(e.url))) {
|
|
2974
|
+
const a = o && i && br.read(i);
|
|
2973
2975
|
a && s.set(o, a);
|
|
2974
2976
|
}
|
|
2975
2977
|
return e;
|
|
2976
|
-
},
|
|
2978
|
+
}, Br = typeof XMLHttpRequest < "u", vr = Br && function(t) {
|
|
2977
2979
|
return new Promise(function(n, r) {
|
|
2978
|
-
const o =
|
|
2980
|
+
const o = Jt(t);
|
|
2979
2981
|
let i = o.data;
|
|
2980
|
-
const s =
|
|
2982
|
+
const s = j.from(o.headers).normalize();
|
|
2981
2983
|
let { responseType: c, onUploadProgress: a, onDownloadProgress: f } = o, d, g, N, y, E;
|
|
2982
2984
|
function C() {
|
|
2983
2985
|
y && y(), E && E(), o.cancelToken && o.cancelToken.unsubscribe(d), o.signal && o.signal.removeEventListener("abort", d);
|
|
@@ -2987,7 +2989,7 @@ const Wt = (t) => {
|
|
|
2987
2989
|
function D() {
|
|
2988
2990
|
if (!L)
|
|
2989
2991
|
return;
|
|
2990
|
-
const R =
|
|
2992
|
+
const R = j.from(
|
|
2991
2993
|
"getAllResponseHeaders" in L && L.getAllResponseHeaders()
|
|
2992
2994
|
), u = {
|
|
2993
2995
|
data: !c || c === "text" || c === "json" ? L.responseText : L.response,
|
|
@@ -2997,7 +2999,7 @@ const Wt = (t) => {
|
|
|
2997
2999
|
config: t,
|
|
2998
3000
|
request: L
|
|
2999
3001
|
};
|
|
3000
|
-
|
|
3002
|
+
Xt(function(l) {
|
|
3001
3003
|
n(l), C();
|
|
3002
3004
|
}, function(l) {
|
|
3003
3005
|
r(l), C();
|
|
@@ -3012,7 +3014,7 @@ const Wt = (t) => {
|
|
|
3012
3014
|
S.event = h || null, r(S), L = null;
|
|
3013
3015
|
}, L.ontimeout = function() {
|
|
3014
3016
|
let h = o.timeout ? "timeout of " + o.timeout + "ms exceeded" : "timeout exceeded";
|
|
3015
|
-
const u = o.transitional ||
|
|
3017
|
+
const u = o.transitional || $t;
|
|
3016
3018
|
o.timeoutErrorMessage && (h = o.timeoutErrorMessage), r(new F(
|
|
3017
3019
|
h,
|
|
3018
3020
|
u.clarifyTimeoutError ? F.ETIMEDOUT : F.ECONNABORTED,
|
|
@@ -3024,14 +3026,14 @@ const Wt = (t) => {
|
|
|
3024
3026
|
}), m.isUndefined(o.withCredentials) || (L.withCredentials = !!o.withCredentials), c && c !== "json" && (L.responseType = o.responseType), f && ([N, E] = ye(f, !0), L.addEventListener("progress", N)), a && L.upload && ([g, y] = ye(a), L.upload.addEventListener("progress", g), L.upload.addEventListener("loadend", y)), (o.cancelToken || o.signal) && (d = (R) => {
|
|
3025
3027
|
L && (r(!R || R.type ? new te(null, t, L) : R), L.abort(), L = null);
|
|
3026
3028
|
}, o.cancelToken && o.cancelToken.subscribe(d), o.signal && (o.signal.aborted ? d() : o.signal.addEventListener("abort", d)));
|
|
3027
|
-
const I =
|
|
3028
|
-
if (I &&
|
|
3029
|
+
const I = Tr(o.url);
|
|
3030
|
+
if (I && H.protocols.indexOf(I) === -1) {
|
|
3029
3031
|
r(new F("Unsupported protocol " + I + ":", F.ERR_BAD_REQUEST, t));
|
|
3030
3032
|
return;
|
|
3031
3033
|
}
|
|
3032
3034
|
L.send(i || null);
|
|
3033
3035
|
});
|
|
3034
|
-
},
|
|
3036
|
+
}, Hr = (t, e) => {
|
|
3035
3037
|
const { length: n } = t = t ? t.filter(Boolean) : [];
|
|
3036
3038
|
if (e || n) {
|
|
3037
3039
|
let r = new AbortController(), o;
|
|
@@ -3054,7 +3056,7 @@ const Wt = (t) => {
|
|
|
3054
3056
|
const { signal: a } = r;
|
|
3055
3057
|
return a.unsubscribe = () => m.asap(c), a;
|
|
3056
3058
|
}
|
|
3057
|
-
},
|
|
3059
|
+
}, Mr = function* (t, e) {
|
|
3058
3060
|
let n = t.byteLength;
|
|
3059
3061
|
if (n < e) {
|
|
3060
3062
|
yield t;
|
|
@@ -3063,10 +3065,10 @@ const Wt = (t) => {
|
|
|
3063
3065
|
let r = 0, o;
|
|
3064
3066
|
for (; r < n; )
|
|
3065
3067
|
o = r + e, yield t.slice(r, o), r = o;
|
|
3066
|
-
},
|
|
3067
|
-
for await (const n of
|
|
3068
|
-
yield*
|
|
3069
|
-
},
|
|
3068
|
+
}, jr = async function* (t, e) {
|
|
3069
|
+
for await (const n of zr(t))
|
|
3070
|
+
yield* Mr(n, e);
|
|
3071
|
+
}, zr = async function* (t) {
|
|
3070
3072
|
if (t[Symbol.asyncIterator]) {
|
|
3071
3073
|
yield* t;
|
|
3072
3074
|
return;
|
|
@@ -3082,8 +3084,8 @@ const Wt = (t) => {
|
|
|
3082
3084
|
} finally {
|
|
3083
3085
|
await e.cancel();
|
|
3084
3086
|
}
|
|
3085
|
-
},
|
|
3086
|
-
const o =
|
|
3087
|
+
}, Ct = (t, e, n, r) => {
|
|
3088
|
+
const o = jr(t, e);
|
|
3087
3089
|
let i = 0, s, c = (a) => {
|
|
3088
3090
|
s || (s = !0, r && r(a));
|
|
3089
3091
|
};
|
|
@@ -3111,36 +3113,36 @@ const Wt = (t) => {
|
|
|
3111
3113
|
}, {
|
|
3112
3114
|
highWaterMark: 2
|
|
3113
3115
|
});
|
|
3114
|
-
},
|
|
3116
|
+
}, Nt = 64 * 1024, { isFunction: he } = m, Zr = (({ Request: t, Response: e }) => ({
|
|
3115
3117
|
Request: t,
|
|
3116
3118
|
Response: e
|
|
3117
3119
|
}))(m.global), {
|
|
3118
|
-
ReadableStream:
|
|
3119
|
-
TextEncoder:
|
|
3120
|
-
} = m.global,
|
|
3120
|
+
ReadableStream: Lt,
|
|
3121
|
+
TextEncoder: It
|
|
3122
|
+
} = m.global, Ot = (t, ...e) => {
|
|
3121
3123
|
try {
|
|
3122
3124
|
return !!t(...e);
|
|
3123
3125
|
} catch {
|
|
3124
3126
|
return !1;
|
|
3125
3127
|
}
|
|
3126
|
-
},
|
|
3128
|
+
}, qr = (t) => {
|
|
3127
3129
|
t = m.merge.call({
|
|
3128
3130
|
skipUndefined: !0
|
|
3129
|
-
},
|
|
3131
|
+
}, Zr, t);
|
|
3130
3132
|
const { fetch: e, Request: n, Response: r } = t, o = e ? he(e) : typeof fetch == "function", i = he(n), s = he(r);
|
|
3131
3133
|
if (!o)
|
|
3132
3134
|
return !1;
|
|
3133
|
-
const c = o && he(
|
|
3135
|
+
const c = o && he(Lt), a = o && (typeof It == "function" ? /* @__PURE__ */ ((E) => (C) => E.encode(C))(new It()) : async (E) => new Uint8Array(await new n(E).arrayBuffer())), f = i && c && Ot(() => {
|
|
3134
3136
|
let E = !1;
|
|
3135
|
-
const C = new n(
|
|
3136
|
-
body: new
|
|
3137
|
+
const C = new n(H.origin, {
|
|
3138
|
+
body: new Lt(),
|
|
3137
3139
|
method: "POST",
|
|
3138
3140
|
get duplex() {
|
|
3139
3141
|
return E = !0, "half";
|
|
3140
3142
|
}
|
|
3141
3143
|
}).headers.has("Content-Type");
|
|
3142
3144
|
return E && !C;
|
|
3143
|
-
}), d = s && c &&
|
|
3145
|
+
}), d = s && c && Ot(() => m.isReadableStream(new r("").body)), g = {
|
|
3144
3146
|
stream: d && ((E) => E.body)
|
|
3145
3147
|
};
|
|
3146
3148
|
o && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((E) => {
|
|
@@ -3157,7 +3159,7 @@ const Wt = (t) => {
|
|
|
3157
3159
|
if (m.isBlob(E))
|
|
3158
3160
|
return E.size;
|
|
3159
3161
|
if (m.isSpecCompliantForm(E))
|
|
3160
|
-
return (await new n(
|
|
3162
|
+
return (await new n(H.origin, {
|
|
3161
3163
|
method: "POST",
|
|
3162
3164
|
body: E
|
|
3163
3165
|
}).arrayBuffer()).byteLength;
|
|
@@ -3183,26 +3185,26 @@ const Wt = (t) => {
|
|
|
3183
3185
|
headers: p,
|
|
3184
3186
|
withCredentials: w = "same-origin",
|
|
3185
3187
|
fetchOptions: _
|
|
3186
|
-
} =
|
|
3188
|
+
} = Jt(E), T = e || fetch;
|
|
3187
3189
|
l = l ? (l + "").toLowerCase() : "text";
|
|
3188
|
-
let A =
|
|
3190
|
+
let A = Hr([I, R && R.toAbortSignal()], h), O = null;
|
|
3189
3191
|
const x = A && A.unsubscribe && (() => {
|
|
3190
3192
|
A.unsubscribe();
|
|
3191
3193
|
});
|
|
3192
3194
|
let b;
|
|
3193
3195
|
try {
|
|
3194
3196
|
if (S && f && L !== "get" && L !== "head" && (b = await y(p, D)) !== 0) {
|
|
3195
|
-
let
|
|
3197
|
+
let Z = new n(C, {
|
|
3196
3198
|
method: "POST",
|
|
3197
3199
|
body: D,
|
|
3198
3200
|
duplex: "half"
|
|
3199
3201
|
}), V;
|
|
3200
|
-
if (m.isFormData(D) && (V =
|
|
3201
|
-
const [Le, le] =
|
|
3202
|
+
if (m.isFormData(D) && (V = Z.headers.get("content-type")) && p.setContentType(V), Z.body) {
|
|
3203
|
+
const [Le, le] = gt(
|
|
3202
3204
|
b,
|
|
3203
|
-
ye(
|
|
3205
|
+
ye(St(S))
|
|
3204
3206
|
);
|
|
3205
|
-
D =
|
|
3207
|
+
D = Ct(Z.body, Nt, Le, le);
|
|
3206
3208
|
}
|
|
3207
3209
|
}
|
|
3208
3210
|
m.isString(w) || (w = w ? "include" : "omit");
|
|
@@ -3217,29 +3219,29 @@ const Wt = (t) => {
|
|
|
3217
3219
|
};
|
|
3218
3220
|
O = i && new n(C, B);
|
|
3219
3221
|
let P = await (i ? T(O, _) : T(C, B));
|
|
3220
|
-
const
|
|
3221
|
-
if (d && (u ||
|
|
3222
|
-
const
|
|
3223
|
-
["status", "statusText", "headers"].forEach((
|
|
3224
|
-
|
|
3222
|
+
const z = d && (l === "stream" || l === "response");
|
|
3223
|
+
if (d && (u || z && x)) {
|
|
3224
|
+
const Z = {};
|
|
3225
|
+
["status", "statusText", "headers"].forEach((Je) => {
|
|
3226
|
+
Z[Je] = P[Je];
|
|
3225
3227
|
});
|
|
3226
|
-
const V = m.toFiniteNumber(P.headers.get("content-length")), [Le, le] = u &&
|
|
3228
|
+
const V = m.toFiniteNumber(P.headers.get("content-length")), [Le, le] = u && gt(
|
|
3227
3229
|
V,
|
|
3228
|
-
ye(
|
|
3230
|
+
ye(St(u), !0)
|
|
3229
3231
|
) || [];
|
|
3230
3232
|
P = new r(
|
|
3231
|
-
|
|
3233
|
+
Ct(P.body, Nt, Le, () => {
|
|
3232
3234
|
le && le(), x && x();
|
|
3233
3235
|
}),
|
|
3234
|
-
|
|
3236
|
+
Z
|
|
3235
3237
|
);
|
|
3236
3238
|
}
|
|
3237
3239
|
l = l || "text";
|
|
3238
3240
|
let ne = await g[m.findKey(g, l) || "text"](P, E);
|
|
3239
|
-
return !
|
|
3240
|
-
|
|
3241
|
+
return !z && x && x(), await new Promise((Z, V) => {
|
|
3242
|
+
Xt(Z, V, {
|
|
3241
3243
|
data: ne,
|
|
3242
|
-
headers:
|
|
3244
|
+
headers: j.from(P.headers),
|
|
3243
3245
|
status: P.status,
|
|
3244
3246
|
statusText: P.statusText,
|
|
3245
3247
|
config: E,
|
|
@@ -3255,27 +3257,27 @@ const Wt = (t) => {
|
|
|
3255
3257
|
) : F.from(U, U && U.code, E, O);
|
|
3256
3258
|
}
|
|
3257
3259
|
};
|
|
3258
|
-
},
|
|
3260
|
+
}, kr = /* @__PURE__ */ new Map(), Kt = (t) => {
|
|
3259
3261
|
let e = t && t.env || {};
|
|
3260
3262
|
const { fetch: n, Request: r, Response: o } = e, i = [
|
|
3261
3263
|
r,
|
|
3262
3264
|
o,
|
|
3263
3265
|
n
|
|
3264
3266
|
];
|
|
3265
|
-
let s = i.length, c = s, a, f, d =
|
|
3267
|
+
let s = i.length, c = s, a, f, d = kr;
|
|
3266
3268
|
for (; c--; )
|
|
3267
|
-
a = i[c], f = d.get(a), f === void 0 && d.set(a, f = c ? /* @__PURE__ */ new Map() :
|
|
3269
|
+
a = i[c], f = d.get(a), f === void 0 && d.set(a, f = c ? /* @__PURE__ */ new Map() : qr(e)), d = f;
|
|
3268
3270
|
return f;
|
|
3269
3271
|
};
|
|
3270
|
-
|
|
3271
|
-
const
|
|
3272
|
-
http:
|
|
3273
|
-
xhr:
|
|
3272
|
+
Kt();
|
|
3273
|
+
const We = {
|
|
3274
|
+
http: ar,
|
|
3275
|
+
xhr: vr,
|
|
3274
3276
|
fetch: {
|
|
3275
|
-
get:
|
|
3277
|
+
get: Kt
|
|
3276
3278
|
}
|
|
3277
3279
|
};
|
|
3278
|
-
m.forEach(
|
|
3280
|
+
m.forEach(We, (t, e) => {
|
|
3279
3281
|
if (t) {
|
|
3280
3282
|
try {
|
|
3281
3283
|
Object.defineProperty(t, "name", { value: e });
|
|
@@ -3284,8 +3286,8 @@ m.forEach(Xe, (t, e) => {
|
|
|
3284
3286
|
Object.defineProperty(t, "adapterName", { value: e });
|
|
3285
3287
|
}
|
|
3286
3288
|
});
|
|
3287
|
-
const
|
|
3288
|
-
function
|
|
3289
|
+
const Dt = (t) => `- ${t}`, $r = (t) => m.isFunction(t) || t === null || t === !1;
|
|
3290
|
+
function Gr(t, e) {
|
|
3289
3291
|
t = m.isArray(t) ? t : [t];
|
|
3290
3292
|
const { length: n } = t;
|
|
3291
3293
|
let r, o;
|
|
@@ -3293,7 +3295,7 @@ function kr(t, e) {
|
|
|
3293
3295
|
for (let s = 0; s < n; s++) {
|
|
3294
3296
|
r = t[s];
|
|
3295
3297
|
let c;
|
|
3296
|
-
if (o = r,
|
|
3298
|
+
if (o = r, !$r(r) && (o = We[(c = String(r)).toLowerCase()], o === void 0))
|
|
3297
3299
|
throw new F(`Unknown adapter '${c}'`);
|
|
3298
3300
|
if (o && (m.isFunction(o) || (o = o.get(e))))
|
|
3299
3301
|
break;
|
|
@@ -3304,8 +3306,8 @@ function kr(t, e) {
|
|
|
3304
3306
|
([a, f]) => `adapter ${a} ` + (f === !1 ? "is not supported by the environment" : "is not available in the build")
|
|
3305
3307
|
);
|
|
3306
3308
|
let c = n ? s.length > 1 ? `since :
|
|
3307
|
-
` + s.map(
|
|
3308
|
-
`) : " " +
|
|
3309
|
+
` + s.map(Dt).join(`
|
|
3310
|
+
`) : " " + Dt(s[0]) : "as no adapter specified";
|
|
3309
3311
|
throw new F(
|
|
3310
3312
|
"There is no suitable adapter to dispatch the request " + c,
|
|
3311
3313
|
"ERR_NOT_SUPPORT"
|
|
@@ -3313,50 +3315,50 @@ function kr(t, e) {
|
|
|
3313
3315
|
}
|
|
3314
3316
|
return o;
|
|
3315
3317
|
}
|
|
3316
|
-
const
|
|
3318
|
+
const Yt = {
|
|
3317
3319
|
/**
|
|
3318
3320
|
* Resolve an adapter from a list of adapter names or functions.
|
|
3319
3321
|
* @type {Function}
|
|
3320
3322
|
*/
|
|
3321
|
-
getAdapter:
|
|
3323
|
+
getAdapter: Gr,
|
|
3322
3324
|
/**
|
|
3323
3325
|
* Exposes all known adapters
|
|
3324
3326
|
* @type {Object<string, Function|Object>}
|
|
3325
3327
|
*/
|
|
3326
|
-
adapters:
|
|
3328
|
+
adapters: We
|
|
3327
3329
|
};
|
|
3328
3330
|
function Me(t) {
|
|
3329
3331
|
if (t.cancelToken && t.cancelToken.throwIfRequested(), t.signal && t.signal.aborted)
|
|
3330
3332
|
throw new te(null, t);
|
|
3331
3333
|
}
|
|
3332
|
-
function
|
|
3333
|
-
return Me(t), t.headers =
|
|
3334
|
+
function Rt(t) {
|
|
3335
|
+
return Me(t), t.headers = j.from(t.headers), t.data = He.call(
|
|
3334
3336
|
t,
|
|
3335
3337
|
t.transformRequest
|
|
3336
|
-
), ["post", "put", "patch"].indexOf(t.method) !== -1 && t.headers.setContentType("application/x-www-form-urlencoded", !1),
|
|
3338
|
+
), ["post", "put", "patch"].indexOf(t.method) !== -1 && t.headers.setContentType("application/x-www-form-urlencoded", !1), Yt.getAdapter(t.adapter || ue.adapter, t)(t).then(function(r) {
|
|
3337
3339
|
return Me(t), r.data = He.call(
|
|
3338
3340
|
t,
|
|
3339
3341
|
t.transformResponse,
|
|
3340
3342
|
r
|
|
3341
|
-
), r.headers =
|
|
3343
|
+
), r.headers = j.from(r.headers), r;
|
|
3342
3344
|
}, function(r) {
|
|
3343
3345
|
return Vt(r) || (Me(t), r && r.response && (r.response.data = He.call(
|
|
3344
3346
|
t,
|
|
3345
3347
|
t.transformResponse,
|
|
3346
3348
|
r.response
|
|
3347
|
-
), r.response.headers =
|
|
3349
|
+
), r.response.headers = j.from(r.response.headers))), Promise.reject(r);
|
|
3348
3350
|
});
|
|
3349
3351
|
}
|
|
3350
|
-
const
|
|
3352
|
+
const Qt = "1.13.2", Ne = {};
|
|
3351
3353
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((t, e) => {
|
|
3352
3354
|
Ne[t] = function(r) {
|
|
3353
3355
|
return typeof r === t || "a" + (e < 1 ? "n " : " ") + t;
|
|
3354
3356
|
};
|
|
3355
3357
|
});
|
|
3356
|
-
const
|
|
3358
|
+
const _t = {};
|
|
3357
3359
|
Ne.transitional = function(e, n, r) {
|
|
3358
3360
|
function o(i, s) {
|
|
3359
|
-
return "[Axios v" +
|
|
3361
|
+
return "[Axios v" + Qt + "] Transitional option '" + i + "'" + s + (r ? ". " + r : "");
|
|
3360
3362
|
}
|
|
3361
3363
|
return (i, s, c) => {
|
|
3362
3364
|
if (e === !1)
|
|
@@ -3364,7 +3366,7 @@ Ne.transitional = function(e, n, r) {
|
|
|
3364
3366
|
o(s, " has been removed" + (n ? " in " + n : "")),
|
|
3365
3367
|
F.ERR_DEPRECATED
|
|
3366
3368
|
);
|
|
3367
|
-
return n && !
|
|
3369
|
+
return n && !_t[s] && (_t[s] = !0, console.warn(
|
|
3368
3370
|
o(
|
|
3369
3371
|
s,
|
|
3370
3372
|
" has been deprecated since v" + n + " and will be removed in the near future"
|
|
@@ -3375,7 +3377,7 @@ Ne.transitional = function(e, n, r) {
|
|
|
3375
3377
|
Ne.spelling = function(e) {
|
|
3376
3378
|
return (n, r) => (console.warn(`${r} is likely a misspelling of ${e}`), !0);
|
|
3377
3379
|
};
|
|
3378
|
-
function
|
|
3380
|
+
function Vr(t, e, n) {
|
|
3379
3381
|
if (typeof t != "object")
|
|
3380
3382
|
throw new F("options must be an object", F.ERR_BAD_OPTION_VALUE);
|
|
3381
3383
|
const r = Object.keys(t);
|
|
@@ -3393,14 +3395,14 @@ function Gr(t, e, n) {
|
|
|
3393
3395
|
}
|
|
3394
3396
|
}
|
|
3395
3397
|
const pe = {
|
|
3396
|
-
assertOptions:
|
|
3398
|
+
assertOptions: Vr,
|
|
3397
3399
|
validators: Ne
|
|
3398
|
-
},
|
|
3399
|
-
let
|
|
3400
|
+
}, $ = pe.validators;
|
|
3401
|
+
let J = class {
|
|
3400
3402
|
constructor(e) {
|
|
3401
3403
|
this.defaults = e || {}, this.interceptors = {
|
|
3402
|
-
request: new
|
|
3403
|
-
response: new
|
|
3404
|
+
request: new pt(),
|
|
3405
|
+
response: new pt()
|
|
3404
3406
|
};
|
|
3405
3407
|
}
|
|
3406
3408
|
/**
|
|
@@ -3432,17 +3434,17 @@ let W = class {
|
|
|
3432
3434
|
typeof e == "string" ? (n = n || {}, n.url = e) : n = e || {}, n = K(this.defaults, n);
|
|
3433
3435
|
const { transitional: r, paramsSerializer: o, headers: i } = n;
|
|
3434
3436
|
r !== void 0 && pe.assertOptions(r, {
|
|
3435
|
-
silentJSONParsing:
|
|
3436
|
-
forcedJSONParsing:
|
|
3437
|
-
clarifyTimeoutError:
|
|
3437
|
+
silentJSONParsing: $.transitional($.boolean),
|
|
3438
|
+
forcedJSONParsing: $.transitional($.boolean),
|
|
3439
|
+
clarifyTimeoutError: $.transitional($.boolean)
|
|
3438
3440
|
}, !1), o != null && (m.isFunction(o) ? n.paramsSerializer = {
|
|
3439
3441
|
serialize: o
|
|
3440
3442
|
} : pe.assertOptions(o, {
|
|
3441
|
-
encode:
|
|
3442
|
-
serialize:
|
|
3443
|
+
encode: $.function,
|
|
3444
|
+
serialize: $.function
|
|
3443
3445
|
}, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0), pe.assertOptions(n, {
|
|
3444
|
-
baseUrl:
|
|
3445
|
-
withXsrfToken:
|
|
3446
|
+
baseUrl: $.spelling("baseURL"),
|
|
3447
|
+
withXsrfToken: $.spelling("withXSRFToken")
|
|
3446
3448
|
}, !0), n.method = (n.method || this.defaults.method || "get").toLowerCase();
|
|
3447
3449
|
let s = i && m.merge(
|
|
3448
3450
|
i.common,
|
|
@@ -3453,7 +3455,7 @@ let W = class {
|
|
|
3453
3455
|
(E) => {
|
|
3454
3456
|
delete i[E];
|
|
3455
3457
|
}
|
|
3456
|
-
), n.headers =
|
|
3458
|
+
), n.headers = j.concat(s, i);
|
|
3457
3459
|
const c = [];
|
|
3458
3460
|
let a = !0;
|
|
3459
3461
|
this.interceptors.request.forEach(function(C) {
|
|
@@ -3465,7 +3467,7 @@ let W = class {
|
|
|
3465
3467
|
});
|
|
3466
3468
|
let d, g = 0, N;
|
|
3467
3469
|
if (!a) {
|
|
3468
|
-
const E = [
|
|
3470
|
+
const E = [Rt.bind(this), void 0];
|
|
3469
3471
|
for (E.unshift(...c), E.push(...f), N = E.length, d = Promise.resolve(n); g < N; )
|
|
3470
3472
|
d = d.then(E[g++], E[g++]);
|
|
3471
3473
|
return d;
|
|
@@ -3482,7 +3484,7 @@ let W = class {
|
|
|
3482
3484
|
}
|
|
3483
3485
|
}
|
|
3484
3486
|
try {
|
|
3485
|
-
d =
|
|
3487
|
+
d = Rt.call(this, y);
|
|
3486
3488
|
} catch (E) {
|
|
3487
3489
|
return Promise.reject(E);
|
|
3488
3490
|
}
|
|
@@ -3492,12 +3494,12 @@ let W = class {
|
|
|
3492
3494
|
}
|
|
3493
3495
|
getUri(e) {
|
|
3494
3496
|
e = K(this.defaults, e);
|
|
3495
|
-
const n =
|
|
3496
|
-
return
|
|
3497
|
+
const n = Wt(e.baseURL, e.url, e.allowAbsoluteUrls);
|
|
3498
|
+
return kt(n, e.params, e.paramsSerializer);
|
|
3497
3499
|
}
|
|
3498
3500
|
};
|
|
3499
3501
|
m.forEach(["delete", "get", "head", "options"], function(e) {
|
|
3500
|
-
|
|
3502
|
+
J.prototype[e] = function(n, r) {
|
|
3501
3503
|
return this.request(K(r || {}, {
|
|
3502
3504
|
method: e,
|
|
3503
3505
|
url: n,
|
|
@@ -3518,9 +3520,9 @@ m.forEach(["post", "put", "patch"], function(e) {
|
|
|
3518
3520
|
}));
|
|
3519
3521
|
};
|
|
3520
3522
|
}
|
|
3521
|
-
|
|
3523
|
+
J.prototype[e] = n(), J.prototype[e + "Form"] = n(!0);
|
|
3522
3524
|
});
|
|
3523
|
-
let
|
|
3525
|
+
let Xr = class en {
|
|
3524
3526
|
constructor(e) {
|
|
3525
3527
|
if (typeof e != "function")
|
|
3526
3528
|
throw new TypeError("executor must be a function.");
|
|
@@ -3586,19 +3588,19 @@ let Vr = class Qt {
|
|
|
3586
3588
|
static source() {
|
|
3587
3589
|
let e;
|
|
3588
3590
|
return {
|
|
3589
|
-
token: new
|
|
3591
|
+
token: new en(function(o) {
|
|
3590
3592
|
e = o;
|
|
3591
3593
|
}),
|
|
3592
3594
|
cancel: e
|
|
3593
3595
|
};
|
|
3594
3596
|
}
|
|
3595
3597
|
};
|
|
3596
|
-
function
|
|
3598
|
+
function Wr(t) {
|
|
3597
3599
|
return function(n) {
|
|
3598
3600
|
return t.apply(null, n);
|
|
3599
3601
|
};
|
|
3600
3602
|
}
|
|
3601
|
-
function
|
|
3603
|
+
function Jr(t) {
|
|
3602
3604
|
return m.isObject(t) && t.isAxiosError === !0;
|
|
3603
3605
|
}
|
|
3604
3606
|
const qe = {
|
|
@@ -3675,51 +3677,51 @@ const qe = {
|
|
|
3675
3677
|
Object.entries(qe).forEach(([t, e]) => {
|
|
3676
3678
|
qe[e] = t;
|
|
3677
3679
|
});
|
|
3678
|
-
function
|
|
3679
|
-
const e = new
|
|
3680
|
-
return m.extend(n,
|
|
3681
|
-
return
|
|
3680
|
+
function tn(t) {
|
|
3681
|
+
const e = new J(t), n = xt(J.prototype.request, e);
|
|
3682
|
+
return m.extend(n, J.prototype, e, { allOwnKeys: !0 }), m.extend(n, e, null, { allOwnKeys: !0 }), n.create = function(o) {
|
|
3683
|
+
return tn(K(t, o));
|
|
3682
3684
|
}, n;
|
|
3683
3685
|
}
|
|
3684
|
-
const v =
|
|
3685
|
-
v.Axios =
|
|
3686
|
+
const v = tn(ue);
|
|
3687
|
+
v.Axios = J;
|
|
3686
3688
|
v.CanceledError = te;
|
|
3687
|
-
v.CancelToken =
|
|
3689
|
+
v.CancelToken = Xr;
|
|
3688
3690
|
v.isCancel = Vt;
|
|
3689
|
-
v.VERSION =
|
|
3691
|
+
v.VERSION = Qt;
|
|
3690
3692
|
v.toFormData = Ce;
|
|
3691
3693
|
v.AxiosError = F;
|
|
3692
3694
|
v.Cancel = v.CanceledError;
|
|
3693
3695
|
v.all = function(e) {
|
|
3694
3696
|
return Promise.all(e);
|
|
3695
3697
|
};
|
|
3696
|
-
v.spread =
|
|
3697
|
-
v.isAxiosError =
|
|
3698
|
+
v.spread = Wr;
|
|
3699
|
+
v.isAxiosError = Jr;
|
|
3698
3700
|
v.mergeConfig = K;
|
|
3699
|
-
v.AxiosHeaders =
|
|
3701
|
+
v.AxiosHeaders = j;
|
|
3700
3702
|
v.formToJSON = (t) => Gt(m.isHTMLForm(t) ? new FormData(t) : t);
|
|
3701
|
-
v.getAdapter =
|
|
3703
|
+
v.getAdapter = Yt.getAdapter;
|
|
3702
3704
|
v.HttpStatusCode = qe;
|
|
3703
3705
|
v.default = v;
|
|
3704
3706
|
const {
|
|
3705
|
-
Axios:
|
|
3706
|
-
AxiosError:
|
|
3707
|
-
CanceledError:
|
|
3708
|
-
isCancel:
|
|
3709
|
-
CancelToken:
|
|
3710
|
-
VERSION:
|
|
3711
|
-
all:
|
|
3712
|
-
Cancel:
|
|
3713
|
-
isAxiosError:
|
|
3714
|
-
spread:
|
|
3715
|
-
toFormData:
|
|
3716
|
-
AxiosHeaders:
|
|
3717
|
-
HttpStatusCode:
|
|
3718
|
-
formToJSON:
|
|
3719
|
-
getAdapter:
|
|
3720
|
-
mergeConfig:
|
|
3707
|
+
Axios: so,
|
|
3708
|
+
AxiosError: io,
|
|
3709
|
+
CanceledError: ao,
|
|
3710
|
+
isCancel: co,
|
|
3711
|
+
CancelToken: fo,
|
|
3712
|
+
VERSION: uo,
|
|
3713
|
+
all: lo,
|
|
3714
|
+
Cancel: ho,
|
|
3715
|
+
isAxiosError: Eo,
|
|
3716
|
+
spread: mo,
|
|
3717
|
+
toFormData: po,
|
|
3718
|
+
AxiosHeaders: yo,
|
|
3719
|
+
HttpStatusCode: go,
|
|
3720
|
+
formToJSON: So,
|
|
3721
|
+
getAdapter: wo,
|
|
3722
|
+
mergeConfig: Co
|
|
3721
3723
|
} = v;
|
|
3722
|
-
async function
|
|
3724
|
+
async function Kr(t) {
|
|
3723
3725
|
return fetch(
|
|
3724
3726
|
`https://api.ndjjd.top/ndd/api/v1/component/pubapi/query?name=${t}`,
|
|
3725
3727
|
{
|
|
@@ -3734,49 +3736,49 @@ async function Wr(t) {
|
|
|
3734
3736
|
}
|
|
3735
3737
|
});
|
|
3736
3738
|
}
|
|
3737
|
-
const
|
|
3738
|
-
const r =
|
|
3739
|
-
return
|
|
3739
|
+
const Yr = (t, e, n) => {
|
|
3740
|
+
const r = G.createHash("md5").update(n).digest("hex");
|
|
3741
|
+
return q.resolve(t, e, r);
|
|
3740
3742
|
};
|
|
3741
|
-
async function
|
|
3742
|
-
const e = ["index.js", "Index.js", "INDEX.JS"], n = await
|
|
3743
|
+
async function nn(t) {
|
|
3744
|
+
const e = ["index.js", "Index.js", "INDEX.JS"], n = await G.readdir(t, { withFileTypes: !0 });
|
|
3743
3745
|
for (const r of n) {
|
|
3744
|
-
const o =
|
|
3746
|
+
const o = q.resolve(t, r.name);
|
|
3745
3747
|
if (r.isFile() && e.includes(r.name))
|
|
3746
3748
|
return o;
|
|
3747
3749
|
if (r.isDirectory()) {
|
|
3748
|
-
const i = await
|
|
3750
|
+
const i = await nn(o);
|
|
3749
3751
|
if (i)
|
|
3750
3752
|
return i;
|
|
3751
3753
|
}
|
|
3752
3754
|
}
|
|
3753
3755
|
return null;
|
|
3754
3756
|
}
|
|
3755
|
-
async function
|
|
3756
|
-
const e = [], n = [".css", ".CSS"], r = await
|
|
3757
|
+
async function rn(t) {
|
|
3758
|
+
const e = [], n = [".css", ".CSS"], r = await G.readdir(t, { withFileTypes: !0 });
|
|
3757
3759
|
for (const o of r) {
|
|
3758
|
-
const i =
|
|
3760
|
+
const i = q.resolve(t, o.name);
|
|
3759
3761
|
if (o.isFile() && n.some((s) => o.name.endsWith(s)) && e.push(i), o.isDirectory()) {
|
|
3760
|
-
const s = await
|
|
3762
|
+
const s = await rn(i);
|
|
3761
3763
|
e.push(...s);
|
|
3762
3764
|
}
|
|
3763
3765
|
}
|
|
3764
3766
|
return e;
|
|
3765
3767
|
}
|
|
3766
|
-
async function
|
|
3767
|
-
const n = await
|
|
3768
|
+
async function Qr(t, e) {
|
|
3769
|
+
const n = await G.readFile(t, "utf-8"), r = q.dirname(t);
|
|
3768
3770
|
return [
|
|
3769
3771
|
"// 自动生成:整合所有CSS样式 + 原入口JS内容",
|
|
3770
|
-
...e.map((s) => `import './${
|
|
3772
|
+
...e.map((s) => `import './${q.relative(r, s).replace(/\\/g, "/")}';`),
|
|
3771
3773
|
"",
|
|
3772
3774
|
// 空行分隔,优化代码可读性
|
|
3773
3775
|
n
|
|
3774
3776
|
].join(`
|
|
3775
3777
|
`);
|
|
3776
3778
|
}
|
|
3777
|
-
const
|
|
3779
|
+
const eo = async (t, e) => {
|
|
3778
3780
|
try {
|
|
3779
|
-
await
|
|
3781
|
+
await G.mkdir(e, { recursive: !0 });
|
|
3780
3782
|
const r = await v.get(t, {
|
|
3781
3783
|
responseType: "arraybuffer",
|
|
3782
3784
|
timeout: 1e8,
|
|
@@ -3784,25 +3786,25 @@ const Yr = async (t, e) => {
|
|
|
3784
3786
|
Accept: "application/zip"
|
|
3785
3787
|
}
|
|
3786
3788
|
});
|
|
3787
|
-
new
|
|
3788
|
-
const i = await
|
|
3789
|
+
new Cn(Buffer.from(r.data)).extractAllTo(e, !0);
|
|
3790
|
+
const i = await nn(e);
|
|
3789
3791
|
if (!i)
|
|
3790
3792
|
throw new Error(
|
|
3791
3793
|
`在缓存目录 ${e} 及其子目录中未找到 index.js(支持大小写:index.js、Index.js、INDEX.JS)入口文件`
|
|
3792
3794
|
);
|
|
3793
|
-
const s = await
|
|
3794
|
-
return await
|
|
3795
|
+
const s = await rn(e), c = await Qr(i, s), a = q.dirname(i), f = q.resolve(a, "integrated.entry.js");
|
|
3796
|
+
return await G.writeFile(f, c, "utf-8"), f;
|
|
3795
3797
|
} catch (r) {
|
|
3796
3798
|
try {
|
|
3797
|
-
await
|
|
3799
|
+
await G.rm(e, { recursive: !0, force: !0 });
|
|
3798
3800
|
} catch (o) {
|
|
3799
3801
|
console.warn(`[vr-plugin] 清理无效缓存目录失败:${o.message}`);
|
|
3800
3802
|
}
|
|
3801
3803
|
throw new Error(`[vr-plugin] 组件处理失败:${r.message}`);
|
|
3802
3804
|
}
|
|
3803
3805
|
}, Y = /* @__PURE__ */ new Map(), se = /* @__PURE__ */ new Map();
|
|
3804
|
-
function
|
|
3805
|
-
const e = t?.prefix || "vr:", n = t?.cacheDir ?? "./node_modules/.vr-cache", r = t?.search ||
|
|
3806
|
+
function No(t) {
|
|
3807
|
+
const e = t?.prefix || "vr:", n = t?.cacheDir ?? "./node_modules/.vr-cache", r = t?.search || Kr, o = t?.enableCache ?? !0;
|
|
3806
3808
|
let i;
|
|
3807
3809
|
return {
|
|
3808
3810
|
// 插件名称(Vite 要求必须提供,用于日志和调试)
|
|
@@ -3829,7 +3831,7 @@ function go(t) {
|
|
|
3829
3831
|
throw new Error(
|
|
3830
3832
|
`[vr-plugin] 无效的导入格式:${s},格式应为 vr:组件名称`
|
|
3831
3833
|
);
|
|
3832
|
-
const f = i ?? process.cwd(), d =
|
|
3834
|
+
const f = i ?? process.cwd(), d = Yr(
|
|
3833
3835
|
f,
|
|
3834
3836
|
n,
|
|
3835
3837
|
a
|
|
@@ -3837,7 +3839,7 @@ function go(t) {
|
|
|
3837
3839
|
if (o && Y.has(s)) {
|
|
3838
3840
|
const y = Y.get(s);
|
|
3839
3841
|
try {
|
|
3840
|
-
return await
|
|
3842
|
+
return await G.access(y), {
|
|
3841
3843
|
id: y,
|
|
3842
3844
|
external: !1,
|
|
3843
3845
|
moduleSideEffects: !0
|
|
@@ -3861,7 +3863,7 @@ function go(t) {
|
|
|
3861
3863
|
throw new Error(
|
|
3862
3864
|
`[vr-plugin] 未找到组件 ${a} 的 URL,请检查 search 函数`
|
|
3863
3865
|
);
|
|
3864
|
-
const N =
|
|
3866
|
+
const N = eo(
|
|
3865
3867
|
g,
|
|
3866
3868
|
d
|
|
3867
3869
|
);
|
|
@@ -3887,11 +3889,11 @@ function go(t) {
|
|
|
3887
3889
|
* @returns 文件内容或 null
|
|
3888
3890
|
*/
|
|
3889
3891
|
async load(s) {
|
|
3890
|
-
const c = i ?? process.cwd(), a =
|
|
3892
|
+
const c = i ?? process.cwd(), a = q.resolve(c, n);
|
|
3891
3893
|
if (!s.startsWith(a))
|
|
3892
3894
|
return null;
|
|
3893
3895
|
try {
|
|
3894
|
-
return await
|
|
3896
|
+
return await G.readFile(s, "utf-8");
|
|
3895
3897
|
} catch (f) {
|
|
3896
3898
|
throw new Error(
|
|
3897
3899
|
`[vr-plugin] 加载文件失败 ${s}:${f.message}`
|
|
@@ -3907,6 +3909,6 @@ function go(t) {
|
|
|
3907
3909
|
};
|
|
3908
3910
|
}
|
|
3909
3911
|
export {
|
|
3910
|
-
|
|
3911
|
-
|
|
3912
|
+
No as FederationPlugin,
|
|
3913
|
+
No as default
|
|
3912
3914
|
};
|