@ethora/chat-component 24.10.19 → 24.10.20
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 +507 -494
- package/dist/main.js.map +1 -1
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
var df = Object.defineProperty;
|
|
2
2
|
var ff = (t, e, n) => e in t ? df(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
|
3
3
|
var q = (t, e, n) => ff(t, typeof e != "symbol" ? e + "" : e, n);
|
|
4
|
-
import { jsx as g, jsxs as A, Fragment as
|
|
4
|
+
import { jsx as g, jsxs as A, Fragment as we } from "react/jsx-runtime";
|
|
5
5
|
import * as mo from "react";
|
|
6
|
-
import he, { createContext as hf, useContext as jc, useState as Q, useRef as G, useDebugValue as Ai, createElement as pf, useMemo as Jt, useCallback as B, useEffect as
|
|
6
|
+
import he, { createContext as hf, useContext as jc, useState as Q, useRef as G, useDebugValue as Ai, createElement as pf, useMemo as Jt, useCallback as B, useEffect as xe, forwardRef as mf } from "react";
|
|
7
7
|
var Kt = typeof globalThis < "u" ? globalThis : typeof window < "u" || typeof window < "u" ? window : typeof self < "u" ? self : {};
|
|
8
8
|
function gf(t) {
|
|
9
9
|
if (t.__esModule) return t;
|
|
@@ -251,7 +251,7 @@ Selectors that return the entire state are almost certainly a mistake, as they w
|
|
|
251
251
|
withTypes: () => n
|
|
252
252
|
}), n;
|
|
253
253
|
}
|
|
254
|
-
var
|
|
254
|
+
var Fe = /* @__PURE__ */ Cf();
|
|
255
255
|
function xf(t) {
|
|
256
256
|
t();
|
|
257
257
|
}
|
|
@@ -393,7 +393,7 @@ var Lf = typeof Symbol == "function" && Symbol.observable || "@@observable", Mi
|
|
|
393
393
|
REPLACE: `@@redux/REPLACE${/* @__PURE__ */ vo()}`,
|
|
394
394
|
PROBE_UNKNOWN_ACTION: () => `@@redux/PROBE_UNKNOWN_ACTION${vo()}`
|
|
395
395
|
}, yt = Mf;
|
|
396
|
-
function
|
|
396
|
+
function Tn(t) {
|
|
397
397
|
if (typeof t != "object" || t === null)
|
|
398
398
|
return !1;
|
|
399
399
|
let e = t;
|
|
@@ -484,7 +484,7 @@ function Vc(t, e, n) {
|
|
|
484
484
|
};
|
|
485
485
|
}
|
|
486
486
|
function f(y) {
|
|
487
|
-
if (!
|
|
487
|
+
if (!Tn(y))
|
|
488
488
|
throw new Error(process.env.NODE_ENV === "production" ? X(7) : `Actions must be plain objects. Instead, the actual type was: '${Ke(y)}'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.`);
|
|
489
489
|
if (typeof y.type > "u")
|
|
490
490
|
throw new Error(process.env.NODE_ENV === "production" ? X(8) : 'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');
|
|
@@ -556,7 +556,7 @@ function Vf(t, e, n, r) {
|
|
|
556
556
|
const o = Object.keys(e), s = n && n.type === yt.INIT ? "preloadedState argument passed to createStore" : "previous state received by the reducer";
|
|
557
557
|
if (o.length === 0)
|
|
558
558
|
return "Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";
|
|
559
|
-
if (!
|
|
559
|
+
if (!Tn(t))
|
|
560
560
|
return `The ${s} has unexpected type of "${Ke(t)}". Expected argument to be an object with the following keys: "${o.join('", "')}"`;
|
|
561
561
|
const i = Object.keys(t).filter((a) => !e.hasOwnProperty(a) && !r[a]);
|
|
562
562
|
if (i.forEach((a) => {
|
|
@@ -632,7 +632,7 @@ function Hf(...t) {
|
|
|
632
632
|
};
|
|
633
633
|
}
|
|
634
634
|
function Hc(t) {
|
|
635
|
-
return
|
|
635
|
+
return Tn(t) && "type" in t && typeof t.type == "string";
|
|
636
636
|
}
|
|
637
637
|
var zc = Symbol.for("immer-nothing"), $i = Symbol.for("immer-draftable"), ce = Symbol.for("immer-state"), zf = process.env.NODE_ENV !== "production" ? [
|
|
638
638
|
// All error codes, starting by 0:
|
|
@@ -678,7 +678,7 @@ var Ut = Object.getPrototypeOf;
|
|
|
678
678
|
function ot(t) {
|
|
679
679
|
return !!t && !!t[ce];
|
|
680
680
|
}
|
|
681
|
-
function
|
|
681
|
+
function Ve(t) {
|
|
682
682
|
var e;
|
|
683
683
|
return t ? Wc(t) || Array.isArray(t) || !!t[$i] || !!((e = t.constructor) != null && e[$i]) || Pr(t) || Dr(t) : !1;
|
|
684
684
|
}
|
|
@@ -752,7 +752,7 @@ function Jo(t, e) {
|
|
|
752
752
|
}
|
|
753
753
|
}
|
|
754
754
|
function Ds(t, e = !1) {
|
|
755
|
-
return Lr(t) || ot(t) || !
|
|
755
|
+
return Lr(t) || ot(t) || !Ve(t) || (Nr(t) > 1 && (t.set = t.add = t.clear = t.delete = Gf), Object.freeze(t), e && Object.entries(t).forEach(([n, r]) => Ds(r, !0))), t;
|
|
756
756
|
}
|
|
757
757
|
function Gf() {
|
|
758
758
|
oe(2);
|
|
@@ -765,9 +765,9 @@ function _t(t) {
|
|
|
765
765
|
const e = Jf[t];
|
|
766
766
|
return e || oe(0, t), e;
|
|
767
767
|
}
|
|
768
|
-
var
|
|
768
|
+
var yn;
|
|
769
769
|
function Gc() {
|
|
770
|
-
return
|
|
770
|
+
return yn;
|
|
771
771
|
}
|
|
772
772
|
function Kf(t, e) {
|
|
773
773
|
return {
|
|
@@ -787,10 +787,10 @@ function Ko(t) {
|
|
|
787
787
|
Xo(t), t.drafts_.forEach(Xf), t.drafts_ = null;
|
|
788
788
|
}
|
|
789
789
|
function Xo(t) {
|
|
790
|
-
t ===
|
|
790
|
+
t === yn && (yn = t.parent_);
|
|
791
791
|
}
|
|
792
792
|
function Fi(t) {
|
|
793
|
-
return
|
|
793
|
+
return yn = Kf(yn, t);
|
|
794
794
|
}
|
|
795
795
|
function Xf(t) {
|
|
796
796
|
const e = t[ce];
|
|
@@ -799,7 +799,7 @@ function Xf(t) {
|
|
|
799
799
|
function Vi(t, e) {
|
|
800
800
|
e.unfinalizedDrafts_ = e.drafts_.length;
|
|
801
801
|
const n = e.drafts_[0];
|
|
802
|
-
return t !== void 0 && t !== n ? (n[ce].modified_ && (Ko(e), oe(4)),
|
|
802
|
+
return t !== void 0 && t !== n ? (n[ce].modified_ && (Ko(e), oe(4)), Ve(t) && (t = gr(e, t), e.parent_ || yr(e, t)), e.patches_ && _t("Patches").generateReplacementPatches_(
|
|
803
803
|
n[ce].base_,
|
|
804
804
|
t,
|
|
805
805
|
e.patches_,
|
|
@@ -844,7 +844,7 @@ function Bi(t, e, n, r, o, s, i) {
|
|
|
844
844
|
else
|
|
845
845
|
return;
|
|
846
846
|
} else i && n.add(o);
|
|
847
|
-
if (
|
|
847
|
+
if (Ve(o) && !Lr(o)) {
|
|
848
848
|
if (!t.immer_.autoFreeze_ && t.unfinalizedDrafts_ < 1)
|
|
849
849
|
return;
|
|
850
850
|
gr(t, o), (!e || !e.scope_.parent_) && typeof r != "symbol" && Object.prototype.propertyIsEnumerable.call(n, r) && yr(t, o);
|
|
@@ -878,7 +878,7 @@ function Yf(t, e) {
|
|
|
878
878
|
isManual_: !1
|
|
879
879
|
};
|
|
880
880
|
let o = r, s = Ls;
|
|
881
|
-
n && (o = [r], s =
|
|
881
|
+
n && (o = [r], s = vn);
|
|
882
882
|
const { revoke: i, proxy: a } = Proxy.revocable(o, s);
|
|
883
883
|
return r.draft_ = a, r.revoke_ = i, a;
|
|
884
884
|
}
|
|
@@ -890,7 +890,7 @@ var Ls = {
|
|
|
890
890
|
if (!Go(n, e))
|
|
891
891
|
return Zf(t, n, e);
|
|
892
892
|
const r = n[e];
|
|
893
|
-
return t.finalized_ || !
|
|
893
|
+
return t.finalized_ || !Ve(r) ? r : r === wo(t.base_, e) ? (bo(t), t.copy_[e] = Zo(r, t)) : r;
|
|
894
894
|
},
|
|
895
895
|
has(t, e) {
|
|
896
896
|
return e in dt(t);
|
|
@@ -937,16 +937,16 @@ var Ls = {
|
|
|
937
937
|
setPrototypeOf() {
|
|
938
938
|
oe(12);
|
|
939
939
|
}
|
|
940
|
-
},
|
|
940
|
+
}, vn = {};
|
|
941
941
|
mr(Ls, (t, e) => {
|
|
942
|
-
|
|
942
|
+
vn[t] = function() {
|
|
943
943
|
return arguments[0] = arguments[0][0], e.apply(this, arguments);
|
|
944
944
|
};
|
|
945
945
|
});
|
|
946
|
-
|
|
947
|
-
return process.env.NODE_ENV !== "production" && isNaN(parseInt(e)) && oe(13),
|
|
946
|
+
vn.deleteProperty = function(t, e) {
|
|
947
|
+
return process.env.NODE_ENV !== "production" && isNaN(parseInt(e)) && oe(13), vn.set.call(this, t, e, void 0);
|
|
948
948
|
};
|
|
949
|
-
|
|
949
|
+
vn.set = function(t, e, n) {
|
|
950
950
|
return process.env.NODE_ENV !== "production" && e !== "length" && isNaN(parseInt(e)) && oe(14), Ls.set.call(this, t[0], e, n, t[0]);
|
|
951
951
|
};
|
|
952
952
|
function wo(t, e) {
|
|
@@ -995,7 +995,7 @@ var Qf = class {
|
|
|
995
995
|
}
|
|
996
996
|
typeof n != "function" && oe(6), r !== void 0 && typeof r != "function" && oe(7);
|
|
997
997
|
let o;
|
|
998
|
-
if (
|
|
998
|
+
if (Ve(e)) {
|
|
999
999
|
const s = Fi(this), i = Zo(e, void 0);
|
|
1000
1000
|
let a = !0;
|
|
1001
1001
|
try {
|
|
@@ -1022,7 +1022,7 @@ var Qf = class {
|
|
|
1022
1022
|
}, typeof (t == null ? void 0 : t.autoFreeze) == "boolean" && this.setAutoFreeze(t.autoFreeze), typeof (t == null ? void 0 : t.useStrictShallowCopy) == "boolean" && this.setUseStrictShallowCopy(t.useStrictShallowCopy);
|
|
1023
1023
|
}
|
|
1024
1024
|
createDraft(t) {
|
|
1025
|
-
|
|
1025
|
+
Ve(t) || oe(8), ot(t) && (t = Kc(t));
|
|
1026
1026
|
const e = Fi(this), n = Zo(t, void 0);
|
|
1027
1027
|
return n[ce].isManual_ = !0, Xo(e), n;
|
|
1028
1028
|
}
|
|
@@ -1073,7 +1073,7 @@ function Kc(t) {
|
|
|
1073
1073
|
return ot(t) || oe(10, t), Xc(t);
|
|
1074
1074
|
}
|
|
1075
1075
|
function Xc(t) {
|
|
1076
|
-
if (!
|
|
1076
|
+
if (!Ve(t) || Lr(t))
|
|
1077
1077
|
return t;
|
|
1078
1078
|
const e = t[ce];
|
|
1079
1079
|
let n;
|
|
@@ -1199,7 +1199,7 @@ var ah = (t, e) => {
|
|
|
1199
1199
|
return this.value;
|
|
1200
1200
|
}
|
|
1201
1201
|
}, lh = typeof WeakRef < "u" ? WeakRef : ch, uh = 0, Wi = 1;
|
|
1202
|
-
function
|
|
1202
|
+
function Fn() {
|
|
1203
1203
|
return {
|
|
1204
1204
|
s: uh,
|
|
1205
1205
|
v: void 0,
|
|
@@ -1208,7 +1208,7 @@ function Un() {
|
|
|
1208
1208
|
};
|
|
1209
1209
|
}
|
|
1210
1210
|
function Ms(t, e = {}) {
|
|
1211
|
-
let n =
|
|
1211
|
+
let n = Fn();
|
|
1212
1212
|
const { resultEqualityCheck: r } = e;
|
|
1213
1213
|
let o, s = 0;
|
|
1214
1214
|
function i() {
|
|
@@ -1221,12 +1221,12 @@ function Ms(t, e = {}) {
|
|
|
1221
1221
|
let m = a.o;
|
|
1222
1222
|
m === null && (a.o = m = /* @__PURE__ */ new WeakMap());
|
|
1223
1223
|
const y = m.get(h);
|
|
1224
|
-
y === void 0 ? (a =
|
|
1224
|
+
y === void 0 ? (a = Fn(), m.set(h, a)) : a = y;
|
|
1225
1225
|
} else {
|
|
1226
1226
|
let m = a.p;
|
|
1227
1227
|
m === null && (a.p = m = /* @__PURE__ */ new Map());
|
|
1228
1228
|
const y = m.get(h);
|
|
1229
|
-
y === void 0 ? (a =
|
|
1229
|
+
y === void 0 ? (a = Fn(), m.set(h, a)) : a = y;
|
|
1230
1230
|
}
|
|
1231
1231
|
}
|
|
1232
1232
|
const u = a;
|
|
@@ -1240,7 +1240,7 @@ function Ms(t, e = {}) {
|
|
|
1240
1240
|
return u.s = Wi, u.v = l, l;
|
|
1241
1241
|
}
|
|
1242
1242
|
return i.clearCache = () => {
|
|
1243
|
-
n =
|
|
1243
|
+
n = Fn(), i.resetResultsCount();
|
|
1244
1244
|
}, i.resultsCount = () => s, i.resetResultsCount = () => {
|
|
1245
1245
|
s = 0;
|
|
1246
1246
|
}, i;
|
|
@@ -1427,7 +1427,7 @@ var tl = class ln extends Array {
|
|
|
1427
1427
|
}
|
|
1428
1428
|
};
|
|
1429
1429
|
function qi(t) {
|
|
1430
|
-
return
|
|
1430
|
+
return Ve(t) ? Yc(t, () => {
|
|
1431
1431
|
}) : t;
|
|
1432
1432
|
}
|
|
1433
1433
|
function Gi(t, e, n) {
|
|
@@ -1538,7 +1538,7 @@ function Sh(t = {}) {
|
|
|
1538
1538
|
}
|
|
1539
1539
|
function ol(t) {
|
|
1540
1540
|
const e = typeof t;
|
|
1541
|
-
return t == null || e === "string" || e === "boolean" || e === "number" || Array.isArray(t) ||
|
|
1541
|
+
return t == null || e === "string" || e === "boolean" || e === "number" || Array.isArray(t) || Tn(t);
|
|
1542
1542
|
}
|
|
1543
1543
|
function Qo(t, e = "", n = ol, r, o = [], s) {
|
|
1544
1544
|
let i;
|
|
@@ -1618,7 +1618,7 @@ Take a look at the reducer(s) handling this action type: ${p.type}.
|
|
|
1618
1618
|
};
|
|
1619
1619
|
}
|
|
1620
1620
|
}
|
|
1621
|
-
function
|
|
1621
|
+
function Vn(t) {
|
|
1622
1622
|
return typeof t == "boolean";
|
|
1623
1623
|
}
|
|
1624
1624
|
var xh = () => function(e) {
|
|
@@ -1629,18 +1629,18 @@ var xh = () => function(e) {
|
|
|
1629
1629
|
actionCreatorCheck: s = !0
|
|
1630
1630
|
} = e ?? {};
|
|
1631
1631
|
let i = new tl();
|
|
1632
|
-
if (n && (
|
|
1632
|
+
if (n && (Vn(n) ? i.push(hh) : i.push(ph(n.extraArgument))), process.env.NODE_ENV !== "production") {
|
|
1633
1633
|
if (r) {
|
|
1634
1634
|
let a = {};
|
|
1635
|
-
|
|
1635
|
+
Vn(r) || (a = r), i.unshift(Sh(a));
|
|
1636
1636
|
}
|
|
1637
1637
|
if (o) {
|
|
1638
1638
|
let a = {};
|
|
1639
|
-
|
|
1639
|
+
Vn(o) || (a = o), i.push(Ch(a));
|
|
1640
1640
|
}
|
|
1641
1641
|
if (s) {
|
|
1642
1642
|
let a = {};
|
|
1643
|
-
|
|
1643
|
+
Vn(s) || (a = s), i.unshift(bh(a));
|
|
1644
1644
|
}
|
|
1645
1645
|
}
|
|
1646
1646
|
return i;
|
|
@@ -1692,7 +1692,7 @@ function Ah(t) {
|
|
|
1692
1692
|
let a;
|
|
1693
1693
|
if (typeof n == "function")
|
|
1694
1694
|
a = n;
|
|
1695
|
-
else if (
|
|
1695
|
+
else if (Tn(n))
|
|
1696
1696
|
a = Bc(n);
|
|
1697
1697
|
else
|
|
1698
1698
|
throw new Error(process.env.NODE_ENV === "production" ? $(1) : "`reducer` is a required argument, and must be a function or an object of functions that can be passed to combineReducers");
|
|
@@ -1783,7 +1783,7 @@ function Nh(t, e) {
|
|
|
1783
1783
|
const p = d(l, c);
|
|
1784
1784
|
return p === void 0 ? l : p;
|
|
1785
1785
|
} else {
|
|
1786
|
-
if (
|
|
1786
|
+
if (Ve(l))
|
|
1787
1787
|
return Yc(l, (f) => d(f, c));
|
|
1788
1788
|
{
|
|
1789
1789
|
const f = d(l, c);
|
|
@@ -2019,13 +2019,13 @@ function Hh({
|
|
|
2019
2019
|
options: l
|
|
2020
2020
|
} = n, d = o(t, s, l);
|
|
2021
2021
|
r.exposeAction(e, d), i && r.addCase(d.fulfilled, i), a && r.addCase(d.pending, a), c && r.addCase(d.rejected, c), u && r.addMatcher(d.settled, u), r.exposeCaseReducer(e, {
|
|
2022
|
-
fulfilled: i ||
|
|
2023
|
-
pending: a ||
|
|
2024
|
-
rejected: c ||
|
|
2025
|
-
settled: u ||
|
|
2022
|
+
fulfilled: i || Bn,
|
|
2023
|
+
pending: a || Bn,
|
|
2024
|
+
rejected: c || Bn,
|
|
2025
|
+
settled: u || Bn
|
|
2026
2026
|
});
|
|
2027
2027
|
}
|
|
2028
|
-
function
|
|
2028
|
+
function Bn() {
|
|
2029
2029
|
}
|
|
2030
2030
|
var zh = (t, e) => {
|
|
2031
2031
|
if (typeof t != "function")
|
|
@@ -2078,9 +2078,9 @@ var Jh = Object.assign(Ft(`${$s}/remove`), {
|
|
|
2078
2078
|
function $(t) {
|
|
2079
2079
|
return `Minified Redux Toolkit error #${t}; visit https://redux-toolkit.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `;
|
|
2080
2080
|
}
|
|
2081
|
-
var
|
|
2081
|
+
var be = function(e) {
|
|
2082
2082
|
return "@@redux-saga/" + e;
|
|
2083
|
-
}, Kh = /* @__PURE__ */
|
|
2083
|
+
}, Kh = /* @__PURE__ */ be("CANCEL_PROMISE"), cl = /* @__PURE__ */ be("CHANNEL_END"), Xh = /* @__PURE__ */ be("IO"), Ji = /* @__PURE__ */ be("MATCH"), Yh = /* @__PURE__ */ be("MULTICAST"), ll = /* @__PURE__ */ be("SAGA_ACTION"), Zh = /* @__PURE__ */ be("SELF_CANCELLATION"), Qh = /* @__PURE__ */ be("TASK"), At = /* @__PURE__ */ be("TASK_CANCEL"), ul = /* @__PURE__ */ be("TERMINATE"), ep = /* @__PURE__ */ be("LOCATION");
|
|
2084
2084
|
function vr() {
|
|
2085
2085
|
return vr = Object.assign ? Object.assign.bind() : function(t) {
|
|
2086
2086
|
for (var e = 1; e < arguments.length; e++) {
|
|
@@ -2466,15 +2466,15 @@ function kl() {
|
|
|
2466
2466
|
});
|
|
2467
2467
|
}, t;
|
|
2468
2468
|
}
|
|
2469
|
-
var ht = 0,
|
|
2469
|
+
var ht = 0, De = 1, tr = 2, Rl = 3;
|
|
2470
2470
|
function zs(t, e) {
|
|
2471
2471
|
var n = t[Kh];
|
|
2472
2472
|
z(n) && (e.cancel = n), t.then(e, function(r) {
|
|
2473
2473
|
e(r, !0);
|
|
2474
2474
|
});
|
|
2475
2475
|
}
|
|
2476
|
-
var
|
|
2477
|
-
return ++
|
|
2476
|
+
var In = 0, Al = function() {
|
|
2477
|
+
return ++In;
|
|
2478
2478
|
}, K;
|
|
2479
2479
|
function Kp(t, e) {
|
|
2480
2480
|
return t.isSagaIterator ? {
|
|
@@ -2549,7 +2549,7 @@ function Qp(t, e, n, r) {
|
|
|
2549
2549
|
t,
|
|
2550
2550
|
c,
|
|
2551
2551
|
a.context,
|
|
2552
|
-
|
|
2552
|
+
In,
|
|
2553
2553
|
Fs(s),
|
|
2554
2554
|
/* isRoot */
|
|
2555
2555
|
!1,
|
|
@@ -2580,7 +2580,7 @@ function tm(t, e, n, r) {
|
|
|
2580
2580
|
args: i
|
|
2581
2581
|
}), l = Kp(u, s);
|
|
2582
2582
|
_l(function() {
|
|
2583
|
-
var d = Fr(t, u, c.context,
|
|
2583
|
+
var d = Fr(t, u, c.context, In, l, a, void 0);
|
|
2584
2584
|
a ? n(d) : d.isRunning() ? (c.queue.addTask(d), n(d)) : d.isAborted() ? c.queue.abort(d.error()) : n(d);
|
|
2585
2585
|
});
|
|
2586
2586
|
}
|
|
@@ -2617,7 +2617,7 @@ function rm(t, e, n, r) {
|
|
|
2617
2617
|
e === Zh ? Eo(o) : st(e) ? e.forEach(Eo) : Eo(e), n();
|
|
2618
2618
|
}
|
|
2619
2619
|
function om(t, e, n, r) {
|
|
2620
|
-
var o = r.digestEffect, s =
|
|
2620
|
+
var o = r.digestEffect, s = In, i = Object.keys(e);
|
|
2621
2621
|
if (i.length === 0) {
|
|
2622
2622
|
n(st(e) ? [] : {});
|
|
2623
2623
|
return;
|
|
@@ -2628,7 +2628,7 @@ function om(t, e, n, r) {
|
|
|
2628
2628
|
});
|
|
2629
2629
|
}
|
|
2630
2630
|
function sm(t, e, n, r) {
|
|
2631
|
-
var o = r.digestEffect, s =
|
|
2631
|
+
var o = r.digestEffect, s = In, i = Object.keys(e), a = st(e) ? hl(i.length) : {}, c = {}, u = !1;
|
|
2632
2632
|
i.forEach(function(l) {
|
|
2633
2633
|
var d = function(p, h) {
|
|
2634
2634
|
u || (h || gl(p) ? (n.cancel(), n(p, h)) : (n.cancel(), u = !0, a[l] = p, n(a)));
|
|
@@ -2746,13 +2746,13 @@ function wm(t, e, n, r, o, s, i) {
|
|
|
2746
2746
|
}));
|
|
2747
2747
|
}, y);
|
|
2748
2748
|
function m() {
|
|
2749
|
-
c === ht && (c =
|
|
2749
|
+
c === ht && (c = De, h.cancelAll(), y(At, !1));
|
|
2750
2750
|
}
|
|
2751
2751
|
function y(S, C) {
|
|
2752
2752
|
if (!C)
|
|
2753
|
-
S === At ? c =
|
|
2753
|
+
S === At ? c = De : c !== De && (c = Rl), u = S, d && d.resolve(S);
|
|
2754
2754
|
else {
|
|
2755
|
-
if (c =
|
|
2755
|
+
if (c = tr, gm({
|
|
2756
2756
|
meta: o,
|
|
2757
2757
|
cancelledTasks: f
|
|
2758
2758
|
}), w.isRoot) {
|
|
@@ -2771,14 +2771,14 @@ function wm(t, e, n, r, o, s, i) {
|
|
|
2771
2771
|
process.env.NODE_ENV !== "production" && Y(S, dl, fl("task", S)), Us(p, S);
|
|
2772
2772
|
}
|
|
2773
2773
|
function x() {
|
|
2774
|
-
return d || (d = Vp(), c ===
|
|
2774
|
+
return d || (d = Vp(), c === tr ? d.reject(l) : c !== ht && d.resolve(u)), d.promise;
|
|
2775
2775
|
}
|
|
2776
2776
|
var w = (a = {}, a[Qh] = !0, a.id = r, a.meta = o, a.isRoot = s, a.context = p, a.joiners = [], a.queue = h, a.cancel = m, a.cont = i, a.end = y, a.setContext = v, a.toPromise = x, a.isRunning = function() {
|
|
2777
2777
|
return c === ht;
|
|
2778
2778
|
}, a.isCancelled = function() {
|
|
2779
|
-
return c ===
|
|
2779
|
+
return c === De || c === ht && e.status === De;
|
|
2780
2780
|
}, a.isAborted = function() {
|
|
2781
|
-
return c ===
|
|
2781
|
+
return c === tr;
|
|
2782
2782
|
}, a.result = function() {
|
|
2783
2783
|
return u;
|
|
2784
2784
|
}, a.error = function() {
|
|
@@ -2800,22 +2800,22 @@ function Fr(t, e, n, r, o, s, i) {
|
|
|
2800
2800
|
digestEffect: h
|
|
2801
2801
|
};
|
|
2802
2802
|
function d() {
|
|
2803
|
-
c.status === ht && (c.status =
|
|
2803
|
+
c.status === ht && (c.status = De, f(At));
|
|
2804
2804
|
}
|
|
2805
2805
|
return i && (i.cancel = u.cancel), f(), u;
|
|
2806
2806
|
function f(m, y) {
|
|
2807
2807
|
try {
|
|
2808
2808
|
var v;
|
|
2809
|
-
y ? (v = e.throw(m), Nl()) : ml(m) ? (c.status =
|
|
2809
|
+
y ? (v = e.throw(m), Nl()) : ml(m) ? (c.status = De, f.cancel(), v = z(e.return) ? e.return(At) : {
|
|
2810
2810
|
done: !0,
|
|
2811
2811
|
value: At
|
|
2812
2812
|
}) : pl(m) ? v = z(e.return) ? e.return() : {
|
|
2813
2813
|
done: !0
|
|
2814
|
-
} : v = e.next(m), v.done ? (c.status !==
|
|
2814
|
+
} : v = e.next(m), v.done ? (c.status !== De && (c.status = Rl), c.cont(v.value)) : h(v.value, r, f);
|
|
2815
2815
|
} catch (x) {
|
|
2816
|
-
if (c.status ===
|
|
2816
|
+
if (c.status === De)
|
|
2817
2817
|
throw x;
|
|
2818
|
-
c.status =
|
|
2818
|
+
c.status = tr, c.cont(x, !0);
|
|
2819
2819
|
}
|
|
2820
2820
|
}
|
|
2821
2821
|
function p(m, y, v) {
|
|
@@ -3049,7 +3049,7 @@ const Sm = {
|
|
|
3049
3049
|
t.config = e.payload;
|
|
3050
3050
|
}
|
|
3051
3051
|
}
|
|
3052
|
-
}), { setUser: Nt, setDefaultChatRooms: QC, setConfig: km } = Dl.actions, Rm = Dl.reducer, Qi = (t, e) => new Date(t) < new Date(e),
|
|
3052
|
+
}), { setUser: Nt, setDefaultChatRooms: QC, setConfig: km } = Dl.actions, Rm = Dl.reducer, Qi = (t, e) => new Date(t) < new Date(e), Hn = (t, e) => new Date(t) > new Date(e), Am = {
|
|
3053
3053
|
rooms: {},
|
|
3054
3054
|
activeRoomJID: null,
|
|
3055
3055
|
isLoading: !1
|
|
@@ -3083,18 +3083,18 @@ const Sm = {
|
|
|
3083
3083
|
else {
|
|
3084
3084
|
const a = s[s.length - 1], c = s[0], u = a.date, l = c.date, d = r.date;
|
|
3085
3085
|
if (!i) {
|
|
3086
|
-
if (
|
|
3086
|
+
if (Hn(d.toString(), u.toString())) {
|
|
3087
3087
|
if (s.push(r), t.rooms[n].lastViewedTimestamp && !s.some((f) => f.id === "delimiter-new")) {
|
|
3088
3088
|
const f = new Date(t.rooms[n].lastViewedTimestamp) || /* @__PURE__ */ new Date();
|
|
3089
|
-
if (
|
|
3089
|
+
if (Hn(
|
|
3090
3090
|
d.toString(),
|
|
3091
3091
|
f.toString()
|
|
3092
|
-
),
|
|
3092
|
+
), Hn(
|
|
3093
3093
|
d.toString(),
|
|
3094
3094
|
f.toString()
|
|
3095
3095
|
)) {
|
|
3096
3096
|
const p = s.findIndex(
|
|
3097
|
-
(h) =>
|
|
3097
|
+
(h) => Hn(
|
|
3098
3098
|
h.date.toString(),
|
|
3099
3099
|
f.toString()
|
|
3100
3100
|
)
|
|
@@ -3164,12 +3164,12 @@ const Sm = {
|
|
|
3164
3164
|
setIsLoading: Ye,
|
|
3165
3165
|
setLastViewedTimestamp: Pm,
|
|
3166
3166
|
setRoomNoMessages: rx,
|
|
3167
|
-
setCurrentRoom:
|
|
3167
|
+
setCurrentRoom: hn
|
|
3168
3168
|
} = Ll.actions, Dm = Ll.reducer, Lm = _m(), Mm = Bc({
|
|
3169
3169
|
loginStore: xm,
|
|
3170
3170
|
chatSettingStore: Rm,
|
|
3171
3171
|
rooms: Dm
|
|
3172
|
-
}),
|
|
3172
|
+
}), me = Ah({
|
|
3173
3173
|
reducer: Mm,
|
|
3174
3174
|
middleware: (t) => t({
|
|
3175
3175
|
serializableCheck: {
|
|
@@ -3179,7 +3179,7 @@ const Sm = {
|
|
|
3179
3179
|
}
|
|
3180
3180
|
}).concat(Lm)
|
|
3181
3181
|
});
|
|
3182
|
-
var Vr = {}, Br = {},
|
|
3182
|
+
var Vr = {}, Br = {}, Ee = {}, Gs = class extends Error {
|
|
3183
3183
|
constructor(e) {
|
|
3184
3184
|
super(e), this.name = "TimeoutError";
|
|
3185
3185
|
}
|
|
@@ -3449,24 +3449,24 @@ var zr = Js.exports, Jm = function() {
|
|
|
3449
3449
|
});
|
|
3450
3450
|
};
|
|
3451
3451
|
const Km = Um, Xm = jl, Ym = Gs, Zm = Vm, Qm = zr, eg = Jm;
|
|
3452
|
-
|
|
3453
|
-
|
|
3454
|
-
|
|
3455
|
-
|
|
3456
|
-
|
|
3457
|
-
|
|
3458
|
-
var ze = { exports: {} },
|
|
3459
|
-
|
|
3452
|
+
Ee.EventEmitter = Qm;
|
|
3453
|
+
Ee.timeout = Km;
|
|
3454
|
+
Ee.delay = Xm;
|
|
3455
|
+
Ee.TimeoutError = Ym;
|
|
3456
|
+
Ee.promise = Zm;
|
|
3457
|
+
Ee.Deferred = eg;
|
|
3458
|
+
var ze = { exports: {} }, kn = {};
|
|
3459
|
+
kn.detect = function(e) {
|
|
3460
3460
|
return !(!e || e.replace(/\\20/g, "").replace(/\\22/g, "").replace(/\\26/g, "").replace(/\\27/g, "").replace(/\\2f/g, "").replace(/\\3a/g, "").replace(/\\3c/g, "").replace(/\\3e/g, "").replace(/\\40/g, "").replace(/\\5c/g, "").search(/[ "&'/:<>@\\]/g) === -1);
|
|
3461
3461
|
};
|
|
3462
|
-
|
|
3462
|
+
kn.escape = function(e) {
|
|
3463
3463
|
return e === null ? null : e.replace(/^\s+|\s+$/g, "").replace(/\\/g, "\\5c").replace(/ /g, "\\20").replace(/"/g, "\\22").replace(/&/g, "\\26").replace(/'/g, "\\27").replace(/\//g, "\\2f").replace(/:/g, "\\3a").replace(/</g, "\\3c").replace(/>/g, "\\3e").replace(/@/g, "\\40");
|
|
3464
3464
|
};
|
|
3465
|
-
|
|
3465
|
+
kn.unescape = function(e) {
|
|
3466
3466
|
return e === null ? null : e.replace(/\\20/g, " ").replace(/\\22/g, '"').replace(/\\26/g, "&").replace(/\\27/g, "'").replace(/\\2f/g, "/").replace(/\\3a/g, ":").replace(/\\3c/g, "<").replace(/\\3e/g, ">").replace(/\\40/g, "@").replace(/\\5c/g, "\\");
|
|
3467
3467
|
};
|
|
3468
|
-
const _o =
|
|
3469
|
-
let
|
|
3468
|
+
const _o = kn;
|
|
3469
|
+
let Te = class ql {
|
|
3470
3470
|
constructor(e, n, r) {
|
|
3471
3471
|
if (typeof n != "string" || !n)
|
|
3472
3472
|
throw new TypeError("Invalid domain.");
|
|
@@ -3520,19 +3520,19 @@ let xe = class ql {
|
|
|
3520
3520
|
return this._resource;
|
|
3521
3521
|
}
|
|
3522
3522
|
};
|
|
3523
|
-
Object.defineProperty(
|
|
3524
|
-
get:
|
|
3525
|
-
set:
|
|
3523
|
+
Object.defineProperty(Te.prototype, "local", {
|
|
3524
|
+
get: Te.prototype.getLocal,
|
|
3525
|
+
set: Te.prototype.setLocal
|
|
3526
3526
|
});
|
|
3527
|
-
Object.defineProperty(
|
|
3528
|
-
get:
|
|
3529
|
-
set:
|
|
3527
|
+
Object.defineProperty(Te.prototype, "domain", {
|
|
3528
|
+
get: Te.prototype.getDomain,
|
|
3529
|
+
set: Te.prototype.setDomain
|
|
3530
3530
|
});
|
|
3531
|
-
Object.defineProperty(
|
|
3532
|
-
get:
|
|
3533
|
-
set:
|
|
3531
|
+
Object.defineProperty(Te.prototype, "resource", {
|
|
3532
|
+
get: Te.prototype.getResource,
|
|
3533
|
+
set: Te.prototype.setResource
|
|
3534
3534
|
});
|
|
3535
|
-
var Gl =
|
|
3535
|
+
var Gl = Te;
|
|
3536
3536
|
const tg = Gl;
|
|
3537
3537
|
var ng = function(e) {
|
|
3538
3538
|
let n, r;
|
|
@@ -3541,7 +3541,7 @@ var ng = function(e) {
|
|
|
3541
3541
|
const s = e.indexOf("@");
|
|
3542
3542
|
return s !== -1 && (n = e.slice(0, s), e = e.slice(s + 1)), new tg(n, e, r);
|
|
3543
3543
|
};
|
|
3544
|
-
const Jl = Gl, Ks =
|
|
3544
|
+
const Jl = Gl, Ks = kn, Kl = ng;
|
|
3545
3545
|
function Xl(...t) {
|
|
3546
3546
|
return !t[1] && !t[2] ? Kl(...t) : new Jl(...t);
|
|
3547
3547
|
}
|
|
@@ -3979,7 +3979,7 @@ var ru = nu;
|
|
|
3979
3979
|
XMLError: c
|
|
3980
3980
|
});
|
|
3981
3981
|
})(Yl);
|
|
3982
|
-
var
|
|
3982
|
+
var Oe = Yl.exports;
|
|
3983
3983
|
let vg = class extends Error {
|
|
3984
3984
|
constructor(e, n, r) {
|
|
3985
3985
|
super(e + (n ? ` - ${n}` : "")), this.name = "XMPPError", this.condition = e, this.text = n, this.application = r;
|
|
@@ -4019,7 +4019,7 @@ var Eg = bg, ou = { exports: {} };
|
|
|
4019
4019
|
Object.assign(t.exports, { parseURI: e, parseHost: n, parseService: r });
|
|
4020
4020
|
})(ou);
|
|
4021
4021
|
var _g = ou.exports;
|
|
4022
|
-
const { EventEmitter: Sg, promise: ut } =
|
|
4022
|
+
const { EventEmitter: Sg, promise: ut } = Ee, Cg = Wr, Io = Oe, xg = Eg, { parseHost: Tg, parseService: Ig } = _g, kg = "urn:ietf:params:xml:ns:xmpp-streams", Rg = "http://etherx.jabber.org/streams";
|
|
4023
4023
|
let qr = class extends Sg {
|
|
4024
4024
|
constructor(e = {}) {
|
|
4025
4025
|
super(), this.jid = null, this.timeout = 2e3, this.options = e, this.socketListeners = /* @__PURE__ */ Object.create(null), this.parserListeners = /* @__PURE__ */ Object.create(null), this.status = "offline", this.socket = null, this.parser = null, this.root = null;
|
|
@@ -4286,14 +4286,14 @@ let iu = class extends Ag {
|
|
|
4286
4286
|
};
|
|
4287
4287
|
iu.prototype.NS = "jabber:client";
|
|
4288
4288
|
var Og = iu;
|
|
4289
|
-
const Ng = Og, Pg =
|
|
4289
|
+
const Ng = Og, Pg = Oe, Dg = Wr;
|
|
4290
4290
|
Br.Client = Ng;
|
|
4291
4291
|
Br.xml = Pg;
|
|
4292
4292
|
Br.jid = Dg;
|
|
4293
4293
|
var Lg = function(e) {
|
|
4294
4294
|
return (e.split("://")[1] || e).split(":")[0].split("/")[0];
|
|
4295
4295
|
};
|
|
4296
|
-
const { EventEmitter: Mg } =
|
|
4296
|
+
const { EventEmitter: Mg } = Ee;
|
|
4297
4297
|
class jg extends Mg {
|
|
4298
4298
|
constructor(e) {
|
|
4299
4299
|
super(), this.delay = 1e3, this.entity = e, this._timeout = null;
|
|
@@ -4368,7 +4368,7 @@ let Bg = class extends Vg {
|
|
|
4368
4368
|
}
|
|
4369
4369
|
};
|
|
4370
4370
|
var Hg = Bg;
|
|
4371
|
-
const { Parser: zg, Element: Wg, XMLError: qg } =
|
|
4371
|
+
const { Parser: zg, Element: Wg, XMLError: qg } = Oe;
|
|
4372
4372
|
var Gg = class extends zg {
|
|
4373
4373
|
onStartElement(e, n) {
|
|
4374
4374
|
const r = new Wg(e, n), { cursor: o } = this;
|
|
@@ -4387,7 +4387,7 @@ var Gg = class extends zg {
|
|
|
4387
4387
|
n.is("open", "urn:ietf:params:xml:ns:xmpp-framing") ? this.emit("start", n) : n.is("close", "urn:ietf:params:xml:ns:xmpp-framing") ? this.emit("end", n) : this.emit("element", n), this.cursor = null;
|
|
4388
4388
|
}
|
|
4389
4389
|
};
|
|
4390
|
-
const Jg = Hg, Kg = su, Xg =
|
|
4390
|
+
const Jg = Hg, Kg = su, Xg = Oe, Yg = Gg, da = "urn:ietf:params:xml:ns:xmpp-framing";
|
|
4391
4391
|
let Gr = class extends Kg {
|
|
4392
4392
|
send(e, ...n) {
|
|
4393
4393
|
return !e.attrs.xmlns && super.isStanza(e) && (e.attrs.xmlns = "jabber:client"), super.send(e, ...n);
|
|
@@ -4523,7 +4523,7 @@ let yy = class extends gy {
|
|
|
4523
4523
|
}
|
|
4524
4524
|
};
|
|
4525
4525
|
var vy = yy;
|
|
4526
|
-
const wy = my, by = vy, { Deferred: Ey } =
|
|
4526
|
+
const wy = my, by = vy, { Deferred: Ey } = Ee, _y = Ee.timeout, Sy = Oe;
|
|
4527
4527
|
function Cy({ name: t, type: e }) {
|
|
4528
4528
|
return !(t !== "iq" || e !== "error" && e !== "result");
|
|
4529
4529
|
}
|
|
@@ -4572,7 +4572,7 @@ var Ty = function(...e) {
|
|
|
4572
4572
|
const n = new xy(...e);
|
|
4573
4573
|
return n.start(), n;
|
|
4574
4574
|
};
|
|
4575
|
-
const
|
|
4575
|
+
const wn = Oe, Iy = "urn:ietf:params:xml:ns:xmpp-stanzas";
|
|
4576
4576
|
function ky({ name: t, type: e }) {
|
|
4577
4577
|
return !(t !== "iq" || e === "error" || e === "result");
|
|
4578
4578
|
}
|
|
@@ -4580,7 +4580,7 @@ function Ry({ type: t }, e, n) {
|
|
|
4580
4580
|
return !(t !== "get" && t !== "set" || e.length !== 1 || !n);
|
|
4581
4581
|
}
|
|
4582
4582
|
function lu({ stanza: t }) {
|
|
4583
|
-
return
|
|
4583
|
+
return wn("iq", {
|
|
4584
4584
|
to: t.attrs.from,
|
|
4585
4585
|
from: t.attrs.to,
|
|
4586
4586
|
id: t.attrs.id
|
|
@@ -4595,7 +4595,7 @@ function ma(t, e, n) {
|
|
|
4595
4595
|
return r.attrs.type = "error", n && r.append(n), r.append(e), r;
|
|
4596
4596
|
}
|
|
4597
4597
|
function Ro(t, e) {
|
|
4598
|
-
return
|
|
4598
|
+
return wn("error", { type: t }, wn(e, Iy));
|
|
4599
4599
|
}
|
|
4600
4600
|
function Oy(t) {
|
|
4601
4601
|
return async function(n, r) {
|
|
@@ -4610,9 +4610,9 @@ function Oy(t) {
|
|
|
4610
4610
|
} catch (c) {
|
|
4611
4611
|
t.emit("error", c), a = Ro("cancel", "internal-server-error");
|
|
4612
4612
|
}
|
|
4613
|
-
return a || (a = Ro("cancel", "service-unavailable")), a instanceof
|
|
4613
|
+
return a || (a = Ro("cancel", "service-unavailable")), a instanceof wn.Element && a.is("error") ? ma(n, a, i) : Ay(
|
|
4614
4614
|
n,
|
|
4615
|
-
a instanceof
|
|
4615
|
+
a instanceof wn.Element ? a : void 0
|
|
4616
4616
|
);
|
|
4617
4617
|
};
|
|
4618
4618
|
}
|
|
@@ -4643,12 +4643,12 @@ var Dy = function(e) {
|
|
|
4643
4643
|
throw o;
|
|
4644
4644
|
return r;
|
|
4645
4645
|
}, du = {};
|
|
4646
|
-
function
|
|
4646
|
+
function zn(t) {
|
|
4647
4647
|
return t.startsWith("https") || t.startsWith("wss");
|
|
4648
4648
|
}
|
|
4649
4649
|
du.compare = function(e, n) {
|
|
4650
4650
|
let r;
|
|
4651
|
-
if (
|
|
4651
|
+
if (zn(e.uri) && !zn(n.uri) ? r = -1 : !zn(e.uri) && zn(n.uri) ? r = 1 : r = 0, r !== 0)
|
|
4652
4652
|
return r;
|
|
4653
4653
|
let o;
|
|
4654
4654
|
return e.method === n.method ? o = 0 : e.method === "websocket" ? o = -1 : n.method === "websocket" ? o = 1 : e.method === "xbosh" ? o = -1 : n.method === "xbosh" ? o = 1 : e.method === "httppoll" ? o = -1 : n.method === "httppoll" ? o = 1 : o = 0, o !== 0 ? o : 0;
|
|
@@ -4679,7 +4679,7 @@ Jr.exports = function(...e) {
|
|
|
4679
4679
|
br.resolve && (Jr.exports.dns = br);
|
|
4680
4680
|
Jr.exports.http = fu;
|
|
4681
4681
|
var Uy = Jr.exports;
|
|
4682
|
-
const Fy = Uy, { promise: Vy } =
|
|
4682
|
+
const Fy = Uy, { promise: Vy } = Ee;
|
|
4683
4683
|
async function By(t) {
|
|
4684
4684
|
const e = await Fy(t, {
|
|
4685
4685
|
srv: [
|
|
@@ -4743,7 +4743,7 @@ let qy = class extends Wy {
|
|
|
4743
4743
|
super(...e), this.name = "SASLError";
|
|
4744
4744
|
}
|
|
4745
4745
|
};
|
|
4746
|
-
var Gy = qy, os = { exports: {} },
|
|
4746
|
+
var Gy = qy, os = { exports: {} }, Wn = { exports: {} }, ya;
|
|
4747
4747
|
function Jy() {
|
|
4748
4748
|
return ya || (ya = 1, function(t, e) {
|
|
4749
4749
|
(function(n, r) {
|
|
@@ -4764,7 +4764,7 @@ function Jy() {
|
|
|
4764
4764
|
return null;
|
|
4765
4765
|
}, r.exports = o;
|
|
4766
4766
|
});
|
|
4767
|
-
}(
|
|
4767
|
+
}(Wn, Wn.exports)), Wn.exports;
|
|
4768
4768
|
}
|
|
4769
4769
|
(function(t, e) {
|
|
4770
4770
|
(function(n, r) {
|
|
@@ -4778,9 +4778,9 @@ function Jy() {
|
|
|
4778
4778
|
});
|
|
4779
4779
|
})(os, os.exports);
|
|
4780
4780
|
var Ky = os.exports;
|
|
4781
|
-
const { encode: va, decode: Xy } = Qs, Yy = Gy, wa =
|
|
4781
|
+
const { encode: va, decode: Xy } = Qs, Yy = Gy, wa = Oe, Zy = Ky, pn = "urn:ietf:params:xml:ns:xmpp-sasl";
|
|
4782
4782
|
function Qy(t) {
|
|
4783
|
-
return t.getChild("mechanisms",
|
|
4783
|
+
return t.getChild("mechanisms", pn).children.map((e) => e.text());
|
|
4784
4784
|
}
|
|
4785
4785
|
async function ba(t, e, n, r) {
|
|
4786
4786
|
const o = t.create([n]);
|
|
@@ -4798,14 +4798,14 @@ async function ba(t, e, n, r) {
|
|
|
4798
4798
|
};
|
|
4799
4799
|
return new Promise((a, c) => {
|
|
4800
4800
|
const u = (l) => {
|
|
4801
|
-
if (l.attrs.xmlns ===
|
|
4801
|
+
if (l.attrs.xmlns === pn) {
|
|
4802
4802
|
if (l.name === "challenge") {
|
|
4803
4803
|
o.challenge(Xy(l.text()));
|
|
4804
4804
|
const d = o.response(i);
|
|
4805
4805
|
e.send(
|
|
4806
4806
|
wa(
|
|
4807
4807
|
"response",
|
|
4808
|
-
{ xmlns:
|
|
4808
|
+
{ xmlns: pn, mechanism: o.name },
|
|
4809
4809
|
typeof d == "string" ? va(d) : ""
|
|
4810
4810
|
)
|
|
4811
4811
|
);
|
|
@@ -4817,7 +4817,7 @@ async function ba(t, e, n, r) {
|
|
|
4817
4817
|
e.on("nonza", u), o.clientFirst && e.send(
|
|
4818
4818
|
wa(
|
|
4819
4819
|
"auth",
|
|
4820
|
-
{ xmlns:
|
|
4820
|
+
{ xmlns: pn, mechanism: o.name },
|
|
4821
4821
|
va(o.response(i))
|
|
4822
4822
|
)
|
|
4823
4823
|
);
|
|
@@ -4825,7 +4825,7 @@ async function ba(t, e, n, r) {
|
|
|
4825
4825
|
}
|
|
4826
4826
|
var ev = function({ streamFeatures: e }, n) {
|
|
4827
4827
|
const r = new Zy();
|
|
4828
|
-
return e.use("mechanisms",
|
|
4828
|
+
return e.use("mechanisms", pn, async ({ stanza: o, entity: s }) => {
|
|
4829
4829
|
const i = Qy(o);
|
|
4830
4830
|
let u = r._mechs.map(({ name: l }) => l).filter((l) => i.includes(l))[0];
|
|
4831
4831
|
typeof n == "function" ? await n(
|
|
@@ -4838,7 +4838,7 @@ var ev = function({ streamFeatures: e }, n) {
|
|
|
4838
4838
|
}
|
|
4839
4839
|
};
|
|
4840
4840
|
};
|
|
4841
|
-
const Ea =
|
|
4841
|
+
const Ea = Oe, hu = "urn:ietf:params:xml:ns:xmpp-bind";
|
|
4842
4842
|
function tv(t) {
|
|
4843
4843
|
return Ea("bind", { xmlns: hu }, t && Ea("resource", {}, t));
|
|
4844
4844
|
}
|
|
@@ -4854,19 +4854,19 @@ function nv({ iqCaller: t }, e) {
|
|
|
4854
4854
|
var rv = function({ streamFeatures: e, iqCaller: n }, r) {
|
|
4855
4855
|
e.use("bind", hu, nv({ iqCaller: n }, r));
|
|
4856
4856
|
};
|
|
4857
|
-
const ov =
|
|
4857
|
+
const ov = Oe, Sa = "urn:ietf:params:xml:ns:xmpp-session";
|
|
4858
4858
|
var sv = function({ iqCaller: e, streamFeatures: n }) {
|
|
4859
4859
|
n.use("session", Sa, async (r, o, s) => (s.getChild("optional") || await e.set(ov("session", Sa)), o()));
|
|
4860
4860
|
};
|
|
4861
|
-
const ei =
|
|
4861
|
+
const ei = Oe, Le = "urn:xmpp:sm:3";
|
|
4862
4862
|
async function iv(t, e, n) {
|
|
4863
4863
|
return t.send(
|
|
4864
|
-
ei("enable", { xmlns:
|
|
4864
|
+
ei("enable", { xmlns: Le, max: n, resume: e ? "true" : void 0 })
|
|
4865
4865
|
), new Promise((r, o) => {
|
|
4866
4866
|
function s(i) {
|
|
4867
|
-
if (i.is("enabled",
|
|
4867
|
+
if (i.is("enabled", Le))
|
|
4868
4868
|
r(i);
|
|
4869
|
-
else if (i.is("failed",
|
|
4869
|
+
else if (i.is("failed", Le))
|
|
4870
4870
|
o(i);
|
|
4871
4871
|
else
|
|
4872
4872
|
return;
|
|
@@ -4877,9 +4877,9 @@ async function iv(t, e, n) {
|
|
|
4877
4877
|
}
|
|
4878
4878
|
async function av(t, e, n) {
|
|
4879
4879
|
const r = await t.sendReceive(
|
|
4880
|
-
ei("resume", { xmlns:
|
|
4880
|
+
ei("resume", { xmlns: Le, h: e, previd: n })
|
|
4881
4881
|
);
|
|
4882
|
-
if (!r.is("resumed",
|
|
4882
|
+
if (!r.is("resumed", Le))
|
|
4883
4883
|
throw r;
|
|
4884
4884
|
return r;
|
|
4885
4885
|
}
|
|
@@ -4904,9 +4904,9 @@ var cv = function({
|
|
|
4904
4904
|
s.outbound = 0, s.inbound = 0, s.enabled = !1, s.id = "";
|
|
4905
4905
|
}), r.use((i, a) => {
|
|
4906
4906
|
const { stanza: c } = i;
|
|
4907
|
-
return ["presence", "message", "iq"].includes(c.name) ? s.inbound += 1 : c.is("r",
|
|
4908
|
-
}) : c.is("a",
|
|
4909
|
-
}), e.use("sm",
|
|
4907
|
+
return ["presence", "message", "iq"].includes(c.name) ? s.inbound += 1 : c.is("r", Le) ? n.send(ei("a", { xmlns: Le, h: s.inbound })).catch(() => {
|
|
4908
|
+
}) : c.is("a", Le) && (s.outbound = c.attrs.h), a();
|
|
4909
|
+
}), e.use("sm", Le, async (i, a) => {
|
|
4910
4910
|
if (s.id)
|
|
4911
4911
|
try {
|
|
4912
4912
|
return await av(n, s.inbound, s.id), s.enabled = !0, n.jid = o, n.status = "online", !0;
|
|
@@ -4924,7 +4924,7 @@ var cv = function({
|
|
|
4924
4924
|
}
|
|
4925
4925
|
s.inbound = 0;
|
|
4926
4926
|
}), s;
|
|
4927
|
-
}, ss = { exports: {} },
|
|
4927
|
+
}, ss = { exports: {} }, qn = { exports: {} }, Ca;
|
|
4928
4928
|
function lv() {
|
|
4929
4929
|
return Ca || (Ca = 1, function(t, e) {
|
|
4930
4930
|
(function(n, r) {
|
|
@@ -4937,7 +4937,7 @@ function lv() {
|
|
|
4937
4937
|
}, o.prototype.challenge = function(s) {
|
|
4938
4938
|
}, r.exports = o;
|
|
4939
4939
|
});
|
|
4940
|
-
}(
|
|
4940
|
+
}(qn, qn.exports)), qn.exports;
|
|
4941
4941
|
}
|
|
4942
4942
|
(function(t, e) {
|
|
4943
4943
|
(function(n, r) {
|
|
@@ -4954,7 +4954,7 @@ var uv = ss.exports;
|
|
|
4954
4954
|
const dv = uv;
|
|
4955
4955
|
var fv = function(e) {
|
|
4956
4956
|
e.use(dv);
|
|
4957
|
-
}, is = { exports: {} },
|
|
4957
|
+
}, is = { exports: {} }, Gn = { exports: {} }, xa;
|
|
4958
4958
|
function hv() {
|
|
4959
4959
|
return xa || (xa = 1, function(t, e) {
|
|
4960
4960
|
(function(n, r) {
|
|
@@ -4969,7 +4969,7 @@ function hv() {
|
|
|
4969
4969
|
return this;
|
|
4970
4970
|
}, r.exports = o;
|
|
4971
4971
|
});
|
|
4972
|
-
}(
|
|
4972
|
+
}(Gn, Gn.exports)), Gn.exports;
|
|
4973
4973
|
}
|
|
4974
4974
|
(function(t, e) {
|
|
4975
4975
|
(function(n, r) {
|
|
@@ -5067,7 +5067,7 @@ const pu = async (t, e, n, r) => {
|
|
|
5067
5067
|
o,
|
|
5068
5068
|
t.attrs.from
|
|
5069
5069
|
);
|
|
5070
|
-
return
|
|
5070
|
+
return me.dispatch(
|
|
5071
5071
|
Ml({
|
|
5072
5072
|
roomJID: t.attrs.from.split("/")[0],
|
|
5073
5073
|
message: s
|
|
@@ -5096,7 +5096,7 @@ const pu = async (t, e, n, r) => {
|
|
|
5096
5096
|
p,
|
|
5097
5097
|
t.attrs.from
|
|
5098
5098
|
);
|
|
5099
|
-
|
|
5099
|
+
me.dispatch(
|
|
5100
5100
|
Ml({
|
|
5101
5101
|
roomJID: t.attrs.from,
|
|
5102
5102
|
message: h
|
|
@@ -5109,7 +5109,7 @@ const pu = async (t, e, n, r) => {
|
|
|
5109
5109
|
const i = (o = (r = (n = t.attrs) == null ? void 0 : n.from) == null ? void 0 : r.split("/")) == null ? void 0 : o[1];
|
|
5110
5110
|
if (i && e.toLowerCase() !== (i == null ? void 0 : i.replace(/_/g, ""))) {
|
|
5111
5111
|
const a = (s = t.attrs) == null ? void 0 : s.from.split("/")[0];
|
|
5112
|
-
|
|
5112
|
+
me.dispatch(
|
|
5113
5113
|
Nm({
|
|
5114
5114
|
chatJID: a,
|
|
5115
5115
|
composing: !!(t != null && t.getChild("composing"))
|
|
@@ -5132,7 +5132,7 @@ const pu = async (t, e, n, r) => {
|
|
|
5132
5132
|
}, Uv = (t, e) => {
|
|
5133
5133
|
var n, r;
|
|
5134
5134
|
t.attrs.id === "getUserRooms" && ((n = t.getChild("query")) != null && n.children) && ((r = t.getChild("query")) == null || r.children.forEach((o) => {
|
|
5135
|
-
const s =
|
|
5135
|
+
const s = me.getState().rooms.rooms;
|
|
5136
5136
|
if (o != null && o.attrs.name) {
|
|
5137
5137
|
const i = Object.values(s).filter(
|
|
5138
5138
|
(a) => a.jid === (o == null ? void 0 : o.attrs.jid)
|
|
@@ -5149,7 +5149,7 @@ const pu = async (t, e, n, r) => {
|
|
|
5149
5149
|
roomBg: (o == null ? void 0 : o.attrs.room_background) !== "none" ? o == null ? void 0 : o.attrs.room_background : null,
|
|
5150
5150
|
icon: (o == null ? void 0 : o.attrs.room_thumbnail) !== "none" ? o == null ? void 0 : o.attrs.room_thumbnail : null
|
|
5151
5151
|
};
|
|
5152
|
-
|
|
5152
|
+
me.dispatch(qs({ roomData: a })), me.getState().rooms.activeRoomJID || me.dispatch(hn({ roomJID: a == null ? void 0 : a.jid })), e.presenceInRoom(o.attrs.jid);
|
|
5153
5153
|
}
|
|
5154
5154
|
}
|
|
5155
5155
|
}));
|
|
@@ -5305,7 +5305,7 @@ class Fv {
|
|
|
5305
5305
|
)
|
|
5306
5306
|
);
|
|
5307
5307
|
(h = this.client) == null || h.send(f).catch((m) => console.log("err on load", m));
|
|
5308
|
-
}), c =
|
|
5308
|
+
}), c = Jn(1e4, i);
|
|
5309
5309
|
try {
|
|
5310
5310
|
return await Promise.race([a, c]);
|
|
5311
5311
|
} catch (u) {
|
|
@@ -5420,7 +5420,7 @@ class Fv {
|
|
|
5420
5420
|
} catch (u) {
|
|
5421
5421
|
console.log("Error joining by presence", u);
|
|
5422
5422
|
}
|
|
5423
|
-
}), s =
|
|
5423
|
+
}), s = Jn(3e3, r);
|
|
5424
5424
|
return Promise.race([o, s]);
|
|
5425
5425
|
}
|
|
5426
5426
|
getLastMessageArchive(e) {
|
|
@@ -5508,7 +5508,7 @@ class Fv {
|
|
|
5508
5508
|
)
|
|
5509
5509
|
);
|
|
5510
5510
|
(l = this.client) == null || l.send(c);
|
|
5511
|
-
}), s =
|
|
5511
|
+
}), s = Jn(2e3, r);
|
|
5512
5512
|
return Promise.race([o, s]);
|
|
5513
5513
|
}
|
|
5514
5514
|
async actionSetTimestampToPrivateStore(e, n) {
|
|
@@ -5555,7 +5555,7 @@ class Fv {
|
|
|
5555
5555
|
)
|
|
5556
5556
|
);
|
|
5557
5557
|
(d = this.client) == null || d.send(u);
|
|
5558
|
-
}), i =
|
|
5558
|
+
}), i = Jn(2e3, o);
|
|
5559
5559
|
return Promise.race([s, i]);
|
|
5560
5560
|
}
|
|
5561
5561
|
sendMediaMessageStanza(e, n) {
|
|
@@ -5607,7 +5607,7 @@ class Fv {
|
|
|
5607
5607
|
this.client.send(o);
|
|
5608
5608
|
}
|
|
5609
5609
|
}
|
|
5610
|
-
function
|
|
5610
|
+
function Jn(t, e) {
|
|
5611
5611
|
return new Promise((n, r) => {
|
|
5612
5612
|
setTimeout(() => {
|
|
5613
5613
|
try {
|
|
@@ -5644,7 +5644,7 @@ const gu = hf(null), Vv = ({ children: t }) => {
|
|
|
5644
5644
|
if (!t)
|
|
5645
5645
|
throw new Error("useXmppClient must be used within an XmppProvider");
|
|
5646
5646
|
return t;
|
|
5647
|
-
}, Bv = () =>
|
|
5647
|
+
}, Bv = () => me.getState();
|
|
5648
5648
|
window.useStoreConsole = Bv;
|
|
5649
5649
|
var se = function() {
|
|
5650
5650
|
return se = Object.assign || function(e) {
|
|
@@ -5679,14 +5679,14 @@ var zv = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|def
|
|
|
5679
5679
|
return zv.test(t) || t.charCodeAt(0) === 111 && t.charCodeAt(1) === 110 && t.charCodeAt(2) < 91;
|
|
5680
5680
|
}
|
|
5681
5681
|
/* Z+1 */
|
|
5682
|
-
), V = "-ms-",
|
|
5682
|
+
), V = "-ms-", mn = "-moz-", j = "-webkit-", yu = "comm", Kr = "rule", ri = "decl", qv = "@import", vu = "@keyframes", Gv = "@layer", wu = Math.abs, oi = String.fromCharCode, as = Object.assign;
|
|
5683
5683
|
function Jv(t, e) {
|
|
5684
5684
|
return J(t, 0) ^ 45 ? (((e << 2 ^ J(t, 0)) << 2 ^ J(t, 1)) << 2 ^ J(t, 2)) << 2 ^ J(t, 3) : 0;
|
|
5685
5685
|
}
|
|
5686
5686
|
function bu(t) {
|
|
5687
5687
|
return t.trim();
|
|
5688
5688
|
}
|
|
5689
|
-
function
|
|
5689
|
+
function Pe(t, e) {
|
|
5690
5690
|
return (t = e.exec(t)) ? t[0] : t;
|
|
5691
5691
|
}
|
|
5692
5692
|
function D(t, e, n) {
|
|
@@ -5701,7 +5701,7 @@ function J(t, e) {
|
|
|
5701
5701
|
function Vt(t, e, n) {
|
|
5702
5702
|
return t.slice(e, n);
|
|
5703
5703
|
}
|
|
5704
|
-
function
|
|
5704
|
+
function Se(t) {
|
|
5705
5705
|
return t.length;
|
|
5706
5706
|
}
|
|
5707
5707
|
function Eu(t) {
|
|
@@ -5715,7 +5715,7 @@ function Kv(t, e) {
|
|
|
5715
5715
|
}
|
|
5716
5716
|
function Ia(t, e) {
|
|
5717
5717
|
return t.filter(function(n) {
|
|
5718
|
-
return !
|
|
5718
|
+
return !Pe(n, e);
|
|
5719
5719
|
});
|
|
5720
5720
|
}
|
|
5721
5721
|
var Xr = 1, Bt = 1, _u = 0, pe = 0, H = 0, Yt = "";
|
|
@@ -5736,7 +5736,7 @@ function Xv() {
|
|
|
5736
5736
|
function Yv() {
|
|
5737
5737
|
return H = pe > 0 ? J(Yt, --pe) : 0, Bt--, H === 10 && (Bt = 1, Xr--), H;
|
|
5738
5738
|
}
|
|
5739
|
-
function
|
|
5739
|
+
function ge() {
|
|
5740
5740
|
return H = pe < _u ? J(Yt, pe++) : 0, Bt++, H === 10 && (Bt = 1, Xr++), H;
|
|
5741
5741
|
}
|
|
5742
5742
|
function vt() {
|
|
@@ -5781,7 +5781,7 @@ function cs(t) {
|
|
|
5781
5781
|
return 0;
|
|
5782
5782
|
}
|
|
5783
5783
|
function Zv(t) {
|
|
5784
|
-
return Xr = Bt = 1, _u =
|
|
5784
|
+
return Xr = Bt = 1, _u = Se(Yt = t), pe = 0, [];
|
|
5785
5785
|
}
|
|
5786
5786
|
function Qv(t) {
|
|
5787
5787
|
return Yt = "", t;
|
|
@@ -5791,16 +5791,16 @@ function Ao(t) {
|
|
|
5791
5791
|
}
|
|
5792
5792
|
function ew(t) {
|
|
5793
5793
|
for (; (H = vt()) && H < 33; )
|
|
5794
|
-
|
|
5794
|
+
ge();
|
|
5795
5795
|
return cs(t) > 2 || cs(H) > 3 ? "" : " ";
|
|
5796
5796
|
}
|
|
5797
5797
|
function tw(t, e) {
|
|
5798
|
-
for (; --e &&
|
|
5798
|
+
for (; --e && ge() && !(H < 48 || H > 102 || H > 57 && H < 65 || H > 70 && H < 97); )
|
|
5799
5799
|
;
|
|
5800
|
-
return Zr(t, or() + (e < 6 && vt() == 32 &&
|
|
5800
|
+
return Zr(t, or() + (e < 6 && vt() == 32 && ge() == 32));
|
|
5801
5801
|
}
|
|
5802
5802
|
function ls(t) {
|
|
5803
|
-
for (;
|
|
5803
|
+
for (; ge(); )
|
|
5804
5804
|
switch (H) {
|
|
5805
5805
|
case t:
|
|
5806
5806
|
return pe;
|
|
@@ -5812,20 +5812,20 @@ function ls(t) {
|
|
|
5812
5812
|
t === 41 && ls(t);
|
|
5813
5813
|
break;
|
|
5814
5814
|
case 92:
|
|
5815
|
-
|
|
5815
|
+
ge();
|
|
5816
5816
|
break;
|
|
5817
5817
|
}
|
|
5818
5818
|
return pe;
|
|
5819
5819
|
}
|
|
5820
5820
|
function nw(t, e) {
|
|
5821
|
-
for (;
|
|
5821
|
+
for (; ge() && t + H !== 57; )
|
|
5822
5822
|
if (t + H === 84 && vt() === 47)
|
|
5823
5823
|
break;
|
|
5824
|
-
return "/*" + Zr(e, pe - 1) + "*" + oi(t === 47 ? t :
|
|
5824
|
+
return "/*" + Zr(e, pe - 1) + "*" + oi(t === 47 ? t : ge());
|
|
5825
5825
|
}
|
|
5826
5826
|
function rw(t) {
|
|
5827
5827
|
for (; !cs(vt()); )
|
|
5828
|
-
|
|
5828
|
+
ge();
|
|
5829
5829
|
return Zr(t, pe);
|
|
5830
5830
|
}
|
|
5831
5831
|
function ow(t) {
|
|
@@ -5833,7 +5833,7 @@ function ow(t) {
|
|
|
5833
5833
|
}
|
|
5834
5834
|
function sr(t, e, n, r, o, s, i, a, c) {
|
|
5835
5835
|
for (var u = 0, l = 0, d = i, f = 0, p = 0, h = 0, m = 1, y = 1, v = 1, x = 0, w = "", S = o, C = s, b = r, _ = w; y; )
|
|
5836
|
-
switch (h = x, x =
|
|
5836
|
+
switch (h = x, x = ge()) {
|
|
5837
5837
|
case 40:
|
|
5838
5838
|
if (h != 108 && J(_, d - 1) == 58) {
|
|
5839
5839
|
rr(_ += D(Ao(x), "&", "&\f"), "&\f", wu(u ? a[u - 1] : 0)) != -1 && (v = -1);
|
|
@@ -5857,14 +5857,14 @@ function sr(t, e, n, r, o, s, i, a, c) {
|
|
|
5857
5857
|
switch (vt()) {
|
|
5858
5858
|
case 42:
|
|
5859
5859
|
case 47:
|
|
5860
|
-
un(sw(nw(
|
|
5860
|
+
un(sw(nw(ge(), or()), e, n, c), c);
|
|
5861
5861
|
break;
|
|
5862
5862
|
default:
|
|
5863
5863
|
_ += "/";
|
|
5864
5864
|
}
|
|
5865
5865
|
break;
|
|
5866
5866
|
case 123 * m:
|
|
5867
|
-
a[u++] =
|
|
5867
|
+
a[u++] = Se(_) * v;
|
|
5868
5868
|
case 125 * m:
|
|
5869
5869
|
case 59:
|
|
5870
5870
|
case 0:
|
|
@@ -5873,7 +5873,7 @@ function sr(t, e, n, r, o, s, i, a, c) {
|
|
|
5873
5873
|
case 125:
|
|
5874
5874
|
y = 0;
|
|
5875
5875
|
case 59 + l:
|
|
5876
|
-
v == -1 && (_ = D(_, /\f/g, "")), p > 0 &&
|
|
5876
|
+
v == -1 && (_ = D(_, /\f/g, "")), p > 0 && Se(_) - d && un(p > 32 ? Ra(_ + ";", r, n, d - 1, c) : Ra(D(_, " ", "") + ";", r, n, d - 2, c), c);
|
|
5877
5877
|
break;
|
|
5878
5878
|
case 59:
|
|
5879
5879
|
_ += ";";
|
|
@@ -5896,7 +5896,7 @@ function sr(t, e, n, r, o, s, i, a, c) {
|
|
|
5896
5896
|
u = l = p = 0, m = v = 1, w = _ = "", d = i;
|
|
5897
5897
|
break;
|
|
5898
5898
|
case 58:
|
|
5899
|
-
d = 1 +
|
|
5899
|
+
d = 1 + Se(_), p = h;
|
|
5900
5900
|
default:
|
|
5901
5901
|
if (m < 1) {
|
|
5902
5902
|
if (x == 123)
|
|
@@ -5909,13 +5909,13 @@ function sr(t, e, n, r, o, s, i, a, c) {
|
|
|
5909
5909
|
v = l > 0 ? 1 : (_ += "\f", -1);
|
|
5910
5910
|
break;
|
|
5911
5911
|
case 44:
|
|
5912
|
-
a[u++] = (
|
|
5912
|
+
a[u++] = (Se(_) - 1) * v, v = 1;
|
|
5913
5913
|
break;
|
|
5914
5914
|
case 64:
|
|
5915
|
-
vt() === 45 && (_ += Ao(
|
|
5915
|
+
vt() === 45 && (_ += Ao(ge())), f = vt(), l = d = Se(w = _ += rw(or())), x++;
|
|
5916
5916
|
break;
|
|
5917
5917
|
case 45:
|
|
5918
|
-
h === 45 &&
|
|
5918
|
+
h === 45 && Se(_) == 2 && (m = 0);
|
|
5919
5919
|
}
|
|
5920
5920
|
}
|
|
5921
5921
|
return s;
|
|
@@ -5963,13 +5963,13 @@ function Su(t, e, n) {
|
|
|
5963
5963
|
case 3829:
|
|
5964
5964
|
return j + t + t;
|
|
5965
5965
|
case 4789:
|
|
5966
|
-
return
|
|
5966
|
+
return mn + t + t;
|
|
5967
5967
|
case 5349:
|
|
5968
5968
|
case 4246:
|
|
5969
5969
|
case 4810:
|
|
5970
5970
|
case 6968:
|
|
5971
5971
|
case 2756:
|
|
5972
|
-
return j + t +
|
|
5972
|
+
return j + t + mn + t + V + t + t;
|
|
5973
5973
|
case 5936:
|
|
5974
5974
|
switch (J(t, e + 11)) {
|
|
5975
5975
|
case 114:
|
|
@@ -5988,7 +5988,7 @@ function Su(t, e, n) {
|
|
|
5988
5988
|
case 5187:
|
|
5989
5989
|
return j + t + D(t, /(\w+).+(:[^]+)/, j + "box-$1$2" + V + "flex-$1$2") + t;
|
|
5990
5990
|
case 5443:
|
|
5991
|
-
return j + t + V + "flex-item-" + D(t, /flex-|-self/g, "") + (
|
|
5991
|
+
return j + t + V + "flex-item-" + D(t, /flex-|-self/g, "") + (Pe(t, /flex-|baseline/) ? "" : V + "grid-row-" + D(t, /flex-|-self/g, "")) + t;
|
|
5992
5992
|
case 4675:
|
|
5993
5993
|
return j + t + V + "flex-line-pack" + D(t, /align-content|flex-|-self/g, "") + t;
|
|
5994
5994
|
case 5548:
|
|
@@ -6007,7 +6007,7 @@ function Su(t, e, n) {
|
|
|
6007
6007
|
case 4968:
|
|
6008
6008
|
return D(D(t, /(.+:)(flex-)?(.*)/, j + "box-pack:$3" + V + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + j + t + t;
|
|
6009
6009
|
case 4200:
|
|
6010
|
-
if (!
|
|
6010
|
+
if (!Pe(t, /flex-|baseline/)) return V + "grid-column-align" + Vt(t, e) + t;
|
|
6011
6011
|
break;
|
|
6012
6012
|
case 2592:
|
|
6013
6013
|
case 3360:
|
|
@@ -6015,12 +6015,12 @@ function Su(t, e, n) {
|
|
|
6015
6015
|
case 4384:
|
|
6016
6016
|
case 3616:
|
|
6017
6017
|
return n && n.some(function(r, o) {
|
|
6018
|
-
return e = o,
|
|
6019
|
-
}) ? ~rr(t + (n = n[e].value), "span", 0) ? t : V + D(t, "-start", "") + t + V + "grid-row-span:" + (~rr(n, "span", 0) ?
|
|
6018
|
+
return e = o, Pe(r.props, /grid-\w+-end/);
|
|
6019
|
+
}) ? ~rr(t + (n = n[e].value), "span", 0) ? t : V + D(t, "-start", "") + t + V + "grid-row-span:" + (~rr(n, "span", 0) ? Pe(n, /\d+/) : +Pe(n, /\d+/) - +Pe(t, /\d+/)) + ";" : V + D(t, "-start", "") + t;
|
|
6020
6020
|
case 4896:
|
|
6021
6021
|
case 4128:
|
|
6022
6022
|
return n && n.some(function(r) {
|
|
6023
|
-
return
|
|
6023
|
+
return Pe(r.props, /grid-\w+-start/);
|
|
6024
6024
|
}) ? t : V + D(D(t, "-end", "-span"), "span ", "") + t;
|
|
6025
6025
|
case 4095:
|
|
6026
6026
|
case 3583:
|
|
@@ -6039,13 +6039,13 @@ function Su(t, e, n) {
|
|
|
6039
6039
|
case 5789:
|
|
6040
6040
|
case 5021:
|
|
6041
6041
|
case 4765:
|
|
6042
|
-
if (
|
|
6042
|
+
if (Se(t) - 1 - e > 6)
|
|
6043
6043
|
switch (J(t, e + 1)) {
|
|
6044
6044
|
case 109:
|
|
6045
6045
|
if (J(t, e + 4) !== 45)
|
|
6046
6046
|
break;
|
|
6047
6047
|
case 102:
|
|
6048
|
-
return D(t, /(.+:)(.+)-([^]+)/, "$1" + j + "$2-$3$1" +
|
|
6048
|
+
return D(t, /(.+:)(.+)-([^]+)/, "$1" + j + "$2-$3$1" + mn + (J(t, e + 3) == 108 ? "$3" : "$2-$3")) + t;
|
|
6049
6049
|
case 115:
|
|
6050
6050
|
return ~rr(t, "stretch", 0) ? Su(D(t, "stretch", "fill-available"), e, n) + t : t;
|
|
6051
6051
|
}
|
|
@@ -6093,9 +6093,9 @@ function iw(t, e, n, r) {
|
|
|
6093
6093
|
case vu:
|
|
6094
6094
|
return t.return = t.value + "{" + Er(t.children, r) + "}";
|
|
6095
6095
|
case Kr:
|
|
6096
|
-
if (!
|
|
6096
|
+
if (!Se(t.value = t.props.join(","))) return "";
|
|
6097
6097
|
}
|
|
6098
|
-
return
|
|
6098
|
+
return Se(n = Er(t.children, r)) ? t.return = t.value + "{" + n + "}" : "";
|
|
6099
6099
|
}
|
|
6100
6100
|
function aw(t) {
|
|
6101
6101
|
var e = Eu(t);
|
|
@@ -6121,13 +6121,13 @@ function lw(t, e, n, r) {
|
|
|
6121
6121
|
case Kr:
|
|
6122
6122
|
if (t.length)
|
|
6123
6123
|
return Kv(n = t.props, function(o) {
|
|
6124
|
-
switch (
|
|
6124
|
+
switch (Pe(o, r = /(::plac\w+|:read-\w+)/)) {
|
|
6125
6125
|
case ":read-only":
|
|
6126
6126
|
case ":read-write":
|
|
6127
|
-
kt(Xe(t, { props: [D(o, /:(read-\w+)/, ":" +
|
|
6127
|
+
kt(Xe(t, { props: [D(o, /:(read-\w+)/, ":" + mn + "$1")] })), kt(Xe(t, { props: [o] })), as(t, { props: Ia(n, r) });
|
|
6128
6128
|
break;
|
|
6129
6129
|
case "::placeholder":
|
|
6130
|
-
kt(Xe(t, { props: [D(o, /:(plac\w+)/, ":" + j + "input-$1")] })), kt(Xe(t, { props: [D(o, /:(plac\w+)/, ":" +
|
|
6130
|
+
kt(Xe(t, { props: [D(o, /:(plac\w+)/, ":" + j + "input-$1")] })), kt(Xe(t, { props: [D(o, /:(plac\w+)/, ":" + mn + "$1")] })), kt(Xe(t, { props: [D(o, /:(plac\w+)/, V + "input-$1")] })), kt(Xe(t, { props: [o] })), as(t, { props: Ia(n, r) });
|
|
6131
6131
|
break;
|
|
6132
6132
|
}
|
|
6133
6133
|
return "";
|
|
@@ -6183,7 +6183,7 @@ var uw = {
|
|
|
6183
6183
|
strokeOpacity: 1,
|
|
6184
6184
|
strokeWidth: 1
|
|
6185
6185
|
}, Ct = typeof process < "u" && process.env !== void 0 && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled", Cu = "active", xu = "data-styled-version", Qr = "6.1.11", si = `/*!sc*/
|
|
6186
|
-
`, ii = typeof window < "u" && "HTMLElement" in window, dw = !!(typeof SC_DISABLE_SPEEDY == "boolean" ? SC_DISABLE_SPEEDY : typeof process < "u" && process.env !== void 0 && process.env.REACT_APP_SC_DISABLE_SPEEDY !== void 0 && process.env.REACT_APP_SC_DISABLE_SPEEDY !== "" ? process.env.REACT_APP_SC_DISABLE_SPEEDY !== "false" && process.env.REACT_APP_SC_DISABLE_SPEEDY : typeof process < "u" && process.env !== void 0 && process.env.SC_DISABLE_SPEEDY !== void 0 && process.env.SC_DISABLE_SPEEDY !== "" ? process.env.SC_DISABLE_SPEEDY !== "false" && process.env.SC_DISABLE_SPEEDY : process.env.NODE_ENV !== "production"), Aa = /invalid hook call/i,
|
|
6186
|
+
`, ii = typeof window < "u" && "HTMLElement" in window, dw = !!(typeof SC_DISABLE_SPEEDY == "boolean" ? SC_DISABLE_SPEEDY : typeof process < "u" && process.env !== void 0 && process.env.REACT_APP_SC_DISABLE_SPEEDY !== void 0 && process.env.REACT_APP_SC_DISABLE_SPEEDY !== "" ? process.env.REACT_APP_SC_DISABLE_SPEEDY !== "false" && process.env.REACT_APP_SC_DISABLE_SPEEDY : typeof process < "u" && process.env !== void 0 && process.env.SC_DISABLE_SPEEDY !== void 0 && process.env.SC_DISABLE_SPEEDY !== "" ? process.env.SC_DISABLE_SPEEDY !== "false" && process.env.SC_DISABLE_SPEEDY : process.env.NODE_ENV !== "production"), Aa = /invalid hook call/i, Kn = /* @__PURE__ */ new Set(), fw = function(t, e) {
|
|
6187
6187
|
if (process.env.NODE_ENV !== "production") {
|
|
6188
6188
|
var n = e ? ' with the id of "'.concat(e, '"') : "", r = "The component ".concat(t).concat(n, ` has been created dynamically.
|
|
6189
6189
|
`) + `You may see this warning because you've called styled inside another component.
|
|
@@ -6192,10 +6192,10 @@ To resolve this only create new StyledComponents outside of any render method an
|
|
|
6192
6192
|
var s = !0;
|
|
6193
6193
|
console.error = function(i) {
|
|
6194
6194
|
for (var a = [], c = 1; c < arguments.length; c++) a[c - 1] = arguments[c];
|
|
6195
|
-
Aa.test(i) ? (s = !1,
|
|
6196
|
-
}, G(), s && !
|
|
6195
|
+
Aa.test(i) ? (s = !1, Kn.delete(r)) : o.apply(void 0, St([i], a, !1));
|
|
6196
|
+
}, G(), s && !Kn.has(r) && (console.warn(r), Kn.add(r));
|
|
6197
6197
|
} catch (i) {
|
|
6198
|
-
Aa.test(i.message) &&
|
|
6198
|
+
Aa.test(i.message) && Kn.delete(r);
|
|
6199
6199
|
} finally {
|
|
6200
6200
|
console.error = o;
|
|
6201
6201
|
}
|
|
@@ -6208,13 +6208,13 @@ var us = /* @__PURE__ */ new Set(["a", "abbr", "address", "area", "article", "as
|
|
|
6208
6208
|
function Oa(t) {
|
|
6209
6209
|
return t.replace(pw, "-").replace(mw, "");
|
|
6210
6210
|
}
|
|
6211
|
-
var gw = /(a)(d)/gi,
|
|
6211
|
+
var gw = /(a)(d)/gi, Xn = 52, Na = function(t) {
|
|
6212
6212
|
return String.fromCharCode(t + (t > 25 ? 39 : 97));
|
|
6213
6213
|
};
|
|
6214
6214
|
function ds(t) {
|
|
6215
6215
|
var e, n = "";
|
|
6216
|
-
for (e = Math.abs(t); e >
|
|
6217
|
-
return (Na(e %
|
|
6216
|
+
for (e = Math.abs(t); e > Xn; e = e / Xn | 0) n = Na(e % Xn) + n;
|
|
6217
|
+
return (Na(e % Xn) + n).replace(gw, "$1-$2");
|
|
6218
6218
|
}
|
|
6219
6219
|
var Oo, Tu = 5381, pt = function(t, e) {
|
|
6220
6220
|
for (var n = e.length; n; ) t = 33 * t ^ e.charCodeAt(--n);
|
|
@@ -6363,7 +6363,7 @@ var Iw = function() {
|
|
|
6363
6363
|
for (var r = this.groupSizes[e], o = this.indexOfGroup(e), s = o + r, i = o; i < s; i++) n += "".concat(this.tag.getRule(i)).concat(si);
|
|
6364
6364
|
return n;
|
|
6365
6365
|
}, t;
|
|
6366
|
-
}(), kw = 1 << 30, ir = /* @__PURE__ */ new Map(), _r = /* @__PURE__ */ new Map(), ar = 1,
|
|
6366
|
+
}(), kw = 1 << 30, ir = /* @__PURE__ */ new Map(), _r = /* @__PURE__ */ new Map(), ar = 1, Yn = function(t) {
|
|
6367
6367
|
if (ir.has(t)) return ir.get(t);
|
|
6368
6368
|
for (; _r.has(ar); ) ar++;
|
|
6369
6369
|
var e = ar++;
|
|
@@ -6473,7 +6473,7 @@ var Du = function(t) {
|
|
|
6473
6473
|
});
|
|
6474
6474
|
}
|
|
6475
6475
|
return t.registerId = function(e) {
|
|
6476
|
-
return
|
|
6476
|
+
return Yn(e);
|
|
6477
6477
|
}, t.prototype.reconstructWithOptions = function(e, n) {
|
|
6478
6478
|
return n === void 0 && (n = !0), new t(se(se({}, this.options), e), this.gs, n && this.names || void 0);
|
|
6479
6479
|
}, t.prototype.allocateGSInstance = function(e) {
|
|
@@ -6487,17 +6487,17 @@ var Du = function(t) {
|
|
|
6487
6487
|
}, t.prototype.hasNameForId = function(e, n) {
|
|
6488
6488
|
return this.names.has(e) && this.names.get(e).has(n);
|
|
6489
6489
|
}, t.prototype.registerName = function(e, n) {
|
|
6490
|
-
if (
|
|
6490
|
+
if (Yn(e), this.names.has(e)) this.names.get(e).add(n);
|
|
6491
6491
|
else {
|
|
6492
6492
|
var r = /* @__PURE__ */ new Set();
|
|
6493
6493
|
r.add(n), this.names.set(e, r);
|
|
6494
6494
|
}
|
|
6495
6495
|
}, t.prototype.insertRules = function(e, n, r) {
|
|
6496
|
-
this.registerName(e, n), this.getTag().insertRules(
|
|
6496
|
+
this.registerName(e, n), this.getTag().insertRules(Yn(e), r);
|
|
6497
6497
|
}, t.prototype.clearNames = function(e) {
|
|
6498
6498
|
this.names.has(e) && this.names.get(e).clear();
|
|
6499
6499
|
}, t.prototype.clearRules = function(e) {
|
|
6500
|
-
this.getTag().clearGroup(
|
|
6500
|
+
this.getTag().clearGroup(Yn(e)), this.clearNames(e);
|
|
6501
6501
|
}, t.prototype.clearTag = function() {
|
|
6502
6502
|
this.tag = void 0;
|
|
6503
6503
|
}, t;
|
|
@@ -6647,21 +6647,21 @@ function Gw(t, e, n) {
|
|
|
6647
6647
|
return function(b, _, k) {
|
|
6648
6648
|
var R = b.attrs, T = b.componentStyle, L = b.defaultProps, M = b.foldedComponentIds, ee = b.styledComponentId, re = b.target, te = he.useContext(Fu), ue = ja(), uo = b.shouldForwardProp || ue.shouldForwardProp;
|
|
6649
6649
|
process.env.NODE_ENV !== "production" && Ai(ee);
|
|
6650
|
-
var Ri = hw(_, te, L) || Ht,
|
|
6651
|
-
for (var It, ct = se(se({}, sn), { className: void 0, theme:
|
|
6652
|
-
var
|
|
6653
|
-
for (var We in
|
|
6650
|
+
var Ri = hw(_, te, L) || Ht, Ne = function(jn, sn, $n) {
|
|
6651
|
+
for (var It, ct = se(se({}, sn), { className: void 0, theme: $n }), po = 0; po < jn.length; po += 1) {
|
|
6652
|
+
var Un = zt(It = jn[po]) ? It(ct) : It;
|
|
6653
|
+
for (var We in Un) ct[We] = We === "className" ? mt(ct[We], Un[We]) : We === "style" ? se(se({}, ct[We]), Un[We]) : Un[We];
|
|
6654
6654
|
}
|
|
6655
6655
|
return sn.className && (ct.className = mt(ct.className, sn.className)), ct;
|
|
6656
|
-
}(R, _, Ri), rn =
|
|
6657
|
-
for (var de in
|
|
6658
|
-
var fo = function(
|
|
6659
|
-
var
|
|
6656
|
+
}(R, _, Ri), rn = Ne.as || re, on = {};
|
|
6657
|
+
for (var de in Ne) Ne[de] === void 0 || de[0] === "$" || de === "as" || de === "theme" && Ne.theme === Ri || (de === "forwardedAs" ? on.as = Ne.forwardedAs : uo && !uo(de, rn) || (on[de] = Ne[de], uo || process.env.NODE_ENV !== "development" || Wv(de) || Ua.has(de) || !us.has(rn) || (Ua.add(de), console.warn('styled-components: it looks like an unknown prop "'.concat(de, '" 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.)')))));
|
|
6658
|
+
var fo = function(jn, sn) {
|
|
6659
|
+
var $n = ja(), It = jn.generateAndInjectStyles(sn, $n.styleSheet, $n.stylis);
|
|
6660
6660
|
return process.env.NODE_ENV !== "production" && Ai(It), It;
|
|
6661
|
-
}(T,
|
|
6661
|
+
}(T, Ne);
|
|
6662
6662
|
process.env.NODE_ENV !== "production" && b.warnTooManyClasses && b.warnTooManyClasses(fo);
|
|
6663
6663
|
var ho = mt(M, ee);
|
|
6664
|
-
return fo && (ho += " " + fo),
|
|
6664
|
+
return fo && (ho += " " + fo), Ne.className && (ho += " " + Ne.className), on[No(rn) && !us.has(rn) ? "class" : "className"] = ho, on.ref = k, pf(rn, on);
|
|
6665
6665
|
}(w, S, C);
|
|
6666
6666
|
}
|
|
6667
6667
|
x.displayName = d;
|
|
@@ -6702,7 +6702,7 @@ function Fa(t, e) {
|
|
|
6702
6702
|
var Va = function(t) {
|
|
6703
6703
|
return Object.assign(t, { isCss: !0 });
|
|
6704
6704
|
};
|
|
6705
|
-
function
|
|
6705
|
+
function bn(t) {
|
|
6706
6706
|
for (var e = [], n = 1; n < arguments.length; n++) e[n - 1] = arguments[n];
|
|
6707
6707
|
if (zt(t) || Wt(t)) return Va(wt(Fa(eo, St([t], e, !0))));
|
|
6708
6708
|
var r = t;
|
|
@@ -6712,7 +6712,7 @@ function gs(t, e, n) {
|
|
|
6712
6712
|
if (n === void 0 && (n = Ht), !e) throw Zt(1, e);
|
|
6713
6713
|
var r = function(o) {
|
|
6714
6714
|
for (var s = [], i = 1; i < arguments.length; i++) s[i - 1] = arguments[i];
|
|
6715
|
-
return t(e, n,
|
|
6715
|
+
return t(e, n, bn.apply(void 0, St([o], s, !1)));
|
|
6716
6716
|
};
|
|
6717
6717
|
return r.attrs = function(o) {
|
|
6718
6718
|
return gs(t, e, se(se({}, n), { attrs: Array.prototype.concat(n.attrs, o).filter(Boolean) }));
|
|
@@ -6729,16 +6729,16 @@ us.forEach(function(t) {
|
|
|
6729
6729
|
function Bu(t) {
|
|
6730
6730
|
for (var e = [], n = 1; n < arguments.length; n++) e[n - 1] = arguments[n];
|
|
6731
6731
|
process.env.NODE_ENV !== "production" && typeof navigator < "u" && navigator.product === "ReactNative" && console.warn("`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated.");
|
|
6732
|
-
var r = fs(
|
|
6732
|
+
var r = fs(bn.apply(void 0, St([t], e, !1))), o = ku(r);
|
|
6733
6733
|
return new ms(o, r);
|
|
6734
6734
|
}
|
|
6735
6735
|
process.env.NODE_ENV !== "production" && typeof navigator < "u" && navigator.product === "ReactNative" && console.warn(`It looks like you've imported 'styled-components' on React Native.
|
|
6736
6736
|
Perhaps you're looking to import 'styled-components/native'?
|
|
6737
6737
|
Read more about this at https://www.styled-components.com/docs/basics#react-native`);
|
|
6738
|
-
var
|
|
6739
|
-
process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && typeof window < "u" && (window[
|
|
6738
|
+
var Zn = "__sc-".concat(Ct, "__");
|
|
6739
|
+
process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && typeof window < "u" && (window[Zn] || (window[Zn] = 0), window[Zn] === 1 && console.warn(`It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.
|
|
6740
6740
|
|
|
6741
|
-
See https://s-c.sh/2BAXzed for more info.`), window[
|
|
6741
|
+
See https://s-c.sh/2BAXzed for more info.`), window[Zn] += 1);
|
|
6742
6742
|
const Jw = I.div`
|
|
6743
6743
|
display: flex;
|
|
6744
6744
|
flex-direction: column;
|
|
@@ -6974,7 +6974,7 @@ const u0 = I.button`
|
|
|
6974
6974
|
}, m0 = Bu`
|
|
6975
6975
|
0% { transform: rotate(0deg); }
|
|
6976
6976
|
100% { transform: rotate(360deg); }
|
|
6977
|
-
`,
|
|
6977
|
+
`, En = I.div`
|
|
6978
6978
|
border: ${({ size: t }) => t ? t / 4 : 4}px solid #f3f3f3;
|
|
6979
6979
|
border-top: ${({ size: t }) => t ? t / 4 : 4}px solid
|
|
6980
6980
|
${({ color: t }) => t || "#3498db"};
|
|
@@ -7066,7 +7066,7 @@ const u0 = I.button`
|
|
|
7066
7066
|
loading: s
|
|
7067
7067
|
}) => {
|
|
7068
7068
|
var k, R;
|
|
7069
|
-
const { composing: i, lastViewedTimestamp: a, messages: c } =
|
|
7069
|
+
const { composing: i, lastViewedTimestamp: a, messages: c } = Fe(
|
|
7070
7070
|
(T) => T.rooms.rooms[r]
|
|
7071
7071
|
), u = Jt(() => c, [c.length]), l = G(null), d = G(null), f = G(
|
|
7072
7072
|
u[u.length - 1]
|
|
@@ -7107,14 +7107,14 @@ const u0 = I.button`
|
|
|
7107
7107
|
S();
|
|
7108
7108
|
}, 50);
|
|
7109
7109
|
};
|
|
7110
|
-
if (
|
|
7110
|
+
if (xe(() => {
|
|
7111
7111
|
const T = d.current;
|
|
7112
7112
|
return T && T.addEventListener("scroll", b, !0), () => {
|
|
7113
7113
|
T && T.removeEventListener("scroll", b, !0);
|
|
7114
7114
|
};
|
|
7115
|
-
}, []),
|
|
7115
|
+
}, []), xe(() => {
|
|
7116
7116
|
y.current && C();
|
|
7117
|
-
}, [u.length]),
|
|
7117
|
+
}, [u.length]), xe(() => {
|
|
7118
7118
|
if (u.length > 30) {
|
|
7119
7119
|
const T = l.current;
|
|
7120
7120
|
if (T && m.current) {
|
|
@@ -7133,7 +7133,7 @@ const u0 = I.button`
|
|
|
7133
7133
|
onScroll: b,
|
|
7134
7134
|
color: (k = o == null ? void 0 : o.colors) == null ? void 0 : k.primary,
|
|
7135
7135
|
children: [
|
|
7136
|
-
s && /* @__PURE__ */ g(
|
|
7136
|
+
s && /* @__PURE__ */ g(En, { color: (R = o == null ? void 0 : o.colors) == null ? void 0 : R.primary }),
|
|
7137
7137
|
u.map((T) => {
|
|
7138
7138
|
var ue;
|
|
7139
7139
|
const L = T.user.id === e.walletAddress, M = new Date(T.date), ee = M.toDateString(), re = ee !== _;
|
|
@@ -7153,7 +7153,7 @@ const u0 = I.button`
|
|
|
7153
7153
|
const te = t || Qw;
|
|
7154
7154
|
return /* @__PURE__ */ A(he.Fragment, { children: [
|
|
7155
7155
|
re && T.id !== "delimiter-new" && /* @__PURE__ */ g(Wa, { date: M, colors: o == null ? void 0 : o.colors }),
|
|
7156
|
-
/* @__PURE__ */ g(te, { message: T, isUser: L, children: !t && /* @__PURE__ */ A(
|
|
7156
|
+
/* @__PURE__ */ g(te, { message: T, isUser: L, children: !t && /* @__PURE__ */ A(we, { children: [
|
|
7157
7157
|
/* @__PURE__ */ g(Zw, { children: M.toLocaleTimeString() }),
|
|
7158
7158
|
/* @__PURE__ */ A(t0, { children: [
|
|
7159
7159
|
T.user.name,
|
|
@@ -7504,7 +7504,7 @@ const R0 = I.div`
|
|
|
7504
7504
|
cursor: not-allowed;
|
|
7505
7505
|
opacity: 0.6;
|
|
7506
7506
|
}
|
|
7507
|
-
`,
|
|
7507
|
+
`, Ie = ({
|
|
7508
7508
|
text: t,
|
|
7509
7509
|
EndIcon: e,
|
|
7510
7510
|
loading: n = !1,
|
|
@@ -7512,7 +7512,7 @@ const R0 = I.div`
|
|
|
7512
7512
|
...o
|
|
7513
7513
|
// Spread operator to pass any additional props to the button
|
|
7514
7514
|
}) => /* @__PURE__ */ A($0, { disabled: r, ...o, children: [
|
|
7515
|
-
n ? /* @__PURE__ */ g(
|
|
7515
|
+
n ? /* @__PURE__ */ g(En, { size: 24 }) : t,
|
|
7516
7516
|
!n && e
|
|
7517
7517
|
] }), U0 = ({
|
|
7518
7518
|
setIsRecording: t,
|
|
@@ -7562,7 +7562,7 @@ const R0 = I.div`
|
|
|
7562
7562
|
};
|
|
7563
7563
|
T();
|
|
7564
7564
|
}, [e]);
|
|
7565
|
-
|
|
7565
|
+
xe(() => (e && S(), () => {
|
|
7566
7566
|
h.current && cancelAnimationFrame(h.current);
|
|
7567
7567
|
}), [e, S]);
|
|
7568
7568
|
const C = () => {
|
|
@@ -7570,7 +7570,7 @@ const R0 = I.div`
|
|
|
7570
7570
|
};
|
|
7571
7571
|
return e ? /* @__PURE__ */ A(R0, { children: [
|
|
7572
7572
|
/* @__PURE__ */ g(
|
|
7573
|
-
|
|
7573
|
+
Ie,
|
|
7574
7574
|
{
|
|
7575
7575
|
onClick: w,
|
|
7576
7576
|
disabled: !e,
|
|
@@ -7579,8 +7579,8 @@ const R0 = I.div`
|
|
|
7579
7579
|
),
|
|
7580
7580
|
/* @__PURE__ */ g("canvas", { ref: u, width: "600", height: "70" }),
|
|
7581
7581
|
/* @__PURE__ */ g(k0, { children: m(s) }),
|
|
7582
|
-
/* @__PURE__ */ g(
|
|
7583
|
-
] }) : /* @__PURE__ */ g(
|
|
7582
|
+
/* @__PURE__ */ g(Ie, { onClick: C, disabled: !r, EndIcon: /* @__PURE__ */ g(qu, {}) })
|
|
7583
|
+
] }) : /* @__PURE__ */ g(Ie, { onClick: x, EndIcon: /* @__PURE__ */ g(L0, {}) });
|
|
7584
7584
|
}, F0 = ({
|
|
7585
7585
|
sendMessage: t,
|
|
7586
7586
|
sendMedia: e,
|
|
@@ -7630,12 +7630,12 @@ const R0 = I.div`
|
|
|
7630
7630
|
[w]
|
|
7631
7631
|
), C = B((R) => {
|
|
7632
7632
|
const T = URL.createObjectURL(R), L = R.type.split("/")[0];
|
|
7633
|
-
return L === "image" ? /* @__PURE__ */ g(N0, { src: T, alt: R.name }) : L === "video" ? /* @__PURE__ */ g(P0, { src: T, controls: !0 }) : /* @__PURE__ */ g(
|
|
7633
|
+
return L === "image" ? /* @__PURE__ */ g(N0, { src: T, alt: R.name }) : L === "video" ? /* @__PURE__ */ g(P0, { src: T, controls: !0 }) : /* @__PURE__ */ g(we, {});
|
|
7634
7634
|
}, []), b = Jt(() => l.map(
|
|
7635
7635
|
(R, T) => T < 1 && /* @__PURE__ */ A(O0, { children: [
|
|
7636
7636
|
C(R),
|
|
7637
7637
|
/* @__PURE__ */ g(
|
|
7638
|
-
|
|
7638
|
+
Ie,
|
|
7639
7639
|
{
|
|
7640
7640
|
style: {
|
|
7641
7641
|
position: "absolute",
|
|
@@ -7652,9 +7652,9 @@ const R0 = I.div`
|
|
|
7652
7652
|
), [l, C, v]);
|
|
7653
7653
|
return /* @__PURE__ */ A(C0, { children: [
|
|
7654
7654
|
/* @__PURE__ */ A(x0, { children: [
|
|
7655
|
-
!c && /* @__PURE__ */ A(
|
|
7655
|
+
!c && /* @__PURE__ */ A(we, { children: [
|
|
7656
7656
|
!(o != null && o.disableMedia) && /* @__PURE__ */ g(
|
|
7657
|
-
|
|
7657
|
+
Ie,
|
|
7658
7658
|
{
|
|
7659
7659
|
onClick: p,
|
|
7660
7660
|
disabled: !1,
|
|
@@ -7676,7 +7676,7 @@ const R0 = I.div`
|
|
|
7676
7676
|
)
|
|
7677
7677
|
] }),
|
|
7678
7678
|
i || l.length > 0 || o != null && o.disableMedia ? /* @__PURE__ */ g(
|
|
7679
|
-
|
|
7679
|
+
Ie,
|
|
7680
7680
|
{
|
|
7681
7681
|
onClick: () => w(),
|
|
7682
7682
|
EndIcon: /* @__PURE__ */ g(
|
|
@@ -7714,11 +7714,11 @@ function Gu(t, e) {
|
|
|
7714
7714
|
const { toString: V0 } = Object.prototype, { getPrototypeOf: ui } = Object, to = /* @__PURE__ */ ((t) => (e) => {
|
|
7715
7715
|
const n = V0.call(e);
|
|
7716
7716
|
return t[n] || (t[n] = n.slice(8, -1).toLowerCase());
|
|
7717
|
-
})(/* @__PURE__ */ Object.create(null)),
|
|
7717
|
+
})(/* @__PURE__ */ Object.create(null)), _e = (t) => (t = t.toLowerCase(), (e) => to(e) === t), no = (t) => (e) => typeof e === t, { isArray: Qt } = Array, _n = no("undefined");
|
|
7718
7718
|
function B0(t) {
|
|
7719
|
-
return t !== null && !
|
|
7719
|
+
return t !== null && !_n(t) && t.constructor !== null && !_n(t.constructor) && fe(t.constructor.isBuffer) && t.constructor.isBuffer(t);
|
|
7720
7720
|
}
|
|
7721
|
-
const Ju =
|
|
7721
|
+
const Ju = _e("ArrayBuffer");
|
|
7722
7722
|
function H0(t) {
|
|
7723
7723
|
let e;
|
|
7724
7724
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && Ju(t.buffer), e;
|
|
@@ -7728,12 +7728,12 @@ const z0 = no("string"), fe = no("function"), Ku = no("number"), ro = (t) => t !
|
|
|
7728
7728
|
return !1;
|
|
7729
7729
|
const e = ui(t);
|
|
7730
7730
|
return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(Symbol.toStringTag in t) && !(Symbol.iterator in t);
|
|
7731
|
-
}, q0 =
|
|
7731
|
+
}, q0 = _e("Date"), G0 = _e("File"), J0 = _e("Blob"), K0 = _e("FileList"), X0 = (t) => ro(t) && fe(t.pipe), Y0 = (t) => {
|
|
7732
7732
|
let e;
|
|
7733
7733
|
return t && (typeof FormData == "function" && t instanceof FormData || fe(t.append) && ((e = to(t)) === "formdata" || // detect form-data instance
|
|
7734
7734
|
e === "object" && fe(t.toString) && t.toString() === "[object FormData]"));
|
|
7735
|
-
}, Z0 =
|
|
7736
|
-
function
|
|
7735
|
+
}, Z0 = _e("URLSearchParams"), [Q0, eb, tb, nb] = ["ReadableStream", "Request", "Response", "Headers"].map(_e), rb = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
7736
|
+
function Rn(t, e, { allOwnKeys: n = !1 } = {}) {
|
|
7737
7737
|
if (t === null || typeof t > "u")
|
|
7738
7738
|
return;
|
|
7739
7739
|
let r, o;
|
|
@@ -7756,17 +7756,17 @@ function Xu(t, e) {
|
|
|
7756
7756
|
return o;
|
|
7757
7757
|
return null;
|
|
7758
7758
|
}
|
|
7759
|
-
const Yu = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : window, Zu = (t) => !
|
|
7759
|
+
const Yu = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : window, Zu = (t) => !_n(t) && t !== Yu;
|
|
7760
7760
|
function ys() {
|
|
7761
7761
|
const { caseless: t } = Zu(this) && this || {}, e = {}, n = (r, o) => {
|
|
7762
7762
|
const s = t && Xu(e, o) || o;
|
|
7763
7763
|
cr(e[s]) && cr(r) ? e[s] = ys(e[s], r) : cr(r) ? e[s] = ys({}, r) : Qt(r) ? e[s] = r.slice() : e[s] = r;
|
|
7764
7764
|
};
|
|
7765
7765
|
for (let r = 0, o = arguments.length; r < o; r++)
|
|
7766
|
-
arguments[r] &&
|
|
7766
|
+
arguments[r] && Rn(arguments[r], n);
|
|
7767
7767
|
return e;
|
|
7768
7768
|
}
|
|
7769
|
-
const ob = (t, e, n, { allOwnKeys: r } = {}) => (
|
|
7769
|
+
const ob = (t, e, n, { allOwnKeys: r } = {}) => (Rn(e, (o, s) => {
|
|
7770
7770
|
n && fe(o) ? t[s] = Gu(o, n) : t[s] = o;
|
|
7771
7771
|
}, { allOwnKeys: r }), t), sb = (t) => (t.charCodeAt(0) === 65279 && (t = t.slice(1)), t), ib = (t, e, n, r) => {
|
|
7772
7772
|
t.prototype = Object.create(e.prototype, r), t.prototype.constructor = t, Object.defineProperty(t, "super", {
|
|
@@ -7808,14 +7808,14 @@ const ob = (t, e, n, { allOwnKeys: r } = {}) => (kn(e, (o, s) => {
|
|
|
7808
7808
|
for (; (n = t.exec(e)) !== null; )
|
|
7809
7809
|
r.push(n);
|
|
7810
7810
|
return r;
|
|
7811
|
-
}, hb =
|
|
7811
|
+
}, hb = _e("HTMLFormElement"), pb = (t) => t.toLowerCase().replace(
|
|
7812
7812
|
/[-_\s]([a-z\d])(\w*)/g,
|
|
7813
7813
|
function(n, r, o) {
|
|
7814
7814
|
return r.toUpperCase() + o;
|
|
7815
7815
|
}
|
|
7816
|
-
), qa = (({ hasOwnProperty: t }) => (e, n) => t.call(e, n))(Object.prototype), mb =
|
|
7816
|
+
), qa = (({ hasOwnProperty: t }) => (e, n) => t.call(e, n))(Object.prototype), mb = _e("RegExp"), Qu = (t, e) => {
|
|
7817
7817
|
const n = Object.getOwnPropertyDescriptors(t), r = {};
|
|
7818
|
-
|
|
7818
|
+
Rn(n, (o, s) => {
|
|
7819
7819
|
let i;
|
|
7820
7820
|
(i = e(o, s, t)) !== !1 && (r[s] = i || o);
|
|
7821
7821
|
}), Object.defineProperties(t, r);
|
|
@@ -7864,16 +7864,16 @@ const _b = (t) => {
|
|
|
7864
7864
|
if (!("toJSON" in r)) {
|
|
7865
7865
|
e[o] = r;
|
|
7866
7866
|
const s = Qt(r) ? [] : {};
|
|
7867
|
-
return
|
|
7867
|
+
return Rn(r, (i, a) => {
|
|
7868
7868
|
const c = n(i, o + 1);
|
|
7869
|
-
!
|
|
7869
|
+
!_n(c) && (s[a] = c);
|
|
7870
7870
|
}), e[o] = void 0, s;
|
|
7871
7871
|
}
|
|
7872
7872
|
}
|
|
7873
7873
|
return r;
|
|
7874
7874
|
};
|
|
7875
7875
|
return n(t, 0);
|
|
7876
|
-
}, Sb =
|
|
7876
|
+
}, Sb = _e("AsyncFunction"), Cb = (t) => t && (ro(t) || fe(t)) && fe(t.then) && fe(t.catch), E = {
|
|
7877
7877
|
isArray: Qt,
|
|
7878
7878
|
isArrayBuffer: Ju,
|
|
7879
7879
|
isBuffer: B0,
|
|
@@ -7888,7 +7888,7 @@ const _b = (t) => {
|
|
|
7888
7888
|
isRequest: eb,
|
|
7889
7889
|
isResponse: tb,
|
|
7890
7890
|
isHeaders: nb,
|
|
7891
|
-
isUndefined:
|
|
7891
|
+
isUndefined: _n,
|
|
7892
7892
|
isDate: q0,
|
|
7893
7893
|
isFile: G0,
|
|
7894
7894
|
isBlob: J0,
|
|
@@ -7898,7 +7898,7 @@ const _b = (t) => {
|
|
|
7898
7898
|
isURLSearchParams: Z0,
|
|
7899
7899
|
isTypedArray: ub,
|
|
7900
7900
|
isFileList: K0,
|
|
7901
|
-
forEach:
|
|
7901
|
+
forEach: Rn,
|
|
7902
7902
|
merge: ys,
|
|
7903
7903
|
extend: ob,
|
|
7904
7904
|
trim: rb,
|
|
@@ -7906,7 +7906,7 @@ const _b = (t) => {
|
|
|
7906
7906
|
inherits: ib,
|
|
7907
7907
|
toFlatObject: ab,
|
|
7908
7908
|
kindOf: to,
|
|
7909
|
-
kindOfTest:
|
|
7909
|
+
kindOfTest: _e,
|
|
7910
7910
|
endsWith: cb,
|
|
7911
7911
|
toArray: lb,
|
|
7912
7912
|
forEachEntry: db,
|
|
@@ -8176,14 +8176,14 @@ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Lb
|
|
|
8176
8176
|
hasStandardBrowserEnv: Pb,
|
|
8177
8177
|
hasStandardBrowserWebWorkerEnv: Db,
|
|
8178
8178
|
origin: Lb
|
|
8179
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
8179
|
+
}, Symbol.toStringTag, { value: "Module" })), ye = {
|
|
8180
8180
|
...Mb,
|
|
8181
8181
|
...Nb
|
|
8182
8182
|
};
|
|
8183
8183
|
function jb(t, e) {
|
|
8184
|
-
return oo(t, new
|
|
8184
|
+
return oo(t, new ye.classes.URLSearchParams(), Object.assign({
|
|
8185
8185
|
visitor: function(n, r, o, s) {
|
|
8186
|
-
return
|
|
8186
|
+
return ye.isNode && E.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : s.defaultVisitor.apply(this, arguments);
|
|
8187
8187
|
}
|
|
8188
8188
|
}, e));
|
|
8189
8189
|
}
|
|
@@ -8224,7 +8224,7 @@ function Fb(t, e, n) {
|
|
|
8224
8224
|
}
|
|
8225
8225
|
return (n || JSON.stringify)(t);
|
|
8226
8226
|
}
|
|
8227
|
-
const
|
|
8227
|
+
const An = {
|
|
8228
8228
|
transitional: id,
|
|
8229
8229
|
adapter: ["xhr", "http", "fetch"],
|
|
8230
8230
|
transformRequest: [function(e, n) {
|
|
@@ -8253,7 +8253,7 @@ const Rn = {
|
|
|
8253
8253
|
return s || o ? (n.setContentType("application/json", !1), Fb(e)) : e;
|
|
8254
8254
|
}],
|
|
8255
8255
|
transformResponse: [function(e) {
|
|
8256
|
-
const n = this.transitional ||
|
|
8256
|
+
const n = this.transitional || An.transitional, r = n && n.forcedJSONParsing, o = this.responseType === "json";
|
|
8257
8257
|
if (E.isResponse(e) || E.isReadableStream(e))
|
|
8258
8258
|
return e;
|
|
8259
8259
|
if (e && E.isString(e) && (r && !this.responseType || o)) {
|
|
@@ -8277,8 +8277,8 @@ const Rn = {
|
|
|
8277
8277
|
maxContentLength: -1,
|
|
8278
8278
|
maxBodyLength: -1,
|
|
8279
8279
|
env: {
|
|
8280
|
-
FormData:
|
|
8281
|
-
Blob:
|
|
8280
|
+
FormData: ye.classes.FormData,
|
|
8281
|
+
Blob: ye.classes.Blob
|
|
8282
8282
|
},
|
|
8283
8283
|
validateStatus: function(e) {
|
|
8284
8284
|
return e >= 200 && e < 300;
|
|
@@ -8291,7 +8291,7 @@ const Rn = {
|
|
|
8291
8291
|
}
|
|
8292
8292
|
};
|
|
8293
8293
|
E.forEach(["delete", "get", "head", "post", "put", "patch"], (t) => {
|
|
8294
|
-
|
|
8294
|
+
An.headers[t] = {};
|
|
8295
8295
|
});
|
|
8296
8296
|
const Vb = E.toObjectSet([
|
|
8297
8297
|
"age",
|
|
@@ -8487,7 +8487,7 @@ E.reduceDescriptors(ie.prototype, ({ value: t }, e) => {
|
|
|
8487
8487
|
});
|
|
8488
8488
|
E.freezeMethods(ie);
|
|
8489
8489
|
function jo(t, e) {
|
|
8490
|
-
const n = this ||
|
|
8490
|
+
const n = this || An, r = e || n, o = ie.from(r.headers);
|
|
8491
8491
|
let s = r.data;
|
|
8492
8492
|
return E.forEach(t, function(a) {
|
|
8493
8493
|
s = a.call(n, s, o.normalize(), e ? e.status : void 0);
|
|
@@ -8561,7 +8561,7 @@ const Sr = (t, e, n = 3) => {
|
|
|
8561
8561
|
};
|
|
8562
8562
|
d[e ? "download" : "upload"] = !0, t(d);
|
|
8563
8563
|
}, n);
|
|
8564
|
-
}, Xb =
|
|
8564
|
+
}, Xb = ye.hasStandardBrowserEnv ? (
|
|
8565
8565
|
// Standard browser envs have full support of the APIs needed to test
|
|
8566
8566
|
// whether the request URL is of the same origin as current location.
|
|
8567
8567
|
function() {
|
|
@@ -8592,7 +8592,7 @@ const Sr = (t, e, n = 3) => {
|
|
|
8592
8592
|
return !0;
|
|
8593
8593
|
};
|
|
8594
8594
|
}()
|
|
8595
|
-
), Yb =
|
|
8595
|
+
), Yb = ye.hasStandardBrowserEnv ? (
|
|
8596
8596
|
// Standard browser envs support document.cookie
|
|
8597
8597
|
{
|
|
8598
8598
|
write(t, e, n, r, o, s) {
|
|
@@ -8702,14 +8702,14 @@ const dd = (t) => {
|
|
|
8702
8702
|
);
|
|
8703
8703
|
let c;
|
|
8704
8704
|
if (E.isFormData(n)) {
|
|
8705
|
-
if (
|
|
8705
|
+
if (ye.hasStandardBrowserEnv || ye.hasStandardBrowserWebWorkerEnv)
|
|
8706
8706
|
i.setContentType(void 0);
|
|
8707
8707
|
else if ((c = i.getContentType()) !== !1) {
|
|
8708
8708
|
const [u, ...l] = c ? c.split(";").map((d) => d.trim()).filter(Boolean) : [];
|
|
8709
8709
|
i.setContentType([u || "multipart/form-data", ...l].join("; "));
|
|
8710
8710
|
}
|
|
8711
8711
|
}
|
|
8712
|
-
if (
|
|
8712
|
+
if (ye.hasStandardBrowserEnv && (r && E.isFunction(r) && (r = r(e)), r || r !== !1 && Xb(e.url))) {
|
|
8713
8713
|
const u = o && s && Yb.read(s);
|
|
8714
8714
|
u && i.set(o, u);
|
|
8715
8715
|
}
|
|
@@ -8765,7 +8765,7 @@ const dd = (t) => {
|
|
|
8765
8765
|
l && (r(!p || p.type ? new en(null, t, l) : p), l.abort(), l = null);
|
|
8766
8766
|
}, o.cancelToken && o.cancelToken.subscribe(c), o.signal && (o.signal.aborted ? c() : o.signal.addEventListener("abort", c)));
|
|
8767
8767
|
const f = Gb(o.url);
|
|
8768
|
-
if (f &&
|
|
8768
|
+
if (f && ye.protocols.indexOf(f) === -1) {
|
|
8769
8769
|
r(new N("Unsupported protocol " + f + ":", N.ERR_BAD_REQUEST, t));
|
|
8770
8770
|
return;
|
|
8771
8771
|
}
|
|
@@ -8834,7 +8834,7 @@ const dd = (t) => {
|
|
|
8834
8834
|
}));
|
|
8835
8835
|
}, so = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", fd = so && typeof ReadableStream == "function", ws = so && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((t) => (e) => t.encode(e))(new TextEncoder()) : async (t) => new Uint8Array(await new Response(t).arrayBuffer())), s1 = fd && (() => {
|
|
8836
8836
|
let t = !1;
|
|
8837
|
-
const e = new Request(
|
|
8837
|
+
const e = new Request(ye.origin, {
|
|
8838
8838
|
body: new ReadableStream(),
|
|
8839
8839
|
method: "POST",
|
|
8840
8840
|
get duplex() {
|
|
@@ -9004,7 +9004,7 @@ function rc(t) {
|
|
|
9004
9004
|
return $o(t), t.headers = ie.from(t.headers), t.data = jo.call(
|
|
9005
9005
|
t,
|
|
9006
9006
|
t.transformRequest
|
|
9007
|
-
), ["post", "put", "patch"].indexOf(t.method) !== -1 && t.headers.setContentType("application/x-www-form-urlencoded", !1), hd.getAdapter(t.adapter ||
|
|
9007
|
+
), ["post", "put", "patch"].indexOf(t.method) !== -1 && t.headers.setContentType("application/x-www-form-urlencoded", !1), hd.getAdapter(t.adapter || An.adapter)(t).then(function(r) {
|
|
9008
9008
|
return $o(t), r.data = jo.call(
|
|
9009
9009
|
t,
|
|
9010
9010
|
t.transformResponse,
|
|
@@ -9334,7 +9334,7 @@ function md(t) {
|
|
|
9334
9334
|
return md(xt(t, o));
|
|
9335
9335
|
}, n;
|
|
9336
9336
|
}
|
|
9337
|
-
const W = md(
|
|
9337
|
+
const W = md(An);
|
|
9338
9338
|
W.Axios = bt;
|
|
9339
9339
|
W.CanceledError = en;
|
|
9340
9340
|
W.CancelToken = pi;
|
|
@@ -9759,10 +9759,10 @@ function k1() {
|
|
|
9759
9759
|
const R1 = "FirebaseError";
|
|
9760
9760
|
class at extends Error {
|
|
9761
9761
|
constructor(e, n, r) {
|
|
9762
|
-
super(n), this.code = e, this.customData = r, this.name = R1, Object.setPrototypeOf(this, at.prototype), Error.captureStackTrace && Error.captureStackTrace(this,
|
|
9762
|
+
super(n), this.code = e, this.customData = r, this.name = R1, Object.setPrototypeOf(this, at.prototype), Error.captureStackTrace && Error.captureStackTrace(this, On.prototype.create);
|
|
9763
9763
|
}
|
|
9764
9764
|
}
|
|
9765
|
-
class
|
|
9765
|
+
class On {
|
|
9766
9766
|
constructor(e, n, r) {
|
|
9767
9767
|
this.service = e, this.serviceName = n, this.errors = r;
|
|
9768
9768
|
}
|
|
@@ -9822,7 +9822,7 @@ function sc(t) {
|
|
|
9822
9822
|
* See the License for the specific language governing permissions and
|
|
9823
9823
|
* limitations under the License.
|
|
9824
9824
|
*/
|
|
9825
|
-
function
|
|
9825
|
+
function Nn(t) {
|
|
9826
9826
|
const e = [];
|
|
9827
9827
|
for (const [n, r] of Object.entries(t))
|
|
9828
9828
|
Array.isArray(r) ? r.forEach((o) => {
|
|
@@ -10573,7 +10573,7 @@ function uc(t, e) {
|
|
|
10573
10573
|
Be.debug(`Component ${e.name} failed to register with FirebaseApp ${t.name}`, n);
|
|
10574
10574
|
}
|
|
10575
10575
|
}
|
|
10576
|
-
function
|
|
10576
|
+
function Sn(t) {
|
|
10577
10577
|
const e = t.name;
|
|
10578
10578
|
if (ks.has(e))
|
|
10579
10579
|
return Be.debug(`There were multiple attempts to register component ${e}.`), !1;
|
|
@@ -10588,7 +10588,7 @@ function xd(t, e) {
|
|
|
10588
10588
|
const n = t.container.getProvider("heartbeat").getImmediate({ optional: !0 });
|
|
10589
10589
|
return n && n.triggerHeartbeat(), t.container.getProvider(e);
|
|
10590
10590
|
}
|
|
10591
|
-
function
|
|
10591
|
+
function Me(t) {
|
|
10592
10592
|
return t.settings !== void 0;
|
|
10593
10593
|
}
|
|
10594
10594
|
/**
|
|
@@ -10622,7 +10622,7 @@ const OE = {
|
|
|
10622
10622
|
"idb-delete": "Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.",
|
|
10623
10623
|
"finalization-registry-not-supported": "FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.",
|
|
10624
10624
|
"invalid-server-app-environment": "FirebaseServerApp is not for use in browser environments."
|
|
10625
|
-
}, nt = new
|
|
10625
|
+
}, nt = new On("app", "Firebase", OE);
|
|
10626
10626
|
/**
|
|
10627
10627
|
* @license
|
|
10628
10628
|
* Copyright 2019 Google LLC
|
|
@@ -10697,7 +10697,7 @@ class NE {
|
|
|
10697
10697
|
* See the License for the specific language governing permissions and
|
|
10698
10698
|
* limitations under the License.
|
|
10699
10699
|
*/
|
|
10700
|
-
const
|
|
10700
|
+
const Pn = kE;
|
|
10701
10701
|
function Td(t, e = {}) {
|
|
10702
10702
|
let n = t;
|
|
10703
10703
|
typeof e != "object" && (e = { name: e });
|
|
@@ -10743,7 +10743,7 @@ function Dt(t, e, n) {
|
|
|
10743
10743
|
s && a.push(`library name "${o}" contains illegal characters (whitespace or "/")`), s && i && a.push("and"), i && a.push(`version name "${e}" contains illegal characters (whitespace or "/")`), Be.warn(a.join(" "));
|
|
10744
10744
|
return;
|
|
10745
10745
|
}
|
|
10746
|
-
|
|
10746
|
+
Sn(new qt(
|
|
10747
10747
|
`${o}-version`,
|
|
10748
10748
|
() => ({ library: o, version: e }),
|
|
10749
10749
|
"VERSION"
|
|
@@ -10766,7 +10766,7 @@ function Dt(t, e, n) {
|
|
|
10766
10766
|
* See the License for the specific language governing permissions and
|
|
10767
10767
|
* limitations under the License.
|
|
10768
10768
|
*/
|
|
10769
|
-
const DE = "firebase-heartbeat-database", LE = 1,
|
|
10769
|
+
const DE = "firebase-heartbeat-database", LE = 1, Cn = "firebase-heartbeat-store";
|
|
10770
10770
|
let Ho = null;
|
|
10771
10771
|
function Id() {
|
|
10772
10772
|
return Ho || (Ho = Z1(DE, LE, {
|
|
@@ -10774,7 +10774,7 @@ function Id() {
|
|
|
10774
10774
|
switch (e) {
|
|
10775
10775
|
case 0:
|
|
10776
10776
|
try {
|
|
10777
|
-
t.createObjectStore(
|
|
10777
|
+
t.createObjectStore(Cn);
|
|
10778
10778
|
} catch (n) {
|
|
10779
10779
|
console.warn(n);
|
|
10780
10780
|
}
|
|
@@ -10788,7 +10788,7 @@ function Id() {
|
|
|
10788
10788
|
}
|
|
10789
10789
|
async function ME(t) {
|
|
10790
10790
|
try {
|
|
10791
|
-
const n = (await Id()).transaction(
|
|
10791
|
+
const n = (await Id()).transaction(Cn), r = await n.objectStore(Cn).get(kd(t));
|
|
10792
10792
|
return await n.done, r;
|
|
10793
10793
|
} catch (e) {
|
|
10794
10794
|
if (e instanceof at)
|
|
@@ -10803,8 +10803,8 @@ async function ME(t) {
|
|
|
10803
10803
|
}
|
|
10804
10804
|
async function dc(t, e) {
|
|
10805
10805
|
try {
|
|
10806
|
-
const r = (await Id()).transaction(
|
|
10807
|
-
await r.objectStore(
|
|
10806
|
+
const r = (await Id()).transaction(Cn, "readwrite");
|
|
10807
|
+
await r.objectStore(Cn).put(e, kd(t)), await r.done;
|
|
10808
10808
|
} catch (n) {
|
|
10809
10809
|
if (n instanceof at)
|
|
10810
10810
|
Be.warn(n.message);
|
|
@@ -10975,12 +10975,12 @@ function hc(t) {
|
|
|
10975
10975
|
* limitations under the License.
|
|
10976
10976
|
*/
|
|
10977
10977
|
function BE(t) {
|
|
10978
|
-
|
|
10978
|
+
Sn(new qt(
|
|
10979
10979
|
"platform-logger",
|
|
10980
10980
|
(e) => new tE(e),
|
|
10981
10981
|
"PRIVATE"
|
|
10982
10982
|
/* ComponentType.PRIVATE */
|
|
10983
|
-
)),
|
|
10983
|
+
)), Sn(new qt(
|
|
10984
10984
|
"heartbeat",
|
|
10985
10985
|
(e) => new UE(e),
|
|
10986
10986
|
"PRIVATE"
|
|
@@ -10993,7 +10993,7 @@ function Rd() {
|
|
|
10993
10993
|
"dependent-sdk-initialized-before-auth": "Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."
|
|
10994
10994
|
};
|
|
10995
10995
|
}
|
|
10996
|
-
const HE = Rd, Ad = new
|
|
10996
|
+
const HE = Rd, Ad = new On("auth", "Firebase", Rd());
|
|
10997
10997
|
/**
|
|
10998
10998
|
* @license
|
|
10999
10999
|
* Copyright 2020 Google LLC
|
|
@@ -11012,10 +11012,10 @@ const HE = Rd, Ad = new An("auth", "Firebase", Rd());
|
|
|
11012
11012
|
*/
|
|
11013
11013
|
const Ir = new _d("@firebase/auth");
|
|
11014
11014
|
function zE(t, ...e) {
|
|
11015
|
-
Ir.logLevel <= F.WARN && Ir.warn(`Auth (${
|
|
11015
|
+
Ir.logLevel <= F.WARN && Ir.warn(`Auth (${Pn}): ${t}`, ...e);
|
|
11016
11016
|
}
|
|
11017
11017
|
function ur(t, ...e) {
|
|
11018
|
-
Ir.logLevel <= F.ERROR && Ir.error(`Auth (${
|
|
11018
|
+
Ir.logLevel <= F.ERROR && Ir.error(`Auth (${Pn}): ${t}`, ...e);
|
|
11019
11019
|
}
|
|
11020
11020
|
/**
|
|
11021
11021
|
* @license
|
|
@@ -11033,15 +11033,15 @@ function ur(t, ...e) {
|
|
|
11033
11033
|
* See the License for the specific language governing permissions and
|
|
11034
11034
|
* limitations under the License.
|
|
11035
11035
|
*/
|
|
11036
|
-
function
|
|
11036
|
+
function Re(t, ...e) {
|
|
11037
11037
|
throw vi(t, ...e);
|
|
11038
11038
|
}
|
|
11039
|
-
function
|
|
11039
|
+
function ve(t, ...e) {
|
|
11040
11040
|
return vi(t, ...e);
|
|
11041
11041
|
}
|
|
11042
11042
|
function yi(t, e, n) {
|
|
11043
11043
|
const r = Object.assign(Object.assign({}, HE()), { [e]: n });
|
|
11044
|
-
return new
|
|
11044
|
+
return new On("auth", "Firebase", r).create(e, {
|
|
11045
11045
|
appName: t.name
|
|
11046
11046
|
});
|
|
11047
11047
|
}
|
|
@@ -11051,7 +11051,7 @@ function Et(t) {
|
|
|
11051
11051
|
function WE(t, e, n) {
|
|
11052
11052
|
const r = n;
|
|
11053
11053
|
if (!(e instanceof r))
|
|
11054
|
-
throw r.name !== e.constructor.name &&
|
|
11054
|
+
throw r.name !== e.constructor.name && Re(
|
|
11055
11055
|
t,
|
|
11056
11056
|
"argument-error"
|
|
11057
11057
|
/* AuthErrorCode.ARGUMENT_ERROR */
|
|
@@ -11068,12 +11068,12 @@ function O(t, e, ...n) {
|
|
|
11068
11068
|
if (!t)
|
|
11069
11069
|
throw vi(e, ...n);
|
|
11070
11070
|
}
|
|
11071
|
-
function
|
|
11071
|
+
function je(t) {
|
|
11072
11072
|
const e = "INTERNAL ASSERTION FAILED: " + t;
|
|
11073
11073
|
throw ur(e), new Error(e);
|
|
11074
11074
|
}
|
|
11075
11075
|
function He(t, e) {
|
|
11076
|
-
t ||
|
|
11076
|
+
t || je(e);
|
|
11077
11077
|
}
|
|
11078
11078
|
/**
|
|
11079
11079
|
* @license
|
|
@@ -11154,7 +11154,7 @@ function JE() {
|
|
|
11154
11154
|
* See the License for the specific language governing permissions and
|
|
11155
11155
|
* limitations under the License.
|
|
11156
11156
|
*/
|
|
11157
|
-
class
|
|
11157
|
+
class Dn {
|
|
11158
11158
|
constructor(e, n) {
|
|
11159
11159
|
this.shortDelay = e, this.longDelay = n, He(n > e, "Short delay should be less than long delay!"), this.isMobile = _1() || x1();
|
|
11160
11160
|
}
|
|
@@ -11212,7 +11212,7 @@ class Od {
|
|
|
11212
11212
|
return globalThis.fetch;
|
|
11213
11213
|
if (typeof fetch < "u")
|
|
11214
11214
|
return fetch;
|
|
11215
|
-
|
|
11215
|
+
je("Could not find fetch implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill");
|
|
11216
11216
|
}
|
|
11217
11217
|
static headers() {
|
|
11218
11218
|
if (this.headersImpl)
|
|
@@ -11223,7 +11223,7 @@ class Od {
|
|
|
11223
11223
|
return globalThis.Headers;
|
|
11224
11224
|
if (typeof Headers < "u")
|
|
11225
11225
|
return Headers;
|
|
11226
|
-
|
|
11226
|
+
je("Could not find Headers implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill");
|
|
11227
11227
|
}
|
|
11228
11228
|
static response() {
|
|
11229
11229
|
if (this.responseImpl)
|
|
@@ -11234,7 +11234,7 @@ class Od {
|
|
|
11234
11234
|
return globalThis.Response;
|
|
11235
11235
|
if (typeof Response < "u")
|
|
11236
11236
|
return Response;
|
|
11237
|
-
|
|
11237
|
+
je("Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill");
|
|
11238
11238
|
}
|
|
11239
11239
|
}
|
|
11240
11240
|
/**
|
|
@@ -11344,7 +11344,7 @@ const KE = {
|
|
|
11344
11344
|
* See the License for the specific language governing permissions and
|
|
11345
11345
|
* limitations under the License.
|
|
11346
11346
|
*/
|
|
11347
|
-
const XE = new
|
|
11347
|
+
const XE = new Dn(3e4, 6e4);
|
|
11348
11348
|
function bi(t, e) {
|
|
11349
11349
|
return t.tenantId && !e.tenantId ? Object.assign(Object.assign({}, e), { tenantId: t.tenantId }) : e;
|
|
11350
11350
|
}
|
|
@@ -11354,7 +11354,7 @@ async function nn(t, e, n, r, o = {}) {
|
|
|
11354
11354
|
r && (e === "GET" ? i = r : s = {
|
|
11355
11355
|
body: JSON.stringify(r)
|
|
11356
11356
|
});
|
|
11357
|
-
const a =
|
|
11357
|
+
const a = Nn(Object.assign({ key: t.config.apiKey }, i)).slice(1), c = await t._getAdditionalHeaders();
|
|
11358
11358
|
c[
|
|
11359
11359
|
"Content-Type"
|
|
11360
11360
|
/* HttpHeader.CONTENT_TYPE */
|
|
@@ -11380,31 +11380,31 @@ async function Nd(t, e, n) {
|
|
|
11380
11380
|
o.clearNetworkTimeout();
|
|
11381
11381
|
const i = await s.json();
|
|
11382
11382
|
if ("needConfirmation" in i)
|
|
11383
|
-
throw
|
|
11383
|
+
throw Qn(t, "account-exists-with-different-credential", i);
|
|
11384
11384
|
if (s.ok && !("errorMessage" in i))
|
|
11385
11385
|
return i;
|
|
11386
11386
|
{
|
|
11387
11387
|
const a = s.ok ? i.errorMessage : i.error.message, [c, u] = a.split(" : ");
|
|
11388
11388
|
if (c === "FEDERATED_USER_ID_ALREADY_LINKED")
|
|
11389
|
-
throw
|
|
11389
|
+
throw Qn(t, "credential-already-in-use", i);
|
|
11390
11390
|
if (c === "EMAIL_EXISTS")
|
|
11391
|
-
throw
|
|
11391
|
+
throw Qn(t, "email-already-in-use", i);
|
|
11392
11392
|
if (c === "USER_DISABLED")
|
|
11393
|
-
throw
|
|
11393
|
+
throw Qn(t, "user-disabled", i);
|
|
11394
11394
|
const l = r[c] || c.toLowerCase().replace(/[_\s]+/g, "-");
|
|
11395
11395
|
if (u)
|
|
11396
11396
|
throw yi(t, l, u);
|
|
11397
|
-
|
|
11397
|
+
Re(t, l);
|
|
11398
11398
|
}
|
|
11399
11399
|
} catch (o) {
|
|
11400
11400
|
if (o instanceof at)
|
|
11401
11401
|
throw o;
|
|
11402
|
-
|
|
11402
|
+
Re(t, "network-request-failed", { message: String(o) });
|
|
11403
11403
|
}
|
|
11404
11404
|
}
|
|
11405
11405
|
async function YE(t, e, n, r, o = {}) {
|
|
11406
11406
|
const s = await nn(t, e, n, r, o);
|
|
11407
|
-
return "mfaPendingCredential" in s &&
|
|
11407
|
+
return "mfaPendingCredential" in s && Re(t, "multi-factor-auth-required", {
|
|
11408
11408
|
_serverResponse: s
|
|
11409
11409
|
}), s;
|
|
11410
11410
|
}
|
|
@@ -11415,7 +11415,7 @@ function Pd(t, e, n, r) {
|
|
|
11415
11415
|
class ZE {
|
|
11416
11416
|
constructor(e) {
|
|
11417
11417
|
this.auth = e, this.timer = null, this.promise = new Promise((n, r) => {
|
|
11418
|
-
this.timer = setTimeout(() => r(
|
|
11418
|
+
this.timer = setTimeout(() => r(ve(
|
|
11419
11419
|
this.auth,
|
|
11420
11420
|
"network-request-failed"
|
|
11421
11421
|
/* AuthErrorCode.NETWORK_REQUEST_FAILED */
|
|
@@ -11426,12 +11426,12 @@ class ZE {
|
|
|
11426
11426
|
clearTimeout(this.timer);
|
|
11427
11427
|
}
|
|
11428
11428
|
}
|
|
11429
|
-
function
|
|
11429
|
+
function Qn(t, e, n) {
|
|
11430
11430
|
const r = {
|
|
11431
11431
|
appName: t.name
|
|
11432
11432
|
};
|
|
11433
11433
|
n.email && (r.email = n.email), n.phoneNumber && (r.phoneNumber = n.phoneNumber);
|
|
11434
|
-
const o =
|
|
11434
|
+
const o = ve(t, e, r);
|
|
11435
11435
|
return o.customData._tokenResponse = n, o;
|
|
11436
11436
|
}
|
|
11437
11437
|
/**
|
|
@@ -11472,7 +11472,7 @@ async function Dd(t, e) {
|
|
|
11472
11472
|
* See the License for the specific language governing permissions and
|
|
11473
11473
|
* limitations under the License.
|
|
11474
11474
|
*/
|
|
11475
|
-
function
|
|
11475
|
+
function gn(t) {
|
|
11476
11476
|
if (t)
|
|
11477
11477
|
try {
|
|
11478
11478
|
const e = new Date(Number(t));
|
|
@@ -11493,9 +11493,9 @@ async function e_(t, e = !1) {
|
|
|
11493
11493
|
return {
|
|
11494
11494
|
claims: o,
|
|
11495
11495
|
token: r,
|
|
11496
|
-
authTime:
|
|
11497
|
-
issuedAtTime:
|
|
11498
|
-
expirationTime:
|
|
11496
|
+
authTime: gn(zo(o.auth_time)),
|
|
11497
|
+
issuedAtTime: gn(zo(o.iat)),
|
|
11498
|
+
expirationTime: gn(zo(o.exp)),
|
|
11499
11499
|
signInProvider: i || null,
|
|
11500
11500
|
signInSecondFactor: (s == null ? void 0 : s.sign_in_second_factor) || null
|
|
11501
11501
|
};
|
|
@@ -11546,7 +11546,7 @@ function mc(t) {
|
|
|
11546
11546
|
* See the License for the specific language governing permissions and
|
|
11547
11547
|
* limitations under the License.
|
|
11548
11548
|
*/
|
|
11549
|
-
async function
|
|
11549
|
+
async function xn(t, e, n = !1) {
|
|
11550
11550
|
if (n)
|
|
11551
11551
|
return e;
|
|
11552
11552
|
try {
|
|
@@ -11641,7 +11641,7 @@ class As {
|
|
|
11641
11641
|
this.createdAt = e, this.lastLoginAt = n, this._initializeTime();
|
|
11642
11642
|
}
|
|
11643
11643
|
_initializeTime() {
|
|
11644
|
-
this.lastSignInTime =
|
|
11644
|
+
this.lastSignInTime = gn(this.lastLoginAt), this.creationTime = gn(this.createdAt);
|
|
11645
11645
|
}
|
|
11646
11646
|
_copy(e) {
|
|
11647
11647
|
this.createdAt = e.createdAt, this.lastLoginAt = e.lastLoginAt, this._initializeTime();
|
|
@@ -11671,7 +11671,7 @@ class As {
|
|
|
11671
11671
|
*/
|
|
11672
11672
|
async function kr(t) {
|
|
11673
11673
|
var e;
|
|
11674
|
-
const n = t.auth, r = await t.getIdToken(), o = await
|
|
11674
|
+
const n = t.auth, r = await t.getIdToken(), o = await xn(t, Dd(n, { idToken: r }));
|
|
11675
11675
|
O(
|
|
11676
11676
|
o == null ? void 0 : o.users.length,
|
|
11677
11677
|
n,
|
|
@@ -11732,7 +11732,7 @@ function Ld(t) {
|
|
|
11732
11732
|
*/
|
|
11733
11733
|
async function s_(t, e) {
|
|
11734
11734
|
const n = await Nd(t, {}, async () => {
|
|
11735
|
-
const r =
|
|
11735
|
+
const r = Nn({
|
|
11736
11736
|
grant_type: "refresh_token",
|
|
11737
11737
|
refresh_token: e
|
|
11738
11738
|
}).slice(1), { tokenApiHost: o, apiKey: s } = t.config, i = Pd(t, o, "/v1/token", `key=${s}`), a = await t._getAdditionalHeaders();
|
|
@@ -11845,7 +11845,7 @@ class Lt {
|
|
|
11845
11845
|
return Object.assign(new Lt(), this.toJSON());
|
|
11846
11846
|
}
|
|
11847
11847
|
_performRefresh() {
|
|
11848
|
-
return
|
|
11848
|
+
return je("not implemented");
|
|
11849
11849
|
}
|
|
11850
11850
|
}
|
|
11851
11851
|
/**
|
|
@@ -11867,13 +11867,13 @@ class Lt {
|
|
|
11867
11867
|
function Je(t, e) {
|
|
11868
11868
|
O(typeof t == "string" || typeof t > "u", "internal-error", { appName: e });
|
|
11869
11869
|
}
|
|
11870
|
-
class
|
|
11870
|
+
class $e {
|
|
11871
11871
|
constructor(e) {
|
|
11872
11872
|
var { uid: n, auth: r, stsTokenManager: o } = e, s = ni(e, ["uid", "auth", "stsTokenManager"]);
|
|
11873
11873
|
this.providerId = "firebase", this.proactiveRefresh = new n_(this), this.reloadUserInfo = null, this.reloadListener = null, this.uid = n, this.auth = r, this.stsTokenManager = o, this.accessToken = o.accessToken, this.displayName = s.displayName || null, this.email = s.email || null, this.emailVerified = s.emailVerified || !1, this.phoneNumber = s.phoneNumber || null, this.photoURL = s.photoURL || null, this.isAnonymous = s.isAnonymous || !1, this.tenantId = s.tenantId || null, this.providerData = s.providerData ? [...s.providerData] : [], this.metadata = new As(s.createdAt || void 0, s.lastLoginAt || void 0);
|
|
11874
11874
|
}
|
|
11875
11875
|
async getIdToken(e) {
|
|
11876
|
-
const n = await
|
|
11876
|
+
const n = await xn(this, this.stsTokenManager.getToken(this.auth, e));
|
|
11877
11877
|
return O(
|
|
11878
11878
|
n,
|
|
11879
11879
|
this.auth,
|
|
@@ -11896,7 +11896,7 @@ class je {
|
|
|
11896
11896
|
), this.displayName = e.displayName, this.photoURL = e.photoURL, this.email = e.email, this.emailVerified = e.emailVerified, this.phoneNumber = e.phoneNumber, this.isAnonymous = e.isAnonymous, this.tenantId = e.tenantId, this.providerData = e.providerData.map((n) => Object.assign({}, n)), this.metadata._copy(e.metadata), this.stsTokenManager._assign(e.stsTokenManager));
|
|
11897
11897
|
}
|
|
11898
11898
|
_clone(e) {
|
|
11899
|
-
const n = new
|
|
11899
|
+
const n = new $e(Object.assign(Object.assign({}, this), { auth: e, stsTokenManager: this.stsTokenManager._clone() }));
|
|
11900
11900
|
return n.metadata._copy(this.metadata), n;
|
|
11901
11901
|
}
|
|
11902
11902
|
_onReload(e) {
|
|
@@ -11921,10 +11921,10 @@ class je {
|
|
|
11921
11921
|
e.idToken && e.idToken !== this.stsTokenManager.accessToken && (this.stsTokenManager.updateFromServerResponse(e), r = !0), n && await kr(this), await this.auth._persistUserIfCurrent(this), r && this.auth._notifyListenersIfCurrent(this);
|
|
11922
11922
|
}
|
|
11923
11923
|
async delete() {
|
|
11924
|
-
if (
|
|
11924
|
+
if (Me(this.auth.app))
|
|
11925
11925
|
return Promise.reject(Et(this.auth));
|
|
11926
11926
|
const e = await this.getIdToken();
|
|
11927
|
-
return await
|
|
11927
|
+
return await xn(this, QE(this.auth, { idToken: e })), this.stsTokenManager.clearRefreshToken(), this.auth.signOut();
|
|
11928
11928
|
}
|
|
11929
11929
|
toJSON() {
|
|
11930
11930
|
return Object.assign(Object.assign({
|
|
@@ -11976,7 +11976,7 @@ class je {
|
|
|
11976
11976
|
"internal-error"
|
|
11977
11977
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
11978
11978
|
), Je(p, e.name), Je(h, e.name), Je(m, e.name), Je(y, e.name), Je(v, e.name), Je(x, e.name);
|
|
11979
|
-
const R = new
|
|
11979
|
+
const R = new $e({
|
|
11980
11980
|
uid: w,
|
|
11981
11981
|
auth: e,
|
|
11982
11982
|
email: f,
|
|
@@ -12000,7 +12000,7 @@ class je {
|
|
|
12000
12000
|
static async _fromIdTokenResponse(e, n, r = !1) {
|
|
12001
12001
|
const o = new Lt();
|
|
12002
12002
|
o.updateFromServerResponse(n);
|
|
12003
|
-
const s = new
|
|
12003
|
+
const s = new $e({
|
|
12004
12004
|
uid: n.localId,
|
|
12005
12005
|
auth: e,
|
|
12006
12006
|
stsTokenManager: o,
|
|
@@ -12022,7 +12022,7 @@ class je {
|
|
|
12022
12022
|
);
|
|
12023
12023
|
const s = o.providerUserInfo !== void 0 ? Ld(o.providerUserInfo) : [], i = !(o.email && o.passwordHash) && !(s != null && s.length), a = new Lt();
|
|
12024
12024
|
a.updateFromIdToken(r);
|
|
12025
|
-
const c = new
|
|
12025
|
+
const c = new $e({
|
|
12026
12026
|
uid: o.localId,
|
|
12027
12027
|
auth: e,
|
|
12028
12028
|
stsTokenManager: a,
|
|
@@ -12059,7 +12059,7 @@ class je {
|
|
|
12059
12059
|
* limitations under the License.
|
|
12060
12060
|
*/
|
|
12061
12061
|
const gc = /* @__PURE__ */ new Map();
|
|
12062
|
-
function
|
|
12062
|
+
function Ue(t) {
|
|
12063
12063
|
He(t instanceof Function, "Expected a class definition");
|
|
12064
12064
|
let e = gc.get(t);
|
|
12065
12065
|
return e ? (He(e instanceof t, "Instance stored in cache mismatched with class"), e) : (e = new t(), gc.set(t, e), e);
|
|
@@ -12134,7 +12134,7 @@ class Mt {
|
|
|
12134
12134
|
}
|
|
12135
12135
|
async getCurrentUser() {
|
|
12136
12136
|
const e = await this.persistence._get(this.fullUserKey);
|
|
12137
|
-
return e ?
|
|
12137
|
+
return e ? $e._fromJSON(this.auth, e) : null;
|
|
12138
12138
|
}
|
|
12139
12139
|
removeCurrentUser() {
|
|
12140
12140
|
return this.persistence._remove(this.fullUserKey);
|
|
@@ -12154,19 +12154,19 @@ class Mt {
|
|
|
12154
12154
|
}
|
|
12155
12155
|
static async create(e, n, r = "authUser") {
|
|
12156
12156
|
if (!n.length)
|
|
12157
|
-
return new Mt(
|
|
12157
|
+
return new Mt(Ue(yc), e, r);
|
|
12158
12158
|
const o = (await Promise.all(n.map(async (u) => {
|
|
12159
12159
|
if (await u._isAvailable())
|
|
12160
12160
|
return u;
|
|
12161
12161
|
}))).filter((u) => u);
|
|
12162
|
-
let s = o[0] ||
|
|
12162
|
+
let s = o[0] || Ue(yc);
|
|
12163
12163
|
const i = dr(r, e.config.apiKey, e.name);
|
|
12164
12164
|
let a = null;
|
|
12165
12165
|
for (const u of n)
|
|
12166
12166
|
try {
|
|
12167
12167
|
const l = await u._get(i);
|
|
12168
12168
|
if (l) {
|
|
12169
|
-
const d =
|
|
12169
|
+
const d = $e._fromJSON(e, l);
|
|
12170
12170
|
u !== s && (a = d), s = u;
|
|
12171
12171
|
break;
|
|
12172
12172
|
}
|
|
@@ -12293,7 +12293,7 @@ function Wd(t, e = []) {
|
|
|
12293
12293
|
n = t;
|
|
12294
12294
|
}
|
|
12295
12295
|
const r = e.length ? e.join(",") : "FirebaseCore-web";
|
|
12296
|
-
return `${n}/JsCore/${
|
|
12296
|
+
return `${n}/JsCore/${Pn}/${r}`;
|
|
12297
12297
|
}
|
|
12298
12298
|
/**
|
|
12299
12299
|
* @license
|
|
@@ -12478,7 +12478,7 @@ class h_ {
|
|
|
12478
12478
|
this.app = e, this.heartbeatServiceProvider = n, this.appCheckServiceProvider = r, this.config = o, this.currentUser = null, this.emulatorConfig = null, this.operations = Promise.resolve(), this.authStateSubscription = new wc(this), this.idTokenSubscription = new wc(this), this.beforeStateQueue = new l_(this), this.redirectUser = null, this.isProactiveRefreshEnabled = !1, this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION = 1, this._canInitEmulator = !0, this._isInitialized = !1, this._deleted = !1, this._initializationPromise = null, this._popupRedirectResolver = null, this._errorFactory = Ad, this._agentRecaptchaConfig = null, this._tenantRecaptchaConfigs = {}, this._projectPasswordPolicy = null, this._tenantPasswordPolicies = {}, this.lastNotifiedUid = void 0, this.languageCode = null, this.tenantId = null, this.settings = { appVerificationDisabledForTesting: !1 }, this.frameworks = [], this.name = e.name, this.clientVersion = o.sdkClientVersion;
|
|
12479
12479
|
}
|
|
12480
12480
|
_initializeWithPersistence(e, n) {
|
|
12481
|
-
return n && (this._popupRedirectResolver =
|
|
12481
|
+
return n && (this._popupRedirectResolver = Ue(n)), this._initializationPromise = this.queue(async () => {
|
|
12482
12482
|
var r, o;
|
|
12483
12483
|
if (!this._deleted && (this.persistenceManager = await Mt.create(this, e), !this._deleted)) {
|
|
12484
12484
|
if (!((r = this._popupRedirectResolver) === null || r === void 0) && r._shouldInitProactively)
|
|
@@ -12511,7 +12511,7 @@ class h_ {
|
|
|
12511
12511
|
}
|
|
12512
12512
|
async initializeCurrentUserFromIdToken(e) {
|
|
12513
12513
|
try {
|
|
12514
|
-
const n = await Dd(this, { idToken: e }), r = await
|
|
12514
|
+
const n = await Dd(this, { idToken: e }), r = await $e._fromGetAccountInfoResponse(this, n, e);
|
|
12515
12515
|
await this.directlySetCurrentUser(r);
|
|
12516
12516
|
} catch (n) {
|
|
12517
12517
|
console.warn("FirebaseServerApp could not login user with provided authIdToken: ", n), await this.directlySetCurrentUser(null);
|
|
@@ -12519,7 +12519,7 @@ class h_ {
|
|
|
12519
12519
|
}
|
|
12520
12520
|
async initializeCurrentUser(e) {
|
|
12521
12521
|
var n;
|
|
12522
|
-
if (
|
|
12522
|
+
if (Me(this.app)) {
|
|
12523
12523
|
const i = this.app.settings.authIdToken;
|
|
12524
12524
|
return i ? new Promise((a) => {
|
|
12525
12525
|
setTimeout(() => this.initializeCurrentUserFromIdToken(i).then(a, a));
|
|
@@ -12575,7 +12575,7 @@ class h_ {
|
|
|
12575
12575
|
this._deleted = !0;
|
|
12576
12576
|
}
|
|
12577
12577
|
async updateCurrentUser(e) {
|
|
12578
|
-
if (
|
|
12578
|
+
if (Me(this.app))
|
|
12579
12579
|
return Promise.reject(Et(this));
|
|
12580
12580
|
const n = e ? tn(e) : null;
|
|
12581
12581
|
return n && O(
|
|
@@ -12597,15 +12597,15 @@ class h_ {
|
|
|
12597
12597
|
});
|
|
12598
12598
|
}
|
|
12599
12599
|
async signOut() {
|
|
12600
|
-
return
|
|
12600
|
+
return Me(this.app) ? Promise.reject(Et(this)) : (await this.beforeStateQueue.runMiddleware(null), (this.redirectPersistenceManager || this._popupRedirectResolver) && await this._setRedirectUser(null), this._updateCurrentUser(
|
|
12601
12601
|
null,
|
|
12602
12602
|
/* skipBeforeStateCallbacks */
|
|
12603
12603
|
!0
|
|
12604
12604
|
));
|
|
12605
12605
|
}
|
|
12606
12606
|
setPersistence(e) {
|
|
12607
|
-
return
|
|
12608
|
-
await this.assertedPersistence.setPersistence(
|
|
12607
|
+
return Me(this.app) ? Promise.reject(Et(this)) : this.queue(async () => {
|
|
12608
|
+
await this.assertedPersistence.setPersistence(Ue(e));
|
|
12609
12609
|
});
|
|
12610
12610
|
}
|
|
12611
12611
|
_getRecaptchaConfig() {
|
|
@@ -12627,7 +12627,7 @@ class h_ {
|
|
|
12627
12627
|
return this.assertedPersistence.persistence.type;
|
|
12628
12628
|
}
|
|
12629
12629
|
_updateErrorMap(e) {
|
|
12630
|
-
this._errorFactory = new
|
|
12630
|
+
this._errorFactory = new On("auth", "Firebase", e());
|
|
12631
12631
|
}
|
|
12632
12632
|
onAuthStateChanged(e, n, r) {
|
|
12633
12633
|
return this.registerStateListener(this.authStateSubscription, e, n, r);
|
|
@@ -12678,7 +12678,7 @@ class h_ {
|
|
|
12678
12678
|
}
|
|
12679
12679
|
async getOrInitRedirectPersistenceManager(e) {
|
|
12680
12680
|
if (!this.redirectPersistenceManager) {
|
|
12681
|
-
const n = e &&
|
|
12681
|
+
const n = e && Ue(e) || this._popupRedirectResolver;
|
|
12682
12682
|
O(
|
|
12683
12683
|
n,
|
|
12684
12684
|
this,
|
|
@@ -12686,7 +12686,7 @@ class h_ {
|
|
|
12686
12686
|
/* AuthErrorCode.ARGUMENT_ERROR */
|
|
12687
12687
|
), this.redirectPersistenceManager = await Mt.create(
|
|
12688
12688
|
this,
|
|
12689
|
-
[
|
|
12689
|
+
[Ue(n._redirectPersistence)],
|
|
12690
12690
|
"redirectUser"
|
|
12691
12691
|
/* KeyName.REDIRECT_USER */
|
|
12692
12692
|
), this.redirectUser = await this.redirectPersistenceManager.getCurrentUser();
|
|
@@ -12880,7 +12880,7 @@ function v_(t, e) {
|
|
|
12880
12880
|
const o = n.getImmediate(), s = n.getOptions();
|
|
12881
12881
|
if (xr(s, e ?? {}))
|
|
12882
12882
|
return o;
|
|
12883
|
-
|
|
12883
|
+
Re(
|
|
12884
12884
|
o,
|
|
12885
12885
|
"already-initialized"
|
|
12886
12886
|
/* AuthErrorCode.ALREADY_INITIALIZED */
|
|
@@ -12889,7 +12889,7 @@ function v_(t, e) {
|
|
|
12889
12889
|
return n.initialize({ options: e });
|
|
12890
12890
|
}
|
|
12891
12891
|
function w_(t, e) {
|
|
12892
|
-
const n = (e == null ? void 0 : e.persistence) || [], r = (Array.isArray(n) ? n : [n]).map(
|
|
12892
|
+
const n = (e == null ? void 0 : e.persistence) || [], r = (Array.isArray(n) ? n : [n]).map(Ue);
|
|
12893
12893
|
e != null && e.errorMap && t._updateErrorMap(e.errorMap), t._initializeWithPersistence(r, e == null ? void 0 : e.popupRedirectResolver);
|
|
12894
12894
|
}
|
|
12895
12895
|
function b_(t, e, n) {
|
|
@@ -12970,19 +12970,19 @@ class Gd {
|
|
|
12970
12970
|
* @returns a JSON-serializable representation of this object.
|
|
12971
12971
|
*/
|
|
12972
12972
|
toJSON() {
|
|
12973
|
-
return
|
|
12973
|
+
return je("not implemented");
|
|
12974
12974
|
}
|
|
12975
12975
|
/** @internal */
|
|
12976
12976
|
_getIdTokenResponse(e) {
|
|
12977
|
-
return
|
|
12977
|
+
return je("not implemented");
|
|
12978
12978
|
}
|
|
12979
12979
|
/** @internal */
|
|
12980
12980
|
_linkToIdToken(e, n) {
|
|
12981
|
-
return
|
|
12981
|
+
return je("not implemented");
|
|
12982
12982
|
}
|
|
12983
12983
|
/** @internal */
|
|
12984
12984
|
_getReauthenticationResolver(e) {
|
|
12985
|
-
return
|
|
12985
|
+
return je("not implemented");
|
|
12986
12986
|
}
|
|
12987
12987
|
}
|
|
12988
12988
|
/**
|
|
@@ -13028,7 +13028,7 @@ class Tt extends Gd {
|
|
|
13028
13028
|
/** @internal */
|
|
13029
13029
|
static _fromParams(e) {
|
|
13030
13030
|
const n = new Tt(e.providerId, e.signInMethod);
|
|
13031
|
-
return e.idToken || e.accessToken ? (e.idToken && (n.idToken = e.idToken), e.accessToken && (n.accessToken = e.accessToken), e.nonce && !e.pendingToken && (n.nonce = e.nonce), e.pendingToken && (n.pendingToken = e.pendingToken)) : e.oauthToken && e.oauthTokenSecret ? (n.accessToken = e.oauthToken, n.secret = e.oauthTokenSecret) :
|
|
13031
|
+
return e.idToken || e.accessToken ? (e.idToken && (n.idToken = e.idToken), e.accessToken && (n.accessToken = e.accessToken), e.nonce && !e.pendingToken && (n.nonce = e.nonce), e.pendingToken && (n.pendingToken = e.pendingToken)) : e.oauthToken && e.oauthTokenSecret ? (n.accessToken = e.oauthToken, n.secret = e.oauthTokenSecret) : Re(
|
|
13032
13032
|
"argument-error"
|
|
13033
13033
|
/* AuthErrorCode.ARGUMENT_ERROR */
|
|
13034
13034
|
), n;
|
|
@@ -13085,7 +13085,7 @@ class Tt extends Gd {
|
|
|
13085
13085
|
e.pendingToken = this.pendingToken;
|
|
13086
13086
|
else {
|
|
13087
13087
|
const n = {};
|
|
13088
|
-
this.idToken && (n.id_token = this.idToken), this.accessToken && (n.access_token = this.accessToken), this.secret && (n.oauth_token_secret = this.secret), n.providerId = this.providerId, this.nonce && !this.pendingToken && (n.nonce = this.nonce), e.postBody =
|
|
13088
|
+
this.idToken && (n.id_token = this.idToken), this.accessToken && (n.access_token = this.accessToken), this.secret && (n.oauth_token_secret = this.secret), n.providerId = this.providerId, this.nonce && !this.pendingToken && (n.nonce = this.nonce), e.postBody = Nn(n);
|
|
13089
13089
|
}
|
|
13090
13090
|
return e;
|
|
13091
13091
|
}
|
|
@@ -13159,7 +13159,7 @@ class Ci {
|
|
|
13159
13159
|
* See the License for the specific language governing permissions and
|
|
13160
13160
|
* limitations under the License.
|
|
13161
13161
|
*/
|
|
13162
|
-
class
|
|
13162
|
+
class Ln extends Ci {
|
|
13163
13163
|
constructor() {
|
|
13164
13164
|
super(...arguments), this.scopes = [];
|
|
13165
13165
|
}
|
|
@@ -13194,7 +13194,7 @@ class Dn extends Ci {
|
|
|
13194
13194
|
* See the License for the specific language governing permissions and
|
|
13195
13195
|
* limitations under the License.
|
|
13196
13196
|
*/
|
|
13197
|
-
class Ze extends
|
|
13197
|
+
class Ze extends Ln {
|
|
13198
13198
|
constructor() {
|
|
13199
13199
|
super(
|
|
13200
13200
|
"facebook.com"
|
|
@@ -13265,7 +13265,7 @@ Ze.PROVIDER_ID = "facebook.com";
|
|
|
13265
13265
|
* See the License for the specific language governing permissions and
|
|
13266
13266
|
* limitations under the License.
|
|
13267
13267
|
*/
|
|
13268
|
-
class
|
|
13268
|
+
class Ce extends Ln {
|
|
13269
13269
|
constructor() {
|
|
13270
13270
|
super(
|
|
13271
13271
|
"google.com"
|
|
@@ -13287,8 +13287,8 @@ class Se extends Dn {
|
|
|
13287
13287
|
*/
|
|
13288
13288
|
static credential(e, n) {
|
|
13289
13289
|
return Tt._fromParams({
|
|
13290
|
-
providerId:
|
|
13291
|
-
signInMethod:
|
|
13290
|
+
providerId: Ce.PROVIDER_ID,
|
|
13291
|
+
signInMethod: Ce.GOOGLE_SIGN_IN_METHOD,
|
|
13292
13292
|
idToken: e,
|
|
13293
13293
|
accessToken: n
|
|
13294
13294
|
});
|
|
@@ -13299,7 +13299,7 @@ class Se extends Dn {
|
|
|
13299
13299
|
* @param userCredential - The user credential.
|
|
13300
13300
|
*/
|
|
13301
13301
|
static credentialFromResult(e) {
|
|
13302
|
-
return
|
|
13302
|
+
return Ce.credentialFromTaggedObject(e);
|
|
13303
13303
|
}
|
|
13304
13304
|
/**
|
|
13305
13305
|
* Used to extract the underlying {@link OAuthCredential} from a {@link AuthError} which was
|
|
@@ -13308,7 +13308,7 @@ class Se extends Dn {
|
|
|
13308
13308
|
* @param userCredential - The user credential.
|
|
13309
13309
|
*/
|
|
13310
13310
|
static credentialFromError(e) {
|
|
13311
|
-
return
|
|
13311
|
+
return Ce.credentialFromTaggedObject(e.customData || {});
|
|
13312
13312
|
}
|
|
13313
13313
|
static credentialFromTaggedObject({ _tokenResponse: e }) {
|
|
13314
13314
|
if (!e)
|
|
@@ -13317,14 +13317,14 @@ class Se extends Dn {
|
|
|
13317
13317
|
if (!n && !r)
|
|
13318
13318
|
return null;
|
|
13319
13319
|
try {
|
|
13320
|
-
return
|
|
13320
|
+
return Ce.credential(n, r);
|
|
13321
13321
|
} catch {
|
|
13322
13322
|
return null;
|
|
13323
13323
|
}
|
|
13324
13324
|
}
|
|
13325
13325
|
}
|
|
13326
|
-
|
|
13327
|
-
|
|
13326
|
+
Ce.GOOGLE_SIGN_IN_METHOD = "google.com";
|
|
13327
|
+
Ce.PROVIDER_ID = "google.com";
|
|
13328
13328
|
/**
|
|
13329
13329
|
* @license
|
|
13330
13330
|
* Copyright 2020 Google LLC
|
|
@@ -13341,7 +13341,7 @@ Se.PROVIDER_ID = "google.com";
|
|
|
13341
13341
|
* See the License for the specific language governing permissions and
|
|
13342
13342
|
* limitations under the License.
|
|
13343
13343
|
*/
|
|
13344
|
-
class Qe extends
|
|
13344
|
+
class Qe extends Ln {
|
|
13345
13345
|
constructor() {
|
|
13346
13346
|
super(
|
|
13347
13347
|
"github.com"
|
|
@@ -13405,7 +13405,7 @@ Qe.PROVIDER_ID = "github.com";
|
|
|
13405
13405
|
* See the License for the specific language governing permissions and
|
|
13406
13406
|
* limitations under the License.
|
|
13407
13407
|
*/
|
|
13408
|
-
class et extends
|
|
13408
|
+
class et extends Ln {
|
|
13409
13409
|
constructor() {
|
|
13410
13410
|
super(
|
|
13411
13411
|
"twitter.com"
|
|
@@ -13479,7 +13479,7 @@ class Gt {
|
|
|
13479
13479
|
this.user = e.user, this.providerId = e.providerId, this._tokenResponse = e._tokenResponse, this.operationType = e.operationType;
|
|
13480
13480
|
}
|
|
13481
13481
|
static async _fromIdTokenResponse(e, n, r, o = !1) {
|
|
13482
|
-
const s = await
|
|
13482
|
+
const s = await $e._fromIdTokenResponse(e, r, o), i = Ec(r);
|
|
13483
13483
|
return new Gt({
|
|
13484
13484
|
user: s,
|
|
13485
13485
|
providerId: i,
|
|
@@ -13541,7 +13541,7 @@ function Jd(t, e, n, r) {
|
|
|
13541
13541
|
});
|
|
13542
13542
|
}
|
|
13543
13543
|
async function C_(t, e, n = !1) {
|
|
13544
|
-
const r = await
|
|
13544
|
+
const r = await xn(t, e._linkToIdToken(t.auth, await t.getIdToken()), n);
|
|
13545
13545
|
return Gt._forOperation(t, "link", r);
|
|
13546
13546
|
}
|
|
13547
13547
|
/**
|
|
@@ -13562,11 +13562,11 @@ async function C_(t, e, n = !1) {
|
|
|
13562
13562
|
*/
|
|
13563
13563
|
async function x_(t, e, n = !1) {
|
|
13564
13564
|
const { auth: r } = t;
|
|
13565
|
-
if (
|
|
13565
|
+
if (Me(r.app))
|
|
13566
13566
|
return Promise.reject(Et(r));
|
|
13567
13567
|
const o = "reauthenticate";
|
|
13568
13568
|
try {
|
|
13569
|
-
const s = await
|
|
13569
|
+
const s = await xn(t, Jd(r, o, e, t), n);
|
|
13570
13570
|
O(
|
|
13571
13571
|
s.idToken,
|
|
13572
13572
|
r,
|
|
@@ -13588,7 +13588,7 @@ async function x_(t, e, n = !1) {
|
|
|
13588
13588
|
/* AuthErrorCode.USER_MISMATCH */
|
|
13589
13589
|
), Gt._forOperation(t, o, s);
|
|
13590
13590
|
} catch (s) {
|
|
13591
|
-
throw (s == null ? void 0 : s.code) === "auth/user-not-found" &&
|
|
13591
|
+
throw (s == null ? void 0 : s.code) === "auth/user-not-found" && Re(
|
|
13592
13592
|
r,
|
|
13593
13593
|
"user-mismatch"
|
|
13594
13594
|
/* AuthErrorCode.USER_MISMATCH */
|
|
@@ -13612,7 +13612,7 @@ async function x_(t, e, n = !1) {
|
|
|
13612
13612
|
* limitations under the License.
|
|
13613
13613
|
*/
|
|
13614
13614
|
async function T_(t, e, n = !1) {
|
|
13615
|
-
if (
|
|
13615
|
+
if (Me(t.app))
|
|
13616
13616
|
return Promise.reject(Et(t));
|
|
13617
13617
|
const r = "signIn", o = await Jd(t, r, e), s = await Gt._fromIdTokenResponse(t, r, o);
|
|
13618
13618
|
return n || await t._updateCurrentUser(s.user), s;
|
|
@@ -14044,11 +14044,11 @@ class P_ {
|
|
|
14044
14044
|
* See the License for the specific language governing permissions and
|
|
14045
14045
|
* limitations under the License.
|
|
14046
14046
|
*/
|
|
14047
|
-
function
|
|
14047
|
+
function ke() {
|
|
14048
14048
|
return window;
|
|
14049
14049
|
}
|
|
14050
14050
|
function D_(t) {
|
|
14051
|
-
|
|
14051
|
+
ke().location.href = t;
|
|
14052
14052
|
}
|
|
14053
14053
|
/**
|
|
14054
14054
|
* @license
|
|
@@ -14067,7 +14067,7 @@ function D_(t) {
|
|
|
14067
14067
|
* limitations under the License.
|
|
14068
14068
|
*/
|
|
14069
14069
|
function Qd() {
|
|
14070
|
-
return typeof
|
|
14070
|
+
return typeof ke().WorkerGlobalScope < "u" && typeof ke().importScripts == "function";
|
|
14071
14071
|
}
|
|
14072
14072
|
async function L_() {
|
|
14073
14073
|
if (!(navigator != null && navigator.serviceWorker))
|
|
@@ -14102,7 +14102,7 @@ function j_() {
|
|
|
14102
14102
|
* limitations under the License.
|
|
14103
14103
|
*/
|
|
14104
14104
|
const ef = "firebaseLocalStorageDb", $_ = 1, Or = "firebaseLocalStorage", tf = "fbase_key";
|
|
14105
|
-
class
|
|
14105
|
+
class Mn {
|
|
14106
14106
|
constructor(e) {
|
|
14107
14107
|
this.request = e;
|
|
14108
14108
|
}
|
|
@@ -14121,7 +14121,7 @@ function co(t, e) {
|
|
|
14121
14121
|
}
|
|
14122
14122
|
function U_() {
|
|
14123
14123
|
const t = indexedDB.deleteDatabase(ef);
|
|
14124
|
-
return new
|
|
14124
|
+
return new Mn(t).toPromise();
|
|
14125
14125
|
}
|
|
14126
14126
|
function Os() {
|
|
14127
14127
|
const t = indexedDB.open(ef, $_);
|
|
@@ -14146,15 +14146,15 @@ async function _c(t, e, n) {
|
|
|
14146
14146
|
[tf]: e,
|
|
14147
14147
|
value: n
|
|
14148
14148
|
});
|
|
14149
|
-
return new
|
|
14149
|
+
return new Mn(r).toPromise();
|
|
14150
14150
|
}
|
|
14151
14151
|
async function F_(t, e) {
|
|
14152
|
-
const n = co(t, !1).get(e), r = await new
|
|
14152
|
+
const n = co(t, !1).get(e), r = await new Mn(n).toPromise();
|
|
14153
14153
|
return r === void 0 ? null : r.value;
|
|
14154
14154
|
}
|
|
14155
14155
|
function Sc(t, e) {
|
|
14156
14156
|
const n = co(t, !0).delete(e);
|
|
14157
|
-
return new
|
|
14157
|
+
return new Mn(n).toPromise();
|
|
14158
14158
|
}
|
|
14159
14159
|
const V_ = 800, B_ = 3;
|
|
14160
14160
|
class nf {
|
|
@@ -14272,7 +14272,7 @@ class nf {
|
|
|
14272
14272
|
async _poll() {
|
|
14273
14273
|
const e = await this._withRetries((o) => {
|
|
14274
14274
|
const s = co(o, !1).getAll();
|
|
14275
|
-
return new
|
|
14275
|
+
return new Mn(s).toPromise();
|
|
14276
14276
|
});
|
|
14277
14277
|
if (!e)
|
|
14278
14278
|
return [];
|
|
@@ -14308,7 +14308,7 @@ class nf {
|
|
|
14308
14308
|
}
|
|
14309
14309
|
nf.type = "LOCAL";
|
|
14310
14310
|
const H_ = nf;
|
|
14311
|
-
new
|
|
14311
|
+
new Dn(3e4, 6e4);
|
|
14312
14312
|
/**
|
|
14313
14313
|
* @license
|
|
14314
14314
|
* Copyright 2021 Google LLC
|
|
@@ -14326,7 +14326,7 @@ new Pn(3e4, 6e4);
|
|
|
14326
14326
|
* limitations under the License.
|
|
14327
14327
|
*/
|
|
14328
14328
|
function rf(t, e) {
|
|
14329
|
-
return e ?
|
|
14329
|
+
return e ? Ue(e) : (O(
|
|
14330
14330
|
t._popupRedirectResolver,
|
|
14331
14331
|
t,
|
|
14332
14332
|
"argument-error"
|
|
@@ -14466,7 +14466,7 @@ class of {
|
|
|
14466
14466
|
case "reauthViaRedirect":
|
|
14467
14467
|
return W_;
|
|
14468
14468
|
default:
|
|
14469
|
-
|
|
14469
|
+
Re(
|
|
14470
14470
|
this.auth,
|
|
14471
14471
|
"internal-error"
|
|
14472
14472
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
@@ -14499,10 +14499,10 @@ class of {
|
|
|
14499
14499
|
* See the License for the specific language governing permissions and
|
|
14500
14500
|
* limitations under the License.
|
|
14501
14501
|
*/
|
|
14502
|
-
const G_ = new
|
|
14502
|
+
const G_ = new Dn(2e3, 1e4);
|
|
14503
14503
|
async function J_(t, e, n) {
|
|
14504
|
-
if (
|
|
14505
|
-
return Promise.reject(
|
|
14504
|
+
if (Me(t.app))
|
|
14505
|
+
return Promise.reject(ve(
|
|
14506
14506
|
t,
|
|
14507
14507
|
"operation-not-supported-in-this-environment"
|
|
14508
14508
|
/* AuthErrorCode.OPERATION_NOT_SUPPORTED */
|
|
@@ -14537,7 +14537,7 @@ class gt extends of {
|
|
|
14537
14537
|
), this.authWindow.associatedEvent = e, this.resolver._originValidation(this.auth).catch((n) => {
|
|
14538
14538
|
this.reject(n);
|
|
14539
14539
|
}), this.resolver._isIframeWebStorageSupported(this.auth, (n) => {
|
|
14540
|
-
n || this.reject(
|
|
14540
|
+
n || this.reject(ve(
|
|
14541
14541
|
this.auth,
|
|
14542
14542
|
"web-storage-unsupported"
|
|
14543
14543
|
/* AuthErrorCode.WEB_STORAGE_UNSUPPORTED */
|
|
@@ -14549,7 +14549,7 @@ class gt extends of {
|
|
|
14549
14549
|
return ((e = this.authWindow) === null || e === void 0 ? void 0 : e.associatedEvent) || null;
|
|
14550
14550
|
}
|
|
14551
14551
|
cancel() {
|
|
14552
|
-
this.reject(
|
|
14552
|
+
this.reject(ve(
|
|
14553
14553
|
this.auth,
|
|
14554
14554
|
"cancelled-popup-request"
|
|
14555
14555
|
/* AuthErrorCode.EXPIRED_POPUP_REQUEST */
|
|
@@ -14564,7 +14564,7 @@ class gt extends of {
|
|
|
14564
14564
|
if (!((r = (n = this.authWindow) === null || n === void 0 ? void 0 : n.window) === null || r === void 0) && r.closed) {
|
|
14565
14565
|
this.pollId = window.setTimeout(
|
|
14566
14566
|
() => {
|
|
14567
|
-
this.pollId = null, this.reject(
|
|
14567
|
+
this.pollId = null, this.reject(ve(
|
|
14568
14568
|
this.auth,
|
|
14569
14569
|
"popup-closed-by-user"
|
|
14570
14570
|
/* AuthErrorCode.POPUP_CLOSED_BY_USER */
|
|
@@ -14655,13 +14655,13 @@ function Z_(t, e) {
|
|
|
14655
14655
|
fr.set(t._key(), e);
|
|
14656
14656
|
}
|
|
14657
14657
|
function Q_(t) {
|
|
14658
|
-
return
|
|
14658
|
+
return Ue(t._redirectPersistence);
|
|
14659
14659
|
}
|
|
14660
14660
|
function eS(t) {
|
|
14661
14661
|
return dr(K_, t.config.apiKey, t.name);
|
|
14662
14662
|
}
|
|
14663
14663
|
async function tS(t, e, n = !1) {
|
|
14664
|
-
if (
|
|
14664
|
+
if (Me(t.app))
|
|
14665
14665
|
return Promise.reject(Et(t));
|
|
14666
14666
|
const r = io(t), o = rf(r, e), i = await new X_(r, o, n).execute();
|
|
14667
14667
|
return i && !n && (delete i.user._redirectEventId, await r._persistUserIfCurrent(i.user), await r._setRedirectUser(null, e)), i;
|
|
@@ -14705,7 +14705,7 @@ class rS {
|
|
|
14705
14705
|
var r;
|
|
14706
14706
|
if (e.error && !sf(e)) {
|
|
14707
14707
|
const o = ((r = e.error.code) === null || r === void 0 ? void 0 : r.split("auth/")[1]) || "internal-error";
|
|
14708
|
-
n.onError(
|
|
14708
|
+
n.onError(ve(this.auth, o));
|
|
14709
14709
|
} else
|
|
14710
14710
|
n.onAuthEvent(e);
|
|
14711
14711
|
}
|
|
@@ -14784,7 +14784,7 @@ async function cS(t) {
|
|
|
14784
14784
|
return;
|
|
14785
14785
|
} catch {
|
|
14786
14786
|
}
|
|
14787
|
-
|
|
14787
|
+
Re(
|
|
14788
14788
|
t,
|
|
14789
14789
|
"unauthorized-domain"
|
|
14790
14790
|
/* AuthErrorCode.INVALID_ORIGIN */
|
|
@@ -14819,9 +14819,9 @@ function lS(t) {
|
|
|
14819
14819
|
* See the License for the specific language governing permissions and
|
|
14820
14820
|
* limitations under the License.
|
|
14821
14821
|
*/
|
|
14822
|
-
const uS = new
|
|
14822
|
+
const uS = new Dn(3e4, 6e4);
|
|
14823
14823
|
function xc() {
|
|
14824
|
-
const t =
|
|
14824
|
+
const t = ke().___jsl;
|
|
14825
14825
|
if (t != null && t.H) {
|
|
14826
14826
|
for (const e of Object.keys(t.H))
|
|
14827
14827
|
if (t.H[e].r = t.H[e].r || [], t.H[e].L = t.H[e].L || [], t.H[e].r = [...t.H[e].L], t.CP)
|
|
@@ -14838,7 +14838,7 @@ function dS(t) {
|
|
|
14838
14838
|
e(gapi.iframes.getContext());
|
|
14839
14839
|
},
|
|
14840
14840
|
ontimeout: () => {
|
|
14841
|
-
xc(), n(
|
|
14841
|
+
xc(), n(ve(
|
|
14842
14842
|
t,
|
|
14843
14843
|
"network-request-failed"
|
|
14844
14844
|
/* AuthErrorCode.NETWORK_REQUEST_FAILED */
|
|
@@ -14847,14 +14847,14 @@ function dS(t) {
|
|
|
14847
14847
|
timeout: uS.get()
|
|
14848
14848
|
});
|
|
14849
14849
|
}
|
|
14850
|
-
if (!((o = (r =
|
|
14850
|
+
if (!((o = (r = ke().gapi) === null || r === void 0 ? void 0 : r.iframes) === null || o === void 0) && o.Iframe)
|
|
14851
14851
|
e(gapi.iframes.getContext());
|
|
14852
|
-
else if (!((s =
|
|
14852
|
+
else if (!((s = ke().gapi) === null || s === void 0) && s.load)
|
|
14853
14853
|
i();
|
|
14854
14854
|
else {
|
|
14855
14855
|
const a = y_("iframefcb");
|
|
14856
|
-
return
|
|
14857
|
-
gapi.load ? i() : n(
|
|
14856
|
+
return ke()[a] = () => {
|
|
14857
|
+
gapi.load ? i() : n(ve(
|
|
14858
14858
|
t,
|
|
14859
14859
|
"network-request-failed"
|
|
14860
14860
|
/* AuthErrorCode.NETWORK_REQUEST_FAILED */
|
|
@@ -14885,7 +14885,7 @@ function fS(t) {
|
|
|
14885
14885
|
* See the License for the specific language governing permissions and
|
|
14886
14886
|
* limitations under the License.
|
|
14887
14887
|
*/
|
|
14888
|
-
const hS = new
|
|
14888
|
+
const hS = new Dn(5e3, 15e3), pS = "__/auth/iframe", mS = "emulator/auth/iframe", gS = {
|
|
14889
14889
|
style: {
|
|
14890
14890
|
position: "absolute",
|
|
14891
14891
|
top: "-100px",
|
|
@@ -14911,14 +14911,14 @@ function vS(t) {
|
|
|
14911
14911
|
const n = e.emulator ? wi(e, mS) : `https://${t.config.authDomain}/${pS}`, r = {
|
|
14912
14912
|
apiKey: e.apiKey,
|
|
14913
14913
|
appName: t.name,
|
|
14914
|
-
v:
|
|
14914
|
+
v: Pn
|
|
14915
14915
|
}, o = yS.get(t.config.apiHost);
|
|
14916
14916
|
o && (r.eid = o);
|
|
14917
14917
|
const s = t._getFrameworks();
|
|
14918
|
-
return s.length && (r.fw = s.join(",")), `${n}?${
|
|
14918
|
+
return s.length && (r.fw = s.join(",")), `${n}?${Nn(r).slice(1)}`;
|
|
14919
14919
|
}
|
|
14920
14920
|
async function wS(t) {
|
|
14921
|
-
const e = await fS(t), n =
|
|
14921
|
+
const e = await fS(t), n = ke().gapi;
|
|
14922
14922
|
return O(
|
|
14923
14923
|
n,
|
|
14924
14924
|
t,
|
|
@@ -14935,15 +14935,15 @@ async function wS(t) {
|
|
|
14935
14935
|
// Prevent iframe from closing on mouse out.
|
|
14936
14936
|
setHideOnLeave: !1
|
|
14937
14937
|
});
|
|
14938
|
-
const i =
|
|
14938
|
+
const i = ve(
|
|
14939
14939
|
t,
|
|
14940
14940
|
"network-request-failed"
|
|
14941
14941
|
/* AuthErrorCode.NETWORK_REQUEST_FAILED */
|
|
14942
|
-
), a =
|
|
14942
|
+
), a = ke().setTimeout(() => {
|
|
14943
14943
|
s(i);
|
|
14944
14944
|
}, hS.get());
|
|
14945
14945
|
function c() {
|
|
14946
|
-
|
|
14946
|
+
ke().clearTimeout(a), o(r);
|
|
14947
14947
|
}
|
|
14948
14948
|
r.ping(c).then(c, () => {
|
|
14949
14949
|
s(i);
|
|
@@ -15050,7 +15050,7 @@ async function Ic(t, e, n, r, o, s) {
|
|
|
15050
15050
|
appName: t.name,
|
|
15051
15051
|
authType: n,
|
|
15052
15052
|
redirectUrl: r,
|
|
15053
|
-
v:
|
|
15053
|
+
v: Pn,
|
|
15054
15054
|
eventId: o
|
|
15055
15055
|
};
|
|
15056
15056
|
if (e instanceof Ci) {
|
|
@@ -15058,7 +15058,7 @@ async function Ic(t, e, n, r, o, s) {
|
|
|
15058
15058
|
for (const [l, d] of Object.entries({}))
|
|
15059
15059
|
i[l] = d;
|
|
15060
15060
|
}
|
|
15061
|
-
if (e instanceof
|
|
15061
|
+
if (e instanceof Ln) {
|
|
15062
15062
|
const l = e.getScopes().filter((d) => d !== "");
|
|
15063
15063
|
l.length > 0 && (i.scopes = l.join(","));
|
|
15064
15064
|
}
|
|
@@ -15067,7 +15067,7 @@ async function Ic(t, e, n, r, o, s) {
|
|
|
15067
15067
|
for (const l of Object.keys(a))
|
|
15068
15068
|
a[l] === void 0 && delete a[l];
|
|
15069
15069
|
const c = await t._getAppCheckToken(), u = c ? `#${RS}=${encodeURIComponent(c)}` : "";
|
|
15070
|
-
return `${AS(t)}?${
|
|
15070
|
+
return `${AS(t)}?${Nn(a).slice(1)}${u}`;
|
|
15071
15071
|
}
|
|
15072
15072
|
function AS({ config: t }) {
|
|
15073
15073
|
return t.emulator ? wi(t, kS) : `https://${t.authDomain}/${IS}`;
|
|
@@ -15134,7 +15134,7 @@ class OS {
|
|
|
15134
15134
|
this.iframes[e._key()].send(Wo, { type: Wo }, (o) => {
|
|
15135
15135
|
var s;
|
|
15136
15136
|
const i = (s = o == null ? void 0 : o[0]) === null || s === void 0 ? void 0 : s[Wo];
|
|
15137
|
-
i !== void 0 && n(!!i),
|
|
15137
|
+
i !== void 0 && n(!!i), Re(
|
|
15138
15138
|
e,
|
|
15139
15139
|
"internal-error"
|
|
15140
15140
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
@@ -15235,7 +15235,7 @@ function DS(t) {
|
|
|
15235
15235
|
}
|
|
15236
15236
|
}
|
|
15237
15237
|
function LS(t) {
|
|
15238
|
-
|
|
15238
|
+
Sn(new qt(
|
|
15239
15239
|
"auth",
|
|
15240
15240
|
(e, { options: n }) => {
|
|
15241
15241
|
const r = e.getProvider("app").getImmediate(), o = e.getProvider("heartbeat"), s = e.getProvider("app-check-internal"), { apiKey: i, authDomain: a } = r.options;
|
|
@@ -15261,7 +15261,7 @@ function LS(t) {
|
|
|
15261
15261
|
"auth-internal"
|
|
15262
15262
|
/* _ComponentName.AUTH_INTERNAL */
|
|
15263
15263
|
).initialize();
|
|
15264
|
-
})),
|
|
15264
|
+
})), Sn(new qt(
|
|
15265
15265
|
"auth-internal",
|
|
15266
15266
|
(e) => {
|
|
15267
15267
|
const n = io(e.getProvider(
|
|
@@ -15338,7 +15338,7 @@ p_({
|
|
|
15338
15338
|
return new Promise((e, n) => {
|
|
15339
15339
|
const r = document.createElement("script");
|
|
15340
15340
|
r.setAttribute("src", t), r.onload = e, r.onerror = (o) => {
|
|
15341
|
-
const s =
|
|
15341
|
+
const s = ve(
|
|
15342
15342
|
"internal-error"
|
|
15343
15343
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
15344
15344
|
);
|
|
@@ -15379,18 +15379,18 @@ const HS = {
|
|
|
15379
15379
|
storageBucket: "ethora-668e9.appspot.com",
|
|
15380
15380
|
messagingSenderId: "972933470054",
|
|
15381
15381
|
appId: "1:972933470054:web:d4682e76ef02fd9b9cdaa7"
|
|
15382
|
-
}, zS = Td(HS), lo = "JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJkYXRhIjp7ImlzVXNlckRhdGFFbmNyeXB0ZWQiOmZhbHNlLCJwYXJlbnRBcHBJZCI6bnVsbCwiaXNBbGxvd2VkTmV3QXBwQ3JlYXRlIjp0cnVlLCJpc0Jhc2VBcHAiOnRydWUsIl9pZCI6IjY0NmNjOGRjOTZkNGE0ZGM4ZjdiMmYyZCIsImRpc3BsYXlOYW1lIjoiRXRob3JhIiwiZG9tYWluTmFtZSI6ImV0aG9yYSIsImNyZWF0b3JJZCI6IjY0NmNjOGQzOTZkNGE0ZGM4ZjdiMmYyNSIsInVzZXJzQ2FuRnJlZSI6dHJ1ZSwiZGVmYXVsdEFjY2Vzc0Fzc2V0c09wZW4iOnRydWUsImRlZmF1bHRBY2Nlc3NQcm9maWxlT3BlbiI6dHJ1ZSwiYnVuZGxlSWQiOiJjb20uZXRob3JhIiwicHJpbWFyeUNvbG9yIjoiIzAwM0U5QyIsInNlY29uZGFyeUNvbG9yIjoiIzI3NzVFQSIsImNvaW5TeW1ib2wiOiJFVE8iLCJjb2luTmFtZSI6IkV0aG9yYSBDb2luIiwiUkVBQ1RfQVBQX0ZJUkVCQVNFX0FQSV9LRVkiOiJBSXphU3lEUWRrdnZ4S0t4NC1XcmpMUW9ZZjA4R0ZBUmdpX3FPNGciLCJSRUFDVF9BUFBfRklSRUJBU0VfQVVUSF9ET01BSU4iOiJldGhvcmEtNjY4ZTkuZmlyZWJhc2VhcHAuY29tIiwiUkVBQ1RfQVBQX0ZJUkVCQVNFX1BST0pFQ1RfSUQiOiJldGhvcmEtNjY4ZTkiLCJSRUFDVF9BUFBfRklSRUJBU0VfU1RPUkFHRV9CVUNLRVQiOiJldGhvcmEtNjY4ZTkuYXBwc3BvdC5jb20iLCJSRUFDVF9BUFBfRklSRUJBU0VfTUVTU0FHSU5HX1NFTkRFUl9JRCI6Ijk3MjkzMzQ3MDA1NCIsIlJFQUNUX0FQUF9GSVJFQkFTRV9BUFBfSUQiOiIxOjk3MjkzMzQ3MDA1NDp3ZWI6ZDQ2ODJlNzZlZjAyZmQ5YjljZGFhNyIsIlJFQUNUX0FQUF9GSVJFQkFTRV9NRUFTVVJNRU5UX0lEIjoiRy1XSE03WFJaNEM4IiwiUkVBQ1RfQVBQX1NUUklQRV9QVUJMSVNIQUJMRV9LRVkiOiIiLCJSRUFDVF9BUFBfU1RSSVBFX1NFQ1JFVF9LRVkiOiIiLCJjcmVhdGVkQXQiOiIyMDIzLTA1LTIzVDE0OjA4OjI4LjEzNloiLCJ1cGRhdGVkQXQiOiIyMDIzLTA1LTIzVDE0OjA4OjI4LjEzNloiLCJfX3YiOjB9LCJpYXQiOjE2ODQ4NTA5MjV9.-IqNVMsf8GyS9Z-_yuNW7hpSmejajjAy-W0J8TadRIM", WS = "https://api.ethoradev.com/v1",
|
|
15382
|
+
}, zS = Td(HS), lo = "JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJkYXRhIjp7ImlzVXNlckRhdGFFbmNyeXB0ZWQiOmZhbHNlLCJwYXJlbnRBcHBJZCI6bnVsbCwiaXNBbGxvd2VkTmV3QXBwQ3JlYXRlIjp0cnVlLCJpc0Jhc2VBcHAiOnRydWUsIl9pZCI6IjY0NmNjOGRjOTZkNGE0ZGM4ZjdiMmYyZCIsImRpc3BsYXlOYW1lIjoiRXRob3JhIiwiZG9tYWluTmFtZSI6ImV0aG9yYSIsImNyZWF0b3JJZCI6IjY0NmNjOGQzOTZkNGE0ZGM4ZjdiMmYyNSIsInVzZXJzQ2FuRnJlZSI6dHJ1ZSwiZGVmYXVsdEFjY2Vzc0Fzc2V0c09wZW4iOnRydWUsImRlZmF1bHRBY2Nlc3NQcm9maWxlT3BlbiI6dHJ1ZSwiYnVuZGxlSWQiOiJjb20uZXRob3JhIiwicHJpbWFyeUNvbG9yIjoiIzAwM0U5QyIsInNlY29uZGFyeUNvbG9yIjoiIzI3NzVFQSIsImNvaW5TeW1ib2wiOiJFVE8iLCJjb2luTmFtZSI6IkV0aG9yYSBDb2luIiwiUkVBQ1RfQVBQX0ZJUkVCQVNFX0FQSV9LRVkiOiJBSXphU3lEUWRrdnZ4S0t4NC1XcmpMUW9ZZjA4R0ZBUmdpX3FPNGciLCJSRUFDVF9BUFBfRklSRUJBU0VfQVVUSF9ET01BSU4iOiJldGhvcmEtNjY4ZTkuZmlyZWJhc2VhcHAuY29tIiwiUkVBQ1RfQVBQX0ZJUkVCQVNFX1BST0pFQ1RfSUQiOiJldGhvcmEtNjY4ZTkiLCJSRUFDVF9BUFBfRklSRUJBU0VfU1RPUkFHRV9CVUNLRVQiOiJldGhvcmEtNjY4ZTkuYXBwc3BvdC5jb20iLCJSRUFDVF9BUFBfRklSRUJBU0VfTUVTU0FHSU5HX1NFTkRFUl9JRCI6Ijk3MjkzMzQ3MDA1NCIsIlJFQUNUX0FQUF9GSVJFQkFTRV9BUFBfSUQiOiIxOjk3MjkzMzQ3MDA1NDp3ZWI6ZDQ2ODJlNzZlZjAyZmQ5YjljZGFhNyIsIlJFQUNUX0FQUF9GSVJFQkFTRV9NRUFTVVJNRU5UX0lEIjoiRy1XSE03WFJaNEM4IiwiUkVBQ1RfQVBQX1NUUklQRV9QVUJMSVNIQUJMRV9LRVkiOiIiLCJSRUFDVF9BUFBfU1RSSVBFX1NFQ1JFVF9LRVkiOiIiLCJjcmVhdGVkQXQiOiIyMDIzLTA1LTIzVDE0OjA4OjI4LjEzNloiLCJ1cGRhdGVkQXQiOiIyMDIzLTA1LTIzVDE0OjA4OjI4LjEzNloiLCJfX3YiOjB9LCJpYXQiOjE2ODQ4NTA5MjV9.-IqNVMsf8GyS9Z-_yuNW7hpSmejajjAy-W0J8TadRIM", WS = "https://api.ethoradev.com/v1", Ae = W.create({
|
|
15383
15383
|
baseURL: WS
|
|
15384
15384
|
});
|
|
15385
15385
|
function af() {
|
|
15386
15386
|
return new Promise((t, e) => {
|
|
15387
|
-
const n =
|
|
15388
|
-
|
|
15387
|
+
const n = me.getState().loginStore.user;
|
|
15388
|
+
Ae.post(
|
|
15389
15389
|
"/users/login/refresh",
|
|
15390
15390
|
{},
|
|
15391
15391
|
{ headers: { Authorization: n.refreshToken } }
|
|
15392
15392
|
).then((r) => {
|
|
15393
|
-
|
|
15393
|
+
me.dispatch(
|
|
15394
15394
|
Cm({
|
|
15395
15395
|
token: r.data.token,
|
|
15396
15396
|
refreshToken: r.data.refreshToken
|
|
@@ -15401,23 +15401,23 @@ function af() {
|
|
|
15401
15401
|
});
|
|
15402
15402
|
});
|
|
15403
15403
|
}
|
|
15404
|
-
let
|
|
15404
|
+
let er = !1, Ns = [];
|
|
15405
15405
|
const qS = (t) => new Promise((e, n) => {
|
|
15406
15406
|
Ns.push({ resolve: e, reject: n, config: t });
|
|
15407
15407
|
}), GS = (t) => {
|
|
15408
15408
|
for (const e of Ns)
|
|
15409
|
-
t && (e.config.headers.Authorization = t), e.resolve(
|
|
15409
|
+
t && (e.config.headers.Authorization = t), e.resolve(Ae(e.config));
|
|
15410
15410
|
Ns = [];
|
|
15411
15411
|
};
|
|
15412
15412
|
function JS(t, e) {
|
|
15413
|
-
return
|
|
15413
|
+
return Ae.post("/files/", t, {
|
|
15414
15414
|
headers: {
|
|
15415
15415
|
Authorization: e,
|
|
15416
15416
|
Accept: "*/*"
|
|
15417
15417
|
}
|
|
15418
15418
|
});
|
|
15419
15419
|
}
|
|
15420
|
-
|
|
15420
|
+
Ae.interceptors.response.use(
|
|
15421
15421
|
(t) => t,
|
|
15422
15422
|
async (t) => {
|
|
15423
15423
|
const e = t.config;
|
|
@@ -15425,19 +15425,19 @@ Re.interceptors.response.use(
|
|
|
15425
15425
|
throw t;
|
|
15426
15426
|
if (e.url === "/users/login/refresh" || e.url === "/users/login")
|
|
15427
15427
|
return Promise.reject(t);
|
|
15428
|
-
if (e._retry = !0,
|
|
15428
|
+
if (e._retry = !0, er)
|
|
15429
15429
|
return qS(e);
|
|
15430
|
-
|
|
15430
|
+
er = !0;
|
|
15431
15431
|
try {
|
|
15432
15432
|
const n = await af();
|
|
15433
|
-
return console.log("tokens", n),
|
|
15433
|
+
return console.log("tokens", n), er = !1, e.headers.Authorization = n.data.token, GS(n.data.token), Ae(e);
|
|
15434
15434
|
} catch (n) {
|
|
15435
|
-
return
|
|
15435
|
+
return er = !1, n;
|
|
15436
15436
|
}
|
|
15437
15437
|
}
|
|
15438
15438
|
);
|
|
15439
15439
|
async function cf(t, e) {
|
|
15440
|
-
return await
|
|
15440
|
+
return await Ae.post(
|
|
15441
15441
|
"/users/login-with-email",
|
|
15442
15442
|
{
|
|
15443
15443
|
email: t,
|
|
@@ -15448,10 +15448,10 @@ async function cf(t, e) {
|
|
|
15448
15448
|
}
|
|
15449
15449
|
const KS = async () => {
|
|
15450
15450
|
var n;
|
|
15451
|
-
const t = US(zS), e = new
|
|
15451
|
+
const t = US(zS), e = new Ce();
|
|
15452
15452
|
e.addScope("https://www.googleapis.com/auth/userinfo.email"), e.addScope("https://www.googleapis.com/auth/userinfo.profile");
|
|
15453
15453
|
try {
|
|
15454
|
-
const r = await J_(t, e), o = r.user, s = await ((n = t == null ? void 0 : t.currentUser) == null ? void 0 : n.getIdToken()), i =
|
|
15454
|
+
const r = await J_(t, e), o = r.user, s = await ((n = t == null ? void 0 : t.currentUser) == null ? void 0 : n.getIdToken()), i = Ce.credentialFromResult(r);
|
|
15455
15455
|
return {
|
|
15456
15456
|
user: o,
|
|
15457
15457
|
idToken: s,
|
|
@@ -15462,7 +15462,7 @@ const KS = async () => {
|
|
|
15462
15462
|
}
|
|
15463
15463
|
};
|
|
15464
15464
|
function Oc(t, e, n, r = "authToken") {
|
|
15465
|
-
return
|
|
15465
|
+
return Ae.post(
|
|
15466
15466
|
"/users/login",
|
|
15467
15467
|
{
|
|
15468
15468
|
idToken: t,
|
|
@@ -15474,7 +15474,7 @@ function Oc(t, e, n, r = "authToken") {
|
|
|
15474
15474
|
);
|
|
15475
15475
|
}
|
|
15476
15476
|
function XS(t, e, n, r, o) {
|
|
15477
|
-
return
|
|
15477
|
+
return Ae.post(
|
|
15478
15478
|
"/users",
|
|
15479
15479
|
{
|
|
15480
15480
|
idToken: t,
|
|
@@ -15487,13 +15487,13 @@ function XS(t, e, n, r, o) {
|
|
|
15487
15487
|
);
|
|
15488
15488
|
}
|
|
15489
15489
|
function YS(t) {
|
|
15490
|
-
return
|
|
15490
|
+
return Ae.get(
|
|
15491
15491
|
"/users/checkEmail/" + t,
|
|
15492
15492
|
{ headers: { Authorization: lo } }
|
|
15493
15493
|
);
|
|
15494
15494
|
}
|
|
15495
15495
|
async function ZS(t) {
|
|
15496
|
-
return (await
|
|
15496
|
+
return (await Ae.post("/users", {}, { headers: { "x-custom-token": t } })).data.user;
|
|
15497
15497
|
}
|
|
15498
15498
|
const Nc = ["#f44336", "#2196f3", "#4caf50", "#ff9800"], QS = I.div`
|
|
15499
15499
|
width: ${({ size: t }) => `${t}px` || "64px"};
|
|
@@ -15534,7 +15534,7 @@ const Nc = ["#f44336", "#2196f3", "#4caf50", "#ff9800"], QS = I.div`
|
|
|
15534
15534
|
padding: 0 16px;
|
|
15535
15535
|
transition: width 0.7s ease-in-out;
|
|
15536
15536
|
width: 100%;
|
|
15537
|
-
${({ animated: t, direction: e, expanded: n }) => t &&
|
|
15537
|
+
${({ animated: t, direction: e, expanded: n }) => t && bn`
|
|
15538
15538
|
width: ${n ? "300px" : "48px"};
|
|
15539
15539
|
justify-content: ${e === "right" ? "flex-start" : "flex-end"};
|
|
15540
15540
|
cursor: pointer;
|
|
@@ -15610,7 +15610,7 @@ const Nc = ["#f44336", "#2196f3", "#4caf50", "#ff9800"], QS = I.div`
|
|
|
15610
15610
|
const n = parseInt(t, 16), r = n >> 16 & 255, o = n >> 8 & 255, s = n & 255, i = Math.round(r + (255 - r) * e), a = Math.round(o + (255 - o) * e), c = Math.round(s + (255 - s) * e);
|
|
15611
15611
|
return `#${((1 << 24) + (i << 16) + (a << 8) + c).toString(16).slice(1).toUpperCase()}`;
|
|
15612
15612
|
}, sC = I.div`
|
|
15613
|
-
${({ burgerMenu: t, open: e }) => t ?
|
|
15613
|
+
${({ burgerMenu: t, open: e }) => t ? bn`
|
|
15614
15614
|
position: fixed;
|
|
15615
15615
|
left: 0;
|
|
15616
15616
|
top: 0;
|
|
@@ -15624,7 +15624,7 @@ const Nc = ["#f44336", "#2196f3", "#4caf50", "#ff9800"], QS = I.div`
|
|
|
15624
15624
|
background-color: #fff;
|
|
15625
15625
|
padding: 16px 12px;
|
|
15626
15626
|
z-index: 1000;
|
|
15627
|
-
` :
|
|
15627
|
+
` : bn`
|
|
15628
15628
|
position: static;
|
|
15629
15629
|
width: 300px;
|
|
15630
15630
|
z-index: 2;
|
|
@@ -15686,7 +15686,7 @@ const Nc = ["#f44336", "#2196f3", "#4caf50", "#ff9800"], QS = I.div`
|
|
|
15686
15686
|
burgerMenu: n = !1,
|
|
15687
15687
|
onRoomClick: r
|
|
15688
15688
|
}) => {
|
|
15689
|
-
const [o, s] = Q(!1), [i, a] = Q(""), c =
|
|
15689
|
+
const [o, s] = Q(!1), [i, a] = Q(""), c = Fe(
|
|
15690
15690
|
(m) => m.chatSettingStore.config
|
|
15691
15691
|
), u = G(null), l = B((m) => {
|
|
15692
15692
|
u.current && !u.current.contains(m.target) && s(!1);
|
|
@@ -15706,7 +15706,7 @@ const Nc = ["#f44336", "#2196f3", "#4caf50", "#ff9800"], QS = I.div`
|
|
|
15706
15706
|
),
|
|
15707
15707
|
[t, i]
|
|
15708
15708
|
);
|
|
15709
|
-
|
|
15709
|
+
xe(() => {
|
|
15710
15710
|
if (n)
|
|
15711
15711
|
return document.addEventListener("mousedown", l), () => {
|
|
15712
15712
|
document.removeEventListener("mousedown", l);
|
|
@@ -15716,9 +15716,9 @@ const Nc = ["#f44336", "#2196f3", "#4caf50", "#ff9800"], QS = I.div`
|
|
|
15716
15716
|
(m) => e === m.jid,
|
|
15717
15717
|
[e]
|
|
15718
15718
|
);
|
|
15719
|
-
return /* @__PURE__ */ A(
|
|
15719
|
+
return /* @__PURE__ */ A(we, { children: [
|
|
15720
15720
|
n && !o && /* @__PURE__ */ g(iC, { onClick: () => s(!o), children: "☰" }),
|
|
15721
|
-
/* @__PURE__ */ g(sC, { burgerMenu: n, open: o, ref: u, children: o && /* @__PURE__ */ A(
|
|
15721
|
+
/* @__PURE__ */ g(sC, { burgerMenu: n, open: o, ref: u, children: o && /* @__PURE__ */ A(we, { children: [
|
|
15722
15722
|
/* @__PURE__ */ A(
|
|
15723
15723
|
"div",
|
|
15724
15724
|
{
|
|
@@ -15738,47 +15738,50 @@ const Nc = ["#f44336", "#2196f3", "#4caf50", "#ff9800"], QS = I.div`
|
|
|
15738
15738
|
placeholder: "Search..."
|
|
15739
15739
|
}
|
|
15740
15740
|
),
|
|
15741
|
-
/* @__PURE__ */ g(
|
|
15741
|
+
/* @__PURE__ */ g(Ie, { style: { color: "black" }, text: "New" })
|
|
15742
15742
|
]
|
|
15743
15743
|
}
|
|
15744
15744
|
),
|
|
15745
|
-
/* @__PURE__ */ g("div", { style: { height: "80%", overflow: "auto" }, children: p.map((m, y) =>
|
|
15746
|
-
|
|
15747
|
-
|
|
15748
|
-
|
|
15749
|
-
|
|
15750
|
-
|
|
15751
|
-
|
|
15752
|
-
|
|
15753
|
-
|
|
15754
|
-
|
|
15755
|
-
|
|
15756
|
-
|
|
15757
|
-
|
|
15758
|
-
|
|
15759
|
-
|
|
15760
|
-
|
|
15761
|
-
|
|
15762
|
-
|
|
15763
|
-
|
|
15764
|
-
/* @__PURE__ */ g(
|
|
15765
|
-
/* @__PURE__ */
|
|
15766
|
-
|
|
15767
|
-
|
|
15768
|
-
|
|
15769
|
-
|
|
15770
|
-
|
|
15771
|
-
|
|
15772
|
-
|
|
15773
|
-
|
|
15774
|
-
|
|
15745
|
+
/* @__PURE__ */ g("div", { style: { height: "80%", overflow: "auto" }, children: p.map((m, y) => {
|
|
15746
|
+
var v;
|
|
15747
|
+
return /* @__PURE__ */ A(
|
|
15748
|
+
aC,
|
|
15749
|
+
{
|
|
15750
|
+
active: h(m),
|
|
15751
|
+
onClick: () => d(m),
|
|
15752
|
+
bg: (v = c == null ? void 0 : c.colors) == null ? void 0 : v.primary,
|
|
15753
|
+
children: [
|
|
15754
|
+
/* @__PURE__ */ A(
|
|
15755
|
+
"div",
|
|
15756
|
+
{
|
|
15757
|
+
style: {
|
|
15758
|
+
display: "flex",
|
|
15759
|
+
alignItems: "start",
|
|
15760
|
+
width: "100%",
|
|
15761
|
+
gap: "8px"
|
|
15762
|
+
},
|
|
15763
|
+
children: [
|
|
15764
|
+
m.icon ? /* @__PURE__ */ g(cC, { children: m.icon }) : /* @__PURE__ */ g(lf, { name: m.name }),
|
|
15765
|
+
/* @__PURE__ */ A(lC, { children: [
|
|
15766
|
+
/* @__PURE__ */ g(uC, { children: m.name }),
|
|
15767
|
+
/* @__PURE__ */ g(dC, { children: m.lastMessage })
|
|
15768
|
+
] })
|
|
15769
|
+
]
|
|
15770
|
+
}
|
|
15771
|
+
),
|
|
15772
|
+
/* @__PURE__ */ g("div", { style: { textAlign: "right", display: "flex" }, children: /* @__PURE__ */ g(fC, { active: h(m), children: m.usersCnt }) })
|
|
15773
|
+
]
|
|
15774
|
+
},
|
|
15775
|
+
y
|
|
15776
|
+
);
|
|
15777
|
+
}) })
|
|
15775
15778
|
] }) })
|
|
15776
15779
|
] });
|
|
15777
15780
|
}, pC = ({ currentRoom: t }) => {
|
|
15778
|
-
const e = Xt(), { composing: n } =
|
|
15781
|
+
const e = Xt(), { composing: n } = Fe(
|
|
15779
15782
|
(s) => s.rooms.rooms[t.jid]
|
|
15780
|
-
), r =
|
|
15781
|
-
e(
|
|
15783
|
+
), r = Fe((s) => s.rooms.rooms), o = (s) => {
|
|
15784
|
+
e(hn({ roomJID: s.jid })), e(Ye({ chatJID: s.jid, loading: !0 }));
|
|
15782
15785
|
};
|
|
15783
15786
|
return /* @__PURE__ */ A(Kw, { children: [
|
|
15784
15787
|
/* @__PURE__ */ A("div", { style: { display: "flex", gap: "8px" }, children: [
|
|
@@ -15814,7 +15817,7 @@ const Nc = ["#f44336", "#2196f3", "#4caf50", "#ff9800"], QS = I.div`
|
|
|
15814
15817
|
}
|
|
15815
15818
|
)
|
|
15816
15819
|
] }),
|
|
15817
|
-
/* @__PURE__ */ g("div", { style: { display: "flex", gap: 16 }, children: /* @__PURE__ */ g(
|
|
15820
|
+
/* @__PURE__ */ g("div", { style: { display: "flex", gap: 16 }, children: /* @__PURE__ */ g(Ie, { style: { padding: 8 }, EndIcon: /* @__PURE__ */ g(j0, {}) }) })
|
|
15818
15821
|
] });
|
|
15819
15822
|
}, mC = () => /* @__PURE__ */ g("div", { style: { display: "flex", flexDirection: "column", gap: 16 }, children: /* @__PURE__ */ A(
|
|
15820
15823
|
"div",
|
|
@@ -15835,7 +15838,7 @@ const Nc = ["#f44336", "#2196f3", "#4caf50", "#ff9800"], QS = I.div`
|
|
|
15835
15838
|
) }), gC = he.memo(
|
|
15836
15839
|
({ CustomMessageComponent: t, MainComponentStyles: e, chatJID: n }) => {
|
|
15837
15840
|
var w, S;
|
|
15838
|
-
const { client: r } = ti(), o = Xt(), [s, i] = Q(!1), { roomsStore: a, loading: c, user: u, activeRoomJID: l, globalLoading: d, config: f } =
|
|
15841
|
+
const { client: r } = ti(), o = Xt(), [s, i] = Q(!1), { roomsStore: a, loading: c, user: u, activeRoomJID: l, globalLoading: d, config: f } = Fe((C) => {
|
|
15839
15842
|
var b;
|
|
15840
15843
|
return {
|
|
15841
15844
|
activeRoomJID: C.rooms.activeRoomJID,
|
|
@@ -15852,10 +15855,10 @@ const Nc = ["#f44336", "#2196f3", "#4caf50", "#ff9800"], QS = I.div`
|
|
|
15852
15855
|
},
|
|
15853
15856
|
[a, l]
|
|
15854
15857
|
);
|
|
15855
|
-
|
|
15856
|
-
l || (o(
|
|
15858
|
+
xe(() => {
|
|
15859
|
+
l || (o(hn({ roomJID: n })), o(Ye({ loading: !0 })));
|
|
15857
15860
|
const C = n || l, b = a == null ? void 0 : a[C];
|
|
15858
|
-
b != null && b.jid && !a[b.jid] && o(qs({ roomData: b })), b != null && b.jid && o(
|
|
15861
|
+
b != null && b.jid && !a[b.jid] && o(qs({ roomData: b })), b != null && b.jid && o(hn({ roomJID: l })), p.length && o(Ye({ chatJID: l, loading: !1 }));
|
|
15859
15862
|
}, [o, l, a.length]);
|
|
15860
15863
|
const h = B((C) => {
|
|
15861
15864
|
r == null || r.sendMessage(
|
|
@@ -15937,26 +15940,36 @@ const Nc = ["#f44336", "#2196f3", "#4caf50", "#ff9800"], QS = I.div`
|
|
|
15937
15940
|
},
|
|
15938
15941
|
[r, l]
|
|
15939
15942
|
);
|
|
15940
|
-
return
|
|
15941
|
-
l || (o(
|
|
15943
|
+
return xe(() => {
|
|
15944
|
+
Object.values(a).length > 0 && (l || (o(hn({ roomJID: n })), o(Ye({ loading: !0 }))), p.length || (a[n || l] ? r.getHistory(l, 30).then(() => {
|
|
15942
15945
|
o(
|
|
15943
15946
|
Ye({ chatJID: l, loading: !1 })
|
|
15944
15947
|
);
|
|
15945
15948
|
}) : r.joinBySendingPresence(n).then(() => {
|
|
15946
15949
|
r.getRooms().then(() => {
|
|
15947
15950
|
r.getHistory(n, 30).then(() => {
|
|
15948
|
-
o(
|
|
15951
|
+
o(
|
|
15952
|
+
Ye({ chatJID: n, loading: !1 })
|
|
15953
|
+
);
|
|
15949
15954
|
});
|
|
15950
15955
|
});
|
|
15951
|
-
}));
|
|
15952
|
-
}, [
|
|
15956
|
+
})));
|
|
15957
|
+
}, [
|
|
15958
|
+
r,
|
|
15959
|
+
l,
|
|
15960
|
+
p,
|
|
15961
|
+
o,
|
|
15962
|
+
Object.values(a).length
|
|
15963
|
+
]), !l || !a[l] ? /* @__PURE__ */ g(
|
|
15953
15964
|
"div",
|
|
15954
15965
|
{
|
|
15955
15966
|
style: {
|
|
15956
|
-
height: "
|
|
15957
|
-
width: "100%"
|
|
15967
|
+
height: "100%",
|
|
15968
|
+
width: "100%",
|
|
15969
|
+
alignItems: "center",
|
|
15970
|
+
display: "flex"
|
|
15958
15971
|
},
|
|
15959
|
-
children: /* @__PURE__ */ g(
|
|
15972
|
+
children: /* @__PURE__ */ g(En, { color: (w = f == null ? void 0 : f.colors) == null ? void 0 : w.primary })
|
|
15960
15973
|
}
|
|
15961
15974
|
) : /* @__PURE__ */ A(
|
|
15962
15975
|
Jw,
|
|
@@ -15968,7 +15981,7 @@ const Nc = ["#f44336", "#2196f3", "#4caf50", "#ff9800"], QS = I.div`
|
|
|
15968
15981
|
},
|
|
15969
15982
|
children: [
|
|
15970
15983
|
!(f != null && f.disableHeader) && /* @__PURE__ */ g(pC, { currentRoom: a[l] }),
|
|
15971
|
-
d ? /* @__PURE__ */ g(
|
|
15984
|
+
d ? /* @__PURE__ */ g(En, { color: (S = f == null ? void 0 : f.colors) == null ? void 0 : S.primary }) : a[l].messages && a[l].messages.length < 1 ? /* @__PURE__ */ g(
|
|
15972
15985
|
"div",
|
|
15973
15986
|
{
|
|
15974
15987
|
style: {
|
|
@@ -16326,7 +16339,7 @@ const Nc = ["#f44336", "#2196f3", "#4caf50", "#ff9800"], QS = I.div`
|
|
|
16326
16339
|
}, VC = mf(({ message: t, isUser: e }, n) => {
|
|
16327
16340
|
var u;
|
|
16328
16341
|
ti(), Xt();
|
|
16329
|
-
const r =
|
|
16342
|
+
const r = Fe(
|
|
16330
16343
|
(l) => l.chatSettingStore.config
|
|
16331
16344
|
), [o, s] = Q({ visible: !1, x: 0, y: 0 }), i = (l) => {
|
|
16332
16345
|
l.preventDefault();
|
|
@@ -16341,7 +16354,7 @@ const Nc = ["#f44336", "#2196f3", "#4caf50", "#ff9800"], QS = I.div`
|
|
|
16341
16354
|
}, c = (l) => {
|
|
16342
16355
|
navigator.clipboard.writeText(l);
|
|
16343
16356
|
};
|
|
16344
|
-
return /* @__PURE__ */ A(
|
|
16357
|
+
return /* @__PURE__ */ A(we, { children: [
|
|
16345
16358
|
/* @__PURE__ */ A(n0, { isUser: e, ref: n, children: [
|
|
16346
16359
|
!e && /* @__PURE__ */ g(c0, { children: t.user.avatar ? /* @__PURE__ */ g(
|
|
16347
16360
|
a0,
|
|
@@ -16367,7 +16380,7 @@ const Nc = ["#f44336", "#2196f3", "#4caf50", "#ff9800"], QS = I.div`
|
|
|
16367
16380
|
] })
|
|
16368
16381
|
] })
|
|
16369
16382
|
] }, t.id),
|
|
16370
|
-
o.visible && /* @__PURE__ */ g(
|
|
16383
|
+
o.visible && /* @__PURE__ */ g(we, { children: /* @__PURE__ */ g($C, { onClick: a, children: /* @__PURE__ */ A(
|
|
16371
16384
|
jC,
|
|
16372
16385
|
{
|
|
16373
16386
|
style: { top: o.y, left: o.x },
|
|
@@ -16545,7 +16558,7 @@ const uf = ({ config: t }) => {
|
|
|
16545
16558
|
}
|
|
16546
16559
|
),
|
|
16547
16560
|
/* @__PURE__ */ g(
|
|
16548
|
-
|
|
16561
|
+
Ie,
|
|
16549
16562
|
{
|
|
16550
16563
|
type: "submit",
|
|
16551
16564
|
text: "Login to Ethora Chat",
|
|
@@ -16554,14 +16567,14 @@ const uf = ({ config: t }) => {
|
|
|
16554
16567
|
loading: i
|
|
16555
16568
|
}
|
|
16556
16569
|
),
|
|
16557
|
-
((y = t == null ? void 0 : t.googleLogin) == null ? void 0 : y.enabled) && /* @__PURE__ */ A(
|
|
16570
|
+
((y = t == null ? void 0 : t.googleLogin) == null ? void 0 : y.enabled) && /* @__PURE__ */ A(we, { children: [
|
|
16558
16571
|
/* @__PURE__ */ g(zC, { children: "or" }),
|
|
16559
16572
|
/* @__PURE__ */ g(
|
|
16560
|
-
|
|
16573
|
+
Ie,
|
|
16561
16574
|
{
|
|
16562
16575
|
onClick: f,
|
|
16563
16576
|
style: { width: "100%", height: "40px" },
|
|
16564
|
-
text: /* @__PURE__ */ g(
|
|
16577
|
+
text: /* @__PURE__ */ g(we, { children: "Login with Google" }),
|
|
16565
16578
|
EndIcon: /* @__PURE__ */ g(M0, { style: { height: "24px" } }),
|
|
16566
16579
|
disabled: i
|
|
16567
16580
|
}
|
|
@@ -16641,10 +16654,10 @@ const uf = ({ config: t }) => {
|
|
|
16641
16654
|
roomJID: o
|
|
16642
16655
|
}) => {
|
|
16643
16656
|
var h;
|
|
16644
|
-
const [s, i] = Q(!1), [a, c] = Q(!1), u = Xt(), { user: l } =
|
|
16645
|
-
|
|
16657
|
+
const [s, i] = Q(!1), [a, c] = Q(!1), u = Xt(), { user: l } = Fe((m) => m.chatSettingStore);
|
|
16658
|
+
Fe((m) => m.rooms.rooms);
|
|
16646
16659
|
const { client: d, initializeClient: f, setClient: p } = ti();
|
|
16647
|
-
return
|
|
16660
|
+
return xe(() => {
|
|
16648
16661
|
var m;
|
|
16649
16662
|
u(km(r)), u(Ye({ loading: !0 }));
|
|
16650
16663
|
try {
|
|
@@ -16659,7 +16672,7 @@ const uf = ({ config: t }) => {
|
|
|
16659
16672
|
} catch (y) {
|
|
16660
16673
|
c(!0), u(Ye({ loading: !1 })), console.log(y);
|
|
16661
16674
|
}
|
|
16662
|
-
}, [l]),
|
|
16675
|
+
}, [l]), xe(() => {
|
|
16663
16676
|
const m = () => {
|
|
16664
16677
|
d && d.actionSetTimestampToPrivateStore(
|
|
16665
16678
|
(n == null ? void 0 : n.jid) || o,
|
|
@@ -16693,7 +16706,7 @@ const uf = ({ config: t }) => {
|
|
|
16693
16706
|
// onRoomClick={handleChangeChat}
|
|
16694
16707
|
// />
|
|
16695
16708
|
// )} */}
|
|
16696
|
-
/* @__PURE__ */ g(
|
|
16709
|
+
/* @__PURE__ */ g(we, { children: /* @__PURE__ */ g(
|
|
16697
16710
|
gC,
|
|
16698
16711
|
{
|
|
16699
16712
|
CustomMessageComponent: e || VC,
|
|
@@ -16701,13 +16714,13 @@ const uf = ({ config: t }) => {
|
|
|
16701
16714
|
chatJID: o
|
|
16702
16715
|
}
|
|
16703
16716
|
) })
|
|
16704
|
-
) : /* @__PURE__ */ g(
|
|
16717
|
+
) : /* @__PURE__ */ g(En, { color: (h = r == null ? void 0 : r.colors) == null ? void 0 : h.primary })
|
|
16705
16718
|
}
|
|
16706
16719
|
)
|
|
16707
16720
|
] });
|
|
16708
16721
|
}, qC = ({ ...t }) => {
|
|
16709
16722
|
var o;
|
|
16710
|
-
const { user: e } =
|
|
16723
|
+
const { user: e } = Fe((s) => s.chatSettingStore), n = B(async () => {
|
|
16711
16724
|
try {
|
|
16712
16725
|
const s = await cf(
|
|
16713
16726
|
e.walletAddress || "yukiraze9@gmail.com",
|
|
@@ -16722,7 +16735,7 @@ const uf = ({ config: t }) => {
|
|
|
16722
16735
|
return console.error("Login failed:", s), null;
|
|
16723
16736
|
}
|
|
16724
16737
|
}, []), r = Xt();
|
|
16725
|
-
return
|
|
16738
|
+
return xe(() => {
|
|
16726
16739
|
var i, a, c, u;
|
|
16727
16740
|
const s = $t(
|
|
16728
16741
|
"@ethora/chat-component-user"
|
|
@@ -16744,8 +16757,8 @@ const uf = ({ config: t }) => {
|
|
|
16744
16757
|
}
|
|
16745
16758
|
})(), t.room && r(qs({ roomData: t.room })), () => {
|
|
16746
16759
|
};
|
|
16747
|
-
}, []), /* @__PURE__ */ g(
|
|
16748
|
-
}, wx = ({ ...t }) => /* @__PURE__ */ g(Vv, { children: /* @__PURE__ */ g(Nf, { store:
|
|
16760
|
+
}, []), /* @__PURE__ */ g(we, { children: !((o = t.config) != null && o.googleLogin) || e.xmppUsername !== "" ? /* @__PURE__ */ g(WC, { ...t }) : /* @__PURE__ */ g(uf, { ...t }) });
|
|
16761
|
+
}, wx = ({ ...t }) => /* @__PURE__ */ g(Vv, { children: /* @__PURE__ */ g(Nf, { store: me, children: /* @__PURE__ */ g(qC, { ...t }) }) });
|
|
16749
16762
|
export {
|
|
16750
16763
|
wx as Chat
|
|
16751
16764
|
};
|