@stonecrop/beam 0.4.18 → 0.4.19
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/assets/index.css +1 -1
- package/dist/beam.js +593 -593
- package/dist/beam.js.map +1 -1
- package/dist/beam.umd.cjs +2 -2
- package/dist/beam.umd.cjs.map +1 -1
- package/package.json +1 -1
- package/src/components/ItemCount.vue +3 -3
package/dist/beam.js
CHANGED
|
@@ -235,64 +235,64 @@ function ao(i, u, o = {}) {
|
|
|
235
235
|
return n ? { stop: xt, cancel: xt, trigger: xt } : xt;
|
|
236
236
|
if (wn && !so) {
|
|
237
237
|
so = !0;
|
|
238
|
-
const
|
|
239
|
-
Array.from(a.document.body.children).forEach((A) => A.addEventListener("click", xt,
|
|
238
|
+
const v = { passive: !0 };
|
|
239
|
+
Array.from(a.document.body.children).forEach((A) => A.addEventListener("click", xt, v)), a.document.documentElement.addEventListener("click", xt, v);
|
|
240
240
|
}
|
|
241
241
|
let t = !0;
|
|
242
|
-
const s = (
|
|
242
|
+
const s = (v) => mt(l).some((A) => {
|
|
243
243
|
if (typeof A == "string")
|
|
244
|
-
return Array.from(a.document.querySelectorAll(A)).some((y) => y ===
|
|
244
|
+
return Array.from(a.document.querySelectorAll(A)).some((y) => y === v.target || v.composedPath().includes(y));
|
|
245
245
|
{
|
|
246
246
|
const y = yr(A);
|
|
247
|
-
return y && (
|
|
247
|
+
return y && (v.target === y || v.composedPath().includes(y));
|
|
248
248
|
}
|
|
249
249
|
});
|
|
250
|
-
function h(
|
|
251
|
-
const A = mt(
|
|
250
|
+
function h(v) {
|
|
251
|
+
const A = mt(v);
|
|
252
252
|
return A && A.$.subTree.shapeFlag === 16;
|
|
253
253
|
}
|
|
254
|
-
function d(
|
|
255
|
-
const y = mt(
|
|
254
|
+
function d(v, A) {
|
|
255
|
+
const y = mt(v), E = y.$.subTree && y.$.subTree.children;
|
|
256
256
|
return E == null || !Array.isArray(E) ? !1 : E.some((N) => N.el === A.target || A.composedPath().includes(N.el));
|
|
257
257
|
}
|
|
258
|
-
const p = (
|
|
258
|
+
const p = (v) => {
|
|
259
259
|
const A = yr(i);
|
|
260
|
-
if (
|
|
261
|
-
if ("detail" in
|
|
260
|
+
if (v.target != null && !(!(A instanceof Element) && h(i) && d(i, v)) && !(!A || A === v.target || v.composedPath().includes(A))) {
|
|
261
|
+
if ("detail" in v && v.detail === 0 && (t = !s(v)), !t) {
|
|
262
262
|
t = !0;
|
|
263
263
|
return;
|
|
264
264
|
}
|
|
265
|
-
u(
|
|
265
|
+
u(v);
|
|
266
266
|
}
|
|
267
267
|
};
|
|
268
268
|
let m = !1;
|
|
269
269
|
const b = [
|
|
270
|
-
Lr(a, "click", (
|
|
270
|
+
Lr(a, "click", (v) => {
|
|
271
271
|
m || (m = !0, setTimeout(() => {
|
|
272
272
|
m = !1;
|
|
273
|
-
}, 0), p(
|
|
273
|
+
}, 0), p(v));
|
|
274
274
|
}, { passive: !0, capture: r }),
|
|
275
|
-
Lr(a, "pointerdown", (
|
|
275
|
+
Lr(a, "pointerdown", (v) => {
|
|
276
276
|
const A = yr(i);
|
|
277
|
-
t = !s(
|
|
277
|
+
t = !s(v) && !!(A && !v.composedPath().includes(A));
|
|
278
278
|
}, { passive: !0 }),
|
|
279
|
-
e && Lr(a, "blur", (
|
|
279
|
+
e && Lr(a, "blur", (v) => {
|
|
280
280
|
setTimeout(() => {
|
|
281
281
|
var A;
|
|
282
282
|
const y = yr(i);
|
|
283
|
-
((A = a.document.activeElement) == null ? void 0 : A.tagName) === "IFRAME" && !(y != null && y.contains(a.document.activeElement)) && u(
|
|
283
|
+
((A = a.document.activeElement) == null ? void 0 : A.tagName) === "IFRAME" && !(y != null && y.contains(a.document.activeElement)) && u(v);
|
|
284
284
|
}, 0);
|
|
285
285
|
}, { passive: !0 })
|
|
286
|
-
].filter(Boolean),
|
|
286
|
+
].filter(Boolean), _ = () => b.forEach((v) => v());
|
|
287
287
|
return n ? {
|
|
288
|
-
stop:
|
|
288
|
+
stop: _,
|
|
289
289
|
cancel: () => {
|
|
290
290
|
t = !1;
|
|
291
291
|
},
|
|
292
|
-
trigger: (
|
|
293
|
-
t = !0, p(
|
|
292
|
+
trigger: (v) => {
|
|
293
|
+
t = !0, p(v), t = !1;
|
|
294
294
|
}
|
|
295
|
-
} :
|
|
295
|
+
} : _;
|
|
296
296
|
}
|
|
297
297
|
const an = /* @__PURE__ */ new WeakMap(), bl = {
|
|
298
298
|
mounted(i, u) {
|
|
@@ -328,7 +328,7 @@ function yl(i) {
|
|
|
328
328
|
return Yo(o) ? !1 : u.touches.length > 1 ? !0 : (u.preventDefault && u.preventDefault(), !1);
|
|
329
329
|
}
|
|
330
330
|
const un = /* @__PURE__ */ new WeakMap();
|
|
331
|
-
function
|
|
331
|
+
function vl(i, u = !1) {
|
|
332
332
|
const o = $o(u);
|
|
333
333
|
let a = null, l = "";
|
|
334
334
|
Yr(fl(i), (n) => {
|
|
@@ -366,18 +366,18 @@ function _l(i, u = !1) {
|
|
|
366
366
|
}
|
|
367
367
|
});
|
|
368
368
|
}
|
|
369
|
-
function
|
|
369
|
+
function _l() {
|
|
370
370
|
let i = !1;
|
|
371
371
|
const u = $o(!1);
|
|
372
372
|
return (o, a) => {
|
|
373
373
|
if (u.value = a.value, i)
|
|
374
374
|
return;
|
|
375
375
|
i = !0;
|
|
376
|
-
const l =
|
|
376
|
+
const l = vl(o, a.value);
|
|
377
377
|
Yr(u, (r) => l.value = r);
|
|
378
378
|
};
|
|
379
379
|
}
|
|
380
|
-
|
|
380
|
+
_l();
|
|
381
381
|
const wl = { class: "beam_filter-container" }, El = { class: "beam_filter-option-select" }, Sl = { class: "beam_filter-label" }, Al = {
|
|
382
382
|
key: 0,
|
|
383
383
|
ref: "menu",
|
|
@@ -578,7 +578,7 @@ const Jl = /* @__PURE__ */ Ge(Ql, [["render", Gl], ["__scopeId", "data-v-a38a41d
|
|
|
578
578
|
}), Go = /* @__PURE__ */ Ge(Zl, [["__scopeId", "data-v-14a5f31b"]]), eu = { class: "beam_item-count" }, tu = ["contenteditable"], ru = { key: 0 }, nu = { key: 1 }, iu = /* @__PURE__ */ Xe({
|
|
579
579
|
__name: "ItemCount",
|
|
580
580
|
props: /* @__PURE__ */ $a({
|
|
581
|
-
denominator: {},
|
|
581
|
+
denominator: { default: 0 },
|
|
582
582
|
debounce: { default: 300 },
|
|
583
583
|
editable: { default: !0 },
|
|
584
584
|
uom: { default: "" }
|
|
@@ -588,9 +588,9 @@ const Jl = /* @__PURE__ */ Ge(Ql, [["render", Gl], ["__scopeId", "data-v-a38a41d
|
|
|
588
588
|
}),
|
|
589
589
|
emits: ["update:modelValue"],
|
|
590
590
|
setup(i) {
|
|
591
|
-
const u = Ho(i, "modelValue"), o = fr(() => u.value === i.denominator), a = (e) => {
|
|
591
|
+
const u = Ho(i, "modelValue"), o = fr(() => i.denominator !== 0 && u.value === i.denominator), a = (e) => {
|
|
592
592
|
const n = Number(e.target.innerHTML) || 0;
|
|
593
|
-
u.value = Math.min(n, i.denominator);
|
|
593
|
+
u.value = i.denominator ? Math.min(n, i.denominator) : n;
|
|
594
594
|
}, l = gl((e) => a(e), i.debounce), r = async (e) => await l(e);
|
|
595
595
|
return (e, n) => (xe(), Ne("div", eu, [
|
|
596
596
|
Me("span", {
|
|
@@ -604,7 +604,7 @@ const Jl = /* @__PURE__ */ Ge(Ql, [["render", Gl], ["__scopeId", "data-v-a38a41d
|
|
|
604
604
|
e.uom ? (xe(), Ne("span", nu, " " + ft(e.uom), 1)) : kr("", !0)
|
|
605
605
|
]));
|
|
606
606
|
}
|
|
607
|
-
}), Jo = /* @__PURE__ */ Ge(iu, [["__scopeId", "data-v-
|
|
607
|
+
}), Jo = /* @__PURE__ */ Ge(iu, [["__scopeId", "data-v-fa0e6dff"]]), ou = ["href"], su = /* @__PURE__ */ Xe({
|
|
608
608
|
__name: "ListAnchor",
|
|
609
609
|
props: {
|
|
610
610
|
to: { default: "" }
|
|
@@ -733,12 +733,12 @@ const Jl = /* @__PURE__ */ Ge(Ql, [["render", Gl], ["__scopeId", "data-v-a38a41d
|
|
|
733
733
|
function yu(i) {
|
|
734
734
|
return i && i.__esModule && Object.prototype.hasOwnProperty.call(i, "default") ? i.default : i;
|
|
735
735
|
}
|
|
736
|
-
var jr = { exports: {} },
|
|
737
|
-
function
|
|
736
|
+
var jr = { exports: {} }, vu = jr.exports, lo;
|
|
737
|
+
function _u() {
|
|
738
738
|
return lo || (lo = 1, function(i, u) {
|
|
739
739
|
(function(o, a) {
|
|
740
740
|
i.exports = a();
|
|
741
|
-
})(
|
|
741
|
+
})(vu, function() {
|
|
742
742
|
var o = {
|
|
743
743
|
/**
|
|
744
744
|
*
|
|
@@ -1083,7 +1083,7 @@ function vu() {
|
|
|
1083
1083
|
});
|
|
1084
1084
|
}(jr)), jr.exports;
|
|
1085
1085
|
}
|
|
1086
|
-
var wu =
|
|
1086
|
+
var wu = _u();
|
|
1087
1087
|
const uo = /* @__PURE__ */ yu(wu), Eu = { id: "scan_input" }, Su = /* @__PURE__ */ Xe({
|
|
1088
1088
|
__name: "ScanInput",
|
|
1089
1089
|
props: {
|
|
@@ -1163,7 +1163,7 @@ var zi = Object.defineProperty, Bu = Object.getOwnPropertyDescriptor, xu = Objec
|
|
|
1163
1163
|
return i;
|
|
1164
1164
|
}, Fe = (i) => Lu(zi({}, "__esModule", { value: !0 }), i), ue = st(() => {
|
|
1165
1165
|
}), je = {};
|
|
1166
|
-
dr(je, { _debugEnd: () => ti, _debugProcess: () => ei, _events: () => mi, _eventsCount: () => bi, _exiting: () => Fn, _fatalExceptions: () => Jn, _getActiveHandles: () => is, _getActiveRequests: () => ns, _kill: () => qn, _linkedBinding: () => ts, _maxListeners: () => gi, _preload_modules: () => di, _rawDebug: () => Nn, _startProfilerIdleNotifier: () => ri, _stopProfilerIdleNotifier: () => ni, _tickCallback: () => Zn, abort: () => ai, addListener: () => yi, allowedNodeEnvironmentFlags: () => Yn, arch: () => An, argv: () => Tn, argv0: () => fi, assert: () => os, binding: () => Bn, chdir: () => Ln, config: () => Wn, cpuUsage: () =>
|
|
1166
|
+
dr(je, { _debugEnd: () => ti, _debugProcess: () => ei, _events: () => mi, _eventsCount: () => bi, _exiting: () => Fn, _fatalExceptions: () => Jn, _getActiveHandles: () => is, _getActiveRequests: () => ns, _kill: () => qn, _linkedBinding: () => ts, _maxListeners: () => gi, _preload_modules: () => di, _rawDebug: () => Nn, _startProfilerIdleNotifier: () => ri, _stopProfilerIdleNotifier: () => ni, _tickCallback: () => Zn, abort: () => ai, addListener: () => yi, allowedNodeEnvironmentFlags: () => Yn, arch: () => An, argv: () => Tn, argv0: () => fi, assert: () => os, binding: () => Bn, chdir: () => Ln, config: () => Wn, cpuUsage: () => vr, cwd: () => Mn, debugPort: () => ci, default: () => Qi, dlopen: () => rs, domain: () => Dn, emit: () => Si, emitWarning: () => Rn, env: () => In, execArgv: () => Cn, execPath: () => hi, exit: () => Kn, features: () => Gn, hasUncaughtExceptionCaptureCallback: () => ss, hrtime: () => Nr, kill: () => zn, listeners: () => ls, memoryUsage: () => Vn, moduleLoadList: () => Un, nextTick: () => Zo, off: () => _i, on: () => Pt, once: () => vi, openStdin: () => Qn, pid: () => li, platform: () => kn, ppid: () => ui, prependListener: () => Ai, prependOnceListener: () => ki, reallyExit: () => $n, release: () => jn, removeAllListeners: () => Ei, removeListener: () => wi, resourceUsage: () => Hn, setSourceMapsEnabled: () => pi, setUncaughtExceptionCaptureCallback: () => Xn, stderr: () => oi, stdin: () => si, stdout: () => ii, title: () => Sn, umask: () => xn, uptime: () => as, version: () => Pn, versions: () => On });
|
|
1167
1167
|
function Ki(i) {
|
|
1168
1168
|
throw new Error("Node.js process " + i + " is not supported by JSPM core outside of Node.js");
|
|
1169
1169
|
}
|
|
@@ -1222,7 +1222,7 @@ function Pt() {
|
|
|
1222
1222
|
function ls(i) {
|
|
1223
1223
|
return [];
|
|
1224
1224
|
}
|
|
1225
|
-
var wt, ir, tr, Er, Sn, An, kn, In, Tn, Cn, Pn, On, Rn, Bn, xn, Mn, Ln, jn, Nn, Un, Dn, Fn, Wn, $n, qn,
|
|
1225
|
+
var wt, ir, tr, Er, Sn, An, kn, In, Tn, Cn, Pn, On, Rn, Bn, xn, Mn, Ln, jn, Nn, Un, Dn, Fn, Wn, $n, qn, vr, Hn, Vn, zn, Kn, Qn, Yn, Gn, Jn, Xn, Zn, ei, ti, ri, ni, ii, oi, si, ai, li, ui, hi, ci, fi, di, pi, Mt, hn, Ur, gi, mi, bi, yi, vi, _i, wi, Ei, Si, Ai, ki, Qi, Nu = st(() => {
|
|
1226
1226
|
ue(), ce(), he(), wt = [], ir = !1, Er = -1, es.prototype.run = function() {
|
|
1227
1227
|
this.fun.apply(null, this.array);
|
|
1228
1228
|
}, Sn = "browser", An = "x64", kn = "browser", In = { PATH: "/usr/bin", LANG: navigator.language + ".UTF-8", PWD: "/", HOME: "/home", TMP: "/tmp" }, Tn = ["/usr/bin/node"], Cn = [], Pn = "v16.8.0", On = {}, Rn = function(i, u) {
|
|
@@ -1234,12 +1234,12 @@ var wt, ir, tr, Er, Sn, An, kn, In, Tn, Cn, Pn, On, Rn, Bn, xn, Mn, Ln, jn, Nn,
|
|
|
1234
1234
|
}, Mn = function() {
|
|
1235
1235
|
return "/";
|
|
1236
1236
|
}, Ln = function(i) {
|
|
1237
|
-
}, jn = { name: "node", sourceUrl: "", headersUrl: "", libUrl: "" }, Nn = it, Un = [], Dn = {}, Fn = !1, Wn = {}, $n = it, qn = it,
|
|
1237
|
+
}, jn = { name: "node", sourceUrl: "", headersUrl: "", libUrl: "" }, Nn = it, Un = [], Dn = {}, Fn = !1, Wn = {}, $n = it, qn = it, vr = function() {
|
|
1238
1238
|
return {};
|
|
1239
|
-
}, Hn =
|
|
1239
|
+
}, Hn = vr, Vn = vr, zn = it, Kn = it, Qn = it, Yn = {}, Gn = { inspector: !1, debug: !1, uv: !1, ipv6: !1, tls_alpn: !1, tls_sni: !1, tls_ocsp: !1, tls: !1, cached_builtins: !0 }, Jn = it, Xn = it, Zn = it, ei = it, ti = it, ri = it, ni = it, ii = void 0, oi = void 0, si = void 0, ai = it, li = 2, ui = 1, hi = "/bin/usr/node", ci = 9229, fi = "node", di = [], pi = it, Mt = { now: typeof performance < "u" ? performance.now.bind(performance) : void 0, timing: typeof performance < "u" ? performance.timing : void 0 }, Mt.now === void 0 && (hn = Date.now(), Mt.timing && Mt.timing.navigationStart && (hn = Mt.timing.navigationStart), Mt.now = () => Date.now() - hn), Ur = 1e9, Nr.bigint = function(i) {
|
|
1240
1240
|
var u = Nr(i);
|
|
1241
1241
|
return typeof BigInt > "u" ? u[0] * Ur + u[1] : BigInt(u[0] * Ur) + BigInt(u[1]);
|
|
1242
|
-
}, gi = 10, mi = {}, bi = 0, yi = Pt,
|
|
1242
|
+
}, gi = 10, mi = {}, bi = 0, yi = Pt, vi = Pt, _i = Pt, wi = Pt, Ei = Pt, Si = it, Ai = Pt, ki = Pt, Qi = { version: Pn, versions: On, arch: An, platform: kn, release: jn, _rawDebug: Nn, moduleLoadList: Un, binding: Bn, _linkedBinding: ts, _events: mi, _eventsCount: bi, _maxListeners: gi, on: Pt, addListener: yi, once: vi, off: _i, removeListener: wi, removeAllListeners: Ei, emit: Si, prependListener: Ai, prependOnceListener: ki, listeners: ls, domain: Dn, _exiting: Fn, config: Wn, dlopen: rs, uptime: as, _getActiveRequests: ns, _getActiveHandles: is, reallyExit: $n, _kill: qn, cpuUsage: vr, resourceUsage: Hn, memoryUsage: Vn, kill: zn, exit: Kn, openStdin: Qn, allowedNodeEnvironmentFlags: Yn, assert: os, features: Gn, _fatalExceptions: Jn, setUncaughtExceptionCaptureCallback: Xn, hasUncaughtExceptionCaptureCallback: ss, emitWarning: Rn, nextTick: Zo, _tickCallback: Zn, _debugProcess: ei, _debugEnd: ti, _startProfilerIdleNotifier: ri, _stopProfilerIdleNotifier: ni, stdout: ii, stdin: si, stderr: oi, abort: ai, umask: xn, chdir: Ln, cwd: Mn, env: In, title: Sn, argv: Tn, execArgv: Cn, pid: li, ppid: ui, execPath: hi, debugPort: ci, hrtime: Nr, argv0: fi, _preload_modules: di, setSourceMapsEnabled: pi };
|
|
1243
1243
|
}), he = st(() => {
|
|
1244
1244
|
Nu();
|
|
1245
1245
|
}), et = {};
|
|
@@ -1252,38 +1252,38 @@ function Uu() {
|
|
|
1252
1252
|
function e(m) {
|
|
1253
1253
|
var b = m.length;
|
|
1254
1254
|
if (b % 4 > 0) throw new Error("Invalid string. Length must be a multiple of 4");
|
|
1255
|
-
var
|
|
1256
|
-
|
|
1257
|
-
var
|
|
1258
|
-
return [
|
|
1255
|
+
var _ = m.indexOf("=");
|
|
1256
|
+
_ === -1 && (_ = b);
|
|
1257
|
+
var v = _ === b ? 0 : 4 - _ % 4;
|
|
1258
|
+
return [_, v];
|
|
1259
1259
|
}
|
|
1260
1260
|
function n(m) {
|
|
1261
|
-
var b = e(m),
|
|
1262
|
-
return (
|
|
1261
|
+
var b = e(m), _ = b[0], v = b[1];
|
|
1262
|
+
return (_ + v) * 3 / 4 - v;
|
|
1263
1263
|
}
|
|
1264
|
-
function t(m, b,
|
|
1265
|
-
return (b +
|
|
1264
|
+
function t(m, b, _) {
|
|
1265
|
+
return (b + _) * 3 / 4 - _;
|
|
1266
1266
|
}
|
|
1267
1267
|
function s(m) {
|
|
1268
|
-
var b,
|
|
1268
|
+
var b, _ = e(m), v = _[0], A = _[1], y = new o(t(m, v, A)), E = 0, N = A > 0 ? v - 4 : v, x;
|
|
1269
1269
|
for (x = 0; x < N; x += 4) b = u[m.charCodeAt(x)] << 18 | u[m.charCodeAt(x + 1)] << 12 | u[m.charCodeAt(x + 2)] << 6 | u[m.charCodeAt(x + 3)], y[E++] = b >> 16 & 255, y[E++] = b >> 8 & 255, y[E++] = b & 255;
|
|
1270
1270
|
return A === 2 && (b = u[m.charCodeAt(x)] << 2 | u[m.charCodeAt(x + 1)] >> 4, y[E++] = b & 255), A === 1 && (b = u[m.charCodeAt(x)] << 10 | u[m.charCodeAt(x + 1)] << 4 | u[m.charCodeAt(x + 2)] >> 2, y[E++] = b >> 8 & 255, y[E++] = b & 255), y;
|
|
1271
1271
|
}
|
|
1272
1272
|
function h(m) {
|
|
1273
1273
|
return i[m >> 18 & 63] + i[m >> 12 & 63] + i[m >> 6 & 63] + i[m & 63];
|
|
1274
1274
|
}
|
|
1275
|
-
function d(m, b,
|
|
1276
|
-
for (var
|
|
1275
|
+
function d(m, b, _) {
|
|
1276
|
+
for (var v, A = [], y = b; y < _; y += 3) v = (m[y] << 16 & 16711680) + (m[y + 1] << 8 & 65280) + (m[y + 2] & 255), A.push(h(v));
|
|
1277
1277
|
return A.join("");
|
|
1278
1278
|
}
|
|
1279
1279
|
function p(m) {
|
|
1280
|
-
for (var b,
|
|
1281
|
-
return
|
|
1280
|
+
for (var b, _ = m.length, v = _ % 3, A = [], y = 16383, E = 0, N = _ - v; E < N; E += y) A.push(d(m, E, E + y > N ? N : E + y));
|
|
1281
|
+
return v === 1 ? (b = m[_ - 1], A.push(i[b >> 2] + i[b << 4 & 63] + "==")) : v === 2 && (b = (m[_ - 2] << 8) + m[_ - 1], A.push(i[b >> 10] + i[b >> 4 & 63] + i[b << 2 & 63] + "=")), A.join("");
|
|
1282
1282
|
}
|
|
1283
1283
|
return cr;
|
|
1284
1284
|
}
|
|
1285
1285
|
function Du() {
|
|
1286
|
-
return Ti ?
|
|
1286
|
+
return Ti ? _r : (Ti = !0, _r.read = function(i, u, o, a, l) {
|
|
1287
1287
|
var r, e, n = l * 8 - a - 1, t = (1 << n) - 1, s = t >> 1, h = -7, d = o ? l - 1 : 0, p = o ? -1 : 1, m = i[u + d];
|
|
1288
1288
|
for (d += p, r = m & (1 << -h) - 1, m >>= -h, h += n; h > 0; r = r * 256 + i[u + d], d += p, h -= 8) ;
|
|
1289
1289
|
for (e = r & (1 << -h) - 1, r >>= -h, h += a; h > 0; e = e * 256 + i[u + d], d += p, h -= 8) ;
|
|
@@ -1293,12 +1293,12 @@ function Du() {
|
|
|
1293
1293
|
e = e + Math.pow(2, a), r = r - s;
|
|
1294
1294
|
}
|
|
1295
1295
|
return (m ? -1 : 1) * e * Math.pow(2, r - a);
|
|
1296
|
-
},
|
|
1297
|
-
var e, n, t, s = r * 8 - l - 1, h = (1 << s) - 1, d = h >> 1, p = l === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, m = a ? 0 : r - 1, b = a ? 1 : -1,
|
|
1296
|
+
}, _r.write = function(i, u, o, a, l, r) {
|
|
1297
|
+
var e, n, t, s = r * 8 - l - 1, h = (1 << s) - 1, d = h >> 1, p = l === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, m = a ? 0 : r - 1, b = a ? 1 : -1, _ = u < 0 || u === 0 && 1 / u < 0 ? 1 : 0;
|
|
1298
1298
|
for (u = Math.abs(u), isNaN(u) || u === 1 / 0 ? (n = isNaN(u) ? 1 : 0, e = h) : (e = Math.floor(Math.log(u) / Math.LN2), u * (t = Math.pow(2, -e)) < 1 && (e--, t *= 2), e + d >= 1 ? u += p / t : u += p * Math.pow(2, 1 - d), u * t >= 2 && (e++, t /= 2), e + d >= h ? (n = 0, e = h) : e + d >= 1 ? (n = (u * t - 1) * Math.pow(2, l), e = e + d) : (n = u * Math.pow(2, d - 1) * Math.pow(2, l), e = 0)); l >= 8; i[o + m] = n & 255, m += b, n /= 256, l -= 8) ;
|
|
1299
1299
|
for (e = e << l | n, s += l; s > 0; i[o + m] = e & 255, m += b, e /= 256, s -= 8) ;
|
|
1300
|
-
i[o + m - b] |=
|
|
1301
|
-
},
|
|
1300
|
+
i[o + m - b] |= _ * 128;
|
|
1301
|
+
}, _r);
|
|
1302
1302
|
}
|
|
1303
1303
|
function Fu() {
|
|
1304
1304
|
if (Ci) return Wt;
|
|
@@ -1343,7 +1343,7 @@ function Fu() {
|
|
|
1343
1343
|
if (typeof c == "number") throw new TypeError('The "value" argument must not be of type number. Received type number');
|
|
1344
1344
|
let w = c.valueOf && c.valueOf();
|
|
1345
1345
|
if (w != null && w !== c) return e.from(w, f, g);
|
|
1346
|
-
let I =
|
|
1346
|
+
let I = _(c);
|
|
1347
1347
|
if (I) return I;
|
|
1348
1348
|
if (typeof Symbol < "u" && Symbol.toPrimitive != null && typeof c[Symbol.toPrimitive] == "function") return e.from(c[Symbol.toPrimitive]("string"), f, g);
|
|
1349
1349
|
throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof c);
|
|
@@ -1362,7 +1362,7 @@ function Fu() {
|
|
|
1362
1362
|
return s(c, f, g);
|
|
1363
1363
|
};
|
|
1364
1364
|
function h(c) {
|
|
1365
|
-
return t(c), r(c < 0 ? 0 :
|
|
1365
|
+
return t(c), r(c < 0 ? 0 : v(c) | 0);
|
|
1366
1366
|
}
|
|
1367
1367
|
e.allocUnsafe = function(c) {
|
|
1368
1368
|
return h(c);
|
|
@@ -1375,7 +1375,7 @@ function Fu() {
|
|
|
1375
1375
|
return I !== g && (w = w.slice(0, I)), w;
|
|
1376
1376
|
}
|
|
1377
1377
|
function p(c) {
|
|
1378
|
-
let f = c.length < 0 ? 0 :
|
|
1378
|
+
let f = c.length < 0 ? 0 : v(c.length) | 0, g = r(f);
|
|
1379
1379
|
for (let w = 0; w < f; w += 1) g[w] = c[w] & 255;
|
|
1380
1380
|
return g;
|
|
1381
1381
|
}
|
|
@@ -1392,15 +1392,15 @@ function Fu() {
|
|
|
1392
1392
|
let w;
|
|
1393
1393
|
return f === void 0 && g === void 0 ? w = new Uint8Array(c) : g === void 0 ? w = new Uint8Array(c, f) : w = new Uint8Array(c, f, g), Object.setPrototypeOf(w, e.prototype), w;
|
|
1394
1394
|
}
|
|
1395
|
-
function
|
|
1395
|
+
function _(c) {
|
|
1396
1396
|
if (e.isBuffer(c)) {
|
|
1397
|
-
let f =
|
|
1397
|
+
let f = v(c.length) | 0, g = r(f);
|
|
1398
1398
|
return g.length === 0 || c.copy(g, 0, 0, f), g;
|
|
1399
1399
|
}
|
|
1400
1400
|
if (c.length !== void 0) return typeof c.length != "number" || oe(c.length) ? r(0) : p(c);
|
|
1401
1401
|
if (c.type === "Buffer" && Array.isArray(c.data)) return p(c.data);
|
|
1402
1402
|
}
|
|
1403
|
-
function
|
|
1403
|
+
function v(c) {
|
|
1404
1404
|
if (c >= a) throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x" + a.toString(16) + " bytes");
|
|
1405
1405
|
return c | 0;
|
|
1406
1406
|
}
|
|
@@ -1500,7 +1500,7 @@ function Fu() {
|
|
|
1500
1500
|
case "ucs-2":
|
|
1501
1501
|
case "utf16le":
|
|
1502
1502
|
case "utf-16le":
|
|
1503
|
-
return
|
|
1503
|
+
return _e(this, f, g);
|
|
1504
1504
|
default:
|
|
1505
1505
|
if (w) throw new TypeError("Unknown encoding: " + c);
|
|
1506
1506
|
c = (c + "").toLowerCase(), w = !0;
|
|
@@ -1706,7 +1706,7 @@ function Fu() {
|
|
|
1706
1706
|
for (let j = f; j < g; ++j) I += ye[c[j]];
|
|
1707
1707
|
return I;
|
|
1708
1708
|
}
|
|
1709
|
-
function
|
|
1709
|
+
function _e(c, f, g) {
|
|
1710
1710
|
let w = c.slice(f, g), I = "";
|
|
1711
1711
|
for (let j = 0; j < w.length - 1; j += 2) I += String.fromCharCode(w[j] + w[j + 1] * 256);
|
|
1712
1712
|
return I;
|
|
@@ -2058,8 +2058,8 @@ function Fu() {
|
|
|
2058
2058
|
}
|
|
2059
2059
|
return Wt;
|
|
2060
2060
|
}
|
|
2061
|
-
var cr, Ii,
|
|
2062
|
-
ue(), ce(), he(), cr = {}, Ii = !1,
|
|
2061
|
+
var cr, Ii, _r, Ti, Wt, Ci, Ot, Vr, us, hs, tt = st(() => {
|
|
2062
|
+
ue(), ce(), he(), cr = {}, Ii = !1, _r = {}, Ti = !1, Wt = {}, Ci = !1, Ot = Fu(), Ot.Buffer, Ot.SlowBuffer, Ot.INSPECT_MAX_BYTES, Ot.kMaxLength, Vr = Ot.Buffer, us = Ot.INSPECT_MAX_BYTES, hs = Ot.kMaxLength;
|
|
2063
2063
|
}), ce = st(() => {
|
|
2064
2064
|
tt();
|
|
2065
2065
|
}), Wu = be((i) => {
|
|
@@ -2195,11 +2195,11 @@ var cr, Ii, vr, Ti, Wt, Ci, Ot, Vr, us, hs, tt = st(() => {
|
|
|
2195
2195
|
return `${this.name} [${y}]: ${this.message}`;
|
|
2196
2196
|
}, writable: !0, enumerable: !1, configurable: !0 } }), x.prototype.code = y, x.prototype[e] = !0, h[y] = x;
|
|
2197
2197
|
}
|
|
2198
|
-
function
|
|
2198
|
+
function _(y) {
|
|
2199
2199
|
let E = s + y.name;
|
|
2200
2200
|
return Object.defineProperty(y, "name", { value: E }), y;
|
|
2201
2201
|
}
|
|
2202
|
-
function
|
|
2202
|
+
function v(y, E) {
|
|
2203
2203
|
if (y && E && y !== E) {
|
|
2204
2204
|
if (Array.isArray(E.errors)) return E.errors.push(y), E;
|
|
2205
2205
|
let N = new r([E, y], E.message);
|
|
@@ -2316,7 +2316,7 @@ var cr, Ii, vr, Ti, Wt, Ci, Ot, Vr, us, hs, tt = st(() => {
|
|
|
2316
2316
|
(N > k || N < -k) && (x = p(x)), x += "n";
|
|
2317
2317
|
} else x = a(N);
|
|
2318
2318
|
return `The value of "${y}" is out of range. It must be ${E}. Received ${x}`;
|
|
2319
|
-
}, RangeError), b("ERR_MULTIPLE_CALLBACK", "Callback called multiple times", Error), b("ERR_METHOD_NOT_IMPLEMENTED", "The %s method is not implemented", Error), b("ERR_STREAM_ALREADY_FINISHED", "Cannot call %s after a stream was finished", Error), b("ERR_STREAM_CANNOT_PIPE", "Cannot pipe, not readable", Error), b("ERR_STREAM_DESTROYED", "Cannot call %s after a stream was destroyed", Error), b("ERR_STREAM_NULL_VALUES", "May not write null values to stream", TypeError), b("ERR_STREAM_PREMATURE_CLOSE", "Premature close", Error), b("ERR_STREAM_PUSH_AFTER_EOF", "stream.push() after EOF", Error), b("ERR_STREAM_UNSHIFT_AFTER_END_EVENT", "stream.unshift() after end event", Error), b("ERR_STREAM_WRITE_AFTER_END", "write after end", Error), b("ERR_UNKNOWN_ENCODING", "Unknown encoding: %s", TypeError), u.exports = { AbortError: A, aggregateTwoErrors: v
|
|
2319
|
+
}, RangeError), b("ERR_MULTIPLE_CALLBACK", "Callback called multiple times", Error), b("ERR_METHOD_NOT_IMPLEMENTED", "The %s method is not implemented", Error), b("ERR_STREAM_ALREADY_FINISHED", "Cannot call %s after a stream was finished", Error), b("ERR_STREAM_CANNOT_PIPE", "Cannot pipe, not readable", Error), b("ERR_STREAM_DESTROYED", "Cannot call %s after a stream was destroyed", Error), b("ERR_STREAM_NULL_VALUES", "May not write null values to stream", TypeError), b("ERR_STREAM_PREMATURE_CLOSE", "Premature close", Error), b("ERR_STREAM_PUSH_AFTER_EOF", "stream.push() after EOF", Error), b("ERR_STREAM_UNSHIFT_AFTER_END_EVENT", "stream.unshift() after end event", Error), b("ERR_STREAM_WRITE_AFTER_END", "write after end", Error), b("ERR_UNKNOWN_ENCODING", "Unknown encoding: %s", TypeError), u.exports = { AbortError: A, aggregateTwoErrors: _(v), hideStackFrames: _, codes: h };
|
|
2320
2320
|
}), Ir = be((i, u) => {
|
|
2321
2321
|
ue(), ce(), he();
|
|
2322
2322
|
var { AbortController: o, AbortSignal: a } = typeof self < "u" ? self : typeof window < "u" ? window : void 0;
|
|
@@ -2457,8 +2457,8 @@ var go, mo, Jt, cn, fn, dn, ct, bo = st(() => {
|
|
|
2457
2457
|
return this._eventsCount > 0 ? mo(this._events) : [];
|
|
2458
2458
|
}, ct = go, ct.EventEmitter, ct.defaultMaxListeners, ct.init, ct.listenerCount, ct.EventEmitter, ct.defaultMaxListeners, ct.init, ct.listenerCount;
|
|
2459
2459
|
}), Kt = {};
|
|
2460
|
-
dr(Kt, { EventEmitter: () => ps, default: () => ct, defaultMaxListeners: () => gs, init: () => ms, listenerCount: () => bs, on: () => ys, once: () =>
|
|
2461
|
-
var ps, gs, ms, bs, ys,
|
|
2460
|
+
dr(Kt, { EventEmitter: () => ps, default: () => ct, defaultMaxListeners: () => gs, init: () => ms, listenerCount: () => bs, on: () => ys, once: () => vs });
|
|
2461
|
+
var ps, gs, ms, bs, ys, vs, ar = st(() => {
|
|
2462
2462
|
ue(), ce(), he(), bo(), bo(), ct.once = function(i, u) {
|
|
2463
2463
|
return new Promise((o, a) => {
|
|
2464
2464
|
function l(...e) {
|
|
@@ -2497,64 +2497,64 @@ var ps, gs, ms, bs, ys, _s, ar = st(() => {
|
|
|
2497
2497
|
let h = a.shift();
|
|
2498
2498
|
h ? h.reject(s) : l = s, e.return();
|
|
2499
2499
|
}
|
|
2500
|
-
}, { EventEmitter: ps, defaultMaxListeners: gs, init: ms, listenerCount: bs, on: ys, once:
|
|
2500
|
+
}, { EventEmitter: ps, defaultMaxListeners: gs, init: ms, listenerCount: bs, on: ys, once: vs } = ct;
|
|
2501
2501
|
}), ut = be((i, u) => {
|
|
2502
2502
|
ue(), ce(), he();
|
|
2503
2503
|
var o = (tt(), Fe(et)), { format: a, inspect: l } = cs(), { codes: { ERR_INVALID_ARG_TYPE: r } } = at(), { kResistStopPropagation: e, AggregateError: n, SymbolDispose: t } = Qe(), s = globalThis.AbortSignal || Ir().AbortSignal, h = globalThis.AbortController || Ir().AbortController, d = Object.getPrototypeOf(async function() {
|
|
2504
|
-
}).constructor, p = globalThis.Blob || o.Blob, m = typeof p < "u" ? function(
|
|
2505
|
-
return
|
|
2506
|
-
} : function(
|
|
2504
|
+
}).constructor, p = globalThis.Blob || o.Blob, m = typeof p < "u" ? function(v) {
|
|
2505
|
+
return v instanceof p;
|
|
2506
|
+
} : function(v) {
|
|
2507
2507
|
return !1;
|
|
2508
|
-
}, b = (
|
|
2509
|
-
if (
|
|
2510
|
-
},
|
|
2511
|
-
if (typeof
|
|
2508
|
+
}, b = (v, A) => {
|
|
2509
|
+
if (v !== void 0 && (v === null || typeof v != "object" || !("aborted" in v))) throw new r(A, "AbortSignal", v);
|
|
2510
|
+
}, _ = (v, A) => {
|
|
2511
|
+
if (typeof v != "function") throw new r(A, "Function", v);
|
|
2512
2512
|
};
|
|
2513
|
-
u.exports = { AggregateError: n, kEmptyObject: Object.freeze({}), once(
|
|
2513
|
+
u.exports = { AggregateError: n, kEmptyObject: Object.freeze({}), once(v) {
|
|
2514
2514
|
let A = !1;
|
|
2515
2515
|
return function(...y) {
|
|
2516
|
-
A || (A = !0,
|
|
2516
|
+
A || (A = !0, v.apply(this, y));
|
|
2517
2517
|
};
|
|
2518
2518
|
}, createDeferredPromise: function() {
|
|
2519
|
-
let
|
|
2519
|
+
let v, A;
|
|
2520
2520
|
return { promise: new Promise((y, E) => {
|
|
2521
|
-
|
|
2522
|
-
}), resolve:
|
|
2523
|
-
}, promisify(
|
|
2521
|
+
v = y, A = E;
|
|
2522
|
+
}), resolve: v, reject: A };
|
|
2523
|
+
}, promisify(v) {
|
|
2524
2524
|
return new Promise((A, y) => {
|
|
2525
|
-
|
|
2525
|
+
v((E, ...N) => E ? y(E) : A(...N));
|
|
2526
2526
|
});
|
|
2527
2527
|
}, debuglog() {
|
|
2528
2528
|
return function() {
|
|
2529
2529
|
};
|
|
2530
|
-
}, format: a, inspect: l, types: { isAsyncFunction(
|
|
2531
|
-
return
|
|
2532
|
-
}, isArrayBufferView(
|
|
2533
|
-
return ArrayBuffer.isView(
|
|
2534
|
-
} }, isBlob: m, deprecate(
|
|
2535
|
-
return
|
|
2536
|
-
}, addAbortListener: (ar(), Fe(Kt)).addAbortListener || function(
|
|
2537
|
-
if (
|
|
2538
|
-
b(
|
|
2530
|
+
}, format: a, inspect: l, types: { isAsyncFunction(v) {
|
|
2531
|
+
return v instanceof d;
|
|
2532
|
+
}, isArrayBufferView(v) {
|
|
2533
|
+
return ArrayBuffer.isView(v);
|
|
2534
|
+
} }, isBlob: m, deprecate(v, A) {
|
|
2535
|
+
return v;
|
|
2536
|
+
}, addAbortListener: (ar(), Fe(Kt)).addAbortListener || function(v, A) {
|
|
2537
|
+
if (v === void 0) throw new r("signal", "AbortSignal", v);
|
|
2538
|
+
b(v, "signal"), _(A, "listener");
|
|
2539
2539
|
let y;
|
|
2540
|
-
return
|
|
2541
|
-
|
|
2540
|
+
return v.aborted ? queueMicrotask(() => A()) : (v.addEventListener("abort", A, { __proto__: null, once: !0, [e]: !0 }), y = () => {
|
|
2541
|
+
v.removeEventListener("abort", A);
|
|
2542
2542
|
}), { __proto__: null, [t]() {
|
|
2543
2543
|
var E;
|
|
2544
2544
|
(E = y) === null || E === void 0 || E();
|
|
2545
2545
|
} };
|
|
2546
|
-
}, AbortSignalAny: s.any || function(
|
|
2547
|
-
if (
|
|
2546
|
+
}, AbortSignalAny: s.any || function(v) {
|
|
2547
|
+
if (v.length === 1) return v[0];
|
|
2548
2548
|
let A = new h(), y = () => A.abort();
|
|
2549
|
-
return
|
|
2549
|
+
return v.forEach((E) => {
|
|
2550
2550
|
b(E, "signals"), E.addEventListener("abort", y, { once: !0 });
|
|
2551
2551
|
}), A.signal.addEventListener("abort", () => {
|
|
2552
|
-
|
|
2552
|
+
v.forEach((E) => E.removeEventListener("abort", y));
|
|
2553
2553
|
}, { once: !0 }), A.signal;
|
|
2554
2554
|
} }, u.exports.promisify.custom = Symbol.for("nodejs.util.promisify.custom");
|
|
2555
2555
|
}), Cr = be((i, u) => {
|
|
2556
2556
|
ue(), ce(), he();
|
|
2557
|
-
var { ArrayIsArray: o, ArrayPrototypeIncludes: a, ArrayPrototypeJoin: l, ArrayPrototypeMap: r, NumberIsInteger: e, NumberIsNaN: n, NumberMAX_SAFE_INTEGER: t, NumberMIN_SAFE_INTEGER: s, NumberParseInt: h, ObjectPrototypeHasOwnProperty: d, RegExpPrototypeExec: p, String: m, StringPrototypeToUpperCase: b, StringPrototypeTrim:
|
|
2557
|
+
var { ArrayIsArray: o, ArrayPrototypeIncludes: a, ArrayPrototypeJoin: l, ArrayPrototypeMap: r, NumberIsInteger: e, NumberIsNaN: n, NumberMAX_SAFE_INTEGER: t, NumberMIN_SAFE_INTEGER: s, NumberParseInt: h, ObjectPrototypeHasOwnProperty: d, RegExpPrototypeExec: p, String: m, StringPrototypeToUpperCase: b, StringPrototypeTrim: _ } = Qe(), { hideStackFrames: v, codes: { ERR_SOCKET_BAD_PORT: A, ERR_INVALID_ARG_TYPE: y, ERR_INVALID_ARG_VALUE: E, ERR_OUT_OF_RANGE: N, ERR_UNKNOWN_SIGNAL: x } } = at(), { normalizeEncoding: k } = ut(), { isAsyncFunction: T, isArrayBufferView: M } = ut().types, G = {};
|
|
2558
2558
|
function X(F) {
|
|
2559
2559
|
return F === (F | 0);
|
|
2560
2560
|
}
|
|
@@ -2569,15 +2569,15 @@ var ps, gs, ms, bs, ys, _s, ar = st(() => {
|
|
|
2569
2569
|
}
|
|
2570
2570
|
return de(F, oe), F;
|
|
2571
2571
|
}
|
|
2572
|
-
var W =
|
|
2572
|
+
var W = v((F, oe, ye = s, ee = t) => {
|
|
2573
2573
|
if (typeof F != "number") throw new y(oe, "number", F);
|
|
2574
2574
|
if (!e(F)) throw new N(oe, "an integer", F);
|
|
2575
2575
|
if (F < ye || F > ee) throw new N(oe, `>= ${ye} && <= ${ee}`, F);
|
|
2576
|
-
}), me =
|
|
2576
|
+
}), me = v((F, oe, ye = -2147483648, ee = 2147483647) => {
|
|
2577
2577
|
if (typeof F != "number") throw new y(oe, "number", F);
|
|
2578
2578
|
if (!e(F)) throw new N(oe, "an integer", F);
|
|
2579
2579
|
if (F < ye || F > ee) throw new N(oe, `>= ${ye} && <= ${ee}`, F);
|
|
2580
|
-
}), de =
|
|
2580
|
+
}), de = v((F, oe, ye = !1) => {
|
|
2581
2581
|
if (typeof F != "number") throw new y(oe, "number", F);
|
|
2582
2582
|
if (!e(F)) throw new N(oe, "an integer", F);
|
|
2583
2583
|
let ee = ye ? 1 : 0, Pe = 4294967295;
|
|
@@ -2586,11 +2586,11 @@ var ps, gs, ms, bs, ys, _s, ar = st(() => {
|
|
|
2586
2586
|
function ge(F, oe) {
|
|
2587
2587
|
if (typeof F != "string") throw new y(oe, "string", F);
|
|
2588
2588
|
}
|
|
2589
|
-
function
|
|
2589
|
+
function _e(F, oe, ye = void 0, ee) {
|
|
2590
2590
|
if (typeof F != "number") throw new y(oe, "number", F);
|
|
2591
2591
|
if (ye != null && F < ye || ee != null && F > ee || (ye != null || ee != null) && n(F)) throw new N(oe, `${ye != null ? `>= ${ye}` : ""}${ye != null && ee != null ? " && " : ""}${ee != null ? `<= ${ee}` : ""}`, F);
|
|
2592
2592
|
}
|
|
2593
|
-
var K =
|
|
2593
|
+
var K = v((F, oe, ye) => {
|
|
2594
2594
|
if (!a(ye, F)) {
|
|
2595
2595
|
let ee = "must be one of: " + l(r(ye, (Pe) => typeof Pe == "string" ? `'${Pe}'` : m(Pe)), ", ");
|
|
2596
2596
|
throw new E(oe, F, ee);
|
|
@@ -2602,12 +2602,12 @@ var ps, gs, ms, bs, ys, _s, ar = st(() => {
|
|
|
2602
2602
|
function R(F, oe, ye) {
|
|
2603
2603
|
return F == null || !d(F, oe) ? ye : F[oe];
|
|
2604
2604
|
}
|
|
2605
|
-
var re =
|
|
2605
|
+
var re = v((F, oe, ye = null) => {
|
|
2606
2606
|
let ee = R(ye, "allowArray", !1), Pe = R(ye, "allowFunction", !1);
|
|
2607
2607
|
if (!R(ye, "nullable", !1) && F === null || !ee && o(F) || typeof F != "object" && (!Pe || typeof F != "function")) throw new y(oe, "Object", F);
|
|
2608
|
-
}), pe =
|
|
2608
|
+
}), pe = v((F, oe) => {
|
|
2609
2609
|
if (F != null && typeof F != "object" && typeof F != "function") throw new y(oe, "a dictionary", F);
|
|
2610
|
-
}), U =
|
|
2610
|
+
}), U = v((F, oe, ye = 0) => {
|
|
2611
2611
|
if (!o(F)) throw new y(oe, "Array", F);
|
|
2612
2612
|
if (F.length < ye) {
|
|
2613
2613
|
let ee = `must be longer than ${ye}`;
|
|
@@ -2633,7 +2633,7 @@ var ps, gs, ms, bs, ys, _s, ar = st(() => {
|
|
|
2633
2633
|
function Z(F, oe = "signal") {
|
|
2634
2634
|
if (ge(F, oe), G[F] === void 0) throw G[b(F)] !== void 0 ? new x(F + " (signals must use all capital letters)") : new x(F);
|
|
2635
2635
|
}
|
|
2636
|
-
var $ =
|
|
2636
|
+
var $ = v((F, oe = "buffer") => {
|
|
2637
2637
|
if (!M(F)) throw new y(oe, ["Buffer", "TypedArray", "DataView"], F);
|
|
2638
2638
|
});
|
|
2639
2639
|
function q(F, oe) {
|
|
@@ -2641,16 +2641,16 @@ var ps, gs, ms, bs, ys, _s, ar = st(() => {
|
|
|
2641
2641
|
if (ye === "hex" && ee % 2 !== 0) throw new E("encoding", oe, `is invalid for data of length ${ee}`);
|
|
2642
2642
|
}
|
|
2643
2643
|
function H(F, oe = "Port", ye = !0) {
|
|
2644
|
-
if (typeof F != "number" && typeof F != "string" || typeof F == "string" &&
|
|
2644
|
+
if (typeof F != "number" && typeof F != "string" || typeof F == "string" && _(F).length === 0 || +F !== +F >>> 0 || F > 65535 || F === 0 && !ye) throw new A(oe, F, ye);
|
|
2645
2645
|
return F | 0;
|
|
2646
2646
|
}
|
|
2647
|
-
var se =
|
|
2647
|
+
var se = v((F, oe) => {
|
|
2648
2648
|
if (F !== void 0 && (F === null || typeof F != "object" || !("aborted" in F))) throw new y(oe, "AbortSignal", F);
|
|
2649
|
-
}), ne =
|
|
2649
|
+
}), ne = v((F, oe) => {
|
|
2650
2650
|
if (typeof F != "function") throw new y(oe, "Function", F);
|
|
2651
|
-
}), B =
|
|
2651
|
+
}), B = v((F, oe) => {
|
|
2652
2652
|
if (typeof F != "function" || T(F)) throw new y(oe, "Function", F);
|
|
2653
|
-
}), D =
|
|
2653
|
+
}), D = v((F, oe) => {
|
|
2654
2654
|
if (F !== void 0) throw new y(oe, "undefined", F);
|
|
2655
2655
|
});
|
|
2656
2656
|
function Y(F, oe, ye) {
|
|
@@ -2673,7 +2673,7 @@ var ps, gs, ms, bs, ys, _s, ar = st(() => {
|
|
|
2673
2673
|
}
|
|
2674
2674
|
throw new E("hints", F, 'must be an array or string of format "</styles.css>; rel=preload; as=style"');
|
|
2675
2675
|
}
|
|
2676
|
-
u.exports = { isInt32: X, isUint32: ae, parseFileMode: J, validateArray: U, validateStringArray: Ae, validateBooleanArray: V, validateAbortSignalArray: L, validateBoolean: fe, validateBuffer: $, validateDictionary: pe, validateEncoding: q, validateFunction: ne, validateInt32: me, validateInteger: W, validateNumber:
|
|
2676
|
+
u.exports = { isInt32: X, isUint32: ae, parseFileMode: J, validateArray: U, validateStringArray: Ae, validateBooleanArray: V, validateAbortSignalArray: L, validateBoolean: fe, validateBuffer: $, validateDictionary: pe, validateEncoding: q, validateFunction: ne, validateInt32: me, validateInteger: W, validateNumber: _e, validateObject: re, validateOneOf: K, validatePlainFunction: B, validatePort: H, validateSignalName: Z, validateString: ge, validateUint32: de, validateUndefined: D, validateUnion: Y, validateAbortSignal: se, validateLinkHeaderValue: le };
|
|
2677
2677
|
}), lr = be((i, u) => {
|
|
2678
2678
|
ue(), ce(), he();
|
|
2679
2679
|
var o = u.exports = {}, a, l;
|
|
@@ -2739,17 +2739,17 @@ var ps, gs, ms, bs, ys, _s, ar = st(() => {
|
|
|
2739
2739
|
o.nextTick = function(A) {
|
|
2740
2740
|
var y = new Array(arguments.length - 1);
|
|
2741
2741
|
if (arguments.length > 1) for (var E = 1; E < arguments.length; E++) y[E - 1] = arguments[E];
|
|
2742
|
-
s.push(new
|
|
2742
|
+
s.push(new _(A, y)), s.length === 1 && !h && n(b);
|
|
2743
2743
|
};
|
|
2744
|
-
function
|
|
2744
|
+
function _(A, y) {
|
|
2745
2745
|
this.fun = A, this.array = y;
|
|
2746
2746
|
}
|
|
2747
|
-
|
|
2747
|
+
_.prototype.run = function() {
|
|
2748
2748
|
this.fun.apply(null, this.array);
|
|
2749
2749
|
}, o.title = "browser", o.browser = !0, o.env = {}, o.argv = [], o.version = "", o.versions = {};
|
|
2750
|
-
function
|
|
2750
|
+
function v() {
|
|
2751
2751
|
}
|
|
2752
|
-
o.on =
|
|
2752
|
+
o.on = v, o.addListener = v, o.once = v, o.off = v, o.removeListener = v, o.removeAllListeners = v, o.emit = v, o.prependListener = v, o.prependOnceListener = v, o.listeners = function(A) {
|
|
2753
2753
|
return [];
|
|
2754
2754
|
}, o.binding = function(A) {
|
|
2755
2755
|
throw new Error("process.binding is not supported");
|
|
@@ -2774,26 +2774,26 @@ var ps, gs, ms, bs, ys, _s, ar = st(() => {
|
|
|
2774
2774
|
function b(R) {
|
|
2775
2775
|
return !!(R && typeof R.pipe == "function" && R._readableState && typeof R.on == "function" && typeof R.write == "function");
|
|
2776
2776
|
}
|
|
2777
|
-
function
|
|
2777
|
+
function _(R) {
|
|
2778
2778
|
return R && (R._readableState || R._writableState || typeof R.write == "function" && typeof R.on == "function" || typeof R.pipe == "function" && typeof R.on == "function");
|
|
2779
2779
|
}
|
|
2780
|
-
function
|
|
2781
|
-
return !!(R && !
|
|
2780
|
+
function v(R) {
|
|
2781
|
+
return !!(R && !_(R) && typeof R.pipeThrough == "function" && typeof R.getReader == "function" && typeof R.cancel == "function");
|
|
2782
2782
|
}
|
|
2783
2783
|
function A(R) {
|
|
2784
|
-
return !!(R && !
|
|
2784
|
+
return !!(R && !_(R) && typeof R.getWriter == "function" && typeof R.abort == "function");
|
|
2785
2785
|
}
|
|
2786
2786
|
function y(R) {
|
|
2787
|
-
return !!(R && !
|
|
2787
|
+
return !!(R && !_(R) && typeof R.readable == "object" && typeof R.writable == "object");
|
|
2788
2788
|
}
|
|
2789
2789
|
function E(R) {
|
|
2790
|
-
return
|
|
2790
|
+
return v(R) || A(R) || y(R);
|
|
2791
2791
|
}
|
|
2792
2792
|
function N(R, re) {
|
|
2793
2793
|
return R == null ? !1 : re === !0 ? typeof R[o] == "function" : re === !1 ? typeof R[a] == "function" : typeof R[o] == "function" || typeof R[a] == "function";
|
|
2794
2794
|
}
|
|
2795
2795
|
function x(R) {
|
|
2796
|
-
if (!
|
|
2796
|
+
if (!_(R)) return null;
|
|
2797
2797
|
let re = R._writableState, pe = R._readableState, U = re || pe;
|
|
2798
2798
|
return !!(R.destroyed || R[r] || U != null && U.destroyed);
|
|
2799
2799
|
}
|
|
@@ -2827,18 +2827,18 @@ var ps, gs, ms, bs, ys, _s, ar = st(() => {
|
|
|
2827
2827
|
return R && R[t] != null ? R[t] : typeof (R == null ? void 0 : R.writable) != "boolean" ? null : x(R) ? !1 : m(R) && R.writable && !k(R);
|
|
2828
2828
|
}
|
|
2829
2829
|
function O(R, re) {
|
|
2830
|
-
return
|
|
2830
|
+
return _(R) ? x(R) ? !0 : !((re == null ? void 0 : re.readable) !== !1 && X(R) || (re == null ? void 0 : re.writable) !== !1 && ae(R)) : null;
|
|
2831
2831
|
}
|
|
2832
2832
|
function Q(R) {
|
|
2833
2833
|
var re, pe;
|
|
2834
|
-
return
|
|
2834
|
+
return _(R) ? R.writableErrored ? R.writableErrored : (re = (pe = R._writableState) === null || pe === void 0 ? void 0 : pe.errored) !== null && re !== void 0 ? re : null : null;
|
|
2835
2835
|
}
|
|
2836
2836
|
function J(R) {
|
|
2837
2837
|
var re, pe;
|
|
2838
|
-
return
|
|
2838
|
+
return _(R) ? R.readableErrored ? R.readableErrored : (re = (pe = R._readableState) === null || pe === void 0 ? void 0 : pe.errored) !== null && re !== void 0 ? re : null : null;
|
|
2839
2839
|
}
|
|
2840
2840
|
function W(R) {
|
|
2841
|
-
if (!
|
|
2841
|
+
if (!_(R)) return null;
|
|
2842
2842
|
if (typeof R.closed == "boolean") return R.closed;
|
|
2843
2843
|
let re = R._writableState, pe = R._readableState;
|
|
2844
2844
|
return typeof (re == null ? void 0 : re.closed) == "boolean" || typeof (pe == null ? void 0 : pe.closed) == "boolean" ? (re == null ? void 0 : re.closed) || (pe == null ? void 0 : pe.closed) : typeof R._closed == "boolean" && me(R) ? R._closed : null;
|
|
@@ -2853,8 +2853,8 @@ var ps, gs, ms, bs, ys, _s, ar = st(() => {
|
|
|
2853
2853
|
var re;
|
|
2854
2854
|
return typeof R._consuming == "boolean" && typeof R._dumped == "boolean" && ((re = R.req) === null || re === void 0 ? void 0 : re.upgradeOrConnect) === void 0;
|
|
2855
2855
|
}
|
|
2856
|
-
function
|
|
2857
|
-
if (!
|
|
2856
|
+
function _e(R) {
|
|
2857
|
+
if (!_(R)) return null;
|
|
2858
2858
|
let re = R._writableState, pe = R._readableState, U = re || pe;
|
|
2859
2859
|
return !U && de(R) || !!(U && U.autoDestroy && U.emitClose && U.closed === !1);
|
|
2860
2860
|
}
|
|
@@ -2866,10 +2866,10 @@ var ps, gs, ms, bs, ys, _s, ar = st(() => {
|
|
|
2866
2866
|
var re, pe, U, Ae, V, L, Z, $, q, H;
|
|
2867
2867
|
return !!(R && ((re = (pe = (U = (Ae = (V = (L = R[e]) !== null && L !== void 0 ? L : R.readableErrored) !== null && V !== void 0 ? V : R.writableErrored) !== null && Ae !== void 0 ? Ae : (Z = R._readableState) === null || Z === void 0 ? void 0 : Z.errorEmitted) !== null && U !== void 0 ? U : ($ = R._writableState) === null || $ === void 0 ? void 0 : $.errorEmitted) !== null && pe !== void 0 ? pe : (q = R._readableState) === null || q === void 0 ? void 0 : q.errored) !== null && re !== void 0 ? re : !((H = R._writableState) === null || H === void 0) && H.errored));
|
|
2868
2868
|
}
|
|
2869
|
-
u.exports = { isDestroyed: x, kIsDestroyed: r, isDisturbed: K, kIsDisturbed: s, isErrored: fe, kIsErrored: e, isReadable: X, kIsReadable: n, kIsClosedPromise: h, kControllerErrorFunction: d, kIsWritable: t, isClosed: W, isDuplexNodeStream: b, isFinished: O, isIterable: N, isReadableNodeStream: p, isReadableStream:
|
|
2869
|
+
u.exports = { isDestroyed: x, kIsDestroyed: r, isDisturbed: K, kIsDisturbed: s, isErrored: fe, kIsErrored: e, isReadable: X, kIsReadable: n, kIsClosedPromise: h, kControllerErrorFunction: d, kIsWritable: t, isClosed: W, isDuplexNodeStream: b, isFinished: O, isIterable: N, isReadableNodeStream: p, isReadableStream: v, isReadableEnded: M, isReadableFinished: G, isReadableErrored: J, isNodeStream: _, isWebStream: E, isWritable: ae, isWritableNodeStream: m, isWritableStream: A, isWritableEnded: k, isWritableFinished: T, isWritableErrored: Q, isServerRequest: ge, isServerResponse: de, willEmitClose: _e, isTransformStream: y };
|
|
2870
2870
|
}), Qt = be((i, u) => {
|
|
2871
2871
|
ue(), ce(), he();
|
|
2872
|
-
var o = lr(), { AbortError: a, codes: l } = at(), { ERR_INVALID_ARG_TYPE: r, ERR_STREAM_PREMATURE_CLOSE: e } = l, { kEmptyObject: n, once: t } = ut(), { validateAbortSignal: s, validateFunction: h, validateObject: d, validateBoolean: p } = Cr(), { Promise: m, PromisePrototypeThen: b, SymbolDispose:
|
|
2872
|
+
var o = lr(), { AbortError: a, codes: l } = at(), { ERR_INVALID_ARG_TYPE: r, ERR_STREAM_PREMATURE_CLOSE: e } = l, { kEmptyObject: n, once: t } = ut(), { validateAbortSignal: s, validateFunction: h, validateObject: d, validateBoolean: p } = Cr(), { Promise: m, PromisePrototypeThen: b, SymbolDispose: _ } = Qe(), { isClosed: v, isReadable: A, isReadableNodeStream: y, isReadableStream: E, isReadableFinished: N, isReadableErrored: x, isWritable: k, isWritableNodeStream: T, isWritableStream: M, isWritableFinished: G, isWritableErrored: X, isNodeStream: ae, willEmitClose: O, kIsClosedPromise: Q } = Nt(), J;
|
|
2873
2873
|
function W(K) {
|
|
2874
2874
|
return K.setHeader && typeof K.abort == "function";
|
|
2875
2875
|
}
|
|
@@ -2887,7 +2887,7 @@ var ps, gs, ms, bs, ys, _s, ar = st(() => {
|
|
|
2887
2887
|
se = !0, K.destroyed && ($ = !1), !($ && (!K.writable || Ae)) && (!Ae || q) && R.call(K);
|
|
2888
2888
|
}, B = (F) => {
|
|
2889
2889
|
R.call(K, F);
|
|
2890
|
-
}, D =
|
|
2890
|
+
}, D = v(K), Y = () => {
|
|
2891
2891
|
D = !0;
|
|
2892
2892
|
let F = X(K) || x(K);
|
|
2893
2893
|
if (F && typeof F != "boolean") return R.call(K, F);
|
|
@@ -2916,7 +2916,7 @@ var ps, gs, ms, bs, ys, _s, ar = st(() => {
|
|
|
2916
2916
|
J = J || ut().addAbortListener;
|
|
2917
2917
|
let oe = J(fe.signal, F), ye = R;
|
|
2918
2918
|
R = t((...ee) => {
|
|
2919
|
-
oe[
|
|
2919
|
+
oe[_](), ye.apply(K, ee);
|
|
2920
2920
|
});
|
|
2921
2921
|
}
|
|
2922
2922
|
}
|
|
@@ -2931,7 +2931,7 @@ var ps, gs, ms, bs, ys, _s, ar = st(() => {
|
|
|
2931
2931
|
J = J || ut().addAbortListener;
|
|
2932
2932
|
let Ae = J(fe.signal, pe), V = R;
|
|
2933
2933
|
R = t((...L) => {
|
|
2934
|
-
Ae[
|
|
2934
|
+
Ae[_](), V.apply(K, L);
|
|
2935
2935
|
});
|
|
2936
2936
|
}
|
|
2937
2937
|
let U = (...Ae) => {
|
|
@@ -2939,7 +2939,7 @@ var ps, gs, ms, bs, ys, _s, ar = st(() => {
|
|
|
2939
2939
|
};
|
|
2940
2940
|
return b(K[Q].promise, U, U), me;
|
|
2941
2941
|
}
|
|
2942
|
-
function
|
|
2942
|
+
function _e(K, fe) {
|
|
2943
2943
|
var R;
|
|
2944
2944
|
let re = !1;
|
|
2945
2945
|
return fe === null && (fe = n), (R = fe) !== null && R !== void 0 && R.cleanup && (p(fe.cleanup, "cleanup"), re = fe.cleanup), new m((pe, U) => {
|
|
@@ -2948,7 +2948,7 @@ var ps, gs, ms, bs, ys, _s, ar = st(() => {
|
|
|
2948
2948
|
});
|
|
2949
2949
|
});
|
|
2950
2950
|
}
|
|
2951
|
-
u.exports = de, u.exports.finished =
|
|
2951
|
+
u.exports = de, u.exports.finished = _e;
|
|
2952
2952
|
}), pr = be((i, u) => {
|
|
2953
2953
|
ue(), ce(), he();
|
|
2954
2954
|
var o = lr(), { aggregateTwoErrors: a, codes: { ERR_MULTIPLE_CALLBACK: l }, AbortError: r } = at(), { Symbol: e } = Qe(), { kIsDestroyed: n, isDestroyed: t, isFinished: s, isServerRequest: h } = Nt(), d = e("kDestroy"), p = e("kConstruct");
|
|
@@ -2957,17 +2957,17 @@ var ps, gs, ms, bs, ys, _s, ar = st(() => {
|
|
|
2957
2957
|
}
|
|
2958
2958
|
function b(O, Q) {
|
|
2959
2959
|
let J = this._readableState, W = this._writableState, me = W || J;
|
|
2960
|
-
return W != null && W.destroyed || J != null && J.destroyed ? (typeof Q == "function" && Q(), this) : (m(O, W, J), W && (W.destroyed = !0), J && (J.destroyed = !0), me.constructed ?
|
|
2961
|
-
|
|
2960
|
+
return W != null && W.destroyed || J != null && J.destroyed ? (typeof Q == "function" && Q(), this) : (m(O, W, J), W && (W.destroyed = !0), J && (J.destroyed = !0), me.constructed ? _(this, O, Q) : this.once(d, function(de) {
|
|
2961
|
+
_(this, a(de, O), Q);
|
|
2962
2962
|
}), this);
|
|
2963
2963
|
}
|
|
2964
|
-
function
|
|
2964
|
+
function _(O, Q, J) {
|
|
2965
2965
|
let W = !1;
|
|
2966
2966
|
function me(de) {
|
|
2967
2967
|
if (W) return;
|
|
2968
2968
|
W = !0;
|
|
2969
|
-
let ge = O._readableState,
|
|
2970
|
-
m(de,
|
|
2969
|
+
let ge = O._readableState, _e = O._writableState;
|
|
2970
|
+
m(de, _e, ge), _e && (_e.closed = !0), ge && (ge.closed = !0), typeof J == "function" && J(de), de ? o.nextTick(v, O, de) : o.nextTick(A, O);
|
|
2971
2971
|
}
|
|
2972
2972
|
try {
|
|
2973
2973
|
O._destroy(Q || null, me);
|
|
@@ -2975,7 +2975,7 @@ var ps, gs, ms, bs, ys, _s, ar = st(() => {
|
|
|
2975
2975
|
me(de);
|
|
2976
2976
|
}
|
|
2977
2977
|
}
|
|
2978
|
-
function
|
|
2978
|
+
function v(O, Q) {
|
|
2979
2979
|
y(O, Q), A(O);
|
|
2980
2980
|
}
|
|
2981
2981
|
function A(O) {
|
|
@@ -3058,14 +3058,14 @@ var ps, gs, ms, bs, ys, _s, ar = st(() => {
|
|
|
3058
3058
|
function b() {
|
|
3059
3059
|
p || (p = !0, typeof n.destroy == "function" && n.destroy());
|
|
3060
3060
|
}
|
|
3061
|
-
function
|
|
3062
|
-
|
|
3061
|
+
function _(A) {
|
|
3062
|
+
v(), l.listenerCount(this, "error") === 0 && this.emit("error", A);
|
|
3063
3063
|
}
|
|
3064
|
-
e(s, "error",
|
|
3065
|
-
function
|
|
3066
|
-
s.removeListener("data", h), n.removeListener("drain", d), s.removeListener("end", m), s.removeListener("close", b), s.removeListener("error",
|
|
3064
|
+
e(s, "error", _), e(n, "error", _);
|
|
3065
|
+
function v() {
|
|
3066
|
+
s.removeListener("data", h), n.removeListener("drain", d), s.removeListener("end", m), s.removeListener("close", b), s.removeListener("error", _), n.removeListener("error", _), s.removeListener("end", v), s.removeListener("close", v), n.removeListener("close", v);
|
|
3067
3067
|
}
|
|
3068
|
-
return s.on("end",
|
|
3068
|
+
return s.on("end", v), s.on("close", v), n.on("close", v), n.emit("pipe", s), n;
|
|
3069
3069
|
};
|
|
3070
3070
|
function e(n, t, s) {
|
|
3071
3071
|
if (typeof n.prependListener == "function") return n.prependListener(t, s);
|
|
@@ -3090,8 +3090,8 @@ var ps, gs, ms, bs, ys, _s, ar = st(() => {
|
|
|
3090
3090
|
if (p.aborted) b();
|
|
3091
3091
|
else {
|
|
3092
3092
|
h = h || ut().addAbortListener;
|
|
3093
|
-
let
|
|
3094
|
-
t(m,
|
|
3093
|
+
let _ = h(p, b);
|
|
3094
|
+
t(m, _[o]);
|
|
3095
3095
|
}
|
|
3096
3096
|
return m;
|
|
3097
3097
|
};
|
|
@@ -3186,14 +3186,14 @@ var ps, gs, ms, bs, ys, _s, ar = st(() => {
|
|
|
3186
3186
|
function h(p, m) {
|
|
3187
3187
|
l(m, "value", 0), p ? n = m : e = m;
|
|
3188
3188
|
}
|
|
3189
|
-
function d(p, m, b,
|
|
3190
|
-
let
|
|
3191
|
-
if (
|
|
3192
|
-
if (!a(
|
|
3193
|
-
let A =
|
|
3194
|
-
throw new r(A,
|
|
3189
|
+
function d(p, m, b, _) {
|
|
3190
|
+
let v = t(m, _, b);
|
|
3191
|
+
if (v != null) {
|
|
3192
|
+
if (!a(v) || v < 0) {
|
|
3193
|
+
let A = _ ? `options.${b}` : "options.highWaterMark";
|
|
3194
|
+
throw new r(A, v);
|
|
3195
3195
|
}
|
|
3196
|
-
return o(
|
|
3196
|
+
return o(v);
|
|
3197
3197
|
}
|
|
3198
3198
|
return s(p.objectMode);
|
|
3199
3199
|
}
|
|
@@ -3282,10 +3282,10 @@ var ps, gs, ms, bs, ys, _s, ar = st(() => {
|
|
|
3282
3282
|
this.fillLast = s, E = 4;
|
|
3283
3283
|
break;
|
|
3284
3284
|
case "base64":
|
|
3285
|
-
this.text = b, this.end =
|
|
3285
|
+
this.text = b, this.end = _, E = 3;
|
|
3286
3286
|
break;
|
|
3287
3287
|
default:
|
|
3288
|
-
this.write =
|
|
3288
|
+
this.write = v, this.end = A;
|
|
3289
3289
|
return;
|
|
3290
3290
|
}
|
|
3291
3291
|
this.lastNeed = 0, this.lastTotal = 0, this.lastChar = u.allocUnsafe(E);
|
|
@@ -3358,17 +3358,17 @@ var ps, gs, ms, bs, ys, _s, ar = st(() => {
|
|
|
3358
3358
|
var N = (y.length - E) % 3;
|
|
3359
3359
|
return N === 0 ? y.toString("base64", E) : (this.lastNeed = 3 - N, this.lastTotal = 3, N === 1 ? this.lastChar[0] = y[y.length - 1] : (this.lastChar[0] = y[y.length - 2], this.lastChar[1] = y[y.length - 1]), y.toString("base64", E, y.length - N));
|
|
3360
3360
|
}
|
|
3361
|
-
function
|
|
3361
|
+
function _(y) {
|
|
3362
3362
|
var E = y && y.length ? this.write(y) : "";
|
|
3363
3363
|
return this.lastNeed ? E + this.lastChar.toString("base64", 0, 3 - this.lastNeed) : E;
|
|
3364
3364
|
}
|
|
3365
|
-
function
|
|
3365
|
+
function v(y) {
|
|
3366
3366
|
return y.toString(this.encoding);
|
|
3367
3367
|
}
|
|
3368
3368
|
function A(y) {
|
|
3369
3369
|
return y && y.length ? this.write(y) : "";
|
|
3370
3370
|
}
|
|
3371
|
-
}),
|
|
3371
|
+
}), _s = be((i, u) => {
|
|
3372
3372
|
ue(), ce(), he();
|
|
3373
3373
|
var o = lr(), { PromisePrototypeThen: a, SymbolAsyncIterator: l, SymbolIterator: r } = Qe(), { Buffer: e } = (tt(), Fe(et)), { ERR_INVALID_ARG_TYPE: n, ERR_STREAM_NULL_VALUES: t } = at().codes;
|
|
3374
3374
|
function s(h, d, p) {
|
|
@@ -3380,10 +3380,10 @@ var ps, gs, ms, bs, ys, _s, ar = st(() => {
|
|
|
3380
3380
|
if (d && d[l]) b = !0, m = d[l]();
|
|
3381
3381
|
else if (d && d[r]) b = !1, m = d[r]();
|
|
3382
3382
|
else throw new n("iterable", ["Iterable"], d);
|
|
3383
|
-
let
|
|
3384
|
-
|
|
3385
|
-
|
|
3386
|
-
},
|
|
3383
|
+
let _ = new h({ objectMode: !0, highWaterMark: 1, ...p }), v = !1;
|
|
3384
|
+
_._read = function() {
|
|
3385
|
+
v || (v = !0, y());
|
|
3386
|
+
}, _._destroy = function(E, N) {
|
|
3387
3387
|
a(A(E), () => o.nextTick(N, E), (x) => o.nextTick(N, x || E));
|
|
3388
3388
|
};
|
|
3389
3389
|
async function A(E) {
|
|
@@ -3401,30 +3401,30 @@ var ps, gs, ms, bs, ys, _s, ar = st(() => {
|
|
|
3401
3401
|
for (; ; ) {
|
|
3402
3402
|
try {
|
|
3403
3403
|
let { value: E, done: N } = b ? await m.next() : m.next();
|
|
3404
|
-
if (N)
|
|
3404
|
+
if (N) _.push(null);
|
|
3405
3405
|
else {
|
|
3406
3406
|
let x = E && typeof E.then == "function" ? await E : E;
|
|
3407
|
-
if (x === null) throw
|
|
3408
|
-
if (
|
|
3409
|
-
|
|
3407
|
+
if (x === null) throw v = !1, new t();
|
|
3408
|
+
if (_.push(x)) continue;
|
|
3409
|
+
v = !1;
|
|
3410
3410
|
}
|
|
3411
3411
|
} catch (E) {
|
|
3412
|
-
|
|
3412
|
+
_.destroy(E);
|
|
3413
3413
|
}
|
|
3414
3414
|
break;
|
|
3415
3415
|
}
|
|
3416
3416
|
}
|
|
3417
|
-
return
|
|
3417
|
+
return _;
|
|
3418
3418
|
}
|
|
3419
3419
|
u.exports = s;
|
|
3420
3420
|
}), Xr = be((i, u) => {
|
|
3421
3421
|
ue(), ce(), he();
|
|
3422
3422
|
var o = lr(), { ArrayPrototypeIndexOf: a, NumberIsInteger: l, NumberIsNaN: r, NumberParseInt: e, ObjectDefineProperties: n, ObjectKeys: t, ObjectSetPrototypeOf: s, Promise: h, SafeSet: d, SymbolAsyncDispose: p, SymbolAsyncIterator: m, Symbol: b } = Qe();
|
|
3423
3423
|
u.exports = ee, ee.ReadableState = ye;
|
|
3424
|
-
var { EventEmitter:
|
|
3424
|
+
var { EventEmitter: _ } = (ar(), Fe(Kt)), { Stream: v, prependListener: A } = Yi(), { Buffer: y } = (tt(), Fe(et)), { addAbortSignal: E } = Gr(), N = Qt(), x = ut().debuglog("stream", (S) => {
|
|
3425
3425
|
x = S;
|
|
3426
|
-
}), k = qu(), T = pr(), { getHighWaterMark: M, getDefaultHighWaterMark: G } = Jr(), { aggregateTwoErrors: X, codes: { ERR_INVALID_ARG_TYPE: ae, ERR_METHOD_NOT_IMPLEMENTED: O, ERR_OUT_OF_RANGE: Q, ERR_STREAM_PUSH_AFTER_EOF: J, ERR_STREAM_UNSHIFT_AFTER_END_EVENT: W }, AbortError: me } = at(), { validateObject: de } = Cr(), ge = b("kPaused"), { StringDecoder:
|
|
3427
|
-
s(ee.prototype,
|
|
3426
|
+
}), k = qu(), T = pr(), { getHighWaterMark: M, getDefaultHighWaterMark: G } = Jr(), { aggregateTwoErrors: X, codes: { ERR_INVALID_ARG_TYPE: ae, ERR_METHOD_NOT_IMPLEMENTED: O, ERR_OUT_OF_RANGE: Q, ERR_STREAM_PUSH_AFTER_EOF: J, ERR_STREAM_UNSHIFT_AFTER_END_EVENT: W }, AbortError: me } = at(), { validateObject: de } = Cr(), ge = b("kPaused"), { StringDecoder: _e } = Vu(), K = _s();
|
|
3427
|
+
s(ee.prototype, v.prototype), s(ee, v);
|
|
3428
3428
|
var fe = () => {
|
|
3429
3429
|
}, { errorOrDestroy: R } = T, re = 1, pe = 2, U = 4, Ae = 8, V = 16, L = 32, Z = 64, $ = 128, q = 256, H = 512, se = 1024, ne = 2048, B = 4096, D = 8192, Y = 16384, ie = 32768, te = 65536, le = 1 << 17, F = 1 << 18;
|
|
3430
3430
|
function oe(S) {
|
|
@@ -3435,32 +3435,32 @@ var ps, gs, ms, bs, ys, _s, ar = st(() => {
|
|
|
3435
3435
|
} };
|
|
3436
3436
|
}
|
|
3437
3437
|
n(ye.prototype, { objectMode: oe(re), ended: oe(pe), endEmitted: oe(U), reading: oe(Ae), constructed: oe(V), sync: oe(L), needReadable: oe(Z), emittedReadable: oe($), readableListening: oe(q), resumeScheduled: oe(H), errorEmitted: oe(se), emitClose: oe(ne), autoDestroy: oe(B), destroyed: oe(D), closed: oe(Y), closeEmitted: oe(ie), multiAwaitDrain: oe(te), readingMore: oe(le), dataEmitted: oe(F) });
|
|
3438
|
-
function ye(S, P,
|
|
3439
|
-
typeof
|
|
3438
|
+
function ye(S, P, ve) {
|
|
3439
|
+
typeof ve != "boolean" && (ve = P instanceof Lt()), this.state = ne | B | V | L, S && S.objectMode && (this.state |= re), ve && S && S.readableObjectMode && (this.state |= re), this.highWaterMark = S ? M(this, S, "readableHighWaterMark", ve) : G(!1), this.buffer = new k(), this.length = 0, this.pipes = [], this.flowing = null, this[ge] = null, S && S.emitClose === !1 && (this.state &= ~ne), S && S.autoDestroy === !1 && (this.state &= ~B), this.errored = null, this.defaultEncoding = S && S.defaultEncoding || "utf8", this.awaitDrainWriters = null, this.decoder = null, this.encoding = null, S && S.encoding && (this.decoder = new _e(S.encoding), this.encoding = S.encoding);
|
|
3440
3440
|
}
|
|
3441
3441
|
function ee(S) {
|
|
3442
3442
|
if (!(this instanceof ee)) return new ee(S);
|
|
3443
3443
|
let P = this instanceof Lt();
|
|
3444
|
-
this._readableState = new ye(S, this, P), S && (typeof S.read == "function" && (this._read = S.read), typeof S.destroy == "function" && (this._destroy = S.destroy), typeof S.construct == "function" && (this._construct = S.construct), S.signal && !P && E(S.signal, this)),
|
|
3444
|
+
this._readableState = new ye(S, this, P), S && (typeof S.read == "function" && (this._read = S.read), typeof S.destroy == "function" && (this._destroy = S.destroy), typeof S.construct == "function" && (this._construct = S.construct), S.signal && !P && E(S.signal, this)), v.call(this, S), T.construct(this, () => {
|
|
3445
3445
|
this._readableState.needReadable && we(this, this._readableState);
|
|
3446
3446
|
});
|
|
3447
3447
|
}
|
|
3448
3448
|
ee.prototype.destroy = T.destroy, ee.prototype._undestroy = T.undestroy, ee.prototype._destroy = function(S, P) {
|
|
3449
3449
|
P(S);
|
|
3450
|
-
}, ee.prototype[
|
|
3450
|
+
}, ee.prototype[_.captureRejectionSymbol] = function(S) {
|
|
3451
3451
|
this.destroy(S);
|
|
3452
3452
|
}, ee.prototype[p] = function() {
|
|
3453
3453
|
let S;
|
|
3454
|
-
return this.destroyed || (S = this.readableEnded ? null : new me(), this.destroy(S)), new h((P,
|
|
3454
|
+
return this.destroyed || (S = this.readableEnded ? null : new me(), this.destroy(S)), new h((P, ve) => N(this, (Se) => Se && Se !== S ? ve(Se) : P(null)));
|
|
3455
3455
|
}, ee.prototype.push = function(S, P) {
|
|
3456
3456
|
return Pe(this, S, P, !1);
|
|
3457
3457
|
}, ee.prototype.unshift = function(S, P) {
|
|
3458
3458
|
return Pe(this, S, P, !0);
|
|
3459
3459
|
};
|
|
3460
|
-
function Pe(S, P,
|
|
3460
|
+
function Pe(S, P, ve, Se) {
|
|
3461
3461
|
x("readableAddChunk", P);
|
|
3462
3462
|
let Ie = S._readableState, nt;
|
|
3463
|
-
if ((Ie.state & re) === 0 && (typeof P == "string" ? (
|
|
3463
|
+
if ((Ie.state & re) === 0 && (typeof P == "string" ? (ve = ve || Ie.defaultEncoding, Ie.encoding !== ve && (Se && Ie.encoding ? P = y.from(P, ve).toString(Ie.encoding) : (P = y.from(P, ve), ve = ""))) : P instanceof y ? ve = "" : v._isUint8Array(P) ? (P = v._uint8ArrayToBuffer(P), ve = "") : P != null && (nt = new ae("chunk", ["string", "Buffer", "Uint8Array"], P))), nt) R(S, nt);
|
|
3464
3464
|
else if (P === null) Ie.state &= ~Ae, I(S, Ie);
|
|
3465
3465
|
else if ((Ie.state & re) !== 0 || P && P.length > 0) if (Se) if ((Ie.state & U) !== 0) R(S, new W());
|
|
3466
3466
|
else {
|
|
@@ -3470,23 +3470,23 @@ var ps, gs, ms, bs, ys, _s, ar = st(() => {
|
|
|
3470
3470
|
else if (Ie.ended) R(S, new J());
|
|
3471
3471
|
else {
|
|
3472
3472
|
if (Ie.destroyed || Ie.errored) return !1;
|
|
3473
|
-
Ie.state &= ~Ae, Ie.decoder && !
|
|
3473
|
+
Ie.state &= ~Ae, Ie.decoder && !ve ? (P = Ie.decoder.write(P), Ie.objectMode || P.length !== 0 ? c(S, Ie, P, !1) : we(S, Ie)) : c(S, Ie, P, !1);
|
|
3474
3474
|
}
|
|
3475
3475
|
else Se || (Ie.state &= ~Ae, we(S, Ie));
|
|
3476
3476
|
return !Ie.ended && (Ie.length < Ie.highWaterMark || Ie.length === 0);
|
|
3477
3477
|
}
|
|
3478
|
-
function c(S, P,
|
|
3479
|
-
P.flowing && P.length === 0 && !P.sync && S.listenerCount("data") > 0 ? ((P.state & te) !== 0 ? P.awaitDrainWriters.clear() : P.awaitDrainWriters = null, P.dataEmitted = !0, S.emit("data",
|
|
3478
|
+
function c(S, P, ve, Se) {
|
|
3479
|
+
P.flowing && P.length === 0 && !P.sync && S.listenerCount("data") > 0 ? ((P.state & te) !== 0 ? P.awaitDrainWriters.clear() : P.awaitDrainWriters = null, P.dataEmitted = !0, S.emit("data", ve)) : (P.length += P.objectMode ? 1 : ve.length, Se ? P.buffer.unshift(ve) : P.buffer.push(ve), (P.state & Z) !== 0 && j(S)), we(S, P);
|
|
3480
3480
|
}
|
|
3481
3481
|
ee.prototype.isPaused = function() {
|
|
3482
3482
|
let S = this._readableState;
|
|
3483
3483
|
return S[ge] === !0 || S.flowing === !1;
|
|
3484
3484
|
}, ee.prototype.setEncoding = function(S) {
|
|
3485
|
-
let P = new
|
|
3485
|
+
let P = new _e(S);
|
|
3486
3486
|
this._readableState.decoder = P, this._readableState.encoding = this._readableState.decoder.encoding;
|
|
3487
|
-
let
|
|
3488
|
-
for (let Ie of
|
|
3489
|
-
return
|
|
3487
|
+
let ve = this._readableState.buffer, Se = "";
|
|
3488
|
+
for (let Ie of ve) Se += P.write(Ie);
|
|
3489
|
+
return ve.clear(), Se !== "" && ve.push(Se), this._readableState.length = Se.length, this;
|
|
3490
3490
|
};
|
|
3491
3491
|
var f = 1073741824;
|
|
3492
3492
|
function g(S) {
|
|
@@ -3498,7 +3498,7 @@ var ps, gs, ms, bs, ys, _s, ar = st(() => {
|
|
|
3498
3498
|
}
|
|
3499
3499
|
ee.prototype.read = function(S) {
|
|
3500
3500
|
x("read", S), S === void 0 ? S = NaN : l(S) || (S = e(S, 10));
|
|
3501
|
-
let P = this._readableState,
|
|
3501
|
+
let P = this._readableState, ve = S;
|
|
3502
3502
|
if (S > P.highWaterMark && (P.highWaterMark = g(S)), S !== 0 && (P.state &= ~$), S === 0 && P.needReadable && ((P.highWaterMark !== 0 ? P.length >= P.highWaterMark : P.length > 0) || P.ended)) return x("read: emitReadable", P.length, P.ended), P.length === 0 && P.ended ? We(this) : j(this), null;
|
|
3503
3503
|
if (S = w(S, P), S === 0 && P.ended) return P.length === 0 && We(this), null;
|
|
3504
3504
|
let Se = (P.state & Z) !== 0;
|
|
@@ -3510,16 +3510,16 @@ var ps, gs, ms, bs, ys, _s, ar = st(() => {
|
|
|
3510
3510
|
} catch (nt) {
|
|
3511
3511
|
R(this, nt);
|
|
3512
3512
|
}
|
|
3513
|
-
P.state &= ~L, P.reading || (S = w(
|
|
3513
|
+
P.state &= ~L, P.reading || (S = w(ve, P));
|
|
3514
3514
|
}
|
|
3515
3515
|
let Ie;
|
|
3516
|
-
return S > 0 ? Ie = Re(S, P) : Ie = null, Ie === null ? (P.needReadable = P.length <= P.highWaterMark, S = 0) : (P.length -= S, P.multiAwaitDrain ? P.awaitDrainWriters.clear() : P.awaitDrainWriters = null), P.length === 0 && (P.ended || (P.needReadable = !0),
|
|
3516
|
+
return S > 0 ? Ie = Re(S, P) : Ie = null, Ie === null ? (P.needReadable = P.length <= P.highWaterMark, S = 0) : (P.length -= S, P.multiAwaitDrain ? P.awaitDrainWriters.clear() : P.awaitDrainWriters = null), P.length === 0 && (P.ended || (P.needReadable = !0), ve !== S && P.ended && We(this)), Ie !== null && !P.errorEmitted && !P.closeEmitted && (P.dataEmitted = !0, this.emit("data", Ie)), Ie;
|
|
3517
3517
|
};
|
|
3518
3518
|
function I(S, P) {
|
|
3519
3519
|
if (x("onEofChunk"), !P.ended) {
|
|
3520
3520
|
if (P.decoder) {
|
|
3521
|
-
let
|
|
3522
|
-
|
|
3521
|
+
let ve = P.decoder.end();
|
|
3522
|
+
ve && ve.length && (P.buffer.push(ve), P.length += P.objectMode ? 1 : ve.length);
|
|
3523
3523
|
}
|
|
3524
3524
|
P.ended = !0, P.sync ? j(S) : (P.needReadable = !1, P.emittedReadable = !0, z(S));
|
|
3525
3525
|
}
|
|
@@ -3537,32 +3537,32 @@ var ps, gs, ms, bs, ys, _s, ar = st(() => {
|
|
|
3537
3537
|
}
|
|
3538
3538
|
function Ee(S, P) {
|
|
3539
3539
|
for (; !P.reading && !P.ended && (P.length < P.highWaterMark || P.flowing && P.length === 0); ) {
|
|
3540
|
-
let
|
|
3541
|
-
if (x("maybeReadMore read 0"), S.read(0),
|
|
3540
|
+
let ve = P.length;
|
|
3541
|
+
if (x("maybeReadMore read 0"), S.read(0), ve === P.length) break;
|
|
3542
3542
|
}
|
|
3543
3543
|
P.readingMore = !1;
|
|
3544
3544
|
}
|
|
3545
3545
|
ee.prototype._read = function(S) {
|
|
3546
3546
|
throw new O("_read()");
|
|
3547
3547
|
}, ee.prototype.pipe = function(S, P) {
|
|
3548
|
-
let
|
|
3548
|
+
let ve = this, Se = this._readableState;
|
|
3549
3549
|
Se.pipes.length === 1 && (Se.multiAwaitDrain || (Se.multiAwaitDrain = !0, Se.awaitDrainWriters = new d(Se.awaitDrainWriters ? [Se.awaitDrainWriters] : []))), Se.pipes.push(S), x("pipe count=%d opts=%j", Se.pipes.length, P);
|
|
3550
3550
|
let Ie = (!P || P.end !== !1) && S !== o.stdout && S !== o.stderr ? pt : mr;
|
|
3551
|
-
Se.endEmitted ? o.nextTick(Ie) :
|
|
3551
|
+
Se.endEmitted ? o.nextTick(Ie) : ve.once("end", Ie), S.on("unpipe", nt);
|
|
3552
3552
|
function nt(Gt, Tt) {
|
|
3553
|
-
x("onunpipe"), Gt ===
|
|
3553
|
+
x("onunpipe"), Gt === ve && Tt && Tt.hasUnpiped === !1 && (Tt.hasUnpiped = !0, Ba());
|
|
3554
3554
|
}
|
|
3555
3555
|
function pt() {
|
|
3556
3556
|
x("onend"), S.end();
|
|
3557
3557
|
}
|
|
3558
3558
|
let Yt, to = !1;
|
|
3559
3559
|
function Ba() {
|
|
3560
|
-
x("cleanup"), S.removeListener("close", rn), S.removeListener("finish", nn), Yt && S.removeListener("drain", Yt), S.removeListener("error", tn), S.removeListener("unpipe", nt),
|
|
3560
|
+
x("cleanup"), S.removeListener("close", rn), S.removeListener("finish", nn), Yt && S.removeListener("drain", Yt), S.removeListener("error", tn), S.removeListener("unpipe", nt), ve.removeListener("end", pt), ve.removeListener("end", mr), ve.removeListener("data", no), to = !0, Yt && Se.awaitDrainWriters && (!S._writableState || S._writableState.needDrain) && Yt();
|
|
3561
3561
|
}
|
|
3562
3562
|
function ro() {
|
|
3563
|
-
to || (Se.pipes.length === 1 && Se.pipes[0] === S ? (x("false write response, pause", 0), Se.awaitDrainWriters = S, Se.multiAwaitDrain = !1) : Se.pipes.length > 1 && Se.pipes.includes(S) && (x("false write response, pause", Se.awaitDrainWriters.size), Se.awaitDrainWriters.add(S)),
|
|
3563
|
+
to || (Se.pipes.length === 1 && Se.pipes[0] === S ? (x("false write response, pause", 0), Se.awaitDrainWriters = S, Se.multiAwaitDrain = !1) : Se.pipes.length > 1 && Se.pipes.includes(S) && (x("false write response, pause", Se.awaitDrainWriters.size), Se.awaitDrainWriters.add(S)), ve.pause()), Yt || (Yt = Te(ve, S), S.on("drain", Yt));
|
|
3564
3564
|
}
|
|
3565
|
-
|
|
3565
|
+
ve.on("data", no);
|
|
3566
3566
|
function no(Gt) {
|
|
3567
3567
|
x("ondata");
|
|
3568
3568
|
let Tt = S.write(Gt);
|
|
@@ -3584,18 +3584,18 @@ var ps, gs, ms, bs, ys, _s, ar = st(() => {
|
|
|
3584
3584
|
}
|
|
3585
3585
|
S.once("finish", nn);
|
|
3586
3586
|
function mr() {
|
|
3587
|
-
x("unpipe"),
|
|
3587
|
+
x("unpipe"), ve.unpipe(S);
|
|
3588
3588
|
}
|
|
3589
|
-
return S.emit("pipe",
|
|
3589
|
+
return S.emit("pipe", ve), S.writableNeedDrain === !0 ? ro() : Se.flowing || (x("pipe resume"), ve.resume()), S;
|
|
3590
3590
|
};
|
|
3591
3591
|
function Te(S, P) {
|
|
3592
3592
|
return function() {
|
|
3593
|
-
let
|
|
3594
|
-
|
|
3593
|
+
let ve = S._readableState;
|
|
3594
|
+
ve.awaitDrainWriters === P ? (x("pipeOnDrain", 1), ve.awaitDrainWriters = null) : ve.multiAwaitDrain && (x("pipeOnDrain", ve.awaitDrainWriters.size), ve.awaitDrainWriters.delete(P)), (!ve.awaitDrainWriters || ve.awaitDrainWriters.size === 0) && S.listenerCount("data") && S.resume();
|
|
3595
3595
|
};
|
|
3596
3596
|
}
|
|
3597
3597
|
ee.prototype.unpipe = function(S) {
|
|
3598
|
-
let P = this._readableState,
|
|
3598
|
+
let P = this._readableState, ve = { hasUnpiped: !1 };
|
|
3599
3599
|
if (P.pipes.length === 0) return this;
|
|
3600
3600
|
if (!S) {
|
|
3601
3601
|
let Ie = P.pipes;
|
|
@@ -3604,15 +3604,15 @@ var ps, gs, ms, bs, ys, _s, ar = st(() => {
|
|
|
3604
3604
|
return this;
|
|
3605
3605
|
}
|
|
3606
3606
|
let Se = a(P.pipes, S);
|
|
3607
|
-
return Se === -1 ? this : (P.pipes.splice(Se, 1), P.pipes.length === 0 && this.pause(), S.emit("unpipe", this,
|
|
3607
|
+
return Se === -1 ? this : (P.pipes.splice(Se, 1), P.pipes.length === 0 && this.pause(), S.emit("unpipe", this, ve), this);
|
|
3608
3608
|
}, ee.prototype.on = function(S, P) {
|
|
3609
|
-
let
|
|
3610
|
-
return S === "data" ? (Se.readableListening = this.listenerCount("readable") > 0, Se.flowing !== !1 && this.resume()) : S === "readable" && !Se.endEmitted && !Se.readableListening && (Se.readableListening = Se.needReadable = !0, Se.flowing = !1, Se.emittedReadable = !1, x("on readable", Se.length, Se.reading), Se.length ? j(this) : Se.reading || o.nextTick(Oe, this)),
|
|
3609
|
+
let ve = v.prototype.on.call(this, S, P), Se = this._readableState;
|
|
3610
|
+
return S === "data" ? (Se.readableListening = this.listenerCount("readable") > 0, Se.flowing !== !1 && this.resume()) : S === "readable" && !Se.endEmitted && !Se.readableListening && (Se.readableListening = Se.needReadable = !0, Se.flowing = !1, Se.emittedReadable = !1, x("on readable", Se.length, Se.reading), Se.length ? j(this) : Se.reading || o.nextTick(Oe, this)), ve;
|
|
3611
3611
|
}, ee.prototype.addListener = ee.prototype.on, ee.prototype.removeListener = function(S, P) {
|
|
3612
|
-
let
|
|
3613
|
-
return S === "readable" && o.nextTick(Be, this),
|
|
3612
|
+
let ve = v.prototype.removeListener.call(this, S, P);
|
|
3613
|
+
return S === "readable" && o.nextTick(Be, this), ve;
|
|
3614
3614
|
}, ee.prototype.off = ee.prototype.removeListener, ee.prototype.removeAllListeners = function(S) {
|
|
3615
|
-
let P =
|
|
3615
|
+
let P = v.prototype.removeAllListeners.apply(this, arguments);
|
|
3616
3616
|
return (S === "readable" || S === void 0) && o.nextTick(Be, this), P;
|
|
3617
3617
|
};
|
|
3618
3618
|
function Be(S) {
|
|
@@ -3624,9 +3624,9 @@ var ps, gs, ms, bs, ys, _s, ar = st(() => {
|
|
|
3624
3624
|
}
|
|
3625
3625
|
ee.prototype.resume = function() {
|
|
3626
3626
|
let S = this._readableState;
|
|
3627
|
-
return S.flowing || (x("resume"), S.flowing = !S.readableListening,
|
|
3627
|
+
return S.flowing || (x("resume"), S.flowing = !S.readableListening, vt(this, S)), S[ge] = !1, this;
|
|
3628
3628
|
};
|
|
3629
|
-
function
|
|
3629
|
+
function vt(S, P) {
|
|
3630
3630
|
P.resumeScheduled || (P.resumeScheduled = !0, o.nextTick(lt, S, P));
|
|
3631
3631
|
}
|
|
3632
3632
|
function lt(S, P) {
|
|
@@ -3654,9 +3654,9 @@ var ps, gs, ms, bs, ys, _s, ar = st(() => {
|
|
|
3654
3654
|
}), this._read = () => {
|
|
3655
3655
|
P && S.resume && (P = !1, S.resume());
|
|
3656
3656
|
};
|
|
3657
|
-
let
|
|
3658
|
-
for (let Se = 1; Se <
|
|
3659
|
-
let Ie =
|
|
3657
|
+
let ve = t(S);
|
|
3658
|
+
for (let Se = 1; Se < ve.length; Se++) {
|
|
3659
|
+
let Ie = ve[Se];
|
|
3660
3660
|
this[Ie] === void 0 && typeof S[Ie] == "function" && (this[Ie] = S[Ie].bind(S));
|
|
3661
3661
|
}
|
|
3662
3662
|
return this;
|
|
@@ -3667,17 +3667,17 @@ var ps, gs, ms, bs, ys, _s, ar = st(() => {
|
|
|
3667
3667
|
};
|
|
3668
3668
|
function qe(S, P) {
|
|
3669
3669
|
typeof S.read != "function" && (S = ee.wrap(S, { objectMode: !0 }));
|
|
3670
|
-
let
|
|
3671
|
-
return
|
|
3670
|
+
let ve = Ze(S, P);
|
|
3671
|
+
return ve.stream = S, ve;
|
|
3672
3672
|
}
|
|
3673
3673
|
async function* Ze(S, P) {
|
|
3674
|
-
let
|
|
3674
|
+
let ve = fe;
|
|
3675
3675
|
function Se(pt) {
|
|
3676
|
-
this === S ? (
|
|
3676
|
+
this === S ? (ve(), ve = fe) : ve = pt;
|
|
3677
3677
|
}
|
|
3678
3678
|
S.on("readable", Se);
|
|
3679
3679
|
let Ie, nt = N(S, { writable: !1 }, (pt) => {
|
|
3680
|
-
Ie = pt ? X(Ie, pt) : null,
|
|
3680
|
+
Ie = pt ? X(Ie, pt) : null, ve(), ve = fe;
|
|
3681
3681
|
});
|
|
3682
3682
|
try {
|
|
3683
3683
|
for (; ; ) {
|
|
@@ -3737,8 +3737,8 @@ var ps, gs, ms, bs, ys, _s, ar = st(() => {
|
|
|
3737
3737
|
} } }), ee._fromList = Re;
|
|
3738
3738
|
function Re(S, P) {
|
|
3739
3739
|
if (P.length === 0) return null;
|
|
3740
|
-
let
|
|
3741
|
-
return P.objectMode ?
|
|
3740
|
+
let ve;
|
|
3741
|
+
return P.objectMode ? ve = P.buffer.shift() : !S || S >= P.length ? (P.decoder ? ve = P.buffer.join("") : P.buffer.length === 1 ? ve = P.buffer.first() : ve = P.buffer.concat(P.length), P.buffer.clear()) : ve = P.buffer.consume(S, P.decoder), ve;
|
|
3742
3742
|
}
|
|
3743
3743
|
function We(S) {
|
|
3744
3744
|
let P = S._readableState;
|
|
@@ -3748,8 +3748,8 @@ var ps, gs, ms, bs, ys, _s, ar = st(() => {
|
|
|
3748
3748
|
if (x("endReadableNT", S.endEmitted, S.length), !S.errored && !S.closeEmitted && !S.endEmitted && S.length === 0) {
|
|
3749
3749
|
if (S.endEmitted = !0, P.emit("end"), P.writable && P.allowHalfOpen === !1) o.nextTick(Je, P);
|
|
3750
3750
|
else if (S.autoDestroy) {
|
|
3751
|
-
let
|
|
3752
|
-
(!
|
|
3751
|
+
let ve = P._writableState;
|
|
3752
|
+
(!ve || ve.autoDestroy && (ve.finished || ve.writable === !1)) && P.destroy();
|
|
3753
3753
|
}
|
|
3754
3754
|
}
|
|
3755
3755
|
}
|
|
@@ -3768,8 +3768,8 @@ var ps, gs, ms, bs, ys, _s, ar = st(() => {
|
|
|
3768
3768
|
}, ee.toWeb = function(S, P) {
|
|
3769
3769
|
return Ft().newReadableStreamFromStreamReadable(S, P);
|
|
3770
3770
|
}, ee.wrap = function(S, P) {
|
|
3771
|
-
var
|
|
3772
|
-
return new ee({ objectMode: (
|
|
3771
|
+
var ve, Se;
|
|
3772
|
+
return new ee({ objectMode: (ve = (Se = S.readableObjectMode) !== null && Se !== void 0 ? Se : S.objectMode) !== null && ve !== void 0 ? ve : !0, ...P, destroy(Ie, nt) {
|
|
3773
3773
|
T.destroyer(S, Ie), nt(Ie);
|
|
3774
3774
|
} }).wrap(S);
|
|
3775
3775
|
};
|
|
@@ -3777,7 +3777,7 @@ var ps, gs, ms, bs, ys, _s, ar = st(() => {
|
|
|
3777
3777
|
ue(), ce(), he();
|
|
3778
3778
|
var o = lr(), { ArrayPrototypeSlice: a, Error: l, FunctionPrototypeSymbolHasInstance: r, ObjectDefineProperty: e, ObjectDefineProperties: n, ObjectSetPrototypeOf: t, StringPrototypeToLowerCase: s, Symbol: h, SymbolHasInstance: d } = Qe();
|
|
3779
3779
|
u.exports = de, de.WritableState = W;
|
|
3780
|
-
var { EventEmitter: p } = (ar(), Fe(Kt)), m = Yi().Stream, { Buffer: b } = (tt(), Fe(et)),
|
|
3780
|
+
var { EventEmitter: p } = (ar(), Fe(Kt)), m = Yi().Stream, { Buffer: b } = (tt(), Fe(et)), _ = pr(), { addAbortSignal: v } = Gr(), { getHighWaterMark: A, getDefaultHighWaterMark: y } = Jr(), { ERR_INVALID_ARG_TYPE: E, ERR_METHOD_NOT_IMPLEMENTED: N, ERR_MULTIPLE_CALLBACK: x, ERR_STREAM_CANNOT_PIPE: k, ERR_STREAM_DESTROYED: T, ERR_STREAM_ALREADY_FINISHED: M, ERR_STREAM_NULL_VALUES: G, ERR_STREAM_WRITE_AFTER_END: X, ERR_UNKNOWN_ENCODING: ae } = at().codes, { errorOrDestroy: O } = _;
|
|
3781
3781
|
t(de.prototype, m.prototype), t(de, m);
|
|
3782
3782
|
function Q() {
|
|
3783
3783
|
}
|
|
@@ -3798,7 +3798,7 @@ var ps, gs, ms, bs, ys, _s, ar = st(() => {
|
|
|
3798
3798
|
function de(B) {
|
|
3799
3799
|
let D = this instanceof Lt();
|
|
3800
3800
|
if (!D && !r(de, this)) return new de(B);
|
|
3801
|
-
this._writableState = new W(B, this, D), B && (typeof B.write == "function" && (this._write = B.write), typeof B.writev == "function" && (this._writev = B.writev), typeof B.destroy == "function" && (this._destroy = B.destroy), typeof B.final == "function" && (this._final = B.final), typeof B.construct == "function" && (this._construct = B.construct), B.signal &&
|
|
3801
|
+
this._writableState = new W(B, this, D), B && (typeof B.write == "function" && (this._write = B.write), typeof B.writev == "function" && (this._writev = B.writev), typeof B.destroy == "function" && (this._destroy = B.destroy), typeof B.final == "function" && (this._final = B.final), typeof B.construct == "function" && (this._construct = B.construct), B.signal && v(B.signal, this)), m.call(this, B), _.construct(this, () => {
|
|
3802
3802
|
let Y = this._writableState;
|
|
3803
3803
|
Y.writing || Ae(this, Y), $(this, Y);
|
|
3804
3804
|
});
|
|
@@ -3822,7 +3822,7 @@ var ps, gs, ms, bs, ys, _s, ar = st(() => {
|
|
|
3822
3822
|
else if (m._isUint8Array(D)) D = m._uint8ArrayToBuffer(D), Y = "buffer";
|
|
3823
3823
|
else throw new E("chunk", ["string", "Buffer", "Uint8Array"], D);
|
|
3824
3824
|
let le;
|
|
3825
|
-
return te.ending ? le = new X() : te.destroyed && (le = new T("write")), le ? (o.nextTick(ie, le), O(B, le, !0), le) : (te.pendingcb++,
|
|
3825
|
+
return te.ending ? le = new X() : te.destroyed && (le = new T("write")), le ? (o.nextTick(ie, le), O(B, le, !0), le) : (te.pendingcb++, _e(B, te, D, Y, ie));
|
|
3826
3826
|
}
|
|
3827
3827
|
de.prototype.write = function(B, D, Y) {
|
|
3828
3828
|
return ge(this, B, D, Y) === !0;
|
|
@@ -3835,7 +3835,7 @@ var ps, gs, ms, bs, ys, _s, ar = st(() => {
|
|
|
3835
3835
|
if (typeof B == "string" && (B = s(B)), !b.isEncoding(B)) throw new ae(B);
|
|
3836
3836
|
return this._writableState.defaultEncoding = B, this;
|
|
3837
3837
|
};
|
|
3838
|
-
function
|
|
3838
|
+
function _e(B, D, Y, ie, te) {
|
|
3839
3839
|
let le = D.objectMode ? 1 : Y.length;
|
|
3840
3840
|
D.length += le;
|
|
3841
3841
|
let F = D.length < D.highWaterMark;
|
|
@@ -3985,11 +3985,11 @@ var ps, gs, ms, bs, ys, _s, ar = st(() => {
|
|
|
3985
3985
|
} }, writableAborted: { __proto__: null, enumerable: !1, get: function() {
|
|
3986
3986
|
return !!(this._writableState.writable !== !1 && (this._writableState.destroyed || this._writableState.errored) && !this._writableState.finished);
|
|
3987
3987
|
} } });
|
|
3988
|
-
var H =
|
|
3988
|
+
var H = _.destroy;
|
|
3989
3989
|
de.prototype.destroy = function(B, D) {
|
|
3990
3990
|
let Y = this._writableState;
|
|
3991
3991
|
return !Y.destroyed && (Y.bufferedIndex < Y.buffered.length || Y[J].length) && o.nextTick(U, Y), H.call(this, B, D), this;
|
|
3992
|
-
}, de.prototype._undestroy =
|
|
3992
|
+
}, de.prototype._undestroy = _.undestroy, de.prototype._destroy = function(B, D) {
|
|
3993
3993
|
D(B);
|
|
3994
3994
|
}, de.prototype[p.captureRejectionSymbol] = function(B) {
|
|
3995
3995
|
this.destroy(B);
|
|
@@ -4005,7 +4005,7 @@ var ps, gs, ms, bs, ys, _s, ar = st(() => {
|
|
|
4005
4005
|
};
|
|
4006
4006
|
}), zu = be((i, u) => {
|
|
4007
4007
|
ue(), ce(), he();
|
|
4008
|
-
var o = lr(), a = (tt(), Fe(et)), { isReadable: l, isWritable: r, isIterable: e, isNodeStream: n, isReadableNodeStream: t, isWritableNodeStream: s, isDuplexNodeStream: h, isReadableStream: d, isWritableStream: p } = Nt(), m = Qt(), { AbortError: b, codes: { ERR_INVALID_ARG_TYPE:
|
|
4008
|
+
var o = lr(), a = (tt(), Fe(et)), { isReadable: l, isWritable: r, isIterable: e, isNodeStream: n, isReadableNodeStream: t, isWritableNodeStream: s, isDuplexNodeStream: h, isReadableStream: d, isWritableStream: p } = Nt(), m = Qt(), { AbortError: b, codes: { ERR_INVALID_ARG_TYPE: _, ERR_INVALID_RETURN_VALUE: v } } = at(), { destroyer: A } = pr(), y = Lt(), E = Xr(), N = Gi(), { createDeferredPromise: x } = ut(), k = _s(), T = globalThis.Blob || a.Blob, M = typeof T < "u" ? function(J) {
|
|
4009
4009
|
return J instanceof T;
|
|
4010
4010
|
} : function(J) {
|
|
4011
4011
|
return !1;
|
|
@@ -4022,16 +4022,16 @@ var ps, gs, ms, bs, ys, _s, ar = st(() => {
|
|
|
4022
4022
|
if (d(W)) return Q({ readable: E.fromWeb(W) });
|
|
4023
4023
|
if (p(W)) return Q({ writable: N.fromWeb(W) });
|
|
4024
4024
|
if (typeof W == "function") {
|
|
4025
|
-
let { value: ge, write:
|
|
4026
|
-
if (e(ge)) return k(ae, ge, { objectMode: !0, write:
|
|
4025
|
+
let { value: ge, write: _e, final: K, destroy: fe } = O(W);
|
|
4026
|
+
if (e(ge)) return k(ae, ge, { objectMode: !0, write: _e, final: K, destroy: fe });
|
|
4027
4027
|
let R = ge == null ? void 0 : ge.then;
|
|
4028
4028
|
if (typeof R == "function") {
|
|
4029
4029
|
let re, pe = X(R, ge, (U) => {
|
|
4030
|
-
if (U != null) throw new
|
|
4030
|
+
if (U != null) throw new v("nully", "body", U);
|
|
4031
4031
|
}, (U) => {
|
|
4032
4032
|
A(re, U);
|
|
4033
4033
|
});
|
|
4034
|
-
return re = new ae({ objectMode: !0, readable: !1, write:
|
|
4034
|
+
return re = new ae({ objectMode: !0, readable: !1, write: _e, final(U) {
|
|
4035
4035
|
K(async () => {
|
|
4036
4036
|
try {
|
|
4037
4037
|
await pe, o.nextTick(U, null);
|
|
@@ -4041,50 +4041,50 @@ var ps, gs, ms, bs, ys, _s, ar = st(() => {
|
|
|
4041
4041
|
});
|
|
4042
4042
|
}, destroy: fe });
|
|
4043
4043
|
}
|
|
4044
|
-
throw new
|
|
4044
|
+
throw new v("Iterable, AsyncIterable or AsyncFunction", me, ge);
|
|
4045
4045
|
}
|
|
4046
4046
|
if (M(W)) return J(W.arrayBuffer());
|
|
4047
4047
|
if (e(W)) return k(ae, W, { objectMode: !0, writable: !1 });
|
|
4048
4048
|
if (d(W == null ? void 0 : W.readable) && p(W == null ? void 0 : W.writable)) return ae.fromWeb(W);
|
|
4049
4049
|
if (typeof (W == null ? void 0 : W.writable) == "object" || typeof (W == null ? void 0 : W.readable) == "object") {
|
|
4050
|
-
let ge = W != null && W.readable ? t(W == null ? void 0 : W.readable) ? W == null ? void 0 : W.readable : J(W.readable) : void 0,
|
|
4051
|
-
return Q({ readable: ge, writable:
|
|
4050
|
+
let ge = W != null && W.readable ? t(W == null ? void 0 : W.readable) ? W == null ? void 0 : W.readable : J(W.readable) : void 0, _e = W != null && W.writable ? s(W == null ? void 0 : W.writable) ? W == null ? void 0 : W.writable : J(W.writable) : void 0;
|
|
4051
|
+
return Q({ readable: ge, writable: _e });
|
|
4052
4052
|
}
|
|
4053
4053
|
let de = W == null ? void 0 : W.then;
|
|
4054
4054
|
if (typeof de == "function") {
|
|
4055
4055
|
let ge;
|
|
4056
|
-
return X(de, W, (
|
|
4057
|
-
|
|
4058
|
-
}, (
|
|
4059
|
-
A(ge,
|
|
4056
|
+
return X(de, W, (_e) => {
|
|
4057
|
+
_e != null && ge.push(_e), ge.push(null);
|
|
4058
|
+
}, (_e) => {
|
|
4059
|
+
A(ge, _e);
|
|
4060
4060
|
}), ge = new ae({ objectMode: !0, writable: !1, read() {
|
|
4061
4061
|
} });
|
|
4062
4062
|
}
|
|
4063
|
-
throw new
|
|
4063
|
+
throw new _(me, ["Blob", "ReadableStream", "WritableStream", "Stream", "Iterable", "AsyncIterable", "Function", "{ readable, writable } pair", "Promise"], W);
|
|
4064
4064
|
};
|
|
4065
4065
|
function O(J) {
|
|
4066
4066
|
let { promise: W, resolve: me } = x(), de = new G(), ge = de.signal;
|
|
4067
4067
|
return { value: J(async function* () {
|
|
4068
4068
|
for (; ; ) {
|
|
4069
|
-
let
|
|
4069
|
+
let _e = W;
|
|
4070
4070
|
W = null;
|
|
4071
|
-
let { chunk: K, done: fe, cb: R } = await
|
|
4071
|
+
let { chunk: K, done: fe, cb: R } = await _e;
|
|
4072
4072
|
if (o.nextTick(R), fe) return;
|
|
4073
4073
|
if (ge.aborted) throw new b(void 0, { cause: ge.reason });
|
|
4074
4074
|
({ promise: W, resolve: me } = x()), yield K;
|
|
4075
4075
|
}
|
|
4076
|
-
}(), { signal: ge }), write(
|
|
4076
|
+
}(), { signal: ge }), write(_e, K, fe) {
|
|
4077
4077
|
let R = me;
|
|
4078
|
-
me = null, R({ chunk:
|
|
4079
|
-
}, final(
|
|
4078
|
+
me = null, R({ chunk: _e, done: !1, cb: fe });
|
|
4079
|
+
}, final(_e) {
|
|
4080
4080
|
let K = me;
|
|
4081
|
-
me = null, K({ done: !0, cb:
|
|
4082
|
-
}, destroy(
|
|
4083
|
-
de.abort(), K(
|
|
4081
|
+
me = null, K({ done: !0, cb: _e });
|
|
4082
|
+
}, destroy(_e, K) {
|
|
4083
|
+
de.abort(), K(_e);
|
|
4084
4084
|
} };
|
|
4085
4085
|
}
|
|
4086
4086
|
function Q(J) {
|
|
4087
|
-
let W = J.readable && typeof J.readable.read != "function" ? E.wrap(J.readable) : J.readable, me = J.writable, de = !!l(W), ge = !!r(me),
|
|
4087
|
+
let W = J.readable && typeof J.readable.read != "function" ? E.wrap(J.readable) : J.readable, me = J.writable, de = !!l(W), ge = !!r(me), _e, K, fe, R, re;
|
|
4088
4088
|
function pe(U) {
|
|
4089
4089
|
let Ae = R;
|
|
4090
4090
|
R = null, Ae ? Ae(U) : U && re.destroy(U);
|
|
@@ -4092,13 +4092,13 @@ var ps, gs, ms, bs, ys, _s, ar = st(() => {
|
|
|
4092
4092
|
return re = new ae({ readableObjectMode: !!(W != null && W.readableObjectMode), writableObjectMode: !!(me != null && me.writableObjectMode), readable: de, writable: ge }), ge && (m(me, (U) => {
|
|
4093
4093
|
ge = !1, U && A(W, U), pe(U);
|
|
4094
4094
|
}), re._write = function(U, Ae, V) {
|
|
4095
|
-
me.write(U, Ae) ? V() :
|
|
4095
|
+
me.write(U, Ae) ? V() : _e = V;
|
|
4096
4096
|
}, re._final = function(U) {
|
|
4097
4097
|
me.end(), K = U;
|
|
4098
4098
|
}, me.on("drain", function() {
|
|
4099
|
-
if (
|
|
4100
|
-
let U =
|
|
4101
|
-
|
|
4099
|
+
if (_e) {
|
|
4100
|
+
let U = _e;
|
|
4101
|
+
_e = null, U();
|
|
4102
4102
|
}
|
|
4103
4103
|
}), me.on("finish", function() {
|
|
4104
4104
|
if (K) {
|
|
@@ -4124,7 +4124,7 @@ var ps, gs, ms, bs, ys, _s, ar = st(() => {
|
|
|
4124
4124
|
if (!re.push(U)) return;
|
|
4125
4125
|
}
|
|
4126
4126
|
}), re._destroy = function(U, Ae) {
|
|
4127
|
-
!U && R !== null && (U = new b()), fe = null,
|
|
4127
|
+
!U && R !== null && (U = new b()), fe = null, _e = null, K = null, R === null ? Ae(U) : (R = Ae, A(me, U), A(W, U));
|
|
4128
4128
|
}, re;
|
|
4129
4129
|
}
|
|
4130
4130
|
}), Lt = be((i, u) => {
|
|
@@ -4189,13 +4189,13 @@ var ps, gs, ms, bs, ys, _s, ar = st(() => {
|
|
|
4189
4189
|
t.prototype._final = s, t.prototype._transform = function(d, p, m) {
|
|
4190
4190
|
throw new l("_transform()");
|
|
4191
4191
|
}, t.prototype._write = function(d, p, m) {
|
|
4192
|
-
let b = this._readableState,
|
|
4192
|
+
let b = this._readableState, _ = this._writableState, v = b.length;
|
|
4193
4193
|
this._transform(d, p, (A, y) => {
|
|
4194
4194
|
if (A) {
|
|
4195
4195
|
m(A);
|
|
4196
4196
|
return;
|
|
4197
4197
|
}
|
|
4198
|
-
y != null && this.push(y),
|
|
4198
|
+
y != null && this.push(y), _.ended || v === b.length || b.length < b.highWaterMark ? m() : this[n] = m;
|
|
4199
4199
|
});
|
|
4200
4200
|
}, t.prototype._read = function() {
|
|
4201
4201
|
if (this[n]) {
|
|
@@ -4218,7 +4218,7 @@ var ps, gs, ms, bs, ys, _s, ar = st(() => {
|
|
|
4218
4218
|
};
|
|
4219
4219
|
}), Ji = be((i, u) => {
|
|
4220
4220
|
ue(), ce(), he();
|
|
4221
|
-
var o = lr(), { ArrayIsArray: a, Promise: l, SymbolAsyncIterator: r, SymbolDispose: e } = Qe(), n = Qt(), { once: t } = ut(), s = pr(), h = Lt(), { aggregateTwoErrors: d, codes: { ERR_INVALID_ARG_TYPE: p, ERR_INVALID_RETURN_VALUE: m, ERR_MISSING_ARGS: b, ERR_STREAM_DESTROYED:
|
|
4221
|
+
var o = lr(), { ArrayIsArray: a, Promise: l, SymbolAsyncIterator: r, SymbolDispose: e } = Qe(), n = Qt(), { once: t } = ut(), s = pr(), h = Lt(), { aggregateTwoErrors: d, codes: { ERR_INVALID_ARG_TYPE: p, ERR_INVALID_RETURN_VALUE: m, ERR_MISSING_ARGS: b, ERR_STREAM_DESTROYED: _, ERR_STREAM_PREMATURE_CLOSE: v }, AbortError: A } = at(), { validateFunction: y, validateAbortSignal: E } = Cr(), { isIterable: N, isReadable: x, isReadableNodeStream: k, isNodeStream: T, isTransformStream: M, isWebStream: G, isReadableStream: X, isReadableFinished: ae } = Nt(), O = globalThis.AbortController || Ir().AbortController, Q, J, W;
|
|
4222
4222
|
function me(U, Ae, V) {
|
|
4223
4223
|
let L = !1;
|
|
4224
4224
|
U.on("close", () => {
|
|
@@ -4228,7 +4228,7 @@ var ps, gs, ms, bs, ys, _s, ar = st(() => {
|
|
|
4228
4228
|
L = !$;
|
|
4229
4229
|
});
|
|
4230
4230
|
return { destroy: ($) => {
|
|
4231
|
-
L || (L = !0, s.destroyer(U, $ || new
|
|
4231
|
+
L || (L = !0, s.destroyer(U, $ || new _("pipe")));
|
|
4232
4232
|
}, cleanup: Z };
|
|
4233
4233
|
}
|
|
4234
4234
|
function de(U) {
|
|
@@ -4236,10 +4236,10 @@ var ps, gs, ms, bs, ys, _s, ar = st(() => {
|
|
|
4236
4236
|
}
|
|
4237
4237
|
function ge(U) {
|
|
4238
4238
|
if (N(U)) return U;
|
|
4239
|
-
if (k(U)) return
|
|
4239
|
+
if (k(U)) return _e(U);
|
|
4240
4240
|
throw new p("val", ["Readable", "Iterable", "AsyncIterable"], U);
|
|
4241
4241
|
}
|
|
4242
|
-
async function*
|
|
4242
|
+
async function* _e(U) {
|
|
4243
4243
|
J || (J = Xr()), yield* J.prototype[r].call(U);
|
|
4244
4244
|
}
|
|
4245
4245
|
async function K(U, Ae, V, { end: L }) {
|
|
@@ -4371,7 +4371,7 @@ var ps, gs, ms, bs, ys, _s, ar = st(() => {
|
|
|
4371
4371
|
function pe(U, Ae, V, { end: L }) {
|
|
4372
4372
|
let Z = !1;
|
|
4373
4373
|
if (Ae.on("close", () => {
|
|
4374
|
-
Z || V(new
|
|
4374
|
+
Z || V(new v());
|
|
4375
4375
|
}), U.pipe(Ae, { end: !1 }), L) {
|
|
4376
4376
|
let $ = function() {
|
|
4377
4377
|
Z = !0, Ae.end();
|
|
@@ -4386,25 +4386,25 @@ var ps, gs, ms, bs, ys, _s, ar = st(() => {
|
|
|
4386
4386
|
u.exports = { pipelineImpl: re, pipeline: R };
|
|
4387
4387
|
}), Ss = be((i, u) => {
|
|
4388
4388
|
ue(), ce(), he();
|
|
4389
|
-
var { pipeline: o } = Ji(), a = Lt(), { destroyer: l } = pr(), { isNodeStream: r, isReadable: e, isWritable: n, isWebStream: t, isTransformStream: s, isWritableStream: h, isReadableStream: d } = Nt(), { AbortError: p, codes: { ERR_INVALID_ARG_VALUE: m, ERR_MISSING_ARGS: b } } = at(),
|
|
4390
|
-
u.exports = function(...
|
|
4391
|
-
if (
|
|
4392
|
-
if (
|
|
4393
|
-
let A = [...
|
|
4394
|
-
if (typeof
|
|
4395
|
-
let O =
|
|
4396
|
-
|
|
4397
|
-
}
|
|
4398
|
-
for (let O = 0; O <
|
|
4399
|
-
if (O <
|
|
4400
|
-
if (O > 0 && !(n(
|
|
4389
|
+
var { pipeline: o } = Ji(), a = Lt(), { destroyer: l } = pr(), { isNodeStream: r, isReadable: e, isWritable: n, isWebStream: t, isTransformStream: s, isWritableStream: h, isReadableStream: d } = Nt(), { AbortError: p, codes: { ERR_INVALID_ARG_VALUE: m, ERR_MISSING_ARGS: b } } = at(), _ = Qt();
|
|
4390
|
+
u.exports = function(...v) {
|
|
4391
|
+
if (v.length === 0) throw new b("streams");
|
|
4392
|
+
if (v.length === 1) return a.from(v[0]);
|
|
4393
|
+
let A = [...v];
|
|
4394
|
+
if (typeof v[0] == "function" && (v[0] = a.from(v[0])), typeof v[v.length - 1] == "function") {
|
|
4395
|
+
let O = v.length - 1;
|
|
4396
|
+
v[O] = a.from(v[O]);
|
|
4397
|
+
}
|
|
4398
|
+
for (let O = 0; O < v.length; ++O) if (!(!r(v[O]) && !t(v[O]))) {
|
|
4399
|
+
if (O < v.length - 1 && !(e(v[O]) || d(v[O]) || s(v[O]))) throw new m(`streams[${O}]`, A[O], "must be readable");
|
|
4400
|
+
if (O > 0 && !(n(v[O]) || h(v[O]) || s(v[O]))) throw new m(`streams[${O}]`, A[O], "must be writable");
|
|
4401
4401
|
}
|
|
4402
4402
|
let y, E, N, x, k;
|
|
4403
4403
|
function T(O) {
|
|
4404
4404
|
let Q = x;
|
|
4405
4405
|
x = null, Q ? Q(O) : O ? k.destroy(O) : !ae && !X && k.destroy();
|
|
4406
4406
|
}
|
|
4407
|
-
let M =
|
|
4407
|
+
let M = v[0], G = o(v, T), X = !!(n(M) || h(M) || s(M)), ae = !!(e(G) || d(G) || s(G));
|
|
4408
4408
|
if (k = new a({ writableObjectMode: !!(M != null && M.writableObjectMode), readableObjectMode: !!(G != null && G.readableObjectMode), writable: X, readable: ae }), X) {
|
|
4409
4409
|
if (r(M)) k._write = function(Q, J, W) {
|
|
4410
4410
|
M.write(Q, J) ? W() : y = W;
|
|
@@ -4435,7 +4435,7 @@ var ps, gs, ms, bs, ys, _s, ar = st(() => {
|
|
|
4435
4435
|
};
|
|
4436
4436
|
}
|
|
4437
4437
|
let O = s(G) ? G.readable : G;
|
|
4438
|
-
|
|
4438
|
+
_(O, () => {
|
|
4439
4439
|
if (E) {
|
|
4440
4440
|
let Q = E;
|
|
4441
4441
|
E = null, Q();
|
|
@@ -4482,11 +4482,11 @@ var ps, gs, ms, bs, ys, _s, ar = st(() => {
|
|
|
4482
4482
|
};
|
|
4483
4483
|
}), Ku = be((i, u) => {
|
|
4484
4484
|
ue(), ce(), he();
|
|
4485
|
-
var o = globalThis.AbortController || Ir().AbortController, { codes: { ERR_INVALID_ARG_VALUE: a, ERR_INVALID_ARG_TYPE: l, ERR_MISSING_ARGS: r, ERR_OUT_OF_RANGE: e }, AbortError: n } = at(), { validateAbortSignal: t, validateInteger: s, validateObject: h } = Cr(), d = Qe().Symbol("kWeak"), p = Qe().Symbol("kResistStopPropagation"), { finished: m } = Qt(), b = Ss(), { addAbortSignalNoValidate:
|
|
4485
|
+
var o = globalThis.AbortController || Ir().AbortController, { codes: { ERR_INVALID_ARG_VALUE: a, ERR_INVALID_ARG_TYPE: l, ERR_MISSING_ARGS: r, ERR_OUT_OF_RANGE: e }, AbortError: n } = at(), { validateAbortSignal: t, validateInteger: s, validateObject: h } = Cr(), d = Qe().Symbol("kWeak"), p = Qe().Symbol("kResistStopPropagation"), { finished: m } = Qt(), b = Ss(), { addAbortSignalNoValidate: _ } = Gr(), { isWritable: v, isNodeStream: A } = Nt(), { deprecate: y } = ut(), { ArrayPrototypePush: E, Boolean: N, MathFloor: x, Number: k, NumberIsNaN: T, Promise: M, PromiseReject: G, PromiseResolve: X, PromisePrototypeThen: ae, Symbol: O } = Qe(), Q = O("kEmpty"), J = O("kEof");
|
|
4486
4486
|
function W($, q) {
|
|
4487
|
-
if (q != null && h(q, "options"), (q == null ? void 0 : q.signal) != null && t(q.signal, "options.signal"), A($) && !
|
|
4487
|
+
if (q != null && h(q, "options"), (q == null ? void 0 : q.signal) != null && t(q.signal, "options.signal"), A($) && !v($)) throw new a("stream", $, "must be writable");
|
|
4488
4488
|
let H = b(this, $);
|
|
4489
|
-
return q != null && q.signal &&
|
|
4489
|
+
return q != null && q.signal && _(q.signal, H), H;
|
|
4490
4490
|
}
|
|
4491
4491
|
function me($, q) {
|
|
4492
4492
|
if (typeof $ != "function") throw new l("fn", ["Function", "AsyncFunction"], $);
|
|
@@ -4560,7 +4560,7 @@ var ps, gs, ms, bs, ys, _s, ar = st(() => {
|
|
|
4560
4560
|
for await (let H of R.call(this, $, q)) return !0;
|
|
4561
4561
|
return !1;
|
|
4562
4562
|
}
|
|
4563
|
-
async function
|
|
4563
|
+
async function _e($, q = void 0) {
|
|
4564
4564
|
if (typeof $ != "function") throw new l("fn", ["Function", "AsyncFunction"], $);
|
|
4565
4565
|
return !await ge.call(this, async (...H) => !await $(...H), q);
|
|
4566
4566
|
}
|
|
@@ -4657,27 +4657,27 @@ var ps, gs, ms, bs, ys, _s, ar = st(() => {
|
|
|
4657
4657
|
}
|
|
4658
4658
|
}).call(this);
|
|
4659
4659
|
}
|
|
4660
|
-
u.exports.streamReturningOperators = { asIndexedPairs: y(de, "readable.asIndexedPairs will be removed in a future version."), drop: L, filter: R, flatMap: Ae, map: me, take: Z, compose: W }, u.exports.promiseReturningOperators = { every:
|
|
4660
|
+
u.exports.streamReturningOperators = { asIndexedPairs: y(de, "readable.asIndexedPairs will be removed in a future version."), drop: L, filter: R, flatMap: Ae, map: me, take: Z, compose: W }, u.exports.promiseReturningOperators = { every: _e, forEach: fe, reduce: pe, toArray: U, some: ge, find: K };
|
|
4661
4661
|
}), As = be((i, u) => {
|
|
4662
4662
|
ue(), ce(), he();
|
|
4663
4663
|
var { ArrayPrototypePop: o, Promise: a } = Qe(), { isIterable: l, isNodeStream: r, isWebStream: e } = Nt(), { pipelineImpl: n } = Ji(), { finished: t } = Qt();
|
|
4664
4664
|
ks();
|
|
4665
4665
|
function s(...h) {
|
|
4666
4666
|
return new a((d, p) => {
|
|
4667
|
-
let m, b,
|
|
4668
|
-
if (
|
|
4669
|
-
let
|
|
4670
|
-
m =
|
|
4667
|
+
let m, b, _ = h[h.length - 1];
|
|
4668
|
+
if (_ && typeof _ == "object" && !r(_) && !l(_) && !e(_)) {
|
|
4669
|
+
let v = o(h);
|
|
4670
|
+
m = v.signal, b = v.end;
|
|
4671
4671
|
}
|
|
4672
|
-
n(h, (
|
|
4673
|
-
|
|
4672
|
+
n(h, (v, A) => {
|
|
4673
|
+
v ? p(v) : d(A);
|
|
4674
4674
|
}, { signal: m, end: b });
|
|
4675
4675
|
});
|
|
4676
4676
|
}
|
|
4677
4677
|
u.exports = { finished: t, pipeline: s };
|
|
4678
4678
|
}), ks = be((i, u) => {
|
|
4679
4679
|
ue(), ce(), he();
|
|
4680
|
-
var { Buffer: o } = (tt(), Fe(et)), { ObjectDefineProperty: a, ObjectKeys: l, ReflectApply: r } = Qe(), { promisify: { custom: e } } = ut(), { streamReturningOperators: n, promiseReturningOperators: t } = Ku(), { codes: { ERR_ILLEGAL_CONSTRUCTOR: s } } = at(), h = Ss(), { setDefaultHighWaterMark: d, getDefaultHighWaterMark: p } = Jr(), { pipeline: m } = Ji(), { destroyer: b } = pr(),
|
|
4680
|
+
var { Buffer: o } = (tt(), Fe(et)), { ObjectDefineProperty: a, ObjectKeys: l, ReflectApply: r } = Qe(), { promisify: { custom: e } } = ut(), { streamReturningOperators: n, promiseReturningOperators: t } = Ku(), { codes: { ERR_ILLEGAL_CONSTRUCTOR: s } } = at(), h = Ss(), { setDefaultHighWaterMark: d, getDefaultHighWaterMark: p } = Jr(), { pipeline: m } = Ji(), { destroyer: b } = pr(), _ = Qt(), v = As(), A = Nt(), y = u.exports = Yi().Stream;
|
|
4681
4681
|
y.isDestroyed = A.isDestroyed, y.isDisturbed = A.isDisturbed, y.isErrored = A.isErrored, y.isReadable = A.isReadable, y.isWritable = A.isWritable, y.Readable = Xr();
|
|
4682
4682
|
for (let N of l(n)) {
|
|
4683
4683
|
let x = function(...T) {
|
|
@@ -4695,12 +4695,12 @@ var ps, gs, ms, bs, ys, _s, ar = st(() => {
|
|
|
4695
4695
|
}
|
|
4696
4696
|
y.Writable = Gi(), y.Duplex = Lt(), y.Transform = ws(), y.PassThrough = Es(), y.pipeline = m;
|
|
4697
4697
|
var { addAbortSignal: E } = Gr();
|
|
4698
|
-
y.addAbortSignal = E, y.finished =
|
|
4699
|
-
return
|
|
4698
|
+
y.addAbortSignal = E, y.finished = _, y.destroy = b, y.compose = h, y.setDefaultHighWaterMark = d, y.getDefaultHighWaterMark = p, a(y, "promises", { __proto__: null, configurable: !0, enumerable: !0, get() {
|
|
4699
|
+
return v;
|
|
4700
4700
|
} }), a(m, e, { __proto__: null, enumerable: !0, get() {
|
|
4701
|
-
return
|
|
4702
|
-
} }), a(
|
|
4703
|
-
return
|
|
4701
|
+
return v.pipeline;
|
|
4702
|
+
} }), a(_, e, { __proto__: null, enumerable: !0, get() {
|
|
4703
|
+
return v.finished;
|
|
4704
4704
|
} }), y.Stream = y, y._isUint8Array = function(N) {
|
|
4705
4705
|
return N instanceof Uint8Array;
|
|
4706
4706
|
}, y._uint8ArrayToBuffer = function(N) {
|
|
@@ -4757,19 +4757,19 @@ var ps, gs, ms, bs, ys, _s, ar = st(() => {
|
|
|
4757
4757
|
let s = !!r, h = this._offset(n), d = t - n, p = d, m = s && e || 0, b = h[1];
|
|
4758
4758
|
if (n === 0 && t === this.length) {
|
|
4759
4759
|
if (!s) return this._bufs.length === 1 ? this._bufs[0] : o.concat(this._bufs, this.length);
|
|
4760
|
-
for (let
|
|
4760
|
+
for (let _ = 0; _ < this._bufs.length; _++) this._bufs[_].copy(r, m), m += this._bufs[_].length;
|
|
4761
4761
|
return r;
|
|
4762
4762
|
}
|
|
4763
4763
|
if (p <= this._bufs[h[0]].length - b) return s ? this._bufs[h[0]].copy(r, e, b, b + p) : this._bufs[h[0]].slice(b, b + p);
|
|
4764
4764
|
s || (r = o.allocUnsafe(d));
|
|
4765
|
-
for (let
|
|
4766
|
-
let
|
|
4767
|
-
if (p >
|
|
4765
|
+
for (let _ = h[0]; _ < this._bufs.length; _++) {
|
|
4766
|
+
let v = this._bufs[_].length - b;
|
|
4767
|
+
if (p > v) this._bufs[_].copy(r, m, b), m += v;
|
|
4768
4768
|
else {
|
|
4769
|
-
this._bufs[
|
|
4769
|
+
this._bufs[_].copy(r, m, b, b + p), m += v;
|
|
4770
4770
|
break;
|
|
4771
4771
|
}
|
|
4772
|
-
p -=
|
|
4772
|
+
p -= v, b && (b = 0);
|
|
4773
4773
|
}
|
|
4774
4774
|
return r.length > m ? r.slice(0, m) : r;
|
|
4775
4775
|
}, l.prototype.shallowSlice = function(r, e) {
|
|
@@ -4915,8 +4915,8 @@ var ps, gs, ms, bs, ys, _s, ar = st(() => {
|
|
|
4915
4915
|
if (p = String(p), !(p.length > 100)) {
|
|
4916
4916
|
var m = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(p);
|
|
4917
4917
|
if (m) {
|
|
4918
|
-
var b = parseFloat(m[1]),
|
|
4919
|
-
switch (
|
|
4918
|
+
var b = parseFloat(m[1]), _ = (m[2] || "ms").toLowerCase();
|
|
4919
|
+
switch (_) {
|
|
4920
4920
|
case "years":
|
|
4921
4921
|
case "year":
|
|
4922
4922
|
case "yrs":
|
|
@@ -4969,9 +4969,9 @@ var ps, gs, ms, bs, ys, _s, ar = st(() => {
|
|
|
4969
4969
|
var m = Math.abs(p);
|
|
4970
4970
|
return m >= r ? d(p, m, r, "day") : m >= l ? d(p, m, l, "hour") : m >= a ? d(p, m, a, "minute") : m >= o ? d(p, m, o, "second") : p + " ms";
|
|
4971
4971
|
}
|
|
4972
|
-
function d(p, m, b,
|
|
4973
|
-
var
|
|
4974
|
-
return Math.round(p / b) + " " +
|
|
4972
|
+
function d(p, m, b, _) {
|
|
4973
|
+
var v = m >= b * 1.5;
|
|
4974
|
+
return Math.round(p / b) + " " + _ + (v ? "s" : "");
|
|
4975
4975
|
}
|
|
4976
4976
|
}), Zu = be((i, u) => {
|
|
4977
4977
|
ue(), ce(), he();
|
|
@@ -4981,12 +4981,12 @@ var ps, gs, ms, bs, ys, _s, ar = st(() => {
|
|
|
4981
4981
|
}), r.names = [], r.skips = [], r.formatters = {};
|
|
4982
4982
|
function l(m) {
|
|
4983
4983
|
let b = 0;
|
|
4984
|
-
for (let
|
|
4984
|
+
for (let _ = 0; _ < m.length; _++) b = (b << 5) - b + m.charCodeAt(_), b |= 0;
|
|
4985
4985
|
return r.colors[Math.abs(b) % r.colors.length];
|
|
4986
4986
|
}
|
|
4987
4987
|
r.selectColor = l;
|
|
4988
4988
|
function r(m) {
|
|
4989
|
-
let b,
|
|
4989
|
+
let b, _ = null, v, A;
|
|
4990
4990
|
function y(...E) {
|
|
4991
4991
|
if (!y.enabled) return;
|
|
4992
4992
|
let N = y, x = Number(/* @__PURE__ */ new Date()), k = x - (b || x);
|
|
@@ -5003,26 +5003,26 @@ var ps, gs, ms, bs, ys, _s, ar = st(() => {
|
|
|
5003
5003
|
return M;
|
|
5004
5004
|
}), r.formatArgs.call(N, E), (N.log || r.log).apply(N, E);
|
|
5005
5005
|
}
|
|
5006
|
-
return y.namespace = m, y.useColors = r.useColors(), y.color = r.selectColor(m), y.extend = e, y.destroy = r.destroy, Object.defineProperty(y, "enabled", { enumerable: !0, configurable: !1, get: () =>
|
|
5007
|
-
|
|
5006
|
+
return y.namespace = m, y.useColors = r.useColors(), y.color = r.selectColor(m), y.extend = e, y.destroy = r.destroy, Object.defineProperty(y, "enabled", { enumerable: !0, configurable: !1, get: () => _ !== null ? _ : (v !== r.namespaces && (v = r.namespaces, A = r.enabled(m)), A), set: (E) => {
|
|
5007
|
+
_ = E;
|
|
5008
5008
|
} }), typeof r.init == "function" && r.init(y), y;
|
|
5009
5009
|
}
|
|
5010
5010
|
function e(m, b) {
|
|
5011
|
-
let
|
|
5012
|
-
return
|
|
5011
|
+
let _ = r(this.namespace + (typeof b > "u" ? ":" : b) + m);
|
|
5012
|
+
return _.log = this.log, _;
|
|
5013
5013
|
}
|
|
5014
5014
|
function n(m) {
|
|
5015
5015
|
r.save(m), r.namespaces = m, r.names = [], r.skips = [];
|
|
5016
5016
|
let b = (typeof m == "string" ? m : "").trim().replace(" ", ",").split(",").filter(Boolean);
|
|
5017
|
-
for (let
|
|
5017
|
+
for (let _ of b) _[0] === "-" ? r.skips.push(_.slice(1)) : r.names.push(_);
|
|
5018
5018
|
}
|
|
5019
5019
|
function t(m, b) {
|
|
5020
|
-
let
|
|
5021
|
-
for (;
|
|
5022
|
-
else if (A !== -1)
|
|
5020
|
+
let _ = 0, v = 0, A = -1, y = 0;
|
|
5021
|
+
for (; _ < m.length; ) if (v < b.length && (b[v] === m[_] || b[v] === "*")) b[v] === "*" ? (A = v, y = _, v++) : (_++, v++);
|
|
5022
|
+
else if (A !== -1) v = A + 1, y++, _ = y;
|
|
5023
5023
|
else return !1;
|
|
5024
|
-
for (;
|
|
5025
|
-
return
|
|
5024
|
+
for (; v < b.length && b[v] === "*"; ) v++;
|
|
5025
|
+
return v === b.length;
|
|
5026
5026
|
}
|
|
5027
5027
|
function s() {
|
|
5028
5028
|
let m = [...r.names, ...r.skips.map((b) => "-" + b)].join(",");
|
|
@@ -5171,18 +5171,18 @@ var ps, gs, ms, bs, ys, _s, ar = st(() => {
|
|
|
5171
5171
|
}
|
|
5172
5172
|
_parseConnect() {
|
|
5173
5173
|
e("_parseConnect");
|
|
5174
|
-
let s, h, d, p, m = {}, b = this.packet,
|
|
5175
|
-
if (
|
|
5176
|
-
if (
|
|
5177
|
-
if (b.protocolId =
|
|
5174
|
+
let s, h, d, p, m = {}, b = this.packet, _ = this._parseString();
|
|
5175
|
+
if (_ === null) return this._emitError(new Error("Cannot parse protocolId"));
|
|
5176
|
+
if (_ !== "MQTT" && _ !== "MQIsdp") return this._emitError(new Error("Invalid protocolId"));
|
|
5177
|
+
if (b.protocolId = _, this._pos >= this._list.length) return this._emitError(new Error("Packet too short"));
|
|
5178
5178
|
if (b.protocolVersion = this._list.readUInt8(this._pos), b.protocolVersion >= 128 && (b.bridgeMode = !0, b.protocolVersion = b.protocolVersion - 128), b.protocolVersion !== 3 && b.protocolVersion !== 4 && b.protocolVersion !== 5) return this._emitError(new Error("Invalid protocol version"));
|
|
5179
5179
|
if (this._pos++, this._pos >= this._list.length) return this._emitError(new Error("Packet too short"));
|
|
5180
5180
|
if (this._list.readUInt8(this._pos) & 1) return this._emitError(new Error("Connect flag bit 0 must be 0, but got 1"));
|
|
5181
5181
|
m.username = this._list.readUInt8(this._pos) & r.USERNAME_MASK, m.password = this._list.readUInt8(this._pos) & r.PASSWORD_MASK, m.will = this._list.readUInt8(this._pos) & r.WILL_FLAG_MASK;
|
|
5182
|
-
let
|
|
5183
|
-
if (m.will) b.will = {}, b.will.retain =
|
|
5182
|
+
let v = !!(this._list.readUInt8(this._pos) & r.WILL_RETAIN_MASK), A = (this._list.readUInt8(this._pos) & r.WILL_QOS_MASK) >> r.WILL_QOS_SHIFT;
|
|
5183
|
+
if (m.will) b.will = {}, b.will.retain = v, b.will.qos = A;
|
|
5184
5184
|
else {
|
|
5185
|
-
if (
|
|
5185
|
+
if (v) return this._emitError(new Error("Will Retain Flag must be set to zero when Will Flag is set to 0"));
|
|
5186
5186
|
if (A) return this._emitError(new Error("Will QoS must be set to zero when Will Flag is set to 0"));
|
|
5187
5187
|
}
|
|
5188
5188
|
if (b.clean = (this._list.readUInt8(this._pos) & r.CLEAN_SESSION_MASK) !== 0, this._pos++, b.keepalive = this._parseNum(), b.keepalive === -1) return this._emitError(new Error("Packet too short"));
|
|
@@ -5243,7 +5243,7 @@ var ps, gs, ms, bs, ys, _s, ar = st(() => {
|
|
|
5243
5243
|
}
|
|
5244
5244
|
_parseSubscribe() {
|
|
5245
5245
|
e("_parseSubscribe");
|
|
5246
|
-
let s = this.packet, h, d, p, m, b,
|
|
5246
|
+
let s = this.packet, h, d, p, m, b, _, v;
|
|
5247
5247
|
if (s.subscriptions = [], !!this._parseMessageId()) {
|
|
5248
5248
|
if (this.settings.protocolVersion === 5) {
|
|
5249
5249
|
let A = this._parseProperties();
|
|
@@ -5257,8 +5257,8 @@ var ps, gs, ms, bs, ys, _s, ar = st(() => {
|
|
|
5257
5257
|
if (d & 192) return this._emitError(new Error("Invalid subscribe topic flag bits, bits 7-6 must be 0"));
|
|
5258
5258
|
} else if (d & 252) return this._emitError(new Error("Invalid subscribe topic flag bits, bits 7-2 must be 0"));
|
|
5259
5259
|
if (p = d & r.SUBSCRIBE_OPTIONS_QOS_MASK, p > 2) return this._emitError(new Error("Invalid subscribe QoS, must be <= 2"));
|
|
5260
|
-
if (
|
|
5261
|
-
|
|
5260
|
+
if (_ = (d >> r.SUBSCRIBE_OPTIONS_NL_SHIFT & r.SUBSCRIBE_OPTIONS_NL_MASK) !== 0, b = (d >> r.SUBSCRIBE_OPTIONS_RAP_SHIFT & r.SUBSCRIBE_OPTIONS_RAP_MASK) !== 0, m = d >> r.SUBSCRIBE_OPTIONS_RH_SHIFT & r.SUBSCRIBE_OPTIONS_RH_MASK, m > 2) return this._emitError(new Error("Invalid retain handling, must be <= 2"));
|
|
5261
|
+
v = { topic: h, qos: p }, this.settings.protocolVersion === 5 ? (v.nl = _, v.rap = b, v.rh = m) : this.settings.bridgeMode && (v.rh = 0, v.rap = !0, v.nl = !0), e("_parseSubscribe: push subscription `%s` to subscription", v), s.subscriptions.push(v);
|
|
5262
5262
|
}
|
|
5263
5263
|
}
|
|
5264
5264
|
}
|
|
@@ -5383,15 +5383,15 @@ var ps, gs, ms, bs, ys, _s, ar = st(() => {
|
|
|
5383
5383
|
}
|
|
5384
5384
|
_parseVarByteNum(s) {
|
|
5385
5385
|
e("_parseVarByteNum");
|
|
5386
|
-
let h = 4, d = 0, p = 1, m = 0, b = !1,
|
|
5387
|
-
for (; d < h &&
|
|
5388
|
-
if (
|
|
5386
|
+
let h = 4, d = 0, p = 1, m = 0, b = !1, _, v = this._pos ? this._pos : 0;
|
|
5387
|
+
for (; d < h && v + d < this._list.length; ) {
|
|
5388
|
+
if (_ = this._list.readUInt8(v + d++), m += p * (_ & r.VARBYTEINT_MASK), p *= 128, (_ & r.VARBYTEINT_FIN_MASK) === 0) {
|
|
5389
5389
|
b = !0;
|
|
5390
5390
|
break;
|
|
5391
5391
|
}
|
|
5392
5392
|
if (this._list.length <= d) break;
|
|
5393
5393
|
}
|
|
5394
|
-
return !b && d === h && this._list.length >= d && this._emitError(new Error("Invalid variable byte integer")),
|
|
5394
|
+
return !b && d === h && this._list.length >= d && this._emitError(new Error("Invalid variable byte integer")), v && (this._pos += d), b ? s ? b = { bytes: d, value: m } : b = m : b = !1, e("_parseVarByteNum: result: %o", b), b;
|
|
5395
5395
|
}
|
|
5396
5396
|
_parseByte() {
|
|
5397
5397
|
let s;
|
|
@@ -5430,8 +5430,8 @@ var ps, gs, ms, bs, ys, _s, ar = st(() => {
|
|
|
5430
5430
|
let b = this._parseByType(r.propertiesTypes[m]);
|
|
5431
5431
|
if (d[m][b.name]) if (Array.isArray(d[m][b.name])) d[m][b.name].push(b.value);
|
|
5432
5432
|
else {
|
|
5433
|
-
let
|
|
5434
|
-
d[m][b.name] = [
|
|
5433
|
+
let _ = d[m][b.name];
|
|
5434
|
+
d[m][b.name] = [_], d[m][b.name].push(b.value);
|
|
5435
5435
|
}
|
|
5436
5436
|
else d[m][b.name] = b.value;
|
|
5437
5437
|
continue;
|
|
@@ -5500,9 +5500,9 @@ var ps, gs, ms, bs, ys, _s, ar = st(() => {
|
|
|
5500
5500
|
}
|
|
5501
5501
|
}), Ts = be((i, u) => {
|
|
5502
5502
|
ue(), ce(), he();
|
|
5503
|
-
var o = Is(), { Buffer: a } = (tt(), Fe(et)), l = a.allocUnsafe(0), r = a.from([0]), e = th(), n = rh().nextTick, t = jt()("mqtt-packet:writeToStream"), s = e.cache, h = e.generateNumber, d = e.generateCache, p = e.genBufVariableByteInt, m = e.generate4ByteBuffer, b = de,
|
|
5504
|
-
function
|
|
5505
|
-
switch (t("generate called"), L.cork && (L.cork(), n(A, L)),
|
|
5503
|
+
var o = Is(), { Buffer: a } = (tt(), Fe(et)), l = a.allocUnsafe(0), r = a.from([0]), e = th(), n = rh().nextTick, t = jt()("mqtt-packet:writeToStream"), s = e.cache, h = e.generateNumber, d = e.generateCache, p = e.genBufVariableByteInt, m = e.generate4ByteBuffer, b = de, _ = !0;
|
|
5504
|
+
function v(V, L, Z) {
|
|
5505
|
+
switch (t("generate called"), L.cork && (L.cork(), n(A, L)), _ && (_ = !1, d()), t("generate: packet.cmd: %s", V.cmd), V.cmd) {
|
|
5506
5506
|
case "connect":
|
|
5507
5507
|
return y(V, L);
|
|
5508
5508
|
case "connack":
|
|
@@ -5533,10 +5533,10 @@ var ps, gs, ms, bs, ys, _s, ar = st(() => {
|
|
|
5533
5533
|
return L.destroy(new Error("Unknown command")), !1;
|
|
5534
5534
|
}
|
|
5535
5535
|
}
|
|
5536
|
-
Object.defineProperty(
|
|
5536
|
+
Object.defineProperty(v, "cacheNumbers", { get() {
|
|
5537
5537
|
return b === de;
|
|
5538
5538
|
}, set(V) {
|
|
5539
|
-
V ? ((!s || Object.keys(s).length === 0) && (
|
|
5539
|
+
V ? ((!s || Object.keys(s).length === 0) && (_ = !0), b = de) : (_ = !1, b = ge);
|
|
5540
5540
|
} });
|
|
5541
5541
|
function A(V) {
|
|
5542
5542
|
V.uncork();
|
|
@@ -5732,7 +5732,7 @@ var ps, gs, ms, bs, ys, _s, ar = st(() => {
|
|
|
5732
5732
|
let Z = h(L);
|
|
5733
5733
|
return t("writeNumberGenerated: %o", Z), V.write(Z);
|
|
5734
5734
|
}
|
|
5735
|
-
function
|
|
5735
|
+
function _e(V, L) {
|
|
5736
5736
|
let Z = m(L);
|
|
5737
5737
|
return t("write4ByteNumber: %o", Z), V.write(Z);
|
|
5738
5738
|
}
|
|
@@ -5842,7 +5842,7 @@ var ps, gs, ms, bs, ys, _s, ar = st(() => {
|
|
|
5842
5842
|
break;
|
|
5843
5843
|
}
|
|
5844
5844
|
case "int32": {
|
|
5845
|
-
V.write(a.from([o.properties[L]])),
|
|
5845
|
+
V.write(a.from([o.properties[L]])), _e(V, Z);
|
|
5846
5846
|
break;
|
|
5847
5847
|
}
|
|
5848
5848
|
case "var": {
|
|
@@ -5880,7 +5880,7 @@ var ps, gs, ms, bs, ys, _s, ar = st(() => {
|
|
|
5880
5880
|
function Ae(V) {
|
|
5881
5881
|
return typeof V == "string" || V instanceof a;
|
|
5882
5882
|
}
|
|
5883
|
-
u.exports =
|
|
5883
|
+
u.exports = v;
|
|
5884
5884
|
}), nh = be((i, u) => {
|
|
5885
5885
|
ue(), ce(), he();
|
|
5886
5886
|
var o = Ts(), { EventEmitter: a } = (ar(), Fe(Kt)), { Buffer: l } = (tt(), Fe(et));
|
|
@@ -5944,9 +5944,9 @@ var ps, gs, ms, bs, ys, _s, ar = st(() => {
|
|
|
5944
5944
|
return r.proto ? h : s;
|
|
5945
5945
|
function t(d, p) {
|
|
5946
5946
|
let m = Object.keys(d), b = new Array(m.length);
|
|
5947
|
-
for (let
|
|
5948
|
-
let
|
|
5949
|
-
typeof A != "object" || A === null ? b[
|
|
5947
|
+
for (let _ = 0; _ < m.length; _++) {
|
|
5948
|
+
let v = m[_], A = d[v];
|
|
5949
|
+
typeof A != "object" || A === null ? b[v] = A : A.constructor !== Object && (n = e.get(A.constructor)) ? b[v] = n(A, p) : ArrayBuffer.isView(A) ? b[v] = o(A) : b[v] = p(A);
|
|
5950
5950
|
}
|
|
5951
5951
|
return b;
|
|
5952
5952
|
}
|
|
@@ -5980,18 +5980,18 @@ var ps, gs, ms, bs, ys, _s, ar = st(() => {
|
|
|
5980
5980
|
let s = null;
|
|
5981
5981
|
return r.proto ? p : d;
|
|
5982
5982
|
function h(m, b) {
|
|
5983
|
-
let
|
|
5984
|
-
for (let A = 0; A <
|
|
5985
|
-
let y =
|
|
5986
|
-
if (typeof E != "object" || E === null)
|
|
5987
|
-
else if (E.constructor !== Object && (s = t.get(E.constructor)))
|
|
5988
|
-
else if (ArrayBuffer.isView(E))
|
|
5983
|
+
let _ = Object.keys(m), v = new Array(_.length);
|
|
5984
|
+
for (let A = 0; A < _.length; A++) {
|
|
5985
|
+
let y = _[A], E = m[y];
|
|
5986
|
+
if (typeof E != "object" || E === null) v[y] = E;
|
|
5987
|
+
else if (E.constructor !== Object && (s = t.get(E.constructor))) v[y] = s(E, b);
|
|
5988
|
+
else if (ArrayBuffer.isView(E)) v[y] = o(E);
|
|
5989
5989
|
else {
|
|
5990
5990
|
let N = e.indexOf(E);
|
|
5991
|
-
N !== -1 ?
|
|
5991
|
+
N !== -1 ? v[y] = n[N] : v[y] = b(E);
|
|
5992
5992
|
}
|
|
5993
5993
|
}
|
|
5994
|
-
return
|
|
5994
|
+
return v;
|
|
5995
5995
|
}
|
|
5996
5996
|
function d(m) {
|
|
5997
5997
|
if (typeof m != "object" || m === null) return m;
|
|
@@ -5999,15 +5999,15 @@ var ps, gs, ms, bs, ys, _s, ar = st(() => {
|
|
|
5999
5999
|
if (m.constructor !== Object && (s = t.get(m.constructor))) return s(m, d);
|
|
6000
6000
|
let b = {};
|
|
6001
6001
|
e.push(m), n.push(b);
|
|
6002
|
-
for (let
|
|
6003
|
-
if (Object.hasOwnProperty.call(m,
|
|
6004
|
-
let
|
|
6005
|
-
if (typeof
|
|
6006
|
-
else if (
|
|
6007
|
-
else if (ArrayBuffer.isView(
|
|
6002
|
+
for (let _ in m) {
|
|
6003
|
+
if (Object.hasOwnProperty.call(m, _) === !1) continue;
|
|
6004
|
+
let v = m[_];
|
|
6005
|
+
if (typeof v != "object" || v === null) b[_] = v;
|
|
6006
|
+
else if (v.constructor !== Object && (s = t.get(v.constructor))) b[_] = s(v, d);
|
|
6007
|
+
else if (ArrayBuffer.isView(v)) b[_] = o(v);
|
|
6008
6008
|
else {
|
|
6009
|
-
let A = e.indexOf(
|
|
6010
|
-
A !== -1 ? b[
|
|
6009
|
+
let A = e.indexOf(v);
|
|
6010
|
+
A !== -1 ? b[_] = n[A] : b[_] = d(v);
|
|
6011
6011
|
}
|
|
6012
6012
|
}
|
|
6013
6013
|
return e.pop(), n.pop(), b;
|
|
@@ -6018,14 +6018,14 @@ var ps, gs, ms, bs, ys, _s, ar = st(() => {
|
|
|
6018
6018
|
if (m.constructor !== Object && (s = t.get(m.constructor))) return s(m, p);
|
|
6019
6019
|
let b = {};
|
|
6020
6020
|
e.push(m), n.push(b);
|
|
6021
|
-
for (let
|
|
6022
|
-
let
|
|
6023
|
-
if (typeof
|
|
6024
|
-
else if (
|
|
6025
|
-
else if (ArrayBuffer.isView(
|
|
6021
|
+
for (let _ in m) {
|
|
6022
|
+
let v = m[_];
|
|
6023
|
+
if (typeof v != "object" || v === null) b[_] = v;
|
|
6024
|
+
else if (v.constructor !== Object && (s = t.get(v.constructor))) b[_] = s(v, p);
|
|
6025
|
+
else if (ArrayBuffer.isView(v)) b[_] = o(v);
|
|
6026
6026
|
else {
|
|
6027
|
-
let A = e.indexOf(
|
|
6028
|
-
A !== -1 ? b[
|
|
6027
|
+
let A = e.indexOf(v);
|
|
6028
|
+
A !== -1 ? b[_] = n[A] : b[_] = p(v);
|
|
6029
6029
|
}
|
|
6030
6030
|
}
|
|
6031
6031
|
return e.pop(), n.pop(), b;
|
|
@@ -6242,7 +6242,7 @@ var ps, gs, ms, bs, ys, _s, ar = st(() => {
|
|
|
6242
6242
|
};
|
|
6243
6243
|
i.default = a;
|
|
6244
6244
|
}), ch = be((i) => {
|
|
6245
|
-
var m, b,
|
|
6245
|
+
var m, b, _, v, A, y, E, N, x, k, T, M, G, X, ae, O, Q, J, W, me, de, ge, _e, K, fe, R, re, pe, U, Oi, V, L, Z, $, Bs, H, se, ne, $t, qt, Ri, Fr, Wr, $e, Bi, wr, Ht, xi, Pe;
|
|
6246
6246
|
ue(), ce(), he(), Object.defineProperty(i, "__esModule", { value: !0 }), i.LRUCache = void 0;
|
|
6247
6247
|
var u = typeof performance == "object" && performance && typeof performance.now == "function" ? performance : Date, o = /* @__PURE__ */ new Set(), a = typeof je == "object" && je ? je : {}, l = (c, f, g, w) => {
|
|
6248
6248
|
typeof a.emitWarning == "function" ? a.emitWarning(c, f, g, w) : console.error(`[${g}] ${f}: ${c}`);
|
|
@@ -6284,15 +6284,15 @@ var ps, gs, ms, bs, ys, _s, ar = st(() => {
|
|
|
6284
6284
|
constructor(f, g) {
|
|
6285
6285
|
He(this, "heap");
|
|
6286
6286
|
He(this, "length");
|
|
6287
|
-
if (!C(b,
|
|
6287
|
+
if (!C(b, _)) throw new TypeError("instantiate Stack using Stack.create(n)");
|
|
6288
6288
|
this.heap = new g(f), this.length = 0;
|
|
6289
6289
|
}
|
|
6290
6290
|
static create(f) {
|
|
6291
6291
|
let g = s(f);
|
|
6292
6292
|
if (!g) return [];
|
|
6293
|
-
Ce(b,
|
|
6293
|
+
Ce(b, _, !0);
|
|
6294
6294
|
let w = new b(f, g);
|
|
6295
|
-
return Ce(b,
|
|
6295
|
+
return Ce(b, _, !1), w;
|
|
6296
6296
|
}
|
|
6297
6297
|
push(f) {
|
|
6298
6298
|
this.heap[this.length++] = f;
|
|
@@ -6300,7 +6300,7 @@ var ps, gs, ms, bs, ys, _s, ar = st(() => {
|
|
|
6300
6300
|
pop() {
|
|
6301
6301
|
return this.heap[--this.length];
|
|
6302
6302
|
}
|
|
6303
|
-
},
|
|
6303
|
+
}, _ = new WeakMap(), Le(b, _, !1), b), p = (Pe = class {
|
|
6304
6304
|
constructor(f) {
|
|
6305
6305
|
Le(this, U);
|
|
6306
6306
|
Le(this, y);
|
|
@@ -6335,7 +6335,7 @@ var ps, gs, ms, bs, ys, _s, ar = st(() => {
|
|
|
6335
6335
|
Le(this, me);
|
|
6336
6336
|
Le(this, de);
|
|
6337
6337
|
Le(this, ge);
|
|
6338
|
-
Le(this,
|
|
6338
|
+
Le(this, _e);
|
|
6339
6339
|
Le(this, K);
|
|
6340
6340
|
Le(this, fe);
|
|
6341
6341
|
Le(this, R);
|
|
@@ -6356,8 +6356,8 @@ var ps, gs, ms, bs, ys, _s, ar = st(() => {
|
|
|
6356
6356
|
if (w || I) throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");
|
|
6357
6357
|
return 0;
|
|
6358
6358
|
});
|
|
6359
|
-
He(this,
|
|
6360
|
-
let { max: g = 0, ttl: w, ttlResolution: I = 1, ttlAutopurge: j, updateAgeOnGet: z, updateAgeOnHas: we, allowStale: Ee, dispose: Te, disposeAfter: Be, noDisposeOnSet: Oe, noUpdateTTL:
|
|
6359
|
+
He(this, v, "LRUCache");
|
|
6360
|
+
let { max: g = 0, ttl: w, ttlResolution: I = 1, ttlAutopurge: j, updateAgeOnGet: z, updateAgeOnHas: we, allowStale: Ee, dispose: Te, disposeAfter: Be, noDisposeOnSet: Oe, noUpdateTTL: vt, maxSize: lt = 0, maxEntrySize: ht = 0, sizeCalculation: qe, fetchMethod: Ze, memoMethod: Re, noDeleteOnFetchRejection: We, noDeleteOnStaleGet: rt, allowStaleOnFetchRejection: Je, allowStaleOnFetchAbort: ot, ignoreFetchAbort: Ft } = f;
|
|
6361
6361
|
if (g !== 0 && !t(g)) throw new TypeError("max option must be a nonnegative integer");
|
|
6362
6362
|
let S = g ? s(g) : Array;
|
|
6363
6363
|
if (!S) throw new Error("invalid max value: " + g);
|
|
@@ -6367,7 +6367,7 @@ var ps, gs, ms, bs, ys, _s, ar = st(() => {
|
|
|
6367
6367
|
}
|
|
6368
6368
|
if (Re !== void 0 && typeof Re != "function") throw new TypeError("memoMethod must be a function if defined");
|
|
6369
6369
|
if (Ce(this, T, Re), Ze !== void 0 && typeof Ze != "function") throw new TypeError("fetchMethod must be a function if specified");
|
|
6370
|
-
if (Ce(this, k, Ze), Ce(this, re, !!Ze), Ce(this, X, /* @__PURE__ */ new Map()), Ce(this, ae, new Array(g).fill(void 0)), Ce(this, O, new Array(g).fill(void 0)), Ce(this, Q, new S(g)), Ce(this, J, new S(g)), Ce(this, W, 0), Ce(this, me, 0), Ce(this, de, d.create(g)), Ce(this, M, 0), Ce(this, G, 0), typeof Te == "function" && Ce(this, N, Te), typeof Be == "function" ? (Ce(this, x, Be), Ce(this, ge, [])) : (Ce(this, x, void 0), Ce(this, ge, void 0)), Ce(this, R, !!C(this, N)), Ce(this, pe, !!C(this, x)), this.noDisposeOnSet = !!Oe, this.noUpdateTTL = !!
|
|
6370
|
+
if (Ce(this, k, Ze), Ce(this, re, !!Ze), Ce(this, X, /* @__PURE__ */ new Map()), Ce(this, ae, new Array(g).fill(void 0)), Ce(this, O, new Array(g).fill(void 0)), Ce(this, Q, new S(g)), Ce(this, J, new S(g)), Ce(this, W, 0), Ce(this, me, 0), Ce(this, de, d.create(g)), Ce(this, M, 0), Ce(this, G, 0), typeof Te == "function" && Ce(this, N, Te), typeof Be == "function" ? (Ce(this, x, Be), Ce(this, ge, [])) : (Ce(this, x, void 0), Ce(this, ge, void 0)), Ce(this, R, !!C(this, N)), Ce(this, pe, !!C(this, x)), this.noDisposeOnSet = !!Oe, this.noUpdateTTL = !!vt, this.noDeleteOnFetchRejection = !!We, this.allowStaleOnFetchRejection = !!Je, this.allowStaleOnFetchAbort = !!ot, this.ignoreFetchAbort = !!Ft, this.maxEntrySize !== 0) {
|
|
6371
6371
|
if (C(this, E) !== 0 && !t(C(this, E))) throw new TypeError("maxSize must be a positive integer if specified");
|
|
6372
6372
|
if (!t(this.maxEntrySize)) throw new TypeError("maxEntrySize must be a positive integer if specified");
|
|
6373
6373
|
ke(this, U, Bs).call(this);
|
|
@@ -6383,7 +6383,7 @@ var ps, gs, ms, bs, ys, _s, ar = st(() => {
|
|
|
6383
6383
|
}
|
|
6384
6384
|
}
|
|
6385
6385
|
static unsafeExposeInternals(f) {
|
|
6386
|
-
return { starts: C(f, K), ttls: C(f, fe), sizes: C(f,
|
|
6386
|
+
return { starts: C(f, K), ttls: C(f, fe), sizes: C(f, _e), keyMap: C(f, X), keyList: C(f, ae), valList: C(f, O), next: C(f, Q), prev: C(f, J), get head() {
|
|
6387
6387
|
return C(f, W);
|
|
6388
6388
|
}, get tail() {
|
|
6389
6389
|
return C(f, me);
|
|
@@ -6458,7 +6458,7 @@ var ps, gs, ms, bs, ys, _s, ar = st(() => {
|
|
|
6458
6458
|
*rvalues() {
|
|
6459
6459
|
for (let f of ke(this, U, qt).call(this)) C(this, O)[f] !== void 0 && !ke(this, U, $e).call(this, C(this, O)[f]) && (yield C(this, O)[f]);
|
|
6460
6460
|
}
|
|
6461
|
-
[(A = Symbol.iterator,
|
|
6461
|
+
[(A = Symbol.iterator, v = Symbol.toStringTag, A)]() {
|
|
6462
6462
|
return this.entries();
|
|
6463
6463
|
}
|
|
6464
6464
|
find(f, g = {}) {
|
|
@@ -6497,7 +6497,7 @@ var ps, gs, ms, bs, ys, _s, ar = st(() => {
|
|
|
6497
6497
|
j.ttl = Ee, j.start = Date.now();
|
|
6498
6498
|
}
|
|
6499
6499
|
}
|
|
6500
|
-
return C(this,
|
|
6500
|
+
return C(this, _e) && (j.size = C(this, _e)[g]), j;
|
|
6501
6501
|
}
|
|
6502
6502
|
dump() {
|
|
6503
6503
|
let f = [];
|
|
@@ -6510,7 +6510,7 @@ var ps, gs, ms, bs, ys, _s, ar = st(() => {
|
|
|
6510
6510
|
let we = u.now() - C(this, K)[g];
|
|
6511
6511
|
z.start = Math.floor(Date.now() - we);
|
|
6512
6512
|
}
|
|
6513
|
-
C(this,
|
|
6513
|
+
C(this, _e) && (z.size = C(this, _e)[g]), f.unshift([w, z]);
|
|
6514
6514
|
}
|
|
6515
6515
|
return f;
|
|
6516
6516
|
}
|
|
@@ -6525,7 +6525,7 @@ var ps, gs, ms, bs, ys, _s, ar = st(() => {
|
|
|
6525
6525
|
}
|
|
6526
6526
|
}
|
|
6527
6527
|
set(f, g, w = {}) {
|
|
6528
|
-
var
|
|
6528
|
+
var vt, lt, ht, qe, Ze;
|
|
6529
6529
|
if (g === void 0) return this.delete(f), this;
|
|
6530
6530
|
let { ttl: I = this.ttl, start: j, noDisposeOnSet: z = this.noDisposeOnSet, sizeCalculation: we = this.sizeCalculation, status: Ee } = w, { noUpdateTTL: Te = this.noUpdateTTL } = w, Be = C(this, ne).call(this, f, g, w.size || 0, we);
|
|
6531
6531
|
if (this.maxEntrySize && Be > this.maxEntrySize) return Ee && (Ee.set = "miss", Ee.maxEntrySizeExceeded = !0), ke(this, U, Ht).call(this, f, "set"), this;
|
|
@@ -6538,7 +6538,7 @@ var ps, gs, ms, bs, ys, _s, ar = st(() => {
|
|
|
6538
6538
|
if (C(this, re) && ke(this, U, $e).call(this, Re)) {
|
|
6539
6539
|
Re.__abortController.abort(new Error("replaced"));
|
|
6540
6540
|
let { __staleWhileFetching: We } = Re;
|
|
6541
|
-
We !== void 0 && !z && (C(this, R) && ((
|
|
6541
|
+
We !== void 0 && !z && (C(this, R) && ((vt = C(this, N)) == null || vt.call(this, We, f, "set")), C(this, pe) && ((lt = C(this, ge)) == null || lt.push([We, f, "set"])));
|
|
6542
6542
|
} else z || (C(this, R) && ((ht = C(this, N)) == null || ht.call(this, Re, f, "set")), C(this, pe) && ((qe = C(this, ge)) == null || qe.push([Re, f, "set"])));
|
|
6543
6543
|
if (C(this, H).call(this, Oe), C(this, se).call(this, Oe, Be, Ee), C(this, O)[Oe] = g, Ee) {
|
|
6544
6544
|
Ee.set = "replace";
|
|
@@ -6586,9 +6586,9 @@ var ps, gs, ms, bs, ys, _s, ar = st(() => {
|
|
|
6586
6586
|
return ke(this, U, $e).call(this, j) ? j.__staleWhileFetching : j;
|
|
6587
6587
|
}
|
|
6588
6588
|
async fetch(f, g = {}) {
|
|
6589
|
-
let { allowStale: w = this.allowStale, updateAgeOnGet: I = this.updateAgeOnGet, noDeleteOnStaleGet: j = this.noDeleteOnStaleGet, ttl: z = this.ttl, noDisposeOnSet: we = this.noDisposeOnSet, size: Ee = 0, sizeCalculation: Te = this.sizeCalculation, noUpdateTTL: Be = this.noUpdateTTL, noDeleteOnFetchRejection: Oe = this.noDeleteOnFetchRejection, allowStaleOnFetchRejection:
|
|
6589
|
+
let { allowStale: w = this.allowStale, updateAgeOnGet: I = this.updateAgeOnGet, noDeleteOnStaleGet: j = this.noDeleteOnStaleGet, ttl: z = this.ttl, noDisposeOnSet: we = this.noDisposeOnSet, size: Ee = 0, sizeCalculation: Te = this.sizeCalculation, noUpdateTTL: Be = this.noUpdateTTL, noDeleteOnFetchRejection: Oe = this.noDeleteOnFetchRejection, allowStaleOnFetchRejection: vt = this.allowStaleOnFetchRejection, ignoreFetchAbort: lt = this.ignoreFetchAbort, allowStaleOnFetchAbort: ht = this.allowStaleOnFetchAbort, context: qe, forceRefresh: Ze = !1, status: Re, signal: We } = g;
|
|
6590
6590
|
if (!C(this, re)) return Re && (Re.fetch = "get"), this.get(f, { allowStale: w, updateAgeOnGet: I, noDeleteOnStaleGet: j, status: Re });
|
|
6591
|
-
let rt = { allowStale: w, updateAgeOnGet: I, noDeleteOnStaleGet: j, ttl: z, noDisposeOnSet: we, size: Ee, sizeCalculation: Te, noUpdateTTL: Be, noDeleteOnFetchRejection: Oe, allowStaleOnFetchRejection:
|
|
6591
|
+
let rt = { allowStale: w, updateAgeOnGet: I, noDeleteOnStaleGet: j, ttl: z, noDisposeOnSet: we, size: Ee, sizeCalculation: Te, noUpdateTTL: Be, noDeleteOnFetchRejection: Oe, allowStaleOnFetchRejection: vt, allowStaleOnFetchAbort: ht, ignoreFetchAbort: lt, status: Re, signal: We }, Je = C(this, X).get(f);
|
|
6592
6592
|
if (Je === void 0) {
|
|
6593
6593
|
Re && (Re.fetch = "miss");
|
|
6594
6594
|
let ot = ke(this, U, Wr).call(this, f, Je, rt, qe);
|
|
@@ -6596,8 +6596,8 @@ var ps, gs, ms, bs, ys, _s, ar = st(() => {
|
|
|
6596
6596
|
} else {
|
|
6597
6597
|
let ot = C(this, O)[Je];
|
|
6598
6598
|
if (ke(this, U, $e).call(this, ot)) {
|
|
6599
|
-
let
|
|
6600
|
-
return Re && (Re.fetch = "inflight",
|
|
6599
|
+
let ve = w && ot.__staleWhileFetching !== void 0;
|
|
6600
|
+
return Re && (Re.fetch = "inflight", ve && (Re.returnedStale = !0)), ve ? ot.__staleWhileFetching : ot.__returned = ot;
|
|
6601
6601
|
}
|
|
6602
6602
|
let Ft = C(this, $).call(this, Je);
|
|
6603
6603
|
if (!Ze && !Ft) return Re && (Re.fetch = "hit"), ke(this, U, wr).call(this, Je), I && C(this, V).call(this, Je), Re && C(this, L).call(this, Re, Je), ot;
|
|
@@ -6631,7 +6631,7 @@ var ps, gs, ms, bs, ys, _s, ar = st(() => {
|
|
|
6631
6631
|
clear() {
|
|
6632
6632
|
return ke(this, U, xi).call(this, "delete");
|
|
6633
6633
|
}
|
|
6634
|
-
}, y = new WeakMap(), E = new WeakMap(), N = new WeakMap(), x = new WeakMap(), k = new WeakMap(), T = new WeakMap(), M = new WeakMap(), G = new WeakMap(), X = new WeakMap(), ae = new WeakMap(), O = new WeakMap(), Q = new WeakMap(), J = new WeakMap(), W = new WeakMap(), me = new WeakMap(), de = new WeakMap(), ge = new WeakMap(),
|
|
6634
|
+
}, y = new WeakMap(), E = new WeakMap(), N = new WeakMap(), x = new WeakMap(), k = new WeakMap(), T = new WeakMap(), M = new WeakMap(), G = new WeakMap(), X = new WeakMap(), ae = new WeakMap(), O = new WeakMap(), Q = new WeakMap(), J = new WeakMap(), W = new WeakMap(), me = new WeakMap(), de = new WeakMap(), ge = new WeakMap(), _e = new WeakMap(), K = new WeakMap(), fe = new WeakMap(), R = new WeakMap(), re = new WeakMap(), pe = new WeakMap(), U = new WeakSet(), Oi = function() {
|
|
6635
6635
|
let f = new h(C(this, y)), g = new h(C(this, y));
|
|
6636
6636
|
Ce(this, fe, f), Ce(this, K, g), Ce(this, Z, (j, z, we = u.now()) => {
|
|
6637
6637
|
if (g[j] = z !== 0 ? we : 0, f[j] = z, z !== 0 && this.ttlAutopurge) {
|
|
@@ -6673,7 +6673,7 @@ var ps, gs, ms, bs, ys, _s, ar = st(() => {
|
|
|
6673
6673
|
});
|
|
6674
6674
|
}, V = new WeakMap(), L = new WeakMap(), Z = new WeakMap(), $ = new WeakMap(), Bs = function() {
|
|
6675
6675
|
let f = new h(C(this, y));
|
|
6676
|
-
Ce(this, G, 0), Ce(this,
|
|
6676
|
+
Ce(this, G, 0), Ce(this, _e, f), Ce(this, H, (g) => {
|
|
6677
6677
|
Ce(this, G, C(this, G) - f[g]), f[g] = 0;
|
|
6678
6678
|
}), Ce(this, ne, (g, w, I, j) => {
|
|
6679
6679
|
if (ke(this, U, $e).call(this, w)) return 0;
|
|
@@ -6713,7 +6713,7 @@ var ps, gs, ms, bs, ys, _s, ar = st(() => {
|
|
|
6713
6713
|
let { aborted: Ze } = z.signal, Re = Ze && w.allowStaleOnFetchAbort, We = Re || w.allowStaleOnFetchRejection, rt = We || w.noDeleteOnFetchRejection, Je = lt;
|
|
6714
6714
|
if (C(this, O)[g] === lt && (!rt || Je.__staleWhileFetching === void 0 ? ke(this, U, Ht).call(this, f, "fetch") : Re || (C(this, O)[g] = Je.__staleWhileFetching)), We) return w.status && Je.__staleWhileFetching !== void 0 && (w.status.returnedStale = !0), Je.__staleWhileFetching;
|
|
6715
6715
|
if (Je.__returned === Je) throw qe;
|
|
6716
|
-
},
|
|
6716
|
+
}, vt = (qe, Ze) => {
|
|
6717
6717
|
var We;
|
|
6718
6718
|
let Re = (We = C(this, k)) == null ? void 0 : We.call(this, f, j, Ee);
|
|
6719
6719
|
Re && Re instanceof Promise && Re.then((rt) => qe(rt === void 0 ? void 0 : rt), Ze), z.signal.addEventListener("abort", () => {
|
|
@@ -6721,7 +6721,7 @@ var ps, gs, ms, bs, ys, _s, ar = st(() => {
|
|
|
6721
6721
|
});
|
|
6722
6722
|
};
|
|
6723
6723
|
w.status && (w.status.fetchDispatched = !0);
|
|
6724
|
-
let lt = new Promise(
|
|
6724
|
+
let lt = new Promise(vt).then(Te, Be), ht = Object.assign(lt, { __abortController: z, __staleWhileFetching: j, __returned: void 0 });
|
|
6725
6725
|
return g === void 0 ? (this.set(f, ht, { ...Ee.options, status: void 0 }), g = C(this, X).get(f)) : C(this, O)[g] = ht, ht;
|
|
6726
6726
|
}, $e = function(f) {
|
|
6727
6727
|
if (!C(this, re)) return !1;
|
|
@@ -6766,7 +6766,7 @@ var ps, gs, ms, bs, ys, _s, ar = st(() => {
|
|
|
6766
6766
|
C(this, R) && ((g = C(this, N)) == null || g.call(this, z, we, f)), C(this, pe) && ((w = C(this, ge)) == null || w.push([z, we, f]));
|
|
6767
6767
|
}
|
|
6768
6768
|
}
|
|
6769
|
-
if (C(this, X).clear(), C(this, O).fill(void 0), C(this, ae).fill(void 0), C(this, fe) && C(this, K) && (C(this, fe).fill(0), C(this, K).fill(0)), C(this,
|
|
6769
|
+
if (C(this, X).clear(), C(this, O).fill(void 0), C(this, ae).fill(void 0), C(this, fe) && C(this, K) && (C(this, fe).fill(0), C(this, K).fill(0)), C(this, _e) && C(this, _e).fill(0), Ce(this, W, 0), Ce(this, me, 0), C(this, de).length = 0, Ce(this, G, 0), Ce(this, M, 0), C(this, pe) && C(this, ge)) {
|
|
6770
6770
|
let j = C(this, ge), z;
|
|
6771
6771
|
for (; z = j == null ? void 0 : j.shift(); ) (I = C(this, x)) == null || I.call(this, ...z);
|
|
6772
6772
|
}
|
|
@@ -7494,8 +7494,8 @@ var ps, gs, ms, bs, ys, _s, ar = st(() => {
|
|
|
7494
7494
|
for (; p !== this.h; ) p.rt += 1, p = p.tt;
|
|
7495
7495
|
let m = this.he(d);
|
|
7496
7496
|
if (m) {
|
|
7497
|
-
let { parentNode: b, grandParent:
|
|
7498
|
-
b.ie(),
|
|
7497
|
+
let { parentNode: b, grandParent: _, curNode: v } = m;
|
|
7498
|
+
b.ie(), _.ie(), v.ie();
|
|
7499
7499
|
}
|
|
7500
7500
|
}
|
|
7501
7501
|
return this.i;
|
|
@@ -7634,16 +7634,16 @@ var ps, gs, ms, bs, ys, _s, ar = st(() => {
|
|
|
7634
7634
|
if (t !== void 0) {
|
|
7635
7635
|
let b = t.o;
|
|
7636
7636
|
if (b !== this.h) {
|
|
7637
|
-
let
|
|
7638
|
-
if (
|
|
7637
|
+
let _ = this.v(b.u, e);
|
|
7638
|
+
if (_ === 0) {
|
|
7639
7639
|
b.l = n;
|
|
7640
7640
|
return;
|
|
7641
|
-
} else if (
|
|
7642
|
-
let
|
|
7641
|
+
} else if (_ > 0) {
|
|
7642
|
+
let v = b.L(), A = this.v(v.u, e);
|
|
7643
7643
|
if (A === 0) {
|
|
7644
|
-
|
|
7644
|
+
v.l = n;
|
|
7645
7645
|
return;
|
|
7646
|
-
} else A < 0 && (s = new this.re(e, n),
|
|
7646
|
+
} else A < 0 && (s = new this.re(e, n), v.W === void 0 ? (v.W = s, s.tt = v) : (b.U = s, s.tt = b));
|
|
7647
7647
|
}
|
|
7648
7648
|
}
|
|
7649
7649
|
}
|
|
@@ -7761,7 +7761,7 @@ var ps, gs, ms, bs, ys, _s, ar = st(() => {
|
|
|
7761
7761
|
}
|
|
7762
7762
|
}, l = a;
|
|
7763
7763
|
i.default = l;
|
|
7764
|
-
}),
|
|
7764
|
+
}), vh = be((i) => {
|
|
7765
7765
|
ue(), ce(), he(), Object.defineProperty(i, "t", { value: !0 }), i.default = void 0;
|
|
7766
7766
|
var u = l(Ns()), o = l(Us()), a = Dt();
|
|
7767
7767
|
function l(t) {
|
|
@@ -7840,7 +7840,7 @@ var ps, gs, ms, bs, ys, _s, ar = st(() => {
|
|
|
7840
7840
|
}
|
|
7841
7841
|
}, n = e;
|
|
7842
7842
|
i.default = n;
|
|
7843
|
-
}),
|
|
7843
|
+
}), _h = be((i) => {
|
|
7844
7844
|
ue(), ce(), he(), Object.defineProperty(i, "t", { value: !0 }), i.default = void 0;
|
|
7845
7845
|
var u = l(Ns()), o = l(Us()), a = Dt();
|
|
7846
7846
|
function l(t) {
|
|
@@ -8186,7 +8186,7 @@ var ps, gs, ms, bs, ys, _s, ar = st(() => {
|
|
|
8186
8186
|
} }), Object.defineProperty(i, "Vector", { enumerable: !0, get: function() {
|
|
8187
8187
|
return l.default;
|
|
8188
8188
|
} });
|
|
8189
|
-
var u = d(fh()), o = d(dh()), a = d(ph()), l = d(gh()), r = d(mh()), e = d(bh()), n = d(
|
|
8189
|
+
var u = d(fh()), o = d(dh()), a = d(ph()), l = d(gh()), r = d(mh()), e = d(bh()), n = d(vh()), t = d(_h()), s = d(wh()), h = d(Eh());
|
|
8190
8190
|
function d(p) {
|
|
8191
8191
|
return p && p.t ? p : { default: p };
|
|
8192
8192
|
}
|
|
@@ -8386,24 +8386,24 @@ var ps, gs, ms, bs, ys, _s, ar = st(() => {
|
|
|
8386
8386
|
}(i, function(o) {
|
|
8387
8387
|
var a = function(m) {
|
|
8388
8388
|
return function(b) {
|
|
8389
|
-
var
|
|
8390
|
-
return b.add(
|
|
8389
|
+
var _ = m(b);
|
|
8390
|
+
return b.add(_), _;
|
|
8391
8391
|
};
|
|
8392
8392
|
}, l = function(m) {
|
|
8393
|
-
return function(b,
|
|
8394
|
-
return m.set(b,
|
|
8393
|
+
return function(b, _) {
|
|
8394
|
+
return m.set(b, _), _;
|
|
8395
8395
|
};
|
|
8396
8396
|
}, r = Number.MAX_SAFE_INTEGER === void 0 ? 9007199254740991 : Number.MAX_SAFE_INTEGER, e = 536870912, n = e * 2, t = function(m, b) {
|
|
8397
|
-
return function(
|
|
8398
|
-
var
|
|
8399
|
-
if (!
|
|
8400
|
-
if (
|
|
8401
|
-
for (;
|
|
8402
|
-
return m(
|
|
8397
|
+
return function(_) {
|
|
8398
|
+
var v = b.get(_), A = v === void 0 ? _.size : v < n ? v + 1 : 0;
|
|
8399
|
+
if (!_.has(A)) return m(_, A);
|
|
8400
|
+
if (_.size < e) {
|
|
8401
|
+
for (; _.has(A); ) A = Math.floor(Math.random() * n);
|
|
8402
|
+
return m(_, A);
|
|
8403
8403
|
}
|
|
8404
|
-
if (
|
|
8405
|
-
for (;
|
|
8406
|
-
return m(
|
|
8404
|
+
if (_.size > r) throw new Error("Congratulations, you created a collection of unique numbers which uses all available integers!");
|
|
8405
|
+
for (; _.has(A); ) A = Math.floor(Math.random() * r);
|
|
8406
|
+
return m(_, A);
|
|
8407
8407
|
};
|
|
8408
8408
|
}, s = /* @__PURE__ */ new WeakMap(), h = l(s), d = t(h, s), p = a(d);
|
|
8409
8409
|
o.addUniqueNumber = p, o.generateUniqueNumber = d;
|
|
@@ -8420,8 +8420,8 @@ var ps, gs, ms, bs, ys, _s, ar = st(() => {
|
|
|
8420
8420
|
var t = /* @__PURE__ */ new Map([[0, function() {
|
|
8421
8421
|
}]]), s = /* @__PURE__ */ new Map([[0, function() {
|
|
8422
8422
|
}]]), h = /* @__PURE__ */ new Map(), d = new Worker(n);
|
|
8423
|
-
d.addEventListener("message", function(
|
|
8424
|
-
var A =
|
|
8423
|
+
d.addEventListener("message", function(v) {
|
|
8424
|
+
var A = v.data;
|
|
8425
8425
|
if (l(A)) {
|
|
8426
8426
|
var y = A.params, E = y.timerId, N = y.timerType;
|
|
8427
8427
|
if (N === "interval") {
|
|
@@ -8449,22 +8449,22 @@ var ps, gs, ms, bs, ys, _s, ar = st(() => {
|
|
|
8449
8449
|
throw new Error(Q);
|
|
8450
8450
|
}
|
|
8451
8451
|
});
|
|
8452
|
-
var p = function(
|
|
8452
|
+
var p = function(v) {
|
|
8453
8453
|
var A = a.generateUniqueNumber(h);
|
|
8454
|
-
h.set(A, { timerId:
|
|
8455
|
-
}, m = function(
|
|
8454
|
+
h.set(A, { timerId: v, timerType: "interval" }), t.set(v, A), d.postMessage({ id: A, method: "clear", params: { timerId: v, timerType: "interval" } });
|
|
8455
|
+
}, m = function(v) {
|
|
8456
8456
|
var A = a.generateUniqueNumber(h);
|
|
8457
|
-
h.set(A, { timerId:
|
|
8458
|
-
}, b = function(
|
|
8457
|
+
h.set(A, { timerId: v, timerType: "timeout" }), s.set(v, A), d.postMessage({ id: A, method: "clear", params: { timerId: v, timerType: "timeout" } });
|
|
8458
|
+
}, b = function(v) {
|
|
8459
8459
|
var A = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, y = a.generateUniqueNumber(t);
|
|
8460
8460
|
return t.set(y, function() {
|
|
8461
|
-
|
|
8461
|
+
v(), typeof t.get(y) == "function" && d.postMessage({ id: null, method: "set", params: { delay: A, now: performance.now(), timerId: y, timerType: "interval" } });
|
|
8462
8462
|
}), d.postMessage({ id: null, method: "set", params: { delay: A, now: performance.now(), timerId: y, timerType: "interval" } }), y;
|
|
8463
|
-
},
|
|
8463
|
+
}, _ = function(v) {
|
|
8464
8464
|
var A = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, y = a.generateUniqueNumber(s);
|
|
8465
|
-
return s.set(y,
|
|
8465
|
+
return s.set(y, v), d.postMessage({ id: null, method: "set", params: { delay: A, now: performance.now(), timerId: y, timerType: "timeout" } }), y;
|
|
8466
8466
|
};
|
|
8467
|
-
return { clearInterval: p, clearTimeout: m, setInterval: b, setTimeout:
|
|
8467
|
+
return { clearInterval: p, clearTimeout: m, setInterval: b, setTimeout: _ };
|
|
8468
8468
|
};
|
|
8469
8469
|
o.load = e;
|
|
8470
8470
|
});
|
|
@@ -8476,9 +8476,9 @@ var ps, gs, ms, bs, ys, _s, ar = st(() => {
|
|
|
8476
8476
|
var m = null;
|
|
8477
8477
|
return function() {
|
|
8478
8478
|
if (m !== null) return m;
|
|
8479
|
-
var b = new Blob([p], { type: "application/javascript; charset=utf-8" }),
|
|
8480
|
-
return m = d(
|
|
8481
|
-
return URL.revokeObjectURL(
|
|
8479
|
+
var b = new Blob([p], { type: "application/javascript; charset=utf-8" }), _ = URL.createObjectURL(b);
|
|
8480
|
+
return m = d(_), setTimeout(function() {
|
|
8481
|
+
return URL.revokeObjectURL(_);
|
|
8482
8482
|
}), m;
|
|
8483
8483
|
};
|
|
8484
8484
|
}, r = `(()=>{var e={472:(e,t,r)=>{var o,i;void 0===(i="function"==typeof(o=function(){"use strict";var e=new Map,t=new Map,r=function(t){var r=e.get(t);if(void 0===r)throw new Error('There is no interval scheduled with the given id "'.concat(t,'".'));clearTimeout(r),e.delete(t)},o=function(e){var r=t.get(e);if(void 0===r)throw new Error('There is no timeout scheduled with the given id "'.concat(e,'".'));clearTimeout(r),t.delete(e)},i=function(e,t){var r,o=performance.now();return{expected:o+(r=e-Math.max(0,o-t)),remainingDelay:r}},n=function e(t,r,o,i){var n=performance.now();n>o?postMessage({id:null,method:"call",params:{timerId:r,timerType:i}}):t.set(r,setTimeout(e,o-n,t,r,o,i))},a=function(t,r,o){var a=i(t,o),s=a.expected,d=a.remainingDelay;e.set(r,setTimeout(n,d,e,r,s,"interval"))},s=function(e,r,o){var a=i(e,o),s=a.expected,d=a.remainingDelay;t.set(r,setTimeout(n,d,t,r,s,"timeout"))};addEventListener("message",(function(e){var t=e.data;try{if("clear"===t.method){var i=t.id,n=t.params,d=n.timerId,c=n.timerType;if("interval"===c)r(d),postMessage({error:null,id:i});else{if("timeout"!==c)throw new Error('The given type "'.concat(c,'" is not supported'));o(d),postMessage({error:null,id:i})}}else{if("set"!==t.method)throw new Error('The given method "'.concat(t.method,'" is not supported'));var u=t.params,l=u.delay,p=u.now,m=u.timerId,v=u.timerType;if("interval"===v)a(l,m,p);else{if("timeout"!==v)throw new Error('The given type "'.concat(v,'" is not supported'));s(l,m,p)}}}catch(e){postMessage({error:{message:e.message},id:t.id,result:null})}}))})?o.call(t,r,t,e):o)||(e.exports=i)}},t={};function r(o){var i=t[o];if(void 0!==i)return i.exports;var n=t[o]={exports:{}};return e[o](n,n.exports,r),n.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";r(472)})()})();`, e = l(a.load, r), n = function(d) {
|
|
@@ -8607,12 +8607,12 @@ var ps, gs, ms, bs, ys, _s, ar = st(() => {
|
|
|
8607
8607
|
return x && x.__esModule ? x : { default: x };
|
|
8608
8608
|
};
|
|
8609
8609
|
Object.defineProperty(i, "__esModule", { value: !0 });
|
|
8610
|
-
var r = l(Wu()), e = l(ih()), n = l(Cs()), t = ur(), s = l(sh()), h = a(ah()), d = l(jt()), p = l(Ps()), m = l(Ch()), b = gr(),
|
|
8610
|
+
var r = l(Wu()), e = l(ih()), n = l(Cs()), t = ur(), s = l(sh()), h = a(ah()), d = l(jt()), p = l(Ps()), m = l(Ch()), b = gr(), _ = Ph(), v = l(zs()), A = a(en()), y = globalThis.setImmediate || ((...x) => {
|
|
8611
8611
|
let k = x.shift();
|
|
8612
8612
|
(0, b.nextTick)(() => {
|
|
8613
8613
|
k(...x);
|
|
8614
8614
|
});
|
|
8615
|
-
}), E = { keepalive: 60, reschedulePings: !0, protocolId: "MQTT", protocolVersion: 4, reconnectPeriod: 1e3, connectTimeout: 30 * 1e3, clean: !0, resubscribe: !0, subscribeBatchSize: null, writeCache: !0, timerVariant: "auto" }, N = class Li extends
|
|
8615
|
+
}), E = { keepalive: 60, reschedulePings: !0, protocolId: "MQTT", protocolVersion: 4, reconnectPeriod: 1e3, connectTimeout: 30 * 1e3, clean: !0, resubscribe: !0, subscribeBatchSize: null, writeCache: !0, timerVariant: "auto" }, N = class Li extends _.TypedEventEmitter {
|
|
8616
8616
|
static defaultId() {
|
|
8617
8617
|
return `mqttjs_${Math.random().toString(16).substr(2, 8)}`;
|
|
8618
8618
|
}
|
|
@@ -8736,23 +8736,23 @@ var ps, gs, ms, bs, ys, _s, ar = st(() => {
|
|
|
8736
8736
|
if (this._checkDisconnecting(M)) return this.log("subscribe: discconecting true"), this;
|
|
8737
8737
|
let Q = { qos: 0 };
|
|
8738
8738
|
G === 5 && (Q.nl = !1, Q.rap = !1, Q.rh = 0), T = Object.assign(Object.assign({}, Q), T);
|
|
8739
|
-
let J = T.properties, W = [], me = (
|
|
8740
|
-
if (K = K || T, !Object.prototype.hasOwnProperty.call(this._resubscribeTopics,
|
|
8741
|
-
let fe = { topic:
|
|
8739
|
+
let J = T.properties, W = [], me = (_e, K) => {
|
|
8740
|
+
if (K = K || T, !Object.prototype.hasOwnProperty.call(this._resubscribeTopics, _e) || this._resubscribeTopics[_e].qos < K.qos || X) {
|
|
8741
|
+
let fe = { topic: _e, qos: K.qos };
|
|
8742
8742
|
G === 5 && (fe.nl = K.nl, fe.rap = K.rap, fe.rh = K.rh, fe.properties = J), this.log("subscribe: pushing topic `%s` and qos `%s` to subs list", fe.topic, fe.qos), W.push(fe);
|
|
8743
8743
|
}
|
|
8744
8744
|
};
|
|
8745
|
-
if (Array.isArray(k) ? k.forEach((
|
|
8746
|
-
this.log("subscribe: array topic %s",
|
|
8747
|
-
}) : Object.keys(k).forEach((
|
|
8748
|
-
this.log("subscribe: object topic %s, %o",
|
|
8745
|
+
if (Array.isArray(k) ? k.forEach((_e) => {
|
|
8746
|
+
this.log("subscribe: array topic %s", _e), me(_e);
|
|
8747
|
+
}) : Object.keys(k).forEach((_e) => {
|
|
8748
|
+
this.log("subscribe: object topic %s, %o", _e, k[_e]), me(_e, k[_e]);
|
|
8749
8749
|
}), !W.length) return M(null, []), this;
|
|
8750
|
-
let de = (
|
|
8751
|
-
let fe = { cmd: "subscribe", subscriptions:
|
|
8750
|
+
let de = (_e, K) => {
|
|
8751
|
+
let fe = { cmd: "subscribe", subscriptions: _e, messageId: K };
|
|
8752
8752
|
if (J && (fe.properties = J), this.options.resubscribe) {
|
|
8753
8753
|
this.log("subscribe :: resubscribe true");
|
|
8754
8754
|
let re = [];
|
|
8755
|
-
|
|
8755
|
+
_e.forEach((pe) => {
|
|
8756
8756
|
if (this.options.reconnectPeriod > 0) {
|
|
8757
8757
|
let U = { qos: pe.qos };
|
|
8758
8758
|
G === 5 && (U.nl = pe.nl || !1, U.rap = pe.rap || !1, U.rh = pe.rh || 0, U.properties = pe.properties), this._resubscribeTopics[pe.topic] = U, re.push(pe.topic);
|
|
@@ -8763,15 +8763,15 @@ var ps, gs, ms, bs, ys, _s, ar = st(() => {
|
|
|
8763
8763
|
this.outgoing[fe.messageId] = { volatile: !0, cb(U, Ae) {
|
|
8764
8764
|
if (!U) {
|
|
8765
8765
|
let { granted: V } = Ae;
|
|
8766
|
-
for (let L = 0; L < V.length; L += 1)
|
|
8766
|
+
for (let L = 0; L < V.length; L += 1) _e[L].qos = V[L];
|
|
8767
8767
|
}
|
|
8768
8768
|
U ? pe(new b.ErrorWithSubackPacket(U.message, Ae)) : re(Ae);
|
|
8769
8769
|
} };
|
|
8770
8770
|
});
|
|
8771
8771
|
return this.log("subscribe :: call _sendPacket"), this._sendPacket(fe), R;
|
|
8772
8772
|
}, ge = () => {
|
|
8773
|
-
var
|
|
8774
|
-
let K = (
|
|
8773
|
+
var _e;
|
|
8774
|
+
let K = (_e = this.options.subscribeBatchSize) !== null && _e !== void 0 ? _e : W.length, fe = [];
|
|
8775
8775
|
for (let R = 0; R < W.length; R += K) {
|
|
8776
8776
|
let re = W.slice(R, R + K), pe = this._nextId();
|
|
8777
8777
|
if (pe === null) return this.log("No messageId left"), !1;
|
|
@@ -8990,7 +8990,7 @@ var ps, gs, ms, bs, ys, _s, ar = st(() => {
|
|
|
8990
8990
|
})) : T && T(new Error("No connection to broker"));
|
|
8991
8991
|
}
|
|
8992
8992
|
_setupKeepaliveManager() {
|
|
8993
|
-
this.log("_setupKeepaliveManager :: keepalive %d (seconds)", this.options.keepalive), !this.keepaliveManager && this.options.keepalive && (this.keepaliveManager = new
|
|
8993
|
+
this.log("_setupKeepaliveManager :: keepalive %d (seconds)", this.options.keepalive), !this.keepaliveManager && this.options.keepalive && (this.keepaliveManager = new v.default(this, this.options.timerVariant));
|
|
8994
8994
|
}
|
|
8995
8995
|
_destroyKeepaliveManager() {
|
|
8996
8996
|
this.keepaliveManager && (this.log("_destroyKeepaliveManager :: destroying keepalive manager"), this.keepaliveManager.destroy(), this.keepaliveManager = null);
|
|
@@ -9119,7 +9119,7 @@ function yo(i, u) {
|
|
|
9119
9119
|
}((i = i.replace(Ks, ".")).split("."), u).join(".");
|
|
9120
9120
|
return a + l;
|
|
9121
9121
|
}
|
|
9122
|
-
function
|
|
9122
|
+
function vo(i) {
|
|
9123
9123
|
let u = [], o = 0, a = i.length;
|
|
9124
9124
|
for (; o < a; ) {
|
|
9125
9125
|
let l = i.charCodeAt(o++);
|
|
@@ -9130,8 +9130,8 @@ function _o(i) {
|
|
|
9130
9130
|
}
|
|
9131
9131
|
return u;
|
|
9132
9132
|
}
|
|
9133
|
-
var
|
|
9134
|
-
ue(), ce(), he(),
|
|
9133
|
+
var _o, wo, Ks, Qs, bt, Or, pn, gn, mn, bn, Vt, Lh = st(() => {
|
|
9134
|
+
ue(), ce(), he(), _o = /^xn--/, wo = /[^\0-\x7E]/, Ks = /[\x2E\u3002\uFF0E\uFF61]/g, Qs = { overflow: "Overflow: input needs wider integers to process", "not-basic": "Illegal input >= 0x80 (not a basic code point)", "invalid-input": "Invalid input" }, bt = Math.floor, Or = String.fromCharCode, pn = function(i, u) {
|
|
9135
9135
|
return i + 22 + 75 * (i < 26) - ((u != 0) << 5);
|
|
9136
9136
|
}, gn = function(i, u, o) {
|
|
9137
9137
|
let a = 0;
|
|
@@ -9149,8 +9149,8 @@ var vo, wo, Ks, Qs, bt, Or, pn, gn, mn, bn, Vt, Lh = st(() => {
|
|
|
9149
9149
|
(m >= 36 || m > bt((2147483647 - a) / d)) && Xt("overflow"), a += m * d;
|
|
9150
9150
|
let b = p <= r ? 1 : p >= r + 26 ? 26 : p - r;
|
|
9151
9151
|
if (m < b) break;
|
|
9152
|
-
let
|
|
9153
|
-
d > bt(2147483647 /
|
|
9152
|
+
let _ = 36 - b;
|
|
9153
|
+
d > bt(2147483647 / _) && Xt("overflow"), d *= _;
|
|
9154
9154
|
}
|
|
9155
9155
|
let h = u.length + 1;
|
|
9156
9156
|
r = gn(a - s, h, s == 0), bt(a / h) > 2147483647 - l && Xt("overflow"), l += bt(a / h), a %= h, u.splice(a++, 0, l);
|
|
@@ -9158,7 +9158,7 @@ var vo, wo, Ks, Qs, bt, Or, pn, gn, mn, bn, Vt, Lh = st(() => {
|
|
|
9158
9158
|
var n;
|
|
9159
9159
|
return String.fromCodePoint(...u);
|
|
9160
9160
|
}, bn = function(i) {
|
|
9161
|
-
let u = [], o = (i =
|
|
9161
|
+
let u = [], o = (i = vo(i)).length, a = 128, l = 0, r = 72;
|
|
9162
9162
|
for (let t of i) t < 128 && u.push(Or(t));
|
|
9163
9163
|
let e = u.length, n = e;
|
|
9164
9164
|
for (e && u.push("-"); n < o; ) {
|
|
@@ -9171,28 +9171,28 @@ var vo, wo, Ks, Qs, bt, Or, pn, gn, mn, bn, Vt, Lh = st(() => {
|
|
|
9171
9171
|
for (let p = 36; ; p += 36) {
|
|
9172
9172
|
let m = p <= r ? 1 : p >= r + 26 ? 26 : p - r;
|
|
9173
9173
|
if (d < m) break;
|
|
9174
|
-
let b = d - m,
|
|
9175
|
-
u.push(Or(pn(m + b %
|
|
9174
|
+
let b = d - m, _ = 36 - m;
|
|
9175
|
+
u.push(Or(pn(m + b % _, 0))), d = bt(b / _);
|
|
9176
9176
|
}
|
|
9177
9177
|
u.push(Or(pn(d, 0))), r = gn(l, s, n == e), l = 0, ++n;
|
|
9178
9178
|
}
|
|
9179
9179
|
++l, ++a;
|
|
9180
9180
|
}
|
|
9181
9181
|
return u.join("");
|
|
9182
|
-
}, Vt = { version: "2.1.0", ucs2: { decode:
|
|
9182
|
+
}, Vt = { version: "2.1.0", ucs2: { decode: vo, encode: (i) => String.fromCodePoint(...i) }, decode: mn, encode: bn, toASCII: function(i) {
|
|
9183
9183
|
return yo(i, function(u) {
|
|
9184
9184
|
return wo.test(u) ? "xn--" + bn(u) : u;
|
|
9185
9185
|
});
|
|
9186
9186
|
}, toUnicode: function(i) {
|
|
9187
9187
|
return yo(i, function(u) {
|
|
9188
|
-
return
|
|
9188
|
+
return _o.test(u) ? mn(u.slice(4).toLowerCase()) : u;
|
|
9189
9189
|
});
|
|
9190
9190
|
} }, Vt.decode, Vt.encode, Vt.toASCII, Vt.toUnicode, Vt.ucs2, Vt.version;
|
|
9191
9191
|
});
|
|
9192
9192
|
function jh(i, u) {
|
|
9193
9193
|
return Object.prototype.hasOwnProperty.call(i, u);
|
|
9194
9194
|
}
|
|
9195
|
-
var Eo, hr, So,
|
|
9195
|
+
var Eo, hr, So, _t, Nh = st(() => {
|
|
9196
9196
|
ue(), ce(), he(), Eo = function(i, u, o, a) {
|
|
9197
9197
|
u = u || "&", o = o || "=";
|
|
9198
9198
|
var l = {};
|
|
@@ -9226,7 +9226,7 @@ var Eo, hr, So, vt, Nh = st(() => {
|
|
|
9226
9226
|
return r + encodeURIComponent(hr(e));
|
|
9227
9227
|
}).join(u) : r + encodeURIComponent(hr(i[l]));
|
|
9228
9228
|
}).join(u) : a ? encodeURIComponent(hr(a)) + o + encodeURIComponent(hr(i)) : "";
|
|
9229
|
-
},
|
|
9229
|
+
}, _t = {}, _t.decode = _t.parse = Eo, _t.encode = _t.stringify = So, _t.decode, _t.encode, _t.parse, _t.stringify;
|
|
9230
9230
|
});
|
|
9231
9231
|
function ji() {
|
|
9232
9232
|
throw new Error("setTimeout has not been defined");
|
|
@@ -9330,29 +9330,29 @@ function Fh() {
|
|
|
9330
9330
|
o = l;
|
|
9331
9331
|
}
|
|
9332
9332
|
})();
|
|
9333
|
-
function r(
|
|
9334
|
-
if (u === setTimeout) return setTimeout(
|
|
9335
|
-
if ((u === a || !u) && setTimeout) return u = setTimeout, setTimeout(
|
|
9333
|
+
function r(_) {
|
|
9334
|
+
if (u === setTimeout) return setTimeout(_, 0);
|
|
9335
|
+
if ((u === a || !u) && setTimeout) return u = setTimeout, setTimeout(_, 0);
|
|
9336
9336
|
try {
|
|
9337
|
-
return u(
|
|
9337
|
+
return u(_, 0);
|
|
9338
9338
|
} catch {
|
|
9339
9339
|
try {
|
|
9340
|
-
return u.call(null,
|
|
9340
|
+
return u.call(null, _, 0);
|
|
9341
9341
|
} catch {
|
|
9342
|
-
return u.call(this || er,
|
|
9342
|
+
return u.call(this || er, _, 0);
|
|
9343
9343
|
}
|
|
9344
9344
|
}
|
|
9345
9345
|
}
|
|
9346
|
-
function e(
|
|
9347
|
-
if (o === clearTimeout) return clearTimeout(
|
|
9348
|
-
if ((o === l || !o) && clearTimeout) return o = clearTimeout, clearTimeout(
|
|
9346
|
+
function e(_) {
|
|
9347
|
+
if (o === clearTimeout) return clearTimeout(_);
|
|
9348
|
+
if ((o === l || !o) && clearTimeout) return o = clearTimeout, clearTimeout(_);
|
|
9349
9349
|
try {
|
|
9350
|
-
return o(
|
|
9350
|
+
return o(_);
|
|
9351
9351
|
} catch {
|
|
9352
9352
|
try {
|
|
9353
|
-
return o.call(null,
|
|
9353
|
+
return o.call(null, _);
|
|
9354
9354
|
} catch {
|
|
9355
|
-
return o.call(this || er,
|
|
9355
|
+
return o.call(this || er, _);
|
|
9356
9356
|
}
|
|
9357
9357
|
}
|
|
9358
9358
|
}
|
|
@@ -9362,35 +9362,35 @@ function Fh() {
|
|
|
9362
9362
|
}
|
|
9363
9363
|
function p() {
|
|
9364
9364
|
if (!t) {
|
|
9365
|
-
var
|
|
9365
|
+
var _ = r(d);
|
|
9366
9366
|
t = !0;
|
|
9367
|
-
for (var
|
|
9368
|
-
for (s = n, n = []; ++h <
|
|
9369
|
-
h = -1,
|
|
9367
|
+
for (var v = n.length; v; ) {
|
|
9368
|
+
for (s = n, n = []; ++h < v; ) s && s[h].run();
|
|
9369
|
+
h = -1, v = n.length;
|
|
9370
9370
|
}
|
|
9371
|
-
s = null, t = !1, e(
|
|
9371
|
+
s = null, t = !1, e(_);
|
|
9372
9372
|
}
|
|
9373
9373
|
}
|
|
9374
|
-
i.nextTick = function(
|
|
9375
|
-
var
|
|
9376
|
-
if (arguments.length > 1) for (var A = 1; A < arguments.length; A++)
|
|
9377
|
-
n.push(new m(
|
|
9374
|
+
i.nextTick = function(_) {
|
|
9375
|
+
var v = new Array(arguments.length - 1);
|
|
9376
|
+
if (arguments.length > 1) for (var A = 1; A < arguments.length; A++) v[A - 1] = arguments[A];
|
|
9377
|
+
n.push(new m(_, v)), n.length === 1 && !t && r(p);
|
|
9378
9378
|
};
|
|
9379
|
-
function m(
|
|
9380
|
-
(this || er).fun =
|
|
9379
|
+
function m(_, v) {
|
|
9380
|
+
(this || er).fun = _, (this || er).array = v;
|
|
9381
9381
|
}
|
|
9382
9382
|
m.prototype.run = function() {
|
|
9383
9383
|
(this || er).fun.apply(null, (this || er).array);
|
|
9384
9384
|
}, i.title = "browser", i.browser = !0, i.env = {}, i.argv = [], i.version = "", i.versions = {};
|
|
9385
9385
|
function b() {
|
|
9386
9386
|
}
|
|
9387
|
-
return i.on = b, i.addListener = b, i.once = b, i.off = b, i.removeListener = b, i.removeAllListeners = b, i.emit = b, i.prependListener = b, i.prependOnceListener = b, i.listeners = function(
|
|
9387
|
+
return i.on = b, i.addListener = b, i.once = b, i.off = b, i.removeListener = b, i.removeAllListeners = b, i.emit = b, i.prependListener = b, i.prependOnceListener = b, i.listeners = function(_) {
|
|
9388
9388
|
return [];
|
|
9389
|
-
}, i.binding = function(
|
|
9389
|
+
}, i.binding = function(_) {
|
|
9390
9390
|
throw new Error("process.binding is not supported");
|
|
9391
9391
|
}, i.cwd = function() {
|
|
9392
9392
|
return "/";
|
|
9393
|
-
}, i.chdir = function(
|
|
9393
|
+
}, i.chdir = function(_) {
|
|
9394
9394
|
throw new Error("process.chdir is not supported");
|
|
9395
9395
|
}, i.umask = function() {
|
|
9396
9396
|
return 0;
|
|
@@ -9461,20 +9461,20 @@ function Wh() {
|
|
|
9461
9461
|
if (u(r), u(e), r === e || (r = l.resolve(r), e = l.resolve(e), r === e)) return "";
|
|
9462
9462
|
for (var n = 1; n < r.length && r.charCodeAt(n) === 47; ++n) ;
|
|
9463
9463
|
for (var t = r.length, s = t - n, h = 1; h < e.length && e.charCodeAt(h) === 47; ++h) ;
|
|
9464
|
-
for (var d = e.length, p = d - h, m = s < p ? s : p, b = -1,
|
|
9465
|
-
if (
|
|
9464
|
+
for (var d = e.length, p = d - h, m = s < p ? s : p, b = -1, _ = 0; _ <= m; ++_) {
|
|
9465
|
+
if (_ === m) {
|
|
9466
9466
|
if (p > m) {
|
|
9467
|
-
if (e.charCodeAt(h +
|
|
9468
|
-
if (
|
|
9469
|
-
} else s > m && (r.charCodeAt(n +
|
|
9467
|
+
if (e.charCodeAt(h + _) === 47) return e.slice(h + _ + 1);
|
|
9468
|
+
if (_ === 0) return e.slice(h + _);
|
|
9469
|
+
} else s > m && (r.charCodeAt(n + _) === 47 ? b = _ : _ === 0 && (b = 0));
|
|
9470
9470
|
break;
|
|
9471
9471
|
}
|
|
9472
|
-
var
|
|
9473
|
-
if (
|
|
9474
|
-
|
|
9472
|
+
var v = r.charCodeAt(n + _), A = e.charCodeAt(h + _);
|
|
9473
|
+
if (v !== A) break;
|
|
9474
|
+
v === 47 && (b = _);
|
|
9475
9475
|
}
|
|
9476
9476
|
var y = "";
|
|
9477
|
-
for (
|
|
9477
|
+
for (_ = n + b + 1; _ <= t; ++_) (_ === t || r.charCodeAt(_) === 47) && (y.length === 0 ? y += ".." : y += "/..");
|
|
9478
9478
|
return y.length > 0 ? y + e.slice(h + b) : (h += b, e.charCodeAt(h) === 47 && ++h, e.slice(h));
|
|
9479
9479
|
}, _makeLong: function(r) {
|
|
9480
9480
|
return r;
|
|
@@ -9536,7 +9536,7 @@ function Wh() {
|
|
|
9536
9536
|
if (r.length === 0) return e;
|
|
9537
9537
|
var n = r.charCodeAt(0), t = n === 47, s;
|
|
9538
9538
|
t ? (e.root = "/", s = 1) : s = 0;
|
|
9539
|
-
for (var h = -1, d = 0, p = -1, m = !0, b = r.length - 1,
|
|
9539
|
+
for (var h = -1, d = 0, p = -1, m = !0, b = r.length - 1, _ = 0; b >= s; --b) {
|
|
9540
9540
|
if (n = r.charCodeAt(b), n === 47) {
|
|
9541
9541
|
if (!m) {
|
|
9542
9542
|
d = b + 1;
|
|
@@ -9544,9 +9544,9 @@ function Wh() {
|
|
|
9544
9544
|
}
|
|
9545
9545
|
continue;
|
|
9546
9546
|
}
|
|
9547
|
-
p === -1 && (m = !1, p = b + 1), n === 46 ? h === -1 ? h = b :
|
|
9547
|
+
p === -1 && (m = !1, p = b + 1), n === 46 ? h === -1 ? h = b : _ !== 1 && (_ = 1) : h !== -1 && (_ = -1);
|
|
9548
9548
|
}
|
|
9549
|
-
return h === -1 || p === -1 ||
|
|
9549
|
+
return h === -1 || p === -1 || _ === 0 || _ === 1 && h === p - 1 && h === d + 1 ? p !== -1 && (d === 0 && t ? e.base = e.name = r.slice(1, p) : e.base = e.name = r.slice(d, p)) : (d === 0 && t ? (e.name = r.slice(1, h), e.base = r.slice(1, p)) : (e.name = r.slice(d, h), e.base = r.slice(d, p)), e.ext = r.slice(h, p)), d > 0 ? e.dir = r.slice(0, d - 1) : t && (e.dir = "/"), e;
|
|
9550
9550
|
}, sep: "/", delimiter: ":", win32: null, posix: null };
|
|
9551
9551
|
return l.posix = l, qr = l, qr;
|
|
9552
9552
|
}
|
|
@@ -9624,20 +9624,20 @@ function qh() {
|
|
|
9624
9624
|
if (u(r), u(e), r === e || (r = l.resolve(r), e = l.resolve(e), r === e)) return "";
|
|
9625
9625
|
for (var n = 1; n < r.length && r.charCodeAt(n) === 47; ++n) ;
|
|
9626
9626
|
for (var t = r.length, s = t - n, h = 1; h < e.length && e.charCodeAt(h) === 47; ++h) ;
|
|
9627
|
-
for (var d = e.length, p = d - h, m = s < p ? s : p, b = -1,
|
|
9628
|
-
if (
|
|
9627
|
+
for (var d = e.length, p = d - h, m = s < p ? s : p, b = -1, _ = 0; _ <= m; ++_) {
|
|
9628
|
+
if (_ === m) {
|
|
9629
9629
|
if (p > m) {
|
|
9630
|
-
if (e.charCodeAt(h +
|
|
9631
|
-
if (
|
|
9632
|
-
} else s > m && (r.charCodeAt(n +
|
|
9630
|
+
if (e.charCodeAt(h + _) === 47) return e.slice(h + _ + 1);
|
|
9631
|
+
if (_ === 0) return e.slice(h + _);
|
|
9632
|
+
} else s > m && (r.charCodeAt(n + _) === 47 ? b = _ : _ === 0 && (b = 0));
|
|
9633
9633
|
break;
|
|
9634
9634
|
}
|
|
9635
|
-
var
|
|
9636
|
-
if (
|
|
9637
|
-
|
|
9635
|
+
var v = r.charCodeAt(n + _), A = e.charCodeAt(h + _);
|
|
9636
|
+
if (v !== A) break;
|
|
9637
|
+
v === 47 && (b = _);
|
|
9638
9638
|
}
|
|
9639
9639
|
var y = "";
|
|
9640
|
-
for (
|
|
9640
|
+
for (_ = n + b + 1; _ <= t; ++_) (_ === t || r.charCodeAt(_) === 47) && (y.length === 0 ? y += ".." : y += "/..");
|
|
9641
9641
|
return y.length > 0 ? y + e.slice(h + b) : (h += b, e.charCodeAt(h) === 47 && ++h, e.slice(h));
|
|
9642
9642
|
}, _makeLong: function(r) {
|
|
9643
9643
|
return r;
|
|
@@ -9699,7 +9699,7 @@ function qh() {
|
|
|
9699
9699
|
if (r.length === 0) return e;
|
|
9700
9700
|
var n = r.charCodeAt(0), t = n === 47, s;
|
|
9701
9701
|
t ? (e.root = "/", s = 1) : s = 0;
|
|
9702
|
-
for (var h = -1, d = 0, p = -1, m = !0, b = r.length - 1,
|
|
9702
|
+
for (var h = -1, d = 0, p = -1, m = !0, b = r.length - 1, _ = 0; b >= s; --b) {
|
|
9703
9703
|
if (n = r.charCodeAt(b), n === 47) {
|
|
9704
9704
|
if (!m) {
|
|
9705
9705
|
d = b + 1;
|
|
@@ -9707,9 +9707,9 @@ function qh() {
|
|
|
9707
9707
|
}
|
|
9708
9708
|
continue;
|
|
9709
9709
|
}
|
|
9710
|
-
p === -1 && (m = !1, p = b + 1), n === 46 ? h === -1 ? h = b :
|
|
9710
|
+
p === -1 && (m = !1, p = b + 1), n === 46 ? h === -1 ? h = b : _ !== 1 && (_ = 1) : h !== -1 && (_ = -1);
|
|
9711
9711
|
}
|
|
9712
|
-
return h === -1 || p === -1 ||
|
|
9712
|
+
return h === -1 || p === -1 || _ === 0 || _ === 1 && h === p - 1 && h === d + 1 ? p !== -1 && (d === 0 && t ? e.base = e.name = r.slice(1, p) : e.base = e.name = r.slice(d, p)) : (d === 0 && t ? (e.name = r.slice(1, h), e.base = r.slice(1, p)) : (e.name = r.slice(d, h), e.base = r.slice(d, p)), e.ext = r.slice(h, p)), d > 0 ? e.dir = r.slice(0, d - 1) : t && (e.dir = "/"), e;
|
|
9713
9713
|
}, sep: "/", delimiter: ":", win32: null, posix: null };
|
|
9714
9714
|
return l.posix = l, Hr = l, Hr;
|
|
9715
9715
|
}
|
|
@@ -9763,7 +9763,7 @@ function Qh(i) {
|
|
|
9763
9763
|
if (o = o.replace(wa, "\\"), o = decodeURIComponent(o), u !== "") return `\\\\${u}${o}`;
|
|
9764
9764
|
{
|
|
9765
9765
|
let a = o.codePointAt(1) | 32, l = o[2];
|
|
9766
|
-
if (a <
|
|
9766
|
+
if (a < va || a > _a || l !== ":") throw new Deno.errors.InvalidData("file url path must be absolute");
|
|
9767
9767
|
return o.slice(1);
|
|
9768
9768
|
}
|
|
9769
9769
|
}
|
|
@@ -9783,7 +9783,7 @@ function ea(i) {
|
|
|
9783
9783
|
return u.includes("%") && (u = u.replace(Ea, "%25")), !Kr && u.includes("\\") && (u = u.replace(Sa, "%5C")), u.includes(`
|
|
9784
9784
|
`) && (u = u.replace(Aa, "%0A")), u.includes("\r") && (u = u.replace(ka, "%0D")), u.includes(" ") && (u = u.replace(Ia, "%09")), a.pathname = u, a;
|
|
9785
9785
|
}
|
|
9786
|
-
var Ue, Io, yt, To, Co, Po, Oo, Rr, yn,
|
|
9786
|
+
var Ue, Io, yt, To, Co, Po, Oo, Rr, yn, vn, _n, Ro, Bo, Br, Zt, xr, Hr, Wi, $i, xo, ta, ra, na, ia, zr, oa, sa, aa, la, ua, ha, Mo, ca, fa, da, pa, ga, ma, ba, ya, va, _a, Kr, wa, Ea, Sa, Aa, ka, Ia, Gh = st(() => {
|
|
9787
9787
|
ue(), ce(), he(), Lh(), Nh(), Dh(), $h(), Js(), Ue = {}, Io = Vt, yt = { isString: function(i) {
|
|
9788
9788
|
return typeof i == "string";
|
|
9789
9789
|
}, isObject: function(i) {
|
|
@@ -9799,7 +9799,7 @@ var Ue, Io, yt, To, Co, Po, Oo, Rr, yn, _n, vn, Ro, Bo, Br, Zt, xr, Hr, Wi, $i,
|
|
|
9799
9799
|
}, Ue.format = function(i) {
|
|
9800
9800
|
return yt.isString(i) && (i = br(i)), i instanceof gt ? i.format() : gt.prototype.format.call(i);
|
|
9801
9801
|
}, Ue.Url = gt, To = /^([a-z0-9.+-]+:)/i, Co = /:[0-9]*$/, Po = /^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/, Oo = ["{", "}", "|", "\\", "^", "`"].concat(["<", ">", '"', "`", " ", "\r", `
|
|
9802
|
-
`, " "]), Rr = ["'"].concat(Oo), yn = ["%", "/", "?", ";", "#"].concat(Rr),
|
|
9802
|
+
`, " "]), Rr = ["'"].concat(Oo), yn = ["%", "/", "?", ";", "#"].concat(Rr), vn = ["/", "?", "#"], _n = /^[+a-z0-9A-Z_-]{0,63}$/, Ro = /^([+a-z0-9A-Z_-]{0,63})(.*)$/, Bo = { javascript: !0, "javascript:": !0 }, Br = { javascript: !0, "javascript:": !0 }, Zt = { http: !0, https: !0, ftp: !0, gopher: !0, file: !0, "http:": !0, "https:": !0, "ftp:": !0, "gopher:": !0, "file:": !0 }, xr = _t, gt.prototype.parse = function(i, u, o) {
|
|
9803
9803
|
if (!yt.isString(i)) throw new TypeError("Parameter 'url' must be a string, not " + typeof i);
|
|
9804
9804
|
var a = i.indexOf("?"), l = a !== -1 && a < i.indexOf("#") ? "?" : "#", r = i.split(l);
|
|
9805
9805
|
r[0] = r[0].replace(/\\/g, "/");
|
|
@@ -9818,27 +9818,27 @@ var Ue, Io, yt, To, Co, Po, Oo, Rr, yn, _n, vn, Ro, Bo, Br, Zt, xr, Hr, Wi, $i,
|
|
|
9818
9818
|
!h || t && Br[t] || (e = e.substr(2), this.slashes = !0);
|
|
9819
9819
|
}
|
|
9820
9820
|
if (!Br[t] && (h || t && !Zt[t])) {
|
|
9821
|
-
for (var d, p, m = -1, b = 0; b <
|
|
9821
|
+
for (var d, p, m = -1, b = 0; b < vn.length; b++) (_ = e.indexOf(vn[b])) !== -1 && (m === -1 || _ < m) && (m = _);
|
|
9822
9822
|
for ((p = m === -1 ? e.lastIndexOf("@") : e.lastIndexOf("@", m)) !== -1 && (d = e.slice(0, p), e = e.slice(p + 1), this.auth = decodeURIComponent(d)), m = -1, b = 0; b < yn.length; b++) {
|
|
9823
|
-
var
|
|
9824
|
-
(
|
|
9823
|
+
var _;
|
|
9824
|
+
(_ = e.indexOf(yn[b])) !== -1 && (m === -1 || _ < m) && (m = _);
|
|
9825
9825
|
}
|
|
9826
9826
|
m === -1 && (m = e.length), this.host = e.slice(0, m), e = e.slice(m), this.parseHost(), this.hostname = this.hostname || "";
|
|
9827
|
-
var
|
|
9828
|
-
if (!
|
|
9827
|
+
var v = this.hostname[0] === "[" && this.hostname[this.hostname.length - 1] === "]";
|
|
9828
|
+
if (!v) for (var A = this.hostname.split(/\./), y = (b = 0, A.length); b < y; b++) {
|
|
9829
9829
|
var E = A[b];
|
|
9830
|
-
if (E && !E.match(
|
|
9830
|
+
if (E && !E.match(_n)) {
|
|
9831
9831
|
for (var N = "", x = 0, k = E.length; x < k; x++) E.charCodeAt(x) > 127 ? N += "x" : N += E[x];
|
|
9832
|
-
if (!N.match(
|
|
9832
|
+
if (!N.match(_n)) {
|
|
9833
9833
|
var T = A.slice(0, b), M = A.slice(b + 1), G = E.match(Ro);
|
|
9834
9834
|
G && (T.push(G[1]), M.unshift(G[2])), M.length && (e = "/" + M.join(".") + e), this.hostname = T.join(".");
|
|
9835
9835
|
break;
|
|
9836
9836
|
}
|
|
9837
9837
|
}
|
|
9838
9838
|
}
|
|
9839
|
-
this.hostname.length > 255 ? this.hostname = "" : this.hostname = this.hostname.toLowerCase(),
|
|
9839
|
+
this.hostname.length > 255 ? this.hostname = "" : this.hostname = this.hostname.toLowerCase(), v || (this.hostname = Io.toASCII(this.hostname));
|
|
9840
9840
|
var X = this.port ? ":" + this.port : "", ae = this.hostname || "";
|
|
9841
|
-
this.host = ae + X, this.href += this.host,
|
|
9841
|
+
this.host = ae + X, this.href += this.host, v && (this.hostname = this.hostname.substr(1, this.hostname.length - 2), e[0] !== "/" && (e = "/" + e));
|
|
9842
9842
|
}
|
|
9843
9843
|
if (!Bo[s]) for (b = 0, y = Rr.length; b < y; b++) {
|
|
9844
9844
|
var O = Rr[b];
|
|
@@ -9903,8 +9903,8 @@ var Ue, Io, yt, To, Co, Po, Oo, Rr, yn, _n, vn, Ro, Bo, Br, Zt, xr, Hr, Wi, $i,
|
|
|
9903
9903
|
}
|
|
9904
9904
|
return o.slashes = o.slashes || i.slashes, o.href = o.format(), o;
|
|
9905
9905
|
}
|
|
9906
|
-
var
|
|
9907
|
-
if (N && (o.hostname = "", o.port = null, o.host && (E[0] === "" ? E[0] = o.host : E.unshift(o.host)), o.host = "", i.protocol && (i.hostname = null, i.port = null, i.host && (p[0] === "" ? p[0] = i.host : p.unshift(i.host)), i.host = null), A = A && (p[0] === "" || E[0] === "")),
|
|
9906
|
+
var _ = o.pathname && o.pathname.charAt(0) === "/", v = i.host || i.pathname && i.pathname.charAt(0) === "/", A = v || _ || o.host && i.pathname, y = A, E = o.pathname && o.pathname.split("/") || [], N = (p = i.pathname && i.pathname.split("/") || [], o.protocol && !Zt[o.protocol]);
|
|
9907
|
+
if (N && (o.hostname = "", o.port = null, o.host && (E[0] === "" ? E[0] = o.host : E.unshift(o.host)), o.host = "", i.protocol && (i.hostname = null, i.port = null, i.host && (p[0] === "" ? p[0] = i.host : p.unshift(i.host)), i.host = null), A = A && (p[0] === "" || E[0] === "")), v) o.host = i.host || i.host === "" ? i.host : o.host, o.hostname = i.hostname || i.hostname === "" ? i.hostname : o.hostname, o.search = i.search, o.query = i.query, E = p;
|
|
9908
9908
|
else if (p.length) E || (E = []), E.pop(), E = E.concat(p), o.search = i.search, o.query = i.query;
|
|
9909
9909
|
else if (!yt.isNullOrUndefined(i.search)) return N && (o.hostname = o.host = E.shift(), (G = !!(o.host && o.host.indexOf("@") > 0) && o.host.split("@")) && (o.auth = G.shift(), o.host = o.hostname = G.shift())), o.search = i.search, o.query = i.query, yt.isNull(o.pathname) && yt.isNull(o.search) || (o.path = (o.pathname ? o.pathname : "") + (o.search ? o.search : "")), o.href = o.format(), o;
|
|
9910
9910
|
if (!E.length) return o.pathname = null, o.search ? o.path = "/" + o.search : o.path = null, o.href = o.format(), o;
|
|
@@ -9916,7 +9916,7 @@ var Ue, Io, yt, To, Co, Po, Oo, Rr, yn, _n, vn, Ro, Bo, Br, Zt, xr, Hr, Wi, $i,
|
|
|
9916
9916
|
}, gt.prototype.parseHost = function() {
|
|
9917
9917
|
var i = this.host, u = Co.exec(i);
|
|
9918
9918
|
u && ((u = u[0]) !== ":" && (this.port = u.substr(1)), i = i.substr(0, i.length - u.length)), i && (this.hostname = i);
|
|
9919
|
-
}, Ue.Url, Ue.format, Ue.resolve, Ue.resolveObject, Hr = {}, Wi = !1, $i = qh(), xo = typeof Deno < "u" ? Deno.build.os === "windows" ? "win32" : Deno.build.os : void 0, Ue.URL = typeof URL < "u" ? URL : null, Ue.pathToFileURL = Kh, Ue.fileURLToPath = Hh, Ue.Url, Ue.format, Ue.resolve, Ue.resolveObject, Ue.URL, ta = 92, ra = 47, na = 97, ia = 122, zr = xo === "win32", oa = /\//g, sa = /%/g, aa = /\\/g, la = /\n/g, ua = /\r/g, ha = /\t/g, Mo = typeof Deno < "u" ? Deno.build.os === "windows" ? "win32" : Deno.build.os : void 0, Ue.URL = typeof URL < "u" ? URL : null, Ue.pathToFileURL = ea, Ue.fileURLToPath = Zs, ca = Ue.Url, fa = Ue.format, da = Ue.resolve, pa = Ue.resolveObject, ga = Ue.parse, ma = Ue.URL, ba = 92, ya = 47,
|
|
9919
|
+
}, Ue.Url, Ue.format, Ue.resolve, Ue.resolveObject, Hr = {}, Wi = !1, $i = qh(), xo = typeof Deno < "u" ? Deno.build.os === "windows" ? "win32" : Deno.build.os : void 0, Ue.URL = typeof URL < "u" ? URL : null, Ue.pathToFileURL = Kh, Ue.fileURLToPath = Hh, Ue.Url, Ue.format, Ue.resolve, Ue.resolveObject, Ue.URL, ta = 92, ra = 47, na = 97, ia = 122, zr = xo === "win32", oa = /\//g, sa = /%/g, aa = /\\/g, la = /\n/g, ua = /\r/g, ha = /\t/g, Mo = typeof Deno < "u" ? Deno.build.os === "windows" ? "win32" : Deno.build.os : void 0, Ue.URL = typeof URL < "u" ? URL : null, Ue.pathToFileURL = ea, Ue.fileURLToPath = Zs, ca = Ue.Url, fa = Ue.format, da = Ue.resolve, pa = Ue.resolveObject, ga = Ue.parse, ma = Ue.URL, ba = 92, ya = 47, va = 97, _a = 122, Kr = Mo === "win32", wa = /\//g, Ea = /%/g, Sa = /\\/g, Aa = /\n/g, ka = /\r/g, Ia = /\t/g;
|
|
9920
9920
|
}), Jh = be((i, u) => {
|
|
9921
9921
|
ue(), ce(), he(), u.exports = function() {
|
|
9922
9922
|
throw new Error("ws does not work in the browser. Browser clients must use the native WebSocket object");
|
|
@@ -9998,7 +9998,7 @@ var Ue, Io, yt, To, Co, Po, Oo, Rr, yn, _n, vn, Ro, Bo, Br, Zt, xr, Hr, Wi, $i,
|
|
|
9998
9998
|
let E = y.protocolId === "MQIsdp" && y.protocolVersion === 3 ? "mqttv3.1" : "mqtt", N = h(y, A), x;
|
|
9999
9999
|
return y.createWebsocket ? x = y.createWebsocket(N, [E], y) : x = new WebSocket(N, [E]), x.binaryType = "arraybuffer", x;
|
|
10000
10000
|
}
|
|
10001
|
-
var
|
|
10001
|
+
var _ = (A, y) => {
|
|
10002
10002
|
t("streamBuilder");
|
|
10003
10003
|
let E = d(y);
|
|
10004
10004
|
E.hostname = E.hostname || E.host || "localhost";
|
|
@@ -10007,8 +10007,8 @@ var Ue, Io, yt, To, Co, Po, Oo, Rr, yn, _n, vn, Ro, Bo, Br, Zt, xr, Hr, Wi, $i,
|
|
|
10007
10007
|
k.destroy();
|
|
10008
10008
|
}), k;
|
|
10009
10009
|
};
|
|
10010
|
-
i.streamBuilder =
|
|
10011
|
-
var
|
|
10010
|
+
i.streamBuilder = _;
|
|
10011
|
+
var v = (A, y) => {
|
|
10012
10012
|
t("browserStreamBuilder");
|
|
10013
10013
|
let E, N = p(y).browserBufferSize || 1024 * 512, x = y.browserBufferTimeout || 1e3, k = !y.objectMode, T = b(A, y), M = X(y, W, me);
|
|
10014
10014
|
y.objectMode || (M._writev = n.writev.bind(M)), M.on("close", () => {
|
|
@@ -10016,9 +10016,9 @@ var Ue, Io, yt, To, Co, Po, Oo, Rr, yn, _n, vn, Ro, Bo, Br, Zt, xr, Hr, Wi, $i,
|
|
|
10016
10016
|
});
|
|
10017
10017
|
let G = typeof T.addEventListener < "u";
|
|
10018
10018
|
T.readyState === T.OPEN ? (E = M, E.socket = T) : (E = new n.BufferedDuplex(y, M, T), G ? T.addEventListener("open", ae) : T.onopen = ae), G ? (T.addEventListener("close", O), T.addEventListener("error", Q), T.addEventListener("message", J)) : (T.onclose = O, T.onerror = Q, T.onmessage = J);
|
|
10019
|
-
function X(de, ge,
|
|
10019
|
+
function X(de, ge, _e) {
|
|
10020
10020
|
let K = new r.Transform({ objectMode: de.objectMode });
|
|
10021
|
-
return K._write = ge, K._flush =
|
|
10021
|
+
return K._write = ge, K._flush = _e, K;
|
|
10022
10022
|
}
|
|
10023
10023
|
function ae() {
|
|
10024
10024
|
t("WebSocket onOpen"), E instanceof n.BufferedDuplex && E.socketReady();
|
|
@@ -10036,25 +10036,25 @@ var Ue, Io, yt, To, Co, Po, Oo, Rr, yn, _n, vn, Ro, Bo, Br, Zt, xr, Hr, Wi, $i,
|
|
|
10036
10036
|
let { data: ge } = de;
|
|
10037
10037
|
ge instanceof ArrayBuffer ? ge = o.Buffer.from(ge) : ge instanceof Blob ? ge = o.Buffer.from(await new Response(ge).arrayBuffer()) : ge = o.Buffer.from(ge, "utf8"), M.push(ge);
|
|
10038
10038
|
}
|
|
10039
|
-
function W(de, ge,
|
|
10039
|
+
function W(de, ge, _e) {
|
|
10040
10040
|
if (T.bufferedAmount > N) {
|
|
10041
|
-
setTimeout(W, x, de, ge,
|
|
10041
|
+
setTimeout(W, x, de, ge, _e);
|
|
10042
10042
|
return;
|
|
10043
10043
|
}
|
|
10044
10044
|
k && typeof de == "string" && (de = o.Buffer.from(de, "utf8"));
|
|
10045
10045
|
try {
|
|
10046
10046
|
T.send(de);
|
|
10047
10047
|
} catch (K) {
|
|
10048
|
-
return
|
|
10048
|
+
return _e(K);
|
|
10049
10049
|
}
|
|
10050
|
-
|
|
10050
|
+
_e();
|
|
10051
10051
|
}
|
|
10052
10052
|
function me(de) {
|
|
10053
10053
|
T.close(), de();
|
|
10054
10054
|
}
|
|
10055
10055
|
return E;
|
|
10056
10056
|
};
|
|
10057
|
-
i.browserStreamBuilder =
|
|
10057
|
+
i.browserStreamBuilder = v;
|
|
10058
10058
|
}), eo = {};
|
|
10059
10059
|
dr(eo, { Server: () => ze, Socket: () => ze, Stream: () => ze, _createServerHandle: () => ze, _normalizeArgs: () => ze, _setSimultaneousAccepts: () => ze, connect: () => ze, createConnection: () => ze, createServer: () => ze, default: () => Ta, isIP: () => ze, isIPv4: () => ze, isIPv6: () => ze });
|
|
10060
10060
|
function ze() {
|
|
@@ -10113,11 +10113,11 @@ var Ra, Xh = st(() => {
|
|
|
10113
10113
|
var u = (tt(), Fe(et)), o = ur(), a = Zi(), l, r, e;
|
|
10114
10114
|
function n() {
|
|
10115
10115
|
let p = new o.Transform();
|
|
10116
|
-
return p._write = (m, b,
|
|
10116
|
+
return p._write = (m, b, _) => {
|
|
10117
10117
|
l.send({ data: m.buffer, success() {
|
|
10118
|
-
|
|
10119
|
-
}, fail(
|
|
10120
|
-
|
|
10118
|
+
_();
|
|
10119
|
+
}, fail(v) {
|
|
10120
|
+
_(new Error(v));
|
|
10121
10121
|
} });
|
|
10122
10122
|
}, p._flush = (m) => {
|
|
10123
10123
|
l.close({ success() {
|
|
@@ -10129,8 +10129,8 @@ var Ra, Xh = st(() => {
|
|
|
10129
10129
|
p.hostname || (p.hostname = "localhost"), p.path || (p.path = "/"), p.wsOptions || (p.wsOptions = {});
|
|
10130
10130
|
}
|
|
10131
10131
|
function s(p, m) {
|
|
10132
|
-
let b = p.protocol === "wxs" ? "wss" : "ws",
|
|
10133
|
-
return p.port && p.port !== 80 && p.port !== 443 && (
|
|
10132
|
+
let b = p.protocol === "wxs" ? "wss" : "ws", _ = `${b}://${p.hostname}${p.path}`;
|
|
10133
|
+
return p.port && p.port !== 80 && p.port !== 443 && (_ = `${b}://${p.hostname}:${p.port}${p.path}`), typeof p.transformWsUrl == "function" && (_ = p.transformWsUrl(_, p, m)), _;
|
|
10134
10134
|
}
|
|
10135
10135
|
function h() {
|
|
10136
10136
|
l.onOpen(() => {
|
|
@@ -10149,14 +10149,14 @@ var Ra, Xh = st(() => {
|
|
|
10149
10149
|
if (m.hostname = m.hostname || m.host, !m.hostname) throw new Error("Could not determine host. Specify host manually.");
|
|
10150
10150
|
let b = m.protocolId === "MQIsdp" && m.protocolVersion === 3 ? "mqttv3.1" : "mqtt";
|
|
10151
10151
|
t(m);
|
|
10152
|
-
let
|
|
10153
|
-
l = wx.connectSocket({ url:
|
|
10152
|
+
let _ = s(m, p);
|
|
10153
|
+
l = wx.connectSocket({ url: _, protocols: [b] }), r = n(), e = new a.BufferedDuplex(m, r, l), e._destroy = (A, y) => {
|
|
10154
10154
|
l.close({ success() {
|
|
10155
10155
|
y && y(A);
|
|
10156
10156
|
} });
|
|
10157
10157
|
};
|
|
10158
|
-
let
|
|
10159
|
-
return e.destroy = (A, y) => (e.destroy =
|
|
10158
|
+
let v = e.destroy;
|
|
10159
|
+
return e.destroy = (A, y) => (e.destroy = v, setTimeout(() => {
|
|
10160
10160
|
l.close({ fail() {
|
|
10161
10161
|
e._destroy(A, y);
|
|
10162
10162
|
} });
|
|
@@ -10168,11 +10168,11 @@ var Ra, Xh = st(() => {
|
|
|
10168
10168
|
var u = (tt(), Fe(et)), o = ur(), a = Zi(), l, r, e, n = !1;
|
|
10169
10169
|
function t() {
|
|
10170
10170
|
let m = new o.Transform();
|
|
10171
|
-
return m._write = (b,
|
|
10171
|
+
return m._write = (b, _, v) => {
|
|
10172
10172
|
l.sendSocketMessage({ data: b.buffer, success() {
|
|
10173
|
-
|
|
10173
|
+
v();
|
|
10174
10174
|
}, fail() {
|
|
10175
|
-
|
|
10175
|
+
v(new Error());
|
|
10176
10176
|
} });
|
|
10177
10177
|
}, m._flush = (b) => {
|
|
10178
10178
|
l.closeSocket({ success() {
|
|
@@ -10184,8 +10184,8 @@ var Ra, Xh = st(() => {
|
|
|
10184
10184
|
m.hostname || (m.hostname = "localhost"), m.path || (m.path = "/"), m.wsOptions || (m.wsOptions = {});
|
|
10185
10185
|
}
|
|
10186
10186
|
function h(m, b) {
|
|
10187
|
-
let
|
|
10188
|
-
return m.port && m.port !== 80 && m.port !== 443 && (
|
|
10187
|
+
let _ = m.protocol === "alis" ? "wss" : "ws", v = `${_}://${m.hostname}${m.path}`;
|
|
10188
|
+
return m.port && m.port !== 80 && m.port !== 443 && (v = `${_}://${m.hostname}:${m.port}${m.path}`), typeof m.transformWsUrl == "function" && (v = m.transformWsUrl(v, m, b)), v;
|
|
10189
10189
|
}
|
|
10190
10190
|
function d() {
|
|
10191
10191
|
n || (n = !0, l.onSocketOpen(() => {
|
|
@@ -10197,8 +10197,8 @@ var Ra, Xh = st(() => {
|
|
|
10197
10197
|
} else {
|
|
10198
10198
|
let b = new FileReader();
|
|
10199
10199
|
b.addEventListener("load", () => {
|
|
10200
|
-
let
|
|
10201
|
-
|
|
10200
|
+
let _ = b.result;
|
|
10201
|
+
_ instanceof ArrayBuffer ? _ = u.Buffer.from(_) : _ = u.Buffer.from(_, "utf8"), r.push(_);
|
|
10202
10202
|
}), b.readAsArrayBuffer(m.data);
|
|
10203
10203
|
}
|
|
10204
10204
|
}), l.onSocketClose(() => {
|
|
@@ -10209,10 +10209,10 @@ var Ra, Xh = st(() => {
|
|
|
10209
10209
|
}
|
|
10210
10210
|
var p = (m, b) => {
|
|
10211
10211
|
if (b.hostname = b.hostname || b.host, !b.hostname) throw new Error("Could not determine host. Specify host manually.");
|
|
10212
|
-
let
|
|
10212
|
+
let _ = b.protocolId === "MQIsdp" && b.protocolVersion === 3 ? "mqttv3.1" : "mqtt";
|
|
10213
10213
|
s(b);
|
|
10214
|
-
let
|
|
10215
|
-
return l = b.my, l.connectSocket({ url:
|
|
10214
|
+
let v = h(b, m);
|
|
10215
|
+
return l = b.my, l.connectSocket({ url: v, protocols: _ }), r = t(), e = new a.BufferedDuplex(b, r, l), d(), e;
|
|
10216
10216
|
};
|
|
10217
10217
|
i.default = p;
|
|
10218
10218
|
}), Zh = be((i) => {
|
|
@@ -10229,13 +10229,13 @@ var Ra, Xh = st(() => {
|
|
|
10229
10229
|
d.auth && (p = d.auth.match(/^(.+):(.+)$/), p ? (d.username = p[1], d.password = p[2]) : d.username = d.auth);
|
|
10230
10230
|
}
|
|
10231
10231
|
function s(d, p) {
|
|
10232
|
-
var m, b,
|
|
10232
|
+
var m, b, _;
|
|
10233
10233
|
if (e("connecting to an MQTT broker..."), typeof d == "object" && !p && (p = d, d = ""), p = p || {}, d && typeof d == "string") {
|
|
10234
10234
|
let y = a.default.parse(d, !0), E = {};
|
|
10235
10235
|
if (y.port != null && (E.port = Number(y.port)), E.host = y.hostname, E.query = y.query, E.auth = y.auth, E.protocol = y.protocol, E.path = y.path, p = Object.assign(Object.assign({}, E), p), !p.protocol) throw new Error("Missing protocol");
|
|
10236
10236
|
p.protocol = p.protocol.replace(/:$/, "");
|
|
10237
10237
|
}
|
|
10238
|
-
if (p.unixSocket = p.unixSocket || ((m = p.protocol) === null || m === void 0 ? void 0 : m.includes("+unix")), p.unixSocket ? p.protocol = p.protocol.replace("+unix", "") : !(!((b = p.protocol) === null || b === void 0) && b.startsWith("ws")) && !(!((
|
|
10238
|
+
if (p.unixSocket = p.unixSocket || ((m = p.protocol) === null || m === void 0 ? void 0 : m.includes("+unix")), p.unixSocket ? p.protocol = p.protocol.replace("+unix", "") : !(!((b = p.protocol) === null || b === void 0) && b.startsWith("ws")) && !(!((_ = p.protocol) === null || _ === void 0) && _.startsWith("wx")) && delete p.path, t(p), p.query && typeof p.query.clientId == "string" && (p.clientId = p.query.clientId), r.default || p.unixSocket ? p.socksProxy = void 0 : p.socksProxy === void 0 && typeof je < "u" && (p.socksProxy = je.env.MQTTJS_SOCKS_PROXY), p.cert && p.key) if (p.protocol) {
|
|
10239
10239
|
if (["mqtts", "wss", "wxs", "alis"].indexOf(p.protocol) === -1) switch (p.protocol) {
|
|
10240
10240
|
case "mqtt":
|
|
10241
10241
|
p.protocol = "mqtts";
|
|
@@ -10259,66 +10259,66 @@ var Ra, Xh = st(() => {
|
|
|
10259
10259
|
}
|
|
10260
10260
|
if (p.clean === !1 && !p.clientId) throw new Error("Missing clientId for unclean clients");
|
|
10261
10261
|
p.protocol && (p.defaultProtocol = p.protocol);
|
|
10262
|
-
function
|
|
10262
|
+
function v(y) {
|
|
10263
10263
|
return p.servers && ((!y._reconnectCount || y._reconnectCount === p.servers.length) && (y._reconnectCount = 0), p.host = p.servers[y._reconnectCount].host, p.port = p.servers[y._reconnectCount].port, p.protocol = p.servers[y._reconnectCount].protocol ? p.servers[y._reconnectCount].protocol : p.defaultProtocol, p.hostname = p.host, y._reconnectCount++), e("calling streambuilder for", p.protocol), n[p.protocol](y, p);
|
|
10264
10264
|
}
|
|
10265
|
-
let A = new l.default(
|
|
10265
|
+
let A = new l.default(v, p);
|
|
10266
10266
|
return A.on("error", () => {
|
|
10267
10267
|
}), A;
|
|
10268
10268
|
}
|
|
10269
10269
|
function h(d, p, m = !0) {
|
|
10270
|
-
return new Promise((b,
|
|
10271
|
-
let
|
|
10272
|
-
y(), b(
|
|
10270
|
+
return new Promise((b, _) => {
|
|
10271
|
+
let v = s(d, p), A = { connect: (E) => {
|
|
10272
|
+
y(), b(v);
|
|
10273
10273
|
}, end: () => {
|
|
10274
|
-
y(), b(
|
|
10274
|
+
y(), b(v);
|
|
10275
10275
|
}, error: (E) => {
|
|
10276
|
-
y(),
|
|
10276
|
+
y(), v.end(), _(E);
|
|
10277
10277
|
} };
|
|
10278
10278
|
m === !1 && (A.close = () => {
|
|
10279
10279
|
A.error(new Error("Couldn't connect to server"));
|
|
10280
10280
|
});
|
|
10281
10281
|
function y() {
|
|
10282
10282
|
Object.keys(A).forEach((E) => {
|
|
10283
|
-
|
|
10283
|
+
v.off(E, A[E]);
|
|
10284
10284
|
});
|
|
10285
10285
|
}
|
|
10286
10286
|
Object.keys(A).forEach((E) => {
|
|
10287
|
-
|
|
10287
|
+
v.on(E, A[E]);
|
|
10288
10288
|
});
|
|
10289
10289
|
});
|
|
10290
10290
|
}
|
|
10291
10291
|
i.default = s;
|
|
10292
10292
|
}), Do = be((i) => {
|
|
10293
10293
|
ue(), ce(), he();
|
|
10294
|
-
var u = i && i.__createBinding || (Object.create ? function(m, b,
|
|
10295
|
-
|
|
10296
|
-
var A = Object.getOwnPropertyDescriptor(b,
|
|
10294
|
+
var u = i && i.__createBinding || (Object.create ? function(m, b, _, v) {
|
|
10295
|
+
v === void 0 && (v = _);
|
|
10296
|
+
var A = Object.getOwnPropertyDescriptor(b, _);
|
|
10297
10297
|
(!A || ("get" in A ? !b.__esModule : A.writable || A.configurable)) && (A = { enumerable: !0, get: function() {
|
|
10298
|
-
return b[
|
|
10299
|
-
} }), Object.defineProperty(m,
|
|
10300
|
-
} : function(m, b,
|
|
10301
|
-
|
|
10298
|
+
return b[_];
|
|
10299
|
+
} }), Object.defineProperty(m, v, A);
|
|
10300
|
+
} : function(m, b, _, v) {
|
|
10301
|
+
v === void 0 && (v = _), m[v] = b[_];
|
|
10302
10302
|
}), o = i && i.__setModuleDefault || (Object.create ? function(m, b) {
|
|
10303
10303
|
Object.defineProperty(m, "default", { enumerable: !0, value: b });
|
|
10304
10304
|
} : function(m, b) {
|
|
10305
10305
|
m.default = b;
|
|
10306
10306
|
}), a = i && i.__importStar || /* @__PURE__ */ function() {
|
|
10307
10307
|
var m = function(b) {
|
|
10308
|
-
return m = Object.getOwnPropertyNames || function(
|
|
10309
|
-
var
|
|
10310
|
-
for (var A in
|
|
10311
|
-
return
|
|
10308
|
+
return m = Object.getOwnPropertyNames || function(_) {
|
|
10309
|
+
var v = [];
|
|
10310
|
+
for (var A in _) Object.prototype.hasOwnProperty.call(_, A) && (v[v.length] = A);
|
|
10311
|
+
return v;
|
|
10312
10312
|
}, m(b);
|
|
10313
10313
|
};
|
|
10314
10314
|
return function(b) {
|
|
10315
10315
|
if (b && b.__esModule) return b;
|
|
10316
|
-
var
|
|
10317
|
-
if (b != null) for (var
|
|
10318
|
-
return o(
|
|
10316
|
+
var _ = {};
|
|
10317
|
+
if (b != null) for (var v = m(b), A = 0; A < v.length; A++) v[A] !== "default" && u(_, b, v[A]);
|
|
10318
|
+
return o(_, b), _;
|
|
10319
10319
|
};
|
|
10320
10320
|
}(), l = i && i.__exportStar || function(m, b) {
|
|
10321
|
-
for (var
|
|
10321
|
+
for (var _ in m) _ !== "default" && !Object.prototype.hasOwnProperty.call(b, _) && u(b, m, _);
|
|
10322
10322
|
}, r = i && i.__importDefault || function(m) {
|
|
10323
10323
|
return m && m.__esModule ? m : { default: m };
|
|
10324
10324
|
};
|