@jsfsi-core/ts-nestjs 1.1.39 → 1.1.40
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.cjs +20 -20
- package/dist/index.mjs +414 -397
- package/package.json +5 -5
package/dist/index.mjs
CHANGED
|
@@ -94,7 +94,7 @@ function dg() {
|
|
|
94
94
|
if (N(K)) {
|
|
95
95
|
if (!I(H))
|
|
96
96
|
throw new TypeError();
|
|
97
|
-
if (
|
|
97
|
+
if (!$(G))
|
|
98
98
|
throw new TypeError();
|
|
99
99
|
return q(H, G);
|
|
100
100
|
} else {
|
|
@@ -134,13 +134,13 @@ function dg() {
|
|
|
134
134
|
function O(H, G, K) {
|
|
135
135
|
if (!M(G))
|
|
136
136
|
throw new TypeError();
|
|
137
|
-
return N(K) || (K = R(K)),
|
|
137
|
+
return N(K) || (K = R(K)), k(H, G, K);
|
|
138
138
|
}
|
|
139
139
|
r("hasOwnMetadata", O);
|
|
140
140
|
function S(H, G, K) {
|
|
141
141
|
if (!M(G))
|
|
142
142
|
throw new TypeError();
|
|
143
|
-
return N(K) || (K = R(K)),
|
|
143
|
+
return N(K) || (K = R(K)), F(H, G, K);
|
|
144
144
|
}
|
|
145
145
|
r("getMetadata", S);
|
|
146
146
|
function w(H, G, K) {
|
|
@@ -158,7 +158,7 @@ function dg() {
|
|
|
158
158
|
function P(H, G) {
|
|
159
159
|
if (!M(H))
|
|
160
160
|
throw new TypeError();
|
|
161
|
-
return N(G) || (G = R(G)),
|
|
161
|
+
return N(G) || (G = R(G)), Q(H, G);
|
|
162
162
|
}
|
|
163
163
|
r("getOwnMetadataKeys", P);
|
|
164
164
|
function T(H, G, K) {
|
|
@@ -180,7 +180,7 @@ function dg() {
|
|
|
180
180
|
for (var K = H.length - 1; K >= 0; --K) {
|
|
181
181
|
var re = H[K], fe = re(G);
|
|
182
182
|
if (!N(fe) && !L(fe)) {
|
|
183
|
-
if (
|
|
183
|
+
if (!$(fe))
|
|
184
184
|
throw new TypeError();
|
|
185
185
|
G = fe;
|
|
186
186
|
}
|
|
@@ -199,13 +199,13 @@ function dg() {
|
|
|
199
199
|
return re;
|
|
200
200
|
}
|
|
201
201
|
function V(H, G, K) {
|
|
202
|
-
var re =
|
|
202
|
+
var re = k(H, G, K);
|
|
203
203
|
if (re)
|
|
204
204
|
return !0;
|
|
205
205
|
var fe = Ee(G);
|
|
206
206
|
return L(fe) ? !1 : V(H, fe, K);
|
|
207
207
|
}
|
|
208
|
-
function
|
|
208
|
+
function k(H, G, K) {
|
|
209
209
|
var re = ye(
|
|
210
210
|
G,
|
|
211
211
|
K,
|
|
@@ -214,13 +214,13 @@ function dg() {
|
|
|
214
214
|
);
|
|
215
215
|
return N(re) ? !1 : Y(re.OrdinaryHasOwnMetadata(H, G, K));
|
|
216
216
|
}
|
|
217
|
-
function
|
|
218
|
-
var re =
|
|
217
|
+
function F(H, G, K) {
|
|
218
|
+
var re = k(H, G, K);
|
|
219
219
|
if (re)
|
|
220
220
|
return Z(H, G, K);
|
|
221
221
|
var fe = Ee(G);
|
|
222
222
|
if (!L(fe))
|
|
223
|
-
return
|
|
223
|
+
return F(H, fe, K);
|
|
224
224
|
}
|
|
225
225
|
function Z(H, G, K) {
|
|
226
226
|
var re = ye(
|
|
@@ -242,7 +242,7 @@ function dg() {
|
|
|
242
242
|
fe.OrdinaryDefineOwnMetadata(H, G, K, re);
|
|
243
243
|
}
|
|
244
244
|
function U(H, G) {
|
|
245
|
-
var K =
|
|
245
|
+
var K = Q(H, G), re = Ee(H);
|
|
246
246
|
if (re === null)
|
|
247
247
|
return K;
|
|
248
248
|
var fe = U(re, G);
|
|
@@ -260,7 +260,7 @@ function dg() {
|
|
|
260
260
|
}
|
|
261
261
|
return Ue;
|
|
262
262
|
}
|
|
263
|
-
function
|
|
263
|
+
function Q(H, G) {
|
|
264
264
|
var K = ye(
|
|
265
265
|
H,
|
|
266
266
|
G,
|
|
@@ -359,7 +359,7 @@ function dg() {
|
|
|
359
359
|
function W(H) {
|
|
360
360
|
return typeof H == "function";
|
|
361
361
|
}
|
|
362
|
-
function
|
|
362
|
+
function $(H) {
|
|
363
363
|
return typeof H == "function";
|
|
364
364
|
}
|
|
365
365
|
function oe(H) {
|
|
@@ -889,8 +889,8 @@ function Ok() {
|
|
|
889
889
|
const D = q[1];
|
|
890
890
|
let V = q[2] || "";
|
|
891
891
|
V = V.trim();
|
|
892
|
-
const
|
|
893
|
-
V = V.replace(/^(['"`])([\s\S]*)\1$/mg, "$2"),
|
|
892
|
+
const k = V[0];
|
|
893
|
+
V = V.replace(/^(['"`])([\s\S]*)\1$/mg, "$2"), k === '"' && (V = V.replace(/\\n/g, `
|
|
894
894
|
`), V = V.replace(/\\r/g, "\r")), P[D] = V;
|
|
895
895
|
}
|
|
896
896
|
return P;
|
|
@@ -901,19 +901,19 @@ function Ok() {
|
|
|
901
901
|
A.path = P;
|
|
902
902
|
const T = w.configDotenv(A);
|
|
903
903
|
if (!T.parsed) {
|
|
904
|
-
const
|
|
905
|
-
throw
|
|
904
|
+
const k = new Error(`MISSING_DATA: Cannot parse ${P} for an unknown reason`);
|
|
905
|
+
throw k.code = "MISSING_DATA", k;
|
|
906
906
|
}
|
|
907
907
|
const q = v(A).split(","), D = q.length;
|
|
908
908
|
let V;
|
|
909
|
-
for (let
|
|
909
|
+
for (let k = 0; k < D; k++)
|
|
910
910
|
try {
|
|
911
|
-
const
|
|
911
|
+
const F = q[k].trim(), Z = _(T, F);
|
|
912
912
|
V = w.decrypt(Z.ciphertext, Z.key);
|
|
913
913
|
break;
|
|
914
|
-
} catch (
|
|
915
|
-
if (
|
|
916
|
-
throw
|
|
914
|
+
} catch (F) {
|
|
915
|
+
if (k + 1 >= D)
|
|
916
|
+
throw F;
|
|
917
917
|
}
|
|
918
918
|
return w.parse(V);
|
|
919
919
|
}
|
|
@@ -933,29 +933,29 @@ function Ok() {
|
|
|
933
933
|
let T;
|
|
934
934
|
try {
|
|
935
935
|
T = new URL(P);
|
|
936
|
-
} catch (
|
|
937
|
-
if (
|
|
936
|
+
} catch (F) {
|
|
937
|
+
if (F.code === "ERR_INVALID_URL") {
|
|
938
938
|
const Z = new Error("INVALID_DOTENV_KEY: Wrong format. Must be in valid uri format like dotenv://:key_1234@dotenvx.com/vault/.env.vault?environment=development");
|
|
939
939
|
throw Z.code = "INVALID_DOTENV_KEY", Z;
|
|
940
940
|
}
|
|
941
|
-
throw
|
|
941
|
+
throw F;
|
|
942
942
|
}
|
|
943
943
|
const q = T.password;
|
|
944
944
|
if (!q) {
|
|
945
|
-
const
|
|
946
|
-
throw
|
|
945
|
+
const F = new Error("INVALID_DOTENV_KEY: Missing key part");
|
|
946
|
+
throw F.code = "INVALID_DOTENV_KEY", F;
|
|
947
947
|
}
|
|
948
948
|
const D = T.searchParams.get("environment");
|
|
949
949
|
if (!D) {
|
|
950
|
-
const
|
|
951
|
-
throw
|
|
950
|
+
const F = new Error("INVALID_DOTENV_KEY: Missing environment part");
|
|
951
|
+
throw F.code = "INVALID_DOTENV_KEY", F;
|
|
952
952
|
}
|
|
953
|
-
const V = `DOTENV_VAULT_${D.toUpperCase()}`,
|
|
954
|
-
if (!
|
|
955
|
-
const
|
|
956
|
-
throw
|
|
953
|
+
const V = `DOTENV_VAULT_${D.toUpperCase()}`, k = A.parsed[V];
|
|
954
|
+
if (!k) {
|
|
955
|
+
const F = new Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${V} in your .env.vault file.`);
|
|
956
|
+
throw F.code = "NOT_FOUND_DOTENV_ENVIRONMENT", F;
|
|
957
957
|
}
|
|
958
|
-
return { ciphertext:
|
|
958
|
+
return { ciphertext: k, key: q };
|
|
959
959
|
}
|
|
960
960
|
function g(A) {
|
|
961
961
|
let P = null;
|
|
@@ -985,37 +985,37 @@ function Ok() {
|
|
|
985
985
|
A && A.processEnv != null && (q = A.processEnv);
|
|
986
986
|
let D = a(q.DOTENV_CONFIG_DEBUG || A && A.debug), V = a(q.DOTENV_CONFIG_QUIET || A && A.quiet);
|
|
987
987
|
A && A.encoding ? T = A.encoding : D && h("No encoding is specified. UTF-8 is used by default");
|
|
988
|
-
let
|
|
988
|
+
let k = [P];
|
|
989
989
|
if (A && A.path)
|
|
990
990
|
if (!Array.isArray(A.path))
|
|
991
|
-
|
|
991
|
+
k = [y(A.path)];
|
|
992
992
|
else {
|
|
993
|
-
|
|
993
|
+
k = [];
|
|
994
994
|
for (const U of A.path)
|
|
995
|
-
|
|
995
|
+
k.push(y(U));
|
|
996
996
|
}
|
|
997
|
-
let
|
|
997
|
+
let F;
|
|
998
998
|
const Z = {};
|
|
999
|
-
for (const U of
|
|
999
|
+
for (const U of k)
|
|
1000
1000
|
try {
|
|
1001
|
-
const
|
|
1002
|
-
w.populate(Z,
|
|
1003
|
-
} catch (
|
|
1004
|
-
D && h(`Failed to load ${U} ${
|
|
1001
|
+
const Q = w.parse(e.readFileSync(U, { encoding: T }));
|
|
1002
|
+
w.populate(Z, Q, A);
|
|
1003
|
+
} catch (Q) {
|
|
1004
|
+
D && h(`Failed to load ${U} ${Q.message}`), F = Q;
|
|
1005
1005
|
}
|
|
1006
1006
|
const J = w.populate(q, Z, A);
|
|
1007
1007
|
if (D = a(q.DOTENV_CONFIG_DEBUG || D), V = a(q.DOTENV_CONFIG_QUIET || V), D || !V) {
|
|
1008
|
-
const U = Object.keys(J).length,
|
|
1009
|
-
for (const C of
|
|
1008
|
+
const U = Object.keys(J).length, Q = [];
|
|
1009
|
+
for (const C of k)
|
|
1010
1010
|
try {
|
|
1011
1011
|
const N = t.relative(process.cwd(), C);
|
|
1012
|
-
|
|
1012
|
+
Q.push(N);
|
|
1013
1013
|
} catch (N) {
|
|
1014
|
-
D && h(`Failed to load ${C} ${N.message}`),
|
|
1014
|
+
D && h(`Failed to load ${C} ${N.message}`), F = N;
|
|
1015
1015
|
}
|
|
1016
|
-
m(`injecting env (${U}) from ${
|
|
1016
|
+
m(`injecting env (${U}) from ${Q.join(",")} ${u(`-- tip: ${s()}`)}`);
|
|
1017
1017
|
}
|
|
1018
|
-
return
|
|
1018
|
+
return F ? { parsed: Z, error: F } : { parsed: Z };
|
|
1019
1019
|
}
|
|
1020
1020
|
function x(A) {
|
|
1021
1021
|
if (v(A).length === 0)
|
|
@@ -1029,28 +1029,28 @@ function Ok() {
|
|
|
1029
1029
|
const D = q.subarray(0, 12), V = q.subarray(-16);
|
|
1030
1030
|
q = q.subarray(12, -16);
|
|
1031
1031
|
try {
|
|
1032
|
-
const
|
|
1033
|
-
return
|
|
1034
|
-
} catch (
|
|
1035
|
-
const
|
|
1036
|
-
if (
|
|
1032
|
+
const k = n.createDecipheriv("aes-256-gcm", T, D);
|
|
1033
|
+
return k.setAuthTag(V), `${k.update(q)}${k.final()}`;
|
|
1034
|
+
} catch (k) {
|
|
1035
|
+
const F = k instanceof RangeError, Z = k.message === "Invalid key length", J = k.message === "Unsupported state or unable to authenticate data";
|
|
1036
|
+
if (F || Z) {
|
|
1037
1037
|
const U = new Error("INVALID_DOTENV_KEY: It must be 64 characters long (or more)");
|
|
1038
1038
|
throw U.code = "INVALID_DOTENV_KEY", U;
|
|
1039
1039
|
} else if (J) {
|
|
1040
1040
|
const U = new Error("DECRYPTION_FAILED: Please check your DOTENV_KEY");
|
|
1041
1041
|
throw U.code = "DECRYPTION_FAILED", U;
|
|
1042
1042
|
} else
|
|
1043
|
-
throw
|
|
1043
|
+
throw k;
|
|
1044
1044
|
}
|
|
1045
1045
|
}
|
|
1046
1046
|
function S(A, P, T = {}) {
|
|
1047
1047
|
const q = !!(T && T.debug), D = !!(T && T.override), V = {};
|
|
1048
1048
|
if (typeof P != "object") {
|
|
1049
|
-
const
|
|
1050
|
-
throw
|
|
1049
|
+
const k = new Error("OBJECT_REQUIRED: Please check the processEnv argument being passed to populate");
|
|
1050
|
+
throw k.code = "OBJECT_REQUIRED", k;
|
|
1051
1051
|
}
|
|
1052
|
-
for (const
|
|
1053
|
-
Object.prototype.hasOwnProperty.call(A,
|
|
1052
|
+
for (const k of Object.keys(P))
|
|
1053
|
+
Object.prototype.hasOwnProperty.call(A, k) ? (D === !0 && (A[k] = P[k], V[k] = P[k]), q && h(D === !0 ? `"${k}" is already defined and WAS overwritten` : `"${k}" is already defined and was NOT overwritten`)) : (A[k] = P[k], V[k] = P[k]);
|
|
1054
1054
|
return V;
|
|
1055
1055
|
}
|
|
1056
1056
|
const w = {
|
|
@@ -1208,16 +1208,16 @@ Ak();
|
|
|
1208
1208
|
var bf = {}, yr = {}, Si = {}, Ef = {}, xf = { exports: {} }, Dy;
|
|
1209
1209
|
function ae() {
|
|
1210
1210
|
return Dy || (Dy = 1, (function(e) {
|
|
1211
|
-
var t, r, n, o, i, s, a, c, u, p, l, d, f, h, m, v, _, g, y, b, E, x, O, S, w, A, P, T, q, D, V,
|
|
1212
|
-
(function(
|
|
1211
|
+
var t, r, n, o, i, s, a, c, u, p, l, d, f, h, m, v, _, g, y, b, E, x, O, S, w, A, P, T, q, D, V, k;
|
|
1212
|
+
(function(F) {
|
|
1213
1213
|
var Z = typeof ft == "object" ? ft : typeof self == "object" ? self : typeof this == "object" ? this : {};
|
|
1214
|
-
|
|
1215
|
-
function J(U,
|
|
1214
|
+
F(J(Z, J(e.exports)));
|
|
1215
|
+
function J(U, Q) {
|
|
1216
1216
|
return U !== Z && (typeof Object.create == "function" ? Object.defineProperty(U, "__esModule", { value: !0 }) : U.__esModule = !0), function(C, N) {
|
|
1217
|
-
return U[C] =
|
|
1217
|
+
return U[C] = Q ? Q(C, N) : N;
|
|
1218
1218
|
};
|
|
1219
1219
|
}
|
|
1220
|
-
})(function(
|
|
1220
|
+
})(function(F) {
|
|
1221
1221
|
var Z = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(C, N) {
|
|
1222
1222
|
C.__proto__ = N;
|
|
1223
1223
|
} || function(C, N) {
|
|
@@ -1258,12 +1258,12 @@ function ae() {
|
|
|
1258
1258
|
if (be !== void 0 && typeof be != "function") throw new TypeError("Function expected");
|
|
1259
1259
|
return be;
|
|
1260
1260
|
}
|
|
1261
|
-
for (var Y = B.kind, ee = Y === "getter" ? "get" : Y === "setter" ? "set" : "value", R = !N && C ? B.static ? C : C.prototype : null, I = N || (R ? Object.getOwnPropertyDescriptor(R, B.name) : {}), W,
|
|
1261
|
+
for (var Y = B.kind, ee = Y === "getter" ? "get" : Y === "setter" ? "set" : "value", R = !N && C ? B.static ? C : C.prototype : null, I = N || (R ? Object.getOwnPropertyDescriptor(R, B.name) : {}), W, $ = !1, oe = L.length - 1; oe >= 0; oe--) {
|
|
1262
1262
|
var te = {};
|
|
1263
1263
|
for (var le in B) te[le] = le === "access" ? {} : B[le];
|
|
1264
1264
|
for (var le in B.access) te.access[le] = B.access[le];
|
|
1265
1265
|
te.addInitializer = function(be) {
|
|
1266
|
-
if (
|
|
1266
|
+
if ($) throw new TypeError("Cannot add initializers after decoration has completed");
|
|
1267
1267
|
j.push(z(be || null));
|
|
1268
1268
|
};
|
|
1269
1269
|
var _e = (0, L[oe])(Y === "accessor" ? { get: I.get, set: I.set } : I[ee], te);
|
|
@@ -1273,7 +1273,7 @@ function ae() {
|
|
|
1273
1273
|
(W = z(_e.get)) && (I.get = W), (W = z(_e.set)) && (I.set = W), (W = z(_e.init)) && M.unshift(W);
|
|
1274
1274
|
} else (W = z(_e)) && (Y === "field" ? M.unshift(W) : I[ee] = W);
|
|
1275
1275
|
}
|
|
1276
|
-
R && Object.defineProperty(R, B.name, I),
|
|
1276
|
+
R && Object.defineProperty(R, B.name, I), $ = !0;
|
|
1277
1277
|
}, a = function(C, N, L) {
|
|
1278
1278
|
for (var B = arguments.length > 2, M = 0; M < N.length; M++)
|
|
1279
1279
|
L = B ? N[M].call(C, L) : N[M].call(C);
|
|
@@ -1442,11 +1442,11 @@ function ae() {
|
|
|
1442
1442
|
try {
|
|
1443
1443
|
R(B[oe](te));
|
|
1444
1444
|
} catch (le) {
|
|
1445
|
-
|
|
1445
|
+
$(j[0][3], le);
|
|
1446
1446
|
}
|
|
1447
1447
|
}
|
|
1448
1448
|
function R(oe) {
|
|
1449
|
-
oe.value instanceof y ? Promise.resolve(oe.value.v).then(I, W) :
|
|
1449
|
+
oe.value instanceof y ? Promise.resolve(oe.value.v).then(I, W) : $(j[0][2], oe);
|
|
1450
1450
|
}
|
|
1451
1451
|
function I(oe) {
|
|
1452
1452
|
ee("next", oe);
|
|
@@ -1454,7 +1454,7 @@ function ae() {
|
|
|
1454
1454
|
function W(oe) {
|
|
1455
1455
|
ee("throw", oe);
|
|
1456
1456
|
}
|
|
1457
|
-
function
|
|
1457
|
+
function $(oe, te) {
|
|
1458
1458
|
oe(te), j.shift(), j.length && ee(j[0][0], j[0][1]);
|
|
1459
1459
|
}
|
|
1460
1460
|
}, E = function(C) {
|
|
@@ -1543,13 +1543,13 @@ function ae() {
|
|
|
1543
1543
|
} else L && C.stack.push({ async: !0 });
|
|
1544
1544
|
return N;
|
|
1545
1545
|
};
|
|
1546
|
-
var
|
|
1546
|
+
var Q = typeof SuppressedError == "function" ? SuppressedError : function(C, N, L) {
|
|
1547
1547
|
var B = new Error(L);
|
|
1548
1548
|
return B.name = "SuppressedError", B.error = C, B.suppressed = N, B;
|
|
1549
1549
|
};
|
|
1550
1550
|
V = function(C) {
|
|
1551
1551
|
function N(j) {
|
|
1552
|
-
C.error = C.hasError ? new
|
|
1552
|
+
C.error = C.hasError ? new Q(j, C.error, "An error was suppressed during disposal.") : j, C.hasError = !0;
|
|
1553
1553
|
}
|
|
1554
1554
|
var L, B = 0;
|
|
1555
1555
|
function M() {
|
|
@@ -1569,11 +1569,11 @@ function ae() {
|
|
|
1569
1569
|
if (C.hasError) throw C.error;
|
|
1570
1570
|
}
|
|
1571
1571
|
return M();
|
|
1572
|
-
},
|
|
1572
|
+
}, k = function(C, N) {
|
|
1573
1573
|
return typeof C == "string" && /^\.\.?\//.test(C) ? C.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function(L, B, M, j, z) {
|
|
1574
1574
|
return B ? N ? ".jsx" : ".js" : M && (!j || !z) ? L : M + j + "." + z.toLowerCase() + "js";
|
|
1575
1575
|
}) : C;
|
|
1576
|
-
},
|
|
1576
|
+
}, F("__extends", t), F("__assign", r), F("__rest", n), F("__decorate", o), F("__param", i), F("__esDecorate", s), F("__runInitializers", a), F("__propKey", c), F("__setFunctionName", u), F("__metadata", p), F("__awaiter", l), F("__generator", d), F("__exportStar", f), F("__createBinding", q), F("__values", h), F("__read", m), F("__spread", v), F("__spreadArrays", _), F("__spreadArray", g), F("__await", y), F("__asyncGenerator", b), F("__asyncDelegator", E), F("__asyncValues", x), F("__makeTemplateObject", O), F("__importStar", S), F("__importDefault", w), F("__classPrivateFieldGet", A), F("__classPrivateFieldSet", P), F("__classPrivateFieldIn", T), F("__addDisposableResource", D), F("__disposeResources", V), F("__rewriteRelativeImportExtension", k);
|
|
1577
1577
|
});
|
|
1578
1578
|
})(xf)), xf.exports;
|
|
1579
1579
|
}
|
|
@@ -5890,24 +5890,24 @@ function we() {
|
|
|
5890
5890
|
});
|
|
5891
5891
|
}
|
|
5892
5892
|
return new (w || (w = Promise))(function(T, q) {
|
|
5893
|
-
function D(
|
|
5893
|
+
function D(F) {
|
|
5894
5894
|
try {
|
|
5895
|
-
|
|
5895
|
+
k(A.next(F));
|
|
5896
5896
|
} catch (Z) {
|
|
5897
5897
|
q(Z);
|
|
5898
5898
|
}
|
|
5899
5899
|
}
|
|
5900
|
-
function V(
|
|
5900
|
+
function V(F) {
|
|
5901
5901
|
try {
|
|
5902
|
-
|
|
5902
|
+
k(A.throw(F));
|
|
5903
5903
|
} catch (Z) {
|
|
5904
5904
|
q(Z);
|
|
5905
5905
|
}
|
|
5906
5906
|
}
|
|
5907
|
-
function F
|
|
5908
|
-
|
|
5907
|
+
function k(F) {
|
|
5908
|
+
F.done ? T(F.value) : P(F.value).then(D, V);
|
|
5909
5909
|
}
|
|
5910
|
-
|
|
5910
|
+
k((A = A.apply(O, S || [])).next());
|
|
5911
5911
|
});
|
|
5912
5912
|
}, t = De && De.__generator || function(O, S) {
|
|
5913
5913
|
var w = { label: 0, sent: function() {
|
|
@@ -5917,56 +5917,56 @@ function we() {
|
|
|
5917
5917
|
return q = { next: D(0), throw: D(1), return: D(2) }, typeof Symbol == "function" && (q[Symbol.iterator] = function() {
|
|
5918
5918
|
return this;
|
|
5919
5919
|
}), q;
|
|
5920
|
-
function D(
|
|
5921
|
-
return function(
|
|
5922
|
-
return V([
|
|
5920
|
+
function D(k) {
|
|
5921
|
+
return function(F) {
|
|
5922
|
+
return V([k, F]);
|
|
5923
5923
|
};
|
|
5924
5924
|
}
|
|
5925
|
-
function V(
|
|
5925
|
+
function V(k) {
|
|
5926
5926
|
if (A) throw new TypeError("Generator is already executing.");
|
|
5927
5927
|
for (; w; ) try {
|
|
5928
|
-
if (A = 1, P && (T =
|
|
5929
|
-
switch (P = 0, T && (
|
|
5928
|
+
if (A = 1, P && (T = k[0] & 2 ? P.return : k[0] ? P.throw || ((T = P.return) && T.call(P), 0) : P.next) && !(T = T.call(P, k[1])).done) return T;
|
|
5929
|
+
switch (P = 0, T && (k = [k[0] & 2, T.value]), k[0]) {
|
|
5930
5930
|
case 0:
|
|
5931
5931
|
case 1:
|
|
5932
|
-
T =
|
|
5932
|
+
T = k;
|
|
5933
5933
|
break;
|
|
5934
5934
|
case 4:
|
|
5935
|
-
return w.label++, { value:
|
|
5935
|
+
return w.label++, { value: k[1], done: !1 };
|
|
5936
5936
|
case 5:
|
|
5937
|
-
w.label++, P =
|
|
5937
|
+
w.label++, P = k[1], k = [0];
|
|
5938
5938
|
continue;
|
|
5939
5939
|
case 7:
|
|
5940
|
-
|
|
5940
|
+
k = w.ops.pop(), w.trys.pop();
|
|
5941
5941
|
continue;
|
|
5942
5942
|
default:
|
|
5943
|
-
if (T = w.trys, !(T = T.length > 0 && T[T.length - 1]) && (
|
|
5943
|
+
if (T = w.trys, !(T = T.length > 0 && T[T.length - 1]) && (k[0] === 6 || k[0] === 2)) {
|
|
5944
5944
|
w = 0;
|
|
5945
5945
|
continue;
|
|
5946
5946
|
}
|
|
5947
|
-
if (
|
|
5948
|
-
w.label =
|
|
5947
|
+
if (k[0] === 3 && (!T || k[1] > T[0] && k[1] < T[3])) {
|
|
5948
|
+
w.label = k[1];
|
|
5949
5949
|
break;
|
|
5950
5950
|
}
|
|
5951
|
-
if (
|
|
5952
|
-
w.label = T[1], T =
|
|
5951
|
+
if (k[0] === 6 && w.label < T[1]) {
|
|
5952
|
+
w.label = T[1], T = k;
|
|
5953
5953
|
break;
|
|
5954
5954
|
}
|
|
5955
5955
|
if (T && w.label < T[2]) {
|
|
5956
|
-
w.label = T[2], w.ops.push(
|
|
5956
|
+
w.label = T[2], w.ops.push(k);
|
|
5957
5957
|
break;
|
|
5958
5958
|
}
|
|
5959
5959
|
T[2] && w.ops.pop(), w.trys.pop();
|
|
5960
5960
|
continue;
|
|
5961
5961
|
}
|
|
5962
|
-
|
|
5963
|
-
} catch (
|
|
5964
|
-
|
|
5962
|
+
k = S.call(O, w);
|
|
5963
|
+
} catch (F) {
|
|
5964
|
+
k = [6, F], P = 0;
|
|
5965
5965
|
} finally {
|
|
5966
5966
|
A = T = 0;
|
|
5967
5967
|
}
|
|
5968
|
-
if (
|
|
5969
|
-
return { value:
|
|
5968
|
+
if (k[0] & 5) throw k[1];
|
|
5969
|
+
return { value: k[0] ? k[1] : void 0, done: !0 };
|
|
5970
5970
|
}
|
|
5971
5971
|
}, r = De && De.__asyncValues || function(O) {
|
|
5972
5972
|
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
@@ -5982,8 +5982,8 @@ function we() {
|
|
|
5982
5982
|
};
|
|
5983
5983
|
}
|
|
5984
5984
|
function P(T, q, D, V) {
|
|
5985
|
-
Promise.resolve(V).then(function(
|
|
5986
|
-
T({ value:
|
|
5985
|
+
Promise.resolve(V).then(function(k) {
|
|
5986
|
+
T({ value: k, done: D });
|
|
5987
5987
|
}, q);
|
|
5988
5988
|
}
|
|
5989
5989
|
}, n = De && De.__values || function(O) {
|
|
@@ -6663,8 +6663,8 @@ function wC() {
|
|
|
6663
6663
|
var D = q.value, V = D.buffer;
|
|
6664
6664
|
V.push(S), v <= V.length && E(D);
|
|
6665
6665
|
}
|
|
6666
|
-
} catch (
|
|
6667
|
-
w = { error:
|
|
6666
|
+
} catch (k) {
|
|
6667
|
+
w = { error: k };
|
|
6668
6668
|
} finally {
|
|
6669
6669
|
try {
|
|
6670
6670
|
q && !q.done && (A = T.return) && A.call(T);
|
|
@@ -10203,13 +10203,13 @@ function Wg() {
|
|
|
10203
10203
|
Object.defineProperty(e, "every", { enumerable: !0, get: function() {
|
|
10204
10204
|
return V.every;
|
|
10205
10205
|
} });
|
|
10206
|
-
var
|
|
10206
|
+
var k = /* @__PURE__ */ ej();
|
|
10207
10207
|
Object.defineProperty(e, "exhaust", { enumerable: !0, get: function() {
|
|
10208
|
-
return
|
|
10208
|
+
return k.exhaust;
|
|
10209
10209
|
} });
|
|
10210
|
-
var
|
|
10210
|
+
var F = /* @__PURE__ */ qg();
|
|
10211
10211
|
Object.defineProperty(e, "exhaustAll", { enumerable: !0, get: function() {
|
|
10212
|
-
return
|
|
10212
|
+
return F.exhaustAll;
|
|
10213
10213
|
} });
|
|
10214
10214
|
var Z = /* @__PURE__ */ Ng();
|
|
10215
10215
|
Object.defineProperty(e, "exhaustMap", { enumerable: !0, get: function() {
|
|
@@ -10223,9 +10223,9 @@ function Wg() {
|
|
|
10223
10223
|
Object.defineProperty(e, "filter", { enumerable: !0, get: function() {
|
|
10224
10224
|
return U.filter;
|
|
10225
10225
|
} });
|
|
10226
|
-
var
|
|
10226
|
+
var Q = /* @__PURE__ */ rj();
|
|
10227
10227
|
Object.defineProperty(e, "finalize", { enumerable: !0, get: function() {
|
|
10228
|
-
return
|
|
10228
|
+
return Q.finalize;
|
|
10229
10229
|
} });
|
|
10230
10230
|
var C = /* @__PURE__ */ Fg();
|
|
10231
10231
|
Object.defineProperty(e, "find", { enumerable: !0, get: function() {
|
|
@@ -10275,9 +10275,9 @@ function Wg() {
|
|
|
10275
10275
|
Object.defineProperty(e, "merge", { enumerable: !0, get: function() {
|
|
10276
10276
|
return W.merge;
|
|
10277
10277
|
} });
|
|
10278
|
-
var
|
|
10278
|
+
var $ = /* @__PURE__ */ Cl();
|
|
10279
10279
|
Object.defineProperty(e, "mergeAll", { enumerable: !0, get: function() {
|
|
10280
|
-
return
|
|
10280
|
+
return $.mergeAll;
|
|
10281
10281
|
} });
|
|
10282
10282
|
var oe = /* @__PURE__ */ dj();
|
|
10283
10283
|
Object.defineProperty(e, "flatMap", { enumerable: !0, get: function() {
|
|
@@ -10684,11 +10684,11 @@ function lN() {
|
|
|
10684
10684
|
let D;
|
|
10685
10685
|
for (; (D = l.exec(q)) != null; ) {
|
|
10686
10686
|
const V = D[1];
|
|
10687
|
-
let
|
|
10688
|
-
|
|
10689
|
-
const
|
|
10690
|
-
|
|
10691
|
-
`),
|
|
10687
|
+
let k = D[2] || "";
|
|
10688
|
+
k = k.trim();
|
|
10689
|
+
const F = k[0];
|
|
10690
|
+
k = k.replace(/^(['"`])([\s\S]*)\1$/mg, "$2"), F === '"' && (k = k.replace(/\\n/g, `
|
|
10691
|
+
`), k = k.replace(/\\r/g, "\r")), T[V] = k;
|
|
10692
10692
|
}
|
|
10693
10693
|
return T;
|
|
10694
10694
|
}
|
|
@@ -10698,21 +10698,21 @@ function lN() {
|
|
|
10698
10698
|
P.path = T;
|
|
10699
10699
|
const q = A.configDotenv(P);
|
|
10700
10700
|
if (!q.parsed) {
|
|
10701
|
-
const
|
|
10702
|
-
throw
|
|
10701
|
+
const F = new Error(`MISSING_DATA: Cannot parse ${T} for an unknown reason`);
|
|
10702
|
+
throw F.code = "MISSING_DATA", F;
|
|
10703
10703
|
}
|
|
10704
10704
|
const D = _(P).split(","), V = D.length;
|
|
10705
|
-
let
|
|
10706
|
-
for (let
|
|
10705
|
+
let k;
|
|
10706
|
+
for (let F = 0; F < V; F++)
|
|
10707
10707
|
try {
|
|
10708
|
-
const Z = D[
|
|
10709
|
-
|
|
10708
|
+
const Z = D[F].trim(), J = g(q, Z);
|
|
10709
|
+
k = A.decrypt(J.ciphertext, J.key);
|
|
10710
10710
|
break;
|
|
10711
10711
|
} catch (Z) {
|
|
10712
|
-
if (
|
|
10712
|
+
if (F + 1 >= V)
|
|
10713
10713
|
throw Z;
|
|
10714
10714
|
}
|
|
10715
|
-
return A.parse(
|
|
10715
|
+
return A.parse(k);
|
|
10716
10716
|
}
|
|
10717
10717
|
function h(P) {
|
|
10718
10718
|
console.error(`[dotenv@${i}][WARN] ${P}`);
|
|
@@ -10747,12 +10747,12 @@ function lN() {
|
|
|
10747
10747
|
const Z = new Error("INVALID_DOTENV_KEY: Missing environment part");
|
|
10748
10748
|
throw Z.code = "INVALID_DOTENV_KEY", Z;
|
|
10749
10749
|
}
|
|
10750
|
-
const
|
|
10751
|
-
if (!
|
|
10752
|
-
const Z = new Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${
|
|
10750
|
+
const k = `DOTENV_VAULT_${V.toUpperCase()}`, F = P.parsed[k];
|
|
10751
|
+
if (!F) {
|
|
10752
|
+
const Z = new Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${k} in your .env.vault file.`);
|
|
10753
10753
|
throw Z.code = "NOT_FOUND_DOTENV_ENVIRONMENT", Z;
|
|
10754
10754
|
}
|
|
10755
|
-
return { ciphertext:
|
|
10755
|
+
return { ciphertext: F, key: D };
|
|
10756
10756
|
}
|
|
10757
10757
|
function y(P) {
|
|
10758
10758
|
let T = null;
|
|
@@ -10780,37 +10780,37 @@ function lN() {
|
|
|
10780
10780
|
const T = t.resolve(process.cwd(), ".env");
|
|
10781
10781
|
let q = "utf8", D = process.env;
|
|
10782
10782
|
P && P.processEnv != null && (D = P.processEnv);
|
|
10783
|
-
let V = c(D.DOTENV_CONFIG_DEBUG || P && P.debug),
|
|
10783
|
+
let V = c(D.DOTENV_CONFIG_DEBUG || P && P.debug), k = c(D.DOTENV_CONFIG_QUIET || P && P.quiet);
|
|
10784
10784
|
P && P.encoding ? q = P.encoding : V && m("No encoding is specified. UTF-8 is used by default");
|
|
10785
|
-
let
|
|
10785
|
+
let F = [T];
|
|
10786
10786
|
if (P && P.path)
|
|
10787
10787
|
if (!Array.isArray(P.path))
|
|
10788
|
-
|
|
10788
|
+
F = [b(P.path)];
|
|
10789
10789
|
else {
|
|
10790
|
-
|
|
10791
|
-
for (const
|
|
10792
|
-
|
|
10790
|
+
F = [];
|
|
10791
|
+
for (const Q of P.path)
|
|
10792
|
+
F.push(b(Q));
|
|
10793
10793
|
}
|
|
10794
10794
|
let Z;
|
|
10795
10795
|
const J = {};
|
|
10796
|
-
for (const
|
|
10796
|
+
for (const Q of F)
|
|
10797
10797
|
try {
|
|
10798
|
-
const C = A.parse(e.readFileSync(
|
|
10798
|
+
const C = A.parse(e.readFileSync(Q, { encoding: q }));
|
|
10799
10799
|
A.populate(J, C, P);
|
|
10800
10800
|
} catch (C) {
|
|
10801
|
-
V && m(`Failed to load ${
|
|
10801
|
+
V && m(`Failed to load ${Q} ${C.message}`), Z = C;
|
|
10802
10802
|
}
|
|
10803
10803
|
const U = A.populate(D, J, P);
|
|
10804
|
-
if (V = c(D.DOTENV_CONFIG_DEBUG || V),
|
|
10805
|
-
const
|
|
10806
|
-
for (const N of
|
|
10804
|
+
if (V = c(D.DOTENV_CONFIG_DEBUG || V), k = c(D.DOTENV_CONFIG_QUIET || k), V || !k) {
|
|
10805
|
+
const Q = Object.keys(U).length, C = [];
|
|
10806
|
+
for (const N of F)
|
|
10807
10807
|
try {
|
|
10808
10808
|
const L = t.relative(process.cwd(), N);
|
|
10809
10809
|
C.push(L);
|
|
10810
10810
|
} catch (L) {
|
|
10811
10811
|
V && m(`Failed to load ${N} ${L.message}`), Z = L;
|
|
10812
10812
|
}
|
|
10813
|
-
v(`injecting env (${
|
|
10813
|
+
v(`injecting env (${Q}) from ${C.join(",")} ${p(`-- tip: ${a()}`)}`);
|
|
10814
10814
|
}
|
|
10815
10815
|
return Z ? { parsed: J, error: Z } : { parsed: J };
|
|
10816
10816
|
}
|
|
@@ -10823,32 +10823,32 @@ function lN() {
|
|
|
10823
10823
|
function S(P, T) {
|
|
10824
10824
|
const q = Buffer.from(T.slice(-64), "hex");
|
|
10825
10825
|
let D = Buffer.from(P, "base64");
|
|
10826
|
-
const V = D.subarray(0, 12),
|
|
10826
|
+
const V = D.subarray(0, 12), k = D.subarray(-16);
|
|
10827
10827
|
D = D.subarray(12, -16);
|
|
10828
10828
|
try {
|
|
10829
|
-
const
|
|
10830
|
-
return
|
|
10831
|
-
} catch (
|
|
10832
|
-
const Z =
|
|
10829
|
+
const F = n.createDecipheriv("aes-256-gcm", q, V);
|
|
10830
|
+
return F.setAuthTag(k), `${F.update(D)}${F.final()}`;
|
|
10831
|
+
} catch (F) {
|
|
10832
|
+
const Z = F instanceof RangeError, J = F.message === "Invalid key length", U = F.message === "Unsupported state or unable to authenticate data";
|
|
10833
10833
|
if (Z || J) {
|
|
10834
|
-
const
|
|
10835
|
-
throw
|
|
10834
|
+
const Q = new Error("INVALID_DOTENV_KEY: It must be 64 characters long (or more)");
|
|
10835
|
+
throw Q.code = "INVALID_DOTENV_KEY", Q;
|
|
10836
10836
|
} else if (U) {
|
|
10837
|
-
const
|
|
10838
|
-
throw
|
|
10837
|
+
const Q = new Error("DECRYPTION_FAILED: Please check your DOTENV_KEY");
|
|
10838
|
+
throw Q.code = "DECRYPTION_FAILED", Q;
|
|
10839
10839
|
} else
|
|
10840
|
-
throw
|
|
10840
|
+
throw F;
|
|
10841
10841
|
}
|
|
10842
10842
|
}
|
|
10843
10843
|
function w(P, T, q = {}) {
|
|
10844
|
-
const D = !!(q && q.debug), V = !!(q && q.override),
|
|
10844
|
+
const D = !!(q && q.debug), V = !!(q && q.override), k = {};
|
|
10845
10845
|
if (typeof T != "object") {
|
|
10846
|
-
const
|
|
10847
|
-
throw
|
|
10846
|
+
const F = new Error("OBJECT_REQUIRED: Please check the processEnv argument being passed to populate");
|
|
10847
|
+
throw F.code = "OBJECT_REQUIRED", F;
|
|
10848
10848
|
}
|
|
10849
|
-
for (const
|
|
10850
|
-
Object.prototype.hasOwnProperty.call(P,
|
|
10851
|
-
return
|
|
10849
|
+
for (const F of Object.keys(T))
|
|
10850
|
+
Object.prototype.hasOwnProperty.call(P, F) ? (V === !0 && (P[F] = T[F], k[F] = T[F]), D && m(V === !0 ? `"${F}" is already defined and WAS overwritten` : `"${F}" is already defined and was NOT overwritten`)) : (P[F] = T[F], k[F] = T[F]);
|
|
10851
|
+
return k;
|
|
10852
10852
|
}
|
|
10853
10853
|
const A = {
|
|
10854
10854
|
configDotenv: x,
|
|
@@ -12776,13 +12776,13 @@ function On() {
|
|
|
12776
12776
|
Object.defineProperty(e, "TimeoutError", { enumerable: !0, get: function() {
|
|
12777
12777
|
return V.TimeoutError;
|
|
12778
12778
|
} });
|
|
12779
|
-
var
|
|
12779
|
+
var k = /* @__PURE__ */ pC();
|
|
12780
12780
|
Object.defineProperty(e, "UnsubscriptionError", { enumerable: !0, get: function() {
|
|
12781
|
-
return
|
|
12781
|
+
return k.UnsubscriptionError;
|
|
12782
12782
|
} });
|
|
12783
|
-
var
|
|
12783
|
+
var F = /* @__PURE__ */ qz();
|
|
12784
12784
|
Object.defineProperty(e, "bindCallback", { enumerable: !0, get: function() {
|
|
12785
|
-
return
|
|
12785
|
+
return F.bindCallback;
|
|
12786
12786
|
} });
|
|
12787
12787
|
var Z = /* @__PURE__ */ Fz();
|
|
12788
12788
|
Object.defineProperty(e, "bindNodeCallback", { enumerable: !0, get: function() {
|
|
@@ -12796,9 +12796,9 @@ function On() {
|
|
|
12796
12796
|
Object.defineProperty(e, "concat", { enumerable: !0, get: function() {
|
|
12797
12797
|
return U.concat;
|
|
12798
12798
|
} });
|
|
12799
|
-
var
|
|
12799
|
+
var Q = /* @__PURE__ */ kz();
|
|
12800
12800
|
Object.defineProperty(e, "connectable", { enumerable: !0, get: function() {
|
|
12801
|
-
return
|
|
12801
|
+
return Q.connectable;
|
|
12802
12802
|
} });
|
|
12803
12803
|
var C = /* @__PURE__ */ jp();
|
|
12804
12804
|
Object.defineProperty(e, "defer", { enumerable: !0, get: function() {
|
|
@@ -12848,9 +12848,9 @@ function On() {
|
|
|
12848
12848
|
Object.defineProperty(e, "of", { enumerable: !0, get: function() {
|
|
12849
12849
|
return W.of;
|
|
12850
12850
|
} });
|
|
12851
|
-
var
|
|
12851
|
+
var $ = /* @__PURE__ */ mj();
|
|
12852
12852
|
Object.defineProperty(e, "onErrorResumeNext", { enumerable: !0, get: function() {
|
|
12853
|
-
return
|
|
12853
|
+
return $.onErrorResumeNext;
|
|
12854
12854
|
} });
|
|
12855
12855
|
var oe = /* @__PURE__ */ Vz();
|
|
12856
12856
|
Object.defineProperty(e, "pairs", { enumerable: !0, get: function() {
|
|
@@ -19180,8 +19180,10 @@ For more common dependency resolution issues, see: https://docs.nestjs.com/faq/c
|
|
|
19180
19180
|
let A = `Nest can't resolve dependencies of the ${m.toString()}`;
|
|
19181
19181
|
if ((0, e.isNil)(g))
|
|
19182
19182
|
return A += `. Please make sure that the "${E.toString()}" property is available in the current context.${w}`, A;
|
|
19183
|
-
const P = (b || []).map((
|
|
19184
|
-
|
|
19183
|
+
const P = (b || []).map((D) => r(D, "+", !1));
|
|
19184
|
+
P[g] = "?";
|
|
19185
|
+
const T = !S && y !== void 0 ? ` ${O}` : "", q = S ? "current" : x;
|
|
19186
|
+
return A += " (", A += P.join(", "), A += `). Please make sure that the argument${T} at index [${g}]`, A += ` is available in the ${q} module.`, A += w, A;
|
|
19185
19187
|
};
|
|
19186
19188
|
Ae.UNKNOWN_DEPENDENCIES_MESSAGE = i;
|
|
19187
19189
|
const s = (m, v) => `The middleware doesn't provide the 'use' method (${v})`;
|
|
@@ -19736,13 +19738,13 @@ function gy() {
|
|
|
19736
19738
|
guards: !0,
|
|
19737
19739
|
filters: !0
|
|
19738
19740
|
}, O = "http") {
|
|
19739
|
-
const S = this.getContextModuleKey(m.constructor), { argsLength: w, paramtypes: A, getParamsMetadata: P } = this.getMetadata(m, _, g, y, O), T = this.pipesContextCreator.create(m, v, S, b, E), q = this.guardsContextCreator.create(m, v, S, b, E), D = this.filtersContextCreator.create(m, v, S, b, E), V = x.interceptors ? this.interceptorsContextCreator.create(m, v, S, b, E) : [],
|
|
19741
|
+
const S = this.getContextModuleKey(m.constructor), { argsLength: w, paramtypes: A, getParamsMetadata: P } = this.getMetadata(m, _, g, y, O), T = this.pipesContextCreator.create(m, v, S, b, E), q = this.guardsContextCreator.create(m, v, S, b, E), D = this.filtersContextCreator.create(m, v, S, b, E), V = x.interceptors ? this.interceptorsContextCreator.create(m, v, S, b, E) : [], k = P(S, b, E), F = k ? this.contextUtils.mergeParamsMetatypes(k, A) : [], Z = x.guards ? this.createGuardsFn(q, m, v, O) : null, J = this.createPipesFn(T, F), U = (C, ...N) => async () => J ? (await J(C, ...N), v.apply(m, C)) : v.apply(m, N), Q = async (...C) => {
|
|
19740
19742
|
const N = this.contextUtils.createNullArray(w);
|
|
19741
19743
|
Z && await Z(C);
|
|
19742
19744
|
const L = await this.interceptorsConsumer.intercept(V, C, m, v, U(N, ...C), O);
|
|
19743
19745
|
return this.transformToResult(L);
|
|
19744
19746
|
};
|
|
19745
|
-
return x.filters ? this.externalErrorProxy.createProxy(
|
|
19747
|
+
return x.filters ? this.externalErrorProxy.createProxy(Q, D, O) : Q;
|
|
19746
19748
|
}
|
|
19747
19749
|
getMetadata(m, v, _, g, y) {
|
|
19748
19750
|
const b = this.handlerMetadataStorage.get(m, v);
|
|
@@ -20402,8 +20404,8 @@ function mi() {
|
|
|
20402
20404
|
return S.complete();
|
|
20403
20405
|
try {
|
|
20404
20406
|
const T = this.getNowTimestamp(), q = async (D) => {
|
|
20405
|
-
const V = await this.resolveProperties(_, y, A, b, _, E),
|
|
20406
|
-
this.applyProperties(
|
|
20407
|
+
const V = await this.resolveProperties(_, y, A, b, _, E), k = await this.instantiateClass(D, _, P, b, E);
|
|
20408
|
+
this.applyProperties(k, V), _.initTime = this.getNowTimestamp() - T, S.complete();
|
|
20407
20409
|
};
|
|
20408
20410
|
await this.resolveConstructorParams(_, y, A, q, b, _, E);
|
|
20409
20411
|
} catch (T) {
|
|
@@ -20433,22 +20435,22 @@ function mi() {
|
|
|
20433
20435
|
async resolveConstructorParams(_, g, y, b, E = l.STATIC_CONTEXT, x, O) {
|
|
20434
20436
|
const S = _.getCtorMetadata();
|
|
20435
20437
|
if (S && E !== l.STATIC_CONTEXT) {
|
|
20436
|
-
const
|
|
20437
|
-
return b(
|
|
20438
|
+
const k = await this.loadCtorMetadata(S, E, x, O);
|
|
20439
|
+
return b(k);
|
|
20438
20440
|
}
|
|
20439
20441
|
const w = !(0, n.isNil)(y), [A, P] = w ? this.getFactoryProviderDependencies(_) : this.getClassDependencies(_), T = new p.Barrier(A.length);
|
|
20440
20442
|
let q = !0;
|
|
20441
|
-
const D = async (
|
|
20443
|
+
const D = async (k, F) => {
|
|
20442
20444
|
try {
|
|
20443
|
-
if (this.isInquirer(
|
|
20445
|
+
if (this.isInquirer(k, O))
|
|
20444
20446
|
return T.signal(), O && O.instance;
|
|
20445
20447
|
x?.isTransient && O && x.attachRootInquirer(O);
|
|
20446
|
-
const Z = await this.resolveSingleParam(_,
|
|
20448
|
+
const Z = await this.resolveSingleParam(_, k, { index: F, dependencies: A }, g, E, x, F);
|
|
20447
20449
|
await T.signalAndWait();
|
|
20448
|
-
const J = this.getEffectiveInquirer(Z, x, O, E), U = await this.resolveComponentHost(g, Z, E, J),
|
|
20449
|
-
return
|
|
20450
|
+
const J = this.getEffectiveInquirer(Z, x, O, E), U = await this.resolveComponentHost(g, Z, E, J), Q = U.getInstanceByContextId(this.getContextId(E, U), this.getInquirerId(J));
|
|
20451
|
+
return !Q.isResolved && !U.forwardRef && (q = !1), Q?.instance;
|
|
20450
20452
|
} catch (Z) {
|
|
20451
|
-
if (T.signal(), !P.includes(
|
|
20453
|
+
if (T.signal(), !P.includes(F))
|
|
20452
20454
|
throw Z;
|
|
20453
20455
|
return;
|
|
20454
20456
|
}
|
|
@@ -20545,8 +20547,8 @@ function mi() {
|
|
|
20545
20547
|
continue;
|
|
20546
20548
|
}
|
|
20547
20549
|
this.printFoundInModuleLog(g, q), w = D.get(g), this.addDependencyMetadata(O, y, w);
|
|
20548
|
-
const
|
|
20549
|
-
if (!w.getInstanceByContextId(this.getContextId(E, w),
|
|
20550
|
+
const k = this.getInquirerId(x);
|
|
20551
|
+
if (!w.getInstanceByContextId(this.getContextId(E, w), k).isResolved && !w.forwardRef)
|
|
20550
20552
|
break;
|
|
20551
20553
|
}
|
|
20552
20554
|
return w;
|
|
@@ -22028,74 +22030,74 @@ function Py() {
|
|
|
22028
22030
|
const { encodePath: w = t } = S, A = [...O], P = [];
|
|
22029
22031
|
let T = 0, q = 0;
|
|
22030
22032
|
function D() {
|
|
22031
|
-
let
|
|
22033
|
+
let k = "";
|
|
22032
22034
|
if (r.test(A[T]))
|
|
22033
22035
|
do
|
|
22034
|
-
|
|
22036
|
+
k += A[T++];
|
|
22035
22037
|
while (n.test(A[T]));
|
|
22036
22038
|
else if (A[T] === '"') {
|
|
22037
|
-
let
|
|
22039
|
+
let F = T;
|
|
22038
22040
|
for (; T++ < A.length; ) {
|
|
22039
22041
|
if (A[T] === '"') {
|
|
22040
|
-
T++,
|
|
22042
|
+
T++, F = 0;
|
|
22041
22043
|
break;
|
|
22042
22044
|
}
|
|
22043
|
-
A[T] === "\\" && T++,
|
|
22045
|
+
A[T] === "\\" && T++, k += A[T];
|
|
22044
22046
|
}
|
|
22045
|
-
if (
|
|
22046
|
-
throw new c(`Unterminated quote at index ${
|
|
22047
|
+
if (F)
|
|
22048
|
+
throw new c(`Unterminated quote at index ${F}`, O);
|
|
22047
22049
|
}
|
|
22048
|
-
if (!
|
|
22050
|
+
if (!k)
|
|
22049
22051
|
throw new c(`Missing parameter name at index ${T}`, O);
|
|
22050
|
-
return
|
|
22052
|
+
return k;
|
|
22051
22053
|
}
|
|
22052
22054
|
for (; T < A.length; ) {
|
|
22053
|
-
const
|
|
22054
|
-
|
|
22055
|
+
const k = A[T], F = o[k];
|
|
22056
|
+
F ? P.push({ type: F, index: T++, value: k }) : k === "\\" ? P.push({ type: "escape", index: T++, value: A[T++] }) : k === ":" ? P.push({ type: "param", index: T++, value: D() }) : k === "*" ? P.push({ type: "wildcard", index: T++, value: D() }) : P.push({ type: "char", index: T++, value: k });
|
|
22055
22057
|
}
|
|
22056
22058
|
P.push({ type: "end", index: T, value: "" });
|
|
22057
|
-
function V(
|
|
22058
|
-
const
|
|
22059
|
+
function V(k) {
|
|
22060
|
+
const F = [];
|
|
22059
22061
|
for (; ; ) {
|
|
22060
22062
|
const Z = P[q++];
|
|
22061
|
-
if (Z.type ===
|
|
22063
|
+
if (Z.type === k)
|
|
22062
22064
|
break;
|
|
22063
22065
|
if (Z.type === "char" || Z.type === "escape") {
|
|
22064
22066
|
let J = Z.value, U = P[q];
|
|
22065
22067
|
for (; U.type === "char" || U.type === "escape"; )
|
|
22066
22068
|
J += U.value, U = P[++q];
|
|
22067
|
-
|
|
22069
|
+
F.push({
|
|
22068
22070
|
type: "text",
|
|
22069
22071
|
value: w(J)
|
|
22070
22072
|
});
|
|
22071
22073
|
continue;
|
|
22072
22074
|
}
|
|
22073
22075
|
if (Z.type === "param" || Z.type === "wildcard") {
|
|
22074
|
-
|
|
22076
|
+
F.push({
|
|
22075
22077
|
type: Z.type,
|
|
22076
22078
|
name: Z.value
|
|
22077
22079
|
});
|
|
22078
22080
|
continue;
|
|
22079
22081
|
}
|
|
22080
22082
|
if (Z.type === "{") {
|
|
22081
|
-
|
|
22083
|
+
F.push({
|
|
22082
22084
|
type: "group",
|
|
22083
22085
|
tokens: V("}")
|
|
22084
22086
|
});
|
|
22085
22087
|
continue;
|
|
22086
22088
|
}
|
|
22087
|
-
throw new c(`Unexpected ${Z.type} at index ${Z.index}, expected ${
|
|
22089
|
+
throw new c(`Unexpected ${Z.type} at index ${Z.index}, expected ${k}`, O);
|
|
22088
22090
|
}
|
|
22089
|
-
return
|
|
22091
|
+
return F;
|
|
22090
22092
|
}
|
|
22091
22093
|
return new a(V("end"), O);
|
|
22092
22094
|
}
|
|
22093
22095
|
function p(O, S = {}) {
|
|
22094
22096
|
const { encode: w = encodeURIComponent, delimiter: A = e } = S, P = typeof O == "object" ? O : u(O, S), T = l(P.tokens, A, w);
|
|
22095
22097
|
return function(D = {}) {
|
|
22096
|
-
const [V, ...
|
|
22097
|
-
if (
|
|
22098
|
-
throw new TypeError(`Missing parameters: ${
|
|
22098
|
+
const [V, ...k] = T(D);
|
|
22099
|
+
if (k.length)
|
|
22100
|
+
throw new TypeError(`Missing parameters: ${k.join(", ")}`);
|
|
22099
22101
|
return V;
|
|
22100
22102
|
};
|
|
22101
22103
|
}
|
|
@@ -22146,17 +22148,17 @@ function Py() {
|
|
|
22146
22148
|
function f(O, S = {}) {
|
|
22147
22149
|
const { decode: w = decodeURIComponent, delimiter: A = e } = S, { regexp: P, keys: T } = h(O, S), q = T.map((D) => w === !1 ? t : D.type === "param" ? w : (V) => V.split(A).map(w));
|
|
22148
22150
|
return function(V) {
|
|
22149
|
-
const
|
|
22150
|
-
if (!
|
|
22151
|
+
const k = P.exec(V);
|
|
22152
|
+
if (!k)
|
|
22151
22153
|
return !1;
|
|
22152
|
-
const
|
|
22153
|
-
for (let J = 1; J <
|
|
22154
|
-
if (
|
|
22154
|
+
const F = k[0], Z = /* @__PURE__ */ Object.create(null);
|
|
22155
|
+
for (let J = 1; J < k.length; J++) {
|
|
22156
|
+
if (k[J] === void 0)
|
|
22155
22157
|
continue;
|
|
22156
|
-
const U = T[J - 1],
|
|
22157
|
-
Z[U.name] =
|
|
22158
|
+
const U = T[J - 1], Q = q[J - 1];
|
|
22159
|
+
Z[U.name] = Q(k[J]);
|
|
22158
22160
|
}
|
|
22159
|
-
return { path:
|
|
22161
|
+
return { path: F, params: Z };
|
|
22160
22162
|
};
|
|
22161
22163
|
}
|
|
22162
22164
|
function h(O, S = {}) {
|
|
@@ -22166,8 +22168,8 @@ function Py() {
|
|
|
22166
22168
|
for (const U of v(J.tokens, 0, []))
|
|
22167
22169
|
V.push(_(U, w, q, J.originalPath));
|
|
22168
22170
|
}
|
|
22169
|
-
let
|
|
22170
|
-
return T && (
|
|
22171
|
+
let k = `^(?:${V.join("|")})`;
|
|
22172
|
+
return T && (k += `(?:${s(w)}$)?`), k += A ? "$" : `(?=${s(w)}|$)`, { regexp: new RegExp(k, D), keys: q };
|
|
22171
22173
|
}
|
|
22172
22174
|
function m(O, S) {
|
|
22173
22175
|
if (Array.isArray(O))
|
|
@@ -22966,8 +22968,8 @@ function VZ() {
|
|
|
22966
22968
|
} catch (D) {
|
|
22967
22969
|
let V = this.exceptionFiltersCache.get(O.use);
|
|
22968
22970
|
V || (V = this.routerExceptionFilter.create(O, O.use, void 0), this.exceptionFiltersCache.set(O.use, V));
|
|
22969
|
-
const
|
|
22970
|
-
V.next(D,
|
|
22971
|
+
const k = new s.ExecutionContextHost([P, T, q]);
|
|
22972
|
+
V.next(D, k);
|
|
22971
22973
|
}
|
|
22972
22974
|
});
|
|
22973
22975
|
}
|
|
@@ -23589,19 +23591,19 @@ function t4() {
|
|
|
23589
23591
|
this.paramsFactory = l, this.pipesContextCreator = d, this.pipesConsumer = f, this.guardsContextCreator = h, this.guardsConsumer = m, this.interceptorsContextCreator = v, this.interceptorsConsumer = _, this.applicationRef = g, this.handlerMetadataStorage = new s.HandlerMetadataStorage(), this.contextUtils = new i.ContextUtils(), this.responseController = new c.RouterResponseController(g);
|
|
23590
23592
|
}
|
|
23591
23593
|
create(l, d, f, h, m, v = a.STATIC_CONTEXT, _) {
|
|
23592
|
-
const g = "http", { argsLength: y, fnHandleResponse: b, paramtypes: E, getParamsMetadata: x, httpStatusCode: O, responseHeaders: S, hasCustomHeaders: w } = this.getMetadata(l, d, f, h, m, g), A = this.contextUtils.mergeParamsMetatypes(x(h, v, _), E), P = this.pipesContextCreator.create(l, d, h, v, _), T = this.guardsContextCreator.create(l, d, h, v, _), q = this.interceptorsContextCreator.create(l, d, h, v, _), D = this.createGuardsFn(T, l, d, g), V = this.createPipesFn(P, A),
|
|
23593
|
-
return async (
|
|
23594
|
+
const g = "http", { argsLength: y, fnHandleResponse: b, paramtypes: E, getParamsMetadata: x, httpStatusCode: O, responseHeaders: S, hasCustomHeaders: w } = this.getMetadata(l, d, f, h, m, g), A = this.contextUtils.mergeParamsMetatypes(x(h, v, _), E), P = this.pipesContextCreator.create(l, d, h, v, _), T = this.guardsContextCreator.create(l, d, h, v, _), q = this.interceptorsContextCreator.create(l, d, h, v, _), D = this.createGuardsFn(T, l, d, g), V = this.createPipesFn(P, A), k = (F, Z, J, U) => async () => (V && await V(F, Z, J, U), d.apply(l, F));
|
|
23595
|
+
return async (F, Z, J) => {
|
|
23594
23596
|
const U = this.contextUtils.createNullArray(y);
|
|
23595
|
-
D && await D([
|
|
23596
|
-
const
|
|
23597
|
-
await b(
|
|
23597
|
+
D && await D([F, Z, J]), this.responseController.setStatus(Z, O), w && this.responseController.setHeaders(Z, S);
|
|
23598
|
+
const Q = await this.interceptorsConsumer.intercept(q, [F, Z, J], l, d, k(U, F, Z, J), g);
|
|
23599
|
+
await b(Q, Z, F);
|
|
23598
23600
|
};
|
|
23599
23601
|
}
|
|
23600
23602
|
getMetadata(l, d, f, h, m, v) {
|
|
23601
23603
|
const _ = this.handlerMetadataStorage.get(l, f);
|
|
23602
23604
|
if (_)
|
|
23603
23605
|
return _;
|
|
23604
|
-
const g = this.contextUtils.reflectCallbackMetadata(l, f, t.ROUTE_ARGS_METADATA) || {}, y = Object.keys(g), b = this.contextUtils.getArgumentsLength(y, g), E = this.contextUtils.reflectCallbackParamtypes(l, f), x = this.contextUtils.getContextFactory(v, l, d), O = (
|
|
23606
|
+
const g = this.contextUtils.reflectCallbackMetadata(l, f, t.ROUTE_ARGS_METADATA) || {}, y = Object.keys(g), b = this.contextUtils.getArgumentsLength(y, g), E = this.contextUtils.reflectCallbackParamtypes(l, f), x = this.contextUtils.getContextFactory(v, l, d), O = (F, Z = a.STATIC_CONTEXT, J) => this.exchangeKeysForValues(y, g, F, Z, J, x), S = O(h), w = this.isResponseHandled(l, f, S), A = this.reflectRedirect(d), P = this.createHandleResponseFn(d, w, A), T = this.reflectHttpStatusCode(d), q = T || this.responseController.getStatusByMethod(m), D = this.reflectResponseHeaders(d), V = !(0, n.isEmpty)(D), k = {
|
|
23605
23607
|
argsLength: b,
|
|
23606
23608
|
fnHandleResponse: P,
|
|
23607
23609
|
paramtypes: E,
|
|
@@ -23610,7 +23612,7 @@ function t4() {
|
|
|
23610
23612
|
hasCustomHeaders: V,
|
|
23611
23613
|
responseHeaders: D
|
|
23612
23614
|
};
|
|
23613
|
-
return this.handlerMetadataStorage.set(l, f,
|
|
23615
|
+
return this.handlerMetadataStorage.set(l, f, k), k;
|
|
23614
23616
|
}
|
|
23615
23617
|
reflectRedirect(l) {
|
|
23616
23618
|
return Reflect.getMetadata(t.REDIRECT_METADATA, l);
|
|
@@ -23690,8 +23692,8 @@ function Wq() {
|
|
|
23690
23692
|
this.container = x, this.injector = O, this.routerProxy = S, this.exceptionsFilter = w, this.routePathFactory = P, this.graphInspector = T, this.routerMethodFactory = new l.RouterMethodFactory(), this.logger = new n.Logger(y.name, {
|
|
23691
23693
|
timestamp: !0
|
|
23692
23694
|
}), this.exceptionFiltersCache = /* @__PURE__ */ new WeakMap(), this.pathsExplorer = new m.PathsExplorer(E);
|
|
23693
|
-
const q = new _.RouteParamsFactory(), D = new h.PipesContextCreator(x, A), V = new h.PipesConsumer(),
|
|
23694
|
-
this.executionContextCreator = new g.RouterExecutionContext(q, D, V,
|
|
23695
|
+
const q = new _.RouteParamsFactory(), D = new h.PipesContextCreator(x, A), V = new h.PipesConsumer(), k = new a.GuardsContextCreator(x, A), F = new a.GuardsConsumer(), Z = new f.InterceptorsContextCreator(x, A), J = new f.InterceptorsConsumer();
|
|
23696
|
+
this.executionContextCreator = new g.RouterExecutionContext(q, D, V, k, F, Z, J, x.getHttpAdapterRef());
|
|
23695
23697
|
}
|
|
23696
23698
|
explore(E, x, O, S, w) {
|
|
23697
23699
|
const { instance: A } = E, P = this.pathsExplorer.scanForPaths(A);
|
|
@@ -23710,10 +23712,10 @@ function Wq() {
|
|
|
23710
23712
|
});
|
|
23711
23713
|
}
|
|
23712
23714
|
applyCallbackToRouter(E, x, O, S, w, A) {
|
|
23713
|
-
const { path: P, requestMethod: T, targetCallback: q, methodName: D } = x, { instance: V } = O,
|
|
23715
|
+
const { path: P, requestMethod: T, targetCallback: q, methodName: D } = x, { instance: V } = O, k = this.routerMethodFactory.get(E, T).bind(E), Z = !O.isDependencyTreeStatic() ? this.createRequestScopedHandler(O, T, this.container.getModuleByKey(S), S, D) : this.createCallbackProxy(V, q, D, S, T), J = (w.methodVersion || w.controllerVersion) && w.versioningOptions;
|
|
23714
23716
|
let U = this.applyHostFilter(A, Z);
|
|
23715
|
-
P.forEach((
|
|
23716
|
-
J && w.versioningOptions.type !== t.VersioningType.URI && (U = this.applyVersionFilter(E, w, U)), w.methodPath =
|
|
23717
|
+
P.forEach((Q) => {
|
|
23718
|
+
J && w.versioningOptions.type !== t.VersioningType.URI && (U = this.applyVersionFilter(E, w, U)), w.methodPath = Q, this.routePathFactory.create(w, T).forEach((L) => {
|
|
23717
23719
|
const B = {
|
|
23718
23720
|
type: "http-endpoint",
|
|
23719
23721
|
methodName: D,
|
|
@@ -23729,7 +23731,7 @@ function Wq() {
|
|
|
23729
23731
|
};
|
|
23730
23732
|
this.copyMetadataToCallback(q, U);
|
|
23731
23733
|
const M = E.normalizePath ? E.normalizePath(L) : L, z = this.container.getHttpAdapterRef().getOnRouteTriggered?.();
|
|
23732
|
-
z ?
|
|
23734
|
+
z ? k(M, (...Y) => (z(T, L), U(...Y))) : k(M, U), this.graphInspector.insertEntrypointDefinition(B, O.id);
|
|
23733
23735
|
}), this.routePathFactory.create({
|
|
23734
23736
|
...w,
|
|
23735
23737
|
versioningOptions: void 0
|
|
@@ -23758,13 +23760,13 @@ function Wq() {
|
|
|
23758
23760
|
P.hosts = {};
|
|
23759
23761
|
const D = O.getRequestHostname(P) || "";
|
|
23760
23762
|
for (const V of w) {
|
|
23761
|
-
const
|
|
23762
|
-
if (
|
|
23763
|
+
const k = D.match(V.regexp);
|
|
23764
|
+
if (k) {
|
|
23763
23765
|
if (V.keys.length > 0)
|
|
23764
|
-
V.keys.forEach((
|
|
23765
|
-
else if (V.regexp &&
|
|
23766
|
-
for (const
|
|
23767
|
-
P.hosts[
|
|
23766
|
+
V.keys.forEach((F, Z) => P.hosts[F.name] = k[Z + 1]);
|
|
23767
|
+
else if (V.regexp && k.groups)
|
|
23768
|
+
for (const F in k.groups)
|
|
23769
|
+
P.hosts[F] = k.groups[F];
|
|
23768
23770
|
return x(P, T, q);
|
|
23769
23771
|
}
|
|
23770
23772
|
}
|
|
@@ -23785,13 +23787,13 @@ function Wq() {
|
|
|
23785
23787
|
const { instance: A } = E, P = O.controllers, T = E.isDependencyTreeDurable();
|
|
23786
23788
|
return async (q, D, V) => {
|
|
23787
23789
|
try {
|
|
23788
|
-
const
|
|
23789
|
-
await this.createCallbackProxy(
|
|
23790
|
-
} catch (
|
|
23791
|
-
let
|
|
23792
|
-
|
|
23790
|
+
const k = this.getContextId(q, T), F = await this.injector.loadPerContext(A, O, P, k);
|
|
23791
|
+
await this.createCallbackProxy(F, F[w], w, S, x, k, E.id)(q, D, V);
|
|
23792
|
+
} catch (k) {
|
|
23793
|
+
let F = this.exceptionFiltersCache.get(A[w]);
|
|
23794
|
+
F || (F = this.exceptionsFilter.create(A, A[w], S), this.exceptionFiltersCache.set(A[w], F));
|
|
23793
23795
|
const Z = new u.ExecutionContextHost([q, D, V]);
|
|
23794
|
-
|
|
23796
|
+
F.next(k, Z);
|
|
23795
23797
|
}
|
|
23796
23798
|
};
|
|
23797
23799
|
}
|
|
@@ -29566,37 +29568,37 @@ function q4() {
|
|
|
29566
29568
|
for (; q < D; )
|
|
29567
29569
|
switch (this.state) {
|
|
29568
29570
|
case h: {
|
|
29569
|
-
let
|
|
29571
|
+
let k = !1;
|
|
29570
29572
|
for (; q < D; ++q) {
|
|
29571
29573
|
if (this.byteCount === f)
|
|
29572
29574
|
return -1;
|
|
29573
29575
|
++this.byteCount;
|
|
29574
|
-
const
|
|
29575
|
-
if (w[
|
|
29576
|
-
if (
|
|
29576
|
+
const F = T[q];
|
|
29577
|
+
if (w[F] !== 1) {
|
|
29578
|
+
if (F !== 58 || (this.name += T.latin1Slice(V, q), this.name.length === 0))
|
|
29577
29579
|
return -1;
|
|
29578
|
-
++q,
|
|
29580
|
+
++q, k = !0, this.state = m;
|
|
29579
29581
|
break;
|
|
29580
29582
|
}
|
|
29581
29583
|
}
|
|
29582
|
-
if (!
|
|
29584
|
+
if (!k) {
|
|
29583
29585
|
this.name += T.latin1Slice(V, q);
|
|
29584
29586
|
break;
|
|
29585
29587
|
}
|
|
29586
29588
|
}
|
|
29587
29589
|
case m: {
|
|
29588
|
-
let
|
|
29590
|
+
let k = !1;
|
|
29589
29591
|
for (; q < D; ++q) {
|
|
29590
29592
|
if (this.byteCount === f)
|
|
29591
29593
|
return -1;
|
|
29592
29594
|
++this.byteCount;
|
|
29593
|
-
const
|
|
29594
|
-
if (
|
|
29595
|
-
V = q,
|
|
29595
|
+
const F = T[q];
|
|
29596
|
+
if (F !== 32 && F !== 9) {
|
|
29597
|
+
V = q, k = !0, this.state = v;
|
|
29596
29598
|
break;
|
|
29597
29599
|
}
|
|
29598
29600
|
}
|
|
29599
|
-
if (!
|
|
29601
|
+
if (!k)
|
|
29600
29602
|
break;
|
|
29601
29603
|
}
|
|
29602
29604
|
case v:
|
|
@@ -29606,9 +29608,9 @@ function q4() {
|
|
|
29606
29608
|
if (this.byteCount === f)
|
|
29607
29609
|
return -1;
|
|
29608
29610
|
++this.byteCount;
|
|
29609
|
-
const
|
|
29610
|
-
if (A[
|
|
29611
|
-
if (
|
|
29611
|
+
const k = T[q];
|
|
29612
|
+
if (A[k] !== 1) {
|
|
29613
|
+
if (k !== 13)
|
|
29612
29614
|
return -1;
|
|
29613
29615
|
++this.crlf;
|
|
29614
29616
|
break;
|
|
@@ -29625,15 +29627,15 @@ function q4() {
|
|
|
29625
29627
|
if (this.byteCount === f)
|
|
29626
29628
|
return -1;
|
|
29627
29629
|
++this.byteCount;
|
|
29628
|
-
const
|
|
29629
|
-
|
|
29630
|
+
const k = T[q];
|
|
29631
|
+
k === 32 || k === 9 ? (V = q, this.crlf = 0) : (++this.pairCount < d && (this.name = this.name.toLowerCase(), this.header[this.name] === void 0 ? this.header[this.name] = [this.value] : this.header[this.name].push(this.value)), k === 13 ? (++this.crlf, ++q) : (V = q, this.crlf = 0, this.state = h, this.name = "", this.value = ""));
|
|
29630
29632
|
break;
|
|
29631
29633
|
}
|
|
29632
29634
|
case 3: {
|
|
29633
29635
|
if (this.byteCount === f || (++this.byteCount, T[q++] !== 10))
|
|
29634
29636
|
return -1;
|
|
29635
|
-
const
|
|
29636
|
-
return this.reset(), this.cb(
|
|
29637
|
+
const k = this.header;
|
|
29638
|
+
return this.reset(), this.cb(k), q;
|
|
29637
29639
|
}
|
|
29638
29640
|
}
|
|
29639
29641
|
break;
|
|
@@ -29677,17 +29679,17 @@ function q4() {
|
|
|
29677
29679
|
};
|
|
29678
29680
|
if (super(q), !T.conType.params || typeof T.conType.params.boundary != "string")
|
|
29679
29681
|
throw new Error("Multipart: Boundary not found");
|
|
29680
|
-
const D = T.conType.params.boundary, V = typeof T.defParamCharset == "string" && T.defParamCharset ? i(T.defParamCharset) : E,
|
|
29682
|
+
const D = T.conType.params.boundary, V = typeof T.defParamCharset == "string" && T.defParamCharset ? i(T.defParamCharset) : E, k = T.defCharset || "utf8", F = T.preservePath, Z = {
|
|
29681
29683
|
autoDestroy: !0,
|
|
29682
29684
|
emitClose: !0,
|
|
29683
29685
|
highWaterMark: typeof T.fileHwm == "number" ? T.fileHwm : void 0
|
|
29684
|
-
}, J = T.limits, U = J && typeof J.fieldSize == "number" ? J.fieldSize : 1 * 1024 * 1024,
|
|
29686
|
+
}, J = T.limits, U = J && typeof J.fieldSize == "number" ? J.fieldSize : 1 * 1024 * 1024, Q = J && typeof J.fileSize == "number" ? J.fileSize : 1 / 0, C = J && typeof J.files == "number" ? J.files : 1 / 0, N = J && typeof J.fields == "number" ? J.fields : 1 / 0, L = J && typeof J.parts == "number" ? J.parts : 1 / 0;
|
|
29685
29687
|
let B = -1, M = 0, j = 0, z = !1;
|
|
29686
29688
|
this._fileEndsLeft = 0, this._fileStream = void 0, this._complete = !1;
|
|
29687
|
-
let Y = 0, ee, R = 0, I, W,
|
|
29689
|
+
let Y = 0, ee, R = 0, I, W, $, oe, te = !1, le = !1, _e = !1;
|
|
29688
29690
|
this._hparser = null;
|
|
29689
29691
|
const be = new _((Ee) => {
|
|
29690
|
-
this._hparser = null, z = !1,
|
|
29692
|
+
this._hparser = null, z = !1, $ = "text/plain", I = k, W = "7bit", oe = void 0, te = !1;
|
|
29691
29693
|
let Te;
|
|
29692
29694
|
if (!Ee["content-disposition"]) {
|
|
29693
29695
|
z = !0;
|
|
@@ -29701,11 +29703,11 @@ function q4() {
|
|
|
29701
29703
|
z = !0;
|
|
29702
29704
|
return;
|
|
29703
29705
|
}
|
|
29704
|
-
if (me.params && (me.params.name && (oe = me.params.name), me.params["filename*"] ? Te = me.params["filename*"] : me.params.filename && (Te = me.params.filename), Te !== void 0 && !
|
|
29706
|
+
if (me.params && (me.params.name && (oe = me.params.name), me.params["filename*"] ? Te = me.params["filename*"] : me.params.filename && (Te = me.params.filename), Te !== void 0 && !F && (Te = n(Te))), Ee["content-type"]) {
|
|
29705
29707
|
const qe = s(Ee["content-type"][0]);
|
|
29706
|
-
qe && (
|
|
29708
|
+
qe && ($ = `${qe.type}/${qe.subtype}`, qe.params && typeof qe.params.charset == "string" && (I = qe.params.charset.toLowerCase()));
|
|
29707
29709
|
}
|
|
29708
|
-
if (Ee["content-transfer-encoding"] && (W = Ee["content-transfer-encoding"][0].toLowerCase()),
|
|
29710
|
+
if (Ee["content-transfer-encoding"] && (W = Ee["content-transfer-encoding"][0].toLowerCase()), $ === "application/octet-stream" || Te !== void 0) {
|
|
29709
29711
|
if (j === C) {
|
|
29710
29712
|
le || (le = !0, this.emit("filesLimit")), z = !0;
|
|
29711
29713
|
return;
|
|
@@ -29721,7 +29723,7 @@ function q4() {
|
|
|
29721
29723
|
{
|
|
29722
29724
|
filename: Te,
|
|
29723
29725
|
encoding: W,
|
|
29724
|
-
mimeType:
|
|
29726
|
+
mimeType: $
|
|
29725
29727
|
}
|
|
29726
29728
|
);
|
|
29727
29729
|
} else {
|
|
@@ -29785,8 +29787,8 @@ function q4() {
|
|
|
29785
29787
|
if (!z) {
|
|
29786
29788
|
if (this._fileStream) {
|
|
29787
29789
|
let ye;
|
|
29788
|
-
const Ge = Math.min(qe - me,
|
|
29789
|
-
Ke ? ye = Te.slice(me, me + Ge) : (ye = Buffer.allocUnsafe(Ge), Te.copy(ye, 0, me, me + Ge)), Y += ye.length, Y ===
|
|
29790
|
+
const Ge = Math.min(qe - me, Q - Y);
|
|
29791
|
+
Ke ? ye = Te.slice(me, me + Ge) : (ye = Buffer.allocUnsafe(Ge), Te.copy(ye, 0, me, me + Ge)), Y += ye.length, Y === Q ? (ye.length > 0 && this._fileStream.push(ye), this._fileStream.emit("limit"), this._fileStream.truncated = !0, z = !0) : this._fileStream.push(ye) || (this._writecb && (this._fileStream._readcb = this._writecb), this._writecb = null);
|
|
29790
29792
|
} else if (ee !== void 0) {
|
|
29791
29793
|
let ye;
|
|
29792
29794
|
const Ge = Math.min(
|
|
@@ -29825,7 +29827,7 @@ function q4() {
|
|
|
29825
29827
|
nameTruncated: !1,
|
|
29826
29828
|
valueTruncated: te,
|
|
29827
29829
|
encoding: W,
|
|
29828
|
-
mimeType:
|
|
29830
|
+
mimeType: $
|
|
29829
29831
|
}
|
|
29830
29832
|
);
|
|
29831
29833
|
}
|
|
@@ -31035,7 +31037,9 @@ function H4() {
|
|
|
31035
31037
|
function s(a) {
|
|
31036
31038
|
var c = t[a];
|
|
31037
31039
|
r(c, function(u) {
|
|
31038
|
-
u && (u.file = c, u.field = c.fieldname, i.push(u)), a < o - 1 ?
|
|
31040
|
+
u && (u.file = c, u.field = c.fieldname, i.push(u)), a < o - 1 ? setImmediate(function() {
|
|
31041
|
+
s(a + 1);
|
|
31042
|
+
}) : n(null, i);
|
|
31039
31043
|
});
|
|
31040
31044
|
}
|
|
31041
31045
|
s(0);
|
|
@@ -31059,37 +31063,50 @@ function V4() {
|
|
|
31059
31063
|
var h = u(), m = h.limits, v = h.storage, _ = h.fileFilter, g = h.fileStrategy, y = h.preservePath, b = h.defParamCharset;
|
|
31060
31064
|
l.body = /* @__PURE__ */ Object.create(null);
|
|
31061
31065
|
var E, x = null, O = !1, S = !1, w = !1, A = new n(), P = [];
|
|
31062
|
-
function T(
|
|
31063
|
-
|
|
31064
|
-
|
|
31065
|
-
|
|
31066
|
+
function T(F) {
|
|
31067
|
+
var Z = !1;
|
|
31068
|
+
function J() {
|
|
31069
|
+
Z || (Z = !0, f(F));
|
|
31070
|
+
}
|
|
31071
|
+
if (!O) {
|
|
31072
|
+
if (O = !0, E && (l.unpipe(E), setImmediate(() => {
|
|
31073
|
+
E.removeAllListeners();
|
|
31074
|
+
})), a(l), l.resume(), F && l.readable && !l.destroyed) {
|
|
31075
|
+
l.once("end", J), l.once("error", J), l.once("close", J);
|
|
31076
|
+
return;
|
|
31077
|
+
}
|
|
31078
|
+
f(F);
|
|
31079
|
+
}
|
|
31066
31080
|
}
|
|
31067
31081
|
function q() {
|
|
31068
31082
|
S && A.isZero() && !w && T();
|
|
31069
31083
|
}
|
|
31070
|
-
function D(
|
|
31071
|
-
|
|
31072
|
-
|
|
31073
|
-
|
|
31084
|
+
function D(F, Z) {
|
|
31085
|
+
if (w) return;
|
|
31086
|
+
w = !0;
|
|
31087
|
+
function J() {
|
|
31088
|
+
function U(Q, C) {
|
|
31089
|
+
v._removeFile(l, Q, C);
|
|
31074
31090
|
}
|
|
31075
|
-
s(P,
|
|
31076
|
-
if (
|
|
31077
|
-
|
|
31091
|
+
s(P, U, function(Q, C) {
|
|
31092
|
+
if (Q) return T(Q);
|
|
31093
|
+
F.storageErrors = C, T(F);
|
|
31078
31094
|
});
|
|
31079
|
-
}
|
|
31095
|
+
}
|
|
31096
|
+
Z ? J() : A.onceZero(J);
|
|
31080
31097
|
}
|
|
31081
|
-
function V(
|
|
31082
|
-
D(new o(
|
|
31098
|
+
function V(F, Z) {
|
|
31099
|
+
D(new o(F, Z));
|
|
31083
31100
|
}
|
|
31084
|
-
function F
|
|
31085
|
-
O || (E && E.destroy(
|
|
31101
|
+
function k(F) {
|
|
31102
|
+
O || (E && (l.unpipe(E), E.destroy(F)), D(F, !0));
|
|
31086
31103
|
}
|
|
31087
|
-
l.on("error", function(
|
|
31088
|
-
F
|
|
31104
|
+
l.on("error", function(F) {
|
|
31105
|
+
k(F || new Error("Request error"));
|
|
31089
31106
|
}), l.on("aborted", function() {
|
|
31090
|
-
|
|
31107
|
+
k(new Error("Request aborted"));
|
|
31091
31108
|
}), l.on("close", function() {
|
|
31092
|
-
l.readableEnded ||
|
|
31109
|
+
l.readableEnded || k(new Error("Request closed"));
|
|
31093
31110
|
});
|
|
31094
31111
|
try {
|
|
31095
31112
|
E = t({
|
|
@@ -31098,29 +31115,29 @@ function V4() {
|
|
|
31098
31115
|
preservePath: y,
|
|
31099
31116
|
defParamCharset: b
|
|
31100
31117
|
});
|
|
31101
|
-
} catch (
|
|
31102
|
-
return f(
|
|
31118
|
+
} catch (F) {
|
|
31119
|
+
return f(F);
|
|
31103
31120
|
}
|
|
31104
|
-
x = new i(g, l), E.on("field", function(
|
|
31105
|
-
if (
|
|
31121
|
+
x = new i(g, l), E.on("field", function(F, Z, { nameTruncated: J, valueTruncated: U }) {
|
|
31122
|
+
if (F == null) return V("MISSING_FIELD_NAME");
|
|
31106
31123
|
if (J) return V("LIMIT_FIELD_KEY");
|
|
31107
|
-
if (U) return V("LIMIT_FIELD_VALUE",
|
|
31108
|
-
if (m && Object.prototype.hasOwnProperty.call(m, "fieldNameSize") &&
|
|
31124
|
+
if (U) return V("LIMIT_FIELD_VALUE", F);
|
|
31125
|
+
if (m && Object.prototype.hasOwnProperty.call(m, "fieldNameSize") && F.length > m.fieldNameSize)
|
|
31109
31126
|
return V("LIMIT_FIELD_KEY");
|
|
31110
|
-
r(l.body,
|
|
31111
|
-
}), E.on("file", function(
|
|
31127
|
+
r(l.body, F, Z);
|
|
31128
|
+
}), E.on("file", function(F, Z, { filename: J, encoding: U, mimeType: Q }) {
|
|
31112
31129
|
var C = !1;
|
|
31113
31130
|
if (Z.on("error", function(B) {
|
|
31114
31131
|
C && A.decrement(), D(B);
|
|
31115
|
-
}),
|
|
31132
|
+
}), F == null) return V("MISSING_FIELD_NAME");
|
|
31116
31133
|
if (!J) return Z.resume();
|
|
31117
|
-
if (m && Object.prototype.hasOwnProperty.call(m, "fieldNameSize") &&
|
|
31134
|
+
if (m && Object.prototype.hasOwnProperty.call(m, "fieldNameSize") && F.length > m.fieldNameSize)
|
|
31118
31135
|
return V("LIMIT_FIELD_KEY");
|
|
31119
31136
|
var N = {
|
|
31120
|
-
fieldname:
|
|
31137
|
+
fieldname: F,
|
|
31121
31138
|
originalname: J,
|
|
31122
31139
|
encoding: U,
|
|
31123
|
-
mimetype:
|
|
31140
|
+
mimetype: Q
|
|
31124
31141
|
}, L = x.insertPlaceholder(N);
|
|
31125
31142
|
_(l, N, function(B, M) {
|
|
31126
31143
|
if (w)
|
|
@@ -31135,7 +31152,7 @@ function V4() {
|
|
|
31135
31152
|
enumerable: !1,
|
|
31136
31153
|
value: Z
|
|
31137
31154
|
}), Z.on("limit", function() {
|
|
31138
|
-
j = !0, V("LIMIT_FILE_SIZE",
|
|
31155
|
+
j = !0, V("LIMIT_FILE_SIZE", F);
|
|
31139
31156
|
}), v._handleFile(l, N, function(z, Y) {
|
|
31140
31157
|
if (j)
|
|
31141
31158
|
return x.removePlaceholder(L), P.push({ ...N, ...Y }), A.decrement();
|
|
@@ -31145,8 +31162,8 @@ function V4() {
|
|
|
31145
31162
|
x.replacePlaceholder(L, ee), P.push(ee), A.decrement(), q();
|
|
31146
31163
|
});
|
|
31147
31164
|
});
|
|
31148
|
-
}), E.on("error", function(
|
|
31149
|
-
D(
|
|
31165
|
+
}), E.on("error", function(F) {
|
|
31166
|
+
D(F);
|
|
31150
31167
|
}), E.on("partsLimit", function() {
|
|
31151
31168
|
V("LIMIT_PART_COUNT");
|
|
31152
31169
|
}), E.on("filesLimit", function() {
|
|
@@ -31566,7 +31583,7 @@ function tF() {
|
|
|
31566
31583
|
t = t || oi(), M = M || {}, typeof z != "boolean" && (z = j instanceof t), this.objectMode = !!M.objectMode, z && (this.objectMode = this.objectMode || !!M.writableObjectMode), this.highWaterMark = p(this, M, "writableHighWaterMark", z), this.finalCalled = !1, this.needDrain = !1, this.ending = !1, this.ended = !1, this.finished = !1, this.destroyed = !1;
|
|
31567
31584
|
var Y = M.decodeStrings === !1;
|
|
31568
31585
|
this.decodeStrings = !Y, this.defaultEncoding = M.defaultEncoding || "utf8", this.length = 0, this.writing = !1, this.corked = 0, this.sync = !0, this.bufferProcessing = !1, this.onwrite = function(ee) {
|
|
31569
|
-
|
|
31586
|
+
k(j, ee);
|
|
31570
31587
|
}, this.writecb = null, this.writelen = 0, this.bufferedRequest = null, this.lastBufferedRequest = null, this.pendingcb = 0, this.prefinished = !1, this.errorEmitted = !1, this.emitClose = M.emitClose !== !1, this.autoDestroy = !!M.autoDestroy, this.bufferedRequestCount = 0, this.corkedRequestsFree = new e(this);
|
|
31571
31588
|
}
|
|
31572
31589
|
x.prototype.getBuffer = function() {
|
|
@@ -31647,8 +31664,8 @@ function tF() {
|
|
|
31647
31664
|
}
|
|
31648
31665
|
var W = j.objectMode ? 1 : Y.length;
|
|
31649
31666
|
j.length += W;
|
|
31650
|
-
var
|
|
31651
|
-
if (
|
|
31667
|
+
var $ = j.length < j.highWaterMark;
|
|
31668
|
+
if ($ || (j.needDrain = !0), j.writing || j.corked) {
|
|
31652
31669
|
var oe = j.lastBufferedRequest;
|
|
31653
31670
|
j.lastBufferedRequest = {
|
|
31654
31671
|
chunk: Y,
|
|
@@ -31659,7 +31676,7 @@ function tF() {
|
|
|
31659
31676
|
}, oe ? oe.next = j.lastBufferedRequest : j.bufferedRequest = j.lastBufferedRequest, j.bufferedRequestCount += 1;
|
|
31660
31677
|
} else
|
|
31661
31678
|
q(M, j, !1, W, Y, ee, R);
|
|
31662
|
-
return
|
|
31679
|
+
return $;
|
|
31663
31680
|
}
|
|
31664
31681
|
function q(M, j, z, Y, ee, R, I) {
|
|
31665
31682
|
j.writelen = Y, j.writecb = I, j.writing = !0, j.sync = !0, j.destroyed ? j.onwrite(new v("write")) : z ? M._writev(ee, j.onwrite) : M._write(ee, R, j.onwrite), j.sync = !1;
|
|
@@ -31670,16 +31687,16 @@ function tF() {
|
|
|
31670
31687
|
function V(M) {
|
|
31671
31688
|
M.writing = !1, M.writecb = null, M.length -= M.writelen, M.writelen = 0;
|
|
31672
31689
|
}
|
|
31673
|
-
function
|
|
31690
|
+
function k(M, j) {
|
|
31674
31691
|
var z = M._writableState, Y = z.sync, ee = z.writecb;
|
|
31675
31692
|
if (typeof ee != "function") throw new h();
|
|
31676
31693
|
if (V(z), j) D(M, z, Y, j, ee);
|
|
31677
31694
|
else {
|
|
31678
31695
|
var R = U(z) || M.destroyed;
|
|
31679
|
-
!R && !z.corked && !z.bufferProcessing && z.bufferedRequest && J(M, z), Y ? process.nextTick(
|
|
31696
|
+
!R && !z.corked && !z.bufferProcessing && z.bufferedRequest && J(M, z), Y ? process.nextTick(F, M, z, R, ee) : F(M, z, R, ee);
|
|
31680
31697
|
}
|
|
31681
31698
|
}
|
|
31682
|
-
function
|
|
31699
|
+
function F(M, j, z, Y) {
|
|
31683
31700
|
z || Z(M, j), j.pendingcb--, Y(), N(M, j);
|
|
31684
31701
|
}
|
|
31685
31702
|
function Z(M, j) {
|
|
@@ -31696,8 +31713,8 @@ function tF() {
|
|
|
31696
31713
|
ee.allBuffers = W, q(M, j, !0, j.length, ee, "", R.finish), j.pendingcb++, j.lastBufferedRequest = null, R.next ? (j.corkedRequestsFree = R.next, R.next = null) : j.corkedRequestsFree = new e(j), j.bufferedRequestCount = 0;
|
|
31697
31714
|
} else {
|
|
31698
31715
|
for (; z; ) {
|
|
31699
|
-
var
|
|
31700
|
-
if (q(M, j, !1, le,
|
|
31716
|
+
var $ = z.chunk, oe = z.encoding, te = z.callback, le = j.objectMode ? 1 : $.length;
|
|
31717
|
+
if (q(M, j, !1, le, $, oe, te), z = z.next, j.bufferedRequestCount--, j.writing)
|
|
31701
31718
|
break;
|
|
31702
31719
|
}
|
|
31703
31720
|
z === null && (j.lastBufferedRequest = null);
|
|
@@ -31721,13 +31738,13 @@ function tF() {
|
|
|
31721
31738
|
function U(M) {
|
|
31722
31739
|
return M.ending && M.length === 0 && M.bufferedRequest === null && !M.finished && !M.writing;
|
|
31723
31740
|
}
|
|
31724
|
-
function
|
|
31741
|
+
function Q(M, j) {
|
|
31725
31742
|
M._final(function(z) {
|
|
31726
31743
|
j.pendingcb--, z && b(M, z), j.prefinished = !0, M.emit("prefinish"), N(M, j);
|
|
31727
31744
|
});
|
|
31728
31745
|
}
|
|
31729
31746
|
function C(M, j) {
|
|
31730
|
-
!j.prefinished && !j.finalCalled && (typeof M._final == "function" && !j.destroyed ? (j.pendingcb++, j.finalCalled = !0, process.nextTick(
|
|
31747
|
+
!j.prefinished && !j.finalCalled && (typeof M._final == "function" && !j.destroyed ? (j.pendingcb++, j.finalCalled = !0, process.nextTick(Q, M, j)) : (j.prefinished = !0, M.emit("prefinish")));
|
|
31731
31748
|
}
|
|
31732
31749
|
function N(M, j) {
|
|
31733
31750
|
var z = U(j);
|
|
@@ -32245,22 +32262,22 @@ function rF() {
|
|
|
32245
32262
|
}), w.prototype.destroy = p.destroy, w.prototype._undestroy = p.undestroy, w.prototype._destroy = function(R, I) {
|
|
32246
32263
|
I(R);
|
|
32247
32264
|
}, w.prototype.push = function(R, I) {
|
|
32248
|
-
var W = this._readableState,
|
|
32249
|
-
return W.objectMode ?
|
|
32265
|
+
var W = this._readableState, $;
|
|
32266
|
+
return W.objectMode ? $ = !0 : typeof R == "string" && (I = I || W.defaultEncoding, I !== W.encoding && (R = n.from(R, I), I = ""), $ = !0), A(this, R, I, !1, $);
|
|
32250
32267
|
}, w.prototype.unshift = function(R) {
|
|
32251
32268
|
return A(this, R, null, !0, !1);
|
|
32252
32269
|
};
|
|
32253
|
-
function A(R, I, W,
|
|
32270
|
+
function A(R, I, W, $, oe) {
|
|
32254
32271
|
c("readableAddChunk", I);
|
|
32255
32272
|
var te = R._readableState;
|
|
32256
32273
|
if (I === null)
|
|
32257
|
-
te.reading = !1,
|
|
32274
|
+
te.reading = !1, k(R, te);
|
|
32258
32275
|
else {
|
|
32259
32276
|
var le;
|
|
32260
32277
|
if (oe || (le = T(te, I)), le)
|
|
32261
32278
|
E(R, le);
|
|
32262
32279
|
else if (te.objectMode || I && I.length > 0)
|
|
32263
|
-
if (typeof I != "string" && !te.objectMode && Object.getPrototypeOf(I) !== n.prototype && (I = i(I)),
|
|
32280
|
+
if (typeof I != "string" && !te.objectMode && Object.getPrototypeOf(I) !== n.prototype && (I = i(I)), $)
|
|
32264
32281
|
te.endEmitted ? E(R, new _()) : P(R, te, I, !0);
|
|
32265
32282
|
else if (te.ended)
|
|
32266
32283
|
E(R, new m());
|
|
@@ -32269,12 +32286,12 @@ function rF() {
|
|
|
32269
32286
|
return !1;
|
|
32270
32287
|
te.reading = !1, te.decoder && !W ? (I = te.decoder.write(I), te.objectMode || I.length !== 0 ? P(R, te, I, !1) : J(R, te)) : P(R, te, I, !1);
|
|
32271
32288
|
}
|
|
32272
|
-
else
|
|
32289
|
+
else $ || (te.reading = !1, J(R, te));
|
|
32273
32290
|
}
|
|
32274
32291
|
return !te.ended && (te.length < te.highWaterMark || te.length === 0);
|
|
32275
32292
|
}
|
|
32276
|
-
function P(R, I, W,
|
|
32277
|
-
I.flowing && I.length === 0 && !I.sync ? (I.awaitDrain = 0, R.emit("data", W)) : (I.length += I.objectMode ? 1 : W.length,
|
|
32293
|
+
function P(R, I, W, $) {
|
|
32294
|
+
I.flowing && I.length === 0 && !I.sync ? (I.awaitDrain = 0, R.emit("data", W)) : (I.length += I.objectMode ? 1 : W.length, $ ? I.buffer.unshift(W) : I.buffer.push(W), I.needReadable && F(R)), J(R, I);
|
|
32278
32295
|
}
|
|
32279
32296
|
function T(R, I) {
|
|
32280
32297
|
var W;
|
|
@@ -32286,9 +32303,9 @@ function rF() {
|
|
|
32286
32303
|
g || (g = VM().StringDecoder);
|
|
32287
32304
|
var I = new g(R);
|
|
32288
32305
|
this._readableState.decoder = I, this._readableState.encoding = this._readableState.decoder.encoding;
|
|
32289
|
-
for (var W = this._readableState.buffer.head,
|
|
32290
|
-
|
|
32291
|
-
return this._readableState.buffer.clear(),
|
|
32306
|
+
for (var W = this._readableState.buffer.head, $ = ""; W !== null; )
|
|
32307
|
+
$ += I.write(W.data), W = W.next;
|
|
32308
|
+
return this._readableState.buffer.clear(), $ !== "" && this._readableState.buffer.push($), this._readableState.length = $.length, this;
|
|
32292
32309
|
};
|
|
32293
32310
|
var q = 1073741824;
|
|
32294
32311
|
function D(R) {
|
|
@@ -32301,24 +32318,24 @@ function rF() {
|
|
|
32301
32318
|
c("read", R), R = parseInt(R, 10);
|
|
32302
32319
|
var I = this._readableState, W = R;
|
|
32303
32320
|
if (R !== 0 && (I.emittedReadable = !1), R === 0 && I.needReadable && ((I.highWaterMark !== 0 ? I.length >= I.highWaterMark : I.length > 0) || I.ended))
|
|
32304
|
-
return c("read: emitReadable", I.length, I.ended), I.length === 0 && I.ended ? z(this) :
|
|
32321
|
+
return c("read: emitReadable", I.length, I.ended), I.length === 0 && I.ended ? z(this) : F(this), null;
|
|
32305
32322
|
if (R = V(R, I), R === 0 && I.ended)
|
|
32306
32323
|
return I.length === 0 && z(this), null;
|
|
32307
|
-
var
|
|
32308
|
-
c("need readable",
|
|
32324
|
+
var $ = I.needReadable;
|
|
32325
|
+
c("need readable", $), (I.length === 0 || I.length - R < I.highWaterMark) && ($ = !0, c("length less than watermark", $)), I.ended || I.reading ? ($ = !1, c("reading or ended", $)) : $ && (c("do read"), I.reading = !0, I.sync = !0, I.length === 0 && (I.needReadable = !0), this._read(I.highWaterMark), I.sync = !1, I.reading || (R = V(W, I)));
|
|
32309
32326
|
var oe;
|
|
32310
32327
|
return R > 0 ? oe = j(R, I) : oe = null, oe === null ? (I.needReadable = I.length <= I.highWaterMark, R = 0) : (I.length -= R, I.awaitDrain = 0), I.length === 0 && (I.ended || (I.needReadable = !0), W !== R && I.ended && z(this)), oe !== null && this.emit("data", oe), oe;
|
|
32311
32328
|
};
|
|
32312
|
-
function
|
|
32329
|
+
function k(R, I) {
|
|
32313
32330
|
if (c("onEofChunk"), !I.ended) {
|
|
32314
32331
|
if (I.decoder) {
|
|
32315
32332
|
var W = I.decoder.end();
|
|
32316
32333
|
W && W.length && (I.buffer.push(W), I.length += I.objectMode ? 1 : W.length);
|
|
32317
32334
|
}
|
|
32318
|
-
I.ended = !0, I.sync ?
|
|
32335
|
+
I.ended = !0, I.sync ? F(R) : (I.needReadable = !1, I.emittedReadable || (I.emittedReadable = !0, Z(R)));
|
|
32319
32336
|
}
|
|
32320
32337
|
}
|
|
32321
|
-
function
|
|
32338
|
+
function F(R) {
|
|
32322
32339
|
var I = R._readableState;
|
|
32323
32340
|
c("emitReadable", I.needReadable, I.emittedReadable), I.needReadable = !1, I.emittedReadable || (c("emitReadable", I.flowing), I.emittedReadable = !0, process.nextTick(Z, R));
|
|
32324
32341
|
}
|
|
@@ -32340,38 +32357,38 @@ function rF() {
|
|
|
32340
32357
|
w.prototype._read = function(R) {
|
|
32341
32358
|
E(this, new v("_read()"));
|
|
32342
32359
|
}, w.prototype.pipe = function(R, I) {
|
|
32343
|
-
var W = this,
|
|
32344
|
-
switch (
|
|
32360
|
+
var W = this, $ = this._readableState;
|
|
32361
|
+
switch ($.pipesCount) {
|
|
32345
32362
|
case 0:
|
|
32346
|
-
|
|
32363
|
+
$.pipes = R;
|
|
32347
32364
|
break;
|
|
32348
32365
|
case 1:
|
|
32349
|
-
|
|
32366
|
+
$.pipes = [$.pipes, R];
|
|
32350
32367
|
break;
|
|
32351
32368
|
default:
|
|
32352
|
-
|
|
32369
|
+
$.pipes.push(R);
|
|
32353
32370
|
break;
|
|
32354
32371
|
}
|
|
32355
|
-
|
|
32372
|
+
$.pipesCount += 1, c("pipe count=%d opts=%j", $.pipesCount, I);
|
|
32356
32373
|
var oe = (!I || I.end !== !1) && R !== process.stdout && R !== process.stderr, te = oe ? _e : Ke;
|
|
32357
|
-
|
|
32374
|
+
$.endEmitted ? process.nextTick(te) : W.once("end", te), R.on("unpipe", le);
|
|
32358
32375
|
function le(ye, Ge) {
|
|
32359
32376
|
c("onunpipe"), ye === W && Ge && Ge.hasUnpiped === !1 && (Ge.hasUnpiped = !0, Re());
|
|
32360
32377
|
}
|
|
32361
32378
|
function _e() {
|
|
32362
32379
|
c("onend"), R.end();
|
|
32363
32380
|
}
|
|
32364
|
-
var be =
|
|
32381
|
+
var be = Q(W);
|
|
32365
32382
|
R.on("drain", be);
|
|
32366
32383
|
var Pe = !1;
|
|
32367
32384
|
function Re() {
|
|
32368
|
-
c("cleanup"), R.removeListener("close", me), R.removeListener("finish", qe), R.removeListener("drain", be), R.removeListener("error", Te), R.removeListener("unpipe", le), W.removeListener("end", _e), W.removeListener("end", Ke), W.removeListener("data", Ee), Pe = !0,
|
|
32385
|
+
c("cleanup"), R.removeListener("close", me), R.removeListener("finish", qe), R.removeListener("drain", be), R.removeListener("error", Te), R.removeListener("unpipe", le), W.removeListener("end", _e), W.removeListener("end", Ke), W.removeListener("data", Ee), Pe = !0, $.awaitDrain && (!R._writableState || R._writableState.needDrain) && be();
|
|
32369
32386
|
}
|
|
32370
32387
|
W.on("data", Ee);
|
|
32371
32388
|
function Ee(ye) {
|
|
32372
32389
|
c("ondata");
|
|
32373
32390
|
var Ge = R.write(ye);
|
|
32374
|
-
c("dest.write", Ge), Ge === !1 && ((
|
|
32391
|
+
c("dest.write", Ge), Ge === !1 && (($.pipesCount === 1 && $.pipes === R || $.pipesCount > 1 && ee($.pipes, R) !== -1) && !Pe && (c("false write response, pause", $.awaitDrain), $.awaitDrain++), W.pause());
|
|
32375
32392
|
}
|
|
32376
32393
|
function Te(ye) {
|
|
32377
32394
|
c("onerror", ye), Ke(), R.removeListener("error", Te), t(R, "error") === 0 && E(R, ye);
|
|
@@ -32388,9 +32405,9 @@ function rF() {
|
|
|
32388
32405
|
function Ke() {
|
|
32389
32406
|
c("unpipe"), W.unpipe(R);
|
|
32390
32407
|
}
|
|
32391
|
-
return R.emit("pipe", W),
|
|
32408
|
+
return R.emit("pipe", W), $.flowing || (c("pipe resume"), W.resume()), R;
|
|
32392
32409
|
};
|
|
32393
|
-
function
|
|
32410
|
+
function Q(R) {
|
|
32394
32411
|
return function() {
|
|
32395
32412
|
var W = R._readableState;
|
|
32396
32413
|
c("pipeOnDrain", W.awaitDrain), W.awaitDrain && W.awaitDrain--, W.awaitDrain === 0 && t(R, "data") && (W.flowing = !0, M(R));
|
|
@@ -32404,9 +32421,9 @@ function rF() {
|
|
|
32404
32421
|
if (I.pipesCount === 1)
|
|
32405
32422
|
return R && R !== I.pipes ? this : (R || (R = I.pipes), I.pipes = null, I.pipesCount = 0, I.flowing = !1, R && R.emit("unpipe", this, W), this);
|
|
32406
32423
|
if (!R) {
|
|
32407
|
-
var
|
|
32424
|
+
var $ = I.pipes, oe = I.pipesCount;
|
|
32408
32425
|
I.pipes = null, I.pipesCount = 0, I.flowing = !1;
|
|
32409
|
-
for (var te = 0; te < oe; te++)
|
|
32426
|
+
for (var te = 0; te < oe; te++) $[te].emit("unpipe", this, {
|
|
32410
32427
|
hasUnpiped: !1
|
|
32411
32428
|
});
|
|
32412
32429
|
return this;
|
|
@@ -32414,8 +32431,8 @@ function rF() {
|
|
|
32414
32431
|
var le = ee(I.pipes, R);
|
|
32415
32432
|
return le === -1 ? this : (I.pipes.splice(le, 1), I.pipesCount -= 1, I.pipesCount === 1 && (I.pipes = I.pipes[0]), R.emit("unpipe", this, W), this);
|
|
32416
32433
|
}, w.prototype.on = function(R, I) {
|
|
32417
|
-
var W = r.prototype.on.call(this, R, I),
|
|
32418
|
-
return R === "data" ? (
|
|
32434
|
+
var W = r.prototype.on.call(this, R, I), $ = this._readableState;
|
|
32435
|
+
return R === "data" ? ($.readableListening = this.listenerCount("readable") > 0, $.flowing !== !1 && this.resume()) : R === "readable" && !$.endEmitted && !$.readableListening && ($.readableListening = $.needReadable = !0, $.flowing = !1, $.emittedReadable = !1, c("on readable", $.length, $.reading), $.length ? F(this) : $.reading || process.nextTick(N, this)), W;
|
|
32419
32436
|
}, w.prototype.addListener = w.prototype.on, w.prototype.removeListener = function(R, I) {
|
|
32420
32437
|
var W = r.prototype.removeListener.call(this, R, I);
|
|
32421
32438
|
return R === "readable" && process.nextTick(C, this), W;
|
|
@@ -32448,7 +32465,7 @@ function rF() {
|
|
|
32448
32465
|
for (c("flow", I.flowing); I.flowing && R.read() !== null; ) ;
|
|
32449
32466
|
}
|
|
32450
32467
|
w.prototype.wrap = function(R) {
|
|
32451
|
-
var I = this, W = this._readableState,
|
|
32468
|
+
var I = this, W = this._readableState, $ = !1;
|
|
32452
32469
|
R.on("end", function() {
|
|
32453
32470
|
if (c("wrapped end"), W.decoder && !W.ended) {
|
|
32454
32471
|
var le = W.decoder.end();
|
|
@@ -32458,7 +32475,7 @@ function rF() {
|
|
|
32458
32475
|
}), R.on("data", function(le) {
|
|
32459
32476
|
if (c("wrapped data"), W.decoder && (le = W.decoder.write(le)), !(W.objectMode && le == null) && !(!W.objectMode && (!le || !le.length))) {
|
|
32460
32477
|
var _e = I.push(le);
|
|
32461
|
-
_e || (
|
|
32478
|
+
_e || ($ = !0, R.pause());
|
|
32462
32479
|
}
|
|
32463
32480
|
});
|
|
32464
32481
|
for (var oe in R)
|
|
@@ -32470,7 +32487,7 @@ function rF() {
|
|
|
32470
32487
|
for (var te = 0; te < x.length; te++)
|
|
32471
32488
|
R.on(x[te], this.emit.bind(this, x[te]));
|
|
32472
32489
|
return this._read = function(le) {
|
|
32473
|
-
c("wrapped _read", le),
|
|
32490
|
+
c("wrapped _read", le), $ && ($ = !1, R.resume());
|
|
32474
32491
|
}, this;
|
|
32475
32492
|
}, typeof Symbol == "function" && (w.prototype[Symbol.asyncIterator] = function() {
|
|
32476
32493
|
return y === void 0 && (y = Y4()), y(this);
|
|
@@ -32529,7 +32546,7 @@ function rF() {
|
|
|
32529
32546
|
return b === void 0 && (b = X4()), b(w, R, I);
|
|
32530
32547
|
});
|
|
32531
32548
|
function ee(R, I) {
|
|
32532
|
-
for (var W = 0,
|
|
32549
|
+
for (var W = 0, $ = R.length; W < $; W++)
|
|
32533
32550
|
if (R[W] === I) return W;
|
|
32534
32551
|
return -1;
|
|
32535
32552
|
}
|
|
@@ -32713,7 +32730,7 @@ var U_ = {}, eI;
|
|
|
32713
32730
|
function tK() {
|
|
32714
32731
|
return eI || (eI = 1, (function(e) {
|
|
32715
32732
|
var t = void 0, r = 1e5, n = /* @__PURE__ */ (function() {
|
|
32716
|
-
var U = Object.prototype.toString,
|
|
32733
|
+
var U = Object.prototype.toString, Q = Object.prototype.hasOwnProperty;
|
|
32717
32734
|
return {
|
|
32718
32735
|
// Class returns internal [[Class]] property, used to avoid cross-frame instanceof issues:
|
|
32719
32736
|
Class: function(C) {
|
|
@@ -32723,7 +32740,7 @@ function tK() {
|
|
|
32723
32740
|
return N in C;
|
|
32724
32741
|
},
|
|
32725
32742
|
HasOwnProperty: function(C, N) {
|
|
32726
|
-
return
|
|
32743
|
+
return Q.call(C, N);
|
|
32727
32744
|
},
|
|
32728
32745
|
IsCallable: function(C) {
|
|
32729
32746
|
return typeof C == "function";
|
|
@@ -32738,10 +32755,10 @@ function tK() {
|
|
|
32738
32755
|
})(), o = Math.LN2, i = Math.abs, s = Math.floor, a = Math.log, c = Math.min, u = Math.pow, p = Math.round;
|
|
32739
32756
|
function l(U) {
|
|
32740
32757
|
if (f && d) {
|
|
32741
|
-
var
|
|
32742
|
-
for (C = 0; C <
|
|
32743
|
-
d(U,
|
|
32744
|
-
value: U[
|
|
32758
|
+
var Q = f(U), C;
|
|
32759
|
+
for (C = 0; C < Q.length; C += 1)
|
|
32760
|
+
d(U, Q[C], {
|
|
32761
|
+
value: U[Q[C]],
|
|
32745
32762
|
writable: !1,
|
|
32746
32763
|
enumerable: !1,
|
|
32747
32764
|
configurable: !1
|
|
@@ -32755,22 +32772,22 @@ function tK() {
|
|
|
32755
32772
|
} catch {
|
|
32756
32773
|
return !1;
|
|
32757
32774
|
}
|
|
32758
|
-
})() ? d = Object.defineProperty : d = function(U,
|
|
32775
|
+
})() ? d = Object.defineProperty : d = function(U, Q, C) {
|
|
32759
32776
|
if (!U === Object(U)) throw new TypeError("Object.defineProperty called on non-object");
|
|
32760
|
-
return n.HasProperty(C, "get") && Object.prototype.__defineGetter__ && Object.prototype.__defineGetter__.call(U,
|
|
32777
|
+
return n.HasProperty(C, "get") && Object.prototype.__defineGetter__ && Object.prototype.__defineGetter__.call(U, Q, C.get), n.HasProperty(C, "set") && Object.prototype.__defineSetter__ && Object.prototype.__defineSetter__.call(U, Q, C.set), n.HasProperty(C, "value") && (U[Q] = C.value), U;
|
|
32761
32778
|
};
|
|
32762
32779
|
var f = Object.getOwnPropertyNames || function(U) {
|
|
32763
32780
|
if (U !== Object(U)) throw new TypeError("Object.getOwnPropertyNames called on non-object");
|
|
32764
|
-
var
|
|
32781
|
+
var Q = [], C;
|
|
32765
32782
|
for (C in U)
|
|
32766
|
-
n.HasOwnProperty(U, C) &&
|
|
32767
|
-
return
|
|
32783
|
+
n.HasOwnProperty(U, C) && Q.push(C);
|
|
32784
|
+
return Q;
|
|
32768
32785
|
};
|
|
32769
32786
|
function h(U) {
|
|
32770
32787
|
if (!d)
|
|
32771
32788
|
return;
|
|
32772
32789
|
if (U.length > r) throw new RangeError("Array too large for polyfill");
|
|
32773
|
-
function
|
|
32790
|
+
function Q(N) {
|
|
32774
32791
|
d(U, N, {
|
|
32775
32792
|
get: function() {
|
|
32776
32793
|
return U._getter(N);
|
|
@@ -32784,14 +32801,14 @@ function tK() {
|
|
|
32784
32801
|
}
|
|
32785
32802
|
var C;
|
|
32786
32803
|
for (C = 0; C < U.length; C += 1)
|
|
32787
|
-
|
|
32804
|
+
Q(C);
|
|
32788
32805
|
}
|
|
32789
|
-
function m(U,
|
|
32790
|
-
var C = 32 -
|
|
32806
|
+
function m(U, Q) {
|
|
32807
|
+
var C = 32 - Q;
|
|
32791
32808
|
return U << C >> C;
|
|
32792
32809
|
}
|
|
32793
|
-
function v(U,
|
|
32794
|
-
var C = 32 -
|
|
32810
|
+
function v(U, Q) {
|
|
32811
|
+
var C = 32 - Q;
|
|
32795
32812
|
return U << C >>> C;
|
|
32796
32813
|
}
|
|
32797
32814
|
function _(U) {
|
|
@@ -32833,31 +32850,31 @@ function tK() {
|
|
|
32833
32850
|
function q(U) {
|
|
32834
32851
|
return v(U[0] << 24 | U[1] << 16 | U[2] << 8 | U[3], 32);
|
|
32835
32852
|
}
|
|
32836
|
-
function D(U,
|
|
32837
|
-
var N = (1 <<
|
|
32853
|
+
function D(U, Q, C) {
|
|
32854
|
+
var N = (1 << Q - 1) - 1, L, B, M, j, z, Y, ee;
|
|
32838
32855
|
function R(I) {
|
|
32839
|
-
var W = s(I),
|
|
32840
|
-
return
|
|
32856
|
+
var W = s(I), $ = I - W;
|
|
32857
|
+
return $ < 0.5 ? W : $ > 0.5 || W % 2 ? W + 1 : W;
|
|
32841
32858
|
}
|
|
32842
|
-
for (U !== U ? (B = (1 <<
|
|
32859
|
+
for (U !== U ? (B = (1 << Q) - 1, M = u(2, C - 1), L = 0) : U === 1 / 0 || U === -1 / 0 ? (B = (1 << Q) - 1, M = 0, L = U < 0 ? 1 : 0) : U === 0 ? (B = 0, M = 0, L = 1 / U === -1 / 0 ? 1 : 0) : (L = U < 0, U = i(U), U >= u(2, 1 - N) ? (B = c(s(a(U) / o), 1023), M = R(U / u(2, B) * u(2, C)), M / u(2, C) >= 2 && (B = B + 1, M = 1), B > N ? (B = (1 << Q) - 1, M = 0) : (B = B + N, M = M - u(2, C))) : (B = 0, M = R(U / u(2, 1 - N - C)))), z = [], j = C; j; j -= 1)
|
|
32843
32860
|
z.push(M % 2 ? 1 : 0), M = s(M / 2);
|
|
32844
|
-
for (j =
|
|
32861
|
+
for (j = Q; j; j -= 1)
|
|
32845
32862
|
z.push(B % 2 ? 1 : 0), B = s(B / 2);
|
|
32846
32863
|
for (z.push(L ? 1 : 0), z.reverse(), Y = z.join(""), ee = []; Y.length; )
|
|
32847
32864
|
ee.push(parseInt(Y.substring(0, 8), 2)), Y = Y.substring(8);
|
|
32848
32865
|
return ee;
|
|
32849
32866
|
}
|
|
32850
|
-
function V(U,
|
|
32867
|
+
function V(U, Q, C) {
|
|
32851
32868
|
var N = [], L, B, M, j, z, Y, ee, R;
|
|
32852
32869
|
for (L = U.length; L; L -= 1)
|
|
32853
32870
|
for (M = U[L - 1], B = 8; B; B -= 1)
|
|
32854
32871
|
N.push(M % 2 ? 1 : 0), M = M >> 1;
|
|
32855
|
-
return N.reverse(), j = N.join(""), z = (1 <<
|
|
32872
|
+
return N.reverse(), j = N.join(""), z = (1 << Q - 1) - 1, Y = parseInt(j.substring(0, 1), 2) ? -1 : 1, ee = parseInt(j.substring(1, 1 + Q), 2), R = parseInt(j.substring(1 + Q), 2), ee === (1 << Q) - 1 ? R !== 0 ? NaN : Y * (1 / 0) : ee > 0 ? Y * u(2, ee - z) * (1 + R / u(2, C)) : R !== 0 ? Y * u(2, -(z - 1)) * (R / u(2, C)) : Y < 0 ? -0 : 0;
|
|
32856
32873
|
}
|
|
32857
|
-
function
|
|
32874
|
+
function k(U) {
|
|
32858
32875
|
return V(U, 11, 52);
|
|
32859
32876
|
}
|
|
32860
|
-
function
|
|
32877
|
+
function F(U) {
|
|
32861
32878
|
return D(U, 11, 52);
|
|
32862
32879
|
}
|
|
32863
32880
|
function Z(U) {
|
|
@@ -32870,15 +32887,15 @@ function tK() {
|
|
|
32870
32887
|
var U = function(W) {
|
|
32871
32888
|
if (W = n.ToInt32(W), W < 0) throw new RangeError("ArrayBuffer size is not a small enough positive integer");
|
|
32872
32889
|
this.byteLength = W, this._bytes = [], this._bytes.length = W;
|
|
32873
|
-
var
|
|
32874
|
-
for (
|
|
32875
|
-
this._bytes[
|
|
32890
|
+
var $;
|
|
32891
|
+
for ($ = 0; $ < this.byteLength; $ += 1)
|
|
32892
|
+
this._bytes[$] = 0;
|
|
32876
32893
|
l(this);
|
|
32877
32894
|
};
|
|
32878
32895
|
e.ArrayBuffer = e.ArrayBuffer || U;
|
|
32879
|
-
var
|
|
32896
|
+
var Q = function() {
|
|
32880
32897
|
};
|
|
32881
|
-
function C(I, W,
|
|
32898
|
+
function C(I, W, $) {
|
|
32882
32899
|
var oe;
|
|
32883
32900
|
return oe = function(te, le, _e) {
|
|
32884
32901
|
var be, Pe, Re, Ee;
|
|
@@ -32907,7 +32924,7 @@ function tK() {
|
|
|
32907
32924
|
} else
|
|
32908
32925
|
throw new TypeError("Unexpected argument type(s)");
|
|
32909
32926
|
this.constructor = oe, l(this), h(this);
|
|
32910
|
-
}, oe.prototype = new
|
|
32927
|
+
}, oe.prototype = new Q(), oe.prototype.BYTES_PER_ELEMENT = I, oe.prototype._pack = W, oe.prototype._unpack = $, oe.BYTES_PER_ELEMENT = I, oe.prototype._getter = function(te) {
|
|
32911
32928
|
if (arguments.length < 1) throw new SyntaxError("Not enough arguments");
|
|
32912
32929
|
if (te = n.ToUint32(te), te >= this.length)
|
|
32913
32930
|
return t;
|
|
@@ -32956,13 +32973,13 @@ function tK() {
|
|
|
32956
32973
|
);
|
|
32957
32974
|
}, oe;
|
|
32958
32975
|
}
|
|
32959
|
-
var N = C(1, _, g), L = C(1, y, b), B = C(1, E, b), M = C(2, x, O), j = C(2, S, w), z = C(4, A, P), Y = C(4, T, q), ee = C(4, J, Z), R = C(8,
|
|
32976
|
+
var N = C(1, _, g), L = C(1, y, b), B = C(1, E, b), M = C(2, x, O), j = C(2, S, w), z = C(4, A, P), Y = C(4, T, q), ee = C(4, J, Z), R = C(8, F, k);
|
|
32960
32977
|
e.Int8Array = e.Int8Array || N, e.Uint8Array = e.Uint8Array || L, e.Uint8ClampedArray = e.Uint8ClampedArray || B, e.Int16Array = e.Int16Array || M, e.Uint16Array = e.Uint16Array || j, e.Int32Array = e.Int32Array || z, e.Uint32Array = e.Uint32Array || Y, e.Float32Array = e.Float32Array || ee, e.Float64Array = e.Float64Array || R;
|
|
32961
32978
|
})(), (function() {
|
|
32962
32979
|
function U(B, M) {
|
|
32963
32980
|
return n.IsCallable(B.get) ? B.get(M) : B[M];
|
|
32964
32981
|
}
|
|
32965
|
-
var
|
|
32982
|
+
var Q = (function() {
|
|
32966
32983
|
var B = new e.Uint16Array([4660]), M = new e.Uint8Array(B.buffer);
|
|
32967
32984
|
return U(M, 0) === 18;
|
|
32968
32985
|
})(), C = function(M, j, z) {
|
|
@@ -32984,7 +33001,7 @@ function tK() {
|
|
|
32984
33001
|
var z = new e.Uint8Array(this.buffer, M, B.BYTES_PER_ELEMENT), Y = [], ee;
|
|
32985
33002
|
for (ee = 0; ee < B.BYTES_PER_ELEMENT; ee += 1)
|
|
32986
33003
|
Y.push(U(z, ee));
|
|
32987
|
-
return !!j ==
|
|
33004
|
+
return !!j == !!Q && Y.reverse(), U(new B(new e.Uint8Array(Y).buffer), 0);
|
|
32988
33005
|
};
|
|
32989
33006
|
}
|
|
32990
33007
|
C.prototype.getUint8 = N(e.Uint8Array), C.prototype.getInt8 = N(e.Int8Array), C.prototype.getUint16 = N(e.Uint16Array), C.prototype.getInt16 = N(e.Int16Array), C.prototype.getUint32 = N(e.Uint32Array), C.prototype.getInt32 = N(e.Int32Array), C.prototype.getFloat32 = N(e.Float32Array), C.prototype.getFloat64 = N(e.Float64Array);
|
|
@@ -32995,7 +33012,7 @@ function tK() {
|
|
|
32995
33012
|
var Y = new B([j]), ee = new e.Uint8Array(Y.buffer), R = [], I, W;
|
|
32996
33013
|
for (I = 0; I < B.BYTES_PER_ELEMENT; I += 1)
|
|
32997
33014
|
R.push(U(ee, I));
|
|
32998
|
-
!!z ==
|
|
33015
|
+
!!z == !!Q && R.reverse(), W = new e.Uint8Array(this.buffer, M, B.BYTES_PER_ELEMENT), W.set(R);
|
|
32999
33016
|
};
|
|
33000
33017
|
}
|
|
33001
33018
|
C.prototype.setUint8 = L(e.Uint8Array), C.prototype.setInt8 = L(e.Int8Array), C.prototype.setUint16 = L(e.Uint16Array), C.prototype.setInt16 = L(e.Int16Array), C.prototype.setUint32 = L(e.Uint32Array), C.prototype.setInt32 = L(e.Int32Array), C.prototype.setFloat32 = L(e.Float32Array), C.prototype.setFloat64 = L(e.Float64Array), e.DataView = e.DataView || C;
|
|
@@ -33517,8 +33534,8 @@ function aF() {
|
|
|
33517
33534
|
this.logger.log(i.MESSAGES.APPLICATION_START), await s.ExceptionsZone.asyncRun(async () => {
|
|
33518
33535
|
await D.scan(E), await T.createInstancesOfDependencies(), D.applyApplicationProviders();
|
|
33519
33536
|
}, V, this.autoFlushLogs);
|
|
33520
|
-
} catch (
|
|
33521
|
-
this.handleInitializationError(
|
|
33537
|
+
} catch (k) {
|
|
33538
|
+
this.handleInitializationError(k);
|
|
33522
33539
|
}
|
|
33523
33540
|
}
|
|
33524
33541
|
handleInitializationError(E) {
|