akpm-knowledge-base-chat 1.0.39 → 1.0.40

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 +185 -185
  2. package/package.json +1 -1
package/CDN/akb-chat.js CHANGED
@@ -1,13 +1,13 @@
1
- /* Version: 1.0.39 */
1
+ /* Version: 1.0.40 */
2
2
  var Ca = Object.defineProperty;
3
3
  var mi = (t) => {
4
4
  throw TypeError(t);
5
5
  };
6
- var ja = (t, e, n) => e in t ? Ca(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
7
- var L = (t, e, n) => ja(t, typeof e != "symbol" ? e + "" : e, n), bi = (t, e, n) => e.has(t) || mi("Cannot " + n);
6
+ var Aa = (t, e, n) => e in t ? Ca(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
7
+ var L = (t, e, n) => Aa(t, typeof e != "symbol" ? e + "" : e, n), bi = (t, e, n) => e.has(t) || mi("Cannot " + n);
8
8
  var Pe = (t, e, n) => (bi(t, e, "read from private field"), n ? n.call(t) : e.get(t)), vr = (t, e, n) => e.has(t) ? mi("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), gr = (t, e, n, r) => (bi(t, e, "write to private field"), r ? r.call(t, n) : e.set(t, n), n);
9
- const Aa = "5";
10
- typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Aa);
9
+ const ja = "5";
10
+ typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(ja);
11
11
  const qr = 1, Br = 2, Wi = 4, Ra = 8, La = 16, Pa = 1, Oa = 2, Xi = 4, Fa = 8, Ma = 16, Da = 4, qa = 1, Ba = 2, Ji = "[", Nr = "[!", Yr = "]", qt = {}, Oe = Symbol();
12
12
  function Na(t) {
13
13
  return t.endsWith("capture") && t !== "gotpointercapture" && t !== "lostpointercapture";
@@ -72,7 +72,7 @@ function Mn(t) {
72
72
  for (var e = 0; e < t.length; e++)
73
73
  t[e]();
74
74
  }
75
- const Ne = 2, Ki = 4, mn = 8, Qn = 16, st = 32, Ct = 64, Dn = 128, jt = 256, qn = 512, Te = 1024, vt = 2048, At = 4096, Ke = 8192, Vt = 16384, es = 32768, Kn = 65536, eo = 1 << 17, to = 1 << 19, ts = 1 << 20, ht = Symbol("$state"), ns = Symbol("legacy props"), no = Symbol("");
75
+ const Ne = 2, Ki = 4, mn = 8, Qn = 16, st = 32, Ct = 64, Dn = 128, At = 256, qn = 512, Te = 1024, vt = 2048, jt = 4096, Ke = 8192, Vt = 16384, es = 32768, Kn = 65536, eo = 1 << 17, to = 1 << 19, ts = 1 << 20, ht = Symbol("$state"), ns = Symbol("legacy props"), no = Symbol("");
76
76
  function rs(t) {
77
77
  return t === this.v;
78
78
  }
@@ -156,17 +156,17 @@ function $(t, e) {
156
156
  (et === null || !et.includes(t)) && po(), yr(t, e);
157
157
  }
158
158
  function yr(t, e) {
159
- return t.equals(e) || (t.v, t.v = e, t.wv = ys(), ss(t, vt), xn() && Q !== null && Q.f & Te && !(Q.f & (st | Ct)) && (ct === null ? jo([t]) : ct.push(t))), e;
159
+ return t.equals(e) || (t.v, t.v = e, t.wv = ys(), ss(t, vt), xn() && Q !== null && Q.f & Te && !(Q.f & (st | Ct)) && (ct === null ? Ao([t]) : ct.push(t))), e;
160
160
  }
161
161
  function ss(t, e) {
162
162
  var n = t.reactions;
163
163
  if (n !== null)
164
164
  for (var r = xn(), i = n.length, s = 0; s < i; s++) {
165
165
  var a = n[s], o = a.f;
166
- o & vt || !r && a === Q || (Ve(a, e), o & (Te | jt) && (o & Ne ? ss(
166
+ o & vt || !r && a === Q || (Ve(a, e), o & (Te | At) && (o & Ne ? ss(
167
167
  /** @type {Derived} */
168
168
  a,
169
- At
169
+ jt
170
170
  ) : sr(
171
171
  /** @type {Effect} */
172
172
  a
@@ -371,7 +371,7 @@ function De(t) {
371
371
  function at(t) {
372
372
  return os.call(t);
373
373
  }
374
- function j(t, e) {
374
+ function A(t, e) {
375
375
  if (!X)
376
376
  return /* @__PURE__ */ De(t);
377
377
  var n = (
@@ -420,7 +420,7 @@ function Gr(t) {
420
420
  // @__NO_SIDE_EFFECTS__
421
421
  function Ht(t) {
422
422
  var e = Ne | vt;
423
- Q === null ? e |= jt : Q.f |= ts;
423
+ Q === null ? e |= At : Q.f |= ts;
424
424
  var n = ce !== null && ce.f & Ne ? (
425
425
  /** @type {Derived} */
426
426
  ce
@@ -486,14 +486,14 @@ function us(t) {
486
486
  return e;
487
487
  }
488
488
  function ds(t) {
489
- var e = us(t), n = (St || t.f & jt) && t.deps !== null ? At : Te;
489
+ var e = us(t), n = (St || t.f & At) && t.deps !== null ? jt : Te;
490
490
  Ve(t, n), t.equals(e) || (t.v = e, t.wv = ys());
491
491
  }
492
492
  function Vr(t) {
493
493
  cs(t), pn(t, 0), Ve(t, Vt), t.v = t.children = t.deps = t.ctx = t.reactions = null;
494
494
  }
495
495
  function fs(t) {
496
- Q === null && ce === null && ao(), ce !== null && ce.f & jt && so(), Jr && io();
496
+ Q === null && ce === null && ao(), ce !== null && ce.f & At && so(), Jr && io();
497
497
  }
498
498
  function xo(t, e) {
499
499
  var n = e.last;
@@ -597,7 +597,7 @@ function wn() {
597
597
  if (p(t.l.r2)) {
598
598
  for (var e of t.l.r1) {
599
599
  var n = e.effect;
600
- n.f & Te && Ve(n, At), Kt(n) && ir(n), e.ran = !1;
600
+ n.f & Te && Ve(n, jt), Kt(n) && ir(n), e.ran = !1;
601
601
  }
602
602
  t.l.r2.v = !1;
603
603
  }
@@ -740,7 +740,7 @@ function Xr(t) {
740
740
  throw new Error("https://svelte.dev/e/lifecycle_outside_component");
741
741
  }
742
742
  const _s = 0, Io = 1;
743
- let jn = !1, An = _s, fn = !1, hn = null, Bt = !1, Jr = !1;
743
+ let An = !1, jn = _s, fn = !1, hn = null, Bt = !1, Jr = !1;
744
744
  function ki(t) {
745
745
  Bt = t;
746
746
  }
@@ -761,7 +761,7 @@ function Co(t) {
761
761
  et = t;
762
762
  }
763
763
  let Me = null, Be = 0, ct = null;
764
- function jo(t) {
764
+ function Ao(t) {
765
765
  ct = t;
766
766
  }
767
767
  let ks = 1, Hn = 0, St = !1, se = null;
@@ -776,8 +776,8 @@ function Kt(t) {
776
776
  var e = t.f;
777
777
  if (e & vt)
778
778
  return !0;
779
- if (e & At) {
780
- var n = t.deps, r = (e & jt) !== 0;
779
+ if (e & jt) {
780
+ var n = t.deps, r = (e & At) !== 0;
781
781
  if (n !== null) {
782
782
  var i, s, a = (e & qn) !== 0, o = r && Q !== null && !St, l = n.length;
783
783
  if (a || o) {
@@ -799,7 +799,7 @@ function Kt(t) {
799
799
  }
800
800
  return !1;
801
801
  }
802
- function Ao(t, e) {
802
+ function jo(t, e) {
803
803
  for (var n = e; n !== null; ) {
804
804
  if (n.f & Dn)
805
805
  try {
@@ -810,20 +810,20 @@ function Ao(t, e) {
810
810
  }
811
811
  n = n.parent;
812
812
  }
813
- throw jn = !1, t;
813
+ throw An = !1, t;
814
814
  }
815
815
  function Ro(t) {
816
816
  return (t.f & Vt) === 0 && (t.parent === null || (t.parent.f & Dn) === 0);
817
817
  }
818
818
  function rr(t, e, n, r) {
819
- if (jn) {
820
- if (n === null && (jn = !1), Ro(e))
819
+ if (An) {
820
+ if (n === null && (An = !1), Ro(e))
821
821
  throw t;
822
822
  return;
823
823
  }
824
- n !== null && (jn = !0);
824
+ n !== null && (An = !0);
825
825
  {
826
- Ao(t, e);
826
+ jo(t, e);
827
827
  return;
828
828
  }
829
829
  }
@@ -837,7 +837,7 @@ function zs(t, e, n = 0) {
837
837
  s,
838
838
  e,
839
839
  n + 1
840
- ) : e === s && (n === 0 ? Ve(s, vt) : s.f & Te && Ve(s, At), sr(
840
+ ) : e === s && (n === 0 ? Ve(s, vt) : s.f & Te && Ve(s, jt), sr(
841
841
  /** @type {Effect} */
842
842
  s
843
843
  ));
@@ -847,7 +847,7 @@ function Ss(t) {
847
847
  var h;
848
848
  var e = Me, n = Be, r = ct, i = ce, s = St, a = et, o = se, l = xt, c = t.f;
849
849
  Me = /** @type {null | Value[]} */
850
- null, Be = 0, ct = null, ce = c & (st | Ct) ? null : t, St = !Bt && (c & jt) !== 0, et = null, se = t.ctx, xt = !1, Hn++;
850
+ null, Be = 0, ct = null, ce = c & (st | Ct) ? null : t, St = !Bt && (c & At) !== 0, et = null, se = t.ctx, xt = !1, Hn++;
851
851
  try {
852
852
  var u = (
853
853
  /** @type {Function} */
@@ -864,7 +864,7 @@ function Ss(t) {
864
864
  for (f = Be; f < d.length; f++)
865
865
  ((h = d[f]).reactions ?? (h.reactions = [])).push(t);
866
866
  } else d !== null && Be < d.length && (pn(t, Be), d.length = Be);
867
- if (xn() && ct !== null && !(t.f & (Ne | At | vt)))
867
+ if (xn() && ct !== null && !(t.f & (Ne | jt | vt)))
868
868
  for (f = 0; f < /** @type {Source[]} */
869
869
  ct.length; f++)
870
870
  zs(
@@ -889,7 +889,7 @@ function Lo(t, e) {
889
889
  n === null && e.f & Ne && // Destroying a child effect while updating a parent effect can cause a dependency to appear
890
890
  // to be unused, when in fact it is used by the currently-updating parent. Checking `new_deps`
891
891
  // allows us to skip the expensive work of disconnecting and immediately reconnecting it
892
- (Me === null || !Me.includes(e)) && (Ve(e, At), e.f & (jt | qn) || (e.f ^= qn), pn(
892
+ (Me === null || !Me.includes(e)) && (Ve(e, jt), e.f & (At | qn) || (e.f ^= qn), pn(
893
893
  /** @type {Derived} **/
894
894
  e,
895
895
  0
@@ -972,7 +972,7 @@ function Oo() {
972
972
  zt = [], Es(t), fn || (Nt = 0, hn = null);
973
973
  }
974
974
  function sr(t) {
975
- An === _s && (fn || (fn = !0, queueMicrotask(Oo))), hn = t;
975
+ jn === _s && (fn || (fn = !0, queueMicrotask(Oo))), hn = t;
976
976
  for (var e = t; e.parent !== null; ) {
977
977
  e = e.parent;
978
978
  var n = e.f;
@@ -1022,15 +1022,15 @@ function Ts(t, e) {
1022
1022
  l = r[u], e.push(l), Ts(l, e);
1023
1023
  }
1024
1024
  function v(t) {
1025
- var e = An, n = zt;
1025
+ var e = jn, n = zt;
1026
1026
  try {
1027
1027
  $s();
1028
1028
  const i = [];
1029
- An = Io, zt = i, fn = !1, Es(n);
1029
+ jn = Io, zt = i, fn = !1, Es(n);
1030
1030
  var r = t == null ? void 0 : t();
1031
1031
  return To(), (zt.length > 0 || i.length > 0) && v(), Nt = 0, hn = null, r;
1032
1032
  } finally {
1033
- An = e, zt = n;
1033
+ jn = e, zt = n;
1034
1034
  }
1035
1035
  }
1036
1036
  async function Fo() {
@@ -1204,14 +1204,14 @@ function Cs(t) {
1204
1204
  rt(e), Ge(n);
1205
1205
  }
1206
1206
  }
1207
- function js(t, e, n, r = n) {
1207
+ function As(t, e, n, r = n) {
1208
1208
  t.addEventListener(e, () => Cs(n));
1209
1209
  const i = t.__on_r;
1210
1210
  i ? t.__on_r = () => {
1211
1211
  i(), r(!0);
1212
1212
  } : t.__on_r = () => r(!0), Is();
1213
1213
  }
1214
- const As = /* @__PURE__ */ new Set(), Cr = /* @__PURE__ */ new Set();
1214
+ const js = /* @__PURE__ */ new Set(), Cr = /* @__PURE__ */ new Set();
1215
1215
  function Rs(t, e, n, r) {
1216
1216
  function i(s) {
1217
1217
  if (r.capture || on.call(e, s), !s.cancelBubble)
@@ -1229,7 +1229,7 @@ function Bo(t, e, n, r, i) {
1229
1229
  }
1230
1230
  function kt(t) {
1231
1231
  for (var e = 0; e < t.length; e++)
1232
- As.add(t[e]);
1232
+ js.add(t[e]);
1233
1233
  for (var n of Cr)
1234
1234
  n(t);
1235
1235
  }
@@ -1373,7 +1373,7 @@ function x(t, e) {
1373
1373
  e
1374
1374
  );
1375
1375
  }
1376
- let jr = !0;
1376
+ let Ar = !0;
1377
1377
  function Tt(t, e) {
1378
1378
  var n = e == null ? "" : typeof e == "object" ? e + "" : e;
1379
1379
  n !== (t.__t ?? (t.__t = t.nodeValue)) && (t.__t = n, t.nodeValue = n == null ? "" : n + "");
@@ -1427,7 +1427,7 @@ function Ps(t, { target: e, anchor: n, props: r = {}, events: i, context: s, int
1427
1427
  }
1428
1428
  }
1429
1429
  };
1430
- l(Ur(As)), Cr.add(l);
1430
+ l(Ur(js)), Cr.add(l);
1431
1431
  var c = void 0, u = zo(() => {
1432
1432
  var d = n ?? e.appendChild(Ut());
1433
1433
  return Zt(() => {
@@ -1443,7 +1443,7 @@ function Ps(t, { target: e, anchor: n, props: r = {}, events: i, context: s, int
1443
1443
  /** @type {TemplateNode} */
1444
1444
  d,
1445
1445
  null
1446
- ), jr = a, c = t(d, r) || {}, jr = !0, X && (Q.nodes_end = K), s && H();
1446
+ ), Ar = a, c = t(d, r) || {}, Ar = !0, X && (Q.nodes_end = K), s && H();
1447
1447
  }), () => {
1448
1448
  var b;
1449
1449
  for (var f of o) {
@@ -1457,12 +1457,12 @@ function Ps(t, { target: e, anchor: n, props: r = {}, events: i, context: s, int
1457
1457
  Cr.delete(l), d !== n && ((b = d.parentNode) == null || b.removeChild(d));
1458
1458
  };
1459
1459
  });
1460
- return Ar.set(c, u), c;
1460
+ return jr.set(c, u), c;
1461
1461
  }
1462
- let Ar = /* @__PURE__ */ new WeakMap();
1462
+ let jr = /* @__PURE__ */ new WeakMap();
1463
1463
  function Uo(t, e) {
1464
- const n = Ar.get(t);
1465
- return n ? (Ar.delete(t), n(e)) : Promise.resolve();
1464
+ const n = jr.get(t);
1465
+ return n ? (jr.delete(t), n(e)) : Promise.resolve();
1466
1466
  }
1467
1467
  function q(t, e, n = !1) {
1468
1468
  X && Yt();
@@ -1595,12 +1595,12 @@ function Zo(t, e, n, r, i, s, a, o) {
1595
1595
  C = t[w], E = a(C, w), y = d.get(E), y !== void 0 && ((le = y.a) == null || le.measure(), (S ?? (S = /* @__PURE__ */ new Set())).add(y));
1596
1596
  for (w = 0; w < u; w += 1) {
1597
1597
  if (C = t[w], E = a(C, w), y = d.get(E), y === void 0) {
1598
- var A = h ? (
1598
+ var j = h ? (
1599
1599
  /** @type {TemplateNode} */
1600
1600
  h.e.nodes_start
1601
1601
  ) : n;
1602
1602
  m = Os(
1603
- A,
1603
+ j,
1604
1604
  e,
1605
1605
  m,
1606
1606
  m === null ? e.first : m.next,
@@ -1838,8 +1838,8 @@ function $i(t, e, n, r, i = !1, s = !1, a = !1) {
1838
1838
  if (b)
1839
1839
  t[`__${y}`] = _, kt([y]);
1840
1840
  else {
1841
- let w = function(A) {
1842
- o[k].call(this, A);
1841
+ let w = function(j) {
1842
+ o[k].call(this, j);
1843
1843
  };
1844
1844
  o[E] = Rs(y, t, w, C);
1845
1845
  }
@@ -2001,7 +2001,7 @@ function _n(t, e, n, r) {
2001
2001
  /** @type {Effect} */
2002
2002
  Q
2003
2003
  );
2004
- if ((h.transitions ?? (h.transitions = [])).push(f), jr) {
2004
+ if ((h.transitions ?? (h.transitions = [])).push(f), Ar) {
2005
2005
  var b = i;
2006
2006
  if (!b) {
2007
2007
  for (var m = (
@@ -2060,7 +2060,7 @@ function Lr(t, e, n, r, i) {
2060
2060
  var E = !1;
2061
2061
  if (c)
2062
2062
  for (var y = Math.ceil(_ / 16.666666666666668), w = 0; w <= y; w += 1) {
2063
- var A = S + k * d(w / y), R = Ti(c(A, 1 - A));
2063
+ var j = S + k * d(w / y), R = Ti(c(j, 1 - j));
2064
2064
  C.push(R), E || (E = R.overflow === "hidden");
2065
2065
  }
2066
2066
  E && (t.style.overflow = "hidden"), b = () => {
@@ -2094,7 +2094,7 @@ function Lr(t, e, n, r, i) {
2094
2094
  }
2095
2095
  function rl(t, e, n = e) {
2096
2096
  var r = xn();
2097
- js(t, "input", (i) => {
2097
+ As(t, "input", (i) => {
2098
2098
  var s = i ? t.defaultValue : t.value;
2099
2099
  if (s = br(t) ? wr(s) : s, n(s), r && s !== (s = e())) {
2100
2100
  var a = t.selectionStart, o = t.selectionEnd;
@@ -2151,7 +2151,7 @@ function il(t, e) {
2151
2151
  }
2152
2152
  function sl(t, e, n = e) {
2153
2153
  var r = !0;
2154
- js(t, "change", (i) => {
2154
+ As(t, "change", (i) => {
2155
2155
  var s = i ? "[selected]" : ":checked", a;
2156
2156
  if (t.multiple)
2157
2157
  a = [].map.call(t.querySelectorAll(s), cn);
@@ -2326,7 +2326,7 @@ const fl = {
2326
2326
  function hl(t, e) {
2327
2327
  return new Proxy({ props: t, exclude: e, special: {}, version: Fe(0) }, fl);
2328
2328
  }
2329
- function ji(t) {
2329
+ function Ai(t) {
2330
2330
  for (var e = Q, n = Q; e !== null && !(e.f & (st | Ct)); )
2331
2331
  e = e.parent;
2332
2332
  try {
@@ -2336,14 +2336,14 @@ function ji(t) {
2336
2336
  }
2337
2337
  }
2338
2338
  function g(t, e, n, r) {
2339
- var A;
2339
+ var j;
2340
2340
  var i = (n & Pa) !== 0, s = !Wt || (n & Oa) !== 0, a = (n & Fa) !== 0, o = (n & Ma) !== 0, l = !1, c;
2341
2341
  a ? [c, l] = dl(() => (
2342
2342
  /** @type {V} */
2343
2343
  t[e]
2344
2344
  )) : c = /** @type {V} */
2345
2345
  t[e];
2346
- var u = ht in t || ns in t, d = a && (((A = $t(t, e)) == null ? void 0 : A.set) ?? (u && e in t && ((R) => t[e] = R))) || void 0, f = (
2346
+ var u = ht in t || ns in t, d = a && (((j = $t(t, e)) == null ? void 0 : j.set) ?? (u && e in t && ((R) => t[e] = R))) || void 0, f = (
2347
2347
  /** @type {V} */
2348
2348
  r
2349
2349
  ), h = !0, b = !1, m = () => (b = !0, h && (h = !1, o ? f = it(
@@ -2362,7 +2362,7 @@ function g(t, e, n, r) {
2362
2362
  return R === void 0 ? m() : (h = !0, b = !1, R);
2363
2363
  };
2364
2364
  else {
2365
- var k = ji(
2365
+ var k = Ai(
2366
2366
  () => (i ? Ht : ls)(() => (
2367
2367
  /** @type {V} */
2368
2368
  t[e]
@@ -2382,7 +2382,7 @@ function g(t, e, n, r) {
2382
2382
  return arguments.length > 0 ? ((!s || !F || _ || l) && d(F ? S() : R), R) : S();
2383
2383
  };
2384
2384
  }
2385
- var C = !1, E = !1, y = /* @__PURE__ */ er(c), w = ji(
2385
+ var C = !1, E = !1, y = /* @__PURE__ */ er(c), w = Ai(
2386
2386
  () => /* @__PURE__ */ Ht(() => {
2387
2387
  var R = S(), F = p(y);
2388
2388
  return C ? (C = !1, E = !0, F) : (E = !1, y.v = R);
@@ -2692,7 +2692,7 @@ function Us(t) {
2692
2692
  const e = t - 1;
2693
2693
  return e * e * e + 1;
2694
2694
  }
2695
- function Ai(t) {
2695
+ function ji(t) {
2696
2696
  const e = typeof t == "string" && t.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);
2697
2697
  return e ? [parseFloat(e[1]), e[2] || "px"] : [
2698
2698
  /** @type {number} */
@@ -2710,7 +2710,7 @@ function ei(t, { delay: e = 0, duration: n = 400, easing: r = ml } = {}) {
2710
2710
  };
2711
2711
  }
2712
2712
  function bl(t, { delay: e = 0, duration: n = 400, easing: r = Us, x: i = 0, y: s = 0, opacity: a = 0 } = {}) {
2713
- const o = getComputedStyle(t), l = +o.opacity, c = o.transform === "none" ? "" : o.transform, u = l * (1 - a), [d, f] = Ai(i), [h, b] = Ai(s);
2713
+ const o = getComputedStyle(t), l = +o.opacity, c = o.transform === "none" ? "" : o.transform, u = l * (1 - a), [d, f] = ji(i), [h, b] = ji(s);
2714
2714
  return {
2715
2715
  delay: e,
2716
2716
  duration: n,
@@ -2834,18 +2834,18 @@ const Tl = {
2834
2834
  function Hs(t, e) {
2835
2835
  U(e, !0), V(t, Tl);
2836
2836
  let n = g(e, "show", 15, !1), r = g(e, "showHistory", 15), i = g(e, "actChat", 15), s = g(e, "muted", 15), a = g(e, "languageSelected", 15), o = g(e, "username", 15), l = g(e, "error", 15);
2837
- var c = El(), u = j(c), d = j(u), f = B(j(d), 2), h = j(f);
2837
+ var c = El(), u = A(c), d = A(u), f = B(A(d), 2), h = A(f);
2838
2838
  h.value = (h.__value = "it") == null ? "" : "it";
2839
2839
  var b = B(h);
2840
2840
  b.value = (b.__value = "en") == null ? "" : "en", I(f), I(d);
2841
- var m = B(d, 2), S = j(m);
2841
+ var m = B(d, 2), S = A(m);
2842
2842
  {
2843
2843
  var k = (w) => {
2844
- var A = kl();
2845
- D(A, "title", "Attiva volume"), A.__click = [_l, s], x(w, A);
2844
+ var j = kl();
2845
+ D(j, "title", "Attiva volume"), j.__click = [_l, s], x(w, j);
2846
2846
  }, _ = (w) => {
2847
- var A = zl();
2848
- D(A, "title", "Muta"), A.__click = [yl, s], x(w, A);
2847
+ var j = zl();
2848
+ D(j, "title", "Muta"), j.__click = [yl, s], x(w, j);
2849
2849
  };
2850
2850
  q(S, (w) => {
2851
2851
  s() ? w(k) : w(_, !1);
@@ -2937,13 +2937,13 @@ const Il = () => {
2937
2937
  }, Cl = () => {
2938
2938
  const e = document.cookie.split(";").find((n) => n.includes("akb-chat-token"));
2939
2939
  return e ? e.split("=")[1] : "";
2940
- }, jl = () => {
2940
+ }, Al = () => {
2941
2941
  const e = document.cookie.split(";").find((n) => n.includes("akb-chat-envid"));
2942
2942
  return e ? e.split("=")[1] : "";
2943
2943
  }, J = {
2944
2944
  getUrl: Il,
2945
2945
  getToken: Cl,
2946
- getEnvironmentId: jl
2946
+ getEnvironmentId: Al
2947
2947
  };
2948
2948
  class Zn {
2949
2949
  constructor(e, n, r, i, s, a, o, l = "", c = !1, u = (/* @__PURE__ */ new Date()).getTime(), d = "loading") {
@@ -3003,7 +3003,7 @@ const Zs = (t) => {
3003
3003
  default:
3004
3004
  return "development";
3005
3005
  }
3006
- }, Al = (t) => {
3006
+ }, jl = (t) => {
3007
3007
  switch (t) {
3008
3008
  case "aks_svi":
3009
3009
  return "https://close-apparently-bluejay.ngrok-free.app";
@@ -3019,7 +3019,7 @@ const Zs = (t) => {
3019
3019
  return t == "aks_svi" ? "https://hyena-popular-caiman.ngrok-free.app/pages/editor_documenti.php" : `https://${Zs(t)}.aksiliasuite.com/pages/editor_documenti.php`;
3020
3020
  }, Ll = (t) => {
3021
3021
  let e = J.getEnvironmentId(), n = J.getToken();
3022
- return `${Al(e)}/it/edit/${t}?token=${n}&envId=${e}`;
3022
+ return `${jl(e)}/it/edit/${t}?token=${n}&envId=${e}`;
3023
3023
  };
3024
3024
  function Pl(t, e) {
3025
3025
  const n = document.createElement("form");
@@ -3322,13 +3322,13 @@ const Vl = {
3322
3322
  function Wl(t, e) {
3323
3323
  U(e, !1), V(t, Vl);
3324
3324
  let n = g(e, "size", 12, "60"), r = g(e, "unit", 12, "px"), i = g(e, "pause", 12, !1), s = g(e, "ballTopLeft", 12, "#FF3E00"), a = g(e, "ballTopRight", 12, "#F8B334"), o = g(e, "ballBottomLeft", 12, "#40B3FF"), l = g(e, "ballBottomRight", 12, "#676778"), c = g(e, "duration", 12, "1.5s");
3325
- var u = Gl(), d = j(u), f = j(d), h = j(f), b = j(h);
3325
+ var u = Gl(), d = A(u), f = A(d), h = A(f), b = A(h);
3326
3326
  I(h);
3327
- var m = B(h, 2), S = j(m);
3327
+ var m = B(h, 2), S = A(m);
3328
3328
  I(m);
3329
- var k = B(m, 2), _ = j(k);
3329
+ var k = B(m, 2), _ = A(k);
3330
3330
  I(k);
3331
- var C = B(k, 2), E = j(C);
3331
+ var C = B(k, 2), E = A(C);
3332
3332
  return I(C), I(f), I(d), I(u), O(() => {
3333
3333
  D(u, "style", `--size: ${n() ?? ""}${r() ?? ""}; --floatSize: ${n() ?? ""}; --ballTopLeftColor: ${s() ?? ""}; --ballTopRightColor: ${a() ?? ""}; --ballBottomLeftColor: ${o() ?? ""}; --ballBottomRightColor: ${l() ?? ""}; --duration: ${c() ?? ""};`), G(f, "pause-animation", i()), G(b, "pause-animation", i()), G(S, "pause-animation", i()), G(_, "pause-animation", i()), G(E, "pause-animation", i());
3334
3334
  }), x(t, u), H({
@@ -3705,7 +3705,7 @@ const ic = {
3705
3705
  function sc(t, e) {
3706
3706
  U(e, !1), V(t, ic);
3707
3707
  let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), i = g(e, "duration", 12, "1s"), s = g(e, "size", 12, "60"), a = g(e, "pause", 12, !1);
3708
- var o = rc(), l = j(o);
3708
+ var o = rc(), l = A(o);
3709
3709
  return I(o), O(() => {
3710
3710
  D(o, "style", `--size: ${s() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --duration: ${i() ?? ""}; --duration: ${i() ?? ""};`), G(l, "pause-animation", a());
3711
3711
  }), x(t, o), H({
@@ -3818,7 +3818,7 @@ const oc = {
3818
3818
  function lc(t, e) {
3819
3819
  U(e, !1), V(t, oc);
3820
3820
  let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), i = g(e, "duration", 12, "4s"), s = g(e, "size", 12, "60"), a = g(e, "stroke", 28, () => +s() / 12 + r()), o = g(e, "pause", 12, !1);
3821
- var l = ac(), c = j(l);
3821
+ var l = ac(), c = A(l);
3822
3822
  return I(l), O(() => {
3823
3823
  D(l, "style", `--size: ${s() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --stroke: ${a() ?? ""}; --floatSize: ${s() ?? ""}; --duration: ${i() ?? ""}`), G(c, "pause-animation", o());
3824
3824
  }), x(t, l), H({
@@ -4318,10 +4318,10 @@ const Cc = {
4318
4318
  }
4319
4319
  }`
4320
4320
  };
4321
- function jc(t, e) {
4321
+ function Ac(t, e) {
4322
4322
  U(e, !1), V(t, Cc);
4323
4323
  let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), i = g(e, "duration", 12, "3s"), s = g(e, "size", 12, "60"), a = g(e, "pause", 12, !1);
4324
- var o = Ic(), l = j(o);
4324
+ var o = Ic(), l = A(o);
4325
4325
  return I(o), O(() => {
4326
4326
  D(o, "style", `--size: ${s() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --duration: ${i() ?? ""};`), G(l, "pause-animation", a());
4327
4327
  }), x(t, o), H({
@@ -4358,7 +4358,7 @@ function jc(t, e) {
4358
4358
  });
4359
4359
  }
4360
4360
  Z(
4361
- jc,
4361
+ Ac,
4362
4362
  {
4363
4363
  color: {},
4364
4364
  unit: {},
@@ -4370,7 +4370,7 @@ Z(
4370
4370
  [],
4371
4371
  !0
4372
4372
  );
4373
- var Ac = /* @__PURE__ */ z('<div class="wrapper svelte-x7zza7"><div class="firework svelte-x7zza7"></div></div>');
4373
+ var jc = /* @__PURE__ */ z('<div class="wrapper svelte-x7zza7"><div class="firework svelte-x7zza7"></div></div>');
4374
4374
  const Rc = {
4375
4375
  hash: "svelte-x7zza7",
4376
4376
  code: `.wrapper.svelte-x7zza7 {width:calc(var(--size) * 1.3);height:calc(var(--size) * 1.3);display:flex;justify-content:center;align-items:center;}.firework.svelte-x7zza7 {border:calc(var(--size) / 10) dotted var(--color);width:var(--size);height:var(--size);border-radius:50%;
@@ -4393,7 +4393,7 @@ const Rc = {
4393
4393
  function Lc(t, e) {
4394
4394
  U(e, !1), V(t, Rc);
4395
4395
  let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), i = g(e, "duration", 12, "1.25s"), s = g(e, "size", 12, "60"), a = g(e, "pause", 12, !1);
4396
- var o = Ac(), l = j(o);
4396
+ var o = jc(), l = A(o);
4397
4397
  return I(o), O(() => {
4398
4398
  D(o, "style", `--size: ${s() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --duration: ${i() ?? ""};`), G(l, "pause-animation", a());
4399
4399
  }), x(t, o), H({
@@ -4617,7 +4617,7 @@ function Hc(t, e) {
4617
4617
  U(e, !1), V(t, Uc);
4618
4618
  let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), i = g(e, "duration", 12, "2s"), s = g(e, "size", 12, "60"), a = g(e, "pause", 12, !1), o = ((d = i().match(ze)) == null ? void 0 : d[0]) ?? "s", l = i().replace(ze, "");
4619
4619
  qe();
4620
- var c = Yc(), u = j(c);
4620
+ var c = Yc(), u = A(c);
4621
4621
  return Ce(u, 5, () => We(2, 0), Ie, (f, h) => {
4622
4622
  var b = Nc();
4623
4623
  O(() => {
@@ -4792,7 +4792,7 @@ const Xc = {
4792
4792
  function Jc(t, e) {
4793
4793
  U(e, !1), V(t, Xc);
4794
4794
  let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), i = g(e, "duration", 12, "1.7s"), s = g(e, "size", 12, "60"), a = g(e, "pause", 12, !1);
4795
- var o = Wc(), l = j(o);
4795
+ var o = Wc(), l = A(o);
4796
4796
  return I(o), O(() => {
4797
4797
  D(o, "style", `--size: ${s() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --duration: ${i() ?? ""};`), G(l, "pause-animation", a());
4798
4798
  }), x(t, o), H({
@@ -4856,7 +4856,7 @@ const Kc = {
4856
4856
  function eu(t, e) {
4857
4857
  U(e, !1), V(t, Kc);
4858
4858
  let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), i = g(e, "duration", 12, "0.6s"), s = g(e, "size", 12, "60"), a = g(e, "pause", 12, !1), o = +s() / 7, l = +s() / 2 - o / 2;
4859
- var c = Qc(), u = j(c), d = B(u, 2);
4859
+ var c = Qc(), u = A(c), d = B(u, 2);
4860
4860
  return I(c), O(() => {
4861
4861
  D(c, "style", `--size: ${s() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --moonSize: ${l ?? ""}${r() ?? ""}; --duration: ${i() ?? ""};`), G(c, "pause-animation", a()), G(u, "pause-animation", a()), G(d, "pause-animation", a());
4862
4862
  }), x(t, c), H({
@@ -4947,7 +4947,7 @@ function ru(t, e) {
4947
4947
  $(o, ri(n(), 0.6));
4948
4948
  }
4949
4949
  ), wn(), qe();
4950
- var l = tu(), c = j(l);
4950
+ var l = tu(), c = A(l);
4951
4951
  return I(l), O(() => {
4952
4952
  D(l, "style", `--size: ${s() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --rgba: ${p(o) ?? ""}; --duration: ${i() ?? ""};`), G(c, "pause-animation", a());
4953
4953
  }), x(t, l), H({
@@ -5427,7 +5427,7 @@ const zu = (t, e, n) => {
5427
5427
  const r = t.target;
5428
5428
  $(e, P(r.value)), n(p(e));
5429
5429
  };
5430
- var Su = /* @__PURE__ */ z('<div class="text-center p-3"><!> <p class="mt-2 text-muted">Ricerca in corso...</p></div>'), $u = /* @__PURE__ */ z('<div class="text-center p-3"><i class="fa-solid fa-search text-muted fa-2x"></i> <p class="mt-2 text-muted">Inserisci almeno 3 caratteri per iniziare la ricerca</p></div>'), Eu = /* @__PURE__ */ z('<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">Nessun documento trovato</p></div>'), Tu = (t, e, n) => e(p(n)), Iu = /* @__PURE__ */ z('<i class="fa-solid fa-file-pdf" style="color: #f0463c;"></i>'), Cu = /* @__PURE__ */ z('<i class="fa-solid fa-file-word" style="color: #305b9a;"></i>'), ju = /* @__PURE__ */ z('<i class="fa-solid fa-file-excel" style="color: #0c7540;"></i>'), Au = /* @__PURE__ */ z('<i class="fa-solid fa-file-powerpoint" style="color: #d14b2b;"></i>'), Ru = /* @__PURE__ */ z('<i class="fa-solid fa-passport" style="color: #ff9800"></i>'), Lu = /* @__PURE__ */ z('<i class="fa-solid fa-file"></i>'), Pu = /* @__PURE__ */ z('<button class="document-item svelte-1pr2pgp"><div class="document-icon svelte-1pr2pgp"><!></div> <div class="document-info svelte-1pr2pgp"><div class="document-title svelte-1pr2pgp"> </div></div></button>'), Ou = /* @__PURE__ */ z('<div class="documents-list svelte-1pr2pgp"></div>'), Fu = /* @__PURE__ */ z('<div class="modal-overlay svelte-1pr2pgp"><div class="document-search-modal svelte-1pr2pgp"><div class="modal-header svelte-1pr2pgp"><h5 class="svelte-1pr2pgp">Cerca Documenti</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-1pr2pgp"><div class="search-container svelte-1pr2pgp"><div class="input-group"><span class="input-group-text svelte-1pr2pgp"><i class="fa-solid fa-search"></i></span> <input type="text" class="form-control" placeholder="Cerca documenti (min 3 caratteri)..." style="color: black;"></div></div> <div class="documents-container svelte-1pr2pgp"><!></div></div></div></div>');
5430
+ var Su = /* @__PURE__ */ z('<div class="text-center p-3"><!> <p class="mt-2 text-muted">Ricerca in corso...</p></div>'), $u = /* @__PURE__ */ z('<div class="text-center p-3"><i class="fa-solid fa-search text-muted fa-2x"></i> <p class="mt-2 text-muted">Inserisci almeno 3 caratteri per iniziare la ricerca</p></div>'), Eu = /* @__PURE__ */ z('<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">Nessun documento trovato</p></div>'), Tu = (t, e, n) => e(p(n)), Iu = /* @__PURE__ */ z('<i class="fa-solid fa-file-pdf" style="color: #f0463c;"></i>'), Cu = /* @__PURE__ */ z('<i class="fa-solid fa-file-word" style="color: #305b9a;"></i>'), Au = /* @__PURE__ */ z('<i class="fa-solid fa-file-excel" style="color: #0c7540;"></i>'), ju = /* @__PURE__ */ z('<i class="fa-solid fa-file-powerpoint" style="color: #d14b2b;"></i>'), Ru = /* @__PURE__ */ z('<i class="fa-solid fa-passport" style="color: #0DCAF0"></i>'), Lu = /* @__PURE__ */ z('<i class="fa-solid fa-file"></i>'), Pu = /* @__PURE__ */ z('<button class="document-item svelte-1pr2pgp"><div class="document-icon svelte-1pr2pgp"><!></div> <div class="document-info svelte-1pr2pgp"><div class="document-title svelte-1pr2pgp"> </div></div></button>'), Ou = /* @__PURE__ */ z('<div class="documents-list svelte-1pr2pgp"></div>'), Fu = /* @__PURE__ */ z('<div class="modal-overlay svelte-1pr2pgp"><div class="document-search-modal svelte-1pr2pgp"><div class="modal-header svelte-1pr2pgp"><h5 class="svelte-1pr2pgp">Cerca Documenti</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-1pr2pgp"><div class="search-container svelte-1pr2pgp"><div class="input-group"><span class="input-group-text svelte-1pr2pgp"><i class="fa-solid fa-search"></i></span> <input type="text" class="form-control" placeholder="Cerca documenti (min 3 caratteri)..." style="color: black;"></div></div> <div class="documents-container svelte-1pr2pgp"><!></div></div></div></div>');
5431
5431
  const Mu = {
5432
5432
  hash: "svelte-1pr2pgp",
5433
5433
  code: `\r
@@ -5456,23 +5456,23 @@ function Gs(t, e) {
5456
5456
  $(s, !0);
5457
5457
  try {
5458
5458
  $(i, P(await ar.getDocuments(w)));
5459
- } catch (A) {
5460
- console.error("Errore nella ricerca documenti:", A), $(i, P([]));
5459
+ } catch (j) {
5460
+ console.error("Errore nella ricerca documenti:", j), $(i, P([]));
5461
5461
  } finally {
5462
5462
  $(s, !1);
5463
5463
  }
5464
5464
  };
5465
- var u = Fu(), d = j(u), f = j(d), h = B(j(f), 2);
5465
+ var u = Fu(), d = A(u), f = A(d), h = B(A(f), 2);
5466
5466
  h.__click = o, I(f);
5467
- var b = B(f, 2), m = j(b), S = j(m), k = B(j(S), 2);
5467
+ var b = B(f, 2), m = A(b), S = A(m), k = B(A(S), 2);
5468
5468
  Wo(k), k.__input = [zu, a, c], I(S), I(m);
5469
- var _ = B(m, 2), C = j(_);
5469
+ var _ = B(m, 2), C = A(_);
5470
5470
  {
5471
5471
  var E = (w) => {
5472
- var A = Su(), R = j(A);
5473
- ii(R, { size: "30", color: "#295dcf" }), mo(2), I(A), x(w, A);
5472
+ var j = Su(), R = A(j);
5473
+ ii(R, { size: "30", color: "#295dcf" }), mo(2), I(j), x(w, j);
5474
5474
  }, y = (w) => {
5475
- var A = me(), R = fe(A);
5475
+ var j = me(), R = fe(j);
5476
5476
  {
5477
5477
  var F = (ae) => {
5478
5478
  var M = $u();
@@ -5488,7 +5488,7 @@ function Gs(t, e) {
5488
5488
  Ce(ee, 21, () => p(i), Ie, (oe, te) => {
5489
5489
  var Ee = Pu();
5490
5490
  Ee.__click = [Tu, l, te];
5491
- var he = j(Ee), ge = j(he);
5491
+ var he = A(Ee), ge = A(he);
5492
5492
  {
5493
5493
  var Se = ($e) => {
5494
5494
  var T = Iu();
@@ -5503,13 +5503,13 @@ function Gs(t, e) {
5503
5503
  var pe = me(), ke = fe(pe);
5504
5504
  {
5505
5505
  var ot = (gt) => {
5506
- var Pt = ju();
5506
+ var Pt = Au();
5507
5507
  x(gt, Pt);
5508
5508
  }, yn = (gt) => {
5509
5509
  var Pt = me(), zn = fe(Pt);
5510
5510
  {
5511
5511
  var dr = (lt) => {
5512
- var ye = Au();
5512
+ var ye = ju();
5513
5513
  x(lt, ye);
5514
5514
  }, fr = (lt) => {
5515
5515
  var ye = me(), Re = fe(ye);
@@ -5566,8 +5566,8 @@ function Gs(t, e) {
5566
5566
  });
5567
5567
  }
5568
5568
  I(he);
5569
- var be = B(he, 2), je = j(be), Ae = j(je, !0);
5570
- I(je), I(be), I(Ee), O(() => Tt(Ae, p(te).title)), x(oe, Ee);
5569
+ var be = B(he, 2), Ae = A(be), je = A(Ae, !0);
5570
+ I(Ae), I(be), I(Ee), O(() => Tt(je, p(te).title)), x(oe, Ee);
5571
5571
  }), I(ee), x(de, ee);
5572
5572
  };
5573
5573
  q(
@@ -5588,7 +5588,7 @@ function Gs(t, e) {
5588
5588
  !0
5589
5589
  );
5590
5590
  }
5591
- x(w, A);
5591
+ x(w, j);
5592
5592
  };
5593
5593
  q(C, (w) => {
5594
5594
  p(s) ? w(E) : w(y, !1);
@@ -5671,22 +5671,22 @@ function Vs(t, e) {
5671
5671
  }, C = () => {
5672
5672
  $(w, !1);
5673
5673
  }, E = () => {
5674
- $(A, !0);
5674
+ $(j, !0);
5675
5675
  }, y = async (T, Y, _e) => {
5676
5676
  await ar.getDocumentPage(T, Y, _e);
5677
5677
  };
5678
- let w = ie(!1), A = ie(!1);
5678
+ let w = ie(!1), j = ie(!1);
5679
5679
  Et(() => {
5680
5680
  Object.keys(p(o)).length > 0 && $(a, !0);
5681
5681
  });
5682
- var R = sd(), F = fe(R), W = j(F), ae = j(W);
5682
+ var R = sd(), F = fe(R), W = A(F), ae = A(W);
5683
5683
  qo(ae), ae.__keyup = [qu, S], I(W);
5684
- var M = B(W, 2), N = j(M), ve = j(N), le = j(ve);
5684
+ var M = B(W, 2), N = A(M), ve = A(N), le = A(ve);
5685
5685
  le.__click = [Du, w];
5686
5686
  var de = B(le, 2);
5687
5687
  {
5688
5688
  var ee = (T) => {
5689
- var Y = Bu(), _e = j(Y);
5689
+ var Y = Bu(), _e = A(Y);
5690
5690
  _e.__click = function(...pe) {
5691
5691
  var ke;
5692
5692
  (ke = p(a) ? () => {
@@ -5711,10 +5711,10 @@ function Vs(t, e) {
5711
5711
  });
5712
5712
  }
5713
5713
  I(ve);
5714
- var oe = B(ve, 2), te = j(oe);
5714
+ var oe = B(ve, 2), te = A(oe);
5715
5715
  {
5716
5716
  var Ee = (T) => {
5717
- var Y = Uu(), _e = B(j(Y), 4);
5717
+ var Y = Uu(), _e = B(A(Y), 4);
5718
5718
  {
5719
5719
  var ue = (we) => {
5720
5720
  var pe = Yu();
@@ -5733,7 +5733,7 @@ function Vs(t, e) {
5733
5733
  var he = B(te, 2);
5734
5734
  Ce(he, 17, () => Object.entries(p(o)), Ie, (T, Y) => {
5735
5735
  let _e = () => p(Y)[0], ue = () => p(Y)[1].title, we = () => p(Y)[1].ext_id, pe = () => p(Y)[1].gendoc_id, ke = () => p(Y)[1].isCommon;
5736
- var ot = td(), yn = j(ot);
5736
+ var ot = td(), yn = A(ot);
5737
5737
  {
5738
5738
  var gt = (ye) => {
5739
5739
  var Re = Hu();
@@ -5813,7 +5813,7 @@ function Vs(t, e) {
5813
5813
  var zn = B(yn, 2);
5814
5814
  {
5815
5815
  var dr = (ye) => {
5816
- var Re = Ju(), yt = j(Re, !0);
5816
+ var Re = Ju(), yt = A(Re, !0);
5817
5817
  I(Re), O(() => Tt(yt, ue())), x(ye, Re);
5818
5818
  }, fr = (ye) => {
5819
5819
  var Re = Ku();
@@ -5824,7 +5824,7 @@ function Vs(t, e) {
5824
5824
  ue,
5825
5825
  pe
5826
5826
  ];
5827
- var yt = j(Re, !0);
5827
+ var yt = A(Re, !0);
5828
5828
  I(Re), O(() => Tt(yt, ue())), x(ye, Re);
5829
5829
  };
5830
5830
  q(zn, (ye) => {
@@ -5836,7 +5836,7 @@ function Vs(t, e) {
5836
5836
  Qe(ot, `${`attachment-item ${ke() ? "common" : ""}` ?? ""} svelte-13r2zha`), D(ot, "title", ue()), Qe(lt, `${`remove-btn ${ke() ? "common" : ""}` ?? ""} svelte-13r2zha`);
5837
5837
  }), x(T, ot);
5838
5838
  }), I(oe), Ns(oe, (T) => f = T, () => f);
5839
- var ge = B(oe, 2), Se = j(ge);
5839
+ var ge = B(oe, 2), Se = A(ge);
5840
5840
  {
5841
5841
  var xe = (T) => {
5842
5842
  var Y = nd();
@@ -5845,7 +5845,7 @@ function Vs(t, e) {
5845
5845
  var Y = me(), _e = fe(Y);
5846
5846
  {
5847
5847
  var ue = (pe) => {
5848
- var ke = rd(), ot = j(ke);
5848
+ var ke = rd(), ot = A(ke);
5849
5849
  ii(ot, { size: "20", color: "white" }), I(ke), x(pe, ke);
5850
5850
  }, we = (pe) => {
5851
5851
  var ke = id();
@@ -5865,9 +5865,9 @@ function Vs(t, e) {
5865
5865
  p(u) ? T(xe) : T(be, !1);
5866
5866
  });
5867
5867
  }
5868
- var je = B(Se, 2);
5869
- je.__click = S, I(ge), I(N), I(M), I(F);
5870
- var Ae = B(F, 2);
5868
+ var Ae = B(Se, 2);
5869
+ Ae.__click = S, I(ge), I(N), I(M), I(F);
5870
+ var je = B(F, 2);
5871
5871
  {
5872
5872
  var $e = (T) => {
5873
5873
  Gs(T, {
@@ -5878,15 +5878,15 @@ function Vs(t, e) {
5878
5878
  $(o, P(Y));
5879
5879
  },
5880
5880
  get showDocumentSearchModal() {
5881
- return p(A);
5881
+ return p(j);
5882
5882
  },
5883
5883
  set showDocumentSearchModal(Y) {
5884
- $(A, P(Y));
5884
+ $(j, P(Y));
5885
5885
  }
5886
5886
  });
5887
5887
  };
5888
- q(Ae, (T) => {
5889
- p(A) && T($e);
5888
+ q(je, (T) => {
5889
+ p(j) && T($e);
5890
5890
  });
5891
5891
  }
5892
5892
  return O(() => Qe(le, `${`btn aks-btn-answer aks-btn-rounded ${p(w) ? "aks-btn-ans-selected" : ""}` ?? ""} svelte-13r2zha`)), rl(ae, () => p(s), (T) => $(s, T)), Bo("wheel", oe, h), _n(3, F, () => ei, () => ({ duration: 300, delay: 200 })), x(t, R), H({
@@ -6352,10 +6352,10 @@ function Cd(t, e) {
6352
6352
  }
6353
6353
  return r;
6354
6354
  }
6355
- function jd(t) {
6355
+ function Ad(t) {
6356
6356
  return t === 404;
6357
6357
  }
6358
- const Ad = (t, e, n) => {
6358
+ const jd = (t, e, n) => {
6359
6359
  const r = [], i = Cd(t, e), s = "icons";
6360
6360
  let a = {
6361
6361
  type: s,
@@ -6408,7 +6408,7 @@ const Ld = (t, e, n) => {
6408
6408
  const a = s.status;
6409
6409
  if (a !== 200) {
6410
6410
  setTimeout(() => {
6411
- n(jd(a) ? "abort" : "next", a);
6411
+ n(Ad(a) ? "abort" : "next", a);
6412
6412
  });
6413
6413
  return;
6414
6414
  }
@@ -6427,7 +6427,7 @@ const Ld = (t, e, n) => {
6427
6427
  n("next", i);
6428
6428
  });
6429
6429
  }, Pd = {
6430
- prepare: Ad,
6430
+ prepare: jd,
6431
6431
  send: Ld
6432
6432
  };
6433
6433
  function Od(t) {
@@ -6537,8 +6537,8 @@ function Nd(t, e, n, r) {
6537
6537
  if (t.random) {
6538
6538
  let w = t.resources.slice(0);
6539
6539
  for (a = []; w.length > 1; ) {
6540
- const A = Math.floor(Math.random() * w.length);
6541
- a.push(w[A]), w = w.slice(0, A).concat(w.slice(A + 1));
6540
+ const j = Math.floor(Math.random() * w.length);
6541
+ a.push(w[j]), w = w.slice(0, j).concat(w.slice(j + 1));
6542
6542
  }
6543
6543
  a = a.concat(w);
6544
6544
  } else
@@ -6554,8 +6554,8 @@ function Nd(t, e, n, r) {
6554
6554
  w.status === "pending" && (w.status = "aborted");
6555
6555
  }), f = [];
6556
6556
  }
6557
- function S(w, A) {
6558
- A && (h = []), typeof w == "function" && h.push(w);
6557
+ function S(w, j) {
6558
+ j && (h = []), typeof w == "function" && h.push(w);
6559
6559
  }
6560
6560
  function k() {
6561
6561
  return {
@@ -6578,8 +6578,8 @@ function Nd(t, e, n, r) {
6578
6578
  w.status === "pending" && (w.status = "aborted");
6579
6579
  }), f = [];
6580
6580
  }
6581
- function E(w, A, R) {
6582
- const F = A !== "success";
6581
+ function E(w, j, R) {
6582
+ const F = j !== "success";
6583
6583
  switch (f = f.filter((W) => W !== w), l) {
6584
6584
  case "pending":
6585
6585
  break;
@@ -6590,7 +6590,7 @@ function Nd(t, e, n, r) {
6590
6590
  default:
6591
6591
  return;
6592
6592
  }
6593
- if (A === "abort") {
6593
+ if (j === "abort") {
6594
6594
  u = R, _();
6595
6595
  return;
6596
6596
  }
@@ -6621,14 +6621,14 @@ function Nd(t, e, n, r) {
6621
6621
  _();
6622
6622
  return;
6623
6623
  }
6624
- const A = {
6624
+ const j = {
6625
6625
  status: "pending",
6626
6626
  resource: w,
6627
6627
  callback: (R, F) => {
6628
- E(A, R, F);
6628
+ E(j, R, F);
6629
6629
  }
6630
6630
  };
6631
- f.push(A), c++, d = setTimeout(y, t.rotate), n(w, e, A.callback);
6631
+ f.push(j), c++, d = setTimeout(y, t.rotate), n(w, e, j.callback);
6632
6632
  }
6633
6633
  return setTimeout(y), k;
6634
6634
  }
@@ -7084,7 +7084,7 @@ function gn(t, e) {
7084
7084
  var m = (k) => {
7085
7085
  var _ = cf();
7086
7086
  let C;
7087
- var E = j(_);
7087
+ var E = A(_);
7088
7088
  Rr(E, () => p(a).body, !0, !1), I(_), O(() => C = $i(_, C, { ...p(a).attributes }, void 0, !0)), x(k, _);
7089
7089
  }, S = (k) => {
7090
7090
  var _ = uf();
@@ -7220,7 +7220,7 @@ const Le = {
7220
7220
  lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
7221
7221
  paragraph: ne(ui).replace("hr", kn).replace("heading", ` *#{1,6} *[^
7222
7222
  ]`).replace("lheading", la).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
7223
- }, yf = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, zf = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, ua = /^( {2,}|\\)\n(?!\s*$)/, Sf = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, ur = /[\p{P}\p{S}]/u, pi = /[\s\p{P}\p{S}]/u, da = /[^\s\p{P}\p{S}]/u, $f = ne(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, pi).getRegex(), fa = /(?!~)[\p{P}\p{S}]/u, Ef = /(?!~)[\s\p{P}\p{S}]/u, Tf = /(?:[^\s\p{P}\p{S}]|~)/u, If = /\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g, ha = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, Cf = ne(ha, "u").replace(/punct/g, ur).getRegex(), jf = ne(ha, "u").replace(/punct/g, fa).getRegex(), pa = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", Af = ne(pa, "gu").replace(/notPunctSpace/g, da).replace(/punctSpace/g, pi).replace(/punct/g, ur).getRegex(), Rf = ne(pa, "gu").replace(/notPunctSpace/g, Tf).replace(/punctSpace/g, Ef).replace(/punct/g, fa).getRegex(), Lf = ne("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, da).replace(/punctSpace/g, pi).replace(/punct/g, ur).getRegex(), Pf = ne(/\\(punct)/, "gu").replace(/punct/g, ur).getRegex(), Of = ne(/^<(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(), Ff = ne(fi).replace("(?:-->|$)", "-->").getRegex(), Mf = ne("^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", Ff).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), Vn = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, Df = ne(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label", Vn).replace("href", /<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), va = ne(/^!?\[(label)\]\[(ref)\]/).replace("label", Vn).replace("ref", di).getRegex(), ga = ne(/^!?\[(ref)\](?:\[\])?/).replace("ref", di).getRegex(), qf = ne("reflink|nolink(?!\\()", "g").replace("reflink", va).replace("nolink", ga).getRegex(), vi = {
7223
+ }, yf = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, zf = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, ua = /^( {2,}|\\)\n(?!\s*$)/, Sf = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, ur = /[\p{P}\p{S}]/u, pi = /[\s\p{P}\p{S}]/u, da = /[^\s\p{P}\p{S}]/u, $f = ne(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, pi).getRegex(), fa = /(?!~)[\p{P}\p{S}]/u, Ef = /(?!~)[\s\p{P}\p{S}]/u, Tf = /(?:[^\s\p{P}\p{S}]|~)/u, If = /\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g, ha = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, Cf = ne(ha, "u").replace(/punct/g, ur).getRegex(), Af = ne(ha, "u").replace(/punct/g, fa).getRegex(), pa = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", jf = ne(pa, "gu").replace(/notPunctSpace/g, da).replace(/punctSpace/g, pi).replace(/punct/g, ur).getRegex(), Rf = ne(pa, "gu").replace(/notPunctSpace/g, Tf).replace(/punctSpace/g, Ef).replace(/punct/g, fa).getRegex(), Lf = ne("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, da).replace(/punctSpace/g, pi).replace(/punct/g, ur).getRegex(), Pf = ne(/\\(punct)/, "gu").replace(/punct/g, ur).getRegex(), Of = ne(/^<(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(), Ff = ne(fi).replace("(?:-->|$)", "-->").getRegex(), Mf = ne("^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", Ff).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), Vn = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, Df = ne(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label", Vn).replace("href", /<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), va = ne(/^!?\[(label)\]\[(ref)\]/).replace("label", Vn).replace("ref", di).getRegex(), ga = ne(/^!?\[(ref)\](?:\[\])?/).replace("ref", di).getRegex(), qf = ne("reflink|nolink(?!\\()", "g").replace("reflink", va).replace("nolink", ga).getRegex(), vi = {
7224
7224
  _backpedal: un,
7225
7225
  // only used for GFM url
7226
7226
  anyPunctuation: Pf,
@@ -7230,7 +7230,7 @@ const Le = {
7230
7230
  code: zf,
7231
7231
  del: un,
7232
7232
  emStrongLDelim: Cf,
7233
- emStrongRDelimAst: Af,
7233
+ emStrongRDelimAst: jf,
7234
7234
  emStrongRDelimUnd: Lf,
7235
7235
  escape: yf,
7236
7236
  link: Df,
@@ -7248,7 +7248,7 @@ const Le = {
7248
7248
  }, Dr = {
7249
7249
  ...vi,
7250
7250
  emStrongRDelimAst: Rf,
7251
- emStrongLDelim: jf,
7251
+ emStrongLDelim: Af,
7252
7252
  url: ne(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/, "i").replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),
7253
7253
  _backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,
7254
7254
  del: /^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,
@@ -7516,10 +7516,10 @@ ${d}` : d;
7516
7516
  `, e = e.substring(h.length + 1), c = !0), !c) {
7517
7517
  const _ = this.rules.other.nextBulletRegex(m), C = this.rules.other.hrRegex(m), E = this.rules.other.fencesBeginRegex(m), y = this.rules.other.headingBeginRegex(m), w = this.rules.other.htmlBeginRegex(m);
7518
7518
  for (; e; ) {
7519
- const A = e.split(`
7519
+ const j = e.split(`
7520
7520
  `, 1)[0];
7521
7521
  let R;
7522
- if (h = A, this.options.pedantic ? (h = h.replace(this.rules.other.listReplaceNesting, " "), R = h) : R = h.replace(this.rules.other.tabCharGlobal, " "), E.test(h) || y.test(h) || w.test(h) || _.test(h) || C.test(h))
7522
+ if (h = j, this.options.pedantic ? (h = h.replace(this.rules.other.listReplaceNesting, " "), R = h) : R = h.replace(this.rules.other.tabCharGlobal, " "), E.test(h) || y.test(h) || w.test(h) || _.test(h) || C.test(h))
7523
7523
  break;
7524
7524
  if (R.search(this.rules.other.nonSpaceChar) >= m || !h.trim())
7525
7525
  d += `
@@ -7530,8 +7530,8 @@ ${d}` : d;
7530
7530
  d += `
7531
7531
  ` + h;
7532
7532
  }
7533
- !b && !h.trim() && (b = !0), u += A + `
7534
- `, e = e.substring(A.length + 1), f = R.slice(m);
7533
+ !b && !h.trim() && (b = !0), u += j + `
7534
+ `, e = e.substring(j.length + 1), f = R.slice(m);
7535
7535
  }
7536
7536
  }
7537
7537
  s.loose || (o ? s.loose = !0 : this.rules.other.doubleBlankLine.test(u) && (o = !0));
@@ -8676,7 +8676,7 @@ const Gf = (t, e) => {
8676
8676
  };
8677
8677
  var Vf = (t, e, n, r, i, s) => {
8678
8678
  e() || n(r(), i(), s());
8679
- }, Wf = /* @__PURE__ */ z('<i class="fa-solid fa-file-pdf svelte-1w7hgzh" style="color: #f0463c;"></i>'), Xf = /* @__PURE__ */ z('<i class="fa-solid fa-file-word svelte-1w7hgzh" style="color: #305b9a;"></i>'), Jf = /* @__PURE__ */ z('<i class="fa-solid fa-file-excel svelte-1w7hgzh" style="color: #0c7540;"></i>'), Qf = /* @__PURE__ */ z('<i class="fa-solid fa-file-powerpoint svelte-1w7hgzh" style="color: #d14b2b;"></i>'), Kf = /* @__PURE__ */ z('<i class="fa-solid fa-passport svelte-1w7hgzh" style="color: #ff9800"></i>'), eh = /* @__PURE__ */ z('<i class="fa-solid fa-file svelte-1w7hgzh"></i>'), th = /* @__PURE__ */ z('<button aria-label="Visualizza allegato"><!> <span class="svelte-1w7hgzh"> </span></button>'), nh = /* @__PURE__ */ z('<div class="dropdown-content svelte-1w7hgzh"></div>'), rh = /* @__PURE__ */ z('<div class="dropdown svelte-1w7hgzh"><button class="allegatibtn svelte-1w7hgzh" aria-label="Visualizza allegati"> </button> <!></div>'), ih = /* @__PURE__ */ z('<div class="message-attachments"><!></div>');
8679
+ }, Wf = /* @__PURE__ */ z('<i class="fa-solid fa-file-pdf svelte-1w7hgzh" style="color: #f0463c;"></i>'), Xf = /* @__PURE__ */ z('<i class="fa-solid fa-file-word svelte-1w7hgzh" style="color: #305b9a;"></i>'), Jf = /* @__PURE__ */ z('<i class="fa-solid fa-file-excel svelte-1w7hgzh" style="color: #0c7540;"></i>'), Qf = /* @__PURE__ */ z('<i class="fa-solid fa-file-powerpoint svelte-1w7hgzh" style="color: #d14b2b;"></i>'), Kf = /* @__PURE__ */ z('<i class="fa-solid fa-passport svelte-1w7hgzh" style="color: #0DCAF0"></i>'), eh = /* @__PURE__ */ z('<i class="fa-solid fa-file svelte-1w7hgzh"></i>'), th = /* @__PURE__ */ z('<button aria-label="Visualizza allegato"><!> <span class="svelte-1w7hgzh"> </span></button>'), nh = /* @__PURE__ */ z('<div class="dropdown-content svelte-1w7hgzh"></div>'), rh = /* @__PURE__ */ z('<div class="dropdown svelte-1w7hgzh"><button class="allegatibtn svelte-1w7hgzh" aria-label="Visualizza allegati"> </button> <!></div>'), ih = /* @__PURE__ */ z('<div class="message-attachments"><!></div>');
8680
8680
  const sh = {
8681
8681
  hash: "svelte-1w7hgzh",
8682
8682
  code: ".dropdown.svelte-1w7hgzh {position:relative;display:inline-block;}.allegatibtn.svelte-1w7hgzh {display:flex;align-items:center;padding:8px 12px;background:#d5ddea;color:#333;border:none;border-radius:8px;cursor:pointer;font-size:14px;transition:200ms;border-radius:0 0 10px 10px;}.allegatibtn.svelte-1w7hgzh:hover {background:#e9ecef;color:#295dcf;}.dropdown-content.svelte-1w7hgzh {position:absolute;bottom:100%;left:5px;margin-bottom:5px;background:white;border:1px solid #e9ecef;border-radius:8px;box-shadow:0 4px 12px rgba(0, 0, 0, 0.4);min-width:180px;z-index:1000;}.dropdown-option.svelte-1w7hgzh {display:flex;align-items:center;width:100%;padding:10px 15px;border:none;background:white;color:#333;cursor:pointer;transition:all 0.2s;border-radius:0;}.dropdown-option.common.svelte-1w7hgzh {color:#8fa1c9;cursor:default;}.dropdown-option.svelte-1w7hgzh:first-child {border-top-left-radius:8px;border-top-right-radius:8px;}.dropdown-option.svelte-1w7hgzh:last-child {border-bottom-left-radius:8px;border-bottom-right-radius:8px;}.dropdown-option.svelte-1w7hgzh:hover {background:#f8f9fa;color:#295dcf;}.dropdown-option.common.svelte-1w7hgzh:hover {background:white;color:#8fa1c9;}.dropdown-option.svelte-1w7hgzh i:where(.svelte-1w7hgzh) {margin-right:10px;width:16px;text-align:center;}.dropdown-option.svelte-1w7hgzh span:where(.svelte-1w7hgzh) {font-size:14px;}"
@@ -8687,12 +8687,12 @@ function ma(t, e) {
8687
8687
  const i = async (l, c, u) => {
8688
8688
  await ar.getDocumentPage(l, c, u);
8689
8689
  };
8690
- var s = ih(), a = j(s);
8690
+ var s = ih(), a = A(s);
8691
8691
  {
8692
8692
  var o = (l) => {
8693
- var c = rh(), u = j(c);
8693
+ var c = rh(), u = A(c);
8694
8694
  u.__click = [Gf, n];
8695
- var d = j(u);
8695
+ var d = A(u);
8696
8696
  I(u);
8697
8697
  var f = B(u, 2);
8698
8698
  {
@@ -8709,7 +8709,7 @@ function ma(t, e) {
8709
8709
  _,
8710
8710
  E
8711
8711
  ];
8712
- var A = j(w);
8712
+ var j = A(w);
8713
8713
  {
8714
8714
  var R = (M) => {
8715
8715
  var N = Wf();
@@ -8729,10 +8729,10 @@ function ma(t, e) {
8729
8729
  }, he = (ge) => {
8730
8730
  var Se = me(), xe = fe(Se);
8731
8731
  {
8732
- var be = (Ae) => {
8732
+ var be = (je) => {
8733
8733
  var $e = Qf();
8734
- x(Ae, $e);
8735
- }, je = (Ae) => {
8734
+ x(je, $e);
8735
+ }, Ae = (je) => {
8736
8736
  var $e = me(), T = fe($e);
8737
8737
  {
8738
8738
  var Y = (ue) => {
@@ -8750,12 +8750,12 @@ function ma(t, e) {
8750
8750
  !0
8751
8751
  );
8752
8752
  }
8753
- x(Ae, $e);
8753
+ x(je, $e);
8754
8754
  };
8755
8755
  q(
8756
8756
  xe,
8757
- (Ae) => {
8758
- _().split(".").pop() === "pptx" ? Ae(be) : Ae(je, !1);
8757
+ (je) => {
8758
+ _().split(".").pop() === "pptx" ? je(be) : je(Ae, !1);
8759
8759
  },
8760
8760
  !0
8761
8761
  );
@@ -8782,11 +8782,11 @@ function ma(t, e) {
8782
8782
  }
8783
8783
  x(M, N);
8784
8784
  };
8785
- q(A, (M) => {
8785
+ q(j, (M) => {
8786
8786
  _().split(".").pop() === "pdf" ? M(R) : M(F, !1);
8787
8787
  });
8788
8788
  }
8789
- var W = B(A, 2), ae = j(W, !0);
8789
+ var W = B(j, 2), ae = A(W, !0);
8790
8790
  I(W), I(w), O(() => {
8791
8791
  Qe(w, `${`dropdown-option ${y() ? "common" : ""}` ?? ""} svelte-1w7hgzh`), D(w, "title", `${y() ? "Documento comune" : "Visualizza allegato"}`), Tt(ae, _());
8792
8792
  }), x(S, w);
@@ -8847,12 +8847,12 @@ function ba(t, e) {
8847
8847
  Et(() => {
8848
8848
  s(), n(), d();
8849
8849
  });
8850
- var h = ph(), b = B(j(h), 2);
8850
+ var h = ph(), b = B(A(h), 2);
8851
8851
  Ce(b, 17, n, Ie, (E, y) => {
8852
- var w = me(), A = fe(w);
8852
+ var w = me(), j = fe(w);
8853
8853
  {
8854
8854
  var R = (F) => {
8855
- var W = uh(), ae = j(W), M = j(ae), N = j(M), ve = j(N);
8855
+ var W = uh(), ae = A(W), M = A(ae), N = A(M), ve = A(N);
8856
8856
  Rr(ve, () => p(y).html ?? re.parseInline(p(y).content), !1, !1), I(N), I(M);
8857
8857
  var le = B(M, 2);
8858
8858
  {
@@ -8895,7 +8895,7 @@ function ba(t, e) {
8895
8895
  }
8896
8896
  I(W), O(() => Qe(M, Ms(p(y).sentByUser ? "message-sent" : "message-received"), "svelte-1frgo02")), x(F, W);
8897
8897
  };
8898
- q(A, (F) => {
8898
+ q(j, (F) => {
8899
8899
  p(y).content != "" && F(R);
8900
8900
  });
8901
8901
  }
@@ -8904,8 +8904,8 @@ function ba(t, e) {
8904
8904
  var m = B(b, 2);
8905
8905
  {
8906
8906
  var S = (E) => {
8907
- var y = dh(), w = j(y), A = j(w), R = j(A);
8908
- Rr(R, s, !1, !1), I(A), I(w);
8907
+ var y = dh(), w = A(y), j = A(w), R = A(j);
8908
+ Rr(R, s, !1, !1), I(j), I(w);
8909
8909
  var F = B(w, 2);
8910
8910
  {
8911
8911
  var W = (ae) => {
@@ -8924,8 +8924,8 @@ function ba(t, e) {
8924
8924
  }, k = (E) => {
8925
8925
  var y = me(), w = fe(y);
8926
8926
  {
8927
- var A = (R) => {
8928
- var F = fh(), W = j(F);
8927
+ var j = (R) => {
8928
+ var F = fh(), W = A(F);
8929
8929
  gn(W, {
8930
8930
  icon: "svg-spinners:3-dots-bounce",
8931
8931
  width: "25px",
@@ -8936,7 +8936,7 @@ function ba(t, e) {
8936
8936
  q(
8937
8937
  w,
8938
8938
  (R) => {
8939
- r() && R(A);
8939
+ r() && R(j);
8940
8940
  },
8941
8941
  !0
8942
8942
  );
@@ -8950,7 +8950,7 @@ function ba(t, e) {
8950
8950
  var _ = B(m, 2);
8951
8951
  {
8952
8952
  var C = (E) => {
8953
- var y = hh(), w = j(y, !0);
8953
+ var y = hh(), w = A(y, !0);
8954
8954
  I(y), O(() => Tt(w, i())), x(E, y);
8955
8955
  };
8956
8956
  q(_, (E) => {
@@ -9124,14 +9124,14 @@ function wa(t, e) {
9124
9124
  i(i().filter((h) => h._id !== d)), r()._id === d && r(new pt("", "", "", "New Chat", [_t.firstMessage()]));
9125
9125
  });
9126
9126
  };
9127
- var l = $h(), c = j(l);
9127
+ var l = $h(), c = A(l);
9128
9128
  {
9129
9129
  var u = (d) => {
9130
- var f = Sh(), h = B(j(f), 2);
9130
+ var f = Sh(), h = B(A(f), 2);
9131
9131
  Ce(h, 21, i, Ie, (b, m) => {
9132
- var S = zh(), k = j(S);
9132
+ var S = zh(), k = A(S);
9133
9133
  k.__click = [kh, r, m, a];
9134
- var _ = j(k), C = j(_, !0);
9134
+ var _ = A(k), C = A(_, !0);
9135
9135
  I(_), I(k);
9136
9136
  var E = B(k, 2);
9137
9137
  E.__click = [yh, o, m], I(S), O(() => {
@@ -9183,14 +9183,14 @@ Z(
9183
9183
  [],
9184
9184
  !0
9185
9185
  );
9186
- var Th = /* @__PURE__ */ z('<div class="loading-placeholder svelte-1p82do8"><!></div>'), Ih = /* @__PURE__ */ z('<!> <div class="resize-border-left svelte-1p82do8"></div> <div class="resize-border-top svelte-1p82do8"></div> <div class="resize-handle svelte-1p82do8"><!></div> <!> <!> <!>', 1), Ch = /* @__PURE__ */ z('<div class="chat svelte-1p82do8"><!></div>'), jh = (t, e, n) => {
9186
+ var Th = /* @__PURE__ */ z('<div class="loading-placeholder svelte-1p82do8"><!></div>'), Ih = /* @__PURE__ */ z('<!> <div class="resize-border-left svelte-1p82do8"></div> <div class="resize-border-top svelte-1p82do8"></div> <div class="resize-handle svelte-1p82do8"><!></div> <!> <!> <!>', 1), Ch = /* @__PURE__ */ z('<div class="chat svelte-1p82do8"><!></div>'), Ah = (t, e, n) => {
9187
9187
  p(e) ? p(n) ? ($(n, !1), setTimeout(
9188
9188
  () => {
9189
9189
  $(e, !1);
9190
9190
  },
9191
9191
  450
9192
9192
  )) : $(e, !1) : $(e, !0);
9193
- }, Ah = /* @__PURE__ */ z('<div class="external-div"><!> <button><i class="fa-solid fa-comment-nodes"></i><span class="d-none d-md-inline ps-2">Assistente AI</span></button></div>');
9193
+ }, jh = /* @__PURE__ */ z('<div class="external-div"><!> <button><i class="fa-solid fa-comment-nodes"></i><span class="d-none d-md-inline ps-2">Assistente AI</span></button></div>');
9194
9194
  const Rh = {
9195
9195
  hash: "svelte-1p82do8",
9196
9196
  code: ".loading-placeholder.svelte-1p82do8 {display:flex;justify-content:center;align-items:center;height:100%;}.chat.svelte-1p82do8 {position:fixed;bottom:0;right:0;width:75%;height:90%;min-width:300px;min-height:400px;border-radius:15px;display:flex;flex-direction:column;margin:30px;padding:10px;background:#295dcf;box-shadow:0 0 10px rgba(0, 0, 0, 0.1);resize:none;overflow:visible;z-index:1000;}.resize-handle.svelte-1p82do8 {position:absolute;top:-2px;left:-2px;cursor:nw-resize;z-index:1002;display:flex;align-items:flex-start;justify-content:flex-start;}.resize-border-left.svelte-1p82do8 {position:absolute;top:0;left:-2px;width:4px;height:100%;cursor:ew-resize;z-index:1001;background:transparent;}.resize-border-top.svelte-1p82do8 {position:absolute;top:-2px;left:0;width:100%;height:4px;cursor:ns-resize;z-index:1001;background:transparent;}.no-select.svelte-1p82do8 {user-select:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;}"
@@ -9237,7 +9237,7 @@ function xa(t, e) {
9237
9237
  p(a) && $(l, P(p(a).messages)), k();
9238
9238
  });
9239
9239
  let _ = !1, C, E, y, w;
9240
- function A(M) {
9240
+ function j(M) {
9241
9241
  const N = M.target;
9242
9242
  if (N.closest(".resize-handle") || N.classList.contains("resize-border-left") || N.classList.contains("resize-border-top")) {
9243
9243
  M.preventDefault(), M.stopPropagation(), _ = !0, C = M.clientX, E = M.clientY;
@@ -9248,14 +9248,14 @@ function xa(t, e) {
9248
9248
  he.preventDefault();
9249
9249
  const ge = document.querySelector(".chat"), Se = window.innerWidth * 0.75, xe = window.innerHeight * 0.9;
9250
9250
  if (ee) {
9251
- const be = C - he.clientX, je = Math.min(Math.max(y + be, 300), Se);
9252
- ge.style.width = `${je}px`;
9251
+ const be = C - he.clientX, Ae = Math.min(Math.max(y + be, 300), Se);
9252
+ ge.style.width = `${Ae}px`;
9253
9253
  } else if (oe) {
9254
- const be = E - he.clientY, je = Math.min(Math.max(w + be, 400), xe);
9255
- ge.style.height = `${je}px`;
9254
+ const be = E - he.clientY, Ae = Math.min(Math.max(w + be, 400), xe);
9255
+ ge.style.height = `${Ae}px`;
9256
9256
  } else if (de) {
9257
- const be = C - he.clientX, je = E - he.clientY, Ae = Math.min(Math.max(y + be, 300), Se), $e = Math.min(Math.max(w + je, 400), xe);
9258
- ge.style.width = `${Ae}px`, ge.style.height = `${$e}px`;
9257
+ const be = C - he.clientX, Ae = E - he.clientY, je = Math.min(Math.max(y + be, 300), Se), $e = Math.min(Math.max(w + Ae, 400), xe);
9258
+ ge.style.width = `${je}px`, ge.style.height = `${$e}px`;
9259
9259
  }
9260
9260
  }, Ee = () => {
9261
9261
  var he;
@@ -9274,15 +9274,15 @@ function xa(t, e) {
9274
9274
  console.error("Failed to load username", M), $(h, "Failed to load username"), $(u, !1);
9275
9275
  }
9276
9276
  });
9277
- var R = Ah(), F = j(R);
9277
+ var R = jh(), F = A(R);
9278
9278
  {
9279
9279
  var W = (M) => {
9280
9280
  var N = Ch();
9281
- N.__mousedown = A;
9282
- var ve = j(N);
9281
+ N.__mousedown = j;
9282
+ var ve = A(N);
9283
9283
  {
9284
9284
  var le = (ee) => {
9285
- var oe = Th(), te = j(oe);
9285
+ var oe = Th(), te = A(oe);
9286
9286
  gn(te, {
9287
9287
  icon: "svg-spinners:270-ring-with-bg",
9288
9288
  width: "50px",
@@ -9320,7 +9320,7 @@ function xa(t, e) {
9320
9320
  $(h, P(T));
9321
9321
  }
9322
9322
  });
9323
- var xe = B(Se, 6), be = j(xe);
9323
+ var xe = B(Se, 6), be = A(xe);
9324
9324
  gn(be, {
9325
9325
  icon: "hugeicons:resize-field",
9326
9326
  width: "25px",
@@ -9330,8 +9330,8 @@ function xa(t, e) {
9330
9330
  color: "white",
9331
9331
  style: "margin: 2px 0 0 2px;"
9332
9332
  }), I(xe);
9333
- var je = B(xe, 2);
9334
- Hs(je, {
9333
+ var Ae = B(xe, 2);
9334
+ Hs(Ae, {
9335
9335
  get show() {
9336
9336
  return p(n);
9337
9337
  },
@@ -9375,8 +9375,8 @@ function xa(t, e) {
9375
9375
  $(h, P(T));
9376
9376
  }
9377
9377
  });
9378
- var Ae = B(je, 2);
9379
- ba(Ae, {
9378
+ var je = B(Ae, 2);
9379
+ ba(je, {
9380
9380
  get messages() {
9381
9381
  return p(l);
9382
9382
  },
@@ -9408,7 +9408,7 @@ function xa(t, e) {
9408
9408
  $(i, P(T));
9409
9409
  }
9410
9410
  });
9411
- var $e = B(Ae, 2);
9411
+ var $e = B(je, 2);
9412
9412
  Vs($e, {
9413
9413
  sendMessage: S,
9414
9414
  get loading() {
@@ -9446,7 +9446,7 @@ function xa(t, e) {
9446
9446
  });
9447
9447
  }
9448
9448
  var ae = B(F, 2);
9449
- ae.__click = [jh, n, r], I(R), O(() => Qe(ae, `${`btn ${p(n) ? "aks-btn-answer" : "btn-primary"}` ?? ""} svelte-1p82do8`)), x(t, R), H();
9449
+ ae.__click = [Ah, n, r], I(R), O(() => Qe(ae, `${`btn ${p(n) ? "aks-btn-answer" : "btn-primary"}` ?? ""} svelte-1p82do8`)), x(t, R), H();
9450
9450
  }
9451
9451
  kt(["mousedown", "click"]);
9452
9452
  Z(xa, {}, [], [], !0);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "akpm-knowledge-base-chat",
3
3
  "private": false,
4
- "version": "1.0.39",
4
+ "version": "1.0.40",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "CDN"