akpm-knowledge-base-chat 2.0.31 → 2.0.33
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.
- package/CDN/akb-chat.js +642 -641
- package/package.json +1 -1
package/CDN/akb-chat.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* Version: 2.0.
|
|
1
|
+
/* Version: 2.0.33 */
|
|
2
2
|
var mo = Object.defineProperty;
|
|
3
3
|
var ra = (t) => {
|
|
4
4
|
throw TypeError(t);
|
|
@@ -12,7 +12,7 @@ const $s = 1, Ss = 2, Ua = 4, xo = 8, _o = 16, ko = 1, yo = 2, qa = 4, zo = 8, T
|
|
|
12
12
|
function Ao(t) {
|
|
13
13
|
return t.endsWith("capture") && t !== "gotpointercapture" && t !== "lostpointercapture";
|
|
14
14
|
}
|
|
15
|
-
const
|
|
15
|
+
const jo = [
|
|
16
16
|
"beforeinput",
|
|
17
17
|
"click",
|
|
18
18
|
"change",
|
|
@@ -37,10 +37,10 @@ const Lo = [
|
|
|
37
37
|
"touchmove",
|
|
38
38
|
"touchstart"
|
|
39
39
|
];
|
|
40
|
-
function
|
|
41
|
-
return
|
|
40
|
+
function Lo(t) {
|
|
41
|
+
return jo.includes(t);
|
|
42
42
|
}
|
|
43
|
-
const
|
|
43
|
+
const Fo = {
|
|
44
44
|
// no `class: 'className'` because we handle that separately
|
|
45
45
|
formnovalidate: "formNoValidate",
|
|
46
46
|
ismap: "isMap",
|
|
@@ -51,15 +51,15 @@ const Ro = {
|
|
|
51
51
|
defaultchecked: "defaultChecked",
|
|
52
52
|
srcobject: "srcObject"
|
|
53
53
|
};
|
|
54
|
-
function
|
|
55
|
-
return t = t.toLowerCase(),
|
|
54
|
+
function Ro(t) {
|
|
55
|
+
return t = t.toLowerCase(), Fo[t] ?? t;
|
|
56
56
|
}
|
|
57
|
-
const
|
|
57
|
+
const Do = ["touchstart", "touchmove"];
|
|
58
58
|
function Po(t) {
|
|
59
|
-
return
|
|
59
|
+
return Do.includes(t);
|
|
60
60
|
}
|
|
61
61
|
const is = !1;
|
|
62
|
-
var
|
|
62
|
+
var Lr = Array.isArray, Oo = Array.prototype.indexOf, Is = Array.from, mr = Object.keys, br = Object.defineProperty, hn = Object.getOwnPropertyDescriptor, Ha = Object.getOwnPropertyDescriptors, Mo = Object.prototype, No = Array.prototype, As = Object.getPrototypeOf;
|
|
63
63
|
function Uo(t) {
|
|
64
64
|
return typeof t == "function";
|
|
65
65
|
}
|
|
@@ -72,14 +72,14 @@ function wr(t) {
|
|
|
72
72
|
for (var e = 0; e < t.length; e++)
|
|
73
73
|
t[e]();
|
|
74
74
|
}
|
|
75
|
-
const Tt = 2, Ya = 4, Kn = 8,
|
|
75
|
+
const Tt = 2, Ya = 4, Kn = 8, Fr = 16, Bt = 32, bn = 64, xr = 128, wn = 256, _r = 512, lt = 1024, Vt = 2048, xn = 4096, Ot = 8192, In = 16384, Ga = 32768, Rr = 65536, Bo = 1 << 17, Ho = 1 << 19, Ja = 1 << 20, Zt = Symbol("$state"), Wa = Symbol("legacy props"), Yo = Symbol("");
|
|
76
76
|
function Za(t) {
|
|
77
77
|
return t === this.v;
|
|
78
78
|
}
|
|
79
79
|
function Go(t, e) {
|
|
80
80
|
return t != t ? e == e : t !== e || t !== null && typeof t == "object" || typeof t == "function";
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function js(t) {
|
|
83
83
|
return !Go(t, this.v);
|
|
84
84
|
}
|
|
85
85
|
function Jo(t) {
|
|
@@ -132,17 +132,17 @@ function Y(t) {
|
|
|
132
132
|
return /* @__PURE__ */ Va(gt(t));
|
|
133
133
|
}
|
|
134
134
|
// @__NO_SIDE_EFFECTS__
|
|
135
|
-
function
|
|
135
|
+
function Dr(t, e = !1) {
|
|
136
136
|
var r;
|
|
137
137
|
const n = gt(t);
|
|
138
|
-
return e || (n.equals =
|
|
138
|
+
return e || (n.equals = js), An && Ae !== null && Ae.l !== null && ((r = Ae.l).s ?? (r.s = [])).push(n), n;
|
|
139
139
|
}
|
|
140
140
|
function Kt(t, e = !1) {
|
|
141
|
-
return /* @__PURE__ */ Va(/* @__PURE__ */
|
|
141
|
+
return /* @__PURE__ */ Va(/* @__PURE__ */ Dr(t, e));
|
|
142
142
|
}
|
|
143
143
|
// @__NO_SIDE_EFFECTS__
|
|
144
144
|
function Va(t) {
|
|
145
|
-
return
|
|
145
|
+
return Re !== null && Re.f & Tt && (Mt === null ? ml([t]) : Mt.push(t)), t;
|
|
146
146
|
}
|
|
147
147
|
function Kr(t, e) {
|
|
148
148
|
return m(
|
|
@@ -151,7 +151,7 @@ function Kr(t, e) {
|
|
|
151
151
|
), e;
|
|
152
152
|
}
|
|
153
153
|
function m(t, e) {
|
|
154
|
-
return
|
|
154
|
+
return Re !== null && !sn && nr() && Re.f & (Tt | Fr) && // If the source was created locally within the current derived, then
|
|
155
155
|
// we allow the mutation.
|
|
156
156
|
(Mt === null || !Mt.includes(t)) && nl(), os(t, e);
|
|
157
157
|
}
|
|
@@ -224,7 +224,7 @@ function C(t, e = null, n) {
|
|
|
224
224
|
const r = As(t);
|
|
225
225
|
if (r !== Mo && r !== No)
|
|
226
226
|
return t;
|
|
227
|
-
var s = /* @__PURE__ */ new Map(), a =
|
|
227
|
+
var s = /* @__PURE__ */ new Map(), a = Lr(t), i = gt(0);
|
|
228
228
|
a && s.set("length", gt(
|
|
229
229
|
/** @type {any[]} */
|
|
230
230
|
t.length
|
|
@@ -406,16 +406,16 @@ function O(t, e = 1, n = !1) {
|
|
|
406
406
|
return zt(r), /** @type {TemplateNode} */
|
|
407
407
|
r;
|
|
408
408
|
}
|
|
409
|
-
function
|
|
409
|
+
function Ls(t) {
|
|
410
410
|
t.textContent = "";
|
|
411
411
|
}
|
|
412
412
|
// @__NO_SIDE_EFFECTS__
|
|
413
413
|
function Ze(t) {
|
|
414
414
|
var e = Tt | Vt;
|
|
415
415
|
ve === null ? e |= wn : ve.f |= Ja;
|
|
416
|
-
var n =
|
|
416
|
+
var n = Re !== null && Re.f & Tt ? (
|
|
417
417
|
/** @type {Derived} */
|
|
418
|
-
|
|
418
|
+
Re
|
|
419
419
|
) : null;
|
|
420
420
|
const r = {
|
|
421
421
|
children: null,
|
|
@@ -438,7 +438,7 @@ function Ze(t) {
|
|
|
438
438
|
// @__NO_SIDE_EFFECTS__
|
|
439
439
|
function ei(t) {
|
|
440
440
|
const e = /* @__PURE__ */ Ze(t);
|
|
441
|
-
return e.equals =
|
|
441
|
+
return e.equals = js, e;
|
|
442
442
|
}
|
|
443
443
|
function ti(t) {
|
|
444
444
|
var e = t.children;
|
|
@@ -446,7 +446,7 @@ function ti(t) {
|
|
|
446
446
|
t.children = null;
|
|
447
447
|
for (var n = 0; n < e.length; n += 1) {
|
|
448
448
|
var r = e[n];
|
|
449
|
-
r.f & Tt ?
|
|
449
|
+
r.f & Tt ? Fs(
|
|
450
450
|
/** @type {Derived} */
|
|
451
451
|
r
|
|
452
452
|
) : Nt(
|
|
@@ -481,11 +481,11 @@ function ri(t) {
|
|
|
481
481
|
var e = ni(t), n = (pn || t.f & wn) && t.deps !== null ? xn : lt;
|
|
482
482
|
At(t, n), t.equals(e) || (t.v = e, t.wv = vi());
|
|
483
483
|
}
|
|
484
|
-
function
|
|
484
|
+
function Fs(t) {
|
|
485
485
|
ti(t), Vn(t, 0), At(t, In), t.v = t.children = t.deps = t.ctx = t.reactions = null;
|
|
486
486
|
}
|
|
487
487
|
function si(t) {
|
|
488
|
-
ve === null &&
|
|
488
|
+
ve === null && Re === null && Zo(), Re !== null && Re.f & wn && Wo(), Ps && Jo();
|
|
489
489
|
}
|
|
490
490
|
function ol(t, e) {
|
|
491
491
|
var n = e.last;
|
|
@@ -520,10 +520,10 @@ function _n(t, e, n, r = !0) {
|
|
|
520
520
|
}
|
|
521
521
|
} else e !== null && Ur(i);
|
|
522
522
|
var c = n && i.deps === null && i.first === null && i.nodes_start === null && i.teardown === null && (i.f & (Ja | xr)) === 0;
|
|
523
|
-
if (!c && !s && r && (a !== null && ol(i, a),
|
|
523
|
+
if (!c && !s && r && (a !== null && ol(i, a), Re !== null && Re.f & Tt)) {
|
|
524
524
|
var l = (
|
|
525
525
|
/** @type {Derived} */
|
|
526
|
-
|
|
526
|
+
Re
|
|
527
527
|
);
|
|
528
528
|
(l.children ?? (l.children = [])).push(i);
|
|
529
529
|
}
|
|
@@ -533,7 +533,7 @@ function ll(t) {
|
|
|
533
533
|
const e = _n(Kn, null, !1);
|
|
534
534
|
return At(e, lt), e.teardown = t, e;
|
|
535
535
|
}
|
|
536
|
-
function
|
|
536
|
+
function Lt(t) {
|
|
537
537
|
si();
|
|
538
538
|
var e = ve !== null && (ve.f & Bt) !== 0 && Ae !== null && !Ae.m;
|
|
539
539
|
if (e) {
|
|
@@ -544,15 +544,15 @@ function Ft(t) {
|
|
|
544
544
|
(n.e ?? (n.e = [])).push({
|
|
545
545
|
fn: t,
|
|
546
546
|
effect: ve,
|
|
547
|
-
reaction:
|
|
547
|
+
reaction: Re
|
|
548
548
|
});
|
|
549
549
|
} else {
|
|
550
|
-
var r =
|
|
550
|
+
var r = jn(t);
|
|
551
551
|
return r;
|
|
552
552
|
}
|
|
553
553
|
}
|
|
554
554
|
function cl(t) {
|
|
555
|
-
return si(),
|
|
555
|
+
return si(), Ln(t);
|
|
556
556
|
}
|
|
557
557
|
function ul(t) {
|
|
558
558
|
const e = _n(bn, t, !0);
|
|
@@ -568,7 +568,7 @@ function dl(t) {
|
|
|
568
568
|
}) : (Nt(e), r(void 0));
|
|
569
569
|
});
|
|
570
570
|
}
|
|
571
|
-
function
|
|
571
|
+
function jn(t) {
|
|
572
572
|
return _n(Ya, t, !1);
|
|
573
573
|
}
|
|
574
574
|
function er(t, e) {
|
|
@@ -576,7 +576,7 @@ function er(t, e) {
|
|
|
576
576
|
/** @type {ComponentContextLegacy} */
|
|
577
577
|
Ae
|
|
578
578
|
), r = { effect: null, ran: !1 };
|
|
579
|
-
n.l.r1.push(r), r.effect =
|
|
579
|
+
n.l.r1.push(r), r.effect = Ln(() => {
|
|
580
580
|
t(), !r.ran && (r.ran = !0, m(n.l.r2, !0), qt(e));
|
|
581
581
|
});
|
|
582
582
|
}
|
|
@@ -585,17 +585,17 @@ function tr() {
|
|
|
585
585
|
/** @type {ComponentContextLegacy} */
|
|
586
586
|
Ae
|
|
587
587
|
);
|
|
588
|
-
|
|
588
|
+
Ln(() => {
|
|
589
589
|
if (d(t.l.r2)) {
|
|
590
590
|
for (var e of t.l.r1) {
|
|
591
591
|
var n = e.effect;
|
|
592
|
-
n.f & lt && At(n, xn),
|
|
592
|
+
n.f & lt && At(n, xn), Rn(n) && Nr(n), e.ran = !1;
|
|
593
593
|
}
|
|
594
594
|
t.l.r2.v = !1;
|
|
595
595
|
}
|
|
596
596
|
});
|
|
597
597
|
}
|
|
598
|
-
function
|
|
598
|
+
function Ln(t) {
|
|
599
599
|
return _n(Kn, t, !0);
|
|
600
600
|
}
|
|
601
601
|
function P(t, e = [], n = Ze) {
|
|
@@ -603,7 +603,7 @@ function P(t, e = [], n = Ze) {
|
|
|
603
603
|
return Or(() => t(...r.map(d)));
|
|
604
604
|
}
|
|
605
605
|
function Or(t, e = 0) {
|
|
606
|
-
return _n(Kn |
|
|
606
|
+
return _n(Kn | Fr | e, t, !0);
|
|
607
607
|
}
|
|
608
608
|
function En(t, e = !0) {
|
|
609
609
|
return _n(Kn | Bt, t, !0, e);
|
|
@@ -611,7 +611,7 @@ function En(t, e = !0) {
|
|
|
611
611
|
function ai(t) {
|
|
612
612
|
var e = t.teardown;
|
|
613
613
|
if (e !== null) {
|
|
614
|
-
const n = Ps, r =
|
|
614
|
+
const n = Ps, r = Re;
|
|
615
615
|
ca(!0), Ut(null);
|
|
616
616
|
try {
|
|
617
617
|
e.call(null);
|
|
@@ -625,7 +625,7 @@ function ii(t) {
|
|
|
625
625
|
if (e !== null) {
|
|
626
626
|
t.deriveds = null;
|
|
627
627
|
for (var n = 0; n < e.length; n += 1)
|
|
628
|
-
|
|
628
|
+
Fs(e[n]);
|
|
629
629
|
}
|
|
630
630
|
}
|
|
631
631
|
function oi(t, e = !1) {
|
|
@@ -668,7 +668,7 @@ function li(t) {
|
|
|
668
668
|
}
|
|
669
669
|
function kr(t, e) {
|
|
670
670
|
var n = [];
|
|
671
|
-
|
|
671
|
+
Rs(t, n, !0), ci(n, () => {
|
|
672
672
|
Nt(t), e && e();
|
|
673
673
|
});
|
|
674
674
|
}
|
|
@@ -681,14 +681,14 @@ function ci(t, e) {
|
|
|
681
681
|
} else
|
|
682
682
|
e();
|
|
683
683
|
}
|
|
684
|
-
function
|
|
684
|
+
function Rs(t, e, n) {
|
|
685
685
|
if (!(t.f & Ot)) {
|
|
686
686
|
if (t.f ^= Ot, t.transitions !== null)
|
|
687
687
|
for (const i of t.transitions)
|
|
688
688
|
(i.is_global || n) && e.push(i);
|
|
689
689
|
for (var r = t.first; r !== null; ) {
|
|
690
|
-
var s = r.next, a = (r.f &
|
|
691
|
-
|
|
690
|
+
var s = r.next, a = (r.f & Rr) !== 0 || (r.f & Bt) !== 0;
|
|
691
|
+
Rs(r, e, a ? n : !1), r = s;
|
|
692
692
|
}
|
|
693
693
|
}
|
|
694
694
|
}
|
|
@@ -697,9 +697,9 @@ function yr(t) {
|
|
|
697
697
|
}
|
|
698
698
|
function ui(t, e) {
|
|
699
699
|
if (t.f & Ot) {
|
|
700
|
-
t.f ^= Ot, t.f & lt || (t.f ^= lt),
|
|
700
|
+
t.f ^= Ot, t.f & lt || (t.f ^= lt), Rn(t) && (At(t, Vt), Ur(t));
|
|
701
701
|
for (var n = t.first; n !== null; ) {
|
|
702
|
-
var r = n.next, s = (n.f &
|
|
702
|
+
var r = n.next, s = (n.f & Rr) !== 0 || (n.f & Bt) !== 0;
|
|
703
703
|
ui(n, s ? e : !1), n = r;
|
|
704
704
|
}
|
|
705
705
|
if (t.transitions !== null)
|
|
@@ -719,7 +719,7 @@ function fi() {
|
|
|
719
719
|
const t = ds.slice();
|
|
720
720
|
ds = [], wr(t);
|
|
721
721
|
}
|
|
722
|
-
function
|
|
722
|
+
function Fn(t) {
|
|
723
723
|
zr || (zr = !0, queueMicrotask(di)), us.push(t);
|
|
724
724
|
}
|
|
725
725
|
function hl(t) {
|
|
@@ -728,7 +728,7 @@ function hl(t) {
|
|
|
728
728
|
function vl() {
|
|
729
729
|
zr && di(), Tr && fi();
|
|
730
730
|
}
|
|
731
|
-
function
|
|
731
|
+
function Ds(t) {
|
|
732
732
|
throw new Error("https://svelte.dev/e/lifecycle_outside_component");
|
|
733
733
|
}
|
|
734
734
|
const pi = 0, gl = 1;
|
|
@@ -740,9 +740,9 @@ function ca(t) {
|
|
|
740
740
|
Ps = t;
|
|
741
741
|
}
|
|
742
742
|
let fn = [], $n = 0;
|
|
743
|
-
let
|
|
743
|
+
let Re = null, sn = !1;
|
|
744
744
|
function Ut(t) {
|
|
745
|
-
|
|
745
|
+
Re = t;
|
|
746
746
|
}
|
|
747
747
|
let ve = null;
|
|
748
748
|
function It(t) {
|
|
@@ -763,7 +763,7 @@ function vi() {
|
|
|
763
763
|
function nr() {
|
|
764
764
|
return !An || Ae !== null && Ae.l === null;
|
|
765
765
|
}
|
|
766
|
-
function
|
|
766
|
+
function Rn(t) {
|
|
767
767
|
var l;
|
|
768
768
|
var e = t.f;
|
|
769
769
|
if (e & Vt)
|
|
@@ -778,7 +778,7 @@ function Dn(t) {
|
|
|
778
778
|
i && (t.f ^= _r);
|
|
779
779
|
}
|
|
780
780
|
for (s = 0; s < c; s++)
|
|
781
|
-
if (a = n[s],
|
|
781
|
+
if (a = n[s], Rn(
|
|
782
782
|
/** @type {Derived} */
|
|
783
783
|
a
|
|
784
784
|
) && ri(
|
|
@@ -837,9 +837,9 @@ function gi(t, e, n = 0) {
|
|
|
837
837
|
}
|
|
838
838
|
function mi(t) {
|
|
839
839
|
var h;
|
|
840
|
-
var e = mt, n = xt, r = Yt, s =
|
|
840
|
+
var e = mt, n = xt, r = Yt, s = Re, a = pn, i = Mt, o = Ae, c = sn, l = t.f;
|
|
841
841
|
mt = /** @type {null | Value[]} */
|
|
842
|
-
null, xt = 0, Yt = null,
|
|
842
|
+
null, xt = 0, Yt = null, Re = l & (Bt | bn) ? null : t, pn = !Tn && (l & wn) !== 0, Mt = null, Ae = t.ctx, sn = !1, $r++;
|
|
843
843
|
try {
|
|
844
844
|
var u = (
|
|
845
845
|
/** @type {Function} */
|
|
@@ -866,7 +866,7 @@ function mi(t) {
|
|
|
866
866
|
);
|
|
867
867
|
return s !== null && $r++, u;
|
|
868
868
|
} finally {
|
|
869
|
-
mt = e, xt = n, Yt = r,
|
|
869
|
+
mt = e, xt = n, Yt = r, Re = s, pn = a, Mt = i, Ae = o, sn = c;
|
|
870
870
|
}
|
|
871
871
|
}
|
|
872
872
|
function _l(t, e) {
|
|
@@ -900,7 +900,7 @@ function Nr(t) {
|
|
|
900
900
|
var n = ve, r = Ae;
|
|
901
901
|
ve = t;
|
|
902
902
|
try {
|
|
903
|
-
e &
|
|
903
|
+
e & Fr ? fl(t) : oi(t), ii(t), ai(t);
|
|
904
904
|
var s = mi(t);
|
|
905
905
|
t.teardown = typeof s == "function" ? s : null, t.wv = hi;
|
|
906
906
|
var a = t.deps, i;
|
|
@@ -951,7 +951,7 @@ function kl(t) {
|
|
|
951
951
|
var r = t[n];
|
|
952
952
|
if (!(r.f & (In | Ot)))
|
|
953
953
|
try {
|
|
954
|
-
|
|
954
|
+
Rn(r) && (Nr(r), r.deps === null && r.first === null && r.nodes_start === null && (r.teardown === null ? li(r) : r.fn = null));
|
|
955
955
|
} catch (s) {
|
|
956
956
|
Mr(s, r, null, r.ctx);
|
|
957
957
|
}
|
|
@@ -985,7 +985,7 @@ function xi(t, e) {
|
|
|
985
985
|
n.f ^= lt;
|
|
986
986
|
else
|
|
987
987
|
try {
|
|
988
|
-
|
|
988
|
+
Rn(n) && Nr(n);
|
|
989
989
|
} catch (f) {
|
|
990
990
|
Mr(f, n, null, n.ctx);
|
|
991
991
|
}
|
|
@@ -1036,14 +1036,14 @@ function d(t) {
|
|
|
1036
1036
|
/** @type {Derived} */
|
|
1037
1037
|
t
|
|
1038
1038
|
);
|
|
1039
|
-
return
|
|
1039
|
+
return Fs(
|
|
1040
1040
|
/** @type {Derived} */
|
|
1041
1041
|
t
|
|
1042
1042
|
), r;
|
|
1043
1043
|
}
|
|
1044
|
-
if (
|
|
1044
|
+
if (Re !== null && !sn) {
|
|
1045
1045
|
Mt !== null && Mt.includes(t) && tl();
|
|
1046
|
-
var s =
|
|
1046
|
+
var s = Re.deps;
|
|
1047
1047
|
t.rv < $r && (t.rv = $r, mt === null && s !== null && s[xt] === t ? xt++ : mt === null ? mt = [t] : mt.push(t));
|
|
1048
1048
|
} else if (n && /** @type {Derived} */
|
|
1049
1049
|
t.deps === null)
|
|
@@ -1066,7 +1066,7 @@ function d(t) {
|
|
|
1066
1066
|
break;
|
|
1067
1067
|
}
|
|
1068
1068
|
return n && (a = /** @type {Derived} */
|
|
1069
|
-
t,
|
|
1069
|
+
t, Rn(a) && ri(a)), t.v;
|
|
1070
1070
|
}
|
|
1071
1071
|
function qt(t) {
|
|
1072
1072
|
var e = sn;
|
|
@@ -1106,12 +1106,12 @@ function oe(t) {
|
|
|
1106
1106
|
t !== void 0 && (e.x = t);
|
|
1107
1107
|
const i = e.e;
|
|
1108
1108
|
if (i !== null) {
|
|
1109
|
-
var n = ve, r =
|
|
1109
|
+
var n = ve, r = Re;
|
|
1110
1110
|
e.e = null;
|
|
1111
1111
|
try {
|
|
1112
1112
|
for (var s = 0; s < i.length; s++) {
|
|
1113
1113
|
var a = i[s];
|
|
1114
|
-
It(a.effect), Ut(a.reaction),
|
|
1114
|
+
It(a.effect), Ut(a.reaction), jn(a.fn);
|
|
1115
1115
|
}
|
|
1116
1116
|
} finally {
|
|
1117
1117
|
It(n), Ut(r);
|
|
@@ -1122,7 +1122,7 @@ function oe(t) {
|
|
|
1122
1122
|
return t || /** @type {T} */
|
|
1123
1123
|
{};
|
|
1124
1124
|
}
|
|
1125
|
-
function
|
|
1125
|
+
function Dn(t) {
|
|
1126
1126
|
if (!(typeof t != "object" || !t || t instanceof EventTarget)) {
|
|
1127
1127
|
if (Zt in t)
|
|
1128
1128
|
fs(t);
|
|
@@ -1159,13 +1159,13 @@ function fs(t, e = /* @__PURE__ */ new Set()) {
|
|
|
1159
1159
|
function Tl(t, e) {
|
|
1160
1160
|
if (e) {
|
|
1161
1161
|
const n = document.body;
|
|
1162
|
-
t.autofocus = !0,
|
|
1162
|
+
t.autofocus = !0, Fn(() => {
|
|
1163
1163
|
document.activeElement === n && t.focus();
|
|
1164
1164
|
});
|
|
1165
1165
|
}
|
|
1166
1166
|
}
|
|
1167
1167
|
function $l(t) {
|
|
1168
|
-
he && /* @__PURE__ */ bt(t) !== null &&
|
|
1168
|
+
he && /* @__PURE__ */ bt(t) !== null && Ls(t);
|
|
1169
1169
|
}
|
|
1170
1170
|
let ua = !1;
|
|
1171
1171
|
function _i() {
|
|
@@ -1188,7 +1188,7 @@ function _i() {
|
|
|
1188
1188
|
));
|
|
1189
1189
|
}
|
|
1190
1190
|
function ki(t) {
|
|
1191
|
-
var e =
|
|
1191
|
+
var e = Re, n = ve;
|
|
1192
1192
|
Ut(null), It(null);
|
|
1193
1193
|
try {
|
|
1194
1194
|
return t();
|
|
@@ -1209,7 +1209,7 @@ function Ti(t, e, n, r) {
|
|
|
1209
1209
|
if (r.capture || Hn.call(e, a), !a.cancelBubble)
|
|
1210
1210
|
return ki(() => n.call(this, a));
|
|
1211
1211
|
}
|
|
1212
|
-
return t.startsWith("pointer") || t.startsWith("touch") || t === "wheel" ?
|
|
1212
|
+
return t.startsWith("pointer") || t.startsWith("touch") || t === "wheel" ? Fn(() => {
|
|
1213
1213
|
e.addEventListener(t, s, r);
|
|
1214
1214
|
}) : e.addEventListener(t, s, r), s;
|
|
1215
1215
|
}
|
|
@@ -1254,7 +1254,7 @@ function Hn(t) {
|
|
|
1254
1254
|
return a || n;
|
|
1255
1255
|
}
|
|
1256
1256
|
});
|
|
1257
|
-
var u =
|
|
1257
|
+
var u = Re, f = ve;
|
|
1258
1258
|
Ut(null), It(null);
|
|
1259
1259
|
try {
|
|
1260
1260
|
for (var p, h = []; a !== null; ) {
|
|
@@ -1264,7 +1264,7 @@ function Hn(t) {
|
|
|
1264
1264
|
var x = a["__" + r];
|
|
1265
1265
|
if (x !== void 0 && !/** @type {any} */
|
|
1266
1266
|
a.disabled)
|
|
1267
|
-
if (
|
|
1267
|
+
if (Lr(x)) {
|
|
1268
1268
|
var [k, ...b] = x;
|
|
1269
1269
|
k.apply(a, [t, ...b]);
|
|
1270
1270
|
} else
|
|
@@ -1300,7 +1300,7 @@ function Ct(t, e) {
|
|
|
1300
1300
|
n.nodes_start === null && (n.nodes_start = t, n.nodes_end = e);
|
|
1301
1301
|
}
|
|
1302
1302
|
// @__NO_SIDE_EFFECTS__
|
|
1303
|
-
function
|
|
1303
|
+
function L(t, e) {
|
|
1304
1304
|
var n = (e & Co) !== 0, r = (e & Io) !== 0, s, a = !t.startsWith("<!>");
|
|
1305
1305
|
return () => {
|
|
1306
1306
|
if (he)
|
|
@@ -1406,7 +1406,7 @@ function El(t, e) {
|
|
|
1406
1406
|
i;
|
|
1407
1407
|
} catch (i) {
|
|
1408
1408
|
if (i === zn)
|
|
1409
|
-
return e.recover === !1 && Xo(), cs(),
|
|
1409
|
+
return e.recover === !1 && Xo(), cs(), Ls(n), Wt(!1), $i(t, e);
|
|
1410
1410
|
throw i;
|
|
1411
1411
|
} finally {
|
|
1412
1412
|
Wt(r), zt(s);
|
|
@@ -1466,7 +1466,7 @@ function Cl(t, e) {
|
|
|
1466
1466
|
}
|
|
1467
1467
|
function X(t, e, n = !1) {
|
|
1468
1468
|
he && Sn();
|
|
1469
|
-
var r = t, s = null, a = null, i = vt, o = n ?
|
|
1469
|
+
var r = t, s = null, a = null, i = vt, o = n ? Rr : 0, c = !1;
|
|
1470
1470
|
const l = (f, p = !0) => {
|
|
1471
1471
|
c = !0, u(p, f);
|
|
1472
1472
|
}, u = (f, p) => {
|
|
@@ -1494,7 +1494,7 @@ function rt(t, e) {
|
|
|
1494
1494
|
}
|
|
1495
1495
|
function Il(t, e, n, r) {
|
|
1496
1496
|
for (var s = [], a = e.length, i = 0; i < a; i++)
|
|
1497
|
-
|
|
1497
|
+
Rs(e[i].e, s, !0);
|
|
1498
1498
|
var o = a > 0 && s.length === 0 && n !== null;
|
|
1499
1499
|
if (o) {
|
|
1500
1500
|
var c = (
|
|
@@ -1502,7 +1502,7 @@ function Il(t, e, n, r) {
|
|
|
1502
1502
|
/** @type {Element} */
|
|
1503
1503
|
n.parentNode
|
|
1504
1504
|
);
|
|
1505
|
-
|
|
1505
|
+
Ls(c), c.append(
|
|
1506
1506
|
/** @type {Element} */
|
|
1507
1507
|
n
|
|
1508
1508
|
), r.clear(), Qt(t, e[0].prev, e[a - 1].next);
|
|
@@ -1529,7 +1529,7 @@ function st(t, e, n, r, s, a = null) {
|
|
|
1529
1529
|
he && Sn();
|
|
1530
1530
|
var u = null, f = !1, p = /* @__PURE__ */ ei(() => {
|
|
1531
1531
|
var h = n();
|
|
1532
|
-
return
|
|
1532
|
+
return Lr(h) ? h : h == null ? [] : Is(h);
|
|
1533
1533
|
});
|
|
1534
1534
|
Or(() => {
|
|
1535
1535
|
var h = d(p), w = h.length;
|
|
@@ -1568,9 +1568,9 @@ function st(t, e, n, r, s, a = null) {
|
|
|
1568
1568
|
w > 0 && zt(ls());
|
|
1569
1569
|
}
|
|
1570
1570
|
if (!he) {
|
|
1571
|
-
var
|
|
1571
|
+
var j = (
|
|
1572
1572
|
/** @type {Effect} */
|
|
1573
|
-
|
|
1573
|
+
Re
|
|
1574
1574
|
);
|
|
1575
1575
|
Al(
|
|
1576
1576
|
h,
|
|
@@ -1578,7 +1578,7 @@ function st(t, e, n, r, s, a = null) {
|
|
|
1578
1578
|
i,
|
|
1579
1579
|
s,
|
|
1580
1580
|
e,
|
|
1581
|
-
(
|
|
1581
|
+
(j.f & Ot) !== 0,
|
|
1582
1582
|
r
|
|
1583
1583
|
);
|
|
1584
1584
|
}
|
|
@@ -1589,30 +1589,30 @@ function st(t, e, n, r, s, a = null) {
|
|
|
1589
1589
|
}
|
|
1590
1590
|
function Al(t, e, n, r, s, a, i, o) {
|
|
1591
1591
|
var Xe, Qe, ct, ft;
|
|
1592
|
-
var c = (s & xo) !== 0, l = (s & ($s | Ss)) !== 0, u = t.length, f = e.items, p = e.first, h = p, w, x = null, k, b = [], _ = [], $, A, S,
|
|
1592
|
+
var c = (s & xo) !== 0, l = (s & ($s | Ss)) !== 0, u = t.length, f = e.items, p = e.first, h = p, w, x = null, k, b = [], _ = [], $, A, S, j;
|
|
1593
1593
|
if (c)
|
|
1594
|
-
for (
|
|
1595
|
-
$ = t[
|
|
1596
|
-
for (
|
|
1597
|
-
if ($ = t[
|
|
1598
|
-
var
|
|
1594
|
+
for (j = 0; j < u; j += 1)
|
|
1595
|
+
$ = t[j], A = i($, j), S = f.get(A), S !== void 0 && ((Xe = S.a) == null || Xe.measure(), (k ?? (k = /* @__PURE__ */ new Set())).add(S));
|
|
1596
|
+
for (j = 0; j < u; j += 1) {
|
|
1597
|
+
if ($ = t[j], A = i($, j), S = f.get(A), S === void 0) {
|
|
1598
|
+
var R = h ? (
|
|
1599
1599
|
/** @type {TemplateNode} */
|
|
1600
1600
|
h.e.nodes_start
|
|
1601
1601
|
) : n;
|
|
1602
1602
|
x = Ei(
|
|
1603
|
-
|
|
1603
|
+
R,
|
|
1604
1604
|
e,
|
|
1605
1605
|
x,
|
|
1606
1606
|
x === null ? e.first : x.next,
|
|
1607
1607
|
$,
|
|
1608
1608
|
A,
|
|
1609
|
-
|
|
1609
|
+
j,
|
|
1610
1610
|
r,
|
|
1611
1611
|
s
|
|
1612
1612
|
), f.set(A, x), b = [], _ = [], h = x.next;
|
|
1613
1613
|
continue;
|
|
1614
1614
|
}
|
|
1615
|
-
if (l &&
|
|
1615
|
+
if (l && jl(S, $, j, s), S.e.f & Ot && (yr(S.e), c && ((Qe = S.a) == null || Qe.unfix(), (k ?? (k = /* @__PURE__ */ new Set())).delete(S))), S !== h) {
|
|
1616
1616
|
if (w !== void 0 && w.has(S)) {
|
|
1617
1617
|
if (b.length < _.length) {
|
|
1618
1618
|
var M = _[0], G;
|
|
@@ -1622,7 +1622,7 @@ function Al(t, e, n, r, s, a, i, o) {
|
|
|
1622
1622
|
da(b[G], M, n);
|
|
1623
1623
|
for (G = 0; G < _.length; G += 1)
|
|
1624
1624
|
w.delete(_[G]);
|
|
1625
|
-
Qt(e, ge.prev, tt.next), Qt(e, x, ge), Qt(e, tt, M), h = M, x = tt,
|
|
1625
|
+
Qt(e, ge.prev, tt.next), Qt(e, x, ge), Qt(e, tt, M), h = M, x = tt, j -= 1, b = [], _ = [];
|
|
1626
1626
|
} else
|
|
1627
1627
|
w.delete(S), da(S, h, n), Qt(e, S.prev, S.next), Qt(e, S, x === null ? e.first : x.next), Qt(e, x, S), x = S;
|
|
1628
1628
|
continue;
|
|
@@ -1642,22 +1642,22 @@ function Al(t, e, n, r, s, a, i, o) {
|
|
|
1642
1642
|
if (Ce > 0) {
|
|
1643
1643
|
var ae = s & Ua && u === 0 ? n : null;
|
|
1644
1644
|
if (c) {
|
|
1645
|
-
for (
|
|
1646
|
-
(ct = Ee[
|
|
1647
|
-
for (
|
|
1648
|
-
(ft = Ee[
|
|
1645
|
+
for (j = 0; j < Ce; j += 1)
|
|
1646
|
+
(ct = Ee[j].a) == null || ct.measure();
|
|
1647
|
+
for (j = 0; j < Ce; j += 1)
|
|
1648
|
+
(ft = Ee[j].a) == null || ft.fix();
|
|
1649
1649
|
}
|
|
1650
1650
|
Il(e, Ee, ae, f);
|
|
1651
1651
|
}
|
|
1652
1652
|
}
|
|
1653
|
-
c &&
|
|
1654
|
-
var
|
|
1653
|
+
c && Fn(() => {
|
|
1654
|
+
var F;
|
|
1655
1655
|
if (k !== void 0)
|
|
1656
1656
|
for (S of k)
|
|
1657
|
-
(
|
|
1657
|
+
(F = S.a) == null || F.apply();
|
|
1658
1658
|
}), ve.first = e.first && e.first.e, ve.last = x && x.e;
|
|
1659
1659
|
}
|
|
1660
|
-
function
|
|
1660
|
+
function jl(t, e, n, r) {
|
|
1661
1661
|
r & $s && os(t.v, e), r & Ss ? os(
|
|
1662
1662
|
/** @type {Value<number>} */
|
|
1663
1663
|
t.i,
|
|
@@ -1665,7 +1665,7 @@ function Ll(t, e, n, r) {
|
|
|
1665
1665
|
) : t.i = n;
|
|
1666
1666
|
}
|
|
1667
1667
|
function Ei(t, e, n, r, s, a, i, o, c, l) {
|
|
1668
|
-
var u = (c & $s) !== 0, f = (c & _o) === 0, p = u ? f ? /* @__PURE__ */
|
|
1668
|
+
var u = (c & $s) !== 0, f = (c & _o) === 0, p = u ? f ? /* @__PURE__ */ Dr(s) : gt(s) : s, h = c & Ss ? gt(i) : i, w = {
|
|
1669
1669
|
i: h,
|
|
1670
1670
|
v: p,
|
|
1671
1671
|
k: a,
|
|
@@ -1741,7 +1741,7 @@ function gs(t, e, n, r, s) {
|
|
|
1741
1741
|
});
|
|
1742
1742
|
}
|
|
1743
1743
|
function de(t, e) {
|
|
1744
|
-
|
|
1744
|
+
Fn(() => {
|
|
1745
1745
|
var n = t.getRootNode(), r = (
|
|
1746
1746
|
/** @type {ShadowRoot} */
|
|
1747
1747
|
n.host ? (
|
|
@@ -1768,14 +1768,14 @@ function Ci(t) {
|
|
|
1768
1768
|
} else for (n in t) t[n] && (r && (r += " "), r += n);
|
|
1769
1769
|
return r;
|
|
1770
1770
|
}
|
|
1771
|
-
function
|
|
1771
|
+
function Ll() {
|
|
1772
1772
|
for (var t, e, n = 0, r = "", s = arguments.length; n < s; n++) (t = arguments[n]) && (e = Ci(t)) && (r && (r += " "), r += e);
|
|
1773
1773
|
return r;
|
|
1774
1774
|
}
|
|
1775
1775
|
function qr(t) {
|
|
1776
|
-
return typeof t == "object" ?
|
|
1776
|
+
return typeof t == "object" ? Ll(t) : t ?? "";
|
|
1777
1777
|
}
|
|
1778
|
-
function
|
|
1778
|
+
function Fl(t) {
|
|
1779
1779
|
if (he) {
|
|
1780
1780
|
var e = !1, n = () => {
|
|
1781
1781
|
if (!e) {
|
|
@@ -1792,14 +1792,14 @@ function Rl(t) {
|
|
|
1792
1792
|
t.__on_r = n, hl(n), _i();
|
|
1793
1793
|
}
|
|
1794
1794
|
}
|
|
1795
|
-
function
|
|
1795
|
+
function Rl(t, e) {
|
|
1796
1796
|
var n = t.__attributes ?? (t.__attributes = {});
|
|
1797
1797
|
n.value === (n.value = // treat null and undefined the same for the initial value
|
|
1798
1798
|
e ?? void 0) || // @ts-expect-error
|
|
1799
1799
|
// `progress` elements always need their value set when its `0`
|
|
1800
1800
|
t.value === e && (e !== 0 || t.nodeName !== "PROGRESS") || (t.value = e);
|
|
1801
1801
|
}
|
|
1802
|
-
function
|
|
1802
|
+
function Dl(t, e) {
|
|
1803
1803
|
e ? t.hasAttribute("selected") || t.setAttribute("selected", "") : t.removeAttribute("selected");
|
|
1804
1804
|
}
|
|
1805
1805
|
function q(t, e, n, r) {
|
|
@@ -1829,7 +1829,7 @@ function fa(t, e, n, r, s = !1, a = !1, i = !1) {
|
|
|
1829
1829
|
if (h === "on") {
|
|
1830
1830
|
const $ = {}, A = "$$" + b;
|
|
1831
1831
|
let S = b.slice(2);
|
|
1832
|
-
var w =
|
|
1832
|
+
var w = Lo(S);
|
|
1833
1833
|
if (Ao(S) && (S = S.slice(0, -7), $.capture = !0), !w && p) {
|
|
1834
1834
|
if (_ != null) continue;
|
|
1835
1835
|
t.removeEventListener(S, o[A], $), o[A] = null;
|
|
@@ -1838,10 +1838,10 @@ function fa(t, e, n, r, s = !1, a = !1, i = !1) {
|
|
|
1838
1838
|
if (w)
|
|
1839
1839
|
t[`__${S}`] = _, un([S]);
|
|
1840
1840
|
else {
|
|
1841
|
-
let
|
|
1842
|
-
o[b].call(this,
|
|
1841
|
+
let j = function(R) {
|
|
1842
|
+
o[b].call(this, R);
|
|
1843
1843
|
};
|
|
1844
|
-
o[A] = Ti(S, t,
|
|
1844
|
+
o[A] = Ti(S, t, j, $);
|
|
1845
1845
|
}
|
|
1846
1846
|
else w && (t[`__${S}`] = void 0);
|
|
1847
1847
|
} else if (b === "style" && _ != null)
|
|
@@ -1855,14 +1855,14 @@ function fa(t, e, n, r, s = !1, a = !1, i = !1) {
|
|
|
1855
1855
|
else if (b === "__value" || b === "value" && _ != null)
|
|
1856
1856
|
t.value = t[b] = t.__value = _;
|
|
1857
1857
|
else if (b === "selected" && c)
|
|
1858
|
-
|
|
1858
|
+
Dl(
|
|
1859
1859
|
/** @type {HTMLOptionElement} */
|
|
1860
1860
|
t,
|
|
1861
1861
|
_
|
|
1862
1862
|
);
|
|
1863
1863
|
else {
|
|
1864
1864
|
var x = b;
|
|
1865
|
-
s || (x =
|
|
1865
|
+
s || (x = Ro(x));
|
|
1866
1866
|
var k = x === "defaultValue" || x === "defaultChecked";
|
|
1867
1867
|
if (_ == null && !a && !k)
|
|
1868
1868
|
if (f[b] = null, x === "value" || x === "checked") {
|
|
@@ -1968,10 +1968,10 @@ function ha(t) {
|
|
|
1968
1968
|
return e;
|
|
1969
1969
|
}
|
|
1970
1970
|
const Ul = (t) => t;
|
|
1971
|
-
function
|
|
1971
|
+
function Ft(t, e, n, r) {
|
|
1972
1972
|
var s = (t & $o) !== 0, a = (t & So) !== 0, i = s && a, o = (t & Eo) !== 0, c = i ? "both" : s ? "in" : "out", l, u = e.inert, f = e.style.overflow, p, h;
|
|
1973
1973
|
function w() {
|
|
1974
|
-
var $ =
|
|
1974
|
+
var $ = Re, A = ve;
|
|
1975
1975
|
Ut(null), It(null);
|
|
1976
1976
|
try {
|
|
1977
1977
|
return l ?? (l = n()(e, (r == null ? void 0 : r()) ?? /** @type {P} */
|
|
@@ -2016,12 +2016,12 @@ function Rt(t, e, n, r) {
|
|
|
2016
2016
|
for (var _ = (
|
|
2017
2017
|
/** @type {Effect | null} */
|
|
2018
2018
|
k.parent
|
|
2019
|
-
); _ && _.f &
|
|
2020
|
-
for (; (_ = _.parent) && !(_.f &
|
|
2019
|
+
); _ && _.f & Rr; )
|
|
2020
|
+
for (; (_ = _.parent) && !(_.f & Fr); )
|
|
2021
2021
|
;
|
|
2022
2022
|
b = !_ || (_.f & Ga) !== 0;
|
|
2023
2023
|
}
|
|
2024
|
-
b &&
|
|
2024
|
+
b && jn(() => {
|
|
2025
2025
|
qt(() => x.in());
|
|
2026
2026
|
});
|
|
2027
2027
|
}
|
|
@@ -2030,7 +2030,7 @@ function ms(t, e, n, r, s) {
|
|
|
2030
2030
|
var a = r === 1;
|
|
2031
2031
|
if (Uo(e)) {
|
|
2032
2032
|
var i, o = !1;
|
|
2033
|
-
return
|
|
2033
|
+
return Fn(() => {
|
|
2034
2034
|
if (!o) {
|
|
2035
2035
|
var k = e({ direction: a ? "in" : "out" });
|
|
2036
2036
|
i = ms(t, k, n, r, s);
|
|
@@ -2068,8 +2068,8 @@ function ms(t, e, n, r, s) {
|
|
|
2068
2068
|
if (_ > 0) {
|
|
2069
2069
|
var A = !1;
|
|
2070
2070
|
if (l)
|
|
2071
|
-
for (var S = Math.ceil(_ / 16.666666666666668),
|
|
2072
|
-
var
|
|
2071
|
+
for (var S = Math.ceil(_ / 16.666666666666668), j = 0; j <= S; j += 1) {
|
|
2072
|
+
var R = k + b * f(j / S), M = ha(l(R, 1 - R));
|
|
2073
2073
|
$.push(M), A || (A = M.overflow === "hidden");
|
|
2074
2074
|
}
|
|
2075
2075
|
A && (t.style.overflow = "hidden"), w = () => {
|
|
@@ -2113,7 +2113,7 @@ function ql(t, e, n = e) {
|
|
|
2113
2113
|
// then use the updated value from the input instead.
|
|
2114
2114
|
(he && t.defaultValue !== t.value || // If defaultValue is set, then value == defaultValue
|
|
2115
2115
|
// TODO Svelte 6: remove input.value check and set to empty string?
|
|
2116
|
-
qt(e) == null && t.value) && n(ts(t) ? ns(t.value) : t.value),
|
|
2116
|
+
qt(e) == null && t.value) && n(ts(t) ? ns(t.value) : t.value), Ln(() => {
|
|
2117
2117
|
var s = e();
|
|
2118
2118
|
ts(t) && s === ns(t.value) || t.type === "date" && !s && !t.value || s !== t.value && (t.value = s ?? "");
|
|
2119
2119
|
});
|
|
@@ -2125,7 +2125,7 @@ function ts(t) {
|
|
|
2125
2125
|
function ns(t) {
|
|
2126
2126
|
return t === "" ? null : +t;
|
|
2127
2127
|
}
|
|
2128
|
-
function
|
|
2128
|
+
function ji(t, e, n) {
|
|
2129
2129
|
if (t.multiple)
|
|
2130
2130
|
return Hl(t, e);
|
|
2131
2131
|
for (var r of t.options) {
|
|
@@ -2138,10 +2138,10 @@ function Li(t, e, n) {
|
|
|
2138
2138
|
(!n || e !== void 0) && (t.selectedIndex = -1);
|
|
2139
2139
|
}
|
|
2140
2140
|
function Bl(t, e) {
|
|
2141
|
-
|
|
2141
|
+
jn(() => {
|
|
2142
2142
|
var n = new MutationObserver(() => {
|
|
2143
2143
|
var r = t.__value;
|
|
2144
|
-
|
|
2144
|
+
ji(t, r);
|
|
2145
2145
|
});
|
|
2146
2146
|
return n.observe(t, {
|
|
2147
2147
|
// Listen to option element changes
|
|
@@ -2158,7 +2158,7 @@ function Bl(t, e) {
|
|
|
2158
2158
|
};
|
|
2159
2159
|
});
|
|
2160
2160
|
}
|
|
2161
|
-
function
|
|
2161
|
+
function Li(t, e, n = e) {
|
|
2162
2162
|
var r = !0;
|
|
2163
2163
|
yi(t, "change", (s) => {
|
|
2164
2164
|
var a = s ? "[selected]" : ":checked", i;
|
|
@@ -2170,9 +2170,9 @@ function Fi(t, e, n = e) {
|
|
|
2170
2170
|
i = o && Yn(o);
|
|
2171
2171
|
}
|
|
2172
2172
|
n(i);
|
|
2173
|
-
}),
|
|
2173
|
+
}), jn(() => {
|
|
2174
2174
|
var s = e();
|
|
2175
|
-
if (
|
|
2175
|
+
if (ji(t, s, r), r && s === void 0) {
|
|
2176
2176
|
var a = t.querySelector(":checked");
|
|
2177
2177
|
a !== null && (s = Yn(a), n(s));
|
|
2178
2178
|
}
|
|
@@ -2190,14 +2190,14 @@ function va(t, e) {
|
|
|
2190
2190
|
return t === e || (t == null ? void 0 : t[Zt]) === e;
|
|
2191
2191
|
}
|
|
2192
2192
|
function bs(t = {}, e, n, r) {
|
|
2193
|
-
return
|
|
2193
|
+
return jn(() => {
|
|
2194
2194
|
var s, a;
|
|
2195
|
-
return
|
|
2195
|
+
return Ln(() => {
|
|
2196
2196
|
s = a, a = [], qt(() => {
|
|
2197
2197
|
t !== n(...a) && (e(t, ...a), s && va(n(...s), t) && e(null, ...s));
|
|
2198
2198
|
});
|
|
2199
2199
|
}), () => {
|
|
2200
|
-
|
|
2200
|
+
Fn(() => {
|
|
2201
2201
|
a && va(n(...a), t) && e(null, ...a);
|
|
2202
2202
|
});
|
|
2203
2203
|
};
|
|
@@ -2209,7 +2209,7 @@ function wt(t = !1) {
|
|
|
2209
2209
|
Ae
|
|
2210
2210
|
), n = e.l.u;
|
|
2211
2211
|
if (!n) return;
|
|
2212
|
-
let r = () =>
|
|
2212
|
+
let r = () => Dn(e.s);
|
|
2213
2213
|
if (t) {
|
|
2214
2214
|
let s = 0, a = (
|
|
2215
2215
|
/** @type {Record<string, any>} */
|
|
@@ -2226,13 +2226,13 @@ function wt(t = !1) {
|
|
|
2226
2226
|
}
|
|
2227
2227
|
n.b.length && cl(() => {
|
|
2228
2228
|
ga(e, r), wr(n.b);
|
|
2229
|
-
}),
|
|
2229
|
+
}), Lt(() => {
|
|
2230
2230
|
const s = qt(() => n.m.map(qo));
|
|
2231
2231
|
return () => {
|
|
2232
2232
|
for (const a of s)
|
|
2233
2233
|
typeof a == "function" && a();
|
|
2234
2234
|
};
|
|
2235
|
-
}), n.a.length &&
|
|
2235
|
+
}), n.a.length && Lt(() => {
|
|
2236
2236
|
ga(e, r), wr(n.a);
|
|
2237
2237
|
});
|
|
2238
2238
|
}
|
|
@@ -2242,7 +2242,7 @@ function ga(t, e) {
|
|
|
2242
2242
|
e();
|
|
2243
2243
|
}
|
|
2244
2244
|
function Br(t) {
|
|
2245
|
-
Ae === null &&
|
|
2245
|
+
Ae === null && Ds(), An && Ae.l !== null ? Wl(Ae).m.push(t) : Lt(() => {
|
|
2246
2246
|
const e = qt(t);
|
|
2247
2247
|
if (typeof e == "function") return (
|
|
2248
2248
|
/** @type {() => void} */
|
|
@@ -2251,14 +2251,14 @@ function Br(t) {
|
|
|
2251
2251
|
});
|
|
2252
2252
|
}
|
|
2253
2253
|
function Yl(t) {
|
|
2254
|
-
Ae === null &&
|
|
2254
|
+
Ae === null && Ds(), Br(() => () => qt(t));
|
|
2255
2255
|
}
|
|
2256
2256
|
function Gl(t, e, { bubbles: n = !1, cancelable: r = !1 } = {}) {
|
|
2257
2257
|
return new CustomEvent(t, { detail: e, bubbles: n, cancelable: r });
|
|
2258
2258
|
}
|
|
2259
2259
|
function Jl() {
|
|
2260
2260
|
const t = Ae;
|
|
2261
|
-
return t === null &&
|
|
2261
|
+
return t === null && Ds(), (e, n, r) => {
|
|
2262
2262
|
var a;
|
|
2263
2263
|
const s = (
|
|
2264
2264
|
/** @type {Record<string, Function | Function[]>} */
|
|
@@ -2268,7 +2268,7 @@ function Jl() {
|
|
|
2268
2268
|
]
|
|
2269
2269
|
);
|
|
2270
2270
|
if (s) {
|
|
2271
|
-
const i =
|
|
2271
|
+
const i = Lr(s) ? s.slice() : [s], o = Gl(
|
|
2272
2272
|
/** @type {string} */
|
|
2273
2273
|
e,
|
|
2274
2274
|
n,
|
|
@@ -2345,14 +2345,14 @@ function ma(t) {
|
|
|
2345
2345
|
}
|
|
2346
2346
|
}
|
|
2347
2347
|
function g(t, e, n, r) {
|
|
2348
|
-
var
|
|
2348
|
+
var R;
|
|
2349
2349
|
var s = (n & ko) !== 0, a = !An || (n & yo) !== 0, i = (n & zo) !== 0, o = (n & To) !== 0, c = !1, l;
|
|
2350
2350
|
i ? [l, c] = Zl(() => (
|
|
2351
2351
|
/** @type {V} */
|
|
2352
2352
|
t[e]
|
|
2353
2353
|
)) : l = /** @type {V} */
|
|
2354
2354
|
t[e];
|
|
2355
|
-
var u = Zt in t || Wa in t, f = i && (((
|
|
2355
|
+
var u = Zt in t || Wa in t, f = i && (((R = hn(t, e)) == null ? void 0 : R.set) ?? (u && e in t && ((M) => t[e] = M))) || void 0, p = (
|
|
2356
2356
|
/** @type {V} */
|
|
2357
2357
|
r
|
|
2358
2358
|
), h = !0, w = !1, x = () => (w = !0, h && (h = !1, o ? p = qt(
|
|
@@ -2391,18 +2391,18 @@ function g(t, e, n, r) {
|
|
|
2391
2391
|
return arguments.length > 0 ? ((!a || !G || _ || c) && f(G ? k() : M), M) : k();
|
|
2392
2392
|
};
|
|
2393
2393
|
}
|
|
2394
|
-
var $ = !1, A = !1, S = /* @__PURE__ */
|
|
2394
|
+
var $ = !1, A = !1, S = /* @__PURE__ */ Dr(l), j = ma(
|
|
2395
2395
|
() => /* @__PURE__ */ Ze(() => {
|
|
2396
2396
|
var M = k(), G = d(S);
|
|
2397
2397
|
return $ ? ($ = !1, A = !0, G) : (A = !1, S.v = M);
|
|
2398
2398
|
})
|
|
2399
2399
|
);
|
|
2400
|
-
return s || (
|
|
2400
|
+
return s || (j.equals = js), function(M, G) {
|
|
2401
2401
|
if (arguments.length > 0) {
|
|
2402
|
-
const ge = G ? d(
|
|
2403
|
-
return
|
|
2402
|
+
const ge = G ? d(j) : a && i ? C(M) : M;
|
|
2403
|
+
return j.equals(ge) || ($ = !0, m(S, ge), w && p !== void 0 && (p = ge), qt(() => d(j))), M;
|
|
2404
2404
|
}
|
|
2405
|
-
return d(
|
|
2405
|
+
return d(j);
|
|
2406
2406
|
};
|
|
2407
2407
|
}
|
|
2408
2408
|
function Ql(t) {
|
|
@@ -2422,7 +2422,7 @@ class Kl {
|
|
|
2422
2422
|
Xr(this, $t);
|
|
2423
2423
|
var a;
|
|
2424
2424
|
var n = /* @__PURE__ */ new Map(), r = (i, o) => {
|
|
2425
|
-
var c = /* @__PURE__ */
|
|
2425
|
+
var c = /* @__PURE__ */ Dr(o);
|
|
2426
2426
|
return n.set(i, c), c;
|
|
2427
2427
|
};
|
|
2428
2428
|
const s = new Proxy(
|
|
@@ -2489,8 +2489,8 @@ class Kl {
|
|
|
2489
2489
|
}
|
|
2490
2490
|
}
|
|
2491
2491
|
Gt = new WeakMap(), $t = new WeakMap();
|
|
2492
|
-
let
|
|
2493
|
-
typeof HTMLElement == "function" && (
|
|
2492
|
+
let Fi;
|
|
2493
|
+
typeof HTMLElement == "function" && (Fi = class extends HTMLElement {
|
|
2494
2494
|
/**
|
|
2495
2495
|
* @param {*} $$componentCtor
|
|
2496
2496
|
* @param {*} $$slots
|
|
@@ -2571,7 +2571,7 @@ typeof HTMLElement == "function" && (Ri = class extends HTMLElement {
|
|
|
2571
2571
|
$$host: this
|
|
2572
2572
|
}
|
|
2573
2573
|
}), this.$$me = ul(() => {
|
|
2574
|
-
|
|
2574
|
+
Ln(() => {
|
|
2575
2575
|
var s;
|
|
2576
2576
|
this.$$r = !0;
|
|
2577
2577
|
for (const a of mr(this.$$c)) {
|
|
@@ -2661,7 +2661,7 @@ function ec(t) {
|
|
|
2661
2661
|
}), e;
|
|
2662
2662
|
}
|
|
2663
2663
|
function le(t, e, n, r, s, a) {
|
|
2664
|
-
let i = class extends
|
|
2664
|
+
let i = class extends Fi {
|
|
2665
2665
|
constructor() {
|
|
2666
2666
|
super(t, n, s), this.$$p_d = e;
|
|
2667
2667
|
}
|
|
@@ -2897,7 +2897,7 @@ function wa(t) {
|
|
|
2897
2897
|
function lc(t) {
|
|
2898
2898
|
return ic.includes(t);
|
|
2899
2899
|
}
|
|
2900
|
-
const cc = /* @__NO_SIDE_EFFECTS__ */ () => "Assistente AI", uc = /* @__NO_SIDE_EFFECTS__ */ () => "Scrivi un messaggio...", dc = /* @__NO_SIDE_EFFECTS__ */ () => "Aggiungi allegato", fc = /* @__NO_SIDE_EFFECTS__ */ () => "Normative", pc = /* @__NO_SIDE_EFFECTS__ */ () => "Normativa", hc = /* @__NO_SIDE_EFFECTS__ */ () => "Scegli", vc = /* @__NO_SIDE_EFFECTS__ */ () => "Carica file", gc = /* @__NO_SIDE_EFFECTS__ */ () => "Documento Comune", mc = /* @__NO_SIDE_EFFECTS__ */ () => "Interrompi registrazione", bc = /* @__NO_SIDE_EFFECTS__ */ () => "Inizia registrazione", wc = /* @__NO_SIDE_EFFECTS__ */ () => "Invia messaggio", xc = /* @__NO_SIDE_EFFECTS__ */ (t) => `Sei sicuro di voler eliminare la chat: ${t.chatTitle}?`, _c = /* @__NO_SIDE_EFFECTS__ */ () => "Nuova Chat", kc = /* @__NO_SIDE_EFFECTS__ */ () => "Cronologia", yc = /* @__NO_SIDE_EFFECTS__ */ () => "Attiva volume", zc = /* @__NO_SIDE_EFFECTS__ */ () => "Disattiva volume", Tc = /* @__NO_SIDE_EFFECTS__ */ () => "Mostra cronologia", $c = /* @__NO_SIDE_EFFECTS__ */ () => "Chiudi", Sc = /* @__NO_SIDE_EFFECTS__ */ () => "Fonti", Ec = /* @__NO_SIDE_EFFECTS__ */ () => "Visualizza allegato", Cc = /* @__NO_SIDE_EFFECTS__ */ () => "Cerca", Ic = /* @__NO_SIDE_EFFECTS__ */ () => "Documenti", Ac = /* @__NO_SIDE_EFFECTS__ */ () => "Ricerca in corso...",
|
|
2900
|
+
const cc = /* @__NO_SIDE_EFFECTS__ */ () => "Assistente AI", uc = /* @__NO_SIDE_EFFECTS__ */ () => "Scrivi un messaggio...", dc = /* @__NO_SIDE_EFFECTS__ */ () => "Aggiungi allegato", fc = /* @__NO_SIDE_EFFECTS__ */ () => "Normative", pc = /* @__NO_SIDE_EFFECTS__ */ () => "Normativa", hc = /* @__NO_SIDE_EFFECTS__ */ () => "Scegli", vc = /* @__NO_SIDE_EFFECTS__ */ () => "Carica file", gc = /* @__NO_SIDE_EFFECTS__ */ () => "Documento Comune", mc = /* @__NO_SIDE_EFFECTS__ */ () => "Interrompi registrazione", bc = /* @__NO_SIDE_EFFECTS__ */ () => "Inizia registrazione", wc = /* @__NO_SIDE_EFFECTS__ */ () => "Invia messaggio", xc = /* @__NO_SIDE_EFFECTS__ */ (t) => `Sei sicuro di voler eliminare la chat: ${t.chatTitle}?`, _c = /* @__NO_SIDE_EFFECTS__ */ () => "Nuova Chat", kc = /* @__NO_SIDE_EFFECTS__ */ () => "Cronologia", yc = /* @__NO_SIDE_EFFECTS__ */ () => "Attiva volume", zc = /* @__NO_SIDE_EFFECTS__ */ () => "Disattiva volume", Tc = /* @__NO_SIDE_EFFECTS__ */ () => "Mostra cronologia", $c = /* @__NO_SIDE_EFFECTS__ */ () => "Chiudi", Sc = /* @__NO_SIDE_EFFECTS__ */ () => "Fonti", Ec = /* @__NO_SIDE_EFFECTS__ */ () => "Visualizza allegato", Cc = /* @__NO_SIDE_EFFECTS__ */ () => "Cerca", Ic = /* @__NO_SIDE_EFFECTS__ */ () => "Documenti", Ac = /* @__NO_SIDE_EFFECTS__ */ () => "Ricerca in corso...", jc = /* @__NO_SIDE_EFFECTS__ */ () => "Inserisci almeno 3 caratteri per iniziare la ricerca", Lc = /* @__NO_SIDE_EFFECTS__ */ () => "Nessuna normativa trovata", Fc = /* @__NO_SIDE_EFFECTS__ */ () => "Nessun documento trovato", Rc = /* @__NO_SIDE_EFFECTS__ */ () => "Riproduci", Dc = /* @__NO_SIDE_EFFECTS__ */ () => "Pausa", Pc = /* @__NO_SIDE_EFFECTS__ */ () => "Errore durante l'invio del messaggio. Riprova.", Oc = /* @__NO_SIDE_EFFECTS__ */ () => "Nessuna chat attiva. Crea una nuova chat per iniziare.", Mc = /* @__NO_SIDE_EFFECTS__ */ () => "Errore durante il caricamento del nome utente.", Nc = /* @__NO_SIDE_EFFECTS__ */ () => "Manuale Suite", Uc = /* @__NO_SIDE_EFFECTS__ */ () => "Ferma", qc = /* @__NO_SIDE_EFFECTS__ */ () => "Copia elenco fonti", Bc = /* @__NO_SIDE_EFFECTS__ */ () => "Fonti copiate!", Hc = /* @__NO_SIDE_EFFECTS__ */ () => "Copia", Yc = /* @__NO_SIDE_EFFECTS__ */ () => "Copiato!", Gc = /* @__NO_SIDE_EFFECTS__ */ (t) => `Hai raggiunto il numero massimo di ${t.count} allegati consentiti.`, Jc = /* @__NO_SIDE_EFFECTS__ */ () => "Nessun gendoc trovato", Wc = /* @__NO_SIDE_EFFECTS__ */ () => "Nessuna trascrizione trovata", Zc = /* @__NO_SIDE_EFFECTS__ */ () => "Trascina i file qui", Vc = /* @__NO_SIDE_EFFECTS__ */ () => "Caricamento in corso...", Xc = /* @__NO_SIDE_EFFECTS__ */ () => "Operazione in corso... Non è possibile inviare messaggi in questa chat fino al completamento.", Qc = /* @__NO_SIDE_EFFECTS__ */ () => "AI Assistant", Kc = /* @__NO_SIDE_EFFECTS__ */ () => "Type your message here...", eu = /* @__NO_SIDE_EFFECTS__ */ () => "Add attachment", tu = /* @__NO_SIDE_EFFECTS__ */ () => "Normatives", nu = /* @__NO_SIDE_EFFECTS__ */ () => "Normative", ru = /* @__NO_SIDE_EFFECTS__ */ () => "Choose", su = /* @__NO_SIDE_EFFECTS__ */ () => "Upload file", au = /* @__NO_SIDE_EFFECTS__ */ () => "Common Document", iu = /* @__NO_SIDE_EFFECTS__ */ () => "Stop recording", ou = /* @__NO_SIDE_EFFECTS__ */ () => "Start recording", lu = /* @__NO_SIDE_EFFECTS__ */ () => "Send message", cu = /* @__NO_SIDE_EFFECTS__ */ (t) => `Are you sure you want to delete the chat: ${t.chatTitle}?`, uu = /* @__NO_SIDE_EFFECTS__ */ () => "New Chat", du = /* @__NO_SIDE_EFFECTS__ */ () => "History", fu = /* @__NO_SIDE_EFFECTS__ */ () => "Unmute", pu = /* @__NO_SIDE_EFFECTS__ */ () => "Mute", hu = /* @__NO_SIDE_EFFECTS__ */ () => "Show history", vu = /* @__NO_SIDE_EFFECTS__ */ () => "Close", gu = /* @__NO_SIDE_EFFECTS__ */ () => "Sources", mu = /* @__NO_SIDE_EFFECTS__ */ () => "View attachment", bu = /* @__NO_SIDE_EFFECTS__ */ () => "Search", wu = /* @__NO_SIDE_EFFECTS__ */ () => "Documents", xu = /* @__NO_SIDE_EFFECTS__ */ () => "Search in progress...", _u = /* @__NO_SIDE_EFFECTS__ */ () => "Please enter at least 3 characters to start the search", ku = /* @__NO_SIDE_EFFECTS__ */ () => "No normative found", yu = /* @__NO_SIDE_EFFECTS__ */ () => "No document found", zu = /* @__NO_SIDE_EFFECTS__ */ () => "Play", Tu = /* @__NO_SIDE_EFFECTS__ */ () => "Pause", $u = /* @__NO_SIDE_EFFECTS__ */ () => "Error sending message. Please try again.", Su = /* @__NO_SIDE_EFFECTS__ */ () => "No active chat. Please create a new chat to get started.", Eu = /* @__NO_SIDE_EFFECTS__ */ () => "Error loading username.", Cu = /* @__NO_SIDE_EFFECTS__ */ () => "Suite Manual", Iu = /* @__NO_SIDE_EFFECTS__ */ () => "Stop", Au = /* @__NO_SIDE_EFFECTS__ */ () => "Copy sources list", ju = /* @__NO_SIDE_EFFECTS__ */ () => "Sources copied!", Lu = /* @__NO_SIDE_EFFECTS__ */ () => "Copy", Fu = /* @__NO_SIDE_EFFECTS__ */ () => "Copied!", Ru = /* @__NO_SIDE_EFFECTS__ */ (t) => `You have reached the maximum number of ${t.count} attachments allowed.`, Du = /* @__NO_SIDE_EFFECTS__ */ () => "No gendoc found", Pu = /* @__NO_SIDE_EFFECTS__ */ () => "No transcription found", Ou = /* @__NO_SIDE_EFFECTS__ */ () => "Drop files here", Mu = /* @__NO_SIDE_EFFECTS__ */ () => "Uploading...", Nu = /* @__NO_SIDE_EFFECTS__ */ () => "Operation in progress... You cannot send messages in this chat until completion.", Uu = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
|
|
2901
2901
|
en: Qc,
|
|
2902
2902
|
it: cc
|
|
2903
2903
|
})[e.languageTag ?? Q()](), qu = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
|
|
@@ -2933,10 +2933,10 @@ const cc = /* @__NO_SIDE_EFFECTS__ */ () => "Assistente AI", uc = /* @__NO_SIDE_
|
|
|
2933
2933
|
})[e.languageTag ?? Q()](), Qu = /* @__NO_SIDE_EFFECTS__ */ (t, e = {}) => ({
|
|
2934
2934
|
en: cu,
|
|
2935
2935
|
it: xc
|
|
2936
|
-
})[e.languageTag ?? Q()](t),
|
|
2936
|
+
})[e.languageTag ?? Q()](t), Ri = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
|
|
2937
2937
|
en: uu,
|
|
2938
2938
|
it: _c
|
|
2939
|
-
})[e.languageTag ?? Q()](),
|
|
2939
|
+
})[e.languageTag ?? Q()](), Di = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
|
|
2940
2940
|
en: du,
|
|
2941
2941
|
it: kc
|
|
2942
2942
|
})[e.languageTag ?? Q()](), Ku = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
|
|
@@ -2968,19 +2968,19 @@ const cc = /* @__NO_SIDE_EFFECTS__ */ () => "Assistente AI", uc = /* @__NO_SIDE_
|
|
|
2968
2968
|
it: Ac
|
|
2969
2969
|
})[e.languageTag ?? Q()](), id = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
|
|
2970
2970
|
en: _u,
|
|
2971
|
-
it:
|
|
2971
|
+
it: jc
|
|
2972
2972
|
})[e.languageTag ?? Q()](), od = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
|
|
2973
2973
|
en: ku,
|
|
2974
|
-
it:
|
|
2974
|
+
it: Lc
|
|
2975
2975
|
})[e.languageTag ?? Q()](), ws = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
|
|
2976
2976
|
en: yu,
|
|
2977
|
-
it:
|
|
2977
|
+
it: Fc
|
|
2978
2978
|
})[e.languageTag ?? Q()](), ld = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
|
|
2979
2979
|
en: zu,
|
|
2980
|
-
it:
|
|
2980
|
+
it: Rc
|
|
2981
2981
|
})[e.languageTag ?? Q()](), cd = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
|
|
2982
2982
|
en: Tu,
|
|
2983
|
-
it:
|
|
2983
|
+
it: Dc
|
|
2984
2984
|
})[e.languageTag ?? Q()](), ka = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
|
|
2985
2985
|
en: $u,
|
|
2986
2986
|
it: Pc
|
|
@@ -3000,19 +3000,19 @@ const cc = /* @__NO_SIDE_EFFECTS__ */ () => "Assistente AI", uc = /* @__NO_SIDE_
|
|
|
3000
3000
|
en: Au,
|
|
3001
3001
|
it: qc
|
|
3002
3002
|
})[e.languageTag ?? Q()](), hd = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
|
|
3003
|
-
en:
|
|
3003
|
+
en: ju,
|
|
3004
3004
|
it: Bc
|
|
3005
3005
|
})[e.languageTag ?? Q()](), vd = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
|
|
3006
|
-
en:
|
|
3006
|
+
en: Lu,
|
|
3007
3007
|
it: Hc
|
|
3008
3008
|
})[e.languageTag ?? Q()](), ya = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
|
|
3009
|
-
en:
|
|
3009
|
+
en: Fu,
|
|
3010
3010
|
it: Yc
|
|
3011
3011
|
})[e.languageTag ?? Q()](), gd = /* @__NO_SIDE_EFFECTS__ */ (t, e = {}) => ({
|
|
3012
|
-
en:
|
|
3012
|
+
en: Ru,
|
|
3013
3013
|
it: Gc
|
|
3014
3014
|
})[e.languageTag ?? Q()](t), md = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
|
|
3015
|
-
en:
|
|
3015
|
+
en: Du,
|
|
3016
3016
|
it: Jc
|
|
3017
3017
|
})[e.languageTag ?? Q()](), bd = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
|
|
3018
3018
|
en: Pu,
|
|
@@ -3027,14 +3027,14 @@ const cc = /* @__NO_SIDE_EFFECTS__ */ () => "Assistente AI", uc = /* @__NO_SIDE_
|
|
|
3027
3027
|
en: Nu,
|
|
3028
3028
|
it: Xc
|
|
3029
3029
|
})[e.languageTag ?? Q()]();
|
|
3030
|
-
var kd = (t, e) => e(!e()), yd = /* @__PURE__ */
|
|
3030
|
+
var kd = (t, e) => e(!e()), yd = /* @__PURE__ */ L('<button class="new-chat svelte-ib8fo5"><i class="fa-solid fa-volume-xmark"></i></button>'), zd = (t, e) => e(!e()), Td = /* @__PURE__ */ L('<button class="new-chat svelte-ib8fo5" aria-label="Mute"><i class="fa-solid fa-volume-high"></i></button>'), $d = (t, e) => e(!e()), Sd = (t, e, n) => {
|
|
3031
3031
|
e() ? (e(!1), setTimeout(
|
|
3032
3032
|
() => {
|
|
3033
3033
|
n(!1);
|
|
3034
3034
|
},
|
|
3035
3035
|
450
|
|
3036
3036
|
)) : n(!1);
|
|
3037
|
-
}, Ed = /* @__PURE__ */
|
|
3037
|
+
}, Ed = /* @__PURE__ */ L('<header class="svelte-ib8fo5"><section class="svelte-ib8fo5"><div class="header-left svelte-ib8fo5"><h1 class="svelte-ib8fo5">Chat</h1> <select class="language-select svelte-ib8fo5" aria-label="Select language"><option>IT</option><option>EN</option></select></div> <div class="buttons svelte-ib8fo5"><!> <button class="new-chat svelte-ib8fo5" aria-label="New chat"><i class="fa-solid fa-comment-medical"></i></button> <button class="history-button svelte-ib8fo5"><i class="fa-solid fa-clock-rotate-left"></i></button> <button class="close-button svelte-ib8fo5"><i class="fa-solid fa-xmark"></i></button></div></section></header>');
|
|
3038
3038
|
const Cd = {
|
|
3039
3039
|
hash: "svelte-ib8fo5",
|
|
3040
3040
|
code: "header.svelte-ib8fo5 {display:flex;justify-content:center;align-items:center;height:50px;border-radius:30px 30px 0 0;}.header-left.svelte-ib8fo5 {display:flex;align-items:center;gap:12px;}h1.svelte-ib8fo5 {font-size:1.5rem;color:#fff;}.language-select.svelte-ib8fo5 {padding:5px;border-radius:5px;border:none;background:#3c4450;color:white;font-size:20px;font-weight:900;transition:200ms;}.language-select.svelte-ib8fo5:hover {background:#576374;cursor:pointer;}section.svelte-ib8fo5 {display:flex;justify-content:space-between;align-items:center;width:100%;padding:10px;}.buttons.svelte-ib8fo5 {display:flex;gap:10px;}button.svelte-ib8fo5 {display:flex;justify-content:center;align-items:center;border:none;cursor:pointer;border-radius:30px;transition:200ms;}.new-chat.svelte-ib8fo5 {font-size:large;width:30px;height:30px;background:#295dcf;color:white;padding:0;}.new-chat.svelte-ib8fo5:hover {background:#1e3a8a;}.history-button.svelte-ib8fo5 {font-size:large;width:30px;height:30px;background:#295dcf;color:white;font-weight:bold;}.history-button.svelte-ib8fo5:hover {background:#1e3a8a;}.close-button.svelte-ib8fo5 {font-size:large;width:30px;height:30px;background:#295dcf;color:white;}.close-button.svelte-ib8fo5:hover {background:red;}"
|
|
@@ -3050,88 +3050,88 @@ function Pi(t, e) {
|
|
|
3050
3050
|
x.value = (x.__value = "en") == null ? "" : "en", y(h), y(p);
|
|
3051
3051
|
var k = O(p, 2), b = T(k);
|
|
3052
3052
|
{
|
|
3053
|
-
var _ = (
|
|
3053
|
+
var _ = (R) => {
|
|
3054
3054
|
var M = yd();
|
|
3055
3055
|
M.__click = [kd, a], P(
|
|
3056
3056
|
(G) => {
|
|
3057
3057
|
q(M, "title", G), q(M, "aria-label", a() ? "Unmute" : "Mute");
|
|
3058
3058
|
},
|
|
3059
3059
|
[() => /* @__PURE__ */ Ku()]
|
|
3060
|
-
), E(
|
|
3061
|
-
}, $ = (
|
|
3060
|
+
), E(R, M);
|
|
3061
|
+
}, $ = (R) => {
|
|
3062
3062
|
var M = Td();
|
|
3063
|
-
M.__click = [zd, a], P((G) => q(M, "title", G), [() => /* @__PURE__ */ ed()]), E(
|
|
3063
|
+
M.__click = [zd, a], P((G) => q(M, "title", G), [() => /* @__PURE__ */ ed()]), E(R, M);
|
|
3064
3064
|
};
|
|
3065
|
-
X(b, (
|
|
3066
|
-
a() ?
|
|
3065
|
+
X(b, (R) => {
|
|
3066
|
+
a() ? R(_) : R($, !1);
|
|
3067
3067
|
});
|
|
3068
3068
|
}
|
|
3069
3069
|
var A = O(b, 2);
|
|
3070
|
-
A.__click = function(...
|
|
3070
|
+
A.__click = function(...R) {
|
|
3071
3071
|
var M;
|
|
3072
|
-
(M = l()) == null || M.apply(this,
|
|
3072
|
+
(M = l()) == null || M.apply(this, R);
|
|
3073
3073
|
};
|
|
3074
3074
|
var S = O(A, 2);
|
|
3075
3075
|
S.__click = [$d, r];
|
|
3076
|
-
var
|
|
3077
|
-
return
|
|
3078
|
-
(
|
|
3079
|
-
q(A, "title",
|
|
3076
|
+
var j = O(S, 2);
|
|
3077
|
+
return j.__click = [Sd, r, n], y(k), y(f), y(u), P(
|
|
3078
|
+
(R, M, G, ge) => {
|
|
3079
|
+
q(A, "title", R), q(S, "title", M), q(S, "aria-label", G), q(j, "title", ge), q(j, "aria-label", ge);
|
|
3080
3080
|
},
|
|
3081
3081
|
[
|
|
3082
|
+
() => /* @__PURE__ */ Ri(),
|
|
3082
3083
|
() => /* @__PURE__ */ Di(),
|
|
3083
|
-
() => /* @__PURE__ */ ji(),
|
|
3084
3084
|
() => /* @__PURE__ */ td(),
|
|
3085
3085
|
() => /* @__PURE__ */ nd()
|
|
3086
3086
|
]
|
|
3087
|
-
),
|
|
3087
|
+
), Li(h, i), Ft(3, u, () => tn, () => ({ duration: 300 })), E(t, u), oe({
|
|
3088
3088
|
get show() {
|
|
3089
3089
|
return n();
|
|
3090
3090
|
},
|
|
3091
|
-
set show(
|
|
3092
|
-
n(
|
|
3091
|
+
set show(R = !1) {
|
|
3092
|
+
n(R), v();
|
|
3093
3093
|
},
|
|
3094
3094
|
get showHistory() {
|
|
3095
3095
|
return r();
|
|
3096
3096
|
},
|
|
3097
|
-
set showHistory(
|
|
3098
|
-
r(
|
|
3097
|
+
set showHistory(R) {
|
|
3098
|
+
r(R), v();
|
|
3099
3099
|
},
|
|
3100
3100
|
get actChat() {
|
|
3101
3101
|
return s();
|
|
3102
3102
|
},
|
|
3103
|
-
set actChat(
|
|
3104
|
-
s(
|
|
3103
|
+
set actChat(R) {
|
|
3104
|
+
s(R), v();
|
|
3105
3105
|
},
|
|
3106
3106
|
get muted() {
|
|
3107
3107
|
return a();
|
|
3108
3108
|
},
|
|
3109
|
-
set muted(
|
|
3110
|
-
a(
|
|
3109
|
+
set muted(R) {
|
|
3110
|
+
a(R), v();
|
|
3111
3111
|
},
|
|
3112
3112
|
get languageSelected() {
|
|
3113
3113
|
return i();
|
|
3114
3114
|
},
|
|
3115
|
-
set languageSelected(
|
|
3116
|
-
i(
|
|
3115
|
+
set languageSelected(R) {
|
|
3116
|
+
i(R), v();
|
|
3117
3117
|
},
|
|
3118
3118
|
get username() {
|
|
3119
3119
|
return o();
|
|
3120
3120
|
},
|
|
3121
|
-
set username(
|
|
3122
|
-
o(
|
|
3121
|
+
set username(R) {
|
|
3122
|
+
o(R), v();
|
|
3123
3123
|
},
|
|
3124
3124
|
get error() {
|
|
3125
3125
|
return c();
|
|
3126
3126
|
},
|
|
3127
|
-
set error(
|
|
3128
|
-
c(
|
|
3127
|
+
set error(R) {
|
|
3128
|
+
c(R), v();
|
|
3129
3129
|
},
|
|
3130
3130
|
get newChat() {
|
|
3131
3131
|
return l();
|
|
3132
3132
|
},
|
|
3133
|
-
set newChat(
|
|
3134
|
-
l(
|
|
3133
|
+
set newChat(R) {
|
|
3134
|
+
l(R), v();
|
|
3135
3135
|
}
|
|
3136
3136
|
});
|
|
3137
3137
|
}
|
|
@@ -3174,7 +3174,7 @@ const Id = () => {
|
|
|
3174
3174
|
default:
|
|
3175
3175
|
return "https://aks-forge-back-573906316236.europe-west1.run.app";
|
|
3176
3176
|
}
|
|
3177
|
-
},
|
|
3177
|
+
}, jd = () => {
|
|
3178
3178
|
switch (U.getEnvironmentId()) {
|
|
3179
3179
|
case "aks_svi":
|
|
3180
3180
|
return "https://gendoc-back.test.aksiliasuite.com";
|
|
@@ -3185,7 +3185,7 @@ const Id = () => {
|
|
|
3185
3185
|
default:
|
|
3186
3186
|
return "https://gen-doc-back-573906316236.europe-west1.run.app";
|
|
3187
3187
|
}
|
|
3188
|
-
},
|
|
3188
|
+
}, Ld = () => {
|
|
3189
3189
|
switch (U.getEnvironmentId()) {
|
|
3190
3190
|
case "aks_svi":
|
|
3191
3191
|
return "http://localhost:8081";
|
|
@@ -3196,7 +3196,7 @@ const Id = () => {
|
|
|
3196
3196
|
default:
|
|
3197
3197
|
return "https://aks-transcription-back-573906316236.europe-west1.run.app";
|
|
3198
3198
|
}
|
|
3199
|
-
},
|
|
3199
|
+
}, Fd = () => {
|
|
3200
3200
|
switch (U.getEnvironmentId()) {
|
|
3201
3201
|
case "aks_svi":
|
|
3202
3202
|
return "http://localhost:8080";
|
|
@@ -3207,10 +3207,10 @@ const Id = () => {
|
|
|
3207
3207
|
default:
|
|
3208
3208
|
return "https://aks-orchestrator-back-573906316236.europe-west1.run.app";
|
|
3209
3209
|
}
|
|
3210
|
-
},
|
|
3210
|
+
}, Rd = () => {
|
|
3211
3211
|
const e = document.cookie.split(";").find((n) => n.includes("akb-chat-token"));
|
|
3212
3212
|
return e ? e.split("=")[1] : "";
|
|
3213
|
-
},
|
|
3213
|
+
}, Dd = () => {
|
|
3214
3214
|
const e = document.cookie.split(";").find((n) => n.includes("akb-chat-envid"));
|
|
3215
3215
|
return e ? e.split("=")[1] : "";
|
|
3216
3216
|
}, Pd = () => {
|
|
@@ -3219,13 +3219,13 @@ const Id = () => {
|
|
|
3219
3219
|
}, Od = (t) => {
|
|
3220
3220
|
document.cookie = `akb-chat-forge-pinned=${t}; path=/; max-age=31536000; SameSite=Lax`;
|
|
3221
3221
|
}, U = {
|
|
3222
|
-
getUrl:
|
|
3222
|
+
getUrl: Fd,
|
|
3223
3223
|
getKBUrl: Id,
|
|
3224
3224
|
getForgeUrl: Ad,
|
|
3225
|
-
getGenDocUrl:
|
|
3226
|
-
getTranscriptionUrl:
|
|
3227
|
-
getToken:
|
|
3228
|
-
getEnvironmentId:
|
|
3225
|
+
getGenDocUrl: jd,
|
|
3226
|
+
getTranscriptionUrl: Ld,
|
|
3227
|
+
getToken: Rd,
|
|
3228
|
+
getEnvironmentId: Dd,
|
|
3229
3229
|
getForgeButtonsPinned: Pd,
|
|
3230
3230
|
setForgeButtonsPinned: Od
|
|
3231
3231
|
};
|
|
@@ -3708,7 +3708,7 @@ const Yd = async (t) => {
|
|
|
3708
3708
|
getAudio: rf
|
|
3709
3709
|
};
|
|
3710
3710
|
sl();
|
|
3711
|
-
var sf = /* @__PURE__ */
|
|
3711
|
+
var sf = /* @__PURE__ */ L('<div class="circle svelte-dqjlks"></div>');
|
|
3712
3712
|
const af = {
|
|
3713
3713
|
hash: "svelte-dqjlks",
|
|
3714
3714
|
code: `.circle.svelte-dqjlks {height:var(--size);width:var(--size);border-color:var(--color) transparent var(--color) var(--color);border-width:calc(var(--size) / 15);border-style:solid;border-image:initial;border-radius:50%;
|
|
@@ -3774,7 +3774,7 @@ le(
|
|
|
3774
3774
|
[],
|
|
3775
3775
|
!0
|
|
3776
3776
|
);
|
|
3777
|
-
var lf = /* @__PURE__ */
|
|
3777
|
+
var lf = /* @__PURE__ */ L('<div class="circle svelte-1w4sjib"></div>');
|
|
3778
3778
|
const cf = {
|
|
3779
3779
|
hash: "svelte-1w4sjib",
|
|
3780
3780
|
code: `.circle.svelte-1w4sjib {width:var(--size);height:var(--size);box-sizing:border-box;position:relative;border:3px solid transparent;border-top-color:var(--colorOuter);border-radius:50%;
|
|
@@ -3881,7 +3881,7 @@ le(
|
|
|
3881
3881
|
[],
|
|
3882
3882
|
!0
|
|
3883
3883
|
);
|
|
3884
|
-
var df = /* @__PURE__ */
|
|
3884
|
+
var df = /* @__PURE__ */ L('<div class="wrapper svelte-7wj78d"><div class="inner svelte-7wj78d"><div class="ball-container svelte-7wj78d"><div class="single-ball svelte-7wj78d"><div class="ball ball-top-left svelte-7wj78d"> </div></div> <div class="contener_mixte svelte-7wj78d"><div class="ball ball-top-right svelte-7wj78d"> </div></div> <div class="contener_mixte svelte-7wj78d"><div class="ball ball-bottom-left svelte-7wj78d"> </div></div> <div class="contener_mixte svelte-7wj78d"><div class="ball ball-bottom-right svelte-7wj78d"> </div></div></div></div></div>');
|
|
3885
3885
|
const ff = {
|
|
3886
3886
|
hash: "svelte-7wj78d",
|
|
3887
3887
|
code: `.wrapper.svelte-7wj78d {width:var(--size);height:var(--size);display:flex;justify-content:center;align-items:center;line-height:0;box-sizing:border-box;}.inner.svelte-7wj78d {transform:scale(calc(var(--floatSize) / 52));}.ball-container.svelte-7wj78d {
|
|
@@ -4000,8 +4000,8 @@ const et = /[a-zA-Z]/, qs = (t, e) => {
|
|
|
4000
4000
|
}), t = r;
|
|
4001
4001
|
}
|
|
4002
4002
|
return `rgba(${(t.match(/.{2}/g) || []).map((r) => parseInt(r, 16)).join(", ")}, ${e})`;
|
|
4003
|
-
},
|
|
4004
|
-
var hf = /* @__PURE__ */
|
|
4003
|
+
}, Rt = (t, e = 0) => [...Array(t).keys()].map((n) => n + e);
|
|
4004
|
+
var hf = /* @__PURE__ */ L('<div class="circle svelte-1bsg8wv"></div>'), vf = /* @__PURE__ */ L('<div class="wrapper svelte-1bsg8wv"></div>');
|
|
4005
4005
|
const gf = {
|
|
4006
4006
|
hash: "svelte-1bsg8wv",
|
|
4007
4007
|
code: `.wrapper.svelte-1bsg8wv {position:relative;width:var(--size);height:var(--size);}.circle.svelte-1bsg8wv {position:absolute;width:var(--size);height:var(--size);background-color:var(--color);border-radius:100%;opacity:0.6;top:0;left:0;animation-fill-mode:both;
|
|
@@ -4022,7 +4022,7 @@ function mf(t, e) {
|
|
|
4022
4022
|
let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), s = g(e, "duration", 12, "2.1s"), a = g(e, "size", 12, "60"), i = g(e, "pause", 12, !1), o = ((u = s().match(et)) == null ? void 0 : u[0]) ?? "s", c = s().replace(et, "");
|
|
4023
4023
|
wt();
|
|
4024
4024
|
var l = vf();
|
|
4025
|
-
return st(l, 5, () =>
|
|
4025
|
+
return st(l, 5, () => Rt(2, 1), rt, (f, p) => {
|
|
4026
4026
|
var h = hf();
|
|
4027
4027
|
P(() => {
|
|
4028
4028
|
q(h, "style", `animation: ${s() ?? ""} ${(d(p) === 1 ? `${(+c - 0.1) / 2}${o}` : "0s") ?? ""} infinite ease-in-out`), ue(h, "pause-animation", i());
|
|
@@ -4073,7 +4073,7 @@ le(
|
|
|
4073
4073
|
[],
|
|
4074
4074
|
!0
|
|
4075
4075
|
);
|
|
4076
|
-
var bf = /* @__PURE__ */
|
|
4076
|
+
var bf = /* @__PURE__ */ L('<div class="spinner spinner--google svelte-rhgdjk"></div>');
|
|
4077
4077
|
const wf = {
|
|
4078
4078
|
hash: "svelte-rhgdjk",
|
|
4079
4079
|
code: `.svelte-rhgdjk {overflow:hidden;position:relative;text-indent:-9999px;display:inline-block;background:#f86;border-radius:50%;transform:rotateZ(90deg);transform-origin:50% 50%;
|
|
@@ -4250,7 +4250,7 @@ function xf(t, e) {
|
|
|
4250
4250
|
ie(e, !1), de(t, wf);
|
|
4251
4251
|
const n = Kt();
|
|
4252
4252
|
let r = g(e, "size", 12, "40px"), s = g(e, "duration", 12, "3s"), a = g(e, "pause", 12, !1);
|
|
4253
|
-
er(() =>
|
|
4253
|
+
er(() => Dn(r()), () => {
|
|
4254
4254
|
m(n, [
|
|
4255
4255
|
`width: ${r()}`,
|
|
4256
4256
|
`height: ${r()}`
|
|
@@ -4281,7 +4281,7 @@ function xf(t, e) {
|
|
|
4281
4281
|
});
|
|
4282
4282
|
}
|
|
4283
4283
|
le(xf, { size: {}, duration: {}, pause: {} }, [], [], !0);
|
|
4284
|
-
var _f = /* @__PURE__ */
|
|
4284
|
+
var _f = /* @__PURE__ */ L('<div class="wrapper svelte-1w1ueev"><div class="circle svelte-1w1ueev"></div></div>');
|
|
4285
4285
|
const kf = {
|
|
4286
4286
|
hash: "svelte-1w1ueev",
|
|
4287
4287
|
code: `.wrapper.svelte-1w1ueev {width:var(--size);height:var(--size);}.circle.svelte-1w1ueev {width:var(--size);height:var(--size);background-color:var(--color);animation-duration:var(--duration);border-radius:100%;display:inline-block;
|
|
@@ -4348,7 +4348,7 @@ le(
|
|
|
4348
4348
|
[],
|
|
4349
4349
|
!0
|
|
4350
4350
|
);
|
|
4351
|
-
var zf = /* @__PURE__ */
|
|
4351
|
+
var zf = /* @__PURE__ */ L('<div class="wrapper svelte-nfuakd"><div class="line svelte-nfuakd"></div></div>');
|
|
4352
4352
|
const Tf = {
|
|
4353
4353
|
hash: "svelte-nfuakd",
|
|
4354
4354
|
code: `.wrapper.svelte-nfuakd {width:var(--size);height:var(--stroke);transform:scale(calc(var(--floatSize) / 75));display:flex;justify-content:center;align-items:center;}.line.svelte-nfuakd {width:var(--size);height:var(--stroke);background:var(--color);border-radius:var(--stroke);transform-origin:center center;
|
|
@@ -4468,7 +4468,7 @@ le(
|
|
|
4468
4468
|
[],
|
|
4469
4469
|
!0
|
|
4470
4470
|
);
|
|
4471
|
-
var Sf = /* @__PURE__ */
|
|
4471
|
+
var Sf = /* @__PURE__ */ L('<div class="rect svelte-cihful"></div>'), Ef = /* @__PURE__ */ L('<div class="wrapper svelte-cihful"></div>');
|
|
4472
4472
|
const Cf = {
|
|
4473
4473
|
hash: "svelte-cihful",
|
|
4474
4474
|
code: `.wrapper.svelte-cihful {height:var(--size);width:var(--size);display:inline-block;text-align:center;font-size:10px;}.rect.svelte-cihful {height:100%;width:10%;display:inline-block;margin-right:4px;transform:scaleY(0.4);background-color:var(--color);
|
|
@@ -4490,7 +4490,7 @@ function If(t, e) {
|
|
|
4490
4490
|
let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), s = g(e, "duration", 12, "1.2s"), a = g(e, "size", 12, "60"), i = g(e, "pause", 12, !1), o = ((u = s().match(et)) == null ? void 0 : u[0]) ?? "s", c = s().replace(et, "");
|
|
4491
4491
|
wt();
|
|
4492
4492
|
var l = Ef();
|
|
4493
|
-
return st(l, 5, () =>
|
|
4493
|
+
return st(l, 5, () => Rt(5, 1), rt, (f, p) => {
|
|
4494
4494
|
var h = Sf();
|
|
4495
4495
|
P(() => {
|
|
4496
4496
|
q(h, "style", `animation-delay: ${(d(p) - 1) * (+c / 12)}${o ?? ""}`), ue(h, "pause-animation", i());
|
|
@@ -4541,8 +4541,8 @@ le(
|
|
|
4541
4541
|
[],
|
|
4542
4542
|
!0
|
|
4543
4543
|
);
|
|
4544
|
-
var Af = /* @__PURE__ */
|
|
4545
|
-
const
|
|
4544
|
+
var Af = /* @__PURE__ */ L("<div></div>"), jf = /* @__PURE__ */ L('<div class="wrapper svelte-bnawe9"></div>');
|
|
4545
|
+
const Lf = {
|
|
4546
4546
|
hash: "svelte-bnawe9",
|
|
4547
4547
|
code: `.wrapper.svelte-bnawe9 {height:calc(var(--size) / 15);width:calc(var(--size) * 2);background-color:var(--rgba);position:relative;overflow:hidden;background-clip:padding-box;}.lines.svelte-bnawe9 {height:calc(var(--size) / 15);background-color:var(--color);}.small-lines.svelte-bnawe9 {position:absolute;overflow:hidden;background-clip:padding-box;display:block;border-radius:2px;will-change:left, right;animation-fill-mode:forwards;}.small-lines.\\31.svelte-bnawe9 {
|
|
4548
4548
|
animation: var(--duration) cubic-bezier(0.65, 0.815, 0.735, 0.395) 0s infinite normal none
|
|
@@ -4579,17 +4579,17 @@ const Ff = {
|
|
|
4579
4579
|
}
|
|
4580
4580
|
}`
|
|
4581
4581
|
};
|
|
4582
|
-
function
|
|
4583
|
-
ie(e, !1), de(t,
|
|
4582
|
+
function Ff(t, e) {
|
|
4583
|
+
ie(e, !1), de(t, Lf);
|
|
4584
4584
|
let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), s = g(e, "duration", 12, "2.1s"), a = g(e, "size", 12, "60"), i = g(e, "pause", 12, !1), o = Kt();
|
|
4585
4585
|
er(
|
|
4586
|
-
() =>
|
|
4586
|
+
() => Dn(n()),
|
|
4587
4587
|
() => {
|
|
4588
4588
|
m(o, qs(n(), 0.2));
|
|
4589
4589
|
}
|
|
4590
4590
|
), tr(), wt();
|
|
4591
|
-
var c =
|
|
4592
|
-
return st(c, 5, () =>
|
|
4591
|
+
var c = jf();
|
|
4592
|
+
return st(c, 5, () => Rt(2, 1), rt, (l, u) => {
|
|
4593
4593
|
var f = Af();
|
|
4594
4594
|
P(() => {
|
|
4595
4595
|
ut(f, `lines small-lines ${d(u) ?? ""} svelte-bnawe9`), q(f, "style", `--color: ${n() ?? ""}; --duration: ${s() ?? ""};`), ue(f, "pause-animation", i());
|
|
@@ -4628,7 +4628,7 @@ function Rf(t, e) {
|
|
|
4628
4628
|
});
|
|
4629
4629
|
}
|
|
4630
4630
|
le(
|
|
4631
|
-
|
|
4631
|
+
Ff,
|
|
4632
4632
|
{
|
|
4633
4633
|
color: {},
|
|
4634
4634
|
unit: {},
|
|
@@ -4640,7 +4640,7 @@ le(
|
|
|
4640
4640
|
[],
|
|
4641
4641
|
!0
|
|
4642
4642
|
);
|
|
4643
|
-
var
|
|
4643
|
+
var Rf = /* @__PURE__ */ L('<div class="circle svelte-c0n7a9"></div>'), Df = /* @__PURE__ */ L('<div class="wrapper svelte-c0n7a9"></div>');
|
|
4644
4644
|
const Pf = {
|
|
4645
4645
|
hash: "svelte-c0n7a9",
|
|
4646
4646
|
code: `.wrapper.svelte-c0n7a9 {width:var(--size);height:var(--size);}.circle.svelte-c0n7a9 {border-radius:100%;animation-fill-mode:both;position:absolute;opacity:0;width:var(--size);height:var(--size);background-color:var(--color);
|
|
@@ -4664,9 +4664,9 @@ function Of(t, e) {
|
|
|
4664
4664
|
ie(e, !1), de(t, Pf);
|
|
4665
4665
|
let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), s = g(e, "duration", 12, "1s"), a = g(e, "size", 12, "60"), i = g(e, "pause", 12, !1), o = ((u = s().match(et)) == null ? void 0 : u[0]) ?? "s", c = s().replace(et, "");
|
|
4666
4666
|
wt();
|
|
4667
|
-
var l =
|
|
4668
|
-
return st(l, 5, () =>
|
|
4669
|
-
var h =
|
|
4667
|
+
var l = Df();
|
|
4668
|
+
return st(l, 5, () => Rt(3, 1), rt, (f, p) => {
|
|
4669
|
+
var h = Rf();
|
|
4670
4670
|
P(() => {
|
|
4671
4671
|
q(h, "style", `animation-delay: ${+c / 3 * (d(p) - 1) + o};`), ue(h, "pause-animation", i());
|
|
4672
4672
|
}), E(f, h);
|
|
@@ -4716,7 +4716,7 @@ le(
|
|
|
4716
4716
|
[],
|
|
4717
4717
|
!0
|
|
4718
4718
|
);
|
|
4719
|
-
var Mf = /* @__PURE__ */
|
|
4719
|
+
var Mf = /* @__PURE__ */ L("<div></div>"), Nf = /* @__PURE__ */ L('<div class="wrapper svelte-kxapcj"></div>');
|
|
4720
4720
|
const Uf = {
|
|
4721
4721
|
hash: "svelte-kxapcj",
|
|
4722
4722
|
code: `.wrapper.svelte-kxapcj {position:relative;width:var(--size);height:var(--size);}.border.svelte-kxapcj {border-color:var(--color);position:absolute;top:0px;left:0px;width:var(--size);height:var(--size);opacity:0.4;perspective:800px;border-width:6px;border-style:solid;border-image:initial;border-radius:100%;}.border.\\31.svelte-kxapcj {
|
|
@@ -4745,7 +4745,7 @@ function qf(t, e) {
|
|
|
4745
4745
|
let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), s = g(e, "duration", 12, "2s"), a = g(e, "size", 12, "60"), i = g(e, "pause", 12, !1);
|
|
4746
4746
|
wt();
|
|
4747
4747
|
var o = Nf();
|
|
4748
|
-
return st(o, 5, () =>
|
|
4748
|
+
return st(o, 5, () => Rt(2, 1), rt, (c, l) => {
|
|
4749
4749
|
var u = Mf();
|
|
4750
4750
|
P(() => {
|
|
4751
4751
|
ut(u, `border ${d(l) ?? ""} svelte-kxapcj`), ue(u, "pause-animation", i());
|
|
@@ -4796,7 +4796,7 @@ le(
|
|
|
4796
4796
|
[],
|
|
4797
4797
|
!0
|
|
4798
4798
|
);
|
|
4799
|
-
var Bf = /* @__PURE__ */
|
|
4799
|
+
var Bf = /* @__PURE__ */ L('<div class="dot svelte-14x3x60"></div>'), Hf = /* @__PURE__ */ L('<div class="wrapper svelte-14x3x60"></div>');
|
|
4800
4800
|
const Yf = {
|
|
4801
4801
|
hash: "svelte-14x3x60",
|
|
4802
4802
|
code: `.wrapper.svelte-14x3x60 {height:var(--size);width:var(--size);display:flex;align-items:center;justify-content:center;}.dot.svelte-14x3x60 {height:var(--dotSize);width:var(--dotSize);background-color:var(--color);margin:2px;display:inline-block;border-radius:100%;
|
|
@@ -4837,7 +4837,7 @@ function Gf(t, e) {
|
|
|
4837
4837
|
let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), s = g(e, "duration", 12, "0.6s"), a = g(e, "size", 12, "60"), i = g(e, "pause", 12, !1), o = ((u = s().match(et)) == null ? void 0 : u[0]) ?? "s", c = s().replace(et, "");
|
|
4838
4838
|
wt();
|
|
4839
4839
|
var l = Hf();
|
|
4840
|
-
return st(l, 5, () =>
|
|
4840
|
+
return st(l, 5, () => Rt(3, 1), rt, (f, p) => {
|
|
4841
4841
|
var h = Bf();
|
|
4842
4842
|
P(() => {
|
|
4843
4843
|
q(h, "style", `--dotSize:${+a() * 0.25}${r() ?? ""}; --color:${n() ?? ""}; animation-delay: ${d(p) * (+c / 10)}${o ?? ""};`), ue(h, "pause-animation", i());
|
|
@@ -4888,7 +4888,7 @@ le(
|
|
|
4888
4888
|
[],
|
|
4889
4889
|
!0
|
|
4890
4890
|
);
|
|
4891
|
-
var Jf = /* @__PURE__ */
|
|
4891
|
+
var Jf = /* @__PURE__ */ L('<div class="wrapper svelte-1lgkc8y"><div class="rainbow svelte-1lgkc8y"></div></div>');
|
|
4892
4892
|
const Wf = {
|
|
4893
4893
|
hash: "svelte-1lgkc8y",
|
|
4894
4894
|
code: `.wrapper.svelte-1lgkc8y {width:var(--size);height:calc(var(--size) / 2);overflow:hidden;}.rainbow.svelte-1lgkc8y {width:var(--size);height:var(--size);border-left-color:transparent;border-bottom-color:transparent;border-top-color:var(--color);border-right-color:var(--color);box-sizing:border-box;transform:rotate(-200deg);border-radius:50%;border-style:solid;
|
|
@@ -4964,7 +4964,7 @@ le(
|
|
|
4964
4964
|
[],
|
|
4965
4965
|
!0
|
|
4966
4966
|
);
|
|
4967
|
-
var Vf = /* @__PURE__ */
|
|
4967
|
+
var Vf = /* @__PURE__ */ L('<div class="wrapper svelte-x7zza7"><div class="firework svelte-x7zza7"></div></div>');
|
|
4968
4968
|
const Xf = {
|
|
4969
4969
|
hash: "svelte-x7zza7",
|
|
4970
4970
|
code: `.wrapper.svelte-x7zza7 {width:calc(var(--size) * 1.3);height:calc(var(--size) * 1.3);display:flex;justify-content:center;align-items:center;}.firework.svelte-x7zza7 {border:calc(var(--size) / 10) dotted var(--color);width:var(--size);height:var(--size);border-radius:50%;
|
|
@@ -5036,7 +5036,7 @@ le(
|
|
|
5036
5036
|
[],
|
|
5037
5037
|
!0
|
|
5038
5038
|
);
|
|
5039
|
-
var Kf = /* @__PURE__ */
|
|
5039
|
+
var Kf = /* @__PURE__ */ L('<div class="cube svelte-1w8rpx6"></div>'), ep = /* @__PURE__ */ L('<div class="wrapper svelte-1w8rpx6"></div>');
|
|
5040
5040
|
const tp = {
|
|
5041
5041
|
hash: "svelte-1w8rpx6",
|
|
5042
5042
|
code: `.wrapper.svelte-1w8rpx6 {position:relative;display:flex;justify-content:center;align-items:center;width:var(--size);height:calc(var(--size) / 2.5);}.cube.svelte-1w8rpx6 {position:absolute;top:0px;width:calc(var(--size) / 5);height:calc(var(--size) / 2.5);background-color:var(--color);
|
|
@@ -5059,7 +5059,7 @@ function Er(t, e) {
|
|
|
5059
5059
|
let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), s = g(e, "duration", 12, "1.5s"), a = g(e, "size", 12, "60"), i = g(e, "pause", 12, !1), o = ((u = s().match(et)) == null ? void 0 : u[0]) ?? "s", c = s().replace(et, "");
|
|
5060
5060
|
wt();
|
|
5061
5061
|
var l = ep();
|
|
5062
|
-
return st(l, 5, () =>
|
|
5062
|
+
return st(l, 5, () => Rt(3, 0), rt, (f, p) => {
|
|
5063
5063
|
var h = Kf();
|
|
5064
5064
|
P(() => {
|
|
5065
5065
|
q(h, "style", `animation-delay: ${d(p) * (+c / 10)}${o ?? ""}; left: ${d(p) * (+a() / 3 + +a() / 15) + r()};`), ue(h, "pause-animation", i());
|
|
@@ -5110,7 +5110,7 @@ le(
|
|
|
5110
5110
|
[],
|
|
5111
5111
|
!0
|
|
5112
5112
|
);
|
|
5113
|
-
var np = /* @__PURE__ */
|
|
5113
|
+
var np = /* @__PURE__ */ L('<div class="ring svelte-1rvptk"></div>'), rp = /* @__PURE__ */ L('<div class="wrapper svelte-1rvptk"></div>');
|
|
5114
5114
|
const sp = {
|
|
5115
5115
|
hash: "svelte-1rvptk",
|
|
5116
5116
|
code: `.wrapper.svelte-1rvptk {position:relative;display:flex;justify-content:center;align-items:center;width:var(--size);height:var(--size);}.ring.svelte-1rvptk {position:absolute;border:2px solid var(--color);border-radius:50%;background-color:transparent;
|
|
@@ -5133,7 +5133,7 @@ function ap(t, e) {
|
|
|
5133
5133
|
let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), s = g(e, "duration", 12, "2.5s"), a = g(e, "size", 12, "60"), i = g(e, "pause", 12, !1), o = ((u = s().match(et)) == null ? void 0 : u[0]) ?? "s", c = s().replace(et, "");
|
|
5134
5134
|
wt();
|
|
5135
5135
|
var l = rp();
|
|
5136
|
-
return st(l, 5, () =>
|
|
5136
|
+
return st(l, 5, () => Rt(6, 0), rt, (f, p) => {
|
|
5137
5137
|
var h = np();
|
|
5138
5138
|
P(() => {
|
|
5139
5139
|
q(h, "style", `animation-delay: ${d(p) * (+c / 25)}${o ?? ""}; width: ${d(p) * (+a() / 6) + r()}; height: ${d(p) * (+a() / 6) / 2 + r()}; `), ue(h, "pause-animation", i());
|
|
@@ -5184,7 +5184,7 @@ le(
|
|
|
5184
5184
|
[],
|
|
5185
5185
|
!0
|
|
5186
5186
|
);
|
|
5187
|
-
var ip = /* @__PURE__ */
|
|
5187
|
+
var ip = /* @__PURE__ */ L('<div class="dot svelte-1uhddr4"></div>'), op = /* @__PURE__ */ L('<div class="wrapper svelte-1uhddr4"><div class="spinner svelte-1uhddr4"></div></div>');
|
|
5188
5188
|
const lp = {
|
|
5189
5189
|
hash: "svelte-1uhddr4",
|
|
5190
5190
|
code: `.wrapper.svelte-1uhddr4 {height:var(--size);width:var(--size);display:flex;justify-content:center;align-items:center;}.spinner.svelte-1uhddr4 {height:var(--size);width:var(--size);
|
|
@@ -5212,7 +5212,7 @@ function cp(t, e) {
|
|
|
5212
5212
|
let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), s = g(e, "duration", 12, "2s"), a = g(e, "size", 12, "60"), i = g(e, "pause", 12, !1), o = ((f = s().match(et)) == null ? void 0 : f[0]) ?? "s", c = s().replace(et, "");
|
|
5213
5213
|
wt();
|
|
5214
5214
|
var l = op(), u = T(l);
|
|
5215
|
-
return st(u, 5, () =>
|
|
5215
|
+
return st(u, 5, () => Rt(2, 0), rt, (p, h) => {
|
|
5216
5216
|
var w = ip();
|
|
5217
5217
|
P(() => {
|
|
5218
5218
|
q(w, "style", `animation-delay: ${(d(h) === 1 ? `${+c / 2}${o}` : "0s") ?? ""}; ${(d(h) === 1 ? "bottom: 0;" : "") ?? ""} ${(d(h) === 1 ? "top: auto;" : "") ?? ""}`), ue(w, "pause-animation", i());
|
|
@@ -5265,7 +5265,7 @@ le(
|
|
|
5265
5265
|
[],
|
|
5266
5266
|
!0
|
|
5267
5267
|
);
|
|
5268
|
-
var up = /* @__PURE__ */
|
|
5268
|
+
var up = /* @__PURE__ */ L('<div class="square svelte-x90y"></div>');
|
|
5269
5269
|
const dp = {
|
|
5270
5270
|
hash: "svelte-x90y",
|
|
5271
5271
|
code: `.square.svelte-x90y {height:var(--size);width:var(--size);background-color:var(--color);
|
|
@@ -5341,7 +5341,7 @@ le(
|
|
|
5341
5341
|
[],
|
|
5342
5342
|
!0
|
|
5343
5343
|
);
|
|
5344
|
-
var pp = /* @__PURE__ */
|
|
5344
|
+
var pp = /* @__PURE__ */ L('<div class="wrapper svelte-5bpnhx"><div class="shadow svelte-5bpnhx"></div></div>');
|
|
5345
5345
|
const hp = {
|
|
5346
5346
|
hash: "svelte-5bpnhx",
|
|
5347
5347
|
code: `.wrapper.svelte-5bpnhx {position:relative;display:flex;justify-content:center;align-items:center;width:var(--size);height:var(--size);}.shadow.svelte-5bpnhx {color:var(--color);font-size:var(--size);overflow:hidden;width:var(--size);height:var(--size);border-radius:50%;margin:28px auto;position:relative;transform:translateZ(0);
|
|
@@ -5435,7 +5435,7 @@ le(
|
|
|
5435
5435
|
[],
|
|
5436
5436
|
!0
|
|
5437
5437
|
);
|
|
5438
|
-
var gp = /* @__PURE__ */
|
|
5438
|
+
var gp = /* @__PURE__ */ L('<div class="wrapper svelte-e653jg"><div class="circle-one svelte-e653jg"></div> <div class="circle-two svelte-e653jg"></div></div>');
|
|
5439
5439
|
const mp = {
|
|
5440
5440
|
hash: "svelte-e653jg",
|
|
5441
5441
|
code: `.wrapper.svelte-e653jg {height:var(--size);width:var(--size);border-radius:100%;
|
|
@@ -5499,7 +5499,7 @@ le(
|
|
|
5499
5499
|
[],
|
|
5500
5500
|
!0
|
|
5501
5501
|
);
|
|
5502
|
-
var wp = /* @__PURE__ */
|
|
5502
|
+
var wp = /* @__PURE__ */ L('<div class="wrapper svelte-1cx3779"><div class="spinner-inner svelte-1cx3779"><div id="top" class="mask svelte-1cx3779"><div class="plane svelte-1cx3779"></div></div> <div id="middle" class="mask svelte-1cx3779"><div class="plane svelte-1cx3779"></div></div> <div id="bottom" class="mask svelte-1cx3779"><div class="plane svelte-1cx3779"></div></div></div></div>');
|
|
5503
5503
|
const xp = {
|
|
5504
5504
|
hash: "svelte-1cx3779",
|
|
5505
5505
|
code: `.wrapper.svelte-1cx3779 {height:var(--size);width:var(--size);position:relative;display:flex;justify-content:center;align-items:center;}.wrapper.svelte-1cx3779 :where(.svelte-1cx3779) {line-height:0;box-sizing:border-box;}.spinner-inner.svelte-1cx3779 {height:var(--size);width:var(--size);transform:scale(calc(var(--size) / 70));}.mask.svelte-1cx3779 {position:absolute;border-radius:2px;overflow:hidden;perspective:1000;backface-visibility:hidden;}.plane.svelte-1cx3779 {background:var(--color);width:400%;height:100%;position:absolute;z-index:100;perspective:1000;backface-visibility:hidden;}#top.svelte-1cx3779 .plane:where(.svelte-1cx3779) {z-index:2000;
|
|
@@ -5536,7 +5536,7 @@ function _p(t, e) {
|
|
|
5536
5536
|
ie(e, !1), de(t, xp);
|
|
5537
5537
|
let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), s = g(e, "duration", 12, "1.3s"), a = g(e, "size", 12, "60"), i = g(e, "pause", 12, !1), o = Kt();
|
|
5538
5538
|
er(
|
|
5539
|
-
() =>
|
|
5539
|
+
() => Dn(n()),
|
|
5540
5540
|
() => {
|
|
5541
5541
|
m(o, qs(n(), 0.6));
|
|
5542
5542
|
}
|
|
@@ -5590,7 +5590,7 @@ le(
|
|
|
5590
5590
|
[],
|
|
5591
5591
|
!0
|
|
5592
5592
|
);
|
|
5593
|
-
var kp = /* @__PURE__ */
|
|
5593
|
+
var kp = /* @__PURE__ */ L('<span class="svelte-1jnfmql"><div class="svelte-1jnfmql"></div> <div class="svelte-1jnfmql"></div> <div class="svelte-1jnfmql"></div></span>');
|
|
5594
5594
|
const yp = {
|
|
5595
5595
|
hash: "svelte-1jnfmql",
|
|
5596
5596
|
code: `span.svelte-1jnfmql {width:var(--size);height:calc(var(--size) / 4);position:relative;display:block;}div.svelte-1jnfmql {width:calc(var(--size) / 4);height:calc(var(--size) / 4);position:absolute;left:0%;top:0;border-radius:2px;background:var(--color);transform:translateX(-50%) rotate(45deg) scale(0);
|
|
@@ -5659,7 +5659,7 @@ le(
|
|
|
5659
5659
|
[],
|
|
5660
5660
|
!0
|
|
5661
5661
|
);
|
|
5662
|
-
var Tp = /* @__PURE__ */
|
|
5662
|
+
var Tp = /* @__PURE__ */ L('<div class="svelte-db2m9w"></div>');
|
|
5663
5663
|
const $p = {
|
|
5664
5664
|
hash: "svelte-db2m9w",
|
|
5665
5665
|
code: `div.svelte-db2m9w {position:relative;width:var(--size);height:var(--size);background-color:transparent;box-shadow:inset 0px 0px 0px 2px var(--color);border-radius:50%;}div.svelte-db2m9w::before,
|
|
@@ -5726,7 +5726,7 @@ le(
|
|
|
5726
5726
|
[],
|
|
5727
5727
|
!0
|
|
5728
5728
|
);
|
|
5729
|
-
var Ep = /* @__PURE__ */
|
|
5729
|
+
var Ep = /* @__PURE__ */ L('<div class="bar svelte-1vzsw15"></div>'), Cp = /* @__PURE__ */ L('<div class="wrapper svelte-1vzsw15"></div>');
|
|
5730
5730
|
const Ip = {
|
|
5731
5731
|
hash: "svelte-1vzsw15",
|
|
5732
5732
|
code: `.wrapper.svelte-1vzsw15 {position:relative;display:flex;justify-content:center;align-items:center;width:calc(var(--size) * 2.5);height:var(--size);overflow:hidden;}.bar.svelte-1vzsw15 {position:absolute;top:calc(var(--size) / 10);width:calc(var(--size) / 5);height:calc(var(--size) / 10);margin-top:calc(var(--size) - var(--size) / 10);transform:skewY(0deg);background-color:var(--color);
|
|
@@ -5750,7 +5750,7 @@ function Ap(t, e) {
|
|
|
5750
5750
|
let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), s = g(e, "duration", 12, "1.25s"), a = g(e, "size", 12, "60"), i = g(e, "pause", 12, !1), o = ((u = s().match(et)) == null ? void 0 : u[0]) ?? "s", c = s().replace(et, "");
|
|
5751
5751
|
wt();
|
|
5752
5752
|
var l = Cp();
|
|
5753
|
-
return st(l, 5, () =>
|
|
5753
|
+
return st(l, 5, () => Rt(10, 0), rt, (f, p) => {
|
|
5754
5754
|
var h = Ep();
|
|
5755
5755
|
P(() => {
|
|
5756
5756
|
q(h, "style", `left: ${d(p) * (+a() / 5 + (+a() / 15 - +a() / 100)) + r()}; animation-delay: ${d(p) * (+c / 8.3)}${o ?? ""};`), ue(h, "pause-animation", i());
|
|
@@ -5801,8 +5801,8 @@ le(
|
|
|
5801
5801
|
[],
|
|
5802
5802
|
!0
|
|
5803
5803
|
);
|
|
5804
|
-
var
|
|
5805
|
-
const
|
|
5804
|
+
var jp = /* @__PURE__ */ L('<span class="circle svelte-bv9t2p"></span>'), Lp = /* @__PURE__ */ L('<span class="wrapper svelte-bv9t2p"></span>');
|
|
5805
|
+
const Fp = {
|
|
5806
5806
|
hash: "svelte-bv9t2p",
|
|
5807
5807
|
code: `.wrapper.svelte-bv9t2p {display:inherit;position:relative;width:var(--size);height:var(--size);}.circle.svelte-bv9t2p {position:absolute;width:var(--size);height:var(--size);border:thick solid var(--rgba);border-radius:50%;opacity:1;top:0px;left:0px;animation-fill-mode:both;animation-iteration-count:infinite;animation-timing-function:cubic-bezier(0.165, 0.84, 0.44, 1), cubic-bezier(0.3, 0.61, 0.355, 1);animation-direction:normal, normal;animation-fill-mode:none, none;animation-play-state:running, running;
|
|
5808
5808
|
animation-name: svelte-bv9t2p-puff-1, svelte-bv9t2p-puff-2;box-sizing:border-box;}.pause-animation.svelte-bv9t2p {animation-play-state:paused;}
|
|
@@ -5823,19 +5823,19 @@ const Rp = {
|
|
|
5823
5823
|
}
|
|
5824
5824
|
}`
|
|
5825
5825
|
};
|
|
5826
|
-
function
|
|
5826
|
+
function Rp(t, e) {
|
|
5827
5827
|
var f;
|
|
5828
|
-
ie(e, !1), de(t,
|
|
5828
|
+
ie(e, !1), de(t, Fp);
|
|
5829
5829
|
let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), s = g(e, "duration", 12, "1s"), a = g(e, "size", 12, "60"), i = g(e, "pause", 12, !1), o = ((f = s().match(et)) == null ? void 0 : f[0]) ?? "s", c = s().replace(et, ""), l = Kt();
|
|
5830
5830
|
er(
|
|
5831
|
-
() =>
|
|
5831
|
+
() => Dn(n()),
|
|
5832
5832
|
() => {
|
|
5833
5833
|
m(l, qs(n(), 1));
|
|
5834
5834
|
}
|
|
5835
5835
|
), tr(), wt();
|
|
5836
|
-
var u =
|
|
5837
|
-
return st(u, 5, () =>
|
|
5838
|
-
var w =
|
|
5836
|
+
var u = Lp();
|
|
5837
|
+
return st(u, 5, () => Rt(2, 1), rt, (p, h) => {
|
|
5838
|
+
var w = jp();
|
|
5839
5839
|
P(() => {
|
|
5840
5840
|
q(w, "style", `animation-delay: ${(d(h) === 1 ? "-1s" : "0s") ?? ""}; animation-duration: ${2 / +c + o};`), ue(w, "pause-animation", i());
|
|
5841
5841
|
}), E(p, w);
|
|
@@ -5873,7 +5873,7 @@ function Dp(t, e) {
|
|
|
5873
5873
|
});
|
|
5874
5874
|
}
|
|
5875
5875
|
le(
|
|
5876
|
-
|
|
5876
|
+
Rp,
|
|
5877
5877
|
{
|
|
5878
5878
|
color: {},
|
|
5879
5879
|
unit: {},
|
|
@@ -5885,7 +5885,7 @@ le(
|
|
|
5885
5885
|
[],
|
|
5886
5886
|
!0
|
|
5887
5887
|
);
|
|
5888
|
-
var
|
|
5888
|
+
var Dp = /* @__PURE__ */ L('<div class="wrapper svelte-f6hkgc"></div>');
|
|
5889
5889
|
const Pp = {
|
|
5890
5890
|
hash: "svelte-f6hkgc",
|
|
5891
5891
|
code: `.wrapper.svelte-f6hkgc {width:var(--size);height:calc(var(--size) * 1.5);margin-left:var(--size);background:var(--color);display:inline-block;position:relative;box-sizing:border-box;
|
|
@@ -5902,7 +5902,7 @@ const Pp = {
|
|
|
5902
5902
|
function Op(t, e) {
|
|
5903
5903
|
ie(e, !1), de(t, Pp);
|
|
5904
5904
|
let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), s = g(e, "duration", 12, "0.4s"), a = g(e, "size", 12, "15"), i = g(e, "pause", 12, !1);
|
|
5905
|
-
var o =
|
|
5905
|
+
var o = Dp();
|
|
5906
5906
|
return P(() => {
|
|
5907
5907
|
q(o, "style", `--size: ${a() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --duration: ${s() ?? ""};`), ue(o, "pause-animation", i());
|
|
5908
5908
|
}), E(t, o), oe({
|
|
@@ -5951,7 +5951,7 @@ le(
|
|
|
5951
5951
|
[],
|
|
5952
5952
|
!0
|
|
5953
5953
|
);
|
|
5954
|
-
var Mp = /* @__PURE__ */
|
|
5954
|
+
var Mp = /* @__PURE__ */ L('<div class="wrapper svelte-1ju64u"></div>');
|
|
5955
5955
|
const Np = {
|
|
5956
5956
|
hash: "svelte-1ju64u",
|
|
5957
5957
|
code: `.wrapper.svelte-1ju64u {width:var(--size);height:calc(var(--size) * 1.5);margin-left:var(--size);margin-top:var(--size);background:var(--color);display:inline-block;position:relative;box-sizing:border-box;
|
|
@@ -6151,7 +6151,7 @@ const ur = (t, e) => `${t}-${e}`, Mi = (t) => t.isCommon ? t.filename.split(".")
|
|
|
6151
6151
|
}[r()];
|
|
6152
6152
|
u ? u() : n(d(e), () => kt.getDocuments(d(e)), (f) => m(o, C(f)), "Errore nella ricerca documenti:");
|
|
6153
6153
|
};
|
|
6154
|
-
var rh = /* @__PURE__ */
|
|
6154
|
+
var rh = /* @__PURE__ */ L('<div class="text-center p-3"><!> <p class="mt-2 text-muted"> </p></div>'), sh = /* @__PURE__ */ L('<div class="text-center p-3"><i class="fa-solid fa-search text-muted fa-2x"></i> <p class="mt-2 text-muted"> </p></div>'), ah = /* @__PURE__ */ L('<div class="text-center p-3"><i class="fa-solid fa-file-circle-exclamation text-muted fa-2x"></i> <p class="mt-2 text-muted"><!></p></div>'), ih = (t, e, n) => e(d(n)), oh = /* @__PURE__ */ L('<div class="document-path svelte-zrlk2s"> </div>'), lh = /* @__PURE__ */ L('<div class="selected-indicator svelte-zrlk2s"><i class="fa-solid fa-circle-check"></i></div>'), ch = /* @__PURE__ */ L('<button class="document-item svelte-zrlk2s"><div class="document-icon svelte-zrlk2s"><i></i></div> <div class="document-info"><div class="document-title svelte-zrlk2s"> </div> <!></div> <!></button>'), uh = /* @__PURE__ */ L('<div class="documents-list svelte-zrlk2s"></div>'), dh = /* @__PURE__ */ L('<div class="modal-overlay svelte-zrlk2s"><div class="document-search-modal svelte-zrlk2s"><div class="modal-header svelte-zrlk2s"><h5 class="svelte-zrlk2s"> </h5> <button class="btn btn-sm btn-danger aks-btn-rounded" aria-label="Chiudi modale"><i class="fa-solid fa-xmark"></i></button></div> <div class="modal-body svelte-zrlk2s"><div class="search-container svelte-zrlk2s"><div class="input-group"><span class="input-group-text svelte-zrlk2s"><i class="fa-solid fa-search"></i></span> <input type="text" class="form-control" style="color: black;"></div></div> <div class="documents-container svelte-zrlk2s"><!></div></div></div></div>');
|
|
6155
6155
|
const fh = {
|
|
6156
6156
|
hash: "svelte-zrlk2s",
|
|
6157
6157
|
code: `\r
|
|
@@ -6164,57 +6164,57 @@ function qi(t, e) {
|
|
|
6164
6164
|
let o = /* @__PURE__ */ Ze(() => rr(s())), c = Y(C([])), l = Y(C([])), u = Y(C([])), f = Y(C([])), p = Y(!1), h = Y(""), w = /* @__PURE__ */ Ze(() => s() === "normative" || s() === "suite" ? d(l) : s() === "gendoc" ? d(u) : s() === "transcriptions" ? d(f) : d(c));
|
|
6165
6165
|
const x = () => {
|
|
6166
6166
|
m(c, C([])), m(l, C([])), m(u, C([])), m(f, C([]));
|
|
6167
|
-
}, k = (
|
|
6168
|
-
if (
|
|
6167
|
+
}, k = (F) => n()[F._id] ? (delete n()[F._id], !0) : !1, b = (F) => Object.keys(n()).length >= F ? (alert(/* @__PURE__ */ gd({ count: F })), !1) : !0, _ = (F) => {
|
|
6168
|
+
if (F instanceof on)
|
|
6169
6169
|
return {
|
|
6170
|
-
title:
|
|
6171
|
-
ext_id:
|
|
6172
|
-
gendoc_id:
|
|
6173
|
-
isCommon:
|
|
6170
|
+
title: F.title,
|
|
6171
|
+
ext_id: F.externalId,
|
|
6172
|
+
gendoc_id: F.gendocId,
|
|
6173
|
+
isCommon: F.isCommon
|
|
6174
6174
|
};
|
|
6175
|
-
if (
|
|
6175
|
+
if (F instanceof ln)
|
|
6176
6176
|
return {
|
|
6177
|
-
title:
|
|
6178
|
-
ext_id:
|
|
6177
|
+
title: F.title,
|
|
6178
|
+
ext_id: F.externalId,
|
|
6179
6179
|
gendoc_id: "",
|
|
6180
6180
|
isCommon: !0
|
|
6181
6181
|
};
|
|
6182
|
-
if (
|
|
6182
|
+
if (F instanceof gn)
|
|
6183
6183
|
return {
|
|
6184
|
-
title:
|
|
6185
|
-
ext_id:
|
|
6186
|
-
gendoc_id:
|
|
6184
|
+
title: F.name + ".akd",
|
|
6185
|
+
ext_id: F._id,
|
|
6186
|
+
gendoc_id: F._id,
|
|
6187
6187
|
isCommon: !1
|
|
6188
6188
|
};
|
|
6189
|
-
if (
|
|
6189
|
+
if (F instanceof cn)
|
|
6190
6190
|
return {
|
|
6191
|
-
title:
|
|
6192
|
-
ext_id:
|
|
6191
|
+
title: F.name + ".tldv",
|
|
6192
|
+
ext_id: F.externalMeetingId,
|
|
6193
6193
|
gendoc_id: "",
|
|
6194
6194
|
isCommon: !0
|
|
6195
6195
|
};
|
|
6196
6196
|
throw new Error("Unknown document type");
|
|
6197
|
-
}, $ = (
|
|
6198
|
-
if (k(
|
|
6197
|
+
}, $ = (F) => {
|
|
6198
|
+
if (k(F))
|
|
6199
6199
|
return;
|
|
6200
|
-
const K =
|
|
6201
|
-
b(K) && n(n()[
|
|
6202
|
-
}, A = async (
|
|
6203
|
-
if (
|
|
6204
|
-
|
|
6200
|
+
const K = F instanceof gn || F instanceof cn ? a.gendoc : a.default;
|
|
6201
|
+
b(K) && n(n()[F._id] = _(F), !0);
|
|
6202
|
+
}, A = async (F, K, je, Pe) => {
|
|
6203
|
+
if (F.length < i) {
|
|
6204
|
+
je([]);
|
|
6205
6205
|
return;
|
|
6206
6206
|
}
|
|
6207
6207
|
m(p, !0);
|
|
6208
6208
|
try {
|
|
6209
6209
|
const Ye = await K();
|
|
6210
|
-
|
|
6210
|
+
je(Ye);
|
|
6211
6211
|
} catch (Ye) {
|
|
6212
|
-
console.error(Pe, Ye),
|
|
6212
|
+
console.error(Pe, Ye), je([]);
|
|
6213
6213
|
} finally {
|
|
6214
6214
|
m(p, !1);
|
|
6215
6215
|
}
|
|
6216
6216
|
};
|
|
6217
|
-
var S = dh(),
|
|
6217
|
+
var S = dh(), j = T(S), R = T(j), M = T(R), G = T(M);
|
|
6218
6218
|
y(M);
|
|
6219
6219
|
var ge = O(M, 2);
|
|
6220
6220
|
ge.__click = [
|
|
@@ -6222,9 +6222,9 @@ function qi(t, e) {
|
|
|
6222
6222
|
r,
|
|
6223
6223
|
h,
|
|
6224
6224
|
x
|
|
6225
|
-
], y(
|
|
6226
|
-
var tt = O(
|
|
6227
|
-
|
|
6225
|
+
], y(R);
|
|
6226
|
+
var tt = O(R, 2), Ee = T(tt), Ce = T(Ee), ae = O(T(Ce), 2);
|
|
6227
|
+
Fl(ae), ae.__input = [
|
|
6228
6228
|
nh,
|
|
6229
6229
|
h,
|
|
6230
6230
|
A,
|
|
@@ -6236,13 +6236,13 @@ function qi(t, e) {
|
|
|
6236
6236
|
], y(Ce), y(Ee);
|
|
6237
6237
|
var Xe = O(Ee, 2), Qe = T(Xe);
|
|
6238
6238
|
{
|
|
6239
|
-
var ct = (
|
|
6240
|
-
var K = rh(),
|
|
6241
|
-
Er(
|
|
6242
|
-
var Pe = O(
|
|
6243
|
-
y(Pe), y(K), P((Oe) => Se(Ye, Oe), [() => /* @__PURE__ */ ad()]), E(
|
|
6244
|
-
}, ft = (
|
|
6245
|
-
var K = yt(),
|
|
6239
|
+
var ct = (F) => {
|
|
6240
|
+
var K = rh(), je = T(K);
|
|
6241
|
+
Er(je, { size: "30", color: "#295dcf" });
|
|
6242
|
+
var Pe = O(je, 2), Ye = T(Pe, !0);
|
|
6243
|
+
y(Pe), y(K), P((Oe) => Se(Ye, Oe), [() => /* @__PURE__ */ ad()]), E(F, K);
|
|
6244
|
+
}, ft = (F) => {
|
|
6245
|
+
var K = yt(), je = ot(K);
|
|
6246
6246
|
{
|
|
6247
6247
|
var Pe = (Oe) => {
|
|
6248
6248
|
var Me = sh(), Ge = O(T(Me), 2), ke = T(Ge, !0);
|
|
@@ -6251,13 +6251,13 @@ function qi(t, e) {
|
|
|
6251
6251
|
var Me = yt(), Ge = ot(Me);
|
|
6252
6252
|
{
|
|
6253
6253
|
var ke = (Ie) => {
|
|
6254
|
-
var ce = ah(),
|
|
6254
|
+
var ce = ah(), D = O(T(ce), 2), H = T(D);
|
|
6255
6255
|
{
|
|
6256
|
-
var re = (
|
|
6256
|
+
var re = (De) => {
|
|
6257
6257
|
var Ue = or();
|
|
6258
|
-
P((
|
|
6259
|
-
}, ye = (
|
|
6260
|
-
var Ue = yt(),
|
|
6258
|
+
P((Fe) => Se(Ue, Fe), [() => /* @__PURE__ */ od()]), E(De, Ue);
|
|
6259
|
+
}, ye = (De) => {
|
|
6260
|
+
var Ue = yt(), Fe = ot(Ue);
|
|
6261
6261
|
{
|
|
6262
6262
|
var fe = (N) => {
|
|
6263
6263
|
var B = or();
|
|
@@ -6283,29 +6283,29 @@ function qi(t, e) {
|
|
|
6283
6283
|
E(N, B);
|
|
6284
6284
|
};
|
|
6285
6285
|
X(
|
|
6286
|
-
|
|
6286
|
+
Fe,
|
|
6287
6287
|
(N) => {
|
|
6288
6288
|
s() === "gendoc" ? N(fe) : N(Ve, !1);
|
|
6289
6289
|
},
|
|
6290
6290
|
!0
|
|
6291
6291
|
);
|
|
6292
6292
|
}
|
|
6293
|
-
E(
|
|
6293
|
+
E(De, Ue);
|
|
6294
6294
|
};
|
|
6295
|
-
X(H, (
|
|
6296
|
-
s() === "normative" || s() === "suite" ?
|
|
6295
|
+
X(H, (De) => {
|
|
6296
|
+
s() === "normative" || s() === "suite" ? De(re) : De(ye, !1);
|
|
6297
6297
|
});
|
|
6298
6298
|
}
|
|
6299
|
-
y(
|
|
6299
|
+
y(D), y(ce), E(Ie, ce);
|
|
6300
6300
|
}, W = (Ie) => {
|
|
6301
6301
|
var ce = uh();
|
|
6302
|
-
st(ce, 21, () => d(w), rt, (
|
|
6302
|
+
st(ce, 21, () => d(w), rt, (D, H) => {
|
|
6303
6303
|
var re = ch();
|
|
6304
|
-
const ye = /* @__PURE__ */ Ze(() => Qp(d(H), d(o))),
|
|
6304
|
+
const ye = /* @__PURE__ */ Ze(() => Qp(d(H), d(o))), De = /* @__PURE__ */ Ze(() => Kp(d(H))), Ue = /* @__PURE__ */ Ze(() => eh(d(H)));
|
|
6305
6305
|
re.__click = [ih, $, H];
|
|
6306
|
-
var
|
|
6307
|
-
y(
|
|
6308
|
-
var Ve = O(
|
|
6306
|
+
var Fe = T(re), fe = T(Fe);
|
|
6307
|
+
y(Fe);
|
|
6308
|
+
var Ve = O(Fe, 2), N = T(Ve), B = T(N, !0);
|
|
6309
6309
|
y(N);
|
|
6310
6310
|
var te = O(N, 2);
|
|
6311
6311
|
{
|
|
@@ -6329,8 +6329,8 @@ function qi(t, e) {
|
|
|
6329
6329
|
});
|
|
6330
6330
|
}
|
|
6331
6331
|
y(re), P(() => {
|
|
6332
|
-
ue(re, "selected", n()[d(H)._id]), ut(fe, qr(d(ye).class), "svelte-zrlk2s"), q(fe, "style", `color: ${d(ye).color}`), Se(B, d(
|
|
6333
|
-
}), E(
|
|
6332
|
+
ue(re, "selected", n()[d(H)._id]), ut(fe, qr(d(ye).class), "svelte-zrlk2s"), q(fe, "style", `color: ${d(ye).color}`), Se(B, d(De));
|
|
6333
|
+
}), E(D, re);
|
|
6334
6334
|
}), y(ce), E(Ie, ce);
|
|
6335
6335
|
};
|
|
6336
6336
|
X(
|
|
@@ -6344,23 +6344,23 @@ function qi(t, e) {
|
|
|
6344
6344
|
E(Oe, Me);
|
|
6345
6345
|
};
|
|
6346
6346
|
X(
|
|
6347
|
-
|
|
6347
|
+
je,
|
|
6348
6348
|
(Oe) => {
|
|
6349
6349
|
d(h).length < i ? Oe(Pe) : Oe(Ye, !1);
|
|
6350
6350
|
},
|
|
6351
6351
|
!0
|
|
6352
6352
|
);
|
|
6353
6353
|
}
|
|
6354
|
-
E(
|
|
6354
|
+
E(F, K);
|
|
6355
6355
|
};
|
|
6356
|
-
X(Qe, (
|
|
6357
|
-
d(p) ?
|
|
6356
|
+
X(Qe, (F) => {
|
|
6357
|
+
d(p) ? F(ct) : F(ft, !1);
|
|
6358
6358
|
});
|
|
6359
6359
|
}
|
|
6360
|
-
return y(Xe), y(tt), y(
|
|
6361
|
-
(
|
|
6362
|
-
Se(G, `${
|
|
6363
|
-
${K ?? ""}`), q(ae, "placeholder", `${
|
|
6360
|
+
return y(Xe), y(tt), y(j), y(S), P(
|
|
6361
|
+
(F, K, je) => {
|
|
6362
|
+
Se(G, `${F ?? ""}
|
|
6363
|
+
${K ?? ""}`), q(ae, "placeholder", `${F ?? ""} ${je ?? ""} (min 3 caratteri)...`), Rl(ae, d(h));
|
|
6364
6364
|
},
|
|
6365
6365
|
[
|
|
6366
6366
|
() => /* @__PURE__ */ sd(),
|
|
@@ -6371,20 +6371,20 @@ function qi(t, e) {
|
|
|
6371
6371
|
get attachments() {
|
|
6372
6372
|
return n();
|
|
6373
6373
|
},
|
|
6374
|
-
set attachments(
|
|
6375
|
-
n(
|
|
6374
|
+
set attachments(F) {
|
|
6375
|
+
n(F), v();
|
|
6376
6376
|
},
|
|
6377
6377
|
get showDocumentSearchModal() {
|
|
6378
6378
|
return r();
|
|
6379
6379
|
},
|
|
6380
|
-
set showDocumentSearchModal(
|
|
6381
|
-
r(
|
|
6380
|
+
set showDocumentSearchModal(F) {
|
|
6381
|
+
r(F), v();
|
|
6382
6382
|
},
|
|
6383
6383
|
get modeSelected() {
|
|
6384
6384
|
return s();
|
|
6385
6385
|
},
|
|
6386
|
-
set modeSelected(
|
|
6387
|
-
s(
|
|
6386
|
+
set modeSelected(F) {
|
|
6387
|
+
s(F), v();
|
|
6388
6388
|
}
|
|
6389
6389
|
});
|
|
6390
6390
|
}
|
|
@@ -6613,7 +6613,7 @@ const gh = async (t) => {
|
|
|
6613
6613
|
}, Eh = (t, e, n) => {
|
|
6614
6614
|
m(e, !1), m(n, !0);
|
|
6615
6615
|
};
|
|
6616
|
-
var Ch = /* @__PURE__ */
|
|
6616
|
+
var Ch = /* @__PURE__ */ L('<div class="chat-blocked-message svelte-1v0h2p0"><i class="fa-solid fa-clock-rotate-left svelte-1v0h2p0"></i> <span class="svelte-1v0h2p0"> </span></div>'), Ih = /* @__PURE__ */ L('<div class="dropdown-content svelte-1v0h2p0"><button><i class="fa-solid fa-file-circle-plus svelte-1v0h2p0"></i> <span class="svelte-1v0h2p0"> </span></button> <button><i class="fa-solid fa-upload svelte-1v0h2p0"></i> <span class="svelte-1v0h2p0"> </span></button></div>'), Ah = /* @__PURE__ */ L('<option class="svelte-1v0h2p0">Generatore di Normative</option>'), jh = /* @__PURE__ */ L('<div class="attachment-title noopen-file-button svelte-1v0h2p0"> </div>'), Lh = (t, e, n, r, s) => e(n(), r(), s()), Fh = /* @__PURE__ */ L('<button class="attachment-title open-file-button svelte-1v0h2p0"> </button>'), Rh = (t, e, n, r, s) => e(n(), r(), s()), Dh = /* @__PURE__ */ L('<div><i></i> <!> <button aria-label="Remove attachment"><i class="fa-solid fa-xmark svelte-1v0h2p0"></i></button></div>'), Ph = /* @__PURE__ */ L('<button class="btn send-button stop-recording-btn svelte-1v0h2p0" aria-label="Stop recording"><i class="fa-solid fa-stop svelte-1v0h2p0"></i></button>'), Oh = /* @__PURE__ */ L('<button class="btn send-button aks-btn-answer svelte-1v0h2p0" aria-label="Synthesizing" disabled><!></button>'), Mh = /* @__PURE__ */ L('<button class="btn send-button aks-btn-answer svelte-1v0h2p0" aria-label="Start recording"><i class="fa-solid fa-microphone svelte-1v0h2p0"></i></button>'), Nh = /* @__PURE__ */ L('<button class="btn send-button stop-stream-btn svelte-1v0h2p0" aria-label="Stop message"><i class="fa-solid fa-stop svelte-1v0h2p0"></i></button>'), Uh = /* @__PURE__ */ L('<button class="btn send-button aks-btn-answer svelte-1v0h2p0" aria-label="Loading" disabled><!></button>'), qh = /* @__PURE__ */ L('<button class="btn send-button aks-btn-answer send-message-btn svelte-1v0h2p0" aria-label="Send message"><i class="fa-solid fa-paper-plane svelte-1v0h2p0"></i></button>'), Bh = /* @__PURE__ */ L('<div class="top svelte-1v0h2p0"><textarea style="color: black !important;" class="form-control form-control-sm svelte-1v0h2p0" rows="2"></textarea></div> <div class="bottom svelte-1v0h2p0"><div class="controls-row svelte-1v0h2p0"><div class="plus-button-container svelte-1v0h2p0"><button><i></i></button> <!></div> <select class="mode-select svelte-1v0h2p0" aria-label="Select mode"><option class="svelte-1v0h2p0">Auto</option><option class="svelte-1v0h2p0">Manuale Suite</option><option class="svelte-1v0h2p0"> </option><option class="svelte-1v0h2p0">Knowledge Base</option><option class="svelte-1v0h2p0">GenDoc</option><option class="svelte-1v0h2p0">Trascrizioni</option><!><option class="svelte-1v0h2p0">Agente Suite</option></select> <div class="attachments-container svelte-1v0h2p0"></div> <div class="send-buttons svelte-1v0h2p0"><!> <!></div></div></div>', 1), Hh = /* @__PURE__ */ L('<div class="input svelte-1v0h2p0"><!></div> <!>', 1);
|
|
6617
6617
|
const Yh = {
|
|
6618
6618
|
hash: "svelte-1v0h2p0",
|
|
6619
6619
|
code: `textarea.svelte-1v0h2p0 {border:none;overflow-y:auto;resize:none;transition:height 0.1s ease;max-height:120px; /* 5 righe circa */}.noopen-file-button.svelte-1v0h2p0 {background:none;border:none;padding:0;font-size:0.875rem;color:black;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;text-align:left;min-width:0;}.open-file-button.svelte-1v0h2p0 {background:none;border:none;cursor:pointer;padding:0;font-size:0.875rem;color:white;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;text-align:left;min-width:0;}.open-file-button.svelte-1v0h2p0:hover {background-color:transparent;text-decoration:underline;}.mode-select.svelte-1v0h2p0 {flex-shrink:0;height:32px;padding:0 8px;border-radius:16px;border:2px solid #e9ecef;background-color:#f8f9fa;color:#295dcf;font-size:0.8rem;font-weight:500;cursor:pointer;transition:all 0.2s ease;box-shadow:0 2px 4px rgba(0, 0, 0, 0.1);outline:none;max-width:120px;}.mode-select.svelte-1v0h2p0:hover {background-color:#e9ecef;border-color:#295dcf;}.mode-select.svelte-1v0h2p0:focus {border-color:#295dcf;box-shadow:0 0 0 3px rgba(41, 93, 207, 0.1);}.plus-button-container.svelte-1v0h2p0 {position:relative;flex-shrink:0;}.plus-button.svelte-1v0h2p0 {display:flex;justify-content:center;align-items:center;padding:0;width:38px;height:38px;border-radius:50%;background-color:#f8f9fa;color:#295dcf;border:2px solid #e9ecef;transition:all 0.2s ease;font-size:1.1rem;box-shadow:0 2px 4px rgba(0, 0, 0, 0.1);}.plus-button.svelte-1v0h2p0:hover {background-color:#295dcf;color:white;border-color:#295dcf;transform:scale(1.05);box-shadow:0 4px 8px rgba(0, 0, 0, 0.15);}.plus-button.svelte-1v0h2p0:active {transform:scale(0.95);}.plus-button-active.svelte-1v0h2p0 {background-color:#295dcf;color:white;border-color:#295dcf;}.plus-button-active.svelte-1v0h2p0:hover {background-color:#1d4a9e;border-color:#1d4a9e;transform:scale(1.05);}.controls-row.svelte-1v0h2p0 {display:flex;align-items:center;width:100%;gap:5px;min-width:0;}.attachments-container.svelte-1v0h2p0 {display:flex;gap:5px;overflow-x:auto;min-width:0;flex:1;padding:2px 0;\r
|
|
@@ -6636,28 +6636,28 @@ const Yh = {
|
|
|
6636
6636
|
};
|
|
6637
6637
|
function Hi(t, e) {
|
|
6638
6638
|
ie(e, !0), de(t, Yh);
|
|
6639
|
-
let n = g(e, "sendMessage", 7), r = g(e, "stopMessage", 7), s = g(e, "loading", 15), a = g(e, "languageSelected", 15), i = g(e, "modeSelected", 15), o = g(e, "attachments", 15), c = g(e, "userLevel", 15), l = g(e, "uploadFiles", 7), u = g(e, "actChat", 15), f = g(e, "streamMessage", 15), p = g(e, "uploadingFileName", 15), h = g(e, "uploadProgress", 15), w = Y(""), x = Y(null), k, b = Y(C([])), _ = Y(!1), $ = Y(!1), A = Y(!1), S = Y(!1),
|
|
6639
|
+
let n = g(e, "sendMessage", 7), r = g(e, "stopMessage", 7), s = g(e, "loading", 15), a = g(e, "languageSelected", 15), i = g(e, "modeSelected", 15), o = g(e, "attachments", 15), c = g(e, "userLevel", 15), l = g(e, "uploadFiles", 7), u = g(e, "actChat", 15), f = g(e, "streamMessage", 15), p = g(e, "uploadingFileName", 15), h = g(e, "uploadProgress", 15), w = Y(""), x = Y(null), k, b = Y(C([])), _ = Y(!1), $ = Y(!1), A = Y(!1), S = Y(!1), j = Y(null), R = /* @__PURE__ */ Ze(() => rr(i()));
|
|
6640
6640
|
const M = 20, G = 5, ge = 0.5;
|
|
6641
|
-
function tt(
|
|
6642
|
-
return
|
|
6641
|
+
function tt(D, H) {
|
|
6642
|
+
return D ? i() === "normative" || i() === "suite" ? d(R).name : "" : H;
|
|
6643
6643
|
}
|
|
6644
6644
|
function Ee() {
|
|
6645
6645
|
m(w, ""), o({}), d(x) && (d(x).style.height = "auto");
|
|
6646
6646
|
}
|
|
6647
6647
|
function Ce() {
|
|
6648
|
-
k != null && k.stream && k.stream.getTracks().forEach((
|
|
6648
|
+
k != null && k.stream && k.stream.getTracks().forEach((D) => D.stop());
|
|
6649
6649
|
}
|
|
6650
6650
|
const ae = () => {
|
|
6651
6651
|
if (!d(x)) return;
|
|
6652
6652
|
d(x).style.height = "auto";
|
|
6653
|
-
const
|
|
6654
|
-
d(x).style.height = Math.min(
|
|
6655
|
-
}, Xe = (
|
|
6653
|
+
const D = d(x).scrollHeight, H = M * G;
|
|
6654
|
+
d(x).style.height = Math.min(D, H) + "px";
|
|
6655
|
+
}, Xe = (D) => {
|
|
6656
6656
|
var re, ye;
|
|
6657
|
-
|
|
6658
|
-
const H =
|
|
6659
|
-
(ye = d(
|
|
6660
|
-
left: (((re = d(
|
|
6657
|
+
D.preventDefault();
|
|
6658
|
+
const H = D.deltaY * ge;
|
|
6659
|
+
(ye = d(j)) == null || ye.scrollTo({
|
|
6660
|
+
left: (((re = d(j)) == null ? void 0 : re.scrollLeft) || 0) + H,
|
|
6661
6661
|
behavior: "smooth"
|
|
6662
6662
|
});
|
|
6663
6663
|
}, Qe = () => {
|
|
@@ -6665,8 +6665,8 @@ function Hi(t, e) {
|
|
|
6665
6665
|
}, ct = async () => {
|
|
6666
6666
|
if (!s())
|
|
6667
6667
|
try {
|
|
6668
|
-
const
|
|
6669
|
-
k = new MediaRecorder(
|
|
6668
|
+
const D = await navigator.mediaDevices.getUserMedia({ audio: !0 });
|
|
6669
|
+
k = new MediaRecorder(D, { mimeType: "audio/webm" }), k.ondataavailable = (H) => {
|
|
6670
6670
|
H.data.size > 0 && d(b).push(H.data);
|
|
6671
6671
|
}, k.onstop = async () => {
|
|
6672
6672
|
m($, !0);
|
|
@@ -6678,23 +6678,23 @@ function Hi(t, e) {
|
|
|
6678
6678
|
m($, !1);
|
|
6679
6679
|
}
|
|
6680
6680
|
}, m(_, !0), k.start();
|
|
6681
|
-
} catch (
|
|
6682
|
-
console.error("Failed to start recording:",
|
|
6681
|
+
} catch (D) {
|
|
6682
|
+
console.error("Failed to start recording:", D);
|
|
6683
6683
|
}
|
|
6684
6684
|
}, ft = () => {
|
|
6685
6685
|
k && (k.stop(), Ce(), m(_, !1), m(b, C([])));
|
|
6686
|
-
},
|
|
6686
|
+
}, F = () => {
|
|
6687
6687
|
m(A, !1);
|
|
6688
|
-
const
|
|
6689
|
-
|
|
6690
|
-
var ye,
|
|
6688
|
+
const D = document.createElement("input");
|
|
6689
|
+
D.type = "file", D.multiple = !1, D.onchange = async (H) => {
|
|
6690
|
+
var ye, De, Ue;
|
|
6691
6691
|
const re = H.target;
|
|
6692
6692
|
if (re.files && re.files.length > 0) {
|
|
6693
|
-
const
|
|
6693
|
+
const Fe = Array.from(re.files);
|
|
6694
6694
|
let fe = null;
|
|
6695
|
-
const Ve = !!((
|
|
6695
|
+
const Ve = !!((De = (ye = u()) == null ? void 0 : ye.state.info) != null && De.find((N) => N.key === "CLOUDSTORAGE_FILE_UPLOADED"));
|
|
6696
6696
|
try {
|
|
6697
|
-
for (const N of
|
|
6697
|
+
for (const N of Fe) {
|
|
6698
6698
|
p(N.name), h(0);
|
|
6699
6699
|
let B = 0, te = 0;
|
|
6700
6700
|
fe = setInterval(
|
|
@@ -6714,7 +6714,7 @@ function Hi(t, e) {
|
|
|
6714
6714
|
};
|
|
6715
6715
|
if ((Ue = u()) != null && Ue.state.info) {
|
|
6716
6716
|
let V = !1;
|
|
6717
|
-
!Ve &&
|
|
6717
|
+
!Ve && Fe.indexOf(N) === Fe.length - 1 && (V = !0), u().state.info.push({
|
|
6718
6718
|
key: "CLOUDSTORAGE_FILE_UPLOADED",
|
|
6719
6719
|
value: JSON.stringify(J)
|
|
6720
6720
|
}), u().state.info.push({
|
|
@@ -6727,11 +6727,11 @@ function Hi(t, e) {
|
|
|
6727
6727
|
console.error("Error uploading file:", N), fe && (clearInterval(fe), fe = null), p(""), h(0);
|
|
6728
6728
|
}
|
|
6729
6729
|
}
|
|
6730
|
-
},
|
|
6731
|
-
}, K = (
|
|
6732
|
-
delete o()[
|
|
6733
|
-
},
|
|
6734
|
-
await kt.getDocumentPage(
|
|
6730
|
+
}, D.click();
|
|
6731
|
+
}, K = (D, H, re) => {
|
|
6732
|
+
delete o()[D], re && _t.deleteFile(re, H);
|
|
6733
|
+
}, je = async (D, H, re) => {
|
|
6734
|
+
await kt.getDocumentPage(D, H, re);
|
|
6735
6735
|
}, Pe = [
|
|
6736
6736
|
"suite",
|
|
6737
6737
|
"normative",
|
|
@@ -6744,18 +6744,18 @@ function Hi(t, e) {
|
|
|
6744
6744
|
"audit_handler",
|
|
6745
6745
|
"suite_agent"
|
|
6746
6746
|
];
|
|
6747
|
-
|
|
6747
|
+
Lt(() => {
|
|
6748
6748
|
d(w) !== void 0 && ae();
|
|
6749
6749
|
});
|
|
6750
6750
|
var Oe = Hh(), Me = ot(Oe), Ge = T(Me);
|
|
6751
6751
|
{
|
|
6752
|
-
var ke = (
|
|
6752
|
+
var ke = (D) => {
|
|
6753
6753
|
var H = Ch(), re = O(T(H), 2), ye = T(re, !0);
|
|
6754
|
-
y(re), y(H), P((
|
|
6755
|
-
}, W = (
|
|
6754
|
+
y(re), y(H), P((De) => Se(ye, De), [() => /* @__PURE__ */ _d()]), E(D, H);
|
|
6755
|
+
}, W = (D) => {
|
|
6756
6756
|
var H = Bh(), re = ot(H), ye = T(re);
|
|
6757
6757
|
$l(ye), ye.__input = ae, bs(ye, (z) => m(x, z), () => d(x)), y(re);
|
|
6758
|
-
var
|
|
6758
|
+
var De = O(re, 2), Ue = T(De), Fe = T(Ue), fe = T(Fe);
|
|
6759
6759
|
fe.__click = [Sh, A];
|
|
6760
6760
|
var Ve = T(fe);
|
|
6761
6761
|
y(fe);
|
|
@@ -6771,12 +6771,12 @@ function Hi(t, e) {
|
|
|
6771
6771
|
var Be = O(T(be), 2), dn = T(Be);
|
|
6772
6772
|
y(Be), y(be);
|
|
6773
6773
|
var He = O(be, 2);
|
|
6774
|
-
He.__click =
|
|
6774
|
+
He.__click = F;
|
|
6775
6775
|
var Ne = O(T(He), 2), pt = T(Ne, !0);
|
|
6776
6776
|
y(Ne), y(He), y(ne), P(
|
|
6777
|
-
(Ht, Pn, ar, Zr, Vr, ir,
|
|
6777
|
+
(Ht, Pn, ar, Zr, Vr, ir, Dt) => {
|
|
6778
6778
|
ut(be, `${Ht ?? ""} svelte-1v0h2p0`), be.disabled = Pn, Se(dn, `${ar ?? ""}
|
|
6779
|
-
${Zr ?? ""}`), ut(He, `${Vr ?? ""} svelte-1v0h2p0`), He.disabled = ir, Se(pt,
|
|
6779
|
+
${Zr ?? ""}`), ut(He, `${Vr ?? ""} svelte-1v0h2p0`), He.disabled = ir, Se(pt, Dt);
|
|
6780
6780
|
},
|
|
6781
6781
|
[
|
|
6782
6782
|
() => `dropdown-option ${Pe.includes(i()) ? "" : "option-disabled"}`,
|
|
@@ -6793,8 +6793,8 @@ function Hi(t, e) {
|
|
|
6793
6793
|
d(A) && z(B);
|
|
6794
6794
|
});
|
|
6795
6795
|
}
|
|
6796
|
-
y(
|
|
6797
|
-
var te = O(
|
|
6796
|
+
y(Fe);
|
|
6797
|
+
var te = O(Fe, 2);
|
|
6798
6798
|
te.__change = [$h, i, o];
|
|
6799
6799
|
var Z = T(te);
|
|
6800
6800
|
Z.value = (Z.__value = "auto") == null ? "" : "auto";
|
|
@@ -6825,42 +6825,42 @@ function Hi(t, e) {
|
|
|
6825
6825
|
var me = O(te, 2);
|
|
6826
6826
|
st(me, 21, () => Object.entries(o()), rt, (z, ne) => {
|
|
6827
6827
|
let be = () => d(ne)[0], Be = () => d(ne)[1].title, dn = () => d(ne)[1].ext_id, He = () => d(ne)[1].gendoc_id, Ne = () => d(ne)[1].storage_id, pt = () => d(ne)[1].isCommon;
|
|
6828
|
-
var Ht =
|
|
6828
|
+
var Ht = Dh(), Pn = T(Ht), ar = O(Pn, 2);
|
|
6829
6829
|
{
|
|
6830
|
-
var Zr = (
|
|
6831
|
-
var
|
|
6832
|
-
y(
|
|
6830
|
+
var Zr = (Dt) => {
|
|
6831
|
+
var jt = jh(), On = T(jt, !0);
|
|
6832
|
+
y(jt), P(
|
|
6833
6833
|
(na) => {
|
|
6834
|
-
q(
|
|
6834
|
+
q(jt, "title", na), Se(On, na);
|
|
6835
6835
|
},
|
|
6836
6836
|
[() => Be().split(".")[0]]
|
|
6837
|
-
), E(
|
|
6838
|
-
}, Vr = (
|
|
6839
|
-
var
|
|
6840
|
-
|
|
6841
|
-
|
|
6842
|
-
|
|
6837
|
+
), E(Dt, jt);
|
|
6838
|
+
}, Vr = (Dt) => {
|
|
6839
|
+
var jt = Fh();
|
|
6840
|
+
jt.__click = [
|
|
6841
|
+
Lh,
|
|
6842
|
+
je,
|
|
6843
6843
|
dn,
|
|
6844
6844
|
Be,
|
|
6845
6845
|
He
|
|
6846
6846
|
];
|
|
6847
|
-
var On = T(
|
|
6848
|
-
y(
|
|
6847
|
+
var On = T(jt, !0);
|
|
6848
|
+
y(jt), P(() => Se(On, Be())), E(Dt, jt);
|
|
6849
6849
|
};
|
|
6850
|
-
X(ar, (
|
|
6851
|
-
pt() ?
|
|
6850
|
+
X(ar, (Dt) => {
|
|
6851
|
+
pt() ? Dt(Zr) : Dt(Vr, !1);
|
|
6852
6852
|
});
|
|
6853
6853
|
}
|
|
6854
6854
|
var ir = O(ar, 2);
|
|
6855
6855
|
ir.__click = [
|
|
6856
|
-
|
|
6856
|
+
Rh,
|
|
6857
6857
|
K,
|
|
6858
6858
|
be,
|
|
6859
6859
|
Be,
|
|
6860
6860
|
Ne
|
|
6861
6861
|
], y(Ht), P(
|
|
6862
|
-
(
|
|
6863
|
-
ut(Ht, `${`attachment-item ${pt() ? "common" : ""}` ?? ""} svelte-1v0h2p0`), q(Ht, "title",
|
|
6862
|
+
(Dt, jt, On) => {
|
|
6863
|
+
ut(Ht, `${`attachment-item ${pt() ? "common" : ""}` ?? ""} svelte-1v0h2p0`), q(Ht, "title", Dt), ut(Pn, `${jt ?? ""} svelte-1v0h2p0`), q(Pn, "style", On), ut(ir, `${`remove-btn ${pt() ? "common" : ""}` ?? ""} svelte-1v0h2p0`);
|
|
6864
6864
|
},
|
|
6865
6865
|
[
|
|
6866
6866
|
() => tt(pt() ?? !1, Be()),
|
|
@@ -6868,7 +6868,7 @@ function Hi(t, e) {
|
|
|
6868
6868
|
() => Be().toLowerCase().endsWith(".tldv") ? "color: #1d1dff" : ""
|
|
6869
6869
|
]
|
|
6870
6870
|
), E(z, Ht);
|
|
6871
|
-
}), y(me), bs(me, (z) => m(
|
|
6871
|
+
}), y(me), bs(me, (z) => m(j, z), () => d(j));
|
|
6872
6872
|
var We = O(me, 2), qe = T(We);
|
|
6873
6873
|
{
|
|
6874
6874
|
var at = (z) => {
|
|
@@ -6905,7 +6905,7 @@ function Hi(t, e) {
|
|
|
6905
6905
|
}
|
|
6906
6906
|
var ee = O(qe, 2);
|
|
6907
6907
|
{
|
|
6908
|
-
var
|
|
6908
|
+
var Le = (z) => {
|
|
6909
6909
|
var ne = Nh();
|
|
6910
6910
|
ne.__click = function(...be) {
|
|
6911
6911
|
var Be;
|
|
@@ -6940,10 +6940,10 @@ function Hi(t, e) {
|
|
|
6940
6940
|
E(z, ne);
|
|
6941
6941
|
};
|
|
6942
6942
|
X(ee, (z) => {
|
|
6943
|
-
s() && f() ? z(
|
|
6943
|
+
s() && f() ? z(Le) : z(it, !1);
|
|
6944
6944
|
});
|
|
6945
6945
|
}
|
|
6946
|
-
y(We), y(Ue), y(
|
|
6946
|
+
y(We), y(Ue), y(De), P(
|
|
6947
6947
|
(z, ne, be) => {
|
|
6948
6948
|
q(ye, "placeholder", z), ut(fe, `${`btn plus-button ${d(A) ? "plus-button-active" : ""}` ?? ""} svelte-1v0h2p0`), q(fe, "aria-label", ne), q(fe, "title", ne), ut(Ve, `${`fa-solid ${d(A) ? "fa-xmark" : "fa-plus"}` ?? ""} svelte-1v0h2p0`), Se(ze, be);
|
|
6949
6949
|
},
|
|
@@ -6954,18 +6954,18 @@ function Hi(t, e) {
|
|
|
6954
6954
|
]
|
|
6955
6955
|
), en("keypress", ye, (z) => {
|
|
6956
6956
|
z.key === "Enter" && !z.shiftKey && (z.preventDefault(), Qe());
|
|
6957
|
-
}), ql(ye, () => d(w), (z) => m(w, z)),
|
|
6957
|
+
}), ql(ye, () => d(w), (z) => m(w, z)), Li(te, i), en("wheel", me, Xe), E(D, H);
|
|
6958
6958
|
};
|
|
6959
|
-
X(Ge, (
|
|
6959
|
+
X(Ge, (D) => {
|
|
6960
6960
|
var H;
|
|
6961
|
-
(H = u()) != null && H.state.blockChat ?
|
|
6961
|
+
(H = u()) != null && H.state.blockChat ? D(ke) : D(W, !1);
|
|
6962
6962
|
});
|
|
6963
6963
|
}
|
|
6964
6964
|
y(Me);
|
|
6965
6965
|
var Ie = O(Me, 2);
|
|
6966
6966
|
{
|
|
6967
|
-
var ce = (
|
|
6968
|
-
qi(
|
|
6967
|
+
var ce = (D) => {
|
|
6968
|
+
qi(D, {
|
|
6969
6969
|
get attachments() {
|
|
6970
6970
|
return o();
|
|
6971
6971
|
},
|
|
@@ -6986,82 +6986,82 @@ function Hi(t, e) {
|
|
|
6986
6986
|
}
|
|
6987
6987
|
});
|
|
6988
6988
|
};
|
|
6989
|
-
X(Ie, (
|
|
6990
|
-
d(S) &&
|
|
6989
|
+
X(Ie, (D) => {
|
|
6990
|
+
d(S) && D(ce);
|
|
6991
6991
|
});
|
|
6992
6992
|
}
|
|
6993
|
-
return
|
|
6993
|
+
return Ft(3, Me, () => tn, () => ({ duration: 300, delay: 200 })), E(t, Oe), oe({
|
|
6994
6994
|
get sendMessage() {
|
|
6995
6995
|
return n();
|
|
6996
6996
|
},
|
|
6997
|
-
set sendMessage(
|
|
6998
|
-
n(
|
|
6997
|
+
set sendMessage(D) {
|
|
6998
|
+
n(D), v();
|
|
6999
6999
|
},
|
|
7000
7000
|
get stopMessage() {
|
|
7001
7001
|
return r();
|
|
7002
7002
|
},
|
|
7003
|
-
set stopMessage(
|
|
7004
|
-
r(
|
|
7003
|
+
set stopMessage(D) {
|
|
7004
|
+
r(D), v();
|
|
7005
7005
|
},
|
|
7006
7006
|
get loading() {
|
|
7007
7007
|
return s();
|
|
7008
7008
|
},
|
|
7009
|
-
set loading(
|
|
7010
|
-
s(
|
|
7009
|
+
set loading(D) {
|
|
7010
|
+
s(D), v();
|
|
7011
7011
|
},
|
|
7012
7012
|
get languageSelected() {
|
|
7013
7013
|
return a();
|
|
7014
7014
|
},
|
|
7015
|
-
set languageSelected(
|
|
7016
|
-
a(
|
|
7015
|
+
set languageSelected(D) {
|
|
7016
|
+
a(D), v();
|
|
7017
7017
|
},
|
|
7018
7018
|
get modeSelected() {
|
|
7019
7019
|
return i();
|
|
7020
7020
|
},
|
|
7021
|
-
set modeSelected(
|
|
7022
|
-
i(
|
|
7021
|
+
set modeSelected(D) {
|
|
7022
|
+
i(D), v();
|
|
7023
7023
|
},
|
|
7024
7024
|
get attachments() {
|
|
7025
7025
|
return o();
|
|
7026
7026
|
},
|
|
7027
|
-
set attachments(
|
|
7028
|
-
o(
|
|
7027
|
+
set attachments(D) {
|
|
7028
|
+
o(D), v();
|
|
7029
7029
|
},
|
|
7030
7030
|
get userLevel() {
|
|
7031
7031
|
return c();
|
|
7032
7032
|
},
|
|
7033
|
-
set userLevel(
|
|
7034
|
-
c(
|
|
7033
|
+
set userLevel(D) {
|
|
7034
|
+
c(D), v();
|
|
7035
7035
|
},
|
|
7036
7036
|
get uploadFiles() {
|
|
7037
7037
|
return l();
|
|
7038
7038
|
},
|
|
7039
|
-
set uploadFiles(
|
|
7040
|
-
l(
|
|
7039
|
+
set uploadFiles(D) {
|
|
7040
|
+
l(D), v();
|
|
7041
7041
|
},
|
|
7042
7042
|
get actChat() {
|
|
7043
7043
|
return u();
|
|
7044
7044
|
},
|
|
7045
|
-
set actChat(
|
|
7046
|
-
u(
|
|
7045
|
+
set actChat(D) {
|
|
7046
|
+
u(D), v();
|
|
7047
7047
|
},
|
|
7048
7048
|
get streamMessage() {
|
|
7049
7049
|
return f();
|
|
7050
7050
|
},
|
|
7051
|
-
set streamMessage(
|
|
7052
|
-
f(
|
|
7051
|
+
set streamMessage(D) {
|
|
7052
|
+
f(D), v();
|
|
7053
7053
|
},
|
|
7054
7054
|
get uploadingFileName() {
|
|
7055
7055
|
return p();
|
|
7056
7056
|
},
|
|
7057
|
-
set uploadingFileName(
|
|
7058
|
-
p(
|
|
7057
|
+
set uploadingFileName(D) {
|
|
7058
|
+
p(D), v();
|
|
7059
7059
|
},
|
|
7060
7060
|
get uploadProgress() {
|
|
7061
7061
|
return h();
|
|
7062
7062
|
},
|
|
7063
|
-
set uploadProgress(
|
|
7064
|
-
h(
|
|
7063
|
+
set uploadProgress(D) {
|
|
7064
|
+
h(D), v();
|
|
7065
7065
|
}
|
|
7066
7066
|
});
|
|
7067
7067
|
}
|
|
@@ -7699,12 +7699,12 @@ function Sv(t, e, n, r) {
|
|
|
7699
7699
|
const s = t.resources.length, a = t.random ? Math.floor(Math.random() * s) : t.index;
|
|
7700
7700
|
let i;
|
|
7701
7701
|
if (t.random) {
|
|
7702
|
-
let
|
|
7703
|
-
for (i = [];
|
|
7704
|
-
const
|
|
7705
|
-
i.push(
|
|
7702
|
+
let j = t.resources.slice(0);
|
|
7703
|
+
for (i = []; j.length > 1; ) {
|
|
7704
|
+
const R = Math.floor(Math.random() * j.length);
|
|
7705
|
+
i.push(j[R]), j = j.slice(0, R).concat(j.slice(R + 1));
|
|
7706
7706
|
}
|
|
7707
|
-
i = i.concat(
|
|
7707
|
+
i = i.concat(j);
|
|
7708
7708
|
} else
|
|
7709
7709
|
i = t.resources.slice(a).concat(t.resources.slice(0, a));
|
|
7710
7710
|
const o = Date.now();
|
|
@@ -7714,12 +7714,12 @@ function Sv(t, e, n, r) {
|
|
|
7714
7714
|
f && (clearTimeout(f), f = null);
|
|
7715
7715
|
}
|
|
7716
7716
|
function x() {
|
|
7717
|
-
c === "pending" && (c = "aborted"), w(), p.forEach((
|
|
7718
|
-
|
|
7717
|
+
c === "pending" && (c = "aborted"), w(), p.forEach((j) => {
|
|
7718
|
+
j.status === "pending" && (j.status = "aborted");
|
|
7719
7719
|
}), p = [];
|
|
7720
7720
|
}
|
|
7721
|
-
function k(
|
|
7722
|
-
|
|
7721
|
+
function k(j, R) {
|
|
7722
|
+
R && (h = []), typeof j == "function" && h.push(j);
|
|
7723
7723
|
}
|
|
7724
7724
|
function b() {
|
|
7725
7725
|
return {
|
|
@@ -7733,18 +7733,18 @@ function Sv(t, e, n, r) {
|
|
|
7733
7733
|
};
|
|
7734
7734
|
}
|
|
7735
7735
|
function _() {
|
|
7736
|
-
c = "failed", h.forEach((
|
|
7737
|
-
|
|
7736
|
+
c = "failed", h.forEach((j) => {
|
|
7737
|
+
j(void 0, u);
|
|
7738
7738
|
});
|
|
7739
7739
|
}
|
|
7740
7740
|
function $() {
|
|
7741
|
-
p.forEach((
|
|
7742
|
-
|
|
7741
|
+
p.forEach((j) => {
|
|
7742
|
+
j.status === "pending" && (j.status = "aborted");
|
|
7743
7743
|
}), p = [];
|
|
7744
7744
|
}
|
|
7745
|
-
function A(
|
|
7746
|
-
const G =
|
|
7747
|
-
switch (p = p.filter((ge) => ge !==
|
|
7745
|
+
function A(j, R, M) {
|
|
7746
|
+
const G = R !== "success";
|
|
7747
|
+
switch (p = p.filter((ge) => ge !== j), c) {
|
|
7748
7748
|
case "pending":
|
|
7749
7749
|
break;
|
|
7750
7750
|
case "failed":
|
|
@@ -7754,7 +7754,7 @@ function Sv(t, e, n, r) {
|
|
|
7754
7754
|
default:
|
|
7755
7755
|
return;
|
|
7756
7756
|
}
|
|
7757
|
-
if (
|
|
7757
|
+
if (R === "abort") {
|
|
7758
7758
|
u = M, _();
|
|
7759
7759
|
return;
|
|
7760
7760
|
}
|
|
@@ -7763,7 +7763,7 @@ function Sv(t, e, n, r) {
|
|
|
7763
7763
|
return;
|
|
7764
7764
|
}
|
|
7765
7765
|
if (w(), $(), !t.random) {
|
|
7766
|
-
const ge = t.resources.indexOf(
|
|
7766
|
+
const ge = t.resources.indexOf(j.resource);
|
|
7767
7767
|
ge !== -1 && ge !== t.index && (t.index = ge);
|
|
7768
7768
|
}
|
|
7769
7769
|
c = "completed", h.forEach((ge) => {
|
|
@@ -7774,8 +7774,8 @@ function Sv(t, e, n, r) {
|
|
|
7774
7774
|
if (c !== "pending")
|
|
7775
7775
|
return;
|
|
7776
7776
|
w();
|
|
7777
|
-
const
|
|
7778
|
-
if (
|
|
7777
|
+
const j = i.shift();
|
|
7778
|
+
if (j === void 0) {
|
|
7779
7779
|
if (p.length) {
|
|
7780
7780
|
f = setTimeout(() => {
|
|
7781
7781
|
w(), c === "pending" && ($(), _());
|
|
@@ -7785,14 +7785,14 @@ function Sv(t, e, n, r) {
|
|
|
7785
7785
|
_();
|
|
7786
7786
|
return;
|
|
7787
7787
|
}
|
|
7788
|
-
const
|
|
7788
|
+
const R = {
|
|
7789
7789
|
status: "pending",
|
|
7790
|
-
resource:
|
|
7790
|
+
resource: j,
|
|
7791
7791
|
callback: (M, G) => {
|
|
7792
|
-
A(
|
|
7792
|
+
A(R, M, G);
|
|
7793
7793
|
}
|
|
7794
7794
|
};
|
|
7795
|
-
p.push(
|
|
7795
|
+
p.push(R), l++, f = setTimeout(S, t.rotate), n(j, e, R.callback);
|
|
7796
7796
|
}
|
|
7797
7797
|
return setTimeout(S), b;
|
|
7798
7798
|
}
|
|
@@ -7905,7 +7905,7 @@ function Aa(t, e) {
|
|
|
7905
7905
|
e(null);
|
|
7906
7906
|
}) : e(t);
|
|
7907
7907
|
}
|
|
7908
|
-
function
|
|
7908
|
+
function jv(t, e) {
|
|
7909
7909
|
t.iconsToLoad ? t.iconsToLoad = t.iconsToLoad.concat(e).sort() : t.iconsToLoad = e, t.iconsQueueFlag || (t.iconsQueueFlag = !0, setTimeout(() => {
|
|
7910
7910
|
t.iconsQueueFlag = !1;
|
|
7911
7911
|
const { provider: n, prefix: r } = t, s = t.iconsToLoad;
|
|
@@ -7951,7 +7951,7 @@ function Lv(t, e) {
|
|
|
7951
7951
|
});
|
|
7952
7952
|
}));
|
|
7953
7953
|
}
|
|
7954
|
-
const
|
|
7954
|
+
const Lv = (t, e) => {
|
|
7955
7955
|
const n = Tv(t, !0, Vi()), r = _v(n);
|
|
7956
7956
|
if (!r.pending.length) {
|
|
7957
7957
|
let c = !0;
|
|
@@ -7980,10 +7980,10 @@ const Fv = (t, e) => {
|
|
|
7980
7980
|
h.has(f) || (h.add(f), s[l][u].push(f));
|
|
7981
7981
|
}), a.forEach((c) => {
|
|
7982
7982
|
const l = s[c.provider][c.prefix];
|
|
7983
|
-
l.length &&
|
|
7983
|
+
l.length && jv(c, l);
|
|
7984
7984
|
}), e ? zv(e, r, a) : Ia;
|
|
7985
7985
|
};
|
|
7986
|
-
function
|
|
7986
|
+
function Fv(t, e) {
|
|
7987
7987
|
const n = {
|
|
7988
7988
|
...t
|
|
7989
7989
|
};
|
|
@@ -7993,9 +7993,9 @@ function Rv(t, e) {
|
|
|
7993
7993
|
}
|
|
7994
7994
|
return n;
|
|
7995
7995
|
}
|
|
7996
|
-
const
|
|
7997
|
-
function
|
|
7998
|
-
e.split(
|
|
7996
|
+
const Rv = /[\s,]+/;
|
|
7997
|
+
function Dv(t, e) {
|
|
7998
|
+
e.split(Rv).forEach((n) => {
|
|
7999
7999
|
switch (n.trim()) {
|
|
8000
8000
|
case "horizontal":
|
|
8001
8001
|
t.hFlip = !0;
|
|
@@ -8047,7 +8047,7 @@ function Nv(t) {
|
|
|
8047
8047
|
function Uv(t) {
|
|
8048
8048
|
return 'url("' + Nv(t) + '")';
|
|
8049
8049
|
}
|
|
8050
|
-
const
|
|
8050
|
+
const ja = {
|
|
8051
8051
|
...Qi,
|
|
8052
8052
|
inline: !1
|
|
8053
8053
|
}, qv = {
|
|
@@ -8061,25 +8061,25 @@ const La = {
|
|
|
8061
8061
|
"background-color": "currentColor"
|
|
8062
8062
|
}, to = {
|
|
8063
8063
|
"background-color": "transparent"
|
|
8064
|
-
},
|
|
8064
|
+
}, La = {
|
|
8065
8065
|
image: "var(--svg)",
|
|
8066
8066
|
repeat: "no-repeat",
|
|
8067
8067
|
size: "100% 100%"
|
|
8068
|
-
},
|
|
8068
|
+
}, Fa = {
|
|
8069
8069
|
"-webkit-mask": ys,
|
|
8070
8070
|
mask: ys,
|
|
8071
8071
|
background: to
|
|
8072
8072
|
};
|
|
8073
|
-
for (const t in
|
|
8074
|
-
const e =
|
|
8075
|
-
for (const n in
|
|
8076
|
-
e[t + "-" + n] =
|
|
8073
|
+
for (const t in Fa) {
|
|
8074
|
+
const e = Fa[t];
|
|
8075
|
+
for (const n in La)
|
|
8076
|
+
e[t + "-" + n] = La[n];
|
|
8077
8077
|
}
|
|
8078
8078
|
function Hv(t) {
|
|
8079
8079
|
return t + (t.match(/^[-0-9.]+$/) ? "px" : "");
|
|
8080
8080
|
}
|
|
8081
8081
|
function Yv(t, e) {
|
|
8082
|
-
const n =
|
|
8082
|
+
const n = Fv(ja, e), r = e.mode || "svg", s = r === "svg" ? { ...qv } : {};
|
|
8083
8083
|
t.body.indexOf("xlink:") === -1 && delete s["xmlns:xlink"];
|
|
8084
8084
|
let a = typeof e.style == "string" ? e.style : "";
|
|
8085
8085
|
for (let b in e) {
|
|
@@ -8098,7 +8098,7 @@ function Yv(t, e) {
|
|
|
8098
8098
|
n[b] = _ === !0 || _ === "true" || _ === 1;
|
|
8099
8099
|
break;
|
|
8100
8100
|
case "flip":
|
|
8101
|
-
typeof _ == "string" &&
|
|
8101
|
+
typeof _ == "string" && Dv(n, _);
|
|
8102
8102
|
break;
|
|
8103
8103
|
case "color":
|
|
8104
8104
|
a = a + (a.length > 0 && a.trim().slice(-1) !== ";" ? ";" : "") + "color: " + _ + "; ";
|
|
@@ -8113,7 +8113,7 @@ function Yv(t, e) {
|
|
|
8113
8113
|
default:
|
|
8114
8114
|
if (b.slice(0, 3) === "on:")
|
|
8115
8115
|
break;
|
|
8116
|
-
|
|
8116
|
+
ja[b] === void 0 && (s[b] = _);
|
|
8117
8117
|
}
|
|
8118
8118
|
}
|
|
8119
8119
|
const i = ov(t, n), o = i.attributes;
|
|
@@ -8191,19 +8191,19 @@ function Gv(t, e, n, r, s) {
|
|
|
8191
8191
|
if (!o)
|
|
8192
8192
|
return n && (!e.loading || e.loading.name !== t) && (a(), e.name = "", e.loading = {
|
|
8193
8193
|
name: t,
|
|
8194
|
-
abort:
|
|
8194
|
+
abort: Lv([i], r)
|
|
8195
8195
|
}), null;
|
|
8196
8196
|
a(), e.name !== t && (e.name = t, s && !e.destroyed && s(t));
|
|
8197
8197
|
const c = ["iconify"];
|
|
8198
8198
|
return i.prefix !== "" && c.push("iconify--" + i.prefix), i.provider !== "" && c.push("iconify--" + i.provider), { data: o, classes: c };
|
|
8199
8199
|
}
|
|
8200
|
-
function
|
|
8200
|
+
function Ra(t, e) {
|
|
8201
8201
|
return t ? Yv({
|
|
8202
8202
|
...Gr,
|
|
8203
8203
|
...t
|
|
8204
8204
|
}, e) : null;
|
|
8205
8205
|
}
|
|
8206
|
-
var Jv = /* @__PURE__ */ Sl("<svg><!></svg>"), Wv = /* @__PURE__ */
|
|
8206
|
+
var Jv = /* @__PURE__ */ Sl("<svg><!></svg>"), Wv = /* @__PURE__ */ L("<span></span>");
|
|
8207
8207
|
function rn(t, e) {
|
|
8208
8208
|
const n = Xl(e, [
|
|
8209
8209
|
"children",
|
|
@@ -8233,11 +8233,11 @@ function rn(t, e) {
|
|
|
8233
8233
|
}), Yl(() => {
|
|
8234
8234
|
Kr(r, d(r).destroyed = !0), d(r).loading && (d(r).loading.abort(), Kr(r, d(r).loading = null));
|
|
8235
8235
|
}), er(
|
|
8236
|
-
() => (d(a),
|
|
8236
|
+
() => (d(a), Dn(n), d(s), d(r), d(i), Ra),
|
|
8237
8237
|
() => {
|
|
8238
8238
|
d(a);
|
|
8239
8239
|
const p = !!n.ssr || d(s), h = Gv(n.icon, d(r), p, c, o);
|
|
8240
|
-
m(i, h ?
|
|
8240
|
+
m(i, h ? Ra(h.data, n) : null), d(i) && h.classes && Kr(i, d(i).attributes.class = (typeof n.class == "string" ? n.class + " " : "") + h.classes.join(" "));
|
|
8241
8241
|
}
|
|
8242
8242
|
), tr(), wt();
|
|
8243
8243
|
var l = yt(), u = ot(l);
|
|
@@ -8369,11 +8369,11 @@ const dt = {
|
|
|
8369
8369
|
paragraph: ao,
|
|
8370
8370
|
table: Gn,
|
|
8371
8371
|
text: eg
|
|
8372
|
-
},
|
|
8372
|
+
}, Da = _e("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", sr).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Jr).getRegex(), ag = {
|
|
8373
8373
|
...Qs,
|
|
8374
8374
|
lheading: Kv,
|
|
8375
|
-
table:
|
|
8376
|
-
paragraph: _e(Zs).replace("hr", sr).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table",
|
|
8375
|
+
table: Da,
|
|
8376
|
+
paragraph: _e(Zs).replace("hr", sr).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", Da).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Jr).getRegex()
|
|
8377
8377
|
}, ig = {
|
|
8378
8378
|
...Qs,
|
|
8379
8379
|
html: _e(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", Xs).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),
|
|
@@ -8678,12 +8678,12 @@ ${f}` : f;
|
|
|
8678
8678
|
`, 1)[0], w = !p.trim(), x = 0;
|
|
8679
8679
|
if (this.options.pedantic ? (x = 2, f = p.trimStart()) : w ? x = n[1].length + 1 : (x = n[2].search(this.rules.other.nonSpaceChar), x = x > 4 ? 1 : x, f = p.slice(x), x += n[1].length), w && this.rules.other.blankLine.test(h) && (u += h + `
|
|
8680
8680
|
`, e = e.substring(h.length + 1), l = !0), !l) {
|
|
8681
|
-
const _ = this.rules.other.nextBulletRegex(x), $ = this.rules.other.hrRegex(x), A = this.rules.other.fencesBeginRegex(x), S = this.rules.other.headingBeginRegex(x),
|
|
8681
|
+
const _ = this.rules.other.nextBulletRegex(x), $ = this.rules.other.hrRegex(x), A = this.rules.other.fencesBeginRegex(x), S = this.rules.other.headingBeginRegex(x), j = this.rules.other.htmlBeginRegex(x);
|
|
8682
8682
|
for (; e; ) {
|
|
8683
|
-
const
|
|
8683
|
+
const R = e.split(`
|
|
8684
8684
|
`, 1)[0];
|
|
8685
8685
|
let M;
|
|
8686
|
-
if (h =
|
|
8686
|
+
if (h = R, this.options.pedantic ? (h = h.replace(this.rules.other.listReplaceNesting, " "), M = h) : M = h.replace(this.rules.other.tabCharGlobal, " "), A.test(h) || S.test(h) || j.test(h) || _.test(h) || $.test(h))
|
|
8687
8687
|
break;
|
|
8688
8688
|
if (M.search(this.rules.other.nonSpaceChar) >= x || !h.trim())
|
|
8689
8689
|
f += `
|
|
@@ -8694,8 +8694,8 @@ ${f}` : f;
|
|
|
8694
8694
|
f += `
|
|
8695
8695
|
` + h;
|
|
8696
8696
|
}
|
|
8697
|
-
!w && !h.trim() && (w = !0), u +=
|
|
8698
|
-
`, e = e.substring(
|
|
8697
|
+
!w && !h.trim() && (w = !0), u += R + `
|
|
8698
|
+
`, e = e.substring(R.length + 1), p = M.slice(x);
|
|
8699
8699
|
}
|
|
8700
8700
|
}
|
|
8701
8701
|
a.loose || (o ? a.loose = !0 : this.rules.other.doubleBlankLine.test(u) && (o = !0));
|
|
@@ -9260,7 +9260,7 @@ class St {
|
|
|
9260
9260
|
return n;
|
|
9261
9261
|
}
|
|
9262
9262
|
}
|
|
9263
|
-
class
|
|
9263
|
+
class jr {
|
|
9264
9264
|
// set by the parser
|
|
9265
9265
|
constructor(e) {
|
|
9266
9266
|
I(this, "options");
|
|
@@ -9430,7 +9430,7 @@ class Et {
|
|
|
9430
9430
|
I(this, "options");
|
|
9431
9431
|
I(this, "renderer");
|
|
9432
9432
|
I(this, "textRenderer");
|
|
9433
|
-
this.options = e || kn, this.options.renderer = this.options.renderer || new
|
|
9433
|
+
this.options = e || kn, this.options.renderer = this.options.renderer || new jr(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new ta();
|
|
9434
9434
|
}
|
|
9435
9435
|
/**
|
|
9436
9436
|
* Static Parse Method
|
|
@@ -9637,7 +9637,7 @@ class Ig {
|
|
|
9637
9637
|
I(this, "parse", this.parseMarkdown(!0));
|
|
9638
9638
|
I(this, "parseInline", this.parseMarkdown(!1));
|
|
9639
9639
|
I(this, "Parser", Et);
|
|
9640
|
-
I(this, "Renderer",
|
|
9640
|
+
I(this, "Renderer", jr);
|
|
9641
9641
|
I(this, "TextRenderer", ta);
|
|
9642
9642
|
I(this, "Lexer", St);
|
|
9643
9643
|
I(this, "Tokenizer", Ar);
|
|
@@ -9698,7 +9698,7 @@ class Ig {
|
|
|
9698
9698
|
}
|
|
9699
9699
|
"childTokens" in a && a.childTokens && (n.childTokens[a.name] = a.childTokens);
|
|
9700
9700
|
}), s.extensions = n), r.renderer) {
|
|
9701
|
-
const a = this.defaults.renderer || new
|
|
9701
|
+
const a = this.defaults.renderer || new jr(this.defaults);
|
|
9702
9702
|
for (const i in r.renderer) {
|
|
9703
9703
|
if (!(i in a))
|
|
9704
9704
|
throw new Error(`renderer '${i}' does not exist`);
|
|
@@ -9821,7 +9821,7 @@ xe.walkTokens = function(t, e) {
|
|
|
9821
9821
|
xe.parseInline = mn.parseInline;
|
|
9822
9822
|
xe.Parser = Et;
|
|
9823
9823
|
xe.parser = Et.parse;
|
|
9824
|
-
xe.Renderer =
|
|
9824
|
+
xe.Renderer = jr;
|
|
9825
9825
|
xe.TextRenderer = ta;
|
|
9826
9826
|
xe.Lexer = St;
|
|
9827
9827
|
xe.lexer = St.lex;
|
|
@@ -9848,7 +9848,7 @@ const Ag = async (t, e, n) => {
|
|
|
9848
9848
|
}
|
|
9849
9849
|
}
|
|
9850
9850
|
};
|
|
9851
|
-
var
|
|
9851
|
+
var jg = (t, e, n) => e(d(n)), Lg = /* @__PURE__ */ L('<i class="fa-solid fa-spinner fa-spin svelte-qsu1yu"></i>'), Fg = /* @__PURE__ */ L("<i></i>"), Rg = /* @__PURE__ */ L('<div class="document-path svelte-qsu1yu"> </div>'), Dg = /* @__PURE__ */ L('<button><!> <div class="document-info svelte-qsu1yu"><span class="document-title svelte-qsu1yu"> </span> <!></div></button>'), Pg = /* @__PURE__ */ L('<div class="sources-expanded svelte-qsu1yu"><div class="sources-header svelte-qsu1yu"></div> <div class="sources-list svelte-qsu1yu"></div> <div class="sources-footer svelte-qsu1yu"><button class="copy-sources-btn svelte-qsu1yu"><i class="fa-solid fa-copy svelte-qsu1yu"></i> <span> </span></button></div></div>'), Og = /* @__PURE__ */ L('<div class="sources-container svelte-qsu1yu"><!></div>'), Mg = /* @__PURE__ */ L('<div class="message-attachments"><!></div>');
|
|
9852
9852
|
const Ng = {
|
|
9853
9853
|
hash: "svelte-qsu1yu",
|
|
9854
9854
|
code: ".sources-container.svelte-qsu1yu {display:flex;flex-direction:column;width:100%;}.sources-expanded.svelte-qsu1yu {background:rgba(255, 255, 255, 0.2);border-radius:0 0 8px 0;box-shadow:0 2px 8px rgba(0, 0, 0, 0.15);margin-top:-10px;overflow:hidden;width:80%;min-width:350px;}.sources-header.svelte-qsu1yu {height:10px;}.sources-footer.svelte-qsu1yu {display:flex;justify-content:flex-end;align-items:center;padding:0 10px 10px 10px;}.sources-title.svelte-qsu1yu {margin:0;font-size:16px;font-weight:600;color:#333;}.copy-sources-btn.svelte-qsu1yu {display:flex;align-items:center;gap:6px;padding:8px 12px;background:rgba(255, 255, 255, 0.9);color:#295dcf;border:1px solid rgba(255, 255, 255, 0.3);border-radius:8px;cursor:pointer;font-size:13px;transition:all 0.2s;white-space:nowrap;box-shadow:0 2px 4px rgba(0, 0, 0, 0.1);}.copy-sources-btn.svelte-qsu1yu:hover {background:white;box-shadow:0 4px 8px rgba(0, 0, 0, 0.15);transform:translateY(-1px);}.copy-sources-btn.svelte-qsu1yu i:where(.svelte-qsu1yu) {font-size:12px;}.sources-list.svelte-qsu1yu {display:flex;flex-wrap:wrap;gap:10px;padding:10px;}.dropdown-option.svelte-qsu1yu {display:flex;align-items:center;flex:0 1 calc(50% - 5px);min-width:250px;padding:12px 15px;border:1px solid rgba(255, 255, 255, 0.5);border-radius:8px;background:white;color:#333;cursor:pointer;transition:all 0.2s;box-shadow:0 2px 4px rgba(0, 0, 0, 0.1);}.dropdown-option.svelte-qsu1yu:disabled {cursor:wait;opacity:0.7;}.dropdown-option.common.svelte-qsu1yu {color:#8fa1c9;cursor:default;opacity:0.8;}.dropdown-option.svelte-qsu1yu:hover {background:white;color:#295dcf;border-color:rgba(41, 93, 207, 0.3);box-shadow:0 4px 8px rgba(0, 0, 0, 0.15);transform:translateY(-1px);}.dropdown-option.common.svelte-qsu1yu:hover {background:white;color:#8fa1c9;border-color:rgba(255, 255, 255, 0.5);box-shadow:0 2px 4px rgba(0, 0, 0, 0.1);transform:none;}.dropdown-option.svelte-qsu1yu i:where(.svelte-qsu1yu) {margin-right:10px;width:16px;text-align:center;}.dropdown-option.svelte-qsu1yu span:where(.svelte-qsu1yu) {font-size:14px;}.document-info.svelte-qsu1yu {display:flex;flex-direction:column;align-items:flex-start;flex:1;}.document-title.svelte-qsu1yu {font-weight:500;margin-bottom:4px;text-align:left;word-break:break-word;}.document-path.svelte-qsu1yu {font-size:0.85em;color:#6c757d;text-align:left;word-break:break-word;}"
|
|
@@ -9875,8 +9875,8 @@ function Ts(t, e) {
|
|
|
9875
9875
|
const A = ur(b, $);
|
|
9876
9876
|
o(A, !0);
|
|
9877
9877
|
try {
|
|
9878
|
-
const S = await kt.downloadForgePdf(b, _),
|
|
9879
|
-
|
|
9878
|
+
const S = await kt.downloadForgePdf(b, _), j = window.URL.createObjectURL(S), R = document.createElement("a");
|
|
9879
|
+
R.href = j, R.download = `${$.split(".")[0]}.pdf`, document.body.appendChild(R), R.click(), R.remove(), window.URL.revokeObjectURL(j);
|
|
9880
9880
|
} catch (S) {
|
|
9881
9881
|
console.error("Errore durante il download del PDF:", S);
|
|
9882
9882
|
} finally {
|
|
@@ -9886,8 +9886,8 @@ function Ts(t, e) {
|
|
|
9886
9886
|
const A = ur(b, $);
|
|
9887
9887
|
o(A, !0);
|
|
9888
9888
|
try {
|
|
9889
|
-
const S = await kt.getForgeSingle(b, _),
|
|
9890
|
-
window.open(
|
|
9889
|
+
const S = await kt.getForgeSingle(b, _), j = S.additionalReference || S.url;
|
|
9890
|
+
window.open(j, "_blank");
|
|
9891
9891
|
} catch (S) {
|
|
9892
9892
|
console.error("Errore durante il recupero del link:", S);
|
|
9893
9893
|
} finally {
|
|
@@ -9910,18 +9910,18 @@ function Ts(t, e) {
|
|
|
9910
9910
|
filename: $,
|
|
9911
9911
|
gendoc_id: A,
|
|
9912
9912
|
isCommon: S,
|
|
9913
|
-
commonType:
|
|
9913
|
+
commonType: j
|
|
9914
9914
|
} = b;
|
|
9915
9915
|
if (!S) {
|
|
9916
9916
|
await l(_, $, A);
|
|
9917
9917
|
return;
|
|
9918
9918
|
}
|
|
9919
|
-
if (
|
|
9919
|
+
if (j === "trascrizione") {
|
|
9920
9920
|
await p(_, $);
|
|
9921
9921
|
return;
|
|
9922
9922
|
}
|
|
9923
|
-
const
|
|
9924
|
-
!qp($) ||
|
|
9923
|
+
const R = Oi($);
|
|
9924
|
+
!qp($) || R === "mp3" ? await f(_, j || "", $) : await u(_, j || "", $);
|
|
9925
9925
|
};
|
|
9926
9926
|
var w = Mg(), x = T(w);
|
|
9927
9927
|
{
|
|
@@ -9929,21 +9929,21 @@ function Ts(t, e) {
|
|
|
9929
9929
|
var _ = Og(), $ = T(_);
|
|
9930
9930
|
{
|
|
9931
9931
|
var A = (S) => {
|
|
9932
|
-
var
|
|
9933
|
-
st(
|
|
9934
|
-
var ae =
|
|
9935
|
-
const Xe = /* @__PURE__ */ Ze(() => ur(d(Ce).external_id, d(Ce).filename)), Qe = /* @__PURE__ */ Ze(() => Gp(d(Ce))), ct = /* @__PURE__ */ Ze(() => d(a)[d(Xe)]), ft = /* @__PURE__ */ Ze(() => Wp(d(Ce), s())),
|
|
9936
|
-
ae.__click = [
|
|
9932
|
+
var j = Pg(), R = O(T(j), 2);
|
|
9933
|
+
st(R, 21, r, rt, (Ee, Ce) => {
|
|
9934
|
+
var ae = Dg();
|
|
9935
|
+
const Xe = /* @__PURE__ */ Ze(() => ur(d(Ce).external_id, d(Ce).filename)), Qe = /* @__PURE__ */ Ze(() => Gp(d(Ce))), ct = /* @__PURE__ */ Ze(() => d(a)[d(Xe)]), ft = /* @__PURE__ */ Ze(() => Wp(d(Ce), s())), F = /* @__PURE__ */ Ze(() => Mi(d(Ce))), K = /* @__PURE__ */ Ze(() => Ni(d(Ce))), je = /* @__PURE__ */ Ze(() => d(Ce).isCommon ? rr(d(Ce).commonType).name : /* @__PURE__ */ xa());
|
|
9936
|
+
ae.__click = [jg, h, Ce];
|
|
9937
9937
|
var Pe = T(ae);
|
|
9938
9938
|
{
|
|
9939
9939
|
var Ye = (ce) => {
|
|
9940
|
-
var
|
|
9941
|
-
E(ce,
|
|
9940
|
+
var D = Lg();
|
|
9941
|
+
E(ce, D);
|
|
9942
9942
|
}, Oe = (ce) => {
|
|
9943
|
-
var
|
|
9943
|
+
var D = Fg();
|
|
9944
9944
|
P(() => {
|
|
9945
|
-
ut(
|
|
9946
|
-
}), E(ce,
|
|
9945
|
+
ut(D, qr(d(Qe).icon), "svelte-qsu1yu"), q(D, "style", d(Qe).color ? `color: ${d(Qe).color}` : "");
|
|
9946
|
+
}), E(ce, D);
|
|
9947
9947
|
};
|
|
9948
9948
|
X(Pe, (ce) => {
|
|
9949
9949
|
d(ct) ? ce(Ye) : ce(Oe, !1);
|
|
@@ -9954,8 +9954,8 @@ function Ts(t, e) {
|
|
|
9954
9954
|
var W = O(Ge, 2);
|
|
9955
9955
|
{
|
|
9956
9956
|
var Ie = (ce) => {
|
|
9957
|
-
var
|
|
9958
|
-
y(
|
|
9957
|
+
var D = Rg(), H = T(D, !0);
|
|
9958
|
+
y(D), P(() => Se(H, d(K))), E(ce, D);
|
|
9959
9959
|
};
|
|
9960
9960
|
X(W, (ce) => {
|
|
9961
9961
|
d(Ce).isCommon || ce(Ie);
|
|
@@ -9963,24 +9963,24 @@ function Ts(t, e) {
|
|
|
9963
9963
|
}
|
|
9964
9964
|
y(Me), y(ae), P(
|
|
9965
9965
|
(ce) => {
|
|
9966
|
-
ut(ae, `${`dropdown-option ${d(ft) ? "common" : ""}` ?? ""} svelte-qsu1yu`), q(ae, "aria-label", ce), q(ae, "title", d(
|
|
9966
|
+
ut(ae, `${`dropdown-option ${d(ft) ? "common" : ""}` ?? ""} svelte-qsu1yu`), q(ae, "aria-label", ce), q(ae, "title", d(je)), ae.disabled = d(ct), Se(ke, d(F));
|
|
9967
9967
|
},
|
|
9968
9968
|
[() => /* @__PURE__ */ xa()]
|
|
9969
9969
|
), E(Ee, ae);
|
|
9970
|
-
}), y(
|
|
9971
|
-
var M = O(
|
|
9970
|
+
}), y(R);
|
|
9971
|
+
var M = O(R, 2), G = T(M);
|
|
9972
9972
|
G.__click = [
|
|
9973
9973
|
Ag,
|
|
9974
9974
|
r,
|
|
9975
9975
|
c
|
|
9976
9976
|
];
|
|
9977
9977
|
var ge = O(T(G), 2), tt = T(ge, !0);
|
|
9978
|
-
y(ge), y(G), y(M), y(
|
|
9978
|
+
y(ge), y(G), y(M), y(j), P(
|
|
9979
9979
|
(Ee) => {
|
|
9980
9980
|
q(G, "aria-label", Ee), q(G, "title", Ee), Se(tt, d(i));
|
|
9981
9981
|
},
|
|
9982
9982
|
[() => /* @__PURE__ */ rs()]
|
|
9983
|
-
),
|
|
9983
|
+
), Ft(3, j, () => rc, () => ({ duration: 300 })), E(S, j);
|
|
9984
9984
|
};
|
|
9985
9985
|
X($, (S) => {
|
|
9986
9986
|
n() && S(A);
|
|
@@ -10028,38 +10028,39 @@ le(
|
|
|
10028
10028
|
const Ug = (t, e, n) => {
|
|
10029
10029
|
d(e).pause(), m(n, !1);
|
|
10030
10030
|
};
|
|
10031
|
-
var qg = /* @__PURE__ */
|
|
10031
|
+
var qg = /* @__PURE__ */ L('<div class="user-attachment-badge svelte-1f3j9k4"><i class="fa-solid fa-paperclip svelte-1f3j9k4"></i> <span class="svelte-1f3j9k4"> </span></div>'), Bg = /* @__PURE__ */ L('<div class="user-attachments-list svelte-1f3j9k4"></div>'), Hg = /* @__PURE__ */ L('<button aria-label="Pause message" class="btn btn-sm btn-primary aks-btn-rounded play-button svelte-1f3j9k4"><i class="fa-solid fa-pause"></i></button>'), Yg = (t, e, n) => e(d(n)), Gg = /* @__PURE__ */ L('<button aria-label="Play message" class="btn btn-sm btn-primary aks-btn-rounded play-button svelte-1f3j9k4"><i class="fa-solid fa-play"></i></button>'), Jg = /* @__PURE__ */ L('<div class="agent-badge svelte-1f3j9k4" title="Agente utilizzato"><i class="fa-solid fa-robot svelte-1f3j9k4"></i> <span> </span></div>'), Wg = /* @__PURE__ */ L('<button class="sources-toggle-btn svelte-1f3j9k4" aria-label="Visualizza fonti"><span> </span> <i></i></button>'), Zg = /* @__PURE__ */ L('<i class="fa-solid fa-check"></i>'), Vg = /* @__PURE__ */ L('<i class="fa-regular fa-copy"></i>'), Xg = /* @__PURE__ */ L('<div><!> <div class="w-100 d-flex"></div> <div class="message-plus-play svelte-1f3j9k4"><div><div class="message-content svelte-1f3j9k4"><!></div></div> <!></div> <div class="w-100 d-flex"><div class="attachments-container svelte-1f3j9k4"><!> <div class="d-flex gap-1"><!> <!> <button aria-label="Copy message" class="copy-button svelte-1f3j9k4"><!></button></div></div></div></div>'), Qg = /* @__PURE__ */ L('<div><div class="message-plus-play svelte-1f3j9k4"><div class="message-received svelte-1f3j9k4"><div class="message-content svelte-1f3j9k4"><!></div></div> <!></div> <div class="w-100 d-flex" style="justify-content: flex-start"><div class="attachments-container svelte-1f3j9k4"><!> <div class="d-flex gap-1" style="width: 100%; justify-content: flex-start; align-items: flex-start;"><div class="agent-badge svelte-1f3j9k4" title="Agente utilizzato"><i class="fa-solid fa-robot svelte-1f3j9k4"></i> <span> </span></div></div></div></div></div>'), Kg = /* @__PURE__ */ L('<div class="loading svelte-1f3j9k4"><!></div>'), em = /* @__PURE__ */ L('<div class="alert alert-danger"> </div>'), tm = /* @__PURE__ */ L('<div class="messages-wrapper svelte-1f3j9k4"><div class="empty-placeholder svelte-1f3j9k4"></div> <!> <!> <!></div>'), nm = /* @__PURE__ */ L('<div class="loading-placeholder svelte-1f3j9k4"><!></div>'), rm = /* @__PURE__ */ L('<div class="chat-body svelte-1f3j9k4"><!> <!></div>');
|
|
10032
10032
|
const sm = {
|
|
10033
|
-
hash: "svelte-
|
|
10034
|
-
code: `.empty-placeholder.svelte-
|
|
10033
|
+
hash: "svelte-1f3j9k4",
|
|
10034
|
+
code: `.empty-placeholder.svelte-1f3j9k4 {height:100%;}.messages-wrapper.svelte-1f3j9k4 {display:flex;flex-direction:column;gap:10px;min-height:100%;}.loading-placeholder.svelte-1f3j9k4 {display:flex;justify-content:center;align-items:center;height:100%;}.chat-body.svelte-1f3j9k4 {display:flex;flex-direction:column;gap:10px;overflow-y:auto;height:100%;padding:10px;}.chat-body.svelte-1f3j9k4::-webkit-scrollbar {width:8px;}.chat-body.svelte-1f3j9k4 * {--bs-table-color: #333333;--bs-table-striped-color: #333333;--bs-link-color-rgb: 41, 93, 207;}.chat-body.svelte-1f3j9k4 li,\r
|
|
10035
|
+
.chat-body.svelte-1f3j9k4 strong {color:black;}.chat-body.svelte-1f3j9k4 table {min-width:auto;}.chat-body.svelte-1f3j9k4::-webkit-scrollbar-track {background:rgba(255, 255, 255, 0.2); /* Sfondo semi-trasparente */border-radius:10px;}.chat-body.svelte-1f3j9k4::-webkit-scrollbar-thumb {background:rgba(\r
|
|
10035
10036
|
255,\r
|
|
10036
10037
|
255,\r
|
|
10037
10038
|
255,\r
|
|
10038
10039
|
0.5\r
|
|
10039
|
-
); /* Colore del "pollice" della scrollbar */border-radius:10px;transition:0.3s;}.chat-body.svelte-
|
|
10040
|
+
); /* Colore del "pollice" della scrollbar */border-radius:10px;transition:0.3s;}.chat-body.svelte-1f3j9k4::-webkit-scrollbar-thumb:hover {background:rgba(255, 255, 255, 0.8); /* Più visibile quando hoverata */}.message-sent.svelte-1f3j9k4 {display:flex;background:#c8d9ff;border-radius:10px;border-bottom-right-radius:0;width:fit-content;max-width:80%;margin-left:auto;transition:200ms;z-index:1000;user-select:text;}.message-received.svelte-1f3j9k4 {background:white;border-radius:10px;border-bottom-left-radius:0;width:fit-content;max-width:80%;transition:200ms;position:relative;z-index:1000;user-select:text;}.message-content.svelte-1f3j9k4 {padding:10px;font-size:16px;}.attachments-container.svelte-1f3j9k4 {display:flex;flex-direction:column;width:80%;min-height:35px;}.play-button.svelte-1f3j9k4 {transition:opacity 200ms;opacity:0;background-color:white;color:#295dcf;transition:200ms;}.play-button.svelte-1f3j9k4:hover {background-color:#e9ecef;translate:0 -1px;}.sources-toggle-btn.svelte-1f3j9k4 {display:flex;align-items:center;justify-content:space-between;padding:8px 12px;background:rgba(255, 255, 255, 0.2);color:white;border-radius:0 0 8px 8px;cursor:pointer;font-size:14px;transition:all 200ms;width:fit-content;gap:10px;box-shadow:0 2px 4px rgba(0, 0, 0, 0.15);border:none;height:30px;}.sources-toggle-btn.svelte-1f3j9k4:hover {background:rgba(255, 255, 255, 0.25);border-color:rgba(255, 255, 255, 0.5);}.sources-toggle-btn.svelte-1f3j9k4 i:where(.svelte-1f3j9k4) {font-size:12px;transition:transform 200ms;}.copy-button.svelte-1f3j9k4 {transition:opacity 200ms;background-color:rgba(255, 255, 255, 0.2);box-shadow:0 2px 4px rgba(0, 0, 0, 0.1);border:none;color:white;transition:200ms;border-radius:0 0 8px 8px;height:30px;width:30px;padding:0;font-size:18px;margin:0;}.copy-button.svelte-1f3j9k4:hover {background:rgba(255, 255, 255, 0.25);border-color:rgba(255, 255, 255, 0.5);}.agent-badge.svelte-1f3j9k4 {display:flex;align-items:center;gap:6px;padding:6px 12px;background:rgba(60, 60, 60, 0.75);color:white;border-radius:0 0 8px 8px;font-size:12px;font-weight:500;width:fit-content;box-shadow:0 2px 4px rgba(0, 0, 0, 0.15);backdrop-filter:blur(5px);cursor:default;pointer-events:none;height:30px;}.agent-badge.svelte-1f3j9k4 i:where(.svelte-1f3j9k4) {font-size:14px;opacity:0.9;}.user-attachments-list.svelte-1f3j9k4 {display:flex;flex-wrap:wrap;gap:6px;margin-bottom:5px;justify-content:flex-end;}.user-attachment-badge.svelte-1f3j9k4 {display:flex;align-items:center;gap:5px;padding:4px 10px;background:rgba(255, 255, 255, 0.2);border:1px solid rgba(200, 217, 255, 0.5);color:white;border-radius:12px;font-size:11px;font-weight:500;width:fit-content;max-width:150px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;box-shadow:0 1px 3px rgba(0, 0, 0, 0.1);}.user-attachment-badge.svelte-1f3j9k4 i:where(.svelte-1f3j9k4) {font-size:10px;opacity:0.8;flex-shrink:0;}.user-attachment-badge.svelte-1f3j9k4 span:where(.svelte-1f3j9k4) {overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.message-plus-play.svelte-1f3j9k4 {display:flex;justify-content:flex-start;align-items:center;gap:5px;}.message-plus-play.svelte-1f3j9k4:hover .play-button:where(.svelte-1f3j9k4) {opacity:1;}.loading.svelte-1f3j9k4 {display:flex;justify-content:start;align-items:center;padding-left:10px;}`
|
|
10040
10041
|
};
|
|
10041
10042
|
function ho(t, e) {
|
|
10042
10043
|
ie(e, !0), de(t, sm);
|
|
10043
|
-
let n = g(e, "messages", 15), r = g(e, "loading", 15), s = g(e, "error", 15), a = g(e, "streamMessage", 15), i = g(e, "streamAttachments", 15), o = g(e, "streamedAgent", 15), c = g(e, "languageSelected", 15), l = g(e, "userLevel", 15), u = g(e, "loadingChat", 15), f = Y(void 0), p = Y(C(new Audio())), h = Y(!1), w = Y(C({})), x = Y(C({})), k = Y(C(n())), b = Y(null), _ = Y(!0), $ = Y(!1), A = Y(!1), S = Y(C(u())),
|
|
10044
|
-
const
|
|
10044
|
+
let n = g(e, "messages", 15), r = g(e, "loading", 15), s = g(e, "error", 15), a = g(e, "streamMessage", 15), i = g(e, "streamAttachments", 15), o = g(e, "streamedAgent", 15), c = g(e, "languageSelected", 15), l = g(e, "userLevel", 15), u = g(e, "loadingChat", 15), f = Y(void 0), p = Y(C(new Audio())), h = Y(!1), w = Y(C({})), x = Y(C({})), k = Y(C(n())), b = Y(null), _ = Y(!0), $ = Y(!1), A = Y(!1), S = Y(C(u())), j = Y(!1);
|
|
10045
|
+
const R = async () => {
|
|
10045
10046
|
await es(), d(f) && (d(f).scrollTop = d(f).scrollHeight);
|
|
10046
10047
|
}, M = async () => {
|
|
10047
10048
|
await es(), m(_, !1);
|
|
10048
10049
|
}, G = async () => {
|
|
10049
|
-
d(
|
|
10050
|
+
d(j) || (m(j, !0), await es(), m($, !1));
|
|
10050
10051
|
}, ge = () => {
|
|
10051
10052
|
d(A) && m($, !0);
|
|
10052
10053
|
}, tt = () => {
|
|
10053
|
-
d(A) && (m(k, C(d(b) ?? n())), m(b, null), m(_, !0), m(A, !1), m(
|
|
10054
|
-
}, Ee = (
|
|
10055
|
-
Us.getAudio(
|
|
10054
|
+
d(A) && (m(k, C(d(b) ?? n())), m(b, null), m(_, !0), m(A, !1), m(j, !1));
|
|
10055
|
+
}, Ee = (F) => {
|
|
10056
|
+
Us.getAudio(F.content, c()).then((K) => {
|
|
10056
10057
|
m(p, C(new Audio(K))), d(p).play(), m(h, !0), d(p).onended = () => {
|
|
10057
10058
|
m(h, !1);
|
|
10058
10059
|
};
|
|
10059
10060
|
});
|
|
10060
|
-
}, Ce = async (
|
|
10061
|
-
const
|
|
10062
|
-
Pe.innerHTML =
|
|
10061
|
+
}, Ce = async (F, K) => {
|
|
10062
|
+
const je = F.html ?? xe.parseInline(F.content), Pe = document.createElement("div");
|
|
10063
|
+
Pe.innerHTML = je;
|
|
10063
10064
|
const Ye = Pe.innerHTML, Oe = Pe.textContent || Pe.innerText || "";
|
|
10064
10065
|
try {
|
|
10065
10066
|
const Me = new Blob([Ye], { type: "text/html" }), Ge = new Blob([Oe], { type: "text/plain" }), ke = new ClipboardItem({ "text/html": Me, "text/plain": Ge });
|
|
@@ -10083,44 +10084,44 @@ function ho(t, e) {
|
|
|
10083
10084
|
}
|
|
10084
10085
|
}
|
|
10085
10086
|
};
|
|
10086
|
-
|
|
10087
|
+
Lt(() => {
|
|
10087
10088
|
u() && !d(S) ? (m(A, !0), m(b, null), m($, !1), m(_, !0), M()) : !u() && d(S) && (m(b, C(n())), d($) && G()), m(S, C(u()));
|
|
10088
|
-
}),
|
|
10089
|
+
}), Lt(() => {
|
|
10089
10090
|
d(A) && d($) && !u() && G();
|
|
10090
|
-
}),
|
|
10091
|
+
}), Lt(() => {
|
|
10091
10092
|
d(A) ? m(b, C(n())) : u() || m(k, C(n()));
|
|
10092
|
-
}),
|
|
10093
|
-
a(), d(k),
|
|
10093
|
+
}), Lt(() => {
|
|
10094
|
+
a(), d(k), R();
|
|
10094
10095
|
});
|
|
10095
10096
|
var ae = rm(), Xe = T(ae);
|
|
10096
10097
|
{
|
|
10097
|
-
var Qe = (
|
|
10098
|
-
var K = tm(),
|
|
10099
|
-
st(
|
|
10100
|
-
var ce = yt(),
|
|
10098
|
+
var Qe = (F) => {
|
|
10099
|
+
var K = tm(), je = O(T(K), 2);
|
|
10100
|
+
st(je, 17, () => d(k), rt, (ke, W, Ie) => {
|
|
10101
|
+
var ce = yt(), D = ot(ce);
|
|
10101
10102
|
{
|
|
10102
10103
|
var H = (re) => {
|
|
10103
|
-
var ye = Xg(),
|
|
10104
|
+
var ye = Xg(), De = T(ye);
|
|
10104
10105
|
{
|
|
10105
10106
|
var Ue = (se) => {
|
|
10106
10107
|
var ee = Bg();
|
|
10107
|
-
st(ee, 21, () => d(W).attachments, rt, (
|
|
10108
|
+
st(ee, 21, () => d(W).attachments, rt, (Le, it) => {
|
|
10108
10109
|
var z = qg(), ne = O(T(z), 2), be = T(ne, !0);
|
|
10109
10110
|
y(ne), y(z), P(() => {
|
|
10110
10111
|
q(z, "title", d(it).filename), Se(be, d(it).filename);
|
|
10111
|
-
}), E(
|
|
10112
|
+
}), E(Le, z);
|
|
10112
10113
|
}), y(ee), E(se, ee);
|
|
10113
10114
|
};
|
|
10114
|
-
X(
|
|
10115
|
+
X(De, (se) => {
|
|
10115
10116
|
d(W).attachments && d(W).attachments.length > 0 && d(W).sentByUser == !0 && se(Ue);
|
|
10116
10117
|
});
|
|
10117
10118
|
}
|
|
10118
|
-
var
|
|
10119
|
+
var Fe = O(De, 2), fe = O(Fe, 2), Ve = T(fe), N = T(Ve), B = T(N);
|
|
10119
10120
|
gs(B, () => d(W).html ?? xe.parseInline(d(W).content), !1, !1), y(N), y(Ve);
|
|
10120
10121
|
var te = O(Ve, 2);
|
|
10121
10122
|
{
|
|
10122
10123
|
var Z = (se) => {
|
|
10123
|
-
var ee = yt(),
|
|
10124
|
+
var ee = yt(), Le = ot(ee);
|
|
10124
10125
|
{
|
|
10125
10126
|
var it = (ne) => {
|
|
10126
10127
|
var be = Hg();
|
|
@@ -10129,7 +10130,7 @@ function ho(t, e) {
|
|
|
10129
10130
|
var be = Gg();
|
|
10130
10131
|
be.__click = [Yg, Ee, W], P((Be) => q(be, "title", Be), [() => /* @__PURE__ */ ld()]), E(ne, be);
|
|
10131
10132
|
};
|
|
10132
|
-
X(
|
|
10133
|
+
X(Le, (ne) => {
|
|
10133
10134
|
d(h) ? ne(it) : ne(z, !1);
|
|
10134
10135
|
});
|
|
10135
10136
|
}
|
|
@@ -10151,14 +10152,14 @@ function ho(t, e) {
|
|
|
10151
10152
|
get attachmentList() {
|
|
10152
10153
|
return d(W).attachments;
|
|
10153
10154
|
},
|
|
10154
|
-
set attachmentList(
|
|
10155
|
-
d(W).attachments =
|
|
10155
|
+
set attachmentList(Le) {
|
|
10156
|
+
d(W).attachments = Le;
|
|
10156
10157
|
},
|
|
10157
10158
|
get userLevel() {
|
|
10158
10159
|
return l();
|
|
10159
10160
|
},
|
|
10160
|
-
set userLevel(
|
|
10161
|
-
l(
|
|
10161
|
+
set userLevel(Le) {
|
|
10162
|
+
l(Le);
|
|
10162
10163
|
}
|
|
10163
10164
|
});
|
|
10164
10165
|
};
|
|
@@ -10169,8 +10170,8 @@ function ho(t, e) {
|
|
|
10169
10170
|
var nt = O(ze, 2), pe = T(nt);
|
|
10170
10171
|
{
|
|
10171
10172
|
var $e = (se) => {
|
|
10172
|
-
var ee = Jg(),
|
|
10173
|
-
y(
|
|
10173
|
+
var ee = Jg(), Le = O(T(ee), 2), it = T(Le, !0);
|
|
10174
|
+
y(Le), y(ee), P((z) => Se(it, z), [
|
|
10174
10175
|
() => za(d(W).agentUsed)
|
|
10175
10176
|
]), E(se, ee);
|
|
10176
10177
|
};
|
|
@@ -10183,12 +10184,12 @@ function ho(t, e) {
|
|
|
10183
10184
|
var Ke = (se) => {
|
|
10184
10185
|
var ee = Wg();
|
|
10185
10186
|
ee.__click = () => d(w)[Ie] = !d(w)[Ie];
|
|
10186
|
-
var
|
|
10187
|
-
y(
|
|
10188
|
-
var z = O(
|
|
10187
|
+
var Le = T(ee), it = T(Le);
|
|
10188
|
+
y(Le);
|
|
10189
|
+
var z = O(Le, 2);
|
|
10189
10190
|
y(ee), P(
|
|
10190
10191
|
(ne) => {
|
|
10191
|
-
Se(it, `${ne ?? ""} (${d(W).attachments.length ?? ""})`), ut(z, `${`fa-solid fa-chevron-${d(w)[Ie] ? "up" : "down"}` ?? ""} svelte-
|
|
10192
|
+
Se(it, `${ne ?? ""} (${d(W).attachments.length ?? ""})`), ut(z, `${`fa-solid fa-chevron-${d(w)[Ie] ? "up" : "down"}` ?? ""} svelte-1f3j9k4`);
|
|
10192
10193
|
},
|
|
10193
10194
|
[() => /* @__PURE__ */ rd()]
|
|
10194
10195
|
), E(se, ee);
|
|
@@ -10214,24 +10215,24 @@ function ho(t, e) {
|
|
|
10214
10215
|
}
|
|
10215
10216
|
y(me), y(nt), y(V), y(J), y(ye), P(
|
|
10216
10217
|
(se) => {
|
|
10217
|
-
q(
|
|
10218
|
+
q(Fe, "style", `justify-content: ${(d(W).sentByUser ? "flex-end" : "flex-start") ?? ""}`), ut(Ve, qr(d(W).sentByUser ? "message-sent" : "message-received"), "svelte-1f3j9k4"), q(J, "style", `justify-content: ${(d(W).sentByUser ? "flex-end" : "flex-start") ?? ""}`), q(nt, "style", `width: 100%; align-items: flex-start; justify-content: ${(d(W).sentByUser ? "flex-end" : "flex-start") ?? ""}`), q(me, "title", se);
|
|
10218
10219
|
},
|
|
10219
10220
|
[
|
|
10220
10221
|
() => d(x)[Ie] || /* @__PURE__ */ vd()
|
|
10221
10222
|
]
|
|
10222
10223
|
), E(re, ye);
|
|
10223
10224
|
};
|
|
10224
|
-
X(
|
|
10225
|
+
X(D, (re) => {
|
|
10225
10226
|
d(W).content.trim() !== "" && re(H);
|
|
10226
10227
|
});
|
|
10227
10228
|
}
|
|
10228
10229
|
E(ke, ce);
|
|
10229
10230
|
});
|
|
10230
|
-
var Pe = O(
|
|
10231
|
+
var Pe = O(je, 2);
|
|
10231
10232
|
{
|
|
10232
10233
|
var Ye = (ke) => {
|
|
10233
|
-
var W = Qg(), Ie = T(W), ce = T(Ie),
|
|
10234
|
-
gs(H, a, !1, !1), y(
|
|
10234
|
+
var W = Qg(), Ie = T(W), ce = T(Ie), D = T(ce), H = T(D);
|
|
10235
|
+
gs(H, a, !1, !1), y(D), y(ce);
|
|
10235
10236
|
var re = O(ce, 2);
|
|
10236
10237
|
{
|
|
10237
10238
|
var ye = (Z) => {
|
|
@@ -10247,7 +10248,7 @@ function ho(t, e) {
|
|
|
10247
10248
|
});
|
|
10248
10249
|
}
|
|
10249
10250
|
y(Ie);
|
|
10250
|
-
var
|
|
10251
|
+
var De = O(Ie, 2), Ue = T(De), Fe = T(Ue);
|
|
10251
10252
|
{
|
|
10252
10253
|
var fe = (Z) => {
|
|
10253
10254
|
var J = /* @__PURE__ */ Ze(() => d(w)[-1] || !1);
|
|
@@ -10269,28 +10270,28 @@ function ho(t, e) {
|
|
|
10269
10270
|
}
|
|
10270
10271
|
});
|
|
10271
10272
|
};
|
|
10272
|
-
X(
|
|
10273
|
+
X(Fe, (Z) => {
|
|
10273
10274
|
i() && i().length > 0 && Z(fe);
|
|
10274
10275
|
});
|
|
10275
10276
|
}
|
|
10276
|
-
var Ve = O(
|
|
10277
|
-
y(B), y(N), y(Ve), y(Ue), y(
|
|
10277
|
+
var Ve = O(Fe, 2), N = T(Ve), B = O(T(N), 2), te = T(B, !0);
|
|
10278
|
+
y(B), y(N), y(Ve), y(Ue), y(De), y(W), P((Z) => Se(te, Z), [() => za(o())]), E(ke, W);
|
|
10278
10279
|
}, Oe = (ke) => {
|
|
10279
10280
|
var W = yt(), Ie = ot(W);
|
|
10280
10281
|
{
|
|
10281
|
-
var ce = (
|
|
10282
|
+
var ce = (D) => {
|
|
10282
10283
|
var H = Kg(), re = T(H);
|
|
10283
10284
|
rn(re, {
|
|
10284
10285
|
icon: "svg-spinners:3-dots-bounce",
|
|
10285
10286
|
width: "25px",
|
|
10286
10287
|
height: "25px",
|
|
10287
10288
|
color: "white"
|
|
10288
|
-
}), y(H), E(
|
|
10289
|
+
}), y(H), E(D, H);
|
|
10289
10290
|
};
|
|
10290
10291
|
X(
|
|
10291
10292
|
Ie,
|
|
10292
|
-
(
|
|
10293
|
-
r() &&
|
|
10293
|
+
(D) => {
|
|
10294
|
+
r() && D(ce);
|
|
10294
10295
|
},
|
|
10295
10296
|
!0
|
|
10296
10297
|
);
|
|
@@ -10311,81 +10312,81 @@ function ho(t, e) {
|
|
|
10311
10312
|
s() != "" && ke(Ge);
|
|
10312
10313
|
});
|
|
10313
10314
|
}
|
|
10314
|
-
y(K), en("outroend", K, ge),
|
|
10315
|
+
y(K), en("outroend", K, ge), Ft(1, K, () => tn, () => ({ duration: 100, delay: 100 })), Ft(2, K, () => tn, () => ({ duration: 100 })), E(F, K);
|
|
10315
10316
|
};
|
|
10316
|
-
X(Xe, (
|
|
10317
|
-
d(_) &&
|
|
10317
|
+
X(Xe, (F) => {
|
|
10318
|
+
d(_) && F(Qe);
|
|
10318
10319
|
});
|
|
10319
10320
|
}
|
|
10320
10321
|
var ct = O(Xe, 2);
|
|
10321
10322
|
{
|
|
10322
|
-
var ft = (
|
|
10323
|
-
var K = nm(),
|
|
10324
|
-
rn(
|
|
10323
|
+
var ft = (F) => {
|
|
10324
|
+
var K = nm(), je = T(K);
|
|
10325
|
+
rn(je, {
|
|
10325
10326
|
icon: "svg-spinners:270-ring-with-bg",
|
|
10326
10327
|
width: "50px",
|
|
10327
10328
|
height: "50px",
|
|
10328
10329
|
color: "white"
|
|
10329
|
-
}), y(K), en("outroend", K, tt),
|
|
10330
|
+
}), y(K), en("outroend", K, tt), Ft(1, K, () => tn, () => ({ duration: 100, delay: 200 })), Ft(2, K, () => tn, () => ({ duration: 100 })), E(F, K);
|
|
10330
10331
|
};
|
|
10331
|
-
X(ct, (
|
|
10332
|
-
d($) &&
|
|
10332
|
+
X(ct, (F) => {
|
|
10333
|
+
d($) && F(ft);
|
|
10333
10334
|
});
|
|
10334
10335
|
}
|
|
10335
|
-
return y(ae), bs(ae, (
|
|
10336
|
+
return y(ae), bs(ae, (F) => m(f, F), () => d(f)), E(t, ae), oe({
|
|
10336
10337
|
get messages() {
|
|
10337
10338
|
return n();
|
|
10338
10339
|
},
|
|
10339
|
-
set messages(
|
|
10340
|
-
n(
|
|
10340
|
+
set messages(F) {
|
|
10341
|
+
n(F), v();
|
|
10341
10342
|
},
|
|
10342
10343
|
get loading() {
|
|
10343
10344
|
return r();
|
|
10344
10345
|
},
|
|
10345
|
-
set loading(
|
|
10346
|
-
r(
|
|
10346
|
+
set loading(F) {
|
|
10347
|
+
r(F), v();
|
|
10347
10348
|
},
|
|
10348
10349
|
get error() {
|
|
10349
10350
|
return s();
|
|
10350
10351
|
},
|
|
10351
|
-
set error(
|
|
10352
|
-
s(
|
|
10352
|
+
set error(F) {
|
|
10353
|
+
s(F), v();
|
|
10353
10354
|
},
|
|
10354
10355
|
get streamMessage() {
|
|
10355
10356
|
return a();
|
|
10356
10357
|
},
|
|
10357
|
-
set streamMessage(
|
|
10358
|
-
a(
|
|
10358
|
+
set streamMessage(F) {
|
|
10359
|
+
a(F), v();
|
|
10359
10360
|
},
|
|
10360
10361
|
get streamAttachments() {
|
|
10361
10362
|
return i();
|
|
10362
10363
|
},
|
|
10363
|
-
set streamAttachments(
|
|
10364
|
-
i(
|
|
10364
|
+
set streamAttachments(F) {
|
|
10365
|
+
i(F), v();
|
|
10365
10366
|
},
|
|
10366
10367
|
get streamedAgent() {
|
|
10367
10368
|
return o();
|
|
10368
10369
|
},
|
|
10369
|
-
set streamedAgent(
|
|
10370
|
-
o(
|
|
10370
|
+
set streamedAgent(F) {
|
|
10371
|
+
o(F), v();
|
|
10371
10372
|
},
|
|
10372
10373
|
get languageSelected() {
|
|
10373
10374
|
return c();
|
|
10374
10375
|
},
|
|
10375
|
-
set languageSelected(
|
|
10376
|
-
c(
|
|
10376
|
+
set languageSelected(F) {
|
|
10377
|
+
c(F), v();
|
|
10377
10378
|
},
|
|
10378
10379
|
get userLevel() {
|
|
10379
10380
|
return l();
|
|
10380
10381
|
},
|
|
10381
|
-
set userLevel(
|
|
10382
|
-
l(
|
|
10382
|
+
set userLevel(F) {
|
|
10383
|
+
l(F), v();
|
|
10383
10384
|
},
|
|
10384
10385
|
get loadingChat() {
|
|
10385
10386
|
return u();
|
|
10386
10387
|
},
|
|
10387
|
-
set loadingChat(
|
|
10388
|
-
u(
|
|
10388
|
+
set loadingChat(F) {
|
|
10389
|
+
u(F), v();
|
|
10389
10390
|
}
|
|
10390
10391
|
});
|
|
10391
10392
|
}
|
|
@@ -10407,9 +10408,9 @@ le(
|
|
|
10407
10408
|
[],
|
|
10408
10409
|
!0
|
|
10409
10410
|
);
|
|
10410
|
-
var am = /* @__PURE__ */
|
|
10411
|
+
var am = /* @__PURE__ */ L('<div class="loader-container svelte-7tjd4x"><div class="loader svelte-7tjd4x"></div></div>'), im = (t, e, n, r) => {
|
|
10411
10412
|
e()._id != d(n)._id && r(d(n)._id);
|
|
10412
|
-
}, om = /* @__PURE__ */
|
|
10413
|
+
}, om = /* @__PURE__ */ L('<span class="unread-badge svelte-7tjd4x"></span>'), lm = (t, e, n) => e(d(n)._id, d(n).title), cm = /* @__PURE__ */ L('<div class="chat svelte-7tjd4x"><button class="chat-button svelte-7tjd4x"><span style="font-weight: bold;" class="svelte-7tjd4x"> </span> <!></button> <button class="chat-delete svelte-7tjd4x" aria-label="Delete chat"><i class="fa-solid fa-trash-can svelte-7tjd4x"></i></button></div>'), um = /* @__PURE__ */ L('<div class="history svelte-7tjd4x"><span class="title svelte-7tjd4x"> </span> <div class="chats svelte-7tjd4x"><!></div></div>'), dm = /* @__PURE__ */ L('<div class="external-div svelte-7tjd4x"><!></div>');
|
|
10413
10414
|
const fm = {
|
|
10414
10415
|
hash: "svelte-7tjd4x",
|
|
10415
10416
|
code: `.history.svelte-7tjd4x {position:absolute;top:0;left:-250px;width:250px;height:100%; /* Cambiato da 600px a 100% */border-radius:15px;display:flex;flex-direction:column;margin:0; /* Rimosso il margin */padding:10px;background:#3c4450;box-shadow:0 0 10px rgba(0, 0, 0, 0.1);z-index:-1; /* Cambiato da 999 a -1 */}.title.svelte-7tjd4x {font-size:1.5rem;color:#fff;margin:10px;text-align:left;}.chats.svelte-7tjd4x {display:flex;flex-direction:column;padding:10px;overflow-y:scroll;overflow-x:hidden;height:100%;gap:20px;}.chat.svelte-7tjd4x {background:rgba(255, 255, 255, 0.2);display:flex;justify-content:space-between;align-items:center;border-radius:10px;transition:200ms;width:100%;}.chat.svelte-7tjd4x > .chat-button:where(.svelte-7tjd4x) {background:transparent;padding:5px 10px;border-radius:10px;cursor:pointer;transition:200ms;text-align:left;border:none;font-size:15px;width:calc(95% - 35px);position:relative;display:flex;align-items:center;gap:8px;}.unread-badge.svelte-7tjd4x {display:inline-block;width:10px;height:10px;background:rgb(0, 255, 0);border-radius:50%;\r
|
|
@@ -10466,10 +10467,10 @@ function vo(t, e) {
|
|
|
10466
10467
|
y(_);
|
|
10467
10468
|
var A = O(_, 2), S = T(A);
|
|
10468
10469
|
{
|
|
10469
|
-
var
|
|
10470
|
+
var j = (M) => {
|
|
10470
10471
|
var G = am();
|
|
10471
10472
|
E(M, G);
|
|
10472
|
-
},
|
|
10473
|
+
}, R = (M) => {
|
|
10473
10474
|
var G = yt(), ge = ot(G);
|
|
10474
10475
|
st(ge, 17, s, rt, (tt, Ee) => {
|
|
10475
10476
|
var Ce = cm(), ae = T(Ce);
|
|
@@ -10479,25 +10480,25 @@ function vo(t, e) {
|
|
|
10479
10480
|
var ct = O(Xe, 2);
|
|
10480
10481
|
{
|
|
10481
10482
|
var ft = (K) => {
|
|
10482
|
-
var
|
|
10483
|
-
E(K,
|
|
10483
|
+
var je = om();
|
|
10484
|
+
E(K, je);
|
|
10484
10485
|
};
|
|
10485
10486
|
X(ct, (K) => {
|
|
10486
10487
|
u().includes(d(Ee)._id) && K(ft);
|
|
10487
10488
|
});
|
|
10488
10489
|
}
|
|
10489
10490
|
y(ae);
|
|
10490
|
-
var
|
|
10491
|
-
|
|
10491
|
+
var F = O(ae, 2);
|
|
10492
|
+
F.__click = [lm, p, Ee], y(Ce), P(() => {
|
|
10492
10493
|
q(Ce, "style", r()._id === d(Ee)._id ? "background: #295dcf; cursor: default;" : ""), Se(Qe, d(Ee).title);
|
|
10493
10494
|
}), E(tt, Ce);
|
|
10494
10495
|
}), E(M, G);
|
|
10495
10496
|
};
|
|
10496
10497
|
X(S, (M) => {
|
|
10497
|
-
c() ? M(
|
|
10498
|
+
c() ? M(j) : M(R, !1);
|
|
10498
10499
|
});
|
|
10499
10500
|
}
|
|
10500
|
-
y(A), y(b), P((M) => Se($, M), [() => /* @__PURE__ */
|
|
10501
|
+
y(A), y(b), P((M) => Se($, M), [() => /* @__PURE__ */ Di()]), Ft(3, b, () => sc, () => ({ duration: 600 })), E(k, b);
|
|
10501
10502
|
};
|
|
10502
10503
|
X(w, (k) => {
|
|
10503
10504
|
n() && k(x);
|
|
@@ -10581,7 +10582,7 @@ le(
|
|
|
10581
10582
|
const pm = (t, e, n, r, s) => {
|
|
10582
10583
|
m(e, "auto"), n(), r(), m(s, C({}));
|
|
10583
10584
|
};
|
|
10584
|
-
var hm = /* @__PURE__ */
|
|
10585
|
+
var hm = /* @__PURE__ */ L('<div class="drag-overlay svelte-1shw51p"><div class="drag-content svelte-1shw51p"><!> <p class="svelte-1shw51p"> </p></div></div>'), vm = /* @__PURE__ */ L('<div class="upload-progress-overlay svelte-1shw51p"><div class="upload-progress-content svelte-1shw51p"><!> <p class="upload-filename svelte-1shw51p"> </p> <div class="progress-bar-container svelte-1shw51p"><div class="progress-bar svelte-1shw51p"></div></div> <p class="upload-percentage svelte-1shw51p"> </p></div></div>'), gm = /* @__PURE__ */ L('<div class="loading-placeholder svelte-1shw51p"><!></div>'), mm = /* @__PURE__ */ L('<!> <div class="resize-border-left svelte-1shw51p"></div> <div class="resize-border-top svelte-1shw51p"></div> <div class="resize-handle svelte-1shw51p"><!></div> <!> <!> <!>', 1), bm = /* @__PURE__ */ L('<div class="chat svelte-1shw51p"><!> <!> <!></div>'), wm = /* @__PURE__ */ L('<div class="external-div"><!> <button><i class="fa-solid fa-comment-nodes"></i><span class="d-none d-md-inline ps-2"> </span></button></div>');
|
|
10585
10586
|
const xm = {
|
|
10586
10587
|
hash: "svelte-1shw51p",
|
|
10587
10588
|
code: ".loading-placeholder.svelte-1shw51p {display:flex;justify-content:center;align-items:center;height:100%;}.chat.svelte-1shw51p {position:fixed;bottom:0;right:0;width:75%;height:90%;min-width:300px;min-height:400px;border-radius:15px;display:flex;flex-direction:column;margin:30px;padding:10px;background:#295dcf;box-shadow:0 0 10px rgba(0, 0, 0, 0.1);resize:none;overflow:visible;z-index:1000;}.resize-handle.svelte-1shw51p {position:absolute;top:-2px;left:-2px;cursor:nw-resize;z-index:1002;display:flex;align-items:flex-start;justify-content:flex-start;}.resize-border-left.svelte-1shw51p {position:absolute;top:0;left:-2px;width:4px;height:100%;cursor:ew-resize;z-index:1001;background:transparent;}.resize-border-top.svelte-1shw51p {position:absolute;top:-2px;left:0;width:100%;height:4px;cursor:ns-resize;z-index:1001;background:transparent;}.no-select.svelte-1shw51p {user-select:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;}.bottom-right-buttons.svelte-1shw51p {position:fixed;bottom:20px;right:0;display:flex;flex-direction:column;gap:15px;z-index:999;transform:translateX(50px);padding:5px;transition:350ms;}.bottom-right-buttons.visible.svelte-1shw51p {transform:translateX(0);}.bottom-right-buttons.svelte-1shw51p:hover {transform:translateX(0);}.pin-forge-buttons.svelte-1shw51p {width:30px;height:30px;border-radius:50%;border:none;background:rgba(0, 0, 0, 0.6);color:white;box-shadow:0 2px 8px rgba(0, 0, 0, 0.2);cursor:pointer;display:flex;align-items:center;justify-content:center;align-self:center;transition:200ms;font-size:14px;}.pin-forge-buttons.svelte-1shw51p:hover {background:rgba(0, 0, 0, 0.85);transform:scale(1.1);}.pin-forge-buttons.pinned.svelte-1shw51p {background:#295dcf;transform:rotate(45deg);}.pin-forge-buttons.pinned.svelte-1shw51p:hover {background:#1e4ba8;transform:rotate(45deg) scale(1.1);}.btn-with-tooltip.svelte-1shw51p {position:relative;display:flex;align-items:center;transition:300ms;}.btn-with-tooltip.svelte-1shw51p:hover {transform:translateX(-6px);}.custom-tooltip.svelte-1shw51p {position:absolute;right:70px;background:rgba(0, 0, 0, 0.85);color:white;padding:8px 12px;border-radius:6px;white-space:nowrap;font-size:14px;opacity:0;pointer-events:none;transition:opacity 200ms;box-shadow:0 2px 8px rgba(0, 0, 0, 0.3);}.hidden-btn.svelte-1shw51p {width:60px;height:60px;border-radius:50%;border:none;box-shadow:0 2px 8px rgba(0, 0, 0, 0.2);cursor:pointer;display:flex;align-items:center;justify-content:center;transition:200ms;}.hidden-btn-1.svelte-1shw51p {background:#28853d;color:white;}.hidden-btn-1.svelte-1shw51p:hover {background:#206a31;}.hidden-btn-2.svelte-1shw51p {background:#0099ff;color:white;}.hidden-btn-2.svelte-1shw51p:hover {background:#007acc;}.drag-overlay.svelte-1shw51p {position:absolute;top:0;left:0;width:100%;height:100%;background:rgba(41, 93, 207, 0.95);border-radius:15px;display:flex;align-items:center;justify-content:center;z-index:1010;pointer-events:none;}.drag-content.svelte-1shw51p {text-align:center;color:white;}.drag-content.svelte-1shw51p p:where(.svelte-1shw51p) {margin-top:20px;font-size:24px;font-weight:600;}.upload-progress-overlay.svelte-1shw51p {position:absolute;top:0;left:0;width:100%;height:100%;background:rgba(0, 0, 0, 0.8);border-radius:15px;display:flex;align-items:center;justify-content:center;z-index:1011;}.upload-progress-content.svelte-1shw51p {text-align:center;color:white;padding:30px;background:rgba(41, 93, 207, 0.9);border-radius:10px;min-width:300px;}.upload-filename.svelte-1shw51p {margin:15px 0 10px 0;font-size:16px;font-weight:500;}.progress-bar-container.svelte-1shw51p {width:100%;height:8px;background:rgba(255, 255, 255, 0.2);border-radius:4px;overflow:hidden;margin:10px 0;}.progress-bar.svelte-1shw51p {height:100%;background:white;border-radius:4px;transition:width 0.3s ease;}.upload-percentage.svelte-1shw51p {margin:10px 0 0 0;font-size:20px;font-weight:600;}"
|
|
@@ -10589,10 +10590,10 @@ const xm = {
|
|
|
10589
10590
|
function go(t, e) {
|
|
10590
10591
|
ie(e, !0), de(t, xm);
|
|
10591
10592
|
let n = Y(!1), r = Y(!1), s = Y("it"), a = Y(""), i = Y(0), o = Y(null), c = Y(C([])), l = Y(C([])), u = Y(!1), f = Y(!0), p = Y(C(new Audio())), h = Y(!0), w = Y(""), x = Y(""), k = Y(C([])), b = Y(0), _ = Y(null), $ = Y(!1), A = Y(0), S = Y("");
|
|
10592
|
-
const
|
|
10593
|
+
const j = (N, B, te) => {
|
|
10593
10594
|
m(x, d(x) + N), m(k, C(B)), m(b, C(te));
|
|
10594
10595
|
};
|
|
10595
|
-
let
|
|
10596
|
+
let R = Y("auto");
|
|
10596
10597
|
const M = [
|
|
10597
10598
|
"auto",
|
|
10598
10599
|
"gendoc",
|
|
@@ -10600,7 +10601,7 @@ function go(t, e) {
|
|
|
10600
10601
|
"suite_agent"
|
|
10601
10602
|
];
|
|
10602
10603
|
let G = Y(C({})), ge = Y(!0), tt = Y(!1);
|
|
10603
|
-
|
|
10604
|
+
Lt(() => {
|
|
10604
10605
|
d(tt) && U.setForgeButtonsPinned(d(ge));
|
|
10605
10606
|
});
|
|
10606
10607
|
const Ee = async (N, B) => {
|
|
@@ -10613,7 +10614,7 @@ function go(t, e) {
|
|
|
10613
10614
|
])), console.log("Current messages:", d(l)), d(l).length == 2 && (console.log("Creating new chat with state:", (Z = d(o)) == null ? void 0 : Z.state), m(o, C(await _t.newChat((J = d(o)) == null ? void 0 : J.state))), m(c, C([...d(c), d(o)])), d(o).messages = d(l), await Ge()), d(o)) {
|
|
10614
10615
|
m(_, C(new AbortController()));
|
|
10615
10616
|
try {
|
|
10616
|
-
let V = await _t.sendMessage(d(o)._id, N, B, te,
|
|
10617
|
+
let V = await _t.sendMessage(d(o)._id, N, B, te, j, d(s), d(_).signal);
|
|
10617
10618
|
if (console.log(V), V) {
|
|
10618
10619
|
m(l, C([
|
|
10619
10620
|
...d(l),
|
|
@@ -10646,16 +10647,16 @@ function go(t, e) {
|
|
|
10646
10647
|
let ae = Y(0);
|
|
10647
10648
|
const Xe = (N) => {
|
|
10648
10649
|
var B;
|
|
10649
|
-
!M.includes(d(
|
|
10650
|
+
!M.includes(d(R)) || (B = d(o)) != null && B.state.blockChat || (N.preventDefault(), N.stopPropagation(), Xn(ae), m($, !0));
|
|
10650
10651
|
}, Qe = (N) => {
|
|
10651
10652
|
var B;
|
|
10652
|
-
!M.includes(d(
|
|
10653
|
+
!M.includes(d(R)) || (B = d(o)) != null && B.state.blockChat || (N.preventDefault(), N.stopPropagation());
|
|
10653
10654
|
}, ct = (N) => {
|
|
10654
10655
|
var B;
|
|
10655
|
-
!M.includes(d(
|
|
10656
|
+
!M.includes(d(R)) || (B = d(o)) != null && B.state.blockChat || (N.preventDefault(), N.stopPropagation(), Xn(ae, -1), d(ae) === 0 && m($, !1));
|
|
10656
10657
|
}, ft = async (N) => {
|
|
10657
10658
|
var nt, pe, $e, Je, Ke, me, We;
|
|
10658
|
-
if (!M.includes(d(
|
|
10659
|
+
if (!M.includes(d(R)) || (nt = d(o)) != null && nt.state.blockChat) return;
|
|
10659
10660
|
N.preventDefault(), N.stopPropagation();
|
|
10660
10661
|
const B = (pe = N.dataTransfer) == null ? void 0 : pe.types;
|
|
10661
10662
|
console.log("[DROP DEBUG] DataTransfer types:", B), m(S, C(/* @__PURE__ */ xd())), m(A, 0);
|
|
@@ -10678,10 +10679,10 @@ function go(t, e) {
|
|
|
10678
10679
|
return;
|
|
10679
10680
|
}
|
|
10680
10681
|
m(S, C(ee.name));
|
|
10681
|
-
const
|
|
10682
|
+
const Le = await F(ee, J, (z) => {
|
|
10682
10683
|
Z = z, z > 50 && J && (clearInterval(J), J = null);
|
|
10683
10684
|
});
|
|
10684
|
-
V =
|
|
10685
|
+
V = Le.fileId, ze = Le.aiFileId, Te = ee.name;
|
|
10685
10686
|
let it = {
|
|
10686
10687
|
id: V,
|
|
10687
10688
|
filename: Te,
|
|
@@ -10699,10 +10700,10 @@ function go(t, e) {
|
|
|
10699
10700
|
try {
|
|
10700
10701
|
for (const ee of at) {
|
|
10701
10702
|
m(S, C(ee.name));
|
|
10702
|
-
const
|
|
10703
|
+
const Le = await F(ee, J, (z) => {
|
|
10703
10704
|
Z = z, z > 50 && J && (clearInterval(J), J = null);
|
|
10704
10705
|
});
|
|
10705
|
-
V =
|
|
10706
|
+
V = Le.fileId, ze = Le.aiFileId, Te = ee.name;
|
|
10706
10707
|
let it = {
|
|
10707
10708
|
id: V,
|
|
10708
10709
|
filename: Te,
|
|
@@ -10722,7 +10723,7 @@ function go(t, e) {
|
|
|
10722
10723
|
J && (clearInterval(J), J = null), m($, !1), m(ae, 0), m(S, ""), m(A, 0);
|
|
10723
10724
|
}
|
|
10724
10725
|
}
|
|
10725
|
-
},
|
|
10726
|
+
}, F = async (N, B, te) => {
|
|
10726
10727
|
try {
|
|
10727
10728
|
const Z = await _t.uploadFile(N, (J) => {
|
|
10728
10729
|
console.log("[UPLOAD DEBUG] Callback ricevuto - Real progress:", J), te == null || te(J), J > 50 && (m(A, 75 + J * 0.25), console.log("[UPLOAD DEBUG] Using real progress - uploadProgress:", d(A)));
|
|
@@ -10741,14 +10742,14 @@ function go(t, e) {
|
|
|
10741
10742
|
throw console.error("Error uploading file:", Z), m(w, C(/* @__PURE__ */ ka())), m(S, ""), m(A, 0), Z;
|
|
10742
10743
|
}
|
|
10743
10744
|
};
|
|
10744
|
-
|
|
10745
|
+
Lt(() => {
|
|
10745
10746
|
d(h) && d(p).pause();
|
|
10746
10747
|
});
|
|
10747
|
-
let K = !1,
|
|
10748
|
+
let K = !1, je, Pe, Ye, Oe;
|
|
10748
10749
|
function Me(N) {
|
|
10749
10750
|
const B = N.target;
|
|
10750
10751
|
if (B.closest(".resize-handle") || B.classList.contains("resize-border-left") || B.classList.contains("resize-border-top")) {
|
|
10751
|
-
N.preventDefault(), N.stopPropagation(), K = !0,
|
|
10752
|
+
N.preventDefault(), N.stopPropagation(), K = !0, je = N.clientX, Pe = N.clientY;
|
|
10752
10753
|
const Z = document.querySelector(".chat");
|
|
10753
10754
|
Ye = Z.offsetWidth, Oe = Z.offsetHeight, Z.classList.add("no-select");
|
|
10754
10755
|
const J = B.closest(".resize-handle"), V = B.classList.contains("resize-border-left"), ze = B.classList.contains("resize-border-top"), Te = (pe) => {
|
|
@@ -10756,13 +10757,13 @@ function go(t, e) {
|
|
|
10756
10757
|
pe.preventDefault();
|
|
10757
10758
|
const $e = document.querySelector(".chat"), Je = window.innerWidth * 0.75, Ke = window.innerHeight * 0.9;
|
|
10758
10759
|
if (V) {
|
|
10759
|
-
const me =
|
|
10760
|
+
const me = je - pe.clientX, We = Math.min(Math.max(Ye + me, 300), Je);
|
|
10760
10761
|
$e.style.width = `${We}px`;
|
|
10761
10762
|
} else if (ze) {
|
|
10762
10763
|
const me = Pe - pe.clientY, We = Math.min(Math.max(Oe + me, 400), Ke);
|
|
10763
10764
|
$e.style.height = `${We}px`;
|
|
10764
10765
|
} else if (J) {
|
|
10765
|
-
const me =
|
|
10766
|
+
const me = je - pe.clientX, We = Pe - pe.clientY, qe = Math.min(Math.max(Ye + me, 300), Je), at = Math.min(Math.max(Oe + We, 400), Ke);
|
|
10766
10767
|
$e.style.width = `${qe}px`, $e.style.height = `${at}px`;
|
|
10767
10768
|
}
|
|
10768
10769
|
}, nt = () => {
|
|
@@ -10788,7 +10789,7 @@ function go(t, e) {
|
|
|
10788
10789
|
"",
|
|
10789
10790
|
"",
|
|
10790
10791
|
"",
|
|
10791
|
-
/* @__PURE__ */
|
|
10792
|
+
/* @__PURE__ */ Ri(),
|
|
10792
10793
|
{
|
|
10793
10794
|
blockChat: !1,
|
|
10794
10795
|
unread: !1,
|
|
@@ -10797,11 +10798,11 @@ function go(t, e) {
|
|
|
10797
10798
|
info: []
|
|
10798
10799
|
},
|
|
10799
10800
|
[
|
|
10800
|
-
nn.firstMessage(d(s), d(a), d(
|
|
10801
|
+
nn.firstMessage(d(s), d(a), d(R))
|
|
10801
10802
|
]
|
|
10802
10803
|
))), m(x, ""), m(l, C(d(o).messages)), m(w, "");
|
|
10803
10804
|
};
|
|
10804
|
-
let
|
|
10805
|
+
let D = Y(C([])), H;
|
|
10805
10806
|
const re = async () => {
|
|
10806
10807
|
try {
|
|
10807
10808
|
let N = await _t.getUnreadChats();
|
|
@@ -10813,12 +10814,12 @@ function go(t, e) {
|
|
|
10813
10814
|
let B = await _t.getChat(d(o)._id);
|
|
10814
10815
|
m(o, C(B)), m(l, C(d(o).messages)), m(ke, !1);
|
|
10815
10816
|
}
|
|
10816
|
-
N.length > 0 && m(
|
|
10817
|
+
N.length > 0 && m(D, C(N));
|
|
10817
10818
|
} catch (N) {
|
|
10818
10819
|
console.error("Error fetching unread chats:", N);
|
|
10819
10820
|
}
|
|
10820
10821
|
};
|
|
10821
|
-
|
|
10822
|
+
Lt(() => (H !== void 0 && (clearInterval(H), H = void 0), d(n) && (re(), H = setInterval(re, 5e3)), () => {
|
|
10822
10823
|
H !== void 0 && (clearInterval(H), H = void 0);
|
|
10823
10824
|
})), Br(async () => {
|
|
10824
10825
|
try {
|
|
@@ -10827,7 +10828,7 @@ function go(t, e) {
|
|
|
10827
10828
|
m(a, C(N));
|
|
10828
10829
|
const B = await kt.getUserLevel();
|
|
10829
10830
|
m(i, C(B));
|
|
10830
|
-
const te = nn.firstMessage(d(s), d(a), d(
|
|
10831
|
+
const te = nn.firstMessage(d(s), d(a), d(R));
|
|
10831
10832
|
m(l, C([te])), m(o, C(new vn(
|
|
10832
10833
|
"",
|
|
10833
10834
|
"",
|
|
@@ -10852,7 +10853,7 @@ function go(t, e) {
|
|
|
10852
10853
|
console.error("Failed to load username", N), m(w, C(/* @__PURE__ */ dd())), m(f, !1);
|
|
10853
10854
|
}
|
|
10854
10855
|
});
|
|
10855
|
-
var ye = wm(),
|
|
10856
|
+
var ye = wm(), De = T(ye);
|
|
10856
10857
|
{
|
|
10857
10858
|
var Ue = (N) => {
|
|
10858
10859
|
var B = bm();
|
|
@@ -10870,7 +10871,7 @@ function go(t, e) {
|
|
|
10870
10871
|
var me = O(Ke, 2), We = T(me, !0);
|
|
10871
10872
|
y(me), y(Je), y($e), P((qe) => Se(We, qe), [
|
|
10872
10873
|
() => /* @__PURE__ */ wd() || "Drop files here"
|
|
10873
|
-
]),
|
|
10874
|
+
]), Ft(3, $e, () => tn, () => ({ duration: 200 })), E(pe, $e);
|
|
10874
10875
|
};
|
|
10875
10876
|
X(te, (pe) => {
|
|
10876
10877
|
d($) && pe(Z);
|
|
@@ -10892,13 +10893,13 @@ function go(t, e) {
|
|
|
10892
10893
|
y(qe);
|
|
10893
10894
|
var se = O(qe, 2), ee = T(se);
|
|
10894
10895
|
y(se), y(Je), y($e), P(
|
|
10895
|
-
(
|
|
10896
|
-
Se(We, d(S)), q(at, "style", `width: ${d(A) ?? ""}%`), Se(ee, `${
|
|
10896
|
+
(Le) => {
|
|
10897
|
+
Se(We, d(S)), q(at, "style", `width: ${d(A) ?? ""}%`), Se(ee, `${Le ?? ""}%`);
|
|
10897
10898
|
},
|
|
10898
10899
|
[
|
|
10899
10900
|
() => Math.round(d(A))
|
|
10900
10901
|
]
|
|
10901
|
-
),
|
|
10902
|
+
), Ft(3, $e, () => tn, () => ({ duration: 200 })), E(pe, $e);
|
|
10902
10903
|
};
|
|
10903
10904
|
X(J, (pe) => {
|
|
10904
10905
|
d(S) && pe(V);
|
|
@@ -10964,10 +10965,10 @@ function go(t, e) {
|
|
|
10964
10965
|
m(W, C(z));
|
|
10965
10966
|
},
|
|
10966
10967
|
get unreadChatIds() {
|
|
10967
|
-
return d(
|
|
10968
|
+
return d(D);
|
|
10968
10969
|
},
|
|
10969
10970
|
set unreadChatIds(z) {
|
|
10970
|
-
m(
|
|
10971
|
+
m(D, C(z));
|
|
10971
10972
|
}
|
|
10972
10973
|
});
|
|
10973
10974
|
var at = O(qe, 6), se = T(at);
|
|
@@ -11026,8 +11027,8 @@ function go(t, e) {
|
|
|
11026
11027
|
m(w, C(z));
|
|
11027
11028
|
}
|
|
11028
11029
|
});
|
|
11029
|
-
var
|
|
11030
|
-
ho(
|
|
11030
|
+
var Le = O(ee, 2);
|
|
11031
|
+
ho(Le, {
|
|
11031
11032
|
get messages() {
|
|
11032
11033
|
return d(l);
|
|
11033
11034
|
},
|
|
@@ -11083,11 +11084,11 @@ function go(t, e) {
|
|
|
11083
11084
|
m(ke, C(z));
|
|
11084
11085
|
}
|
|
11085
11086
|
});
|
|
11086
|
-
var it = O(
|
|
11087
|
+
var it = O(Le, 2);
|
|
11087
11088
|
Hi(it, {
|
|
11088
11089
|
sendMessage: Ee,
|
|
11089
11090
|
stopMessage: Ce,
|
|
11090
|
-
uploadFiles:
|
|
11091
|
+
uploadFiles: F,
|
|
11091
11092
|
get loading() {
|
|
11092
11093
|
return d(u);
|
|
11093
11094
|
},
|
|
@@ -11101,10 +11102,10 @@ function go(t, e) {
|
|
|
11101
11102
|
m(s, C(z));
|
|
11102
11103
|
},
|
|
11103
11104
|
get modeSelected() {
|
|
11104
|
-
return d(
|
|
11105
|
+
return d(R);
|
|
11105
11106
|
},
|
|
11106
11107
|
set modeSelected(z) {
|
|
11107
|
-
m(
|
|
11108
|
+
m(R, C(z));
|
|
11108
11109
|
},
|
|
11109
11110
|
get attachments() {
|
|
11110
11111
|
return d(G);
|
|
@@ -11158,24 +11159,24 @@ function go(t, e) {
|
|
|
11158
11159
|
d(f) ? pe(Te) : pe(nt, !1);
|
|
11159
11160
|
});
|
|
11160
11161
|
}
|
|
11161
|
-
y(B), en("dragenter", B, Xe), en("dragover", B, Qe), en("dragleave", B, ct), en("drop", B, ft),
|
|
11162
|
+
y(B), en("dragenter", B, Xe), en("dragover", B, Qe), en("dragleave", B, ct), en("drop", B, ft), Ft(3, B, () => nc, () => ({ y: 50, duration: 500 })), E(N, B);
|
|
11162
11163
|
};
|
|
11163
|
-
X(
|
|
11164
|
+
X(De, (N) => {
|
|
11164
11165
|
d(n) && N(Ue);
|
|
11165
11166
|
});
|
|
11166
11167
|
}
|
|
11167
|
-
var
|
|
11168
|
-
|
|
11168
|
+
var Fe = O(De, 2);
|
|
11169
|
+
Fe.__click = [
|
|
11169
11170
|
pm,
|
|
11170
|
-
|
|
11171
|
+
R,
|
|
11171
11172
|
ce,
|
|
11172
11173
|
Ie,
|
|
11173
11174
|
G
|
|
11174
11175
|
];
|
|
11175
|
-
var fe = O(T(
|
|
11176
|
-
y(fe), y(
|
|
11176
|
+
var fe = O(T(Fe)), Ve = T(fe, !0);
|
|
11177
|
+
y(fe), y(Fe), y(ye), P(
|
|
11177
11178
|
(N) => {
|
|
11178
|
-
ut(
|
|
11179
|
+
ut(Fe, `${`btn ${d(n) ? "aks-btn-answer" : "btn-primary"}` ?? ""} svelte-1shw51p`), Se(Ve, N);
|
|
11179
11180
|
},
|
|
11180
11181
|
[() => /* @__PURE__ */ Uu()]
|
|
11181
11182
|
), E(t, ye), oe();
|