@ethora/chat-component 25.2.5 → 25.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/main.js CHANGED
@@ -3,7 +3,7 @@ var Rg = (n, e, i) => e in n ? Lg(n, e, { enumerable: !0, configurable: !0, writ
3
3
  var ye = (n, e, i) => Rg(n, typeof e != "symbol" ? e + "" : e, i);
4
4
  import { jsx as u, jsxs as P, Fragment as be } from "react/jsx-runtime";
5
5
  import * as Ys from "react";
6
- import Le, { createContext as Wg, useState as X, useEffect as pe, useContext as fl, useRef as we, useDebugValue as Xo, createElement as Yg, Fragment as Uo, useMemo as Be, useCallback as ie, forwardRef as Hg, PureComponent as Gg } from "react";
6
+ import Le, { createContext as Wg, useState as U, useEffect as pe, useContext as fl, useRef as we, useDebugValue as Uo, createElement as Yg, Fragment as Xo, useMemo as Be, useCallback as ie, forwardRef as Hg, PureComponent as Gg } from "react";
7
7
  var Re = typeof globalThis < "u" ? globalThis : typeof window < "u" || typeof window < "u" ? window : typeof self < "u" ? self : {};
8
8
  function YA(n) {
9
9
  return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
@@ -39,7 +39,7 @@ var rs = {}, ss = {}, sn = {}, HA = class extends Error {
39
39
  return t.timeout = i, t;
40
40
  };
41
41
  const qg = HA, Vg = dl;
42
- var Xg = function(e, i) {
42
+ var Ug = function(e, i) {
43
43
  const t = Vg(i);
44
44
  function r() {
45
45
  clearTimeout(t.timeout);
@@ -51,7 +51,7 @@ var Xg = function(e, i) {
51
51
  })
52
52
  ]);
53
53
  };
54
- const Ug = HA;
54
+ const Xg = HA;
55
55
  var Jg = function(e, i, t = "error", r) {
56
56
  return new Promise((s, a) => {
57
57
  let A;
@@ -65,7 +65,7 @@ var Jg = function(e, i, t = "error", r) {
65
65
  s(c), o();
66
66
  }
67
67
  e.once(i, d), t && e.once(t, f), r && (A = setTimeout(() => {
68
- o(), a(new Ug());
68
+ o(), a(new Xg());
69
69
  }, r));
70
70
  });
71
71
  }, GA = { exports: {} }, Pi = typeof Reflect == "object" ? Reflect : null, Jo = Pi && typeof Pi.apply == "function" ? Pi.apply : function(e, i, t) {
@@ -296,7 +296,7 @@ var As = GA.exports, im = function() {
296
296
  this.resolve = e, this.reject = i;
297
297
  });
298
298
  };
299
- const tm = Xg, rm = dl, sm = HA, am = Jg, Am = As, om = im;
299
+ const tm = Ug, rm = dl, sm = HA, am = Jg, Am = As, om = im;
300
300
  sn.EventEmitter = Am;
301
301
  sn.timeout = tm;
302
302
  sn.delay = rm;
@@ -867,7 +867,7 @@ var Nm = Im, Pl = { exports: {} };
867
867
  Object.assign(n.exports, { parseURI: e, parseHost: i, parseService: t });
868
868
  })(Pl);
869
869
  var Sm = Pl.exports;
870
- const { EventEmitter: Pm, promise: Ai } = sn, Om = os, Xs = vn, Mm = Nm, { parseHost: Tm, parseService: jm } = Sm, Qm = "urn:ietf:params:xml:ns:xmpp-streams", Fm = "http://etherx.jabber.org/streams";
870
+ const { EventEmitter: Pm, promise: Ai } = sn, Om = os, Us = vn, Mm = Nm, { parseHost: Tm, parseService: jm } = Sm, Qm = "urn:ietf:params:xml:ns:xmpp-streams", Fm = "http://etherx.jabber.org/streams";
871
871
  let fs = class extends Pm {
872
872
  constructor(e = {}) {
873
873
  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;
@@ -879,8 +879,8 @@ let fs = class extends Pm {
879
879
  try {
880
880
  await this.send(
881
881
  // prettier-ignore
882
- Xs("stream:error", {}, [
883
- Xs(e, { xmlns: Qm }, i)
882
+ Us("stream:error", {}, [
883
+ Us(e, { xmlns: Qm }, i)
884
884
  ])
885
885
  );
886
886
  } catch {
@@ -1070,7 +1070,7 @@ let fs = class extends Pm {
1070
1070
  }
1071
1071
  // Override
1072
1072
  headerElement() {
1073
- return new Xs.Element("", {
1073
+ return new Us.Element("", {
1074
1074
  version: "1.0",
1075
1075
  xmlns: this.NS
1076
1076
  });
@@ -1177,10 +1177,10 @@ var Vm = function({ entity: e }) {
1177
1177
  const i = new qm(e);
1178
1178
  return i.start(), i;
1179
1179
  };
1180
- const Xm = {}, Um = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1180
+ const Um = {}, Xm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1181
1181
  __proto__: null,
1182
- default: Xm
1183
- }, Symbol.toStringTag, { value: "Module" })), Li = /* @__PURE__ */ zg(Um), Tl = Li, af = window.WebSocket || Tl, Jm = As, Us = "ECONNERROR";
1182
+ default: Um
1183
+ }, Symbol.toStringTag, { value: "Module" })), Li = /* @__PURE__ */ zg(Xm), Tl = Li, af = window.WebSocket || Tl, Jm = As, Xs = "ECONNERROR";
1184
1184
  let Km = class extends Jm {
1185
1185
  constructor() {
1186
1186
  super(), this.listeners = /* @__PURE__ */ Object.create(null);
@@ -1196,7 +1196,7 @@ let Km = class extends Jm {
1196
1196
  }, i.message = ({ data: t }) => this.emit("data", t), i.error = (t) => {
1197
1197
  const { url: r } = this;
1198
1198
  let { error: s } = t;
1199
- s || (s = new Error(`WebSocket ${Us} ${r}`), s.errno = Us, s.code = Us), s.event = t, s.url = r, this.emit("error", s);
1199
+ s || (s = new Error(`WebSocket ${Xs} ${r}`), s.errno = Xs, s.code = Xs), s.event = t, s.url = r, this.emit("error", s);
1200
1200
  }, i.close = (t) => {
1201
1201
  this._detachSocket(), this.emit("close", !t.wasClean, t);
1202
1202
  }, this.socket.addEventListener("open", i.open), this.socket.addEventListener("message", i.message), this.socket.addEventListener("error", i.error), this.socket.addEventListener("close", i.close);
@@ -1526,10 +1526,10 @@ cs.exports = function(...e) {
1526
1526
  };
1527
1527
  Mr.resolve && (cs.exports.dns = Mr);
1528
1528
  cs.exports.http = Rl;
1529
- var Xp = cs.exports;
1530
- const Up = Xp, { promise: Jp } = sn;
1529
+ var Up = cs.exports;
1530
+ const Xp = Up, { promise: Jp } = sn;
1531
1531
  async function Kp(n) {
1532
- const e = await Up(n, {
1532
+ const e = await Xp(n, {
1533
1533
  srv: [
1534
1534
  {
1535
1535
  service: "xmpps-client",
@@ -1578,11 +1578,11 @@ var _p = function({ entity: e }) {
1578
1578
  throw e._reset(), e._status("disconnect"), a;
1579
1579
  }
1580
1580
  };
1581
- }, XA = {};
1582
- XA.encode = function(e) {
1581
+ }, UA = {};
1582
+ UA.encode = function(e) {
1583
1583
  return window.btoa(e);
1584
1584
  };
1585
- XA.decode = function(e) {
1585
+ UA.decode = function(e) {
1586
1586
  return window.atob(e);
1587
1587
  };
1588
1588
  const $p = VA;
@@ -1626,7 +1626,7 @@ function iv() {
1626
1626
  });
1627
1627
  })(Ha, Ha.exports);
1628
1628
  var tv = Ha.exports;
1629
- const { encode: hf, decode: rv } = XA, sv = nv, gf = vn, av = tv, dt = "urn:ietf:params:xml:ns:xmpp-sasl";
1629
+ const { encode: hf, decode: rv } = UA, sv = nv, gf = vn, av = tv, dt = "urn:ietf:params:xml:ns:xmpp-sasl";
1630
1630
  function Av(n) {
1631
1631
  return n.getChild("mechanisms", dt).children.map((e) => e.text());
1632
1632
  }
@@ -1706,10 +1706,10 @@ const lv = vn, wf = "urn:ietf:params:xml:ns:xmpp-session";
1706
1706
  var uv = function({ iqCaller: e, streamFeatures: i }) {
1707
1707
  i.use("session", wf, async (t, r, s) => (s.getChild("optional") || await e.set(lv("session", wf)), r()));
1708
1708
  };
1709
- const UA = vn, En = "urn:xmpp:sm:3";
1709
+ const XA = vn, En = "urn:xmpp:sm:3";
1710
1710
  async function hv(n, e, i) {
1711
1711
  return n.send(
1712
- UA("enable", { xmlns: En, max: i, resume: e ? "true" : void 0 })
1712
+ XA("enable", { xmlns: En, max: i, resume: e ? "true" : void 0 })
1713
1713
  ), new Promise((t, r) => {
1714
1714
  function s(a) {
1715
1715
  if (a.is("enabled", En))
@@ -1725,7 +1725,7 @@ async function hv(n, e, i) {
1725
1725
  }
1726
1726
  async function gv(n, e, i) {
1727
1727
  const t = await n.sendReceive(
1728
- UA("resume", { xmlns: En, h: e, previd: i })
1728
+ XA("resume", { xmlns: En, h: e, previd: i })
1729
1729
  );
1730
1730
  if (!t.is("resumed", En))
1731
1731
  throw t;
@@ -1752,7 +1752,7 @@ var mv = function({
1752
1752
  s.outbound = 0, s.inbound = 0, s.enabled = !1, s.id = "";
1753
1753
  }), t.use((a, A) => {
1754
1754
  const { stanza: o } = a;
1755
- return ["presence", "message", "iq"].includes(o.name) ? s.inbound += 1 : o.is("r", En) ? i.send(UA("a", { xmlns: En, h: s.inbound })).catch(() => {
1755
+ return ["presence", "message", "iq"].includes(o.name) ? s.inbound += 1 : o.is("r", En) ? i.send(XA("a", { xmlns: En, h: s.inbound })).catch(() => {
1756
1756
  }) : o.is("a", En) && (s.outbound = o.attrs.h), A();
1757
1757
  }), e.use("sm", En, async (a, A) => {
1758
1758
  if (s.id)
@@ -2035,7 +2035,7 @@ function Vv(n, e, i, t) {
2035
2035
  );
2036
2036
  n.send(s);
2037
2037
  }
2038
- const Xv = (n) => n.reduce((e, i) => (e[i.language] = i, e), {}), Uv = (n, e) => {
2038
+ const Uv = (n) => n.reduce((e, i) => (e[i.language] = i, e), {}), Xv = (n, e) => {
2039
2039
  if (!n) return;
2040
2040
  if (typeof n != "string") {
2041
2041
  console.log(n, e.toString());
@@ -2044,9 +2044,9 @@ const Xv = (n) => n.reduce((e, i) => (e[i.language] = i, e), {}), Uv = (n, e) =>
2044
2044
  return n.slice(-16);
2045
2045
  }, JA = async (n) => {
2046
2046
  var p, y, m, v, C, x, w, k, S, I, D, B, M, E, T, Y, G, H, K, V, R;
2047
- const e = ((y = (p = n.getChild("result")) == null ? void 0 : p.getChild("forwarded")) == null ? void 0 : y.getChild("message")) || n, i = (e == null ? void 0 : e.getChild("data")) || (n == null ? void 0 : n.getChild("data")), t = e == null ? void 0 : e.attrs.id, r = ((m = n.getChild("result")) == null ? void 0 : m.attrs.id) || Uv((C = (v = n == null ? void 0 : n.getChild("stanza-id")) == null ? void 0 : v.attrs) == null ? void 0 : C.id, n);
2047
+ const e = ((y = (p = n.getChild("result")) == null ? void 0 : p.getChild("forwarded")) == null ? void 0 : y.getChild("message")) || n, i = (e == null ? void 0 : e.getChild("data")) || (n == null ? void 0 : n.getChild("data")), t = e == null ? void 0 : e.attrs.id, r = ((m = n.getChild("result")) == null ? void 0 : m.attrs.id) || Xv((C = (v = n == null ? void 0 : n.getChild("stanza-id")) == null ? void 0 : v.attrs) == null ? void 0 : C.id, n);
2048
2048
  if (!r) return;
2049
- const s = ((x = e == null ? void 0 : e.getChild("body")) == null ? void 0 : x.getText()) || void 0, a = !!(e != null && e.getChild("deleted")), A = (k = (w = e == null ? void 0 : e.getChild("translations")) == null ? void 0 : w.attrs) != null && k.value ? Xv(
2049
+ const s = ((x = e == null ? void 0 : e.getChild("body")) == null ? void 0 : x.getText()) || void 0, a = !!(e != null && e.getChild("deleted")), A = (k = (w = e == null ? void 0 : e.getChild("translations")) == null ? void 0 : w.attrs) != null && k.value ? Uv(
2050
2050
  JSON.parse(e.getChild("translations").attrs.value).translates
2051
2051
  ) : void 0, o = (I = (S = e == null ? void 0 : e.getChild("translate")) == null ? void 0 : S.attrs) == null ? void 0 : I.source, f = ((D = i == null ? void 0 : i.attrs) == null ? void 0 : D.roomJID) || ((E = (M = (B = e == null ? void 0 : e.attrs) == null ? void 0 : B.from) == null ? void 0 : M.split("/")) == null ? void 0 : E[0]), d = ((T = i == null ? void 0 : i.attrs) == null ? void 0 : T.firstName) || ((Y = i == null ? void 0 : i.attrs) == null ? void 0 : Y.senderFirstName) || "", c = ((G = i == null ? void 0 : i.attrs) == null ? void 0 : G.lastName) || ((H = i == null ? void 0 : i.attrs) == null ? void 0 : H.senderLastName) || "", l = (K = i == null ? void 0 : i.attrs) == null ? void 0 : K.photo, h = ((V = i == null ? void 0 : i.attrs) == null ? void 0 : V.walletAddress) || ((R = i == null ? void 0 : i.attrs) == null ? void 0 : R.senderWalletAddress), g = (/* @__PURE__ */ new Date(+(r == null ? void 0 : r.slice(0, 13)))).toISOString(), b = {
2052
2052
  id: h,
@@ -2897,7 +2897,7 @@ function m0(n) {
2897
2897
  throw new Error(process.env.NODE_ENV === "production" ? Ne(13) : `The slice reducer for key "${e}" returned undefined when probed with a random type. Don't try to handle '${hi.INIT}' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.`);
2898
2898
  });
2899
2899
  }
2900
- function Xl(n) {
2900
+ function Ul(n) {
2901
2901
  const e = Object.keys(n), i = {};
2902
2902
  for (let a = 0; a < e.length; a++) {
2903
2903
  const A = e[a];
@@ -2951,7 +2951,7 @@ function p0(...n) {
2951
2951
  };
2952
2952
  };
2953
2953
  }
2954
- function Ul(n) {
2954
+ function Xl(n) {
2955
2955
  return Nt(n) && "type" in n && typeof n.type == "string";
2956
2956
  }
2957
2957
  var Jl = Symbol.for("immer-nothing"), Bf = Symbol.for("immer-draftable"), Ye = Symbol.for("immer-state"), v0 = process.env.NODE_ENV !== "production" ? [
@@ -3103,10 +3103,10 @@ function C0(n, e) {
3103
3103
  function Df(n, e) {
3104
3104
  e && (bi("Patches"), n.patches_ = [], n.inversePatches_ = [], n.patchListener_ = e);
3105
3105
  }
3106
- function Xa(n) {
3107
- Ua(n), n.drafts_.forEach(x0), n.drafts_ = null;
3108
- }
3109
3106
  function Ua(n) {
3107
+ Xa(n), n.drafts_.forEach(x0), n.drafts_ = null;
3108
+ }
3109
+ function Xa(n) {
3110
3110
  n === vt && (vt = n.parent_);
3111
3111
  }
3112
3112
  function If(n) {
@@ -3119,12 +3119,12 @@ function x0(n) {
3119
3119
  function Nf(n, e) {
3120
3120
  e.unfinalizedDrafts_ = e.drafts_.length;
3121
3121
  const i = e.drafts_[0];
3122
- return n !== void 0 && n !== i ? (i[Ye].modified_ && (Xa(e), je(4)), Sn(n) && (n = Fr(e, n), e.parent_ || Lr(e, n)), e.patches_ && bi("Patches").generateReplacementPatches_(
3122
+ return n !== void 0 && n !== i ? (i[Ye].modified_ && (Ua(e), je(4)), Sn(n) && (n = Fr(e, n), e.parent_ || Lr(e, n)), e.patches_ && bi("Patches").generateReplacementPatches_(
3123
3123
  i[Ye].base_,
3124
3124
  n,
3125
3125
  e.patches_,
3126
3126
  e.inversePatches_
3127
- )) : n = Fr(e, i, []), Xa(e), e.patches_ && e.patchListener_(e.patches_, e.inversePatches_), n !== Jl ? n : void 0;
3127
+ )) : n = Fr(e, i, []), Ua(e), e.patches_ && e.patchListener_(e.patches_, e.inversePatches_), n !== Jl ? n : void 0;
3128
3128
  }
3129
3129
  function Fr(n, e, i) {
3130
3130
  if (gs(e))
@@ -3321,7 +3321,7 @@ var D0 = class {
3321
3321
  try {
3322
3322
  r = i(a), A = !1;
3323
3323
  } finally {
3324
- A ? Xa(s) : Ua(s);
3324
+ A ? Ua(s) : Xa(s);
3325
3325
  }
3326
3326
  return Df(s, t), Nf(r, s);
3327
3327
  } else if (!e || typeof e != "object") {
@@ -3344,7 +3344,7 @@ var D0 = class {
3344
3344
  createDraft(n) {
3345
3345
  Sn(n) || je(8), Zn(n) && (n = eu(n));
3346
3346
  const e = If(this), i = Ka(n, void 0);
3347
- return i[Ye].isManual_ = !0, Ua(e), i;
3347
+ return i[Ye].isManual_ = !0, Xa(e), i;
3348
3348
  }
3349
3349
  finishDraft(n, e) {
3350
3350
  const i = n && n[Ye];
@@ -3519,7 +3519,7 @@ var j0 = (n, e) => {
3519
3519
  return this.value;
3520
3520
  }
3521
3521
  }, F0 = typeof WeakRef < "u" ? WeakRef : Q0, L0 = 0, Mf = 1;
3522
- function Xt() {
3522
+ function Ut() {
3523
3523
  return {
3524
3524
  s: L0,
3525
3525
  v: void 0,
@@ -3528,7 +3528,7 @@ function Xt() {
3528
3528
  };
3529
3529
  }
3530
3530
  function no(n, e = {}) {
3531
- let i = Xt();
3531
+ let i = Ut();
3532
3532
  const { resultEqualityCheck: t } = e;
3533
3533
  let r, s = 0;
3534
3534
  function a() {
@@ -3541,12 +3541,12 @@ function no(n, e = {}) {
3541
3541
  let b = A.o;
3542
3542
  b === null && (A.o = b = /* @__PURE__ */ new WeakMap());
3543
3543
  const p = b.get(g);
3544
- p === void 0 ? (A = Xt(), b.set(g, A)) : A = p;
3544
+ p === void 0 ? (A = Ut(), b.set(g, A)) : A = p;
3545
3545
  } else {
3546
3546
  let b = A.p;
3547
3547
  b === null && (A.p = b = /* @__PURE__ */ new Map());
3548
3548
  const p = b.get(g);
3549
- p === void 0 ? (A = Xt(), b.set(g, A)) : A = p;
3549
+ p === void 0 ? (A = Ut(), b.set(g, A)) : A = p;
3550
3550
  }
3551
3551
  }
3552
3552
  const f = A;
@@ -3560,7 +3560,7 @@ function no(n, e = {}) {
3560
3560
  return f.s = Mf, f.v = d, d;
3561
3561
  }
3562
3562
  return a.clearCache = () => {
3563
- i = Xt(), a.resetResultsCount();
3563
+ i = Ut(), a.resetResultsCount();
3564
3564
  }, a.resultsCount = () => s, a.resetResultsCount = () => {
3565
3565
  s = 0;
3566
3566
  }, a;
@@ -3694,24 +3694,24 @@ function Wi(n, e) {
3694
3694
  payload: t[0]
3695
3695
  };
3696
3696
  }
3697
- return i.toString = () => `${n}`, i.type = n, i.match = (t) => Ul(t) && t.type === n, i;
3697
+ return i.toString = () => `${n}`, i.type = n, i.match = (t) => Xl(t) && t.type === n, i;
3698
3698
  }
3699
3699
  function V0(n) {
3700
3700
  return typeof n == "function" && "type" in n && // hasMatchFunction only wants Matchers but I don't see the point in rewriting it
3701
3701
  q0(n);
3702
3702
  }
3703
- function X0(n) {
3703
+ function U0(n) {
3704
3704
  const e = n ? `${n}`.split("/") : [], i = e[e.length - 1] || "actionCreator";
3705
3705
  return `Detected an action creator with type "${n || "unknown"}" being dispatched.
3706
3706
  Make sure you're calling the action creator before dispatching, i.e. \`dispatch(${i}())\` instead of \`dispatch(${i})\`. This is necessary even if the action has no payload.`;
3707
3707
  }
3708
- function U0(n = {}) {
3708
+ function X0(n = {}) {
3709
3709
  if (process.env.NODE_ENV === "production")
3710
3710
  return () => (i) => (t) => i(t);
3711
3711
  const {
3712
3712
  isActionCreator: e = V0
3713
3713
  } = n;
3714
- return () => (i) => (t) => (e(t) && console.warn(X0(t.type)), i(t));
3714
+ return () => (i) => (t) => (e(t) && console.warn(U0(t.type)), i(t));
3715
3715
  }
3716
3716
  function su(n, e) {
3717
3717
  let i = 0;
@@ -3908,7 +3908,7 @@ function _0(n = {}) {
3908
3908
  disableCache: f = !1
3909
3909
  } = n, d = !f && WeakSet ? /* @__PURE__ */ new WeakSet() : void 0;
3910
3910
  return (c) => (l) => (h) => {
3911
- if (!Ul(h))
3911
+ if (!Xl(h))
3912
3912
  return l(h);
3913
3913
  const g = l(h), b = su(a, "SerializableStateInvariantMiddleware");
3914
3914
  return !o && !(t.length && t.indexOf(h.type) !== -1) && b.measureTime(() => {
@@ -3938,7 +3938,7 @@ Take a look at the reducer(s) handling this action type: ${h.type}.
3938
3938
  };
3939
3939
  }
3940
3940
  }
3941
- function Ut(n) {
3941
+ function Xt(n) {
3942
3942
  return typeof n == "boolean";
3943
3943
  }
3944
3944
  var $0 = () => function(e) {
@@ -3949,18 +3949,18 @@ var $0 = () => function(e) {
3949
3949
  actionCreatorCheck: s = !0
3950
3950
  } = e ?? {};
3951
3951
  let a = new au();
3952
- if (i && (Ut(i) ? a.push(Y0) : a.push(H0(i.extraArgument))), process.env.NODE_ENV !== "production") {
3952
+ if (i && (Xt(i) ? a.push(Y0) : a.push(H0(i.extraArgument))), process.env.NODE_ENV !== "production") {
3953
3953
  if (t) {
3954
3954
  let A = {};
3955
- Ut(t) || (A = t), a.unshift(Z0(A));
3955
+ Xt(t) || (A = t), a.unshift(Z0(A));
3956
3956
  }
3957
3957
  if (r) {
3958
3958
  let A = {};
3959
- Ut(r) || (A = r), a.push(_0(A));
3959
+ Xt(r) || (A = r), a.push(_0(A));
3960
3960
  }
3961
3961
  if (s) {
3962
3962
  let A = {};
3963
- Ut(s) || (A = s), a.unshift(U0(A));
3963
+ Xt(s) || (A = s), a.unshift(X0(A));
3964
3964
  }
3965
3965
  }
3966
3966
  return a;
@@ -4013,7 +4013,7 @@ function r2(n) {
4013
4013
  if (typeof i == "function")
4014
4014
  A = i;
4015
4015
  else if (Nt(i))
4016
- A = Xl(i);
4016
+ A = Ul(i);
4017
4017
  else
4018
4018
  throw new Error(process.env.NODE_ENV === "production" ? le(1) : "`reducer` is a required argument, and must be a function or an object of functions that can be passed to combineReducers");
4019
4019
  if (!Qn && t && typeof t != "function")
@@ -4824,11 +4824,11 @@ function V2(n) {
4824
4824
  }
4825
4825
  };
4826
4826
  }
4827
- var ps = void 0, X2 = U2(so);
4828
- function U2(n) {
4827
+ var ps = void 0, U2 = X2(so);
4828
+ function X2(n) {
4829
4829
  return n && n.__esModule ? n : { default: n };
4830
4830
  }
4831
- var J2 = (0, X2.default)("local");
4831
+ var J2 = (0, U2.default)("local");
4832
4832
  ps = J2;
4833
4833
  var Ao = "persist:", yu = "persist/FLUSH", oo = "persist/REHYDRATE", ku = "persist/PAUSE", Cu = "persist/PERSIST", xu = "persist/PURGE", Eu = "persist/REGISTER", K2 = -1;
4834
4834
  function lt(n) {
@@ -5906,9 +5906,9 @@ function bw() {
5906
5906
  });
5907
5907
  }(aa)), aa.exports;
5908
5908
  }
5909
- var Aa = { exports: {} }, Xf;
5909
+ var Aa = { exports: {} }, Uf;
5910
5910
  function yw() {
5911
- return Xf || (Xf = 1, function(n, e) {
5911
+ return Uf || (Uf = 1, function(n, e) {
5912
5912
  (function(i, t) {
5913
5913
  n.exports = t(ti());
5914
5914
  })(Re, function(i) {
@@ -5984,9 +5984,9 @@ function yw() {
5984
5984
  });
5985
5985
  }(Aa)), Aa.exports;
5986
5986
  }
5987
- var Uf;
5987
+ var Xf;
5988
5988
  function Nu() {
5989
- return Uf || (Uf = 1, function(n, e) {
5989
+ return Xf || (Xf = 1, function(n, e) {
5990
5990
  (function(i, t, r) {
5991
5991
  n.exports = t(ti(), bw(), yw());
5992
5992
  })(Re, function(i) {
@@ -6724,7 +6724,7 @@ const Dw = /* @__PURE__ */ YA(Bw), at = (n) => new Error(`redux-persist-transfor
6724
6724
  whitelist: ["chatSettingStore", "roomMessages"],
6725
6725
  blacklist: ["routing"],
6726
6726
  transforms: [Su]
6727
- }, Mw = Xl({
6727
+ }, Mw = Ul({
6728
6728
  chatSettingStore: _a(
6729
6729
  Sw,
6730
6730
  D2
@@ -6919,31 +6919,34 @@ const _f = async (n) => {
6919
6919
  }, qw = (n) => {
6920
6920
  var e, i, t, r, s;
6921
6921
  if ((e = n.attrs) != null && e.id && ((i = n.attrs) != null && i.id.toString().includes("get-history"))) {
6922
- const a = (t = n == null ? void 0 : n.getChild("fin")) == null ? void 0 : t.getChild("set"), A = (r = n == null ? void 0 : n.attrs) == null ? void 0 : r.from;
6923
- if (A) {
6924
- const o = a.getChildText("first"), f = a.getChildText("last"), d = n.getChild("fin");
6925
- if ((s = d == null ? void 0 : d.attrs) != null && s.complete) {
6926
- const c = Fw(d.attrs.complete), l = Zf(f), h = Zf(o);
6927
- Ae.dispatch(
6922
+ const a = (t = n == null ? void 0 : n.getChild("fin")) == null ? void 0 : t.getChild("set");
6923
+ if (a) {
6924
+ const A = (r = n == null ? void 0 : n.attrs) == null ? void 0 : r.from;
6925
+ if (A) {
6926
+ const o = n == null ? void 0 : n.getChild("fin");
6927
+ if ((s = o == null ? void 0 : o.attrs) != null && s.complete) {
6928
+ const f = a == null ? void 0 : a.getChildText("first"), d = a == null ? void 0 : a.getChildText("last"), c = Fw(o.attrs.complete), l = Zf(d), h = Zf(f);
6928
6929
  Ae.dispatch(
6929
- yi({
6930
- jid: A,
6931
- updates: {
6932
- messageStats: {
6933
- lastMessageTimestamp: l,
6934
- firstMessageTimestamp: h
6935
- },
6936
- historyComplete: c
6937
- }
6938
- })
6939
- )
6940
- );
6930
+ Ae.dispatch(
6931
+ yi({
6932
+ jid: A,
6933
+ updates: {
6934
+ messageStats: {
6935
+ lastMessageTimestamp: l,
6936
+ firstMessageTimestamp: h
6937
+ },
6938
+ historyComplete: c
6939
+ }
6940
+ })
6941
+ )
6942
+ );
6943
+ }
6941
6944
  }
6942
6945
  }
6943
6946
  }
6944
6947
  }, Vw = (n, e) => {
6945
6948
  Ae.dispatch($e({ roomJID: n.attrs.from })), e.getRoomsStanza();
6946
- }, Xw = (n, e) => {
6949
+ }, Uw = (n, e) => {
6947
6950
  var i, t;
6948
6951
  n.attrs.id === "getUserRooms" && Array.isArray((i = n.getChild("query")) == null ? void 0 : i.children) && ((t = n.getChild("query")) == null || t.children.forEach(async (r) => {
6949
6952
  var A, o, f, d, c, l, h, g;
@@ -6972,7 +6975,7 @@ const _f = async (n) => {
6972
6975
  }
6973
6976
  }));
6974
6977
  };
6975
- function Uw(n, e) {
6978
+ function Xw(n, e) {
6976
6979
  var i;
6977
6980
  if (((i = n == null ? void 0 : n.attrs) == null ? void 0 : i.type) !== "headline")
6978
6981
  switch (n.name) {
@@ -6983,7 +6986,7 @@ function Uw(n, e) {
6983
6986
  nd(n);
6984
6987
  break;
6985
6988
  case "iq":
6986
- Xw(n, e), _f(n), nd(n), Gw(n), zw(n), qw(n);
6989
+ Uw(n, e), _f(n), nd(n), Gw(n), zw(n), qw(n);
6987
6990
  break;
6988
6991
  case "room-config":
6989
6992
  Vw(n, e);
@@ -7211,7 +7214,7 @@ class eb {
7211
7214
  }), this.client.on("error", (e) => {
7212
7215
  console.error("XMPP client error:", e), this.status = "error";
7213
7216
  }), this.client.on("stanza", (e) => {
7214
- Uw.bind(this, e, this)();
7217
+ Xw.bind(this, e, this)();
7215
7218
  });
7216
7219
  }
7217
7220
  async reconnect() {
@@ -7296,7 +7299,7 @@ class eb {
7296
7299
  }
7297
7300
  }
7298
7301
  const Pu = Wg(null), RE = ({ children: n }) => {
7299
- const [e, i] = X(null), [t, r] = X(null), [s, a] = X(null), [A, o] = X(0), f = async (c, l, h) => {
7302
+ const [e, i] = U(null), [t, r] = U(null), [s, a] = U(null), [A, o] = U(0), f = async (c, l, h) => {
7300
7303
  if (e)
7301
7304
  return console.log("Returning existing client."), i(e), e;
7302
7305
  try {
@@ -8256,13 +8259,13 @@ var sA = /* @__PURE__ */ new Set(["a", "abbr", "address", "area", "article", "as
8256
8259
  function cd(n) {
8257
8260
  return n.replace(qb, "-").replace(Vb, "");
8258
8261
  }
8259
- var Xb = /(a)(d)/gi, Zt = 52, ld = function(n) {
8262
+ var Ub = /(a)(d)/gi, Zt = 52, ld = function(n) {
8260
8263
  return String.fromCharCode(n + (n > 25 ? 39 : 97));
8261
8264
  };
8262
8265
  function aA(n) {
8263
8266
  var e, i = "";
8264
8267
  for (e = Math.abs(n); e > Zt; e = e / Zt | 0) i = ld(e % Zt) + i;
8265
- return (ld(e % Zt) + i).replace(Xb, "$1-$2");
8268
+ return (ld(e % Zt) + i).replace(Ub, "$1-$2");
8266
8269
  }
8267
8270
  var la, zu = 5381, ci = function(n, e) {
8268
8271
  for (var i = e.length; i; ) n = 33 * n ^ e.charCodeAt(--i);
@@ -8273,13 +8276,13 @@ var la, zu = 5381, ci = function(n, e) {
8273
8276
  function Vu(n) {
8274
8277
  return aA(qu(n) >>> 0);
8275
8278
  }
8276
- function Xu(n) {
8279
+ function Uu(n) {
8277
8280
  return process.env.NODE_ENV !== "production" && typeof n == "string" && n || n.displayName || n.name || "Component";
8278
8281
  }
8279
8282
  function ua(n) {
8280
8283
  return typeof n == "string" && (process.env.NODE_ENV === "production" || n.charAt(0) === n.charAt(0).toLowerCase());
8281
8284
  }
8282
- var Uu = typeof Symbol == "function" && Symbol.for, Ju = Uu ? Symbol.for("react.memo") : 60115, Ub = Uu ? Symbol.for("react.forward_ref") : 60112, Jb = { childContextTypes: !0, contextType: !0, contextTypes: !0, defaultProps: !0, displayName: !0, getDefaultProps: !0, getDerivedStateFromError: !0, getDerivedStateFromProps: !0, mixins: !0, propTypes: !0, type: !0 }, Kb = { name: !0, length: !0, prototype: !0, caller: !0, callee: !0, arguments: !0, arity: !0 }, Ku = { $$typeof: !0, compare: !0, defaultProps: !0, displayName: !0, propTypes: !0, type: !0 }, Zb = ((la = {})[Ub] = { $$typeof: !0, render: !0, defaultProps: !0, displayName: !0, propTypes: !0 }, la[Ju] = Ku, la);
8285
+ var Xu = typeof Symbol == "function" && Symbol.for, Ju = Xu ? Symbol.for("react.memo") : 60115, Xb = Xu ? Symbol.for("react.forward_ref") : 60112, Jb = { childContextTypes: !0, contextType: !0, contextTypes: !0, defaultProps: !0, displayName: !0, getDefaultProps: !0, getDerivedStateFromError: !0, getDerivedStateFromProps: !0, mixins: !0, propTypes: !0, type: !0 }, Kb = { name: !0, length: !0, prototype: !0, caller: !0, callee: !0, arguments: !0, arity: !0 }, Ku = { $$typeof: !0, compare: !0, defaultProps: !0, displayName: !0, propTypes: !0, type: !0 }, Zb = ((la = {})[Xb] = { $$typeof: !0, render: !0, defaultProps: !0, displayName: !0, propTypes: !0 }, la[Ju] = Ku, la);
8283
8286
  function ud(n) {
8284
8287
  return ("type" in (e = n) && e.type.$$typeof) === Ju ? Ku : "$$typeof" in n ? Zb[n.$$typeof] : Jb;
8285
8288
  var e;
@@ -8624,7 +8627,7 @@ function mi(n, e, i, t) {
8624
8627
  if (zi(n)) {
8625
8628
  if (!zi(s = n) || s.prototype && s.prototype.isReactComponent || !e) return [n];
8626
8629
  var r = n(e);
8627
- return process.env.NODE_ENV === "production" || typeof r != "object" || Array.isArray(r) || r instanceof dA || qi(r) || r === null || console.error("".concat(Xu(n), " is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")), mi(r, e, i, t);
8630
+ return process.env.NODE_ENV === "production" || typeof r != "object" || Array.isArray(r) || r instanceof dA || qi(r) || r === null || console.error("".concat(Uu(n), " is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")), mi(r, e, i, t);
8628
8631
  }
8629
8632
  var s;
8630
8633
  return n instanceof dA ? i ? (n.inject(i, t), [n.getName(t)]) : [n] : qi(n) ? t1(n) : Array.isArray(n) ? Array.prototype.concat.apply(Cs, n.map(function(a) {
@@ -8679,7 +8682,7 @@ function x3(n, e, i) {
8679
8682
  var k = "".concat(w, "-").concat(Vu(ks + w + ha[w]));
8680
8683
  return x ? "".concat(x, "-").concat(k) : k;
8681
8684
  }(e.displayName, e.parentComponentId) : o, d = e.displayName, c = d === void 0 ? function(C) {
8682
- return ua(C) ? "styled.".concat(C) : "Styled(".concat(Xu(C), ")");
8685
+ return ua(C) ? "styled.".concat(C) : "Styled(".concat(Uu(C), ")");
8683
8686
  }(n) : d, l = e.displayName && e.componentId ? "".concat(cd(e.displayName), "-").concat(e.componentId) : e.componentId || f, h = t && r.attrs ? r.attrs.concat(A).filter(Boolean) : A, g = e.shouldForwardProp;
8684
8687
  if (t && r.shouldForwardProp) {
8685
8688
  var b = r.shouldForwardProp;
@@ -8694,7 +8697,7 @@ function x3(n, e, i) {
8694
8697
  function m(C, x) {
8695
8698
  return function(w, k, S) {
8696
8699
  var I = w.attrs, D = w.componentStyle, B = w.defaultProps, M = w.foldedComponentIds, E = w.styledComponentId, T = w.target, Y = Le.useContext(r1), G = pd(), H = w.shouldForwardProp || G.shouldForwardProp;
8697
- process.env.NODE_ENV !== "production" && Xo(E);
8700
+ process.env.NODE_ENV !== "production" && Uo(E);
8698
8701
  var K = zb(k, Y, B) || Gi, V = function(_, Z, ee) {
8699
8702
  for (var te, re = Qe(Qe({}, Z), { className: void 0, theme: ee }), ae = 0; ae < _.length; ae += 1) {
8700
8703
  var Ee = zi(te = _[ae]) ? te(re) : te;
@@ -8705,7 +8708,7 @@ function x3(n, e, i) {
8705
8708
  for (var j in V) V[j] === void 0 || j[0] === "$" || j === "as" || j === "theme" && V.theme === K || (j === "forwardedAs" ? O.as = V.forwardedAs : H && !H(j, R) || (O[j] = V[j], H || process.env.NODE_ENV !== "development" || kb(j) || wd.has(j) || !sA.has(R) || (wd.add(j), console.warn('styled-components: it looks like an unknown prop "'.concat(j, '" 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.)')))));
8706
8709
  var L = function(_, Z) {
8707
8710
  var ee = pd(), te = _.generateAndInjectStyles(Z, ee.styleSheet, ee.stylis);
8708
- return process.env.NODE_ENV !== "production" && Xo(te), te;
8711
+ return process.env.NODE_ENV !== "production" && Uo(te), te;
8709
8712
  }(D, V);
8710
8713
  process.env.NODE_ENV !== "production" && w.warnTooManyClasses && w.warnTooManyClasses(L);
8711
8714
  var Q = li(M, E);
@@ -9052,7 +9055,7 @@ const H3 = N.div`
9052
9055
  border-radius: #0052cd;
9053
9056
  accent-color: #5e3fde;
9054
9057
  accent-color: ${(n) => n.accentColor};
9055
- `, X3 = N.div`
9058
+ `, U3 = N.div`
9056
9059
  width: ${({ size: n }) => `${n}px` || "64px"};
9057
9060
  height: ${({ size: n }) => `${n}px` || "64px"};
9058
9061
  border-radius: 50%;
@@ -9064,7 +9067,7 @@ const H3 = N.div`
9064
9067
  font-weight: bold;
9065
9068
  cursor: ${({ isClickable: n }) => n ? "pointer" : "default"};
9066
9069
  position: relative;
9067
- `, U3 = N.div`
9070
+ `, X3 = N.div`
9068
9071
  width: ${({ size: n }) => `${n}px` || "64px"};
9069
9072
  height: ${({ size: n }) => `${n}px` || "64px"};
9070
9073
  border-radius: 50%;
@@ -9286,14 +9289,14 @@ const H3 = N.div`
9286
9289
  var d;
9287
9290
  const A = e.user.id === r, o = new Date(e.date);
9288
9291
  if ((e == null ? void 0 : e.isSystemMessage) === "true")
9289
- return /* @__PURE__ */ P(Uo, { children: [
9292
+ return /* @__PURE__ */ P(Xo, { children: [
9290
9293
  s && /* @__PURE__ */ u(xd, { date: o, colors: t == null ? void 0 : t.colors }),
9291
9294
  /* @__PURE__ */ u(fy, { messageText: e.body, colors: t == null ? void 0 : t.colors })
9292
9295
  ] }, e.id);
9293
9296
  if ((e == null ? void 0 : e.id) === "delimiter-new")
9294
9297
  return /* @__PURE__ */ u(ly, { color: (d = t == null ? void 0 : t.colors) == null ? void 0 : d.primary });
9295
9298
  const f = n || O3;
9296
- return /* @__PURE__ */ P(Uo, { children: [
9299
+ return /* @__PURE__ */ P(Xo, { children: [
9297
9300
  s && !i && e.id !== "delimiter-new" && /* @__PURE__ */ u(xd, { date: o, colors: t == null ? void 0 : t.colors }),
9298
9301
  /* @__PURE__ */ u(f, { message: e, isUser: A, isReply: a, children: n ? /* @__PURE__ */ u(
9299
9302
  f,
@@ -10546,28 +10549,28 @@ const wy = N.div`
10546
10549
  justify-content: center;
10547
10550
  align-items: center;
10548
10551
  margin-right: 10px;
10549
- `, Xy = N.div`
10552
+ `, Uy = N.div`
10550
10553
  width: 18px;
10551
10554
  height: 18px;
10552
10555
  border-radius: 50%;
10553
10556
  background-color: rgba(255, 0, 0, 0.6);
10554
10557
  position: absolute;
10555
10558
  animation: ${qy} 1.5s infinite ease-in-out;
10556
- `, Uy = N.div`
10559
+ `, Xy = N.div`
10557
10560
  width: 16px;
10558
10561
  height: 16px;
10559
10562
  border-radius: 50%;
10560
10563
  background-color: red;
10561
10564
  position: relative;
10562
10565
  `, Jy = () => /* @__PURE__ */ P(Vy, { children: [
10563
- /* @__PURE__ */ u(Xy, {}),
10564
- /* @__PURE__ */ u(Uy, {})
10566
+ /* @__PURE__ */ u(Uy, {}),
10567
+ /* @__PURE__ */ u(Xy, {})
10565
10568
  ] }), Ky = ({
10566
10569
  setIsRecording: n,
10567
10570
  isRecording: e,
10568
10571
  handleSendClick: i
10569
10572
  }) => {
10570
- const [t, r] = X(null), [s, a] = X(0), A = we(null), o = we([]), f = we(null), d = (y) => {
10573
+ const [t, r] = U(null), [s, a] = U(0), A = we(null), o = we([]), f = we(null), d = (y) => {
10571
10574
  const m = Math.floor(y / 60), v = y % 60;
10572
10575
  return `${m.toString().padStart(2, "0")}:${v.toString().padStart(2, "0")}`;
10573
10576
  }, c = ie(() => {
@@ -10614,7 +10617,7 @@ const wy = N.div`
10614
10617
  isLoading: a
10615
10618
  }) => {
10616
10619
  var S, I, D;
10617
- const [A, o] = X(""), [f, d] = X(!1), [c, l] = X([]), h = we(null), g = ie(() => {
10620
+ const [A, o] = U(""), [f, d] = U(!1), [c, l] = U([]), h = we(null), g = ie(() => {
10618
10621
  h.current && h.current.click();
10619
10622
  }, []), b = ie(
10620
10623
  (B) => {
@@ -10786,7 +10789,7 @@ const wy = N.div`
10786
10789
  direction: i = "left",
10787
10790
  ...t
10788
10791
  }) => {
10789
- const [r, s] = X(!1), [a, A] = X(!1), o = we(null), f = () => {
10792
+ const [r, s] = U(!1), [a, A] = U(!1), o = we(null), f = () => {
10790
10793
  s(!0);
10791
10794
  }, d = () => {
10792
10795
  a || s(!1);
@@ -10841,7 +10844,7 @@ const wy = N.div`
10841
10844
  position: i = "right",
10842
10845
  menuIcon: t
10843
10846
  }) => {
10844
- const [r, s] = X(!1), a = we(null), A = we(null), o = i === "right" ? { top: "60px", right: "-140px" } : { top: "60px", right: "0px" }, f = () => s((d) => !d);
10847
+ const [r, s] = U(!1), a = we(null), A = we(null), o = i === "right" ? { top: "60px", right: "-140px" } : { top: "60px", right: "0px" }, f = () => s((d) => !d);
10845
10848
  return pe(() => {
10846
10849
  const d = (c) => {
10847
10850
  a.current && !a.current.contains(c.target) && A.current && !A.current.contains(c.target) && s(!1);
@@ -11679,7 +11682,7 @@ function ma() {
11679
11682
  function nt(n) {
11680
11683
  return n && n._delegate ? n._delegate : n;
11681
11684
  }
11682
- class Xi {
11685
+ class Ui {
11683
11686
  /**
11684
11687
  *
11685
11688
  * @param name The public service name, e.g. app, auth, firestore, database
@@ -12047,9 +12050,9 @@ class O1 {
12047
12050
  this._userLogHandler && this._userLogHandler(this, ge.ERROR, ...e), this._logHandler(this, ge.ERROR, ...e);
12048
12051
  }
12049
12052
  }
12050
- const Xk = (n, e) => e.some((i) => n instanceof i);
12053
+ const Uk = (n, e) => e.some((i) => n instanceof i);
12051
12054
  let Bd, Dd;
12052
- function Uk() {
12055
+ function Xk() {
12053
12056
  return Bd || (Bd = [
12054
12057
  IDBDatabase,
12055
12058
  IDBObjectStore,
@@ -12071,7 +12074,7 @@ function Kk(n) {
12071
12074
  const r = () => {
12072
12075
  n.removeEventListener("success", s), n.removeEventListener("error", a);
12073
12076
  }, s = () => {
12074
- i(Un(n.result)), r();
12077
+ i(Xn(n.result)), r();
12075
12078
  }, a = () => {
12076
12079
  t(n.error), r();
12077
12080
  };
@@ -12107,7 +12110,7 @@ let gA = {
12107
12110
  if (e === "store")
12108
12111
  return i.objectStoreNames[1] ? void 0 : i.objectStore(i.objectStoreNames[0]);
12109
12112
  }
12110
- return Un(n[e]);
12113
+ return Xn(n[e]);
12111
12114
  },
12112
12115
  set(n, e, i) {
12113
12116
  return n[e] = i, !0;
@@ -12122,17 +12125,17 @@ function _k(n) {
12122
12125
  function $k(n) {
12123
12126
  return n === IDBDatabase.prototype.transaction && !("objectStoreNames" in IDBTransaction.prototype) ? function(e, ...i) {
12124
12127
  const t = n.call(va(this), e, ...i);
12125
- return T1.set(t, e.sort ? e.sort() : [e]), Un(t);
12128
+ return T1.set(t, e.sort ? e.sort() : [e]), Xn(t);
12126
12129
  } : Jk().includes(n) ? function(...e) {
12127
- return n.apply(va(this), e), Un(M1.get(this));
12130
+ return n.apply(va(this), e), Xn(M1.get(this));
12128
12131
  } : function(...e) {
12129
- return Un(n.apply(va(this), e));
12132
+ return Xn(n.apply(va(this), e));
12130
12133
  };
12131
12134
  }
12132
12135
  function e4(n) {
12133
- return typeof n == "function" ? $k(n) : (n instanceof IDBTransaction && Zk(n), Xk(n, Uk()) ? new Proxy(n, gA) : n);
12136
+ return typeof n == "function" ? $k(n) : (n instanceof IDBTransaction && Zk(n), Uk(n, Xk()) ? new Proxy(n, gA) : n);
12134
12137
  }
12135
- function Un(n) {
12138
+ function Xn(n) {
12136
12139
  if (n instanceof IDBRequest)
12137
12140
  return Kk(n);
12138
12141
  if (pa.has(n))
@@ -12142,9 +12145,9 @@ function Un(n) {
12142
12145
  }
12143
12146
  const va = (n) => Co.get(n);
12144
12147
  function n4(n, e, { blocked: i, upgrade: t, blocking: r, terminated: s } = {}) {
12145
- const a = indexedDB.open(n, e), A = Un(a);
12148
+ const a = indexedDB.open(n, e), A = Xn(a);
12146
12149
  return t && a.addEventListener("upgradeneeded", (o) => {
12147
- t(Un(a.result), o.oldVersion, o.newVersion, Un(a.transaction), o);
12150
+ t(Xn(a.result), o.oldVersion, o.newVersion, Xn(a.transaction), o);
12148
12151
  }), i && a.addEventListener("blocked", (o) => i(
12149
12152
  // Casting due to https://github.com/microsoft/TypeScript-DOM-lib-generator/pull/1405
12150
12153
  o.oldVersion,
@@ -12373,7 +12376,7 @@ const T4 = {
12373
12376
  */
12374
12377
  class j4 {
12375
12378
  constructor(e, i, t) {
12376
- this._isDeleted = !1, this._options = Object.assign({}, e), this._config = Object.assign({}, i), this._name = i.name, this._automaticDataCollectionEnabled = i.automaticDataCollectionEnabled, this._container = t, this.container.addComponent(new Xi(
12379
+ this._isDeleted = !1, this._options = Object.assign({}, e), this._config = Object.assign({}, i), this._name = i.name, this._automaticDataCollectionEnabled = i.automaticDataCollectionEnabled, this._container = t, this.container.addComponent(new Ui(
12377
12380
  "app",
12378
12381
  () => this,
12379
12382
  "PUBLIC"
@@ -12475,7 +12478,7 @@ function Mi(n, e, i) {
12475
12478
  s && A.push(`library name "${r}" contains illegal characters (whitespace or "/")`), s && a && A.push("and"), a && A.push(`version name "${e}" contains illegal characters (whitespace or "/")`), Pn.warn(A.join(" "));
12476
12479
  return;
12477
12480
  }
12478
- kt(new Xi(
12481
+ kt(new Ui(
12479
12482
  `${r}-version`,
12480
12483
  () => ({ library: r, version: e }),
12481
12484
  "VERSION"
@@ -12707,12 +12710,12 @@ function Md(n) {
12707
12710
  * limitations under the License.
12708
12711
  */
12709
12712
  function q4(n) {
12710
- kt(new Xi(
12713
+ kt(new Ui(
12711
12714
  "platform-logger",
12712
12715
  (e) => new r4(e),
12713
12716
  "PRIVATE"
12714
12717
  /* ComponentType.PRIVATE */
12715
- )), kt(new Xi(
12718
+ )), kt(new Ui(
12716
12719
  "heartbeat",
12717
12720
  (e) => new H4(e),
12718
12721
  "PRIVATE"
@@ -12743,7 +12746,7 @@ const V4 = R1, W1 = new St("auth", "Firebase", R1());
12743
12746
  * limitations under the License.
12744
12747
  */
12745
12748
  const qr = new O1("@firebase/auth");
12746
- function X4(n, ...e) {
12749
+ function U4(n, ...e) {
12747
12750
  qr.logLevel <= ge.WARN && qr.warn(`Auth (${Ot}): ${n}`, ...e);
12748
12751
  }
12749
12752
  function yr(n, ...e) {
@@ -12780,7 +12783,7 @@ function xo(n, e, i) {
12780
12783
  function vi(n) {
12781
12784
  return xo(n, "operation-not-supported-in-this-environment", "Operations that alter the current user are not supported in conjunction with FirebaseServerApp");
12782
12785
  }
12783
- function U4(n, e, i) {
12786
+ function X4(n, e, i) {
12784
12787
  const t = i;
12785
12788
  if (!(e instanceof t))
12786
12789
  throw t.name !== e.constructor.name && pn(
@@ -13940,7 +13943,7 @@ function Ld(n) {
13940
13943
  return "IE";
13941
13944
  if (e.includes("edge/"))
13942
13945
  return "Edge";
13943
- if (X1(e))
13946
+ if (U1(e))
13944
13947
  return "Firefox";
13945
13948
  if (e.includes("silk/"))
13946
13949
  return "Silk";
@@ -13948,7 +13951,7 @@ function Ld(n) {
13948
13951
  return "Blackberry";
13949
13952
  if ($1(e))
13950
13953
  return "Webos";
13951
- if (U1(e))
13954
+ if (X1(e))
13952
13955
  return "Safari";
13953
13956
  if ((e.includes("chrome/") || J1(e)) && !e.includes("edge/"))
13954
13957
  return "Chrome";
@@ -13961,10 +13964,10 @@ function Ld(n) {
13961
13964
  }
13962
13965
  return "Other";
13963
13966
  }
13964
- function X1(n = Te()) {
13967
+ function U1(n = Te()) {
13965
13968
  return /firefox\//i.test(n);
13966
13969
  }
13967
- function U1(n = Te()) {
13970
+ function X1(n = Te()) {
13968
13971
  const e = n.toLowerCase();
13969
13972
  return e.includes("safari/") && !e.includes("chrome/") && !e.includes("crios/") && !e.includes("android");
13970
13973
  }
@@ -14535,7 +14538,7 @@ class m6 {
14535
14538
  async _getAppCheckToken() {
14536
14539
  var e;
14537
14540
  const i = await ((e = this.appCheckServiceProvider.getImmediate({ optional: !0 })) === null || e === void 0 ? void 0 : e.getToken());
14538
- return i != null && i.error && X4(`Error while retrieving App Check token: ${i.error}`), i == null ? void 0 : i.token;
14541
+ return i != null && i.error && U4(`Error while retrieving App Check token: ${i.error}`), i == null ? void 0 : i.token;
14539
14542
  }
14540
14543
  }
14541
14544
  function Bs(n) {
@@ -15206,13 +15209,13 @@ zn.PROVIDER_ID = "twitter.com";
15206
15209
  * See the License for the specific language governing permissions and
15207
15210
  * limitations under the License.
15208
15211
  */
15209
- class Ui {
15212
+ class Xi {
15210
15213
  constructor(e) {
15211
15214
  this.user = e.user, this.providerId = e.providerId, this._tokenResponse = e._tokenResponse, this.operationType = e.operationType;
15212
15215
  }
15213
15216
  static async _fromIdTokenResponse(e, i, t, r = !1) {
15214
15217
  const s = await In._fromIdTokenResponse(e, t, r), a = Yd(t);
15215
- return new Ui({
15218
+ return new Xi({
15216
15219
  user: s,
15217
15220
  providerId: a,
15218
15221
  _tokenResponse: t,
@@ -15226,7 +15229,7 @@ class Ui {
15226
15229
  !0
15227
15230
  );
15228
15231
  const r = Yd(t);
15229
- return new Ui({
15232
+ return new Xi({
15230
15233
  user: e,
15231
15234
  providerId: r,
15232
15235
  _tokenResponse: t,
@@ -15253,10 +15256,10 @@ function Yd(n) {
15253
15256
  * See the License for the specific language governing permissions and
15254
15257
  * limitations under the License.
15255
15258
  */
15256
- class Xr extends ri {
15259
+ class Ur extends ri {
15257
15260
  constructor(e, i, t, r) {
15258
15261
  var s;
15259
- super(i.code, i.message), this.operationType = t, this.user = r, Object.setPrototypeOf(this, Xr.prototype), this.customData = {
15262
+ super(i.code, i.message), this.operationType = t, this.user = r, Object.setPrototypeOf(this, Ur.prototype), this.customData = {
15260
15263
  appName: e.name,
15261
15264
  tenantId: (s = e.tenantId) !== null && s !== void 0 ? s : void 0,
15262
15265
  _serverResponse: i.customData._serverResponse,
@@ -15264,17 +15267,17 @@ class Xr extends ri {
15264
15267
  };
15265
15268
  }
15266
15269
  static _fromErrorAndOperation(e, i, t, r) {
15267
- return new Xr(e, i, t, r);
15270
+ return new Ur(e, i, t, r);
15268
15271
  }
15269
15272
  }
15270
15273
  function rh(n, e, i, t) {
15271
15274
  return (e === "reauthenticate" ? i._getReauthenticationResolver(n) : i._getIdTokenResponse(n)).catch((s) => {
15272
- throw s.code === "auth/multi-factor-auth-required" ? Xr._fromErrorAndOperation(n, s, e, t) : s;
15275
+ throw s.code === "auth/multi-factor-auth-required" ? Ur._fromErrorAndOperation(n, s, e, t) : s;
15273
15276
  });
15274
15277
  }
15275
15278
  async function D6(n, e, i = !1) {
15276
15279
  const t = await xt(n, e._linkToIdToken(n.auth, await n.getIdToken()), i);
15277
- return Ui._forOperation(n, "link", t);
15280
+ return Xi._forOperation(n, "link", t);
15278
15281
  }
15279
15282
  /**
15280
15283
  * @license
@@ -15318,7 +15321,7 @@ async function I6(n, e, i = !1) {
15318
15321
  t,
15319
15322
  "user-mismatch"
15320
15323
  /* AuthErrorCode.USER_MISMATCH */
15321
- ), Ui._forOperation(n, r, s);
15324
+ ), Xi._forOperation(n, r, s);
15322
15325
  } catch (s) {
15323
15326
  throw (s == null ? void 0 : s.code) === "auth/user-not-found" && pn(
15324
15327
  t,
@@ -15346,7 +15349,7 @@ async function I6(n, e, i = !1) {
15346
15349
  async function N6(n, e, i = !1) {
15347
15350
  if (Bn(n.app))
15348
15351
  return Promise.reject(vi(n));
15349
- const t = "signIn", r = await rh(n, t, e), s = await Ui._fromIdTokenResponse(n, t, r);
15352
+ const t = "signIn", r = await rh(n, t, e), s = await Xi._fromIdTokenResponse(n, t, r);
15350
15353
  return i || await n._updateCurrentUser(s.user), s;
15351
15354
  }
15352
15355
  function S6(n, e, i, t) {
@@ -15355,7 +15358,7 @@ function S6(n, e, i, t) {
15355
15358
  function P6(n, e, i) {
15356
15359
  return nt(n).beforeAuthStateChanged(e, i);
15357
15360
  }
15358
- const Ur = "__sak";
15361
+ const Xr = "__sak";
15359
15362
  /**
15360
15363
  * @license
15361
15364
  * Copyright 2019 Google LLC
@@ -15378,7 +15381,7 @@ class sh {
15378
15381
  }
15379
15382
  _isAvailable() {
15380
15383
  try {
15381
- return this.storage ? (this.storage.setItem(Ur, "1"), this.storage.removeItem(Ur), Promise.resolve(!0)) : Promise.resolve(!1);
15384
+ return this.storage ? (this.storage.setItem(Xr, "1"), this.storage.removeItem(Xr), Promise.resolve(!0)) : Promise.resolve(!1);
15382
15385
  } catch {
15383
15386
  return Promise.resolve(!1);
15384
15387
  }
@@ -15978,7 +15981,7 @@ class lh {
15978
15981
  if (!indexedDB)
15979
15982
  return !1;
15980
15983
  const e = await yA();
15981
- return await Hd(e, Ur, "1"), await Gd(e, Ur), !0;
15984
+ return await Hd(e, Xr, "1"), await Gd(e, Xr), !0;
15982
15985
  } catch {
15983
15986
  }
15984
15987
  return !1;
@@ -16111,10 +16114,10 @@ class Mo extends th {
16111
16114
  return e && (i.idToken = e), i;
16112
16115
  }
16113
16116
  }
16114
- function X6(n) {
16117
+ function U6(n) {
16115
16118
  return N6(n.auth, new Mo(n), n.bypassAuthState);
16116
16119
  }
16117
- function U6(n) {
16120
+ function X6(n) {
16118
16121
  const { auth: e, user: i } = n;
16119
16122
  return J(
16120
16123
  i,
@@ -16190,13 +16193,13 @@ class hh {
16190
16193
  switch (e) {
16191
16194
  case "signInViaPopup":
16192
16195
  case "signInViaRedirect":
16193
- return X6;
16196
+ return U6;
16194
16197
  case "linkViaPopup":
16195
16198
  case "linkViaRedirect":
16196
16199
  return J6;
16197
16200
  case "reauthViaPopup":
16198
16201
  case "reauthViaRedirect":
16199
- return U6;
16202
+ return X6;
16200
16203
  default:
16201
16204
  pn(
16202
16205
  this.auth,
@@ -16240,7 +16243,7 @@ async function Z6(n, e, i) {
16240
16243
  /* AuthErrorCode.OPERATION_NOT_SUPPORTED */
16241
16244
  ));
16242
16245
  const t = Bs(n);
16243
- U4(n, e, Po);
16246
+ X4(n, e, Po);
16244
16247
  const r = uh(t, i);
16245
16248
  return new ui(t, "signInViaPopup", e, r).executeNotNull();
16246
16249
  }
@@ -16725,7 +16728,7 @@ function I9(n, e, i, t = x9, r = E9) {
16725
16728
  top: s,
16726
16729
  left: a
16727
16730
  }), f = Te().toLowerCase();
16728
- i && (A = J1(f) ? B9 : i), X1(f) && (e = e || D9, o.scrollbars = "yes");
16731
+ i && (A = J1(f) ? B9 : i), U1(f) && (e = e || D9, o.scrollbars = "yes");
16729
16732
  const d = Object.entries(o).reduce((l, [h, g]) => `${l}${h}=${g},`, "");
16730
16733
  if (d6(f) && A !== "_self")
16731
16734
  return N9(e || "", A), new Vd(null);
@@ -16765,7 +16768,7 @@ function N9(n, e) {
16765
16768
  * limitations under the License.
16766
16769
  */
16767
16770
  const S9 = "__/auth/handler", P9 = "emulator/auth/handler", O9 = encodeURIComponent("fac");
16768
- async function Xd(n, e, i, t, r, s) {
16771
+ async function Ud(n, e, i, t, r, s) {
16769
16772
  J(
16770
16773
  n.config.authDomain,
16771
16774
  n,
@@ -16830,12 +16833,12 @@ class T9 {
16830
16833
  async _openPopup(e, i, t, r) {
16831
16834
  var s;
16832
16835
  On((s = this.eventManagers[e._key()]) === null || s === void 0 ? void 0 : s.manager, "_initialize() not called before _openPopup()");
16833
- const a = await Xd(e, i, t, wA(), r);
16836
+ const a = await Ud(e, i, t, wA(), r);
16834
16837
  return I9(e, a, Oo());
16835
16838
  }
16836
16839
  async _openRedirect(e, i, t, r) {
16837
16840
  await this._originValidation(e);
16838
- const s = await Xd(e, i, t, wA(), r);
16841
+ const s = await Ud(e, i, t, wA(), r);
16839
16842
  return F6(s), new Promise(() => {
16840
16843
  });
16841
16844
  }
@@ -16878,11 +16881,11 @@ class T9 {
16878
16881
  return this.originValidationPromises[i] || (this.originValidationPromises[i] = c9(e)), this.originValidationPromises[i];
16879
16882
  }
16880
16883
  get _shouldInitProactively() {
16881
- return eh() || U1() || No();
16884
+ return eh() || X1() || No();
16882
16885
  }
16883
16886
  }
16884
16887
  const j9 = T9;
16885
- var Ud = "@firebase/auth", Jd = "1.7.9";
16888
+ var Xd = "@firebase/auth", Jd = "1.7.9";
16886
16889
  /**
16887
16890
  * @license
16888
16891
  * Copyright 2020 Google LLC
@@ -16967,7 +16970,7 @@ function F9(n) {
16967
16970
  }
16968
16971
  }
16969
16972
  function L9(n) {
16970
- kt(new Xi(
16973
+ kt(new Ui(
16971
16974
  "auth",
16972
16975
  (e, { options: i }) => {
16973
16976
  const t = e.getProvider("app").getImmediate(), r = e.getProvider("heartbeat"), s = e.getProvider("app-check-internal"), { apiKey: a, authDomain: A } = t.options;
@@ -16993,7 +16996,7 @@ function L9(n) {
16993
16996
  "auth-internal"
16994
16997
  /* _ComponentName.AUTH_INTERNAL */
16995
16998
  ).initialize();
16996
- })), kt(new Xi(
16999
+ })), kt(new Ui(
16997
17000
  "auth-internal",
16998
17001
  (e) => {
16999
17002
  const i = Bs(e.getProvider(
@@ -17007,7 +17010,7 @@ function L9(n) {
17007
17010
  ).setInstantiationMode(
17008
17011
  "EXPLICIT"
17009
17012
  /* InstantiationMode.EXPLICIT */
17010
- )), Mi(Ud, Jd, F9(n)), Mi(Ud, Jd, "esm2017");
17013
+ )), Mi(Xd, Jd, F9(n)), Mi(Xd, Jd, "esm2017");
17011
17014
  }
17012
17015
  /**
17013
17016
  * @license
@@ -17111,33 +17114,33 @@ const V9 = {
17111
17114
  storageBucket: "ethora-668e9.appspot.com",
17112
17115
  messagingSenderId: "972933470054",
17113
17116
  appId: "1:972933470054:web:d4682e76ef02fd9b9cdaa7"
17114
- }, X9 = Q1(V9), Ns = "JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJkYXRhIjp7ImlzVXNlckRhdGFFbmNyeXB0ZWQiOmZhbHNlLCJwYXJlbnRBcHBJZCI6bnVsbCwiaXNBbGxvd2VkTmV3QXBwQ3JlYXRlIjp0cnVlLCJpc0Jhc2VBcHAiOnRydWUsIl9pZCI6IjY0NmNjOGRjOTZkNGE0ZGM4ZjdiMmYyZCIsImRpc3BsYXlOYW1lIjoiRXRob3JhIiwiZG9tYWluTmFtZSI6ImV0aG9yYSIsImNyZWF0b3JJZCI6IjY0NmNjOGQzOTZkNGE0ZGM4ZjdiMmYyNSIsInVzZXJzQ2FuRnJlZSI6dHJ1ZSwiZGVmYXVsdEFjY2Vzc0Fzc2V0c09wZW4iOnRydWUsImRlZmF1bHRBY2Nlc3NQcm9maWxlT3BlbiI6dHJ1ZSwiYnVuZGxlSWQiOiJjb20uZXRob3JhIiwicHJpbWFyeUNvbG9yIjoiIzAwM0U5QyIsInNlY29uZGFyeUNvbG9yIjoiIzI3NzVFQSIsImNvaW5TeW1ib2wiOiJFVE8iLCJjb2luTmFtZSI6IkV0aG9yYSBDb2luIiwiUkVBQ1RfQVBQX0ZJUkVCQVNFX0FQSV9LRVkiOiJBSXphU3lEUWRrdnZ4S0t4NC1XcmpMUW9ZZjA4R0ZBUmdpX3FPNGciLCJSRUFDVF9BUFBfRklSRUJBU0VfQVVUSF9ET01BSU4iOiJldGhvcmEtNjY4ZTkuZmlyZWJhc2VhcHAuY29tIiwiUkVBQ1RfQVBQX0ZJUkVCQVNFX1BST0pFQ1RfSUQiOiJldGhvcmEtNjY4ZTkiLCJSRUFDVF9BUFBfRklSRUJBU0VfU1RPUkFHRV9CVUNLRVQiOiJldGhvcmEtNjY4ZTkuYXBwc3BvdC5jb20iLCJSRUFDVF9BUFBfRklSRUJBU0VfTUVTU0FHSU5HX1NFTkRFUl9JRCI6Ijk3MjkzMzQ3MDA1NCIsIlJFQUNUX0FQUF9GSVJFQkFTRV9BUFBfSUQiOiIxOjk3MjkzMzQ3MDA1NDp3ZWI6ZDQ2ODJlNzZlZjAyZmQ5YjljZGFhNyIsIlJFQUNUX0FQUF9GSVJFQkFTRV9NRUFTVVJNRU5UX0lEIjoiRy1XSE03WFJaNEM4IiwiUkVBQ1RfQVBQX1NUUklQRV9QVUJMSVNIQUJMRV9LRVkiOiIiLCJSRUFDVF9BUFBfU1RSSVBFX1NFQ1JFVF9LRVkiOiIiLCJjcmVhdGVkQXQiOiIyMDIzLTA1LTIzVDE0OjA4OjI4LjEzNloiLCJ1cGRhdGVkQXQiOiIyMDIzLTA1LTIzVDE0OjA4OjI4LjEzNloiLCJfX3YiOjB9LCJpYXQiOjE2ODQ4NTA5MjV9.-IqNVMsf8GyS9Z-_yuNW7hpSmejajjAy-W0J8TadRIM";
17117
+ }, U9 = Q1(V9), Ns = "JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJkYXRhIjp7ImlzVXNlckRhdGFFbmNyeXB0ZWQiOmZhbHNlLCJwYXJlbnRBcHBJZCI6bnVsbCwiaXNBbGxvd2VkTmV3QXBwQ3JlYXRlIjp0cnVlLCJpc0Jhc2VBcHAiOnRydWUsIl9pZCI6IjY0NmNjOGRjOTZkNGE0ZGM4ZjdiMmYyZCIsImRpc3BsYXlOYW1lIjoiRXRob3JhIiwiZG9tYWluTmFtZSI6ImV0aG9yYSIsImNyZWF0b3JJZCI6IjY0NmNjOGQzOTZkNGE0ZGM4ZjdiMmYyNSIsInVzZXJzQ2FuRnJlZSI6dHJ1ZSwiZGVmYXVsdEFjY2Vzc0Fzc2V0c09wZW4iOnRydWUsImRlZmF1bHRBY2Nlc3NQcm9maWxlT3BlbiI6dHJ1ZSwiYnVuZGxlSWQiOiJjb20uZXRob3JhIiwicHJpbWFyeUNvbG9yIjoiIzAwM0U5QyIsInNlY29uZGFyeUNvbG9yIjoiIzI3NzVFQSIsImNvaW5TeW1ib2wiOiJFVE8iLCJjb2luTmFtZSI6IkV0aG9yYSBDb2luIiwiUkVBQ1RfQVBQX0ZJUkVCQVNFX0FQSV9LRVkiOiJBSXphU3lEUWRrdnZ4S0t4NC1XcmpMUW9ZZjA4R0ZBUmdpX3FPNGciLCJSRUFDVF9BUFBfRklSRUJBU0VfQVVUSF9ET01BSU4iOiJldGhvcmEtNjY4ZTkuZmlyZWJhc2VhcHAuY29tIiwiUkVBQ1RfQVBQX0ZJUkVCQVNFX1BST0pFQ1RfSUQiOiJldGhvcmEtNjY4ZTkiLCJSRUFDVF9BUFBfRklSRUJBU0VfU1RPUkFHRV9CVUNLRVQiOiJldGhvcmEtNjY4ZTkuYXBwc3BvdC5jb20iLCJSRUFDVF9BUFBfRklSRUJBU0VfTUVTU0FHSU5HX1NFTkRFUl9JRCI6Ijk3MjkzMzQ3MDA1NCIsIlJFQUNUX0FQUF9GSVJFQkFTRV9BUFBfSUQiOiIxOjk3MjkzMzQ3MDA1NDp3ZWI6ZDQ2ODJlNzZlZjAyZmQ5YjljZGFhNyIsIlJFQUNUX0FQUF9GSVJFQkFTRV9NRUFTVVJNRU5UX0lEIjoiRy1XSE03WFJaNEM4IiwiUkVBQ1RfQVBQX1NUUklQRV9QVUJMSVNIQUJMRV9LRVkiOiIiLCJSRUFDVF9BUFBfU1RSSVBFX1NFQ1JFVF9LRVkiOiIiLCJjcmVhdGVkQXQiOiIyMDIzLTA1LTIzVDE0OjA4OjI4LjEzNloiLCJ1cGRhdGVkQXQiOiIyMDIzLTA1LTIzVDE0OjA4OjI4LjEzNloiLCJfX3YiOjB9LCJpYXQiOjE2ODQ4NTA5MjV9.-IqNVMsf8GyS9Z-_yuNW7hpSmejajjAy-W0J8TadRIM";
17115
17118
  function mh(n, e) {
17116
17119
  return function() {
17117
17120
  return n.apply(e, arguments);
17118
17121
  };
17119
17122
  }
17120
- const { toString: U9 } = Object.prototype, { getPrototypeOf: To } = Object, Ss = /* @__PURE__ */ ((n) => (e) => {
17121
- const i = U9.call(e);
17123
+ const { toString: X9 } = Object.prototype, { getPrototypeOf: To } = Object, Ss = /* @__PURE__ */ ((n) => (e) => {
17124
+ const i = X9.call(e);
17122
17125
  return n[i] || (n[i] = i.slice(8, -1).toLowerCase());
17123
17126
  })(/* @__PURE__ */ Object.create(null)), an = (n) => (n = n.toLowerCase(), (e) => Ss(e) === n), Ps = (n) => (e) => typeof e === n, { isArray: tt } = Array, Et = Ps("undefined");
17124
17127
  function J9(n) {
17125
- return n !== null && !Et(n) && n.constructor !== null && !Et(n.constructor) && Ue(n.constructor.isBuffer) && n.constructor.isBuffer(n);
17128
+ return n !== null && !Et(n) && n.constructor !== null && !Et(n.constructor) && Xe(n.constructor.isBuffer) && n.constructor.isBuffer(n);
17126
17129
  }
17127
17130
  const ph = an("ArrayBuffer");
17128
17131
  function K9(n) {
17129
17132
  let e;
17130
17133
  return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(n) : e = n && n.buffer && ph(n.buffer), e;
17131
17134
  }
17132
- const Z9 = Ps("string"), Ue = Ps("function"), vh = Ps("number"), Os = (n) => n !== null && typeof n == "object", _9 = (n) => n === !0 || n === !1, Er = (n) => {
17135
+ const Z9 = Ps("string"), Xe = Ps("function"), vh = Ps("number"), Os = (n) => n !== null && typeof n == "object", _9 = (n) => n === !0 || n === !1, Er = (n) => {
17133
17136
  if (Ss(n) !== "object")
17134
17137
  return !1;
17135
17138
  const e = To(n);
17136
17139
  return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(Symbol.toStringTag in n) && !(Symbol.iterator in n);
17137
- }, $9 = an("Date"), e7 = an("File"), n7 = an("Blob"), i7 = an("FileList"), t7 = (n) => Os(n) && Ue(n.pipe), r7 = (n) => {
17140
+ }, $9 = an("Date"), e7 = an("File"), n7 = an("Blob"), i7 = an("FileList"), t7 = (n) => Os(n) && Xe(n.pipe), r7 = (n) => {
17138
17141
  let e;
17139
- return n && (typeof FormData == "function" && n instanceof FormData || Ue(n.append) && ((e = Ss(n)) === "formdata" || // detect form-data instance
17140
- e === "object" && Ue(n.toString) && n.toString() === "[object FormData]"));
17142
+ return n && (typeof FormData == "function" && n instanceof FormData || Xe(n.append) && ((e = Ss(n)) === "formdata" || // detect form-data instance
17143
+ e === "object" && Xe(n.toString) && n.toString() === "[object FormData]"));
17141
17144
  }, s7 = an("URLSearchParams"), [a7, A7, o7, f7] = ["ReadableStream", "Request", "Response", "Headers"].map(an), d7 = (n) => n.trim ? n.trim() : n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
17142
17145
  function Qt(n, e, { allOwnKeys: i = !1 } = {}) {
17143
17146
  if (n === null || typeof n > "u")
@@ -17173,7 +17176,7 @@ function kA() {
17173
17176
  return e;
17174
17177
  }
17175
17178
  const c7 = (n, e, i, { allOwnKeys: t } = {}) => (Qt(e, (r, s) => {
17176
- i && Ue(r) ? n[s] = mh(r, i) : n[s] = r;
17179
+ i && Xe(r) ? n[s] = mh(r, i) : n[s] = r;
17177
17180
  }, { allOwnKeys: t }), n), l7 = (n) => (n.charCodeAt(0) === 65279 && (n = n.slice(1)), n), u7 = (n, e, i, t) => {
17178
17181
  n.prototype = Object.create(e.prototype, t), n.prototype.constructor = n, Object.defineProperty(n, "super", {
17179
17182
  value: e.prototype
@@ -17227,10 +17230,10 @@ const c7 = (n, e, i, { allOwnKeys: t } = {}) => (Qt(e, (r, s) => {
17227
17230
  }), Object.defineProperties(n, t);
17228
17231
  }, C7 = (n) => {
17229
17232
  kh(n, (e, i) => {
17230
- if (Ue(n) && ["arguments", "caller", "callee"].indexOf(i) !== -1)
17233
+ if (Xe(n) && ["arguments", "caller", "callee"].indexOf(i) !== -1)
17231
17234
  return !1;
17232
17235
  const t = n[i];
17233
- if (Ue(t)) {
17236
+ if (Xe(t)) {
17234
17237
  if (e.enumerable = !1, "writable" in e) {
17235
17238
  e.writable = !1;
17236
17239
  return;
@@ -17260,7 +17263,7 @@ const c7 = (n, e, i, { allOwnKeys: t } = {}) => (Qt(e, (r, s) => {
17260
17263
  return i;
17261
17264
  };
17262
17265
  function I7(n) {
17263
- return !!(n && Ue(n.append) && n[Symbol.toStringTag] === "FormData" && n[Symbol.iterator]);
17266
+ return !!(n && Xe(n.append) && n[Symbol.toStringTag] === "FormData" && n[Symbol.iterator]);
17264
17267
  }
17265
17268
  const N7 = (n) => {
17266
17269
  const e = new Array(10), i = (t, r) => {
@@ -17279,7 +17282,7 @@ const N7 = (n) => {
17279
17282
  return t;
17280
17283
  };
17281
17284
  return i(n, 0);
17282
- }, S7 = an("AsyncFunction"), P7 = (n) => n && (Os(n) || Ue(n)) && Ue(n.then) && Ue(n.catch), F = {
17285
+ }, S7 = an("AsyncFunction"), P7 = (n) => n && (Os(n) || Xe(n)) && Xe(n.then) && Xe(n.catch), F = {
17283
17286
  isArray: tt,
17284
17287
  isArrayBuffer: ph,
17285
17288
  isBuffer: J9,
@@ -17299,7 +17302,7 @@ const N7 = (n) => {
17299
17302
  isFile: e7,
17300
17303
  isBlob: n7,
17301
17304
  isRegExp: k7,
17302
- isFunction: Ue,
17305
+ isFunction: Xe,
17303
17306
  isStream: t7,
17304
17307
  isURLSearchParams: s7,
17305
17308
  isTypedArray: p7,
@@ -17620,7 +17623,7 @@ function Sh(n) {
17620
17623
  }
17621
17624
  return null;
17622
17625
  }
17623
- function X7(n, e, i) {
17626
+ function U7(n, e, i) {
17624
17627
  if (F.isString(n))
17625
17628
  try {
17626
17629
  return (e || JSON.parse)(n), F.trim(n);
@@ -17656,7 +17659,7 @@ const Ft = {
17656
17659
  );
17657
17660
  }
17658
17661
  }
17659
- return s || r ? (i.setContentType("application/json", !1), X7(e)) : e;
17662
+ return s || r ? (i.setContentType("application/json", !1), U7(e)) : e;
17660
17663
  }],
17661
17664
  transformResponse: [function(e) {
17662
17665
  const i = this.transitional || Ft.transitional, t = i && i.forcedJSONParsing, r = this.responseType === "json";
@@ -17699,7 +17702,7 @@ const Ft = {
17699
17702
  F.forEach(["delete", "get", "head", "post", "put", "patch"], (n) => {
17700
17703
  Ft.headers[n] = {};
17701
17704
  });
17702
- const U7 = F.toObjectSet([
17705
+ const X7 = F.toObjectSet([
17703
17706
  "age",
17704
17707
  "authorization",
17705
17708
  "content-length",
@@ -17722,7 +17725,7 @@ const U7 = F.toObjectSet([
17722
17725
  let i, t, r;
17723
17726
  return n && n.split(`
17724
17727
  `).forEach(function(a) {
17725
- r = a.indexOf(":"), i = a.substring(0, r).trim().toLowerCase(), t = a.substring(r + 1).trim(), !(!i || e[i] && U7[i]) && (i === "set-cookie" ? e[i] ? e[i].push(t) : e[i] = [t] : e[i] = e[i] ? e[i] + ", " + t : t);
17728
+ r = a.indexOf(":"), i = a.substring(0, r).trim().toLowerCase(), t = a.substring(r + 1).trim(), !(!i || e[i] && X7[i]) && (i === "set-cookie" ? e[i] ? e[i].push(t) : e[i] = [t] : e[i] = e[i] ? e[i] + ", " + t : t);
17726
17729
  }), e;
17727
17730
  }, ic = Symbol("internals");
17728
17731
  function At(n) {
@@ -18763,7 +18766,7 @@ xe.default = xe;
18763
18766
  var sl, al;
18764
18767
  const bC = ((al = (sl = Ae.getState().chatSettingStore) == null ? void 0 : sl.config) == null ? void 0 : al.baseUrl) || "https://api.ethoradev.com/v1";
18765
18768
  var Al, ol;
18766
- console.log((ol = (Al = Ae.getState().chatSettingStore) == null ? void 0 : Al.config) == null ? void 0 : ol.baseUrl);
18769
+ console.log("baseUrl", (ol = (Al = Ae.getState().chatSettingStore) == null ? void 0 : Al.config) == null ? void 0 : ol.baseUrl);
18767
18770
  const Ge = xe.create({
18768
18771
  baseURL: bC
18769
18772
  });
@@ -18881,7 +18884,7 @@ async function EC(n) {
18881
18884
  }
18882
18885
  const BC = async () => {
18883
18886
  var i;
18884
- const n = H9(X9), e = new dn();
18887
+ const n = H9(U9), e = new dn();
18885
18888
  e.addScope("https://www.googleapis.com/auth/userinfo.email"), e.addScope("https://www.googleapis.com/auth/userinfo.profile");
18886
18889
  try {
18887
18890
  const t = await Z6(n, e), r = t.user, s = await ((i = n == null ? void 0 : n.currentUser) == null ? void 0 : i.getIdToken()), a = dn.credentialFromResult(t);
@@ -18950,14 +18953,14 @@ const Di = ({
18950
18953
  t != null && t.active && ((g = document.getElementById("avatar-file-input")) == null || g.click());
18951
18954
  };
18952
18955
  return /* @__PURE__ */ P(
18953
- X3,
18956
+ U3,
18954
18957
  {
18955
18958
  bgColor: e ? "transparent" : f,
18956
18959
  size: i,
18957
18960
  isClickable: a || !!(t != null && t.active),
18958
18961
  children: [
18959
18962
  /* @__PURE__ */ P(
18960
- U3,
18963
+ X3,
18961
18964
  {
18962
18965
  bgColor: e ? "transparent" : f,
18963
18966
  size: i,
@@ -19004,7 +19007,7 @@ const Di = ({
19004
19007
  var k;
19005
19008
  const n = oe(
19006
19009
  (S) => S.chatSettingStore.config
19007
- ), e = ke(), { client: i } = Ke(), [t, r] = X(!1), [s, a] = X(""), [A, o] = X(""), [f, d] = X(null), [c, l] = X({ name: "", description: "" }), h = Be(
19010
+ ), e = ke(), { client: i } = Ke(), [t, r] = U(!1), [s, a] = U(""), [A, o] = U(""), [f, d] = U(null), [c, l] = U({ name: "", description: "" }), h = Be(
19008
19011
  () => s.length >= 3 && A.length >= 5,
19009
19012
  [s, A]
19010
19013
  ), g = (S) => S.trim().length < 3 ? "Room name must be at least 3 characters." : "", b = (S) => S.trim().length < 5 ? "Room description must be at least 5 characters." : "", p = (S) => {
@@ -19899,10 +19902,10 @@ var zh = PA.exports, qh = {
19899
19902
  MODE_8BIT_BYTE: 4,
19900
19903
  MODE_KANJI: 8
19901
19904
  }, zC = Vh;
19902
- function Xh(n) {
19905
+ function Uh(n) {
19903
19906
  this.mode = zC.MODE_8BIT_BYTE, this.data = n;
19904
19907
  }
19905
- Xh.prototype = {
19908
+ Uh.prototype = {
19906
19909
  getLength: function(n) {
19907
19910
  return this.data.length;
19908
19911
  },
@@ -19911,7 +19914,7 @@ Xh.prototype = {
19911
19914
  n.put(this.data.charCodeAt(e), 8);
19912
19915
  }
19913
19916
  };
19914
- var qC = Xh, tr = qh;
19917
+ var qC = Uh, tr = qh;
19915
19918
  function cn(n, e) {
19916
19919
  this.totalCount = n, this.dataCount = e;
19917
19920
  }
@@ -20145,10 +20148,10 @@ cn.getRsBlockTable = function(n, e) {
20145
20148
  }
20146
20149
  };
20147
20150
  var VC = cn;
20148
- function Uh() {
20151
+ function Xh() {
20149
20152
  this.buffer = new Array(), this.length = 0;
20150
20153
  }
20151
- Uh.prototype = {
20154
+ Xh.prototype = {
20152
20155
  get: function(n) {
20153
20156
  var e = Math.floor(n / 8);
20154
20157
  return (this.buffer[e] >>> 7 - n % 8 & 1) == 1;
@@ -20165,7 +20168,7 @@ Uh.prototype = {
20165
20168
  this.buffer.length <= e && this.buffer.push(0), n && (this.buffer[e] |= 128 >>> this.length % 8), this.length++;
20166
20169
  }
20167
20170
  };
20168
- var XC = Uh, _e = {
20171
+ var UC = Xh, _e = {
20169
20172
  glog: function(n) {
20170
20173
  if (n < 1)
20171
20174
  throw new Error("glog(" + n + ")");
@@ -20220,7 +20223,7 @@ Dr.prototype = {
20220
20223
  return new Dr(i, 0).mod(n);
20221
20224
  }
20222
20225
  };
20223
- var Kh = Dr, qe = Vh, bc = Kh, UC = Jh, Rn = {
20226
+ var Kh = Dr, qe = Vh, bc = Kh, XC = Jh, Rn = {
20224
20227
  PATTERN000: 0,
20225
20228
  PATTERN001: 1,
20226
20229
  PATTERN010: 2,
@@ -20317,7 +20320,7 @@ var Kh = Dr, qe = Vh, bc = Kh, UC = Jh, Rn = {
20317
20320
  },
20318
20321
  getErrorCorrectPolynomial: function(n) {
20319
20322
  for (var e = new bc([1], 0), i = 0; i < n; i++)
20320
- e = e.multiply(new bc([1, UC.gexp(i)], 0));
20323
+ e = e.multiply(new bc([1, XC.gexp(i)], 0));
20321
20324
  return e;
20322
20325
  },
20323
20326
  getLengthInBits: function(n, e) {
@@ -20389,7 +20392,7 @@ var Kh = Dr, qe = Vh, bc = Kh, UC = Jh, Rn = {
20389
20392
  var c = Math.abs(100 * d / e / e - 50) / 5;
20390
20393
  return i += c * 10, i;
20391
20394
  }
20392
- }, JC = Ie, KC = qC, Zh = VC, _h = XC, si = JC, ZC = Kh;
20395
+ }, JC = Ie, KC = qC, Zh = VC, _h = UC, si = JC, ZC = Kh;
20393
20396
  function ln(n, e) {
20394
20397
  this.typeNumber = n, this.errorCorrectLevel = e, this.modules = null, this.moduleCount = 0, this.dataCache = null, this.dataList = [];
20395
20398
  }
@@ -20763,7 +20766,7 @@ const ig = N.div`
20763
20766
  handleCloseModal: n
20764
20767
  }) => {
20765
20768
  var d, c;
20766
- const [e, i] = X(!1), [t, r] = X(!1), s = ke();
20769
+ const [e, i] = U(!1), [t, r] = U(!1), s = ke();
20767
20770
  oe((l) => l.chatSettingStore);
20768
20771
  const { client: a } = Ke(), A = oe((l) => jw(l));
20769
20772
  pe(() => {
@@ -21242,7 +21245,7 @@ const Vn = N(Vi)`
21242
21245
  icon: e,
21243
21246
  values: i
21244
21247
  }) => {
21245
- const [t, r] = X(!1), s = (a) => {
21248
+ const [t, r] = U(!1), s = (a) => {
21246
21249
  n(a), r(!1);
21247
21250
  };
21248
21251
  return /* @__PURE__ */ P(O5, { children: [
@@ -21508,7 +21511,7 @@ const Cc = N.div`
21508
21511
  var l, h, g, b;
21509
21512
  const e = ke(), { user: i, config: t } = oe(
21510
21513
  (p) => p.chatSettingStore
21511
- ), r = (p) => e(qn(p)), [s, a] = X(i == null ? void 0 : i.isProfileOpen), [A, o] = X(i == null ? void 0 : i.isAssetsOpen), [f, d] = X(null), c = (p, y) => {
21514
+ ), r = (p) => e(qn(p)), [s, a] = U(i == null ? void 0 : i.isProfileOpen), [A, o] = U(i == null ? void 0 : i.isAssetsOpen), [f, d] = U(null), c = (p, y) => {
21512
21515
  d({ message: p, type: y }), setTimeout(() => d(null), 3e3);
21513
21516
  };
21514
21517
  return pe(() => {
@@ -21599,13 +21602,13 @@ const Cc = N.div`
21599
21602
  r[a] = i.charCodeAt(a);
21600
21603
  const s = new Blob([r], { type: "image/jpeg" });
21601
21604
  return new File([s], e, { type: "image/jpeg" });
21602
- }, X5 = ({
21605
+ }, U5 = ({
21603
21606
  setIsEditing: n,
21604
21607
  modalUser: e,
21605
21608
  config: i
21606
21609
  }) => {
21607
21610
  var g, b, p;
21608
- const t = ke(), [r, s] = X((e == null ? void 0 : e.firstName) || ""), [a, A] = X((e == null ? void 0 : e.lastName) || ""), [o, f] = X((e == null ? void 0 : e.description) || ""), [d, c] = X(
21611
+ const t = ke(), [r, s] = U((e == null ? void 0 : e.firstName) || ""), [a, A] = U((e == null ? void 0 : e.lastName) || ""), [o, f] = U((e == null ? void 0 : e.description) || ""), [d, c] = U(
21609
21612
  e == null ? void 0 : e.profileImage
21610
21613
  ), l = async () => {
21611
21614
  try {
@@ -21714,7 +21717,7 @@ const Cc = N.div`
21714
21717
  }
21715
21718
  )
21716
21719
  ] });
21717
- }, U5 = et`
21720
+ }, X5 = et`
21718
21721
  from {
21719
21722
  transform: rotate(0deg);
21720
21723
  }
@@ -21747,7 +21750,7 @@ const Cc = N.div`
21747
21750
  `, $5 = N.span`
21748
21751
  margin-left: 10px;
21749
21752
  display: inline-block;
21750
- animation: ${(n) => n.isOpen ? U5 : J5} 0.3s ease
21753
+ animation: ${(n) => n.isOpen ? X5 : J5} 0.3s ease
21751
21754
  forwards;
21752
21755
  `, e8 = N.div`
21753
21756
  position: absolute;
@@ -21783,9 +21786,9 @@ const Cc = N.div`
21783
21786
  accentColor: t,
21784
21787
  selectedValue: r
21785
21788
  }) => {
21786
- const [s, a] = X(!1), [A, o] = X(
21789
+ const [s, a] = U(!1), [A, o] = U(
21787
21790
  r
21788
- ), [f, d] = X(""), c = we(null), l = () => a((p) => !p), h = (p) => {
21791
+ ), [f, d] = U(""), c = we(null), l = () => a((p) => !p), h = (p) => {
21789
21792
  o(p), i(p), a(!1), d("");
21790
21793
  }, g = n.filter(
21791
21794
  (p) => p.name.toLowerCase().includes(f.toLowerCase())
@@ -21832,7 +21835,7 @@ const Cc = N.div`
21832
21835
  }) => {
21833
21836
  const e = ke(), { client: i } = Ke(), { config: t, user: r, selectedUser: s, langSource: a } = oe(
21834
21837
  (w) => w.chatSettingStore
21835
- ), [A, o] = X(!1), [f, d] = X(!1), c = ie(() => {
21838
+ ), [A, o] = U(!1), [f, d] = U(!1), c = ie(() => {
21836
21839
  e(mu()), n();
21837
21840
  }, []), l = ie(() => {
21838
21841
  e(to()), e(bu());
@@ -21934,7 +21937,7 @@ const Cc = N.div`
21934
21937
  [m]
21935
21938
  ), x = Be(
21936
21939
  () => /* @__PURE__ */ u(
21937
- X5,
21940
+ U5,
21938
21941
  {
21939
21942
  setIsEditing: o,
21940
21943
  modalUser: m,
@@ -62510,7 +62513,7 @@ const Cc = N.div`
62510
62513
  onRoomClick: i,
62511
62514
  isSmallScreen: t
62512
62515
  }) => {
62513
- const { client: r, setClient: s } = Ke(), [a, A] = X(!1), [o, f] = X(""), d = ke(), { config: c } = Mn(), { activeRoomJID: l } = oe((w) => w.rooms), h = we(null), g = ie((w) => {
62516
+ const { client: r, setClient: s } = Ke(), [a, A] = U(!1), [o, f] = U(""), d = ke(), { config: c } = Mn(), { activeRoomJID: l } = oe((w) => w.rooms), h = we(null), g = ie((w) => {
62514
62517
  h.current && !h.current.contains(w.target) && A(!1);
62515
62518
  }, []), b = ie(
62516
62519
  (w) => {
@@ -63022,7 +63025,7 @@ const Cc = N.div`
63022
63025
  }, Bc = Le.memo(
63023
63026
  ({ CustomMessageComponent: n, handleBackClick: e }) => {
63024
63027
  var k, S, I, D, B;
63025
- const { client: i } = Ke(), t = ke(), [r, s] = X(!1), { user: a, config: A } = Mn(), {
63028
+ const { client: i } = Ke(), t = ke(), [r, s] = U(!1), { user: a, config: A } = Mn(), {
63026
63029
  roomsList: o,
63027
63030
  activeRoomJID: f,
63028
63031
  editAction: d,
@@ -64159,7 +64162,7 @@ const q8 = ({ src: n }) => {
64159
64162
  var d;
64160
64163
  const e = oe(
64161
64164
  (c) => c.chatSettingStore.config
64162
- ), i = we(null), t = we(null), [r, s] = X(!1), [a, A] = X(1);
64165
+ ), i = we(null), t = we(null), [r, s] = U(!1), [a, A] = U(1);
64163
64166
  pe(() => {
64164
64167
  var c;
64165
64168
  return t.current = Dt.create({
@@ -64276,7 +64279,7 @@ const q8 = ({ src: n }) => {
64276
64279
  );
64277
64280
  }
64278
64281
  return /* @__PURE__ */ u("div", { children: "Unsupported media type" });
64279
- }, X8 = N.div`
64282
+ }, U8 = N.div`
64280
64283
  width: 40px;
64281
64284
  height: 40px;
64282
64285
  border-radius: 50%;
@@ -64300,7 +64303,7 @@ const q8 = ({ src: n }) => {
64300
64303
  style: t
64301
64304
  }) => {
64302
64305
  const { backgroundColor: r } = Wh(n || e);
64303
- return /* @__PURE__ */ u(X8, { style: t, bgColor: r, children: (() => {
64306
+ return /* @__PURE__ */ u(U8, { style: t, bgColor: r, children: (() => {
64304
64307
  const a = (A) => /^[a-zA-Zа-яА-ЯёЁ]$/.test(A);
64305
64308
  if (e && i) {
64306
64309
  const A = a(e[0]) ? e[0].toUpperCase() : "", o = a(i[0]) ? i[0].toUpperCase() : "";
@@ -64319,7 +64322,7 @@ const q8 = ({ src: n }) => {
64319
64322
  function dg(n) {
64320
64323
  return n && n.__esModule ? n.default : n;
64321
64324
  }
64322
- function Xe(n, e, i) {
64325
+ function Ue(n, e, i) {
64323
64326
  return e in n ? Object.defineProperty(n, e, {
64324
64327
  value: i,
64325
64328
  enumerable: !0,
@@ -64327,8 +64330,8 @@ function Xe(n, e, i) {
64327
64330
  writable: !0
64328
64331
  }) : n[e] = i, n;
64329
64332
  }
64330
- var Rs, U, cg, mt, lg, Pc, _r = {}, ug = [], U8 = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;
64331
- function Xn(n, e) {
64333
+ var Rs, X, cg, mt, lg, Pc, _r = {}, ug = [], X8 = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;
64334
+ function Un(n, e) {
64332
64335
  for (var i in e) n[i] = e[i];
64333
64336
  return n;
64334
64337
  }
@@ -64358,7 +64361,7 @@ function Ir(n, e, i, t, r) {
64358
64361
  constructor: void 0,
64359
64362
  __v: r ?? ++cg
64360
64363
  };
64361
- return r == null && U.vnode != null && U.vnode(s), s;
64364
+ return r == null && X.vnode != null && X.vnode(s), s;
64362
64365
  }
64363
64366
  function kn() {
64364
64367
  return {
@@ -64387,14 +64390,14 @@ function gg(n) {
64387
64390
  }
64388
64391
  }
64389
64392
  function Oc(n) {
64390
- (!n.__d && (n.__d = !0) && mt.push(n) && !$r.__r++ || Pc !== U.debounceRendering) && ((Pc = U.debounceRendering) || lg)($r);
64393
+ (!n.__d && (n.__d = !0) && mt.push(n) && !$r.__r++ || Pc !== X.debounceRendering) && ((Pc = X.debounceRendering) || lg)($r);
64391
64394
  }
64392
64395
  function $r() {
64393
64396
  for (var n; $r.__r = mt.length; ) n = mt.sort(function(e, i) {
64394
64397
  return e.__v.__b - i.__v.__b;
64395
64398
  }), mt = [], n.some(function(e) {
64396
64399
  var i, t, r, s, a, A;
64397
- e.__d && (a = (s = (i = e).__v).__e, (A = i.__P) && (t = [], (r = Xn({}, s)).__v = s.__v + 1, zo(A, s, r, i.__n, A.ownerSVGElement !== void 0, s.__h != null ? [
64400
+ e.__d && (a = (s = (i = e).__v).__e, (A = i.__P) && (t = [], (r = Un({}, s)).__v = s.__v + 1, zo(A, s, r, i.__n, A.ownerSVGElement !== void 0, s.__h != null ? [
64398
64401
  a
64399
64402
  ] : null, t, a ?? Zi(s), s.__h), wg(t, s), s.__e != a && gg(s)));
64400
64403
  });
@@ -64442,7 +64445,7 @@ function J8(n, e, i, t, r) {
64442
64445
  for (s in e) r && typeof e[s] != "function" || s === "children" || s === "key" || s === "value" || s === "checked" || i[s] === e[s] || ns(n, s, e[s], i[s], t);
64443
64446
  }
64444
64447
  function Mc(n, e, i) {
64445
- e[0] === "-" ? n.setProperty(e, i) : n[e] = i == null ? "" : typeof i != "number" || U8.test(e) ? i : i + "px";
64448
+ e[0] === "-" ? n.setProperty(e, i) : n[e] = i == null ? "" : typeof i != "number" || X8.test(e) ? i : i + "px";
64446
64449
  }
64447
64450
  function ns(n, e, i, t, r) {
64448
64451
  var s;
@@ -64464,20 +64467,20 @@ function ns(n, e, i, t, r) {
64464
64467
  }
64465
64468
  }
64466
64469
  function Tc(n) {
64467
- this.l[n.type + !1](U.event ? U.event(n) : n);
64470
+ this.l[n.type + !1](X.event ? X.event(n) : n);
64468
64471
  }
64469
64472
  function jc(n) {
64470
- this.l[n.type + !0](U.event ? U.event(n) : n);
64473
+ this.l[n.type + !0](X.event ? X.event(n) : n);
64471
64474
  }
64472
64475
  function zo(n, e, i, t, r, s, a, A, o) {
64473
64476
  var f, d, c, l, h, g, b, p, y, m, v, C = e.type;
64474
64477
  if (e.constructor !== void 0) return null;
64475
64478
  i.__h != null && (o = i.__h, A = e.__e = i.__e, e.__h = null, s = [
64476
64479
  A
64477
- ]), (f = U.__b) && f(e);
64480
+ ]), (f = X.__b) && f(e);
64478
64481
  try {
64479
64482
  e: if (typeof C == "function") {
64480
- if (p = e.props, y = (f = C.contextType) && t[f.__c], m = f ? y ? y.props.value : f.__ : t, i.__c ? b = (d = e.__c = i.__c).__ = d.__E : ("prototype" in C && C.prototype.render ? e.__c = d = new C(p, m) : (e.__c = d = new mn(p, m), d.constructor = C, d.render = Z8), y && y.sub(d), d.props = p, d.state || (d.state = {}), d.context = m, d.__n = t, c = d.__d = !0, d.__h = []), d.__s == null && (d.__s = d.state), C.getDerivedStateFromProps != null && (d.__s == d.state && (d.__s = Xn({}, d.__s)), Xn(d.__s, C.getDerivedStateFromProps(p, d.__s))), l = d.props, h = d.state, c) C.getDerivedStateFromProps == null && d.componentWillMount != null && d.componentWillMount(), d.componentDidMount != null && d.__h.push(d.componentDidMount);
64483
+ if (p = e.props, y = (f = C.contextType) && t[f.__c], m = f ? y ? y.props.value : f.__ : t, i.__c ? b = (d = e.__c = i.__c).__ = d.__E : ("prototype" in C && C.prototype.render ? e.__c = d = new C(p, m) : (e.__c = d = new mn(p, m), d.constructor = C, d.render = Z8), y && y.sub(d), d.props = p, d.state || (d.state = {}), d.context = m, d.__n = t, c = d.__d = !0, d.__h = []), d.__s == null && (d.__s = d.state), C.getDerivedStateFromProps != null && (d.__s == d.state && (d.__s = Un({}, d.__s)), Un(d.__s, C.getDerivedStateFromProps(p, d.__s))), l = d.props, h = d.state, c) C.getDerivedStateFromProps == null && d.componentWillMount != null && d.componentWillMount(), d.componentDidMount != null && d.__h.push(d.componentDidMount);
64481
64484
  else {
64482
64485
  if (C.getDerivedStateFromProps == null && p !== l && d.componentWillReceiveProps != null && d.componentWillReceiveProps(p, m), !d.__e && d.shouldComponentUpdate != null && d.shouldComponentUpdate(p, d.__s, m) === !1 || e.__v === i.__v) {
64483
64486
  d.props = p, d.state = d.__s, e.__v !== i.__v && (d.__d = !1), d.__v = e, e.__e = i.__e, e.__k = i.__k, e.__k.forEach(function(x) {
@@ -64489,23 +64492,23 @@ function zo(n, e, i, t, r, s, a, A, o) {
64489
64492
  d.componentDidUpdate(l, h, g);
64490
64493
  });
64491
64494
  }
64492
- d.context = m, d.props = p, d.state = d.__s, (f = U.__r) && f(e), d.__d = !1, d.__v = e, d.__P = n, f = d.render(d.props, d.state, d.context), d.state = d.__s, d.getChildContext != null && (t = Xn(Xn({}, t), d.getChildContext())), c || d.getSnapshotBeforeUpdate == null || (g = d.getSnapshotBeforeUpdate(l, h)), v = f != null && f.type === Ki && f.key == null ? f.props.children : f, mg(n, Array.isArray(v) ? v : [
64495
+ d.context = m, d.props = p, d.state = d.__s, (f = X.__r) && f(e), d.__d = !1, d.__v = e, d.__P = n, f = d.render(d.props, d.state, d.context), d.state = d.__s, d.getChildContext != null && (t = Un(Un({}, t), d.getChildContext())), c || d.getSnapshotBeforeUpdate == null || (g = d.getSnapshotBeforeUpdate(l, h)), v = f != null && f.type === Ki && f.key == null ? f.props.children : f, mg(n, Array.isArray(v) ? v : [
64493
64496
  v
64494
64497
  ], e, i, t, r, s, a, A, o), d.base = e.__e, e.__h = null, d.__h.length && a.push(d), b && (d.__E = d.__ = null), d.__e = !1;
64495
64498
  } else s == null && e.__v === i.__v ? (e.__k = i.__k, e.__e = i.__e) : e.__e = K8(i.__e, e, i, t, r, s, a, o);
64496
- (f = U.diffed) && f(e);
64499
+ (f = X.diffed) && f(e);
64497
64500
  } catch (x) {
64498
- e.__v = null, (o || s != null) && (e.__e = A, e.__h = !!o, s[s.indexOf(A)] = null), U.__e(x, e, i);
64501
+ e.__v = null, (o || s != null) && (e.__e = A, e.__h = !!o, s[s.indexOf(A)] = null), X.__e(x, e, i);
64499
64502
  }
64500
64503
  }
64501
64504
  function wg(n, e) {
64502
- U.__c && U.__c(e, n), n.some(function(i) {
64505
+ X.__c && X.__c(e, n), n.some(function(i) {
64503
64506
  try {
64504
64507
  n = i.__h, i.__h = [], n.some(function(t) {
64505
64508
  t.call(i);
64506
64509
  });
64507
64510
  } catch (t) {
64508
- U.__e(t, i.__v);
64511
+ X.__e(t, i.__v);
64509
64512
  }
64510
64513
  });
64511
64514
  }
@@ -64539,16 +64542,16 @@ function bg(n, e, i) {
64539
64542
  try {
64540
64543
  typeof n == "function" ? n(e) : n.current = e;
64541
64544
  } catch (t) {
64542
- U.__e(t, i);
64545
+ X.__e(t, i);
64543
64546
  }
64544
64547
  }
64545
64548
  function yg(n, e, i) {
64546
64549
  var t, r;
64547
- if (U.unmount && U.unmount(n), (t = n.ref) && (t.current && t.current !== n.__e || bg(t, null, e)), (t = n.__c) != null) {
64550
+ if (X.unmount && X.unmount(n), (t = n.ref) && (t.current && t.current !== n.__e || bg(t, null, e)), (t = n.__c) != null) {
64548
64551
  if (t.componentWillUnmount) try {
64549
64552
  t.componentWillUnmount();
64550
64553
  } catch (s) {
64551
- U.__e(s, e);
64554
+ X.__e(s, e);
64552
64555
  }
64553
64556
  t.base = t.__P = null;
64554
64557
  }
@@ -64560,13 +64563,13 @@ function Z8(n, e, i) {
64560
64563
  }
64561
64564
  function kg(n, e, i) {
64562
64565
  var t, r, s;
64563
- U.__ && U.__(n, e), r = (t = typeof i == "function") ? null : i && i.__k || e.__k, s = [], zo(e, n = (!t && i || e).__k = MA(Ki, null, [
64566
+ X.__ && X.__(n, e), r = (t = typeof i == "function") ? null : i && i.__k || e.__k, s = [], zo(e, n = (!t && i || e).__k = MA(Ki, null, [
64564
64567
  n
64565
64568
  ]), r || _r, _r, e.ownerSVGElement !== void 0, !t && i ? [
64566
64569
  i
64567
64570
  ] : r ? null : e.firstChild ? Rs.call(e.childNodes) : null, s, !t && i ? i : r ? r.__e : e.firstChild, t), wg(s, n);
64568
64571
  }
64569
- Rs = ug.slice, U = {
64572
+ Rs = ug.slice, X = {
64570
64573
  __e: function(n, e) {
64571
64574
  for (var i, t, r; e = e.__; ) if ((i = e.__c) && !i.__) try {
64572
64575
  if ((t = i.constructor) && t.getDerivedStateFromError != null && (i.setState(t.getDerivedStateFromError(n)), r = i.__d), i.componentDidCatch != null && (i.componentDidCatch(n), r = i.__d), r) return i.__E = i;
@@ -64577,7 +64580,7 @@ Rs = ug.slice, U = {
64577
64580
  }
64578
64581
  }, cg = 0, mn.prototype.setState = function(n, e) {
64579
64582
  var i;
64580
- i = this.__s != null && this.__s !== this.state ? this.__s : this.__s = Xn({}, this.state), typeof n == "function" && (n = n(Xn({}, i), this.props)), n && Xn(i, n), n != null && this.__v && (e && this.__h.push(e), Oc(this));
64583
+ i = this.__s != null && this.__s !== this.state ? this.__s : this.__s = Un({}, this.state), typeof n == "function" && (n = n(Un({}, i), this.props)), n && Un(i, n), n != null && this.__v && (e && this.__h.push(e), Oc(this));
64581
64584
  }, mn.prototype.forceUpdate = function(n) {
64582
64585
  this.__v && (this.__e = !0, n && this.__h.push(n), Oc(this));
64583
64586
  }, mn.prototype.render = Ki, mt = [], lg = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, $r.__r = 0;
@@ -64603,7 +64606,7 @@ function W(n, e, i, t, r) {
64603
64606
  __self: r
64604
64607
  };
64605
64608
  if (typeof n == "function" && (s = n.defaultProps)) for (a in s) A[a] === void 0 && (A[a] = s[a]);
64606
- return U.vnode && U.vnode(o), o;
64609
+ return X.vnode && X.vnode(o), o;
64607
64610
  }
64608
64611
  function $8(n, e) {
64609
64612
  try {
@@ -65431,9 +65434,9 @@ class Og extends Sg {
65431
65434
  super(e);
65432
65435
  }
65433
65436
  }
65434
- Xe(Og, "Props", Pg);
65437
+ Ue(Og, "Props", Pg);
65435
65438
  typeof customElements < "u" && !customElements.get("em-emoji") && customElements.define("em-emoji", Og);
65436
- var Lc, FA = [], Rc = U.__b, Wc = U.__r, Yc = U.diffed, Hc = U.__c, Gc = U.unmount;
65439
+ var Lc, FA = [], Rc = X.__b, Wc = X.__r, Yc = X.diffed, Hc = X.__c, Gc = X.unmount;
65437
65440
  function bx() {
65438
65441
  var n;
65439
65442
  for (FA.sort(function(e, i) {
@@ -65441,25 +65444,25 @@ function bx() {
65441
65444
  }); n = FA.pop(); ) if (n.__P) try {
65442
65445
  n.__H.__h.forEach(Nr), n.__H.__h.forEach(LA), n.__H.__h = [];
65443
65446
  } catch (e) {
65444
- n.__H.__h = [], U.__e(e, n.__v);
65447
+ n.__H.__h = [], X.__e(e, n.__v);
65445
65448
  }
65446
65449
  }
65447
- U.__b = function(n) {
65450
+ X.__b = function(n) {
65448
65451
  Rc && Rc(n);
65449
- }, U.__r = function(n) {
65452
+ }, X.__r = function(n) {
65450
65453
  Wc && Wc(n);
65451
65454
  var e = n.__c.__H;
65452
65455
  e && (e.__h.forEach(Nr), e.__h.forEach(LA), e.__h = []);
65453
- }, U.diffed = function(n) {
65456
+ }, X.diffed = function(n) {
65454
65457
  Yc && Yc(n);
65455
65458
  var e = n.__c;
65456
- e && e.__H && e.__H.__h.length && (FA.push(e) !== 1 && Lc === U.requestAnimationFrame || ((Lc = U.requestAnimationFrame) || function(i) {
65459
+ e && e.__H && e.__H.__h.length && (FA.push(e) !== 1 && Lc === X.requestAnimationFrame || ((Lc = X.requestAnimationFrame) || function(i) {
65457
65460
  var t, r = function() {
65458
65461
  clearTimeout(s), zc && cancelAnimationFrame(t), setTimeout(i);
65459
65462
  }, s = setTimeout(r, 100);
65460
65463
  zc && (t = requestAnimationFrame(r));
65461
65464
  })(bx));
65462
- }, U.__c = function(n, e) {
65465
+ }, X.__c = function(n, e) {
65463
65466
  e.some(function(i) {
65464
65467
  try {
65465
65468
  i.__h.forEach(Nr), i.__h = i.__h.filter(function(t) {
@@ -65468,10 +65471,10 @@ U.__b = function(n) {
65468
65471
  } catch (t) {
65469
65472
  e.some(function(r) {
65470
65473
  r.__h && (r.__h = []);
65471
- }), e = [], U.__e(t, i.__v);
65474
+ }), e = [], X.__e(t, i.__v);
65472
65475
  }
65473
65476
  }), Hc && Hc(n, e);
65474
- }, U.unmount = function(n) {
65477
+ }, X.unmount = function(n) {
65475
65478
  Gc && Gc(n);
65476
65479
  var e, i = n.__c;
65477
65480
  i && i.__H && (i.__H.__.forEach(function(t) {
@@ -65480,7 +65483,7 @@ U.__b = function(n) {
65480
65483
  } catch (r) {
65481
65484
  e = r;
65482
65485
  }
65483
- }), e && U.__e(e, i.__v));
65486
+ }), e && X.__e(e, i.__v));
65484
65487
  };
65485
65488
  var zc = typeof requestAnimationFrame == "function";
65486
65489
  function Nr(n) {
@@ -65505,18 +65508,18 @@ function ts(n) {
65505
65508
  (ts.prototype = new mn()).isPureReactComponent = !0, ts.prototype.shouldComponentUpdate = function(n, e) {
65506
65509
  return qc(this.props, n) || qc(this.state, e);
65507
65510
  };
65508
- var Vc = U.__b;
65509
- U.__b = function(n) {
65511
+ var Vc = X.__b;
65512
+ X.__b = function(n) {
65510
65513
  n.type && n.type.__f && n.ref && (n.props.ref = n.ref, n.ref = null), Vc && Vc(n);
65511
65514
  };
65512
- var kx = U.__e;
65513
- U.__e = function(n, e, i) {
65515
+ var kx = X.__e;
65516
+ X.__e = function(n, e, i) {
65514
65517
  if (n.then) {
65515
65518
  for (var t, r = e; r = r.__; ) if ((t = r.__c) && t.__c) return e.__e == null && (e.__e = i.__e, e.__k = i.__k), t.__c(n, e);
65516
65519
  }
65517
65520
  kx(n, e, i);
65518
65521
  };
65519
- var Xc = U.unmount;
65522
+ var Uc = X.unmount;
65520
65523
  function Qa() {
65521
65524
  this.__u = 0, this.t = null, this.__b = null;
65522
65525
  }
@@ -65527,9 +65530,9 @@ function Mg(n) {
65527
65530
  function Ar() {
65528
65531
  this.u = null, this.o = null;
65529
65532
  }
65530
- U.unmount = function(n) {
65533
+ X.unmount = function(n) {
65531
65534
  var e = n.__c;
65532
- e && e.__R && e.__R(), e && n.__h === !0 && (n.type = null), Xc && Xc(n);
65535
+ e && e.__R && e.__R(), e && n.__h === !0 && (n.type = null), Uc && Uc(n);
65533
65536
  }, (Qa.prototype = new mn()).__c = function(n, e) {
65534
65537
  var i = e.__c, t = this;
65535
65538
  t.t == null && (t.t = []), t.t.push(i);
@@ -65578,7 +65581,7 @@ U.unmount = function(n) {
65578
65581
  r
65579
65582
  ];
65580
65583
  };
65581
- var Uc = function(n, e, i) {
65584
+ var Xc = function(n, e, i) {
65582
65585
  if (++i[1] === i[0] && n.o.delete(e), n.props.revealOrder && (n.props.revealOrder[0] !== "t" || !n.o.size)) for (i = n.u; i; ) {
65583
65586
  for (; i.length > 3; ) i.pop()();
65584
65587
  if (i[1] < i[0]) break;
@@ -65589,7 +65592,7 @@ var Uc = function(n, e, i) {
65589
65592
  var e = this, i = Mg(e.__v), t = e.o.get(n);
65590
65593
  return t[0]++, function(r) {
65591
65594
  var s = function() {
65592
- e.props.revealOrder ? (t.push(r), Uc(e, n, t)) : r();
65595
+ e.props.revealOrder ? (t.push(r), Xc(e, n, t)) : r();
65593
65596
  };
65594
65597
  i ? i(s) : s();
65595
65598
  };
@@ -65606,7 +65609,7 @@ var Uc = function(n, e, i) {
65606
65609
  }, Ar.prototype.componentDidUpdate = Ar.prototype.componentDidMount = function() {
65607
65610
  var n = this;
65608
65611
  this.o.forEach(function(e, i) {
65609
- Uc(n, i, e);
65612
+ Xc(n, i, e);
65610
65613
  });
65611
65614
  };
65612
65615
  var Cx = typeof Symbol < "u" && Symbol.for && Symbol.for("react.element") || 60103, xx = /^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/, Ex = typeof document < "u", Bx = function(n) {
@@ -65631,7 +65634,7 @@ mn.prototype.isReactComponent = {}, [
65631
65634
  }
65632
65635
  });
65633
65636
  });
65634
- var Jc = U.event;
65637
+ var Jc = X.event;
65635
65638
  function Dx() {
65636
65639
  }
65637
65640
  function Ix() {
@@ -65640,7 +65643,7 @@ function Ix() {
65640
65643
  function Nx() {
65641
65644
  return this.defaultPrevented;
65642
65645
  }
65643
- U.event = function(n) {
65646
+ X.event = function(n) {
65644
65647
  return Jc && (n = Jc(n)), n.persist = Dx, n.isPropagationStopped = Ix, n.isDefaultPrevented = Nx, n.nativeEvent = n;
65645
65648
  };
65646
65649
  var Kc = {
@@ -65648,8 +65651,8 @@ var Kc = {
65648
65651
  get: function() {
65649
65652
  return this.class;
65650
65653
  }
65651
- }, Zc = U.vnode;
65652
- U.vnode = function(n) {
65654
+ }, Zc = X.vnode;
65655
+ X.vnode = function(n) {
65653
65656
  var e = n.type, i = n.props, t = i;
65654
65657
  if (typeof e == "string") {
65655
65658
  var r = e.indexOf("-") === -1;
@@ -65665,8 +65668,8 @@ U.vnode = function(n) {
65665
65668
  }
65666
65669
  n.$$typeof = Cx, Zc && Zc(n);
65667
65670
  };
65668
- var _c = U.__r;
65669
- U.__r = function(n) {
65671
+ var _c = X.__r;
65672
+ X.__r = function(n) {
65670
65673
  _c && _c(n), n.__c;
65671
65674
  };
65672
65675
  const Sx = {
@@ -66410,25 +66413,25 @@ class Mx extends mn {
66410
66413
  });
66411
66414
  }
66412
66415
  constructor(e) {
66413
- super(), Xe(this, "darkMediaCallback", () => {
66416
+ super(), Ue(this, "darkMediaCallback", () => {
66414
66417
  this.props.theme == "auto" && this.setState({
66415
66418
  theme: this.darkMedia.matches ? "dark" : "light"
66416
66419
  });
66417
- }), Xe(this, "handleClickOutside", (i) => {
66420
+ }), Ue(this, "handleClickOutside", (i) => {
66418
66421
  const { element: t } = this.props;
66419
66422
  i.target != t && (this.state.showSkins && this.closeSkins(), this.props.onClickOutside && this.props.onClickOutside(i));
66420
- }), Xe(this, "handleBaseClick", (i) => {
66423
+ }), Ue(this, "handleBaseClick", (i) => {
66421
66424
  this.state.showSkins && (i.target.closest(".menu") || (i.preventDefault(), i.stopImmediatePropagation(), this.closeSkins()));
66422
- }), Xe(this, "handleBaseKeydown", (i) => {
66425
+ }), Ue(this, "handleBaseKeydown", (i) => {
66423
66426
  this.state.showSkins && i.key == "Escape" && (i.preventDefault(), i.stopImmediatePropagation(), this.closeSkins());
66424
- }), Xe(this, "handleSearchClick", () => {
66427
+ }), Ue(this, "handleSearchClick", () => {
66425
66428
  this.getEmojiByPos(this.state.pos) && this.setState({
66426
66429
  pos: [
66427
66430
  -1,
66428
66431
  -1
66429
66432
  ]
66430
66433
  });
66431
- }), Xe(this, "handleSearchInput", async () => {
66434
+ }), Ue(this, "handleSearchInput", async () => {
66432
66435
  const i = this.refs.searchInput.current;
66433
66436
  if (!i) return;
66434
66437
  const { value: t } = i, r = await Fi.search(t), s = () => {
@@ -66456,7 +66459,7 @@ class Mx extends mn {
66456
66459
  searchResults: A,
66457
66460
  pos: a
66458
66461
  }, s);
66459
- }), Xe(this, "handleSearchKeyDown", (i) => {
66462
+ }), Ue(this, "handleSearchKeyDown", (i) => {
66460
66463
  const t = i.currentTarget;
66461
66464
  switch (i.stopImmediatePropagation(), i.key) {
66462
66465
  case "ArrowLeft":
@@ -66497,16 +66500,16 @@ class Mx extends mn {
66497
66500
  i.preventDefault(), this.state.searchResults ? this.clearSearch() : this.unfocusSearch();
66498
66501
  break;
66499
66502
  }
66500
- }), Xe(this, "clearSearch", () => {
66503
+ }), Ue(this, "clearSearch", () => {
66501
66504
  const i = this.refs.searchInput.current;
66502
66505
  i && (i.value = "", i.focus(), this.handleSearchInput());
66503
- }), Xe(this, "handleCategoryClick", ({ category: i, i: t }) => {
66506
+ }), Ue(this, "handleCategoryClick", ({ category: i, i: t }) => {
66504
66507
  this.scrollTo(t == 0 ? {
66505
66508
  row: -1
66506
66509
  } : {
66507
66510
  categoryId: i.id
66508
66511
  });
66509
- }), Xe(this, "openSkins", (i) => {
66512
+ }), Ue(this, "openSkins", (i) => {
66510
66513
  const { currentTarget: t } = i, r = t.getBoundingClientRect();
66511
66514
  this.setState({
66512
66515
  showSkins: r
@@ -66543,7 +66546,7 @@ class qo extends wx {
66543
66546
  });
66544
66547
  }
66545
66548
  }
66546
- Xe(qo, "Props", xn);
66549
+ Ue(qo, "Props", xn);
66547
66550
  typeof customElements < "u" && !customElements.get("em-emoji-picker") && customElements.define("em-emoji-picker", qo);
66548
66551
  var Tg = {};
66549
66552
  Tg = `:host {
@@ -67411,7 +67414,7 @@ const Lx = N.div`
67411
67414
  handleEditMessage: A,
67412
67415
  handleReactionMessage: o
67413
67416
  }) => {
67414
- const { roomsList: f, activeRoomJID: d } = xi(), [c, l] = X(!1), h = oe(
67417
+ const { roomsList: f, activeRoomJID: d } = xi(), [c, l] = U(!1), h = oe(
67415
67418
  (k) => k.chatSettingStore.config
67416
67419
  ), g = () => {
67417
67420
  h != null && h.disableInteractions || r({ visible: !1, x: 0, y: 0 });
@@ -67613,7 +67616,7 @@ const Lx = N.div`
67613
67616
  overflow: hidden;
67614
67617
  text-overflow: ellipsis;
67615
67618
  cursor: pointer;
67616
- `, Xx = ({
67619
+ `, Ux = ({
67617
67620
  isUser: n,
67618
67621
  text: e,
67619
67622
  handleReplyMessage: i,
@@ -67626,7 +67629,7 @@ const Lx = N.div`
67626
67629
  configColor: t,
67627
67630
  children: /* @__PURE__ */ u("span", { children: e })
67628
67631
  }
67629
- ), Ux = N.div`
67632
+ ), Xx = N.div`
67630
67633
  display: flex;
67631
67634
  align-items: center;
67632
67635
  gap: 5px;
@@ -67642,7 +67645,7 @@ const Lx = N.div`
67642
67645
  display: flex;
67643
67646
  align-items: center;
67644
67647
  justify-content: center;
67645
- `, Kx = () => /* @__PURE__ */ P(Ux, { children: [
67648
+ `, Kx = () => /* @__PURE__ */ P(Xx, { children: [
67646
67649
  /* @__PURE__ */ u(Jx, { children: /* @__PURE__ */ u(g1, { width: 18, height: 18, fill: "#8C8C8C" }) }),
67647
67650
  /* @__PURE__ */ u("p", { style: { margin: 0, color: "#8C8C8C" }, children: "This message was deleted." })
67648
67651
  ] }), Zx = N.div`
@@ -67748,7 +67751,7 @@ const Lx = N.div`
67748
67751
  ] });
67749
67752
  }, lr = Hg(({ message: n, isUser: e, isReply: i }, t) => {
67750
67753
  var x, w, k, S, I, D, B, M, E;
67751
- const { client: r } = Ke(), { user: s, client: a } = Mn(), A = ke(), { config: o, langSource: f } = Mn(), [d, c] = o != null && o.disableInteractions ? [null, null] : X({
67754
+ const { client: r } = Ke(), { user: s, client: a } = Mn(), A = ke(), { config: o, langSource: f } = Mn(), [d, c] = o != null && o.disableInteractions ? [null, null] : U({
67752
67755
  visible: !1,
67753
67756
  x: 0,
67754
67757
  y: 0
@@ -67860,7 +67863,7 @@ const Lx = N.div`
67860
67863
  children: [
67861
67864
  !e && /* @__PURE__ */ u(F3, { isUser: e, color: (S = o == null ? void 0 : o.colors) == null ? void 0 : S.primary, children: n.user.name }),
67862
67865
  !i && n.mainMessage && /* @__PURE__ */ u(
67863
- Xx,
67866
+ Ux,
67864
67867
  {
67865
67868
  handleReplyMessage: y,
67866
67869
  isUser: e,
@@ -67938,7 +67941,7 @@ const Lx = N.div`
67938
67941
  ] });
67939
67942
  }), Qg = ({ config: n }) => {
67940
67943
  var g, b, p, y;
67941
- const e = ke(), [i, t] = X(""), [r, s] = X(""), [a, A] = X(!1), [o, f] = X({ email: "", password: "" }), d = () => {
67944
+ const e = ke(), [i, t] = U(""), [r, s] = U(""), [a, A] = U(!1), [o, f] = U({ email: "", password: "" }), d = () => {
67942
67945
  let m = "", v = "";
67943
67946
  return /\S+@\S+\.\S+/.test(i) || (m = "Invalid email format"), r.length < 6 && (v = "Password must be at least 6 characters long"), { emailError: m, passwordError: v };
67944
67947
  }, c = ie(async () => {
@@ -68204,7 +68207,7 @@ const Lx = N.div`
68204
68207
  sendMessage: d,
68205
68208
  sendMedia: c,
68206
68209
  sendEditMessage: l
68207
- } = Ag(), [h, g] = X(!1), [b, p] = X(!1), y = ie(
68210
+ } = Ag(), [h, g] = U(!1), [b, p] = U(!1), y = ie(
68208
68211
  async (B, M, E) => {
68209
68212
  var T;
68210
68213
  if (!h && !((T = a == null ? void 0 : a[B]) != null && T.historyComplete)) {
@@ -68389,7 +68392,7 @@ const Lx = N.div`
68389
68392
  ] })
68390
68393
  ] }) });
68391
68394
  }, oE = (n, e, i, t, r) => {
68392
- const [s, a] = X(!1), [A, o] = X(/* @__PURE__ */ new Set()), f = we(null);
68395
+ const [s, a] = U(!1), [A, o] = U(/* @__PURE__ */ new Set()), f = we(null);
68393
68396
  pe(() => {
68394
68397
  const d = async () => {
68395
68398
  var h, g;
@@ -68512,7 +68515,7 @@ const Lx = N.div`
68512
68515
  roomJID: r
68513
68516
  }) => {
68514
68517
  var Y, G;
68515
- const { user: s, activeModal: a, deleteModal: A } = Mn(), [o, f] = X(!1), [d, c] = X(!1), [l, h] = X(!1), [g, b] = X(!1);
68518
+ const { user: s, activeModal: a, deleteModal: A } = Mn(), [o, f] = U(!1), [d, c] = U(!1), [l, h] = U(!1), [g, b] = U(!1);
68516
68519
  pe(() => {
68517
68520
  const H = () => {
68518
68521
  b(window.innerWidth < 768);
@@ -68680,7 +68683,7 @@ const Lx = N.div`
68680
68683
  )
68681
68684
  ] });
68682
68685
  }, lE = ({ ...n }) => {
68683
- const [e, i] = X(!1), { user: t } = oe((a) => a.chatSettingStore), r = ie(async () => {
68686
+ const [e, i] = U(!1), { user: t } = oe((a) => a.chatSettingStore), r = ie(async () => {
68684
68687
  var a, A;
68685
68688
  try {
68686
68689
  const o = await Rh(