@edifice.io/edifice-ent-client-node 6.9.0-develop-pedago.1767943970121 → 6.11.0-develop-pedago.1768475896761
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +121 -121
- package/dist/index.umd.cjs +8 -8
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -49,12 +49,12 @@ var On = {}, Cn = {}, Mt = {}, be = {}, Ue = {};
|
|
|
49
49
|
var re = {};
|
|
50
50
|
Object.defineProperty(re, "__esModule", { value: !0 });
|
|
51
51
|
re.errors = re.PermissionViolationError = re.NoRespondersError = re.TimeoutError = re.RequestError = re.ProtocolError = re.ConnectionError = re.DrainingConnectionError = re.ClosedConnectionError = re.AuthorizationError = re.UserAuthenticationExpiredError = re.InvalidOperationError = re.InvalidArgumentError = re.InvalidSubjectError = void 0;
|
|
52
|
-
class
|
|
52
|
+
class Nn extends Error {
|
|
53
53
|
constructor(e, r) {
|
|
54
54
|
super(`illegal subject: '${e}'`, r), this.name = "InvalidSubjectError";
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
|
-
re.InvalidSubjectError =
|
|
57
|
+
re.InvalidSubjectError = Nn;
|
|
58
58
|
class tr extends Error {
|
|
59
59
|
constructor(e, r) {
|
|
60
60
|
super(e, r), this.name = "InvalidArgumentError";
|
|
@@ -64,12 +64,12 @@ class tr extends Error {
|
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
re.InvalidArgumentError = tr;
|
|
67
|
-
class
|
|
67
|
+
class jn extends Error {
|
|
68
68
|
constructor(e, r) {
|
|
69
69
|
super(e, r), this.name = "InvalidOperationError";
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
re.InvalidOperationError =
|
|
72
|
+
re.InvalidOperationError = jn;
|
|
73
73
|
class rr extends Error {
|
|
74
74
|
constructor(e, r) {
|
|
75
75
|
super(e, r), this.name = "UserAuthenticationExpiredError";
|
|
@@ -170,8 +170,8 @@ re.errors = {
|
|
|
170
170
|
ConnectionError: In,
|
|
171
171
|
DrainingConnectionError: Tn,
|
|
172
172
|
InvalidArgumentError: tr,
|
|
173
|
-
InvalidOperationError:
|
|
174
|
-
InvalidSubjectError:
|
|
173
|
+
InvalidOperationError: jn,
|
|
174
|
+
InvalidSubjectError: Nn,
|
|
175
175
|
NoRespondersError: kr,
|
|
176
176
|
PermissionViolationError: sr,
|
|
177
177
|
ProtocolError: Rn,
|
|
@@ -193,7 +193,7 @@ be.collect = Ss;
|
|
|
193
193
|
be.jitter = Ln;
|
|
194
194
|
be.backoff = Os;
|
|
195
195
|
be.nanos = Cs;
|
|
196
|
-
be.millis =
|
|
196
|
+
be.millis = Ns;
|
|
197
197
|
const gs = Ue, Cr = re;
|
|
198
198
|
function ms(t, ...e) {
|
|
199
199
|
for (let r = 0; r < e.length; r++) {
|
|
@@ -345,13 +345,13 @@ function Os(t = [0, 250, 250, 500, 500, 3e3, 5e3]) {
|
|
|
345
345
|
function Cs(t) {
|
|
346
346
|
return t * 1e6;
|
|
347
347
|
}
|
|
348
|
-
function
|
|
348
|
+
function Ns(t) {
|
|
349
349
|
return Math.floor(t / 1e6);
|
|
350
350
|
}
|
|
351
|
-
var Me = {}, it = {},
|
|
351
|
+
var Me = {}, it = {}, je = {}, Tt = {}, yt = {};
|
|
352
352
|
Object.defineProperty(yt, "__esModule", { value: !0 });
|
|
353
353
|
yt.nuid = yt.Nuid = void 0;
|
|
354
|
-
const nn = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ", xr = 36, Zt = 12,
|
|
354
|
+
const nn = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ", xr = 36, Zt = 12, js = 10, sn = 3656158440062976, on = 33, Ms = 333, an = Zt + js;
|
|
355
355
|
function Ts(t) {
|
|
356
356
|
for (let e = 0; e < t.length; e++)
|
|
357
357
|
t[e] = Math.floor(Math.random() * 255);
|
|
@@ -445,12 +445,12 @@ yt.nuid = new qn();
|
|
|
445
445
|
return e.nuid;
|
|
446
446
|
} });
|
|
447
447
|
})(Tt);
|
|
448
|
-
Object.defineProperty(
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
448
|
+
Object.defineProperty(je, "__esModule", { value: !0 });
|
|
449
|
+
je.DEFAULT_HOST = je.DEFAULT_PORT = je.Match = void 0;
|
|
450
|
+
je.syncIterator = Us;
|
|
451
|
+
je.createInbox = Ls;
|
|
452
452
|
const Rs = Tt, ks = re;
|
|
453
|
-
|
|
453
|
+
je.Match = {
|
|
454
454
|
// Exact option is case-sensitive
|
|
455
455
|
Exact: "exact",
|
|
456
456
|
// Case-sensitive, but key is transformed to Canonical MIME representation
|
|
@@ -475,8 +475,8 @@ function Ls(t = "") {
|
|
|
475
475
|
throw ks.InvalidArgumentError.format("prefix", `cannot have wildcards ('${t}')`);
|
|
476
476
|
}), `${t}.${Rs.nuid.next()}`;
|
|
477
477
|
}
|
|
478
|
-
|
|
479
|
-
|
|
478
|
+
je.DEFAULT_PORT = 4222;
|
|
479
|
+
je.DEFAULT_HOST = "127.0.0.1";
|
|
480
480
|
var ot = {};
|
|
481
481
|
Object.defineProperty(ot, "__esModule", { value: !0 });
|
|
482
482
|
ot.DataBuffer = void 0;
|
|
@@ -554,7 +554,7 @@ class qs {
|
|
|
554
554
|
ot.DataBuffer = qs;
|
|
555
555
|
(function(t) {
|
|
556
556
|
Object.defineProperty(t, "__esModule", { value: !0 }), t.LF = t.CR = t.CRLF = t.CR_LF_LEN = t.CR_LF = void 0, t.setTransportFactory = a, t.defaultPort = d, t.getUrlParseFn = m, t.newTransport = S, t.getResolveFn = _, t.protoLen = w, t.extractProtocolMessage = E;
|
|
557
|
-
const e = Ue, r =
|
|
557
|
+
const e = Ue, r = je, s = ot;
|
|
558
558
|
let i;
|
|
559
559
|
function a(b) {
|
|
560
560
|
i = b;
|
|
@@ -597,7 +597,7 @@ Object.defineProperty(mt, "__esModule", { value: !0 });
|
|
|
597
597
|
mt.ipV4 = Kn;
|
|
598
598
|
mt.isIP = Bs;
|
|
599
599
|
mt.parseIP = Bn;
|
|
600
|
-
const
|
|
600
|
+
const jt = 4, nt = 16, $t = 48, Fn = 57, fn = 65, Fs = 70, un = 97, Ks = 102, Nr = 16777215;
|
|
601
601
|
function Kn(t, e, r, s) {
|
|
602
602
|
const i = new Uint8Array(nt);
|
|
603
603
|
return [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 255].forEach((d, m) => {
|
|
@@ -617,8 +617,8 @@ function Bn(t) {
|
|
|
617
617
|
}
|
|
618
618
|
}
|
|
619
619
|
function Dn(t) {
|
|
620
|
-
const e = new Uint8Array(
|
|
621
|
-
for (let r = 0; r <
|
|
620
|
+
const e = new Uint8Array(jt);
|
|
621
|
+
for (let r = 0; r < jt; r++) {
|
|
622
622
|
if (t.length === 0)
|
|
623
623
|
return;
|
|
624
624
|
if (r > 0) {
|
|
@@ -644,12 +644,12 @@ function Ds(t) {
|
|
|
644
644
|
if (!d || i > 65535)
|
|
645
645
|
return;
|
|
646
646
|
if (a < t.length && t[a] === ".") {
|
|
647
|
-
if (r < 0 && s != nt -
|
|
647
|
+
if (r < 0 && s != nt - jt || s + jt > nt)
|
|
648
648
|
return;
|
|
649
649
|
const m = Dn(t);
|
|
650
650
|
if (m === void 0)
|
|
651
651
|
return;
|
|
652
|
-
e[s] = m[12], e[s + 1] = m[13], e[s + 2] = m[14], e[s + 3] = m[15], t = "", s +=
|
|
652
|
+
e[s] = m[12], e[s + 1] = m[13], e[s + 2] = m[14], e[s + 3] = m[15], t = "", s += jt;
|
|
653
653
|
break;
|
|
654
654
|
}
|
|
655
655
|
if (e[s] = i >> 8, e[s + 1] = i, s += 2, t = t.substring(a), t.length === 0)
|
|
@@ -680,8 +680,8 @@ function Ds(t) {
|
|
|
680
680
|
function Gs(t) {
|
|
681
681
|
let e = 0, r = 0;
|
|
682
682
|
for (e = 0; e < t.length && $t <= t.charCodeAt(e) && t.charCodeAt(e) <= Fn; e++)
|
|
683
|
-
if (r = r * 10 + (t.charCodeAt(e) - $t), r >=
|
|
684
|
-
return { n:
|
|
683
|
+
if (r = r * 10 + (t.charCodeAt(e) - $t), r >= Nr)
|
|
684
|
+
return { n: Nr, c: e, ok: !1 };
|
|
685
685
|
return e === 0 ? { n: 0, c: 0, ok: !1 } : { n: r, c: e, ok: !0 };
|
|
686
686
|
}
|
|
687
687
|
function zs(t) {
|
|
@@ -695,7 +695,7 @@ function zs(t) {
|
|
|
695
695
|
e *= 16, e += t.charCodeAt(r) - fn + 10;
|
|
696
696
|
else
|
|
697
697
|
break;
|
|
698
|
-
if (e >=
|
|
698
|
+
if (e >= Nr)
|
|
699
699
|
return { n: 0, c: r, ok: !1 };
|
|
700
700
|
}
|
|
701
701
|
return r === 0 ? { n: 0, c: r, ok: !1 } : { n: e, c: r, ok: !0 };
|
|
@@ -704,7 +704,7 @@ Object.defineProperty(Xe, "__esModule", { value: !0 });
|
|
|
704
704
|
Xe.Servers = Xe.ServerImpl = void 0;
|
|
705
705
|
Xe.isIPV4OrHostname = Jn;
|
|
706
706
|
Xe.hostPort = Hn;
|
|
707
|
-
const Wt = it, Gn = be,
|
|
707
|
+
const Wt = it, Gn = be, jr = mt, zn = je;
|
|
708
708
|
function Jn(t) {
|
|
709
709
|
return t.indexOf("[") !== -1 || t.indexOf("::") !== -1 ? !1 : t.indexOf(".") !== -1 || t.split(":").length <= 2;
|
|
710
710
|
}
|
|
@@ -749,7 +749,7 @@ class lt {
|
|
|
749
749
|
if (!e.fn || e.resolve === !1)
|
|
750
750
|
return [this];
|
|
751
751
|
const r = [];
|
|
752
|
-
if ((0,
|
|
752
|
+
if ((0, jr.isIP)(this.hostname))
|
|
753
753
|
return [this];
|
|
754
754
|
{
|
|
755
755
|
const s = await e.fn(this.hostname);
|
|
@@ -783,7 +783,7 @@ class Hs {
|
|
|
783
783
|
}
|
|
784
784
|
updateTLSName() {
|
|
785
785
|
const e = this.getCurrentServer();
|
|
786
|
-
(0,
|
|
786
|
+
(0, jr.isIP)(e.hostname) || (this.tlsName = e.hostname, this.servers.forEach((r) => {
|
|
787
787
|
r.gossiped && (r.tlsName = this.tlsName);
|
|
788
788
|
}));
|
|
789
789
|
}
|
|
@@ -794,7 +794,7 @@ class Hs {
|
|
|
794
794
|
const s = (0, Wt.getUrlParseFn)();
|
|
795
795
|
e = s ? s(e) : e;
|
|
796
796
|
const i = new lt(e, r);
|
|
797
|
-
(0,
|
|
797
|
+
(0, jr.isIP)(i.hostname) && (i.tlsName = this.tlsName), this.servers.push(i);
|
|
798
798
|
}
|
|
799
799
|
selectServer() {
|
|
800
800
|
if (this.firstSelect)
|
|
@@ -941,7 +941,7 @@ _t.QueuedIteratorImpl = Vs;
|
|
|
941
941
|
var It = {};
|
|
942
942
|
Object.defineProperty(It, "__esModule", { value: !0 });
|
|
943
943
|
It.MuxSubscription = void 0;
|
|
944
|
-
const Ys =
|
|
944
|
+
const Ys = je, dn = re;
|
|
945
945
|
class Ws {
|
|
946
946
|
constructor() {
|
|
947
947
|
l(this, "baseInbox");
|
|
@@ -1733,7 +1733,7 @@ Object.defineProperty($e, "__esModule", { value: !0 });
|
|
|
1733
1733
|
$e.MsgHdrsImpl = void 0;
|
|
1734
1734
|
$e.canonicalMIMEHeaderKey = Tr;
|
|
1735
1735
|
$e.headers = Qs;
|
|
1736
|
-
const ln = Ue, Be =
|
|
1736
|
+
const ln = Ue, Be = je, Fr = re;
|
|
1737
1737
|
function Tr(t) {
|
|
1738
1738
|
let w = !0;
|
|
1739
1739
|
const E = new Array(t.length);
|
|
@@ -2491,13 +2491,13 @@ const si = {}, ii = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2491
2491
|
return M(o, f, c, n, 32);
|
|
2492
2492
|
}
|
|
2493
2493
|
function ye(o, f, c, n) {
|
|
2494
|
-
for (var u = n[0] & 255 | (n[1] & 255) << 8 | (n[2] & 255) << 16 | (n[3] & 255) << 24, y = c[0] & 255 | (c[1] & 255) << 8 | (c[2] & 255) << 16 | (c[3] & 255) << 24, g = c[4] & 255 | (c[5] & 255) << 8 | (c[6] & 255) << 16 | (c[7] & 255) << 24, A = c[8] & 255 | (c[9] & 255) << 8 | (c[10] & 255) << 16 | (c[11] & 255) << 24,
|
|
2495
|
-
h = F + z | 0, B ^= h << 7 | h >>> 25, h = B + F | 0, C ^= h << 9 | h >>> 23, h = C + B | 0, z ^= h << 13 | h >>> 19, h = z + C | 0, F ^= h << 18 | h >>> 14, h = T + G | 0, P ^= h << 7 | h >>> 25, h = P + T | 0, Q ^= h << 9 | h >>> 23, h = Q + P | 0, G ^= h << 13 | h >>> 19, h = G + Q | 0, T ^= h << 18 | h >>> 14, h = O + v | 0, ee ^= h << 7 | h >>> 25, h = ee + O | 0, k ^= h << 9 | h >>> 23, h = k + ee | 0, v ^= h << 13 | h >>> 19, h = v + k | 0, O ^= h << 18 | h >>> 14, h = $ +
|
|
2496
|
-
F = F + u | 0, G = G + y | 0, k = k + g | 0, K = K + A | 0, B = B +
|
|
2494
|
+
for (var u = n[0] & 255 | (n[1] & 255) << 8 | (n[2] & 255) << 16 | (n[3] & 255) << 24, y = c[0] & 255 | (c[1] & 255) << 8 | (c[2] & 255) << 16 | (c[3] & 255) << 24, g = c[4] & 255 | (c[5] & 255) << 8 | (c[6] & 255) << 16 | (c[7] & 255) << 24, A = c[8] & 255 | (c[9] & 255) << 8 | (c[10] & 255) << 16 | (c[11] & 255) << 24, j = c[12] & 255 | (c[13] & 255) << 8 | (c[14] & 255) << 16 | (c[15] & 255) << 24, D = n[4] & 255 | (n[5] & 255) << 8 | (n[6] & 255) << 16 | (n[7] & 255) << 24, I = f[0] & 255 | (f[1] & 255) << 8 | (f[2] & 255) << 16 | (f[3] & 255) << 24, ce = f[4] & 255 | (f[5] & 255) << 8 | (f[6] & 255) << 16 | (f[7] & 255) << 24, q = f[8] & 255 | (f[9] & 255) << 8 | (f[10] & 255) << 16 | (f[11] & 255) << 24, J = f[12] & 255 | (f[13] & 255) << 8 | (f[14] & 255) << 16 | (f[15] & 255) << 24, H = n[8] & 255 | (n[9] & 255) << 8 | (n[10] & 255) << 16 | (n[11] & 255) << 24, Z = c[16] & 255 | (c[17] & 255) << 8 | (c[18] & 255) << 16 | (c[19] & 255) << 24, X = c[20] & 255 | (c[21] & 255) << 8 | (c[22] & 255) << 16 | (c[23] & 255) << 24, V = c[24] & 255 | (c[25] & 255) << 8 | (c[26] & 255) << 16 | (c[27] & 255) << 24, W = c[28] & 255 | (c[29] & 255) << 8 | (c[30] & 255) << 16 | (c[31] & 255) << 24, Y = n[12] & 255 | (n[13] & 255) << 8 | (n[14] & 255) << 16 | (n[15] & 255) << 24, F = u, G = y, k = g, K = A, B = j, T = D, v = I, x = ce, C = q, P = J, O = H, N = Z, z = X, Q = V, ee = W, $ = Y, h, ne = 0; ne < 20; ne += 2)
|
|
2495
|
+
h = F + z | 0, B ^= h << 7 | h >>> 25, h = B + F | 0, C ^= h << 9 | h >>> 23, h = C + B | 0, z ^= h << 13 | h >>> 19, h = z + C | 0, F ^= h << 18 | h >>> 14, h = T + G | 0, P ^= h << 7 | h >>> 25, h = P + T | 0, Q ^= h << 9 | h >>> 23, h = Q + P | 0, G ^= h << 13 | h >>> 19, h = G + Q | 0, T ^= h << 18 | h >>> 14, h = O + v | 0, ee ^= h << 7 | h >>> 25, h = ee + O | 0, k ^= h << 9 | h >>> 23, h = k + ee | 0, v ^= h << 13 | h >>> 19, h = v + k | 0, O ^= h << 18 | h >>> 14, h = $ + N | 0, K ^= h << 7 | h >>> 25, h = K + $ | 0, x ^= h << 9 | h >>> 23, h = x + K | 0, N ^= h << 13 | h >>> 19, h = N + x | 0, $ ^= h << 18 | h >>> 14, h = F + K | 0, G ^= h << 7 | h >>> 25, h = G + F | 0, k ^= h << 9 | h >>> 23, h = k + G | 0, K ^= h << 13 | h >>> 19, h = K + k | 0, F ^= h << 18 | h >>> 14, h = T + B | 0, v ^= h << 7 | h >>> 25, h = v + T | 0, x ^= h << 9 | h >>> 23, h = x + v | 0, B ^= h << 13 | h >>> 19, h = B + x | 0, T ^= h << 18 | h >>> 14, h = O + P | 0, N ^= h << 7 | h >>> 25, h = N + O | 0, C ^= h << 9 | h >>> 23, h = C + N | 0, P ^= h << 13 | h >>> 19, h = P + C | 0, O ^= h << 18 | h >>> 14, h = $ + ee | 0, z ^= h << 7 | h >>> 25, h = z + $ | 0, Q ^= h << 9 | h >>> 23, h = Q + z | 0, ee ^= h << 13 | h >>> 19, h = ee + Q | 0, $ ^= h << 18 | h >>> 14;
|
|
2496
|
+
F = F + u | 0, G = G + y | 0, k = k + g | 0, K = K + A | 0, B = B + j | 0, T = T + D | 0, v = v + I | 0, x = x + ce | 0, C = C + q | 0, P = P + J | 0, O = O + H | 0, N = N + Z | 0, z = z + X | 0, Q = Q + V | 0, ee = ee + W | 0, $ = $ + Y | 0, o[0] = F >>> 0 & 255, o[1] = F >>> 8 & 255, o[2] = F >>> 16 & 255, o[3] = F >>> 24 & 255, o[4] = G >>> 0 & 255, o[5] = G >>> 8 & 255, o[6] = G >>> 16 & 255, o[7] = G >>> 24 & 255, o[8] = k >>> 0 & 255, o[9] = k >>> 8 & 255, o[10] = k >>> 16 & 255, o[11] = k >>> 24 & 255, o[12] = K >>> 0 & 255, o[13] = K >>> 8 & 255, o[14] = K >>> 16 & 255, o[15] = K >>> 24 & 255, o[16] = B >>> 0 & 255, o[17] = B >>> 8 & 255, o[18] = B >>> 16 & 255, o[19] = B >>> 24 & 255, o[20] = T >>> 0 & 255, o[21] = T >>> 8 & 255, o[22] = T >>> 16 & 255, o[23] = T >>> 24 & 255, o[24] = v >>> 0 & 255, o[25] = v >>> 8 & 255, o[26] = v >>> 16 & 255, o[27] = v >>> 24 & 255, o[28] = x >>> 0 & 255, o[29] = x >>> 8 & 255, o[30] = x >>> 16 & 255, o[31] = x >>> 24 & 255, o[32] = C >>> 0 & 255, o[33] = C >>> 8 & 255, o[34] = C >>> 16 & 255, o[35] = C >>> 24 & 255, o[36] = P >>> 0 & 255, o[37] = P >>> 8 & 255, o[38] = P >>> 16 & 255, o[39] = P >>> 24 & 255, o[40] = O >>> 0 & 255, o[41] = O >>> 8 & 255, o[42] = O >>> 16 & 255, o[43] = O >>> 24 & 255, o[44] = N >>> 0 & 255, o[45] = N >>> 8 & 255, o[46] = N >>> 16 & 255, o[47] = N >>> 24 & 255, o[48] = z >>> 0 & 255, o[49] = z >>> 8 & 255, o[50] = z >>> 16 & 255, o[51] = z >>> 24 & 255, o[52] = Q >>> 0 & 255, o[53] = Q >>> 8 & 255, o[54] = Q >>> 16 & 255, o[55] = Q >>> 24 & 255, o[56] = ee >>> 0 & 255, o[57] = ee >>> 8 & 255, o[58] = ee >>> 16 & 255, o[59] = ee >>> 24 & 255, o[60] = $ >>> 0 & 255, o[61] = $ >>> 8 & 255, o[62] = $ >>> 16 & 255, o[63] = $ >>> 24 & 255;
|
|
2497
2497
|
}
|
|
2498
2498
|
function Le(o, f, c, n) {
|
|
2499
|
-
for (var u = n[0] & 255 | (n[1] & 255) << 8 | (n[2] & 255) << 16 | (n[3] & 255) << 24, y = c[0] & 255 | (c[1] & 255) << 8 | (c[2] & 255) << 16 | (c[3] & 255) << 24, g = c[4] & 255 | (c[5] & 255) << 8 | (c[6] & 255) << 16 | (c[7] & 255) << 24, A = c[8] & 255 | (c[9] & 255) << 8 | (c[10] & 255) << 16 | (c[11] & 255) << 24,
|
|
2500
|
-
h = F + z | 0, B ^= h << 7 | h >>> 25, h = B + F | 0, C ^= h << 9 | h >>> 23, h = C + B | 0, z ^= h << 13 | h >>> 19, h = z + C | 0, F ^= h << 18 | h >>> 14, h = T + G | 0, P ^= h << 7 | h >>> 25, h = P + T | 0, Q ^= h << 9 | h >>> 23, h = Q + P | 0, G ^= h << 13 | h >>> 19, h = G + Q | 0, T ^= h << 18 | h >>> 14, h = O + v | 0, ee ^= h << 7 | h >>> 25, h = ee + O | 0, k ^= h << 9 | h >>> 23, h = k + ee | 0, v ^= h << 13 | h >>> 19, h = v + k | 0, O ^= h << 18 | h >>> 14, h = $ +
|
|
2499
|
+
for (var u = n[0] & 255 | (n[1] & 255) << 8 | (n[2] & 255) << 16 | (n[3] & 255) << 24, y = c[0] & 255 | (c[1] & 255) << 8 | (c[2] & 255) << 16 | (c[3] & 255) << 24, g = c[4] & 255 | (c[5] & 255) << 8 | (c[6] & 255) << 16 | (c[7] & 255) << 24, A = c[8] & 255 | (c[9] & 255) << 8 | (c[10] & 255) << 16 | (c[11] & 255) << 24, j = c[12] & 255 | (c[13] & 255) << 8 | (c[14] & 255) << 16 | (c[15] & 255) << 24, D = n[4] & 255 | (n[5] & 255) << 8 | (n[6] & 255) << 16 | (n[7] & 255) << 24, I = f[0] & 255 | (f[1] & 255) << 8 | (f[2] & 255) << 16 | (f[3] & 255) << 24, ce = f[4] & 255 | (f[5] & 255) << 8 | (f[6] & 255) << 16 | (f[7] & 255) << 24, q = f[8] & 255 | (f[9] & 255) << 8 | (f[10] & 255) << 16 | (f[11] & 255) << 24, J = f[12] & 255 | (f[13] & 255) << 8 | (f[14] & 255) << 16 | (f[15] & 255) << 24, H = n[8] & 255 | (n[9] & 255) << 8 | (n[10] & 255) << 16 | (n[11] & 255) << 24, Z = c[16] & 255 | (c[17] & 255) << 8 | (c[18] & 255) << 16 | (c[19] & 255) << 24, X = c[20] & 255 | (c[21] & 255) << 8 | (c[22] & 255) << 16 | (c[23] & 255) << 24, V = c[24] & 255 | (c[25] & 255) << 8 | (c[26] & 255) << 16 | (c[27] & 255) << 24, W = c[28] & 255 | (c[29] & 255) << 8 | (c[30] & 255) << 16 | (c[31] & 255) << 24, Y = n[12] & 255 | (n[13] & 255) << 8 | (n[14] & 255) << 16 | (n[15] & 255) << 24, F = u, G = y, k = g, K = A, B = j, T = D, v = I, x = ce, C = q, P = J, O = H, N = Z, z = X, Q = V, ee = W, $ = Y, h, ne = 0; ne < 20; ne += 2)
|
|
2500
|
+
h = F + z | 0, B ^= h << 7 | h >>> 25, h = B + F | 0, C ^= h << 9 | h >>> 23, h = C + B | 0, z ^= h << 13 | h >>> 19, h = z + C | 0, F ^= h << 18 | h >>> 14, h = T + G | 0, P ^= h << 7 | h >>> 25, h = P + T | 0, Q ^= h << 9 | h >>> 23, h = Q + P | 0, G ^= h << 13 | h >>> 19, h = G + Q | 0, T ^= h << 18 | h >>> 14, h = O + v | 0, ee ^= h << 7 | h >>> 25, h = ee + O | 0, k ^= h << 9 | h >>> 23, h = k + ee | 0, v ^= h << 13 | h >>> 19, h = v + k | 0, O ^= h << 18 | h >>> 14, h = $ + N | 0, K ^= h << 7 | h >>> 25, h = K + $ | 0, x ^= h << 9 | h >>> 23, h = x + K | 0, N ^= h << 13 | h >>> 19, h = N + x | 0, $ ^= h << 18 | h >>> 14, h = F + K | 0, G ^= h << 7 | h >>> 25, h = G + F | 0, k ^= h << 9 | h >>> 23, h = k + G | 0, K ^= h << 13 | h >>> 19, h = K + k | 0, F ^= h << 18 | h >>> 14, h = T + B | 0, v ^= h << 7 | h >>> 25, h = v + T | 0, x ^= h << 9 | h >>> 23, h = x + v | 0, B ^= h << 13 | h >>> 19, h = B + x | 0, T ^= h << 18 | h >>> 14, h = O + P | 0, N ^= h << 7 | h >>> 25, h = N + O | 0, C ^= h << 9 | h >>> 23, h = C + N | 0, P ^= h << 13 | h >>> 19, h = P + C | 0, O ^= h << 18 | h >>> 14, h = $ + ee | 0, z ^= h << 7 | h >>> 25, h = z + $ | 0, Q ^= h << 9 | h >>> 23, h = Q + z | 0, ee ^= h << 13 | h >>> 19, h = ee + Q | 0, $ ^= h << 18 | h >>> 14;
|
|
2501
2501
|
o[0] = F >>> 0 & 255, o[1] = F >>> 8 & 255, o[2] = F >>> 16 & 255, o[3] = F >>> 24 & 255, o[4] = T >>> 0 & 255, o[5] = T >>> 8 & 255, o[6] = T >>> 16 & 255, o[7] = T >>> 24 & 255, o[8] = O >>> 0 & 255, o[9] = O >>> 8 & 255, o[10] = O >>> 16 & 255, o[11] = O >>> 24 & 255, o[12] = $ >>> 0 & 255, o[13] = $ >>> 8 & 255, o[14] = $ >>> 16 & 255, o[15] = $ >>> 24 & 255, o[16] = v >>> 0 & 255, o[17] = v >>> 8 & 255, o[18] = v >>> 16 & 255, o[19] = v >>> 24 & 255, o[20] = x >>> 0 & 255, o[21] = x >>> 8 & 255, o[22] = x >>> 16 & 255, o[23] = x >>> 24 & 255, o[24] = C >>> 0 & 255, o[25] = C >>> 8 & 255, o[26] = C >>> 16 & 255, o[27] = C >>> 24 & 255, o[28] = P >>> 0 & 255, o[29] = P >>> 8 & 255, o[30] = P >>> 16 & 255, o[31] = P >>> 24 & 255;
|
|
2502
2502
|
}
|
|
2503
2503
|
function L(o, f, c, n) {
|
|
@@ -2508,39 +2508,39 @@ const si = {}, ii = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2508
2508
|
}
|
|
2509
2509
|
var de = new Uint8Array([101, 120, 112, 97, 110, 100, 32, 51, 50, 45, 98, 121, 116, 101, 32, 107]);
|
|
2510
2510
|
function De(o, f, c, n, u, y, g) {
|
|
2511
|
-
var A = new Uint8Array(16),
|
|
2511
|
+
var A = new Uint8Array(16), j = new Uint8Array(64), D, I;
|
|
2512
2512
|
for (I = 0; I < 16; I++)
|
|
2513
2513
|
A[I] = 0;
|
|
2514
2514
|
for (I = 0; I < 8; I++)
|
|
2515
2515
|
A[I] = y[I];
|
|
2516
2516
|
for (; u >= 64; ) {
|
|
2517
|
-
for (L(
|
|
2518
|
-
o[f + I] = c[n + I] ^
|
|
2517
|
+
for (L(j, A, g, de), I = 0; I < 64; I++)
|
|
2518
|
+
o[f + I] = c[n + I] ^ j[I];
|
|
2519
2519
|
for (D = 1, I = 8; I < 16; I++)
|
|
2520
2520
|
D = D + (A[I] & 255) | 0, A[I] = D & 255, D >>>= 8;
|
|
2521
2521
|
u -= 64, f += 64, n += 64;
|
|
2522
2522
|
}
|
|
2523
2523
|
if (u > 0)
|
|
2524
|
-
for (L(
|
|
2525
|
-
o[f + I] = c[n + I] ^
|
|
2524
|
+
for (L(j, A, g, de), I = 0; I < u; I++)
|
|
2525
|
+
o[f + I] = c[n + I] ^ j[I];
|
|
2526
2526
|
return 0;
|
|
2527
2527
|
}
|
|
2528
2528
|
function xt(o, f, c, n, u) {
|
|
2529
|
-
var y = new Uint8Array(16), g = new Uint8Array(64), A,
|
|
2530
|
-
for (
|
|
2531
|
-
y[
|
|
2532
|
-
for (
|
|
2533
|
-
y[
|
|
2529
|
+
var y = new Uint8Array(16), g = new Uint8Array(64), A, j;
|
|
2530
|
+
for (j = 0; j < 16; j++)
|
|
2531
|
+
y[j] = 0;
|
|
2532
|
+
for (j = 0; j < 8; j++)
|
|
2533
|
+
y[j] = n[j];
|
|
2534
2534
|
for (; c >= 64; ) {
|
|
2535
|
-
for (L(g, y, u, de),
|
|
2536
|
-
o[f +
|
|
2537
|
-
for (A = 1,
|
|
2538
|
-
A = A + (y[
|
|
2535
|
+
for (L(g, y, u, de), j = 0; j < 64; j++)
|
|
2536
|
+
o[f + j] = g[j];
|
|
2537
|
+
for (A = 1, j = 8; j < 16; j++)
|
|
2538
|
+
A = A + (y[j] & 255) | 0, y[j] = A & 255, A >>>= 8;
|
|
2539
2539
|
c -= 64, f += 64;
|
|
2540
2540
|
}
|
|
2541
2541
|
if (c > 0)
|
|
2542
|
-
for (L(g, y, u, de),
|
|
2543
|
-
o[f +
|
|
2542
|
+
for (L(g, y, u, de), j = 0; j < c; j++)
|
|
2543
|
+
o[f + j] = g[j];
|
|
2544
2544
|
return 0;
|
|
2545
2545
|
}
|
|
2546
2546
|
function at(o, f, c, n, u) {
|
|
@@ -2553,19 +2553,19 @@ const si = {}, ii = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2553
2553
|
function ct(o, f, c, n, u, y, g) {
|
|
2554
2554
|
var A = new Uint8Array(32);
|
|
2555
2555
|
he(A, y, g, de);
|
|
2556
|
-
for (var
|
|
2557
|
-
|
|
2558
|
-
return De(o, f, c, n, u,
|
|
2556
|
+
for (var j = new Uint8Array(8), D = 0; D < 8; D++)
|
|
2557
|
+
j[D] = y[D + 16];
|
|
2558
|
+
return De(o, f, c, n, u, j, A);
|
|
2559
2559
|
}
|
|
2560
2560
|
var ft = function(o) {
|
|
2561
2561
|
this.buffer = new Uint8Array(16), this.r = new Uint16Array(10), this.h = new Uint16Array(10), this.pad = new Uint16Array(8), this.leftover = 0, this.fin = 0;
|
|
2562
|
-
var f, c, n, u, y, g, A,
|
|
2563
|
-
f = o[0] & 255 | (o[1] & 255) << 8, this.r[0] = f & 8191, c = o[2] & 255 | (o[3] & 255) << 8, this.r[1] = (f >>> 13 | c << 3) & 8191, n = o[4] & 255 | (o[5] & 255) << 8, this.r[2] = (c >>> 10 | n << 6) & 7939, u = o[6] & 255 | (o[7] & 255) << 8, this.r[3] = (n >>> 7 | u << 9) & 8191, y = o[8] & 255 | (o[9] & 255) << 8, this.r[4] = (u >>> 4 | y << 12) & 255, this.r[5] = y >>> 1 & 8190, g = o[10] & 255 | (o[11] & 255) << 8, this.r[6] = (y >>> 14 | g << 2) & 8191, A = o[12] & 255 | (o[13] & 255) << 8, this.r[7] = (g >>> 11 | A << 5) & 8065,
|
|
2562
|
+
var f, c, n, u, y, g, A, j;
|
|
2563
|
+
f = o[0] & 255 | (o[1] & 255) << 8, this.r[0] = f & 8191, c = o[2] & 255 | (o[3] & 255) << 8, this.r[1] = (f >>> 13 | c << 3) & 8191, n = o[4] & 255 | (o[5] & 255) << 8, this.r[2] = (c >>> 10 | n << 6) & 7939, u = o[6] & 255 | (o[7] & 255) << 8, this.r[3] = (n >>> 7 | u << 9) & 8191, y = o[8] & 255 | (o[9] & 255) << 8, this.r[4] = (u >>> 4 | y << 12) & 255, this.r[5] = y >>> 1 & 8190, g = o[10] & 255 | (o[11] & 255) << 8, this.r[6] = (y >>> 14 | g << 2) & 8191, A = o[12] & 255 | (o[13] & 255) << 8, this.r[7] = (g >>> 11 | A << 5) & 8065, j = o[14] & 255 | (o[15] & 255) << 8, this.r[8] = (A >>> 8 | j << 8) & 8191, this.r[9] = j >>> 5 & 127, this.pad[0] = o[16] & 255 | (o[17] & 255) << 8, this.pad[1] = o[18] & 255 | (o[19] & 255) << 8, this.pad[2] = o[20] & 255 | (o[21] & 255) << 8, this.pad[3] = o[22] & 255 | (o[23] & 255) << 8, this.pad[4] = o[24] & 255 | (o[25] & 255) << 8, this.pad[5] = o[26] & 255 | (o[27] & 255) << 8, this.pad[6] = o[28] & 255 | (o[29] & 255) << 8, this.pad[7] = o[30] & 255 | (o[31] & 255) << 8;
|
|
2564
2564
|
};
|
|
2565
2565
|
ft.prototype.blocks = function(o, f, c) {
|
|
2566
|
-
for (var n = this.fin ? 0 : 2048, u, y, g, A,
|
|
2567
|
-
u = o[f + 0] & 255 | (o[f + 1] & 255) << 8, K += u & 8191, y = o[f + 2] & 255 | (o[f + 3] & 255) << 8, B += (u >>> 13 | y << 3) & 8191, g = o[f + 4] & 255 | (o[f + 5] & 255) << 8, T += (y >>> 10 | g << 6) & 8191, A = o[f + 6] & 255 | (o[f + 7] & 255) << 8, v += (g >>> 7 | A << 9) & 8191,
|
|
2568
|
-
this.h[0] = K, this.h[1] = B, this.h[2] = T, this.h[3] = v, this.h[4] = x, this.h[5] = C, this.h[6] = P, this.h[7] = O, this.h[8] =
|
|
2566
|
+
for (var n = this.fin ? 0 : 2048, u, y, g, A, j, D, I, ce, q, J, H, Z, X, V, W, Y, F, G, k, K = this.h[0], B = this.h[1], T = this.h[2], v = this.h[3], x = this.h[4], C = this.h[5], P = this.h[6], O = this.h[7], N = this.h[8], z = this.h[9], Q = this.r[0], ee = this.r[1], $ = this.r[2], h = this.r[3], ne = this.r[4], fe = this.r[5], ue = this.r[6], te = this.r[7], oe = this.r[8], ae = this.r[9]; c >= 16; )
|
|
2567
|
+
u = o[f + 0] & 255 | (o[f + 1] & 255) << 8, K += u & 8191, y = o[f + 2] & 255 | (o[f + 3] & 255) << 8, B += (u >>> 13 | y << 3) & 8191, g = o[f + 4] & 255 | (o[f + 5] & 255) << 8, T += (y >>> 10 | g << 6) & 8191, A = o[f + 6] & 255 | (o[f + 7] & 255) << 8, v += (g >>> 7 | A << 9) & 8191, j = o[f + 8] & 255 | (o[f + 9] & 255) << 8, x += (A >>> 4 | j << 12) & 8191, C += j >>> 1 & 8191, D = o[f + 10] & 255 | (o[f + 11] & 255) << 8, P += (j >>> 14 | D << 2) & 8191, I = o[f + 12] & 255 | (o[f + 13] & 255) << 8, O += (D >>> 11 | I << 5) & 8191, ce = o[f + 14] & 255 | (o[f + 15] & 255) << 8, N += (I >>> 8 | ce << 8) & 8191, z += ce >>> 5 | n, q = 0, J = q, J += K * Q, J += B * (5 * ae), J += T * (5 * oe), J += v * (5 * te), J += x * (5 * ue), q = J >>> 13, J &= 8191, J += C * (5 * fe), J += P * (5 * ne), J += O * (5 * h), J += N * (5 * $), J += z * (5 * ee), q += J >>> 13, J &= 8191, H = q, H += K * ee, H += B * Q, H += T * (5 * ae), H += v * (5 * oe), H += x * (5 * te), q = H >>> 13, H &= 8191, H += C * (5 * ue), H += P * (5 * fe), H += O * (5 * ne), H += N * (5 * h), H += z * (5 * $), q += H >>> 13, H &= 8191, Z = q, Z += K * $, Z += B * ee, Z += T * Q, Z += v * (5 * ae), Z += x * (5 * oe), q = Z >>> 13, Z &= 8191, Z += C * (5 * te), Z += P * (5 * ue), Z += O * (5 * fe), Z += N * (5 * ne), Z += z * (5 * h), q += Z >>> 13, Z &= 8191, X = q, X += K * h, X += B * $, X += T * ee, X += v * Q, X += x * (5 * ae), q = X >>> 13, X &= 8191, X += C * (5 * oe), X += P * (5 * te), X += O * (5 * ue), X += N * (5 * fe), X += z * (5 * ne), q += X >>> 13, X &= 8191, V = q, V += K * ne, V += B * h, V += T * $, V += v * ee, V += x * Q, q = V >>> 13, V &= 8191, V += C * (5 * ae), V += P * (5 * oe), V += O * (5 * te), V += N * (5 * ue), V += z * (5 * fe), q += V >>> 13, V &= 8191, W = q, W += K * fe, W += B * ne, W += T * h, W += v * $, W += x * ee, q = W >>> 13, W &= 8191, W += C * Q, W += P * (5 * ae), W += O * (5 * oe), W += N * (5 * te), W += z * (5 * ue), q += W >>> 13, W &= 8191, Y = q, Y += K * ue, Y += B * fe, Y += T * ne, Y += v * h, Y += x * $, q = Y >>> 13, Y &= 8191, Y += C * ee, Y += P * Q, Y += O * (5 * ae), Y += N * (5 * oe), Y += z * (5 * te), q += Y >>> 13, Y &= 8191, F = q, F += K * te, F += B * ue, F += T * fe, F += v * ne, F += x * h, q = F >>> 13, F &= 8191, F += C * $, F += P * ee, F += O * Q, F += N * (5 * ae), F += z * (5 * oe), q += F >>> 13, F &= 8191, G = q, G += K * oe, G += B * te, G += T * ue, G += v * fe, G += x * ne, q = G >>> 13, G &= 8191, G += C * h, G += P * $, G += O * ee, G += N * Q, G += z * (5 * ae), q += G >>> 13, G &= 8191, k = q, k += K * ae, k += B * oe, k += T * te, k += v * ue, k += x * fe, q = k >>> 13, k &= 8191, k += C * ne, k += P * h, k += O * $, k += N * ee, k += z * Q, q += k >>> 13, k &= 8191, q = (q << 2) + q | 0, q = q + J | 0, J = q & 8191, q = q >>> 13, H += q, K = J, B = H, T = Z, v = X, x = V, C = W, P = Y, O = F, N = G, z = k, f += 16, c -= 16;
|
|
2568
|
+
this.h[0] = K, this.h[1] = B, this.h[2] = T, this.h[3] = v, this.h[4] = x, this.h[5] = C, this.h[6] = P, this.h[7] = O, this.h[8] = N, this.h[9] = z;
|
|
2569
2569
|
}, ft.prototype.finish = function(o, f) {
|
|
2570
2570
|
var c = new Uint16Array(10), n, u, y, g;
|
|
2571
2571
|
if (this.leftover) {
|
|
@@ -2673,8 +2673,8 @@ const si = {}, ii = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2673
2673
|
o[n] = f[n] - c[n];
|
|
2674
2674
|
}
|
|
2675
2675
|
function ie(o, f, c) {
|
|
2676
|
-
var n, u, y = 0, g = 0, A = 0,
|
|
2677
|
-
n = f[0], y += n * h, g += n * ne, A += n * fe,
|
|
2676
|
+
var n, u, y = 0, g = 0, A = 0, j = 0, D = 0, I = 0, ce = 0, q = 0, J = 0, H = 0, Z = 0, X = 0, V = 0, W = 0, Y = 0, F = 0, G = 0, k = 0, K = 0, B = 0, T = 0, v = 0, x = 0, C = 0, P = 0, O = 0, N = 0, z = 0, Q = 0, ee = 0, $ = 0, h = c[0], ne = c[1], fe = c[2], ue = c[3], te = c[4], oe = c[5], ae = c[6], ve = c[7], le = c[8], ge = c[9], me = c[10], _e = c[11], we = c[12], Oe = c[13], Ce = c[14], Ne = c[15];
|
|
2677
|
+
n = f[0], y += n * h, g += n * ne, A += n * fe, j += n * ue, D += n * te, I += n * oe, ce += n * ae, q += n * ve, J += n * le, H += n * ge, Z += n * me, X += n * _e, V += n * we, W += n * Oe, Y += n * Ce, F += n * Ne, n = f[1], g += n * h, A += n * ne, j += n * fe, D += n * ue, I += n * te, ce += n * oe, q += n * ae, J += n * ve, H += n * le, Z += n * ge, X += n * me, V += n * _e, W += n * we, Y += n * Oe, F += n * Ce, G += n * Ne, n = f[2], A += n * h, j += n * ne, D += n * fe, I += n * ue, ce += n * te, q += n * oe, J += n * ae, H += n * ve, Z += n * le, X += n * ge, V += n * me, W += n * _e, Y += n * we, F += n * Oe, G += n * Ce, k += n * Ne, n = f[3], j += n * h, D += n * ne, I += n * fe, ce += n * ue, q += n * te, J += n * oe, H += n * ae, Z += n * ve, X += n * le, V += n * ge, W += n * me, Y += n * _e, F += n * we, G += n * Oe, k += n * Ce, K += n * Ne, n = f[4], D += n * h, I += n * ne, ce += n * fe, q += n * ue, J += n * te, H += n * oe, Z += n * ae, X += n * ve, V += n * le, W += n * ge, Y += n * me, F += n * _e, G += n * we, k += n * Oe, K += n * Ce, B += n * Ne, n = f[5], I += n * h, ce += n * ne, q += n * fe, J += n * ue, H += n * te, Z += n * oe, X += n * ae, V += n * ve, W += n * le, Y += n * ge, F += n * me, G += n * _e, k += n * we, K += n * Oe, B += n * Ce, T += n * Ne, n = f[6], ce += n * h, q += n * ne, J += n * fe, H += n * ue, Z += n * te, X += n * oe, V += n * ae, W += n * ve, Y += n * le, F += n * ge, G += n * me, k += n * _e, K += n * we, B += n * Oe, T += n * Ce, v += n * Ne, n = f[7], q += n * h, J += n * ne, H += n * fe, Z += n * ue, X += n * te, V += n * oe, W += n * ae, Y += n * ve, F += n * le, G += n * ge, k += n * me, K += n * _e, B += n * we, T += n * Oe, v += n * Ce, x += n * Ne, n = f[8], J += n * h, H += n * ne, Z += n * fe, X += n * ue, V += n * te, W += n * oe, Y += n * ae, F += n * ve, G += n * le, k += n * ge, K += n * me, B += n * _e, T += n * we, v += n * Oe, x += n * Ce, C += n * Ne, n = f[9], H += n * h, Z += n * ne, X += n * fe, V += n * ue, W += n * te, Y += n * oe, F += n * ae, G += n * ve, k += n * le, K += n * ge, B += n * me, T += n * _e, v += n * we, x += n * Oe, C += n * Ce, P += n * Ne, n = f[10], Z += n * h, X += n * ne, V += n * fe, W += n * ue, Y += n * te, F += n * oe, G += n * ae, k += n * ve, K += n * le, B += n * ge, T += n * me, v += n * _e, x += n * we, C += n * Oe, P += n * Ce, O += n * Ne, n = f[11], X += n * h, V += n * ne, W += n * fe, Y += n * ue, F += n * te, G += n * oe, k += n * ae, K += n * ve, B += n * le, T += n * ge, v += n * me, x += n * _e, C += n * we, P += n * Oe, O += n * Ce, N += n * Ne, n = f[12], V += n * h, W += n * ne, Y += n * fe, F += n * ue, G += n * te, k += n * oe, K += n * ae, B += n * ve, T += n * le, v += n * ge, x += n * me, C += n * _e, P += n * we, O += n * Oe, N += n * Ce, z += n * Ne, n = f[13], W += n * h, Y += n * ne, F += n * fe, G += n * ue, k += n * te, K += n * oe, B += n * ae, T += n * ve, v += n * le, x += n * ge, C += n * me, P += n * _e, O += n * we, N += n * Oe, z += n * Ce, Q += n * Ne, n = f[14], Y += n * h, F += n * ne, G += n * fe, k += n * ue, K += n * te, B += n * oe, T += n * ae, v += n * ve, x += n * le, C += n * ge, P += n * me, O += n * _e, N += n * we, z += n * Oe, Q += n * Ce, ee += n * Ne, n = f[15], F += n * h, G += n * ne, k += n * fe, K += n * ue, B += n * te, T += n * oe, v += n * ae, x += n * ve, C += n * le, P += n * ge, O += n * me, N += n * _e, z += n * we, Q += n * Oe, ee += n * Ce, $ += n * Ne, y += 38 * G, g += 38 * k, A += 38 * K, j += 38 * B, D += 38 * T, I += 38 * v, ce += 38 * x, q += 38 * C, J += 38 * P, H += 38 * O, Z += 38 * N, X += 38 * z, V += 38 * Q, W += 38 * ee, Y += 38 * $, u = 1, n = y + u + 65535, u = Math.floor(n / 65536), y = n - u * 65536, n = g + u + 65535, u = Math.floor(n / 65536), g = n - u * 65536, n = A + u + 65535, u = Math.floor(n / 65536), A = n - u * 65536, n = j + u + 65535, u = Math.floor(n / 65536), j = n - u * 65536, n = D + u + 65535, u = Math.floor(n / 65536), D = n - u * 65536, n = I + u + 65535, u = Math.floor(n / 65536), I = n - u * 65536, n = ce + u + 65535, u = Math.floor(n / 65536), ce = n - u * 65536, n = q + u + 65535, u = Math.floor(n / 65536), q = n - u * 65536, n = J + u + 65535, u = Math.floor(n / 65536), J = n - u * 65536, n = H + u + 65535, u = Math.floor(n / 65536), H = n - u * 65536, n = Z + u + 65535, u = Math.floor(n / 65536), Z = n - u * 65536, n = X + u + 65535, u = Math.floor(n / 65536), X = n - u * 65536, n = V + u + 65535, u = Math.floor(n / 65536), V = n - u * 65536, n = W + u + 65535, u = Math.floor(n / 65536), W = n - u * 65536, n = Y + u + 65535, u = Math.floor(n / 65536), Y = n - u * 65536, n = F + u + 65535, u = Math.floor(n / 65536), F = n - u * 65536, y += u - 1 + 37 * (u - 1), u = 1, n = y + u + 65535, u = Math.floor(n / 65536), y = n - u * 65536, n = g + u + 65535, u = Math.floor(n / 65536), g = n - u * 65536, n = A + u + 65535, u = Math.floor(n / 65536), A = n - u * 65536, n = j + u + 65535, u = Math.floor(n / 65536), j = n - u * 65536, n = D + u + 65535, u = Math.floor(n / 65536), D = n - u * 65536, n = I + u + 65535, u = Math.floor(n / 65536), I = n - u * 65536, n = ce + u + 65535, u = Math.floor(n / 65536), ce = n - u * 65536, n = q + u + 65535, u = Math.floor(n / 65536), q = n - u * 65536, n = J + u + 65535, u = Math.floor(n / 65536), J = n - u * 65536, n = H + u + 65535, u = Math.floor(n / 65536), H = n - u * 65536, n = Z + u + 65535, u = Math.floor(n / 65536), Z = n - u * 65536, n = X + u + 65535, u = Math.floor(n / 65536), X = n - u * 65536, n = V + u + 65535, u = Math.floor(n / 65536), V = n - u * 65536, n = W + u + 65535, u = Math.floor(n / 65536), W = n - u * 65536, n = Y + u + 65535, u = Math.floor(n / 65536), Y = n - u * 65536, n = F + u + 65535, u = Math.floor(n / 65536), F = n - u * 65536, y += u - 1 + 37 * (u - 1), o[0] = y, o[1] = g, o[2] = A, o[3] = j, o[4] = D, o[5] = I, o[6] = ce, o[7] = q, o[8] = J, o[9] = H, o[10] = Z, o[11] = X, o[12] = V, o[13] = W, o[14] = Y, o[15] = F;
|
|
2678
2678
|
}
|
|
2679
2679
|
function qe(o, f) {
|
|
2680
2680
|
ie(o, f, f);
|
|
@@ -2698,15 +2698,15 @@ const si = {}, ii = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2698
2698
|
o[n] = c[n];
|
|
2699
2699
|
}
|
|
2700
2700
|
function Bt(o, f, c) {
|
|
2701
|
-
var n = new Uint8Array(32), u = new Float64Array(80), y, g, A = r(),
|
|
2701
|
+
var n = new Uint8Array(32), u = new Float64Array(80), y, g, A = r(), j = r(), D = r(), I = r(), ce = r(), q = r();
|
|
2702
2702
|
for (g = 0; g < 31; g++)
|
|
2703
2703
|
n[g] = f[g];
|
|
2704
2704
|
for (n[31] = f[31] & 127 | 64, n[0] &= 248, ur(u, c), g = 0; g < 16; g++)
|
|
2705
|
-
|
|
2705
|
+
j[g] = u[g], I[g] = A[g] = D[g] = 0;
|
|
2706
2706
|
for (A[0] = I[0] = 1, g = 254; g >= 0; --g)
|
|
2707
|
-
y = n[g >>> 3] >>> (g & 7) & 1, Ie(A,
|
|
2707
|
+
y = n[g >>> 3] >>> (g & 7) & 1, Ie(A, j, y), Ie(D, I, y), Fe(ce, A, D), Ke(A, A, D), Fe(D, j, I), Ke(j, j, I), qe(I, ce), qe(q, A), ie(A, D, A), ie(D, j, ce), Fe(ce, A, D), Ke(A, A, D), qe(j, A), Ke(D, I, q), ie(A, D, S), Fe(A, A, I), ie(D, D, A), ie(A, I, q), ie(I, j, u), qe(j, ce), Ie(A, j, y), Ie(D, I, y);
|
|
2708
2708
|
for (g = 0; g < 16; g++)
|
|
2709
|
-
u[g + 16] = A[g], u[g + 32] = D[g], u[g + 48] =
|
|
2709
|
+
u[g + 16] = A[g], u[g + 32] = D[g], u[g + 48] = j[g], u[g + 64] = I[g];
|
|
2710
2710
|
var J = u.subarray(32), H = u.subarray(16);
|
|
2711
2711
|
return Hr(J, J), ie(H, H, J), Re(o, H), 0;
|
|
2712
2712
|
}
|
|
@@ -2892,14 +2892,14 @@ const si = {}, ii = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2892
2892
|
1246189591
|
|
2893
2893
|
];
|
|
2894
2894
|
function Zr(o, f, c, n) {
|
|
2895
|
-
for (var u = new Int32Array(16), y = new Int32Array(16), g, A,
|
|
2895
|
+
for (var u = new Int32Array(16), y = new Int32Array(16), g, A, j, D, I, ce, q, J, H, Z, X, V, W, Y, F, G, k, K, B, T, v, x, C, P, O, N, z = o[0], Q = o[1], ee = o[2], $ = o[3], h = o[4], ne = o[5], fe = o[6], ue = o[7], te = f[0], oe = f[1], ae = f[2], ve = f[3], le = f[4], ge = f[5], me = f[6], _e = f[7], we = 0; n >= 128; ) {
|
|
2896
2896
|
for (B = 0; B < 16; B++)
|
|
2897
2897
|
T = 8 * B + we, u[B] = c[T + 0] << 24 | c[T + 1] << 16 | c[T + 2] << 8 | c[T + 3], y[B] = c[T + 4] << 24 | c[T + 5] << 16 | c[T + 6] << 8 | c[T + 7];
|
|
2898
2898
|
for (B = 0; B < 80; B++)
|
|
2899
|
-
if (g = z, A = Q,
|
|
2899
|
+
if (g = z, A = Q, j = ee, D = $, I = h, ce = ne, q = fe, J = ue, H = te, Z = oe, X = ae, V = ve, W = le, Y = ge, F = me, G = _e, v = ue, x = _e, C = x & 65535, P = x >>> 16, O = v & 65535, N = v >>> 16, v = (h >>> 14 | le << 18) ^ (h >>> 18 | le << 14) ^ (le >>> 9 | h << 23), x = (le >>> 14 | h << 18) ^ (le >>> 18 | h << 14) ^ (h >>> 9 | le << 23), C += x & 65535, P += x >>> 16, O += v & 65535, N += v >>> 16, v = h & ne ^ ~h & fe, x = le & ge ^ ~le & me, C += x & 65535, P += x >>> 16, O += v & 65535, N += v >>> 16, v = Xr[B * 2], x = Xr[B * 2 + 1], C += x & 65535, P += x >>> 16, O += v & 65535, N += v >>> 16, v = u[B % 16], x = y[B % 16], C += x & 65535, P += x >>> 16, O += v & 65535, N += v >>> 16, P += C >>> 16, O += P >>> 16, N += O >>> 16, k = O & 65535 | N << 16, K = C & 65535 | P << 16, v = k, x = K, C = x & 65535, P = x >>> 16, O = v & 65535, N = v >>> 16, v = (z >>> 28 | te << 4) ^ (te >>> 2 | z << 30) ^ (te >>> 7 | z << 25), x = (te >>> 28 | z << 4) ^ (z >>> 2 | te << 30) ^ (z >>> 7 | te << 25), C += x & 65535, P += x >>> 16, O += v & 65535, N += v >>> 16, v = z & Q ^ z & ee ^ Q & ee, x = te & oe ^ te & ae ^ oe & ae, C += x & 65535, P += x >>> 16, O += v & 65535, N += v >>> 16, P += C >>> 16, O += P >>> 16, N += O >>> 16, J = O & 65535 | N << 16, G = C & 65535 | P << 16, v = D, x = V, C = x & 65535, P = x >>> 16, O = v & 65535, N = v >>> 16, v = k, x = K, C += x & 65535, P += x >>> 16, O += v & 65535, N += v >>> 16, P += C >>> 16, O += P >>> 16, N += O >>> 16, D = O & 65535 | N << 16, V = C & 65535 | P << 16, Q = g, ee = A, $ = j, h = D, ne = I, fe = ce, ue = q, z = J, oe = H, ae = Z, ve = X, le = V, ge = W, me = Y, _e = F, te = G, B % 16 === 15)
|
|
2900
2900
|
for (T = 0; T < 16; T++)
|
|
2901
|
-
v = u[T], x = y[T], C = x & 65535, P = x >>> 16, O = v & 65535,
|
|
2902
|
-
v = z, x = te, C = x & 65535, P = x >>> 16, O = v & 65535,
|
|
2901
|
+
v = u[T], x = y[T], C = x & 65535, P = x >>> 16, O = v & 65535, N = v >>> 16, v = u[(T + 9) % 16], x = y[(T + 9) % 16], C += x & 65535, P += x >>> 16, O += v & 65535, N += v >>> 16, k = u[(T + 1) % 16], K = y[(T + 1) % 16], v = (k >>> 1 | K << 31) ^ (k >>> 8 | K << 24) ^ k >>> 7, x = (K >>> 1 | k << 31) ^ (K >>> 8 | k << 24) ^ (K >>> 7 | k << 25), C += x & 65535, P += x >>> 16, O += v & 65535, N += v >>> 16, k = u[(T + 14) % 16], K = y[(T + 14) % 16], v = (k >>> 19 | K << 13) ^ (K >>> 29 | k << 3) ^ k >>> 6, x = (K >>> 19 | k << 13) ^ (k >>> 29 | K << 3) ^ (K >>> 6 | k << 26), C += x & 65535, P += x >>> 16, O += v & 65535, N += v >>> 16, P += C >>> 16, O += P >>> 16, N += O >>> 16, u[T] = O & 65535 | N << 16, y[T] = C & 65535 | P << 16;
|
|
2902
|
+
v = z, x = te, C = x & 65535, P = x >>> 16, O = v & 65535, N = v >>> 16, v = o[0], x = f[0], C += x & 65535, P += x >>> 16, O += v & 65535, N += v >>> 16, P += C >>> 16, O += P >>> 16, N += O >>> 16, o[0] = z = O & 65535 | N << 16, f[0] = te = C & 65535 | P << 16, v = Q, x = oe, C = x & 65535, P = x >>> 16, O = v & 65535, N = v >>> 16, v = o[1], x = f[1], C += x & 65535, P += x >>> 16, O += v & 65535, N += v >>> 16, P += C >>> 16, O += P >>> 16, N += O >>> 16, o[1] = Q = O & 65535 | N << 16, f[1] = oe = C & 65535 | P << 16, v = ee, x = ae, C = x & 65535, P = x >>> 16, O = v & 65535, N = v >>> 16, v = o[2], x = f[2], C += x & 65535, P += x >>> 16, O += v & 65535, N += v >>> 16, P += C >>> 16, O += P >>> 16, N += O >>> 16, o[2] = ee = O & 65535 | N << 16, f[2] = ae = C & 65535 | P << 16, v = $, x = ve, C = x & 65535, P = x >>> 16, O = v & 65535, N = v >>> 16, v = o[3], x = f[3], C += x & 65535, P += x >>> 16, O += v & 65535, N += v >>> 16, P += C >>> 16, O += P >>> 16, N += O >>> 16, o[3] = $ = O & 65535 | N << 16, f[3] = ve = C & 65535 | P << 16, v = h, x = le, C = x & 65535, P = x >>> 16, O = v & 65535, N = v >>> 16, v = o[4], x = f[4], C += x & 65535, P += x >>> 16, O += v & 65535, N += v >>> 16, P += C >>> 16, O += P >>> 16, N += O >>> 16, o[4] = h = O & 65535 | N << 16, f[4] = le = C & 65535 | P << 16, v = ne, x = ge, C = x & 65535, P = x >>> 16, O = v & 65535, N = v >>> 16, v = o[5], x = f[5], C += x & 65535, P += x >>> 16, O += v & 65535, N += v >>> 16, P += C >>> 16, O += P >>> 16, N += O >>> 16, o[5] = ne = O & 65535 | N << 16, f[5] = ge = C & 65535 | P << 16, v = fe, x = me, C = x & 65535, P = x >>> 16, O = v & 65535, N = v >>> 16, v = o[6], x = f[6], C += x & 65535, P += x >>> 16, O += v & 65535, N += v >>> 16, P += C >>> 16, O += P >>> 16, N += O >>> 16, o[6] = fe = O & 65535 | N << 16, f[6] = me = C & 65535 | P << 16, v = ue, x = _e, C = x & 65535, P = x >>> 16, O = v & 65535, N = v >>> 16, v = o[7], x = f[7], C += x & 65535, P += x >>> 16, O += v & 65535, N += v >>> 16, P += C >>> 16, O += P >>> 16, N += O >>> 16, o[7] = ue = O & 65535 | N << 16, f[7] = _e = C & 65535 | P << 16, we += 128, n -= 128;
|
|
2903
2903
|
}
|
|
2904
2904
|
return n;
|
|
2905
2905
|
}
|
|
@@ -2912,8 +2912,8 @@ const si = {}, ii = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2912
2912
|
return 0;
|
|
2913
2913
|
}
|
|
2914
2914
|
function zt(o, f) {
|
|
2915
|
-
var c = r(), n = r(), u = r(), y = r(), g = r(), A = r(),
|
|
2916
|
-
Ke(c, o[1], o[0]), Ke(I, f[1], f[0]), ie(c, c, I), Fe(n, o[0], o[1]), Fe(I, f[0], f[1]), ie(n, n, I), ie(u, o[3], f[3]), ie(u, u, w), ie(y, o[2], f[2]), Fe(y, y, y), Ke(g, n, c), Ke(A, y, u), Fe(
|
|
2915
|
+
var c = r(), n = r(), u = r(), y = r(), g = r(), A = r(), j = r(), D = r(), I = r();
|
|
2916
|
+
Ke(c, o[1], o[0]), Ke(I, f[1], f[0]), ie(c, c, I), Fe(n, o[0], o[1]), Fe(I, f[0], f[1]), ie(n, n, I), ie(u, o[3], f[3]), ie(u, u, w), ie(y, o[2], f[2]), Fe(y, y, y), Ke(g, n, c), Ke(A, y, u), Fe(j, y, u), Fe(D, n, c), ie(o[0], g, A), ie(o[1], D, j), ie(o[2], j, A), ie(o[3], g, D);
|
|
2917
2917
|
}
|
|
2918
2918
|
function Qr(o, f, c) {
|
|
2919
2919
|
var n;
|
|
@@ -2963,7 +2963,7 @@ const si = {}, ii = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2963
2963
|
br(o, f);
|
|
2964
2964
|
}
|
|
2965
2965
|
function $r(o, f, c, n) {
|
|
2966
|
-
var u = new Uint8Array(64), y = new Uint8Array(64), g = new Uint8Array(64), A,
|
|
2966
|
+
var u = new Uint8Array(64), y = new Uint8Array(64), g = new Uint8Array(64), A, j, D = new Float64Array(64), I = [r(), r(), r(), r()];
|
|
2967
2967
|
et(u, n, 32), u[0] &= 248, u[31] &= 127, u[31] |= 64;
|
|
2968
2968
|
var ce = c + 64;
|
|
2969
2969
|
for (A = 0; A < c; A++)
|
|
@@ -2977,23 +2977,23 @@ const si = {}, ii = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2977
2977
|
for (A = 0; A < 32; A++)
|
|
2978
2978
|
D[A] = g[A];
|
|
2979
2979
|
for (A = 0; A < 32; A++)
|
|
2980
|
-
for (
|
|
2981
|
-
D[A +
|
|
2980
|
+
for (j = 0; j < 32; j++)
|
|
2981
|
+
D[A + j] += y[A] * u[j];
|
|
2982
2982
|
return br(o.subarray(32), D), ce;
|
|
2983
2983
|
}
|
|
2984
2984
|
function fs(o, f) {
|
|
2985
|
-
var c = r(), n = r(), u = r(), y = r(), g = r(), A = r(),
|
|
2986
|
-
return Pe(o[2], m), ur(o[1], f), qe(u, o[1]), ie(y, u, _), Ke(u, u, o[2]), Fe(y, o[2], y), qe(g, y), qe(A, g), ie(
|
|
2985
|
+
var c = r(), n = r(), u = r(), y = r(), g = r(), A = r(), j = r();
|
|
2986
|
+
return Pe(o[2], m), ur(o[1], f), qe(u, o[1]), ie(y, u, _), Ke(u, u, o[2]), Fe(y, o[2], y), qe(g, y), qe(A, g), ie(j, A, g), ie(c, j, u), ie(c, c, y), Vr(c, c), ie(c, c, u), ie(c, c, y), ie(c, c, y), ie(o[0], c, y), qe(n, o[0]), ie(n, n, y), zr(n, u) && ie(o[0], o[0], p), qe(n, o[0]), ie(n, n, y), zr(n, u) ? -1 : (Jr(o[0]) === f[31] >> 7 && Ke(o[0], d, o[0]), ie(o[3], o[0], o[1]), 0);
|
|
2987
2987
|
}
|
|
2988
2988
|
function gr(o, f, c, n) {
|
|
2989
|
-
var u, y = new Uint8Array(32), g = new Uint8Array(64), A = [r(), r(), r(), r()],
|
|
2990
|
-
if (c < 64 || fs(
|
|
2989
|
+
var u, y = new Uint8Array(32), g = new Uint8Array(64), A = [r(), r(), r(), r()], j = [r(), r(), r(), r()];
|
|
2990
|
+
if (c < 64 || fs(j, n))
|
|
2991
2991
|
return -1;
|
|
2992
2992
|
for (u = 0; u < c; u++)
|
|
2993
2993
|
o[u] = f[u];
|
|
2994
2994
|
for (u = 0; u < 32; u++)
|
|
2995
2995
|
o[u + 32] = n[u];
|
|
2996
|
-
if (et(g, o, c), yr(g), dr(A,
|
|
2996
|
+
if (et(g, o, c), yr(g), dr(A, j, g), Jt(j, f.subarray(32)), zt(A, j), hr(y, A), c -= 64, se(f, 0, y, 0)) {
|
|
2997
2997
|
for (u = 0; u < c; u++)
|
|
2998
2998
|
o[u] = 0;
|
|
2999
2999
|
return -1;
|
|
@@ -3264,15 +3264,15 @@ function ui() {
|
|
|
3264
3264
|
}
|
|
3265
3265
|
return Ot.KP = i, Ot;
|
|
3266
3266
|
}
|
|
3267
|
-
var
|
|
3267
|
+
var Nt = {}, gn;
|
|
3268
3268
|
function hi() {
|
|
3269
3269
|
if (gn)
|
|
3270
|
-
return
|
|
3270
|
+
return Nt;
|
|
3271
3271
|
gn = 1;
|
|
3272
3272
|
var t = xe && xe.__importDefault || function(a) {
|
|
3273
3273
|
return a && a.__esModule ? a : { default: a };
|
|
3274
3274
|
};
|
|
3275
|
-
Object.defineProperty(
|
|
3275
|
+
Object.defineProperty(Nt, "__esModule", { value: !0 }), Nt.PublicKey = void 0;
|
|
3276
3276
|
const e = or(), r = gt(), s = t(vt);
|
|
3277
3277
|
class i {
|
|
3278
3278
|
constructor(d) {
|
|
@@ -3309,7 +3309,7 @@ function hi() {
|
|
|
3309
3309
|
throw new r.NKeysError(r.NKeysErrorCode.InvalidNKeyOperation);
|
|
3310
3310
|
}
|
|
3311
3311
|
}
|
|
3312
|
-
return
|
|
3312
|
+
return Nt.PublicKey = i, Nt;
|
|
3313
3313
|
}
|
|
3314
3314
|
var Pr = {}, mn;
|
|
3315
3315
|
function di() {
|
|
@@ -3666,7 +3666,7 @@ function Ei(t) {
|
|
|
3666
3666
|
}
|
|
3667
3667
|
(function(t) {
|
|
3668
3668
|
Object.defineProperty(t, "__esModule", { value: !0 }), t.DEFAULT_RECONNECT_TIME_WAIT = t.DEFAULT_MAX_PING_OUT = t.DEFAULT_PING_INTERVAL = t.DEFAULT_JITTER_TLS = t.DEFAULT_JITTER = t.DEFAULT_MAX_RECONNECT_ATTEMPTS = void 0, t.defaultOptions = d, t.hasWsProtocol = m, t.buildAuthenticator = S, t.parseOptions = _, t.checkOptions = w, t.checkUnsupportedOption = E;
|
|
3669
|
-
const e = be, r = it, s =
|
|
3669
|
+
const e = be, r = it, s = je, i = He, a = re;
|
|
3670
3670
|
t.DEFAULT_MAX_RECONNECT_ATTEMPTS = 10, t.DEFAULT_JITTER = 100, t.DEFAULT_JITTER_TLS = 1e3, t.DEFAULT_PING_INTERVAL = 2 * 60 * 1e3, t.DEFAULT_MAX_PING_OUT = 2, t.DEFAULT_RECONNECT_TIME_WAIT = 2 * 1e3;
|
|
3671
3671
|
function d() {
|
|
3672
3672
|
return {
|
|
@@ -3732,7 +3732,7 @@ function Ei(t) {
|
|
|
3732
3732
|
})(Ut);
|
|
3733
3733
|
Object.defineProperty(Me, "__esModule", { value: !0 });
|
|
3734
3734
|
Me.ProtocolHandler = Me.Subscriptions = Me.SubscriptionImpl = Me.Connect = Me.INFO = void 0;
|
|
3735
|
-
const ze = Ue, rt = it, Je = be, Si = ot, Pi = Xe, Ai = _t, Oi = It, Ci = Rt, Qe = Lr,
|
|
3735
|
+
const ze = Ue, rt = it, Je = be, Si = ot, Pi = Xe, Ai = _t, Oi = It, Ci = Rt, Qe = Lr, Ni = kt, pn = ir, Ar = Ut, Ae = re, ji = 1024 * 32;
|
|
3736
3736
|
Me.INFO = /^INFO\s+([^\r\n]+)\r\n/i;
|
|
3737
3737
|
const Mi = (0, ze.encode)(`PONG\r
|
|
3738
3738
|
`), xn = (0, ze.encode)(`PING\r
|
|
@@ -3930,7 +3930,7 @@ class er {
|
|
|
3930
3930
|
l(this, "connectPromise");
|
|
3931
3931
|
l(this, "dialDelay");
|
|
3932
3932
|
l(this, "raceTimer");
|
|
3933
|
-
this._closed = !1, this.connected = !1, this.connectedOnce = !1, this.infoReceived = !1, this.noMorePublishing = !1, this.abortReconnect = !1, this.listeners = [], this.pendingLimit =
|
|
3933
|
+
this._closed = !1, this.connected = !1, this.connectedOnce = !1, this.infoReceived = !1, this.noMorePublishing = !1, this.abortReconnect = !1, this.listeners = [], this.pendingLimit = ji, this.outMsgs = 0, this.inMsgs = 0, this.outBytes = 0, this.inBytes = 0, this.options = e, this.publisher = r, this.subscriptions = new $n(), this.muxSubscriptions = new Oi.MuxSubscription(), this.outbound = new Si.DataBuffer(), this.pongs = [], this.whyClosed = "", this.pendingLimit = e.pendingLimit || this.pendingLimit, this.features = new pn.Features({ major: 0, minor: 0, micro: 0 }), this.connectPromise = null, this.dialDelay = null;
|
|
3934
3934
|
const s = typeof e.servers == "string" ? [e.servers] : e.servers;
|
|
3935
3935
|
this.servers = new Pi.Servers(s, {
|
|
3936
3936
|
randomize: !e.noRandomize
|
|
@@ -4072,7 +4072,7 @@ class er {
|
|
|
4072
4072
|
if (this.inMsgs++, this.inBytes += r.length, !this.subscriptions.sidCounter)
|
|
4073
4073
|
return;
|
|
4074
4074
|
const s = this.subscriptions.get(e.sid);
|
|
4075
|
-
s && (s.received += 1, s.callback && s.callback(null, new
|
|
4075
|
+
s && (s.received += 1, s.callback && s.callback(null, new Ni.MsgImpl(e, r, this)), s.max !== void 0 && s.received >= s.max && s.unsubscribe());
|
|
4076
4076
|
}
|
|
4077
4077
|
processError(e) {
|
|
4078
4078
|
let r = (0, ze.decode)(e);
|
|
@@ -4320,7 +4320,7 @@ class ki extends Br {
|
|
|
4320
4320
|
We.RequestOne = ki;
|
|
4321
4321
|
Object.defineProperty(Mt, "__esModule", { value: !0 });
|
|
4322
4322
|
Mt.NatsConnectionImpl = void 0;
|
|
4323
|
-
const Ui = be, wn = Me, Li = Ue, En = $e, qi = ir, Fi = Ut, Sn = _t, Pn = We, An =
|
|
4323
|
+
const Ui = be, wn = Me, Li = Ue, En = $e, qi = ir, Fi = Ut, Sn = _t, Pn = We, An = je, Ee = re;
|
|
4324
4324
|
class Dr {
|
|
4325
4325
|
constructor(e) {
|
|
4326
4326
|
l(this, "options");
|
|
@@ -5279,7 +5279,7 @@ function eo(t = {}) {
|
|
|
5279
5279
|
} }), Object.defineProperty(t, "protoLen", { enumerable: !0, get: function() {
|
|
5280
5280
|
return xt.protoLen;
|
|
5281
5281
|
} });
|
|
5282
|
-
var at =
|
|
5282
|
+
var at = je;
|
|
5283
5283
|
Object.defineProperty(t, "createInbox", { enumerable: !0, get: function() {
|
|
5284
5284
|
return at.createInbox;
|
|
5285
5285
|
} }), Object.defineProperty(t, "Match", { enumerable: !0, get: function() {
|
|
@@ -5433,7 +5433,7 @@ class ro {
|
|
|
5433
5433
|
async addCommunicationLinks(e, r = "", s) {
|
|
5434
5434
|
let i = "communication.link.users.add";
|
|
5435
5435
|
r && (i = `${r}.${i}`), console.debug("Sending request to NATS subject", { messageAddress: i });
|
|
5436
|
-
const a = await this.natsConnection.request(i, JSON.stringify(e));
|
|
5436
|
+
const a = await this.natsConnection.request(i, JSON.stringify(e), this.toNatsOptions(s));
|
|
5437
5437
|
if (!a)
|
|
5438
5438
|
throw console.warn("No reply received for subject", { messageAddress: i }), new Error("No reply received");
|
|
5439
5439
|
return this.extractResponse(a.json());
|
|
@@ -5441,7 +5441,7 @@ class ro {
|
|
|
5441
5441
|
async addGroupMember(e, r = "", s) {
|
|
5442
5442
|
let i = "directory.group.member.add";
|
|
5443
5443
|
r && (i = `${r}.${i}`), console.debug("Sending request to NATS subject", { messageAddress: i });
|
|
5444
|
-
const a = await this.natsConnection.request(i, JSON.stringify(e));
|
|
5444
|
+
const a = await this.natsConnection.request(i, JSON.stringify(e), this.toNatsOptions(s));
|
|
5445
5445
|
if (!a)
|
|
5446
5446
|
throw console.warn("No reply received for subject", { messageAddress: i }), new Error("No reply received");
|
|
5447
5447
|
return this.extractResponse(a.json());
|
|
@@ -5449,7 +5449,7 @@ class ro {
|
|
|
5449
5449
|
async addLinkBetweenGroups(e, r = "", s) {
|
|
5450
5450
|
let i = "communication.link.groups.add";
|
|
5451
5451
|
r && (i = `${r}.${i}`), console.debug("Sending request to NATS subject", { messageAddress: i });
|
|
5452
|
-
const a = await this.natsConnection.request(i, JSON.stringify(e));
|
|
5452
|
+
const a = await this.natsConnection.request(i, JSON.stringify(e), this.toNatsOptions(s));
|
|
5453
5453
|
if (!a)
|
|
5454
5454
|
throw console.warn("No reply received for subject", { messageAddress: i }), new Error("No reply received");
|
|
5455
5455
|
return this.extractResponse(a.json());
|
|
@@ -5457,7 +5457,7 @@ class ro {
|
|
|
5457
5457
|
async checkResourceAccess(e, r, s, i = "", a) {
|
|
5458
5458
|
let d = "audience.check.right." + r + "." + s;
|
|
5459
5459
|
i && (d = `${i}.${d}`), console.debug("Sending request to NATS subject", { messageAddress: d });
|
|
5460
|
-
const m = await this.natsConnection.request(d, JSON.stringify(e));
|
|
5460
|
+
const m = await this.natsConnection.request(d, JSON.stringify(e), this.toNatsOptions(a));
|
|
5461
5461
|
if (!m)
|
|
5462
5462
|
throw console.warn("No reply received for subject", { messageAddress: d }), new Error("No reply received");
|
|
5463
5463
|
return this.extractResponse(m.json());
|
|
@@ -5465,7 +5465,7 @@ class ro {
|
|
|
5465
5465
|
async createAndStoreEvent(e, r = "", s) {
|
|
5466
5466
|
let i = "event.store.create";
|
|
5467
5467
|
r && (i = `${r}.${i}`), console.debug("Sending request to NATS subject", { messageAddress: i });
|
|
5468
|
-
const a = await this.natsConnection.request(i, JSON.stringify(e));
|
|
5468
|
+
const a = await this.natsConnection.request(i, JSON.stringify(e), this.toNatsOptions(s));
|
|
5469
5469
|
if (!a)
|
|
5470
5470
|
throw console.warn("No reply received for subject", { messageAddress: i }), new Error("No reply received");
|
|
5471
5471
|
return this.extractResponse(a.json());
|
|
@@ -5473,7 +5473,7 @@ class ro {
|
|
|
5473
5473
|
async createManualGroup(e, r = "", s) {
|
|
5474
5474
|
let i = "directory.group.manual.create";
|
|
5475
5475
|
r && (i = `${r}.${i}`), console.debug("Sending request to NATS subject", { messageAddress: i });
|
|
5476
|
-
const a = await this.natsConnection.request(i, JSON.stringify(e));
|
|
5476
|
+
const a = await this.natsConnection.request(i, JSON.stringify(e), this.toNatsOptions(s));
|
|
5477
5477
|
if (!a)
|
|
5478
5478
|
throw console.warn("No reply received for subject", { messageAddress: i }), new Error("No reply received");
|
|
5479
5479
|
return this.extractResponse(a.json());
|
|
@@ -5481,7 +5481,7 @@ class ro {
|
|
|
5481
5481
|
async deleteManualGroup(e, r = "", s) {
|
|
5482
5482
|
let i = "directory.group.manual.delete";
|
|
5483
5483
|
r && (i = `${r}.${i}`), console.debug("Sending request to NATS subject", { messageAddress: i });
|
|
5484
|
-
const a = await this.natsConnection.request(i, JSON.stringify(e));
|
|
5484
|
+
const a = await this.natsConnection.request(i, JSON.stringify(e), this.toNatsOptions(s));
|
|
5485
5485
|
if (!a)
|
|
5486
5486
|
throw console.warn("No reply received for subject", { messageAddress: i }), new Error("No reply received");
|
|
5487
5487
|
return this.extractResponse(a.json());
|
|
@@ -5489,7 +5489,7 @@ class ro {
|
|
|
5489
5489
|
async fetchTranslations(e, r, s = "", i) {
|
|
5490
5490
|
let a = "i18n." + r + ".fetch";
|
|
5491
5491
|
s && (a = `${s}.${a}`), console.debug("Sending request to NATS subject", { messageAddress: a });
|
|
5492
|
-
const d = await this.natsConnection.request(a, JSON.stringify(e));
|
|
5492
|
+
const d = await this.natsConnection.request(a, JSON.stringify(e), this.toNatsOptions(i));
|
|
5493
5493
|
if (!d)
|
|
5494
5494
|
throw console.warn("No reply received for subject", { messageAddress: a }), new Error("No reply received");
|
|
5495
5495
|
return this.extractResponse(d.json());
|
|
@@ -5497,7 +5497,7 @@ class ro {
|
|
|
5497
5497
|
async findGroupByExternalId(e, r = "", s) {
|
|
5498
5498
|
let i = "directory.group.find.byexternalid";
|
|
5499
5499
|
r && (i = `${r}.${i}`), console.debug("Sending request to NATS subject", { messageAddress: i });
|
|
5500
|
-
const a = await this.natsConnection.request(i, JSON.stringify(e));
|
|
5500
|
+
const a = await this.natsConnection.request(i, JSON.stringify(e), this.toNatsOptions(s));
|
|
5501
5501
|
if (!a)
|
|
5502
5502
|
throw console.warn("No reply received for subject", { messageAddress: i }), new Error("No reply received");
|
|
5503
5503
|
return this.extractResponse(a.json());
|
|
@@ -5505,7 +5505,7 @@ class ro {
|
|
|
5505
5505
|
async findSession(e, r = "", s) {
|
|
5506
5506
|
let i = "session.find";
|
|
5507
5507
|
r && (i = `${r}.${i}`), console.debug("Sending request to NATS subject", { messageAddress: i });
|
|
5508
|
-
const a = await this.natsConnection.request(i, JSON.stringify(e));
|
|
5508
|
+
const a = await this.natsConnection.request(i, JSON.stringify(e), this.toNatsOptions(s));
|
|
5509
5509
|
if (!a)
|
|
5510
5510
|
throw console.warn("No reply received for subject", { messageAddress: i }), new Error("No reply received");
|
|
5511
5511
|
return this.extractResponse(a.json());
|
|
@@ -5513,7 +5513,7 @@ class ro {
|
|
|
5513
5513
|
async getResources(e, r, s = "", i) {
|
|
5514
5514
|
let a = "resource.get." + r;
|
|
5515
5515
|
s && (a = `${s}.${a}`), console.debug("Sending request to NATS subject", { messageAddress: a });
|
|
5516
|
-
const d = await this.natsConnection.request(a, JSON.stringify(e));
|
|
5516
|
+
const d = await this.natsConnection.request(a, JSON.stringify(e), this.toNatsOptions(i));
|
|
5517
5517
|
if (!d)
|
|
5518
5518
|
throw console.warn("No reply received for subject", { messageAddress: a }), new Error("No reply received");
|
|
5519
5519
|
return this.extractResponse(d.json());
|
|
@@ -5521,7 +5521,7 @@ class ro {
|
|
|
5521
5521
|
async getUserDisplayNames(e, r = "", s) {
|
|
5522
5522
|
let i = "directory.users.get.displaynames";
|
|
5523
5523
|
r && (i = `${r}.${i}`), console.debug("Sending request to NATS subject", { messageAddress: i });
|
|
5524
|
-
const a = await this.natsConnection.request(i, JSON.stringify(e));
|
|
5524
|
+
const a = await this.natsConnection.request(i, JSON.stringify(e), this.toNatsOptions(s));
|
|
5525
5525
|
if (!a)
|
|
5526
5526
|
throw console.warn("No reply received for subject", { messageAddress: i }), new Error("No reply received");
|
|
5527
5527
|
return this.extractResponse(a.json());
|
|
@@ -5529,7 +5529,7 @@ class ro {
|
|
|
5529
5529
|
async getUsersByIds(e, r = "", s) {
|
|
5530
5530
|
let i = "directory.users.get.byids";
|
|
5531
5531
|
r && (i = `${r}.${i}`), console.debug("Sending request to NATS subject", { messageAddress: i });
|
|
5532
|
-
const a = await this.natsConnection.request(i, JSON.stringify(e));
|
|
5532
|
+
const a = await this.natsConnection.request(i, JSON.stringify(e), this.toNatsOptions(s));
|
|
5533
5533
|
if (!a)
|
|
5534
5534
|
throw console.warn("No reply received for subject", { messageAddress: i }), new Error("No reply received");
|
|
5535
5535
|
return this.extractResponse(a.json());
|
|
@@ -5537,19 +5537,19 @@ class ro {
|
|
|
5537
5537
|
async listenAndReplyExample(e, r = "", s) {
|
|
5538
5538
|
let i = "ent.test.listen.reply";
|
|
5539
5539
|
r && (i = `${r}.${i}`), console.debug("Sending request to NATS subject", { messageAddress: i });
|
|
5540
|
-
const a = await this.natsConnection.request(i, JSON.stringify(e));
|
|
5540
|
+
const a = await this.natsConnection.request(i, JSON.stringify(e), this.toNatsOptions(s));
|
|
5541
5541
|
if (!a)
|
|
5542
5542
|
throw console.warn("No reply received for subject", { messageAddress: i }), new Error("No reply received");
|
|
5543
5543
|
return this.extractResponse(a.json());
|
|
5544
5544
|
}
|
|
5545
5545
|
async listenOnlyExample(e, r = "", s) {
|
|
5546
5546
|
let i = "ent.test.listen";
|
|
5547
|
-
r && (i = `${r}.${i}`), console.debug("Publishing to NATS subject", { messageAddress: i }), this.natsConnection.publish(i, JSON.stringify(e));
|
|
5547
|
+
r && (i = `${r}.${i}`), console.debug("Publishing to NATS subject", { messageAddress: i }), this.natsConnection.publish(i, JSON.stringify(e), this.toNatsOptions(s));
|
|
5548
5548
|
}
|
|
5549
5549
|
async loadTest(e, r = "", s) {
|
|
5550
5550
|
let i = "ent.loadtest";
|
|
5551
5551
|
r && (i = `${r}.${i}`), console.debug("Sending request to NATS subject", { messageAddress: i });
|
|
5552
|
-
const a = await this.natsConnection.request(i, JSON.stringify(e));
|
|
5552
|
+
const a = await this.natsConnection.request(i, JSON.stringify(e), this.toNatsOptions(s));
|
|
5553
5553
|
if (!a)
|
|
5554
5554
|
throw console.warn("No reply received for subject", { messageAddress: i }), new Error("No reply received");
|
|
5555
5555
|
return this.extractResponse(a.json());
|
|
@@ -5557,7 +5557,7 @@ class ro {
|
|
|
5557
5557
|
async recreateCommunicationLinks(e, r = "", s) {
|
|
5558
5558
|
let i = "communication.link.users.recreate";
|
|
5559
5559
|
r && (i = `${r}.${i}`), console.debug("Sending request to NATS subject", { messageAddress: i });
|
|
5560
|
-
const a = await this.natsConnection.request(i, JSON.stringify(e));
|
|
5560
|
+
const a = await this.natsConnection.request(i, JSON.stringify(e), this.toNatsOptions(s));
|
|
5561
5561
|
if (!a)
|
|
5562
5562
|
throw console.warn("No reply received for subject", { messageAddress: i }), new Error("No reply received");
|
|
5563
5563
|
return this.extractResponse(a.json());
|
|
@@ -5565,7 +5565,7 @@ class ro {
|
|
|
5565
5565
|
async refreshSession(e, r = "", s) {
|
|
5566
5566
|
let i = "session.refresh";
|
|
5567
5567
|
r && (i = `${r}.${i}`), console.debug("Sending request to NATS subject", { messageAddress: i });
|
|
5568
|
-
const a = await this.natsConnection.request(i, JSON.stringify(e));
|
|
5568
|
+
const a = await this.natsConnection.request(i, JSON.stringify(e), this.toNatsOptions(s));
|
|
5569
5569
|
if (!a)
|
|
5570
5570
|
throw console.warn("No reply received for subject", { messageAddress: i }), new Error("No reply received");
|
|
5571
5571
|
return this.extractResponse(a.json());
|
|
@@ -5573,7 +5573,7 @@ class ro {
|
|
|
5573
5573
|
async registerApp(e, r = "", s) {
|
|
5574
5574
|
let i = "ent.appregistry.app.register";
|
|
5575
5575
|
r && (i = `${r}.${i}`), console.debug("Sending request to NATS subject", { messageAddress: i });
|
|
5576
|
-
const a = await this.natsConnection.request(i, JSON.stringify(e));
|
|
5576
|
+
const a = await this.natsConnection.request(i, JSON.stringify(e), this.toNatsOptions(s));
|
|
5577
5577
|
if (!a)
|
|
5578
5578
|
throw console.warn("No reply received for subject", { messageAddress: i }), new Error("No reply received");
|
|
5579
5579
|
return this.extractResponse(a.json());
|
|
@@ -5581,7 +5581,7 @@ class ro {
|
|
|
5581
5581
|
async registerI18nFiles(e, r, s = "", i) {
|
|
5582
5582
|
let a = "i18n." + r + ".register";
|
|
5583
5583
|
s && (a = `${s}.${a}`), console.debug("Sending request to NATS subject", { messageAddress: a });
|
|
5584
|
-
const d = await this.natsConnection.request(a, JSON.stringify(e));
|
|
5584
|
+
const d = await this.natsConnection.request(a, JSON.stringify(e), this.toNatsOptions(i));
|
|
5585
5585
|
if (!d)
|
|
5586
5586
|
throw console.warn("No reply received for subject", { messageAddress: a }), new Error("No reply received");
|
|
5587
5587
|
return this.extractResponse(d.json());
|
|
@@ -5589,7 +5589,7 @@ class ro {
|
|
|
5589
5589
|
async registerNotification(e, r = "", s) {
|
|
5590
5590
|
let i = "timeline.notification.register";
|
|
5591
5591
|
r && (i = `${r}.${i}`), console.debug("Sending request to NATS subject", { messageAddress: i });
|
|
5592
|
-
const a = await this.natsConnection.request(i, JSON.stringify(e));
|
|
5592
|
+
const a = await this.natsConnection.request(i, JSON.stringify(e), this.toNatsOptions(s));
|
|
5593
5593
|
if (!a)
|
|
5594
5594
|
throw console.warn("No reply received for subject", { messageAddress: i }), new Error("No reply received");
|
|
5595
5595
|
return this.extractResponse(a.json());
|
|
@@ -5597,7 +5597,7 @@ class ro {
|
|
|
5597
5597
|
async registerNotifications(e, r = "", s) {
|
|
5598
5598
|
let i = "timeline.notification.register.batch";
|
|
5599
5599
|
r && (i = `${r}.${i}`), console.debug("Sending request to NATS subject", { messageAddress: i });
|
|
5600
|
-
const a = await this.natsConnection.request(i, JSON.stringify(e));
|
|
5600
|
+
const a = await this.natsConnection.request(i, JSON.stringify(e), this.toNatsOptions(s));
|
|
5601
5601
|
if (!a)
|
|
5602
5602
|
throw console.warn("No reply received for subject", { messageAddress: i }), new Error("No reply received");
|
|
5603
5603
|
return this.extractResponse(a.json());
|
|
@@ -5605,7 +5605,7 @@ class ro {
|
|
|
5605
5605
|
async removeCommunicationLinks(e, r = "", s) {
|
|
5606
5606
|
let i = "communication.link.users.remove";
|
|
5607
5607
|
r && (i = `${r}.${i}`), console.debug("Sending request to NATS subject", { messageAddress: i });
|
|
5608
|
-
const a = await this.natsConnection.request(i, JSON.stringify(e));
|
|
5608
|
+
const a = await this.natsConnection.request(i, JSON.stringify(e), this.toNatsOptions(s));
|
|
5609
5609
|
if (!a)
|
|
5610
5610
|
throw console.warn("No reply received for subject", { messageAddress: i }), new Error("No reply received");
|
|
5611
5611
|
return this.extractResponse(a.json());
|
|
@@ -5613,7 +5613,7 @@ class ro {
|
|
|
5613
5613
|
async removeGroupMember(e, r = "", s) {
|
|
5614
5614
|
let i = "directory.group.member.delete";
|
|
5615
5615
|
r && (i = `${r}.${i}`), console.debug("Sending request to NATS subject", { messageAddress: i });
|
|
5616
|
-
const a = await this.natsConnection.request(i, JSON.stringify(e));
|
|
5616
|
+
const a = await this.natsConnection.request(i, JSON.stringify(e), this.toNatsOptions(s));
|
|
5617
5617
|
if (!a)
|
|
5618
5618
|
throw console.warn("No reply received for subject", { messageAddress: i }), new Error("No reply received");
|
|
5619
5619
|
return this.extractResponse(a.json());
|
|
@@ -5621,7 +5621,7 @@ class ro {
|
|
|
5621
5621
|
async removeGroupShares(e, r, s = "", i) {
|
|
5622
5622
|
let a = "share.group.remove." + r;
|
|
5623
5623
|
s && (a = `${s}.${a}`), console.debug("Sending request to NATS subject", { messageAddress: a });
|
|
5624
|
-
const d = await this.natsConnection.request(a, JSON.stringify(e));
|
|
5624
|
+
const d = await this.natsConnection.request(a, JSON.stringify(e), this.toNatsOptions(i));
|
|
5625
5625
|
if (!d)
|
|
5626
5626
|
throw console.warn("No reply received for subject", { messageAddress: a }), new Error("No reply received");
|
|
5627
5627
|
return this.extractResponse(d.json());
|
|
@@ -5629,7 +5629,7 @@ class ro {
|
|
|
5629
5629
|
async sendNotification(e, r = "", s) {
|
|
5630
5630
|
let i = "timeline.notification.send";
|
|
5631
5631
|
r && (i = `${r}.${i}`), console.debug("Sending request to NATS subject", { messageAddress: i });
|
|
5632
|
-
const a = await this.natsConnection.request(i, JSON.stringify(e));
|
|
5632
|
+
const a = await this.natsConnection.request(i, JSON.stringify(e), this.toNatsOptions(s));
|
|
5633
5633
|
if (!a)
|
|
5634
5634
|
throw console.warn("No reply received for subject", { messageAddress: i }), new Error("No reply received");
|
|
5635
5635
|
return this.extractResponse(a.json());
|
|
@@ -5637,7 +5637,7 @@ class ro {
|
|
|
5637
5637
|
async updateManualGroup(e, r = "", s) {
|
|
5638
5638
|
let i = "directory.group.manual.update";
|
|
5639
5639
|
r && (i = `${r}.${i}`), console.debug("Sending request to NATS subject", { messageAddress: i });
|
|
5640
|
-
const a = await this.natsConnection.request(i, JSON.stringify(e));
|
|
5640
|
+
const a = await this.natsConnection.request(i, JSON.stringify(e), this.toNatsOptions(s));
|
|
5641
5641
|
if (!a)
|
|
5642
5642
|
throw console.warn("No reply received for subject", { messageAddress: i }), new Error("No reply received");
|
|
5643
5643
|
return this.extractResponse(a.json());
|
|
@@ -5645,7 +5645,7 @@ class ro {
|
|
|
5645
5645
|
async updateWikiContent(e, r = "", s) {
|
|
5646
5646
|
let i = "ai.wiki.content.updated";
|
|
5647
5647
|
r && (i = `${r}.${i}`), console.debug("Sending request to NATS subject", { messageAddress: i });
|
|
5648
|
-
const a = await this.natsConnection.request(i, JSON.stringify(e));
|
|
5648
|
+
const a = await this.natsConnection.request(i, JSON.stringify(e), this.toNatsOptions(s));
|
|
5649
5649
|
if (!a)
|
|
5650
5650
|
throw console.warn("No reply received for subject", { messageAddress: i }), new Error("No reply received");
|
|
5651
5651
|
return this.extractResponse(a.json());
|
|
@@ -5653,7 +5653,7 @@ class ro {
|
|
|
5653
5653
|
async updateWikiStructure(e, r = "", s) {
|
|
5654
5654
|
let i = "ai.wiki.structure.updated";
|
|
5655
5655
|
r && (i = `${r}.${i}`), console.debug("Sending request to NATS subject", { messageAddress: i });
|
|
5656
|
-
const a = await this.natsConnection.request(i, JSON.stringify(e));
|
|
5656
|
+
const a = await this.natsConnection.request(i, JSON.stringify(e), this.toNatsOptions(s));
|
|
5657
5657
|
if (!a)
|
|
5658
5658
|
throw console.warn("No reply received for subject", { messageAddress: i }), new Error("No reply received");
|
|
5659
5659
|
return this.extractResponse(a.json());
|
|
@@ -5661,7 +5661,7 @@ class ro {
|
|
|
5661
5661
|
async upsertGroupShares(e, r, s = "", i) {
|
|
5662
5662
|
let a = "share.group.upsert." + r;
|
|
5663
5663
|
s && (a = `${s}.${a}`), console.debug("Sending request to NATS subject", { messageAddress: a });
|
|
5664
|
-
const d = await this.natsConnection.request(a, JSON.stringify(e));
|
|
5664
|
+
const d = await this.natsConnection.request(a, JSON.stringify(e), this.toNatsOptions(i));
|
|
5665
5665
|
if (!d)
|
|
5666
5666
|
throw console.warn("No reply received for subject", { messageAddress: a }), new Error("No reply received");
|
|
5667
5667
|
return this.extractResponse(d.json());
|