akpm-knowledge-base-chat 2.0.3 → 2.0.4
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 +997 -995
- package/package.json +1 -1
package/CDN/akb-chat.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
/* Version: 2.0.
|
|
1
|
+
/* Version: 2.0.4 */
|
|
2
2
|
var lo = Object.defineProperty;
|
|
3
3
|
var Js = (t) => {
|
|
4
4
|
throw TypeError(t);
|
|
5
5
|
};
|
|
6
6
|
var co = (t, e, n) => e in t ? lo(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
|
7
|
-
var
|
|
7
|
+
var C = (t, e, n) => co(t, typeof e != "symbol" ? e + "" : e, n), Ws = (t, e, n) => e.has(t) || Js("Cannot " + n);
|
|
8
8
|
var st = (t, e, n) => (Ws(t, e, "read from private field"), n ? n.call(t) : e.get(t)), Mr = (t, e, n) => e.has(t) ? Js("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), Nr = (t, e, n, r) => (Ws(t, e, "write to private field"), r ? r.call(t, n) : e.set(t, n), n);
|
|
9
9
|
const uo = "5";
|
|
10
10
|
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(uo);
|
|
11
|
-
const hs = 1, ps = 2, Ai = 4, fo = 8, ho = 16, po = 1, vo = 2, Li = 4, go = 8, mo = 16, bo = 1, xo = 2, wo = 4, _o = 1, ko = 2,
|
|
11
|
+
const hs = 1, ps = 2, Ai = 4, fo = 8, ho = 16, po = 1, vo = 2, Li = 4, go = 8, mo = 16, bo = 1, xo = 2, wo = 4, _o = 1, ko = 2, Ri = "[", vs = "[!", gs = "]", mn = {}, it = Symbol();
|
|
12
12
|
function yo(t) {
|
|
13
13
|
return t.endsWith("capture") && t !== "gotpointercapture" && t !== "lostpointercapture";
|
|
14
14
|
}
|
|
@@ -54,33 +54,33 @@ const To = {
|
|
|
54
54
|
function So(t) {
|
|
55
55
|
return t = t.toLowerCase(), To[t] ?? t;
|
|
56
56
|
}
|
|
57
|
-
const
|
|
58
|
-
function
|
|
59
|
-
return
|
|
57
|
+
const Eo = ["touchstart", "touchmove"];
|
|
58
|
+
function Co(t) {
|
|
59
|
+
return Eo.includes(t);
|
|
60
60
|
}
|
|
61
61
|
const Wr = !1;
|
|
62
|
-
var kr = Array.isArray, Io = Array.prototype.indexOf, ms = Array.from, lr = Object.keys, cr = Object.defineProperty, on = Object.getOwnPropertyDescriptor,
|
|
63
|
-
function
|
|
62
|
+
var kr = Array.isArray, Io = Array.prototype.indexOf, ms = Array.from, lr = Object.keys, cr = Object.defineProperty, on = Object.getOwnPropertyDescriptor, ji = Object.getOwnPropertyDescriptors, Ao = Object.prototype, Lo = Array.prototype, bs = Object.getPrototypeOf;
|
|
63
|
+
function Ro(t) {
|
|
64
64
|
return typeof t == "function";
|
|
65
65
|
}
|
|
66
66
|
const An = () => {
|
|
67
67
|
};
|
|
68
|
-
function
|
|
68
|
+
function jo(t) {
|
|
69
69
|
return t();
|
|
70
70
|
}
|
|
71
71
|
function ur(t) {
|
|
72
72
|
for (var e = 0; e < t.length; e++)
|
|
73
73
|
t[e]();
|
|
74
74
|
}
|
|
75
|
-
const pt = 2, Fi = 4, Yn = 8, yr = 16, Dt = 32, dn = 64, dr = 128, fn = 256, fr = 512,
|
|
75
|
+
const pt = 2, Fi = 4, Yn = 8, yr = 16, Dt = 32, dn = 64, dr = 128, fn = 256, fr = 512, Xe = 1024, qt = 2048, hn = 4096, At = 8192, yn = 16384, Di = 32768, zr = 65536, Fo = 1 << 17, Do = 1 << 19, Oi = 1 << 20, Bt = Symbol("$state"), Pi = Symbol("legacy props"), Oo = Symbol("");
|
|
76
76
|
function Mi(t) {
|
|
77
77
|
return t === this.v;
|
|
78
78
|
}
|
|
79
|
-
function
|
|
79
|
+
function Po(t, e) {
|
|
80
80
|
return t != t ? e == e : t !== e || t !== null && typeof t == "object" || typeof t == "function";
|
|
81
81
|
}
|
|
82
82
|
function xs(t) {
|
|
83
|
-
return !
|
|
83
|
+
return !Po(t, this.v);
|
|
84
84
|
}
|
|
85
85
|
function Mo(t) {
|
|
86
86
|
throw new Error("https://svelte.dev/e/effect_in_teardown");
|
|
@@ -128,7 +128,7 @@ function at(t, e) {
|
|
|
128
128
|
};
|
|
129
129
|
return n;
|
|
130
130
|
}
|
|
131
|
-
function
|
|
131
|
+
function J(t) {
|
|
132
132
|
return /* @__PURE__ */ Ni(at(t));
|
|
133
133
|
}
|
|
134
134
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -156,14 +156,14 @@ function b(t, e) {
|
|
|
156
156
|
(Lt === null || !Lt.includes(t)) && Wo(), Zr(t, e);
|
|
157
157
|
}
|
|
158
158
|
function Zr(t, e) {
|
|
159
|
-
return t.equals(e) || (t.v, t.v = e, t.wv = ia(), Ui(t, qt), Wn() && pe !== null && pe.f &
|
|
159
|
+
return t.equals(e) || (t.v, t.v = e, t.wv = ia(), Ui(t, qt), Wn() && pe !== null && pe.f & Xe && !(pe.f & (Dt | dn)) && (Ot === null ? ul([t]) : Ot.push(t))), e;
|
|
160
160
|
}
|
|
161
161
|
function Ui(t, e) {
|
|
162
162
|
var n = t.reactions;
|
|
163
163
|
if (n !== null)
|
|
164
164
|
for (var r = Wn(), s = n.length, i = 0; i < s; i++) {
|
|
165
165
|
var a = n[i], o = a.f;
|
|
166
|
-
o & qt || !r && a === pe || (zt(a, e), o & (
|
|
166
|
+
o & qt || !r && a === pe || (zt(a, e), o & (Xe | fn) && (o & pt ? Ui(
|
|
167
167
|
/** @type {Derived} */
|
|
168
168
|
a,
|
|
169
169
|
hn
|
|
@@ -209,7 +209,7 @@ function Xr() {
|
|
|
209
209
|
if (n === gs) {
|
|
210
210
|
if (t === 0) return e;
|
|
211
211
|
t -= 1;
|
|
212
|
-
} else (n ===
|
|
212
|
+
} else (n === Ri || n === vs) && (t += 1);
|
|
213
213
|
}
|
|
214
214
|
var r = (
|
|
215
215
|
/** @type {TemplateNode} */
|
|
@@ -391,7 +391,7 @@ function ft(t, e) {
|
|
|
391
391
|
}
|
|
392
392
|
return be;
|
|
393
393
|
}
|
|
394
|
-
function
|
|
394
|
+
function O(t, e = 1, n = !1) {
|
|
395
395
|
let r = de ? be : t;
|
|
396
396
|
for (var s; e--; )
|
|
397
397
|
s = r, r = /** @type {TemplateNode} */
|
|
@@ -412,7 +412,7 @@ function ws(t) {
|
|
|
412
412
|
// @__NO_SIDE_EFFECTS__
|
|
413
413
|
function Ne(t) {
|
|
414
414
|
var e = pt | qt;
|
|
415
|
-
pe === null ? e |= fn : pe.f |=
|
|
415
|
+
pe === null ? e |= fn : pe.f |= Oi;
|
|
416
416
|
var n = Ie !== null && Ie.f & pt ? (
|
|
417
417
|
/** @type {Derived} */
|
|
418
418
|
Ie
|
|
@@ -449,7 +449,7 @@ function Yi(t) {
|
|
|
449
449
|
r.f & pt ? _s(
|
|
450
450
|
/** @type {Derived} */
|
|
451
451
|
r
|
|
452
|
-
) :
|
|
452
|
+
) : Rt(
|
|
453
453
|
/** @type {Effect} */
|
|
454
454
|
r
|
|
455
455
|
);
|
|
@@ -478,7 +478,7 @@ function Gi(t) {
|
|
|
478
478
|
return e;
|
|
479
479
|
}
|
|
480
480
|
function Ji(t) {
|
|
481
|
-
var e = Gi(t), n = (an || t.f & fn) && t.deps !== null ? hn :
|
|
481
|
+
var e = Gi(t), n = (an || t.f & fn) && t.deps !== null ? hn : Xe;
|
|
482
482
|
zt(t, n), t.equals(e) || (t.v = e, t.wv = ia());
|
|
483
483
|
}
|
|
484
484
|
function _s(t) {
|
|
@@ -512,14 +512,14 @@ function pn(t, e, n, r = !0) {
|
|
|
512
512
|
if (n) {
|
|
513
513
|
var o = bn;
|
|
514
514
|
try {
|
|
515
|
-
Qs(!0),
|
|
515
|
+
Qs(!0), Cr(a), a.f |= Di;
|
|
516
516
|
} catch (u) {
|
|
517
|
-
throw
|
|
517
|
+
throw Rt(a), u;
|
|
518
518
|
} finally {
|
|
519
519
|
Qs(o);
|
|
520
520
|
}
|
|
521
521
|
} else e !== null && Ir(a);
|
|
522
|
-
var c = n && a.deps === null && a.first === null && a.nodes_start === null && a.teardown === null && (a.f & (
|
|
522
|
+
var c = n && a.deps === null && a.first === null && a.nodes_start === null && a.teardown === null && (a.f & (Oi | dr)) === 0;
|
|
523
523
|
if (!c && !s && r && (i !== null && Ko(a, i), Ie !== null && Ie.f & pt)) {
|
|
524
524
|
var l = (
|
|
525
525
|
/** @type {Derived} */
|
|
@@ -531,7 +531,7 @@ function pn(t, e, n, r = !0) {
|
|
|
531
531
|
}
|
|
532
532
|
function el(t) {
|
|
533
533
|
const e = pn(Yn, null, !1);
|
|
534
|
-
return zt(e,
|
|
534
|
+
return zt(e, Xe), e.teardown = t, e;
|
|
535
535
|
}
|
|
536
536
|
function It(t) {
|
|
537
537
|
Wi();
|
|
@@ -557,15 +557,15 @@ function tl(t) {
|
|
|
557
557
|
function nl(t) {
|
|
558
558
|
const e = pn(dn, t, !0);
|
|
559
559
|
return () => {
|
|
560
|
-
|
|
560
|
+
Rt(e);
|
|
561
561
|
};
|
|
562
562
|
}
|
|
563
563
|
function rl(t) {
|
|
564
564
|
const e = pn(dn, t, !0);
|
|
565
565
|
return (n = {}) => new Promise((r) => {
|
|
566
566
|
n.outro ? hr(e, () => {
|
|
567
|
-
|
|
568
|
-
}) : (
|
|
567
|
+
Rt(e), r(void 0);
|
|
568
|
+
}) : (Rt(e), r(void 0));
|
|
569
569
|
});
|
|
570
570
|
}
|
|
571
571
|
function $n(t) {
|
|
@@ -589,7 +589,7 @@ function Jn() {
|
|
|
589
589
|
if (f(t.l.r2)) {
|
|
590
590
|
for (var e of t.l.r1) {
|
|
591
591
|
var n = e.effect;
|
|
592
|
-
n.f &
|
|
592
|
+
n.f & Xe && zt(n, hn), En(n) && Cr(n), e.ran = !1;
|
|
593
593
|
}
|
|
594
594
|
t.l.r2.v = !1;
|
|
595
595
|
}
|
|
@@ -612,11 +612,11 @@ function Zi(t) {
|
|
|
612
612
|
var e = t.teardown;
|
|
613
613
|
if (e !== null) {
|
|
614
614
|
const n = zs, r = Ie;
|
|
615
|
-
Ks(!0),
|
|
615
|
+
Ks(!0), jt(null);
|
|
616
616
|
try {
|
|
617
617
|
e.call(null);
|
|
618
618
|
} finally {
|
|
619
|
-
Ks(n),
|
|
619
|
+
Ks(n), jt(r);
|
|
620
620
|
}
|
|
621
621
|
}
|
|
622
622
|
}
|
|
@@ -632,16 +632,16 @@ function Vi(t, e = !1) {
|
|
|
632
632
|
var n = t.first;
|
|
633
633
|
for (t.first = t.last = null; n !== null; ) {
|
|
634
634
|
var r = n.next;
|
|
635
|
-
|
|
635
|
+
Rt(n, e), n = r;
|
|
636
636
|
}
|
|
637
637
|
}
|
|
638
638
|
function sl(t) {
|
|
639
639
|
for (var e = t.first; e !== null; ) {
|
|
640
640
|
var n = e.next;
|
|
641
|
-
e.f & Dt ||
|
|
641
|
+
e.f & Dt || Rt(e), e = n;
|
|
642
642
|
}
|
|
643
643
|
}
|
|
644
|
-
function
|
|
644
|
+
function Rt(t, e = !0) {
|
|
645
645
|
var n = !1;
|
|
646
646
|
if ((e || t.f & Do) && t.nodes_start !== null) {
|
|
647
647
|
for (var r = t.nodes_start, s = t.nodes_end; r !== null; ) {
|
|
@@ -669,7 +669,7 @@ function Qi(t) {
|
|
|
669
669
|
function hr(t, e) {
|
|
670
670
|
var n = [];
|
|
671
671
|
ks(t, n, !0), Ki(n, () => {
|
|
672
|
-
|
|
672
|
+
Rt(t), e && e();
|
|
673
673
|
});
|
|
674
674
|
}
|
|
675
675
|
function Ki(t, e) {
|
|
@@ -697,7 +697,7 @@ function pr(t) {
|
|
|
697
697
|
}
|
|
698
698
|
function ea(t, e) {
|
|
699
699
|
if (t.f & At) {
|
|
700
|
-
t.f ^= At, t.f &
|
|
700
|
+
t.f ^= At, t.f & Xe || (t.f ^= Xe), En(t) && (zt(t, qt), Ir(t));
|
|
701
701
|
for (var n = t.first; n !== null; ) {
|
|
702
702
|
var r = n.next, s = (n.f & zr) !== 0 || (n.f & Dt) !== 0;
|
|
703
703
|
ea(n, s ? e : !1), n = r;
|
|
@@ -741,7 +741,7 @@ function Ks(t) {
|
|
|
741
741
|
}
|
|
742
742
|
let sn = [], xn = 0;
|
|
743
743
|
let Ie = null, Vt = !1;
|
|
744
|
-
function
|
|
744
|
+
function jt(t) {
|
|
745
745
|
Ie = t;
|
|
746
746
|
}
|
|
747
747
|
let pe = null;
|
|
@@ -752,9 +752,9 @@ let Lt = null;
|
|
|
752
752
|
function cl(t) {
|
|
753
753
|
Lt = t;
|
|
754
754
|
}
|
|
755
|
-
let ot = null, dt = 0,
|
|
755
|
+
let ot = null, dt = 0, Ot = null;
|
|
756
756
|
function ul(t) {
|
|
757
|
-
|
|
757
|
+
Ot = t;
|
|
758
758
|
}
|
|
759
759
|
let sa = 1, mr = 0, an = !1, ze = null;
|
|
760
760
|
function ia() {
|
|
@@ -763,7 +763,7 @@ function ia() {
|
|
|
763
763
|
function Wn() {
|
|
764
764
|
return !zn || ze !== null && ze.l === null;
|
|
765
765
|
}
|
|
766
|
-
function
|
|
766
|
+
function En(t) {
|
|
767
767
|
var l;
|
|
768
768
|
var e = t.f;
|
|
769
769
|
if (e & qt)
|
|
@@ -778,7 +778,7 @@ function Cn(t) {
|
|
|
778
778
|
a && (t.f ^= fr);
|
|
779
779
|
}
|
|
780
780
|
for (s = 0; s < c; s++)
|
|
781
|
-
if (i = n[s],
|
|
781
|
+
if (i = n[s], En(
|
|
782
782
|
/** @type {Derived} */
|
|
783
783
|
i
|
|
784
784
|
) && Ji(
|
|
@@ -787,7 +787,7 @@ function Cn(t) {
|
|
|
787
787
|
), i.wv > t.wv)
|
|
788
788
|
return !0;
|
|
789
789
|
}
|
|
790
|
-
(!r || pe !== null && !an) && zt(t,
|
|
790
|
+
(!r || pe !== null && !an) && zt(t, Xe);
|
|
791
791
|
}
|
|
792
792
|
return !1;
|
|
793
793
|
}
|
|
@@ -807,7 +807,7 @@ function dl(t, e) {
|
|
|
807
807
|
function fl(t) {
|
|
808
808
|
return (t.f & yn) === 0 && (t.parent === null || (t.parent.f & dr) === 0);
|
|
809
809
|
}
|
|
810
|
-
function
|
|
810
|
+
function Er(t, e, n, r) {
|
|
811
811
|
if (rr) {
|
|
812
812
|
if (n === null && (rr = !1), fl(e))
|
|
813
813
|
throw t;
|
|
@@ -829,7 +829,7 @@ function aa(t, e, n = 0) {
|
|
|
829
829
|
i,
|
|
830
830
|
e,
|
|
831
831
|
n + 1
|
|
832
|
-
) : e === i && (n === 0 ? zt(i, qt) : i.f &
|
|
832
|
+
) : e === i && (n === 0 ? zt(i, qt) : i.f & Xe && zt(i, hn), Ir(
|
|
833
833
|
/** @type {Effect} */
|
|
834
834
|
i
|
|
835
835
|
));
|
|
@@ -837,9 +837,9 @@ function aa(t, e, n = 0) {
|
|
|
837
837
|
}
|
|
838
838
|
function oa(t) {
|
|
839
839
|
var p;
|
|
840
|
-
var e = ot, n = dt, r =
|
|
840
|
+
var e = ot, n = dt, r = Ot, s = Ie, i = an, a = Lt, o = ze, c = Vt, l = t.f;
|
|
841
841
|
ot = /** @type {null | Value[]} */
|
|
842
|
-
null, dt = 0,
|
|
842
|
+
null, dt = 0, Ot = null, Ie = l & (Dt | dn) ? null : t, an = !bn && (l & fn) !== 0, Lt = null, ze = t.ctx, Vt = !1, mr++;
|
|
843
843
|
try {
|
|
844
844
|
var u = (
|
|
845
845
|
/** @type {Function} */
|
|
@@ -856,17 +856,17 @@ function oa(t) {
|
|
|
856
856
|
for (h = dt; h < d.length; h++)
|
|
857
857
|
((p = d[h]).reactions ?? (p.reactions = [])).push(t);
|
|
858
858
|
} else d !== null && dt < d.length && (Bn(t, dt), d.length = dt);
|
|
859
|
-
if (Wn() &&
|
|
859
|
+
if (Wn() && Ot !== null && !(t.f & (pt | hn | qt)))
|
|
860
860
|
for (h = 0; h < /** @type {Source[]} */
|
|
861
|
-
|
|
861
|
+
Ot.length; h++)
|
|
862
862
|
aa(
|
|
863
|
-
|
|
863
|
+
Ot[h],
|
|
864
864
|
/** @type {Effect} */
|
|
865
865
|
t
|
|
866
866
|
);
|
|
867
867
|
return s !== null && mr++, u;
|
|
868
868
|
} finally {
|
|
869
|
-
ot = e, dt = n,
|
|
869
|
+
ot = e, dt = n, Ot = r, Ie = s, an = i, Lt = a, ze = o, Vt = c;
|
|
870
870
|
}
|
|
871
871
|
}
|
|
872
872
|
function hl(t, e) {
|
|
@@ -893,10 +893,10 @@ function Bn(t, e) {
|
|
|
893
893
|
for (var r = e; r < n.length; r++)
|
|
894
894
|
hl(t, n[r]);
|
|
895
895
|
}
|
|
896
|
-
function
|
|
896
|
+
function Cr(t) {
|
|
897
897
|
var e = t.f;
|
|
898
898
|
if (!(e & yn)) {
|
|
899
|
-
zt(t,
|
|
899
|
+
zt(t, Xe);
|
|
900
900
|
var n = pe, r = ze;
|
|
901
901
|
pe = t;
|
|
902
902
|
try {
|
|
@@ -906,7 +906,7 @@ function Er(t) {
|
|
|
906
906
|
var i = t.deps, a;
|
|
907
907
|
Wr && Zo && t.f & qt;
|
|
908
908
|
} catch (o) {
|
|
909
|
-
|
|
909
|
+
Er(o, t, n, r || t.ctx);
|
|
910
910
|
} finally {
|
|
911
911
|
pe = n;
|
|
912
912
|
}
|
|
@@ -919,7 +919,7 @@ function la() {
|
|
|
919
919
|
Bo();
|
|
920
920
|
} catch (t) {
|
|
921
921
|
if (Un !== null)
|
|
922
|
-
|
|
922
|
+
Er(t, Un, null);
|
|
923
923
|
else
|
|
924
924
|
throw t;
|
|
925
925
|
}
|
|
@@ -935,7 +935,7 @@ function ca(t) {
|
|
|
935
935
|
try {
|
|
936
936
|
for (var r = 0; r < e; r++) {
|
|
937
937
|
var s = t[r];
|
|
938
|
-
s.f &
|
|
938
|
+
s.f & Xe || (s.f ^= Xe);
|
|
939
939
|
var i = [];
|
|
940
940
|
ua(s, i), pl(i);
|
|
941
941
|
}
|
|
@@ -951,9 +951,9 @@ function pl(t) {
|
|
|
951
951
|
var r = t[n];
|
|
952
952
|
if (!(r.f & (yn | At)))
|
|
953
953
|
try {
|
|
954
|
-
|
|
954
|
+
En(r) && (Cr(r), r.deps === null && r.first === null && r.nodes_start === null && (r.teardown === null ? Qi(r) : r.fn = null));
|
|
955
955
|
} catch (s) {
|
|
956
|
-
|
|
956
|
+
Er(s, r, null, r.ctx);
|
|
957
957
|
}
|
|
958
958
|
}
|
|
959
959
|
}
|
|
@@ -969,8 +969,8 @@ function Ir(t) {
|
|
|
969
969
|
e = e.parent;
|
|
970
970
|
var n = e.f;
|
|
971
971
|
if (n & (dn | Dt)) {
|
|
972
|
-
if (!(n &
|
|
973
|
-
e.f ^=
|
|
972
|
+
if (!(n & Xe)) return;
|
|
973
|
+
e.f ^= Xe;
|
|
974
974
|
}
|
|
975
975
|
}
|
|
976
976
|
sn.push(e);
|
|
@@ -978,16 +978,16 @@ function Ir(t) {
|
|
|
978
978
|
function ua(t, e) {
|
|
979
979
|
var n = t.first, r = [];
|
|
980
980
|
e: for (; n !== null; ) {
|
|
981
|
-
var s = n.f, i = (s & Dt) !== 0, a = i && (s &
|
|
981
|
+
var s = n.f, i = (s & Dt) !== 0, a = i && (s & Xe) !== 0, o = n.next;
|
|
982
982
|
if (!a && !(s & At))
|
|
983
983
|
if (s & Yn) {
|
|
984
984
|
if (i)
|
|
985
|
-
n.f ^=
|
|
985
|
+
n.f ^= Xe;
|
|
986
986
|
else
|
|
987
987
|
try {
|
|
988
|
-
|
|
988
|
+
En(n) && Cr(n);
|
|
989
989
|
} catch (d) {
|
|
990
|
-
|
|
990
|
+
Er(d, n, null, n.ctx);
|
|
991
991
|
}
|
|
992
992
|
var c = n.first;
|
|
993
993
|
if (c !== null) {
|
|
@@ -1066,7 +1066,7 @@ function f(t) {
|
|
|
1066
1066
|
break;
|
|
1067
1067
|
}
|
|
1068
1068
|
return n && (i = /** @type {Derived} */
|
|
1069
|
-
t,
|
|
1069
|
+
t, En(i) && Ji(i)), t.v;
|
|
1070
1070
|
}
|
|
1071
1071
|
function Ft(t) {
|
|
1072
1072
|
var e = Vt;
|
|
@@ -1111,10 +1111,10 @@ function se(t) {
|
|
|
1111
1111
|
try {
|
|
1112
1112
|
for (var s = 0; s < a.length; s++) {
|
|
1113
1113
|
var i = a[s];
|
|
1114
|
-
yt(i.effect),
|
|
1114
|
+
yt(i.effect), jt(i.reaction), $n(i.fn);
|
|
1115
1115
|
}
|
|
1116
1116
|
} finally {
|
|
1117
|
-
yt(n),
|
|
1117
|
+
yt(n), jt(r);
|
|
1118
1118
|
}
|
|
1119
1119
|
}
|
|
1120
1120
|
ze = e.p, e.m = !0;
|
|
@@ -1122,7 +1122,7 @@ function se(t) {
|
|
|
1122
1122
|
return t || /** @type {T} */
|
|
1123
1123
|
{};
|
|
1124
1124
|
}
|
|
1125
|
-
function
|
|
1125
|
+
function Cn(t) {
|
|
1126
1126
|
if (!(typeof t != "object" || !t || t instanceof EventTarget)) {
|
|
1127
1127
|
if (Bt in t)
|
|
1128
1128
|
es(t);
|
|
@@ -1144,7 +1144,7 @@ function es(t, e = /* @__PURE__ */ new Set()) {
|
|
|
1144
1144
|
}
|
|
1145
1145
|
const n = bs(t);
|
|
1146
1146
|
if (n !== Object.prototype && n !== Array.prototype && n !== Map.prototype && n !== Set.prototype && n !== Date.prototype) {
|
|
1147
|
-
const r =
|
|
1147
|
+
const r = ji(n);
|
|
1148
1148
|
for (let s in r) {
|
|
1149
1149
|
const i = r[s].get;
|
|
1150
1150
|
if (i)
|
|
@@ -1189,11 +1189,11 @@ function da() {
|
|
|
1189
1189
|
}
|
|
1190
1190
|
function fa(t) {
|
|
1191
1191
|
var e = Ie, n = pe;
|
|
1192
|
-
|
|
1192
|
+
jt(null), yt(null);
|
|
1193
1193
|
try {
|
|
1194
1194
|
return t();
|
|
1195
1195
|
} finally {
|
|
1196
|
-
|
|
1196
|
+
jt(e), yt(n);
|
|
1197
1197
|
}
|
|
1198
1198
|
}
|
|
1199
1199
|
function ha(t, e, n, r = n) {
|
|
@@ -1255,7 +1255,7 @@ function Dn(t) {
|
|
|
1255
1255
|
}
|
|
1256
1256
|
});
|
|
1257
1257
|
var u = Ie, d = pe;
|
|
1258
|
-
|
|
1258
|
+
jt(null), yt(null);
|
|
1259
1259
|
try {
|
|
1260
1260
|
for (var h, p = []; i !== null; ) {
|
|
1261
1261
|
var w = i.assignedSlot || i.parentNode || /** @type {any} */
|
|
@@ -1284,7 +1284,7 @@ function Dn(t) {
|
|
|
1284
1284
|
throw h;
|
|
1285
1285
|
}
|
|
1286
1286
|
} finally {
|
|
1287
|
-
t.__root = e, delete t.currentTarget,
|
|
1287
|
+
t.__root = e, delete t.currentTarget, jt(u), yt(d);
|
|
1288
1288
|
}
|
|
1289
1289
|
}
|
|
1290
1290
|
}
|
|
@@ -1300,7 +1300,7 @@ function kt(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 R(t, e) {
|
|
1304
1304
|
var n = (e & _o) !== 0, r = (e & ko) !== 0, s, i = !t.startsWith("<!>");
|
|
1305
1305
|
return () => {
|
|
1306
1306
|
if (de)
|
|
@@ -1389,7 +1389,7 @@ function wl(t, e) {
|
|
|
1389
1389
|
/** @type {TemplateNode} */
|
|
1390
1390
|
/* @__PURE__ */ lt(n)
|
|
1391
1391
|
); i && (i.nodeType !== 8 || /** @type {Comment} */
|
|
1392
|
-
i.data !==
|
|
1392
|
+
i.data !== Ri); )
|
|
1393
1393
|
i = /** @type {TemplateNode} */
|
|
1394
1394
|
/* @__PURE__ */ Ht(i);
|
|
1395
1395
|
if (!i)
|
|
@@ -1420,7 +1420,7 @@ function ma(t, { target: e, anchor: n, props: r = {}, events: s, context: i, int
|
|
|
1420
1420
|
var p = d[h];
|
|
1421
1421
|
if (!o.has(p)) {
|
|
1422
1422
|
o.add(p);
|
|
1423
|
-
var w =
|
|
1423
|
+
var w = Co(p);
|
|
1424
1424
|
e.addEventListener(p, Dn, { passive: w });
|
|
1425
1425
|
var m = gn.get(p);
|
|
1426
1426
|
m === void 0 ? (document.addEventListener(p, Dn, { passive: w }), gn.set(p, 1)) : gn.set(p, m + 1);
|
|
@@ -1464,7 +1464,7 @@ function _l(t, e) {
|
|
|
1464
1464
|
const n = rs.get(t);
|
|
1465
1465
|
return n ? (rs.delete(t), n(e)) : Promise.resolve();
|
|
1466
1466
|
}
|
|
1467
|
-
function
|
|
1467
|
+
function K(t, e, n = !1) {
|
|
1468
1468
|
de && wn();
|
|
1469
1469
|
var r = t, s = null, i = null, a = it, o = n ? zr : 0, c = !1;
|
|
1470
1470
|
const l = (d, h = !0) => {
|
|
@@ -1489,7 +1489,7 @@ function Q(t, e, n = !1) {
|
|
|
1489
1489
|
c = !1, e(l), c || u(null, null);
|
|
1490
1490
|
}, o), de && (r = be);
|
|
1491
1491
|
}
|
|
1492
|
-
function
|
|
1492
|
+
function Ve(t, e) {
|
|
1493
1493
|
return e;
|
|
1494
1494
|
}
|
|
1495
1495
|
function kl(t, e, n, r) {
|
|
@@ -1510,11 +1510,11 @@ function kl(t, e, n, r) {
|
|
|
1510
1510
|
Ki(s, () => {
|
|
1511
1511
|
for (var l = 0; l < i; l++) {
|
|
1512
1512
|
var u = e[l];
|
|
1513
|
-
o || (r.delete(u.k), Yt(t, u.prev, u.next)),
|
|
1513
|
+
o || (r.delete(u.k), Yt(t, u.prev, u.next)), Rt(u.e, !o);
|
|
1514
1514
|
}
|
|
1515
1515
|
});
|
|
1516
1516
|
}
|
|
1517
|
-
function
|
|
1517
|
+
function Qe(t, e, n, r, s, i = null) {
|
|
1518
1518
|
var a = t, o = { flags: e, items: /* @__PURE__ */ new Map(), first: null }, c = (e & Ai) !== 0;
|
|
1519
1519
|
if (c) {
|
|
1520
1520
|
var l = (
|
|
@@ -1552,18 +1552,18 @@ function Ve(t, e, n, r, s, i = null) {
|
|
|
1552
1552
|
be, m = !0, Nt(!1);
|
|
1553
1553
|
break;
|
|
1554
1554
|
}
|
|
1555
|
-
var F = p[z],
|
|
1555
|
+
var F = p[z], E = r(F, z);
|
|
1556
1556
|
_ = ba(
|
|
1557
1557
|
be,
|
|
1558
1558
|
o,
|
|
1559
1559
|
x,
|
|
1560
1560
|
null,
|
|
1561
1561
|
F,
|
|
1562
|
-
|
|
1562
|
+
E,
|
|
1563
1563
|
z,
|
|
1564
1564
|
s,
|
|
1565
1565
|
e
|
|
1566
|
-
), o.items.set(
|
|
1566
|
+
), o.items.set(E, _), x = _;
|
|
1567
1567
|
}
|
|
1568
1568
|
w > 0 && ht(Xr());
|
|
1569
1569
|
}
|
|
@@ -1588,13 +1588,13 @@ function Ve(t, e, n, r, s, i = null) {
|
|
|
1588
1588
|
}), de && (a = be);
|
|
1589
1589
|
}
|
|
1590
1590
|
function yl(t, e, n, r, s, i, a, o) {
|
|
1591
|
-
var
|
|
1592
|
-
var c = (s & fo) !== 0, l = (s & (hs | ps)) !== 0, u = t.length, d = e.items, h = e.first, p = h, w, m = null, S, x = [], _ = [], z, F,
|
|
1591
|
+
var We, Ze, ut, Ke;
|
|
1592
|
+
var c = (s & fo) !== 0, l = (s & (hs | ps)) !== 0, u = t.length, d = e.items, h = e.first, p = h, w, m = null, S, x = [], _ = [], z, F, E, L;
|
|
1593
1593
|
if (c)
|
|
1594
1594
|
for (L = 0; L < u; L += 1)
|
|
1595
|
-
z = t[L], F = a(z, L),
|
|
1595
|
+
z = t[L], F = a(z, L), E = d.get(F), E !== void 0 && ((We = E.a) == null || We.measure(), (S ?? (S = /* @__PURE__ */ new Set())).add(E));
|
|
1596
1596
|
for (L = 0; L < u; L += 1) {
|
|
1597
|
-
if (z = t[L], F = a(z, L),
|
|
1597
|
+
if (z = t[L], F = a(z, L), E = d.get(F), E === void 0) {
|
|
1598
1598
|
var A = p ? (
|
|
1599
1599
|
/** @type {TemplateNode} */
|
|
1600
1600
|
p.e.nodes_start
|
|
@@ -1612,28 +1612,28 @@ function yl(t, e, n, r, s, i, a, o) {
|
|
|
1612
1612
|
), d.set(F, m), x = [], _ = [], p = m.next;
|
|
1613
1613
|
continue;
|
|
1614
1614
|
}
|
|
1615
|
-
if (l && zl(
|
|
1616
|
-
if (w !== void 0 && w.has(
|
|
1615
|
+
if (l && zl(E, z, L, s), E.e.f & At && (pr(E.e), c && ((Ze = E.a) == null || Ze.unfix(), (S ?? (S = /* @__PURE__ */ new Set())).delete(E))), E !== p) {
|
|
1616
|
+
if (w !== void 0 && w.has(E)) {
|
|
1617
1617
|
if (x.length < _.length) {
|
|
1618
|
-
var N = _[0],
|
|
1618
|
+
var N = _[0], Y;
|
|
1619
1619
|
m = N.prev;
|
|
1620
|
-
var le = x[0],
|
|
1621
|
-
for (
|
|
1622
|
-
ti(x[
|
|
1623
|
-
for (
|
|
1624
|
-
w.delete(_[
|
|
1625
|
-
Yt(e, le.prev,
|
|
1620
|
+
var le = x[0], Fe = x[x.length - 1];
|
|
1621
|
+
for (Y = 0; Y < x.length; Y += 1)
|
|
1622
|
+
ti(x[Y], N, n);
|
|
1623
|
+
for (Y = 0; Y < _.length; Y += 1)
|
|
1624
|
+
w.delete(_[Y]);
|
|
1625
|
+
Yt(e, le.prev, Fe.next), Yt(e, m, le), Yt(e, Fe, N), p = N, m = Fe, L -= 1, x = [], _ = [];
|
|
1626
1626
|
} else
|
|
1627
|
-
w.delete(
|
|
1627
|
+
w.delete(E), ti(E, p, n), Yt(e, E.prev, E.next), Yt(e, E, m === null ? e.first : m.next), Yt(e, m, E), m = E;
|
|
1628
1628
|
continue;
|
|
1629
1629
|
}
|
|
1630
1630
|
for (x = [], _ = []; p !== null && p.k !== F; )
|
|
1631
1631
|
(i || !(p.e.f & At)) && (w ?? (w = /* @__PURE__ */ new Set())).add(p), _.push(p), p = p.next;
|
|
1632
1632
|
if (p === null)
|
|
1633
1633
|
continue;
|
|
1634
|
-
|
|
1634
|
+
E = p;
|
|
1635
1635
|
}
|
|
1636
|
-
x.push(
|
|
1636
|
+
x.push(E), m = E, p = E.next;
|
|
1637
1637
|
}
|
|
1638
1638
|
if (p !== null || w !== void 0) {
|
|
1639
1639
|
for (var Ae = w === void 0 ? [] : ms(w); p !== null; )
|
|
@@ -1645,16 +1645,16 @@ function yl(t, e, n, r, s, i, a, o) {
|
|
|
1645
1645
|
for (L = 0; L < ge; L += 1)
|
|
1646
1646
|
(ut = Ae[L].a) == null || ut.measure();
|
|
1647
1647
|
for (L = 0; L < ge; L += 1)
|
|
1648
|
-
(
|
|
1648
|
+
(Ke = Ae[L].a) == null || Ke.fix();
|
|
1649
1649
|
}
|
|
1650
1650
|
kl(e, Ae, fe, d);
|
|
1651
1651
|
}
|
|
1652
1652
|
}
|
|
1653
1653
|
c && Sn(() => {
|
|
1654
|
-
var
|
|
1654
|
+
var j;
|
|
1655
1655
|
if (S !== void 0)
|
|
1656
|
-
for (
|
|
1657
|
-
(
|
|
1656
|
+
for (E of S)
|
|
1657
|
+
(j = E.a) == null || j.apply();
|
|
1658
1658
|
}), pe.first = e.first && e.first.e, pe.last = m && m.e;
|
|
1659
1659
|
}
|
|
1660
1660
|
function zl(t, e, n, r) {
|
|
@@ -1708,7 +1708,7 @@ function ss(t, e, n, r, s) {
|
|
|
1708
1708
|
de && wn();
|
|
1709
1709
|
return;
|
|
1710
1710
|
}
|
|
1711
|
-
o !== void 0 && (
|
|
1711
|
+
o !== void 0 && (Rt(o), o = void 0), a !== "" && (o = _n(() => {
|
|
1712
1712
|
if (de) {
|
|
1713
1713
|
be.data;
|
|
1714
1714
|
for (var c = wn(), l = c; c !== null && (c.nodeType !== 8 || /** @type {Comment} */
|
|
@@ -1799,12 +1799,12 @@ function Sl(t, e) {
|
|
|
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 El(t, e) {
|
|
1803
1803
|
e ? t.hasAttribute("selected") || t.setAttribute("selected", "") : t.removeAttribute("selected");
|
|
1804
1804
|
}
|
|
1805
1805
|
function M(t, e, n, r) {
|
|
1806
1806
|
var s = t.__attributes ?? (t.__attributes = {});
|
|
1807
|
-
de && (s[e] = t.getAttribute(e), e === "src" || e === "srcset" || e === "href" && t.nodeName === "LINK") || s[e] !== (s[e] = n) && (e === "style" && "__styles" in t && (t.__styles = {}), e === "loading" && (t[
|
|
1807
|
+
de && (s[e] = t.getAttribute(e), e === "src" || e === "srcset" || e === "href" && t.nodeName === "LINK") || s[e] !== (s[e] = n) && (e === "style" && "__styles" in t && (t.__styles = {}), e === "loading" && (t[Oo] = n), n == null ? t.removeAttribute(e) : typeof n != "string" && wa(t).includes(e) ? t[e] = n : t.setAttribute(e, n));
|
|
1808
1808
|
}
|
|
1809
1809
|
function ni(t, e, n, r, s = !1, i = !1, a = !1) {
|
|
1810
1810
|
var o = e || {}, c = t.tagName === "OPTION";
|
|
@@ -1828,22 +1828,22 @@ function ni(t, e, n, r, s = !1, i = !1, a = !1) {
|
|
|
1828
1828
|
if (p !== "$$") {
|
|
1829
1829
|
if (p === "on") {
|
|
1830
1830
|
const z = {}, F = "$$" + x;
|
|
1831
|
-
let
|
|
1832
|
-
var w = $o(
|
|
1833
|
-
if (yo(
|
|
1831
|
+
let E = x.slice(2);
|
|
1832
|
+
var w = $o(E);
|
|
1833
|
+
if (yo(E) && (E = E.slice(0, -7), z.capture = !0), !w && h) {
|
|
1834
1834
|
if (_ != null) continue;
|
|
1835
|
-
t.removeEventListener(
|
|
1835
|
+
t.removeEventListener(E, o[F], z), o[F] = null;
|
|
1836
1836
|
}
|
|
1837
1837
|
if (_ != null)
|
|
1838
1838
|
if (w)
|
|
1839
|
-
t[`__${
|
|
1839
|
+
t[`__${E}`] = _, nn([E]);
|
|
1840
1840
|
else {
|
|
1841
1841
|
let L = function(A) {
|
|
1842
1842
|
o[x].call(this, A);
|
|
1843
1843
|
};
|
|
1844
|
-
o[F] = va(
|
|
1844
|
+
o[F] = va(E, t, L, z);
|
|
1845
1845
|
}
|
|
1846
|
-
else w && (t[`__${
|
|
1846
|
+
else w && (t[`__${E}`] = void 0);
|
|
1847
1847
|
} else if (x === "style" && _ != null)
|
|
1848
1848
|
t.style.cssText = _ + "";
|
|
1849
1849
|
else if (x === "autofocus")
|
|
@@ -1855,7 +1855,7 @@ function ni(t, e, n, r, s = !1, i = !1, a = !1) {
|
|
|
1855
1855
|
else if (x === "__value" || x === "value" && _ != null)
|
|
1856
1856
|
t.value = t[x] = t.__value = _;
|
|
1857
1857
|
else if (x === "selected" && c)
|
|
1858
|
-
|
|
1858
|
+
El(
|
|
1859
1859
|
/** @type {HTMLOptionElement} */
|
|
1860
1860
|
t,
|
|
1861
1861
|
_
|
|
@@ -1893,7 +1893,7 @@ function wa(t) {
|
|
|
1893
1893
|
if (e) return e;
|
|
1894
1894
|
ri.set(t.nodeName, e = []);
|
|
1895
1895
|
for (var n, r = t, s = Element.prototype; s !== r; ) {
|
|
1896
|
-
n =
|
|
1896
|
+
n = ji(r);
|
|
1897
1897
|
for (var i in n)
|
|
1898
1898
|
n[i].set && e.push(i);
|
|
1899
1899
|
r = bs(r);
|
|
@@ -1901,10 +1901,10 @@ function wa(t) {
|
|
|
1901
1901
|
return e;
|
|
1902
1902
|
}
|
|
1903
1903
|
function nt(t, e, n) {
|
|
1904
|
-
var r = t.__className, s =
|
|
1904
|
+
var r = t.__className, s = Cl(e, n);
|
|
1905
1905
|
de && t.className === s ? t.__className = s : (r !== s || de && t.className !== s) && (e == null && !n ? t.removeAttribute("class") : t.className = s, t.__className = s);
|
|
1906
1906
|
}
|
|
1907
|
-
function
|
|
1907
|
+
function Cl(t, e) {
|
|
1908
1908
|
return (t ?? "") + (e ? " " + e : "");
|
|
1909
1909
|
}
|
|
1910
1910
|
function ne(t, e, n) {
|
|
@@ -1967,19 +1967,19 @@ function si(t) {
|
|
|
1967
1967
|
}
|
|
1968
1968
|
return e;
|
|
1969
1969
|
}
|
|
1970
|
-
const
|
|
1970
|
+
const Rl = (t) => t;
|
|
1971
1971
|
function xt(t, e, n, r) {
|
|
1972
1972
|
var s = (t & bo) !== 0, i = (t & xo) !== 0, a = s && i, o = (t & wo) !== 0, c = a ? "both" : s ? "in" : "out", l, u = e.inert, d = e.style.overflow, h, p;
|
|
1973
1973
|
function w() {
|
|
1974
1974
|
var z = Ie, F = pe;
|
|
1975
|
-
|
|
1975
|
+
jt(null), yt(null);
|
|
1976
1976
|
try {
|
|
1977
1977
|
return l ?? (l = n()(e, (r == null ? void 0 : r()) ?? /** @type {P} */
|
|
1978
1978
|
{}, {
|
|
1979
1979
|
direction: c
|
|
1980
1980
|
}));
|
|
1981
1981
|
} finally {
|
|
1982
|
-
|
|
1982
|
+
jt(z), yt(F);
|
|
1983
1983
|
}
|
|
1984
1984
|
}
|
|
1985
1985
|
var m = {
|
|
@@ -2028,7 +2028,7 @@ function xt(t, e, n, r) {
|
|
|
2028
2028
|
}
|
|
2029
2029
|
function is(t, e, n, r, s) {
|
|
2030
2030
|
var i = r === 1;
|
|
2031
|
-
if (
|
|
2031
|
+
if (Ro(e)) {
|
|
2032
2032
|
var a, o = !1;
|
|
2033
2033
|
return Sn(() => {
|
|
2034
2034
|
if (!o) {
|
|
@@ -2051,7 +2051,7 @@ function is(t, e, n, r, s) {
|
|
|
2051
2051
|
reset: An,
|
|
2052
2052
|
t: () => r
|
|
2053
2053
|
};
|
|
2054
|
-
const { delay: c = 0, css: l, tick: u, easing: d =
|
|
2054
|
+
const { delay: c = 0, css: l, tick: u, easing: d = Rl } = e;
|
|
2055
2055
|
var h = [];
|
|
2056
2056
|
if (i && n === void 0 && (u && u(0, 1), l)) {
|
|
2057
2057
|
var p = si(l(0, 1));
|
|
@@ -2068,21 +2068,21 @@ function is(t, e, n, r, s) {
|
|
|
2068
2068
|
if (_ > 0) {
|
|
2069
2069
|
var F = !1;
|
|
2070
2070
|
if (l)
|
|
2071
|
-
for (var
|
|
2072
|
-
var A = S + x * d(L /
|
|
2071
|
+
for (var E = Math.ceil(_ / 16.666666666666668), L = 0; L <= E; L += 1) {
|
|
2072
|
+
var A = S + x * d(L / E), N = si(l(A, 1 - A));
|
|
2073
2073
|
z.push(N), F || (F = N.overflow === "hidden");
|
|
2074
2074
|
}
|
|
2075
2075
|
F && (t.style.overflow = "hidden"), w = () => {
|
|
2076
|
-
var
|
|
2076
|
+
var Y = (
|
|
2077
2077
|
/** @type {number} */
|
|
2078
2078
|
/** @type {globalThis.Animation} */
|
|
2079
2079
|
m.currentTime
|
|
2080
2080
|
);
|
|
2081
|
-
return S + x * d(
|
|
2081
|
+
return S + x * d(Y / _);
|
|
2082
2082
|
}, u && Al(() => {
|
|
2083
2083
|
if (m.playState !== "running") return !1;
|
|
2084
|
-
var
|
|
2085
|
-
return u(
|
|
2084
|
+
var Y = w();
|
|
2085
|
+
return u(Y, 1 - Y), !0;
|
|
2086
2086
|
});
|
|
2087
2087
|
}
|
|
2088
2088
|
m = t.animate(z, { duration: _, fill: "forwards" }), m.onfinish = () => {
|
|
@@ -2101,7 +2101,7 @@ function is(t, e, n, r, s) {
|
|
|
2101
2101
|
t: () => w()
|
|
2102
2102
|
};
|
|
2103
2103
|
}
|
|
2104
|
-
function
|
|
2104
|
+
function jl(t, e, n = e) {
|
|
2105
2105
|
var r = Wn();
|
|
2106
2106
|
ha(t, "input", (s) => {
|
|
2107
2107
|
var i = s ? t.defaultValue : t.value;
|
|
@@ -2129,7 +2129,7 @@ function ka(t, e, n) {
|
|
|
2129
2129
|
if (t.multiple)
|
|
2130
2130
|
return Dl(t, e);
|
|
2131
2131
|
for (var r of t.options) {
|
|
2132
|
-
var s =
|
|
2132
|
+
var s = On(r);
|
|
2133
2133
|
if (Vo(s, e)) {
|
|
2134
2134
|
r.selected = !0;
|
|
2135
2135
|
return;
|
|
@@ -2163,27 +2163,27 @@ function ya(t, e, n = e) {
|
|
|
2163
2163
|
ha(t, "change", (s) => {
|
|
2164
2164
|
var i = s ? "[selected]" : ":checked", a;
|
|
2165
2165
|
if (t.multiple)
|
|
2166
|
-
a = [].map.call(t.querySelectorAll(i),
|
|
2166
|
+
a = [].map.call(t.querySelectorAll(i), On);
|
|
2167
2167
|
else {
|
|
2168
2168
|
var o = t.querySelector(i) ?? // will fall back to first non-disabled option if no option is selected
|
|
2169
2169
|
t.querySelector("option:not([disabled])");
|
|
2170
|
-
a = o &&
|
|
2170
|
+
a = o && On(o);
|
|
2171
2171
|
}
|
|
2172
2172
|
n(a);
|
|
2173
2173
|
}), $n(() => {
|
|
2174
2174
|
var s = e();
|
|
2175
2175
|
if (ka(t, s, r), r && s === void 0) {
|
|
2176
2176
|
var i = t.querySelector(":checked");
|
|
2177
|
-
i !== null && (s =
|
|
2177
|
+
i !== null && (s = On(i), n(s));
|
|
2178
2178
|
}
|
|
2179
2179
|
t.__value = s, r = !1;
|
|
2180
2180
|
}), Fl(t);
|
|
2181
2181
|
}
|
|
2182
2182
|
function Dl(t, e) {
|
|
2183
2183
|
for (var n of t.options)
|
|
2184
|
-
n.selected = ~e.indexOf(
|
|
2184
|
+
n.selected = ~e.indexOf(On(n));
|
|
2185
2185
|
}
|
|
2186
|
-
function
|
|
2186
|
+
function On(t) {
|
|
2187
2187
|
return "__value" in t ? t.__value : t.value;
|
|
2188
2188
|
}
|
|
2189
2189
|
function ii(t, e) {
|
|
@@ -2209,7 +2209,7 @@ function ct(t = !1) {
|
|
|
2209
2209
|
ze
|
|
2210
2210
|
), n = e.l.u;
|
|
2211
2211
|
if (!n) return;
|
|
2212
|
-
let r = () =>
|
|
2212
|
+
let r = () => Cn(e.s);
|
|
2213
2213
|
if (t) {
|
|
2214
2214
|
let s = 0, i = (
|
|
2215
2215
|
/** @type {Record<string, any>} */
|
|
@@ -2227,7 +2227,7 @@ function ct(t = !1) {
|
|
|
2227
2227
|
n.b.length && tl(() => {
|
|
2228
2228
|
ai(e, r), ur(n.b);
|
|
2229
2229
|
}), It(() => {
|
|
2230
|
-
const s = Ft(() => n.m.map(
|
|
2230
|
+
const s = Ft(() => n.m.map(jo));
|
|
2231
2231
|
return () => {
|
|
2232
2232
|
for (const i of s)
|
|
2233
2233
|
typeof i == "function" && i();
|
|
@@ -2250,10 +2250,10 @@ function Lr(t) {
|
|
|
2250
2250
|
);
|
|
2251
2251
|
});
|
|
2252
2252
|
}
|
|
2253
|
-
function
|
|
2253
|
+
function Ol(t) {
|
|
2254
2254
|
ze === null && ys(), Lr(() => () => Ft(t));
|
|
2255
2255
|
}
|
|
2256
|
-
function
|
|
2256
|
+
function Pl(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 Ml() {
|
|
@@ -2268,7 +2268,7 @@ function Ml() {
|
|
|
2268
2268
|
]
|
|
2269
2269
|
);
|
|
2270
2270
|
if (s) {
|
|
2271
|
-
const a = kr(s) ? s.slice() : [s], o =
|
|
2271
|
+
const a = kr(s) ? s.slice() : [s], o = Pl(
|
|
2272
2272
|
/** @type {string} */
|
|
2273
2273
|
e,
|
|
2274
2274
|
n,
|
|
@@ -2352,7 +2352,7 @@ function g(t, e, n, r) {
|
|
|
2352
2352
|
t[e]
|
|
2353
2353
|
)) : l = /** @type {V} */
|
|
2354
2354
|
t[e];
|
|
2355
|
-
var u = Bt in t ||
|
|
2355
|
+
var u = Bt in t || Pi in t, d = a && (((A = on(t, e)) == null ? void 0 : A.set) ?? (u && e in t && ((N) => t[e] = N))) || void 0, h = (
|
|
2356
2356
|
/** @type {V} */
|
|
2357
2357
|
r
|
|
2358
2358
|
), p = !0, w = !1, m = () => (w = !0, p && (p = !1, o ? h = Ft(
|
|
@@ -2387,20 +2387,20 @@ function g(t, e, n, r) {
|
|
|
2387
2387
|
return S;
|
|
2388
2388
|
if (d) {
|
|
2389
2389
|
var _ = t.$$legacy;
|
|
2390
|
-
return function(N,
|
|
2391
|
-
return arguments.length > 0 ? ((!i || !
|
|
2390
|
+
return function(N, Y) {
|
|
2391
|
+
return arguments.length > 0 ? ((!i || !Y || _ || c) && d(Y ? S() : N), N) : S();
|
|
2392
2392
|
};
|
|
2393
2393
|
}
|
|
2394
|
-
var z = !1, F = !1,
|
|
2394
|
+
var z = !1, F = !1, E = /* @__PURE__ */ $r(l), L = oi(
|
|
2395
2395
|
() => /* @__PURE__ */ Ne(() => {
|
|
2396
|
-
var N = S(),
|
|
2397
|
-
return z ? (z = !1, F = !0,
|
|
2396
|
+
var N = S(), Y = f(E);
|
|
2397
|
+
return z ? (z = !1, F = !0, Y) : (F = !1, E.v = N);
|
|
2398
2398
|
})
|
|
2399
2399
|
);
|
|
2400
|
-
return s || (L.equals = xs), function(N,
|
|
2400
|
+
return s || (L.equals = xs), function(N, Y) {
|
|
2401
2401
|
if (arguments.length > 0) {
|
|
2402
|
-
const le =
|
|
2403
|
-
return L.equals(le) || (z = !0, b(
|
|
2402
|
+
const le = Y ? f(L) : i && a ? I(N) : N;
|
|
2403
|
+
return L.equals(le) || (z = !0, b(E, le), w && h !== void 0 && (h = le), Ft(() => f(L))), N;
|
|
2404
2404
|
}
|
|
2405
2405
|
return f(L);
|
|
2406
2406
|
};
|
|
@@ -2408,7 +2408,7 @@ function g(t, e, n, r) {
|
|
|
2408
2408
|
function Hl(t) {
|
|
2409
2409
|
return new Yl(t);
|
|
2410
2410
|
}
|
|
2411
|
-
var
|
|
2411
|
+
var Pt, mt;
|
|
2412
2412
|
class Yl {
|
|
2413
2413
|
/**
|
|
2414
2414
|
* @param {ComponentConstructorOptions & {
|
|
@@ -2417,7 +2417,7 @@ class Yl {
|
|
|
2417
2417
|
*/
|
|
2418
2418
|
constructor(e) {
|
|
2419
2419
|
/** @type {any} */
|
|
2420
|
-
Mr(this,
|
|
2420
|
+
Mr(this, Pt);
|
|
2421
2421
|
/** @type {Record<string, any>} */
|
|
2422
2422
|
Mr(this, mt);
|
|
2423
2423
|
var i;
|
|
@@ -2432,7 +2432,7 @@ class Yl {
|
|
|
2432
2432
|
return f(n.get(o) ?? r(o, Reflect.get(a, o)));
|
|
2433
2433
|
},
|
|
2434
2434
|
has(a, o) {
|
|
2435
|
-
return o ===
|
|
2435
|
+
return o === Pi ? !0 : (f(n.get(o) ?? r(o, Reflect.get(a, o))), Reflect.has(a, o));
|
|
2436
2436
|
},
|
|
2437
2437
|
set(a, o, c) {
|
|
2438
2438
|
return b(n.get(o) ?? r(o, c), c), Reflect.set(a, o, c);
|
|
@@ -2446,7 +2446,7 @@ class Yl {
|
|
|
2446
2446
|
context: e.context,
|
|
2447
2447
|
intro: e.intro ?? !1,
|
|
2448
2448
|
recover: e.recover
|
|
2449
|
-
})), (!((i = e == null ? void 0 : e.props) != null && i.$$host) || e.sync === !1) && v(), Nr(this,
|
|
2449
|
+
})), (!((i = e == null ? void 0 : e.props) != null && i.$$host) || e.sync === !1) && v(), Nr(this, Pt, s.$$events);
|
|
2450
2450
|
for (const a of Object.keys(st(this, mt)))
|
|
2451
2451
|
a === "$set" || a === "$destroy" || a === "$on" || cr(this, a, {
|
|
2452
2452
|
get() {
|
|
@@ -2475,10 +2475,10 @@ class Yl {
|
|
|
2475
2475
|
* @returns {any}
|
|
2476
2476
|
*/
|
|
2477
2477
|
$on(e, n) {
|
|
2478
|
-
st(this,
|
|
2478
|
+
st(this, Pt)[e] = st(this, Pt)[e] || [];
|
|
2479
2479
|
const r = (...s) => n.call(this, ...s);
|
|
2480
|
-
return st(this,
|
|
2481
|
-
st(this,
|
|
2480
|
+
return st(this, Pt)[e].push(r), () => {
|
|
2481
|
+
st(this, Pt)[e] = st(this, Pt)[e].filter(
|
|
2482
2482
|
/** @param {any} fn */
|
|
2483
2483
|
(s) => s !== r
|
|
2484
2484
|
);
|
|
@@ -2488,7 +2488,7 @@ class Yl {
|
|
|
2488
2488
|
st(this, mt).$destroy();
|
|
2489
2489
|
}
|
|
2490
2490
|
}
|
|
2491
|
-
|
|
2491
|
+
Pt = new WeakMap(), mt = new WeakMap();
|
|
2492
2492
|
let za;
|
|
2493
2493
|
typeof HTMLElement == "function" && (za = class extends HTMLElement {
|
|
2494
2494
|
/**
|
|
@@ -2499,25 +2499,25 @@ typeof HTMLElement == "function" && (za = class extends HTMLElement {
|
|
|
2499
2499
|
constructor(e, n, r) {
|
|
2500
2500
|
super();
|
|
2501
2501
|
/** The Svelte component constructor */
|
|
2502
|
-
|
|
2502
|
+
C(this, "$$ctor");
|
|
2503
2503
|
/** Slots */
|
|
2504
|
-
|
|
2504
|
+
C(this, "$$s");
|
|
2505
2505
|
/** @type {any} The Svelte component instance */
|
|
2506
|
-
|
|
2506
|
+
C(this, "$$c");
|
|
2507
2507
|
/** Whether or not the custom element is connected */
|
|
2508
|
-
|
|
2508
|
+
C(this, "$$cn", !1);
|
|
2509
2509
|
/** @type {Record<string, any>} Component props data */
|
|
2510
|
-
|
|
2510
|
+
C(this, "$$d", {});
|
|
2511
2511
|
/** `true` if currently in the process of reflecting component props back to attributes */
|
|
2512
|
-
|
|
2512
|
+
C(this, "$$r", !1);
|
|
2513
2513
|
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
|
2514
|
-
|
|
2514
|
+
C(this, "$$p_d", {});
|
|
2515
2515
|
/** @type {Record<string, EventListenerOrEventListenerObject[]>} Event listeners */
|
|
2516
|
-
|
|
2516
|
+
C(this, "$$l", {});
|
|
2517
2517
|
/** @type {Map<EventListenerOrEventListenerObject, Function>} Event listener unsubscribe functions */
|
|
2518
|
-
|
|
2518
|
+
C(this, "$$l_u", /* @__PURE__ */ new Map());
|
|
2519
2519
|
/** @type {any} The managed render effect for reflecting attributes */
|
|
2520
|
-
|
|
2520
|
+
C(this, "$$me");
|
|
2521
2521
|
this.$$ctor = e, this.$$s = n, r && this.attachShadow({ mode: "open" });
|
|
2522
2522
|
}
|
|
2523
2523
|
/**
|
|
@@ -2761,12 +2761,12 @@ function Xl(t, { delay: e = 0, duration: n = 400, easing: r = Ts, start: s = 0,
|
|
|
2761
2761
|
}
|
|
2762
2762
|
class Zt {
|
|
2763
2763
|
constructor(e, n, r, s = "", i = [], a) {
|
|
2764
|
-
|
|
2765
|
-
|
|
2766
|
-
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
|
|
2764
|
+
C(this, "timeStamp");
|
|
2765
|
+
C(this, "sentByUser");
|
|
2766
|
+
C(this, "content");
|
|
2767
|
+
C(this, "html");
|
|
2768
|
+
C(this, "attachments");
|
|
2769
|
+
C(this, "agentUsed");
|
|
2770
2770
|
this.timeStamp = e, this.sentByUser = n, this.content = r, this.html = s, this.attachments = i, this.agentUsed = a;
|
|
2771
2771
|
}
|
|
2772
2772
|
toJson() {
|
|
@@ -2829,12 +2829,12 @@ class Zt {
|
|
|
2829
2829
|
}
|
|
2830
2830
|
class Ss {
|
|
2831
2831
|
constructor(e, n, r, s, i, a = "Documento Comune") {
|
|
2832
|
-
|
|
2833
|
-
|
|
2834
|
-
|
|
2835
|
-
|
|
2836
|
-
|
|
2837
|
-
|
|
2832
|
+
C(this, "filename");
|
|
2833
|
+
C(this, "external_id");
|
|
2834
|
+
C(this, "path");
|
|
2835
|
+
C(this, "gendoc_id");
|
|
2836
|
+
C(this, "isCommon");
|
|
2837
|
+
C(this, "commonType");
|
|
2838
2838
|
this.filename = e, this.external_id = n, this.path = r, this.gendoc_id = s, this.isCommon = i, this.commonType = a;
|
|
2839
2839
|
}
|
|
2840
2840
|
toJson() {
|
|
@@ -2853,13 +2853,13 @@ class Ss {
|
|
|
2853
2853
|
}
|
|
2854
2854
|
class ln {
|
|
2855
2855
|
constructor(e, n, r, s = "New chat", i = { lockedAgentId: null, pendingAction: null, info: [] }, a = [], o = 0) {
|
|
2856
|
-
|
|
2857
|
-
|
|
2858
|
-
|
|
2859
|
-
|
|
2860
|
-
|
|
2861
|
-
|
|
2862
|
-
|
|
2856
|
+
C(this, "_id");
|
|
2857
|
+
C(this, "companyId");
|
|
2858
|
+
C(this, "userId");
|
|
2859
|
+
C(this, "title");
|
|
2860
|
+
C(this, "state");
|
|
2861
|
+
C(this, "messages");
|
|
2862
|
+
C(this, "lastUpdate");
|
|
2863
2863
|
this._id = e, this.companyId = n, this.userId = r, this.title = s, this.state = i, this.messages = a, this.lastUpdate = o;
|
|
2864
2864
|
}
|
|
2865
2865
|
toJson() {
|
|
@@ -2897,19 +2897,19 @@ function ci(t) {
|
|
|
2897
2897
|
function ec(t) {
|
|
2898
2898
|
return Ql.includes(t);
|
|
2899
2899
|
}
|
|
2900
|
-
const tc = /* @__NO_SIDE_EFFECTS__ */ () => "Assistente AI", nc = /* @__NO_SIDE_EFFECTS__ */ () => "Scrivi un messaggio...", rc = /* @__NO_SIDE_EFFECTS__ */ () => "Aggiungi allegato", sc = /* @__NO_SIDE_EFFECTS__ */ () => "Normative", ic = /* @__NO_SIDE_EFFECTS__ */ () => "Normativa", ac = /* @__NO_SIDE_EFFECTS__ */ () => "Scegli", oc = /* @__NO_SIDE_EFFECTS__ */ () => "Carica file", lc = /* @__NO_SIDE_EFFECTS__ */ () => "Documento Comune", cc = /* @__NO_SIDE_EFFECTS__ */ () => "Interrompi registrazione", uc = /* @__NO_SIDE_EFFECTS__ */ () => "Inizia registrazione", dc = /* @__NO_SIDE_EFFECTS__ */ () => "Invia messaggio", fc = /* @__NO_SIDE_EFFECTS__ */ (t) => `Sei sicuro di voler eliminare la chat: ${t.chatTitle}?`, hc = /* @__NO_SIDE_EFFECTS__ */ () => "Nuova Chat", pc = /* @__NO_SIDE_EFFECTS__ */ () => "Cronologia", vc = /* @__NO_SIDE_EFFECTS__ */ () => "Attiva volume", gc = /* @__NO_SIDE_EFFECTS__ */ () => "Disattiva volume", mc = /* @__NO_SIDE_EFFECTS__ */ () => "Mostra cronologia", bc = /* @__NO_SIDE_EFFECTS__ */ () => "Chiudi", xc = /* @__NO_SIDE_EFFECTS__ */ () => "Fonti", wc = /* @__NO_SIDE_EFFECTS__ */ () => "Visualizza allegato", _c = /* @__NO_SIDE_EFFECTS__ */ () => "Cerca", kc = /* @__NO_SIDE_EFFECTS__ */ () => "Documenti", yc = /* @__NO_SIDE_EFFECTS__ */ () => "Ricerca in corso...", zc = /* @__NO_SIDE_EFFECTS__ */ () => "Inserisci almeno 3 caratteri per iniziare la ricerca", $c = /* @__NO_SIDE_EFFECTS__ */ () => "Nessuna normativa trovata", Tc = /* @__NO_SIDE_EFFECTS__ */ () => "Nessun documento trovato", Sc = /* @__NO_SIDE_EFFECTS__ */ () => "Riproduci",
|
|
2900
|
+
const tc = /* @__NO_SIDE_EFFECTS__ */ () => "Assistente AI", nc = /* @__NO_SIDE_EFFECTS__ */ () => "Scrivi un messaggio...", rc = /* @__NO_SIDE_EFFECTS__ */ () => "Aggiungi allegato", sc = /* @__NO_SIDE_EFFECTS__ */ () => "Normative", ic = /* @__NO_SIDE_EFFECTS__ */ () => "Normativa", ac = /* @__NO_SIDE_EFFECTS__ */ () => "Scegli", oc = /* @__NO_SIDE_EFFECTS__ */ () => "Carica file", lc = /* @__NO_SIDE_EFFECTS__ */ () => "Documento Comune", cc = /* @__NO_SIDE_EFFECTS__ */ () => "Interrompi registrazione", uc = /* @__NO_SIDE_EFFECTS__ */ () => "Inizia registrazione", dc = /* @__NO_SIDE_EFFECTS__ */ () => "Invia messaggio", fc = /* @__NO_SIDE_EFFECTS__ */ (t) => `Sei sicuro di voler eliminare la chat: ${t.chatTitle}?`, hc = /* @__NO_SIDE_EFFECTS__ */ () => "Nuova Chat", pc = /* @__NO_SIDE_EFFECTS__ */ () => "Cronologia", vc = /* @__NO_SIDE_EFFECTS__ */ () => "Attiva volume", gc = /* @__NO_SIDE_EFFECTS__ */ () => "Disattiva volume", mc = /* @__NO_SIDE_EFFECTS__ */ () => "Mostra cronologia", bc = /* @__NO_SIDE_EFFECTS__ */ () => "Chiudi", xc = /* @__NO_SIDE_EFFECTS__ */ () => "Fonti", wc = /* @__NO_SIDE_EFFECTS__ */ () => "Visualizza allegato", _c = /* @__NO_SIDE_EFFECTS__ */ () => "Cerca", kc = /* @__NO_SIDE_EFFECTS__ */ () => "Documenti", yc = /* @__NO_SIDE_EFFECTS__ */ () => "Ricerca in corso...", zc = /* @__NO_SIDE_EFFECTS__ */ () => "Inserisci almeno 3 caratteri per iniziare la ricerca", $c = /* @__NO_SIDE_EFFECTS__ */ () => "Nessuna normativa trovata", Tc = /* @__NO_SIDE_EFFECTS__ */ () => "Nessun documento trovato", Sc = /* @__NO_SIDE_EFFECTS__ */ () => "Riproduci", Ec = /* @__NO_SIDE_EFFECTS__ */ () => "Pausa", Cc = /* @__NO_SIDE_EFFECTS__ */ () => "Errore durante l'invio del messaggio. Riprova.", Ic = /* @__NO_SIDE_EFFECTS__ */ () => "Nessuna chat attiva. Crea una nuova chat per iniziare.", Ac = /* @__NO_SIDE_EFFECTS__ */ () => "Errore durante il caricamento del nome utente.", Lc = /* @__NO_SIDE_EFFECTS__ */ () => "Manuale Suite", Rc = /* @__NO_SIDE_EFFECTS__ */ () => "Ferma", jc = /* @__NO_SIDE_EFFECTS__ */ () => "Copia elenco fonti", Fc = /* @__NO_SIDE_EFFECTS__ */ () => "Fonti copiate!", Dc = /* @__NO_SIDE_EFFECTS__ */ () => "Copia", Oc = /* @__NO_SIDE_EFFECTS__ */ () => "Copiato!", Pc = /* @__NO_SIDE_EFFECTS__ */ (t) => `Hai raggiunto il numero massimo di ${t.count} allegati consentiti.`, Mc = /* @__NO_SIDE_EFFECTS__ */ () => "Nessun gendoc trovato", Nc = /* @__NO_SIDE_EFFECTS__ */ () => "Nessuna trascrizione trovata", Uc = /* @__NO_SIDE_EFFECTS__ */ () => "Trascina i file qui", Bc = /* @__NO_SIDE_EFFECTS__ */ () => "L'agente selezionato non supporta file esterni.", qc = /* @__NO_SIDE_EFFECTS__ */ () => "AI Assistant", Hc = /* @__NO_SIDE_EFFECTS__ */ () => "Type your message here...", Yc = /* @__NO_SIDE_EFFECTS__ */ () => "Add attachment", Gc = /* @__NO_SIDE_EFFECTS__ */ () => "Normatives", Jc = /* @__NO_SIDE_EFFECTS__ */ () => "Normative", Wc = /* @__NO_SIDE_EFFECTS__ */ () => "Choose", Zc = /* @__NO_SIDE_EFFECTS__ */ () => "Upload file", Xc = /* @__NO_SIDE_EFFECTS__ */ () => "Common Document", Vc = /* @__NO_SIDE_EFFECTS__ */ () => "Stop recording", Qc = /* @__NO_SIDE_EFFECTS__ */ () => "Start recording", Kc = /* @__NO_SIDE_EFFECTS__ */ () => "Send message", eu = /* @__NO_SIDE_EFFECTS__ */ (t) => `Are you sure you want to delete the chat: ${t.chatTitle}?`, tu = /* @__NO_SIDE_EFFECTS__ */ () => "New Chat", nu = /* @__NO_SIDE_EFFECTS__ */ () => "History", ru = /* @__NO_SIDE_EFFECTS__ */ () => "Unmute", su = /* @__NO_SIDE_EFFECTS__ */ () => "Mute", iu = /* @__NO_SIDE_EFFECTS__ */ () => "Show history", au = /* @__NO_SIDE_EFFECTS__ */ () => "Close", ou = /* @__NO_SIDE_EFFECTS__ */ () => "Sources", lu = /* @__NO_SIDE_EFFECTS__ */ () => "View attachment", cu = /* @__NO_SIDE_EFFECTS__ */ () => "Search", uu = /* @__NO_SIDE_EFFECTS__ */ () => "Documents", du = /* @__NO_SIDE_EFFECTS__ */ () => "Search in progress...", fu = /* @__NO_SIDE_EFFECTS__ */ () => "Please enter at least 3 characters to start the search", hu = /* @__NO_SIDE_EFFECTS__ */ () => "No normative found", pu = /* @__NO_SIDE_EFFECTS__ */ () => "No document found", vu = /* @__NO_SIDE_EFFECTS__ */ () => "Play", gu = /* @__NO_SIDE_EFFECTS__ */ () => "Pause", mu = /* @__NO_SIDE_EFFECTS__ */ () => "Error sending message. Please try again.", bu = /* @__NO_SIDE_EFFECTS__ */ () => "No active chat. Please create a new chat to get started.", xu = /* @__NO_SIDE_EFFECTS__ */ () => "Error loading username.", wu = /* @__NO_SIDE_EFFECTS__ */ () => "Suite Manual", _u = /* @__NO_SIDE_EFFECTS__ */ () => "Stop", ku = /* @__NO_SIDE_EFFECTS__ */ () => "Copy sources list", yu = /* @__NO_SIDE_EFFECTS__ */ () => "Sources copied!", zu = /* @__NO_SIDE_EFFECTS__ */ () => "Copy", $u = /* @__NO_SIDE_EFFECTS__ */ () => "Copied!", Tu = /* @__NO_SIDE_EFFECTS__ */ (t) => `You have reached the maximum number of ${t.count} attachments allowed.`, Su = /* @__NO_SIDE_EFFECTS__ */ () => "No gendoc found", Eu = /* @__NO_SIDE_EFFECTS__ */ () => "No transcription found", Cu = /* @__NO_SIDE_EFFECTS__ */ () => "Drop files here", Iu = /* @__NO_SIDE_EFFECTS__ */ () => "The selected agent does not support external files.", Au = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
|
|
2901
2901
|
en: qc,
|
|
2902
2902
|
it: tc
|
|
2903
2903
|
})[e.languageTag ?? X()](), Lu = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
|
|
2904
2904
|
en: Hc,
|
|
2905
2905
|
it: nc
|
|
2906
|
-
})[e.languageTag ?? X()](),
|
|
2906
|
+
})[e.languageTag ?? X()](), Ru = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
|
|
2907
2907
|
en: Yc,
|
|
2908
2908
|
it: rc
|
|
2909
2909
|
})[e.languageTag ?? X()](), $a = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
|
|
2910
2910
|
en: Gc,
|
|
2911
2911
|
it: sc
|
|
2912
|
-
})[e.languageTag ?? X()](),
|
|
2912
|
+
})[e.languageTag ?? X()](), ju = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
|
|
2913
2913
|
en: Jc,
|
|
2914
2914
|
it: ic
|
|
2915
2915
|
})[e.languageTag ?? X()](), Fu = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
|
|
@@ -2918,10 +2918,10 @@ const tc = /* @__NO_SIDE_EFFECTS__ */ () => "Assistente AI", nc = /* @__NO_SIDE_
|
|
|
2918
2918
|
})[e.languageTag ?? X()](), Du = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
|
|
2919
2919
|
en: Zc,
|
|
2920
2920
|
it: oc
|
|
2921
|
-
})[e.languageTag ?? X()](),
|
|
2921
|
+
})[e.languageTag ?? X()](), Ou = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
|
|
2922
2922
|
en: Xc,
|
|
2923
2923
|
it: lc
|
|
2924
|
-
})[e.languageTag ?? X()](),
|
|
2924
|
+
})[e.languageTag ?? X()](), Pu = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
|
|
2925
2925
|
en: Vc,
|
|
2926
2926
|
it: cc
|
|
2927
2927
|
})[e.languageTag ?? X()](), Mu = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
|
|
@@ -2980,25 +2980,25 @@ const tc = /* @__NO_SIDE_EFFECTS__ */ () => "Assistente AI", nc = /* @__NO_SIDE_
|
|
|
2980
2980
|
it: Sc
|
|
2981
2981
|
})[e.languageTag ?? X()](), Ku = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
|
|
2982
2982
|
en: gu,
|
|
2983
|
-
it:
|
|
2983
|
+
it: Ec
|
|
2984
2984
|
})[e.languageTag ?? X()](), fi = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
|
|
2985
2985
|
en: mu,
|
|
2986
|
-
it:
|
|
2986
|
+
it: Cc
|
|
2987
2987
|
})[e.languageTag ?? X()](), ed = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
|
|
2988
2988
|
en: bu,
|
|
2989
2989
|
it: Ic
|
|
2990
2990
|
})[e.languageTag ?? X()](), td = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
|
|
2991
2991
|
en: xu,
|
|
2992
2992
|
it: Ac
|
|
2993
|
-
})[e.languageTag ?? X()](),
|
|
2993
|
+
})[e.languageTag ?? X()](), Ea = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
|
|
2994
2994
|
en: wu,
|
|
2995
2995
|
it: Lc
|
|
2996
2996
|
})[e.languageTag ?? X()](), nd = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
|
|
2997
2997
|
en: _u,
|
|
2998
|
-
it:
|
|
2998
|
+
it: Rc
|
|
2999
2999
|
})[e.languageTag ?? X()](), Yr = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
|
|
3000
3000
|
en: ku,
|
|
3001
|
-
it:
|
|
3001
|
+
it: jc
|
|
3002
3002
|
})[e.languageTag ?? X()](), rd = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
|
|
3003
3003
|
en: yu,
|
|
3004
3004
|
it: Fc
|
|
@@ -3007,73 +3007,73 @@ const tc = /* @__NO_SIDE_EFFECTS__ */ () => "Assistente AI", nc = /* @__NO_SIDE_
|
|
|
3007
3007
|
it: Dc
|
|
3008
3008
|
})[e.languageTag ?? X()](), hi = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
|
|
3009
3009
|
en: $u,
|
|
3010
|
-
it:
|
|
3010
|
+
it: Oc
|
|
3011
3011
|
})[e.languageTag ?? X()](), id = /* @__NO_SIDE_EFFECTS__ */ (t, e = {}) => ({
|
|
3012
3012
|
en: Tu,
|
|
3013
|
-
it:
|
|
3013
|
+
it: Pc
|
|
3014
3014
|
})[e.languageTag ?? X()](t), ad = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
|
|
3015
3015
|
en: Su,
|
|
3016
3016
|
it: Mc
|
|
3017
3017
|
})[e.languageTag ?? X()](), od = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
|
|
3018
|
-
en:
|
|
3018
|
+
en: Eu,
|
|
3019
3019
|
it: Nc
|
|
3020
3020
|
})[e.languageTag ?? X()](), ld = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
|
|
3021
|
-
en:
|
|
3021
|
+
en: Cu,
|
|
3022
3022
|
it: Uc
|
|
3023
3023
|
})[e.languageTag ?? X()](), cd = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
|
|
3024
3024
|
en: Iu,
|
|
3025
3025
|
it: Bc
|
|
3026
3026
|
})[e.languageTag ?? X()]();
|
|
3027
|
-
var ud = (t, e) => e(!e()), dd = /* @__PURE__ */
|
|
3027
|
+
var ud = (t, e) => e(!e()), dd = /* @__PURE__ */ R('<button class="new-chat svelte-ib8fo5"><i class="fa-solid fa-volume-xmark"></i></button>'), fd = (t, e) => e(!e()), hd = /* @__PURE__ */ R('<button class="new-chat svelte-ib8fo5" aria-label="Mute"><i class="fa-solid fa-volume-high"></i></button>'), pd = (t, e) => e(!e()), vd = (t, e, n) => {
|
|
3028
3028
|
e() ? (e(!1), setTimeout(
|
|
3029
3029
|
() => {
|
|
3030
3030
|
n(!1);
|
|
3031
3031
|
},
|
|
3032
3032
|
450
|
|
3033
3033
|
)) : n(!1);
|
|
3034
|
-
}, gd = /* @__PURE__ */
|
|
3034
|
+
}, gd = /* @__PURE__ */ R('<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>');
|
|
3035
3035
|
const md = {
|
|
3036
3036
|
hash: "svelte-ib8fo5",
|
|
3037
3037
|
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;}"
|
|
3038
3038
|
};
|
|
3039
|
-
function
|
|
3039
|
+
function Ca(t, e) {
|
|
3040
3040
|
re(e, !0), ue(t, md);
|
|
3041
3041
|
let n = g(e, "show", 15, !1), r = g(e, "showHistory", 15), s = g(e, "actChat", 15), i = g(e, "muted", 15), a = g(e, "languageSelected", 15), o = g(e, "username", 15), c = g(e, "error", 15), l = g(e, "newChat", 7);
|
|
3042
3042
|
Lr(() => {
|
|
3043
3043
|
});
|
|
3044
|
-
var u = gd(), d = y(u), h = y(d), p =
|
|
3044
|
+
var u = gd(), d = y(u), h = y(d), p = O(y(h), 2), w = y(p);
|
|
3045
3045
|
w.value = (w.__value = "it") == null ? "" : "it";
|
|
3046
|
-
var m =
|
|
3046
|
+
var m = O(w);
|
|
3047
3047
|
m.value = (m.__value = "en") == null ? "" : "en", k(p), k(h);
|
|
3048
|
-
var S =
|
|
3048
|
+
var S = O(h, 2), x = y(S);
|
|
3049
3049
|
{
|
|
3050
3050
|
var _ = (A) => {
|
|
3051
3051
|
var N = dd();
|
|
3052
3052
|
N.__click = [ud, i], D(
|
|
3053
|
-
(
|
|
3054
|
-
M(N, "title",
|
|
3053
|
+
(Y) => {
|
|
3054
|
+
M(N, "title", Y), M(N, "aria-label", i() ? "Unmute" : "Mute");
|
|
3055
3055
|
},
|
|
3056
3056
|
[() => /* @__PURE__ */ Bu()]
|
|
3057
3057
|
), T(A, N);
|
|
3058
3058
|
}, z = (A) => {
|
|
3059
3059
|
var N = hd();
|
|
3060
|
-
N.__click = [fd, i], D((
|
|
3060
|
+
N.__click = [fd, i], D((Y) => M(N, "title", Y), [() => /* @__PURE__ */ qu()]), T(A, N);
|
|
3061
3061
|
};
|
|
3062
|
-
|
|
3062
|
+
K(x, (A) => {
|
|
3063
3063
|
i() ? A(_) : A(z, !1);
|
|
3064
3064
|
});
|
|
3065
3065
|
}
|
|
3066
|
-
var F =
|
|
3066
|
+
var F = O(x, 2);
|
|
3067
3067
|
F.__click = function(...A) {
|
|
3068
3068
|
var N;
|
|
3069
3069
|
(N = l()) == null || N.apply(this, A);
|
|
3070
3070
|
};
|
|
3071
|
-
var
|
|
3072
|
-
|
|
3073
|
-
var L =
|
|
3071
|
+
var E = O(F, 2);
|
|
3072
|
+
E.__click = [pd, r];
|
|
3073
|
+
var L = O(E, 2);
|
|
3074
3074
|
return L.__click = [vd, r, n], k(S), k(d), k(u), D(
|
|
3075
|
-
(A, N,
|
|
3076
|
-
M(F, "title", A), M(
|
|
3075
|
+
(A, N, Y, le) => {
|
|
3076
|
+
M(F, "title", A), M(E, "title", N), M(E, "aria-label", Y), M(L, "title", le), M(L, "aria-label", le);
|
|
3077
3077
|
},
|
|
3078
3078
|
[
|
|
3079
3079
|
() => /* @__PURE__ */ Ta(),
|
|
@@ -3134,7 +3134,7 @@ function Ea(t, e) {
|
|
|
3134
3134
|
}
|
|
3135
3135
|
nn(["click"]);
|
|
3136
3136
|
oe(
|
|
3137
|
-
|
|
3137
|
+
Ca,
|
|
3138
3138
|
{
|
|
3139
3139
|
show: {},
|
|
3140
3140
|
showHistory: {},
|
|
@@ -3228,18 +3228,18 @@ const bd = () => {
|
|
|
3228
3228
|
};
|
|
3229
3229
|
class Kt {
|
|
3230
3230
|
constructor(e, n, r, s, i, a, o, c = "", l = !1, u = (/* @__PURE__ */ new Date()).getTime(), d = "loading", h = "") {
|
|
3231
|
-
|
|
3232
|
-
|
|
3233
|
-
|
|
3234
|
-
|
|
3235
|
-
|
|
3236
|
-
|
|
3237
|
-
|
|
3238
|
-
|
|
3239
|
-
|
|
3240
|
-
|
|
3241
|
-
|
|
3242
|
-
|
|
3231
|
+
C(this, "_id");
|
|
3232
|
+
C(this, "title");
|
|
3233
|
+
C(this, "companyId");
|
|
3234
|
+
C(this, "private");
|
|
3235
|
+
C(this, "createdAt");
|
|
3236
|
+
C(this, "externalId");
|
|
3237
|
+
C(this, "idArchivio");
|
|
3238
|
+
C(this, "gendocId");
|
|
3239
|
+
C(this, "isCommon");
|
|
3240
|
+
C(this, "hash");
|
|
3241
|
+
C(this, "checked");
|
|
3242
|
+
C(this, "path");
|
|
3243
3243
|
this._id = e, this.title = n, this.companyId = r, this.private = s, this.externalId = i, this.idArchivio = a, this.hash = o, this.gendocId = c, this.isCommon = l, this.createdAt = u, this.checked = d, this.path = h;
|
|
3244
3244
|
}
|
|
3245
3245
|
toJson() {
|
|
@@ -3267,17 +3267,17 @@ class Kt {
|
|
|
3267
3267
|
}
|
|
3268
3268
|
class en {
|
|
3269
3269
|
constructor(e, n, r, s, i, a, o, c = "file", l, u, d = (/* @__PURE__ */ new Date()).getTime()) {
|
|
3270
|
-
|
|
3271
|
-
|
|
3272
|
-
|
|
3273
|
-
|
|
3274
|
-
|
|
3275
|
-
|
|
3276
|
-
|
|
3277
|
-
|
|
3278
|
-
|
|
3279
|
-
|
|
3280
|
-
|
|
3270
|
+
C(this, "_id");
|
|
3271
|
+
C(this, "title");
|
|
3272
|
+
C(this, "externalId");
|
|
3273
|
+
C(this, "idArchivio");
|
|
3274
|
+
C(this, "isArchived");
|
|
3275
|
+
C(this, "status");
|
|
3276
|
+
C(this, "forgeType");
|
|
3277
|
+
C(this, "contentType");
|
|
3278
|
+
C(this, "url");
|
|
3279
|
+
C(this, "additionalReference");
|
|
3280
|
+
C(this, "createdAt");
|
|
3281
3281
|
this._id = e, this.title = n, this.externalId = r, this.idArchivio = s, this.isArchived = i, this.status = a, this.forgeType = o, this.contentType = c, this.url = l, this.additionalReference = u, this.createdAt = d;
|
|
3282
3282
|
}
|
|
3283
3283
|
toJson() {
|
|
@@ -3304,22 +3304,22 @@ class en {
|
|
|
3304
3304
|
}
|
|
3305
3305
|
class cn {
|
|
3306
3306
|
constructor(e, n, r, s, i, a, o, c = 0, l = !1, u = 40, d = !1, h = "") {
|
|
3307
|
-
|
|
3308
|
-
|
|
3309
|
-
|
|
3310
|
-
|
|
3311
|
-
|
|
3312
|
-
|
|
3313
|
-
|
|
3314
|
-
|
|
3315
|
-
|
|
3316
|
-
|
|
3317
|
-
|
|
3318
|
-
|
|
3319
|
-
|
|
3320
|
-
|
|
3321
|
-
|
|
3322
|
-
|
|
3307
|
+
C(this, "_id", "");
|
|
3308
|
+
C(this, "path", "");
|
|
3309
|
+
C(this, "name");
|
|
3310
|
+
C(this, "userId");
|
|
3311
|
+
C(this, "companyId");
|
|
3312
|
+
C(this, "isPrivate");
|
|
3313
|
+
C(this, "isTemplate");
|
|
3314
|
+
C(this, "reportHTML", []);
|
|
3315
|
+
C(this, "suiteId", 0);
|
|
3316
|
+
C(this, "tags", []);
|
|
3317
|
+
C(this, "createdAt");
|
|
3318
|
+
C(this, "updatedAt");
|
|
3319
|
+
C(this, "excludeFromDocumentale", !1);
|
|
3320
|
+
C(this, "minLevel", 40);
|
|
3321
|
+
C(this, "cancellato", !1);
|
|
3322
|
+
C(this, "altTitle", "");
|
|
3323
3323
|
this._id = e, this.path = n, this.name = r, this.userId = s, this.companyId = i, this.isPrivate = a, this.isTemplate = o, this.suiteId = c, this.createdAt = Date.now(), this.updatedAt = Date.now(), this.excludeFromDocumentale = l, this.minLevel = u, this.cancellato = d, this.altTitle = h;
|
|
3324
3324
|
}
|
|
3325
3325
|
static fromJSON(e) {
|
|
@@ -3365,15 +3365,15 @@ class cn {
|
|
|
3365
3365
|
}
|
|
3366
3366
|
class tn {
|
|
3367
3367
|
constructor(e, n, r, s, i, a, o, c, l) {
|
|
3368
|
-
|
|
3369
|
-
|
|
3370
|
-
|
|
3371
|
-
|
|
3372
|
-
|
|
3373
|
-
|
|
3374
|
-
|
|
3375
|
-
|
|
3376
|
-
|
|
3368
|
+
C(this, "_id");
|
|
3369
|
+
C(this, "companyId");
|
|
3370
|
+
C(this, "externalMeetingId");
|
|
3371
|
+
C(this, "name");
|
|
3372
|
+
C(this, "meetingDate");
|
|
3373
|
+
C(this, "partecipants");
|
|
3374
|
+
C(this, "transcription");
|
|
3375
|
+
C(this, "meetingUrl");
|
|
3376
|
+
C(this, "createdAt");
|
|
3377
3377
|
this._id = e, this.companyId = n, this.externalMeetingId = r, this.name = s, this.meetingDate = i, this.partecipants = a, this.transcription = o, this.meetingUrl = c, this.createdAt = l;
|
|
3378
3378
|
}
|
|
3379
3379
|
toJson() {
|
|
@@ -3393,7 +3393,7 @@ class tn {
|
|
|
3393
3393
|
return new tn(e._id, e.companyId, e.externalMeetingId, e.name, e.meetingDate, e.partecipants, e.transcription, e.meetingUrl, e.createdAt);
|
|
3394
3394
|
}
|
|
3395
3395
|
}
|
|
3396
|
-
const
|
|
3396
|
+
const Es = (t) => {
|
|
3397
3397
|
switch (t) {
|
|
3398
3398
|
case "aks_svi":
|
|
3399
3399
|
return "sviluppo";
|
|
@@ -3425,10 +3425,10 @@ const Cs = (t) => {
|
|
|
3425
3425
|
default:
|
|
3426
3426
|
return "https://versioneditorfs-573906316236.europe-west1.run.app";
|
|
3427
3427
|
}
|
|
3428
|
-
},
|
|
3428
|
+
}, Ed = () => {
|
|
3429
3429
|
let t = U.getEnvironmentId();
|
|
3430
|
-
return t == "aks_svi" ? "https://mike.aksiliasuite.com/pages/editor_documenti/" : `https://${
|
|
3431
|
-
},
|
|
3430
|
+
return t == "aks_svi" ? "https://mike.aksiliasuite.com/pages/editor_documenti/" : `https://${Es(t)}.aksiliasuite.com/pages/editor_documenti/`;
|
|
3431
|
+
}, Cd = (t) => {
|
|
3432
3432
|
let e = U.getEnvironmentId(), n = U.getToken();
|
|
3433
3433
|
return `${Sd(e)}/it/edit/${t}?token=${n}&envId=${e}`;
|
|
3434
3434
|
};
|
|
@@ -3460,17 +3460,17 @@ const Ad = async (t) => {
|
|
|
3460
3460
|
if (e.endsWith(".akd")) {
|
|
3461
3461
|
if (!n)
|
|
3462
3462
|
throw new Error("Gendoc ID is required for .akd files");
|
|
3463
|
-
window.open(
|
|
3463
|
+
window.open(Cd(n), "_blank");
|
|
3464
3464
|
return;
|
|
3465
3465
|
}
|
|
3466
|
-
Id(
|
|
3466
|
+
Id(Ed(), {
|
|
3467
3467
|
id_allegato: t.split("_")[1],
|
|
3468
3468
|
nome_file: e.split(".").slice(0, -1).join("."),
|
|
3469
3469
|
estensione_file: e.split(".").pop() || "",
|
|
3470
3470
|
function: "edit"
|
|
3471
3471
|
});
|
|
3472
|
-
},
|
|
3473
|
-
let t = U.getEnvironmentId(), e = `https://${
|
|
3472
|
+
}, Rd = async () => {
|
|
3473
|
+
let t = U.getEnvironmentId(), e = `https://${Es(t)}.aksiliasuite.com/api/v1/operatore`;
|
|
3474
3474
|
t == "aks_svi" && (e = "https://mike.aksiliasuite.com/api/v1/operatore");
|
|
3475
3475
|
const n = await fetch(e, {
|
|
3476
3476
|
headers: {
|
|
@@ -3482,8 +3482,8 @@ const Ad = async (t) => {
|
|
|
3482
3482
|
return console.error("Failed to fetch username"), "User";
|
|
3483
3483
|
const r = await n.text();
|
|
3484
3484
|
return JSON.parse(r).result[0].nome;
|
|
3485
|
-
},
|
|
3486
|
-
let t = U.getEnvironmentId(), e = `https://${
|
|
3485
|
+
}, jd = async () => {
|
|
3486
|
+
let t = U.getEnvironmentId(), e = `https://${Es(t)}.aksiliasuite.com/api/v1/check_permission/assessment`;
|
|
3487
3487
|
t == "aks_svi" && (e = "https://mike.aksiliasuite.com/api/v1/check_permission/assessment");
|
|
3488
3488
|
let n = await fetch(e, {
|
|
3489
3489
|
method: "GET",
|
|
@@ -3527,7 +3527,7 @@ const Ad = async (t) => {
|
|
|
3527
3527
|
throw new Error("Failed to fetch forge");
|
|
3528
3528
|
const r = await n.json();
|
|
3529
3529
|
return en.fromJson(r);
|
|
3530
|
-
},
|
|
3530
|
+
}, Od = async (t, e) => {
|
|
3531
3531
|
const n = await fetch(`${U.getForgeUrl()}/download/pdf?externalId=${t}&collectionName=${e}`, {
|
|
3532
3532
|
method: "GET",
|
|
3533
3533
|
headers: {
|
|
@@ -3539,7 +3539,7 @@ const Ad = async (t) => {
|
|
|
3539
3539
|
if (!n.ok)
|
|
3540
3540
|
throw new Error("Failed to download PDF");
|
|
3541
3541
|
return await n.blob();
|
|
3542
|
-
},
|
|
3542
|
+
}, Pd = async (t) => {
|
|
3543
3543
|
const e = await fetch(`${U.getGenDocUrl()}/generals/documents`, {
|
|
3544
3544
|
method: "POST",
|
|
3545
3545
|
headers: {
|
|
@@ -3586,13 +3586,13 @@ const Ad = async (t) => {
|
|
|
3586
3586
|
getDocumentPage: Ld,
|
|
3587
3587
|
getForge: Fd,
|
|
3588
3588
|
getForgeSingle: Dd,
|
|
3589
|
-
getUsername:
|
|
3590
|
-
getUserLevel:
|
|
3591
|
-
downloadForgePdf:
|
|
3592
|
-
getGenDocs:
|
|
3589
|
+
getUsername: Rd,
|
|
3590
|
+
getUserLevel: jd,
|
|
3591
|
+
downloadForgePdf: Od,
|
|
3592
|
+
getGenDocs: Pd,
|
|
3593
3593
|
getTranscriptions: Md,
|
|
3594
3594
|
getMeetingSingle: Nd
|
|
3595
|
-
},
|
|
3595
|
+
}, Cs = (t) => {
|
|
3596
3596
|
switch (t) {
|
|
3597
3597
|
case "en":
|
|
3598
3598
|
return "en-US";
|
|
@@ -3601,7 +3601,7 @@ const Ad = async (t) => {
|
|
|
3601
3601
|
}
|
|
3602
3602
|
}, Ud = async (t, e) => {
|
|
3603
3603
|
const n = new FormData();
|
|
3604
|
-
n.append("file", t), n.append("lang",
|
|
3604
|
+
n.append("file", t), n.append("lang", Cs(e));
|
|
3605
3605
|
const r = await fetch(`${U.getUrl()}/audio/stt`, {
|
|
3606
3606
|
method: "POST",
|
|
3607
3607
|
headers: {
|
|
@@ -3621,7 +3621,7 @@ const Ad = async (t) => {
|
|
|
3621
3621
|
"ngrok-skip-browser-warning": "true",
|
|
3622
3622
|
"Content-Type": "application/json"
|
|
3623
3623
|
},
|
|
3624
|
-
body: JSON.stringify({ text: t, lang:
|
|
3624
|
+
body: JSON.stringify({ text: t, lang: Cs(e) })
|
|
3625
3625
|
});
|
|
3626
3626
|
if (!n.ok)
|
|
3627
3627
|
throw new Error("Failed to fetch audio");
|
|
@@ -3632,7 +3632,7 @@ const Ad = async (t) => {
|
|
|
3632
3632
|
getAudio: Bd
|
|
3633
3633
|
};
|
|
3634
3634
|
Xo();
|
|
3635
|
-
var qd = /* @__PURE__ */
|
|
3635
|
+
var qd = /* @__PURE__ */ R('<div class="circle svelte-dqjlks"></div>');
|
|
3636
3636
|
const Hd = {
|
|
3637
3637
|
hash: "svelte-dqjlks",
|
|
3638
3638
|
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%;
|
|
@@ -3698,7 +3698,7 @@ oe(
|
|
|
3698
3698
|
[],
|
|
3699
3699
|
!0
|
|
3700
3700
|
);
|
|
3701
|
-
var Gd = /* @__PURE__ */
|
|
3701
|
+
var Gd = /* @__PURE__ */ R('<div class="circle svelte-1w4sjib"></div>');
|
|
3702
3702
|
const Jd = {
|
|
3703
3703
|
hash: "svelte-1w4sjib",
|
|
3704
3704
|
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%;
|
|
@@ -3805,7 +3805,7 @@ oe(
|
|
|
3805
3805
|
[],
|
|
3806
3806
|
!0
|
|
3807
3807
|
);
|
|
3808
|
-
var Zd = /* @__PURE__ */
|
|
3808
|
+
var Zd = /* @__PURE__ */ R('<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>');
|
|
3809
3809
|
const Xd = {
|
|
3810
3810
|
hash: "svelte-7wj78d",
|
|
3811
3811
|
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 {
|
|
@@ -3842,61 +3842,61 @@ function Vd(t, e) {
|
|
|
3842
3842
|
let n = g(e, "size", 12, "60"), r = g(e, "unit", 12, "px"), s = g(e, "pause", 12, !1), i = g(e, "ballTopLeft", 12, "#FF3E00"), a = g(e, "ballTopRight", 12, "#F8B334"), o = g(e, "ballBottomLeft", 12, "#40B3FF"), c = g(e, "ballBottomRight", 12, "#676778"), l = g(e, "duration", 12, "1.5s");
|
|
3843
3843
|
var u = Zd(), d = y(u), h = y(d), p = y(h), w = y(p);
|
|
3844
3844
|
k(p);
|
|
3845
|
-
var m =
|
|
3845
|
+
var m = O(p, 2), S = y(m);
|
|
3846
3846
|
k(m);
|
|
3847
|
-
var x =
|
|
3847
|
+
var x = O(m, 2), _ = y(x);
|
|
3848
3848
|
k(x);
|
|
3849
|
-
var z =
|
|
3849
|
+
var z = O(x, 2), F = y(z);
|
|
3850
3850
|
return k(z), k(h), k(d), k(u), D(() => {
|
|
3851
3851
|
M(u, "style", `--size: ${n() ?? ""}${r() ?? ""}; --floatSize: ${n() ?? ""}; --ballTopLeftColor: ${i() ?? ""}; --ballTopRightColor: ${a() ?? ""}; --ballBottomLeftColor: ${o() ?? ""}; --ballBottomRightColor: ${c() ?? ""}; --duration: ${l() ?? ""};`), ne(h, "pause-animation", s()), ne(w, "pause-animation", s()), ne(S, "pause-animation", s()), ne(_, "pause-animation", s()), ne(F, "pause-animation", s());
|
|
3852
3852
|
}), T(t, u), se({
|
|
3853
3853
|
get size() {
|
|
3854
3854
|
return n();
|
|
3855
3855
|
},
|
|
3856
|
-
set size(
|
|
3857
|
-
n(
|
|
3856
|
+
set size(E) {
|
|
3857
|
+
n(E), v();
|
|
3858
3858
|
},
|
|
3859
3859
|
get unit() {
|
|
3860
3860
|
return r();
|
|
3861
3861
|
},
|
|
3862
|
-
set unit(
|
|
3863
|
-
r(
|
|
3862
|
+
set unit(E) {
|
|
3863
|
+
r(E), v();
|
|
3864
3864
|
},
|
|
3865
3865
|
get pause() {
|
|
3866
3866
|
return s();
|
|
3867
3867
|
},
|
|
3868
|
-
set pause(
|
|
3869
|
-
s(
|
|
3868
|
+
set pause(E) {
|
|
3869
|
+
s(E), v();
|
|
3870
3870
|
},
|
|
3871
3871
|
get ballTopLeft() {
|
|
3872
3872
|
return i();
|
|
3873
3873
|
},
|
|
3874
|
-
set ballTopLeft(
|
|
3875
|
-
i(
|
|
3874
|
+
set ballTopLeft(E) {
|
|
3875
|
+
i(E), v();
|
|
3876
3876
|
},
|
|
3877
3877
|
get ballTopRight() {
|
|
3878
3878
|
return a();
|
|
3879
3879
|
},
|
|
3880
|
-
set ballTopRight(
|
|
3881
|
-
a(
|
|
3880
|
+
set ballTopRight(E) {
|
|
3881
|
+
a(E), v();
|
|
3882
3882
|
},
|
|
3883
3883
|
get ballBottomLeft() {
|
|
3884
3884
|
return o();
|
|
3885
3885
|
},
|
|
3886
|
-
set ballBottomLeft(
|
|
3887
|
-
o(
|
|
3886
|
+
set ballBottomLeft(E) {
|
|
3887
|
+
o(E), v();
|
|
3888
3888
|
},
|
|
3889
3889
|
get ballBottomRight() {
|
|
3890
3890
|
return c();
|
|
3891
3891
|
},
|
|
3892
|
-
set ballBottomRight(
|
|
3893
|
-
c(
|
|
3892
|
+
set ballBottomRight(E) {
|
|
3893
|
+
c(E), v();
|
|
3894
3894
|
},
|
|
3895
3895
|
get duration() {
|
|
3896
3896
|
return l();
|
|
3897
3897
|
},
|
|
3898
|
-
set duration(
|
|
3899
|
-
l(
|
|
3898
|
+
set duration(E) {
|
|
3899
|
+
l(E), v();
|
|
3900
3900
|
}
|
|
3901
3901
|
});
|
|
3902
3902
|
}
|
|
@@ -3925,7 +3925,7 @@ const He = /[a-zA-Z]/, As = (t, e) => {
|
|
|
3925
3925
|
}
|
|
3926
3926
|
return `rgba(${(t.match(/.{2}/g) || []).map((r) => parseInt(r, 16)).join(", ")}, ${e})`;
|
|
3927
3927
|
}, St = (t, e = 0) => [...Array(t).keys()].map((n) => n + e);
|
|
3928
|
-
var Qd = /* @__PURE__ */
|
|
3928
|
+
var Qd = /* @__PURE__ */ R('<div class="circle svelte-1bsg8wv"></div>'), Kd = /* @__PURE__ */ R('<div class="wrapper svelte-1bsg8wv"></div>');
|
|
3929
3929
|
const ef = {
|
|
3930
3930
|
hash: "svelte-1bsg8wv",
|
|
3931
3931
|
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;
|
|
@@ -3946,7 +3946,7 @@ function tf(t, e) {
|
|
|
3946
3946
|
let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), s = g(e, "duration", 12, "2.1s"), i = g(e, "size", 12, "60"), a = g(e, "pause", 12, !1), o = ((u = s().match(He)) == null ? void 0 : u[0]) ?? "s", c = s().replace(He, "");
|
|
3947
3947
|
ct();
|
|
3948
3948
|
var l = Kd();
|
|
3949
|
-
return
|
|
3949
|
+
return Qe(l, 5, () => St(2, 1), Ve, (d, h) => {
|
|
3950
3950
|
var p = Qd();
|
|
3951
3951
|
D(() => {
|
|
3952
3952
|
M(p, "style", `animation: ${s() ?? ""} ${(f(h) === 1 ? `${(+c - 0.1) / 2}${o}` : "0s") ?? ""} infinite ease-in-out`), ne(p, "pause-animation", a());
|
|
@@ -3997,7 +3997,7 @@ oe(
|
|
|
3997
3997
|
[],
|
|
3998
3998
|
!0
|
|
3999
3999
|
);
|
|
4000
|
-
var nf = /* @__PURE__ */
|
|
4000
|
+
var nf = /* @__PURE__ */ R('<div class="spinner spinner--google svelte-rhgdjk"></div>');
|
|
4001
4001
|
const rf = {
|
|
4002
4002
|
hash: "svelte-rhgdjk",
|
|
4003
4003
|
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%;
|
|
@@ -4174,7 +4174,7 @@ function sf(t, e) {
|
|
|
4174
4174
|
re(e, !1), ue(t, rf);
|
|
4175
4175
|
const n = Jt();
|
|
4176
4176
|
let r = g(e, "size", 12, "40px"), s = g(e, "duration", 12, "3s"), i = g(e, "pause", 12, !1);
|
|
4177
|
-
Gn(() =>
|
|
4177
|
+
Gn(() => Cn(r()), () => {
|
|
4178
4178
|
b(n, [
|
|
4179
4179
|
`width: ${r()}`,
|
|
4180
4180
|
`height: ${r()}`
|
|
@@ -4205,7 +4205,7 @@ function sf(t, e) {
|
|
|
4205
4205
|
});
|
|
4206
4206
|
}
|
|
4207
4207
|
oe(sf, { size: {}, duration: {}, pause: {} }, [], [], !0);
|
|
4208
|
-
var af = /* @__PURE__ */
|
|
4208
|
+
var af = /* @__PURE__ */ R('<div class="wrapper svelte-1w1ueev"><div class="circle svelte-1w1ueev"></div></div>');
|
|
4209
4209
|
const of = {
|
|
4210
4210
|
hash: "svelte-1w1ueev",
|
|
4211
4211
|
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;
|
|
@@ -4272,7 +4272,7 @@ oe(
|
|
|
4272
4272
|
[],
|
|
4273
4273
|
!0
|
|
4274
4274
|
);
|
|
4275
|
-
var cf = /* @__PURE__ */
|
|
4275
|
+
var cf = /* @__PURE__ */ R('<div class="wrapper svelte-nfuakd"><div class="line svelte-nfuakd"></div></div>');
|
|
4276
4276
|
const uf = {
|
|
4277
4277
|
hash: "svelte-nfuakd",
|
|
4278
4278
|
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;
|
|
@@ -4392,7 +4392,7 @@ oe(
|
|
|
4392
4392
|
[],
|
|
4393
4393
|
!0
|
|
4394
4394
|
);
|
|
4395
|
-
var ff = /* @__PURE__ */
|
|
4395
|
+
var ff = /* @__PURE__ */ R('<div class="rect svelte-cihful"></div>'), hf = /* @__PURE__ */ R('<div class="wrapper svelte-cihful"></div>');
|
|
4396
4396
|
const pf = {
|
|
4397
4397
|
hash: "svelte-cihful",
|
|
4398
4398
|
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);
|
|
@@ -4414,7 +4414,7 @@ function vf(t, e) {
|
|
|
4414
4414
|
let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), s = g(e, "duration", 12, "1.2s"), i = g(e, "size", 12, "60"), a = g(e, "pause", 12, !1), o = ((u = s().match(He)) == null ? void 0 : u[0]) ?? "s", c = s().replace(He, "");
|
|
4415
4415
|
ct();
|
|
4416
4416
|
var l = hf();
|
|
4417
|
-
return
|
|
4417
|
+
return Qe(l, 5, () => St(5, 1), Ve, (d, h) => {
|
|
4418
4418
|
var p = ff();
|
|
4419
4419
|
D(() => {
|
|
4420
4420
|
M(p, "style", `animation-delay: ${(f(h) - 1) * (+c / 12)}${o ?? ""}`), ne(p, "pause-animation", a());
|
|
@@ -4465,7 +4465,7 @@ oe(
|
|
|
4465
4465
|
[],
|
|
4466
4466
|
!0
|
|
4467
4467
|
);
|
|
4468
|
-
var gf = /* @__PURE__ */
|
|
4468
|
+
var gf = /* @__PURE__ */ R("<div></div>"), mf = /* @__PURE__ */ R('<div class="wrapper svelte-bnawe9"></div>');
|
|
4469
4469
|
const bf = {
|
|
4470
4470
|
hash: "svelte-bnawe9",
|
|
4471
4471
|
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 {
|
|
@@ -4507,13 +4507,13 @@ function xf(t, e) {
|
|
|
4507
4507
|
re(e, !1), ue(t, bf);
|
|
4508
4508
|
let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), s = g(e, "duration", 12, "2.1s"), i = g(e, "size", 12, "60"), a = g(e, "pause", 12, !1), o = Jt();
|
|
4509
4509
|
Gn(
|
|
4510
|
-
() =>
|
|
4510
|
+
() => Cn(n()),
|
|
4511
4511
|
() => {
|
|
4512
4512
|
b(o, As(n(), 0.2));
|
|
4513
4513
|
}
|
|
4514
4514
|
), Jn(), ct();
|
|
4515
4515
|
var c = mf();
|
|
4516
|
-
return
|
|
4516
|
+
return Qe(c, 5, () => St(2, 1), Ve, (l, u) => {
|
|
4517
4517
|
var d = gf();
|
|
4518
4518
|
D(() => {
|
|
4519
4519
|
nt(d, `lines small-lines ${f(u) ?? ""} svelte-bnawe9`), M(d, "style", `--color: ${n() ?? ""}; --duration: ${s() ?? ""};`), ne(d, "pause-animation", a());
|
|
@@ -4564,7 +4564,7 @@ oe(
|
|
|
4564
4564
|
[],
|
|
4565
4565
|
!0
|
|
4566
4566
|
);
|
|
4567
|
-
var wf = /* @__PURE__ */
|
|
4567
|
+
var wf = /* @__PURE__ */ R('<div class="circle svelte-c0n7a9"></div>'), _f = /* @__PURE__ */ R('<div class="wrapper svelte-c0n7a9"></div>');
|
|
4568
4568
|
const kf = {
|
|
4569
4569
|
hash: "svelte-c0n7a9",
|
|
4570
4570
|
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);
|
|
@@ -4589,7 +4589,7 @@ function yf(t, e) {
|
|
|
4589
4589
|
let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), s = g(e, "duration", 12, "1s"), i = g(e, "size", 12, "60"), a = g(e, "pause", 12, !1), o = ((u = s().match(He)) == null ? void 0 : u[0]) ?? "s", c = s().replace(He, "");
|
|
4590
4590
|
ct();
|
|
4591
4591
|
var l = _f();
|
|
4592
|
-
return
|
|
4592
|
+
return Qe(l, 5, () => St(3, 1), Ve, (d, h) => {
|
|
4593
4593
|
var p = wf();
|
|
4594
4594
|
D(() => {
|
|
4595
4595
|
M(p, "style", `animation-delay: ${+c / 3 * (f(h) - 1) + o};`), ne(p, "pause-animation", a());
|
|
@@ -4640,7 +4640,7 @@ oe(
|
|
|
4640
4640
|
[],
|
|
4641
4641
|
!0
|
|
4642
4642
|
);
|
|
4643
|
-
var zf = /* @__PURE__ */
|
|
4643
|
+
var zf = /* @__PURE__ */ R("<div></div>"), $f = /* @__PURE__ */ R('<div class="wrapper svelte-kxapcj"></div>');
|
|
4644
4644
|
const Tf = {
|
|
4645
4645
|
hash: "svelte-kxapcj",
|
|
4646
4646
|
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 {
|
|
@@ -4669,7 +4669,7 @@ function Sf(t, e) {
|
|
|
4669
4669
|
let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), s = g(e, "duration", 12, "2s"), i = g(e, "size", 12, "60"), a = g(e, "pause", 12, !1);
|
|
4670
4670
|
ct();
|
|
4671
4671
|
var o = $f();
|
|
4672
|
-
return
|
|
4672
|
+
return Qe(o, 5, () => St(2, 1), Ve, (c, l) => {
|
|
4673
4673
|
var u = zf();
|
|
4674
4674
|
D(() => {
|
|
4675
4675
|
nt(u, `border ${f(l) ?? ""} svelte-kxapcj`), ne(u, "pause-animation", a());
|
|
@@ -4720,7 +4720,7 @@ oe(
|
|
|
4720
4720
|
[],
|
|
4721
4721
|
!0
|
|
4722
4722
|
);
|
|
4723
|
-
var
|
|
4723
|
+
var Ef = /* @__PURE__ */ R('<div class="dot svelte-14x3x60"></div>'), Cf = /* @__PURE__ */ R('<div class="wrapper svelte-14x3x60"></div>');
|
|
4724
4724
|
const If = {
|
|
4725
4725
|
hash: "svelte-14x3x60",
|
|
4726
4726
|
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%;
|
|
@@ -4760,9 +4760,9 @@ function Af(t, e) {
|
|
|
4760
4760
|
re(e, !1), ue(t, If);
|
|
4761
4761
|
let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), s = g(e, "duration", 12, "0.6s"), i = g(e, "size", 12, "60"), a = g(e, "pause", 12, !1), o = ((u = s().match(He)) == null ? void 0 : u[0]) ?? "s", c = s().replace(He, "");
|
|
4762
4762
|
ct();
|
|
4763
|
-
var l =
|
|
4764
|
-
return
|
|
4765
|
-
var p =
|
|
4763
|
+
var l = Cf();
|
|
4764
|
+
return Qe(l, 5, () => St(3, 1), Ve, (d, h) => {
|
|
4765
|
+
var p = Ef();
|
|
4766
4766
|
D(() => {
|
|
4767
4767
|
M(p, "style", `--dotSize:${+i() * 0.25}${r() ?? ""}; --color:${n() ?? ""}; animation-delay: ${f(h) * (+c / 10)}${o ?? ""};`), ne(p, "pause-animation", a());
|
|
4768
4768
|
}), T(d, p);
|
|
@@ -4812,8 +4812,8 @@ oe(
|
|
|
4812
4812
|
[],
|
|
4813
4813
|
!0
|
|
4814
4814
|
);
|
|
4815
|
-
var Lf = /* @__PURE__ */
|
|
4816
|
-
const
|
|
4815
|
+
var Lf = /* @__PURE__ */ R('<div class="wrapper svelte-1lgkc8y"><div class="rainbow svelte-1lgkc8y"></div></div>');
|
|
4816
|
+
const Rf = {
|
|
4817
4817
|
hash: "svelte-1lgkc8y",
|
|
4818
4818
|
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;
|
|
4819
4819
|
animation: var(--duration) ease-in-out 0s infinite normal none running svelte-1lgkc8y-rotate;}.pause-animation.svelte-1lgkc8y {animation-play-state:paused;}
|
|
@@ -4836,8 +4836,8 @@ const jf = {
|
|
|
4836
4836
|
}
|
|
4837
4837
|
}`
|
|
4838
4838
|
};
|
|
4839
|
-
function
|
|
4840
|
-
re(e, !1), ue(t,
|
|
4839
|
+
function jf(t, e) {
|
|
4840
|
+
re(e, !1), ue(t, Rf);
|
|
4841
4841
|
let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), s = g(e, "duration", 12, "3s"), i = g(e, "size", 12, "60"), a = g(e, "pause", 12, !1);
|
|
4842
4842
|
var o = Lf(), c = y(o);
|
|
4843
4843
|
return k(o), D(() => {
|
|
@@ -4876,7 +4876,7 @@ function Rf(t, e) {
|
|
|
4876
4876
|
});
|
|
4877
4877
|
}
|
|
4878
4878
|
oe(
|
|
4879
|
-
|
|
4879
|
+
jf,
|
|
4880
4880
|
{
|
|
4881
4881
|
color: {},
|
|
4882
4882
|
unit: {},
|
|
@@ -4888,7 +4888,7 @@ oe(
|
|
|
4888
4888
|
[],
|
|
4889
4889
|
!0
|
|
4890
4890
|
);
|
|
4891
|
-
var Ff = /* @__PURE__ */
|
|
4891
|
+
var Ff = /* @__PURE__ */ R('<div class="wrapper svelte-x7zza7"><div class="firework svelte-x7zza7"></div></div>');
|
|
4892
4892
|
const Df = {
|
|
4893
4893
|
hash: "svelte-x7zza7",
|
|
4894
4894
|
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%;
|
|
@@ -4908,7 +4908,7 @@ const Df = {
|
|
|
4908
4908
|
}
|
|
4909
4909
|
}`
|
|
4910
4910
|
};
|
|
4911
|
-
function
|
|
4911
|
+
function Of(t, e) {
|
|
4912
4912
|
re(e, !1), ue(t, Df);
|
|
4913
4913
|
let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), s = g(e, "duration", 12, "1.25s"), i = g(e, "size", 12, "60"), a = g(e, "pause", 12, !1);
|
|
4914
4914
|
var o = Ff(), c = y(o);
|
|
@@ -4948,7 +4948,7 @@ function Pf(t, e) {
|
|
|
4948
4948
|
});
|
|
4949
4949
|
}
|
|
4950
4950
|
oe(
|
|
4951
|
-
|
|
4951
|
+
Of,
|
|
4952
4952
|
{
|
|
4953
4953
|
color: {},
|
|
4954
4954
|
unit: {},
|
|
@@ -4960,7 +4960,7 @@ oe(
|
|
|
4960
4960
|
[],
|
|
4961
4961
|
!0
|
|
4962
4962
|
);
|
|
4963
|
-
var
|
|
4963
|
+
var Pf = /* @__PURE__ */ R('<div class="cube svelte-1w8rpx6"></div>'), Mf = /* @__PURE__ */ R('<div class="wrapper svelte-1w8rpx6"></div>');
|
|
4964
4964
|
const Nf = {
|
|
4965
4965
|
hash: "svelte-1w8rpx6",
|
|
4966
4966
|
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);
|
|
@@ -4983,8 +4983,8 @@ function Ls(t, e) {
|
|
|
4983
4983
|
let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), s = g(e, "duration", 12, "1.5s"), i = g(e, "size", 12, "60"), a = g(e, "pause", 12, !1), o = ((u = s().match(He)) == null ? void 0 : u[0]) ?? "s", c = s().replace(He, "");
|
|
4984
4984
|
ct();
|
|
4985
4985
|
var l = Mf();
|
|
4986
|
-
return
|
|
4987
|
-
var p =
|
|
4986
|
+
return Qe(l, 5, () => St(3, 0), Ve, (d, h) => {
|
|
4987
|
+
var p = Pf();
|
|
4988
4988
|
D(() => {
|
|
4989
4989
|
M(p, "style", `animation-delay: ${f(h) * (+c / 10)}${o ?? ""}; left: ${f(h) * (+i() / 3 + +i() / 15) + r()};`), ne(p, "pause-animation", a());
|
|
4990
4990
|
}), T(d, p);
|
|
@@ -5034,7 +5034,7 @@ oe(
|
|
|
5034
5034
|
[],
|
|
5035
5035
|
!0
|
|
5036
5036
|
);
|
|
5037
|
-
var Uf = /* @__PURE__ */
|
|
5037
|
+
var Uf = /* @__PURE__ */ R('<div class="ring svelte-1rvptk"></div>'), Bf = /* @__PURE__ */ R('<div class="wrapper svelte-1rvptk"></div>');
|
|
5038
5038
|
const qf = {
|
|
5039
5039
|
hash: "svelte-1rvptk",
|
|
5040
5040
|
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;
|
|
@@ -5057,7 +5057,7 @@ function Hf(t, e) {
|
|
|
5057
5057
|
let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), s = g(e, "duration", 12, "2.5s"), i = g(e, "size", 12, "60"), a = g(e, "pause", 12, !1), o = ((u = s().match(He)) == null ? void 0 : u[0]) ?? "s", c = s().replace(He, "");
|
|
5058
5058
|
ct();
|
|
5059
5059
|
var l = Bf();
|
|
5060
|
-
return
|
|
5060
|
+
return Qe(l, 5, () => St(6, 0), Ve, (d, h) => {
|
|
5061
5061
|
var p = Uf();
|
|
5062
5062
|
D(() => {
|
|
5063
5063
|
M(p, "style", `animation-delay: ${f(h) * (+c / 25)}${o ?? ""}; width: ${f(h) * (+i() / 6) + r()}; height: ${f(h) * (+i() / 6) / 2 + r()}; `), ne(p, "pause-animation", a());
|
|
@@ -5108,7 +5108,7 @@ oe(
|
|
|
5108
5108
|
[],
|
|
5109
5109
|
!0
|
|
5110
5110
|
);
|
|
5111
|
-
var Yf = /* @__PURE__ */
|
|
5111
|
+
var Yf = /* @__PURE__ */ R('<div class="dot svelte-1uhddr4"></div>'), Gf = /* @__PURE__ */ R('<div class="wrapper svelte-1uhddr4"><div class="spinner svelte-1uhddr4"></div></div>');
|
|
5112
5112
|
const Jf = {
|
|
5113
5113
|
hash: "svelte-1uhddr4",
|
|
5114
5114
|
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);
|
|
@@ -5136,7 +5136,7 @@ function Wf(t, e) {
|
|
|
5136
5136
|
let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), s = g(e, "duration", 12, "2s"), i = g(e, "size", 12, "60"), a = g(e, "pause", 12, !1), o = ((d = s().match(He)) == null ? void 0 : d[0]) ?? "s", c = s().replace(He, "");
|
|
5137
5137
|
ct();
|
|
5138
5138
|
var l = Gf(), u = y(l);
|
|
5139
|
-
return
|
|
5139
|
+
return Qe(u, 5, () => St(2, 0), Ve, (h, p) => {
|
|
5140
5140
|
var w = Yf();
|
|
5141
5141
|
D(() => {
|
|
5142
5142
|
M(w, "style", `animation-delay: ${(f(p) === 1 ? `${+c / 2}${o}` : "0s") ?? ""}; ${(f(p) === 1 ? "bottom: 0;" : "") ?? ""} ${(f(p) === 1 ? "top: auto;" : "") ?? ""}`), ne(w, "pause-animation", a());
|
|
@@ -5189,7 +5189,7 @@ oe(
|
|
|
5189
5189
|
[],
|
|
5190
5190
|
!0
|
|
5191
5191
|
);
|
|
5192
|
-
var Zf = /* @__PURE__ */
|
|
5192
|
+
var Zf = /* @__PURE__ */ R('<div class="square svelte-x90y"></div>');
|
|
5193
5193
|
const Xf = {
|
|
5194
5194
|
hash: "svelte-x90y",
|
|
5195
5195
|
code: `.square.svelte-x90y {height:var(--size);width:var(--size);background-color:var(--color);
|
|
@@ -5265,7 +5265,7 @@ oe(
|
|
|
5265
5265
|
[],
|
|
5266
5266
|
!0
|
|
5267
5267
|
);
|
|
5268
|
-
var Qf = /* @__PURE__ */
|
|
5268
|
+
var Qf = /* @__PURE__ */ R('<div class="wrapper svelte-5bpnhx"><div class="shadow svelte-5bpnhx"></div></div>');
|
|
5269
5269
|
const Kf = {
|
|
5270
5270
|
hash: "svelte-5bpnhx",
|
|
5271
5271
|
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);
|
|
@@ -5359,7 +5359,7 @@ oe(
|
|
|
5359
5359
|
[],
|
|
5360
5360
|
!0
|
|
5361
5361
|
);
|
|
5362
|
-
var th = /* @__PURE__ */
|
|
5362
|
+
var th = /* @__PURE__ */ R('<div class="wrapper svelte-e653jg"><div class="circle-one svelte-e653jg"></div> <div class="circle-two svelte-e653jg"></div></div>');
|
|
5363
5363
|
const nh = {
|
|
5364
5364
|
hash: "svelte-e653jg",
|
|
5365
5365
|
code: `.wrapper.svelte-e653jg {height:var(--size);width:var(--size);border-radius:100%;
|
|
@@ -5374,7 +5374,7 @@ const nh = {
|
|
|
5374
5374
|
function rh(t, e) {
|
|
5375
5375
|
re(e, !1), ue(t, nh);
|
|
5376
5376
|
let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), s = g(e, "duration", 12, "0.6s"), i = g(e, "size", 12, "60"), a = g(e, "pause", 12, !1), o = +i() / 7, c = +i() / 2 - o / 2;
|
|
5377
|
-
var l = th(), u = y(l), d =
|
|
5377
|
+
var l = th(), u = y(l), d = O(u, 2);
|
|
5378
5378
|
return k(l), D(() => {
|
|
5379
5379
|
M(l, "style", `--size: ${i() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --moonSize: ${c ?? ""}${r() ?? ""}; --duration: ${s() ?? ""};`), ne(l, "pause-animation", a()), ne(u, "pause-animation", a()), ne(d, "pause-animation", a());
|
|
5380
5380
|
}), T(t, l), se({
|
|
@@ -5423,7 +5423,7 @@ oe(
|
|
|
5423
5423
|
[],
|
|
5424
5424
|
!0
|
|
5425
5425
|
);
|
|
5426
|
-
var sh = /* @__PURE__ */
|
|
5426
|
+
var sh = /* @__PURE__ */ R('<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>');
|
|
5427
5427
|
const ih = {
|
|
5428
5428
|
hash: "svelte-1cx3779",
|
|
5429
5429
|
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;
|
|
@@ -5460,7 +5460,7 @@ function ah(t, e) {
|
|
|
5460
5460
|
re(e, !1), ue(t, ih);
|
|
5461
5461
|
let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), s = g(e, "duration", 12, "1.3s"), i = g(e, "size", 12, "60"), a = g(e, "pause", 12, !1), o = Jt();
|
|
5462
5462
|
Gn(
|
|
5463
|
-
() =>
|
|
5463
|
+
() => Cn(n()),
|
|
5464
5464
|
() => {
|
|
5465
5465
|
b(o, As(n(), 0.6));
|
|
5466
5466
|
}
|
|
@@ -5514,7 +5514,7 @@ oe(
|
|
|
5514
5514
|
[],
|
|
5515
5515
|
!0
|
|
5516
5516
|
);
|
|
5517
|
-
var oh = /* @__PURE__ */
|
|
5517
|
+
var oh = /* @__PURE__ */ R('<span class="svelte-1jnfmql"><div class="svelte-1jnfmql"></div> <div class="svelte-1jnfmql"></div> <div class="svelte-1jnfmql"></div></span>');
|
|
5518
5518
|
const lh = {
|
|
5519
5519
|
hash: "svelte-1jnfmql",
|
|
5520
5520
|
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);
|
|
@@ -5583,7 +5583,7 @@ oe(
|
|
|
5583
5583
|
[],
|
|
5584
5584
|
!0
|
|
5585
5585
|
);
|
|
5586
|
-
var uh = /* @__PURE__ */
|
|
5586
|
+
var uh = /* @__PURE__ */ R('<div class="svelte-db2m9w"></div>');
|
|
5587
5587
|
const dh = {
|
|
5588
5588
|
hash: "svelte-db2m9w",
|
|
5589
5589
|
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,
|
|
@@ -5650,7 +5650,7 @@ oe(
|
|
|
5650
5650
|
[],
|
|
5651
5651
|
!0
|
|
5652
5652
|
);
|
|
5653
|
-
var hh = /* @__PURE__ */
|
|
5653
|
+
var hh = /* @__PURE__ */ R('<div class="bar svelte-1vzsw15"></div>'), ph = /* @__PURE__ */ R('<div class="wrapper svelte-1vzsw15"></div>');
|
|
5654
5654
|
const vh = {
|
|
5655
5655
|
hash: "svelte-1vzsw15",
|
|
5656
5656
|
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);
|
|
@@ -5674,7 +5674,7 @@ function gh(t, e) {
|
|
|
5674
5674
|
let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), s = g(e, "duration", 12, "1.25s"), i = g(e, "size", 12, "60"), a = g(e, "pause", 12, !1), o = ((u = s().match(He)) == null ? void 0 : u[0]) ?? "s", c = s().replace(He, "");
|
|
5675
5675
|
ct();
|
|
5676
5676
|
var l = ph();
|
|
5677
|
-
return
|
|
5677
|
+
return Qe(l, 5, () => St(10, 0), Ve, (d, h) => {
|
|
5678
5678
|
var p = hh();
|
|
5679
5679
|
D(() => {
|
|
5680
5680
|
M(p, "style", `left: ${f(h) * (+i() / 5 + (+i() / 15 - +i() / 100)) + r()}; animation-delay: ${f(h) * (+c / 8.3)}${o ?? ""};`), ne(p, "pause-animation", a());
|
|
@@ -5725,7 +5725,7 @@ oe(
|
|
|
5725
5725
|
[],
|
|
5726
5726
|
!0
|
|
5727
5727
|
);
|
|
5728
|
-
var mh = /* @__PURE__ */
|
|
5728
|
+
var mh = /* @__PURE__ */ R('<span class="circle svelte-bv9t2p"></span>'), bh = /* @__PURE__ */ R('<span class="wrapper svelte-bv9t2p"></span>');
|
|
5729
5729
|
const xh = {
|
|
5730
5730
|
hash: "svelte-bv9t2p",
|
|
5731
5731
|
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;
|
|
@@ -5752,13 +5752,13 @@ function wh(t, e) {
|
|
|
5752
5752
|
re(e, !1), ue(t, xh);
|
|
5753
5753
|
let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), s = g(e, "duration", 12, "1s"), i = g(e, "size", 12, "60"), a = g(e, "pause", 12, !1), o = ((d = s().match(He)) == null ? void 0 : d[0]) ?? "s", c = s().replace(He, ""), l = Jt();
|
|
5754
5754
|
Gn(
|
|
5755
|
-
() =>
|
|
5755
|
+
() => Cn(n()),
|
|
5756
5756
|
() => {
|
|
5757
5757
|
b(l, As(n(), 1));
|
|
5758
5758
|
}
|
|
5759
5759
|
), Jn(), ct();
|
|
5760
5760
|
var u = bh();
|
|
5761
|
-
return
|
|
5761
|
+
return Qe(u, 5, () => St(2, 1), Ve, (h, p) => {
|
|
5762
5762
|
var w = mh();
|
|
5763
5763
|
D(() => {
|
|
5764
5764
|
M(w, "style", `animation-delay: ${(f(p) === 1 ? "-1s" : "0s") ?? ""}; animation-duration: ${2 / +c + o};`), ne(w, "pause-animation", a());
|
|
@@ -5809,7 +5809,7 @@ oe(
|
|
|
5809
5809
|
[],
|
|
5810
5810
|
!0
|
|
5811
5811
|
);
|
|
5812
|
-
var _h = /* @__PURE__ */
|
|
5812
|
+
var _h = /* @__PURE__ */ R('<div class="wrapper svelte-f6hkgc"></div>');
|
|
5813
5813
|
const kh = {
|
|
5814
5814
|
hash: "svelte-f6hkgc",
|
|
5815
5815
|
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;
|
|
@@ -5875,7 +5875,7 @@ oe(
|
|
|
5875
5875
|
[],
|
|
5876
5876
|
!0
|
|
5877
5877
|
);
|
|
5878
|
-
var zh = /* @__PURE__ */
|
|
5878
|
+
var zh = /* @__PURE__ */ R('<div class="wrapper svelte-1ju64u"></div>');
|
|
5879
5879
|
const $h = {
|
|
5880
5880
|
hash: "svelte-1ju64u",
|
|
5881
5881
|
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;
|
|
@@ -5945,21 +5945,21 @@ function Zn(t) {
|
|
|
5945
5945
|
switch (t) {
|
|
5946
5946
|
case "normative":
|
|
5947
5947
|
return {
|
|
5948
|
-
name: /* @__PURE__ */
|
|
5948
|
+
name: /* @__PURE__ */ ju(),
|
|
5949
5949
|
icon: "fa-solid fa-book-open",
|
|
5950
5950
|
color: "#28853d",
|
|
5951
5951
|
textColor: "white"
|
|
5952
5952
|
};
|
|
5953
5953
|
case "suite":
|
|
5954
5954
|
return {
|
|
5955
|
-
name: /* @__PURE__ */
|
|
5955
|
+
name: /* @__PURE__ */ Ea(),
|
|
5956
5956
|
icon: "fa-solid fa-circle-info",
|
|
5957
5957
|
color: "#0099ff",
|
|
5958
5958
|
textColor: "white"
|
|
5959
5959
|
};
|
|
5960
5960
|
default:
|
|
5961
5961
|
return {
|
|
5962
|
-
name: /* @__PURE__ */
|
|
5962
|
+
name: /* @__PURE__ */ Ou(),
|
|
5963
5963
|
icon: "fa-solid fa-file",
|
|
5964
5964
|
color: "",
|
|
5965
5965
|
textColor: ""
|
|
@@ -5972,17 +5972,17 @@ const Ia = (t) => {
|
|
|
5972
5972
|
}, Sh = (t) => {
|
|
5973
5973
|
const e = t.split(".").pop();
|
|
5974
5974
|
return t.includes(".") && e !== t;
|
|
5975
|
-
},
|
|
5975
|
+
}, Eh = {
|
|
5976
5976
|
pdf: { icon: "fa-solid fa-file-pdf", color: "#f0463c" },
|
|
5977
5977
|
docx: { icon: "fa-solid fa-file-word", color: "#305b9a" },
|
|
5978
5978
|
xlsx: { icon: "fa-solid fa-file-excel", color: "#0c7540" },
|
|
5979
5979
|
pptx: { icon: "fa-solid fa-file-powerpoint", color: "#d14b2b" },
|
|
5980
5980
|
akd: { icon: "fa-solid fa-passport", color: "#0DCAF0" },
|
|
5981
5981
|
tldv: { icon: "fa-solid fa-video", color: "#1d1dff" }
|
|
5982
|
-
},
|
|
5982
|
+
}, Rs = (t) => {
|
|
5983
5983
|
const e = Ia(t);
|
|
5984
|
-
return
|
|
5985
|
-
},
|
|
5984
|
+
return Eh[e || ""] || { icon: "fa-solid fa-file", color: "#6c757d" };
|
|
5985
|
+
}, Ch = (t) => Rs(t).icon;
|
|
5986
5986
|
function Ih(t) {
|
|
5987
5987
|
return {
|
|
5988
5988
|
normative: "File Forge",
|
|
@@ -5992,7 +5992,7 @@ function Ih(t) {
|
|
|
5992
5992
|
transcriptions: "Meeting"
|
|
5993
5993
|
}[t] || "File";
|
|
5994
5994
|
}
|
|
5995
|
-
const tr = (t, e) => `${t}-${e}`, Aa = (t) => t.isCommon ? t.filename.split(".")[0] : t.filename, La = (t) => t.isCommon ? Zn(t.commonType).name : t.path !== "" ? t.path : "root /",
|
|
5995
|
+
const tr = (t, e) => `${t}-${e}`, Aa = (t) => t.isCommon ? t.filename.split(".")[0] : t.filename, La = (t) => t.isCommon ? Zn(t.commonType).name : t.path !== "" ? t.path : "root /", Ra = (t) => {
|
|
5996
5996
|
const e = Aa(t), n = La(t);
|
|
5997
5997
|
return { displayName: e, path: n };
|
|
5998
5998
|
}, Ah = (t) => {
|
|
@@ -6006,15 +6006,15 @@ const tr = (t, e) => `${t}-${e}`, Aa = (t) => t.isCommon ? t.filename.split(".")
|
|
|
6006
6006
|
color: s.name === "Documento Comune" ? "#295DCF" : s.color
|
|
6007
6007
|
};
|
|
6008
6008
|
}
|
|
6009
|
-
return
|
|
6010
|
-
}, Lh = (t, e) => t >= 50 || e === "suite",
|
|
6009
|
+
return Rs(e);
|
|
6010
|
+
}, Lh = (t, e) => t >= 50 || e === "suite", Rh = (t, e) => {
|
|
6011
6011
|
const n = t.isCommon || !1, r = t.commonType || "";
|
|
6012
6012
|
return n && e < 50 && r !== "suite";
|
|
6013
|
-
},
|
|
6014
|
-
const { displayName: r, path: s } =
|
|
6013
|
+
}, jh = (t) => `<ul>${t.map((n) => {
|
|
6014
|
+
const { displayName: r, path: s } = Ra(n);
|
|
6015
6015
|
return `<li><strong>${r}</strong><br>${s}</li>`;
|
|
6016
6016
|
}).join("")}</ul>`, Fh = (t) => t.map((e) => {
|
|
6017
|
-
const { displayName: n, path: r } =
|
|
6017
|
+
const { displayName: n, path: r } = Ra(e);
|
|
6018
6018
|
return `• ${n}
|
|
6019
6019
|
${r}`;
|
|
6020
6020
|
}).join(`
|
|
@@ -6025,7 +6025,7 @@ const tr = (t, e) => `${t}-${e}`, Aa = (t) => t.isCommon ? t.filename.split(".")
|
|
|
6025
6025
|
"text/plain": r
|
|
6026
6026
|
});
|
|
6027
6027
|
await navigator.clipboard.write([s]);
|
|
6028
|
-
},
|
|
6028
|
+
}, Oh = (t, e) => {
|
|
6029
6029
|
if (t instanceof en)
|
|
6030
6030
|
return {
|
|
6031
6031
|
class: e.icon,
|
|
@@ -6039,14 +6039,14 @@ const tr = (t, e) => `${t}-${e}`, Aa = (t) => t.isCommon ? t.filename.split(".")
|
|
|
6039
6039
|
const n = t;
|
|
6040
6040
|
if (n.isCommon)
|
|
6041
6041
|
return { class: "fa-solid fa-file", color: "#295DCF" };
|
|
6042
|
-
const r =
|
|
6042
|
+
const r = Rs(n.title);
|
|
6043
6043
|
return {
|
|
6044
6044
|
class: r.icon,
|
|
6045
6045
|
color: r.color
|
|
6046
6046
|
};
|
|
6047
6047
|
}
|
|
6048
6048
|
return { class: "fa-solid fa-file", color: "#6c757d" };
|
|
6049
|
-
},
|
|
6049
|
+
}, Ph = (t) => {
|
|
6050
6050
|
if (t instanceof en)
|
|
6051
6051
|
return t.title.split(".")[0];
|
|
6052
6052
|
if (t instanceof cn || t instanceof tn)
|
|
@@ -6075,79 +6075,79 @@ const tr = (t, e) => `${t}-${e}`, Aa = (t) => t.isCommon ? t.filename.split(".")
|
|
|
6075
6075
|
}[r()];
|
|
6076
6076
|
u ? u() : n(f(e), () => bt.getDocuments(f(e)), (d) => b(o, I(d)), "Errore nella ricerca documenti:");
|
|
6077
6077
|
};
|
|
6078
|
-
var Bh = /* @__PURE__ */
|
|
6078
|
+
var Bh = /* @__PURE__ */ R('<div class="text-center p-3"><!> <p class="mt-2 text-muted"> </p></div>'), qh = /* @__PURE__ */ R('<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>'), Hh = /* @__PURE__ */ R('<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>'), Yh = (t, e, n) => e(f(n)), Gh = /* @__PURE__ */ R('<div class="document-path svelte-zrlk2s"> </div>'), Jh = /* @__PURE__ */ R('<div class="selected-indicator svelte-zrlk2s"><i class="fa-solid fa-circle-check"></i></div>'), Wh = /* @__PURE__ */ R('<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>'), Zh = /* @__PURE__ */ R('<div class="documents-list svelte-zrlk2s"></div>'), Xh = /* @__PURE__ */ R('<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>');
|
|
6079
6079
|
const Vh = {
|
|
6080
6080
|
hash: "svelte-zrlk2s",
|
|
6081
6081
|
code: `\r
|
|
6082
6082
|
/* Stili per la modale di ricerca documenti */.modal-overlay.svelte-zrlk2s {position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0, 0, 0, 0.5);display:flex;justify-content:center;align-items:center;z-index:1050;}.document-search-modal.svelte-zrlk2s {background:white;border-radius:12px;box-shadow:0 8px 32px rgba(0, 0, 0, 0.2);width:90%;max-width:500px;max-height:80vh;display:flex;flex-direction:column;}.modal-header.svelte-zrlk2s {display:flex;justify-content:space-between;align-items:center;padding:20px;border-bottom:1px solid #e9ecef;}.modal-header.svelte-zrlk2s h5:where(.svelte-zrlk2s) {margin:0;font-weight:600;color:#295dcf;}.modal-body.svelte-zrlk2s {padding:20px;flex:1;overflow:hidden;display:flex;flex-direction:column;}.search-container.svelte-zrlk2s {margin-bottom:20px;}.documents-container.svelte-zrlk2s {flex:1;overflow:hidden;display:flex;flex-direction:column;}.documents-list.svelte-zrlk2s {overflow-y:auto;max-height:300px;border:1px solid #e9ecef;border-radius:8px;}.document-item.svelte-zrlk2s {display:flex;align-items:flex-start;width:100%;padding:12px 15px;border:none;background:white;color:#333;cursor:pointer;transition:all 0.2s;border-bottom:1px solid #f0f0f0;text-align:left;}.document-item.svelte-zrlk2s:last-child {border-bottom:none;}.document-item.svelte-zrlk2s:hover {background:#f8f9fa;color:#295dcf;}.document-icon.svelte-zrlk2s {margin-right:12px;color:#6c757d;width:20px;flex-shrink:0;margin-top:2px;}.document-title.svelte-zrlk2s {font-weight:500;margin-bottom:4px;word-wrap:break-word;}.document-path.svelte-zrlk2s {font-size:0.85em;color:#6c757d;word-wrap:break-word;}.input-group-text.svelte-zrlk2s {background:#f8f9fa;border-color:#e9ecef;color:#6c757d;}.document-item.selected.svelte-zrlk2s {background:#e7f3ff;border-left:3px solid #295dcf;}.document-item.selected.svelte-zrlk2s:hover {background:#d0e8ff;}.selected-indicator.svelte-zrlk2s {margin-left:auto;color:#28a745;font-size:1.2em;display:flex;align-items:center;}`
|
|
6083
6083
|
};
|
|
6084
|
-
function
|
|
6084
|
+
function ja(t, e) {
|
|
6085
6085
|
re(e, !0), ue(t, Vh);
|
|
6086
6086
|
let n = g(e, "attachments", 15), r = g(e, "showDocumentSearchModal", 15), s = g(e, "modeSelected", 15);
|
|
6087
6087
|
const i = { default: 3, gendoc: 1, transcriptions: 1 }, a = 3;
|
|
6088
|
-
let o = /* @__PURE__ */ Ne(() => Zn(s())), c =
|
|
6088
|
+
let o = /* @__PURE__ */ Ne(() => Zn(s())), c = J(I([])), l = J(I([])), u = J(I([])), d = J(I([])), h = J(!1), p = J(""), w = /* @__PURE__ */ Ne(() => s() === "normative" || s() === "suite" ? f(l) : s() === "gendoc" ? f(u) : s() === "transcriptions" ? f(d) : f(c));
|
|
6089
6089
|
const m = () => {
|
|
6090
6090
|
b(c, I([])), b(l, I([])), b(u, I([])), b(d, I([]));
|
|
6091
|
-
}, S = (
|
|
6092
|
-
if (
|
|
6091
|
+
}, S = (j) => n()[j._id] ? (delete n()[j._id], !0) : !1, x = (j) => Object.keys(n()).length >= j ? (alert(/* @__PURE__ */ id({ count: j })), !1) : !0, _ = (j) => {
|
|
6092
|
+
if (j instanceof Kt)
|
|
6093
6093
|
return {
|
|
6094
|
-
title:
|
|
6095
|
-
ext_id:
|
|
6096
|
-
gendoc_id:
|
|
6097
|
-
isCommon:
|
|
6094
|
+
title: j.title,
|
|
6095
|
+
ext_id: j.externalId,
|
|
6096
|
+
gendoc_id: j.gendocId,
|
|
6097
|
+
isCommon: j.isCommon
|
|
6098
6098
|
};
|
|
6099
|
-
if (
|
|
6099
|
+
if (j instanceof en)
|
|
6100
6100
|
return {
|
|
6101
|
-
title:
|
|
6102
|
-
ext_id:
|
|
6101
|
+
title: j.title,
|
|
6102
|
+
ext_id: j.externalId,
|
|
6103
6103
|
gendoc_id: "",
|
|
6104
6104
|
isCommon: !0
|
|
6105
6105
|
};
|
|
6106
|
-
if (
|
|
6106
|
+
if (j instanceof cn)
|
|
6107
6107
|
return {
|
|
6108
|
-
title:
|
|
6109
|
-
ext_id:
|
|
6110
|
-
gendoc_id:
|
|
6108
|
+
title: j.name + ".akd",
|
|
6109
|
+
ext_id: j._id,
|
|
6110
|
+
gendoc_id: j._id,
|
|
6111
6111
|
isCommon: !1
|
|
6112
6112
|
};
|
|
6113
|
-
if (
|
|
6113
|
+
if (j instanceof tn)
|
|
6114
6114
|
return {
|
|
6115
|
-
title:
|
|
6116
|
-
ext_id:
|
|
6115
|
+
title: j.name + ".tldv",
|
|
6116
|
+
ext_id: j.externalMeetingId,
|
|
6117
6117
|
gendoc_id: "",
|
|
6118
6118
|
isCommon: !0
|
|
6119
6119
|
};
|
|
6120
6120
|
throw new Error("Unknown document type");
|
|
6121
|
-
}, z = (
|
|
6122
|
-
if (S(
|
|
6121
|
+
}, z = (j) => {
|
|
6122
|
+
if (S(j))
|
|
6123
6123
|
return;
|
|
6124
|
-
const
|
|
6125
|
-
x(
|
|
6126
|
-
}, F = async (
|
|
6127
|
-
if (
|
|
6124
|
+
const ee = j instanceof cn || j instanceof tn ? i.gendoc : i.default;
|
|
6125
|
+
x(ee) && n(n()[j._id] = _(j), !0);
|
|
6126
|
+
}, F = async (j, ee, Se, Ee) => {
|
|
6127
|
+
if (j.length < a) {
|
|
6128
6128
|
Se([]);
|
|
6129
6129
|
return;
|
|
6130
6130
|
}
|
|
6131
6131
|
b(h, !0);
|
|
6132
6132
|
try {
|
|
6133
|
-
const
|
|
6134
|
-
Se(
|
|
6135
|
-
} catch (
|
|
6136
|
-
console.error(
|
|
6133
|
+
const De = await ee();
|
|
6134
|
+
Se(De);
|
|
6135
|
+
} catch (De) {
|
|
6136
|
+
console.error(Ee, De), Se([]);
|
|
6137
6137
|
} finally {
|
|
6138
6138
|
b(h, !1);
|
|
6139
6139
|
}
|
|
6140
6140
|
};
|
|
6141
|
-
var
|
|
6141
|
+
var E = Xh(), L = y(E), A = y(L), N = y(A), Y = y(N);
|
|
6142
6142
|
k(N);
|
|
6143
|
-
var le =
|
|
6143
|
+
var le = O(N, 2);
|
|
6144
6144
|
le.__click = [
|
|
6145
6145
|
Nh,
|
|
6146
6146
|
r,
|
|
6147
6147
|
p,
|
|
6148
6148
|
m
|
|
6149
6149
|
], k(A);
|
|
6150
|
-
var
|
|
6150
|
+
var Fe = O(A, 2), Ae = y(Fe), ge = y(Ae), fe = O(y(ge), 2);
|
|
6151
6151
|
Tl(fe), fe.__input = [
|
|
6152
6152
|
Uh,
|
|
6153
6153
|
p,
|
|
@@ -6158,106 +6158,106 @@ function Ra(t, e) {
|
|
|
6158
6158
|
d,
|
|
6159
6159
|
c
|
|
6160
6160
|
], k(ge), k(Ae);
|
|
6161
|
-
var
|
|
6161
|
+
var We = O(Ae, 2), Ze = y(We);
|
|
6162
6162
|
{
|
|
6163
|
-
var ut = (
|
|
6164
|
-
var
|
|
6163
|
+
var ut = (j) => {
|
|
6164
|
+
var ee = Bh(), Se = y(ee);
|
|
6165
6165
|
Ls(Se, { size: "30", color: "#295dcf" });
|
|
6166
|
-
var
|
|
6167
|
-
k(
|
|
6168
|
-
},
|
|
6169
|
-
var
|
|
6166
|
+
var Ee = O(Se, 2), De = y(Ee, !0);
|
|
6167
|
+
k(Ee), k(ee), D((Ce) => _e(De, Ce), [() => /* @__PURE__ */ Wu()]), T(j, ee);
|
|
6168
|
+
}, Ke = (j) => {
|
|
6169
|
+
var ee = Tt(), Se = ft(ee);
|
|
6170
6170
|
{
|
|
6171
|
-
var
|
|
6172
|
-
var
|
|
6173
|
-
k(Ue), k(
|
|
6174
|
-
},
|
|
6175
|
-
var
|
|
6171
|
+
var Ee = (Ce) => {
|
|
6172
|
+
var Re = qh(), Ue = O(y(Re), 2), ke = y(Ue, !0);
|
|
6173
|
+
k(Ue), k(Re), D((W) => _e(ke, W), [() => /* @__PURE__ */ Zu()]), T(Ce, Re);
|
|
6174
|
+
}, De = (Ce) => {
|
|
6175
|
+
var Re = Tt(), Ue = ft(Re);
|
|
6176
6176
|
{
|
|
6177
6177
|
var ke = (ve) => {
|
|
6178
|
-
var ce = Hh(), he =
|
|
6178
|
+
var ce = Hh(), he = O(y(ce), 2), me = y(he);
|
|
6179
6179
|
{
|
|
6180
|
-
var je = (
|
|
6180
|
+
var je = (Oe) => {
|
|
6181
6181
|
var Pe = Qn();
|
|
6182
|
-
D((
|
|
6183
|
-
},
|
|
6184
|
-
var Pe = Tt(),
|
|
6182
|
+
D((Me) => _e(Pe, Me), [() => /* @__PURE__ */ Xu()]), T(Oe, Pe);
|
|
6183
|
+
}, et = (Oe) => {
|
|
6184
|
+
var Pe = Tt(), Me = ft(Pe);
|
|
6185
6185
|
{
|
|
6186
|
-
var
|
|
6186
|
+
var tt = (Be) => {
|
|
6187
6187
|
var B = Qn();
|
|
6188
6188
|
D((H) => _e(B, H), [() => /* @__PURE__ */ ad()]), T(Be, B);
|
|
6189
6189
|
}, Ye = (Be) => {
|
|
6190
6190
|
var B = Tt(), H = ft(B);
|
|
6191
6191
|
{
|
|
6192
|
-
var
|
|
6192
|
+
var V = (ie) => {
|
|
6193
6193
|
var ae = Qn();
|
|
6194
|
-
D((
|
|
6194
|
+
D((Le) => _e(ae, Le), [() => /* @__PURE__ */ od()]), T(ie, ae);
|
|
6195
6195
|
}, ye = (ie) => {
|
|
6196
6196
|
var ae = Qn();
|
|
6197
|
-
D((
|
|
6197
|
+
D((Le) => _e(ae, Le), [() => /* @__PURE__ */ Vu()]), T(ie, ae);
|
|
6198
6198
|
};
|
|
6199
|
-
|
|
6199
|
+
K(
|
|
6200
6200
|
H,
|
|
6201
6201
|
(ie) => {
|
|
6202
|
-
s() === "transcriptions" ? ie(
|
|
6202
|
+
s() === "transcriptions" ? ie(V) : ie(ye, !1);
|
|
6203
6203
|
},
|
|
6204
6204
|
!0
|
|
6205
6205
|
);
|
|
6206
6206
|
}
|
|
6207
6207
|
T(Be, B);
|
|
6208
6208
|
};
|
|
6209
|
-
|
|
6210
|
-
|
|
6209
|
+
K(
|
|
6210
|
+
Me,
|
|
6211
6211
|
(Be) => {
|
|
6212
|
-
s() === "gendoc" ? Be(
|
|
6212
|
+
s() === "gendoc" ? Be(tt) : Be(Ye, !1);
|
|
6213
6213
|
},
|
|
6214
6214
|
!0
|
|
6215
6215
|
);
|
|
6216
6216
|
}
|
|
6217
|
-
T(
|
|
6217
|
+
T(Oe, Pe);
|
|
6218
6218
|
};
|
|
6219
|
-
|
|
6220
|
-
s() === "normative" || s() === "suite" ?
|
|
6219
|
+
K(me, (Oe) => {
|
|
6220
|
+
s() === "normative" || s() === "suite" ? Oe(je) : Oe(et, !1);
|
|
6221
6221
|
});
|
|
6222
6222
|
}
|
|
6223
6223
|
k(he), k(ce), T(ve, ce);
|
|
6224
6224
|
}, W = (ve) => {
|
|
6225
6225
|
var ce = Zh();
|
|
6226
|
-
|
|
6226
|
+
Qe(ce, 21, () => f(w), Ve, (he, me) => {
|
|
6227
6227
|
var je = Wh();
|
|
6228
|
-
const
|
|
6228
|
+
const et = /* @__PURE__ */ Ne(() => Oh(f(me), f(o))), Oe = /* @__PURE__ */ Ne(() => Ph(f(me))), Pe = /* @__PURE__ */ Ne(() => Mh(f(me)));
|
|
6229
6229
|
je.__click = [Yh, z, me];
|
|
6230
|
-
var
|
|
6231
|
-
k(
|
|
6232
|
-
var Ye =
|
|
6230
|
+
var Me = y(je), tt = y(Me);
|
|
6231
|
+
k(Me);
|
|
6232
|
+
var Ye = O(Me, 2), Be = y(Ye), B = y(Be, !0);
|
|
6233
6233
|
k(Be);
|
|
6234
|
-
var H =
|
|
6234
|
+
var H = O(Be, 2);
|
|
6235
6235
|
{
|
|
6236
|
-
var
|
|
6237
|
-
var
|
|
6238
|
-
k(
|
|
6236
|
+
var V = (ae) => {
|
|
6237
|
+
var Le = Gh(), Ge = y(Le, !0);
|
|
6238
|
+
k(Le), D(() => _e(Ge, f(Pe))), T(ae, Le);
|
|
6239
6239
|
};
|
|
6240
|
-
|
|
6241
|
-
f(Pe) && ae(
|
|
6240
|
+
K(H, (ae) => {
|
|
6241
|
+
f(Pe) && ae(V);
|
|
6242
6242
|
});
|
|
6243
6243
|
}
|
|
6244
6244
|
k(Ye);
|
|
6245
|
-
var ye =
|
|
6245
|
+
var ye = O(Ye, 2);
|
|
6246
6246
|
{
|
|
6247
6247
|
var ie = (ae) => {
|
|
6248
|
-
var
|
|
6249
|
-
T(ae,
|
|
6248
|
+
var Le = Jh();
|
|
6249
|
+
T(ae, Le);
|
|
6250
6250
|
};
|
|
6251
|
-
|
|
6251
|
+
K(ye, (ae) => {
|
|
6252
6252
|
n()[f(me)._id] && ae(ie);
|
|
6253
6253
|
});
|
|
6254
6254
|
}
|
|
6255
6255
|
k(je), D(() => {
|
|
6256
|
-
ne(je, "selected", n()[f(me)._id]), nt(
|
|
6256
|
+
ne(je, "selected", n()[f(me)._id]), nt(tt, Ar(f(et).class), "svelte-zrlk2s"), M(tt, "style", `color: ${f(et).color}`), _e(B, f(Oe));
|
|
6257
6257
|
}), T(he, je);
|
|
6258
6258
|
}), k(ce), T(ve, ce);
|
|
6259
6259
|
};
|
|
6260
|
-
|
|
6260
|
+
K(
|
|
6261
6261
|
Ue,
|
|
6262
6262
|
(ve) => {
|
|
6263
6263
|
f(w).length === 0 ? ve(ke) : ve(W, !1);
|
|
@@ -6265,56 +6265,56 @@ function Ra(t, e) {
|
|
|
6265
6265
|
!0
|
|
6266
6266
|
);
|
|
6267
6267
|
}
|
|
6268
|
-
T(
|
|
6268
|
+
T(Ce, Re);
|
|
6269
6269
|
};
|
|
6270
|
-
|
|
6270
|
+
K(
|
|
6271
6271
|
Se,
|
|
6272
|
-
(
|
|
6273
|
-
f(p).length < a ? Ee
|
|
6272
|
+
(Ce) => {
|
|
6273
|
+
f(p).length < a ? Ce(Ee) : Ce(De, !1);
|
|
6274
6274
|
},
|
|
6275
6275
|
!0
|
|
6276
6276
|
);
|
|
6277
6277
|
}
|
|
6278
|
-
T(
|
|
6278
|
+
T(j, ee);
|
|
6279
6279
|
};
|
|
6280
|
-
|
|
6281
|
-
f(h) ?
|
|
6280
|
+
K(Ze, (j) => {
|
|
6281
|
+
f(h) ? j(ut) : j(Ke, !1);
|
|
6282
6282
|
});
|
|
6283
6283
|
}
|
|
6284
|
-
return k(
|
|
6285
|
-
(
|
|
6286
|
-
_e(
|
|
6287
|
-
${
|
|
6284
|
+
return k(We), k(Fe), k(L), k(E), D(
|
|
6285
|
+
(j, ee, Se) => {
|
|
6286
|
+
_e(Y, `${j ?? ""}
|
|
6287
|
+
${ee ?? ""}`), M(fe, "placeholder", `${j ?? ""} ${Se ?? ""} (min 3 caratteri)...`), Sl(fe, f(p));
|
|
6288
6288
|
},
|
|
6289
6289
|
[
|
|
6290
6290
|
() => /* @__PURE__ */ Ju(),
|
|
6291
6291
|
() => s() == "normative" || s() == "suite" ? f(o).name : s() == "transcriptions" ? "Meeting" : /* @__PURE__ */ di(),
|
|
6292
6292
|
() => s() == "normative" || s() == "suite" ? f(o).name : s() == "transcriptions" ? "Meeting" : /* @__PURE__ */ di()
|
|
6293
6293
|
]
|
|
6294
|
-
), T(t,
|
|
6294
|
+
), T(t, E), se({
|
|
6295
6295
|
get attachments() {
|
|
6296
6296
|
return n();
|
|
6297
6297
|
},
|
|
6298
|
-
set attachments(
|
|
6299
|
-
n(
|
|
6298
|
+
set attachments(j) {
|
|
6299
|
+
n(j), v();
|
|
6300
6300
|
},
|
|
6301
6301
|
get showDocumentSearchModal() {
|
|
6302
6302
|
return r();
|
|
6303
6303
|
},
|
|
6304
|
-
set showDocumentSearchModal(
|
|
6305
|
-
r(
|
|
6304
|
+
set showDocumentSearchModal(j) {
|
|
6305
|
+
r(j), v();
|
|
6306
6306
|
},
|
|
6307
6307
|
get modeSelected() {
|
|
6308
6308
|
return s();
|
|
6309
6309
|
},
|
|
6310
|
-
set modeSelected(
|
|
6311
|
-
s(
|
|
6310
|
+
set modeSelected(j) {
|
|
6311
|
+
s(j), v();
|
|
6312
6312
|
}
|
|
6313
6313
|
});
|
|
6314
6314
|
}
|
|
6315
6315
|
nn(["click", "input"]);
|
|
6316
6316
|
oe(
|
|
6317
|
-
|
|
6317
|
+
ja,
|
|
6318
6318
|
{
|
|
6319
6319
|
attachments: {},
|
|
6320
6320
|
showDocumentSearchModal: {},
|
|
@@ -6324,7 +6324,7 @@ oe(
|
|
|
6324
6324
|
[],
|
|
6325
6325
|
!0
|
|
6326
6326
|
);
|
|
6327
|
-
const Qh = (t) => t.toLowerCase().includes("it") ? "it" : t.toLowerCase().includes("en") ? "en" : "it", Kh =
|
|
6327
|
+
const Qh = (t) => t.toLowerCase().includes("it") ? "it" : t.toLowerCase().includes("en") ? "en" : "it", Kh = Ch, ep = Ih;
|
|
6328
6328
|
function tp(t) {
|
|
6329
6329
|
return Object.keys(t).map((e) => t[e].ext_id);
|
|
6330
6330
|
}
|
|
@@ -6399,7 +6399,7 @@ const np = async (t) => {
|
|
|
6399
6399
|
o && o.send(JSON.stringify({
|
|
6400
6400
|
content: e,
|
|
6401
6401
|
attachments: r,
|
|
6402
|
-
lang:
|
|
6402
|
+
lang: Cs(i)
|
|
6403
6403
|
}));
|
|
6404
6404
|
}, o.onmessage = (x) => {
|
|
6405
6405
|
let _ = JSON.parse(x.data);
|
|
@@ -6513,7 +6513,7 @@ const np = async (t) => {
|
|
|
6513
6513
|
}, fp = (t, e, n) => {
|
|
6514
6514
|
b(e, !1), b(n, !0);
|
|
6515
6515
|
};
|
|
6516
|
-
var hp = /* @__PURE__ */
|
|
6516
|
+
var hp = /* @__PURE__ */ R('<div class="dropdown-content svelte-dx030c"><button><i class="fa-solid fa-file-circle-plus svelte-dx030c"></i> <span> </span></button> <button><i class="fa-solid fa-upload svelte-dx030c"></i> <span> </span></button></div>'), pp = /* @__PURE__ */ R("<option>Generatore di Normative</option>"), vp = /* @__PURE__ */ R('<div class="attachment-title noopen-file-button svelte-dx030c"> </div>'), gp = (t, e, n, r, s) => e(n(), r(), s()), mp = /* @__PURE__ */ R('<button class="attachment-title open-file-button svelte-dx030c"> </button>'), bp = (t, e, n, r, s) => e(n(), r(), s()), xp = /* @__PURE__ */ R('<div><i></i> <!> <button aria-label="Remove attachment"><i class="fa-solid fa-xmark svelte-dx030c"></i></button></div>'), wp = /* @__PURE__ */ R('<button class="btn send-button stop-recording-btn svelte-dx030c" aria-label="Stop recording"><i class="fa-solid fa-stop"></i></button>'), _p = /* @__PURE__ */ R('<button class="btn send-button aks-btn-answer svelte-dx030c" aria-label="Synthesizing" disabled><!></button>'), kp = /* @__PURE__ */ R('<button class="btn send-button aks-btn-answer svelte-dx030c" aria-label="Start recording"><i class="fa-solid fa-microphone"></i></button>'), yp = /* @__PURE__ */ R('<button class="btn send-button stop-stream-btn svelte-dx030c" aria-label="Stop message"><i class="fa-solid fa-stop"></i></button>'), zp = /* @__PURE__ */ R('<button class="btn send-button aks-btn-answer send-message-btn svelte-dx030c" aria-label="Send message"><i class="fa-solid fa-paper-plane"></i></button>'), $p = /* @__PURE__ */ R('<div class="input svelte-dx030c"><div class="top svelte-dx030c"><textarea style="color: black !important;" class="form-control form-control-sm svelte-dx030c" rows="2"></textarea></div> <div class="bottom svelte-dx030c"><div class="controls-row svelte-dx030c"><div class="plus-button-container svelte-dx030c"><button><i></i></button> <!></div> <select class="mode-select svelte-dx030c" aria-label="Select mode"><option>Auto</option><option>Manuale Suite</option><option> </option><option>Knowledge Base</option><option>GenDoc</option><option>Trascrizioni</option><!></select> <div class="attachments-container svelte-dx030c"></div> <div class="send-buttons svelte-dx030c"><!> <!></div></div></div></div> <!>', 1);
|
|
6517
6517
|
const Tp = {
|
|
6518
6518
|
hash: "svelte-dx030c",
|
|
6519
6519
|
code: `textarea.svelte-dx030c {border:none;overflow-y:auto;resize:none;transition:height 0.1s ease;max-height:120px; /* 5 righe circa */}.noopen-file-button.svelte-dx030c {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-dx030c {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-dx030c:hover {background-color:transparent;text-decoration:underline;}.mode-select.svelte-dx030c {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-dx030c:hover {background-color:#e9ecef;border-color:#295dcf;}.mode-select.svelte-dx030c:focus {border-color:#295dcf;box-shadow:0 0 0 3px rgba(41, 93, 207, 0.1);}.plus-button-container.svelte-dx030c {position:relative;flex-shrink:0;}.plus-button.svelte-dx030c {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-dx030c: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-dx030c:active {transform:scale(0.95);}.plus-button-active.svelte-dx030c {background-color:#295dcf;color:white;border-color:#295dcf;}.plus-button-active.svelte-dx030c:hover {background-color:#1d4a9e;border-color:#1d4a9e;transform:scale(1.05);}.controls-row.svelte-dx030c {display:flex;align-items:center;width:100%;gap:5px;min-width:0;}.attachments-container.svelte-dx030c {display:flex;gap:5px;overflow-x:auto;min-width:0;flex:1;padding:2px 0;\r
|
|
@@ -6523,45 +6523,45 @@ const Tp = {
|
|
|
6523
6523
|
};
|
|
6524
6524
|
function Da(t, e) {
|
|
6525
6525
|
re(e, !0), ue(t, Tp);
|
|
6526
|
-
let n = g(e, "sendMessage", 7), r = g(e, "stopMessage", 7), s = g(e, "loading", 15), i = g(e, "languageSelected", 15), a = g(e, "modeSelected", 15), o = g(e, "attachments", 15), c = g(e, "userLevel", 15), l = g(e, "uploadFiles", 7), u = g(e, "actChat", 15), d =
|
|
6527
|
-
const
|
|
6528
|
-
function N($,
|
|
6529
|
-
return $ ? a() === "normative" || a() === "suite" ? f(F).name : "" :
|
|
6526
|
+
let n = g(e, "sendMessage", 7), r = g(e, "stopMessage", 7), s = g(e, "loading", 15), i = g(e, "languageSelected", 15), a = g(e, "modeSelected", 15), o = g(e, "attachments", 15), c = g(e, "userLevel", 15), l = g(e, "uploadFiles", 7), u = g(e, "actChat", 15), d = J(""), h, p, w = J(I([])), m = J(!1), S = J(!1), x = J(!1), _ = J(!1), z, F = /* @__PURE__ */ Ne(() => Zn(a()));
|
|
6527
|
+
const E = 20, L = 5, A = 0.5;
|
|
6528
|
+
function N($, P) {
|
|
6529
|
+
return $ ? a() === "normative" || a() === "suite" ? f(F).name : "" : P;
|
|
6530
6530
|
}
|
|
6531
|
-
function
|
|
6531
|
+
function Y() {
|
|
6532
6532
|
b(d, ""), o({}), h && (h.style.height = "auto");
|
|
6533
6533
|
}
|
|
6534
6534
|
function le() {
|
|
6535
6535
|
p != null && p.stream && p.stream.getTracks().forEach(($) => $.stop());
|
|
6536
6536
|
}
|
|
6537
|
-
const
|
|
6537
|
+
const Fe = () => {
|
|
6538
6538
|
if (!h) return;
|
|
6539
6539
|
h.style.height = "auto";
|
|
6540
|
-
const $ = h.scrollHeight,
|
|
6541
|
-
h.style.height = Math.min($,
|
|
6540
|
+
const $ = h.scrollHeight, P = E * L;
|
|
6541
|
+
h.style.height = Math.min($, P) + "px";
|
|
6542
6542
|
}, Ae = ($) => {
|
|
6543
6543
|
$.preventDefault();
|
|
6544
|
-
const
|
|
6544
|
+
const P = $.deltaY * A;
|
|
6545
6545
|
z.scrollTo({
|
|
6546
|
-
left: z.scrollLeft +
|
|
6546
|
+
left: z.scrollLeft + P,
|
|
6547
6547
|
behavior: "smooth"
|
|
6548
6548
|
});
|
|
6549
6549
|
}, ge = () => {
|
|
6550
6550
|
if (s() || !f(d).trim()) return;
|
|
6551
6551
|
const $ = tp(o());
|
|
6552
|
-
n()(f(d), a(), $),
|
|
6552
|
+
n()(f(d), a(), $), Y();
|
|
6553
6553
|
}, fe = async () => {
|
|
6554
6554
|
if (!s())
|
|
6555
6555
|
try {
|
|
6556
6556
|
const $ = await navigator.mediaDevices.getUserMedia({ audio: !0 });
|
|
6557
|
-
p = new MediaRecorder($, { mimeType: "audio/webm" }), p.ondataavailable = (
|
|
6558
|
-
|
|
6557
|
+
p = new MediaRecorder($, { mimeType: "audio/webm" }), p.ondataavailable = (P) => {
|
|
6558
|
+
P.data.size > 0 && f(w).push(P.data);
|
|
6559
6559
|
}, p.onstop = async () => {
|
|
6560
6560
|
b(S, !0);
|
|
6561
|
-
const
|
|
6561
|
+
const P = new Blob(f(w), { type: "audio/webm" });
|
|
6562
6562
|
try {
|
|
6563
|
-
const
|
|
6564
|
-
|
|
6563
|
+
const G = await Is.getText(P, i());
|
|
6564
|
+
G && (b(d, I(G)), ge());
|
|
6565
6565
|
} finally {
|
|
6566
6566
|
b(S, !1);
|
|
6567
6567
|
}
|
|
@@ -6569,242 +6569,242 @@ function Da(t, e) {
|
|
|
6569
6569
|
} catch ($) {
|
|
6570
6570
|
console.error("Failed to start recording:", $);
|
|
6571
6571
|
}
|
|
6572
|
-
}, Je = () => {
|
|
6573
|
-
p && (p.stop(), le(), b(m, !1), b(w, I([])));
|
|
6574
6572
|
}, We = () => {
|
|
6573
|
+
p && (p.stop(), le(), b(m, !1), b(w, I([])));
|
|
6574
|
+
}, Ze = () => {
|
|
6575
6575
|
b(x, !1);
|
|
6576
6576
|
const $ = document.createElement("input");
|
|
6577
|
-
$.type = "file", $.multiple = !1, $.onchange = async (
|
|
6578
|
-
var
|
|
6579
|
-
const
|
|
6580
|
-
if (
|
|
6581
|
-
const $e = Array.from(
|
|
6577
|
+
$.type = "file", $.multiple = !1, $.onchange = async (P) => {
|
|
6578
|
+
var te;
|
|
6579
|
+
const G = P.target;
|
|
6580
|
+
if (G.files && G.files.length > 0) {
|
|
6581
|
+
const $e = Array.from(G.files);
|
|
6582
6582
|
let qe = {
|
|
6583
6583
|
id: await l()($e[0]),
|
|
6584
6584
|
filename: $e[0].name,
|
|
6585
6585
|
suiteUrl: window.location.origin
|
|
6586
6586
|
};
|
|
6587
|
-
(
|
|
6587
|
+
(te = u()) != null && te.state.info && (u(u().state.info = u().state.info.filter((Je) => Je.key !== "CLOUDSTORAGE_FILE_UPLOADED"), !0), u().state.info.push({
|
|
6588
6588
|
key: "CLOUDSTORAGE_FILE_UPLOADED",
|
|
6589
6589
|
value: JSON.stringify(qe)
|
|
6590
|
-
});
|
|
6590
|
+
}));
|
|
6591
6591
|
}
|
|
6592
6592
|
}, $.click();
|
|
6593
|
-
}, ut = ($,
|
|
6594
|
-
delete o()[$],
|
|
6595
|
-
},
|
|
6596
|
-
await bt.getDocumentPage($,
|
|
6597
|
-
},
|
|
6593
|
+
}, ut = ($, P, G) => {
|
|
6594
|
+
delete o()[$], G && Gt.deleteFile(G, P);
|
|
6595
|
+
}, Ke = async ($, P, G) => {
|
|
6596
|
+
await bt.getDocumentPage($, P, G);
|
|
6597
|
+
}, j = [
|
|
6598
6598
|
"suite",
|
|
6599
6599
|
"normative",
|
|
6600
6600
|
"kb",
|
|
6601
6601
|
"gendoc",
|
|
6602
6602
|
"transcriptions"
|
|
6603
|
-
],
|
|
6603
|
+
], ee = ["auto", "audit_handler"];
|
|
6604
6604
|
It(() => {
|
|
6605
|
-
f(d) !== void 0 &&
|
|
6605
|
+
f(d) !== void 0 && Fe();
|
|
6606
6606
|
});
|
|
6607
|
-
var Se = $p(),
|
|
6608
|
-
bl(
|
|
6609
|
-
var
|
|
6607
|
+
var Se = $p(), Ee = ft(Se), De = y(Ee), Ce = y(De);
|
|
6608
|
+
bl(Ce), Ce.__input = Fe, as(Ce, ($) => h = $, () => h), k(De);
|
|
6609
|
+
var Re = O(De, 2), Ue = y(Re), ke = y(Ue), W = y(ke);
|
|
6610
6610
|
W.__click = [dp, x];
|
|
6611
6611
|
var ve = y(W);
|
|
6612
6612
|
k(W);
|
|
6613
|
-
var ce =
|
|
6613
|
+
var ce = O(W, 2);
|
|
6614
6614
|
{
|
|
6615
6615
|
var he = ($) => {
|
|
6616
|
-
var
|
|
6617
|
-
|
|
6616
|
+
var P = hp(), G = y(P);
|
|
6617
|
+
G.__click = [
|
|
6618
6618
|
fp,
|
|
6619
6619
|
x,
|
|
6620
6620
|
_
|
|
6621
6621
|
];
|
|
6622
|
-
var
|
|
6623
|
-
k(
|
|
6624
|
-
var Te =
|
|
6625
|
-
Te.__click =
|
|
6626
|
-
var qe =
|
|
6627
|
-
k(qe), k(Te), k(
|
|
6628
|
-
(gt, rn, q,
|
|
6629
|
-
nt(
|
|
6630
|
-
${
|
|
6622
|
+
var te = O(y(G), 2), $e = y(te);
|
|
6623
|
+
k(te), k(G);
|
|
6624
|
+
var Te = O(G, 2);
|
|
6625
|
+
Te.__click = Ze;
|
|
6626
|
+
var qe = O(y(Te), 2), Je = y(qe, !0);
|
|
6627
|
+
k(qe), k(Te), k(P), D(
|
|
6628
|
+
(gt, rn, q, Or, Pr, Vn, Et) => {
|
|
6629
|
+
nt(G, `${gt ?? ""} svelte-dx030c`), G.disabled = rn, _e($e, `${q ?? ""}
|
|
6630
|
+
${Or ?? ""}`), nt(Te, `${Pr ?? ""} svelte-dx030c`), Te.disabled = Vn, _e(Je, Et);
|
|
6631
6631
|
},
|
|
6632
6632
|
[
|
|
6633
|
-
() => `dropdown-option ${
|
|
6634
|
-
() => !
|
|
6633
|
+
() => `dropdown-option ${j.includes(a()) ? "" : "option-disabled"}`,
|
|
6634
|
+
() => !j.includes(a()),
|
|
6635
6635
|
() => /* @__PURE__ */ Fu(),
|
|
6636
6636
|
() => ep(a()),
|
|
6637
|
-
() => `dropdown-option ${
|
|
6638
|
-
() => !
|
|
6637
|
+
() => `dropdown-option ${ee.includes(a()) ? "" : "option-disabled"}`,
|
|
6638
|
+
() => !ee.includes(a()),
|
|
6639
6639
|
() => /* @__PURE__ */ Du()
|
|
6640
6640
|
]
|
|
6641
|
-
), T($,
|
|
6641
|
+
), T($, P);
|
|
6642
6642
|
};
|
|
6643
|
-
|
|
6643
|
+
K(ce, ($) => {
|
|
6644
6644
|
f(x) && $(he);
|
|
6645
6645
|
});
|
|
6646
6646
|
}
|
|
6647
6647
|
k(ke);
|
|
6648
|
-
var me =
|
|
6648
|
+
var me = O(ke, 2);
|
|
6649
6649
|
me.__change = [up, a, o];
|
|
6650
6650
|
var je = y(me);
|
|
6651
6651
|
je.value = (je.__value = "auto") == null ? "" : "auto";
|
|
6652
|
-
var
|
|
6653
|
-
|
|
6654
|
-
var
|
|
6655
|
-
|
|
6656
|
-
var Pe = y(
|
|
6657
|
-
k(
|
|
6658
|
-
var
|
|
6659
|
-
|
|
6660
|
-
var
|
|
6661
|
-
|
|
6662
|
-
var Ye =
|
|
6652
|
+
var et = O(je);
|
|
6653
|
+
et.value = (et.__value = "suite") == null ? "" : "suite";
|
|
6654
|
+
var Oe = O(et);
|
|
6655
|
+
Oe.value = (Oe.__value = "normative") == null ? "" : "normative";
|
|
6656
|
+
var Pe = y(Oe, !0);
|
|
6657
|
+
k(Oe);
|
|
6658
|
+
var Me = O(Oe);
|
|
6659
|
+
Me.value = (Me.__value = "kb") == null ? "" : "kb";
|
|
6660
|
+
var tt = O(Me);
|
|
6661
|
+
tt.value = (tt.__value = "gendoc") == null ? "" : "gendoc";
|
|
6662
|
+
var Ye = O(tt);
|
|
6663
6663
|
Ye.value = (Ye.__value = "transcriptions") == null ? "" : "transcriptions";
|
|
6664
|
-
var Be =
|
|
6664
|
+
var Be = O(Ye);
|
|
6665
6665
|
{
|
|
6666
6666
|
var B = ($) => {
|
|
6667
|
-
var
|
|
6668
|
-
|
|
6667
|
+
var P = pp();
|
|
6668
|
+
P.value = (P.__value = "audit_handler") == null ? "" : "audit_handler", T($, P);
|
|
6669
6669
|
};
|
|
6670
|
-
|
|
6670
|
+
K(Be, ($) => {
|
|
6671
6671
|
c() >= 50 && $(B);
|
|
6672
6672
|
});
|
|
6673
6673
|
}
|
|
6674
6674
|
k(me);
|
|
6675
|
-
var H =
|
|
6676
|
-
|
|
6677
|
-
let
|
|
6678
|
-
var gt = xp(), rn = y(gt), q =
|
|
6675
|
+
var H = O(me, 2);
|
|
6676
|
+
Qe(H, 21, () => Object.entries(o()), Ve, ($, P) => {
|
|
6677
|
+
let G = () => f(P)[0], te = () => f(P)[1].title, $e = () => f(P)[1].ext_id, Te = () => f(P)[1].gendoc_id, qe = () => f(P)[1].storage_id, Je = () => f(P)[1].isCommon;
|
|
6678
|
+
var gt = xp(), rn = y(gt), q = O(rn, 2);
|
|
6679
6679
|
{
|
|
6680
|
-
var
|
|
6680
|
+
var Or = (Et) => {
|
|
6681
6681
|
var $t = vp(), In = y($t, !0);
|
|
6682
6682
|
k($t), D(
|
|
6683
6683
|
(Gs) => {
|
|
6684
6684
|
M($t, "title", Gs), _e(In, Gs);
|
|
6685
6685
|
},
|
|
6686
|
-
[() =>
|
|
6687
|
-
), T(
|
|
6688
|
-
},
|
|
6686
|
+
[() => te().split(".")[0]]
|
|
6687
|
+
), T(Et, $t);
|
|
6688
|
+
}, Pr = (Et) => {
|
|
6689
6689
|
var $t = mp();
|
|
6690
6690
|
$t.__click = [
|
|
6691
6691
|
gp,
|
|
6692
|
-
|
|
6692
|
+
Ke,
|
|
6693
6693
|
$e,
|
|
6694
|
-
|
|
6694
|
+
te,
|
|
6695
6695
|
Te
|
|
6696
6696
|
];
|
|
6697
6697
|
var In = y($t, !0);
|
|
6698
|
-
k($t), D(() => _e(In,
|
|
6698
|
+
k($t), D(() => _e(In, te())), T(Et, $t);
|
|
6699
6699
|
};
|
|
6700
|
-
|
|
6701
|
-
|
|
6700
|
+
K(q, (Et) => {
|
|
6701
|
+
Je() ? Et(Or) : Et(Pr, !1);
|
|
6702
6702
|
});
|
|
6703
6703
|
}
|
|
6704
|
-
var Vn =
|
|
6704
|
+
var Vn = O(q, 2);
|
|
6705
6705
|
Vn.__click = [
|
|
6706
6706
|
bp,
|
|
6707
6707
|
ut,
|
|
6708
|
-
|
|
6709
|
-
|
|
6708
|
+
G,
|
|
6709
|
+
te,
|
|
6710
6710
|
qe
|
|
6711
6711
|
], k(gt), D(
|
|
6712
|
-
(
|
|
6713
|
-
nt(gt, `${`attachment-item ${
|
|
6712
|
+
(Et, $t, In) => {
|
|
6713
|
+
nt(gt, `${`attachment-item ${Je() ? "common" : ""}` ?? ""} svelte-dx030c`), M(gt, "title", Et), nt(rn, `${$t ?? ""} svelte-dx030c`), M(rn, "style", In), nt(Vn, `${`remove-btn ${Je() ? "common" : ""}` ?? ""} svelte-dx030c`);
|
|
6714
6714
|
},
|
|
6715
6715
|
[
|
|
6716
|
-
() => N(
|
|
6717
|
-
() => `fa-solid ${Kh(
|
|
6718
|
-
() =>
|
|
6716
|
+
() => N(Je() ?? !1, te()),
|
|
6717
|
+
() => `fa-solid ${Kh(te())}`,
|
|
6718
|
+
() => te().toLowerCase().endsWith(".tldv") ? "color: #1d1dff" : ""
|
|
6719
6719
|
]
|
|
6720
6720
|
), T($, gt);
|
|
6721
6721
|
}), k(H), as(H, ($) => z = $, () => z);
|
|
6722
|
-
var
|
|
6722
|
+
var V = O(H, 2), ye = y(V);
|
|
6723
6723
|
{
|
|
6724
6724
|
var ie = ($) => {
|
|
6725
|
-
var
|
|
6726
|
-
|
|
6725
|
+
var P = wp();
|
|
6726
|
+
P.__click = We, D((G) => M(P, "title", G), [() => /* @__PURE__ */ Pu()]), T($, P);
|
|
6727
6727
|
}, ae = ($) => {
|
|
6728
|
-
var
|
|
6728
|
+
var P = Tt(), G = ft(P);
|
|
6729
6729
|
{
|
|
6730
|
-
var
|
|
6731
|
-
var qe = _p(),
|
|
6732
|
-
Ls(
|
|
6730
|
+
var te = (Te) => {
|
|
6731
|
+
var qe = _p(), Je = y(qe);
|
|
6732
|
+
Ls(Je, { size: "20", color: "white" }), k(qe), T(Te, qe);
|
|
6733
6733
|
}, $e = (Te) => {
|
|
6734
6734
|
var qe = kp();
|
|
6735
|
-
qe.__click = fe, D((
|
|
6735
|
+
qe.__click = fe, D((Je) => M(qe, "title", Je), [() => /* @__PURE__ */ Mu()]), T(Te, qe);
|
|
6736
6736
|
};
|
|
6737
|
-
|
|
6738
|
-
|
|
6737
|
+
K(
|
|
6738
|
+
G,
|
|
6739
6739
|
(Te) => {
|
|
6740
|
-
f(S) ? Te(
|
|
6740
|
+
f(S) ? Te(te) : Te($e, !1);
|
|
6741
6741
|
},
|
|
6742
6742
|
!0
|
|
6743
6743
|
);
|
|
6744
6744
|
}
|
|
6745
|
-
T($,
|
|
6745
|
+
T($, P);
|
|
6746
6746
|
};
|
|
6747
|
-
|
|
6747
|
+
K(ye, ($) => {
|
|
6748
6748
|
f(m) ? $(ie) : $(ae, !1);
|
|
6749
6749
|
});
|
|
6750
6750
|
}
|
|
6751
|
-
var
|
|
6751
|
+
var Le = O(ye, 2);
|
|
6752
6752
|
{
|
|
6753
6753
|
var Ge = ($) => {
|
|
6754
|
-
var
|
|
6755
|
-
|
|
6756
|
-
var
|
|
6757
|
-
(
|
|
6758
|
-
}, D((
|
|
6754
|
+
var P = yp();
|
|
6755
|
+
P.__click = function(...G) {
|
|
6756
|
+
var te;
|
|
6757
|
+
(te = r()) == null || te.apply(this, G);
|
|
6758
|
+
}, D((G) => M(P, "title", G), [() => /* @__PURE__ */ nd()]), T($, P);
|
|
6759
6759
|
}, vt = ($) => {
|
|
6760
|
-
var
|
|
6761
|
-
|
|
6760
|
+
var P = zp();
|
|
6761
|
+
P.__click = ge, D((G) => M(P, "title", G), [() => /* @__PURE__ */ Nu()]), T($, P);
|
|
6762
6762
|
};
|
|
6763
|
-
|
|
6763
|
+
K(Le, ($) => {
|
|
6764
6764
|
s() ? $(Ge) : $(vt, !1);
|
|
6765
6765
|
});
|
|
6766
6766
|
}
|
|
6767
|
-
k(
|
|
6768
|
-
var Z =
|
|
6767
|
+
k(V), k(Ue), k(Re), k(Ee);
|
|
6768
|
+
var Z = O(Ee, 2);
|
|
6769
6769
|
{
|
|
6770
|
-
var
|
|
6771
|
-
|
|
6770
|
+
var Q = ($) => {
|
|
6771
|
+
ja($, {
|
|
6772
6772
|
get attachments() {
|
|
6773
6773
|
return o();
|
|
6774
6774
|
},
|
|
6775
|
-
set attachments(
|
|
6776
|
-
o(
|
|
6775
|
+
set attachments(P) {
|
|
6776
|
+
o(P);
|
|
6777
6777
|
},
|
|
6778
6778
|
get showDocumentSearchModal() {
|
|
6779
6779
|
return f(_);
|
|
6780
6780
|
},
|
|
6781
|
-
set showDocumentSearchModal(
|
|
6782
|
-
b(_, I(
|
|
6781
|
+
set showDocumentSearchModal(P) {
|
|
6782
|
+
b(_, I(P));
|
|
6783
6783
|
},
|
|
6784
6784
|
get modeSelected() {
|
|
6785
6785
|
return a();
|
|
6786
6786
|
},
|
|
6787
|
-
set modeSelected(
|
|
6788
|
-
a(
|
|
6787
|
+
set modeSelected(P) {
|
|
6788
|
+
a(P);
|
|
6789
6789
|
}
|
|
6790
6790
|
});
|
|
6791
6791
|
};
|
|
6792
|
-
|
|
6793
|
-
f(_) && $(
|
|
6792
|
+
K(Z, ($) => {
|
|
6793
|
+
f(_) && $(Q);
|
|
6794
6794
|
});
|
|
6795
6795
|
}
|
|
6796
6796
|
return D(
|
|
6797
|
-
($,
|
|
6798
|
-
M(
|
|
6797
|
+
($, P, G) => {
|
|
6798
|
+
M(Ce, "placeholder", $), nt(W, `${`btn plus-button ${f(x) ? "plus-button-active" : ""}` ?? ""} svelte-dx030c`), M(W, "aria-label", P), M(W, "title", P), nt(ve, `${`fa-solid ${f(x) ? "fa-xmark" : "fa-plus"}` ?? ""} svelte-dx030c`), _e(Pe, G);
|
|
6799
6799
|
},
|
|
6800
6800
|
[
|
|
6801
6801
|
() => /* @__PURE__ */ Lu(),
|
|
6802
|
-
() => /* @__PURE__ */
|
|
6802
|
+
() => /* @__PURE__ */ Ru(),
|
|
6803
6803
|
() => /* @__PURE__ */ $a()
|
|
6804
6804
|
]
|
|
6805
|
-
), Wt("keypress",
|
|
6805
|
+
), Wt("keypress", Ce, ($) => {
|
|
6806
6806
|
$.key === "Enter" && !$.shiftKey && ($.preventDefault(), ge());
|
|
6807
|
-
}),
|
|
6807
|
+
}), jl(Ce, () => f(d), ($) => b(d, $)), ya(me, a), Wt("wheel", H, Ae), xt(3, Ee, () => Ut, () => ({ duration: 300, delay: 200 })), T(t, Se), se({
|
|
6808
6808
|
get sendMessage() {
|
|
6809
6809
|
return n();
|
|
6810
6810
|
},
|
|
@@ -6879,7 +6879,7 @@ oe(
|
|
|
6879
6879
|
[],
|
|
6880
6880
|
!0
|
|
6881
6881
|
);
|
|
6882
|
-
const
|
|
6882
|
+
const Oa = /^[a-z0-9]+(-[a-z0-9]+)*$/, Rr = (t, e, n, r = "") => {
|
|
6883
6883
|
const s = t.split(":");
|
|
6884
6884
|
if (t.slice(0, 1) === "@") {
|
|
6885
6885
|
if (s.length < 2 || s.length > 3)
|
|
@@ -6917,7 +6917,7 @@ const Pa = /^[a-z0-9]+(-[a-z0-9]+)*$/, jr = (t, e, n, r = "") => {
|
|
|
6917
6917
|
return null;
|
|
6918
6918
|
}, ar = (t, e) => t ? !!// Check prefix: cannot be empty, unless allowSimpleName is enabled
|
|
6919
6919
|
// Check name: cannot be empty
|
|
6920
|
-
((e && t.prefix === "" || t.prefix) && t.name) : !1,
|
|
6920
|
+
((e && t.prefix === "" || t.prefix) && t.name) : !1, Pa = Object.freeze(
|
|
6921
6921
|
{
|
|
6922
6922
|
left: 0,
|
|
6923
6923
|
top: 0,
|
|
@@ -6928,11 +6928,11 @@ const Pa = /^[a-z0-9]+(-[a-z0-9]+)*$/, jr = (t, e, n, r = "") => {
|
|
|
6928
6928
|
rotate: 0,
|
|
6929
6929
|
vFlip: !1,
|
|
6930
6930
|
hFlip: !1
|
|
6931
|
-
}),
|
|
6932
|
-
...
|
|
6931
|
+
}), jr = Object.freeze({
|
|
6932
|
+
...Pa,
|
|
6933
6933
|
...br
|
|
6934
6934
|
}), os = Object.freeze({
|
|
6935
|
-
...
|
|
6935
|
+
...jr,
|
|
6936
6936
|
body: "",
|
|
6937
6937
|
hidden: !1
|
|
6938
6938
|
});
|
|
@@ -6948,7 +6948,7 @@ function vi(t, e) {
|
|
|
6948
6948
|
r in br ? r in t && !(r in n) && (n[r] = br[r]) : r in e ? n[r] = e[r] : r in t && (n[r] = t[r]);
|
|
6949
6949
|
return n;
|
|
6950
6950
|
}
|
|
6951
|
-
function
|
|
6951
|
+
function Ep(t, e) {
|
|
6952
6952
|
const n = t.icons, r = t.aliases || /* @__PURE__ */ Object.create(null), s = /* @__PURE__ */ Object.create(null);
|
|
6953
6953
|
function i(a) {
|
|
6954
6954
|
if (n[a])
|
|
@@ -6962,7 +6962,7 @@ function Cp(t, e) {
|
|
|
6962
6962
|
}
|
|
6963
6963
|
return Object.keys(n).concat(Object.keys(r)).forEach(i), s;
|
|
6964
6964
|
}
|
|
6965
|
-
function
|
|
6965
|
+
function Cp(t, e, n) {
|
|
6966
6966
|
const r = t.icons, s = t.aliases || /* @__PURE__ */ Object.create(null);
|
|
6967
6967
|
let i = {};
|
|
6968
6968
|
function a(o) {
|
|
@@ -6980,10 +6980,10 @@ function Ma(t, e) {
|
|
|
6980
6980
|
t.not_found instanceof Array && t.not_found.forEach((s) => {
|
|
6981
6981
|
e(s, null), n.push(s);
|
|
6982
6982
|
});
|
|
6983
|
-
const r =
|
|
6983
|
+
const r = Ep(t);
|
|
6984
6984
|
for (const s in r) {
|
|
6985
6985
|
const i = r[s];
|
|
6986
|
-
i && (e(s,
|
|
6986
|
+
i && (e(s, Cp(t, s, i)), n.push(s));
|
|
6987
6987
|
}
|
|
6988
6988
|
return n;
|
|
6989
6989
|
}
|
|
@@ -6991,7 +6991,7 @@ const Ip = {
|
|
|
6991
6991
|
provider: "",
|
|
6992
6992
|
aliases: {},
|
|
6993
6993
|
not_found: {},
|
|
6994
|
-
...
|
|
6994
|
+
...Pa
|
|
6995
6995
|
};
|
|
6996
6996
|
function Gr(t, e) {
|
|
6997
6997
|
for (const n in e)
|
|
@@ -7065,15 +7065,15 @@ let Hn = !1;
|
|
|
7065
7065
|
function Ba(t) {
|
|
7066
7066
|
return typeof t == "boolean" && (Hn = t), Hn;
|
|
7067
7067
|
}
|
|
7068
|
-
function
|
|
7069
|
-
const e = typeof t == "string" ?
|
|
7068
|
+
function Rp(t) {
|
|
7069
|
+
const e = typeof t == "string" ? Rr(t, !0, Hn) : t;
|
|
7070
7070
|
if (e) {
|
|
7071
7071
|
const n = kn(e.provider, e.prefix), r = e.name;
|
|
7072
7072
|
return n.icons[r] || (n.missing.has(r) ? null : void 0);
|
|
7073
7073
|
}
|
|
7074
7074
|
}
|
|
7075
|
-
function
|
|
7076
|
-
const n =
|
|
7075
|
+
function jp(t, e) {
|
|
7076
|
+
const n = Rr(t, !0, Hn);
|
|
7077
7077
|
if (!n)
|
|
7078
7078
|
return !1;
|
|
7079
7079
|
const r = kn(n.provider, n.prefix);
|
|
@@ -7085,7 +7085,7 @@ function Fp(t, e) {
|
|
|
7085
7085
|
if (typeof e != "string" && (e = t.provider || ""), Hn && !e && !t.prefix) {
|
|
7086
7086
|
let s = !1;
|
|
7087
7087
|
return Na(t) && (t.prefix = "", Ma(t, (i, a) => {
|
|
7088
|
-
|
|
7088
|
+
jp(i, a) && (s = !0);
|
|
7089
7089
|
})), s;
|
|
7090
7090
|
}
|
|
7091
7091
|
const n = t.prefix;
|
|
@@ -7106,7 +7106,7 @@ const qa = Object.freeze({
|
|
|
7106
7106
|
...qa,
|
|
7107
7107
|
// Transformations
|
|
7108
7108
|
...br
|
|
7109
|
-
}), Dp = /(-?[0-9.]*[0-9]+[0-9.]*)/g,
|
|
7109
|
+
}), Dp = /(-?[0-9.]*[0-9]+[0-9.]*)/g, Op = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
|
|
7110
7110
|
function mi(t, e, n) {
|
|
7111
7111
|
if (e === 1)
|
|
7112
7112
|
return t;
|
|
@@ -7118,7 +7118,7 @@ function mi(t, e, n) {
|
|
|
7118
7118
|
if (r === null || !r.length)
|
|
7119
7119
|
return t;
|
|
7120
7120
|
const s = [];
|
|
7121
|
-
let i = r.shift(), a =
|
|
7121
|
+
let i = r.shift(), a = Op.test(i);
|
|
7122
7122
|
for (; ; ) {
|
|
7123
7123
|
if (a) {
|
|
7124
7124
|
const o = parseFloat(i);
|
|
@@ -7130,7 +7130,7 @@ function mi(t, e, n) {
|
|
|
7130
7130
|
a = !a;
|
|
7131
7131
|
}
|
|
7132
7132
|
}
|
|
7133
|
-
function
|
|
7133
|
+
function Pp(t, e = "defs") {
|
|
7134
7134
|
let n = "";
|
|
7135
7135
|
const r = t.indexOf("<" + e);
|
|
7136
7136
|
for (; r >= 0; ) {
|
|
@@ -7151,13 +7151,13 @@ function Mp(t, e) {
|
|
|
7151
7151
|
return t ? "<defs>" + t + "</defs>" + e : e;
|
|
7152
7152
|
}
|
|
7153
7153
|
function Np(t, e, n) {
|
|
7154
|
-
const r =
|
|
7154
|
+
const r = Pp(t);
|
|
7155
7155
|
return Mp(r.defs, e + r.content + n);
|
|
7156
7156
|
}
|
|
7157
7157
|
const Up = (t) => t === "unset" || t === "undefined" || t === "none";
|
|
7158
7158
|
function Bp(t, e) {
|
|
7159
7159
|
const n = {
|
|
7160
|
-
...
|
|
7160
|
+
...jr,
|
|
7161
7161
|
...t
|
|
7162
7162
|
}, r = {
|
|
7163
7163
|
...Ha,
|
|
@@ -7242,7 +7242,7 @@ function Jp(t, e) {
|
|
|
7242
7242
|
function cs(t) {
|
|
7243
7243
|
return ls[t] || ls[""];
|
|
7244
7244
|
}
|
|
7245
|
-
function
|
|
7245
|
+
function js(t) {
|
|
7246
7246
|
let e;
|
|
7247
7247
|
if (typeof t.resources == "string")
|
|
7248
7248
|
e = [t.resources];
|
|
@@ -7273,11 +7273,11 @@ const Fs = /* @__PURE__ */ Object.create(null), Ln = [
|
|
|
7273
7273
|
], or = [];
|
|
7274
7274
|
for (; Ln.length > 0; )
|
|
7275
7275
|
Ln.length === 1 || Math.random() > 0.5 ? or.push(Ln.shift()) : or.push(Ln.pop());
|
|
7276
|
-
Fs[""] =
|
|
7276
|
+
Fs[""] = js({
|
|
7277
7277
|
resources: ["https://api.iconify.design"].concat(or)
|
|
7278
7278
|
});
|
|
7279
7279
|
function Wp(t, e) {
|
|
7280
|
-
const n =
|
|
7280
|
+
const n = js(e);
|
|
7281
7281
|
return n === null ? !1 : (Fs[t] = n, !0);
|
|
7282
7282
|
}
|
|
7283
7283
|
function Ds(t) {
|
|
@@ -7476,7 +7476,7 @@ function iv(t, e, n) {
|
|
|
7476
7476
|
function av(t, e = !0, n = !1) {
|
|
7477
7477
|
const r = [];
|
|
7478
7478
|
return t.forEach((s) => {
|
|
7479
|
-
const i = typeof s == "string" ?
|
|
7479
|
+
const i = typeof s == "string" ? Rr(s, e, n) : s;
|
|
7480
7480
|
i && r.push(i);
|
|
7481
7481
|
}), r;
|
|
7482
7482
|
}
|
|
@@ -7536,12 +7536,12 @@ function lv(t, e, n, r) {
|
|
|
7536
7536
|
}), h = [];
|
|
7537
7537
|
}
|
|
7538
7538
|
function F(L, A, N) {
|
|
7539
|
-
const
|
|
7539
|
+
const Y = A !== "success";
|
|
7540
7540
|
switch (h = h.filter((le) => le !== L), c) {
|
|
7541
7541
|
case "pending":
|
|
7542
7542
|
break;
|
|
7543
7543
|
case "failed":
|
|
7544
|
-
if (
|
|
7544
|
+
if (Y || !t.dataAfterTimeout)
|
|
7545
7545
|
return;
|
|
7546
7546
|
break;
|
|
7547
7547
|
default:
|
|
@@ -7551,8 +7551,8 @@ function lv(t, e, n, r) {
|
|
|
7551
7551
|
u = N, _();
|
|
7552
7552
|
return;
|
|
7553
7553
|
}
|
|
7554
|
-
if (
|
|
7555
|
-
u = N, h.length || (a.length ?
|
|
7554
|
+
if (Y) {
|
|
7555
|
+
u = N, h.length || (a.length ? E() : _());
|
|
7556
7556
|
return;
|
|
7557
7557
|
}
|
|
7558
7558
|
if (w(), z(), !t.random) {
|
|
@@ -7563,7 +7563,7 @@ function lv(t, e, n, r) {
|
|
|
7563
7563
|
le(N);
|
|
7564
7564
|
});
|
|
7565
7565
|
}
|
|
7566
|
-
function
|
|
7566
|
+
function E() {
|
|
7567
7567
|
if (c !== "pending")
|
|
7568
7568
|
return;
|
|
7569
7569
|
w();
|
|
@@ -7581,13 +7581,13 @@ function lv(t, e, n, r) {
|
|
|
7581
7581
|
const A = {
|
|
7582
7582
|
status: "pending",
|
|
7583
7583
|
resource: L,
|
|
7584
|
-
callback: (N,
|
|
7585
|
-
F(A, N,
|
|
7584
|
+
callback: (N, Y) => {
|
|
7585
|
+
F(A, N, Y);
|
|
7586
7586
|
}
|
|
7587
7587
|
};
|
|
7588
|
-
h.push(A), l++, d = setTimeout(
|
|
7588
|
+
h.push(A), l++, d = setTimeout(E, t.rotate), n(L, e, A.callback);
|
|
7589
7589
|
}
|
|
7590
|
-
return setTimeout(
|
|
7590
|
+
return setTimeout(E), x;
|
|
7591
7591
|
}
|
|
7592
7592
|
function Ga(t) {
|
|
7593
7593
|
const e = {
|
|
@@ -7648,7 +7648,7 @@ function uv(t, e, n) {
|
|
|
7648
7648
|
const a = cv(t);
|
|
7649
7649
|
a && (r = a.redundancy);
|
|
7650
7650
|
} else {
|
|
7651
|
-
const i =
|
|
7651
|
+
const i = js(t);
|
|
7652
7652
|
if (i) {
|
|
7653
7653
|
r = Ga(i);
|
|
7654
7654
|
const a = t.resources ? t.resources[0] : "", o = cs(a);
|
|
@@ -7667,13 +7667,13 @@ function dv(t) {
|
|
|
7667
7667
|
function fv(t) {
|
|
7668
7668
|
const e = [], n = [];
|
|
7669
7669
|
return t.forEach((r) => {
|
|
7670
|
-
(r.match(
|
|
7670
|
+
(r.match(Oa) ? e : n).push(r);
|
|
7671
7671
|
}), {
|
|
7672
7672
|
valid: e,
|
|
7673
7673
|
invalid: n
|
|
7674
7674
|
};
|
|
7675
7675
|
}
|
|
7676
|
-
function
|
|
7676
|
+
function Rn(t, e, n) {
|
|
7677
7677
|
function r() {
|
|
7678
7678
|
const s = t.pendingIcons;
|
|
7679
7679
|
e.forEach((i) => {
|
|
@@ -7709,7 +7709,7 @@ function hv(t, e) {
|
|
|
7709
7709
|
_i(
|
|
7710
7710
|
t.loadIcons(s, r, n),
|
|
7711
7711
|
(u) => {
|
|
7712
|
-
|
|
7712
|
+
Rn(t, s, u);
|
|
7713
7713
|
}
|
|
7714
7714
|
);
|
|
7715
7715
|
return;
|
|
@@ -7724,22 +7724,22 @@ function hv(t, e) {
|
|
|
7724
7724
|
[u]: h
|
|
7725
7725
|
}
|
|
7726
7726
|
} : null;
|
|
7727
|
-
|
|
7727
|
+
Rn(t, [u], p);
|
|
7728
7728
|
});
|
|
7729
7729
|
});
|
|
7730
7730
|
return;
|
|
7731
7731
|
}
|
|
7732
7732
|
const { valid: a, invalid: o } = fv(s);
|
|
7733
|
-
if (o.length &&
|
|
7733
|
+
if (o.length && Rn(t, o, null), !a.length)
|
|
7734
7734
|
return;
|
|
7735
|
-
const c = r.match(
|
|
7735
|
+
const c = r.match(Oa) ? cs(n) : null;
|
|
7736
7736
|
if (!c) {
|
|
7737
|
-
|
|
7737
|
+
Rn(t, a, null);
|
|
7738
7738
|
return;
|
|
7739
7739
|
}
|
|
7740
7740
|
c.prepare(n, r, a).forEach((u) => {
|
|
7741
7741
|
uv(n, u, (d) => {
|
|
7742
|
-
|
|
7742
|
+
Rn(t, u.icons, d);
|
|
7743
7743
|
});
|
|
7744
7744
|
});
|
|
7745
7745
|
}));
|
|
@@ -7976,11 +7976,11 @@ function Sv(t, e, n, r, s) {
|
|
|
7976
7976
|
e.loading && (e.loading.abort(), e.loading = null);
|
|
7977
7977
|
}
|
|
7978
7978
|
if (typeof t == "object" && t !== null && typeof t.body == "string")
|
|
7979
|
-
return e.name = "", i(), { data: { ...
|
|
7979
|
+
return e.name = "", i(), { data: { ...jr, ...t } };
|
|
7980
7980
|
let a;
|
|
7981
|
-
if (typeof t != "string" || (a =
|
|
7981
|
+
if (typeof t != "string" || (a = Rr(t, !1, !0)) === null)
|
|
7982
7982
|
return i(), null;
|
|
7983
|
-
const o =
|
|
7983
|
+
const o = Rp(a);
|
|
7984
7984
|
if (!o)
|
|
7985
7985
|
return n && (!e.loading || e.loading.name !== t) && (i(), e.name = "", e.loading = {
|
|
7986
7986
|
name: t,
|
|
@@ -7992,11 +7992,11 @@ function Sv(t, e, n, r, s) {
|
|
|
7992
7992
|
}
|
|
7993
7993
|
function $i(t, e) {
|
|
7994
7994
|
return t ? Tv({
|
|
7995
|
-
...
|
|
7995
|
+
...jr,
|
|
7996
7996
|
...t
|
|
7997
7997
|
}, e) : null;
|
|
7998
7998
|
}
|
|
7999
|
-
var
|
|
7999
|
+
var Ev = /* @__PURE__ */ xl("<svg><!></svg>"), Cv = /* @__PURE__ */ R("<span></span>");
|
|
8000
8000
|
function Xt(t, e) {
|
|
8001
8001
|
const n = ql(e, [
|
|
8002
8002
|
"children",
|
|
@@ -8023,10 +8023,10 @@ function Xt(t, e) {
|
|
|
8023
8023
|
}
|
|
8024
8024
|
Lr(() => {
|
|
8025
8025
|
b(s, !0);
|
|
8026
|
-
}),
|
|
8026
|
+
}), Ol(() => {
|
|
8027
8027
|
Ur(r, f(r).destroyed = !0), f(r).loading && (f(r).loading.abort(), Ur(r, f(r).loading = null));
|
|
8028
8028
|
}), Gn(
|
|
8029
|
-
() => (f(i),
|
|
8029
|
+
() => (f(i), Cn(n), f(s), f(r), f(a), $i),
|
|
8030
8030
|
() => {
|
|
8031
8031
|
f(i);
|
|
8032
8032
|
const h = !!n.ssr || f(s), p = Sv(n.icon, f(r), h, c, o);
|
|
@@ -8039,29 +8039,29 @@ function Xt(t, e) {
|
|
|
8039
8039
|
var p = Tt(), w = ft(p);
|
|
8040
8040
|
{
|
|
8041
8041
|
var m = (x) => {
|
|
8042
|
-
var _ =
|
|
8042
|
+
var _ = Ev();
|
|
8043
8043
|
let z;
|
|
8044
8044
|
var F = y(_);
|
|
8045
8045
|
ss(F, () => f(a).body, !0, !1), k(_), D(() => z = ni(_, z, { ...f(a).attributes }, void 0, !0)), T(x, _);
|
|
8046
8046
|
}, S = (x) => {
|
|
8047
|
-
var _ =
|
|
8047
|
+
var _ = Cv();
|
|
8048
8048
|
let z;
|
|
8049
8049
|
D(() => z = ni(_, z, { ...f(a).attributes })), T(x, _);
|
|
8050
8050
|
};
|
|
8051
|
-
|
|
8051
|
+
K(w, (x) => {
|
|
8052
8052
|
f(a).svg ? x(m) : x(S, !1);
|
|
8053
8053
|
});
|
|
8054
8054
|
}
|
|
8055
8055
|
T(h, p);
|
|
8056
8056
|
};
|
|
8057
|
-
|
|
8057
|
+
K(u, (h) => {
|
|
8058
8058
|
f(a) && h(d);
|
|
8059
8059
|
});
|
|
8060
8060
|
}
|
|
8061
8061
|
T(t, l), se();
|
|
8062
8062
|
}
|
|
8063
8063
|
oe(Xt, {}, [], [], !0);
|
|
8064
|
-
function
|
|
8064
|
+
function Os() {
|
|
8065
8065
|
return {
|
|
8066
8066
|
async: !1,
|
|
8067
8067
|
breaks: !1,
|
|
@@ -8075,11 +8075,11 @@ function Ps() {
|
|
|
8075
8075
|
walkTokens: null
|
|
8076
8076
|
};
|
|
8077
8077
|
}
|
|
8078
|
-
let vn =
|
|
8078
|
+
let vn = Os();
|
|
8079
8079
|
function Wa(t) {
|
|
8080
8080
|
vn = t;
|
|
8081
8081
|
}
|
|
8082
|
-
const
|
|
8082
|
+
const Pn = { exec: () => null };
|
|
8083
8083
|
function we(t, e = "") {
|
|
8084
8084
|
let n = typeof t == "string" ? t : t.source;
|
|
8085
8085
|
const r = {
|
|
@@ -8148,23 +8148,23 @@ const rt = {
|
|
|
8148
8148
|
fencesBeginRegex: (t) => new RegExp(`^ {0,${Math.min(3, t - 1)}}(?:\`\`\`|~~~)`),
|
|
8149
8149
|
headingBeginRegex: (t) => new RegExp(`^ {0,${Math.min(3, t - 1)}}#`),
|
|
8150
8150
|
htmlBeginRegex: (t) => new RegExp(`^ {0,${Math.min(3, t - 1)}}<(?:[a-z].*>|!--)`, "i")
|
|
8151
|
-
}, Iv = /^(?:[ \t]*(?:\n|$))+/, Av = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, Lv = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, Xn = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,
|
|
8151
|
+
}, Iv = /^(?:[ \t]*(?:\n|$))+/, Av = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, Lv = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, Xn = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, Rv = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, Ps = /(?:[*+-]|\d{1,9}[.)])/, Za = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, Xa = we(Za).replace(/bull/g, Ps).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), jv = we(Za).replace(/bull/g, Ps).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), Ms = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, Fv = /^[^\n]+/, Ns = /(?!\s*\])(?:\\.|[^\[\]\\])+/, Dv = we(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", Ns).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), Ov = we(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, Ps).getRegex(), Fr = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", Us = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, Pv = we("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", Us).replace("tag", Fr).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), Va = we(Ms).replace("hr", Xn).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Fr).getRegex(), Mv = we(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", Va).getRegex(), Bs = {
|
|
8152
8152
|
blockquote: Mv,
|
|
8153
8153
|
code: Av,
|
|
8154
8154
|
def: Dv,
|
|
8155
8155
|
fences: Lv,
|
|
8156
|
-
heading:
|
|
8156
|
+
heading: Rv,
|
|
8157
8157
|
hr: Xn,
|
|
8158
|
-
html:
|
|
8158
|
+
html: Pv,
|
|
8159
8159
|
lheading: Xa,
|
|
8160
|
-
list:
|
|
8160
|
+
list: Ov,
|
|
8161
8161
|
newline: Iv,
|
|
8162
8162
|
paragraph: Va,
|
|
8163
|
-
table:
|
|
8163
|
+
table: Pn,
|
|
8164
8164
|
text: Fv
|
|
8165
8165
|
}, Ti = we("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", Xn).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", Fr).getRegex(), Nv = {
|
|
8166
8166
|
...Bs,
|
|
8167
|
-
lheading:
|
|
8167
|
+
lheading: jv,
|
|
8168
8168
|
table: Ti,
|
|
8169
8169
|
paragraph: we(Ms).replace("hr", Xn).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", Ti).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", Fr).getRegex()
|
|
8170
8170
|
}, Uv = {
|
|
@@ -8172,20 +8172,20 @@ const rt = {
|
|
|
8172
8172
|
html: we(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", Us).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(),
|
|
8173
8173
|
def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,
|
|
8174
8174
|
heading: /^(#{1,6})(.*)(?:\n+|$)/,
|
|
8175
|
-
fences:
|
|
8175
|
+
fences: Pn,
|
|
8176
8176
|
// fences not supported
|
|
8177
8177
|
lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
|
|
8178
8178
|
paragraph: we(Ms).replace("hr", Xn).replace("heading", ` *#{1,6} *[^
|
|
8179
8179
|
]`).replace("lheading", Xa).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
|
|
8180
8180
|
}, Bv = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, qv = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, Qa = /^( {2,}|\\)\n(?!\s*$)/, Hv = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, Dr = /[\p{P}\p{S}]/u, qs = /[\s\p{P}\p{S}]/u, Ka = /[^\s\p{P}\p{S}]/u, Yv = we(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, qs).getRegex(), eo = /(?!~)[\p{P}\p{S}]/u, Gv = /(?!~)[\s\p{P}\p{S}]/u, Jv = /(?:[^\s\p{P}\p{S}]|~)/u, Wv = /\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g, to = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, Zv = we(to, "u").replace(/punct/g, Dr).getRegex(), Xv = we(to, "u").replace(/punct/g, eo).getRegex(), no = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", Vv = we(no, "gu").replace(/notPunctSpace/g, Ka).replace(/punctSpace/g, qs).replace(/punct/g, Dr).getRegex(), Qv = we(no, "gu").replace(/notPunctSpace/g, Jv).replace(/punctSpace/g, Gv).replace(/punct/g, eo).getRegex(), Kv = we("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, Ka).replace(/punctSpace/g, qs).replace(/punct/g, Dr).getRegex(), eg = we(/\\(punct)/, "gu").replace(/punct/g, Dr).getRegex(), tg = we(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), ng = we(Us).replace("(?:-->|$)", "-->").getRegex(), rg = we("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", ng).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), xr = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, sg = we(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label", xr).replace("href", /<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), ro = we(/^!?\[(label)\]\[(ref)\]/).replace("label", xr).replace("ref", Ns).getRegex(), so = we(/^!?\[(ref)\](?:\[\])?/).replace("ref", Ns).getRegex(), ig = we("reflink|nolink(?!\\()", "g").replace("reflink", ro).replace("nolink", so).getRegex(), Hs = {
|
|
8181
|
-
_backpedal:
|
|
8181
|
+
_backpedal: Pn,
|
|
8182
8182
|
// only used for GFM url
|
|
8183
8183
|
anyPunctuation: eg,
|
|
8184
8184
|
autolink: tg,
|
|
8185
8185
|
blockSkip: Wv,
|
|
8186
8186
|
br: Qa,
|
|
8187
8187
|
code: qv,
|
|
8188
|
-
del:
|
|
8188
|
+
del: Pn,
|
|
8189
8189
|
emStrongLDelim: Zv,
|
|
8190
8190
|
emStrongRDelimAst: Vv,
|
|
8191
8191
|
emStrongRDelimUnd: Kv,
|
|
@@ -8197,7 +8197,7 @@ const rt = {
|
|
|
8197
8197
|
reflinkSearch: ig,
|
|
8198
8198
|
tag: rg,
|
|
8199
8199
|
text: Hv,
|
|
8200
|
-
url:
|
|
8200
|
+
url: Pn
|
|
8201
8201
|
}, ag = {
|
|
8202
8202
|
...Hs,
|
|
8203
8203
|
link: we(/^!?\[(label)\]\((.*?)\)/).replace("label", xr).getRegex(),
|
|
@@ -8218,7 +8218,7 @@ const rt = {
|
|
|
8218
8218
|
normal: Bs,
|
|
8219
8219
|
gfm: Nv,
|
|
8220
8220
|
pedantic: Uv
|
|
8221
|
-
},
|
|
8221
|
+
}, jn = {
|
|
8222
8222
|
normal: Hs,
|
|
8223
8223
|
gfm: ds,
|
|
8224
8224
|
breaks: og,
|
|
@@ -8230,7 +8230,7 @@ const rt = {
|
|
|
8230
8230
|
'"': """,
|
|
8231
8231
|
"'": "'"
|
|
8232
8232
|
}, Si = (t) => lg[t];
|
|
8233
|
-
function
|
|
8233
|
+
function Ct(t, e) {
|
|
8234
8234
|
if (e) {
|
|
8235
8235
|
if (rt.escapeTest.test(t))
|
|
8236
8236
|
return t.replace(rt.escapeReplace, Si);
|
|
@@ -8238,7 +8238,7 @@ function Et(t, e) {
|
|
|
8238
8238
|
return t.replace(rt.escapeReplaceNoEncode, Si);
|
|
8239
8239
|
return t;
|
|
8240
8240
|
}
|
|
8241
|
-
function
|
|
8241
|
+
function Ei(t) {
|
|
8242
8242
|
try {
|
|
8243
8243
|
t = encodeURI(t).replace(rt.percentDecode, "%");
|
|
8244
8244
|
} catch {
|
|
@@ -8246,7 +8246,7 @@ function Ci(t) {
|
|
|
8246
8246
|
}
|
|
8247
8247
|
return t;
|
|
8248
8248
|
}
|
|
8249
|
-
function
|
|
8249
|
+
function Ci(t, e) {
|
|
8250
8250
|
var i;
|
|
8251
8251
|
const n = t.replace(rt.findPipe, (a, o, c) => {
|
|
8252
8252
|
let l = !1, u = o;
|
|
@@ -8327,10 +8327,10 @@ function ug(t, e, n) {
|
|
|
8327
8327
|
class wr {
|
|
8328
8328
|
// set by the lexer
|
|
8329
8329
|
constructor(e) {
|
|
8330
|
-
|
|
8331
|
-
|
|
8330
|
+
C(this, "options");
|
|
8331
|
+
C(this, "rules");
|
|
8332
8332
|
// set by the lexer
|
|
8333
|
-
|
|
8333
|
+
C(this, "lexer");
|
|
8334
8334
|
this.options = e || vn;
|
|
8335
8335
|
}
|
|
8336
8336
|
space(e) {
|
|
@@ -8471,18 +8471,18 @@ ${d}` : d;
|
|
|
8471
8471
|
`, 1)[0], w = !h.trim(), m = 0;
|
|
8472
8472
|
if (this.options.pedantic ? (m = 2, d = h.trimStart()) : w ? m = n[1].length + 1 : (m = n[2].search(this.rules.other.nonSpaceChar), m = m > 4 ? 1 : m, d = h.slice(m), m += n[1].length), w && this.rules.other.blankLine.test(p) && (u += p + `
|
|
8473
8473
|
`, e = e.substring(p.length + 1), l = !0), !l) {
|
|
8474
|
-
const _ = this.rules.other.nextBulletRegex(m), z = this.rules.other.hrRegex(m), F = this.rules.other.fencesBeginRegex(m),
|
|
8474
|
+
const _ = this.rules.other.nextBulletRegex(m), z = this.rules.other.hrRegex(m), F = this.rules.other.fencesBeginRegex(m), E = this.rules.other.headingBeginRegex(m), L = this.rules.other.htmlBeginRegex(m);
|
|
8475
8475
|
for (; e; ) {
|
|
8476
8476
|
const A = e.split(`
|
|
8477
8477
|
`, 1)[0];
|
|
8478
8478
|
let N;
|
|
8479
|
-
if (p = A, this.options.pedantic ? (p = p.replace(this.rules.other.listReplaceNesting, " "), N = p) : N = p.replace(this.rules.other.tabCharGlobal, " "), F.test(p) ||
|
|
8479
|
+
if (p = A, this.options.pedantic ? (p = p.replace(this.rules.other.listReplaceNesting, " "), N = p) : N = p.replace(this.rules.other.tabCharGlobal, " "), F.test(p) || E.test(p) || L.test(p) || _.test(p) || z.test(p))
|
|
8480
8480
|
break;
|
|
8481
8481
|
if (N.search(this.rules.other.nonSpaceChar) >= m || !p.trim())
|
|
8482
8482
|
d += `
|
|
8483
8483
|
` + N.slice(m);
|
|
8484
8484
|
else {
|
|
8485
|
-
if (w || h.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || F.test(h) ||
|
|
8485
|
+
if (w || h.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || F.test(h) || E.test(h) || z.test(h))
|
|
8486
8486
|
break;
|
|
8487
8487
|
d += `
|
|
8488
8488
|
` + p;
|
|
@@ -8549,7 +8549,7 @@ ${d}` : d;
|
|
|
8549
8549
|
const n = this.rules.block.table.exec(e);
|
|
8550
8550
|
if (!n || !this.rules.other.tableDelimiter.test(n[2]))
|
|
8551
8551
|
return;
|
|
8552
|
-
const r =
|
|
8552
|
+
const r = Ci(n[1]), s = n[2].replace(this.rules.other.tableAlignChars, "").split("|"), i = (o = n[3]) != null && o.trim() ? n[3].replace(this.rules.other.tableRowBlankLine, "").split(`
|
|
8553
8553
|
`) : [], a = {
|
|
8554
8554
|
type: "table",
|
|
8555
8555
|
raw: n[0],
|
|
@@ -8568,7 +8568,7 @@ ${d}` : d;
|
|
|
8568
8568
|
align: a.align[c]
|
|
8569
8569
|
});
|
|
8570
8570
|
for (const c of i)
|
|
8571
|
-
a.rows.push(
|
|
8571
|
+
a.rows.push(Ci(c, a.header.length).map((l, u) => ({
|
|
8572
8572
|
text: l,
|
|
8573
8573
|
tokens: this.lexer.inline(l),
|
|
8574
8574
|
header: !1,
|
|
@@ -8810,11 +8810,11 @@ ${d}` : d;
|
|
|
8810
8810
|
}
|
|
8811
8811
|
class wt {
|
|
8812
8812
|
constructor(e) {
|
|
8813
|
-
|
|
8814
|
-
|
|
8815
|
-
|
|
8816
|
-
|
|
8817
|
-
|
|
8813
|
+
C(this, "tokens");
|
|
8814
|
+
C(this, "options");
|
|
8815
|
+
C(this, "state");
|
|
8816
|
+
C(this, "tokenizer");
|
|
8817
|
+
C(this, "inlineQueue");
|
|
8818
8818
|
this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = e || vn, this.options.tokenizer = this.options.tokenizer || new wr(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = {
|
|
8819
8819
|
inLink: !1,
|
|
8820
8820
|
inRawBlock: !1,
|
|
@@ -8823,9 +8823,9 @@ class wt {
|
|
|
8823
8823
|
const n = {
|
|
8824
8824
|
other: rt,
|
|
8825
8825
|
block: nr.normal,
|
|
8826
|
-
inline:
|
|
8826
|
+
inline: jn.normal
|
|
8827
8827
|
};
|
|
8828
|
-
this.options.pedantic ? (n.block = nr.pedantic, n.inline =
|
|
8828
|
+
this.options.pedantic ? (n.block = nr.pedantic, n.inline = jn.pedantic) : this.options.gfm && (n.block = nr.gfm, this.options.breaks ? n.inline = jn.breaks : n.inline = jn.gfm), this.tokenizer.rules = n;
|
|
8829
8829
|
}
|
|
8830
8830
|
/**
|
|
8831
8831
|
* Expose Rules
|
|
@@ -8833,7 +8833,7 @@ class wt {
|
|
|
8833
8833
|
static get rules() {
|
|
8834
8834
|
return {
|
|
8835
8835
|
block: nr,
|
|
8836
|
-
inline:
|
|
8836
|
+
inline: jn
|
|
8837
8837
|
};
|
|
8838
8838
|
}
|
|
8839
8839
|
/**
|
|
@@ -9056,8 +9056,8 @@ class wt {
|
|
|
9056
9056
|
class _r {
|
|
9057
9057
|
// set by the parser
|
|
9058
9058
|
constructor(e) {
|
|
9059
|
-
|
|
9060
|
-
|
|
9059
|
+
C(this, "options");
|
|
9060
|
+
C(this, "parser");
|
|
9061
9061
|
this.options = e || vn;
|
|
9062
9062
|
}
|
|
9063
9063
|
space(e) {
|
|
@@ -9067,8 +9067,8 @@ class _r {
|
|
|
9067
9067
|
var a;
|
|
9068
9068
|
const s = (a = (n || "").match(rt.notSpaceStart)) == null ? void 0 : a[0], i = e.replace(rt.endingNewline, "") + `
|
|
9069
9069
|
`;
|
|
9070
|
-
return s ? '<pre><code class="language-' +
|
|
9071
|
-
` : "<pre><code>" + (r ? i :
|
|
9070
|
+
return s ? '<pre><code class="language-' + Ct(s) + '">' + (r ? i : Ct(i, !0)) + `</code></pre>
|
|
9071
|
+
` : "<pre><code>" + (r ? i : Ct(i, !0)) + `</code></pre>
|
|
9072
9072
|
`;
|
|
9073
9073
|
}
|
|
9074
9074
|
blockquote({ tokens: e }) {
|
|
@@ -9104,7 +9104,7 @@ ${this.parser.parse(e)}</blockquote>
|
|
|
9104
9104
|
let n = "";
|
|
9105
9105
|
if (e.task) {
|
|
9106
9106
|
const s = this.checkbox({ checked: !!e.checked });
|
|
9107
|
-
e.loose ? ((r = e.tokens[0]) == null ? void 0 : r.type) === "paragraph" ? (e.tokens[0].text = s + " " + e.tokens[0].text, e.tokens[0].tokens && e.tokens[0].tokens.length > 0 && e.tokens[0].tokens[0].type === "text" && (e.tokens[0].tokens[0].text = s + " " +
|
|
9107
|
+
e.loose ? ((r = e.tokens[0]) == null ? void 0 : r.type) === "paragraph" ? (e.tokens[0].text = s + " " + e.tokens[0].text, e.tokens[0].tokens && e.tokens[0].tokens.length > 0 && e.tokens[0].tokens[0].type === "text" && (e.tokens[0].tokens[0].text = s + " " + Ct(e.tokens[0].tokens[0].text), e.tokens[0].tokens[0].escaped = !0)) : e.tokens.unshift({
|
|
9108
9108
|
type: "text",
|
|
9109
9109
|
raw: s + " ",
|
|
9110
9110
|
text: s + " ",
|
|
@@ -9160,7 +9160,7 @@ ${e}</tr>
|
|
|
9160
9160
|
return `<em>${this.parser.parseInline(e)}</em>`;
|
|
9161
9161
|
}
|
|
9162
9162
|
codespan({ text: e }) {
|
|
9163
|
-
return `<code>${
|
|
9163
|
+
return `<code>${Ct(e, !0)}</code>`;
|
|
9164
9164
|
}
|
|
9165
9165
|
br(e) {
|
|
9166
9166
|
return "<br>";
|
|
@@ -9169,23 +9169,23 @@ ${e}</tr>
|
|
|
9169
9169
|
return `<del>${this.parser.parseInline(e)}</del>`;
|
|
9170
9170
|
}
|
|
9171
9171
|
link({ href: e, title: n, tokens: r }) {
|
|
9172
|
-
const s = this.parser.parseInline(r), i =
|
|
9172
|
+
const s = this.parser.parseInline(r), i = Ei(e);
|
|
9173
9173
|
if (i === null)
|
|
9174
9174
|
return s;
|
|
9175
9175
|
e = i;
|
|
9176
9176
|
let a = '<a href="' + e + '"';
|
|
9177
|
-
return n && (a += ' title="' +
|
|
9177
|
+
return n && (a += ' title="' + Ct(n) + '"'), a += ">" + s + "</a>", a;
|
|
9178
9178
|
}
|
|
9179
9179
|
image({ href: e, title: n, text: r }) {
|
|
9180
|
-
const s =
|
|
9180
|
+
const s = Ei(e);
|
|
9181
9181
|
if (s === null)
|
|
9182
|
-
return
|
|
9182
|
+
return Ct(r);
|
|
9183
9183
|
e = s;
|
|
9184
9184
|
let i = `<img src="${e}" alt="${r}"`;
|
|
9185
|
-
return n && (i += ` title="${
|
|
9185
|
+
return n && (i += ` title="${Ct(n)}"`), i += ">", i;
|
|
9186
9186
|
}
|
|
9187
9187
|
text(e) {
|
|
9188
|
-
return "tokens" in e && e.tokens ? this.parser.parseInline(e.tokens) : "escaped" in e && e.escaped ? e.text :
|
|
9188
|
+
return "tokens" in e && e.tokens ? this.parser.parseInline(e.tokens) : "escaped" in e && e.escaped ? e.text : Ct(e.text);
|
|
9189
9189
|
}
|
|
9190
9190
|
}
|
|
9191
9191
|
class Ys {
|
|
@@ -9220,9 +9220,9 @@ class Ys {
|
|
|
9220
9220
|
}
|
|
9221
9221
|
class _t {
|
|
9222
9222
|
constructor(e) {
|
|
9223
|
-
|
|
9224
|
-
|
|
9225
|
-
|
|
9223
|
+
C(this, "options");
|
|
9224
|
+
C(this, "renderer");
|
|
9225
|
+
C(this, "textRenderer");
|
|
9226
9226
|
this.options = e || vn, this.options.renderer = this.options.renderer || new _r(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new Ys();
|
|
9227
9227
|
}
|
|
9228
9228
|
/**
|
|
@@ -9383,8 +9383,8 @@ class _t {
|
|
|
9383
9383
|
}
|
|
9384
9384
|
class Mn {
|
|
9385
9385
|
constructor(e) {
|
|
9386
|
-
|
|
9387
|
-
|
|
9386
|
+
C(this, "options");
|
|
9387
|
+
C(this, "block");
|
|
9388
9388
|
this.options = e || vn;
|
|
9389
9389
|
}
|
|
9390
9390
|
/**
|
|
@@ -9418,23 +9418,23 @@ class Mn {
|
|
|
9418
9418
|
return this.block ? _t.parse : _t.parseInline;
|
|
9419
9419
|
}
|
|
9420
9420
|
}
|
|
9421
|
-
|
|
9421
|
+
C(Mn, "passThroughHooks", /* @__PURE__ */ new Set([
|
|
9422
9422
|
"preprocess",
|
|
9423
9423
|
"postprocess",
|
|
9424
9424
|
"processAllTokens"
|
|
9425
9425
|
]));
|
|
9426
9426
|
class dg {
|
|
9427
9427
|
constructor(...e) {
|
|
9428
|
-
|
|
9429
|
-
|
|
9430
|
-
|
|
9431
|
-
|
|
9432
|
-
|
|
9433
|
-
|
|
9434
|
-
|
|
9435
|
-
|
|
9436
|
-
|
|
9437
|
-
|
|
9428
|
+
C(this, "defaults", Os());
|
|
9429
|
+
C(this, "options", this.setOptions);
|
|
9430
|
+
C(this, "parse", this.parseMarkdown(!0));
|
|
9431
|
+
C(this, "parseInline", this.parseMarkdown(!1));
|
|
9432
|
+
C(this, "Parser", _t);
|
|
9433
|
+
C(this, "Renderer", _r);
|
|
9434
|
+
C(this, "TextRenderer", Ys);
|
|
9435
|
+
C(this, "Lexer", wt);
|
|
9436
|
+
C(this, "Tokenizer", wr);
|
|
9437
|
+
C(this, "Hooks", Mn);
|
|
9438
9438
|
this.use(...e);
|
|
9439
9439
|
}
|
|
9440
9440
|
/**
|
|
@@ -9587,7 +9587,7 @@ class dg {
|
|
|
9587
9587
|
return (r) => {
|
|
9588
9588
|
if (r.message += `
|
|
9589
9589
|
Please report this to https://github.com/markedjs/marked.`, e) {
|
|
9590
|
-
const s = "<p>An error occurred:</p><pre>" +
|
|
9590
|
+
const s = "<p>An error occurred:</p><pre>" + Ct(r.message + "", !0) + "</pre>";
|
|
9591
9591
|
return n ? Promise.resolve(s) : s;
|
|
9592
9592
|
}
|
|
9593
9593
|
if (n)
|
|
@@ -9603,7 +9603,7 @@ function xe(t, e) {
|
|
|
9603
9603
|
xe.options = xe.setOptions = function(t) {
|
|
9604
9604
|
return un.setOptions(t), xe.defaults = un.defaults, Wa(xe.defaults), xe;
|
|
9605
9605
|
};
|
|
9606
|
-
xe.getDefaults =
|
|
9606
|
+
xe.getDefaults = Os;
|
|
9607
9607
|
xe.defaults = vn;
|
|
9608
9608
|
xe.use = function(...t) {
|
|
9609
9609
|
return un.use(...t), xe.defaults = un.defaults, Wa(xe.defaults), xe;
|
|
@@ -9629,7 +9629,7 @@ xe.parseInline;
|
|
|
9629
9629
|
_t.parse;
|
|
9630
9630
|
wt.lex;
|
|
9631
9631
|
const fg = async (t, e, n) => {
|
|
9632
|
-
const r =
|
|
9632
|
+
const r = jh(e()), s = Fh(e());
|
|
9633
9633
|
try {
|
|
9634
9634
|
await Dh(r, s), n();
|
|
9635
9635
|
} catch (i) {
|
|
@@ -9641,14 +9641,14 @@ const fg = async (t, e, n) => {
|
|
|
9641
9641
|
}
|
|
9642
9642
|
}
|
|
9643
9643
|
};
|
|
9644
|
-
var hg = (t, e, n) => e(f(n)), pg = /* @__PURE__ */
|
|
9644
|
+
var hg = (t, e, n) => e(f(n)), pg = /* @__PURE__ */ R('<i class="fa-solid fa-spinner fa-spin svelte-173vhzm"></i>'), vg = /* @__PURE__ */ R("<i></i>"), gg = /* @__PURE__ */ R('<div class="document-path svelte-173vhzm"> </div>'), mg = /* @__PURE__ */ R('<button><!> <div class="document-info svelte-173vhzm"><span class="document-title svelte-173vhzm"> </span> <!></div></button>'), bg = /* @__PURE__ */ R('<div class="sources-expanded svelte-173vhzm"><div class="sources-header svelte-173vhzm"></div> <div class="sources-list svelte-173vhzm"></div> <div class="sources-footer svelte-173vhzm"><button class="copy-sources-btn svelte-173vhzm"><i class="fa-solid fa-copy svelte-173vhzm"></i> <span> </span></button></div></div>'), xg = /* @__PURE__ */ R('<div class="sources-container svelte-173vhzm"><!></div>'), wg = /* @__PURE__ */ R('<div class="message-attachments"><!></div>');
|
|
9645
9645
|
const _g = {
|
|
9646
|
-
hash: "svelte-
|
|
9647
|
-
code: ".sources-container.svelte-
|
|
9646
|
+
hash: "svelte-173vhzm",
|
|
9647
|
+
code: ".sources-container.svelte-173vhzm {display:flex;flex-direction:column;width:100%;}.sources-expanded.svelte-173vhzm {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:fit-content;min-width:350px;}.sources-header.svelte-173vhzm {height:10px;}.sources-footer.svelte-173vhzm {display:flex;justify-content:flex-end;align-items:center;padding:0 10px 10px 10px;}.sources-title.svelte-173vhzm {margin:0;font-size:16px;font-weight:600;color:#333;}.copy-sources-btn.svelte-173vhzm {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-173vhzm:hover {background:white;box-shadow:0 4px 8px rgba(0, 0, 0, 0.15);transform:translateY(-1px);}.copy-sources-btn.svelte-173vhzm i:where(.svelte-173vhzm) {font-size:12px;}.sources-list.svelte-173vhzm {display:flex;flex-wrap:wrap;gap:10px;padding:10px;}.dropdown-option.svelte-173vhzm {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-173vhzm:disabled {cursor:wait;opacity:0.7;}.dropdown-option.common.svelte-173vhzm {color:#8fa1c9;cursor:default;opacity:0.8;}.dropdown-option.svelte-173vhzm: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-173vhzm: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-173vhzm i:where(.svelte-173vhzm) {margin-right:10px;width:16px;text-align:center;}.dropdown-option.svelte-173vhzm span:where(.svelte-173vhzm) {font-size:14px;}.document-info.svelte-173vhzm {display:flex;flex-direction:column;align-items:flex-start;flex:1;}.document-title.svelte-173vhzm {font-weight:500;margin-bottom:4px;text-align:left;word-break:break-word;}.document-path.svelte-173vhzm {font-size:0.85em;color:#6c757d;text-align:left;word-break:break-word;}"
|
|
9648
9648
|
};
|
|
9649
9649
|
function fs(t, e) {
|
|
9650
9650
|
re(e, !0), ue(t, _g);
|
|
9651
|
-
let n = g(e, "isDropdownOpen", 15), r = g(e, "attachmentList", 15), s = g(e, "userLevel", 15), i =
|
|
9651
|
+
let n = g(e, "isDropdownOpen", 15), r = g(e, "attachmentList", 15), s = g(e, "userLevel", 15), i = J(I({})), a = J(I(/* @__PURE__ */ Yr()));
|
|
9652
9652
|
const o = (x, _) => {
|
|
9653
9653
|
f(i)[x] = _;
|
|
9654
9654
|
}, c = () => {
|
|
@@ -9668,10 +9668,10 @@ function fs(t, e) {
|
|
|
9668
9668
|
const F = tr(x, z);
|
|
9669
9669
|
o(F, !0);
|
|
9670
9670
|
try {
|
|
9671
|
-
const
|
|
9671
|
+
const E = await bt.downloadForgePdf(x, _), L = window.URL.createObjectURL(E), A = document.createElement("a");
|
|
9672
9672
|
A.href = L, A.download = `${z.split(".")[0]}.pdf`, document.body.appendChild(A), A.click(), A.remove(), window.URL.revokeObjectURL(L);
|
|
9673
|
-
} catch (
|
|
9674
|
-
console.error("Errore durante il download del PDF:",
|
|
9673
|
+
} catch (E) {
|
|
9674
|
+
console.error("Errore durante il download del PDF:", E);
|
|
9675
9675
|
} finally {
|
|
9676
9676
|
o(F, !1);
|
|
9677
9677
|
}
|
|
@@ -9679,10 +9679,10 @@ function fs(t, e) {
|
|
|
9679
9679
|
const F = tr(x, z);
|
|
9680
9680
|
o(F, !0);
|
|
9681
9681
|
try {
|
|
9682
|
-
const
|
|
9682
|
+
const E = await bt.getForgeSingle(x, _), L = E.additionalReference || E.url;
|
|
9683
9683
|
window.open(L, "_blank");
|
|
9684
|
-
} catch (
|
|
9685
|
-
console.error("Errore durante il recupero del link:",
|
|
9684
|
+
} catch (E) {
|
|
9685
|
+
console.error("Errore durante il recupero del link:", E);
|
|
9686
9686
|
} finally {
|
|
9687
9687
|
o(F, !1);
|
|
9688
9688
|
}
|
|
@@ -9702,10 +9702,10 @@ function fs(t, e) {
|
|
|
9702
9702
|
external_id: _,
|
|
9703
9703
|
filename: z,
|
|
9704
9704
|
gendoc_id: F,
|
|
9705
|
-
isCommon:
|
|
9705
|
+
isCommon: E,
|
|
9706
9706
|
commonType: L
|
|
9707
9707
|
} = x;
|
|
9708
|
-
if (!
|
|
9708
|
+
if (!E) {
|
|
9709
9709
|
await l(_, z, F);
|
|
9710
9710
|
return;
|
|
9711
9711
|
}
|
|
@@ -9721,67 +9721,67 @@ function fs(t, e) {
|
|
|
9721
9721
|
var S = (x) => {
|
|
9722
9722
|
var _ = xg(), z = y(_);
|
|
9723
9723
|
{
|
|
9724
|
-
var F = (
|
|
9725
|
-
var L = bg(), A =
|
|
9726
|
-
|
|
9724
|
+
var F = (E) => {
|
|
9725
|
+
var L = bg(), A = O(y(L), 2);
|
|
9726
|
+
Qe(A, 21, r, Ve, (Ae, ge) => {
|
|
9727
9727
|
var fe = mg();
|
|
9728
|
-
const
|
|
9728
|
+
const We = /* @__PURE__ */ Ne(() => tr(f(ge).external_id, f(ge).filename)), Ze = /* @__PURE__ */ Ne(() => Ah(f(ge))), ut = /* @__PURE__ */ Ne(() => f(i)[f(We)]), Ke = /* @__PURE__ */ Ne(() => Rh(f(ge), s())), j = /* @__PURE__ */ Ne(() => Aa(f(ge))), ee = /* @__PURE__ */ Ne(() => La(f(ge))), Se = /* @__PURE__ */ Ne(() => f(ge).isCommon ? Zn(f(ge).commonType).name : /* @__PURE__ */ ui());
|
|
9729
9729
|
fe.__click = [hg, p, ge];
|
|
9730
|
-
var
|
|
9730
|
+
var Ee = y(fe);
|
|
9731
9731
|
{
|
|
9732
|
-
var
|
|
9732
|
+
var De = (ce) => {
|
|
9733
9733
|
var he = pg();
|
|
9734
9734
|
T(ce, he);
|
|
9735
|
-
},
|
|
9735
|
+
}, Ce = (ce) => {
|
|
9736
9736
|
var he = vg();
|
|
9737
9737
|
D(() => {
|
|
9738
|
-
nt(he, Ar(f(
|
|
9738
|
+
nt(he, Ar(f(Ze).icon), "svelte-173vhzm"), M(he, "style", f(Ze).color ? `color: ${f(Ze).color}` : "");
|
|
9739
9739
|
}), T(ce, he);
|
|
9740
9740
|
};
|
|
9741
|
-
|
|
9742
|
-
f(ut) ? ce(
|
|
9741
|
+
K(Ee, (ce) => {
|
|
9742
|
+
f(ut) ? ce(De) : ce(Ce, !1);
|
|
9743
9743
|
});
|
|
9744
9744
|
}
|
|
9745
|
-
var
|
|
9745
|
+
var Re = O(Ee, 2), Ue = y(Re), ke = y(Ue, !0);
|
|
9746
9746
|
k(Ue);
|
|
9747
|
-
var W =
|
|
9747
|
+
var W = O(Ue, 2);
|
|
9748
9748
|
{
|
|
9749
9749
|
var ve = (ce) => {
|
|
9750
9750
|
var he = gg(), me = y(he, !0);
|
|
9751
|
-
k(he), D(() => _e(me, f(
|
|
9751
|
+
k(he), D(() => _e(me, f(ee))), T(ce, he);
|
|
9752
9752
|
};
|
|
9753
|
-
|
|
9753
|
+
K(W, (ce) => {
|
|
9754
9754
|
f(ge).isCommon || ce(ve);
|
|
9755
9755
|
});
|
|
9756
9756
|
}
|
|
9757
|
-
k(
|
|
9757
|
+
k(Re), k(fe), D(
|
|
9758
9758
|
(ce) => {
|
|
9759
|
-
nt(fe, `${`dropdown-option ${f(
|
|
9759
|
+
nt(fe, `${`dropdown-option ${f(Ke) ? "common" : ""}` ?? ""} svelte-173vhzm`), M(fe, "aria-label", ce), M(fe, "title", f(Se)), fe.disabled = f(ut), _e(ke, f(j));
|
|
9760
9760
|
},
|
|
9761
9761
|
[() => /* @__PURE__ */ ui()]
|
|
9762
9762
|
), T(Ae, fe);
|
|
9763
9763
|
}), k(A);
|
|
9764
|
-
var N =
|
|
9765
|
-
|
|
9764
|
+
var N = O(A, 2), Y = y(N);
|
|
9765
|
+
Y.__click = [
|
|
9766
9766
|
fg,
|
|
9767
9767
|
r,
|
|
9768
9768
|
c
|
|
9769
9769
|
];
|
|
9770
|
-
var le =
|
|
9771
|
-
k(le), k(
|
|
9770
|
+
var le = O(y(Y), 2), Fe = y(le, !0);
|
|
9771
|
+
k(le), k(Y), k(N), k(L), D(
|
|
9772
9772
|
(Ae) => {
|
|
9773
|
-
M(
|
|
9773
|
+
M(Y, "aria-label", Ae), M(Y, "title", Ae), _e(Fe, f(a));
|
|
9774
9774
|
},
|
|
9775
9775
|
[() => /* @__PURE__ */ Yr()]
|
|
9776
|
-
), xt(3, L, () => Zl, () => ({ duration: 300 })), T(
|
|
9776
|
+
), xt(3, L, () => Zl, () => ({ duration: 300 })), T(E, L);
|
|
9777
9777
|
};
|
|
9778
|
-
|
|
9779
|
-
n() &&
|
|
9778
|
+
K(z, (E) => {
|
|
9779
|
+
n() && E(F);
|
|
9780
9780
|
});
|
|
9781
9781
|
}
|
|
9782
9782
|
k(_), T(x, _);
|
|
9783
9783
|
};
|
|
9784
|
-
|
|
9784
|
+
K(m, (x) => {
|
|
9785
9785
|
r().length > 0 && x(S);
|
|
9786
9786
|
});
|
|
9787
9787
|
}
|
|
@@ -9821,8 +9821,8 @@ oe(
|
|
|
9821
9821
|
const kg = (t, e, n) => {
|
|
9822
9822
|
f(e).pause(), b(n, !1);
|
|
9823
9823
|
};
|
|
9824
|
-
var yg = /* @__PURE__ */
|
|
9825
|
-
const
|
|
9824
|
+
var yg = /* @__PURE__ */ R('<button aria-label="Pause message" class="btn btn-sm btn-primary aks-btn-rounded play-button svelte-2fpzuh"><i class="fa-solid fa-pause"></i></button>'), zg = (t, e, n) => e(f(n)), $g = /* @__PURE__ */ R('<button aria-label="Play message" class="btn btn-sm btn-primary aks-btn-rounded play-button svelte-2fpzuh"><i class="fa-solid fa-play"></i></button>'), Tg = /* @__PURE__ */ R('<div class="agent-badge svelte-2fpzuh" title="Agente utilizzato"><i class="fa-solid fa-robot svelte-2fpzuh"></i> <span> </span></div>'), Sg = /* @__PURE__ */ R('<button class="sources-toggle-btn svelte-2fpzuh" aria-label="Visualizza fonti"><span> </span> <i></i></button>'), Eg = /* @__PURE__ */ R('<i class="fa-solid fa-check"></i>'), Cg = /* @__PURE__ */ R('<i class="fa-regular fa-copy"></i>'), Ig = /* @__PURE__ */ R('<div><div class="message-plus-play svelte-2fpzuh"><div><div class="message-content svelte-2fpzuh"><!></div></div> <!></div> <div class="w-100 d-flex"><div class="attachments-container svelte-2fpzuh"><!> <div class="d-flex gap-1"><!> <!> <button aria-label="Copy message" class="copy-button svelte-2fpzuh"><!></button></div></div></div></div>'), Ag = /* @__PURE__ */ R('<div><div class="message-plus-play svelte-2fpzuh"><div class="message-received svelte-2fpzuh"><div class="message-content svelte-2fpzuh"><!></div></div> <!></div> <div class="w-100 d-flex" style="justify-content: flex-start"><div class="attachments-container svelte-2fpzuh"><!> <div class="d-flex gap-1" style="width: 100%; justify-content: flex-start; align-items: flex-start;"><div class="agent-badge svelte-2fpzuh" title="Agente utilizzato"><i class="fa-solid fa-robot svelte-2fpzuh"></i> <span> </span></div></div></div></div></div>'), Lg = /* @__PURE__ */ R('<div class="loading svelte-2fpzuh"><!></div>'), Rg = /* @__PURE__ */ R('<div class="alert alert-danger"> </div>'), jg = /* @__PURE__ */ R('<div class="messages-wrapper svelte-2fpzuh"><div class="empty-placeholder svelte-2fpzuh"></div> <!> <!> <!></div>'), Fg = /* @__PURE__ */ R('<div class="loading-placeholder svelte-2fpzuh"><!></div>'), Dg = /* @__PURE__ */ R('<div class="chat-body svelte-2fpzuh"><!> <!></div>');
|
|
9825
|
+
const Og = {
|
|
9826
9826
|
hash: "svelte-2fpzuh",
|
|
9827
9827
|
code: `.empty-placeholder.svelte-2fpzuh {height:100%;}.messages-wrapper.svelte-2fpzuh {display:flex;flex-direction:column;gap:10px;min-height:100%;}.loading-placeholder.svelte-2fpzuh {display:flex;justify-content:center;align-items:center;height:100%;}.chat-body.svelte-2fpzuh {display:flex;flex-direction:column;gap:10px;overflow-y:auto;height:100%;padding:10px;}.chat-body.svelte-2fpzuh::-webkit-scrollbar {width:8px;}.chat-body.svelte-2fpzuh * {--bs-table-color: #333333;--bs-table-striped-color: #333333;--bs-link-color-rgb: 41, 93, 207;}.chat-body.svelte-2fpzuh table {min-width:auto;}.chat-body.svelte-2fpzuh::-webkit-scrollbar-track {background:rgba(255, 255, 255, 0.2); /* Sfondo semi-trasparente */border-radius:10px;}.chat-body.svelte-2fpzuh::-webkit-scrollbar-thumb {background:rgba(\r
|
|
9828
9828
|
255,\r
|
|
@@ -9832,42 +9832,42 @@ const Pg = {
|
|
|
9832
9832
|
); /* Colore del "pollice" della scrollbar */border-radius:10px;transition:0.3s;}.chat-body.svelte-2fpzuh::-webkit-scrollbar-thumb:hover {background:rgba(255, 255, 255, 0.8); /* Più visibile quando hoverata */}.message-sent.svelte-2fpzuh {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-2fpzuh {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-2fpzuh {padding:10px;font-size:16px;}.attachments-container.svelte-2fpzuh {display:flex;flex-direction:column;width:80%;height:35px;}.play-button.svelte-2fpzuh {transition:opacity 200ms;opacity:0;background-color:white;color:#295dcf;transition:200ms;}.play-button.svelte-2fpzuh:hover {background-color:#e9ecef;translate:0 -1px;}.sources-toggle-btn.svelte-2fpzuh {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-2fpzuh:hover {background:rgba(255, 255, 255, 0.25);border-color:rgba(255, 255, 255, 0.5);}.sources-toggle-btn.svelte-2fpzuh i:where(.svelte-2fpzuh) {font-size:12px;transition:transform 200ms;}.copy-button.svelte-2fpzuh {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-2fpzuh:hover {background:rgba(255, 255, 255, 0.25);border-color:rgba(255, 255, 255, 0.5);}.agent-badge.svelte-2fpzuh {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-2fpzuh i:where(.svelte-2fpzuh) {font-size:14px;opacity:0.9;}.message-plus-play.svelte-2fpzuh {display:flex;justify-content:flex-start;align-items:center;gap:5px;}.message-plus-play.svelte-2fpzuh:hover .play-button:where(.svelte-2fpzuh) {opacity:1;}.loading.svelte-2fpzuh {display:flex;justify-content:start;align-items:center;padding-left:10px;}`
|
|
9833
9833
|
};
|
|
9834
9834
|
function io(t, e) {
|
|
9835
|
-
re(e, !0), ue(t,
|
|
9836
|
-
let n = g(e, "messages", 15), r = g(e, "loading", 15), s = g(e, "error", 15), i = g(e, "streamMessage", 15), a = g(e, "streamAttachments", 15), o = g(e, "streamedAgent", 15), c = g(e, "languageSelected", 15), l = g(e, "userLevel", 15), u = g(e, "loadingChat", 15), d =
|
|
9835
|
+
re(e, !0), ue(t, Og);
|
|
9836
|
+
let n = g(e, "messages", 15), r = g(e, "loading", 15), s = g(e, "error", 15), i = g(e, "streamMessage", 15), a = g(e, "streamAttachments", 15), o = g(e, "streamedAgent", 15), c = g(e, "languageSelected", 15), l = g(e, "userLevel", 15), u = g(e, "loadingChat", 15), d = J(void 0), h = J(I(new Audio())), p = J(!1), w = J(I({})), m = J(I({})), S = J(I(n())), x = J(null), _ = J(!0), z = J(!1), F = J(!1), E = J(I(u())), L = J(!1);
|
|
9837
9837
|
const A = async () => {
|
|
9838
9838
|
await Br(), f(d) && (f(d).scrollTop = f(d).scrollHeight);
|
|
9839
9839
|
}, N = async () => {
|
|
9840
9840
|
await Br(), b(_, !1);
|
|
9841
|
-
},
|
|
9841
|
+
}, Y = async () => {
|
|
9842
9842
|
f(L) || (b(L, !0), await Br(), b(z, !1));
|
|
9843
9843
|
}, le = () => {
|
|
9844
9844
|
f(F) && b(z, !0);
|
|
9845
|
-
},
|
|
9845
|
+
}, Fe = () => {
|
|
9846
9846
|
f(F) && (b(S, I(f(x) ?? n())), b(x, null), b(_, !0), b(F, !1), b(L, !1));
|
|
9847
|
-
}, Ae = (
|
|
9848
|
-
Is.getAudio(
|
|
9849
|
-
b(h, I(new Audio(
|
|
9847
|
+
}, Ae = (j) => {
|
|
9848
|
+
Is.getAudio(j.content, c()).then((ee) => {
|
|
9849
|
+
b(h, I(new Audio(ee))), f(h).play(), b(p, !0), f(h).onended = () => {
|
|
9850
9850
|
b(p, !1);
|
|
9851
9851
|
};
|
|
9852
9852
|
});
|
|
9853
|
-
}, ge = async (
|
|
9854
|
-
const Se =
|
|
9855
|
-
|
|
9856
|
-
const
|
|
9853
|
+
}, ge = async (j, ee) => {
|
|
9854
|
+
const Se = j.html ?? xe.parseInline(j.content), Ee = document.createElement("div");
|
|
9855
|
+
Ee.innerHTML = Se;
|
|
9856
|
+
const De = Ee.innerHTML, Ce = Ee.textContent || Ee.innerText || "";
|
|
9857
9857
|
try {
|
|
9858
|
-
const
|
|
9859
|
-
await navigator.clipboard.write([ke]), f(m)[
|
|
9858
|
+
const Re = new Blob([De], { type: "text/html" }), Ue = new Blob([Ce], { type: "text/plain" }), ke = new ClipboardItem({ "text/html": Re, "text/plain": Ue });
|
|
9859
|
+
await navigator.clipboard.write([ke]), f(m)[ee] = /* @__PURE__ */ hi(), setTimeout(
|
|
9860
9860
|
() => {
|
|
9861
|
-
f(m)[
|
|
9861
|
+
f(m)[ee] = "";
|
|
9862
9862
|
},
|
|
9863
9863
|
2e3
|
|
9864
9864
|
);
|
|
9865
|
-
} catch (
|
|
9866
|
-
console.error("Errore durante la copia:",
|
|
9865
|
+
} catch (Re) {
|
|
9866
|
+
console.error("Errore durante la copia:", Re);
|
|
9867
9867
|
try {
|
|
9868
|
-
await navigator.clipboard.writeText(
|
|
9868
|
+
await navigator.clipboard.writeText(Ce), f(m)[ee] = /* @__PURE__ */ hi(), setTimeout(
|
|
9869
9869
|
() => {
|
|
9870
|
-
f(m)[
|
|
9870
|
+
f(m)[ee] = "";
|
|
9871
9871
|
},
|
|
9872
9872
|
2e3
|
|
9873
9873
|
);
|
|
@@ -9877,51 +9877,51 @@ function io(t, e) {
|
|
|
9877
9877
|
}
|
|
9878
9878
|
};
|
|
9879
9879
|
It(() => {
|
|
9880
|
-
u() && !f(
|
|
9880
|
+
u() && !f(E) ? (b(F, !0), b(x, null), b(z, !1), b(_, !0), N()) : !u() && f(E) && (b(x, I(n())), f(z) && Y()), b(E, I(u()));
|
|
9881
9881
|
}), It(() => {
|
|
9882
|
-
f(F) && f(z) && !u() &&
|
|
9882
|
+
f(F) && f(z) && !u() && Y();
|
|
9883
9883
|
}), It(() => {
|
|
9884
9884
|
f(F) ? b(x, I(n())) : u() || b(S, I(n()));
|
|
9885
9885
|
}), It(() => {
|
|
9886
9886
|
i(), f(S), A();
|
|
9887
9887
|
});
|
|
9888
|
-
var fe = Dg(),
|
|
9888
|
+
var fe = Dg(), We = y(fe);
|
|
9889
9889
|
{
|
|
9890
|
-
var
|
|
9891
|
-
var
|
|
9892
|
-
|
|
9893
|
-
var ce = Ig(), he = y(ce), me = y(he), je = y(me),
|
|
9894
|
-
ss(
|
|
9895
|
-
var
|
|
9890
|
+
var Ze = (j) => {
|
|
9891
|
+
var ee = jg(), Se = O(y(ee), 2);
|
|
9892
|
+
Qe(Se, 17, () => f(S), Ve, (ke, W, ve) => {
|
|
9893
|
+
var ce = Ig(), he = y(ce), me = y(he), je = y(me), et = y(je);
|
|
9894
|
+
ss(et, () => f(W).html ?? xe.parseInline(f(W).content), !1, !1), k(je), k(me);
|
|
9895
|
+
var Oe = O(me, 2);
|
|
9896
9896
|
{
|
|
9897
9897
|
var Pe = (Z) => {
|
|
9898
|
-
var
|
|
9898
|
+
var Q = Tt(), $ = ft(Q);
|
|
9899
9899
|
{
|
|
9900
|
-
var
|
|
9900
|
+
var P = (te) => {
|
|
9901
9901
|
var $e = yg();
|
|
9902
|
-
$e.__click = [kg, h, p], D((Te) => M($e, "title", Te), [() => /* @__PURE__ */ Ku()]), T(
|
|
9903
|
-
},
|
|
9902
|
+
$e.__click = [kg, h, p], D((Te) => M($e, "title", Te), [() => /* @__PURE__ */ Ku()]), T(te, $e);
|
|
9903
|
+
}, G = (te) => {
|
|
9904
9904
|
var $e = $g();
|
|
9905
|
-
$e.__click = [zg, Ae, W], D((Te) => M($e, "title", Te), [() => /* @__PURE__ */ Qu()]), T(
|
|
9905
|
+
$e.__click = [zg, Ae, W], D((Te) => M($e, "title", Te), [() => /* @__PURE__ */ Qu()]), T(te, $e);
|
|
9906
9906
|
};
|
|
9907
|
-
|
|
9908
|
-
f(p) ?
|
|
9907
|
+
K($, (te) => {
|
|
9908
|
+
f(p) ? te(P) : te(G, !1);
|
|
9909
9909
|
});
|
|
9910
9910
|
}
|
|
9911
|
-
T(Z,
|
|
9911
|
+
T(Z, Q);
|
|
9912
9912
|
};
|
|
9913
|
-
|
|
9913
|
+
K(Oe, (Z) => {
|
|
9914
9914
|
f(W).content != "" && !f(W).sentByUser && Z(Pe);
|
|
9915
9915
|
});
|
|
9916
9916
|
}
|
|
9917
9917
|
k(he);
|
|
9918
|
-
var
|
|
9918
|
+
var Me = O(he, 2), tt = y(Me), Ye = y(tt);
|
|
9919
9919
|
{
|
|
9920
9920
|
var Be = (Z) => {
|
|
9921
|
-
var
|
|
9921
|
+
var Q = /* @__PURE__ */ Ne(() => f(w)[ve] || !1);
|
|
9922
9922
|
fs(Z, {
|
|
9923
9923
|
get isDropdownOpen() {
|
|
9924
|
-
return f(
|
|
9924
|
+
return f(Q);
|
|
9925
9925
|
},
|
|
9926
9926
|
get attachmentList() {
|
|
9927
9927
|
return f(W).attachments;
|
|
@@ -9937,90 +9937,90 @@ function io(t, e) {
|
|
|
9937
9937
|
}
|
|
9938
9938
|
});
|
|
9939
9939
|
};
|
|
9940
|
-
|
|
9940
|
+
K(Ye, (Z) => {
|
|
9941
9941
|
f(W).attachments && f(W).attachments.length > 0 && f(W).sentByUser == !1 && Z(Be);
|
|
9942
9942
|
});
|
|
9943
9943
|
}
|
|
9944
|
-
var B =
|
|
9944
|
+
var B = O(Ye, 2), H = y(B);
|
|
9945
9945
|
{
|
|
9946
|
-
var
|
|
9947
|
-
var
|
|
9948
|
-
k($), k(
|
|
9946
|
+
var V = (Z) => {
|
|
9947
|
+
var Q = Tg(), $ = O(y(Q), 2), P = y($, !0);
|
|
9948
|
+
k($), k(Q), D((G) => _e(P, G), [
|
|
9949
9949
|
() => pi(f(W).agentUsed)
|
|
9950
|
-
]), T(Z,
|
|
9950
|
+
]), T(Z, Q);
|
|
9951
9951
|
};
|
|
9952
|
-
|
|
9953
|
-
f(W).agentUsed != null && f(W).agentUsed >= 0 && !f(W).sentByUser && Z(
|
|
9952
|
+
K(H, (Z) => {
|
|
9953
|
+
f(W).agentUsed != null && f(W).agentUsed >= 0 && !f(W).sentByUser && Z(V);
|
|
9954
9954
|
});
|
|
9955
9955
|
}
|
|
9956
|
-
var ye =
|
|
9956
|
+
var ye = O(H, 2);
|
|
9957
9957
|
{
|
|
9958
9958
|
var ie = (Z) => {
|
|
9959
|
-
var
|
|
9960
|
-
|
|
9961
|
-
var $ = y(
|
|
9959
|
+
var Q = Sg();
|
|
9960
|
+
Q.__click = () => f(w)[ve] = !f(w)[ve];
|
|
9961
|
+
var $ = y(Q), P = y($);
|
|
9962
9962
|
k($);
|
|
9963
|
-
var
|
|
9964
|
-
k(
|
|
9965
|
-
(
|
|
9966
|
-
_e(
|
|
9963
|
+
var G = O($, 2);
|
|
9964
|
+
k(Q), D(
|
|
9965
|
+
(te) => {
|
|
9966
|
+
_e(P, `${te ?? ""} (${f(W).attachments.length ?? ""})`), nt(G, `${`fa-solid fa-chevron-${f(w)[ve] ? "up" : "down"}` ?? ""} svelte-2fpzuh`);
|
|
9967
9967
|
},
|
|
9968
9968
|
[() => /* @__PURE__ */ Gu()]
|
|
9969
|
-
), T(Z,
|
|
9969
|
+
), T(Z, Q);
|
|
9970
9970
|
};
|
|
9971
|
-
|
|
9971
|
+
K(ye, (Z) => {
|
|
9972
9972
|
f(W).attachments && f(W).attachments.length > 0 && f(W).sentByUser == !1 && Z(ie);
|
|
9973
9973
|
});
|
|
9974
9974
|
}
|
|
9975
|
-
var ae =
|
|
9975
|
+
var ae = O(ye, 2);
|
|
9976
9976
|
ae.__click = () => ge(f(W), ve);
|
|
9977
|
-
var
|
|
9977
|
+
var Le = y(ae);
|
|
9978
9978
|
{
|
|
9979
9979
|
var Ge = (Z) => {
|
|
9980
|
-
var
|
|
9981
|
-
T(Z,
|
|
9980
|
+
var Q = Eg();
|
|
9981
|
+
T(Z, Q);
|
|
9982
9982
|
}, vt = (Z) => {
|
|
9983
|
-
var
|
|
9984
|
-
T(Z,
|
|
9983
|
+
var Q = Cg();
|
|
9984
|
+
T(Z, Q);
|
|
9985
9985
|
};
|
|
9986
|
-
|
|
9986
|
+
K(Le, (Z) => {
|
|
9987
9987
|
f(m)[ve] ? Z(Ge) : Z(vt, !1);
|
|
9988
9988
|
});
|
|
9989
9989
|
}
|
|
9990
|
-
k(ae), k(B), k(
|
|
9990
|
+
k(ae), k(B), k(tt), k(Me), k(ce), D(
|
|
9991
9991
|
(Z) => {
|
|
9992
|
-
nt(me, Ar(f(W).sentByUser ? "message-sent" : "message-received"), "svelte-2fpzuh"), M(
|
|
9992
|
+
nt(me, Ar(f(W).sentByUser ? "message-sent" : "message-received"), "svelte-2fpzuh"), M(Me, "style", `justify-content: ${(f(W).sentByUser ? "flex-end" : "flex-start") ?? ""}`), M(B, "style", `width: 100%; align-items: flex-start; justify-content: ${(f(W).sentByUser ? "flex-end" : "flex-start") ?? ""}`), M(ae, "title", Z);
|
|
9993
9993
|
},
|
|
9994
9994
|
[
|
|
9995
9995
|
() => f(m)[ve] || /* @__PURE__ */ sd()
|
|
9996
9996
|
]
|
|
9997
9997
|
), T(ke, ce);
|
|
9998
9998
|
});
|
|
9999
|
-
var
|
|
9999
|
+
var Ee = O(Se, 2);
|
|
10000
10000
|
{
|
|
10001
|
-
var
|
|
10001
|
+
var De = (ke) => {
|
|
10002
10002
|
var W = Ag(), ve = y(W), ce = y(ve), he = y(ce), me = y(he);
|
|
10003
10003
|
ss(me, i, !1, !1), k(he), k(ce);
|
|
10004
|
-
var je =
|
|
10004
|
+
var je = O(ce, 2);
|
|
10005
10005
|
{
|
|
10006
|
-
var
|
|
10007
|
-
Xt(
|
|
10006
|
+
var et = (V) => {
|
|
10007
|
+
Xt(V, {
|
|
10008
10008
|
icon: "svg-spinners:90-ring-with-bg",
|
|
10009
10009
|
width: "25px",
|
|
10010
10010
|
height: "25px",
|
|
10011
10011
|
color: "white"
|
|
10012
10012
|
});
|
|
10013
10013
|
};
|
|
10014
|
-
|
|
10015
|
-
r() &&
|
|
10014
|
+
K(je, (V) => {
|
|
10015
|
+
r() && V(et);
|
|
10016
10016
|
});
|
|
10017
10017
|
}
|
|
10018
10018
|
k(ve);
|
|
10019
|
-
var
|
|
10019
|
+
var Oe = O(ve, 2), Pe = y(Oe), Me = y(Pe);
|
|
10020
10020
|
{
|
|
10021
|
-
var
|
|
10021
|
+
var tt = (V) => {
|
|
10022
10022
|
var ye = /* @__PURE__ */ Ne(() => f(w)[-1] || !1);
|
|
10023
|
-
fs(
|
|
10023
|
+
fs(V, {
|
|
10024
10024
|
get isDropdownOpen() {
|
|
10025
10025
|
return f(ye);
|
|
10026
10026
|
},
|
|
@@ -10038,13 +10038,13 @@ function io(t, e) {
|
|
|
10038
10038
|
}
|
|
10039
10039
|
});
|
|
10040
10040
|
};
|
|
10041
|
-
|
|
10042
|
-
a() && a().length > 0 &&
|
|
10041
|
+
K(Me, (V) => {
|
|
10042
|
+
a() && a().length > 0 && V(tt);
|
|
10043
10043
|
});
|
|
10044
10044
|
}
|
|
10045
|
-
var Ye =
|
|
10046
|
-
k(B), k(Be), k(Ye), k(Pe), k(
|
|
10047
|
-
},
|
|
10045
|
+
var Ye = O(Me, 2), Be = y(Ye), B = O(y(Be), 2), H = y(B, !0);
|
|
10046
|
+
k(B), k(Be), k(Ye), k(Pe), k(Oe), k(W), D((V) => _e(H, V), [() => pi(o())]), T(ke, W);
|
|
10047
|
+
}, Ce = (ke) => {
|
|
10048
10048
|
var W = Tt(), ve = ft(W);
|
|
10049
10049
|
{
|
|
10050
10050
|
var ce = (he) => {
|
|
@@ -10056,7 +10056,7 @@ function io(t, e) {
|
|
|
10056
10056
|
color: "white"
|
|
10057
10057
|
}), k(me), T(he, me);
|
|
10058
10058
|
};
|
|
10059
|
-
|
|
10059
|
+
K(
|
|
10060
10060
|
ve,
|
|
10061
10061
|
(he) => {
|
|
10062
10062
|
r() && he(ce);
|
|
@@ -10066,95 +10066,95 @@ function io(t, e) {
|
|
|
10066
10066
|
}
|
|
10067
10067
|
T(ke, W);
|
|
10068
10068
|
};
|
|
10069
|
-
|
|
10070
|
-
i().length > 0 ? ke(
|
|
10069
|
+
K(Ee, (ke) => {
|
|
10070
|
+
i().length > 0 ? ke(De) : ke(Ce, !1);
|
|
10071
10071
|
});
|
|
10072
10072
|
}
|
|
10073
|
-
var
|
|
10073
|
+
var Re = O(Ee, 2);
|
|
10074
10074
|
{
|
|
10075
10075
|
var Ue = (ke) => {
|
|
10076
|
-
var W =
|
|
10076
|
+
var W = Rg(), ve = y(W, !0);
|
|
10077
10077
|
k(W), D(() => _e(ve, s())), T(ke, W);
|
|
10078
10078
|
};
|
|
10079
|
-
|
|
10079
|
+
K(Re, (ke) => {
|
|
10080
10080
|
s() != "" && ke(Ue);
|
|
10081
10081
|
});
|
|
10082
10082
|
}
|
|
10083
|
-
k(
|
|
10083
|
+
k(ee), Wt("outroend", ee, le), xt(1, ee, () => Ut, () => ({ duration: 100, delay: 100 })), xt(2, ee, () => Ut, () => ({ duration: 100 })), T(j, ee);
|
|
10084
10084
|
};
|
|
10085
|
-
|
|
10086
|
-
f(_) &&
|
|
10085
|
+
K(We, (j) => {
|
|
10086
|
+
f(_) && j(Ze);
|
|
10087
10087
|
});
|
|
10088
10088
|
}
|
|
10089
|
-
var ut =
|
|
10089
|
+
var ut = O(We, 2);
|
|
10090
10090
|
{
|
|
10091
|
-
var
|
|
10092
|
-
var
|
|
10091
|
+
var Ke = (j) => {
|
|
10092
|
+
var ee = Fg(), Se = y(ee);
|
|
10093
10093
|
Xt(Se, {
|
|
10094
10094
|
icon: "svg-spinners:270-ring-with-bg",
|
|
10095
10095
|
width: "50px",
|
|
10096
10096
|
height: "50px",
|
|
10097
10097
|
color: "white"
|
|
10098
|
-
}), k(
|
|
10098
|
+
}), k(ee), Wt("outroend", ee, Fe), xt(1, ee, () => Ut, () => ({ duration: 100, delay: 200 })), xt(2, ee, () => Ut, () => ({ duration: 100 })), T(j, ee);
|
|
10099
10099
|
};
|
|
10100
|
-
|
|
10101
|
-
f(z) &&
|
|
10100
|
+
K(ut, (j) => {
|
|
10101
|
+
f(z) && j(Ke);
|
|
10102
10102
|
});
|
|
10103
10103
|
}
|
|
10104
|
-
return k(fe), as(fe, (
|
|
10104
|
+
return k(fe), as(fe, (j) => b(d, j), () => f(d)), T(t, fe), se({
|
|
10105
10105
|
get messages() {
|
|
10106
10106
|
return n();
|
|
10107
10107
|
},
|
|
10108
|
-
set messages(
|
|
10109
|
-
n(
|
|
10108
|
+
set messages(j) {
|
|
10109
|
+
n(j), v();
|
|
10110
10110
|
},
|
|
10111
10111
|
get loading() {
|
|
10112
10112
|
return r();
|
|
10113
10113
|
},
|
|
10114
|
-
set loading(
|
|
10115
|
-
r(
|
|
10114
|
+
set loading(j) {
|
|
10115
|
+
r(j), v();
|
|
10116
10116
|
},
|
|
10117
10117
|
get error() {
|
|
10118
10118
|
return s();
|
|
10119
10119
|
},
|
|
10120
|
-
set error(
|
|
10121
|
-
s(
|
|
10120
|
+
set error(j) {
|
|
10121
|
+
s(j), v();
|
|
10122
10122
|
},
|
|
10123
10123
|
get streamMessage() {
|
|
10124
10124
|
return i();
|
|
10125
10125
|
},
|
|
10126
|
-
set streamMessage(
|
|
10127
|
-
i(
|
|
10126
|
+
set streamMessage(j) {
|
|
10127
|
+
i(j), v();
|
|
10128
10128
|
},
|
|
10129
10129
|
get streamAttachments() {
|
|
10130
10130
|
return a();
|
|
10131
10131
|
},
|
|
10132
|
-
set streamAttachments(
|
|
10133
|
-
a(
|
|
10132
|
+
set streamAttachments(j) {
|
|
10133
|
+
a(j), v();
|
|
10134
10134
|
},
|
|
10135
10135
|
get streamedAgent() {
|
|
10136
10136
|
return o();
|
|
10137
10137
|
},
|
|
10138
|
-
set streamedAgent(
|
|
10139
|
-
o(
|
|
10138
|
+
set streamedAgent(j) {
|
|
10139
|
+
o(j), v();
|
|
10140
10140
|
},
|
|
10141
10141
|
get languageSelected() {
|
|
10142
10142
|
return c();
|
|
10143
10143
|
},
|
|
10144
|
-
set languageSelected(
|
|
10145
|
-
c(
|
|
10144
|
+
set languageSelected(j) {
|
|
10145
|
+
c(j), v();
|
|
10146
10146
|
},
|
|
10147
10147
|
get userLevel() {
|
|
10148
10148
|
return l();
|
|
10149
10149
|
},
|
|
10150
|
-
set userLevel(
|
|
10151
|
-
l(
|
|
10150
|
+
set userLevel(j) {
|
|
10151
|
+
l(j), v();
|
|
10152
10152
|
},
|
|
10153
10153
|
get loadingChat() {
|
|
10154
10154
|
return u();
|
|
10155
10155
|
},
|
|
10156
|
-
set loadingChat(
|
|
10157
|
-
u(
|
|
10156
|
+
set loadingChat(j) {
|
|
10157
|
+
u(j), v();
|
|
10158
10158
|
}
|
|
10159
10159
|
});
|
|
10160
10160
|
}
|
|
@@ -10176,9 +10176,9 @@ oe(
|
|
|
10176
10176
|
[],
|
|
10177
10177
|
!0
|
|
10178
10178
|
);
|
|
10179
|
-
var
|
|
10179
|
+
var Pg = /* @__PURE__ */ R('<div class="loader-container svelte-1sgnsaj"><div class="loader svelte-1sgnsaj"></div></div>'), Mg = (t, e, n, r) => {
|
|
10180
10180
|
e()._id != f(n)._id && r(f(n)._id);
|
|
10181
|
-
}, Ng = (t, e, n) => e(f(n)._id, f(n).title), Ug = /* @__PURE__ */
|
|
10181
|
+
}, Ng = (t, e, n) => e(f(n)._id, f(n).title), Ug = /* @__PURE__ */ R('<div class="chat svelte-1sgnsaj"><button class="chat-button svelte-1sgnsaj"><span style="font-weight: bold;" class="svelte-1sgnsaj"> </span></button> <button class="chat-delete svelte-1sgnsaj" aria-label="Delete chat"><i class="fa-solid fa-trash-can svelte-1sgnsaj"></i></button></div>'), Bg = /* @__PURE__ */ R('<div class="history svelte-1sgnsaj"><span class="title svelte-1sgnsaj"> </span> <div class="chats svelte-1sgnsaj"><!></div></div>'), qg = /* @__PURE__ */ R('<div class="external-div svelte-1sgnsaj"><!></div>');
|
|
10182
10182
|
const Hg = {
|
|
10183
10183
|
hash: "svelte-1sgnsaj",
|
|
10184
10184
|
code: `.history.svelte-1sgnsaj {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-1sgnsaj {font-size:1.5rem;color:#fff;margin:10px;text-align:left;}.chats.svelte-1sgnsaj {display:flex;flex-direction:column;padding:10px;overflow-y:scroll;overflow-x:hidden;height:100%;gap:20px;}.chat.svelte-1sgnsaj {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-1sgnsaj > .chat-button:where(.svelte-1sgnsaj) {background:transparent;padding:5px 10px;border-radius:10px;cursor:pointer;transition:200ms;text-align:left;border:none;font-size:15px;width:calc(95% - 35px);}.chat.svelte-1sgnsaj > .chat-delete:where(.svelte-1sgnsaj) {display:flex;justify-content:center;align-items:center;background:transparent;border-radius:100%;cursor:pointer;transition:200ms;border:none;height:35px;width:35px;color:white;margin:3px;}.chat.svelte-1sgnsaj:hover {scale:1.02;}.chat-button.svelte-1sgnsaj:hover {background:rgba(255, 255, 255, 0.2);}.chat-delete.svelte-1sgnsaj:hover {background:rgba(255, 255, 255, 0.2);}.chat.svelte-1sgnsaj > button:where(.svelte-1sgnsaj) > span:where(.svelte-1sgnsaj) {color:white;text-shadow:0 0 5px rgba(0, 0, 0, 0.1);}.chats.svelte-1sgnsaj::-webkit-scrollbar {width:8px;}.chats.svelte-1sgnsaj::-webkit-scrollbar-track {background:rgba(255, 255, 255, 0.2); /* Sfondo semi-trasparente */border-radius:10px;}.chats.svelte-1sgnsaj::-webkit-scrollbar-thumb {background:rgba(\r
|
|
@@ -10215,31 +10215,31 @@ function ao(t, e) {
|
|
|
10215
10215
|
var w = (m) => {
|
|
10216
10216
|
var S = Bg(), x = y(S), _ = y(x, !0);
|
|
10217
10217
|
k(x);
|
|
10218
|
-
var z =
|
|
10218
|
+
var z = O(x, 2), F = y(z);
|
|
10219
10219
|
{
|
|
10220
|
-
var
|
|
10221
|
-
var N =
|
|
10220
|
+
var E = (A) => {
|
|
10221
|
+
var N = Pg();
|
|
10222
10222
|
T(A, N);
|
|
10223
10223
|
}, L = (A) => {
|
|
10224
|
-
var N = Tt(),
|
|
10225
|
-
|
|
10224
|
+
var N = Tt(), Y = ft(N);
|
|
10225
|
+
Qe(Y, 17, s, Ve, (le, Fe) => {
|
|
10226
10226
|
var Ae = Ug(), ge = y(Ae);
|
|
10227
|
-
ge.__click = [Mg, r,
|
|
10228
|
-
var fe = y(ge),
|
|
10227
|
+
ge.__click = [Mg, r, Fe, u];
|
|
10228
|
+
var fe = y(ge), We = y(fe, !0);
|
|
10229
10229
|
k(fe), k(ge);
|
|
10230
|
-
var
|
|
10231
|
-
|
|
10232
|
-
M(Ae, "style", r()._id === f(
|
|
10230
|
+
var Ze = O(ge, 2);
|
|
10231
|
+
Ze.__click = [Ng, d, Fe], k(Ae), D(() => {
|
|
10232
|
+
M(Ae, "style", r()._id === f(Fe)._id ? "background: #295dcf; cursor: default;" : ""), _e(We, f(Fe).title);
|
|
10233
10233
|
}), T(le, Ae);
|
|
10234
10234
|
}), T(A, N);
|
|
10235
10235
|
};
|
|
10236
|
-
|
|
10237
|
-
c() ? A(
|
|
10236
|
+
K(F, (A) => {
|
|
10237
|
+
c() ? A(E) : A(L, !1);
|
|
10238
10238
|
});
|
|
10239
10239
|
}
|
|
10240
10240
|
k(z), k(S), D((A) => _e(_, A), [() => /* @__PURE__ */ Sa()]), xt(3, S, () => Xl, () => ({ duration: 600 })), T(m, S);
|
|
10241
10241
|
};
|
|
10242
|
-
|
|
10242
|
+
K(p, (m) => {
|
|
10243
10243
|
n() && m(w);
|
|
10244
10244
|
});
|
|
10245
10245
|
}
|
|
@@ -10314,24 +10314,24 @@ oe(
|
|
|
10314
10314
|
const Yg = (t, e, n, r, s) => {
|
|
10315
10315
|
b(e, "auto"), n(), r(), b(s, I({}));
|
|
10316
10316
|
};
|
|
10317
|
-
var Gg = /* @__PURE__ */
|
|
10317
|
+
var Gg = /* @__PURE__ */ R('<div class="drag-overlay svelte-1uxkxb0"><div class="drag-content svelte-1uxkxb0"><!> <p class="svelte-1uxkxb0"> </p></div></div>'), Jg = /* @__PURE__ */ R('<div class="upload-progress-overlay svelte-1uxkxb0"><div class="upload-progress-content svelte-1uxkxb0"><!> <p class="upload-filename svelte-1uxkxb0"> </p> <div class="progress-bar-container svelte-1uxkxb0"><div class="progress-bar svelte-1uxkxb0"></div></div> <p class="upload-percentage svelte-1uxkxb0"> </p></div></div>'), Wg = /* @__PURE__ */ R('<div class="loading-placeholder svelte-1uxkxb0"><!></div>'), Zg = /* @__PURE__ */ R('<!> <div class="resize-border-left svelte-1uxkxb0"></div> <div class="resize-border-top svelte-1uxkxb0"></div> <div class="resize-handle svelte-1uxkxb0"><!></div> <!> <!> <!>', 1), Xg = /* @__PURE__ */ R('<div class="chat svelte-1uxkxb0"><!> <!> <!></div>'), Vg = (t, e) => b(e, !f(e)), Qg = (t, e) => e("normative"), Kg = (t, e) => e("suite"), em = /* @__PURE__ */ R('<div class="bottom-right-buttons svelte-1uxkxb0"><button class="pin-forge-buttons svelte-1uxkxb0"><i class="fa-solid fa-thumbtack"></i></button> <div class="btn-with-tooltip svelte-1uxkxb0"><span class="custom-tooltip svelte-1uxkxb0"> </span> <button class="hidden-btn hidden-btn-1 svelte-1uxkxb0" aria-label="normative"><i class="fa-solid fa-book-open"></i></button></div> <div class="btn-with-tooltip svelte-1uxkxb0"><span class="custom-tooltip svelte-1uxkxb0"> </span> <button class="hidden-btn hidden-btn-2 svelte-1uxkxb0" aria-label="suite info"><i class="fa-solid fa-circle-info"></i></button></div></div>'), tm = /* @__PURE__ */ R('<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>');
|
|
10318
10318
|
const nm = {
|
|
10319
10319
|
hash: "svelte-1uxkxb0",
|
|
10320
10320
|
code: ".loading-placeholder.svelte-1uxkxb0 {display:flex;justify-content:center;align-items:center;height:100%;}.chat.svelte-1uxkxb0 {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-1uxkxb0 {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-1uxkxb0 {position:absolute;top:0;left:-2px;width:4px;height:100%;cursor:ew-resize;z-index:1001;background:transparent;}.resize-border-top.svelte-1uxkxb0 {position:absolute;top:-2px;left:0;width:100%;height:4px;cursor:ns-resize;z-index:1001;background:transparent;}.no-select.svelte-1uxkxb0 {user-select:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;}.bottom-right-buttons.svelte-1uxkxb0 {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-1uxkxb0 {transform:translateX(0);}.bottom-right-buttons.svelte-1uxkxb0:hover {transform:translateX(0);}.pin-forge-buttons.svelte-1uxkxb0 {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-1uxkxb0:hover {background:rgba(0, 0, 0, 0.85);transform:scale(1.1);}.pin-forge-buttons.pinned.svelte-1uxkxb0 {background:#295dcf;transform:rotate(45deg);}.pin-forge-buttons.pinned.svelte-1uxkxb0:hover {background:#1e4ba8;transform:rotate(45deg) scale(1.1);}.btn-with-tooltip.svelte-1uxkxb0 {position:relative;display:flex;align-items:center;transition:300ms;}.btn-with-tooltip.svelte-1uxkxb0:hover {transform:translateX(-6px);}.custom-tooltip.svelte-1uxkxb0 {position:absolute;right:70px;background:rgba(0, 0, 0, 0.85);color:white;padding:8px 12px;border-radius:6px;white-space:nowrap;font-size:14px;opacity:0;pointer-events:none;transition:opacity 200ms;box-shadow:0 2px 8px rgba(0, 0, 0, 0.3);}.bottom-right-buttons.visible.svelte-1uxkxb0 .custom-tooltip:where(.svelte-1uxkxb0) {opacity:1;}.btn-with-tooltip.svelte-1uxkxb0:hover .custom-tooltip:where(.svelte-1uxkxb0) {opacity:1;}.hidden-btn.svelte-1uxkxb0 {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-1uxkxb0 {background:#28853d;color:white;}.hidden-btn-1.svelte-1uxkxb0:hover {background:#206a31;}.hidden-btn-2.svelte-1uxkxb0 {background:#0099ff;color:white;}.hidden-btn-2.svelte-1uxkxb0:hover {background:#007acc;}.drag-overlay.svelte-1uxkxb0 {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-1uxkxb0 {text-align:center;color:white;}.drag-content.svelte-1uxkxb0 p:where(.svelte-1uxkxb0) {margin-top:20px;font-size:24px;font-weight:600;}.upload-progress-overlay.svelte-1uxkxb0 {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-1uxkxb0 {text-align:center;color:white;padding:30px;background:rgba(41, 93, 207, 0.9);border-radius:10px;min-width:300px;}.upload-filename.svelte-1uxkxb0 {margin:15px 0 10px 0;font-size:16px;font-weight:500;}.progress-bar-container.svelte-1uxkxb0 {width:100%;height:8px;background:rgba(255, 255, 255, 0.2);border-radius:4px;overflow:hidden;margin:10px 0;}.progress-bar.svelte-1uxkxb0 {height:100%;background:white;border-radius:4px;transition:width 0.3s ease;}.upload-percentage.svelte-1uxkxb0 {margin:10px 0 0 0;font-size:20px;font-weight:600;}"
|
|
10321
10321
|
};
|
|
10322
10322
|
function oo(t, e) {
|
|
10323
10323
|
re(e, !0), ue(t, nm);
|
|
10324
|
-
let n =
|
|
10325
|
-
const L = (B, H,
|
|
10326
|
-
b(m, f(m) + B), b(S, I(H)), b(x, I(
|
|
10324
|
+
let n = J(!1), r = J(!1), s = J("it"), i = J(""), a = J(0), o = J(null), c = J(I([])), l = J(I([])), u = J(!1), d = J(!0), h = J(I(new Audio())), p = J(!0), w = J(""), m = J(""), S = J(I([])), x = J(0), _ = J(null), z = J(!1), F = J(0), E = J("");
|
|
10325
|
+
const L = (B, H, V) => {
|
|
10326
|
+
b(m, f(m) + B), b(S, I(H)), b(x, I(V));
|
|
10327
10327
|
};
|
|
10328
|
-
let A =
|
|
10328
|
+
let A = J("auto");
|
|
10329
10329
|
const N = ["auto", "audit_handler"];
|
|
10330
|
-
let
|
|
10330
|
+
let Y = J(I({})), le = J(!0), Fe = J(!1);
|
|
10331
10331
|
It(() => {
|
|
10332
|
-
f(
|
|
10332
|
+
f(Fe) && U.setForgeButtonsPinned(f(le));
|
|
10333
10333
|
});
|
|
10334
|
-
const Ae = async (B, H,
|
|
10334
|
+
const Ae = async (B, H, V = []) => {
|
|
10335
10335
|
var ye, ie;
|
|
10336
10336
|
if (b(w, ""), b(u, !0), b(l, I([
|
|
10337
10337
|
...f(l),
|
|
@@ -10339,7 +10339,7 @@ function oo(t, e) {
|
|
|
10339
10339
|
])), console.log("Current messages:", f(l)), f(l).length == 2 && (console.log("Creating new chat with state:", (ye = f(o)) == null ? void 0 : ye.state), b(o, I(await Gt.newChat((ie = f(o)) == null ? void 0 : ie.state))), b(c, I([...f(c), f(o)])), f(o).messages = f(l), await ke()), f(o)) {
|
|
10340
10340
|
b(_, I(new AbortController()));
|
|
10341
10341
|
try {
|
|
10342
|
-
let ae = await Gt.sendMessage(f(o)._id, B, H,
|
|
10342
|
+
let ae = await Gt.sendMessage(f(o)._id, B, H, V, L, f(s), f(_).signal);
|
|
10343
10343
|
if (console.log(ae), ae) {
|
|
10344
10344
|
b(l, I([
|
|
10345
10345
|
...f(l),
|
|
@@ -10351,9 +10351,9 @@ function oo(t, e) {
|
|
|
10351
10351
|
...f(l),
|
|
10352
10352
|
f(o).messages[f(o).messages.length - 1]
|
|
10353
10353
|
])), !f(p)) {
|
|
10354
|
-
const
|
|
10354
|
+
const Le = f(o).messages[f(o).messages.length - 1];
|
|
10355
10355
|
try {
|
|
10356
|
-
const Ge = await Is.getAudio(
|
|
10356
|
+
const Ge = await Is.getAudio(Le.content, f(s));
|
|
10357
10357
|
b(h, I(new Audio(Ge))), await f(h).play();
|
|
10358
10358
|
} catch (Ge) {
|
|
10359
10359
|
console.error("Error playing audio:", Ge);
|
|
@@ -10369,72 +10369,74 @@ function oo(t, e) {
|
|
|
10369
10369
|
}, ge = () => {
|
|
10370
10370
|
f(_) && f(_).abort();
|
|
10371
10371
|
};
|
|
10372
|
-
let fe =
|
|
10373
|
-
const
|
|
10374
|
-
|
|
10375
|
-
},
|
|
10376
|
-
|
|
10372
|
+
let fe = J(0);
|
|
10373
|
+
const We = (B) => {
|
|
10374
|
+
Ke.includes(f(A)) && (B.preventDefault(), B.stopPropagation(), qn(fe), b(z, !0));
|
|
10375
|
+
}, Ze = (B) => {
|
|
10376
|
+
Ke.includes(f(A)) && (B.preventDefault(), B.stopPropagation());
|
|
10377
10377
|
}, ut = (B) => {
|
|
10378
|
-
|
|
10379
|
-
},
|
|
10378
|
+
Ke.includes(f(A)) && (B.preventDefault(), B.stopPropagation(), qn(fe, -1), f(fe) === 0 && b(z, !1));
|
|
10379
|
+
}, Ke = ["auto", "audit_handler"], j = async (B) => {
|
|
10380
10380
|
var ie, ae;
|
|
10381
|
-
if (!
|
|
10381
|
+
if (!Ke.includes(f(A))) return;
|
|
10382
10382
|
if (B.preventDefault(), B.stopPropagation(), b(z, !1), b(fe, 0), !N.includes(f(A))) {
|
|
10383
10383
|
alert(/* @__PURE__ */ cd());
|
|
10384
10384
|
return;
|
|
10385
10385
|
}
|
|
10386
10386
|
const H = (ie = B.dataTransfer) == null ? void 0 : ie.files;
|
|
10387
|
-
let
|
|
10388
|
-
H && H.length > 0 && (
|
|
10387
|
+
let V = "";
|
|
10388
|
+
H && H.length > 0 && (V = await ee(Array.from(H)[0]));
|
|
10389
10389
|
let ye = {
|
|
10390
|
-
id:
|
|
10390
|
+
id: V,
|
|
10391
10391
|
filename: H ? Array.from(H)[0].name : "",
|
|
10392
10392
|
suiteUrl: window.location.origin
|
|
10393
10393
|
};
|
|
10394
|
-
(ae = f(o))
|
|
10394
|
+
(ae = f(o)) != null && ae.state.info && (f(o).state.info = f(o).state.info.filter((Le) => Le.key !== "CLOUDSTORAGE_FILE_UPLOADED"), f(o).state.info.push({
|
|
10395
10395
|
key: "CLOUDSTORAGE_FILE_UPLOADED",
|
|
10396
10396
|
value: JSON.stringify(ye)
|
|
10397
|
-
});
|
|
10398
|
-
},
|
|
10397
|
+
}));
|
|
10398
|
+
}, ee = async (B) => {
|
|
10399
10399
|
try {
|
|
10400
|
-
b(
|
|
10401
|
-
const H = await Gt.uploadFile(B, (
|
|
10402
|
-
b(F, I(
|
|
10400
|
+
b(E, I(B.name)), b(F, 0);
|
|
10401
|
+
const H = await Gt.uploadFile(B, (V) => {
|
|
10402
|
+
b(F, I(V));
|
|
10403
10403
|
});
|
|
10404
|
-
return f(
|
|
10404
|
+
return Object.keys(f(Y)).forEach((V) => {
|
|
10405
|
+
f(Y)[V].storage_id && f(Y)[V].storage_id !== "" && delete f(Y)[V];
|
|
10406
|
+
}), f(Y)[H] = {
|
|
10405
10407
|
title: B.name,
|
|
10406
10408
|
ext_id: "",
|
|
10407
10409
|
gendoc_id: "",
|
|
10408
10410
|
storage_id: H,
|
|
10409
10411
|
isCommon: !0
|
|
10410
|
-
}, b(
|
|
10412
|
+
}, b(E, ""), b(F, 0), H;
|
|
10411
10413
|
} catch (H) {
|
|
10412
|
-
throw console.error("Error uploading file:", H), b(w, I(/* @__PURE__ */ fi())), b(
|
|
10414
|
+
throw console.error("Error uploading file:", H), b(w, I(/* @__PURE__ */ fi())), b(E, ""), b(F, 0), H;
|
|
10413
10415
|
}
|
|
10414
10416
|
};
|
|
10415
10417
|
It(() => {
|
|
10416
10418
|
f(p) && f(h).pause();
|
|
10417
10419
|
});
|
|
10418
|
-
let Se = !1,
|
|
10420
|
+
let Se = !1, Ee, De, Ce, Re;
|
|
10419
10421
|
function Ue(B) {
|
|
10420
10422
|
const H = B.target;
|
|
10421
10423
|
if (H.closest(".resize-handle") || H.classList.contains("resize-border-left") || H.classList.contains("resize-border-top")) {
|
|
10422
|
-
B.preventDefault(), B.stopPropagation(), Se = !0,
|
|
10424
|
+
B.preventDefault(), B.stopPropagation(), Se = !0, Ee = B.clientX, De = B.clientY;
|
|
10423
10425
|
const ye = document.querySelector(".chat");
|
|
10424
|
-
|
|
10425
|
-
const ie = H.closest(".resize-handle"), ae = H.classList.contains("resize-border-left"),
|
|
10426
|
+
Ce = ye.offsetWidth, Re = ye.offsetHeight, ye.classList.add("no-select");
|
|
10427
|
+
const ie = H.closest(".resize-handle"), ae = H.classList.contains("resize-border-left"), Le = H.classList.contains("resize-border-top"), Ge = (Z) => {
|
|
10426
10428
|
if (!Se) return;
|
|
10427
10429
|
Z.preventDefault();
|
|
10428
|
-
const
|
|
10430
|
+
const Q = document.querySelector(".chat"), $ = window.innerWidth * 0.75, P = window.innerHeight * 0.9;
|
|
10429
10431
|
if (ae) {
|
|
10430
|
-
const
|
|
10431
|
-
|
|
10432
|
-
} else if (
|
|
10433
|
-
const
|
|
10434
|
-
|
|
10432
|
+
const G = Ee - Z.clientX, te = Math.min(Math.max(Ce + G, 300), $);
|
|
10433
|
+
Q.style.width = `${te}px`;
|
|
10434
|
+
} else if (Le) {
|
|
10435
|
+
const G = De - Z.clientY, te = Math.min(Math.max(Re + G, 400), P);
|
|
10436
|
+
Q.style.height = `${te}px`;
|
|
10435
10437
|
} else if (ie) {
|
|
10436
|
-
const
|
|
10437
|
-
|
|
10438
|
+
const G = Ee - Z.clientX, te = De - Z.clientY, $e = Math.min(Math.max(Ce + G, 300), $), Te = Math.min(Math.max(Re + te, 400), P);
|
|
10439
|
+
Q.style.width = `${$e}px`, Q.style.height = `${Te}px`;
|
|
10438
10440
|
}
|
|
10439
10441
|
}, vt = () => {
|
|
10440
10442
|
var Z;
|
|
@@ -10446,7 +10448,7 @@ function oo(t, e) {
|
|
|
10446
10448
|
const ke = async () => {
|
|
10447
10449
|
b(c, I(await Gt.getChats())), b(c, I(f(c).sort((B, H) => H.lastUpdate - B.lastUpdate)));
|
|
10448
10450
|
};
|
|
10449
|
-
let W =
|
|
10451
|
+
let W = J(!1), ve = J(!1);
|
|
10450
10452
|
const ce = async () => {
|
|
10451
10453
|
f(n) ? f(r) ? (b(r, !1), setTimeout(
|
|
10452
10454
|
() => {
|
|
@@ -10470,7 +10472,7 @@ function oo(t, e) {
|
|
|
10470
10472
|
]
|
|
10471
10473
|
))), b(m, ""), b(l, I(f(o).messages)), b(w, "");
|
|
10472
10474
|
}, me = (B) => {
|
|
10473
|
-
f(A) !== B && (b(A, I(B)), he()), ce(), b(
|
|
10475
|
+
f(A) !== B && (b(A, I(B)), he()), ce(), b(Y, I({}));
|
|
10474
10476
|
};
|
|
10475
10477
|
Lr(async () => {
|
|
10476
10478
|
try {
|
|
@@ -10479,8 +10481,8 @@ function oo(t, e) {
|
|
|
10479
10481
|
b(i, I(B));
|
|
10480
10482
|
const H = await bt.getUserLevel();
|
|
10481
10483
|
b(a, I(H));
|
|
10482
|
-
const
|
|
10483
|
-
b(l, I([
|
|
10484
|
+
const V = Zt.firstMessage(f(s), f(i), f(A));
|
|
10485
|
+
b(l, I([V])), b(o, I(new ln(
|
|
10484
10486
|
"",
|
|
10485
10487
|
"",
|
|
10486
10488
|
"",
|
|
@@ -10490,8 +10492,8 @@ function oo(t, e) {
|
|
|
10490
10492
|
pendingAction: null,
|
|
10491
10493
|
info: []
|
|
10492
10494
|
},
|
|
10493
|
-
[
|
|
10494
|
-
))), b(le, I(U.getForgeButtonsPinned())), b(
|
|
10495
|
+
[V]
|
|
10496
|
+
))), b(le, I(U.getForgeButtonsPinned())), b(Fe, !0);
|
|
10495
10497
|
const ye = (ie) => {
|
|
10496
10498
|
(ie.clientX <= 0 || ie.clientY <= 0 || ie.clientX >= window.innerWidth || ie.clientY >= window.innerHeight) && (b(z, !1), b(fe, 0));
|
|
10497
10499
|
};
|
|
@@ -10502,73 +10504,73 @@ function oo(t, e) {
|
|
|
10502
10504
|
console.error("Failed to load username", B), b(w, I(/* @__PURE__ */ td())), b(d, !1);
|
|
10503
10505
|
}
|
|
10504
10506
|
});
|
|
10505
|
-
var je = tm(),
|
|
10507
|
+
var je = tm(), et = y(je);
|
|
10506
10508
|
{
|
|
10507
|
-
var
|
|
10509
|
+
var Oe = (B) => {
|
|
10508
10510
|
var H = Xg();
|
|
10509
10511
|
H.__mousedown = Ue;
|
|
10510
|
-
var
|
|
10512
|
+
var V = y(H);
|
|
10511
10513
|
{
|
|
10512
10514
|
var ye = (Z) => {
|
|
10513
|
-
var
|
|
10514
|
-
Xt(
|
|
10515
|
+
var Q = Gg(), $ = y(Q), P = y($);
|
|
10516
|
+
Xt(P, {
|
|
10515
10517
|
icon: "mdi:file-upload",
|
|
10516
10518
|
width: "80px",
|
|
10517
10519
|
height: "80px",
|
|
10518
10520
|
color: "white"
|
|
10519
10521
|
});
|
|
10520
|
-
var
|
|
10521
|
-
k(
|
|
10522
|
+
var G = O(P, 2), te = y(G, !0);
|
|
10523
|
+
k(G), k($), k(Q), D(($e) => _e(te, $e), [
|
|
10522
10524
|
() => /* @__PURE__ */ ld() || "Drop files here"
|
|
10523
|
-
]), xt(3,
|
|
10525
|
+
]), xt(3, Q, () => Ut, () => ({ duration: 200 })), T(Z, Q);
|
|
10524
10526
|
};
|
|
10525
|
-
|
|
10527
|
+
K(V, (Z) => {
|
|
10526
10528
|
f(z) && Z(ye);
|
|
10527
10529
|
});
|
|
10528
10530
|
}
|
|
10529
|
-
var ie =
|
|
10531
|
+
var ie = O(V, 2);
|
|
10530
10532
|
{
|
|
10531
10533
|
var ae = (Z) => {
|
|
10532
|
-
var
|
|
10533
|
-
Xt(
|
|
10534
|
+
var Q = Jg(), $ = y(Q), P = y($);
|
|
10535
|
+
Xt(P, {
|
|
10534
10536
|
icon: "svg-spinners:270-ring-with-bg",
|
|
10535
10537
|
width: "50px",
|
|
10536
10538
|
height: "50px",
|
|
10537
10539
|
color: "white"
|
|
10538
10540
|
});
|
|
10539
|
-
var
|
|
10540
|
-
k(
|
|
10541
|
-
var $e =
|
|
10541
|
+
var G = O(P, 2), te = y(G, !0);
|
|
10542
|
+
k(G);
|
|
10543
|
+
var $e = O(G, 2), Te = y($e);
|
|
10542
10544
|
k($e);
|
|
10543
|
-
var qe =
|
|
10544
|
-
k(qe), k($), k(
|
|
10545
|
+
var qe = O($e, 2), Je = y(qe);
|
|
10546
|
+
k(qe), k($), k(Q), D(
|
|
10545
10547
|
(gt) => {
|
|
10546
|
-
_e(
|
|
10548
|
+
_e(te, f(E)), M(Te, "style", `width: ${f(F) ?? ""}%`), _e(Je, `${gt ?? ""}%`);
|
|
10547
10549
|
},
|
|
10548
10550
|
[
|
|
10549
10551
|
() => Math.round(f(F))
|
|
10550
10552
|
]
|
|
10551
|
-
), xt(3,
|
|
10553
|
+
), xt(3, Q, () => Ut, () => ({ duration: 200 })), T(Z, Q);
|
|
10552
10554
|
};
|
|
10553
|
-
|
|
10554
|
-
f(
|
|
10555
|
+
K(ie, (Z) => {
|
|
10556
|
+
f(E) && Z(ae);
|
|
10555
10557
|
});
|
|
10556
10558
|
}
|
|
10557
|
-
var
|
|
10559
|
+
var Le = O(ie, 2);
|
|
10558
10560
|
{
|
|
10559
10561
|
var Ge = (Z) => {
|
|
10560
|
-
var
|
|
10562
|
+
var Q = Wg(), $ = y(Q);
|
|
10561
10563
|
Xt($, {
|
|
10562
10564
|
icon: "svg-spinners:270-ring-with-bg",
|
|
10563
10565
|
width: "50px",
|
|
10564
10566
|
height: "50px",
|
|
10565
10567
|
color: "white"
|
|
10566
|
-
}), k(
|
|
10568
|
+
}), k(Q), T(Z, Q);
|
|
10567
10569
|
}, vt = (Z) => {
|
|
10568
|
-
var
|
|
10570
|
+
var Q = Tt(), $ = ft(Q);
|
|
10569
10571
|
{
|
|
10570
|
-
var
|
|
10571
|
-
var
|
|
10572
|
+
var P = (G) => {
|
|
10573
|
+
var te = Zg(), $e = ft(te);
|
|
10572
10574
|
ao($e, {
|
|
10573
10575
|
newChat: he,
|
|
10574
10576
|
get showHistory() {
|
|
@@ -10614,7 +10616,7 @@ function oo(t, e) {
|
|
|
10614
10616
|
b(ve, I(q));
|
|
10615
10617
|
}
|
|
10616
10618
|
});
|
|
10617
|
-
var Te =
|
|
10619
|
+
var Te = O($e, 6), qe = y(Te);
|
|
10618
10620
|
Xt(qe, {
|
|
10619
10621
|
icon: "hugeicons:resize-field",
|
|
10620
10622
|
width: "25px",
|
|
@@ -10624,8 +10626,8 @@ function oo(t, e) {
|
|
|
10624
10626
|
color: "white",
|
|
10625
10627
|
style: "margin: 2px 0 0 2px;"
|
|
10626
10628
|
}), k(Te);
|
|
10627
|
-
var
|
|
10628
|
-
|
|
10629
|
+
var Je = O(Te, 2);
|
|
10630
|
+
Ca(Je, {
|
|
10629
10631
|
newChat: he,
|
|
10630
10632
|
get show() {
|
|
10631
10633
|
return f(n);
|
|
@@ -10670,7 +10672,7 @@ function oo(t, e) {
|
|
|
10670
10672
|
b(w, I(q));
|
|
10671
10673
|
}
|
|
10672
10674
|
});
|
|
10673
|
-
var gt =
|
|
10675
|
+
var gt = O(Je, 2);
|
|
10674
10676
|
io(gt, {
|
|
10675
10677
|
get messages() {
|
|
10676
10678
|
return f(l);
|
|
@@ -10727,11 +10729,11 @@ function oo(t, e) {
|
|
|
10727
10729
|
b(W, I(q));
|
|
10728
10730
|
}
|
|
10729
10731
|
});
|
|
10730
|
-
var rn =
|
|
10732
|
+
var rn = O(gt, 2);
|
|
10731
10733
|
Da(rn, {
|
|
10732
10734
|
sendMessage: Ae,
|
|
10733
10735
|
stopMessage: ge,
|
|
10734
|
-
uploadFiles:
|
|
10736
|
+
uploadFiles: ee,
|
|
10735
10737
|
get loading() {
|
|
10736
10738
|
return f(u);
|
|
10737
10739
|
},
|
|
@@ -10751,10 +10753,10 @@ function oo(t, e) {
|
|
|
10751
10753
|
b(A, I(q));
|
|
10752
10754
|
},
|
|
10753
10755
|
get attachments() {
|
|
10754
|
-
return f(
|
|
10756
|
+
return f(Y);
|
|
10755
10757
|
},
|
|
10756
10758
|
set attachments(q) {
|
|
10757
|
-
b(
|
|
10759
|
+
b(Y, I(q));
|
|
10758
10760
|
},
|
|
10759
10761
|
get userLevel() {
|
|
10760
10762
|
return f(a);
|
|
@@ -10768,67 +10770,67 @@ function oo(t, e) {
|
|
|
10768
10770
|
set actChat(q) {
|
|
10769
10771
|
b(o, I(q));
|
|
10770
10772
|
}
|
|
10771
|
-
}), T(
|
|
10773
|
+
}), T(G, te);
|
|
10772
10774
|
};
|
|
10773
|
-
|
|
10775
|
+
K(
|
|
10774
10776
|
$,
|
|
10775
|
-
(
|
|
10776
|
-
f(o) &&
|
|
10777
|
+
(G) => {
|
|
10778
|
+
f(o) && G(P);
|
|
10777
10779
|
},
|
|
10778
10780
|
!0
|
|
10779
10781
|
);
|
|
10780
10782
|
}
|
|
10781
|
-
T(Z,
|
|
10783
|
+
T(Z, Q);
|
|
10782
10784
|
};
|
|
10783
|
-
|
|
10785
|
+
K(Le, (Z) => {
|
|
10784
10786
|
f(d) ? Z(Ge) : Z(vt, !1);
|
|
10785
10787
|
});
|
|
10786
10788
|
}
|
|
10787
|
-
k(H), Wt("dragenter", H,
|
|
10789
|
+
k(H), Wt("dragenter", H, We), Wt("dragover", H, Ze), Wt("dragleave", H, ut), Wt("drop", H, j), xt(3, H, () => Wl, () => ({ y: 50, duration: 500 })), T(B, H);
|
|
10788
10790
|
};
|
|
10789
|
-
|
|
10790
|
-
f(n) && B(
|
|
10791
|
+
K(et, (B) => {
|
|
10792
|
+
f(n) && B(Oe);
|
|
10791
10793
|
});
|
|
10792
10794
|
}
|
|
10793
|
-
var Pe =
|
|
10795
|
+
var Pe = O(et, 2);
|
|
10794
10796
|
Pe.__click = [
|
|
10795
10797
|
Yg,
|
|
10796
10798
|
A,
|
|
10797
10799
|
he,
|
|
10798
10800
|
ce,
|
|
10799
|
-
|
|
10801
|
+
Y
|
|
10800
10802
|
];
|
|
10801
|
-
var
|
|
10802
|
-
k(
|
|
10803
|
-
var Ye =
|
|
10803
|
+
var Me = O(y(Pe)), tt = y(Me, !0);
|
|
10804
|
+
k(Me), k(Pe);
|
|
10805
|
+
var Ye = O(Pe, 2);
|
|
10804
10806
|
{
|
|
10805
10807
|
var Be = (B) => {
|
|
10806
|
-
var H = em(),
|
|
10807
|
-
|
|
10808
|
-
var ye =
|
|
10808
|
+
var H = em(), V = y(H);
|
|
10809
|
+
V.__click = [Vg, le];
|
|
10810
|
+
var ye = O(V, 2), ie = y(ye), ae = y(ie, !0);
|
|
10809
10811
|
k(ie);
|
|
10810
|
-
var
|
|
10811
|
-
|
|
10812
|
-
var Ge =
|
|
10812
|
+
var Le = O(ie, 2);
|
|
10813
|
+
Le.__click = [Qg, me], k(ye);
|
|
10814
|
+
var Ge = O(ye, 2), vt = y(Ge), Z = y(vt, !0);
|
|
10813
10815
|
k(vt);
|
|
10814
|
-
var
|
|
10815
|
-
|
|
10816
|
-
($,
|
|
10817
|
-
ne(H, "visible", f(le)), M(
|
|
10816
|
+
var Q = O(vt, 2);
|
|
10817
|
+
Q.__click = [Kg, me], k(Ge), k(H), D(
|
|
10818
|
+
($, P) => {
|
|
10819
|
+
ne(H, "visible", f(le)), M(V, "aria-label", f(le) ? "unpin forge buttons" : "pin forge buttons"), ne(V, "pinned", f(le)), _e(ae, $), _e(Z, P);
|
|
10818
10820
|
},
|
|
10819
10821
|
[
|
|
10820
10822
|
() => /* @__PURE__ */ $a(),
|
|
10821
|
-
() => /* @__PURE__ */
|
|
10823
|
+
() => /* @__PURE__ */ Ea()
|
|
10822
10824
|
]
|
|
10823
10825
|
), xt(3, H, () => Ut), T(B, H);
|
|
10824
10826
|
};
|
|
10825
|
-
|
|
10827
|
+
K(Ye, (B) => {
|
|
10826
10828
|
f(n) || B(Be);
|
|
10827
10829
|
});
|
|
10828
10830
|
}
|
|
10829
10831
|
k(je), D(
|
|
10830
10832
|
(B) => {
|
|
10831
|
-
nt(Pe, `${`btn ${f(n) ? "aks-btn-answer" : "btn-primary"}` ?? ""} svelte-1uxkxb0`), _e(
|
|
10833
|
+
nt(Pe, `${`btn ${f(n) ? "aks-btn-answer" : "btn-primary"}` ?? ""} svelte-1uxkxb0`), _e(tt, B);
|
|
10832
10834
|
},
|
|
10833
10835
|
[() => /* @__PURE__ */ Au()]
|
|
10834
10836
|
), T(t, je), se();
|