akpm-knowledge-base-chat 1.0.69 → 1.0.71

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 +491 -491
  2. package/package.json +1 -1
package/CDN/akb-chat.js CHANGED
@@ -1,11 +1,11 @@
1
- /* Version: 1.0.69 */
1
+ /* Version: 1.0.71 */
2
2
  var ro = Object.defineProperty;
3
- var Di = (t) => {
3
+ var qi = (t) => {
4
4
  throw TypeError(t);
5
5
  };
6
6
  var io = (t, e, n) => e in t ? ro(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
7
- var R = (t, e, n) => io(t, typeof e != "symbol" ? e + "" : e, n), Ni = (t, e, n) => e.has(t) || Di("Cannot " + n);
8
- var Qe = (t, e, n) => (Ni(t, e, "read from private field"), n ? n.call(t) : e.get(t)), Mr = (t, e, n) => e.has(t) ? Di("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), qr = (t, e, n, r) => (Ni(t, e, "write to private field"), r ? r.call(t, n) : e.set(t, n), n);
7
+ var R = (t, e, n) => io(t, typeof e != "symbol" ? e + "" : e, n), Ni = (t, e, n) => e.has(t) || qi("Cannot " + n);
8
+ var Qe = (t, e, n) => (Ni(t, e, "read from private field"), n ? n.call(t) : e.get(t)), Mr = (t, e, n) => e.has(t) ? qi("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), Dr = (t, e, n, r) => (Ni(t, e, "write to private field"), r ? r.call(t, n) : e.set(t, n), n);
9
9
  const so = "5";
10
10
  typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(so);
11
11
  const ci = 1, ui = 2, _s = 4, ao = 8, oo = 16, lo = 1, co = 2, xs = 4, uo = 8, fo = 16, ho = 4, po = 1, vo = 2, ys = "[", di = "[!", fi = "]", vn = {}, Ke = Symbol();
@@ -103,10 +103,10 @@ function Oo(t) {
103
103
  function Mo() {
104
104
  throw new Error("https://svelte.dev/e/state_descriptors_fixed");
105
105
  }
106
- function qo() {
106
+ function Do() {
107
107
  throw new Error("https://svelte.dev/e/state_prototype_fixed");
108
108
  }
109
- function Do() {
109
+ function qo() {
110
110
  throw new Error("https://svelte.dev/e/state_unsafe_local_read");
111
111
  }
112
112
  function No() {
@@ -144,7 +144,7 @@ function Ut(t, e = !1) {
144
144
  function Is(t) {
145
145
  return ke !== null && ke.f & st && (_t === null ? nl([t]) : _t.push(t)), t;
146
146
  }
147
- function Dr(t, e) {
147
+ function qr(t, e) {
148
148
  return x(
149
149
  t,
150
150
  $t(() => p(t))
@@ -192,7 +192,7 @@ function bn() {
192
192
  /* @__PURE__ */ Ft(de)
193
193
  );
194
194
  }
195
- function y(t) {
195
+ function z(t) {
196
196
  if (ae) {
197
197
  if (/* @__PURE__ */ Ft(de) !== null)
198
198
  throw $r(), vn;
@@ -330,7 +330,7 @@ function P(t, e = null, n) {
330
330
  return c;
331
331
  },
332
332
  setPrototypeOf() {
333
- qo();
333
+ Do();
334
334
  }
335
335
  }
336
336
  );
@@ -391,7 +391,7 @@ function ge(t, e) {
391
391
  }
392
392
  return de;
393
393
  }
394
- function D(t, e = 1, n = !1) {
394
+ function q(t, e = 1, n = !1) {
395
395
  let r = ae ? de : t;
396
396
  for (var i; e--; )
397
397
  i = r, r = /** @type {TemplateNode} */
@@ -608,7 +608,7 @@ function Sr(t, e = 0) {
608
608
  function wn(t, e = !0) {
609
609
  return on(Gn | St, t, !0, e);
610
610
  }
611
- function qs(t) {
611
+ function Ds(t) {
612
612
  var e = t.teardown;
613
613
  if (e !== null) {
614
614
  const n = wi, r = ke;
@@ -620,7 +620,7 @@ function qs(t) {
620
620
  }
621
621
  }
622
622
  }
623
- function Ds(t) {
623
+ function qs(t) {
624
624
  var e = t.deriveds;
625
625
  if (e !== null) {
626
626
  t.deriveds = null;
@@ -653,12 +653,12 @@ function yt(t, e = !0) {
653
653
  }
654
654
  n = !0;
655
655
  }
656
- Ns(t, e && !n), Ds(t), Bn(t, 0), ht(t, yn);
656
+ Ns(t, e && !n), qs(t), Bn(t, 0), ht(t, yn);
657
657
  var a = t.transitions;
658
658
  if (a !== null)
659
659
  for (const l of a)
660
660
  l.stop();
661
- qs(t);
661
+ Ds(t);
662
662
  var o = t.parent;
663
663
  o !== null && o.first !== null && Bs(t), t.next = t.prev = t.teardown = t.ctx = t.deps = t.fn = t.nodes_start = t.nodes_end = null;
664
664
  }
@@ -732,7 +732,7 @@ function ki(t) {
732
732
  throw new Error("https://svelte.dev/e/lifecycle_outside_component");
733
733
  }
734
734
  const Gs = 0, tl = 1;
735
- let nr = !1, rr = Gs, Dn = !1, Nn = null, gn = !1, wi = !1;
735
+ let nr = !1, rr = Gs, qn = !1, Nn = null, gn = !1, wi = !1;
736
736
  function Hi(t) {
737
737
  gn = t;
738
738
  }
@@ -900,7 +900,7 @@ function Cr(t) {
900
900
  var n = oe, r = me;
901
901
  oe = t;
902
902
  try {
903
- e & xr ? Xo(t) : Ns(t), Ds(t), qs(t);
903
+ e & xr ? Xo(t) : Ns(t), qs(t), Ds(t);
904
904
  var i = Xs(t);
905
905
  t.teardown = typeof i == "function" ? i : null, t.wv = Ws;
906
906
  var s = t.deps, a;
@@ -958,13 +958,13 @@ function ol(t) {
958
958
  }
959
959
  }
960
960
  function ll() {
961
- if (Dn = !1, mn > 1001)
961
+ if (qn = !1, mn > 1001)
962
962
  return;
963
963
  const t = Qt;
964
- Qt = [], Ks(t), Dn || (mn = 0, Nn = null);
964
+ Qt = [], Ks(t), qn || (mn = 0, Nn = null);
965
965
  }
966
966
  function Er(t) {
967
- rr === Gs && (Dn || (Dn = !0, queueMicrotask(ll))), Nn = t;
967
+ rr === Gs && (qn || (qn = !0, queueMicrotask(ll))), Nn = t;
968
968
  for (var e = t; e.parent !== null; ) {
969
969
  e = e.parent;
970
970
  var n = e.f;
@@ -1018,7 +1018,7 @@ function v(t) {
1018
1018
  try {
1019
1019
  Qs();
1020
1020
  const i = [];
1021
- rr = tl, Qt = i, Dn = !1, Ks(n);
1021
+ rr = tl, Qt = i, qn = !1, Ks(n);
1022
1022
  var r = t == null ? void 0 : t();
1023
1023
  return el(), (Qt.length > 0 || i.length > 0) && v(), mn = 0, Nn = null, r;
1024
1024
  } finally {
@@ -1042,7 +1042,7 @@ function p(t) {
1042
1042
  ), r;
1043
1043
  }
1044
1044
  if (ke !== null && !Zt) {
1045
- _t !== null && _t.includes(t) && Do();
1045
+ _t !== null && _t.includes(t) && qo();
1046
1046
  var i = ke.deps;
1047
1047
  t.rv < gr && (t.rv = gr, tt === null && i !== null && i[it] === t ? it++ : tt === null ? tt = [t] : tt.push(t));
1048
1048
  } else if (n && /** @type {Derived} */
@@ -1544,13 +1544,13 @@ function Ye(t, e, n, r, i, s = null) {
1544
1544
  de, b = !0, Lt(!1);
1545
1545
  break;
1546
1546
  }
1547
- var q = h[E], w = r(q, E);
1547
+ var D = h[E], w = r(D, E);
1548
1548
  _ = la(
1549
1549
  de,
1550
1550
  o,
1551
1551
  $,
1552
1552
  null,
1553
- q,
1553
+ D,
1554
1554
  w,
1555
1555
  E,
1556
1556
  i,
@@ -1560,7 +1560,7 @@ function Ye(t, e, n, r, i, s = null) {
1560
1560
  m > 0 && dt(Gr());
1561
1561
  }
1562
1562
  if (!ae) {
1563
- var z = (
1563
+ var y = (
1564
1564
  /** @type {Effect} */
1565
1565
  ke
1566
1566
  );
@@ -1570,7 +1570,7 @@ function Ye(t, e, n, r, i, s = null) {
1570
1570
  a,
1571
1571
  i,
1572
1572
  e,
1573
- (z.f & wt) !== 0,
1573
+ (y.f & wt) !== 0,
1574
1574
  r
1575
1575
  );
1576
1576
  }
@@ -1581,12 +1581,12 @@ function Ye(t, e, n, r, i, s = null) {
1581
1581
  }
1582
1582
  function bl(t, e, n, r, i, s, a, o) {
1583
1583
  var Fe, Ne, ue, we;
1584
- var l = (i & ao) !== 0, c = (i & (ci | ui)) !== 0, u = t.length, d = e.items, f = e.first, h = f, m, b = null, S, $ = [], _ = [], E, q, w, z;
1584
+ var l = (i & ao) !== 0, c = (i & (ci | ui)) !== 0, u = t.length, d = e.items, f = e.first, h = f, m, b = null, S, $ = [], _ = [], E, D, w, y;
1585
1585
  if (l)
1586
- for (z = 0; z < u; z += 1)
1587
- E = t[z], q = a(E, z), w = d.get(q), w !== void 0 && ((Fe = w.a) == null || Fe.measure(), (S ?? (S = /* @__PURE__ */ new Set())).add(w));
1588
- for (z = 0; z < u; z += 1) {
1589
- if (E = t[z], q = a(E, z), w = d.get(q), w === void 0) {
1586
+ for (y = 0; y < u; y += 1)
1587
+ E = t[y], D = a(E, y), w = d.get(D), w !== void 0 && ((Fe = w.a) == null || Fe.measure(), (S ?? (S = /* @__PURE__ */ new Set())).add(w));
1588
+ for (y = 0; y < u; y += 1) {
1589
+ if (E = t[y], D = a(E, y), w = d.get(D), w === void 0) {
1590
1590
  var I = h ? (
1591
1591
  /** @type {TemplateNode} */
1592
1592
  h.e.nodes_start
@@ -1597,29 +1597,29 @@ function bl(t, e, n, r, i, s, a, o) {
1597
1597
  b,
1598
1598
  b === null ? e.first : b.next,
1599
1599
  E,
1600
- q,
1601
- z,
1600
+ D,
1601
+ y,
1602
1602
  r,
1603
1603
  i
1604
- ), d.set(q, b), $ = [], _ = [], h = b.next;
1604
+ ), d.set(D, b), $ = [], _ = [], h = b.next;
1605
1605
  continue;
1606
1606
  }
1607
- if (c && kl(w, E, z, i), w.e.f & wt && (hr(w.e), l && ((Ne = w.a) == null || Ne.unfix(), (S ?? (S = /* @__PURE__ */ new Set())).delete(w))), w !== h) {
1607
+ if (c && kl(w, E, y, i), w.e.f & wt && (hr(w.e), l && ((Ne = w.a) == null || Ne.unfix(), (S ?? (S = /* @__PURE__ */ new Set())).delete(w))), w !== h) {
1608
1608
  if (m !== void 0 && m.has(w)) {
1609
1609
  if ($.length < _.length) {
1610
- var O = _[0], Y;
1610
+ var O = _[0], U;
1611
1611
  b = O.prev;
1612
1612
  var W = $[0], he = $[$.length - 1];
1613
- for (Y = 0; Y < $.length; Y += 1)
1614
- Wi($[Y], O, n);
1615
- for (Y = 0; Y < _.length; Y += 1)
1616
- m.delete(_[Y]);
1617
- Bt(e, W.prev, he.next), Bt(e, b, W), Bt(e, he, O), h = O, b = he, z -= 1, $ = [], _ = [];
1613
+ for (U = 0; U < $.length; U += 1)
1614
+ Wi($[U], O, n);
1615
+ for (U = 0; U < _.length; U += 1)
1616
+ m.delete(_[U]);
1617
+ Bt(e, W.prev, he.next), Bt(e, b, W), Bt(e, he, O), h = O, b = he, y -= 1, $ = [], _ = [];
1618
1618
  } else
1619
1619
  m.delete(w), Wi(w, h, n), Bt(e, w.prev, w.next), Bt(e, w, b === null ? e.first : b.next), Bt(e, b, w), b = w;
1620
1620
  continue;
1621
1621
  }
1622
- for ($ = [], _ = []; h !== null && h.k !== q; )
1622
+ for ($ = [], _ = []; h !== null && h.k !== D; )
1623
1623
  (s || !(h.e.f & wt)) && (m ?? (m = /* @__PURE__ */ new Set())).add(h), _.push(h), h = h.next;
1624
1624
  if (h === null)
1625
1625
  continue;
@@ -1634,10 +1634,10 @@ function bl(t, e, n, r, i, s, a, o) {
1634
1634
  if (le > 0) {
1635
1635
  var Pe = i & _s && u === 0 ? n : null;
1636
1636
  if (l) {
1637
- for (z = 0; z < le; z += 1)
1638
- (ue = N[z].a) == null || ue.measure();
1639
- for (z = 0; z < le; z += 1)
1640
- (we = N[z].a) == null || we.fix();
1637
+ for (y = 0; y < le; y += 1)
1638
+ (ue = N[y].a) == null || ue.measure();
1639
+ for (y = 0; y < le; y += 1)
1640
+ (we = N[y].a) == null || we.fix();
1641
1641
  }
1642
1642
  ml(e, N, Pe, d);
1643
1643
  }
@@ -1819,21 +1819,21 @@ function Ji(t, e, n, r, i = !1, s = !1, a = !1) {
1819
1819
  var h = $[0] + $[1];
1820
1820
  if (h !== "$$") {
1821
1821
  if (h === "on") {
1822
- const E = {}, q = "$$" + $;
1822
+ const E = {}, D = "$$" + $;
1823
1823
  let w = $.slice(2);
1824
1824
  var m = bo(w);
1825
1825
  if (go(w) && (w = w.slice(0, -7), E.capture = !0), !m && f) {
1826
1826
  if (_ != null) continue;
1827
- t.removeEventListener(w, o[q], E), o[q] = null;
1827
+ t.removeEventListener(w, o[D], E), o[D] = null;
1828
1828
  }
1829
1829
  if (_ != null)
1830
1830
  if (m)
1831
1831
  t[`__${w}`] = _, Wt([w]);
1832
1832
  else {
1833
- let z = function(I) {
1833
+ let y = function(I) {
1834
1834
  o[$].call(this, I);
1835
1835
  };
1836
- o[q] = sa(w, t, z, E);
1836
+ o[D] = sa(w, t, y, E);
1837
1837
  }
1838
1838
  else m && (t[`__${w}`] = void 0);
1839
1839
  } else if ($ === "style" && _ != null)
@@ -1863,11 +1863,11 @@ function Ji(t, e, n, r, i = !1, s = !1, a = !1) {
1863
1863
  t
1864
1864
  );
1865
1865
  if (b === "value") {
1866
- let q = E.defaultValue;
1867
- E.removeAttribute(b), E.defaultValue = q;
1866
+ let D = E.defaultValue;
1867
+ E.removeAttribute(b), E.defaultValue = D;
1868
1868
  } else {
1869
- let q = E.defaultChecked;
1870
- E.removeAttribute(b), E.defaultChecked = q;
1869
+ let D = E.defaultChecked;
1870
+ E.removeAttribute(b), E.defaultChecked = D;
1871
1871
  }
1872
1872
  } else
1873
1873
  t.removeAttribute($);
@@ -2049,23 +2049,23 @@ function ri(t, e, n, r, i) {
2049
2049
  e.duration * Math.abs($)
2050
2050
  ), E = [];
2051
2051
  if (_ > 0) {
2052
- var q = !1;
2052
+ var D = !1;
2053
2053
  if (c)
2054
- for (var w = Math.ceil(_ / 16.666666666666668), z = 0; z <= w; z += 1) {
2055
- var I = S + $ * d(z / w), O = Xi(c(I, 1 - I));
2056
- E.push(O), q || (q = O.overflow === "hidden");
2054
+ for (var w = Math.ceil(_ / 16.666666666666668), y = 0; y <= w; y += 1) {
2055
+ var I = S + $ * d(y / w), O = Xi(c(I, 1 - I));
2056
+ E.push(O), D || (D = O.overflow === "hidden");
2057
2057
  }
2058
- q && (t.style.overflow = "hidden"), m = () => {
2059
- var Y = (
2058
+ D && (t.style.overflow = "hidden"), m = () => {
2059
+ var U = (
2060
2060
  /** @type {number} */
2061
2061
  /** @type {globalThis.Animation} */
2062
2062
  b.currentTime
2063
2063
  );
2064
- return S + $ * d(Y / _);
2064
+ return S + $ * d(U / _);
2065
2065
  }, u && Sl(() => {
2066
2066
  if (b.playState !== "running") return !1;
2067
- var Y = m();
2068
- return u(Y, 1 - Y), !0;
2067
+ var U = m();
2068
+ return u(U, 1 - U), !0;
2069
2069
  });
2070
2070
  }
2071
2071
  b = t.animate(E, { duration: _, fill: "forwards" }), b.onfinish = () => {
@@ -2315,7 +2315,7 @@ const Ml = {
2315
2315
  return Reflect.ownKeys(t.props).filter((e) => !t.exclude.includes(e));
2316
2316
  }
2317
2317
  };
2318
- function ql(t, e) {
2318
+ function Dl(t, e) {
2319
2319
  return new Proxy({ props: t, exclude: e, special: {}, version: et(0) }, Ml);
2320
2320
  }
2321
2321
  function es(t) {
@@ -2370,25 +2370,25 @@ function g(t, e, n, r) {
2370
2370
  return S;
2371
2371
  if (d) {
2372
2372
  var _ = t.$$legacy;
2373
- return function(O, Y) {
2374
- return arguments.length > 0 ? ((!s || !Y || _ || l) && d(Y ? S() : O), O) : S();
2373
+ return function(O, U) {
2374
+ return arguments.length > 0 ? ((!s || !U || _ || l) && d(U ? S() : O), O) : S();
2375
2375
  };
2376
2376
  }
2377
- var E = !1, q = !1, w = /* @__PURE__ */ zr(c), z = es(
2377
+ var E = !1, D = !1, w = /* @__PURE__ */ zr(c), y = es(
2378
2378
  () => /* @__PURE__ */ gt(() => {
2379
- var O = S(), Y = p(w);
2380
- return E ? (E = !1, q = !0, Y) : (q = !1, w.v = O);
2379
+ var O = S(), U = p(w);
2380
+ return E ? (E = !1, D = !0, U) : (D = !1, w.v = O);
2381
2381
  })
2382
2382
  );
2383
- return i || (z.equals = vi), function(O, Y) {
2383
+ return i || (y.equals = vi), function(O, U) {
2384
2384
  if (arguments.length > 0) {
2385
- const W = Y ? p(z) : s && a ? P(O) : O;
2386
- return z.equals(W) || (E = !0, x(w, W), m && f !== void 0 && (f = W), $t(() => p(z))), O;
2385
+ const W = U ? p(y) : s && a ? P(O) : O;
2386
+ return y.equals(W) || (E = !0, x(w, W), m && f !== void 0 && (f = W), $t(() => p(y))), O;
2387
2387
  }
2388
- return p(z);
2388
+ return p(y);
2389
2389
  };
2390
2390
  }
2391
- function Dl(t) {
2391
+ function ql(t) {
2392
2392
  return new Nl(t);
2393
2393
  }
2394
2394
  var At, lt;
@@ -2422,14 +2422,14 @@ class Nl {
2422
2422
  }
2423
2423
  }
2424
2424
  );
2425
- qr(this, lt, (e.hydrate ? vl : aa)(e.component, {
2425
+ Dr(this, lt, (e.hydrate ? vl : aa)(e.component, {
2426
2426
  target: e.target,
2427
2427
  anchor: e.anchor,
2428
2428
  props: i,
2429
2429
  context: e.context,
2430
2430
  intro: e.intro ?? !1,
2431
2431
  recover: e.recover
2432
- })), (!((s = e == null ? void 0 : e.props) != null && s.$$host) || e.sync === !1) && v(), qr(this, At, i.$$events);
2432
+ })), (!((s = e == null ? void 0 : e.props) != null && s.$$host) || e.sync === !1) && v(), Dr(this, At, i.$$events);
2433
2433
  for (const a of Object.keys(Qe(this, lt)))
2434
2434
  a === "$set" || a === "$destroy" || a === "$on" || lr(this, a, {
2435
2435
  get() {
@@ -2545,7 +2545,7 @@ typeof HTMLElement == "function" && (pa = class extends HTMLElement {
2545
2545
  }
2546
2546
  for (const i in this.$$p_d)
2547
2547
  !(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
2548
- this.$$c = Dl({
2548
+ this.$$c = ql({
2549
2549
  component: this.$$ctor,
2550
2550
  target: this.shadowRoot || this,
2551
2551
  props: {
@@ -2856,7 +2856,7 @@ function ns(t) {
2856
2856
  function Jl(t) {
2857
2857
  return Gl.includes(t);
2858
2858
  }
2859
- const Vl = /* @__NO_SIDE_EFFECTS__ */ () => "Assistente AI", Xl = /* @__NO_SIDE_EFFECTS__ */ () => "Scrivi un messaggio...", Ql = /* @__NO_SIDE_EFFECTS__ */ () => "Aggiungi allegato", Kl = /* @__NO_SIDE_EFFECTS__ */ () => "Normative", ec = /* @__NO_SIDE_EFFECTS__ */ () => "Normativa", tc = /* @__NO_SIDE_EFFECTS__ */ () => "Scegli", nc = /* @__NO_SIDE_EFFECTS__ */ () => "Documento Comune", rc = /* @__NO_SIDE_EFFECTS__ */ () => "Interrompi registrazione", ic = /* @__NO_SIDE_EFFECTS__ */ () => "Inizia registrazione", sc = /* @__NO_SIDE_EFFECTS__ */ () => "Invia messaggio", ac = /* @__NO_SIDE_EFFECTS__ */ (t) => `Sei sicuro di voler eliminare la chat: ${t.chatTitle}?`, oc = /* @__NO_SIDE_EFFECTS__ */ () => "Nuova Chat", lc = /* @__NO_SIDE_EFFECTS__ */ () => "Cronologia", cc = /* @__NO_SIDE_EFFECTS__ */ () => "Attiva volume", uc = /* @__NO_SIDE_EFFECTS__ */ () => "Disattiva volume", dc = /* @__NO_SIDE_EFFECTS__ */ () => "Mostra cronologia", fc = /* @__NO_SIDE_EFFECTS__ */ () => "Chiudi", hc = /* @__NO_SIDE_EFFECTS__ */ () => "Fonti", pc = /* @__NO_SIDE_EFFECTS__ */ () => "Visualizza allegato", vc = /* @__NO_SIDE_EFFECTS__ */ () => "Cerca", gc = /* @__NO_SIDE_EFFECTS__ */ () => "Documenti", mc = /* @__NO_SIDE_EFFECTS__ */ () => "Ricerca in corso...", bc = /* @__NO_SIDE_EFFECTS__ */ () => "Inserisci almeno 3 caratteri per iniziare la ricerca", kc = /* @__NO_SIDE_EFFECTS__ */ () => "Nessuna normativa trovata", wc = /* @__NO_SIDE_EFFECTS__ */ () => "Nessun documento trovato", _c = /* @__NO_SIDE_EFFECTS__ */ () => "Riproduci", xc = /* @__NO_SIDE_EFFECTS__ */ () => "Pausa", yc = /* @__NO_SIDE_EFFECTS__ */ () => "Errore durante l'invio del messaggio. Riprova.", zc = /* @__NO_SIDE_EFFECTS__ */ () => "Nessuna chat attiva. Crea una nuova chat per iniziare.", $c = /* @__NO_SIDE_EFFECTS__ */ () => "Errore durante il caricamento del nome utente.", Sc = /* @__NO_SIDE_EFFECTS__ */ () => "Manuale Suite", Tc = /* @__NO_SIDE_EFFECTS__ */ () => "Ferma", Cc = /* @__NO_SIDE_EFFECTS__ */ () => "AI Assistant", Ec = /* @__NO_SIDE_EFFECTS__ */ () => "Type your message here...", Ic = /* @__NO_SIDE_EFFECTS__ */ () => "Add attachment", Ac = /* @__NO_SIDE_EFFECTS__ */ () => "Normatives", Rc = /* @__NO_SIDE_EFFECTS__ */ () => "Normative", Lc = /* @__NO_SIDE_EFFECTS__ */ () => "Choose", jc = /* @__NO_SIDE_EFFECTS__ */ () => "Common Document", Pc = /* @__NO_SIDE_EFFECTS__ */ () => "Stop recording", Fc = /* @__NO_SIDE_EFFECTS__ */ () => "Start recording", Oc = /* @__NO_SIDE_EFFECTS__ */ () => "Send message", Mc = /* @__NO_SIDE_EFFECTS__ */ (t) => `Are you sure you want to delete the chat: ${t.chatTitle}?`, qc = /* @__NO_SIDE_EFFECTS__ */ () => "New Chat", Dc = /* @__NO_SIDE_EFFECTS__ */ () => "History", Nc = /* @__NO_SIDE_EFFECTS__ */ () => "Unmute", Bc = /* @__NO_SIDE_EFFECTS__ */ () => "Mute", Uc = /* @__NO_SIDE_EFFECTS__ */ () => "Show history", Yc = /* @__NO_SIDE_EFFECTS__ */ () => "Close", Hc = /* @__NO_SIDE_EFFECTS__ */ () => "Sources", Zc = /* @__NO_SIDE_EFFECTS__ */ () => "View attachment", Gc = /* @__NO_SIDE_EFFECTS__ */ () => "Search", Wc = /* @__NO_SIDE_EFFECTS__ */ () => "Documents", Jc = /* @__NO_SIDE_EFFECTS__ */ () => "Search in progress...", Vc = /* @__NO_SIDE_EFFECTS__ */ () => "Please enter at least 3 characters to start the search", Xc = /* @__NO_SIDE_EFFECTS__ */ () => "No normative found", Qc = /* @__NO_SIDE_EFFECTS__ */ () => "No document found", Kc = /* @__NO_SIDE_EFFECTS__ */ () => "Play", eu = /* @__NO_SIDE_EFFECTS__ */ () => "Pause", tu = /* @__NO_SIDE_EFFECTS__ */ () => "Error sending message. Please try again.", nu = /* @__NO_SIDE_EFFECTS__ */ () => "No active chat. Please create a new chat to get started.", ru = /* @__NO_SIDE_EFFECTS__ */ () => "Error loading username.", iu = /* @__NO_SIDE_EFFECTS__ */ () => "Suite Manual", su = /* @__NO_SIDE_EFFECTS__ */ () => "Stop", au = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
2859
+ const Vl = /* @__NO_SIDE_EFFECTS__ */ () => "Assistente AI", Xl = /* @__NO_SIDE_EFFECTS__ */ () => "Scrivi un messaggio...", Ql = /* @__NO_SIDE_EFFECTS__ */ () => "Aggiungi allegato", Kl = /* @__NO_SIDE_EFFECTS__ */ () => "Normative", ec = /* @__NO_SIDE_EFFECTS__ */ () => "Normativa", tc = /* @__NO_SIDE_EFFECTS__ */ () => "Scegli", nc = /* @__NO_SIDE_EFFECTS__ */ () => "Documento Comune", rc = /* @__NO_SIDE_EFFECTS__ */ () => "Interrompi registrazione", ic = /* @__NO_SIDE_EFFECTS__ */ () => "Inizia registrazione", sc = /* @__NO_SIDE_EFFECTS__ */ () => "Invia messaggio", ac = /* @__NO_SIDE_EFFECTS__ */ (t) => `Sei sicuro di voler eliminare la chat: ${t.chatTitle}?`, oc = /* @__NO_SIDE_EFFECTS__ */ () => "Nuova Chat", lc = /* @__NO_SIDE_EFFECTS__ */ () => "Cronologia", cc = /* @__NO_SIDE_EFFECTS__ */ () => "Attiva volume", uc = /* @__NO_SIDE_EFFECTS__ */ () => "Disattiva volume", dc = /* @__NO_SIDE_EFFECTS__ */ () => "Mostra cronologia", fc = /* @__NO_SIDE_EFFECTS__ */ () => "Chiudi", hc = /* @__NO_SIDE_EFFECTS__ */ () => "Fonti", pc = /* @__NO_SIDE_EFFECTS__ */ () => "Visualizza allegato", vc = /* @__NO_SIDE_EFFECTS__ */ () => "Cerca", gc = /* @__NO_SIDE_EFFECTS__ */ () => "Documenti", mc = /* @__NO_SIDE_EFFECTS__ */ () => "Ricerca in corso...", bc = /* @__NO_SIDE_EFFECTS__ */ () => "Inserisci almeno 3 caratteri per iniziare la ricerca", kc = /* @__NO_SIDE_EFFECTS__ */ () => "Nessuna normativa trovata", wc = /* @__NO_SIDE_EFFECTS__ */ () => "Nessun documento trovato", _c = /* @__NO_SIDE_EFFECTS__ */ () => "Riproduci", xc = /* @__NO_SIDE_EFFECTS__ */ () => "Pausa", yc = /* @__NO_SIDE_EFFECTS__ */ () => "Errore durante l'invio del messaggio. Riprova.", zc = /* @__NO_SIDE_EFFECTS__ */ () => "Nessuna chat attiva. Crea una nuova chat per iniziare.", $c = /* @__NO_SIDE_EFFECTS__ */ () => "Errore durante il caricamento del nome utente.", Sc = /* @__NO_SIDE_EFFECTS__ */ () => "Manuale Suite", Tc = /* @__NO_SIDE_EFFECTS__ */ () => "Ferma", Cc = /* @__NO_SIDE_EFFECTS__ */ () => "AI Assistant", Ec = /* @__NO_SIDE_EFFECTS__ */ () => "Type your message here...", Ic = /* @__NO_SIDE_EFFECTS__ */ () => "Add attachment", Ac = /* @__NO_SIDE_EFFECTS__ */ () => "Normatives", Rc = /* @__NO_SIDE_EFFECTS__ */ () => "Normative", Lc = /* @__NO_SIDE_EFFECTS__ */ () => "Choose", jc = /* @__NO_SIDE_EFFECTS__ */ () => "Common Document", Pc = /* @__NO_SIDE_EFFECTS__ */ () => "Stop recording", Fc = /* @__NO_SIDE_EFFECTS__ */ () => "Start recording", Oc = /* @__NO_SIDE_EFFECTS__ */ () => "Send message", Mc = /* @__NO_SIDE_EFFECTS__ */ (t) => `Are you sure you want to delete the chat: ${t.chatTitle}?`, Dc = /* @__NO_SIDE_EFFECTS__ */ () => "New Chat", qc = /* @__NO_SIDE_EFFECTS__ */ () => "History", Nc = /* @__NO_SIDE_EFFECTS__ */ () => "Unmute", Bc = /* @__NO_SIDE_EFFECTS__ */ () => "Mute", Uc = /* @__NO_SIDE_EFFECTS__ */ () => "Show history", Yc = /* @__NO_SIDE_EFFECTS__ */ () => "Close", Hc = /* @__NO_SIDE_EFFECTS__ */ () => "Sources", Zc = /* @__NO_SIDE_EFFECTS__ */ () => "View attachment", Gc = /* @__NO_SIDE_EFFECTS__ */ () => "Search", Wc = /* @__NO_SIDE_EFFECTS__ */ () => "Documents", Jc = /* @__NO_SIDE_EFFECTS__ */ () => "Search in progress...", Vc = /* @__NO_SIDE_EFFECTS__ */ () => "Please enter at least 3 characters to start the search", Xc = /* @__NO_SIDE_EFFECTS__ */ () => "No normative found", Qc = /* @__NO_SIDE_EFFECTS__ */ () => "No document found", Kc = /* @__NO_SIDE_EFFECTS__ */ () => "Play", eu = /* @__NO_SIDE_EFFECTS__ */ () => "Pause", tu = /* @__NO_SIDE_EFFECTS__ */ () => "Error sending message. Please try again.", nu = /* @__NO_SIDE_EFFECTS__ */ () => "No active chat. Please create a new chat to get started.", ru = /* @__NO_SIDE_EFFECTS__ */ () => "Error loading username.", iu = /* @__NO_SIDE_EFFECTS__ */ () => "Suite Manual", su = /* @__NO_SIDE_EFFECTS__ */ () => "Stop", au = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
2860
2860
  en: Cc,
2861
2861
  it: Vl
2862
2862
  })[e.languageTag ?? ie()](), ou = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
@@ -2890,10 +2890,10 @@ const Vl = /* @__NO_SIDE_EFFECTS__ */ () => "Assistente AI", Xl = /* @__NO_SIDE_
2890
2890
  en: Mc,
2891
2891
  it: ac
2892
2892
  })[e.languageTag ?? ie()](t), ba = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
2893
- en: qc,
2893
+ en: Dc,
2894
2894
  it: oc
2895
2895
  })[e.languageTag ?? ie()](), ka = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
2896
- en: Dc,
2896
+ en: qc,
2897
2897
  it: lc
2898
2898
  })[e.languageTag ?? ie()](), vu = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
2899
2899
  en: Nc,
@@ -2970,39 +2970,39 @@ function _a(t, e) {
2970
2970
  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), c = g(e, "newChat", 7);
2971
2971
  Ir(() => {
2972
2972
  });
2973
- var u = Ou(), d = C(u), f = C(d), h = D(C(f), 2), m = C(h);
2973
+ var u = Ou(), d = C(u), f = C(d), h = q(C(f), 2), m = C(h);
2974
2974
  m.value = (m.__value = "it") == null ? "" : "it";
2975
- var b = D(m);
2976
- b.value = (b.__value = "en") == null ? "" : "en", y(h), y(f);
2977
- var S = D(f, 2), $ = C(S);
2975
+ var b = q(m);
2976
+ b.value = (b.__value = "en") == null ? "" : "en", z(h), z(f);
2977
+ var S = q(f, 2), $ = C(S);
2978
2978
  {
2979
2979
  var _ = (I) => {
2980
2980
  var O = Ru();
2981
2981
  O.__click = [Au, s], F(
2982
- (Y) => {
2983
- M(O, "title", Y), M(O, "aria-label", s() ? "Unmute" : "Mute");
2982
+ (U) => {
2983
+ M(O, "title", U), M(O, "aria-label", s() ? "Unmute" : "Mute");
2984
2984
  },
2985
2985
  [() => /* @__PURE__ */ vu()]
2986
2986
  ), k(I, O);
2987
2987
  }, E = (I) => {
2988
2988
  var O = ju();
2989
- O.__click = [Lu, s], F((Y) => M(O, "title", Y), [() => /* @__PURE__ */ gu()]), k(I, O);
2989
+ O.__click = [Lu, s], F((U) => M(O, "title", U), [() => /* @__PURE__ */ gu()]), k(I, O);
2990
2990
  };
2991
2991
  B($, (I) => {
2992
2992
  s() ? I(_) : I(E, !1);
2993
2993
  });
2994
2994
  }
2995
- var q = D($, 2);
2996
- q.__click = function(...I) {
2995
+ var D = q($, 2);
2996
+ D.__click = function(...I) {
2997
2997
  var O;
2998
2998
  (O = c()) == null || O.apply(this, I);
2999
2999
  };
3000
- var w = D(q, 2);
3000
+ var w = q(D, 2);
3001
3001
  w.__click = [Pu, r];
3002
- var z = D(w, 2);
3003
- return z.__click = [Fu, r, n], y(S), y(d), y(u), F(
3004
- (I, O, Y, W) => {
3005
- M(q, "title", I), M(w, "title", O), M(w, "aria-label", Y), M(z, "title", W), M(z, "aria-label", W);
3002
+ var y = q(w, 2);
3003
+ return y.__click = [Fu, r, n], z(S), z(d), z(u), F(
3004
+ (I, O, U, W) => {
3005
+ M(D, "title", I), M(w, "title", O), M(w, "aria-label", U), M(y, "title", W), M(y, "aria-label", W);
3006
3006
  },
3007
3007
  [
3008
3008
  () => /* @__PURE__ */ ba(),
@@ -3078,9 +3078,9 @@ ne(
3078
3078
  [],
3079
3079
  !0
3080
3080
  );
3081
- const qu = () => {
3082
- switch (H.getEnvironmentId()) {
3083
- case "aks_qua":
3081
+ const Du = () => {
3082
+ switch (Y.getEnvironmentId()) {
3083
+ case "aks_svi":
3084
3084
  return "http://localhost:8080";
3085
3085
  case "aks_qua":
3086
3086
  return "https://aks-knowledge-base-back-65440859697.europe-west1.run.app";
@@ -3089,7 +3089,7 @@ const qu = () => {
3089
3089
  default:
3090
3090
  return "https://aks-knowledge-base-back-573906316236.europe-west1.run.app";
3091
3091
  }
3092
- }, Du = () => {
3092
+ }, qu = () => {
3093
3093
  const e = document.cookie.split(";").find((n) => n.includes("akb-chat-token"));
3094
3094
  return e ? e.split("=")[1] : "";
3095
3095
  }, Nu = () => {
@@ -3100,9 +3100,9 @@ const qu = () => {
3100
3100
  return e ? e.split("=")[1] === "true" : !0;
3101
3101
  }, Uu = (t) => {
3102
3102
  document.cookie = `akb-chat-forge-pinned=${t}; path=/; max-age=31536000; SameSite=Lax`;
3103
- }, H = {
3104
- getUrl: qu,
3105
- getToken: Du,
3103
+ }, Y = {
3104
+ getUrl: Du,
3105
+ getToken: qu,
3106
3106
  getEnvironmentId: Nu,
3107
3107
  getForgeButtonsPinned: Bu,
3108
3108
  setForgeButtonsPinned: Uu
@@ -3216,10 +3216,10 @@ const yi = (t) => {
3216
3216
  return "https://versioneditorfs-573906316236.europe-west1.run.app";
3217
3217
  }
3218
3218
  }, Hu = () => {
3219
- let t = H.getEnvironmentId();
3219
+ let t = Y.getEnvironmentId();
3220
3220
  return t == "aks_svi" ? "https://hyena-popular-caiman.ngrok-free.app/pages/editor_documenti.php" : `https://${yi(t)}.aksiliasuite.com/pages/editor_documenti.php`;
3221
3221
  }, Zu = (t) => {
3222
- let e = H.getEnvironmentId(), n = H.getToken();
3222
+ let e = Y.getEnvironmentId(), n = Y.getToken();
3223
3223
  return `${Yu(e)}/it/edit/${t}?token=${n}&envId=${e}`;
3224
3224
  };
3225
3225
  function Gu(t, e) {
@@ -3233,12 +3233,12 @@ function Gu(t, e) {
3233
3233
  document.body.appendChild(n), n.submit();
3234
3234
  }
3235
3235
  const Wu = async (t) => {
3236
- const e = await fetch(`${H.getUrl()}/generals/documents`, {
3236
+ const e = await fetch(`${Y.getUrl()}/generals/documents`, {
3237
3237
  method: "POST",
3238
3238
  headers: {
3239
3239
  "Content-Type": "application/json",
3240
- akstoken: H.getToken(),
3241
- envid: H.getEnvironmentId(),
3240
+ akstoken: Y.getToken(),
3241
+ envid: Y.getEnvironmentId(),
3242
3242
  "ngrok-skip-browser-warning": "true"
3243
3243
  },
3244
3244
  body: JSON.stringify({ query: t })
@@ -3259,11 +3259,11 @@ const Wu = async (t) => {
3259
3259
  function: "edit"
3260
3260
  });
3261
3261
  }, Vu = async () => {
3262
- let t = H.getEnvironmentId(), e = `https://${yi(t)}.aksiliasuite.com/api/v1/operatore`;
3262
+ let t = Y.getEnvironmentId(), e = `https://${yi(t)}.aksiliasuite.com/api/v1/operatore`;
3263
3263
  t == "aks_svi" && (e = "https://hyena-popular-caiman.ngrok-free.app/api/v1/operatore");
3264
3264
  const n = await fetch(e, {
3265
3265
  headers: {
3266
- "x-token": H.getToken(),
3266
+ "x-token": Y.getToken(),
3267
3267
  "ngrok-skip-browser-warning": "true"
3268
3268
  }
3269
3269
  });
@@ -3272,13 +3272,13 @@ const Wu = async (t) => {
3272
3272
  const r = await n.text();
3273
3273
  return JSON.parse(r).result[0].nome;
3274
3274
  }, Xu = async () => {
3275
- let t = H.getEnvironmentId(), e = `https://${yi(t)}.aksiliasuite.com/api/v1/check_permission/assessment`;
3275
+ let t = Y.getEnvironmentId(), e = `https://${yi(t)}.aksiliasuite.com/api/v1/check_permission/assessment`;
3276
3276
  t == "aks_svi" && (e = "https://hyena-popular-caiman.ngrok-free.app/api/v1/check_permission/assessment");
3277
3277
  let n = await fetch(e, {
3278
3278
  method: "GET",
3279
3279
  headers: {
3280
3280
  "Content-Type": "application/json",
3281
- "x-token": H.getToken(),
3281
+ "x-token": Y.getToken(),
3282
3282
  "ngrok-skip-browser-warning": "true"
3283
3283
  }
3284
3284
  });
@@ -3289,12 +3289,12 @@ const Wu = async (t) => {
3289
3289
  let i = r.result.reduce((s, a) => Math.max(s, a.level), 0);
3290
3290
  return console.log("Highest user level:", i), i;
3291
3291
  }, Qu = async (t, e) => {
3292
- const n = await fetch(`${H.getUrl()}/generals/forge?collectionName=${e}`, {
3292
+ const n = await fetch(`${Y.getUrl()}/generals/forge?collectionName=${e}`, {
3293
3293
  method: "POST",
3294
3294
  headers: {
3295
3295
  "Content-Type": "application/json",
3296
- akstoken: H.getToken(),
3297
- envid: H.getEnvironmentId(),
3296
+ akstoken: Y.getToken(),
3297
+ envid: Y.getEnvironmentId(),
3298
3298
  "ngrok-skip-browser-warning": "true"
3299
3299
  },
3300
3300
  body: JSON.stringify({ query: t })
@@ -3303,12 +3303,12 @@ const Wu = async (t) => {
3303
3303
  throw new Error("Failed to fetch forge");
3304
3304
  return (await n.json()).map((i) => Yn.fromJson(i));
3305
3305
  }, Ku = async (t, e) => {
3306
- const n = await fetch(`${H.getUrl()}/generals/forge/${t}?collectionName=${e}`, {
3306
+ const n = await fetch(`${Y.getUrl()}/generals/forge/${t}?collectionName=${e}`, {
3307
3307
  method: "GET",
3308
3308
  headers: {
3309
3309
  "Content-Type": "application/json",
3310
- akstoken: H.getToken(),
3311
- envid: H.getEnvironmentId(),
3310
+ akstoken: Y.getToken(),
3311
+ envid: Y.getEnvironmentId(),
3312
3312
  "ngrok-skip-browser-warning": "true"
3313
3313
  }
3314
3314
  });
@@ -3317,11 +3317,11 @@ const Wu = async (t) => {
3317
3317
  const r = await n.json();
3318
3318
  return Yn.fromJson(r);
3319
3319
  }, ed = async (t, e) => {
3320
- const n = await fetch(`${H.getUrl()}/forge/download/pdf?externalId=${t}&collectionName=${e}`, {
3320
+ const n = await fetch(`${Y.getUrl()}/forge/download/pdf?externalId=${t}&collectionName=${e}`, {
3321
3321
  method: "GET",
3322
3322
  headers: {
3323
- akstoken: H.getToken(),
3324
- envid: H.getEnvironmentId(),
3323
+ akstoken: Y.getToken(),
3324
+ envid: Y.getEnvironmentId(),
3325
3325
  "ngrok-skip-browser-warning": "true"
3326
3326
  }
3327
3327
  });
@@ -3346,22 +3346,22 @@ const Wu = async (t) => {
3346
3346
  }, td = async (t, e) => {
3347
3347
  const n = new FormData();
3348
3348
  n.append("file", t), n.append("lang", zi(e));
3349
- const r = await fetch(`${H.getUrl()}/audio/stt`, {
3349
+ const r = await fetch(`${Y.getUrl()}/audio/stt`, {
3350
3350
  method: "POST",
3351
3351
  headers: {
3352
- akstoken: H.getToken(),
3353
- envid: H.getEnvironmentId(),
3352
+ akstoken: Y.getToken(),
3353
+ envid: Y.getEnvironmentId(),
3354
3354
  "ngrok-skip-browser-warning": "true"
3355
3355
  },
3356
3356
  body: n
3357
3357
  });
3358
3358
  return r.ok ? (await r.json()).text : (console.error("Failed to fetch text"), "");
3359
3359
  }, nd = async (t, e) => {
3360
- const n = await fetch(`${H.getUrl()}/audio/tts`, {
3360
+ const n = await fetch(`${Y.getUrl()}/audio/tts`, {
3361
3361
  method: "POST",
3362
3362
  headers: {
3363
- akstoken: H.getToken(),
3364
- envid: H.getEnvironmentId(),
3363
+ akstoken: Y.getToken(),
3364
+ envid: Y.getEnvironmentId(),
3365
3365
  "ngrok-skip-browser-warning": "true",
3366
3366
  "Content-Type": "application/json"
3367
3367
  },
@@ -3585,14 +3585,14 @@ function dd(t, e) {
3585
3585
  K(e, !1), se(t, ud);
3586
3586
  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");
3587
3587
  var u = cd(), d = C(u), f = C(d), h = C(f), m = C(h);
3588
- y(h);
3589
- var b = D(h, 2), S = C(b);
3590
- y(b);
3591
- var $ = D(b, 2), _ = C($);
3592
- y($);
3593
- var E = D($, 2), q = C(E);
3594
- return y(E), y(f), y(d), y(u), F(() => {
3595
- M(u, "style", `--size: ${n() ?? ""}${r() ?? ""}; --floatSize: ${n() ?? ""}; --ballTopLeftColor: ${s() ?? ""}; --ballTopRightColor: ${a() ?? ""}; --ballBottomLeftColor: ${o() ?? ""}; --ballBottomRightColor: ${l() ?? ""}; --duration: ${c() ?? ""};`), te(f, "pause-animation", i()), te(m, "pause-animation", i()), te(S, "pause-animation", i()), te(_, "pause-animation", i()), te(q, "pause-animation", i());
3588
+ z(h);
3589
+ var b = q(h, 2), S = C(b);
3590
+ z(b);
3591
+ var $ = q(b, 2), _ = C($);
3592
+ z($);
3593
+ var E = q($, 2), D = C(E);
3594
+ return z(E), z(f), z(d), z(u), F(() => {
3595
+ M(u, "style", `--size: ${n() ?? ""}${r() ?? ""}; --floatSize: ${n() ?? ""}; --ballTopLeftColor: ${s() ?? ""}; --ballTopRightColor: ${a() ?? ""}; --ballBottomLeftColor: ${o() ?? ""}; --ballBottomRightColor: ${l() ?? ""}; --duration: ${c() ?? ""};`), te(f, "pause-animation", i()), te(m, "pause-animation", i()), te(S, "pause-animation", i()), te(_, "pause-animation", i()), te(D, "pause-animation", i());
3596
3596
  }), k(t, u), ee({
3597
3597
  get size() {
3598
3598
  return n();
@@ -3660,7 +3660,7 @@ ne(
3660
3660
  [],
3661
3661
  !0
3662
3662
  );
3663
- const De = /[a-zA-Z]/, Si = (t, e) => {
3663
+ const qe = /[a-zA-Z]/, Si = (t, e) => {
3664
3664
  if (t[0] === "#" && (t = t.slice(1)), t.length === 3) {
3665
3665
  let r = "";
3666
3666
  t.split("").forEach((i) => {
@@ -3687,7 +3687,7 @@ const pd = {
3687
3687
  function vd(t, e) {
3688
3688
  var u;
3689
3689
  K(e, !1), se(t, pd);
3690
- let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), i = g(e, "duration", 12, "2.1s"), s = g(e, "size", 12, "60"), a = g(e, "pause", 12, !1), o = ((u = i().match(De)) == null ? void 0 : u[0]) ?? "s", l = i().replace(De, "");
3690
+ let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), i = g(e, "duration", 12, "2.1s"), s = g(e, "size", 12, "60"), a = g(e, "pause", 12, !1), o = ((u = i().match(qe)) == null ? void 0 : u[0]) ?? "s", l = i().replace(qe, "");
3691
3691
  rt();
3692
3692
  var c = hd();
3693
3693
  return Ye(c, 5, () => mt(2, 1), Ue, (d, f) => {
@@ -3695,7 +3695,7 @@ function vd(t, e) {
3695
3695
  F(() => {
3696
3696
  M(h, "style", `animation: ${i() ?? ""} ${(p(f) === 1 ? `${(+l - 0.1) / 2}${o}` : "0s") ?? ""} infinite ease-in-out`), te(h, "pause-animation", a());
3697
3697
  }), k(d, h);
3698
- }), y(c), F(() => M(c, "style", `--size: ${s() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}`)), k(t, c), ee({
3698
+ }), z(c), F(() => M(c, "style", `--size: ${s() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}`)), k(t, c), ee({
3699
3699
  get color() {
3700
3700
  return n();
3701
3701
  },
@@ -3968,7 +3968,7 @@ function _d(t, e) {
3968
3968
  K(e, !1), se(t, wd);
3969
3969
  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);
3970
3970
  var o = kd(), l = C(o);
3971
- return y(o), F(() => {
3971
+ return z(o), F(() => {
3972
3972
  M(o, "style", `--size: ${s() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --duration: ${i() ?? ""}; --duration: ${i() ?? ""};`), te(l, "pause-animation", a());
3973
3973
  }), k(t, o), ee({
3974
3974
  get color() {
@@ -4081,7 +4081,7 @@ function zd(t, e) {
4081
4081
  K(e, !1), se(t, yd);
4082
4082
  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);
4083
4083
  var l = xd(), c = C(l);
4084
- return y(l), F(() => {
4084
+ return z(l), F(() => {
4085
4085
  M(l, "style", `--size: ${s() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --stroke: ${a() ?? ""}; --floatSize: ${s() ?? ""}; --duration: ${i() ?? ""}`), te(c, "pause-animation", o());
4086
4086
  }), k(t, l), ee({
4087
4087
  get color() {
@@ -4155,7 +4155,7 @@ const Td = {
4155
4155
  function Cd(t, e) {
4156
4156
  var u;
4157
4157
  K(e, !1), se(t, Td);
4158
- let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), i = g(e, "duration", 12, "1.2s"), s = g(e, "size", 12, "60"), a = g(e, "pause", 12, !1), o = ((u = i().match(De)) == null ? void 0 : u[0]) ?? "s", l = i().replace(De, "");
4158
+ let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), i = g(e, "duration", 12, "1.2s"), s = g(e, "size", 12, "60"), a = g(e, "pause", 12, !1), o = ((u = i().match(qe)) == null ? void 0 : u[0]) ?? "s", l = i().replace(qe, "");
4159
4159
  rt();
4160
4160
  var c = Sd();
4161
4161
  return Ye(c, 5, () => mt(5, 1), Ue, (d, f) => {
@@ -4163,7 +4163,7 @@ function Cd(t, e) {
4163
4163
  F(() => {
4164
4164
  M(h, "style", `animation-delay: ${(p(f) - 1) * (+l / 12)}${o ?? ""}`), te(h, "pause-animation", a());
4165
4165
  }), k(d, h);
4166
- }), y(c), F(() => M(c, "style", `--size: ${s() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --duration: ${i() ?? ""}`)), k(t, c), ee({
4166
+ }), z(c), F(() => M(c, "style", `--size: ${s() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --duration: ${i() ?? ""}`)), k(t, c), ee({
4167
4167
  get color() {
4168
4168
  return n();
4169
4169
  },
@@ -4262,7 +4262,7 @@ function Rd(t, e) {
4262
4262
  F(() => {
4263
4263
  Be(d, `lines small-lines ${p(u) ?? ""} svelte-bnawe9`), M(d, "style", `--color: ${n() ?? ""}; --duration: ${i() ?? ""};`), te(d, "pause-animation", a());
4264
4264
  }), k(c, d);
4265
- }), y(l), F(() => M(l, "style", `--size: ${s() ?? ""}${r() ?? ""}; --rgba:${p(o) ?? ""}`)), k(t, l), ee({
4265
+ }), z(l), F(() => M(l, "style", `--size: ${s() ?? ""}${r() ?? ""}; --rgba:${p(o) ?? ""}`)), k(t, l), ee({
4266
4266
  get color() {
4267
4267
  return n();
4268
4268
  },
@@ -4330,7 +4330,7 @@ const Pd = {
4330
4330
  function Fd(t, e) {
4331
4331
  var u;
4332
4332
  K(e, !1), se(t, Pd);
4333
- 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), o = ((u = i().match(De)) == null ? void 0 : u[0]) ?? "s", l = i().replace(De, "");
4333
+ 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), o = ((u = i().match(qe)) == null ? void 0 : u[0]) ?? "s", l = i().replace(qe, "");
4334
4334
  rt();
4335
4335
  var c = jd();
4336
4336
  return Ye(c, 5, () => mt(3, 1), Ue, (d, f) => {
@@ -4338,7 +4338,7 @@ function Fd(t, e) {
4338
4338
  F(() => {
4339
4339
  M(h, "style", `animation-delay: ${+l / 3 * (p(f) - 1) + o};`), te(h, "pause-animation", a());
4340
4340
  }), k(d, h);
4341
- }), y(c), F(() => M(c, "style", `--size: ${s() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --duration: ${i() ?? ""};`)), k(t, c), ee({
4341
+ }), z(c), F(() => M(c, "style", `--size: ${s() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --duration: ${i() ?? ""};`)), k(t, c), ee({
4342
4342
  get color() {
4343
4343
  return n();
4344
4344
  },
@@ -4385,7 +4385,7 @@ ne(
4385
4385
  !0
4386
4386
  );
4387
4387
  var Od = /* @__PURE__ */ T("<div></div>"), Md = /* @__PURE__ */ T('<div class="wrapper svelte-kxapcj"></div>');
4388
- const qd = {
4388
+ const Dd = {
4389
4389
  hash: "svelte-kxapcj",
4390
4390
  code: `.wrapper.svelte-kxapcj {position:relative;width:var(--size);height:var(--size);}.border.svelte-kxapcj {border-color:var(--color);position:absolute;top:0px;left:0px;width:var(--size);height:var(--size);opacity:0.4;perspective:800px;border-width:6px;border-style:solid;border-image:initial;border-radius:100%;}.border.\\31.svelte-kxapcj {
4391
4391
  animation: var(--duration) linear 0s infinite normal none running svelte-kxapcj-ringOne;}.border.\\32.svelte-kxapcj {
@@ -4408,8 +4408,8 @@ const qd = {
4408
4408
  }
4409
4409
  }`
4410
4410
  };
4411
- function Dd(t, e) {
4412
- K(e, !1), se(t, qd);
4411
+ function qd(t, e) {
4412
+ K(e, !1), se(t, Dd);
4413
4413
  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);
4414
4414
  rt();
4415
4415
  var o = Md();
@@ -4418,7 +4418,7 @@ function Dd(t, e) {
4418
4418
  F(() => {
4419
4419
  Be(u, `border ${p(c) ?? ""} svelte-kxapcj`), te(u, "pause-animation", a());
4420
4420
  }), k(l, u);
4421
- }), y(o), F(() => M(o, "style", `--size: ${s() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --duration: ${i() ?? ""};`)), k(t, o), ee({
4421
+ }), z(o), F(() => M(o, "style", `--size: ${s() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --duration: ${i() ?? ""};`)), k(t, o), ee({
4422
4422
  get color() {
4423
4423
  return n();
4424
4424
  },
@@ -4452,7 +4452,7 @@ function Dd(t, e) {
4452
4452
  });
4453
4453
  }
4454
4454
  ne(
4455
- Dd,
4455
+ qd,
4456
4456
  {
4457
4457
  color: {},
4458
4458
  unit: {},
@@ -4502,7 +4502,7 @@ const Ud = {
4502
4502
  function Yd(t, e) {
4503
4503
  var u;
4504
4504
  K(e, !1), se(t, Ud);
4505
- 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 = ((u = i().match(De)) == null ? void 0 : u[0]) ?? "s", l = i().replace(De, "");
4505
+ 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 = ((u = i().match(qe)) == null ? void 0 : u[0]) ?? "s", l = i().replace(qe, "");
4506
4506
  rt();
4507
4507
  var c = Bd();
4508
4508
  return Ye(c, 5, () => mt(3, 1), Ue, (d, f) => {
@@ -4510,7 +4510,7 @@ function Yd(t, e) {
4510
4510
  F(() => {
4511
4511
  M(h, "style", `--dotSize:${+s() * 0.25}${r() ?? ""}; --color:${n() ?? ""}; animation-delay: ${p(f) * (+l / 10)}${o ?? ""};`), te(h, "pause-animation", a());
4512
4512
  }), k(d, h);
4513
- }), y(c), F(() => M(c, "style", `--size:${s() ?? ""}${r() ?? ""}; --duration: ${i() ?? ""};`)), k(t, c), ee({
4513
+ }), z(c), F(() => M(c, "style", `--size:${s() ?? ""}${r() ?? ""}; --duration: ${i() ?? ""};`)), k(t, c), ee({
4514
4514
  get color() {
4515
4515
  return n();
4516
4516
  },
@@ -4584,7 +4584,7 @@ function Gd(t, e) {
4584
4584
  K(e, !1), se(t, Zd);
4585
4585
  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);
4586
4586
  var o = Hd(), l = C(o);
4587
- return y(o), F(() => {
4587
+ return z(o), F(() => {
4588
4588
  M(o, "style", `--size: ${s() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --duration: ${i() ?? ""};`), te(l, "pause-animation", a());
4589
4589
  }), k(t, o), ee({
4590
4590
  get color() {
@@ -4656,7 +4656,7 @@ function Vd(t, e) {
4656
4656
  K(e, !1), se(t, Jd);
4657
4657
  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);
4658
4658
  var o = Wd(), l = C(o);
4659
- return y(o), F(() => {
4659
+ return z(o), F(() => {
4660
4660
  M(o, "style", `--size: ${s() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --duration: ${i() ?? ""};`), te(l, "pause-animation", a());
4661
4661
  }), k(t, o), ee({
4662
4662
  get color() {
@@ -4724,7 +4724,7 @@ const Kd = {
4724
4724
  function Ti(t, e) {
4725
4725
  var u;
4726
4726
  K(e, !1), se(t, Kd);
4727
- let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), i = g(e, "duration", 12, "1.5s"), s = g(e, "size", 12, "60"), a = g(e, "pause", 12, !1), o = ((u = i().match(De)) == null ? void 0 : u[0]) ?? "s", l = i().replace(De, "");
4727
+ let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), i = g(e, "duration", 12, "1.5s"), s = g(e, "size", 12, "60"), a = g(e, "pause", 12, !1), o = ((u = i().match(qe)) == null ? void 0 : u[0]) ?? "s", l = i().replace(qe, "");
4728
4728
  rt();
4729
4729
  var c = Qd();
4730
4730
  return Ye(c, 5, () => mt(3, 0), Ue, (d, f) => {
@@ -4732,7 +4732,7 @@ function Ti(t, e) {
4732
4732
  F(() => {
4733
4733
  M(h, "style", `animation-delay: ${p(f) * (+l / 10)}${o ?? ""}; left: ${p(f) * (+s() / 3 + +s() / 15) + r()};`), te(h, "pause-animation", a());
4734
4734
  }), k(d, h);
4735
- }), y(c), F(() => M(c, "style", `--size: ${s() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --duration: ${i() ?? ""}`)), k(t, c), ee({
4735
+ }), z(c), F(() => M(c, "style", `--size: ${s() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --duration: ${i() ?? ""}`)), k(t, c), ee({
4736
4736
  get color() {
4737
4737
  return n();
4738
4738
  },
@@ -4798,7 +4798,7 @@ const nf = {
4798
4798
  function rf(t, e) {
4799
4799
  var u;
4800
4800
  K(e, !1), se(t, nf);
4801
- let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), i = g(e, "duration", 12, "2.5s"), s = g(e, "size", 12, "60"), a = g(e, "pause", 12, !1), o = ((u = i().match(De)) == null ? void 0 : u[0]) ?? "s", l = i().replace(De, "");
4801
+ let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), i = g(e, "duration", 12, "2.5s"), s = g(e, "size", 12, "60"), a = g(e, "pause", 12, !1), o = ((u = i().match(qe)) == null ? void 0 : u[0]) ?? "s", l = i().replace(qe, "");
4802
4802
  rt();
4803
4803
  var c = tf();
4804
4804
  return Ye(c, 5, () => mt(6, 0), Ue, (d, f) => {
@@ -4806,7 +4806,7 @@ function rf(t, e) {
4806
4806
  F(() => {
4807
4807
  M(h, "style", `animation-delay: ${p(f) * (+l / 25)}${o ?? ""}; width: ${p(f) * (+s() / 6) + r()}; height: ${p(f) * (+s() / 6) / 2 + r()}; `), te(h, "pause-animation", a());
4808
4808
  }), k(d, h);
4809
- }), y(c), F(() => M(c, "style", `--size: ${s() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --motionOne: ${-s() / 5}${r() ?? ""}; --motionTwo: ${+s() / 4}${r() ?? ""}; --motionThree: ${-s() / 5}${r() ?? ""}; --duration: ${i() ?? ""};`)), k(t, c), ee({
4809
+ }), z(c), F(() => M(c, "style", `--size: ${s() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --motionOne: ${-s() / 5}${r() ?? ""}; --motionTwo: ${+s() / 4}${r() ?? ""}; --motionThree: ${-s() / 5}${r() ?? ""}; --duration: ${i() ?? ""};`)), k(t, c), ee({
4810
4810
  get color() {
4811
4811
  return n();
4812
4812
  },
@@ -4877,7 +4877,7 @@ const of = {
4877
4877
  function lf(t, e) {
4878
4878
  var d;
4879
4879
  K(e, !1), se(t, of);
4880
- 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(De)) == null ? void 0 : d[0]) ?? "s", l = i().replace(De, "");
4880
+ 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(qe)) == null ? void 0 : d[0]) ?? "s", l = i().replace(qe, "");
4881
4881
  rt();
4882
4882
  var c = af(), u = C(c);
4883
4883
  return Ye(u, 5, () => mt(2, 0), Ue, (f, h) => {
@@ -4885,7 +4885,7 @@ function lf(t, e) {
4885
4885
  F(() => {
4886
4886
  M(m, "style", `animation-delay: ${(p(h) === 1 ? `${+l / 2}${o}` : "0s") ?? ""}; ${(p(h) === 1 ? "bottom: 0;" : "") ?? ""} ${(p(h) === 1 ? "top: auto;" : "") ?? ""}`), te(m, "pause-animation", a());
4887
4887
  }), k(f, m);
4888
- }), y(u), y(c), F(() => {
4888
+ }), z(u), z(c), F(() => {
4889
4889
  M(c, "style", `--size: ${s() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --duration: ${i() ?? ""};`), te(u, "pause-animation", a());
4890
4890
  }), k(t, c), ee({
4891
4891
  get color() {
@@ -5055,7 +5055,7 @@ function pf(t, e) {
5055
5055
  K(e, !1), se(t, hf);
5056
5056
  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);
5057
5057
  var o = ff(), l = C(o);
5058
- return y(o), F(() => {
5058
+ return z(o), F(() => {
5059
5059
  M(o, "style", `--size: ${s() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --duration: ${i() ?? ""};`), te(l, "pause-animation", a());
5060
5060
  }), k(t, o), ee({
5061
5061
  get color() {
@@ -5118,8 +5118,8 @@ const gf = {
5118
5118
  function mf(t, e) {
5119
5119
  K(e, !1), se(t, gf);
5120
5120
  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;
5121
- var c = vf(), u = C(c), d = D(u, 2);
5122
- return y(c), F(() => {
5121
+ var c = vf(), u = C(c), d = q(u, 2);
5122
+ return z(c), F(() => {
5123
5123
  M(c, "style", `--size: ${s() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --moonSize: ${l ?? ""}${r() ?? ""}; --duration: ${i() ?? ""};`), te(c, "pause-animation", a()), te(u, "pause-animation", a()), te(d, "pause-animation", a());
5124
5124
  }), k(t, c), ee({
5125
5125
  get color() {
@@ -5210,7 +5210,7 @@ function wf(t, e) {
5210
5210
  }
5211
5211
  ), Jn(), rt();
5212
5212
  var l = bf(), c = C(l);
5213
- return y(l), F(() => {
5213
+ return z(l), F(() => {
5214
5214
  M(l, "style", `--size: ${s() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --rgba: ${p(o) ?? ""}; --duration: ${i() ?? ""};`), te(c, "pause-animation", a());
5215
5215
  }), k(t, l), ee({
5216
5216
  get color() {
@@ -5415,7 +5415,7 @@ const Ef = {
5415
5415
  function If(t, e) {
5416
5416
  var u;
5417
5417
  K(e, !1), se(t, Ef);
5418
- 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), o = ((u = i().match(De)) == null ? void 0 : u[0]) ?? "s", l = i().replace(De, "");
5418
+ 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), o = ((u = i().match(qe)) == null ? void 0 : u[0]) ?? "s", l = i().replace(qe, "");
5419
5419
  rt();
5420
5420
  var c = Cf();
5421
5421
  return Ye(c, 5, () => mt(10, 0), Ue, (d, f) => {
@@ -5423,7 +5423,7 @@ function If(t, e) {
5423
5423
  F(() => {
5424
5424
  M(h, "style", `left: ${p(f) * (+s() / 5 + (+s() / 15 - +s() / 100)) + r()}; animation-delay: ${p(f) * (+l / 8.3)}${o ?? ""};`), te(h, "pause-animation", a());
5425
5425
  }), k(d, h);
5426
- }), y(c), F(() => M(c, "style", `--size: ${s() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --duration: ${i() ?? ""};`)), k(t, c), ee({
5426
+ }), z(c), F(() => M(c, "style", `--size: ${s() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --duration: ${i() ?? ""};`)), k(t, c), ee({
5427
5427
  get color() {
5428
5428
  return n();
5429
5429
  },
@@ -5494,7 +5494,7 @@ const Lf = {
5494
5494
  function jf(t, e) {
5495
5495
  var d;
5496
5496
  K(e, !1), se(t, Lf);
5497
- 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), o = ((d = i().match(De)) == null ? void 0 : d[0]) ?? "s", l = i().replace(De, ""), c = Ut();
5497
+ 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), o = ((d = i().match(qe)) == null ? void 0 : d[0]) ?? "s", l = i().replace(qe, ""), c = Ut();
5498
5498
  Wn(
5499
5499
  () => En(n()),
5500
5500
  () => {
@@ -5507,7 +5507,7 @@ function jf(t, e) {
5507
5507
  F(() => {
5508
5508
  M(m, "style", `animation-delay: ${(p(h) === 1 ? "-1s" : "0s") ?? ""}; animation-duration: ${2 / +l + o};`), te(m, "pause-animation", a());
5509
5509
  }), k(f, m);
5510
- }), y(u), F(() => M(u, "style", `--size: ${s() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --rgba: ${p(c) ?? ""}; --duration: ${i() ?? ""}`)), k(t, u), ee({
5510
+ }), z(u), F(() => M(u, "style", `--size: ${s() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --rgba: ${p(c) ?? ""}; --duration: ${i() ?? ""}`)), k(t, u), ee({
5511
5511
  get color() {
5512
5512
  return n();
5513
5513
  },
@@ -5620,7 +5620,7 @@ ne(
5620
5620
  !0
5621
5621
  );
5622
5622
  var Mf = /* @__PURE__ */ T('<div class="wrapper svelte-1ju64u"></div>');
5623
- const qf = {
5623
+ const Df = {
5624
5624
  hash: "svelte-1ju64u",
5625
5625
  code: `.wrapper.svelte-1ju64u {width:var(--size);height:calc(var(--size) * 1.5);margin-left:var(--size);margin-top:var(--size);background:var(--color);display:inline-block;position:relative;box-sizing:border-box;
5626
5626
  animation: svelte-1ju64u-bump var(--duration) ease-in infinite alternate;}.wrapper.svelte-1ju64u::after {content:'';box-sizing:border-box;left:50%;bottom:100%;transform:translate(-50%, 0);position:absolute;border:var(--size) solid transparent;border-bottom-color:var(--color);}.pause-animation.svelte-1ju64u {animation-play-state:paused;}
@@ -5633,8 +5633,8 @@ const qf = {
5633
5633
  }
5634
5634
  }`
5635
5635
  };
5636
- function Df(t, e) {
5637
- K(e, !1), se(t, qf);
5636
+ function qf(t, e) {
5637
+ K(e, !1), se(t, Df);
5638
5638
  let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), i = g(e, "duration", 12, "0.4s"), s = g(e, "size", 12, "15"), a = g(e, "pause", 12, !1);
5639
5639
  var o = Mf();
5640
5640
  return F(() => {
@@ -5673,7 +5673,7 @@ function Df(t, e) {
5673
5673
  });
5674
5674
  }
5675
5675
  ne(
5676
- Df,
5676
+ qf,
5677
5677
  {
5678
5678
  color: {},
5679
5679
  unit: {},
@@ -5775,67 +5775,67 @@ function xa(t, e) {
5775
5775
  }
5776
5776
  };
5777
5777
  var m = sh(), b = C(m), S = C(b), $ = C(S), _ = C($);
5778
- y($);
5779
- var E = D($, 2);
5780
- E.__click = u, y(S);
5781
- var q = D(S, 2), w = C(q), z = C(w), I = D(C(z), 2);
5778
+ z($);
5779
+ var E = q($, 2);
5780
+ E.__click = u, z(S);
5781
+ var D = q(S, 2), w = C(D), y = C(w), I = q(C(y), 2);
5782
5782
  _l(I), I.__input = [
5783
5783
  Nf,
5784
5784
  c,
5785
5785
  i,
5786
5786
  f,
5787
5787
  h
5788
- ], y(z), y(w);
5789
- var O = D(w, 2), Y = C(O);
5788
+ ], z(y), z(w);
5789
+ var O = q(w, 2), U = C(O);
5790
5790
  {
5791
5791
  var W = (N) => {
5792
5792
  var le = Bf(), Pe = C(le);
5793
5793
  Ti(Pe, { size: "30", color: "#295dcf" });
5794
- var Fe = D(Pe, 2), Ne = C(Fe, !0);
5795
- y(Fe), y(le), F((ue) => Le(Ne, ue), [() => /* @__PURE__ */ _u()]), k(N, le);
5794
+ var Fe = q(Pe, 2), Ne = C(Fe, !0);
5795
+ z(Fe), z(le), F((ue) => Le(Ne, ue), [() => /* @__PURE__ */ _u()]), k(N, le);
5796
5796
  }, he = (N) => {
5797
5797
  var le = be(), Pe = ge(le);
5798
5798
  {
5799
5799
  var Fe = (ue) => {
5800
- var we = Uf(), ye = D(C(we), 2), Je = C(ye, !0);
5801
- y(ye), y(we), F((pt) => Le(Je, pt), [() => /* @__PURE__ */ xu()]), k(ue, we);
5800
+ var we = Uf(), ye = q(C(we), 2), We = C(ye, !0);
5801
+ z(ye), z(we), F((pt) => Le(We, pt), [() => /* @__PURE__ */ xu()]), k(ue, we);
5802
5802
  }, Ne = (ue) => {
5803
5803
  var we = be(), ye = ge(we);
5804
5804
  {
5805
- var Je = (Ce) => {
5805
+ var We = (Ce) => {
5806
5806
  var ze = be(), _e = ge(ze);
5807
5807
  {
5808
- var qe = (U) => {
5809
- var G = Yf(), Q = D(C(G), 2), J = C(Q, !0);
5810
- y(Q), y(G), F((X) => Le(J, X), [() => /* @__PURE__ */ yu()]), k(U, G);
5811
- }, Ge = (U) => {
5808
+ var De = (H) => {
5809
+ var G = Yf(), Q = q(C(G), 2), J = C(Q, !0);
5810
+ z(Q), z(G), F((X) => Le(J, X), [() => /* @__PURE__ */ yu()]), k(H, G);
5811
+ }, Je = (H) => {
5812
5812
  var G = Gf();
5813
5813
  Ye(G, 21, () => p(o), Ue, (Q, J) => {
5814
5814
  var X = Zf();
5815
5815
  X.__click = [Hf, d, J];
5816
5816
  var pe = C(X), $e = C(pe);
5817
- y(pe);
5818
- var Ee = D(pe, 2), Ie = C(Ee), Ae = C(Ie, !0);
5819
- y(Ie), y(Ee), y(X), F(
5817
+ z(pe);
5818
+ var Ee = q(pe, 2), Ie = C(Ee), Ae = C(Ie, !0);
5819
+ z(Ie), z(Ee), z(X), F(
5820
5820
  (Oe) => {
5821
5821
  Be($e, Xn(p(s).icon), "svelte-m8ylyl"), M($e, "style", `color: ${p(s).color}`), Le(Ae, Oe);
5822
5822
  },
5823
5823
  [() => p(J).title.split(".")[0]]
5824
5824
  ), k(Q, X);
5825
- }), y(G), k(U, G);
5825
+ }), z(G), k(H, G);
5826
5826
  };
5827
- B(_e, (U) => {
5828
- p(o).length === 0 ? U(qe) : U(Ge, !1);
5827
+ B(_e, (H) => {
5828
+ p(o).length === 0 ? H(De) : H(Je, !1);
5829
5829
  });
5830
5830
  }
5831
5831
  k(Ce, ze);
5832
5832
  }, pt = (Ce) => {
5833
5833
  var ze = be(), _e = ge(ze);
5834
5834
  {
5835
- var qe = (U) => {
5836
- var G = Wf(), Q = D(C(G), 2), J = C(Q, !0);
5837
- y(Q), y(G), F((X) => Le(J, X), [() => /* @__PURE__ */ zu()]), k(U, G);
5838
- }, Ge = (U) => {
5835
+ var De = (H) => {
5836
+ var G = Wf(), Q = q(C(G), 2), J = C(Q, !0);
5837
+ z(Q), z(G), F((X) => Le(J, X), [() => /* @__PURE__ */ zu()]), k(H, G);
5838
+ }, Je = (H) => {
5839
5839
  var G = ih();
5840
5840
  Ye(G, 21, () => p(a), Ue, (Q, J) => {
5841
5841
  var X = rh();
@@ -5870,20 +5870,20 @@ function xa(t, e) {
5870
5870
  var Ct = eh();
5871
5871
  k(Mt, Ct);
5872
5872
  }, Fr = (Mt) => {
5873
- var Ct = be(), qt = ge(Ct);
5873
+ var Ct = be(), Dt = ge(Ct);
5874
5874
  {
5875
- var Et = (Dt) => {
5875
+ var Et = (qt) => {
5876
5876
  var Nt = th();
5877
- k(Dt, Nt);
5878
- }, Or = (Dt) => {
5877
+ k(qt, Nt);
5878
+ }, Or = (qt) => {
5879
5879
  var Nt = nh();
5880
- k(Dt, Nt);
5880
+ k(qt, Nt);
5881
5881
  };
5882
5882
  B(
5883
- qt,
5884
- (Dt) => {
5883
+ Dt,
5884
+ (qt) => {
5885
5885
  var Nt;
5886
- ((Nt = p(J).title.split(".").pop()) == null ? void 0 : Nt.toLowerCase()) === "akd" ? Dt(Et) : Dt(Or, !1);
5886
+ ((Nt = p(J).title.split(".").pop()) == null ? void 0 : Nt.toLowerCase()) === "akd" ? qt(Et) : qt(Or, !1);
5887
5887
  },
5888
5888
  !0
5889
5889
  );
@@ -5938,11 +5938,11 @@ function xa(t, e) {
5938
5938
  p(J).isCommon ? Z(Ee) : Z(Ie, !1);
5939
5939
  });
5940
5940
  }
5941
- y(pe);
5942
- var Ae = D(pe, 2), Oe = C(Ae), A = C(Oe, !0);
5943
- y(Oe);
5944
- var L = D(Oe, 2), V = C(L, !0);
5945
- y(L), y(Ae), y(X), F(
5941
+ z(pe);
5942
+ var Ae = q(pe, 2), Oe = C(Ae), A = C(Oe, !0);
5943
+ z(Oe);
5944
+ var L = q(Oe, 2), V = C(L, !0);
5945
+ z(L), z(Ae), z(X), F(
5946
5946
  (Z) => {
5947
5947
  Le(A, Z), Le(V, p(J).path && p(J).path !== "" ? p(J).path : "root");
5948
5948
  },
@@ -5950,12 +5950,12 @@ function xa(t, e) {
5950
5950
  () => p(J).isCommon ? p(J).title.split(".")[0] : p(J).title
5951
5951
  ]
5952
5952
  ), k(Q, X);
5953
- }), y(G), k(U, G);
5953
+ }), z(G), k(H, G);
5954
5954
  };
5955
5955
  B(
5956
5956
  _e,
5957
- (U) => {
5958
- p(a).length === 0 ? U(qe) : U(Ge, !1);
5957
+ (H) => {
5958
+ p(a).length === 0 ? H(De) : H(Je, !1);
5959
5959
  },
5960
5960
  !0
5961
5961
  );
@@ -5965,7 +5965,7 @@ function xa(t, e) {
5965
5965
  B(
5966
5966
  ye,
5967
5967
  (Ce) => {
5968
- i() !== "" ? Ce(Je) : Ce(pt, !1);
5968
+ i() !== "" ? Ce(We) : Ce(pt, !1);
5969
5969
  },
5970
5970
  !0
5971
5971
  );
@@ -5982,11 +5982,11 @@ function xa(t, e) {
5982
5982
  }
5983
5983
  k(N, le);
5984
5984
  };
5985
- B(Y, (N) => {
5985
+ B(U, (N) => {
5986
5986
  p(l) ? N(W) : N(he, !1);
5987
5987
  });
5988
5988
  }
5989
- return y(O), y(q), y(b), y(m), F(
5989
+ return z(O), z(D), z(b), z(m), F(
5990
5990
  (N, le, Pe) => {
5991
5991
  Le(_, `${N ?? ""}
5992
5992
  ${le ?? ""}`), M(I, "placeholder", `${N ?? ""} ${Pe ?? ""} (min 3 caratteri)...`), xl(I, p(c));
@@ -6084,17 +6084,17 @@ function ya(t, e) {
6084
6084
  if (i()) return;
6085
6085
  const A = Object.keys(l()).map((L) => l()[L].ext_id);
6086
6086
  n()(p(c), a(), o(), A), x(c, ""), l({});
6087
- }, q = () => {
6087
+ }, D = () => {
6088
6088
  console.log("Seleziona file"), I(), O();
6089
6089
  }, w = (A) => {
6090
6090
  a(A), o(!1), l({}), I();
6091
- }, z = () => {
6091
+ }, y = () => {
6092
6092
  o(!0), a(""), l({}), I();
6093
6093
  }, I = () => {
6094
6094
  x(W, !1);
6095
6095
  }, O = () => {
6096
6096
  x(he, !0);
6097
- }, Y = async (A, L, V) => {
6097
+ }, U = async (A, L, V) => {
6098
6098
  await Gt.getDocumentPage(A, L, V);
6099
6099
  };
6100
6100
  let W = re(!1), he = re(!1);
@@ -6102,12 +6102,12 @@ function ya(t, e) {
6102
6102
  Object.keys(l()).length > 0 && a() == "" && o(!0);
6103
6103
  });
6104
6104
  var N = Lh(), le = ge(N), Pe = C(le), Fe = C(Pe);
6105
- fl(Fe), Fe.__keyup = [lh, E], y(Pe);
6106
- var Ne = D(Pe, 2), ue = C(Ne), we = C(ue), ye = C(we);
6105
+ fl(Fe), Fe.__keyup = [lh, E], z(Pe);
6106
+ var Ne = q(Pe, 2), ue = C(Ne), we = C(ue), ye = C(we);
6107
6107
  ye.__click = [oh, W];
6108
- var Je = C(ye);
6109
- y(ye);
6110
- var pt = D(ye, 2);
6108
+ var We = C(ye);
6109
+ z(ye);
6110
+ var pt = q(ye, 2);
6111
6111
  {
6112
6112
  var Ce = (A) => {
6113
6113
  var L = ch(), V = C(L);
@@ -6118,7 +6118,7 @@ function ya(t, e) {
6118
6118
  } : () => {
6119
6119
  }) == null || xe.apply(this, je);
6120
6120
  };
6121
- var Z = D(V, 2);
6121
+ var Z = q(V, 2);
6122
6122
  Z.__click = function(...je) {
6123
6123
  var xe;
6124
6124
  (xe = a() != "normative" ? () => {
@@ -6126,22 +6126,22 @@ function ya(t, e) {
6126
6126
  } : () => {
6127
6127
  }) == null || xe.apply(this, je);
6128
6128
  };
6129
- var Se = D(C(Z), 2), Re = C(Se, !0);
6130
- y(Se), y(Z);
6131
- var j = D(Z, 2);
6129
+ var Se = q(C(Z), 2), Re = C(Se, !0);
6130
+ z(Se), z(Z);
6131
+ var j = q(Z, 2);
6132
6132
  j.__click = function(...je) {
6133
6133
  var xe;
6134
6134
  (xe = o() ? () => {
6135
- } : z) == null || xe.apply(this, je);
6135
+ } : y) == null || xe.apply(this, je);
6136
6136
  };
6137
- var ve = D(j, 2), He = /* @__PURE__ */ gt(() => Object.keys(l()).length < 2 ? q : () => {
6137
+ var ve = q(j, 2), He = /* @__PURE__ */ gt(() => Object.keys(l()).length < 2 ? D : () => {
6138
6138
  });
6139
6139
  ve.__click = function(...je) {
6140
6140
  var xe;
6141
6141
  (xe = p(He)) == null || xe.apply(this, je);
6142
6142
  };
6143
- var Ve = D(C(ve), 2), Jt = C(Ve);
6144
- y(Ve), y(ve), y(L), F(
6143
+ var Ve = q(C(ve), 2), Jt = C(Ve);
6144
+ z(Ve), z(ve), z(L), F(
6145
6145
  (je, xe, at) => {
6146
6146
  Be(V, `${`dropdown-option ${a() == "suite" ? "option-disabled" : ""}` ?? ""} svelte-18sfhki`), Be(Z, `${`dropdown-option ${a() == "normative" ? "option-disabled" : ""}` ?? ""} svelte-18sfhki`), Le(Re, je), Be(j, `${`dropdown-option ${o() ? "option-disabled" : ""}` ?? ""} svelte-18sfhki`), Be(ve, `${xe ?? ""} svelte-18sfhki`), Le(Jt, `${at ?? ""}
6147
6147
  ${(a() !== "" ? "File Forge" : "File") ?? ""}`);
@@ -6157,13 +6157,13 @@ function ya(t, e) {
6157
6157
  p(W) && A(Ce);
6158
6158
  });
6159
6159
  }
6160
- y(we);
6161
- var ze = D(we, 2), _e = C(ze);
6160
+ z(we);
6161
+ var ze = q(we, 2), _e = C(ze);
6162
6162
  {
6163
- var qe = (A) => {
6164
- var L = fh(), V = C(L), Z = D(V, 2), Se = C(Z, !0);
6165
- y(Z);
6166
- var Re = D(Z, 2);
6163
+ var De = (A) => {
6164
+ var L = fh(), V = C(L), Z = q(V, 2), Se = C(Z, !0);
6165
+ z(Z);
6166
+ var Re = q(Z, 2);
6167
6167
  {
6168
6168
  var j = (ve) => {
6169
6169
  var He = dh();
@@ -6173,18 +6173,18 @@ function ya(t, e) {
6173
6173
  Object.keys(l()).length === 0 && ve(j);
6174
6174
  });
6175
6175
  }
6176
- y(L), F(() => {
6176
+ z(L), F(() => {
6177
6177
  M(L, "title", p(u).name), M(L, "style", `background-color: ${p(u).color}; color: ${p(u).textColor};`), Be(V, Xn(p(u).icon), "svelte-18sfhki"), Le(Se, p(u).name);
6178
6178
  }), k(A, L);
6179
6179
  };
6180
6180
  B(_e, (A) => {
6181
- a() !== "" && A(qe);
6181
+ a() !== "" && A(De);
6182
6182
  });
6183
6183
  }
6184
- var Ge = D(_e, 2);
6184
+ var Je = q(_e, 2);
6185
6185
  {
6186
- var U = (A) => {
6187
- var L = vh(), V = D(C(L), 4);
6186
+ var H = (A) => {
6187
+ var L = vh(), V = q(C(L), 4);
6188
6188
  {
6189
6189
  var Z = (Se) => {
6190
6190
  var Re = ph();
@@ -6194,13 +6194,13 @@ function ya(t, e) {
6194
6194
  Object.keys(l()).length === 0 && Se(Z);
6195
6195
  });
6196
6196
  }
6197
- y(L), k(A, L);
6197
+ z(L), k(A, L);
6198
6198
  };
6199
- B(Ge, (A) => {
6200
- o() && A(U);
6199
+ B(Je, (A) => {
6200
+ o() && A(H);
6201
6201
  });
6202
6202
  }
6203
- var G = D(Ge, 2);
6203
+ var G = q(Je, 2);
6204
6204
  Ye(G, 17, () => Object.entries(l()), Ue, (A, L) => {
6205
6205
  let V = () => p(L)[0], Z = () => p(L)[1].title, Se = () => p(L)[1].ext_id, Re = () => p(L)[1].gendoc_id, j = () => p(L)[1].isCommon;
6206
6206
  var ve = Th(), He = C(ve);
@@ -6217,13 +6217,13 @@ function ya(t, e) {
6217
6217
  }, vt = (Ot) => {
6218
6218
  var Tt = be(), Fr = ge(Tt);
6219
6219
  {
6220
- var Mt = (qt) => {
6220
+ var Mt = (Dt) => {
6221
6221
  var Et = bh();
6222
- k(qt, Et);
6223
- }, Ct = (qt) => {
6222
+ k(Dt, Et);
6223
+ }, Ct = (Dt) => {
6224
6224
  var Et = be(), Or = ge(Et);
6225
6225
  {
6226
- var Dt = (cn) => {
6226
+ var qt = (cn) => {
6227
6227
  var Vt = kh();
6228
6228
  k(cn, Vt);
6229
6229
  }, Nt = (cn) => {
@@ -6268,18 +6268,18 @@ function ya(t, e) {
6268
6268
  Or,
6269
6269
  (cn) => {
6270
6270
  var Vt;
6271
- ((Vt = Z().split(".").pop()) == null ? void 0 : Vt.toLowerCase()) === "xlsx" ? cn(Dt) : cn(Nt, !1);
6271
+ ((Vt = Z().split(".").pop()) == null ? void 0 : Vt.toLowerCase()) === "xlsx" ? cn(qt) : cn(Nt, !1);
6272
6272
  },
6273
6273
  !0
6274
6274
  );
6275
6275
  }
6276
- k(qt, Et);
6276
+ k(Dt, Et);
6277
6277
  };
6278
6278
  B(
6279
6279
  Fr,
6280
- (qt) => {
6280
+ (Dt) => {
6281
6281
  var Et;
6282
- ((Et = Z().split(".").pop()) == null ? void 0 : Et.toLowerCase()) === "docx" ? qt(Mt) : qt(Ct, !1);
6282
+ ((Et = Z().split(".").pop()) == null ? void 0 : Et.toLowerCase()) === "docx" ? Dt(Mt) : Dt(Ct, !1);
6283
6283
  },
6284
6284
  !0
6285
6285
  );
@@ -6301,11 +6301,11 @@ function ya(t, e) {
6301
6301
  j() ? Me(Ve) : Me(Jt, !1);
6302
6302
  });
6303
6303
  }
6304
- var je = D(He, 2);
6304
+ var je = q(He, 2);
6305
6305
  {
6306
6306
  var xe = (Me) => {
6307
6307
  var Te = yh(), Xe = C(Te, !0);
6308
- y(Te), F(
6308
+ z(Te), F(
6309
6309
  (bt, vt) => {
6310
6310
  M(Te, "title", bt), Le(Xe, vt);
6311
6311
  },
@@ -6318,20 +6318,20 @@ function ya(t, e) {
6318
6318
  var Te = $h();
6319
6319
  Be(Te, "attachment-title open-file-button svelte-18sfhki"), Te.__click = [
6320
6320
  zh,
6321
- Y,
6321
+ U,
6322
6322
  Se,
6323
6323
  Z,
6324
6324
  Re
6325
6325
  ];
6326
6326
  var Xe = C(Te, !0);
6327
- y(Te), F(() => Le(Xe, Z())), k(Me, Te);
6327
+ z(Te), F(() => Le(Xe, Z())), k(Me, Te);
6328
6328
  };
6329
6329
  B(je, (Me) => {
6330
6330
  j() ? Me(xe) : Me(at, !1);
6331
6331
  });
6332
6332
  }
6333
- var ot = D(je, 2);
6334
- ot.__click = [Sh, l, V], y(ve), F(
6333
+ var ot = q(je, 2);
6334
+ ot.__click = [Sh, l, V], z(ve), F(
6335
6335
  (Me) => {
6336
6336
  Be(ve, `${`attachment-item ${j() ? "common" : ""}` ?? ""} svelte-18sfhki`), M(ve, "title", Me), Be(ot, `${`remove-btn ${j() ? "common" : ""}` ?? ""} svelte-18sfhki`);
6337
6337
  },
@@ -6339,8 +6339,8 @@ function ya(t, e) {
6339
6339
  () => j() ? a() !== "" ? p(u).name : /* @__PURE__ */ ma() : Z()
6340
6340
  ]
6341
6341
  ), k(A, ve);
6342
- }), y(ze), ha(ze, (A) => b = A, () => b);
6343
- var Q = D(ze, 2), J = C(Q);
6342
+ }), z(ze), ha(ze, (A) => b = A, () => b);
6343
+ var Q = q(ze, 2), J = C(Q);
6344
6344
  {
6345
6345
  var X = (A) => {
6346
6346
  var L = Ch();
@@ -6350,7 +6350,7 @@ function ya(t, e) {
6350
6350
  {
6351
6351
  var Z = (Re) => {
6352
6352
  var j = Eh(), ve = C(j);
6353
- Ti(ve, { size: "20", color: "white" }), y(j), k(Re, j);
6353
+ Ti(ve, { size: "20", color: "white" }), z(j), k(Re, j);
6354
6354
  }, Se = (Re) => {
6355
6355
  var j = Ih();
6356
6356
  j.__click = $, F((ve) => M(j, "title", ve), [() => /* @__PURE__ */ fu()]), k(Re, j);
@@ -6369,7 +6369,7 @@ function ya(t, e) {
6369
6369
  p(h) ? A(X) : A(pe, !1);
6370
6370
  });
6371
6371
  }
6372
- var $e = D(J, 2);
6372
+ var $e = q(J, 2);
6373
6373
  {
6374
6374
  var Ee = (A) => {
6375
6375
  var L = Ah();
@@ -6385,8 +6385,8 @@ function ya(t, e) {
6385
6385
  i() ? A(Ee) : A(Ie, !1);
6386
6386
  });
6387
6387
  }
6388
- y(Q), y(ue), y(Ne), y(le);
6389
- var Ae = D(le, 2);
6388
+ z(Q), z(ue), z(Ne), z(le);
6389
+ var Ae = q(le, 2);
6390
6390
  {
6391
6391
  var Oe = (A) => {
6392
6392
  xa(A, {
@@ -6416,7 +6416,7 @@ function ya(t, e) {
6416
6416
  }
6417
6417
  return F(
6418
6418
  (A, L) => {
6419
- M(Fe, "placeholder", A), Be(ye, `${`btn plus-button ${p(W) ? "plus-button-active" : ""}` ?? ""} svelte-18sfhki`), M(ye, "aria-label", L), M(ye, "title", L), Be(Je, `${`fa-solid ${p(W) ? "fa-xmark" : "fa-plus"}` ?? ""} svelte-18sfhki`);
6419
+ M(Fe, "placeholder", A), Be(ye, `${`btn plus-button ${p(W) ? "plus-button-active" : ""}` ?? ""} svelte-18sfhki`), M(ye, "aria-label", L), M(ye, "title", L), Be(We, `${`fa-solid ${p(W) ? "fa-xmark" : "fa-plus"}` ?? ""} svelte-18sfhki`);
6420
6420
  },
6421
6421
  [
6422
6422
  () => /* @__PURE__ */ ou(),
@@ -6640,7 +6640,7 @@ function Ta(t) {
6640
6640
  return e;
6641
6641
  }
6642
6642
  const as = /* @__PURE__ */ Object.create(null);
6643
- function qh(t, e) {
6643
+ function Dh(t, e) {
6644
6644
  return {
6645
6645
  provider: t,
6646
6646
  prefix: e,
@@ -6650,14 +6650,14 @@ function qh(t, e) {
6650
6650
  }
6651
6651
  function xn(t, e) {
6652
6652
  const n = as[t] || (as[t] = /* @__PURE__ */ Object.create(null));
6653
- return n[e] || (n[e] = qh(t, e));
6653
+ return n[e] || (n[e] = Dh(t, e));
6654
6654
  }
6655
6655
  function Ca(t, e) {
6656
6656
  return Ta(e) ? Sa(e, (n, r) => {
6657
6657
  r ? t.icons[n] = r : t.missing.add(n);
6658
6658
  }) : [];
6659
6659
  }
6660
- function Dh(t, e, n) {
6660
+ function qh(t, e, n) {
6661
6661
  try {
6662
6662
  if (typeof n.body == "string")
6663
6663
  return t.icons[e] = { ...n }, !0;
@@ -6681,7 +6681,7 @@ function Bh(t, e) {
6681
6681
  if (!n)
6682
6682
  return !1;
6683
6683
  const r = xn(n.provider, n.prefix);
6684
- return e ? Dh(r, n.name, e) : (r.missing.add(n.name), !0);
6684
+ return e ? qh(r, n.name, e) : (r.missing.add(n.name), !0);
6685
6685
  }
6686
6686
  function Uh(t, e) {
6687
6687
  if (typeof t != "object")
@@ -6781,11 +6781,11 @@ function Vh(t, e) {
6781
6781
  ), S.push("scale(-1 1)"), i.top = i.left = 0) : _ && (S.push(
6782
6782
  "translate(" + (0 - i.left).toString() + " " + (i.height + i.top).toString() + ")"
6783
6783
  ), S.push("scale(1 -1)"), i.top = i.left = 0);
6784
- let q;
6784
+ let D;
6785
6785
  switch (E < 0 && (E -= Math.floor(E / 4) * 4), E = E % 4, E) {
6786
6786
  case 1:
6787
- q = i.height / 2 + i.top, S.unshift(
6788
- "rotate(90 " + q.toString() + " " + q.toString() + ")"
6787
+ D = i.height / 2 + i.top, S.unshift(
6788
+ "rotate(90 " + D.toString() + " " + D.toString() + ")"
6789
6789
  );
6790
6790
  break;
6791
6791
  case 2:
@@ -6794,12 +6794,12 @@ function Vh(t, e) {
6794
6794
  );
6795
6795
  break;
6796
6796
  case 3:
6797
- q = i.width / 2 + i.left, S.unshift(
6798
- "rotate(-90 " + q.toString() + " " + q.toString() + ")"
6797
+ D = i.width / 2 + i.left, S.unshift(
6798
+ "rotate(-90 " + D.toString() + " " + D.toString() + ")"
6799
6799
  );
6800
6800
  break;
6801
6801
  }
6802
- E % 2 === 1 && (i.left !== i.top && (q = i.left, i.left = i.top, i.top = q), i.width !== i.height && (q = i.width, i.width = i.height, i.height = q)), S.length && (s = Wh(
6802
+ E % 2 === 1 && (i.left !== i.top && (D = i.left, i.left = i.top, i.top = D), i.width !== i.height && (D = i.width, i.width = i.height, i.height = D)), S.length && (s = Wh(
6803
6803
  s,
6804
6804
  '<g transform="' + S.join(" ") + '">',
6805
6805
  "</g>"
@@ -7096,12 +7096,12 @@ function gp(t, e, n, r) {
7096
7096
  const i = t.resources.length, s = t.random ? Math.floor(Math.random() * i) : t.index;
7097
7097
  let a;
7098
7098
  if (t.random) {
7099
- let z = t.resources.slice(0);
7100
- for (a = []; z.length > 1; ) {
7101
- const I = Math.floor(Math.random() * z.length);
7102
- a.push(z[I]), z = z.slice(0, I).concat(z.slice(I + 1));
7099
+ let y = t.resources.slice(0);
7100
+ for (a = []; y.length > 1; ) {
7101
+ const I = Math.floor(Math.random() * y.length);
7102
+ a.push(y[I]), y = y.slice(0, I).concat(y.slice(I + 1));
7103
7103
  }
7104
- a = a.concat(z);
7104
+ a = a.concat(y);
7105
7105
  } else
7106
7106
  a = t.resources.slice(s).concat(t.resources.slice(0, s));
7107
7107
  const o = Date.now();
@@ -7111,12 +7111,12 @@ function gp(t, e, n, r) {
7111
7111
  d && (clearTimeout(d), d = null);
7112
7112
  }
7113
7113
  function b() {
7114
- l === "pending" && (l = "aborted"), m(), f.forEach((z) => {
7115
- z.status === "pending" && (z.status = "aborted");
7114
+ l === "pending" && (l = "aborted"), m(), f.forEach((y) => {
7115
+ y.status === "pending" && (y.status = "aborted");
7116
7116
  }), f = [];
7117
7117
  }
7118
- function S(z, I) {
7119
- I && (h = []), typeof z == "function" && h.push(z);
7118
+ function S(y, I) {
7119
+ I && (h = []), typeof y == "function" && h.push(y);
7120
7120
  }
7121
7121
  function $() {
7122
7122
  return {
@@ -7130,22 +7130,22 @@ function gp(t, e, n, r) {
7130
7130
  };
7131
7131
  }
7132
7132
  function _() {
7133
- l = "failed", h.forEach((z) => {
7134
- z(void 0, u);
7133
+ l = "failed", h.forEach((y) => {
7134
+ y(void 0, u);
7135
7135
  });
7136
7136
  }
7137
7137
  function E() {
7138
- f.forEach((z) => {
7139
- z.status === "pending" && (z.status = "aborted");
7138
+ f.forEach((y) => {
7139
+ y.status === "pending" && (y.status = "aborted");
7140
7140
  }), f = [];
7141
7141
  }
7142
- function q(z, I, O) {
7143
- const Y = I !== "success";
7144
- switch (f = f.filter((W) => W !== z), l) {
7142
+ function D(y, I, O) {
7143
+ const U = I !== "success";
7144
+ switch (f = f.filter((W) => W !== y), l) {
7145
7145
  case "pending":
7146
7146
  break;
7147
7147
  case "failed":
7148
- if (Y || !t.dataAfterTimeout)
7148
+ if (U || !t.dataAfterTimeout)
7149
7149
  return;
7150
7150
  break;
7151
7151
  default:
@@ -7155,12 +7155,12 @@ function gp(t, e, n, r) {
7155
7155
  u = O, _();
7156
7156
  return;
7157
7157
  }
7158
- if (Y) {
7158
+ if (U) {
7159
7159
  u = O, f.length || (a.length ? w() : _());
7160
7160
  return;
7161
7161
  }
7162
7162
  if (m(), E(), !t.random) {
7163
- const W = t.resources.indexOf(z.resource);
7163
+ const W = t.resources.indexOf(y.resource);
7164
7164
  W !== -1 && W !== t.index && (t.index = W);
7165
7165
  }
7166
7166
  l = "completed", h.forEach((W) => {
@@ -7171,8 +7171,8 @@ function gp(t, e, n, r) {
7171
7171
  if (l !== "pending")
7172
7172
  return;
7173
7173
  m();
7174
- const z = a.shift();
7175
- if (z === void 0) {
7174
+ const y = a.shift();
7175
+ if (y === void 0) {
7176
7176
  if (f.length) {
7177
7177
  d = setTimeout(() => {
7178
7178
  m(), l === "pending" && (E(), _());
@@ -7184,12 +7184,12 @@ function gp(t, e, n, r) {
7184
7184
  }
7185
7185
  const I = {
7186
7186
  status: "pending",
7187
- resource: z,
7188
- callback: (O, Y) => {
7189
- q(I, O, Y);
7187
+ resource: y,
7188
+ callback: (O, U) => {
7189
+ D(I, O, U);
7190
7190
  }
7191
7191
  };
7192
- f.push(I), c++, d = setTimeout(w, t.rotate), n(z, e, I.callback);
7192
+ f.push(I), c++, d = setTimeout(w, t.rotate), n(y, e, I.callback);
7193
7193
  }
7194
7194
  return setTimeout(w), $;
7195
7195
  }
@@ -7602,7 +7602,7 @@ function vs(t, e) {
7602
7602
  }
7603
7603
  var Fp = /* @__PURE__ */ pl("<svg><!></svg>"), Op = /* @__PURE__ */ T("<span></span>");
7604
7604
  function Zn(t, e) {
7605
- const n = ql(e, [
7605
+ const n = Dl(e, [
7606
7606
  "children",
7607
7607
  "$$slots",
7608
7608
  "$$events",
@@ -7628,13 +7628,13 @@ function Zn(t, e) {
7628
7628
  Ir(() => {
7629
7629
  x(i, !0);
7630
7630
  }), Ll(() => {
7631
- Dr(r, p(r).destroyed = !0), p(r).loading && (p(r).loading.abort(), Dr(r, p(r).loading = null));
7631
+ qr(r, p(r).destroyed = !0), p(r).loading && (p(r).loading.abort(), qr(r, p(r).loading = null));
7632
7632
  }), Wn(
7633
7633
  () => (p(s), En(n), p(i), p(r), p(a), vs),
7634
7634
  () => {
7635
7635
  p(s);
7636
7636
  const f = !!n.ssr || p(i), h = Pp(n.icon, p(r), f, l, o);
7637
- x(a, h ? vs(h.data, n) : null), p(a) && h.classes && Dr(a, p(a).attributes.class = (typeof n.class == "string" ? n.class + " " : "") + h.classes.join(" "));
7637
+ x(a, h ? vs(h.data, n) : null), p(a) && h.classes && qr(a, p(a).attributes.class = (typeof n.class == "string" ? n.class + " " : "") + h.classes.join(" "));
7638
7638
  }
7639
7639
  ), Jn(), rt();
7640
7640
  var c = be(), u = ge(c);
@@ -7645,8 +7645,8 @@ function Zn(t, e) {
7645
7645
  var b = ($) => {
7646
7646
  var _ = Fp();
7647
7647
  let E;
7648
- var q = C(_);
7649
- ni(q, () => p(a).body, !0, !1), y(_), F(() => E = Ji(_, E, { ...p(a).attributes }, void 0, !0)), k($, _);
7648
+ var D = C(_);
7649
+ ni(D, () => p(a).body, !0, !1), z(_), F(() => E = Ji(_, E, { ...p(a).attributes }, void 0, !0)), k($, _);
7650
7650
  }, S = ($) => {
7651
7651
  var _ = Op();
7652
7652
  let E;
@@ -7689,13 +7689,13 @@ function ce(t, e = "") {
7689
7689
  const r = {
7690
7690
  replace: (i, s) => {
7691
7691
  let a = typeof s == "string" ? s : s.source;
7692
- return a = a.replace(We.caret, "$1"), n = n.replace(i, a), r;
7692
+ return a = a.replace(Ge.caret, "$1"), n = n.replace(i, a), r;
7693
7693
  },
7694
7694
  getRegex: () => new RegExp(n, e)
7695
7695
  };
7696
7696
  return r;
7697
7697
  }
7698
- const We = {
7698
+ const Ge = {
7699
7699
  codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm,
7700
7700
  outputLinkReplace: /\\([\[\]])/g,
7701
7701
  indentCodeCompensation: /^(\s+)(?:```)/,
@@ -7752,11 +7752,11 @@ const We = {
7752
7752
  fencesBeginRegex: (t) => new RegExp(`^ {0,${Math.min(3, t - 1)}}(?:\`\`\`|~~~)`),
7753
7753
  headingBeginRegex: (t) => new RegExp(`^ {0,${Math.min(3, t - 1)}}#`),
7754
7754
  htmlBeginRegex: (t) => new RegExp(`^ {0,${Math.min(3, t - 1)}}<(?:[a-z].*>|!--)`, "i")
7755
- }, Mp = /^(?:[ \t]*(?:\n|$))+/, qp = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, Dp = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, Qn = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, Np = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, Ri = /(?:[*+-]|\d{1,9}[.)])/, Fa = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, Oa = ce(Fa).replace(/bull/g, Ri).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), Bp = ce(Fa).replace(/bull/g, Ri).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), Li = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, Up = /^[^\n]+/, ji = /(?!\s*\])(?:\\.|[^\[\]\\])+/, Yp = ce(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", ji).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), Hp = ce(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, Ri).getRegex(), jr = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", Pi = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, Zp = ce("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", Pi).replace("tag", jr).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), Ma = ce(Li).replace("hr", Qn).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", jr).getRegex(), Gp = ce(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", Ma).getRegex(), Fi = {
7755
+ }, Mp = /^(?:[ \t]*(?:\n|$))+/, Dp = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, qp = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, Qn = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, Np = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, Ri = /(?:[*+-]|\d{1,9}[.)])/, Fa = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, Oa = ce(Fa).replace(/bull/g, Ri).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), Bp = ce(Fa).replace(/bull/g, Ri).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), Li = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, Up = /^[^\n]+/, ji = /(?!\s*\])(?:\\.|[^\[\]\\])+/, Yp = ce(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", ji).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), Hp = ce(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, Ri).getRegex(), jr = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", Pi = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, Zp = ce("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", Pi).replace("tag", jr).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), Ma = ce(Li).replace("hr", Qn).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", jr).getRegex(), Gp = ce(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", Ma).getRegex(), Fi = {
7756
7756
  blockquote: Gp,
7757
- code: qp,
7757
+ code: Dp,
7758
7758
  def: Yp,
7759
- fences: Dp,
7759
+ fences: qp,
7760
7760
  heading: Np,
7761
7761
  hr: Qn,
7762
7762
  html: Zp,
@@ -7781,13 +7781,13 @@ const We = {
7781
7781
  lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
7782
7782
  paragraph: ce(Li).replace("hr", Qn).replace("heading", ` *#{1,6} *[^
7783
7783
  ]`).replace("lheading", Oa).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
7784
- }, Vp = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Xp = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, qa = /^( {2,}|\\)\n(?!\s*$)/, Qp = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, Pr = /[\p{P}\p{S}]/u, Oi = /[\s\p{P}\p{S}]/u, Da = /[^\s\p{P}\p{S}]/u, Kp = ce(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, Oi).getRegex(), Na = /(?!~)[\p{P}\p{S}]/u, ev = /(?!~)[\s\p{P}\p{S}]/u, tv = /(?:[^\s\p{P}\p{S}]|~)/u, nv = /\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g, Ba = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, rv = ce(Ba, "u").replace(/punct/g, Pr).getRegex(), iv = ce(Ba, "u").replace(/punct/g, Na).getRegex(), Ua = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", sv = ce(Ua, "gu").replace(/notPunctSpace/g, Da).replace(/punctSpace/g, Oi).replace(/punct/g, Pr).getRegex(), av = ce(Ua, "gu").replace(/notPunctSpace/g, tv).replace(/punctSpace/g, ev).replace(/punct/g, Na).getRegex(), ov = ce("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, Da).replace(/punctSpace/g, Oi).replace(/punct/g, Pr).getRegex(), lv = ce(/\\(punct)/, "gu").replace(/punct/g, Pr).getRegex(), cv = ce(/^<(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(), uv = ce(Pi).replace("(?:-->|$)", "-->").getRegex(), dv = ce("^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", uv).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), br = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, fv = ce(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label", br).replace("href", /<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), Ya = ce(/^!?\[(label)\]\[(ref)\]/).replace("label", br).replace("ref", ji).getRegex(), Ha = ce(/^!?\[(ref)\](?:\[\])?/).replace("ref", ji).getRegex(), hv = ce("reflink|nolink(?!\\()", "g").replace("reflink", Ya).replace("nolink", Ha).getRegex(), Mi = {
7784
+ }, Vp = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Xp = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, Da = /^( {2,}|\\)\n(?!\s*$)/, Qp = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, Pr = /[\p{P}\p{S}]/u, Oi = /[\s\p{P}\p{S}]/u, qa = /[^\s\p{P}\p{S}]/u, Kp = ce(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, Oi).getRegex(), Na = /(?!~)[\p{P}\p{S}]/u, ev = /(?!~)[\s\p{P}\p{S}]/u, tv = /(?:[^\s\p{P}\p{S}]|~)/u, nv = /\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g, Ba = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, rv = ce(Ba, "u").replace(/punct/g, Pr).getRegex(), iv = ce(Ba, "u").replace(/punct/g, Na).getRegex(), Ua = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", sv = ce(Ua, "gu").replace(/notPunctSpace/g, qa).replace(/punctSpace/g, Oi).replace(/punct/g, Pr).getRegex(), av = ce(Ua, "gu").replace(/notPunctSpace/g, tv).replace(/punctSpace/g, ev).replace(/punct/g, Na).getRegex(), ov = ce("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, qa).replace(/punctSpace/g, Oi).replace(/punct/g, Pr).getRegex(), lv = ce(/\\(punct)/, "gu").replace(/punct/g, Pr).getRegex(), cv = ce(/^<(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(), uv = ce(Pi).replace("(?:-->|$)", "-->").getRegex(), dv = ce("^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", uv).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), br = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, fv = ce(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label", br).replace("href", /<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), Ya = ce(/^!?\[(label)\]\[(ref)\]/).replace("label", br).replace("ref", ji).getRegex(), Ha = ce(/^!?\[(ref)\](?:\[\])?/).replace("ref", ji).getRegex(), hv = ce("reflink|nolink(?!\\()", "g").replace("reflink", Ya).replace("nolink", Ha).getRegex(), Mi = {
7785
7785
  _backpedal: Mn,
7786
7786
  // only used for GFM url
7787
7787
  anyPunctuation: lv,
7788
7788
  autolink: cv,
7789
7789
  blockSkip: nv,
7790
- br: qa,
7790
+ br: Da,
7791
7791
  code: Xp,
7792
7792
  del: Mn,
7793
7793
  emStrongLDelim: rv,
@@ -7816,7 +7816,7 @@ const We = {
7816
7816
  text: /^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/
7817
7817
  }, vv = {
7818
7818
  ...li,
7819
- br: ce(qa).replace("{2,}", "*").getRegex(),
7819
+ br: ce(Da).replace("{2,}", "*").getRegex(),
7820
7820
  text: ce(li.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
7821
7821
  }, tr = {
7822
7822
  normal: Fi,
@@ -7836,15 +7836,15 @@ const We = {
7836
7836
  }, ms = (t) => gv[t];
7837
7837
  function kt(t, e) {
7838
7838
  if (e) {
7839
- if (We.escapeTest.test(t))
7840
- return t.replace(We.escapeReplace, ms);
7841
- } else if (We.escapeTestNoEncode.test(t))
7842
- return t.replace(We.escapeReplaceNoEncode, ms);
7839
+ if (Ge.escapeTest.test(t))
7840
+ return t.replace(Ge.escapeReplace, ms);
7841
+ } else if (Ge.escapeTestNoEncode.test(t))
7842
+ return t.replace(Ge.escapeReplaceNoEncode, ms);
7843
7843
  return t;
7844
7844
  }
7845
7845
  function bs(t) {
7846
7846
  try {
7847
- t = encodeURI(t).replace(We.percentDecode, "%");
7847
+ t = encodeURI(t).replace(Ge.percentDecode, "%");
7848
7848
  } catch {
7849
7849
  return null;
7850
7850
  }
@@ -7852,12 +7852,12 @@ function bs(t) {
7852
7852
  }
7853
7853
  function ks(t, e) {
7854
7854
  var s;
7855
- const n = t.replace(We.findPipe, (a, o, l) => {
7855
+ const n = t.replace(Ge.findPipe, (a, o, l) => {
7856
7856
  let c = !1, u = o;
7857
7857
  for (; --u >= 0 && l[u] === "\\"; )
7858
7858
  c = !c;
7859
7859
  return c ? "|" : " |";
7860
- }), r = n.split(We.splitPipe);
7860
+ }), r = n.split(Ge.splitPipe);
7861
7861
  let i = 0;
7862
7862
  if (r[0].trim() || r.shift(), r.length > 0 && !((s = r.at(-1)) != null && s.trim()) && r.pop(), e)
7863
7863
  if (r.length > e)
@@ -7866,7 +7866,7 @@ function ks(t, e) {
7866
7866
  for (; r.length < e; )
7867
7867
  r.push("");
7868
7868
  for (; i < r.length; i++)
7869
- r[i] = r[i].trim().replace(We.slashPipe, "|");
7869
+ r[i] = r[i].trim().replace(Ge.slashPipe, "|");
7870
7870
  return r;
7871
7871
  }
7872
7872
  function jn(t, e, n) {
@@ -8075,18 +8075,18 @@ ${d}` : d;
8075
8075
  `, 1)[0], m = !f.trim(), b = 0;
8076
8076
  if (this.options.pedantic ? (b = 2, d = f.trimStart()) : m ? b = n[1].length + 1 : (b = n[2].search(this.rules.other.nonSpaceChar), b = b > 4 ? 1 : b, d = f.slice(b), b += n[1].length), m && this.rules.other.blankLine.test(h) && (u += h + `
8077
8077
  `, e = e.substring(h.length + 1), c = !0), !c) {
8078
- const _ = this.rules.other.nextBulletRegex(b), E = this.rules.other.hrRegex(b), q = this.rules.other.fencesBeginRegex(b), w = this.rules.other.headingBeginRegex(b), z = this.rules.other.htmlBeginRegex(b);
8078
+ const _ = this.rules.other.nextBulletRegex(b), E = this.rules.other.hrRegex(b), D = this.rules.other.fencesBeginRegex(b), w = this.rules.other.headingBeginRegex(b), y = this.rules.other.htmlBeginRegex(b);
8079
8079
  for (; e; ) {
8080
8080
  const I = e.split(`
8081
8081
  `, 1)[0];
8082
8082
  let O;
8083
- if (h = I, this.options.pedantic ? (h = h.replace(this.rules.other.listReplaceNesting, " "), O = h) : O = h.replace(this.rules.other.tabCharGlobal, " "), q.test(h) || w.test(h) || z.test(h) || _.test(h) || E.test(h))
8083
+ if (h = I, this.options.pedantic ? (h = h.replace(this.rules.other.listReplaceNesting, " "), O = h) : O = h.replace(this.rules.other.tabCharGlobal, " "), D.test(h) || w.test(h) || y.test(h) || _.test(h) || E.test(h))
8084
8084
  break;
8085
8085
  if (O.search(this.rules.other.nonSpaceChar) >= b || !h.trim())
8086
8086
  d += `
8087
8087
  ` + O.slice(b);
8088
8088
  else {
8089
- if (m || f.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || q.test(f) || w.test(f) || E.test(f))
8089
+ if (m || f.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || D.test(f) || w.test(f) || E.test(f))
8090
8090
  break;
8091
8091
  d += `
8092
8092
  ` + h;
@@ -8425,7 +8425,7 @@ class ct {
8425
8425
  top: !0
8426
8426
  };
8427
8427
  const n = {
8428
- other: We,
8428
+ other: Ge,
8429
8429
  block: tr.normal,
8430
8430
  inline: Ln.normal
8431
8431
  };
@@ -8456,7 +8456,7 @@ class ct {
8456
8456
  * Preprocessing
8457
8457
  */
8458
8458
  lex(e) {
8459
- e = e.replace(We.carriageReturn, `
8459
+ e = e.replace(Ge.carriageReturn, `
8460
8460
  `), this.blockTokens(e, this.tokens);
8461
8461
  for (let n = 0; n < this.inlineQueue.length; n++) {
8462
8462
  const r = this.inlineQueue[n];
@@ -8466,7 +8466,7 @@ class ct {
8466
8466
  }
8467
8467
  blockTokens(e, n = [], r = !1) {
8468
8468
  var i, s, a;
8469
- for (this.options.pedantic && (e = e.replace(We.tabCharGlobal, " ").replace(We.spaceLine, "")); e; ) {
8469
+ for (this.options.pedantic && (e = e.replace(Ge.tabCharGlobal, " ").replace(Ge.spaceLine, "")); e; ) {
8470
8470
  let o;
8471
8471
  if ((s = (i = this.options.extensions) == null ? void 0 : i.block) != null && s.some((c) => (o = c.call({ lexer: this }, e, n)) ? (e = e.substring(o.raw.length), n.push(o), !0) : !1))
8472
8472
  continue;
@@ -8669,7 +8669,7 @@ class wr {
8669
8669
  }
8670
8670
  code({ text: e, lang: n, escaped: r }) {
8671
8671
  var a;
8672
- const i = (a = (n || "").match(We.notSpaceStart)) == null ? void 0 : a[0], s = e.replace(We.endingNewline, "") + `
8672
+ const i = (a = (n || "").match(Ge.notSpaceStart)) == null ? void 0 : a[0], s = e.replace(Ge.endingNewline, "") + `
8673
8673
  `;
8674
8674
  return i ? '<pre><code class="language-' + kt(i) + '">' + (r ? s : kt(s, !0)) + `</code></pre>
8675
8675
  ` : "<pre><code>" + (r ? s : kt(s, !0)) + `</code></pre>
@@ -8792,7 +8792,7 @@ ${e}</tr>
8792
8792
  return "tokens" in e && e.tokens ? this.parser.parseInline(e.tokens) : "escaped" in e && e.escaped ? e.text : kt(e.text);
8793
8793
  }
8794
8794
  }
8795
- class qi {
8795
+ class Di {
8796
8796
  // no need for block level renderers
8797
8797
  strong({ text: e }) {
8798
8798
  return e;
@@ -8827,7 +8827,7 @@ class ut {
8827
8827
  R(this, "options");
8828
8828
  R(this, "renderer");
8829
8829
  R(this, "textRenderer");
8830
- this.options = e || ln, this.options.renderer = this.options.renderer || new wr(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new qi();
8830
+ this.options = e || ln, this.options.renderer = this.options.renderer || new wr(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new Di();
8831
8831
  }
8832
8832
  /**
8833
8833
  * Static Parse Method
@@ -8985,7 +8985,7 @@ class ut {
8985
8985
  return r;
8986
8986
  }
8987
8987
  }
8988
- class qn {
8988
+ class Dn {
8989
8989
  constructor(e) {
8990
8990
  R(this, "options");
8991
8991
  R(this, "block");
@@ -9022,7 +9022,7 @@ class qn {
9022
9022
  return this.block ? ut.parse : ut.parseInline;
9023
9023
  }
9024
9024
  }
9025
- R(qn, "passThroughHooks", /* @__PURE__ */ new Set([
9025
+ R(Dn, "passThroughHooks", /* @__PURE__ */ new Set([
9026
9026
  "preprocess",
9027
9027
  "postprocess",
9028
9028
  "processAllTokens"
@@ -9035,10 +9035,10 @@ class kv {
9035
9035
  R(this, "parseInline", this.parseMarkdown(!1));
9036
9036
  R(this, "Parser", ut);
9037
9037
  R(this, "Renderer", wr);
9038
- R(this, "TextRenderer", qi);
9038
+ R(this, "TextRenderer", Di);
9039
9039
  R(this, "Lexer", ct);
9040
9040
  R(this, "Tokenizer", kr);
9041
- R(this, "Hooks", qn);
9041
+ R(this, "Hooks", Dn);
9042
9042
  this.use(...e);
9043
9043
  }
9044
9044
  /**
@@ -9125,14 +9125,14 @@ class kv {
9125
9125
  i.tokenizer = s;
9126
9126
  }
9127
9127
  if (r.hooks) {
9128
- const s = this.defaults.hooks || new qn();
9128
+ const s = this.defaults.hooks || new Dn();
9129
9129
  for (const a in r.hooks) {
9130
9130
  if (!(a in s))
9131
9131
  throw new Error(`hook '${a}' does not exist`);
9132
9132
  if (["options", "block"].includes(a))
9133
9133
  continue;
9134
9134
  const o = a, l = r.hooks[o], c = s[o];
9135
- qn.passThroughHooks.has(a) ? s[o] = (u) => {
9135
+ Dn.passThroughHooks.has(a) ? s[o] = (u) => {
9136
9136
  if (this.defaults.async)
9137
9137
  return Promise.resolve(l.call(s, u)).then((f) => c.call(s, f));
9138
9138
  const d = l.call(s, u);
@@ -9219,11 +9219,11 @@ fe.parseInline = nn.parseInline;
9219
9219
  fe.Parser = ut;
9220
9220
  fe.parser = ut.parse;
9221
9221
  fe.Renderer = wr;
9222
- fe.TextRenderer = qi;
9222
+ fe.TextRenderer = Di;
9223
9223
  fe.Lexer = ct;
9224
9224
  fe.lexer = ct.lex;
9225
9225
  fe.Tokenizer = kr;
9226
- fe.Hooks = qn;
9226
+ fe.Hooks = Dn;
9227
9227
  fe.parse = fe;
9228
9228
  fe.options;
9229
9229
  fe.setOptions;
@@ -9237,7 +9237,7 @@ const wv = (t, e) => {
9237
9237
  };
9238
9238
  var _v = (t, e, n, r, i, s, a, o, l, c, u) => {
9239
9239
  e() ? !p(a) || p(o) == "mp3" ? l(r(), c() || "", i()) : u(r(), c() || "", i()) : n(r(), i(), s());
9240
- }, xv = /* @__PURE__ */ T('<i class="fa-solid fa-spinner fa-spin svelte-1imtnoy"></i>'), yv = /* @__PURE__ */ T("<i></i>"), zv = /* @__PURE__ */ T('<i class="fa-solid fa-file-pdf svelte-1imtnoy" style="color: #f0463c;"></i>'), $v = /* @__PURE__ */ T('<i class="fa-solid fa-file-word svelte-1imtnoy" style="color: #305b9a;"></i>'), Sv = /* @__PURE__ */ T('<i class="fa-solid fa-file-excel svelte-1imtnoy" style="color: #0c7540;"></i>'), Tv = /* @__PURE__ */ T('<i class="fa-solid fa-file-powerpoint svelte-1imtnoy" style="color: #d14b2b;"></i>'), Cv = /* @__PURE__ */ T('<i class="fa-solid fa-passport svelte-1imtnoy" style="color: #0DCAF0"></i>'), Ev = /* @__PURE__ */ T('<i class="fa-solid fa-file svelte-1imtnoy"></i>'), Iv = /* @__PURE__ */ T('<div class="document-path svelte-1imtnoy"><p> </p></div>'), Av = /* @__PURE__ */ T('<button><!> <div class="document-info svelte-1imtnoy"><span class="document-title svelte-1imtnoy"> </span> <!></div></button>'), Rv = /* @__PURE__ */ T('<div class="dropdown-content svelte-1imtnoy"></div>'), Lv = /* @__PURE__ */ T('<div class="dropdown svelte-1imtnoy"><button class="allegatibtn svelte-1imtnoy" aria-label="Visualizza allegati"> </button> <!></div>'), jv = /* @__PURE__ */ T('<div class="message-attachments"><!></div>');
9240
+ }, xv = /* @__PURE__ */ T('<i class="fa-solid fa-spinner fa-spin svelte-1imtnoy"></i>'), yv = /* @__PURE__ */ T("<i></i>"), zv = /* @__PURE__ */ T('<i class="fa-solid fa-file-pdf svelte-1imtnoy" style="color: #f0463c;"></i>'), $v = /* @__PURE__ */ T('<i class="fa-solid fa-file-word svelte-1imtnoy" style="color: #305b9a;"></i>'), Sv = /* @__PURE__ */ T('<i class="fa-solid fa-file-excel svelte-1imtnoy" style="color: #0c7540;"></i>'), Tv = /* @__PURE__ */ T('<i class="fa-solid fa-file-powerpoint svelte-1imtnoy" style="color: #d14b2b;"></i>'), Cv = /* @__PURE__ */ T('<i class="fa-solid fa-passport svelte-1imtnoy" style="color: #0DCAF0"></i>'), Ev = /* @__PURE__ */ T('<i class="fa-solid fa-file svelte-1imtnoy"></i>'), Iv = /* @__PURE__ */ T('<div class="document-path svelte-1imtnoy"> </div>'), Av = /* @__PURE__ */ T('<button><!> <div class="document-info svelte-1imtnoy"><span class="document-title svelte-1imtnoy"> </span> <!></div></button>'), Rv = /* @__PURE__ */ T('<div class="dropdown-content svelte-1imtnoy"></div>'), Lv = /* @__PURE__ */ T('<div class="dropdown svelte-1imtnoy"><button class="allegatibtn svelte-1imtnoy" aria-label="Visualizza allegati"> </button> <!></div>'), jv = /* @__PURE__ */ T('<div class="message-attachments"><!></div>');
9241
9241
  const Pv = {
9242
9242
  hash: "svelte-1imtnoy",
9243
9243
  code: ".dropdown.svelte-1imtnoy {position:relative;display:inline-block;}.allegatibtn.svelte-1imtnoy {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-1imtnoy:hover {background:#e9ecef;color:#295dcf;}.dropdown-content.svelte-1imtnoy {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;max-height:300px;overflow-y:auto;}.dropdown-option.svelte-1imtnoy {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.svelte-1imtnoy:disabled {cursor:wait;opacity:0.7;}.dropdown-option.common.svelte-1imtnoy {color:#8fa1c9;cursor:default;}.dropdown-option.svelte-1imtnoy:first-child {border-top-left-radius:8px;border-top-right-radius:8px;}.dropdown-option.svelte-1imtnoy:last-child {border-bottom-left-radius:8px;border-bottom-right-radius:8px;}.dropdown-option.svelte-1imtnoy:hover {background:#f8f9fa;color:#295dcf;}.dropdown-option.common.svelte-1imtnoy:hover {background:white;color:#8fa1c9;}.dropdown-option.svelte-1imtnoy i:where(.svelte-1imtnoy) {margin-right:10px;width:16px;text-align:center;}.dropdown-option.svelte-1imtnoy span:where(.svelte-1imtnoy) {font-size:14px;}.document-info.svelte-1imtnoy {display:flex;flex-direction:column;align-items:flex-start;}.document-title.svelte-1imtnoy {font-weight:500;margin-bottom:4px;text-align:left;}.document-path.svelte-1imtnoy {font-size:0.85em;color:#6c757d;text-align:left;}"
@@ -9280,22 +9280,22 @@ function Za(t, e) {
9280
9280
  var h = Lv(), m = C(h);
9281
9281
  m.__click = [wv, n];
9282
9282
  var b = C(m);
9283
- y(m);
9284
- var S = D(m, 2);
9283
+ z(m);
9284
+ var S = q(m, 2);
9285
9285
  {
9286
9286
  var $ = (_) => {
9287
9287
  var E = Rv();
9288
- Ye(E, 21, r, Ue, (q, w) => {
9289
- let z = () => p(w).filename, I = () => p(w).external_id, O = () => p(w).path, Y = () => p(w).gendoc_id, W = () => p(w).isCommon, he = () => p(w).commonType;
9288
+ Ye(E, 21, r, Ue, (D, w) => {
9289
+ let y = () => p(w).filename, I = () => p(w).external_id, O = () => p(w).path, U = () => p(w).gendoc_id, W = () => p(w).isCommon, he = () => p(w).commonType;
9290
9290
  var N = Av();
9291
- const le = /* @__PURE__ */ gt(() => z().split(".").pop()), Pe = /* @__PURE__ */ gt(() => z().includes(".") && p(le) !== z()), Fe = /* @__PURE__ */ gt(() => `${I()}-${z()}`);
9291
+ const le = /* @__PURE__ */ gt(() => y().split(".").pop()), Pe = /* @__PURE__ */ gt(() => y().includes(".") && p(le) !== y()), Fe = /* @__PURE__ */ gt(() => `${I()}-${y()}`);
9292
9292
  N.__click = [
9293
9293
  _v,
9294
9294
  W,
9295
9295
  a,
9296
9296
  I,
9297
- z,
9298
- Y,
9297
+ y,
9298
+ U,
9299
9299
  Pe,
9300
9300
  le,
9301
9301
  l,
@@ -9305,12 +9305,12 @@ function Za(t, e) {
9305
9305
  var Ne = C(N);
9306
9306
  {
9307
9307
  var ue = (_e) => {
9308
- var qe = xv();
9309
- k(_e, qe);
9308
+ var De = xv();
9309
+ k(_e, De);
9310
9310
  }, we = (_e) => {
9311
- var qe = be(), Ge = ge(qe);
9311
+ var De = be(), Je = ge(De);
9312
9312
  {
9313
- var U = (Q) => {
9313
+ var H = (Q) => {
9314
9314
  var J = yv();
9315
9315
  F(
9316
9316
  (X, pe) => {
@@ -9359,7 +9359,7 @@ function Za(t, e) {
9359
9359
  at,
9360
9360
  (Te) => {
9361
9361
  var Xe;
9362
- ((Xe = z().split(".").pop()) == null ? void 0 : Xe.toLowerCase()) === "akd" ? Te(ot) : Te(Me, !1);
9362
+ ((Xe = y().split(".").pop()) == null ? void 0 : Xe.toLowerCase()) === "akd" ? Te(ot) : Te(Me, !1);
9363
9363
  },
9364
9364
  !0
9365
9365
  );
@@ -9370,7 +9370,7 @@ function Za(t, e) {
9370
9370
  He,
9371
9371
  (je) => {
9372
9372
  var xe;
9373
- ((xe = z().split(".").pop()) == null ? void 0 : xe.toLowerCase()) === "pptx" ? je(Ve) : je(Jt, !1);
9373
+ ((xe = y().split(".").pop()) == null ? void 0 : xe.toLowerCase()) === "pptx" ? je(Ve) : je(Jt, !1);
9374
9374
  },
9375
9375
  !0
9376
9376
  );
@@ -9381,7 +9381,7 @@ function Za(t, e) {
9381
9381
  Z,
9382
9382
  (j) => {
9383
9383
  var ve;
9384
- ((ve = z().split(".").pop()) == null ? void 0 : ve.toLowerCase()) === "xlsx" ? j(Se) : j(Re, !1);
9384
+ ((ve = y().split(".").pop()) == null ? void 0 : ve.toLowerCase()) === "xlsx" ? j(Se) : j(Re, !1);
9385
9385
  },
9386
9386
  !0
9387
9387
  );
@@ -9392,7 +9392,7 @@ function Za(t, e) {
9392
9392
  Ae,
9393
9393
  (L) => {
9394
9394
  var V;
9395
- ((V = z().split(".").pop()) == null ? void 0 : V.toLowerCase()) === "docx" ? L(Oe) : L(A, !1);
9395
+ ((V = y().split(".").pop()) == null ? void 0 : V.toLowerCase()) === "docx" ? L(Oe) : L(A, !1);
9396
9396
  },
9397
9397
  !0
9398
9398
  );
@@ -9403,7 +9403,7 @@ function Za(t, e) {
9403
9403
  X,
9404
9404
  (Ee) => {
9405
9405
  var Ie;
9406
- ((Ie = z().split(".").pop()) == null ? void 0 : Ie.toLowerCase()) === "pdf" ? Ee(pe) : Ee($e, !1);
9406
+ ((Ie = y().split(".").pop()) == null ? void 0 : Ie.toLowerCase()) === "pdf" ? Ee(pe) : Ee($e, !1);
9407
9407
  },
9408
9408
  !0
9409
9409
  );
@@ -9411,54 +9411,54 @@ function Za(t, e) {
9411
9411
  k(Q, J);
9412
9412
  };
9413
9413
  B(
9414
- Ge,
9414
+ Je,
9415
9415
  (Q) => {
9416
- W() ? Q(U) : Q(G, !1);
9416
+ W() ? Q(H) : Q(G, !1);
9417
9417
  },
9418
9418
  !0
9419
9419
  );
9420
9420
  }
9421
- k(_e, qe);
9421
+ k(_e, De);
9422
9422
  };
9423
9423
  B(Ne, (_e) => {
9424
9424
  p(s)[p(Fe)] ? _e(ue) : _e(we, !1);
9425
9425
  });
9426
9426
  }
9427
- var ye = D(Ne, 2), Je = C(ye), pt = C(Je, !0);
9428
- y(Je);
9429
- var Ce = D(Je, 2);
9427
+ var ye = q(Ne, 2), We = C(ye), pt = C(We, !0);
9428
+ z(We);
9429
+ var Ce = q(We, 2);
9430
9430
  {
9431
9431
  var ze = (_e) => {
9432
- var qe = Iv(), Ge = C(qe), U = C(Ge, !0);
9433
- y(Ge), y(qe), F(() => Le(U, O() !== "" ? O() : "root /")), k(_e, qe);
9432
+ var De = Iv(), Je = C(De, !0);
9433
+ z(De), F(() => Le(Je, O() !== "" ? O() : "root /")), k(_e, De);
9434
9434
  };
9435
9435
  B(Ce, (_e) => {
9436
9436
  W() || _e(ze);
9437
9437
  });
9438
9438
  }
9439
- y(ye), y(N), F(
9440
- (_e, qe, Ge) => {
9441
- Be(N, `${`dropdown-option ${i() < 50 && he() !== "suite" ? "common" : ""}` ?? ""} svelte-1imtnoy`), M(N, "aria-label", _e), M(N, "title", qe), N.disabled = p(s)[p(Fe)], Le(pt, Ge);
9439
+ z(ye), z(N), F(
9440
+ (_e, De, Je) => {
9441
+ Be(N, `${`dropdown-option ${i() < 50 && he() !== "suite" ? "common" : ""}` ?? ""} svelte-1imtnoy`), M(N, "aria-label", _e), M(N, "title", De), N.disabled = p(s)[p(Fe)], Le(pt, Je);
9442
9442
  },
9443
9443
  [
9444
9444
  () => /* @__PURE__ */ rs(),
9445
9445
  () => `${W() ? pn(he()).name : /* @__PURE__ */ rs()}`,
9446
- () => W() ? z().split(".")[0] : z()
9446
+ () => W() ? y().split(".")[0] : y()
9447
9447
  ]
9448
- ), k(q, N);
9449
- }), y(E), k(_, E);
9448
+ ), k(D, N);
9449
+ }), z(E), k(_, E);
9450
9450
  };
9451
9451
  B(S, (_) => {
9452
9452
  n() && _($);
9453
9453
  });
9454
9454
  }
9455
- y(h), F((_) => Le(b, `${_ ?? ""} (${r().length ?? ""})`), [() => /* @__PURE__ */ ku()]), k(f, h);
9455
+ z(h), F((_) => Le(b, `${_ ?? ""} (${r().length ?? ""})`), [() => /* @__PURE__ */ ku()]), k(f, h);
9456
9456
  };
9457
9457
  B(u, (f) => {
9458
9458
  r().length > 0 && f(d);
9459
9459
  });
9460
9460
  }
9461
- return y(c), k(t, c), ee({
9461
+ return z(c), k(t, c), ee({
9462
9462
  get isDropdownOpen() {
9463
9463
  return n();
9464
9464
  },
@@ -9494,7 +9494,7 @@ ne(
9494
9494
  const Fv = (t, e, n) => {
9495
9495
  p(e).pause(), x(n, !1);
9496
9496
  };
9497
- var Ov = /* @__PURE__ */ T('<button aria-label="Pause message" class="btn btn-sm btn-primary aks-btn-rounded play-button svelte-1qmk846"><i class="fa-solid fa-pause"></i></button>'), Mv = (t, e, n) => e(p(n)), qv = /* @__PURE__ */ T('<button aria-label="Play message" class="btn btn-sm btn-primary aks-btn-rounded play-button svelte-1qmk846"><i class="fa-solid fa-play"></i></button>'), Dv = /* @__PURE__ */ T('<div><div class="message-plus-play svelte-1qmk846"><div><div class="message-content svelte-1qmk846"><!></div></div> <!></div> <!></div>'), Nv = /* @__PURE__ */ T('<div class="message-plus-play svelte-1qmk846"><div class="message-received svelte-1qmk846"><div class="message-content svelte-1qmk846"><!></div></div> <!></div>'), Bv = /* @__PURE__ */ T('<div class="loading svelte-1qmk846"><!></div>'), Uv = /* @__PURE__ */ T('<div class="alert alert-danger"> </div>'), Yv = /* @__PURE__ */ T('<div class="chat-body svelte-1qmk846"><div class="empty-placeholder svelte-1qmk846"></div> <!> <!> <!></div>');
9497
+ var Ov = /* @__PURE__ */ T('<button aria-label="Pause message" class="btn btn-sm btn-primary aks-btn-rounded play-button svelte-1qmk846"><i class="fa-solid fa-pause"></i></button>'), Mv = (t, e, n) => e(p(n)), Dv = /* @__PURE__ */ T('<button aria-label="Play message" class="btn btn-sm btn-primary aks-btn-rounded play-button svelte-1qmk846"><i class="fa-solid fa-play"></i></button>'), qv = /* @__PURE__ */ T('<div><div class="message-plus-play svelte-1qmk846"><div><div class="message-content svelte-1qmk846"><!></div></div> <!></div> <!></div>'), Nv = /* @__PURE__ */ T('<div class="message-plus-play svelte-1qmk846"><div class="message-received svelte-1qmk846"><div class="message-content svelte-1qmk846"><!></div></div> <!></div>'), Bv = /* @__PURE__ */ T('<div class="loading svelte-1qmk846"><!></div>'), Uv = /* @__PURE__ */ T('<div class="alert alert-danger"> </div>'), Yv = /* @__PURE__ */ T('<div class="chat-body svelte-1qmk846"><div class="empty-placeholder svelte-1qmk846"></div> <!> <!> <!></div>');
9498
9498
  const Hv = {
9499
9499
  hash: "svelte-1qmk846",
9500
9500
  code: `.empty-placeholder.svelte-1qmk846 {height:100%;}.chat-body.svelte-1qmk846 {display:flex;flex-direction:column;gap:10px;overflow-y:auto;height:100%;padding:10px;}.chat-body.svelte-1qmk846::-webkit-scrollbar {width:8px;}.chat-body.svelte-1qmk846::-webkit-scrollbar-track {background:rgba(255, 255, 255, 0.2); /* Sfondo semi-trasparente */border-radius:10px;}.chat-body.svelte-1qmk846::-webkit-scrollbar-thumb {background:rgba(\r
@@ -9510,8 +9510,8 @@ function Ga(t, e) {
9510
9510
  const f = async () => {
9511
9511
  await cl(), p(l) && (p(l).scrollTop = p(l).scrollHeight);
9512
9512
  }, h = (w) => {
9513
- $i.getAudio(w.content, a()).then((z) => {
9514
- x(c, P(new Audio(z))), p(c).play(), x(u, !0), p(c).onended = () => {
9513
+ $i.getAudio(w.content, a()).then((y) => {
9514
+ x(c, P(new Audio(y))), p(c).play(), x(u, !0), p(c).onended = () => {
9515
9515
  x(u, !1);
9516
9516
  };
9517
9517
  });
@@ -9519,34 +9519,34 @@ function Ga(t, e) {
9519
9519
  Ht(() => {
9520
9520
  s(), n(), f();
9521
9521
  });
9522
- var m = Yv(), b = D(C(m), 2);
9523
- Ye(b, 17, n, Ue, (w, z, I) => {
9524
- var O = Dv(), Y = C(O), W = C(Y), he = C(W), N = C(he);
9525
- ni(N, () => p(z).html ?? fe.parseInline(p(z).content), !1, !1), y(he), y(W);
9526
- var le = D(W, 2);
9522
+ var m = Yv(), b = q(C(m), 2);
9523
+ Ye(b, 17, n, Ue, (w, y, I) => {
9524
+ var O = qv(), U = C(O), W = C(U), he = C(W), N = C(he);
9525
+ ni(N, () => p(y).html ?? fe.parseInline(p(y).content), !1, !1), z(he), z(W);
9526
+ var le = q(W, 2);
9527
9527
  {
9528
9528
  var Pe = (ue) => {
9529
9529
  var we = be(), ye = ge(we);
9530
9530
  {
9531
- var Je = (Ce) => {
9531
+ var We = (Ce) => {
9532
9532
  var ze = Ov();
9533
9533
  ze.__click = [Fv, c, u], F((_e) => M(ze, "title", _e), [() => /* @__PURE__ */ Su()]), k(Ce, ze);
9534
9534
  }, pt = (Ce) => {
9535
- var ze = qv();
9536
- ze.__click = [Mv, h, z], F((_e) => M(ze, "title", _e), [() => /* @__PURE__ */ $u()]), k(Ce, ze);
9535
+ var ze = Dv();
9536
+ ze.__click = [Mv, h, y], F((_e) => M(ze, "title", _e), [() => /* @__PURE__ */ $u()]), k(Ce, ze);
9537
9537
  };
9538
9538
  B(ye, (Ce) => {
9539
- p(u) ? Ce(Je) : Ce(pt, !1);
9539
+ p(u) ? Ce(We) : Ce(pt, !1);
9540
9540
  });
9541
9541
  }
9542
9542
  k(ue, we);
9543
9543
  };
9544
9544
  B(le, (ue) => {
9545
- p(z).content != "" && !p(z).sentByUser && ue(Pe);
9545
+ p(y).content != "" && !p(y).sentByUser && ue(Pe);
9546
9546
  });
9547
9547
  }
9548
- y(Y);
9549
- var Fe = D(Y, 2);
9548
+ z(U);
9549
+ var Fe = q(U, 2);
9550
9550
  {
9551
9551
  var Ne = (ue) => {
9552
9552
  Za(ue, {
@@ -9554,10 +9554,10 @@ function Ga(t, e) {
9554
9554
  return p(d);
9555
9555
  },
9556
9556
  get attachmentList() {
9557
- return p(z).attachments;
9557
+ return p(y).attachments;
9558
9558
  },
9559
9559
  set attachmentList(we) {
9560
- p(z).attachments = we;
9560
+ p(y).attachments = we;
9561
9561
  },
9562
9562
  get userLevel() {
9563
9563
  return o();
@@ -9568,17 +9568,17 @@ function Ga(t, e) {
9568
9568
  });
9569
9569
  };
9570
9570
  B(Fe, (ue) => {
9571
- p(z).attachments && p(z).attachments.length > 0 && p(z).sentByUser == !1 && ue(Ne);
9571
+ p(y).attachments && p(y).attachments.length > 0 && p(y).sentByUser == !1 && ue(Ne);
9572
9572
  });
9573
9573
  }
9574
- y(O), F(() => Be(W, Xn(p(z).sentByUser ? "message-sent" : "message-received"), "svelte-1qmk846")), k(w, O);
9574
+ z(O), F(() => Be(W, Xn(p(y).sentByUser ? "message-sent" : "message-received"), "svelte-1qmk846")), k(w, O);
9575
9575
  });
9576
- var S = D(b, 2);
9576
+ var S = q(b, 2);
9577
9577
  {
9578
9578
  var $ = (w) => {
9579
- var z = Nv(), I = C(z), O = C(I), Y = C(O);
9580
- ni(Y, s, !1, !1), y(O), y(I);
9581
- var W = D(I, 2);
9579
+ var y = Nv(), I = C(y), O = C(I), U = C(O);
9580
+ ni(U, s, !1, !1), z(O), z(I);
9581
+ var W = q(I, 2);
9582
9582
  {
9583
9583
  var he = (N) => {
9584
9584
  Zn(N, {
@@ -9592,44 +9592,44 @@ function Ga(t, e) {
9592
9592
  r() && N(he);
9593
9593
  });
9594
9594
  }
9595
- y(z), k(w, z);
9595
+ z(y), k(w, y);
9596
9596
  }, _ = (w) => {
9597
- var z = be(), I = ge(z);
9597
+ var y = be(), I = ge(y);
9598
9598
  {
9599
- var O = (Y) => {
9599
+ var O = (U) => {
9600
9600
  var W = Bv(), he = C(W);
9601
9601
  Zn(he, {
9602
9602
  icon: "svg-spinners:3-dots-bounce",
9603
9603
  width: "25px",
9604
9604
  height: "25px",
9605
9605
  color: "white"
9606
- }), y(W), k(Y, W);
9606
+ }), z(W), k(U, W);
9607
9607
  };
9608
9608
  B(
9609
9609
  I,
9610
- (Y) => {
9611
- r() && Y(O);
9610
+ (U) => {
9611
+ r() && U(O);
9612
9612
  },
9613
9613
  !0
9614
9614
  );
9615
9615
  }
9616
- k(w, z);
9616
+ k(w, y);
9617
9617
  };
9618
9618
  B(S, (w) => {
9619
9619
  s().length > 0 ? w($) : w(_, !1);
9620
9620
  });
9621
9621
  }
9622
- var E = D(S, 2);
9622
+ var E = q(S, 2);
9623
9623
  {
9624
- var q = (w) => {
9625
- var z = Uv(), I = C(z, !0);
9626
- y(z), F(() => Le(I, i())), k(w, z);
9624
+ var D = (w) => {
9625
+ var y = Uv(), I = C(y, !0);
9626
+ z(y), F(() => Le(I, i())), k(w, y);
9627
9627
  };
9628
9628
  B(E, (w) => {
9629
- i() != "" && w(q);
9629
+ i() != "" && w(D);
9630
9630
  });
9631
9631
  }
9632
- return y(m), ha(m, (w) => x(l, w), () => p(l)), _n(3, m, () => Ar, () => ({ duration: 300, delay: 100 })), k(t, m), ee({
9632
+ return z(m), ha(m, (w) => x(l, w), () => p(l)), _n(3, m, () => Ar, () => ({ duration: 300, delay: 100 })), k(t, m), ee({
9633
9633
  get messages() {
9634
9634
  return n();
9635
9635
  },
@@ -9684,10 +9684,10 @@ ne(
9684
9684
  !0
9685
9685
  );
9686
9686
  const Zv = async (t) => {
9687
- const e = await fetch(`${H.getUrl()}/chat/${t}`, {
9687
+ const e = await fetch(`${Y.getUrl()}/chat/${t}`, {
9688
9688
  headers: {
9689
- akstoken: H.getToken(),
9690
- envid: H.getEnvironmentId(),
9689
+ akstoken: Y.getToken(),
9690
+ envid: Y.getEnvironmentId(),
9691
9691
  "ngrok-skip-browser-warning": "true"
9692
9692
  }
9693
9693
  });
@@ -9696,10 +9696,10 @@ const Zv = async (t) => {
9696
9696
  const n = await e.json();
9697
9697
  return tn.fromJson(n);
9698
9698
  }, Gv = async () => {
9699
- const t = await fetch(`${H.getUrl()}/chat`, {
9699
+ const t = await fetch(`${Y.getUrl()}/chat`, {
9700
9700
  headers: {
9701
- akstoken: H.getToken(),
9702
- envid: H.getEnvironmentId(),
9701
+ akstoken: Y.getToken(),
9702
+ envid: Y.getEnvironmentId(),
9703
9703
  "ngrok-skip-browser-warning": "true"
9704
9704
  }
9705
9705
  });
@@ -9707,11 +9707,11 @@ const Zv = async (t) => {
9707
9707
  throw new Error("Failed to fetch chats");
9708
9708
  return (await t.json()).map((n) => tn.fromJson(n));
9709
9709
  }, Wv = async () => {
9710
- const t = await fetch(`${H.getUrl()}/chat`, {
9710
+ const t = await fetch(`${Y.getUrl()}/chat`, {
9711
9711
  method: "POST",
9712
9712
  headers: {
9713
- akstoken: H.getToken(),
9714
- envid: H.getEnvironmentId(),
9713
+ akstoken: Y.getToken(),
9714
+ envid: Y.getEnvironmentId(),
9715
9715
  "ngrok-skip-browser-warning": "true"
9716
9716
  }
9717
9717
  });
@@ -9723,7 +9723,7 @@ const Zv = async (t) => {
9723
9723
  let l, c = !1;
9724
9724
  try {
9725
9725
  await Wa(t, e, i);
9726
- const d = H.getUrl().replace(/^http/, "ws"), f = `${n ? "forge/" : ""}chat/${t}/message${r ? "?kb=true" : "?collectionName=" + n}`, h = f.includes("?") ? "&" : "?", m = `${d}/${f}${h}akstoken=${H.getToken()}&envid=${H.getEnvironmentId()}`;
9726
+ const d = Y.getUrl().replace(/^http/, "ws"), f = `${n ? "forge/" : ""}chat/${t}/message${r ? "?kb=true" : "?collectionName=" + n}`, h = f.includes("?") ? "&" : "?", m = `${d}/${f}${h}akstoken=${Y.getToken()}&envid=${Y.getEnvironmentId()}`;
9727
9727
  l = new WebSocket(m), o && o.addEventListener("abort", () => {
9728
9728
  l && l.readyState === WebSocket.OPEN && (l.close(), c = !0);
9729
9729
  }), await new Promise((b, S) => {
@@ -9757,34 +9757,34 @@ const Zv = async (t) => {
9757
9757
  }
9758
9758
  return c;
9759
9759
  }, Vv = async (t, e) => {
9760
- if (!(await fetch(`${H.getUrl()}/chat/${t}/title`, {
9760
+ if (!(await fetch(`${Y.getUrl()}/chat/${t}/title`, {
9761
9761
  method: "POST",
9762
9762
  headers: {
9763
9763
  "Content-Type": "application/json",
9764
- akstoken: H.getToken(),
9765
- envid: H.getEnvironmentId(),
9764
+ akstoken: Y.getToken(),
9765
+ envid: Y.getEnvironmentId(),
9766
9766
  "ngrok-skip-browser-warning": "true"
9767
9767
  },
9768
9768
  body: JSON.stringify({ title: e })
9769
9769
  })).ok)
9770
9770
  throw new Error("Failed to change title");
9771
9771
  }, Xv = async (t) => {
9772
- if (!(await fetch(`${H.getUrl()}/chat/${t}`, {
9772
+ if (!(await fetch(`${Y.getUrl()}/chat/${t}`, {
9773
9773
  method: "DELETE",
9774
9774
  headers: {
9775
- akstoken: H.getToken(),
9776
- envid: H.getEnvironmentId(),
9775
+ akstoken: Y.getToken(),
9776
+ envid: Y.getEnvironmentId(),
9777
9777
  "ngrok-skip-browser-warning": "true"
9778
9778
  }
9779
9779
  })).ok)
9780
9780
  throw new Error("Failed to delete chat");
9781
9781
  }, Wa = async (t, e, n) => {
9782
- if (!(await fetch(`${H.getUrl()}/chat/${t}/message`, {
9782
+ if (!(await fetch(`${Y.getUrl()}/chat/${t}/message`, {
9783
9783
  method: "POST",
9784
9784
  headers: {
9785
9785
  "Content-Type": "application/json",
9786
- akstoken: H.getToken(),
9787
- envid: H.getEnvironmentId(),
9786
+ akstoken: Y.getToken(),
9787
+ envid: Y.getEnvironmentId(),
9788
9788
  "ngrok-skip-browser-warning": "true"
9789
9789
  },
9790
9790
  body: JSON.stringify({
@@ -9828,24 +9828,24 @@ function Ja(t, e) {
9828
9828
  {
9829
9829
  var d = (f) => {
9830
9830
  var h = tg(), m = C(h), b = C(m, !0);
9831
- y(m);
9832
- var S = D(m, 2);
9831
+ z(m);
9832
+ var S = q(m, 2);
9833
9833
  Ye(S, 21, i, Ue, ($, _) => {
9834
- var E = eg(), q = C(E);
9835
- q.__click = [Qv, r, _, o];
9836
- var w = C(q), z = C(w, !0);
9837
- y(w), y(q);
9838
- var I = D(q, 2);
9839
- I.__click = [Kv, l, _], y(E), F(() => {
9840
- M(E, "style", r()._id === p(_)._id ? "background: #295dcf; cursor: default;" : ""), Le(z, p(_).title);
9834
+ var E = eg(), D = C(E);
9835
+ D.__click = [Qv, r, _, o];
9836
+ var w = C(D), y = C(w, !0);
9837
+ z(w), z(D);
9838
+ var I = q(D, 2);
9839
+ I.__click = [Kv, l, _], z(E), F(() => {
9840
+ M(E, "style", r()._id === p(_)._id ? "background: #295dcf; cursor: default;" : ""), Le(y, p(_).title);
9841
9841
  }), k($, E);
9842
- }), y(S), y(h), F(($) => Le(b, $), [() => /* @__PURE__ */ ka()]), _n(3, h, () => Hl, () => ({ duration: 600 })), k(f, h);
9842
+ }), z(S), z(h), F(($) => Le(b, $), [() => /* @__PURE__ */ ka()]), _n(3, h, () => Hl, () => ({ duration: 600 })), k(f, h);
9843
9843
  };
9844
9844
  B(u, (f) => {
9845
9845
  n() && f(d);
9846
9846
  });
9847
9847
  }
9848
- return y(c), k(t, c), ee({
9848
+ return z(c), k(t, c), ee({
9849
9849
  get showHistory() {
9850
9850
  return n();
9851
9851
  },
@@ -9903,21 +9903,21 @@ const hg = {
9903
9903
  function Va(t, e) {
9904
9904
  K(e, !0), se(t, hg);
9905
9905
  let n = re(!1), r = re(!1), i = re("it"), s = re(""), a = re(0), o = re(null), l = re(P([])), c = re(P([])), u = re(!1), d = re(!0), f = re(P(new Audio())), h = re(!0), m = re(""), b = re(""), S = re(null);
9906
- const $ = (U) => {
9907
- x(b, p(b) + U);
9906
+ const $ = (H) => {
9907
+ x(b, p(b) + H);
9908
9908
  };
9909
- let _ = re(""), E = re(!0), q = re(P({})), w = re(!0), z = re(!1);
9909
+ let _ = re(""), E = re(!0), D = re(P({})), w = re(!0), y = re(!1);
9910
9910
  Ht(() => {
9911
- p(z) && H.setForgeButtonsPinned(p(w));
9911
+ p(y) && Y.setForgeButtonsPinned(p(w));
9912
9912
  });
9913
- const I = async (U, G, Q, J = []) => {
9913
+ const I = async (H, G, Q, J = []) => {
9914
9914
  if (x(m, ""), x(u, !0), x(c, P([
9915
9915
  ...p(c),
9916
- new Yt((/* @__PURE__ */ new Date()).getTime(), !0, U, U)
9916
+ new Yt((/* @__PURE__ */ new Date()).getTime(), !0, H, H)
9917
9917
  ])), p(c).length == 2 && (x(o, P(await Fn.newChat())), x(l, P([...p(l), p(o)])), p(o).messages = p(c)), p(o)) {
9918
9918
  x(S, P(new AbortController()));
9919
9919
  try {
9920
- let X = await Fn.sendMessage(p(o)._id, U, G, Q, J, $, p(i), p(S).signal);
9920
+ let X = await Fn.sendMessage(p(o)._id, H, G, Q, J, $, p(i), p(S).signal);
9921
9921
  if (console.log(X), X) {
9922
9922
  x(c, P([
9923
9923
  ...p(c),
@@ -9950,9 +9950,9 @@ function Va(t, e) {
9950
9950
  Ht(() => {
9951
9951
  p(h) && p(f).pause();
9952
9952
  });
9953
- const Y = () => {
9954
- p(n) && Fn.getChats().then((U) => {
9955
- x(l, P(U.sort((G, Q) => {
9953
+ const U = () => {
9954
+ p(n) && Fn.getChats().then((H) => {
9955
+ x(l, P(H.sort((G, Q) => {
9956
9956
  if (G.messages.length === 0 && Q.messages.length === 0) return 0;
9957
9957
  if (G.messages.length === 0) return 1;
9958
9958
  if (Q.messages.length === 0) return -1;
@@ -9962,13 +9962,13 @@ function Va(t, e) {
9962
9962
  });
9963
9963
  };
9964
9964
  Ht(() => {
9965
- p(o) && x(c, P(p(o).messages)), Y();
9965
+ p(o) && x(c, P(p(o).messages)), U();
9966
9966
  });
9967
9967
  let W = !1, he, N, le, Pe;
9968
- function Fe(U) {
9969
- const G = U.target;
9968
+ function Fe(H) {
9969
+ const G = H.target;
9970
9970
  if (G.closest(".resize-handle") || G.classList.contains("resize-border-left") || G.classList.contains("resize-border-top")) {
9971
- U.preventDefault(), U.stopPropagation(), W = !0, he = U.clientX, N = U.clientY;
9971
+ H.preventDefault(), H.stopPropagation(), W = !0, he = H.clientX, N = H.clientY;
9972
9972
  const J = document.querySelector(".chat");
9973
9973
  le = J.offsetWidth, Pe = J.offsetHeight, J.classList.add("no-select");
9974
9974
  const X = G.closest(".resize-handle"), pe = G.classList.contains("resize-border-left"), $e = G.classList.contains("resize-border-top"), Ee = (Ae) => {
@@ -10003,25 +10003,25 @@ function Va(t, e) {
10003
10003
  x(o, P(new tn("", "", "", /* @__PURE__ */ ba(), [
10004
10004
  Yt.firstMessage(p(i), p(s), p(_))
10005
10005
  ]))), x(m, "");
10006
- }, we = (U) => {
10007
- p(_) !== U && (x(E, !1), x(_, P(U)), ue()), Ne(), x(q, P({}));
10006
+ }, we = (H) => {
10007
+ p(_) !== H && (x(E, !1), x(_, P(H)), ue()), Ne(), x(D, P({}));
10008
10008
  };
10009
10009
  Ir(async () => {
10010
10010
  try {
10011
10011
  x(i, P(ie()));
10012
- const U = await Gt.getUsername();
10013
- x(s, P(U));
10012
+ const H = await Gt.getUsername();
10013
+ x(s, P(H));
10014
10014
  const G = await Gt.getUserLevel();
10015
10015
  x(a, P(G));
10016
10016
  const Q = Yt.firstMessage(p(i), p(s), p(_));
10017
- x(c, P([Q])), x(o, P(new tn("", "", "", "New Chat", [Q]))), x(w, P(H.getForgeButtonsPinned())), x(z, !0), x(d, !1);
10018
- } catch (U) {
10019
- console.error("Failed to load username", U), x(m, P(/* @__PURE__ */ Eu())), x(d, !1);
10017
+ x(c, P([Q])), x(o, P(new tn("", "", "", "New Chat", [Q]))), x(w, P(Y.getForgeButtonsPinned())), x(y, !0), x(d, !1);
10018
+ } catch (H) {
10019
+ console.error("Failed to load username", H), x(m, P(/* @__PURE__ */ Eu())), x(d, !1);
10020
10020
  }
10021
10021
  });
10022
- var ye = fg(), Je = C(ye);
10022
+ var ye = fg(), We = C(ye);
10023
10023
  {
10024
- var pt = (U) => {
10024
+ var pt = (H) => {
10025
10025
  var G = og();
10026
10026
  G.__mousedown = Fe;
10027
10027
  var Q = C(G);
@@ -10033,7 +10033,7 @@ function Va(t, e) {
10033
10033
  width: "50px",
10034
10034
  height: "50px",
10035
10035
  color: "white"
10036
- }), y($e), k(pe, $e);
10036
+ }), z($e), k(pe, $e);
10037
10037
  }, X = (pe) => {
10038
10038
  var $e = be(), Ee = ge($e);
10039
10039
  {
@@ -10066,7 +10066,7 @@ function Va(t, e) {
10066
10066
  x(m, P(j));
10067
10067
  }
10068
10068
  });
10069
- var L = D(A, 6), V = C(L);
10069
+ var L = q(A, 6), V = C(L);
10070
10070
  Zn(V, {
10071
10071
  icon: "hugeicons:resize-field",
10072
10072
  width: "25px",
@@ -10075,8 +10075,8 @@ function Va(t, e) {
10075
10075
  vFlip: !0,
10076
10076
  color: "white",
10077
10077
  style: "margin: 2px 0 0 2px;"
10078
- }), y(L);
10079
- var Z = D(L, 2);
10078
+ }), z(L);
10079
+ var Z = q(L, 2);
10080
10080
  _a(Z, {
10081
10081
  newChat: ue,
10082
10082
  get show() {
@@ -10122,7 +10122,7 @@ function Va(t, e) {
10122
10122
  x(m, P(j));
10123
10123
  }
10124
10124
  });
10125
- var Se = D(Z, 2);
10125
+ var Se = q(Z, 2);
10126
10126
  Ga(Se, {
10127
10127
  get messages() {
10128
10128
  return p(c);
@@ -10161,7 +10161,7 @@ function Va(t, e) {
10161
10161
  x(a, P(j));
10162
10162
  }
10163
10163
  });
10164
- var Re = D(Se, 2);
10164
+ var Re = q(Se, 2);
10165
10165
  ya(Re, {
10166
10166
  sendMessage: I,
10167
10167
  stopMessage: O,
@@ -10190,10 +10190,10 @@ function Va(t, e) {
10190
10190
  x(E, P(j));
10191
10191
  },
10192
10192
  get attachments() {
10193
- return p(q);
10193
+ return p(D);
10194
10194
  },
10195
10195
  set attachments(j) {
10196
- x(q, P(j));
10196
+ x(D, P(j));
10197
10197
  }
10198
10198
  }), k(Ae, Oe);
10199
10199
  };
@@ -10211,36 +10211,36 @@ function Va(t, e) {
10211
10211
  p(d) ? pe(J) : pe(X, !1);
10212
10212
  });
10213
10213
  }
10214
- y(G), _n(3, G, () => Yl, () => ({ y: 50, duration: 500 })), k(U, G);
10214
+ z(G), _n(3, G, () => Yl, () => ({ y: 50, duration: 500 })), k(H, G);
10215
10215
  };
10216
- B(Je, (U) => {
10217
- p(n) && U(pt);
10216
+ B(We, (H) => {
10217
+ p(n) && H(pt);
10218
10218
  });
10219
10219
  }
10220
- var Ce = D(Je, 2);
10220
+ var Ce = q(We, 2);
10221
10221
  Ce.__click = [
10222
10222
  ig,
10223
10223
  E,
10224
10224
  _,
10225
10225
  ue,
10226
10226
  Ne,
10227
- q
10227
+ D
10228
10228
  ];
10229
- var ze = D(C(Ce)), _e = C(ze, !0);
10230
- y(ze), y(Ce);
10231
- var qe = D(Ce, 2);
10229
+ var ze = q(C(Ce)), _e = C(ze, !0);
10230
+ z(ze), z(Ce);
10231
+ var De = q(Ce, 2);
10232
10232
  {
10233
- var Ge = (U) => {
10233
+ var Je = (H) => {
10234
10234
  var G = dg(), Q = C(G);
10235
10235
  Q.__click = [lg, w];
10236
- var J = D(Q, 2), X = C(J), pe = C(X, !0);
10237
- y(X);
10238
- var $e = D(X, 2);
10239
- $e.__click = [cg, we], y(J);
10240
- var Ee = D(J, 2), Ie = C(Ee), Ae = C(Ie, !0);
10241
- y(Ie);
10242
- var Oe = D(Ie, 2);
10243
- Oe.__click = [ug, we], y(Ee), y(G), F(
10236
+ var J = q(Q, 2), X = C(J), pe = C(X, !0);
10237
+ z(X);
10238
+ var $e = q(X, 2);
10239
+ $e.__click = [cg, we], z(J);
10240
+ var Ee = q(J, 2), Ie = C(Ee), Ae = C(Ie, !0);
10241
+ z(Ie);
10242
+ var Oe = q(Ie, 2);
10243
+ Oe.__click = [ug, we], z(Ee), z(G), F(
10244
10244
  (A, L) => {
10245
10245
  te(G, "visible", p(w)), M(Q, "aria-label", p(w) ? "unpin forge buttons" : "pin forge buttons"), te(Q, "pinned", p(w)), Le(pe, A), Le(Ae, L);
10246
10246
  },
@@ -10248,15 +10248,15 @@ function Va(t, e) {
10248
10248
  () => /* @__PURE__ */ ga(),
10249
10249
  () => /* @__PURE__ */ wa()
10250
10250
  ]
10251
- ), _n(3, G, () => Ar), k(U, G);
10251
+ ), _n(3, G, () => Ar), k(H, G);
10252
10252
  };
10253
- B(qe, (U) => {
10254
- p(n) || U(Ge);
10253
+ B(De, (H) => {
10254
+ p(n) || H(Je);
10255
10255
  });
10256
10256
  }
10257
- y(ye), F(
10258
- (U) => {
10259
- Be(Ce, `${`btn ${p(n) ? "aks-btn-answer" : "btn-primary"}` ?? ""} svelte-1hgblks`), Le(_e, U);
10257
+ z(ye), F(
10258
+ (H) => {
10259
+ Be(Ce, `${`btn ${p(n) ? "aks-btn-answer" : "btn-primary"}` ?? ""} svelte-1hgblks`), Le(_e, H);
10260
10260
  },
10261
10261
  [() => /* @__PURE__ */ au()]
10262
10262
  ), k(t, ye), ee();