akpm-knowledge-base-chat 2.0.23 → 2.0.24

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 +685 -685
  2. package/package.json +1 -1
package/CDN/akb-chat.js CHANGED
@@ -1,14 +1,14 @@
1
- /* Version: 2.0.23 */
1
+ /* Version: 2.0.24 */
2
2
  var mo = Object.defineProperty;
3
3
  var ta = (t) => {
4
4
  throw TypeError(t);
5
5
  };
6
6
  var bo = (t, e, n) => e in t ? mo(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
7
- var C = (t, e, n) => bo(t, typeof e != "symbol" ? e + "" : e, n), na = (t, e, n) => e.has(t) || ta("Cannot " + n);
7
+ var E = (t, e, n) => bo(t, typeof e != "symbol" ? e + "" : e, n), na = (t, e, n) => e.has(t) || ta("Cannot " + n);
8
8
  var ft = (t, e, n) => (na(t, e, "read from private field"), n ? n.call(t) : e.get(t)), Wr = (t, e, n) => e.has(t) ? ta("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), Zr = (t, e, n, r) => (na(t, e, "write to private field"), r ? r.call(t, n) : e.set(t, n), n);
9
9
  const xo = "5";
10
10
  typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(xo);
11
- const ys = 1, zs = 2, Ma = 4, wo = 8, _o = 16, ko = 1, yo = 2, Na = 4, zo = 8, $o = 16, To = 1, So = 2, Eo = 4, Co = 1, Io = 2, Ua = "[", $s = "[!", Ts = "]", kn = {}, pt = Symbol();
11
+ const ys = 1, zs = 2, Ma = 4, wo = 8, _o = 16, ko = 1, yo = 2, Na = 4, zo = 8, $o = 16, To = 1, So = 2, Co = 4, Eo = 1, Io = 2, Ua = "[", $s = "[!", Ts = "]", kn = {}, pt = Symbol();
12
12
  function Ao(t) {
13
13
  return t.endsWith("capture") && t !== "gotpointercapture" && t !== "lostpointercapture";
14
14
  }
@@ -59,7 +59,7 @@ function Oo(t) {
59
59
  return Do.includes(t);
60
60
  }
61
61
  const rs = !1;
62
- var Ar = Array.isArray, Po = Array.prototype.indexOf, Ss = Array.from, vr = Object.keys, gr = Object.defineProperty, fn = Object.getOwnPropertyDescriptor, Ba = Object.getOwnPropertyDescriptors, Mo = Object.prototype, No = Array.prototype, Es = Object.getPrototypeOf;
62
+ var Ar = Array.isArray, Po = Array.prototype.indexOf, Ss = Array.from, vr = Object.keys, gr = Object.defineProperty, fn = Object.getOwnPropertyDescriptor, Ba = Object.getOwnPropertyDescriptors, Mo = Object.prototype, No = Array.prototype, Cs = Object.getPrototypeOf;
63
63
  function Uo(t) {
64
64
  return typeof t == "function";
65
65
  }
@@ -72,14 +72,14 @@ function mr(t) {
72
72
  for (var e = 0; e < t.length; e++)
73
73
  t[e]();
74
74
  }
75
- const yt = 2, qa = 4, Vn = 8, Lr = 16, Ut = 32, gn = 64, br = 128, mn = 256, xr = 512, nt = 1024, Xt = 2048, bn = 4096, Dt = 8192, En = 16384, Ha = 32768, jr = 65536, qo = 1 << 17, Ho = 1 << 19, Ya = 1 << 20, Zt = Symbol("$state"), Ga = Symbol("legacy props"), Yo = Symbol("");
75
+ const yt = 2, qa = 4, Vn = 8, Lr = 16, Ut = 32, gn = 64, br = 128, mn = 256, xr = 512, nt = 1024, Xt = 2048, bn = 4096, Dt = 8192, Cn = 16384, Ha = 32768, jr = 65536, qo = 1 << 17, Ho = 1 << 19, Ya = 1 << 20, Zt = Symbol("$state"), Ga = Symbol("legacy props"), Yo = Symbol("");
76
76
  function Ja(t) {
77
77
  return t === this.v;
78
78
  }
79
79
  function Go(t, e) {
80
80
  return t != t ? e == e : t !== e || t !== null && typeof t == "object" || typeof t == "function";
81
81
  }
82
- function Cs(t) {
82
+ function Es(t) {
83
83
  return !Go(t, this.v);
84
84
  }
85
85
  function Jo(t) {
@@ -112,11 +112,11 @@ function tl() {
112
112
  function nl() {
113
113
  throw new Error("https://svelte.dev/e/state_unsafe_mutation");
114
114
  }
115
- let Cn = !1, rl = !1;
115
+ let En = !1, rl = !1;
116
116
  function sl() {
117
- Cn = !0;
117
+ En = !0;
118
118
  }
119
- function ht(t, e) {
119
+ function vt(t, e) {
120
120
  var n = {
121
121
  f: 0,
122
122
  // TODO ideally we could skip this altogether, but it causes type errors
@@ -129,13 +129,13 @@ function ht(t, e) {
129
129
  return n;
130
130
  }
131
131
  function J(t) {
132
- return /* @__PURE__ */ Wa(ht(t));
132
+ return /* @__PURE__ */ Wa(vt(t));
133
133
  }
134
134
  // @__NO_SIDE_EFFECTS__
135
135
  function Rr(t, e = !1) {
136
136
  var r;
137
- const n = ht(t);
138
- return e || (n.equals = Cs), Cn && Ce !== null && Ce.l !== null && ((r = Ce.l).s ?? (r.s = [])).push(n), n;
137
+ const n = vt(t);
138
+ return e || (n.equals = Es), En && Ee !== null && Ee.l !== null && ((r = Ee.l).s ?? (r.s = [])).push(n), n;
139
139
  }
140
140
  function Kt(t, e = !1) {
141
141
  return /* @__PURE__ */ Wa(/* @__PURE__ */ Rr(t, e));
@@ -218,14 +218,14 @@ function as() {
218
218
  e.remove(), e = r;
219
219
  }
220
220
  }
221
- function E(t, e = null, n) {
221
+ function S(t, e = null, n) {
222
222
  if (typeof t != "object" || t === null || Zt in t)
223
223
  return t;
224
- const r = Es(t);
224
+ const r = Cs(t);
225
225
  if (r !== Mo && r !== No)
226
226
  return t;
227
- var s = /* @__PURE__ */ new Map(), a = Ar(t), i = ht(0);
228
- a && s.set("length", ht(
227
+ var s = /* @__PURE__ */ new Map(), a = Ar(t), i = vt(0);
228
+ a && s.set("length", vt(
229
229
  /** @type {any[]} */
230
230
  t.length
231
231
  ));
@@ -237,12 +237,12 @@ function E(t, e = null, n) {
237
237
  defineProperty(c, l, u) {
238
238
  (!("value" in u) || u.configurable === !1 || u.enumerable === !1 || u.writable === !1) && Ko();
239
239
  var f = s.get(l);
240
- return f === void 0 ? (f = ht(u.value), s.set(l, f)) : m(f, E(u.value, o)), !0;
240
+ return f === void 0 ? (f = vt(u.value), s.set(l, f)) : m(f, S(u.value, o)), !0;
241
241
  },
242
242
  deleteProperty(c, l) {
243
243
  var u = s.get(l);
244
244
  if (u === void 0)
245
- l in c && s.set(l, ht(pt));
245
+ l in c && s.set(l, vt(pt));
246
246
  else {
247
247
  if (a && typeof l == "string") {
248
248
  var f = (
@@ -256,11 +256,11 @@ function E(t, e = null, n) {
256
256
  return !0;
257
257
  },
258
258
  get(c, l, u) {
259
- var x;
259
+ var b;
260
260
  if (l === Zt)
261
261
  return t;
262
262
  var f = s.get(l), p = l in c;
263
- if (f === void 0 && (!p || (x = fn(c, l)) != null && x.writable) && (f = ht(E(p ? c[l] : pt, o)), s.set(l, f)), f !== void 0) {
263
+ if (f === void 0 && (!p || (b = fn(c, l)) != null && b.writable) && (f = vt(S(p ? c[l] : pt, o)), s.set(l, f)), f !== void 0) {
264
264
  var h = d(f);
265
265
  return h === pt ? void 0 : h;
266
266
  }
@@ -289,7 +289,7 @@ function E(t, e = null, n) {
289
289
  return !0;
290
290
  var u = s.get(l), f = u !== void 0 && u.v !== pt || Reflect.has(c, l);
291
291
  if (u !== void 0 || ge !== null && (!f || (h = fn(c, l)) != null && h.writable)) {
292
- u === void 0 && (u = ht(f ? E(c[l], o) : pt), s.set(l, u));
292
+ u === void 0 && (u = vt(f ? S(c[l], o) : pt), s.set(l, u));
293
293
  var p = d(u);
294
294
  if (p === pt)
295
295
  return !1;
@@ -300,20 +300,20 @@ function E(t, e = null, n) {
300
300
  var $;
301
301
  var p = s.get(l), h = l in c;
302
302
  if (a && l === "length")
303
- for (var x = u; x < /** @type {Source<number>} */
304
- p.v; x += 1) {
305
- var _ = s.get(x + "");
306
- _ !== void 0 ? m(_, pt) : x in c && (_ = ht(pt), s.set(x + "", _));
303
+ for (var b = u; b < /** @type {Source<number>} */
304
+ p.v; b += 1) {
305
+ var _ = s.get(b + "");
306
+ _ !== void 0 ? m(_, pt) : b in c && (_ = vt(pt), s.set(b + "", _));
307
307
  }
308
- p === void 0 ? (!h || ($ = fn(c, l)) != null && $.writable) && (p = ht(void 0), m(p, E(u, o)), s.set(l, p)) : (h = p.v !== pt, m(p, E(u, o)));
308
+ p === void 0 ? (!h || ($ = fn(c, l)) != null && $.writable) && (p = vt(void 0), m(p, S(u, o)), s.set(l, p)) : (h = p.v !== pt, m(p, S(u, o)));
309
309
  var y = Reflect.getOwnPropertyDescriptor(c, l);
310
310
  if (y != null && y.set && y.set.call(f, u), !h) {
311
311
  if (a && typeof l == "string") {
312
- var b = (
312
+ var x = (
313
313
  /** @type {Source<number>} */
314
314
  s.get("length")
315
315
  ), w = Number(l);
316
- Number.isInteger(w) && w >= b.v && m(b, w + 1);
316
+ Number.isInteger(w) && w >= x.v && m(x, w + 1);
317
317
  }
318
318
  ra(i);
319
319
  }
@@ -356,7 +356,7 @@ function sn(t = "") {
356
356
  return document.createTextNode(t);
357
357
  }
358
358
  // @__NO_SIDE_EFFECTS__
359
- function gt(t) {
359
+ function mt(t) {
360
360
  return Xa.call(t);
361
361
  }
362
362
  // @__NO_SIDE_EFFECTS__
@@ -365,10 +365,10 @@ function Vt(t) {
365
365
  }
366
366
  function z(t, e) {
367
367
  if (!ve)
368
- return /* @__PURE__ */ gt(t);
368
+ return /* @__PURE__ */ mt(t);
369
369
  var n = (
370
370
  /** @type {TemplateNode} */
371
- /* @__PURE__ */ gt(ke)
371
+ /* @__PURE__ */ mt(ke)
372
372
  );
373
373
  if (n === null)
374
374
  n = ke.appendChild(sn());
@@ -382,7 +382,7 @@ function tt(t, e) {
382
382
  if (!ve) {
383
383
  var n = (
384
384
  /** @type {DocumentFragment} */
385
- /* @__PURE__ */ gt(
385
+ /* @__PURE__ */ mt(
386
386
  /** @type {Node} */
387
387
  t
388
388
  )
@@ -419,7 +419,7 @@ function He(t) {
419
419
  ) : null;
420
420
  const r = {
421
421
  children: null,
422
- ctx: Ce,
422
+ ctx: Ee,
423
423
  deps: null,
424
424
  equals: Ja,
425
425
  f: e,
@@ -438,7 +438,7 @@ function He(t) {
438
438
  // @__NO_SIDE_EFFECTS__
439
439
  function Qa(t) {
440
440
  const e = /* @__PURE__ */ He(t);
441
- return e.equals = Cs, e;
441
+ return e.equals = Es, e;
442
442
  }
443
443
  function Ka(t) {
444
444
  var e = t.children;
@@ -469,11 +469,11 @@ function il(t) {
469
469
  }
470
470
  function ei(t) {
471
471
  var e, n = ge;
472
- Ct(il(t));
472
+ Et(il(t));
473
473
  try {
474
474
  Ka(t), e = vi(t);
475
475
  } finally {
476
- Ct(n);
476
+ Et(n);
477
477
  }
478
478
  return e;
479
479
  }
@@ -482,7 +482,7 @@ function ti(t) {
482
482
  It(t, n), t.equals(e) || (t.v = e, t.wv = pi());
483
483
  }
484
484
  function As(t) {
485
- Ka(t), Wn(t, 0), It(t, En), t.v = t.children = t.deps = t.ctx = t.reactions = null;
485
+ Ka(t), Wn(t, 0), It(t, Cn), t.v = t.children = t.deps = t.ctx = t.reactions = null;
486
486
  }
487
487
  function ni(t) {
488
488
  ge === null && Ie === null && Zo(), Ie !== null && Ie.f & mn && Wo(), Rs && Jo();
@@ -493,7 +493,7 @@ function ol(t, e) {
493
493
  }
494
494
  function xn(t, e, n, r = !0) {
495
495
  var s = (t & gn) !== 0, a = ge, i = {
496
- ctx: Ce,
496
+ ctx: Ee,
497
497
  deps: null,
498
498
  deriveds: null,
499
499
  nodes_start: null,
@@ -535,11 +535,11 @@ function ll(t) {
535
535
  }
536
536
  function Lt(t) {
537
537
  ni();
538
- var e = ge !== null && (ge.f & Ut) !== 0 && Ce !== null && !Ce.m;
538
+ var e = ge !== null && (ge.f & Ut) !== 0 && Ee !== null && !Ee.m;
539
539
  if (e) {
540
540
  var n = (
541
541
  /** @type {ComponentContext} */
542
- Ce
542
+ Ee
543
543
  );
544
544
  (n.e ?? (n.e = [])).push({
545
545
  fn: t,
@@ -574,7 +574,7 @@ function In(t) {
574
574
  function Qn(t, e) {
575
575
  var n = (
576
576
  /** @type {ComponentContextLegacy} */
577
- Ce
577
+ Ee
578
578
  ), r = { effect: null, ran: !1 };
579
579
  n.l.r1.push(r), r.effect = An(() => {
580
580
  t(), !r.ran && (r.ran = !0, m(n.l.r2, !0), Nt(e));
@@ -583,7 +583,7 @@ function Qn(t, e) {
583
583
  function Kn() {
584
584
  var t = (
585
585
  /** @type {ComponentContextLegacy} */
586
- Ce
586
+ Ee
587
587
  );
588
588
  An(() => {
589
589
  if (d(t.l.r2)) {
@@ -653,7 +653,7 @@ function Pt(t, e = !0) {
653
653
  }
654
654
  n = !0;
655
655
  }
656
- ai(t, e && !n), si(t), Wn(t, 0), It(t, En);
656
+ ai(t, e && !n), si(t), Wn(t, 0), It(t, Cn);
657
657
  var i = t.transitions;
658
658
  if (i !== null)
659
659
  for (const c of i)
@@ -745,23 +745,23 @@ function Mt(t) {
745
745
  Ie = t;
746
746
  }
747
747
  let ge = null;
748
- function Ct(t) {
748
+ function Et(t) {
749
749
  ge = t;
750
750
  }
751
751
  let Ot = null;
752
752
  function ml(t) {
753
753
  Ot = t;
754
754
  }
755
- let vt = null, bt = 0, Ht = null;
755
+ let gt = null, xt = 0, Ht = null;
756
756
  function bl(t) {
757
757
  Ht = t;
758
758
  }
759
- let fi = 1, zr = 0, dn = !1, Ce = null;
759
+ let fi = 1, zr = 0, dn = !1, Ee = null;
760
760
  function pi() {
761
761
  return ++fi;
762
762
  }
763
763
  function er() {
764
- return !Cn || Ce !== null && Ce.l === null;
764
+ return !En || Ee !== null && Ee.l === null;
765
765
  }
766
766
  function jn(t) {
767
767
  var l;
@@ -805,7 +805,7 @@ function xl(t, e) {
805
805
  throw ur = !1, t;
806
806
  }
807
807
  function wl(t) {
808
- return (t.f & En) === 0 && (t.parent === null || (t.parent.f & br) === 0);
808
+ return (t.f & Cn) === 0 && (t.parent === null || (t.parent.f & br) === 0);
809
809
  }
810
810
  function Or(t, e, n, r) {
811
811
  if (ur) {
@@ -837,25 +837,25 @@ function hi(t, e, n = 0) {
837
837
  }
838
838
  function vi(t) {
839
839
  var h;
840
- var e = vt, n = bt, r = Ht, s = Ie, a = dn, i = Ot, o = Ce, c = rn, l = t.f;
841
- vt = /** @type {null | Value[]} */
842
- null, bt = 0, Ht = null, Ie = l & (Ut | gn) ? null : t, dn = !yn && (l & mn) !== 0, Ot = null, Ce = t.ctx, rn = !1, zr++;
840
+ var e = gt, n = xt, r = Ht, s = Ie, a = dn, i = Ot, o = Ee, c = rn, l = t.f;
841
+ gt = /** @type {null | Value[]} */
842
+ null, xt = 0, Ht = null, Ie = l & (Ut | gn) ? null : t, dn = !yn && (l & mn) !== 0, Ot = null, Ee = t.ctx, rn = !1, zr++;
843
843
  try {
844
844
  var u = (
845
845
  /** @type {Function} */
846
846
  (0, t.fn)()
847
847
  ), f = t.deps;
848
- if (vt !== null) {
848
+ if (gt !== null) {
849
849
  var p;
850
- if (Wn(t, bt), f !== null && bt > 0)
851
- for (f.length = bt + vt.length, p = 0; p < vt.length; p++)
852
- f[bt + p] = vt[p];
850
+ if (Wn(t, xt), f !== null && xt > 0)
851
+ for (f.length = xt + gt.length, p = 0; p < gt.length; p++)
852
+ f[xt + p] = gt[p];
853
853
  else
854
- t.deps = f = vt;
854
+ t.deps = f = gt;
855
855
  if (!dn)
856
- for (p = bt; p < f.length; p++)
856
+ for (p = xt; p < f.length; p++)
857
857
  ((h = f[p]).reactions ?? (h.reactions = [])).push(t);
858
- } else f !== null && bt < f.length && (Wn(t, bt), f.length = bt);
858
+ } else f !== null && xt < f.length && (Wn(t, xt), f.length = xt);
859
859
  if (er() && Ht !== null && !(t.f & (yt | bn | Xt)))
860
860
  for (p = 0; p < /** @type {Source[]} */
861
861
  Ht.length; p++)
@@ -866,7 +866,7 @@ function vi(t) {
866
866
  );
867
867
  return s !== null && zr++, u;
868
868
  } finally {
869
- vt = e, bt = n, Ht = r, Ie = s, dn = a, Ot = i, Ce = o, rn = c;
869
+ gt = e, xt = n, Ht = r, Ie = s, dn = a, Ot = i, Ee = o, rn = c;
870
870
  }
871
871
  }
872
872
  function _l(t, e) {
@@ -881,7 +881,7 @@ function _l(t, e) {
881
881
  n === null && e.f & yt && // 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
- (vt === null || !vt.includes(e)) && (It(e, bn), e.f & (mn | xr) || (e.f ^= xr), Wn(
884
+ (gt === null || !gt.includes(e)) && (It(e, bn), e.f & (mn | xr) || (e.f ^= xr), Wn(
885
885
  /** @type {Derived} **/
886
886
  e,
887
887
  0
@@ -895,9 +895,9 @@ function Wn(t, e) {
895
895
  }
896
896
  function Pr(t) {
897
897
  var e = t.f;
898
- if (!(e & En)) {
898
+ if (!(e & Cn)) {
899
899
  It(t, nt);
900
- var n = ge, r = Ce;
900
+ var n = ge, r = Ee;
901
901
  ge = t;
902
902
  try {
903
903
  e & Lr ? fl(t) : ai(t), si(t), ri(t);
@@ -949,7 +949,7 @@ function kl(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 & (En | Dt)))
952
+ if (!(r.f & (Cn | Dt)))
953
953
  try {
954
954
  jn(r) && (Pr(r), r.deps === null && r.first === null && r.nodes_start === null && (r.teardown === null ? ii(r) : r.fn = null));
955
955
  } catch (s) {
@@ -1031,7 +1031,7 @@ async function Vr() {
1031
1031
  function d(t) {
1032
1032
  var u;
1033
1033
  var e = t.f, n = (e & yt) !== 0;
1034
- if (n && e & En) {
1034
+ if (n && e & Cn) {
1035
1035
  var r = ei(
1036
1036
  /** @type {Derived} */
1037
1037
  t
@@ -1044,7 +1044,7 @@ function d(t) {
1044
1044
  if (Ie !== null && !rn) {
1045
1045
  Ot !== null && Ot.includes(t) && tl();
1046
1046
  var s = Ie.deps;
1047
- t.rv < zr && (t.rv = zr, vt === null && s !== null && s[bt] === t ? bt++ : vt === null ? vt = [t] : vt.push(t));
1047
+ t.rv < zr && (t.rv = zr, gt === null && s !== null && s[xt] === t ? xt++ : gt === null ? gt = [t] : gt.push(t));
1048
1048
  } else if (n && /** @type {Derived} */
1049
1049
  t.deps === null)
1050
1050
  for (var a = (
@@ -1085,23 +1085,23 @@ function Zn(t, e = 1) {
1085
1085
  return m(t, n), r;
1086
1086
  }
1087
1087
  function le(t, e = !1, n) {
1088
- Ce = {
1089
- p: Ce,
1088
+ Ee = {
1089
+ p: Ee,
1090
1090
  c: null,
1091
1091
  e: null,
1092
1092
  m: !1,
1093
1093
  s: t,
1094
1094
  x: null,
1095
1095
  l: null
1096
- }, Cn && !e && (Ce.l = {
1096
+ }, En && !e && (Ee.l = {
1097
1097
  s: null,
1098
1098
  u: null,
1099
1099
  r1: [],
1100
- r2: ht(!1)
1100
+ r2: vt(!1)
1101
1101
  });
1102
1102
  }
1103
1103
  function ce(t) {
1104
- const e = Ce;
1104
+ const e = Ee;
1105
1105
  if (e !== null) {
1106
1106
  t !== void 0 && (e.x = t);
1107
1107
  const i = e.e;
@@ -1111,13 +1111,13 @@ function ce(t) {
1111
1111
  try {
1112
1112
  for (var s = 0; s < i.length; s++) {
1113
1113
  var a = i[s];
1114
- Ct(a.effect), Mt(a.reaction), In(a.fn);
1114
+ Et(a.effect), Mt(a.reaction), In(a.fn);
1115
1115
  }
1116
1116
  } finally {
1117
- Ct(n), Mt(r);
1117
+ Et(n), Mt(r);
1118
1118
  }
1119
1119
  }
1120
- Ce = e.p, e.m = !0;
1120
+ Ee = e.p, e.m = !0;
1121
1121
  }
1122
1122
  return t || /** @type {T} */
1123
1123
  {};
@@ -1142,7 +1142,7 @@ function cs(t, e = /* @__PURE__ */ new Set()) {
1142
1142
  cs(t[r], e);
1143
1143
  } catch {
1144
1144
  }
1145
- const n = Es(t);
1145
+ const n = Cs(t);
1146
1146
  if (n !== Object.prototype && n !== Array.prototype && n !== Map.prototype && n !== Set.prototype && n !== Date.prototype) {
1147
1147
  const r = Ba(n);
1148
1148
  for (let s in r) {
@@ -1165,7 +1165,7 @@ function $l(t, e) {
1165
1165
  }
1166
1166
  }
1167
1167
  function Tl(t) {
1168
- ve && /* @__PURE__ */ gt(t) !== null && Is(t);
1168
+ ve && /* @__PURE__ */ mt(t) !== null && Is(t);
1169
1169
  }
1170
1170
  let la = !1;
1171
1171
  function xi() {
@@ -1189,11 +1189,11 @@ function xi() {
1189
1189
  }
1190
1190
  function wi(t) {
1191
1191
  var e = Ie, n = ge;
1192
- Mt(null), Ct(null);
1192
+ Mt(null), Et(null);
1193
1193
  try {
1194
1194
  return t();
1195
1195
  } finally {
1196
- Mt(e), Ct(n);
1196
+ Mt(e), Et(n);
1197
1197
  }
1198
1198
  }
1199
1199
  function _i(t, e, n, r = n) {
@@ -1255,26 +1255,26 @@ function Bn(t) {
1255
1255
  }
1256
1256
  });
1257
1257
  var u = Ie, f = ge;
1258
- Mt(null), Ct(null);
1258
+ Mt(null), Et(null);
1259
1259
  try {
1260
1260
  for (var p, h = []; a !== null; ) {
1261
- var x = a.assignedSlot || a.parentNode || /** @type {any} */
1261
+ var b = a.assignedSlot || a.parentNode || /** @type {any} */
1262
1262
  a.host || null;
1263
1263
  try {
1264
1264
  var _ = a["__" + r];
1265
1265
  if (_ !== void 0 && !/** @type {any} */
1266
1266
  a.disabled)
1267
1267
  if (Ar(_)) {
1268
- var [y, ...b] = _;
1269
- y.apply(a, [t, ...b]);
1268
+ var [y, ...x] = _;
1269
+ y.apply(a, [t, ...x]);
1270
1270
  } else
1271
1271
  _.call(a, t);
1272
1272
  } catch ($) {
1273
1273
  p ? h.push($) : p = $;
1274
1274
  }
1275
- if (t.cancelBubble || x === e || x === null)
1275
+ if (t.cancelBubble || b === e || b === null)
1276
1276
  break;
1277
- a = x;
1277
+ a = b;
1278
1278
  }
1279
1279
  if (p) {
1280
1280
  for (let $ of h)
@@ -1284,7 +1284,7 @@ function Bn(t) {
1284
1284
  throw p;
1285
1285
  }
1286
1286
  } finally {
1287
- t.__root = e, delete t.currentTarget, Mt(u), Ct(f);
1287
+ t.__root = e, delete t.currentTarget, Mt(u), Et(f);
1288
1288
  }
1289
1289
  }
1290
1290
  }
@@ -1292,7 +1292,7 @@ function Fs(t) {
1292
1292
  var e = document.createElement("template");
1293
1293
  return e.innerHTML = t, e.content;
1294
1294
  }
1295
- function Et(t, e) {
1295
+ function Ct(t, e) {
1296
1296
  var n = (
1297
1297
  /** @type {Effect} */
1298
1298
  ge
@@ -1301,12 +1301,12 @@ function Et(t, e) {
1301
1301
  }
1302
1302
  // @__NO_SIDE_EFFECTS__
1303
1303
  function I(t, e) {
1304
- var n = (e & Co) !== 0, r = (e & Io) !== 0, s, a = !t.startsWith("<!>");
1304
+ var n = (e & Eo) !== 0, r = (e & Io) !== 0, s, a = !t.startsWith("<!>");
1305
1305
  return () => {
1306
1306
  if (ve)
1307
- return Et(ke, null), ke;
1307
+ return Ct(ke, null), ke;
1308
1308
  s === void 0 && (s = Fs(a ? t : "<!>" + t), n || (s = /** @type {Node} */
1309
- /* @__PURE__ */ gt(s)));
1309
+ /* @__PURE__ */ mt(s)));
1310
1310
  var i = (
1311
1311
  /** @type {TemplateNode} */
1312
1312
  r ? document.importNode(s, !0) : s.cloneNode(!0)
@@ -1314,14 +1314,14 @@ function I(t, e) {
1314
1314
  if (n) {
1315
1315
  var o = (
1316
1316
  /** @type {TemplateNode} */
1317
- /* @__PURE__ */ gt(i)
1317
+ /* @__PURE__ */ mt(i)
1318
1318
  ), c = (
1319
1319
  /** @type {TemplateNode} */
1320
1320
  i.lastChild
1321
1321
  );
1322
- Et(o, c);
1322
+ Ct(o, c);
1323
1323
  } else
1324
- Et(i, i);
1324
+ Ct(i, i);
1325
1325
  return i;
1326
1326
  };
1327
1327
  }
@@ -1330,38 +1330,38 @@ function Sl(t, e, n = "svg") {
1330
1330
  var r = !t.startsWith("<!>"), s = `<${n}>${r ? t : "<!>" + t}</${n}>`, a;
1331
1331
  return () => {
1332
1332
  if (ve)
1333
- return Et(ke, null), ke;
1333
+ return Ct(ke, null), ke;
1334
1334
  if (!a) {
1335
1335
  var i = (
1336
1336
  /** @type {DocumentFragment} */
1337
1337
  Fs(s)
1338
1338
  ), o = (
1339
1339
  /** @type {Element} */
1340
- /* @__PURE__ */ gt(i)
1340
+ /* @__PURE__ */ mt(i)
1341
1341
  );
1342
1342
  a = /** @type {Element} */
1343
- /* @__PURE__ */ gt(o);
1343
+ /* @__PURE__ */ mt(o);
1344
1344
  }
1345
1345
  var c = (
1346
1346
  /** @type {TemplateNode} */
1347
1347
  a.cloneNode(!0)
1348
1348
  );
1349
- return Et(c, c), c;
1349
+ return Ct(c, c), c;
1350
1350
  };
1351
1351
  }
1352
1352
  function ar(t = "") {
1353
1353
  if (!ve) {
1354
1354
  var e = sn(t + "");
1355
- return Et(e, e), e;
1355
+ return Ct(e, e), e;
1356
1356
  }
1357
1357
  var n = ke;
1358
- return n.nodeType !== 3 && (n.before(n = sn()), kt(n)), Et(n, n), n;
1358
+ return n.nodeType !== 3 && (n.before(n = sn()), kt(n)), Ct(n, n), n;
1359
1359
  }
1360
1360
  function _t() {
1361
1361
  if (ve)
1362
- return Et(ke, null), ke;
1362
+ return Ct(ke, null), ke;
1363
1363
  var t = document.createDocumentFragment(), e = document.createComment(""), n = sn();
1364
- return t.append(e, n), Et(e, n), t;
1364
+ return t.append(e, n), Ct(e, n), t;
1365
1365
  }
1366
1366
  function T(t, e) {
1367
1367
  if (ve) {
@@ -1381,13 +1381,13 @@ function _e(t, e) {
1381
1381
  function zi(t, e) {
1382
1382
  return $i(t, e);
1383
1383
  }
1384
- function El(t, e) {
1384
+ function Cl(t, e) {
1385
1385
  is(), e.intro = e.intro ?? !1;
1386
1386
  const n = e.target, r = ve, s = ke;
1387
1387
  try {
1388
1388
  for (var a = (
1389
1389
  /** @type {TemplateNode} */
1390
- /* @__PURE__ */ gt(n)
1390
+ /* @__PURE__ */ mt(n)
1391
1391
  ); a && (a.nodeType !== 8 || /** @type {Comment} */
1392
1392
  a.data !== Ua); )
1393
1393
  a = /** @type {TemplateNode} */
@@ -1420,10 +1420,10 @@ function $i(t, { target: e, anchor: n, props: r = {}, events: s, context: a, int
1420
1420
  var h = f[p];
1421
1421
  if (!o.has(h)) {
1422
1422
  o.add(h);
1423
- var x = Oo(h);
1424
- e.addEventListener(h, Bn, { passive: x });
1423
+ var b = Oo(h);
1424
+ e.addEventListener(h, Bn, { passive: b });
1425
1425
  var _ = _n.get(h);
1426
- _ === void 0 ? (document.addEventListener(h, Bn, { passive: x }), _n.set(h, 1)) : _n.set(h, _ + 1);
1426
+ _ === void 0 ? (document.addEventListener(h, Bn, { passive: b }), _n.set(h, 1)) : _n.set(h, _ + 1);
1427
1427
  }
1428
1428
  }
1429
1429
  };
@@ -1435,17 +1435,17 @@ function $i(t, { target: e, anchor: n, props: r = {}, events: s, context: a, int
1435
1435
  le({});
1436
1436
  var p = (
1437
1437
  /** @type {ComponentContext} */
1438
- Ce
1438
+ Ee
1439
1439
  );
1440
1440
  p.c = a;
1441
1441
  }
1442
- s && (r.$$events = s), ve && Et(
1442
+ s && (r.$$events = s), ve && Ct(
1443
1443
  /** @type {TemplateNode} */
1444
1444
  f,
1445
1445
  null
1446
1446
  ), ds = i, l = t(f, r) || {}, ds = !0, ve && (ge.nodes_end = ke), a && ce();
1447
1447
  }), () => {
1448
- var x;
1448
+ var b;
1449
1449
  for (var p of o) {
1450
1450
  e.removeEventListener(p, Bn);
1451
1451
  var h = (
@@ -1454,13 +1454,13 @@ function $i(t, { target: e, anchor: n, props: r = {}, events: s, context: a, int
1454
1454
  );
1455
1455
  --h === 0 ? (document.removeEventListener(p, Bn), _n.delete(p)) : _n.set(p, h);
1456
1456
  }
1457
- us.delete(c), f !== n && ((x = f.parentNode) == null || x.removeChild(f));
1457
+ us.delete(c), f !== n && ((b = f.parentNode) == null || b.removeChild(f));
1458
1458
  };
1459
1459
  });
1460
1460
  return fs.set(l, u), l;
1461
1461
  }
1462
1462
  let fs = /* @__PURE__ */ new WeakMap();
1463
- function Cl(t, e) {
1463
+ function El(t, e) {
1464
1464
  const n = fs.get(t);
1465
1465
  return n ? (fs.delete(t), n(e)) : Promise.resolve();
1466
1466
  }
@@ -1473,11 +1473,11 @@ function ee(t, e, n = !1) {
1473
1473
  if (i === (i = f)) return;
1474
1474
  let h = !1;
1475
1475
  if (ve) {
1476
- const x = (
1476
+ const b = (
1477
1477
  /** @type {Comment} */
1478
1478
  r.data === $s
1479
1479
  );
1480
- !!i === x && (r = as(), kt(r), Jt(!1), h = !0);
1480
+ !!i === b && (r = as(), kt(r), Jt(!1), h = !0);
1481
1481
  }
1482
1482
  i ? (s ? _r(s) : p && (s = Tn(() => p(r))), a && wr(a, () => {
1483
1483
  a = null;
@@ -1523,7 +1523,7 @@ function st(t, e, n, r, s, a = null) {
1523
1523
  );
1524
1524
  i = ve ? kt(
1525
1525
  /** @type {Comment | Text} */
1526
- /* @__PURE__ */ gt(l)
1526
+ /* @__PURE__ */ mt(l)
1527
1527
  ) : l.appendChild(sn());
1528
1528
  }
1529
1529
  ve && $n();
@@ -1532,40 +1532,40 @@ function st(t, e, n, r, s, a = null) {
1532
1532
  return Ar(h) ? h : h == null ? [] : Ss(h);
1533
1533
  });
1534
1534
  Dr(() => {
1535
- var h = d(p), x = h.length;
1536
- if (f && x === 0)
1535
+ var h = d(p), b = h.length;
1536
+ if (f && b === 0)
1537
1537
  return;
1538
- f = x === 0;
1538
+ f = b === 0;
1539
1539
  let _ = !1;
1540
1540
  if (ve) {
1541
1541
  var y = (
1542
1542
  /** @type {Comment} */
1543
1543
  i.data === $s
1544
1544
  );
1545
- y !== (x === 0) && (i = as(), kt(i), Jt(!1), _ = !0);
1545
+ y !== (b === 0) && (i = as(), kt(i), Jt(!1), _ = !0);
1546
1546
  }
1547
1547
  if (ve) {
1548
- for (var b = null, w, $ = 0; $ < x; $++) {
1548
+ for (var x = null, w, $ = 0; $ < b; $++) {
1549
1549
  if (ke.nodeType === 8 && /** @type {Comment} */
1550
1550
  ke.data === Ts) {
1551
1551
  i = /** @type {Comment} */
1552
1552
  ke, _ = !0, Jt(!1);
1553
1553
  break;
1554
1554
  }
1555
- var L = h[$], S = r(L, $);
1555
+ var L = h[$], C = r(L, $);
1556
1556
  w = Ti(
1557
1557
  ke,
1558
1558
  o,
1559
- b,
1559
+ x,
1560
1560
  null,
1561
1561
  L,
1562
- S,
1562
+ C,
1563
1563
  $,
1564
1564
  s,
1565
1565
  e
1566
- ), o.items.set(S, w), b = w;
1566
+ ), o.items.set(C, w), x = w;
1567
1567
  }
1568
- x > 0 && kt(as());
1568
+ b > 0 && kt(as());
1569
1569
  }
1570
1570
  if (!ve) {
1571
1571
  var A = (
@@ -1582,19 +1582,19 @@ function st(t, e, n, r, s, a = null) {
1582
1582
  r
1583
1583
  );
1584
1584
  }
1585
- a !== null && (x === 0 ? u ? _r(u) : u = Tn(() => a(i)) : u !== null && wr(u, () => {
1585
+ a !== null && (b === 0 ? u ? _r(u) : u = Tn(() => a(i)) : u !== null && wr(u, () => {
1586
1586
  u = null;
1587
1587
  })), _ && Jt(!0), d(p);
1588
1588
  }), ve && (i = ke);
1589
1589
  }
1590
1590
  function Al(t, e, n, r, s, a, i, o) {
1591
1591
  var Je, Qe, at, ut;
1592
- var c = (s & wo) !== 0, l = (s & (ys | zs)) !== 0, u = t.length, f = e.items, p = e.first, h = p, x, _ = null, y, b = [], w = [], $, L, S, A;
1592
+ var c = (s & wo) !== 0, l = (s & (ys | zs)) !== 0, u = t.length, f = e.items, p = e.first, h = p, b, _ = null, y, x = [], w = [], $, L, C, A;
1593
1593
  if (c)
1594
1594
  for (A = 0; A < u; A += 1)
1595
- $ = t[A], L = i($, A), S = f.get(L), S !== void 0 && ((Je = S.a) == null || Je.measure(), (y ?? (y = /* @__PURE__ */ new Set())).add(S));
1595
+ $ = t[A], L = i($, A), C = f.get(L), C !== void 0 && ((Je = C.a) == null || Je.measure(), (y ?? (y = /* @__PURE__ */ new Set())).add(C));
1596
1596
  for (A = 0; A < u; A += 1) {
1597
- if ($ = t[A], L = i($, A), S = f.get(L), S === void 0) {
1597
+ if ($ = t[A], L = i($, A), C = f.get(L), C === void 0) {
1598
1598
  var R = h ? (
1599
1599
  /** @type {TemplateNode} */
1600
1600
  h.e.nodes_start
@@ -1609,34 +1609,34 @@ function Al(t, e, n, r, s, a, i, o) {
1609
1609
  A,
1610
1610
  r,
1611
1611
  s
1612
- ), f.set(L, _), b = [], w = [], h = _.next;
1612
+ ), f.set(L, _), x = [], w = [], h = _.next;
1613
1613
  continue;
1614
1614
  }
1615
- if (l && Ll(S, $, A, s), S.e.f & Dt && (_r(S.e), c && ((Qe = S.a) == null || Qe.unfix(), (y ?? (y = /* @__PURE__ */ new Set())).delete(S))), S !== h) {
1616
- if (x !== void 0 && x.has(S)) {
1617
- if (b.length < w.length) {
1615
+ if (l && Ll(C, $, A, s), C.e.f & Dt && (_r(C.e), c && ((Qe = C.a) == null || Qe.unfix(), (y ?? (y = /* @__PURE__ */ new Set())).delete(C))), C !== h) {
1616
+ if (b !== void 0 && b.has(C)) {
1617
+ if (x.length < w.length) {
1618
1618
  var N = w[0], H;
1619
1619
  _ = N.prev;
1620
- var de = b[0], Xe = b[b.length - 1];
1621
- for (H = 0; H < b.length; H += 1)
1622
- ca(b[H], N, n);
1620
+ var de = x[0], Xe = x[x.length - 1];
1621
+ for (H = 0; H < x.length; H += 1)
1622
+ ca(x[H], N, n);
1623
1623
  for (H = 0; H < w.length; H += 1)
1624
- x.delete(w[H]);
1625
- Qt(e, de.prev, Xe.next), Qt(e, _, de), Qt(e, Xe, N), h = N, _ = Xe, A -= 1, b = [], w = [];
1624
+ b.delete(w[H]);
1625
+ Qt(e, de.prev, Xe.next), Qt(e, _, de), Qt(e, Xe, N), h = N, _ = Xe, A -= 1, x = [], w = [];
1626
1626
  } else
1627
- x.delete(S), ca(S, h, n), Qt(e, S.prev, S.next), Qt(e, S, _ === null ? e.first : _.next), Qt(e, _, S), _ = S;
1627
+ b.delete(C), ca(C, h, n), Qt(e, C.prev, C.next), Qt(e, C, _ === null ? e.first : _.next), Qt(e, _, C), _ = C;
1628
1628
  continue;
1629
1629
  }
1630
- for (b = [], w = []; h !== null && h.k !== L; )
1631
- (a || !(h.e.f & Dt)) && (x ?? (x = /* @__PURE__ */ new Set())).add(h), w.push(h), h = h.next;
1630
+ for (x = [], w = []; h !== null && h.k !== L; )
1631
+ (a || !(h.e.f & Dt)) && (b ?? (b = /* @__PURE__ */ new Set())).add(h), w.push(h), h = h.next;
1632
1632
  if (h === null)
1633
1633
  continue;
1634
- S = h;
1634
+ C = h;
1635
1635
  }
1636
- b.push(S), _ = S, h = S.next;
1636
+ x.push(C), _ = C, h = C.next;
1637
1637
  }
1638
- if (h !== null || x !== void 0) {
1639
- for (var Te = x === void 0 ? [] : Ss(x); h !== null; )
1638
+ if (h !== null || b !== void 0) {
1639
+ for (var Te = b === void 0 ? [] : Ss(b); h !== null; )
1640
1640
  (a || !(h.e.f & Dt)) && Te.push(h), h = h.next;
1641
1641
  var Se = Te.length;
1642
1642
  if (Se > 0) {
@@ -1653,8 +1653,8 @@ function Al(t, e, n, r, s, a, i, o) {
1653
1653
  c && Ln(() => {
1654
1654
  var j;
1655
1655
  if (y !== void 0)
1656
- for (S of y)
1657
- (j = S.a) == null || j.apply();
1656
+ for (C of y)
1657
+ (j = C.a) == null || j.apply();
1658
1658
  }), ge.first = e.first && e.first.e, ge.last = _ && _.e;
1659
1659
  }
1660
1660
  function Ll(t, e, n, r) {
@@ -1665,7 +1665,7 @@ function Ll(t, e, n, r) {
1665
1665
  ) : t.i = n;
1666
1666
  }
1667
1667
  function Ti(t, e, n, r, s, a, i, o, c, l) {
1668
- var u = (c & ys) !== 0, f = (c & _o) === 0, p = u ? f ? /* @__PURE__ */ Rr(s) : ht(s) : s, h = c & zs ? ht(i) : i, x = {
1668
+ var u = (c & ys) !== 0, f = (c & _o) === 0, p = u ? f ? /* @__PURE__ */ Rr(s) : vt(s) : s, h = c & zs ? vt(i) : i, b = {
1669
1669
  i: h,
1670
1670
  v: p,
1671
1671
  k: a,
@@ -1676,7 +1676,7 @@ function Ti(t, e, n, r, s, a, i, o, c, l) {
1676
1676
  next: r
1677
1677
  };
1678
1678
  try {
1679
- return x.e = Tn(() => o(t, p, h), ve), x.e.prev = n && n.e, x.e.next = r && r.e, n === null ? e.first = x : (n.next = x, n.e.next = x.e), r !== null && (r.prev = x, r.e.prev = x.e), x;
1679
+ return b.e = Tn(() => o(t, p, h), ve), b.e.prev = n && n.e, b.e.next = r && r.e, n === null ? e.first = b : (n.next = b, n.e.next = b.e), r !== null && (r.prev = b, r.e.prev = b.e), b;
1680
1680
  } finally {
1681
1681
  }
1682
1682
  }
@@ -1717,23 +1717,23 @@ function ps(t, e, n, r, s) {
1717
1717
  /* @__PURE__ */ Vt(c);
1718
1718
  if (c === null)
1719
1719
  throw Fr(), kn;
1720
- Et(ke, l), a = kt(c);
1720
+ Ct(ke, l), a = kt(c);
1721
1721
  return;
1722
1722
  }
1723
1723
  var u = i + "";
1724
1724
  n && (u = `<svg>${u}</svg>`);
1725
1725
  var f = Fs(u);
1726
1726
  if ((n || r) && (f = /** @type {Element} */
1727
- /* @__PURE__ */ gt(f)), Et(
1727
+ /* @__PURE__ */ mt(f)), Ct(
1728
1728
  /** @type {TemplateNode} */
1729
- /* @__PURE__ */ gt(f),
1729
+ /* @__PURE__ */ mt(f),
1730
1730
  /** @type {TemplateNode} */
1731
1731
  f.lastChild
1732
1732
  ), n || r)
1733
- for (; /* @__PURE__ */ gt(f); )
1733
+ for (; /* @__PURE__ */ mt(f); )
1734
1734
  a.before(
1735
1735
  /** @type {Node} */
1736
- /* @__PURE__ */ gt(f)
1736
+ /* @__PURE__ */ mt(f)
1737
1737
  );
1738
1738
  else
1739
1739
  a.before(f);
@@ -1804,68 +1804,68 @@ function Dl(t, e) {
1804
1804
  }
1805
1805
  function B(t, e, n, r) {
1806
1806
  var s = t.__attributes ?? (t.__attributes = {});
1807
- ve && (s[e] = t.getAttribute(e), e === "src" || e === "srcset" || e === "href" && t.nodeName === "LINK") || s[e] !== (s[e] = n) && (e === "style" && "__styles" in t && (t.__styles = {}), e === "loading" && (t[Yo] = n), n == null ? t.removeAttribute(e) : typeof n != "string" && Ei(t).includes(e) ? t[e] = n : t.setAttribute(e, n));
1807
+ ve && (s[e] = t.getAttribute(e), e === "src" || e === "srcset" || e === "href" && t.nodeName === "LINK") || s[e] !== (s[e] = n) && (e === "style" && "__styles" in t && (t.__styles = {}), e === "loading" && (t[Yo] = n), n == null ? t.removeAttribute(e) : typeof n != "string" && Ci(t).includes(e) ? t[e] = n : t.setAttribute(e, n));
1808
1808
  }
1809
1809
  function ua(t, e, n, r, s = !1, a = !1, i = !1) {
1810
1810
  var o = e || {}, c = t.tagName === "OPTION";
1811
1811
  for (var l in e)
1812
1812
  l in n || (n[l] = null);
1813
1813
  n.class && (n.class = Nr(n.class));
1814
- var u = Ei(t), f = (
1814
+ var u = Ci(t), f = (
1815
1815
  /** @type {Record<string, unknown>} **/
1816
1816
  t.__attributes ?? (t.__attributes = {})
1817
1817
  );
1818
- for (const b in n) {
1819
- let w = n[b];
1820
- if (c && b === "value" && w == null) {
1821
- t.value = t.__value = "", o[b] = w;
1818
+ for (const x in n) {
1819
+ let w = n[x];
1820
+ if (c && x === "value" && w == null) {
1821
+ t.value = t.__value = "", o[x] = w;
1822
1822
  continue;
1823
1823
  }
1824
- var p = o[b];
1824
+ var p = o[x];
1825
1825
  if (w !== p) {
1826
- o[b] = w;
1827
- var h = b[0] + b[1];
1826
+ o[x] = w;
1827
+ var h = x[0] + x[1];
1828
1828
  if (h !== "$$") {
1829
1829
  if (h === "on") {
1830
- const $ = {}, L = "$$" + b;
1831
- let S = b.slice(2);
1832
- var x = jo(S);
1833
- if (Ao(S) && (S = S.slice(0, -7), $.capture = !0), !x && p) {
1830
+ const $ = {}, L = "$$" + x;
1831
+ let C = x.slice(2);
1832
+ var b = jo(C);
1833
+ if (Ao(C) && (C = C.slice(0, -7), $.capture = !0), !b && p) {
1834
1834
  if (w != null) continue;
1835
- t.removeEventListener(S, o[L], $), o[L] = null;
1835
+ t.removeEventListener(C, o[L], $), o[L] = null;
1836
1836
  }
1837
1837
  if (w != null)
1838
- if (x)
1839
- t[`__${S}`] = w, cn([S]);
1838
+ if (b)
1839
+ t[`__${C}`] = w, cn([C]);
1840
1840
  else {
1841
1841
  let A = function(R) {
1842
- o[b].call(this, R);
1842
+ o[x].call(this, R);
1843
1843
  };
1844
- o[L] = yi(S, t, A, $);
1844
+ o[L] = yi(C, t, A, $);
1845
1845
  }
1846
- else x && (t[`__${S}`] = void 0);
1847
- } else if (b === "style" && w != null)
1846
+ else b && (t[`__${C}`] = void 0);
1847
+ } else if (x === "style" && w != null)
1848
1848
  t.style.cssText = w + "";
1849
- else if (b === "autofocus")
1849
+ else if (x === "autofocus")
1850
1850
  $l(
1851
1851
  /** @type {HTMLElement} */
1852
1852
  t,
1853
1853
  !!w
1854
1854
  );
1855
- else if (b === "__value" || b === "value" && w != null)
1856
- t.value = t[b] = t.__value = w;
1857
- else if (b === "selected" && c)
1855
+ else if (x === "__value" || x === "value" && w != null)
1856
+ t.value = t[x] = t.__value = w;
1857
+ else if (x === "selected" && c)
1858
1858
  Dl(
1859
1859
  /** @type {HTMLOptionElement} */
1860
1860
  t,
1861
1861
  w
1862
1862
  );
1863
1863
  else {
1864
- var _ = b;
1864
+ var _ = x;
1865
1865
  s || (_ = Fo(_));
1866
1866
  var y = _ === "defaultValue" || _ === "defaultChecked";
1867
1867
  if (w == null && !a && !y)
1868
- if (f[b] = null, _ === "value" || _ === "checked") {
1868
+ if (f[x] = null, _ === "value" || _ === "checked") {
1869
1869
  let $ = (
1870
1870
  /** @type {HTMLInputElement} */
1871
1871
  t
@@ -1878,17 +1878,17 @@ function ua(t, e, n, r, s = !1, a = !1, i = !1) {
1878
1878
  $.removeAttribute(_), $.defaultChecked = L;
1879
1879
  }
1880
1880
  } else
1881
- t.removeAttribute(b);
1881
+ t.removeAttribute(x);
1882
1882
  else y || u.includes(_) && (a || typeof w != "string") ? t[_] = w : typeof w != "function" && (ve && (_ === "src" || _ === "href" || _ === "srcset") || B(t, _, w));
1883
1883
  }
1884
- b === "style" && "__styles" in t && (t.__styles = {});
1884
+ x === "style" && "__styles" in t && (t.__styles = {});
1885
1885
  }
1886
1886
  }
1887
1887
  }
1888
1888
  return o;
1889
1889
  }
1890
1890
  var da = /* @__PURE__ */ new Map();
1891
- function Ei(t) {
1891
+ function Ci(t) {
1892
1892
  var e = da.get(t.nodeName);
1893
1893
  if (e) return e;
1894
1894
  da.set(t.nodeName, e = []);
@@ -1896,7 +1896,7 @@ function Ei(t) {
1896
1896
  n = Ba(r);
1897
1897
  for (var a in n)
1898
1898
  n[a].set && e.push(a);
1899
- r = Es(r);
1899
+ r = Cs(r);
1900
1900
  }
1901
1901
  return e;
1902
1902
  }
@@ -1927,15 +1927,15 @@ const Pl = () => performance.now(), Gt = {
1927
1927
  now: () => Pl(),
1928
1928
  tasks: /* @__PURE__ */ new Set()
1929
1929
  };
1930
- function Ci() {
1930
+ function Ei() {
1931
1931
  const t = Gt.now();
1932
1932
  Gt.tasks.forEach((e) => {
1933
1933
  e.c(t) || (Gt.tasks.delete(e), e.f());
1934
- }), Gt.tasks.size !== 0 && Gt.tick(Ci);
1934
+ }), Gt.tasks.size !== 0 && Gt.tick(Ei);
1935
1935
  }
1936
1936
  function Ml(t) {
1937
1937
  let e;
1938
- return Gt.tasks.size === 0 && Gt.tick(Ci), {
1938
+ return Gt.tasks.size === 0 && Gt.tick(Ei), {
1939
1939
  promise: new Promise((n) => {
1940
1940
  Gt.tasks.add(e = { c: t, f: n });
1941
1941
  }),
@@ -1969,17 +1969,17 @@ function fa(t) {
1969
1969
  }
1970
1970
  const Ul = (t) => t;
1971
1971
  function $t(t, e, n, r) {
1972
- var s = (t & To) !== 0, a = (t & So) !== 0, i = s && a, o = (t & Eo) !== 0, c = i ? "both" : s ? "in" : "out", l, u = e.inert, f = e.style.overflow, p, h;
1973
- function x() {
1972
+ var s = (t & To) !== 0, a = (t & So) !== 0, i = s && a, o = (t & Co) !== 0, c = i ? "both" : s ? "in" : "out", l, u = e.inert, f = e.style.overflow, p, h;
1973
+ function b() {
1974
1974
  var $ = Ie, L = ge;
1975
- Mt(null), Ct(null);
1975
+ Mt(null), Et(null);
1976
1976
  try {
1977
1977
  return l ?? (l = n()(e, (r == null ? void 0 : r()) ?? /** @type {P} */
1978
1978
  {}, {
1979
1979
  direction: c
1980
1980
  }));
1981
1981
  } finally {
1982
- Mt($), Ct(L);
1982
+ Mt($), Et(L);
1983
1983
  }
1984
1984
  }
1985
1985
  var _ = {
@@ -1990,7 +1990,7 @@ function $t(t, e, n, r) {
1990
1990
  h == null || h.abort(), ($ = h == null ? void 0 : h.reset) == null || $.call(h);
1991
1991
  return;
1992
1992
  }
1993
- a || p == null || p.abort(), ir(e, "introstart"), p = hs(e, x(), h, 1, () => {
1993
+ a || p == null || p.abort(), ir(e, "introstart"), p = hs(e, b(), h, 1, () => {
1994
1994
  ir(e, "introend"), p == null || p.abort(), p = l = void 0, e.style.overflow = f;
1995
1995
  });
1996
1996
  },
@@ -1999,7 +1999,7 @@ function $t(t, e, n, r) {
1999
1999
  $ == null || $(), l = void 0;
2000
2000
  return;
2001
2001
  }
2002
- e.inert = !0, ir(e, "outrostart"), h = hs(e, x(), p, 0, () => {
2002
+ e.inert = !0, ir(e, "outrostart"), h = hs(e, b(), p, 0, () => {
2003
2003
  ir(e, "outroend"), $ == null || $();
2004
2004
  });
2005
2005
  },
@@ -2011,17 +2011,17 @@ function $t(t, e, n, r) {
2011
2011
  ge
2012
2012
  );
2013
2013
  if ((y.transitions ?? (y.transitions = [])).push(_), s && ds) {
2014
- var b = o;
2015
- if (!b) {
2014
+ var x = o;
2015
+ if (!x) {
2016
2016
  for (var w = (
2017
2017
  /** @type {Effect | null} */
2018
2018
  y.parent
2019
2019
  ); w && w.f & jr; )
2020
2020
  for (; (w = w.parent) && !(w.f & Lr); )
2021
2021
  ;
2022
- b = !w || (w.f & Ha) !== 0;
2022
+ x = !w || (w.f & Ha) !== 0;
2023
2023
  }
2024
- b && In(() => {
2024
+ x && In(() => {
2025
2025
  Nt(() => _.in());
2026
2026
  });
2027
2027
  }
@@ -2057,36 +2057,36 @@ function hs(t, e, n, r, s) {
2057
2057
  var h = fa(l(0, 1));
2058
2058
  p.push(h, h);
2059
2059
  }
2060
- var x = () => 1 - r, _ = t.animate(p, { duration: c });
2060
+ var b = () => 1 - r, _ = t.animate(p, { duration: c });
2061
2061
  return _.onfinish = () => {
2062
2062
  var y = (n == null ? void 0 : n.t()) ?? 1 - r;
2063
2063
  n == null || n.abort();
2064
- var b = r - y, w = (
2064
+ var x = r - y, w = (
2065
2065
  /** @type {number} */
2066
- e.duration * Math.abs(b)
2066
+ e.duration * Math.abs(x)
2067
2067
  ), $ = [];
2068
2068
  if (w > 0) {
2069
2069
  var L = !1;
2070
2070
  if (l)
2071
- for (var S = Math.ceil(w / 16.666666666666668), A = 0; A <= S; A += 1) {
2072
- var R = y + b * f(A / S), N = fa(l(R, 1 - R));
2071
+ for (var C = Math.ceil(w / 16.666666666666668), A = 0; A <= C; A += 1) {
2072
+ var R = y + x * f(A / C), N = fa(l(R, 1 - R));
2073
2073
  $.push(N), L || (L = N.overflow === "hidden");
2074
2074
  }
2075
- L && (t.style.overflow = "hidden"), x = () => {
2075
+ L && (t.style.overflow = "hidden"), b = () => {
2076
2076
  var H = (
2077
2077
  /** @type {number} */
2078
2078
  /** @type {globalThis.Animation} */
2079
2079
  _.currentTime
2080
2080
  );
2081
- return y + b * f(H / w);
2081
+ return y + x * f(H / w);
2082
2082
  }, u && Ml(() => {
2083
2083
  if (_.playState !== "running") return !1;
2084
- var H = x();
2084
+ var H = b();
2085
2085
  return u(H, 1 - H), !0;
2086
2086
  });
2087
2087
  }
2088
2088
  _ = t.animate($, { duration: w, fill: "forwards" }), _.onfinish = () => {
2089
- x = () => r, u == null || u(r, 1 - r), s();
2089
+ b = () => r, u == null || u(r, 1 - r), s();
2090
2090
  };
2091
2091
  }, {
2092
2092
  abort: () => {
@@ -2098,7 +2098,7 @@ function hs(t, e, n, r, s) {
2098
2098
  reset: () => {
2099
2099
  r === 0 && (u == null || u(1, 0));
2100
2100
  },
2101
- t: () => x()
2101
+ t: () => b()
2102
2102
  };
2103
2103
  }
2104
2104
  function Bl(t, e, n = e) {
@@ -2203,10 +2203,10 @@ function vs(t = {}, e, n, r) {
2203
2203
  };
2204
2204
  }), t;
2205
2205
  }
2206
- function mt(t = !1) {
2206
+ function bt(t = !1) {
2207
2207
  const e = (
2208
2208
  /** @type {ComponentContextLegacy} */
2209
- Ce
2209
+ Ee
2210
2210
  ), n = e.l.u;
2211
2211
  if (!n) return;
2212
2212
  let r = () => Rn(e.s);
@@ -2242,7 +2242,7 @@ function ha(t, e) {
2242
2242
  e();
2243
2243
  }
2244
2244
  function Ur(t) {
2245
- Ce === null && js(), Cn && Ce.l !== null ? Wl(Ce).m.push(t) : Lt(() => {
2245
+ Ee === null && js(), En && Ee.l !== null ? Wl(Ee).m.push(t) : Lt(() => {
2246
2246
  const e = Nt(t);
2247
2247
  if (typeof e == "function") return (
2248
2248
  /** @type {() => void} */
@@ -2251,13 +2251,13 @@ function Ur(t) {
2251
2251
  });
2252
2252
  }
2253
2253
  function Yl(t) {
2254
- Ce === null && js(), Ur(() => () => Nt(t));
2254
+ Ee === null && js(), Ur(() => () => Nt(t));
2255
2255
  }
2256
2256
  function Gl(t, e, { bubbles: n = !1, cancelable: r = !1 } = {}) {
2257
2257
  return new CustomEvent(t, { detail: e, bubbles: n, cancelable: r });
2258
2258
  }
2259
2259
  function Jl() {
2260
- const t = Ce;
2260
+ const t = Ee;
2261
2261
  return t === null && js(), (e, n, r) => {
2262
2262
  var a;
2263
2263
  const s = (
@@ -2333,20 +2333,20 @@ const Xl = {
2333
2333
  }
2334
2334
  };
2335
2335
  function Vl(t, e) {
2336
- return new Proxy({ props: t, exclude: e, special: {}, version: ht(0) }, Xl);
2336
+ return new Proxy({ props: t, exclude: e, special: {}, version: vt(0) }, Xl);
2337
2337
  }
2338
2338
  function va(t) {
2339
2339
  for (var e = ge, n = ge; e !== null && !(e.f & (Ut | gn)); )
2340
2340
  e = e.parent;
2341
2341
  try {
2342
- return Ct(e), t();
2342
+ return Et(e), t();
2343
2343
  } finally {
2344
- Ct(n);
2344
+ Et(n);
2345
2345
  }
2346
2346
  }
2347
2347
  function g(t, e, n, r) {
2348
2348
  var R;
2349
- var s = (n & ko) !== 0, a = !Cn || (n & yo) !== 0, i = (n & zo) !== 0, o = (n & $o) !== 0, c = !1, l;
2349
+ var s = (n & ko) !== 0, a = !En || (n & yo) !== 0, i = (n & zo) !== 0, o = (n & $o) !== 0, c = !1, l;
2350
2350
  i ? [l, c] = Zl(() => (
2351
2351
  /** @type {V} */
2352
2352
  t[e]
@@ -2355,7 +2355,7 @@ function g(t, e, n, r) {
2355
2355
  var u = Zt in t || Ga in t, f = i && (((R = fn(t, e)) == null ? void 0 : R.set) ?? (u && e in t && ((N) => t[e] = N))) || void 0, p = (
2356
2356
  /** @type {V} */
2357
2357
  r
2358
- ), h = !0, x = !1, _ = () => (x = !0, h && (h = !1, o ? p = Nt(
2358
+ ), h = !0, b = !1, _ = () => (b = !0, h && (h = !1, o ? p = Nt(
2359
2359
  /** @type {() => V} */
2360
2360
  r
2361
2361
  ) : p = /** @type {V} */
@@ -2368,17 +2368,17 @@ function g(t, e, n, r) {
2368
2368
  /** @type {V} */
2369
2369
  t[e]
2370
2370
  );
2371
- return N === void 0 ? _() : (h = !0, x = !1, N);
2371
+ return N === void 0 ? _() : (h = !0, b = !1, N);
2372
2372
  };
2373
2373
  else {
2374
- var b = va(
2374
+ var x = va(
2375
2375
  () => (s ? He : Qa)(() => (
2376
2376
  /** @type {V} */
2377
2377
  t[e]
2378
2378
  ))
2379
2379
  );
2380
- b.f |= qo, y = () => {
2381
- var N = d(b);
2380
+ x.f |= qo, y = () => {
2381
+ var N = d(x);
2382
2382
  return N !== void 0 && (p = /** @type {V} */
2383
2383
  void 0), N === void 0 ? p : N;
2384
2384
  };
@@ -2391,16 +2391,16 @@ function g(t, e, n, r) {
2391
2391
  return arguments.length > 0 ? ((!a || !H || w || c) && f(H ? y() : N), N) : y();
2392
2392
  };
2393
2393
  }
2394
- var $ = !1, L = !1, S = /* @__PURE__ */ Rr(l), A = va(
2394
+ var $ = !1, L = !1, C = /* @__PURE__ */ Rr(l), A = va(
2395
2395
  () => /* @__PURE__ */ He(() => {
2396
- var N = y(), H = d(S);
2397
- return $ ? ($ = !1, L = !0, H) : (L = !1, S.v = N);
2396
+ var N = y(), H = d(C);
2397
+ return $ ? ($ = !1, L = !0, H) : (L = !1, C.v = N);
2398
2398
  })
2399
2399
  );
2400
- return s || (A.equals = Cs), function(N, H) {
2400
+ return s || (A.equals = Es), function(N, H) {
2401
2401
  if (arguments.length > 0) {
2402
- const de = H ? d(A) : a && i ? E(N) : N;
2403
- return A.equals(de) || ($ = !0, m(S, de), x && p !== void 0 && (p = de), Nt(() => d(A))), N;
2402
+ const de = H ? d(A) : a && i ? S(N) : N;
2403
+ return A.equals(de) || ($ = !0, m(C, de), b && p !== void 0 && (p = de), Nt(() => d(A))), N;
2404
2404
  }
2405
2405
  return d(A);
2406
2406
  };
@@ -2439,7 +2439,7 @@ class Kl {
2439
2439
  }
2440
2440
  }
2441
2441
  );
2442
- Zr(this, zt, (e.hydrate ? El : zi)(e.component, {
2442
+ Zr(this, zt, (e.hydrate ? Cl : zi)(e.component, {
2443
2443
  target: e.target,
2444
2444
  anchor: e.anchor,
2445
2445
  props: s,
@@ -2462,7 +2462,7 @@ class Kl {
2462
2462
  (i) => {
2463
2463
  Object.assign(s, i);
2464
2464
  }, ft(this, zt).$destroy = () => {
2465
- Cl(ft(this, zt));
2465
+ El(ft(this, zt));
2466
2466
  };
2467
2467
  }
2468
2468
  /** @param {Record<string, any>} props */
@@ -2499,25 +2499,25 @@ typeof HTMLElement == "function" && (Li = class extends HTMLElement {
2499
2499
  constructor(e, n, r) {
2500
2500
  super();
2501
2501
  /** The Svelte component constructor */
2502
- C(this, "$$ctor");
2502
+ E(this, "$$ctor");
2503
2503
  /** Slots */
2504
- C(this, "$$s");
2504
+ E(this, "$$s");
2505
2505
  /** @type {any} The Svelte component instance */
2506
- C(this, "$$c");
2506
+ E(this, "$$c");
2507
2507
  /** Whether or not the custom element is connected */
2508
- C(this, "$$cn", !1);
2508
+ E(this, "$$cn", !1);
2509
2509
  /** @type {Record<string, any>} Component props data */
2510
- C(this, "$$d", {});
2510
+ E(this, "$$d", {});
2511
2511
  /** `true` if currently in the process of reflecting component props back to attributes */
2512
- C(this, "$$r", !1);
2512
+ E(this, "$$r", !1);
2513
2513
  /** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
2514
- C(this, "$$p_d", {});
2514
+ E(this, "$$p_d", {});
2515
2515
  /** @type {Record<string, EventListenerOrEventListenerObject[]>} Event listeners */
2516
- C(this, "$$l", {});
2516
+ E(this, "$$l", {});
2517
2517
  /** @type {Map<EventListenerOrEventListenerObject, Function>} Event listener unsubscribe functions */
2518
- C(this, "$$l_u", /* @__PURE__ */ new Map());
2518
+ E(this, "$$l_u", /* @__PURE__ */ new Map());
2519
2519
  /** @type {any} The managed render effect for reflecting attributes */
2520
- C(this, "$$me");
2520
+ E(this, "$$me");
2521
2521
  this.$$ctor = e, this.$$s = n, r && this.attachShadow({ mode: "open" });
2522
2522
  }
2523
2523
  /**
@@ -2719,23 +2719,23 @@ function Wt(t, { delay: e = 0, duration: n = 400, easing: r = tc } = {}) {
2719
2719
  };
2720
2720
  }
2721
2721
  function nc(t, { delay: e = 0, duration: n = 400, easing: r = Ds, x: s = 0, y: a = 0, opacity: i = 0 } = {}) {
2722
- const o = getComputedStyle(t), c = +o.opacity, l = o.transform === "none" ? "" : o.transform, u = c * (1 - i), [f, p] = ga(s), [h, x] = ga(a);
2722
+ const o = getComputedStyle(t), c = +o.opacity, l = o.transform === "none" ? "" : o.transform, u = c * (1 - i), [f, p] = ga(s), [h, b] = ga(a);
2723
2723
  return {
2724
2724
  delay: e,
2725
2725
  duration: n,
2726
2726
  easing: r,
2727
2727
  css: (_, y) => `
2728
- transform: ${l} translate(${(1 - _) * f}${p}, ${(1 - _) * h}${x});
2728
+ transform: ${l} translate(${(1 - _) * f}${p}, ${(1 - _) * h}${b});
2729
2729
  opacity: ${c - u * y}`
2730
2730
  };
2731
2731
  }
2732
2732
  function rc(t, { delay: e = 0, duration: n = 400, easing: r = Ds, axis: s = "y" } = {}) {
2733
2733
  const a = getComputedStyle(t), i = +a.opacity, o = s === "y" ? "height" : "width", c = parseFloat(a[o]), l = s === "y" ? ["top", "bottom"] : ["left", "right"], u = l.map(
2734
- (b) => (
2734
+ (x) => (
2735
2735
  /** @type {'Left' | 'Right' | 'Top' | 'Bottom'} */
2736
- `${b[0].toUpperCase()}${b.slice(1)}`
2736
+ `${x[0].toUpperCase()}${x.slice(1)}`
2737
2737
  )
2738
- ), f = parseFloat(a[`padding${u[0]}`]), p = parseFloat(a[`padding${u[1]}`]), h = parseFloat(a[`margin${u[0]}`]), x = parseFloat(a[`margin${u[1]}`]), _ = parseFloat(
2738
+ ), f = parseFloat(a[`padding${u[0]}`]), p = parseFloat(a[`padding${u[1]}`]), h = parseFloat(a[`margin${u[0]}`]), b = parseFloat(a[`margin${u[1]}`]), _ = parseFloat(
2739
2739
  a[`border${u[0]}Width`]
2740
2740
  ), y = parseFloat(
2741
2741
  a[`border${u[1]}Width`]
@@ -2744,7 +2744,7 @@ function rc(t, { delay: e = 0, duration: n = 400, easing: r = Ds, axis: s = "y"
2744
2744
  delay: e,
2745
2745
  duration: n,
2746
2746
  easing: r,
2747
- css: (b) => `overflow: hidden;opacity: ${Math.min(b * 20, 1) * i};${o}: ${b * c}px;padding-${l[0]}: ${b * f}px;padding-${l[1]}: ${b * p}px;margin-${l[0]}: ${b * h}px;margin-${l[1]}: ${b * x}px;border-${l[0]}-width: ${b * _}px;border-${l[1]}-width: ${b * y}px;min-${o}: 0`
2747
+ css: (x) => `overflow: hidden;opacity: ${Math.min(x * 20, 1) * i};${o}: ${x * c}px;padding-${l[0]}: ${x * f}px;padding-${l[1]}: ${x * p}px;margin-${l[0]}: ${x * h}px;margin-${l[1]}: ${x * b}px;border-${l[0]}-width: ${x * _}px;border-${l[1]}-width: ${x * y}px;min-${o}: 0`
2748
2748
  };
2749
2749
  }
2750
2750
  function sc(t, { delay: e = 0, duration: n = 400, easing: r = Ds, start: s = 0, opacity: a = 0 } = {}) {
@@ -2761,12 +2761,12 @@ function sc(t, { delay: e = 0, duration: n = 400, easing: r = Ds, start: s = 0,
2761
2761
  }
2762
2762
  class tn {
2763
2763
  constructor(e, n, r, s = "", a = [], i) {
2764
- C(this, "timeStamp");
2765
- C(this, "sentByUser");
2766
- C(this, "content");
2767
- C(this, "html");
2768
- C(this, "attachments");
2769
- C(this, "agentUsed");
2764
+ E(this, "timeStamp");
2765
+ E(this, "sentByUser");
2766
+ E(this, "content");
2767
+ E(this, "html");
2768
+ E(this, "attachments");
2769
+ E(this, "agentUsed");
2770
2770
  this.timeStamp = e, this.sentByUser = n, this.content = r, this.html = s, this.attachments = a, this.agentUsed = i;
2771
2771
  }
2772
2772
  toJson() {
@@ -2829,12 +2829,12 @@ class tn {
2829
2829
  }
2830
2830
  class Os {
2831
2831
  constructor(e, n, r, s, a, i = "Documento Comune") {
2832
- C(this, "filename");
2833
- C(this, "external_id");
2834
- C(this, "path");
2835
- C(this, "gendoc_id");
2836
- C(this, "isCommon");
2837
- C(this, "commonType");
2832
+ E(this, "filename");
2833
+ E(this, "external_id");
2834
+ E(this, "path");
2835
+ E(this, "gendoc_id");
2836
+ E(this, "isCommon");
2837
+ E(this, "commonType");
2838
2838
  this.filename = e, this.external_id = n, this.path = r, this.gendoc_id = s, this.isCommon = a, this.commonType = i;
2839
2839
  }
2840
2840
  toJson() {
@@ -2853,13 +2853,13 @@ class Os {
2853
2853
  }
2854
2854
  class pn {
2855
2855
  constructor(e, n, r, s = "New chat", a = { blockChat: !1, unread: !1, lockedAgentId: null, pendingAction: null, info: [] }, i = [], o = 0) {
2856
- C(this, "_id");
2857
- C(this, "companyId");
2858
- C(this, "userId");
2859
- C(this, "title");
2860
- C(this, "state");
2861
- C(this, "messages");
2862
- C(this, "lastUpdate");
2856
+ E(this, "_id");
2857
+ E(this, "companyId");
2858
+ E(this, "userId");
2859
+ E(this, "title");
2860
+ E(this, "state");
2861
+ E(this, "messages");
2862
+ E(this, "lastUpdate");
2863
2863
  this._id = e, this.companyId = n, this.userId = r, this.title = s, this.state = a, this.messages = i, this.lastUpdate = o;
2864
2864
  }
2865
2865
  toJson() {
@@ -2897,7 +2897,7 @@ function ma(t) {
2897
2897
  function lc(t) {
2898
2898
  return ic.includes(t);
2899
2899
  }
2900
- const cc = /* @__NO_SIDE_EFFECTS__ */ () => "Assistente AI", uc = /* @__NO_SIDE_EFFECTS__ */ () => "Scrivi un messaggio...", dc = /* @__NO_SIDE_EFFECTS__ */ () => "Aggiungi allegato", fc = /* @__NO_SIDE_EFFECTS__ */ () => "Normative", pc = /* @__NO_SIDE_EFFECTS__ */ () => "Normativa", hc = /* @__NO_SIDE_EFFECTS__ */ () => "Scegli", vc = /* @__NO_SIDE_EFFECTS__ */ () => "Carica file", gc = /* @__NO_SIDE_EFFECTS__ */ () => "Documento Comune", mc = /* @__NO_SIDE_EFFECTS__ */ () => "Interrompi registrazione", bc = /* @__NO_SIDE_EFFECTS__ */ () => "Inizia registrazione", xc = /* @__NO_SIDE_EFFECTS__ */ () => "Invia messaggio", wc = /* @__NO_SIDE_EFFECTS__ */ (t) => `Sei sicuro di voler eliminare la chat: ${t.chatTitle}?`, _c = /* @__NO_SIDE_EFFECTS__ */ () => "Nuova Chat", kc = /* @__NO_SIDE_EFFECTS__ */ () => "Cronologia", yc = /* @__NO_SIDE_EFFECTS__ */ () => "Attiva volume", zc = /* @__NO_SIDE_EFFECTS__ */ () => "Disattiva volume", $c = /* @__NO_SIDE_EFFECTS__ */ () => "Mostra cronologia", Tc = /* @__NO_SIDE_EFFECTS__ */ () => "Chiudi", Sc = /* @__NO_SIDE_EFFECTS__ */ () => "Fonti", Ec = /* @__NO_SIDE_EFFECTS__ */ () => "Visualizza allegato", Cc = /* @__NO_SIDE_EFFECTS__ */ () => "Cerca", Ic = /* @__NO_SIDE_EFFECTS__ */ () => "Documenti", Ac = /* @__NO_SIDE_EFFECTS__ */ () => "Ricerca in corso...", Lc = /* @__NO_SIDE_EFFECTS__ */ () => "Inserisci almeno 3 caratteri per iniziare la ricerca", jc = /* @__NO_SIDE_EFFECTS__ */ () => "Nessuna normativa trovata", Rc = /* @__NO_SIDE_EFFECTS__ */ () => "Nessun documento trovato", Fc = /* @__NO_SIDE_EFFECTS__ */ () => "Riproduci", Dc = /* @__NO_SIDE_EFFECTS__ */ () => "Pausa", Oc = /* @__NO_SIDE_EFFECTS__ */ () => "Errore durante l'invio del messaggio. Riprova.", Pc = /* @__NO_SIDE_EFFECTS__ */ () => "Nessuna chat attiva. Crea una nuova chat per iniziare.", Mc = /* @__NO_SIDE_EFFECTS__ */ () => "Errore durante il caricamento del nome utente.", Nc = /* @__NO_SIDE_EFFECTS__ */ () => "Manuale Suite", Uc = /* @__NO_SIDE_EFFECTS__ */ () => "Ferma", Bc = /* @__NO_SIDE_EFFECTS__ */ () => "Copia elenco fonti", qc = /* @__NO_SIDE_EFFECTS__ */ () => "Fonti copiate!", Hc = /* @__NO_SIDE_EFFECTS__ */ () => "Copia", Yc = /* @__NO_SIDE_EFFECTS__ */ () => "Copiato!", Gc = /* @__NO_SIDE_EFFECTS__ */ (t) => `Hai raggiunto il numero massimo di ${t.count} allegati consentiti.`, Jc = /* @__NO_SIDE_EFFECTS__ */ () => "Nessun gendoc trovato", Wc = /* @__NO_SIDE_EFFECTS__ */ () => "Nessuna trascrizione trovata", Zc = /* @__NO_SIDE_EFFECTS__ */ () => "Trascina i file qui", Xc = /* @__NO_SIDE_EFFECTS__ */ () => "Caricamento in corso...", Vc = /* @__NO_SIDE_EFFECTS__ */ () => "Operazione in corso... Non è possibile inviare messaggi in questa chat fino al completamento.", Qc = /* @__NO_SIDE_EFFECTS__ */ () => "AI Assistant", Kc = /* @__NO_SIDE_EFFECTS__ */ () => "Type your message here...", eu = /* @__NO_SIDE_EFFECTS__ */ () => "Add attachment", tu = /* @__NO_SIDE_EFFECTS__ */ () => "Normatives", nu = /* @__NO_SIDE_EFFECTS__ */ () => "Normative", ru = /* @__NO_SIDE_EFFECTS__ */ () => "Choose", su = /* @__NO_SIDE_EFFECTS__ */ () => "Upload file", au = /* @__NO_SIDE_EFFECTS__ */ () => "Common Document", iu = /* @__NO_SIDE_EFFECTS__ */ () => "Stop recording", ou = /* @__NO_SIDE_EFFECTS__ */ () => "Start recording", lu = /* @__NO_SIDE_EFFECTS__ */ () => "Send message", cu = /* @__NO_SIDE_EFFECTS__ */ (t) => `Are you sure you want to delete the chat: ${t.chatTitle}?`, uu = /* @__NO_SIDE_EFFECTS__ */ () => "New Chat", du = /* @__NO_SIDE_EFFECTS__ */ () => "History", fu = /* @__NO_SIDE_EFFECTS__ */ () => "Unmute", pu = /* @__NO_SIDE_EFFECTS__ */ () => "Mute", hu = /* @__NO_SIDE_EFFECTS__ */ () => "Show history", vu = /* @__NO_SIDE_EFFECTS__ */ () => "Close", gu = /* @__NO_SIDE_EFFECTS__ */ () => "Sources", mu = /* @__NO_SIDE_EFFECTS__ */ () => "View attachment", bu = /* @__NO_SIDE_EFFECTS__ */ () => "Search", xu = /* @__NO_SIDE_EFFECTS__ */ () => "Documents", wu = /* @__NO_SIDE_EFFECTS__ */ () => "Search in progress...", _u = /* @__NO_SIDE_EFFECTS__ */ () => "Please enter at least 3 characters to start the search", ku = /* @__NO_SIDE_EFFECTS__ */ () => "No normative found", yu = /* @__NO_SIDE_EFFECTS__ */ () => "No document found", zu = /* @__NO_SIDE_EFFECTS__ */ () => "Play", $u = /* @__NO_SIDE_EFFECTS__ */ () => "Pause", Tu = /* @__NO_SIDE_EFFECTS__ */ () => "Error sending message. Please try again.", Su = /* @__NO_SIDE_EFFECTS__ */ () => "No active chat. Please create a new chat to get started.", Eu = /* @__NO_SIDE_EFFECTS__ */ () => "Error loading username.", Cu = /* @__NO_SIDE_EFFECTS__ */ () => "Suite Manual", Iu = /* @__NO_SIDE_EFFECTS__ */ () => "Stop", Au = /* @__NO_SIDE_EFFECTS__ */ () => "Copy sources list", Lu = /* @__NO_SIDE_EFFECTS__ */ () => "Sources copied!", ju = /* @__NO_SIDE_EFFECTS__ */ () => "Copy", Ru = /* @__NO_SIDE_EFFECTS__ */ () => "Copied!", Fu = /* @__NO_SIDE_EFFECTS__ */ (t) => `You have reached the maximum number of ${t.count} attachments allowed.`, Du = /* @__NO_SIDE_EFFECTS__ */ () => "No gendoc found", Ou = /* @__NO_SIDE_EFFECTS__ */ () => "No transcription found", Pu = /* @__NO_SIDE_EFFECTS__ */ () => "Drop files here", Mu = /* @__NO_SIDE_EFFECTS__ */ () => "Uploading...", Nu = /* @__NO_SIDE_EFFECTS__ */ () => "Operation in progress... You cannot send messages in this chat until completion.", Uu = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
2900
+ const cc = /* @__NO_SIDE_EFFECTS__ */ () => "Assistente AI", uc = /* @__NO_SIDE_EFFECTS__ */ () => "Scrivi un messaggio...", dc = /* @__NO_SIDE_EFFECTS__ */ () => "Aggiungi allegato", fc = /* @__NO_SIDE_EFFECTS__ */ () => "Normative", pc = /* @__NO_SIDE_EFFECTS__ */ () => "Normativa", hc = /* @__NO_SIDE_EFFECTS__ */ () => "Scegli", vc = /* @__NO_SIDE_EFFECTS__ */ () => "Carica file", gc = /* @__NO_SIDE_EFFECTS__ */ () => "Documento Comune", mc = /* @__NO_SIDE_EFFECTS__ */ () => "Interrompi registrazione", bc = /* @__NO_SIDE_EFFECTS__ */ () => "Inizia registrazione", xc = /* @__NO_SIDE_EFFECTS__ */ () => "Invia messaggio", wc = /* @__NO_SIDE_EFFECTS__ */ (t) => `Sei sicuro di voler eliminare la chat: ${t.chatTitle}?`, _c = /* @__NO_SIDE_EFFECTS__ */ () => "Nuova Chat", kc = /* @__NO_SIDE_EFFECTS__ */ () => "Cronologia", yc = /* @__NO_SIDE_EFFECTS__ */ () => "Attiva volume", zc = /* @__NO_SIDE_EFFECTS__ */ () => "Disattiva volume", $c = /* @__NO_SIDE_EFFECTS__ */ () => "Mostra cronologia", Tc = /* @__NO_SIDE_EFFECTS__ */ () => "Chiudi", Sc = /* @__NO_SIDE_EFFECTS__ */ () => "Fonti", Cc = /* @__NO_SIDE_EFFECTS__ */ () => "Visualizza allegato", Ec = /* @__NO_SIDE_EFFECTS__ */ () => "Cerca", Ic = /* @__NO_SIDE_EFFECTS__ */ () => "Documenti", Ac = /* @__NO_SIDE_EFFECTS__ */ () => "Ricerca in corso...", Lc = /* @__NO_SIDE_EFFECTS__ */ () => "Inserisci almeno 3 caratteri per iniziare la ricerca", jc = /* @__NO_SIDE_EFFECTS__ */ () => "Nessuna normativa trovata", Rc = /* @__NO_SIDE_EFFECTS__ */ () => "Nessun documento trovato", Fc = /* @__NO_SIDE_EFFECTS__ */ () => "Riproduci", Dc = /* @__NO_SIDE_EFFECTS__ */ () => "Pausa", Oc = /* @__NO_SIDE_EFFECTS__ */ () => "Errore durante l'invio del messaggio. Riprova.", Pc = /* @__NO_SIDE_EFFECTS__ */ () => "Nessuna chat attiva. Crea una nuova chat per iniziare.", Mc = /* @__NO_SIDE_EFFECTS__ */ () => "Errore durante il caricamento del nome utente.", Nc = /* @__NO_SIDE_EFFECTS__ */ () => "Manuale Suite", Uc = /* @__NO_SIDE_EFFECTS__ */ () => "Ferma", Bc = /* @__NO_SIDE_EFFECTS__ */ () => "Copia elenco fonti", qc = /* @__NO_SIDE_EFFECTS__ */ () => "Fonti copiate!", Hc = /* @__NO_SIDE_EFFECTS__ */ () => "Copia", Yc = /* @__NO_SIDE_EFFECTS__ */ () => "Copiato!", Gc = /* @__NO_SIDE_EFFECTS__ */ (t) => `Hai raggiunto il numero massimo di ${t.count} allegati consentiti.`, Jc = /* @__NO_SIDE_EFFECTS__ */ () => "Nessun gendoc trovato", Wc = /* @__NO_SIDE_EFFECTS__ */ () => "Nessuna trascrizione trovata", Zc = /* @__NO_SIDE_EFFECTS__ */ () => "Trascina i file qui", Xc = /* @__NO_SIDE_EFFECTS__ */ () => "Caricamento in corso...", Vc = /* @__NO_SIDE_EFFECTS__ */ () => "Operazione in corso... Non è possibile inviare messaggi in questa chat fino al completamento.", Qc = /* @__NO_SIDE_EFFECTS__ */ () => "AI Assistant", Kc = /* @__NO_SIDE_EFFECTS__ */ () => "Type your message here...", eu = /* @__NO_SIDE_EFFECTS__ */ () => "Add attachment", tu = /* @__NO_SIDE_EFFECTS__ */ () => "Normatives", nu = /* @__NO_SIDE_EFFECTS__ */ () => "Normative", ru = /* @__NO_SIDE_EFFECTS__ */ () => "Choose", su = /* @__NO_SIDE_EFFECTS__ */ () => "Upload file", au = /* @__NO_SIDE_EFFECTS__ */ () => "Common Document", iu = /* @__NO_SIDE_EFFECTS__ */ () => "Stop recording", ou = /* @__NO_SIDE_EFFECTS__ */ () => "Start recording", lu = /* @__NO_SIDE_EFFECTS__ */ () => "Send message", cu = /* @__NO_SIDE_EFFECTS__ */ (t) => `Are you sure you want to delete the chat: ${t.chatTitle}?`, uu = /* @__NO_SIDE_EFFECTS__ */ () => "New Chat", du = /* @__NO_SIDE_EFFECTS__ */ () => "History", fu = /* @__NO_SIDE_EFFECTS__ */ () => "Unmute", pu = /* @__NO_SIDE_EFFECTS__ */ () => "Mute", hu = /* @__NO_SIDE_EFFECTS__ */ () => "Show history", vu = /* @__NO_SIDE_EFFECTS__ */ () => "Close", gu = /* @__NO_SIDE_EFFECTS__ */ () => "Sources", mu = /* @__NO_SIDE_EFFECTS__ */ () => "View attachment", bu = /* @__NO_SIDE_EFFECTS__ */ () => "Search", xu = /* @__NO_SIDE_EFFECTS__ */ () => "Documents", wu = /* @__NO_SIDE_EFFECTS__ */ () => "Search in progress...", _u = /* @__NO_SIDE_EFFECTS__ */ () => "Please enter at least 3 characters to start the search", ku = /* @__NO_SIDE_EFFECTS__ */ () => "No normative found", yu = /* @__NO_SIDE_EFFECTS__ */ () => "No document found", zu = /* @__NO_SIDE_EFFECTS__ */ () => "Play", $u = /* @__NO_SIDE_EFFECTS__ */ () => "Pause", Tu = /* @__NO_SIDE_EFFECTS__ */ () => "Error sending message. Please try again.", Su = /* @__NO_SIDE_EFFECTS__ */ () => "No active chat. Please create a new chat to get started.", Cu = /* @__NO_SIDE_EFFECTS__ */ () => "Error loading username.", Eu = /* @__NO_SIDE_EFFECTS__ */ () => "Suite Manual", Iu = /* @__NO_SIDE_EFFECTS__ */ () => "Stop", Au = /* @__NO_SIDE_EFFECTS__ */ () => "Copy sources list", Lu = /* @__NO_SIDE_EFFECTS__ */ () => "Sources copied!", ju = /* @__NO_SIDE_EFFECTS__ */ () => "Copy", Ru = /* @__NO_SIDE_EFFECTS__ */ () => "Copied!", Fu = /* @__NO_SIDE_EFFECTS__ */ (t) => `You have reached the maximum number of ${t.count} attachments allowed.`, Du = /* @__NO_SIDE_EFFECTS__ */ () => "No gendoc found", Ou = /* @__NO_SIDE_EFFECTS__ */ () => "No transcription found", Pu = /* @__NO_SIDE_EFFECTS__ */ () => "Drop files here", Mu = /* @__NO_SIDE_EFFECTS__ */ () => "Uploading...", Nu = /* @__NO_SIDE_EFFECTS__ */ () => "Operation in progress... You cannot send messages in this chat until completion.", Uu = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
2901
2901
  en: Qc,
2902
2902
  it: cc
2903
2903
  })[e.languageTag ?? ne()](), Bu = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
@@ -2956,10 +2956,10 @@ const cc = /* @__NO_SIDE_EFFECTS__ */ () => "Assistente AI", uc = /* @__NO_SIDE_
2956
2956
  it: Sc
2957
2957
  })[e.languageTag ?? ne()](), ba = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
2958
2958
  en: mu,
2959
- it: Ec
2959
+ it: Cc
2960
2960
  })[e.languageTag ?? ne()](), rd = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
2961
2961
  en: bu,
2962
- it: Cc
2962
+ it: Ec
2963
2963
  })[e.languageTag ?? ne()](), xa = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
2964
2964
  en: xu,
2965
2965
  it: Ic
@@ -2988,10 +2988,10 @@ const cc = /* @__NO_SIDE_EFFECTS__ */ () => "Assistente AI", uc = /* @__NO_SIDE_
2988
2988
  en: Su,
2989
2989
  it: Pc
2990
2990
  })[e.languageTag ?? ne()](), ud = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
2991
- en: Eu,
2991
+ en: Cu,
2992
2992
  it: Mc
2993
2993
  })[e.languageTag ?? ne()](), Di = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
2994
- en: Cu,
2994
+ en: Eu,
2995
2995
  it: Nc
2996
2996
  })[e.languageTag ?? ne()](), dd = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
2997
2997
  en: Iu,
@@ -3044,11 +3044,11 @@ function Oi(t, e) {
3044
3044
  let n = g(e, "show", 15, !1), r = g(e, "showHistory", 15), s = g(e, "actChat", 15), a = g(e, "muted", 15), i = g(e, "languageSelected", 15), o = g(e, "username", 15), c = g(e, "error", 15), l = g(e, "newChat", 7);
3045
3045
  Ur(() => {
3046
3046
  });
3047
- var u = Td(), f = z(u), p = z(f), h = O(z(p), 2), x = z(h);
3048
- x.value = (x.__value = "it") == null ? "" : "it";
3049
- var _ = O(x);
3047
+ var u = Td(), f = z(u), p = z(f), h = O(z(p), 2), b = z(h);
3048
+ b.value = (b.__value = "it") == null ? "" : "it";
3049
+ var _ = O(b);
3050
3050
  _.value = (_.__value = "en") == null ? "" : "en", k(h), k(p);
3051
- var y = O(p, 2), b = z(y);
3051
+ var y = O(p, 2), x = z(y);
3052
3052
  {
3053
3053
  var w = (R) => {
3054
3054
  var N = _d();
@@ -3062,21 +3062,21 @@ function Oi(t, e) {
3062
3062
  var N = yd();
3063
3063
  N.__click = [kd, a], M((H) => B(N, "title", H), [() => /* @__PURE__ */ Ku()]), T(R, N);
3064
3064
  };
3065
- ee(b, (R) => {
3065
+ ee(x, (R) => {
3066
3066
  a() ? R(w) : R($, !1);
3067
3067
  });
3068
3068
  }
3069
- var L = O(b, 2);
3069
+ var L = O(x, 2);
3070
3070
  L.__click = function(...R) {
3071
3071
  var N;
3072
3072
  (N = l()) == null || N.apply(this, R);
3073
3073
  };
3074
- var S = O(L, 2);
3075
- S.__click = [zd, r];
3076
- var A = O(S, 2);
3074
+ var C = O(L, 2);
3075
+ C.__click = [zd, r];
3076
+ var A = O(C, 2);
3077
3077
  return A.__click = [$d, r, n], k(y), k(f), k(u), M(
3078
3078
  (R, N, H, de) => {
3079
- B(L, "title", R), B(S, "title", N), B(S, "aria-label", H), B(A, "title", de), B(A, "aria-label", de);
3079
+ B(L, "title", R), B(C, "title", N), B(C, "aria-label", H), B(A, "title", de), B(A, "aria-label", de);
3080
3080
  },
3081
3081
  [
3082
3082
  () => /* @__PURE__ */ Ri(),
@@ -3152,7 +3152,7 @@ ue(
3152
3152
  [],
3153
3153
  !0
3154
3154
  );
3155
- const Ed = () => {
3155
+ const Cd = () => {
3156
3156
  switch (U.getEnvironmentId()) {
3157
3157
  case "aks_svi":
3158
3158
  return "http://localhost:8082";
@@ -3163,7 +3163,7 @@ const Ed = () => {
3163
3163
  default:
3164
3164
  return "https://aks-knowledge-base-back-573906316236.europe-west1.run.app";
3165
3165
  }
3166
- }, Cd = () => {
3166
+ }, Ed = () => {
3167
3167
  switch (U.getEnvironmentId()) {
3168
3168
  case "aks_svi":
3169
3169
  return "http://localhost:8081";
@@ -3220,8 +3220,8 @@ const Ed = () => {
3220
3220
  document.cookie = `akb-chat-forge-pinned=${t}; path=/; max-age=31536000; SameSite=Lax`;
3221
3221
  }, U = {
3222
3222
  getUrl: Ld,
3223
- getKBUrl: Ed,
3224
- getForgeUrl: Cd,
3223
+ getKBUrl: Cd,
3224
+ getForgeUrl: Ed,
3225
3225
  getGenDocUrl: Id,
3226
3226
  getTranscriptionUrl: Ad,
3227
3227
  getToken: jd,
@@ -3231,18 +3231,18 @@ const Ed = () => {
3231
3231
  };
3232
3232
  class an {
3233
3233
  constructor(e, n, r, s, a, i, o, c = "", l = !1, u = (/* @__PURE__ */ new Date()).getTime(), f = "loading", p = "") {
3234
- C(this, "_id");
3235
- C(this, "title");
3236
- C(this, "companyId");
3237
- C(this, "private");
3238
- C(this, "createdAt");
3239
- C(this, "externalId");
3240
- C(this, "idArchivio");
3241
- C(this, "gendocId");
3242
- C(this, "isCommon");
3243
- C(this, "hash");
3244
- C(this, "checked");
3245
- C(this, "path");
3234
+ E(this, "_id");
3235
+ E(this, "title");
3236
+ E(this, "companyId");
3237
+ E(this, "private");
3238
+ E(this, "createdAt");
3239
+ E(this, "externalId");
3240
+ E(this, "idArchivio");
3241
+ E(this, "gendocId");
3242
+ E(this, "isCommon");
3243
+ E(this, "hash");
3244
+ E(this, "checked");
3245
+ E(this, "path");
3246
3246
  this._id = e, this.title = n, this.companyId = r, this.private = s, this.externalId = a, this.idArchivio = i, this.hash = o, this.gendocId = c, this.isCommon = l, this.createdAt = u, this.checked = f, this.path = p;
3247
3247
  }
3248
3248
  toJson() {
@@ -3270,17 +3270,17 @@ class an {
3270
3270
  }
3271
3271
  class on {
3272
3272
  constructor(e, n, r, s, a, i, o, c = "file", l, u, f = (/* @__PURE__ */ new Date()).getTime()) {
3273
- C(this, "_id");
3274
- C(this, "title");
3275
- C(this, "externalId");
3276
- C(this, "idArchivio");
3277
- C(this, "isArchived");
3278
- C(this, "status");
3279
- C(this, "forgeType");
3280
- C(this, "contentType");
3281
- C(this, "url");
3282
- C(this, "additionalReference");
3283
- C(this, "createdAt");
3273
+ E(this, "_id");
3274
+ E(this, "title");
3275
+ E(this, "externalId");
3276
+ E(this, "idArchivio");
3277
+ E(this, "isArchived");
3278
+ E(this, "status");
3279
+ E(this, "forgeType");
3280
+ E(this, "contentType");
3281
+ E(this, "url");
3282
+ E(this, "additionalReference");
3283
+ E(this, "createdAt");
3284
3284
  this._id = e, this.title = n, this.externalId = r, this.idArchivio = s, this.isArchived = a, this.status = i, this.forgeType = o, this.contentType = c, this.url = l, this.additionalReference = u, this.createdAt = f;
3285
3285
  }
3286
3286
  toJson() {
@@ -3307,22 +3307,22 @@ class on {
3307
3307
  }
3308
3308
  class hn {
3309
3309
  constructor(e, n, r, s, a, i, o, c = 0, l = !1, u = 40, f = !1, p = "") {
3310
- C(this, "_id", "");
3311
- C(this, "path", "");
3312
- C(this, "name");
3313
- C(this, "userId");
3314
- C(this, "companyId");
3315
- C(this, "isPrivate");
3316
- C(this, "isTemplate");
3317
- C(this, "reportHTML", []);
3318
- C(this, "suiteId", 0);
3319
- C(this, "tags", []);
3320
- C(this, "createdAt");
3321
- C(this, "updatedAt");
3322
- C(this, "excludeFromDocumentale", !1);
3323
- C(this, "minLevel", 40);
3324
- C(this, "cancellato", !1);
3325
- C(this, "altTitle", "");
3310
+ E(this, "_id", "");
3311
+ E(this, "path", "");
3312
+ E(this, "name");
3313
+ E(this, "userId");
3314
+ E(this, "companyId");
3315
+ E(this, "isPrivate");
3316
+ E(this, "isTemplate");
3317
+ E(this, "reportHTML", []);
3318
+ E(this, "suiteId", 0);
3319
+ E(this, "tags", []);
3320
+ E(this, "createdAt");
3321
+ E(this, "updatedAt");
3322
+ E(this, "excludeFromDocumentale", !1);
3323
+ E(this, "minLevel", 40);
3324
+ E(this, "cancellato", !1);
3325
+ E(this, "altTitle", "");
3326
3326
  this._id = e, this.path = n, this.name = r, this.userId = s, this.companyId = a, this.isPrivate = i, this.isTemplate = o, this.suiteId = c, this.createdAt = Date.now(), this.updatedAt = Date.now(), this.excludeFromDocumentale = l, this.minLevel = u, this.cancellato = f, this.altTitle = p;
3327
3327
  }
3328
3328
  static fromJSON(e) {
@@ -3368,15 +3368,15 @@ class hn {
3368
3368
  }
3369
3369
  class ln {
3370
3370
  constructor(e, n, r, s, a, i, o, c, l) {
3371
- C(this, "_id");
3372
- C(this, "companyId");
3373
- C(this, "externalMeetingId");
3374
- C(this, "name");
3375
- C(this, "meetingDate");
3376
- C(this, "partecipants");
3377
- C(this, "transcription");
3378
- C(this, "meetingUrl");
3379
- C(this, "createdAt");
3371
+ E(this, "_id");
3372
+ E(this, "companyId");
3373
+ E(this, "externalMeetingId");
3374
+ E(this, "name");
3375
+ E(this, "meetingDate");
3376
+ E(this, "partecipants");
3377
+ E(this, "transcription");
3378
+ E(this, "meetingUrl");
3379
+ E(this, "createdAt");
3380
3380
  this._id = e, this.companyId = n, this.externalMeetingId = r, this.name = s, this.meetingDate = a, this.partecipants = i, this.transcription = o, this.meetingUrl = c, this.createdAt = l;
3381
3381
  }
3382
3382
  toJson() {
@@ -3916,63 +3916,63 @@ const uf = {
3916
3916
  function df(t, e) {
3917
3917
  le(e, !1), pe(t, uf);
3918
3918
  let n = g(e, "size", 12, "60"), r = g(e, "unit", 12, "px"), s = g(e, "pause", 12, !1), a = g(e, "ballTopLeft", 12, "#FF3E00"), i = g(e, "ballTopRight", 12, "#F8B334"), o = g(e, "ballBottomLeft", 12, "#40B3FF"), c = g(e, "ballBottomRight", 12, "#676778"), l = g(e, "duration", 12, "1.5s");
3919
- var u = cf(), f = z(u), p = z(f), h = z(p), x = z(h);
3919
+ var u = cf(), f = z(u), p = z(f), h = z(p), b = z(h);
3920
3920
  k(h);
3921
3921
  var _ = O(h, 2), y = z(_);
3922
3922
  k(_);
3923
- var b = O(_, 2), w = z(b);
3924
- k(b);
3925
- var $ = O(b, 2), L = z($);
3923
+ var x = O(_, 2), w = z(x);
3924
+ k(x);
3925
+ var $ = O(x, 2), L = z($);
3926
3926
  return k($), k(p), k(f), k(u), M(() => {
3927
- B(u, "style", `--size: ${n() ?? ""}${r() ?? ""}; --floatSize: ${n() ?? ""}; --ballTopLeftColor: ${a() ?? ""}; --ballTopRightColor: ${i() ?? ""}; --ballBottomLeftColor: ${o() ?? ""}; --ballBottomRightColor: ${c() ?? ""}; --duration: ${l() ?? ""};`), oe(p, "pause-animation", s()), oe(x, "pause-animation", s()), oe(y, "pause-animation", s()), oe(w, "pause-animation", s()), oe(L, "pause-animation", s());
3927
+ B(u, "style", `--size: ${n() ?? ""}${r() ?? ""}; --floatSize: ${n() ?? ""}; --ballTopLeftColor: ${a() ?? ""}; --ballTopRightColor: ${i() ?? ""}; --ballBottomLeftColor: ${o() ?? ""}; --ballBottomRightColor: ${c() ?? ""}; --duration: ${l() ?? ""};`), oe(p, "pause-animation", s()), oe(b, "pause-animation", s()), oe(y, "pause-animation", s()), oe(w, "pause-animation", s()), oe(L, "pause-animation", s());
3928
3928
  }), T(t, u), ce({
3929
3929
  get size() {
3930
3930
  return n();
3931
3931
  },
3932
- set size(S) {
3933
- n(S), v();
3932
+ set size(C) {
3933
+ n(C), v();
3934
3934
  },
3935
3935
  get unit() {
3936
3936
  return r();
3937
3937
  },
3938
- set unit(S) {
3939
- r(S), v();
3938
+ set unit(C) {
3939
+ r(C), v();
3940
3940
  },
3941
3941
  get pause() {
3942
3942
  return s();
3943
3943
  },
3944
- set pause(S) {
3945
- s(S), v();
3944
+ set pause(C) {
3945
+ s(C), v();
3946
3946
  },
3947
3947
  get ballTopLeft() {
3948
3948
  return a();
3949
3949
  },
3950
- set ballTopLeft(S) {
3951
- a(S), v();
3950
+ set ballTopLeft(C) {
3951
+ a(C), v();
3952
3952
  },
3953
3953
  get ballTopRight() {
3954
3954
  return i();
3955
3955
  },
3956
- set ballTopRight(S) {
3957
- i(S), v();
3956
+ set ballTopRight(C) {
3957
+ i(C), v();
3958
3958
  },
3959
3959
  get ballBottomLeft() {
3960
3960
  return o();
3961
3961
  },
3962
- set ballBottomLeft(S) {
3963
- o(S), v();
3962
+ set ballBottomLeft(C) {
3963
+ o(C), v();
3964
3964
  },
3965
3965
  get ballBottomRight() {
3966
3966
  return c();
3967
3967
  },
3968
- set ballBottomRight(S) {
3969
- c(S), v();
3968
+ set ballBottomRight(C) {
3969
+ c(C), v();
3970
3970
  },
3971
3971
  get duration() {
3972
3972
  return l();
3973
3973
  },
3974
- set duration(S) {
3975
- l(S), v();
3974
+ set duration(C) {
3975
+ l(C), v();
3976
3976
  }
3977
3977
  });
3978
3978
  }
@@ -4020,7 +4020,7 @@ function vf(t, e) {
4020
4020
  var u;
4021
4021
  le(e, !1), pe(t, hf);
4022
4022
  let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), s = g(e, "duration", 12, "2.1s"), a = g(e, "size", 12, "60"), i = g(e, "pause", 12, !1), o = ((u = s().match(Ze)) == null ? void 0 : u[0]) ?? "s", c = s().replace(Ze, "");
4023
- mt();
4023
+ bt();
4024
4024
  var l = pf();
4025
4025
  return st(l, 5, () => jt(2, 1), rt, (f, p) => {
4026
4026
  var h = ff();
@@ -4255,7 +4255,7 @@ function bf(t, e) {
4255
4255
  `width: ${r()}`,
4256
4256
  `height: ${r()}`
4257
4257
  ].join(";"));
4258
- }), Kn(), mt();
4258
+ }), Kn(), bt();
4259
4259
  var i = gf();
4260
4260
  return M(() => {
4261
4261
  B(i, "style", `--duration: ${s() ?? ""}; ${d(n) ?? ""}`), oe(i, "pause-animation", a());
@@ -4484,11 +4484,11 @@ const Sf = {
4484
4484
  }
4485
4485
  }`
4486
4486
  };
4487
- function Ef(t, e) {
4487
+ function Cf(t, e) {
4488
4488
  var u;
4489
4489
  le(e, !1), pe(t, Sf);
4490
4490
  let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), s = g(e, "duration", 12, "1.2s"), a = g(e, "size", 12, "60"), i = g(e, "pause", 12, !1), o = ((u = s().match(Ze)) == null ? void 0 : u[0]) ?? "s", c = s().replace(Ze, "");
4491
- mt();
4491
+ bt();
4492
4492
  var l = Tf();
4493
4493
  return st(l, 5, () => jt(5, 1), rt, (f, p) => {
4494
4494
  var h = $f();
@@ -4529,7 +4529,7 @@ function Ef(t, e) {
4529
4529
  });
4530
4530
  }
4531
4531
  ue(
4532
- Ef,
4532
+ Cf,
4533
4533
  {
4534
4534
  color: {},
4535
4535
  unit: {},
@@ -4541,7 +4541,7 @@ ue(
4541
4541
  [],
4542
4542
  !0
4543
4543
  );
4544
- var Cf = /* @__PURE__ */ I("<div></div>"), If = /* @__PURE__ */ I('<div class="wrapper svelte-bnawe9"></div>');
4544
+ var Ef = /* @__PURE__ */ I("<div></div>"), If = /* @__PURE__ */ I('<div class="wrapper svelte-bnawe9"></div>');
4545
4545
  const Af = {
4546
4546
  hash: "svelte-bnawe9",
4547
4547
  code: `.wrapper.svelte-bnawe9 {height:calc(var(--size) / 15);width:calc(var(--size) * 2);background-color:var(--rgba);position:relative;overflow:hidden;background-clip:padding-box;}.lines.svelte-bnawe9 {height:calc(var(--size) / 15);background-color:var(--color);}.small-lines.svelte-bnawe9 {position:absolute;overflow:hidden;background-clip:padding-box;display:block;border-radius:2px;will-change:left, right;animation-fill-mode:forwards;}.small-lines.\\31.svelte-bnawe9 {
@@ -4587,10 +4587,10 @@ function Lf(t, e) {
4587
4587
  () => {
4588
4588
  m(o, Ns(n(), 0.2));
4589
4589
  }
4590
- ), Kn(), mt();
4590
+ ), Kn(), bt();
4591
4591
  var c = If();
4592
4592
  return st(c, 5, () => jt(2, 1), rt, (l, u) => {
4593
- var f = Cf();
4593
+ var f = Ef();
4594
4594
  M(() => {
4595
4595
  lt(f, `lines small-lines ${d(u) ?? ""} svelte-bnawe9`), B(f, "style", `--color: ${n() ?? ""}; --duration: ${s() ?? ""};`), oe(f, "pause-animation", i());
4596
4596
  }), T(l, f);
@@ -4663,7 +4663,7 @@ function Df(t, e) {
4663
4663
  var u;
4664
4664
  le(e, !1), pe(t, Ff);
4665
4665
  let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), s = g(e, "duration", 12, "1s"), a = g(e, "size", 12, "60"), i = g(e, "pause", 12, !1), o = ((u = s().match(Ze)) == null ? void 0 : u[0]) ?? "s", c = s().replace(Ze, "");
4666
- mt();
4666
+ bt();
4667
4667
  var l = Rf();
4668
4668
  return st(l, 5, () => jt(3, 1), rt, (f, p) => {
4669
4669
  var h = jf();
@@ -4743,7 +4743,7 @@ const Mf = {
4743
4743
  function Nf(t, e) {
4744
4744
  le(e, !1), pe(t, Mf);
4745
4745
  let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), s = g(e, "duration", 12, "2s"), a = g(e, "size", 12, "60"), i = g(e, "pause", 12, !1);
4746
- mt();
4746
+ bt();
4747
4747
  var o = Pf();
4748
4748
  return st(o, 5, () => jt(2, 1), rt, (c, l) => {
4749
4749
  var u = Of();
@@ -4835,7 +4835,7 @@ function Hf(t, e) {
4835
4835
  var u;
4836
4836
  le(e, !1), pe(t, qf);
4837
4837
  let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), s = g(e, "duration", 12, "0.6s"), a = g(e, "size", 12, "60"), i = g(e, "pause", 12, !1), o = ((u = s().match(Ze)) == null ? void 0 : u[0]) ?? "s", c = s().replace(Ze, "");
4838
- mt();
4838
+ bt();
4839
4839
  var l = Bf();
4840
4840
  return st(l, 5, () => jt(3, 1), rt, (f, p) => {
4841
4841
  var h = Uf();
@@ -5057,7 +5057,7 @@ function Tr(t, e) {
5057
5057
  var u;
5058
5058
  le(e, !1), pe(t, Kf);
5059
5059
  let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), s = g(e, "duration", 12, "1.5s"), a = g(e, "size", 12, "60"), i = g(e, "pause", 12, !1), o = ((u = s().match(Ze)) == null ? void 0 : u[0]) ?? "s", c = s().replace(Ze, "");
5060
- mt();
5060
+ bt();
5061
5061
  var l = Qf();
5062
5062
  return st(l, 5, () => jt(3, 0), rt, (f, p) => {
5063
5063
  var h = Vf();
@@ -5131,7 +5131,7 @@ function rp(t, e) {
5131
5131
  var u;
5132
5132
  le(e, !1), pe(t, np);
5133
5133
  let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), s = g(e, "duration", 12, "2.5s"), a = g(e, "size", 12, "60"), i = g(e, "pause", 12, !1), o = ((u = s().match(Ze)) == null ? void 0 : u[0]) ?? "s", c = s().replace(Ze, "");
5134
- mt();
5134
+ bt();
5135
5135
  var l = tp();
5136
5136
  return st(l, 5, () => jt(6, 0), rt, (f, p) => {
5137
5137
  var h = ep();
@@ -5210,13 +5210,13 @@ function op(t, e) {
5210
5210
  var f;
5211
5211
  le(e, !1), pe(t, ip);
5212
5212
  let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), s = g(e, "duration", 12, "2s"), a = g(e, "size", 12, "60"), i = g(e, "pause", 12, !1), o = ((f = s().match(Ze)) == null ? void 0 : f[0]) ?? "s", c = s().replace(Ze, "");
5213
- mt();
5213
+ bt();
5214
5214
  var l = ap(), u = z(l);
5215
5215
  return st(u, 5, () => jt(2, 0), rt, (p, h) => {
5216
- var x = sp();
5216
+ var b = sp();
5217
5217
  M(() => {
5218
- B(x, "style", `animation-delay: ${(d(h) === 1 ? `${+c / 2}${o}` : "0s") ?? ""}; ${(d(h) === 1 ? "bottom: 0;" : "") ?? ""} ${(d(h) === 1 ? "top: auto;" : "") ?? ""}`), oe(x, "pause-animation", i());
5219
- }), T(p, x);
5218
+ B(b, "style", `animation-delay: ${(d(h) === 1 ? `${+c / 2}${o}` : "0s") ?? ""}; ${(d(h) === 1 ? "bottom: 0;" : "") ?? ""} ${(d(h) === 1 ? "top: auto;" : "") ?? ""}`), oe(b, "pause-animation", i());
5219
+ }), T(p, b);
5220
5220
  }), k(u), k(l), M(() => {
5221
5221
  B(l, "style", `--size: ${a() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --duration: ${s() ?? ""};`), oe(u, "pause-animation", i());
5222
5222
  }), T(t, l), ce({
@@ -5540,7 +5540,7 @@ function xp(t, e) {
5540
5540
  () => {
5541
5541
  m(o, Ns(n(), 0.6));
5542
5542
  }
5543
- ), Kn(), mt();
5543
+ ), Kn(), bt();
5544
5544
  var c = mp(), l = z(c);
5545
5545
  return k(c), M(() => {
5546
5546
  B(c, "style", `--size: ${a() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --rgba: ${d(o) ?? ""}; --duration: ${s() ?? ""};`), oe(l, "pause-animation", i());
@@ -5727,7 +5727,7 @@ ue(
5727
5727
  !0
5728
5728
  );
5729
5729
  var Tp = /* @__PURE__ */ I('<div class="bar svelte-1vzsw15"></div>'), Sp = /* @__PURE__ */ I('<div class="wrapper svelte-1vzsw15"></div>');
5730
- const Ep = {
5730
+ const Cp = {
5731
5731
  hash: "svelte-1vzsw15",
5732
5732
  code: `.wrapper.svelte-1vzsw15 {position:relative;display:flex;justify-content:center;align-items:center;width:calc(var(--size) * 2.5);height:var(--size);overflow:hidden;}.bar.svelte-1vzsw15 {position:absolute;top:calc(var(--size) / 10);width:calc(var(--size) / 5);height:calc(var(--size) / 10);margin-top:calc(var(--size) - var(--size) / 10);transform:skewY(0deg);background-color:var(--color);
5733
5733
  animation: svelte-1vzsw15-motion var(--duration) ease-in-out infinite;}.pause-animation.svelte-1vzsw15 {animation-play-state:paused;}
@@ -5744,11 +5744,11 @@ const Ep = {
5744
5744
  }
5745
5745
  }`
5746
5746
  };
5747
- function Cp(t, e) {
5747
+ function Ep(t, e) {
5748
5748
  var u;
5749
- le(e, !1), pe(t, Ep);
5749
+ le(e, !1), pe(t, Cp);
5750
5750
  let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), s = g(e, "duration", 12, "1.25s"), a = g(e, "size", 12, "60"), i = g(e, "pause", 12, !1), o = ((u = s().match(Ze)) == null ? void 0 : u[0]) ?? "s", c = s().replace(Ze, "");
5751
- mt();
5751
+ bt();
5752
5752
  var l = Sp();
5753
5753
  return st(l, 5, () => jt(10, 0), rt, (f, p) => {
5754
5754
  var h = Tp();
@@ -5789,7 +5789,7 @@ function Cp(t, e) {
5789
5789
  });
5790
5790
  }
5791
5791
  ue(
5792
- Cp,
5792
+ Ep,
5793
5793
  {
5794
5794
  color: {},
5795
5795
  unit: {},
@@ -5832,13 +5832,13 @@ function jp(t, e) {
5832
5832
  () => {
5833
5833
  m(l, Ns(n(), 1));
5834
5834
  }
5835
- ), Kn(), mt();
5835
+ ), Kn(), bt();
5836
5836
  var u = Ap();
5837
5837
  return st(u, 5, () => jt(2, 1), rt, (p, h) => {
5838
- var x = Ip();
5838
+ var b = Ip();
5839
5839
  M(() => {
5840
- B(x, "style", `animation-delay: ${(d(h) === 1 ? "-1s" : "0s") ?? ""}; animation-duration: ${2 / +c + o};`), oe(x, "pause-animation", i());
5841
- }), T(p, x);
5840
+ B(b, "style", `animation-delay: ${(d(h) === 1 ? "-1s" : "0s") ?? ""}; animation-duration: ${2 / +c + o};`), oe(b, "pause-animation", i());
5841
+ }), T(p, b);
5842
5842
  }), k(u), M(() => B(u, "style", `--size: ${a() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --rgba: ${d(l) ?? ""}; --duration: ${s() ?? ""}`)), T(t, u), ce({
5843
5843
  get color() {
5844
5844
  return n();
@@ -6142,14 +6142,14 @@ const lr = (t, e) => `${t}-${e}`, Mi = (t) => t.isCommon ? t.filename.split(".")
6142
6142
  e(!1), m(n, ""), r();
6143
6143
  }, eh = (t, e, n, r, s, a, i, o) => {
6144
6144
  const c = t.target;
6145
- m(e, E(c.value));
6145
+ m(e, S(c.value));
6146
6146
  const u = {
6147
- normative: () => n(d(e), () => wt.getForge(d(e), r()), (f) => m(s, E(f)), "Errore nella ricerca forge:"),
6148
- suite: () => n(d(e), () => wt.getForge(d(e), r()), (f) => m(s, E(f)), "Errore nella ricerca forge:"),
6149
- gendoc: () => n(d(e), () => wt.getGenDocs(d(e)), (f) => m(a, E(f)), "Errore nella ricerca gendocs:"),
6150
- transcriptions: () => n(d(e), () => wt.getTranscriptions(d(e)), (f) => m(i, E(f)), "Errore nella ricerca trascrizioni:")
6147
+ normative: () => n(d(e), () => wt.getForge(d(e), r()), (f) => m(s, S(f)), "Errore nella ricerca forge:"),
6148
+ suite: () => n(d(e), () => wt.getForge(d(e), r()), (f) => m(s, S(f)), "Errore nella ricerca forge:"),
6149
+ gendoc: () => n(d(e), () => wt.getGenDocs(d(e)), (f) => m(a, S(f)), "Errore nella ricerca gendocs:"),
6150
+ transcriptions: () => n(d(e), () => wt.getTranscriptions(d(e)), (f) => m(i, S(f)), "Errore nella ricerca trascrizioni:")
6151
6151
  }[r()];
6152
- u ? u() : n(d(e), () => wt.getDocuments(d(e)), (f) => m(o, E(f)), "Errore nella ricerca documenti:");
6152
+ u ? u() : n(d(e), () => wt.getDocuments(d(e)), (f) => m(o, S(f)), "Errore nella ricerca documenti:");
6153
6153
  };
6154
6154
  var th = /* @__PURE__ */ I('<div class="text-center p-3"><!> <p class="mt-2 text-muted"> </p></div>'), nh = /* @__PURE__ */ I('<div class="text-center p-3"><i class="fa-solid fa-search text-muted fa-2x"></i> <p class="mt-2 text-muted"> </p></div>'), rh = /* @__PURE__ */ I('<div class="text-center p-3"><i class="fa-solid fa-file-circle-exclamation text-muted fa-2x"></i> <p class="mt-2 text-muted"><!></p></div>'), sh = (t, e, n) => e(d(n)), ah = /* @__PURE__ */ I('<div class="document-path svelte-zrlk2s"> </div>'), ih = /* @__PURE__ */ I('<div class="selected-indicator svelte-zrlk2s"><i class="fa-solid fa-circle-check"></i></div>'), oh = /* @__PURE__ */ I('<button class="document-item svelte-zrlk2s"><div class="document-icon svelte-zrlk2s"><i></i></div> <div class="document-info"><div class="document-title svelte-zrlk2s"> </div> <!></div> <!></button>'), lh = /* @__PURE__ */ I('<div class="documents-list svelte-zrlk2s"></div>'), ch = /* @__PURE__ */ I('<div class="modal-overlay svelte-zrlk2s"><div class="document-search-modal svelte-zrlk2s"><div class="modal-header svelte-zrlk2s"><h5 class="svelte-zrlk2s"> </h5> <button class="btn btn-sm btn-danger aks-btn-rounded" aria-label="Chiudi modale"><i class="fa-solid fa-xmark"></i></button></div> <div class="modal-body svelte-zrlk2s"><div class="search-container svelte-zrlk2s"><div class="input-group"><span class="input-group-text svelte-zrlk2s"><i class="fa-solid fa-search"></i></span> <input type="text" class="form-control" style="color: black;"></div></div> <div class="documents-container svelte-zrlk2s"><!></div></div></div></div>');
6155
6155
  const uh = {
@@ -6161,10 +6161,10 @@ function Bi(t, e) {
6161
6161
  le(e, !0), pe(t, uh);
6162
6162
  let n = g(e, "attachments", 15), r = g(e, "showDocumentSearchModal", 15), s = g(e, "modeSelected", 15);
6163
6163
  const a = { default: 3, gendoc: 1, transcriptions: 1 }, i = 3;
6164
- let o = /* @__PURE__ */ He(() => tr(s())), c = J(E([])), l = J(E([])), u = J(E([])), f = J(E([])), p = J(!1), h = J(""), x = /* @__PURE__ */ He(() => s() === "normative" || s() === "suite" ? d(l) : s() === "gendoc" ? d(u) : s() === "transcriptions" ? d(f) : d(c));
6164
+ let o = /* @__PURE__ */ He(() => tr(s())), c = J(S([])), l = J(S([])), u = J(S([])), f = J(S([])), p = J(!1), h = J(""), b = /* @__PURE__ */ He(() => s() === "normative" || s() === "suite" ? d(l) : s() === "gendoc" ? d(u) : s() === "transcriptions" ? d(f) : d(c));
6165
6165
  const _ = () => {
6166
- m(c, E([])), m(l, E([])), m(u, E([])), m(f, E([]));
6167
- }, y = (j) => n()[j._id] ? (delete n()[j._id], !0) : !1, b = (j) => Object.keys(n()).length >= j ? (alert(/* @__PURE__ */ hd({ count: j })), !1) : !0, w = (j) => {
6166
+ m(c, S([])), m(l, S([])), m(u, S([])), m(f, S([]));
6167
+ }, y = (j) => n()[j._id] ? (delete n()[j._id], !0) : !1, x = (j) => Object.keys(n()).length >= j ? (alert(/* @__PURE__ */ hd({ count: j })), !1) : !0, w = (j) => {
6168
6168
  if (j instanceof an)
6169
6169
  return {
6170
6170
  title: j.title,
@@ -6198,23 +6198,23 @@ function Bi(t, e) {
6198
6198
  if (y(j))
6199
6199
  return;
6200
6200
  const te = j instanceof hn || j instanceof ln ? a.gendoc : a.default;
6201
- b(te) && n(n()[j._id] = w(j), !0);
6202
- }, L = async (j, te, Ee, Le) => {
6201
+ x(te) && n(n()[j._id] = w(j), !0);
6202
+ }, L = async (j, te, Ce, Le) => {
6203
6203
  if (j.length < i) {
6204
- Ee([]);
6204
+ Ce([]);
6205
6205
  return;
6206
6206
  }
6207
6207
  m(p, !0);
6208
6208
  try {
6209
6209
  const Oe = await te();
6210
- Ee(Oe);
6210
+ Ce(Oe);
6211
6211
  } catch (Oe) {
6212
- console.error(Le, Oe), Ee([]);
6212
+ console.error(Le, Oe), Ce([]);
6213
6213
  } finally {
6214
6214
  m(p, !1);
6215
6215
  }
6216
6216
  };
6217
- var S = ch(), A = z(S), R = z(A), N = z(R), H = z(N);
6217
+ var C = ch(), A = z(C), R = z(A), N = z(R), H = z(N);
6218
6218
  k(N);
6219
6219
  var de = O(N, 2);
6220
6220
  de.__click = [
@@ -6237,12 +6237,12 @@ function Bi(t, e) {
6237
6237
  var Je = O(Te, 2), Qe = z(Je);
6238
6238
  {
6239
6239
  var at = (j) => {
6240
- var te = th(), Ee = z(te);
6241
- Tr(Ee, { size: "30", color: "#295dcf" });
6242
- var Le = O(Ee, 2), Oe = z(Le, !0);
6240
+ var te = th(), Ce = z(te);
6241
+ Tr(Ce, { size: "30", color: "#295dcf" });
6242
+ var Le = O(Ce, 2), Oe = z(Le, !0);
6243
6243
  k(Le), k(te), M((Ue) => _e(Oe, Ue), [() => /* @__PURE__ */ sd()]), T(j, te);
6244
6244
  }, ut = (j) => {
6245
- var te = _t(), Ee = tt(te);
6245
+ var te = _t(), Ce = tt(te);
6246
6246
  {
6247
6247
  var Le = (Ue) => {
6248
6248
  var Ye = nh(), Be = O(z(Ye), 2), $e = z(Be, !0);
@@ -6299,7 +6299,7 @@ function Bi(t, e) {
6299
6299
  k(V), k(q), T(D, q);
6300
6300
  }, Q = (D) => {
6301
6301
  var q = lh();
6302
- st(q, 21, () => d(x), rt, (V, ie) => {
6302
+ st(q, 21, () => d(b), rt, (V, ie) => {
6303
6303
  var me = oh();
6304
6304
  const Ge = /* @__PURE__ */ He(() => Xp(d(ie), d(o))), Ae = /* @__PURE__ */ He(() => Vp(d(ie))), be = /* @__PURE__ */ He(() => Qp(d(ie)));
6305
6305
  me.__click = [sh, $, ie];
@@ -6336,7 +6336,7 @@ function Bi(t, e) {
6336
6336
  ee(
6337
6337
  Be,
6338
6338
  (D) => {
6339
- d(x).length === 0 ? D($e) : D(Q, !1);
6339
+ d(b).length === 0 ? D($e) : D(Q, !1);
6340
6340
  },
6341
6341
  !0
6342
6342
  );
@@ -6344,7 +6344,7 @@ function Bi(t, e) {
6344
6344
  T(Ue, Ye);
6345
6345
  };
6346
6346
  ee(
6347
- Ee,
6347
+ Ce,
6348
6348
  (Ue) => {
6349
6349
  d(h).length < i ? Ue(Le) : Ue(Oe, !1);
6350
6350
  },
@@ -6357,17 +6357,17 @@ function Bi(t, e) {
6357
6357
  d(p) ? j(at) : j(ut, !1);
6358
6358
  });
6359
6359
  }
6360
- return k(Je), k(Xe), k(A), k(S), M(
6361
- (j, te, Ee) => {
6360
+ return k(Je), k(Xe), k(A), k(C), M(
6361
+ (j, te, Ce) => {
6362
6362
  _e(H, `${j ?? ""}
6363
- ${te ?? ""}`), B(ae, "placeholder", `${j ?? ""} ${Ee ?? ""} (min 3 caratteri)...`), Fl(ae, d(h));
6363
+ ${te ?? ""}`), B(ae, "placeholder", `${j ?? ""} ${Ce ?? ""} (min 3 caratteri)...`), Fl(ae, d(h));
6364
6364
  },
6365
6365
  [
6366
6366
  () => /* @__PURE__ */ rd(),
6367
6367
  () => s() == "normative" || s() == "suite" ? d(o).name : s() == "transcriptions" ? "Meeting" : /* @__PURE__ */ xa(),
6368
6368
  () => s() == "normative" || s() == "suite" ? d(o).name : s() == "transcriptions" ? "Meeting" : /* @__PURE__ */ xa()
6369
6369
  ]
6370
- ), T(t, S), ce({
6370
+ ), T(t, C), ce({
6371
6371
  get attachments() {
6372
6372
  return n();
6373
6373
  },
@@ -6467,8 +6467,8 @@ const vh = async (t) => {
6467
6467
  try {
6468
6468
  let l = 0;
6469
6469
  n === "__file_uploaded__" ? (l = -1, e = " ") : n === "kb" ? l = 1 : n === "normative" ? l = 2 : n === "suite" ? l = 3 : n === "gendoc" ? l = 4 : n === "transcriptions" ? l = 5 : n === "audit_handler" ? l = 6 : n === "suite_agent" && (l = 7), await qi(t, e, r);
6470
- const f = U.getUrl().replace(/^http/, "ws"), p = `chat/${t}/message?mode=${l}`, h = p.includes("?") ? "&" : "?", x = `${f}/${p}${h}akstoken=${U.getToken()}&envid=${U.getEnvironmentId()}&lang=${$r(a)}`;
6471
- o = new WebSocket(x), i && i.addEventListener("abort", () => {
6470
+ const f = U.getUrl().replace(/^http/, "ws"), p = `chat/${t}/message?mode=${l}`, h = p.includes("?") ? "&" : "?", b = `${f}/${p}${h}akstoken=${U.getToken()}&envid=${U.getEnvironmentId()}&lang=${$r(a)}`;
6471
+ o = new WebSocket(b), i && i.addEventListener("abort", () => {
6472
6472
  o && o.readyState === WebSocket.OPEN && (o.close(), c = !0);
6473
6473
  }), await new Promise((_, y) => {
6474
6474
  if (!o) return y(new Error("WebSocket not initialized"));
@@ -6478,13 +6478,13 @@ const vh = async (t) => {
6478
6478
  attachments: r,
6479
6479
  lang: $r(a)
6480
6480
  }));
6481
- }, o.onmessage = (b) => {
6482
- let w = JSON.parse(b.data);
6481
+ }, o.onmessage = (x) => {
6482
+ let w = JSON.parse(x.data);
6483
6483
  s(w.message, w.attachments, w.agent);
6484
- }, o.onerror = (b) => {
6485
- console.error("WebSocket error:", b), y(new Error("WebSocket connection error"));
6486
- }, o.onclose = (b) => {
6487
- b.wasClean ? _() : y(new Error(`WebSocket closed unexpectedly: ${b.code} ${b.reason}`));
6484
+ }, o.onerror = (x) => {
6485
+ console.error("WebSocket error:", x), y(new Error("WebSocket connection error"));
6486
+ }, o.onclose = (x) => {
6487
+ x.wasClean ? _() : y(new Error(`WebSocket closed unexpectedly: ${x.code} ${x.reason}`));
6488
6488
  };
6489
6489
  });
6490
6490
  } catch (l) {
@@ -6596,7 +6596,7 @@ const vh = async (t) => {
6596
6596
  if (!t.ok)
6597
6597
  throw new Error("Failed to fetch unread chats");
6598
6598
  return await t.json();
6599
- }, xt = {
6599
+ }, ht = {
6600
6600
  getChat: vh,
6601
6601
  getChats: gh,
6602
6602
  newChat: mh,
@@ -6616,7 +6616,7 @@ const vh = async (t) => {
6616
6616
  }, Sh = (t, e, n) => {
6617
6617
  m(e, !1), m(n, !0);
6618
6618
  };
6619
- var Eh = /* @__PURE__ */ I('<div class="chat-blocked-message svelte-1v0h2p0"><i class="fa-solid fa-clock-rotate-left svelte-1v0h2p0"></i> <span class="svelte-1v0h2p0"> </span></div>'), Ch = /* @__PURE__ */ I('<div class="dropdown-content svelte-1v0h2p0"><button><i class="fa-solid fa-file-circle-plus svelte-1v0h2p0"></i> <span class="svelte-1v0h2p0"> </span></button> <button><i class="fa-solid fa-upload svelte-1v0h2p0"></i> <span class="svelte-1v0h2p0"> </span></button></div>'), Ih = /* @__PURE__ */ I('<option class="svelte-1v0h2p0">Generatore di Normative</option>'), Ah = /* @__PURE__ */ I('<div class="attachment-title noopen-file-button svelte-1v0h2p0"> </div>'), Lh = (t, e, n, r, s) => e(n(), r(), s()), jh = /* @__PURE__ */ I('<button class="attachment-title open-file-button svelte-1v0h2p0"> </button>'), Rh = (t, e, n, r, s) => e(n(), r(), s()), Fh = /* @__PURE__ */ I('<div><i></i> <!> <button aria-label="Remove attachment"><i class="fa-solid fa-xmark svelte-1v0h2p0"></i></button></div>'), Dh = /* @__PURE__ */ I('<button class="btn send-button stop-recording-btn svelte-1v0h2p0" aria-label="Stop recording"><i class="fa-solid fa-stop svelte-1v0h2p0"></i></button>'), Oh = /* @__PURE__ */ I('<button class="btn send-button aks-btn-answer svelte-1v0h2p0" aria-label="Synthesizing" disabled><!></button>'), Ph = /* @__PURE__ */ I('<button class="btn send-button aks-btn-answer svelte-1v0h2p0" aria-label="Start recording"><i class="fa-solid fa-microphone svelte-1v0h2p0"></i></button>'), Mh = /* @__PURE__ */ I('<button class="btn send-button stop-stream-btn svelte-1v0h2p0" aria-label="Stop message"><i class="fa-solid fa-stop svelte-1v0h2p0"></i></button>'), Nh = /* @__PURE__ */ I('<button class="btn send-button aks-btn-answer svelte-1v0h2p0" aria-label="Loading" disabled><!></button>'), Uh = /* @__PURE__ */ I('<button class="btn send-button aks-btn-answer send-message-btn svelte-1v0h2p0" aria-label="Send message"><i class="fa-solid fa-paper-plane svelte-1v0h2p0"></i></button>'), Bh = /* @__PURE__ */ I('<div class="top svelte-1v0h2p0"><textarea style="color: black !important;" class="form-control form-control-sm svelte-1v0h2p0" rows="2"></textarea></div> <div class="bottom svelte-1v0h2p0"><div class="controls-row svelte-1v0h2p0"><div class="plus-button-container svelte-1v0h2p0"><button><i></i></button> <!></div> <select class="mode-select svelte-1v0h2p0" aria-label="Select mode"><option class="svelte-1v0h2p0">Auto</option><option class="svelte-1v0h2p0">Manuale Suite</option><option class="svelte-1v0h2p0"> </option><option class="svelte-1v0h2p0">Knowledge Base</option><option class="svelte-1v0h2p0">GenDoc</option><option class="svelte-1v0h2p0">Trascrizioni</option><!><option class="svelte-1v0h2p0">Agente Suite</option></select> <div class="attachments-container svelte-1v0h2p0"></div> <div class="send-buttons svelte-1v0h2p0"><!> <!></div></div></div>', 1), qh = /* @__PURE__ */ I('<div class="input svelte-1v0h2p0"><!></div> <!>', 1);
6619
+ var Ch = /* @__PURE__ */ I('<div class="chat-blocked-message svelte-1v0h2p0"><i class="fa-solid fa-clock-rotate-left svelte-1v0h2p0"></i> <span class="svelte-1v0h2p0"> </span></div>'), Eh = /* @__PURE__ */ I('<div class="dropdown-content svelte-1v0h2p0"><button><i class="fa-solid fa-file-circle-plus svelte-1v0h2p0"></i> <span class="svelte-1v0h2p0"> </span></button> <button><i class="fa-solid fa-upload svelte-1v0h2p0"></i> <span class="svelte-1v0h2p0"> </span></button></div>'), Ih = /* @__PURE__ */ I('<option class="svelte-1v0h2p0">Generatore di Normative</option>'), Ah = /* @__PURE__ */ I('<div class="attachment-title noopen-file-button svelte-1v0h2p0"> </div>'), Lh = (t, e, n, r, s) => e(n(), r(), s()), jh = /* @__PURE__ */ I('<button class="attachment-title open-file-button svelte-1v0h2p0"> </button>'), Rh = (t, e, n, r, s) => e(n(), r(), s()), Fh = /* @__PURE__ */ I('<div><i></i> <!> <button aria-label="Remove attachment"><i class="fa-solid fa-xmark svelte-1v0h2p0"></i></button></div>'), Dh = /* @__PURE__ */ I('<button class="btn send-button stop-recording-btn svelte-1v0h2p0" aria-label="Stop recording"><i class="fa-solid fa-stop svelte-1v0h2p0"></i></button>'), Oh = /* @__PURE__ */ I('<button class="btn send-button aks-btn-answer svelte-1v0h2p0" aria-label="Synthesizing" disabled><!></button>'), Ph = /* @__PURE__ */ I('<button class="btn send-button aks-btn-answer svelte-1v0h2p0" aria-label="Start recording"><i class="fa-solid fa-microphone svelte-1v0h2p0"></i></button>'), Mh = /* @__PURE__ */ I('<button class="btn send-button stop-stream-btn svelte-1v0h2p0" aria-label="Stop message"><i class="fa-solid fa-stop svelte-1v0h2p0"></i></button>'), Nh = /* @__PURE__ */ I('<button class="btn send-button aks-btn-answer svelte-1v0h2p0" aria-label="Loading" disabled><!></button>'), Uh = /* @__PURE__ */ I('<button class="btn send-button aks-btn-answer send-message-btn svelte-1v0h2p0" aria-label="Send message"><i class="fa-solid fa-paper-plane svelte-1v0h2p0"></i></button>'), Bh = /* @__PURE__ */ I('<div class="top svelte-1v0h2p0"><textarea style="color: black !important;" class="form-control form-control-sm svelte-1v0h2p0" rows="2"></textarea></div> <div class="bottom svelte-1v0h2p0"><div class="controls-row svelte-1v0h2p0"><div class="plus-button-container svelte-1v0h2p0"><button><i></i></button> <!></div> <select class="mode-select svelte-1v0h2p0" aria-label="Select mode"><option class="svelte-1v0h2p0">Auto</option><option class="svelte-1v0h2p0">Manuale Suite</option><option class="svelte-1v0h2p0"> </option><option class="svelte-1v0h2p0">Knowledge Base</option><option class="svelte-1v0h2p0">GenDoc</option><option class="svelte-1v0h2p0">Trascrizioni</option><!><option class="svelte-1v0h2p0">Agente Suite</option></select> <div class="attachments-container svelte-1v0h2p0"></div> <div class="send-buttons svelte-1v0h2p0"><!> <!></div></div></div>', 1), qh = /* @__PURE__ */ I('<div class="input svelte-1v0h2p0"><!></div> <!>', 1);
6620
6620
  const Hh = {
6621
6621
  hash: "svelte-1v0h2p0",
6622
6622
  code: `textarea.svelte-1v0h2p0 {border:none;overflow-y:auto;resize:none;transition:height 0.1s ease;max-height:120px; /* 5 righe circa */}.noopen-file-button.svelte-1v0h2p0 {background:none;border:none;padding:0;font-size:0.875rem;color:black;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;text-align:left;min-width:0;}.open-file-button.svelte-1v0h2p0 {background:none;border:none;cursor:pointer;padding:0;font-size:0.875rem;color:white;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;text-align:left;min-width:0;}.open-file-button.svelte-1v0h2p0:hover {background-color:transparent;text-decoration:underline;}.mode-select.svelte-1v0h2p0 {flex-shrink:0;height:32px;padding:0 8px;border-radius:16px;border:2px solid #e9ecef;background-color:#f8f9fa;color:#295dcf;font-size:0.8rem;font-weight:500;cursor:pointer;transition:all 0.2s ease;box-shadow:0 2px 4px rgba(0, 0, 0, 0.1);outline:none;max-width:120px;}.mode-select.svelte-1v0h2p0:hover {background-color:#e9ecef;border-color:#295dcf;}.mode-select.svelte-1v0h2p0:focus {border-color:#295dcf;box-shadow:0 0 0 3px rgba(41, 93, 207, 0.1);}.plus-button-container.svelte-1v0h2p0 {position:relative;flex-shrink:0;}.plus-button.svelte-1v0h2p0 {display:flex;justify-content:center;align-items:center;padding:0;width:38px;height:38px;border-radius:50%;background-color:#f8f9fa;color:#295dcf;border:2px solid #e9ecef;transition:all 0.2s ease;font-size:1.1rem;box-shadow:0 2px 4px rgba(0, 0, 0, 0.1);}.plus-button.svelte-1v0h2p0:hover {background-color:#295dcf;color:white;border-color:#295dcf;transform:scale(1.05);box-shadow:0 4px 8px rgba(0, 0, 0, 0.15);}.plus-button.svelte-1v0h2p0:active {transform:scale(0.95);}.plus-button-active.svelte-1v0h2p0 {background-color:#295dcf;color:white;border-color:#295dcf;}.plus-button-active.svelte-1v0h2p0:hover {background-color:#1d4a9e;border-color:#1d4a9e;transform:scale(1.05);}.controls-row.svelte-1v0h2p0 {display:flex;align-items:center;width:100%;gap:5px;min-width:0;}.attachments-container.svelte-1v0h2p0 {display:flex;gap:5px;overflow-x:auto;min-width:0;flex:1;padding:2px 0;\r
@@ -6639,16 +6639,16 @@ const Hh = {
6639
6639
  };
6640
6640
  function Hi(t, e) {
6641
6641
  le(e, !0), pe(t, Hh);
6642
- let n = g(e, "sendMessage", 7), r = g(e, "stopMessage", 7), s = g(e, "loading", 15), a = g(e, "languageSelected", 15), i = g(e, "modeSelected", 15), o = g(e, "attachments", 15), c = g(e, "userLevel", 15), l = g(e, "uploadFiles", 7), u = g(e, "actChat", 15), f = g(e, "streamMessage", 15), p = J(""), h = J(null), x, _ = J(E([])), y = J(!1), b = J(!1), w = J(!1), $ = J(!1), L = J(null), S = /* @__PURE__ */ He(() => tr(i()));
6642
+ let n = g(e, "sendMessage", 7), r = g(e, "stopMessage", 7), s = g(e, "loading", 15), a = g(e, "languageSelected", 15), i = g(e, "modeSelected", 15), o = g(e, "attachments", 15), c = g(e, "userLevel", 15), l = g(e, "uploadFiles", 7), u = g(e, "actChat", 15), f = g(e, "streamMessage", 15), p = J(""), h = J(null), b, _ = J(S([])), y = J(!1), x = J(!1), w = J(!1), $ = J(!1), L = J(null), C = /* @__PURE__ */ He(() => tr(i()));
6643
6643
  const A = 20, R = 5, N = 0.5;
6644
6644
  function H(D, q) {
6645
- return D ? i() === "normative" || i() === "suite" ? d(S).name : "" : q;
6645
+ return D ? i() === "normative" || i() === "suite" ? d(C).name : "" : q;
6646
6646
  }
6647
6647
  function de() {
6648
6648
  m(p, ""), o({}), d(h) && (d(h).style.height = "auto");
6649
6649
  }
6650
6650
  function Xe() {
6651
- x != null && x.stream && x.stream.getTracks().forEach((D) => D.stop());
6651
+ b != null && b.stream && b.stream.getTracks().forEach((D) => D.stop());
6652
6652
  }
6653
6653
  const Te = () => {
6654
6654
  if (!d(h)) return;
@@ -6671,23 +6671,23 @@ function Hi(t, e) {
6671
6671
  if (!s())
6672
6672
  try {
6673
6673
  const D = await navigator.mediaDevices.getUserMedia({ audio: !0 });
6674
- x = new MediaRecorder(D, { mimeType: "audio/webm" }), x.ondataavailable = (q) => {
6674
+ b = new MediaRecorder(D, { mimeType: "audio/webm" }), b.ondataavailable = (q) => {
6675
6675
  q.data.size > 0 && d(_).push(q.data);
6676
- }, x.onstop = async () => {
6677
- m(b, !0);
6676
+ }, b.onstop = async () => {
6677
+ m(x, !0);
6678
6678
  const q = new Blob(d(_), { type: "audio/webm" });
6679
6679
  try {
6680
6680
  const V = await Ms.getText(q, a());
6681
- V && (m(p, E(V)), ae());
6681
+ V && (m(p, S(V)), ae());
6682
6682
  } finally {
6683
- m(b, !1);
6683
+ m(x, !1);
6684
6684
  }
6685
- }, m(y, !0), x.start();
6685
+ }, m(y, !0), b.start();
6686
6686
  } catch (D) {
6687
6687
  console.error("Failed to start recording:", D);
6688
6688
  }
6689
6689
  }, Qe = () => {
6690
- x && (x.stop(), Xe(), m(y, !1), m(_, E([])));
6690
+ b && (b.stop(), Xe(), m(y, !1), m(_, S([])));
6691
6691
  }, at = () => {
6692
6692
  m(w, !1);
6693
6693
  const D = document.createElement("input");
@@ -6711,7 +6711,7 @@ function Hi(t, e) {
6711
6711
  }
6712
6712
  }, D.click(), n()("", "__file_uploaded__");
6713
6713
  }, ut = (D, q, V) => {
6714
- delete o()[D], V && xt.deleteFile(V, q);
6714
+ delete o()[D], V && ht.deleteFile(V, q);
6715
6715
  }, j = async (D, q, V) => {
6716
6716
  await wt.getDocumentPage(D, q, V);
6717
6717
  }, te = [
@@ -6720,7 +6720,7 @@ function Hi(t, e) {
6720
6720
  "kb",
6721
6721
  "gendoc",
6722
6722
  "transcriptions"
6723
- ], Ee = [
6723
+ ], Ce = [
6724
6724
  "auto",
6725
6725
  "gendoc",
6726
6726
  "audit_handler",
@@ -6732,7 +6732,7 @@ function Hi(t, e) {
6732
6732
  var Le = qh(), Oe = tt(Le), Ue = z(Oe);
6733
6733
  {
6734
6734
  var Ye = (D) => {
6735
- var q = Eh(), V = O(z(q), 2), ie = z(V, !0);
6735
+ var q = Ch(), V = O(z(q), 2), ie = z(V, !0);
6736
6736
  k(V), k(q), M((me) => _e(ie, me), [() => /* @__PURE__ */ xd()]), T(D, q);
6737
6737
  }, Be = (D) => {
6738
6738
  var q = Bh(), V = tt(q), ie = z(V);
@@ -6744,7 +6744,7 @@ function Hi(t, e) {
6744
6744
  var Ke = O(be, 2);
6745
6745
  {
6746
6746
  var it = (Y) => {
6747
- var K = Ch(), we = z(K);
6747
+ var K = Eh(), we = z(K);
6748
6748
  we.__click = [
6749
6749
  Sh,
6750
6750
  w,
@@ -6765,8 +6765,8 @@ function Hi(t, e) {
6765
6765
  () => !te.includes(i()),
6766
6766
  () => /* @__PURE__ */ Yu(),
6767
6767
  () => ph(i()),
6768
- () => `dropdown-option ${Ee.includes(i()) ? "" : "option-disabled"}`,
6769
- () => !Ee.includes(i()),
6768
+ () => `dropdown-option ${Ce.includes(i()) ? "" : "option-disabled"}`,
6769
+ () => !Ce.includes(i()),
6770
6770
  () => /* @__PURE__ */ Gu()
6771
6771
  ]
6772
6772
  ), T(Y, K);
@@ -6874,7 +6874,7 @@ function Hi(t, e) {
6874
6874
  ee(
6875
6875
  we,
6876
6876
  (F) => {
6877
- d(b) ? F(Me) : F(Bt, !1);
6877
+ d(x) ? F(Me) : F(Bt, !1);
6878
6878
  },
6879
6879
  !0
6880
6880
  );
@@ -6958,7 +6958,7 @@ function Hi(t, e) {
6958
6958
  return d($);
6959
6959
  },
6960
6960
  set showDocumentSearchModal(q) {
6961
- m($, E(q));
6961
+ m($, S(q));
6962
6962
  },
6963
6963
  get modeSelected() {
6964
6964
  return i();
@@ -7345,9 +7345,9 @@ function iv(t, e) {
7345
7345
  };
7346
7346
  let a = n.body;
7347
7347
  [n, r].forEach((_) => {
7348
- const y = [], b = _.hFlip, w = _.vFlip;
7348
+ const y = [], x = _.hFlip, w = _.vFlip;
7349
7349
  let $ = _.rotate;
7350
- b ? w ? $ += 2 : (y.push(
7350
+ x ? w ? $ += 2 : (y.push(
7351
7351
  "translate(" + (s.width + s.left).toString() + " " + (0 - s.top).toString() + ")"
7352
7352
  ), y.push("scale(-1 1)"), s.top = s.left = 0) : w && (y.push(
7353
7353
  "translate(" + (0 - s.left).toString() + " " + (s.height + s.top).toString() + ")"
@@ -7383,10 +7383,10 @@ function iv(t, e) {
7383
7383
  av(y) || (p[_] = y.toString());
7384
7384
  };
7385
7385
  h("width", u), h("height", f);
7386
- const x = [s.left, s.top, c, l];
7387
- return p.viewBox = x.join(" "), {
7386
+ const b = [s.left, s.top, c, l];
7387
+ return p.viewBox = b.join(" "), {
7388
7388
  attributes: p,
7389
- viewBox: x,
7389
+ viewBox: b,
7390
7390
  body: a
7391
7391
  };
7392
7392
  }
@@ -7678,18 +7678,18 @@ function Tv(t, e, n, r) {
7678
7678
  const o = Date.now();
7679
7679
  let c = "pending", l = 0, u, f = null, p = [], h = [];
7680
7680
  typeof r == "function" && h.push(r);
7681
- function x() {
7681
+ function b() {
7682
7682
  f && (clearTimeout(f), f = null);
7683
7683
  }
7684
7684
  function _() {
7685
- c === "pending" && (c = "aborted"), x(), p.forEach((A) => {
7685
+ c === "pending" && (c = "aborted"), b(), p.forEach((A) => {
7686
7686
  A.status === "pending" && (A.status = "aborted");
7687
7687
  }), p = [];
7688
7688
  }
7689
7689
  function y(A, R) {
7690
7690
  R && (h = []), typeof A == "function" && h.push(A);
7691
7691
  }
7692
- function b() {
7692
+ function x() {
7693
7693
  return {
7694
7694
  startTime: o,
7695
7695
  payload: e,
@@ -7727,10 +7727,10 @@ function Tv(t, e, n, r) {
7727
7727
  return;
7728
7728
  }
7729
7729
  if (H) {
7730
- u = N, p.length || (i.length ? S() : w());
7730
+ u = N, p.length || (i.length ? C() : w());
7731
7731
  return;
7732
7732
  }
7733
- if (x(), $(), !t.random) {
7733
+ if (b(), $(), !t.random) {
7734
7734
  const de = t.resources.indexOf(A.resource);
7735
7735
  de !== -1 && de !== t.index && (t.index = de);
7736
7736
  }
@@ -7738,15 +7738,15 @@ function Tv(t, e, n, r) {
7738
7738
  de(N);
7739
7739
  });
7740
7740
  }
7741
- function S() {
7741
+ function C() {
7742
7742
  if (c !== "pending")
7743
7743
  return;
7744
- x();
7744
+ b();
7745
7745
  const A = i.shift();
7746
7746
  if (A === void 0) {
7747
7747
  if (p.length) {
7748
7748
  f = setTimeout(() => {
7749
- x(), c === "pending" && ($(), w());
7749
+ b(), c === "pending" && ($(), w());
7750
7750
  }, t.timeout);
7751
7751
  return;
7752
7752
  }
@@ -7760,9 +7760,9 @@ function Tv(t, e, n, r) {
7760
7760
  L(R, N, H);
7761
7761
  }
7762
7762
  };
7763
- p.push(R), l++, f = setTimeout(S, t.rotate), n(A, e, R.callback);
7763
+ p.push(R), l++, f = setTimeout(C, t.rotate), n(A, e, R.callback);
7764
7764
  }
7765
- return setTimeout(S), b;
7765
+ return setTimeout(C), x;
7766
7766
  }
7767
7767
  function eo(t) {
7768
7768
  const e = {
@@ -7813,7 +7813,7 @@ function Sv(t) {
7813
7813
  }
7814
7814
  return ns[t];
7815
7815
  }
7816
- function Ev(t, e, n) {
7816
+ function Cv(t, e, n) {
7817
7817
  let r, s;
7818
7818
  if (typeof t == "string") {
7819
7819
  const a = xs(t);
@@ -7832,9 +7832,9 @@ function Ev(t, e, n) {
7832
7832
  }
7833
7833
  return !r || !s ? (n(void 0, 424), Sa) : r.query(e, s, n)().abort;
7834
7834
  }
7835
- function Ea() {
7835
+ function Ca() {
7836
7836
  }
7837
- function Cv(t) {
7837
+ function Ev(t) {
7838
7838
  t.iconsLoaderFlag || (t.iconsLoaderFlag = !0, setTimeout(() => {
7839
7839
  t.iconsLoaderFlag = !1, _v(t);
7840
7840
  }));
@@ -7864,9 +7864,9 @@ function Mn(t, e, n) {
7864
7864
  } catch (s) {
7865
7865
  console.error(s);
7866
7866
  }
7867
- r(), Cv(t);
7867
+ r(), Ev(t);
7868
7868
  }
7869
- function Ca(t, e) {
7869
+ function Ea(t, e) {
7870
7870
  t instanceof Promise ? t.then((n) => {
7871
7871
  e(n);
7872
7872
  }).catch(() => {
@@ -7881,7 +7881,7 @@ function Av(t, e) {
7881
7881
  return;
7882
7882
  const a = t.loadIcon;
7883
7883
  if (t.loadIcons && (s.length > 1 || !a)) {
7884
- Ca(
7884
+ Ea(
7885
7885
  t.loadIcons(s, r, n),
7886
7886
  (u) => {
7887
7887
  Mn(t, s, u);
@@ -7892,7 +7892,7 @@ function Av(t, e) {
7892
7892
  if (a) {
7893
7893
  s.forEach((u) => {
7894
7894
  const f = a(u, r, n);
7895
- Ca(f, (p) => {
7895
+ Ea(f, (p) => {
7896
7896
  const h = p ? {
7897
7897
  prefix: r,
7898
7898
  icons: {
@@ -7913,7 +7913,7 @@ function Av(t, e) {
7913
7913
  return;
7914
7914
  }
7915
7915
  c.prepare(n, r, i).forEach((u) => {
7916
- Ev(n, u, (f) => {
7916
+ Cv(n, u, (f) => {
7917
7917
  Mn(t, u.icons, f);
7918
7918
  });
7919
7919
  });
@@ -7928,7 +7928,7 @@ const Lv = (t, e) => {
7928
7928
  r.loaded,
7929
7929
  r.missing,
7930
7930
  r.pending,
7931
- Ea
7931
+ Ca
7932
7932
  );
7933
7933
  }), () => {
7934
7934
  c = !1;
@@ -7949,7 +7949,7 @@ const Lv = (t, e) => {
7949
7949
  }), a.forEach((c) => {
7950
7950
  const l = s[c.provider][c.prefix];
7951
7951
  l.length && Av(c, l);
7952
- }), e ? yv(e, r, a) : Ea;
7952
+ }), e ? yv(e, r, a) : Ca;
7953
7953
  };
7954
7954
  function jv(t, e) {
7955
7955
  const n = {
@@ -8050,10 +8050,10 @@ function Hv(t, e) {
8050
8050
  const n = jv(Ia, e), r = e.mode || "svg", s = r === "svg" ? { ...Uv } : {};
8051
8051
  t.body.indexOf("xlink:") === -1 && delete s["xmlns:xlink"];
8052
8052
  let a = typeof e.style == "string" ? e.style : "";
8053
- for (let b in e) {
8054
- const w = e[b];
8053
+ for (let x in e) {
8054
+ const w = e[x];
8055
8055
  if (w !== void 0)
8056
- switch (b) {
8056
+ switch (x) {
8057
8057
  case "icon":
8058
8058
  case "style":
8059
8059
  case "onLoad":
@@ -8063,7 +8063,7 @@ function Hv(t, e) {
8063
8063
  case "inline":
8064
8064
  case "hFlip":
8065
8065
  case "vFlip":
8066
- n[b] = w === !0 || w === "true" || w === 1;
8066
+ n[x] = w === !0 || w === "true" || w === 1;
8067
8067
  break;
8068
8068
  case "flip":
8069
8069
  typeof w == "string" && Fv(n, w);
@@ -8072,42 +8072,42 @@ function Hv(t, e) {
8072
8072
  a = a + (a.length > 0 && a.trim().slice(-1) !== ";" ? ";" : "") + "color: " + w + "; ";
8073
8073
  break;
8074
8074
  case "rotate":
8075
- typeof w == "string" ? n[b] = Dv(w) : typeof w == "number" && (n[b] = w);
8075
+ typeof w == "string" ? n[x] = Dv(w) : typeof w == "number" && (n[x] = w);
8076
8076
  break;
8077
8077
  case "ariaHidden":
8078
8078
  case "aria-hidden":
8079
8079
  w !== !0 && w !== "true" && delete s["aria-hidden"];
8080
8080
  break;
8081
8081
  default:
8082
- if (b.slice(0, 3) === "on:")
8082
+ if (x.slice(0, 3) === "on:")
8083
8083
  break;
8084
- Ia[b] === void 0 && (s[b] = w);
8084
+ Ia[x] === void 0 && (s[x] = w);
8085
8085
  }
8086
8086
  }
8087
8087
  const i = iv(t, n), o = i.attributes;
8088
8088
  if (n.inline && (a = "vertical-align: -0.125em; " + a), r === "svg") {
8089
8089
  Object.assign(s, o), a !== "" && (s.style = a);
8090
- let b = 0, w = e.id;
8090
+ let x = 0, w = e.id;
8091
8091
  return typeof w == "string" && (w = w.replace(/-/g, "_")), {
8092
8092
  svg: !0,
8093
8093
  attributes: s,
8094
- body: uv(i.body, w ? () => w + "ID" + b++ : "iconifySvelte")
8094
+ body: uv(i.body, w ? () => w + "ID" + x++ : "iconifySvelte")
8095
8095
  };
8096
8096
  }
8097
8097
  const { body: c, width: l, height: u } = t, f = r === "mask" || (r === "bg" ? !1 : c.indexOf("currentColor") !== -1), p = Ov(c, {
8098
8098
  ...o,
8099
8099
  width: l + "",
8100
8100
  height: u + ""
8101
- }), x = {
8101
+ }), b = {
8102
8102
  "--svg": Nv(p)
8103
- }, _ = (b) => {
8104
- const w = o[b];
8105
- w && (x[b] = qv(w));
8103
+ }, _ = (x) => {
8104
+ const w = o[x];
8105
+ w && (b[x] = qv(w));
8106
8106
  };
8107
- _("width"), _("height"), Object.assign(x, Bv, f ? ws : to);
8107
+ _("width"), _("height"), Object.assign(b, Bv, f ? ws : to);
8108
8108
  let y = "";
8109
- for (const b in x)
8110
- y += b + ": " + x[b] + ";";
8109
+ for (const x in b)
8110
+ y += x + ": " + b[x] + ";";
8111
8111
  return s.style = y + a, {
8112
8112
  svg: !1,
8113
8113
  attributes: s
@@ -8207,24 +8207,24 @@ function nn(t, e) {
8207
8207
  const p = !!n.ssr || d(s), h = Yv(n.icon, d(r), p, c, o);
8208
8208
  m(i, h ? ja(h.data, n) : null), d(i) && h.classes && Xr(i, d(i).attributes.class = (typeof n.class == "string" ? n.class + " " : "") + h.classes.join(" "));
8209
8209
  }
8210
- ), Kn(), mt();
8210
+ ), Kn(), bt();
8211
8211
  var l = _t(), u = tt(l);
8212
8212
  {
8213
8213
  var f = (p) => {
8214
- var h = _t(), x = tt(h);
8214
+ var h = _t(), b = tt(h);
8215
8215
  {
8216
- var _ = (b) => {
8216
+ var _ = (x) => {
8217
8217
  var w = Gv();
8218
8218
  let $;
8219
8219
  var L = z(w);
8220
- ps(L, () => d(i).body, !0, !1), k(w), M(() => $ = ua(w, $, { ...d(i).attributes }, void 0, !0)), T(b, w);
8221
- }, y = (b) => {
8220
+ ps(L, () => d(i).body, !0, !1), k(w), M(() => $ = ua(w, $, { ...d(i).attributes }, void 0, !0)), T(x, w);
8221
+ }, y = (x) => {
8222
8222
  var w = Jv();
8223
8223
  let $;
8224
- M(() => $ = ua(w, $, { ...d(i).attributes })), T(b, w);
8224
+ M(() => $ = ua(w, $, { ...d(i).attributes })), T(x, w);
8225
8225
  };
8226
- ee(x, (b) => {
8227
- d(i).svg ? b(_) : b(y, !1);
8226
+ ee(b, (x) => {
8227
+ d(i).svg ? x(_) : x(y, !1);
8228
8228
  });
8229
8229
  }
8230
8230
  T(p, h);
@@ -8352,7 +8352,7 @@ const ct = {
8352
8352
  lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
8353
8353
  paragraph: ze(Js).replace("hr", nr).replace("heading", ` *#{1,6} *[^
8354
8354
  ]`).replace("lheading", so).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
8355
- }, ig = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, og = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, io = /^( {2,}|\\)\n(?!\s*$)/, lg = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, Yr = /[\p{P}\p{S}]/u, Vs = /[\s\p{P}\p{S}]/u, oo = /[^\s\p{P}\p{S}]/u, cg = ze(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, Vs).getRegex(), lo = /(?!~)[\p{P}\p{S}]/u, ug = /(?!~)[\s\p{P}\p{S}]/u, dg = /(?:[^\s\p{P}\p{S}]|~)/u, fg = /\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g, co = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, pg = ze(co, "u").replace(/punct/g, Yr).getRegex(), hg = ze(co, "u").replace(/punct/g, lo).getRegex(), uo = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", vg = ze(uo, "gu").replace(/notPunctSpace/g, oo).replace(/punctSpace/g, Vs).replace(/punct/g, Yr).getRegex(), gg = ze(uo, "gu").replace(/notPunctSpace/g, dg).replace(/punctSpace/g, ug).replace(/punct/g, lo).getRegex(), mg = ze("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, oo).replace(/punctSpace/g, Vs).replace(/punct/g, Yr).getRegex(), bg = ze(/\\(punct)/, "gu").replace(/punct/g, Yr).getRegex(), xg = ze(/^<(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(), wg = ze(Zs).replace("(?:-->|$)", "-->").getRegex(), _g = ze("^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", wg).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), Er = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, kg = ze(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label", Er).replace("href", /<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), fo = ze(/^!?\[(label)\]\[(ref)\]/).replace("label", Er).replace("ref", Ws).getRegex(), po = ze(/^!?\[(ref)\](?:\[\])?/).replace("ref", Ws).getRegex(), yg = ze("reflink|nolink(?!\\()", "g").replace("reflink", fo).replace("nolink", po).getRegex(), Qs = {
8355
+ }, ig = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, og = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, io = /^( {2,}|\\)\n(?!\s*$)/, lg = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, Yr = /[\p{P}\p{S}]/u, Vs = /[\s\p{P}\p{S}]/u, oo = /[^\s\p{P}\p{S}]/u, cg = ze(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, Vs).getRegex(), lo = /(?!~)[\p{P}\p{S}]/u, ug = /(?!~)[\s\p{P}\p{S}]/u, dg = /(?:[^\s\p{P}\p{S}]|~)/u, fg = /\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g, co = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, pg = ze(co, "u").replace(/punct/g, Yr).getRegex(), hg = ze(co, "u").replace(/punct/g, lo).getRegex(), uo = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", vg = ze(uo, "gu").replace(/notPunctSpace/g, oo).replace(/punctSpace/g, Vs).replace(/punct/g, Yr).getRegex(), gg = ze(uo, "gu").replace(/notPunctSpace/g, dg).replace(/punctSpace/g, ug).replace(/punct/g, lo).getRegex(), mg = ze("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, oo).replace(/punctSpace/g, Vs).replace(/punct/g, Yr).getRegex(), bg = ze(/\\(punct)/, "gu").replace(/punct/g, Yr).getRegex(), xg = ze(/^<(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(), wg = ze(Zs).replace("(?:-->|$)", "-->").getRegex(), _g = ze("^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", wg).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), Cr = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, kg = ze(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label", Cr).replace("href", /<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), fo = ze(/^!?\[(label)\]\[(ref)\]/).replace("label", Cr).replace("ref", Ws).getRegex(), po = ze(/^!?\[(ref)\](?:\[\])?/).replace("ref", Ws).getRegex(), yg = ze("reflink|nolink(?!\\()", "g").replace("reflink", fo).replace("nolink", po).getRegex(), Qs = {
8356
8356
  _backpedal: Hn,
8357
8357
  // only used for GFM url
8358
8358
  anyPunctuation: bg,
@@ -8375,8 +8375,8 @@ const ct = {
8375
8375
  url: Hn
8376
8376
  }, zg = {
8377
8377
  ...Qs,
8378
- link: ze(/^!?\[(label)\]\((.*?)\)/).replace("label", Er).getRegex(),
8379
- reflink: ze(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", Er).getRegex()
8378
+ link: ze(/^!?\[(label)\]\((.*?)\)/).replace("label", Cr).getRegex(),
8379
+ reflink: ze(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", Cr).getRegex()
8380
8380
  }, _s = {
8381
8381
  ...Qs,
8382
8382
  emStrongRDelimAst: gg,
@@ -8484,7 +8484,7 @@ function Pa(t, e, n, r, s) {
8484
8484
  text: o
8485
8485
  };
8486
8486
  }
8487
- function Eg(t, e, n) {
8487
+ function Cg(t, e, n) {
8488
8488
  const r = t.match(n.other.indentCodeCompensation);
8489
8489
  if (r === null)
8490
8490
  return e;
@@ -8499,13 +8499,13 @@ function Eg(t, e, n) {
8499
8499
  }).join(`
8500
8500
  `);
8501
8501
  }
8502
- class Cr {
8502
+ class Er {
8503
8503
  // set by the lexer
8504
8504
  constructor(e) {
8505
- C(this, "options");
8506
- C(this, "rules");
8505
+ E(this, "options");
8506
+ E(this, "rules");
8507
8507
  // set by the lexer
8508
- C(this, "lexer");
8508
+ E(this, "lexer");
8509
8509
  this.options = e || wn;
8510
8510
  }
8511
8511
  space(e) {
@@ -8532,7 +8532,7 @@ class Cr {
8532
8532
  fences(e) {
8533
8533
  const n = this.rules.block.fences.exec(e);
8534
8534
  if (n) {
8535
- const r = n[0], s = Eg(r, n[3] || "", this.rules);
8535
+ const r = n[0], s = Cg(r, n[3] || "", this.rules);
8536
8536
  return {
8537
8537
  type: "code",
8538
8538
  raw: r,
@@ -8599,16 +8599,16 @@ ${f}` : f;
8599
8599
  if ((h == null ? void 0 : h.type) === "code")
8600
8600
  break;
8601
8601
  if ((h == null ? void 0 : h.type) === "blockquote") {
8602
- const x = h, _ = x.raw + `
8602
+ const b = h, _ = b.raw + `
8603
8603
  ` + r.join(`
8604
8604
  `), y = this.blockquote(_);
8605
- i[i.length - 1] = y, s = s.substring(0, s.length - x.raw.length) + y.raw, a = a.substring(0, a.length - x.text.length) + y.text;
8605
+ i[i.length - 1] = y, s = s.substring(0, s.length - b.raw.length) + y.raw, a = a.substring(0, a.length - b.text.length) + y.text;
8606
8606
  break;
8607
8607
  } else if ((h == null ? void 0 : h.type) === "list") {
8608
- const x = h, _ = x.raw + `
8608
+ const b = h, _ = b.raw + `
8609
8609
  ` + r.join(`
8610
8610
  `), y = this.list(_);
8611
- i[i.length - 1] = y, s = s.substring(0, s.length - h.raw.length) + y.raw, a = a.substring(0, a.length - x.raw.length) + y.raw, r = _.substring(i.at(-1).raw.length).split(`
8611
+ i[i.length - 1] = y, s = s.substring(0, s.length - h.raw.length) + y.raw, a = a.substring(0, a.length - b.raw.length) + y.raw, r = _.substring(i.at(-1).raw.length).split(`
8612
8612
  `);
8613
8613
  continue;
8614
8614
  }
@@ -8643,36 +8643,36 @@ ${f}` : f;
8643
8643
  u = n[0], e = e.substring(u.length);
8644
8644
  let p = n[2].split(`
8645
8645
  `, 1)[0].replace(this.rules.other.listReplaceTabs, (w) => " ".repeat(3 * w.length)), h = e.split(`
8646
- `, 1)[0], x = !p.trim(), _ = 0;
8647
- if (this.options.pedantic ? (_ = 2, f = p.trimStart()) : x ? _ = n[1].length + 1 : (_ = n[2].search(this.rules.other.nonSpaceChar), _ = _ > 4 ? 1 : _, f = p.slice(_), _ += n[1].length), x && this.rules.other.blankLine.test(h) && (u += h + `
8646
+ `, 1)[0], b = !p.trim(), _ = 0;
8647
+ if (this.options.pedantic ? (_ = 2, f = p.trimStart()) : b ? _ = n[1].length + 1 : (_ = n[2].search(this.rules.other.nonSpaceChar), _ = _ > 4 ? 1 : _, f = p.slice(_), _ += n[1].length), b && this.rules.other.blankLine.test(h) && (u += h + `
8648
8648
  `, e = e.substring(h.length + 1), l = !0), !l) {
8649
- const w = this.rules.other.nextBulletRegex(_), $ = this.rules.other.hrRegex(_), L = this.rules.other.fencesBeginRegex(_), S = this.rules.other.headingBeginRegex(_), A = this.rules.other.htmlBeginRegex(_);
8649
+ const w = this.rules.other.nextBulletRegex(_), $ = this.rules.other.hrRegex(_), L = this.rules.other.fencesBeginRegex(_), C = this.rules.other.headingBeginRegex(_), A = this.rules.other.htmlBeginRegex(_);
8650
8650
  for (; e; ) {
8651
8651
  const R = e.split(`
8652
8652
  `, 1)[0];
8653
8653
  let N;
8654
- if (h = R, this.options.pedantic ? (h = h.replace(this.rules.other.listReplaceNesting, " "), N = h) : N = h.replace(this.rules.other.tabCharGlobal, " "), L.test(h) || S.test(h) || A.test(h) || w.test(h) || $.test(h))
8654
+ if (h = R, this.options.pedantic ? (h = h.replace(this.rules.other.listReplaceNesting, " "), N = h) : N = h.replace(this.rules.other.tabCharGlobal, " "), L.test(h) || C.test(h) || A.test(h) || w.test(h) || $.test(h))
8655
8655
  break;
8656
8656
  if (N.search(this.rules.other.nonSpaceChar) >= _ || !h.trim())
8657
8657
  f += `
8658
8658
  ` + N.slice(_);
8659
8659
  else {
8660
- if (x || p.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || L.test(p) || S.test(p) || $.test(p))
8660
+ if (b || p.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || L.test(p) || C.test(p) || $.test(p))
8661
8661
  break;
8662
8662
  f += `
8663
8663
  ` + h;
8664
8664
  }
8665
- !x && !h.trim() && (x = !0), u += R + `
8665
+ !b && !h.trim() && (b = !0), u += R + `
8666
8666
  `, e = e.substring(R.length + 1), p = N.slice(_);
8667
8667
  }
8668
8668
  }
8669
8669
  a.loose || (o ? a.loose = !0 : this.rules.other.doubleBlankLine.test(u) && (o = !0));
8670
- let y = null, b;
8671
- this.options.gfm && (y = this.rules.other.listIsTask.exec(f), y && (b = y[0] !== "[ ] ", f = f.replace(this.rules.other.listReplaceTask, ""))), a.items.push({
8670
+ let y = null, x;
8671
+ this.options.gfm && (y = this.rules.other.listIsTask.exec(f), y && (x = y[0] !== "[ ] ", f = f.replace(this.rules.other.listReplaceTask, ""))), a.items.push({
8672
8672
  type: "list_item",
8673
8673
  raw: u,
8674
8674
  task: !!y,
8675
- checked: b,
8675
+ checked: x,
8676
8676
  loose: !1,
8677
8677
  text: f,
8678
8678
  tokens: []
@@ -8882,12 +8882,12 @@ ${f}` : f;
8882
8882
  tokens: this.lexer.inlineTokens(_)
8883
8883
  };
8884
8884
  }
8885
- const x = h.slice(2, -2);
8885
+ const b = h.slice(2, -2);
8886
8886
  return {
8887
8887
  type: "strong",
8888
8888
  raw: h,
8889
- text: x,
8890
- tokens: this.lexer.inlineTokens(x)
8889
+ text: b,
8890
+ tokens: this.lexer.inlineTokens(b)
8891
8891
  };
8892
8892
  }
8893
8893
  }
@@ -8985,12 +8985,12 @@ ${f}` : f;
8985
8985
  }
8986
8986
  class Tt {
8987
8987
  constructor(e) {
8988
- C(this, "tokens");
8989
- C(this, "options");
8990
- C(this, "state");
8991
- C(this, "tokenizer");
8992
- C(this, "inlineQueue");
8993
- this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = e || wn, this.options.tokenizer = this.options.tokenizer || new Cr(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = {
8988
+ E(this, "tokens");
8989
+ E(this, "options");
8990
+ E(this, "state");
8991
+ E(this, "tokenizer");
8992
+ E(this, "inlineQueue");
8993
+ this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = e || wn, this.options.tokenizer = this.options.tokenizer || new Er(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = {
8994
8994
  inLink: !1,
8995
8995
  inRawBlock: !1,
8996
8996
  top: !0
@@ -9205,9 +9205,9 @@ class Tt {
9205
9205
  if ((l = this.options.extensions) != null && l.startInline) {
9206
9206
  let p = 1 / 0;
9207
9207
  const h = e.slice(1);
9208
- let x;
9208
+ let b;
9209
9209
  this.options.extensions.startInline.forEach((_) => {
9210
- x = _.call({ lexer: this }, h), typeof x == "number" && x >= 0 && (p = Math.min(p, x));
9210
+ b = _.call({ lexer: this }, h), typeof b == "number" && b >= 0 && (p = Math.min(p, b));
9211
9211
  }), p < 1 / 0 && p >= 0 && (f = e.substring(0, p + 1));
9212
9212
  }
9213
9213
  if (u = this.tokenizer.inlineText(f)) {
@@ -9231,8 +9231,8 @@ class Tt {
9231
9231
  class Ir {
9232
9232
  // set by the parser
9233
9233
  constructor(e) {
9234
- C(this, "options");
9235
- C(this, "parser");
9234
+ E(this, "options");
9235
+ E(this, "parser");
9236
9236
  this.options = e || wn;
9237
9237
  }
9238
9238
  space(e) {
@@ -9395,9 +9395,9 @@ class Ks {
9395
9395
  }
9396
9396
  class St {
9397
9397
  constructor(e) {
9398
- C(this, "options");
9399
- C(this, "renderer");
9400
- C(this, "textRenderer");
9398
+ E(this, "options");
9399
+ E(this, "renderer");
9400
+ E(this, "textRenderer");
9401
9401
  this.options = e || wn, this.options.renderer = this.options.renderer || new Ir(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new Ks();
9402
9402
  }
9403
9403
  /**
@@ -9558,8 +9558,8 @@ class St {
9558
9558
  }
9559
9559
  class Yn {
9560
9560
  constructor(e) {
9561
- C(this, "options");
9562
- C(this, "block");
9561
+ E(this, "options");
9562
+ E(this, "block");
9563
9563
  this.options = e || wn;
9564
9564
  }
9565
9565
  /**
@@ -9593,23 +9593,23 @@ class Yn {
9593
9593
  return this.block ? St.parse : St.parseInline;
9594
9594
  }
9595
9595
  }
9596
- C(Yn, "passThroughHooks", /* @__PURE__ */ new Set([
9596
+ E(Yn, "passThroughHooks", /* @__PURE__ */ new Set([
9597
9597
  "preprocess",
9598
9598
  "postprocess",
9599
9599
  "processAllTokens"
9600
9600
  ]));
9601
- class Cg {
9601
+ class Eg {
9602
9602
  constructor(...e) {
9603
- C(this, "defaults", Ys());
9604
- C(this, "options", this.setOptions);
9605
- C(this, "parse", this.parseMarkdown(!0));
9606
- C(this, "parseInline", this.parseMarkdown(!1));
9607
- C(this, "Parser", St);
9608
- C(this, "Renderer", Ir);
9609
- C(this, "TextRenderer", Ks);
9610
- C(this, "Lexer", Tt);
9611
- C(this, "Tokenizer", Cr);
9612
- C(this, "Hooks", Yn);
9603
+ E(this, "defaults", Ys());
9604
+ E(this, "options", this.setOptions);
9605
+ E(this, "parse", this.parseMarkdown(!0));
9606
+ E(this, "parseInline", this.parseMarkdown(!1));
9607
+ E(this, "Parser", St);
9608
+ E(this, "Renderer", Ir);
9609
+ E(this, "TextRenderer", Ks);
9610
+ E(this, "Lexer", Tt);
9611
+ E(this, "Tokenizer", Er);
9612
+ E(this, "Hooks", Yn);
9613
9613
  this.use(...e);
9614
9614
  }
9615
9615
  /**
@@ -9681,7 +9681,7 @@ class Cg {
9681
9681
  s.renderer = a;
9682
9682
  }
9683
9683
  if (r.tokenizer) {
9684
- const a = this.defaults.tokenizer || new Cr(this.defaults);
9684
+ const a = this.defaults.tokenizer || new Er(this.defaults);
9685
9685
  for (const i in r.tokenizer) {
9686
9686
  if (!(i in a))
9687
9687
  throw new Error(`tokenizer '${i}' does not exist`);
@@ -9771,7 +9771,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
9771
9771
  };
9772
9772
  }
9773
9773
  }
9774
- const vn = new Cg();
9774
+ const vn = new Eg();
9775
9775
  function ye(t, e) {
9776
9776
  return vn.parse(t, e);
9777
9777
  }
@@ -9793,7 +9793,7 @@ ye.Renderer = Ir;
9793
9793
  ye.TextRenderer = Ks;
9794
9794
  ye.Lexer = Tt;
9795
9795
  ye.lexer = Tt.lex;
9796
- ye.Tokenizer = Cr;
9796
+ ye.Tokenizer = Er;
9797
9797
  ye.Hooks = Yn;
9798
9798
  ye.parse = ye;
9799
9799
  ye.options;
@@ -9823,64 +9823,64 @@ const Mg = {
9823
9823
  };
9824
9824
  function ks(t, e) {
9825
9825
  le(e, !0), pe(t, Mg);
9826
- let n = g(e, "isDropdownOpen", 15), r = g(e, "attachmentList", 15), s = g(e, "userLevel", 15), a = J(E({})), i = J(E(/* @__PURE__ */ es()));
9827
- const o = (b, w) => {
9828
- d(a)[b] = w;
9826
+ let n = g(e, "isDropdownOpen", 15), r = g(e, "attachmentList", 15), s = g(e, "userLevel", 15), a = J(S({})), i = J(S(/* @__PURE__ */ es()));
9827
+ const o = (x, w) => {
9828
+ d(a)[x] = w;
9829
9829
  }, c = () => {
9830
- m(i, E(/* @__PURE__ */ fd())), setTimeout(
9830
+ m(i, S(/* @__PURE__ */ fd())), setTimeout(
9831
9831
  () => {
9832
- m(i, E(/* @__PURE__ */ es()));
9832
+ m(i, S(/* @__PURE__ */ es()));
9833
9833
  },
9834
9834
  2e3
9835
9835
  );
9836
- }, l = async (b, w, $) => {
9837
- await wt.getDocumentPage(b, w, $);
9838
- }, u = async (b, w, $) => {
9836
+ }, l = async (x, w, $) => {
9837
+ await wt.getDocumentPage(x, w, $);
9838
+ }, u = async (x, w, $) => {
9839
9839
  if (!Yp(s(), w)) {
9840
9840
  console.error("L'utente non ha il permesso di scaricare PDF normativi.");
9841
9841
  return;
9842
9842
  }
9843
- const L = lr(b, $);
9843
+ const L = lr(x, $);
9844
9844
  o(L, !0);
9845
9845
  try {
9846
- const S = await wt.downloadForgePdf(b, w), A = window.URL.createObjectURL(S), R = document.createElement("a");
9846
+ const C = await wt.downloadForgePdf(x, w), A = window.URL.createObjectURL(C), R = document.createElement("a");
9847
9847
  R.href = A, R.download = `${$.split(".")[0]}.pdf`, document.body.appendChild(R), R.click(), R.remove(), window.URL.revokeObjectURL(A);
9848
- } catch (S) {
9849
- console.error("Errore durante il download del PDF:", S);
9848
+ } catch (C) {
9849
+ console.error("Errore durante il download del PDF:", C);
9850
9850
  } finally {
9851
9851
  o(L, !1);
9852
9852
  }
9853
- }, f = async (b, w, $) => {
9854
- const L = lr(b, $);
9853
+ }, f = async (x, w, $) => {
9854
+ const L = lr(x, $);
9855
9855
  o(L, !0);
9856
9856
  try {
9857
- const S = await wt.getForgeSingle(b, w), A = S.additionalReference || S.url;
9857
+ const C = await wt.getForgeSingle(x, w), A = C.additionalReference || C.url;
9858
9858
  window.open(A, "_blank");
9859
- } catch (S) {
9860
- console.error("Errore durante il recupero del link:", S);
9859
+ } catch (C) {
9860
+ console.error("Errore durante il recupero del link:", C);
9861
9861
  } finally {
9862
9862
  o(L, !1);
9863
9863
  }
9864
- }, p = async (b, w) => {
9865
- const $ = lr(b, w);
9864
+ }, p = async (x, w) => {
9865
+ const $ = lr(x, w);
9866
9866
  o($, !0);
9867
9867
  try {
9868
- const L = await wt.getMeetingSingle(b);
9868
+ const L = await wt.getMeetingSingle(x);
9869
9869
  window.open(L.meetingUrl, "_blank");
9870
9870
  } catch (L) {
9871
9871
  console.error("Errore durante il recupero del link TLDV:", L);
9872
9872
  } finally {
9873
9873
  o($, !1);
9874
9874
  }
9875
- }, h = async (b) => {
9875
+ }, h = async (x) => {
9876
9876
  const {
9877
9877
  external_id: w,
9878
9878
  filename: $,
9879
9879
  gendoc_id: L,
9880
- isCommon: S,
9880
+ isCommon: C,
9881
9881
  commonType: A
9882
- } = b;
9883
- if (!S) {
9882
+ } = x;
9883
+ if (!C) {
9884
9884
  await l(w, $, L);
9885
9885
  return;
9886
9886
  }
@@ -9891,16 +9891,16 @@ function ks(t, e) {
9891
9891
  const R = Pi($);
9892
9892
  !Np($) || R === "mp3" ? await f(w, A || "", $) : await u(w, A || "", $);
9893
9893
  };
9894
- var x = Pg(), _ = z(x);
9894
+ var b = Pg(), _ = z(b);
9895
9895
  {
9896
- var y = (b) => {
9896
+ var y = (x) => {
9897
9897
  var w = Og(), $ = z(w);
9898
9898
  {
9899
- var L = (S) => {
9899
+ var L = (C) => {
9900
9900
  var A = Dg(), R = O(z(A), 2);
9901
9901
  st(R, 21, r, rt, (Te, Se) => {
9902
9902
  var ae = Fg();
9903
- const Je = /* @__PURE__ */ He(() => lr(d(Se).external_id, d(Se).filename)), Qe = /* @__PURE__ */ He(() => Hp(d(Se))), at = /* @__PURE__ */ He(() => d(a)[d(Je)]), ut = /* @__PURE__ */ He(() => Gp(d(Se), s())), j = /* @__PURE__ */ He(() => Mi(d(Se))), te = /* @__PURE__ */ He(() => Ni(d(Se))), Ee = /* @__PURE__ */ He(() => d(Se).isCommon ? tr(d(Se).commonType).name : /* @__PURE__ */ ba());
9903
+ const Je = /* @__PURE__ */ He(() => lr(d(Se).external_id, d(Se).filename)), Qe = /* @__PURE__ */ He(() => Hp(d(Se))), at = /* @__PURE__ */ He(() => d(a)[d(Je)]), ut = /* @__PURE__ */ He(() => Gp(d(Se), s())), j = /* @__PURE__ */ He(() => Mi(d(Se))), te = /* @__PURE__ */ He(() => Ni(d(Se))), Ce = /* @__PURE__ */ He(() => d(Se).isCommon ? tr(d(Se).commonType).name : /* @__PURE__ */ ba());
9904
9904
  ae.__click = [Ag, h, Se];
9905
9905
  var Le = z(ae);
9906
9906
  {
@@ -9931,7 +9931,7 @@ function ks(t, e) {
9931
9931
  }
9932
9932
  k(Ye), k(ae), M(
9933
9933
  (q) => {
9934
- lt(ae, `${`dropdown-option ${d(ut) ? "common" : ""}` ?? ""} svelte-173vhzm`), B(ae, "aria-label", q), B(ae, "title", d(Ee)), ae.disabled = d(at), _e($e, d(j));
9934
+ lt(ae, `${`dropdown-option ${d(ut) ? "common" : ""}` ?? ""} svelte-173vhzm`), B(ae, "aria-label", q), B(ae, "title", d(Ce)), ae.disabled = d(at), _e($e, d(j));
9935
9935
  },
9936
9936
  [() => /* @__PURE__ */ ba()]
9937
9937
  ), T(Te, ae);
@@ -9948,36 +9948,36 @@ function ks(t, e) {
9948
9948
  B(H, "aria-label", Te), B(H, "title", Te), _e(Xe, d(i));
9949
9949
  },
9950
9950
  [() => /* @__PURE__ */ es()]
9951
- ), $t(3, A, () => rc, () => ({ duration: 300 })), T(S, A);
9951
+ ), $t(3, A, () => rc, () => ({ duration: 300 })), T(C, A);
9952
9952
  };
9953
- ee($, (S) => {
9954
- n() && S(L);
9953
+ ee($, (C) => {
9954
+ n() && C(L);
9955
9955
  });
9956
9956
  }
9957
- k(w), T(b, w);
9957
+ k(w), T(x, w);
9958
9958
  };
9959
- ee(_, (b) => {
9960
- r().length > 0 && b(y);
9959
+ ee(_, (x) => {
9960
+ r().length > 0 && x(y);
9961
9961
  });
9962
9962
  }
9963
- return k(x), T(t, x), ce({
9963
+ return k(b), T(t, b), ce({
9964
9964
  get isDropdownOpen() {
9965
9965
  return n();
9966
9966
  },
9967
- set isDropdownOpen(b) {
9968
- n(b), v();
9967
+ set isDropdownOpen(x) {
9968
+ n(x), v();
9969
9969
  },
9970
9970
  get attachmentList() {
9971
9971
  return r();
9972
9972
  },
9973
- set attachmentList(b) {
9974
- r(b), v();
9973
+ set attachmentList(x) {
9974
+ r(x), v();
9975
9975
  },
9976
9976
  get userLevel() {
9977
9977
  return s();
9978
9978
  },
9979
- set userLevel(b) {
9980
- s(b), v();
9979
+ set userLevel(x) {
9980
+ s(x), v();
9981
9981
  }
9982
9982
  });
9983
9983
  }
@@ -10008,7 +10008,7 @@ const t0 = {
10008
10008
  };
10009
10009
  function ho(t, e) {
10010
10010
  le(e, !0), pe(t, t0);
10011
- let n = g(e, "messages", 15), r = g(e, "loading", 15), s = g(e, "error", 15), a = g(e, "streamMessage", 15), i = g(e, "streamAttachments", 15), o = g(e, "streamedAgent", 15), c = g(e, "languageSelected", 15), l = g(e, "userLevel", 15), u = g(e, "loadingChat", 15), f = J(void 0), p = J(E(new Audio())), h = J(!1), x = J(E({})), _ = J(E({})), y = J(E(n())), b = J(null), w = J(!0), $ = J(!1), L = J(!1), S = J(E(u())), A = J(!1);
10011
+ let n = g(e, "messages", 15), r = g(e, "loading", 15), s = g(e, "error", 15), a = g(e, "streamMessage", 15), i = g(e, "streamAttachments", 15), o = g(e, "streamedAgent", 15), c = g(e, "languageSelected", 15), l = g(e, "userLevel", 15), u = g(e, "loadingChat", 15), f = J(void 0), p = J(S(new Audio())), h = J(!1), b = J(S({})), _ = J(S({})), y = J(S(n())), x = J(null), w = J(!0), $ = J(!1), L = J(!1), C = J(S(u())), A = J(!1);
10012
10012
  const R = async () => {
10013
10013
  await Vr(), d(f) && (d(f).scrollTop = d(f).scrollHeight);
10014
10014
  }, N = async () => {
@@ -10018,16 +10018,16 @@ function ho(t, e) {
10018
10018
  }, de = () => {
10019
10019
  d(L) && m($, !0);
10020
10020
  }, Xe = () => {
10021
- d(L) && (m(y, E(d(b) ?? n())), m(b, null), m(w, !0), m(L, !1), m(A, !1));
10021
+ d(L) && (m(y, S(d(x) ?? n())), m(x, null), m(w, !0), m(L, !1), m(A, !1));
10022
10022
  }, Te = (j) => {
10023
10023
  Ms.getAudio(j.content, c()).then((te) => {
10024
- m(p, E(new Audio(te))), d(p).play(), m(h, !0), d(p).onended = () => {
10024
+ m(p, S(new Audio(te))), d(p).play(), m(h, !0), d(p).onended = () => {
10025
10025
  m(h, !1);
10026
10026
  };
10027
10027
  });
10028
10028
  }, Se = async (j, te) => {
10029
- const Ee = j.html ?? ye.parseInline(j.content), Le = document.createElement("div");
10030
- Le.innerHTML = Ee;
10029
+ const Ce = j.html ?? ye.parseInline(j.content), Le = document.createElement("div");
10030
+ Le.innerHTML = Ce;
10031
10031
  const Oe = Le.innerHTML, Ue = Le.textContent || Le.innerText || "";
10032
10032
  try {
10033
10033
  const Ye = new Blob([Oe], { type: "text/html" }), Be = new Blob([Ue], { type: "text/plain" }), $e = new ClipboardItem({ "text/html": Ye, "text/plain": Be });
@@ -10052,19 +10052,19 @@ function ho(t, e) {
10052
10052
  }
10053
10053
  };
10054
10054
  Lt(() => {
10055
- u() && !d(S) ? (m(L, !0), m(b, null), m($, !1), m(w, !0), N()) : !u() && d(S) && (m(b, E(n())), d($) && H()), m(S, E(u()));
10055
+ u() && !d(C) ? (m(L, !0), m(x, null), m($, !1), m(w, !0), N()) : !u() && d(C) && (m(x, S(n())), d($) && H()), m(C, S(u()));
10056
10056
  }), Lt(() => {
10057
10057
  d(L) && d($) && !u() && H();
10058
10058
  }), Lt(() => {
10059
- d(L) ? m(b, E(n())) : u() || m(y, E(n()));
10059
+ d(L) ? m(x, S(n())) : u() || m(y, S(n()));
10060
10060
  }), Lt(() => {
10061
10061
  a(), d(y), R();
10062
10062
  });
10063
10063
  var ae = e0(), Je = z(ae);
10064
10064
  {
10065
10065
  var Qe = (j) => {
10066
- var te = Qg(), Ee = O(z(te), 2);
10067
- st(Ee, 17, () => d(y), rt, ($e, Q, D) => {
10066
+ var te = Qg(), Ce = O(z(te), 2);
10067
+ st(Ce, 17, () => d(y), rt, ($e, Q, D) => {
10068
10068
  var q = _t(), V = tt(q);
10069
10069
  {
10070
10070
  var ie = (me) => {
@@ -10096,7 +10096,7 @@ function ho(t, e) {
10096
10096
  var qe = O(Ae, 2), et = z(qe), P = z(et);
10097
10097
  {
10098
10098
  var G = (re) => {
10099
- var fe = /* @__PURE__ */ He(() => d(x)[D] || !1);
10099
+ var fe = /* @__PURE__ */ He(() => d(b)[D] || !1);
10100
10100
  ks(re, {
10101
10101
  get isDropdownOpen() {
10102
10102
  return d(fe);
@@ -10135,13 +10135,13 @@ function ho(t, e) {
10135
10135
  {
10136
10136
  var ot = (re) => {
10137
10137
  var fe = Yg();
10138
- fe.__click = () => d(x)[D] = !d(x)[D];
10138
+ fe.__click = () => d(b)[D] = !d(b)[D];
10139
10139
  var se = z(fe), Re = z(se);
10140
10140
  k(se);
10141
10141
  var Pe = O(se, 2);
10142
10142
  k(fe), M(
10143
10143
  (Y) => {
10144
- _e(Re, `${Y ?? ""} (${d(Q).attachments.length ?? ""})`), lt(Pe, `${`fa-solid fa-chevron-${d(x)[D] ? "up" : "down"}` ?? ""} svelte-1c80pjc`);
10144
+ _e(Re, `${Y ?? ""} (${d(Q).attachments.length ?? ""})`), lt(Pe, `${`fa-solid fa-chevron-${d(b)[D] ? "up" : "down"}` ?? ""} svelte-1c80pjc`);
10145
10145
  },
10146
10146
  [() => /* @__PURE__ */ nd()]
10147
10147
  ), T(re, fe);
@@ -10180,7 +10180,7 @@ function ho(t, e) {
10180
10180
  }
10181
10181
  T($e, q);
10182
10182
  });
10183
- var Le = O(Ee, 2);
10183
+ var Le = O(Ce, 2);
10184
10184
  {
10185
10185
  var Oe = ($e) => {
10186
10186
  var Q = Zg(), D = z(Q), q = z(D), V = z(q), ie = z(V);
@@ -10203,7 +10203,7 @@ function ho(t, e) {
10203
10203
  var Ae = O(D, 2), be = z(Ae), Ve = z(be);
10204
10204
  {
10205
10205
  var Ke = (P) => {
10206
- var G = /* @__PURE__ */ He(() => d(x)[-1] || !1);
10206
+ var G = /* @__PURE__ */ He(() => d(b)[-1] || !1);
10207
10207
  ks(P, {
10208
10208
  get isDropdownOpen() {
10209
10209
  return d(G);
@@ -10273,8 +10273,8 @@ function ho(t, e) {
10273
10273
  var at = O(Je, 2);
10274
10274
  {
10275
10275
  var ut = (j) => {
10276
- var te = Kg(), Ee = z(te);
10277
- nn(Ee, {
10276
+ var te = Kg(), Ce = z(te);
10277
+ nn(Ce, {
10278
10278
  icon: "svg-spinners:270-ring-with-bg",
10279
10279
  width: "50px",
10280
10280
  height: "50px",
@@ -10401,23 +10401,23 @@ function vo(t, e) {
10401
10401
  const f = async (y) => {
10402
10402
  if (o(!0), u().includes(y))
10403
10403
  try {
10404
- await xt.readChat(y), u(u().filter((w) => w !== y));
10404
+ await ht.readChat(y), u(u().filter((w) => w !== y));
10405
10405
  } catch (w) {
10406
10406
  console.error("Error marking chat as read:", w);
10407
10407
  }
10408
- let b = await xt.getChat(y);
10409
- r(b), a(r().messages), o(!1), i("");
10410
- }, p = (y, b) => {
10411
- confirm(/* @__PURE__ */ Vu({ chatTitle: b })) && xt.deleteChat(y).then(() => {
10408
+ let x = await ht.getChat(y);
10409
+ r(x), a(r().messages), o(!1), i("");
10410
+ }, p = (y, x) => {
10411
+ confirm(/* @__PURE__ */ Vu({ chatTitle: x })) && ht.deleteChat(y).then(() => {
10412
10412
  s(s().filter((w) => w._id !== y)), r()._id === y && l()();
10413
10413
  });
10414
10414
  };
10415
- var h = l0(), x = z(h);
10415
+ var h = l0(), b = z(h);
10416
10416
  {
10417
10417
  var _ = (y) => {
10418
- var b = o0(), w = z(b), $ = z(w, !0);
10418
+ var x = o0(), w = z(x), $ = z(w, !0);
10419
10419
  k(w);
10420
- var L = O(w, 2), S = z(L);
10420
+ var L = O(w, 2), C = z(L);
10421
10421
  {
10422
10422
  var A = (N) => {
10423
10423
  var H = n0();
@@ -10432,8 +10432,8 @@ function vo(t, e) {
10432
10432
  var at = O(Je, 2);
10433
10433
  {
10434
10434
  var ut = (te) => {
10435
- var Ee = s0();
10436
- T(te, Ee);
10435
+ var Ce = s0();
10436
+ T(te, Ce);
10437
10437
  };
10438
10438
  ee(at, (te) => {
10439
10439
  u().includes(d(Te)._id) && te(ut);
@@ -10446,13 +10446,13 @@ function vo(t, e) {
10446
10446
  }), T(Xe, Se);
10447
10447
  }), T(N, H);
10448
10448
  };
10449
- ee(S, (N) => {
10449
+ ee(C, (N) => {
10450
10450
  c() ? N(A) : N(R, !1);
10451
10451
  });
10452
10452
  }
10453
- k(L), k(b), M((N) => _e($, N), [() => /* @__PURE__ */ Fi()]), $t(3, b, () => sc, () => ({ duration: 600 })), T(y, b);
10453
+ k(L), k(x), M((N) => _e($, N), [() => /* @__PURE__ */ Fi()]), $t(3, x, () => sc, () => ({ duration: 600 })), T(y, x);
10454
10454
  };
10455
- ee(x, (y) => {
10455
+ ee(b, (y) => {
10456
10456
  n() && y(_);
10457
10457
  });
10458
10458
  }
@@ -10532,7 +10532,7 @@ ue(
10532
10532
  !0
10533
10533
  );
10534
10534
  const u0 = (t, e, n, r, s) => {
10535
- m(e, "auto"), n(), r(), m(s, E({}));
10535
+ m(e, "auto"), n(), r(), m(s, S({}));
10536
10536
  };
10537
10537
  var d0 = /* @__PURE__ */ I('<div class="drag-overlay svelte-1uxkxb0"><div class="drag-content svelte-1uxkxb0"><!> <p class="svelte-1uxkxb0"> </p></div></div>'), f0 = /* @__PURE__ */ I('<div class="upload-progress-overlay svelte-1uxkxb0"><div class="upload-progress-content svelte-1uxkxb0"><!> <p class="upload-filename svelte-1uxkxb0"> </p> <div class="progress-bar-container svelte-1uxkxb0"><div class="progress-bar svelte-1uxkxb0"></div></div> <p class="upload-percentage svelte-1uxkxb0"> </p></div></div>'), p0 = /* @__PURE__ */ I('<div class="loading-placeholder svelte-1uxkxb0"><!></div>'), h0 = /* @__PURE__ */ I('<!> <div class="resize-border-left svelte-1uxkxb0"></div> <div class="resize-border-top svelte-1uxkxb0"></div> <div class="resize-handle svelte-1uxkxb0"><!></div> <!> <!> <!>', 1), v0 = /* @__PURE__ */ I('<div class="chat svelte-1uxkxb0"><!> <!> <!></div>'), g0 = (t, e) => m(e, !d(e)), m0 = (t, e) => e("normative"), b0 = (t, e) => e("suite"), x0 = /* @__PURE__ */ I('<div class="bottom-right-buttons svelte-1uxkxb0"><button class="pin-forge-buttons svelte-1uxkxb0"><i class="fa-solid fa-thumbtack"></i></button> <div class="btn-with-tooltip svelte-1uxkxb0"><span class="custom-tooltip svelte-1uxkxb0"> </span> <button class="hidden-btn hidden-btn-1 svelte-1uxkxb0" aria-label="normative"><i class="fa-solid fa-book-open"></i></button></div> <div class="btn-with-tooltip svelte-1uxkxb0"><span class="custom-tooltip svelte-1uxkxb0"> </span> <button class="hidden-btn hidden-btn-2 svelte-1uxkxb0" aria-label="suite info"><i class="fa-solid fa-circle-info"></i></button></div></div>'), w0 = /* @__PURE__ */ I('<div class="external-div"><!> <button><i class="fa-solid fa-comment-nodes"></i><span class="d-none d-md-inline ps-2"> </span></button> <!></div>');
10538
10538
  const _0 = {
@@ -10541,9 +10541,9 @@ const _0 = {
10541
10541
  };
10542
10542
  function go(t, e) {
10543
10543
  le(e, !0), pe(t, _0);
10544
- let n = J(!1), r = J(!1), s = J("it"), a = J(""), i = J(0), o = J(null), c = J(E([])), l = J(E([])), u = J(!1), f = J(!0), p = J(E(new Audio())), h = J(!0), x = J(""), _ = J(""), y = J(E([])), b = J(0), w = J(null), $ = J(!1), L = J(0), S = J("");
10544
+ let n = J(!1), r = J(!1), s = J("it"), a = J(""), i = J(0), o = J(null), c = J(S([])), l = J(S([])), u = J(!1), f = J(!0), p = J(S(new Audio())), h = J(!0), b = J(""), _ = J(""), y = J(S([])), x = J(0), w = J(null), $ = J(!1), L = J(0), C = J("");
10545
10545
  const A = (P, G, Z) => {
10546
- m(_, d(_) + P), m(y, E(G)), m(b, E(Z));
10546
+ m(_, d(_) + P), m(y, S(G)), m(x, S(Z));
10547
10547
  };
10548
10548
  let R = J("auto");
10549
10549
  const N = [
@@ -10552,45 +10552,45 @@ function go(t, e) {
10552
10552
  "audit_handler",
10553
10553
  "suite_agent"
10554
10554
  ];
10555
- let H = J(E({})), de = J(!0), Xe = J(!1);
10555
+ let H = J(S({})), de = J(!0), Xe = J(!1);
10556
10556
  Lt(() => {
10557
10557
  d(Xe) && U.setForgeButtonsPinned(d(de));
10558
10558
  });
10559
10559
  const Te = async (P, G, Z = []) => {
10560
10560
  var W, X;
10561
- if (m(x, ""), m(u, !0), m(l, E([
10561
+ if (m(u, !0), d(b) && d(b) !== "" && (m(b, ""), m(_, ""), m(y, S([])), m(o, S(await ht.getChat(d(o)._id))), m(l, S(d(o).messages))), m(l, S([
10562
10562
  ...d(l),
10563
10563
  new tn((/* @__PURE__ */ new Date()).getTime(), !0, P, P)
10564
- ])), console.log("Current messages:", d(l)), d(l).length == 2 && (console.log("Creating new chat with state:", (W = d(o)) == null ? void 0 : W.state), m(o, E(await xt.newChat((X = d(o)) == null ? void 0 : X.state))), m(c, E([...d(c), d(o)])), d(o).messages = d(l), await Be()), d(o)) {
10565
- m(w, E(new AbortController()));
10564
+ ])), console.log("Current messages:", d(l)), d(l).length == 2 && (console.log("Creating new chat with state:", (W = d(o)) == null ? void 0 : W.state), m(o, S(await ht.newChat((X = d(o)) == null ? void 0 : X.state))), m(c, S([...d(c), d(o)])), d(o).messages = d(l), await Be()), d(o)) {
10565
+ m(w, S(new AbortController()));
10566
10566
  try {
10567
- let je = await xt.sendMessage(d(o)._id, P, G, Z, A, d(s), d(w).signal);
10567
+ let je = await ht.sendMessage(d(o)._id, P, G, Z, A, d(s), d(w).signal);
10568
10568
  if (console.log(je), je) {
10569
- m(l, E([
10569
+ m(l, S([
10570
10570
  ...d(l),
10571
10571
  new tn((/* @__PURE__ */ new Date()).getTime(), !1, "", d(_))
10572
10572
  ])), m(_, "");
10573
10573
  return;
10574
10574
  }
10575
- if (m(o, E(await xt.getChat(d(o)._id))), await Be(), m(_, ""), m(y, E([])), m(l, E([
10575
+ if (m(o, S(await ht.getChat(d(o)._id))), await Be(), m(_, ""), m(y, S([])), m(l, S([
10576
10576
  ...d(l),
10577
10577
  d(o).messages[d(o).messages.length - 1]
10578
10578
  ])), !d(h)) {
10579
10579
  const ot = d(o).messages[d(o).messages.length - 1];
10580
10580
  try {
10581
10581
  const De = await Ms.getAudio(ot.content, d(s));
10582
- m(p, E(new Audio(De))), await d(p).play();
10582
+ m(p, S(new Audio(De))), await d(p).play();
10583
10583
  } catch (De) {
10584
10584
  console.error("Error playing audio:", De);
10585
10585
  }
10586
10586
  }
10587
10587
  } catch (je) {
10588
- je instanceof Error && je.name !== "AbortError" && (console.error("Error sending message:", je), m(x, E(/* @__PURE__ */ wa())));
10588
+ je instanceof Error && je.name !== "AbortError" && (console.error("Error sending message:", je), m(b, S(/* @__PURE__ */ wa())));
10589
10589
  } finally {
10590
10590
  m(w, null), m(u, !1);
10591
10591
  }
10592
10592
  } else
10593
- m(x, E(/* @__PURE__ */ cd())), m(u, !1);
10593
+ m(b, S(/* @__PURE__ */ cd())), m(u, !1);
10594
10594
  }, Se = () => {
10595
10595
  d(w) && d(w).abort();
10596
10596
  };
@@ -10609,12 +10609,12 @@ function go(t, e) {
10609
10609
  if (!N.includes(d(R)) || (he = d(o)) != null && he.state.blockChat) return;
10610
10610
  P.preventDefault(), P.stopPropagation();
10611
10611
  const G = (xe = P.dataTransfer) == null ? void 0 : xe.types;
10612
- console.log("[DROP DEBUG] DataTransfer types:", G), m(S, E(/* @__PURE__ */ bd())), m(L, 0);
10612
+ console.log("[DROP DEBUG] DataTransfer types:", G), m(C, S(/* @__PURE__ */ bd())), m(L, 0);
10613
10613
  let Z = 0, W = 0;
10614
10614
  console.log("[UPLOAD DEBUG] Inizio upload e progresso simulato");
10615
10615
  const X = setInterval(
10616
10616
  () => {
10617
- Z < 75 && W < 50 && (Z += Math.random() * 4 + 2, Z > 75 && (Z = 75), m(L, E(Z)), console.log("[UPLOAD DEBUG] Fake progress:", Z));
10617
+ Z < 75 && W < 50 && (Z += Math.random() * 4 + 2, Z > 75 && (Z = 75), m(L, S(Z)), console.log("[UPLOAD DEBUG] Fake progress:", Z));
10618
10618
  },
10619
10619
  300
10620
10620
  );
@@ -10626,19 +10626,19 @@ function go(t, e) {
10626
10626
  try {
10627
10627
  let Y = await wt.getDocumentFromSuite(Pe);
10628
10628
  if (!Y) {
10629
- clearInterval(X), alert(/* @__PURE__ */ gs()), m($, !1), m(ae, 0), m(S, ""), m(L, 0);
10629
+ clearInterval(X), alert(/* @__PURE__ */ gs()), m($, !1), m(ae, 0), m(C, ""), m(L, 0);
10630
10630
  return;
10631
10631
  }
10632
- m(S, E(Y.name));
10632
+ m(C, S(Y.name));
10633
10633
  const K = await j(Y, X, (we) => W = we);
10634
10634
  je = K.fileId, ot = K.aiFileId, De = Y.name;
10635
10635
  } catch (Y) {
10636
- console.error("Error fetching document from Suite:", Y), clearInterval(X), alert(/* @__PURE__ */ gs()), m($, !1), m(ae, 0), m(S, "");
10636
+ console.error("Error fetching document from Suite:", Y), clearInterval(X), alert(/* @__PURE__ */ gs()), m($, !1), m(ae, 0), m(C, "");
10637
10637
  }
10638
10638
  } else {
10639
10639
  const se = (re = P.dataTransfer) == null ? void 0 : re.files;
10640
10640
  if (se && se.length > 0) {
10641
- m(S, E(Array.from(se)[0].name));
10641
+ m(C, S(Array.from(se)[0].name));
10642
10642
  const Re = await j(Array.from(se)[0], X, (Pe) => W = Pe);
10643
10643
  je = Re.fileId, ot = Re.aiFileId, De = Array.from(se)[0].name;
10644
10644
  }
@@ -10655,12 +10655,12 @@ function go(t, e) {
10655
10655
  }), d(o).state.info = d(o).state.info.filter((se) => se.key !== "AI_FILE_ID"), d(o).state.info.push({ key: "AI_FILE_ID", value: ot })), Te("", "__file_uploaded__");
10656
10656
  }, j = async (P, G, Z) => {
10657
10657
  try {
10658
- const W = await xt.uploadFile(P, (X) => {
10658
+ const W = await ht.uploadFile(P, (X) => {
10659
10659
  console.log("[UPLOAD DEBUG] Callback ricevuto - Real progress:", X), Z == null || Z(X), X > 50 && (clearInterval(G), m(L, 75 + X * 0.25), console.log("[UPLOAD DEBUG] Using real progress - uploadProgress:", d(L)));
10660
10660
  });
10661
10661
  return console.log("[UPLOAD DEBUG] Upload completato - fileId:", W.fileId), Object.keys(d(H)).forEach((X) => {
10662
- d(H)[X].storage_id && d(H)[X].storage_id !== "" && (delete d(H)[X], xt.deleteFile(d(H)[X].storage_id, d(H)[X].title));
10663
- }), m(S, ""), m(L, 0), d(H)[W.fileId] = {
10662
+ d(H)[X].storage_id && d(H)[X].storage_id !== "" && (delete d(H)[X], ht.deleteFile(d(H)[X].storage_id, d(H)[X].title));
10663
+ }), m(C, ""), m(L, 0), d(H)[W.fileId] = {
10664
10664
  title: P.name,
10665
10665
  ext_id: "",
10666
10666
  gendoc_id: "",
@@ -10671,17 +10671,17 @@ function go(t, e) {
10671
10671
  aiFileId: W.aiFileId
10672
10672
  };
10673
10673
  } catch (W) {
10674
- throw console.error("Error uploading file:", W), m(x, E(/* @__PURE__ */ wa())), m(S, ""), m(L, 0), W;
10674
+ throw console.error("Error uploading file:", W), m(b, S(/* @__PURE__ */ wa())), m(C, ""), m(L, 0), W;
10675
10675
  }
10676
10676
  };
10677
10677
  Lt(() => {
10678
10678
  d(h) && d(p).pause();
10679
10679
  });
10680
- let te = !1, Ee, Le, Oe, Ue;
10680
+ let te = !1, Ce, Le, Oe, Ue;
10681
10681
  function Ye(P) {
10682
10682
  const G = P.target;
10683
10683
  if (G.closest(".resize-handle") || G.classList.contains("resize-border-left") || G.classList.contains("resize-border-top")) {
10684
- P.preventDefault(), P.stopPropagation(), te = !0, Ee = P.clientX, Le = P.clientY;
10684
+ P.preventDefault(), P.stopPropagation(), te = !0, Ce = P.clientX, Le = P.clientY;
10685
10685
  const W = document.querySelector(".chat");
10686
10686
  Oe = W.offsetWidth, Ue = W.offsetHeight, W.classList.add("no-select");
10687
10687
  const X = G.closest(".resize-handle"), je = G.classList.contains("resize-border-left"), ot = G.classList.contains("resize-border-top"), De = (he) => {
@@ -10689,13 +10689,13 @@ function go(t, e) {
10689
10689
  he.preventDefault();
10690
10690
  const xe = document.querySelector(".chat"), re = window.innerWidth * 0.75, fe = window.innerHeight * 0.9;
10691
10691
  if (je) {
10692
- const se = Ee - he.clientX, Re = Math.min(Math.max(Oe + se, 300), re);
10692
+ const se = Ce - he.clientX, Re = Math.min(Math.max(Oe + se, 300), re);
10693
10693
  xe.style.width = `${Re}px`;
10694
10694
  } else if (ot) {
10695
10695
  const se = Le - he.clientY, Re = Math.min(Math.max(Ue + se, 400), fe);
10696
10696
  xe.style.height = `${Re}px`;
10697
10697
  } else if (X) {
10698
- const se = Ee - he.clientX, Re = Le - he.clientY, Pe = Math.min(Math.max(Oe + se, 300), re), Y = Math.min(Math.max(Ue + Re, 400), fe);
10698
+ const se = Ce - he.clientX, Re = Le - he.clientY, Pe = Math.min(Math.max(Oe + se, 300), re), Y = Math.min(Math.max(Ue + Re, 400), fe);
10699
10699
  xe.style.width = `${Pe}px`, xe.style.height = `${Y}px`;
10700
10700
  }
10701
10701
  }, We = () => {
@@ -10706,7 +10706,7 @@ function go(t, e) {
10706
10706
  }
10707
10707
  }
10708
10708
  const Be = async () => {
10709
- m(c, E(await xt.getChats())), m(c, E(d(c).sort((P, G) => G.lastUpdate - P.lastUpdate)));
10709
+ m(c, S(await ht.getChats())), m(c, S(d(c).sort((P, G) => G.lastUpdate - P.lastUpdate)));
10710
10710
  };
10711
10711
  let $e = J(!1), Q = J(!1);
10712
10712
  const D = async () => {
@@ -10717,7 +10717,7 @@ function go(t, e) {
10717
10717
  450
10718
10718
  )) : m(n, !1) : (m(n, !0), m(Q, !0), await Be(), m(Q, !1));
10719
10719
  }, q = () => {
10720
- m(o, E(new pn(
10720
+ m(o, S(new pn(
10721
10721
  "",
10722
10722
  "",
10723
10723
  "",
@@ -10732,23 +10732,23 @@ function go(t, e) {
10732
10732
  [
10733
10733
  tn.firstMessage(d(s), d(a), d(R))
10734
10734
  ]
10735
- ))), m(_, ""), m(l, E(d(o).messages)), m(x, "");
10735
+ ))), m(_, ""), m(l, S(d(o).messages)), m(b, "");
10736
10736
  }, V = (P) => {
10737
- d(R) !== P && (m(R, E(P)), q()), D(), m(H, E({}));
10737
+ d(R) !== P && (m(R, S(P)), q()), D(), m(H, S({}));
10738
10738
  };
10739
- let ie = J(E([])), me;
10739
+ let ie = J(S([])), me;
10740
10740
  const Ge = async () => {
10741
10741
  try {
10742
- let P = await xt.getUnreadChats();
10742
+ let P = await ht.getUnreadChats();
10743
10743
  if (d(o) && P.includes(d(o)._id)) {
10744
- await xt.readChat(d(o)._id), P = P.filter((Z) => {
10744
+ await ht.readChat(d(o)._id), P = P.filter((Z) => {
10745
10745
  var W;
10746
10746
  return Z !== ((W = d(o)) == null ? void 0 : W._id);
10747
10747
  }), m($e, !0);
10748
- let G = await xt.getChat(d(o)._id);
10749
- m(o, E(G)), m(l, E(d(o).messages)), m($e, !1);
10748
+ let G = await ht.getChat(d(o)._id);
10749
+ m(o, S(G)), m(l, S(d(o).messages)), m($e, !1);
10750
10750
  }
10751
- P.length > 0 && m(ie, E(P));
10751
+ P.length > 0 && m(ie, S(P));
10752
10752
  } catch (P) {
10753
10753
  console.error("Error fetching unread chats:", P);
10754
10754
  }
@@ -10757,13 +10757,13 @@ function go(t, e) {
10757
10757
  me !== void 0 && (clearInterval(me), me = void 0);
10758
10758
  })), Ur(async () => {
10759
10759
  try {
10760
- m(s, E(ne()));
10760
+ m(s, S(ne()));
10761
10761
  const P = await wt.getUsername();
10762
- m(a, E(P));
10762
+ m(a, S(P));
10763
10763
  const G = await wt.getUserLevel();
10764
- m(i, E(G));
10764
+ m(i, S(G));
10765
10765
  const Z = tn.firstMessage(d(s), d(a), d(R));
10766
- m(l, E([Z])), m(o, E(new pn(
10766
+ m(l, S([Z])), m(o, S(new pn(
10767
10767
  "",
10768
10768
  "",
10769
10769
  "",
@@ -10776,7 +10776,7 @@ function go(t, e) {
10776
10776
  info: []
10777
10777
  },
10778
10778
  [Z]
10779
- ))), m(de, E(U.getForgeButtonsPinned())), m(Xe, !0);
10779
+ ))), m(de, S(U.getForgeButtonsPinned())), m(Xe, !0);
10780
10780
  const W = (X) => {
10781
10781
  (X.clientX <= 0 || X.clientY <= 0 || X.clientX >= window.innerWidth || X.clientY >= window.innerHeight) && (m($, !1), m(ae, 0));
10782
10782
  };
@@ -10784,7 +10784,7 @@ function go(t, e) {
10784
10784
  m($, !1), m(ae, 0);
10785
10785
  }), m(f, !1);
10786
10786
  } catch (P) {
10787
- console.error("Failed to load username", P), m(x, E(/* @__PURE__ */ ud())), m(f, !1);
10787
+ console.error("Failed to load username", P), m(b, S(/* @__PURE__ */ ud())), m(f, !1);
10788
10788
  }
10789
10789
  });
10790
10790
  var Ae = w0(), be = z(Ae);
@@ -10828,7 +10828,7 @@ function go(t, e) {
10828
10828
  var K = O(Pe, 2), we = z(K);
10829
10829
  k(K), k(re), k(xe), M(
10830
10830
  (Me) => {
10831
- _e(Re, d(S)), B(Y, "style", `width: ${d(L) ?? ""}%`), _e(we, `${Me ?? ""}%`);
10831
+ _e(Re, d(C)), B(Y, "style", `width: ${d(L) ?? ""}%`), _e(we, `${Me ?? ""}%`);
10832
10832
  },
10833
10833
  [
10834
10834
  () => Math.round(d(L))
@@ -10836,7 +10836,7 @@ function go(t, e) {
10836
10836
  ), $t(3, xe, () => Wt, () => ({ duration: 200 })), T(he, xe);
10837
10837
  };
10838
10838
  ee(X, (he) => {
10839
- d(S) && he(je);
10839
+ d(C) && he(je);
10840
10840
  });
10841
10841
  }
10842
10842
  var ot = O(X, 2);
@@ -10860,49 +10860,49 @@ function go(t, e) {
10860
10860
  return d(r);
10861
10861
  },
10862
10862
  set showHistory(F) {
10863
- m(r, E(F));
10863
+ m(r, S(F));
10864
10864
  },
10865
10865
  get actChat() {
10866
10866
  return d(o);
10867
10867
  },
10868
10868
  set actChat(F) {
10869
- m(o, E(F));
10869
+ m(o, S(F));
10870
10870
  },
10871
10871
  get chats() {
10872
10872
  return d(c);
10873
10873
  },
10874
10874
  set chats(F) {
10875
- m(c, E(F));
10875
+ m(c, S(F));
10876
10876
  },
10877
10877
  get messages() {
10878
10878
  return d(l);
10879
10879
  },
10880
10880
  set messages(F) {
10881
- m(l, E(F));
10881
+ m(l, S(F));
10882
10882
  },
10883
10883
  get error() {
10884
- return d(x);
10884
+ return d(b);
10885
10885
  },
10886
10886
  set error(F) {
10887
- m(x, E(F));
10887
+ m(b, S(F));
10888
10888
  },
10889
10889
  get loadingChat() {
10890
10890
  return d($e);
10891
10891
  },
10892
10892
  set loadingChat(F) {
10893
- m($e, E(F));
10893
+ m($e, S(F));
10894
10894
  },
10895
10895
  get loadingChats() {
10896
10896
  return d(Q);
10897
10897
  },
10898
10898
  set loadingChats(F) {
10899
- m(Q, E(F));
10899
+ m(Q, S(F));
10900
10900
  },
10901
10901
  get unreadChatIds() {
10902
10902
  return d(ie);
10903
10903
  },
10904
10904
  set unreadChatIds(F) {
10905
- m(ie, E(F));
10905
+ m(ie, S(F));
10906
10906
  }
10907
10907
  });
10908
10908
  var Y = O(Pe, 6), K = z(Y);
@@ -10922,43 +10922,43 @@ function go(t, e) {
10922
10922
  return d(n);
10923
10923
  },
10924
10924
  set show(F) {
10925
- m(n, E(F));
10925
+ m(n, S(F));
10926
10926
  },
10927
10927
  get showHistory() {
10928
10928
  return d(r);
10929
10929
  },
10930
10930
  set showHistory(F) {
10931
- m(r, E(F));
10931
+ m(r, S(F));
10932
10932
  },
10933
10933
  get actChat() {
10934
10934
  return d(o);
10935
10935
  },
10936
10936
  set actChat(F) {
10937
- m(o, E(F));
10937
+ m(o, S(F));
10938
10938
  },
10939
10939
  get muted() {
10940
10940
  return d(h);
10941
10941
  },
10942
10942
  set muted(F) {
10943
- m(h, E(F));
10943
+ m(h, S(F));
10944
10944
  },
10945
10945
  get languageSelected() {
10946
10946
  return d(s);
10947
10947
  },
10948
10948
  set languageSelected(F) {
10949
- m(s, E(F));
10949
+ m(s, S(F));
10950
10950
  },
10951
10951
  get username() {
10952
10952
  return d(a);
10953
10953
  },
10954
10954
  set username(F) {
10955
- m(a, E(F));
10955
+ m(a, S(F));
10956
10956
  },
10957
10957
  get error() {
10958
- return d(x);
10958
+ return d(b);
10959
10959
  },
10960
10960
  set error(F) {
10961
- m(x, E(F));
10961
+ m(b, S(F));
10962
10962
  }
10963
10963
  });
10964
10964
  var Me = O(we, 2);
@@ -10967,55 +10967,55 @@ function go(t, e) {
10967
10967
  return d(l);
10968
10968
  },
10969
10969
  set messages(F) {
10970
- m(l, E(F));
10970
+ m(l, S(F));
10971
10971
  },
10972
10972
  get loading() {
10973
10973
  return d(u);
10974
10974
  },
10975
10975
  set loading(F) {
10976
- m(u, E(F));
10976
+ m(u, S(F));
10977
10977
  },
10978
10978
  get error() {
10979
- return d(x);
10979
+ return d(b);
10980
10980
  },
10981
10981
  set error(F) {
10982
- m(x, E(F));
10982
+ m(b, S(F));
10983
10983
  },
10984
10984
  get streamMessage() {
10985
10985
  return d(_);
10986
10986
  },
10987
10987
  set streamMessage(F) {
10988
- m(_, E(F));
10988
+ m(_, S(F));
10989
10989
  },
10990
10990
  get streamAttachments() {
10991
10991
  return d(y);
10992
10992
  },
10993
10993
  set streamAttachments(F) {
10994
- m(y, E(F));
10994
+ m(y, S(F));
10995
10995
  },
10996
10996
  get streamedAgent() {
10997
- return d(b);
10997
+ return d(x);
10998
10998
  },
10999
10999
  set streamedAgent(F) {
11000
- m(b, E(F));
11000
+ m(x, S(F));
11001
11001
  },
11002
11002
  get languageSelected() {
11003
11003
  return d(s);
11004
11004
  },
11005
11005
  set languageSelected(F) {
11006
- m(s, E(F));
11006
+ m(s, S(F));
11007
11007
  },
11008
11008
  get userLevel() {
11009
11009
  return d(i);
11010
11010
  },
11011
11011
  set userLevel(F) {
11012
- m(i, E(F));
11012
+ m(i, S(F));
11013
11013
  },
11014
11014
  get loadingChat() {
11015
11015
  return d($e);
11016
11016
  },
11017
11017
  set loadingChat(F) {
11018
- m($e, E(F));
11018
+ m($e, S(F));
11019
11019
  }
11020
11020
  });
11021
11021
  var Bt = O(Me, 2);
@@ -11027,43 +11027,43 @@ function go(t, e) {
11027
11027
  return d(u);
11028
11028
  },
11029
11029
  set loading(F) {
11030
- m(u, E(F));
11030
+ m(u, S(F));
11031
11031
  },
11032
11032
  get languageSelected() {
11033
11033
  return d(s);
11034
11034
  },
11035
11035
  set languageSelected(F) {
11036
- m(s, E(F));
11036
+ m(s, S(F));
11037
11037
  },
11038
11038
  get modeSelected() {
11039
11039
  return d(R);
11040
11040
  },
11041
11041
  set modeSelected(F) {
11042
- m(R, E(F));
11042
+ m(R, S(F));
11043
11043
  },
11044
11044
  get attachments() {
11045
11045
  return d(H);
11046
11046
  },
11047
11047
  set attachments(F) {
11048
- m(H, E(F));
11048
+ m(H, S(F));
11049
11049
  },
11050
11050
  get userLevel() {
11051
11051
  return d(i);
11052
11052
  },
11053
11053
  set userLevel(F) {
11054
- m(i, E(F));
11054
+ m(i, S(F));
11055
11055
  },
11056
11056
  get actChat() {
11057
11057
  return d(o);
11058
11058
  },
11059
11059
  set actChat(F) {
11060
- m(o, E(F));
11060
+ m(o, S(F));
11061
11061
  },
11062
11062
  get streamMessage() {
11063
11063
  return d(_);
11064
11064
  },
11065
11065
  set streamMessage(F) {
11066
- m(_, E(F));
11066
+ m(_, S(F));
11067
11067
  }
11068
11068
  }), T(se, Re);
11069
11069
  };