akpm-knowledge-base-chat 2.0.42 → 2.0.43

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 +1019 -1018
  2. package/package.json +1 -1
package/CDN/akb-chat.js CHANGED
@@ -1,4 +1,4 @@
1
- /* Version: 2.0.42 */
1
+ /* Version: 2.0.43 */
2
2
  var jo = Object.defineProperty;
3
3
  var ci = (t) => {
4
4
  throw TypeError(t);
@@ -234,45 +234,45 @@ function T(t, e = null, n) {
234
234
  /** @type {any} */
235
235
  t,
236
236
  {
237
- defineProperty(c, l, u) {
237
+ defineProperty(l, c, u) {
238
238
  (!("value" in u) || u.configurable === !1 || u.enumerable === !1 || u.writable === !1) && pl();
239
- var f = s.get(l);
240
- return f === void 0 ? (f = mt(u.value), s.set(l, f)) : g(f, T(u.value, o)), !0;
239
+ var f = s.get(c);
240
+ return f === void 0 ? (f = mt(u.value), s.set(c, f)) : g(f, T(u.value, o)), !0;
241
241
  },
242
- deleteProperty(c, l) {
243
- var u = s.get(l);
242
+ deleteProperty(l, c) {
243
+ var u = s.get(c);
244
244
  if (u === void 0)
245
- l in c && s.set(l, mt(gt));
245
+ c in l && s.set(c, mt(gt));
246
246
  else {
247
- if (i && typeof l == "string") {
247
+ if (i && typeof c == "string") {
248
248
  var f = (
249
249
  /** @type {Source<number>} */
250
250
  s.get("length")
251
- ), h = Number(l);
251
+ ), h = Number(c);
252
252
  Number.isInteger(h) && h < f.v && g(f, h);
253
253
  }
254
254
  g(u, gt), di(a);
255
255
  }
256
256
  return !0;
257
257
  },
258
- get(c, l, u) {
258
+ get(l, c, u) {
259
259
  var b;
260
- if (l === Qt)
260
+ if (c === Qt)
261
261
  return t;
262
- var f = s.get(l), h = l in c;
263
- if (f === void 0 && (!h || (b = gn(c, l)) != null && b.writable) && (f = mt(T(h ? c[l] : gt, o)), s.set(l, f)), f !== void 0) {
262
+ var f = s.get(c), h = c in l;
263
+ if (f === void 0 && (!h || (b = gn(l, c)) != null && b.writable) && (f = mt(T(h ? l[c] : gt, o)), s.set(c, f)), f !== void 0) {
264
264
  var p = d(f);
265
265
  return p === gt ? void 0 : p;
266
266
  }
267
- return Reflect.get(c, l, u);
267
+ return Reflect.get(l, c, u);
268
268
  },
269
- getOwnPropertyDescriptor(c, l) {
270
- var u = Reflect.getOwnPropertyDescriptor(c, l);
269
+ getOwnPropertyDescriptor(l, c) {
270
+ var u = Reflect.getOwnPropertyDescriptor(l, c);
271
271
  if (u && "value" in u) {
272
- var f = s.get(l);
272
+ var f = s.get(c);
273
273
  f && (u.value = d(f));
274
274
  } else if (u === void 0) {
275
- var h = s.get(l), p = h == null ? void 0 : h.v;
275
+ var h = s.get(c), p = h == null ? void 0 : h.v;
276
276
  if (h !== void 0 && p !== gt)
277
277
  return {
278
278
  enumerable: !0,
@@ -283,51 +283,51 @@ function T(t, e = null, n) {
283
283
  }
284
284
  return u;
285
285
  },
286
- has(c, l) {
286
+ has(l, c) {
287
287
  var p;
288
- if (l === Qt)
288
+ if (c === Qt)
289
289
  return !0;
290
- var u = s.get(l), f = u !== void 0 && u.v !== gt || Reflect.has(c, l);
291
- if (u !== void 0 || ye !== null && (!f || (p = gn(c, l)) != null && p.writable)) {
292
- u === void 0 && (u = mt(f ? T(c[l], o) : gt), s.set(l, u));
290
+ var u = s.get(c), f = u !== void 0 && u.v !== gt || Reflect.has(l, c);
291
+ if (u !== void 0 || ye !== null && (!f || (p = gn(l, c)) != null && p.writable)) {
292
+ u === void 0 && (u = mt(f ? T(l[c], o) : gt), s.set(c, u));
293
293
  var h = d(u);
294
294
  if (h === gt)
295
295
  return !1;
296
296
  }
297
297
  return f;
298
298
  },
299
- set(c, l, u, f) {
300
- var I;
301
- var h = s.get(l), p = l in c;
302
- if (i && l === "length")
299
+ set(l, c, u, f) {
300
+ var S;
301
+ var h = s.get(c), p = c in l;
302
+ if (i && c === "length")
303
303
  for (var b = u; b < /** @type {Source<number>} */
304
304
  h.v; b += 1) {
305
305
  var w = s.get(b + "");
306
- w !== void 0 ? g(w, gt) : b in c && (w = mt(gt), s.set(b + "", w));
306
+ w !== void 0 ? g(w, gt) : b in l && (w = mt(gt), s.set(b + "", w));
307
307
  }
308
- h === void 0 ? (!p || (I = gn(c, l)) != null && I.writable) && (h = mt(void 0), g(h, T(u, o)), s.set(l, h)) : (p = h.v !== gt, g(h, T(u, o)));
309
- var E = Reflect.getOwnPropertyDescriptor(c, l);
310
- if (E != null && E.set && E.set.call(f, u), !p) {
311
- if (i && typeof l == "string") {
312
- var _ = (
308
+ h === void 0 ? (!p || (S = gn(l, c)) != null && S.writable) && (h = mt(void 0), g(h, T(u, o)), s.set(c, h)) : (p = h.v !== gt, g(h, T(u, o)));
309
+ var I = Reflect.getOwnPropertyDescriptor(l, c);
310
+ if (I != null && I.set && I.set.call(f, u), !p) {
311
+ if (i && typeof c == "string") {
312
+ var k = (
313
313
  /** @type {Source<number>} */
314
314
  s.get("length")
315
- ), k = Number(l);
316
- Number.isInteger(k) && k >= _.v && g(_, k + 1);
315
+ ), _ = Number(c);
316
+ Number.isInteger(_) && _ >= k.v && g(k, _ + 1);
317
317
  }
318
318
  di(a);
319
319
  }
320
320
  return !0;
321
321
  },
322
- ownKeys(c) {
322
+ ownKeys(l) {
323
323
  d(a);
324
- var l = Reflect.ownKeys(c).filter((h) => {
324
+ var c = Reflect.ownKeys(l).filter((h) => {
325
325
  var p = s.get(h);
326
326
  return p === void 0 || p.v !== gt;
327
327
  });
328
328
  for (var [u, f] of s)
329
- f.v !== gt && !(u in c) && l.push(u);
330
- return l;
329
+ f.v !== gt && !(u in l) && c.push(u);
330
+ return c;
331
331
  },
332
332
  setPrototypeOf() {
333
333
  gl();
@@ -519,13 +519,13 @@ function xn(t, e, n, r = !0) {
519
519
  pi(o);
520
520
  }
521
521
  } else e !== null && Gr(a);
522
- var c = n && a.deps === null && a.first === null && a.nodes_start === null && a.teardown === null && (a.f & (ra | xr)) === 0;
523
- if (!c && !s && r && (i !== null && xl(a, i), Ne !== null && Ne.f & It)) {
524
- var l = (
522
+ var l = n && a.deps === null && a.first === null && a.nodes_start === null && a.teardown === null && (a.f & (ra | xr)) === 0;
523
+ if (!l && !s && r && (i !== null && xl(a, i), Ne !== null && Ne.f & It)) {
524
+ var c = (
525
525
  /** @type {Derived} */
526
526
  Ne
527
527
  );
528
- (l.children ?? (l.children = [])).push(a);
528
+ (c.children ?? (c.children = [])).push(a);
529
529
  }
530
530
  return a;
531
531
  }
@@ -656,8 +656,8 @@ function Bt(t, e = !0) {
656
656
  ba(t, e && !n), ma(t), Xn(t, 0), Rt(t, Ln);
657
657
  var a = t.transitions;
658
658
  if (a !== null)
659
- for (const c of a)
660
- c.stop();
659
+ for (const l of a)
660
+ l.stop();
661
661
  va(t);
662
662
  var o = t.parent;
663
663
  o !== null && o.first !== null && wa(t), t.next = t.prev = t.teardown = t.ctx = t.deps = t.fn = t.nodes_start = t.nodes_end = null;
@@ -764,20 +764,20 @@ function rr() {
764
764
  return !jn || Re !== null && Re.l === null;
765
765
  }
766
766
  function Pn(t) {
767
- var l;
767
+ var c;
768
768
  var e = t.f;
769
769
  if (e & Kt)
770
770
  return !0;
771
771
  if (e & kn) {
772
772
  var n = t.deps, r = (e & _n) !== 0;
773
773
  if (n !== null) {
774
- var s, i, a = (e & yr) !== 0, o = r && ye !== null && !pn, c = n.length;
774
+ var s, i, a = (e & yr) !== 0, o = r && ye !== null && !pn, l = n.length;
775
775
  if (a || o) {
776
- for (s = 0; s < c; s++)
777
- i = n[s], (a || !((l = i == null ? void 0 : i.reactions) != null && l.includes(t))) && (i.reactions ?? (i.reactions = [])).push(t);
776
+ for (s = 0; s < l; s++)
777
+ i = n[s], (a || !((c = i == null ? void 0 : i.reactions) != null && c.includes(t))) && (i.reactions ?? (i.reactions = [])).push(t);
778
778
  a && (t.f ^= yr);
779
779
  }
780
- for (s = 0; s < c; s++)
780
+ for (s = 0; s < l; s++)
781
781
  if (i = n[s], Pn(
782
782
  /** @type {Derived} */
783
783
  i
@@ -837,9 +837,9 @@ function Ea(t, e, n = 0) {
837
837
  }
838
838
  function Ia(t) {
839
839
  var p;
840
- var e = bt, n = zt, r = Gt, s = Ne, i = pn, a = qt, o = Re, c = on, l = t.f;
840
+ var e = bt, n = zt, r = Gt, s = Ne, i = pn, a = qt, o = Re, l = on, c = t.f;
841
841
  bt = /** @type {null | Value[]} */
842
- null, zt = 0, Gt = null, Ne = l & (Yt | wn) ? null : t, pn = !En && (l & _n) !== 0, qt = null, Re = t.ctx, on = !1, Ir++;
842
+ null, zt = 0, Gt = null, Ne = c & (Yt | wn) ? null : t, pn = !En && (c & _n) !== 0, qt = null, Re = t.ctx, on = !1, Ir++;
843
843
  try {
844
844
  var u = (
845
845
  /** @type {Function} */
@@ -866,7 +866,7 @@ function Ia(t) {
866
866
  );
867
867
  return s !== null && Ir++, u;
868
868
  } finally {
869
- bt = e, zt = n, Gt = r, Ne = s, pn = i, qt = a, Re = o, on = c;
869
+ bt = e, zt = n, Gt = r, Ne = s, pn = i, qt = a, Re = o, on = l;
870
870
  }
871
871
  }
872
872
  function Dl(t, e) {
@@ -989,9 +989,9 @@ function Aa(t, e) {
989
989
  } catch (f) {
990
990
  Hr(f, n, null, n.ctx);
991
991
  }
992
- var c = n.first;
993
- if (c !== null) {
994
- n = c;
992
+ var l = n.first;
993
+ if (l !== null) {
994
+ n = l;
995
995
  continue;
996
996
  }
997
997
  } else s & ta && r.push(n);
@@ -1000,9 +1000,9 @@ function Aa(t, e) {
1000
1000
  for (; f !== null; ) {
1001
1001
  if (t === f)
1002
1002
  break e;
1003
- var l = f.next;
1004
- if (l !== null) {
1005
- n = l;
1003
+ var c = f.next;
1004
+ if (c !== null) {
1005
+ n = c;
1006
1006
  continue e;
1007
1007
  }
1008
1008
  f = f.parent;
@@ -1011,7 +1011,7 @@ function Aa(t, e) {
1011
1011
  n = o;
1012
1012
  }
1013
1013
  for (var u = 0; u < r.length; u++)
1014
- c = r[u], e.push(c), Aa(c, e);
1014
+ l = r[u], e.push(l), Aa(l, e);
1015
1015
  }
1016
1016
  function v(t) {
1017
1017
  var e = pr, n = hn;
@@ -1052,17 +1052,17 @@ function d(t) {
1052
1052
  t
1053
1053
  ), a = i.parent, o = i; a !== null; )
1054
1054
  if (a.f & It) {
1055
- var c = (
1055
+ var l = (
1056
1056
  /** @type {Derived} */
1057
1057
  a
1058
1058
  );
1059
- o = c, a = c.parent;
1059
+ o = l, a = l.parent;
1060
1060
  } else {
1061
- var l = (
1061
+ var c = (
1062
1062
  /** @type {Effect} */
1063
1063
  a
1064
1064
  );
1065
- (u = l.deriveds) != null && u.includes(o) || (l.deriveds ?? (l.deriveds = [])).push(o);
1065
+ (u = c.deriveds) != null && u.includes(o) || (c.deriveds ?? (c.deriveds = [])).push(o);
1066
1066
  break;
1067
1067
  }
1068
1068
  return n && (i = /** @type {Derived} */
@@ -1226,25 +1226,25 @@ function fn(t) {
1226
1226
  n(t);
1227
1227
  }
1228
1228
  function Yn(t) {
1229
- var k;
1229
+ var _;
1230
1230
  var e = this, n = (
1231
1231
  /** @type {Node} */
1232
1232
  e.ownerDocument
1233
- ), r = t.type, s = ((k = t.composedPath) == null ? void 0 : k.call(t)) || [], i = (
1233
+ ), r = t.type, s = ((_ = t.composedPath) == null ? void 0 : _.call(t)) || [], i = (
1234
1234
  /** @type {null | Element} */
1235
1235
  s[0] || t.target
1236
1236
  ), a = 0, o = t.__root;
1237
1237
  if (o) {
1238
- var c = s.indexOf(o);
1239
- if (c !== -1 && (e === document || e === /** @type {any} */
1238
+ var l = s.indexOf(o);
1239
+ if (l !== -1 && (e === document || e === /** @type {any} */
1240
1240
  window)) {
1241
1241
  t.__root = e;
1242
1242
  return;
1243
1243
  }
1244
- var l = s.indexOf(e);
1245
- if (l === -1)
1244
+ var c = s.indexOf(e);
1245
+ if (c === -1)
1246
1246
  return;
1247
- c <= l && (a = c);
1247
+ l <= c && (a = l);
1248
1248
  }
1249
1249
  if (i = /** @type {Element} */
1250
1250
  s[a] || t.target, i !== e) {
@@ -1265,21 +1265,21 @@ function Yn(t) {
1265
1265
  if (w !== void 0 && !/** @type {any} */
1266
1266
  i.disabled)
1267
1267
  if (Or(w)) {
1268
- var [E, ..._] = w;
1269
- E.apply(i, [t, ..._]);
1268
+ var [I, ...k] = w;
1269
+ I.apply(i, [t, ...k]);
1270
1270
  } else
1271
1271
  w.call(i, t);
1272
- } catch (I) {
1273
- h ? p.push(I) : h = I;
1272
+ } catch (S) {
1273
+ h ? p.push(S) : h = S;
1274
1274
  }
1275
1275
  if (t.cancelBubble || b === e || b === null)
1276
1276
  break;
1277
1277
  i = b;
1278
1278
  }
1279
1279
  if (h) {
1280
- for (let I of p)
1280
+ for (let S of p)
1281
1281
  queueMicrotask(() => {
1282
- throw I;
1282
+ throw S;
1283
1283
  });
1284
1284
  throw h;
1285
1285
  }
@@ -1315,11 +1315,11 @@ function $(t, e) {
1315
1315
  var o = (
1316
1316
  /** @type {TemplateNode} */
1317
1317
  /* @__PURE__ */ _t(a)
1318
- ), c = (
1318
+ ), l = (
1319
1319
  /** @type {TemplateNode} */
1320
1320
  a.lastChild
1321
1321
  );
1322
- Lt(o, c);
1322
+ Lt(o, l);
1323
1323
  } else
1324
1324
  Lt(a, a);
1325
1325
  return a;
@@ -1342,11 +1342,11 @@ function ql(t, e, n = "svg") {
1342
1342
  i = /** @type {Element} */
1343
1343
  /* @__PURE__ */ _t(o);
1344
1344
  }
1345
- var c = (
1345
+ var l = (
1346
1346
  /** @type {TemplateNode} */
1347
1347
  i.cloneNode(!0)
1348
1348
  );
1349
- return Lt(c, c), c;
1349
+ return Lt(l, l), l;
1350
1350
  };
1351
1351
  }
1352
1352
  function lr(t = "") {
@@ -1415,7 +1415,7 @@ function Bl(t, e) {
1415
1415
  const zn = /* @__PURE__ */ new Map();
1416
1416
  function Oa(t, { target: e, anchor: n, props: r = {}, events: s, context: i, intro: a = !0 }) {
1417
1417
  hs();
1418
- var o = /* @__PURE__ */ new Set(), c = (f) => {
1418
+ var o = /* @__PURE__ */ new Set(), l = (f) => {
1419
1419
  for (var h = 0; h < f.length; h++) {
1420
1420
  var p = f[h];
1421
1421
  if (!o.has(p)) {
@@ -1427,8 +1427,8 @@ function Oa(t, { target: e, anchor: n, props: r = {}, events: s, context: i, int
1427
1427
  }
1428
1428
  }
1429
1429
  };
1430
- c(js(Fa)), ms.add(c);
1431
- var l = void 0, u = Sl(() => {
1430
+ l(js(Fa)), ms.add(l);
1431
+ var c = void 0, u = Sl(() => {
1432
1432
  var f = n ?? e.appendChild(ln());
1433
1433
  return $n(() => {
1434
1434
  if (i) {
@@ -1443,7 +1443,7 @@ function Oa(t, { target: e, anchor: n, props: r = {}, events: s, context: i, int
1443
1443
  /** @type {TemplateNode} */
1444
1444
  f,
1445
1445
  null
1446
- ), bs = a, l = t(f, r) || {}, bs = !0, _e && (ye.nodes_end = $e), i && le();
1446
+ ), bs = a, c = t(f, r) || {}, bs = !0, _e && (ye.nodes_end = $e), i && le();
1447
1447
  }), () => {
1448
1448
  var b;
1449
1449
  for (var h of o) {
@@ -1454,10 +1454,10 @@ function Oa(t, { target: e, anchor: n, props: r = {}, events: s, context: i, int
1454
1454
  );
1455
1455
  --p === 0 ? (document.removeEventListener(h, Yn), zn.delete(h)) : zn.set(h, p);
1456
1456
  }
1457
- ms.delete(c), f !== n && ((b = f.parentNode) == null || b.removeChild(f));
1457
+ ms.delete(l), f !== n && ((b = f.parentNode) == null || b.removeChild(f));
1458
1458
  };
1459
1459
  });
1460
- return ws.set(l, u), l;
1460
+ return ws.set(c, u), c;
1461
1461
  }
1462
1462
  let ws = /* @__PURE__ */ new WeakMap();
1463
1463
  function Hl(t, e) {
@@ -1466,9 +1466,9 @@ function Hl(t, e) {
1466
1466
  }
1467
1467
  function K(t, e, n = !1) {
1468
1468
  _e && Tn();
1469
- var r = t, s = null, i = null, a = gt, o = n ? Nr : 0, c = !1;
1470
- const l = (f, h = !0) => {
1471
- c = !0, u(h, f);
1469
+ var r = t, s = null, i = null, a = gt, o = n ? Nr : 0, l = !1;
1470
+ const c = (f, h = !0) => {
1471
+ l = !0, u(h, f);
1472
1472
  }, u = (f, h) => {
1473
1473
  if (a === (a = f)) return;
1474
1474
  let p = !1;
@@ -1486,7 +1486,7 @@ function K(t, e, n = !1) {
1486
1486
  })), p && Vt(!0);
1487
1487
  };
1488
1488
  Br(() => {
1489
- c = !1, e(l), c || u(null, null);
1489
+ l = !1, e(c), l || u(null, null);
1490
1490
  }, o), _e && (r = $e);
1491
1491
  }
1492
1492
  function ot(t, e) {
@@ -1497,34 +1497,34 @@ function Yl(t, e, n, r) {
1497
1497
  Os(e[a].e, s, !0);
1498
1498
  var o = i > 0 && s.length === 0 && n !== null;
1499
1499
  if (o) {
1500
- var c = (
1500
+ var l = (
1501
1501
  /** @type {Element} */
1502
1502
  /** @type {Element} */
1503
1503
  n.parentNode
1504
1504
  );
1505
- Ds(c), c.append(
1505
+ Ds(l), l.append(
1506
1506
  /** @type {Element} */
1507
1507
  n
1508
1508
  ), r.clear(), tn(t, e[0].prev, e[i - 1].next);
1509
1509
  }
1510
1510
  _a(s, () => {
1511
- for (var l = 0; l < i; l++) {
1512
- var u = e[l];
1511
+ for (var c = 0; c < i; c++) {
1512
+ var u = e[c];
1513
1513
  o || (r.delete(u.k), tn(t, u.prev, u.next)), Bt(u.e, !o);
1514
1514
  }
1515
1515
  });
1516
1516
  }
1517
1517
  function lt(t, e, n, r, s, i = null) {
1518
- var a = t, o = { flags: e, items: /* @__PURE__ */ new Map(), first: null }, c = (e & Xi) !== 0;
1519
- if (c) {
1520
- var l = (
1518
+ var a = t, o = { flags: e, items: /* @__PURE__ */ new Map(), first: null }, l = (e & Xi) !== 0;
1519
+ if (l) {
1520
+ var c = (
1521
1521
  /** @type {Element} */
1522
1522
  t
1523
1523
  );
1524
1524
  a = _e ? Et(
1525
1525
  /** @type {Comment | Text} */
1526
- /* @__PURE__ */ _t(l)
1527
- ) : l.appendChild(ln());
1526
+ /* @__PURE__ */ _t(c)
1527
+ ) : c.appendChild(ln());
1528
1528
  }
1529
1529
  _e && Tn();
1530
1530
  var u = null, f = !1, h = /* @__PURE__ */ da(() => {
@@ -1538,32 +1538,32 @@ function lt(t, e, n, r, s, i = null) {
1538
1538
  f = b === 0;
1539
1539
  let w = !1;
1540
1540
  if (_e) {
1541
- var E = (
1541
+ var I = (
1542
1542
  /** @type {Comment} */
1543
1543
  a.data === As
1544
1544
  );
1545
- E !== (b === 0) && (a = fs(), Et(a), Vt(!1), w = !0);
1545
+ I !== (b === 0) && (a = fs(), Et(a), Vt(!1), w = !0);
1546
1546
  }
1547
1547
  if (_e) {
1548
- for (var _ = null, k, I = 0; I < b; I++) {
1548
+ for (var k = null, _, S = 0; S < b; S++) {
1549
1549
  if ($e.nodeType === 8 && /** @type {Comment} */
1550
1550
  $e.data === Ls) {
1551
1551
  a = /** @type {Comment} */
1552
1552
  $e, w = !0, Vt(!1);
1553
1553
  break;
1554
1554
  }
1555
- var j = p[I], S = r(j, I);
1556
- k = Ma(
1555
+ var j = p[S], E = r(j, S);
1556
+ _ = Ma(
1557
1557
  $e,
1558
1558
  o,
1559
- _,
1559
+ k,
1560
1560
  null,
1561
1561
  j,
1562
+ E,
1562
1563
  S,
1563
- I,
1564
1564
  s,
1565
1565
  e
1566
- ), o.items.set(S, k), _ = k;
1566
+ ), o.items.set(E, _), k = _;
1567
1567
  }
1568
1568
  b > 0 && Et(fs());
1569
1569
  }
@@ -1589,12 +1589,12 @@ function lt(t, e, n, r, s, i = null) {
1589
1589
  }
1590
1590
  function Gl(t, e, n, r, s, i, a, o) {
1591
1591
  var We, tt, ft, ct;
1592
- var c = (s & Do) !== 0, l = (s & (Ts | $s)) !== 0, u = t.length, f = e.items, h = e.first, p = h, b, w = null, E, _ = [], k = [], I, j, S, y;
1593
- if (c)
1592
+ var l = (s & Do) !== 0, c = (s & (Ts | $s)) !== 0, u = t.length, f = e.items, h = e.first, p = h, b, w = null, I, k = [], _ = [], S, j, E, y;
1593
+ if (l)
1594
1594
  for (y = 0; y < u; y += 1)
1595
- I = t[y], j = a(I, y), S = f.get(j), S !== void 0 && ((We = S.a) == null || We.measure(), (E ?? (E = /* @__PURE__ */ new Set())).add(S));
1595
+ S = t[y], j = a(S, y), E = f.get(j), E !== void 0 && ((We = E.a) == null || We.measure(), (I ?? (I = /* @__PURE__ */ new Set())).add(E));
1596
1596
  for (y = 0; y < u; y += 1) {
1597
- if (I = t[y], j = a(I, y), S = f.get(j), S === void 0) {
1597
+ if (S = t[y], j = a(S, y), E = f.get(j), E === void 0) {
1598
1598
  var L = p ? (
1599
1599
  /** @type {TemplateNode} */
1600
1600
  p.e.nodes_start
@@ -1604,36 +1604,36 @@ function Gl(t, e, n, r, s, i, a, o) {
1604
1604
  e,
1605
1605
  w,
1606
1606
  w === null ? e.first : w.next,
1607
- I,
1607
+ S,
1608
1608
  j,
1609
1609
  y,
1610
1610
  r,
1611
1611
  s
1612
- ), f.set(j, w), _ = [], k = [], p = w.next;
1612
+ ), f.set(j, w), k = [], _ = [], p = w.next;
1613
1613
  continue;
1614
1614
  }
1615
- if (l && Jl(S, I, y, s), S.e.f & Ut && (Cr(S.e), c && ((tt = S.a) == null || tt.unfix(), (E ?? (E = /* @__PURE__ */ new Set())).delete(S))), S !== p) {
1616
- if (b !== void 0 && b.has(S)) {
1617
- if (_.length < k.length) {
1618
- var M = k[0], ee;
1615
+ if (c && Jl(E, S, y, s), E.e.f & Ut && (Cr(E.e), l && ((tt = E.a) == null || tt.unfix(), (I ?? (I = /* @__PURE__ */ new Set())).delete(E))), E !== p) {
1616
+ if (b !== void 0 && b.has(E)) {
1617
+ if (k.length < _.length) {
1618
+ var M = _[0], ee;
1619
1619
  w = M.prev;
1620
- var ge = _[0], et = _[_.length - 1];
1621
- for (ee = 0; ee < _.length; ee += 1)
1622
- mi(_[ee], M, n);
1620
+ var ge = k[0], et = k[k.length - 1];
1623
1621
  for (ee = 0; ee < k.length; ee += 1)
1624
- b.delete(k[ee]);
1625
- tn(e, ge.prev, et.next), tn(e, w, ge), tn(e, et, M), p = M, w = et, y -= 1, _ = [], k = [];
1622
+ mi(k[ee], M, n);
1623
+ for (ee = 0; ee < _.length; ee += 1)
1624
+ b.delete(_[ee]);
1625
+ tn(e, ge.prev, et.next), tn(e, w, ge), tn(e, et, M), p = M, w = et, y -= 1, k = [], _ = [];
1626
1626
  } else
1627
- b.delete(S), mi(S, p, n), tn(e, S.prev, S.next), tn(e, S, w === null ? e.first : w.next), tn(e, w, S), w = S;
1627
+ b.delete(E), mi(E, p, n), tn(e, E.prev, E.next), tn(e, E, w === null ? e.first : w.next), tn(e, w, E), w = E;
1628
1628
  continue;
1629
1629
  }
1630
- for (_ = [], k = []; p !== null && p.k !== j; )
1631
- (i || !(p.e.f & Ut)) && (b ?? (b = /* @__PURE__ */ new Set())).add(p), k.push(p), p = p.next;
1630
+ for (k = [], _ = []; p !== null && p.k !== j; )
1631
+ (i || !(p.e.f & Ut)) && (b ?? (b = /* @__PURE__ */ new Set())).add(p), _.push(p), p = p.next;
1632
1632
  if (p === null)
1633
1633
  continue;
1634
- S = p;
1634
+ E = p;
1635
1635
  }
1636
- _.push(S), w = S, p = S.next;
1636
+ k.push(E), w = E, p = E.next;
1637
1637
  }
1638
1638
  if (p !== null || b !== void 0) {
1639
1639
  for (var Ye = b === void 0 ? [] : js(b); p !== null; )
@@ -1641,7 +1641,7 @@ function Gl(t, e, n, r, s, i, a, o) {
1641
1641
  var ke = Ye.length;
1642
1642
  if (ke > 0) {
1643
1643
  var ve = s & Xi && u === 0 ? n : null;
1644
- if (c) {
1644
+ if (l) {
1645
1645
  for (y = 0; y < ke; y += 1)
1646
1646
  (ft = Ye[y].a) == null || ft.measure();
1647
1647
  for (y = 0; y < ke; y += 1)
@@ -1650,11 +1650,11 @@ function Gl(t, e, n, r, s, i, a, o) {
1650
1650
  Yl(e, Ye, ve, f);
1651
1651
  }
1652
1652
  }
1653
- c && Dn(() => {
1653
+ l && Dn(() => {
1654
1654
  var H;
1655
- if (E !== void 0)
1656
- for (S of E)
1657
- (H = S.a) == null || H.apply();
1655
+ if (I !== void 0)
1656
+ for (E of I)
1657
+ (H = E.a) == null || H.apply();
1658
1658
  }), ye.first = e.first && e.first.e, ye.last = w && w.e;
1659
1659
  }
1660
1660
  function Jl(t, e, n, r) {
@@ -1664,8 +1664,8 @@ function Jl(t, e, n, r) {
1664
1664
  n
1665
1665
  ) : t.i = n;
1666
1666
  }
1667
- function Ma(t, e, n, r, s, i, a, o, c, l) {
1668
- var u = (c & Ts) !== 0, f = (c & Po) === 0, h = u ? f ? /* @__PURE__ */ Ur(s) : mt(s) : s, p = c & $s ? mt(a) : a, b = {
1667
+ function Ma(t, e, n, r, s, i, a, o, l, c) {
1668
+ var u = (l & Ts) !== 0, f = (l & Po) === 0, h = u ? f ? /* @__PURE__ */ Ur(s) : mt(s) : s, p = l & $s ? mt(a) : a, b = {
1669
1669
  i: p,
1670
1670
  v: h,
1671
1671
  k: i,
@@ -1711,13 +1711,13 @@ function gr(t, e, n, r, s) {
1711
1711
  o !== void 0 && (Bt(o), o = void 0), a !== "" && (o = $n(() => {
1712
1712
  if (_e) {
1713
1713
  $e.data;
1714
- for (var c = Tn(), l = c; c !== null && (c.nodeType !== 8 || /** @type {Comment} */
1715
- c.data !== ""); )
1716
- l = c, c = /** @type {TemplateNode} */
1717
- /* @__PURE__ */ en(c);
1718
- if (c === null)
1714
+ for (var l = Tn(), c = l; l !== null && (l.nodeType !== 8 || /** @type {Comment} */
1715
+ l.data !== ""); )
1716
+ c = l, l = /** @type {TemplateNode} */
1717
+ /* @__PURE__ */ en(l);
1718
+ if (l === null)
1719
1719
  throw qr(), Sn;
1720
- Lt($e, l), i = Et(c);
1720
+ Lt($e, c), i = Et(l);
1721
1721
  return;
1722
1722
  }
1723
1723
  var u = a + "";
@@ -1807,81 +1807,81 @@ function q(t, e, n, r) {
1807
1807
  _e && (s[e] = t.getAttribute(e), e === "src" || e === "srcset" || e === "href" && t.nodeName === "LINK") || s[e] !== (s[e] = n) && (e === "style" && "__styles" in t && (t.__styles = {}), e === "loading" && (t[ol] = n), n == null ? t.removeAttribute(e) : typeof n != "string" && Ua(t).includes(e) ? t[e] = n : t.setAttribute(e, n));
1808
1808
  }
1809
1809
  function bi(t, e, n, r, s = !1, i = !1, a = !1) {
1810
- var o = e || {}, c = t.tagName === "OPTION";
1811
- for (var l in e)
1812
- l in n || (n[l] = null);
1810
+ var o = e || {}, l = t.tagName === "OPTION";
1811
+ for (var c in e)
1812
+ c in n || (n[c] = null);
1813
1813
  n.class && (n.class = qs(n.class));
1814
1814
  var u = Ua(t), f = (
1815
1815
  /** @type {Record<string, unknown>} **/
1816
1816
  t.__attributes ?? (t.__attributes = {})
1817
1817
  );
1818
- for (const _ in n) {
1819
- let k = n[_];
1820
- if (c && _ === "value" && k == null) {
1821
- t.value = t.__value = "", o[_] = k;
1818
+ for (const k in n) {
1819
+ let _ = n[k];
1820
+ if (l && k === "value" && _ == null) {
1821
+ t.value = t.__value = "", o[k] = _;
1822
1822
  continue;
1823
1823
  }
1824
- var h = o[_];
1825
- if (k !== h) {
1826
- o[_] = k;
1827
- var p = _[0] + _[1];
1824
+ var h = o[k];
1825
+ if (_ !== h) {
1826
+ o[k] = _;
1827
+ var p = k[0] + k[1];
1828
1828
  if (p !== "$$") {
1829
1829
  if (p === "on") {
1830
- const I = {}, j = "$$" + _;
1831
- let S = _.slice(2);
1832
- var b = Zo(S);
1833
- if (Jo(S) && (S = S.slice(0, -7), I.capture = !0), !b && h) {
1834
- if (k != null) continue;
1835
- t.removeEventListener(S, o[j], I), o[j] = null;
1830
+ const S = {}, j = "$$" + k;
1831
+ let E = k.slice(2);
1832
+ var b = Zo(E);
1833
+ if (Jo(E) && (E = E.slice(0, -7), S.capture = !0), !b && h) {
1834
+ if (_ != null) continue;
1835
+ t.removeEventListener(E, o[j], S), o[j] = null;
1836
1836
  }
1837
- if (k != null)
1837
+ if (_ != null)
1838
1838
  if (b)
1839
- t[`__${S}`] = k, fn([S]);
1839
+ t[`__${E}`] = _, fn([E]);
1840
1840
  else {
1841
1841
  let y = function(L) {
1842
- o[_].call(this, L);
1842
+ o[k].call(this, L);
1843
1843
  };
1844
- o[j] = Da(S, t, y, I);
1844
+ o[j] = Da(E, t, y, S);
1845
1845
  }
1846
- else b && (t[`__${S}`] = void 0);
1847
- } else if (_ === "style" && k != null)
1848
- t.style.cssText = k + "";
1849
- else if (_ === "autofocus")
1846
+ else b && (t[`__${E}`] = void 0);
1847
+ } else if (k === "style" && _ != null)
1848
+ t.style.cssText = _ + "";
1849
+ else if (k === "autofocus")
1850
1850
  Nl(
1851
1851
  /** @type {HTMLElement} */
1852
1852
  t,
1853
- !!k
1853
+ !!_
1854
1854
  );
1855
- else if (_ === "__value" || _ === "value" && k != null)
1856
- t.value = t[_] = t.__value = k;
1857
- else if (_ === "selected" && c)
1855
+ else if (k === "__value" || k === "value" && _ != null)
1856
+ t.value = t[k] = t.__value = _;
1857
+ else if (k === "selected" && l)
1858
1858
  Xl(
1859
1859
  /** @type {HTMLOptionElement} */
1860
1860
  t,
1861
- k
1861
+ _
1862
1862
  );
1863
1863
  else {
1864
- var w = _;
1864
+ var w = k;
1865
1865
  s || (w = Xo(w));
1866
- var E = w === "defaultValue" || w === "defaultChecked";
1867
- if (k == null && !i && !E)
1868
- if (f[_] = null, w === "value" || w === "checked") {
1869
- let I = (
1866
+ var I = w === "defaultValue" || w === "defaultChecked";
1867
+ if (_ == null && !i && !I)
1868
+ if (f[k] = null, w === "value" || w === "checked") {
1869
+ let S = (
1870
1870
  /** @type {HTMLInputElement} */
1871
1871
  t
1872
1872
  );
1873
1873
  if (w === "value") {
1874
- let j = I.defaultValue;
1875
- I.removeAttribute(w), I.defaultValue = j;
1874
+ let j = S.defaultValue;
1875
+ S.removeAttribute(w), S.defaultValue = j;
1876
1876
  } else {
1877
- let j = I.defaultChecked;
1878
- I.removeAttribute(w), I.defaultChecked = j;
1877
+ let j = S.defaultChecked;
1878
+ S.removeAttribute(w), S.defaultChecked = j;
1879
1879
  }
1880
1880
  } else
1881
- t.removeAttribute(_);
1882
- else E || u.includes(w) && (i || typeof k != "string") ? t[w] = k : typeof k != "function" && (_e && (w === "src" || w === "href" || w === "srcset") || q(t, w, k));
1881
+ t.removeAttribute(k);
1882
+ else I || u.includes(w) && (i || typeof _ != "string") ? t[w] = _ : typeof _ != "function" && (_e && (w === "src" || w === "href" || w === "srcset") || q(t, w, _));
1883
1883
  }
1884
- _ === "style" && "__styles" in t && (t.__styles = {});
1884
+ k === "style" && "__styles" in t && (t.__styles = {});
1885
1885
  }
1886
1886
  }
1887
1887
  }
@@ -1969,59 +1969,59 @@ function _i(t) {
1969
1969
  }
1970
1970
  const nc = (t) => t;
1971
1971
  function Dt(t, e, n, r) {
1972
- var s = (t & qo) !== 0, i = (t & Bo) !== 0, a = s && i, o = (t & Ho) !== 0, c = a ? "both" : s ? "in" : "out", l, u = e.inert, f = e.style.overflow, h, p;
1972
+ var s = (t & qo) !== 0, i = (t & Bo) !== 0, a = s && i, o = (t & Ho) !== 0, l = a ? "both" : s ? "in" : "out", c, u = e.inert, f = e.style.overflow, h, p;
1973
1973
  function b() {
1974
- var I = Ne, j = ye;
1974
+ var S = Ne, j = ye;
1975
1975
  Ht(null), jt(null);
1976
1976
  try {
1977
- return l ?? (l = n()(e, (r == null ? void 0 : r()) ?? /** @type {P} */
1977
+ return c ?? (c = n()(e, (r == null ? void 0 : r()) ?? /** @type {P} */
1978
1978
  {}, {
1979
- direction: c
1979
+ direction: l
1980
1980
  }));
1981
1981
  } finally {
1982
- Ht(I), jt(j);
1982
+ Ht(S), jt(j);
1983
1983
  }
1984
1984
  }
1985
1985
  var w = {
1986
1986
  is_global: o,
1987
1987
  in() {
1988
- var I;
1988
+ var S;
1989
1989
  if (e.inert = u, !s) {
1990
- p == null || p.abort(), (I = p == null ? void 0 : p.reset) == null || I.call(p);
1990
+ p == null || p.abort(), (S = p == null ? void 0 : p.reset) == null || S.call(p);
1991
1991
  return;
1992
1992
  }
1993
1993
  i || h == null || h.abort(), cr(e, "introstart"), h = _s(e, b(), p, 1, () => {
1994
- cr(e, "introend"), h == null || h.abort(), h = l = void 0, e.style.overflow = f;
1994
+ cr(e, "introend"), h == null || h.abort(), h = c = void 0, e.style.overflow = f;
1995
1995
  });
1996
1996
  },
1997
- out(I) {
1997
+ out(S) {
1998
1998
  if (!i) {
1999
- I == null || I(), l = void 0;
1999
+ S == null || S(), c = void 0;
2000
2000
  return;
2001
2001
  }
2002
2002
  e.inert = !0, cr(e, "outrostart"), p = _s(e, b(), h, 0, () => {
2003
- cr(e, "outroend"), I == null || I();
2003
+ cr(e, "outroend"), S == null || S();
2004
2004
  });
2005
2005
  },
2006
2006
  stop: () => {
2007
2007
  h == null || h.abort(), p == null || p.abort();
2008
2008
  }
2009
- }, E = (
2009
+ }, I = (
2010
2010
  /** @type {Effect} */
2011
2011
  ye
2012
2012
  );
2013
- if ((E.transitions ?? (E.transitions = [])).push(w), s && bs) {
2014
- var _ = o;
2015
- if (!_) {
2016
- for (var k = (
2013
+ if ((I.transitions ?? (I.transitions = [])).push(w), s && bs) {
2014
+ var k = o;
2015
+ if (!k) {
2016
+ for (var _ = (
2017
2017
  /** @type {Effect | null} */
2018
- E.parent
2019
- ); k && k.f & Nr; )
2020
- for (; (k = k.parent) && !(k.f & Mr); )
2018
+ I.parent
2019
+ ); _ && _.f & Nr; )
2020
+ for (; (_ = _.parent) && !(_.f & Mr); )
2021
2021
  ;
2022
- _ = !k || (k.f & na) !== 0;
2022
+ k = !_ || (_.f & na) !== 0;
2023
2023
  }
2024
- _ && Rn(() => {
2024
+ k && Rn(() => {
2025
2025
  Pt(() => w.in());
2026
2026
  });
2027
2027
  }
@@ -2032,8 +2032,8 @@ function _s(t, e, n, r, s) {
2032
2032
  var a, o = !1;
2033
2033
  return Dn(() => {
2034
2034
  if (!o) {
2035
- var E = e({ direction: i ? "in" : "out" });
2036
- a = _s(t, E, n, r, s);
2035
+ var I = e({ direction: i ? "in" : "out" });
2036
+ a = _s(t, I, n, r, s);
2037
2037
  }
2038
2038
  }), {
2039
2039
  abort: () => {
@@ -2051,26 +2051,26 @@ function _s(t, e, n, r, s) {
2051
2051
  reset: Wt,
2052
2052
  t: () => r
2053
2053
  };
2054
- const { delay: c = 0, css: l, tick: u, easing: f = nc } = e;
2054
+ const { delay: l = 0, css: c, tick: u, easing: f = nc } = e;
2055
2055
  var h = [];
2056
- if (i && n === void 0 && (u && u(0, 1), l)) {
2057
- var p = _i(l(0, 1));
2056
+ if (i && n === void 0 && (u && u(0, 1), c)) {
2057
+ var p = _i(c(0, 1));
2058
2058
  h.push(p, p);
2059
2059
  }
2060
- var b = () => 1 - r, w = t.animate(h, { duration: c });
2060
+ var b = () => 1 - r, w = t.animate(h, { duration: l });
2061
2061
  return w.onfinish = () => {
2062
- var E = (n == null ? void 0 : n.t()) ?? 1 - r;
2062
+ var I = (n == null ? void 0 : n.t()) ?? 1 - r;
2063
2063
  n == null || n.abort();
2064
- var _ = r - E, k = (
2064
+ var k = r - I, _ = (
2065
2065
  /** @type {number} */
2066
- e.duration * Math.abs(_)
2067
- ), I = [];
2068
- if (k > 0) {
2066
+ e.duration * Math.abs(k)
2067
+ ), S = [];
2068
+ if (_ > 0) {
2069
2069
  var j = !1;
2070
- if (l)
2071
- for (var S = Math.ceil(k / 16.666666666666668), y = 0; y <= S; y += 1) {
2072
- var L = E + _ * f(y / S), M = _i(l(L, 1 - L));
2073
- I.push(M), j || (j = M.overflow === "hidden");
2070
+ if (c)
2071
+ for (var E = Math.ceil(_ / 16.666666666666668), y = 0; y <= E; y += 1) {
2072
+ var L = I + k * f(y / E), M = _i(c(L, 1 - L));
2073
+ S.push(M), j || (j = M.overflow === "hidden");
2074
2074
  }
2075
2075
  j && (t.style.overflow = "hidden"), b = () => {
2076
2076
  var ee = (
@@ -2078,14 +2078,14 @@ function _s(t, e, n, r, s) {
2078
2078
  /** @type {globalThis.Animation} */
2079
2079
  w.currentTime
2080
2080
  );
2081
- return E + _ * f(ee / k);
2081
+ return I + k * f(ee / _);
2082
2082
  }, u && ec(() => {
2083
2083
  if (w.playState !== "running") return !1;
2084
2084
  var ee = b();
2085
2085
  return u(ee, 1 - ee), !0;
2086
2086
  });
2087
2087
  }
2088
- w = t.animate(I, { duration: k, fill: "forwards" }), w.onfinish = () => {
2088
+ w = t.animate(S, { duration: _, fill: "forwards" }), w.onfinish = () => {
2089
2089
  b = () => r, u == null || u(r, 1 - r), s();
2090
2090
  };
2091
2091
  }, {
@@ -2217,9 +2217,9 @@ function xt(t = !1) {
2217
2217
  );
2218
2218
  const a = /* @__PURE__ */ Ke(() => {
2219
2219
  let o = !1;
2220
- const c = e.s;
2221
- for (const l in c)
2222
- c[l] !== i[l] && (i[l] = c[l], o = !0);
2220
+ const l = e.s;
2221
+ for (const c in l)
2222
+ l[c] !== i[c] && (i[c] = l[c], o = !0);
2223
2223
  return o && s++, s;
2224
2224
  });
2225
2225
  r = () => d(a);
@@ -2274,8 +2274,8 @@ function lc() {
2274
2274
  n,
2275
2275
  r
2276
2276
  );
2277
- for (const c of a)
2278
- c.call(t.x, o);
2277
+ for (const l of a)
2278
+ l.call(t.x, o);
2279
2279
  return !o.defaultPrevented;
2280
2280
  }
2281
2281
  return !0;
@@ -2306,12 +2306,12 @@ function dc(t, e = Wt) {
2306
2306
  const r = /* @__PURE__ */ new Set();
2307
2307
  function s(o) {
2308
2308
  if (aa(t, o) && (t = o, n)) {
2309
- const c = !Cn.length;
2310
- for (const l of r)
2311
- l[1](), Cn.push(l, t);
2312
- if (c) {
2313
- for (let l = 0; l < Cn.length; l += 2)
2314
- Cn[l][0](Cn[l + 1]);
2309
+ const l = !Cn.length;
2310
+ for (const c of r)
2311
+ c[1](), Cn.push(c, t);
2312
+ if (l) {
2313
+ for (let c = 0; c < Cn.length; c += 2)
2314
+ Cn[c][0](Cn[c + 1]);
2315
2315
  Cn.length = 0;
2316
2316
  }
2317
2317
  }
@@ -2322,13 +2322,13 @@ function dc(t, e = Wt) {
2322
2322
  t
2323
2323
  ));
2324
2324
  }
2325
- function a(o, c = Wt) {
2326
- const l = [o, c];
2327
- return r.add(l), r.size === 1 && (n = e(s, i) || Wt), o(
2325
+ function a(o, l = Wt) {
2326
+ const c = [o, l];
2327
+ return r.add(c), r.size === 1 && (n = e(s, i) || Wt), o(
2328
2328
  /** @type {T} */
2329
2329
  t
2330
2330
  ), () => {
2331
- r.delete(l), r.size === 0 && n && (n(), n = null);
2331
+ r.delete(c), r.size === 0 && n && (n(), n = null);
2332
2332
  };
2333
2333
  }
2334
2334
  return { set: s, update: i, subscribe: a };
@@ -2395,11 +2395,11 @@ function yi(t) {
2395
2395
  }
2396
2396
  function m(t, e, n, r) {
2397
2397
  var L;
2398
- var s = (n & Oo) !== 0, i = !jn || (n & Mo) !== 0, a = (n & No) !== 0, o = (n & Uo) !== 0, c = !1, l;
2399
- a ? [l, c] = fc(() => (
2398
+ var s = (n & Oo) !== 0, i = !jn || (n & Mo) !== 0, a = (n & No) !== 0, o = (n & Uo) !== 0, l = !1, c;
2399
+ a ? [c, l] = fc(() => (
2400
2400
  /** @type {V} */
2401
2401
  t[e]
2402
- )) : l = /** @type {V} */
2402
+ )) : c = /** @type {V} */
2403
2403
  t[e];
2404
2404
  var u = Qt in t || sa in t, f = a && (((L = gn(t, e)) == null ? void 0 : L.set) ?? (u && e in t && ((M) => t[e] = M))) || void 0, h = (
2405
2405
  /** @type {V} */
@@ -2409,10 +2409,10 @@ function m(t, e, n, r) {
2409
2409
  r
2410
2410
  ) : h = /** @type {V} */
2411
2411
  r), h);
2412
- l === void 0 && r !== void 0 && (f && i && hl(), l = w(), f && f(l));
2413
- var E;
2412
+ c === void 0 && r !== void 0 && (f && i && hl(), c = w(), f && f(c));
2413
+ var I;
2414
2414
  if (i)
2415
- E = () => {
2415
+ I = () => {
2416
2416
  var M = (
2417
2417
  /** @type {V} */
2418
2418
  t[e]
@@ -2420,36 +2420,36 @@ function m(t, e, n, r) {
2420
2420
  return M === void 0 ? w() : (p = !0, b = !1, M);
2421
2421
  };
2422
2422
  else {
2423
- var _ = yi(
2423
+ var k = yi(
2424
2424
  () => (s ? Ke : da)(() => (
2425
2425
  /** @type {V} */
2426
2426
  t[e]
2427
2427
  ))
2428
2428
  );
2429
- _.f |= il, E = () => {
2430
- var M = d(_);
2429
+ k.f |= il, I = () => {
2430
+ var M = d(k);
2431
2431
  return M !== void 0 && (h = /** @type {V} */
2432
2432
  void 0), M === void 0 ? h : M;
2433
2433
  };
2434
2434
  }
2435
2435
  if (!(n & Qi))
2436
- return E;
2436
+ return I;
2437
2437
  if (f) {
2438
- var k = t.$$legacy;
2438
+ var _ = t.$$legacy;
2439
2439
  return function(M, ee) {
2440
- return arguments.length > 0 ? ((!i || !ee || k || c) && f(ee ? E() : M), M) : E();
2440
+ return arguments.length > 0 ? ((!i || !ee || _ || l) && f(ee ? I() : M), M) : I();
2441
2441
  };
2442
2442
  }
2443
- var I = !1, j = !1, S = /* @__PURE__ */ Ur(l), y = yi(
2443
+ var S = !1, j = !1, E = /* @__PURE__ */ Ur(c), y = yi(
2444
2444
  () => /* @__PURE__ */ Ke(() => {
2445
- var M = E(), ee = d(S);
2446
- return I ? (I = !1, j = !0, ee) : (j = !1, S.v = M);
2445
+ var M = I(), ee = d(E);
2446
+ return S ? (S = !1, j = !0, ee) : (j = !1, E.v = M);
2447
2447
  })
2448
2448
  );
2449
2449
  return s || (y.equals = Fs), function(M, ee) {
2450
2450
  if (arguments.length > 0) {
2451
2451
  const ge = ee ? d(y) : i && a ? T(M) : M;
2452
- return y.equals(ge) || (I = !0, g(S, ge), b && h !== void 0 && (h = ge), Pt(() => d(y))), M;
2452
+ return y.equals(ge) || (S = !0, g(E, ge), b && h !== void 0 && (h = ge), Pt(() => d(y))), M;
2453
2453
  }
2454
2454
  return d(y);
2455
2455
  };
@@ -2471,8 +2471,8 @@ class vc {
2471
2471
  ts(this, Tt);
2472
2472
  var i;
2473
2473
  var n = /* @__PURE__ */ new Map(), r = (a, o) => {
2474
- var c = /* @__PURE__ */ Ur(o);
2475
- return n.set(a, c), c;
2474
+ var l = /* @__PURE__ */ Ur(o);
2475
+ return n.set(a, l), l;
2476
2476
  };
2477
2477
  const s = new Proxy(
2478
2478
  { ...e.props || {}, $$events: {} },
@@ -2483,8 +2483,8 @@ class vc {
2483
2483
  has(a, o) {
2484
2484
  return o === sa ? !0 : (d(n.get(o) ?? r(o, Reflect.get(a, o))), Reflect.has(a, o));
2485
2485
  },
2486
- set(a, o, c) {
2487
- return g(n.get(o) ?? r(o, c), c), Reflect.set(a, o, c);
2486
+ set(a, o, l) {
2487
+ return g(n.get(o) ?? r(o, l), l), Reflect.set(a, o, l);
2488
2488
  }
2489
2489
  }
2490
2490
  );
@@ -2725,21 +2725,21 @@ function de(t, e, n, r, s, i) {
2725
2725
  get() {
2726
2726
  return this.$$c && o in this.$$c ? this.$$c[o] : this.$$d[o];
2727
2727
  },
2728
- set(c) {
2728
+ set(l) {
2729
2729
  var f;
2730
- c = vr(o, c, e), this.$$d[o] = c;
2731
- var l = this.$$c;
2732
- if (l) {
2733
- var u = (f = gn(l, o)) == null ? void 0 : f.get;
2734
- u ? l[o] = c : l.$set({ [o]: c });
2730
+ l = vr(o, l, e), this.$$d[o] = l;
2731
+ var c = this.$$c;
2732
+ if (c) {
2733
+ var u = (f = gn(c, o)) == null ? void 0 : f.get;
2734
+ u ? c[o] = l : c.$set({ [o]: l });
2735
2735
  }
2736
2736
  }
2737
2737
  });
2738
2738
  }), r.forEach((o) => {
2739
2739
  _r(a.prototype, o, {
2740
2740
  get() {
2741
- var c;
2742
- return (c = this.$$c) == null ? void 0 : c[o];
2741
+ var l;
2742
+ return (l = this.$$c) == null ? void 0 : l[o];
2743
2743
  }
2744
2744
  });
2745
2745
  }), t.element = /** @type {any} */
@@ -2768,42 +2768,42 @@ function rn(t, { delay: e = 0, duration: n = 400, easing: r = bc } = {}) {
2768
2768
  };
2769
2769
  }
2770
2770
  function wc(t, { delay: e = 0, duration: n = 400, easing: r = Bs, x: s = 0, y: i = 0, opacity: a = 0 } = {}) {
2771
- const o = getComputedStyle(t), c = +o.opacity, l = o.transform === "none" ? "" : o.transform, u = c * (1 - a), [f, h] = zi(s), [p, b] = zi(i);
2771
+ const o = getComputedStyle(t), l = +o.opacity, c = o.transform === "none" ? "" : o.transform, u = l * (1 - a), [f, h] = zi(s), [p, b] = zi(i);
2772
2772
  return {
2773
2773
  delay: e,
2774
2774
  duration: n,
2775
2775
  easing: r,
2776
- css: (w, E) => `
2777
- transform: ${l} translate(${(1 - w) * f}${h}, ${(1 - w) * p}${b});
2778
- opacity: ${c - u * E}`
2776
+ css: (w, I) => `
2777
+ transform: ${c} translate(${(1 - w) * f}${h}, ${(1 - w) * p}${b});
2778
+ opacity: ${l - u * I}`
2779
2779
  };
2780
2780
  }
2781
2781
  function _c(t, { delay: e = 0, duration: n = 400, easing: r = Bs, axis: s = "y" } = {}) {
2782
- const i = getComputedStyle(t), a = +i.opacity, o = s === "y" ? "height" : "width", c = parseFloat(i[o]), l = s === "y" ? ["top", "bottom"] : ["left", "right"], u = l.map(
2783
- (_) => (
2782
+ const i = getComputedStyle(t), a = +i.opacity, o = s === "y" ? "height" : "width", l = parseFloat(i[o]), c = s === "y" ? ["top", "bottom"] : ["left", "right"], u = c.map(
2783
+ (k) => (
2784
2784
  /** @type {'Left' | 'Right' | 'Top' | 'Bottom'} */
2785
- `${_[0].toUpperCase()}${_.slice(1)}`
2785
+ `${k[0].toUpperCase()}${k.slice(1)}`
2786
2786
  )
2787
2787
  ), f = parseFloat(i[`padding${u[0]}`]), h = parseFloat(i[`padding${u[1]}`]), p = parseFloat(i[`margin${u[0]}`]), b = parseFloat(i[`margin${u[1]}`]), w = parseFloat(
2788
2788
  i[`border${u[0]}Width`]
2789
- ), E = parseFloat(
2789
+ ), I = parseFloat(
2790
2790
  i[`border${u[1]}Width`]
2791
2791
  );
2792
2792
  return {
2793
2793
  delay: e,
2794
2794
  duration: n,
2795
2795
  easing: r,
2796
- css: (_) => `overflow: hidden;opacity: ${Math.min(_ * 20, 1) * a};${o}: ${_ * c}px;padding-${l[0]}: ${_ * f}px;padding-${l[1]}: ${_ * h}px;margin-${l[0]}: ${_ * p}px;margin-${l[1]}: ${_ * b}px;border-${l[0]}-width: ${_ * w}px;border-${l[1]}-width: ${_ * E}px;min-${o}: 0`
2796
+ css: (k) => `overflow: hidden;opacity: ${Math.min(k * 20, 1) * a};${o}: ${k * l}px;padding-${c[0]}: ${k * f}px;padding-${c[1]}: ${k * h}px;margin-${c[0]}: ${k * p}px;margin-${c[1]}: ${k * b}px;border-${c[0]}-width: ${k * w}px;border-${c[1]}-width: ${k * I}px;min-${o}: 0`
2797
2797
  };
2798
2798
  }
2799
2799
  function kc(t, { delay: e = 0, duration: n = 400, easing: r = Bs, start: s = 0, opacity: i = 0 } = {}) {
2800
- const a = getComputedStyle(t), o = +a.opacity, c = a.transform === "none" ? "" : a.transform, l = 1 - s, u = o * (1 - i);
2800
+ const a = getComputedStyle(t), o = +a.opacity, l = a.transform === "none" ? "" : a.transform, c = 1 - s, u = o * (1 - i);
2801
2801
  return {
2802
2802
  delay: e,
2803
2803
  duration: n,
2804
2804
  easing: r,
2805
2805
  css: (f, h) => `
2806
- transform: ${c} scale(${1 - l * h});
2806
+ transform: ${l} scale(${1 - c * h});
2807
2807
  opacity: ${o - u * h}
2808
2808
  `
2809
2809
  };
@@ -2872,8 +2872,8 @@ class sn {
2872
2872
  ];
2873
2873
  break;
2874
2874
  }
2875
- const a = Math.floor(Math.random() * s.length), o = s[a], c = `<span>${o}</span>`;
2876
- return new sn(0, !1, o, c);
2875
+ const a = Math.floor(Math.random() * s.length), o = s[a], l = `<span>${o}</span>`;
2876
+ return new sn(0, !1, o, l);
2877
2877
  }
2878
2878
  }
2879
2879
  class Wr {
@@ -2924,7 +2924,7 @@ class vn {
2924
2924
  }
2925
2925
  static fromJson(e) {
2926
2926
  var n;
2927
- return new vn(e._id, e.companyId, e.userId, e.title, e.state ?? { lockedAgentId: null, pendingAction: null, info: [] }, ((n = e.messages) == null ? void 0 : n.map((r) => sn.fromJson(r))) ?? [], e.lastUpdate ?? 0);
2927
+ return new vn(e._id, e.companyId, e.userId, e.title, e.state ?? { blockChat: !1, unread: !1, lockedAgentId: null, pendingAction: null, info: [] }, ((n = e.messages) == null ? void 0 : n.map((r) => sn.fromJson(r))) ?? [], e.lastUpdate ?? 0);
2928
2928
  }
2929
2929
  }
2930
2930
  const xc = {}, yc = "it", ks = (
@@ -3004,23 +3004,23 @@ let Za = (t, e) => {
3004
3004
  const s = [];
3005
3005
  let i = Hs;
3006
3006
  typeof window < "u" && ((o = window.location) != null && o.href) && (i = Wa(window.location.href));
3007
- for (const c of i)
3008
- if (c === "globalVariable")
3007
+ for (const l of i)
3008
+ if (l === "globalVariable")
3009
3009
  $r = t;
3010
- else if (c === "cookie") {
3010
+ else if (l === "cookie") {
3011
3011
  if (typeof document > "u" || typeof window > "u")
3012
3012
  continue;
3013
- const l = `${Ja}=${t}; path=/; max-age=${zc}`;
3014
- document.cookie = l;
3013
+ const c = `${Ja}=${t}; path=/; max-age=${zc}`;
3014
+ document.cookie = c;
3015
3015
  } else {
3016
- if (c === "baseLocale")
3016
+ if (l === "baseLocale")
3017
3017
  continue;
3018
- if (Va(c) && Ar.has(c)) {
3019
- const l = Ar.get(c);
3020
- if (l) {
3021
- let u = l.setLocale(t);
3018
+ if (Va(l) && Ar.has(l)) {
3019
+ const c = Ar.get(l);
3020
+ if (c) {
3021
+ let u = c.setLocale(t);
3022
3022
  u instanceof Promise && (u = u.catch((f) => {
3023
- throw new Error(`Custom strategy "${c}" setLocale failed.`, {
3023
+ throw new Error(`Custom strategy "${l}" setLocale failed.`, {
3024
3024
  cause: f
3025
3025
  });
3026
3026
  }), s.push(u));
@@ -3748,16 +3748,16 @@ const nf = {
3748
3748
  };
3749
3749
  function Ka(t, e) {
3750
3750
  oe(e, !0), be(t, nf);
3751
- let n = m(e, "show", 15, !1), r = m(e, "showHistory", 15), s = m(e, "actChat", 15), i = m(e, "muted", 15), a = m(e, "languageSelected", 15), o = m(e, "username", 15), c = m(e, "error", 15), l = m(e, "newChat", 7);
3751
+ let n = m(e, "show", 15, !1), r = m(e, "showHistory", 15), s = m(e, "actChat", 15), i = m(e, "muted", 15), a = m(e, "languageSelected", 15), o = m(e, "username", 15), l = m(e, "error", 15), c = m(e, "newChat", 7);
3752
3752
  Jr(() => {
3753
3753
  });
3754
3754
  var u = tf(), f = z(u), h = z(f), p = O(z(h), 2), b = z(p);
3755
3755
  b.value = (b.__value = "it") == null ? "" : "it";
3756
3756
  var w = O(b);
3757
3757
  w.value = (w.__value = "en") == null ? "" : "en", x(p), x(h);
3758
- var E = O(h, 2), _ = z(E);
3758
+ var I = O(h, 2), k = z(I);
3759
3759
  {
3760
- var k = (L) => {
3760
+ var _ = (L) => {
3761
3761
  var M = Vd();
3762
3762
  M.__click = [Zd, i], D(
3763
3763
  (ee) => {
@@ -3765,25 +3765,25 @@ function Ka(t, e) {
3765
3765
  },
3766
3766
  [() => wu()]
3767
3767
  ), C(L, M);
3768
- }, I = (L) => {
3768
+ }, S = (L) => {
3769
3769
  var M = Qd();
3770
3770
  M.__click = [Xd, i], D((ee) => q(M, "title", ee), [() => xu()]), C(L, M);
3771
3771
  };
3772
- K(_, (L) => {
3773
- i() ? L(k) : L(I, !1);
3772
+ K(k, (L) => {
3773
+ i() ? L(_) : L(S, !1);
3774
3774
  });
3775
3775
  }
3776
- var j = O(_, 2);
3776
+ var j = O(k, 2);
3777
3777
  j.__click = function(...L) {
3778
3778
  var M;
3779
- (M = l()) == null || M.apply(this, L);
3779
+ (M = c()) == null || M.apply(this, L);
3780
3780
  };
3781
- var S = O(j, 2);
3782
- S.__click = [Kd, r];
3783
- var y = O(S, 2);
3784
- return y.__click = [ef, r, n], x(E), x(f), x(u), D(
3781
+ var E = O(j, 2);
3782
+ E.__click = [Kd, r];
3783
+ var y = O(E, 2);
3784
+ return y.__click = [ef, r, n], x(I), x(f), x(u), D(
3785
3785
  (L, M, ee, ge) => {
3786
- q(j, "title", L), q(S, "title", M), q(S, "aria-label", ee), q(y, "title", ge), q(y, "aria-label", ge);
3786
+ q(j, "title", L), q(E, "title", M), q(E, "aria-label", ee), q(y, "title", ge), q(y, "aria-label", ge);
3787
3787
  },
3788
3788
  [
3789
3789
  () => Xa(),
@@ -3829,16 +3829,16 @@ function Ka(t, e) {
3829
3829
  o(L), v();
3830
3830
  },
3831
3831
  get error() {
3832
- return c();
3832
+ return l();
3833
3833
  },
3834
3834
  set error(L) {
3835
- c(L), v();
3835
+ l(L), v();
3836
3836
  },
3837
3837
  get newChat() {
3838
- return l();
3838
+ return c();
3839
3839
  },
3840
3840
  set newChat(L) {
3841
- l(L), v();
3841
+ c(L), v();
3842
3842
  }
3843
3843
  });
3844
3844
  }
@@ -3924,7 +3924,7 @@ const rf = () => {
3924
3924
  getEnvironmentId: uf
3925
3925
  }, Ys = dc({ token: "", envId: "" });
3926
3926
  class cn {
3927
- constructor(e, n, r, s, i, a, o, c = "", l = !1, u = (/* @__PURE__ */ new Date()).getTime(), f = "loading", h = "") {
3927
+ constructor(e, n, r, s, i, a, o, l = "", c = !1, u = (/* @__PURE__ */ new Date()).getTime(), f = "loading", h = "") {
3928
3928
  A(this, "_id");
3929
3929
  A(this, "title");
3930
3930
  A(this, "companyId");
@@ -3937,7 +3937,7 @@ class cn {
3937
3937
  A(this, "hash");
3938
3938
  A(this, "checked");
3939
3939
  A(this, "path");
3940
- this._id = e, this.title = n, this.companyId = r, this.private = s, this.externalId = i, this.idArchivio = a, this.hash = o, this.gendocId = c, this.isCommon = l, this.createdAt = u, this.checked = f, this.path = h;
3940
+ this._id = e, this.title = n, this.companyId = r, this.private = s, this.externalId = i, this.idArchivio = a, this.hash = o, this.gendocId = l, this.isCommon = c, this.createdAt = u, this.checked = f, this.path = h;
3941
3941
  }
3942
3942
  toJson() {
3943
3943
  return {
@@ -3963,7 +3963,7 @@ class cn {
3963
3963
  }
3964
3964
  }
3965
3965
  class un {
3966
- constructor(e, n, r, s, i, a, o, c = "file", l, u, f = (/* @__PURE__ */ new Date()).getTime()) {
3966
+ constructor(e, n, r, s, i, a, o, l = "file", c, u, f = (/* @__PURE__ */ new Date()).getTime()) {
3967
3967
  A(this, "_id");
3968
3968
  A(this, "title");
3969
3969
  A(this, "externalId");
@@ -3975,7 +3975,7 @@ class un {
3975
3975
  A(this, "url");
3976
3976
  A(this, "additionalReference");
3977
3977
  A(this, "createdAt");
3978
- this._id = e, this.title = n, this.externalId = r, this.idArchivio = s, this.isArchived = i, this.status = a, this.forgeType = o, this.contentType = c, this.url = l, this.additionalReference = u, this.createdAt = f;
3978
+ this._id = e, this.title = n, this.externalId = r, this.idArchivio = s, this.isArchived = i, this.status = a, this.forgeType = o, this.contentType = l, this.url = c, this.additionalReference = u, this.createdAt = f;
3979
3979
  }
3980
3980
  toJson() {
3981
3981
  return {
@@ -4000,7 +4000,7 @@ class un {
4000
4000
  }
4001
4001
  }
4002
4002
  class mn {
4003
- constructor(e, n, r, s, i, a, o, c = 0, l = !1, u = 40, f = !1, h = "") {
4003
+ constructor(e, n, r, s, i, a, o, l = 0, c = !1, u = 40, f = !1, h = "") {
4004
4004
  A(this, "_id", "");
4005
4005
  A(this, "path", "");
4006
4006
  A(this, "name");
@@ -4017,7 +4017,7 @@ class mn {
4017
4017
  A(this, "minLevel", 40);
4018
4018
  A(this, "cancellato", !1);
4019
4019
  A(this, "altTitle", "");
4020
- this._id = e, this.path = n, this.name = r, this.userId = s, this.companyId = i, this.isPrivate = a, this.isTemplate = o, this.suiteId = c, this.createdAt = Date.now(), this.updatedAt = Date.now(), this.excludeFromDocumentale = l, this.minLevel = u, this.cancellato = f, this.altTitle = h;
4020
+ this._id = e, this.path = n, this.name = r, this.userId = s, this.companyId = i, this.isPrivate = a, this.isTemplate = o, this.suiteId = l, this.createdAt = Date.now(), this.updatedAt = Date.now(), this.excludeFromDocumentale = c, this.minLevel = u, this.cancellato = f, this.altTitle = h;
4021
4021
  }
4022
4022
  static fromJSON(e) {
4023
4023
  return new mn(
@@ -4061,7 +4061,7 @@ class mn {
4061
4061
  }
4062
4062
  }
4063
4063
  class dn {
4064
- constructor(e, n, r, s, i, a, o, c, l) {
4064
+ constructor(e, n, r, s, i, a, o, l, c) {
4065
4065
  A(this, "_id");
4066
4066
  A(this, "companyId");
4067
4067
  A(this, "externalMeetingId");
@@ -4071,7 +4071,7 @@ class dn {
4071
4071
  A(this, "transcription");
4072
4072
  A(this, "meetingUrl");
4073
4073
  A(this, "createdAt");
4074
- this._id = e, this.companyId = n, this.externalMeetingId = r, this.name = s, this.meetingDate = i, this.partecipants = a, this.transcription = o, this.meetingUrl = c, this.createdAt = l;
4074
+ this._id = e, this.companyId = n, this.externalMeetingId = r, this.name = s, this.meetingDate = i, this.partecipants = a, this.transcription = o, this.meetingUrl = l, this.createdAt = c;
4075
4075
  }
4076
4076
  toJson() {
4077
4077
  return {
@@ -4209,8 +4209,8 @@ const mf = async (t) => {
4209
4209
  let h = await f.json();
4210
4210
  console.log("FILE FOUND", h), a = a.replace(".akd", ".pdf"), o = h.result[0].file_content;
4211
4211
  }
4212
- const c = Uint8Array.from(atob(o), (u) => u.charCodeAt(0)), l = new Blob([c], { type: "application/octet-stream" });
4213
- return new File([l], a);
4212
+ const l = Uint8Array.from(atob(o), (u) => u.charCodeAt(0)), c = new Blob([l], { type: "application/octet-stream" });
4213
+ return new File([c], a);
4214
4214
  }, bf = async (t) => {
4215
4215
  const e = await fetch(`${U.getKBUrl()}/generals/documents`, {
4216
4216
  method: "POST",
@@ -4426,32 +4426,32 @@ function Lf(t, e) {
4426
4426
  get color() {
4427
4427
  return n();
4428
4428
  },
4429
- set color(c) {
4430
- n(c), v();
4429
+ set color(l) {
4430
+ n(l), v();
4431
4431
  },
4432
4432
  get unit() {
4433
4433
  return r();
4434
4434
  },
4435
- set unit(c) {
4436
- r(c), v();
4435
+ set unit(l) {
4436
+ r(l), v();
4437
4437
  },
4438
4438
  get duration() {
4439
4439
  return s();
4440
4440
  },
4441
- set duration(c) {
4442
- s(c), v();
4441
+ set duration(l) {
4442
+ s(l), v();
4443
4443
  },
4444
4444
  get size() {
4445
4445
  return i();
4446
4446
  },
4447
- set size(c) {
4448
- i(c), v();
4447
+ set size(l) {
4448
+ i(l), v();
4449
4449
  },
4450
4450
  get pause() {
4451
4451
  return a();
4452
4452
  },
4453
- set pause(c) {
4454
- a(c), v();
4453
+ set pause(l) {
4454
+ a(l), v();
4455
4455
  }
4456
4456
  });
4457
4457
  }
@@ -4490,10 +4490,10 @@ const Rf = {
4490
4490
  };
4491
4491
  function Ff(t, e) {
4492
4492
  oe(e, !1), be(t, Rf);
4493
- let n = m(e, "size", 12, "60"), r = m(e, "unit", 12, "px"), s = m(e, "pause", 12, !1), i = m(e, "colorOuter", 12, "#FF3E00"), a = m(e, "colorCenter", 12, "#40B3FF"), o = m(e, "colorInner", 12, "#676778"), c = m(e, "durationMultiplier", 12, 1), l = m(e, "durationOuter", 28, () => `${c() * 2}s`), u = m(e, "durationInner", 28, () => `${c() * 1.5}s`), f = m(e, "durationCenter", 28, () => `${c() * 3}s`);
4493
+ let n = m(e, "size", 12, "60"), r = m(e, "unit", 12, "px"), s = m(e, "pause", 12, !1), i = m(e, "colorOuter", 12, "#FF3E00"), a = m(e, "colorCenter", 12, "#40B3FF"), o = m(e, "colorInner", 12, "#676778"), l = m(e, "durationMultiplier", 12, 1), c = m(e, "durationOuter", 28, () => `${l() * 2}s`), u = m(e, "durationInner", 28, () => `${l() * 1.5}s`), f = m(e, "durationCenter", 28, () => `${l() * 3}s`);
4494
4494
  var h = jf();
4495
4495
  return D(() => {
4496
- q(h, "style", `--size: ${n() ?? ""}${r() ?? ""}; --colorInner: ${o() ?? ""}; --colorCenter: ${a() ?? ""}; --colorOuter: ${i() ?? ""}; --durationInner: ${u() ?? ""}; --durationCenter: ${f() ?? ""}; --durationOuter: ${l() ?? ""};`), pe(h, "pause-animation", s());
4496
+ q(h, "style", `--size: ${n() ?? ""}${r() ?? ""}; --colorInner: ${o() ?? ""}; --colorCenter: ${a() ?? ""}; --colorOuter: ${i() ?? ""}; --durationInner: ${u() ?? ""}; --durationCenter: ${f() ?? ""}; --durationOuter: ${c() ?? ""};`), pe(h, "pause-animation", s());
4497
4497
  }), C(t, h), le({
4498
4498
  get size() {
4499
4499
  return n();
@@ -4532,16 +4532,16 @@ function Ff(t, e) {
4532
4532
  o(p), v();
4533
4533
  },
4534
4534
  get durationMultiplier() {
4535
- return c();
4535
+ return l();
4536
4536
  },
4537
4537
  set durationMultiplier(p) {
4538
- c(p), v();
4538
+ l(p), v();
4539
4539
  },
4540
4540
  get durationOuter() {
4541
- return l();
4541
+ return c();
4542
4542
  },
4543
4543
  set durationOuter(p) {
4544
- l(p), v();
4544
+ c(p), v();
4545
4545
  },
4546
4546
  get durationInner() {
4547
4547
  return u();
@@ -4609,64 +4609,64 @@ const Pf = {
4609
4609
  };
4610
4610
  function Of(t, e) {
4611
4611
  oe(e, !1), be(t, Pf);
4612
- let n = m(e, "size", 12, "60"), r = m(e, "unit", 12, "px"), s = m(e, "pause", 12, !1), i = m(e, "ballTopLeft", 12, "#FF3E00"), a = m(e, "ballTopRight", 12, "#F8B334"), o = m(e, "ballBottomLeft", 12, "#40B3FF"), c = m(e, "ballBottomRight", 12, "#676778"), l = m(e, "duration", 12, "1.5s");
4612
+ let n = m(e, "size", 12, "60"), r = m(e, "unit", 12, "px"), s = m(e, "pause", 12, !1), i = m(e, "ballTopLeft", 12, "#FF3E00"), a = m(e, "ballTopRight", 12, "#F8B334"), o = m(e, "ballBottomLeft", 12, "#40B3FF"), l = m(e, "ballBottomRight", 12, "#676778"), c = m(e, "duration", 12, "1.5s");
4613
4613
  var u = Df(), f = z(u), h = z(f), p = z(h), b = z(p);
4614
4614
  x(p);
4615
- var w = O(p, 2), E = z(w);
4615
+ var w = O(p, 2), I = z(w);
4616
4616
  x(w);
4617
- var _ = O(w, 2), k = z(_);
4618
- x(_);
4619
- var I = O(_, 2), j = z(I);
4620
- return x(I), x(h), x(f), x(u), D(() => {
4621
- q(u, "style", `--size: ${n() ?? ""}${r() ?? ""}; --floatSize: ${n() ?? ""}; --ballTopLeftColor: ${i() ?? ""}; --ballTopRightColor: ${a() ?? ""}; --ballBottomLeftColor: ${o() ?? ""}; --ballBottomRightColor: ${c() ?? ""}; --duration: ${l() ?? ""};`), pe(h, "pause-animation", s()), pe(b, "pause-animation", s()), pe(E, "pause-animation", s()), pe(k, "pause-animation", s()), pe(j, "pause-animation", s());
4617
+ var k = O(w, 2), _ = z(k);
4618
+ x(k);
4619
+ var S = O(k, 2), j = z(S);
4620
+ return x(S), x(h), x(f), x(u), D(() => {
4621
+ q(u, "style", `--size: ${n() ?? ""}${r() ?? ""}; --floatSize: ${n() ?? ""}; --ballTopLeftColor: ${i() ?? ""}; --ballTopRightColor: ${a() ?? ""}; --ballBottomLeftColor: ${o() ?? ""}; --ballBottomRightColor: ${l() ?? ""}; --duration: ${c() ?? ""};`), pe(h, "pause-animation", s()), pe(b, "pause-animation", s()), pe(I, "pause-animation", s()), pe(_, "pause-animation", s()), pe(j, "pause-animation", s());
4622
4622
  }), C(t, u), le({
4623
4623
  get size() {
4624
4624
  return n();
4625
4625
  },
4626
- set size(S) {
4627
- n(S), v();
4626
+ set size(E) {
4627
+ n(E), v();
4628
4628
  },
4629
4629
  get unit() {
4630
4630
  return r();
4631
4631
  },
4632
- set unit(S) {
4633
- r(S), v();
4632
+ set unit(E) {
4633
+ r(E), v();
4634
4634
  },
4635
4635
  get pause() {
4636
4636
  return s();
4637
4637
  },
4638
- set pause(S) {
4639
- s(S), v();
4638
+ set pause(E) {
4639
+ s(E), v();
4640
4640
  },
4641
4641
  get ballTopLeft() {
4642
4642
  return i();
4643
4643
  },
4644
- set ballTopLeft(S) {
4645
- i(S), v();
4644
+ set ballTopLeft(E) {
4645
+ i(E), v();
4646
4646
  },
4647
4647
  get ballTopRight() {
4648
4648
  return a();
4649
4649
  },
4650
- set ballTopRight(S) {
4651
- a(S), v();
4650
+ set ballTopRight(E) {
4651
+ a(E), v();
4652
4652
  },
4653
4653
  get ballBottomLeft() {
4654
4654
  return o();
4655
4655
  },
4656
- set ballBottomLeft(S) {
4657
- o(S), v();
4656
+ set ballBottomLeft(E) {
4657
+ o(E), v();
4658
4658
  },
4659
4659
  get ballBottomRight() {
4660
- return c();
4660
+ return l();
4661
4661
  },
4662
- set ballBottomRight(S) {
4663
- c(S), v();
4662
+ set ballBottomRight(E) {
4663
+ l(E), v();
4664
4664
  },
4665
4665
  get duration() {
4666
- return l();
4666
+ return c();
4667
4667
  },
4668
- set duration(S) {
4669
- l(S), v();
4668
+ set duration(E) {
4669
+ c(E), v();
4670
4670
  }
4671
4671
  });
4672
4672
  }
@@ -4713,15 +4713,15 @@ const Uf = {
4713
4713
  function qf(t, e) {
4714
4714
  var u;
4715
4715
  oe(e, !1), be(t, Uf);
4716
- let n = m(e, "color", 12, "#FF3E00"), r = m(e, "unit", 12, "px"), s = m(e, "duration", 12, "2.1s"), i = m(e, "size", 12, "60"), a = m(e, "pause", 12, !1), o = ((u = s().match(it)) == null ? void 0 : u[0]) ?? "s", c = s().replace(it, "");
4716
+ let n = m(e, "color", 12, "#FF3E00"), r = m(e, "unit", 12, "px"), s = m(e, "duration", 12, "2.1s"), i = m(e, "size", 12, "60"), a = m(e, "pause", 12, !1), o = ((u = s().match(it)) == null ? void 0 : u[0]) ?? "s", l = s().replace(it, "");
4717
4717
  xt();
4718
- var l = Nf();
4719
- return lt(l, 5, () => Ot(2, 1), ot, (f, h) => {
4718
+ var c = Nf();
4719
+ return lt(c, 5, () => Ot(2, 1), ot, (f, h) => {
4720
4720
  var p = Mf();
4721
4721
  D(() => {
4722
- q(p, "style", `animation: ${s() ?? ""} ${(d(h) === 1 ? `${(+c - 0.1) / 2}${o}` : "0s") ?? ""} infinite ease-in-out`), pe(p, "pause-animation", a());
4722
+ q(p, "style", `animation: ${s() ?? ""} ${(d(h) === 1 ? `${(+l - 0.1) / 2}${o}` : "0s") ?? ""} infinite ease-in-out`), pe(p, "pause-animation", a());
4723
4723
  }), C(f, p);
4724
- }), x(l), D(() => q(l, "style", `--size: ${i() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}`)), C(t, l), le({
4724
+ }), x(c), D(() => q(c, "style", `--size: ${i() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}`)), C(t, c), le({
4725
4725
  get color() {
4726
4726
  return n();
4727
4727
  },
@@ -4993,39 +4993,39 @@ const Jf = {
4993
4993
  function Wf(t, e) {
4994
4994
  oe(e, !1), be(t, Jf);
4995
4995
  let n = m(e, "color", 12, "#FF3E00"), r = m(e, "unit", 12, "px"), s = m(e, "duration", 12, "1s"), i = m(e, "size", 12, "60"), a = m(e, "pause", 12, !1);
4996
- var o = Gf(), c = z(o);
4996
+ var o = Gf(), l = z(o);
4997
4997
  return x(o), D(() => {
4998
- q(o, "style", `--size: ${i() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --duration: ${s() ?? ""}; --duration: ${s() ?? ""};`), pe(c, "pause-animation", a());
4998
+ q(o, "style", `--size: ${i() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --duration: ${s() ?? ""}; --duration: ${s() ?? ""};`), pe(l, "pause-animation", a());
4999
4999
  }), C(t, o), le({
5000
5000
  get color() {
5001
5001
  return n();
5002
5002
  },
5003
- set color(l) {
5004
- n(l), v();
5003
+ set color(c) {
5004
+ n(c), v();
5005
5005
  },
5006
5006
  get unit() {
5007
5007
  return r();
5008
5008
  },
5009
- set unit(l) {
5010
- r(l), v();
5009
+ set unit(c) {
5010
+ r(c), v();
5011
5011
  },
5012
5012
  get duration() {
5013
5013
  return s();
5014
5014
  },
5015
- set duration(l) {
5016
- s(l), v();
5015
+ set duration(c) {
5016
+ s(c), v();
5017
5017
  },
5018
5018
  get size() {
5019
5019
  return i();
5020
5020
  },
5021
- set size(l) {
5022
- i(l), v();
5021
+ set size(c) {
5022
+ i(c), v();
5023
5023
  },
5024
5024
  get pause() {
5025
5025
  return a();
5026
5026
  },
5027
- set pause(l) {
5028
- a(l), v();
5027
+ set pause(c) {
5028
+ a(c), v();
5029
5029
  }
5030
5030
  });
5031
5031
  }
@@ -5106,10 +5106,10 @@ const Vf = {
5106
5106
  function Xf(t, e) {
5107
5107
  oe(e, !1), be(t, Vf);
5108
5108
  let n = m(e, "color", 12, "#FF3E00"), r = m(e, "unit", 12, "px"), s = m(e, "duration", 12, "4s"), i = m(e, "size", 12, "60"), a = m(e, "stroke", 28, () => +i() / 12 + r()), o = m(e, "pause", 12, !1);
5109
- var c = Zf(), l = z(c);
5110
- return x(c), D(() => {
5111
- q(c, "style", `--size: ${i() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --stroke: ${a() ?? ""}; --floatSize: ${i() ?? ""}; --duration: ${s() ?? ""}`), pe(l, "pause-animation", o());
5112
- }), C(t, c), le({
5109
+ var l = Zf(), c = z(l);
5110
+ return x(l), D(() => {
5111
+ q(l, "style", `--size: ${i() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --stroke: ${a() ?? ""}; --floatSize: ${i() ?? ""}; --duration: ${s() ?? ""}`), pe(c, "pause-animation", o());
5112
+ }), C(t, l), le({
5113
5113
  get color() {
5114
5114
  return n();
5115
5115
  },
@@ -5181,15 +5181,15 @@ const eh = {
5181
5181
  function th(t, e) {
5182
5182
  var u;
5183
5183
  oe(e, !1), be(t, eh);
5184
- let n = m(e, "color", 12, "#FF3E00"), r = m(e, "unit", 12, "px"), s = m(e, "duration", 12, "1.2s"), i = m(e, "size", 12, "60"), a = m(e, "pause", 12, !1), o = ((u = s().match(it)) == null ? void 0 : u[0]) ?? "s", c = s().replace(it, "");
5184
+ let n = m(e, "color", 12, "#FF3E00"), r = m(e, "unit", 12, "px"), s = m(e, "duration", 12, "1.2s"), i = m(e, "size", 12, "60"), a = m(e, "pause", 12, !1), o = ((u = s().match(it)) == null ? void 0 : u[0]) ?? "s", l = s().replace(it, "");
5185
5185
  xt();
5186
- var l = Kf();
5187
- return lt(l, 5, () => Ot(5, 1), ot, (f, h) => {
5186
+ var c = Kf();
5187
+ return lt(c, 5, () => Ot(5, 1), ot, (f, h) => {
5188
5188
  var p = Qf();
5189
5189
  D(() => {
5190
- q(p, "style", `animation-delay: ${(d(h) - 1) * (+c / 12)}${o ?? ""}`), pe(p, "pause-animation", a());
5190
+ q(p, "style", `animation-delay: ${(d(h) - 1) * (+l / 12)}${o ?? ""}`), pe(p, "pause-animation", a());
5191
5191
  }), C(f, p);
5192
- }), x(l), D(() => q(l, "style", `--size: ${i() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --duration: ${s() ?? ""}`)), C(t, l), le({
5192
+ }), x(c), D(() => q(c, "style", `--size: ${i() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --duration: ${s() ?? ""}`)), C(t, c), le({
5193
5193
  get color() {
5194
5194
  return n();
5195
5195
  },
@@ -5282,42 +5282,42 @@ function ih(t, e) {
5282
5282
  g(o, Ws(n(), 0.2));
5283
5283
  }
5284
5284
  ), nr(), xt();
5285
- var c = rh();
5286
- return lt(c, 5, () => Ot(2, 1), ot, (l, u) => {
5285
+ var l = rh();
5286
+ return lt(l, 5, () => Ot(2, 1), ot, (c, u) => {
5287
5287
  var f = nh();
5288
5288
  D(() => {
5289
5289
  wt(f, `lines small-lines ${d(u) ?? ""} svelte-bnawe9`), q(f, "style", `--color: ${n() ?? ""}; --duration: ${s() ?? ""};`), pe(f, "pause-animation", a());
5290
- }), C(l, f);
5291
- }), x(c), D(() => q(c, "style", `--size: ${i() ?? ""}${r() ?? ""}; --rgba:${d(o) ?? ""}`)), C(t, c), le({
5290
+ }), C(c, f);
5291
+ }), x(l), D(() => q(l, "style", `--size: ${i() ?? ""}${r() ?? ""}; --rgba:${d(o) ?? ""}`)), C(t, l), le({
5292
5292
  get color() {
5293
5293
  return n();
5294
5294
  },
5295
- set color(l) {
5296
- n(l), v();
5295
+ set color(c) {
5296
+ n(c), v();
5297
5297
  },
5298
5298
  get unit() {
5299
5299
  return r();
5300
5300
  },
5301
- set unit(l) {
5302
- r(l), v();
5301
+ set unit(c) {
5302
+ r(c), v();
5303
5303
  },
5304
5304
  get duration() {
5305
5305
  return s();
5306
5306
  },
5307
- set duration(l) {
5308
- s(l), v();
5307
+ set duration(c) {
5308
+ s(c), v();
5309
5309
  },
5310
5310
  get size() {
5311
5311
  return i();
5312
5312
  },
5313
- set size(l) {
5314
- i(l), v();
5313
+ set size(c) {
5314
+ i(c), v();
5315
5315
  },
5316
5316
  get pause() {
5317
5317
  return a();
5318
5318
  },
5319
- set pause(l) {
5320
- a(l), v();
5319
+ set pause(c) {
5320
+ a(c), v();
5321
5321
  }
5322
5322
  });
5323
5323
  }
@@ -5356,15 +5356,15 @@ const lh = {
5356
5356
  function ch(t, e) {
5357
5357
  var u;
5358
5358
  oe(e, !1), be(t, lh);
5359
- let n = m(e, "color", 12, "#FF3E00"), r = m(e, "unit", 12, "px"), s = m(e, "duration", 12, "1s"), i = m(e, "size", 12, "60"), a = m(e, "pause", 12, !1), o = ((u = s().match(it)) == null ? void 0 : u[0]) ?? "s", c = s().replace(it, "");
5359
+ let n = m(e, "color", 12, "#FF3E00"), r = m(e, "unit", 12, "px"), s = m(e, "duration", 12, "1s"), i = m(e, "size", 12, "60"), a = m(e, "pause", 12, !1), o = ((u = s().match(it)) == null ? void 0 : u[0]) ?? "s", l = s().replace(it, "");
5360
5360
  xt();
5361
- var l = oh();
5362
- return lt(l, 5, () => Ot(3, 1), ot, (f, h) => {
5361
+ var c = oh();
5362
+ return lt(c, 5, () => Ot(3, 1), ot, (f, h) => {
5363
5363
  var p = ah();
5364
5364
  D(() => {
5365
- q(p, "style", `animation-delay: ${+c / 3 * (d(h) - 1) + o};`), pe(p, "pause-animation", a());
5365
+ q(p, "style", `animation-delay: ${+l / 3 * (d(h) - 1) + o};`), pe(p, "pause-animation", a());
5366
5366
  }), C(f, p);
5367
- }), x(l), D(() => q(l, "style", `--size: ${i() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --duration: ${s() ?? ""};`)), C(t, l), le({
5367
+ }), x(c), D(() => q(c, "style", `--size: ${i() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --duration: ${s() ?? ""};`)), C(t, c), le({
5368
5368
  get color() {
5369
5369
  return n();
5370
5370
  },
@@ -5439,41 +5439,41 @@ function hh(t, e) {
5439
5439
  let n = m(e, "color", 12, "#FF3E00"), r = m(e, "unit", 12, "px"), s = m(e, "duration", 12, "2s"), i = m(e, "size", 12, "60"), a = m(e, "pause", 12, !1);
5440
5440
  xt();
5441
5441
  var o = dh();
5442
- return lt(o, 5, () => Ot(2, 1), ot, (c, l) => {
5442
+ return lt(o, 5, () => Ot(2, 1), ot, (l, c) => {
5443
5443
  var u = uh();
5444
5444
  D(() => {
5445
- wt(u, `border ${d(l) ?? ""} svelte-kxapcj`), pe(u, "pause-animation", a());
5446
- }), C(c, u);
5445
+ wt(u, `border ${d(c) ?? ""} svelte-kxapcj`), pe(u, "pause-animation", a());
5446
+ }), C(l, u);
5447
5447
  }), x(o), D(() => q(o, "style", `--size: ${i() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --duration: ${s() ?? ""};`)), C(t, o), le({
5448
5448
  get color() {
5449
5449
  return n();
5450
5450
  },
5451
- set color(c) {
5452
- n(c), v();
5451
+ set color(l) {
5452
+ n(l), v();
5453
5453
  },
5454
5454
  get unit() {
5455
5455
  return r();
5456
5456
  },
5457
- set unit(c) {
5458
- r(c), v();
5457
+ set unit(l) {
5458
+ r(l), v();
5459
5459
  },
5460
5460
  get duration() {
5461
5461
  return s();
5462
5462
  },
5463
- set duration(c) {
5464
- s(c), v();
5463
+ set duration(l) {
5464
+ s(l), v();
5465
5465
  },
5466
5466
  get size() {
5467
5467
  return i();
5468
5468
  },
5469
- set size(c) {
5470
- i(c), v();
5469
+ set size(l) {
5470
+ i(l), v();
5471
5471
  },
5472
5472
  get pause() {
5473
5473
  return a();
5474
5474
  },
5475
- set pause(c) {
5476
- a(c), v();
5475
+ set pause(l) {
5476
+ a(l), v();
5477
5477
  }
5478
5478
  });
5479
5479
  }
@@ -5528,15 +5528,15 @@ const vh = {
5528
5528
  function mh(t, e) {
5529
5529
  var u;
5530
5530
  oe(e, !1), be(t, vh);
5531
- let n = m(e, "color", 12, "#FF3E00"), r = m(e, "unit", 12, "px"), s = m(e, "duration", 12, "0.6s"), i = m(e, "size", 12, "60"), a = m(e, "pause", 12, !1), o = ((u = s().match(it)) == null ? void 0 : u[0]) ?? "s", c = s().replace(it, "");
5531
+ let n = m(e, "color", 12, "#FF3E00"), r = m(e, "unit", 12, "px"), s = m(e, "duration", 12, "0.6s"), i = m(e, "size", 12, "60"), a = m(e, "pause", 12, !1), o = ((u = s().match(it)) == null ? void 0 : u[0]) ?? "s", l = s().replace(it, "");
5532
5532
  xt();
5533
- var l = gh();
5534
- return lt(l, 5, () => Ot(3, 1), ot, (f, h) => {
5533
+ var c = gh();
5534
+ return lt(c, 5, () => Ot(3, 1), ot, (f, h) => {
5535
5535
  var p = ph();
5536
5536
  D(() => {
5537
- q(p, "style", `--dotSize:${+i() * 0.25}${r() ?? ""}; --color:${n() ?? ""}; animation-delay: ${d(h) * (+c / 10)}${o ?? ""};`), pe(p, "pause-animation", a());
5537
+ q(p, "style", `--dotSize:${+i() * 0.25}${r() ?? ""}; --color:${n() ?? ""}; animation-delay: ${d(h) * (+l / 10)}${o ?? ""};`), pe(p, "pause-animation", a());
5538
5538
  }), C(f, p);
5539
- }), x(l), D(() => q(l, "style", `--size:${i() ?? ""}${r() ?? ""}; --duration: ${s() ?? ""};`)), C(t, l), le({
5539
+ }), x(c), D(() => q(c, "style", `--size:${i() ?? ""}${r() ?? ""}; --duration: ${s() ?? ""};`)), C(t, c), le({
5540
5540
  get color() {
5541
5541
  return n();
5542
5542
  },
@@ -5609,39 +5609,39 @@ const wh = {
5609
5609
  function _h(t, e) {
5610
5610
  oe(e, !1), be(t, wh);
5611
5611
  let n = m(e, "color", 12, "#FF3E00"), r = m(e, "unit", 12, "px"), s = m(e, "duration", 12, "3s"), i = m(e, "size", 12, "60"), a = m(e, "pause", 12, !1);
5612
- var o = bh(), c = z(o);
5612
+ var o = bh(), l = z(o);
5613
5613
  return x(o), D(() => {
5614
- q(o, "style", `--size: ${i() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --duration: ${s() ?? ""};`), pe(c, "pause-animation", a());
5614
+ q(o, "style", `--size: ${i() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --duration: ${s() ?? ""};`), pe(l, "pause-animation", a());
5615
5615
  }), C(t, o), le({
5616
5616
  get color() {
5617
5617
  return n();
5618
5618
  },
5619
- set color(l) {
5620
- n(l), v();
5619
+ set color(c) {
5620
+ n(c), v();
5621
5621
  },
5622
5622
  get unit() {
5623
5623
  return r();
5624
5624
  },
5625
- set unit(l) {
5626
- r(l), v();
5625
+ set unit(c) {
5626
+ r(c), v();
5627
5627
  },
5628
5628
  get duration() {
5629
5629
  return s();
5630
5630
  },
5631
- set duration(l) {
5632
- s(l), v();
5631
+ set duration(c) {
5632
+ s(c), v();
5633
5633
  },
5634
5634
  get size() {
5635
5635
  return i();
5636
5636
  },
5637
- set size(l) {
5638
- i(l), v();
5637
+ set size(c) {
5638
+ i(c), v();
5639
5639
  },
5640
5640
  get pause() {
5641
5641
  return a();
5642
5642
  },
5643
- set pause(l) {
5644
- a(l), v();
5643
+ set pause(c) {
5644
+ a(c), v();
5645
5645
  }
5646
5646
  });
5647
5647
  }
@@ -5681,39 +5681,39 @@ const xh = {
5681
5681
  function yh(t, e) {
5682
5682
  oe(e, !1), be(t, xh);
5683
5683
  let n = m(e, "color", 12, "#FF3E00"), r = m(e, "unit", 12, "px"), s = m(e, "duration", 12, "1.25s"), i = m(e, "size", 12, "60"), a = m(e, "pause", 12, !1);
5684
- var o = kh(), c = z(o);
5684
+ var o = kh(), l = z(o);
5685
5685
  return x(o), D(() => {
5686
- q(o, "style", `--size: ${i() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --duration: ${s() ?? ""};`), pe(c, "pause-animation", a());
5686
+ q(o, "style", `--size: ${i() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --duration: ${s() ?? ""};`), pe(l, "pause-animation", a());
5687
5687
  }), C(t, o), le({
5688
5688
  get color() {
5689
5689
  return n();
5690
5690
  },
5691
- set color(l) {
5692
- n(l), v();
5691
+ set color(c) {
5692
+ n(c), v();
5693
5693
  },
5694
5694
  get unit() {
5695
5695
  return r();
5696
5696
  },
5697
- set unit(l) {
5698
- r(l), v();
5697
+ set unit(c) {
5698
+ r(c), v();
5699
5699
  },
5700
5700
  get duration() {
5701
5701
  return s();
5702
5702
  },
5703
- set duration(l) {
5704
- s(l), v();
5703
+ set duration(c) {
5704
+ s(c), v();
5705
5705
  },
5706
5706
  get size() {
5707
5707
  return i();
5708
5708
  },
5709
- set size(l) {
5710
- i(l), v();
5709
+ set size(c) {
5710
+ i(c), v();
5711
5711
  },
5712
5712
  get pause() {
5713
5713
  return a();
5714
5714
  },
5715
- set pause(l) {
5716
- a(l), v();
5715
+ set pause(c) {
5716
+ a(c), v();
5717
5717
  }
5718
5718
  });
5719
5719
  }
@@ -5750,15 +5750,15 @@ const Sh = {
5750
5750
  function jr(t, e) {
5751
5751
  var u;
5752
5752
  oe(e, !1), be(t, Sh);
5753
- let n = m(e, "color", 12, "#FF3E00"), r = m(e, "unit", 12, "px"), s = m(e, "duration", 12, "1.5s"), i = m(e, "size", 12, "60"), a = m(e, "pause", 12, !1), o = ((u = s().match(it)) == null ? void 0 : u[0]) ?? "s", c = s().replace(it, "");
5753
+ let n = m(e, "color", 12, "#FF3E00"), r = m(e, "unit", 12, "px"), s = m(e, "duration", 12, "1.5s"), i = m(e, "size", 12, "60"), a = m(e, "pause", 12, !1), o = ((u = s().match(it)) == null ? void 0 : u[0]) ?? "s", l = s().replace(it, "");
5754
5754
  xt();
5755
- var l = Ch();
5756
- return lt(l, 5, () => Ot(3, 0), ot, (f, h) => {
5755
+ var c = Ch();
5756
+ return lt(c, 5, () => Ot(3, 0), ot, (f, h) => {
5757
5757
  var p = zh();
5758
5758
  D(() => {
5759
- q(p, "style", `animation-delay: ${d(h) * (+c / 10)}${o ?? ""}; left: ${d(h) * (+i() / 3 + +i() / 15) + r()};`), pe(p, "pause-animation", a());
5759
+ q(p, "style", `animation-delay: ${d(h) * (+l / 10)}${o ?? ""}; left: ${d(h) * (+i() / 3 + +i() / 15) + r()};`), pe(p, "pause-animation", a());
5760
5760
  }), C(f, p);
5761
- }), x(l), D(() => q(l, "style", `--size: ${i() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --duration: ${s() ?? ""}`)), C(t, l), le({
5761
+ }), x(c), D(() => q(c, "style", `--size: ${i() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --duration: ${s() ?? ""}`)), C(t, c), le({
5762
5762
  get color() {
5763
5763
  return n();
5764
5764
  },
@@ -5824,15 +5824,15 @@ const Th = {
5824
5824
  function $h(t, e) {
5825
5825
  var u;
5826
5826
  oe(e, !1), be(t, Th);
5827
- let n = m(e, "color", 12, "#FF3E00"), r = m(e, "unit", 12, "px"), s = m(e, "duration", 12, "2.5s"), i = m(e, "size", 12, "60"), a = m(e, "pause", 12, !1), o = ((u = s().match(it)) == null ? void 0 : u[0]) ?? "s", c = s().replace(it, "");
5827
+ let n = m(e, "color", 12, "#FF3E00"), r = m(e, "unit", 12, "px"), s = m(e, "duration", 12, "2.5s"), i = m(e, "size", 12, "60"), a = m(e, "pause", 12, !1), o = ((u = s().match(it)) == null ? void 0 : u[0]) ?? "s", l = s().replace(it, "");
5828
5828
  xt();
5829
- var l = Ih();
5830
- return lt(l, 5, () => Ot(6, 0), ot, (f, h) => {
5829
+ var c = Ih();
5830
+ return lt(c, 5, () => Ot(6, 0), ot, (f, h) => {
5831
5831
  var p = Eh();
5832
5832
  D(() => {
5833
- q(p, "style", `animation-delay: ${d(h) * (+c / 25)}${o ?? ""}; width: ${d(h) * (+i() / 6) + r()}; height: ${d(h) * (+i() / 6) / 2 + r()}; `), pe(p, "pause-animation", a());
5833
+ q(p, "style", `animation-delay: ${d(h) * (+l / 25)}${o ?? ""}; width: ${d(h) * (+i() / 6) + r()}; height: ${d(h) * (+i() / 6) / 2 + r()}; `), pe(p, "pause-animation", a());
5834
5834
  }), C(f, p);
5835
- }), x(l), D(() => q(l, "style", `--size: ${i() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --motionOne: ${-i() / 5}${r() ?? ""}; --motionTwo: ${+i() / 4}${r() ?? ""}; --motionThree: ${-i() / 5}${r() ?? ""}; --duration: ${s() ?? ""};`)), C(t, l), le({
5835
+ }), x(c), D(() => q(c, "style", `--size: ${i() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --motionOne: ${-i() / 5}${r() ?? ""}; --motionTwo: ${+i() / 4}${r() ?? ""}; --motionThree: ${-i() / 5}${r() ?? ""}; --duration: ${s() ?? ""};`)), C(t, c), le({
5836
5836
  get color() {
5837
5837
  return n();
5838
5838
  },
@@ -5903,17 +5903,17 @@ const jh = {
5903
5903
  function Rh(t, e) {
5904
5904
  var f;
5905
5905
  oe(e, !1), be(t, jh);
5906
- let n = m(e, "color", 12, "#FF3E00"), r = m(e, "unit", 12, "px"), s = m(e, "duration", 12, "2s"), i = m(e, "size", 12, "60"), a = m(e, "pause", 12, !1), o = ((f = s().match(it)) == null ? void 0 : f[0]) ?? "s", c = s().replace(it, "");
5906
+ let n = m(e, "color", 12, "#FF3E00"), r = m(e, "unit", 12, "px"), s = m(e, "duration", 12, "2s"), i = m(e, "size", 12, "60"), a = m(e, "pause", 12, !1), o = ((f = s().match(it)) == null ? void 0 : f[0]) ?? "s", l = s().replace(it, "");
5907
5907
  xt();
5908
- var l = Lh(), u = z(l);
5908
+ var c = Lh(), u = z(c);
5909
5909
  return lt(u, 5, () => Ot(2, 0), ot, (h, p) => {
5910
5910
  var b = Ah();
5911
5911
  D(() => {
5912
- q(b, "style", `animation-delay: ${(d(p) === 1 ? `${+c / 2}${o}` : "0s") ?? ""}; ${(d(p) === 1 ? "bottom: 0;" : "") ?? ""} ${(d(p) === 1 ? "top: auto;" : "") ?? ""}`), pe(b, "pause-animation", a());
5912
+ q(b, "style", `animation-delay: ${(d(p) === 1 ? `${+l / 2}${o}` : "0s") ?? ""}; ${(d(p) === 1 ? "bottom: 0;" : "") ?? ""} ${(d(p) === 1 ? "top: auto;" : "") ?? ""}`), pe(b, "pause-animation", a());
5913
5913
  }), C(h, b);
5914
- }), x(u), x(l), D(() => {
5915
- q(l, "style", `--size: ${i() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --duration: ${s() ?? ""};`), pe(u, "pause-animation", a());
5916
- }), C(t, l), le({
5914
+ }), x(u), x(c), D(() => {
5915
+ q(c, "style", `--size: ${i() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --duration: ${s() ?? ""};`), pe(u, "pause-animation", a());
5916
+ }), C(t, c), le({
5917
5917
  get color() {
5918
5918
  return n();
5919
5919
  },
@@ -5993,32 +5993,32 @@ function Ph(t, e) {
5993
5993
  get color() {
5994
5994
  return n();
5995
5995
  },
5996
- set color(c) {
5997
- n(c), v();
5996
+ set color(l) {
5997
+ n(l), v();
5998
5998
  },
5999
5999
  get unit() {
6000
6000
  return r();
6001
6001
  },
6002
- set unit(c) {
6003
- r(c), v();
6002
+ set unit(l) {
6003
+ r(l), v();
6004
6004
  },
6005
6005
  get duration() {
6006
6006
  return s();
6007
6007
  },
6008
- set duration(c) {
6009
- s(c), v();
6008
+ set duration(l) {
6009
+ s(l), v();
6010
6010
  },
6011
6011
  get size() {
6012
6012
  return i();
6013
6013
  },
6014
- set size(c) {
6015
- i(c), v();
6014
+ set size(l) {
6015
+ i(l), v();
6016
6016
  },
6017
6017
  get pause() {
6018
6018
  return a();
6019
6019
  },
6020
- set pause(c) {
6021
- a(c), v();
6020
+ set pause(l) {
6021
+ a(l), v();
6022
6022
  }
6023
6023
  });
6024
6024
  }
@@ -6080,39 +6080,39 @@ const Mh = {
6080
6080
  function Nh(t, e) {
6081
6081
  oe(e, !1), be(t, Mh);
6082
6082
  let n = m(e, "color", 12, "#FF3E00"), r = m(e, "unit", 12, "px"), s = m(e, "duration", 12, "1.7s"), i = m(e, "size", 12, "60"), a = m(e, "pause", 12, !1);
6083
- var o = Oh(), c = z(o);
6083
+ var o = Oh(), l = z(o);
6084
6084
  return x(o), D(() => {
6085
- q(o, "style", `--size: ${i() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --duration: ${s() ?? ""};`), pe(c, "pause-animation", a());
6085
+ q(o, "style", `--size: ${i() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --duration: ${s() ?? ""};`), pe(l, "pause-animation", a());
6086
6086
  }), C(t, o), le({
6087
6087
  get color() {
6088
6088
  return n();
6089
6089
  },
6090
- set color(l) {
6091
- n(l), v();
6090
+ set color(c) {
6091
+ n(c), v();
6092
6092
  },
6093
6093
  get unit() {
6094
6094
  return r();
6095
6095
  },
6096
- set unit(l) {
6097
- r(l), v();
6096
+ set unit(c) {
6097
+ r(c), v();
6098
6098
  },
6099
6099
  get duration() {
6100
6100
  return s();
6101
6101
  },
6102
- set duration(l) {
6103
- s(l), v();
6102
+ set duration(c) {
6103
+ s(c), v();
6104
6104
  },
6105
6105
  get size() {
6106
6106
  return i();
6107
6107
  },
6108
- set size(l) {
6109
- i(l), v();
6108
+ set size(c) {
6109
+ i(c), v();
6110
6110
  },
6111
6111
  get pause() {
6112
6112
  return a();
6113
6113
  },
6114
- set pause(l) {
6115
- a(l), v();
6114
+ set pause(c) {
6115
+ a(c), v();
6116
6116
  }
6117
6117
  });
6118
6118
  }
@@ -6143,11 +6143,11 @@ const qh = {
6143
6143
  };
6144
6144
  function Bh(t, e) {
6145
6145
  oe(e, !1), be(t, qh);
6146
- let n = m(e, "color", 12, "#FF3E00"), r = m(e, "unit", 12, "px"), s = m(e, "duration", 12, "0.6s"), i = m(e, "size", 12, "60"), a = m(e, "pause", 12, !1), o = +i() / 7, c = +i() / 2 - o / 2;
6147
- var l = Uh(), u = z(l), f = O(u, 2);
6148
- return x(l), D(() => {
6149
- q(l, "style", `--size: ${i() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --moonSize: ${c ?? ""}${r() ?? ""}; --duration: ${s() ?? ""};`), pe(l, "pause-animation", a()), pe(u, "pause-animation", a()), pe(f, "pause-animation", a());
6150
- }), C(t, l), le({
6146
+ let n = m(e, "color", 12, "#FF3E00"), r = m(e, "unit", 12, "px"), s = m(e, "duration", 12, "0.6s"), i = m(e, "size", 12, "60"), a = m(e, "pause", 12, !1), o = +i() / 7, l = +i() / 2 - o / 2;
6147
+ var c = Uh(), u = z(c), f = O(u, 2);
6148
+ return x(c), D(() => {
6149
+ q(c, "style", `--size: ${i() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --moonSize: ${l ?? ""}${r() ?? ""}; --duration: ${s() ?? ""};`), pe(c, "pause-animation", a()), pe(u, "pause-animation", a()), pe(f, "pause-animation", a());
6150
+ }), C(t, c), le({
6151
6151
  get color() {
6152
6152
  return n();
6153
6153
  },
@@ -6235,10 +6235,10 @@ function Gh(t, e) {
6235
6235
  g(o, Ws(n(), 0.6));
6236
6236
  }
6237
6237
  ), nr(), xt();
6238
- var c = Hh(), l = z(c);
6239
- return x(c), D(() => {
6240
- q(c, "style", `--size: ${i() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --rgba: ${d(o) ?? ""}; --duration: ${s() ?? ""};`), pe(l, "pause-animation", a());
6241
- }), C(t, c), le({
6238
+ var l = Hh(), c = z(l);
6239
+ return x(l), D(() => {
6240
+ q(l, "style", `--size: ${i() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --rgba: ${d(o) ?? ""}; --duration: ${s() ?? ""};`), pe(c, "pause-animation", a());
6241
+ }), C(t, l), le({
6242
6242
  get color() {
6243
6243
  return n();
6244
6244
  },
@@ -6311,32 +6311,32 @@ function Zh(t, e) {
6311
6311
  get color() {
6312
6312
  return n();
6313
6313
  },
6314
- set color(c) {
6315
- n(c), v();
6314
+ set color(l) {
6315
+ n(l), v();
6316
6316
  },
6317
6317
  get unit() {
6318
6318
  return r();
6319
6319
  },
6320
- set unit(c) {
6321
- r(c), v();
6320
+ set unit(l) {
6321
+ r(l), v();
6322
6322
  },
6323
6323
  get duration() {
6324
6324
  return s();
6325
6325
  },
6326
- set duration(c) {
6327
- s(c), v();
6326
+ set duration(l) {
6327
+ s(l), v();
6328
6328
  },
6329
6329
  get size() {
6330
6330
  return i();
6331
6331
  },
6332
- set size(c) {
6333
- i(c), v();
6332
+ set size(l) {
6333
+ i(l), v();
6334
6334
  },
6335
6335
  get pause() {
6336
6336
  return a();
6337
6337
  },
6338
- set pause(c) {
6339
- a(c), v();
6338
+ set pause(l) {
6339
+ a(l), v();
6340
6340
  }
6341
6341
  });
6342
6342
  }
@@ -6378,32 +6378,32 @@ function Qh(t, e) {
6378
6378
  get color() {
6379
6379
  return n();
6380
6380
  },
6381
- set color(c) {
6382
- n(c), v();
6381
+ set color(l) {
6382
+ n(l), v();
6383
6383
  },
6384
6384
  get unit() {
6385
6385
  return r();
6386
6386
  },
6387
- set unit(c) {
6388
- r(c), v();
6387
+ set unit(l) {
6388
+ r(l), v();
6389
6389
  },
6390
6390
  get duration() {
6391
6391
  return s();
6392
6392
  },
6393
- set duration(c) {
6394
- s(c), v();
6393
+ set duration(l) {
6394
+ s(l), v();
6395
6395
  },
6396
6396
  get size() {
6397
6397
  return i();
6398
6398
  },
6399
- set size(c) {
6400
- i(c), v();
6399
+ set size(l) {
6400
+ i(l), v();
6401
6401
  },
6402
6402
  get pause() {
6403
6403
  return a();
6404
6404
  },
6405
- set pause(c) {
6406
- a(c), v();
6405
+ set pause(l) {
6406
+ a(l), v();
6407
6407
  }
6408
6408
  });
6409
6409
  }
@@ -6441,15 +6441,15 @@ const tp = {
6441
6441
  function np(t, e) {
6442
6442
  var u;
6443
6443
  oe(e, !1), be(t, tp);
6444
- let n = m(e, "color", 12, "#FF3E00"), r = m(e, "unit", 12, "px"), s = m(e, "duration", 12, "1.25s"), i = m(e, "size", 12, "60"), a = m(e, "pause", 12, !1), o = ((u = s().match(it)) == null ? void 0 : u[0]) ?? "s", c = s().replace(it, "");
6444
+ let n = m(e, "color", 12, "#FF3E00"), r = m(e, "unit", 12, "px"), s = m(e, "duration", 12, "1.25s"), i = m(e, "size", 12, "60"), a = m(e, "pause", 12, !1), o = ((u = s().match(it)) == null ? void 0 : u[0]) ?? "s", l = s().replace(it, "");
6445
6445
  xt();
6446
- var l = ep();
6447
- return lt(l, 5, () => Ot(10, 0), ot, (f, h) => {
6446
+ var c = ep();
6447
+ return lt(c, 5, () => Ot(10, 0), ot, (f, h) => {
6448
6448
  var p = Kh();
6449
6449
  D(() => {
6450
- q(p, "style", `left: ${d(h) * (+i() / 5 + (+i() / 15 - +i() / 100)) + r()}; animation-delay: ${d(h) * (+c / 8.3)}${o ?? ""};`), pe(p, "pause-animation", a());
6450
+ q(p, "style", `left: ${d(h) * (+i() / 5 + (+i() / 15 - +i() / 100)) + r()}; animation-delay: ${d(h) * (+l / 8.3)}${o ?? ""};`), pe(p, "pause-animation", a());
6451
6451
  }), C(f, p);
6452
- }), x(l), D(() => q(l, "style", `--size: ${i() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --duration: ${s() ?? ""};`)), C(t, l), le({
6452
+ }), x(c), D(() => q(c, "style", `--size: ${i() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --duration: ${s() ?? ""};`)), C(t, c), le({
6453
6453
  get color() {
6454
6454
  return n();
6455
6455
  },
@@ -6520,20 +6520,20 @@ const ip = {
6520
6520
  function ap(t, e) {
6521
6521
  var f;
6522
6522
  oe(e, !1), be(t, ip);
6523
- let n = m(e, "color", 12, "#FF3E00"), r = m(e, "unit", 12, "px"), s = m(e, "duration", 12, "1s"), i = m(e, "size", 12, "60"), a = m(e, "pause", 12, !1), o = ((f = s().match(it)) == null ? void 0 : f[0]) ?? "s", c = s().replace(it, ""), l = nn();
6523
+ let n = m(e, "color", 12, "#FF3E00"), r = m(e, "unit", 12, "px"), s = m(e, "duration", 12, "1s"), i = m(e, "size", 12, "60"), a = m(e, "pause", 12, !1), o = ((f = s().match(it)) == null ? void 0 : f[0]) ?? "s", l = s().replace(it, ""), c = nn();
6524
6524
  tr(
6525
6525
  () => On(n()),
6526
6526
  () => {
6527
- g(l, Ws(n(), 1));
6527
+ g(c, Ws(n(), 1));
6528
6528
  }
6529
6529
  ), nr(), xt();
6530
6530
  var u = sp();
6531
6531
  return lt(u, 5, () => Ot(2, 1), ot, (h, p) => {
6532
6532
  var b = rp();
6533
6533
  D(() => {
6534
- q(b, "style", `animation-delay: ${(d(p) === 1 ? "-1s" : "0s") ?? ""}; animation-duration: ${2 / +c + o};`), pe(b, "pause-animation", a());
6534
+ q(b, "style", `animation-delay: ${(d(p) === 1 ? "-1s" : "0s") ?? ""}; animation-duration: ${2 / +l + o};`), pe(b, "pause-animation", a());
6535
6535
  }), C(h, b);
6536
- }), x(u), D(() => q(u, "style", `--size: ${i() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --rgba: ${d(l) ?? ""}; --duration: ${s() ?? ""}`)), C(t, u), le({
6536
+ }), x(u), D(() => q(u, "style", `--size: ${i() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --rgba: ${d(c) ?? ""}; --duration: ${s() ?? ""}`)), C(t, u), le({
6537
6537
  get color() {
6538
6538
  return n();
6539
6539
  },
@@ -6603,32 +6603,32 @@ function cp(t, e) {
6603
6603
  get color() {
6604
6604
  return n();
6605
6605
  },
6606
- set color(c) {
6607
- n(c), v();
6606
+ set color(l) {
6607
+ n(l), v();
6608
6608
  },
6609
6609
  get unit() {
6610
6610
  return r();
6611
6611
  },
6612
- set unit(c) {
6613
- r(c), v();
6612
+ set unit(l) {
6613
+ r(l), v();
6614
6614
  },
6615
6615
  get duration() {
6616
6616
  return s();
6617
6617
  },
6618
- set duration(c) {
6619
- s(c), v();
6618
+ set duration(l) {
6619
+ s(l), v();
6620
6620
  },
6621
6621
  get size() {
6622
6622
  return i();
6623
6623
  },
6624
- set size(c) {
6625
- i(c), v();
6624
+ set size(l) {
6625
+ i(l), v();
6626
6626
  },
6627
6627
  get pause() {
6628
6628
  return a();
6629
6629
  },
6630
- set pause(c) {
6631
- a(c), v();
6630
+ set pause(l) {
6631
+ a(l), v();
6632
6632
  }
6633
6633
  });
6634
6634
  }
@@ -6669,32 +6669,32 @@ function fp(t, e) {
6669
6669
  get color() {
6670
6670
  return n();
6671
6671
  },
6672
- set color(c) {
6673
- n(c), v();
6672
+ set color(l) {
6673
+ n(l), v();
6674
6674
  },
6675
6675
  get unit() {
6676
6676
  return r();
6677
6677
  },
6678
- set unit(c) {
6679
- r(c), v();
6678
+ set unit(l) {
6679
+ r(l), v();
6680
6680
  },
6681
6681
  get duration() {
6682
6682
  return s();
6683
6683
  },
6684
- set duration(c) {
6685
- s(c), v();
6684
+ set duration(l) {
6685
+ s(l), v();
6686
6686
  },
6687
6687
  get size() {
6688
6688
  return i();
6689
6689
  },
6690
- set size(c) {
6691
- i(c), v();
6690
+ set size(l) {
6691
+ i(l), v();
6692
6692
  },
6693
6693
  get pause() {
6694
6694
  return a();
6695
6695
  },
6696
- set pause(c) {
6697
- a(c), v();
6696
+ set pause(l) {
6697
+ a(l), v();
6698
6698
  }
6699
6699
  });
6700
6700
  }
@@ -6835,8 +6835,8 @@ const dr = (t, e) => `${t}-${e}`, to = (t) => t.isCommon ? t.filename.split(".")
6835
6835
  }, Sp = (t, e, n, r) => {
6836
6836
  e(!1), g(n, ""), r();
6837
6837
  }, Ep = (t, e, n, r, s, i, a, o) => {
6838
- const c = t.target;
6839
- g(e, T(c.value));
6838
+ const l = t.target;
6839
+ g(e, T(l.value));
6840
6840
  const u = {
6841
6841
  normative: () => n(d(e), () => St.getForge(d(e), r()), (f) => g(s, T(f)), "Errore nella ricerca forge:"),
6842
6842
  suite: () => n(d(e), () => St.getForge(d(e), r()), (f) => g(s, T(f)), "Errore nella ricerca forge:"),
@@ -6855,10 +6855,10 @@ function so(t, e) {
6855
6855
  oe(e, !0), be(t, Pp);
6856
6856
  let n = m(e, "attachments", 15), r = m(e, "showDocumentSearchModal", 15), s = m(e, "modeSelected", 15);
6857
6857
  const i = { default: 3, gendoc: 1, transcriptions: 1 }, a = 3;
6858
- let o = /* @__PURE__ */ Ke(() => sr(s())), c = W(T([])), l = W(T([])), u = W(T([])), f = W(T([])), h = W(!1), p = W(""), b = /* @__PURE__ */ Ke(() => s() === "normative" || s() === "suite" ? d(l) : s() === "gendoc" ? d(u) : s() === "transcriptions" ? d(f) : d(c));
6858
+ let o = /* @__PURE__ */ Ke(() => sr(s())), l = W(T([])), c = W(T([])), u = W(T([])), f = W(T([])), h = W(!1), p = W(""), b = /* @__PURE__ */ Ke(() => s() === "normative" || s() === "suite" ? d(c) : s() === "gendoc" ? d(u) : s() === "transcriptions" ? d(f) : d(l));
6859
6859
  const w = () => {
6860
- g(c, T([])), g(l, T([])), g(u, T([])), g(f, T([]));
6861
- }, E = (H) => n()[H._id] ? (delete n()[H._id], !0) : !1, _ = (H) => Object.keys(n()).length >= H ? (alert(Ed({ count: H })), !1) : !0, k = (H) => {
6860
+ g(l, T([])), g(c, T([])), g(u, T([])), g(f, T([]));
6861
+ }, I = (H) => n()[H._id] ? (delete n()[H._id], !0) : !1, k = (H) => Object.keys(n()).length >= H ? (alert(Ed({ count: H })), !1) : !0, _ = (H) => {
6862
6862
  if (H instanceof cn)
6863
6863
  return {
6864
6864
  title: H.title,
@@ -6888,11 +6888,11 @@ function so(t, e) {
6888
6888
  isCommon: !0
6889
6889
  };
6890
6890
  throw new Error("Unknown document type");
6891
- }, I = (H) => {
6892
- if (E(H))
6891
+ }, S = (H) => {
6892
+ if (I(H))
6893
6893
  return;
6894
6894
  const Y = H instanceof mn || H instanceof dn ? i.gendoc : i.default;
6895
- _(Y) && n(n()[H._id] = k(H), !0);
6895
+ k(Y) && n(n()[H._id] = _(H), !0);
6896
6896
  }, j = async (H, Y, te, je) => {
6897
6897
  if (H.length < a) {
6898
6898
  te([]);
@@ -6908,7 +6908,7 @@ function so(t, e) {
6908
6908
  g(h, !1);
6909
6909
  }
6910
6910
  };
6911
- var S = Dp(), y = z(S), L = z(y), M = z(L), ee = z(M);
6911
+ var E = Dp(), y = z(E), L = z(y), M = z(L), ee = z(M);
6912
6912
  x(M);
6913
6913
  var ge = O(M, 2);
6914
6914
  ge.__click = [
@@ -6923,10 +6923,10 @@ function so(t, e) {
6923
6923
  p,
6924
6924
  j,
6925
6925
  s,
6926
- l,
6926
+ c,
6927
6927
  u,
6928
6928
  f,
6929
- c
6929
+ l
6930
6930
  ], x(ke), x(Ye);
6931
6931
  var We = O(Ye, 2), tt = z(We);
6932
6932
  {
@@ -6996,7 +6996,7 @@ function so(t, e) {
6996
6996
  lt(X, 21, () => d(b), ot, (F, J) => {
6997
6997
  var ie = Rp();
6998
6998
  const ce = /* @__PURE__ */ Ke(() => yp(d(J), d(o))), Le = /* @__PURE__ */ Ke(() => zp(d(J))), De = /* @__PURE__ */ Ke(() => Cp(d(J)));
6999
- ie.__click = [Ap, I, J];
6999
+ ie.__click = [Ap, S, J];
7000
7000
  var Be = z(ie), he = z(Be);
7001
7001
  x(Be);
7002
7002
  var at = O(Be, 2), Pe = z(at), qe = z(Pe, !0);
@@ -7051,7 +7051,7 @@ function so(t, e) {
7051
7051
  d(h) ? H(ft) : H(ct, !1);
7052
7052
  });
7053
7053
  }
7054
- return x(We), x(et), x(y), x(S), D(
7054
+ return x(We), x(et), x(y), x(E), D(
7055
7055
  (H, Y, te) => {
7056
7056
  Ce(ee, `${H ?? ""}
7057
7057
  ${Y ?? ""}`), q(ve, "placeholder", `${H ?? ""} ${te ?? ""} (min 3 caratteri)...`), Vl(ve, d(p));
@@ -7061,7 +7061,7 @@ function so(t, e) {
7061
7061
  () => s() == "normative" || s() == "suite" ? d(o).name : s() == "transcriptions" ? "Meeting" : $i(),
7062
7062
  () => s() == "normative" || s() == "suite" ? d(o).name : s() == "transcriptions" ? "Meeting" : $i()
7063
7063
  ]
7064
- ), C(t, S), le({
7064
+ ), C(t, E), le({
7065
7065
  get attachments() {
7066
7066
  return n();
7067
7067
  },
@@ -7153,42 +7153,42 @@ const Up = async (t) => {
7153
7153
  throw new Error("Failed to create chat");
7154
7154
  const n = await e.json();
7155
7155
  return vn.fromJson(n);
7156
- }, Hp = async (t, e, n, r, s, i, a) => {
7157
- let o, c = !1;
7156
+ }, Hp = async (t, e, n, r, s, i, a, o) => {
7157
+ let l, c = !1;
7158
7158
  try {
7159
- let l = 0;
7160
- n === "__file_uploaded__" ? (l = -1, e = " ") : n === "kb" ? l = 1 : n === "normative" ? l = 2 : n === "suite" ? l = 3 : n === "gendoc" ? l = 4 : n === "transcriptions" ? l = 5 : n === "audit_handler" ? l = 6 : n === "suite_agent" && (l = 7), await io(t, e, r);
7161
- const f = U.getUrl().replace(/^http/, "ws"), h = `chat/${t}/message?mode=${l}`, p = h.includes("?") ? "&" : "?", b = `${f}/${h}${p}akstoken=${U.getToken()}&envid=${U.getEnvironmentId()}&lang=${Lr(i)}`;
7162
- o = new WebSocket(b), a && a.addEventListener("abort", () => {
7163
- o && o.readyState === WebSocket.OPEN && (o.close(), c = !0);
7164
- }), await new Promise((w, E) => {
7165
- if (!o) return E(new Error("WebSocket not initialized"));
7166
- o.onopen = () => {
7167
- o && o.send(JSON.stringify({
7159
+ let u = 0;
7160
+ n === "__file_uploaded__" ? (u = -1, e = " ") : n === "kb" ? u = 1 : n === "normative" ? u = 2 : n === "suite" ? u = 3 : n === "gendoc" ? u = 4 : n === "transcriptions" ? u = 5 : n === "audit_handler" ? u = 6 : n === "suite_agent" && (u = 7), await io(t, e, r, s);
7161
+ const h = U.getUrl().replace(/^http/, "ws"), p = `chat/${t}/message?mode=${u}`, b = p.includes("?") ? "&" : "?", w = `${h}/${p}${b}akstoken=${U.getToken()}&envid=${U.getEnvironmentId()}&lang=${Lr(a)}`;
7162
+ l = new WebSocket(w), o && o.addEventListener("abort", () => {
7163
+ l && l.readyState === WebSocket.OPEN && (l.close(), c = !0);
7164
+ }), await new Promise((I, k) => {
7165
+ if (!l) return k(new Error("WebSocket not initialized"));
7166
+ l.onopen = () => {
7167
+ l && l.send(JSON.stringify({
7168
7168
  content: e,
7169
7169
  attachments: r,
7170
- lang: Lr(i)
7170
+ lang: Lr(a)
7171
7171
  }));
7172
- }, o.onmessage = (_) => {
7173
- let k = JSON.parse(_.data);
7174
- s(k.message, k.attachments, k.agent);
7175
- }, o.onerror = (_) => {
7176
- console.error("WebSocket error:", _), E(new Error("WebSocket connection error"));
7177
- }, o.onclose = (_) => {
7178
- _.wasClean ? w() : E(new Error(`WebSocket closed unexpectedly: ${_.code} ${_.reason}`));
7172
+ }, l.onmessage = (_) => {
7173
+ let S = JSON.parse(_.data);
7174
+ i(S.message, S.attachments, S.agent);
7175
+ }, l.onerror = (_) => {
7176
+ console.error("WebSocket error:", _), k(new Error("WebSocket connection error"));
7177
+ }, l.onclose = (_) => {
7178
+ _.wasClean ? I() : k(new Error(`WebSocket closed unexpectedly: ${_.code} ${_.reason}`));
7179
7179
  };
7180
7180
  });
7181
- } catch (l) {
7182
- if (l instanceof Error && l.name === "AbortError")
7181
+ } catch (u) {
7182
+ if (u instanceof Error && u.name === "AbortError")
7183
7183
  console.log("Frontend: Request aborted by user"), c = !0;
7184
7184
  else
7185
- throw console.error("Error sending message:", l), l;
7185
+ throw console.error("Error sending message:", u), u;
7186
7186
  } finally {
7187
- if (o)
7187
+ if (l)
7188
7188
  try {
7189
- (o.readyState === WebSocket.OPEN || o.readyState === WebSocket.CONNECTING) && o.close();
7190
- } catch (l) {
7191
- console.error("Error closing WebSocket:", l);
7189
+ (l.readyState === WebSocket.OPEN || l.readyState === WebSocket.CONNECTING) && l.close();
7190
+ } catch (u) {
7191
+ console.error("Error closing WebSocket:", u);
7192
7192
  }
7193
7193
  }
7194
7194
  return c;
@@ -7214,7 +7214,7 @@ const Up = async (t) => {
7214
7214
  }
7215
7215
  })).ok)
7216
7216
  throw new Error("Failed to delete chat");
7217
- }, io = async (t, e, n) => {
7217
+ }, io = async (t, e, n, r) => {
7218
7218
  if (!(await fetch(`${U.getUrl()}/chat/${t}/message`, {
7219
7219
  method: "POST",
7220
7220
  headers: {
@@ -7225,7 +7225,8 @@ const Up = async (t) => {
7225
7225
  },
7226
7226
  body: JSON.stringify({
7227
7227
  content: e,
7228
- attachments: n
7228
+ attachments: n,
7229
+ state: r
7229
7230
  })
7230
7231
  })).ok)
7231
7232
  throw new Error("Failed to insert message");
@@ -7330,7 +7331,7 @@ const vg = {
7330
7331
  };
7331
7332
  function ao(t, e) {
7332
7333
  oe(e, !0), be(t, vg);
7333
- let n = m(e, "sendMessage", 7), r = m(e, "stopMessage", 7), s = m(e, "loading", 15), i = m(e, "languageSelected", 15), a = m(e, "modeSelected", 15), o = m(e, "attachments", 15), c = m(e, "userLevel", 15), l = m(e, "uploadFiles", 7), u = m(e, "actChat", 15), f = m(e, "streamMessage", 15), h = m(e, "uploadingFileName", 15), p = m(e, "uploadProgress", 15), b = W(""), w = W(null), E, _ = W(T([])), k = W(!1), I = W(!1), j = W(!1), S = W(!1), y = W(null), L = /* @__PURE__ */ Ke(() => sr(a()));
7334
+ let n = m(e, "sendMessage", 7), r = m(e, "stopMessage", 7), s = m(e, "loading", 15), i = m(e, "languageSelected", 15), a = m(e, "modeSelected", 15), o = m(e, "attachments", 15), l = m(e, "userLevel", 15), c = m(e, "uploadFiles", 7), u = m(e, "actChat", 15), f = m(e, "streamMessage", 15), h = m(e, "uploadingFileName", 15), p = m(e, "uploadProgress", 15), b = W(""), w = W(null), I, k = W(T([])), _ = W(!1), S = W(!1), j = W(!1), E = W(!1), y = W(null), L = /* @__PURE__ */ Ke(() => sr(a()));
7334
7335
  const M = 20, ee = 5, ge = 0.5;
7335
7336
  function et(F, J) {
7336
7337
  return F ? a() === "normative" || a() === "suite" ? d(L).name : "" : J;
@@ -7339,7 +7340,7 @@ function ao(t, e) {
7339
7340
  g(b, ""), o({}), d(w) && (d(w).style.height = "auto");
7340
7341
  }
7341
7342
  function ke() {
7342
- E != null && E.stream && E.stream.getTracks().forEach((F) => F.stop());
7343
+ I != null && I.stream && I.stream.getTracks().forEach((F) => F.stop());
7343
7344
  }
7344
7345
  const ve = () => {
7345
7346
  if (!d(w)) return;
@@ -7360,27 +7361,27 @@ function ao(t, e) {
7360
7361
  if (!s())
7361
7362
  try {
7362
7363
  const F = await navigator.mediaDevices.getUserMedia({ audio: !0 });
7363
- E = new MediaRecorder(F, { mimeType: "audio/webm" }), E.ondataavailable = (J) => {
7364
- J.data.size > 0 && d(_).push(J.data);
7365
- }, E.onstop = async () => {
7366
- g(I, !0);
7367
- const J = new Blob(d(_), { type: "audio/webm" });
7364
+ I = new MediaRecorder(F, { mimeType: "audio/webm" }), I.ondataavailable = (J) => {
7365
+ J.data.size > 0 && d(k).push(J.data);
7366
+ }, I.onstop = async () => {
7367
+ g(S, !0);
7368
+ const J = new Blob(d(k), { type: "audio/webm" });
7368
7369
  try {
7369
7370
  const ie = await Js.getText(J, i());
7370
7371
  ie && (g(b, T(ie)), tt());
7371
7372
  } finally {
7372
- g(I, !1);
7373
+ g(S, !1);
7373
7374
  }
7374
- }, g(k, !0), E.start();
7375
+ }, g(_, !0), I.start();
7375
7376
  } catch (F) {
7376
7377
  console.error("Failed to start recording:", F);
7377
7378
  }
7378
7379
  }, ct = () => {
7379
- E && (E.stop(), ke(), g(k, !1), g(_, T([])));
7380
+ I && (I.stop(), ke(), g(_, !1), g(k, T([])));
7380
7381
  }, H = () => {
7381
7382
  g(j, !1);
7382
7383
  const F = document.createElement("input");
7383
- F.type = "file", F.multiple = !1, F.onchange = async (J) => {
7384
+ F.type = "file", F.multiple = !0, F.onchange = async (J) => {
7384
7385
  var ce, Le, De;
7385
7386
  const ie = J.target;
7386
7387
  if (ie.files && ie.files.length > 0) {
@@ -7397,7 +7398,7 @@ function ao(t, e) {
7397
7398
  },
7398
7399
  300
7399
7400
  );
7400
- const we = await l()(Pe, he, (P) => {
7401
+ const we = await c()(Pe, he, (P) => {
7401
7402
  Ie = P, P > 50 && he && (clearInterval(he), he = null, p(75 + P * 0.25));
7402
7403
  });
7403
7404
  he && (clearInterval(he), he = null), h(""), p(0);
@@ -7460,7 +7461,7 @@ function ao(t, e) {
7460
7461
  ne.__click = [
7461
7462
  Kp,
7462
7463
  j,
7463
- S
7464
+ E
7464
7465
  ];
7465
7466
  var ue = O(z(ne), 2), R = z(ue);
7466
7467
  x(ue), x(ne);
@@ -7511,7 +7512,7 @@ function ao(t, e) {
7511
7512
  N.value = (N.__value = "audit_handler") == null ? "" : "audit_handler", C(se, N);
7512
7513
  };
7513
7514
  K(nt, (se) => {
7514
- c() >= 50 && se(Ze);
7515
+ l() >= 50 && se(Ze);
7515
7516
  });
7516
7517
  }
7517
7518
  var Ge = O(nt);
@@ -7586,7 +7587,7 @@ function ao(t, e) {
7586
7587
  K(
7587
7588
  ne,
7588
7589
  (Me) => {
7589
- d(I) ? Me(ue) : Me(R, !1);
7590
+ d(S) ? Me(ue) : Me(R, !1);
7590
7591
  },
7591
7592
  !0
7592
7593
  );
@@ -7594,7 +7595,7 @@ function ao(t, e) {
7594
7595
  C(se, N);
7595
7596
  };
7596
7597
  K(Ve, (se) => {
7597
- d(k) ? se(Xe) : se(He, !1);
7598
+ d(_) ? se(Xe) : se(He, !1);
7598
7599
  });
7599
7600
  }
7600
7601
  var rt = O(Ve, 2);
@@ -7667,10 +7668,10 @@ function ao(t, e) {
7667
7668
  o(J);
7668
7669
  },
7669
7670
  get showDocumentSearchModal() {
7670
- return d(S);
7671
+ return d(E);
7671
7672
  },
7672
7673
  set showDocumentSearchModal(J) {
7673
- g(S, T(J));
7674
+ g(E, T(J));
7674
7675
  },
7675
7676
  get modeSelected() {
7676
7677
  return a();
@@ -7681,7 +7682,7 @@ function ao(t, e) {
7681
7682
  });
7682
7683
  };
7683
7684
  K(G, (F) => {
7684
- d(S) && F(X);
7685
+ d(E) && F(X);
7685
7686
  });
7686
7687
  }
7687
7688
  return Dt(3, fe, () => rn, () => ({ duration: 300, delay: 200 })), C(t, Ue), le({
@@ -7722,16 +7723,16 @@ function ao(t, e) {
7722
7723
  o(F), v();
7723
7724
  },
7724
7725
  get userLevel() {
7725
- return c();
7726
+ return l();
7726
7727
  },
7727
7728
  set userLevel(F) {
7728
- c(F), v();
7729
+ l(F), v();
7729
7730
  },
7730
7731
  get uploadFiles() {
7731
- return l();
7732
+ return c();
7732
7733
  },
7733
7734
  set uploadFiles(F) {
7734
- l(F), v();
7735
+ c(F), v();
7735
7736
  },
7736
7737
  get actChat() {
7737
7738
  return u();
@@ -7790,13 +7791,13 @@ const oo = /^[a-z0-9]+(-[a-z0-9]+)*$/, Zr = (t, e, n, r = "") => {
7790
7791
  if (s.length > 3 || !s.length)
7791
7792
  return null;
7792
7793
  if (s.length > 1) {
7793
- const o = s.pop(), c = s.pop(), l = {
7794
+ const o = s.pop(), l = s.pop(), c = {
7794
7795
  // Allow provider without '@': "provider:prefix:name"
7795
7796
  provider: s.length > 0 ? s[0] : r,
7796
- prefix: c,
7797
+ prefix: l,
7797
7798
  name: o
7798
7799
  };
7799
- return e && !mr(l) ? null : l;
7800
+ return e && !mr(c) ? null : c;
7800
7801
  }
7801
7802
  const i = s[0], a = i.split("-");
7802
7803
  if (a.length > 1) {
@@ -7856,8 +7857,8 @@ function bg(t, e) {
7856
7857
  return s[a] = [];
7857
7858
  if (!(a in s)) {
7858
7859
  s[a] = null;
7859
- const o = r[a] && r[a].parent, c = o && i(o);
7860
- c && (s[a] = [o].concat(c));
7860
+ const o = r[a] && r[a].parent, l = o && i(o);
7861
+ l && (s[a] = [o].concat(l));
7861
7862
  }
7862
7863
  return s[a];
7863
7864
  }
@@ -8071,45 +8072,45 @@ function Lg(t, e) {
8071
8072
  };
8072
8073
  let i = n.body;
8073
8074
  [n, r].forEach((w) => {
8074
- const E = [], _ = w.hFlip, k = w.vFlip;
8075
- let I = w.rotate;
8076
- _ ? k ? I += 2 : (E.push(
8075
+ const I = [], k = w.hFlip, _ = w.vFlip;
8076
+ let S = w.rotate;
8077
+ k ? _ ? S += 2 : (I.push(
8077
8078
  "translate(" + (s.width + s.left).toString() + " " + (0 - s.top).toString() + ")"
8078
- ), E.push("scale(-1 1)"), s.top = s.left = 0) : k && (E.push(
8079
+ ), I.push("scale(-1 1)"), s.top = s.left = 0) : _ && (I.push(
8079
8080
  "translate(" + (0 - s.left).toString() + " " + (s.height + s.top).toString() + ")"
8080
- ), E.push("scale(1 -1)"), s.top = s.left = 0);
8081
+ ), I.push("scale(1 -1)"), s.top = s.left = 0);
8081
8082
  let j;
8082
- switch (I < 0 && (I -= Math.floor(I / 4) * 4), I = I % 4, I) {
8083
+ switch (S < 0 && (S -= Math.floor(S / 4) * 4), S = S % 4, S) {
8083
8084
  case 1:
8084
- j = s.height / 2 + s.top, E.unshift(
8085
+ j = s.height / 2 + s.top, I.unshift(
8085
8086
  "rotate(90 " + j.toString() + " " + j.toString() + ")"
8086
8087
  );
8087
8088
  break;
8088
8089
  case 2:
8089
- E.unshift(
8090
+ I.unshift(
8090
8091
  "rotate(180 " + (s.width / 2 + s.left).toString() + " " + (s.height / 2 + s.top).toString() + ")"
8091
8092
  );
8092
8093
  break;
8093
8094
  case 3:
8094
- j = s.width / 2 + s.left, E.unshift(
8095
+ j = s.width / 2 + s.left, I.unshift(
8095
8096
  "rotate(-90 " + j.toString() + " " + j.toString() + ")"
8096
8097
  );
8097
8098
  break;
8098
8099
  }
8099
- I % 2 === 1 && (s.left !== s.top && (j = s.left, s.left = s.top, s.top = j), s.width !== s.height && (j = s.width, s.width = s.height, s.height = j)), E.length && (i = $g(
8100
+ S % 2 === 1 && (s.left !== s.top && (j = s.left, s.left = s.top, s.top = j), s.width !== s.height && (j = s.width, s.width = s.height, s.height = j)), I.length && (i = $g(
8100
8101
  i,
8101
- '<g transform="' + E.join(" ") + '">',
8102
+ '<g transform="' + I.join(" ") + '">',
8102
8103
  "</g>"
8103
8104
  ));
8104
8105
  });
8105
- const a = r.width, o = r.height, c = s.width, l = s.height;
8106
+ const a = r.width, o = r.height, l = s.width, c = s.height;
8106
8107
  let u, f;
8107
- a === null ? (f = o === null ? "1em" : o === "auto" ? l : o, u = Pi(f, c / l)) : (u = a === "auto" ? c : a, f = o === null ? Pi(u, l / c) : o === "auto" ? l : o);
8108
- const h = {}, p = (w, E) => {
8109
- Ag(E) || (h[w] = E.toString());
8108
+ a === null ? (f = o === null ? "1em" : o === "auto" ? c : o, u = Pi(f, l / c)) : (u = a === "auto" ? l : a, f = o === null ? Pi(u, c / l) : o === "auto" ? c : o);
8109
+ const h = {}, p = (w, I) => {
8110
+ Ag(I) || (h[w] = I.toString());
8110
8111
  };
8111
8112
  p("width", u), p("height", f);
8112
- const b = [s.left, s.top, c, l];
8113
+ const b = [s.left, s.top, l, c];
8113
8114
  return h.viewBox = b.join(" "), {
8114
8115
  attributes: h,
8115
8116
  viewBox: b,
@@ -8221,13 +8222,13 @@ const qg = (t, e, n) => {
8221
8222
  prefix: e,
8222
8223
  icons: []
8223
8224
  }, o = 0;
8224
- return n.forEach((c, l) => {
8225
- o += c.length + 1, o >= s && l > 0 && (r.push(a), a = {
8225
+ return n.forEach((l, c) => {
8226
+ o += l.length + 1, o >= s && c > 0 && (r.push(a), a = {
8226
8227
  type: i,
8227
8228
  provider: t,
8228
8229
  prefix: e,
8229
8230
  icons: []
8230
- }, o = c.length), a.icons.push(c);
8231
+ }, o = l.length), a.icons.push(l);
8231
8232
  }), r.push(a), r;
8232
8233
  };
8233
8234
  function Bg(t) {
@@ -8246,10 +8247,10 @@ const Hg = (t, e, n) => {
8246
8247
  let r = Bg(e.provider);
8247
8248
  switch (e.type) {
8248
8249
  case "icons": {
8249
- const i = e.prefix, o = e.icons.join(","), c = new URLSearchParams({
8250
+ const i = e.prefix, o = e.icons.join(","), l = new URLSearchParams({
8250
8251
  icons: o
8251
8252
  });
8252
- r += i + ".json?" + c.toString();
8253
+ r += i + ".json?" + l.toString();
8253
8254
  break;
8254
8255
  }
8255
8256
  case "custom": {
@@ -8304,9 +8305,9 @@ function Gg(t) {
8304
8305
  if (r.name === s.name && r.prefix === s.prefix && r.provider === s.provider)
8305
8306
  return;
8306
8307
  r = s;
8307
- const i = s.provider, a = s.prefix, o = s.name, c = n[i] || (n[i] = /* @__PURE__ */ Object.create(null)), l = c[a] || (c[a] = An(i, a));
8308
+ const i = s.provider, a = s.prefix, o = s.name, l = n[i] || (n[i] = /* @__PURE__ */ Object.create(null)), c = l[a] || (l[a] = An(i, a));
8308
8309
  let u;
8309
- o in l.icons ? u = e.loaded : a === "" || l.missing.has(o) ? u = e.missing : u = e.pending;
8310
+ o in c.icons ? u = e.loaded : a === "" || c.missing.has(o) ? u = e.missing : u = e.pending;
8310
8311
  const f = {
8311
8312
  provider: i,
8312
8313
  prefix: a,
@@ -8331,21 +8332,21 @@ function Jg(t) {
8331
8332
  const r = t.provider, s = t.prefix;
8332
8333
  e.forEach((i) => {
8333
8334
  const a = i.icons, o = a.pending.length;
8334
- a.pending = a.pending.filter((c) => {
8335
- if (c.prefix !== s)
8335
+ a.pending = a.pending.filter((l) => {
8336
+ if (l.prefix !== s)
8336
8337
  return !0;
8337
- const l = c.name;
8338
- if (t.icons[l])
8338
+ const c = l.name;
8339
+ if (t.icons[c])
8339
8340
  a.loaded.push({
8340
8341
  provider: r,
8341
8342
  prefix: s,
8342
- name: l
8343
+ name: c
8343
8344
  });
8344
- else if (t.missing.has(l))
8345
+ else if (t.missing.has(c))
8345
8346
  a.missing.push({
8346
8347
  provider: r,
8347
8348
  prefix: s,
8348
- name: l
8349
+ name: c
8349
8350
  });
8350
8351
  else
8351
8352
  return n = !0, !0;
@@ -8402,43 +8403,43 @@ function Qg(t, e, n, r) {
8402
8403
  } else
8403
8404
  a = t.resources.slice(i).concat(t.resources.slice(0, i));
8404
8405
  const o = Date.now();
8405
- let c = "pending", l = 0, u, f = null, h = [], p = [];
8406
+ let l = "pending", c = 0, u, f = null, h = [], p = [];
8406
8407
  typeof r == "function" && p.push(r);
8407
8408
  function b() {
8408
8409
  f && (clearTimeout(f), f = null);
8409
8410
  }
8410
8411
  function w() {
8411
- c === "pending" && (c = "aborted"), b(), h.forEach((y) => {
8412
+ l === "pending" && (l = "aborted"), b(), h.forEach((y) => {
8412
8413
  y.status === "pending" && (y.status = "aborted");
8413
8414
  }), h = [];
8414
8415
  }
8415
- function E(y, L) {
8416
+ function I(y, L) {
8416
8417
  L && (p = []), typeof y == "function" && p.push(y);
8417
8418
  }
8418
- function _() {
8419
+ function k() {
8419
8420
  return {
8420
8421
  startTime: o,
8421
8422
  payload: e,
8422
- status: c,
8423
- queriesSent: l,
8423
+ status: l,
8424
+ queriesSent: c,
8424
8425
  queriesPending: h.length,
8425
- subscribe: E,
8426
+ subscribe: I,
8426
8427
  abort: w
8427
8428
  };
8428
8429
  }
8429
- function k() {
8430
- c = "failed", p.forEach((y) => {
8430
+ function _() {
8431
+ l = "failed", p.forEach((y) => {
8431
8432
  y(void 0, u);
8432
8433
  });
8433
8434
  }
8434
- function I() {
8435
+ function S() {
8435
8436
  h.forEach((y) => {
8436
8437
  y.status === "pending" && (y.status = "aborted");
8437
8438
  }), h = [];
8438
8439
  }
8439
8440
  function j(y, L, M) {
8440
8441
  const ee = L !== "success";
8441
- switch (h = h.filter((ge) => ge !== y), c) {
8442
+ switch (h = h.filter((ge) => ge !== y), l) {
8442
8443
  case "pending":
8443
8444
  break;
8444
8445
  case "failed":
@@ -8449,34 +8450,34 @@ function Qg(t, e, n, r) {
8449
8450
  return;
8450
8451
  }
8451
8452
  if (L === "abort") {
8452
- u = M, k();
8453
+ u = M, _();
8453
8454
  return;
8454
8455
  }
8455
8456
  if (ee) {
8456
- u = M, h.length || (a.length ? S() : k());
8457
+ u = M, h.length || (a.length ? E() : _());
8457
8458
  return;
8458
8459
  }
8459
- if (b(), I(), !t.random) {
8460
+ if (b(), S(), !t.random) {
8460
8461
  const ge = t.resources.indexOf(y.resource);
8461
8462
  ge !== -1 && ge !== t.index && (t.index = ge);
8462
8463
  }
8463
- c = "completed", p.forEach((ge) => {
8464
+ l = "completed", p.forEach((ge) => {
8464
8465
  ge(M);
8465
8466
  });
8466
8467
  }
8467
- function S() {
8468
- if (c !== "pending")
8468
+ function E() {
8469
+ if (l !== "pending")
8469
8470
  return;
8470
8471
  b();
8471
8472
  const y = a.shift();
8472
8473
  if (y === void 0) {
8473
8474
  if (h.length) {
8474
8475
  f = setTimeout(() => {
8475
- b(), c === "pending" && (I(), k());
8476
+ b(), l === "pending" && (S(), _());
8476
8477
  }, t.timeout);
8477
8478
  return;
8478
8479
  }
8479
- k();
8480
+ _();
8480
8481
  return;
8481
8482
  }
8482
8483
  const L = {
@@ -8486,9 +8487,9 @@ function Qg(t, e, n, r) {
8486
8487
  j(L, M, ee);
8487
8488
  }
8488
8489
  };
8489
- h.push(L), l++, f = setTimeout(S, t.rotate), n(y, e, L.callback);
8490
+ h.push(L), c++, f = setTimeout(E, t.rotate), n(y, e, L.callback);
8490
8491
  }
8491
- return setTimeout(S), _;
8492
+ return setTimeout(E), k;
8492
8493
  }
8493
8494
  function mo(t) {
8494
8495
  const e = {
@@ -8499,19 +8500,19 @@ function mo(t) {
8499
8500
  function r() {
8500
8501
  n = n.filter((o) => o().status === "pending");
8501
8502
  }
8502
- function s(o, c, l) {
8503
+ function s(o, l, c) {
8503
8504
  const u = Qg(
8504
8505
  e,
8505
8506
  o,
8506
- c,
8507
+ l,
8507
8508
  (f, h) => {
8508
- r(), l && l(f, h);
8509
+ r(), c && c(f, h);
8509
8510
  }
8510
8511
  );
8511
8512
  return n.push(u), u;
8512
8513
  }
8513
8514
  function i(o) {
8514
- return n.find((c) => o(c)) || null;
8515
+ return n.find((l) => o(l)) || null;
8515
8516
  }
8516
8517
  return {
8517
8518
  query: s,
@@ -8633,12 +8634,12 @@ function rv(t, e) {
8633
8634
  const { valid: a, invalid: o } = nv(s);
8634
8635
  if (o.length && qn(t, o, null), !a.length)
8635
8636
  return;
8636
- const c = r.match(oo) ? Cs(n) : null;
8637
- if (!c) {
8637
+ const l = r.match(oo) ? Cs(n) : null;
8638
+ if (!l) {
8638
8639
  qn(t, a, null);
8639
8640
  return;
8640
8641
  }
8641
- c.prepare(n, r, a).forEach((u) => {
8642
+ l.prepare(n, r, a).forEach((u) => {
8642
8643
  ev(n, u, (f) => {
8643
8644
  qn(t, u.icons, f);
8644
8645
  });
@@ -8648,33 +8649,33 @@ function rv(t, e) {
8648
8649
  const sv = (t, e) => {
8649
8650
  const n = Vg(t, !0, ho()), r = Gg(n);
8650
8651
  if (!r.pending.length) {
8651
- let c = !0;
8652
+ let l = !0;
8652
8653
  return e && setTimeout(() => {
8653
- c && e(
8654
+ l && e(
8654
8655
  r.loaded,
8655
8656
  r.missing,
8656
8657
  r.pending,
8657
8658
  Ni
8658
8659
  );
8659
8660
  }), () => {
8660
- c = !1;
8661
+ l = !1;
8661
8662
  };
8662
8663
  }
8663
8664
  const s = /* @__PURE__ */ Object.create(null), i = [];
8664
8665
  let a, o;
8665
- return r.pending.forEach((c) => {
8666
- const { provider: l, prefix: u } = c;
8667
- if (u === o && l === a)
8666
+ return r.pending.forEach((l) => {
8667
+ const { provider: c, prefix: u } = l;
8668
+ if (u === o && c === a)
8668
8669
  return;
8669
- a = l, o = u, i.push(An(l, u));
8670
- const f = s[l] || (s[l] = /* @__PURE__ */ Object.create(null));
8670
+ a = c, o = u, i.push(An(c, u));
8671
+ const f = s[c] || (s[c] = /* @__PURE__ */ Object.create(null));
8671
8672
  f[u] || (f[u] = []);
8672
- }), r.pending.forEach((c) => {
8673
- const { provider: l, prefix: u, name: f } = c, h = An(l, u), p = h.pendingIcons || (h.pendingIcons = /* @__PURE__ */ new Set());
8674
- p.has(f) || (p.add(f), s[l][u].push(f));
8675
- }), i.forEach((c) => {
8676
- const l = s[c.provider][c.prefix];
8677
- l.length && rv(c, l);
8673
+ }), r.pending.forEach((l) => {
8674
+ const { provider: c, prefix: u, name: f } = l, h = An(c, u), p = h.pendingIcons || (h.pendingIcons = /* @__PURE__ */ new Set());
8675
+ p.has(f) || (p.add(f), s[c][u].push(f));
8676
+ }), i.forEach((l) => {
8677
+ const c = s[l.provider][l.prefix];
8678
+ c.length && rv(l, c);
8678
8679
  }), e ? Zg(e, r, i) : Ni;
8679
8680
  };
8680
8681
  function iv(t, e) {
@@ -8776,10 +8777,10 @@ function vv(t, e) {
8776
8777
  const n = iv(qi, e), r = e.mode || "svg", s = r === "svg" ? { ...hv } : {};
8777
8778
  t.body.indexOf("xlink:") === -1 && delete s["xmlns:xlink"];
8778
8779
  let i = typeof e.style == "string" ? e.style : "";
8779
- for (let _ in e) {
8780
- const k = e[_];
8781
- if (k !== void 0)
8782
- switch (_) {
8780
+ for (let k in e) {
8781
+ const _ = e[k];
8782
+ if (_ !== void 0)
8783
+ switch (k) {
8783
8784
  case "icon":
8784
8785
  case "style":
8785
8786
  case "onLoad":
@@ -8789,52 +8790,52 @@ function vv(t, e) {
8789
8790
  case "inline":
8790
8791
  case "hFlip":
8791
8792
  case "vFlip":
8792
- n[_] = k === !0 || k === "true" || k === 1;
8793
+ n[k] = _ === !0 || _ === "true" || _ === 1;
8793
8794
  break;
8794
8795
  case "flip":
8795
- typeof k == "string" && ov(n, k);
8796
+ typeof _ == "string" && ov(n, _);
8796
8797
  break;
8797
8798
  case "color":
8798
- i = i + (i.length > 0 && i.trim().slice(-1) !== ";" ? ";" : "") + "color: " + k + "; ";
8799
+ i = i + (i.length > 0 && i.trim().slice(-1) !== ";" ? ";" : "") + "color: " + _ + "; ";
8799
8800
  break;
8800
8801
  case "rotate":
8801
- typeof k == "string" ? n[_] = lv(k) : typeof k == "number" && (n[_] = k);
8802
+ typeof _ == "string" ? n[k] = lv(_) : typeof _ == "number" && (n[k] = _);
8802
8803
  break;
8803
8804
  case "ariaHidden":
8804
8805
  case "aria-hidden":
8805
- k !== !0 && k !== "true" && delete s["aria-hidden"];
8806
+ _ !== !0 && _ !== "true" && delete s["aria-hidden"];
8806
8807
  break;
8807
8808
  default:
8808
- if (_.slice(0, 3) === "on:")
8809
+ if (k.slice(0, 3) === "on:")
8809
8810
  break;
8810
- qi[_] === void 0 && (s[_] = k);
8811
+ qi[k] === void 0 && (s[k] = _);
8811
8812
  }
8812
8813
  }
8813
8814
  const a = Lg(t, n), o = a.attributes;
8814
8815
  if (n.inline && (i = "vertical-align: -0.125em; " + i), r === "svg") {
8815
8816
  Object.assign(s, o), i !== "" && (s.style = i);
8816
- let _ = 0, k = e.id;
8817
- return typeof k == "string" && (k = k.replace(/-/g, "_")), {
8817
+ let k = 0, _ = e.id;
8818
+ return typeof _ == "string" && (_ = _.replace(/-/g, "_")), {
8818
8819
  svg: !0,
8819
8820
  attributes: s,
8820
- body: Dg(a.body, k ? () => k + "ID" + _++ : "iconifySvelte")
8821
+ body: Dg(a.body, _ ? () => _ + "ID" + k++ : "iconifySvelte")
8821
8822
  };
8822
8823
  }
8823
- const { body: c, width: l, height: u } = t, f = r === "mask" || (r === "bg" ? !1 : c.indexOf("currentColor") !== -1), h = cv(c, {
8824
+ const { body: l, width: c, height: u } = t, f = r === "mask" || (r === "bg" ? !1 : l.indexOf("currentColor") !== -1), h = cv(l, {
8824
8825
  ...o,
8825
- width: l + "",
8826
+ width: c + "",
8826
8827
  height: u + ""
8827
8828
  }), b = {
8828
8829
  "--svg": fv(h)
8829
- }, w = (_) => {
8830
- const k = o[_];
8831
- k && (b[_] = gv(k));
8830
+ }, w = (k) => {
8831
+ const _ = o[k];
8832
+ _ && (b[k] = gv(_));
8832
8833
  };
8833
8834
  w("width"), w("height"), Object.assign(b, pv, f ? Ss : bo);
8834
- let E = "";
8835
- for (const _ in b)
8836
- E += _ + ": " + b[_] + ";";
8837
- return s.style = E + i, {
8835
+ let I = "";
8836
+ for (const k in b)
8837
+ I += k + ": " + b[k] + ";";
8838
+ return s.style = I + i, {
8838
8839
  svg: !1,
8839
8840
  attributes: s
8840
8841
  };
@@ -8888,8 +8889,8 @@ function mv(t, e, n, r, s) {
8888
8889
  abort: sv([a], r)
8889
8890
  }), null;
8890
8891
  i(), e.name !== t && (e.name = t, s && !e.destroyed && s(t));
8891
- const c = ["iconify"];
8892
- return a.prefix !== "" && c.push("iconify--" + a.prefix), a.provider !== "" && c.push("iconify--" + a.provider), { data: o, classes: c };
8892
+ const l = ["iconify"];
8893
+ return a.prefix !== "" && l.push("iconify--" + a.prefix), a.provider !== "" && l.push("iconify--" + a.provider), { data: o, classes: l };
8893
8894
  }
8894
8895
  function Yi(t, e) {
8895
8896
  return t ? vv({
@@ -8919,7 +8920,7 @@ function an(t, e) {
8919
8920
  const o = (h) => {
8920
8921
  typeof n.onLoad == "function" && n.onLoad(h), lc()("load", { icon: h });
8921
8922
  };
8922
- function c() {
8923
+ function l() {
8923
8924
  Qn(i);
8924
8925
  }
8925
8926
  Jr(() => {
@@ -8930,27 +8931,27 @@ function an(t, e) {
8930
8931
  () => (d(i), On(n), d(s), d(r), d(a), Yi),
8931
8932
  () => {
8932
8933
  d(i);
8933
- const h = !!n.ssr || d(s), p = mv(n.icon, d(r), h, c, o);
8934
+ const h = !!n.ssr || d(s), p = mv(n.icon, d(r), h, l, o);
8934
8935
  g(a, p ? Yi(p.data, n) : null), d(a) && p.classes && rs(a, d(a).attributes.class = (typeof n.class == "string" ? n.class + " " : "") + p.classes.join(" "));
8935
8936
  }
8936
8937
  ), nr(), xt();
8937
- var l = kt(), u = st(l);
8938
+ var c = kt(), u = st(c);
8938
8939
  {
8939
8940
  var f = (h) => {
8940
8941
  var p = kt(), b = st(p);
8941
8942
  {
8942
- var w = (_) => {
8943
- var k = bv();
8944
- let I;
8945
- var j = z(k);
8946
- gr(j, () => d(a).body, !0, !1), x(k), D(() => I = bi(k, I, { ...d(a).attributes }, void 0, !0)), C(_, k);
8947
- }, E = (_) => {
8948
- var k = wv();
8949
- let I;
8950
- D(() => I = bi(k, I, { ...d(a).attributes })), C(_, k);
8943
+ var w = (k) => {
8944
+ var _ = bv();
8945
+ let S;
8946
+ var j = z(_);
8947
+ gr(j, () => d(a).body, !0, !1), x(_), D(() => S = bi(_, S, { ...d(a).attributes }, void 0, !0)), C(k, _);
8948
+ }, I = (k) => {
8949
+ var _ = wv();
8950
+ let S;
8951
+ D(() => S = bi(_, S, { ...d(a).attributes })), C(k, _);
8951
8952
  };
8952
- K(b, (_) => {
8953
- d(a).svg ? _(w) : _(E, !1);
8953
+ K(b, (k) => {
8954
+ d(a).svg ? k(w) : k(I, !1);
8954
8955
  });
8955
8956
  }
8956
8957
  C(h, p);
@@ -8959,7 +8960,7 @@ function an(t, e) {
8959
8960
  d(a) && h(f);
8960
8961
  });
8961
8962
  }
8962
- C(t, l), le();
8963
+ C(t, c), le();
8963
8964
  }
8964
8965
  de(an, {}, [], [], !0);
8965
8966
  function Ks() {
@@ -9149,11 +9150,11 @@ function Wi(t) {
9149
9150
  }
9150
9151
  function Zi(t, e) {
9151
9152
  var i;
9152
- const n = t.replace(ht.findPipe, (a, o, c) => {
9153
- let l = !1, u = o;
9154
- for (; --u >= 0 && c[u] === "\\"; )
9155
- l = !l;
9156
- return l ? "|" : " |";
9153
+ const n = t.replace(ht.findPipe, (a, o, l) => {
9154
+ let c = !1, u = o;
9155
+ for (; --u >= 0 && l[u] === "\\"; )
9156
+ c = !c;
9157
+ return c ? "|" : " |";
9157
9158
  }), r = n.split(ht.splitPipe);
9158
9159
  let s = 0;
9159
9160
  if (r[0].trim() || r.shift(), r.length > 0 && !((i = r.at(-1)) != null && i.trim()) && r.pop(), e)
@@ -9192,7 +9193,7 @@ function Vi(t, e, n, r, s) {
9192
9193
  const i = e.href, a = e.title || null, o = t[1].replace(s.other.outputLinkReplace, "$1");
9193
9194
  if (t[0].charAt(0) !== "!") {
9194
9195
  r.state.inLink = !0;
9195
- const c = {
9196
+ const l = {
9196
9197
  type: "link",
9197
9198
  raw: n,
9198
9199
  href: i,
@@ -9200,7 +9201,7 @@ function Vi(t, e, n, r, s) {
9200
9201
  text: o,
9201
9202
  tokens: r.inlineTokens(o)
9202
9203
  };
9203
- return r.state.inLink = !1, c;
9204
+ return r.state.inLink = !1, l;
9204
9205
  }
9205
9206
  return {
9206
9207
  type: "image",
@@ -9302,17 +9303,17 @@ class Dr {
9302
9303
  const a = [];
9303
9304
  for (; r.length > 0; ) {
9304
9305
  let o = !1;
9305
- const c = [];
9306
- let l;
9307
- for (l = 0; l < r.length; l++)
9308
- if (this.rules.other.blockquoteStart.test(r[l]))
9309
- c.push(r[l]), o = !0;
9306
+ const l = [];
9307
+ let c;
9308
+ for (c = 0; c < r.length; c++)
9309
+ if (this.rules.other.blockquoteStart.test(r[c]))
9310
+ l.push(r[c]), o = !0;
9310
9311
  else if (!o)
9311
- c.push(r[l]);
9312
+ l.push(r[c]);
9312
9313
  else
9313
9314
  break;
9314
- r = r.slice(l);
9315
- const u = c.join(`
9315
+ r = r.slice(c);
9316
+ const u = l.join(`
9316
9317
  `), f = u.replace(this.rules.other.blockquoteSetextReplace, `
9317
9318
  $1`).replace(this.rules.other.blockquoteSetextReplace2, "");
9318
9319
  s = s ? `${s}
@@ -9327,14 +9328,14 @@ ${f}` : f;
9327
9328
  if ((p == null ? void 0 : p.type) === "blockquote") {
9328
9329
  const b = p, w = b.raw + `
9329
9330
  ` + r.join(`
9330
- `), E = this.blockquote(w);
9331
- a[a.length - 1] = E, s = s.substring(0, s.length - b.raw.length) + E.raw, i = i.substring(0, i.length - b.text.length) + E.text;
9331
+ `), I = this.blockquote(w);
9332
+ a[a.length - 1] = I, s = s.substring(0, s.length - b.raw.length) + I.raw, i = i.substring(0, i.length - b.text.length) + I.text;
9332
9333
  break;
9333
9334
  } else if ((p == null ? void 0 : p.type) === "list") {
9334
9335
  const b = p, w = b.raw + `
9335
9336
  ` + r.join(`
9336
- `), E = this.list(w);
9337
- a[a.length - 1] = E, s = s.substring(0, s.length - p.raw.length) + E.raw, i = i.substring(0, i.length - b.raw.length) + E.raw, r = w.substring(a.at(-1).raw.length).split(`
9337
+ `), I = this.list(w);
9338
+ a[a.length - 1] = I, s = s.substring(0, s.length - p.raw.length) + I.raw, i = i.substring(0, i.length - b.raw.length) + I.raw, r = w.substring(a.at(-1).raw.length).split(`
9338
9339
  `);
9339
9340
  continue;
9340
9341
  }
@@ -9363,27 +9364,27 @@ ${f}` : f;
9363
9364
  const a = this.rules.other.listItemRegex(r);
9364
9365
  let o = !1;
9365
9366
  for (; e; ) {
9366
- let l = !1, u = "", f = "";
9367
+ let c = !1, u = "", f = "";
9367
9368
  if (!(n = a.exec(e)) || this.rules.block.hr.test(e))
9368
9369
  break;
9369
9370
  u = n[0], e = e.substring(u.length);
9370
9371
  let h = n[2].split(`
9371
- `, 1)[0].replace(this.rules.other.listReplaceTabs, (k) => " ".repeat(3 * k.length)), p = e.split(`
9372
+ `, 1)[0].replace(this.rules.other.listReplaceTabs, (_) => " ".repeat(3 * _.length)), p = e.split(`
9372
9373
  `, 1)[0], b = !h.trim(), w = 0;
9373
9374
  if (this.options.pedantic ? (w = 2, f = h.trimStart()) : b ? w = n[1].length + 1 : (w = n[2].search(this.rules.other.nonSpaceChar), w = w > 4 ? 1 : w, f = h.slice(w), w += n[1].length), b && this.rules.other.blankLine.test(p) && (u += p + `
9374
- `, e = e.substring(p.length + 1), l = !0), !l) {
9375
- const k = this.rules.other.nextBulletRegex(w), I = this.rules.other.hrRegex(w), j = this.rules.other.fencesBeginRegex(w), S = this.rules.other.headingBeginRegex(w), y = this.rules.other.htmlBeginRegex(w);
9375
+ `, e = e.substring(p.length + 1), c = !0), !c) {
9376
+ const _ = this.rules.other.nextBulletRegex(w), S = this.rules.other.hrRegex(w), j = this.rules.other.fencesBeginRegex(w), E = this.rules.other.headingBeginRegex(w), y = this.rules.other.htmlBeginRegex(w);
9376
9377
  for (; e; ) {
9377
9378
  const L = e.split(`
9378
9379
  `, 1)[0];
9379
9380
  let M;
9380
- if (p = L, this.options.pedantic ? (p = p.replace(this.rules.other.listReplaceNesting, " "), M = p) : M = p.replace(this.rules.other.tabCharGlobal, " "), j.test(p) || S.test(p) || y.test(p) || k.test(p) || I.test(p))
9381
+ if (p = L, this.options.pedantic ? (p = p.replace(this.rules.other.listReplaceNesting, " "), M = p) : M = p.replace(this.rules.other.tabCharGlobal, " "), j.test(p) || E.test(p) || y.test(p) || _.test(p) || S.test(p))
9381
9382
  break;
9382
9383
  if (M.search(this.rules.other.nonSpaceChar) >= w || !p.trim())
9383
9384
  f += `
9384
9385
  ` + M.slice(w);
9385
9386
  else {
9386
- if (b || h.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || j.test(h) || S.test(h) || I.test(h))
9387
+ if (b || h.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || j.test(h) || E.test(h) || S.test(h))
9387
9388
  break;
9388
9389
  f += `
9389
9390
  ` + p;
@@ -9393,31 +9394,31 @@ ${f}` : f;
9393
9394
  }
9394
9395
  }
9395
9396
  i.loose || (o ? i.loose = !0 : this.rules.other.doubleBlankLine.test(u) && (o = !0));
9396
- let E = null, _;
9397
- this.options.gfm && (E = this.rules.other.listIsTask.exec(f), E && (_ = E[0] !== "[ ] ", f = f.replace(this.rules.other.listReplaceTask, ""))), i.items.push({
9397
+ let I = null, k;
9398
+ this.options.gfm && (I = this.rules.other.listIsTask.exec(f), I && (k = I[0] !== "[ ] ", f = f.replace(this.rules.other.listReplaceTask, ""))), i.items.push({
9398
9399
  type: "list_item",
9399
9400
  raw: u,
9400
- task: !!E,
9401
- checked: _,
9401
+ task: !!I,
9402
+ checked: k,
9402
9403
  loose: !1,
9403
9404
  text: f,
9404
9405
  tokens: []
9405
9406
  }), i.raw += u;
9406
9407
  }
9407
- const c = i.items.at(-1);
9408
- if (c)
9409
- c.raw = c.raw.trimEnd(), c.text = c.text.trimEnd();
9408
+ const l = i.items.at(-1);
9409
+ if (l)
9410
+ l.raw = l.raw.trimEnd(), l.text = l.text.trimEnd();
9410
9411
  else
9411
9412
  return;
9412
9413
  i.raw = i.raw.trimEnd();
9413
- for (let l = 0; l < i.items.length; l++)
9414
- if (this.lexer.state.top = !1, i.items[l].tokens = this.lexer.blockTokens(i.items[l].text, []), !i.loose) {
9415
- const u = i.items[l].tokens.filter((h) => h.type === "space"), f = u.length > 0 && u.some((h) => this.rules.other.anyLine.test(h.raw));
9414
+ for (let c = 0; c < i.items.length; c++)
9415
+ if (this.lexer.state.top = !1, i.items[c].tokens = this.lexer.blockTokens(i.items[c].text, []), !i.loose) {
9416
+ const u = i.items[c].tokens.filter((h) => h.type === "space"), f = u.length > 0 && u.some((h) => this.rules.other.anyLine.test(h.raw));
9416
9417
  i.loose = f;
9417
9418
  }
9418
9419
  if (i.loose)
9419
- for (let l = 0; l < i.items.length; l++)
9420
- i.items[l].loose = !0;
9420
+ for (let c = 0; c < i.items.length; c++)
9421
+ i.items[c].loose = !0;
9421
9422
  return i;
9422
9423
  }
9423
9424
  }
@@ -9459,19 +9460,19 @@ ${f}` : f;
9459
9460
  rows: []
9460
9461
  };
9461
9462
  if (r.length === s.length) {
9462
- for (const c of s)
9463
- this.rules.other.tableAlignRight.test(c) ? a.align.push("right") : this.rules.other.tableAlignCenter.test(c) ? a.align.push("center") : this.rules.other.tableAlignLeft.test(c) ? a.align.push("left") : a.align.push(null);
9464
- for (let c = 0; c < r.length; c++)
9463
+ for (const l of s)
9464
+ this.rules.other.tableAlignRight.test(l) ? a.align.push("right") : this.rules.other.tableAlignCenter.test(l) ? a.align.push("center") : this.rules.other.tableAlignLeft.test(l) ? a.align.push("left") : a.align.push(null);
9465
+ for (let l = 0; l < r.length; l++)
9465
9466
  a.header.push({
9466
- text: r[c],
9467
- tokens: this.lexer.inline(r[c]),
9467
+ text: r[l],
9468
+ tokens: this.lexer.inline(r[l]),
9468
9469
  header: !0,
9469
- align: a.align[c]
9470
+ align: a.align[l]
9470
9471
  });
9471
- for (const c of i)
9472
- a.rows.push(Zi(c, a.header.length).map((l, u) => ({
9473
- text: l,
9474
- tokens: this.lexer.inline(l),
9472
+ for (const l of i)
9473
+ a.rows.push(Zi(l, a.header.length).map((c, u) => ({
9474
+ text: c,
9475
+ tokens: this.lexer.inline(c),
9475
9476
  header: !1,
9476
9477
  align: a.align[u]
9477
9478
  })));
@@ -9546,8 +9547,8 @@ ${f}` : f;
9546
9547
  } else {
9547
9548
  const a = Kv(n[2], "()");
9548
9549
  if (a > -1) {
9549
- const c = (n[0].indexOf("!") === 0 ? 5 : 4) + n[1].length + a;
9550
- n[2] = n[2].substring(0, a), n[0] = n[0].substring(0, c).trim(), n[3] = "";
9550
+ const l = (n[0].indexOf("!") === 0 ? 5 : 4) + n[1].length + a;
9551
+ n[2] = n[2].substring(0, a), n[0] = n[0].substring(0, l).trim(), n[3] = "";
9551
9552
  }
9552
9553
  }
9553
9554
  let s = n[2], i = "";
@@ -9583,23 +9584,23 @@ ${f}` : f;
9583
9584
  return;
9584
9585
  if (!(s[1] || s[2] || "") || !r || this.rules.inline.punctuation.exec(r)) {
9585
9586
  const a = [...s[0]].length - 1;
9586
- let o, c, l = a, u = 0;
9587
+ let o, l, c = a, u = 0;
9587
9588
  const f = s[0][0] === "*" ? this.rules.inline.emStrongRDelimAst : this.rules.inline.emStrongRDelimUnd;
9588
9589
  for (f.lastIndex = 0, n = n.slice(-1 * e.length + a); (s = f.exec(n)) != null; ) {
9589
9590
  if (o = s[1] || s[2] || s[3] || s[4] || s[5] || s[6], !o)
9590
9591
  continue;
9591
- if (c = [...o].length, s[3] || s[4]) {
9592
- l += c;
9592
+ if (l = [...o].length, s[3] || s[4]) {
9593
+ c += l;
9593
9594
  continue;
9594
- } else if ((s[5] || s[6]) && a % 3 && !((a + c) % 3)) {
9595
- u += c;
9595
+ } else if ((s[5] || s[6]) && a % 3 && !((a + l) % 3)) {
9596
+ u += l;
9596
9597
  continue;
9597
9598
  }
9598
- if (l -= c, l > 0)
9599
+ if (c -= l, c > 0)
9599
9600
  continue;
9600
- c = Math.min(c, c + l + u);
9601
- const h = [...s[0]][0].length, p = e.slice(0, a + s.index + h + c);
9602
- if (Math.min(a, c) % 2) {
9601
+ l = Math.min(l, l + c + u);
9602
+ const h = [...s[0]][0].length, p = e.slice(0, a + s.index + h + l);
9603
+ if (Math.min(a, l) % 2) {
9603
9604
  const w = p.slice(1, -1);
9604
9605
  return {
9605
9606
  type: "em",
@@ -9765,21 +9766,21 @@ class $t {
9765
9766
  var s, i, a;
9766
9767
  for (this.options.pedantic && (e = e.replace(ht.tabCharGlobal, " ").replace(ht.spaceLine, "")); e; ) {
9767
9768
  let o;
9768
- if ((i = (s = this.options.extensions) == null ? void 0 : s.block) != null && i.some((l) => (o = l.call({ lexer: this }, e, n)) ? (e = e.substring(o.raw.length), n.push(o), !0) : !1))
9769
+ if ((i = (s = this.options.extensions) == null ? void 0 : s.block) != null && i.some((c) => (o = c.call({ lexer: this }, e, n)) ? (e = e.substring(o.raw.length), n.push(o), !0) : !1))
9769
9770
  continue;
9770
9771
  if (o = this.tokenizer.space(e)) {
9771
9772
  e = e.substring(o.raw.length);
9772
- const l = n.at(-1);
9773
- o.raw.length === 1 && l !== void 0 ? l.raw += `
9773
+ const c = n.at(-1);
9774
+ o.raw.length === 1 && c !== void 0 ? c.raw += `
9774
9775
  ` : n.push(o);
9775
9776
  continue;
9776
9777
  }
9777
9778
  if (o = this.tokenizer.code(e)) {
9778
9779
  e = e.substring(o.raw.length);
9779
- const l = n.at(-1);
9780
- (l == null ? void 0 : l.type) === "paragraph" || (l == null ? void 0 : l.type) === "text" ? (l.raw += `
9781
- ` + o.raw, l.text += `
9782
- ` + o.text, this.inlineQueue.at(-1).src = l.text) : n.push(o);
9780
+ const c = n.at(-1);
9781
+ (c == null ? void 0 : c.type) === "paragraph" || (c == null ? void 0 : c.type) === "text" ? (c.raw += `
9782
+ ` + o.raw, c.text += `
9783
+ ` + o.text, this.inlineQueue.at(-1).src = c.text) : n.push(o);
9783
9784
  continue;
9784
9785
  }
9785
9786
  if (o = this.tokenizer.fences(e)) {
@@ -9808,10 +9809,10 @@ class $t {
9808
9809
  }
9809
9810
  if (o = this.tokenizer.def(e)) {
9810
9811
  e = e.substring(o.raw.length);
9811
- const l = n.at(-1);
9812
- (l == null ? void 0 : l.type) === "paragraph" || (l == null ? void 0 : l.type) === "text" ? (l.raw += `
9813
- ` + o.raw, l.text += `
9814
- ` + o.raw, this.inlineQueue.at(-1).src = l.text) : this.tokens.links[o.tag] || (this.tokens.links[o.tag] = {
9812
+ const c = n.at(-1);
9813
+ (c == null ? void 0 : c.type) === "paragraph" || (c == null ? void 0 : c.type) === "text" ? (c.raw += `
9814
+ ` + o.raw, c.text += `
9815
+ ` + o.raw, this.inlineQueue.at(-1).src = c.text) : this.tokens.links[o.tag] || (this.tokens.links[o.tag] = {
9815
9816
  href: o.href,
9816
9817
  title: o.title
9817
9818
  });
@@ -9825,37 +9826,37 @@ class $t {
9825
9826
  e = e.substring(o.raw.length), n.push(o);
9826
9827
  continue;
9827
9828
  }
9828
- let c = e;
9829
+ let l = e;
9829
9830
  if ((a = this.options.extensions) != null && a.startBlock) {
9830
- let l = 1 / 0;
9831
+ let c = 1 / 0;
9831
9832
  const u = e.slice(1);
9832
9833
  let f;
9833
9834
  this.options.extensions.startBlock.forEach((h) => {
9834
- f = h.call({ lexer: this }, u), typeof f == "number" && f >= 0 && (l = Math.min(l, f));
9835
- }), l < 1 / 0 && l >= 0 && (c = e.substring(0, l + 1));
9835
+ f = h.call({ lexer: this }, u), typeof f == "number" && f >= 0 && (c = Math.min(c, f));
9836
+ }), c < 1 / 0 && c >= 0 && (l = e.substring(0, c + 1));
9836
9837
  }
9837
- if (this.state.top && (o = this.tokenizer.paragraph(c))) {
9838
- const l = n.at(-1);
9839
- r && (l == null ? void 0 : l.type) === "paragraph" ? (l.raw += `
9840
- ` + o.raw, l.text += `
9841
- ` + o.text, this.inlineQueue.pop(), this.inlineQueue.at(-1).src = l.text) : n.push(o), r = c.length !== e.length, e = e.substring(o.raw.length);
9838
+ if (this.state.top && (o = this.tokenizer.paragraph(l))) {
9839
+ const c = n.at(-1);
9840
+ r && (c == null ? void 0 : c.type) === "paragraph" ? (c.raw += `
9841
+ ` + o.raw, c.text += `
9842
+ ` + o.text, this.inlineQueue.pop(), this.inlineQueue.at(-1).src = c.text) : n.push(o), r = l.length !== e.length, e = e.substring(o.raw.length);
9842
9843
  continue;
9843
9844
  }
9844
9845
  if (o = this.tokenizer.text(e)) {
9845
9846
  e = e.substring(o.raw.length);
9846
- const l = n.at(-1);
9847
- (l == null ? void 0 : l.type) === "text" ? (l.raw += `
9848
- ` + o.raw, l.text += `
9849
- ` + o.text, this.inlineQueue.pop(), this.inlineQueue.at(-1).src = l.text) : n.push(o);
9847
+ const c = n.at(-1);
9848
+ (c == null ? void 0 : c.type) === "text" ? (c.raw += `
9849
+ ` + o.raw, c.text += `
9850
+ ` + o.text, this.inlineQueue.pop(), this.inlineQueue.at(-1).src = c.text) : n.push(o);
9850
9851
  continue;
9851
9852
  }
9852
9853
  if (e) {
9853
- const l = "Infinite loop on byte: " + e.charCodeAt(0);
9854
+ const c = "Infinite loop on byte: " + e.charCodeAt(0);
9854
9855
  if (this.options.silent) {
9855
- console.error(l);
9856
+ console.error(c);
9856
9857
  break;
9857
9858
  } else
9858
- throw new Error(l);
9859
+ throw new Error(c);
9859
9860
  }
9860
9861
  }
9861
9862
  return this.state.top = !0, n;
@@ -9867,7 +9868,7 @@ class $t {
9867
9868
  * Lexing/Compiling
9868
9869
  */
9869
9870
  inlineTokens(e, n = []) {
9870
- var o, c, l;
9871
+ var o, l, c;
9871
9872
  let r = e, s = null;
9872
9873
  if (this.tokens.links) {
9873
9874
  const u = Object.keys(this.tokens.links);
@@ -9883,7 +9884,7 @@ class $t {
9883
9884
  for (; e; ) {
9884
9885
  i || (a = ""), i = !1;
9885
9886
  let u;
9886
- if ((c = (o = this.options.extensions) == null ? void 0 : o.inline) != null && c.some((h) => (u = h.call({ lexer: this }, e, n)) ? (e = e.substring(u.raw.length), n.push(u), !0) : !1))
9887
+ if ((l = (o = this.options.extensions) == null ? void 0 : o.inline) != null && l.some((h) => (u = h.call({ lexer: this }, e, n)) ? (e = e.substring(u.raw.length), n.push(u), !0) : !1))
9887
9888
  continue;
9888
9889
  if (u = this.tokenizer.escape(e)) {
9889
9890
  e = e.substring(u.raw.length), n.push(u);
@@ -9928,7 +9929,7 @@ class $t {
9928
9929
  continue;
9929
9930
  }
9930
9931
  let f = e;
9931
- if ((l = this.options.extensions) != null && l.startInline) {
9932
+ if ((c = this.options.extensions) != null && c.startInline) {
9932
9933
  let h = 1 / 0;
9933
9934
  const p = e.slice(1);
9934
9935
  let b;
@@ -9992,8 +9993,8 @@ ${this.parser.parse(e)}</blockquote>
9992
9993
  const n = e.ordered, r = e.start;
9993
9994
  let s = "";
9994
9995
  for (let o = 0; o < e.items.length; o++) {
9995
- const c = e.items[o];
9996
- s += this.listitem(c);
9996
+ const l = e.items[o];
9997
+ s += this.listitem(l);
9997
9998
  }
9998
9999
  const i = n ? "ol" : "ul", a = n && r !== 1 ? ' start="' + r + '"' : "";
9999
10000
  return "<" + i + a + `>
@@ -10147,55 +10148,55 @@ class At {
10147
10148
  for (let a = 0; a < e.length; a++) {
10148
10149
  const o = e[a];
10149
10150
  if ((i = (s = this.options.extensions) == null ? void 0 : s.renderers) != null && i[o.type]) {
10150
- const l = o, u = this.options.extensions.renderers[l.type].call({ parser: this }, l);
10151
- if (u !== !1 || !["space", "hr", "heading", "code", "table", "blockquote", "list", "html", "paragraph", "text"].includes(l.type)) {
10151
+ const c = o, u = this.options.extensions.renderers[c.type].call({ parser: this }, c);
10152
+ if (u !== !1 || !["space", "hr", "heading", "code", "table", "blockquote", "list", "html", "paragraph", "text"].includes(c.type)) {
10152
10153
  r += u || "";
10153
10154
  continue;
10154
10155
  }
10155
10156
  }
10156
- const c = o;
10157
- switch (c.type) {
10157
+ const l = o;
10158
+ switch (l.type) {
10158
10159
  case "space": {
10159
- r += this.renderer.space(c);
10160
+ r += this.renderer.space(l);
10160
10161
  continue;
10161
10162
  }
10162
10163
  case "hr": {
10163
- r += this.renderer.hr(c);
10164
+ r += this.renderer.hr(l);
10164
10165
  continue;
10165
10166
  }
10166
10167
  case "heading": {
10167
- r += this.renderer.heading(c);
10168
+ r += this.renderer.heading(l);
10168
10169
  continue;
10169
10170
  }
10170
10171
  case "code": {
10171
- r += this.renderer.code(c);
10172
+ r += this.renderer.code(l);
10172
10173
  continue;
10173
10174
  }
10174
10175
  case "table": {
10175
- r += this.renderer.table(c);
10176
+ r += this.renderer.table(l);
10176
10177
  continue;
10177
10178
  }
10178
10179
  case "blockquote": {
10179
- r += this.renderer.blockquote(c);
10180
+ r += this.renderer.blockquote(l);
10180
10181
  continue;
10181
10182
  }
10182
10183
  case "list": {
10183
- r += this.renderer.list(c);
10184
+ r += this.renderer.list(l);
10184
10185
  continue;
10185
10186
  }
10186
10187
  case "html": {
10187
- r += this.renderer.html(c);
10188
+ r += this.renderer.html(l);
10188
10189
  continue;
10189
10190
  }
10190
10191
  case "paragraph": {
10191
- r += this.renderer.paragraph(c);
10192
+ r += this.renderer.paragraph(l);
10192
10193
  continue;
10193
10194
  }
10194
10195
  case "text": {
10195
- let l = c, u = this.renderer.text(l);
10196
+ let c = l, u = this.renderer.text(c);
10196
10197
  for (; a + 1 < e.length && e[a + 1].type === "text"; )
10197
- l = e[++a], u += `
10198
- ` + this.renderer.text(l);
10198
+ c = e[++a], u += `
10199
+ ` + this.renderer.text(c);
10199
10200
  n ? r += this.renderer.paragraph({
10200
10201
  type: "paragraph",
10201
10202
  raw: u,
@@ -10205,10 +10206,10 @@ class At {
10205
10206
  continue;
10206
10207
  }
10207
10208
  default: {
10208
- const l = 'Token with "' + c.type + '" type was not found.';
10209
+ const c = 'Token with "' + l.type + '" type was not found.';
10209
10210
  if (this.options.silent)
10210
- return console.error(l), "";
10211
- throw new Error(l);
10211
+ return console.error(c), "";
10212
+ throw new Error(c);
10212
10213
  }
10213
10214
  }
10214
10215
  }
@@ -10223,59 +10224,59 @@ class At {
10223
10224
  for (let a = 0; a < e.length; a++) {
10224
10225
  const o = e[a];
10225
10226
  if ((i = (s = this.options.extensions) == null ? void 0 : s.renderers) != null && i[o.type]) {
10226
- const l = this.options.extensions.renderers[o.type].call({ parser: this }, o);
10227
- if (l !== !1 || !["escape", "html", "link", "image", "strong", "em", "codespan", "br", "del", "text"].includes(o.type)) {
10228
- r += l || "";
10227
+ const c = this.options.extensions.renderers[o.type].call({ parser: this }, o);
10228
+ if (c !== !1 || !["escape", "html", "link", "image", "strong", "em", "codespan", "br", "del", "text"].includes(o.type)) {
10229
+ r += c || "";
10229
10230
  continue;
10230
10231
  }
10231
10232
  }
10232
- const c = o;
10233
- switch (c.type) {
10233
+ const l = o;
10234
+ switch (l.type) {
10234
10235
  case "escape": {
10235
- r += n.text(c);
10236
+ r += n.text(l);
10236
10237
  break;
10237
10238
  }
10238
10239
  case "html": {
10239
- r += n.html(c);
10240
+ r += n.html(l);
10240
10241
  break;
10241
10242
  }
10242
10243
  case "link": {
10243
- r += n.link(c);
10244
+ r += n.link(l);
10244
10245
  break;
10245
10246
  }
10246
10247
  case "image": {
10247
- r += n.image(c);
10248
+ r += n.image(l);
10248
10249
  break;
10249
10250
  }
10250
10251
  case "strong": {
10251
- r += n.strong(c);
10252
+ r += n.strong(l);
10252
10253
  break;
10253
10254
  }
10254
10255
  case "em": {
10255
- r += n.em(c);
10256
+ r += n.em(l);
10256
10257
  break;
10257
10258
  }
10258
10259
  case "codespan": {
10259
- r += n.codespan(c);
10260
+ r += n.codespan(l);
10260
10261
  break;
10261
10262
  }
10262
10263
  case "br": {
10263
- r += n.br(c);
10264
+ r += n.br(l);
10264
10265
  break;
10265
10266
  }
10266
10267
  case "del": {
10267
- r += n.del(c);
10268
+ r += n.del(l);
10268
10269
  break;
10269
10270
  }
10270
10271
  case "text": {
10271
- r += n.text(c);
10272
+ r += n.text(l);
10272
10273
  break;
10273
10274
  }
10274
10275
  default: {
10275
- const l = 'Token with "' + c.type + '" type was not found.';
10276
+ const c = 'Token with "' + l.type + '" type was not found.';
10276
10277
  if (this.options.silent)
10277
- return console.error(l), "";
10278
- throw new Error(l);
10278
+ return console.error(c), "";
10279
+ throw new Error(c);
10279
10280
  }
10280
10281
  }
10281
10282
  }
@@ -10348,11 +10349,11 @@ class tm {
10348
10349
  switch (r = r.concat(n.call(this, a)), a.type) {
10349
10350
  case "table": {
10350
10351
  const o = a;
10351
- for (const c of o.header)
10352
- r = r.concat(this.walkTokens(c.tokens, n));
10353
- for (const c of o.rows)
10354
- for (const l of c)
10355
- r = r.concat(this.walkTokens(l.tokens, n));
10352
+ for (const l of o.header)
10353
+ r = r.concat(this.walkTokens(l.tokens, n));
10354
+ for (const l of o.rows)
10355
+ for (const c of l)
10356
+ r = r.concat(this.walkTokens(c.tokens, n));
10356
10357
  break;
10357
10358
  }
10358
10359
  case "list": {
@@ -10362,9 +10363,9 @@ class tm {
10362
10363
  }
10363
10364
  default: {
10364
10365
  const o = a;
10365
- (i = (s = this.defaults.extensions) == null ? void 0 : s.childTokens) != null && i[o.type] ? this.defaults.extensions.childTokens[o.type].forEach((c) => {
10366
- const l = o[c].flat(1 / 0);
10367
- r = r.concat(this.walkTokens(l, n));
10366
+ (i = (s = this.defaults.extensions) == null ? void 0 : s.childTokens) != null && i[o.type] ? this.defaults.extensions.childTokens[o.type].forEach((l) => {
10367
+ const c = o[l].flat(1 / 0);
10368
+ r = r.concat(this.walkTokens(c, n));
10368
10369
  }) : o.tokens && (r = r.concat(this.walkTokens(o.tokens, n)));
10369
10370
  }
10370
10371
  }
@@ -10380,8 +10381,8 @@ class tm {
10380
10381
  if ("renderer" in i) {
10381
10382
  const a = n.renderers[i.name];
10382
10383
  a ? n.renderers[i.name] = function(...o) {
10383
- let c = i.renderer.apply(this, o);
10384
- return c === !1 && (c = a.apply(this, o)), c;
10384
+ let l = i.renderer.apply(this, o);
10385
+ return l === !1 && (l = a.apply(this, o)), l;
10385
10386
  } : n.renderers[i.name] = i.renderer;
10386
10387
  }
10387
10388
  if ("tokenizer" in i) {
@@ -10398,10 +10399,10 @@ class tm {
10398
10399
  throw new Error(`renderer '${a}' does not exist`);
10399
10400
  if (["options", "parser"].includes(a))
10400
10401
  continue;
10401
- const o = a, c = r.renderer[o], l = i[o];
10402
+ const o = a, l = r.renderer[o], c = i[o];
10402
10403
  i[o] = (...u) => {
10403
- let f = c.apply(i, u);
10404
- return f === !1 && (f = l.apply(i, u)), f || "";
10404
+ let f = l.apply(i, u);
10405
+ return f === !1 && (f = c.apply(i, u)), f || "";
10405
10406
  };
10406
10407
  }
10407
10408
  s.renderer = i;
@@ -10413,10 +10414,10 @@ class tm {
10413
10414
  throw new Error(`tokenizer '${a}' does not exist`);
10414
10415
  if (["options", "rules", "lexer"].includes(a))
10415
10416
  continue;
10416
- const o = a, c = r.tokenizer[o], l = i[o];
10417
+ const o = a, l = r.tokenizer[o], c = i[o];
10417
10418
  i[o] = (...u) => {
10418
- let f = c.apply(i, u);
10419
- return f === !1 && (f = l.apply(i, u)), f;
10419
+ let f = l.apply(i, u);
10420
+ return f === !1 && (f = c.apply(i, u)), f;
10420
10421
  };
10421
10422
  }
10422
10423
  s.tokenizer = i;
@@ -10428,15 +10429,15 @@ class tm {
10428
10429
  throw new Error(`hook '${a}' does not exist`);
10429
10430
  if (["options", "block"].includes(a))
10430
10431
  continue;
10431
- const o = a, c = r.hooks[o], l = i[o];
10432
+ const o = a, l = r.hooks[o], c = i[o];
10432
10433
  Wn.passThroughHooks.has(a) ? i[o] = (u) => {
10433
10434
  if (this.defaults.async)
10434
- return Promise.resolve(c.call(i, u)).then((h) => l.call(i, h));
10435
- const f = c.call(i, u);
10436
- return l.call(i, f);
10435
+ return Promise.resolve(l.call(i, u)).then((h) => c.call(i, h));
10436
+ const f = l.call(i, u);
10437
+ return c.call(i, f);
10437
10438
  } : i[o] = (...u) => {
10438
- let f = c.apply(i, u);
10439
- return f === !1 && (f = l.apply(i, u)), f;
10439
+ let f = l.apply(i, u);
10440
+ return f === !1 && (f = c.apply(i, u)), f;
10440
10441
  };
10441
10442
  }
10442
10443
  s.hooks = i;
@@ -10444,8 +10445,8 @@ class tm {
10444
10445
  if (r.walkTokens) {
10445
10446
  const i = this.defaults.walkTokens, a = r.walkTokens;
10446
10447
  s.walkTokens = function(o) {
10447
- let c = [];
10448
- return c.push(a.call(this, o)), i && (c = c.concat(i.call(this, o))), c;
10448
+ let l = [];
10449
+ return l.push(a.call(this, o)), i && (l = l.concat(i.call(this, o))), l;
10449
10450
  };
10450
10451
  }
10451
10452
  this.defaults = { ...this.defaults, ...s };
@@ -10470,14 +10471,14 @@ class tm {
10470
10471
  if (typeof r != "string")
10471
10472
  return o(new Error("marked(): input parameter is of type " + Object.prototype.toString.call(r) + ", string expected"));
10472
10473
  a.hooks && (a.hooks.options = a, a.hooks.block = e);
10473
- const c = a.hooks ? a.hooks.provideLexer() : e ? $t.lex : $t.lexInline, l = a.hooks ? a.hooks.provideParser() : e ? At.parse : At.parseInline;
10474
+ const l = a.hooks ? a.hooks.provideLexer() : e ? $t.lex : $t.lexInline, c = a.hooks ? a.hooks.provideParser() : e ? At.parse : At.parseInline;
10474
10475
  if (a.async)
10475
- return Promise.resolve(a.hooks ? a.hooks.preprocess(r) : r).then((u) => c(u, a)).then((u) => a.hooks ? a.hooks.processAllTokens(u) : u).then((u) => a.walkTokens ? Promise.all(this.walkTokens(u, a.walkTokens)).then(() => u) : u).then((u) => l(u, a)).then((u) => a.hooks ? a.hooks.postprocess(u) : u).catch(o);
10476
+ return Promise.resolve(a.hooks ? a.hooks.preprocess(r) : r).then((u) => l(u, a)).then((u) => a.hooks ? a.hooks.processAllTokens(u) : u).then((u) => a.walkTokens ? Promise.all(this.walkTokens(u, a.walkTokens)).then(() => u) : u).then((u) => c(u, a)).then((u) => a.hooks ? a.hooks.postprocess(u) : u).catch(o);
10476
10477
  try {
10477
10478
  a.hooks && (r = a.hooks.preprocess(r));
10478
- let u = c(r, a);
10479
+ let u = l(r, a);
10479
10480
  a.hooks && (u = a.hooks.processAllTokens(u)), a.walkTokens && this.walkTokens(u, a.walkTokens);
10480
- let f = l(u, a);
10481
+ let f = c(u, a);
10481
10482
  return a.hooks && (f = a.hooks.postprocess(f)), f;
10482
10483
  } catch (u) {
10483
10484
  return o(u);
@@ -10550,79 +10551,79 @@ const dm = {
10550
10551
  function Is(t, e) {
10551
10552
  oe(e, !0), be(t, dm);
10552
10553
  let n = m(e, "isDropdownOpen", 15), r = m(e, "attachmentList", 15), s = m(e, "userLevel", 15), i = W(T({})), a = W(T(os()));
10553
- const o = (_, k) => {
10554
- d(i)[_] = k;
10555
- }, c = () => {
10554
+ const o = (k, _) => {
10555
+ d(i)[k] = _;
10556
+ }, l = () => {
10556
10557
  g(a, T(_d())), setTimeout(
10557
10558
  () => {
10558
10559
  g(a, T(os()));
10559
10560
  },
10560
10561
  2e3
10561
10562
  );
10562
- }, l = async (_, k, I) => {
10563
- await St.getDocumentPage(_, k, I);
10564
- }, u = async (_, k, I) => {
10565
- if (!bp(s(), k)) {
10563
+ }, c = async (k, _, S) => {
10564
+ await St.getDocumentPage(k, _, S);
10565
+ }, u = async (k, _, S) => {
10566
+ if (!bp(s(), _)) {
10566
10567
  console.error("L'utente non ha il permesso di scaricare PDF normativi.");
10567
10568
  return;
10568
10569
  }
10569
- const j = dr(_, I);
10570
+ const j = dr(k, S);
10570
10571
  o(j, !0);
10571
10572
  try {
10572
- const S = await St.downloadForgePdf(_, k), y = window.URL.createObjectURL(S), L = document.createElement("a");
10573
- L.href = y, L.download = `${I.split(".")[0]}.pdf`, document.body.appendChild(L), L.click(), L.remove(), window.URL.revokeObjectURL(y);
10574
- } catch (S) {
10575
- console.error("Errore durante il download del PDF:", S);
10573
+ const E = await St.downloadForgePdf(k, _), y = window.URL.createObjectURL(E), L = document.createElement("a");
10574
+ L.href = y, L.download = `${S.split(".")[0]}.pdf`, document.body.appendChild(L), L.click(), L.remove(), window.URL.revokeObjectURL(y);
10575
+ } catch (E) {
10576
+ console.error("Errore durante il download del PDF:", E);
10576
10577
  } finally {
10577
10578
  o(j, !1);
10578
10579
  }
10579
- }, f = async (_, k, I) => {
10580
- const j = dr(_, I);
10580
+ }, f = async (k, _, S) => {
10581
+ const j = dr(k, S);
10581
10582
  o(j, !0);
10582
10583
  try {
10583
- const S = await St.getForgeSingle(_, k), y = S.additionalReference || S.url;
10584
+ const E = await St.getForgeSingle(k, _), y = E.additionalReference || E.url;
10584
10585
  window.open(y, "_blank");
10585
- } catch (S) {
10586
- console.error("Errore durante il recupero del link:", S);
10586
+ } catch (E) {
10587
+ console.error("Errore durante il recupero del link:", E);
10587
10588
  } finally {
10588
10589
  o(j, !1);
10589
10590
  }
10590
- }, h = async (_, k) => {
10591
- const I = dr(_, k);
10592
- o(I, !0);
10591
+ }, h = async (k, _) => {
10592
+ const S = dr(k, _);
10593
+ o(S, !0);
10593
10594
  try {
10594
- const j = await St.getMeetingSingle(_);
10595
+ const j = await St.getMeetingSingle(k);
10595
10596
  window.open(j.meetingUrl, "_blank");
10596
10597
  } catch (j) {
10597
10598
  console.error("Errore durante il recupero del link TLDV:", j);
10598
10599
  } finally {
10599
- o(I, !1);
10600
+ o(S, !1);
10600
10601
  }
10601
- }, p = async (_) => {
10602
+ }, p = async (k) => {
10602
10603
  const {
10603
- external_id: k,
10604
- filename: I,
10604
+ external_id: _,
10605
+ filename: S,
10605
10606
  gendoc_id: j,
10606
- isCommon: S,
10607
+ isCommon: E,
10607
10608
  commonType: y
10608
- } = _;
10609
- if (!S) {
10610
- await l(k, I, j);
10609
+ } = k;
10610
+ if (!E) {
10611
+ await c(_, S, j);
10611
10612
  return;
10612
10613
  }
10613
10614
  if (y === "trascrizione") {
10614
- await h(k, I);
10615
+ await h(_, S);
10615
10616
  return;
10616
10617
  }
10617
- const L = eo(I);
10618
- !hp(I) || L === "mp3" ? await f(k, y || "", I) : await u(k, y || "", I);
10618
+ const L = eo(S);
10619
+ !hp(S) || L === "mp3" ? await f(_, y || "", S) : await u(_, y || "", S);
10619
10620
  };
10620
10621
  var b = um(), w = z(b);
10621
10622
  {
10622
- var E = (_) => {
10623
- var k = cm(), I = z(k);
10623
+ var I = (k) => {
10624
+ var _ = cm(), S = z(_);
10624
10625
  {
10625
- var j = (S) => {
10626
+ var j = (E) => {
10626
10627
  var y = lm(), L = O(z(y), 2);
10627
10628
  lt(L, 21, r, ot, (Ye, ke) => {
10628
10629
  var ve = om();
@@ -10666,7 +10667,7 @@ function Is(t, e) {
10666
10667
  ee.__click = [
10667
10668
  nm,
10668
10669
  r,
10669
- c
10670
+ l
10670
10671
  ];
10671
10672
  var ge = O(z(ee), 2), et = z(ge, !0);
10672
10673
  x(ge), x(ee), x(M), x(y), D(
@@ -10674,36 +10675,36 @@ function Is(t, e) {
10674
10675
  q(ee, "aria-label", Ye), q(ee, "title", Ye), Ce(et, d(a));
10675
10676
  },
10676
10677
  [() => os()]
10677
- ), Dt(3, y, () => _c, () => ({ duration: 300 })), C(S, y);
10678
+ ), Dt(3, y, () => _c, () => ({ duration: 300 })), C(E, y);
10678
10679
  };
10679
- K(I, (S) => {
10680
- n() && S(j);
10680
+ K(S, (E) => {
10681
+ n() && E(j);
10681
10682
  });
10682
10683
  }
10683
- x(k), C(_, k);
10684
+ x(_), C(k, _);
10684
10685
  };
10685
- K(w, (_) => {
10686
- r().length > 0 && _(E);
10686
+ K(w, (k) => {
10687
+ r().length > 0 && k(I);
10687
10688
  });
10688
10689
  }
10689
10690
  return x(b), C(t, b), le({
10690
10691
  get isDropdownOpen() {
10691
10692
  return n();
10692
10693
  },
10693
- set isDropdownOpen(_) {
10694
- n(_), v();
10694
+ set isDropdownOpen(k) {
10695
+ n(k), v();
10695
10696
  },
10696
10697
  get attachmentList() {
10697
10698
  return r();
10698
10699
  },
10699
- set attachmentList(_) {
10700
- r(_), v();
10700
+ set attachmentList(k) {
10701
+ r(k), v();
10701
10702
  },
10702
10703
  get userLevel() {
10703
10704
  return s();
10704
10705
  },
10705
- set userLevel(_) {
10706
- s(_), v();
10706
+ set userLevel(k) {
10707
+ s(k), v();
10707
10708
  }
10708
10709
  });
10709
10710
  }
@@ -10734,19 +10735,19 @@ const jm = {
10734
10735
  };
10735
10736
  function $o(t, e) {
10736
10737
  oe(e, !0), be(t, jm);
10737
- let n = m(e, "messages", 15), r = m(e, "loading", 15), s = m(e, "error", 15), i = m(e, "streamMessage", 15), a = m(e, "streamAttachments", 15), o = m(e, "streamedAgent", 15), c = m(e, "languageSelected", 15), l = m(e, "userLevel", 15), u = m(e, "loadingChat", 15), f = m(e, "onQuickReply", 7), h = W(void 0), p = W(T(new Audio())), b = W(!1), w = W(T({})), E = W(T({})), _ = W(T(n())), k = W(null), I = W(!0), j = W(!1), S = W(!1), y = W(T(u())), L = W(!1);
10738
+ let n = m(e, "messages", 15), r = m(e, "loading", 15), s = m(e, "error", 15), i = m(e, "streamMessage", 15), a = m(e, "streamAttachments", 15), o = m(e, "streamedAgent", 15), l = m(e, "languageSelected", 15), c = m(e, "userLevel", 15), u = m(e, "loadingChat", 15), f = m(e, "onQuickReply", 7), h = W(void 0), p = W(T(new Audio())), b = W(!1), w = W(T({})), I = W(T({})), k = W(T(n())), _ = W(null), S = W(!0), j = W(!1), E = W(!1), y = W(T(u())), L = W(!1);
10738
10739
  const M = async () => {
10739
10740
  await ss(), d(h) && (d(h).scrollTop = d(h).scrollHeight);
10740
10741
  }, ee = async () => {
10741
- await ss(), g(I, !1);
10742
+ await ss(), g(S, !1);
10742
10743
  }, ge = async () => {
10743
10744
  d(L) || (g(L, !0), await ss(), g(j, !1));
10744
10745
  }, et = () => {
10745
- d(S) && g(j, !0);
10746
+ d(E) && g(j, !0);
10746
10747
  }, Ye = () => {
10747
- d(S) && (g(_, T(d(k) ?? n())), g(k, null), g(I, !0), g(S, !1), g(L, !1));
10748
+ d(E) && (g(k, T(d(_) ?? n())), g(_, null), g(S, !0), g(E, !1), g(L, !1));
10748
10749
  }, ke = (Y) => {
10749
- Js.getAudio(Y.content, c()).then((te) => {
10750
+ Js.getAudio(Y.content, l()).then((te) => {
10750
10751
  g(p, T(new Audio(te))), d(p).play(), g(b, !0), d(p).onended = () => {
10751
10752
  g(b, !1);
10752
10753
  };
@@ -10757,18 +10758,18 @@ function $o(t, e) {
10757
10758
  const Ue = Ee.innerHTML, fe = Ee.textContent || Ee.innerText || "";
10758
10759
  try {
10759
10760
  const xe = new Blob([Ue], { type: "text/html" }), Fe = new Blob([fe], { type: "text/plain" }), me = new ClipboardItem({ "text/html": xe, "text/plain": Fe });
10760
- await navigator.clipboard.write([me]), d(E)[te] = ji(), setTimeout(
10761
+ await navigator.clipboard.write([me]), d(I)[te] = ji(), setTimeout(
10761
10762
  () => {
10762
- d(E)[te] = "";
10763
+ d(I)[te] = "";
10763
10764
  },
10764
10765
  2e3
10765
10766
  );
10766
10767
  } catch (xe) {
10767
10768
  console.error("Errore durante la copia:", xe);
10768
10769
  try {
10769
- await navigator.clipboard.writeText(fe), d(E)[te] = ji(), setTimeout(
10770
+ await navigator.clipboard.writeText(fe), d(I)[te] = ji(), setTimeout(
10770
10771
  () => {
10771
- d(E)[te] = "";
10772
+ d(I)[te] = "";
10772
10773
  },
10773
10774
  2e3
10774
10775
  );
@@ -10778,13 +10779,13 @@ function $o(t, e) {
10778
10779
  }
10779
10780
  };
10780
10781
  Ct(() => {
10781
- u() && !d(y) ? (g(S, !0), g(k, null), g(j, !1), g(I, !0), ee()) : !u() && d(y) && (g(k, T(n())), d(j) && ge()), g(y, T(u()));
10782
+ u() && !d(y) ? (g(E, !0), g(_, null), g(j, !1), g(S, !0), ee()) : !u() && d(y) && (g(_, T(n())), d(j) && ge()), g(y, T(u()));
10782
10783
  }), Ct(() => {
10783
- d(S) && d(j) && !u() && ge();
10784
+ d(E) && d(j) && !u() && ge();
10784
10785
  }), Ct(() => {
10785
- d(S) ? g(k, T(n())) : u() || g(_, T(n()));
10786
+ d(E) ? g(_, T(n())) : u() || g(k, T(n()));
10786
10787
  }), Ct(() => {
10787
- i(), d(_), M();
10788
+ i(), d(k), M();
10788
10789
  }), Ct(() => {
10789
10790
  if (!d(h) || !f()) return;
10790
10791
  const Y = (te) => {
@@ -10804,7 +10805,7 @@ function $o(t, e) {
10804
10805
  {
10805
10806
  var ft = (Y) => {
10806
10807
  var te = $m(), je = O(z(te), 2);
10807
- lt(je, 17, () => d(_), ot, (me, G, X) => {
10808
+ lt(je, 17, () => d(k), ot, (me, G, X) => {
10808
10809
  var F = kt(), J = st(F);
10809
10810
  {
10810
10811
  var ie = (ce) => {
@@ -10840,11 +10841,11 @@ function $o(t, e) {
10840
10841
  C(Ge, ae);
10841
10842
  };
10842
10843
  K(Oe, (Ge) => {
10843
- d(E)[X] ? Ge(nt) : Ge(Ze, !1);
10844
+ d(I)[X] ? Ge(nt) : Ge(Ze, !1);
10844
10845
  });
10845
10846
  }
10846
10847
  x(V), x(Q), x(we), D((Ge) => q(V, "title", Ge), [
10847
- () => d(E)[X] || Li()
10848
+ () => d(I)[X] || Li()
10848
10849
  ]), C(Ie, we);
10849
10850
  }, qe = (Ie) => {
10850
10851
  var we = Cm(), B = st(we), P = z(B), Z = z(P), Q = z(Z);
@@ -10864,10 +10865,10 @@ function $o(t, e) {
10864
10865
  d(G).attachments = ue;
10865
10866
  },
10866
10867
  get userLevel() {
10867
- return l();
10868
+ return c();
10868
10869
  },
10869
10870
  set userLevel(ue) {
10870
- l(ue);
10871
+ c(ue);
10871
10872
  }
10872
10873
  });
10873
10874
  };
@@ -10918,7 +10919,7 @@ function $o(t, e) {
10918
10919
  C(N, ne);
10919
10920
  };
10920
10921
  K(He, (N) => {
10921
- d(E)[X] ? N(rt) : N(Qe, !1);
10922
+ d(I)[X] ? N(rt) : N(Qe, !1);
10922
10923
  });
10923
10924
  }
10924
10925
  x(Xe), x(Ze), x(V), x(B);
@@ -10945,7 +10946,7 @@ function $o(t, e) {
10945
10946
  });
10946
10947
  }
10947
10948
  D((N) => q(Xe, "title", N), [
10948
- () => d(E)[X] || Li()
10949
+ () => d(I)[X] || Li()
10949
10950
  ]), C(Ie, we);
10950
10951
  };
10951
10952
  K(at, (Ie) => {
@@ -10980,10 +10981,10 @@ function $o(t, e) {
10980
10981
  a(P);
10981
10982
  },
10982
10983
  get userLevel() {
10983
- return l();
10984
+ return c();
10984
10985
  },
10985
10986
  set userLevel(P) {
10986
- l(P);
10987
+ c(P);
10987
10988
  }
10988
10989
  });
10989
10990
  };
@@ -11047,7 +11048,7 @@ function $o(t, e) {
11047
11048
  x(te), Xt("outroend", te, et), Dt(1, te, () => rn, () => ({ duration: 100, delay: 100 })), Dt(2, te, () => rn, () => ({ duration: 100 })), C(Y, te);
11048
11049
  };
11049
11050
  K(tt, (Y) => {
11050
- d(I) && Y(ft);
11051
+ d(S) && Y(ft);
11051
11052
  });
11052
11053
  }
11053
11054
  var ct = O(tt, 2);
@@ -11103,16 +11104,16 @@ function $o(t, e) {
11103
11104
  o(Y), v();
11104
11105
  },
11105
11106
  get languageSelected() {
11106
- return c();
11107
+ return l();
11107
11108
  },
11108
11109
  set languageSelected(Y) {
11109
- c(Y), v();
11110
+ l(Y), v();
11110
11111
  },
11111
11112
  get userLevel() {
11112
- return l();
11113
+ return c();
11113
11114
  },
11114
11115
  set userLevel(Y) {
11115
- l(Y), v();
11116
+ c(Y), v();
11116
11117
  },
11117
11118
  get loadingChat() {
11118
11119
  return u();
@@ -11186,7 +11187,7 @@ const Ym = {
11186
11187
  };
11187
11188
  function Ao(t, e) {
11188
11189
  oe(e, !0), be(t, Ym);
11189
- let n = m(e, "showHistory", 15), r = m(e, "actChat", 15), s = m(e, "chats", 15), i = m(e, "messages", 15), a = m(e, "error", 15), o = m(e, "loadingChat", 15), c = m(e, "loadingChats", 15), l = m(e, "newChat", 7), u = m(e, "unreadChatIds", 15), f = m(e, "loadMoreChats", 7), h = m(e, "hasMoreChats", 7), p = m(e, "loadingMoreChats", 15);
11190
+ let n = m(e, "showHistory", 15), r = m(e, "actChat", 15), s = m(e, "chats", 15), i = m(e, "messages", 15), a = m(e, "error", 15), o = m(e, "loadingChat", 15), l = m(e, "loadingChats", 15), c = m(e, "newChat", 7), u = m(e, "unreadChatIds", 15), f = m(e, "loadMoreChats", 7), h = m(e, "hasMoreChats", 7), p = m(e, "loadingMoreChats", 15);
11190
11191
  const b = async (y) => {
11191
11192
  if (o(!0), u().includes(y))
11192
11193
  try {
@@ -11198,26 +11199,26 @@ function Ao(t, e) {
11198
11199
  r(L), i(r().messages), o(!1), a("");
11199
11200
  }, w = (y, L) => {
11200
11201
  confirm(fu({ chatTitle: L })) && vt.deleteChat(y).then(() => {
11201
- s(s().filter((M) => M._id !== y)), r()._id === y && l()();
11202
+ s(s().filter((M) => M._id !== y)), r()._id === y && c()();
11202
11203
  });
11203
11204
  };
11204
- let E = W(null), _;
11205
+ let I = W(null), k;
11205
11206
  Ct(() => {
11206
11207
  var L;
11207
11208
  const y = (L = s()[0]) == null ? void 0 : L._id;
11208
- y && y !== _ && d(E) && (_ = y, d(E).scrollTop = 0);
11209
+ y && y !== k && d(I) && (k = y, d(I).scrollTop = 0);
11209
11210
  }), Ct(() => {
11210
- !h() || p() || c() || !d(E) || (s().length, Promise.resolve().then(() => {
11211
- d(E) && h() && !p() && d(E).scrollHeight <= d(E).clientHeight && f()();
11211
+ !h() || p() || l() || !d(I) || (s().length, Promise.resolve().then(() => {
11212
+ d(I) && h() && !p() && d(I).scrollHeight <= d(I).clientHeight && f()();
11212
11213
  }));
11213
11214
  });
11214
- const k = (y) => {
11215
+ const _ = (y) => {
11215
11216
  const L = y.target;
11216
11217
  h() && L.scrollTop + L.clientHeight >= L.scrollHeight - 60 && f()();
11217
11218
  };
11218
- var I = Hm(), j = z(I);
11219
+ var S = Hm(), j = z(S);
11219
11220
  {
11220
- var S = (y) => {
11221
+ var E = (y) => {
11221
11222
  var L = Bm(), M = z(L), ee = z(M, !0);
11222
11223
  x(M);
11223
11224
  var ge = O(M, 2), et = z(ge);
@@ -11293,16 +11294,16 @@ function Ao(t, e) {
11293
11294
  C(ve, We);
11294
11295
  };
11295
11296
  K(et, (ve) => {
11296
- c() ? ve(Ye) : ve(ke, !1);
11297
+ l() ? ve(Ye) : ve(ke, !1);
11297
11298
  });
11298
11299
  }
11299
- x(ge), Tr(ge, (ve) => g(E, ve), () => d(E)), x(L), D((ve) => Ce(ee, ve), [() => Qa()]), Xt("scroll", ge, k), Dt(3, L, () => kc, () => ({ duration: 600 })), C(y, L);
11300
+ x(ge), Tr(ge, (ve) => g(I, ve), () => d(I)), x(L), D((ve) => Ce(ee, ve), [() => Qa()]), Xt("scroll", ge, _), Dt(3, L, () => kc, () => ({ duration: 600 })), C(y, L);
11300
11301
  };
11301
11302
  K(j, (y) => {
11302
- n() && y(S);
11303
+ n() && y(E);
11303
11304
  });
11304
11305
  }
11305
- return x(I), C(t, I), le({
11306
+ return x(S), C(t, S), le({
11306
11307
  get showHistory() {
11307
11308
  return n();
11308
11309
  },
@@ -11340,16 +11341,16 @@ function Ao(t, e) {
11340
11341
  o(y), v();
11341
11342
  },
11342
11343
  get loadingChats() {
11343
- return c();
11344
+ return l();
11344
11345
  },
11345
11346
  set loadingChats(y) {
11346
- c(y), v();
11347
+ l(y), v();
11347
11348
  },
11348
11349
  get newChat() {
11349
- return l();
11350
+ return c();
11350
11351
  },
11351
11352
  set newChat(y) {
11352
- l(y), v();
11353
+ c(y), v();
11353
11354
  },
11354
11355
  get unreadChatIds() {
11355
11356
  return u();
@@ -11408,9 +11409,9 @@ const Km = {
11408
11409
  };
11409
11410
  function Lo(t, e) {
11410
11411
  oe(e, !0), be(t, Km);
11411
- let n = W(!1), r = W(!1), s = W("it"), i = W(""), a = W(0), o = W(null), c = W(T([])), l = W(T([])), u = W(!1), f = W(!0), h = W(T(new Audio())), p = W(!0), b = W(""), w = W(""), E = W(T([])), _ = W(0), k = W(null), I = W(!1), j = W(0), S = W("");
11412
+ let n = W(!1), r = W(!1), s = W("it"), i = W(""), a = W(0), o = W(null), l = W(T([])), c = W(T([])), u = W(!1), f = W(!0), h = W(T(new Audio())), p = W(!0), b = W(""), w = W(""), I = W(T([])), k = W(0), _ = W(null), S = W(!1), j = W(0), E = W("");
11412
11413
  const y = (B, P, Z) => {
11413
- g(w, d(w) + B), g(E, T(P)), g(_, T(Z));
11414
+ g(w, d(w) + B), g(I, T(P)), g(k, T(Z));
11414
11415
  };
11415
11416
  let L = W("auto");
11416
11417
  const M = [
@@ -11422,27 +11423,27 @@ function Lo(t, e) {
11422
11423
  let ee = W(T({})), ge = W(!1);
11423
11424
  const et = async (B, P) => {
11424
11425
  var Q, V;
11425
- g(u, !0), d(b) && d(b) !== "" && (g(b, ""), g(w, ""), g(E, T([])), g(o, T(await vt.getChat(d(o)._id))), g(l, T(d(o).messages)));
11426
+ g(u, !0), d(b) && d(b) !== "" && (g(b, ""), g(w, ""), g(I, T([])), g(o, T(await vt.getChat(d(o)._id))), g(c, T(d(o).messages)));
11426
11427
  let Z = Object.values(d(ee)).map((Oe) => new Wr(Oe.title, Oe.ext_id, "", "", !0, "Documento Comune"));
11427
- if (g(l, T([
11428
- ...d(l),
11428
+ if (g(c, T([
11429
+ ...d(c),
11429
11430
  new sn((/* @__PURE__ */ new Date()).getTime(), !0, B, B, Z)
11430
- ])), console.log("Current messages:", d(l)), d(l).length == 2 && (console.log("Creating new chat with state:", (Q = d(o)) == null ? void 0 : Q.state), g(o, T(await vt.newChat((V = d(o)) == null ? void 0 : V.state))), d(o).messages = d(l), g(c, T([d(o), ...d(c)]))), d(o)) {
11431
- g(k, T(new AbortController()));
11431
+ ])), console.log("Current messages:", d(c)), d(c).length == 2 && (console.log("Creating new chat with state:", (Q = d(o)) == null ? void 0 : Q.state), g(o, T(await vt.newChat((V = d(o)) == null ? void 0 : V.state))), d(o).messages = d(c), g(l, T([d(o), ...d(l)]))), d(o)) {
11432
+ g(_, T(new AbortController()));
11432
11433
  try {
11433
- let Oe = await vt.sendMessage(d(o)._id, B, P, Z, y, d(s), d(k).signal);
11434
+ let Oe = await vt.sendMessage(d(o)._id, B, P, Z, d(o).state, y, d(s), d(_).signal);
11434
11435
  if (console.log(Oe), Oe) {
11435
- g(l, T([
11436
- ...d(l),
11436
+ g(c, T([
11437
+ ...d(c),
11437
11438
  new sn((/* @__PURE__ */ new Date()).getTime(), !1, "", d(w))
11438
11439
  ])), g(w, "");
11439
11440
  return;
11440
11441
  }
11441
- if (g(o, T(await vt.getChat(d(o)._id))), g(c, T([
11442
+ if (g(o, T(await vt.getChat(d(o)._id))), g(l, T([
11442
11443
  d(o),
11443
- ...d(c).filter((nt) => nt._id !== d(o)._id)
11444
- ])), g(w, ""), g(E, T([])), g(l, T([
11445
- ...d(l),
11444
+ ...d(l).filter((nt) => nt._id !== d(o)._id)
11445
+ ])), g(w, ""), g(I, T([])), g(c, T([
11446
+ ...d(c),
11446
11447
  d(o).messages[d(o).messages.length - 1]
11447
11448
  ])), !d(p)) {
11448
11449
  const nt = d(o).messages[d(o).messages.length - 1];
@@ -11456,29 +11457,29 @@ function Lo(t, e) {
11456
11457
  } catch (Oe) {
11457
11458
  Oe instanceof Error && Oe.name !== "AbortError" && (console.error("Error sending message:", Oe), g(b, T(Ai())));
11458
11459
  } finally {
11459
- g(k, null), g(u, !1);
11460
+ g(_, null), g(u, !1);
11460
11461
  }
11461
11462
  } else
11462
11463
  g(b, T(ad())), g(u, !1);
11463
11464
  }, Ye = () => {
11464
- d(k) && d(k).abort();
11465
+ d(_) && d(_).abort();
11465
11466
  };
11466
11467
  let ke = W(0);
11467
11468
  const ve = (B) => {
11468
11469
  var P;
11469
- !M.includes(d(L)) || (P = d(o)) != null && P.state.blockChat || (B.preventDefault(), B.stopPropagation(), Qn(ke), g(I, !0));
11470
+ !M.includes(d(L)) || (P = d(o)) != null && P.state.blockChat || (B.preventDefault(), B.stopPropagation(), Qn(ke), g(S, !0));
11470
11471
  }, We = (B) => {
11471
11472
  var P;
11472
11473
  !M.includes(d(L)) || (P = d(o)) != null && P.state.blockChat || (B.preventDefault(), B.stopPropagation());
11473
11474
  }, tt = (B) => {
11474
11475
  var P;
11475
- !M.includes(d(L)) || (P = d(o)) != null && P.state.blockChat || (B.preventDefault(), B.stopPropagation(), Qn(ke, -1), d(ke) === 0 && g(I, !1));
11476
+ !M.includes(d(L)) || (P = d(o)) != null && P.state.blockChat || (B.preventDefault(), B.stopPropagation(), Qn(ke, -1), d(ke) === 0 && g(S, !1));
11476
11477
  }, ft = async (B) => {
11477
11478
  var Ge, ae, Te, Ve, Xe, He, rt;
11478
11479
  if (!M.includes(d(L)) || (Ge = d(o)) != null && Ge.state.blockChat) return;
11479
11480
  B.preventDefault(), B.stopPropagation();
11480
11481
  const P = (ae = B.dataTransfer) == null ? void 0 : ae.types;
11481
- console.log("[DROP DEBUG] DataTransfer types:", P), g(S, T(Md())), g(j, 0);
11482
+ console.log("[DROP DEBUG] DataTransfer types:", P), g(E, T(Md())), g(j, 0);
11482
11483
  let Z = 0, Q = 0;
11483
11484
  console.log("[UPLOAD DEBUG] Inizio upload e progresso simulato");
11484
11485
  let V = setInterval(
@@ -11494,10 +11495,10 @@ function Lo(t, e) {
11494
11495
  try {
11495
11496
  let N = await St.getDocumentFromSuite(se);
11496
11497
  if (!N) {
11497
- V && (clearInterval(V), V = null), alert(xs()), g(I, !1), g(ke, 0), g(S, ""), g(j, 0);
11498
+ V && (clearInterval(V), V = null), alert(xs()), g(S, !1), g(ke, 0), g(E, ""), g(j, 0);
11498
11499
  return;
11499
11500
  }
11500
- g(S, T(N.name));
11501
+ g(E, T(N.name));
11501
11502
  const ne = await ct(N, V, (R) => {
11502
11503
  Q = R, R > 50 && V && (clearInterval(V), V = null);
11503
11504
  });
@@ -11512,13 +11513,13 @@ function Lo(t, e) {
11512
11513
  value: JSON.stringify(ue)
11513
11514
  }), d(o).state.info.push({ key: "AI_FILE_ID", value: nt }), et("", "__file_uploaded__")), V && (clearInterval(V), V = null);
11514
11515
  } catch (N) {
11515
- console.error("Error fetching document from Suite:", N), V && (clearInterval(V), V = null), alert(xs()), g(I, !1), g(ke, 0), g(S, ""), g(j, 0);
11516
+ console.error("Error fetching document from Suite:", N), V && (clearInterval(V), V = null), alert(xs()), g(S, !1), g(ke, 0), g(E, ""), g(j, 0);
11516
11517
  }
11517
11518
  } else {
11518
11519
  const Qe = (Ve = B.dataTransfer) == null ? void 0 : Ve.files, ut = Qe ? Array.from(Qe) : [], se = !!((He = (Xe = d(o)) == null ? void 0 : Xe.state.info) != null && He.find((N) => N.key === "CLOUDSTORAGE_FILE_UPLOADED"));
11519
11520
  try {
11520
11521
  for (const N of ut) {
11521
- g(S, T(N.name));
11522
+ g(E, T(N.name));
11522
11523
  const ne = await ct(N, V, (R) => {
11523
11524
  Q = R, R > 50 && V && (clearInterval(V), V = null);
11524
11525
  });
@@ -11539,7 +11540,7 @@ function Lo(t, e) {
11539
11540
  } catch (N) {
11540
11541
  console.error("Error uploading file:", N);
11541
11542
  } finally {
11542
- V && (clearInterval(V), V = null), g(I, !1), g(ke, 0), g(S, ""), g(j, 0);
11543
+ V && (clearInterval(V), V = null), g(S, !1), g(ke, 0), g(E, ""), g(j, 0);
11543
11544
  }
11544
11545
  }
11545
11546
  }, ct = async (B, P, Z) => {
@@ -11547,7 +11548,7 @@ function Lo(t, e) {
11547
11548
  const Q = await vt.uploadFile(B, (V) => {
11548
11549
  console.log("[UPLOAD DEBUG] Callback ricevuto - Real progress:", V), Z == null || Z(V), V > 50 && (g(j, 75 + V * 0.25), console.log("[UPLOAD DEBUG] Using real progress - uploadProgress:", d(j)));
11549
11550
  });
11550
- return console.log("[UPLOAD DEBUG] Upload completato - fileId:", Q.fileId), g(S, ""), g(j, 0), d(ee)[Q.fileId] = {
11551
+ return console.log("[UPLOAD DEBUG] Upload completato - fileId:", Q.fileId), g(E, ""), g(j, 0), d(ee)[Q.fileId] = {
11551
11552
  title: B.name,
11552
11553
  ext_id: "",
11553
11554
  gendoc_id: "",
@@ -11558,7 +11559,7 @@ function Lo(t, e) {
11558
11559
  aiFileId: Q.aiFileId
11559
11560
  };
11560
11561
  } catch (Q) {
11561
- throw console.error("Error uploading file:", Q), g(b, T(Ai())), g(S, ""), g(j, 0), Q;
11562
+ throw console.error("Error uploading file:", Q), g(b, T(Ai())), g(E, ""), g(j, 0), Q;
11562
11563
  }
11563
11564
  };
11564
11565
  Ct(() => {
@@ -11596,14 +11597,14 @@ function Lo(t, e) {
11596
11597
  if (B) {
11597
11598
  g(X, 0), g(F, !0);
11598
11599
  const P = await vt.getChats(0, J);
11599
- g(c, T(P.sort((Z, Q) => Q.lastUpdate - Z.lastUpdate))), g(X, T(P.length)), P.length < J && g(F, !1);
11600
+ g(l, T(P.sort((Z, Q) => Q.lastUpdate - Z.lastUpdate))), g(X, T(P.length)), P.length < J && g(F, !1);
11600
11601
  } else {
11601
11602
  if (!d(F) || d(G)) return;
11602
11603
  g(G, !0);
11603
11604
  try {
11604
11605
  const P = await vt.getChats(d(X), J);
11605
- g(c, T([
11606
- ...d(c),
11606
+ g(l, T([
11607
+ ...d(l),
11607
11608
  ...P.sort((Z, Q) => Q.lastUpdate - Z.lastUpdate)
11608
11609
  ])), g(X, d(X) + P.length), P.length < J && g(F, !1);
11609
11610
  } finally {
@@ -11637,7 +11638,7 @@ function Lo(t, e) {
11637
11638
  [
11638
11639
  sn.firstMessage(d(s), d(i), d(L))
11639
11640
  ]
11640
- ))), g(w, ""), g(l, T(d(o).messages)), g(b, "");
11641
+ ))), g(w, ""), g(c, T(d(o).messages)), g(b, "");
11641
11642
  };
11642
11643
  let Le = W(T([])), De;
11643
11644
  const Be = async () => {
@@ -11649,7 +11650,7 @@ function Lo(t, e) {
11649
11650
  return Z !== ((Q = d(o)) == null ? void 0 : Q._id);
11650
11651
  }), g(Fe, !0);
11651
11652
  let P = await vt.getChat(d(o)._id);
11652
- g(o, T(P)), g(l, T(d(o).messages)), g(Fe, !1);
11653
+ g(o, T(P)), g(c, T(d(o).messages)), g(Fe, !1);
11653
11654
  }
11654
11655
  B.length > 0 && g(Le, T(B));
11655
11656
  } catch (B) {
@@ -11666,7 +11667,7 @@ function Lo(t, e) {
11666
11667
  const P = await St.getUserLevel();
11667
11668
  g(a, T(P));
11668
11669
  const Z = sn.firstMessage(d(s), d(i), d(L));
11669
- g(l, T([Z])), g(o, T(new vn(
11670
+ g(c, T([Z])), g(o, T(new vn(
11670
11671
  "",
11671
11672
  "",
11672
11673
  "",
@@ -11681,10 +11682,10 @@ function Lo(t, e) {
11681
11682
  [Z]
11682
11683
  ))), g(ge, !0);
11683
11684
  const Q = (V) => {
11684
- (V.clientX <= 0 || V.clientY <= 0 || V.clientX >= window.innerWidth || V.clientY >= window.innerHeight) && (g(I, !1), g(ke, 0));
11685
+ (V.clientX <= 0 || V.clientY <= 0 || V.clientX >= window.innerWidth || V.clientY >= window.innerHeight) && (g(S, !1), g(ke, 0));
11685
11686
  };
11686
11687
  window.addEventListener("dragleave", Q), window.addEventListener("dragend", () => {
11687
- g(I, !1), g(ke, 0);
11688
+ g(S, !1), g(ke, 0);
11688
11689
  }), g(f, !1);
11689
11690
  } catch (B) {
11690
11691
  console.error("Failed to load username", B), g(b, T(cd())), g(f, !1);
@@ -11711,7 +11712,7 @@ function Lo(t, e) {
11711
11712
  ]), Dt(3, Te, () => rn, () => ({ duration: 200 })), C(ae, Te);
11712
11713
  };
11713
11714
  K(Z, (ae) => {
11714
- d(I) && ae(Q);
11715
+ d(S) && ae(Q);
11715
11716
  });
11716
11717
  }
11717
11718
  var V = O(Z, 2);
@@ -11731,7 +11732,7 @@ function Lo(t, e) {
11731
11732
  var se = O(Qe, 2), N = z(se);
11732
11733
  x(se), x(Ve), x(Te), D(
11733
11734
  (ne) => {
11734
- Ce(rt, d(S)), q(ut, "style", `width: ${d(j) ?? ""}%`), Ce(N, `${ne ?? ""}%`);
11735
+ Ce(rt, d(E)), q(ut, "style", `width: ${d(j) ?? ""}%`), Ce(N, `${ne ?? ""}%`);
11735
11736
  },
11736
11737
  [
11737
11738
  () => Math.round(d(j))
@@ -11739,7 +11740,7 @@ function Lo(t, e) {
11739
11740
  ), Dt(3, Te, () => rn, () => ({ duration: 200 })), C(ae, Te);
11740
11741
  };
11741
11742
  K(V, (ae) => {
11742
- d(S) && ae(Oe);
11743
+ d(E) && ae(Oe);
11743
11744
  });
11744
11745
  }
11745
11746
  var nt = O(V, 2);
@@ -11776,16 +11777,16 @@ function Lo(t, e) {
11776
11777
  g(o, T(R));
11777
11778
  },
11778
11779
  get chats() {
11779
- return d(c);
11780
+ return d(l);
11780
11781
  },
11781
11782
  set chats(R) {
11782
- g(c, T(R));
11783
+ g(l, T(R));
11783
11784
  },
11784
11785
  get messages() {
11785
- return d(l);
11786
+ return d(c);
11786
11787
  },
11787
11788
  set messages(R) {
11788
- g(l, T(R));
11789
+ g(c, T(R));
11789
11790
  },
11790
11791
  get error() {
11791
11792
  return d(b);
@@ -11878,10 +11879,10 @@ function Lo(t, e) {
11878
11879
  $o(ne, {
11879
11880
  onQuickReply: (R) => et(R, d(L)),
11880
11881
  get messages() {
11881
- return d(l);
11882
+ return d(c);
11882
11883
  },
11883
11884
  set messages(R) {
11884
- g(l, T(R));
11885
+ g(c, T(R));
11885
11886
  },
11886
11887
  get loading() {
11887
11888
  return d(u);
@@ -11902,16 +11903,16 @@ function Lo(t, e) {
11902
11903
  g(w, T(R));
11903
11904
  },
11904
11905
  get streamAttachments() {
11905
- return d(E);
11906
+ return d(I);
11906
11907
  },
11907
11908
  set streamAttachments(R) {
11908
- g(E, T(R));
11909
+ g(I, T(R));
11909
11910
  },
11910
11911
  get streamedAgent() {
11911
- return d(_);
11912
+ return d(k);
11912
11913
  },
11913
11914
  set streamedAgent(R) {
11914
- g(_, T(R));
11915
+ g(k, T(R));
11915
11916
  },
11916
11917
  get languageSelected() {
11917
11918
  return d(s);
@@ -11980,10 +11981,10 @@ function Lo(t, e) {
11980
11981
  g(w, T(R));
11981
11982
  },
11982
11983
  get uploadingFileName() {
11983
- return d(S);
11984
+ return d(E);
11984
11985
  },
11985
11986
  set uploadingFileName(R) {
11986
- g(S, T(R));
11987
+ g(E, T(R));
11987
11988
  },
11988
11989
  get uploadProgress() {
11989
11990
  return d(j);