@ethora/chat-component 25.11.5 → 25.11.6
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 +919 -918
- package/dist/main.js.map +1 -1
- package/dist/types/models/config.model.d.ts +13 -0
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -91,16 +91,16 @@ var $s = { exports: {} }, jd;
|
|
|
91
91
|
function Ms() {
|
|
92
92
|
if (jd) return $s.exports;
|
|
93
93
|
jd = 1;
|
|
94
|
-
var e = typeof Reflect == "object" ? Reflect : null, t = e && typeof e.apply == "function" ? e.apply : function(k, v,
|
|
95
|
-
return Function.prototype.apply.call(k, v,
|
|
94
|
+
var e = typeof Reflect == "object" ? Reflect : null, t = e && typeof e.apply == "function" ? e.apply : function(k, v, E) {
|
|
95
|
+
return Function.prototype.apply.call(k, v, E);
|
|
96
96
|
}, n;
|
|
97
97
|
e && typeof e.ownKeys == "function" ? n = e.ownKeys : Object.getOwnPropertySymbols ? n = function(k) {
|
|
98
98
|
return Object.getOwnPropertyNames(k).concat(Object.getOwnPropertySymbols(k));
|
|
99
99
|
} : n = function(k) {
|
|
100
100
|
return Object.getOwnPropertyNames(k);
|
|
101
101
|
};
|
|
102
|
-
function i(
|
|
103
|
-
console && console.warn && console.warn(
|
|
102
|
+
function i(C) {
|
|
103
|
+
console && console.warn && console.warn(C);
|
|
104
104
|
}
|
|
105
105
|
var r = Number.isNaN || function(k) {
|
|
106
106
|
return k !== k;
|
|
@@ -110,19 +110,19 @@ function Ms() {
|
|
|
110
110
|
}
|
|
111
111
|
$s.exports = s, $s.exports.once = y, s.EventEmitter = s, s.prototype._events = void 0, s.prototype._eventsCount = 0, s.prototype._maxListeners = void 0;
|
|
112
112
|
var a = 10;
|
|
113
|
-
function o(
|
|
114
|
-
if (typeof
|
|
115
|
-
throw new TypeError('The "listener" argument must be of type Function. Received type ' + typeof
|
|
113
|
+
function o(C) {
|
|
114
|
+
if (typeof C != "function")
|
|
115
|
+
throw new TypeError('The "listener" argument must be of type Function. Received type ' + typeof C);
|
|
116
116
|
}
|
|
117
117
|
Object.defineProperty(s, "defaultMaxListeners", {
|
|
118
118
|
enumerable: !0,
|
|
119
119
|
get: function() {
|
|
120
120
|
return a;
|
|
121
121
|
},
|
|
122
|
-
set: function(
|
|
123
|
-
if (typeof
|
|
124
|
-
throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' +
|
|
125
|
-
a =
|
|
122
|
+
set: function(C) {
|
|
123
|
+
if (typeof C != "number" || C < 0 || r(C))
|
|
124
|
+
throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' + C + ".");
|
|
125
|
+
a = C;
|
|
126
126
|
}
|
|
127
127
|
}), s.init = function() {
|
|
128
128
|
(this._events === void 0 || this._events === Object.getPrototypeOf(this)._events) && (this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0), this._maxListeners = this._maxListeners || void 0;
|
|
@@ -131,13 +131,13 @@ function Ms() {
|
|
|
131
131
|
throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received ' + k + ".");
|
|
132
132
|
return this._maxListeners = k, this;
|
|
133
133
|
};
|
|
134
|
-
function A(
|
|
135
|
-
return
|
|
134
|
+
function A(C) {
|
|
135
|
+
return C._maxListeners === void 0 ? s.defaultMaxListeners : C._maxListeners;
|
|
136
136
|
}
|
|
137
137
|
s.prototype.getMaxListeners = function() {
|
|
138
138
|
return A(this);
|
|
139
139
|
}, s.prototype.emit = function(k) {
|
|
140
|
-
for (var v = [],
|
|
140
|
+
for (var v = [], E = 1; E < arguments.length; E++) v.push(arguments[E]);
|
|
141
141
|
var I = k === "error", B = this._events;
|
|
142
142
|
if (B !== void 0)
|
|
143
143
|
I = I && B.error === void 0;
|
|
@@ -156,24 +156,24 @@ function Ms() {
|
|
|
156
156
|
if (typeof P == "function")
|
|
157
157
|
t(P, this, v);
|
|
158
158
|
else
|
|
159
|
-
for (var _ = P.length, Q = m(P, _),
|
|
160
|
-
t(Q[
|
|
159
|
+
for (var _ = P.length, Q = m(P, _), E = 0; E < _; ++E)
|
|
160
|
+
t(Q[E], this, v);
|
|
161
161
|
return !0;
|
|
162
162
|
};
|
|
163
|
-
function u(
|
|
163
|
+
function u(C, k, v, E) {
|
|
164
164
|
var I, B, x;
|
|
165
|
-
if (o(v), B =
|
|
165
|
+
if (o(v), B = C._events, B === void 0 ? (B = C._events = /* @__PURE__ */ Object.create(null), C._eventsCount = 0) : (B.newListener !== void 0 && (C.emit(
|
|
166
166
|
"newListener",
|
|
167
167
|
k,
|
|
168
168
|
v.listener ? v.listener : v
|
|
169
|
-
), B =
|
|
170
|
-
x = B[k] = v, ++
|
|
171
|
-
else if (typeof x == "function" ? x = B[k] =
|
|
169
|
+
), B = C._events), x = B[k]), x === void 0)
|
|
170
|
+
x = B[k] = v, ++C._eventsCount;
|
|
171
|
+
else if (typeof x == "function" ? x = B[k] = E ? [v, x] : [x, v] : E ? x.unshift(v) : x.push(v), I = A(C), I > 0 && x.length > I && !x.warned) {
|
|
172
172
|
x.warned = !0;
|
|
173
173
|
var D = new Error("Possible EventEmitter memory leak detected. " + x.length + " " + String(k) + " listeners added. Use emitter.setMaxListeners() to increase limit");
|
|
174
|
-
D.name = "MaxListenersExceededWarning", D.emitter =
|
|
174
|
+
D.name = "MaxListenersExceededWarning", D.emitter = C, D.type = k, D.count = x.length, i(D);
|
|
175
175
|
}
|
|
176
|
-
return
|
|
176
|
+
return C;
|
|
177
177
|
}
|
|
178
178
|
s.prototype.addListener = function(k, v) {
|
|
179
179
|
return u(this, k, v, !1);
|
|
@@ -184,70 +184,70 @@ function Ms() {
|
|
|
184
184
|
if (!this.fired)
|
|
185
185
|
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);
|
|
186
186
|
}
|
|
187
|
-
function f(
|
|
188
|
-
var
|
|
189
|
-
return I.listener = v,
|
|
187
|
+
function f(C, k, v) {
|
|
188
|
+
var E = { fired: !1, wrapFn: void 0, target: C, type: k, listener: v }, I = l.bind(E);
|
|
189
|
+
return I.listener = v, E.wrapFn = I, I;
|
|
190
190
|
}
|
|
191
191
|
s.prototype.once = function(k, v) {
|
|
192
192
|
return o(v), this.on(k, f(this, k, v)), this;
|
|
193
193
|
}, s.prototype.prependOnceListener = function(k, v) {
|
|
194
194
|
return o(v), this.prependListener(k, f(this, k, v)), this;
|
|
195
195
|
}, s.prototype.removeListener = function(k, v) {
|
|
196
|
-
var
|
|
196
|
+
var E, I, B, x, D;
|
|
197
197
|
if (o(v), I = this._events, I === void 0)
|
|
198
198
|
return this;
|
|
199
|
-
if (
|
|
199
|
+
if (E = I[k], E === void 0)
|
|
200
200
|
return this;
|
|
201
|
-
if (
|
|
202
|
-
--this._eventsCount === 0 ? this._events = /* @__PURE__ */ Object.create(null) : (delete I[k], I.removeListener && this.emit("removeListener", k,
|
|
203
|
-
else if (typeof
|
|
204
|
-
for (B = -1, x =
|
|
205
|
-
if (
|
|
206
|
-
D =
|
|
201
|
+
if (E === v || E.listener === v)
|
|
202
|
+
--this._eventsCount === 0 ? this._events = /* @__PURE__ */ Object.create(null) : (delete I[k], I.removeListener && this.emit("removeListener", k, E.listener || v));
|
|
203
|
+
else if (typeof E != "function") {
|
|
204
|
+
for (B = -1, x = E.length - 1; x >= 0; x--)
|
|
205
|
+
if (E[x] === v || E[x].listener === v) {
|
|
206
|
+
D = E[x].listener, B = x;
|
|
207
207
|
break;
|
|
208
208
|
}
|
|
209
209
|
if (B < 0)
|
|
210
210
|
return this;
|
|
211
|
-
B === 0 ?
|
|
211
|
+
B === 0 ? E.shift() : g(E, B), E.length === 1 && (I[k] = E[0]), I.removeListener !== void 0 && this.emit("removeListener", k, D || v);
|
|
212
212
|
}
|
|
213
213
|
return this;
|
|
214
214
|
}, s.prototype.off = s.prototype.removeListener, s.prototype.removeAllListeners = function(k) {
|
|
215
|
-
var v,
|
|
216
|
-
if (
|
|
215
|
+
var v, E, I;
|
|
216
|
+
if (E = this._events, E === void 0)
|
|
217
217
|
return this;
|
|
218
|
-
if (
|
|
219
|
-
return arguments.length === 0 ? (this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0) :
|
|
218
|
+
if (E.removeListener === void 0)
|
|
219
|
+
return arguments.length === 0 ? (this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0) : E[k] !== void 0 && (--this._eventsCount === 0 ? this._events = /* @__PURE__ */ Object.create(null) : delete E[k]), this;
|
|
220
220
|
if (arguments.length === 0) {
|
|
221
|
-
var B = Object.keys(
|
|
221
|
+
var B = Object.keys(E), x;
|
|
222
222
|
for (I = 0; I < B.length; ++I)
|
|
223
223
|
x = B[I], x !== "removeListener" && this.removeAllListeners(x);
|
|
224
224
|
return this.removeAllListeners("removeListener"), this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0, this;
|
|
225
225
|
}
|
|
226
|
-
if (v =
|
|
226
|
+
if (v = E[k], typeof v == "function")
|
|
227
227
|
this.removeListener(k, v);
|
|
228
228
|
else if (v !== void 0)
|
|
229
229
|
for (I = v.length - 1; I >= 0; I--)
|
|
230
230
|
this.removeListener(k, v[I]);
|
|
231
231
|
return this;
|
|
232
232
|
};
|
|
233
|
-
function c(
|
|
234
|
-
var
|
|
235
|
-
if (
|
|
233
|
+
function c(C, k, v) {
|
|
234
|
+
var E = C._events;
|
|
235
|
+
if (E === void 0)
|
|
236
236
|
return [];
|
|
237
|
-
var I =
|
|
237
|
+
var I = E[k];
|
|
238
238
|
return I === void 0 ? [] : typeof I == "function" ? v ? [I.listener || I] : [I] : v ? b(I) : m(I, I.length);
|
|
239
239
|
}
|
|
240
240
|
s.prototype.listeners = function(k) {
|
|
241
241
|
return c(this, k, !0);
|
|
242
242
|
}, s.prototype.rawListeners = function(k) {
|
|
243
243
|
return c(this, k, !1);
|
|
244
|
-
}, s.listenerCount = function(
|
|
245
|
-
return typeof
|
|
244
|
+
}, s.listenerCount = function(C, k) {
|
|
245
|
+
return typeof C.listenerCount == "function" ? C.listenerCount(k) : d.call(C, k);
|
|
246
246
|
}, s.prototype.listenerCount = d;
|
|
247
|
-
function d(
|
|
247
|
+
function d(C) {
|
|
248
248
|
var k = this._events;
|
|
249
249
|
if (k !== void 0) {
|
|
250
|
-
var v = k[
|
|
250
|
+
var v = k[C];
|
|
251
251
|
if (typeof v == "function")
|
|
252
252
|
return 1;
|
|
253
253
|
if (v !== void 0)
|
|
@@ -258,44 +258,44 @@ function Ms() {
|
|
|
258
258
|
s.prototype.eventNames = function() {
|
|
259
259
|
return this._eventsCount > 0 ? n(this._events) : [];
|
|
260
260
|
};
|
|
261
|
-
function m(
|
|
262
|
-
for (var v = new Array(k),
|
|
263
|
-
v[
|
|
261
|
+
function m(C, k) {
|
|
262
|
+
for (var v = new Array(k), E = 0; E < k; ++E)
|
|
263
|
+
v[E] = C[E];
|
|
264
264
|
return v;
|
|
265
265
|
}
|
|
266
|
-
function g(
|
|
267
|
-
for (; k + 1 <
|
|
268
|
-
|
|
269
|
-
|
|
266
|
+
function g(C, k) {
|
|
267
|
+
for (; k + 1 < C.length; k++)
|
|
268
|
+
C[k] = C[k + 1];
|
|
269
|
+
C.pop();
|
|
270
270
|
}
|
|
271
|
-
function b(
|
|
272
|
-
for (var k = new Array(
|
|
273
|
-
k[v] =
|
|
271
|
+
function b(C) {
|
|
272
|
+
for (var k = new Array(C.length), v = 0; v < k.length; ++v)
|
|
273
|
+
k[v] = C[v].listener || C[v];
|
|
274
274
|
return k;
|
|
275
275
|
}
|
|
276
|
-
function y(
|
|
277
|
-
return new Promise(function(v,
|
|
276
|
+
function y(C, k) {
|
|
277
|
+
return new Promise(function(v, E) {
|
|
278
278
|
function I(x) {
|
|
279
|
-
|
|
279
|
+
C.removeListener(k, B), E(x);
|
|
280
280
|
}
|
|
281
281
|
function B() {
|
|
282
|
-
typeof
|
|
282
|
+
typeof C.removeListener == "function" && C.removeListener("error", I), v([].slice.call(arguments));
|
|
283
283
|
}
|
|
284
|
-
w(
|
|
284
|
+
w(C, k, B, { once: !0 }), k !== "error" && T(C, I, { once: !0 });
|
|
285
285
|
});
|
|
286
286
|
}
|
|
287
|
-
function
|
|
288
|
-
typeof
|
|
287
|
+
function T(C, k, v) {
|
|
288
|
+
typeof C.on == "function" && w(C, "error", k, v);
|
|
289
289
|
}
|
|
290
|
-
function w(
|
|
291
|
-
if (typeof
|
|
292
|
-
|
|
293
|
-
else if (typeof
|
|
294
|
-
|
|
295
|
-
|
|
290
|
+
function w(C, k, v, E) {
|
|
291
|
+
if (typeof C.on == "function")
|
|
292
|
+
E.once ? C.once(k, v) : C.on(k, v);
|
|
293
|
+
else if (typeof C.addEventListener == "function")
|
|
294
|
+
C.addEventListener(k, function I(B) {
|
|
295
|
+
E.once && C.removeEventListener(k, I), v(B);
|
|
296
296
|
});
|
|
297
297
|
else
|
|
298
|
-
throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof
|
|
298
|
+
throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof C);
|
|
299
299
|
}
|
|
300
300
|
return $s.exports;
|
|
301
301
|
}
|
|
@@ -697,7 +697,7 @@ function S3() {
|
|
|
697
697
|
class d extends e.EventEmitter {
|
|
698
698
|
constructor() {
|
|
699
699
|
super();
|
|
700
|
-
let g = n, b, y,
|
|
700
|
+
let g = n, b, y, T, w, C, k, v, E, I = 0, B;
|
|
701
701
|
this._handleTagOpening = function(D, P, _) {
|
|
702
702
|
D ? this.emit("endElement", P, !1) : (this.emit("startElement", P, _), k && this.emit("endElement", P, !0));
|
|
703
703
|
}, this.write = function(D) {
|
|
@@ -718,7 +718,7 @@ function S3() {
|
|
|
718
718
|
break;
|
|
719
719
|
}
|
|
720
720
|
case l: {
|
|
721
|
-
const H = D.indexOf(
|
|
721
|
+
const H = D.indexOf(E, P);
|
|
722
722
|
H !== -1 && (P = H);
|
|
723
723
|
break;
|
|
724
724
|
}
|
|
@@ -749,7 +749,7 @@ function S3() {
|
|
|
749
749
|
} else D.length < P + 2 && (y = !0, P = D.length);
|
|
750
750
|
break;
|
|
751
751
|
case s:
|
|
752
|
-
Q === 47 && I === P ? (I = P + 1,
|
|
752
|
+
Q === 47 && I === P ? (I = P + 1, C = !0) : Q === 33 ? D.substr(P + 1, 7) === "[CDATA[" ? (I = P + 8, g = f) : D.length < P + 8 && "[CDATA[".startsWith(D.slice(P + 1)) ? (y = !0, P = D.length) : (I = void 0, g = i) : Q === 63 ? (I = void 0, g = r) : (Q <= 32 || Q === 47 || Q === 62) && (T = _(), P--, g = a);
|
|
753
753
|
break;
|
|
754
754
|
case i:
|
|
755
755
|
if (Q === 62) {
|
|
@@ -761,7 +761,7 @@ function S3() {
|
|
|
761
761
|
Q === 62 && D.charCodeAt(P - 1) === 63 && (g = n);
|
|
762
762
|
break;
|
|
763
763
|
case a:
|
|
764
|
-
Q === 62 ? (this._handleTagOpening(
|
|
764
|
+
Q === 62 ? (this._handleTagOpening(C, T, w), T = void 0, w = void 0, C = void 0, k = void 0, g = n, I = P + 1) : Q === 47 ? k = !0 : Q > 32 && (I = P, g = o);
|
|
765
765
|
break;
|
|
766
766
|
case o:
|
|
767
767
|
(Q <= 32 || Q === 61) && (B = _(), P--, g = A);
|
|
@@ -770,7 +770,7 @@ function S3() {
|
|
|
770
770
|
Q === 61 && (g = u);
|
|
771
771
|
break;
|
|
772
772
|
case u:
|
|
773
|
-
(Q === 34 || Q === 39) && (v = Q,
|
|
773
|
+
(Q === 34 || Q === 39) && (v = Q, E = Q === 34 ? '"' : "'", g = l, I = P + 1);
|
|
774
774
|
break;
|
|
775
775
|
case l:
|
|
776
776
|
if (Q === v) {
|
|
@@ -1595,8 +1595,8 @@ function K3() {
|
|
|
1595
1595
|
let y;
|
|
1596
1596
|
try {
|
|
1597
1597
|
y = await d();
|
|
1598
|
-
} catch (
|
|
1599
|
-
l.emit("error",
|
|
1598
|
+
} catch (T) {
|
|
1599
|
+
l.emit("error", T), y = o("cancel", "internal-server-error");
|
|
1600
1600
|
}
|
|
1601
1601
|
return y || (y = o("cancel", "service-unavailable")), y instanceof e.Element && y.is("error") ? a(c, y, b) : s(
|
|
1602
1602
|
c,
|
|
@@ -1822,10 +1822,10 @@ function uk() {
|
|
|
1822
1822
|
...f
|
|
1823
1823
|
};
|
|
1824
1824
|
return new Promise((g, b) => {
|
|
1825
|
-
const y = (
|
|
1826
|
-
if (
|
|
1827
|
-
if (
|
|
1828
|
-
c.challenge(t(
|
|
1825
|
+
const y = (T) => {
|
|
1826
|
+
if (T.attrs.xmlns === s) {
|
|
1827
|
+
if (T.name === "challenge") {
|
|
1828
|
+
c.challenge(t(T.text()));
|
|
1829
1829
|
const w = c.response(m);
|
|
1830
1830
|
u.send(
|
|
1831
1831
|
i(
|
|
@@ -1836,7 +1836,7 @@ function uk() {
|
|
|
1836
1836
|
);
|
|
1837
1837
|
return;
|
|
1838
1838
|
}
|
|
1839
|
-
|
|
1839
|
+
T.name === "failure" ? b(n.fromElement(T)) : T.name === "success" && g(), u.removeListener("nonza", y);
|
|
1840
1840
|
}
|
|
1841
1841
|
};
|
|
1842
1842
|
u.on("nonza", y), c.clientFirst && u.send(
|
|
@@ -1852,9 +1852,9 @@ function uk() {
|
|
|
1852
1852
|
const f = new r();
|
|
1853
1853
|
return u.use("mechanisms", s, async ({ stanza: c, entity: d }) => {
|
|
1854
1854
|
const m = a(c);
|
|
1855
|
-
let y = f._mechs.map(({ name:
|
|
1855
|
+
let y = f._mechs.map(({ name: T }) => T).filter((T) => m.includes(T))[0];
|
|
1856
1856
|
typeof l == "function" ? await l(
|
|
1857
|
-
(
|
|
1857
|
+
(T) => o(f, d, y, T),
|
|
1858
1858
|
y
|
|
1859
1859
|
) : (!l.username && !l.password && (y = "ANONYMOUS"), await o(f, d, y, l)), await d.restart();
|
|
1860
1860
|
}), {
|
|
@@ -2049,10 +2049,10 @@ function Ek() {
|
|
|
2049
2049
|
if (W1) return Or;
|
|
2050
2050
|
W1 = 1;
|
|
2051
2051
|
const { xml: e, jid: t, Client: n } = _3(), i = M3(), r = P3(), s = U3(), a = G3(), o = q3(), A = X3(), u = K3(), l = nk(), f = uk(), c = lk(), d = fk(), m = ck(), g = gk(), b = kk();
|
|
2052
|
-
function y(
|
|
2053
|
-
const { resource: w, credentials:
|
|
2054
|
-
!I && B && (
|
|
2055
|
-
const x = new n(
|
|
2052
|
+
function y(T = {}) {
|
|
2053
|
+
const { resource: w, credentials: C, username: k, password: v, ...E } = T, { domain: I, service: B } = E;
|
|
2054
|
+
!I && B && (E.domain = i(B));
|
|
2055
|
+
const x = new n(E), D = r({ entity: x }), P = s({ entity: x }), _ = a({ entity: x }), Q = o({ middleware: _ }), H = A({ middleware: _, entity: x }), V = u({ middleware: _, entity: x }), re = l({ entity: x }), he = f({ streamFeatures: Q }, C || { username: k, password: v }), oe = m({
|
|
2056
2056
|
streamFeatures: Q,
|
|
2057
2057
|
entity: x,
|
|
2058
2058
|
middleware: _
|
|
@@ -2291,10 +2291,10 @@ const Sk = (e) => e.reduce((t, n) => (t[n.language] = n, t), {}), Dk = (e, t) =>
|
|
|
2291
2291
|
}
|
|
2292
2292
|
if (g.is("iq") && g.attrs.id === a && g.attrs.type === "result") {
|
|
2293
2293
|
let y = [];
|
|
2294
|
-
for (const
|
|
2295
|
-
const w =
|
|
2296
|
-
if (
|
|
2297
|
-
const { data: k, id: v, body:
|
|
2294
|
+
for (const T of d) {
|
|
2295
|
+
const w = T?.getChild("reactions");
|
|
2296
|
+
if (T.getChild("body")?.getText() || w) {
|
|
2297
|
+
const { data: k, id: v, body: E, ...I } = await uo(T);
|
|
2298
2298
|
if (!k) {
|
|
2299
2299
|
console.log("No data in stanza");
|
|
2300
2300
|
return;
|
|
@@ -2302,7 +2302,7 @@ const Sk = (e) => e.reduce((t, n) => (t[n.language] = n, t), {}), Dk = (e, t) =>
|
|
|
2302
2302
|
const B = await vc({
|
|
2303
2303
|
data: k,
|
|
2304
2304
|
id: v,
|
|
2305
|
-
body:
|
|
2305
|
+
body: E,
|
|
2306
2306
|
...I
|
|
2307
2307
|
});
|
|
2308
2308
|
y.push(B);
|
|
@@ -2531,24 +2531,24 @@ function Pk() {
|
|
|
2531
2531
|
}), o && (i.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW || !ArrayBuffer.isView) && (ArrayBuffer.isView = function(v) {
|
|
2532
2532
|
return typeof v == "object" && v.buffer && v.buffer.constructor === ArrayBuffer;
|
|
2533
2533
|
});
|
|
2534
|
-
var m = function(v,
|
|
2534
|
+
var m = function(v, E) {
|
|
2535
2535
|
return function(I) {
|
|
2536
|
-
return new w(
|
|
2536
|
+
return new w(E, !0).update(I)[v]();
|
|
2537
2537
|
};
|
|
2538
2538
|
}, g = function(v) {
|
|
2539
|
-
var
|
|
2540
|
-
s && (
|
|
2539
|
+
var E = m("hex", v);
|
|
2540
|
+
s && (E = b(E, v)), E.create = function() {
|
|
2541
2541
|
return new w(v);
|
|
2542
|
-
},
|
|
2543
|
-
return
|
|
2542
|
+
}, E.update = function(x) {
|
|
2543
|
+
return E.create().update(x);
|
|
2544
2544
|
};
|
|
2545
2545
|
for (var I = 0; I < c.length; ++I) {
|
|
2546
2546
|
var B = c[I];
|
|
2547
|
-
|
|
2547
|
+
E[B] = m(B, v);
|
|
2548
2548
|
}
|
|
2549
|
-
return
|
|
2550
|
-
}, b = function(v,
|
|
2551
|
-
var I = Zi, B = Zi.Buffer, x =
|
|
2549
|
+
return E;
|
|
2550
|
+
}, b = function(v, E) {
|
|
2551
|
+
var I = Zi, B = Zi.Buffer, x = E ? "sha224" : "sha256", D;
|
|
2552
2552
|
B.from && !i.JS_SHA256_NO_BUFFER_FROM ? D = B.from : D = function(_) {
|
|
2553
2553
|
return new B(_);
|
|
2554
2554
|
};
|
|
@@ -2560,29 +2560,29 @@ function Pk() {
|
|
|
2560
2560
|
return _.constructor === ArrayBuffer && (_ = new Uint8Array(_)), Array.isArray(_) || ArrayBuffer.isView(_) || _.constructor === B ? I.createHash(x).update(D(_)).digest("hex") : v(_);
|
|
2561
2561
|
};
|
|
2562
2562
|
return P;
|
|
2563
|
-
}, y = function(v,
|
|
2563
|
+
}, y = function(v, E) {
|
|
2564
2564
|
return function(I, B) {
|
|
2565
|
-
return new
|
|
2565
|
+
return new C(I, E, !0).update(B)[v]();
|
|
2566
2566
|
};
|
|
2567
|
-
},
|
|
2568
|
-
var
|
|
2569
|
-
|
|
2570
|
-
return new
|
|
2571
|
-
},
|
|
2572
|
-
return
|
|
2567
|
+
}, T = function(v) {
|
|
2568
|
+
var E = y("hex", v);
|
|
2569
|
+
E.create = function(x) {
|
|
2570
|
+
return new C(x, v);
|
|
2571
|
+
}, E.update = function(x, D) {
|
|
2572
|
+
return E.create(x).update(D);
|
|
2573
2573
|
};
|
|
2574
2574
|
for (var I = 0; I < c.length; ++I) {
|
|
2575
2575
|
var B = c[I];
|
|
2576
|
-
|
|
2576
|
+
E[B] = y(B, v);
|
|
2577
2577
|
}
|
|
2578
|
-
return
|
|
2578
|
+
return E;
|
|
2579
2579
|
};
|
|
2580
|
-
function w(v,
|
|
2581
|
-
|
|
2580
|
+
function w(v, E) {
|
|
2581
|
+
E ? (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], v ? (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 = v;
|
|
2582
2582
|
}
|
|
2583
2583
|
w.prototype.update = function(v) {
|
|
2584
2584
|
if (!this.finalized) {
|
|
2585
|
-
var
|
|
2585
|
+
var E, I = typeof v;
|
|
2586
2586
|
if (I !== "string") {
|
|
2587
2587
|
if (I === "object") {
|
|
2588
2588
|
if (v === null)
|
|
@@ -2593,10 +2593,10 @@ function Pk() {
|
|
|
2593
2593
|
throw new Error(t);
|
|
2594
2594
|
} else
|
|
2595
2595
|
throw new Error(t);
|
|
2596
|
-
|
|
2596
|
+
E = !0;
|
|
2597
2597
|
}
|
|
2598
2598
|
for (var B, x = 0, D, P = v.length, _ = this.blocks; x < P; ) {
|
|
2599
|
-
if (this.hashed && (this.hashed = !1, _[0] = this.block, this.block = _[16] = _[1] = _[2] = _[3] = _[4] = _[5] = _[6] = _[7] = _[8] = _[9] = _[10] = _[11] = _[12] = _[13] = _[14] = _[15] = 0),
|
|
2599
|
+
if (this.hashed && (this.hashed = !1, _[0] = this.block, this.block = _[16] = _[1] = _[2] = _[3] = _[4] = _[5] = _[6] = _[7] = _[8] = _[9] = _[10] = _[11] = _[12] = _[13] = _[14] = _[15] = 0), E)
|
|
2600
2600
|
for (D = this.start; x < P && D < 64; ++x)
|
|
2601
2601
|
_[D >>> 2] |= v[x] << l[D++ & 3];
|
|
2602
2602
|
else
|
|
@@ -2609,31 +2609,31 @@ function Pk() {
|
|
|
2609
2609
|
}, w.prototype.finalize = function() {
|
|
2610
2610
|
if (!this.finalized) {
|
|
2611
2611
|
this.finalized = !0;
|
|
2612
|
-
var v = this.blocks,
|
|
2613
|
-
v[16] = this.block, v[
|
|
2612
|
+
var v = this.blocks, E = this.lastByteIndex;
|
|
2613
|
+
v[16] = this.block, v[E >>> 2] |= u[E & 3], this.block = v[16], E >= 56 && (this.hashed || this.hash(), v[0] = this.block, v[16] = v[1] = v[2] = v[3] = v[4] = v[5] = v[6] = v[7] = v[8] = v[9] = v[10] = v[11] = v[12] = v[13] = v[14] = v[15] = 0), v[14] = this.hBytes << 3 | this.bytes >>> 29, v[15] = this.bytes << 3, this.hash();
|
|
2614
2614
|
}
|
|
2615
2615
|
}, w.prototype.hash = function() {
|
|
2616
|
-
var v = this.h0,
|
|
2616
|
+
var v = this.h0, E = this.h1, I = this.h2, B = this.h3, x = this.h4, D = this.h5, P = this.h6, _ = this.h7, Q = this.blocks, H, V, re, he, oe, S, U, Y, N, W, de;
|
|
2617
2617
|
for (H = 16; H < 64; ++H)
|
|
2618
2618
|
oe = Q[H - 15], V = (oe >>> 7 | oe << 25) ^ (oe >>> 18 | oe << 14) ^ oe >>> 3, oe = Q[H - 2], re = (oe >>> 17 | oe << 15) ^ (oe >>> 19 | oe << 13) ^ oe >>> 10, Q[H] = Q[H - 16] + V + Q[H - 7] + re << 0;
|
|
2619
|
-
for (de =
|
|
2620
|
-
this.first ? (this.is224 ? (Y = 300032, oe = Q[0] - 1413257819, _ = oe - 150054599 << 0, B = oe + 24177077 << 0) : (Y = 704751109, oe = Q[0] - 210244248, _ = oe - 1521486534 << 0, B = oe + 143694565 << 0), this.first = !1) : (V = (v >>> 2 | v << 30) ^ (v >>> 13 | v << 19) ^ (v >>> 22 | v << 10), re = (x >>> 6 | x << 26) ^ (x >>> 11 | x << 21) ^ (x >>> 25 | x << 7), Y = v &
|
|
2621
|
-
this.h0 = this.h0 + v << 0, this.h1 = this.h1 +
|
|
2619
|
+
for (de = E & I, H = 0; H < 64; H += 4)
|
|
2620
|
+
this.first ? (this.is224 ? (Y = 300032, oe = Q[0] - 1413257819, _ = oe - 150054599 << 0, B = oe + 24177077 << 0) : (Y = 704751109, oe = Q[0] - 210244248, _ = oe - 1521486534 << 0, B = oe + 143694565 << 0), this.first = !1) : (V = (v >>> 2 | v << 30) ^ (v >>> 13 | v << 19) ^ (v >>> 22 | v << 10), re = (x >>> 6 | x << 26) ^ (x >>> 11 | x << 21) ^ (x >>> 25 | x << 7), Y = v & E, he = Y ^ v & I ^ de, U = x & D ^ ~x & P, oe = _ + re + U + f[H] + Q[H], S = V + he, _ = B + oe << 0, B = oe + S << 0), V = (B >>> 2 | B << 30) ^ (B >>> 13 | B << 19) ^ (B >>> 22 | B << 10), re = (_ >>> 6 | _ << 26) ^ (_ >>> 11 | _ << 21) ^ (_ >>> 25 | _ << 7), N = B & v, he = N ^ B & E ^ Y, U = _ & x ^ ~_ & D, oe = P + re + U + f[H + 1] + Q[H + 1], S = V + he, P = I + oe << 0, I = oe + S << 0, V = (I >>> 2 | I << 30) ^ (I >>> 13 | I << 19) ^ (I >>> 22 | I << 10), re = (P >>> 6 | P << 26) ^ (P >>> 11 | P << 21) ^ (P >>> 25 | P << 7), W = I & B, he = W ^ I & v ^ N, U = P & _ ^ ~P & x, oe = D + re + U + f[H + 2] + Q[H + 2], S = V + he, D = E + oe << 0, E = oe + S << 0, V = (E >>> 2 | E << 30) ^ (E >>> 13 | E << 19) ^ (E >>> 22 | E << 10), re = (D >>> 6 | D << 26) ^ (D >>> 11 | D << 21) ^ (D >>> 25 | D << 7), de = E & I, he = de ^ E & B ^ W, U = D & P ^ ~D & _, oe = x + re + U + f[H + 3] + Q[H + 3], S = V + he, x = v + oe << 0, v = oe + S << 0, this.chromeBugWorkAround = !0;
|
|
2621
|
+
this.h0 = this.h0 + v << 0, this.h1 = this.h1 + E << 0, this.h2 = this.h2 + I << 0, this.h3 = this.h3 + B << 0, this.h4 = this.h4 + x << 0, this.h5 = this.h5 + D << 0, this.h6 = this.h6 + P << 0, this.h7 = this.h7 + _ << 0;
|
|
2622
2622
|
}, w.prototype.hex = function() {
|
|
2623
2623
|
this.finalize();
|
|
2624
|
-
var v = this.h0,
|
|
2624
|
+
var v = this.h0, E = this.h1, I = this.h2, B = this.h3, x = this.h4, D = this.h5, P = this.h6, _ = this.h7, Q = A[v >>> 28 & 15] + A[v >>> 24 & 15] + A[v >>> 20 & 15] + A[v >>> 16 & 15] + A[v >>> 12 & 15] + A[v >>> 8 & 15] + A[v >>> 4 & 15] + A[v & 15] + A[E >>> 28 & 15] + A[E >>> 24 & 15] + A[E >>> 20 & 15] + A[E >>> 16 & 15] + A[E >>> 12 & 15] + A[E >>> 8 & 15] + A[E >>> 4 & 15] + A[E & 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] + 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[D >>> 28 & 15] + A[D >>> 24 & 15] + A[D >>> 20 & 15] + A[D >>> 16 & 15] + A[D >>> 12 & 15] + A[D >>> 8 & 15] + A[D >>> 4 & 15] + A[D & 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];
|
|
2625
2625
|
return this.is224 || (Q += A[_ >>> 28 & 15] + A[_ >>> 24 & 15] + A[_ >>> 20 & 15] + A[_ >>> 16 & 15] + A[_ >>> 12 & 15] + A[_ >>> 8 & 15] + A[_ >>> 4 & 15] + A[_ & 15]), Q;
|
|
2626
2626
|
}, w.prototype.toString = w.prototype.hex, w.prototype.digest = function() {
|
|
2627
2627
|
this.finalize();
|
|
2628
|
-
var v = this.h0,
|
|
2628
|
+
var v = this.h0, E = this.h1, I = this.h2, B = this.h3, x = this.h4, D = this.h5, P = this.h6, _ = this.h7, Q = [
|
|
2629
2629
|
v >>> 24 & 255,
|
|
2630
2630
|
v >>> 16 & 255,
|
|
2631
2631
|
v >>> 8 & 255,
|
|
2632
2632
|
v & 255,
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
|
-
|
|
2636
|
-
|
|
2633
|
+
E >>> 24 & 255,
|
|
2634
|
+
E >>> 16 & 255,
|
|
2635
|
+
E >>> 8 & 255,
|
|
2636
|
+
E & 255,
|
|
2637
2637
|
I >>> 24 & 255,
|
|
2638
2638
|
I >>> 16 & 255,
|
|
2639
2639
|
I >>> 8 & 255,
|
|
@@ -2658,10 +2658,10 @@ function Pk() {
|
|
|
2658
2658
|
return this.is224 || Q.push(_ >>> 24 & 255, _ >>> 16 & 255, _ >>> 8 & 255, _ & 255), Q;
|
|
2659
2659
|
}, w.prototype.array = w.prototype.digest, w.prototype.arrayBuffer = function() {
|
|
2660
2660
|
this.finalize();
|
|
2661
|
-
var v = new ArrayBuffer(this.is224 ? 28 : 32),
|
|
2662
|
-
return
|
|
2661
|
+
var v = new ArrayBuffer(this.is224 ? 28 : 32), E = new DataView(v);
|
|
2662
|
+
return E.setUint32(0, this.h0), E.setUint32(4, this.h1), E.setUint32(8, this.h2), E.setUint32(12, this.h3), E.setUint32(16, this.h4), E.setUint32(20, this.h5), E.setUint32(24, this.h6), this.is224 || E.setUint32(28, this.h7), v;
|
|
2663
2663
|
};
|
|
2664
|
-
function
|
|
2664
|
+
function C(v, E, I) {
|
|
2665
2665
|
var B, x = typeof v;
|
|
2666
2666
|
if (x === "string") {
|
|
2667
2667
|
var D = [], P = v.length, _ = 0, Q;
|
|
@@ -2677,15 +2677,15 @@ function Pk() {
|
|
|
2677
2677
|
throw new Error(t);
|
|
2678
2678
|
} else
|
|
2679
2679
|
throw new Error(t);
|
|
2680
|
-
v.length > 64 && (v = new w(
|
|
2680
|
+
v.length > 64 && (v = new w(E, !0).update(v).array());
|
|
2681
2681
|
var H = [], V = [];
|
|
2682
2682
|
for (B = 0; B < 64; ++B) {
|
|
2683
2683
|
var re = v[B] || 0;
|
|
2684
2684
|
H[B] = 92 ^ re, V[B] = 54 ^ re;
|
|
2685
2685
|
}
|
|
2686
|
-
w.call(this,
|
|
2686
|
+
w.call(this, E, I), this.update(V), this.oKeyPad = H, this.inner = !0, this.sharedMemory = I;
|
|
2687
2687
|
}
|
|
2688
|
-
|
|
2688
|
+
C.prototype = new w(), C.prototype.finalize = function() {
|
|
2689
2689
|
if (w.prototype.finalize.call(this), this.inner) {
|
|
2690
2690
|
this.inner = !1;
|
|
2691
2691
|
var v = this.array();
|
|
@@ -2693,7 +2693,7 @@ function Pk() {
|
|
|
2693
2693
|
}
|
|
2694
2694
|
};
|
|
2695
2695
|
var k = g();
|
|
2696
|
-
k.sha256 = k, k.sha224 = g(!0), k.sha256.hmac =
|
|
2696
|
+
k.sha256 = k, k.sha224 = g(!0), k.sha256.hmac = T(), k.sha224.hmac = T(!0), a ? e.exports = k : (i.sha256 = k.sha256, i.sha224 = k.sha224);
|
|
2697
2697
|
})();
|
|
2698
2698
|
}(_u)), _u.exports;
|
|
2699
2699
|
}
|
|
@@ -3212,8 +3212,8 @@ class Jk extends kg.EventEmitter {
|
|
|
3212
3212
|
break;
|
|
3213
3213
|
case Pu:
|
|
3214
3214
|
if (b === 62) {
|
|
3215
|
-
const y = d.charCodeAt(m - 1),
|
|
3216
|
-
(y === 45 &&
|
|
3215
|
+
const y = d.charCodeAt(m - 1), T = d.charCodeAt(m - 2);
|
|
3216
|
+
(y === 45 && T === 45 || y === 93 && T === 93) && (t = ii);
|
|
3217
3217
|
}
|
|
3218
3218
|
break;
|
|
3219
3219
|
case X1:
|
|
@@ -3362,12 +3362,12 @@ function bc(e, t, n) {
|
|
|
3362
3362
|
throw new Error(process.env.NODE_ENV === "production" ? at(5) : "You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");
|
|
3363
3363
|
let y = !0;
|
|
3364
3364
|
u();
|
|
3365
|
-
const
|
|
3366
|
-
return a.set(
|
|
3365
|
+
const T = o++;
|
|
3366
|
+
return a.set(T, b), function() {
|
|
3367
3367
|
if (y) {
|
|
3368
3368
|
if (A)
|
|
3369
3369
|
throw new Error(process.env.NODE_ENV === "production" ? at(6) : "You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");
|
|
3370
|
-
y = !1, u(), a.delete(
|
|
3370
|
+
y = !1, u(), a.delete(T), s = null;
|
|
3371
3371
|
}
|
|
3372
3372
|
};
|
|
3373
3373
|
}
|
|
@@ -3385,8 +3385,8 @@ function bc(e, t, n) {
|
|
|
3385
3385
|
} finally {
|
|
3386
3386
|
A = !1;
|
|
3387
3387
|
}
|
|
3388
|
-
return (s = a).forEach((
|
|
3389
|
-
|
|
3388
|
+
return (s = a).forEach((T) => {
|
|
3389
|
+
T();
|
|
3390
3390
|
}), b;
|
|
3391
3391
|
}
|
|
3392
3392
|
function d(b) {
|
|
@@ -3410,12 +3410,12 @@ function bc(e, t, n) {
|
|
|
3410
3410
|
subscribe(y) {
|
|
3411
3411
|
if (typeof y != "object" || y === null)
|
|
3412
3412
|
throw new Error(process.env.NODE_ENV === "production" ? at(11) : `Expected the observer to be an object. Instead, received: '${Mn(y)}'`);
|
|
3413
|
-
function
|
|
3414
|
-
const
|
|
3415
|
-
|
|
3413
|
+
function T() {
|
|
3414
|
+
const C = y;
|
|
3415
|
+
C.next && C.next(l());
|
|
3416
3416
|
}
|
|
3417
|
-
return
|
|
3418
|
-
unsubscribe: b(
|
|
3417
|
+
return T(), {
|
|
3418
|
+
unsubscribe: b(T)
|
|
3419
3419
|
};
|
|
3420
3420
|
},
|
|
3421
3421
|
[nh]() {
|
|
@@ -4223,9 +4223,9 @@ function x4(e = {}) {
|
|
|
4223
4223
|
if (b) {
|
|
4224
4224
|
const {
|
|
4225
4225
|
keyPath: y,
|
|
4226
|
-
value:
|
|
4226
|
+
value: T
|
|
4227
4227
|
} = b;
|
|
4228
|
-
console.error(`A non-serializable value was detected in an action, in the path: \`${y}\`. Value:`,
|
|
4228
|
+
console.error(`A non-serializable value was detected in an action, in the path: \`${y}\`. Value:`, T, `
|
|
4229
4229
|
Take a look at the logic that dispatched this action: `, d, `
|
|
4230
4230
|
(See https://redux.js.org/faq/actions#why-should-type-be-a-string-or-at-least-serializable-why-should-my-action-types-be-constants)`, `
|
|
4231
4231
|
(To allow non-serializable values see: https://redux-toolkit.js.org/usage/usage-guide#working-with-non-serializable-data)`);
|
|
@@ -4234,10 +4234,10 @@ Take a look at the logic that dispatched this action: `, d, `
|
|
|
4234
4234
|
const b = f.getState(), y = Af(b, "", t, n, s, l);
|
|
4235
4235
|
if (y) {
|
|
4236
4236
|
const {
|
|
4237
|
-
keyPath:
|
|
4237
|
+
keyPath: T,
|
|
4238
4238
|
value: w
|
|
4239
4239
|
} = y;
|
|
4240
|
-
console.error(`A non-serializable value was detected in the state, in the path: \`${
|
|
4240
|
+
console.error(`A non-serializable value was detected in the state, in the path: \`${T}\`. Value:`, w, `
|
|
4241
4241
|
Take a look at the reducer(s) handling this action type: ${d.type}.
|
|
4242
4242
|
(See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)`);
|
|
4243
4243
|
}
|
|
@@ -4518,7 +4518,7 @@ var P4 = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW", O4
|
|
|
4518
4518
|
u && (u.aborted ? y(ch) : u.addEventListener("abort", () => y(ch), {
|
|
4519
4519
|
once: !0
|
|
4520
4520
|
}));
|
|
4521
|
-
const
|
|
4521
|
+
const T = async function() {
|
|
4522
4522
|
let w;
|
|
4523
4523
|
try {
|
|
4524
4524
|
let k = i?.condition?.(A, {
|
|
@@ -4530,7 +4530,7 @@ var P4 = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW", O4
|
|
|
4530
4530
|
name: "ConditionError",
|
|
4531
4531
|
message: "Aborted due to condition callback returning false."
|
|
4532
4532
|
};
|
|
4533
|
-
const v = new Promise((
|
|
4533
|
+
const v = new Promise((E, I) => {
|
|
4534
4534
|
g = () => {
|
|
4535
4535
|
I({
|
|
4536
4536
|
name: "AbortError",
|
|
@@ -4551,12 +4551,12 @@ var P4 = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW", O4
|
|
|
4551
4551
|
requestId: d,
|
|
4552
4552
|
signal: m.signal,
|
|
4553
4553
|
abort: y,
|
|
4554
|
-
rejectWithValue: (
|
|
4555
|
-
fulfillWithValue: (
|
|
4556
|
-
})).then((
|
|
4557
|
-
if (
|
|
4558
|
-
throw
|
|
4559
|
-
return
|
|
4554
|
+
rejectWithValue: (E, I) => new Uu(E, I),
|
|
4555
|
+
fulfillWithValue: (E, I) => new fh(E, I)
|
|
4556
|
+
})).then((E) => {
|
|
4557
|
+
if (E instanceof Uu)
|
|
4558
|
+
throw E;
|
|
4559
|
+
return E instanceof fh ? r(E.payload, d, A, E.meta) : r(E, d, A);
|
|
4560
4560
|
})]);
|
|
4561
4561
|
} catch (k) {
|
|
4562
4562
|
w = k instanceof Uu ? a(null, d, A, k.payload, k.meta) : a(k, d, A);
|
|
@@ -4565,12 +4565,12 @@ var P4 = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW", O4
|
|
|
4565
4565
|
}
|
|
4566
4566
|
return i && !i.dispatchConditionRejection && a.match(w) && w.meta.condition || l(w), w;
|
|
4567
4567
|
}();
|
|
4568
|
-
return Object.assign(
|
|
4568
|
+
return Object.assign(T, {
|
|
4569
4569
|
abort: y,
|
|
4570
4570
|
requestId: d,
|
|
4571
4571
|
arg: A,
|
|
4572
4572
|
unwrap() {
|
|
4573
|
-
return
|
|
4573
|
+
return T.then(H4);
|
|
4574
4574
|
}
|
|
4575
4575
|
});
|
|
4576
4576
|
};
|
|
@@ -4617,77 +4617,77 @@ function W4({
|
|
|
4617
4617
|
actionCreators: {},
|
|
4618
4618
|
sliceMatchers: []
|
|
4619
4619
|
}, u = {
|
|
4620
|
-
addCase(w,
|
|
4620
|
+
addCase(w, C) {
|
|
4621
4621
|
const k = typeof w == "string" ? w : w.type;
|
|
4622
4622
|
if (!k)
|
|
4623
4623
|
throw new Error(process.env.NODE_ENV === "production" ? Ye(12) : "`context.addCase` cannot be called with an empty action type");
|
|
4624
4624
|
if (k in A.sliceCaseReducersByType)
|
|
4625
4625
|
throw new Error(process.env.NODE_ENV === "production" ? Ye(13) : "`context.addCase` cannot be called with two reducers for the same action type: " + k);
|
|
4626
|
-
return A.sliceCaseReducersByType[k] =
|
|
4626
|
+
return A.sliceCaseReducersByType[k] = C, u;
|
|
4627
4627
|
},
|
|
4628
|
-
addMatcher(w,
|
|
4628
|
+
addMatcher(w, C) {
|
|
4629
4629
|
return A.sliceMatchers.push({
|
|
4630
4630
|
matcher: w,
|
|
4631
|
-
reducer:
|
|
4631
|
+
reducer: C
|
|
4632
4632
|
}), u;
|
|
4633
4633
|
},
|
|
4634
|
-
exposeAction(w,
|
|
4635
|
-
return A.actionCreators[w] =
|
|
4634
|
+
exposeAction(w, C) {
|
|
4635
|
+
return A.actionCreators[w] = C, u;
|
|
4636
4636
|
},
|
|
4637
|
-
exposeCaseReducer(w,
|
|
4638
|
-
return A.sliceCaseReducersByName[w] =
|
|
4637
|
+
exposeCaseReducer(w, C) {
|
|
4638
|
+
return A.sliceCaseReducersByName[w] = C, u;
|
|
4639
4639
|
}
|
|
4640
4640
|
};
|
|
4641
4641
|
o.forEach((w) => {
|
|
4642
|
-
const
|
|
4642
|
+
const C = a[w], k = {
|
|
4643
4643
|
reducerName: w,
|
|
4644
4644
|
type: Y4(r, w),
|
|
4645
4645
|
createNotation: typeof i.reducers == "function"
|
|
4646
4646
|
};
|
|
4647
|
-
V4(
|
|
4647
|
+
V4(C) ? X4(k, C, u, t) : q4(k, C, u);
|
|
4648
4648
|
});
|
|
4649
4649
|
function l() {
|
|
4650
4650
|
if (process.env.NODE_ENV !== "production" && typeof i.extraReducers == "object")
|
|
4651
4651
|
throw new Error(process.env.NODE_ENV === "production" ? Ye(14) : "The object notation for `createSlice.extraReducers` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createSlice");
|
|
4652
|
-
const [w = {},
|
|
4652
|
+
const [w = {}, C = [], k = void 0] = typeof i.extraReducers == "function" ? jg(i.extraReducers) : [i.extraReducers], v = {
|
|
4653
4653
|
...w,
|
|
4654
4654
|
...A.sliceCaseReducersByType
|
|
4655
4655
|
};
|
|
4656
|
-
return R4(i.initialState, (
|
|
4656
|
+
return R4(i.initialState, (E) => {
|
|
4657
4657
|
for (let I in v)
|
|
4658
|
-
|
|
4658
|
+
E.addCase(I, v[I]);
|
|
4659
4659
|
for (let I of A.sliceMatchers)
|
|
4660
|
-
|
|
4661
|
-
for (let I of
|
|
4662
|
-
|
|
4663
|
-
k &&
|
|
4660
|
+
E.addMatcher(I.matcher, I.reducer);
|
|
4661
|
+
for (let I of C)
|
|
4662
|
+
E.addMatcher(I.matcher, I.reducer);
|
|
4663
|
+
k && E.addDefaultCase(k);
|
|
4664
4664
|
});
|
|
4665
4665
|
}
|
|
4666
4666
|
const f = (w) => w, c = /* @__PURE__ */ new Map(), d = /* @__PURE__ */ new WeakMap();
|
|
4667
4667
|
let m;
|
|
4668
|
-
function g(w,
|
|
4669
|
-
return m || (m = l()), m(w,
|
|
4668
|
+
function g(w, C) {
|
|
4669
|
+
return m || (m = l()), m(w, C);
|
|
4670
4670
|
}
|
|
4671
4671
|
function b() {
|
|
4672
4672
|
return m || (m = l()), m.getInitialState();
|
|
4673
4673
|
}
|
|
4674
|
-
function y(w,
|
|
4675
|
-
function k(
|
|
4676
|
-
let I =
|
|
4674
|
+
function y(w, C = !1) {
|
|
4675
|
+
function k(E) {
|
|
4676
|
+
let I = E[w];
|
|
4677
4677
|
if (typeof I > "u") {
|
|
4678
|
-
if (
|
|
4678
|
+
if (C)
|
|
4679
4679
|
I = ta(d, k, b);
|
|
4680
4680
|
else if (process.env.NODE_ENV !== "production")
|
|
4681
4681
|
throw new Error(process.env.NODE_ENV === "production" ? Ye(15) : "selectSlice returned undefined for an uninjected slice reducer");
|
|
4682
4682
|
}
|
|
4683
4683
|
return I;
|
|
4684
4684
|
}
|
|
4685
|
-
function v(
|
|
4686
|
-
const I = ta(c,
|
|
4687
|
-
return ta(I,
|
|
4685
|
+
function v(E = f) {
|
|
4686
|
+
const I = ta(c, C, () => /* @__PURE__ */ new WeakMap());
|
|
4687
|
+
return ta(I, E, () => {
|
|
4688
4688
|
const B = {};
|
|
4689
4689
|
for (const [x, D] of Object.entries(i.selectors ?? {}))
|
|
4690
|
-
B[x] = G4(D,
|
|
4690
|
+
B[x] = G4(D, E, () => ta(d, E, b), C);
|
|
4691
4691
|
return B;
|
|
4692
4692
|
});
|
|
4693
4693
|
}
|
|
@@ -4700,7 +4700,7 @@ function W4({
|
|
|
4700
4700
|
selectSlice: k
|
|
4701
4701
|
};
|
|
4702
4702
|
}
|
|
4703
|
-
const
|
|
4703
|
+
const T = {
|
|
4704
4704
|
name: r,
|
|
4705
4705
|
reducer: g,
|
|
4706
4706
|
actions: A.actionCreators,
|
|
@@ -4708,20 +4708,20 @@ function W4({
|
|
|
4708
4708
|
getInitialState: b,
|
|
4709
4709
|
...y(s),
|
|
4710
4710
|
injectInto(w, {
|
|
4711
|
-
reducerPath:
|
|
4711
|
+
reducerPath: C,
|
|
4712
4712
|
...k
|
|
4713
4713
|
} = {}) {
|
|
4714
|
-
const v =
|
|
4714
|
+
const v = C ?? s;
|
|
4715
4715
|
return w.inject({
|
|
4716
4716
|
reducerPath: v,
|
|
4717
4717
|
reducer: g
|
|
4718
4718
|
}, k), {
|
|
4719
|
-
...
|
|
4719
|
+
...T,
|
|
4720
4720
|
...y(v, !0)
|
|
4721
4721
|
};
|
|
4722
4722
|
}
|
|
4723
4723
|
};
|
|
4724
|
-
return
|
|
4724
|
+
return T;
|
|
4725
4725
|
};
|
|
4726
4726
|
}
|
|
4727
4727
|
function G4(e, t, n, i) {
|
|
@@ -5454,29 +5454,29 @@ function N6(e) {
|
|
|
5454
5454
|
c && clearInterval(c), c = null;
|
|
5455
5455
|
return;
|
|
5456
5456
|
}
|
|
5457
|
-
var
|
|
5458
|
-
return
|
|
5459
|
-
}, u[
|
|
5457
|
+
var C = f.shift(), k = i.reduce(function(v, E) {
|
|
5458
|
+
return E.in(v, C, u);
|
|
5459
|
+
}, u[C]);
|
|
5460
5460
|
if (k !== void 0)
|
|
5461
5461
|
try {
|
|
5462
|
-
l[
|
|
5462
|
+
l[C] = o(k);
|
|
5463
5463
|
} catch (v) {
|
|
5464
5464
|
console.error("redux-persist/createPersistoid: error serializing state", v);
|
|
5465
5465
|
}
|
|
5466
5466
|
else
|
|
5467
|
-
delete l[
|
|
5467
|
+
delete l[C];
|
|
5468
5468
|
f.length === 0 && b();
|
|
5469
5469
|
}
|
|
5470
5470
|
function b() {
|
|
5471
|
-
Object.keys(l).forEach(function(
|
|
5472
|
-
u[
|
|
5473
|
-
}), d = a.setItem(s, o(l)).catch(
|
|
5471
|
+
Object.keys(l).forEach(function(C) {
|
|
5472
|
+
u[C] === void 0 && delete l[C];
|
|
5473
|
+
}), d = a.setItem(s, o(l)).catch(T);
|
|
5474
5474
|
}
|
|
5475
|
-
function y(
|
|
5476
|
-
return !(n && n.indexOf(
|
|
5475
|
+
function y(C) {
|
|
5476
|
+
return !(n && n.indexOf(C) === -1 && C !== "_persist" || t && t.indexOf(C) !== -1);
|
|
5477
5477
|
}
|
|
5478
|
-
function
|
|
5479
|
-
A && A(
|
|
5478
|
+
function T(C) {
|
|
5479
|
+
A && A(C), C && process.env.NODE_ENV !== "production" && console.error("Error storing data", C);
|
|
5480
5480
|
}
|
|
5481
5481
|
var w = function() {
|
|
5482
5482
|
for (; f.length !== 0; )
|
|
@@ -5586,17 +5586,17 @@ function Ra(e, t) {
|
|
|
5586
5586
|
_persist: d
|
|
5587
5587
|
});
|
|
5588
5588
|
if (typeof f.rehydrate != "function" || typeof f.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.");
|
|
5589
|
-
return f.register(e.key), r(e).then(function(
|
|
5589
|
+
return f.register(e.key), r(e).then(function(E) {
|
|
5590
5590
|
var I = e.migrate || function(B, x) {
|
|
5591
5591
|
return Promise.resolve(B);
|
|
5592
5592
|
};
|
|
5593
|
-
I(
|
|
5593
|
+
I(E, n).then(function(B) {
|
|
5594
5594
|
y(B);
|
|
5595
5595
|
}, function(B) {
|
|
5596
5596
|
process.env.NODE_ENV !== "production" && B && console.error("redux-persist: migration error", B), y(void 0, B);
|
|
5597
5597
|
});
|
|
5598
|
-
}, function(
|
|
5599
|
-
y(void 0,
|
|
5598
|
+
}, function(E) {
|
|
5599
|
+
y(void 0, E);
|
|
5600
5600
|
}), vn({}, t(g, f), {
|
|
5601
5601
|
_persist: {
|
|
5602
5602
|
version: n,
|
|
@@ -5622,7 +5622,7 @@ function Ra(e, t) {
|
|
|
5622
5622
|
// @NOTE if key does not match, will continue to default else below
|
|
5623
5623
|
});
|
|
5624
5624
|
if (f.key === e.key) {
|
|
5625
|
-
var
|
|
5625
|
+
var T = t(g, f), w = f.payload, C = i !== !1 && w !== void 0 ? i(w, l, T, e) : T, k = vn({}, C, {
|
|
5626
5626
|
_persist: vn({}, d, {
|
|
5627
5627
|
rehydrated: !0
|
|
5628
5628
|
})
|
|
@@ -5835,11 +5835,11 @@ function Zn() {
|
|
|
5835
5835
|
}
|
|
5836
5836
|
throw new Error("Native crypto module could not be used to get secure random number.");
|
|
5837
5837
|
}, o = Object.create || /* @__PURE__ */ function() {
|
|
5838
|
-
function
|
|
5838
|
+
function T() {
|
|
5839
5839
|
}
|
|
5840
5840
|
return function(w) {
|
|
5841
|
-
var
|
|
5842
|
-
return
|
|
5841
|
+
var C;
|
|
5842
|
+
return T.prototype = w, C = new T(), T.prototype = null, C;
|
|
5843
5843
|
};
|
|
5844
5844
|
}(), A = {}, u = A.lib = {}, l = u.Base = /* @__PURE__ */ function() {
|
|
5845
5845
|
return {
|
|
@@ -5861,9 +5861,9 @@ function Zn() {
|
|
|
5861
5861
|
* }
|
|
5862
5862
|
* });
|
|
5863
5863
|
*/
|
|
5864
|
-
extend: function(
|
|
5864
|
+
extend: function(T) {
|
|
5865
5865
|
var w = o(this);
|
|
5866
|
-
return
|
|
5866
|
+
return T && w.mixIn(T), (!w.hasOwnProperty("init") || this.init === w.init) && (w.init = function() {
|
|
5867
5867
|
w.$super.init.apply(this, arguments);
|
|
5868
5868
|
}), w.init.prototype = w, w.$super = this, w;
|
|
5869
5869
|
},
|
|
@@ -5880,8 +5880,8 @@ function Zn() {
|
|
|
5880
5880
|
* var instance = MyType.create();
|
|
5881
5881
|
*/
|
|
5882
5882
|
create: function() {
|
|
5883
|
-
var
|
|
5884
|
-
return
|
|
5883
|
+
var T = this.extend();
|
|
5884
|
+
return T.init.apply(T, arguments), T;
|
|
5885
5885
|
},
|
|
5886
5886
|
/**
|
|
5887
5887
|
* Initializes a newly created object.
|
|
@@ -5908,10 +5908,10 @@ function Zn() {
|
|
|
5908
5908
|
* field: 'value'
|
|
5909
5909
|
* });
|
|
5910
5910
|
*/
|
|
5911
|
-
mixIn: function(
|
|
5912
|
-
for (var w in
|
|
5913
|
-
|
|
5914
|
-
|
|
5911
|
+
mixIn: function(T) {
|
|
5912
|
+
for (var w in T)
|
|
5913
|
+
T.hasOwnProperty(w) && (this[w] = T[w]);
|
|
5914
|
+
T.hasOwnProperty("toString") && (this.toString = T.toString);
|
|
5915
5915
|
},
|
|
5916
5916
|
/**
|
|
5917
5917
|
* Creates a copy of this object.
|
|
@@ -5939,8 +5939,8 @@ function Zn() {
|
|
|
5939
5939
|
* var wordArray = CryptoJS.lib.WordArray.create([0x00010203, 0x04050607]);
|
|
5940
5940
|
* var wordArray = CryptoJS.lib.WordArray.create([0x00010203, 0x04050607], 6);
|
|
5941
5941
|
*/
|
|
5942
|
-
init: function(
|
|
5943
|
-
|
|
5942
|
+
init: function(T, w) {
|
|
5943
|
+
T = this.words = T || [], w != r ? this.sigBytes = w : this.sigBytes = T.length * 4;
|
|
5944
5944
|
},
|
|
5945
5945
|
/**
|
|
5946
5946
|
* Converts this word array to a string.
|
|
@@ -5955,8 +5955,8 @@ function Zn() {
|
|
|
5955
5955
|
* var string = wordArray.toString();
|
|
5956
5956
|
* var string = wordArray.toString(CryptoJS.enc.Utf8);
|
|
5957
5957
|
*/
|
|
5958
|
-
toString: function(
|
|
5959
|
-
return (
|
|
5958
|
+
toString: function(T) {
|
|
5959
|
+
return (T || d).stringify(this);
|
|
5960
5960
|
},
|
|
5961
5961
|
/**
|
|
5962
5962
|
* Concatenates a word array to this word array.
|
|
@@ -5969,16 +5969,16 @@ function Zn() {
|
|
|
5969
5969
|
*
|
|
5970
5970
|
* wordArray1.concat(wordArray2);
|
|
5971
5971
|
*/
|
|
5972
|
-
concat: function(
|
|
5973
|
-
var w = this.words,
|
|
5972
|
+
concat: function(T) {
|
|
5973
|
+
var w = this.words, C = T.words, k = this.sigBytes, v = T.sigBytes;
|
|
5974
5974
|
if (this.clamp(), k % 4)
|
|
5975
|
-
for (var
|
|
5976
|
-
var I =
|
|
5977
|
-
w[k +
|
|
5975
|
+
for (var E = 0; E < v; E++) {
|
|
5976
|
+
var I = C[E >>> 2] >>> 24 - E % 4 * 8 & 255;
|
|
5977
|
+
w[k + E >>> 2] |= I << 24 - (k + E) % 4 * 8;
|
|
5978
5978
|
}
|
|
5979
5979
|
else
|
|
5980
5980
|
for (var B = 0; B < v; B += 4)
|
|
5981
|
-
w[k + B >>> 2] =
|
|
5981
|
+
w[k + B >>> 2] = C[B >>> 2];
|
|
5982
5982
|
return this.sigBytes += v, this;
|
|
5983
5983
|
},
|
|
5984
5984
|
/**
|
|
@@ -5989,8 +5989,8 @@ function Zn() {
|
|
|
5989
5989
|
* wordArray.clamp();
|
|
5990
5990
|
*/
|
|
5991
5991
|
clamp: function() {
|
|
5992
|
-
var
|
|
5993
|
-
|
|
5992
|
+
var T = this.words, w = this.sigBytes;
|
|
5993
|
+
T[w >>> 2] &= 4294967295 << 32 - w % 4 * 8, T.length = i.ceil(w / 4);
|
|
5994
5994
|
},
|
|
5995
5995
|
/**
|
|
5996
5996
|
* Creates a copy of this word array.
|
|
@@ -6002,8 +6002,8 @@ function Zn() {
|
|
|
6002
6002
|
* var clone = wordArray.clone();
|
|
6003
6003
|
*/
|
|
6004
6004
|
clone: function() {
|
|
6005
|
-
var
|
|
6006
|
-
return
|
|
6005
|
+
var T = l.clone.call(this);
|
|
6006
|
+
return T.words = this.words.slice(0), T;
|
|
6007
6007
|
},
|
|
6008
6008
|
/**
|
|
6009
6009
|
* Creates a word array filled with random bytes.
|
|
@@ -6018,10 +6018,10 @@ function Zn() {
|
|
|
6018
6018
|
*
|
|
6019
6019
|
* var wordArray = CryptoJS.lib.WordArray.random(16);
|
|
6020
6020
|
*/
|
|
6021
|
-
random: function(
|
|
6022
|
-
for (var w = [],
|
|
6021
|
+
random: function(T) {
|
|
6022
|
+
for (var w = [], C = 0; C < T; C += 4)
|
|
6023
6023
|
w.push(a());
|
|
6024
|
-
return new f.init(w,
|
|
6024
|
+
return new f.init(w, T);
|
|
6025
6025
|
}
|
|
6026
6026
|
}), c = A.enc = {}, d = c.Hex = {
|
|
6027
6027
|
/**
|
|
@@ -6037,10 +6037,10 @@ function Zn() {
|
|
|
6037
6037
|
*
|
|
6038
6038
|
* var hexString = CryptoJS.enc.Hex.stringify(wordArray);
|
|
6039
6039
|
*/
|
|
6040
|
-
stringify: function(
|
|
6041
|
-
for (var w =
|
|
6042
|
-
var
|
|
6043
|
-
k.push((
|
|
6040
|
+
stringify: function(T) {
|
|
6041
|
+
for (var w = T.words, C = T.sigBytes, k = [], v = 0; v < C; v++) {
|
|
6042
|
+
var E = w[v >>> 2] >>> 24 - v % 4 * 8 & 255;
|
|
6043
|
+
k.push((E >>> 4).toString(16)), k.push((E & 15).toString(16));
|
|
6044
6044
|
}
|
|
6045
6045
|
return k.join("");
|
|
6046
6046
|
},
|
|
@@ -6057,10 +6057,10 @@ function Zn() {
|
|
|
6057
6057
|
*
|
|
6058
6058
|
* var wordArray = CryptoJS.enc.Hex.parse(hexString);
|
|
6059
6059
|
*/
|
|
6060
|
-
parse: function(
|
|
6061
|
-
for (var w =
|
|
6062
|
-
|
|
6063
|
-
return new f.init(
|
|
6060
|
+
parse: function(T) {
|
|
6061
|
+
for (var w = T.length, C = [], k = 0; k < w; k += 2)
|
|
6062
|
+
C[k >>> 3] |= parseInt(T.substr(k, 2), 16) << 24 - k % 8 * 4;
|
|
6063
|
+
return new f.init(C, w / 2);
|
|
6064
6064
|
}
|
|
6065
6065
|
}, m = c.Latin1 = {
|
|
6066
6066
|
/**
|
|
@@ -6076,10 +6076,10 @@ function Zn() {
|
|
|
6076
6076
|
*
|
|
6077
6077
|
* var latin1String = CryptoJS.enc.Latin1.stringify(wordArray);
|
|
6078
6078
|
*/
|
|
6079
|
-
stringify: function(
|
|
6080
|
-
for (var w =
|
|
6081
|
-
var
|
|
6082
|
-
k.push(String.fromCharCode(
|
|
6079
|
+
stringify: function(T) {
|
|
6080
|
+
for (var w = T.words, C = T.sigBytes, k = [], v = 0; v < C; v++) {
|
|
6081
|
+
var E = w[v >>> 2] >>> 24 - v % 4 * 8 & 255;
|
|
6082
|
+
k.push(String.fromCharCode(E));
|
|
6083
6083
|
}
|
|
6084
6084
|
return k.join("");
|
|
6085
6085
|
},
|
|
@@ -6096,10 +6096,10 @@ function Zn() {
|
|
|
6096
6096
|
*
|
|
6097
6097
|
* var wordArray = CryptoJS.enc.Latin1.parse(latin1String);
|
|
6098
6098
|
*/
|
|
6099
|
-
parse: function(
|
|
6100
|
-
for (var w =
|
|
6101
|
-
|
|
6102
|
-
return new f.init(
|
|
6099
|
+
parse: function(T) {
|
|
6100
|
+
for (var w = T.length, C = [], k = 0; k < w; k++)
|
|
6101
|
+
C[k >>> 2] |= (T.charCodeAt(k) & 255) << 24 - k % 4 * 8;
|
|
6102
|
+
return new f.init(C, w);
|
|
6103
6103
|
}
|
|
6104
6104
|
}, g = c.Utf8 = {
|
|
6105
6105
|
/**
|
|
@@ -6115,9 +6115,9 @@ function Zn() {
|
|
|
6115
6115
|
*
|
|
6116
6116
|
* var utf8String = CryptoJS.enc.Utf8.stringify(wordArray);
|
|
6117
6117
|
*/
|
|
6118
|
-
stringify: function(
|
|
6118
|
+
stringify: function(T) {
|
|
6119
6119
|
try {
|
|
6120
|
-
return decodeURIComponent(escape(m.stringify(
|
|
6120
|
+
return decodeURIComponent(escape(m.stringify(T)));
|
|
6121
6121
|
} catch {
|
|
6122
6122
|
throw new Error("Malformed UTF-8 data");
|
|
6123
6123
|
}
|
|
@@ -6135,8 +6135,8 @@ function Zn() {
|
|
|
6135
6135
|
*
|
|
6136
6136
|
* var wordArray = CryptoJS.enc.Utf8.parse(utf8String);
|
|
6137
6137
|
*/
|
|
6138
|
-
parse: function(
|
|
6139
|
-
return m.parse(unescape(encodeURIComponent(
|
|
6138
|
+
parse: function(T) {
|
|
6139
|
+
return m.parse(unescape(encodeURIComponent(T)));
|
|
6140
6140
|
}
|
|
6141
6141
|
}, b = u.BufferedBlockAlgorithm = l.extend({
|
|
6142
6142
|
/**
|
|
@@ -6159,8 +6159,8 @@ function Zn() {
|
|
|
6159
6159
|
* bufferedBlockAlgorithm._append('data');
|
|
6160
6160
|
* bufferedBlockAlgorithm._append(wordArray);
|
|
6161
6161
|
*/
|
|
6162
|
-
_append: function(
|
|
6163
|
-
typeof
|
|
6162
|
+
_append: function(T) {
|
|
6163
|
+
typeof T == "string" && (T = g.parse(T)), this._data.concat(T), this._nDataBytes += T.sigBytes;
|
|
6164
6164
|
},
|
|
6165
6165
|
/**
|
|
6166
6166
|
* Processes available data blocks.
|
|
@@ -6176,14 +6176,14 @@ function Zn() {
|
|
|
6176
6176
|
* var processedData = bufferedBlockAlgorithm._process();
|
|
6177
6177
|
* var processedData = bufferedBlockAlgorithm._process(!!'flush');
|
|
6178
6178
|
*/
|
|
6179
|
-
_process: function(
|
|
6180
|
-
var w,
|
|
6181
|
-
|
|
6182
|
-
var x = B *
|
|
6179
|
+
_process: function(T) {
|
|
6180
|
+
var w, C = this._data, k = C.words, v = C.sigBytes, E = this.blockSize, I = E * 4, B = v / I;
|
|
6181
|
+
T ? B = i.ceil(B) : B = i.max((B | 0) - this._minBufferSize, 0);
|
|
6182
|
+
var x = B * E, D = i.min(x * 4, v);
|
|
6183
6183
|
if (x) {
|
|
6184
|
-
for (var P = 0; P < x; P +=
|
|
6184
|
+
for (var P = 0; P < x; P += E)
|
|
6185
6185
|
this._doProcessBlock(k, P);
|
|
6186
|
-
w = k.splice(0, x),
|
|
6186
|
+
w = k.splice(0, x), C.sigBytes -= D;
|
|
6187
6187
|
}
|
|
6188
6188
|
return new f.init(w, D);
|
|
6189
6189
|
},
|
|
@@ -6197,8 +6197,8 @@ function Zn() {
|
|
|
6197
6197
|
* var clone = bufferedBlockAlgorithm.clone();
|
|
6198
6198
|
*/
|
|
6199
6199
|
clone: function() {
|
|
6200
|
-
var
|
|
6201
|
-
return
|
|
6200
|
+
var T = l.clone.call(this);
|
|
6201
|
+
return T._data = this._data.clone(), T;
|
|
6202
6202
|
},
|
|
6203
6203
|
_minBufferSize: 0
|
|
6204
6204
|
});
|
|
@@ -6216,8 +6216,8 @@ function Zn() {
|
|
|
6216
6216
|
*
|
|
6217
6217
|
* var hasher = CryptoJS.algo.SHA256.create();
|
|
6218
6218
|
*/
|
|
6219
|
-
init: function(
|
|
6220
|
-
this.cfg = this.cfg.extend(
|
|
6219
|
+
init: function(T) {
|
|
6220
|
+
this.cfg = this.cfg.extend(T), this.reset();
|
|
6221
6221
|
},
|
|
6222
6222
|
/**
|
|
6223
6223
|
* Resets this hasher to its initial state.
|
|
@@ -6241,8 +6241,8 @@ function Zn() {
|
|
|
6241
6241
|
* hasher.update('message');
|
|
6242
6242
|
* hasher.update(wordArray);
|
|
6243
6243
|
*/
|
|
6244
|
-
update: function(
|
|
6245
|
-
return this._append(
|
|
6244
|
+
update: function(T) {
|
|
6245
|
+
return this._append(T), this._process(), this;
|
|
6246
6246
|
},
|
|
6247
6247
|
/**
|
|
6248
6248
|
* Finalizes the hash computation.
|
|
@@ -6258,8 +6258,8 @@ function Zn() {
|
|
|
6258
6258
|
* var hash = hasher.finalize('message');
|
|
6259
6259
|
* var hash = hasher.finalize(wordArray);
|
|
6260
6260
|
*/
|
|
6261
|
-
finalize: function(
|
|
6262
|
-
|
|
6261
|
+
finalize: function(T) {
|
|
6262
|
+
T && this._append(T);
|
|
6263
6263
|
var w = this._doFinalize();
|
|
6264
6264
|
return w;
|
|
6265
6265
|
},
|
|
@@ -6277,9 +6277,9 @@ function Zn() {
|
|
|
6277
6277
|
*
|
|
6278
6278
|
* var SHA256 = CryptoJS.lib.Hasher._createHelper(CryptoJS.algo.SHA256);
|
|
6279
6279
|
*/
|
|
6280
|
-
_createHelper: function(
|
|
6281
|
-
return function(w,
|
|
6282
|
-
return new
|
|
6280
|
+
_createHelper: function(T) {
|
|
6281
|
+
return function(w, C) {
|
|
6282
|
+
return new T.init(C).finalize(w);
|
|
6283
6283
|
};
|
|
6284
6284
|
},
|
|
6285
6285
|
/**
|
|
@@ -6295,9 +6295,9 @@ function Zn() {
|
|
|
6295
6295
|
*
|
|
6296
6296
|
* var HmacSHA256 = CryptoJS.lib.Hasher._createHmacHelper(CryptoJS.algo.SHA256);
|
|
6297
6297
|
*/
|
|
6298
|
-
_createHmacHelper: function(
|
|
6299
|
-
return function(w,
|
|
6300
|
-
return new y.HMAC.init(
|
|
6298
|
+
_createHmacHelper: function(T) {
|
|
6299
|
+
return function(w, C) {
|
|
6300
|
+
return new y.HMAC.init(T, C).finalize(w);
|
|
6301
6301
|
};
|
|
6302
6302
|
}
|
|
6303
6303
|
});
|
|
@@ -6334,8 +6334,8 @@ function J6() {
|
|
|
6334
6334
|
var u = A.words, l = A.sigBytes, f = this._map;
|
|
6335
6335
|
A.clamp();
|
|
6336
6336
|
for (var c = [], d = 0; d < l; d += 3)
|
|
6337
|
-
for (var m = u[d >>> 2] >>> 24 - d % 4 * 8 & 255, g = u[d + 1 >>> 2] >>> 24 - (d + 1) % 4 * 8 & 255, b = u[d + 2 >>> 2] >>> 24 - (d + 2) % 4 * 8 & 255, y = m << 16 | g << 8 | b,
|
|
6338
|
-
c.push(f.charAt(y >>> 6 * (3 -
|
|
6337
|
+
for (var m = u[d >>> 2] >>> 24 - d % 4 * 8 & 255, g = u[d + 1 >>> 2] >>> 24 - (d + 1) % 4 * 8 & 255, b = u[d + 2 >>> 2] >>> 24 - (d + 2) % 4 * 8 & 255, y = m << 16 | g << 8 | b, T = 0; T < 4 && d + T * 0.75 < l; T++)
|
|
6338
|
+
c.push(f.charAt(y >>> 6 * (3 - T) & 63));
|
|
6339
6339
|
var w = f.charAt(64);
|
|
6340
6340
|
if (w)
|
|
6341
6341
|
for (; c.length % 4; )
|
|
@@ -6406,20 +6406,20 @@ function K6() {
|
|
|
6406
6406
|
},
|
|
6407
6407
|
_doProcessBlock: function(g, b) {
|
|
6408
6408
|
for (var y = 0; y < 16; y++) {
|
|
6409
|
-
var
|
|
6410
|
-
g[
|
|
6409
|
+
var T = b + y, w = g[T];
|
|
6410
|
+
g[T] = (w << 8 | w >>> 24) & 16711935 | (w << 24 | w >>> 8) & 4278255360;
|
|
6411
6411
|
}
|
|
6412
|
-
var
|
|
6413
|
-
U = f(U, Y, N, W, k, 7, u[0]), W = f(W, U, Y, N, v, 12, u[1]), N = f(N, W, U, Y,
|
|
6412
|
+
var C = this._hash.words, k = g[b + 0], v = g[b + 1], E = g[b + 2], I = g[b + 3], B = g[b + 4], x = g[b + 5], D = g[b + 6], P = g[b + 7], _ = g[b + 8], Q = g[b + 9], H = g[b + 10], V = g[b + 11], re = g[b + 12], he = g[b + 13], oe = g[b + 14], S = g[b + 15], U = C[0], Y = C[1], N = C[2], W = C[3];
|
|
6413
|
+
U = f(U, Y, N, W, k, 7, u[0]), W = f(W, U, Y, N, v, 12, u[1]), N = f(N, W, U, Y, E, 17, u[2]), Y = f(Y, N, W, U, I, 22, u[3]), U = f(U, Y, N, W, B, 7, u[4]), W = f(W, U, Y, N, x, 12, u[5]), N = f(N, W, U, Y, D, 17, u[6]), Y = f(Y, N, W, U, P, 22, u[7]), U = f(U, Y, N, W, _, 7, u[8]), W = f(W, U, Y, N, Q, 12, u[9]), N = f(N, W, U, Y, H, 17, u[10]), Y = f(Y, N, W, U, V, 22, u[11]), U = f(U, Y, N, W, re, 7, u[12]), W = f(W, U, Y, N, he, 12, u[13]), N = f(N, W, U, Y, oe, 17, u[14]), Y = f(Y, N, W, U, S, 22, u[15]), U = c(U, Y, N, W, v, 5, u[16]), W = c(W, U, Y, N, D, 9, u[17]), N = c(N, W, U, Y, V, 14, u[18]), Y = c(Y, N, W, U, k, 20, u[19]), U = c(U, Y, N, W, x, 5, u[20]), W = c(W, U, Y, N, H, 9, u[21]), N = c(N, W, U, Y, S, 14, u[22]), Y = c(Y, N, W, U, B, 20, u[23]), U = c(U, Y, N, W, Q, 5, u[24]), W = c(W, U, Y, N, oe, 9, u[25]), N = c(N, W, U, Y, I, 14, u[26]), Y = c(Y, N, W, U, _, 20, u[27]), U = c(U, Y, N, W, he, 5, u[28]), W = c(W, U, Y, N, E, 9, u[29]), N = c(N, W, U, Y, P, 14, u[30]), Y = c(Y, N, W, U, re, 20, u[31]), U = d(U, Y, N, W, x, 4, u[32]), W = d(W, U, Y, N, _, 11, u[33]), N = d(N, W, U, Y, V, 16, u[34]), Y = d(Y, N, W, U, oe, 23, u[35]), U = d(U, Y, N, W, v, 4, u[36]), W = d(W, U, Y, N, B, 11, u[37]), N = d(N, W, U, Y, P, 16, u[38]), Y = d(Y, N, W, U, H, 23, u[39]), U = d(U, Y, N, W, he, 4, u[40]), W = d(W, U, Y, N, k, 11, u[41]), N = d(N, W, U, Y, I, 16, u[42]), Y = d(Y, N, W, U, D, 23, u[43]), U = d(U, Y, N, W, Q, 4, u[44]), W = d(W, U, Y, N, re, 11, u[45]), N = d(N, W, U, Y, S, 16, u[46]), Y = d(Y, N, W, U, E, 23, u[47]), U = m(U, Y, N, W, k, 6, u[48]), W = m(W, U, Y, N, P, 10, u[49]), N = m(N, W, U, Y, oe, 15, u[50]), Y = m(Y, N, W, U, x, 21, u[51]), U = m(U, Y, N, W, re, 6, u[52]), W = m(W, U, Y, N, I, 10, u[53]), N = m(N, W, U, Y, H, 15, u[54]), Y = m(Y, N, W, U, v, 21, u[55]), U = m(U, Y, N, W, _, 6, u[56]), W = m(W, U, Y, N, S, 10, u[57]), N = m(N, W, U, Y, D, 15, u[58]), Y = m(Y, N, W, U, he, 21, u[59]), U = m(U, Y, N, W, B, 6, u[60]), W = m(W, U, Y, N, V, 10, u[61]), N = m(N, W, U, Y, E, 15, u[62]), Y = m(Y, N, W, U, Q, 21, u[63]), C[0] = C[0] + U | 0, C[1] = C[1] + Y | 0, C[2] = C[2] + N | 0, C[3] = C[3] + W | 0;
|
|
6414
6414
|
},
|
|
6415
6415
|
_doFinalize: function() {
|
|
6416
|
-
var g = this._data, b = g.words, y = this._nDataBytes * 8,
|
|
6417
|
-
b[
|
|
6418
|
-
var w = i.floor(y / 4294967296),
|
|
6419
|
-
b[(
|
|
6420
|
-
for (var k = this._hash, v = k.words,
|
|
6421
|
-
var I = v[
|
|
6422
|
-
v[
|
|
6416
|
+
var g = this._data, b = g.words, y = this._nDataBytes * 8, T = g.sigBytes * 8;
|
|
6417
|
+
b[T >>> 5] |= 128 << 24 - T % 32;
|
|
6418
|
+
var w = i.floor(y / 4294967296), C = y;
|
|
6419
|
+
b[(T + 64 >>> 9 << 4) + 15] = (w << 8 | w >>> 24) & 16711935 | (w << 24 | w >>> 8) & 4278255360, b[(T + 64 >>> 9 << 4) + 14] = (C << 8 | C >>> 24) & 16711935 | (C << 24 | C >>> 8) & 4278255360, g.sigBytes = (b.length + 1) * 4, this._process();
|
|
6420
|
+
for (var k = this._hash, v = k.words, E = 0; E < 4; E++) {
|
|
6421
|
+
var I = v[E];
|
|
6422
|
+
v[E] = (I << 8 | I >>> 24) & 16711935 | (I << 24 | I >>> 8) & 4278255360;
|
|
6423
6423
|
}
|
|
6424
6424
|
return k;
|
|
6425
6425
|
},
|
|
@@ -6428,21 +6428,21 @@ function K6() {
|
|
|
6428
6428
|
return g._hash = this._hash.clone(), g;
|
|
6429
6429
|
}
|
|
6430
6430
|
});
|
|
6431
|
-
function f(g, b, y,
|
|
6432
|
-
var v = g + (b & y | ~b &
|
|
6433
|
-
return (v <<
|
|
6431
|
+
function f(g, b, y, T, w, C, k) {
|
|
6432
|
+
var v = g + (b & y | ~b & T) + w + k;
|
|
6433
|
+
return (v << C | v >>> 32 - C) + b;
|
|
6434
6434
|
}
|
|
6435
|
-
function c(g, b, y,
|
|
6436
|
-
var v = g + (b &
|
|
6437
|
-
return (v <<
|
|
6435
|
+
function c(g, b, y, T, w, C, k) {
|
|
6436
|
+
var v = g + (b & T | y & ~T) + w + k;
|
|
6437
|
+
return (v << C | v >>> 32 - C) + b;
|
|
6438
6438
|
}
|
|
6439
|
-
function d(g, b, y,
|
|
6440
|
-
var v = g + (b ^ y ^
|
|
6441
|
-
return (v <<
|
|
6439
|
+
function d(g, b, y, T, w, C, k) {
|
|
6440
|
+
var v = g + (b ^ y ^ T) + w + k;
|
|
6441
|
+
return (v << C | v >>> 32 - C) + b;
|
|
6442
6442
|
}
|
|
6443
|
-
function m(g, b, y,
|
|
6444
|
-
var v = g + (y ^ (b | ~
|
|
6445
|
-
return (v <<
|
|
6443
|
+
function m(g, b, y, T, w, C, k) {
|
|
6444
|
+
var v = g + (y ^ (b | ~T)) + w + k;
|
|
6445
|
+
return (v << C | v >>> 32 - C) + b;
|
|
6446
6446
|
}
|
|
6447
6447
|
r.MD5 = o._createHelper(l), r.HmacMD5 = o._createHmacHelper(l);
|
|
6448
6448
|
}(Math), n.MD5;
|
|
@@ -6467,15 +6467,15 @@ function $6() {
|
|
|
6467
6467
|
]);
|
|
6468
6468
|
},
|
|
6469
6469
|
_doProcessBlock: function(l, f) {
|
|
6470
|
-
for (var c = this._hash.words, d = c[0], m = c[1], g = c[2], b = c[3], y = c[4],
|
|
6471
|
-
if (
|
|
6472
|
-
A[
|
|
6470
|
+
for (var c = this._hash.words, d = c[0], m = c[1], g = c[2], b = c[3], y = c[4], T = 0; T < 80; T++) {
|
|
6471
|
+
if (T < 16)
|
|
6472
|
+
A[T] = l[f + T] | 0;
|
|
6473
6473
|
else {
|
|
6474
|
-
var w = A[
|
|
6475
|
-
A[
|
|
6474
|
+
var w = A[T - 3] ^ A[T - 8] ^ A[T - 14] ^ A[T - 16];
|
|
6475
|
+
A[T] = w << 1 | w >>> 31;
|
|
6476
6476
|
}
|
|
6477
|
-
var
|
|
6478
|
-
|
|
6477
|
+
var C = (d << 5 | d >>> 27) + y + A[T];
|
|
6478
|
+
T < 20 ? C += (m & g | ~m & b) + 1518500249 : T < 40 ? C += (m ^ g ^ b) + 1859775393 : T < 60 ? C += (m & g | m & b | g & b) - 1894007588 : C += (m ^ g ^ b) - 899497514, y = b, b = g, g = m << 30 | m >>> 2, m = d, d = C;
|
|
6479
6479
|
}
|
|
6480
6480
|
c[0] = c[0] + d | 0, c[1] = c[1] + m | 0, c[2] = c[2] + g | 0, c[3] = c[3] + b | 0, c[4] = c[4] + y | 0;
|
|
6481
6481
|
},
|
|
@@ -6618,9 +6618,9 @@ function a2() {
|
|
|
6618
6618
|
* var key = kdf.compute(password, salt);
|
|
6619
6619
|
*/
|
|
6620
6620
|
compute: function(l, f) {
|
|
6621
|
-
for (var c, d = this.cfg, m = d.hasher.create(), g = a.create(), b = g.words, y = d.keySize,
|
|
6621
|
+
for (var c, d = this.cfg, m = d.hasher.create(), g = a.create(), b = g.words, y = d.keySize, T = d.iterations; b.length < y; ) {
|
|
6622
6622
|
c && m.update(c), c = m.update(l).finalize(f), m.reset();
|
|
6623
|
-
for (var w = 1; w <
|
|
6623
|
+
for (var w = 1; w < T; w++)
|
|
6624
6624
|
c = m.finalize(c), m.reset();
|
|
6625
6625
|
g.concat(c);
|
|
6626
6626
|
}
|
|
@@ -6866,7 +6866,7 @@ function rE() {
|
|
|
6866
6866
|
P[_ + re] ^= H[re];
|
|
6867
6867
|
}
|
|
6868
6868
|
return x;
|
|
6869
|
-
}(), y = r.pad = {},
|
|
6869
|
+
}(), y = r.pad = {}, T = y.Pkcs7 = {
|
|
6870
6870
|
/**
|
|
6871
6871
|
* Pads data using the algorithm defined in PKCS #5/7.
|
|
6872
6872
|
*
|
|
@@ -6910,7 +6910,7 @@ function rE() {
|
|
|
6910
6910
|
*/
|
|
6911
6911
|
cfg: d.cfg.extend({
|
|
6912
6912
|
mode: b,
|
|
6913
|
-
padding:
|
|
6913
|
+
padding: T
|
|
6914
6914
|
}),
|
|
6915
6915
|
reset: function() {
|
|
6916
6916
|
var x;
|
|
@@ -6968,7 +6968,7 @@ function rE() {
|
|
|
6968
6968
|
toString: function(x) {
|
|
6969
6969
|
return (x || this.formatter).stringify(this);
|
|
6970
6970
|
}
|
|
6971
|
-
}),
|
|
6971
|
+
}), C = r.format = {}, k = C.OpenSSL = {
|
|
6972
6972
|
/**
|
|
6973
6973
|
* Converts a cipher params object to an OpenSSL-compatible string.
|
|
6974
6974
|
*
|
|
@@ -7084,7 +7084,7 @@ function rE() {
|
|
|
7084
7084
|
_parse: function(x, D) {
|
|
7085
7085
|
return typeof x == "string" ? D.parse(x, this) : x;
|
|
7086
7086
|
}
|
|
7087
|
-
}),
|
|
7087
|
+
}), E = r.kdf = {}, I = E.OpenSSL = {
|
|
7088
7088
|
/**
|
|
7089
7089
|
* Derives a key and IV from a password.
|
|
7090
7090
|
*
|
|
@@ -7181,22 +7181,22 @@ function aE() {
|
|
|
7181
7181
|
return function() {
|
|
7182
7182
|
var i = n, r = i.lib, s = r.BlockCipher, a = i.algo, o = [], A = [], u = [], l = [], f = [], c = [], d = [], m = [], g = [], b = [];
|
|
7183
7183
|
(function() {
|
|
7184
|
-
for (var w = [],
|
|
7185
|
-
|
|
7186
|
-
for (var k = 0, v = 0,
|
|
7187
|
-
var
|
|
7188
|
-
|
|
7189
|
-
var I = w[k], B = w[I], x = w[B], D = w[
|
|
7184
|
+
for (var w = [], C = 0; C < 256; C++)
|
|
7185
|
+
C < 128 ? w[C] = C << 1 : w[C] = C << 1 ^ 283;
|
|
7186
|
+
for (var k = 0, v = 0, C = 0; C < 256; C++) {
|
|
7187
|
+
var E = v ^ v << 1 ^ v << 2 ^ v << 3 ^ v << 4;
|
|
7188
|
+
E = E >>> 8 ^ E & 255 ^ 99, o[k] = E, A[E] = k;
|
|
7189
|
+
var I = w[k], B = w[I], x = w[B], D = w[E] * 257 ^ E * 16843008;
|
|
7190
7190
|
u[k] = D << 24 | D >>> 8, l[k] = D << 16 | D >>> 16, f[k] = D << 8 | D >>> 24, c[k] = D;
|
|
7191
7191
|
var D = x * 16843009 ^ B * 65537 ^ I * 257 ^ k * 16843008;
|
|
7192
|
-
d[
|
|
7192
|
+
d[E] = D << 24 | D >>> 8, m[E] = D << 16 | D >>> 16, g[E] = D << 8 | D >>> 24, b[E] = D, k ? (k = I ^ w[w[w[x ^ I]]], v ^= w[w[v]]) : k = v = 1;
|
|
7193
7193
|
}
|
|
7194
7194
|
})();
|
|
7195
|
-
var y = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54],
|
|
7195
|
+
var y = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54], T = a.AES = s.extend({
|
|
7196
7196
|
_doReset: function() {
|
|
7197
7197
|
var w;
|
|
7198
7198
|
if (!(this._nRounds && this._keyPriorReset === this._key)) {
|
|
7199
|
-
for (var
|
|
7199
|
+
for (var C = this._keyPriorReset = this._key, k = C.words, v = C.sigBytes / 4, E = this._nRounds = v + 6, I = (E + 1) * 4, B = this._keySchedule = [], x = 0; x < I; x++)
|
|
7200
7200
|
x < v ? B[x] = k[x] : (w = B[x - 1], x % v ? v > 6 && x % v == 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[x / v | 0] << 24), B[x] = B[x - v] ^ w);
|
|
7201
7201
|
for (var D = this._invKeySchedule = [], P = 0; P < I; P++) {
|
|
7202
7202
|
var x = I - P;
|
|
@@ -7208,26 +7208,26 @@ function aE() {
|
|
|
7208
7208
|
}
|
|
7209
7209
|
}
|
|
7210
7210
|
},
|
|
7211
|
-
encryptBlock: function(w,
|
|
7212
|
-
this._doCryptBlock(w,
|
|
7211
|
+
encryptBlock: function(w, C) {
|
|
7212
|
+
this._doCryptBlock(w, C, this._keySchedule, u, l, f, c, o);
|
|
7213
7213
|
},
|
|
7214
|
-
decryptBlock: function(w,
|
|
7215
|
-
var k = w[
|
|
7216
|
-
w[
|
|
7217
|
-
var k = w[
|
|
7218
|
-
w[
|
|
7214
|
+
decryptBlock: function(w, C) {
|
|
7215
|
+
var k = w[C + 1];
|
|
7216
|
+
w[C + 1] = w[C + 3], w[C + 3] = k, this._doCryptBlock(w, C, this._invKeySchedule, d, m, g, b, A);
|
|
7217
|
+
var k = w[C + 1];
|
|
7218
|
+
w[C + 1] = w[C + 3], w[C + 3] = k;
|
|
7219
7219
|
},
|
|
7220
|
-
_doCryptBlock: function(w,
|
|
7221
|
-
for (var D = this._nRounds, P = w[
|
|
7222
|
-
var he = v[P >>> 24] ^
|
|
7220
|
+
_doCryptBlock: function(w, C, k, v, E, I, B, x) {
|
|
7221
|
+
for (var D = this._nRounds, P = w[C] ^ k[0], _ = w[C + 1] ^ k[1], Q = w[C + 2] ^ k[2], H = w[C + 3] ^ k[3], V = 4, re = 1; re < D; re++) {
|
|
7222
|
+
var he = v[P >>> 24] ^ E[_ >>> 16 & 255] ^ I[Q >>> 8 & 255] ^ B[H & 255] ^ k[V++], oe = v[_ >>> 24] ^ E[Q >>> 16 & 255] ^ I[H >>> 8 & 255] ^ B[P & 255] ^ k[V++], S = v[Q >>> 24] ^ E[H >>> 16 & 255] ^ I[P >>> 8 & 255] ^ B[_ & 255] ^ k[V++], U = v[H >>> 24] ^ E[P >>> 16 & 255] ^ I[_ >>> 8 & 255] ^ B[Q & 255] ^ k[V++];
|
|
7223
7223
|
P = he, _ = oe, Q = S, H = U;
|
|
7224
7224
|
}
|
|
7225
7225
|
var he = (x[P >>> 24] << 24 | x[_ >>> 16 & 255] << 16 | x[Q >>> 8 & 255] << 8 | x[H & 255]) ^ k[V++], oe = (x[_ >>> 24] << 24 | x[Q >>> 16 & 255] << 16 | x[H >>> 8 & 255] << 8 | x[P & 255]) ^ k[V++], S = (x[Q >>> 24] << 24 | x[H >>> 16 & 255] << 16 | x[P >>> 8 & 255] << 8 | x[_ & 255]) ^ k[V++], U = (x[H >>> 24] << 24 | x[P >>> 16 & 255] << 16 | x[_ >>> 8 & 255] << 8 | x[Q & 255]) ^ k[V++];
|
|
7226
|
-
w[
|
|
7226
|
+
w[C] = he, w[C + 1] = oe, w[C + 2] = S, w[C + 3] = U;
|
|
7227
7227
|
},
|
|
7228
7228
|
keySize: 256 / 32
|
|
7229
7229
|
});
|
|
7230
|
-
i.AES = s._createHelper(
|
|
7230
|
+
i.AES = s._createHelper(T);
|
|
7231
7231
|
}(), n.AES;
|
|
7232
7232
|
});
|
|
7233
7233
|
}(_a)), _a.exports;
|
|
@@ -7739,10 +7739,10 @@ function aA(e, t, n) {
|
|
|
7739
7739
|
if (G.endsWith(g, "{}"))
|
|
7740
7740
|
g = i ? g : g.slice(0, -2), m = JSON.stringify(m);
|
|
7741
7741
|
else if (G.isArray(m) && fC(m) || (G.isFileList(m) || G.endsWith(g, "[]")) && (y = G.toArray(m)))
|
|
7742
|
-
return g = v2(g), y.forEach(function(w,
|
|
7742
|
+
return g = v2(g), y.forEach(function(w, C) {
|
|
7743
7743
|
!(G.isUndefined(w) || w === null) && t.append(
|
|
7744
7744
|
// eslint-disable-next-line no-nested-ternary
|
|
7745
|
-
a === !0 ? Oh([g],
|
|
7745
|
+
a === !0 ? Oh([g], C, s) : a === null ? g : g + "[]",
|
|
7746
7746
|
u(w)
|
|
7747
7747
|
);
|
|
7748
7748
|
}), !1;
|
|
@@ -7758,14 +7758,14 @@ function aA(e, t, n) {
|
|
|
7758
7758
|
if (!G.isUndefined(m)) {
|
|
7759
7759
|
if (f.indexOf(m) !== -1)
|
|
7760
7760
|
throw Error("Circular reference detected in " + g.join("."));
|
|
7761
|
-
f.push(m), G.forEach(m, function(y,
|
|
7761
|
+
f.push(m), G.forEach(m, function(y, T) {
|
|
7762
7762
|
(!(G.isUndefined(y) || y === null) && r.call(
|
|
7763
7763
|
t,
|
|
7764
7764
|
y,
|
|
7765
|
-
G.isString(
|
|
7765
|
+
G.isString(T) ? T.trim() : T,
|
|
7766
7766
|
g,
|
|
7767
7767
|
c
|
|
7768
|
-
)) === !0 && d(y, g ? g.concat(
|
|
7768
|
+
)) === !0 && d(y, g ? g.concat(T) : [T]);
|
|
7769
7769
|
}), f.pop();
|
|
7770
7770
|
}
|
|
7771
7771
|
}
|
|
@@ -8446,10 +8446,10 @@ const T2 = (e) => {
|
|
|
8446
8446
|
config: e,
|
|
8447
8447
|
request: b
|
|
8448
8448
|
};
|
|
8449
|
-
C2(function(
|
|
8450
|
-
n(
|
|
8451
|
-
}, function(
|
|
8452
|
-
i(
|
|
8449
|
+
C2(function(E) {
|
|
8450
|
+
n(E), g();
|
|
8451
|
+
}, function(E) {
|
|
8452
|
+
i(E), g();
|
|
8453
8453
|
}, k), b = null;
|
|
8454
8454
|
}
|
|
8455
8455
|
"onloadend" in b ? b.onloadend = y : b.onreadystatechange = function() {
|
|
@@ -8459,22 +8459,22 @@ const T2 = (e) => {
|
|
|
8459
8459
|
}, b.onerror = function() {
|
|
8460
8460
|
i(new we("Network Error", we.ERR_NETWORK, e, b)), b = null;
|
|
8461
8461
|
}, b.ontimeout = function() {
|
|
8462
|
-
let
|
|
8462
|
+
let C = r.timeout ? "timeout of " + r.timeout + "ms exceeded" : "timeout exceeded";
|
|
8463
8463
|
const k = r.transitional || w2;
|
|
8464
|
-
r.timeoutErrorMessage && (
|
|
8465
|
-
|
|
8464
|
+
r.timeoutErrorMessage && (C = r.timeoutErrorMessage), i(new we(
|
|
8465
|
+
C,
|
|
8466
8466
|
k.clarifyTimeoutError ? we.ETIMEDOUT : we.ECONNABORTED,
|
|
8467
8467
|
e,
|
|
8468
8468
|
b
|
|
8469
8469
|
)), b = null;
|
|
8470
|
-
}, s === void 0 && a.setContentType(null), "setRequestHeader" in b && G.forEach(a.toJSON(), function(
|
|
8471
|
-
b.setRequestHeader(k,
|
|
8470
|
+
}, s === void 0 && a.setContentType(null), "setRequestHeader" in b && G.forEach(a.toJSON(), function(C, k) {
|
|
8471
|
+
b.setRequestHeader(k, C);
|
|
8472
8472
|
}), G.isUndefined(r.withCredentials) || (b.withCredentials = !!r.withCredentials), o && o !== "json" && (b.responseType = r.responseType), u && ([c, m] = go(u, !0), b.addEventListener("progress", c)), A && b.upload && ([f, d] = go(A), b.upload.addEventListener("progress", f), b.upload.addEventListener("loadend", d)), (r.cancelToken || r.signal) && (l = (w) => {
|
|
8473
8473
|
b && (i(!w || w.type ? new vr(null, e, b) : w), b.abort(), b = null);
|
|
8474
8474
|
}, r.cancelToken && r.cancelToken.subscribe(l), r.signal && (r.signal.aborted ? l() : r.signal.addEventListener("abort", l)));
|
|
8475
|
-
const
|
|
8476
|
-
if (
|
|
8477
|
-
i(new we("Unsupported protocol " +
|
|
8475
|
+
const T = RC(r.url);
|
|
8476
|
+
if (T && lt.protocols.indexOf(T) === -1) {
|
|
8477
|
+
i(new we("Unsupported protocol " + T + ":", we.ERR_BAD_REQUEST, e));
|
|
8478
8478
|
return;
|
|
8479
8479
|
}
|
|
8480
8480
|
b.send(s || null);
|
|
@@ -8631,11 +8631,11 @@ const qC = async (e) => {
|
|
|
8631
8631
|
duplex: "half"
|
|
8632
8632
|
}), v;
|
|
8633
8633
|
if (G.isFormData(i) && (v = k.headers.get("content-type")) && l.setContentType(v), k.body) {
|
|
8634
|
-
const [
|
|
8634
|
+
const [E, I] = Hh(
|
|
8635
8635
|
b,
|
|
8636
8636
|
go(Uh(A))
|
|
8637
8637
|
);
|
|
8638
|
-
i = Yh(k.body, Wh,
|
|
8638
|
+
i = Yh(k.body, Wh, E, I);
|
|
8639
8639
|
}
|
|
8640
8640
|
}
|
|
8641
8641
|
G.isString(f) || (f = f ? "include" : "omit");
|
|
@@ -8649,32 +8649,32 @@ const qC = async (e) => {
|
|
|
8649
8649
|
duplex: "half",
|
|
8650
8650
|
credentials: y ? f : void 0
|
|
8651
8651
|
});
|
|
8652
|
-
let
|
|
8652
|
+
let T = await fetch(m, c);
|
|
8653
8653
|
const w = df && (u === "stream" || u === "response");
|
|
8654
8654
|
if (df && (o || w && g)) {
|
|
8655
8655
|
const k = {};
|
|
8656
8656
|
["status", "statusText", "headers"].forEach((B) => {
|
|
8657
|
-
k[B] =
|
|
8657
|
+
k[B] = T[B];
|
|
8658
8658
|
});
|
|
8659
|
-
const v = G.toFiniteNumber(
|
|
8659
|
+
const v = G.toFiniteNumber(T.headers.get("content-length")), [E, I] = o && Hh(
|
|
8660
8660
|
v,
|
|
8661
8661
|
go(Uh(o), !0)
|
|
8662
8662
|
) || [];
|
|
8663
|
-
|
|
8664
|
-
Yh(
|
|
8663
|
+
T = new Response(
|
|
8664
|
+
Yh(T.body, Wh, E, () => {
|
|
8665
8665
|
I && I(), g && g();
|
|
8666
8666
|
}),
|
|
8667
8667
|
k
|
|
8668
8668
|
);
|
|
8669
8669
|
}
|
|
8670
8670
|
u = u || "text";
|
|
8671
|
-
let
|
|
8671
|
+
let C = await vo[G.findKey(vo, u) || "text"](T, e);
|
|
8672
8672
|
return !w && g && g(), await new Promise((k, v) => {
|
|
8673
8673
|
C2(k, v, {
|
|
8674
|
-
data:
|
|
8675
|
-
headers: xt.from(
|
|
8676
|
-
status:
|
|
8677
|
-
statusText:
|
|
8674
|
+
data: C,
|
|
8675
|
+
headers: xt.from(T.headers),
|
|
8676
|
+
status: T.status,
|
|
8677
|
+
statusText: T.statusText,
|
|
8678
8678
|
config: e,
|
|
8679
8679
|
request: m
|
|
8680
8680
|
});
|
|
@@ -10322,16 +10322,16 @@ const bo = (e, t) => {
|
|
|
10322
10322
|
try {
|
|
10323
10323
|
const y = (async () => {
|
|
10324
10324
|
const w = new O9(d, m, g);
|
|
10325
|
-
return i(w), Jh(w), await new Promise((
|
|
10325
|
+
return i(w), Jh(w), await new Promise((C, k) => {
|
|
10326
10326
|
const v = () => {
|
|
10327
|
-
w.status === "online" ?
|
|
10327
|
+
w.status === "online" ? C() : w.status === "error" ? k(new Error("Failed to connect.")) : setTimeout(v, 300);
|
|
10328
10328
|
};
|
|
10329
10329
|
v();
|
|
10330
10330
|
}), s(m), o(d), i(w), u(0), b && await O2(w, b), w;
|
|
10331
10331
|
})();
|
|
10332
10332
|
l.current = y;
|
|
10333
|
-
const
|
|
10334
|
-
return l.current = null,
|
|
10333
|
+
const T = await y;
|
|
10334
|
+
return l.current = null, T;
|
|
10335
10335
|
} catch (y) {
|
|
10336
10336
|
throw console.error("Error initializing client:", y), i(null), Jh(null), l.current = null, y;
|
|
10337
10337
|
}
|
|
@@ -10410,24 +10410,24 @@ function Q9() {
|
|
|
10410
10410
|
function() {
|
|
10411
10411
|
function b(k) {
|
|
10412
10412
|
if (!y) {
|
|
10413
|
-
if (y = !0,
|
|
10413
|
+
if (y = !0, T = k, k = f(k), c !== void 0 && m.hasValue) {
|
|
10414
10414
|
var v = m.value;
|
|
10415
10415
|
if (c(v, k))
|
|
10416
10416
|
return w = v;
|
|
10417
10417
|
}
|
|
10418
10418
|
return w = k;
|
|
10419
10419
|
}
|
|
10420
|
-
if (v = w, n(
|
|
10421
|
-
var
|
|
10422
|
-
return c !== void 0 && c(v,
|
|
10420
|
+
if (v = w, n(T, k)) return v;
|
|
10421
|
+
var E = f(k);
|
|
10422
|
+
return c !== void 0 && c(v, E) ? (T = k, v) : (T = k, w = E);
|
|
10423
10423
|
}
|
|
10424
|
-
var y = !1,
|
|
10424
|
+
var y = !1, T, w, C = l === void 0 ? null : l;
|
|
10425
10425
|
return [
|
|
10426
10426
|
function() {
|
|
10427
10427
|
return b(u());
|
|
10428
10428
|
},
|
|
10429
|
-
|
|
10430
|
-
return b(
|
|
10429
|
+
C === null ? void 0 : function() {
|
|
10430
|
+
return b(C());
|
|
10431
10431
|
}
|
|
10432
10432
|
];
|
|
10433
10433
|
},
|
|
@@ -10470,25 +10470,25 @@ function H9() {
|
|
|
10470
10470
|
function() {
|
|
10471
10471
|
function b(k) {
|
|
10472
10472
|
if (!y) {
|
|
10473
|
-
if (y = !0,
|
|
10473
|
+
if (y = !0, T = k, k = f(k), c !== void 0 && m.hasValue) {
|
|
10474
10474
|
var v = m.value;
|
|
10475
10475
|
if (c(v, k))
|
|
10476
10476
|
return w = v;
|
|
10477
10477
|
}
|
|
10478
10478
|
return w = k;
|
|
10479
10479
|
}
|
|
10480
|
-
if (v = w, n(
|
|
10480
|
+
if (v = w, n(T, k))
|
|
10481
10481
|
return v;
|
|
10482
|
-
var
|
|
10483
|
-
return c !== void 0 && c(v,
|
|
10482
|
+
var E = f(k);
|
|
10483
|
+
return c !== void 0 && c(v, E) ? (T = k, v) : (T = k, w = E);
|
|
10484
10484
|
}
|
|
10485
|
-
var y = !1,
|
|
10485
|
+
var y = !1, T, w, C = l === void 0 ? null : l;
|
|
10486
10486
|
return [
|
|
10487
10487
|
function() {
|
|
10488
10488
|
return b(u());
|
|
10489
10489
|
},
|
|
10490
|
-
|
|
10491
|
-
return b(
|
|
10490
|
+
C === null ? void 0 : function() {
|
|
10491
|
+
return b(C());
|
|
10492
10492
|
}
|
|
10493
10493
|
];
|
|
10494
10494
|
},
|
|
@@ -10682,7 +10682,7 @@ function a5(e = Jn) {
|
|
|
10682
10682
|
const m = i(d);
|
|
10683
10683
|
if (process.env.NODE_ENV !== "production") {
|
|
10684
10684
|
const { devModeChecks: g = {} } = typeof r == "function" ? {} : r, { identityFunctionCheck: b, stabilityCheck: y } = a, {
|
|
10685
|
-
identityFunctionCheck:
|
|
10685
|
+
identityFunctionCheck: T,
|
|
10686
10686
|
stabilityCheck: w
|
|
10687
10687
|
} = {
|
|
10688
10688
|
stabilityCheck: y,
|
|
@@ -10690,8 +10690,8 @@ function a5(e = Jn) {
|
|
|
10690
10690
|
...g
|
|
10691
10691
|
};
|
|
10692
10692
|
if (w === "always" || w === "once" && l.current) {
|
|
10693
|
-
const
|
|
10694
|
-
if (!s(m,
|
|
10693
|
+
const C = i(d);
|
|
10694
|
+
if (!s(m, C)) {
|
|
10695
10695
|
let k;
|
|
10696
10696
|
try {
|
|
10697
10697
|
throw new Error();
|
|
@@ -10704,23 +10704,23 @@ Selectors that return a new reference (such as an object or an array) should be
|
|
|
10704
10704
|
{
|
|
10705
10705
|
state: d,
|
|
10706
10706
|
selected: m,
|
|
10707
|
-
selected2:
|
|
10707
|
+
selected2: C,
|
|
10708
10708
|
stack: k
|
|
10709
10709
|
}
|
|
10710
10710
|
);
|
|
10711
10711
|
}
|
|
10712
10712
|
}
|
|
10713
|
-
if ((
|
|
10714
|
-
let
|
|
10713
|
+
if ((T === "always" || T === "once" && l.current) && m === d) {
|
|
10714
|
+
let C;
|
|
10715
10715
|
try {
|
|
10716
10716
|
throw new Error();
|
|
10717
10717
|
} catch (k) {
|
|
10718
|
-
({ stack:
|
|
10718
|
+
({ stack: C } = k);
|
|
10719
10719
|
}
|
|
10720
10720
|
console.warn(
|
|
10721
10721
|
"Selector " + (i.name || "unknown") + ` returned the root state when called. This can lead to unnecessary rerenders.
|
|
10722
10722
|
Selectors that return the entire state are almost certainly a mistake, as they will cause a rerender whenever *anything* in state changes.`,
|
|
10723
|
-
{ stack:
|
|
10723
|
+
{ stack: C }
|
|
10724
10724
|
);
|
|
10725
10725
|
}
|
|
10726
10726
|
l.current && (l.current = !1);
|
|
@@ -10933,30 +10933,30 @@ function E5(e) {
|
|
|
10933
10933
|
return v5(za("", null, null, null, [""], e = g5(e), 0, [0], e));
|
|
10934
10934
|
}
|
|
10935
10935
|
function za(e, t, n, i, r, s, a, o, A) {
|
|
10936
|
-
for (var u = 0, l = 0, f = a, c = 0, d = 0, m = 0, g = 1, b = 1, y = 1,
|
|
10937
|
-
switch (m =
|
|
10936
|
+
for (var u = 0, l = 0, f = a, c = 0, d = 0, m = 0, g = 1, b = 1, y = 1, T = 0, w = "", C = r, k = s, v = i, E = w; b; )
|
|
10937
|
+
switch (m = T, T = Gt()) {
|
|
10938
10938
|
// (
|
|
10939
10939
|
case 40:
|
|
10940
|
-
if (m != 108 && it(
|
|
10941
|
-
Wa(
|
|
10940
|
+
if (m != 108 && it(E, f - 1) == 58) {
|
|
10941
|
+
Wa(E += xe(Zu(T), "&", "&\f"), "&\f", j2(u ? o[u - 1] : 0)) != -1 && (y = -1);
|
|
10942
10942
|
break;
|
|
10943
10943
|
}
|
|
10944
10944
|
// " ' [
|
|
10945
10945
|
case 34:
|
|
10946
10946
|
case 39:
|
|
10947
10947
|
case 91:
|
|
10948
|
-
|
|
10948
|
+
E += Zu(T);
|
|
10949
10949
|
break;
|
|
10950
10950
|
// \t \n \r \s
|
|
10951
10951
|
case 9:
|
|
10952
10952
|
case 10:
|
|
10953
10953
|
case 13:
|
|
10954
10954
|
case 32:
|
|
10955
|
-
|
|
10955
|
+
E += b5(m);
|
|
10956
10956
|
break;
|
|
10957
10957
|
// \
|
|
10958
10958
|
case 92:
|
|
10959
|
-
|
|
10959
|
+
E += y5(Ga() - 1, 7);
|
|
10960
10960
|
continue;
|
|
10961
10961
|
// /
|
|
10962
10962
|
case 47:
|
|
@@ -10966,82 +10966,82 @@ function za(e, t, n, i, r, s, a, o, A) {
|
|
|
10966
10966
|
ns(C5(w5(Gt(), Ga()), t, n, A), A);
|
|
10967
10967
|
break;
|
|
10968
10968
|
default:
|
|
10969
|
-
|
|
10969
|
+
E += "/";
|
|
10970
10970
|
}
|
|
10971
10971
|
break;
|
|
10972
10972
|
// {
|
|
10973
10973
|
case 123 * g:
|
|
10974
|
-
o[u++] = rn(
|
|
10974
|
+
o[u++] = rn(E) * y;
|
|
10975
10975
|
// } ; \0
|
|
10976
10976
|
case 125 * g:
|
|
10977
10977
|
case 59:
|
|
10978
10978
|
case 0:
|
|
10979
|
-
switch (
|
|
10979
|
+
switch (T) {
|
|
10980
10980
|
// \0 }
|
|
10981
10981
|
case 0:
|
|
10982
10982
|
case 125:
|
|
10983
10983
|
b = 0;
|
|
10984
10984
|
// ;
|
|
10985
10985
|
case 59 + l:
|
|
10986
|
-
y == -1 && (
|
|
10986
|
+
y == -1 && (E = xe(E, /\f/g, "")), d > 0 && rn(E) - f && ns(d > 32 ? n0(E + ";", i, n, f - 1, A) : n0(xe(E, " ", "") + ";", i, n, f - 2, A), A);
|
|
10987
10987
|
break;
|
|
10988
10988
|
// @ ;
|
|
10989
10989
|
case 59:
|
|
10990
|
-
|
|
10990
|
+
E += ";";
|
|
10991
10991
|
// { rule/at-rule
|
|
10992
10992
|
default:
|
|
10993
|
-
if (ns(v = t0(
|
|
10993
|
+
if (ns(v = t0(E, t, n, u, l, r, o, w, C = [], k = [], f, s), s), T === 123)
|
|
10994
10994
|
if (l === 0)
|
|
10995
|
-
za(
|
|
10995
|
+
za(E, t, v, v, C, s, f, o, k);
|
|
10996
10996
|
else
|
|
10997
|
-
switch (c === 99 && it(
|
|
10997
|
+
switch (c === 99 && it(E, 3) === 110 ? 100 : c) {
|
|
10998
10998
|
// d l m s
|
|
10999
10999
|
case 100:
|
|
11000
11000
|
case 108:
|
|
11001
11001
|
case 109:
|
|
11002
11002
|
case 115:
|
|
11003
|
-
za(e, v, v, i && ns(t0(e, v, v, 0, 0, r, o, w, r,
|
|
11003
|
+
za(e, v, v, i && ns(t0(e, v, v, 0, 0, r, o, w, r, C = [], f, k), k), r, k, f, o, i ? C : k);
|
|
11004
11004
|
break;
|
|
11005
11005
|
default:
|
|
11006
|
-
za(
|
|
11006
|
+
za(E, v, v, v, [""], k, 0, o, k);
|
|
11007
11007
|
}
|
|
11008
11008
|
}
|
|
11009
|
-
u = l = d = 0, g = y = 1, w =
|
|
11009
|
+
u = l = d = 0, g = y = 1, w = E = "", f = a;
|
|
11010
11010
|
break;
|
|
11011
11011
|
// :
|
|
11012
11012
|
case 58:
|
|
11013
|
-
f = 1 + rn(
|
|
11013
|
+
f = 1 + rn(E), d = m;
|
|
11014
11014
|
default:
|
|
11015
11015
|
if (g < 1) {
|
|
11016
|
-
if (
|
|
11016
|
+
if (T == 123)
|
|
11017
11017
|
--g;
|
|
11018
|
-
else if (
|
|
11018
|
+
else if (T == 125 && g++ == 0 && p5() == 125)
|
|
11019
11019
|
continue;
|
|
11020
11020
|
}
|
|
11021
|
-
switch (
|
|
11021
|
+
switch (E += Fc(T), T * g) {
|
|
11022
11022
|
// &
|
|
11023
11023
|
case 38:
|
|
11024
|
-
y = l > 0 ? 1 : (
|
|
11024
|
+
y = l > 0 ? 1 : (E += "\f", -1);
|
|
11025
11025
|
break;
|
|
11026
11026
|
// ,
|
|
11027
11027
|
case 44:
|
|
11028
|
-
o[u++] = (rn(
|
|
11028
|
+
o[u++] = (rn(E) - 1) * y, y = 1;
|
|
11029
11029
|
break;
|
|
11030
11030
|
// @
|
|
11031
11031
|
case 64:
|
|
11032
|
-
hi() === 45 && (
|
|
11032
|
+
hi() === 45 && (E += Zu(Gt())), c = hi(), l = f = rn(w = E += k5(Ga())), T++;
|
|
11033
11033
|
break;
|
|
11034
11034
|
// -
|
|
11035
11035
|
case 45:
|
|
11036
|
-
m === 45 && rn(
|
|
11036
|
+
m === 45 && rn(E) == 2 && (g = 0);
|
|
11037
11037
|
}
|
|
11038
11038
|
}
|
|
11039
11039
|
return s;
|
|
11040
11040
|
}
|
|
11041
11041
|
function t0(e, t, n, i, r, s, a, o, A, u, l, f) {
|
|
11042
11042
|
for (var c = r - 1, d = r === 0 ? s : [""], m = W2(d), g = 0, b = 0, y = 0; g < i; ++g)
|
|
11043
|
-
for (var
|
|
11044
|
-
(
|
|
11043
|
+
for (var T = 0, w = er(e, c + 1, c = j2(b = a[g])), C = e; T < m; ++T)
|
|
11044
|
+
(C = Y2(b > 0 ? d[T] + " " + w : xe(w, /&\f/g, d[T]))) && (A[y++] = C);
|
|
11045
11045
|
return cA(e, t, n, r === 0 ? lA : o, A, u, l, f);
|
|
11046
11046
|
}
|
|
11047
11047
|
function C5(e, t, n, i) {
|
|
@@ -11682,10 +11682,10 @@ function ax(e) {
|
|
|
11682
11682
|
d === void 0 && (d = ""), m === void 0 && (m = ""), g === void 0 && (g = "&"), t = g, n = d, i = new RegExp("\\".concat(n, "\\b"), "g");
|
|
11683
11683
|
var b = c.replace(sx, ""), y = E5(m || d ? "".concat(m, " ").concat(d, " { ").concat(b, " }") : b);
|
|
11684
11684
|
a.namespace && (y = sv(y, a.namespace));
|
|
11685
|
-
var
|
|
11685
|
+
var T = [];
|
|
11686
11686
|
return yo(y, T5(l.concat(I5(function(w) {
|
|
11687
|
-
return
|
|
11688
|
-
})))),
|
|
11687
|
+
return T.push(w);
|
|
11688
|
+
})))), T;
|
|
11689
11689
|
};
|
|
11690
11690
|
return f.hash = A.length ? A.reduce(function(c, d) {
|
|
11691
11691
|
return d.name || yr(15), oi(c, d.name);
|
|
@@ -11787,35 +11787,35 @@ var lx = X2(hA), fx = function() {
|
|
|
11787
11787
|
uv.Consumer;
|
|
11788
11788
|
var tl = {}, d0 = /* @__PURE__ */ new Set();
|
|
11789
11789
|
function cx(e, t, n) {
|
|
11790
|
-
var i = Hc(e), r = e, s = !el(e), a = t.attrs, o = a === void 0 ? mA : a, A = t.componentId, u = A === void 0 ? function(
|
|
11791
|
-
var v = typeof
|
|
11790
|
+
var i = Hc(e), r = e, s = !el(e), a = t.attrs, o = a === void 0 ? mA : a, A = t.componentId, u = A === void 0 ? function(C, k) {
|
|
11791
|
+
var v = typeof C != "string" ? "sc" : r0(C);
|
|
11792
11792
|
tl[v] = (tl[v] || 0) + 1;
|
|
11793
|
-
var
|
|
11794
|
-
return k ? "".concat(k, "-").concat(
|
|
11795
|
-
}(t.displayName, t.parentComponentId) : A, l = t.displayName, f = l === void 0 ? function(
|
|
11796
|
-
return el(
|
|
11793
|
+
var E = "".concat(v, "-").concat(K2(hA + v + tl[v]));
|
|
11794
|
+
return k ? "".concat(k, "-").concat(E) : E;
|
|
11795
|
+
}(t.displayName, t.parentComponentId) : A, l = t.displayName, f = l === void 0 ? function(C) {
|
|
11796
|
+
return el(C) ? "styled.".concat(C) : "Styled(".concat(Z2(C), ")");
|
|
11797
11797
|
}(e) : l, c = t.displayName && t.componentId ? "".concat(r0(t.displayName), "-").concat(t.componentId) : t.componentId || u, d = i && r.attrs ? r.attrs.concat(o).filter(Boolean) : o, m = t.shouldForwardProp;
|
|
11798
11798
|
if (i && r.shouldForwardProp) {
|
|
11799
11799
|
var g = r.shouldForwardProp;
|
|
11800
11800
|
if (t.shouldForwardProp) {
|
|
11801
11801
|
var b = t.shouldForwardProp;
|
|
11802
|
-
m = function(
|
|
11803
|
-
return g(
|
|
11802
|
+
m = function(C, k) {
|
|
11803
|
+
return g(C, k) && b(C, k);
|
|
11804
11804
|
};
|
|
11805
11805
|
} else m = g;
|
|
11806
11806
|
}
|
|
11807
11807
|
var y = new fx(n, c, i ? r.componentStyle : void 0);
|
|
11808
|
-
function
|
|
11809
|
-
return function(v,
|
|
11808
|
+
function T(C, k) {
|
|
11809
|
+
return function(v, E, I) {
|
|
11810
11810
|
var B = v.attrs, x = v.componentStyle, D = v.defaultProps, P = v.foldedComponentIds, _ = v.styledComponentId, Q = v.target, H = ct.useContext(uv), V = f0(), re = v.shouldForwardProp || V.shouldForwardProp;
|
|
11811
11811
|
process.env.NODE_ENV !== "production" && Ld(_);
|
|
11812
|
-
var he = R5(
|
|
11812
|
+
var he = R5(E, H, D) || nr, oe = function(de, le, ie) {
|
|
11813
11813
|
for (var Ae, me = kt(kt({}, le), { className: void 0, theme: ie }), J = 0; J < de.length; J += 1) {
|
|
11814
11814
|
var fe = ir(Ae = de[J]) ? Ae(me) : Ae;
|
|
11815
11815
|
for (var K in fe) me[K] = K === "className" ? ui(me[K], fe[K]) : K === "style" ? kt(kt({}, me[K]), fe[K]) : fe[K];
|
|
11816
11816
|
}
|
|
11817
11817
|
return le.className && (me.className = ui(me.className, le.className)), me;
|
|
11818
|
-
}(B,
|
|
11818
|
+
}(B, E, he), S = oe.as || Q, U = {};
|
|
11819
11819
|
for (var Y in oe) oe[Y] === void 0 || Y[0] === "$" || Y === "as" || Y === "theme" && oe.theme === he || (Y === "forwardedAs" ? U.as = oe.forwardedAs : re && !re(Y, S) || (U[Y] = oe[Y], re || process.env.NODE_ENV !== "development" || l5(Y) || d0.has(Y) || !kf.has(S) || (d0.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.)')))));
|
|
11820
11820
|
var N = function(de, le) {
|
|
11821
11821
|
var ie = f0(), Ae = de.generateAndInjectStyles(le, ie.styleSheet, ie.stylis);
|
|
@@ -11824,24 +11824,24 @@ function cx(e, t, n) {
|
|
|
11824
11824
|
process.env.NODE_ENV !== "production" && v.warnTooManyClasses && v.warnTooManyClasses(N);
|
|
11825
11825
|
var W = ui(P, _);
|
|
11826
11826
|
return N && (W += " " + N), oe.className && (W += " " + oe.className), U[el(S) && !kf.has(S) ? "class" : "className"] = W, I && (U.ref = I), b3(S, U);
|
|
11827
|
-
}(w,
|
|
11827
|
+
}(w, C, k);
|
|
11828
11828
|
}
|
|
11829
|
-
|
|
11830
|
-
var w = ct.forwardRef(
|
|
11829
|
+
T.displayName = f;
|
|
11830
|
+
var w = ct.forwardRef(T);
|
|
11831
11831
|
return w.attrs = d, w.componentStyle = y, w.displayName = f, w.shouldForwardProp = m, w.foldedComponentIds = i ? ui(r.foldedComponentIds, r.styledComponentId) : "", w.styledComponentId = c, w.target = i ? r.target : e, Object.defineProperty(w, "defaultProps", { get: function() {
|
|
11832
11832
|
return this._foldedDefaultProps;
|
|
11833
|
-
}, set: function(
|
|
11833
|
+
}, set: function(C) {
|
|
11834
11834
|
this._foldedDefaultProps = i ? function(k) {
|
|
11835
|
-
for (var v = [],
|
|
11835
|
+
for (var v = [], E = 1; E < arguments.length; E++) v[E - 1] = arguments[E];
|
|
11836
11836
|
for (var I = 0, B = v; I < B.length; I++) xf(k, B[I], !0);
|
|
11837
11837
|
return k;
|
|
11838
|
-
}({}, r.defaultProps,
|
|
11839
|
-
} }), process.env.NODE_ENV !== "production" && (B5(f, c), w.warnTooManyClasses = /* @__PURE__ */ function(
|
|
11840
|
-
var v = {},
|
|
11838
|
+
}({}, r.defaultProps, C) : C;
|
|
11839
|
+
} }), process.env.NODE_ENV !== "production" && (B5(f, c), w.warnTooManyClasses = /* @__PURE__ */ function(C, k) {
|
|
11840
|
+
var v = {}, E = !1;
|
|
11841
11841
|
return function(I) {
|
|
11842
|
-
if (!
|
|
11842
|
+
if (!E && (v[I] = !0, Object.keys(v).length >= 200)) {
|
|
11843
11843
|
var B = k ? ' with the id of "'.concat(k, '"') : "";
|
|
11844
|
-
console.warn("Over ".concat(200, " classes were generated for component ").concat(
|
|
11844
|
+
console.warn("Over ".concat(200, " classes were generated for component ").concat(C).concat(B, `.
|
|
11845
11845
|
`) + `Consider using the attrs method, together with a style object for frequently changed styles.
|
|
11846
11846
|
Example:
|
|
11847
11847
|
const Component = styled.div.attrs(props => ({
|
|
@@ -11850,7 +11850,7 @@ Example:
|
|
|
11850
11850
|
},
|
|
11851
11851
|
}))\`width: 100%;\`
|
|
11852
11852
|
|
|
11853
|
-
<Component />`),
|
|
11853
|
+
<Component />`), E = !0, v = {};
|
|
11854
11854
|
}
|
|
11855
11855
|
};
|
|
11856
11856
|
}(f, c)), Uc(w, function() {
|
|
@@ -13543,14 +13543,14 @@ const Vx = (e) => e.length === 0 ? "" : e.length === 1 ? `${e[0]} is typing` : e
|
|
|
13543
13543
|
isReply: s,
|
|
13544
13544
|
activeMessage: a
|
|
13545
13545
|
}) => {
|
|
13546
|
-
const { CustomScrollableArea: o, CustomNewMessageLabel: A } = pA(), { composing: u, messages: l, composingList: f } = Xt(n).room, { user: c } = Tt(), [d, m] = ae(!1), [g, b] = ae(0), [y,
|
|
13546
|
+
const { CustomScrollableArea: o, CustomNewMessageLabel: A } = pA(), { composing: u, messages: l, composingList: f } = Xt(n).room, { user: c } = Tt(), [d, m] = ae(!1), [g, b] = ae(0), [y, T] = ae(null), w = Ne(l.length), C = Ne(null), k = Ne({}), v = Ne(!0), E = Ve(() => l.map((J) => ({
|
|
13547
13547
|
...J,
|
|
13548
13548
|
reply: l.filter(
|
|
13549
13549
|
(K) => !!K.mainMessage && JSON.parse(K.mainMessage).id === J.id
|
|
13550
13550
|
)
|
|
13551
|
-
})), [l, l.length]), I = Ve(() => s ?
|
|
13551
|
+
})), [l, l.length]), I = Ve(() => s ? E.filter(
|
|
13552
13552
|
(J) => J.roomJid === n && J.isReply && J.isReply === "true" && J.mainMessage && JSON.parse(J.mainMessage).id === a.id
|
|
13553
|
-
) :
|
|
13553
|
+
) : E.filter(
|
|
13554
13554
|
(J) => J.isSystemMessage === "true" || J.showInChannel === "true" || (!J.isReply || J.isReply === "false") && !J.mainMessage
|
|
13555
13555
|
), [l, l.length]), B = Ve(
|
|
13556
13556
|
() => l.length && l[l.length - 1].user.id === c.xmppUsername,
|
|
@@ -13594,7 +13594,7 @@ const Vx = (e) => e.length === 0 ? "" : e.length === 1 ? `${e[0]} is typing` : e
|
|
|
13594
13594
|
}
|
|
13595
13595
|
}, [n, I, S]);
|
|
13596
13596
|
Ce(() => {
|
|
13597
|
-
I.length > 0 &&
|
|
13597
|
+
I.length > 0 && T(
|
|
13598
13598
|
new Date(I[I.length - 1].date).getTime()
|
|
13599
13599
|
);
|
|
13600
13600
|
}, []), Ce(() => {
|
|
@@ -13650,7 +13650,7 @@ const Vx = (e) => e.length === 0 ? "" : e.length === 1 ? `${e[0]} is typing` : e
|
|
|
13650
13650
|
}, [I.length, u]), Ce(() => {
|
|
13651
13651
|
if (l.length > 0) {
|
|
13652
13652
|
const J = l[l.length - 1], fe = J && B;
|
|
13653
|
-
J && J.id !==
|
|
13653
|
+
J && J.id !== C.current && fe && (C.current = J.id, N());
|
|
13654
13654
|
}
|
|
13655
13655
|
}, [l, B]), Ce(() => {
|
|
13656
13656
|
if (!x.current) return;
|
|
@@ -14041,8 +14041,8 @@ const DT = L.div`
|
|
|
14041
14041
|
handleSendClick: n
|
|
14042
14042
|
}) => {
|
|
14043
14043
|
const [i, r] = ae(null), [s, a] = ae(0), o = Ne(null), A = Ne([]), u = Ne(null), l = (y) => {
|
|
14044
|
-
const
|
|
14045
|
-
return `${
|
|
14044
|
+
const T = Math.floor(y / 60), w = y % 60;
|
|
14045
|
+
return `${T.toString().padStart(2, "0")}:${w.toString().padStart(2, "0")}`;
|
|
14046
14046
|
}, f = ce(() => {
|
|
14047
14047
|
u.current = setInterval(() => {
|
|
14048
14048
|
a((y) => y + 1);
|
|
@@ -14052,13 +14052,13 @@ const DT = L.div`
|
|
|
14052
14052
|
}, []), d = () => {
|
|
14053
14053
|
r(null), a(0), e(!1), A.current = [], o.current && o.current.stream.getTracks().forEach((y) => y.stop());
|
|
14054
14054
|
}, m = ce(async () => {
|
|
14055
|
-
const y = await navigator.mediaDevices.getUserMedia({ audio: !0 }),
|
|
14056
|
-
o.current =
|
|
14055
|
+
const y = await navigator.mediaDevices.getUserMedia({ audio: !0 }), T = new MediaRecorder(y);
|
|
14056
|
+
o.current = T, T.ondataavailable = (w) => {
|
|
14057
14057
|
A.current.push(w.data);
|
|
14058
|
-
},
|
|
14058
|
+
}, T.onstop = () => {
|
|
14059
14059
|
const w = new Blob(A.current);
|
|
14060
14060
|
r(w);
|
|
14061
|
-
}, A.current = [],
|
|
14061
|
+
}, A.current = [], T.start(), e(!0), f();
|
|
14062
14062
|
}, [f, e]), g = () => {
|
|
14063
14063
|
o.current && (o.current.stop(), c(), d());
|
|
14064
14064
|
}, b = () => {
|
|
@@ -15286,30 +15286,30 @@ function n8() {
|
|
|
15286
15286
|
throw new TypeError("First argument must be a string");
|
|
15287
15287
|
if (!g) return [];
|
|
15288
15288
|
b = b || {};
|
|
15289
|
-
var y = 1,
|
|
15289
|
+
var y = 1, T = 1;
|
|
15290
15290
|
function w(_) {
|
|
15291
15291
|
var Q = _.match(t);
|
|
15292
15292
|
Q && (y += Q.length);
|
|
15293
15293
|
var H = _.lastIndexOf(A);
|
|
15294
|
-
|
|
15294
|
+
T = ~H ? _.length - H : T + _.length;
|
|
15295
15295
|
}
|
|
15296
|
-
function
|
|
15297
|
-
var _ = { line: y, column:
|
|
15296
|
+
function C() {
|
|
15297
|
+
var _ = { line: y, column: T };
|
|
15298
15298
|
return function(Q) {
|
|
15299
15299
|
return Q.position = new k(_), I(), Q;
|
|
15300
15300
|
};
|
|
15301
15301
|
}
|
|
15302
15302
|
function k(_) {
|
|
15303
|
-
this.start = _, this.end = { line: y, column:
|
|
15303
|
+
this.start = _, this.end = { line: y, column: T }, this.source = b.source;
|
|
15304
15304
|
}
|
|
15305
15305
|
k.prototype.content = g;
|
|
15306
15306
|
function v(_) {
|
|
15307
15307
|
var Q = new Error(
|
|
15308
|
-
b.source + ":" + y + ":" +
|
|
15308
|
+
b.source + ":" + y + ":" + T + ": " + _
|
|
15309
15309
|
);
|
|
15310
|
-
if (Q.reason = _, Q.filename = b.source, Q.line = y, Q.column =
|
|
15310
|
+
if (Q.reason = _, Q.filename = b.source, Q.line = y, Q.column = T, Q.source = g, !b.silent) throw Q;
|
|
15311
15311
|
}
|
|
15312
|
-
function
|
|
15312
|
+
function E(_) {
|
|
15313
15313
|
var Q = _.exec(g);
|
|
15314
15314
|
if (Q) {
|
|
15315
15315
|
var H = Q[0];
|
|
@@ -15317,7 +15317,7 @@ function n8() {
|
|
|
15317
15317
|
}
|
|
15318
15318
|
}
|
|
15319
15319
|
function I() {
|
|
15320
|
-
|
|
15320
|
+
E(n);
|
|
15321
15321
|
}
|
|
15322
15322
|
function B(_) {
|
|
15323
15323
|
var Q;
|
|
@@ -15326,29 +15326,29 @@ function n8() {
|
|
|
15326
15326
|
return _;
|
|
15327
15327
|
}
|
|
15328
15328
|
function x() {
|
|
15329
|
-
var _ =
|
|
15329
|
+
var _ = C();
|
|
15330
15330
|
if (!(u != g.charAt(0) || l != g.charAt(1))) {
|
|
15331
15331
|
for (var Q = 2; f != g.charAt(Q) && (l != g.charAt(Q) || u != g.charAt(Q + 1)); )
|
|
15332
15332
|
++Q;
|
|
15333
15333
|
if (Q += 2, f === g.charAt(Q - 1))
|
|
15334
15334
|
return v("End of comment missing");
|
|
15335
15335
|
var H = g.slice(2, Q - 2);
|
|
15336
|
-
return
|
|
15336
|
+
return T += 2, w(H), g = g.slice(Q), T += 2, _({
|
|
15337
15337
|
type: c,
|
|
15338
15338
|
comment: H
|
|
15339
15339
|
});
|
|
15340
15340
|
}
|
|
15341
15341
|
}
|
|
15342
15342
|
function D() {
|
|
15343
|
-
var _ =
|
|
15343
|
+
var _ = C(), Q = E(i);
|
|
15344
15344
|
if (Q) {
|
|
15345
|
-
if (x(), !
|
|
15346
|
-
var H =
|
|
15345
|
+
if (x(), !E(r)) return v("property missing ':'");
|
|
15346
|
+
var H = E(s), V = _({
|
|
15347
15347
|
type: d,
|
|
15348
15348
|
property: m(Q[0].replace(e, f)),
|
|
15349
15349
|
value: H ? m(H[0].replace(e, f)) : f
|
|
15350
15350
|
});
|
|
15351
|
-
return
|
|
15351
|
+
return E(a), V;
|
|
15352
15352
|
}
|
|
15353
15353
|
}
|
|
15354
15354
|
function P() {
|
|
@@ -16041,28 +16041,28 @@ function Q8(e) {
|
|
|
16041
16041
|
return o;
|
|
16042
16042
|
function o(w) {
|
|
16043
16043
|
if (i < n.length) {
|
|
16044
|
-
const
|
|
16045
|
-
return t.containerState =
|
|
16044
|
+
const C = n[i];
|
|
16045
|
+
return t.containerState = C[1], e.attempt(C[0].continuation, A, u)(w);
|
|
16046
16046
|
}
|
|
16047
16047
|
return u(w);
|
|
16048
16048
|
}
|
|
16049
16049
|
function A(w) {
|
|
16050
16050
|
if (i++, t.containerState._closeFlow) {
|
|
16051
|
-
t.containerState._closeFlow = void 0, r &&
|
|
16052
|
-
const
|
|
16053
|
-
let k =
|
|
16051
|
+
t.containerState._closeFlow = void 0, r && T();
|
|
16052
|
+
const C = t.events.length;
|
|
16053
|
+
let k = C, v;
|
|
16054
16054
|
for (; k--; )
|
|
16055
16055
|
if (t.events[k][0] === "exit" && t.events[k][1].type === "chunkFlow") {
|
|
16056
16056
|
v = t.events[k][1].end;
|
|
16057
16057
|
break;
|
|
16058
16058
|
}
|
|
16059
16059
|
y(i);
|
|
16060
|
-
let
|
|
16061
|
-
for (;
|
|
16062
|
-
t.events[
|
|
16060
|
+
let E = C;
|
|
16061
|
+
for (; E < t.events.length; )
|
|
16062
|
+
t.events[E][1].end = {
|
|
16063
16063
|
...v
|
|
16064
|
-
},
|
|
16065
|
-
return Rt(t.events, k + 1, 0, t.events.slice(
|
|
16064
|
+
}, E++;
|
|
16065
|
+
return Rt(t.events, k + 1, 0, t.events.slice(C)), t.events.length = E, u(w);
|
|
16066
16066
|
}
|
|
16067
16067
|
return o(w);
|
|
16068
16068
|
}
|
|
@@ -16077,7 +16077,7 @@ function Q8(e) {
|
|
|
16077
16077
|
return t.containerState = {}, e.check(P0, l, f)(w);
|
|
16078
16078
|
}
|
|
16079
16079
|
function l(w) {
|
|
16080
|
-
return r &&
|
|
16080
|
+
return r && T(), y(i), c(w);
|
|
16081
16081
|
}
|
|
16082
16082
|
function f(w) {
|
|
16083
16083
|
return t.parser.lazy[t.now().line] = i !== n.length, a = t.now().offset, m(w);
|
|
@@ -16090,7 +16090,7 @@ function Q8(e) {
|
|
|
16090
16090
|
}
|
|
16091
16091
|
function m(w) {
|
|
16092
16092
|
if (w === null) {
|
|
16093
|
-
r &&
|
|
16093
|
+
r && T(), y(0), e.consume(w);
|
|
16094
16094
|
return;
|
|
16095
16095
|
}
|
|
16096
16096
|
return r = r || t.parser.flow(t.now()), e.enter("chunkFlow", {
|
|
@@ -16106,9 +16106,9 @@ function Q8(e) {
|
|
|
16106
16106
|
}
|
|
16107
16107
|
return pe(w) ? (e.consume(w), b(e.exit("chunkFlow")), i = 0, t.interrupt = void 0, o) : (e.consume(w), g);
|
|
16108
16108
|
}
|
|
16109
|
-
function b(w,
|
|
16109
|
+
function b(w, C) {
|
|
16110
16110
|
const k = t.sliceStream(w);
|
|
16111
|
-
if (
|
|
16111
|
+
if (C && k.push(null), w.previous = s, s && (s.next = w), s = w, r.defineSkip(w.start), r.write(k), t.parser.lazy[w.start.line]) {
|
|
16112
16112
|
let v = r.events.length;
|
|
16113
16113
|
for (; v--; )
|
|
16114
16114
|
if (
|
|
@@ -16118,8 +16118,8 @@ function Q8(e) {
|
|
|
16118
16118
|
r.events[v][1].end.offset > a)
|
|
16119
16119
|
)
|
|
16120
16120
|
return;
|
|
16121
|
-
const
|
|
16122
|
-
let I =
|
|
16121
|
+
const E = t.events.length;
|
|
16122
|
+
let I = E, B, x;
|
|
16123
16123
|
for (; I--; )
|
|
16124
16124
|
if (t.events[I][0] === "exit" && t.events[I][1].type === "chunkFlow") {
|
|
16125
16125
|
if (B) {
|
|
@@ -16128,22 +16128,22 @@ function Q8(e) {
|
|
|
16128
16128
|
}
|
|
16129
16129
|
B = !0;
|
|
16130
16130
|
}
|
|
16131
|
-
for (y(i), v =
|
|
16131
|
+
for (y(i), v = E; v < t.events.length; )
|
|
16132
16132
|
t.events[v][1].end = {
|
|
16133
16133
|
...x
|
|
16134
16134
|
}, v++;
|
|
16135
|
-
Rt(t.events, I + 1, 0, t.events.slice(
|
|
16135
|
+
Rt(t.events, I + 1, 0, t.events.slice(E)), t.events.length = v;
|
|
16136
16136
|
}
|
|
16137
16137
|
}
|
|
16138
16138
|
function y(w) {
|
|
16139
|
-
let
|
|
16140
|
-
for (;
|
|
16141
|
-
const k = n[
|
|
16139
|
+
let C = n.length;
|
|
16140
|
+
for (; C-- > w; ) {
|
|
16141
|
+
const k = n[C];
|
|
16142
16142
|
t.containerState = k[1], k[0].exit.call(t, e);
|
|
16143
16143
|
}
|
|
16144
16144
|
n.length = w;
|
|
16145
16145
|
}
|
|
16146
|
-
function
|
|
16146
|
+
function T() {
|
|
16147
16147
|
r.write([null]), s = void 0, r = void 0, t.containerState._closeFlow = void 0;
|
|
16148
16148
|
}
|
|
16149
16149
|
}
|
|
@@ -16388,14 +16388,14 @@ function K8(e, t, n) {
|
|
|
16388
16388
|
return u(v);
|
|
16389
16389
|
}
|
|
16390
16390
|
function u(v) {
|
|
16391
|
-
const
|
|
16392
|
-
return s =
|
|
16391
|
+
const E = i.events[i.events.length - 1];
|
|
16392
|
+
return s = E && E[1].type === "linePrefix" ? E[2].sliceSerialize(E[1], !0).length : 0, o = v, e.enter("codeFenced"), e.enter("codeFencedFence"), e.enter("codeFencedFenceSequence"), l(v);
|
|
16393
16393
|
}
|
|
16394
16394
|
function l(v) {
|
|
16395
16395
|
return v === o ? (a++, e.consume(v), l) : a < 3 ? n(v) : (e.exit("codeFencedFenceSequence"), Se(v) ? Re(e, f, "whitespace")(v) : f(v));
|
|
16396
16396
|
}
|
|
16397
16397
|
function f(v) {
|
|
16398
|
-
return v === null || pe(v) ? (e.exit("codeFencedFence"), i.interrupt ? t(v) : e.check(L0, g,
|
|
16398
|
+
return v === null || pe(v) ? (e.exit("codeFencedFence"), i.interrupt ? t(v) : e.check(L0, g, C)(v)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
|
|
16399
16399
|
contentType: "string"
|
|
16400
16400
|
}), c(v));
|
|
16401
16401
|
}
|
|
@@ -16411,24 +16411,24 @@ function K8(e, t, n) {
|
|
|
16411
16411
|
return v === null || pe(v) ? (e.exit("chunkString"), e.exit("codeFencedFenceMeta"), f(v)) : v === 96 && v === o ? n(v) : (e.consume(v), m);
|
|
16412
16412
|
}
|
|
16413
16413
|
function g(v) {
|
|
16414
|
-
return e.attempt(r,
|
|
16414
|
+
return e.attempt(r, C, b)(v);
|
|
16415
16415
|
}
|
|
16416
16416
|
function b(v) {
|
|
16417
16417
|
return e.enter("lineEnding"), e.consume(v), e.exit("lineEnding"), y;
|
|
16418
16418
|
}
|
|
16419
16419
|
function y(v) {
|
|
16420
|
-
return s > 0 && Se(v) ? Re(e,
|
|
16420
|
+
return s > 0 && Se(v) ? Re(e, T, "linePrefix", s + 1)(v) : T(v);
|
|
16421
16421
|
}
|
|
16422
|
-
function
|
|
16423
|
-
return v === null || pe(v) ? e.check(L0, g,
|
|
16422
|
+
function T(v) {
|
|
16423
|
+
return v === null || pe(v) ? e.check(L0, g, C)(v) : (e.enter("codeFlowValue"), w(v));
|
|
16424
16424
|
}
|
|
16425
16425
|
function w(v) {
|
|
16426
|
-
return v === null || pe(v) ? (e.exit("codeFlowValue"),
|
|
16426
|
+
return v === null || pe(v) ? (e.exit("codeFlowValue"), T(v)) : (e.consume(v), w);
|
|
16427
16427
|
}
|
|
16428
|
-
function
|
|
16428
|
+
function C(v) {
|
|
16429
16429
|
return e.exit("codeFenced"), t(v);
|
|
16430
16430
|
}
|
|
16431
|
-
function k(v,
|
|
16431
|
+
function k(v, E, I) {
|
|
16432
16432
|
let B = 0;
|
|
16433
16433
|
return x;
|
|
16434
16434
|
function x(H) {
|
|
@@ -16444,7 +16444,7 @@ function K8(e, t, n) {
|
|
|
16444
16444
|
return H === o ? (B++, v.consume(H), _) : B >= a ? (v.exit("codeFencedFenceSequence"), Se(H) ? Re(v, Q, "whitespace")(H) : Q(H)) : I(H);
|
|
16445
16445
|
}
|
|
16446
16446
|
function Q(H) {
|
|
16447
|
-
return H === null || pe(H) ? (v.exit("codeFencedFence"),
|
|
16447
|
+
return H === null || pe(H) ? (v.exit("codeFencedFence"), E(H)) : I(H);
|
|
16448
16448
|
}
|
|
16449
16449
|
}
|
|
16450
16450
|
}
|
|
@@ -16751,8 +16751,8 @@ function oI(e, t) {
|
|
|
16751
16751
|
// Find a void token that includes a break.
|
|
16752
16752
|
o[c][0] === "exit" && o[c - 1][0] === "enter" && o[c][1].type === o[c - 1][1].type && o[c][1].start.line !== o[c][1].end.line && (g = c + 1, b.push(g), d._tokenizer = void 0, d.previous = void 0, d = d.next);
|
|
16753
16753
|
for (a.events = [], d ? (d._tokenizer = void 0, d.previous = void 0) : b.pop(), c = b.length; c--; ) {
|
|
16754
|
-
const y = o.slice(b[c], b[c + 1]),
|
|
16755
|
-
A.push([
|
|
16754
|
+
const y = o.slice(b[c], b[c + 1]), T = s.pop();
|
|
16755
|
+
A.push([T, T + y.length - 1]), e.splice(T, 2, y);
|
|
16756
16756
|
}
|
|
16757
16757
|
for (A.reverse(), c = -1; ++c < A.length; )
|
|
16758
16758
|
u[m + A[c][0]] = m + A[c][1], m += A[c][1] - A[c][0] - 1;
|
|
@@ -17114,30 +17114,30 @@ function II(e, t, n) {
|
|
|
17114
17114
|
function b(N) {
|
|
17115
17115
|
if (N === null || N === 47 || N === 62 || He(N)) {
|
|
17116
17116
|
const W = N === 47, de = a.toLowerCase();
|
|
17117
|
-
return !W && !s && Q0.includes(de) ? (r = 1, i.interrupt ? t(N) : P(N)) : kI.includes(a.toLowerCase()) ? (r = 6, W ? (e.consume(N), y) : i.interrupt ? t(N) : P(N)) : (r = 7, i.interrupt && !i.parser.lazy[i.now().line] ? n(N) : s ?
|
|
17117
|
+
return !W && !s && Q0.includes(de) ? (r = 1, i.interrupt ? t(N) : P(N)) : kI.includes(a.toLowerCase()) ? (r = 6, W ? (e.consume(N), y) : i.interrupt ? t(N) : P(N)) : (r = 7, i.interrupt && !i.parser.lazy[i.now().line] ? n(N) : s ? T(N) : w(N));
|
|
17118
17118
|
}
|
|
17119
17119
|
return N === 45 || ft(N) ? (e.consume(N), a += String.fromCharCode(N), b) : n(N);
|
|
17120
17120
|
}
|
|
17121
17121
|
function y(N) {
|
|
17122
17122
|
return N === 62 ? (e.consume(N), i.interrupt ? t : P) : n(N);
|
|
17123
17123
|
}
|
|
17124
|
-
function
|
|
17125
|
-
return Se(N) ? (e.consume(N),
|
|
17124
|
+
function T(N) {
|
|
17125
|
+
return Se(N) ? (e.consume(N), T) : x(N);
|
|
17126
17126
|
}
|
|
17127
17127
|
function w(N) {
|
|
17128
|
-
return N === 47 ? (e.consume(N), x) : N === 58 || N === 95 || mt(N) ? (e.consume(N),
|
|
17128
|
+
return N === 47 ? (e.consume(N), x) : N === 58 || N === 95 || mt(N) ? (e.consume(N), C) : Se(N) ? (e.consume(N), w) : x(N);
|
|
17129
17129
|
}
|
|
17130
|
-
function
|
|
17131
|
-
return N === 45 || N === 46 || N === 58 || N === 95 || ft(N) ? (e.consume(N),
|
|
17130
|
+
function C(N) {
|
|
17131
|
+
return N === 45 || N === 46 || N === 58 || N === 95 || ft(N) ? (e.consume(N), C) : k(N);
|
|
17132
17132
|
}
|
|
17133
17133
|
function k(N) {
|
|
17134
17134
|
return N === 61 ? (e.consume(N), v) : Se(N) ? (e.consume(N), k) : w(N);
|
|
17135
17135
|
}
|
|
17136
17136
|
function v(N) {
|
|
17137
|
-
return N === null || N === 60 || N === 61 || N === 62 || N === 96 ? n(N) : N === 34 || N === 39 ? (e.consume(N), A = N,
|
|
17137
|
+
return N === null || N === 60 || N === 61 || N === 62 || N === 96 ? n(N) : N === 34 || N === 39 ? (e.consume(N), A = N, E) : Se(N) ? (e.consume(N), v) : I(N);
|
|
17138
17138
|
}
|
|
17139
|
-
function
|
|
17140
|
-
return N === A ? (e.consume(N), A = null, B) : N === null || pe(N) ? n(N) : (e.consume(N),
|
|
17139
|
+
function E(N) {
|
|
17140
|
+
return N === A ? (e.consume(N), A = null, B) : N === null || pe(N) ? n(N) : (e.consume(N), E);
|
|
17141
17141
|
}
|
|
17142
17142
|
function I(N) {
|
|
17143
17143
|
return N === null || N === 34 || N === 39 || N === 47 || N === 60 || N === 61 || N === 62 || N === 96 || He(N) ? k(N) : (e.consume(N), I);
|
|
@@ -17220,7 +17220,7 @@ function BI(e, t, n) {
|
|
|
17220
17220
|
return S === 33 ? (e.consume(S), u) : S === 47 ? (e.consume(S), k) : S === 63 ? (e.consume(S), w) : mt(S) ? (e.consume(S), I) : n(S);
|
|
17221
17221
|
}
|
|
17222
17222
|
function u(S) {
|
|
17223
|
-
return S === 45 ? (e.consume(S), l) : S === 91 ? (e.consume(S), s = 0, m) : mt(S) ? (e.consume(S),
|
|
17223
|
+
return S === 45 ? (e.consume(S), l) : S === 91 ? (e.consume(S), s = 0, m) : mt(S) ? (e.consume(S), T) : n(S);
|
|
17224
17224
|
}
|
|
17225
17225
|
function l(S) {
|
|
17226
17226
|
return S === 45 ? (e.consume(S), d) : n(S);
|
|
@@ -17247,23 +17247,23 @@ function BI(e, t, n) {
|
|
|
17247
17247
|
function y(S) {
|
|
17248
17248
|
return S === 62 ? V(S) : S === 93 ? (e.consume(S), y) : g(S);
|
|
17249
17249
|
}
|
|
17250
|
-
function
|
|
17251
|
-
return S === null || S === 62 ? V(S) : pe(S) ? (a =
|
|
17250
|
+
function T(S) {
|
|
17251
|
+
return S === null || S === 62 ? V(S) : pe(S) ? (a = T, re(S)) : (e.consume(S), T);
|
|
17252
17252
|
}
|
|
17253
17253
|
function w(S) {
|
|
17254
|
-
return S === null ? n(S) : S === 63 ? (e.consume(S),
|
|
17254
|
+
return S === null ? n(S) : S === 63 ? (e.consume(S), C) : pe(S) ? (a = w, re(S)) : (e.consume(S), w);
|
|
17255
17255
|
}
|
|
17256
|
-
function
|
|
17256
|
+
function C(S) {
|
|
17257
17257
|
return S === 62 ? V(S) : w(S);
|
|
17258
17258
|
}
|
|
17259
17259
|
function k(S) {
|
|
17260
17260
|
return mt(S) ? (e.consume(S), v) : n(S);
|
|
17261
17261
|
}
|
|
17262
17262
|
function v(S) {
|
|
17263
|
-
return S === 45 || ft(S) ? (e.consume(S), v) :
|
|
17263
|
+
return S === 45 || ft(S) ? (e.consume(S), v) : E(S);
|
|
17264
17264
|
}
|
|
17265
|
-
function
|
|
17266
|
-
return pe(S) ? (a =
|
|
17265
|
+
function E(S) {
|
|
17266
|
+
return pe(S) ? (a = E, re(S)) : Se(S) ? (e.consume(S), E) : V(S);
|
|
17267
17267
|
}
|
|
17268
17268
|
function I(S) {
|
|
17269
17269
|
return S === 45 || ft(S) ? (e.consume(S), I) : S === 47 || S === 62 || He(S) ? B(S) : n(S);
|
|
@@ -17833,12 +17833,12 @@ function v7(e, t, n) {
|
|
|
17833
17833
|
const r = {}, s = [];
|
|
17834
17834
|
let a = [], o = [];
|
|
17835
17835
|
const A = {
|
|
17836
|
-
attempt:
|
|
17837
|
-
check:
|
|
17838
|
-
consume:
|
|
17836
|
+
attempt: E(k),
|
|
17837
|
+
check: E(v),
|
|
17838
|
+
consume: T,
|
|
17839
17839
|
enter: w,
|
|
17840
|
-
exit:
|
|
17841
|
-
interrupt:
|
|
17840
|
+
exit: C,
|
|
17841
|
+
interrupt: E(v, {
|
|
17842
17842
|
interrupt: !0
|
|
17843
17843
|
})
|
|
17844
17844
|
}, u = {
|
|
@@ -17897,7 +17897,7 @@ function v7(e, t, n) {
|
|
|
17897
17897
|
function y(D) {
|
|
17898
17898
|
l = l(D);
|
|
17899
17899
|
}
|
|
17900
|
-
function
|
|
17900
|
+
function T(D) {
|
|
17901
17901
|
pe(D) ? (i.line++, i.column = 1, i.offset += D === -3 ? 2 : 1, x()) : D !== -1 && (i.column++, i.offset++), i._bufferIndex < 0 ? i._index++ : (i._bufferIndex++, i._bufferIndex === // Points w/ non-negative `_bufferIndex` reference
|
|
17902
17902
|
// strings.
|
|
17903
17903
|
/** @type {string} */
|
|
@@ -17907,7 +17907,7 @@ function v7(e, t, n) {
|
|
|
17907
17907
|
const _ = P || {};
|
|
17908
17908
|
return _.type = D, _.start = m(), u.events.push(["enter", _, u]), o.push(_), _;
|
|
17909
17909
|
}
|
|
17910
|
-
function
|
|
17910
|
+
function C(D) {
|
|
17911
17911
|
const P = o.pop();
|
|
17912
17912
|
return P.end = m(), u.events.push(["exit", P, u]), P;
|
|
17913
17913
|
}
|
|
@@ -17917,7 +17917,7 @@ function v7(e, t, n) {
|
|
|
17917
17917
|
function v(D, P) {
|
|
17918
17918
|
P.restore();
|
|
17919
17919
|
}
|
|
17920
|
-
function
|
|
17920
|
+
function E(D, P) {
|
|
17921
17921
|
return _;
|
|
17922
17922
|
function _(Q, H, V) {
|
|
17923
17923
|
let re, he, oe, S;
|
|
@@ -18188,8 +18188,8 @@ function N7(e) {
|
|
|
18188
18188
|
codeTextData: x,
|
|
18189
18189
|
data: x,
|
|
18190
18190
|
definition: A(),
|
|
18191
|
-
definitionDestinationString:
|
|
18192
|
-
definitionLabelString:
|
|
18191
|
+
definitionDestinationString: C,
|
|
18192
|
+
definitionLabelString: T,
|
|
18193
18193
|
definitionTitleString: w,
|
|
18194
18194
|
emphasis: A(),
|
|
18195
18195
|
hardBreakEscape: A(P),
|
|
@@ -18212,7 +18212,7 @@ function N7(e) {
|
|
|
18212
18212
|
resourceTitleString: U,
|
|
18213
18213
|
resource: Y,
|
|
18214
18214
|
setextHeading: A(I),
|
|
18215
|
-
setextHeadingLineSequence:
|
|
18215
|
+
setextHeadingLineSequence: E,
|
|
18216
18216
|
setextHeadingText: v,
|
|
18217
18217
|
strong: A(),
|
|
18218
18218
|
thematicBreak: A()
|
|
@@ -18386,7 +18386,7 @@ function N7(e) {
|
|
|
18386
18386
|
const q = this.resume(), se = this.stack[this.stack.length - 1];
|
|
18387
18387
|
se.value = q.replace(/(\r?\n|\r)$/g, "");
|
|
18388
18388
|
}
|
|
18389
|
-
function
|
|
18389
|
+
function T(q) {
|
|
18390
18390
|
const se = this.resume(), be = this.stack[this.stack.length - 1];
|
|
18391
18391
|
be.label = se, be.identifier = qt(this.sliceSerialize(q)).toLowerCase();
|
|
18392
18392
|
}
|
|
@@ -18394,7 +18394,7 @@ function N7(e) {
|
|
|
18394
18394
|
const q = this.resume(), se = this.stack[this.stack.length - 1];
|
|
18395
18395
|
se.title = q;
|
|
18396
18396
|
}
|
|
18397
|
-
function
|
|
18397
|
+
function C() {
|
|
18398
18398
|
const q = this.resume(), se = this.stack[this.stack.length - 1];
|
|
18399
18399
|
se.url = q;
|
|
18400
18400
|
}
|
|
@@ -18408,7 +18408,7 @@ function N7(e) {
|
|
|
18408
18408
|
function v() {
|
|
18409
18409
|
this.data.setextHeadingSlurpLineEnding = !0;
|
|
18410
18410
|
}
|
|
18411
|
-
function
|
|
18411
|
+
function E(q) {
|
|
18412
18412
|
const se = this.stack[this.stack.length - 1];
|
|
18413
18413
|
se.depth = this.sliceSerialize(q).codePointAt(0) === 61 ? 1 : 2;
|
|
18414
18414
|
}
|
|
@@ -19239,8 +19239,8 @@ function uN(e) {
|
|
|
19239
19239
|
const m = [], g = e.footnoteCounts.get(f);
|
|
19240
19240
|
for (; g !== void 0 && ++d <= g; ) {
|
|
19241
19241
|
m.length > 0 && m.push({ type: "text", value: " " });
|
|
19242
|
-
let
|
|
19243
|
-
typeof
|
|
19242
|
+
let T = typeof n == "string" ? n : n(A, d);
|
|
19243
|
+
typeof T == "string" && (T = { type: "text", value: T }), m.push({
|
|
19244
19244
|
type: "element",
|
|
19245
19245
|
tagName: "a",
|
|
19246
19246
|
properties: {
|
|
@@ -19249,13 +19249,13 @@ function uN(e) {
|
|
|
19249
19249
|
ariaLabel: typeof i == "string" ? i : i(A, d),
|
|
19250
19250
|
className: ["data-footnote-backref"]
|
|
19251
19251
|
},
|
|
19252
|
-
children: Array.isArray(
|
|
19252
|
+
children: Array.isArray(T) ? T : [T]
|
|
19253
19253
|
});
|
|
19254
19254
|
}
|
|
19255
19255
|
const b = l[l.length - 1];
|
|
19256
19256
|
if (b && b.type === "element" && b.tagName === "p") {
|
|
19257
|
-
const
|
|
19258
|
-
|
|
19257
|
+
const T = b.children[b.children.length - 1];
|
|
19258
|
+
T && T.type === "text" ? T.value += " " : b.children.push({ type: "text", value: " " }), b.children.push(...m);
|
|
19259
19259
|
} else
|
|
19260
19260
|
l.push(...m);
|
|
19261
19261
|
const y = {
|
|
@@ -19417,8 +19417,8 @@ function sb(e, t, n, i) {
|
|
|
19417
19417
|
);
|
|
19418
19418
|
if (y.children && d[0] !== pN)
|
|
19419
19419
|
for (g = (i ? y.children.length : -1) + a, b = l.concat(y); g > -1 && g < y.children.length; ) {
|
|
19420
|
-
const
|
|
19421
|
-
if (m = o(
|
|
19420
|
+
const T = y.children[g];
|
|
19421
|
+
if (m = o(T, g, b)(), m[0] === Pf)
|
|
19422
19422
|
return m;
|
|
19423
19423
|
g = typeof m[1] == "number" ? m[1] : g + a;
|
|
19424
19424
|
}
|
|
@@ -19589,11 +19589,11 @@ function xN() {
|
|
|
19589
19589
|
return u[l];
|
|
19590
19590
|
};
|
|
19591
19591
|
return ul = function A() {
|
|
19592
|
-
var u, l, f, c, d, m, g = arguments[0], b = 1, y = arguments.length,
|
|
19593
|
-
for (typeof g == "boolean" && (
|
|
19592
|
+
var u, l, f, c, d, m, g = arguments[0], b = 1, y = arguments.length, T = !1;
|
|
19593
|
+
for (typeof g == "boolean" && (T = g, g = arguments[1] || {}, b = 2), (g == null || typeof g != "object" && typeof g != "function") && (g = {}); b < y; ++b)
|
|
19594
19594
|
if (u = arguments[b], u != null)
|
|
19595
19595
|
for (l in u)
|
|
19596
|
-
f = o(g, l), c = o(u, l), g !== c && (
|
|
19596
|
+
f = o(g, l), c = o(u, l), g !== c && (T && c && (s(c) || (d = r(c))) ? (d ? (d = !1, m = f && r(f) ? f : []) : m = f && s(f) ? f : {}, a(g, { name: l, newValue: A(T, m, c) })) : typeof c < "u" && a(g, { name: l, newValue: c }));
|
|
19597
19597
|
return g;
|
|
19598
19598
|
}, ul;
|
|
19599
19599
|
}
|
|
@@ -20876,24 +20876,24 @@ function tS(e, t, n) {
|
|
|
20876
20876
|
const f = l[l.length - 1], c = s[a][0], d = s[a][1];
|
|
20877
20877
|
let m = 0;
|
|
20878
20878
|
const b = f.children.indexOf(u);
|
|
20879
|
-
let y = !1,
|
|
20879
|
+
let y = !1, T = [];
|
|
20880
20880
|
c.lastIndex = 0;
|
|
20881
20881
|
let w = c.exec(u.value);
|
|
20882
20882
|
for (; w; ) {
|
|
20883
|
-
const
|
|
20883
|
+
const C = w.index, k = {
|
|
20884
20884
|
index: w.index,
|
|
20885
20885
|
input: w.input,
|
|
20886
20886
|
stack: [...l, u]
|
|
20887
20887
|
};
|
|
20888
20888
|
let v = d(...w, k);
|
|
20889
|
-
if (typeof v == "string" && (v = v.length > 0 ? { type: "text", value: v } : void 0), v === !1 ? c.lastIndex =
|
|
20889
|
+
if (typeof v == "string" && (v = v.length > 0 ? { type: "text", value: v } : void 0), v === !1 ? c.lastIndex = C + 1 : (m !== C && T.push({
|
|
20890
20890
|
type: "text",
|
|
20891
|
-
value: u.value.slice(m,
|
|
20892
|
-
}), Array.isArray(v) ?
|
|
20891
|
+
value: u.value.slice(m, C)
|
|
20892
|
+
}), Array.isArray(v) ? T.push(...v) : v && T.push(v), m = C + w[0].length, y = !0), !c.global)
|
|
20893
20893
|
break;
|
|
20894
20894
|
w = c.exec(u.value);
|
|
20895
20895
|
}
|
|
20896
|
-
return y ? (m < u.value.length &&
|
|
20896
|
+
return y ? (m < u.value.length && T.push({ type: "text", value: u.value.slice(m) }), f.children.splice(b, 1, ...T)) : T = [u], b + T.length;
|
|
20897
20897
|
}
|
|
20898
20898
|
}
|
|
20899
20899
|
function nS(e) {
|
|
@@ -21183,12 +21183,12 @@ function OS(e, t) {
|
|
|
21183
21183
|
const g = [], b = [];
|
|
21184
21184
|
let y = -1;
|
|
21185
21185
|
for (e[l].length > u && (u = e[l].length); ++y < e[l].length; ) {
|
|
21186
|
-
const
|
|
21186
|
+
const T = LS(e[l][y]);
|
|
21187
21187
|
if (n.alignDelimiters !== !1) {
|
|
21188
|
-
const w = r(
|
|
21188
|
+
const w = r(T);
|
|
21189
21189
|
b[y] = w, (A[y] === void 0 || w > A[y]) && (A[y] = w);
|
|
21190
21190
|
}
|
|
21191
|
-
g.push(
|
|
21191
|
+
g.push(T);
|
|
21192
21192
|
}
|
|
21193
21193
|
a[l] = g, o[l] = b;
|
|
21194
21194
|
}
|
|
@@ -21207,12 +21207,12 @@ function OS(e, t) {
|
|
|
21207
21207
|
const g = s[f];
|
|
21208
21208
|
let b = "", y = "";
|
|
21209
21209
|
g === 99 ? (b = ":", y = ":") : g === 108 ? b = ":" : g === 114 && (y = ":");
|
|
21210
|
-
let
|
|
21210
|
+
let T = n.alignDelimiters === !1 ? 1 : Math.max(
|
|
21211
21211
|
1,
|
|
21212
21212
|
A[f] - b.length - y.length
|
|
21213
21213
|
);
|
|
21214
|
-
const w = b + "-".repeat(
|
|
21215
|
-
n.alignDelimiters !== !1 && (
|
|
21214
|
+
const w = b + "-".repeat(T) + y;
|
|
21215
|
+
n.alignDelimiters !== !1 && (T = b.length + T + y.length, T > A[f] && (A[f] = T), d[f] = T), c[f] = w;
|
|
21216
21216
|
}
|
|
21217
21217
|
a.splice(1, 0, c), o.splice(1, 0, d), l = -1;
|
|
21218
21218
|
const m = [];
|
|
@@ -21221,15 +21221,15 @@ function OS(e, t) {
|
|
|
21221
21221
|
f = -1;
|
|
21222
21222
|
const y = [];
|
|
21223
21223
|
for (; ++f < u; ) {
|
|
21224
|
-
const
|
|
21225
|
-
let w = "",
|
|
21224
|
+
const T = g[f] || "";
|
|
21225
|
+
let w = "", C = "";
|
|
21226
21226
|
if (n.alignDelimiters !== !1) {
|
|
21227
21227
|
const k = A[f] - (b[f] || 0), v = s[f];
|
|
21228
|
-
v === 114 ? w = " ".repeat(k) : v === 99 ? k % 2 ? (w = " ".repeat(k / 2 + 0.5),
|
|
21228
|
+
v === 114 ? w = " ".repeat(k) : v === 99 ? k % 2 ? (w = " ".repeat(k / 2 + 0.5), C = " ".repeat(k / 2 - 0.5)) : (w = " ".repeat(k / 2), C = w) : C = " ".repeat(k);
|
|
21229
21229
|
}
|
|
21230
21230
|
n.delimiterStart !== !1 && !f && y.push("|"), n.padding !== !1 && // Don’t add the opening space if we’re not aligning and the cell is
|
|
21231
21231
|
// empty: there will be a closing space.
|
|
21232
|
-
!(n.alignDelimiters === !1 &&
|
|
21232
|
+
!(n.alignDelimiters === !1 && T === "") && (n.delimiterStart !== !1 || f) && y.push(" "), n.alignDelimiters !== !1 && y.push(w), y.push(T), n.alignDelimiters !== !1 && y.push(C), n.padding !== !1 && y.push(" "), (n.delimiterEnd !== !1 || f !== u - 1) && y.push("|");
|
|
21233
21233
|
}
|
|
21234
21234
|
m.push(
|
|
21235
21235
|
n.delimiterEnd === !1 ? y.join("").replace(/ +$/, "") : y.join("")
|
|
@@ -21940,17 +21940,17 @@ function kD(e) {
|
|
|
21940
21940
|
return u(l(d, g, b), d.align);
|
|
21941
21941
|
}
|
|
21942
21942
|
function o(d, m, g, b) {
|
|
21943
|
-
const y = f(d, g, b),
|
|
21944
|
-
return
|
|
21943
|
+
const y = f(d, g, b), T = u([y]);
|
|
21944
|
+
return T.slice(0, T.indexOf(`
|
|
21945
21945
|
`));
|
|
21946
21946
|
}
|
|
21947
21947
|
function A(d, m, g, b) {
|
|
21948
|
-
const y = g.enter("tableCell"),
|
|
21948
|
+
const y = g.enter("tableCell"), T = g.enter("phrasing"), w = g.containerPhrasing(d, {
|
|
21949
21949
|
...b,
|
|
21950
21950
|
before: s,
|
|
21951
21951
|
after: s
|
|
21952
21952
|
});
|
|
21953
|
-
return
|
|
21953
|
+
return T(), y(), w;
|
|
21954
21954
|
}
|
|
21955
21955
|
function u(d, m) {
|
|
21956
21956
|
return OS(d, {
|
|
@@ -21966,18 +21966,18 @@ function kD(e) {
|
|
|
21966
21966
|
function l(d, m, g) {
|
|
21967
21967
|
const b = d.children;
|
|
21968
21968
|
let y = -1;
|
|
21969
|
-
const
|
|
21969
|
+
const T = [], w = m.enter("table");
|
|
21970
21970
|
for (; ++y < b.length; )
|
|
21971
|
-
|
|
21972
|
-
return w(),
|
|
21971
|
+
T[y] = f(b[y], m, g);
|
|
21972
|
+
return w(), T;
|
|
21973
21973
|
}
|
|
21974
21974
|
function f(d, m, g) {
|
|
21975
21975
|
const b = d.children;
|
|
21976
21976
|
let y = -1;
|
|
21977
|
-
const
|
|
21977
|
+
const T = [], w = m.enter("tableRow");
|
|
21978
21978
|
for (; ++y < b.length; )
|
|
21979
|
-
|
|
21980
|
-
return w(),
|
|
21979
|
+
T[y] = A(b[y], d, m, g);
|
|
21980
|
+
return w(), T;
|
|
21981
21981
|
}
|
|
21982
21982
|
function c(d, m, g) {
|
|
21983
21983
|
let b = kb.inlineCode(d, m, g);
|
|
@@ -22630,31 +22630,31 @@ function eB(e, t, n) {
|
|
|
22630
22630
|
return Se(x) ? Re(e, b, "whitespace")(x) : b(x);
|
|
22631
22631
|
}
|
|
22632
22632
|
function b(x) {
|
|
22633
|
-
return x === 58 ? (s += 1, a = !0, e.enter("tableDelimiterMarker"), e.consume(x), e.exit("tableDelimiterMarker"), y) : x === 45 ? (s += 1, y(x)) : x === null || pe(x) ?
|
|
22633
|
+
return x === 58 ? (s += 1, a = !0, e.enter("tableDelimiterMarker"), e.consume(x), e.exit("tableDelimiterMarker"), y) : x === 45 ? (s += 1, y(x)) : x === null || pe(x) ? C(x) : k(x);
|
|
22634
22634
|
}
|
|
22635
22635
|
function y(x) {
|
|
22636
|
-
return x === 45 ? (e.enter("tableDelimiterFiller"),
|
|
22636
|
+
return x === 45 ? (e.enter("tableDelimiterFiller"), T(x)) : k(x);
|
|
22637
22637
|
}
|
|
22638
|
-
function
|
|
22639
|
-
return x === 45 ? (e.consume(x),
|
|
22638
|
+
function T(x) {
|
|
22639
|
+
return x === 45 ? (e.consume(x), T) : x === 58 ? (a = !0, e.exit("tableDelimiterFiller"), e.enter("tableDelimiterMarker"), e.consume(x), e.exit("tableDelimiterMarker"), w) : (e.exit("tableDelimiterFiller"), w(x));
|
|
22640
22640
|
}
|
|
22641
22641
|
function w(x) {
|
|
22642
|
-
return Se(x) ? Re(e,
|
|
22642
|
+
return Se(x) ? Re(e, C, "whitespace")(x) : C(x);
|
|
22643
22643
|
}
|
|
22644
|
-
function
|
|
22644
|
+
function C(x) {
|
|
22645
22645
|
return x === 124 ? m(x) : x === null || pe(x) ? !a || r !== s ? k(x) : (e.exit("tableDelimiterRow"), e.exit("tableHead"), t(x)) : k(x);
|
|
22646
22646
|
}
|
|
22647
22647
|
function k(x) {
|
|
22648
22648
|
return n(x);
|
|
22649
22649
|
}
|
|
22650
22650
|
function v(x) {
|
|
22651
|
-
return e.enter("tableRow"),
|
|
22651
|
+
return e.enter("tableRow"), E(x);
|
|
22652
22652
|
}
|
|
22653
|
-
function
|
|
22654
|
-
return x === 124 ? (e.enter("tableCellDivider"), e.consume(x), e.exit("tableCellDivider"),
|
|
22653
|
+
function E(x) {
|
|
22654
|
+
return x === 124 ? (e.enter("tableCellDivider"), e.consume(x), e.exit("tableCellDivider"), E) : x === null || pe(x) ? (e.exit("tableRow"), t(x)) : Se(x) ? Re(e, E, "whitespace")(x) : (e.enter("data"), I(x));
|
|
22655
22655
|
}
|
|
22656
22656
|
function I(x) {
|
|
22657
|
-
return x === null || x === 124 || He(x) ? (e.exit("data"),
|
|
22657
|
+
return x === null || x === 124 || He(x) ? (e.exit("data"), E(x)) : (e.consume(x), x === 92 ? B : I);
|
|
22658
22658
|
}
|
|
22659
22659
|
function B(x) {
|
|
22660
22660
|
return x === 92 || x === 124 ? (e.consume(x), I) : I(x);
|
|
@@ -30376,7 +30376,7 @@ const wy = ({ text: e }) => e ? /* @__PURE__ */ p(
|
|
|
30376
30376
|
onSendMedia: m,
|
|
30377
30377
|
placeholderText: g
|
|
30378
30378
|
}) => {
|
|
30379
|
-
const [b, y] = ae(""), [
|
|
30379
|
+
const [b, y] = ae(""), [T, w] = ae(!1), [C, k] = ae(40), [v, E] = ae(!1), [I, B] = ae([]), x = Ne(null), D = Ne(null), P = ce(() => {
|
|
30380
30380
|
x.current && x.current.click();
|
|
30381
30381
|
}, []), _ = ce(
|
|
30382
30382
|
(ie) => {
|
|
@@ -30395,9 +30395,9 @@ const wy = ({ text: e }) => e ? /* @__PURE__ */ p(
|
|
|
30395
30395
|
},
|
|
30396
30396
|
[]
|
|
30397
30397
|
), Q = () => {
|
|
30398
|
-
|
|
30398
|
+
E(!0), n?.();
|
|
30399
30399
|
}, H = () => {
|
|
30400
|
-
|
|
30400
|
+
E(!1), i?.();
|
|
30401
30401
|
}, V = ce((ie) => {
|
|
30402
30402
|
B((Ae) => Ae.filter((me) => me !== ie));
|
|
30403
30403
|
}, []), re = ce(
|
|
@@ -30493,7 +30493,7 @@ const wy = ({ text: e }) => e ? /* @__PURE__ */ p(
|
|
|
30493
30493
|
), [I, de, V]);
|
|
30494
30494
|
return /* @__PURE__ */ F(TT, { children: [
|
|
30495
30495
|
/* @__PURE__ */ F(IT, { children: [
|
|
30496
|
-
!
|
|
30496
|
+
!T && /* @__PURE__ */ F(We, { children: [
|
|
30497
30497
|
!r?.disableMedia && /* @__PURE__ */ p(
|
|
30498
30498
|
ke,
|
|
30499
30499
|
{
|
|
@@ -30505,7 +30505,7 @@ const wy = ({ text: e }) => e ? /* @__PURE__ */ p(
|
|
|
30505
30505
|
u ? /* @__PURE__ */ p(
|
|
30506
30506
|
PT,
|
|
30507
30507
|
{
|
|
30508
|
-
dynamicHeight:
|
|
30508
|
+
dynamicHeight: C,
|
|
30509
30509
|
color: r?.colors?.primary,
|
|
30510
30510
|
isFocused: v,
|
|
30511
30511
|
children: /* @__PURE__ */ p(
|
|
@@ -30519,7 +30519,7 @@ const wy = ({ text: e }) => e ? /* @__PURE__ */ p(
|
|
|
30519
30519
|
onFocus: Q,
|
|
30520
30520
|
onBlur: H,
|
|
30521
30521
|
disabled: a || o,
|
|
30522
|
-
dynamicHeight:
|
|
30522
|
+
dynamicHeight: C,
|
|
30523
30523
|
color: r?.colors?.primary
|
|
30524
30524
|
}
|
|
30525
30525
|
)
|
|
@@ -30584,7 +30584,7 @@ const wy = ({ text: e }) => e ? /* @__PURE__ */ p(
|
|
|
30584
30584
|
jT,
|
|
30585
30585
|
{
|
|
30586
30586
|
setIsRecording: w,
|
|
30587
|
-
isRecording:
|
|
30587
|
+
isRecording: T,
|
|
30588
30588
|
handleSendClick: Y
|
|
30589
30589
|
}
|
|
30590
30590
|
)
|
|
@@ -31337,21 +31337,21 @@ function AP(e, t) {
|
|
|
31337
31337
|
c.setAttribute("id", d), c.innerText = "Learn more", c.href = "https://firebase.google.com/docs/studio/preview-apps#preview-backend", c.setAttribute("target", "__blank"), c.style.paddingLeft = "5px", c.style.textDecoration = "underline";
|
|
31338
31338
|
}
|
|
31339
31339
|
function f() {
|
|
31340
|
-
const c = oP(i), d = n("text"), m = document.getElementById(d) || document.createElement("span"), g = n("learnmore"), b = document.getElementById(g) || document.createElement("a"), y = n("preprendIcon"),
|
|
31340
|
+
const c = oP(i), d = n("text"), m = document.getElementById(d) || document.createElement("span"), g = n("learnmore"), b = document.getElementById(g) || document.createElement("a"), y = n("preprendIcon"), T = document.getElementById(y) || document.createElementNS("http://www.w3.org/2000/svg", "svg");
|
|
31341
31341
|
if (c.created) {
|
|
31342
31342
|
const w = c.element;
|
|
31343
31343
|
o(w), l(b, g);
|
|
31344
|
-
const
|
|
31345
|
-
A(
|
|
31344
|
+
const C = u();
|
|
31345
|
+
A(T, y), w.append(T, m, b, C), document.body.appendChild(w);
|
|
31346
31346
|
}
|
|
31347
|
-
s ? (m.innerText = "Preview backend disconnected.",
|
|
31347
|
+
s ? (m.innerText = "Preview backend disconnected.", T.innerHTML = `<g clip-path="url(#clip0_6013_33858)">
|
|
31348
31348
|
<path d="M4.8 17.6L12 5.6L19.2 17.6H4.8ZM6.91667 16.4H17.0833L12 7.93333L6.91667 16.4ZM12 15.6C12.1667 15.6 12.3056 15.5444 12.4167 15.4333C12.5389 15.3111 12.6 15.1667 12.6 15C12.6 14.8333 12.5389 14.6944 12.4167 14.5833C12.3056 14.4611 12.1667 14.4 12 14.4C11.8333 14.4 11.6889 14.4611 11.5667 14.5833C11.4556 14.6944 11.4 14.8333 11.4 15C11.4 15.1667 11.4556 15.3111 11.5667 15.4333C11.6889 15.5444 11.8333 15.6 12 15.6ZM11.4 13.6H12.6V10.4H11.4V13.6Z" fill="#212121"/>
|
|
31349
31349
|
</g>
|
|
31350
31350
|
<defs>
|
|
31351
31351
|
<clipPath id="clip0_6013_33858">
|
|
31352
31352
|
<rect width="24" height="24" fill="white"/>
|
|
31353
31353
|
</clipPath>
|
|
31354
|
-
</defs>`) : (
|
|
31354
|
+
</defs>`) : (T.innerHTML = `<g clip-path="url(#clip0_6083_34804)">
|
|
31355
31355
|
<path d="M11.4 15.2H12.6V11.2H11.4V15.2ZM12 10C12.1667 10 12.3056 9.94444 12.4167 9.83333C12.5389 9.71111 12.6 9.56667 12.6 9.4C12.6 9.23333 12.5389 9.09444 12.4167 8.98333C12.3056 8.86111 12.1667 8.8 12 8.8C11.8333 8.8 11.6889 8.86111 11.5667 8.98333C11.4556 9.09444 11.4 9.23333 11.4 9.4C11.4 9.56667 11.4556 9.71111 11.5667 9.83333C11.6889 9.94444 11.8333 10 12 10ZM12 18.4C11.1222 18.4 10.2944 18.2333 9.51667 17.9C8.73889 17.5667 8.05556 17.1111 7.46667 16.5333C6.88889 15.9444 6.43333 15.2611 6.1 14.4833C5.76667 13.7056 5.6 12.8778 5.6 12C5.6 11.1111 5.76667 10.2833 6.1 9.51667C6.43333 8.73889 6.88889 8.06111 7.46667 7.48333C8.05556 6.89444 8.73889 6.43333 9.51667 6.1C10.2944 5.76667 11.1222 5.6 12 5.6C12.8889 5.6 13.7167 5.76667 14.4833 6.1C15.2611 6.43333 15.9389 6.89444 16.5167 7.48333C17.1056 8.06111 17.5667 8.73889 17.9 9.51667C18.2333 10.2833 18.4 11.1111 18.4 12C18.4 12.8778 18.2333 13.7056 17.9 14.4833C17.5667 15.2611 17.1056 15.9444 16.5167 16.5333C15.9389 17.1111 15.2611 17.5667 14.4833 17.9C13.7167 18.2333 12.8889 18.4 12 18.4ZM12 17.2C13.4444 17.2 14.6722 16.6944 15.6833 15.6833C16.6944 14.6722 17.2 13.4444 17.2 12C17.2 10.5556 16.6944 9.32778 15.6833 8.31667C14.6722 7.30555 13.4444 6.8 12 6.8C10.5556 6.8 9.32778 7.30555 8.31667 8.31667C7.30556 9.32778 6.8 10.5556 6.8 12C6.8 13.4444 7.30556 14.6722 8.31667 15.6833C9.32778 16.6944 10.5556 17.2 12 17.2Z" fill="#212121"/>
|
|
31356
31356
|
</g>
|
|
31357
31357
|
<defs>
|
|
@@ -33668,21 +33668,21 @@ class Yt {
|
|
|
33668
33668
|
}
|
|
33669
33669
|
static _fromJSON(t, n) {
|
|
33670
33670
|
var i, r, s, a, o, A, u, l;
|
|
33671
|
-
const f = (i = n.displayName) !== null && i !== void 0 ? i : void 0, c = (r = n.email) !== null && r !== void 0 ? r : void 0, d = (s = n.phoneNumber) !== null && s !== void 0 ? s : void 0, m = (a = n.photoURL) !== null && a !== void 0 ? a : void 0, g = (o = n.tenantId) !== null && o !== void 0 ? o : void 0, b = (A = n._redirectEventId) !== null && A !== void 0 ? A : void 0, y = (u = n.createdAt) !== null && u !== void 0 ? u : void 0,
|
|
33671
|
+
const f = (i = n.displayName) !== null && i !== void 0 ? i : void 0, c = (r = n.email) !== null && r !== void 0 ? r : void 0, d = (s = n.phoneNumber) !== null && s !== void 0 ? s : void 0, m = (a = n.photoURL) !== null && a !== void 0 ? a : void 0, g = (o = n.tenantId) !== null && o !== void 0 ? o : void 0, b = (A = n._redirectEventId) !== null && A !== void 0 ? A : void 0, y = (u = n.createdAt) !== null && u !== void 0 ? u : void 0, T = (l = n.lastLoginAt) !== null && l !== void 0 ? l : void 0, { uid: w, emailVerified: C, isAnonymous: k, providerData: v, stsTokenManager: E } = n;
|
|
33672
33672
|
ve(
|
|
33673
|
-
w &&
|
|
33673
|
+
w && E,
|
|
33674
33674
|
t,
|
|
33675
33675
|
"internal-error"
|
|
33676
33676
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
33677
33677
|
);
|
|
33678
|
-
const I = Vi.fromJSON(this.name,
|
|
33678
|
+
const I = Vi.fromJSON(this.name, E);
|
|
33679
33679
|
ve(
|
|
33680
33680
|
typeof w == "string",
|
|
33681
33681
|
t,
|
|
33682
33682
|
"internal-error"
|
|
33683
33683
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
33684
33684
|
), _n(f, t.name), _n(c, t.name), ve(
|
|
33685
|
-
typeof
|
|
33685
|
+
typeof C == "boolean",
|
|
33686
33686
|
t,
|
|
33687
33687
|
"internal-error"
|
|
33688
33688
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
@@ -33691,12 +33691,12 @@ class Yt {
|
|
|
33691
33691
|
t,
|
|
33692
33692
|
"internal-error"
|
|
33693
33693
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
33694
|
-
), _n(d, t.name), _n(m, t.name), _n(g, t.name), _n(b, t.name), _n(y, t.name), _n(
|
|
33694
|
+
), _n(d, t.name), _n(m, t.name), _n(g, t.name), _n(b, t.name), _n(y, t.name), _n(T, t.name);
|
|
33695
33695
|
const B = new Yt({
|
|
33696
33696
|
uid: w,
|
|
33697
33697
|
auth: t,
|
|
33698
33698
|
email: c,
|
|
33699
|
-
emailVerified:
|
|
33699
|
+
emailVerified: C,
|
|
33700
33700
|
displayName: f,
|
|
33701
33701
|
isAnonymous: k,
|
|
33702
33702
|
photoURL: m,
|
|
@@ -33704,7 +33704,7 @@ class Yt {
|
|
|
33704
33704
|
tenantId: g,
|
|
33705
33705
|
stsTokenManager: I,
|
|
33706
33706
|
createdAt: y,
|
|
33707
|
-
lastLoginAt:
|
|
33707
|
+
lastLoginAt: T
|
|
33708
33708
|
});
|
|
33709
33709
|
return v && Array.isArray(v) && (B.providerData = v.map((x) => Object.assign({}, x))), b && (B._redirectEventId = b), B;
|
|
33710
33710
|
}
|
|
@@ -37236,8 +37236,8 @@ const Ni = ({
|
|
|
37236
37236
|
}) => {
|
|
37237
37237
|
const { backgroundColor: u } = gw(e), l = (m) => {
|
|
37238
37238
|
if (!m) return "";
|
|
37239
|
-
const b = m.normalize("NFD").replace(/[\u0300-\u036f]/g, "").trim().split(/\s+/), y = (
|
|
37240
|
-
return
|
|
37239
|
+
const b = m.normalize("NFD").replace(/[\u0300-\u036f]/g, "").trim().split(/\s+/), y = (C) => C && /^[\p{L}\p{N}\p{P}]/u.test(C[0]) ? C[0].toUpperCase() : "", T = y(b[0] || ""), w = y(b[1] || "");
|
|
37240
|
+
return T + w;
|
|
37241
37241
|
}, f = () => !t && e ? l(e) : "", c = (m) => {
|
|
37242
37242
|
const g = m.target.files?.[0];
|
|
37243
37243
|
g && i?.onUpload && i.onUpload(g);
|
|
@@ -37602,15 +37602,15 @@ const bw = ({
|
|
|
37602
37602
|
const [r, s] = ae(!1), [a, o] = ae(!1), [A, u] = ae("0"), [l, f] = ae(""), [c, d] = ae(""), [m, g] = ae({
|
|
37603
37603
|
name: "Public",
|
|
37604
37604
|
id: "public"
|
|
37605
|
-
}), [b, y] = ae(null), [
|
|
37605
|
+
}), [b, y] = ae(null), [T, w] = ae({ name: "", description: "" }), [C, k] = ae([]), v = Ve(
|
|
37606
37606
|
// () => roomName.length >= 3 && roomDescription.length >= 5,
|
|
37607
37607
|
() => l.length >= 3,
|
|
37608
37608
|
[l, c]
|
|
37609
|
-
),
|
|
37609
|
+
), E = (H) => H.trim().length < 3 ? "Room name must be at least 3 characters." : "", I = (H) => {
|
|
37610
37610
|
const V = H.target.value;
|
|
37611
37611
|
f(V), w((re) => ({
|
|
37612
37612
|
...re,
|
|
37613
|
-
name:
|
|
37613
|
+
name: E(V)
|
|
37614
37614
|
}));
|
|
37615
37615
|
}, B = () => s(!0), x = () => {
|
|
37616
37616
|
u("0"), s(!1), f(""), k([]);
|
|
@@ -37646,7 +37646,7 @@ const bw = ({
|
|
|
37646
37646
|
H.append("files", b);
|
|
37647
37647
|
const re = (await Sd(H))?.data?.results?.[0]?.location;
|
|
37648
37648
|
if (e?.newArch) {
|
|
37649
|
-
const he =
|
|
37649
|
+
const he = C.map((S) => S.xmppUsername), oe = await s9({
|
|
37650
37650
|
title: l,
|
|
37651
37651
|
description: c && c !== "" ? c : "No description",
|
|
37652
37652
|
picture: re || "",
|
|
@@ -37721,8 +37721,8 @@ const bw = ({
|
|
|
37721
37721
|
value: l,
|
|
37722
37722
|
onChange: I,
|
|
37723
37723
|
placeholder: "Enter Room Name",
|
|
37724
|
-
helperText:
|
|
37725
|
-
error: !!
|
|
37724
|
+
helperText: T.name,
|
|
37725
|
+
error: !!T.name
|
|
37726
37726
|
}
|
|
37727
37727
|
),
|
|
37728
37728
|
/* @__PURE__ */ p(
|
|
@@ -37788,7 +37788,7 @@ const bw = ({
|
|
|
37788
37788
|
children: /* @__PURE__ */ p(
|
|
37789
37789
|
bw,
|
|
37790
37790
|
{
|
|
37791
|
-
selectedUsers:
|
|
37791
|
+
selectedUsers: C,
|
|
37792
37792
|
setSelectedUsers: k,
|
|
37793
37793
|
style: {
|
|
37794
37794
|
minWidth: "100%",
|
|
@@ -37935,7 +37935,7 @@ var ap;
|
|
|
37935
37935
|
function hQ() {
|
|
37936
37936
|
if (ap) return Me;
|
|
37937
37937
|
ap = 1;
|
|
37938
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, i = e ? Symbol.for("react.fragment") : 60107, r = e ? Symbol.for("react.strict_mode") : 60108, s = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, o = e ? Symbol.for("react.context") : 60110, A = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, l = e ? Symbol.for("react.forward_ref") : 60112, f = e ? Symbol.for("react.suspense") : 60113, c = e ? Symbol.for("react.suspense_list") : 60120, d = e ? Symbol.for("react.memo") : 60115, m = e ? Symbol.for("react.lazy") : 60116, g = e ? Symbol.for("react.block") : 60121, b = e ? Symbol.for("react.fundamental") : 60117, y = e ? Symbol.for("react.responder") : 60118,
|
|
37938
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, i = e ? Symbol.for("react.fragment") : 60107, r = e ? Symbol.for("react.strict_mode") : 60108, s = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, o = e ? Symbol.for("react.context") : 60110, A = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, l = e ? Symbol.for("react.forward_ref") : 60112, f = e ? Symbol.for("react.suspense") : 60113, c = e ? Symbol.for("react.suspense_list") : 60120, d = e ? Symbol.for("react.memo") : 60115, m = e ? Symbol.for("react.lazy") : 60116, g = e ? Symbol.for("react.block") : 60121, b = e ? Symbol.for("react.fundamental") : 60117, y = e ? Symbol.for("react.responder") : 60118, T = e ? Symbol.for("react.scope") : 60119;
|
|
37939
37939
|
function w(k) {
|
|
37940
37940
|
if (typeof k == "object" && k !== null) {
|
|
37941
37941
|
var v = k.$$typeof;
|
|
@@ -37966,12 +37966,12 @@ function hQ() {
|
|
|
37966
37966
|
}
|
|
37967
37967
|
}
|
|
37968
37968
|
}
|
|
37969
|
-
function
|
|
37969
|
+
function C(k) {
|
|
37970
37970
|
return w(k) === u;
|
|
37971
37971
|
}
|
|
37972
37972
|
return Me.AsyncMode = A, Me.ConcurrentMode = u, Me.ContextConsumer = o, Me.ContextProvider = a, Me.Element = t, Me.ForwardRef = l, Me.Fragment = i, Me.Lazy = m, Me.Memo = d, Me.Portal = n, Me.Profiler = s, Me.StrictMode = r, Me.Suspense = f, Me.isAsyncMode = function(k) {
|
|
37973
|
-
return
|
|
37974
|
-
}, Me.isConcurrentMode =
|
|
37973
|
+
return C(k) || w(k) === A;
|
|
37974
|
+
}, Me.isConcurrentMode = C, Me.isContextConsumer = function(k) {
|
|
37975
37975
|
return w(k) === o;
|
|
37976
37976
|
}, Me.isContextProvider = function(k) {
|
|
37977
37977
|
return w(k) === a;
|
|
@@ -37994,7 +37994,7 @@ function hQ() {
|
|
|
37994
37994
|
}, Me.isSuspense = function(k) {
|
|
37995
37995
|
return w(k) === f;
|
|
37996
37996
|
}, Me.isValidElementType = function(k) {
|
|
37997
|
-
return typeof k == "string" || typeof k == "function" || k === i || k === u || k === s || k === r || k === f || k === c || typeof k == "object" && k !== null && (k.$$typeof === m || k.$$typeof === d || k.$$typeof === a || k.$$typeof === o || k.$$typeof === l || k.$$typeof === b || k.$$typeof === y || k.$$typeof ===
|
|
37997
|
+
return typeof k == "string" || typeof k == "function" || k === i || k === u || k === s || k === r || k === f || k === c || typeof k == "object" && k !== null && (k.$$typeof === m || k.$$typeof === d || k.$$typeof === a || k.$$typeof === o || k.$$typeof === l || k.$$typeof === b || k.$$typeof === y || k.$$typeof === T || k.$$typeof === g);
|
|
37998
37998
|
}, Me.typeOf = w, Me;
|
|
37999
37999
|
}
|
|
38000
38000
|
var Pe = {};
|
|
@@ -38009,12 +38009,12 @@ var Pe = {};
|
|
|
38009
38009
|
var op;
|
|
38010
38010
|
function mQ() {
|
|
38011
38011
|
return op || (op = 1, process.env.NODE_ENV !== "production" && function() {
|
|
38012
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, i = e ? Symbol.for("react.fragment") : 60107, r = e ? Symbol.for("react.strict_mode") : 60108, s = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, o = e ? Symbol.for("react.context") : 60110, A = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, l = e ? Symbol.for("react.forward_ref") : 60112, f = e ? Symbol.for("react.suspense") : 60113, c = e ? Symbol.for("react.suspense_list") : 60120, d = e ? Symbol.for("react.memo") : 60115, m = e ? Symbol.for("react.lazy") : 60116, g = e ? Symbol.for("react.block") : 60121, b = e ? Symbol.for("react.fundamental") : 60117, y = e ? Symbol.for("react.responder") : 60118,
|
|
38012
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, i = e ? Symbol.for("react.fragment") : 60107, r = e ? Symbol.for("react.strict_mode") : 60108, s = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, o = e ? Symbol.for("react.context") : 60110, A = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, l = e ? Symbol.for("react.forward_ref") : 60112, f = e ? Symbol.for("react.suspense") : 60113, c = e ? Symbol.for("react.suspense_list") : 60120, d = e ? Symbol.for("react.memo") : 60115, m = e ? Symbol.for("react.lazy") : 60116, g = e ? Symbol.for("react.block") : 60121, b = e ? Symbol.for("react.fundamental") : 60117, y = e ? Symbol.for("react.responder") : 60118, T = e ? Symbol.for("react.scope") : 60119;
|
|
38013
38013
|
function w(K) {
|
|
38014
38014
|
return typeof K == "string" || typeof K == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
38015
|
-
K === i || K === u || K === s || K === r || K === f || K === c || typeof K == "object" && K !== null && (K.$$typeof === m || K.$$typeof === d || K.$$typeof === a || K.$$typeof === o || K.$$typeof === l || K.$$typeof === b || K.$$typeof === y || K.$$typeof ===
|
|
38015
|
+
K === i || K === u || K === s || K === r || K === f || K === c || typeof K == "object" && K !== null && (K.$$typeof === m || K.$$typeof === d || K.$$typeof === a || K.$$typeof === o || K.$$typeof === l || K.$$typeof === b || K.$$typeof === y || K.$$typeof === T || K.$$typeof === g);
|
|
38016
38016
|
}
|
|
38017
|
-
function
|
|
38017
|
+
function C(K) {
|
|
38018
38018
|
if (typeof K == "object" && K !== null) {
|
|
38019
38019
|
var _e = K.$$typeof;
|
|
38020
38020
|
switch (_e) {
|
|
@@ -38046,47 +38046,47 @@ function mQ() {
|
|
|
38046
38046
|
}
|
|
38047
38047
|
}
|
|
38048
38048
|
}
|
|
38049
|
-
var k = A, v = u,
|
|
38049
|
+
var k = A, v = u, E = o, I = a, B = t, x = l, D = i, P = m, _ = d, Q = n, H = s, V = r, re = f, he = !1;
|
|
38050
38050
|
function oe(K) {
|
|
38051
|
-
return he || (he = !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.")), S(K) ||
|
|
38051
|
+
return he || (he = !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.")), S(K) || C(K) === A;
|
|
38052
38052
|
}
|
|
38053
38053
|
function S(K) {
|
|
38054
|
-
return
|
|
38054
|
+
return C(K) === u;
|
|
38055
38055
|
}
|
|
38056
38056
|
function U(K) {
|
|
38057
|
-
return
|
|
38057
|
+
return C(K) === o;
|
|
38058
38058
|
}
|
|
38059
38059
|
function Y(K) {
|
|
38060
|
-
return
|
|
38060
|
+
return C(K) === a;
|
|
38061
38061
|
}
|
|
38062
38062
|
function N(K) {
|
|
38063
38063
|
return typeof K == "object" && K !== null && K.$$typeof === t;
|
|
38064
38064
|
}
|
|
38065
38065
|
function W(K) {
|
|
38066
|
-
return
|
|
38066
|
+
return C(K) === l;
|
|
38067
38067
|
}
|
|
38068
38068
|
function de(K) {
|
|
38069
|
-
return
|
|
38069
|
+
return C(K) === i;
|
|
38070
38070
|
}
|
|
38071
38071
|
function le(K) {
|
|
38072
|
-
return
|
|
38072
|
+
return C(K) === m;
|
|
38073
38073
|
}
|
|
38074
38074
|
function ie(K) {
|
|
38075
|
-
return
|
|
38075
|
+
return C(K) === d;
|
|
38076
38076
|
}
|
|
38077
38077
|
function Ae(K) {
|
|
38078
|
-
return
|
|
38078
|
+
return C(K) === n;
|
|
38079
38079
|
}
|
|
38080
38080
|
function me(K) {
|
|
38081
|
-
return
|
|
38081
|
+
return C(K) === s;
|
|
38082
38082
|
}
|
|
38083
38083
|
function J(K) {
|
|
38084
|
-
return
|
|
38084
|
+
return C(K) === r;
|
|
38085
38085
|
}
|
|
38086
38086
|
function fe(K) {
|
|
38087
|
-
return
|
|
38087
|
+
return C(K) === f;
|
|
38088
38088
|
}
|
|
38089
|
-
Pe.AsyncMode = k, Pe.ConcurrentMode = v, Pe.ContextConsumer =
|
|
38089
|
+
Pe.AsyncMode = k, Pe.ConcurrentMode = v, Pe.ContextConsumer = E, Pe.ContextProvider = I, Pe.Element = B, Pe.ForwardRef = x, Pe.Fragment = D, Pe.Lazy = P, Pe.Memo = _, Pe.Portal = Q, Pe.Profiler = H, Pe.StrictMode = V, Pe.Suspense = re, Pe.isAsyncMode = oe, Pe.isConcurrentMode = S, Pe.isContextConsumer = U, Pe.isContextProvider = Y, Pe.isElement = N, Pe.isForwardRef = W, Pe.isFragment = de, Pe.isLazy = le, Pe.isMemo = ie, Pe.isPortal = Ae, Pe.isProfiler = me, Pe.isStrictMode = J, Pe.isSuspense = fe, Pe.isValidElementType = w, Pe.typeOf = C;
|
|
38090
38090
|
}()), Pe;
|
|
38091
38091
|
}
|
|
38092
38092
|
var Ap;
|
|
@@ -38237,14 +38237,14 @@ function vQ() {
|
|
|
38237
38237
|
object: y("object"),
|
|
38238
38238
|
string: y("string"),
|
|
38239
38239
|
symbol: y("symbol"),
|
|
38240
|
-
any:
|
|
38240
|
+
any: T(),
|
|
38241
38241
|
arrayOf: w,
|
|
38242
|
-
element:
|
|
38242
|
+
element: C(),
|
|
38243
38243
|
elementType: k(),
|
|
38244
38244
|
instanceOf: v,
|
|
38245
38245
|
node: x(),
|
|
38246
38246
|
objectOf: I,
|
|
38247
|
-
oneOf:
|
|
38247
|
+
oneOf: E,
|
|
38248
38248
|
oneOfType: B,
|
|
38249
38249
|
shape: P,
|
|
38250
38250
|
exact: _
|
|
@@ -38293,7 +38293,7 @@ function vQ() {
|
|
|
38293
38293
|
}
|
|
38294
38294
|
return b(U);
|
|
38295
38295
|
}
|
|
38296
|
-
function
|
|
38296
|
+
function T() {
|
|
38297
38297
|
return b(a);
|
|
38298
38298
|
}
|
|
38299
38299
|
function w(S) {
|
|
@@ -38314,7 +38314,7 @@ function vQ() {
|
|
|
38314
38314
|
}
|
|
38315
38315
|
return b(U);
|
|
38316
38316
|
}
|
|
38317
|
-
function
|
|
38317
|
+
function C() {
|
|
38318
38318
|
function S(U, Y, N, W, de) {
|
|
38319
38319
|
var le = U[Y];
|
|
38320
38320
|
if (!o(le)) {
|
|
@@ -38346,7 +38346,7 @@ function vQ() {
|
|
|
38346
38346
|
}
|
|
38347
38347
|
return b(U);
|
|
38348
38348
|
}
|
|
38349
|
-
function
|
|
38349
|
+
function E(S) {
|
|
38350
38350
|
if (!Array.isArray(S))
|
|
38351
38351
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? s(
|
|
38352
38352
|
"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])."
|
|
@@ -39253,22 +39253,22 @@ function CQ() {
|
|
|
39253
39253
|
for (var y = 0; y < c[m].length; y++)
|
|
39254
39254
|
c[m][y] = 255 & o.buffer[y + u];
|
|
39255
39255
|
u += g;
|
|
39256
|
-
var
|
|
39257
|
-
d[m] = new Array(
|
|
39256
|
+
var T = i.getErrorCorrectPolynomial(b), w = new r(c[m], T.getLength() - 1), C = w.mod(T);
|
|
39257
|
+
d[m] = new Array(T.getLength() - 1);
|
|
39258
39258
|
for (var y = 0; y < d[m].length; y++) {
|
|
39259
|
-
var k = y +
|
|
39260
|
-
d[m][y] = k >= 0 ?
|
|
39259
|
+
var k = y + C.getLength() - d[m].length;
|
|
39260
|
+
d[m][y] = k >= 0 ? C.get(k) : 0;
|
|
39261
39261
|
}
|
|
39262
39262
|
}
|
|
39263
39263
|
for (var v = 0, y = 0; y < A.length; y++)
|
|
39264
39264
|
v += A[y].totalCount;
|
|
39265
|
-
for (var
|
|
39265
|
+
for (var E = new Array(v), I = 0, y = 0; y < l; y++)
|
|
39266
39266
|
for (var m = 0; m < A.length; m++)
|
|
39267
|
-
y < c[m].length && (
|
|
39267
|
+
y < c[m].length && (E[I++] = c[m][y]);
|
|
39268
39268
|
for (var y = 0; y < f; y++)
|
|
39269
39269
|
for (var m = 0; m < A.length; m++)
|
|
39270
|
-
y < d[m].length && (
|
|
39271
|
-
return
|
|
39270
|
+
y < d[m].length && (E[I++] = d[m][y]);
|
|
39271
|
+
return E;
|
|
39272
39272
|
}, Gl = s, Gl;
|
|
39273
39273
|
}
|
|
39274
39274
|
var ka = {}, xp;
|
|
@@ -39304,10 +39304,10 @@ function xQ() {
|
|
|
39304
39304
|
viewBoxSize: n.default.number.isRequired,
|
|
39305
39305
|
xmlns: n.default.string
|
|
39306
39306
|
}, A = (0, i.forwardRef)(function(u, l) {
|
|
39307
|
-
var f = u.bgColor, c = u.bgD, d = u.fgD, m = u.fgColor, g = u.size, b = u.title, y = u.viewBoxSize,
|
|
39307
|
+
var f = u.bgColor, c = u.bgD, d = u.fgD, m = u.fgColor, g = u.size, b = u.title, y = u.viewBoxSize, T = u.xmlns, w = T === void 0 ? "http://www.w3.org/2000/svg" : T, C = a(u, ["bgColor", "bgD", "fgD", "fgColor", "size", "title", "viewBoxSize", "xmlns"]);
|
|
39308
39308
|
return r.default.createElement(
|
|
39309
39309
|
"svg",
|
|
39310
|
-
e({},
|
|
39310
|
+
e({}, C, { height: g, ref: l, viewBox: "0 0 " + y + " " + y, width: g, xmlns: w }),
|
|
39311
39311
|
b ? r.default.createElement(
|
|
39312
39312
|
"title",
|
|
39313
39313
|
null,
|
|
@@ -39328,8 +39328,8 @@ function TQ() {
|
|
|
39328
39328
|
var e = Object.assign || function(g) {
|
|
39329
39329
|
for (var b = 1; b < arguments.length; b++) {
|
|
39330
39330
|
var y = arguments[b];
|
|
39331
|
-
for (var
|
|
39332
|
-
Object.prototype.hasOwnProperty.call(y,
|
|
39331
|
+
for (var T in y)
|
|
39332
|
+
Object.prototype.hasOwnProperty.call(y, T) && (g[T] = y[T]);
|
|
39333
39333
|
}
|
|
39334
39334
|
return g;
|
|
39335
39335
|
}, t = /* @__PURE__ */ xw(), n = f(t), i = Tw(), r = f(i), s = CQ(), a = f(s), o = ct, A = f(o), u = xQ(), l = f(u);
|
|
@@ -39338,8 +39338,8 @@ function TQ() {
|
|
|
39338
39338
|
}
|
|
39339
39339
|
function c(g, b) {
|
|
39340
39340
|
var y = {};
|
|
39341
|
-
for (var
|
|
39342
|
-
b.indexOf(
|
|
39341
|
+
for (var T in g)
|
|
39342
|
+
b.indexOf(T) >= 0 || Object.prototype.hasOwnProperty.call(g, T) && (y[T] = g[T]);
|
|
39343
39343
|
return y;
|
|
39344
39344
|
}
|
|
39345
39345
|
var d = {
|
|
@@ -39349,17 +39349,17 @@ function TQ() {
|
|
|
39349
39349
|
size: n.default.number,
|
|
39350
39350
|
value: n.default.string.isRequired
|
|
39351
39351
|
}, m = (0, o.forwardRef)(function(g, b) {
|
|
39352
|
-
var y = g.bgColor,
|
|
39352
|
+
var y = g.bgColor, T = y === void 0 ? "#FFFFFF" : y, w = g.fgColor, C = w === void 0 ? "#000000" : w, k = g.level, v = k === void 0 ? "L" : k, E = g.size, I = E === void 0 ? 256 : E, B = g.value, x = c(g, ["bgColor", "fgColor", "level", "size", "value"]), D = new a.default(-1, r.default[v]);
|
|
39353
39353
|
D.addData(B), D.make();
|
|
39354
39354
|
var P = D.modules;
|
|
39355
39355
|
return A.default.createElement(l.default, e({}, x, {
|
|
39356
|
-
bgColor:
|
|
39356
|
+
bgColor: T,
|
|
39357
39357
|
bgD: P.map(function(_, Q) {
|
|
39358
39358
|
return _.map(function(H, V) {
|
|
39359
39359
|
return H ? "" : "M " + V + " " + Q + " l 1 0 0 1 -1 0 Z";
|
|
39360
39360
|
}).join(" ");
|
|
39361
39361
|
}).join(" "),
|
|
39362
|
-
fgColor:
|
|
39362
|
+
fgColor: C,
|
|
39363
39363
|
fgD: P.map(function(_, Q) {
|
|
39364
39364
|
return _.map(function(H, V) {
|
|
39365
39365
|
return H ? "M " + V + " " + Q + " l 1 0 0 1 -1 0 Z" : "";
|
|
@@ -39638,59 +39638,59 @@ const NQ = /* @__PURE__ */ Xn(IQ), SQ = L.div`
|
|
|
39638
39638
|
}
|
|
39639
39639
|
],
|
|
39640
39640
|
[]
|
|
39641
|
-
), u = Ge(), { client: l } = Pt(), { user: f } = Tt(),
|
|
39641
|
+
), u = Ge(), { client: l } = Pt(), { user: f, config: c } = Tt(), d = De((w) => Bc(w)), m = async (w) => {
|
|
39642
39642
|
try {
|
|
39643
|
-
let
|
|
39644
|
-
|
|
39645
|
-
const
|
|
39646
|
-
|
|
39647
|
-
Wt({ jid:
|
|
39643
|
+
let C = new FormData();
|
|
39644
|
+
C.append("files", w);
|
|
39645
|
+
const v = (await Sd(C))?.data?.results?.[0]?.location;
|
|
39646
|
+
v && (l.setRoomImageStanza(d.jid, v, "icon", "none"), u(
|
|
39647
|
+
Wt({ jid: d.jid, updates: { icon: v } })
|
|
39648
39648
|
));
|
|
39649
|
-
} catch (
|
|
39650
|
-
console.error("File upload failed or location is missing:",
|
|
39649
|
+
} catch (C) {
|
|
39650
|
+
console.error("File upload failed or location is missing:", C);
|
|
39651
39651
|
}
|
|
39652
|
-
},
|
|
39652
|
+
}, g = async (w) => {
|
|
39653
39653
|
try {
|
|
39654
39654
|
await u9({
|
|
39655
|
-
roomId:
|
|
39656
|
-
members: [
|
|
39655
|
+
roomId: d.jid.split("@")[0],
|
|
39656
|
+
members: [w]
|
|
39657
39657
|
}), u(
|
|
39658
39658
|
Wt({
|
|
39659
|
-
jid:
|
|
39659
|
+
jid: d.jid,
|
|
39660
39660
|
updates: {
|
|
39661
|
-
members:
|
|
39662
|
-
(
|
|
39661
|
+
members: d.members.filter(
|
|
39662
|
+
(C) => C.xmppUsername !== w
|
|
39663
39663
|
)
|
|
39664
39664
|
}
|
|
39665
39665
|
})
|
|
39666
39666
|
), o({
|
|
39667
39667
|
id: Date.now().toString(),
|
|
39668
39668
|
title: "Success",
|
|
39669
|
-
message: `${
|
|
39669
|
+
message: `${w} has been removed from the room.`,
|
|
39670
39670
|
type: "success"
|
|
39671
39671
|
});
|
|
39672
|
-
} catch (
|
|
39673
|
-
console.error("Failed to delete user:",
|
|
39672
|
+
} catch (C) {
|
|
39673
|
+
console.error("Failed to delete user:", C), o({
|
|
39674
39674
|
id: Date.now().toString(),
|
|
39675
39675
|
title: "Error",
|
|
39676
39676
|
message: "Failed to delete user.",
|
|
39677
39677
|
type: "error"
|
|
39678
39678
|
});
|
|
39679
39679
|
}
|
|
39680
|
-
},
|
|
39681
|
-
l.setRoomImageStanza(
|
|
39682
|
-
},
|
|
39680
|
+
}, b = async () => {
|
|
39681
|
+
l.setRoomImageStanza(d.jid, null, "icon", "none"), u(Wt({ jid: d.jid, updates: { icon: null } }));
|
|
39682
|
+
}, y = (w) => {
|
|
39683
39683
|
u(pt(Le.PROFILE)), u(
|
|
39684
39684
|
Ec({
|
|
39685
|
-
id:
|
|
39686
|
-
firstName:
|
|
39687
|
-
lastName:
|
|
39688
|
-
name: `${
|
|
39689
|
-
userJID:
|
|
39685
|
+
id: w._id,
|
|
39686
|
+
firstName: w.firstName,
|
|
39687
|
+
lastName: w.lastName,
|
|
39688
|
+
name: `${w.firstName} ${w.lastName}`,
|
|
39689
|
+
userJID: w?.xmppUsername
|
|
39690
39690
|
})
|
|
39691
39691
|
);
|
|
39692
|
-
},
|
|
39693
|
-
() => (
|
|
39692
|
+
}, T = Ve(
|
|
39693
|
+
() => (w) => [
|
|
39694
39694
|
{
|
|
39695
39695
|
label: "Appoint as an admin",
|
|
39696
39696
|
icon: null,
|
|
@@ -39708,22 +39708,22 @@ const NQ = /* @__PURE__ */ Xn(IQ), SQ = L.div`
|
|
|
39708
39708
|
{
|
|
39709
39709
|
label: "Delete",
|
|
39710
39710
|
icon: null,
|
|
39711
|
-
onClick: (
|
|
39712
|
-
|
|
39711
|
+
onClick: (C) => {
|
|
39712
|
+
C?.preventDefault(), g(w);
|
|
39713
39713
|
}
|
|
39714
39714
|
}
|
|
39715
39715
|
],
|
|
39716
39716
|
[]
|
|
39717
39717
|
);
|
|
39718
|
-
return
|
|
39718
|
+
return d ? /* @__PURE__ */ F(mn, { style: { position: "relative" }, children: [
|
|
39719
39719
|
/* @__PURE__ */ p(
|
|
39720
39720
|
Ut,
|
|
39721
39721
|
{
|
|
39722
39722
|
handleCloseModal: e,
|
|
39723
39723
|
headerTitle: "Chat Profile",
|
|
39724
39724
|
rightMenu: /* @__PURE__ */ F(We, { children: [
|
|
39725
|
-
|
|
39726
|
-
|
|
39725
|
+
d?.type === "public" && /* @__PURE__ */ p(ke, { EndIcon: /* @__PURE__ */ p(yT, {}), onClick: () => r(!0) }),
|
|
39726
|
+
d.role === "moderator" && d.type !== "private" && /* @__PURE__ */ p(
|
|
39727
39727
|
Ns,
|
|
39728
39728
|
{
|
|
39729
39729
|
position: "left",
|
|
@@ -39745,35 +39745,35 @@ const NQ = /* @__PURE__ */ Xn(IQ), SQ = L.div`
|
|
|
39745
39745
|
/* @__PURE__ */ p(
|
|
39746
39746
|
Ni,
|
|
39747
39747
|
{
|
|
39748
|
-
name:
|
|
39749
|
-
icon:
|
|
39748
|
+
name: d.name,
|
|
39749
|
+
icon: d.icon,
|
|
39750
39750
|
upload: {
|
|
39751
|
-
onUpload:
|
|
39752
|
-
active:
|
|
39751
|
+
onUpload: m,
|
|
39752
|
+
active: d?.role !== "participant"
|
|
39753
39753
|
},
|
|
39754
|
-
remove: { enabled: !0, onRemoveClick:
|
|
39755
|
-
role:
|
|
39754
|
+
remove: { enabled: !0, onRemoveClick: b },
|
|
39755
|
+
role: d?.role,
|
|
39756
39756
|
size: 128
|
|
39757
39757
|
}
|
|
39758
39758
|
),
|
|
39759
39759
|
/* @__PURE__ */ F(Cy, { children: [
|
|
39760
|
-
/* @__PURE__ */ p(xy, { children:
|
|
39760
|
+
/* @__PURE__ */ p(xy, { children: d.name }),
|
|
39761
39761
|
/* @__PURE__ */ F(WM, { children: [
|
|
39762
|
-
|
|
39762
|
+
d.usersCnt,
|
|
39763
39763
|
" ",
|
|
39764
|
-
|
|
39764
|
+
d.usersCnt > 1 ? "members" : "member"
|
|
39765
39765
|
] })
|
|
39766
39766
|
] }),
|
|
39767
|
-
|
|
39768
|
-
/* @__PURE__ */ F(xn, { children: [
|
|
39767
|
+
d.role === "moderator" && d.type === "group" && /* @__PURE__ */ p(We, { children: /* @__PURE__ */ p(_Q, {}) }),
|
|
39768
|
+
!c?.disableChatInfo?.disableDescription && /* @__PURE__ */ F(xn, { children: [
|
|
39769
39769
|
/* @__PURE__ */ p(zi, { children: "Description" }),
|
|
39770
|
-
/* @__PURE__ */ p(gi, { children:
|
|
39770
|
+
/* @__PURE__ */ p(gi, { children: d?.description })
|
|
39771
39771
|
] }),
|
|
39772
|
-
/* @__PURE__ */ F(xn, { children: [
|
|
39772
|
+
!c?.disableChatInfo?.disableType && /* @__PURE__ */ F(xn, { children: [
|
|
39773
39773
|
/* @__PURE__ */ p(zi, { children: "Chat type" }),
|
|
39774
|
-
/* @__PURE__ */ p(gi, { children:
|
|
39774
|
+
/* @__PURE__ */ p(gi, { children: d.type })
|
|
39775
39775
|
] }),
|
|
39776
|
-
/* @__PURE__ */ p(xn, { style: { padding: "8px 16px" }, children: t ? /* @__PURE__ */ p(zt, {}) :
|
|
39776
|
+
!c?.disableChatInfo?.disableMembers && /* @__PURE__ */ p(xn, { style: { padding: "8px 16px" }, children: t ? /* @__PURE__ */ p(zt, {}) : d?.members?.map((w, C) => /* @__PURE__ */ F(
|
|
39777
39777
|
"div",
|
|
39778
39778
|
{
|
|
39779
39779
|
style: {
|
|
@@ -39798,12 +39798,12 @@ const NQ = /* @__PURE__ */ Xn(IQ), SQ = L.div`
|
|
|
39798
39798
|
"div",
|
|
39799
39799
|
{
|
|
39800
39800
|
style: { display: "flex", gap: "8px", cursor: "pointer" },
|
|
39801
|
-
onClick: () =>
|
|
39801
|
+
onClick: () => y(w),
|
|
39802
39802
|
children: [
|
|
39803
39803
|
/* @__PURE__ */ p(
|
|
39804
39804
|
Ni,
|
|
39805
39805
|
{
|
|
39806
|
-
name: `${
|
|
39806
|
+
name: `${w.firstName} ${w.lastName}`,
|
|
39807
39807
|
size: 40
|
|
39808
39808
|
}
|
|
39809
39809
|
),
|
|
@@ -39819,39 +39819,39 @@ const NQ = /* @__PURE__ */ Xn(IQ), SQ = L.div`
|
|
|
39819
39819
|
},
|
|
39820
39820
|
children: [
|
|
39821
39821
|
/* @__PURE__ */ F(gi, { style: { fontSize: "16px", fontWeight: 600 }, children: [
|
|
39822
|
-
|
|
39822
|
+
w.firstName,
|
|
39823
39823
|
" ",
|
|
39824
|
-
|
|
39824
|
+
w.lastName
|
|
39825
39825
|
] }),
|
|
39826
|
-
|
|
39826
|
+
w.last_active && /* @__PURE__ */ p(zi, { children: new Date(w.last_active * 1e3).toLocaleString() })
|
|
39827
39827
|
]
|
|
39828
39828
|
}
|
|
39829
39829
|
)
|
|
39830
39830
|
]
|
|
39831
39831
|
}
|
|
39832
39832
|
),
|
|
39833
|
-
|
|
39833
|
+
w.role && w.role !== "none" && /* @__PURE__ */ p(
|
|
39834
39834
|
"div",
|
|
39835
39835
|
{
|
|
39836
39836
|
style: {
|
|
39837
|
-
backgroundColor:
|
|
39838
|
-
color:
|
|
39837
|
+
backgroundColor: w.ban_status !== "banned" ? "#F3F6FC" : "#FFEBEE",
|
|
39838
|
+
color: w.ban_status !== "banned" ? "#0052CD" : "#F44336",
|
|
39839
39839
|
padding: "5px 8px",
|
|
39840
39840
|
borderRadius: "16px",
|
|
39841
39841
|
fontSize: "12px"
|
|
39842
39842
|
},
|
|
39843
|
-
children:
|
|
39843
|
+
children: w.role
|
|
39844
39844
|
}
|
|
39845
39845
|
),
|
|
39846
|
-
f.xmppUsername !==
|
|
39846
|
+
f.xmppUsername !== w.xmppUsername && d.role === "moderator" && d.type !== "private" && /* @__PURE__ */ p(
|
|
39847
39847
|
Ns,
|
|
39848
39848
|
{
|
|
39849
|
-
options:
|
|
39849
|
+
options: T(w.xmppUsername),
|
|
39850
39850
|
openButton: /* @__PURE__ */ p(
|
|
39851
39851
|
ke,
|
|
39852
39852
|
{
|
|
39853
|
-
onClick: (
|
|
39854
|
-
|
|
39853
|
+
onClick: (k) => {
|
|
39854
|
+
k.preventDefault();
|
|
39855
39855
|
},
|
|
39856
39856
|
children: "More Options"
|
|
39857
39857
|
}
|
|
@@ -39862,10 +39862,10 @@ const NQ = /* @__PURE__ */ Xn(IQ), SQ = L.div`
|
|
|
39862
39862
|
]
|
|
39863
39863
|
}
|
|
39864
39864
|
),
|
|
39865
|
-
|
|
39865
|
+
C < d?.members.length - 1 && /* @__PURE__ */ p(Ty, {})
|
|
39866
39866
|
]
|
|
39867
39867
|
},
|
|
39868
|
-
|
|
39868
|
+
w.xmppUsername
|
|
39869
39869
|
)) })
|
|
39870
39870
|
] }),
|
|
39871
39871
|
/* @__PURE__ */ p(
|
|
@@ -39873,7 +39873,7 @@ const NQ = /* @__PURE__ */ Xn(IQ), SQ = L.div`
|
|
|
39873
39873
|
{
|
|
39874
39874
|
isVisible: i,
|
|
39875
39875
|
setVisible: r,
|
|
39876
|
-
chatJid:
|
|
39876
|
+
chatJid: d.jid
|
|
39877
39877
|
}
|
|
39878
39878
|
),
|
|
39879
39879
|
/* @__PURE__ */ p(
|
|
@@ -40737,25 +40737,25 @@ const Sp = L.div`
|
|
|
40737
40737
|
u(!0);
|
|
40738
40738
|
}, []), g = async (k, v) => {
|
|
40739
40739
|
try {
|
|
40740
|
-
const
|
|
40740
|
+
const E = uA(
|
|
40741
40741
|
k,
|
|
40742
40742
|
r?.xmppSettings?.conference,
|
|
40743
40743
|
v
|
|
40744
40744
|
);
|
|
40745
40745
|
t(
|
|
40746
40746
|
eA({
|
|
40747
|
-
room:
|
|
40747
|
+
room: E,
|
|
40748
40748
|
xmpp: n
|
|
40749
40749
|
})
|
|
40750
|
-
), t(Et({ roomJID:
|
|
40750
|
+
), t(Et({ roomJID: E.jid })), i({
|
|
40751
40751
|
id: Date.now().toString(),
|
|
40752
40752
|
title: "Success!",
|
|
40753
40753
|
message: "Room created succusfully!",
|
|
40754
40754
|
type: "success",
|
|
40755
40755
|
duration: 3e3
|
|
40756
40756
|
});
|
|
40757
|
-
} catch (
|
|
40758
|
-
console.error("Error handling room creation:",
|
|
40757
|
+
} catch (E) {
|
|
40758
|
+
console.error("Error handling room creation:", E);
|
|
40759
40759
|
}
|
|
40760
40760
|
}, b = ce(async () => {
|
|
40761
40761
|
i({
|
|
@@ -40783,7 +40783,7 @@ const Sp = L.div`
|
|
|
40783
40783
|
), k && (await n.inviteRoomRequestStanza(v, k), await n.getRoomsStanza());
|
|
40784
40784
|
}
|
|
40785
40785
|
t(pt());
|
|
40786
|
-
}, [a]), y = a ?? s,
|
|
40786
|
+
}, [a]), y = a ?? s, T = () => {
|
|
40787
40787
|
if (o)
|
|
40788
40788
|
return Dp.find((k) => k.id === o);
|
|
40789
40789
|
}, w = Ve(
|
|
@@ -40823,7 +40823,7 @@ const Sp = L.div`
|
|
|
40823
40823
|
placeholder: "Select your language",
|
|
40824
40824
|
onSelect: d,
|
|
40825
40825
|
accentColor: r?.colors?.primary,
|
|
40826
|
-
selectedValue:
|
|
40826
|
+
selectedValue: T()
|
|
40827
40827
|
}
|
|
40828
40828
|
) }),
|
|
40829
40829
|
/* @__PURE__ */ F(xn, { children: [
|
|
@@ -40852,7 +40852,7 @@ const Sp = L.div`
|
|
|
40852
40852
|
] })
|
|
40853
40853
|
] }),
|
|
40854
40854
|
[y]
|
|
40855
|
-
),
|
|
40855
|
+
), C = Ve(
|
|
40856
40856
|
() => /* @__PURE__ */ p(
|
|
40857
40857
|
fH,
|
|
40858
40858
|
{
|
|
@@ -40863,7 +40863,7 @@ const Sp = L.div`
|
|
|
40863
40863
|
),
|
|
40864
40864
|
[y]
|
|
40865
40865
|
);
|
|
40866
|
-
return /* @__PURE__ */ p(mn, { children: A ?
|
|
40866
|
+
return /* @__PURE__ */ p(mn, { children: A ? C : w });
|
|
40867
40867
|
}, dH = ({
|
|
40868
40868
|
handleCloseModal: e
|
|
40869
40869
|
}) => {
|
|
@@ -41340,18 +41340,18 @@ const Sp = L.div`
|
|
|
41340
41340
|
u(v.target.value);
|
|
41341
41341
|
},
|
|
41342
41342
|
[]
|
|
41343
|
-
), y = ce((v) => (v?.messages?.[v?.messages.length - 1]?.id ?? "").replace(/\D+/g, "").padEnd(16, "0"), []),
|
|
41344
|
-
const v = A.toLowerCase(),
|
|
41345
|
-
if (!
|
|
41343
|
+
), y = ce((v) => (v?.messages?.[v?.messages.length - 1]?.id ?? "").replace(/\D+/g, "").padEnd(16, "0"), []), T = Ve(() => {
|
|
41344
|
+
const v = A.toLowerCase(), E = /* @__PURE__ */ new Map();
|
|
41345
|
+
if (!E.has(v)) {
|
|
41346
41346
|
const I = e.filter(
|
|
41347
41347
|
(B) => B.name?.toLowerCase().includes(v)
|
|
41348
41348
|
).sort((B, x) => {
|
|
41349
41349
|
const D = y(B) ? Number(y(B)) : null, P = y(x) ? Number(y(x)) : null, _ = B.createdAt ? new Date(B.createdAt).getTime() * 1e3 : null, Q = x.createdAt ? new Date(x.createdAt).getTime() * 1e3 : null, H = D !== null ? D : _, V = P !== null ? P : Q;
|
|
41350
41350
|
return H === null && V === null ? 0 : H === null ? 1 : V === null ? -1 : V - H;
|
|
41351
41351
|
});
|
|
41352
|
-
|
|
41352
|
+
E.set(v, I);
|
|
41353
41353
|
}
|
|
41354
|
-
return
|
|
41354
|
+
return E.get(v) || [];
|
|
41355
41355
|
}, [e, A]);
|
|
41356
41356
|
Ce(() => {
|
|
41357
41357
|
if (t)
|
|
@@ -41362,7 +41362,7 @@ const Sp = L.div`
|
|
|
41362
41362
|
const w = ce(
|
|
41363
41363
|
(v) => !i && c === v.jid,
|
|
41364
41364
|
[c]
|
|
41365
|
-
),
|
|
41365
|
+
), C = ce(async () => {
|
|
41366
41366
|
r && (await r.close(), s(null)), l(Tc()), l(Zo());
|
|
41367
41367
|
}, []), k = Ve(
|
|
41368
41368
|
() => [
|
|
@@ -41383,7 +41383,7 @@ const Sp = L.div`
|
|
|
41383
41383
|
{
|
|
41384
41384
|
label: "Logout",
|
|
41385
41385
|
icon: null,
|
|
41386
|
-
onClick: () =>
|
|
41386
|
+
onClick: () => C()
|
|
41387
41387
|
}
|
|
41388
41388
|
],
|
|
41389
41389
|
[]
|
|
@@ -41402,14 +41402,14 @@ const Sp = L.div`
|
|
|
41402
41402
|
flex: i ? 1 : "0 1 432px"
|
|
41403
41403
|
},
|
|
41404
41404
|
children: (a || !t) && /* @__PURE__ */ F(lQ, { children: [
|
|
41405
|
-
/* @__PURE__ */ F(uQ, { children: [
|
|
41406
|
-
!f?.disableRoomMenu && /* @__PURE__ */ p(
|
|
41405
|
+
!f?.chatHeaderSettings?.hide && /* @__PURE__ */ F(uQ, { children: [
|
|
41406
|
+
!f?.disableRoomMenu && !f?.chatHeaderSettings?.disableMenu && /* @__PURE__ */ p(
|
|
41407
41407
|
Ns,
|
|
41408
41408
|
{
|
|
41409
41409
|
options: k
|
|
41410
41410
|
}
|
|
41411
41411
|
),
|
|
41412
|
-
/* @__PURE__ */ p(
|
|
41412
|
+
!f?.chatHeaderSettings?.hideSearch && /* @__PURE__ */ p(
|
|
41413
41413
|
Ey,
|
|
41414
41414
|
{
|
|
41415
41415
|
icon: /* @__PURE__ */ p(pv, { height: "20px" }),
|
|
@@ -41418,25 +41418,25 @@ const Sp = L.div`
|
|
|
41418
41418
|
placeholder: "Search..."
|
|
41419
41419
|
}
|
|
41420
41420
|
),
|
|
41421
|
-
/* @__PURE__ */ p(ww, {})
|
|
41421
|
+
!f?.chatHeaderSettings?.disableCreate && /* @__PURE__ */ p(ww, {})
|
|
41422
41422
|
] }),
|
|
41423
41423
|
/* @__PURE__ */ p(
|
|
41424
41424
|
"div",
|
|
41425
41425
|
{
|
|
41426
41426
|
style: { flexGrow: 1, overflowY: "auto", padding: "16px 0px" },
|
|
41427
|
-
children:
|
|
41427
|
+
children: T.map((v, E) => /* @__PURE__ */ F(ct.Fragment, { children: [
|
|
41428
41428
|
/* @__PURE__ */ p(
|
|
41429
41429
|
BH,
|
|
41430
41430
|
{
|
|
41431
41431
|
chat: v,
|
|
41432
|
-
index:
|
|
41432
|
+
index: E,
|
|
41433
41433
|
isChatActive: w(v),
|
|
41434
41434
|
performClick: g,
|
|
41435
41435
|
config: f
|
|
41436
41436
|
}
|
|
41437
41437
|
),
|
|
41438
|
-
|
|
41439
|
-
] }, `${v.id}-${
|
|
41438
|
+
E < T.length - 1 && /* @__PURE__ */ p(kw, {})
|
|
41439
|
+
] }, `${v.id}-${E}`))
|
|
41440
41440
|
}
|
|
41441
41441
|
)
|
|
41442
41442
|
] })
|
|
@@ -41526,7 +41526,8 @@ const MH = ({
|
|
|
41526
41526
|
/* @__PURE__ */ F(
|
|
41527
41527
|
hx,
|
|
41528
41528
|
{
|
|
41529
|
-
onClick: () => n(pt(Le.CHAT_PROFILE)),
|
|
41529
|
+
onClick: o?.disableChatInfo?.disableHeader ? void 0 : () => n(pt(Le.CHAT_PROFILE)),
|
|
41530
|
+
style: o?.disableChatInfo?.disableHeader ? { cursor: "default" } : void 0,
|
|
41530
41531
|
children: [
|
|
41531
41532
|
/* @__PURE__ */ p("div", { children: /* @__PURE__ */ p(
|
|
41532
41533
|
Ni,
|
|
@@ -41551,7 +41552,7 @@ const MH = ({
|
|
|
41551
41552
|
}
|
|
41552
41553
|
)
|
|
41553
41554
|
] }),
|
|
41554
|
-
/* @__PURE__ */ p("div", { style: { display: "flex", gap: 16 }, children: /* @__PURE__ */ p(
|
|
41555
|
+
!o?.disableChatInfo?.disableChatHeaderMenu && /* @__PURE__ */ p("div", { style: { display: "flex", gap: 16 }, children: /* @__PURE__ */ p(
|
|
41555
41556
|
RH,
|
|
41556
41557
|
{
|
|
41557
41558
|
handleLeaveClick: l,
|
|
@@ -41755,54 +41756,54 @@ const XH = (e) => {
|
|
|
41755
41756
|
};
|
|
41756
41757
|
}, Rp = 3e5, _w = () => {
|
|
41757
41758
|
const { config: e, langSource: t } = Tt(), { client: n } = Pt(), i = Ge(), { handleMessageSent: r, handleMessageFailed: s } = XH(e), { user: a, editAction: o, activeRoomJID: A, rooms: u } = De(
|
|
41758
|
-
(
|
|
41759
|
-
activeRoomJID:
|
|
41760
|
-
user:
|
|
41761
|
-
editAction:
|
|
41762
|
-
config:
|
|
41763
|
-
rooms:
|
|
41759
|
+
(E) => ({
|
|
41760
|
+
activeRoomJID: E.rooms.activeRoomJID,
|
|
41761
|
+
user: E.chatSettingStore.user,
|
|
41762
|
+
editAction: E.rooms.editAction,
|
|
41763
|
+
config: E.chatSettingStore.config,
|
|
41764
|
+
rooms: E.rooms.rooms
|
|
41764
41765
|
})
|
|
41765
41766
|
), l = Ne(/* @__PURE__ */ new Map()), f = Ne(/* @__PURE__ */ new Set()), [c, d] = ae(/* @__PURE__ */ new Set()), m = ce(() => {
|
|
41766
|
-
const
|
|
41767
|
-
return
|
|
41768
|
-
enabled:
|
|
41767
|
+
const E = e?.blockMessageSendingWhenProcessing;
|
|
41768
|
+
return E ? typeof E == "boolean" ? {
|
|
41769
|
+
enabled: E,
|
|
41769
41770
|
timeout: Rp,
|
|
41770
41771
|
onTimeout: () => {
|
|
41771
41772
|
}
|
|
41772
41773
|
} : {
|
|
41773
|
-
enabled:
|
|
41774
|
-
timeout:
|
|
41775
|
-
onTimeout:
|
|
41774
|
+
enabled: E.enabled,
|
|
41775
|
+
timeout: E.timeout ?? Rp,
|
|
41776
|
+
onTimeout: E.onTimeout ?? (() => {
|
|
41776
41777
|
})
|
|
41777
41778
|
} : null;
|
|
41778
41779
|
}, [e?.blockMessageSendingWhenProcessing]), g = ce(
|
|
41779
|
-
(
|
|
41780
|
+
(E, I) => {
|
|
41780
41781
|
d((B) => {
|
|
41781
41782
|
const x = new Set(B);
|
|
41782
|
-
return I ? x.add(
|
|
41783
|
+
return I ? x.add(E) : x.delete(E), x;
|
|
41783
41784
|
});
|
|
41784
41785
|
},
|
|
41785
41786
|
[]
|
|
41786
41787
|
), b = ce(
|
|
41787
|
-
(
|
|
41788
|
-
const I = l.current.get(
|
|
41789
|
-
I && (clearTimeout(I), l.current.delete(
|
|
41788
|
+
(E) => {
|
|
41789
|
+
const I = l.current.get(E);
|
|
41790
|
+
I && (clearTimeout(I), l.current.delete(E), g(E, !1));
|
|
41790
41791
|
},
|
|
41791
41792
|
[g]
|
|
41792
41793
|
), y = ce(
|
|
41793
|
-
(
|
|
41794
|
+
(E) => {
|
|
41794
41795
|
const I = m();
|
|
41795
41796
|
if (!I?.enabled) return;
|
|
41796
|
-
b(
|
|
41797
|
+
b(E);
|
|
41797
41798
|
const B = setTimeout(() => {
|
|
41798
|
-
I.onTimeout(
|
|
41799
|
+
I.onTimeout(E), l.current.delete(E), g(E, !1);
|
|
41799
41800
|
}, I.timeout);
|
|
41800
|
-
g(
|
|
41801
|
+
g(E, !0), l.current.set(E, B);
|
|
41801
41802
|
},
|
|
41802
41803
|
[m, b, g]
|
|
41803
41804
|
);
|
|
41804
41805
|
Ce(() => () => {
|
|
41805
|
-
l.current.forEach((
|
|
41806
|
+
l.current.forEach((E) => clearTimeout(E)), l.current.clear(), f.current.clear();
|
|
41806
41807
|
}, []), Ce(() => {
|
|
41807
41808
|
m()?.enabled || (l.current.forEach((I) => clearTimeout(I)), l.current.clear(), f.current.clear(), d(/* @__PURE__ */ new Set()));
|
|
41808
41809
|
}, [m]), Ce(() => {
|
|
@@ -41820,17 +41821,17 @@ const XH = (e) => {
|
|
|
41820
41821
|
b,
|
|
41821
41822
|
g
|
|
41822
41823
|
]);
|
|
41823
|
-
const
|
|
41824
|
-
(
|
|
41824
|
+
const T = ce(
|
|
41825
|
+
(E) => m()?.enabled ? f.current.has(E) ? !0 : c.has(E) : !1,
|
|
41825
41826
|
[m, c]
|
|
41826
41827
|
), w = ce(
|
|
41827
|
-
(
|
|
41828
|
-
I ? f.current.add(
|
|
41828
|
+
(E, I) => {
|
|
41829
|
+
I ? f.current.add(E) : f.current.delete(E);
|
|
41829
41830
|
},
|
|
41830
41831
|
[]
|
|
41831
|
-
),
|
|
41832
|
-
async (
|
|
41833
|
-
if (
|
|
41832
|
+
), C = ce(
|
|
41833
|
+
async (E, I, B, x, D) => {
|
|
41834
|
+
if (T(I)) {
|
|
41834
41835
|
console.log(
|
|
41835
41836
|
"Cannot send message: Message sending is currently blocked"
|
|
41836
41837
|
);
|
|
@@ -41841,9 +41842,9 @@ const XH = (e) => {
|
|
|
41841
41842
|
n?.editMessageStanza(
|
|
41842
41843
|
o.roomJid,
|
|
41843
41844
|
o.messageId,
|
|
41844
|
-
|
|
41845
|
+
E
|
|
41845
41846
|
), i(Vn({ isEdit: !1 })), await r({
|
|
41846
|
-
message:
|
|
41847
|
+
message: E,
|
|
41847
41848
|
roomJID: I,
|
|
41848
41849
|
user: a,
|
|
41849
41850
|
messageType: "text",
|
|
@@ -41856,7 +41857,7 @@ const XH = (e) => {
|
|
|
41856
41857
|
});
|
|
41857
41858
|
} catch (P) {
|
|
41858
41859
|
console.error("Error editing message:", P), s({
|
|
41859
|
-
message:
|
|
41860
|
+
message: E,
|
|
41860
41861
|
roomJID: I,
|
|
41861
41862
|
error: P,
|
|
41862
41863
|
messageType: "text"
|
|
@@ -41877,7 +41878,7 @@ const XH = (e) => {
|
|
|
41877
41878
|
name: a.firstName + " " + a.lastName
|
|
41878
41879
|
},
|
|
41879
41880
|
date: (/* @__PURE__ */ new Date()).toISOString(),
|
|
41880
|
-
body:
|
|
41881
|
+
body: E,
|
|
41881
41882
|
roomJid: I,
|
|
41882
41883
|
pending: !0,
|
|
41883
41884
|
xmppFrom: `${I}/${a.xmppUsername}`,
|
|
@@ -41893,7 +41894,7 @@ const XH = (e) => {
|
|
|
41893
41894
|
name: a.firstName + " " + a.lastName
|
|
41894
41895
|
},
|
|
41895
41896
|
date: (/* @__PURE__ */ new Date()).toISOString(),
|
|
41896
|
-
body:
|
|
41897
|
+
body: E,
|
|
41897
41898
|
roomJid: I,
|
|
41898
41899
|
xmppFrom: `${I}/${a.xmppUsername}`,
|
|
41899
41900
|
isReply: B || !1,
|
|
@@ -41907,7 +41908,7 @@ const XH = (e) => {
|
|
|
41907
41908
|
a.lastName,
|
|
41908
41909
|
"",
|
|
41909
41910
|
a.walletAddress,
|
|
41910
|
-
|
|
41911
|
+
E,
|
|
41911
41912
|
"",
|
|
41912
41913
|
B || !1,
|
|
41913
41914
|
x || !1,
|
|
@@ -41915,7 +41916,7 @@ const XH = (e) => {
|
|
|
41915
41916
|
t || "en",
|
|
41916
41917
|
P
|
|
41917
41918
|
), await r({
|
|
41918
|
-
message:
|
|
41919
|
+
message: E,
|
|
41919
41920
|
roomJID: I,
|
|
41920
41921
|
user: a,
|
|
41921
41922
|
messageType: "text",
|
|
@@ -41941,7 +41942,7 @@ const XH = (e) => {
|
|
|
41941
41942
|
name: a.firstName + " " + a.lastName
|
|
41942
41943
|
},
|
|
41943
41944
|
date: (/* @__PURE__ */ new Date()).toISOString(),
|
|
41944
|
-
body:
|
|
41945
|
+
body: E,
|
|
41945
41946
|
roomJid: I,
|
|
41946
41947
|
xmppFrom: `${I}/${a.xmppUsername}`,
|
|
41947
41948
|
pending: !0
|
|
@@ -41956,7 +41957,7 @@ const XH = (e) => {
|
|
|
41956
41957
|
name: a.firstName + " " + a.lastName
|
|
41957
41958
|
},
|
|
41958
41959
|
date: (/* @__PURE__ */ new Date()).toISOString(),
|
|
41959
|
-
body:
|
|
41960
|
+
body: E,
|
|
41960
41961
|
roomJid: I,
|
|
41961
41962
|
xmppFrom: `${I}/${a.xmppUsername}`,
|
|
41962
41963
|
isReply: B || !1,
|
|
@@ -41969,14 +41970,14 @@ const XH = (e) => {
|
|
|
41969
41970
|
a.lastName,
|
|
41970
41971
|
"",
|
|
41971
41972
|
a.walletAddress,
|
|
41972
|
-
|
|
41973
|
+
E,
|
|
41973
41974
|
"",
|
|
41974
41975
|
B || !1,
|
|
41975
41976
|
x || !1,
|
|
41976
41977
|
D || "",
|
|
41977
41978
|
P
|
|
41978
41979
|
), await r({
|
|
41979
|
-
message:
|
|
41980
|
+
message: E,
|
|
41980
41981
|
roomJID: I,
|
|
41981
41982
|
user: a,
|
|
41982
41983
|
messageType: "text",
|
|
@@ -41992,7 +41993,7 @@ const XH = (e) => {
|
|
|
41992
41993
|
}
|
|
41993
41994
|
} catch (P) {
|
|
41994
41995
|
console.error("Error sending message:", P), s({
|
|
41995
|
-
message:
|
|
41996
|
+
message: E,
|
|
41996
41997
|
roomJID: I,
|
|
41997
41998
|
error: P,
|
|
41998
41999
|
messageType: "text"
|
|
@@ -42008,19 +42009,19 @@ const XH = (e) => {
|
|
|
42008
42009
|
n,
|
|
42009
42010
|
i,
|
|
42010
42011
|
t,
|
|
42011
|
-
|
|
42012
|
+
T,
|
|
42012
42013
|
y,
|
|
42013
42014
|
w
|
|
42014
42015
|
]
|
|
42015
42016
|
), k = ce(
|
|
42016
|
-
async (
|
|
42017
|
+
async (E) => {
|
|
42017
42018
|
try {
|
|
42018
42019
|
n?.editMessageStanza(
|
|
42019
42020
|
o.roomJid,
|
|
42020
42021
|
o.messageId,
|
|
42021
|
-
|
|
42022
|
+
E
|
|
42022
42023
|
), i(Vn({ isEdit: !1 })), await r({
|
|
42023
|
-
message:
|
|
42024
|
+
message: E,
|
|
42024
42025
|
roomJID: o.roomJid,
|
|
42025
42026
|
user: a,
|
|
42026
42027
|
messageType: "text",
|
|
@@ -42031,7 +42032,7 @@ const XH = (e) => {
|
|
|
42031
42032
|
});
|
|
42032
42033
|
} catch (I) {
|
|
42033
42034
|
console.error("Error editing message:", I), s({
|
|
42034
|
-
message:
|
|
42035
|
+
message: E,
|
|
42035
42036
|
roomJID: o.roomJid,
|
|
42036
42037
|
error: I,
|
|
42037
42038
|
messageType: "text"
|
|
@@ -42040,8 +42041,8 @@ const XH = (e) => {
|
|
|
42040
42041
|
},
|
|
42041
42042
|
[o, n, i, a, r, s]
|
|
42042
42043
|
), v = ce(
|
|
42043
|
-
async (
|
|
42044
|
-
if (
|
|
42044
|
+
async (E, I, B, x = !1, D = !1, P = "") => {
|
|
42045
|
+
if (T(B)) {
|
|
42045
42046
|
console.log("Cannot send media: Message sending is currently blocked");
|
|
42046
42047
|
return;
|
|
42047
42048
|
}
|
|
@@ -42066,12 +42067,12 @@ const XH = (e) => {
|
|
|
42066
42067
|
xmppFrom: `${B}/${a.id}`,
|
|
42067
42068
|
isSystemMessage: "false",
|
|
42068
42069
|
isMediafile: "true",
|
|
42069
|
-
fileName:
|
|
42070
|
+
fileName: E.name,
|
|
42070
42071
|
location: "",
|
|
42071
42072
|
locationPreview: "",
|
|
42072
42073
|
mimetype: I,
|
|
42073
|
-
originalName:
|
|
42074
|
-
size:
|
|
42074
|
+
originalName: E.name,
|
|
42075
|
+
size: E.size.toString(),
|
|
42075
42076
|
isReply: x,
|
|
42076
42077
|
showInChannel: `${D}`,
|
|
42077
42078
|
mainMessage: P
|
|
@@ -42080,7 +42081,7 @@ const XH = (e) => {
|
|
|
42080
42081
|
);
|
|
42081
42082
|
try {
|
|
42082
42083
|
const Q = new FormData();
|
|
42083
|
-
Q.append("files",
|
|
42084
|
+
Q.append("files", E);
|
|
42084
42085
|
const H = await Sd(Q);
|
|
42085
42086
|
for (const V of H.data.results) {
|
|
42086
42087
|
const re = {
|
|
@@ -42120,7 +42121,7 @@ const XH = (e) => {
|
|
|
42120
42121
|
isReply: x,
|
|
42121
42122
|
isChecked: D,
|
|
42122
42123
|
mainMessage: P,
|
|
42123
|
-
fileData:
|
|
42124
|
+
fileData: E,
|
|
42124
42125
|
fileType: I,
|
|
42125
42126
|
messageId: _,
|
|
42126
42127
|
uploadResults: H.data.results
|
|
@@ -42141,7 +42142,7 @@ const XH = (e) => {
|
|
|
42141
42142
|
n,
|
|
42142
42143
|
e,
|
|
42143
42144
|
a,
|
|
42144
|
-
|
|
42145
|
+
T,
|
|
42145
42146
|
r,
|
|
42146
42147
|
s,
|
|
42147
42148
|
y,
|
|
@@ -42149,10 +42150,10 @@ const XH = (e) => {
|
|
|
42149
42150
|
]
|
|
42150
42151
|
);
|
|
42151
42152
|
return {
|
|
42152
|
-
sendMessage:
|
|
42153
|
+
sendMessage: C,
|
|
42153
42154
|
sendMedia: v,
|
|
42154
42155
|
sendEditMessage: k,
|
|
42155
|
-
isLastMessageFromUserAndProcessing:
|
|
42156
|
+
isLastMessageFromUserAndProcessing: T
|
|
42156
42157
|
};
|
|
42157
42158
|
}, Mw = () => {
|
|
42158
42159
|
const { client: e } = Pt(), t = Dd();
|
|
@@ -42233,8 +42234,8 @@ const XH = (e) => {
|
|
|
42233
42234
|
sendMessage: g,
|
|
42234
42235
|
sendMedia: b,
|
|
42235
42236
|
sendEditMessage: y,
|
|
42236
|
-
isLastMessageFromUserAndProcessing:
|
|
42237
|
-
} = _w(), { sendStartComposing: w, sendEndComposing:
|
|
42237
|
+
isLastMessageFromUserAndProcessing: T
|
|
42238
|
+
} = _w(), { sendStartComposing: w, sendEndComposing: C } = ZH(A), k = ce(
|
|
42238
42239
|
(B) => {
|
|
42239
42240
|
r(
|
|
42240
42241
|
Ba({
|
|
@@ -42249,7 +42250,7 @@ const XH = (e) => {
|
|
|
42249
42250
|
b(B, x, l);
|
|
42250
42251
|
},
|
|
42251
42252
|
[l]
|
|
42252
|
-
),
|
|
42253
|
+
), E = ce(
|
|
42253
42254
|
async (B, x, D) => {
|
|
42254
42255
|
if (!s && !u?.[B]?.historyComplete) {
|
|
42255
42256
|
const P = typeof D != "string" ? D : Number(
|
|
@@ -42312,7 +42313,7 @@ const XH = (e) => {
|
|
|
42312
42313
|
d || !u[l].historyComplete && u[l].messages.length < 1 ? /* @__PURE__ */ p(zt, { color: A?.colors?.primary }) : Object.keys(u).length < 1 || !l ? /* @__PURE__ */ p(gv, {}) : u[l]?.messages && u[l]?.messages.length < 1 ? /* @__PURE__ */ p(PH, {}) : /* @__PURE__ */ p(
|
|
42313
42314
|
wv,
|
|
42314
42315
|
{
|
|
42315
|
-
loadMoreMessages:
|
|
42316
|
+
loadMoreMessages: E,
|
|
42316
42317
|
CustomMessage: e,
|
|
42317
42318
|
user: o,
|
|
42318
42319
|
roomJID: l,
|
|
@@ -42329,9 +42330,9 @@ const XH = (e) => {
|
|
|
42329
42330
|
sendMedia: v,
|
|
42330
42331
|
config: A,
|
|
42331
42332
|
onFocus: w,
|
|
42332
|
-
onBlur:
|
|
42333
|
+
onBlur: C,
|
|
42333
42334
|
isLoading: !1,
|
|
42334
|
-
isMessageProcessing:
|
|
42335
|
+
isMessageProcessing: T(l),
|
|
42335
42336
|
multiline: !0,
|
|
42336
42337
|
placeholderText: "Type message"
|
|
42337
42338
|
}, x = {
|
|
@@ -42690,26 +42691,26 @@ class hr extends Zs {
|
|
|
42690
42691
|
let c = f.clientX, d = f.clientY, m = !1;
|
|
42691
42692
|
const g = Date.now(), b = (k) => {
|
|
42692
42693
|
if (k.preventDefault(), k.stopPropagation(), A && Date.now() - g < o) return;
|
|
42693
|
-
const v = k.clientX,
|
|
42694
|
+
const v = k.clientX, E = k.clientY, I = v - c, B = E - d;
|
|
42694
42695
|
if (m || Math.abs(I) > s || Math.abs(B) > s) {
|
|
42695
42696
|
const x = t.getBoundingClientRect(), { left: D, top: P } = x;
|
|
42696
|
-
m || (i?.(c - D, d - P), m = !0), n(I, B, v - D,
|
|
42697
|
+
m || (i?.(c - D, d - P), m = !0), n(I, B, v - D, E - P), c = v, d = E;
|
|
42697
42698
|
}
|
|
42698
42699
|
}, y = (k) => {
|
|
42699
42700
|
if (m) {
|
|
42700
|
-
const v = k.clientX,
|
|
42701
|
-
r?.(v - B,
|
|
42701
|
+
const v = k.clientX, E = k.clientY, I = t.getBoundingClientRect(), { left: B, top: x } = I;
|
|
42702
|
+
r?.(v - B, E - x);
|
|
42702
42703
|
}
|
|
42703
42704
|
u();
|
|
42704
|
-
},
|
|
42705
|
+
}, T = (k) => {
|
|
42705
42706
|
k.relatedTarget && k.relatedTarget !== document.documentElement || y(k);
|
|
42706
42707
|
}, w = (k) => {
|
|
42707
42708
|
m && (k.stopPropagation(), k.preventDefault());
|
|
42708
|
-
},
|
|
42709
|
+
}, C = (k) => {
|
|
42709
42710
|
m && k.preventDefault();
|
|
42710
42711
|
};
|
|
42711
|
-
document.addEventListener("pointermove", b), document.addEventListener("pointerup", y), document.addEventListener("pointerout",
|
|
42712
|
-
document.removeEventListener("pointermove", b), document.removeEventListener("pointerup", y), document.removeEventListener("pointerout",
|
|
42712
|
+
document.addEventListener("pointermove", b), document.addEventListener("pointerup", y), document.addEventListener("pointerout", T), document.addEventListener("pointercancel", T), document.addEventListener("touchmove", C, { passive: !1 }), document.addEventListener("click", w, { capture: !0 }), u = () => {
|
|
42713
|
+
document.removeEventListener("pointermove", b), document.removeEventListener("pointerup", y), document.removeEventListener("pointerout", T), document.removeEventListener("pointercancel", T), document.removeEventListener("touchmove", C), setTimeout(() => {
|
|
42713
42714
|
document.removeEventListener("click", w, { capture: !0 });
|
|
42714
42715
|
}, 10);
|
|
42715
42716
|
};
|
|
@@ -42865,16 +42866,16 @@ class hr extends Zs {
|
|
|
42865
42866
|
renderBarWaveform(t, n, i, r) {
|
|
42866
42867
|
const s = t[0], a = t[1] || t[0], o = s.length, { width: A, height: u } = i.canvas, l = u / 2, f = this.getPixelRatio(), c = n.barWidth ? n.barWidth * f : 1, d = n.barGap ? n.barGap * f : n.barWidth ? c / 2 : 0, m = n.barRadius || 0, g = A / (c + d) / o, b = m && "roundRect" in i ? "roundRect" : "rect";
|
|
42867
42868
|
i.beginPath();
|
|
42868
|
-
let y = 0,
|
|
42869
|
-
for (let
|
|
42870
|
-
const k = Math.round(
|
|
42869
|
+
let y = 0, T = 0, w = 0;
|
|
42870
|
+
for (let C = 0; C <= o; C++) {
|
|
42871
|
+
const k = Math.round(C * g);
|
|
42871
42872
|
if (k > y) {
|
|
42872
|
-
const I = Math.round(
|
|
42873
|
+
const I = Math.round(T * l * r), B = I + Math.round(w * l * r) || 1;
|
|
42873
42874
|
let x = l - I;
|
|
42874
|
-
n.barAlign === "top" ? x = 0 : n.barAlign === "bottom" && (x = u - B), i[b](y * (c + d), x, c, B, m), y = k,
|
|
42875
|
+
n.barAlign === "top" ? x = 0 : n.barAlign === "bottom" && (x = u - B), i[b](y * (c + d), x, c, B, m), y = k, T = 0, w = 0;
|
|
42875
42876
|
}
|
|
42876
|
-
const v = Math.abs(s[
|
|
42877
|
-
v >
|
|
42877
|
+
const v = Math.abs(s[C] || 0), E = Math.abs(a[C] || 0);
|
|
42878
|
+
v > T && (T = v), E > w && (w = E);
|
|
42878
42879
|
}
|
|
42879
42880
|
i.fill(), i.closePath();
|
|
42880
42881
|
}
|
|
@@ -42926,17 +42927,17 @@ class hr extends Zs {
|
|
|
42926
42927
|
if (b < 0 || b >= d || f[b]) return;
|
|
42927
42928
|
f[b] = !0;
|
|
42928
42929
|
const y = b * l;
|
|
42929
|
-
let
|
|
42930
|
+
let T = Math.min(u - y, l);
|
|
42930
42931
|
if (n.barWidth || n.barGap) {
|
|
42931
|
-
const
|
|
42932
|
-
|
|
42932
|
+
const C = n.barWidth || 0.5, k = C + (n.barGap || C / 2);
|
|
42933
|
+
T = Math.floor(T / k) * k;
|
|
42933
42934
|
}
|
|
42934
|
-
if (
|
|
42935
|
-
const w = t.map((
|
|
42936
|
-
const k = Math.floor(y / u *
|
|
42937
|
-
return
|
|
42935
|
+
if (T <= 0) return;
|
|
42936
|
+
const w = t.map((C) => {
|
|
42937
|
+
const k = Math.floor(y / u * C.length), v = Math.floor((y + T) / u * C.length);
|
|
42938
|
+
return C.slice(k, v);
|
|
42938
42939
|
});
|
|
42939
|
-
this.renderSingleCanvas(w, n,
|
|
42940
|
+
this.renderSingleCanvas(w, n, T, r, y, s, a);
|
|
42940
42941
|
}, d = Math.ceil(u / l);
|
|
42941
42942
|
if (!this.isScrollable) {
|
|
42942
42943
|
for (let b = 0; b < d; b++) c(b);
|
|
@@ -42945,8 +42946,8 @@ class hr extends Zs {
|
|
|
42945
42946
|
const m = this.scrollContainer.scrollLeft / u, g = Math.floor(m * d);
|
|
42946
42947
|
if (c(g - 1), c(g), c(g + 1), d > 1) {
|
|
42947
42948
|
const b = this.on("scroll", () => {
|
|
42948
|
-
const { scrollLeft: y } = this.scrollContainer,
|
|
42949
|
-
Object.keys(f).length > hr.MAX_NODES && (s.innerHTML = "", a.innerHTML = "", f = {}), c(
|
|
42949
|
+
const { scrollLeft: y } = this.scrollContainer, T = Math.floor(y / u * d);
|
|
42950
|
+
Object.keys(f).length > hr.MAX_NODES && (s.innerHTML = "", a.innerHTML = "", f = {}), c(T - 1), c(T), c(T + 1);
|
|
42950
42951
|
});
|
|
42951
42952
|
this.unsubscribeOnScroll.push(b);
|
|
42952
42953
|
}
|
|
@@ -43631,12 +43632,12 @@ function Ho() {
|
|
|
43631
43632
|
});
|
|
43632
43633
|
}
|
|
43633
43634
|
function Yw(e, t, n, i, r, s, a, o, A, u) {
|
|
43634
|
-
var l, f, c, d, m, g, b, y = i && i.__k || Hw,
|
|
43635
|
+
var l, f, c, d, m, g, b, y = i && i.__k || Hw, T = y.length;
|
|
43635
43636
|
for (n.__k = [], l = 0; l < t.length; l++) if ((d = n.__k[l] = (d = t[l]) == null || typeof d == "boolean" ? null : typeof d == "string" || typeof d == "number" || typeof d == "bigint" ? ro(null, d, null, null, d) : Array.isArray(d) ? ro(mr, {
|
|
43636
43637
|
children: d
|
|
43637
43638
|
}, null, null, null) : d.__b > 0 ? ro(d.type, d.props, d.key, null, d.__v) : d) != null) {
|
|
43638
43639
|
if (d.__ = n, d.__b = n.__b + 1, (c = y[l]) === null || c && d.key == c.key && d.type === c.type) y[l] = void 0;
|
|
43639
|
-
else for (f = 0; f <
|
|
43640
|
+
else for (f = 0; f < T; f++) {
|
|
43640
43641
|
if ((c = y[f]) && d.key == c.key && d.type === c.type) {
|
|
43641
43642
|
y[f] = void 0;
|
|
43642
43643
|
break;
|
|
@@ -43645,7 +43646,7 @@ function Yw(e, t, n, i, r, s, a, o, A, u) {
|
|
|
43645
43646
|
}
|
|
43646
43647
|
_d(e, d, c = c || Qo, r, s, a, o, A, u), m = d.__e, (f = d.ref) && c.ref != f && (b || (b = []), c.ref && b.push(c.ref, null, d), b.push(f, d.__c || m, d)), m != null ? (g == null && (g = m), typeof d.type == "function" && d.__k === c.__k ? d.__d = A = Ww(d, A, e) : A = Gw(e, d, c, y, m, A), typeof n.type == "function" && (n.__d = A)) : A && c.__e == A && A.parentNode != e && (A = pr(c));
|
|
43647
43648
|
}
|
|
43648
|
-
for (n.__e = g, l =
|
|
43649
|
+
for (n.__e = g, l = T; l--; ) y[l] != null && (typeof n.type == "function" && y[l].__e != null && y[l].__e == n.__d && (n.__d = pr(i, l + 1)), Vw(y[l], y[l]));
|
|
43649
43650
|
if (b) for (l = 0; l < b.length; l++) qw(b[l], b[++l], b[++l]);
|
|
43650
43651
|
}
|
|
43651
43652
|
function Ww(e, t, n) {
|
|
@@ -43701,26 +43702,26 @@ function Qp(e) {
|
|
|
43701
43702
|
this.l[e.type + !0](ge.event ? ge.event(e) : e);
|
|
43702
43703
|
}
|
|
43703
43704
|
function _d(e, t, n, i, r, s, a, o, A) {
|
|
43704
|
-
var u, l, f, c, d, m, g, b, y,
|
|
43705
|
+
var u, l, f, c, d, m, g, b, y, T, w, C = t.type;
|
|
43705
43706
|
if (t.constructor !== void 0) return null;
|
|
43706
43707
|
n.__h != null && (A = n.__h, o = t.__e = n.__e, t.__h = null, s = [
|
|
43707
43708
|
o
|
|
43708
43709
|
]), (u = ge.__b) && u(t);
|
|
43709
43710
|
try {
|
|
43710
|
-
e: if (typeof
|
|
43711
|
-
if (b = t.props, y = (u =
|
|
43711
|
+
e: if (typeof C == "function") {
|
|
43712
|
+
if (b = t.props, y = (u = C.contextType) && i[u.__c], T = u ? y ? y.props.value : u.__ : i, n.__c ? g = (l = t.__c = n.__c).__ = l.__E : ("prototype" in C && C.prototype.render ? t.__c = l = new C(b, T) : (t.__c = l = new ln(b, T), l.constructor = C, l.render = cU), y && y.sub(l), l.props = b, l.state || (l.state = {}), l.context = T, l.__n = i, f = l.__d = !0, l.__h = []), l.__s == null && (l.__s = l.state), C.getDerivedStateFromProps != null && (l.__s == l.state && (l.__s = Wn({}, l.__s)), Wn(l.__s, C.getDerivedStateFromProps(b, l.__s))), c = l.props, d = l.state, f) C.getDerivedStateFromProps == null && l.componentWillMount != null && l.componentWillMount(), l.componentDidMount != null && l.__h.push(l.componentDidMount);
|
|
43712
43713
|
else {
|
|
43713
|
-
if (
|
|
43714
|
+
if (C.getDerivedStateFromProps == null && b !== c && l.componentWillReceiveProps != null && l.componentWillReceiveProps(b, T), !l.__e && l.shouldComponentUpdate != null && l.shouldComponentUpdate(b, l.__s, T) === !1 || t.__v === n.__v) {
|
|
43714
43715
|
l.props = b, l.state = l.__s, t.__v !== n.__v && (l.__d = !1), l.__v = t, t.__e = n.__e, t.__k = n.__k, t.__k.forEach(function(k) {
|
|
43715
43716
|
k && (k.__ = t);
|
|
43716
43717
|
}), l.__h.length && a.push(l);
|
|
43717
43718
|
break e;
|
|
43718
43719
|
}
|
|
43719
|
-
l.componentWillUpdate != null && l.componentWillUpdate(b, l.__s,
|
|
43720
|
+
l.componentWillUpdate != null && l.componentWillUpdate(b, l.__s, T), l.componentDidUpdate != null && l.__h.push(function() {
|
|
43720
43721
|
l.componentDidUpdate(c, d, m);
|
|
43721
43722
|
});
|
|
43722
43723
|
}
|
|
43723
|
-
l.context =
|
|
43724
|
+
l.context = T, l.props = b, l.state = l.__s, (u = ge.__r) && u(t), l.__d = !1, l.__v = t, l.__P = e, u = l.render(l.props, l.state, l.context), l.state = l.__s, l.getChildContext != null && (i = Wn(Wn({}, i), l.getChildContext())), f || l.getSnapshotBeforeUpdate == null || (m = l.getSnapshotBeforeUpdate(c, d)), w = u != null && u.type === mr && u.key == null ? u.props.children : u, Yw(e, Array.isArray(w) ? w : [
|
|
43724
43725
|
w
|
|
43725
43726
|
], t, n, i, r, s, a, o, A), l.base = t.__e, t.__h = null, l.__h.length && a.push(l), g && (l.__E = l.__ = null), l.__e = !1;
|
|
43726
43727
|
} else s == null && t.__v === n.__v ? (t.__k = n.__k, t.__e = n.__e) : t.__e = fU(n.__e, t, n, i, r, s, a, A);
|
|
@@ -44265,7 +44266,7 @@ async function kU(e) {
|
|
|
44265
44266
|
g
|
|
44266
44267
|
]).map((y) => (b ? y.split(/[-|_|\s]+/) : [
|
|
44267
44268
|
y
|
|
44268
|
-
]).map((
|
|
44269
|
+
]).map((T) => T.toLowerCase())).flat();
|
|
44269
44270
|
}).flat().filter((g) => g && g.trim()).join(","), c.emoticons) for (const g of c.emoticons)
|
|
44270
44271
|
Ie.emoticons[g] || (Ie.emoticons[g] = c.id);
|
|
44271
44272
|
let m = 0;
|
|
@@ -46593,35 +46594,35 @@ const $U = L.div`
|
|
|
46593
46594
|
handleReactionMessage: A
|
|
46594
46595
|
}) => {
|
|
46595
46596
|
const { roomsList: u, activeRoomJID: l } = Xt(), [f, c] = ae(!1), d = De(
|
|
46596
|
-
(
|
|
46597
|
+
(E) => E.chatSettingStore.config
|
|
46597
46598
|
), m = () => {
|
|
46598
46599
|
d?.disableInteractions || r({ visible: !1, x: 0, y: 0 });
|
|
46599
|
-
}, g = (
|
|
46600
|
-
|
|
46601
|
-
}, b = (
|
|
46602
|
-
navigator.clipboard.writeText(
|
|
46600
|
+
}, g = (E) => {
|
|
46601
|
+
E.target === E.currentTarget && m();
|
|
46602
|
+
}, b = (E) => {
|
|
46603
|
+
navigator.clipboard.writeText(E), m();
|
|
46603
46604
|
}, y = () => {
|
|
46604
46605
|
s(), m();
|
|
46605
|
-
},
|
|
46606
|
+
}, T = () => {
|
|
46606
46607
|
a(), m();
|
|
46607
|
-
}, w = (
|
|
46608
|
-
I.target !== I.currentTarget && (console.log("emoji",
|
|
46609
|
-
},
|
|
46610
|
-
I.target === I.currentTarget && (Fo.emojis[
|
|
46611
|
-
}, k = (
|
|
46612
|
-
const I = Fo.emojis[
|
|
46608
|
+
}, w = (E, I) => {
|
|
46609
|
+
I.target !== I.currentTarget && (console.log("emoji", E), A(E.id), m());
|
|
46610
|
+
}, C = (E, I) => {
|
|
46611
|
+
I.target === I.currentTarget && (Fo.emojis[E], A(E), m());
|
|
46612
|
+
}, k = (E) => {
|
|
46613
|
+
const I = Fo.emojis[E];
|
|
46613
46614
|
return I ? I.skins[0].native : "";
|
|
46614
|
-
}, v = (
|
|
46615
|
+
}, v = (E, I) => {
|
|
46615
46616
|
if (typeof window > "u")
|
|
46616
|
-
return { adjustedX:
|
|
46617
|
+
return { adjustedX: E, adjustedY: I };
|
|
46617
46618
|
const D = window.innerWidth, P = window.innerHeight;
|
|
46618
|
-
let _ =
|
|
46619
|
-
return
|
|
46619
|
+
let _ = E, Q = I;
|
|
46620
|
+
return E + 320 > D && (_ = D - 320 - 10), I + 435 > P && (Q = P - 435 - 10), { adjustedX: _, adjustedY: Q };
|
|
46620
46621
|
};
|
|
46621
46622
|
return Ce(() => {
|
|
46622
46623
|
if (typeof window > "u")
|
|
46623
46624
|
return;
|
|
46624
|
-
const
|
|
46625
|
+
const E = () => {
|
|
46625
46626
|
if (f) {
|
|
46626
46627
|
const { adjustedX: I, adjustedY: B } = v(
|
|
46627
46628
|
i.x,
|
|
@@ -46630,8 +46631,8 @@ const $U = L.div`
|
|
|
46630
46631
|
r({ visible: !0, x: I, y: B });
|
|
46631
46632
|
}
|
|
46632
46633
|
};
|
|
46633
|
-
return window.addEventListener("scroll",
|
|
46634
|
-
typeof window < "u" && window.removeEventListener("scroll",
|
|
46634
|
+
return window.addEventListener("scroll", E), () => {
|
|
46635
|
+
typeof window < "u" && window.removeEventListener("scroll", E);
|
|
46635
46636
|
};
|
|
46636
46637
|
}, [f, i.x, i.y]), d?.disableInteractions || !i.visible ? null : /* @__PURE__ */ p(We, { children: !n.isDeleted && /* @__PURE__ */ p(ej, { onClick: g, children: /* @__PURE__ */ F(
|
|
46637
46638
|
JU,
|
|
@@ -46639,21 +46640,21 @@ const $U = L.div`
|
|
|
46639
46640
|
style: { top: i.y, left: i.x },
|
|
46640
46641
|
children: [
|
|
46641
46642
|
/* @__PURE__ */ F(XU, { children: [
|
|
46642
|
-
tj.map((
|
|
46643
|
+
tj.map((E) => /* @__PURE__ */ p(
|
|
46643
46644
|
KU,
|
|
46644
46645
|
{
|
|
46645
46646
|
className: "apple-emoji",
|
|
46646
|
-
onClick: (I) =>
|
|
46647
|
-
children: k(
|
|
46647
|
+
onClick: (I) => C(E, I),
|
|
46648
|
+
children: k(E)
|
|
46648
46649
|
},
|
|
46649
|
-
|
|
46650
|
+
E
|
|
46650
46651
|
)),
|
|
46651
46652
|
/* @__PURE__ */ p(
|
|
46652
46653
|
ZU,
|
|
46653
46654
|
{
|
|
46654
46655
|
isRotated: f,
|
|
46655
|
-
onClick: (
|
|
46656
|
-
|
|
46656
|
+
onClick: (E) => {
|
|
46657
|
+
E.stopPropagation();
|
|
46657
46658
|
const { adjustedX: I, adjustedY: B } = v(
|
|
46658
46659
|
i.x,
|
|
46659
46660
|
i.y
|
|
@@ -46673,7 +46674,7 @@ const $U = L.div`
|
|
|
46673
46674
|
{
|
|
46674
46675
|
skinTonePosition: "none",
|
|
46675
46676
|
searchPosition: "static",
|
|
46676
|
-
onEmojiSelect: (
|
|
46677
|
+
onEmojiSelect: (E, I) => w(E, I),
|
|
46677
46678
|
title: "Pick emoji",
|
|
46678
46679
|
emoji: "point_up",
|
|
46679
46680
|
theme: "light",
|
|
@@ -46707,7 +46708,7 @@ const $U = L.div`
|
|
|
46707
46708
|
] }),
|
|
46708
46709
|
/* @__PURE__ */ p(ef, {})
|
|
46709
46710
|
] }),
|
|
46710
|
-
(t || u?.[l].role === "moderator") && /* @__PURE__ */ F(Na, { onClick:
|
|
46711
|
+
(t || u?.[l].role === "moderator") && /* @__PURE__ */ F(Na, { onClick: T, children: [
|
|
46711
46712
|
Sa.DELETE,
|
|
46712
46713
|
/* @__PURE__ */ p(Da.DELETE, {}),
|
|
46713
46714
|
" "
|
|
@@ -47039,7 +47040,7 @@ const $U = L.div`
|
|
|
47039
47040
|
}, 500);
|
|
47040
47041
|
}, y = () => {
|
|
47041
47042
|
g.current && (clearTimeout(g.current), g.current = null);
|
|
47042
|
-
},
|
|
47043
|
+
}, T = (I) => {
|
|
47043
47044
|
I?.name !== "Deleted User" && (u(pt(Le.PROFILE)), u(Ec(I)));
|
|
47044
47045
|
}, w = () => {
|
|
47045
47046
|
if (u(Vn({ isEdit: !1 })), !n && e.mainMessage) {
|
|
@@ -47051,7 +47052,7 @@ const $U = L.div`
|
|
|
47051
47052
|
return u(
|
|
47052
47053
|
hh({ id: e.id, chatJID: e.roomJid })
|
|
47053
47054
|
);
|
|
47054
|
-
},
|
|
47055
|
+
}, C = () => {
|
|
47055
47056
|
u(
|
|
47056
47057
|
po({
|
|
47057
47058
|
isDeleteModal: !0,
|
|
@@ -47097,7 +47098,7 @@ const $U = L.div`
|
|
|
47097
47098
|
[...e.reaction[s.xmppUsername]?.emoji || [], I],
|
|
47098
47099
|
{ firstName: s.firstName, lastName: s.lastName }
|
|
47099
47100
|
);
|
|
47100
|
-
},
|
|
47101
|
+
}, E = A.has(e.id) || e?.pending || !1;
|
|
47101
47102
|
return /* @__PURE__ */ F(We, { children: [
|
|
47102
47103
|
/* @__PURE__ */ F(
|
|
47103
47104
|
Ex,
|
|
@@ -47110,7 +47111,7 @@ const $U = L.div`
|
|
|
47110
47111
|
!t && /* @__PURE__ */ p(
|
|
47111
47112
|
Nx,
|
|
47112
47113
|
{
|
|
47113
|
-
onClick: () => e.user.name !== "Deleted User" ?
|
|
47114
|
+
onClick: () => e.user.name !== "Deleted User" ? T(e.user) : null,
|
|
47114
47115
|
children: e.user?.profileImage && e.user.profileImage !== "" ? /* @__PURE__ */ p(
|
|
47115
47116
|
Ix,
|
|
47116
47117
|
{
|
|
@@ -47168,12 +47169,12 @@ const $U = L.div`
|
|
|
47168
47169
|
}
|
|
47169
47170
|
),
|
|
47170
47171
|
/* @__PURE__ */ F(Tx, { children: [
|
|
47171
|
-
!a?.disableSentLogic && t &&
|
|
47172
|
+
!a?.disableSentLogic && t && E && "sending...",
|
|
47172
47173
|
new Date(e.date).toLocaleTimeString([], {
|
|
47173
47174
|
hour: "2-digit",
|
|
47174
47175
|
minute: "2-digit"
|
|
47175
47176
|
}),
|
|
47176
|
-
!a?.disableSentLogic && t && !
|
|
47177
|
+
!a?.disableSentLogic && t && !E && /* @__PURE__ */ p(xT, {})
|
|
47177
47178
|
] }),
|
|
47178
47179
|
c && !e.isDeleted && /* @__PURE__ */ p(kj, { url: c, isUserMessage: t })
|
|
47179
47180
|
]
|
|
@@ -47212,7 +47213,7 @@ const $U = L.div`
|
|
|
47212
47213
|
setContextMenu: f,
|
|
47213
47214
|
contextMenu: l,
|
|
47214
47215
|
handleReplyMessage: w,
|
|
47215
|
-
handleDeleteMessage:
|
|
47216
|
+
handleDeleteMessage: C,
|
|
47216
47217
|
handleEditMessage: k,
|
|
47217
47218
|
handleReactionMessage: v
|
|
47218
47219
|
}
|
|
@@ -47277,12 +47278,12 @@ const $U = L.div`
|
|
|
47277
47278
|
b
|
|
47278
47279
|
);
|
|
47279
47280
|
console.log("google log after register res", w);
|
|
47280
|
-
const
|
|
47281
|
+
const C = {
|
|
47281
47282
|
...w.data.user,
|
|
47282
47283
|
token: w.data.token,
|
|
47283
47284
|
refreshToken: w.data.refreshToken
|
|
47284
47285
|
};
|
|
47285
|
-
t(Un(
|
|
47286
|
+
t(Un(C)), as(ji.ETHORA_USER).set(C);
|
|
47286
47287
|
} catch {
|
|
47287
47288
|
console.log("error registering user viag google");
|
|
47288
47289
|
}
|
|
@@ -47293,12 +47294,12 @@ const $U = L.div`
|
|
|
47293
47294
|
b
|
|
47294
47295
|
);
|
|
47295
47296
|
console.log("google log res", w);
|
|
47296
|
-
const
|
|
47297
|
+
const C = {
|
|
47297
47298
|
...w.data.user,
|
|
47298
47299
|
token: w.data.token,
|
|
47299
47300
|
refreshToken: w.data.refreshToken
|
|
47300
47301
|
};
|
|
47301
|
-
t(Un(
|
|
47302
|
+
t(Un(C)), as(ji.ETHORA_USER).set(C);
|
|
47302
47303
|
}
|
|
47303
47304
|
} catch (y) {
|
|
47304
47305
|
console.log(y);
|
|
@@ -47513,7 +47514,7 @@ const $U = L.div`
|
|
|
47513
47514
|
}
|
|
47514
47515
|
},
|
|
47515
47516
|
[i?.client?.jid]
|
|
47516
|
-
),
|
|
47517
|
+
), T = ce(
|
|
47517
47518
|
(I) => {
|
|
47518
47519
|
u(
|
|
47519
47520
|
I,
|
|
@@ -47536,7 +47537,7 @@ const $U = L.div`
|
|
|
47536
47537
|
);
|
|
47537
47538
|
},
|
|
47538
47539
|
[e]
|
|
47539
|
-
),
|
|
47540
|
+
), C = ce(() => {
|
|
47540
47541
|
A?.disableTypingIndicator || i.sendTypingRequestStanza(
|
|
47541
47542
|
e.roomJid,
|
|
47542
47543
|
`${t.firstName} ${t.lastName}`,
|
|
@@ -47550,7 +47551,7 @@ const $U = L.div`
|
|
|
47550
47551
|
);
|
|
47551
47552
|
}, []), v = () => {
|
|
47552
47553
|
r(Vn({ isEdit: !1 }));
|
|
47553
|
-
},
|
|
47554
|
+
}, E = () => {
|
|
47554
47555
|
r(c6({ chatJID: e.roomJid })), r(Vn({ isEdit: !1 }));
|
|
47555
47556
|
};
|
|
47556
47557
|
return /* @__PURE__ */ F(
|
|
@@ -47565,7 +47566,7 @@ const $U = L.div`
|
|
|
47565
47566
|
Ut,
|
|
47566
47567
|
{
|
|
47567
47568
|
headerTitle: "Thread",
|
|
47568
|
-
handleCloseModal:
|
|
47569
|
+
handleCloseModal: E
|
|
47569
47570
|
}
|
|
47570
47571
|
),
|
|
47571
47572
|
/* @__PURE__ */ p(
|
|
@@ -47606,7 +47607,7 @@ const $U = L.div`
|
|
|
47606
47607
|
cursor: "pointer",
|
|
47607
47608
|
borderBottom: "1px solid"
|
|
47608
47609
|
},
|
|
47609
|
-
onClick:
|
|
47610
|
+
onClick: E,
|
|
47610
47611
|
children: a[e.roomJid].name
|
|
47611
47612
|
}
|
|
47612
47613
|
)
|
|
@@ -47619,9 +47620,9 @@ const $U = L.div`
|
|
|
47619
47620
|
{
|
|
47620
47621
|
editMessage: o.text,
|
|
47621
47622
|
sendMedia: w,
|
|
47622
|
-
sendMessage: o.isEdit ? f :
|
|
47623
|
+
sendMessage: o.isEdit ? f : T,
|
|
47623
47624
|
config: A,
|
|
47624
|
-
onFocus:
|
|
47625
|
+
onFocus: C,
|
|
47625
47626
|
onBlur: k,
|
|
47626
47627
|
isLoading: s,
|
|
47627
47628
|
isMessageProcessing: c(
|
|
@@ -47983,11 +47984,11 @@ const Fj = ({
|
|
|
47983
47984
|
wasAutoSelected: t,
|
|
47984
47985
|
config: n
|
|
47985
47986
|
}) => {
|
|
47986
|
-
const i = Ge(), [r, s] = ae(!1), [a, o] = ae(!1), [A, u] = ae(!1), [l, f] = ae(!1), c = Ne(!1), { client: d, initializeClient: m, setClient: g } = Pt(), b = Mw(), { rooms: y } = De((v) => v.rooms), { roomsList:
|
|
47987
|
+
const i = Ge(), [r, s] = ae(!1), [a, o] = ae(!1), [A, u] = ae(!1), [l, f] = ae(!1), c = Ne(!1), { client: d, initializeClient: m, setClient: g } = Pt(), b = Mw(), { rooms: y } = De((v) => v.rooms), { roomsList: T } = Xt(), { user: w } = Tt();
|
|
47987
47988
|
Ce(() => () => {
|
|
47988
47989
|
d && w.xmppPassword === "" && (console.log("closing client"), d.close(), g(null));
|
|
47989
47990
|
}, [w.xmppPassword]);
|
|
47990
|
-
const
|
|
47991
|
+
const C = async () => {
|
|
47991
47992
|
if (f(!0), !await Oj(
|
|
47992
47993
|
d,
|
|
47993
47994
|
n,
|
|
@@ -47998,8 +47999,8 @@ const Fj = ({
|
|
|
47998
47999
|
return;
|
|
47999
48000
|
}
|
|
48000
48001
|
f(!1);
|
|
48001
|
-
}, k = async (v,
|
|
48002
|
-
!
|
|
48002
|
+
}, k = async (v, E = !1) => {
|
|
48003
|
+
!E && i(
|
|
48003
48004
|
yt({ loading: !0, loadingText: "Loading rooms..." })
|
|
48004
48005
|
);
|
|
48005
48006
|
const I = await b(v, n);
|
|
@@ -48007,7 +48008,7 @@ const Fj = ({
|
|
|
48007
48008
|
};
|
|
48008
48009
|
return Ce(() => {
|
|
48009
48010
|
let v;
|
|
48010
|
-
const
|
|
48011
|
+
const E = async () => {
|
|
48011
48012
|
n?.translates?.enabled && !n?.translates?.translations && i(Gg(n?.translates?.translations)), i(Z4(n));
|
|
48012
48013
|
try {
|
|
48013
48014
|
if (!w.xmppUsername)
|
|
@@ -48015,8 +48016,8 @@ const Fj = ({
|
|
|
48015
48016
|
else if (Pj({ roomJID: e, wasAutoSelected: t, config: n, dispatch: i }), d)
|
|
48016
48017
|
n?.newArch && n?.enableRoomsRetry?.enabled && (lc(
|
|
48017
48018
|
e,
|
|
48018
|
-
|
|
48019
|
-
) || await
|
|
48019
|
+
T
|
|
48020
|
+
) || await C()), s(!0), await d.getChatsPrivateStoreRequestStanza().then(
|
|
48020
48021
|
async (I) => {
|
|
48021
48022
|
bo(I, i), c.current || (await Ag(y, d), c.current = !0), g(d), u(!1);
|
|
48022
48023
|
}
|
|
@@ -48028,16 +48029,16 @@ const Fj = ({
|
|
|
48028
48029
|
w.xmppUsername || w?.defaultWallet?.walletAddress,
|
|
48029
48030
|
w?.xmppPassword,
|
|
48030
48031
|
n?.xmppSettings,
|
|
48031
|
-
|
|
48032
|
+
T
|
|
48032
48033
|
).then((B) => B);
|
|
48033
|
-
if (
|
|
48034
|
-
s(!0), await O2(I,
|
|
48034
|
+
if (T && Object.keys(T).length > 0)
|
|
48035
|
+
s(!0), await O2(I, T);
|
|
48035
48036
|
else if (n?.newArch) {
|
|
48036
48037
|
const B = await k(I);
|
|
48037
48038
|
n?.enableRoomsRetry?.enabled && (lc(
|
|
48038
48039
|
e,
|
|
48039
48040
|
B
|
|
48040
|
-
) || await
|
|
48041
|
+
) || await C()), s(!0);
|
|
48041
48042
|
} else
|
|
48042
48043
|
await I.getRoomsStanza();
|
|
48043
48044
|
await I.getChatsPrivateStoreRequestStanza().then(
|
|
@@ -48046,14 +48047,14 @@ const Fj = ({
|
|
|
48046
48047
|
}
|
|
48047
48048
|
), n?.refreshTokens?.enabled && pf();
|
|
48048
48049
|
} catch (I) {
|
|
48049
|
-
console.log("err", I), u(!0), v = setTimeout(
|
|
48050
|
+
console.log("err", I), u(!0), v = setTimeout(E, 5e3);
|
|
48050
48051
|
}
|
|
48051
48052
|
i(yt({ loading: !1 }));
|
|
48052
48053
|
} catch (I) {
|
|
48053
|
-
o(!1), u(!0), s(!1), i(yt({ loading: !1 })), console.log(I), v = setTimeout(
|
|
48054
|
+
o(!1), u(!0), s(!1), i(yt({ loading: !1 })), console.log(I), v = setTimeout(E, 5e3);
|
|
48054
48055
|
}
|
|
48055
48056
|
};
|
|
48056
|
-
return
|
|
48057
|
+
return E(), () => {
|
|
48057
48058
|
clearTimeout(v);
|
|
48058
48059
|
};
|
|
48059
48060
|
}, [w.xmppPassword, w.xmppUsername]), {
|
|
@@ -48195,9 +48196,9 @@ const Fj = ({
|
|
|
48195
48196
|
}, []);
|
|
48196
48197
|
const g = (H) => {
|
|
48197
48198
|
u(H);
|
|
48198
|
-
}, { rooms: b, activeRoomJID: y, reportRoom:
|
|
48199
|
+
}, { rooms: b, activeRoomJID: y, reportRoom: T } = De(
|
|
48199
48200
|
(H) => H.rooms
|
|
48200
|
-
), { loadingText: w } = Xt(),
|
|
48201
|
+
), { loadingText: w } = Xt(), C = Ve(() => {
|
|
48201
48202
|
if (y)
|
|
48202
48203
|
return b[y]?.messages?.find(
|
|
48203
48204
|
(H) => H?.activeMessage
|
|
@@ -48206,7 +48207,7 @@ const Fj = ({
|
|
|
48206
48207
|
d(Et({ roomJID: null })), d(yt({ chatJID: H.jid, loading: !0 })), d(Et({ roomJID: H.jid })), d(Vn({ isEdit: !1 })), g(!0), !H?.historyComplete && H.messages?.length < 30 && I?.getHistoryStanza(H.jid, 30);
|
|
48207
48208
|
}, v = () => {
|
|
48208
48209
|
I.deleteMessageStanza(o.roomJid, o.messageId), d(po({ isDeleteModal: !1 }));
|
|
48209
|
-
},
|
|
48210
|
+
}, E = () => {
|
|
48210
48211
|
d(po({ isDeleteModal: !1 }));
|
|
48211
48212
|
}, {
|
|
48212
48213
|
client: I,
|
|
@@ -48293,10 +48294,10 @@ const Fj = ({
|
|
|
48293
48294
|
onRoomClick: k
|
|
48294
48295
|
}
|
|
48295
48296
|
)),
|
|
48296
|
-
l ? A ?
|
|
48297
|
+
l ? A ? C?.activeMessage ? /* @__PURE__ */ p(
|
|
48297
48298
|
ag,
|
|
48298
48299
|
{
|
|
48299
|
-
activeMessage:
|
|
48300
|
+
activeMessage: C,
|
|
48300
48301
|
user: s,
|
|
48301
48302
|
customMessageComponent: r
|
|
48302
48303
|
}
|
|
@@ -48312,10 +48313,10 @@ const Fj = ({
|
|
|
48312
48313
|
CustomMessageComponent: r,
|
|
48313
48314
|
handleBackClick: g
|
|
48314
48315
|
}
|
|
48315
|
-
) : null :
|
|
48316
|
+
) : null : C?.activeMessage ? /* @__PURE__ */ p(
|
|
48316
48317
|
ag,
|
|
48317
48318
|
{
|
|
48318
|
-
activeMessage:
|
|
48319
|
+
activeMessage: C,
|
|
48319
48320
|
user: s,
|
|
48320
48321
|
customMessageComponent: r
|
|
48321
48322
|
}
|
|
@@ -48349,10 +48350,10 @@ const Fj = ({
|
|
|
48349
48350
|
buttonText: "Delete",
|
|
48350
48351
|
backgroundColorButton: "#E53935",
|
|
48351
48352
|
handleClick: v,
|
|
48352
|
-
handleCloseModal:
|
|
48353
|
+
handleCloseModal: E
|
|
48353
48354
|
}
|
|
48354
48355
|
),
|
|
48355
|
-
|
|
48356
|
+
T.isOpen && /* @__PURE__ */ p(Rj, {})
|
|
48356
48357
|
] });
|
|
48357
48358
|
}, Yj = ({ ...e }) => {
|
|
48358
48359
|
const [t, n] = ae(!1), { config: i, MainComponentStyles: r } = e, { user: s } = De((A) => A.chatSettingStore), a = ce(async () => {
|