@ethora/chat-component 26.3.10 → 26.3.11
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/main.js +582 -585
- package/dist/main.js.map +1 -1
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -56,8 +56,8 @@ function D6() {
|
|
|
56
56
|
return w = k;
|
|
57
57
|
}
|
|
58
58
|
if (b = w, n(C, k)) return b;
|
|
59
|
-
var
|
|
60
|
-
return f !== void 0 && f(b,
|
|
59
|
+
var x = l(k);
|
|
60
|
+
return f !== void 0 && f(b, x) ? (C = k, b) : (C = k, w = x);
|
|
61
61
|
}
|
|
62
62
|
var y = !1, C, w, E = c === void 0 ? null : c;
|
|
63
63
|
return [
|
|
@@ -108,8 +108,8 @@ function B6() {
|
|
|
108
108
|
}
|
|
109
109
|
if (b = w, n(C, k))
|
|
110
110
|
return b;
|
|
111
|
-
var
|
|
112
|
-
return f !== void 0 && f(b,
|
|
111
|
+
var x = l(k);
|
|
112
|
+
return f !== void 0 && f(b, x) ? (C = k, b) : (C = k, w = x);
|
|
113
113
|
}
|
|
114
114
|
var y = !1, C, w, E = c === void 0 ? null : c;
|
|
115
115
|
return [
|
|
@@ -434,8 +434,8 @@ var Ha = { exports: {} }, xh;
|
|
|
434
434
|
function ha() {
|
|
435
435
|
if (xh) return Ha.exports;
|
|
436
436
|
xh = 1;
|
|
437
|
-
var e = typeof Reflect == "object" ? Reflect : null, t = e && typeof e.apply == "function" ? e.apply : function(k, b,
|
|
438
|
-
return Function.prototype.apply.call(k, b,
|
|
437
|
+
var e = typeof Reflect == "object" ? Reflect : null, t = e && typeof e.apply == "function" ? e.apply : function(k, b, x) {
|
|
438
|
+
return Function.prototype.apply.call(k, b, x);
|
|
439
439
|
}, n;
|
|
440
440
|
e && typeof e.ownKeys == "function" ? n = e.ownKeys : Object.getOwnPropertySymbols ? n = function(k) {
|
|
441
441
|
return Object.getOwnPropertyNames(k).concat(Object.getOwnPropertySymbols(k));
|
|
@@ -480,18 +480,18 @@ function ha() {
|
|
|
480
480
|
s.prototype.getMaxListeners = function() {
|
|
481
481
|
return A(this);
|
|
482
482
|
}, s.prototype.emit = function(k) {
|
|
483
|
-
for (var b = [],
|
|
483
|
+
for (var b = [], x = 1; x < arguments.length; x++) b.push(arguments[x]);
|
|
484
484
|
var B = k === "error", P = this._events;
|
|
485
485
|
if (P !== void 0)
|
|
486
486
|
B = B && P.error === void 0;
|
|
487
487
|
else if (!B)
|
|
488
488
|
return !1;
|
|
489
489
|
if (B) {
|
|
490
|
-
var
|
|
491
|
-
if (b.length > 0 && (
|
|
492
|
-
throw
|
|
493
|
-
var _ = new Error("Unhandled error." + (
|
|
494
|
-
throw _.context =
|
|
490
|
+
var T;
|
|
491
|
+
if (b.length > 0 && (T = b[0]), T instanceof Error)
|
|
492
|
+
throw T;
|
|
493
|
+
var _ = new Error("Unhandled error." + (T ? " (" + T.message + ")" : ""));
|
|
494
|
+
throw _.context = T, _;
|
|
495
495
|
}
|
|
496
496
|
var I = P[k];
|
|
497
497
|
if (I === void 0)
|
|
@@ -499,22 +499,22 @@ function ha() {
|
|
|
499
499
|
if (typeof I == "function")
|
|
500
500
|
t(I, this, b);
|
|
501
501
|
else
|
|
502
|
-
for (var N = I.length, R = h(I, N),
|
|
503
|
-
t(R[
|
|
502
|
+
for (var N = I.length, R = h(I, N), x = 0; x < N; ++x)
|
|
503
|
+
t(R[x], this, b);
|
|
504
504
|
return !0;
|
|
505
505
|
};
|
|
506
|
-
function u(E, k, b,
|
|
507
|
-
var B, P,
|
|
506
|
+
function u(E, k, b, x) {
|
|
507
|
+
var B, P, T;
|
|
508
508
|
if (o(b), P = E._events, P === void 0 ? (P = E._events = /* @__PURE__ */ Object.create(null), E._eventsCount = 0) : (P.newListener !== void 0 && (E.emit(
|
|
509
509
|
"newListener",
|
|
510
510
|
k,
|
|
511
511
|
b.listener ? b.listener : b
|
|
512
|
-
), P = E._events),
|
|
513
|
-
|
|
514
|
-
else if (typeof
|
|
515
|
-
|
|
516
|
-
var _ = new Error("Possible EventEmitter memory leak detected. " +
|
|
517
|
-
_.name = "MaxListenersExceededWarning", _.emitter = E, _.type = k, _.count =
|
|
512
|
+
), P = E._events), T = P[k]), T === void 0)
|
|
513
|
+
T = P[k] = b, ++E._eventsCount;
|
|
514
|
+
else if (typeof T == "function" ? T = P[k] = x ? [b, T] : [T, b] : x ? T.unshift(b) : T.push(b), B = A(E), B > 0 && T.length > B && !T.warned) {
|
|
515
|
+
T.warned = !0;
|
|
516
|
+
var _ = new Error("Possible EventEmitter memory leak detected. " + T.length + " " + String(k) + " listeners added. Use emitter.setMaxListeners() to increase limit");
|
|
517
|
+
_.name = "MaxListenersExceededWarning", _.emitter = E, _.type = k, _.count = T.length, i(_);
|
|
518
518
|
}
|
|
519
519
|
return E;
|
|
520
520
|
}
|
|
@@ -528,45 +528,45 @@ function ha() {
|
|
|
528
528
|
return this.target.removeListener(this.type, this.wrapFn), this.fired = !0, arguments.length === 0 ? this.listener.call(this.target) : this.listener.apply(this.target, arguments);
|
|
529
529
|
}
|
|
530
530
|
function l(E, k, b) {
|
|
531
|
-
var
|
|
532
|
-
return B.listener = b,
|
|
531
|
+
var x = { fired: !1, wrapFn: void 0, target: E, type: k, listener: b }, B = c.bind(x);
|
|
532
|
+
return B.listener = b, x.wrapFn = B, B;
|
|
533
533
|
}
|
|
534
534
|
s.prototype.once = function(k, b) {
|
|
535
535
|
return o(b), this.on(k, l(this, k, b)), this;
|
|
536
536
|
}, s.prototype.prependOnceListener = function(k, b) {
|
|
537
537
|
return o(b), this.prependListener(k, l(this, k, b)), this;
|
|
538
538
|
}, s.prototype.removeListener = function(k, b) {
|
|
539
|
-
var
|
|
539
|
+
var x, B, P, T, _;
|
|
540
540
|
if (o(b), B = this._events, B === void 0)
|
|
541
541
|
return this;
|
|
542
|
-
if (
|
|
542
|
+
if (x = B[k], x === void 0)
|
|
543
543
|
return this;
|
|
544
|
-
if (
|
|
545
|
-
--this._eventsCount === 0 ? this._events = /* @__PURE__ */ Object.create(null) : (delete B[k], B.removeListener && this.emit("removeListener", k,
|
|
546
|
-
else if (typeof
|
|
547
|
-
for (P = -1,
|
|
548
|
-
if (T
|
|
549
|
-
_ = T
|
|
544
|
+
if (x === b || x.listener === b)
|
|
545
|
+
--this._eventsCount === 0 ? this._events = /* @__PURE__ */ Object.create(null) : (delete B[k], B.removeListener && this.emit("removeListener", k, x.listener || b));
|
|
546
|
+
else if (typeof x != "function") {
|
|
547
|
+
for (P = -1, T = x.length - 1; T >= 0; T--)
|
|
548
|
+
if (x[T] === b || x[T].listener === b) {
|
|
549
|
+
_ = x[T].listener, P = T;
|
|
550
550
|
break;
|
|
551
551
|
}
|
|
552
552
|
if (P < 0)
|
|
553
553
|
return this;
|
|
554
|
-
P === 0 ?
|
|
554
|
+
P === 0 ? x.shift() : p(x, P), x.length === 1 && (B[k] = x[0]), B.removeListener !== void 0 && this.emit("removeListener", k, _ || b);
|
|
555
555
|
}
|
|
556
556
|
return this;
|
|
557
557
|
}, s.prototype.off = s.prototype.removeListener, s.prototype.removeAllListeners = function(k) {
|
|
558
|
-
var b,
|
|
559
|
-
if (
|
|
558
|
+
var b, x, B;
|
|
559
|
+
if (x = this._events, x === void 0)
|
|
560
560
|
return this;
|
|
561
|
-
if (
|
|
562
|
-
return arguments.length === 0 ? (this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0) :
|
|
561
|
+
if (x.removeListener === void 0)
|
|
562
|
+
return arguments.length === 0 ? (this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0) : x[k] !== void 0 && (--this._eventsCount === 0 ? this._events = /* @__PURE__ */ Object.create(null) : delete x[k]), this;
|
|
563
563
|
if (arguments.length === 0) {
|
|
564
|
-
var P = Object.keys(
|
|
564
|
+
var P = Object.keys(x), T;
|
|
565
565
|
for (B = 0; B < P.length; ++B)
|
|
566
|
-
|
|
566
|
+
T = P[B], T !== "removeListener" && this.removeAllListeners(T);
|
|
567
567
|
return this.removeAllListeners("removeListener"), this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0, this;
|
|
568
568
|
}
|
|
569
|
-
if (b =
|
|
569
|
+
if (b = x[k], typeof b == "function")
|
|
570
570
|
this.removeListener(k, b);
|
|
571
571
|
else if (b !== void 0)
|
|
572
572
|
for (B = b.length - 1; B >= 0; B--)
|
|
@@ -574,10 +574,10 @@ function ha() {
|
|
|
574
574
|
return this;
|
|
575
575
|
};
|
|
576
576
|
function f(E, k, b) {
|
|
577
|
-
var
|
|
578
|
-
if (
|
|
577
|
+
var x = E._events;
|
|
578
|
+
if (x === void 0)
|
|
579
579
|
return [];
|
|
580
|
-
var B =
|
|
580
|
+
var B = x[k];
|
|
581
581
|
return B === void 0 ? [] : typeof B == "function" ? b ? [B.listener || B] : [B] : b ? v(B) : h(B, B.length);
|
|
582
582
|
}
|
|
583
583
|
s.prototype.listeners = function(k) {
|
|
@@ -602,8 +602,8 @@ function ha() {
|
|
|
602
602
|
return this._eventsCount > 0 ? n(this._events) : [];
|
|
603
603
|
};
|
|
604
604
|
function h(E, k) {
|
|
605
|
-
for (var b = new Array(k),
|
|
606
|
-
b[
|
|
605
|
+
for (var b = new Array(k), x = 0; x < k; ++x)
|
|
606
|
+
b[x] = E[x];
|
|
607
607
|
return b;
|
|
608
608
|
}
|
|
609
609
|
function p(E, k) {
|
|
@@ -617,9 +617,9 @@ function ha() {
|
|
|
617
617
|
return k;
|
|
618
618
|
}
|
|
619
619
|
function y(E, k) {
|
|
620
|
-
return new Promise(function(b,
|
|
621
|
-
function B(
|
|
622
|
-
E.removeListener(k, P), T
|
|
620
|
+
return new Promise(function(b, x) {
|
|
621
|
+
function B(T) {
|
|
622
|
+
E.removeListener(k, P), x(T);
|
|
623
623
|
}
|
|
624
624
|
function P() {
|
|
625
625
|
typeof E.removeListener == "function" && E.removeListener("error", B), b([].slice.call(arguments));
|
|
@@ -630,12 +630,12 @@ function ha() {
|
|
|
630
630
|
function C(E, k, b) {
|
|
631
631
|
typeof E.on == "function" && w(E, "error", k, b);
|
|
632
632
|
}
|
|
633
|
-
function w(E, k, b,
|
|
633
|
+
function w(E, k, b, x) {
|
|
634
634
|
if (typeof E.on == "function")
|
|
635
|
-
|
|
635
|
+
x.once ? E.once(k, b) : E.on(k, b);
|
|
636
636
|
else if (typeof E.addEventListener == "function")
|
|
637
637
|
E.addEventListener(k, function B(P) {
|
|
638
|
-
|
|
638
|
+
x.once && E.removeEventListener(k, B), b(P);
|
|
639
639
|
});
|
|
640
640
|
else
|
|
641
641
|
throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof E);
|
|
@@ -1040,7 +1040,7 @@ function nE() {
|
|
|
1040
1040
|
class d extends e.EventEmitter {
|
|
1041
1041
|
constructor() {
|
|
1042
1042
|
super();
|
|
1043
|
-
let p = n, v, y, C, w, E, k, b,
|
|
1043
|
+
let p = n, v, y, C, w, E, k, b, x, B = 0, P;
|
|
1044
1044
|
this._handleTagOpening = function(_, I, N) {
|
|
1045
1045
|
_ ? this.emit("endElement", I, !1) : (this.emit("startElement", I, N), k && this.emit("endElement", I, !0));
|
|
1046
1046
|
}, this.write = function(_) {
|
|
@@ -1061,7 +1061,7 @@ function nE() {
|
|
|
1061
1061
|
break;
|
|
1062
1062
|
}
|
|
1063
1063
|
case c: {
|
|
1064
|
-
const L = _.indexOf(
|
|
1064
|
+
const L = _.indexOf(x, I);
|
|
1065
1065
|
L !== -1 && (I = L);
|
|
1066
1066
|
break;
|
|
1067
1067
|
}
|
|
@@ -1113,7 +1113,7 @@ function nE() {
|
|
|
1113
1113
|
R === 61 && (p = u);
|
|
1114
1114
|
break;
|
|
1115
1115
|
case u:
|
|
1116
|
-
(R === 34 || R === 39) && (b = R,
|
|
1116
|
+
(R === 34 || R === 39) && (b = R, x = R === 34 ? '"' : "'", p = c, B = I + 1);
|
|
1117
1117
|
break;
|
|
1118
1118
|
case c:
|
|
1119
1119
|
if (R === b) {
|
|
@@ -2393,11 +2393,11 @@ function XE() {
|
|
|
2393
2393
|
Sm = 1;
|
|
2394
2394
|
const { xml: e, jid: t, Client: n } = aE(), i = oE(), r = AE(), s = hE(), a = bE(), o = yE(), A = EE(), u = CE(), c = NE(), l = OE(), f = LE(), d = FE(), h = QE(), p = WE(), v = JE();
|
|
2395
2395
|
function y(C = {}) {
|
|
2396
|
-
const { resource: w, credentials: E, username: k, password: b, ...
|
|
2397
|
-
!B && P && (
|
|
2398
|
-
const
|
|
2396
|
+
const { resource: w, credentials: E, username: k, password: b, ...x } = C, { domain: B, service: P } = x;
|
|
2397
|
+
!B && P && (x.domain = i(P));
|
|
2398
|
+
const T = new n(x), _ = r({ entity: T }), I = s({ entity: T }), N = a({ entity: T }), R = o({ middleware: N }), L = A({ middleware: N, entity: T }), W = u({ middleware: N, entity: T }), z = c({ entity: T }), V = l({ streamFeatures: R }, E || { username: k, password: b }), $ = h({
|
|
2399
2399
|
streamFeatures: R,
|
|
2400
|
-
entity:
|
|
2400
|
+
entity: T,
|
|
2401
2401
|
middleware: N
|
|
2402
2402
|
}), D = f(
|
|
2403
2403
|
{ iqCaller: L, streamFeatures: R },
|
|
@@ -2408,8 +2408,8 @@ function XE() {
|
|
|
2408
2408
|
}), Y = Object.entries({ plain: v, anonymous: p }).map(([S, j]) => ({
|
|
2409
2409
|
[S]: j(V)
|
|
2410
2410
|
}));
|
|
2411
|
-
return Object.assign(
|
|
2412
|
-
entity:
|
|
2411
|
+
return Object.assign(T, {
|
|
2412
|
+
entity: T,
|
|
2413
2413
|
reconnect: _,
|
|
2414
2414
|
websocket: I,
|
|
2415
2415
|
middleware: N,
|
|
@@ -2836,58 +2836,58 @@ function pC() {
|
|
|
2836
2836
|
}), o && (i.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW || !ArrayBuffer.isView) && (ArrayBuffer.isView = function(b) {
|
|
2837
2837
|
return typeof b == "object" && b.buffer && b.buffer.constructor === ArrayBuffer;
|
|
2838
2838
|
});
|
|
2839
|
-
var h = function(b,
|
|
2839
|
+
var h = function(b, x) {
|
|
2840
2840
|
return function(B) {
|
|
2841
|
-
return new w(
|
|
2841
|
+
return new w(x, !0).update(B)[b]();
|
|
2842
2842
|
};
|
|
2843
2843
|
}, p = function(b) {
|
|
2844
|
-
var
|
|
2845
|
-
s && (
|
|
2844
|
+
var x = h("hex", b);
|
|
2845
|
+
s && (x = v(x, b)), x.create = function() {
|
|
2846
2846
|
return new w(b);
|
|
2847
|
-
},
|
|
2848
|
-
return
|
|
2847
|
+
}, x.update = function(T) {
|
|
2848
|
+
return x.create().update(T);
|
|
2849
2849
|
};
|
|
2850
2850
|
for (var B = 0; B < f.length; ++B) {
|
|
2851
2851
|
var P = f[B];
|
|
2852
|
-
|
|
2852
|
+
x[P] = h(P, b);
|
|
2853
2853
|
}
|
|
2854
|
-
return
|
|
2855
|
-
}, v = function(b,
|
|
2856
|
-
var B = wr, P = wr.Buffer,
|
|
2854
|
+
return x;
|
|
2855
|
+
}, v = function(b, x) {
|
|
2856
|
+
var B = wr, P = wr.Buffer, T = x ? "sha224" : "sha256", _;
|
|
2857
2857
|
P.from && !i.JS_SHA256_NO_BUFFER_FROM ? _ = P.from : _ = function(N) {
|
|
2858
2858
|
return new P(N);
|
|
2859
2859
|
};
|
|
2860
2860
|
var I = function(N) {
|
|
2861
2861
|
if (typeof N == "string")
|
|
2862
|
-
return B.createHash(
|
|
2862
|
+
return B.createHash(T).update(N, "utf8").digest("hex");
|
|
2863
2863
|
if (N == null)
|
|
2864
2864
|
throw new Error(t);
|
|
2865
|
-
return N.constructor === ArrayBuffer && (N = new Uint8Array(N)), Array.isArray(N) || ArrayBuffer.isView(N) || N.constructor === P ? B.createHash(
|
|
2865
|
+
return N.constructor === ArrayBuffer && (N = new Uint8Array(N)), Array.isArray(N) || ArrayBuffer.isView(N) || N.constructor === P ? B.createHash(T).update(_(N)).digest("hex") : b(N);
|
|
2866
2866
|
};
|
|
2867
2867
|
return I;
|
|
2868
|
-
}, y = function(b,
|
|
2868
|
+
}, y = function(b, x) {
|
|
2869
2869
|
return function(B, P) {
|
|
2870
|
-
return new E(B,
|
|
2870
|
+
return new E(B, x, !0).update(P)[b]();
|
|
2871
2871
|
};
|
|
2872
2872
|
}, C = function(b) {
|
|
2873
|
-
var
|
|
2874
|
-
|
|
2875
|
-
return new E(
|
|
2876
|
-
},
|
|
2877
|
-
return
|
|
2873
|
+
var x = y("hex", b);
|
|
2874
|
+
x.create = function(T) {
|
|
2875
|
+
return new E(T, b);
|
|
2876
|
+
}, x.update = function(T, _) {
|
|
2877
|
+
return x.create(T).update(_);
|
|
2878
2878
|
};
|
|
2879
2879
|
for (var B = 0; B < f.length; ++B) {
|
|
2880
2880
|
var P = f[B];
|
|
2881
|
-
|
|
2881
|
+
x[P] = y(P, b);
|
|
2882
2882
|
}
|
|
2883
|
-
return
|
|
2883
|
+
return x;
|
|
2884
2884
|
};
|
|
2885
|
-
function w(b,
|
|
2886
|
-
|
|
2885
|
+
function w(b, x) {
|
|
2886
|
+
x ? (d[0] = d[16] = d[1] = d[2] = d[3] = d[4] = d[5] = d[6] = d[7] = d[8] = d[9] = d[10] = d[11] = d[12] = d[13] = d[14] = d[15] = 0, this.blocks = d) : this.blocks = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], b ? (this.h0 = 3238371032, this.h1 = 914150663, this.h2 = 812702999, this.h3 = 4144912697, this.h4 = 4290775857, this.h5 = 1750603025, this.h6 = 1694076839, this.h7 = 3204075428) : (this.h0 = 1779033703, this.h1 = 3144134277, this.h2 = 1013904242, this.h3 = 2773480762, this.h4 = 1359893119, this.h5 = 2600822924, this.h6 = 528734635, this.h7 = 1541459225), this.block = this.start = this.bytes = this.hBytes = 0, this.finalized = this.hashed = !1, this.first = !0, this.is224 = b;
|
|
2887
2887
|
}
|
|
2888
2888
|
w.prototype.update = function(b) {
|
|
2889
2889
|
if (!this.finalized) {
|
|
2890
|
-
var
|
|
2890
|
+
var x, B = typeof b;
|
|
2891
2891
|
if (B !== "string") {
|
|
2892
2892
|
if (B === "object") {
|
|
2893
2893
|
if (b === null)
|
|
@@ -2898,15 +2898,15 @@ function pC() {
|
|
|
2898
2898
|
throw new Error(t);
|
|
2899
2899
|
} else
|
|
2900
2900
|
throw new Error(t);
|
|
2901
|
-
|
|
2901
|
+
x = !0;
|
|
2902
2902
|
}
|
|
2903
|
-
for (var P,
|
|
2904
|
-
if (this.hashed && (this.hashed = !1, N[0] = this.block, this.block = N[16] = N[1] = N[2] = N[3] = N[4] = N[5] = N[6] = N[7] = N[8] = N[9] = N[10] = N[11] = N[12] = N[13] = N[14] = N[15] = 0),
|
|
2905
|
-
for (_ = this.start;
|
|
2906
|
-
N[_ >>> 2] |= b[
|
|
2903
|
+
for (var P, T = 0, _, I = b.length, N = this.blocks; T < I; ) {
|
|
2904
|
+
if (this.hashed && (this.hashed = !1, N[0] = this.block, this.block = N[16] = N[1] = N[2] = N[3] = N[4] = N[5] = N[6] = N[7] = N[8] = N[9] = N[10] = N[11] = N[12] = N[13] = N[14] = N[15] = 0), x)
|
|
2905
|
+
for (_ = this.start; T < I && _ < 64; ++T)
|
|
2906
|
+
N[_ >>> 2] |= b[T] << c[_++ & 3];
|
|
2907
2907
|
else
|
|
2908
|
-
for (_ = this.start;
|
|
2909
|
-
P = b.charCodeAt(
|
|
2908
|
+
for (_ = this.start; T < I && _ < 64; ++T)
|
|
2909
|
+
P = b.charCodeAt(T), P < 128 ? N[_ >>> 2] |= P << c[_++ & 3] : P < 2048 ? (N[_ >>> 2] |= (192 | P >>> 6) << c[_++ & 3], N[_ >>> 2] |= (128 | P & 63) << c[_++ & 3]) : P < 55296 || P >= 57344 ? (N[_ >>> 2] |= (224 | P >>> 12) << c[_++ & 3], N[_ >>> 2] |= (128 | P >>> 6 & 63) << c[_++ & 3], N[_ >>> 2] |= (128 | P & 63) << c[_++ & 3]) : (P = 65536 + ((P & 1023) << 10 | b.charCodeAt(++T) & 1023), N[_ >>> 2] |= (240 | P >>> 18) << c[_++ & 3], N[_ >>> 2] |= (128 | P >>> 12 & 63) << c[_++ & 3], N[_ >>> 2] |= (128 | P >>> 6 & 63) << c[_++ & 3], N[_ >>> 2] |= (128 | P & 63) << c[_++ & 3]);
|
|
2910
2910
|
this.lastByteIndex = _, this.bytes += _ - this.start, _ >= 64 ? (this.block = N[16], this.start = _ - 64, this.hash(), this.hashed = !0) : this.start = _;
|
|
2911
2911
|
}
|
|
2912
2912
|
return this.bytes > 4294967295 && (this.hBytes += this.bytes / 4294967296 << 0, this.bytes = this.bytes % 4294967296), this;
|
|
@@ -2914,31 +2914,31 @@ function pC() {
|
|
|
2914
2914
|
}, w.prototype.finalize = function() {
|
|
2915
2915
|
if (!this.finalized) {
|
|
2916
2916
|
this.finalized = !0;
|
|
2917
|
-
var b = this.blocks,
|
|
2918
|
-
b[16] = this.block, b[
|
|
2917
|
+
var b = this.blocks, x = this.lastByteIndex;
|
|
2918
|
+
b[16] = this.block, b[x >>> 2] |= u[x & 3], this.block = b[16], x >= 56 && (this.hashed || this.hash(), b[0] = this.block, b[16] = b[1] = b[2] = b[3] = b[4] = b[5] = b[6] = b[7] = b[8] = b[9] = b[10] = b[11] = b[12] = b[13] = b[14] = b[15] = 0), b[14] = this.hBytes << 3 | this.bytes >>> 29, b[15] = this.bytes << 3, this.hash();
|
|
2919
2919
|
}
|
|
2920
2920
|
}, w.prototype.hash = function() {
|
|
2921
|
-
var b = this.h0,
|
|
2921
|
+
var b = this.h0, x = this.h1, B = this.h2, P = this.h3, T = this.h4, _ = this.h5, I = this.h6, N = this.h7, R = this.blocks, L, W, z, V, $, D, H, Y, S, j, re;
|
|
2922
2922
|
for (L = 16; L < 64; ++L)
|
|
2923
2923
|
$ = R[L - 15], W = ($ >>> 7 | $ << 25) ^ ($ >>> 18 | $ << 14) ^ $ >>> 3, $ = R[L - 2], z = ($ >>> 17 | $ << 15) ^ ($ >>> 19 | $ << 13) ^ $ >>> 10, R[L] = R[L - 16] + W + R[L - 7] + z << 0;
|
|
2924
|
-
for (re =
|
|
2925
|
-
this.first ? (this.is224 ? (Y = 300032, $ = R[0] - 1413257819, N = $ - 150054599 << 0, P = $ + 24177077 << 0) : (Y = 704751109, $ = R[0] - 210244248, N = $ - 1521486534 << 0, P = $ + 143694565 << 0), this.first = !1) : (W = (b >>> 2 | b << 30) ^ (b >>> 13 | b << 19) ^ (b >>> 22 | b << 10), z = (
|
|
2926
|
-
this.h0 = this.h0 + b << 0, this.h1 = this.h1 +
|
|
2924
|
+
for (re = x & B, L = 0; L < 64; L += 4)
|
|
2925
|
+
this.first ? (this.is224 ? (Y = 300032, $ = R[0] - 1413257819, N = $ - 150054599 << 0, P = $ + 24177077 << 0) : (Y = 704751109, $ = R[0] - 210244248, N = $ - 1521486534 << 0, P = $ + 143694565 << 0), this.first = !1) : (W = (b >>> 2 | b << 30) ^ (b >>> 13 | b << 19) ^ (b >>> 22 | b << 10), z = (T >>> 6 | T << 26) ^ (T >>> 11 | T << 21) ^ (T >>> 25 | T << 7), Y = b & x, V = Y ^ b & B ^ re, H = T & _ ^ ~T & I, $ = N + z + H + l[L] + R[L], D = W + V, N = P + $ << 0, P = $ + D << 0), W = (P >>> 2 | P << 30) ^ (P >>> 13 | P << 19) ^ (P >>> 22 | P << 10), z = (N >>> 6 | N << 26) ^ (N >>> 11 | N << 21) ^ (N >>> 25 | N << 7), S = P & b, V = S ^ P & x ^ Y, H = N & T ^ ~N & _, $ = I + z + H + l[L + 1] + R[L + 1], D = W + V, I = B + $ << 0, B = $ + D << 0, W = (B >>> 2 | B << 30) ^ (B >>> 13 | B << 19) ^ (B >>> 22 | B << 10), z = (I >>> 6 | I << 26) ^ (I >>> 11 | I << 21) ^ (I >>> 25 | I << 7), j = B & P, V = j ^ B & b ^ S, H = I & N ^ ~I & T, $ = _ + z + H + l[L + 2] + R[L + 2], D = W + V, _ = x + $ << 0, x = $ + D << 0, W = (x >>> 2 | x << 30) ^ (x >>> 13 | x << 19) ^ (x >>> 22 | x << 10), z = (_ >>> 6 | _ << 26) ^ (_ >>> 11 | _ << 21) ^ (_ >>> 25 | _ << 7), re = x & B, V = re ^ x & P ^ j, H = _ & I ^ ~_ & N, $ = T + z + H + l[L + 3] + R[L + 3], D = W + V, T = b + $ << 0, b = $ + D << 0, this.chromeBugWorkAround = !0;
|
|
2926
|
+
this.h0 = this.h0 + b << 0, this.h1 = this.h1 + x << 0, this.h2 = this.h2 + B << 0, this.h3 = this.h3 + P << 0, this.h4 = this.h4 + T << 0, this.h5 = this.h5 + _ << 0, this.h6 = this.h6 + I << 0, this.h7 = this.h7 + N << 0;
|
|
2927
2927
|
}, w.prototype.hex = function() {
|
|
2928
2928
|
this.finalize();
|
|
2929
|
-
var b = this.h0,
|
|
2929
|
+
var b = this.h0, x = this.h1, B = this.h2, P = this.h3, T = this.h4, _ = this.h5, I = this.h6, N = this.h7, R = A[b >>> 28 & 15] + A[b >>> 24 & 15] + A[b >>> 20 & 15] + A[b >>> 16 & 15] + A[b >>> 12 & 15] + A[b >>> 8 & 15] + A[b >>> 4 & 15] + A[b & 15] + A[x >>> 28 & 15] + A[x >>> 24 & 15] + A[x >>> 20 & 15] + A[x >>> 16 & 15] + A[x >>> 12 & 15] + A[x >>> 8 & 15] + A[x >>> 4 & 15] + A[x & 15] + A[B >>> 28 & 15] + A[B >>> 24 & 15] + A[B >>> 20 & 15] + A[B >>> 16 & 15] + A[B >>> 12 & 15] + A[B >>> 8 & 15] + A[B >>> 4 & 15] + A[B & 15] + A[P >>> 28 & 15] + A[P >>> 24 & 15] + A[P >>> 20 & 15] + A[P >>> 16 & 15] + A[P >>> 12 & 15] + A[P >>> 8 & 15] + A[P >>> 4 & 15] + A[P & 15] + A[T >>> 28 & 15] + A[T >>> 24 & 15] + A[T >>> 20 & 15] + A[T >>> 16 & 15] + A[T >>> 12 & 15] + A[T >>> 8 & 15] + A[T >>> 4 & 15] + A[T & 15] + A[_ >>> 28 & 15] + A[_ >>> 24 & 15] + A[_ >>> 20 & 15] + A[_ >>> 16 & 15] + A[_ >>> 12 & 15] + A[_ >>> 8 & 15] + A[_ >>> 4 & 15] + A[_ & 15] + A[I >>> 28 & 15] + A[I >>> 24 & 15] + A[I >>> 20 & 15] + A[I >>> 16 & 15] + A[I >>> 12 & 15] + A[I >>> 8 & 15] + A[I >>> 4 & 15] + A[I & 15];
|
|
2930
2930
|
return this.is224 || (R += A[N >>> 28 & 15] + A[N >>> 24 & 15] + A[N >>> 20 & 15] + A[N >>> 16 & 15] + A[N >>> 12 & 15] + A[N >>> 8 & 15] + A[N >>> 4 & 15] + A[N & 15]), R;
|
|
2931
2931
|
}, w.prototype.toString = w.prototype.hex, w.prototype.digest = function() {
|
|
2932
2932
|
this.finalize();
|
|
2933
|
-
var b = this.h0,
|
|
2933
|
+
var b = this.h0, x = this.h1, B = this.h2, P = this.h3, T = this.h4, _ = this.h5, I = this.h6, N = this.h7, R = [
|
|
2934
2934
|
b >>> 24 & 255,
|
|
2935
2935
|
b >>> 16 & 255,
|
|
2936
2936
|
b >>> 8 & 255,
|
|
2937
2937
|
b & 255,
|
|
2938
|
-
|
|
2939
|
-
|
|
2940
|
-
|
|
2941
|
-
|
|
2938
|
+
x >>> 24 & 255,
|
|
2939
|
+
x >>> 16 & 255,
|
|
2940
|
+
x >>> 8 & 255,
|
|
2941
|
+
x & 255,
|
|
2942
2942
|
B >>> 24 & 255,
|
|
2943
2943
|
B >>> 16 & 255,
|
|
2944
2944
|
B >>> 8 & 255,
|
|
@@ -2947,10 +2947,10 @@ function pC() {
|
|
|
2947
2947
|
P >>> 16 & 255,
|
|
2948
2948
|
P >>> 8 & 255,
|
|
2949
2949
|
P & 255,
|
|
2950
|
-
|
|
2951
|
-
|
|
2952
|
-
|
|
2953
|
-
|
|
2950
|
+
T >>> 24 & 255,
|
|
2951
|
+
T >>> 16 & 255,
|
|
2952
|
+
T >>> 8 & 255,
|
|
2953
|
+
T & 255,
|
|
2954
2954
|
_ >>> 24 & 255,
|
|
2955
2955
|
_ >>> 16 & 255,
|
|
2956
2956
|
_ >>> 8 & 255,
|
|
@@ -2963,17 +2963,17 @@ function pC() {
|
|
|
2963
2963
|
return this.is224 || R.push(N >>> 24 & 255, N >>> 16 & 255, N >>> 8 & 255, N & 255), R;
|
|
2964
2964
|
}, w.prototype.array = w.prototype.digest, w.prototype.arrayBuffer = function() {
|
|
2965
2965
|
this.finalize();
|
|
2966
|
-
var b = new ArrayBuffer(this.is224 ? 28 : 32),
|
|
2967
|
-
return
|
|
2966
|
+
var b = new ArrayBuffer(this.is224 ? 28 : 32), x = new DataView(b);
|
|
2967
|
+
return x.setUint32(0, this.h0), x.setUint32(4, this.h1), x.setUint32(8, this.h2), x.setUint32(12, this.h3), x.setUint32(16, this.h4), x.setUint32(20, this.h5), x.setUint32(24, this.h6), this.is224 || x.setUint32(28, this.h7), b;
|
|
2968
2968
|
};
|
|
2969
|
-
function E(b,
|
|
2970
|
-
var P,
|
|
2971
|
-
if (
|
|
2969
|
+
function E(b, x, B) {
|
|
2970
|
+
var P, T = typeof b;
|
|
2971
|
+
if (T === "string") {
|
|
2972
2972
|
var _ = [], I = b.length, N = 0, R;
|
|
2973
2973
|
for (P = 0; P < I; ++P)
|
|
2974
2974
|
R = b.charCodeAt(P), R < 128 ? _[N++] = R : R < 2048 ? (_[N++] = 192 | R >>> 6, _[N++] = 128 | R & 63) : R < 55296 || R >= 57344 ? (_[N++] = 224 | R >>> 12, _[N++] = 128 | R >>> 6 & 63, _[N++] = 128 | R & 63) : (R = 65536 + ((R & 1023) << 10 | b.charCodeAt(++P) & 1023), _[N++] = 240 | R >>> 18, _[N++] = 128 | R >>> 12 & 63, _[N++] = 128 | R >>> 6 & 63, _[N++] = 128 | R & 63);
|
|
2975
2975
|
b = _;
|
|
2976
|
-
} else if (
|
|
2976
|
+
} else if (T === "object") {
|
|
2977
2977
|
if (b === null)
|
|
2978
2978
|
throw new Error(t);
|
|
2979
2979
|
if (o && b.constructor === ArrayBuffer)
|
|
@@ -2982,13 +2982,13 @@ function pC() {
|
|
|
2982
2982
|
throw new Error(t);
|
|
2983
2983
|
} else
|
|
2984
2984
|
throw new Error(t);
|
|
2985
|
-
b.length > 64 && (b = new w(
|
|
2985
|
+
b.length > 64 && (b = new w(x, !0).update(b).array());
|
|
2986
2986
|
var L = [], W = [];
|
|
2987
2987
|
for (P = 0; P < 64; ++P) {
|
|
2988
2988
|
var z = b[P] || 0;
|
|
2989
2989
|
L[P] = 92 ^ z, W[P] = 54 ^ z;
|
|
2990
2990
|
}
|
|
2991
|
-
w.call(this,
|
|
2991
|
+
w.call(this, x, B), this.update(W), this.oKeyPad = L, this.inner = !0, this.sharedMemory = B;
|
|
2992
2992
|
}
|
|
2993
2993
|
E.prototype = new w(), E.prototype.finalize = function() {
|
|
2994
2994
|
if (w.prototype.finalize.call(this), this.inner) {
|
|
@@ -4260,7 +4260,7 @@ var n9 = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW", i9
|
|
|
4260
4260
|
name: "ConditionError",
|
|
4261
4261
|
message: "Aborted due to condition callback returning false."
|
|
4262
4262
|
};
|
|
4263
|
-
const b = new Promise((
|
|
4263
|
+
const b = new Promise((x, B) => {
|
|
4264
4264
|
p = () => {
|
|
4265
4265
|
B({
|
|
4266
4266
|
name: "AbortError",
|
|
@@ -4281,12 +4281,12 @@ var n9 = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW", i9
|
|
|
4281
4281
|
requestId: d,
|
|
4282
4282
|
signal: h.signal,
|
|
4283
4283
|
abort: y,
|
|
4284
|
-
rejectWithValue: (
|
|
4285
|
-
fulfillWithValue: (
|
|
4286
|
-
})).then((
|
|
4287
|
-
if (
|
|
4288
|
-
throw
|
|
4289
|
-
return
|
|
4284
|
+
rejectWithValue: (x, B) => new Qc(x, B),
|
|
4285
|
+
fulfillWithValue: (x, B) => new Hm(x, B)
|
|
4286
|
+
})).then((x) => {
|
|
4287
|
+
if (x instanceof Qc)
|
|
4288
|
+
throw x;
|
|
4289
|
+
return x instanceof Hm ? r(x.payload, d, A, x.meta) : r(x, d, A);
|
|
4290
4290
|
})]);
|
|
4291
4291
|
} catch (k) {
|
|
4292
4292
|
w = k instanceof Qc ? a(null, d, A, k.payload, k.meta) : a(k, d, A);
|
|
@@ -4383,14 +4383,14 @@ function l9({
|
|
|
4383
4383
|
...w,
|
|
4384
4384
|
...A.sliceCaseReducersByType
|
|
4385
4385
|
};
|
|
4386
|
-
return $C(i.initialState, (
|
|
4386
|
+
return $C(i.initialState, (x) => {
|
|
4387
4387
|
for (let B in b)
|
|
4388
|
-
|
|
4388
|
+
x.addCase(B, b[B]);
|
|
4389
4389
|
for (let B of A.sliceMatchers)
|
|
4390
|
-
|
|
4390
|
+
x.addMatcher(B.matcher, B.reducer);
|
|
4391
4391
|
for (let B of E)
|
|
4392
|
-
|
|
4393
|
-
k &&
|
|
4392
|
+
x.addMatcher(B.matcher, B.reducer);
|
|
4393
|
+
k && x.addDefaultCase(k);
|
|
4394
4394
|
});
|
|
4395
4395
|
}
|
|
4396
4396
|
const l = (w) => w, f = /* @__PURE__ */ new Map(), d = /* @__PURE__ */ new WeakMap();
|
|
@@ -4402,8 +4402,8 @@ function l9({
|
|
|
4402
4402
|
return h || (h = c()), h.getInitialState();
|
|
4403
4403
|
}
|
|
4404
4404
|
function y(w, E = !1) {
|
|
4405
|
-
function k(
|
|
4406
|
-
let B =
|
|
4405
|
+
function k(x) {
|
|
4406
|
+
let B = x[w];
|
|
4407
4407
|
if (typeof B > "u") {
|
|
4408
4408
|
if (E)
|
|
4409
4409
|
B = Ya(d, k, v);
|
|
@@ -4412,12 +4412,12 @@ function l9({
|
|
|
4412
4412
|
}
|
|
4413
4413
|
return B;
|
|
4414
4414
|
}
|
|
4415
|
-
function b(
|
|
4415
|
+
function b(x = l) {
|
|
4416
4416
|
const B = Ya(f, E, () => /* @__PURE__ */ new WeakMap());
|
|
4417
|
-
return Ya(B,
|
|
4417
|
+
return Ya(B, x, () => {
|
|
4418
4418
|
const P = {};
|
|
4419
|
-
for (const [
|
|
4420
|
-
P[
|
|
4419
|
+
for (const [T, _] of Object.entries(i.selectors ?? {}))
|
|
4420
|
+
P[T] = f9(_, x, () => Ya(d, x, v), E);
|
|
4421
4421
|
return P;
|
|
4422
4422
|
});
|
|
4423
4423
|
}
|
|
@@ -5487,8 +5487,8 @@ function nT(e) {
|
|
|
5487
5487
|
f && clearInterval(f), f = null;
|
|
5488
5488
|
return;
|
|
5489
5489
|
}
|
|
5490
|
-
var E = l.shift(), k = i.reduce(function(b,
|
|
5491
|
-
return
|
|
5490
|
+
var E = l.shift(), k = i.reduce(function(b, x) {
|
|
5491
|
+
return x.in(b, E, u);
|
|
5492
5492
|
}, u[E]);
|
|
5493
5493
|
if (k !== void 0)
|
|
5494
5494
|
try {
|
|
@@ -5619,17 +5619,17 @@ function t0(e, t) {
|
|
|
5619
5619
|
_persist: d
|
|
5620
5620
|
});
|
|
5621
5621
|
if (typeof l.rehydrate != "function" || typeof l.register != "function") throw new Error("redux-persist: either rehydrate or register is not a function on the PERSIST action. This can happen if the action is being replayed. This is an unexplored use case, please open an issue and we will figure out a resolution.");
|
|
5622
|
-
return l.register(e.key), r(e).then(function(
|
|
5623
|
-
var B = e.migrate || function(P,
|
|
5622
|
+
return l.register(e.key), r(e).then(function(x) {
|
|
5623
|
+
var B = e.migrate || function(P, T) {
|
|
5624
5624
|
return Promise.resolve(P);
|
|
5625
5625
|
};
|
|
5626
|
-
B(
|
|
5626
|
+
B(x, n).then(function(P) {
|
|
5627
5627
|
y(P);
|
|
5628
5628
|
}, function(P) {
|
|
5629
5629
|
process.env.NODE_ENV !== "production" && P && console.error("redux-persist: migration error", P), y(void 0, P);
|
|
5630
5630
|
});
|
|
5631
|
-
}, function(
|
|
5632
|
-
y(void 0,
|
|
5631
|
+
}, function(x) {
|
|
5632
|
+
y(void 0, x);
|
|
5633
5633
|
}), Nn({}, t(p, l), {
|
|
5634
5634
|
_persist: {
|
|
5635
5635
|
version: n,
|
|
@@ -6007,9 +6007,9 @@ function hi() {
|
|
|
6007
6007
|
concat: function(C) {
|
|
6008
6008
|
var w = this.words, E = C.words, k = this.sigBytes, b = C.sigBytes;
|
|
6009
6009
|
if (this.clamp(), k % 4)
|
|
6010
|
-
for (var
|
|
6011
|
-
var B = E[
|
|
6012
|
-
w[k +
|
|
6010
|
+
for (var x = 0; x < b; x++) {
|
|
6011
|
+
var B = E[x >>> 2] >>> 24 - x % 4 * 8 & 255;
|
|
6012
|
+
w[k + x >>> 2] |= B << 24 - (k + x) % 4 * 8;
|
|
6013
6013
|
}
|
|
6014
6014
|
else
|
|
6015
6015
|
for (var P = 0; P < b; P += 4)
|
|
@@ -6074,8 +6074,8 @@ function hi() {
|
|
|
6074
6074
|
*/
|
|
6075
6075
|
stringify: function(C) {
|
|
6076
6076
|
for (var w = C.words, E = C.sigBytes, k = [], b = 0; b < E; b++) {
|
|
6077
|
-
var
|
|
6078
|
-
k.push((
|
|
6077
|
+
var x = w[b >>> 2] >>> 24 - b % 4 * 8 & 255;
|
|
6078
|
+
k.push((x >>> 4).toString(16)), k.push((x & 15).toString(16));
|
|
6079
6079
|
}
|
|
6080
6080
|
return k.join("");
|
|
6081
6081
|
},
|
|
@@ -6113,8 +6113,8 @@ function hi() {
|
|
|
6113
6113
|
*/
|
|
6114
6114
|
stringify: function(C) {
|
|
6115
6115
|
for (var w = C.words, E = C.sigBytes, k = [], b = 0; b < E; b++) {
|
|
6116
|
-
var
|
|
6117
|
-
k.push(String.fromCharCode(
|
|
6116
|
+
var x = w[b >>> 2] >>> 24 - b % 4 * 8 & 255;
|
|
6117
|
+
k.push(String.fromCharCode(x));
|
|
6118
6118
|
}
|
|
6119
6119
|
return k.join("");
|
|
6120
6120
|
},
|
|
@@ -6212,13 +6212,13 @@ function hi() {
|
|
|
6212
6212
|
* var processedData = bufferedBlockAlgorithm._process(!!'flush');
|
|
6213
6213
|
*/
|
|
6214
6214
|
_process: function(C) {
|
|
6215
|
-
var w, E = this._data, k = E.words, b = E.sigBytes,
|
|
6215
|
+
var w, E = this._data, k = E.words, b = E.sigBytes, x = this.blockSize, B = x * 4, P = b / B;
|
|
6216
6216
|
C ? P = i.ceil(P) : P = i.max((P | 0) - this._minBufferSize, 0);
|
|
6217
|
-
var
|
|
6218
|
-
if (
|
|
6219
|
-
for (var I = 0; I <
|
|
6217
|
+
var T = P * x, _ = i.min(T * 4, b);
|
|
6218
|
+
if (T) {
|
|
6219
|
+
for (var I = 0; I < T; I += x)
|
|
6220
6220
|
this._doProcessBlock(k, I);
|
|
6221
|
-
w = k.splice(0,
|
|
6221
|
+
w = k.splice(0, T), E.sigBytes -= _;
|
|
6222
6222
|
}
|
|
6223
6223
|
return new l.init(w, _);
|
|
6224
6224
|
},
|
|
@@ -6444,17 +6444,17 @@ function TT() {
|
|
|
6444
6444
|
var C = v + y, w = p[C];
|
|
6445
6445
|
p[C] = (w << 8 | w >>> 24) & 16711935 | (w << 24 | w >>> 8) & 4278255360;
|
|
6446
6446
|
}
|
|
6447
|
-
var E = this._hash.words, k = p[v + 0], b = p[v + 1],
|
|
6448
|
-
H = l(H, Y, S, j, k, 7, u[0]), j = l(j, H, Y, S, b, 12, u[1]), S = l(S, j, H, Y,
|
|
6447
|
+
var E = this._hash.words, k = p[v + 0], b = p[v + 1], x = p[v + 2], B = p[v + 3], P = p[v + 4], T = p[v + 5], _ = p[v + 6], I = p[v + 7], N = p[v + 8], R = p[v + 9], L = p[v + 10], W = p[v + 11], z = p[v + 12], V = p[v + 13], $ = p[v + 14], D = p[v + 15], H = E[0], Y = E[1], S = E[2], j = E[3];
|
|
6448
|
+
H = l(H, Y, S, j, k, 7, u[0]), j = l(j, H, Y, S, b, 12, u[1]), S = l(S, j, H, Y, x, 17, u[2]), Y = l(Y, S, j, H, B, 22, u[3]), H = l(H, Y, S, j, P, 7, u[4]), j = l(j, H, Y, S, T, 12, u[5]), S = l(S, j, H, Y, _, 17, u[6]), Y = l(Y, S, j, H, I, 22, u[7]), H = l(H, Y, S, j, N, 7, u[8]), j = l(j, H, Y, S, R, 12, u[9]), S = l(S, j, H, Y, L, 17, u[10]), Y = l(Y, S, j, H, W, 22, u[11]), H = l(H, Y, S, j, z, 7, u[12]), j = l(j, H, Y, S, V, 12, u[13]), S = l(S, j, H, Y, $, 17, u[14]), Y = l(Y, S, j, H, D, 22, u[15]), H = f(H, Y, S, j, b, 5, u[16]), j = f(j, H, Y, S, _, 9, u[17]), S = f(S, j, H, Y, W, 14, u[18]), Y = f(Y, S, j, H, k, 20, u[19]), H = f(H, Y, S, j, T, 5, u[20]), j = f(j, H, Y, S, L, 9, u[21]), S = f(S, j, H, Y, D, 14, u[22]), Y = f(Y, S, j, H, P, 20, u[23]), H = f(H, Y, S, j, R, 5, u[24]), j = f(j, H, Y, S, $, 9, u[25]), S = f(S, j, H, Y, B, 14, u[26]), Y = f(Y, S, j, H, N, 20, u[27]), H = f(H, Y, S, j, V, 5, u[28]), j = f(j, H, Y, S, x, 9, u[29]), S = f(S, j, H, Y, I, 14, u[30]), Y = f(Y, S, j, H, z, 20, u[31]), H = d(H, Y, S, j, T, 4, u[32]), j = d(j, H, Y, S, N, 11, u[33]), S = d(S, j, H, Y, W, 16, u[34]), Y = d(Y, S, j, H, $, 23, u[35]), H = d(H, Y, S, j, b, 4, u[36]), j = d(j, H, Y, S, P, 11, u[37]), S = d(S, j, H, Y, I, 16, u[38]), Y = d(Y, S, j, H, L, 23, u[39]), H = d(H, Y, S, j, V, 4, u[40]), j = d(j, H, Y, S, k, 11, u[41]), S = d(S, j, H, Y, B, 16, u[42]), Y = d(Y, S, j, H, _, 23, u[43]), H = d(H, Y, S, j, R, 4, u[44]), j = d(j, H, Y, S, z, 11, u[45]), S = d(S, j, H, Y, D, 16, u[46]), Y = d(Y, S, j, H, x, 23, u[47]), H = h(H, Y, S, j, k, 6, u[48]), j = h(j, H, Y, S, I, 10, u[49]), S = h(S, j, H, Y, $, 15, u[50]), Y = h(Y, S, j, H, T, 21, u[51]), H = h(H, Y, S, j, z, 6, u[52]), j = h(j, H, Y, S, B, 10, u[53]), S = h(S, j, H, Y, L, 15, u[54]), Y = h(Y, S, j, H, b, 21, u[55]), H = h(H, Y, S, j, N, 6, u[56]), j = h(j, H, Y, S, D, 10, u[57]), S = h(S, j, H, Y, _, 15, u[58]), Y = h(Y, S, j, H, V, 21, u[59]), H = h(H, Y, S, j, P, 6, u[60]), j = h(j, H, Y, S, W, 10, u[61]), S = h(S, j, H, Y, x, 15, u[62]), Y = h(Y, S, j, H, R, 21, u[63]), E[0] = E[0] + H | 0, E[1] = E[1] + Y | 0, E[2] = E[2] + S | 0, E[3] = E[3] + j | 0;
|
|
6449
6449
|
},
|
|
6450
6450
|
_doFinalize: function() {
|
|
6451
6451
|
var p = this._data, v = p.words, y = this._nDataBytes * 8, C = p.sigBytes * 8;
|
|
6452
6452
|
v[C >>> 5] |= 128 << 24 - C % 32;
|
|
6453
6453
|
var w = i.floor(y / 4294967296), E = y;
|
|
6454
6454
|
v[(C + 64 >>> 9 << 4) + 15] = (w << 8 | w >>> 24) & 16711935 | (w << 24 | w >>> 8) & 4278255360, v[(C + 64 >>> 9 << 4) + 14] = (E << 8 | E >>> 24) & 16711935 | (E << 24 | E >>> 8) & 4278255360, p.sigBytes = (v.length + 1) * 4, this._process();
|
|
6455
|
-
for (var k = this._hash, b = k.words,
|
|
6456
|
-
var B = b[
|
|
6457
|
-
b[
|
|
6455
|
+
for (var k = this._hash, b = k.words, x = 0; x < 4; x++) {
|
|
6456
|
+
var B = b[x];
|
|
6457
|
+
b[x] = (B << 8 | B >>> 24) & 16711935 | (B << 24 | B >>> 8) & 4278255360;
|
|
6458
6458
|
}
|
|
6459
6459
|
return k;
|
|
6460
6460
|
},
|
|
@@ -6699,8 +6699,8 @@ function RT() {
|
|
|
6699
6699
|
*
|
|
6700
6700
|
* var cipher = CryptoJS.algo.AES.createEncryptor(keyWordArray, { iv: ivWordArray });
|
|
6701
6701
|
*/
|
|
6702
|
-
createEncryptor: function(
|
|
6703
|
-
return this.create(this._ENC_XFORM_MODE,
|
|
6702
|
+
createEncryptor: function(T, _) {
|
|
6703
|
+
return this.create(this._ENC_XFORM_MODE, T, _);
|
|
6704
6704
|
},
|
|
6705
6705
|
/**
|
|
6706
6706
|
* Creates this cipher in decryption mode.
|
|
@@ -6716,8 +6716,8 @@ function RT() {
|
|
|
6716
6716
|
*
|
|
6717
6717
|
* var cipher = CryptoJS.algo.AES.createDecryptor(keyWordArray, { iv: ivWordArray });
|
|
6718
6718
|
*/
|
|
6719
|
-
createDecryptor: function(
|
|
6720
|
-
return this.create(this._DEC_XFORM_MODE,
|
|
6719
|
+
createDecryptor: function(T, _) {
|
|
6720
|
+
return this.create(this._DEC_XFORM_MODE, T, _);
|
|
6721
6721
|
},
|
|
6722
6722
|
/**
|
|
6723
6723
|
* Initializes a newly created cipher.
|
|
@@ -6730,8 +6730,8 @@ function RT() {
|
|
|
6730
6730
|
*
|
|
6731
6731
|
* var cipher = CryptoJS.algo.AES.create(CryptoJS.algo.AES._ENC_XFORM_MODE, keyWordArray, { iv: ivWordArray });
|
|
6732
6732
|
*/
|
|
6733
|
-
init: function(
|
|
6734
|
-
this.cfg = this.cfg.extend(I), this._xformMode =
|
|
6733
|
+
init: function(T, _, I) {
|
|
6734
|
+
this.cfg = this.cfg.extend(I), this._xformMode = T, this._key = _, this.reset();
|
|
6735
6735
|
},
|
|
6736
6736
|
/**
|
|
6737
6737
|
* Resets this cipher to its initial state.
|
|
@@ -6755,8 +6755,8 @@ function RT() {
|
|
|
6755
6755
|
* var encrypted = cipher.process('data');
|
|
6756
6756
|
* var encrypted = cipher.process(wordArray);
|
|
6757
6757
|
*/
|
|
6758
|
-
process: function(
|
|
6759
|
-
return this._append(
|
|
6758
|
+
process: function(T) {
|
|
6759
|
+
return this._append(T), this._process();
|
|
6760
6760
|
},
|
|
6761
6761
|
/**
|
|
6762
6762
|
* Finalizes the encryption or decryption process.
|
|
@@ -6772,8 +6772,8 @@ function RT() {
|
|
|
6772
6772
|
* var encrypted = cipher.finalize('data');
|
|
6773
6773
|
* var encrypted = cipher.finalize(wordArray);
|
|
6774
6774
|
*/
|
|
6775
|
-
finalize: function(
|
|
6776
|
-
|
|
6775
|
+
finalize: function(T) {
|
|
6776
|
+
T && this._append(T);
|
|
6777
6777
|
var _ = this._doFinalize();
|
|
6778
6778
|
return _;
|
|
6779
6779
|
},
|
|
@@ -6795,16 +6795,16 @@ function RT() {
|
|
|
6795
6795
|
* var AES = CryptoJS.lib.Cipher._createHelper(CryptoJS.algo.AES);
|
|
6796
6796
|
*/
|
|
6797
6797
|
_createHelper: /* @__PURE__ */ (function() {
|
|
6798
|
-
function
|
|
6798
|
+
function T(_) {
|
|
6799
6799
|
return typeof _ == "string" ? P : b;
|
|
6800
6800
|
}
|
|
6801
6801
|
return function(_) {
|
|
6802
6802
|
return {
|
|
6803
6803
|
encrypt: function(I, N, R) {
|
|
6804
|
-
return
|
|
6804
|
+
return T(N).encrypt(_, I, N, R);
|
|
6805
6805
|
},
|
|
6806
6806
|
decrypt: function(I, N, R) {
|
|
6807
|
-
return
|
|
6807
|
+
return T(N).decrypt(_, I, N, R);
|
|
6808
6808
|
}
|
|
6809
6809
|
};
|
|
6810
6810
|
};
|
|
@@ -6812,8 +6812,8 @@ function RT() {
|
|
|
6812
6812
|
});
|
|
6813
6813
|
s.StreamCipher = d.extend({
|
|
6814
6814
|
_doFinalize: function() {
|
|
6815
|
-
var
|
|
6816
|
-
return
|
|
6815
|
+
var T = this._process(!0);
|
|
6816
|
+
return T;
|
|
6817
6817
|
},
|
|
6818
6818
|
blockSize: 1
|
|
6819
6819
|
});
|
|
@@ -6830,8 +6830,8 @@ function RT() {
|
|
|
6830
6830
|
*
|
|
6831
6831
|
* var mode = CryptoJS.mode.CBC.createEncryptor(cipher, iv.words);
|
|
6832
6832
|
*/
|
|
6833
|
-
createEncryptor: function(
|
|
6834
|
-
return this.Encryptor.create(
|
|
6833
|
+
createEncryptor: function(T, _) {
|
|
6834
|
+
return this.Encryptor.create(T, _);
|
|
6835
6835
|
},
|
|
6836
6836
|
/**
|
|
6837
6837
|
* Creates this mode for decryption.
|
|
@@ -6845,8 +6845,8 @@ function RT() {
|
|
|
6845
6845
|
*
|
|
6846
6846
|
* var mode = CryptoJS.mode.CBC.createDecryptor(cipher, iv.words);
|
|
6847
6847
|
*/
|
|
6848
|
-
createDecryptor: function(
|
|
6849
|
-
return this.Decryptor.create(
|
|
6848
|
+
createDecryptor: function(T, _) {
|
|
6849
|
+
return this.Decryptor.create(T, _);
|
|
6850
6850
|
},
|
|
6851
6851
|
/**
|
|
6852
6852
|
* Initializes a newly created mode.
|
|
@@ -6858,12 +6858,12 @@ function RT() {
|
|
|
6858
6858
|
*
|
|
6859
6859
|
* var mode = CryptoJS.mode.CBC.Encryptor.create(cipher, iv.words);
|
|
6860
6860
|
*/
|
|
6861
|
-
init: function(
|
|
6862
|
-
this._cipher =
|
|
6861
|
+
init: function(T, _) {
|
|
6862
|
+
this._cipher = T, this._iv = _;
|
|
6863
6863
|
}
|
|
6864
6864
|
}), v = h.CBC = (function() {
|
|
6865
|
-
var
|
|
6866
|
-
|
|
6865
|
+
var T = p.extend();
|
|
6866
|
+
T.Encryptor = T.extend({
|
|
6867
6867
|
/**
|
|
6868
6868
|
* Processes the data block at offset.
|
|
6869
6869
|
*
|
|
@@ -6878,7 +6878,7 @@ function RT() {
|
|
|
6878
6878
|
var R = this._cipher, L = R.blockSize;
|
|
6879
6879
|
_.call(this, I, N, L), R.encryptBlock(I, N), this._prevBlock = I.slice(N, N + L);
|
|
6880
6880
|
}
|
|
6881
|
-
}),
|
|
6881
|
+
}), T.Decryptor = T.extend({
|
|
6882
6882
|
/**
|
|
6883
6883
|
* Processes the data block at offset.
|
|
6884
6884
|
*
|
|
@@ -6900,7 +6900,7 @@ function RT() {
|
|
|
6900
6900
|
for (var z = 0; z < R; z++)
|
|
6901
6901
|
I[N + z] ^= L[z];
|
|
6902
6902
|
}
|
|
6903
|
-
return
|
|
6903
|
+
return T;
|
|
6904
6904
|
})(), y = r.pad = {}, C = y.Pkcs7 = {
|
|
6905
6905
|
/**
|
|
6906
6906
|
* Pads data using the algorithm defined in PKCS #5/7.
|
|
@@ -6914,11 +6914,11 @@ function RT() {
|
|
|
6914
6914
|
*
|
|
6915
6915
|
* CryptoJS.pad.Pkcs7.pad(wordArray, 4);
|
|
6916
6916
|
*/
|
|
6917
|
-
pad: function(
|
|
6918
|
-
for (var I = _ * 4, N = I -
|
|
6917
|
+
pad: function(T, _) {
|
|
6918
|
+
for (var I = _ * 4, N = I - T.sigBytes % I, R = N << 24 | N << 16 | N << 8 | N, L = [], W = 0; W < N; W += 4)
|
|
6919
6919
|
L.push(R);
|
|
6920
6920
|
var z = o.create(L, N);
|
|
6921
|
-
|
|
6921
|
+
T.concat(z);
|
|
6922
6922
|
},
|
|
6923
6923
|
/**
|
|
6924
6924
|
* Unpads data that had been padded using the algorithm defined in PKCS #5/7.
|
|
@@ -6931,9 +6931,9 @@ function RT() {
|
|
|
6931
6931
|
*
|
|
6932
6932
|
* CryptoJS.pad.Pkcs7.unpad(wordArray);
|
|
6933
6933
|
*/
|
|
6934
|
-
unpad: function(
|
|
6935
|
-
var _ =
|
|
6936
|
-
|
|
6934
|
+
unpad: function(T) {
|
|
6935
|
+
var _ = T.words[T.sigBytes - 1 >>> 2] & 255;
|
|
6936
|
+
T.sigBytes -= _;
|
|
6937
6937
|
}
|
|
6938
6938
|
};
|
|
6939
6939
|
s.BlockCipher = d.extend({
|
|
@@ -6948,17 +6948,17 @@ function RT() {
|
|
|
6948
6948
|
padding: C
|
|
6949
6949
|
}),
|
|
6950
6950
|
reset: function() {
|
|
6951
|
-
var
|
|
6951
|
+
var T;
|
|
6952
6952
|
d.reset.call(this);
|
|
6953
6953
|
var _ = this.cfg, I = _.iv, N = _.mode;
|
|
6954
|
-
this._xformMode == this._ENC_XFORM_MODE ?
|
|
6954
|
+
this._xformMode == this._ENC_XFORM_MODE ? T = N.createEncryptor : (T = N.createDecryptor, this._minBufferSize = 1), this._mode && this._mode.__creator == T ? this._mode.init(this, I && I.words) : (this._mode = T.call(N, this, I && I.words), this._mode.__creator = T);
|
|
6955
6955
|
},
|
|
6956
|
-
_doProcessBlock: function(
|
|
6957
|
-
this._mode.processBlock(
|
|
6956
|
+
_doProcessBlock: function(T, _) {
|
|
6957
|
+
this._mode.processBlock(T, _);
|
|
6958
6958
|
},
|
|
6959
6959
|
_doFinalize: function() {
|
|
6960
|
-
var
|
|
6961
|
-
return this._xformMode == this._ENC_XFORM_MODE ? (_.pad(this._data, this.blockSize),
|
|
6960
|
+
var T, _ = this.cfg.padding;
|
|
6961
|
+
return this._xformMode == this._ENC_XFORM_MODE ? (_.pad(this._data, this.blockSize), T = this._process(!0)) : (T = this._process(!0), _.unpad(T)), T;
|
|
6962
6962
|
},
|
|
6963
6963
|
blockSize: 128 / 32
|
|
6964
6964
|
});
|
|
@@ -6982,8 +6982,8 @@ function RT() {
|
|
|
6982
6982
|
* formatter: CryptoJS.format.OpenSSL
|
|
6983
6983
|
* });
|
|
6984
6984
|
*/
|
|
6985
|
-
init: function(
|
|
6986
|
-
this.mixIn(
|
|
6985
|
+
init: function(T) {
|
|
6986
|
+
this.mixIn(T);
|
|
6987
6987
|
},
|
|
6988
6988
|
/**
|
|
6989
6989
|
* Converts this cipher params object to a string.
|
|
@@ -7000,8 +7000,8 @@ function RT() {
|
|
|
7000
7000
|
* var string = cipherParams.toString();
|
|
7001
7001
|
* var string = cipherParams.toString(CryptoJS.format.OpenSSL);
|
|
7002
7002
|
*/
|
|
7003
|
-
toString: function(
|
|
7004
|
-
return (
|
|
7003
|
+
toString: function(T) {
|
|
7004
|
+
return (T || this.formatter).stringify(this);
|
|
7005
7005
|
}
|
|
7006
7006
|
}), E = r.format = {}, k = E.OpenSSL = {
|
|
7007
7007
|
/**
|
|
@@ -7017,8 +7017,8 @@ function RT() {
|
|
|
7017
7017
|
*
|
|
7018
7018
|
* var openSSLString = CryptoJS.format.OpenSSL.stringify(cipherParams);
|
|
7019
7019
|
*/
|
|
7020
|
-
stringify: function(
|
|
7021
|
-
var _, I =
|
|
7020
|
+
stringify: function(T) {
|
|
7021
|
+
var _, I = T.ciphertext, N = T.salt;
|
|
7022
7022
|
return N ? _ = o.create([1398893684, 1701076831]).concat(N).concat(I) : _ = I, _.toString(c);
|
|
7023
7023
|
},
|
|
7024
7024
|
/**
|
|
@@ -7034,8 +7034,8 @@ function RT() {
|
|
|
7034
7034
|
*
|
|
7035
7035
|
* var cipherParams = CryptoJS.format.OpenSSL.parse(openSSLString);
|
|
7036
7036
|
*/
|
|
7037
|
-
parse: function(
|
|
7038
|
-
var _, I = c.parse(
|
|
7037
|
+
parse: function(T) {
|
|
7038
|
+
var _, I = c.parse(T), N = I.words;
|
|
7039
7039
|
return N[0] == 1398893684 && N[1] == 1701076831 && (_ = o.create(N.slice(2, 4)), N.splice(0, 4), I.sigBytes -= 16), w.create({ ciphertext: I, salt: _ });
|
|
7040
7040
|
}
|
|
7041
7041
|
}, b = s.SerializableCipher = a.extend({
|
|
@@ -7065,17 +7065,17 @@ function RT() {
|
|
|
7065
7065
|
* var ciphertextParams = CryptoJS.lib.SerializableCipher.encrypt(CryptoJS.algo.AES, message, key, { iv: iv });
|
|
7066
7066
|
* var ciphertextParams = CryptoJS.lib.SerializableCipher.encrypt(CryptoJS.algo.AES, message, key, { iv: iv, format: CryptoJS.format.OpenSSL });
|
|
7067
7067
|
*/
|
|
7068
|
-
encrypt: function(
|
|
7068
|
+
encrypt: function(T, _, I, N) {
|
|
7069
7069
|
N = this.cfg.extend(N);
|
|
7070
|
-
var R =
|
|
7070
|
+
var R = T.createEncryptor(I, N), L = R.finalize(_), W = R.cfg;
|
|
7071
7071
|
return w.create({
|
|
7072
7072
|
ciphertext: L,
|
|
7073
7073
|
key: I,
|
|
7074
7074
|
iv: W.iv,
|
|
7075
|
-
algorithm:
|
|
7075
|
+
algorithm: T,
|
|
7076
7076
|
mode: W.mode,
|
|
7077
7077
|
padding: W.padding,
|
|
7078
|
-
blockSize:
|
|
7078
|
+
blockSize: T.blockSize,
|
|
7079
7079
|
formatter: N.format
|
|
7080
7080
|
});
|
|
7081
7081
|
},
|
|
@@ -7096,9 +7096,9 @@ function RT() {
|
|
|
7096
7096
|
* var plaintext = CryptoJS.lib.SerializableCipher.decrypt(CryptoJS.algo.AES, formattedCiphertext, key, { iv: iv, format: CryptoJS.format.OpenSSL });
|
|
7097
7097
|
* var plaintext = CryptoJS.lib.SerializableCipher.decrypt(CryptoJS.algo.AES, ciphertextParams, key, { iv: iv, format: CryptoJS.format.OpenSSL });
|
|
7098
7098
|
*/
|
|
7099
|
-
decrypt: function(
|
|
7099
|
+
decrypt: function(T, _, I, N) {
|
|
7100
7100
|
N = this.cfg.extend(N), _ = this._parse(_, N.format);
|
|
7101
|
-
var R =
|
|
7101
|
+
var R = T.createDecryptor(I, N).finalize(_.ciphertext);
|
|
7102
7102
|
return R;
|
|
7103
7103
|
},
|
|
7104
7104
|
/**
|
|
@@ -7116,10 +7116,10 @@ function RT() {
|
|
|
7116
7116
|
*
|
|
7117
7117
|
* var ciphertextParams = CryptoJS.lib.SerializableCipher._parse(ciphertextStringOrParams, format);
|
|
7118
7118
|
*/
|
|
7119
|
-
_parse: function(
|
|
7120
|
-
return typeof
|
|
7119
|
+
_parse: function(T, _) {
|
|
7120
|
+
return typeof T == "string" ? _.parse(T, this) : T;
|
|
7121
7121
|
}
|
|
7122
|
-
}),
|
|
7122
|
+
}), x = r.kdf = {}, B = x.OpenSSL = {
|
|
7123
7123
|
/**
|
|
7124
7124
|
* Derives a key and IV from a password.
|
|
7125
7125
|
*
|
|
@@ -7137,11 +7137,11 @@ function RT() {
|
|
|
7137
7137
|
* var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32);
|
|
7138
7138
|
* var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32, 'saltsalt');
|
|
7139
7139
|
*/
|
|
7140
|
-
execute: function(
|
|
7140
|
+
execute: function(T, _, I, N, R) {
|
|
7141
7141
|
if (N || (N = o.random(64 / 8)), R)
|
|
7142
|
-
var L = f.create({ keySize: _ + I, hasher: R }).compute(
|
|
7142
|
+
var L = f.create({ keySize: _ + I, hasher: R }).compute(T, N);
|
|
7143
7143
|
else
|
|
7144
|
-
var L = f.create({ keySize: _ + I }).compute(
|
|
7144
|
+
var L = f.create({ keySize: _ + I }).compute(T, N);
|
|
7145
7145
|
var W = o.create(L.words.slice(_), I * 4);
|
|
7146
7146
|
return L.sigBytes = _ * 4, w.create({ key: L, iv: W, salt: N });
|
|
7147
7147
|
}
|
|
@@ -7171,11 +7171,11 @@ function RT() {
|
|
|
7171
7171
|
* var ciphertextParams = CryptoJS.lib.PasswordBasedCipher.encrypt(CryptoJS.algo.AES, message, 'password');
|
|
7172
7172
|
* var ciphertextParams = CryptoJS.lib.PasswordBasedCipher.encrypt(CryptoJS.algo.AES, message, 'password', { format: CryptoJS.format.OpenSSL });
|
|
7173
7173
|
*/
|
|
7174
|
-
encrypt: function(
|
|
7174
|
+
encrypt: function(T, _, I, N) {
|
|
7175
7175
|
N = this.cfg.extend(N);
|
|
7176
|
-
var R = N.kdf.execute(I,
|
|
7176
|
+
var R = N.kdf.execute(I, T.keySize, T.ivSize, N.salt, N.hasher);
|
|
7177
7177
|
N.iv = R.iv;
|
|
7178
|
-
var L = b.encrypt.call(this,
|
|
7178
|
+
var L = b.encrypt.call(this, T, _, R.key, N);
|
|
7179
7179
|
return L.mixIn(R), L;
|
|
7180
7180
|
},
|
|
7181
7181
|
/**
|
|
@@ -7195,11 +7195,11 @@ function RT() {
|
|
|
7195
7195
|
* var plaintext = CryptoJS.lib.PasswordBasedCipher.decrypt(CryptoJS.algo.AES, formattedCiphertext, 'password', { format: CryptoJS.format.OpenSSL });
|
|
7196
7196
|
* var plaintext = CryptoJS.lib.PasswordBasedCipher.decrypt(CryptoJS.algo.AES, ciphertextParams, 'password', { format: CryptoJS.format.OpenSSL });
|
|
7197
7197
|
*/
|
|
7198
|
-
decrypt: function(
|
|
7198
|
+
decrypt: function(T, _, I, N) {
|
|
7199
7199
|
N = this.cfg.extend(N), _ = this._parse(_, N.format);
|
|
7200
|
-
var R = N.kdf.execute(I,
|
|
7200
|
+
var R = N.kdf.execute(I, T.keySize, T.ivSize, _.salt, N.hasher);
|
|
7201
7201
|
N.iv = R.iv;
|
|
7202
|
-
var L = b.decrypt.call(this,
|
|
7202
|
+
var L = b.decrypt.call(this, T, _, R.key, N);
|
|
7203
7203
|
return L;
|
|
7204
7204
|
}
|
|
7205
7205
|
});
|
|
@@ -7219,27 +7219,27 @@ function PT() {
|
|
|
7219
7219
|
for (var w = [], E = 0; E < 256; E++)
|
|
7220
7220
|
E < 128 ? w[E] = E << 1 : w[E] = E << 1 ^ 283;
|
|
7221
7221
|
for (var k = 0, b = 0, E = 0; E < 256; E++) {
|
|
7222
|
-
var
|
|
7223
|
-
|
|
7224
|
-
var B = w[k], P = w[B],
|
|
7222
|
+
var x = b ^ b << 1 ^ b << 2 ^ b << 3 ^ b << 4;
|
|
7223
|
+
x = x >>> 8 ^ x & 255 ^ 99, o[k] = x, A[x] = k;
|
|
7224
|
+
var B = w[k], P = w[B], T = w[P], _ = w[x] * 257 ^ x * 16843008;
|
|
7225
7225
|
u[k] = _ << 24 | _ >>> 8, c[k] = _ << 16 | _ >>> 16, l[k] = _ << 8 | _ >>> 24, f[k] = _;
|
|
7226
|
-
var _ =
|
|
7227
|
-
d[
|
|
7226
|
+
var _ = T * 16843009 ^ P * 65537 ^ B * 257 ^ k * 16843008;
|
|
7227
|
+
d[x] = _ << 24 | _ >>> 8, h[x] = _ << 16 | _ >>> 16, p[x] = _ << 8 | _ >>> 24, v[x] = _, k ? (k = B ^ w[w[w[T ^ B]]], b ^= w[w[b]]) : k = b = 1;
|
|
7228
7228
|
}
|
|
7229
7229
|
})();
|
|
7230
7230
|
var y = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54], C = a.AES = s.extend({
|
|
7231
7231
|
_doReset: function() {
|
|
7232
7232
|
var w;
|
|
7233
7233
|
if (!(this._nRounds && this._keyPriorReset === this._key)) {
|
|
7234
|
-
for (var E = this._keyPriorReset = this._key, k = E.words, b = E.sigBytes / 4,
|
|
7235
|
-
|
|
7234
|
+
for (var E = this._keyPriorReset = this._key, k = E.words, b = E.sigBytes / 4, x = this._nRounds = b + 6, B = (x + 1) * 4, P = this._keySchedule = [], T = 0; T < B; T++)
|
|
7235
|
+
T < b ? P[T] = k[T] : (w = P[T - 1], T % b ? b > 6 && T % b == 4 && (w = o[w >>> 24] << 24 | o[w >>> 16 & 255] << 16 | o[w >>> 8 & 255] << 8 | o[w & 255]) : (w = w << 8 | w >>> 24, w = o[w >>> 24] << 24 | o[w >>> 16 & 255] << 16 | o[w >>> 8 & 255] << 8 | o[w & 255], w ^= y[T / b | 0] << 24), P[T] = P[T - b] ^ w);
|
|
7236
7236
|
for (var _ = this._invKeySchedule = [], I = 0; I < B; I++) {
|
|
7237
|
-
var
|
|
7237
|
+
var T = B - I;
|
|
7238
7238
|
if (I % 4)
|
|
7239
|
-
var w = P[
|
|
7239
|
+
var w = P[T];
|
|
7240
7240
|
else
|
|
7241
|
-
var w = P[
|
|
7242
|
-
I < 4 ||
|
|
7241
|
+
var w = P[T - 4];
|
|
7242
|
+
I < 4 || T <= 4 ? _[I] = w : _[I] = d[o[w >>> 24]] ^ h[o[w >>> 16 & 255]] ^ p[o[w >>> 8 & 255]] ^ v[o[w & 255]];
|
|
7243
7243
|
}
|
|
7244
7244
|
}
|
|
7245
7245
|
},
|
|
@@ -7252,12 +7252,12 @@ function PT() {
|
|
|
7252
7252
|
var k = w[E + 1];
|
|
7253
7253
|
w[E + 1] = w[E + 3], w[E + 3] = k;
|
|
7254
7254
|
},
|
|
7255
|
-
_doCryptBlock: function(w, E, k, b,
|
|
7255
|
+
_doCryptBlock: function(w, E, k, b, x, B, P, T) {
|
|
7256
7256
|
for (var _ = this._nRounds, I = w[E] ^ k[0], N = w[E + 1] ^ k[1], R = w[E + 2] ^ k[2], L = w[E + 3] ^ k[3], W = 4, z = 1; z < _; z++) {
|
|
7257
|
-
var V = b[I >>> 24] ^
|
|
7257
|
+
var V = b[I >>> 24] ^ x[N >>> 16 & 255] ^ B[R >>> 8 & 255] ^ P[L & 255] ^ k[W++], $ = b[N >>> 24] ^ x[R >>> 16 & 255] ^ B[L >>> 8 & 255] ^ P[I & 255] ^ k[W++], D = b[R >>> 24] ^ x[L >>> 16 & 255] ^ B[I >>> 8 & 255] ^ P[N & 255] ^ k[W++], H = b[L >>> 24] ^ x[I >>> 16 & 255] ^ B[N >>> 8 & 255] ^ P[R & 255] ^ k[W++];
|
|
7258
7258
|
I = V, N = $, R = D, L = H;
|
|
7259
7259
|
}
|
|
7260
|
-
var V = (
|
|
7260
|
+
var V = (T[I >>> 24] << 24 | T[N >>> 16 & 255] << 16 | T[R >>> 8 & 255] << 8 | T[L & 255]) ^ k[W++], $ = (T[N >>> 24] << 24 | T[R >>> 16 & 255] << 16 | T[L >>> 8 & 255] << 8 | T[I & 255]) ^ k[W++], D = (T[R >>> 24] << 24 | T[L >>> 16 & 255] << 16 | T[I >>> 8 & 255] << 8 | T[N & 255]) ^ k[W++], H = (T[L >>> 24] << 24 | T[I >>> 16 & 255] << 16 | T[N >>> 8 & 255] << 8 | T[R & 255]) ^ k[W++];
|
|
7261
7261
|
w[E] = V, w[E + 1] = $, w[E + 2] = D, w[E + 3] = H;
|
|
7262
7262
|
},
|
|
7263
7263
|
keySize: 256 / 32
|
|
@@ -9255,11 +9255,11 @@ const Z2 = (e) => {
|
|
|
9255
9255
|
request: v
|
|
9256
9256
|
};
|
|
9257
9257
|
X2(
|
|
9258
|
-
function(
|
|
9259
|
-
n(
|
|
9258
|
+
function(x) {
|
|
9259
|
+
n(x), p();
|
|
9260
9260
|
},
|
|
9261
|
-
function(
|
|
9262
|
-
i(
|
|
9261
|
+
function(x) {
|
|
9262
|
+
i(x), p();
|
|
9263
9263
|
},
|
|
9264
9264
|
k
|
|
9265
9265
|
), v = null;
|
|
@@ -9458,12 +9458,12 @@ const Z2 = (e) => {
|
|
|
9458
9458
|
timeout: E,
|
|
9459
9459
|
onDownloadProgress: k,
|
|
9460
9460
|
onUploadProgress: b,
|
|
9461
|
-
responseType:
|
|
9461
|
+
responseType: x,
|
|
9462
9462
|
headers: B,
|
|
9463
9463
|
withCredentials: P = "same-origin",
|
|
9464
|
-
fetchOptions:
|
|
9464
|
+
fetchOptions: T
|
|
9465
9465
|
} = Z2(h), _ = t || fetch;
|
|
9466
|
-
|
|
9466
|
+
x = x ? (x + "").toLowerCase() : "text";
|
|
9467
9467
|
let I = P5(
|
|
9468
9468
|
[C, w && w.toAbortSignal()],
|
|
9469
9469
|
E
|
|
@@ -9489,7 +9489,7 @@ const Z2 = (e) => {
|
|
|
9489
9489
|
}
|
|
9490
9490
|
q.isString(P) || (P = P ? "include" : "omit");
|
|
9491
9491
|
const W = s && "credentials" in n.prototype, z = {
|
|
9492
|
-
...
|
|
9492
|
+
...T,
|
|
9493
9493
|
signal: I,
|
|
9494
9494
|
method: v.toUpperCase(),
|
|
9495
9495
|
headers: B.normalize().toJSON(),
|
|
@@ -9498,8 +9498,8 @@ const Z2 = (e) => {
|
|
|
9498
9498
|
credentials: W ? P : void 0
|
|
9499
9499
|
};
|
|
9500
9500
|
N = s && new n(p, z);
|
|
9501
|
-
let V = await (s ? _(N,
|
|
9502
|
-
const $ = c && (
|
|
9501
|
+
let V = await (s ? _(N, T) : _(p, z));
|
|
9502
|
+
const $ = c && (x === "stream" || x === "response");
|
|
9503
9503
|
if (c && (k || $ && R)) {
|
|
9504
9504
|
const H = {};
|
|
9505
9505
|
["status", "statusText", "headers"].forEach((re) => {
|
|
@@ -9516,8 +9516,8 @@ const Z2 = (e) => {
|
|
|
9516
9516
|
H
|
|
9517
9517
|
);
|
|
9518
9518
|
}
|
|
9519
|
-
|
|
9520
|
-
let D = await l[q.findKey(l,
|
|
9519
|
+
x = x || "text";
|
|
9520
|
+
let D = await l[q.findKey(l, x) || "text"](
|
|
9521
9521
|
V,
|
|
9522
9522
|
h
|
|
9523
9523
|
);
|
|
@@ -10085,7 +10085,7 @@ Je.interceptors.response.use(
|
|
|
10085
10085
|
}
|
|
10086
10086
|
}
|
|
10087
10087
|
);
|
|
10088
|
-
const J5 =
|
|
10088
|
+
const J5 = 6e4;
|
|
10089
10089
|
let fs = null, $c = "", el = null, H0 = 0, j0 = "";
|
|
10090
10090
|
async function ru() {
|
|
10091
10091
|
const e = K.getState().chatSettingStore.user.token || "", t = Date.now();
|
|
@@ -10400,11 +10400,11 @@ const dA = new sI(), Oo = (e) => e ? String(e).split("@")[0] : "", oy = (e) => {
|
|
|
10400
10400
|
const p = K.getState(), v = p.rooms.rooms[l], y = p.rooms.activeRoomJID, C = aI(y, l), w = p.chatSettingStore.user?.xmppUsername, E = e.attrs.from?.split("/")[1] || "", k = !!w && E === w, b = oI(
|
|
10401
10401
|
A.user?.id,
|
|
10402
10402
|
w
|
|
10403
|
-
),
|
|
10403
|
+
), x = k, B = A.isSystemMessage === "true", P = A.isHistory, T = window._ethoraAppLoadTime || Date.now(), _ = Date.now() - T < 2e3, I = uI({
|
|
10404
10404
|
config: p.chatSettingStore.config,
|
|
10405
10405
|
tabVisible: document.visibilityState === "visible",
|
|
10406
10406
|
activeRoom: C,
|
|
10407
|
-
currentUserMessage:
|
|
10407
|
+
currentUserMessage: x,
|
|
10408
10408
|
isSystem: B,
|
|
10409
10409
|
isHistory: P,
|
|
10410
10410
|
isCatchup: _
|
|
@@ -10423,7 +10423,7 @@ const dA = new sI(), Oo = (e) => e ? String(e).split("@")[0] : "", oy = (e) => {
|
|
|
10423
10423
|
`[NotifyPolicy] source=xmpp action=show reason=${I.reason} msgId=${A.id} room=${l} sender=${A.user?.id} activeRoom=${C} history=${P} catchup=${_}`
|
|
10424
10424
|
);
|
|
10425
10425
|
} else p.chatSettingStore.config?.useStoreConsoleEnabled && Z.log(
|
|
10426
|
-
`[NotifyPolicy] source=xmpp action=skip reason=${I.reason} msgId=${A.id} room=${l} sender=${A.user?.id} activeRoom=${C} currentUser=${
|
|
10426
|
+
`[NotifyPolicy] source=xmpp action=skip reason=${I.reason} msgId=${A.id} room=${l} sender=${A.user?.id} activeRoom=${C} currentUser=${x} system=${B} pendingEcho=${h} looksLikeCurrent=${b} history=${P} catchup=${_}`
|
|
10427
10427
|
);
|
|
10428
10428
|
return A;
|
|
10429
10429
|
}
|
|
@@ -14886,7 +14886,7 @@ const Ky = (e = {}) => {
|
|
|
14886
14886
|
), u = Qe(), c = be(!1), l = be(null), [f, d] = le(null), h = be(/* @__PURE__ */ new Map()), p = be(""), v = be(/* @__PURE__ */ new Set()), y = be(/* @__PURE__ */ new Map()), C = be(!1), w = be(!1), E = be(""), k = be(/* @__PURE__ */ new Map()), b = he(
|
|
14887
14887
|
(I) => sC(I, o?.xmppSettings?.conference),
|
|
14888
14888
|
[o?.xmppSettings?.conference]
|
|
14889
|
-
),
|
|
14889
|
+
), x = he((I) => {
|
|
14890
14890
|
if (!I || typeof document > "u") return;
|
|
14891
14891
|
const N = document.querySelector(
|
|
14892
14892
|
`[data-message-id="${I}"]`
|
|
@@ -14904,10 +14904,10 @@ const Ky = (e = {}) => {
|
|
|
14904
14904
|
source: "active"
|
|
14905
14905
|
}).catch(() => {
|
|
14906
14906
|
}).finally(() => {
|
|
14907
|
-
N && setTimeout(() =>
|
|
14907
|
+
N && setTimeout(() => x(N), 200);
|
|
14908
14908
|
}));
|
|
14909
14909
|
},
|
|
14910
|
-
[
|
|
14910
|
+
[x]
|
|
14911
14911
|
), P = he(
|
|
14912
14912
|
async (I, N) => {
|
|
14913
14913
|
const R = I?.data ?? I?.payload?.data ?? {}, L = R.jid || R.roomJid || I?.roomJid || "", W = b(L), z = R.msgID || R.messageId || I?.messageId || I?.msgID, V = R.url || I?.url;
|
|
@@ -14938,7 +14938,7 @@ const Ky = (e = {}) => {
|
|
|
14938
14938
|
W && (u(et({ roomJID: W })), B(W, z ? String(z) : void 0));
|
|
14939
14939
|
},
|
|
14940
14940
|
[o?.pushNotifications?.onClick, u, B, b, e.onClick]
|
|
14941
|
-
),
|
|
14941
|
+
), T = he(async () => {
|
|
14942
14942
|
if (n) {
|
|
14943
14943
|
if (ds) {
|
|
14944
14944
|
o?.useStoreConsoleEnabled && Z.log("[PushNotifications] Already subscribed this session, skipping.");
|
|
@@ -15075,16 +15075,16 @@ const Ky = (e = {}) => {
|
|
|
15075
15075
|
}, [n, P]), ge(() => {
|
|
15076
15076
|
(!r || E.current !== s) && (c.current = !1, l.current = null, d(null), Gf(""), p.current = "", w.current = !1, ds = !1, nr = null), E.current = s || "";
|
|
15077
15077
|
}, [r, s]), ge(() => {
|
|
15078
|
-
r && (t || c.current || (c.current = !0,
|
|
15079
|
-
}, [r, t,
|
|
15078
|
+
r && (t || c.current || (c.current = !0, T()));
|
|
15079
|
+
}, [r, t, T]), ge(() => {
|
|
15080
15080
|
if (!n || !r || t || typeof window > "u" || typeof Notification > "u") return;
|
|
15081
15081
|
const I = () => {
|
|
15082
|
-
ds || Notification.permission === "granted" &&
|
|
15082
|
+
ds || Notification.permission === "granted" && T();
|
|
15083
15083
|
};
|
|
15084
15084
|
return window.addEventListener("focus", I), document.addEventListener("visibilitychange", I), () => {
|
|
15085
15085
|
window.removeEventListener("focus", I), document.removeEventListener("visibilitychange", I);
|
|
15086
15086
|
};
|
|
15087
|
-
}, [n, t, r,
|
|
15087
|
+
}, [n, t, r, T]), ge(() => {
|
|
15088
15088
|
if (!n || !f) return;
|
|
15089
15089
|
const I = Object.keys(a || {}).filter(Boolean).sort(), N = I.map((W) => `${W}:${A[W] || "idle"}`).join(",");
|
|
15090
15090
|
if (N === p.current)
|
|
@@ -15125,8 +15125,8 @@ const Ky = (e = {}) => {
|
|
|
15125
15125
|
}
|
|
15126
15126
|
})();
|
|
15127
15127
|
}, [n, a, f, u, A]), { requestPermission: he(async () => {
|
|
15128
|
-
c.current = !1, ds = !1, await
|
|
15129
|
-
}, [
|
|
15128
|
+
c.current = !1, ds = !1, await T();
|
|
15129
|
+
}, [T]) };
|
|
15130
15130
|
}, Zy = (e, t) => {
|
|
15131
15131
|
if (e && e && Object.keys(e).length > 0) {
|
|
15132
15132
|
const n = Object.entries(e).map(
|
|
@@ -15225,11 +15225,11 @@ const Ky = (e = {}) => {
|
|
|
15225
15225
|
})
|
|
15226
15226
|
), await Promise.all(
|
|
15227
15227
|
w.map(async (E) => {
|
|
15228
|
-
const k = h.findIndex((
|
|
15228
|
+
const k = h.findIndex((x) => x.jid === E.jid);
|
|
15229
15229
|
k !== -1 && h.splice(k, 1);
|
|
15230
15230
|
const b = (async () => {
|
|
15231
|
-
const
|
|
15232
|
-
if (!
|
|
15231
|
+
const x = K.getState().rooms.rooms[E.jid];
|
|
15232
|
+
if (!x || !u && x.historyPreloadState === "done") {
|
|
15233
15233
|
K.dispatch(
|
|
15234
15234
|
qa({
|
|
15235
15235
|
rooms: [
|
|
@@ -15257,7 +15257,7 @@ const Ky = (e = {}) => {
|
|
|
15257
15257
|
if (n?.aborted) return;
|
|
15258
15258
|
if (typeof B > "u")
|
|
15259
15259
|
throw new Error("history_timeout");
|
|
15260
|
-
const P = K.getState().rooms.rooms[E.jid],
|
|
15260
|
+
const P = K.getState().rooms.rooms[E.jid], T = yN(
|
|
15261
15261
|
P,
|
|
15262
15262
|
B,
|
|
15263
15263
|
r
|
|
@@ -15268,7 +15268,7 @@ const Ky = (e = {}) => {
|
|
|
15268
15268
|
{
|
|
15269
15269
|
jid: E.jid,
|
|
15270
15270
|
messages: B,
|
|
15271
|
-
unreadCapped:
|
|
15271
|
+
unreadCapped: T,
|
|
15272
15272
|
historyPreloadState: "done"
|
|
15273
15273
|
}
|
|
15274
15274
|
]
|
|
@@ -15277,7 +15277,7 @@ const Ky = (e = {}) => {
|
|
|
15277
15277
|
} catch {
|
|
15278
15278
|
const B = E.attempts + 1;
|
|
15279
15279
|
if (B <= s) {
|
|
15280
|
-
const
|
|
15280
|
+
const T = Math.floor(Math.random() * 120), _ = Math.min(1600, 240 * 2 ** E.attempts) + T;
|
|
15281
15281
|
h.push({
|
|
15282
15282
|
...E,
|
|
15283
15283
|
attempts: B,
|
|
@@ -16007,14 +16007,14 @@ class Zt {
|
|
|
16007
16007
|
}
|
|
16008
16008
|
static _fromJSON(t, n) {
|
|
16009
16009
|
var i, r, s, a, o, A, u, c;
|
|
16010
|
-
const l = (i = n.displayName) !== null && i !== void 0 ? i : void 0, f = (r = n.email) !== null && r !== void 0 ? r : void 0, d = (s = n.phoneNumber) !== null && s !== void 0 ? s : void 0, h = (a = n.photoURL) !== null && a !== void 0 ? a : void 0, p = (o = n.tenantId) !== null && o !== void 0 ? o : void 0, v = (A = n._redirectEventId) !== null && A !== void 0 ? A : void 0, y = (u = n.createdAt) !== null && u !== void 0 ? u : void 0, C = (c = n.lastLoginAt) !== null && c !== void 0 ? c : void 0, { uid: w, emailVerified: E, isAnonymous: k, providerData: b, stsTokenManager:
|
|
16010
|
+
const l = (i = n.displayName) !== null && i !== void 0 ? i : void 0, f = (r = n.email) !== null && r !== void 0 ? r : void 0, d = (s = n.phoneNumber) !== null && s !== void 0 ? s : void 0, h = (a = n.photoURL) !== null && a !== void 0 ? a : void 0, p = (o = n.tenantId) !== null && o !== void 0 ? o : void 0, v = (A = n._redirectEventId) !== null && A !== void 0 ? A : void 0, y = (u = n.createdAt) !== null && u !== void 0 ? u : void 0, C = (c = n.lastLoginAt) !== null && c !== void 0 ? c : void 0, { uid: w, emailVerified: E, isAnonymous: k, providerData: b, stsTokenManager: x } = n;
|
|
16011
16011
|
Ee(
|
|
16012
|
-
w &&
|
|
16012
|
+
w && x,
|
|
16013
16013
|
t,
|
|
16014
16014
|
"internal-error"
|
|
16015
16015
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
16016
16016
|
);
|
|
16017
|
-
const B = hr.fromJSON(this.name,
|
|
16017
|
+
const B = hr.fromJSON(this.name, x);
|
|
16018
16018
|
Ee(
|
|
16019
16019
|
typeof w == "string",
|
|
16020
16020
|
t,
|
|
@@ -16045,7 +16045,7 @@ class Zt {
|
|
|
16045
16045
|
createdAt: y,
|
|
16046
16046
|
lastLoginAt: C
|
|
16047
16047
|
});
|
|
16048
|
-
return b && Array.isArray(b) && (P.providerData = b.map((
|
|
16048
|
+
return b && Array.isArray(b) && (P.providerData = b.map((T) => Object.assign({}, T))), v && (P._redirectEventId = v), P;
|
|
16049
16049
|
}
|
|
16050
16050
|
/**
|
|
16051
16051
|
* Initialize a User from an idToken server response
|
|
@@ -18881,21 +18881,20 @@ const IB = (e) => {
|
|
|
18881
18881
|
}) => {
|
|
18882
18882
|
const [i, r] = le(null), [s, a] = le("idle"), [o, A] = le(null), [u, c] = le(null), [l, f] = le(0), d = be(null), h = be(null), p = be(null), v = he(() => {
|
|
18883
18883
|
r(null), Lf(null), A(null), c(null), f(0), d.current = null;
|
|
18884
|
-
}, []), y = async (b,
|
|
18884
|
+
}, []), y = async (b, x) => {
|
|
18885
18885
|
const P = (await ru().catch(() => ({ items: [] })))?.items || [];
|
|
18886
|
-
return
|
|
18887
|
-
|
|
18886
|
+
return P.length ? (P.forEach((T) => {
|
|
18887
|
+
K.dispatch(
|
|
18888
18888
|
ga({
|
|
18889
|
-
room: Ca(
|
|
18889
|
+
room: Ca(T, t?.xmppSettings?.conference),
|
|
18890
18890
|
xmpp: b
|
|
18891
18891
|
})
|
|
18892
18892
|
);
|
|
18893
|
-
}), K.dispatch(Zd({ rooms: P })), P);
|
|
18894
|
-
}, C = async (b,
|
|
18895
|
-
|
|
18896
|
-
|
|
18897
|
-
|
|
18898
|
-
const x = Date.now(), _ = () => {
|
|
18893
|
+
}), K.dispatch(Zd({ rooms: P })), P) : [];
|
|
18894
|
+
}, C = async (b, x, B) => {
|
|
18895
|
+
(B && B.length ? B : await y(b)).length && await b.sendAllPresencesAndMarkReady();
|
|
18896
|
+
}, w = (b, x = 3e4) => new Promise((B, P) => {
|
|
18897
|
+
const T = Date.now(), _ = () => {
|
|
18899
18898
|
if (b.status === "online") {
|
|
18900
18899
|
B();
|
|
18901
18900
|
return;
|
|
@@ -18908,28 +18907,28 @@ const IB = (e) => {
|
|
|
18908
18907
|
P(new Error("Failed to connect."));
|
|
18909
18908
|
return;
|
|
18910
18909
|
}
|
|
18911
|
-
if (Date.now() -
|
|
18910
|
+
if (Date.now() - T > x) {
|
|
18912
18911
|
P(new Error("XMPP online timeout"));
|
|
18913
18912
|
return;
|
|
18914
18913
|
}
|
|
18915
18914
|
setTimeout(_, 200);
|
|
18916
18915
|
};
|
|
18917
18916
|
_();
|
|
18918
|
-
}), E = async (b,
|
|
18919
|
-
const
|
|
18917
|
+
}), E = async (b, x, B, P) => {
|
|
18918
|
+
const T = FI(b, B), _ = G0(T);
|
|
18920
18919
|
if (_)
|
|
18921
18920
|
return Z.log("[InitPolicy] Reusing global XMPP client by key", {
|
|
18922
|
-
clientKey:
|
|
18921
|
+
clientKey: T
|
|
18923
18922
|
}), r(_), _;
|
|
18924
|
-
if (i && Of(i) && QI() ===
|
|
18923
|
+
if (i && Of(i) && QI() === T)
|
|
18925
18924
|
return Z.log("[InitPolicy] Reusing provider state XMPP client", {
|
|
18926
|
-
clientKey:
|
|
18925
|
+
clientKey: T
|
|
18927
18926
|
}), i;
|
|
18928
18927
|
if (d.current)
|
|
18929
18928
|
return d.current;
|
|
18930
18929
|
try {
|
|
18931
|
-
const I = UI(
|
|
18932
|
-
const R = G0(
|
|
18930
|
+
const I = UI(T, async () => {
|
|
18931
|
+
const R = G0(T);
|
|
18933
18932
|
if (R)
|
|
18934
18933
|
return r(R), R;
|
|
18935
18934
|
const L = na();
|
|
@@ -18942,16 +18941,16 @@ const IB = (e) => {
|
|
|
18942
18941
|
V
|
|
18943
18942
|
);
|
|
18944
18943
|
}
|
|
18945
|
-
const W = Date.now(), z = new LI(b,
|
|
18944
|
+
const W = Date.now(), z = new LI(b, x, B);
|
|
18946
18945
|
return Z.log(
|
|
18947
18946
|
`[InitTiming] initClient:create_instance ${Date.now() - W}ms`
|
|
18948
|
-
), r(z), Lf(z,
|
|
18947
|
+
), r(z), Lf(z, T), w(z).then(() => {
|
|
18949
18948
|
}).catch((V) => {
|
|
18950
18949
|
console.warn(
|
|
18951
18950
|
"[InitTiming] initClient:wait_online:error",
|
|
18952
18951
|
V instanceof Error ? V.message : String(V)
|
|
18953
18952
|
);
|
|
18954
|
-
}), A(
|
|
18953
|
+
}), A(x), c(b), f(0), z;
|
|
18955
18954
|
});
|
|
18956
18955
|
d.current = I;
|
|
18957
18956
|
const N = await I;
|
|
@@ -18991,28 +18990,27 @@ const IB = (e) => {
|
|
|
18991
18990
|
Z.log("[initBeforeLoad] skipped:bootstrap_key_inflight");
|
|
18992
18991
|
return;
|
|
18993
18992
|
}
|
|
18994
|
-
const
|
|
18993
|
+
const x = new AbortController(), B = async () => {
|
|
18995
18994
|
a("running");
|
|
18996
18995
|
let P = !1;
|
|
18997
|
-
const
|
|
18996
|
+
const T = await NB({
|
|
18998
18997
|
config: t,
|
|
18999
|
-
signal:
|
|
18998
|
+
signal: x.signal
|
|
19000
18999
|
});
|
|
19001
|
-
if (
|
|
19002
|
-
if (!
|
|
19000
|
+
if (x.signal.aborted) return;
|
|
19001
|
+
if (!T) {
|
|
19003
19002
|
a("idle");
|
|
19004
19003
|
return;
|
|
19005
19004
|
}
|
|
19006
|
-
DB(
|
|
19007
|
-
const _ =
|
|
19005
|
+
DB(T);
|
|
19006
|
+
const _ = T.xmppUsername || T.defaultWallet?.walletAddress, I = T.xmppPassword;
|
|
19008
19007
|
if (!_ || !I) {
|
|
19009
19008
|
a("failed");
|
|
19010
19009
|
return;
|
|
19011
19010
|
}
|
|
19012
|
-
const N = y(
|
|
19013
|
-
|
|
19014
|
-
|
|
19015
|
-
).catch(() => []), R = await E(
|
|
19011
|
+
const N = y(null).catch(
|
|
19012
|
+
() => []
|
|
19013
|
+
), R = await E(
|
|
19016
19014
|
_,
|
|
19017
19015
|
I,
|
|
19018
19016
|
{
|
|
@@ -19020,42 +19018,41 @@ const IB = (e) => {
|
|
|
19020
19018
|
historyQoS: t?.historyQoS
|
|
19021
19019
|
}
|
|
19022
19020
|
);
|
|
19023
|
-
if (
|
|
19024
|
-
const L = await w(R).then(() => !0).catch((V) => (console.warn(
|
|
19021
|
+
if (!await w(R).then(() => !0).catch((V) => (console.warn(
|
|
19025
19022
|
"[initBeforeLoad] ws auth/connect failed, bootstrap stopped",
|
|
19026
19023
|
V instanceof Error ? V.message : String(V)
|
|
19027
|
-
), !1))
|
|
19028
|
-
if (T.signal.aborted) return;
|
|
19029
|
-
if (!L) {
|
|
19024
|
+
), !1))) {
|
|
19030
19025
|
a("failed");
|
|
19031
19026
|
return;
|
|
19032
19027
|
}
|
|
19033
19028
|
const W = await N;
|
|
19034
|
-
|
|
19029
|
+
await C(
|
|
19035
19030
|
R,
|
|
19036
|
-
|
|
19031
|
+
void 0,
|
|
19037
19032
|
W
|
|
19038
|
-
)
|
|
19033
|
+
);
|
|
19039
19034
|
const z = await R.getChatsPrivateStoreRequestStanza();
|
|
19040
|
-
|
|
19035
|
+
Zy(
|
|
19041
19036
|
z,
|
|
19042
19037
|
K.dispatch
|
|
19043
19038
|
), zf({
|
|
19044
19039
|
client: R,
|
|
19045
|
-
|
|
19040
|
+
// Don't tie the scheduler to the effect's abortController — see
|
|
19041
|
+
// comment above. The scheduler has its own internal pause-on-hidden
|
|
19042
|
+
// and active-room-gate logic; that's enough lifecycle.
|
|
19046
19043
|
concurrency: 3,
|
|
19047
19044
|
pageSize: 10,
|
|
19048
19045
|
retryLimit: 2,
|
|
19049
19046
|
selectedRoomJid: K.getState().rooms.activeRoomJID || null,
|
|
19050
19047
|
defaultRoomJids: (t?.defaultRooms || []).map((V) => V.jid)
|
|
19051
|
-
}), P = !0, P && (h.current = b)
|
|
19048
|
+
}), P = !0, P && (h.current = b);
|
|
19052
19049
|
};
|
|
19053
19050
|
return p.current ? Z.log("[initBeforeLoad] skipped:bootstrap_promise_busy") : (p.current = b, B().catch((P) => {
|
|
19054
19051
|
console.warn("[initBeforeLoad] bootstrap failed", P), a("failed");
|
|
19055
19052
|
}).finally(() => {
|
|
19056
19053
|
p.current === b && (p.current = null);
|
|
19057
19054
|
})), () => {
|
|
19058
|
-
|
|
19055
|
+
x.abort();
|
|
19059
19056
|
};
|
|
19060
19057
|
}, [
|
|
19061
19058
|
t?.initBeforeLoad,
|
|
@@ -19075,16 +19072,16 @@ const IB = (e) => {
|
|
|
19075
19072
|
if (typeof window > "u")
|
|
19076
19073
|
return;
|
|
19077
19074
|
const b = () => {
|
|
19078
|
-
const
|
|
19075
|
+
const x = i;
|
|
19079
19076
|
v();
|
|
19080
19077
|
try {
|
|
19081
19078
|
K.dispatch(Kd());
|
|
19082
19079
|
} catch (B) {
|
|
19083
19080
|
console.warn("XmppProvider: rooms state reset failed", B);
|
|
19084
19081
|
}
|
|
19085
|
-
|
|
19082
|
+
x && (async () => {
|
|
19086
19083
|
try {
|
|
19087
|
-
Z.log("XmppProvider: Disconnecting client due to logout event"), await
|
|
19084
|
+
Z.log("XmppProvider: Disconnecting client due to logout event"), await x.disconnect({ suppressReconnect: !0 });
|
|
19088
19085
|
} catch (B) {
|
|
19089
19086
|
console.warn("XmppProvider: client disconnect failed on logout", B);
|
|
19090
19087
|
}
|
|
@@ -19318,30 +19315,30 @@ function VB(e) {
|
|
|
19318
19315
|
return YB(Yo("", null, null, null, [""], e = jB(e), 0, [0], e));
|
|
19319
19316
|
}
|
|
19320
19317
|
function Yo(e, t, n, i, r, s, a, o, A) {
|
|
19321
|
-
for (var u = 0, c = 0, l = a, f = 0, d = 0, h = 0, p = 1, v = 1, y = 1, C = 0, w = "", E = r, k = s, b = i,
|
|
19318
|
+
for (var u = 0, c = 0, l = a, f = 0, d = 0, h = 0, p = 1, v = 1, y = 1, C = 0, w = "", E = r, k = s, b = i, x = w; v; )
|
|
19322
19319
|
switch (h = C, C = en()) {
|
|
19323
19320
|
// (
|
|
19324
19321
|
case 40:
|
|
19325
|
-
if (h != 108 && At(
|
|
19326
|
-
Ho(
|
|
19322
|
+
if (h != 108 && At(x, l - 1) == 58) {
|
|
19323
|
+
Ho(x += Se(vl(C), "&", "&\f"), "&\f", Mw(u ? o[u - 1] : 0)) != -1 && (y = -1);
|
|
19327
19324
|
break;
|
|
19328
19325
|
}
|
|
19329
19326
|
// " ' [
|
|
19330
19327
|
case 34:
|
|
19331
19328
|
case 39:
|
|
19332
19329
|
case 91:
|
|
19333
|
-
|
|
19330
|
+
x += vl(C);
|
|
19334
19331
|
break;
|
|
19335
19332
|
// \t \n \r \s
|
|
19336
19333
|
case 9:
|
|
19337
19334
|
case 10:
|
|
19338
19335
|
case 13:
|
|
19339
19336
|
case 32:
|
|
19340
|
-
|
|
19337
|
+
x += WB(h);
|
|
19341
19338
|
break;
|
|
19342
19339
|
// \
|
|
19343
19340
|
case 92:
|
|
19344
|
-
|
|
19341
|
+
x += GB(jo() - 1, 7);
|
|
19345
19342
|
continue;
|
|
19346
19343
|
// /
|
|
19347
19344
|
case 47:
|
|
@@ -19351,12 +19348,12 @@ function Yo(e, t, n, i, r, s, a, o, A) {
|
|
|
19351
19348
|
Rs(JB(zB(en(), jo()), t, n, A), A);
|
|
19352
19349
|
break;
|
|
19353
19350
|
default:
|
|
19354
|
-
|
|
19351
|
+
x += "/";
|
|
19355
19352
|
}
|
|
19356
19353
|
break;
|
|
19357
19354
|
// {
|
|
19358
19355
|
case 123 * p:
|
|
19359
|
-
o[u++] = ln(
|
|
19356
|
+
o[u++] = ln(x) * y;
|
|
19360
19357
|
// } ; \0
|
|
19361
19358
|
case 125 * p:
|
|
19362
19359
|
case 59:
|
|
@@ -19368,18 +19365,18 @@ function Yo(e, t, n, i, r, s, a, o, A) {
|
|
|
19368
19365
|
v = 0;
|
|
19369
19366
|
// ;
|
|
19370
19367
|
case 59 + c:
|
|
19371
|
-
y == -1 && (
|
|
19368
|
+
y == -1 && (x = Se(x, /\f/g, "")), d > 0 && ln(x) - l && Rs(d > 32 ? Op(x + ";", i, n, l - 1, A) : Op(Se(x, " ", "") + ";", i, n, l - 2, A), A);
|
|
19372
19369
|
break;
|
|
19373
19370
|
// @ ;
|
|
19374
19371
|
case 59:
|
|
19375
|
-
|
|
19372
|
+
x += ";";
|
|
19376
19373
|
// { rule/at-rule
|
|
19377
19374
|
default:
|
|
19378
|
-
if (Rs(b = Mp(
|
|
19375
|
+
if (Rs(b = Mp(x, t, n, u, c, r, o, w, E = [], k = [], l, s), s), C === 123)
|
|
19379
19376
|
if (c === 0)
|
|
19380
|
-
Yo(
|
|
19377
|
+
Yo(x, t, b, b, E, s, l, o, k);
|
|
19381
19378
|
else
|
|
19382
|
-
switch (f === 99 && At(
|
|
19379
|
+
switch (f === 99 && At(x, 3) === 110 ? 100 : f) {
|
|
19383
19380
|
// d l m s
|
|
19384
19381
|
case 100:
|
|
19385
19382
|
case 108:
|
|
@@ -19388,14 +19385,14 @@ function Yo(e, t, n, i, r, s, a, o, A) {
|
|
|
19388
19385
|
Yo(e, b, b, i && Rs(Mp(e, b, b, 0, 0, r, o, w, r, E = [], l, k), k), r, k, l, o, i ? E : k);
|
|
19389
19386
|
break;
|
|
19390
19387
|
default:
|
|
19391
|
-
Yo(
|
|
19388
|
+
Yo(x, b, b, b, [""], k, 0, o, k);
|
|
19392
19389
|
}
|
|
19393
19390
|
}
|
|
19394
|
-
u = c = d = 0, p = y = 1, w =
|
|
19391
|
+
u = c = d = 0, p = y = 1, w = x = "", l = a;
|
|
19395
19392
|
break;
|
|
19396
19393
|
// :
|
|
19397
19394
|
case 58:
|
|
19398
|
-
l = 1 + ln(
|
|
19395
|
+
l = 1 + ln(x), d = h;
|
|
19399
19396
|
default:
|
|
19400
19397
|
if (p < 1) {
|
|
19401
19398
|
if (C == 123)
|
|
@@ -19403,22 +19400,22 @@ function Yo(e, t, n, i, r, s, a, o, A) {
|
|
|
19403
19400
|
else if (C == 125 && p++ == 0 && HB() == 125)
|
|
19404
19401
|
continue;
|
|
19405
19402
|
}
|
|
19406
|
-
switch (
|
|
19403
|
+
switch (x += _1(C), C * p) {
|
|
19407
19404
|
// &
|
|
19408
19405
|
case 38:
|
|
19409
|
-
y = c > 0 ? 1 : (
|
|
19406
|
+
y = c > 0 ? 1 : (x += "\f", -1);
|
|
19410
19407
|
break;
|
|
19411
19408
|
// ,
|
|
19412
19409
|
case 44:
|
|
19413
|
-
o[u++] = (ln(
|
|
19410
|
+
o[u++] = (ln(x) - 1) * y, y = 1;
|
|
19414
19411
|
break;
|
|
19415
19412
|
// @
|
|
19416
19413
|
case 64:
|
|
19417
|
-
Ri() === 45 && (
|
|
19414
|
+
Ri() === 45 && (x += vl(en())), f = Ri(), c = l = ln(w = x += qB(jo())), C++;
|
|
19418
19415
|
break;
|
|
19419
19416
|
// -
|
|
19420
19417
|
case 45:
|
|
19421
|
-
h === 45 && ln(
|
|
19418
|
+
h === 45 && ln(x) == 2 && (p = 0);
|
|
19422
19419
|
}
|
|
19423
19420
|
}
|
|
19424
19421
|
return s;
|
|
@@ -20175,8 +20172,8 @@ function LR(e, t, n) {
|
|
|
20175
20172
|
var i = M1(e), r = e, s = !wl(e), a = t.attrs, o = a === void 0 ? vu : a, A = t.componentId, u = A === void 0 ? (function(E, k) {
|
|
20176
20173
|
var b = typeof E != "string" ? "sc" : Fp(E);
|
|
20177
20174
|
kl[b] = (kl[b] || 0) + 1;
|
|
20178
|
-
var
|
|
20179
|
-
return k ? "".concat(k, "-").concat(
|
|
20175
|
+
var x = "".concat(b, "-").concat(Ww(bu + b + kl[b]));
|
|
20176
|
+
return k ? "".concat(k, "-").concat(x) : x;
|
|
20180
20177
|
})(t.displayName, t.parentComponentId) : A, c = t.displayName, l = c === void 0 ? (function(E) {
|
|
20181
20178
|
return wl(E) ? "styled.".concat(E) : "Styled(".concat(Gw(E), ")");
|
|
20182
20179
|
})(e) : c, f = t.displayName && t.componentId ? "".concat(Fp(t.displayName), "-").concat(t.componentId) : t.componentId || u, d = i && r.attrs ? r.attrs.concat(o).filter(Boolean) : o, h = t.shouldForwardProp;
|
|
@@ -20191,21 +20188,21 @@ function LR(e, t, n) {
|
|
|
20191
20188
|
}
|
|
20192
20189
|
var y = new OR(n, f, i ? r.componentStyle : void 0);
|
|
20193
20190
|
function C(E, k) {
|
|
20194
|
-
return (function(b,
|
|
20195
|
-
var P = b.attrs,
|
|
20191
|
+
return (function(b, x, B) {
|
|
20192
|
+
var P = b.attrs, T = b.componentStyle, _ = b.defaultProps, I = b.foldedComponentIds, N = b.styledComponentId, R = b.target, L = at.useContext(n3), W = Gp(), z = b.shouldForwardProp || W.shouldForwardProp;
|
|
20196
20193
|
process.env.NODE_ENV !== "production" && gh(N);
|
|
20197
|
-
var V = iR(
|
|
20194
|
+
var V = iR(x, L, _) || Br, $ = (function(re, ie, pe) {
|
|
20198
20195
|
for (var oe, fe = Nt(Nt({}, ie), { className: void 0, theme: pe }), X = 0; X < re.length; X += 1) {
|
|
20199
20196
|
var de = Rr(oe = re[X]) ? oe(fe) : oe;
|
|
20200
20197
|
for (var te in de) fe[te] = te === "className" ? xi(fe[te], de[te]) : te === "style" ? Nt(Nt({}, fe[te]), de[te]) : de[te];
|
|
20201
20198
|
}
|
|
20202
20199
|
return ie.className && (fe.className = xi(fe.className, ie.className)), fe;
|
|
20203
|
-
})(P,
|
|
20200
|
+
})(P, x, V), D = $.as || R, H = {};
|
|
20204
20201
|
for (var Y in $) $[Y] === void 0 || Y[0] === "$" || Y === "as" || Y === "theme" && $.theme === V || (Y === "forwardedAs" ? H.as = $.forwardedAs : z && !z(Y, D) || (H[Y] = $[Y], z || process.env.NODE_ENV !== "development" || MB(Y) || qp.has(Y) || !td.has(D) || (qp.add(Y), console.warn('styled-components: it looks like an unknown prop "'.concat(Y, '" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));
|
|
20205
20202
|
var S = (function(re, ie) {
|
|
20206
20203
|
var pe = Gp(), oe = re.generateAndInjectStyles(ie, pe.styleSheet, pe.stylis);
|
|
20207
20204
|
return process.env.NODE_ENV !== "production" && gh(oe), oe;
|
|
20208
|
-
})(
|
|
20205
|
+
})(T, $);
|
|
20209
20206
|
process.env.NODE_ENV !== "production" && b.warnTooManyClasses && b.warnTooManyClasses(S);
|
|
20210
20207
|
var j = xi(I, N);
|
|
20211
20208
|
return S && (j += " " + S), $.className && (j += " " + $.className), H[wl(D) && !td.has(D) ? "class" : "className"] = j, B && (H.ref = B), x6(D, H);
|
|
@@ -20217,14 +20214,14 @@ function LR(e, t, n) {
|
|
|
20217
20214
|
return this._foldedDefaultProps;
|
|
20218
20215
|
}, set: function(E) {
|
|
20219
20216
|
this._foldedDefaultProps = i ? (function(k) {
|
|
20220
|
-
for (var b = [],
|
|
20217
|
+
for (var b = [], x = 1; x < arguments.length; x++) b[x - 1] = arguments[x];
|
|
20221
20218
|
for (var B = 0, P = b; B < P.length; B++) rd(k, P[B], !0);
|
|
20222
20219
|
return k;
|
|
20223
20220
|
})({}, r.defaultProps, E) : E;
|
|
20224
20221
|
} }), process.env.NODE_ENV !== "production" && (nR(l, f), w.warnTooManyClasses = /* @__PURE__ */ (function(E, k) {
|
|
20225
|
-
var b = {},
|
|
20222
|
+
var b = {}, x = !1;
|
|
20226
20223
|
return function(B) {
|
|
20227
|
-
if (!
|
|
20224
|
+
if (!x && (b[B] = !0, Object.keys(b).length >= 200)) {
|
|
20228
20225
|
var P = k ? ' with the id of "'.concat(k, '"') : "";
|
|
20229
20226
|
console.warn("Over ".concat(200, " classes were generated for component ").concat(E).concat(P, `.
|
|
20230
20227
|
`) + `Consider using the attrs method, together with a style object for frequently changed styles.
|
|
@@ -20235,7 +20232,7 @@ Example:
|
|
|
20235
20232
|
},
|
|
20236
20233
|
}))\`width: 100%;\`
|
|
20237
20234
|
|
|
20238
|
-
<Component />`),
|
|
20235
|
+
<Component />`), x = !0, b = {};
|
|
20239
20236
|
}
|
|
20240
20237
|
};
|
|
20241
20238
|
})(l, f)), O1(w, function() {
|
|
@@ -21978,28 +21975,28 @@ const g_ = (e) => e.length === 0 ? "" : e.length === 1 ? `${e[0]} is typing` : e
|
|
|
21978
21975
|
}) => {
|
|
21979
21976
|
const { CustomScrollableArea: o, CustomNewMessageLabel: A } = yu(), { composing: u, messages: c, composingList: l } = sn(n).room, { user: f } = Rt();
|
|
21980
21977
|
Pn("chat-room-load-more-loader", r);
|
|
21981
|
-
const [d, h] = le(!1), [p, v] = le(0), [y, C] = le(null), w = be(c.length), E = be(null), k = be({}), b = be(!0),
|
|
21978
|
+
const [d, h] = le(!1), [p, v] = le(0), [y, C] = le(null), w = be(c.length), E = be(null), k = be({}), b = be(!0), x = Ve(() => c.map((X) => ({
|
|
21982
21979
|
...X,
|
|
21983
21980
|
reply: c.filter(
|
|
21984
21981
|
(te) => IA(te.mainMessage)?.id === X.id
|
|
21985
21982
|
)
|
|
21986
|
-
})), [c, c.length]), B = Ve(() => s ?
|
|
21983
|
+
})), [c, c.length]), B = Ve(() => s ? x.filter(
|
|
21987
21984
|
(X) => X.roomJid === n && X.isReply && X.isReply === "true" && IA(X.mainMessage)?.id === a.id
|
|
21988
|
-
) :
|
|
21985
|
+
) : x.filter(
|
|
21989
21986
|
(X) => X.isSystemMessage === "true" || X.showInChannel === "true" || (!X.isReply || X.isReply === "false") && !X.mainMessage
|
|
21990
21987
|
), [c, c.length]), P = Ve(
|
|
21991
21988
|
() => c.length && c[c.length - 1].user.id === f.xmppUsername,
|
|
21992
21989
|
[c.length, f.xmppUsername]
|
|
21993
|
-
),
|
|
21990
|
+
), T = be(null), _ = be(null), I = be(
|
|
21994
21991
|
B[B.length - 1]
|
|
21995
21992
|
), N = be(!1), R = be(0), L = be(null), W = be(!0), z = be(!1), V = be(!1), $ = () => {
|
|
21996
|
-
const X =
|
|
21993
|
+
const X = T.current;
|
|
21997
21994
|
return X ? {
|
|
21998
21995
|
top: X.scrollTop,
|
|
21999
21996
|
height: X.scrollHeight
|
|
22000
21997
|
} : null;
|
|
22001
21998
|
}, D = he(() => {
|
|
22002
|
-
const X =
|
|
21999
|
+
const X = T.current;
|
|
22003
22000
|
if (!X) return Promise.resolve();
|
|
22004
22001
|
const de = X.getElementsByTagName("img");
|
|
22005
22002
|
if (de.length === 0) return Promise.resolve();
|
|
@@ -22009,7 +22006,7 @@ const g_ = (e) => e.length === 0 ? "" : e.length === 1 ? `${e[0]} is typing` : e
|
|
|
22009
22006
|
return Promise.all(te).then(() => {
|
|
22010
22007
|
});
|
|
22011
22008
|
}, []), H = he(async () => {
|
|
22012
|
-
const X =
|
|
22009
|
+
const X = T.current;
|
|
22013
22010
|
if (X)
|
|
22014
22011
|
if (await D(), b.current)
|
|
22015
22012
|
B.findIndex(
|
|
@@ -22051,13 +22048,13 @@ const g_ = (e) => e.length === 0 ? "" : e.length === 1 ? `${e[0]} is typing` : e
|
|
|
22051
22048
|
}
|
|
22052
22049
|
));
|
|
22053
22050
|
}, [t, B.length]), S = he(() => {
|
|
22054
|
-
const X =
|
|
22051
|
+
const X = T.current;
|
|
22055
22052
|
X && (X.scrollTo({
|
|
22056
22053
|
top: X.scrollHeight,
|
|
22057
22054
|
behavior: "smooth"
|
|
22058
22055
|
}), h(!1), v(0));
|
|
22059
22056
|
}, []), j = () => {
|
|
22060
|
-
const X =
|
|
22057
|
+
const X = T.current;
|
|
22061
22058
|
if (X) {
|
|
22062
22059
|
const de = X.scrollTop, te = X.scrollHeight, _e = X.clientHeight, Xe = te - _e - de, Pt = Xe <= 150, Vn = Xe <= 5;
|
|
22063
22060
|
W.current = Vn, z.current = !Pt, Xe > 150 ? h(!0) : Vn && (S(), h(!1), v(0)), w.current = c.length, Y();
|
|
@@ -22075,7 +22072,7 @@ const g_ = (e) => e.length === 0 ? "" : e.length === 1 ? `${e[0]} is typing` : e
|
|
|
22075
22072
|
};
|
|
22076
22073
|
}, []), ge(() => {
|
|
22077
22074
|
if (B.length > 30) {
|
|
22078
|
-
const X =
|
|
22075
|
+
const X = T.current;
|
|
22079
22076
|
if (X && L.current) {
|
|
22080
22077
|
const de = L.current.top + (X.scrollHeight - L.current.height);
|
|
22081
22078
|
X.scrollTop = de;
|
|
@@ -22088,7 +22085,7 @@ const g_ = (e) => e.length === 0 ? "" : e.length === 1 ? `${e[0]} is typing` : e
|
|
|
22088
22085
|
X && X.id !== E.current && de && (E.current = X.id, S());
|
|
22089
22086
|
}
|
|
22090
22087
|
}, [c, P]), ge(() => {
|
|
22091
|
-
if (!
|
|
22088
|
+
if (!T.current) return;
|
|
22092
22089
|
const de = B.length > w.current, te = l?.length > 0 && !V.current;
|
|
22093
22090
|
V.current = l?.length > 0, z.current || (de || te) && D().then(() => {
|
|
22094
22091
|
S(), h(!1), v(0);
|
|
@@ -22177,7 +22174,7 @@ const g_ = (e) => e.length === 0 ? "" : e.length === 1 ? `${e[0]} is typing` : e
|
|
|
22177
22174
|
/* @__PURE__ */ U(
|
|
22178
22175
|
UR,
|
|
22179
22176
|
{
|
|
22180
|
-
ref:
|
|
22177
|
+
ref: T,
|
|
22181
22178
|
onScroll: re,
|
|
22182
22179
|
color: i?.colors?.primary,
|
|
22183
22180
|
children: [
|
|
@@ -23745,7 +23742,7 @@ function IP() {
|
|
|
23745
23742
|
);
|
|
23746
23743
|
if (R.reason = N, R.filename = v.source, R.line = y, R.column = C, R.source = p, !v.silent) throw R;
|
|
23747
23744
|
}
|
|
23748
|
-
function
|
|
23745
|
+
function x(N) {
|
|
23749
23746
|
var R = N.exec(p);
|
|
23750
23747
|
if (R) {
|
|
23751
23748
|
var L = R[0];
|
|
@@ -23753,15 +23750,15 @@ function IP() {
|
|
|
23753
23750
|
}
|
|
23754
23751
|
}
|
|
23755
23752
|
function B() {
|
|
23756
|
-
|
|
23753
|
+
x(n);
|
|
23757
23754
|
}
|
|
23758
23755
|
function P(N) {
|
|
23759
23756
|
var R;
|
|
23760
|
-
for (N = N || []; R =
|
|
23757
|
+
for (N = N || []; R = T(); )
|
|
23761
23758
|
R !== !1 && N.push(R);
|
|
23762
23759
|
return N;
|
|
23763
23760
|
}
|
|
23764
|
-
function
|
|
23761
|
+
function T() {
|
|
23765
23762
|
var N = E();
|
|
23766
23763
|
if (!(u != p.charAt(0) || c != p.charAt(1))) {
|
|
23767
23764
|
for (var R = 2; l != p.charAt(R) && (c != p.charAt(R) || u != p.charAt(R + 1)); )
|
|
@@ -23776,15 +23773,15 @@ function IP() {
|
|
|
23776
23773
|
}
|
|
23777
23774
|
}
|
|
23778
23775
|
function _() {
|
|
23779
|
-
var N = E(), R =
|
|
23776
|
+
var N = E(), R = x(i);
|
|
23780
23777
|
if (R) {
|
|
23781
|
-
if (
|
|
23782
|
-
var L =
|
|
23778
|
+
if (T(), !x(r)) return b("property missing ':'");
|
|
23779
|
+
var L = x(s), W = N({
|
|
23783
23780
|
type: d,
|
|
23784
23781
|
property: h(R[0].replace(e, l)),
|
|
23785
23782
|
value: L ? h(L[0].replace(e, l)) : l
|
|
23786
23783
|
});
|
|
23787
|
-
return
|
|
23784
|
+
return x(a), W;
|
|
23788
23785
|
}
|
|
23789
23786
|
}
|
|
23790
23787
|
function I() {
|
|
@@ -24493,12 +24490,12 @@ function cM(e) {
|
|
|
24493
24490
|
break;
|
|
24494
24491
|
}
|
|
24495
24492
|
y(i);
|
|
24496
|
-
let
|
|
24497
|
-
for (;
|
|
24498
|
-
t.events[
|
|
24493
|
+
let x = E;
|
|
24494
|
+
for (; x < t.events.length; )
|
|
24495
|
+
t.events[x][1].end = {
|
|
24499
24496
|
...b
|
|
24500
|
-
},
|
|
24501
|
-
return Qt(t.events, k + 1, 0, t.events.slice(E)), t.events.length =
|
|
24497
|
+
}, x++;
|
|
24498
|
+
return Qt(t.events, k + 1, 0, t.events.slice(E)), t.events.length = x, u(w);
|
|
24502
24499
|
}
|
|
24503
24500
|
return o(w);
|
|
24504
24501
|
}
|
|
@@ -24554,21 +24551,21 @@ function cM(e) {
|
|
|
24554
24551
|
r.events[b][1].end.offset > a)
|
|
24555
24552
|
)
|
|
24556
24553
|
return;
|
|
24557
|
-
const
|
|
24558
|
-
let B =
|
|
24554
|
+
const x = t.events.length;
|
|
24555
|
+
let B = x, P, T;
|
|
24559
24556
|
for (; B--; )
|
|
24560
24557
|
if (t.events[B][0] === "exit" && t.events[B][1].type === "chunkFlow") {
|
|
24561
24558
|
if (P) {
|
|
24562
|
-
|
|
24559
|
+
T = t.events[B][1].end;
|
|
24563
24560
|
break;
|
|
24564
24561
|
}
|
|
24565
24562
|
P = !0;
|
|
24566
24563
|
}
|
|
24567
|
-
for (y(i), b =
|
|
24564
|
+
for (y(i), b = x; b < t.events.length; )
|
|
24568
24565
|
t.events[b][1].end = {
|
|
24569
|
-
...
|
|
24566
|
+
...T
|
|
24570
24567
|
}, b++;
|
|
24571
|
-
Qt(t.events, B + 1, 0, t.events.slice(
|
|
24568
|
+
Qt(t.events, B + 1, 0, t.events.slice(x)), t.events.length = b;
|
|
24572
24569
|
}
|
|
24573
24570
|
}
|
|
24574
24571
|
function y(w) {
|
|
@@ -24824,8 +24821,8 @@ function kM(e, t, n) {
|
|
|
24824
24821
|
return u(b);
|
|
24825
24822
|
}
|
|
24826
24823
|
function u(b) {
|
|
24827
|
-
const
|
|
24828
|
-
return s =
|
|
24824
|
+
const x = i.events[i.events.length - 1];
|
|
24825
|
+
return s = x && x[1].type === "linePrefix" ? x[2].sliceSerialize(x[1], !0).length : 0, o = b, e.enter("codeFenced"), e.enter("codeFencedFence"), e.enter("codeFencedFenceSequence"), c(b);
|
|
24829
24826
|
}
|
|
24830
24827
|
function c(b) {
|
|
24831
24828
|
return b === o ? (a++, e.consume(b), c) : a < 3 ? n(b) : (e.exit("codeFencedFenceSequence"), Be(b) ? Pe(e, l, "whitespace")(b) : l(b));
|
|
@@ -24864,10 +24861,10 @@ function kM(e, t, n) {
|
|
|
24864
24861
|
function E(b) {
|
|
24865
24862
|
return e.exit("codeFenced"), t(b);
|
|
24866
24863
|
}
|
|
24867
|
-
function k(b,
|
|
24864
|
+
function k(b, x, B) {
|
|
24868
24865
|
let P = 0;
|
|
24869
|
-
return
|
|
24870
|
-
function
|
|
24866
|
+
return T;
|
|
24867
|
+
function T(L) {
|
|
24871
24868
|
return b.enter("lineEnding"), b.consume(L), b.exit("lineEnding"), _;
|
|
24872
24869
|
}
|
|
24873
24870
|
function _(L) {
|
|
@@ -24880,7 +24877,7 @@ function kM(e, t, n) {
|
|
|
24880
24877
|
return L === o ? (P++, b.consume(L), N) : P >= a ? (b.exit("codeFencedFenceSequence"), Be(L) ? Pe(b, R, "whitespace")(L) : R(L)) : B(L);
|
|
24881
24878
|
}
|
|
24882
24879
|
function R(L) {
|
|
24883
|
-
return L === null || ve(L) ? (b.exit("codeFencedFence"),
|
|
24880
|
+
return L === null || ve(L) ? (b.exit("codeFencedFence"), x(L)) : B(L);
|
|
24884
24881
|
}
|
|
24885
24882
|
}
|
|
24886
24883
|
}
|
|
@@ -25558,10 +25555,10 @@ function ZM(e, t, n) {
|
|
|
25558
25555
|
return S === 62 ? (e.consume(S), i.interrupt ? t : I) : n(S);
|
|
25559
25556
|
}
|
|
25560
25557
|
function C(S) {
|
|
25561
|
-
return Be(S) ? (e.consume(S), C) :
|
|
25558
|
+
return Be(S) ? (e.consume(S), C) : T(S);
|
|
25562
25559
|
}
|
|
25563
25560
|
function w(S) {
|
|
25564
|
-
return S === 47 ? (e.consume(S),
|
|
25561
|
+
return S === 47 ? (e.consume(S), T) : S === 58 || S === 95 || kt(S) ? (e.consume(S), E) : Be(S) ? (e.consume(S), w) : T(S);
|
|
25565
25562
|
}
|
|
25566
25563
|
function E(S) {
|
|
25567
25564
|
return S === 45 || S === 46 || S === 58 || S === 95 || vt(S) ? (e.consume(S), E) : k(S);
|
|
@@ -25570,10 +25567,10 @@ function ZM(e, t, n) {
|
|
|
25570
25567
|
return S === 61 ? (e.consume(S), b) : Be(S) ? (e.consume(S), k) : w(S);
|
|
25571
25568
|
}
|
|
25572
25569
|
function b(S) {
|
|
25573
|
-
return S === null || S === 60 || S === 61 || S === 62 || S === 96 ? n(S) : S === 34 || S === 39 ? (e.consume(S), A = S,
|
|
25570
|
+
return S === null || S === 60 || S === 61 || S === 62 || S === 96 ? n(S) : S === 34 || S === 39 ? (e.consume(S), A = S, x) : Be(S) ? (e.consume(S), b) : B(S);
|
|
25574
25571
|
}
|
|
25575
|
-
function
|
|
25576
|
-
return S === A ? (e.consume(S), A = null, P) : S === null || ve(S) ? n(S) : (e.consume(S),
|
|
25572
|
+
function x(S) {
|
|
25573
|
+
return S === A ? (e.consume(S), A = null, P) : S === null || ve(S) ? n(S) : (e.consume(S), x);
|
|
25577
25574
|
}
|
|
25578
25575
|
function B(S) {
|
|
25579
25576
|
return S === null || S === 34 || S === 39 || S === 47 || S === 60 || S === 61 || S === 62 || S === 96 || Ye(S) ? k(S) : (e.consume(S), B);
|
|
@@ -25581,7 +25578,7 @@ function ZM(e, t, n) {
|
|
|
25581
25578
|
function P(S) {
|
|
25582
25579
|
return S === 47 || S === 62 || Be(S) ? w(S) : n(S);
|
|
25583
25580
|
}
|
|
25584
|
-
function
|
|
25581
|
+
function T(S) {
|
|
25585
25582
|
return S === 62 ? (e.consume(S), _) : n(S);
|
|
25586
25583
|
}
|
|
25587
25584
|
function _(S) {
|
|
@@ -25696,19 +25693,19 @@ function nO(e, t, n) {
|
|
|
25696
25693
|
return kt(D) ? (e.consume(D), b) : n(D);
|
|
25697
25694
|
}
|
|
25698
25695
|
function b(D) {
|
|
25699
|
-
return D === 45 || vt(D) ? (e.consume(D), b) :
|
|
25696
|
+
return D === 45 || vt(D) ? (e.consume(D), b) : x(D);
|
|
25700
25697
|
}
|
|
25701
|
-
function
|
|
25702
|
-
return ve(D) ? (a =
|
|
25698
|
+
function x(D) {
|
|
25699
|
+
return ve(D) ? (a = x, z(D)) : Be(D) ? (e.consume(D), x) : W(D);
|
|
25703
25700
|
}
|
|
25704
25701
|
function B(D) {
|
|
25705
25702
|
return D === 45 || vt(D) ? (e.consume(D), B) : D === 47 || D === 62 || Ye(D) ? P(D) : n(D);
|
|
25706
25703
|
}
|
|
25707
25704
|
function P(D) {
|
|
25708
|
-
return D === 47 ? (e.consume(D), W) : D === 58 || D === 95 || kt(D) ? (e.consume(D),
|
|
25705
|
+
return D === 47 ? (e.consume(D), W) : D === 58 || D === 95 || kt(D) ? (e.consume(D), T) : ve(D) ? (a = P, z(D)) : Be(D) ? (e.consume(D), P) : W(D);
|
|
25709
25706
|
}
|
|
25710
|
-
function
|
|
25711
|
-
return D === 45 || D === 46 || D === 58 || D === 95 || vt(D) ? (e.consume(D),
|
|
25707
|
+
function T(D) {
|
|
25708
|
+
return D === 45 || D === 46 || D === 58 || D === 95 || vt(D) ? (e.consume(D), T) : _(D);
|
|
25712
25709
|
}
|
|
25713
25710
|
function _(D) {
|
|
25714
25711
|
return D === 61 ? (e.consume(D), I) : ve(D) ? (a = _, z(D)) : Be(D) ? (e.consume(D), _) : P(D);
|
|
@@ -26269,12 +26266,12 @@ function YO(e, t, n) {
|
|
|
26269
26266
|
const r = {}, s = [];
|
|
26270
26267
|
let a = [], o = [];
|
|
26271
26268
|
const A = {
|
|
26272
|
-
attempt:
|
|
26273
|
-
check:
|
|
26269
|
+
attempt: x(k),
|
|
26270
|
+
check: x(b),
|
|
26274
26271
|
consume: C,
|
|
26275
26272
|
enter: w,
|
|
26276
26273
|
exit: E,
|
|
26277
|
-
interrupt:
|
|
26274
|
+
interrupt: x(b, {
|
|
26278
26275
|
interrupt: !0
|
|
26279
26276
|
})
|
|
26280
26277
|
}, u = {
|
|
@@ -26317,7 +26314,7 @@ function YO(e, t, n) {
|
|
|
26317
26314
|
};
|
|
26318
26315
|
}
|
|
26319
26316
|
function p(_) {
|
|
26320
|
-
r[_.line] = _.column,
|
|
26317
|
+
r[_.line] = _.column, T();
|
|
26321
26318
|
}
|
|
26322
26319
|
function v() {
|
|
26323
26320
|
let _;
|
|
@@ -26334,7 +26331,7 @@ function YO(e, t, n) {
|
|
|
26334
26331
|
c = c(_);
|
|
26335
26332
|
}
|
|
26336
26333
|
function C(_) {
|
|
26337
|
-
ve(_) ? (i.line++, i.column = 1, i.offset += _ === -3 ? 2 : 1,
|
|
26334
|
+
ve(_) ? (i.line++, i.column = 1, i.offset += _ === -3 ? 2 : 1, T()) : _ !== -1 && (i.column++, i.offset++), i._bufferIndex < 0 ? i._index++ : (i._bufferIndex++, i._bufferIndex === // Points w/ non-negative `_bufferIndex` reference
|
|
26338
26335
|
// strings.
|
|
26339
26336
|
/** @type {string} */
|
|
26340
26337
|
a[i._index].length && (i._bufferIndex = -1, i._index++)), u.previous = _;
|
|
@@ -26353,7 +26350,7 @@ function YO(e, t, n) {
|
|
|
26353
26350
|
function b(_, I) {
|
|
26354
26351
|
I.restore();
|
|
26355
26352
|
}
|
|
26356
|
-
function
|
|
26353
|
+
function x(_, I) {
|
|
26357
26354
|
return N;
|
|
26358
26355
|
function N(R, L, W) {
|
|
26359
26356
|
let z, V, $, D;
|
|
@@ -26414,10 +26411,10 @@ function YO(e, t, n) {
|
|
|
26414
26411
|
restore: W
|
|
26415
26412
|
};
|
|
26416
26413
|
function W() {
|
|
26417
|
-
i = _, u.previous = I, u.currentConstruct = N, u.events.length = R, o = L,
|
|
26414
|
+
i = _, u.previous = I, u.currentConstruct = N, u.events.length = R, o = L, T();
|
|
26418
26415
|
}
|
|
26419
26416
|
}
|
|
26420
|
-
function
|
|
26417
|
+
function T() {
|
|
26421
26418
|
i.line in r && i.column < 2 && (i.column = r[i.line], i.offset += r[i.line] - 1);
|
|
26422
26419
|
}
|
|
26423
26420
|
}
|
|
@@ -26609,7 +26606,7 @@ function $O(e) {
|
|
|
26609
26606
|
autolinkEmail: fe,
|
|
26610
26607
|
autolinkProtocol: oe,
|
|
26611
26608
|
blockQuote: A(),
|
|
26612
|
-
characterEscapeValue:
|
|
26609
|
+
characterEscapeValue: T,
|
|
26613
26610
|
characterReferenceMarkerHexadecimal: re,
|
|
26614
26611
|
characterReferenceMarkerNumeric: re,
|
|
26615
26612
|
characterReferenceValue: ie,
|
|
@@ -26618,11 +26615,11 @@ function $O(e) {
|
|
|
26618
26615
|
codeFencedFence: p,
|
|
26619
26616
|
codeFencedFenceInfo: d,
|
|
26620
26617
|
codeFencedFenceMeta: h,
|
|
26621
|
-
codeFlowValue:
|
|
26618
|
+
codeFlowValue: T,
|
|
26622
26619
|
codeIndented: A(y),
|
|
26623
26620
|
codeText: A(L),
|
|
26624
|
-
codeTextData:
|
|
26625
|
-
data:
|
|
26621
|
+
codeTextData: T,
|
|
26622
|
+
data: T,
|
|
26626
26623
|
definition: A(),
|
|
26627
26624
|
definitionDestinationString: E,
|
|
26628
26625
|
definitionLabelString: C,
|
|
@@ -26631,9 +26628,9 @@ function $O(e) {
|
|
|
26631
26628
|
hardBreakEscape: A(I),
|
|
26632
26629
|
hardBreakTrailing: A(I),
|
|
26633
26630
|
htmlFlow: A(N),
|
|
26634
|
-
htmlFlowData:
|
|
26631
|
+
htmlFlowData: T,
|
|
26635
26632
|
htmlText: A(R),
|
|
26636
|
-
htmlTextData:
|
|
26633
|
+
htmlTextData: T,
|
|
26637
26634
|
image: A(z),
|
|
26638
26635
|
label: $,
|
|
26639
26636
|
labelText: V,
|
|
@@ -26648,7 +26645,7 @@ function $O(e) {
|
|
|
26648
26645
|
resourceTitleString: H,
|
|
26649
26646
|
resource: Y,
|
|
26650
26647
|
setextHeading: A(B),
|
|
26651
|
-
setextHeadingLineSequence:
|
|
26648
|
+
setextHeadingLineSequence: x,
|
|
26652
26649
|
setextHeadingText: b,
|
|
26653
26650
|
strong: A(),
|
|
26654
26651
|
thematicBreak: A()
|
|
@@ -26844,7 +26841,7 @@ function $O(e) {
|
|
|
26844
26841
|
function b() {
|
|
26845
26842
|
this.data.setextHeadingSlurpLineEnding = !0;
|
|
26846
26843
|
}
|
|
26847
|
-
function
|
|
26844
|
+
function x(ee) {
|
|
26848
26845
|
const me = this.stack[this.stack.length - 1];
|
|
26849
26846
|
me.depth = this.sliceSerialize(ee).codePointAt(0) === 61 ? 1 : 2;
|
|
26850
26847
|
}
|
|
@@ -26860,7 +26857,7 @@ function $O(e) {
|
|
|
26860
26857
|
end: void 0
|
|
26861
26858
|
}, Ce.push(Re)), this.stack.push(Re);
|
|
26862
26859
|
}
|
|
26863
|
-
function
|
|
26860
|
+
function T(ee) {
|
|
26864
26861
|
const me = this.stack.pop();
|
|
26865
26862
|
me.value += this.sliceSerialize(ee), me.position.end = Kn(ee.end);
|
|
26866
26863
|
}
|
|
@@ -26871,7 +26868,7 @@ function $O(e) {
|
|
|
26871
26868
|
Ce.position.end = Kn(ee.end), this.data.atHardBreak = void 0;
|
|
26872
26869
|
return;
|
|
26873
26870
|
}
|
|
26874
|
-
!this.data.setextHeadingSlurpLineEnding && t.canContainEols.includes(me.type) && (P.call(this, ee),
|
|
26871
|
+
!this.data.setextHeadingSlurpLineEnding && t.canContainEols.includes(me.type) && (P.call(this, ee), T.call(this, ee));
|
|
26875
26872
|
}
|
|
26876
26873
|
function I() {
|
|
26877
26874
|
this.data.atHardBreak = !0;
|
|
@@ -26951,12 +26948,12 @@ function $O(e) {
|
|
|
26951
26948
|
me.position.end = Kn(ee.end);
|
|
26952
26949
|
}
|
|
26953
26950
|
function oe(ee) {
|
|
26954
|
-
|
|
26951
|
+
T.call(this, ee);
|
|
26955
26952
|
const me = this.stack[this.stack.length - 1];
|
|
26956
26953
|
me.url = this.sliceSerialize(ee);
|
|
26957
26954
|
}
|
|
26958
26955
|
function fe(ee) {
|
|
26959
|
-
|
|
26956
|
+
T.call(this, ee);
|
|
26960
26957
|
const me = this.stack[this.stack.length - 1];
|
|
26961
26958
|
me.url = "mailto:" + this.sliceSerialize(ee);
|
|
26962
26959
|
}
|
|
@@ -31030,7 +31027,7 @@ function TU(e, t, n) {
|
|
|
31030
31027
|
const i = this;
|
|
31031
31028
|
let r = 0, s = 0, a;
|
|
31032
31029
|
return o;
|
|
31033
|
-
function o(
|
|
31030
|
+
function o(T) {
|
|
31034
31031
|
let _ = i.events.length - 1;
|
|
31035
31032
|
for (; _ > -1; ) {
|
|
31036
31033
|
const R = i.events[_][1].type;
|
|
@@ -31039,61 +31036,61 @@ function TU(e, t, n) {
|
|
|
31039
31036
|
else break;
|
|
31040
31037
|
}
|
|
31041
31038
|
const I = _ > -1 ? i.events[_][1].type : null, N = I === "tableHead" || I === "tableRow" ? b : A;
|
|
31042
|
-
return N === b && i.parser.lazy[i.now().line] ? n(
|
|
31039
|
+
return N === b && i.parser.lazy[i.now().line] ? n(T) : N(T);
|
|
31043
31040
|
}
|
|
31044
|
-
function A(
|
|
31045
|
-
return e.enter("tableHead"), e.enter("tableRow"), u(
|
|
31041
|
+
function A(T) {
|
|
31042
|
+
return e.enter("tableHead"), e.enter("tableRow"), u(T);
|
|
31046
31043
|
}
|
|
31047
|
-
function u(
|
|
31048
|
-
return
|
|
31044
|
+
function u(T) {
|
|
31045
|
+
return T === 124 || (a = !0, s += 1), c(T);
|
|
31049
31046
|
}
|
|
31050
|
-
function c(
|
|
31051
|
-
return
|
|
31047
|
+
function c(T) {
|
|
31048
|
+
return T === null ? n(T) : ve(T) ? s > 1 ? (s = 0, i.interrupt = !0, e.exit("tableRow"), e.enter("lineEnding"), e.consume(T), e.exit("lineEnding"), d) : n(T) : Be(T) ? Pe(e, c, "whitespace")(T) : (s += 1, a && (a = !1, r += 1), T === 124 ? (e.enter("tableCellDivider"), e.consume(T), e.exit("tableCellDivider"), a = !0, c) : (e.enter("data"), l(T)));
|
|
31052
31049
|
}
|
|
31053
|
-
function l(
|
|
31054
|
-
return
|
|
31050
|
+
function l(T) {
|
|
31051
|
+
return T === null || T === 124 || Ye(T) ? (e.exit("data"), c(T)) : (e.consume(T), T === 92 ? f : l);
|
|
31055
31052
|
}
|
|
31056
|
-
function f(
|
|
31057
|
-
return
|
|
31053
|
+
function f(T) {
|
|
31054
|
+
return T === 92 || T === 124 ? (e.consume(T), l) : l(T);
|
|
31058
31055
|
}
|
|
31059
|
-
function d(
|
|
31060
|
-
return i.interrupt = !1, i.parser.lazy[i.now().line] ? n(
|
|
31056
|
+
function d(T) {
|
|
31057
|
+
return i.interrupt = !1, i.parser.lazy[i.now().line] ? n(T) : (e.enter("tableDelimiterRow"), a = !1, Be(T) ? Pe(e, h, "linePrefix", i.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(T) : h(T));
|
|
31061
31058
|
}
|
|
31062
|
-
function h(
|
|
31063
|
-
return
|
|
31059
|
+
function h(T) {
|
|
31060
|
+
return T === 45 || T === 58 ? v(T) : T === 124 ? (a = !0, e.enter("tableCellDivider"), e.consume(T), e.exit("tableCellDivider"), p) : k(T);
|
|
31064
31061
|
}
|
|
31065
|
-
function p(
|
|
31066
|
-
return Be(
|
|
31062
|
+
function p(T) {
|
|
31063
|
+
return Be(T) ? Pe(e, v, "whitespace")(T) : v(T);
|
|
31067
31064
|
}
|
|
31068
|
-
function v(
|
|
31069
|
-
return
|
|
31065
|
+
function v(T) {
|
|
31066
|
+
return T === 58 ? (s += 1, a = !0, e.enter("tableDelimiterMarker"), e.consume(T), e.exit("tableDelimiterMarker"), y) : T === 45 ? (s += 1, y(T)) : T === null || ve(T) ? E(T) : k(T);
|
|
31070
31067
|
}
|
|
31071
|
-
function y(
|
|
31072
|
-
return
|
|
31068
|
+
function y(T) {
|
|
31069
|
+
return T === 45 ? (e.enter("tableDelimiterFiller"), C(T)) : k(T);
|
|
31073
31070
|
}
|
|
31074
|
-
function C(
|
|
31075
|
-
return
|
|
31071
|
+
function C(T) {
|
|
31072
|
+
return T === 45 ? (e.consume(T), C) : T === 58 ? (a = !0, e.exit("tableDelimiterFiller"), e.enter("tableDelimiterMarker"), e.consume(T), e.exit("tableDelimiterMarker"), w) : (e.exit("tableDelimiterFiller"), w(T));
|
|
31076
31073
|
}
|
|
31077
|
-
function w(
|
|
31078
|
-
return Be(
|
|
31074
|
+
function w(T) {
|
|
31075
|
+
return Be(T) ? Pe(e, E, "whitespace")(T) : E(T);
|
|
31079
31076
|
}
|
|
31080
|
-
function E(
|
|
31081
|
-
return
|
|
31077
|
+
function E(T) {
|
|
31078
|
+
return T === 124 ? h(T) : T === null || ve(T) ? !a || r !== s ? k(T) : (e.exit("tableDelimiterRow"), e.exit("tableHead"), t(T)) : k(T);
|
|
31082
31079
|
}
|
|
31083
|
-
function k(
|
|
31084
|
-
return n(
|
|
31080
|
+
function k(T) {
|
|
31081
|
+
return n(T);
|
|
31085
31082
|
}
|
|
31086
|
-
function b(
|
|
31087
|
-
return e.enter("tableRow"), T
|
|
31083
|
+
function b(T) {
|
|
31084
|
+
return e.enter("tableRow"), x(T);
|
|
31088
31085
|
}
|
|
31089
|
-
function T
|
|
31090
|
-
return
|
|
31086
|
+
function x(T) {
|
|
31087
|
+
return T === 124 ? (e.enter("tableCellDivider"), e.consume(T), e.exit("tableCellDivider"), x) : T === null || ve(T) ? (e.exit("tableRow"), t(T)) : Be(T) ? Pe(e, x, "whitespace")(T) : (e.enter("data"), B(T));
|
|
31091
31088
|
}
|
|
31092
|
-
function B(
|
|
31093
|
-
return
|
|
31089
|
+
function B(T) {
|
|
31090
|
+
return T === null || T === 124 || Ye(T) ? (e.exit("data"), x(T)) : (e.consume(T), T === 92 ? P : B);
|
|
31094
31091
|
}
|
|
31095
|
-
function P(
|
|
31096
|
-
return
|
|
31092
|
+
function P(T) {
|
|
31093
|
+
return T === 92 || T === 124 ? (e.consume(T), B) : B(T);
|
|
31097
31094
|
}
|
|
31098
31095
|
}
|
|
31099
31096
|
function xU(e, t) {
|
|
@@ -38812,8 +38809,8 @@ const h4 = ({ text: e }) => e ? /* @__PURE__ */ g(
|
|
|
38812
38809
|
onSendMedia: h,
|
|
38813
38810
|
placeholderText: p
|
|
38814
38811
|
}) => {
|
|
38815
|
-
const [v, y] = le(""), [C, w] = le(!1), [E, k] = le(40), [b,
|
|
38816
|
-
|
|
38812
|
+
const [v, y] = le(""), [C, w] = le(!1), [E, k] = le(40), [b, x] = le(!1), [B, P] = le([]), T = be(null), _ = be(null), I = he(() => {
|
|
38813
|
+
T.current && T.current.click();
|
|
38817
38814
|
}, []), N = he(
|
|
38818
38815
|
(oe) => {
|
|
38819
38816
|
const fe = oe.target.files;
|
|
@@ -38827,13 +38824,13 @@ const h4 = ({ text: e }) => e ? /* @__PURE__ */ g(
|
|
|
38827
38824
|
return Xe.length > 5 && (Xe = Xe?.slice(0, 5)), Xe;
|
|
38828
38825
|
});
|
|
38829
38826
|
}
|
|
38830
|
-
|
|
38827
|
+
T.current && (T.current.value = "");
|
|
38831
38828
|
},
|
|
38832
38829
|
[]
|
|
38833
38830
|
), R = () => {
|
|
38834
|
-
|
|
38831
|
+
x(!0), n?.();
|
|
38835
38832
|
}, L = () => {
|
|
38836
|
-
|
|
38833
|
+
x(!1), i?.();
|
|
38837
38834
|
}, W = he((oe) => {
|
|
38838
38835
|
P((fe) => fe.filter((X) => X !== oe));
|
|
38839
38836
|
}, []), z = he(
|
|
@@ -39060,7 +39057,7 @@ const h4 = ({ text: e }) => e ? /* @__PURE__ */ g(
|
|
|
39060
39057
|
/* @__PURE__ */ g(
|
|
39061
39058
|
$_,
|
|
39062
39059
|
{
|
|
39063
|
-
ref:
|
|
39060
|
+
ref: T,
|
|
39064
39061
|
type: "file",
|
|
39065
39062
|
onChange: N
|
|
39066
39063
|
}
|
|
@@ -39818,13 +39815,13 @@ const k4 = ({
|
|
|
39818
39815
|
// () => roomName.length >= 3 && roomDescription.length >= 5,
|
|
39819
39816
|
() => c.length >= 3,
|
|
39820
39817
|
[c, f]
|
|
39821
|
-
),
|
|
39818
|
+
), x = (L) => L.trim().length < 3 ? "Room name must be at least 3 characters." : "", B = (L) => {
|
|
39822
39819
|
const W = L.target.value;
|
|
39823
39820
|
l(W), w((z) => ({
|
|
39824
39821
|
...z,
|
|
39825
|
-
name:
|
|
39822
|
+
name: x(W)
|
|
39826
39823
|
}));
|
|
39827
|
-
}, P = () => s(!0),
|
|
39824
|
+
}, P = () => s(!0), T = () => {
|
|
39828
39825
|
u("0"), s(!1), l(""), k([]);
|
|
39829
39826
|
}, _ = async (L) => {
|
|
39830
39827
|
y(L);
|
|
@@ -39901,7 +39898,7 @@ const k4 = ({
|
|
|
39901
39898
|
),
|
|
39902
39899
|
r && /* @__PURE__ */ U(es, { children: [
|
|
39903
39900
|
A === "0" && /* @__PURE__ */ U(Fr, { children: [
|
|
39904
|
-
/* @__PURE__ */ g(qi, { onClick:
|
|
39901
|
+
/* @__PURE__ */ g(qi, { onClick: T, style: { fontSize: 24 }, children: "×" }),
|
|
39905
39902
|
/* @__PURE__ */ g(Qr, { children: "Create New Chat" }),
|
|
39906
39903
|
/* @__PURE__ */ g(
|
|
39907
39904
|
Vi,
|
|
@@ -39964,7 +39961,7 @@ const k4 = ({
|
|
|
39964
39961
|
/* @__PURE__ */ g(
|
|
39965
39962
|
xe,
|
|
39966
39963
|
{
|
|
39967
|
-
onClick:
|
|
39964
|
+
onClick: T,
|
|
39968
39965
|
text: "Cancel",
|
|
39969
39966
|
style: { width: "100%" },
|
|
39970
39967
|
unstyled: !0,
|
|
@@ -39985,7 +39982,7 @@ const k4 = ({
|
|
|
39985
39982
|
] })
|
|
39986
39983
|
] }),
|
|
39987
39984
|
A === "1" && /* @__PURE__ */ U(Fr, { style: { minHeight: "500px" }, children: [
|
|
39988
|
-
/* @__PURE__ */ g(qi, { onClick:
|
|
39985
|
+
/* @__PURE__ */ g(qi, { onClick: T, style: { fontSize: 24 }, children: "×" }),
|
|
39989
39986
|
/* @__PURE__ */ g(Qr, { children: "Select users to add to Chat" }),
|
|
39990
39987
|
/* @__PURE__ */ g(
|
|
39991
39988
|
rn,
|
|
@@ -40242,7 +40239,7 @@ function XW() {
|
|
|
40242
40239
|
}
|
|
40243
40240
|
}
|
|
40244
40241
|
}
|
|
40245
|
-
var k = A, b = u,
|
|
40242
|
+
var k = A, b = u, x = o, B = a, P = t, T = c, _ = i, I = h, N = d, R = n, L = s, W = r, z = l, V = !1;
|
|
40246
40243
|
function $(te) {
|
|
40247
40244
|
return V || (V = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), D(te) || E(te) === A;
|
|
40248
40245
|
}
|
|
@@ -40282,7 +40279,7 @@ function XW() {
|
|
|
40282
40279
|
function de(te) {
|
|
40283
40280
|
return E(te) === l;
|
|
40284
40281
|
}
|
|
40285
|
-
Oe.AsyncMode = k, Oe.ConcurrentMode = b, Oe.ContextConsumer =
|
|
40282
|
+
Oe.AsyncMode = k, Oe.ConcurrentMode = b, Oe.ContextConsumer = x, Oe.ContextProvider = B, Oe.Element = P, Oe.ForwardRef = T, Oe.Fragment = _, Oe.Lazy = I, Oe.Memo = N, Oe.Portal = R, Oe.Profiler = L, Oe.StrictMode = W, Oe.Suspense = z, Oe.isAsyncMode = $, Oe.isConcurrentMode = D, Oe.isContextConsumer = H, Oe.isContextProvider = Y, Oe.isElement = S, Oe.isForwardRef = j, Oe.isFragment = re, Oe.isLazy = ie, Oe.isMemo = pe, Oe.isPortal = oe, Oe.isProfiler = fe, Oe.isStrictMode = X, Oe.isSuspense = de, Oe.isValidElementType = w, Oe.typeOf = E;
|
|
40286
40283
|
})()), Oe;
|
|
40287
40284
|
}
|
|
40288
40285
|
var pb;
|
|
@@ -40433,9 +40430,9 @@ function $W() {
|
|
|
40433
40430
|
element: E(),
|
|
40434
40431
|
elementType: k(),
|
|
40435
40432
|
instanceOf: b,
|
|
40436
|
-
node:
|
|
40433
|
+
node: T(),
|
|
40437
40434
|
objectOf: B,
|
|
40438
|
-
oneOf:
|
|
40435
|
+
oneOf: x,
|
|
40439
40436
|
oneOfType: P,
|
|
40440
40437
|
shape: I,
|
|
40441
40438
|
exact: N
|
|
@@ -40537,7 +40534,7 @@ function $W() {
|
|
|
40537
40534
|
}
|
|
40538
40535
|
return v(H);
|
|
40539
40536
|
}
|
|
40540
|
-
function
|
|
40537
|
+
function x(D) {
|
|
40541
40538
|
if (!Array.isArray(D))
|
|
40542
40539
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? s(
|
|
40543
40540
|
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
@@ -40593,7 +40590,7 @@ function $W() {
|
|
|
40593
40590
|
}
|
|
40594
40591
|
return v(S);
|
|
40595
40592
|
}
|
|
40596
|
-
function
|
|
40593
|
+
function T() {
|
|
40597
40594
|
function D(H, Y, S, j, re) {
|
|
40598
40595
|
return R(H[Y]) ? null : new p("Invalid " + j + " `" + re + "` supplied to " + ("`" + S + "`, expected a ReactNode."));
|
|
40599
40596
|
}
|
|
@@ -41453,13 +41450,13 @@ function sG() {
|
|
|
41453
41450
|
}
|
|
41454
41451
|
for (var b = 0, y = 0; y < A.length; y++)
|
|
41455
41452
|
b += A[y].totalCount;
|
|
41456
|
-
for (var
|
|
41453
|
+
for (var x = new Array(b), B = 0, y = 0; y < c; y++)
|
|
41457
41454
|
for (var h = 0; h < A.length; h++)
|
|
41458
|
-
y < f[h].length && (
|
|
41455
|
+
y < f[h].length && (x[B++] = f[h][y]);
|
|
41459
41456
|
for (var y = 0; y < l; y++)
|
|
41460
41457
|
for (var h = 0; h < A.length; h++)
|
|
41461
|
-
y < d[h].length && (
|
|
41462
|
-
return
|
|
41458
|
+
y < d[h].length && (x[B++] = d[h][y]);
|
|
41459
|
+
return x;
|
|
41463
41460
|
}, af = s, af;
|
|
41464
41461
|
}
|
|
41465
41462
|
var po = {}, _b;
|
|
@@ -41540,10 +41537,10 @@ function oG() {
|
|
|
41540
41537
|
size: n.default.number,
|
|
41541
41538
|
value: n.default.string.isRequired
|
|
41542
41539
|
}, h = (0, o.forwardRef)(function(p, v) {
|
|
41543
|
-
var y = p.bgColor, C = y === void 0 ? "#FFFFFF" : y, w = p.fgColor, E = w === void 0 ? "#000000" : w, k = p.level, b = k === void 0 ? "L" : k,
|
|
41540
|
+
var y = p.bgColor, C = y === void 0 ? "#FFFFFF" : y, w = p.fgColor, E = w === void 0 ? "#000000" : w, k = p.level, b = k === void 0 ? "L" : k, x = p.size, B = x === void 0 ? 256 : x, P = p.value, T = f(p, ["bgColor", "fgColor", "level", "size", "value"]), _ = new a.default(-1, r.default[b]);
|
|
41544
41541
|
_.addData(P), _.make();
|
|
41545
41542
|
var I = _.modules;
|
|
41546
|
-
return A.default.createElement(c.default, e({},
|
|
41543
|
+
return A.default.createElement(c.default, e({}, T, {
|
|
41547
41544
|
bgColor: C,
|
|
41548
41545
|
bgD: I.map(function(N, R) {
|
|
41549
41546
|
return N.map(function(L, W) {
|
|
@@ -42996,12 +42993,12 @@ const Ob = Q.div`
|
|
|
42996
42993
|
u(!0);
|
|
42997
42994
|
}, []), p = async (k, b) => {
|
|
42998
42995
|
try {
|
|
42999
|
-
const
|
|
42996
|
+
const x = Ca(
|
|
43000
42997
|
k,
|
|
43001
42998
|
r?.xmppSettings?.conference,
|
|
43002
42999
|
b
|
|
43003
43000
|
);
|
|
43004
|
-
if (!
|
|
43001
|
+
if (!x || !x.jid) {
|
|
43005
43002
|
console.error(
|
|
43006
43003
|
"handleRoomCreation: failed to normalize new private room",
|
|
43007
43004
|
k
|
|
@@ -43016,30 +43013,30 @@ const Ob = Q.div`
|
|
|
43016
43013
|
}
|
|
43017
43014
|
if (t(
|
|
43018
43015
|
ga({
|
|
43019
|
-
room:
|
|
43016
|
+
room: x,
|
|
43020
43017
|
xmpp: n
|
|
43021
43018
|
})
|
|
43022
|
-
), n &&
|
|
43019
|
+
), n && x.jid) {
|
|
43023
43020
|
try {
|
|
43024
|
-
await n.presenceInRoomStanza(
|
|
43021
|
+
await n.presenceInRoomStanza(x.jid);
|
|
43025
43022
|
} catch (B) {
|
|
43026
43023
|
console.warn("presenceInRoomStanza failed (non-fatal):", B);
|
|
43027
43024
|
}
|
|
43028
43025
|
try {
|
|
43029
|
-
n.getHistoryStanza(
|
|
43026
|
+
n.getHistoryStanza(x.jid, 10);
|
|
43030
43027
|
} catch (B) {
|
|
43031
43028
|
console.warn("getHistoryStanza failed (non-fatal):", B);
|
|
43032
43029
|
}
|
|
43033
43030
|
}
|
|
43034
|
-
t(et({ roomJID:
|
|
43031
|
+
t(et({ roomJID: x.jid })), i({
|
|
43035
43032
|
id: Date.now().toString(),
|
|
43036
43033
|
title: "Success!",
|
|
43037
43034
|
message: "Room created succusfully!",
|
|
43038
43035
|
type: "success",
|
|
43039
43036
|
duration: 3e3
|
|
43040
43037
|
});
|
|
43041
|
-
} catch (
|
|
43042
|
-
console.error("Error handling room creation:",
|
|
43038
|
+
} catch (x) {
|
|
43039
|
+
console.error("Error handling room creation:", x);
|
|
43043
43040
|
}
|
|
43044
43041
|
}, v = he(async () => {
|
|
43045
43042
|
i({
|
|
@@ -43063,26 +43060,26 @@ const Ob = Q.div`
|
|
|
43063
43060
|
return;
|
|
43064
43061
|
}
|
|
43065
43062
|
try {
|
|
43066
|
-
const
|
|
43067
|
-
await p(
|
|
43068
|
-
} catch (
|
|
43069
|
-
console.error("postPrivateRoom failed:",
|
|
43063
|
+
const x = await K5(b);
|
|
43064
|
+
await p(x, 2), k = x?.name || "";
|
|
43065
|
+
} catch (x) {
|
|
43066
|
+
console.error("postPrivateRoom failed:", x), i({
|
|
43070
43067
|
id: Date.now().toString(),
|
|
43071
43068
|
title: "Error",
|
|
43072
|
-
message:
|
|
43069
|
+
message: x?.message || "Failed to create private chat",
|
|
43073
43070
|
type: "error",
|
|
43074
43071
|
duration: 4e3
|
|
43075
43072
|
});
|
|
43076
43073
|
return;
|
|
43077
43074
|
}
|
|
43078
43075
|
} else {
|
|
43079
|
-
const b = oA(a.id), P = [oA(s.defaultWallet.walletAddress), b].sort().join(".").toLowerCase(),
|
|
43076
|
+
const b = oA(a.id), P = [oA(s.defaultWallet.walletAddress), b].sort().join(".").toLowerCase(), T = [
|
|
43080
43077
|
s.firstName,
|
|
43081
43078
|
a.name?.split(" ")?.[0]
|
|
43082
43079
|
].sort().join(" and ");
|
|
43083
43080
|
k = await n.createPrivateRoomStanza(
|
|
43084
|
-
|
|
43085
|
-
`Private chat ${
|
|
43081
|
+
T,
|
|
43082
|
+
`Private chat ${T}`,
|
|
43086
43083
|
P
|
|
43087
43084
|
), k && (await n.inviteRoomRequestStanza(b, k), await n.getRoomsStanza());
|
|
43088
43085
|
}
|
|
@@ -43678,7 +43675,7 @@ const Ob = Q.div`
|
|
|
43678
43675
|
c(KA({ jid: b }));
|
|
43679
43676
|
}), f && k.includes(f))) {
|
|
43680
43677
|
const b = (e || []).find(
|
|
43681
|
-
(
|
|
43678
|
+
(x) => Qb(x) && x.jid !== f
|
|
43682
43679
|
)?.jid || null;
|
|
43683
43680
|
c(et({ roomJID: b }));
|
|
43684
43681
|
}
|
|
@@ -43702,9 +43699,9 @@ const Ob = Q.div`
|
|
|
43702
43699
|
(P) => !!P && typeof P == "object" && typeof P.jid == "string" && P.jid.length > 0
|
|
43703
43700
|
).filter(
|
|
43704
43701
|
(P) => F4(P).toLowerCase().includes(k)
|
|
43705
|
-
).sort((P,
|
|
43702
|
+
).sort((P, T) => {
|
|
43706
43703
|
const _ = Fb(P);
|
|
43707
|
-
return Fb(
|
|
43704
|
+
return Fb(T) - _;
|
|
43708
43705
|
});
|
|
43709
43706
|
b.set(k, B);
|
|
43710
43707
|
}
|
|
@@ -44294,7 +44291,7 @@ const Oz = (e) => {
|
|
|
44294
44291
|
}));
|
|
44295
44292
|
},
|
|
44296
44293
|
[n]
|
|
44297
|
-
),
|
|
44294
|
+
), x = he(
|
|
44298
44295
|
(I, N) => {
|
|
44299
44296
|
if (!n || !I || !N) return;
|
|
44300
44297
|
const R = Date.now(), L = () => {
|
|
@@ -44421,7 +44418,7 @@ const Oz = (e) => {
|
|
|
44421
44418
|
t || "en",
|
|
44422
44419
|
z
|
|
44423
44420
|
)
|
|
44424
|
-
) && (b(N),
|
|
44421
|
+
) && (b(N), x(N, z)), a({
|
|
44425
44422
|
message: I,
|
|
44426
44423
|
roomJID: N,
|
|
44427
44424
|
user: A,
|
|
@@ -44488,7 +44485,7 @@ const Oz = (e) => {
|
|
|
44488
44485
|
W || "",
|
|
44489
44486
|
z
|
|
44490
44487
|
)
|
|
44491
|
-
) && (b(N),
|
|
44488
|
+
) && (b(N), x(N, z)), a({
|
|
44492
44489
|
message: I,
|
|
44493
44490
|
roomJID: N,
|
|
44494
44491
|
user: A,
|
|
@@ -44525,10 +44522,10 @@ const Oz = (e) => {
|
|
|
44525
44522
|
w,
|
|
44526
44523
|
k,
|
|
44527
44524
|
b,
|
|
44528
|
-
|
|
44525
|
+
x,
|
|
44529
44526
|
B
|
|
44530
44527
|
]
|
|
44531
|
-
),
|
|
44528
|
+
), T = he(
|
|
44532
44529
|
async (I) => {
|
|
44533
44530
|
if (!/\S/.test(String(I || ""))) {
|
|
44534
44531
|
Z.log("Cannot edit message to empty text");
|
|
@@ -44679,7 +44676,7 @@ const Oz = (e) => {
|
|
|
44679
44676
|
return {
|
|
44680
44677
|
sendMessage: P,
|
|
44681
44678
|
sendMedia: _,
|
|
44682
|
-
sendEditMessage:
|
|
44679
|
+
sendEditMessage: T,
|
|
44683
44680
|
isLastMessageFromUserAndProcessing: E
|
|
44684
44681
|
};
|
|
44685
44682
|
}, j4 = () => {
|
|
@@ -44829,7 +44826,7 @@ const Oz = (e) => {
|
|
|
44829
44826
|
), b = he(
|
|
44830
44827
|
(V, $) => v(V, $, c),
|
|
44831
44828
|
[c]
|
|
44832
|
-
),
|
|
44829
|
+
), x = he(
|
|
44833
44830
|
async (V, $, D) => {
|
|
44834
44831
|
if (!s && !u?.[V]?.historyComplete) {
|
|
44835
44832
|
const H = typeof D != "string" ? D : Number(
|
|
@@ -44876,7 +44873,7 @@ const Oz = (e) => {
|
|
|
44876
44873
|
A,
|
|
44877
44874
|
h.length
|
|
44878
44875
|
);
|
|
44879
|
-
const P = c ? u?.[c] : void 0,
|
|
44876
|
+
const P = c ? u?.[c] : void 0, T = A?.noMessagesPlaceholder, _ = (P?.messages?.length || 0) > 0, I = !!d, N = !!f, R = !!P?.isLoading, L = !_ && P?.historyPreloadState === "loading", W = I || N || R || L, z = !_ && (N || R || L);
|
|
44880
44877
|
return Pn("chat-room-history-loader", W), Pn(
|
|
44881
44878
|
"chat-room-history-loader:globalLoading",
|
|
44882
44879
|
I
|
|
@@ -44908,7 +44905,7 @@ const Oz = (e) => {
|
|
|
44908
44905
|
z ? /* @__PURE__ */ g(tn, { color: A?.colors?.primary }) : Object.keys(u).length < 1 || !c ? /* @__PURE__ */ g(c3, {}) : _ ? /* @__PURE__ */ g(
|
|
44909
44906
|
h3,
|
|
44910
44907
|
{
|
|
44911
|
-
loadMoreMessages:
|
|
44908
|
+
loadMoreMessages: x,
|
|
44912
44909
|
CustomMessage: e,
|
|
44913
44910
|
user: o,
|
|
44914
44911
|
roomJID: c,
|
|
@@ -44916,7 +44913,7 @@ const Oz = (e) => {
|
|
|
44916
44913
|
loading: s,
|
|
44917
44914
|
isReply: !1
|
|
44918
44915
|
}
|
|
44919
|
-
) :
|
|
44916
|
+
) : T ? /* @__PURE__ */ g(T, {}) : /* @__PURE__ */ g(wz, {}),
|
|
44920
44917
|
l.isEdit && /* @__PURE__ */ g(U4, { text: l.text, onClose: B }),
|
|
44921
44918
|
(() => {
|
|
44922
44919
|
const V = {
|
|
@@ -45286,15 +45283,15 @@ class Ur extends Qa {
|
|
|
45286
45283
|
let f = l.clientX, d = l.clientY, h = !1;
|
|
45287
45284
|
const p = Date.now(), v = (k) => {
|
|
45288
45285
|
if (k.preventDefault(), k.stopPropagation(), A && Date.now() - p < o) return;
|
|
45289
|
-
const b = k.clientX,
|
|
45286
|
+
const b = k.clientX, x = k.clientY, B = b - f, P = x - d;
|
|
45290
45287
|
if (h || Math.abs(B) > s || Math.abs(P) > s) {
|
|
45291
|
-
const
|
|
45292
|
-
h || (i?.(f - _, d - I), h = !0), n(B, P, b - _,
|
|
45288
|
+
const T = t.getBoundingClientRect(), { left: _, top: I } = T;
|
|
45289
|
+
h || (i?.(f - _, d - I), h = !0), n(B, P, b - _, x - I), f = b, d = x;
|
|
45293
45290
|
}
|
|
45294
45291
|
}, y = (k) => {
|
|
45295
45292
|
if (h) {
|
|
45296
|
-
const b = k.clientX,
|
|
45297
|
-
r?.(b - P,
|
|
45293
|
+
const b = k.clientX, x = k.clientY, B = t.getBoundingClientRect(), { left: P, top: T } = B;
|
|
45294
|
+
r?.(b - P, x - T);
|
|
45298
45295
|
}
|
|
45299
45296
|
u();
|
|
45300
45297
|
}, C = (k) => {
|
|
@@ -45466,11 +45463,11 @@ class Ur extends Qa {
|
|
|
45466
45463
|
const k = Math.round(E * p);
|
|
45467
45464
|
if (k > y) {
|
|
45468
45465
|
const B = Math.round(C * c * r), P = B + Math.round(w * c * r) || 1;
|
|
45469
|
-
let
|
|
45470
|
-
n.barAlign === "top" ?
|
|
45466
|
+
let T = c - B;
|
|
45467
|
+
n.barAlign === "top" ? T = 0 : n.barAlign === "bottom" && (T = u - P), i[v](y * (f + d), T, f, P, h), y = k, C = 0, w = 0;
|
|
45471
45468
|
}
|
|
45472
|
-
const b = Math.abs(s[E] || 0),
|
|
45473
|
-
b > C && (C = b),
|
|
45469
|
+
const b = Math.abs(s[E] || 0), x = Math.abs(a[E] || 0);
|
|
45470
|
+
b > C && (C = b), x > w && (w = x);
|
|
45474
45471
|
}
|
|
45475
45472
|
i.fill(), i.closePath();
|
|
45476
45473
|
}
|
|
@@ -49189,35 +49186,35 @@ const Yq = Q.div`
|
|
|
49189
49186
|
handleReactionMessage: A
|
|
49190
49187
|
}) => {
|
|
49191
49188
|
const { roomsList: u, activeRoomJID: c } = sn(), [l, f] = le(!1), d = we(
|
|
49192
|
-
(
|
|
49189
|
+
(x) => x.chatSettingStore.config
|
|
49193
49190
|
), h = () => {
|
|
49194
49191
|
d?.disableInteractions || r({ visible: !1, x: 0, y: 0 });
|
|
49195
|
-
}, p = (
|
|
49196
|
-
|
|
49197
|
-
}, v = (
|
|
49198
|
-
navigator.clipboard.writeText(
|
|
49192
|
+
}, p = (x) => {
|
|
49193
|
+
x.target === x.currentTarget && h();
|
|
49194
|
+
}, v = (x) => {
|
|
49195
|
+
navigator.clipboard.writeText(x), h();
|
|
49199
49196
|
}, y = () => {
|
|
49200
49197
|
s(), h();
|
|
49201
49198
|
}, C = () => {
|
|
49202
49199
|
a(), h();
|
|
49203
|
-
}, w = (
|
|
49204
|
-
B.target !== B.currentTarget && (Z.log("emoji",
|
|
49205
|
-
}, E = (
|
|
49206
|
-
B.target === B.currentTarget && (MA.emojis[
|
|
49207
|
-
}, k = (
|
|
49208
|
-
const B = MA.emojis[
|
|
49200
|
+
}, w = (x, B) => {
|
|
49201
|
+
B.target !== B.currentTarget && (Z.log("emoji", x), A(x.id), h());
|
|
49202
|
+
}, E = (x, B) => {
|
|
49203
|
+
B.target === B.currentTarget && (MA.emojis[x], A(x), h());
|
|
49204
|
+
}, k = (x) => {
|
|
49205
|
+
const B = MA.emojis[x];
|
|
49209
49206
|
return B ? B.skins[0].native : "";
|
|
49210
|
-
}, b = (
|
|
49207
|
+
}, b = (x, B) => {
|
|
49211
49208
|
if (typeof window > "u")
|
|
49212
|
-
return { adjustedX:
|
|
49209
|
+
return { adjustedX: x, adjustedY: B };
|
|
49213
49210
|
const _ = window.innerWidth, I = window.innerHeight;
|
|
49214
|
-
let N =
|
|
49215
|
-
return
|
|
49211
|
+
let N = x, R = B;
|
|
49212
|
+
return x + 320 > _ && (N = _ - 320 - 10), B + 435 > I && (R = I - 435 - 10), { adjustedX: N, adjustedY: R };
|
|
49216
49213
|
};
|
|
49217
49214
|
return ge(() => {
|
|
49218
49215
|
if (typeof window > "u")
|
|
49219
49216
|
return;
|
|
49220
|
-
const
|
|
49217
|
+
const x = () => {
|
|
49221
49218
|
if (l) {
|
|
49222
49219
|
const { adjustedX: B, adjustedY: P } = b(
|
|
49223
49220
|
i.x,
|
|
@@ -49226,8 +49223,8 @@ const Yq = Q.div`
|
|
|
49226
49223
|
r({ visible: !0, x: B, y: P });
|
|
49227
49224
|
}
|
|
49228
49225
|
};
|
|
49229
|
-
return window.addEventListener("scroll",
|
|
49230
|
-
typeof window < "u" && window.removeEventListener("scroll",
|
|
49226
|
+
return window.addEventListener("scroll", x), () => {
|
|
49227
|
+
typeof window < "u" && window.removeEventListener("scroll", x);
|
|
49231
49228
|
};
|
|
49232
49229
|
}, [l, i.x, i.y]), d?.disableInteractions || !i.visible ? null : /* @__PURE__ */ g(je, { children: !n.isDeleted && /* @__PURE__ */ g(Wq, { onClick: p, children: /* @__PURE__ */ U(
|
|
49233
49230
|
Qq,
|
|
@@ -49235,21 +49232,21 @@ const Yq = Q.div`
|
|
|
49235
49232
|
style: { top: i.y, left: i.x },
|
|
49236
49233
|
children: [
|
|
49237
49234
|
/* @__PURE__ */ U(Uq, { children: [
|
|
49238
|
-
Gq.map((
|
|
49235
|
+
Gq.map((x) => /* @__PURE__ */ g(
|
|
49239
49236
|
Hq,
|
|
49240
49237
|
{
|
|
49241
49238
|
className: "apple-emoji",
|
|
49242
|
-
onClick: (B) => E(
|
|
49243
|
-
children: k(
|
|
49239
|
+
onClick: (B) => E(x, B),
|
|
49240
|
+
children: k(x)
|
|
49244
49241
|
},
|
|
49245
|
-
|
|
49242
|
+
x
|
|
49246
49243
|
)),
|
|
49247
49244
|
/* @__PURE__ */ g(
|
|
49248
49245
|
jq,
|
|
49249
49246
|
{
|
|
49250
49247
|
isRotated: l,
|
|
49251
|
-
onClick: (
|
|
49252
|
-
|
|
49248
|
+
onClick: (x) => {
|
|
49249
|
+
x.stopPropagation();
|
|
49253
49250
|
const { adjustedX: B, adjustedY: P } = b(
|
|
49254
49251
|
i.x,
|
|
49255
49252
|
i.y
|
|
@@ -49269,7 +49266,7 @@ const Yq = Q.div`
|
|
|
49269
49266
|
{
|
|
49270
49267
|
skinTonePosition: "none",
|
|
49271
49268
|
searchPosition: "static",
|
|
49272
|
-
onEmojiSelect: (
|
|
49269
|
+
onEmojiSelect: (x, B) => w(x, B),
|
|
49273
49270
|
title: "Pick emoji",
|
|
49274
49271
|
emoji: "point_up",
|
|
49275
49272
|
theme: "light",
|
|
@@ -49641,7 +49638,7 @@ const Yq = Q.div`
|
|
|
49641
49638
|
k.current = setTimeout(() => {
|
|
49642
49639
|
E(R);
|
|
49643
49640
|
}, 500);
|
|
49644
|
-
},
|
|
49641
|
+
}, x = () => {
|
|
49645
49642
|
k.current && (clearTimeout(k.current), k.current = null);
|
|
49646
49643
|
}, B = (R) => {
|
|
49647
49644
|
R?.name !== "Deleted User" && (p(Et(Fe.PROFILE)), p(Vd(R)));
|
|
@@ -49655,7 +49652,7 @@ const Yq = Q.div`
|
|
|
49655
49652
|
return p(
|
|
49656
49653
|
qm({ id: e.id, chatJID: e.roomJid })
|
|
49657
49654
|
);
|
|
49658
|
-
},
|
|
49655
|
+
}, T = () => {
|
|
49659
49656
|
p(
|
|
49660
49657
|
AA({
|
|
49661
49658
|
isDeleteModal: !0,
|
|
@@ -49739,7 +49736,7 @@ const Yq = Q.div`
|
|
|
49739
49736
|
$isUser: t,
|
|
49740
49737
|
onContextMenu: E,
|
|
49741
49738
|
onTouchStart: b,
|
|
49742
|
-
onTouchEnd:
|
|
49739
|
+
onTouchEnd: x,
|
|
49743
49740
|
children: [
|
|
49744
49741
|
!t && /* @__PURE__ */ g(VR, { $isUser: t, $color: a?.colors?.primary, children: d }),
|
|
49745
49742
|
!n && h?.text && /* @__PURE__ */ g(
|
|
@@ -49816,7 +49813,7 @@ const Yq = Q.div`
|
|
|
49816
49813
|
setContextMenu: y,
|
|
49817
49814
|
contextMenu: v,
|
|
49818
49815
|
handleReplyMessage: P,
|
|
49819
|
-
handleDeleteMessage:
|
|
49816
|
+
handleDeleteMessage: T,
|
|
49820
49817
|
handleEditMessage: _,
|
|
49821
49818
|
handleReactionMessage: I
|
|
49822
49819
|
}
|
|
@@ -50111,9 +50108,9 @@ const Yq = Q.div`
|
|
|
50111
50108
|
sendEditMessage: l,
|
|
50112
50109
|
isLastMessageFromUserAndProcessing: f
|
|
50113
50110
|
} = H4(), [d, h] = le(!1), [p, v] = le(!1), y = he(
|
|
50114
|
-
async (B, P,
|
|
50111
|
+
async (B, P, T) => {
|
|
50115
50112
|
if (!d && !a?.[B]?.historyComplete) {
|
|
50116
|
-
const _ = typeof
|
|
50113
|
+
const _ = typeof T != "string" ? T : Number(
|
|
50117
50114
|
a[B].messages[a[B].messages.length - 2].id
|
|
50118
50115
|
);
|
|
50119
50116
|
h(!0), i?.getHistoryStanza(B, P, _, void 0, {
|
|
@@ -50159,7 +50156,7 @@ const Yq = Q.div`
|
|
|
50159
50156
|
);
|
|
50160
50157
|
}, []), b = () => {
|
|
50161
50158
|
r(li({ isEdit: !1 }));
|
|
50162
|
-
},
|
|
50159
|
+
}, x = () => {
|
|
50163
50160
|
r(F9({ chatJID: e.roomJid })), r(li({ isEdit: !1 }));
|
|
50164
50161
|
};
|
|
50165
50162
|
return /* @__PURE__ */ U(
|
|
@@ -50174,7 +50171,7 @@ const Yq = Q.div`
|
|
|
50174
50171
|
Jt,
|
|
50175
50172
|
{
|
|
50176
50173
|
headerTitle: "Thread",
|
|
50177
|
-
handleCloseModal:
|
|
50174
|
+
handleCloseModal: x
|
|
50178
50175
|
}
|
|
50179
50176
|
),
|
|
50180
50177
|
/* @__PURE__ */ g(
|
|
@@ -50215,7 +50212,7 @@ const Yq = Q.div`
|
|
|
50215
50212
|
cursor: "pointer",
|
|
50216
50213
|
borderBottom: "1px solid"
|
|
50217
50214
|
},
|
|
50218
|
-
onClick:
|
|
50215
|
+
onClick: x,
|
|
50219
50216
|
children: a[e.roomJid].name
|
|
50220
50217
|
}
|
|
50221
50218
|
)
|
|
@@ -50539,9 +50536,9 @@ const Yq = Q.div`
|
|
|
50539
50536
|
(b) => u(C, b)
|
|
50540
50537
|
)) {
|
|
50541
50538
|
Z.log(`[Catchup] anchor_found room=${p} anchor=${E}`);
|
|
50542
|
-
const b = ur(C),
|
|
50543
|
-
|
|
50544
|
-
`[Catchup] catchup_apply_count room=${p} count=${
|
|
50539
|
+
const b = ur(C), x = w.filter((B) => ur(B) > b);
|
|
50540
|
+
x.length > 0 && await a(p, x), Z.log(
|
|
50541
|
+
`[Catchup] catchup_apply_count room=${p} count=${x.length}`
|
|
50545
50542
|
);
|
|
50546
50543
|
return;
|
|
50547
50544
|
}
|
|
@@ -50621,16 +50618,16 @@ const RV = ({
|
|
|
50621
50618
|
initMode: k
|
|
50622
50619
|
} = jt(), b = j4();
|
|
50623
50620
|
we((S) => S.rooms.rooms);
|
|
50624
|
-
const { roomsList:
|
|
50625
|
-
|
|
50621
|
+
const { roomsList: x, activeRoomJID: B } = sn(), { user: P } = Rt(), T = be({}), _ = be({}), I = (S) => {
|
|
50622
|
+
T.current[S] = Date.now();
|
|
50626
50623
|
}, N = (S, j) => {
|
|
50627
|
-
const re =
|
|
50624
|
+
const re = T.current[j];
|
|
50628
50625
|
if (!re) return;
|
|
50629
50626
|
const ie = Date.now() - re;
|
|
50630
50627
|
_.current[S] = ie, Z.log(`[InitTiming] ${S} ${ie}ms`);
|
|
50631
50628
|
}, R = () => {
|
|
50632
50629
|
v.current || (v.current = setTimeout(() => {
|
|
50633
|
-
const S =
|
|
50630
|
+
const S = T.current, j = _.current, re = {};
|
|
50634
50631
|
Object.keys(j).forEach((ie) => {
|
|
50635
50632
|
re[ie] = j[ie];
|
|
50636
50633
|
}), Object.keys(re).length === 0 && [
|
|
@@ -50705,7 +50702,7 @@ const RV = ({
|
|
|
50705
50702
|
const j = S.client?.jid?.toString() || S.username || "xmpp-client";
|
|
50706
50703
|
(async () => {
|
|
50707
50704
|
if (!await L(S)) return;
|
|
50708
|
-
if (await W(S),
|
|
50705
|
+
if (await W(S), x && Object.keys(x).length > 0 && !d.current.has(j))
|
|
50709
50706
|
if (d.current.add(j), S.presencesReady)
|
|
50710
50707
|
Z.log(
|
|
50711
50708
|
"[InitTiming] bg:initRoomsPresence:skipped reason=presences_already_sent"
|
|
@@ -50713,7 +50710,7 @@ const RV = ({
|
|
|
50713
50710
|
else {
|
|
50714
50711
|
I("bg:initRoomsPresence:start");
|
|
50715
50712
|
try {
|
|
50716
|
-
await SV(S,
|
|
50713
|
+
await SV(S, x), N("bg:initRoomsPresence", "bg:initRoomsPresence:start");
|
|
50717
50714
|
} catch (de) {
|
|
50718
50715
|
console.warn("[InitTiming] bg:initRoomsPresence:error", de);
|
|
50719
50716
|
}
|
|
@@ -50834,15 +50831,15 @@ const RV = ({
|
|
|
50834
50831
|
if (P.xmppUsername)
|
|
50835
50832
|
if (IV({ roomJID: e, wasAutoSelected: t, config: n, dispatch: i }), y) {
|
|
50836
50833
|
if (n?.newArch !== !1) {
|
|
50837
|
-
if (!
|
|
50834
|
+
if (!x || Object.keys(x).length === 0) {
|
|
50838
50835
|
s(!1);
|
|
50839
50836
|
const re = await D(y);
|
|
50840
50837
|
Y(re);
|
|
50841
50838
|
} else
|
|
50842
|
-
Y(Object.values(
|
|
50839
|
+
Y(Object.values(x));
|
|
50843
50840
|
n?.enableRoomsRetry?.enabled && (Md(
|
|
50844
50841
|
e,
|
|
50845
|
-
|
|
50842
|
+
x
|
|
50846
50843
|
) || await $());
|
|
50847
50844
|
}
|
|
50848
50845
|
s(!0), w(y), u(!1), i(tt({ loading: !1 })), R(), V(y), n?.refreshTokens?.enabled && Pf();
|
|
@@ -50875,9 +50872,9 @@ const RV = ({
|
|
|
50875
50872
|
disableLastRead: !!n?.disableLastRead,
|
|
50876
50873
|
historyQoS: n?.historyQoS
|
|
50877
50874
|
},
|
|
50878
|
-
|
|
50875
|
+
x
|
|
50879
50876
|
).then((ie) => ie);
|
|
50880
|
-
if (N("xmpp:initClient", "xmpp:initClient:start"), N("initClient:create_instance", "initClient:create_instance:start"),
|
|
50877
|
+
if (N("xmpp:initClient", "xmpp:initClient:start"), N("initClient:create_instance", "initClient:create_instance:start"), x && Object.keys(x).length > 0)
|
|
50881
50878
|
s(!0);
|
|
50882
50879
|
else if (n?.newArch === !1)
|
|
50883
50880
|
I("xmpp:getRoomsStanza:start"), await re.getRoomsStanza(), N("xmpp:getRoomsStanza", "xmpp:getRoomsStanza:start");
|
|
@@ -50913,10 +50910,10 @@ const RV = ({
|
|
|
50913
50910
|
k,
|
|
50914
50911
|
E
|
|
50915
50912
|
]), ge(() => {
|
|
50916
|
-
y &&
|
|
50913
|
+
y && T.current["initClient:wait_online:start"] && y.status === "online" && N("initClient:wait_online", "initClient:wait_online:start");
|
|
50917
50914
|
}, [y?.status]), ge(() => {
|
|
50918
|
-
Y(Object.values(
|
|
50919
|
-
}, [
|
|
50915
|
+
Y(Object.values(x));
|
|
50916
|
+
}, [x, B, Y]), {
|
|
50920
50917
|
client: y,
|
|
50921
50918
|
inited: r,
|
|
50922
50919
|
isRetrying: c,
|
|
@@ -51000,7 +50997,7 @@ const RV = ({
|
|
|
51000
50997
|
u(S);
|
|
51001
50998
|
}, C = we((S) => S.rooms.rooms), w = we((S) => S.rooms.activeRoomJID), E = we((S) => S.rooms.isLoading), k = we(
|
|
51002
50999
|
(S) => !!S.rooms?.reportRoom?.isOpen
|
|
51003
|
-
), { loadingText: b } = sn(),
|
|
51000
|
+
), { loadingText: b } = sn(), x = Ve(() => {
|
|
51004
51001
|
if (w)
|
|
51005
51002
|
return C[w]?.messages?.find(
|
|
51006
51003
|
(S) => S?.activeMessage
|
|
@@ -51011,7 +51008,7 @@ const RV = ({
|
|
|
51011
51008
|
});
|
|
51012
51009
|
}, P = () => {
|
|
51013
51010
|
_.deleteMessageStanza(o.roomJid, o.messageId), p(AA({ isDeleteModal: !1 }));
|
|
51014
|
-
},
|
|
51011
|
+
}, T = () => {
|
|
51015
51012
|
p(AA({ isDeleteModal: !1 }));
|
|
51016
51013
|
}, {
|
|
51017
51014
|
client: _,
|
|
@@ -51107,10 +51104,10 @@ const RV = ({
|
|
|
51107
51104
|
onRoomClick: B
|
|
51108
51105
|
}
|
|
51109
51106
|
)),
|
|
51110
|
-
c ? A ?
|
|
51107
|
+
c ? A ? x?.activeMessage ? /* @__PURE__ */ g(
|
|
51111
51108
|
vv,
|
|
51112
51109
|
{
|
|
51113
|
-
activeMessage:
|
|
51110
|
+
activeMessage: x,
|
|
51114
51111
|
user: s,
|
|
51115
51112
|
customMessageComponent: r
|
|
51116
51113
|
}
|
|
@@ -51126,10 +51123,10 @@ const RV = ({
|
|
|
51126
51123
|
CustomMessageComponent: r,
|
|
51127
51124
|
handleBackClick: y
|
|
51128
51125
|
}
|
|
51129
|
-
) : null :
|
|
51126
|
+
) : null : x?.activeMessage ? /* @__PURE__ */ g(
|
|
51130
51127
|
vv,
|
|
51131
51128
|
{
|
|
51132
|
-
activeMessage:
|
|
51129
|
+
activeMessage: x,
|
|
51133
51130
|
user: s,
|
|
51134
51131
|
customMessageComponent: r
|
|
51135
51132
|
}
|
|
@@ -51163,7 +51160,7 @@ const RV = ({
|
|
|
51163
51160
|
buttonText: "Delete",
|
|
51164
51161
|
backgroundColorButton: "#E53935",
|
|
51165
51162
|
handleClick: P,
|
|
51166
|
-
handleCloseModal:
|
|
51163
|
+
handleCloseModal: T
|
|
51167
51164
|
}
|
|
51168
51165
|
),
|
|
51169
51166
|
k && /* @__PURE__ */ g(kV, {})
|
|
@@ -51621,19 +51618,19 @@ const AJ = jA(void 0), uJ = 3, cJ = 3e4, lJ = ({ children: e, config: t }) => {
|
|
|
51621
51618
|
}, [r, b]), ge(() => {
|
|
51622
51619
|
r && b();
|
|
51623
51620
|
}, [r, b]);
|
|
51624
|
-
const
|
|
51621
|
+
const x = he((I) => {
|
|
51625
51622
|
I && i((N) => N.filter((R) => R.roomJID !== I));
|
|
51626
51623
|
}, []);
|
|
51627
51624
|
ge(() => {
|
|
51628
|
-
a &&
|
|
51629
|
-
}, [a,
|
|
51625
|
+
a && x(a);
|
|
51626
|
+
}, [a, x]), ge(() => {
|
|
51630
51627
|
c && typeof window < "u" && "Notification" in window && Notification.permission === "default" && Notification.requestPermission();
|
|
51631
51628
|
}, [c]);
|
|
51632
51629
|
const B = he(() => {
|
|
51633
51630
|
i([]);
|
|
51634
51631
|
}, []), P = he(
|
|
51635
51632
|
(I, N, R, L, W) => {
|
|
51636
|
-
|
|
51633
|
+
x(I);
|
|
51637
51634
|
const z = u?.onClick;
|
|
51638
51635
|
if (z) {
|
|
51639
51636
|
Promise.resolve(z({
|
|
@@ -51652,8 +51649,8 @@ const AJ = jA(void 0), uJ = 3, cJ = 3e4, lJ = ({ children: e, config: t }) => {
|
|
|
51652
51649
|
V && (V.scrollIntoView({ behavior: "smooth", block: "center" }), V.classList.add("message-highlight"), setTimeout(() => V.classList.remove("message-highlight"), 2e3));
|
|
51653
51650
|
}, 100));
|
|
51654
51651
|
},
|
|
51655
|
-
[
|
|
51656
|
-
),
|
|
51652
|
+
[x, s, u]
|
|
51653
|
+
), T = he(
|
|
51657
51654
|
(I, N, R, L) => {
|
|
51658
51655
|
const W = `${L}:${String(I?.xmppId || I?.id || "").trim()}`, V = {
|
|
51659
51656
|
id: `msg-notification-${I.id}-${Date.now()}`,
|
|
@@ -51674,7 +51671,7 @@ const AJ = jA(void 0), uJ = 3, cJ = 3e4, lJ = ({ children: e, config: t }) => {
|
|
|
51674
51671
|
[l, f]
|
|
51675
51672
|
), _ = he(
|
|
51676
51673
|
(I, N, R, L) => {
|
|
51677
|
-
if (c && r &&
|
|
51674
|
+
if (c && r && T(I, N, R, L), Ay({
|
|
51678
51675
|
config: A,
|
|
51679
51676
|
tabVisible: r
|
|
51680
51677
|
}).show) {
|
|
@@ -51698,7 +51695,7 @@ const AJ = jA(void 0), uJ = 3, cJ = 3e4, lJ = ({ children: e, config: t }) => {
|
|
|
51698
51695
|
);
|
|
51699
51696
|
}
|
|
51700
51697
|
},
|
|
51701
|
-
[A, c, r,
|
|
51698
|
+
[A, c, r, T, P]
|
|
51702
51699
|
);
|
|
51703
51700
|
return ge(() => {
|
|
51704
51701
|
if (!c) return;
|