@ethora/chat-component 26.3.7 → 26.3.8

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
@@ -371,7 +371,7 @@ Selectors that return the entire state are almost certainly a mistake, as they w
371
371
  withTypes: () => n
372
372
  }), n;
373
373
  }
374
- var we = /* @__PURE__ */ X6(), is = {}, rs = {}, Jn = {}, Yu, kh;
374
+ var we = /* @__PURE__ */ X6(), ss = {}, as = {}, Jn = {}, Yu, kh;
375
375
  function Qd() {
376
376
  return kh || (kh = 1, Yu = class extends Error {
377
377
  constructor(t) {
@@ -657,15 +657,15 @@ function Js() {
657
657
  const e = K6(), t = xv(), n = Qd(), i = Z6(), r = ha(), s = $6();
658
658
  return Jn.EventEmitter = r, Jn.timeout = e, Jn.delay = t, Jn.TimeoutError = n, Jn.promise = i, Jn.Deferred = s, Jn;
659
659
  }
660
- var An = { exports: {} }, ss = {}, Nh;
660
+ var An = { exports: {} }, os = {}, Nh;
661
661
  function Iv() {
662
- return Nh || (Nh = 1, ss.detect = function(t) {
662
+ return Nh || (Nh = 1, os.detect = function(t) {
663
663
  return !(!t || t.replaceAll(String.raw`\20`, "").replaceAll(String.raw`\22`, "").replaceAll(String.raw`\26`, "").replaceAll(String.raw`\27`, "").replaceAll(String.raw`\2f`, "").replaceAll(String.raw`\3a`, "").replaceAll(String.raw`\3c`, "").replaceAll(String.raw`\3e`, "").replaceAll(String.raw`\40`, "").replaceAll(String.raw`\5c`, "").search(/[ "&'/:<>@\\]/g) === -1);
664
- }, ss.escape = function(t) {
664
+ }, os.escape = function(t) {
665
665
  return t === null ? null : t.replaceAll(/^\s+|\s+$/g, "").replaceAll("\\", String.raw`\5c`).replaceAll(" ", String.raw`\20`).replaceAll('"', String.raw`\22`).replaceAll("&", String.raw`\26`).replaceAll("'", String.raw`\27`).replaceAll("/", String.raw`\2f`).replaceAll(":", String.raw`\3a`).replaceAll("<", String.raw`\3c`).replaceAll(">", String.raw`\3e`).replaceAll("@", String.raw`\40`);
666
- }, ss.unescape = function(t) {
666
+ }, os.unescape = function(t) {
667
667
  return t === null ? null : t.replaceAll(String.raw`\20`, " ").replaceAll(String.raw`\22`, '"').replaceAll(String.raw`\26`, "&").replaceAll(String.raw`\27`, "'").replaceAll(String.raw`\2f`, "/").replaceAll(String.raw`\3a`, ":").replaceAll(String.raw`\3c`, "<").replaceAll(String.raw`\3e`, ">").replaceAll(String.raw`\40`, "@").replaceAll(String.raw`\5c`, "\\");
668
- }), ss;
668
+ }), os;
669
669
  }
670
670
  var Vu, Dh;
671
671
  function Sv() {
@@ -1539,10 +1539,10 @@ function sE() {
1539
1539
  }
1540
1540
  var Gh;
1541
1541
  function aE() {
1542
- if (Gh) return rs;
1542
+ if (Gh) return as;
1543
1543
  Gh = 1;
1544
1544
  const e = sE(), t = kn(), n = WA();
1545
- return rs.Client = e, rs.xml = t, rs.jid = n, rs;
1545
+ return as.Client = e, as.xml = t, as.jid = n, as;
1546
1546
  }
1547
1547
  var oc, zh;
1548
1548
  function oE() {
@@ -1594,12 +1594,12 @@ function AE() {
1594
1594
  const uE = {}, cE = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1595
1595
  __proto__: null,
1596
1596
  default: uE
1597
- }, Symbol.toStringTag, { value: "Module" })), vr = /* @__PURE__ */ N6(cE);
1597
+ }, Symbol.toStringTag, { value: "Module" })), wr = /* @__PURE__ */ N6(cE);
1598
1598
  var uc, Vh;
1599
1599
  function lE() {
1600
1600
  if (Vh) return uc;
1601
1601
  Vh = 1;
1602
- const e = vr, t = globalThis.WebSocket || e, n = ha(), i = "ECONNERROR";
1602
+ const e = wr, t = globalThis.WebSocket || e, n = ha(), i = "ECONNERROR";
1603
1603
  class r extends n {
1604
1604
  constructor() {
1605
1605
  super(), this.listeners = /* @__PURE__ */ Object.create(null);
@@ -1961,7 +1961,7 @@ function CE() {
1961
1961
  };
1962
1962
  }, Ec;
1963
1963
  }
1964
- var as = { exports: {} }, Cc = {}, Tc, um;
1964
+ var As = { exports: {} }, Cc = {}, Tc, um;
1965
1965
  function TE() {
1966
1966
  if (um) return Tc;
1967
1967
  um = 1;
@@ -1999,7 +1999,7 @@ var lm;
1999
1999
  function IE() {
2000
2000
  if (lm) return Cc;
2001
2001
  lm = 1;
2002
- const e = globalThis.fetch || vr, t = TE(), n = xE().compare;
2002
+ const e = globalThis.fetch || wr, t = TE(), n = xE().compare;
2003
2003
  function i(r) {
2004
2004
  return e(`https://${r}/.well-known/host-meta`).then((s) => s.text()).then((s) => t(s).getChildren("Link").filter(
2005
2005
  (a) => [
@@ -2018,15 +2018,15 @@ function IE() {
2018
2018
  }
2019
2019
  var fm;
2020
2020
  function SE() {
2021
- if (fm) return as.exports;
2021
+ if (fm) return As.exports;
2022
2022
  fm = 1;
2023
- const e = vr, t = IE();
2024
- return as.exports = function(...i) {
2023
+ const e = wr, t = IE();
2024
+ return As.exports = function(...i) {
2025
2025
  return Promise.all([
2026
2026
  e.resolve ? e.resolve(...i) : Promise.resolve([]),
2027
2027
  t.resolve(...i)
2028
2028
  ]).then(([r, s]) => [...r, ...s]);
2029
- }, e.resolve && (as.exports.dns = e), as.exports.http = t, as.exports;
2029
+ }, e.resolve && (As.exports.dns = e), As.exports.http = t, As.exports;
2030
2030
  }
2031
2031
  var Ic, dm;
2032
2032
  function NE() {
@@ -2105,7 +2105,7 @@ function BE() {
2105
2105
  }
2106
2106
  return Sc = t, Sc;
2107
2107
  }
2108
- var ks = { exports: {} }, Es = { exports: {} }, RE = Es.exports, pm;
2108
+ var Cs = { exports: {} }, Ts = { exports: {} }, RE = Ts.exports, pm;
2109
2109
  function _E() {
2110
2110
  return pm || (pm = 1, (function(e, t) {
2111
2111
  (function(n, i) {
@@ -2126,9 +2126,9 @@ function _E() {
2126
2126
  return null;
2127
2127
  }, i.exports = r;
2128
2128
  });
2129
- })(Es, Es.exports)), Es.exports;
2129
+ })(Ts, Ts.exports)), Ts.exports;
2130
2130
  }
2131
- var PE = ks.exports, gm;
2131
+ var PE = Cs.exports, gm;
2132
2132
  function ME() {
2133
2133
  return gm || (gm = 1, (function(e, t) {
2134
2134
  (function(n, i) {
@@ -2140,7 +2140,7 @@ function ME() {
2140
2140
  })(PE, function(n, i, r) {
2141
2141
  n = i.exports = r, n.Factory = r;
2142
2142
  });
2143
- })(ks, ks.exports)), ks.exports;
2143
+ })(Cs, Cs.exports)), Cs.exports;
2144
2144
  }
2145
2145
  var Nc, bm;
2146
2146
  function OE() {
@@ -2309,7 +2309,7 @@ function QE() {
2309
2309
  }), u;
2310
2310
  }, Rc;
2311
2311
  }
2312
- var Cs = { exports: {} }, Ts = { exports: {} }, UE = Ts.exports, km;
2312
+ var xs = { exports: {} }, Is = { exports: {} }, UE = Is.exports, km;
2313
2313
  function HE() {
2314
2314
  return km || (km = 1, (function(e, t) {
2315
2315
  (function(n, i) {
@@ -2322,9 +2322,9 @@ function HE() {
2322
2322
  }, r.prototype.challenge = function(s) {
2323
2323
  }, i.exports = r;
2324
2324
  });
2325
- })(Ts, Ts.exports)), Ts.exports;
2325
+ })(Is, Is.exports)), Is.exports;
2326
2326
  }
2327
- var jE = Cs.exports, Em;
2327
+ var jE = xs.exports, Em;
2328
2328
  function YE() {
2329
2329
  return Em || (Em = 1, (function(e, t) {
2330
2330
  (function(n, i) {
@@ -2336,7 +2336,7 @@ function YE() {
2336
2336
  })(jE, function(n, i, r) {
2337
2337
  n = i.exports = r, n.Mechanism = r;
2338
2338
  });
2339
- })(Cs, Cs.exports)), Cs.exports;
2339
+ })(xs, xs.exports)), xs.exports;
2340
2340
  }
2341
2341
  var _c, Cm;
2342
2342
  function WE() {
@@ -2347,7 +2347,7 @@ function WE() {
2347
2347
  n.use(e);
2348
2348
  }, _c;
2349
2349
  }
2350
- var xs = { exports: {} }, Is = { exports: {} }, GE = Is.exports, Tm;
2350
+ var Ss = { exports: {} }, Ns = { exports: {} }, GE = Ns.exports, Tm;
2351
2351
  function zE() {
2352
2352
  return Tm || (Tm = 1, (function(e, t) {
2353
2353
  (function(n, i) {
@@ -2362,9 +2362,9 @@ function zE() {
2362
2362
  return this;
2363
2363
  }, i.exports = r;
2364
2364
  });
2365
- })(Is, Is.exports)), Is.exports;
2365
+ })(Ns, Ns.exports)), Ns.exports;
2366
2366
  }
2367
- var qE = xs.exports, xm;
2367
+ var qE = Ss.exports, xm;
2368
2368
  function VE() {
2369
2369
  return xm || (xm = 1, (function(e, t) {
2370
2370
  (function(n, i) {
@@ -2376,7 +2376,7 @@ function VE() {
2376
2376
  })(qE, function(n, i, r) {
2377
2377
  n = i.exports = r, n.Mechanism = r;
2378
2378
  });
2379
- })(xs, xs.exports)), xs.exports;
2379
+ })(Ss, Ss.exports)), Ss.exports;
2380
2380
  }
2381
2381
  var Pc, Im;
2382
2382
  function JE() {
@@ -2389,7 +2389,7 @@ function JE() {
2389
2389
  }
2390
2390
  var Sm;
2391
2391
  function XE() {
2392
- if (Sm) return is;
2392
+ if (Sm) return ss;
2393
2393
  Sm = 1;
2394
2394
  const { xml: e, jid: t, Client: n } = aE(), i = oE(), r = AE(), s = hE(), a = bE(), o = yE(), A = EE(), u = CE(), c = NE(), l = OE(), f = LE(), d = FE(), h = QE(), p = WE(), v = JE();
2395
2395
  function y(C = {}) {
@@ -2424,7 +2424,7 @@ function XE() {
2424
2424
  mechanisms: Y
2425
2425
  });
2426
2426
  }
2427
- return is.xml = e, is.jid = t, is.client = y, is;
2427
+ return ss.xml = e, ss.jid = t, ss.client = y, ss;
2428
2428
  }
2429
2429
  var ce = XE();
2430
2430
  const KE = /* @__PURE__ */ fi(ce);
@@ -2624,7 +2624,7 @@ const Dm = (e) => (e || "").replace(/^https?:\/\//, "").replace(/\/.*$/, "").tri
2624
2624
  }, iC = (e) => (e?.host || tC(e?.devServer) || "").trim().toLowerCase(), rC = (e, t) => {
2625
2625
  const n = (e || "").trim().toLowerCase(), i = iC(t);
2626
2626
  return i ? `${n}@${i}` : n;
2627
- }, sC = (e, t) => e ? e.includes("@") ? e : t ? `${e}@${t}` : e : "", aC = {}, oC = aC || {}, ma = nC(oC), AC = ma.apiUrl, nA = ma.webUrl, uC = ma.xmppBaseDomain, Mv = uC, Xs = ma.xmppConference, Ss = ma.service, cC = (e, t, n, i, r, s, a, o, A, u, c, l, f) => {
2627
+ }, sC = (e, t) => e ? e.includes("@") ? e : t ? `${e}@${t}` : e : "", aC = {}, oC = aC || {}, ma = nC(oC), AC = ma.apiUrl, nA = ma.webUrl, uC = ma.xmppBaseDomain, Mv = uC, Xs = ma.xmppConference, Ds = ma.service, cC = (e, t, n, i, r, s, a, o, A, u, c, l, f) => {
2628
2628
  const d = f || (A ? `send-reply-message-${Date.now().toString()}` : `send-text-message-${Date.now().toString()}`);
2629
2629
  try {
2630
2630
  const h = ce.xml(
@@ -2635,7 +2635,7 @@ const Dm = (e) => (e || "").replace(/^https?:\/\//, "").replace(/\/.*$/, "").tri
2635
2635
  id: d
2636
2636
  },
2637
2637
  ce.xml("data", {
2638
- xmlns: l || Ss,
2638
+ xmlns: l || Ds,
2639
2639
  senderFirstName: n,
2640
2640
  senderLastName: i,
2641
2641
  fullName: `${n} ${i}`,
@@ -2853,7 +2853,7 @@ function pC() {
2853
2853
  }
2854
2854
  return T;
2855
2855
  }, v = function(b, T) {
2856
- var B = vr, P = vr.Buffer, x = T ? "sha224" : "sha256", _;
2856
+ var B = wr, P = wr.Buffer, x = T ? "sha224" : "sha256", _;
2857
2857
  P.from && !i.JS_SHA256_NO_BUFFER_FROM ? _ = P.from : _ = function(N) {
2858
2858
  return new P(N);
2859
2859
  };
@@ -3292,7 +3292,7 @@ function St(e, ...t) {
3292
3292
  `[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`
3293
3293
  );
3294
3294
  }
3295
- var yr = Object.getPrototypeOf;
3295
+ var kr = Object.getPrototypeOf;
3296
3296
  function Oi(e) {
3297
3297
  return !!e && !!e[Ut];
3298
3298
  }
@@ -3303,7 +3303,7 @@ var IC = Object.prototype.constructor.toString();
3303
3303
  function Uv(e) {
3304
3304
  if (!e || typeof e != "object")
3305
3305
  return !1;
3306
- const t = yr(e);
3306
+ const t = kr(e);
3307
3307
  if (t === null)
3308
3308
  return !0;
3309
3309
  const n = Object.hasOwnProperty.call(t, "constructor") && t.constructor;
@@ -3359,9 +3359,9 @@ function yf(e, t) {
3359
3359
  value: e[a]
3360
3360
  });
3361
3361
  }
3362
- return Object.create(yr(e), i);
3362
+ return Object.create(kr(e), i);
3363
3363
  } else {
3364
- const i = yr(e);
3364
+ const i = kr(e);
3365
3365
  if (i !== null && n)
3366
3366
  return { ...e };
3367
3367
  const r = Object.create(i);
@@ -3549,7 +3549,7 @@ var Gd = {
3549
3549
  St(11);
3550
3550
  },
3551
3551
  getPrototypeOf(e) {
3552
- return yr(e.base_);
3552
+ return kr(e.base_);
3553
3553
  },
3554
3554
  setPrototypeOf() {
3555
3555
  St(12);
@@ -3581,12 +3581,12 @@ function PC(e, t, n) {
3581
3581
  function Yv(e, t) {
3582
3582
  if (!(t in e))
3583
3583
  return;
3584
- let n = yr(e);
3584
+ let n = kr(e);
3585
3585
  for (; n; ) {
3586
3586
  const i = Object.getOwnPropertyDescriptor(n, t);
3587
3587
  if (i)
3588
3588
  return i;
3589
- n = yr(n);
3589
+ n = kr(n);
3590
3590
  }
3591
3591
  }
3592
3592
  function Ef(e) {
@@ -3779,18 +3779,18 @@ It is disabled in production builds, so you don't need to worry about that.`);
3779
3779
  }
3780
3780
  };
3781
3781
  }
3782
- var Jv = class Ns extends Array {
3782
+ var Jv = class Bs extends Array {
3783
3783
  constructor(...t) {
3784
- super(...t), Object.setPrototypeOf(this, Ns.prototype);
3784
+ super(...t), Object.setPrototypeOf(this, Bs.prototype);
3785
3785
  }
3786
3786
  static get [Symbol.species]() {
3787
- return Ns;
3787
+ return Bs;
3788
3788
  }
3789
3789
  concat(...t) {
3790
3790
  return super.concat.apply(this, t);
3791
3791
  }
3792
3792
  prepend(...t) {
3793
- return t.length === 1 && Array.isArray(t[0]) ? new Ns(...t[0].concat(this)) : new Ns(...t.concat(this));
3793
+ return t.length === 1 && Array.isArray(t[0]) ? new Bs(...t[0].concat(this)) : new Bs(...t.concat(this));
3794
3794
  }
3795
3795
  };
3796
3796
  function Qm(e) {
@@ -4871,7 +4871,7 @@ const S9 = 1e11, N9 = 1e14, D9 = 1e17, jc = (e) => !Number.isFinite(e) || e <= 0
4871
4871
  const s = _9(r);
4872
4872
  s && i.set(s, uA(r, n));
4873
4873
  }), [...i.values()].sort(If);
4874
- }, os = (e, t) => {
4874
+ }, us = (e, t) => {
4875
4875
  const n = (e || []).filter((a) => a?.id !== "delimiter-new"), i = Ze(t);
4876
4876
  if (i <= 0 || n.length === 0)
4877
4877
  return n;
@@ -4939,7 +4939,7 @@ const S9 = 1e11, N9 = 1e14, D9 = 1e17, jc = (e) => !Number.isFinite(e) || e <= 0
4939
4939
  i || [],
4940
4940
  e.usersSet
4941
4941
  ), s = e.activeRoomJID === n ? 0 : e.rooms[n].lastViewedTimestamp;
4942
- e.rooms[n].messages = os(
4942
+ e.rooms[n].messages = us(
4943
4943
  r,
4944
4944
  s
4945
4945
  );
@@ -4951,7 +4951,7 @@ const S9 = 1e11, N9 = 1e14, D9 = 1e17, jc = (e) => !Number.isFinite(e) || e <= 0
4951
4951
  const s = [...(i || []).map(
4952
4952
  (o) => uA(o, e.usersSet)
4953
4953
  )].sort(If), a = e.activeRoomJID === n ? 0 : e.rooms[n].lastViewedTimestamp;
4954
- e.rooms[n].messages = os(
4954
+ e.rooms[n].messages = us(
4955
4955
  s,
4956
4956
  a
4957
4957
  );
@@ -5046,7 +5046,7 @@ const S9 = 1e11, N9 = 1e14, D9 = 1e17, jc = (e) => !Number.isFinite(e) || e <= 0
5046
5046
  l
5047
5047
  );
5048
5048
  }
5049
- e.rooms[n].messages = os(
5049
+ e.rooms[n].messages = us(
5050
5050
  [...e.rooms[n].messages].sort(If),
5051
5051
  e.activeRoomJID === n ? 0 : e.rooms[n].lastViewedTimestamp
5052
5052
  );
@@ -5092,7 +5092,7 @@ const S9 = 1e11, N9 = 1e14, D9 = 1e17, jc = (e) => !Number.isFinite(e) || e <= 0
5092
5092
  const { chatJID: n, timestamp: i } = t.payload;
5093
5093
  if (e.rooms[n]) {
5094
5094
  const r = Ze(i);
5095
- e.rooms[n].lastViewedTimestamp = r, e.activeRoomJID === n && (e.rooms[n].unreadMessages = 0), e.rooms[n].messages = os(
5095
+ e.rooms[n].lastViewedTimestamp = r, e.activeRoomJID === n && (e.rooms[n].unreadMessages = 0), e.rooms[n].messages = us(
5096
5096
  e.rooms[n].messages,
5097
5097
  e.activeRoomJID === n ? 0 : r
5098
5098
  ), e.rooms[n].unreadCapped = !1;
@@ -5155,7 +5155,7 @@ const S9 = 1e11, N9 = 1e14, D9 = 1e17, jc = (e) => !Number.isFinite(e) || e <= 0
5155
5155
  i.messages,
5156
5156
  e.usersSet
5157
5157
  );
5158
- r.messages = os(
5158
+ r.messages = us(
5159
5159
  s,
5160
5160
  e.activeRoomJID === i.jid ? 0 : r.lastViewedTimestamp
5161
5161
  );
@@ -5188,7 +5188,7 @@ const {
5188
5188
  deleteAllRooms: EJ,
5189
5189
  setRoomMessages: f2,
5190
5190
  replaceRoomMessages: P9,
5191
- addRoomMessage: cr,
5191
+ addRoomMessage: fr,
5192
5192
  deleteRoomMessage: Xd,
5193
5193
  setEditAction: li,
5194
5194
  editRoomMessage: M9,
@@ -5206,7 +5206,7 @@ const {
5206
5206
  updateRoom: mt,
5207
5207
  updateUsersSet: Zd,
5208
5208
  setOpenReportModal: h2,
5209
- insertUsers: wr,
5209
+ insertUsers: Er,
5210
5210
  setPushSubscriptionStatus: za,
5211
5211
  clearPushSubscriptions: TJ,
5212
5212
  applyRoomsPreloadBatch: qa
@@ -5852,7 +5852,7 @@ function hi() {
5852
5852
  var s;
5853
5853
  if (typeof window < "u" && window.crypto && (s = window.crypto), typeof self < "u" && self.crypto && (s = self.crypto), typeof globalThis < "u" && globalThis.crypto && (s = globalThis.crypto), !s && typeof window < "u" && window.msCrypto && (s = window.msCrypto), !s && typeof window < "u" && window.crypto && (s = window.crypto), !s && typeof yT == "function")
5854
5854
  try {
5855
- s = vr;
5855
+ s = wr;
5856
5856
  } catch {
5857
5857
  }
5858
5858
  var a = function() {
@@ -7293,16 +7293,16 @@ function FT() {
7293
7293
  })(Xa, Xa.exports)), Xa.exports;
7294
7294
  }
7295
7295
  var QT = FT();
7296
- const UT = /* @__PURE__ */ fi(QT), As = (e) => new Error(`redux-persist-transform-encrypt: ${e}`), HT = (e, t) => {
7296
+ const UT = /* @__PURE__ */ fi(QT), cs = (e) => new Error(`redux-persist-transform-encrypt: ${e}`), HT = (e, t) => {
7297
7297
  if (typeof e > "u")
7298
- throw As("No configuration provided.");
7298
+ throw cs("No configuration provided.");
7299
7299
  const { secretKey: n } = e;
7300
7300
  if (!n)
7301
- throw As("No secret key provided.");
7301
+ throw cs("No secret key provided.");
7302
7302
  const i = typeof e.onError == "function" ? e.onError : console.warn;
7303
7303
  return ZA((r, s) => f0.encrypt(UT(r), n).toString(), (r, s) => {
7304
7304
  if (typeof r != "string")
7305
- return i(As("Expected outbound state to be a string."));
7305
+ return i(cs("Expected outbound state to be a string."));
7306
7306
  try {
7307
7307
  const a = f0.decrypt(r, n).toString(LT.enc.Utf8);
7308
7308
  if (!a)
@@ -7310,10 +7310,10 @@ const UT = /* @__PURE__ */ fi(QT), As = (e) => new Error(`redux-persist-transfor
7310
7310
  try {
7311
7311
  return JSON.parse(a);
7312
7312
  } catch {
7313
- return i(As("Failed to parse state as JSON."));
7313
+ return i(cs("Failed to parse state as JSON."));
7314
7314
  }
7315
7315
  } catch {
7316
- return i(As("Could not decrypt state. Please verify that you are using the correct secret key."));
7316
+ return i(cs("Could not decrypt state. Please verify that you are using the correct secret key."));
7317
7317
  }
7318
7318
  }, t);
7319
7319
  }, Ka = (e) => +e.slice(0, 13) || null, jT = (e) => (t) => (n) => {
@@ -7482,7 +7482,7 @@ const UT = /* @__PURE__ */ fi(QT), As = (e) => new Error(`redux-persist-transfor
7482
7482
  // .concat(testMiddleware)
7483
7483
  // .concat(debugMiddleware)
7484
7484
  // .concat(actionLoggerMiddleware),
7485
- }), lr = gT(K);
7485
+ }), dr = gT(K);
7486
7486
  try {
7487
7487
  Z.always("[EthoraChatComponent] version:", YT);
7488
7488
  } catch {
@@ -8136,7 +8136,7 @@ function M2(e) {
8136
8136
  const t = e.trim().toLowerCase();
8137
8137
  return t === "true" ? !0 : t === "false" ? !1 : null;
8138
8138
  }
8139
- function kr(e) {
8139
+ function Cr(e) {
8140
8140
  if (!e) return null;
8141
8141
  const t = Number(e.trim());
8142
8142
  return isNaN(t) ? null : t;
@@ -8149,9 +8149,9 @@ function O2(e, t) {
8149
8149
  const { toString: mx } = Object.prototype, { getPrototypeOf: i1 } = Object, { iterator: $A, toStringTag: L2 } = Symbol, eu = /* @__PURE__ */ ((e) => (t) => {
8150
8150
  const n = mx.call(t);
8151
8151
  return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
8152
- })(/* @__PURE__ */ Object.create(null)), an = (e) => (e = e.toLowerCase(), (t) => eu(t) === e), tu = (e) => (t) => typeof t === e, { isArray: Hr } = Array, Er = tu("undefined");
8152
+ })(/* @__PURE__ */ Object.create(null)), an = (e) => (e = e.toLowerCase(), (t) => eu(t) === e), tu = (e) => (t) => typeof t === e, { isArray: Yr } = Array, Tr = tu("undefined");
8153
8153
  function ba(e) {
8154
- return e !== null && !Er(e) && e.constructor !== null && !Er(e.constructor) && Dt(e.constructor.isBuffer) && e.constructor.isBuffer(e);
8154
+ return e !== null && !Tr(e) && e.constructor !== null && !Tr(e.constructor) && Dt(e.constructor.isBuffer) && e.constructor.isBuffer(e);
8155
8155
  }
8156
8156
  const F2 = an("ArrayBuffer");
8157
8157
  function px(e) {
@@ -8189,7 +8189,7 @@ function ya(e, t, { allOwnKeys: n = !1 } = {}) {
8189
8189
  if (e === null || typeof e > "u")
8190
8190
  return;
8191
8191
  let i, r;
8192
- if (typeof e != "object" && (e = [e]), Hr(e))
8192
+ if (typeof e != "object" && (e = [e]), Yr(e))
8193
8193
  for (i = 0, r = e.length; i < r; i++)
8194
8194
  t.call(null, e[i], i, e);
8195
8195
  else {
@@ -8212,13 +8212,13 @@ function U2(e, t) {
8212
8212
  return r;
8213
8213
  return null;
8214
8214
  }
8215
- const Ei = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : window, H2 = (e) => !Er(e) && e !== Ei;
8215
+ const Ei = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : window, H2 = (e) => !Tr(e) && e !== Ei;
8216
8216
  function Df() {
8217
8217
  const { caseless: e, skipUndefined: t } = H2(this) && this || {}, n = {}, i = (r, s) => {
8218
8218
  if (s === "__proto__" || s === "constructor" || s === "prototype")
8219
8219
  return;
8220
8220
  const a = e && U2(n, s) || s;
8221
- _o(n[a]) && _o(r) ? n[a] = Df(n[a], r) : _o(r) ? n[a] = Df({}, r) : Hr(r) ? n[a] = r.slice() : (!t || !Er(r)) && (n[a] = r);
8221
+ _o(n[a]) && _o(r) ? n[a] = Df(n[a], r) : _o(r) ? n[a] = Df({}, r) : Yr(r) ? n[a] = r.slice() : (!t || !Tr(r)) && (n[a] = r);
8222
8222
  };
8223
8223
  for (let r = 0, s = arguments.length; r < s; r++)
8224
8224
  arguments[r] && ya(arguments[r], i);
@@ -8265,7 +8265,7 @@ const Mx = (e, t, n, { allOwnKeys: i } = {}) => (ya(
8265
8265
  return i !== -1 && i === n;
8266
8266
  }, Ux = (e) => {
8267
8267
  if (!e) return null;
8268
- if (Hr(e)) return e;
8268
+ if (Yr(e)) return e;
8269
8269
  let t = e.length;
8270
8270
  if (!Q2(t)) return null;
8271
8271
  const n = new Array(t);
@@ -8314,7 +8314,7 @@ const Mx = (e, t, n, { allOwnKeys: i } = {}) => (ya(
8314
8314
  n[s] = !0;
8315
8315
  });
8316
8316
  };
8317
- return Hr(e) ? i(e) : i(String(e).split(t)), n;
8317
+ return Yr(e) ? i(e) : i(String(e).split(t)), n;
8318
8318
  }, Jx = () => {
8319
8319
  }, Xx = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
8320
8320
  function Kx(e) {
@@ -8329,10 +8329,10 @@ const Zx = (e) => {
8329
8329
  return i;
8330
8330
  if (!("toJSON" in i)) {
8331
8331
  t[r] = i;
8332
- const s = Hr(i) ? [] : {};
8332
+ const s = Yr(i) ? [] : {};
8333
8333
  return ya(i, (a, o) => {
8334
8334
  const A = n(a, r + 1);
8335
- !Er(A) && (s[o] = A);
8335
+ !Tr(A) && (s[o] = A);
8336
8336
  }), t[r] = void 0, s;
8337
8337
  }
8338
8338
  }
@@ -8348,7 +8348,7 @@ const Zx = (e) => {
8348
8348
  ), (r) => {
8349
8349
  i.push(r), Ei.postMessage(n, "*");
8350
8350
  }))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(typeof setImmediate == "function", Dt(Ei.postMessage)), t5 = typeof queueMicrotask < "u" ? queueMicrotask.bind(Ei) : typeof process < "u" && process.nextTick || Y2, n5 = (e) => e != null && Dt(e[$A]), q = {
8351
- isArray: Hr,
8351
+ isArray: Yr,
8352
8352
  isArrayBuffer: F2,
8353
8353
  isBuffer: ba,
8354
8354
  isFormData: Sx,
@@ -8363,7 +8363,7 @@ const Zx = (e) => {
8363
8363
  isRequest: Bx,
8364
8364
  isResponse: Rx,
8365
8365
  isHeaders: _x,
8366
- isUndefined: Er,
8366
+ isUndefined: Tr,
8367
8367
  isDate: yx,
8368
8368
  isFile: wx,
8369
8369
  isReactNativeBlob: kx,
@@ -8816,7 +8816,7 @@ const v5 = q.toObjectSet([
8816
8816
  r = a.indexOf(":"), n = a.substring(0, r).trim().toLowerCase(), i = a.substring(r + 1).trim(), !(!n || t[n] && v5[n]) && (n === "set-cookie" ? t[n] ? t[n].push(i) : t[n] = [i] : t[n] = t[n] ? t[n] + ", " + i : i);
8817
8817
  }), t;
8818
8818
  }, S0 = /* @__PURE__ */ Symbol("internals");
8819
- function us(e) {
8819
+ function ls(e) {
8820
8820
  return e && String(e).trim().toLowerCase();
8821
8821
  }
8822
8822
  function Po(e) {
@@ -8861,7 +8861,7 @@ let Bt = class {
8861
8861
  set(t, n, i) {
8862
8862
  const r = this;
8863
8863
  function s(o, A, u) {
8864
- const c = us(A);
8864
+ const c = ls(A);
8865
8865
  if (!c)
8866
8866
  throw new Error("header name must be a non-empty string");
8867
8867
  const l = q.findKey(r, c);
@@ -8885,7 +8885,7 @@ let Bt = class {
8885
8885
  return this;
8886
8886
  }
8887
8887
  get(t, n) {
8888
- if (t = us(t), t) {
8888
+ if (t = ls(t), t) {
8889
8889
  const i = q.findKey(this, t);
8890
8890
  if (i) {
8891
8891
  const r = this[i];
@@ -8902,7 +8902,7 @@ let Bt = class {
8902
8902
  }
8903
8903
  }
8904
8904
  has(t, n) {
8905
- if (t = us(t), t) {
8905
+ if (t = ls(t), t) {
8906
8906
  const i = q.findKey(this, t);
8907
8907
  return !!(i && this[i] !== void 0 && (!n || Jc(this, this[i], i, n)));
8908
8908
  }
@@ -8912,7 +8912,7 @@ let Bt = class {
8912
8912
  const i = this;
8913
8913
  let r = !1;
8914
8914
  function s(a) {
8915
- if (a = us(a), a) {
8915
+ if (a = ls(a), a) {
8916
8916
  const o = q.findKey(i, a);
8917
8917
  o && (!n || Jc(i, i[o], o, n)) && (delete i[o], r = !0);
8918
8918
  }
@@ -8974,7 +8974,7 @@ let Bt = class {
8974
8974
  accessors: {}
8975
8975
  }).accessors, r = this.prototype;
8976
8976
  function s(a) {
8977
- const o = us(a);
8977
+ const o = ls(a);
8978
8978
  i[o] || (C5(r, a), i[o] = !0);
8979
8979
  }
8980
8980
  return q.isArray(t) ? t.forEach(s) : s(t), this;
@@ -10086,14 +10086,14 @@ Je.interceptors.response.use(
10086
10086
  }
10087
10087
  );
10088
10088
  const J5 = 1500;
10089
- let cs = null, $c = "", el = null, H0 = 0, j0 = "";
10089
+ let fs = null, $c = "", el = null, H0 = 0, j0 = "";
10090
10090
  async function ru() {
10091
10091
  const e = K.getState().chatSettingStore.user.token || "", t = Date.now();
10092
10092
  if (el && j0 === e && t - H0 < J5)
10093
10093
  return el;
10094
- if (cs && $c === e)
10095
- return cs;
10096
- $c = e, cs = (async () => {
10094
+ if (fs && $c === e)
10095
+ return fs;
10096
+ $c = e, fs = (async () => {
10097
10097
  const n = await Je.get("/chats/my", {
10098
10098
  headers: {
10099
10099
  Authorization: e
@@ -10102,11 +10102,11 @@ async function ru() {
10102
10102
  return el = n.data, H0 = Date.now(), j0 = e, n.data;
10103
10103
  })();
10104
10104
  try {
10105
- return await cs;
10105
+ return await fs;
10106
10106
  } catch {
10107
10107
  return Z.log("Error loading rooms"), { items: [] };
10108
10108
  } finally {
10109
- cs = null, $c = "";
10109
+ fs = null, $c = "";
10110
10110
  }
10111
10111
  }
10112
10112
  async function X5(e) {
@@ -10389,8 +10389,8 @@ const dA = new sI(), Oo = (e) => e ? String(e).split("@")[0] : "", oy = (e) => {
10389
10389
  K.getState().rooms.usersSet,
10390
10390
  A.user.id
10391
10391
  );
10392
- u && K.dispatch(wr({ newUsers: [u] })), K.dispatch(
10393
- cr({
10392
+ u && K.dispatch(Er({ newUsers: [u] })), K.dispatch(
10393
+ fr({
10394
10394
  roomJID: e.attrs.from.split("/")[0],
10395
10395
  message: A
10396
10396
  })
@@ -10506,8 +10506,8 @@ const dA = new sI(), Oo = (e) => e ? String(e).split("@")[0] : "", oy = (e) => {
10506
10506
  K.getState().rooms.usersSet,
10507
10507
  s.user.id
10508
10508
  );
10509
- a && K.dispatch(wr({ newUsers: [a] })), K.dispatch(
10510
- cr({
10509
+ a && K.dispatch(Er({ newUsers: [a] })), K.dispatch(
10510
+ fr({
10511
10511
  roomJID: e.attrs.from,
10512
10512
  message: s
10513
10513
  })
@@ -10595,7 +10595,7 @@ const dA = new sI(), Oo = (e) => e ? String(e).split("@")[0] : "", oy = (e) => {
10595
10595
  for (const u of A) {
10596
10596
  const c = u.attrs?.var, l = u.getChildText("value");
10597
10597
  if (c === "muc#roominfo_occupants" && l) {
10598
- const f = kr(l);
10598
+ const f = Cr(l);
10599
10599
  typeof f == "number" && f > 0 && (i.usersCnt = f);
10600
10600
  }
10601
10601
  c === "muc#roominfo_description" && l && (i.description = l);
@@ -10606,7 +10606,7 @@ const dA = new sI(), Oo = (e) => e ? String(e).split("@")[0] : "", oy = (e) => {
10606
10606
  if (e.attrs?.id && e.attrs?.id.toString().includes("get-history")) {
10607
10607
  const t = String(e?.attrs?.from || "").split("/")[0], n = e?.getChild("fin");
10608
10608
  if (!t || !n) return;
10609
- const i = M2(n?.attrs?.complete), r = n.getChild("set"), s = r?.getChildText("first"), a = r?.getChildText("last"), o = kr(a), A = kr(s);
10609
+ const i = M2(n?.attrs?.complete), r = n.getChild("set"), s = r?.getChildText("first"), a = r?.getChildText("last"), o = Cr(a), A = Cr(s);
10610
10610
  K.dispatch(
10611
10611
  mt({
10612
10612
  jid: t,
@@ -10751,7 +10751,7 @@ const dA = new sI(), Oo = (e) => e ? String(e).split("@")[0] : "", oy = (e) => {
10751
10751
  n.firstName !== void 0 && (s.firstName = n.firstName), n.lastName !== void 0 && (s.lastName = n.lastName), n.photoURL !== void 0 && (s.profileImage = n.photoURL), n.description !== void 0 && (s.description = n.description);
10752
10752
  const a = K.getState(), o = a.rooms.usersSet, A = Object.entries(o).filter(([l]) => l === r || l.split("@")[0] === r).map(([, l]) => ({ ...l, ...s }));
10753
10753
  if (A.length > 0)
10754
- K.dispatch(wr({ newUsers: A }));
10754
+ K.dispatch(Er({ newUsers: A }));
10755
10755
  else {
10756
10756
  const l = {
10757
10757
  firstName: n.firstName || "",
@@ -10760,7 +10760,7 @@ const dA = new sI(), Oo = (e) => e ? String(e).split("@")[0] : "", oy = (e) => {
10760
10760
  _id: r,
10761
10761
  ...s
10762
10762
  };
10763
- K.dispatch(wr({ newUsers: [l] }));
10763
+ K.dispatch(Er({ newUsers: [l] }));
10764
10764
  }
10765
10765
  Object.values(a.rooms.rooms).forEach((l) => {
10766
10766
  if (!l.members?.length) return;
@@ -10806,7 +10806,7 @@ const dA = new sI(), Oo = (e) => e ? String(e).split("@")[0] : "", oy = (e) => {
10806
10806
  return;
10807
10807
  }
10808
10808
  const a = {};
10809
- n.title !== void 0 && (a.title = n.title, a.name = n.title), n.description !== void 0 && (a.description = n.description), n.picture !== void 0 && (a.icon = n.picture, a.picture = n.picture), n.usersCnt !== void 0 && (a.usersCnt = kr(n.usersCnt)), Object.keys(a).length > 0 && (K.dispatch(mt({ jid: s.jid, updates: a })), Z.log(
10809
+ n.title !== void 0 && (a.title = n.title, a.name = n.title), n.description !== void 0 && (a.description = n.description), n.picture !== void 0 && (a.icon = n.picture, a.picture = n.picture), n.usersCnt !== void 0 && (a.usersCnt = Cr(n.usersCnt)), Object.keys(a).length > 0 && (K.dispatch(mt({ jid: s.jid, updates: a })), Z.log(
10810
10810
  `[ChatUpdate] room=${s.jid} title=${n.title ?? "-"} description=${n.description ?? "-"}`
10811
10811
  ));
10812
10812
  } catch (n) {
@@ -10989,7 +10989,7 @@ function nl(e, t, n) {
10989
10989
  function il(e, t) {
10990
10990
  return e.is("iq") && e.attrs.id === t && e.attrs.type === "result";
10991
10991
  }
10992
- const Ar = (e) => e ? Object.prototype.hasOwnProperty.call(
10992
+ const ur = (e) => e ? Object.prototype.hasOwnProperty.call(
10993
10993
  e || {},
10994
10994
  "messageTimestampMs"
10995
10995
  ) ? Ze(e?.messageTimestampMs) : Ze(e?.date) || Ze(e?.timestamp) || Ze(e?.id) : 0, OI = (e) => {
@@ -10997,7 +10997,7 @@ const Ar = (e) => e ? Object.prototype.hasOwnProperty.call(
10997
10997
  for (let t = e.messages.length - 1; t >= 0; t -= 1) {
10998
10998
  const n = e.messages[t];
10999
10999
  if (!n || n.id === "delimiter-new" || n.pending) continue;
11000
- const i = Ar(n);
11000
+ const i = ur(n);
11001
11001
  if (i > 0) return i;
11002
11002
  }
11003
11003
  return 0;
@@ -11113,7 +11113,7 @@ class LI {
11113
11113
  }
11114
11114
  }
11115
11115
  constructor(t, n, i) {
11116
- this.devServer = i?.devServer || Ss, this.host = i?.host || Mv, this.service = i?.conference || Xs, this.conference = `conference.${this.host}`, this.username = t, this.password = n, this.pingOnSendEnabled = i?.xmppPingOnSendEnabled === !0, this.maxInFlightHistory = Math.max(
11116
+ this.devServer = i?.devServer || Ds, this.host = i?.host || Mv, this.service = i?.conference || Xs, this.conference = `conference.${this.host}`, this.username = t, this.password = n, this.pingOnSendEnabled = i?.xmppPingOnSendEnabled === !0, this.maxInFlightHistory = Math.max(
11117
11117
  1,
11118
11118
  Number(i?.historyQoS?.maxInFlightHistory || 2)
11119
11119
  ), this.softPauseAfterSendMs = Math.max(
@@ -11139,7 +11139,7 @@ class LI {
11139
11139
  async initializeClient() {
11140
11140
  try {
11141
11141
  this.intentionalLogout = !1, this.logStep("initializeClient:start"), this.client && (this.logStep("initializeClient:disconnect-previous"), await this.disconnect());
11142
- const t = this.devServer || Ss;
11142
+ const t = this.devServer || Ds;
11143
11143
  this.host = t.match(/wss:\/\/([^:/]+)/)?.[1] || "", this.conference = `conference.${this.host}`, Z.log("+-+-+-+-+-+-+-+-+ ", { username: this.username }), this.devServer = t, this.client = KE.client({
11144
11144
  service: t,
11145
11145
  username: this.username,
@@ -11623,7 +11623,7 @@ class LI {
11623
11623
  if (t.attrs.type === "result") {
11624
11624
  const r = String(t?.attrs?.from || i.chatJID || "").split("/")[0], s = t.getChild("fin");
11625
11625
  if (r && s) {
11626
- const a = M2(s?.attrs?.complete), o = s.getChild("set"), A = o?.getChildText("first"), u = o?.getChildText("last"), c = kr(A), l = kr(u);
11626
+ const a = M2(s?.attrs?.complete), o = s.getChild("set"), A = o?.getChildText("first"), u = o?.getChildText("last"), c = Cr(A), l = Cr(u);
11627
11627
  K.dispatch(
11628
11628
  mt({
11629
11629
  jid: r,
@@ -12013,7 +12013,7 @@ class LI {
12013
12013
  A,
12014
12014
  u,
12015
12015
  c,
12016
- this.devServer || Ss,
12016
+ this.devServer || Ds,
12017
12017
  l
12018
12018
  ));
12019
12019
  })), l, t, f);
@@ -12043,7 +12043,7 @@ class LI {
12043
12043
  isReply: A,
12044
12044
  showInChannel: u,
12045
12045
  mainMessage: c,
12046
- devServer: this.devServer || Ss
12046
+ devServer: this.devServer || Ds
12047
12047
  },
12048
12048
  l,
12049
12049
  f
@@ -12235,7 +12235,7 @@ class LI {
12235
12235
  }, i);
12236
12236
  }
12237
12237
  }
12238
- let Cr = null, hA = "";
12238
+ let xr = null, hA = "";
12239
12239
  const eo = /* @__PURE__ */ new Map();
12240
12240
  function FI(e, t) {
12241
12241
  return rC(e, t);
@@ -12244,16 +12244,16 @@ function Of(e) {
12244
12244
  return e ? e.status === "online" || e.status === "connecting" : !1;
12245
12245
  }
12246
12246
  function Lf(e, t) {
12247
- Cr = e, hA = e && (t || hA) || "";
12247
+ xr = e, hA = e && (t || hA) || "";
12248
12248
  }
12249
12249
  function na() {
12250
- return Cr;
12250
+ return xr;
12251
12251
  }
12252
12252
  function QI() {
12253
12253
  return hA;
12254
12254
  }
12255
12255
  function G0(e) {
12256
- return !e || e !== hA || !Of(Cr) ? null : Cr;
12256
+ return !e || e !== hA || !Of(xr) ? null : xr;
12257
12257
  }
12258
12258
  async function UI(e, t) {
12259
12259
  const n = eo.get(e);
@@ -12265,9 +12265,9 @@ async function UI(e, t) {
12265
12265
  return eo.set(e, i), i;
12266
12266
  }
12267
12267
  function HI() {
12268
- if (!Cr)
12268
+ if (!xr)
12269
12269
  throw new Error("XMPP client is not initialized");
12270
- return Cr;
12270
+ return xr;
12271
12271
  }
12272
12272
  const jI = () => {
12273
12273
  };
@@ -12669,7 +12669,7 @@ function l8(e) {
12669
12669
  return !1;
12670
12670
  return !0;
12671
12671
  }
12672
- function Tr(e, t) {
12672
+ function Ir(e, t) {
12673
12673
  if (e === t)
12674
12674
  return !0;
12675
12675
  const n = Object.keys(e), i = Object.keys(t);
@@ -12678,7 +12678,7 @@ function Tr(e, t) {
12678
12678
  return !1;
12679
12679
  const s = e[r], a = t[r];
12680
12680
  if (q0(s) && q0(a)) {
12681
- if (!Tr(s, a))
12681
+ if (!Ir(s, a))
12682
12682
  return !1;
12683
12683
  } else if (s !== a)
12684
12684
  return !1;
@@ -13401,7 +13401,7 @@ function wy(e, t = {}) {
13401
13401
  );
13402
13402
  const s = ia.get(r);
13403
13403
  if (s) {
13404
- if (Tr(n, s.options) && Tr(i, s.config))
13404
+ if (Ir(n, s.options) && Ir(i, s.config))
13405
13405
  return s;
13406
13406
  throw Ai.create("duplicate-app", { appName: r });
13407
13407
  }
@@ -14877,7 +14877,7 @@ class hN {
14877
14877
  }
14878
14878
  }
14879
14879
  const mN = new hN(), pN = {};
14880
- let ls = !1, nr = null, fs = /* @__PURE__ */ new Set(), ds = null;
14880
+ let ds = !1, nr = null, hs = /* @__PURE__ */ new Set(), ms = null;
14881
14881
  const Ky = (e = {}) => {
14882
14882
  const { softAsk: t = !1, enabled: n = !1 } = e, i = e.vapidPublicKey || typeof import.meta < "u" && pN?.VITE_VAPID_PUBLIC_KEY || "", r = we((I) => I.chatSettingStore.user.token), s = we(
14883
14883
  (I) => I.chatSettingStore.user.xmppUsername
@@ -14940,7 +14940,7 @@ const Ky = (e = {}) => {
14940
14940
  [o?.pushNotifications?.onClick, u, B, b, e.onClick]
14941
14941
  ), x = he(async () => {
14942
14942
  if (n) {
14943
- if (ls) {
14943
+ if (ds) {
14944
14944
  o?.useStoreConsoleEnabled && Z.log("[PushNotifications] Already subscribed this session, skipping.");
14945
14945
  return;
14946
14946
  }
@@ -14964,7 +14964,7 @@ const Ky = (e = {}) => {
14964
14964
  o?.useStoreConsoleEnabled && console.warn("[PushNotifications] Failed to obtain FCM token.");
14965
14965
  return;
14966
14966
  }
14967
- o?.useStoreConsoleEnabled && Z.log("[PushNotifications] Registering FCM token with Ethora backend (API)…"), await fN(I), ls = !0, l.current = I, d(I), Gf(I), o?.useStoreConsoleEnabled && Z.log(
14967
+ o?.useStoreConsoleEnabled && Z.log("[PushNotifications] Registering FCM token with Ethora backend (API)…"), await fN(I), ds = !0, l.current = I, d(I), Gf(I), o?.useStoreConsoleEnabled && Z.log(
14968
14968
  "%c[PushNotifications] ✅ User subscribed via API",
14969
14969
  "color: #22c55e; font-weight: bold"
14970
14970
  ), s && o?.useStoreConsoleEnabled && Z.log(
@@ -15023,10 +15023,10 @@ const Ky = (e = {}) => {
15023
15023
  Z.log(`[NotifyPolicy] source=push action=check_os_delegated show=${Vn.show} reason=${Vn.reason} msgId=${$}`);
15024
15024
  }
15025
15025
  };
15026
- return ds || (ds = cN((N) => {
15027
- fs.forEach((R) => R(N));
15028
- }, e.firebaseConfig || o?.pushNotifications?.firebaseConfig)), fs.add(I), () => {
15029
- fs.delete(I), fs.size === 0 && ds && (ds(), ds = null);
15026
+ return ms || (ms = cN((N) => {
15027
+ hs.forEach((R) => R(N));
15028
+ }, e.firebaseConfig || o?.pushNotifications?.firebaseConfig)), hs.add(I), () => {
15029
+ hs.delete(I), hs.size === 0 && ms && (ms(), ms = null);
15030
15030
  };
15031
15031
  }, [o, n, a, b, B]), ge(() => {
15032
15032
  if (!n || typeof window > "u" || !("serviceWorker" in navigator)) return;
@@ -15034,7 +15034,7 @@ const Ky = (e = {}) => {
15034
15034
  const R = N?.data;
15035
15035
  if (R) {
15036
15036
  if (R.type === "PUSH_FOREGROUND_BRIDGE" && R.payload) {
15037
- fs.forEach((L) => L(R.payload));
15037
+ hs.forEach((L) => L(R.payload));
15038
15038
  return;
15039
15039
  }
15040
15040
  R.type === "PUSH_NOTIFICATION_CLICK" && P(
@@ -15073,13 +15073,13 @@ const Ky = (e = {}) => {
15073
15073
  } catch {
15074
15074
  }
15075
15075
  }, [n, P]), ge(() => {
15076
- (!r || E.current !== s) && (c.current = !1, l.current = null, d(null), Gf(""), p.current = "", k.current = !1, ls = !1, nr = null), E.current = s || "";
15076
+ (!r || E.current !== s) && (c.current = !1, l.current = null, d(null), Gf(""), p.current = "", k.current = !1, ds = !1, nr = null), E.current = s || "";
15077
15077
  }, [r, s]), ge(() => {
15078
15078
  r && (t || c.current || (c.current = !0, x()));
15079
15079
  }, [r, t, x]), ge(() => {
15080
15080
  if (!n || !r || t || typeof window > "u" || typeof Notification > "u") return;
15081
15081
  const I = () => {
15082
- ls || Notification.permission === "granted" && x();
15082
+ ds || Notification.permission === "granted" && x();
15083
15083
  };
15084
15084
  return window.addEventListener("focus", I), document.addEventListener("visibilitychange", I), () => {
15085
15085
  window.removeEventListener("focus", I), document.removeEventListener("visibilitychange", I);
@@ -15125,7 +15125,7 @@ const Ky = (e = {}) => {
15125
15125
  }
15126
15126
  })();
15127
15127
  }, [n, a, f, u, A]), { requestPermission: he(async () => {
15128
- c.current = !1, ls = !1, await x();
15128
+ c.current = !1, ds = !1, await x();
15129
15129
  }, [x]) };
15130
15130
  }, Zy = (e, t) => {
15131
15131
  if (e && e && Object.keys(e).length > 0) {
@@ -15163,7 +15163,7 @@ const Ky = (e = {}) => {
15163
15163
  if (r <= 0)
15164
15164
  return !0;
15165
15165
  const s = i.reduce((a, o) => {
15166
- const A = Ar(o);
15166
+ const A = ur(o);
15167
15167
  return !Number.isFinite(A) || A <= 0 ? a : Math.min(a, A);
15168
15168
  }, Number.MAX_SAFE_INTEGER);
15169
15169
  return !Number.isFinite(s) || s === Number.MAX_SAFE_INTEGER ? !1 : s > r;
@@ -15545,7 +15545,7 @@ const DN = [
15545
15545
  function C1(e, t) {
15546
15546
  return e.tenantId && !t.tenantId ? Object.assign(Object.assign({}, t), { tenantId: e.tenantId }) : t;
15547
15547
  }
15548
- async function jr(e, t, n, i, r = {}) {
15548
+ async function Wr(e, t, n, i, r = {}) {
15549
15549
  return nw(e, r, async () => {
15550
15550
  let s = {}, a = {};
15551
15551
  i && (t === "GET" ? a = i : s = {
@@ -15600,7 +15600,7 @@ async function nw(e, t, n) {
15600
15600
  }
15601
15601
  }
15602
15602
  async function RN(e, t, n, i, r = {}) {
15603
- const s = await jr(e, t, n, i, r);
15603
+ const s = await Wr(e, t, n, i, r);
15604
15604
  return "mfaPendingCredential" in s && wn(e, "multi-factor-auth-required", {
15605
15605
  _serverResponse: s
15606
15606
  }), s;
@@ -15632,10 +15632,10 @@ function no(e, t, n) {
15632
15632
  return r.customData._tokenResponse = n, r;
15633
15633
  }
15634
15634
  async function PN(e, t) {
15635
- return jr(e, "POST", "/v1/accounts:delete", t);
15635
+ return Wr(e, "POST", "/v1/accounts:delete", t);
15636
15636
  }
15637
15637
  async function gA(e, t) {
15638
- return jr(e, "POST", "/v1/accounts:lookup", t);
15638
+ return Wr(e, "POST", "/v1/accounts:lookup", t);
15639
15639
  }
15640
15640
  function Fs(e) {
15641
15641
  if (e)
@@ -15839,9 +15839,9 @@ async function UN(e, t) {
15839
15839
  };
15840
15840
  }
15841
15841
  async function HN(e, t) {
15842
- return jr(e, "POST", "/v2/accounts:revokeToken", C1(e, t));
15842
+ return Wr(e, "POST", "/v2/accounts:revokeToken", C1(e, t));
15843
15843
  }
15844
- class fr {
15844
+ class hr {
15845
15845
  constructor() {
15846
15846
  this.refreshToken = null, this.accessToken = null, this.expirationTime = null;
15847
15847
  }
@@ -15893,7 +15893,7 @@ class fr {
15893
15893
  this.refreshToken = n || null, this.accessToken = t || null, this.expirationTime = Date.now() + i * 1e3;
15894
15894
  }
15895
15895
  static fromJSON(t, n) {
15896
- const { refreshToken: i, accessToken: r, expirationTime: s } = n, a = new fr();
15896
+ const { refreshToken: i, accessToken: r, expirationTime: s } = n, a = new hr();
15897
15897
  return i && (Ee(typeof i == "string", "internal-error", {
15898
15898
  appName: t
15899
15899
  }), a.refreshToken = i), r && (Ee(typeof r == "string", "internal-error", {
@@ -15913,7 +15913,7 @@ class fr {
15913
15913
  this.accessToken = t.accessToken, this.refreshToken = t.refreshToken, this.expirationTime = t.expirationTime;
15914
15914
  }
15915
15915
  _clone() {
15916
- return Object.assign(new fr(), this.toJSON());
15916
+ return Object.assign(new hr(), this.toJSON());
15917
15917
  }
15918
15918
  _performRefresh() {
15919
15919
  return Ln("not implemented");
@@ -16014,7 +16014,7 @@ class Zt {
16014
16014
  "internal-error"
16015
16015
  /* AuthErrorCode.INTERNAL_ERROR */
16016
16016
  );
16017
- const B = fr.fromJSON(this.name, T);
16017
+ const B = hr.fromJSON(this.name, T);
16018
16018
  Ee(
16019
16019
  typeof k == "string",
16020
16020
  t,
@@ -16053,7 +16053,7 @@ class Zt {
16053
16053
  * @param idTokenResponse
16054
16054
  */
16055
16055
  static async _fromIdTokenResponse(t, n, i = !1) {
16056
- const r = new fr();
16056
+ const r = new hr();
16057
16057
  r.updateFromServerResponse(n);
16058
16058
  const s = new Zt({
16059
16059
  uid: n.localId,
@@ -16075,7 +16075,7 @@ class Zt {
16075
16075
  "internal-error"
16076
16076
  /* AuthErrorCode.INTERNAL_ERROR */
16077
16077
  );
16078
- const s = r.providerUserInfo !== void 0 ? rw(r.providerUserInfo) : [], a = !(r.email && r.passwordHash) && !s?.length, o = new fr();
16078
+ const s = r.providerUserInfo !== void 0 ? rw(r.providerUserInfo) : [], a = !(r.email && r.passwordHash) && !s?.length, o = new hr();
16079
16079
  o.updateFromIdToken(i);
16080
16080
  const A = new Zt({
16081
16081
  uid: r.localId,
@@ -16130,7 +16130,7 @@ const pp = sw;
16130
16130
  function Fo(e, t, n) {
16131
16131
  return `firebase:${e}:${t}:${n}`;
16132
16132
  }
16133
- class dr {
16133
+ class mr {
16134
16134
  constructor(t, n, i) {
16135
16135
  this.persistence = t, this.auth = n, this.userKey = i;
16136
16136
  const { config: r, name: s } = this.auth;
@@ -16168,7 +16168,7 @@ class dr {
16168
16168
  }
16169
16169
  static async create(t, n, i = "authUser") {
16170
16170
  if (!n.length)
16171
- return new dr(Fn(pp), t, i);
16171
+ return new mr(Fn(pp), t, i);
16172
16172
  const r = (await Promise.all(n.map(async (u) => {
16173
16173
  if (await u._isAvailable())
16174
16174
  return u;
@@ -16197,13 +16197,13 @@ class dr {
16197
16197
  } catch {
16198
16198
  }
16199
16199
  const A = r.filter((u) => u._shouldAllowMigration);
16200
- return !s._shouldAllowMigration || !A.length ? new dr(s, t, i) : (s = A[0], o && await s._set(a, o.toJSON()), await Promise.all(n.map(async (u) => {
16200
+ return !s._shouldAllowMigration || !A.length ? new mr(s, t, i) : (s = A[0], o && await s._set(a, o.toJSON()), await Promise.all(n.map(async (u) => {
16201
16201
  if (u !== s)
16202
16202
  try {
16203
16203
  await u._remove(a);
16204
16204
  } catch {
16205
16205
  }
16206
- })), new dr(s, t, i));
16206
+ })), new mr(s, t, i));
16207
16207
  }
16208
16208
  }
16209
16209
  function gp(e) {
@@ -16327,7 +16327,7 @@ class WN {
16327
16327
  }
16328
16328
  }
16329
16329
  async function GN(e, t = {}) {
16330
- return jr(e, "GET", "/v2/passwordPolicy", C1(e, t));
16330
+ return Wr(e, "GET", "/v2/passwordPolicy", C1(e, t));
16331
16331
  }
16332
16332
  const zN = 6;
16333
16333
  class qN {
@@ -16408,7 +16408,7 @@ class VN {
16408
16408
  _initializeWithPersistence(t, n) {
16409
16409
  return n && (this._popupRedirectResolver = Fn(n)), this._initializationPromise = this.queue(async () => {
16410
16410
  var i, r, s;
16411
- if (!this._deleted && (this.persistenceManager = await dr.create(this, t), (i = this._resolvePersistenceManagerAvailable) === null || i === void 0 || i.call(this), !this._deleted)) {
16411
+ if (!this._deleted && (this.persistenceManager = await mr.create(this, t), (i = this._resolvePersistenceManagerAvailable) === null || i === void 0 || i.call(this), !this._deleted)) {
16412
16412
  if (!((r = this._popupRedirectResolver) === null || r === void 0) && r._shouldInitProactively)
16413
16413
  try {
16414
16414
  await this._popupRedirectResolver._initialize(this);
@@ -16615,7 +16615,7 @@ class VN {
16615
16615
  this,
16616
16616
  "argument-error"
16617
16617
  /* AuthErrorCode.ARGUMENT_ERROR */
16618
- ), this.redirectPersistenceManager = await dr.create(
16618
+ ), this.redirectPersistenceManager = await mr.create(
16619
16619
  this,
16620
16620
  [Fn(n._redirectPersistence)],
16621
16621
  "redirectUser"
@@ -16779,7 +16779,7 @@ function $N(e, t) {
16779
16779
  const n = xa(e, "auth");
16780
16780
  if (n.isInitialized()) {
16781
16781
  const r = n.getImmediate(), s = n.getOptions();
16782
- if (Tr(s, t ?? {}))
16782
+ if (Ir(s, t ?? {}))
16783
16783
  return r;
16784
16784
  wn(
16785
16785
  r,
@@ -16814,7 +16814,7 @@ function tD(e, t, n) {
16814
16814
  "emulator-config-failed"
16815
16815
  /* AuthErrorCode.EMULATOR_CONFIG_FAILED */
16816
16816
  ), Ee(
16817
- Tr(u, i.config.emulator) && Tr(c, i.emulatorConfig),
16817
+ Ir(u, i.config.emulator) && Ir(c, i.emulatorConfig),
16818
16818
  i,
16819
16819
  "emulator-config-failed"
16820
16820
  /* AuthErrorCode.EMULATOR_CONFIG_FAILED */
@@ -16879,7 +16879,7 @@ class pw {
16879
16879
  return Ln("not implemented");
16880
16880
  }
16881
16881
  }
16882
- async function hr(e, t) {
16882
+ async function pr(e, t) {
16883
16883
  return RN(e, "POST", "/v1/accounts:signInWithIdp", C1(e, t));
16884
16884
  }
16885
16885
  const rD = "http://localhost";
@@ -16926,17 +16926,17 @@ class Yi extends pw {
16926
16926
  /** @internal */
16927
16927
  _getIdTokenResponse(t) {
16928
16928
  const n = this.buildRequest();
16929
- return hr(t, n);
16929
+ return pr(t, n);
16930
16930
  }
16931
16931
  /** @internal */
16932
16932
  _linkToIdToken(t, n) {
16933
16933
  const i = this.buildRequest();
16934
- return i.idToken = n, hr(t, i);
16934
+ return i.idToken = n, pr(t, i);
16935
16935
  }
16936
16936
  /** @internal */
16937
16937
  _getReauthenticationResolver(t) {
16938
16938
  const n = this.buildRequest();
16939
- return n.autoCreate = !1, hr(t, n);
16939
+ return n.autoCreate = !1, pr(t, n);
16940
16940
  }
16941
16941
  buildRequest() {
16942
16942
  const t = {
@@ -17224,13 +17224,13 @@ class ri extends Da {
17224
17224
  }
17225
17225
  ri.TWITTER_SIGN_IN_METHOD = "twitter.com";
17226
17226
  ri.PROVIDER_ID = "twitter.com";
17227
- class xr {
17227
+ class Sr {
17228
17228
  constructor(t) {
17229
17229
  this.user = t.user, this.providerId = t.providerId, this._tokenResponse = t._tokenResponse, this.operationType = t.operationType;
17230
17230
  }
17231
17231
  static async _fromIdTokenResponse(t, n, i, r = !1) {
17232
17232
  const s = await Zt._fromIdTokenResponse(t, i, r), a = yp(i);
17233
- return new xr({
17233
+ return new Sr({
17234
17234
  user: s,
17235
17235
  providerId: a,
17236
17236
  _tokenResponse: i,
@@ -17244,7 +17244,7 @@ class xr {
17244
17244
  !0
17245
17245
  );
17246
17246
  const r = yp(i);
17247
- return new xr({
17247
+ return new Sr({
17248
17248
  user: t,
17249
17249
  providerId: r,
17250
17250
  _tokenResponse: i,
@@ -17276,7 +17276,7 @@ function gw(e, t, n, i) {
17276
17276
  }
17277
17277
  async function sD(e, t, n = !1) {
17278
17278
  const i = await aa(e, t._linkToIdToken(e.auth, await e.getIdToken()), n);
17279
- return xr._forOperation(e, "link", i);
17279
+ return Sr._forOperation(e, "link", i);
17280
17280
  }
17281
17281
  async function aD(e, t, n = !1) {
17282
17282
  const { auth: i } = e;
@@ -17304,7 +17304,7 @@ async function aD(e, t, n = !1) {
17304
17304
  i,
17305
17305
  "user-mismatch"
17306
17306
  /* AuthErrorCode.USER_MISMATCH */
17307
- ), xr._forOperation(e, r, s);
17307
+ ), Sr._forOperation(e, r, s);
17308
17308
  } catch (s) {
17309
17309
  throw s?.code === "auth/user-not-found" && wn(
17310
17310
  i,
@@ -17316,7 +17316,7 @@ async function aD(e, t, n = !1) {
17316
17316
  async function oD(e, t, n = !1) {
17317
17317
  if (hn(e.app))
17318
17318
  return Promise.reject(Bi(e));
17319
- const i = "signIn", r = await gw(e, i, t), s = await xr._fromIdTokenResponse(e, i, r);
17319
+ const i = "signIn", r = await gw(e, i, t), s = await Sr._fromIdTokenResponse(e, i, r);
17320
17320
  return n || await e._updateCurrentUser(s.user), s;
17321
17321
  }
17322
17322
  function AD(e, t, n, i) {
@@ -17868,13 +17868,13 @@ class D1 extends pw {
17868
17868
  ), this.params = t;
17869
17869
  }
17870
17870
  _getIdTokenResponse(t) {
17871
- return hr(t, this._buildIdpRequest());
17871
+ return pr(t, this._buildIdpRequest());
17872
17872
  }
17873
17873
  _linkToIdToken(t, n) {
17874
- return hr(t, this._buildIdpRequest(n));
17874
+ return pr(t, this._buildIdpRequest(n));
17875
17875
  }
17876
17876
  _getReauthenticationResolver(t) {
17877
- return hr(t, this._buildIdpRequest());
17877
+ return pr(t, this._buildIdpRequest());
17878
17878
  }
17879
17879
  _buildIdpRequest(t) {
17880
17880
  const n = {
@@ -18185,7 +18185,7 @@ function QD(e) {
18185
18185
  }
18186
18186
  }
18187
18187
  async function UD(e, t = {}) {
18188
- return jr(e, "GET", "/v1/projects", t);
18188
+ return Wr(e, "GET", "/v1/projects", t);
18189
18189
  }
18190
18190
  const HD = /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/, jD = /^https?/;
18191
18191
  async function YD(e) {
@@ -18763,7 +18763,7 @@ function B1(e) {
18763
18763
  }
18764
18764
  });
18765
18765
  }
18766
- async function hs(e) {
18766
+ async function ps(e) {
18767
18767
  if (!e) return null;
18768
18768
  const t = e?.token, n = await du(t);
18769
18769
  return n ? { ...e, ...n } : e;
@@ -18777,7 +18777,7 @@ const IB = (e) => {
18777
18777
  }, Bw = (e) => {
18778
18778
  const t = e?.message || "";
18779
18779
  return typeof t == "string" && t.toLowerCase().includes("abort");
18780
- }, Ds = (e) => !!(e?.xmppPassword && (e?.xmppUsername || e?.defaultWallet?.walletAddress)), Bs = (e) => {
18780
+ }, or = (e) => !!(e?.xmppPassword && (e?.xmppUsername || e?.defaultWallet?.walletAddress)), cr = (e) => {
18781
18781
  if (!e) return null;
18782
18782
  const t = e.xmppUsername || oA(e?.defaultWallet?.walletAddress);
18783
18783
  return {
@@ -18802,24 +18802,24 @@ const IB = (e) => {
18802
18802
  }
18803
18803
  }, bl = async (e, t, n) => {
18804
18804
  if (n?.aborted) return null;
18805
- const i = Bs(e);
18805
+ const i = cr(e);
18806
18806
  if (!e?.token && !e?.refreshToken)
18807
18807
  return i;
18808
18808
  let r = e?.token || "", s = e?.refreshToken || "";
18809
18809
  if (r)
18810
18810
  try {
18811
- const a = await Xf({ token: r, endpoint: t }), o = Bs(Rp(e, a));
18811
+ const a = await Xf({ token: r, endpoint: t }), o = cr(Rp(e, a));
18812
18812
  return o && (o.token = r || o.token, o.refreshToken = s || o.refreshToken), o;
18813
18813
  } catch (a) {
18814
- if (!Kf(a) && Ds(i))
18814
+ if (!Kf(a) && or(i))
18815
18815
  return i;
18816
18816
  }
18817
18817
  if (!s)
18818
- return Bs(e);
18818
+ return cr(e);
18819
18819
  try {
18820
18820
  const a = await SB(s);
18821
18821
  r = a.token, s = a.refreshToken;
18822
- const o = await Xf({ token: r, endpoint: t }), A = Bs(Rp(e, o));
18822
+ const o = await Xf({ token: r, endpoint: t }), A = cr(Rp(e, o));
18823
18823
  return A && (A.token = r || A.token, A.refreshToken = s || A.refreshToken), A;
18824
18824
  } catch (a) {
18825
18825
  if (n?.aborted || Bw(a) || Kf(a))
@@ -18832,14 +18832,16 @@ const IB = (e) => {
18832
18832
  t?.baseUrl && A1(t.baseUrl, t.customAppToken);
18833
18833
  const i = t?.initBeforeLoadAuth?.myEndpoint || "/users/my", r = t?.userLogin?.enabled ? t?.userLogin?.user : null;
18834
18834
  if (r) {
18835
- const o = await bl(r, i, n).catch(() => null);
18836
- if (o && Ds(o))
18835
+ const o = cr(r);
18836
+ if (o && or(o))
18837
18837
  return o;
18838
+ const A = await bl(r, i, n).catch(() => null);
18839
+ return A && or(A) ? A : null;
18838
18840
  }
18839
18841
  if (t?.jwtLogin?.enabled && t?.jwtLogin?.token)
18840
18842
  try {
18841
- const o = await Dw(t.jwtLogin.token), A = Bs(o);
18842
- if (A && Ds(A))
18843
+ const o = await Dw(t.jwtLogin.token), A = cr(o);
18844
+ if (A && or(A))
18843
18845
  return A;
18844
18846
  } catch (o) {
18845
18847
  if (n?.aborted || Bw(o) || Kf(o))
@@ -18849,13 +18851,13 @@ const IB = (e) => {
18849
18851
  const s = K.getState().chatSettingStore.user;
18850
18852
  if (s?.token || s?.refreshToken || s?.xmppPassword) {
18851
18853
  const o = await bl(s, i, n).catch(() => null);
18852
- if (o && Ds(o))
18854
+ if (o && or(o))
18853
18855
  return o;
18854
18856
  }
18855
18857
  const a = n2(t?.appId);
18856
18858
  if (a && t2(a)) {
18857
18859
  const o = await bl(a, i, n).catch(() => null);
18858
- if (o && Ds(o))
18860
+ if (o && or(o))
18859
18861
  return o;
18860
18862
  ea();
18861
18863
  }
@@ -19161,7 +19163,7 @@ function Ho(e, t, n) {
19161
19163
  function At(e, t) {
19162
19164
  return e.charCodeAt(t) | 0;
19163
19165
  }
19164
- function Ir(e, t, n) {
19166
+ function Nr(e, t, n) {
19165
19167
  return e.slice(t, n);
19166
19168
  }
19167
19169
  function ln(e) {
@@ -19181,9 +19183,9 @@ function Pp(e, t) {
19181
19183
  return !_n(n, t);
19182
19184
  });
19183
19185
  }
19184
- var mu = 1, Sr = 1, Fw = 0, qt = 0, st = 0, Yr = "";
19186
+ var mu = 1, Dr = 1, Fw = 0, qt = 0, st = 0, Gr = "";
19185
19187
  function pu(e, t, n, i, r, s, a, o) {
19186
- return { value: e, root: t, parent: n, type: i, props: r, children: s, line: mu, column: Sr, length: a, return: "", siblings: o };
19188
+ return { value: e, root: t, parent: n, type: i, props: r, children: s, line: mu, column: Dr, length: a, return: "", siblings: o };
19187
19189
  }
19188
19190
  function $n(e, t) {
19189
19191
  return Zf(pu("", null, null, "", null, null, 0, e.siblings), e, { length: -e.length }, t);
@@ -19197,19 +19199,19 @@ function UB() {
19197
19199
  return st;
19198
19200
  }
19199
19201
  function HB() {
19200
- return st = qt > 0 ? At(Yr, --qt) : 0, Sr--, st === 10 && (Sr = 1, mu--), st;
19202
+ return st = qt > 0 ? At(Gr, --qt) : 0, Dr--, st === 10 && (Dr = 1, mu--), st;
19201
19203
  }
19202
19204
  function en() {
19203
- return st = qt < Fw ? At(Yr, qt++) : 0, Sr++, st === 10 && (Sr = 1, mu++), st;
19205
+ return st = qt < Fw ? At(Gr, qt++) : 0, Dr++, st === 10 && (Dr = 1, mu++), st;
19204
19206
  }
19205
19207
  function Ri() {
19206
- return At(Yr, qt);
19208
+ return At(Gr, qt);
19207
19209
  }
19208
19210
  function jo() {
19209
19211
  return qt;
19210
19212
  }
19211
19213
  function gu(e, t) {
19212
- return Ir(Yr, e, t);
19214
+ return Nr(Gr, e, t);
19213
19215
  }
19214
19216
  function $f(e) {
19215
19217
  switch (e) {
@@ -19250,10 +19252,10 @@ function $f(e) {
19250
19252
  return 0;
19251
19253
  }
19252
19254
  function jB(e) {
19253
- return mu = Sr = 1, Fw = ln(Yr = e), qt = 0, [];
19255
+ return mu = Dr = 1, Fw = ln(Gr = e), qt = 0, [];
19254
19256
  }
19255
19257
  function YB(e) {
19256
- return Yr = "", e;
19258
+ return Gr = "", e;
19257
19259
  }
19258
19260
  function vl(e) {
19259
19261
  return Ow(gu(qt - 1, ed(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
@@ -19412,15 +19414,15 @@ function Yo(e, t, n, i, r, s, a, o, A) {
19412
19414
  }
19413
19415
  function Mp(e, t, n, i, r, s, a, o, A, u, c, l) {
19414
19416
  for (var f = r - 1, d = r === 0 ? s : [""], h = Lw(d), p = 0, v = 0, y = 0; p < i; ++p)
19415
- for (var C = 0, k = Ir(e, f + 1, f = Mw(v = a[p])), E = e; C < h; ++C)
19417
+ for (var C = 0, k = Nr(e, f + 1, f = Mw(v = a[p])), E = e; C < h; ++C)
19416
19418
  (E = Ow(v > 0 ? d[C] + " " + k : Se(k, /&\f/g, d[C]))) && (A[y++] = E);
19417
19419
  return pu(e, t, n, r === 0 ? hu : o, A, u, c, l);
19418
19420
  }
19419
19421
  function JB(e, t, n, i) {
19420
- return pu(e, t, n, _w, _1(UB()), Ir(e, 2, -2), 0, i);
19422
+ return pu(e, t, n, _w, _1(UB()), Nr(e, 2, -2), 0, i);
19421
19423
  }
19422
19424
  function Op(e, t, n, i, r) {
19423
- return pu(e, t, n, R1, Ir(e, 0, i), Ir(e, i + 1, -1), i, r);
19425
+ return pu(e, t, n, R1, Nr(e, 0, i), Nr(e, i + 1, -1), i, r);
19424
19426
  }
19425
19427
  function Qw(e, t, n) {
19426
19428
  switch (FB(e, t)) {
@@ -19521,7 +19523,7 @@ function Qw(e, t, n) {
19521
19523
  return Se(Se(e, /(.+:)(flex-)?(.*)/, Le + "box-pack:$3" + qe + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + Le + e + e;
19522
19524
  // justify-self
19523
19525
  case 4200:
19524
- if (!_n(e, /flex-|baseline/)) return qe + "grid-column-align" + Ir(e, t) + e;
19526
+ if (!_n(e, /flex-|baseline/)) return qe + "grid-column-align" + Nr(e, t) + e;
19525
19527
  break;
19526
19528
  // grid-template-(columns|rows)
19527
19529
  case 2592:
@@ -19732,9 +19734,9 @@ See https://styled-components.com/docs/basics#define-styled-components-outside-o
19732
19734
  console.error = r;
19733
19735
  }
19734
19736
  }
19735
- }, vu = Object.freeze([]), Nr = Object.freeze({});
19737
+ }, vu = Object.freeze([]), Br = Object.freeze({});
19736
19738
  function iR(e, t, n) {
19737
- return n === void 0 && (n = Nr), e.theme !== n.theme && e.theme || t || n.theme;
19739
+ return n === void 0 && (n = Br), e.theme !== n.theme && e.theme || t || n.theme;
19738
19740
  }
19739
19741
  var td = /* @__PURE__ */ new Set(["a", "abbr", "address", "area", "article", "aside", "audio", "b", "base", "bdi", "bdo", "big", "blockquote", "body", "br", "button", "canvas", "caption", "cite", "code", "col", "colgroup", "data", "datalist", "dd", "del", "details", "dfn", "dialog", "div", "dl", "dt", "em", "embed", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "keygen", "label", "legend", "li", "link", "main", "map", "mark", "menu", "menuitem", "meta", "meter", "nav", "noscript", "object", "ol", "optgroup", "option", "output", "p", "param", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "script", "section", "select", "small", "source", "span", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "u", "ul", "use", "var", "video", "wbr", "circle", "clipPath", "defs", "ellipse", "foreignObject", "g", "image", "line", "linearGradient", "marker", "mask", "path", "pattern", "polygon", "polyline", "radialGradient", "rect", "stop", "svg", "text", "tspan"]), rR = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g, sR = /(^-|-$)/g;
19740
19742
  function Fp(e) {
@@ -19790,7 +19792,7 @@ function Jw(e, t, n) {
19790
19792
  }
19791
19793
  return e;
19792
19794
  }
19793
- function Dr(e) {
19795
+ function Rr(e) {
19794
19796
  return typeof e == "function";
19795
19797
  }
19796
19798
  function M1(e) {
@@ -19804,13 +19806,13 @@ function id(e, t) {
19804
19806
  for (var n = e[0], i = 1; i < e.length; i++) n += e[i];
19805
19807
  return n;
19806
19808
  }
19807
- function Br(e) {
19809
+ function _r(e) {
19808
19810
  return e !== null && typeof e == "object" && e.constructor.name === Object.name && !("props" in e && e.$$typeof);
19809
19811
  }
19810
19812
  function rd(e, t, n) {
19811
- if (n === void 0 && (n = !1), !n && !Br(e) && !Array.isArray(e)) return t;
19813
+ if (n === void 0 && (n = !1), !n && !_r(e) && !Array.isArray(e)) return t;
19812
19814
  if (Array.isArray(t)) for (var i = 0; i < t.length; i++) e[i] = rd(e[i], t[i]);
19813
- else if (Br(t)) for (var i in t) e[i] = rd(e[i], t[i]);
19815
+ else if (_r(t)) for (var i in t) e[i] = rd(e[i], t[i]);
19814
19816
  return e;
19815
19817
  }
19816
19818
  function O1(e, t) {
@@ -19865,7 +19867,7 @@ function pR() {
19865
19867
  n = n.replace(/%[a-z]/, a);
19866
19868
  }), n;
19867
19869
  }
19868
- function Wr(e) {
19870
+ function zr(e) {
19869
19871
  for (var t = [], n = 1; n < arguments.length; n++) t[n - 1] = arguments[n];
19870
19872
  return process.env.NODE_ENV === "production" ? new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e, " for more information.").concat(t.length > 0 ? " Args: ".concat(t.join(", ")) : "")) : new Error(pR.apply(void 0, Wi([mR[e]], t, !1)).trim());
19871
19873
  }
@@ -19878,7 +19880,7 @@ var gR = (function() {
19878
19880
  return n;
19879
19881
  }, e.prototype.insertRules = function(t, n) {
19880
19882
  if (t >= this.groupSizes.length) {
19881
- for (var i = this.groupSizes, r = i.length, s = r; t >= s; ) if ((s <<= 1) < 0) throw Wr(16, "".concat(t));
19883
+ for (var i = this.groupSizes, r = i.length, s = r; t >= s; ) if ((s <<= 1) < 0) throw zr(16, "".concat(t));
19882
19884
  this.groupSizes = new Uint32Array(s), this.groupSizes.set(i), this.length = s;
19883
19885
  for (var a = r; a < s; a++) this.groupSizes[a] = 0;
19884
19886
  }
@@ -19899,7 +19901,7 @@ var gR = (function() {
19899
19901
  if (Wo.has(e)) return Wo.get(e);
19900
19902
  for (; CA.has(Go); ) Go++;
19901
19903
  var t = Go++;
19902
- if (process.env.NODE_ENV !== "production" && ((0 | t) < 0 || t > bR)) throw Wr(16, "".concat(t));
19904
+ if (process.env.NODE_ENV !== "production" && ((0 | t) < 0 || t > bR)) throw zr(16, "".concat(t));
19903
19905
  return Wo.set(e, t), CA.set(t, e), t;
19904
19906
  }, vR = function(e, t) {
19905
19907
  Go = t + 1, Wo.set(e, t), CA.set(t, e);
@@ -19941,7 +19943,7 @@ var Xw = function(e) {
19941
19943
  var a = i[r];
19942
19944
  if (a.ownerNode === n) return a;
19943
19945
  }
19944
- throw Wr(17);
19946
+ throw zr(17);
19945
19947
  })(this.element), this.length = 0;
19946
19948
  }
19947
19949
  return e.prototype.insertRule = function(t, n) {
@@ -19984,7 +19986,7 @@ var Xw = function(e) {
19984
19986
  }, e;
19985
19987
  })(), Wp = EA, SR = { isServer: !EA, useCSSOMInjection: !tR }, Kw = (function() {
19986
19988
  function e(t, n, i) {
19987
- t === void 0 && (t = Nr), n === void 0 && (n = {});
19989
+ t === void 0 && (t = Br), n === void 0 && (n = {});
19988
19990
  var r = this;
19989
19991
  this.options = Nt(Nt({}, SR), t), this.gs = n, this.names = new Map(i), this.server = !!t.isServer, !this.server && EA && Wp && (Wp = !1, Yp(this)), O1(this, function() {
19990
19992
  return (function(s) {
@@ -20044,7 +20046,7 @@ function Zw(e, t) {
20044
20046
  });
20045
20047
  }
20046
20048
  function BR(e) {
20047
- var t, n, i, r = Nr, s = r.options, a = s === void 0 ? Nr : s, o = r.plugins, A = o === void 0 ? vu : o, u = function(f, d, h) {
20049
+ var t, n, i, r = Br, s = r.options, a = s === void 0 ? Br : s, o = r.plugins, A = o === void 0 ? vu : o, u = function(f, d, h) {
20048
20050
  return h.startsWith(n) && h.endsWith(n) && h.replaceAll(n, "").length > 0 ? ".".concat(t) : f;
20049
20051
  }, c = A.slice();
20050
20052
  c.push(function(f) {
@@ -20060,7 +20062,7 @@ function BR(e) {
20060
20062
  })))), C;
20061
20063
  };
20062
20064
  return l.hash = A.length ? A.reduce(function(f, d) {
20063
- return d.name || Wr(15), ki(f, d.name);
20065
+ return d.name || zr(15), ki(f, d.name);
20064
20066
  }, jw).toString() : "", l;
20065
20067
  }
20066
20068
  var RR = new Kw(), sd = BR(), $w = at.createContext({ shouldForwardProp: void 0, styleSheet: RR, stylis: sd });
@@ -20077,7 +20079,7 @@ var ad = (function() {
20077
20079
  var a = i.name + s.hash;
20078
20080
  r.hasNameForId(i.id, a) || r.insertRules(i.id, a, s(i.rules, a, "@keyframes"));
20079
20081
  }, this.name = t, this.id = "sc-keyframes-".concat(t), this.rules = n, O1(this, function() {
20080
- throw Wr(12, String(i.name));
20082
+ throw zr(12, String(i.name));
20081
20083
  });
20082
20084
  }
20083
20085
  return e.prototype.getName = function(t) {
@@ -20100,27 +20102,27 @@ var e3 = function(e) {
20100
20102
  var t, n, i = [];
20101
20103
  for (var r in e) {
20102
20104
  var s = e[r];
20103
- e.hasOwnProperty(r) && !e3(s) && (Array.isArray(s) && s.isCss || Dr(s) ? i.push("".concat(zp(r), ":"), s, ";") : Br(s) ? i.push.apply(i, Wi(Wi(["".concat(r, " {")], t3(s), !1), ["}"], !1)) : i.push("".concat(zp(r), ": ").concat((t = r, (n = s) == null || typeof n == "boolean" || n === "" ? "" : typeof n != "number" || n === 0 || t in eR || t.startsWith("--") ? String(n).trim() : "".concat(n, "px")), ";")));
20105
+ e.hasOwnProperty(r) && !e3(s) && (Array.isArray(s) && s.isCss || Rr(s) ? i.push("".concat(zp(r), ":"), s, ";") : _r(s) ? i.push.apply(i, Wi(Wi(["".concat(r, " {")], t3(s), !1), ["}"], !1)) : i.push("".concat(zp(r), ": ").concat((t = r, (n = s) == null || typeof n == "boolean" || n === "" ? "" : typeof n != "number" || n === 0 || t in eR || t.startsWith("--") ? String(n).trim() : "".concat(n, "px")), ";")));
20104
20106
  }
20105
20107
  return i;
20106
20108
  };
20107
20109
  function _i(e, t, n, i) {
20108
20110
  if (e3(e)) return [];
20109
20111
  if (M1(e)) return [".".concat(e.styledComponentId)];
20110
- if (Dr(e)) {
20111
- if (!Dr(s = e) || s.prototype && s.prototype.isReactComponent || !t) return [e];
20112
+ if (Rr(e)) {
20113
+ if (!Rr(s = e) || s.prototype && s.prototype.isReactComponent || !t) return [e];
20112
20114
  var r = e(t);
20113
- return process.env.NODE_ENV === "production" || typeof r != "object" || Array.isArray(r) || r instanceof ad || Br(r) || r === null || console.error("".concat(Gw(e), " 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.")), _i(r, t, n, i);
20115
+ return process.env.NODE_ENV === "production" || typeof r != "object" || Array.isArray(r) || r instanceof ad || _r(r) || r === null || console.error("".concat(Gw(e), " 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.")), _i(r, t, n, i);
20114
20116
  }
20115
20117
  var s;
20116
- return e instanceof ad ? n ? (e.inject(n, i), [e.getName(i)]) : [e] : Br(e) ? t3(e) : Array.isArray(e) ? Array.prototype.concat.apply(vu, e.map(function(a) {
20118
+ return e instanceof ad ? n ? (e.inject(n, i), [e.getName(i)]) : [e] : _r(e) ? t3(e) : Array.isArray(e) ? Array.prototype.concat.apply(vu, e.map(function(a) {
20117
20119
  return _i(a, t, n, i);
20118
20120
  })) : [e.toString()];
20119
20121
  }
20120
20122
  function PR(e) {
20121
20123
  for (var t = 0; t < e.length; t += 1) {
20122
20124
  var n = e[t];
20123
- if (Dr(n) && !M1(n)) return !1;
20125
+ if (Rr(n) && !M1(n)) return !1;
20124
20126
  }
20125
20127
  return !0;
20126
20128
  }
@@ -20181,9 +20183,9 @@ function LR(e, t, n) {
20181
20183
  return (function(b, T, B) {
20182
20184
  var P = b.attrs, x = b.componentStyle, _ = b.defaultProps, I = b.foldedComponentIds, N = b.styledComponentId, R = b.target, L = at.useContext(n3), W = Gp(), z = b.shouldForwardProp || W.shouldForwardProp;
20183
20185
  process.env.NODE_ENV !== "production" && gh(N);
20184
- var J = iR(T, L, _) || Nr, $ = (function(re, ie, pe) {
20186
+ var J = iR(T, L, _) || Br, $ = (function(re, ie, pe) {
20185
20187
  for (var oe, fe = Nt(Nt({}, ie), { className: void 0, theme: pe }), X = 0; X < re.length; X += 1) {
20186
- var de = Dr(oe = re[X]) ? oe(fe) : oe;
20188
+ var de = Rr(oe = re[X]) ? oe(fe) : oe;
20187
20189
  for (var te in de) fe[te] = te === "className" ? xi(fe[te], de[te]) : te === "style" ? Nt(Nt({}, fe[te]), de[te]) : de[te];
20188
20190
  }
20189
20191
  return ie.className && (fe.className = xi(fe.className, ie.className)), fe;
@@ -20236,17 +20238,17 @@ function Vp(e, t) {
20236
20238
  var Jp = function(e) {
20237
20239
  return Object.assign(e, { isCss: !0 });
20238
20240
  };
20239
- function Rr(e) {
20241
+ function Pr(e) {
20240
20242
  for (var t = [], n = 1; n < arguments.length; n++) t[n - 1] = arguments[n];
20241
- if (Dr(e) || Br(e)) return Jp(_i(Vp(vu, Wi([e], t, !0))));
20243
+ if (Rr(e) || _r(e)) return Jp(_i(Vp(vu, Wi([e], t, !0))));
20242
20244
  var i = e;
20243
20245
  return t.length === 0 && i.length === 1 && typeof i[0] == "string" ? _i(i) : Jp(_i(Vp(i, t)));
20244
20246
  }
20245
20247
  function od(e, t, n) {
20246
- if (n === void 0 && (n = Nr), !t) throw Wr(1, t);
20248
+ if (n === void 0 && (n = Br), !t) throw zr(1, t);
20247
20249
  var i = function(r) {
20248
20250
  for (var s = [], a = 1; a < arguments.length; a++) s[a - 1] = arguments[a];
20249
- return e(t, n, Rr.apply(void 0, Wi([r], s, !1)));
20251
+ return e(t, n, Pr.apply(void 0, Wi([r], s, !1)));
20250
20252
  };
20251
20253
  return i.attrs = function(r) {
20252
20254
  return od(e, t, Nt(Nt({}, n), { attrs: Array.prototype.concat(n.attrs, r).filter(Boolean) }));
@@ -20263,7 +20265,7 @@ td.forEach(function(e) {
20263
20265
  function Tt(e) {
20264
20266
  for (var t = [], n = 1; n < arguments.length; n++) t[n - 1] = arguments[n];
20265
20267
  process.env.NODE_ENV !== "production" && typeof navigator < "u" && navigator.product === "ReactNative" && console.warn("`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated.");
20266
- var i = id(Rr.apply(void 0, Wi([e], t, !1))), r = Ww(i);
20268
+ var i = id(Pr.apply(void 0, Wi([e], t, !1))), r = Ww(i);
20267
20269
  return new ad(r, i);
20268
20270
  }
20269
20271
  process.env.NODE_ENV !== "production" && typeof navigator < "u" && navigator.product === "ReactNative" && console.warn(`It looks like you've imported 'styled-components' on React Native.
@@ -22581,7 +22583,7 @@ _t.prototype.property = "";
22581
22583
  _t.prototype.spaceSeparated = !1;
22582
22584
  _t.prototype.space = void 0;
22583
22585
  let vP = 0;
22584
- const Ie = Ki(), it = Ki(), ud = Ki(), Ae = Ki(), We = Ki(), mr = Ki(), Ot = Ki();
22586
+ const Ie = Ki(), it = Ki(), ud = Ki(), Ae = Ki(), We = Ki(), gr = Ki(), Ot = Ki();
22585
22587
  function Ki() {
22586
22588
  return 2 ** ++vP;
22587
22589
  }
@@ -22590,7 +22592,7 @@ const cd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
22590
22592
  boolean: Ie,
22591
22593
  booleanish: it,
22592
22594
  commaOrSpaceSeparated: Ot,
22593
- commaSeparated: mr,
22595
+ commaSeparated: gr,
22594
22596
  number: Ae,
22595
22597
  overloadedBoolean: ud,
22596
22598
  spaceSeparated: We
@@ -22625,7 +22627,7 @@ U1.prototype.defined = !0;
22625
22627
  function sg(e, t, n) {
22626
22628
  n && (e[t] = n);
22627
22629
  }
22628
- function Gr(e) {
22630
+ function qr(e) {
22629
22631
  const t = {}, n = {};
22630
22632
  for (const [i, r] of Object.entries(e.properties)) {
22631
22633
  const s = new U1(
@@ -22638,7 +22640,7 @@ function Gr(e) {
22638
22640
  }
22639
22641
  return new Ra(t, n, e.space);
22640
22642
  }
22641
- const y3 = Gr({
22643
+ const y3 = qr({
22642
22644
  properties: {
22643
22645
  ariaActiveDescendant: null,
22644
22646
  ariaAtomic: it,
@@ -22700,7 +22702,7 @@ function w3(e, t) {
22700
22702
  function k3(e, t) {
22701
22703
  return w3(e, t.toLowerCase());
22702
22704
  }
22703
- const yP = Gr({
22705
+ const yP = qr({
22704
22706
  attributes: {
22705
22707
  acceptcharset: "accept-charset",
22706
22708
  classname: "class",
@@ -22711,7 +22713,7 @@ const yP = Gr({
22711
22713
  properties: {
22712
22714
  // Standard Properties.
22713
22715
  abbr: null,
22714
- accept: mr,
22716
+ accept: gr,
22715
22717
  acceptCharset: We,
22716
22718
  accessKey: We,
22717
22719
  action: null,
@@ -22738,7 +22740,7 @@ const yP = Gr({
22738
22740
  contentEditable: it,
22739
22741
  controls: Ie,
22740
22742
  controlsList: We,
22741
- coords: Ae | mr,
22743
+ coords: Ae | gr,
22742
22744
  crossOrigin: null,
22743
22745
  data: null,
22744
22746
  dateTime: null,
@@ -23061,7 +23063,7 @@ const yP = Gr({
23061
23063
  },
23062
23064
  space: "html",
23063
23065
  transform: k3
23064
- }), wP = Gr({
23066
+ }), wP = qr({
23065
23067
  attributes: {
23066
23068
  accentHeight: "accent-height",
23067
23069
  alignmentBaseline: "alignment-baseline",
@@ -23320,9 +23322,9 @@ const yP = Gr({
23320
23322
  from: null,
23321
23323
  fx: null,
23322
23324
  fy: null,
23323
- g1: mr,
23324
- g2: mr,
23325
- glyphName: mr,
23325
+ g1: gr,
23326
+ g2: gr,
23327
+ glyphName: gr,
23326
23328
  glyphOrientationHorizontal: null,
23327
23329
  glyphOrientationVertical: null,
23328
23330
  glyphRef: null,
@@ -23620,7 +23622,7 @@ const yP = Gr({
23620
23622
  },
23621
23623
  space: "svg",
23622
23624
  transform: w3
23623
- }), E3 = Gr({
23625
+ }), E3 = qr({
23624
23626
  properties: {
23625
23627
  xLinkActuate: null,
23626
23628
  xLinkArcRole: null,
@@ -23634,12 +23636,12 @@ const yP = Gr({
23634
23636
  transform(e, t) {
23635
23637
  return "xlink:" + t.slice(5).toLowerCase();
23636
23638
  }
23637
- }), C3 = Gr({
23639
+ }), C3 = qr({
23638
23640
  attributes: { xmlnsxlink: "xmlns:xlink" },
23639
23641
  properties: { xmlnsXLink: null, xmlns: null },
23640
23642
  space: "xmlns",
23641
23643
  transform: k3
23642
- }), T3 = Gr({
23644
+ }), T3 = qr({
23643
23645
  properties: { xmlBase: null, xmlLang: null, xmlSpace: null },
23644
23646
  space: "xml",
23645
23647
  transform(e, t) {
@@ -23690,7 +23692,7 @@ function TP(e) {
23690
23692
  function xP(e) {
23691
23693
  return e.charAt(1).toUpperCase();
23692
23694
  }
23693
- const Eu = v3([y3, yP, E3, C3, T3], "html"), zr = v3([y3, wP, E3, C3, T3], "svg");
23695
+ const Eu = v3([y3, yP, E3, C3, T3], "html"), Vr = v3([y3, wP, E3, C3, T3], "svg");
23694
23696
  function og(e) {
23695
23697
  const t = String(e || "").trim();
23696
23698
  return t ? t.split(/[ \t\n\r\f]+/g) : [];
@@ -23811,10 +23813,10 @@ function SP() {
23811
23813
  }
23812
23814
  return rr;
23813
23815
  }
23814
- var ms = {}, cg;
23816
+ var gs = {}, cg;
23815
23817
  function NP() {
23816
- if (cg) return ms;
23817
- cg = 1, Object.defineProperty(ms, "__esModule", { value: !0 }), ms.camelCase = void 0;
23818
+ if (cg) return gs;
23819
+ cg = 1, Object.defineProperty(gs, "__esModule", { value: !0 }), gs.camelCase = void 0;
23818
23820
  var e = /^--[a-zA-Z0-9_-]+$/, t = /-([a-z])/g, n = /^[^-]+$/, i = /^-(webkit|moz|ms|o|khtml)-/, r = /^-(ms)-/, s = function(u) {
23819
23821
  return !u || n.test(u) || e.test(u);
23820
23822
  }, a = function(u, c) {
@@ -23824,13 +23826,13 @@ function NP() {
23824
23826
  }, A = function(u, c) {
23825
23827
  return c === void 0 && (c = {}), s(u) ? u : (u = u.toLowerCase(), c.reactCompat ? u = u.replace(r, o) : u = u.replace(i, o), u.replace(t, a));
23826
23828
  };
23827
- return ms.camelCase = A, ms;
23829
+ return gs.camelCase = A, gs;
23828
23830
  }
23829
- var ps, lg;
23831
+ var bs, lg;
23830
23832
  function DP() {
23831
- if (lg) return ps;
23833
+ if (lg) return bs;
23832
23834
  lg = 1;
23833
- var e = ps && ps.__importDefault || function(r) {
23835
+ var e = bs && bs.__importDefault || function(r) {
23834
23836
  return r && r.__esModule ? r : { default: r };
23835
23837
  }, t = e(SP()), n = NP();
23836
23838
  function i(r, s) {
@@ -23839,7 +23841,7 @@ function DP() {
23839
23841
  o && A && (a[(0, n.camelCase)(o, s)] = A);
23840
23842
  }), a;
23841
23843
  }
23842
- return i.default = i, ps = i, ps;
23844
+ return i.default = i, bs = i, bs;
23843
23845
  }
23844
23846
  var BP = DP();
23845
23847
  const RP = /* @__PURE__ */ fi(BP), Cu = I3("end"), Cn = I3("start");
@@ -23989,7 +23991,7 @@ function FP(e, t) {
23989
23991
  ignoreInvalidStyle: t.ignoreInvalidStyle || !1,
23990
23992
  passKeys: t.passKeys !== !1,
23991
23993
  passNode: t.passNode || !1,
23992
- schema: t.space === "svg" ? zr : Eu,
23994
+ schema: t.space === "svg" ? Vr : Eu,
23993
23995
  stylePropertyNameCase: t.stylePropertyNameCase || "dom",
23994
23996
  tableCellAlignToStyle: t.tableCellAlignToStyle !== !1
23995
23997
  }, s = N3(r, e, void 0);
@@ -24017,7 +24019,7 @@ function N3(e, t, n) {
24017
24019
  function QP(e, t, n) {
24018
24020
  const i = e.schema;
24019
24021
  let r = i;
24020
- t.tagName.toLowerCase() === "svg" && i.space === "html" && (r = zr, e.schema = r), e.ancestors.push(t);
24022
+ t.tagName.toLowerCase() === "svg" && i.space === "html" && (r = Vr, e.schema = r), e.ancestors.push(t);
24021
24023
  const s = B3(e, t.tagName, !1), a = qP(e, t);
24022
24024
  let o = W1(e, t);
24023
24025
  return OP.has(t.tagName) && (o = o.filter(function(A) {
@@ -24043,7 +24045,7 @@ function HP(e, t) {
24043
24045
  function jP(e, t, n) {
24044
24046
  const i = e.schema;
24045
24047
  let r = i;
24046
- t.name === "svg" && i.space === "html" && (r = zr, e.schema = r), e.ancestors.push(t);
24048
+ t.name === "svg" && i.space === "html" && (r = Vr, e.schema = r), e.ancestors.push(t);
24047
24049
  const s = t.name === null ? e.Fragment : B3(e, t.name, !0), a = VP(e, t), o = W1(e, t);
24048
24050
  return D3(e, a, s, t), Y1(a, o), e.ancestors.pop(), e.schema = i, e.create(t, s, a, n);
24049
24051
  }
@@ -24391,7 +24393,7 @@ function mi(e) {
24391
24393
  return n !== null && n > -1 && e.test(String.fromCharCode(n));
24392
24394
  }
24393
24395
  }
24394
- function qr(e) {
24396
+ function Jr(e) {
24395
24397
  const t = [];
24396
24398
  let n = -1, i = 0, r = 0;
24397
24399
  for (; ++n < e.length; ) {
@@ -24573,7 +24575,7 @@ function cM(e) {
24573
24575
  function lM(e, t, n) {
24574
24576
  return Pe(e, e.attempt(this.parser.constructs.document, t, n), "linePrefix", this.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4);
24575
24577
  }
24576
- function _r(e) {
24578
+ function Mr(e) {
24577
24579
  if (e === null || Ye(e) || zi(e))
24578
24580
  return 1;
24579
24581
  if (Tu(e))
@@ -24649,7 +24651,7 @@ function fM(e, t) {
24649
24651
  return e;
24650
24652
  }
24651
24653
  function dM(e, t) {
24652
- const n = this.parser.constructs.attentionMarkers.null, i = this.previous, r = _r(i);
24654
+ const n = this.parser.constructs.attentionMarkers.null, i = this.previous, r = Mr(i);
24653
24655
  let s;
24654
24656
  return a;
24655
24657
  function a(A) {
@@ -24658,7 +24660,7 @@ function dM(e, t) {
24658
24660
  function o(A) {
24659
24661
  if (A === s)
24660
24662
  return e.consume(A), o;
24661
- const u = e.exit("attentionSequence"), c = _r(A), l = !c || c === 2 && r || n.includes(A), f = !r || r === 2 && c || n.includes(i);
24663
+ const u = e.exit("attentionSequence"), c = Mr(A), l = !c || c === 2 && r || n.includes(A), f = !r || r === 2 && c || n.includes(i);
24662
24664
  return u._open = !!(s === 42 ? l : l && (r || !f)), u._close = !!(s === 42 ? f : f && (c || !l)), t(A);
24663
24665
  }
24664
24666
  }
@@ -25040,7 +25042,7 @@ class BM {
25040
25042
  const r = n || 0;
25041
25043
  this.setCursor(Math.trunc(t));
25042
25044
  const s = this.right.splice(this.right.length - r, Number.POSITIVE_INFINITY);
25043
- return i && gs(this.left, i), s.reverse();
25045
+ return i && vs(this.left, i), s.reverse();
25044
25046
  }
25045
25047
  /**
25046
25048
  * Remove and return the highest-numbered item in the array, so
@@ -25075,7 +25077,7 @@ class BM {
25075
25077
  * Nothing.
25076
25078
  */
25077
25079
  pushMany(t) {
25078
- this.setCursor(Number.POSITIVE_INFINITY), gs(this.left, t);
25080
+ this.setCursor(Number.POSITIVE_INFINITY), vs(this.left, t);
25079
25081
  }
25080
25082
  /**
25081
25083
  * Inserts a single item to the low-numbered side of the array;
@@ -25099,7 +25101,7 @@ class BM {
25099
25101
  * Nothing.
25100
25102
  */
25101
25103
  unshiftMany(t) {
25102
- this.setCursor(0), gs(this.right, t.reverse());
25104
+ this.setCursor(0), vs(this.right, t.reverse());
25103
25105
  }
25104
25106
  /**
25105
25107
  * Move the cursor to a specific position in the array. Requires
@@ -25117,14 +25119,14 @@ class BM {
25117
25119
  if (!(t === this.left.length || t > this.left.length && this.right.length === 0 || t < 0 && this.left.length === 0))
25118
25120
  if (t < this.left.length) {
25119
25121
  const n = this.left.splice(t, Number.POSITIVE_INFINITY);
25120
- gs(this.right, n.reverse());
25122
+ vs(this.right, n.reverse());
25121
25123
  } else {
25122
25124
  const n = this.right.splice(this.left.length + this.right.length - t, Number.POSITIVE_INFINITY);
25123
- gs(this.left, n.reverse());
25125
+ vs(this.left, n.reverse());
25124
25126
  }
25125
25127
  }
25126
25128
  }
25127
- function gs(e, t) {
25129
+ function vs(e, t) {
25128
25130
  let n = 0;
25129
25131
  if (t.length < 1e4)
25130
25132
  e.push(...t);
@@ -26694,18 +26696,18 @@ function $O(e) {
26694
26696
  return me;
26695
26697
  }
26696
26698
  function r(ee, me, Ce) {
26697
- let Re = me - 1, Ue = -1, Xt = !1, gi, In, ts, ns;
26699
+ let Re = me - 1, Ue = -1, Xt = !1, gi, In, is, rs;
26698
26700
  for (; ++Re <= Ce; ) {
26699
26701
  const Mt = ee[Re];
26700
26702
  switch (Mt[1].type) {
26701
26703
  case "listUnordered":
26702
26704
  case "listOrdered":
26703
26705
  case "blockQuote": {
26704
- Mt[0] === "enter" ? Ue++ : Ue--, ns = void 0;
26706
+ Mt[0] === "enter" ? Ue++ : Ue--, rs = void 0;
26705
26707
  break;
26706
26708
  }
26707
26709
  case "lineEndingBlank": {
26708
- Mt[0] === "enter" && (gi && !ns && !Ue && !ts && (ts = Re), ns = void 0);
26710
+ Mt[0] === "enter" && (gi && !rs && !Ue && !is && (is = Re), rs = void 0);
26709
26711
  break;
26710
26712
  }
26711
26713
  case "linePrefix":
@@ -26715,7 +26717,7 @@ function $O(e) {
26715
26717
  case "listItemPrefixWhitespace":
26716
26718
  break;
26717
26719
  default:
26718
- ns = void 0;
26720
+ rs = void 0;
26719
26721
  }
26720
26722
  if (!Ue && Mt[0] === "enter" && Mt[1].type === "listItemPrefix" || Ue === -1 && Mt[0] === "exit" && (Mt[1].type === "listUnordered" || Mt[1].type === "listOrdered")) {
26721
26723
  if (gi) {
@@ -26727,7 +26729,7 @@ function $O(e) {
26727
26729
  In && (ee[In][1].type = "lineEndingBlank", Xt = !0), Sn[1].type = "lineEnding", In = er;
26728
26730
  } else if (!(Sn[1].type === "linePrefix" || Sn[1].type === "blockQuotePrefix" || Sn[1].type === "blockQuotePrefixWhitespace" || Sn[1].type === "blockQuoteMarker" || Sn[1].type === "listItemIndent")) break;
26729
26731
  }
26730
- ts && (!In || ts < In) && (gi._spread = !0), gi.end = Object.assign({}, In ? ee[In][1].start : Mt[1].end), ee.splice(In || Re, 0, ["exit", gi, Mt[2]]), Re++, Ce++;
26732
+ is && (!In || is < In) && (gi._spread = !0), gi.end = Object.assign({}, In ? ee[In][1].start : Mt[1].end), ee.splice(In || Re, 0, ["exit", gi, Mt[2]]), Re++, Ce++;
26731
26733
  }
26732
26734
  if (Mt[1].type === "listItemPrefix") {
26733
26735
  const er = {
@@ -26737,7 +26739,7 @@ function $O(e) {
26737
26739
  // @ts-expect-error: we’ll add `end` in a second.
26738
26740
  end: void 0
26739
26741
  };
26740
- gi = er, ee.splice(Re, 0, ["enter", er, Mt[2]]), Re++, Ce++, ts = void 0, ns = !0;
26742
+ gi = er, ee.splice(Re, 0, ["enter", er, Mt[2]]), Re++, Ce++, is = void 0, rs = !0;
26741
26743
  }
26742
26744
  }
26743
26745
  }
@@ -27167,7 +27169,7 @@ function aL(e, t) {
27167
27169
  return e.patch(t, n), e.applyData(t, n);
27168
27170
  }
27169
27171
  function oL(e, t) {
27170
- const n = typeof e.options.clobberPrefix == "string" ? e.options.clobberPrefix : "user-content-", i = String(t.identifier).toUpperCase(), r = qr(i.toLowerCase()), s = e.footnoteOrder.indexOf(i);
27172
+ const n = typeof e.options.clobberPrefix == "string" ? e.options.clobberPrefix : "user-content-", i = String(t.identifier).toUpperCase(), r = Jr(i.toLowerCase()), s = e.footnoteOrder.indexOf(i);
27171
27173
  let a, o = e.footnoteCounts.get(i);
27172
27174
  o === void 0 ? (o = 0, e.footnoteOrder.push(i), a = e.footnoteOrder.length) : a = s + 1, o += 1, e.footnoteCounts.set(i, o);
27173
27175
  const A = {
@@ -27219,13 +27221,13 @@ function cL(e, t) {
27219
27221
  const n = String(t.identifier).toUpperCase(), i = e.definitionById.get(n);
27220
27222
  if (!i)
27221
27223
  return z3(e, t);
27222
- const r = { src: qr(i.url || ""), alt: t.alt };
27224
+ const r = { src: Jr(i.url || ""), alt: t.alt };
27223
27225
  i.title !== null && i.title !== void 0 && (r.title = i.title);
27224
27226
  const s = { type: "element", tagName: "img", properties: r, children: [] };
27225
27227
  return e.patch(t, s), e.applyData(t, s);
27226
27228
  }
27227
27229
  function lL(e, t) {
27228
- const n = { src: qr(t.url) };
27230
+ const n = { src: Jr(t.url) };
27229
27231
  t.alt !== null && t.alt !== void 0 && (n.alt = t.alt), t.title !== null && t.title !== void 0 && (n.title = t.title);
27230
27232
  const i = { type: "element", tagName: "img", properties: n, children: [] };
27231
27233
  return e.patch(t, i), e.applyData(t, i);
@@ -27245,7 +27247,7 @@ function dL(e, t) {
27245
27247
  const n = String(t.identifier).toUpperCase(), i = e.definitionById.get(n);
27246
27248
  if (!i)
27247
27249
  return z3(e, t);
27248
- const r = { href: qr(i.url || "") };
27250
+ const r = { href: Jr(i.url || "") };
27249
27251
  i.title !== null && i.title !== void 0 && (r.title = i.title);
27250
27252
  const s = {
27251
27253
  type: "element",
@@ -27256,7 +27258,7 @@ function dL(e, t) {
27256
27258
  return e.patch(t, s), e.applyData(t, s);
27257
27259
  }
27258
27260
  function hL(e, t) {
27259
- const n = { href: qr(t.url) };
27261
+ const n = { href: Jr(t.url) };
27260
27262
  t.title !== null && t.title !== void 0 && (n.title = t.title);
27261
27263
  const i = {
27262
27264
  type: "element",
@@ -27529,7 +27531,7 @@ const V3 = -1, Iu = 0, js = 1, DA = 2, V1 = 3, J1 = 4, X1 = 5, K1 = 6, J3 = 7, X
27529
27531
  return n(new Sg[s](a), r);
27530
27532
  };
27531
27533
  return i;
27532
- }, Ng = (e) => SL(/* @__PURE__ */ new Map(), e)(0), sr = "", { toString: NL } = {}, { keys: DL } = Object, bs = (e) => {
27534
+ }, Ng = (e) => SL(/* @__PURE__ */ new Map(), e)(0), sr = "", { toString: NL } = {}, { keys: DL } = Object, ys = (e) => {
27533
27535
  const t = typeof e;
27534
27536
  if (t !== "object" || !e)
27535
27537
  return [Iu, t];
@@ -27558,7 +27560,7 @@ const V3 = -1, Iu = 0, js = 1, DA = 2, V1 = 3, J1 = 4, X1 = 5, K1 = 6, J3 = 7, X
27558
27560
  }, s = (a) => {
27559
27561
  if (n.has(a))
27560
27562
  return n.get(a);
27561
- let [o, A] = bs(a);
27563
+ let [o, A] = ys(a);
27562
27564
  switch (o) {
27563
27565
  case Iu: {
27564
27566
  let c = a;
@@ -27601,7 +27603,7 @@ const V3 = -1, Iu = 0, js = 1, DA = 2, V1 = 3, J1 = 4, X1 = 5, K1 = 6, J3 = 7, X
27601
27603
  return s(a.toJSON());
27602
27604
  const c = [], l = r([o, c], a);
27603
27605
  for (const f of DL(a))
27604
- (e || !uo(bs(a[f]))) && c.push([s(f), s(a[f])]);
27606
+ (e || !uo(ys(a[f]))) && c.push([s(f), s(a[f])]);
27605
27607
  return l;
27606
27608
  }
27607
27609
  case V1:
@@ -27613,13 +27615,13 @@ const V3 = -1, Iu = 0, js = 1, DA = 2, V1 = 3, J1 = 4, X1 = 5, K1 = 6, J3 = 7, X
27613
27615
  case X1: {
27614
27616
  const c = [], l = r([o, c], a);
27615
27617
  for (const [f, d] of a)
27616
- (e || !(uo(bs(f)) || uo(bs(d)))) && c.push([s(f), s(d)]);
27618
+ (e || !(uo(ys(f)) || uo(ys(d)))) && c.push([s(f), s(d)]);
27617
27619
  return l;
27618
27620
  }
27619
27621
  case K1: {
27620
27622
  const c = [], l = r([o, c], a);
27621
27623
  for (const f of a)
27622
- (e || !uo(bs(f))) && c.push(s(f));
27624
+ (e || !uo(ys(f))) && c.push(s(f));
27623
27625
  return l;
27624
27626
  }
27625
27627
  }
@@ -27630,7 +27632,7 @@ const V3 = -1, Iu = 0, js = 1, DA = 2, V1 = 3, J1 = 4, X1 = 5, K1 = 6, J3 = 7, X
27630
27632
  }, Dg = (e, { json: t, lossy: n } = {}) => {
27631
27633
  const i = [];
27632
27634
  return BL(!(t || n), !!t, /* @__PURE__ */ new Map(), i)(e), i;
27633
- }, Pr = typeof structuredClone == "function" ? (
27635
+ }, Or = typeof structuredClone == "function" ? (
27634
27636
  /* c8 ignore start */
27635
27637
  (e, t) => t && ("json" in t || "lossy" in t) ? Ng(Dg(e, t)) : structuredClone(e)
27636
27638
  ) : (e, t) => Ng(Dg(e, t));
@@ -27657,7 +27659,7 @@ function PL(e) {
27657
27659
  );
27658
27660
  if (!u)
27659
27661
  continue;
27660
- const c = e.all(u), l = String(u.identifier).toUpperCase(), f = qr(l.toLowerCase());
27662
+ const c = e.all(u), l = String(u.identifier).toUpperCase(), f = Jr(l.toLowerCase());
27661
27663
  let d = 0;
27662
27664
  const h = [], p = e.footnoteCounts.get(l);
27663
27665
  for (; p !== void 0 && ++d <= p; ) {
@@ -27699,7 +27701,7 @@ function PL(e) {
27699
27701
  type: "element",
27700
27702
  tagName: s,
27701
27703
  properties: {
27702
- ...Pr(a),
27704
+ ...Or(a),
27703
27705
  id: "footnote-label"
27704
27706
  },
27705
27707
  children: [{ type: "text", value: r }]
@@ -27888,10 +27890,10 @@ function WL(e, t) {
27888
27890
  return d(o, c, l);
27889
27891
  if (o.options.passThrough && o.options.passThrough.includes(f)) {
27890
27892
  if ("children" in c) {
27891
- const { children: p, ...v } = c, y = Pr(v);
27893
+ const { children: p, ...v } = c, y = Or(v);
27892
27894
  return y.children = o.all(c), y;
27893
27895
  }
27894
- return Pr(c);
27896
+ return Or(c);
27895
27897
  }
27896
27898
  return (o.options.unknownHandler || qL)(o, c, l);
27897
27899
  }
@@ -27928,7 +27930,7 @@ function zL(e, t) {
27928
27930
  const a = "children" in n ? n.children : [n];
27929
27931
  n = { type: "element", tagName: i, properties: {}, children: a };
27930
27932
  }
27931
- n.type === "element" && s && Object.assign(n.properties, Pr(s)), "children" in n && n.children && r !== null && r !== void 0 && (n.children = r);
27933
+ n.type === "element" && s && Object.assign(n.properties, Or(s)), "children" in n && n.children && r !== null && r !== void 0 && (n.children = r);
27932
27934
  }
27933
27935
  return n;
27934
27936
  }
@@ -29827,7 +29829,7 @@ function ua(e) {
29827
29829
  return "&#x" + e.toString(16).toUpperCase() + ";";
29828
29830
  }
29829
29831
  function BA(e, t, n) {
29830
- const i = _r(e), r = _r(t);
29832
+ const i = Mr(e), r = Mr(t);
29831
29833
  return i === void 0 ? r === void 0 ? (
29832
29834
  // Letter inside:
29833
29835
  // we have to encode *both* letters for `_` as it is looser.
@@ -30905,11 +30907,11 @@ function yU(e) {
30905
30907
  return u === 126 && c[c.length - 1][1].type !== "characterEscape" ? A(h) : (a.enter("strikethroughSequenceTemporary"), d(h));
30906
30908
  }
30907
30909
  function d(h) {
30908
- const p = _r(u);
30910
+ const p = Mr(u);
30909
30911
  if (h === 126)
30910
30912
  return l > 1 ? A(h) : (a.consume(h), l++, d);
30911
30913
  if (l < 2 && !n) return A(h);
30912
- const v = a.exit("strikethroughSequenceTemporary"), y = _r(h);
30914
+ const v = a.exit("strikethroughSequenceTemporary"), y = Mr(h);
30913
30915
  return v._open = !y || y === 2 && !!p, v._close = !p || p === 2 && !!y, o(h);
30914
30916
  }
30915
30917
  }
@@ -31108,15 +31110,15 @@ function xU(e, t) {
31108
31110
  }
31109
31111
  function lo(e, t, n, i, r, s) {
31110
31112
  const a = i === 1 ? "tableHeader" : i === 2 ? "tableDelimiter" : "tableData", o = "tableContent";
31111
- n[0] !== 0 && (s.end = Object.assign({}, or(t.events, n[0])), e.add(n[0], 0, [["exit", s, t]]));
31112
- const A = or(t.events, n[1]);
31113
+ n[0] !== 0 && (s.end = Object.assign({}, Ar(t.events, n[0])), e.add(n[0], 0, [["exit", s, t]]));
31114
+ const A = Ar(t.events, n[1]);
31113
31115
  if (s = {
31114
31116
  type: a,
31115
31117
  start: Object.assign({}, A),
31116
31118
  // Note: correct end is set later.
31117
31119
  end: Object.assign({}, A)
31118
31120
  }, e.add(n[1], 0, [["enter", s, t]]), n[2] !== 0) {
31119
- const u = or(t.events, n[2]), c = or(t.events, n[3]), l = {
31121
+ const u = Ar(t.events, n[2]), c = Ar(t.events, n[3]), l = {
31120
31122
  type: o,
31121
31123
  start: Object.assign({}, u),
31122
31124
  end: Object.assign({}, c)
@@ -31130,13 +31132,13 @@ function lo(e, t, n, i, r, s) {
31130
31132
  }
31131
31133
  e.add(n[3] + 1, 0, [["exit", l, t]]);
31132
31134
  }
31133
- return r !== void 0 && (s.end = Object.assign({}, or(t.events, r)), e.add(r, 0, [["exit", s, t]]), s = void 0), s;
31135
+ return r !== void 0 && (s.end = Object.assign({}, Ar(t.events, r)), e.add(r, 0, [["exit", s, t]]), s = void 0), s;
31134
31136
  }
31135
31137
  function qg(e, t, n, i, r) {
31136
- const s = [], a = or(t.events, n);
31138
+ const s = [], a = Ar(t.events, n);
31137
31139
  r && (r.end = Object.assign({}, a), s.push(["exit", r, t])), i.end = Object.assign({}, a), s.push(["exit", i, t]), e.add(n + 1, 0, s);
31138
31140
  }
31139
- function or(e, t) {
31141
+ function Ar(e, t) {
31140
31142
  const n = e[t], i = n[0] === "enter" ? "start" : "end";
31141
31143
  return n[1][i];
31142
31144
  }
@@ -31358,7 +31360,7 @@ const QU = [
31358
31360
  "solidColor",
31359
31361
  "textArea",
31360
31362
  "textPath"
31361
- ], UU = Ck(Eu, "div"), HU = Ck(zr, "g", QU);
31363
+ ], UU = Ck(Eu, "div"), HU = Ck(Vr, "g", QU);
31362
31364
  function jU(e) {
31363
31365
  const t = String(e), n = [];
31364
31366
  return { toOffset: r, toPoint: i };
@@ -31412,7 +31414,7 @@ function WU(e, t) {
31412
31414
  {
31413
31415
  file: n.file || void 0,
31414
31416
  location: !1,
31415
- schema: n.space === "svg" ? zr : Eu,
31417
+ schema: n.space === "svg" ? Vr : Eu,
31416
31418
  verbose: n.verbose || !1
31417
31419
  },
31418
31420
  e
@@ -31481,7 +31483,7 @@ function xk(e, t) {
31481
31483
  }
31482
31484
  function GU(e, t) {
31483
31485
  const n = e.schema;
31484
- e.schema = t.namespaceURI === Ii.svg ? zr : Eu;
31486
+ e.schema = t.namespaceURI === Ii.svg ? Vr : Eu;
31485
31487
  let i = -1;
31486
31488
  const r = {};
31487
31489
  for (; ++i < t.attrs.length; ) {
@@ -31493,7 +31495,7 @@ function GU(e, t) {
31493
31495
  const o = (
31494
31496
  /** @type {DefaultTreeAdapterMap['template']} */
31495
31497
  t
31496
- ), A = o.sourceCodeLocation, u = A && A.startTag && ur(A.startTag), c = A && A.endTag && ur(A.endTag), l = (
31498
+ ), A = o.sourceCodeLocation, u = A && A.startTag && lr(A.startTag), c = A && A.endTag && lr(A.endTag), l = (
31497
31499
  /** @type {Root} */
31498
31500
  nh(e, o.content)
31499
31501
  );
@@ -31508,7 +31510,7 @@ function qo(e, t, n) {
31508
31510
  }
31509
31511
  }
31510
31512
  function zU(e, t, n) {
31511
- const i = ur(n);
31513
+ const i = lr(n);
31512
31514
  if (t.type === "element") {
31513
31515
  const r = t.children[t.children.length - 1];
31514
31516
  if (i && !n.endTag && r && r.position && r.position.end && (i.end = Object.assign({}, r.position.end)), e.verbose) {
@@ -31516,17 +31518,17 @@ function zU(e, t, n) {
31516
31518
  let a;
31517
31519
  if (n.attrs)
31518
31520
  for (a in n.attrs)
31519
- Tk.call(n.attrs, a) && (s[H1(e.schema, a).property] = ur(
31521
+ Tk.call(n.attrs, a) && (s[H1(e.schema, a).property] = lr(
31520
31522
  n.attrs[a]
31521
31523
  ));
31522
31524
  n.startTag;
31523
- const o = ur(n.startTag), A = n.endTag ? ur(n.endTag) : void 0, u = { opening: o };
31525
+ const o = lr(n.startTag), A = n.endTag ? lr(n.endTag) : void 0, u = { opening: o };
31524
31526
  A && (u.closing = A), u.properties = s, t.data = { position: u };
31525
31527
  }
31526
31528
  }
31527
31529
  return i;
31528
31530
  }
31529
- function ur(e) {
31531
+ function lr(e) {
31530
31532
  const t = Kg({
31531
31533
  line: e.startLine,
31532
31534
  column: e.startCol,
@@ -31586,7 +31588,7 @@ Vt.prototype.commaOrSpaceSeparated = !1;
31586
31588
  Vt.prototype.mustUseProperty = !1;
31587
31589
  Vt.prototype.defined = !1;
31588
31590
  let qU = 0;
31589
- const Te = Zi(), rt = Zi(), Sk = Zi(), ue = Zi(), Ge = Zi(), pr = Zi(), Lt = Zi();
31591
+ const Te = Zi(), rt = Zi(), Sk = Zi(), ue = Zi(), Ge = Zi(), br = Zi(), Lt = Zi();
31590
31592
  function Zi() {
31591
31593
  return 2 ** ++qU;
31592
31594
  }
@@ -31595,7 +31597,7 @@ const wd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
31595
31597
  boolean: Te,
31596
31598
  booleanish: rt,
31597
31599
  commaOrSpaceSeparated: Lt,
31598
- commaSeparated: pr,
31600
+ commaSeparated: br,
31599
31601
  number: ue,
31600
31602
  overloadedBoolean: Sk,
31601
31603
  spaceSeparated: Ge
@@ -31622,7 +31624,7 @@ function Zg(e, t, n) {
31622
31624
  n && (e[t] = n);
31623
31625
  }
31624
31626
  const VU = {}.hasOwnProperty;
31625
- function Vr(e) {
31627
+ function Xr(e) {
31626
31628
  const t = {}, n = {};
31627
31629
  let i;
31628
31630
  for (i in e.properties)
@@ -31637,7 +31639,7 @@ function Vr(e) {
31637
31639
  }
31638
31640
  return new Ma(t, n, e.space);
31639
31641
  }
31640
- const Nk = Vr({
31642
+ const Nk = Xr({
31641
31643
  space: "xlink",
31642
31644
  transform(e, t) {
31643
31645
  return "xlink:" + t.slice(5).toLowerCase();
@@ -31651,7 +31653,7 @@ const Nk = Vr({
31651
31653
  xLinkTitle: null,
31652
31654
  xLinkType: null
31653
31655
  }
31654
- }), Dk = Vr({
31656
+ }), Dk = Xr({
31655
31657
  space: "xml",
31656
31658
  transform(e, t) {
31657
31659
  return "xml:" + t.slice(3).toLowerCase();
@@ -31664,12 +31666,12 @@ function Bk(e, t) {
31664
31666
  function Rk(e, t) {
31665
31667
  return Bk(e, t.toLowerCase());
31666
31668
  }
31667
- const _k = Vr({
31669
+ const _k = Xr({
31668
31670
  space: "xmlns",
31669
31671
  attributes: { xmlnsxlink: "xmlns:xlink" },
31670
31672
  transform: Rk,
31671
31673
  properties: { xmlns: null, xmlnsXLink: null }
31672
- }), Pk = Vr({
31674
+ }), Pk = Xr({
31673
31675
  transform(e, t) {
31674
31676
  return t === "role" ? t : "aria-" + t.slice(4).toLowerCase();
31675
31677
  },
@@ -31724,7 +31726,7 @@ const _k = Vr({
31724
31726
  ariaValueText: null,
31725
31727
  role: null
31726
31728
  }
31727
- }), JU = Vr({
31729
+ }), JU = Xr({
31728
31730
  space: "html",
31729
31731
  attributes: {
31730
31732
  acceptcharset: "accept-charset",
@@ -31737,7 +31739,7 @@ const _k = Vr({
31737
31739
  properties: {
31738
31740
  // Standard Properties.
31739
31741
  abbr: null,
31740
- accept: pr,
31742
+ accept: br,
31741
31743
  acceptCharset: Ge,
31742
31744
  accessKey: Ge,
31743
31745
  action: null,
@@ -31764,7 +31766,7 @@ const _k = Vr({
31764
31766
  contentEditable: rt,
31765
31767
  controls: Te,
31766
31768
  controlsList: Ge,
31767
- coords: ue | pr,
31769
+ coords: ue | br,
31768
31770
  crossOrigin: null,
31769
31771
  data: null,
31770
31772
  dateTime: null,
@@ -32085,7 +32087,7 @@ const _k = Vr({
32085
32087
  security: null,
32086
32088
  unselectable: null
32087
32089
  }
32088
- }), XU = Vr({
32090
+ }), XU = Xr({
32089
32091
  space: "svg",
32090
32092
  attributes: {
32091
32093
  accentHeight: "accent-height",
@@ -32346,9 +32348,9 @@ const _k = Vr({
32346
32348
  from: null,
32347
32349
  fx: null,
32348
32350
  fy: null,
32349
- g1: pr,
32350
- g2: pr,
32351
- glyphName: pr,
32351
+ g1: br,
32352
+ g2: br,
32353
+ glyphName: br,
32352
32354
  glyphOrientationHorizontal: null,
32353
32355
  glyphOrientationVertical: null,
32354
32356
  glyphRef: null,
@@ -32683,11 +32685,11 @@ function aH(e, t) {
32683
32685
  mode: (e.data || {}).quirksMode ? "quirks" : "no-quirks",
32684
32686
  childNodes: []
32685
32687
  };
32686
- return n.childNodes = rh(e.children, n, t), Jr(e, n), n;
32688
+ return n.childNodes = rh(e.children, n, t), Kr(e, n), n;
32687
32689
  }
32688
32690
  function oH(e, t) {
32689
32691
  const n = { nodeName: "#document-fragment", childNodes: [] };
32690
- return n.childNodes = rh(e.children, n, t), Jr(e, n), n;
32692
+ return n.childNodes = rh(e.children, n, t), Kr(e, n), n;
32691
32693
  }
32692
32694
  function AH(e) {
32693
32695
  const t = {
@@ -32697,7 +32699,7 @@ function AH(e) {
32697
32699
  systemId: "",
32698
32700
  parentNode: null
32699
32701
  };
32700
- return Jr(e, t), t;
32702
+ return Kr(e, t), t;
32701
32703
  }
32702
32704
  function uH(e) {
32703
32705
  const t = {
@@ -32705,7 +32707,7 @@ function uH(e) {
32705
32707
  value: e.value,
32706
32708
  parentNode: null
32707
32709
  };
32708
- return Jr(e, t), t;
32710
+ return Kr(e, t), t;
32709
32711
  }
32710
32712
  function cH(e) {
32711
32713
  const t = {
@@ -32713,7 +32715,7 @@ function cH(e) {
32713
32715
  data: e.value,
32714
32716
  parentNode: null
32715
32717
  };
32716
- return Jr(e, t), t;
32718
+ return Kr(e, t), t;
32717
32719
  }
32718
32720
  function lH(e, t) {
32719
32721
  const n = t;
@@ -32741,7 +32743,7 @@ function lH(e, t) {
32741
32743
  childNodes: [],
32742
32744
  parentNode: null
32743
32745
  };
32744
- return o.childNodes = rh(e.children, o, i), Jr(e, o), e.tagName === "template" && e.content && (o.content = oH(e.content, i)), o;
32746
+ return o.childNodes = rh(e.children, o, i), Kr(e, o), e.tagName === "template" && e.content && (o.content = oH(e.content, i)), o;
32745
32747
  }
32746
32748
  function fH(e, t, n) {
32747
32749
  const i = $U(e, t);
@@ -32768,7 +32770,7 @@ function rh(e, t, n) {
32768
32770
  }
32769
32771
  return r;
32770
32772
  }
32771
- function Jr(e, t) {
32773
+ function Kr(e, t) {
32772
32774
  const n = e.position;
32773
32775
  n && n.start && n.end && (n.start.offset, n.end.offset, t.sourceCodeLocation = {
32774
32776
  startLine: n.start.line,
@@ -33380,7 +33382,7 @@ const SH = /* @__PURE__ */ new Map([
33380
33382
  [G.WBR, m.WBR],
33381
33383
  [G.XMP, m.XMP]
33382
33384
  ]);
33383
- function Xr(e) {
33385
+ function Zr(e) {
33384
33386
  var t;
33385
33387
  return (t = SH.get(e)) !== null && t !== void 0 ? t : m.UNKNOWN;
33386
33388
  }
@@ -33662,7 +33664,7 @@ class _H {
33662
33664
  }
33663
33665
  emitCurrentTagToken() {
33664
33666
  const t = this.currentToken;
33665
- this.prepareToken(t), t.tagID = Xr(t.tagName), t.type === Ne.START_TAG ? (this.lastStartTagName = t.tagName, this.handler.onStartTag(t)) : (t.attrs.length > 0 && this._err(V.endTagWithAttributes), t.selfClosing && this._err(V.endTagWithTrailingSolidus), this.handler.onEndTag(t)), this.preprocessor.dropParsedChunk();
33667
+ this.prepareToken(t), t.tagID = Zr(t.tagName), t.type === Ne.START_TAG ? (this.lastStartTagName = t.tagName, this.handler.onStartTag(t)) : (t.attrs.length > 0 && this._err(V.endTagWithAttributes), t.selfClosing && this._err(V.endTagWithTrailingSolidus), this.handler.onEndTag(t)), this.preprocessor.dropParsedChunk();
33666
33668
  }
33667
33669
  emitCurrentComment(t) {
33668
33670
  this.prepareToken(t), this.handler.onComment(t), this.preprocessor.dropParsedChunk();
@@ -36153,7 +36155,7 @@ function sh(e) {
36153
36155
  }
36154
36156
  function nj(e) {
36155
36157
  const t = $H.get(e.tagName);
36156
- t != null && (e.tagName = t, e.tagID = Xr(e.tagName));
36158
+ t != null && (e.tagName = t, e.tagID = Zr(e.tagName));
36157
36159
  }
36158
36160
  function ij(e, t) {
36159
36161
  return t === se.MATHML && (e === m.MI || e === m.MO || e === m.MN || e === m.MS || e === m.MTEXT);
@@ -36194,7 +36196,7 @@ class ub {
36194
36196
  this.fragmentContext = i, this.scriptHandler = r, this.currentToken = null, this.stopped = !1, this.insertionMode = F.INITIAL, this.originalInsertionMode = F.INITIAL, this.headElement = null, this.formElement = null, this.currentNotInHTML = !1, this.tmplInsertionModeStack = [], this.pendingCharacterTokens = [], this.hasNonWhitespacePendingCharacterToken = !1, this.framesetOk = !0, this.skipNextNewLine = !1, this.fosterParentingEnabled = !1, this.options = {
36195
36197
  ...Ab,
36196
36198
  ...t
36197
- }, this.treeAdapter = this.options.treeAdapter, this.onParseError = this.options.onParseError, this.onParseError && (this.options.sourceCodeLocationInfo = !0), this.document = n ?? this.treeAdapter.createDocument(), this.tokenizer = new _H(this.options, this), this.activeFormattingElements = new HH(this.treeAdapter), this.fragmentContextID = i ? Xr(this.treeAdapter.getTagName(i)) : m.UNKNOWN, this._setContextModes(i ?? this.document, this.fragmentContextID), this.openElements = new UH(this.document, this.treeAdapter, this);
36199
+ }, this.treeAdapter = this.options.treeAdapter, this.onParseError = this.options.onParseError, this.onParseError && (this.options.sourceCodeLocationInfo = !0), this.document = n ?? this.treeAdapter.createDocument(), this.tokenizer = new _H(this.options, this), this.activeFormattingElements = new HH(this.treeAdapter), this.fragmentContextID = i ? Zr(this.treeAdapter.getTagName(i)) : m.UNKNOWN, this._setContextModes(i ?? this.document, this.fragmentContextID), this.openElements = new UH(this.document, this.treeAdapter, this);
36198
36200
  }
36199
36201
  // API
36200
36202
  static parse(t, n) {
@@ -36595,7 +36597,7 @@ class ub {
36595
36597
  }
36596
36598
  switch (this.insertionMode) {
36597
36599
  case F.INITIAL: {
36598
- vs(this, t);
36600
+ ws(this, t);
36599
36601
  break;
36600
36602
  }
36601
36603
  case F.BEFORE_HTML: {
@@ -36663,7 +36665,7 @@ class ub {
36663
36665
  }
36664
36666
  switch (this.insertionMode) {
36665
36667
  case F.INITIAL: {
36666
- vs(this, t);
36668
+ ws(this, t);
36667
36669
  break;
36668
36670
  }
36669
36671
  case F.BEFORE_HTML: {
@@ -36739,7 +36741,7 @@ class ub {
36739
36741
  break;
36740
36742
  }
36741
36743
  case F.IN_TABLE_TEXT: {
36742
- ys(this, t);
36744
+ ks(this, t);
36743
36745
  break;
36744
36746
  }
36745
36747
  case F.AFTER_BODY: {
@@ -36768,7 +36770,7 @@ class ub {
36768
36770
  break;
36769
36771
  }
36770
36772
  case F.IN_TABLE_TEXT: {
36771
- ys(this, t);
36773
+ ks(this, t);
36772
36774
  break;
36773
36775
  }
36774
36776
  }
@@ -36795,7 +36797,7 @@ class ub {
36795
36797
  _startTagOutsideForeignContent(t) {
36796
36798
  switch (this.insertionMode) {
36797
36799
  case F.INITIAL: {
36798
- vs(this, t);
36800
+ ws(this, t);
36799
36801
  break;
36800
36802
  }
36801
36803
  case F.BEFORE_HTML: {
@@ -36823,11 +36825,11 @@ class ub {
36823
36825
  break;
36824
36826
  }
36825
36827
  case F.IN_TABLE: {
36826
- Mr(this, t);
36828
+ Lr(this, t);
36827
36829
  break;
36828
36830
  }
36829
36831
  case F.IN_TABLE_TEXT: {
36830
- ys(this, t);
36832
+ ks(this, t);
36831
36833
  break;
36832
36834
  }
36833
36835
  case F.IN_CAPTION: {
@@ -36892,7 +36894,7 @@ class ub {
36892
36894
  _endTagOutsideForeignContent(t) {
36893
36895
  switch (this.insertionMode) {
36894
36896
  case F.INITIAL: {
36895
- vs(this, t);
36897
+ ws(this, t);
36896
36898
  break;
36897
36899
  }
36898
36900
  case F.BEFORE_HTML: {
@@ -36928,7 +36930,7 @@ class ub {
36928
36930
  break;
36929
36931
  }
36930
36932
  case F.IN_TABLE_TEXT: {
36931
- ys(this, t);
36933
+ ks(this, t);
36932
36934
  break;
36933
36935
  }
36934
36936
  case F.IN_CAPTION: {
@@ -36985,7 +36987,7 @@ class ub {
36985
36987
  onEof(t) {
36986
36988
  switch (this.insertionMode) {
36987
36989
  case F.INITIAL: {
36988
- vs(this, t);
36990
+ ws(this, t);
36989
36991
  break;
36990
36992
  }
36991
36993
  case F.BEFORE_HTML: {
@@ -37025,7 +37027,7 @@ class ub {
37025
37027
  break;
37026
37028
  }
37027
37029
  case F.IN_TABLE_TEXT: {
37028
- ys(this, t);
37030
+ ks(this, t);
37029
37031
  break;
37030
37032
  }
37031
37033
  case F.IN_TEMPLATE: {
@@ -37117,7 +37119,7 @@ function dj(e, t) {
37117
37119
  return e.openElements.replace(t.element, i), t.element = i, i;
37118
37120
  }
37119
37121
  function hj(e, t, n) {
37120
- const i = e.treeAdapter.getTagName(t), r = Xr(i);
37122
+ const i = e.treeAdapter.getTagName(t), r = Zr(i);
37121
37123
  if (e._isElementCausesFosterParenting(r))
37122
37124
  e._fosterParentElement(n);
37123
37125
  else {
@@ -37170,7 +37172,7 @@ function bj(e, t) {
37170
37172
  const n = t.forceQuirks ? zt.QUIRKS : VH(t);
37171
37173
  qH(t) || e._err(t, V.nonConformingDoctype), e.treeAdapter.setDocumentMode(e.document, n), e.insertionMode = F.BEFORE_HTML;
37172
37174
  }
37173
- function vs(e, t) {
37175
+ function ws(e, t) {
37174
37176
  e._err(t, V.missingDoctype, !0), e.treeAdapter.setDocumentMode(e.document, zt.QUIRKS), e.insertionMode = F.BEFORE_HTML, e._processToken(t);
37175
37177
  }
37176
37178
  function vj(e, t) {
@@ -37924,7 +37926,7 @@ function yY(e, t) {
37924
37926
  function wY(e, t) {
37925
37927
  !e.formElement && e.openElements.tmplCount === 0 && (e._insertElement(t, se.HTML), e.formElement = e.openElements.current, e.openElements.pop());
37926
37928
  }
37927
- function Mr(e, t) {
37929
+ function Lr(e, t) {
37928
37930
  switch (t.tagID) {
37929
37931
  case m.TD:
37930
37932
  case m.TH:
@@ -38008,7 +38010,7 @@ function t4(e, t) {
38008
38010
  function n4(e, t) {
38009
38011
  e.pendingCharacterTokens.push(t), e.hasNonWhitespacePendingCharacterToken = !0;
38010
38012
  }
38011
- function ys(e, t) {
38013
+ function ks(e, t) {
38012
38014
  let n = 0;
38013
38015
  if (e.hasNonWhitespacePendingCharacterToken)
38014
38016
  for (; n < e.pendingCharacterTokens.length; n++)
@@ -38021,7 +38023,7 @@ function ys(e, t) {
38021
38023
  const i4 = /* @__PURE__ */ new Set([m.CAPTION, m.COL, m.COLGROUP, m.TBODY, m.TD, m.TFOOT, m.TH, m.THEAD, m.TR]);
38022
38024
  function kY(e, t) {
38023
38025
  const n = t.tagID;
38024
- i4.has(n) ? e.openElements.hasInTableScope(m.CAPTION) && (e.openElements.generateImpliedEndTags(), e.openElements.popUntilTagNamePopped(m.CAPTION), e.activeFormattingElements.clearToLastMarker(), e.insertionMode = F.IN_TABLE, Mr(e, t)) : wt(e, t);
38026
+ i4.has(n) ? e.openElements.hasInTableScope(m.CAPTION) && (e.openElements.generateImpliedEndTags(), e.openElements.popUntilTagNamePopped(m.CAPTION), e.activeFormattingElements.clearToLastMarker(), e.insertionMode = F.IN_TABLE, Lr(e, t)) : wt(e, t);
38025
38027
  }
38026
38028
  function EY(e, t) {
38027
38029
  const n = t.tagID;
@@ -38100,11 +38102,11 @@ function _u(e, t) {
38100
38102
  case m.TBODY:
38101
38103
  case m.TFOOT:
38102
38104
  case m.THEAD: {
38103
- e.openElements.hasTableBodyContextInTableScope() && (e.openElements.clearBackToTableBodyContext(), e.openElements.pop(), e.insertionMode = F.IN_TABLE, Mr(e, t));
38105
+ e.openElements.hasTableBodyContextInTableScope() && (e.openElements.clearBackToTableBodyContext(), e.openElements.pop(), e.insertionMode = F.IN_TABLE, Lr(e, t));
38104
38106
  break;
38105
38107
  }
38106
38108
  default:
38107
- Mr(e, t);
38109
+ Lr(e, t);
38108
38110
  }
38109
38111
  }
38110
38112
  function Td(e, t) {
@@ -38151,7 +38153,7 @@ function Pu(e, t) {
38151
38153
  break;
38152
38154
  }
38153
38155
  default:
38154
- Mr(e, t);
38156
+ Lr(e, t);
38155
38157
  }
38156
38158
  }
38157
38159
  function r4(e, t) {
@@ -38294,7 +38296,7 @@ function NY(e, t) {
38294
38296
  case m.TBODY:
38295
38297
  case m.TFOOT:
38296
38298
  case m.THEAD: {
38297
- e.tmplInsertionModeStack[0] = F.IN_TABLE, e.insertionMode = F.IN_TABLE, Mr(e, t);
38299
+ e.tmplInsertionModeStack[0] = F.IN_TABLE, e.insertionMode = F.IN_TABLE, Lr(e, t);
38298
38300
  break;
38299
38301
  }
38300
38302
  case m.COL: {
@@ -38449,7 +38451,7 @@ function c4(e, t) {
38449
38451
  stitches: !1,
38450
38452
  options: t || {}
38451
38453
  };
38452
- i(e, r), Kr(r, Cn());
38454
+ i(e, r), $r(r, Cn());
38453
38455
  const s = n ? r.parser.document : r.parser.getFragment(), a = WU(s, {
38454
38456
  // To do: support `space`?
38455
38457
  file: r.options.file
@@ -38485,7 +38487,7 @@ function zY(e, t) {
38485
38487
  chars: e.value,
38486
38488
  location: La(e)
38487
38489
  };
38488
- Kr(t, Cn(e)), t.parser.currentToken = n, t.parser._processToken(t.parser.currentToken);
38490
+ $r(t, Cn(e)), t.parser.currentToken = n, t.parser._processToken(t.parser.currentToken);
38489
38491
  }
38490
38492
  function qY(e, t) {
38491
38493
  const n = {
@@ -38496,7 +38498,7 @@ function qY(e, t) {
38496
38498
  systemId: "",
38497
38499
  location: La(e)
38498
38500
  };
38499
- Kr(t, Cn(e)), t.parser.currentToken = n, t.parser._processToken(t.parser.currentToken);
38501
+ $r(t, Cn(e)), t.parser.currentToken = n, t.parser._processToken(t.parser.currentToken);
38500
38502
  }
38501
38503
  function VY(e, t) {
38502
38504
  t.stitches = !0;
@@ -38516,7 +38518,7 @@ function f4(e, t) {
38516
38518
  data: n,
38517
38519
  location: La(e)
38518
38520
  };
38519
- Kr(t, Cn(e)), t.parser.currentToken = i, t.parser._processToken(t.parser.currentToken);
38521
+ $r(t, Cn(e)), t.parser.currentToken = i, t.parser._processToken(t.parser.currentToken);
38520
38522
  }
38521
38523
  function JY(e, t) {
38522
38524
  if (t.parser.tokenizer.preprocessor.html = "", t.parser.tokenizer.preprocessor.pos = -1, t.parser.tokenizer.preprocessor.lastGapPos = -2, t.parser.tokenizer.preprocessor.gapStack = [], t.parser.tokenizer.preprocessor.skipNextNewLine = !1, t.parser.tokenizer.preprocessor.lastChunkWritten = !1, t.parser.tokenizer.preprocessor.endOfChunkHit = !1, t.parser.tokenizer.preprocessor.isEol = !1, d4(t, Cn(e)), t.parser.tokenizer.write(
@@ -38541,7 +38543,7 @@ function XY(e, t) {
38541
38543
  throw YY.has(n.type) && (i = ". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"), new Error("Cannot compile `" + n.type + "` node" + i);
38542
38544
  }
38543
38545
  }
38544
- function Kr(e, t) {
38546
+ function $r(e, t) {
38545
38547
  d4(e, t);
38546
38548
  const n = e.parser.tokenizer.currentCharacterToken;
38547
38549
  n && n.location && (n.location.endLine = e.parser.tokenizer.preprocessor.line, n.location.endCol = e.parser.tokenizer.preprocessor.col + 1, n.location.endOffset = e.parser.tokenizer.preprocessor.offset + 1, e.parser.currentToken = n, e.parser._processToken(e.parser.currentToken)), e.parser.tokenizer.paused = !1, e.parser.tokenizer.inLoop = !1, e.parser.tokenizer.active = !1, e.parser.tokenizer.returnState = nt.DATA, e.parser.tokenizer.charRefCode = -1, e.parser.tokenizer.consumedAfterSnapshot = -1, e.parser.tokenizer.currentLocation = null, e.parser.tokenizer.currentCharacterToken = null, e.parser.tokenizer.currentToken = null, e.parser.tokenizer.currentAttr = { name: "", value: "" };
@@ -38562,7 +38564,7 @@ function d4(e, t) {
38562
38564
  function KY(e, t) {
38563
38565
  const n = e.tagName.toLowerCase();
38564
38566
  if (t.parser.tokenizer.state === nt.PLAINTEXT) return;
38565
- Kr(t, Cn(e));
38567
+ $r(t, Cn(e));
38566
38568
  const i = t.parser.openElements.current;
38567
38569
  let r = "namespaceURI" in i ? i.namespaceURI : Ii.html;
38568
38570
  r === Ii.html && n === "svg" && (r = Ii.svg);
@@ -38573,7 +38575,7 @@ function KY(e, t) {
38573
38575
  ), a = {
38574
38576
  type: Ne.START_TAG,
38575
38577
  tagName: n,
38576
- tagID: Xr(n),
38578
+ tagID: Zr(n),
38577
38579
  // We always send start and end tags.
38578
38580
  selfClosing: !1,
38579
38581
  ackSelfClosing: !1,
@@ -38587,11 +38589,11 @@ function KY(e, t) {
38587
38589
  function ZY(e, t) {
38588
38590
  const n = e.tagName.toLowerCase();
38589
38591
  if (!t.parser.tokenizer.inForeignNode && dH.includes(n) || t.parser.tokenizer.state === nt.PLAINTEXT) return;
38590
- Kr(t, Cu(e));
38592
+ $r(t, Cu(e));
38591
38593
  const i = {
38592
38594
  type: Ne.END_TAG,
38593
38595
  tagName: n,
38594
- tagID: Xr(n),
38596
+ tagID: Zr(n),
38595
38597
  selfClosing: !1,
38596
38598
  ackSelfClosing: !1,
38597
38599
  attrs: [],
@@ -38627,7 +38629,7 @@ function La(e) {
38627
38629
  };
38628
38630
  }
38629
38631
  function eW(e) {
38630
- return "children" in e ? Pr({ ...e, children: [] }) : Pr(e);
38632
+ return "children" in e ? Or({ ...e, children: [] }) : Or(e);
38631
38633
  }
38632
38634
  function tW(e) {
38633
38635
  return function(t, n) {
@@ -39065,7 +39067,7 @@ const h4 = ({ text: e }) => e ? /* @__PURE__ */ g(
39065
39067
  padding: 0 16px;
39066
39068
  transition: width 0.7s ease-in-out;
39067
39069
  width: 100%;
39068
- ${({ animated: e, expanded: t }) => e && Rr`
39070
+ ${({ animated: e, expanded: t }) => e && Pr`
39069
39071
  width: ${t ? "300px" : "48px"};
39070
39072
  justify-content: center;
39071
39073
  cursor: pointer;
@@ -39220,7 +39222,7 @@ const h4 = ({ text: e }) => e ? /* @__PURE__ */ g(
39220
39222
  `, cW = Q.span`
39221
39223
  margin-left: 10px;
39222
39224
  font-size: 16px;
39223
- `, Zr = Q.div`
39225
+ `, es = Q.div`
39224
39226
  position: fixed;
39225
39227
  top: 0;
39226
39228
  left: 0;
@@ -39246,7 +39248,7 @@ const h4 = ({ text: e }) => e ? /* @__PURE__ */ g(
39246
39248
  color: #555;
39247
39249
  background-color: #dddddd;
39248
39250
  }
39249
- `, Or = Q.div`
39251
+ `, Fr = Q.div`
39250
39252
  background: white;
39251
39253
  border-radius: 24px;
39252
39254
  padding: 32px 64px;
@@ -39259,7 +39261,7 @@ const h4 = ({ text: e }) => e ? /* @__PURE__ */ g(
39259
39261
  align-items: center;
39260
39262
  width: 50%;
39261
39263
  max-width: 400px;
39262
- `, Lr = Q.h2`
39264
+ `, Qr = Q.h2`
39263
39265
  font-size: 1.5em;
39264
39266
  margin: 0;
39265
39267
  font-weight: 400;
@@ -39333,7 +39335,7 @@ const g4 = Q.div`
39333
39335
  display: flex;
39334
39336
  flex-direction: column;
39335
39337
  padding: 16px;
39336
- `, gr = Q.div`
39338
+ `, vr = Q.div`
39337
39339
  color: #8c8c8c;
39338
39340
  font-size: 14px;
39339
39341
  font-weight: 400;
@@ -39656,7 +39658,7 @@ const k4 = ({
39656
39658
  }, [a, l]), ge(() => {
39657
39659
  u(Object.values(s));
39658
39660
  }, [s]), /* @__PURE__ */ U("div", { style: { maxHeight: "100px", ...e }, children: [
39659
- i ? /* @__PURE__ */ g(Lr, { children: "Select Users (max 20)" }) : /* @__PURE__ */ g("div", { style: { fontSize: "14px", fontWeight: 600 }, children: "Select Users (max 20)" }),
39661
+ i ? /* @__PURE__ */ g(Qr, { children: "Select Users (max 20)" }) : /* @__PURE__ */ g("div", { style: { fontSize: "14px", fontWeight: 600 }, children: "Select Users (max 20)" }),
39660
39662
  /* @__PURE__ */ g(
39661
39663
  SA,
39662
39664
  {
@@ -39714,7 +39716,7 @@ const k4 = ({
39714
39716
  width: 0%;
39715
39717
  }
39716
39718
  `, OW = Q.div`
39717
- ${({ $duration: e }) => Rr`
39719
+ ${({ $duration: e }) => Pr`
39718
39720
  animation:
39719
39721
  ${_W} 0.3s forwards,
39720
39722
  ${PW} 0.3s forwards ${e - 300}ms;
@@ -39886,10 +39888,10 @@ const k4 = ({
39886
39888
  onClick: P
39887
39889
  }
39888
39890
  ),
39889
- r && /* @__PURE__ */ U(Zr, { children: [
39890
- A === "0" && /* @__PURE__ */ U(Or, { children: [
39891
+ r && /* @__PURE__ */ U(es, { children: [
39892
+ A === "0" && /* @__PURE__ */ U(Fr, { children: [
39891
39893
  /* @__PURE__ */ g(qi, { onClick: x, style: { fontSize: 24 }, children: "×" }),
39892
- /* @__PURE__ */ g(Lr, { children: "Create New Chat" }),
39894
+ /* @__PURE__ */ g(Qr, { children: "Create New Chat" }),
39893
39895
  /* @__PURE__ */ g(
39894
39896
  Vi,
39895
39897
  {
@@ -39971,9 +39973,9 @@ const k4 = ({
39971
39973
  )
39972
39974
  ] })
39973
39975
  ] }),
39974
- A === "1" && /* @__PURE__ */ U(Or, { style: { minHeight: "500px" }, children: [
39976
+ A === "1" && /* @__PURE__ */ U(Fr, { style: { minHeight: "500px" }, children: [
39975
39977
  /* @__PURE__ */ g(qi, { onClick: x, style: { fontSize: 24 }, children: "×" }),
39976
- /* @__PURE__ */ g(Lr, { children: "Select users to add to Chat" }),
39978
+ /* @__PURE__ */ g(Qr, { children: "Select users to add to Chat" }),
39977
39979
  /* @__PURE__ */ g(
39978
39980
  rn,
39979
39981
  {
@@ -40015,7 +40017,7 @@ const k4 = ({
40015
40017
  }, HW = Q.div.withConfig({
40016
40018
  shouldForwardProp: (e) => e !== "burgerMenu" && e !== "open"
40017
40019
  })`
40018
- ${({ burgerMenu: e, open: t }) => e ? Rr`
40020
+ ${({ burgerMenu: e, open: t }) => e ? Pr`
40019
40021
  position: fixed;
40020
40022
  left: 0;
40021
40023
  top: 0;
@@ -40031,7 +40033,7 @@ const k4 = ({
40031
40033
  padding-top: 0px;
40032
40034
  z-index: 1000;
40033
40035
  border-right: 1px solid var(--Colors-Border-border-primary, #f0f0f0);
40034
- ` : Rr`
40036
+ ` : Pr`
40035
40037
  padding: 16px;
40036
40038
  padding-top: 0px;
40037
40039
  overflow: auto;
@@ -41683,9 +41685,9 @@ const uG = /* @__PURE__ */ fi(AG), cG = Q.div`
41683
41685
  setIsModalOpen: t
41684
41686
  }) => {
41685
41687
  const n = Qe(), i = we((a) => t1(a)), r = () => t(!1);
41686
- return e && /* @__PURE__ */ g(Zr, { children: /* @__PURE__ */ U(Or, { children: [
41688
+ return e && /* @__PURE__ */ g(es, { children: /* @__PURE__ */ U(Fr, { children: [
41687
41689
  /* @__PURE__ */ g(qi, { onClick: r, style: { fontSize: 24 }, children: "×" }),
41688
- /* @__PURE__ */ g(Lr, { children: "Delete this chat ?" }),
41690
+ /* @__PURE__ */ g(Qr, { children: "Delete this chat ?" }),
41689
41691
  /* @__PURE__ */ U(rn, { children: [
41690
41692
  /* @__PURE__ */ g(
41691
41693
  xe,
@@ -41721,7 +41723,7 @@ const uG = /* @__PURE__ */ fi(AG), cG = Q.div`
41721
41723
  };
41722
41724
  return /* @__PURE__ */ U(je, { children: [
41723
41725
  /* @__PURE__ */ g(xd, { variant: "filled", unstyled: !0, onClick: u, children: "Add more Users" }),
41724
- r && /* @__PURE__ */ g(Zr, { children: /* @__PURE__ */ U(Or, { children: [
41726
+ r && /* @__PURE__ */ g(es, { children: /* @__PURE__ */ U(Fr, { children: [
41725
41727
  /* @__PURE__ */ g(qi, { onClick: c, style: { fontSize: 24 }, children: "×" }),
41726
41728
  /* @__PURE__ */ g(
41727
41729
  rn,
@@ -41944,11 +41946,11 @@ const uG = /* @__PURE__ */ fi(AG), cG = Q.div`
41944
41946
  ] }),
41945
41947
  d.role === "moderator" && d.type === "group" && /* @__PURE__ */ g(je, { children: /* @__PURE__ */ g(hG, {}) }),
41946
41948
  !f?.disableChatInfo?.disableDescription && /* @__PURE__ */ U(Un, { children: [
41947
- /* @__PURE__ */ g(gr, { children: "Description" }),
41949
+ /* @__PURE__ */ g(vr, { children: "Description" }),
41948
41950
  /* @__PURE__ */ g(Mi, { children: d?.description })
41949
41951
  ] }),
41950
41952
  !f?.disableChatInfo?.disableType && /* @__PURE__ */ U(Un, { children: [
41951
- /* @__PURE__ */ g(gr, { children: "Chat type" }),
41953
+ /* @__PURE__ */ g(vr, { children: "Chat type" }),
41952
41954
  /* @__PURE__ */ g(Mi, { children: d.type })
41953
41955
  ] }),
41954
41956
  !f?.disableChatInfo?.hideMembers && /* @__PURE__ */ g(Un, { style: { padding: "8px 16px" }, children: t ? /* @__PURE__ */ g(tn, {}) : d?.members?.map((k, E) => /* @__PURE__ */ U(
@@ -42005,7 +42007,7 @@ const uG = /* @__PURE__ */ fi(AG), cG = Q.div`
42005
42007
  " ",
42006
42008
  k.lastName
42007
42009
  ] }),
42008
- k.last_active && /* @__PURE__ */ g(gr, { children: new Date(k.last_active * 1e3).toLocaleString() })
42010
+ k.last_active && /* @__PURE__ */ g(vr, { children: new Date(k.last_active * 1e3).toLocaleString() })
42009
42011
  ]
42010
42012
  }
42011
42013
  )
@@ -42521,7 +42523,7 @@ const FG = ({
42521
42523
  /* @__PURE__ */ U(fa, { children: [
42522
42524
  /* @__PURE__ */ g(bn, { children: "Download your data" }),
42523
42525
  /* @__PURE__ */ g(
42524
- gr,
42526
+ vr,
42525
42527
  {
42526
42528
  style: {
42527
42529
  fontSize: "12px",
@@ -42873,14 +42875,14 @@ const Ob = Q.div`
42873
42875
  "persist:chatSettingStore",
42874
42876
  "persist:roomMessages",
42875
42877
  "persist:roomHeapSlice"
42876
- ], ws = (e) => (e || "").toString().trim().toLowerCase(), zG = (e) => {
42878
+ ], Es = (e) => (e || "").toString().trim().toLowerCase(), zG = (e) => {
42877
42879
  const t = [
42878
42880
  GG,
42879
- ws(e?.appId),
42880
- ws(e?.baseUrl),
42881
- ws(e?.xmppSettings?.host),
42882
- ws(e?.xmppSettings?.devServer),
42883
- ws(e?.xmppSettings?.conference)
42881
+ Es(e?.appId),
42882
+ Es(e?.baseUrl),
42883
+ Es(e?.xmppSettings?.host),
42884
+ Es(e?.xmppSettings?.devServer),
42885
+ Es(e?.xmppSettings?.conference)
42884
42886
  ];
42885
42887
  return GA.sha256(t.join("|"));
42886
42888
  }, Dn = (e, t) => {
@@ -42948,7 +42950,7 @@ const Ob = Q.div`
42948
42950
  2500
42949
42951
  ), i = of(
42950
42952
  (async () => {
42951
- await lr.flush(), await lr.purge();
42953
+ await dr.flush(), await dr.purge();
42952
42954
  })(),
42953
42955
  2e3
42954
42956
  );
@@ -43119,7 +43121,7 @@ const Ob = Q.div`
43119
43121
  ) }),
43120
43122
  /* @__PURE__ */ U(Un, { children: [
43121
43123
  /* @__PURE__ */ g(Mi, { children: "About" }),
43122
- /* @__PURE__ */ g(gr, { children: y?.description && y?.description?.length > 4 ? y.description : "No description" })
43124
+ /* @__PURE__ */ g(vr, { children: y?.description && y?.description?.length > 4 ? y.description : "No description" })
43123
43125
  ] }),
43124
43126
  a && a.xmppUsername !== s.xmppUsername && /* @__PURE__ */ U(je, { children: [
43125
43127
  /* @__PURE__ */ g(
@@ -43214,7 +43216,7 @@ const Ob = Q.div`
43214
43216
  onClick: () => i(r.key),
43215
43217
  children: [
43216
43218
  /* @__PURE__ */ g(Mi, { children: r.value }),
43217
- [2, 3, 4].includes(s) && /* @__PURE__ */ g(gr, { children: "0" })
43219
+ [2, 3, 4].includes(s) && /* @__PURE__ */ g(vr, { children: "0" })
43218
43220
  ]
43219
43221
  }
43220
43222
  ),
@@ -43256,13 +43258,13 @@ const Ob = Q.div`
43256
43258
  [Fe.PROFILE_SHARES]: QG,
43257
43259
  [Fe.BLOCKED_USERS]: DG,
43258
43260
  [Fe.FILE_PREVIEW]: NG
43259
- }, $r = Q.div`
43261
+ }, ts = Q.div`
43260
43262
  display: flex;
43261
43263
  width: 80%;
43262
43264
  max-width: 190px;
43263
43265
  flex-direction: column;
43264
43266
  align-items: flex-start;
43265
- `, es = Q.div`
43267
+ `, ns = Q.div`
43266
43268
  height: 20px;
43267
43269
  font-weight: 600;
43268
43270
  white-space: nowrap;
@@ -43331,8 +43333,8 @@ const Ob = Q.div`
43331
43333
  user: e,
43332
43334
  location: t,
43333
43335
  originalName: n
43334
- }) => /* @__PURE__ */ U($r, { children: [
43335
- /* @__PURE__ */ U(es, { children: [
43336
+ }) => /* @__PURE__ */ U(ts, { children: [
43337
+ /* @__PURE__ */ U(ns, { children: [
43336
43338
  e.name || "",
43337
43339
  ":"
43338
43340
  ] }),
@@ -43353,8 +43355,8 @@ const Ob = Q.div`
43353
43355
  ]
43354
43356
  }
43355
43357
  )
43356
- ] }), rz = ({ user: e, body: t }) => /* @__PURE__ */ U($r, { children: [
43357
- /* @__PURE__ */ g(es, { children: e.name }),
43358
+ ] }), rz = ({ user: e, body: t }) => /* @__PURE__ */ U(ts, { children: [
43359
+ /* @__PURE__ */ g(ns, { children: e.name }),
43358
43360
  /* @__PURE__ */ g(pi, { children: t || "Chat created" })
43359
43361
  ] }), sz = Q.div`
43360
43362
  position: relative;
@@ -43370,8 +43372,8 @@ const Ob = Q.div`
43370
43372
  user: e,
43371
43373
  locationPreview: t,
43372
43374
  originalName: n
43373
- }) => /* @__PURE__ */ U($r, { children: [
43374
- /* @__PURE__ */ U(es, { children: [
43375
+ }) => /* @__PURE__ */ U(ts, { children: [
43376
+ /* @__PURE__ */ U(ns, { children: [
43375
43377
  e.name || "",
43376
43378
  ":"
43377
43379
  ] }),
@@ -43396,8 +43398,8 @@ const Ob = Q.div`
43396
43398
  const r = MA.emojis[i];
43397
43399
  return r ? r.skins[0].native : "";
43398
43400
  };
43399
- return /* @__PURE__ */ U($r, { children: [
43400
- /* @__PURE__ */ U(es, { children: [
43401
+ return /* @__PURE__ */ U(ts, { children: [
43402
+ /* @__PURE__ */ U(ns, { children: [
43401
43403
  e.name || "",
43402
43404
  ":"
43403
43405
  ] }),
@@ -43407,8 +43409,8 @@ const Ob = Q.div`
43407
43409
  user: e,
43408
43410
  originalName: t,
43409
43411
  locationPreview: n
43410
- }) => /* @__PURE__ */ U($r, { children: [
43411
- /* @__PURE__ */ U(es, { children: [
43412
+ }) => /* @__PURE__ */ U(ts, { children: [
43413
+ /* @__PURE__ */ U(ns, { children: [
43412
43414
  e.name || "",
43413
43415
  ":"
43414
43416
  ] }),
@@ -43466,8 +43468,8 @@ const Ob = Q.div`
43466
43468
  height: 20px;
43467
43469
  object-fit: cover;
43468
43470
  pointer-events: none;
43469
- `, fz = ({ user: e, body: t }) => /* @__PURE__ */ U($r, { children: [
43470
- /* @__PURE__ */ g(es, { children: e.name }),
43471
+ `, fz = ({ user: e, body: t }) => /* @__PURE__ */ U(ts, { children: [
43472
+ /* @__PURE__ */ g(ns, { children: e.name }),
43471
43473
  /* @__PURE__ */ U(
43472
43474
  "div",
43473
43475
  {
@@ -43842,9 +43844,9 @@ const Q4 = ({
43842
43844
  handleClick: c
43843
43845
  }) => {
43844
43846
  const l = be(null);
43845
- return /* @__PURE__ */ g(Zr, { children: /* @__PURE__ */ U(Or, { style: { maxWidth: "640px" }, children: [
43847
+ return /* @__PURE__ */ g(es, { children: /* @__PURE__ */ U(Fr, { style: { maxWidth: "640px" }, children: [
43846
43848
  /* @__PURE__ */ g(qi, { onClick: u, style: { fontSize: 24 }, children: "×" }),
43847
- e ? /* @__PURE__ */ g(e, {}) : /* @__PURE__ */ g(Lr, { children: t }),
43849
+ e ? /* @__PURE__ */ g(e, {}) : /* @__PURE__ */ g(Qr, { children: t }),
43848
43850
  n && /* @__PURE__ */ g(lW, { children: n }),
43849
43851
  a && /* @__PURE__ */ g(rn, { style: { flexDirection: "column", position: "relative" }, children: /* @__PURE__ */ g(
43850
43852
  p3,
@@ -44356,7 +44358,7 @@ const Oz = (e) => {
44356
44358
  if (e?.translates?.enabled) {
44357
44359
  const z = `send-translate-message-${Xo()}`, J = Date.now(), $ = new Date(J).toISOString();
44358
44360
  i(
44359
- cr({
44361
+ fr({
44360
44362
  roomJID: N,
44361
44363
  message: {
44362
44364
  user: {
@@ -44425,7 +44427,7 @@ const Oz = (e) => {
44425
44427
  } else {
44426
44428
  const z = `send-text-message-${Xo()}`, J = Date.now(), $ = new Date(J).toISOString();
44427
44429
  i(
44428
- cr({
44430
+ fr({
44429
44431
  roomJID: N,
44430
44432
  message: {
44431
44433
  id: z,
@@ -44555,7 +44557,7 @@ const Oz = (e) => {
44555
44557
  w(R, !0), k(R);
44556
44558
  const J = `send-media-message:${Xo()}`, $ = Date.now(), D = new Date($).toISOString();
44557
44559
  e?.disableSentLogic || i(
44558
- cr({
44560
+ fr({
44559
44561
  roomJID: R,
44560
44562
  message: {
44561
44563
  id: J,
@@ -45221,7 +45223,7 @@ class qz extends Qa {
45221
45223
  return this.media.setSinkId(t);
45222
45224
  }
45223
45225
  }
45224
- class Fr extends Qa {
45226
+ class Ur extends Qa {
45225
45227
  constructor(t, n) {
45226
45228
  super(), this.timeouts = [], this.isScrollable = !1, this.audioData = null, this.resizeObserver = null, this.lastContainerWidth = 0, this.isDragging = !1, this.subscriptions = [], this.unsubscribeOnScroll = [], this.subscriptions = [], this.options = t;
45227
45229
  const i = this.parentFromOptionsContainer(t.container);
@@ -45499,7 +45501,7 @@ class Fr extends Qa {
45499
45501
  }
45500
45502
  renderMultiCanvas(t, n, i, r, s, a) {
45501
45503
  const o = this.getPixelRatio(), { clientWidth: A } = this.scrollContainer, u = i / o;
45502
- let c = Math.min(Fr.MAX_CANVAS_WIDTH, A, u), l = {};
45504
+ let c = Math.min(Ur.MAX_CANVAS_WIDTH, A, u), l = {};
45503
45505
  if (n.barWidth || n.barGap) {
45504
45506
  const v = n.barWidth || 0.5, y = v + (n.barGap || v / 2);
45505
45507
  c % y != 0 && (c = Math.floor(c / y) * y);
@@ -45529,7 +45531,7 @@ class Fr extends Qa {
45529
45531
  if (f(p - 1), f(p), f(p + 1), d > 1) {
45530
45532
  const v = this.on("scroll", (() => {
45531
45533
  const { scrollLeft: y } = this.scrollContainer, C = Math.floor(y / u * d);
45532
- Object.keys(l).length > Fr.MAX_NODES && (s.innerHTML = "", a.innerHTML = "", l = {}), f(C - 1), f(C), f(C + 1);
45534
+ Object.keys(l).length > Ur.MAX_NODES && (s.innerHTML = "", a.innerHTML = "", l = {}), f(C - 1), f(C), f(C + 1);
45533
45535
  }));
45534
45536
  this.unsubscribeOnScroll.push(v);
45535
45537
  }
@@ -45614,7 +45616,7 @@ class Fr extends Qa {
45614
45616
  }));
45615
45617
  }
45616
45618
  }
45617
- Fr.MAX_CANVAS_WIDTH = 8e3, Fr.MAX_NODES = 10;
45619
+ Ur.MAX_CANVAS_WIDTH = 8e3, Ur.MAX_NODES = 10;
45618
45620
  class Vz extends Qa {
45619
45621
  constructor() {
45620
45622
  super(...arguments), this.unsubscribe = () => {
@@ -45741,7 +45743,7 @@ class da extends qz {
45741
45743
  const n = t.media || (t.backend === "WebAudio" ? new ff() : void 0);
45742
45744
  super({ media: n, mediaControls: t.mediaControls, autoplay: t.autoplay, playbackRate: t.audioRate }), this.plugins = [], this.decodedData = null, this.stopAtPosition = null, this.subscriptions = [], this.mediaSubscriptions = [], this.abortController = null, this.options = Object.assign({}, Jz, t), this.timer = new Vz();
45743
45745
  const i = n ? void 0 : this.getMediaElement();
45744
- this.renderer = new Fr(this.options, i), this.initPlayerEvents(), this.initRendererEvents(), this.initTimerEvents(), this.initPlugins();
45746
+ this.renderer = new Ur(this.options, i), this.initPlayerEvents(), this.initRendererEvents(), this.initTimerEvents(), this.initPlugins();
45745
45747
  const r = this.options.url || this.getSrc() || "";
45746
45748
  Promise.resolve().then((() => {
45747
45749
  this.emit("init");
@@ -46179,16 +46181,16 @@ function Bn() {
46179
46181
  current: null
46180
46182
  };
46181
46183
  }
46182
- function Qr(e) {
46184
+ function Hr(e) {
46183
46185
  return e.children;
46184
46186
  }
46185
46187
  function vn(e, t) {
46186
46188
  this.props = e, this.context = t;
46187
46189
  }
46188
- function Ur(e, t) {
46189
- if (t == null) return e.__ ? Ur(e.__, e.__.__k.indexOf(e) + 1) : null;
46190
+ function jr(e, t) {
46191
+ if (t == null) return e.__ ? jr(e.__, e.__.__k.indexOf(e) + 1) : null;
46190
46192
  for (var n; t < e.__k.length; t++) if ((n = e.__k[t]) != null && n.__e != null) return n.__e;
46191
- return typeof e.type == "function" ? Ur(e) : null;
46193
+ return typeof e.type == "function" ? jr(e) : null;
46192
46194
  }
46193
46195
  function X4(e) {
46194
46196
  var t, n;
@@ -46210,12 +46212,12 @@ function LA() {
46210
46212
  var n, i, r, s, a, o;
46211
46213
  t.__d && (a = (s = (n = t).__v).__e, (o = n.__P) && (i = [], (r = oi({}, s)).__v = s.__v + 1, dh(o, s, r, n.__n, o.ownerSVGElement !== void 0, s.__h != null ? [
46212
46214
  a
46213
- ] : null, i, a ?? Ur(s), s.__h), e6(i, s), s.__e != a && X4(s)));
46215
+ ] : null, i, a ?? jr(s), s.__h), e6(i, s), s.__e != a && X4(s)));
46214
46216
  });
46215
46217
  }
46216
46218
  function K4(e, t, n, i, r, s, a, o, A, u) {
46217
46219
  var c, l, f, d, h, p, v, y = i && i.__k || V4, C = y.length;
46218
- for (n.__k = [], c = 0; c < t.length; c++) if ((d = n.__k[c] = (d = t[c]) == null || typeof d == "boolean" ? null : typeof d == "string" || typeof d == "number" || typeof d == "bigint" ? Ko(null, d, null, null, d) : Array.isArray(d) ? Ko(Qr, {
46220
+ for (n.__k = [], c = 0; c < t.length; c++) if ((d = n.__k[c] = (d = t[c]) == null || typeof d == "boolean" ? null : typeof d == "string" || typeof d == "number" || typeof d == "bigint" ? Ko(null, d, null, null, d) : Array.isArray(d) ? Ko(Hr, {
46219
46221
  children: d
46220
46222
  }, null, null, null) : d.__b > 0 ? Ko(d.type, d.props, d.key, null, d.__v) : d) != null) {
46221
46223
  if (d.__ = n, d.__b = n.__b + 1, (f = y[c]) === null || f && d.key == f.key && d.type === f.type) y[c] = void 0;
@@ -46226,9 +46228,9 @@ function K4(e, t, n, i, r, s, a, o, A, u) {
46226
46228
  }
46227
46229
  f = null;
46228
46230
  }
46229
- dh(e, d, f = f || OA, r, s, a, o, A, u), h = d.__e, (l = d.ref) && f.ref != l && (v || (v = []), f.ref && v.push(f.ref, null, d), v.push(l, d.__c || h, d)), h != null ? (p == null && (p = h), typeof d.type == "function" && d.__k === f.__k ? d.__d = A = Z4(d, A, e) : A = $4(e, d, f, y, h, A), typeof n.type == "function" && (n.__d = A)) : A && f.__e == A && A.parentNode != e && (A = Ur(f));
46231
+ dh(e, d, f = f || OA, r, s, a, o, A, u), h = d.__e, (l = d.ref) && f.ref != l && (v || (v = []), f.ref && v.push(f.ref, null, d), v.push(l, d.__c || h, d)), h != null ? (p == null && (p = h), typeof d.type == "function" && d.__k === f.__k ? d.__d = A = Z4(d, A, e) : A = $4(e, d, f, y, h, A), typeof n.type == "function" && (n.__d = A)) : A && f.__e == A && A.parentNode != e && (A = jr(f));
46230
46232
  }
46231
- for (n.__e = p, c = C; c--; ) y[c] != null && (typeof n.type == "function" && y[c].__e != null && y[c].__e == n.__d && (n.__d = Ur(i, c + 1)), n6(y[c], y[c]));
46233
+ for (n.__e = p, c = C; c--; ) y[c] != null && (typeof n.type == "function" && y[c].__e != null && y[c].__e == n.__d && (n.__d = jr(i, c + 1)), n6(y[c], y[c]));
46232
46234
  if (v) for (c = 0; c < v.length; c++) t6(v[c], v[++c], v[++c]);
46233
46235
  }
46234
46236
  function Z4(e, t, n) {
@@ -46303,7 +46305,7 @@ function dh(e, t, n, i, r, s, a, o, A) {
46303
46305
  c.componentDidUpdate(f, d, h);
46304
46306
  });
46305
46307
  }
46306
- c.context = C, c.props = v, c.state = c.__s, (u = ye.__r) && u(t), c.__d = !1, c.__v = t, c.__P = e, u = c.render(c.props, c.state, c.context), c.state = c.__s, c.getChildContext != null && (i = oi(oi({}, i), c.getChildContext())), l || c.getSnapshotBeforeUpdate == null || (h = c.getSnapshotBeforeUpdate(f, d)), k = u != null && u.type === Qr && u.key == null ? u.props.children : u, K4(e, Array.isArray(k) ? k : [
46308
+ c.context = C, c.props = v, c.state = c.__s, (u = ye.__r) && u(t), c.__d = !1, c.__v = t, c.__P = e, u = c.render(c.props, c.state, c.context), c.state = c.__s, c.getChildContext != null && (i = oi(oi({}, i), c.getChildContext())), l || c.getSnapshotBeforeUpdate == null || (h = c.getSnapshotBeforeUpdate(f, d)), k = u != null && u.type === Hr && u.key == null ? u.props.children : u, K4(e, Array.isArray(k) ? k : [
46307
46309
  k
46308
46310
  ], t, n, i, r, s, a, o, A), c.base = t.__e, t.__h = null, c.__h.length && a.push(c), p && (c.__E = c.__ = null), c.__e = !1;
46309
46311
  } else s == null && t.__v === n.__v ? (t.__k = n.__k, t.__e = n.__e) : t.__e = tq(n.__e, t, n, i, r, s, a, A);
@@ -46344,7 +46346,7 @@ function tq(e, t, n, i, r, s, a, o) {
46344
46346
  if (eq(e, f, l, r, o), c) t.__k = [];
46345
46347
  else if (h = t.props.children, K4(e, Array.isArray(h) ? h : [
46346
46348
  h
46347
- ], t, n, i, r && d !== "foreignObject", s, a, s ? s[0] : n.__k && Ur(n, 0), o), s != null) for (h = s.length; h--; ) s[h] != null && J4(s[h]);
46349
+ ], t, n, i, r && d !== "foreignObject", s, a, s ? s[0] : n.__k && jr(n, 0), o), s != null) for (h = s.length; h--; ) s[h] != null && J4(s[h]);
46348
46350
  o || ("value" in f && (h = f.value) !== void 0 && (h !== l.value || h !== e.value || d === "progress" && !h) && QA(e, "value", h, l.value, !1), "checked" in f && (h = f.checked) !== void 0 && h !== e.checked && QA(e, "checked", h, l.checked, !1));
46349
46351
  }
46350
46352
  return e;
@@ -46374,7 +46376,7 @@ function nq(e, t, n) {
46374
46376
  }
46375
46377
  function i6(e, t, n) {
46376
46378
  var i, r, s;
46377
- ye.__ && ye.__(e, t), r = (i = typeof n == "function") ? null : n && n.__k || t.__k, s = [], dh(t, e = (!i && n || t).__k = Sd(Qr, null, [
46379
+ ye.__ && ye.__(e, t), r = (i = typeof n == "function") ? null : n && n.__k || t.__k, s = [], dh(t, e = (!i && n || t).__k = Sd(Hr, null, [
46378
46380
  e
46379
46381
  ]), r || OA, OA, t.ownerSVGElement !== void 0, !i && n ? [
46380
46382
  n
@@ -46394,7 +46396,7 @@ Lu = V4.slice, ye = {
46394
46396
  n = this.__s != null && this.__s !== this.state ? this.__s : this.__s = oi({}, this.state), typeof e == "function" && (e = e(oi({}, n), this.props)), e && oi(n, e), e != null && this.__v && (t && this.__h.push(t), Jb(this));
46395
46397
  }, vn.prototype.forceUpdate = function(e) {
46396
46398
  this.__v && (this.__e = !0, e && this.__h.push(e), Jb(this));
46397
- }, vn.prototype.render = Qr, Vs = [], q4 = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, LA.__r = 0;
46399
+ }, vn.prototype.render = Hr, Vs = [], q4 = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, LA.__r = 0;
46398
46400
  var iq = 0;
46399
46401
  function ne(e, t, n, i, r) {
46400
46402
  var s, a, o = {};
@@ -46863,7 +46865,7 @@ async function fq(e) {
46863
46865
  }
46864
46866
  }
46865
46867
  }
46866
- o && br.reset(), o6();
46868
+ o && yr.reset(), o6();
46867
46869
  }
46868
46870
  function u6(e, t, n) {
46869
46871
  e || (e = {});
@@ -46907,7 +46909,7 @@ async function pq(e, { maxResults: t, caller: n } = {}) {
46907
46909
  return u == c ? o.id.localeCompare(A.id) : u - c;
46908
46910
  }), s.length > t && (s = s.slice(0, t))), s;
46909
46911
  }
46910
- var br = {
46912
+ var yr = {
46911
46913
  search: pq,
46912
46914
  get: hq,
46913
46915
  reset: mq,
@@ -47142,10 +47144,10 @@ var UA = {
47142
47144
  function Bd(e) {
47143
47145
  let { id: t, skin: n, emoji: i } = e;
47144
47146
  if (e.shortcodes) {
47145
- const o = e.shortcodes.match(br.SHORTCODES_REGEX);
47147
+ const o = e.shortcodes.match(yr.SHORTCODES_REGEX);
47146
47148
  o && (t = o[1], o[2] && (n = o[2]));
47147
47149
  }
47148
- if (i || (i = br.get(t || e.native)), !i) return e.fallback;
47150
+ if (i || (i = yr.get(t || e.native)), !i) return e.fallback;
47149
47151
  const r = i.skins[n - 1] || i.skins[0], s = r.src || (e.set != "native" && !e.spritesheet ? typeof e.getImageURL == "function" ? e.getImageURL(e.set, r.unified) : `https://cdn.jsdelivr.net/npm/emoji-datasource-${e.set}@15.0.1/img/${e.set}/64/${r.unified}.png` : void 0), a = typeof e.getSpritesheetURL == "function" ? e.getSpritesheetURL(e.set) : `https://cdn.jsdelivr.net/npm/emoji-datasource-${e.set}@15.0.1/img/${e.set}/sheets-256/64.png`;
47150
47152
  return /* @__PURE__ */ ne("span", {
47151
47153
  class: "emoji-mart-emoji",
@@ -47386,9 +47388,9 @@ ye.unmount = function(e) {
47386
47388
  }
47387
47389
  this.__b = null;
47388
47390
  }
47389
- var r = t.__e && Sd(Qr, null, e.fallback);
47391
+ var r = t.__e && Sd(Hr, null, e.fallback);
47390
47392
  return r && (r.__h = null), [
47391
- Sd(Qr, null, t.__e ? null : e.children),
47393
+ Sd(Hr, null, t.__e ? null : e.children),
47392
47394
  r
47393
47395
  ];
47394
47396
  };
@@ -47680,7 +47682,7 @@ class Fq extends vn {
47680
47682
  getEmojiByPos([t, n]) {
47681
47683
  const i = this.state.searchResults || this.grid, r = i[t] && i[t][n];
47682
47684
  if (r)
47683
- return br.get(r);
47685
+ return yr.get(r);
47684
47686
  }
47685
47687
  observeCategories() {
47686
47688
  const t = this.refs.navigation.current;
@@ -48079,7 +48081,7 @@ class Fq extends vn {
48079
48081
  height: this.props.emojiButtonSize
48080
48082
  }
48081
48083
  });
48082
- const y = br.get(p);
48084
+ const y = yr.get(p);
48083
48085
  return this.renderEmojiButton(y, {
48084
48086
  pos: [
48085
48087
  o.index,
@@ -48244,7 +48246,7 @@ class Fq extends vn {
48244
48246
  }), Wt(this, "handleSearchInput", async () => {
48245
48247
  const n = this.refs.searchInput.current;
48246
48248
  if (!n) return;
48247
- const { value: i } = n, r = await br.search(i), s = () => {
48249
+ const { value: i } = n, r = await yr.search(i), s = () => {
48248
48250
  this.refs.scroll.current && (this.refs.scroll.current.scrollTop = 0);
48249
48251
  };
48250
48252
  if (!r) return this.setState({
@@ -50058,7 +50060,7 @@ const Yq = Q.div`
50058
50060
  }
50059
50061
  `, vV = ({ children: e, modal: t, setOpenModal: n }) => {
50060
50062
  const i = Qe(), r = () => n(), s = () => i(Et(Fe.SETTINGS));
50061
- return t && /* @__PURE__ */ U(Zr, { id: "modal-background", style: { position: "absolute" }, children: [
50063
+ return t && /* @__PURE__ */ U(es, { id: "modal-background", style: { position: "absolute" }, children: [
50062
50064
  (() => {
50063
50065
  const o = KG[t];
50064
50066
  if (!o) return null;
@@ -50243,9 +50245,9 @@ const Yq = Q.div`
50243
50245
  title: e,
50244
50246
  handleCloseModal: t,
50245
50247
  children: n
50246
- }) => /* @__PURE__ */ g(Zr, { children: /* @__PURE__ */ U(Or, { children: [
50248
+ }) => /* @__PURE__ */ g(es, { children: /* @__PURE__ */ U(Fr, { children: [
50247
50249
  /* @__PURE__ */ g(qi, { onClick: t, style: { fontSize: 24 }, children: "×" }),
50248
- /* @__PURE__ */ g(Lr, { children: e }),
50250
+ /* @__PURE__ */ g(Qr, { children: e }),
50249
50251
  n
50250
50252
  ] }) }), yv = Q.button`
50251
50253
  padding: 12px 16px;
@@ -50456,7 +50458,7 @@ const Yq = Q.div`
50456
50458
  }, a = async (l, f) => {
50457
50459
  if (!f?.length) return;
50458
50460
  const d = await Y0(f);
50459
- d && d.length > 0 && K.dispatch(wr({ newUsers: d })), K.dispatch(
50461
+ d && d.length > 0 && K.dispatch(Er({ newUsers: d })), K.dispatch(
50460
50462
  f2({
50461
50463
  roomJID: l,
50462
50464
  messages: f
@@ -50465,7 +50467,7 @@ const Yq = Q.div`
50465
50467
  }, o = async (l, f) => {
50466
50468
  if (!f?.length) return;
50467
50469
  const d = await Y0(f);
50468
- d && d.length > 0 && K.dispatch(wr({ newUsers: d })), K.dispatch(
50470
+ d && d.length > 0 && K.dispatch(Er({ newUsers: d })), K.dispatch(
50469
50471
  P9({
50470
50472
  roomJID: l,
50471
50473
  messages: f
@@ -50481,7 +50483,7 @@ const Yq = Q.div`
50481
50483
  const y = String(l?.id || "").trim(), C = String(f?.id || "").trim();
50482
50484
  if (y && C && y === C)
50483
50485
  return !0;
50484
- const k = Ar(l), E = Ar(f);
50486
+ const k = ur(l), E = ur(f);
50485
50487
  return k > 0 && E > 0 && k === E;
50486
50488
  }, c = Object.keys(e);
50487
50489
  if (c.length > 0) {
@@ -50526,7 +50528,7 @@ const Yq = Q.div`
50526
50528
  (b) => u(C, b)
50527
50529
  )) {
50528
50530
  Z.log(`[Catchup] anchor_found room=${p} anchor=${E}`);
50529
- const b = Ar(C), T = k.filter((B) => Ar(B) > b);
50531
+ const b = ur(C), T = k.filter((B) => ur(B) > b);
50530
50532
  T.length > 0 && await a(p, T), Z.log(
50531
50533
  `[Catchup] catchup_apply_count room=${p} count=${T.length}`
50532
50534
  );
@@ -50778,10 +50780,10 @@ const RV = ({
50778
50780
  }, [y, k, P.xmppPassword]), ge(() => {
50779
50781
  i(s2(n));
50780
50782
  const { changed: S } = VG(n);
50781
- S && (f.current = !1, d.current.clear(), h.current.clear(), p.current.clear(), i(Kd()), i(g2()), i(et({ roomJID: null })), lr.pause(), lr.purge().catch((j) => {
50783
+ S && (f.current = !1, d.current.clear(), h.current.clear(), p.current.clear(), i(Kd()), i(g2()), i(et({ roomJID: null })), dr.pause(), dr.purge().catch((j) => {
50782
50784
  console.warn("[CacheScope] Persist purge failed", j);
50783
50785
  }).finally(() => {
50784
- lr.persist();
50786
+ dr.persist();
50785
50787
  }));
50786
50788
  }, [n, i]);
50787
50789
  const $ = async () => {
@@ -51179,7 +51181,7 @@ const RV = ({
51179
51181
  return;
51180
51182
  if (i?.customLogin?.enabled && i?.customLogin?.loginFunction) {
51181
51183
  try {
51182
- const d = await i.customLogin.loginFunction(), h = await hs(d);
51184
+ const d = await i.customLogin.loginFunction(), h = await ps(d);
51183
51185
  !A && h ? o(dn(h)) : A || n(!0);
51184
51186
  } catch (d) {
51185
51187
  Z.log("error with custom login", d), A || n(!0);
@@ -51187,13 +51189,13 @@ const RV = ({
51187
51189
  return;
51188
51190
  }
51189
51191
  if (i?.userLogin?.enabled && i.userLogin.user) {
51190
- const d = await hs(i.userLogin.user);
51192
+ const d = await ps(i.userLogin.user);
51191
51193
  !A && d && o(dn(d));
51192
51194
  return;
51193
51195
  }
51194
51196
  const l = n2(i?.appId);
51195
51197
  if (l && t2(l)) {
51196
- const d = await hs(l);
51198
+ const d = await ps(l);
51197
51199
  !A && d && o(dn(d));
51198
51200
  return;
51199
51201
  }
@@ -51201,7 +51203,7 @@ const RV = ({
51201
51203
  try {
51202
51204
  const d = await Dw(i.jwtLogin.token);
51203
51205
  if (!A && d) {
51204
- const h = await hs(d);
51206
+ const h = await ps(d);
51205
51207
  h && o(dn(h));
51206
51208
  }
51207
51209
  } catch (d) {
@@ -51214,7 +51216,7 @@ const RV = ({
51214
51216
  try {
51215
51217
  const d = await a();
51216
51218
  if (!A && d) {
51217
- const h = await hs(d);
51219
+ const h = await ps(d);
51218
51220
  h && o(dn(h));
51219
51221
  }
51220
51222
  } catch (d) {
@@ -51783,7 +51785,7 @@ const AJ = jA(void 0), uJ = 3, cJ = 3e4, lJ = ({ children: e, config: t }) => {
51783
51785
  ...s.config,
51784
51786
  newArch: s.config.newArch ?? !0
51785
51787
  } : s.config, [s.config]);
51786
- return /* @__PURE__ */ g(Ev, { store: K, children: /* @__PURE__ */ g(v6, { loading: /* @__PURE__ */ g(tn, {}), persistor: lr, children: /* @__PURE__ */ g(QW, { children: /* @__PURE__ */ U(lJ, { config: a, children: [
51788
+ return /* @__PURE__ */ g(Ev, { store: K, children: /* @__PURE__ */ g(v6, { loading: /* @__PURE__ */ g(tn, {}), persistor: dr, children: /* @__PURE__ */ g(QW, { children: /* @__PURE__ */ U(lJ, { config: a, children: [
51787
51789
  /* @__PURE__ */ g(dJ, {}),
51788
51790
  /* @__PURE__ */ g(hJ, { config: a }),
51789
51791
  /* @__PURE__ */ g(
@@ -51848,7 +51850,7 @@ async function ZJ(e, t = {}) {
51848
51850
  }
51849
51851
  const A = `resend-text-message-${Xo()}`, u = Date.now(), c = new Date(u).toISOString();
51850
51852
  K.dispatch(
51851
- cr({
51853
+ fr({
51852
51854
  roomJID: a,
51853
51855
  message: {
51854
51856
  id: A,