akpm-knowledge-base-chat 1.0.82 → 1.0.83

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 +163 -168
  2. package/package.json +1 -1
package/CDN/akb-chat.js CHANGED
@@ -1,4 +1,4 @@
1
- /* Version: 1.0.82 */
1
+ /* Version: 1.0.83 */
2
2
  var co = Object.defineProperty;
3
3
  var Hs = (t) => {
4
4
  throw TypeError(t);
@@ -218,7 +218,7 @@ function Jr() {
218
218
  e.remove(), e = r;
219
219
  }
220
220
  }
221
- function C(t, e = null, n) {
221
+ function E(t, e = null, n) {
222
222
  if (typeof t != "object" || t === null || Mt in t)
223
223
  return t;
224
224
  const r = bs(t);
@@ -237,7 +237,7 @@ function C(t, e = null, n) {
237
237
  defineProperty(l, c, u) {
238
238
  (!("value" in u) || u.configurable === !1 || u.enumerable === !1 || u.writable === !1) && Zo();
239
239
  var d = s.get(c);
240
- return d === void 0 ? (d = rt(u.value), s.set(c, d)) : w(d, C(u.value, o)), !0;
240
+ return d === void 0 ? (d = rt(u.value), s.set(c, d)) : w(d, E(u.value, o)), !0;
241
241
  },
242
242
  deleteProperty(l, c) {
243
243
  var u = s.get(c);
@@ -260,7 +260,7 @@ function C(t, e = null, n) {
260
260
  if (c === Mt)
261
261
  return t;
262
262
  var d = s.get(c), f = c in l;
263
- if (d === void 0 && (!f || (b = rn(l, c)) != null && b.writable) && (d = rt(C(f ? l[c] : nt, o)), s.set(c, d)), d !== void 0) {
263
+ if (d === void 0 && (!f || (b = rn(l, c)) != null && b.writable) && (d = rt(E(f ? l[c] : nt, o)), s.set(c, d)), d !== void 0) {
264
264
  var h = p(d);
265
265
  return h === nt ? void 0 : h;
266
266
  }
@@ -289,7 +289,7 @@ function C(t, e = null, n) {
289
289
  return !0;
290
290
  var u = s.get(c), d = u !== void 0 && u.v !== nt || Reflect.has(l, c);
291
291
  if (u !== void 0 || ve !== null && (!d || (h = rn(l, c)) != null && h.writable)) {
292
- u === void 0 && (u = rt(d ? C(l[c], o) : nt), s.set(c, u));
292
+ u === void 0 && (u = rt(d ? E(l[c], o) : nt), s.set(c, u));
293
293
  var f = p(u);
294
294
  if (f === nt)
295
295
  return !1;
@@ -305,7 +305,7 @@ function C(t, e = null, n) {
305
305
  var m = s.get(b + "");
306
306
  m !== void 0 ? w(m, nt) : b in l && (m = rt(nt), s.set(b + "", m));
307
307
  }
308
- f === void 0 ? (!h || ($ = rn(l, c)) != null && $.writable) && (f = rt(void 0), w(f, C(u, o)), s.set(c, f)) : (h = f.v !== nt, w(f, C(u, o)));
308
+ f === void 0 ? (!h || ($ = rn(l, c)) != null && $.writable) && (f = rt(void 0), w(f, E(u, o)), s.set(c, f)) : (h = f.v !== nt, w(f, E(u, o)));
309
309
  var z = Reflect.getOwnPropertyDescriptor(l, c);
310
310
  if (z != null && z.set && z.set.call(d, u), !h) {
311
311
  if (a && typeof c == "string") {
@@ -1544,18 +1544,18 @@ function Je(t, e, n, r, s, a = null) {
1544
1544
  ke, m = !0, Ot(!1);
1545
1545
  break;
1546
1546
  }
1547
- var O = h[$], E = r(O, $);
1547
+ var O = h[$], C = r(O, $);
1548
1548
  y = vi(
1549
1549
  ke,
1550
1550
  o,
1551
1551
  _,
1552
1552
  null,
1553
1553
  O,
1554
- E,
1554
+ C,
1555
1555
  $,
1556
1556
  s,
1557
1557
  e
1558
- ), o.items.set(E, y), _ = y;
1558
+ ), o.items.set(C, y), _ = y;
1559
1559
  }
1560
1560
  b > 0 && gt(Jr());
1561
1561
  }
@@ -1581,12 +1581,12 @@ function Je(t, e, n, r, s, a = null) {
1581
1581
  }
1582
1582
  function zl(t, e, n, r, s, a, i, o) {
1583
1583
  var Pe, Te, Ee, U;
1584
- var l = (s & ho) !== 0, c = (s & (hs | ps)) !== 0, u = t.length, d = e.items, f = e.first, h = f, b, m = null, z, _ = [], y = [], $, O, E, I;
1584
+ var l = (s & ho) !== 0, c = (s & (hs | ps)) !== 0, u = t.length, d = e.items, f = e.first, h = f, b, m = null, z, _ = [], y = [], $, O, C, I;
1585
1585
  if (l)
1586
1586
  for (I = 0; I < u; I += 1)
1587
- $ = t[I], O = i($, I), E = d.get(O), E !== void 0 && ((Pe = E.a) == null || Pe.measure(), (z ?? (z = /* @__PURE__ */ new Set())).add(E));
1587
+ $ = t[I], O = i($, I), C = d.get(O), C !== void 0 && ((Pe = C.a) == null || Pe.measure(), (z ?? (z = /* @__PURE__ */ new Set())).add(C));
1588
1588
  for (I = 0; I < u; I += 1) {
1589
- if ($ = t[I], O = i($, I), E = d.get(O), E === void 0) {
1589
+ if ($ = t[I], O = i($, I), C = d.get(O), C === void 0) {
1590
1590
  var R = h ? (
1591
1591
  /** @type {TemplateNode} */
1592
1592
  h.e.nodes_start
@@ -1604,8 +1604,8 @@ function zl(t, e, n, r, s, a, i, o) {
1604
1604
  ), d.set(O, m), _ = [], y = [], h = m.next;
1605
1605
  continue;
1606
1606
  }
1607
- if (c && $l(E, $, I, s), E.e.f & kt && (hr(E.e), l && ((Te = E.a) == null || Te.unfix(), (z ?? (z = /* @__PURE__ */ new Set())).delete(E))), E !== h) {
1608
- if (b !== void 0 && b.has(E)) {
1607
+ if (c && $l(C, $, I, s), C.e.f & kt && (hr(C.e), l && ((Te = C.a) == null || Te.unfix(), (z ?? (z = /* @__PURE__ */ new Set())).delete(C))), C !== h) {
1608
+ if (b !== void 0 && b.has(C)) {
1609
1609
  if (_.length < y.length) {
1610
1610
  var M = y[0], Z;
1611
1611
  m = M.prev;
@@ -1616,16 +1616,16 @@ function zl(t, e, n, r, s, a, i, o) {
1616
1616
  b.delete(y[Z]);
1617
1617
  Ht(e, X.prev, Oe.next), Ht(e, m, X), Ht(e, Oe, M), h = M, m = Oe, I -= 1, _ = [], y = [];
1618
1618
  } else
1619
- b.delete(E), Ks(E, h, n), Ht(e, E.prev, E.next), Ht(e, E, m === null ? e.first : m.next), Ht(e, m, E), m = E;
1619
+ b.delete(C), Ks(C, h, n), Ht(e, C.prev, C.next), Ht(e, C, m === null ? e.first : m.next), Ht(e, m, C), m = C;
1620
1620
  continue;
1621
1621
  }
1622
1622
  for (_ = [], y = []; h !== null && h.k !== O; )
1623
1623
  (a || !(h.e.f & kt)) && (b ?? (b = /* @__PURE__ */ new Set())).add(h), y.push(h), h = h.next;
1624
1624
  if (h === null)
1625
1625
  continue;
1626
- E = h;
1626
+ C = h;
1627
1627
  }
1628
- _.push(E), m = E, h = E.next;
1628
+ _.push(C), m = C, h = C.next;
1629
1629
  }
1630
1630
  if (h !== null || b !== void 0) {
1631
1631
  for (var B = b === void 0 ? [] : ms(b); h !== null; )
@@ -1645,8 +1645,8 @@ function zl(t, e, n, r, s, a, i, o) {
1645
1645
  l && In(() => {
1646
1646
  var ie;
1647
1647
  if (z !== void 0)
1648
- for (E of z)
1649
- (ie = E.a) == null || ie.apply();
1648
+ for (C of z)
1649
+ (ie = C.a) == null || ie.apply();
1650
1650
  }), ve.first = e.first && e.first.e, ve.last = m && m.e;
1651
1651
  }
1652
1652
  function $l(t, e, n, r) {
@@ -1820,22 +1820,22 @@ function ea(t, e, n, r, s = !1, a = !1, i = !1) {
1820
1820
  if (h !== "$$") {
1821
1821
  if (h === "on") {
1822
1822
  const $ = {}, O = "$$" + _;
1823
- let E = _.slice(2);
1824
- var b = So(E);
1825
- if (zo(E) && (E = E.slice(0, -7), $.capture = !0), !b && f) {
1823
+ let C = _.slice(2);
1824
+ var b = So(C);
1825
+ if (zo(C) && (C = C.slice(0, -7), $.capture = !0), !b && f) {
1826
1826
  if (y != null) continue;
1827
- t.removeEventListener(E, o[O], $), o[O] = null;
1827
+ t.removeEventListener(C, o[O], $), o[O] = null;
1828
1828
  }
1829
1829
  if (y != null)
1830
1830
  if (b)
1831
- t[`__${E}`] = y, Xt([E]);
1831
+ t[`__${C}`] = y, Xt([C]);
1832
1832
  else {
1833
1833
  let I = function(R) {
1834
1834
  o[_].call(this, R);
1835
1835
  };
1836
- o[O] = fi(E, t, I, $);
1836
+ o[O] = fi(C, t, I, $);
1837
1837
  }
1838
- else b && (t[`__${E}`] = void 0);
1838
+ else b && (t[`__${C}`] = void 0);
1839
1839
  } else if (_ === "style" && y != null)
1840
1840
  t.style.cssText = y + "";
1841
1841
  else if (_ === "autofocus")
@@ -2060,8 +2060,8 @@ function is(t, e, n, r, s) {
2060
2060
  if (y > 0) {
2061
2061
  var O = !1;
2062
2062
  if (c)
2063
- for (var E = Math.ceil(y / 16.666666666666668), I = 0; I <= E; I += 1) {
2064
- var R = z + _ * d(I / E), M = na(c(R, 1 - R));
2063
+ for (var C = Math.ceil(y / 16.666666666666668), I = 0; I <= C; I += 1) {
2064
+ var R = z + _ * d(I / C), M = na(c(R, 1 - R));
2065
2065
  $.push(M), O || (O = M.overflow === "hidden");
2066
2066
  }
2067
2067
  O && (t.style.overflow = "hidden"), b = () => {
@@ -2383,16 +2383,16 @@ function g(t, e, n, r) {
2383
2383
  return arguments.length > 0 ? ((!a || !Z || y || l) && d(Z ? z() : M), M) : z();
2384
2384
  };
2385
2385
  }
2386
- var $ = !1, O = !1, E = /* @__PURE__ */ $r(c), I = aa(
2386
+ var $ = !1, O = !1, C = /* @__PURE__ */ $r(c), I = aa(
2387
2387
  () => /* @__PURE__ */ ut(() => {
2388
- var M = z(), Z = p(E);
2389
- return $ ? ($ = !1, O = !0, Z) : (O = !1, E.v = M);
2388
+ var M = z(), Z = p(C);
2389
+ return $ ? ($ = !1, O = !0, Z) : (O = !1, C.v = M);
2390
2390
  })
2391
2391
  );
2392
2392
  return s || (I.equals = ws), function(M, Z) {
2393
2393
  if (arguments.length > 0) {
2394
- const X = Z ? p(I) : a && i ? C(M) : M;
2395
- return I.equals(X) || ($ = !0, w(E, X), b && f !== void 0 && (f = X), Ct(() => p(I))), M;
2394
+ const X = Z ? p(I) : a && i ? E(M) : M;
2395
+ return I.equals(X) || ($ = !0, w(C, X), b && f !== void 0 && (f = X), Ct(() => p(I))), M;
2396
2396
  }
2397
2397
  return p(I);
2398
2398
  };
@@ -3038,12 +3038,12 @@ function Ci(t, e) {
3038
3038
  var M;
3039
3039
  (M = c()) == null || M.apply(this, R);
3040
3040
  };
3041
- var E = q(O, 2);
3042
- E.__click = [Vu, r];
3043
- var I = q(E, 2);
3041
+ var C = q(O, 2);
3042
+ C.__click = [Vu, r];
3043
+ var I = q(C, 2);
3044
3044
  return I.__click = [Xu, r, n], k(z), k(d), k(u), F(
3045
3045
  (R, M, Z, X) => {
3046
- N(O, "title", R), N(E, "title", M), N(E, "aria-label", Z), N(I, "title", X), N(I, "aria-label", X);
3046
+ N(O, "title", R), N(C, "title", M), N(C, "aria-label", Z), N(I, "title", X), N(I, "aria-label", X);
3047
3047
  },
3048
3048
  [
3049
3049
  () => /* @__PURE__ */ $i(),
@@ -3663,50 +3663,50 @@ function Cd(t, e) {
3663
3663
  get size() {
3664
3664
  return n();
3665
3665
  },
3666
- set size(E) {
3667
- n(E), v();
3666
+ set size(C) {
3667
+ n(C), v();
3668
3668
  },
3669
3669
  get unit() {
3670
3670
  return r();
3671
3671
  },
3672
- set unit(E) {
3673
- r(E), v();
3672
+ set unit(C) {
3673
+ r(C), v();
3674
3674
  },
3675
3675
  get pause() {
3676
3676
  return s();
3677
3677
  },
3678
- set pause(E) {
3679
- s(E), v();
3678
+ set pause(C) {
3679
+ s(C), v();
3680
3680
  },
3681
3681
  get ballTopLeft() {
3682
3682
  return a();
3683
3683
  },
3684
- set ballTopLeft(E) {
3685
- a(E), v();
3684
+ set ballTopLeft(C) {
3685
+ a(C), v();
3686
3686
  },
3687
3687
  get ballTopRight() {
3688
3688
  return i();
3689
3689
  },
3690
- set ballTopRight(E) {
3691
- i(E), v();
3690
+ set ballTopRight(C) {
3691
+ i(C), v();
3692
3692
  },
3693
3693
  get ballBottomLeft() {
3694
3694
  return o();
3695
3695
  },
3696
- set ballBottomLeft(E) {
3697
- o(E), v();
3696
+ set ballBottomLeft(C) {
3697
+ o(C), v();
3698
3698
  },
3699
3699
  get ballBottomRight() {
3700
3700
  return l();
3701
3701
  },
3702
- set ballBottomRight(E) {
3703
- l(E), v();
3702
+ set ballBottomRight(C) {
3703
+ l(C), v();
3704
3704
  },
3705
3705
  get duration() {
3706
3706
  return c();
3707
3707
  },
3708
- set duration(E) {
3709
- c(E), v();
3708
+ set duration(C) {
3709
+ c(C), v();
3710
3710
  }
3711
3711
  });
3712
3712
  }
@@ -5778,7 +5778,7 @@ function Wt(t) {
5778
5778
  }
5779
5779
  const sh = (t, e, n, r, s) => {
5780
5780
  const a = t.target;
5781
- if (w(e, C(a.value)), n() !== "") {
5781
+ if (w(e, E(a.value)), n() !== "") {
5782
5782
  r(p(e));
5783
5783
  return;
5784
5784
  }
@@ -5792,9 +5792,9 @@ const kh = {
5792
5792
  };
5793
5793
  function Ei(t, e) {
5794
5794
  re(e, !0), ue(t, kh);
5795
- let n = g(e, "attachments", 15), r = g(e, "showDocumentSearchModal", 15), s = g(e, "forgeSelected", 15, ""), a = /* @__PURE__ */ ut(() => Wt(s())), i = V(C([])), o = V(C([])), l = V(!1), c = V("");
5795
+ let n = g(e, "attachments", 15), r = g(e, "showDocumentSearchModal", 15), s = g(e, "forgeSelected", 15, ""), a = /* @__PURE__ */ ut(() => Wt(s())), i = V(E([])), o = V(E([])), l = V(!1), c = V("");
5796
5796
  const u = () => {
5797
- r(!1), w(c, ""), w(i, C([])), w(o, C([]));
5797
+ r(!1), w(c, ""), w(i, E([])), w(o, E([]));
5798
5798
  }, d = (B) => {
5799
5799
  B instanceof Hn ? n(
5800
5800
  n()[B._id] = {
@@ -5815,27 +5815,27 @@ function Ei(t, e) {
5815
5815
  ), u();
5816
5816
  }, f = async (B) => {
5817
5817
  if (B.length < 3) {
5818
- w(o, C([]));
5818
+ w(o, E([]));
5819
5819
  return;
5820
5820
  }
5821
5821
  w(l, !0);
5822
5822
  try {
5823
- w(o, C(await Vt.getForge(B, s())));
5823
+ w(o, E(await Vt.getForge(B, s())));
5824
5824
  } catch (ae) {
5825
- console.error("Errore nella ricerca forge:", ae), w(o, C([]));
5825
+ console.error("Errore nella ricerca forge:", ae), w(o, E([]));
5826
5826
  } finally {
5827
5827
  w(l, !1);
5828
5828
  }
5829
5829
  }, h = async (B) => {
5830
5830
  if (B.length < 3) {
5831
- w(i, C([]));
5831
+ w(i, E([]));
5832
5832
  return;
5833
5833
  }
5834
5834
  w(l, !0);
5835
5835
  try {
5836
- w(i, C(await Vt.getDocuments(B)));
5836
+ w(i, E(await Vt.getDocuments(B)));
5837
5837
  } catch (ae) {
5838
- console.error("Errore nella ricerca documenti:", ae), w(i, C([]));
5838
+ console.error("Errore nella ricerca documenti:", ae), w(i, E([]));
5839
5839
  } finally {
5840
5840
  w(l, !1);
5841
5841
  }
@@ -5844,15 +5844,15 @@ function Ei(t, e) {
5844
5844
  k(_);
5845
5845
  var $ = q(_, 2);
5846
5846
  $.__click = u, k(z);
5847
- var O = q(z, 2), E = S(O), I = S(E), R = q(S(I), 2);
5847
+ var O = q(z, 2), C = S(O), I = S(C), R = q(S(I), 2);
5848
5848
  Tl(R), R.__input = [
5849
5849
  sh,
5850
5850
  c,
5851
5851
  s,
5852
5852
  f,
5853
5853
  h
5854
- ], k(I), k(E);
5855
- var M = q(E, 2), Z = S(M);
5854
+ ], k(I), k(C);
5855
+ var M = q(C, 2), Z = S(M);
5856
5856
  {
5857
5857
  var X = (B) => {
5858
5858
  var ae = ah(), we = S(ae);
@@ -6097,7 +6097,7 @@ le(
6097
6097
  );
6098
6098
  const zh = (t, e, n, r, s) => {
6099
6099
  const i = t.target.value;
6100
- w(e, C(i)), i === "auto" ? (n(""), r(!1)) : i === "suite" || i === "normative" ? (n(i), r(!1)) : i === "kb" && (n(""), r(!0)), s({});
6100
+ w(e, E(i)), i === "auto" ? (n(""), r(!1)) : i === "suite" || i === "normative" ? (n(i), r(!1)) : i === "kb" && (n(""), r(!0)), s({});
6101
6101
  }, $h = (t, e) => {
6102
6102
  w(e, !p(e));
6103
6103
  };
@@ -6117,7 +6117,7 @@ const Zh = {
6117
6117
  };
6118
6118
  function Ii(t, e) {
6119
6119
  re(e, !0), ue(t, Zh);
6120
- let n = g(e, "sendMessage", 7), r = g(e, "stopMessage", 7), s = g(e, "loading", 15), a = g(e, "languageSelected", 15), i = g(e, "forgeSelected", 15), o = g(e, "kbSelected", 15), l = g(e, "attachments", 15), c = V(""), u = V("auto"), d = /* @__PURE__ */ ut(() => Wt(i())), f, h = V(C([])), b = V(!1), m = V(!1), z;
6120
+ let n = g(e, "sendMessage", 7), r = g(e, "stopMessage", 7), s = g(e, "loading", 15), a = g(e, "languageSelected", 15), i = g(e, "forgeSelected", 15), o = g(e, "kbSelected", 15), l = g(e, "attachments", 15), c = V(""), u = V("auto"), d = /* @__PURE__ */ ut(() => Wt(i())), f, h = V(E([])), b = V(!1), m = V(!1), z;
6121
6121
  const _ = (L) => {
6122
6122
  L.preventDefault();
6123
6123
  const P = L.deltaY * 0.5;
@@ -6138,18 +6138,18 @@ function Ii(t, e) {
6138
6138
  w(m, !1);
6139
6139
  return;
6140
6140
  }
6141
- w(c, C(Q)), w(m, !1), O();
6141
+ w(c, E(Q)), w(m, !1), O();
6142
6142
  });
6143
6143
  }, w(b, !0), f.start(), console.log("Recording started");
6144
6144
  }, $ = () => {
6145
6145
  f && (f.stop(), console.log("Recording stopped"), f.stream && f.stream.getTracks().forEach((L) => {
6146
6146
  L.stop();
6147
- })), w(b, !1), w(h, C([]));
6147
+ })), w(b, !1), w(h, E([]));
6148
6148
  }, O = () => {
6149
6149
  if (s()) return;
6150
6150
  const L = Object.keys(l()).map((P) => l()[P].ext_id);
6151
6151
  n()(p(c), i(), o(), L), w(c, ""), l({});
6152
- }, E = () => {
6152
+ }, C = () => {
6153
6153
  console.log("Seleziona file"), I(), R();
6154
6154
  }, I = () => {
6155
6155
  w(Z, !1);
@@ -6173,7 +6173,7 @@ function Ii(t, e) {
6173
6173
  var Be = q(U, 2);
6174
6174
  {
6175
6175
  var He = (L) => {
6176
- var P = Th(), Q = S(P), K = /* @__PURE__ */ ut(() => Object.keys(l()).length < 2 ? E : () => {
6176
+ var P = Th(), Q = S(P), K = /* @__PURE__ */ ut(() => Object.keys(l()).length < 2 ? C : () => {
6177
6177
  });
6178
6178
  Q.__click = function(...ee) {
6179
6179
  var Ae;
@@ -6414,7 +6414,7 @@ function Ii(t, e) {
6414
6414
  return p(X);
6415
6415
  },
6416
6416
  set showDocumentSearchModal(P) {
6417
- w(X, C(P));
6417
+ w(X, E(P));
6418
6418
  },
6419
6419
  get forgeSelected() {
6420
6420
  return i();
@@ -7171,7 +7171,7 @@ function Cp(t, e, n, r) {
7171
7171
  return;
7172
7172
  }
7173
7173
  if (Z) {
7174
- u = M, f.length || (i.length ? E() : y());
7174
+ u = M, f.length || (i.length ? C() : y());
7175
7175
  return;
7176
7176
  }
7177
7177
  if (b(), $(), !t.random) {
@@ -7182,7 +7182,7 @@ function Cp(t, e, n, r) {
7182
7182
  X(M);
7183
7183
  });
7184
7184
  }
7185
- function E() {
7185
+ function C() {
7186
7186
  if (l !== "pending")
7187
7187
  return;
7188
7188
  b();
@@ -7204,9 +7204,9 @@ function Cp(t, e, n, r) {
7204
7204
  O(R, M, Z);
7205
7205
  }
7206
7206
  };
7207
- f.push(R), c++, d = setTimeout(E, t.rotate), n(I, e, R.callback);
7207
+ f.push(R), c++, d = setTimeout(C, t.rotate), n(I, e, R.callback);
7208
7208
  }
7209
- return setTimeout(E), _;
7209
+ return setTimeout(C), _;
7210
7210
  }
7211
7211
  function Ni(t) {
7212
7212
  const e = {
@@ -8090,18 +8090,18 @@ ${d}` : d;
8090
8090
  `, 1)[0], b = !f.trim(), m = 0;
8091
8091
  if (this.options.pedantic ? (m = 2, d = f.trimStart()) : b ? m = n[1].length + 1 : (m = n[2].search(this.rules.other.nonSpaceChar), m = m > 4 ? 1 : m, d = f.slice(m), m += n[1].length), b && this.rules.other.blankLine.test(h) && (u += h + `
8092
8092
  `, e = e.substring(h.length + 1), c = !0), !c) {
8093
- const y = this.rules.other.nextBulletRegex(m), $ = this.rules.other.hrRegex(m), O = this.rules.other.fencesBeginRegex(m), E = this.rules.other.headingBeginRegex(m), I = this.rules.other.htmlBeginRegex(m);
8093
+ const y = this.rules.other.nextBulletRegex(m), $ = this.rules.other.hrRegex(m), O = this.rules.other.fencesBeginRegex(m), C = this.rules.other.headingBeginRegex(m), I = this.rules.other.htmlBeginRegex(m);
8094
8094
  for (; e; ) {
8095
8095
  const R = e.split(`
8096
8096
  `, 1)[0];
8097
8097
  let M;
8098
- if (h = R, this.options.pedantic ? (h = h.replace(this.rules.other.listReplaceNesting, " "), M = h) : M = h.replace(this.rules.other.tabCharGlobal, " "), O.test(h) || E.test(h) || I.test(h) || y.test(h) || $.test(h))
8098
+ if (h = R, this.options.pedantic ? (h = h.replace(this.rules.other.listReplaceNesting, " "), M = h) : M = h.replace(this.rules.other.tabCharGlobal, " "), O.test(h) || C.test(h) || I.test(h) || y.test(h) || $.test(h))
8099
8099
  break;
8100
8100
  if (M.search(this.rules.other.nonSpaceChar) >= m || !h.trim())
8101
8101
  d += `
8102
8102
  ` + M.slice(m);
8103
8103
  else {
8104
- if (b || f.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || O.test(f) || E.test(f) || $.test(f))
8104
+ if (b || f.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || O.test(f) || C.test(f) || $.test(f))
8105
8105
  break;
8106
8106
  d += `
8107
8107
  ` + h;
@@ -9260,18 +9260,18 @@ const Lv = async (t, e, n) => {
9260
9260
  `);
9261
9261
  try {
9262
9262
  const a = new Blob([r], { type: "text/html" }), i = new Blob([s], { type: "text/plain" }), o = new ClipboardItem({ "text/html": a, "text/plain": i });
9263
- await navigator.clipboard.write([o]), w(n, C(/* @__PURE__ */ ua())), setTimeout(
9263
+ await navigator.clipboard.write([o]), w(n, E(/* @__PURE__ */ ua())), setTimeout(
9264
9264
  () => {
9265
- w(n, C(/* @__PURE__ */ mr()));
9265
+ w(n, E(/* @__PURE__ */ mr()));
9266
9266
  },
9267
9267
  2e3
9268
9268
  );
9269
9269
  } catch (a) {
9270
9270
  console.error("Errore durante la copia:", a);
9271
9271
  try {
9272
- await navigator.clipboard.writeText(s), w(n, C(/* @__PURE__ */ ua())), setTimeout(
9272
+ await navigator.clipboard.writeText(s), w(n, E(/* @__PURE__ */ ua())), setTimeout(
9273
9273
  () => {
9274
- w(n, C(/* @__PURE__ */ mr()));
9274
+ w(n, E(/* @__PURE__ */ mr()));
9275
9275
  },
9276
9276
  2e3
9277
9277
  );
@@ -9289,7 +9289,7 @@ const Gv = {
9289
9289
  };
9290
9290
  function fs(t, e) {
9291
9291
  re(e, !0), ue(t, Gv);
9292
- let n = g(e, "isDropdownOpen", 15), r = g(e, "attachmentList", 15), s = g(e, "userLevel", 15), a = V(C({})), i = V(C(/* @__PURE__ */ mr()));
9292
+ let n = g(e, "isDropdownOpen", 15), r = g(e, "attachmentList", 15), s = g(e, "userLevel", 15), a = V(E({})), i = V(E(/* @__PURE__ */ mr()));
9293
9293
  const o = async (h, b, m) => {
9294
9294
  await Vt.getDocumentPage(h, b, m);
9295
9295
  }, l = async (h, b, m) => {
@@ -9488,16 +9488,16 @@ function fs(t, e) {
9488
9488
  ]
9489
9489
  ), x(M, Te);
9490
9490
  }), k($);
9491
- var O = q($, 2), E = S(O);
9492
- E.__click = [
9491
+ var O = q($, 2), C = S(O);
9492
+ C.__click = [
9493
9493
  Lv,
9494
9494
  r,
9495
9495
  i
9496
9496
  ];
9497
- var I = q(S(E), 2), R = S(I, !0);
9498
- k(I), k(E), k(O), k(y), F(
9497
+ var I = q(S(C), 2), R = S(I, !0);
9498
+ k(I), k(C), k(O), k(y), F(
9499
9499
  (M) => {
9500
- N(E, "aria-label", M), N(E, "title", M), Ne(R, p(i));
9500
+ N(C, "aria-label", M), N(C, "title", M), Ne(R, p(i));
9501
9501
  },
9502
9502
  [() => /* @__PURE__ */ mr()]
9503
9503
  ), yt(3, y, () => Vl, () => ({ duration: 300 })), x(_, y);
@@ -9560,20 +9560,20 @@ const lg = {
9560
9560
  };
9561
9561
  function Ki(t, e) {
9562
9562
  re(e, !0), ue(t, lg);
9563
- 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, "languageSelected", 15), l = g(e, "userLevel", 15), c = g(e, "loadingChat", 15), u = V(void 0), d = V(C(new Audio())), f = V(!1), h = V(C({})), b = V(C({})), m = V(C(n())), z = V(null), _ = V(!0), y = V(!1), $ = V(!1), O = V(C(c())), E = V(!1);
9563
+ 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, "languageSelected", 15), l = g(e, "userLevel", 15), c = g(e, "loadingChat", 15), u = V(void 0), d = V(E(new Audio())), f = V(!1), h = V(E({})), b = V(E({})), m = V(E(n())), z = V(null), _ = V(!0), y = V(!1), $ = V(!1), O = V(E(c())), C = V(!1);
9564
9564
  const I = async () => {
9565
9565
  await Br(), p(u) && (p(u).scrollTop = p(u).scrollHeight);
9566
9566
  }, R = async () => {
9567
9567
  await Br(), w(_, !1);
9568
9568
  }, M = async () => {
9569
- p(E) || (w(E, !0), await Br(), w(y, !1));
9569
+ p(C) || (w(C, !0), await Br(), w(y, !1));
9570
9570
  }, Z = () => {
9571
9571
  p($) && w(y, !0);
9572
9572
  }, X = () => {
9573
- p($) && (w(m, C(p(z) ?? n())), w(z, null), w(_, !0), w($, !1), w(E, !1));
9573
+ p($) && (w(m, E(p(z) ?? n())), w(z, null), w(_, !0), w($, !1), w(C, !1));
9574
9574
  }, Oe = (U) => {
9575
9575
  Is.getAudio(U.content, o()).then((ie) => {
9576
- w(d, C(new Audio(ie))), p(d).play(), w(f, !0), p(d).onended = () => {
9576
+ w(d, E(new Audio(ie))), p(d).play(), w(f, !0), p(d).onended = () => {
9577
9577
  w(f, !1);
9578
9578
  };
9579
9579
  });
@@ -9604,11 +9604,11 @@ function Ki(t, e) {
9604
9604
  }
9605
9605
  };
9606
9606
  wt(() => {
9607
- c() && !p(O) ? (w($, !0), w(z, null), w(y, !1), w(_, !0), R()) : !c() && p(O) && (w(z, C(n())), p(y) && M()), w(O, C(c()));
9607
+ c() && !p(O) ? (w($, !0), w(z, null), w(y, !1), w(_, !0), R()) : !c() && p(O) && (w(z, E(n())), p(y) && M()), w(O, E(c()));
9608
9608
  }), wt(() => {
9609
9609
  p($) && p(y) && !c() && M();
9610
9610
  }), wt(() => {
9611
- p($) ? w(z, C(n())) : c() || w(m, C(n()));
9611
+ p($) ? w(z, E(n())) : c() || w(m, E(n()));
9612
9612
  }), wt(() => {
9613
9613
  a(), p(m), I();
9614
9614
  });
@@ -10046,7 +10046,7 @@ function to(t, e) {
10046
10046
  k(_);
10047
10047
  var $ = q(_, 2), O = S($);
10048
10048
  {
10049
- var E = (R) => {
10049
+ var C = (R) => {
10050
10050
  var M = vg();
10051
10051
  x(R, M);
10052
10052
  }, I = (R) => {
@@ -10063,7 +10063,7 @@ function to(t, e) {
10063
10063
  }), x(R, M);
10064
10064
  };
10065
10065
  H(O, (R) => {
10066
- l() ? R(E) : R(I, !1);
10066
+ l() ? R(C) : R(I, !1);
10067
10067
  });
10068
10068
  }
10069
10069
  k($), k(z), F((R) => Ne(y, R), [() => /* @__PURE__ */ Si()]), yt(3, z, () => Xl, () => ({ duration: 600 })), x(m, z);
@@ -10140,63 +10140,58 @@ le(
10140
10140
  [],
10141
10141
  !0
10142
10142
  );
10143
- const yg = (t) => t.toLowerCase().includes("it") ? "it" : t.toLowerCase().includes("en") ? "en" : "it";
10144
- function kg(t) {
10145
- const e = /\[([^\]]+)\]\((https?:\/\/[^\)]+)\)/g;
10146
- return t.replace(e, (n, r, s) => `<a style="color: inherit" href="${s}">${r}</a>`);
10147
- }
10148
- const zg = (t, e, n, r, s, a) => {
10149
- p(e) || (w(e, !1), w(n, ""), r()), s(), w(a, C({}));
10143
+ const yg = (t) => t.toLowerCase().includes("it") ? "it" : t.toLowerCase().includes("en") ? "en" : "it", kg = (t, e, n, r, s, a) => {
10144
+ p(e) || (w(e, !1), w(n, ""), r()), s(), w(a, E({}));
10150
10145
  };
10151
- var $g = /* @__PURE__ */ T('<div class="loading-placeholder svelte-1hgblks"><!></div>'), Sg = /* @__PURE__ */ T('<!> <div class="resize-border-left svelte-1hgblks"></div> <div class="resize-border-top svelte-1hgblks"></div> <div class="resize-handle svelte-1hgblks"><!></div> <!> <!> <!>', 1), Tg = /* @__PURE__ */ T('<div class="chat svelte-1hgblks"><!></div>'), Cg = (t, e) => w(e, !p(e)), Eg = (t, e) => e("normative"), Ig = (t, e) => e("suite"), Ag = /* @__PURE__ */ T('<div class="bottom-right-buttons svelte-1hgblks"><button class="pin-forge-buttons svelte-1hgblks"><i class="fa-solid fa-thumbtack"></i></button> <div class="btn-with-tooltip svelte-1hgblks"><span class="custom-tooltip svelte-1hgblks"> </span> <button class="hidden-btn hidden-btn-1 svelte-1hgblks" aria-label="normative"><i class="fa-solid fa-book-open"></i></button></div> <div class="btn-with-tooltip svelte-1hgblks"><span class="custom-tooltip svelte-1hgblks"> </span> <button class="hidden-btn hidden-btn-2 svelte-1hgblks" aria-label="suite info"><i class="fa-solid fa-circle-info"></i></button></div></div>'), Lg = /* @__PURE__ */ T('<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>');
10152
- const jg = {
10146
+ var zg = /* @__PURE__ */ T('<div class="loading-placeholder svelte-1hgblks"><!></div>'), $g = /* @__PURE__ */ T('<!> <div class="resize-border-left svelte-1hgblks"></div> <div class="resize-border-top svelte-1hgblks"></div> <div class="resize-handle svelte-1hgblks"><!></div> <!> <!> <!>', 1), Sg = /* @__PURE__ */ T('<div class="chat svelte-1hgblks"><!></div>'), Tg = (t, e) => w(e, !p(e)), Cg = (t, e) => e("normative"), Eg = (t, e) => e("suite"), Ig = /* @__PURE__ */ T('<div class="bottom-right-buttons svelte-1hgblks"><button class="pin-forge-buttons svelte-1hgblks"><i class="fa-solid fa-thumbtack"></i></button> <div class="btn-with-tooltip svelte-1hgblks"><span class="custom-tooltip svelte-1hgblks"> </span> <button class="hidden-btn hidden-btn-1 svelte-1hgblks" aria-label="normative"><i class="fa-solid fa-book-open"></i></button></div> <div class="btn-with-tooltip svelte-1hgblks"><span class="custom-tooltip svelte-1hgblks"> </span> <button class="hidden-btn hidden-btn-2 svelte-1hgblks" aria-label="suite info"><i class="fa-solid fa-circle-info"></i></button></div></div>'), Ag = /* @__PURE__ */ T('<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>');
10147
+ const Lg = {
10153
10148
  hash: "svelte-1hgblks",
10154
10149
  code: ".loading-placeholder.svelte-1hgblks {display:flex;justify-content:center;align-items:center;height:100%;}.chat.svelte-1hgblks {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-1hgblks {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-1hgblks {position:absolute;top:0;left:-2px;width:4px;height:100%;cursor:ew-resize;z-index:1001;background:transparent;}.resize-border-top.svelte-1hgblks {position:absolute;top:-2px;left:0;width:100%;height:4px;cursor:ns-resize;z-index:1001;background:transparent;}.no-select.svelte-1hgblks {user-select:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;}.bottom-right-buttons.svelte-1hgblks {position:fixed;bottom:20px;right:0;display:flex;flex-direction:column;gap:15px;z-index:999;transform:translateX(50px);padding:5px;transition:350ms;}.bottom-right-buttons.visible.svelte-1hgblks {transform:translateX(0);}.bottom-right-buttons.svelte-1hgblks:hover {transform:translateX(0);}.pin-forge-buttons.svelte-1hgblks {width:30px;height:30px;border-radius:50%;border:none;background:rgba(0, 0, 0, 0.6);color:white;box-shadow:0 2px 8px rgba(0, 0, 0, 0.2);cursor:pointer;display:flex;align-items:center;justify-content:center;align-self:center;transition:200ms;font-size:14px;}.pin-forge-buttons.svelte-1hgblks:hover {background:rgba(0, 0, 0, 0.85);transform:scale(1.1);}.pin-forge-buttons.pinned.svelte-1hgblks {background:#295dcf;transform:rotate(45deg);}.pin-forge-buttons.pinned.svelte-1hgblks:hover {background:#1e4ba8;transform:rotate(45deg) scale(1.1);}.btn-with-tooltip.svelte-1hgblks {position:relative;display:flex;align-items:center;transition:300ms;}.btn-with-tooltip.svelte-1hgblks:hover {transform:translateX(-6px);}.custom-tooltip.svelte-1hgblks {position:absolute;right:70px;background:rgba(0, 0, 0, 0.85);color:white;padding:8px 12px;border-radius:6px;white-space:nowrap;font-size:14px;opacity:0;pointer-events:none;transition:opacity 200ms;box-shadow:0 2px 8px rgba(0, 0, 0, 0.3);}.bottom-right-buttons.visible.svelte-1hgblks .custom-tooltip:where(.svelte-1hgblks) {opacity:1;}.btn-with-tooltip.svelte-1hgblks:hover .custom-tooltip:where(.svelte-1hgblks) {opacity:1;}.hidden-btn.svelte-1hgblks {width:60px;height:60px;border-radius:50%;border:none;box-shadow:0 2px 8px rgba(0, 0, 0, 0.2);cursor:pointer;display:flex;align-items:center;justify-content:center;transition:200ms;}.hidden-btn-1.svelte-1hgblks {background:#28853d;color:white;}.hidden-btn-1.svelte-1hgblks:hover {background:#206a31;}.hidden-btn-2.svelte-1hgblks {background:#0099ff;color:white;}.hidden-btn-2.svelte-1hgblks:hover {background:#007acc;}"
10155
10150
  };
10156
10151
  function no(t, e) {
10157
- re(e, !0), ue(t, jg);
10158
- let n = V(!1), r = V(!1), s = V("it"), a = V(""), i = V(0), o = V(null), l = V(C([])), c = V(C([])), u = V(!1), d = V(!0), f = V(C(new Audio())), h = V(!0), b = V(""), m = V(""), z = V(C([])), _ = V(null);
10152
+ re(e, !0), ue(t, Lg);
10153
+ let n = V(!1), r = V(!1), s = V("it"), a = V(""), i = V(0), o = V(null), l = V(E([])), c = V(E([])), u = V(!1), d = V(!0), f = V(E(new Audio())), h = V(!0), b = V(""), m = V(""), z = V(E([])), _ = V(null);
10159
10154
  const y = (D, Y) => {
10160
- w(m, p(m) + D), w(m, C(kg(p(m)))), w(z, C(Y));
10155
+ w(m, p(m) + D), w(z, E(Y));
10161
10156
  };
10162
- let $ = V(""), O = V(!1), E = V(C({})), I = V(!0), R = V(!1);
10157
+ let $ = V(""), O = V(!1), C = V(E({})), I = V(!0), R = V(!1);
10163
10158
  wt(() => {
10164
10159
  p(R) && W.setForgeButtonsPinned(p(I));
10165
10160
  });
10166
10161
  const M = async (D, Y, ge, _e = []) => {
10167
- if (w(b, ""), w(u, !0), w(c, C([
10162
+ if (w(b, ""), w(u, !0), w(c, E([
10168
10163
  ...p(c),
10169
10164
  new Gt((/* @__PURE__ */ new Date()).getTime(), !0, D, D)
10170
- ])), console.log("Current messages:", p(c)), p(c).length == 2 && (w(o, C(await mn.newChat())), w(l, C([...p(l), p(o)])), p(o).messages = p(c), await Te()), p(o)) {
10171
- w(_, C(new AbortController()));
10165
+ ])), console.log("Current messages:", p(c)), p(c).length == 2 && (w(o, E(await mn.newChat())), w(l, E([...p(l), p(o)])), p(o).messages = p(c), await Te()), p(o)) {
10166
+ w(_, E(new AbortController()));
10172
10167
  try {
10173
10168
  let de = await mn.sendMessage(p(o)._id, D, Y, ge, _e, y, p(s), p(_).signal);
10174
10169
  if (console.log(de), de) {
10175
- w(c, C([
10170
+ w(c, E([
10176
10171
  ...p(c),
10177
10172
  new Gt((/* @__PURE__ */ new Date()).getTime(), !1, "", p(m))
10178
10173
  ])), w(m, "");
10179
10174
  return;
10180
10175
  }
10181
- if (w(o, C(await mn.getChat(p(o)._id))), await Te(), w(m, ""), w(z, C([])), w(c, C([
10176
+ if (w(o, E(await mn.getChat(p(o)._id))), await Te(), w(m, ""), w(z, E([])), w(c, E([
10182
10177
  ...p(c),
10183
10178
  p(o).messages[p(o).messages.length - 1]
10184
10179
  ])), !p(h)) {
10185
10180
  const $e = p(o).messages[p(o).messages.length - 1];
10186
10181
  try {
10187
10182
  const ne = await Is.getAudio($e.content, p(s));
10188
- w(f, C(new Audio(ne))), await p(f).play();
10183
+ w(f, E(new Audio(ne))), await p(f).play();
10189
10184
  } catch (ne) {
10190
10185
  console.error("Error playing audio:", ne);
10191
10186
  }
10192
10187
  }
10193
10188
  } catch (de) {
10194
- de instanceof Error && de.name !== "AbortError" && (console.error("Error sending message:", de), w(b, C(/* @__PURE__ */ qu())));
10189
+ de instanceof Error && de.name !== "AbortError" && (console.error("Error sending message:", de), w(b, E(/* @__PURE__ */ qu())));
10195
10190
  } finally {
10196
10191
  w(_, null), w(u, !1);
10197
10192
  }
10198
10193
  } else
10199
- w(b, C(/* @__PURE__ */ Bu())), w(u, !1);
10194
+ w(b, E(/* @__PURE__ */ Bu())), w(u, !1);
10200
10195
  }, Z = () => {
10201
10196
  p(_) && p(_).abort();
10202
10197
  };
@@ -10232,7 +10227,7 @@ function no(t, e) {
10232
10227
  }
10233
10228
  }
10234
10229
  const Te = async () => {
10235
- w(l, C(await mn.getChats())), w(l, C(p(l).sort((D, Y) => Y.lastUpdate - D.lastUpdate)));
10230
+ w(l, E(await mn.getChats())), w(l, E(p(l).sort((D, Y) => Y.lastUpdate - D.lastUpdate)));
10236
10231
  };
10237
10232
  let Ee = V(!1), U = V(!1);
10238
10233
  const ie = async () => {
@@ -10243,34 +10238,34 @@ function no(t, e) {
10243
10238
  450
10244
10239
  )) : w(n, !1) : (w(n, !0), w(U, !0), await Te(), w(U, !1));
10245
10240
  }, Be = () => {
10246
- w(o, C(new sn("", "", "", /* @__PURE__ */ $i(), [
10241
+ w(o, E(new sn("", "", "", /* @__PURE__ */ $i(), [
10247
10242
  Gt.firstMessage(p(s), p(a), p($))
10248
- ]))), w(c, C(p(o).messages)), w(b, "");
10243
+ ]))), w(c, E(p(o).messages)), w(b, "");
10249
10244
  }, He = (D) => {
10250
- p($) !== D && (w(O, !1), w($, C(D)), Be()), ie(), w(E, C({}));
10245
+ p($) !== D && (w(O, !1), w($, E(D)), Be()), ie(), w(C, E({}));
10251
10246
  };
10252
10247
  Lr(async () => {
10253
10248
  try {
10254
- w(s, C(te()));
10249
+ w(s, E(te()));
10255
10250
  const D = await Vt.getUsername();
10256
- w(a, C(D));
10251
+ w(a, E(D));
10257
10252
  const Y = await Vt.getUserLevel();
10258
- w(i, C(Y));
10253
+ w(i, E(Y));
10259
10254
  const ge = Gt.firstMessage(p(s), p(a), p($));
10260
- w(c, C([ge])), w(o, C(new sn("", "", "", "New Chat", [ge]))), w(I, C(W.getForgeButtonsPinned())), w(R, !0), w(d, !1);
10255
+ w(c, E([ge])), w(o, E(new sn("", "", "", "New Chat", [ge]))), w(I, E(W.getForgeButtonsPinned())), w(R, !0), w(d, !1);
10261
10256
  } catch (D) {
10262
- console.error("Failed to load username", D), w(b, C(/* @__PURE__ */ Uu())), w(d, !1);
10257
+ console.error("Failed to load username", D), w(b, E(/* @__PURE__ */ Uu())), w(d, !1);
10263
10258
  }
10264
10259
  });
10265
- var Me = Lg(), Ue = S(Me);
10260
+ var Me = Ag(), Ue = S(Me);
10266
10261
  {
10267
10262
  var Ye = (D) => {
10268
- var Y = Tg();
10263
+ var Y = Sg();
10269
10264
  Y.__mousedown = Pe;
10270
10265
  var ge = S(Y);
10271
10266
  {
10272
10267
  var _e = ($e) => {
10273
- var ne = $g(), Le = S(ne);
10268
+ var ne = zg(), Le = S(ne);
10274
10269
  xn(Le, {
10275
10270
  icon: "svg-spinners:270-ring-with-bg",
10276
10271
  width: "50px",
@@ -10281,50 +10276,50 @@ function no(t, e) {
10281
10276
  var ne = Se(), Le = ye(ne);
10282
10277
  {
10283
10278
  var L = (P) => {
10284
- var Q = Sg(), K = ye(Q);
10279
+ var Q = $g(), K = ye(Q);
10285
10280
  to(K, {
10286
10281
  newChat: Be,
10287
10282
  get showHistory() {
10288
10283
  return p(r);
10289
10284
  },
10290
10285
  set showHistory(A) {
10291
- w(r, C(A));
10286
+ w(r, E(A));
10292
10287
  },
10293
10288
  get actChat() {
10294
10289
  return p(o);
10295
10290
  },
10296
10291
  set actChat(A) {
10297
- w(o, C(A));
10292
+ w(o, E(A));
10298
10293
  },
10299
10294
  get chats() {
10300
10295
  return p(l);
10301
10296
  },
10302
10297
  set chats(A) {
10303
- w(l, C(A));
10298
+ w(l, E(A));
10304
10299
  },
10305
10300
  get messages() {
10306
10301
  return p(c);
10307
10302
  },
10308
10303
  set messages(A) {
10309
- w(c, C(A));
10304
+ w(c, E(A));
10310
10305
  },
10311
10306
  get error() {
10312
10307
  return p(b);
10313
10308
  },
10314
10309
  set error(A) {
10315
- w(b, C(A));
10310
+ w(b, E(A));
10316
10311
  },
10317
10312
  get loadingChat() {
10318
10313
  return p(Ee);
10319
10314
  },
10320
10315
  set loadingChat(A) {
10321
- w(Ee, C(A));
10316
+ w(Ee, E(A));
10322
10317
  },
10323
10318
  get loadingChats() {
10324
10319
  return p(U);
10325
10320
  },
10326
10321
  set loadingChats(A) {
10327
- w(U, C(A));
10322
+ w(U, E(A));
10328
10323
  }
10329
10324
  });
10330
10325
  var je = q(K, 6), fe = S(je);
@@ -10344,43 +10339,43 @@ function no(t, e) {
10344
10339
  return p(n);
10345
10340
  },
10346
10341
  set show(A) {
10347
- w(n, C(A));
10342
+ w(n, E(A));
10348
10343
  },
10349
10344
  get showHistory() {
10350
10345
  return p(r);
10351
10346
  },
10352
10347
  set showHistory(A) {
10353
- w(r, C(A));
10348
+ w(r, E(A));
10354
10349
  },
10355
10350
  get actChat() {
10356
10351
  return p(o);
10357
10352
  },
10358
10353
  set actChat(A) {
10359
- w(o, C(A));
10354
+ w(o, E(A));
10360
10355
  },
10361
10356
  get muted() {
10362
10357
  return p(h);
10363
10358
  },
10364
10359
  set muted(A) {
10365
- w(h, C(A));
10360
+ w(h, E(A));
10366
10361
  },
10367
10362
  get languageSelected() {
10368
10363
  return p(s);
10369
10364
  },
10370
10365
  set languageSelected(A) {
10371
- w(s, C(A));
10366
+ w(s, E(A));
10372
10367
  },
10373
10368
  get username() {
10374
10369
  return p(a);
10375
10370
  },
10376
10371
  set username(A) {
10377
- w(a, C(A));
10372
+ w(a, E(A));
10378
10373
  },
10379
10374
  get error() {
10380
10375
  return p(b);
10381
10376
  },
10382
10377
  set error(A) {
10383
- w(b, C(A));
10378
+ w(b, E(A));
10384
10379
  }
10385
10380
  });
10386
10381
  var Ae = q(ee, 2);
@@ -10389,49 +10384,49 @@ function no(t, e) {
10389
10384
  return p(c);
10390
10385
  },
10391
10386
  set messages(A) {
10392
- w(c, C(A));
10387
+ w(c, E(A));
10393
10388
  },
10394
10389
  get loading() {
10395
10390
  return p(u);
10396
10391
  },
10397
10392
  set loading(A) {
10398
- w(u, C(A));
10393
+ w(u, E(A));
10399
10394
  },
10400
10395
  get error() {
10401
10396
  return p(b);
10402
10397
  },
10403
10398
  set error(A) {
10404
- w(b, C(A));
10399
+ w(b, E(A));
10405
10400
  },
10406
10401
  get streamMessage() {
10407
10402
  return p(m);
10408
10403
  },
10409
10404
  set streamMessage(A) {
10410
- w(m, C(A));
10405
+ w(m, E(A));
10411
10406
  },
10412
10407
  get streamAttachments() {
10413
10408
  return p(z);
10414
10409
  },
10415
10410
  set streamAttachments(A) {
10416
- w(z, C(A));
10411
+ w(z, E(A));
10417
10412
  },
10418
10413
  get languageSelected() {
10419
10414
  return p(s);
10420
10415
  },
10421
10416
  set languageSelected(A) {
10422
- w(s, C(A));
10417
+ w(s, E(A));
10423
10418
  },
10424
10419
  get userLevel() {
10425
10420
  return p(i);
10426
10421
  },
10427
10422
  set userLevel(A) {
10428
- w(i, C(A));
10423
+ w(i, E(A));
10429
10424
  },
10430
10425
  get loadingChat() {
10431
10426
  return p(Ee);
10432
10427
  },
10433
10428
  set loadingChat(A) {
10434
- w(Ee, C(A));
10429
+ w(Ee, E(A));
10435
10430
  }
10436
10431
  });
10437
10432
  var Ge = q(Ae, 2);
@@ -10442,31 +10437,31 @@ function no(t, e) {
10442
10437
  return p(u);
10443
10438
  },
10444
10439
  set loading(A) {
10445
- w(u, C(A));
10440
+ w(u, E(A));
10446
10441
  },
10447
10442
  get languageSelected() {
10448
10443
  return p(s);
10449
10444
  },
10450
10445
  set languageSelected(A) {
10451
- w(s, C(A));
10446
+ w(s, E(A));
10452
10447
  },
10453
10448
  get forgeSelected() {
10454
10449
  return p($);
10455
10450
  },
10456
10451
  set forgeSelected(A) {
10457
- w($, C(A));
10452
+ w($, E(A));
10458
10453
  },
10459
10454
  get kbSelected() {
10460
10455
  return p(O);
10461
10456
  },
10462
10457
  set kbSelected(A) {
10463
- w(O, C(A));
10458
+ w(O, E(A));
10464
10459
  },
10465
10460
  get attachments() {
10466
- return p(E);
10461
+ return p(C);
10467
10462
  },
10468
10463
  set attachments(A) {
10469
- w(E, C(A));
10464
+ w(C, E(A));
10470
10465
  }
10471
10466
  }), x(P, Q);
10472
10467
  };
@@ -10492,28 +10487,28 @@ function no(t, e) {
10492
10487
  }
10493
10488
  var Fe = q(Ue, 2);
10494
10489
  Fe.__click = [
10495
- zg,
10490
+ kg,
10496
10491
  O,
10497
10492
  $,
10498
10493
  Be,
10499
10494
  ie,
10500
- E
10495
+ C
10501
10496
  ];
10502
10497
  var Ie = q(S(Fe)), J = S(Ie, !0);
10503
10498
  k(Ie), k(Fe);
10504
10499
  var G = q(Fe, 2);
10505
10500
  {
10506
10501
  var ce = (D) => {
10507
- var Y = Ag(), ge = S(Y);
10508
- ge.__click = [Cg, I];
10502
+ var Y = Ig(), ge = S(Y);
10503
+ ge.__click = [Tg, I];
10509
10504
  var _e = q(ge, 2), de = S(_e), $e = S(de, !0);
10510
10505
  k(de);
10511
10506
  var ne = q(de, 2);
10512
- ne.__click = [Eg, He], k(_e);
10507
+ ne.__click = [Cg, He], k(_e);
10513
10508
  var Le = q(_e, 2), L = S(Le), P = S(L, !0);
10514
10509
  k(L);
10515
10510
  var Q = q(L, 2);
10516
- Q.__click = [Ig, He], k(Le), k(Y), F(
10511
+ Q.__click = [Eg, He], k(Le), k(Y), F(
10517
10512
  (K, je) => {
10518
10513
  oe(Y, "visible", p(I)), N(ge, "aria-label", p(I) ? "unpin forge buttons" : "pin forge buttons"), oe(ge, "pinned", p(I)), Ne($e, K), Ne(P, je);
10519
10514
  },
@@ -10536,7 +10531,7 @@ function no(t, e) {
10536
10531
  }
10537
10532
  Xt(["mousedown", "click"]);
10538
10533
  le(no, {}, [], [], !0);
10539
- function Rg(t, e) {
10534
+ function jg(t, e) {
10540
10535
  re(e, !0);
10541
10536
  let n = g(e, "envId", 23, () => {
10542
10537
  }), r = g(e, "token", 23, () => {
@@ -10563,7 +10558,7 @@ function Rg(t, e) {
10563
10558
  });
10564
10559
  }
10565
10560
  customElements.define("akb-chat", le(
10566
- Rg,
10561
+ jg,
10567
10562
  {
10568
10563
  token: {
10569
10564
  attribute: "aks-token",
@@ -10586,5 +10581,5 @@ customElements.define("akb-chat", le(
10586
10581
  !1
10587
10582
  ));
10588
10583
  export {
10589
- Rg as ChatComponent
10584
+ jg as ChatComponent
10590
10585
  };
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.82",
4
+ "version": "1.0.83",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "CDN"