akpm-knowledge-base-chat 1.0.92 → 1.0.93

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.
Files changed (2) hide show
  1. package/CDN/akb-chat.js +288 -290
  2. package/package.json +1 -1
package/CDN/akb-chat.js CHANGED
@@ -1,4 +1,4 @@
1
- /* Version: 1.0.92 */
1
+ /* Version: 1.0.93 */
2
2
  var ro = Object.defineProperty;
3
3
  var Us = (t) => {
4
4
  throw TypeError(t);
@@ -8,7 +8,7 @@ var E = (t, e, n) => so(t, typeof e != "symbol" ? e + "" : e, n), Bs = (t, e, n)
8
8
  var nt = (t, e, n) => (Bs(t, e, "read from private field"), n ? n.call(t) : e.get(t)), jr = (t, e, n) => e.has(t) ? Us("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), Rr = (t, e, n, r) => (Bs(t, e, "write to private field"), r ? r.call(t, n) : e.set(t, n), n);
9
9
  const io = "5";
10
10
  typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(io);
11
- const os = 1, ls = 2, $i = 4, ao = 8, oo = 16, lo = 1, co = 2, Ti = 4, uo = 8, fo = 16, ho = 1, po = 2, vo = 4, go = 1, mo = 2, Si = "[", cs = "[!", us = "]", un = {}, rt = Symbol();
11
+ const os = 1, ls = 2, $i = 4, ao = 8, oo = 16, lo = 1, co = 2, Ti = 4, uo = 8, fo = 16, ho = 1, po = 2, vo = 4, go = 1, mo = 2, Si = "[", cs = "[!", us = "]", pn = {}, rt = Symbol();
12
12
  function bo(t) {
13
13
  return t.endsWith("capture") && t !== "gotpointercapture" && t !== "lostpointercapture";
14
14
  }
@@ -59,11 +59,11 @@ function zo(t) {
59
59
  return yo.includes(t);
60
60
  }
61
61
  const Br = !1;
62
- var br = Array.isArray, $o = Array.prototype.indexOf, ds = Array.from, sr = Object.keys, ir = Object.defineProperty, Kt = Object.getOwnPropertyDescriptor, Ei = Object.getOwnPropertyDescriptors, To = Object.prototype, So = Array.prototype, fs = Object.getPrototypeOf;
62
+ var br = Array.isArray, $o = Array.prototype.indexOf, ds = Array.from, sr = Object.keys, ir = Object.defineProperty, nn = Object.getOwnPropertyDescriptor, Ei = Object.getOwnPropertyDescriptors, To = Object.prototype, So = Array.prototype, fs = Object.getPrototypeOf;
63
63
  function Eo(t) {
64
64
  return typeof t == "function";
65
65
  }
66
- const Tn = () => {
66
+ const En = () => {
67
67
  };
68
68
  function Co(t) {
69
69
  return t();
@@ -72,7 +72,7 @@ function ar(t) {
72
72
  for (var e = 0; e < t.length; e++)
73
73
  t[e]();
74
74
  }
75
- const ft = 2, Ci = 4, Bn = 8, xr = 16, Lt = 32, nn = 64, or = 128, rn = 256, lr = 512, Ze = 1024, Mt = 2048, sn = 4096, St = 8192, bn = 16384, Ii = 32768, wr = 65536, Io = 1 << 17, Ao = 1 << 19, Ai = 1 << 20, Ot = Symbol("$state"), Li = Symbol("legacy props"), Lo = Symbol("");
75
+ const ft = 2, Ci = 4, Bn = 8, xr = 16, Lt = 32, on = 64, or = 128, ln = 256, lr = 512, Ze = 1024, Mt = 2048, cn = 4096, St = 8192, wn = 16384, Ii = 32768, wr = 65536, Io = 1 << 17, Ao = 1 << 19, Ai = 1 << 20, Ot = Symbol("$state"), Li = Symbol("legacy props"), Lo = Symbol("");
76
76
  function ji(t) {
77
77
  return t === this.v;
78
78
  }
@@ -112,9 +112,9 @@ function Bo() {
112
112
  function qo() {
113
113
  throw new Error("https://svelte.dev/e/state_unsafe_mutation");
114
114
  }
115
- let xn = !1, Ho = !1;
115
+ let _n = !1, Ho = !1;
116
116
  function Yo() {
117
- xn = !0;
117
+ _n = !0;
118
118
  }
119
119
  function st(t, e) {
120
120
  var n = {
@@ -135,7 +135,7 @@ function J(t) {
135
135
  function _r(t, e = !1) {
136
136
  var r;
137
137
  const n = st(t);
138
- return e || (n.equals = hs), xn && Se !== null && Se.l !== null && ((r = Se.l).s ?? (r.s = [])).push(n), n;
138
+ return e || (n.equals = hs), _n && Se !== null && Se.l !== null && ((r = Se.l).s ?? (r.s = [])).push(n), n;
139
139
  }
140
140
  function Bt(t, e = !1) {
141
141
  return /* @__PURE__ */ Ri(/* @__PURE__ */ _r(t, e));
@@ -156,17 +156,17 @@ function b(t, e) {
156
156
  (Et === null || !Et.includes(t)) && qo(), qr(t, e);
157
157
  }
158
158
  function qr(t, e) {
159
- return t.equals(e) || (t.v, t.v = e, t.wv = Ki(), Fi(t, Mt), Yn() && pe !== null && pe.f & Ze && !(pe.f & (Lt | nn)) && (jt === null ? il([t]) : jt.push(t))), e;
159
+ return t.equals(e) || (t.v, t.v = e, t.wv = Ki(), Fi(t, Mt), Yn() && pe !== null && pe.f & Ze && !(pe.f & (Lt | on)) && (jt === null ? il([t]) : jt.push(t))), e;
160
160
  }
161
161
  function Fi(t, e) {
162
162
  var n = t.reactions;
163
163
  if (n !== null)
164
164
  for (var r = Yn(), s = n.length, i = 0; i < s; i++) {
165
165
  var a = n[i], o = a.f;
166
- o & Mt || !r && a === pe || (wt(a, e), o & (Ze | rn) && (o & ft ? Fi(
166
+ o & Mt || !r && a === pe || (wt(a, e), o & (Ze | ln) && (o & ft ? Fi(
167
167
  /** @type {Derived} */
168
168
  a,
169
- sn
169
+ cn
170
170
  ) : Tr(
171
171
  /** @type {Effect} */
172
172
  a
@@ -183,10 +183,10 @@ function Dt(t) {
183
183
  let xe;
184
184
  function dt(t) {
185
185
  if (t === null)
186
- throw kr(), un;
186
+ throw kr(), pn;
187
187
  return xe = t;
188
188
  }
189
- function hn() {
189
+ function mn() {
190
190
  return dt(
191
191
  /** @type {TemplateNode} */
192
192
  /* @__PURE__ */ Nt(xe)
@@ -195,7 +195,7 @@ function hn() {
195
195
  function k(t) {
196
196
  if (de) {
197
197
  if (/* @__PURE__ */ Nt(xe) !== null)
198
- throw kr(), un;
198
+ throw kr(), pn;
199
199
  xe = t;
200
200
  }
201
201
  }
@@ -260,7 +260,7 @@ function C(t, e = null, n) {
260
260
  if (l === Ot)
261
261
  return t;
262
262
  var d = s.get(l), h = l in c;
263
- if (d === void 0 && (!h || (w = Kt(c, l)) != null && w.writable) && (d = st(C(h ? c[l] : rt, o)), s.set(l, d)), d !== void 0) {
263
+ if (d === void 0 && (!h || (w = nn(c, l)) != null && w.writable) && (d = st(C(h ? c[l] : rt, o)), s.set(l, d)), d !== void 0) {
264
264
  var p = f(d);
265
265
  return p === rt ? void 0 : p;
266
266
  }
@@ -288,7 +288,7 @@ function C(t, e = null, n) {
288
288
  if (l === Ot)
289
289
  return !0;
290
290
  var u = s.get(l), d = u !== void 0 && u.v !== rt || Reflect.has(c, l);
291
- if (u !== void 0 || pe !== null && (!d || (p = Kt(c, l)) != null && p.writable)) {
291
+ if (u !== void 0 || pe !== null && (!d || (p = nn(c, l)) != null && p.writable)) {
292
292
  u === void 0 && (u = st(d ? C(c[l], o) : rt), s.set(l, u));
293
293
  var h = f(u);
294
294
  if (h === rt)
@@ -305,7 +305,7 @@ function C(t, e = null, n) {
305
305
  var m = s.get(w + "");
306
306
  m !== void 0 ? b(m, rt) : w in c && (m = st(rt), s.set(w + "", m));
307
307
  }
308
- h === void 0 ? (!p || (z = Kt(c, l)) != null && z.writable) && (h = st(void 0), b(h, C(u, o)), s.set(l, h)) : (p = h.v !== rt, b(h, C(u, o)));
308
+ h === void 0 ? (!p || (z = nn(c, l)) != null && z.writable) && (h = st(void 0), b(h, C(u, o)), s.set(l, h)) : (p = h.v !== rt, b(h, C(u, o)));
309
309
  var T = Reflect.getOwnPropertyDescriptor(c, l);
310
310
  if (T != null && T.set && T.set.call(d, u), !p) {
311
311
  if (i && typeof l == "string") {
@@ -349,7 +349,7 @@ function Yr() {
349
349
  if (Ys === void 0) {
350
350
  Ys = window;
351
351
  var t = Element.prototype, e = Node.prototype;
352
- Di = Kt(e, "firstChild").get, Pi = Kt(e, "nextSibling").get, t.__click = void 0, t.__className = "", t.__attributes = null, t.__styles = null, t.__e = void 0, Text.prototype.__t = void 0;
352
+ Di = nn(e, "firstChild").get, Pi = nn(e, "nextSibling").get, t.__click = void 0, t.__className = "", t.__attributes = null, t.__styles = null, t.__e = void 0, Text.prototype.__t = void 0;
353
353
  }
354
354
  }
355
355
  function Jt(t = "") {
@@ -412,7 +412,7 @@ function ps(t) {
412
412
  // @__NO_SIDE_EFFECTS__
413
413
  function Ne(t) {
414
414
  var e = ft | Mt;
415
- pe === null ? e |= rn : pe.f |= Ai;
415
+ pe === null ? e |= ln : pe.f |= Ai;
416
416
  var n = Ce !== null && Ce.f & ft ? (
417
417
  /** @type {Derived} */
418
418
  Ce
@@ -478,21 +478,21 @@ function Ni(t) {
478
478
  return e;
479
479
  }
480
480
  function Ui(t) {
481
- var e = Ni(t), n = (Qt || t.f & rn) && t.deps !== null ? sn : Ze;
481
+ var e = Ni(t), n = (tn || t.f & ln) && t.deps !== null ? cn : Ze;
482
482
  wt(t, n), t.equals(e) || (t.v = e, t.wv = Ki());
483
483
  }
484
484
  function vs(t) {
485
- Mi(t), Pn(t, 0), wt(t, bn), t.v = t.children = t.deps = t.ctx = t.reactions = null;
485
+ Mi(t), Mn(t, 0), wt(t, wn), t.v = t.children = t.deps = t.ctx = t.reactions = null;
486
486
  }
487
487
  function Bi(t) {
488
- pe === null && Ce === null && Do(), Ce !== null && Ce.f & rn && Fo(), bs && Ro();
488
+ pe === null && Ce === null && Do(), Ce !== null && Ce.f & ln && Fo(), bs && Ro();
489
489
  }
490
490
  function Wo(t, e) {
491
491
  var n = e.last;
492
492
  n === null ? e.last = e.first = t : (n.next = t, t.prev = n, e.last = t);
493
493
  }
494
- function an(t, e, n, r = !0) {
495
- var s = (t & nn) !== 0, i = pe, a = {
494
+ function un(t, e, n, r = !0) {
495
+ var s = (t & on) !== 0, i = pe, a = {
496
496
  ctx: Se,
497
497
  deps: null,
498
498
  deriveds: null,
@@ -510,7 +510,7 @@ function an(t, e, n, r = !0) {
510
510
  wv: 0
511
511
  };
512
512
  if (n) {
513
- var o = dn;
513
+ var o = vn;
514
514
  try {
515
515
  Gs(!0), $r(a), a.f |= Ii;
516
516
  } catch (u) {
@@ -530,7 +530,7 @@ function an(t, e, n, r = !0) {
530
530
  return a;
531
531
  }
532
532
  function Zo(t) {
533
- const e = an(Bn, null, !1);
533
+ const e = un(Bn, null, !1);
534
534
  return wt(e, Ze), e.teardown = t, e;
535
535
  }
536
536
  function _t(t) {
@@ -547,36 +547,36 @@ function _t(t) {
547
547
  reaction: Ce
548
548
  });
549
549
  } else {
550
- var r = wn(t);
550
+ var r = kn(t);
551
551
  return r;
552
552
  }
553
553
  }
554
554
  function Xo(t) {
555
- return Bi(), _n(t);
555
+ return Bi(), yn(t);
556
556
  }
557
557
  function Vo(t) {
558
- const e = an(nn, t, !0);
558
+ const e = un(on, t, !0);
559
559
  return () => {
560
560
  Ct(e);
561
561
  };
562
562
  }
563
563
  function Qo(t) {
564
- const e = an(nn, t, !0);
564
+ const e = un(on, t, !0);
565
565
  return (n = {}) => new Promise((r) => {
566
566
  n.outro ? cr(e, () => {
567
567
  Ct(e), r(void 0);
568
568
  }) : (Ct(e), r(void 0));
569
569
  });
570
570
  }
571
- function wn(t) {
572
- return an(Ci, t, !1);
571
+ function kn(t) {
572
+ return un(Ci, t, !1);
573
573
  }
574
574
  function qn(t, e) {
575
575
  var n = (
576
576
  /** @type {ComponentContextLegacy} */
577
577
  Se
578
578
  ), r = { effect: null, ran: !1 };
579
- n.l.r1.push(r), r.effect = _n(() => {
579
+ n.l.r1.push(r), r.effect = yn(() => {
580
580
  t(), !r.ran && (r.ran = !0, b(n.l.r2, !0), At(e));
581
581
  });
582
582
  }
@@ -585,28 +585,28 @@ function Hn() {
585
585
  /** @type {ComponentContextLegacy} */
586
586
  Se
587
587
  );
588
- _n(() => {
588
+ yn(() => {
589
589
  if (f(t.l.r2)) {
590
590
  for (var e of t.l.r1) {
591
591
  var n = e.effect;
592
- n.f & Ze && wt(n, sn), yn(n) && $r(n), e.ran = !1;
592
+ n.f & Ze && wt(n, cn), $n(n) && $r(n), e.ran = !1;
593
593
  }
594
594
  t.l.r2.v = !1;
595
595
  }
596
596
  });
597
597
  }
598
- function _n(t) {
599
- return an(Bn, t, !0);
598
+ function yn(t) {
599
+ return un(Bn, t, !0);
600
600
  }
601
601
  function D(t, e = [], n = Ne) {
602
602
  const r = e.map(n);
603
603
  return yr(() => t(...r.map(f)));
604
604
  }
605
605
  function yr(t, e = 0) {
606
- return an(Bn | xr | e, t, !0);
606
+ return un(Bn | xr | e, t, !0);
607
607
  }
608
- function pn(t, e = !0) {
609
- return an(Bn | Lt, t, !0, e);
608
+ function bn(t, e = !0) {
609
+ return un(Bn | Lt, t, !0, e);
610
610
  }
611
611
  function qi(t) {
612
612
  var e = t.teardown;
@@ -653,7 +653,7 @@ function Ct(t, e = !0) {
653
653
  }
654
654
  n = !0;
655
655
  }
656
- Yi(t, e && !n), Hi(t), Pn(t, 0), wt(t, bn);
656
+ Yi(t, e && !n), Hi(t), Mn(t, 0), wt(t, wn);
657
657
  var a = t.transitions;
658
658
  if (a !== null)
659
659
  for (const c of a)
@@ -697,7 +697,7 @@ function ur(t) {
697
697
  }
698
698
  function Wi(t, e) {
699
699
  if (t.f & St) {
700
- t.f ^= St, t.f & Ze || (t.f ^= Ze), yn(t) && (wt(t, Mt), Tr(t));
700
+ t.f ^= St, t.f & Ze || (t.f ^= Ze), $n(t) && (wt(t, Mt), Tr(t));
701
701
  for (var n = t.first; n !== null; ) {
702
702
  var r = n.next, s = (n.f & wr) !== 0 || (n.f & Lt) !== 0;
703
703
  Wi(n, s ? e : !1), n = r;
@@ -719,7 +719,7 @@ function Xi() {
719
719
  const t = Jr.slice();
720
720
  Jr = [], ar(t);
721
721
  }
722
- function kn(t) {
722
+ function zn(t) {
723
723
  dr || (dr = !0, queueMicrotask(Zi)), Gr.push(t);
724
724
  }
725
725
  function tl(t) {
@@ -732,14 +732,14 @@ function ms(t) {
732
732
  throw new Error("https://svelte.dev/e/lifecycle_outside_component");
733
733
  }
734
734
  const Vi = 0, rl = 1;
735
- let Kn = !1, er = Vi, Fn = !1, Dn = null, dn = !1, bs = !1;
735
+ let Kn = !1, er = Vi, Pn = !1, On = null, vn = !1, bs = !1;
736
736
  function Gs(t) {
737
- dn = t;
737
+ vn = t;
738
738
  }
739
739
  function Js(t) {
740
740
  bs = t;
741
741
  }
742
- let Vt = [], fn = 0;
742
+ let en = [], gn = 0;
743
743
  let Ce = null, Gt = !1;
744
744
  function It(t) {
745
745
  Ce = t;
@@ -756,29 +756,29 @@ let it = null, lt = 0, jt = null;
756
756
  function il(t) {
757
757
  jt = t;
758
758
  }
759
- let Qi = 1, hr = 0, Qt = !1, Se = null;
759
+ let Qi = 1, hr = 0, tn = !1, Se = null;
760
760
  function Ki() {
761
761
  return ++Qi;
762
762
  }
763
763
  function Yn() {
764
- return !xn || Se !== null && Se.l === null;
764
+ return !_n || Se !== null && Se.l === null;
765
765
  }
766
- function yn(t) {
766
+ function $n(t) {
767
767
  var l;
768
768
  var e = t.f;
769
769
  if (e & Mt)
770
770
  return !0;
771
- if (e & sn) {
772
- var n = t.deps, r = (e & rn) !== 0;
771
+ if (e & cn) {
772
+ var n = t.deps, r = (e & ln) !== 0;
773
773
  if (n !== null) {
774
- var s, i, a = (e & lr) !== 0, o = r && pe !== null && !Qt, c = n.length;
774
+ var s, i, a = (e & lr) !== 0, o = r && pe !== null && !tn, c = n.length;
775
775
  if (a || o) {
776
776
  for (s = 0; s < c; s++)
777
777
  i = n[s], (a || !((l = i == null ? void 0 : i.reactions) != null && l.includes(t))) && (i.reactions ?? (i.reactions = [])).push(t);
778
778
  a && (t.f ^= lr);
779
779
  }
780
780
  for (s = 0; s < c; s++)
781
- if (i = n[s], yn(
781
+ if (i = n[s], $n(
782
782
  /** @type {Derived} */
783
783
  i
784
784
  ) && Ui(
@@ -787,7 +787,7 @@ function yn(t) {
787
787
  ), i.wv > t.wv)
788
788
  return !0;
789
789
  }
790
- (!r || pe !== null && !Qt) && wt(t, Ze);
790
+ (!r || pe !== null && !tn) && wt(t, Ze);
791
791
  }
792
792
  return !1;
793
793
  }
@@ -805,7 +805,7 @@ function al(t, e) {
805
805
  throw Kn = !1, t;
806
806
  }
807
807
  function ol(t) {
808
- return (t.f & bn) === 0 && (t.parent === null || (t.parent.f & or) === 0);
808
+ return (t.f & wn) === 0 && (t.parent === null || (t.parent.f & or) === 0);
809
809
  }
810
810
  function zr(t, e, n, r) {
811
811
  if (Kn) {
@@ -829,7 +829,7 @@ function ea(t, e, n = 0) {
829
829
  i,
830
830
  e,
831
831
  n + 1
832
- ) : e === i && (n === 0 ? wt(i, Mt) : i.f & Ze && wt(i, sn), Tr(
832
+ ) : e === i && (n === 0 ? wt(i, Mt) : i.f & Ze && wt(i, cn), Tr(
833
833
  /** @type {Effect} */
834
834
  i
835
835
  ));
@@ -837,9 +837,9 @@ function ea(t, e, n = 0) {
837
837
  }
838
838
  function ta(t) {
839
839
  var p;
840
- var e = it, n = lt, r = jt, s = Ce, i = Qt, a = Et, o = Se, c = Gt, l = t.f;
840
+ var e = it, n = lt, r = jt, s = Ce, i = tn, a = Et, o = Se, c = Gt, l = t.f;
841
841
  it = /** @type {null | Value[]} */
842
- null, lt = 0, jt = null, Ce = l & (Lt | nn) ? null : t, Qt = !dn && (l & rn) !== 0, Et = null, Se = t.ctx, Gt = !1, hr++;
842
+ null, lt = 0, jt = null, Ce = l & (Lt | on) ? null : t, tn = !vn && (l & ln) !== 0, Et = null, Se = t.ctx, Gt = !1, hr++;
843
843
  try {
844
844
  var u = (
845
845
  /** @type {Function} */
@@ -847,16 +847,16 @@ function ta(t) {
847
847
  ), d = t.deps;
848
848
  if (it !== null) {
849
849
  var h;
850
- if (Pn(t, lt), d !== null && lt > 0)
850
+ if (Mn(t, lt), d !== null && lt > 0)
851
851
  for (d.length = lt + it.length, h = 0; h < it.length; h++)
852
852
  d[lt + h] = it[h];
853
853
  else
854
854
  t.deps = d = it;
855
- if (!Qt)
855
+ if (!tn)
856
856
  for (h = lt; h < d.length; h++)
857
857
  ((p = d[h]).reactions ?? (p.reactions = [])).push(t);
858
- } else d !== null && lt < d.length && (Pn(t, lt), d.length = lt);
859
- if (Yn() && jt !== null && !(t.f & (ft | sn | Mt)))
858
+ } else d !== null && lt < d.length && (Mn(t, lt), d.length = lt);
859
+ if (Yn() && jt !== null && !(t.f & (ft | cn | Mt)))
860
860
  for (h = 0; h < /** @type {Source[]} */
861
861
  jt.length; h++)
862
862
  ea(
@@ -866,7 +866,7 @@ function ta(t) {
866
866
  );
867
867
  return s !== null && hr++, u;
868
868
  } finally {
869
- it = e, lt = n, jt = r, Ce = s, Qt = i, Et = a, Se = o, Gt = c;
869
+ it = e, lt = n, jt = r, Ce = s, tn = i, Et = a, Se = o, Gt = c;
870
870
  }
871
871
  }
872
872
  function ll(t, e) {
@@ -881,13 +881,13 @@ function ll(t, e) {
881
881
  n === null && e.f & ft && // Destroying a child effect while updating a parent effect can cause a dependency to appear
882
882
  // to be unused, when in fact it is used by the currently-updating parent. Checking `new_deps`
883
883
  // allows us to skip the expensive work of disconnecting and immediately reconnecting it
884
- (it === null || !it.includes(e)) && (wt(e, sn), e.f & (rn | lr) || (e.f ^= lr), Pn(
884
+ (it === null || !it.includes(e)) && (wt(e, cn), e.f & (ln | lr) || (e.f ^= lr), Mn(
885
885
  /** @type {Derived} **/
886
886
  e,
887
887
  0
888
888
  ));
889
889
  }
890
- function Pn(t, e) {
890
+ function Mn(t, e) {
891
891
  var n = t.deps;
892
892
  if (n !== null)
893
893
  for (var r = e; r < n.length; r++)
@@ -895,7 +895,7 @@ function Pn(t, e) {
895
895
  }
896
896
  function $r(t) {
897
897
  var e = t.f;
898
- if (!(e & bn)) {
898
+ if (!(e & wn)) {
899
899
  wt(t, Ze);
900
900
  var n = pe, r = Se;
901
901
  pe = t;
@@ -913,25 +913,25 @@ function $r(t) {
913
913
  }
914
914
  }
915
915
  function na() {
916
- if (fn > 1e3) {
917
- fn = 0;
916
+ if (gn > 1e3) {
917
+ gn = 0;
918
918
  try {
919
919
  Po();
920
920
  } catch (t) {
921
- if (Dn !== null)
922
- zr(t, Dn, null);
921
+ if (On !== null)
922
+ zr(t, On, null);
923
923
  else
924
924
  throw t;
925
925
  }
926
926
  }
927
- fn++;
927
+ gn++;
928
928
  }
929
929
  function ra(t) {
930
930
  var e = t.length;
931
931
  if (e !== 0) {
932
932
  na();
933
- var n = dn;
934
- dn = !0;
933
+ var n = vn;
934
+ vn = !0;
935
935
  try {
936
936
  for (var r = 0; r < e; r++) {
937
937
  var s = t[r];
@@ -940,7 +940,7 @@ function ra(t) {
940
940
  sa(s, i), cl(i);
941
941
  }
942
942
  } finally {
943
- dn = n;
943
+ vn = n;
944
944
  }
945
945
  }
946
946
  }
@@ -949,31 +949,31 @@ function cl(t) {
949
949
  if (e !== 0)
950
950
  for (var n = 0; n < e; n++) {
951
951
  var r = t[n];
952
- if (!(r.f & (bn | St)))
952
+ if (!(r.f & (wn | St)))
953
953
  try {
954
- yn(r) && ($r(r), r.deps === null && r.first === null && r.nodes_start === null && (r.teardown === null ? Gi(r) : r.fn = null));
954
+ $n(r) && ($r(r), r.deps === null && r.first === null && r.nodes_start === null && (r.teardown === null ? Gi(r) : r.fn = null));
955
955
  } catch (s) {
956
956
  zr(s, r, null, r.ctx);
957
957
  }
958
958
  }
959
959
  }
960
960
  function ul() {
961
- if (Fn = !1, fn > 1001)
961
+ if (Pn = !1, gn > 1001)
962
962
  return;
963
- const t = Vt;
964
- Vt = [], ra(t), Fn || (fn = 0, Dn = null);
963
+ const t = en;
964
+ en = [], ra(t), Pn || (gn = 0, On = null);
965
965
  }
966
966
  function Tr(t) {
967
- er === Vi && (Fn || (Fn = !0, queueMicrotask(ul))), Dn = t;
967
+ er === Vi && (Pn || (Pn = !0, queueMicrotask(ul))), On = t;
968
968
  for (var e = t; e.parent !== null; ) {
969
969
  e = e.parent;
970
970
  var n = e.f;
971
- if (n & (nn | Lt)) {
971
+ if (n & (on | Lt)) {
972
972
  if (!(n & Ze)) return;
973
973
  e.f ^= Ze;
974
974
  }
975
975
  }
976
- Vt.push(e);
976
+ en.push(e);
977
977
  }
978
978
  function sa(t, e) {
979
979
  var n = t.first, r = [];
@@ -985,7 +985,7 @@ function sa(t, e) {
985
985
  n.f ^= Ze;
986
986
  else
987
987
  try {
988
- yn(n) && $r(n);
988
+ $n(n) && $r(n);
989
989
  } catch (d) {
990
990
  zr(d, n, null, n.ctx);
991
991
  }
@@ -1014,15 +1014,15 @@ function sa(t, e) {
1014
1014
  c = r[u], e.push(c), sa(c, e);
1015
1015
  }
1016
1016
  function v(t) {
1017
- var e = er, n = Vt;
1017
+ var e = er, n = en;
1018
1018
  try {
1019
1019
  na();
1020
1020
  const s = [];
1021
- er = rl, Vt = s, Fn = !1, ra(n);
1021
+ er = rl, en = s, Pn = !1, ra(n);
1022
1022
  var r = t == null ? void 0 : t();
1023
- return nl(), (Vt.length > 0 || s.length > 0) && v(), fn = 0, Dn = null, r;
1023
+ return nl(), (en.length > 0 || s.length > 0) && v(), gn = 0, On = null, r;
1024
1024
  } finally {
1025
- er = e, Vt = n;
1025
+ er = e, en = n;
1026
1026
  }
1027
1027
  }
1028
1028
  async function Dr() {
@@ -1031,7 +1031,7 @@ async function Dr() {
1031
1031
  function f(t) {
1032
1032
  var u;
1033
1033
  var e = t.f, n = (e & ft) !== 0;
1034
- if (n && e & bn) {
1034
+ if (n && e & wn) {
1035
1035
  var r = Ni(
1036
1036
  /** @type {Derived} */
1037
1037
  t
@@ -1066,7 +1066,7 @@ function f(t) {
1066
1066
  break;
1067
1067
  }
1068
1068
  return n && (i = /** @type {Derived} */
1069
- t, yn(i) && Ui(i)), t.v;
1069
+ t, $n(i) && Ui(i)), t.v;
1070
1070
  }
1071
1071
  function At(t) {
1072
1072
  var e = Gt;
@@ -1080,7 +1080,7 @@ const dl = -7169;
1080
1080
  function wt(t, e) {
1081
1081
  t.f = t.f & dl | e;
1082
1082
  }
1083
- function On(t, e = 1) {
1083
+ function Nn(t, e = 1) {
1084
1084
  var n = f(t), r = e === 1 ? n++ : n--;
1085
1085
  return b(t, n), r;
1086
1086
  }
@@ -1093,7 +1093,7 @@ function re(t, e = !1, n) {
1093
1093
  s: t,
1094
1094
  x: null,
1095
1095
  l: null
1096
- }, xn && !e && (Se.l = {
1096
+ }, _n && !e && (Se.l = {
1097
1097
  s: null,
1098
1098
  u: null,
1099
1099
  r1: [],
@@ -1111,7 +1111,7 @@ function se(t) {
1111
1111
  try {
1112
1112
  for (var s = 0; s < a.length; s++) {
1113
1113
  var i = a[s];
1114
- xt(i.effect), It(i.reaction), wn(i.fn);
1114
+ xt(i.effect), It(i.reaction), kn(i.fn);
1115
1115
  }
1116
1116
  } finally {
1117
1117
  xt(n), It(r);
@@ -1122,7 +1122,7 @@ function se(t) {
1122
1122
  return t || /** @type {T} */
1123
1123
  {};
1124
1124
  }
1125
- function zn(t) {
1125
+ function Tn(t) {
1126
1126
  if (!(typeof t != "object" || !t || t instanceof EventTarget)) {
1127
1127
  if (Ot in t)
1128
1128
  Wr(t);
@@ -1159,7 +1159,7 @@ function Wr(t, e = /* @__PURE__ */ new Set()) {
1159
1159
  function fl(t, e) {
1160
1160
  if (e) {
1161
1161
  const n = document.body;
1162
- t.autofocus = !0, kn(() => {
1162
+ t.autofocus = !0, zn(() => {
1163
1163
  document.activeElement === n && t.focus();
1164
1164
  });
1165
1165
  }
@@ -1206,10 +1206,10 @@ function oa(t, e, n, r = n) {
1206
1206
  const la = /* @__PURE__ */ new Set(), Zr = /* @__PURE__ */ new Set();
1207
1207
  function ca(t, e, n, r) {
1208
1208
  function s(i) {
1209
- if (r.capture || An.call(e, i), !i.cancelBubble)
1209
+ if (r.capture || jn.call(e, i), !i.cancelBubble)
1210
1210
  return aa(() => n.call(this, i));
1211
1211
  }
1212
- return t.startsWith("pointer") || t.startsWith("touch") || t === "wheel" ? kn(() => {
1212
+ return t.startsWith("pointer") || t.startsWith("touch") || t === "wheel" ? zn(() => {
1213
1213
  e.addEventListener(t, s, r);
1214
1214
  }) : e.addEventListener(t, s, r), s;
1215
1215
  }
@@ -1219,13 +1219,13 @@ function qt(t, e, n, r, s) {
1219
1219
  e.removeEventListener(t, a, i);
1220
1220
  });
1221
1221
  }
1222
- function Wt(t) {
1222
+ function Vt(t) {
1223
1223
  for (var e = 0; e < t.length; e++)
1224
1224
  la.add(t[e]);
1225
1225
  for (var n of Zr)
1226
1226
  n(t);
1227
1227
  }
1228
- function An(t) {
1228
+ function jn(t) {
1229
1229
  var _;
1230
1230
  var e = this, n = (
1231
1231
  /** @type {Node} */
@@ -1365,7 +1365,7 @@ function kt() {
1365
1365
  }
1366
1366
  function $(t, e) {
1367
1367
  if (de) {
1368
- pe.nodes_end = xe, hn();
1368
+ pe.nodes_end = xe, mn();
1369
1369
  return;
1370
1370
  }
1371
1371
  t !== null && t.before(
@@ -1393,26 +1393,26 @@ function vl(t, e) {
1393
1393
  i = /** @type {TemplateNode} */
1394
1394
  /* @__PURE__ */ Nt(i);
1395
1395
  if (!i)
1396
- throw un;
1396
+ throw pn;
1397
1397
  Dt(!0), dt(
1398
1398
  /** @type {Comment} */
1399
1399
  i
1400
- ), hn();
1400
+ ), mn();
1401
1401
  const a = da(t, { ...e, anchor: i });
1402
1402
  if (xe === null || xe.nodeType !== 8 || /** @type {Comment} */
1403
1403
  xe.data !== us)
1404
- throw kr(), un;
1404
+ throw kr(), pn;
1405
1405
  return Dt(!1), /** @type {Exports} */
1406
1406
  a;
1407
1407
  } catch (a) {
1408
- if (a === un)
1408
+ if (a === pn)
1409
1409
  return e.recover === !1 && Oo(), Yr(), ps(n), Dt(!1), ua(t, e);
1410
1410
  throw a;
1411
1411
  } finally {
1412
1412
  Dt(r), dt(s);
1413
1413
  }
1414
1414
  }
1415
- const cn = /* @__PURE__ */ new Map();
1415
+ const hn = /* @__PURE__ */ new Map();
1416
1416
  function da(t, { target: e, anchor: n, props: r = {}, events: s, context: i, intro: a = !0 }) {
1417
1417
  Yr();
1418
1418
  var o = /* @__PURE__ */ new Set(), c = (d) => {
@@ -1421,16 +1421,16 @@ function da(t, { target: e, anchor: n, props: r = {}, events: s, context: i, int
1421
1421
  if (!o.has(p)) {
1422
1422
  o.add(p);
1423
1423
  var w = zo(p);
1424
- e.addEventListener(p, An, { passive: w });
1425
- var m = cn.get(p);
1426
- m === void 0 ? (document.addEventListener(p, An, { passive: w }), cn.set(p, 1)) : cn.set(p, m + 1);
1424
+ e.addEventListener(p, jn, { passive: w });
1425
+ var m = hn.get(p);
1426
+ m === void 0 ? (document.addEventListener(p, jn, { passive: w }), hn.set(p, 1)) : hn.set(p, m + 1);
1427
1427
  }
1428
1428
  }
1429
1429
  };
1430
1430
  c(ds(la)), Zr.add(c);
1431
1431
  var l = void 0, u = Qo(() => {
1432
1432
  var d = n ?? e.appendChild(Jt());
1433
- return pn(() => {
1433
+ return bn(() => {
1434
1434
  if (i) {
1435
1435
  re({});
1436
1436
  var h = (
@@ -1447,12 +1447,12 @@ function da(t, { target: e, anchor: n, props: r = {}, events: s, context: i, int
1447
1447
  }), () => {
1448
1448
  var w;
1449
1449
  for (var h of o) {
1450
- e.removeEventListener(h, An);
1450
+ e.removeEventListener(h, jn);
1451
1451
  var p = (
1452
1452
  /** @type {number} */
1453
- cn.get(h)
1453
+ hn.get(h)
1454
1454
  );
1455
- --p === 0 ? (document.removeEventListener(h, An), cn.delete(h)) : cn.set(h, p);
1455
+ --p === 0 ? (document.removeEventListener(h, jn), hn.delete(h)) : hn.set(h, p);
1456
1456
  }
1457
1457
  Zr.delete(c), d !== n && ((w = d.parentNode) == null || w.removeChild(d));
1458
1458
  };
@@ -1465,7 +1465,7 @@ function gl(t, e) {
1465
1465
  return n ? (Vr.delete(t), n(e)) : Promise.resolve();
1466
1466
  }
1467
1467
  function V(t, e, n = !1) {
1468
- de && hn();
1468
+ de && mn();
1469
1469
  var r = t, s = null, i = null, a = rt, o = n ? wr : 0, c = !1;
1470
1470
  const l = (d, h = !0) => {
1471
1471
  c = !0, u(h, d);
@@ -1479,9 +1479,9 @@ function V(t, e, n = !1) {
1479
1479
  );
1480
1480
  !!a === w && (r = Hr(), dt(r), Dt(!1), p = !0);
1481
1481
  }
1482
- a ? (s ? ur(s) : h && (s = pn(() => h(r))), i && cr(i, () => {
1482
+ a ? (s ? ur(s) : h && (s = bn(() => h(r))), i && cr(i, () => {
1483
1483
  i = null;
1484
- })) : (i ? ur(i) : h && (i = pn(() => h(r))), s && cr(s, () => {
1484
+ })) : (i ? ur(i) : h && (i = bn(() => h(r))), s && cr(s, () => {
1485
1485
  s = null;
1486
1486
  })), p && Dt(!0);
1487
1487
  };
@@ -1526,7 +1526,7 @@ function Ve(t, e, n, r, s, i = null) {
1526
1526
  /* @__PURE__ */ at(l)
1527
1527
  ) : l.appendChild(Jt());
1528
1528
  }
1529
- de && hn();
1529
+ de && mn();
1530
1530
  var u = null, d = !1, h = /* @__PURE__ */ Oi(() => {
1531
1531
  var p = n();
1532
1532
  return br(p) ? p : p == null ? [] : ds(p);
@@ -1582,7 +1582,7 @@ function Ve(t, e, n, r, s, i = null) {
1582
1582
  r
1583
1583
  );
1584
1584
  }
1585
- i !== null && (w === 0 ? u ? ur(u) : u = pn(() => i(a)) : u !== null && cr(u, () => {
1585
+ i !== null && (w === 0 ? u ? ur(u) : u = bn(() => i(a)) : u !== null && cr(u, () => {
1586
1586
  u = null;
1587
1587
  })), m && Dt(!0), f(h);
1588
1588
  }), de && (a = xe);
@@ -1650,7 +1650,7 @@ function bl(t, e, n, r, s, i, a, o) {
1650
1650
  ml(e, Ie, fe, d);
1651
1651
  }
1652
1652
  }
1653
- c && kn(() => {
1653
+ c && zn(() => {
1654
1654
  var L;
1655
1655
  if (T !== void 0)
1656
1656
  for (S of T)
@@ -1676,7 +1676,7 @@ function fa(t, e, n, r, s, i, a, o, c, l) {
1676
1676
  next: r
1677
1677
  };
1678
1678
  try {
1679
- return w.e = pn(() => o(t, h, p), de), w.e.prev = n && n.e, w.e.next = r && r.e, n === null ? e.first = w : (n.next = w, n.e.next = w.e), r !== null && (r.prev = w, r.e.prev = w.e), w;
1679
+ return w.e = bn(() => o(t, h, p), de), w.e.prev = n && n.e, w.e.next = r && r.e, n === null ? e.first = w : (n.next = w, n.e.next = w.e), r !== null && (r.prev = w, r.e.prev = w.e), w;
1680
1680
  } finally {
1681
1681
  }
1682
1682
  }
@@ -1705,18 +1705,18 @@ function Qr(t, e, n, r, s) {
1705
1705
  var i = t, a = "", o;
1706
1706
  yr(() => {
1707
1707
  if (a === (a = e() ?? "")) {
1708
- de && hn();
1708
+ de && mn();
1709
1709
  return;
1710
1710
  }
1711
- o !== void 0 && (Ct(o), o = void 0), a !== "" && (o = pn(() => {
1711
+ o !== void 0 && (Ct(o), o = void 0), a !== "" && (o = bn(() => {
1712
1712
  if (de) {
1713
1713
  xe.data;
1714
- for (var c = hn(), l = c; c !== null && (c.nodeType !== 8 || /** @type {Comment} */
1714
+ for (var c = mn(), l = c; c !== null && (c.nodeType !== 8 || /** @type {Comment} */
1715
1715
  c.data !== ""); )
1716
1716
  l = c, c = /** @type {TemplateNode} */
1717
1717
  /* @__PURE__ */ Nt(c);
1718
1718
  if (c === null)
1719
- throw kr(), un;
1719
+ throw kr(), pn;
1720
1720
  bt(xe, l), i = dt(c);
1721
1721
  return;
1722
1722
  }
@@ -1741,7 +1741,7 @@ function Qr(t, e, n, r, s) {
1741
1741
  });
1742
1742
  }
1743
1743
  function ce(t, e) {
1744
- kn(() => {
1744
+ zn(() => {
1745
1745
  var n = t.getRootNode(), r = (
1746
1746
  /** @type {ShadowRoot} */
1747
1747
  n.host ? (
@@ -1836,7 +1836,7 @@ function Xs(t, e, n, r, s = !1, i = !1, a = !1) {
1836
1836
  }
1837
1837
  if (_ != null)
1838
1838
  if (w)
1839
- t[`__${S}`] = _, Wt([S]);
1839
+ t[`__${S}`] = _, Vt([S]);
1840
1840
  else {
1841
1841
  let A = function(R) {
1842
1842
  o[x].call(this, R);
@@ -2021,7 +2021,7 @@ function vt(t, e, n, r) {
2021
2021
  ;
2022
2022
  x = !_ || (_.f & Ii) !== 0;
2023
2023
  }
2024
- x && wn(() => {
2024
+ x && kn(() => {
2025
2025
  At(() => m.in());
2026
2026
  });
2027
2027
  }
@@ -2030,7 +2030,7 @@ function Kr(t, e, n, r, s) {
2030
2030
  var i = r === 1;
2031
2031
  if (Eo(e)) {
2032
2032
  var a, o = !1;
2033
- return kn(() => {
2033
+ return zn(() => {
2034
2034
  if (!o) {
2035
2035
  var T = e({ direction: i ? "in" : "out" });
2036
2036
  a = Kr(t, T, n, r, s);
@@ -2046,9 +2046,9 @@ function Kr(t, e, n, r, s) {
2046
2046
  }
2047
2047
  if (n == null || n.deactivate(), !(e != null && e.duration))
2048
2048
  return s(), {
2049
- abort: Tn,
2050
- deactivate: Tn,
2051
- reset: Tn,
2049
+ abort: En,
2050
+ deactivate: En,
2051
+ reset: En,
2052
2052
  t: () => r
2053
2053
  };
2054
2054
  const { delay: c = 0, css: l, tick: u, easing: d = El } = e;
@@ -2090,10 +2090,10 @@ function Kr(t, e, n, r, s) {
2090
2090
  };
2091
2091
  }, {
2092
2092
  abort: () => {
2093
- m && (m.cancel(), m.effect = null, m.onfinish = Tn);
2093
+ m && (m.cancel(), m.effect = null, m.onfinish = En);
2094
2094
  },
2095
2095
  deactivate: () => {
2096
- s = Tn;
2096
+ s = En;
2097
2097
  },
2098
2098
  reset: () => {
2099
2099
  r === 0 && (u == null || u(1, 0));
@@ -2113,7 +2113,7 @@ function Cl(t, e, n = e) {
2113
2113
  // then use the updated value from the input instead.
2114
2114
  (de && t.defaultValue !== t.value || // If defaultValue is set, then value == defaultValue
2115
2115
  // TODO Svelte 6: remove input.value check and set to empty string?
2116
- At(e) == null && t.value) && n(Pr(t) ? Or(t.value) : t.value), _n(() => {
2116
+ At(e) == null && t.value) && n(Pr(t) ? Or(t.value) : t.value), yn(() => {
2117
2117
  var s = e();
2118
2118
  Pr(t) && s === Or(t.value) || t.type === "date" && !s && !t.value || s !== t.value && (t.value = s ?? "");
2119
2119
  });
@@ -2129,7 +2129,7 @@ function ga(t, e, n) {
2129
2129
  if (t.multiple)
2130
2130
  return Al(t, e);
2131
2131
  for (var r of t.options) {
2132
- var s = Ln(r);
2132
+ var s = Rn(r);
2133
2133
  if (Go(s, e)) {
2134
2134
  r.selected = !0;
2135
2135
  return;
@@ -2138,7 +2138,7 @@ function ga(t, e, n) {
2138
2138
  (!n || e !== void 0) && (t.selectedIndex = -1);
2139
2139
  }
2140
2140
  function Il(t, e) {
2141
- wn(() => {
2141
+ kn(() => {
2142
2142
  var n = new MutationObserver(() => {
2143
2143
  var r = t.__value;
2144
2144
  ga(t, r);
@@ -2163,41 +2163,41 @@ function ma(t, e, n = e) {
2163
2163
  oa(t, "change", (s) => {
2164
2164
  var i = s ? "[selected]" : ":checked", a;
2165
2165
  if (t.multiple)
2166
- a = [].map.call(t.querySelectorAll(i), Ln);
2166
+ a = [].map.call(t.querySelectorAll(i), Rn);
2167
2167
  else {
2168
2168
  var o = t.querySelector(i) ?? // will fall back to first non-disabled option if no option is selected
2169
2169
  t.querySelector("option:not([disabled])");
2170
- a = o && Ln(o);
2170
+ a = o && Rn(o);
2171
2171
  }
2172
2172
  n(a);
2173
- }), wn(() => {
2173
+ }), kn(() => {
2174
2174
  var s = e();
2175
2175
  if (ga(t, s, r), r && s === void 0) {
2176
2176
  var i = t.querySelector(":checked");
2177
- i !== null && (s = Ln(i), n(s));
2177
+ i !== null && (s = Rn(i), n(s));
2178
2178
  }
2179
2179
  t.__value = s, r = !1;
2180
2180
  }), Il(t);
2181
2181
  }
2182
2182
  function Al(t, e) {
2183
2183
  for (var n of t.options)
2184
- n.selected = ~e.indexOf(Ln(n));
2184
+ n.selected = ~e.indexOf(Rn(n));
2185
2185
  }
2186
- function Ln(t) {
2186
+ function Rn(t) {
2187
2187
  return "__value" in t ? t.__value : t.value;
2188
2188
  }
2189
2189
  function Ks(t, e) {
2190
2190
  return t === e || (t == null ? void 0 : t[Ot]) === e;
2191
2191
  }
2192
2192
  function es(t = {}, e, n, r) {
2193
- return wn(() => {
2193
+ return kn(() => {
2194
2194
  var s, i;
2195
- return _n(() => {
2195
+ return yn(() => {
2196
2196
  s = i, i = [], At(() => {
2197
2197
  t !== n(...i) && (e(t, ...i), s && Ks(n(...s), t) && e(null, ...s));
2198
2198
  });
2199
2199
  }), () => {
2200
- kn(() => {
2200
+ zn(() => {
2201
2201
  i && Ks(n(...i), t) && e(null, ...i);
2202
2202
  });
2203
2203
  };
@@ -2209,7 +2209,7 @@ function ot(t = !1) {
2209
2209
  Se
2210
2210
  ), n = e.l.u;
2211
2211
  if (!n) return;
2212
- let r = () => zn(e.s);
2212
+ let r = () => Tn(e.s);
2213
2213
  if (t) {
2214
2214
  let s = 0, i = (
2215
2215
  /** @type {Record<string, any>} */
@@ -2242,7 +2242,7 @@ function ei(t, e) {
2242
2242
  e();
2243
2243
  }
2244
2244
  function Er(t) {
2245
- Se === null && ms(), xn && Se.l !== null ? Fl(Se).m.push(t) : _t(() => {
2245
+ Se === null && ms(), _n && Se.l !== null ? Fl(Se).m.push(t) : _t(() => {
2246
2246
  const e = At(t);
2247
2247
  if (typeof e == "function") return (
2248
2248
  /** @type {() => void} */
@@ -2312,7 +2312,7 @@ const Pl = {
2312
2312
  /** @type {string} */
2313
2313
  e,
2314
2314
  Ti
2315
- )), t.special[e](n), On(t.version), !0;
2315
+ )), t.special[e](n), Nn(t.version), !0;
2316
2316
  },
2317
2317
  getOwnPropertyDescriptor(t, e) {
2318
2318
  if (!t.exclude.includes(e) && e in t.props)
@@ -2323,7 +2323,7 @@ const Pl = {
2323
2323
  };
2324
2324
  },
2325
2325
  deleteProperty(t, e) {
2326
- return t.exclude.includes(e) || (t.exclude.push(e), On(t.version)), !0;
2326
+ return t.exclude.includes(e) || (t.exclude.push(e), Nn(t.version)), !0;
2327
2327
  },
2328
2328
  has(t, e) {
2329
2329
  return t.exclude.includes(e) ? !1 : e in t.props;
@@ -2336,7 +2336,7 @@ function Ol(t, e) {
2336
2336
  return new Proxy({ props: t, exclude: e, special: {}, version: st(0) }, Pl);
2337
2337
  }
2338
2338
  function ti(t) {
2339
- for (var e = pe, n = pe; e !== null && !(e.f & (Lt | nn)); )
2339
+ for (var e = pe, n = pe; e !== null && !(e.f & (Lt | on)); )
2340
2340
  e = e.parent;
2341
2341
  try {
2342
2342
  return xt(e), t();
@@ -2346,13 +2346,13 @@ function ti(t) {
2346
2346
  }
2347
2347
  function g(t, e, n, r) {
2348
2348
  var R;
2349
- var s = (n & lo) !== 0, i = !xn || (n & co) !== 0, a = (n & uo) !== 0, o = (n & fo) !== 0, c = !1, l;
2349
+ var s = (n & lo) !== 0, i = !_n || (n & co) !== 0, a = (n & uo) !== 0, o = (n & fo) !== 0, c = !1, l;
2350
2350
  a ? [l, c] = Dl(() => (
2351
2351
  /** @type {V} */
2352
2352
  t[e]
2353
2353
  )) : l = /** @type {V} */
2354
2354
  t[e];
2355
- var u = Ot in t || Li in t, d = a && (((R = Kt(t, e)) == null ? void 0 : R.set) ?? (u && e in t && ((M) => t[e] = M))) || void 0, h = (
2355
+ var u = Ot in t || Li in t, d = a && (((R = nn(t, e)) == null ? void 0 : R.set) ?? (u && e in t && ((M) => t[e] = M))) || void 0, h = (
2356
2356
  /** @type {V} */
2357
2357
  r
2358
2358
  ), p = !0, w = !1, m = () => (w = !0, p && (p = !1, o ? h = At(
@@ -2571,7 +2571,7 @@ typeof HTMLElement == "function" && (ba = class extends HTMLElement {
2571
2571
  $$host: this
2572
2572
  }
2573
2573
  }), this.$$me = Vo(() => {
2574
- _n(() => {
2574
+ yn(() => {
2575
2575
  var s;
2576
2576
  this.$$r = !0;
2577
2577
  for (const i of sr(this.$$c)) {
@@ -2681,7 +2681,7 @@ function ae(t, e, n, r, s, i) {
2681
2681
  c = tr(o, c, e), this.$$d[o] = c;
2682
2682
  var l = this.$$c;
2683
2683
  if (l) {
2684
- var u = (d = Kt(l, o)) == null ? void 0 : d.get;
2684
+ var u = (d = nn(l, o)) == null ? void 0 : d.get;
2685
2685
  u ? l[o] = c : l.$set({ [o]: c });
2686
2686
  }
2687
2687
  }
@@ -2851,7 +2851,7 @@ class _s {
2851
2851
  return new _s(e.filename, e.external_id, e.path || "", e.gendoc_id, e.isCommon, e.commonType);
2852
2852
  }
2853
2853
  }
2854
- class en {
2854
+ class rn {
2855
2855
  constructor(e, n, r, s = "New chat", i = { lockedAgentId: null, pendingAction: null, info: [] }, a = [], o = 0) {
2856
2856
  E(this, "_id");
2857
2857
  E(this, "companyId");
@@ -2875,7 +2875,7 @@ class en {
2875
2875
  }
2876
2876
  static fromJson(e) {
2877
2877
  var n;
2878
- return new en(e._id, e.companyId, e.userId, e.title, e.state ?? { lockedAgentId: null, pendingAction: null, info: [] }, ((n = e.messages) == null ? void 0 : n.map((r) => Ht.fromJson(r))) ?? [], e.lastUpdate ?? 0);
2878
+ return new rn(e._id, e.companyId, e.userId, e.title, e.state ?? { lockedAgentId: null, pendingAction: null, info: [] }, ((n = e.messages) == null ? void 0 : n.map((r) => Ht.fromJson(r))) ?? [], e.lastUpdate ?? 0);
2879
2879
  }
2880
2880
  }
2881
2881
  const Gl = "it", Jl = (
@@ -3129,7 +3129,7 @@ function za(t, e) {
3129
3129
  }
3130
3130
  });
3131
3131
  }
3132
- Wt(["click"]);
3132
+ Vt(["click"]);
3133
3133
  ae(
3134
3134
  za,
3135
3135
  {
@@ -3223,7 +3223,7 @@ const cd = () => {
3223
3223
  getForgeButtonsPinned: gd,
3224
3224
  setForgeButtonsPinned: md
3225
3225
  };
3226
- class Mn {
3226
+ class Wt {
3227
3227
  constructor(e, n, r, s, i, a, o, c = "", l = !1, u = (/* @__PURE__ */ new Date()).getTime(), d = "loading", h = "") {
3228
3228
  E(this, "_id");
3229
3229
  E(this, "title");
@@ -3256,13 +3256,13 @@ class Mn {
3256
3256
  };
3257
3257
  }
3258
3258
  static fromJson(e) {
3259
- return new Mn(e._id, e.title, e.companyId, e.private, e.externalId, e.idArchivio, e.hash, e.gendocId, e.isCommon, e.createdAt, e.checked, e.path);
3259
+ return new Wt(e._id, e.title, e.companyId, e.private, e.externalId, e.idArchivio, e.hash, e.gendocId, e.isCommon, e.createdAt, e.checked, e.path);
3260
3260
  }
3261
3261
  static fromJsonArray(e) {
3262
- return e.map((n) => Mn.fromJson(n));
3262
+ return e.map((n) => Wt.fromJson(n));
3263
3263
  }
3264
3264
  }
3265
- class vn {
3265
+ class Zt {
3266
3266
  constructor(e, n, r, s, i, a, o, c = "file", l, u, d = (/* @__PURE__ */ new Date()).getTime()) {
3267
3267
  E(this, "_id");
3268
3268
  E(this, "title");
@@ -3293,13 +3293,13 @@ class vn {
3293
3293
  };
3294
3294
  }
3295
3295
  static fromJson(e) {
3296
- return new vn(e._id, e.title, e.externalId, e.idArchivio, e.isArchived, e.status, e.forgeType, e.contentType || "file", e.url, e.additionalReference, e.createdAt);
3296
+ return new Zt(e._id, e.title, e.externalId, e.idArchivio, e.isArchived, e.status, e.forgeType, e.contentType || "file", e.url, e.additionalReference, e.createdAt);
3297
3297
  }
3298
3298
  static fromJsonArray(e) {
3299
- return e.map((n) => vn.fromJson(n));
3299
+ return e.map((n) => Zt.fromJson(n));
3300
3300
  }
3301
3301
  }
3302
- class Nn {
3302
+ class sn {
3303
3303
  constructor(e, n, r, s, i, a, o, c = 0, l = !1, u = 40, d = !1, h = "") {
3304
3304
  E(this, "_id", "");
3305
3305
  E(this, "path", "");
@@ -3320,7 +3320,7 @@ class Nn {
3320
3320
  this._id = e, this.path = n, this.name = r, this.userId = s, this.companyId = i, this.isPrivate = a, this.isTemplate = o, this.suiteId = c, this.createdAt = Date.now(), this.updatedAt = Date.now(), this.excludeFromDocumentale = l, this.minLevel = u, this.cancellato = d, this.altTitle = h;
3321
3321
  }
3322
3322
  static fromJSON(e) {
3323
- return new Nn(
3323
+ return new sn(
3324
3324
  e._id,
3325
3325
  e.path,
3326
3326
  e.name,
@@ -3360,7 +3360,7 @@ class Nn {
3360
3360
  return e || (r._id = this._id.toString()), r;
3361
3361
  }
3362
3362
  }
3363
- class gn {
3363
+ class Xt {
3364
3364
  constructor(e, n, r, s, i, a, o, c, l) {
3365
3365
  E(this, "_id");
3366
3366
  E(this, "companyId");
@@ -3387,7 +3387,7 @@ class gn {
3387
3387
  };
3388
3388
  }
3389
3389
  static fromJson(e) {
3390
- return new gn(e._id, e.companyId, e.externalMeetingId, e.name, e.meetingDate, e.partecipants, e.transcription, e.meetingUrl, e.createdAt);
3390
+ return new Xt(e._id, e.companyId, e.externalMeetingId, e.name, e.meetingDate, e.partecipants, e.transcription, e.meetingUrl, e.createdAt);
3391
3391
  }
3392
3392
  }
3393
3393
  const ks = (t) => {
@@ -3452,7 +3452,7 @@ const kd = async (t) => {
3452
3452
  });
3453
3453
  if (!e.ok)
3454
3454
  throw new Error("Failed to fetch documents");
3455
- return (await e.json()).map((r) => Mn.fromJson(r));
3455
+ return (await e.json()).map((r) => Wt.fromJson(r));
3456
3456
  }, yd = async (t, e, n) => {
3457
3457
  if (e.endsWith(".akd")) {
3458
3458
  if (!n)
@@ -3509,7 +3509,7 @@ const kd = async (t) => {
3509
3509
  });
3510
3510
  if (!n.ok)
3511
3511
  throw new Error("Failed to fetch forge");
3512
- return (await n.json()).map((s) => vn.fromJson(s));
3512
+ return (await n.json()).map((s) => Zt.fromJson(s));
3513
3513
  }, Sd = async (t, e) => {
3514
3514
  const n = await fetch(`${B.getForgeUrl()}/generals/${t}?collectionName=${e}`, {
3515
3515
  method: "GET",
@@ -3523,7 +3523,7 @@ const kd = async (t) => {
3523
3523
  if (!n.ok)
3524
3524
  throw new Error("Failed to fetch forge");
3525
3525
  const r = await n.json();
3526
- return vn.fromJson(r);
3526
+ return Zt.fromJson(r);
3527
3527
  }, Ed = async (t, e) => {
3528
3528
  const n = await fetch(`${B.getForgeUrl()}/download/pdf?externalId=${t}&collectionName=${e}`, {
3529
3529
  method: "GET",
@@ -3549,7 +3549,7 @@ const kd = async (t) => {
3549
3549
  });
3550
3550
  if (!e.ok)
3551
3551
  throw new Error("Failed to fetch gendoc");
3552
- return (await e.json()).map((r) => Nn.fromJSON(r));
3552
+ return (await e.json()).map((r) => sn.fromJSON(r));
3553
3553
  }, Id = async (t) => {
3554
3554
  const e = await fetch(`${B.getTranscriptionUrl()}/v1/generals/meetings`, {
3555
3555
  method: "POST",
@@ -3563,7 +3563,7 @@ const kd = async (t) => {
3563
3563
  });
3564
3564
  if (!e.ok)
3565
3565
  throw new Error("Failed to fetch transcriptions");
3566
- return (await e.json()).map((r) => gn.fromJson(r));
3566
+ return (await e.json()).map((r) => Xt.fromJson(r));
3567
3567
  }, Ad = async (t) => {
3568
3568
  const e = await fetch(`${B.getTranscriptionUrl()}/v1/generals/meetings/${t}`, {
3569
3569
  method: "GET",
@@ -3577,7 +3577,7 @@ const kd = async (t) => {
3577
3577
  if (!e.ok)
3578
3578
  throw new Error("Failed to fetch meeting");
3579
3579
  const n = await e.json();
3580
- return gn.fromJson(n);
3580
+ return Xt.fromJson(n);
3581
3581
  }, pt = {
3582
3582
  getDocuments: kd,
3583
3583
  getDocumentPage: yd,
@@ -4171,7 +4171,7 @@ function Zd(t, e) {
4171
4171
  re(e, !1), ce(t, Wd);
4172
4172
  const n = Bt();
4173
4173
  let r = g(e, "size", 12, "40px"), s = g(e, "duration", 12, "3s"), i = g(e, "pause", 12, !1);
4174
- qn(() => zn(r()), () => {
4174
+ qn(() => Tn(r()), () => {
4175
4175
  b(n, [
4176
4176
  `width: ${r()}`,
4177
4177
  `height: ${r()}`
@@ -4504,7 +4504,7 @@ function uf(t, e) {
4504
4504
  re(e, !1), ce(t, cf);
4505
4505
  let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), s = g(e, "duration", 12, "2.1s"), i = g(e, "size", 12, "60"), a = g(e, "pause", 12, !1), o = Bt();
4506
4506
  qn(
4507
- () => zn(n()),
4507
+ () => Tn(n()),
4508
4508
  () => {
4509
4509
  b(o, $s(n(), 0.2));
4510
4510
  }
@@ -5457,7 +5457,7 @@ function Vf(t, e) {
5457
5457
  re(e, !1), ce(t, Xf);
5458
5458
  let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), s = g(e, "duration", 12, "1.3s"), i = g(e, "size", 12, "60"), a = g(e, "pause", 12, !1), o = Bt();
5459
5459
  qn(
5460
- () => zn(n()),
5460
+ () => Tn(n()),
5461
5461
  () => {
5462
5462
  b(o, $s(n(), 0.6));
5463
5463
  }
@@ -5749,7 +5749,7 @@ function dh(t, e) {
5749
5749
  re(e, !1), ce(t, uh);
5750
5750
  let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), s = g(e, "duration", 12, "1s"), i = g(e, "size", 12, "60"), a = g(e, "pause", 12, !1), o = ((d = s().match(He)) == null ? void 0 : d[0]) ?? "s", c = s().replace(He, ""), l = Bt();
5751
5751
  qn(
5752
- () => zn(n()),
5752
+ () => Tn(n()),
5753
5753
  () => {
5754
5754
  b(l, $s(n(), 1));
5755
5755
  }
@@ -6023,40 +6023,38 @@ const Vn = (t, e) => `${t}-${e}`, Ta = (t) => t.isCommon ? t.filename.split(".")
6023
6023
  });
6024
6024
  await navigator.clipboard.write([s]);
6025
6025
  }, Eh = (t, e) => {
6026
- const n = t.constructor.name;
6027
- if (n === "Forge")
6026
+ if (t instanceof Zt)
6028
6027
  return {
6029
6028
  class: e.icon,
6030
6029
  color: e.color
6031
6030
  };
6032
- if (n === "GenDoc")
6031
+ if (t instanceof sn)
6033
6032
  return { class: "fa-solid fa-passport", color: "#0DCAF0" };
6034
- if (n === "Meeting")
6033
+ if (t instanceof Xt)
6035
6034
  return { class: "fa-solid fa-video", color: "#1d1dff" };
6036
- if (n === "Doc") {
6037
- const r = t;
6038
- if (r.isCommon)
6035
+ if (t instanceof Wt) {
6036
+ const n = t;
6037
+ if (n.isCommon)
6039
6038
  return { class: "fa-solid fa-file", color: "#295DCF" };
6040
- const s = Ss(r.title);
6039
+ const r = Ss(n.title);
6041
6040
  return {
6042
- class: s.icon,
6043
- color: s.color
6041
+ class: r.icon,
6042
+ color: r.color
6044
6043
  };
6045
6044
  }
6046
6045
  return { class: "fa-solid fa-file", color: "#6c757d" };
6047
6046
  }, Ch = (t) => {
6048
- const e = t.constructor.name;
6049
- if (e === "Forge")
6047
+ if (t instanceof Zt)
6050
6048
  return t.title.split(".")[0];
6051
- if (e === "GenDoc" || e === "Meeting")
6049
+ if (t instanceof sn || t instanceof Xt)
6052
6050
  return t.name;
6053
- if (e === "Doc") {
6054
- const n = t;
6055
- return n.isCommon ? n.title.split(".")[0] : n.title;
6051
+ if (t instanceof Wt) {
6052
+ const e = t;
6053
+ return e.isCommon ? e.title.split(".")[0] : e.title;
6056
6054
  }
6057
6055
  return "";
6058
6056
  }, Ih = (t) => {
6059
- if (t.constructor.name === "Doc") {
6057
+ if (t instanceof Wt) {
6060
6058
  const e = t.path;
6061
6059
  return e && e !== "" ? e : "root";
6062
6060
  }
@@ -6088,28 +6086,28 @@ function Ca(t, e) {
6088
6086
  const m = () => {
6089
6087
  b(c, C([])), b(l, C([])), b(u, C([])), b(d, C([]));
6090
6088
  }, T = (L) => n()[L._id] ? (delete n()[L._id], !0) : !1, x = (L) => Object.keys(n()).length >= L ? (alert(/* @__PURE__ */ Xu({ count: L })), !1) : !0, _ = (L) => {
6091
- if (L instanceof Mn)
6089
+ if (L instanceof Wt)
6092
6090
  return {
6093
6091
  title: L.title,
6094
6092
  ext_id: L.externalId,
6095
6093
  gendoc_id: L.gendocId,
6096
6094
  isCommon: L.isCommon
6097
6095
  };
6098
- if (L instanceof vn)
6096
+ if (L instanceof Zt)
6099
6097
  return {
6100
6098
  title: L.title,
6101
6099
  ext_id: L.externalId,
6102
6100
  gendoc_id: "",
6103
6101
  isCommon: !0
6104
6102
  };
6105
- if (L instanceof Nn)
6103
+ if (L instanceof sn)
6106
6104
  return {
6107
6105
  title: L.name + ".akd",
6108
6106
  ext_id: L._id,
6109
6107
  gendoc_id: L._id,
6110
6108
  isCommon: !1
6111
6109
  };
6112
- if (L instanceof gn)
6110
+ if (L instanceof Xt)
6113
6111
  return {
6114
6112
  title: L.name + ".tldv",
6115
6113
  ext_id: L.externalMeetingId,
@@ -6120,7 +6118,7 @@ function Ca(t, e) {
6120
6118
  }, z = (L) => {
6121
6119
  if (T(L))
6122
6120
  return;
6123
- const Q = L instanceof Nn || L instanceof gn ? i.gendoc : i.default;
6121
+ const Q = L instanceof sn || L instanceof Xt ? i.gendoc : i.default;
6124
6122
  x(Q) && n(n()[L._id] = _(L), !0);
6125
6123
  }, F = async (L, Q, Ee, Ae) => {
6126
6124
  if (L.length < a) {
@@ -6311,7 +6309,7 @@ function Ca(t, e) {
6311
6309
  }
6312
6310
  });
6313
6311
  }
6314
- Wt(["click", "input"]);
6312
+ Vt(["click", "input"]);
6315
6313
  ae(
6316
6314
  Ca,
6317
6315
  {
@@ -6484,14 +6482,14 @@ function Ia(t, e) {
6484
6482
  var $e = np(), je = y($e), qe = P(je, 2);
6485
6483
  {
6486
6484
  var zt = ($t) => {
6487
- var N = Qh(), $n = y(N, !0);
6485
+ var N = Qh(), Sn = y(N, !0);
6488
6486
  k(N), D(
6489
6487
  (Ns) => {
6490
- O(N, "title", Ns), Te($n, Ns);
6488
+ O(N, "title", Ns), Te(Sn, Ns);
6491
6489
  },
6492
6490
  [() => H().split(".")[0]]
6493
6491
  ), $($t, N);
6494
- }, ln = ($t) => {
6492
+ }, fn = ($t) => {
6495
6493
  var N = ep();
6496
6494
  N.__click = [
6497
6495
  Kh,
@@ -6500,17 +6498,17 @@ function Ia(t, e) {
6500
6498
  H,
6501
6499
  ie
6502
6500
  ];
6503
- var $n = y(N, !0);
6504
- k(N), D(() => Te($n, H())), $($t, N);
6501
+ var Sn = y(N, !0);
6502
+ k(N), D(() => Te(Sn, H())), $($t, N);
6505
6503
  };
6506
6504
  V(qe, ($t) => {
6507
- te() ? $t(zt) : $t(ln, !1);
6505
+ te() ? $t(zt) : $t(fn, !1);
6508
6506
  });
6509
6507
  }
6510
- var Zt = P(qe, 2);
6511
- Zt.__click = [tp, fe, W], k($e), D(
6512
- ($t, N, $n) => {
6513
- ct($e, `${`attachment-item ${te() ? "common" : ""}` ?? ""} svelte-dx030c`), O($e, "title", $t), ct(je, `${N ?? ""} svelte-dx030c`), O(je, "style", $n), ct(Zt, `${`remove-btn ${te() ? "common" : ""}` ?? ""} svelte-dx030c`);
6508
+ var Qt = P(qe, 2);
6509
+ Qt.__click = [tp, fe, W], k($e), D(
6510
+ ($t, N, Sn) => {
6511
+ ct($e, `${`attachment-item ${te() ? "common" : ""}` ?? ""} svelte-dx030c`), O($e, "title", $t), ct(je, `${N ?? ""} svelte-dx030c`), O(je, "style", Sn), ct(Qt, `${`remove-btn ${te() ? "common" : ""}` ?? ""} svelte-dx030c`);
6514
6512
  },
6515
6513
  [
6516
6514
  () => A(te() ?? !1, H()),
@@ -6649,7 +6647,7 @@ function Ia(t, e) {
6649
6647
  }
6650
6648
  });
6651
6649
  }
6652
- Wt(["input", "click", "change"]);
6650
+ Vt(["input", "click", "change"]);
6653
6651
  ae(
6654
6652
  Ia,
6655
6653
  {
@@ -6830,7 +6828,7 @@ function pp(t, e) {
6830
6828
  missing: /* @__PURE__ */ new Set()
6831
6829
  };
6832
6830
  }
6833
- function mn(t, e) {
6831
+ function xn(t, e) {
6834
6832
  const n = ui[t] || (ui[t] = /* @__PURE__ */ Object.create(null));
6835
6833
  return n[e] || (n[e] = pp(t, e));
6836
6834
  }
@@ -6854,7 +6852,7 @@ function Da(t) {
6854
6852
  function gp(t) {
6855
6853
  const e = typeof t == "string" ? Cr(t, !0, Un) : t;
6856
6854
  if (e) {
6857
- const n = mn(e.provider, e.prefix), r = e.name;
6855
+ const n = xn(e.provider, e.prefix), r = e.name;
6858
6856
  return n.icons[r] || (n.missing.has(r) ? null : void 0);
6859
6857
  }
6860
6858
  }
@@ -6862,7 +6860,7 @@ function mp(t, e) {
6862
6860
  const n = Cr(t, !0, Un);
6863
6861
  if (!n)
6864
6862
  return !1;
6865
- const r = mn(n.provider, n.prefix);
6863
+ const r = xn(n.provider, n.prefix);
6866
6864
  return e ? vp(r, n.name, e) : (r.missing.add(n.name), !0);
6867
6865
  }
6868
6866
  function bp(t, e) {
@@ -6881,7 +6879,7 @@ function bp(t, e) {
6881
6879
  name: "a"
6882
6880
  }))
6883
6881
  return !1;
6884
- const r = mn(e, n);
6882
+ const r = xn(e, n);
6885
6883
  return !!Fa(r, t);
6886
6884
  }
6887
6885
  const Pa = Object.freeze({
@@ -7053,12 +7051,12 @@ function Es(t) {
7053
7051
  dataAfterTimeout: t.dataAfterTimeout !== !1
7054
7052
  };
7055
7053
  }
7056
- const Cs = /* @__PURE__ */ Object.create(null), Sn = [
7054
+ const Cs = /* @__PURE__ */ Object.create(null), Cn = [
7057
7055
  "https://api.simplesvg.com",
7058
7056
  "https://api.unisvg.com"
7059
7057
  ], rr = [];
7060
- for (; Sn.length > 0; )
7061
- Sn.length === 1 || Math.random() > 0.5 ? rr.push(Sn.shift()) : rr.push(Sn.pop());
7058
+ for (; Cn.length > 0; )
7059
+ Cn.length === 1 || Math.random() > 0.5 ? rr.push(Cn.shift()) : rr.push(Cn.pop());
7062
7060
  Cs[""] = Es({
7063
7061
  resources: ["https://api.iconify.design"].concat(rr)
7064
7062
  });
@@ -7189,7 +7187,7 @@ function Mp(t) {
7189
7187
  if (r.name === s.name && r.prefix === s.prefix && r.provider === s.provider)
7190
7188
  return;
7191
7189
  r = s;
7192
- const i = s.provider, a = s.prefix, o = s.name, c = n[i] || (n[i] = /* @__PURE__ */ Object.create(null)), l = c[a] || (c[a] = mn(i, a));
7190
+ const i = s.provider, a = s.prefix, o = s.name, c = n[i] || (n[i] = /* @__PURE__ */ Object.create(null)), l = c[a] || (c[a] = xn(i, a));
7193
7191
  let u;
7194
7192
  o in l.icons ? u = e.loaded : a === "" || l.missing.has(o) ? u = e.missing : u = e.pending;
7195
7193
  const d = {
@@ -7459,7 +7457,7 @@ function Zp(t) {
7459
7457
  invalid: n
7460
7458
  };
7461
7459
  }
7462
- function En(t, e, n) {
7460
+ function In(t, e, n) {
7463
7461
  function r() {
7464
7462
  const s = t.pendingIcons;
7465
7463
  e.forEach((i) => {
@@ -7495,7 +7493,7 @@ function Xp(t, e) {
7495
7493
  vi(
7496
7494
  t.loadIcons(s, r, n),
7497
7495
  (u) => {
7498
- En(t, s, u);
7496
+ In(t, s, u);
7499
7497
  }
7500
7498
  );
7501
7499
  return;
@@ -7510,22 +7508,22 @@ function Xp(t, e) {
7510
7508
  [u]: h
7511
7509
  }
7512
7510
  } : null;
7513
- En(t, [u], p);
7511
+ In(t, [u], p);
7514
7512
  });
7515
7513
  });
7516
7514
  return;
7517
7515
  }
7518
7516
  const { valid: a, invalid: o } = Zp(s);
7519
- if (o.length && En(t, o, null), !a.length)
7517
+ if (o.length && In(t, o, null), !a.length)
7520
7518
  return;
7521
7519
  const c = r.match(Aa) ? rs(n) : null;
7522
7520
  if (!c) {
7523
- En(t, a, null);
7521
+ In(t, a, null);
7524
7522
  return;
7525
7523
  }
7526
7524
  c.prepare(n, r, a).forEach((u) => {
7527
7525
  Jp(n, u, (d) => {
7528
- En(t, u.icons, d);
7526
+ In(t, u.icons, d);
7529
7527
  });
7530
7528
  });
7531
7529
  }));
@@ -7551,11 +7549,11 @@ const Vp = (t, e) => {
7551
7549
  const { provider: l, prefix: u } = c;
7552
7550
  if (u === o && l === a)
7553
7551
  return;
7554
- a = l, o = u, i.push(mn(l, u));
7552
+ a = l, o = u, i.push(xn(l, u));
7555
7553
  const d = s[l] || (s[l] = /* @__PURE__ */ Object.create(null));
7556
7554
  d[u] || (d[u] = []);
7557
7555
  }), r.pending.forEach((c) => {
7558
- const { provider: l, prefix: u, name: d } = c, h = mn(l, u), p = h.pendingIcons || (h.pendingIcons = /* @__PURE__ */ new Set());
7556
+ const { provider: l, prefix: u, name: d } = c, h = xn(l, u), p = h.pendingIcons || (h.pendingIcons = /* @__PURE__ */ new Set());
7559
7557
  p.has(d) || (p.add(d), s[l][u].push(d));
7560
7558
  }), i.forEach((c) => {
7561
7559
  const l = s[c.provider][c.prefix];
@@ -7805,14 +7803,14 @@ function Yt(t, e) {
7805
7803
  typeof n.onLoad == "function" && n.onLoad(h), Rl()("load", { icon: h });
7806
7804
  };
7807
7805
  function c() {
7808
- On(i);
7806
+ Nn(i);
7809
7807
  }
7810
7808
  Er(() => {
7811
7809
  b(s, !0);
7812
7810
  }), Ll(() => {
7813
7811
  Fr(r, f(r).destroyed = !0), f(r).loading && (f(r).loading.abort(), Fr(r, f(r).loading = null));
7814
7812
  }), qn(
7815
- () => (f(i), zn(n), f(s), f(r), f(a), xi),
7813
+ () => (f(i), Tn(n), f(s), f(r), f(a), xi),
7816
7814
  () => {
7817
7815
  f(i);
7818
7816
  const h = !!n.ssr || f(s), p = uv(n.icon, f(r), h, c, o);
@@ -7861,11 +7859,11 @@ function As() {
7861
7859
  walkTokens: null
7862
7860
  };
7863
7861
  }
7864
- let on = As();
7862
+ let dn = As();
7865
7863
  function Ba(t) {
7866
- on = t;
7864
+ dn = t;
7867
7865
  }
7868
- const jn = { exec: () => null };
7866
+ const Fn = { exec: () => null };
7869
7867
  function _e(t, e = "") {
7870
7868
  let n = typeof t == "string" ? t : t.source;
7871
7869
  const r = {
@@ -7946,7 +7944,7 @@ const Qe = {
7946
7944
  list: wv,
7947
7945
  newline: hv,
7948
7946
  paragraph: Ya,
7949
- table: jn,
7947
+ table: Fn,
7950
7948
  text: bv
7951
7949
  }, wi = _e("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", Jn).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Ar).getRegex(), yv = {
7952
7950
  ...Ds,
@@ -7958,20 +7956,20 @@ const Qe = {
7958
7956
  html: _e(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", Fs).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),
7959
7957
  def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,
7960
7958
  heading: /^(#{1,6})(.*)(?:\n+|$)/,
7961
- fences: jn,
7959
+ fences: Fn,
7962
7960
  // fences not supported
7963
7961
  lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
7964
7962
  paragraph: _e(js).replace("hr", Jn).replace("heading", ` *#{1,6} *[^
7965
7963
  ]`).replace("lheading", Ha).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
7966
7964
  }, $v = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Tv = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, Ga = /^( {2,}|\\)\n(?!\s*$)/, Sv = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, Lr = /[\p{P}\p{S}]/u, Ps = /[\s\p{P}\p{S}]/u, Ja = /[^\s\p{P}\p{S}]/u, Ev = _e(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, Ps).getRegex(), Wa = /(?!~)[\p{P}\p{S}]/u, Cv = /(?!~)[\s\p{P}\p{S}]/u, Iv = /(?:[^\s\p{P}\p{S}]|~)/u, Av = /\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g, Za = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, Lv = _e(Za, "u").replace(/punct/g, Lr).getRegex(), jv = _e(Za, "u").replace(/punct/g, Wa).getRegex(), Xa = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", Rv = _e(Xa, "gu").replace(/notPunctSpace/g, Ja).replace(/punctSpace/g, Ps).replace(/punct/g, Lr).getRegex(), Fv = _e(Xa, "gu").replace(/notPunctSpace/g, Iv).replace(/punctSpace/g, Cv).replace(/punct/g, Wa).getRegex(), Dv = _e("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, Ja).replace(/punctSpace/g, Ps).replace(/punct/g, Lr).getRegex(), Pv = _e(/\\(punct)/, "gu").replace(/punct/g, Lr).getRegex(), Ov = _e(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), Mv = _e(Fs).replace("(?:-->|$)", "-->").getRegex(), Nv = _e("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", Mv).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), vr = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, Uv = _e(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label", vr).replace("href", /<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), Va = _e(/^!?\[(label)\]\[(ref)\]/).replace("label", vr).replace("ref", Rs).getRegex(), Qa = _e(/^!?\[(ref)\](?:\[\])?/).replace("ref", Rs).getRegex(), Bv = _e("reflink|nolink(?!\\()", "g").replace("reflink", Va).replace("nolink", Qa).getRegex(), Os = {
7967
- _backpedal: jn,
7965
+ _backpedal: Fn,
7968
7966
  // only used for GFM url
7969
7967
  anyPunctuation: Pv,
7970
7968
  autolink: Ov,
7971
7969
  blockSkip: Av,
7972
7970
  br: Ga,
7973
7971
  code: Tv,
7974
- del: jn,
7972
+ del: Fn,
7975
7973
  emStrongLDelim: Lv,
7976
7974
  emStrongRDelimAst: Rv,
7977
7975
  emStrongRDelimUnd: Dv,
@@ -7983,7 +7981,7 @@ const Qe = {
7983
7981
  reflinkSearch: Bv,
7984
7982
  tag: Nv,
7985
7983
  text: Sv,
7986
- url: jn
7984
+ url: Fn
7987
7985
  }, qv = {
7988
7986
  ...Os,
7989
7987
  link: _e(/^!?\[(label)\]\((.*?)\)/).replace("label", vr).getRegex(),
@@ -8004,7 +8002,7 @@ const Qe = {
8004
8002
  normal: Ds,
8005
8003
  gfm: yv,
8006
8004
  pedantic: zv
8007
- }, Cn = {
8005
+ }, An = {
8008
8006
  normal: Os,
8009
8007
  gfm: is,
8010
8008
  breaks: Hv,
@@ -8051,7 +8049,7 @@ function yi(t, e) {
8051
8049
  r[s] = r[s].trim().replace(Qe.slashPipe, "|");
8052
8050
  return r;
8053
8051
  }
8054
- function In(t, e, n) {
8052
+ function Ln(t, e, n) {
8055
8053
  const r = t.length;
8056
8054
  if (r === 0)
8057
8055
  return "";
@@ -8117,7 +8115,7 @@ class gr {
8117
8115
  E(this, "rules");
8118
8116
  // set by the lexer
8119
8117
  E(this, "lexer");
8120
- this.options = e || on;
8118
+ this.options = e || dn;
8121
8119
  }
8122
8120
  space(e) {
8123
8121
  const n = this.rules.block.newline.exec(e);
@@ -8135,7 +8133,7 @@ class gr {
8135
8133
  type: "code",
8136
8134
  raw: n[0],
8137
8135
  codeBlockStyle: "indented",
8138
- text: this.options.pedantic ? r : In(r, `
8136
+ text: this.options.pedantic ? r : Ln(r, `
8139
8137
  `)
8140
8138
  };
8141
8139
  }
@@ -8157,7 +8155,7 @@ class gr {
8157
8155
  if (n) {
8158
8156
  let r = n[2].trim();
8159
8157
  if (this.rules.other.endingHash.test(r)) {
8160
- const s = In(r, "#");
8158
+ const s = Ln(r, "#");
8161
8159
  (this.options.pedantic || !s || this.rules.other.endingSpaceChar.test(s)) && (r = s.trim());
8162
8160
  }
8163
8161
  return {
@@ -8174,14 +8172,14 @@ class gr {
8174
8172
  if (n)
8175
8173
  return {
8176
8174
  type: "hr",
8177
- raw: In(n[0], `
8175
+ raw: Ln(n[0], `
8178
8176
  `)
8179
8177
  };
8180
8178
  }
8181
8179
  blockquote(e) {
8182
8180
  const n = this.rules.block.blockquote.exec(e);
8183
8181
  if (n) {
8184
- let r = In(n[0], `
8182
+ let r = Ln(n[0], `
8185
8183
  `).split(`
8186
8184
  `), s = "", i = "";
8187
8185
  const a = [];
@@ -8425,7 +8423,7 @@ ${d}` : d;
8425
8423
  if (!this.options.pedantic && this.rules.other.startAngleBracket.test(r)) {
8426
8424
  if (!this.rules.other.endAngleBracket.test(r))
8427
8425
  return;
8428
- const a = In(r.slice(0, -1), "\\");
8426
+ const a = Ln(r.slice(0, -1), "\\");
8429
8427
  if ((r.length - a.length) % 2 === 0)
8430
8428
  return;
8431
8429
  } else {
@@ -8601,7 +8599,7 @@ class gt {
8601
8599
  E(this, "state");
8602
8600
  E(this, "tokenizer");
8603
8601
  E(this, "inlineQueue");
8604
- this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = e || on, this.options.tokenizer = this.options.tokenizer || new gr(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = {
8602
+ this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = e || dn, this.options.tokenizer = this.options.tokenizer || new gr(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = {
8605
8603
  inLink: !1,
8606
8604
  inRawBlock: !1,
8607
8605
  top: !0
@@ -8609,9 +8607,9 @@ class gt {
8609
8607
  const n = {
8610
8608
  other: Qe,
8611
8609
  block: Qn.normal,
8612
- inline: Cn.normal
8610
+ inline: An.normal
8613
8611
  };
8614
- this.options.pedantic ? (n.block = Qn.pedantic, n.inline = Cn.pedantic) : this.options.gfm && (n.block = Qn.gfm, this.options.breaks ? n.inline = Cn.breaks : n.inline = Cn.gfm), this.tokenizer.rules = n;
8612
+ this.options.pedantic ? (n.block = Qn.pedantic, n.inline = An.pedantic) : this.options.gfm && (n.block = Qn.gfm, this.options.breaks ? n.inline = An.breaks : n.inline = An.gfm), this.tokenizer.rules = n;
8615
8613
  }
8616
8614
  /**
8617
8615
  * Expose Rules
@@ -8619,7 +8617,7 @@ class gt {
8619
8617
  static get rules() {
8620
8618
  return {
8621
8619
  block: Qn,
8622
- inline: Cn
8620
+ inline: An
8623
8621
  };
8624
8622
  }
8625
8623
  /**
@@ -8844,7 +8842,7 @@ class mr {
8844
8842
  constructor(e) {
8845
8843
  E(this, "options");
8846
8844
  E(this, "parser");
8847
- this.options = e || on;
8845
+ this.options = e || dn;
8848
8846
  }
8849
8847
  space(e) {
8850
8848
  return "";
@@ -9009,7 +9007,7 @@ class mt {
9009
9007
  E(this, "options");
9010
9008
  E(this, "renderer");
9011
9009
  E(this, "textRenderer");
9012
- this.options = e || on, this.options.renderer = this.options.renderer || new mr(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new Ms();
9010
+ this.options = e || dn, this.options.renderer = this.options.renderer || new mr(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new Ms();
9013
9011
  }
9014
9012
  /**
9015
9013
  * Static Parse Method
@@ -9167,11 +9165,11 @@ class mt {
9167
9165
  return r;
9168
9166
  }
9169
9167
  }
9170
- class Rn {
9168
+ class Dn {
9171
9169
  constructor(e) {
9172
9170
  E(this, "options");
9173
9171
  E(this, "block");
9174
- this.options = e || on;
9172
+ this.options = e || dn;
9175
9173
  }
9176
9174
  /**
9177
9175
  * Process markdown before marked
@@ -9204,7 +9202,7 @@ class Rn {
9204
9202
  return this.block ? mt.parse : mt.parseInline;
9205
9203
  }
9206
9204
  }
9207
- E(Rn, "passThroughHooks", /* @__PURE__ */ new Set([
9205
+ E(Dn, "passThroughHooks", /* @__PURE__ */ new Set([
9208
9206
  "preprocess",
9209
9207
  "postprocess",
9210
9208
  "processAllTokens"
@@ -9220,7 +9218,7 @@ class Wv {
9220
9218
  E(this, "TextRenderer", Ms);
9221
9219
  E(this, "Lexer", gt);
9222
9220
  E(this, "Tokenizer", gr);
9223
- E(this, "Hooks", Rn);
9221
+ E(this, "Hooks", Dn);
9224
9222
  this.use(...e);
9225
9223
  }
9226
9224
  /**
@@ -9307,14 +9305,14 @@ class Wv {
9307
9305
  s.tokenizer = i;
9308
9306
  }
9309
9307
  if (r.hooks) {
9310
- const i = this.defaults.hooks || new Rn();
9308
+ const i = this.defaults.hooks || new Dn();
9311
9309
  for (const a in r.hooks) {
9312
9310
  if (!(a in i))
9313
9311
  throw new Error(`hook '${a}' does not exist`);
9314
9312
  if (["options", "block"].includes(a))
9315
9313
  continue;
9316
9314
  const o = a, c = r.hooks[o], l = i[o];
9317
- Rn.passThroughHooks.has(a) ? i[o] = (u) => {
9315
+ Dn.passThroughHooks.has(a) ? i[o] = (u) => {
9318
9316
  if (this.defaults.async)
9319
9317
  return Promise.resolve(c.call(i, u)).then((h) => l.call(i, h));
9320
9318
  const d = c.call(i, u);
@@ -9382,22 +9380,22 @@ Please report this to https://github.com/markedjs/marked.`, e) {
9382
9380
  };
9383
9381
  }
9384
9382
  }
9385
- const tn = new Wv();
9383
+ const an = new Wv();
9386
9384
  function we(t, e) {
9387
- return tn.parse(t, e);
9385
+ return an.parse(t, e);
9388
9386
  }
9389
9387
  we.options = we.setOptions = function(t) {
9390
- return tn.setOptions(t), we.defaults = tn.defaults, Ba(we.defaults), we;
9388
+ return an.setOptions(t), we.defaults = an.defaults, Ba(we.defaults), we;
9391
9389
  };
9392
9390
  we.getDefaults = As;
9393
- we.defaults = on;
9391
+ we.defaults = dn;
9394
9392
  we.use = function(...t) {
9395
- return tn.use(...t), we.defaults = tn.defaults, Ba(we.defaults), we;
9393
+ return an.use(...t), we.defaults = an.defaults, Ba(we.defaults), we;
9396
9394
  };
9397
9395
  we.walkTokens = function(t, e) {
9398
- return tn.walkTokens(t, e);
9396
+ return an.walkTokens(t, e);
9399
9397
  };
9400
- we.parseInline = tn.parseInline;
9398
+ we.parseInline = an.parseInline;
9401
9399
  we.Parser = mt;
9402
9400
  we.parser = mt.parse;
9403
9401
  we.Renderer = mr;
@@ -9405,7 +9403,7 @@ we.TextRenderer = Ms;
9405
9403
  we.Lexer = gt;
9406
9404
  we.lexer = gt.lex;
9407
9405
  we.Tokenizer = gr;
9408
- we.Hooks = Rn;
9406
+ we.Hooks = Dn;
9409
9407
  we.parse = we;
9410
9408
  we.options;
9411
9409
  we.setOptions;
@@ -9592,7 +9590,7 @@ function as(t, e) {
9592
9590
  }
9593
9591
  });
9594
9592
  }
9595
- Wt(["click"]);
9593
+ Vt(["click"]);
9596
9594
  ae(
9597
9595
  as,
9598
9596
  {
@@ -9944,7 +9942,7 @@ function Ka(t, e) {
9944
9942
  }
9945
9943
  });
9946
9944
  }
9947
- Wt(["click"]);
9945
+ Vt(["click"]);
9948
9946
  ae(
9949
9947
  Ka,
9950
9948
  {
@@ -9973,7 +9971,7 @@ const _g = async (t) => {
9973
9971
  if (!e.ok)
9974
9972
  throw new Error("Failed to fetch chat");
9975
9973
  const n = await e.json();
9976
- return en.fromJson(n);
9974
+ return rn.fromJson(n);
9977
9975
  }, kg = async () => {
9978
9976
  const t = await fetch(`${B.getUrl()}/chat`, {
9979
9977
  headers: {
@@ -9984,7 +9982,7 @@ const _g = async (t) => {
9984
9982
  });
9985
9983
  if (!t.ok)
9986
9984
  throw new Error("Failed to fetch chats");
9987
- return (await t.json()).map((n) => en.fromJson(n));
9985
+ return (await t.json()).map((n) => rn.fromJson(n));
9988
9986
  }, yg = async (t) => {
9989
9987
  const e = await fetch(`${B.getUrl()}/chat`, {
9990
9988
  method: "POST",
@@ -9999,7 +9997,7 @@ const _g = async (t) => {
9999
9997
  if (!e.ok)
10000
9998
  throw new Error("Failed to create chat");
10001
9999
  const n = await e.json();
10002
- return en.fromJson(n);
10000
+ return rn.fromJson(n);
10003
10001
  }, zg = async (t, e, n, r = [], s, i, a) => {
10004
10002
  let o, c = !1;
10005
10003
  try {
@@ -10099,7 +10097,7 @@ const _g = async (t) => {
10099
10097
  }), i.addEventListener("error", () => {
10100
10098
  r(new Error("Failed to upload file"));
10101
10099
  }), i.open("POST", `${B.getUrl()}/files`), i.setRequestHeader("akstoken", B.getToken()), i.setRequestHeader("envid", B.getEnvironmentId()), i.setRequestHeader("ngrok-skip-browser-warning", "true"), i.send(s);
10102
- }), Xt = {
10100
+ }), Kt = {
10103
10101
  getChat: _g,
10104
10102
  getChats: kg,
10105
10103
  newChat: yg,
@@ -10136,10 +10134,10 @@ function to(t, e) {
10136
10134
  let n = g(e, "showHistory", 15), r = g(e, "actChat", 15), s = g(e, "chats", 15), i = g(e, "messages", 15), a = g(e, "error", 15), o = g(e, "loadingChat", 15), c = g(e, "loadingChats", 15), l = g(e, "newChat", 7);
10137
10135
  const u = async (m) => {
10138
10136
  o(!0);
10139
- let T = await Xt.getChat(m);
10137
+ let T = await Kt.getChat(m);
10140
10138
  r(T), i(r().messages), o(!1), a("");
10141
10139
  }, d = (m, T) => {
10142
- confirm(/* @__PURE__ */ Lu({ chatTitle: T })) && Xt.deleteChat(m).then(() => {
10140
+ confirm(/* @__PURE__ */ Lu({ chatTitle: T })) && Kt.deleteChat(m).then(() => {
10143
10141
  s(s().filter((x) => x._id !== m)), r()._id === m && l()();
10144
10142
  });
10145
10143
  };
@@ -10227,7 +10225,7 @@ function to(t, e) {
10227
10225
  }
10228
10226
  });
10229
10227
  }
10230
- Wt(["click"]);
10228
+ Vt(["click"]);
10231
10229
  ae(
10232
10230
  to,
10233
10231
  {
@@ -10269,10 +10267,10 @@ function no(t, e) {
10269
10267
  if (b(w, ""), b(u, !0), b(l, C([
10270
10268
  ...f(l),
10271
10269
  new Ht((/* @__PURE__ */ new Date()).getTime(), !0, U, U)
10272
- ])), console.log("Current messages:", f(l)), f(l).length == 2 && (console.log("Creating new chat with state:", (le = f(o)) == null ? void 0 : le.state), b(o, C(await Xt.newChat((be = f(o)) == null ? void 0 : be.state))), b(c, C([...f(c), f(o)])), f(o).messages = f(l), await Me()), f(o)) {
10270
+ ])), console.log("Current messages:", f(l)), f(l).length == 2 && (console.log("Creating new chat with state:", (le = f(o)) == null ? void 0 : le.state), b(o, C(await Kt.newChat((be = f(o)) == null ? void 0 : be.state))), b(c, C([...f(c), f(o)])), f(o).messages = f(l), await Me()), f(o)) {
10273
10271
  b(_, C(new AbortController()));
10274
10272
  try {
10275
- let he = await Xt.sendMessage(f(o)._id, U, Y, ue, A, f(s), f(_).signal);
10273
+ let he = await Kt.sendMessage(f(o)._id, U, Y, ue, A, f(s), f(_).signal);
10276
10274
  if (console.log(he), he) {
10277
10275
  b(l, C([
10278
10276
  ...f(l),
@@ -10280,7 +10278,7 @@ function no(t, e) {
10280
10278
  ])), b(m, "");
10281
10279
  return;
10282
10280
  }
10283
- if (b(o, C(await Xt.getChat(f(o)._id))), await Me(), b(m, ""), b(T, C([])), b(l, C([
10281
+ if (b(o, C(await Kt.getChat(f(o)._id))), await Me(), b(m, ""), b(T, C([])), b(l, C([
10284
10282
  ...f(l),
10285
10283
  f(o).messages[f(o).messages.length - 1]
10286
10284
  ])), !f(p)) {
@@ -10304,11 +10302,11 @@ function no(t, e) {
10304
10302
  };
10305
10303
  let fe = J(0);
10306
10304
  const Ge = (U) => {
10307
- f(a) < 50 || (U.preventDefault(), U.stopPropagation(), On(fe), b(z, !0));
10305
+ f(a) < 50 || (U.preventDefault(), U.stopPropagation(), Nn(fe), b(z, !0));
10308
10306
  }, Ye = (U) => {
10309
10307
  f(a) < 50 || (U.preventDefault(), U.stopPropagation());
10310
10308
  }, Je = (U) => {
10311
- f(a) < 50 || (U.preventDefault(), U.stopPropagation(), On(fe, -1), f(fe) === 0 && b(z, !1));
10309
+ f(a) < 50 || (U.preventDefault(), U.stopPropagation(), Nn(fe, -1), f(fe) === 0 && b(z, !1));
10312
10310
  }, Ke = async (U) => {
10313
10311
  var be, he;
10314
10312
  if (f(a) < 50) return;
@@ -10331,7 +10329,7 @@ function no(t, e) {
10331
10329
  }, L = async (U) => {
10332
10330
  try {
10333
10331
  b(S, C(U.name)), b(F, 0);
10334
- const Y = await Xt.uploadFile(U, (ue) => {
10332
+ const Y = await Kt.uploadFile(U, (ue) => {
10335
10333
  b(F, C(ue));
10336
10334
  });
10337
10335
  return f(G)[Y] = {
@@ -10376,7 +10374,7 @@ function no(t, e) {
10376
10374
  }
10377
10375
  }
10378
10376
  const Me = async () => {
10379
- b(c, C(await Xt.getChats())), b(c, C(f(c).sort((U, Y) => Y.lastUpdate - U.lastUpdate)));
10377
+ b(c, C(await Kt.getChats())), b(c, C(f(c).sort((U, Y) => Y.lastUpdate - U.lastUpdate)));
10380
10378
  };
10381
10379
  let ve = J(!1), Z = J(!1);
10382
10380
  const ge = async () => {
@@ -10387,7 +10385,7 @@ function no(t, e) {
10387
10385
  450
10388
10386
  )) : b(n, !1) : (b(n, !0), b(Z, !0), await Me(), b(Z, !1));
10389
10387
  }, K = () => {
10390
- b(o, C(new en(
10388
+ b(o, C(new rn(
10391
10389
  "",
10392
10390
  "",
10393
10391
  "",
@@ -10412,7 +10410,7 @@ function no(t, e) {
10412
10410
  const Y = await pt.getUserLevel();
10413
10411
  b(a, C(Y));
10414
10412
  const ue = Ht.firstMessage(f(s), f(i), f(R));
10415
- b(l, C([ue])), b(o, C(new en(
10413
+ b(l, C([ue])), b(o, C(new rn(
10416
10414
  "",
10417
10415
  "",
10418
10416
  "",
@@ -10472,10 +10470,10 @@ function no(t, e) {
10472
10470
  k(te);
10473
10471
  var je = P(te, 2), qe = y(je);
10474
10472
  k(je);
10475
- var zt = P(je, 2), ln = y(zt);
10473
+ var zt = P(je, 2), fn = y(zt);
10476
10474
  k(zt), k(ee), k(H), D(
10477
- (Zt) => {
10478
- Te($e, f(S)), O(qe, "style", `width: ${f(F) ?? ""}%`), Te(ln, `${Zt ?? ""}%`);
10475
+ (Qt) => {
10476
+ Te($e, f(S)), O(qe, "style", `width: ${f(F) ?? ""}%`), Te(fn, `${Qt ?? ""}%`);
10479
10477
  },
10480
10478
  [
10481
10479
  () => Math.round(f(F))
@@ -10556,8 +10554,8 @@ function no(t, e) {
10556
10554
  color: "white",
10557
10555
  style: "margin: 2px 0 0 2px;"
10558
10556
  }), k(qe);
10559
- var ln = P(qe, 2);
10560
- za(ln, {
10557
+ var fn = P(qe, 2);
10558
+ za(fn, {
10561
10559
  newChat: K,
10562
10560
  get show() {
10563
10561
  return f(n);
@@ -10602,8 +10600,8 @@ function no(t, e) {
10602
10600
  b(w, C(N));
10603
10601
  }
10604
10602
  });
10605
- var Zt = P(ln, 2);
10606
- Ka(Zt, {
10603
+ var Qt = P(fn, 2);
10604
+ Ka(Qt, {
10607
10605
  get messages() {
10608
10606
  return f(l);
10609
10607
  },
@@ -10659,7 +10657,7 @@ function no(t, e) {
10659
10657
  b(ve, C(N));
10660
10658
  }
10661
10659
  });
10662
- var $t = P(Zt, 2);
10660
+ var $t = P(Qt, 2);
10663
10661
  Ia($t, {
10664
10662
  sendMessage: Ie,
10665
10663
  stopMessage: ye,
@@ -10758,7 +10756,7 @@ function no(t, e) {
10758
10756
  [() => /* @__PURE__ */ zu()]
10759
10757
  ), $(t, ke), se();
10760
10758
  }
10761
- Wt(["mousedown", "click"]);
10759
+ Vt(["mousedown", "click"]);
10762
10760
  ae(no, {}, [], [], !0);
10763
10761
  function Jg(t, e) {
10764
10762
  re(e, !0);