@telia-ace/widget-conversation-flamingo 1.1.70-rc.2 → 1.1.70-rc.20
Sign up to get free protection for your applications and to get access to all the features.
- package/conversation.d.ts +15 -2
- package/index.js +108 -71
- package/index.mjs +594 -506
- package/package.json +2 -2
package/index.mjs
CHANGED
@@ -10,7 +10,7 @@ var yt = (s, e, t) => {
|
|
10
10
|
e instanceof WeakSet ? e.add(s) : e.set(s, t);
|
11
11
|
};
|
12
12
|
var je = (s, e, t) => (Ci(s, e, "access private method"), t);
|
13
|
-
const
|
13
|
+
const Pl = async (s) => {
|
14
14
|
s.registerComponent("conversation", Promise.resolve().then(() => Ll));
|
15
15
|
};
|
16
16
|
class ds {
|
@@ -37,18 +37,18 @@ class ds {
|
|
37
37
|
// return this.registeredProviders.get(providerKey);
|
38
38
|
// }
|
39
39
|
}
|
40
|
-
var
|
41
|
-
return
|
40
|
+
var Lt = function(s, e) {
|
41
|
+
return Lt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, n) {
|
42
42
|
t.__proto__ = n;
|
43
43
|
} || function(t, n) {
|
44
44
|
for (var i in n)
|
45
45
|
Object.prototype.hasOwnProperty.call(n, i) && (t[i] = n[i]);
|
46
|
-
},
|
46
|
+
}, Lt(s, e);
|
47
47
|
};
|
48
48
|
function ve(s, e) {
|
49
49
|
if (typeof e != "function" && e !== null)
|
50
50
|
throw new TypeError("Class extends value " + String(e) + " is not a constructor or null");
|
51
|
-
|
51
|
+
Lt(s, e);
|
52
52
|
function t() {
|
53
53
|
this.constructor = s;
|
54
54
|
}
|
@@ -158,7 +158,7 @@ function ge(s) {
|
|
158
158
|
};
|
159
159
|
throw new TypeError(e ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
160
160
|
}
|
161
|
-
function
|
161
|
+
function Y(s, e) {
|
162
162
|
var t = typeof Symbol == "function" && s[Symbol.iterator];
|
163
163
|
if (!t)
|
164
164
|
return s;
|
@@ -178,7 +178,7 @@ function q(s, e) {
|
|
178
178
|
}
|
179
179
|
return r;
|
180
180
|
}
|
181
|
-
function
|
181
|
+
function te(s, e, t) {
|
182
182
|
if (t || arguments.length === 2)
|
183
183
|
for (var n = 0, i = e.length, r; n < i; n++)
|
184
184
|
(r || !(n in e)) && (r || (r = Array.prototype.slice.call(e, 0, n)), r[n] = e[n]);
|
@@ -259,7 +259,7 @@ var xt = gs(function(s) {
|
|
259
259
|
`) : "", this.name = "UnsubscriptionError", this.errors = t;
|
260
260
|
};
|
261
261
|
});
|
262
|
-
function
|
262
|
+
function Ot(s, e) {
|
263
263
|
if (s) {
|
264
264
|
var t = s.indexOf(e);
|
265
265
|
0 <= t && s.splice(t, 1);
|
@@ -307,9 +307,9 @@ var ot = function() {
|
|
307
307
|
for (var p = ge(u), d = p.next(); !d.done; d = p.next()) {
|
308
308
|
var b = d.value;
|
309
309
|
try {
|
310
|
-
|
310
|
+
kn(b);
|
311
311
|
} catch (f) {
|
312
|
-
r = r ?? [], f instanceof xt ? r =
|
312
|
+
r = r ?? [], f instanceof xt ? r = te(te([], Y(r)), Y(f.errors)) : r.push(f);
|
313
313
|
}
|
314
314
|
}
|
315
315
|
} catch (f) {
|
@@ -330,7 +330,7 @@ var ot = function() {
|
|
330
330
|
var t;
|
331
331
|
if (e && e !== this)
|
332
332
|
if (this.closed)
|
333
|
-
|
333
|
+
kn(e);
|
334
334
|
else {
|
335
335
|
if (e instanceof s) {
|
336
336
|
if (e.closed || e._hasParent(this))
|
@@ -347,10 +347,10 @@ var ot = function() {
|
|
347
347
|
this._parentage = Array.isArray(t) ? (t.push(e), t) : t ? [t, e] : e;
|
348
348
|
}, s.prototype._removeParent = function(e) {
|
349
349
|
var t = this._parentage;
|
350
|
-
t === e ? this._parentage = null : Array.isArray(t) &&
|
350
|
+
t === e ? this._parentage = null : Array.isArray(t) && Ot(t, e);
|
351
351
|
}, s.prototype.remove = function(e) {
|
352
352
|
var t = this._finalizers;
|
353
|
-
t &&
|
353
|
+
t && Ot(t, e), e instanceof s && e._removeParent(this);
|
354
354
|
}, s.EMPTY = function() {
|
355
355
|
var e = new s();
|
356
356
|
return e.closed = !0, e;
|
@@ -359,7 +359,7 @@ var ot = function() {
|
|
359
359
|
function vs(s) {
|
360
360
|
return s instanceof ot || s && "closed" in s && y(s.remove) && y(s.add) && y(s.unsubscribe);
|
361
361
|
}
|
362
|
-
function
|
362
|
+
function kn(s) {
|
363
363
|
y(s) ? s() : s.unsubscribe();
|
364
364
|
}
|
365
365
|
var bs = {
|
@@ -373,7 +373,7 @@ var bs = {
|
|
373
373
|
for (var t = [], n = 2; n < arguments.length; n++)
|
374
374
|
t[n - 2] = arguments[n];
|
375
375
|
var i = Pt.delegate;
|
376
|
-
return i != null && i.setTimeout ? i.setTimeout.apply(i,
|
376
|
+
return i != null && i.setTimeout ? i.setTimeout.apply(i, te([s, e], Y(t))) : setTimeout.apply(void 0, te([s, e], Y(t)));
|
377
377
|
},
|
378
378
|
clearTimeout: function(s) {
|
379
379
|
var e = Pt.delegate;
|
@@ -388,7 +388,7 @@ function $s(s) {
|
|
388
388
|
}
|
389
389
|
function We() {
|
390
390
|
}
|
391
|
-
function
|
391
|
+
function qe(s) {
|
392
392
|
s();
|
393
393
|
}
|
394
394
|
var Zt = function(s) {
|
@@ -422,11 +422,11 @@ var Zt = function(s) {
|
|
422
422
|
this.unsubscribe();
|
423
423
|
}
|
424
424
|
}, e;
|
425
|
-
}(ot),
|
425
|
+
}(ot), Li = Function.prototype.bind;
|
426
426
|
function wt(s, e) {
|
427
|
-
return
|
427
|
+
return Li.call(s, e);
|
428
428
|
}
|
429
|
-
var
|
429
|
+
var Oi = function() {
|
430
430
|
function s(e) {
|
431
431
|
this.partialObserver = e;
|
432
432
|
}
|
@@ -436,7 +436,7 @@ var Li = function() {
|
|
436
436
|
try {
|
437
437
|
t.next(e);
|
438
438
|
} catch (n) {
|
439
|
-
|
439
|
+
De(n);
|
440
440
|
}
|
441
441
|
}, s.prototype.error = function(e) {
|
442
442
|
var t = this.partialObserver;
|
@@ -444,17 +444,17 @@ var Li = function() {
|
|
444
444
|
try {
|
445
445
|
t.error(e);
|
446
446
|
} catch (n) {
|
447
|
-
|
447
|
+
De(n);
|
448
448
|
}
|
449
449
|
else
|
450
|
-
|
450
|
+
De(e);
|
451
451
|
}, s.prototype.complete = function() {
|
452
452
|
var e = this.partialObserver;
|
453
453
|
if (e.complete)
|
454
454
|
try {
|
455
455
|
e.complete();
|
456
456
|
} catch (t) {
|
457
|
-
|
457
|
+
De(t);
|
458
458
|
}
|
459
459
|
}, s;
|
460
460
|
}(), Rt = function(s) {
|
@@ -477,11 +477,11 @@ var Li = function() {
|
|
477
477
|
complete: t.complete && wt(t.complete, a)
|
478
478
|
}) : o = t;
|
479
479
|
}
|
480
|
-
return r.destination = new
|
480
|
+
return r.destination = new Oi(o), r;
|
481
481
|
}
|
482
482
|
return e;
|
483
483
|
}(Zt);
|
484
|
-
function
|
484
|
+
function De(s) {
|
485
485
|
$s(s);
|
486
486
|
}
|
487
487
|
function Pi(s) {
|
@@ -492,14 +492,14 @@ var Ri = {
|
|
492
492
|
next: We,
|
493
493
|
error: Pi,
|
494
494
|
complete: We
|
495
|
-
},
|
495
|
+
}, Wt = function() {
|
496
496
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
497
497
|
}();
|
498
|
-
function
|
498
|
+
function Oe(s) {
|
499
499
|
return s;
|
500
500
|
}
|
501
501
|
function Ii(s) {
|
502
|
-
return s.length === 0 ?
|
502
|
+
return s.length === 0 ? Oe : s.length === 1 ? s[0] : function(t) {
|
503
503
|
return s.reduce(function(n, i) {
|
504
504
|
return i(n);
|
505
505
|
}, t);
|
@@ -514,7 +514,7 @@ var C = function() {
|
|
514
514
|
return t.source = this, t.operator = e, t;
|
515
515
|
}, s.prototype.subscribe = function(e, t, n) {
|
516
516
|
var i = this, r = zi(e) ? e : new Rt(e, t, n);
|
517
|
-
return
|
517
|
+
return qe(function() {
|
518
518
|
var o = i, a = o.operator, l = o.source;
|
519
519
|
r.add(a ? a.call(r, l) : l ? i._subscribe(r) : i._trySubscribe(r));
|
520
520
|
}), r;
|
@@ -526,7 +526,7 @@ var C = function() {
|
|
526
526
|
}
|
527
527
|
}, s.prototype.forEach = function(e, t) {
|
528
528
|
var n = this;
|
529
|
-
return t =
|
529
|
+
return t = _n(t), new t(function(i, r) {
|
530
530
|
var o = new Rt({
|
531
531
|
next: function(a) {
|
532
532
|
try {
|
@@ -543,7 +543,7 @@ var C = function() {
|
|
543
543
|
}, s.prototype._subscribe = function(e) {
|
544
544
|
var t;
|
545
545
|
return (t = this.source) === null || t === void 0 ? void 0 : t.subscribe(e);
|
546
|
-
}, s.prototype[
|
546
|
+
}, s.prototype[Wt] = function() {
|
547
547
|
return this;
|
548
548
|
}, s.prototype.pipe = function() {
|
549
549
|
for (var e = [], t = 0; t < arguments.length; t++)
|
@@ -551,7 +551,7 @@ var C = function() {
|
|
551
551
|
return Ii(e)(this);
|
552
552
|
}, s.prototype.toPromise = function(e) {
|
553
553
|
var t = this;
|
554
|
-
return e =
|
554
|
+
return e = _n(e), new e(function(n, i) {
|
555
555
|
var r;
|
556
556
|
t.subscribe(function(o) {
|
557
557
|
return r = o;
|
@@ -565,7 +565,7 @@ var C = function() {
|
|
565
565
|
return new s(e);
|
566
566
|
}, s;
|
567
567
|
}();
|
568
|
-
function
|
568
|
+
function _n(s) {
|
569
569
|
var e;
|
570
570
|
return (e = s ?? bs.Promise) !== null && e !== void 0 ? e : Promise;
|
571
571
|
}
|
@@ -578,7 +578,7 @@ function zi(s) {
|
|
578
578
|
function Ui(s) {
|
579
579
|
return y(s == null ? void 0 : s.lift);
|
580
580
|
}
|
581
|
-
function
|
581
|
+
function K(s) {
|
582
582
|
return function(e) {
|
583
583
|
if (Ui(e))
|
584
584
|
return e.lift(function(t) {
|
@@ -629,25 +629,25 @@ var ji = function(s) {
|
|
629
629
|
s.prototype.unsubscribe.call(this), !n && ((t = this.onFinalize) === null || t === void 0 || t.call(this));
|
630
630
|
}
|
631
631
|
}, e;
|
632
|
-
}(Zt),
|
632
|
+
}(Zt), Di = gs(function(s) {
|
633
633
|
return function() {
|
634
634
|
s(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
635
635
|
};
|
636
|
-
}),
|
636
|
+
}), _ = function(s) {
|
637
637
|
ve(e, s);
|
638
638
|
function e() {
|
639
639
|
var t = s.call(this) || this;
|
640
640
|
return t.closed = !1, t.currentObservers = null, t.observers = [], t.isStopped = !1, t.hasError = !1, t.thrownError = null, t;
|
641
641
|
}
|
642
642
|
return e.prototype.lift = function(t) {
|
643
|
-
var n = new
|
643
|
+
var n = new Sn(this, this);
|
644
644
|
return n.operator = t, n;
|
645
645
|
}, e.prototype._throwIfClosed = function() {
|
646
646
|
if (this.closed)
|
647
|
-
throw new
|
647
|
+
throw new Di();
|
648
648
|
}, e.prototype.next = function(t) {
|
649
649
|
var n = this;
|
650
|
-
|
650
|
+
qe(function() {
|
651
651
|
var i, r;
|
652
652
|
if (n._throwIfClosed(), !n.isStopped) {
|
653
653
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
@@ -670,7 +670,7 @@ var ji = function(s) {
|
|
670
670
|
});
|
671
671
|
}, e.prototype.error = function(t) {
|
672
672
|
var n = this;
|
673
|
-
|
673
|
+
qe(function() {
|
674
674
|
if (n._throwIfClosed(), !n.isStopped) {
|
675
675
|
n.hasError = n.isStopped = !0, n.thrownError = t;
|
676
676
|
for (var i = n.observers; i.length; )
|
@@ -679,7 +679,7 @@ var ji = function(s) {
|
|
679
679
|
});
|
680
680
|
}, e.prototype.complete = function() {
|
681
681
|
var t = this;
|
682
|
-
|
682
|
+
qe(function() {
|
683
683
|
if (t._throwIfClosed(), !t.isStopped) {
|
684
684
|
t.isStopped = !0;
|
685
685
|
for (var n = t.observers; n.length; )
|
@@ -702,7 +702,7 @@ var ji = function(s) {
|
|
702
702
|
}, e.prototype._innerSubscribe = function(t) {
|
703
703
|
var n = this, i = this, r = i.hasError, o = i.isStopped, a = i.observers;
|
704
704
|
return r || o ? ms : (this.currentObservers = null, a.push(t), new ot(function() {
|
705
|
-
n.currentObservers = null,
|
705
|
+
n.currentObservers = null, Ot(a, t);
|
706
706
|
}));
|
707
707
|
}, e.prototype._checkFinalizedStatuses = function(t) {
|
708
708
|
var n = this, i = n.hasError, r = n.thrownError, o = n.isStopped;
|
@@ -711,9 +711,9 @@ var ji = function(s) {
|
|
711
711
|
var t = new C();
|
712
712
|
return t.source = this, t;
|
713
713
|
}, e.create = function(t, n) {
|
714
|
-
return new
|
714
|
+
return new Sn(t, n);
|
715
715
|
}, e;
|
716
|
-
}(C),
|
716
|
+
}(C), Sn = function(s) {
|
717
717
|
ve(e, s);
|
718
718
|
function e(t, n) {
|
719
719
|
var i = s.call(this) || this;
|
@@ -732,7 +732,7 @@ var ji = function(s) {
|
|
732
732
|
var n, i;
|
733
733
|
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(t)) !== null && i !== void 0 ? i : ms;
|
734
734
|
}, e;
|
735
|
-
}(
|
735
|
+
}(_), M = function(s) {
|
736
736
|
ve(e, s);
|
737
737
|
function e(t) {
|
738
738
|
var n = s.call(this) || this;
|
@@ -755,32 +755,32 @@ var ji = function(s) {
|
|
755
755
|
}, e.prototype.next = function(t) {
|
756
756
|
s.prototype.next.call(this, this._value = t);
|
757
757
|
}, e;
|
758
|
-
}(
|
758
|
+
}(_), Pe = new C(function(s) {
|
759
759
|
return s.complete();
|
760
760
|
});
|
761
|
-
function
|
761
|
+
function Hi(s) {
|
762
762
|
return s && y(s.schedule);
|
763
763
|
}
|
764
|
-
function
|
764
|
+
function Yt(s) {
|
765
765
|
return s[s.length - 1];
|
766
766
|
}
|
767
767
|
function ys(s) {
|
768
|
-
return y(
|
768
|
+
return y(Yt(s)) ? s.pop() : void 0;
|
769
769
|
}
|
770
|
-
function
|
771
|
-
return
|
770
|
+
function Qt(s) {
|
771
|
+
return Hi(Yt(s)) ? s.pop() : void 0;
|
772
772
|
}
|
773
773
|
function Bi(s, e) {
|
774
|
-
return typeof
|
774
|
+
return typeof Yt(s) == "number" ? s.pop() : e;
|
775
775
|
}
|
776
|
-
var
|
776
|
+
var Kt = function(s) {
|
777
777
|
return s && typeof s.length == "number" && typeof s != "function";
|
778
778
|
};
|
779
779
|
function xs(s) {
|
780
780
|
return y(s == null ? void 0 : s.then);
|
781
781
|
}
|
782
782
|
function ws(s) {
|
783
|
-
return y(s[
|
783
|
+
return y(s[Wt]);
|
784
784
|
}
|
785
785
|
function ks(s) {
|
786
786
|
return Symbol.asyncIterator && y(s == null ? void 0 : s[Symbol.asyncIterator]);
|
@@ -829,16 +829,16 @@ function As(s) {
|
|
829
829
|
function Es(s) {
|
830
830
|
return y(s == null ? void 0 : s.getReader);
|
831
831
|
}
|
832
|
-
function
|
832
|
+
function D(s) {
|
833
833
|
if (s instanceof C)
|
834
834
|
return s;
|
835
835
|
if (s != null) {
|
836
836
|
if (ws(s))
|
837
837
|
return Fi(s);
|
838
|
-
if (
|
839
|
-
return Zi(s);
|
840
|
-
if (xs(s))
|
838
|
+
if (Kt(s))
|
841
839
|
return qi(s);
|
840
|
+
if (xs(s))
|
841
|
+
return Zi(s);
|
842
842
|
if (ks(s))
|
843
843
|
return Ts(s);
|
844
844
|
if (Cs(s))
|
@@ -850,20 +850,20 @@ function j(s) {
|
|
850
850
|
}
|
851
851
|
function Fi(s) {
|
852
852
|
return new C(function(e) {
|
853
|
-
var t = s[
|
853
|
+
var t = s[Wt]();
|
854
854
|
if (y(t.subscribe))
|
855
855
|
return t.subscribe(e);
|
856
856
|
throw new TypeError("Provided object does not correctly implement Symbol.observable");
|
857
857
|
});
|
858
858
|
}
|
859
|
-
function
|
859
|
+
function qi(s) {
|
860
860
|
return new C(function(e) {
|
861
861
|
for (var t = 0; t < s.length && !e.closed; t++)
|
862
862
|
e.next(s[t]);
|
863
863
|
e.complete();
|
864
864
|
});
|
865
865
|
}
|
866
|
-
function
|
866
|
+
function Zi(s) {
|
867
867
|
return new C(function(e) {
|
868
868
|
s.then(function(t) {
|
869
869
|
e.closed || (e.next(t), e.complete());
|
@@ -944,7 +944,7 @@ function Qi(s, e) {
|
|
944
944
|
});
|
945
945
|
});
|
946
946
|
}
|
947
|
-
function
|
947
|
+
function F(s, e, t, n, i) {
|
948
948
|
n === void 0 && (n = 0), i === void 0 && (i = !1);
|
949
949
|
var r = e.schedule(function() {
|
950
950
|
t(), i ? s.add(this.schedule(null, n)) : this.unsubscribe();
|
@@ -952,35 +952,35 @@ function B(s, e, t, n, i) {
|
|
952
952
|
if (s.add(r), !i)
|
953
953
|
return r;
|
954
954
|
}
|
955
|
-
function
|
956
|
-
return e === void 0 && (e = 0),
|
955
|
+
function Ls(s, e) {
|
956
|
+
return e === void 0 && (e = 0), K(function(t, n) {
|
957
957
|
t.subscribe(P(n, function(i) {
|
958
|
-
return
|
958
|
+
return F(n, s, function() {
|
959
959
|
return n.next(i);
|
960
960
|
}, e);
|
961
961
|
}, function() {
|
962
|
-
return
|
962
|
+
return F(n, s, function() {
|
963
963
|
return n.complete();
|
964
964
|
}, e);
|
965
965
|
}, function(i) {
|
966
|
-
return
|
966
|
+
return F(n, s, function() {
|
967
967
|
return n.error(i);
|
968
968
|
}, e);
|
969
969
|
}));
|
970
970
|
});
|
971
971
|
}
|
972
|
-
function
|
973
|
-
return e === void 0 && (e = 0),
|
972
|
+
function Os(s, e) {
|
973
|
+
return e === void 0 && (e = 0), K(function(t, n) {
|
974
974
|
n.add(s.schedule(function() {
|
975
975
|
return t.subscribe(n);
|
976
976
|
}, e));
|
977
977
|
});
|
978
978
|
}
|
979
979
|
function Ki(s, e) {
|
980
|
-
return
|
980
|
+
return D(s).pipe(Os(e), Ls(e));
|
981
981
|
}
|
982
982
|
function Gi(s, e) {
|
983
|
-
return
|
983
|
+
return D(s).pipe(Os(e), Ls(e));
|
984
984
|
}
|
985
985
|
function Xi(s, e) {
|
986
986
|
return new C(function(t) {
|
@@ -993,8 +993,8 @@ function Xi(s, e) {
|
|
993
993
|
function Ji(s, e) {
|
994
994
|
return new C(function(t) {
|
995
995
|
var n;
|
996
|
-
return
|
997
|
-
n = s[Ss](),
|
996
|
+
return F(t, e, function() {
|
997
|
+
n = s[Ss](), F(t, e, function() {
|
998
998
|
var i, r, o;
|
999
999
|
try {
|
1000
1000
|
i = n.next(), r = i.value, o = i.done;
|
@@ -1013,9 +1013,9 @@ function Ps(s, e) {
|
|
1013
1013
|
if (!s)
|
1014
1014
|
throw new Error("Iterable cannot be null");
|
1015
1015
|
return new C(function(t) {
|
1016
|
-
|
1016
|
+
F(t, e, function() {
|
1017
1017
|
var n = s[Symbol.asyncIterator]();
|
1018
|
-
|
1018
|
+
F(t, e, function() {
|
1019
1019
|
n.next().then(function(i) {
|
1020
1020
|
i.done ? t.complete() : t.next(i.value);
|
1021
1021
|
});
|
@@ -1030,7 +1030,7 @@ function er(s, e) {
|
|
1030
1030
|
if (s != null) {
|
1031
1031
|
if (ws(s))
|
1032
1032
|
return Ki(s, e);
|
1033
|
-
if (
|
1033
|
+
if (Kt(s))
|
1034
1034
|
return Xi(s, e);
|
1035
1035
|
if (xs(s))
|
1036
1036
|
return Gi(s, e);
|
@@ -1044,16 +1044,16 @@ function er(s, e) {
|
|
1044
1044
|
throw _s(s);
|
1045
1045
|
}
|
1046
1046
|
function at(s, e) {
|
1047
|
-
return e ? er(s, e) :
|
1047
|
+
return e ? er(s, e) : D(s);
|
1048
1048
|
}
|
1049
1049
|
function It() {
|
1050
1050
|
for (var s = [], e = 0; e < arguments.length; e++)
|
1051
1051
|
s[e] = arguments[e];
|
1052
|
-
var t =
|
1052
|
+
var t = Qt(s);
|
1053
1053
|
return at(s, t);
|
1054
1054
|
}
|
1055
1055
|
function Ye(s, e) {
|
1056
|
-
return
|
1056
|
+
return K(function(t, n) {
|
1057
1057
|
var i = 0;
|
1058
1058
|
t.subscribe(P(n, function(r) {
|
1059
1059
|
n.next(s.call(e, r, i++));
|
@@ -1062,7 +1062,7 @@ function Ye(s, e) {
|
|
1062
1062
|
}
|
1063
1063
|
var tr = Array.isArray;
|
1064
1064
|
function nr(s, e) {
|
1065
|
-
return tr(e) ? s.apply(void 0,
|
1065
|
+
return tr(e) ? s.apply(void 0, te([], Y(e))) : s(e);
|
1066
1066
|
}
|
1067
1067
|
function Rs(s) {
|
1068
1068
|
return Ye(function(e) {
|
@@ -1098,19 +1098,19 @@ function cr(s, e) {
|
|
1098
1098
|
function hr() {
|
1099
1099
|
for (var s = [], e = 0; e < arguments.length; e++)
|
1100
1100
|
s[e] = arguments[e];
|
1101
|
-
var t =
|
1101
|
+
var t = Qt(s), n = ys(s), i = ar(s), r = i.args, o = i.keys;
|
1102
1102
|
if (r.length === 0)
|
1103
1103
|
return at([], t);
|
1104
1104
|
var a = new C(ur(r, t, o ? function(l) {
|
1105
1105
|
return cr(o, l);
|
1106
|
-
} :
|
1106
|
+
} : Oe));
|
1107
1107
|
return n ? a.pipe(Rs(n)) : a;
|
1108
1108
|
}
|
1109
1109
|
function ur(s, e, t) {
|
1110
|
-
return t === void 0 && (t =
|
1111
|
-
|
1110
|
+
return t === void 0 && (t = Oe), function(n) {
|
1111
|
+
Cn(e, function() {
|
1112
1112
|
for (var i = s.length, r = new Array(i), o = i, a = i, l = function(h) {
|
1113
|
-
|
1113
|
+
Cn(e, function() {
|
1114
1114
|
var u = at(s[h], e), p = !1;
|
1115
1115
|
u.subscribe(P(n, function(d) {
|
1116
1116
|
r[h] = d, p || (p = !0, a--), a || n.next(t(r.slice()));
|
@@ -1123,8 +1123,8 @@ function ur(s, e, t) {
|
|
1123
1123
|
}, n);
|
1124
1124
|
};
|
1125
1125
|
}
|
1126
|
-
function
|
1127
|
-
s ?
|
1126
|
+
function Cn(s, e, t) {
|
1127
|
+
s ? F(t, s, e) : e();
|
1128
1128
|
}
|
1129
1129
|
function pr(s, e, t, n, i, r, o, a) {
|
1130
1130
|
var l = [], c = 0, h = 0, u = !1, p = function() {
|
@@ -1133,25 +1133,25 @@ function pr(s, e, t, n, i, r, o, a) {
|
|
1133
1133
|
return c < n ? b(f) : l.push(f);
|
1134
1134
|
}, b = function(f) {
|
1135
1135
|
r && e.next(f), c++;
|
1136
|
-
var
|
1137
|
-
|
1136
|
+
var I = !1;
|
1137
|
+
D(t(f, h++)).subscribe(P(e, function(H) {
|
1138
1138
|
i == null || i(H), r ? d(H) : e.next(H);
|
1139
1139
|
}, function() {
|
1140
|
-
|
1140
|
+
I = !0;
|
1141
1141
|
}, void 0, function() {
|
1142
|
-
if (
|
1142
|
+
if (I)
|
1143
1143
|
try {
|
1144
1144
|
c--;
|
1145
1145
|
for (var H = function() {
|
1146
|
-
var
|
1147
|
-
o ?
|
1148
|
-
return b(
|
1149
|
-
}) : b(
|
1146
|
+
var X = l.shift();
|
1147
|
+
o ? F(e, o, function() {
|
1148
|
+
return b(X);
|
1149
|
+
}) : b(X);
|
1150
1150
|
}; l.length && c < n; )
|
1151
1151
|
H();
|
1152
1152
|
p();
|
1153
|
-
} catch (
|
1154
|
-
e.error(
|
1153
|
+
} catch (X) {
|
1154
|
+
e.error(X);
|
1155
1155
|
}
|
1156
1156
|
}));
|
1157
1157
|
};
|
@@ -1161,31 +1161,31 @@ function pr(s, e, t, n, i, r, o, a) {
|
|
1161
1161
|
a == null || a();
|
1162
1162
|
};
|
1163
1163
|
}
|
1164
|
-
function
|
1165
|
-
return t === void 0 && (t = 1 / 0), y(e) ?
|
1164
|
+
function Gt(s, e, t) {
|
1165
|
+
return t === void 0 && (t = 1 / 0), y(e) ? Gt(function(n, i) {
|
1166
1166
|
return Ye(function(r, o) {
|
1167
1167
|
return e(n, r, i, o);
|
1168
|
-
})(
|
1169
|
-
}, t) : (typeof e == "number" && (t = e),
|
1168
|
+
})(D(s(n, i)));
|
1169
|
+
}, t) : (typeof e == "number" && (t = e), K(function(n, i) {
|
1170
1170
|
return pr(n, i, s, t);
|
1171
1171
|
}));
|
1172
1172
|
}
|
1173
1173
|
function dr(s) {
|
1174
|
-
return s === void 0 && (s = 1 / 0),
|
1174
|
+
return s === void 0 && (s = 1 / 0), Gt(Oe, s);
|
1175
1175
|
}
|
1176
1176
|
var fr = ["addListener", "removeListener"], gr = ["addEventListener", "removeEventListener"], mr = ["on", "off"];
|
1177
1177
|
function Qe(s, e, t, n) {
|
1178
1178
|
if (y(t) && (n = t, t = void 0), n)
|
1179
1179
|
return Qe(s, e, t).pipe(Rs(n));
|
1180
|
-
var i =
|
1180
|
+
var i = Y($r(s) ? gr.map(function(a) {
|
1181
1181
|
return function(l) {
|
1182
1182
|
return s[a](e, l, t);
|
1183
1183
|
};
|
1184
|
-
}) : vr(s) ? fr.map(
|
1185
|
-
if (!r &&
|
1186
|
-
return
|
1184
|
+
}) : vr(s) ? fr.map(An(s, e)) : br(s) ? mr.map(An(s, e)) : [], 2), r = i[0], o = i[1];
|
1185
|
+
if (!r && Kt(s))
|
1186
|
+
return Gt(function(a) {
|
1187
1187
|
return Qe(a, e, t);
|
1188
|
-
})(
|
1188
|
+
})(D(s));
|
1189
1189
|
if (!r)
|
1190
1190
|
throw new TypeError("Invalid event target");
|
1191
1191
|
return new C(function(a) {
|
@@ -1199,7 +1199,7 @@ function Qe(s, e, t, n) {
|
|
1199
1199
|
};
|
1200
1200
|
});
|
1201
1201
|
}
|
1202
|
-
function
|
1202
|
+
function An(s, e) {
|
1203
1203
|
return function(t) {
|
1204
1204
|
return function(n) {
|
1205
1205
|
return s[t](e, n);
|
@@ -1218,13 +1218,13 @@ function $r(s) {
|
|
1218
1218
|
function yr() {
|
1219
1219
|
for (var s = [], e = 0; e < arguments.length; e++)
|
1220
1220
|
s[e] = arguments[e];
|
1221
|
-
var t =
|
1222
|
-
return i.length ? i.length === 1 ?
|
1221
|
+
var t = Qt(s), n = Bi(s, 1 / 0), i = s;
|
1222
|
+
return i.length ? i.length === 1 ? D(i[0]) : dr(n)(at(i, t)) : Pe;
|
1223
1223
|
}
|
1224
1224
|
function Mt(s) {
|
1225
1225
|
return s <= 0 ? function() {
|
1226
1226
|
return Pe;
|
1227
|
-
} :
|
1227
|
+
} : K(function(e, t) {
|
1228
1228
|
var n = 0;
|
1229
1229
|
e.subscribe(P(t, function(i) {
|
1230
1230
|
++n <= s && (t.next(i), s <= n && t.complete());
|
@@ -1232,14 +1232,14 @@ function Mt(s) {
|
|
1232
1232
|
});
|
1233
1233
|
}
|
1234
1234
|
function pe(s, e) {
|
1235
|
-
return
|
1235
|
+
return K(function(t, n) {
|
1236
1236
|
var i = null, r = 0, o = !1, a = function() {
|
1237
1237
|
return o && !i && n.complete();
|
1238
1238
|
};
|
1239
1239
|
t.subscribe(P(n, function(l) {
|
1240
1240
|
i == null || i.unsubscribe();
|
1241
1241
|
var c = 0, h = r++;
|
1242
|
-
|
1242
|
+
D(s(l, h)).subscribe(i = P(n, function(u) {
|
1243
1243
|
return n.next(e ? e(l, u, h, c++) : u);
|
1244
1244
|
}, function() {
|
1245
1245
|
i = null, a();
|
@@ -1249,39 +1249,39 @@ function pe(s, e) {
|
|
1249
1249
|
}));
|
1250
1250
|
});
|
1251
1251
|
}
|
1252
|
-
function
|
1253
|
-
return
|
1254
|
-
|
1252
|
+
function zt(s) {
|
1253
|
+
return K(function(e, t) {
|
1254
|
+
D(s).subscribe(P(t, function() {
|
1255
1255
|
return t.complete();
|
1256
1256
|
}, We)), !t.closed && e.subscribe(t);
|
1257
1257
|
});
|
1258
1258
|
}
|
1259
|
-
function
|
1259
|
+
function Ut() {
|
1260
1260
|
for (var s = [], e = 0; e < arguments.length; e++)
|
1261
1261
|
s[e] = arguments[e];
|
1262
1262
|
var t = ys(s);
|
1263
|
-
return
|
1263
|
+
return K(function(n, i) {
|
1264
1264
|
for (var r = s.length, o = new Array(r), a = s.map(function() {
|
1265
1265
|
return !1;
|
1266
1266
|
}), l = !1, c = function(u) {
|
1267
|
-
|
1268
|
-
o[u] = p, !l && !a[u] && (a[u] = !0, (l = a.every(
|
1267
|
+
D(s[u]).subscribe(P(i, function(p) {
|
1268
|
+
o[u] = p, !l && !a[u] && (a[u] = !0, (l = a.every(Oe)) && (a = null));
|
1269
1269
|
}, We));
|
1270
1270
|
}, h = 0; h < r; h++)
|
1271
1271
|
c(h);
|
1272
1272
|
n.subscribe(P(i, function(u) {
|
1273
1273
|
if (l) {
|
1274
|
-
var p =
|
1275
|
-
i.next(t ? t.apply(void 0,
|
1274
|
+
var p = te([u], Y(o));
|
1275
|
+
i.next(t ? t.apply(void 0, te([], Y(p))) : p);
|
1276
1276
|
}
|
1277
1277
|
}));
|
1278
1278
|
});
|
1279
1279
|
}
|
1280
|
-
var
|
1280
|
+
var Z = /* @__PURE__ */ ((s) => (s.User = "user", s.Agent = "agent", s.System = "system", s))(Z || {});
|
1281
1281
|
const Is = () => crypto.randomUUID();
|
1282
1282
|
class lt {
|
1283
1283
|
constructor(e, t, n) {
|
1284
|
-
this.type = e, this.sender = t, this.messages = n, this.status = "delivered", this.didUpdate = new
|
1284
|
+
this.type = e, this.sender = t, this.messages = n, this.status = "delivered", this.didUpdate = new _(), this.actions$ = new _(), this.remove$ = new _(), this.timestamp = Date.now(), this.id = Is();
|
1285
1285
|
}
|
1286
1286
|
update(e) {
|
1287
1287
|
this.messages = [
|
@@ -1299,11 +1299,11 @@ class lt {
|
|
1299
1299
|
}
|
1300
1300
|
class xr {
|
1301
1301
|
constructor(e) {
|
1302
|
-
this.name = e, this.print$ = new
|
1302
|
+
this.name = e, this.print$ = new _();
|
1303
1303
|
}
|
1304
1304
|
print(e, t = "html") {
|
1305
1305
|
const n = new lt(
|
1306
|
-
|
1306
|
+
Z.Agent,
|
1307
1307
|
{ name: this.name },
|
1308
1308
|
[
|
1309
1309
|
{
|
@@ -1319,11 +1319,11 @@ class xr {
|
|
1319
1319
|
}
|
1320
1320
|
class wr {
|
1321
1321
|
constructor(e) {
|
1322
|
-
this.name = e, this.print$ = new
|
1322
|
+
this.name = e, this.print$ = new _();
|
1323
1323
|
}
|
1324
1324
|
print(e) {
|
1325
1325
|
const t = new lt(
|
1326
|
-
|
1326
|
+
Z.User,
|
1327
1327
|
{ name: this.name },
|
1328
1328
|
[
|
1329
1329
|
{
|
@@ -1339,11 +1339,11 @@ class wr {
|
|
1339
1339
|
}
|
1340
1340
|
class kr {
|
1341
1341
|
constructor() {
|
1342
|
-
this.print$ = new
|
1342
|
+
this.print$ = new _(), this.name = "system";
|
1343
1343
|
}
|
1344
1344
|
print(e) {
|
1345
1345
|
const t = new lt(
|
1346
|
-
|
1346
|
+
Z.System,
|
1347
1347
|
{ name: this.name },
|
1348
1348
|
[
|
1349
1349
|
{
|
@@ -1357,9 +1357,9 @@ class kr {
|
|
1357
1357
|
return this.print$.asObservable();
|
1358
1358
|
}
|
1359
1359
|
}
|
1360
|
-
class
|
1360
|
+
class Rl {
|
1361
1361
|
constructor(e, t) {
|
1362
|
-
this.name = e, this.component = t, this.print$ = new
|
1362
|
+
this.name = e, this.component = t, this.print$ = new _(), this.typingState$ = new M(!1), this.complete$ = new _(), this.system = this.createSystem(), this.rehydrate$ = new _(), this.saveToCurrentSession$ = new _(), this.showChatOverlay$ = new M(!1), this.onComplete = () => this.complete$.asObservable();
|
1363
1363
|
}
|
1364
1364
|
connect(e = {}) {
|
1365
1365
|
this.complete$.pipe(Mt(1)).subscribe(() => {
|
@@ -1371,7 +1371,7 @@ class Il {
|
|
1371
1371
|
disconnected() {
|
1372
1372
|
}
|
1373
1373
|
onUserSubmit(e) {
|
1374
|
-
this.print(
|
1374
|
+
this.print(Z.User, e.text);
|
1375
1375
|
}
|
1376
1376
|
print(e, t) {
|
1377
1377
|
const n = new lt(
|
@@ -1439,17 +1439,17 @@ class Il {
|
|
1439
1439
|
* Copyright 2019 Google LLC
|
1440
1440
|
* SPDX-License-Identifier: BSD-3-Clause
|
1441
1441
|
*/
|
1442
|
-
const
|
1442
|
+
const Ze = globalThis, Xt = Ze.ShadowRoot && (Ze.ShadyCSS === void 0 || Ze.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Jt = Symbol(), En = /* @__PURE__ */ new WeakMap();
|
1443
1443
|
let Ms = class {
|
1444
1444
|
constructor(e, t, n) {
|
1445
|
-
if (this._$cssResult$ = !0, n !==
|
1445
|
+
if (this._$cssResult$ = !0, n !== Jt)
|
1446
1446
|
throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
1447
1447
|
this.cssText = e, this.t = t;
|
1448
1448
|
}
|
1449
1449
|
get styleSheet() {
|
1450
1450
|
let e = this.o;
|
1451
1451
|
const t = this.t;
|
1452
|
-
if (
|
1452
|
+
if (Xt && e === void 0) {
|
1453
1453
|
const n = t !== void 0 && t.length === 1;
|
1454
1454
|
n && (e = En.get(t)), e === void 0 && ((this.o = e = new CSSStyleSheet()).replaceSync(this.cssText), n && En.set(t, e));
|
1455
1455
|
}
|
@@ -1459,7 +1459,7 @@ let Ms = class {
|
|
1459
1459
|
return this.cssText;
|
1460
1460
|
}
|
1461
1461
|
};
|
1462
|
-
const _r = (s) => new Ms(typeof s == "string" ? s : s + "", void 0,
|
1462
|
+
const _r = (s) => new Ms(typeof s == "string" ? s : s + "", void 0, Jt), A = (s, ...e) => {
|
1463
1463
|
const t = s.length === 1 ? s[0] : e.reduce((n, i, r) => n + ((o) => {
|
1464
1464
|
if (o._$cssResult$ === !0)
|
1465
1465
|
return o.cssText;
|
@@ -1467,16 +1467,16 @@ const _r = (s) => new Ms(typeof s == "string" ? s : s + "", void 0, Xt), A = (s,
|
|
1467
1467
|
return o;
|
1468
1468
|
throw Error("Value passed to 'css' function must be a 'css' function result: " + o + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
|
1469
1469
|
})(i) + s[r + 1], s[0]);
|
1470
|
-
return new Ms(t, s,
|
1470
|
+
return new Ms(t, s, Jt);
|
1471
1471
|
}, Sr = (s, e) => {
|
1472
|
-
if (
|
1472
|
+
if (Xt)
|
1473
1473
|
s.adoptedStyleSheets = e.map((t) => t instanceof CSSStyleSheet ? t : t.styleSheet);
|
1474
1474
|
else
|
1475
1475
|
for (const t of e) {
|
1476
|
-
const n = document.createElement("style"), i =
|
1476
|
+
const n = document.createElement("style"), i = Ze.litNonce;
|
1477
1477
|
i !== void 0 && n.setAttribute("nonce", i), n.textContent = t.cssText, s.appendChild(n);
|
1478
1478
|
}
|
1479
|
-
}, Tn =
|
1479
|
+
}, Tn = Xt ? (s) => s : (s) => s instanceof CSSStyleSheet ? ((e) => {
|
1480
1480
|
let t = "";
|
1481
1481
|
for (const n of e.cssRules)
|
1482
1482
|
t += n.cssText;
|
@@ -1487,7 +1487,7 @@ const _r = (s) => new Ms(typeof s == "string" ? s : s + "", void 0, Xt), A = (s,
|
|
1487
1487
|
* Copyright 2017 Google LLC
|
1488
1488
|
* SPDX-License-Identifier: BSD-3-Clause
|
1489
1489
|
*/
|
1490
|
-
const { is: Cr, defineProperty: Ar, getOwnPropertyDescriptor: Er, getOwnPropertyNames: Tr, getOwnPropertySymbols:
|
1490
|
+
const { is: Cr, defineProperty: Ar, getOwnPropertyDescriptor: Er, getOwnPropertyNames: Tr, getOwnPropertySymbols: Lr, getPrototypeOf: Or } = Object, W = globalThis, Ln = W.trustedTypes, Pr = Ln ? Ln.emptyScript : "", kt = W.reactiveElementPolyfillSupport, ye = (s, e) => s, Ke = { toAttribute(s, e) {
|
1491
1491
|
switch (e) {
|
1492
1492
|
case Boolean:
|
1493
1493
|
s = s ? Pr : null;
|
@@ -1515,8 +1515,8 @@ const { is: Cr, defineProperty: Ar, getOwnPropertyDescriptor: Er, getOwnProperty
|
|
1515
1515
|
}
|
1516
1516
|
}
|
1517
1517
|
return t;
|
1518
|
-
} },
|
1519
|
-
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")),
|
1518
|
+
} }, Vt = (s, e) => !Cr(s, e), On = { attribute: !0, type: String, converter: Ke, reflect: !1, hasChanged: Vt };
|
1519
|
+
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), W.litPropertyMetadata ?? (W.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
1520
1520
|
let ae = class extends HTMLElement {
|
1521
1521
|
static addInitializer(e) {
|
1522
1522
|
this._$Ei(), (this.l ?? (this.l = [])).push(e);
|
@@ -1524,7 +1524,7 @@ let ae = class extends HTMLElement {
|
|
1524
1524
|
static get observedAttributes() {
|
1525
1525
|
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
1526
1526
|
}
|
1527
|
-
static createProperty(e, t =
|
1527
|
+
static createProperty(e, t = On) {
|
1528
1528
|
if (t.state && (t.attribute = !1), this._$Ei(), this.elementProperties.set(e, t), !t.noAccessor) {
|
1529
1529
|
const n = Symbol(), i = this.getPropertyDescriptor(e, n, t);
|
1530
1530
|
i !== void 0 && Ar(this.prototype, e, i);
|
@@ -1544,19 +1544,19 @@ let ae = class extends HTMLElement {
|
|
1544
1544
|
}, configurable: !0, enumerable: !0 };
|
1545
1545
|
}
|
1546
1546
|
static getPropertyOptions(e) {
|
1547
|
-
return this.elementProperties.get(e) ??
|
1547
|
+
return this.elementProperties.get(e) ?? On;
|
1548
1548
|
}
|
1549
1549
|
static _$Ei() {
|
1550
1550
|
if (this.hasOwnProperty(ye("elementProperties")))
|
1551
1551
|
return;
|
1552
|
-
const e =
|
1552
|
+
const e = Or(this);
|
1553
1553
|
e.finalize(), e.l !== void 0 && (this.l = [...e.l]), this.elementProperties = new Map(e.elementProperties);
|
1554
1554
|
}
|
1555
1555
|
static finalize() {
|
1556
1556
|
if (this.hasOwnProperty(ye("finalized")))
|
1557
1557
|
return;
|
1558
1558
|
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(ye("properties"))) {
|
1559
|
-
const t = this.properties, n = [...Tr(t), ...
|
1559
|
+
const t = this.properties, n = [...Tr(t), ...Lr(t)];
|
1560
1560
|
for (const i of n)
|
1561
1561
|
this.createProperty(i, t[i]);
|
1562
1562
|
}
|
@@ -1650,7 +1650,7 @@ let ae = class extends HTMLElement {
|
|
1650
1650
|
}
|
1651
1651
|
requestUpdate(e, t, n) {
|
1652
1652
|
if (e !== void 0) {
|
1653
|
-
if (n ?? (n = this.constructor.getPropertyOptions(e)), !(n.hasChanged ??
|
1653
|
+
if (n ?? (n = this.constructor.getPropertyOptions(e)), !(n.hasChanged ?? Vt)(this[e], t))
|
1654
1654
|
return;
|
1655
1655
|
this.P(e, t, n);
|
1656
1656
|
}
|
@@ -1728,16 +1728,16 @@ let ae = class extends HTMLElement {
|
|
1728
1728
|
firstUpdated(e) {
|
1729
1729
|
}
|
1730
1730
|
};
|
1731
|
-
ae.elementStyles = [], ae.shadowRootOptions = { mode: "open" }, ae[ye("elementProperties")] = /* @__PURE__ */ new Map(), ae[ye("finalized")] = /* @__PURE__ */ new Map(), kt == null || kt({ ReactiveElement: ae }), (
|
1731
|
+
ae.elementStyles = [], ae.shadowRootOptions = { mode: "open" }, ae[ye("elementProperties")] = /* @__PURE__ */ new Map(), ae[ye("finalized")] = /* @__PURE__ */ new Map(), kt == null || kt({ ReactiveElement: ae }), (W.reactiveElementVersions ?? (W.reactiveElementVersions = [])).push("2.0.4");
|
1732
1732
|
/**
|
1733
1733
|
* @license
|
1734
1734
|
* Copyright 2017 Google LLC
|
1735
1735
|
* SPDX-License-Identifier: BSD-3-Clause
|
1736
1736
|
*/
|
1737
|
-
const xe = globalThis, Ge = xe.trustedTypes, Pn = Ge ? Ge.createPolicy("lit-html", { createHTML: (s) => s }) : void 0, zs = "$lit$",
|
1738
|
-
\f\r]`, be = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Rn = /-->/g, In = />/g,
|
1739
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), Mn = /'/g, zn = /"/g,
|
1740
|
-
function
|
1737
|
+
const xe = globalThis, Ge = xe.trustedTypes, Pn = Ge ? Ge.createPolicy("lit-html", { createHTML: (s) => s }) : void 0, zs = "$lit$", q = `lit$${(Math.random() + "").slice(9)}$`, Us = "?" + q, Rr = `<${Us}>`, ne = document, Se = () => ne.createComment(""), Ce = (s) => s === null || typeof s != "object" && typeof s != "function", js = Array.isArray, Ir = (s) => js(s) || typeof (s == null ? void 0 : s[Symbol.iterator]) == "function", _t = `[
|
1738
|
+
\f\r]`, be = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Rn = /-->/g, In = />/g, J = RegExp(`>|${_t}(?:([^\\s"'>=/]+)(${_t}*=${_t}*(?:[^
|
1739
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), Mn = /'/g, zn = /"/g, Ds = /^(?:script|style|textarea|title)$/i, Mr = (s) => (e, ...t) => ({ _$litType$: s, strings: e, values: t }), m = Mr(1), Q = Symbol.for("lit-noChange"), g = Symbol.for("lit-nothing"), Un = /* @__PURE__ */ new WeakMap(), ee = ne.createTreeWalker(ne, 129);
|
1740
|
+
function Hs(s, e) {
|
1741
1741
|
if (!Array.isArray(s) || !s.hasOwnProperty("raw"))
|
1742
1742
|
throw Error("invalid template strings array");
|
1743
1743
|
return Pn !== void 0 ? Pn.createHTML(e) : e;
|
@@ -1749,11 +1749,11 @@ const zr = (s, e) => {
|
|
1749
1749
|
const l = s[a];
|
1750
1750
|
let c, h, u = -1, p = 0;
|
1751
1751
|
for (; p < l.length && (o.lastIndex = p, h = o.exec(l), h !== null); )
|
1752
|
-
p = o.lastIndex, o === be ? h[1] === "!--" ? o = Rn : h[1] !== void 0 ? o = In : h[2] !== void 0 ? (
|
1753
|
-
const d = o ===
|
1754
|
-
r += o === be ? l + Rr : u >= 0 ? (n.push(c), l.slice(0, u) + zs + l.slice(u) +
|
1752
|
+
p = o.lastIndex, o === be ? h[1] === "!--" ? o = Rn : h[1] !== void 0 ? o = In : h[2] !== void 0 ? (Ds.test(h[2]) && (i = RegExp("</" + h[2], "g")), o = J) : h[3] !== void 0 && (o = J) : o === J ? h[0] === ">" ? (o = i ?? be, u = -1) : h[1] === void 0 ? u = -2 : (u = o.lastIndex - h[2].length, c = h[1], o = h[3] === void 0 ? J : h[3] === '"' ? zn : Mn) : o === zn || o === Mn ? o = J : o === Rn || o === In ? o = be : (o = J, i = void 0);
|
1753
|
+
const d = o === J && s[a + 1].startsWith("/>") ? " " : "";
|
1754
|
+
r += o === be ? l + Rr : u >= 0 ? (n.push(c), l.slice(0, u) + zs + l.slice(u) + q + d) : l + q + (u === -2 ? a : d);
|
1755
1755
|
}
|
1756
|
-
return [
|
1756
|
+
return [Hs(s, r + (s[t] || "<?>") + (e === 2 ? "</svg>" : "")), n];
|
1757
1757
|
};
|
1758
1758
|
class Ae {
|
1759
1759
|
constructor({ strings: e, _$litType$: t }, n) {
|
@@ -1761,25 +1761,25 @@ class Ae {
|
|
1761
1761
|
this.parts = [];
|
1762
1762
|
let r = 0, o = 0;
|
1763
1763
|
const a = e.length - 1, l = this.parts, [c, h] = zr(e, t);
|
1764
|
-
if (this.el = Ae.createElement(c, n),
|
1764
|
+
if (this.el = Ae.createElement(c, n), ee.currentNode = this.el.content, t === 2) {
|
1765
1765
|
const u = this.el.content.firstChild;
|
1766
1766
|
u.replaceWith(...u.childNodes);
|
1767
1767
|
}
|
1768
|
-
for (; (i =
|
1768
|
+
for (; (i = ee.nextNode()) !== null && l.length < a; ) {
|
1769
1769
|
if (i.nodeType === 1) {
|
1770
1770
|
if (i.hasAttributes())
|
1771
1771
|
for (const u of i.getAttributeNames())
|
1772
1772
|
if (u.endsWith(zs)) {
|
1773
|
-
const p = h[o++], d = i.getAttribute(u).split(
|
1774
|
-
l.push({ type: 1, index: r, name: b[2], strings: d, ctor: b[1] === "." ? jr : b[1] === "?" ?
|
1773
|
+
const p = h[o++], d = i.getAttribute(u).split(q), b = /([.?@])?(.*)/.exec(p);
|
1774
|
+
l.push({ type: 1, index: r, name: b[2], strings: d, ctor: b[1] === "." ? jr : b[1] === "?" ? Dr : b[1] === "@" ? Hr : ct }), i.removeAttribute(u);
|
1775
1775
|
} else
|
1776
|
-
u.startsWith(
|
1777
|
-
if (
|
1778
|
-
const u = i.textContent.split(
|
1776
|
+
u.startsWith(q) && (l.push({ type: 6, index: r }), i.removeAttribute(u));
|
1777
|
+
if (Ds.test(i.tagName)) {
|
1778
|
+
const u = i.textContent.split(q), p = u.length - 1;
|
1779
1779
|
if (p > 0) {
|
1780
1780
|
i.textContent = Ge ? Ge.emptyScript : "";
|
1781
1781
|
for (let d = 0; d < p; d++)
|
1782
|
-
i.append(u[d], Se()),
|
1782
|
+
i.append(u[d], Se()), ee.nextNode(), l.push({ type: 2, index: ++r });
|
1783
1783
|
i.append(u[p], Se());
|
1784
1784
|
}
|
1785
1785
|
}
|
@@ -1788,20 +1788,20 @@ class Ae {
|
|
1788
1788
|
l.push({ type: 2, index: r });
|
1789
1789
|
else {
|
1790
1790
|
let u = -1;
|
1791
|
-
for (; (u = i.data.indexOf(
|
1792
|
-
l.push({ type: 7, index: r }), u +=
|
1791
|
+
for (; (u = i.data.indexOf(q, u + 1)) !== -1; )
|
1792
|
+
l.push({ type: 7, index: r }), u += q.length - 1;
|
1793
1793
|
}
|
1794
1794
|
r++;
|
1795
1795
|
}
|
1796
1796
|
}
|
1797
1797
|
static createElement(e, t) {
|
1798
|
-
const n =
|
1798
|
+
const n = ne.createElement("template");
|
1799
1799
|
return n.innerHTML = e, n;
|
1800
1800
|
}
|
1801
1801
|
}
|
1802
1802
|
function me(s, e, t = s, n) {
|
1803
1803
|
var o, a;
|
1804
|
-
if (e ===
|
1804
|
+
if (e === Q)
|
1805
1805
|
return e;
|
1806
1806
|
let i = n !== void 0 ? (o = t._$Co) == null ? void 0 : o[n] : t._$Cl;
|
1807
1807
|
const r = Ce(e) ? void 0 : e._$litDirective$;
|
@@ -1818,17 +1818,17 @@ class Ur {
|
|
1818
1818
|
return this._$AM._$AU;
|
1819
1819
|
}
|
1820
1820
|
u(e) {
|
1821
|
-
const { el: { content: t }, parts: n } = this._$AD, i = ((e == null ? void 0 : e.creationScope) ??
|
1822
|
-
|
1823
|
-
let r =
|
1821
|
+
const { el: { content: t }, parts: n } = this._$AD, i = ((e == null ? void 0 : e.creationScope) ?? ne).importNode(t, !0);
|
1822
|
+
ee.currentNode = i;
|
1823
|
+
let r = ee.nextNode(), o = 0, a = 0, l = n[0];
|
1824
1824
|
for (; l !== void 0; ) {
|
1825
1825
|
if (o === l.index) {
|
1826
1826
|
let c;
|
1827
1827
|
l.type === 2 ? c = new Re(r, r.nextSibling, this, e) : l.type === 1 ? c = new l.ctor(r, l.name, l.strings, this, e) : l.type === 6 && (c = new Br(r, this, e)), this._$AV.push(c), l = n[++a];
|
1828
1828
|
}
|
1829
|
-
o !== (l == null ? void 0 : l.index) && (r =
|
1829
|
+
o !== (l == null ? void 0 : l.index) && (r = ee.nextNode(), o++);
|
1830
1830
|
}
|
1831
|
-
return
|
1831
|
+
return ee.currentNode = ne, i;
|
1832
1832
|
}
|
1833
1833
|
p(e) {
|
1834
1834
|
let t = 0;
|
@@ -1856,7 +1856,7 @@ class Re {
|
|
1856
1856
|
return this._$AB;
|
1857
1857
|
}
|
1858
1858
|
_$AI(e, t = this) {
|
1859
|
-
e = me(this, e, t), Ce(e) ? e === g || e == null || e === "" ? (this._$AH !== g && this._$AR(), this._$AH = g) : e !== this._$AH && e !==
|
1859
|
+
e = me(this, e, t), Ce(e) ? e === g || e == null || e === "" ? (this._$AH !== g && this._$AR(), this._$AH = g) : e !== this._$AH && e !== Q && this._(e) : e._$litType$ !== void 0 ? this.$(e) : e.nodeType !== void 0 ? this.T(e) : Ir(e) ? this.k(e) : this._(e);
|
1860
1860
|
}
|
1861
1861
|
S(e) {
|
1862
1862
|
return this._$AA.parentNode.insertBefore(e, this._$AB);
|
@@ -1865,11 +1865,11 @@ class Re {
|
|
1865
1865
|
this._$AH !== e && (this._$AR(), this._$AH = this.S(e));
|
1866
1866
|
}
|
1867
1867
|
_(e) {
|
1868
|
-
this._$AH !== g && Ce(this._$AH) ? this._$AA.nextSibling.data = e : this.T(
|
1868
|
+
this._$AH !== g && Ce(this._$AH) ? this._$AA.nextSibling.data = e : this.T(ne.createTextNode(e)), this._$AH = e;
|
1869
1869
|
}
|
1870
1870
|
$(e) {
|
1871
1871
|
var r;
|
1872
|
-
const { values: t, _$litType$: n } = e, i = typeof n == "number" ? this._$AC(e) : (n.el === void 0 && (n.el = Ae.createElement(
|
1872
|
+
const { values: t, _$litType$: n } = e, i = typeof n == "number" ? this._$AC(e) : (n.el === void 0 && (n.el = Ae.createElement(Hs(n.h, n.h[0]), this.options)), n);
|
1873
1873
|
if (((r = this._$AH) == null ? void 0 : r._$AD) === i)
|
1874
1874
|
this._$AH.p(t);
|
1875
1875
|
else {
|
@@ -1915,12 +1915,12 @@ class ct {
|
|
1915
1915
|
const r = this.strings;
|
1916
1916
|
let o = !1;
|
1917
1917
|
if (r === void 0)
|
1918
|
-
e = me(this, e, t, 0), o = !Ce(e) || e !== this._$AH && e !==
|
1918
|
+
e = me(this, e, t, 0), o = !Ce(e) || e !== this._$AH && e !== Q, o && (this._$AH = e);
|
1919
1919
|
else {
|
1920
1920
|
const a = e;
|
1921
1921
|
let l, c;
|
1922
1922
|
for (e = r[0], l = 0; l < r.length - 1; l++)
|
1923
|
-
c = me(this, a[n + l], t, l), c ===
|
1923
|
+
c = me(this, a[n + l], t, l), c === Q && (c = this._$AH[l]), o || (o = !Ce(c) || c !== this._$AH[l]), c === g ? e = g : e !== g && (e += (c ?? "") + r[l + 1]), this._$AH[l] = c;
|
1924
1924
|
}
|
1925
1925
|
o && !i && this.j(e);
|
1926
1926
|
}
|
@@ -1936,7 +1936,7 @@ class jr extends ct {
|
|
1936
1936
|
this.element[this.name] = e === g ? void 0 : e;
|
1937
1937
|
}
|
1938
1938
|
}
|
1939
|
-
let
|
1939
|
+
let Dr = class extends ct {
|
1940
1940
|
constructor() {
|
1941
1941
|
super(...arguments), this.type = 4;
|
1942
1942
|
}
|
@@ -1944,12 +1944,12 @@ let Hr = class extends ct {
|
|
1944
1944
|
this.element.toggleAttribute(this.name, !!e && e !== g);
|
1945
1945
|
}
|
1946
1946
|
};
|
1947
|
-
class
|
1947
|
+
class Hr extends ct {
|
1948
1948
|
constructor(e, t, n, i, r) {
|
1949
1949
|
super(e, t, n, i, r), this.type = 5;
|
1950
1950
|
}
|
1951
1951
|
_$AI(e, t = this) {
|
1952
|
-
if ((e = me(this, e, t, 0) ?? g) ===
|
1952
|
+
if ((e = me(this, e, t, 0) ?? g) === Q)
|
1953
1953
|
return;
|
1954
1954
|
const n = this._$AH, i = e === g && n !== g || e.capture !== n.capture || e.once !== n.once || e.passive !== n.passive, r = e !== g && (n === g || i);
|
1955
1955
|
i && this.element.removeEventListener(this.name, this, n), r && this.element.addEventListener(this.name, this, e), this._$AH = e;
|
@@ -2008,7 +2008,7 @@ let k = class extends ae {
|
|
2008
2008
|
super.disconnectedCallback(), (e = this._$Do) == null || e.setConnected(!1);
|
2009
2009
|
}
|
2010
2010
|
render() {
|
2011
|
-
return
|
2011
|
+
return Q;
|
2012
2012
|
}
|
2013
2013
|
};
|
2014
2014
|
var ps;
|
@@ -2016,7 +2016,7 @@ k._$litElement$ = !0, k.finalized = !0, (ps = globalThis.litElementHydrateSuppor
|
|
2016
2016
|
const Ct = globalThis.litElementPolyfillSupport;
|
2017
2017
|
Ct == null || Ct({ LitElement: k });
|
2018
2018
|
(globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.0.4");
|
2019
|
-
const Fr = { name: "alert", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M32 60C47.464 60 60 47.464 60 32C60 16.536 47.464 4 32 4C16.536 4 4 16.536 4 32C4.01731 47.4568 16.5432 59.9827 32 60ZM32 8.30769C45.0849 8.30769 55.6923 18.9151 55.6923 32C55.6923 45.0849 45.0849 55.6923 32 55.6923C18.9151 55.6923 8.30769 45.0849 8.30769 32C8.32247 18.9212 18.9212 8.32247 32 8.30769Z"/><path d="M29.3491 38.6031V20.6807C29.348 19.8662 29.4903 19.0598 29.7675 18.3096C29.9945 17.6371 30.3484 17.0302 30.804 16.5322C31.1251 16.1524 31.5593 15.9246 32.0204 15.894C32.6852 15.894 33.3496 16.471 34.0134 17.625C34.3738 18.1337 34.5955 18.7525 34.6509 19.4042V37.3267C34.6509 37.9947 34.2454 38.6329 33.4345 39.2414C32.6632 39.835 31.7547 40.1521 30.825 40.1523C29.8423 40.1524 29.3503 39.636 29.3491 38.6031Z"/><path d="M33.66 44.6959C33.9649 45.0866 34.161 45.551 34.2284 46.0419C34.2284 46.5397 33.8893 47.0083 33.2109 47.4476C32.5638 47.8771 31.8043 48.1062 31.0275 48.1061C30.1902 48.1061 29.7716 47.7271 29.7716 46.9693C29.7703 46.3788 29.8874 45.7941 30.116 45.2496C30.3064 44.7579 30.6022 44.3138 30.9826 43.9487C31.2626 43.6591 31.6427 43.4875 32.045 43.4692C32.5635 43.4692 33.1019 43.8781 33.66 44.6959Z"/></svg>' },
|
2019
|
+
const Fr = { name: "alert", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M32 60C47.464 60 60 47.464 60 32C60 16.536 47.464 4 32 4C16.536 4 4 16.536 4 32C4.01731 47.4568 16.5432 59.9827 32 60ZM32 8.30769C45.0849 8.30769 55.6923 18.9151 55.6923 32C55.6923 45.0849 45.0849 55.6923 32 55.6923C18.9151 55.6923 8.30769 45.0849 8.30769 32C8.32247 18.9212 18.9212 8.32247 32 8.30769Z"/><path d="M29.3491 38.6031V20.6807C29.348 19.8662 29.4903 19.0598 29.7675 18.3096C29.9945 17.6371 30.3484 17.0302 30.804 16.5322C31.1251 16.1524 31.5593 15.9246 32.0204 15.894C32.6852 15.894 33.3496 16.471 34.0134 17.625C34.3738 18.1337 34.5955 18.7525 34.6509 19.4042V37.3267C34.6509 37.9947 34.2454 38.6329 33.4345 39.2414C32.6632 39.835 31.7547 40.1521 30.825 40.1523C29.8423 40.1524 29.3503 39.636 29.3491 38.6031Z"/><path d="M33.66 44.6959C33.9649 45.0866 34.161 45.551 34.2284 46.0419C34.2284 46.5397 33.8893 47.0083 33.2109 47.4476C32.5638 47.8771 31.8043 48.1062 31.0275 48.1061C30.1902 48.1061 29.7716 47.7271 29.7716 46.9693C29.7703 46.3788 29.8874 45.7941 30.116 45.2496C30.3064 44.7579 30.6022 44.3138 30.9826 43.9487C31.2626 43.6591 31.6427 43.4875 32.045 43.4692C32.5635 43.4692 33.1019 43.8781 33.66 44.6959Z"/></svg>' }, qr = { name: "check-circle-filled", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M32 4C16.536 4 4 16.536 4 32C4 47.464 16.536 60 32 60C47.464 60 60 47.464 60 32C59.9829 16.5431 47.4569 4.01712 32 4ZM44.5613 24.5793L31.6382 43.9639C31.2806 44.5011 30.7008 44.8493 30.0586 44.9126C29.988 44.9197 29.9171 44.9232 29.8462 44.9231C29.275 44.9229 28.7272 44.696 28.3233 44.2921L19.7079 35.6767C19.1639 35.1326 18.9514 34.3396 19.1505 33.5964C19.3497 32.8533 19.9302 32.2728 20.6734 32.0736C21.4166 31.8745 22.2095 32.087 22.7536 32.631L29.5117 39.3881L40.9772 22.1899C41.4016 21.5439 42.1396 21.1749 42.9111 21.2229C43.6825 21.2709 44.3691 21.7286 44.7101 22.4223C45.0511 23.1159 44.9944 23.9391 44.5613 24.5793Z"/></svg>' }, Zr = { name: "check-circle", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M31.9998 4C16.5358 4 3.99976 16.536 3.99976 32C3.99976 47.464 16.5358 60 31.9998 60C47.4637 60 59.9998 47.464 59.9998 32C59.9826 16.5431 47.4566 4.01712 31.9998 4ZM31.9998 55.6923C18.9149 55.6923 8.30745 45.0849 8.30745 32C8.30745 18.9151 18.9149 8.30769 31.9998 8.30769C45.0847 8.30769 55.6921 18.9151 55.6921 32C55.6773 45.0788 45.0785 55.6775 31.9998 55.6923ZM44.5611 24.5793L31.638 43.9639C31.2804 44.5011 30.7005 44.8493 30.0584 44.9126C29.9878 44.9197 29.9169 44.9232 29.8459 44.9231C29.2747 44.9229 28.727 44.696 28.3231 44.2921L19.7077 35.6767C19.1636 35.1326 18.9512 34.3396 19.1503 33.5964C19.3494 32.8533 19.9299 32.2728 20.6731 32.0736C21.4163 31.8745 22.2093 32.087 22.7534 32.631L29.5115 39.3881L40.9769 22.1899C41.4013 21.5439 42.1394 21.1749 42.9108 21.2229C43.6823 21.2709 44.3688 21.7286 44.7099 22.4223C45.0509 23.1159 44.9941 23.9391 44.5611 24.5793Z"/></svg>' }, Wr = { name: "chevron-down", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M53.0318 24.8653L33.5318 44.3653C33.1256 44.7717 32.5745 45.0001 31.9999 45.0001C31.4253 45.0001 30.8742 44.7717 30.468 44.3653L10.968 24.8653C10.122 24.0193 10.122 22.6476 10.968 21.8015C11.8141 20.9555 13.1858 20.9555 14.0318 21.8015L31.9999 39.7696L49.968 21.8015C50.8141 20.9555 52.1858 20.9555 53.0318 21.8015C53.8779 22.6476 53.8779 24.0193 53.0318 24.8653Z"/></svg>' }, Yr = { name: "close-circle", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M32 56C45.2548 56 56 45.2548 56 32C56 18.7452 45.2548 8 32 8C18.7452 8 8 18.7452 8 32C8 45.2548 18.7452 56 32 56ZM32 60C47.464 60 60 47.464 60 32C60 16.536 47.464 4 32 4C16.536 4 4 16.536 4 32C4 47.464 16.536 60 32 60Z"/><path d="M25.2772 22.695C24.5164 21.8942 23.2505 21.8617 22.4497 22.6225C21.6488 23.3833 21.6164 24.6492 22.3772 25.45L29.2411 32.6752L22.4773 39.795C21.7166 40.5958 21.749 41.8617 22.5498 42.6225C23.3507 43.3833 24.6166 43.3508 25.3773 42.55L31.9998 35.5791L38.6222 42.55C39.3829 43.3508 40.6488 43.3833 41.4497 42.6225C42.2505 41.8617 42.2829 40.5958 41.5222 39.795L34.7584 32.6752L41.6223 25.45C42.3831 24.6492 42.3507 23.3833 41.5498 22.6225C40.749 21.8617 39.4831 21.8942 38.7224 22.695L31.9998 29.7714L25.2772 22.695Z"/></svg>' }, jn = { name: "mute", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M51.4283 11.6761L53.1768 9.53891C53.9347 8.61282 53.7982 7.24774 52.8722 6.48993C51.9461 5.73211 50.581 5.86852 49.8232 6.79461L36.3333 23.2822V13.3972C36.3332 11.6447 35.2774 10.0648 33.6583 9.39418C32.0391 8.72356 30.1755 9.09425 28.9362 10.3334L18.1029 21.1668H14.6667C9.88247 21.1722 6.00547 25.0492 6 29.8334V34.1668C6.00547 38.951 9.88247 42.828 14.6667 42.8334H18.1029L19.3315 44.0621L10.8232 54.4613C10.0653 55.3874 10.2018 56.7525 11.1279 57.5103C12.0539 58.2681 13.419 58.1317 14.1768 57.2056L22.411 47.1416L28.9362 53.6668C30.1755 54.9059 32.0391 55.2766 33.6583 54.606C35.2774 53.9354 36.3332 52.3555 36.3333 50.603V30.1254L42.6092 22.4549C44.2201 25.3756 45.044 28.6649 45 32.0001C45.1184 36.1899 43.7698 40.2896 41.1872 43.5909C40.409 44.5001 40.5152 45.8679 41.4243 46.6461C42.3334 47.4243 43.7012 47.3183 44.4795 46.4093C47.7313 42.3208 49.4486 37.2227 49.3333 32.0001C49.403 27.3538 48.067 22.7949 45.5005 18.9211L48.6119 15.1182C52.019 20.0793 53.7867 25.9829 53.6667 32.0001C53.6667 39.0587 51.4873 45.6518 47.6872 50.0909C46.909 51.0001 47.0152 52.3679 47.9243 53.1461C48.8334 53.9243 50.2012 53.8183 50.9795 52.9093C55.4408 47.6968 58 40.0764 58 32.0001C58 24.21 55.6006 16.8662 51.4283 11.6761ZM19.8971 38.5H14.6667C12.2744 38.4977 10.3357 36.559 10.3333 34.1667V29.8334C10.3357 27.4411 12.2744 25.5024 14.6667 25.5H19.8971L32 13.3972V28.5784L22.089 40.6919L19.8971 38.5ZM31.9997 50.603L25.1682 43.7715L31.9997 35.4218V50.603Z"/></svg>' }, Qr = { name: "question", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M32 4C16.536 4 4 16.536 4 32C4 47.464 16.536 60 32 60C47.464 60 60 47.464 60 32C59.9827 16.5432 47.4568 4.01731 32 4ZM32 55.6923C18.9151 55.6923 8.30769 45.0849 8.30769 32C8.30769 18.9151 18.9151 8.30769 32 8.30769C45.0849 8.30769 55.6923 18.9151 55.6923 32C55.6775 45.0788 45.0788 55.6775 32 55.6923Z"/><path fill-rule="evenodd" clip-rule="evenodd" d="M31.9423 37.5723L36.311 32.9068L36.7354 32.4448C39.7555 29.1161 40.7645 27.0647 40.7645 24.5087C40.7645 23.1091 40.4251 21.7942 39.7041 20.6491C38.3044 18.3587 35.6323 16.9166 32.2816 16.9166C28.7565 16.9166 25.3125 18.7414 23.2581 21.6772L23.1201 21.8791C22.8232 22.3032 22.696 22.6849 22.696 22.9818C22.696 23.7029 23.926 25.9932 25.2833 25.9932C25.5378 25.9932 25.7922 25.9084 26.0467 25.7388C26.2588 25.5691 26.5981 25.2298 27.0647 24.7208C28.8885 22.6849 30.1185 21.9215 31.7726 21.9215C33.6813 21.9215 35.081 23.1939 35.081 24.8905C35.081 26.375 34.2751 27.7746 32.3664 29.8529L28.2523 34.2216C27.9554 34.6033 27.7857 34.9426 27.7857 35.282C27.7857 35.6213 27.9978 36.1726 28.4219 36.8937C29.0581 37.8692 29.7368 38.3782 30.4578 38.3782C30.9244 38.3782 31.3909 38.1237 31.9423 37.5723ZM30.882 47.4972C29.2278 47.4972 27.6585 44.7403 27.6585 43.6799C27.6585 42.1954 30.0761 40.6261 32.4089 40.6261C33.6389 40.6261 34.2751 41.1775 34.2751 42.3227C34.2751 44.0616 33.4692 45.843 32.4513 46.7761C31.9423 47.2427 31.4334 47.4972 30.882 47.4972Z"/></svg>' }, Kr = { name: "send", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M8.41642 6.29292C5.99705 5.18016 3.38612 7.41823 4.12858 9.96847L10.5427 32L4.12858 54.0315C3.38612 56.5818 5.99704 58.8198 8.41642 57.7071L58.1942 34.8125C60.6019 33.7051 60.6019 30.2949 58.1942 29.1875L8.41642 6.29292ZM14.2569 29.9351L8.74174 10.9913L49.9295 29.9351H14.2569ZM14.2568 34.0651L8.74174 53.0087L49.9291 34.0651H14.2568Z"/></svg>' }, Dn = { name: "volume", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M33.6578 9.3322C32.0391 8.65799 30.1735 9.02919 28.9362 10.2717L18.1029 21.105H14.6667C9.88247 21.1105 6.00547 24.9875 6 29.7717V34.105C6.00547 38.8892 9.88247 42.7662 14.6667 42.7717H18.1029L28.9362 53.605C30.1755 54.8442 32.0391 55.2149 33.6583 54.5442C35.2774 53.8736 36.3332 52.2937 36.3333 50.5412V13.3355C36.3365 11.5817 35.2794 10.0001 33.6578 9.3322ZM32 50.5411L19.8971 38.4382H14.6667C12.2744 38.4358 10.3357 36.4971 10.3333 34.1049V29.7716C10.3357 27.3793 12.2744 25.4406 14.6667 25.4382H19.8971L32 13.3353V50.5411ZM49.3334 31.9383C49.4487 37.161 47.7314 42.2591 44.4796 46.3475C43.7013 47.2565 42.3335 47.3625 41.4244 46.5843C40.5153 45.8061 40.4092 44.4383 41.1873 43.5291C43.7699 40.2278 45.1185 36.1282 45.0001 31.9383C45.1185 27.7485 43.7699 23.6488 41.1873 20.3475C40.4092 19.4383 40.5153 18.0705 41.4244 17.2923C42.3335 16.5141 43.7013 16.6201 44.4796 17.5291C47.7314 21.6176 49.4487 26.7157 49.3334 31.9383ZM58.0001 31.9383C58.0001 40.0147 55.441 47.635 50.9796 52.8475C50.2013 53.7565 48.8335 53.8625 47.9244 53.0843C47.0153 52.3061 46.9092 50.9383 47.6873 50.0291C51.4874 45.59 53.6668 38.9969 53.6668 31.9383C53.6668 24.8797 51.4874 18.2866 47.6873 13.8475C46.9092 12.9383 47.0153 11.5705 47.9244 10.7923C48.8335 10.0141 50.2013 10.1201 50.9796 11.0291C55.441 16.2416 58.0001 23.862 58.0001 31.9383Z"/></svg>' }, le = {
|
2020
2020
|
allRenderFn: !1,
|
2021
2021
|
cmpDidLoad: !0,
|
2022
2022
|
cmpDidUnload: !1,
|
@@ -2100,9 +2100,9 @@ const Fr = { name: "alert", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.
|
|
2100
2100
|
transformTagName: !1,
|
2101
2101
|
attachStyles: !0
|
2102
2102
|
};
|
2103
|
-
let ce, Bs, ht, Ns = !1, Xe = !1,
|
2104
|
-
const ut = typeof window < "u" ? window : {},
|
2105
|
-
},
|
2103
|
+
let ce, Bs, ht, Ns = !1, Xe = !1, en = !1, T = !1, Hn = null, jt = !1;
|
2104
|
+
const ut = typeof window < "u" ? window : {}, j = ut.document || { head: {} }, Fs = ut.HTMLElement || class {
|
2105
|
+
}, S = {
|
2106
2106
|
$flags$: 0,
|
2107
2107
|
$resourcesUrl$: "",
|
2108
2108
|
jmp: (s) => s(),
|
@@ -2113,7 +2113,7 @@ const ut = typeof window < "u" ? window : {}, z = ut.document || { head: {} }, F
|
|
2113
2113
|
}, Gr = /* @__PURE__ */ (() => {
|
2114
2114
|
let s = !1;
|
2115
2115
|
try {
|
2116
|
-
|
2116
|
+
j.addEventListener("e", null, Object.defineProperty({}, "passive", {
|
2117
2117
|
get() {
|
2118
2118
|
s = !0;
|
2119
2119
|
}
|
@@ -2127,10 +2127,10 @@ const ut = typeof window < "u" ? window : {}, z = ut.document || { head: {} }, F
|
|
2127
2127
|
} catch {
|
2128
2128
|
}
|
2129
2129
|
return !1;
|
2130
|
-
})(),
|
2130
|
+
})(), qs = (s, e, t, n) => {
|
2131
2131
|
t && t.map(([i, r, o]) => {
|
2132
2132
|
const a = eo(s, i), l = Vr(e, o), c = to(i);
|
2133
|
-
|
2133
|
+
S.ael(a, r, l, c), (e.$rmListeners$ = e.$rmListeners$ || []).push(() => S.rel(a, r, l, c));
|
2134
2134
|
});
|
2135
2135
|
}, Vr = (s, e) => (t) => {
|
2136
2136
|
try {
|
@@ -2138,31 +2138,31 @@ const ut = typeof window < "u" ? window : {}, z = ut.document || { head: {} }, F
|
|
2138
2138
|
} catch (n) {
|
2139
2139
|
Ie(n);
|
2140
2140
|
}
|
2141
|
-
}, eo = (s, e) => e & 4 ?
|
2141
|
+
}, eo = (s, e) => e & 4 ? j : e & 8 ? ut : e & 16 ? j.body : s, to = (s) => Gr ? {
|
2142
2142
|
passive: (s & 1) !== 0,
|
2143
2143
|
capture: (s & 2) !== 0
|
2144
|
-
} : (s & 2) !== 0, Bn = "http://www.w3.org/1999/xlink",
|
2144
|
+
} : (s & 2) !== 0, Bn = "http://www.w3.org/1999/xlink", se = (s, e = "") => () => {
|
2145
2145
|
}, Nn = /* @__PURE__ */ new WeakMap(), no = (s, e, t) => {
|
2146
2146
|
let n = et.get(s);
|
2147
2147
|
Jr && t ? (n = n || new CSSStyleSheet(), n.replace(e)) : n = e, et.set(s, n);
|
2148
2148
|
}, so = (s, e, t, n) => {
|
2149
|
-
let i =
|
2150
|
-
if (s = s.nodeType === 11 ? s :
|
2149
|
+
let i = Zs(e, t), r = et.get(i);
|
2150
|
+
if (s = s.nodeType === 11 ? s : j, r)
|
2151
2151
|
if (typeof r == "string") {
|
2152
2152
|
s = s.head || s;
|
2153
2153
|
let o = Nn.get(s), a;
|
2154
|
-
o || Nn.set(s, o = /* @__PURE__ */ new Set()), o.has(i) || (a =
|
2154
|
+
o || Nn.set(s, o = /* @__PURE__ */ new Set()), o.has(i) || (a = j.createElement("style"), a.innerHTML = r, s.insertBefore(a, s.querySelector("link")), o && o.add(i));
|
2155
2155
|
} else
|
2156
2156
|
s.adoptedStyleSheets.includes(r) || (s.adoptedStyleSheets = [...s.adoptedStyleSheets, r]);
|
2157
2157
|
return i;
|
2158
2158
|
}, io = (s) => {
|
2159
|
-
const e = s.$cmpMeta$, t = s.$hostElement$, n = e.$flags$, i =
|
2159
|
+
const e = s.$cmpMeta$, t = s.$hostElement$, n = e.$flags$, i = se("attachStyles", e.$tagName$), r = so(t.shadowRoot ? t.shadowRoot : t.getRootNode(), e, s.$modeName$);
|
2160
2160
|
n & 10 && (t["s-sc"] = r, t.classList.add(r + "-h"), n & 2 && t.classList.add(r + "-s")), i();
|
2161
|
-
},
|
2161
|
+
}, Zs = (s, e) => "sc-" + (e && s.$flags$ & 32 ? s.$tagName$ + "-" + e : s.$tagName$), ro = (s) => Io.map((e) => e(s)).find((e) => !!e), Fn = {}, oo = "http://www.w3.org/2000/svg", ao = "http://www.w3.org/1999/xhtml", lo = (s) => s != null, tn = (s) => (s = typeof s, s === "object" || s === "function"), de = (s, e, ...t) => {
|
2162
2162
|
let n = null, i = null, r = null, o = !1, a = !1, l = [];
|
2163
2163
|
const c = (u) => {
|
2164
2164
|
for (let p = 0; p < u.length; p++)
|
2165
|
-
n = u[p], Array.isArray(n) ? c(n) : n != null && typeof n != "boolean" && ((o = typeof s != "function" && !
|
2165
|
+
n = u[p], Array.isArray(n) ? c(n) : n != null && typeof n != "boolean" && ((o = typeof s != "function" && !tn(n)) && (n = String(n)), o && a ? l[l.length - 1].$text$ += n : l.push(o ? Je(null, n) : n), a = o);
|
2166
2166
|
};
|
2167
2167
|
if (c(t), e) {
|
2168
2168
|
e.key && (i = e.key), e.name && (r = e.name);
|
@@ -2184,10 +2184,10 @@ const ut = typeof window < "u" ? window : {}, z = ut.document || { head: {} }, F
|
|
2184
2184
|
$children$: null
|
2185
2185
|
};
|
2186
2186
|
return t.$attrs$ = null, t.$key$ = null, t.$name$ = null, t;
|
2187
|
-
},
|
2188
|
-
forEach: (s, e) => s.map(
|
2189
|
-
map: (s, e) => s.map(
|
2190
|
-
},
|
2187
|
+
}, nn = {}, co = (s) => s && s.$tag$ === nn, ho = {
|
2188
|
+
forEach: (s, e) => s.map(qn).forEach(e),
|
2189
|
+
map: (s, e) => s.map(qn).map(e).map(uo)
|
2190
|
+
}, qn = (s) => ({
|
2191
2191
|
vattrs: s.$attrs$,
|
2192
2192
|
vchildren: s.$children$,
|
2193
2193
|
vkey: s.$key$,
|
@@ -2201,7 +2201,7 @@ const ut = typeof window < "u" ? window : {}, z = ut.document || { head: {} }, F
|
|
2201
2201
|
}
|
2202
2202
|
const e = Je(s.vtag, s.vtext);
|
2203
2203
|
return e.$attrs$ = s.vattrs, e.$children$ = s.vchildren, e.$key$ = s.vkey, e.$name$ = s.vname, e;
|
2204
|
-
},
|
2204
|
+
}, Zn = (s, e, t, n, i, r) => {
|
2205
2205
|
if (t !== n) {
|
2206
2206
|
let o = Kn(s, e), a = e.toLowerCase();
|
2207
2207
|
if (e === "class") {
|
@@ -2216,9 +2216,9 @@ const ut = typeof window < "u" ? window : {}, z = ut.document || { head: {} }, F
|
|
2216
2216
|
if (e === "ref")
|
2217
2217
|
n && n(s);
|
2218
2218
|
else if (!s.__lookupSetter__(e) && e[0] === "o" && e[1] === "n")
|
2219
|
-
e[2] === "-" ? e = e.slice(3) : Kn(ut, a) ? e = a.slice(2) : e = a[2] + e.slice(3), t &&
|
2219
|
+
e[2] === "-" ? e = e.slice(3) : Kn(ut, a) ? e = a.slice(2) : e = a[2] + e.slice(3), t && S.rel(s, e, t, !1), n && S.ael(s, e, n, !1);
|
2220
2220
|
else {
|
2221
|
-
const l =
|
2221
|
+
const l = tn(n);
|
2222
2222
|
if ((o || l && n !== null) && !i)
|
2223
2223
|
try {
|
2224
2224
|
if (s.tagName.includes("-"))
|
@@ -2236,40 +2236,40 @@ const ut = typeof window < "u" ? window : {}, z = ut.document || { head: {} }, F
|
|
2236
2236
|
}, po = /\s/, Wn = (s) => s ? s.split(po) : [], Ws = (s, e, t, n) => {
|
2237
2237
|
const i = e.$elm$.nodeType === 11 && e.$elm$.host ? e.$elm$.host : e.$elm$, r = s && s.$attrs$ || Fn, o = e.$attrs$ || Fn;
|
2238
2238
|
for (n in r)
|
2239
|
-
n in o ||
|
2239
|
+
n in o || Zn(i, n, r[n], void 0, t, e.$flags$);
|
2240
2240
|
for (n in o)
|
2241
|
-
|
2241
|
+
Zn(i, n, r[n], o[n], t, e.$flags$);
|
2242
2242
|
}, Ve = (s, e, t, n) => {
|
2243
2243
|
let i = e.$children$[t], r = 0, o, a, l;
|
2244
|
-
if (Ns || (
|
2244
|
+
if (Ns || (en = !0, i.$tag$ === "slot" && (ce && n.classList.add(ce + "-s"), i.$flags$ |= i.$children$ ? (
|
2245
2245
|
// slot element has fallback content
|
2246
2246
|
2
|
2247
2247
|
) : (
|
2248
2248
|
// slot element does not have fallback content
|
2249
2249
|
1
|
2250
2250
|
))), i.$text$ !== null)
|
2251
|
-
o = i.$elm$ =
|
2251
|
+
o = i.$elm$ = j.createTextNode(i.$text$);
|
2252
2252
|
else if (i.$flags$ & 1)
|
2253
|
-
o = i.$elm$ =
|
2253
|
+
o = i.$elm$ = j.createTextNode("");
|
2254
2254
|
else {
|
2255
|
-
if (
|
2255
|
+
if (T || (T = i.$tag$ === "svg"), o = i.$elm$ = j.createElementNS(T ? oo : ao, i.$flags$ & 2 ? "slot-fb" : i.$tag$), T && i.$tag$ === "foreignObject" && (T = !1), Ws(null, i, T), lo(ce) && o["s-si"] !== ce && o.classList.add(o["s-si"] = ce), i.$children$)
|
2256
2256
|
for (r = 0; r < i.$children$.length; ++r)
|
2257
2257
|
a = Ve(s, i, r, o), a && o.appendChild(a);
|
2258
|
-
i.$tag$ === "svg" ?
|
2258
|
+
i.$tag$ === "svg" ? T = !1 : o.tagName === "foreignObject" && (T = !0);
|
2259
2259
|
}
|
2260
2260
|
return o["s-hn"] = ht, i.$flags$ & 3 && (o["s-sr"] = !0, o["s-cr"] = Bs, o["s-sn"] = i.$name$ || "", l = s && s.$children$ && s.$children$[t], l && l.$tag$ === i.$tag$ && s.$elm$ && Ee(s.$elm$, !1)), o;
|
2261
2261
|
}, Ee = (s, e) => {
|
2262
|
-
|
2262
|
+
S.$flags$ |= 1;
|
2263
2263
|
const t = s.childNodes;
|
2264
2264
|
for (let n = t.length - 1; n >= 0; n--) {
|
2265
2265
|
const i = t[n];
|
2266
|
-
i["s-hn"] !== ht && i["s-ol"] && (Ks(i).insertBefore(i,
|
2266
|
+
i["s-hn"] !== ht && i["s-ol"] && (Ks(i).insertBefore(i, sn(i)), i["s-ol"].remove(), i["s-ol"] = void 0, en = !0), e && Ee(i, e);
|
2267
2267
|
}
|
2268
|
-
|
2268
|
+
S.$flags$ &= -2;
|
2269
2269
|
}, Ys = (s, e, t, n, i, r) => {
|
2270
2270
|
let o = s["s-cr"] && s["s-cr"].parentNode || s, a;
|
2271
2271
|
for (o.shadowRoot && o.tagName === ht && (o = o.shadowRoot); i <= r; ++i)
|
2272
|
-
n[i] && (a = Ve(null, t, i, s), a && (n[i].$elm$ = a, o.insertBefore(a,
|
2272
|
+
n[i] && (a = Ve(null, t, i, s), a && (n[i].$elm$ = a, o.insertBefore(a, sn(e))));
|
2273
2273
|
}, Qs = (s, e, t, n, i) => {
|
2274
2274
|
for (; e <= t; ++e)
|
2275
2275
|
(n = s[e]) && (i = n.$elm$, Js(n), Xe = !0, i["s-ol"] ? i["s-ol"].remove() : Ee(i, !0), i.remove());
|
@@ -2284,13 +2284,13 @@ const ut = typeof window < "u" ? window : {}, z = ut.document || { head: {} }, F
|
|
2284
2284
|
p = n[++r];
|
2285
2285
|
else if (d == null)
|
2286
2286
|
d = n[--u];
|
2287
|
-
else if (
|
2287
|
+
else if (He(c, p))
|
2288
2288
|
he(c, p), c = e[++i], p = n[++r];
|
2289
|
-
else if (
|
2289
|
+
else if (He(h, d))
|
2290
2290
|
he(h, d), h = e[--l], d = n[--u];
|
2291
|
-
else if (
|
2291
|
+
else if (He(c, d))
|
2292
2292
|
(c.$tag$ === "slot" || d.$tag$ === "slot") && Ee(c.$elm$.parentNode, !1), he(c, d), s.insertBefore(c.$elm$, h.$elm$.nextSibling), c = e[++i], d = n[--u];
|
2293
|
-
else if (
|
2293
|
+
else if (He(h, p))
|
2294
2294
|
(c.$tag$ === "slot" || d.$tag$ === "slot") && Ee(h.$elm$.parentNode, !1), he(h, p), s.insertBefore(h.$elm$, c.$elm$), h = e[--l], p = n[++r];
|
2295
2295
|
else {
|
2296
2296
|
for (o = -1, a = i; a <= l; ++a)
|
@@ -2298,13 +2298,13 @@ const ut = typeof window < "u" ? window : {}, z = ut.document || { head: {} }, F
|
|
2298
2298
|
o = a;
|
2299
2299
|
break;
|
2300
2300
|
}
|
2301
|
-
o >= 0 ? (f = e[o], f.$tag$ !== p.$tag$ ? b = Ve(e && e[r], t, o, s) : (he(f, p), e[o] = void 0, b = f.$elm$), p = n[++r]) : (b = Ve(e && e[r], t, r, s), p = n[++r]), b && Ks(c.$elm$).insertBefore(b,
|
2301
|
+
o >= 0 ? (f = e[o], f.$tag$ !== p.$tag$ ? b = Ve(e && e[r], t, o, s) : (he(f, p), e[o] = void 0, b = f.$elm$), p = n[++r]) : (b = Ve(e && e[r], t, r, s), p = n[++r]), b && Ks(c.$elm$).insertBefore(b, sn(c.$elm$));
|
2302
2302
|
}
|
2303
2303
|
i > l ? Ys(s, n[u + 1] == null ? null : n[u + 1].$elm$, t, n, r, u) : r > u && Qs(e, i, l);
|
2304
|
-
},
|
2304
|
+
}, He = (s, e) => s.$tag$ === e.$tag$ ? s.$tag$ === "slot" ? s.$name$ === e.$name$ : s.$key$ === e.$key$ : !1, sn = (s) => s && s["s-ol"] || s, Ks = (s) => (s["s-ol"] ? s["s-ol"] : s).parentNode, he = (s, e) => {
|
2305
2305
|
const t = e.$elm$ = s.$elm$, n = s.$children$, i = e.$children$, r = e.$tag$, o = e.$text$;
|
2306
2306
|
let a;
|
2307
|
-
o === null ? (
|
2307
|
+
o === null ? (T = r === "svg" ? !0 : r === "foreignObject" ? !1 : T, r === "slot" || Ws(s, e, T), n !== null && i !== null ? fo(t, n, e, i) : i !== null ? (s.$text$ !== null && (t.textContent = ""), Ys(t, null, e, i, 0, i.length - 1)) : n !== null && Qs(n, 0, n.length - 1), T && r === "svg" && (T = !1)) : (a = t["s-cr"]) ? a.parentNode.textContent = o : s.$text$ !== o && (t.data = o);
|
2308
2308
|
}, Gs = (s) => {
|
2309
2309
|
let e = s.childNodes, t, n, i, r, o, a;
|
2310
2310
|
for (n = 0, i = e.length; n < i; n++)
|
@@ -2323,17 +2323,17 @@ const ut = typeof window < "u" ? window : {}, z = ut.document || { head: {} }, F
|
|
2323
2323
|
}
|
2324
2324
|
Gs(t);
|
2325
2325
|
}
|
2326
|
-
},
|
2326
|
+
}, O = [], Xs = (s) => {
|
2327
2327
|
let e, t, n, i, r, o, a = 0, l = s.childNodes, c = l.length;
|
2328
2328
|
for (; a < c; a++) {
|
2329
2329
|
if (e = l[a], e["s-sr"] && (t = e["s-cr"]) && t.parentNode)
|
2330
2330
|
for (n = t.parentNode.childNodes, i = e["s-sn"], o = n.length - 1; o >= 0; o--)
|
2331
|
-
t = n[o], !t["s-cn"] && !t["s-nr"] && t["s-hn"] !== e["s-hn"] && (Yn(t, i) ? (r =
|
2331
|
+
t = n[o], !t["s-cn"] && !t["s-nr"] && t["s-hn"] !== e["s-hn"] && (Yn(t, i) ? (r = O.find((h) => h.$nodeToRelocate$ === t), Xe = !0, t["s-sn"] = t["s-sn"] || i, r ? r.$slotRefNode$ = e : O.push({
|
2332
2332
|
$slotRefNode$: e,
|
2333
2333
|
$nodeToRelocate$: t
|
2334
|
-
}), t["s-sr"] &&
|
2335
|
-
Yn(h.$nodeToRelocate$, t["s-sn"]) && (r =
|
2336
|
-
})) :
|
2334
|
+
}), t["s-sr"] && O.map((h) => {
|
2335
|
+
Yn(h.$nodeToRelocate$, t["s-sn"]) && (r = O.find((u) => u.$nodeToRelocate$ === t), r && !h.$slotRefNode$ && (h.$slotRefNode$ = r.$slotRefNode$));
|
2336
|
+
})) : O.some((h) => h.$nodeToRelocate$ === t) || O.push({
|
2337
2337
|
$nodeToRelocate$: t
|
2338
2338
|
}));
|
2339
2339
|
e.nodeType === 1 && Xs(e);
|
@@ -2344,13 +2344,13 @@ const ut = typeof window < "u" ? window : {}, z = ut.document || { head: {} }, F
|
|
2344
2344
|
const t = s.$hostElement$, n = s.$cmpMeta$, i = s.$vnode$ || Je(null, null), r = co(e) ? e : de(null, null, e);
|
2345
2345
|
ht = t.tagName, n.$attrsToReflect$ && (r.$attrs$ = r.$attrs$ || {}, n.$attrsToReflect$.map(([o, a]) => r.$attrs$[a] = t[o])), r.$tag$ = null, r.$flags$ |= 4, s.$vnode$ = r, r.$elm$ = i.$elm$ = t.shadowRoot || t, ce = t["s-sc"], Bs = t["s-cr"], Ns = (n.$flags$ & 1) !== 0, Xe = !1, he(i, r);
|
2346
2346
|
{
|
2347
|
-
if (
|
2347
|
+
if (S.$flags$ |= 1, en) {
|
2348
2348
|
Xs(r.$elm$);
|
2349
2349
|
let o, a, l, c, h, u, p = 0;
|
2350
|
-
for (; p <
|
2351
|
-
o =
|
2352
|
-
for (p = 0; p <
|
2353
|
-
if (o =
|
2350
|
+
for (; p < O.length; p++)
|
2351
|
+
o = O[p], a = o.$nodeToRelocate$, a["s-ol"] || (l = j.createTextNode(""), l["s-nr"] = a, a.parentNode.insertBefore(a["s-ol"] = l, a));
|
2352
|
+
for (p = 0; p < O.length; p++)
|
2353
|
+
if (o = O[p], a = o.$nodeToRelocate$, o.$slotRefNode$) {
|
2354
2354
|
for (c = o.$slotRefNode$.parentNode, h = o.$slotRefNode$.nextSibling, l = a["s-ol"]; l = l.previousSibling; )
|
2355
2355
|
if (u = l["s-nr"], u && u["s-sn"] === a["s-sn"] && c === u.parentNode && (u = u.nextSibling, !u || !u["s-nr"])) {
|
2356
2356
|
h = u;
|
@@ -2360,7 +2360,7 @@ const ut = typeof window < "u" ? window : {}, z = ut.document || { head: {} }, F
|
|
2360
2360
|
} else
|
2361
2361
|
a.nodeType === 1 && (a.hidden = !0);
|
2362
2362
|
}
|
2363
|
-
Xe && Gs(r.$elm$),
|
2363
|
+
Xe && Gs(r.$elm$), S.$flags$ &= -2, O.length = 0;
|
2364
2364
|
}
|
2365
2365
|
}, mo = (s) => s, vo = (s, e, t) => {
|
2366
2366
|
const n = mo(s);
|
@@ -2373,27 +2373,27 @@ const ut = typeof window < "u" ? window : {}, z = ut.document || { head: {} }, F
|
|
2373
2373
|
})
|
2374
2374
|
};
|
2375
2375
|
}, bo = (s, e, t) => {
|
2376
|
-
const n =
|
2376
|
+
const n = S.ce(e, t);
|
2377
2377
|
return s.dispatchEvent(n), n;
|
2378
2378
|
}, $o = (s, e) => {
|
2379
2379
|
}, Vs = (s, e) => (s.$flags$ |= 16, $o(s, s.$ancestorComponent$), Uo(() => yo(s, e))), yo = (s, e) => {
|
2380
|
-
const t = s.$hostElement$, n =
|
2380
|
+
const t = s.$hostElement$, n = se("scheduleUpdate", s.$cmpMeta$.$tagName$), i = t;
|
2381
2381
|
let r;
|
2382
2382
|
return e ? r = fe(i, "componentWillLoad") : r = fe(i, "componentWillUpdate"), r = Qn(r, () => fe(i, "componentWillRender")), n(), Qn(r, () => xo(s, i, e));
|
2383
2383
|
}, xo = async (s, e, t) => {
|
2384
|
-
const n = s.$hostElement$, i =
|
2384
|
+
const n = s.$hostElement$, i = se("update", s.$cmpMeta$.$tagName$);
|
2385
2385
|
n["s-rc"], t && io(s);
|
2386
|
-
const r =
|
2386
|
+
const r = se("render", s.$cmpMeta$.$tagName$);
|
2387
2387
|
wo(s, e, n), r(), i(), ko(s);
|
2388
2388
|
}, wo = (s, e, t) => {
|
2389
2389
|
try {
|
2390
|
-
|
2390
|
+
Hn = e, e = e.render && e.render(), s.$flags$ &= -17, s.$flags$ |= 2, (le.hasRenderFn || le.reflect) && (le.vdomRender || le.reflect) && (le.hydrateServerSide || go(s, e));
|
2391
2391
|
} catch (a) {
|
2392
2392
|
Ie(a, s.$hostElement$);
|
2393
2393
|
}
|
2394
|
-
return
|
2394
|
+
return Hn = null, null;
|
2395
2395
|
}, ko = (s) => {
|
2396
|
-
const e = s.$cmpMeta$.$tagName$, t = s.$hostElement$, n =
|
2396
|
+
const e = s.$cmpMeta$.$tagName$, t = s.$hostElement$, n = se("postUpdate", e), i = t;
|
2397
2397
|
s.$ancestorComponent$, fe(i, "componentDidRender"), s.$flags$ & 64 ? (fe(i, "componentDidUpdate"), n()) : (s.$flags$ |= 64, fe(i, "componentDidLoad"), n());
|
2398
2398
|
}, fe = (s, e, t) => {
|
2399
2399
|
if (s && s[e])
|
@@ -2402,7 +2402,7 @@ const ut = typeof window < "u" ? window : {}, z = ut.document || { head: {} }, F
|
|
2402
2402
|
} catch (n) {
|
2403
2403
|
Ie(n);
|
2404
2404
|
}
|
2405
|
-
}, Qn = (s, e) => s && s.then ? s.then(e) : e(), _o = (s, e) => s != null && !
|
2405
|
+
}, Qn = (s, e) => s && s.then ? s.then(e) : e(), _o = (s, e) => s != null && !tn(s) ? e & 4 ? s === "false" ? !1 : s === "" || !!s : e & 2 ? parseFloat(s) : e & 1 ? String(s) : s : s, So = (s, e) => pt(s).$instanceValues$.get(e), Co = (s, e, t, n) => {
|
2406
2406
|
const i = pt(s), r = s, o = i.$instanceValues$.get(e), a = i.$flags$, l = r;
|
2407
2407
|
t = _o(t, n.$members$[e][0]);
|
2408
2408
|
const c = Number.isNaN(o) && Number.isNaN(t);
|
@@ -2445,7 +2445,7 @@ const ut = typeof window < "u" ? window : {}, z = ut.document || { head: {} }, F
|
|
2445
2445
|
{
|
2446
2446
|
const r = /* @__PURE__ */ new Map();
|
2447
2447
|
i.attributeChangedCallback = function(o, a, l) {
|
2448
|
-
|
2448
|
+
S.jmp(() => {
|
2449
2449
|
const c = r.get(o);
|
2450
2450
|
if (this.hasOwnProperty(c))
|
2451
2451
|
l = this[c], delete this[c];
|
@@ -2467,29 +2467,29 @@ const ut = typeof window < "u" ? window : {}, z = ut.document || { head: {} }, F
|
|
2467
2467
|
if (!(e.$flags$ & 32) && (i = s.constructor, e.$flags$ |= 32, customElements.whenDefined(t.$tagName$).then(() => e.$flags$ |= 128), i.style)) {
|
2468
2468
|
let o = i.style;
|
2469
2469
|
typeof o != "string" && (o = o[e.$modeName$ = ro(s)]);
|
2470
|
-
const a =
|
2470
|
+
const a = Zs(t, e.$modeName$);
|
2471
2471
|
if (!et.has(a)) {
|
2472
|
-
const l =
|
2472
|
+
const l = se("registerStyles", t.$tagName$);
|
2473
2473
|
no(a, o, !!(t.$flags$ & 1)), l();
|
2474
2474
|
}
|
2475
2475
|
}
|
2476
2476
|
e.$ancestorComponent$, (() => Vs(e, !0))();
|
2477
2477
|
}, To = (s) => {
|
2478
|
-
},
|
2479
|
-
if (!(
|
2480
|
-
const e = pt(s), t = e.$cmpMeta$, n =
|
2481
|
-
e.$flags$ & 1 ? (
|
2478
|
+
}, Lo = (s) => {
|
2479
|
+
if (!(S.$flags$ & 1)) {
|
2480
|
+
const e = pt(s), t = e.$cmpMeta$, n = se("connectedCallback", t.$tagName$);
|
2481
|
+
e.$flags$ & 1 ? (qs(s, e, t.$listeners$), To(e.$lazyInstance$)) : (e.$flags$ |= 1, t.$flags$ & 12 && Oo(s), t.$members$ && Object.entries(t.$members$).map(([i, [r]]) => {
|
2482
2482
|
if (r & 31 && s.hasOwnProperty(i)) {
|
2483
2483
|
const o = s[i];
|
2484
2484
|
delete s[i], s[i] = o;
|
2485
2485
|
}
|
2486
2486
|
}), Eo(s, e, t)), n();
|
2487
2487
|
}
|
2488
|
-
},
|
2489
|
-
const e = s["s-cr"] =
|
2488
|
+
}, Oo = (s) => {
|
2489
|
+
const e = s["s-cr"] = j.createComment("");
|
2490
2490
|
e["s-cn"] = !0, s.insertBefore(e, s.firstChild);
|
2491
2491
|
}, Po = (s) => {
|
2492
|
-
if (!(
|
2492
|
+
if (!(S.$flags$ & 1)) {
|
2493
2493
|
const e = pt(s);
|
2494
2494
|
e.$rmListeners$ && (e.$rmListeners$.map((t) => t()), e.$rmListeners$ = void 0);
|
2495
2495
|
}
|
@@ -2505,7 +2505,7 @@ const ut = typeof window < "u" ? window : {}, z = ut.document || { head: {} }, F
|
|
2505
2505
|
Ro(this, t);
|
2506
2506
|
},
|
2507
2507
|
connectedCallback() {
|
2508
|
-
|
2508
|
+
Lo(this), n && n.call(this);
|
2509
2509
|
},
|
2510
2510
|
disconnectedCallback() {
|
2511
2511
|
Po(this), i && i.call(this);
|
@@ -2524,9 +2524,9 @@ const ut = typeof window < "u" ? window : {}, z = ut.document || { head: {} }, F
|
|
2524
2524
|
$cmpMeta$: e,
|
2525
2525
|
$instanceValues$: /* @__PURE__ */ new Map()
|
2526
2526
|
};
|
2527
|
-
return
|
2527
|
+
return qs(s, t, e.$listeners$), ti.set(s, t);
|
2528
2528
|
}, Kn = (s, e) => e in s, Ie = (s, e) => (0, console.error)(s, e), et = /* @__PURE__ */ new Map(), Io = [], Gn = [], ni = [], Mo = (s, e) => (t) => {
|
2529
|
-
s.push(t),
|
2529
|
+
s.push(t), jt || (jt = !0, e && S.$flags$ & 4 ? zo(Dt) : S.raf(Dt));
|
2530
2530
|
}, Xn = (s) => {
|
2531
2531
|
for (let e = 0; e < s.length; e++)
|
2532
2532
|
try {
|
@@ -2535,8 +2535,8 @@ const ut = typeof window < "u" ? window : {}, z = ut.document || { head: {} }, F
|
|
2535
2535
|
Ie(t);
|
2536
2536
|
}
|
2537
2537
|
s.length = 0;
|
2538
|
-
},
|
2539
|
-
Xn(Gn), Xn(ni), (
|
2538
|
+
}, Dt = () => {
|
2539
|
+
Xn(Gn), Xn(ni), (jt = Gn.length > 0) && S.raf(Dt);
|
2540
2540
|
}, zo = (s) => Xr().then(s), Uo = /* @__PURE__ */ Mo(ni, !0), jo = (s = {}) => {
|
2541
2541
|
const { content: e = "", title: t, attributes: n = [] } = s;
|
2542
2542
|
let i = "", r = [
|
@@ -2545,13 +2545,13 @@ const ut = typeof window < "u" ? window : {}, z = ut.document || { head: {} }, F
|
|
2545
2545
|
...n
|
2546
2546
|
];
|
2547
2547
|
return t && (i = `<title>${t}</title>`), `<svg ${r.map((a) => `${a.name}="${a.value}"`).join(" ")}>${i}${e}</svg>`;
|
2548
|
-
},
|
2549
|
-
function
|
2548
|
+
}, Do = (s) => s.replace(/<(\/?)svg([^>]*)>/g, "").trim();
|
2549
|
+
function Ho(s) {
|
2550
2550
|
return `${s.getFullYear()}.${s.getMonth() + 1}`;
|
2551
2551
|
}
|
2552
2552
|
class Bo {
|
2553
2553
|
constructor(e) {
|
2554
|
-
this.voca_component = e, this.voca_added =
|
2554
|
+
this.voca_component = e, this.voca_added = Ho(/* @__PURE__ */ new Date());
|
2555
2555
|
}
|
2556
2556
|
}
|
2557
2557
|
const No = "telia-vst{display:none}", Fo = /* @__PURE__ */ ei(class extends Fs {
|
@@ -2562,7 +2562,7 @@ const No = "telia-vst{display:none}", Fo = /* @__PURE__ */ ei(class extends Fs {
|
|
2562
2562
|
this.vocaInternalUStats.emit(new Bo(this.dataTrackingId));
|
2563
2563
|
}
|
2564
2564
|
render() {
|
2565
|
-
return de(
|
2565
|
+
return de(nn, null);
|
2566
2566
|
}
|
2567
2567
|
static get style() {
|
2568
2568
|
return No;
|
@@ -2585,11 +2585,11 @@ si();
|
|
2585
2585
|
function Ht() {
|
2586
2586
|
return typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : { vocadsIcons: void 0, vocadsIconsRegistered: !1 };
|
2587
2587
|
}
|
2588
|
-
function
|
2588
|
+
function qo() {
|
2589
2589
|
if (typeof Ht().vocadsIcons !== void 0)
|
2590
2590
|
return Ht().vocadsIcons;
|
2591
2591
|
}
|
2592
|
-
function
|
2592
|
+
function Zo() {
|
2593
2593
|
return Ht().vocadsIconsRegistered;
|
2594
2594
|
}
|
2595
2595
|
const Wo = ".telia-icon{display:inline-block}.telia-icon__container{display:block;height:inherit}.telia-icon svg{display:block}.telia-icon--sm{height:calc(1.6rem * var(--voca-rem-multiplier));min-width:calc(1.6rem * var(--voca-rem-multiplier));width:calc(1.6rem * var(--voca-rem-multiplier))}.telia-icon--md{height:calc(2.4rem * var(--voca-rem-multiplier));min-width:calc(2.4rem * var(--voca-rem-multiplier));width:calc(2.4rem * var(--voca-rem-multiplier))}.telia-icon--lg{height:calc(3.2rem * var(--voca-rem-multiplier));min-width:calc(3.2rem * var(--voca-rem-multiplier));width:calc(3.2rem * var(--voca-rem-multiplier))}", Yo = /* @__PURE__ */ ei(class extends Fs {
|
@@ -2604,8 +2604,8 @@ const Wo = ".telia-icon{display:inline-block}.telia-icon__container{display:bloc
|
|
2604
2604
|
getSvgString() {
|
2605
2605
|
if (this.svg)
|
2606
2606
|
return this.svg;
|
2607
|
-
if (
|
2608
|
-
const s =
|
2607
|
+
if (Zo() && this.name) {
|
2608
|
+
const s = qo();
|
2609
2609
|
return s[this.name] ? s[this.name].svg : "";
|
2610
2610
|
}
|
2611
2611
|
return this.name && console.warn(this.name, "Icons bundle is not registered and will not be rendered. Check if you have registered icons bundle or use svg property"), "";
|
@@ -2617,11 +2617,11 @@ const Wo = ".telia-icon{display:inline-block}.telia-icon__container{display:bloc
|
|
2617
2617
|
{ name: "aria-hidden", value: "true" }
|
2618
2618
|
];
|
2619
2619
|
const t = jo({
|
2620
|
-
content:
|
2620
|
+
content: Do(s),
|
2621
2621
|
attributes: e,
|
2622
2622
|
title: this.allyTitle
|
2623
2623
|
});
|
2624
|
-
return de(
|
2624
|
+
return de(nn, { class: `telia-icon telia-icon--${this.size}` }, de("span", { "aria-label": this.allyTitle, class: "telia-icon__container", innerHTML: t }), de("telia-vst", { dataTrackingId: this.dataTrackingId }));
|
2625
2625
|
}
|
2626
2626
|
static get style() {
|
2627
2627
|
return Wo;
|
@@ -2653,7 +2653,7 @@ Qo();
|
|
2653
2653
|
* Copyright 2017 Google LLC
|
2654
2654
|
* SPDX-License-Identifier: BSD-3-Clause
|
2655
2655
|
*/
|
2656
|
-
const Ko = { attribute: !0, type: String, converter: Ke, reflect: !1, hasChanged:
|
2656
|
+
const Ko = { attribute: !0, type: String, converter: Ke, reflect: !1, hasChanged: Vt }, Go = (s = Ko, e, t) => {
|
2657
2657
|
const { kind: n, metadata: i } = t;
|
2658
2658
|
let r = globalThis.litPropertyMetadata.get(i);
|
2659
2659
|
if (r === void 0 && globalThis.litPropertyMetadata.set(i, r = /* @__PURE__ */ new Map()), r.set(t.name, s), n === "accessor") {
|
@@ -2685,7 +2685,7 @@ function w(s) {
|
|
2685
2685
|
* Copyright 2017 Google LLC
|
2686
2686
|
* SPDX-License-Identifier: BSD-3-Clause
|
2687
2687
|
*/
|
2688
|
-
function
|
2688
|
+
function E(s) {
|
2689
2689
|
return w({ ...s, state: !0, attribute: !1 });
|
2690
2690
|
}
|
2691
2691
|
/**
|
@@ -2700,7 +2700,7 @@ const Xo = (s) => s.strings === void 0;
|
|
2700
2700
|
* SPDX-License-Identifier: BSD-3-Clause
|
2701
2701
|
*/
|
2702
2702
|
const dt = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, ft = (s) => (...e) => ({ _$litDirective$: s, values: e });
|
2703
|
-
let
|
2703
|
+
let rn = class {
|
2704
2704
|
constructor(e) {
|
2705
2705
|
}
|
2706
2706
|
get _$AU() {
|
@@ -2764,7 +2764,7 @@ function Vo(s, e = !1, t = 0) {
|
|
2764
2764
|
const ea = (s) => {
|
2765
2765
|
s.type == dt.CHILD && (s._$AP ?? (s._$AP = Vo), s._$AQ ?? (s._$AQ = Jo));
|
2766
2766
|
};
|
2767
|
-
let ri = class extends
|
2767
|
+
let ri = class extends rn {
|
2768
2768
|
constructor() {
|
2769
2769
|
super(...arguments), this._$AN = void 0;
|
2770
2770
|
}
|
@@ -2793,10 +2793,10 @@ let ri = class extends sn {
|
|
2793
2793
|
* Copyright 2020 Google LLC
|
2794
2794
|
* SPDX-License-Identifier: BSD-3-Clause
|
2795
2795
|
*/
|
2796
|
-
const
|
2796
|
+
const B = () => new ta();
|
2797
2797
|
class ta {
|
2798
2798
|
}
|
2799
|
-
const At = /* @__PURE__ */ new WeakMap(),
|
2799
|
+
const At = /* @__PURE__ */ new WeakMap(), N = ft(class extends ri {
|
2800
2800
|
render(s) {
|
2801
2801
|
return g;
|
2802
2802
|
}
|
@@ -2829,7 +2829,7 @@ const At = /* @__PURE__ */ new WeakMap(), V = ft(class extends ri {
|
|
2829
2829
|
* Copyright 2018 Google LLC
|
2830
2830
|
* SPDX-License-Identifier: BSD-3-Clause
|
2831
2831
|
*/
|
2832
|
-
const Te = ft(class extends
|
2832
|
+
const Te = ft(class extends rn {
|
2833
2833
|
constructor(s) {
|
2834
2834
|
var e;
|
2835
2835
|
if (super(s), s.type !== dt.ATTRIBUTE || s.name !== "class" || ((e = s.strings) == null ? void 0 : e.length) > 2)
|
@@ -2853,7 +2853,7 @@ const Te = ft(class extends sn {
|
|
2853
2853
|
const o = !!e[r];
|
2854
2854
|
o === this.st.has(r) || (i = this.nt) != null && i.has(r) || (o ? (t.add(r), this.st.add(r)) : (t.remove(r), this.st.delete(r)));
|
2855
2855
|
}
|
2856
|
-
return
|
2856
|
+
return Q;
|
2857
2857
|
}
|
2858
2858
|
});
|
2859
2859
|
var na = Object.defineProperty, sa = Object.getOwnPropertyDescriptor, ia = (s, e, t, n) => {
|
@@ -2861,7 +2861,7 @@ var na = Object.defineProperty, sa = Object.getOwnPropertyDescriptor, ia = (s, e
|
|
2861
2861
|
(o = s[r]) && (i = (n ? o(e, t, i) : o(i)) || i);
|
2862
2862
|
return n && i && na(e, t, i), i;
|
2863
2863
|
};
|
2864
|
-
class
|
2864
|
+
class on extends k {
|
2865
2865
|
constructor() {
|
2866
2866
|
super(...arguments), this.anchor = "BottomRight";
|
2867
2867
|
}
|
@@ -2873,7 +2873,7 @@ class rn extends k {
|
|
2873
2873
|
return this.anchor === "BottomLeft" ? this.renderRoot.host.classList.add("bottom-left") : this.anchor === "BottomRight" && this.renderRoot.host.classList.add("bottom-right"), g;
|
2874
2874
|
}
|
2875
2875
|
}
|
2876
|
-
|
2876
|
+
on.styles = [
|
2877
2877
|
A`
|
2878
2878
|
:host {
|
2879
2879
|
position: fixed;
|
@@ -2894,7 +2894,7 @@ rn.styles = [
|
|
2894
2894
|
];
|
2895
2895
|
ia([
|
2896
2896
|
w({ attribute: !0 })
|
2897
|
-
],
|
2897
|
+
], on.prototype, "anchor", 2);
|
2898
2898
|
const ra = /* @__PURE__ */ new WeakMap();
|
2899
2899
|
let Jn = 0;
|
2900
2900
|
const Et = /* @__PURE__ */ new Map(), Vn = /* @__PURE__ */ new WeakSet(), es = () => new Promise((s) => requestAnimationFrame(s)), oa = [{ transform: "translateX(100%) scale(0)", opacity: 0 }], aa = [{ opacity: 0 }], ts = [{ opacity: 0 }, { opacity: 1 }], ns = (s, e) => {
|
@@ -3099,7 +3099,7 @@ class ha extends ri {
|
|
3099
3099
|
this.shouldLog && !this.isDisabled() && console.log(e, this.options.id, t);
|
3100
3100
|
}
|
3101
3101
|
}
|
3102
|
-
const
|
3102
|
+
const Bt = ft(ha), Be = (s, e, t) => {
|
3103
3103
|
s && t.style.setProperty(e, s);
|
3104
3104
|
}, oi = (s, e) => {
|
3105
3105
|
var t, n, i, r;
|
@@ -3122,13 +3122,16 @@ var ua = Object.defineProperty, pa = Object.getOwnPropertyDescriptor, gt = (s, e
|
|
3122
3122
|
(o = s[r]) && (i = (n ? o(e, t, i) : o(i)) || i);
|
3123
3123
|
return n && i && ua(e, t, i), i;
|
3124
3124
|
};
|
3125
|
-
class
|
3125
|
+
class re extends k {
|
3126
3126
|
constructor() {
|
3127
|
-
super(...arguments), this.active = !1, this.loaded = !1, this.containerRef =
|
3127
|
+
super(...arguments), this.active = !1, this.loaded = !1, this.containerRef = B(), this.widgetActive$ = new M(!1), this.componentIsDestroyed$ = new _();
|
3128
3128
|
}
|
3129
3129
|
async connectedCallback() {
|
3130
3130
|
super.connectedCallback(), this.icon = await this._renderSymbol(), this.loaded = !0, this._applyBranding();
|
3131
3131
|
}
|
3132
|
+
disconnectedCallback() {
|
3133
|
+
super.disconnectedCallback(), this.componentIsDestroyed$.next(), this.componentIsDestroyed$.complete();
|
3134
|
+
}
|
3132
3135
|
toggleActive() {
|
3133
3136
|
var e;
|
3134
3137
|
if (!((e = this.application) != null && e.root)) {
|
@@ -3137,7 +3140,7 @@ class ie extends k {
|
|
3137
3140
|
);
|
3138
3141
|
return;
|
3139
3142
|
}
|
3140
|
-
this.active = !this.active, this.active ? this.application.appendToDOM() : this.application.hide();
|
3143
|
+
this.active = !this.active, this.active ? (this.application.appendToDOM(), this.widgetActive$.next(!0)) : (this.application.hide(), this.widgetActive$.next(!1));
|
3141
3144
|
}
|
3142
3145
|
_applyBranding() {
|
3143
3146
|
var e;
|
@@ -3167,13 +3170,13 @@ class ie extends k {
|
|
3167
3170
|
}
|
3168
3171
|
render() {
|
3169
3172
|
var e, t, n, i;
|
3170
|
-
return m`<div class="trigger-container" ${
|
3173
|
+
return m`<div class="trigger-container" ${N(this.containerRef)}>
|
3171
3174
|
${!this.active && ((i = (n = (t = (e = this.application) == null ? void 0 : e.settings) == null ? void 0 : t.branding) == null ? void 0 : n.other) != null && i.showButtonLabel) ? m`
|
3172
3175
|
<button
|
3173
3176
|
label="${this.application.settings.branding.other.buttonLabelText ?? "Widget trigger"}"
|
3174
3177
|
class="trigger-label"
|
3175
3178
|
@click=${this.toggleActive}
|
3176
|
-
${
|
3179
|
+
${Bt({
|
3177
3180
|
keyframeOptions: {},
|
3178
3181
|
in: oa,
|
3179
3182
|
stabilizeOut: !0,
|
@@ -3225,7 +3228,7 @@ class ie extends k {
|
|
3225
3228
|
</div>`;
|
3226
3229
|
}
|
3227
3230
|
}
|
3228
|
-
|
3231
|
+
re.styles = [
|
3229
3232
|
A`
|
3230
3233
|
:host {
|
3231
3234
|
--voca-rem-multiplier: 0.625;
|
@@ -3302,6 +3305,8 @@ ie.styles = [
|
|
3302
3305
|
display: flex;
|
3303
3306
|
justify-content: center;
|
3304
3307
|
align-items: center;
|
3308
|
+
}
|
3309
|
+
.trigger-close svg path {
|
3305
3310
|
fill: var(--trigger-text-color, var(--text-on-primary-background));
|
3306
3311
|
}
|
3307
3312
|
|
@@ -3334,17 +3339,17 @@ ie.styles = [
|
|
3334
3339
|
];
|
3335
3340
|
gt([
|
3336
3341
|
w({ attribute: !1 })
|
3337
|
-
],
|
3342
|
+
], re.prototype, "application", 2);
|
3338
3343
|
gt([
|
3339
|
-
|
3340
|
-
],
|
3344
|
+
E()
|
3345
|
+
], re.prototype, "active", 2);
|
3341
3346
|
gt([
|
3342
|
-
|
3343
|
-
],
|
3347
|
+
E()
|
3348
|
+
], re.prototype, "loaded", 2);
|
3344
3349
|
gt([
|
3345
|
-
|
3346
|
-
],
|
3347
|
-
var da = Object.defineProperty, fa = Object.getOwnPropertyDescriptor,
|
3350
|
+
E()
|
3351
|
+
], re.prototype, "icon", 2);
|
3352
|
+
var da = Object.defineProperty, fa = Object.getOwnPropertyDescriptor, V = (s, e, t, n) => {
|
3348
3353
|
for (var i = n > 1 ? void 0 : n ? fa(e, t) : e, r = s.length - 1, o; r >= 0; r--)
|
3349
3354
|
(o = s[r]) && (i = (n ? o(e, t, i) : o(i)) || i);
|
3350
3355
|
return n && i && da(e, t, i), i;
|
@@ -3388,19 +3393,19 @@ const ai = (s) => {
|
|
3388
3393
|
box-sizing: border-box;
|
3389
3394
|
}
|
3390
3395
|
`
|
3391
|
-
],
|
3396
|
+
], V([
|
3392
3397
|
w()
|
3393
|
-
], e.prototype, "properties", 2),
|
3398
|
+
], e.prototype, "properties", 2), V([
|
3394
3399
|
w()
|
3395
|
-
], e.prototype, "context", 2),
|
3400
|
+
], e.prototype, "context", 2), V([
|
3396
3401
|
w()
|
3397
|
-
], e.prototype, "layout", 2),
|
3402
|
+
], e.prototype, "layout", 2), V([
|
3398
3403
|
w()
|
3399
|
-
], e.prototype, "name", 2),
|
3404
|
+
], e.prototype, "name", 2), V([
|
3400
3405
|
w()
|
3401
|
-
], e.prototype, "type", 2),
|
3406
|
+
], e.prototype, "type", 2), V([
|
3402
3407
|
w({ attribute: !1 })
|
3403
|
-
], e.prototype, "application", 2),
|
3408
|
+
], e.prototype, "application", 2), V([
|
3404
3409
|
w({ attribute: !1 })
|
3405
3410
|
], e.prototype, "parent", 2), e;
|
3406
3411
|
};
|
@@ -3428,7 +3433,7 @@ function* ga(s, e) {
|
|
3428
3433
|
yield e(n, t++);
|
3429
3434
|
}
|
3430
3435
|
}
|
3431
|
-
var
|
3436
|
+
var an = /* @__PURE__ */ ((s) => (s.Inline = "inline", s.Trigger = "trigger", s))(an || {});
|
3432
3437
|
/**
|
3433
3438
|
* @license
|
3434
3439
|
* Copyright 2021 Google LLC
|
@@ -3561,9 +3566,9 @@ var ya = Object.defineProperty, xa = Object.getOwnPropertyDescriptor, wa = (s, e
|
|
3561
3566
|
return n && i && ya(e, t, i), i;
|
3562
3567
|
};
|
3563
3568
|
const ka = "application";
|
3564
|
-
class
|
3569
|
+
class ln extends k {
|
3565
3570
|
constructor() {
|
3566
|
-
super(...arguments), this.nodes = [], this.wrapperRef =
|
3571
|
+
super(...arguments), this.nodes = [], this.wrapperRef = B();
|
3567
3572
|
}
|
3568
3573
|
addChild(e) {
|
3569
3574
|
e.parent = this, this.nodes.push(e);
|
@@ -3586,12 +3591,12 @@ class an extends k {
|
|
3586
3591
|
this.applyBranding(), this.applyStyles();
|
3587
3592
|
}
|
3588
3593
|
render() {
|
3589
|
-
return this.application.renderStrategy ===
|
3594
|
+
return this.application.renderStrategy === an.Trigger && (this.renderRoot.host.classList.add("floating"), this.application.anchor === "BottomLeft" ? this.renderRoot.host.classList.add("bottom-left") : this.application.anchor === "BottomRight" && this.renderRoot.host.classList.add("bottom-right")), m`<div class="widget-container" ${N(this.wrapperRef)}>
|
3590
3595
|
${ga(this.nodes, (e) => e)}
|
3591
3596
|
</div>`;
|
3592
3597
|
}
|
3593
3598
|
}
|
3594
|
-
|
3599
|
+
ln.styles = A`
|
3595
3600
|
:host {
|
3596
3601
|
--font-family: TeliaSans, Helvetica, Arial, Lucida Grande, sans-serif;
|
3597
3602
|
--spacing-xs: 0.2rem;
|
@@ -3636,6 +3641,7 @@ an.styles = A`
|
|
3636
3641
|
@media screen and (max-width: 800px) {
|
3637
3642
|
:host(.floating) {
|
3638
3643
|
inset: 0 0 95px 0;
|
3644
|
+
height: 100%;
|
3639
3645
|
}
|
3640
3646
|
}
|
3641
3647
|
@media screen and (min-width: 801px) {
|
@@ -3656,6 +3662,10 @@ an.styles = A`
|
|
3656
3662
|
:host(.floating) .widget-container {
|
3657
3663
|
box-shadow: rgba(0, 0, 0, 0.16) 0px 5px 40px;
|
3658
3664
|
border-radius: 0.7rem;
|
3665
|
+
|
3666
|
+
@media screen and (max-width: 800px) {
|
3667
|
+
border-radius: 0;
|
3668
|
+
}
|
3659
3669
|
}
|
3660
3670
|
|
3661
3671
|
* {
|
@@ -3694,13 +3704,14 @@ an.styles = A`
|
|
3694
3704
|
:host(.hidden) {
|
3695
3705
|
opacity: 0;
|
3696
3706
|
animation: slideDown 0.3s linear;
|
3707
|
+
pointer-events: none;
|
3697
3708
|
}
|
3698
3709
|
`;
|
3699
3710
|
wa([
|
3700
3711
|
w({ attribute: !1 }),
|
3701
3712
|
$a({ context: ka })
|
3702
|
-
],
|
3703
|
-
var _a = Object.defineProperty, Sa = Object.getOwnPropertyDescriptor,
|
3713
|
+
], ln.prototype, "application", 2);
|
3714
|
+
var _a = Object.defineProperty, Sa = Object.getOwnPropertyDescriptor, cn = (s, e, t, n) => {
|
3704
3715
|
for (var i = n > 1 ? void 0 : n ? Sa(e, t) : e, r = s.length - 1, o; r >= 0; r--)
|
3705
3716
|
(o = s[r]) && (i = (n ? o(e, t, i) : o(i)) || i);
|
3706
3717
|
return n && i && _a(e, t, i), i;
|
@@ -3730,8 +3741,8 @@ class Me extends k {
|
|
3730
3741
|
render() {
|
3731
3742
|
if (!this.widget || this.status !== "activated")
|
3732
3743
|
return g;
|
3733
|
-
if (this.widget.renderStrategy ===
|
3734
|
-
const e = new
|
3744
|
+
if (this.widget.renderStrategy === an.Trigger) {
|
3745
|
+
const e = new re();
|
3735
3746
|
return e.application = this.widget, e;
|
3736
3747
|
}
|
3737
3748
|
return this.widget.render();
|
@@ -3744,19 +3755,19 @@ Me.styles = [
|
|
3744
3755
|
}
|
3745
3756
|
`
|
3746
3757
|
];
|
3747
|
-
|
3758
|
+
cn([
|
3748
3759
|
w({ attribute: !0 })
|
3749
3760
|
], Me.prototype, "name", 2);
|
3750
|
-
|
3751
|
-
|
3761
|
+
cn([
|
3762
|
+
E()
|
3752
3763
|
], Me.prototype, "widget", 2);
|
3753
|
-
|
3754
|
-
|
3764
|
+
cn([
|
3765
|
+
E()
|
3755
3766
|
], Me.prototype, "status", 2);
|
3756
|
-
customElements.get("ace-trigger-slot") || customElements.define("ace-trigger-slot",
|
3757
|
-
customElements.get("ace-trigger") || customElements.define("ace-trigger",
|
3767
|
+
customElements.get("ace-trigger-slot") || customElements.define("ace-trigger-slot", on);
|
3768
|
+
customElements.get("ace-trigger") || customElements.define("ace-trigger", re);
|
3758
3769
|
customElements.get("ace-unresolved-component") || customElements.define("ace-unresolved-component", li);
|
3759
|
-
customElements.get("ace-wrapper") || customElements.define("ace-wrapper",
|
3770
|
+
customElements.get("ace-wrapper") || customElements.define("ace-wrapper", ln);
|
3760
3771
|
customElements.get("ace-widget") || customElements.define("ace-widget", Me);
|
3761
3772
|
class Ca {
|
3762
3773
|
constructor(e) {
|
@@ -3776,7 +3787,7 @@ class Ca {
|
|
3776
3787
|
}
|
3777
3788
|
class os {
|
3778
3789
|
constructor(e, t, n, i, r) {
|
3779
|
-
this.id = e, this.providerKey = t, this.providerOptions = n, this.component = r, this.provider$ = new
|
3790
|
+
this.id = e, this.providerKey = t, this.providerOptions = n, this.component = r, this.provider$ = new M(null), this.entries$ = new M([]), this.removeEntryAction$ = new _(), this.kill$ = new _(), this.isTyping$ = new M(!1), this.data$ = new M({}), this.complete$ = this.provider$.pipe(
|
3780
3791
|
pe((l) => l ? l.onComplete() : Pe)
|
3781
3792
|
);
|
3782
3793
|
const o = this._getProviderFactory(t);
|
@@ -3784,9 +3795,9 @@ class os {
|
|
3784
3795
|
throw new Error(`No provider with key "${t}" was found.`);
|
3785
3796
|
this.data$.next(i);
|
3786
3797
|
const a = o(this.component);
|
3787
|
-
this.provider$.next(a), a.actions().pipe(
|
3798
|
+
this.provider$.next(a), a.actions().pipe(zt(this.kill$)).subscribe((l) => {
|
3788
3799
|
this.write(l);
|
3789
|
-
}), a.isTyping().pipe(
|
3800
|
+
}), a.isTyping().pipe(zt(this.kill$)).subscribe((l) => {
|
3790
3801
|
this.isTyping$.next(l);
|
3791
3802
|
});
|
3792
3803
|
}
|
@@ -3832,7 +3843,7 @@ class os {
|
|
3832
3843
|
}
|
3833
3844
|
class Aa {
|
3834
3845
|
constructor(e) {
|
3835
|
-
this.component = e, this.currentSession$ = new
|
3846
|
+
this.component = e, this.currentSession$ = new M(null), this.sessions = [], this.storage = null, Qe(e, "handover").subscribe((t) => {
|
3836
3847
|
const n = this._createNewSession(
|
3837
3848
|
t.detail.providerKey,
|
3838
3849
|
t.detail.providerOptions
|
@@ -3930,7 +3941,7 @@ class Aa {
|
|
3930
3941
|
}
|
3931
3942
|
class Ea {
|
3932
3943
|
constructor(e, t) {
|
3933
|
-
this.state$ = e, this.component = t, this.entries$ = new
|
3944
|
+
this.state$ = e, this.component = t, this.entries$ = new M([]), this.session = () => this.session$, this.isTyping = () => this.isTyping$, this.entries = () => this.entries$.asObservable(), this.sessionService = new Aa(this.component), this.session$ = this.sessionService.currentSession(), this.isTyping$ = this.session$.pipe(
|
3934
3945
|
pe((n) => n ? n.provider$.pipe(
|
3935
3946
|
pe((i) => i ? i.isTyping() : It(!1))
|
3936
3947
|
) : It(!1))
|
@@ -3960,7 +3971,7 @@ class Ea {
|
|
3960
3971
|
pe((e) => {
|
3961
3972
|
if (!e)
|
3962
3973
|
return Pe;
|
3963
|
-
const t = e.removeEntryAction$.pipe(
|
3974
|
+
const t = e.removeEntryAction$.pipe(Ut(this.entries$)).pipe(
|
3964
3975
|
Ye(([i, r]) => r.filter((o) => o.id !== i.id))
|
3965
3976
|
), n = e.entries().pipe(
|
3966
3977
|
Ye((i) => {
|
@@ -3979,12 +3990,12 @@ class Ea {
|
|
3979
3990
|
(e = this.sessionService) == null || e.startSession();
|
3980
3991
|
}
|
3981
3992
|
}
|
3982
|
-
var Ta = Object.defineProperty,
|
3983
|
-
for (var i = n > 1 ? void 0 : n ?
|
3993
|
+
var Ta = Object.defineProperty, La = Object.getOwnPropertyDescriptor, Oa = (s, e, t, n) => {
|
3994
|
+
for (var i = n > 1 ? void 0 : n ? La(e, t) : e, r = s.length - 1, o; r >= 0; r--)
|
3984
3995
|
(o = s[r]) && (i = (n ? o(e, t, i) : o(i)) || i);
|
3985
3996
|
return n && i && Ta(e, t, i), i;
|
3986
3997
|
};
|
3987
|
-
class
|
3998
|
+
class hn extends k {
|
3988
3999
|
connectedCallback() {
|
3989
4000
|
var e;
|
3990
4001
|
super.connectedCallback(), (e = this.entry.didUpdate) == null || e.subscribe(() => {
|
@@ -4006,13 +4017,13 @@ class cn extends k {
|
|
4006
4017
|
}
|
4007
4018
|
_renderDeliveryStatus(e) {
|
4008
4019
|
return e === "delivered" ? m`<telia-icon
|
4009
|
-
svg=${
|
4020
|
+
svg=${qr.svg}
|
4010
4021
|
size="sm"
|
4011
4022
|
></telia-icon>` : e === "failed" ? m`<telia-icon
|
4012
4023
|
svg=${Fr.svg}
|
4013
4024
|
size="sm"
|
4014
4025
|
title="Message could not be delivered"
|
4015
|
-
></telia-icon>` : m`<telia-icon svg=${
|
4026
|
+
></telia-icon>` : m`<telia-icon svg=${Zr.svg} size="sm"></telia-icon>`;
|
4016
4027
|
}
|
4017
4028
|
_dispatchEntryAction(e) {
|
4018
4029
|
this.entry.actions$.next(e.detail);
|
@@ -4020,7 +4031,7 @@ class cn extends k {
|
|
4020
4031
|
render() {
|
4021
4032
|
var e, t;
|
4022
4033
|
switch (this.entry.type) {
|
4023
|
-
case
|
4034
|
+
case Z.System:
|
4024
4035
|
return m`
|
4025
4036
|
<div class="conversation-system-message">
|
4026
4037
|
${this.entry.messages.map(
|
@@ -4038,7 +4049,7 @@ class cn extends k {
|
|
4038
4049
|
<span>${this._getTimestamp(this.entry.timestamp)}</span>
|
4039
4050
|
</div>
|
4040
4051
|
`;
|
4041
|
-
case
|
4052
|
+
case Z.Agent:
|
4042
4053
|
return m`<div
|
4043
4054
|
class=${Te({
|
4044
4055
|
"conversation-agent-message": !0,
|
@@ -4067,7 +4078,7 @@ class cn extends k {
|
|
4067
4078
|
)}
|
4068
4079
|
</div>
|
4069
4080
|
</div>`;
|
4070
|
-
case
|
4081
|
+
case Z.User:
|
4071
4082
|
return m`<div
|
4072
4083
|
class=${Te({
|
4073
4084
|
"conversation-user-message": !0,
|
@@ -4098,7 +4109,7 @@ class cn extends k {
|
|
4098
4109
|
}
|
4099
4110
|
}
|
4100
4111
|
}
|
4101
|
-
|
4112
|
+
hn.styles = [
|
4102
4113
|
A`
|
4103
4114
|
:host {
|
4104
4115
|
box-sizing: border-box;
|
@@ -4216,9 +4227,9 @@ cn.styles = [
|
|
4216
4227
|
}
|
4217
4228
|
`
|
4218
4229
|
];
|
4219
|
-
|
4230
|
+
Oa([
|
4220
4231
|
w({ attribute: !1 })
|
4221
|
-
],
|
4232
|
+
], hn.prototype, "entry", 2);
|
4222
4233
|
var Pa = Object.defineProperty, Ra = Object.getOwnPropertyDescriptor, ci = (s, e, t, n) => {
|
4223
4234
|
for (var i = n > 1 ? void 0 : n ? Ra(e, t) : e, r = s.length - 1, o; r >= 0; r--)
|
4224
4235
|
(o = s[r]) && (i = (n ? o(e, t, i) : o(i)) || i);
|
@@ -4238,7 +4249,7 @@ class mt extends k {
|
|
4238
4249
|
(e) => m`<div class="conversation-entry" tabindex="-1">
|
4239
4250
|
<conversation-entry
|
4240
4251
|
.entry=${e}
|
4241
|
-
${
|
4252
|
+
${Bt({
|
4242
4253
|
keyframeOptions: {},
|
4243
4254
|
in: ts,
|
4244
4255
|
stabilizeOut: !0,
|
@@ -4249,7 +4260,7 @@ class mt extends k {
|
|
4249
4260
|
</div>`
|
4250
4261
|
)}
|
4251
4262
|
${this.loading ? m`<ace-typing-state
|
4252
|
-
${
|
4263
|
+
${Bt({
|
4253
4264
|
keyframeOptions: {},
|
4254
4265
|
in: ts,
|
4255
4266
|
out: aa,
|
@@ -4296,7 +4307,7 @@ var Ma = Object.defineProperty, za = Object.getOwnPropertyDescriptor, Ua = (s, e
|
|
4296
4307
|
(o = s[r]) && (i = (n ? o(e, t, i) : o(i)) || i);
|
4297
4308
|
return n && i && Ma(e, t, i), i;
|
4298
4309
|
};
|
4299
|
-
class
|
4310
|
+
class un extends k {
|
4300
4311
|
render() {
|
4301
4312
|
return m`
|
4302
4313
|
<div class="message-group">
|
@@ -4325,7 +4336,7 @@ class hn extends k {
|
|
4325
4336
|
`;
|
4326
4337
|
}
|
4327
4338
|
}
|
4328
|
-
|
4339
|
+
un.styles = [
|
4329
4340
|
A`
|
4330
4341
|
:host {
|
4331
4342
|
box-sizing: border-box;
|
@@ -4343,7 +4354,7 @@ hn.styles = [
|
|
4343
4354
|
];
|
4344
4355
|
Ua([
|
4345
4356
|
w({ attribute: !1 })
|
4346
|
-
],
|
4357
|
+
], un.prototype, "group", 2);
|
4347
4358
|
class hi extends k {
|
4348
4359
|
render() {
|
4349
4360
|
return m`<div class="container">
|
@@ -4395,7 +4406,7 @@ hi.styles = [
|
|
4395
4406
|
* Copyright 2017 Google LLC
|
4396
4407
|
* SPDX-License-Identifier: BSD-3-Clause
|
4397
4408
|
*/
|
4398
|
-
class
|
4409
|
+
class Nt extends rn {
|
4399
4410
|
constructor(e) {
|
4400
4411
|
if (super(e), this.it = g, e.type !== dt.CHILD)
|
4401
4412
|
throw Error(this.constructor.directiveName + "() can only be used in child bindings");
|
@@ -4403,7 +4414,7 @@ class Bt extends sn {
|
|
4403
4414
|
render(e) {
|
4404
4415
|
if (e === g || e == null)
|
4405
4416
|
return this._t = void 0, this.it = e;
|
4406
|
-
if (e ===
|
4417
|
+
if (e === Q)
|
4407
4418
|
return e;
|
4408
4419
|
if (typeof e != "string")
|
4409
4420
|
throw Error(this.constructor.directiveName + "() called with a non-string value");
|
@@ -4414,21 +4425,21 @@ class Bt extends sn {
|
|
4414
4425
|
return t.raw = t, this._t = { _$litType$: this.constructor.resultType, strings: t, values: [] };
|
4415
4426
|
}
|
4416
4427
|
}
|
4417
|
-
|
4418
|
-
const ja = ft(
|
4419
|
-
var
|
4420
|
-
for (var i = n > 1 ? void 0 : n ?
|
4428
|
+
Nt.directiveName = "unsafeHTML", Nt.resultType = 1;
|
4429
|
+
const ja = ft(Nt);
|
4430
|
+
var Da = Object.defineProperty, Ha = Object.getOwnPropertyDescriptor, Ba = (s, e, t, n) => {
|
4431
|
+
for (var i = n > 1 ? void 0 : n ? Ha(e, t) : e, r = s.length - 1, o; r >= 0; r--)
|
4421
4432
|
(o = s[r]) && (i = (n ? o(e, t, i) : o(i)) || i);
|
4422
|
-
return n && i &&
|
4433
|
+
return n && i && Da(e, t, i), i;
|
4423
4434
|
};
|
4424
|
-
class
|
4435
|
+
class pn extends k {
|
4425
4436
|
render() {
|
4426
4437
|
return m`<div class="message-type-html">
|
4427
4438
|
${ja(this.message.content)}
|
4428
4439
|
</div>`;
|
4429
4440
|
}
|
4430
4441
|
}
|
4431
|
-
|
4442
|
+
pn.styles = [
|
4432
4443
|
A`
|
4433
4444
|
:host {
|
4434
4445
|
box-sizing: border-box;
|
@@ -4454,8 +4465,8 @@ un.styles = [
|
|
4454
4465
|
];
|
4455
4466
|
Ba([
|
4456
4467
|
w({ attribute: !1 })
|
4457
|
-
],
|
4458
|
-
function
|
4468
|
+
], pn.prototype, "message", 2);
|
4469
|
+
function dn() {
|
4459
4470
|
return {
|
4460
4471
|
async: !1,
|
4461
4472
|
breaks: !1,
|
@@ -4469,18 +4480,18 @@ function pn() {
|
|
4469
4480
|
walkTokens: null
|
4470
4481
|
};
|
4471
4482
|
}
|
4472
|
-
let
|
4483
|
+
let oe = dn();
|
4473
4484
|
function ui(s) {
|
4474
|
-
|
4485
|
+
oe = s;
|
4475
4486
|
}
|
4476
|
-
const pi = /[&<>"']/, Na = new RegExp(pi.source, "g"), di = /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, Fa = new RegExp(di.source, "g"),
|
4487
|
+
const pi = /[&<>"']/, Na = new RegExp(pi.source, "g"), di = /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, Fa = new RegExp(di.source, "g"), qa = {
|
4477
4488
|
"&": "&",
|
4478
4489
|
"<": "<",
|
4479
4490
|
">": ">",
|
4480
4491
|
'"': """,
|
4481
4492
|
"'": "'"
|
4482
|
-
}, as = (s) =>
|
4483
|
-
function
|
4493
|
+
}, as = (s) => qa[s];
|
4494
|
+
function L(s, e) {
|
4484
4495
|
if (e) {
|
4485
4496
|
if (pi.test(s))
|
4486
4497
|
return s.replace(Na, as);
|
@@ -4488,9 +4499,9 @@ function T(s, e) {
|
|
4488
4499
|
return s.replace(Fa, as);
|
4489
4500
|
return s;
|
4490
4501
|
}
|
4491
|
-
const
|
4502
|
+
const Za = /&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;
|
4492
4503
|
function Wa(s) {
|
4493
|
-
return s.replace(
|
4504
|
+
return s.replace(Za, (e, t) => (t = t.toLowerCase(), t === "colon" ? ":" : t.charAt(0) === "#" ? t.charAt(1) === "x" ? String.fromCharCode(parseInt(t.substring(2), 16)) : String.fromCharCode(+t.substring(1)) : ""));
|
4494
4505
|
}
|
4495
4506
|
const Ya = /(^|[^\[])\^/g;
|
4496
4507
|
function $(s, e) {
|
@@ -4562,7 +4573,7 @@ function Qa(s, e) {
|
|
4562
4573
|
return -1;
|
4563
4574
|
}
|
4564
4575
|
function hs(s, e, t, n) {
|
4565
|
-
const i = e.href, r = e.title ?
|
4576
|
+
const i = e.href, r = e.title ? L(e.title) : null, o = s[1].replace(/\\([\[\]])/g, "$1");
|
4566
4577
|
if (s[0].charAt(0) !== "!") {
|
4567
4578
|
n.state.inLink = !0;
|
4568
4579
|
const a = {
|
@@ -4580,7 +4591,7 @@ function hs(s, e, t, n) {
|
|
4580
4591
|
raw: t,
|
4581
4592
|
href: i,
|
4582
4593
|
title: r,
|
4583
|
-
text:
|
4594
|
+
text: L(o)
|
4584
4595
|
};
|
4585
4596
|
}
|
4586
4597
|
function Ka(s, e) {
|
@@ -4605,7 +4616,7 @@ class nt {
|
|
4605
4616
|
x(this, "rules");
|
4606
4617
|
// set by the lexer
|
4607
4618
|
x(this, "lexer");
|
4608
|
-
this.options = e ||
|
4619
|
+
this.options = e || oe;
|
4609
4620
|
}
|
4610
4621
|
space(e) {
|
4611
4622
|
const t = this.rules.block.newline.exec(e);
|
@@ -4710,17 +4721,17 @@ class nt {
|
|
4710
4721
|
let b = !1;
|
4711
4722
|
if (!u && /^ *$/.test(p) && (a += p + `
|
4712
4723
|
`, e = e.substring(p.length + 1), h = !0), !h) {
|
4713
|
-
const H = new RegExp(`^ {0,${Math.min(3, d - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),
|
4724
|
+
const H = new RegExp(`^ {0,${Math.min(3, d - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`), X = new RegExp(`^ {0,${Math.min(3, d - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`), xn = new RegExp(`^ {0,${Math.min(3, d - 1)}}(?:\`\`\`|~~~)`), wn = new RegExp(`^ {0,${Math.min(3, d - 1)}}#`);
|
4714
4725
|
for (; e; ) {
|
4715
4726
|
const $t = e.split(`
|
4716
4727
|
`, 1)[0];
|
4717
|
-
if (p = $t, this.options.pedantic && (p = p.replace(/^ {1,4}(?=( {4})*[^ ])/g, " ")),
|
4728
|
+
if (p = $t, this.options.pedantic && (p = p.replace(/^ {1,4}(?=( {4})*[^ ])/g, " ")), xn.test(p) || wn.test(p) || H.test(p) || X.test(e))
|
4718
4729
|
break;
|
4719
4730
|
if (p.search(/[^ ]/) >= d || !p.trim())
|
4720
4731
|
l += `
|
4721
4732
|
` + p.slice(d);
|
4722
4733
|
else {
|
4723
|
-
if (b || u.search(/[^ ]/) >= 4 ||
|
4734
|
+
if (b || u.search(/[^ ]/) >= 4 || xn.test(u) || wn.test(u) || X.test(u))
|
4724
4735
|
break;
|
4725
4736
|
l += `
|
4726
4737
|
` + p;
|
@@ -4730,12 +4741,12 @@ class nt {
|
|
4730
4741
|
}
|
4731
4742
|
}
|
4732
4743
|
r.loose || (c ? r.loose = !0 : /\n *\n *$/.test(a) && (c = !0));
|
4733
|
-
let f = null,
|
4734
|
-
this.options.gfm && (f = /^\[[ xX]\] /.exec(l), f && (
|
4744
|
+
let f = null, I;
|
4745
|
+
this.options.gfm && (f = /^\[[ xX]\] /.exec(l), f && (I = f[0] !== "[ ] ", l = l.replace(/^\[[ xX]\] +/, ""))), r.items.push({
|
4735
4746
|
type: "list_item",
|
4736
4747
|
raw: a,
|
4737
4748
|
task: !!f,
|
4738
|
-
checked:
|
4749
|
+
checked: I,
|
4739
4750
|
loose: !1,
|
4740
4751
|
text: l,
|
4741
4752
|
tokens: []
|
@@ -4845,7 +4856,7 @@ class nt {
|
|
4845
4856
|
return {
|
4846
4857
|
type: "escape",
|
4847
4858
|
raw: t[0],
|
4848
|
-
text:
|
4859
|
+
text: L(t[1])
|
4849
4860
|
};
|
4850
4861
|
}
|
4851
4862
|
tag(e) {
|
@@ -4950,7 +4961,7 @@ class nt {
|
|
4950
4961
|
if (t) {
|
4951
4962
|
let n = t[2].replace(/\n/g, " ");
|
4952
4963
|
const i = /[^ ]/.test(n), r = /^ /.test(n) && / $/.test(n);
|
4953
|
-
return i && r && (n = n.substring(1, n.length - 1)), n =
|
4964
|
+
return i && r && (n = n.substring(1, n.length - 1)), n = L(n, !0), {
|
4954
4965
|
type: "codespan",
|
4955
4966
|
raw: t[0],
|
4956
4967
|
text: n
|
@@ -4979,7 +4990,7 @@ class nt {
|
|
4979
4990
|
const t = this.rules.inline.autolink.exec(e);
|
4980
4991
|
if (t) {
|
4981
4992
|
let n, i;
|
4982
|
-
return t[2] === "@" ? (n =
|
4993
|
+
return t[2] === "@" ? (n = L(t[1]), i = "mailto:" + n) : (n = L(t[1]), i = n), {
|
4983
4994
|
type: "link",
|
4984
4995
|
raw: t[0],
|
4985
4996
|
text: n,
|
@@ -5000,13 +5011,13 @@ class nt {
|
|
5000
5011
|
if (t = this.rules.inline.url.exec(e)) {
|
5001
5012
|
let i, r;
|
5002
5013
|
if (t[2] === "@")
|
5003
|
-
i =
|
5014
|
+
i = L(t[0]), r = "mailto:" + i;
|
5004
5015
|
else {
|
5005
5016
|
let o;
|
5006
5017
|
do
|
5007
5018
|
o = t[0], t[0] = ((n = this.rules.inline._backpedal.exec(t[0])) == null ? void 0 : n[0]) ?? "";
|
5008
5019
|
while (o !== t[0]);
|
5009
|
-
i =
|
5020
|
+
i = L(t[0]), t[1] === "www." ? r = "http://" + t[0] : r = t[0];
|
5010
5021
|
}
|
5011
5022
|
return {
|
5012
5023
|
type: "link",
|
@@ -5027,7 +5038,7 @@ class nt {
|
|
5027
5038
|
const t = this.rules.inline.text.exec(e);
|
5028
5039
|
if (t) {
|
5029
5040
|
let n;
|
5030
|
-
return this.lexer.state.inRawBlock ? n = t[0] : n =
|
5041
|
+
return this.lexer.state.inRawBlock ? n = t[0] : n = L(t[0]), {
|
5031
5042
|
type: "text",
|
5032
5043
|
raw: t[0],
|
5033
5044
|
text: n
|
@@ -5035,7 +5046,7 @@ class nt {
|
|
5035
5046
|
}
|
5036
5047
|
}
|
5037
5048
|
}
|
5038
|
-
const Ga = /^(?: *(?:\n|$))+/, Xa = /^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/, Ja = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, ze = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, Va = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, fi = /(?:[*+-]|\d{1,9}[.)])/, gi = $(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g, fi).replace(/blockCode/g, / {4}/).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/).getRegex(),
|
5049
|
+
const Ga = /^(?: *(?:\n|$))+/, Xa = /^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/, Ja = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, ze = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, Va = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, fi = /(?:[*+-]|\d{1,9}[.)])/, gi = $(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g, fi).replace(/blockCode/g, / {4}/).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/).getRegex(), fn = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, el = /^[^\n]+/, gn = /(?!\s*\])(?:\\.|[^\[\]\\])+/, tl = $(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label", gn).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), nl = $(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, fi).getRegex(), vt = "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", mn = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, sl = $("^ {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", mn).replace("tag", vt).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), mi = $(fn).replace("hr", ze).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", vt).getRegex(), il = $(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", mi).getRegex(), vn = {
|
5039
5050
|
blockquote: il,
|
5040
5051
|
code: Xa,
|
5041
5052
|
def: tl,
|
@@ -5050,20 +5061,20 @@ const Ga = /^(?: *(?:\n|$))+/, Xa = /^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/, Ja =
|
|
5050
5061
|
table: ke,
|
5051
5062
|
text: el
|
5052
5063
|
}, us = $("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", ze).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", " {4}[^\\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", vt).getRegex(), rl = {
|
5053
|
-
...
|
5064
|
+
...vn,
|
5054
5065
|
table: us,
|
5055
|
-
paragraph: $(
|
5066
|
+
paragraph: $(fn).replace("hr", ze).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", us).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", vt).getRegex()
|
5056
5067
|
}, ol = {
|
5057
|
-
...
|
5058
|
-
html: $(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",
|
5068
|
+
...vn,
|
5069
|
+
html: $(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", mn).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(),
|
5059
5070
|
def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,
|
5060
5071
|
heading: /^(#{1,6})(.*)(?:\n+|$)/,
|
5061
5072
|
fences: ke,
|
5062
5073
|
// fences not supported
|
5063
5074
|
lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
|
5064
|
-
paragraph: $(
|
5075
|
+
paragraph: $(fn).replace("hr", ze).replace("heading", ` *#{1,6} *[^
|
5065
5076
|
]`).replace("lheading", gi).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
|
5066
|
-
}, vi = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, al = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, bi = /^( {2,}|\\)\n(?!\s*$)/, ll = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, Ue = "\\p{P}\\p{S}", cl = $(/^((?![*_])[\spunctuation])/, "u").replace(/punctuation/g, Ue).getRegex(), hl = /\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g, ul = $(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/, "u").replace(/punct/g, Ue).getRegex(), pl = $("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])", "gu").replace(/punct/g, Ue).getRegex(), dl = $("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])", "gu").replace(/punct/g, Ue).getRegex(), fl = $(/\\([punct])/, "gu").replace(/punct/g, Ue).getRegex(), gl = $(/^<(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(), ml = $(
|
5077
|
+
}, vi = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, al = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, bi = /^( {2,}|\\)\n(?!\s*$)/, ll = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, Ue = "\\p{P}\\p{S}", cl = $(/^((?![*_])[\spunctuation])/, "u").replace(/punctuation/g, Ue).getRegex(), hl = /\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g, ul = $(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/, "u").replace(/punct/g, Ue).getRegex(), pl = $("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])", "gu").replace(/punct/g, Ue).getRegex(), dl = $("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])", "gu").replace(/punct/g, Ue).getRegex(), fl = $(/\\([punct])/, "gu").replace(/punct/g, Ue).getRegex(), gl = $(/^<(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(), ml = $(mn).replace("(?:-->|$)", "-->").getRegex(), vl = $("^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", ml).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), st = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, bl = $(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label", st).replace("href", /<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), $i = $(/^!?\[(label)\]\[(ref)\]/).replace("label", st).replace("ref", gn).getRegex(), yi = $(/^!?\[(ref)\](?:\[\])?/).replace("ref", gn).getRegex(), $l = $("reflink|nolink(?!\\()", "g").replace("reflink", $i).replace("nolink", yi).getRegex(), bn = {
|
5067
5078
|
_backpedal: ke,
|
5068
5079
|
// only used for GFM url
|
5069
5080
|
anyPunctuation: fl,
|
@@ -5085,38 +5096,38 @@ const Ga = /^(?: *(?:\n|$))+/, Xa = /^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/, Ja =
|
|
5085
5096
|
text: ll,
|
5086
5097
|
url: ke
|
5087
5098
|
}, yl = {
|
5088
|
-
...
|
5099
|
+
...bn,
|
5089
5100
|
link: $(/^!?\[(label)\]\((.*?)\)/).replace("label", st).getRegex(),
|
5090
5101
|
reflink: $(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", st).getRegex()
|
5091
|
-
},
|
5092
|
-
...
|
5102
|
+
}, Ft = {
|
5103
|
+
...bn,
|
5093
5104
|
escape: $(vi).replace("])", "~|])").getRegex(),
|
5094
5105
|
url: $(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/, "i").replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),
|
5095
5106
|
_backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,
|
5096
5107
|
del: /^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,
|
5097
5108
|
text: /^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/
|
5098
5109
|
}, xl = {
|
5099
|
-
...
|
5110
|
+
...Ft,
|
5100
5111
|
br: $(bi).replace("{2,}", "*").getRegex(),
|
5101
|
-
text: $(
|
5112
|
+
text: $(Ft.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
|
5102
5113
|
}, Fe = {
|
5103
|
-
normal:
|
5114
|
+
normal: vn,
|
5104
5115
|
gfm: rl,
|
5105
5116
|
pedantic: ol
|
5106
5117
|
}, $e = {
|
5107
|
-
normal:
|
5108
|
-
gfm:
|
5118
|
+
normal: bn,
|
5119
|
+
gfm: Ft,
|
5109
5120
|
breaks: xl,
|
5110
5121
|
pedantic: yl
|
5111
5122
|
};
|
5112
|
-
class
|
5123
|
+
class z {
|
5113
5124
|
constructor(e) {
|
5114
5125
|
x(this, "tokens");
|
5115
5126
|
x(this, "options");
|
5116
5127
|
x(this, "state");
|
5117
5128
|
x(this, "tokenizer");
|
5118
5129
|
x(this, "inlineQueue");
|
5119
|
-
this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = e ||
|
5130
|
+
this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = e || oe, this.options.tokenizer = this.options.tokenizer || new nt(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = {
|
5120
5131
|
inLink: !1,
|
5121
5132
|
inRawBlock: !1,
|
5122
5133
|
top: !0
|
@@ -5140,13 +5151,13 @@ class I {
|
|
5140
5151
|
* Static Lex Method
|
5141
5152
|
*/
|
5142
5153
|
static lex(e, t) {
|
5143
|
-
return new
|
5154
|
+
return new z(t).lex(e);
|
5144
5155
|
}
|
5145
5156
|
/**
|
5146
5157
|
* Static Lex Inline Method
|
5147
5158
|
*/
|
5148
5159
|
static lexInline(e, t) {
|
5149
|
-
return new
|
5160
|
+
return new z(t).inlineTokens(e);
|
5150
5161
|
}
|
5151
5162
|
/**
|
5152
5163
|
* Preprocessing
|
@@ -5335,14 +5346,14 @@ class I {
|
|
5335
5346
|
class it {
|
5336
5347
|
constructor(e) {
|
5337
5348
|
x(this, "options");
|
5338
|
-
this.options = e ||
|
5349
|
+
this.options = e || oe;
|
5339
5350
|
}
|
5340
5351
|
code(e, t, n) {
|
5341
5352
|
var r;
|
5342
5353
|
const i = (r = (t || "").match(/^\S*/)) == null ? void 0 : r[0];
|
5343
5354
|
return e = e.replace(/\n$/, "") + `
|
5344
|
-
`, i ? '<pre><code class="language-' +
|
5345
|
-
` : "<pre><code>" + (n ? e :
|
5355
|
+
`, i ? '<pre><code class="language-' + L(i) + '">' + (n ? e : L(e, !0)) + `</code></pre>
|
5356
|
+
` : "<pre><code>" + (n ? e : L(e, !0)) + `</code></pre>
|
5346
5357
|
`;
|
5347
5358
|
}
|
5348
5359
|
blockquote(e) {
|
@@ -5433,7 +5444,7 @@ ${e}</tr>
|
|
5433
5444
|
return e;
|
5434
5445
|
}
|
5435
5446
|
}
|
5436
|
-
class
|
5447
|
+
class $n {
|
5437
5448
|
// no need for block level renderers
|
5438
5449
|
strong(e) {
|
5439
5450
|
return e;
|
@@ -5463,24 +5474,24 @@ class bn {
|
|
5463
5474
|
return "";
|
5464
5475
|
}
|
5465
5476
|
}
|
5466
|
-
class
|
5477
|
+
class U {
|
5467
5478
|
constructor(e) {
|
5468
5479
|
x(this, "options");
|
5469
5480
|
x(this, "renderer");
|
5470
5481
|
x(this, "textRenderer");
|
5471
|
-
this.options = e ||
|
5482
|
+
this.options = e || oe, this.options.renderer = this.options.renderer || new it(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.textRenderer = new $n();
|
5472
5483
|
}
|
5473
5484
|
/**
|
5474
5485
|
* Static Parse Method
|
5475
5486
|
*/
|
5476
5487
|
static parse(e, t) {
|
5477
|
-
return new
|
5488
|
+
return new U(t).parse(e);
|
5478
5489
|
}
|
5479
5490
|
/**
|
5480
5491
|
* Static Parse Inline Method
|
5481
5492
|
*/
|
5482
5493
|
static parseInline(e, t) {
|
5483
|
-
return new
|
5494
|
+
return new U(t).parseInline(e);
|
5484
5495
|
}
|
5485
5496
|
/**
|
5486
5497
|
* Parse Loop
|
@@ -5542,11 +5553,11 @@ class M {
|
|
5542
5553
|
const p = o.items[u], d = p.checked, b = p.task;
|
5543
5554
|
let f = "";
|
5544
5555
|
if (p.task) {
|
5545
|
-
const
|
5546
|
-
c ? p.tokens.length > 0 && p.tokens[0].type === "paragraph" ? (p.tokens[0].text =
|
5556
|
+
const I = this.renderer.checkbox(!!d);
|
5557
|
+
c ? p.tokens.length > 0 && p.tokens[0].type === "paragraph" ? (p.tokens[0].text = I + " " + p.tokens[0].text, p.tokens[0].tokens && p.tokens[0].tokens.length > 0 && p.tokens[0].tokens[0].type === "text" && (p.tokens[0].tokens[0].text = I + " " + p.tokens[0].tokens[0].text)) : p.tokens.unshift({
|
5547
5558
|
type: "text",
|
5548
|
-
text:
|
5549
|
-
}) : f +=
|
5559
|
+
text: I + " "
|
5560
|
+
}) : f += I + " ";
|
5550
5561
|
}
|
5551
5562
|
f += this.parse(p.tokens, c), h += this.renderer.listitem(f, b, !!d);
|
5552
5563
|
}
|
@@ -5660,7 +5671,7 @@ class M {
|
|
5660
5671
|
class _e {
|
5661
5672
|
constructor(e) {
|
5662
5673
|
x(this, "options");
|
5663
|
-
this.options = e ||
|
5674
|
+
this.options = e || oe;
|
5664
5675
|
}
|
5665
5676
|
/**
|
5666
5677
|
* Process markdown before marked
|
@@ -5686,19 +5697,19 @@ x(_e, "passThroughHooks", /* @__PURE__ */ new Set([
|
|
5686
5697
|
"postprocess",
|
5687
5698
|
"processAllTokens"
|
5688
5699
|
]));
|
5689
|
-
var
|
5700
|
+
var Le, qt, rt, xi;
|
5690
5701
|
class wl {
|
5691
5702
|
constructor(...e) {
|
5692
|
-
yt(this,
|
5703
|
+
yt(this, Le);
|
5693
5704
|
yt(this, rt);
|
5694
|
-
x(this, "defaults",
|
5705
|
+
x(this, "defaults", dn());
|
5695
5706
|
x(this, "options", this.setOptions);
|
5696
|
-
x(this, "parse", je(this,
|
5697
|
-
x(this, "parseInline", je(this,
|
5698
|
-
x(this, "Parser",
|
5707
|
+
x(this, "parse", je(this, Le, qt).call(this, z.lex, U.parse));
|
5708
|
+
x(this, "parseInline", je(this, Le, qt).call(this, z.lexInline, U.parseInline));
|
5709
|
+
x(this, "Parser", U);
|
5699
5710
|
x(this, "Renderer", it);
|
5700
|
-
x(this, "TextRenderer",
|
5701
|
-
x(this, "Lexer",
|
5711
|
+
x(this, "TextRenderer", $n);
|
5712
|
+
x(this, "Lexer", z);
|
5702
5713
|
x(this, "Tokenizer", nt);
|
5703
5714
|
x(this, "Hooks", _e);
|
5704
5715
|
this.use(...e);
|
@@ -5820,13 +5831,13 @@ class wl {
|
|
5820
5831
|
return this.defaults = { ...this.defaults, ...e }, this;
|
5821
5832
|
}
|
5822
5833
|
lexer(e, t) {
|
5823
|
-
return
|
5834
|
+
return z.lex(e, t ?? this.defaults);
|
5824
5835
|
}
|
5825
5836
|
parser(e, t) {
|
5826
|
-
return
|
5837
|
+
return U.parse(e, t ?? this.defaults);
|
5827
5838
|
}
|
5828
5839
|
}
|
5829
|
-
|
5840
|
+
Le = new WeakSet(), qt = function(e, t) {
|
5830
5841
|
return (n, i) => {
|
5831
5842
|
const r = { ...i }, o = { ...this.defaults, ...r };
|
5832
5843
|
this.defaults.async === !0 && r.async === !1 && (o.silent || console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."), o.async = !0);
|
@@ -5851,7 +5862,7 @@ Oe = new WeakSet(), Ft = function(e, t) {
|
|
5851
5862
|
return (n) => {
|
5852
5863
|
if (n.message += `
|
5853
5864
|
Please report this to https://github.com/markedjs/marked.`, e) {
|
5854
|
-
const i = "<p>An error occurred:</p><pre>" +
|
5865
|
+
const i = "<p>An error occurred:</p><pre>" + L(n.message + "", !0) + "</pre>";
|
5855
5866
|
return t ? Promise.resolve(i) : i;
|
5856
5867
|
}
|
5857
5868
|
if (t)
|
@@ -5859,28 +5870,28 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
5859
5870
|
throw n;
|
5860
5871
|
};
|
5861
5872
|
};
|
5862
|
-
const
|
5873
|
+
const ie = new wl();
|
5863
5874
|
function v(s, e) {
|
5864
|
-
return
|
5875
|
+
return ie.parse(s, e);
|
5865
5876
|
}
|
5866
5877
|
v.options = v.setOptions = function(s) {
|
5867
|
-
return
|
5878
|
+
return ie.setOptions(s), v.defaults = ie.defaults, ui(v.defaults), v;
|
5868
5879
|
};
|
5869
|
-
v.getDefaults =
|
5870
|
-
v.defaults =
|
5880
|
+
v.getDefaults = dn;
|
5881
|
+
v.defaults = oe;
|
5871
5882
|
v.use = function(...s) {
|
5872
|
-
return
|
5883
|
+
return ie.use(...s), v.defaults = ie.defaults, ui(v.defaults), v;
|
5873
5884
|
};
|
5874
5885
|
v.walkTokens = function(s, e) {
|
5875
|
-
return
|
5886
|
+
return ie.walkTokens(s, e);
|
5876
5887
|
};
|
5877
|
-
v.parseInline =
|
5878
|
-
v.Parser =
|
5879
|
-
v.parser =
|
5888
|
+
v.parseInline = ie.parseInline;
|
5889
|
+
v.Parser = U;
|
5890
|
+
v.parser = U.parse;
|
5880
5891
|
v.Renderer = it;
|
5881
|
-
v.TextRenderer =
|
5882
|
-
v.Lexer =
|
5883
|
-
v.lexer =
|
5892
|
+
v.TextRenderer = $n;
|
5893
|
+
v.Lexer = z;
|
5894
|
+
v.lexer = z.lex;
|
5884
5895
|
v.Tokenizer = nt;
|
5885
5896
|
v.Hooks = _e;
|
5886
5897
|
v.parse = v;
|
@@ -5889,8 +5900,8 @@ v.setOptions;
|
|
5889
5900
|
v.use;
|
5890
5901
|
v.walkTokens;
|
5891
5902
|
v.parseInline;
|
5892
|
-
|
5893
|
-
|
5903
|
+
U.parse;
|
5904
|
+
z.lex;
|
5894
5905
|
var kl = Object.defineProperty, _l = Object.getOwnPropertyDescriptor, wi = (s, e, t, n) => {
|
5895
5906
|
for (var i = n > 1 ? void 0 : n ? _l(e, t) : e, r = s.length - 1, o; r >= 0; r--)
|
5896
5907
|
(o = s[r]) && (i = (n ? o(e, t, i) : o(i)) || i);
|
@@ -5905,7 +5916,7 @@ v.use({
|
|
5905
5916
|
});
|
5906
5917
|
class bt extends k {
|
5907
5918
|
constructor() {
|
5908
|
-
super(...arguments), this.showLightbox = !1, this.imageUrl = "", this.altText = "", this.scrollRef =
|
5919
|
+
super(...arguments), this.showLightbox = !1, this.imageUrl = "", this.altText = "", this.scrollRef = B(), this.contentRef = B(), this.autoScroll = !0, this.buffer = "", this.pointer = 0, this.imageRegexp = new RegExp(/!\[[^[]*\([^)]*\)/gm), this.includesImage = (e) => this.imageRegexp.test(e);
|
5909
5920
|
}
|
5910
5921
|
// Stop autoscroll on user interaction
|
5911
5922
|
handleAutoscroll() {
|
@@ -5954,10 +5965,10 @@ class bt extends k {
|
|
5954
5965
|
}
|
5955
5966
|
render() {
|
5956
5967
|
return m`
|
5957
|
-
<div class="message-type-markdown" ${
|
5968
|
+
<div class="message-type-markdown" ${N(this.contentRef)}>
|
5958
5969
|
<div></div>
|
5959
5970
|
</div>
|
5960
|
-
<div class="scroll" ${
|
5971
|
+
<div class="scroll" ${N(this.scrollRef)}></div>
|
5961
5972
|
${this.showLightbox ? m`<ace-lightbox
|
5962
5973
|
imageUrl="${this.imageUrl}"
|
5963
5974
|
altText="${this.altText}"
|
@@ -5993,14 +6004,14 @@ wi([
|
|
5993
6004
|
w({ attribute: !1 })
|
5994
6005
|
], bt.prototype, "message", 2);
|
5995
6006
|
wi([
|
5996
|
-
|
6007
|
+
E()
|
5997
6008
|
], bt.prototype, "showLightbox", 2);
|
5998
6009
|
var Sl = Object.defineProperty, Cl = Object.getOwnPropertyDescriptor, Al = (s, e, t, n) => {
|
5999
6010
|
for (var i = n > 1 ? void 0 : n ? Cl(e, t) : e, r = s.length - 1, o; r >= 0; r--)
|
6000
6011
|
(o = s[r]) && (i = (n ? o(e, t, i) : o(i)) || i);
|
6001
6012
|
return n && i && Sl(e, t, i), i;
|
6002
6013
|
};
|
6003
|
-
class
|
6014
|
+
class yn extends k {
|
6004
6015
|
constructor() {
|
6005
6016
|
super(...arguments), this.escapeListener = (e) => {
|
6006
6017
|
e.key === "Escape" && this.closeLightbox();
|
@@ -6043,7 +6054,7 @@ class $n extends k {
|
|
6043
6054
|
</div> `;
|
6044
6055
|
}
|
6045
6056
|
}
|
6046
|
-
|
6057
|
+
yn.styles = [
|
6047
6058
|
A`
|
6048
6059
|
.lightbox {
|
6049
6060
|
position: fixed;
|
@@ -6082,47 +6093,49 @@ $n.styles = [
|
|
6082
6093
|
];
|
6083
6094
|
Al([
|
6084
6095
|
w({ attribute: !0 })
|
6085
|
-
],
|
6086
|
-
var El = Object.defineProperty, Tl = Object.getOwnPropertyDescriptor,
|
6096
|
+
], yn.prototype, "imageUrl", 2);
|
6097
|
+
var El = Object.defineProperty, Tl = Object.getOwnPropertyDescriptor, G = (s, e, t, n) => {
|
6087
6098
|
for (var i = n > 1 ? void 0 : n ? Tl(e, t) : e, r = s.length - 1, o; r >= 0; r--)
|
6088
6099
|
(o = s[r]) && (i = (n ? o(e, t, i) : o(i)) || i);
|
6089
6100
|
return n && i && El(e, t, i), i;
|
6090
6101
|
};
|
6091
|
-
|
6092
|
-
s.scrollTo ? s.scrollTo({ top: s.scrollHeight, behavior: "smooth" }) : s.scrollTop = s.scrollHeight;
|
6093
|
-
};
|
6094
|
-
customElements.get("conversation-entry") || customElements.define("conversation-entry", cn);
|
6102
|
+
customElements.get("conversation-entry") || customElements.define("conversation-entry", hn);
|
6095
6103
|
customElements.get("ace-conversation-feed") || customElements.define("ace-conversation-feed", mt);
|
6096
|
-
customElements.get("conversation-group") || customElements.define("conversation-group",
|
6104
|
+
customElements.get("conversation-group") || customElements.define("conversation-group", un);
|
6097
6105
|
customElements.get("ace-typing-state") || customElements.define("ace-typing-state", hi);
|
6098
|
-
customElements.get("message-type-html") || customElements.define("message-type-html",
|
6106
|
+
customElements.get("message-type-html") || customElements.define("message-type-html", pn);
|
6099
6107
|
customElements.get("message-type-markdown") || customElements.define("message-type-markdown", bt);
|
6100
|
-
customElements.get("ace-lightbox") || customElements.define("ace-lightbox",
|
6108
|
+
customElements.get("ace-lightbox") || customElements.define("ace-lightbox", yn);
|
6101
6109
|
const ki = ai(k);
|
6102
|
-
class
|
6110
|
+
class R extends ki {
|
6103
6111
|
constructor() {
|
6104
|
-
super(...arguments), this.message = "", this.
|
6112
|
+
super(...arguments), this.message = "", this.disabledInput = !1, this.disabledSubmit = !1, this.chatOverlayActive = !1, this.textAreaLength = 0, this.conversationContentRef = B(), this.conversationFeedRef = B(), this.formRef = B(), this.inputRef = B(), this.scrollRef = B(), this.chatScrollHeight = 0, this.chatCurrentScrollPosition = 0, this.toast = new Ca(this), this.messageMaxLength = 1e3, this.skipToLatestMessageLabel = "Skip to latest message", this.platform = null, this.entries = [], this.typing = !1, this.conversationState$ = new M("waiting"), this.stateMachine = new Ea(this.conversationState$, this), this.provider$ = this.stateMachine.session().pipe(
|
6105
6113
|
pe((e) => e ? e == null ? void 0 : e.provider$ : It(null))
|
6106
|
-
);
|
6114
|
+
), this.userTyping$ = new _();
|
6107
6115
|
}
|
6108
6116
|
async connectedCallback() {
|
6109
|
-
super.connectedCallback(), this.messageMaxLength = this.properties.messageMaxLength ?? this.messageMaxLength;
|
6117
|
+
super.connectedCallback(), this.messageMaxLength = this.properties.messageMaxLength ?? this.messageMaxLength, this.skipToLatestMessageLabel = this.properties.skipToLatestMessageLabel ?? this.skipToLatestMessageLabel;
|
6110
6118
|
const e = await this.application.container.get(
|
6111
6119
|
"conversation"
|
6112
6120
|
);
|
6113
|
-
this.platform = e || null
|
6121
|
+
this.platform = e || null;
|
6122
|
+
const t = this.application.trigger;
|
6123
|
+
t && t.widgetActive$.pipe(zt(t.componentIsDestroyed$)).subscribe((n) => {
|
6124
|
+
const i = this.conversationContentRef.value;
|
6125
|
+
i && (n ? i.scrollTop = this.chatCurrentScrollPosition : this.chatCurrentScrollPosition = i.scrollTop);
|
6126
|
+
}), this.stateSubscription = hr([
|
6114
6127
|
this.stateMachine.entries(),
|
6115
6128
|
this.stateMachine.isTyping()
|
6116
|
-
]).subscribe(([
|
6117
|
-
this.entries =
|
6129
|
+
]).subscribe(([n, i]) => {
|
6130
|
+
this.entries = n, this.typing = i;
|
6118
6131
|
}), this.userSubmitSubscription = Qe(
|
6119
6132
|
this,
|
6120
6133
|
"user-submit"
|
6121
|
-
).pipe(
|
6122
|
-
|
6123
|
-
}), this._addHeaderOptions(), this.provider$.pipe(
|
6124
|
-
|
6125
|
-
this.chatOverlayActive =
|
6134
|
+
).pipe(Ut(this.provider$)).subscribe(([n, i]) => {
|
6135
|
+
i && i.onUserSubmit(n.detail);
|
6136
|
+
}), this._addHeaderOptions(), this.provider$.pipe(Ut(this.provider$)).subscribe(([n, i]) => {
|
6137
|
+
i && i.showChatOverlay$.pipe().subscribe((r) => {
|
6138
|
+
this.chatOverlayActive = r;
|
6126
6139
|
});
|
6127
6140
|
});
|
6128
6141
|
}
|
@@ -6132,18 +6145,52 @@ class U extends ki {
|
|
6132
6145
|
}
|
6133
6146
|
_actionHandler(e) {
|
6134
6147
|
}
|
6135
|
-
|
6148
|
+
isTypingState() {
|
6149
|
+
var t, n;
|
6150
|
+
const e = (n = (t = this.conversationFeedRef.value) == null ? void 0 : t.shadowRoot) == null ? void 0 : n.querySelector(
|
6151
|
+
".conversation-feed"
|
6152
|
+
);
|
6153
|
+
if (e) {
|
6154
|
+
const i = e.lastElementChild;
|
6155
|
+
if (i && i.tagName.toLowerCase() === "ace-typing-state")
|
6156
|
+
return !0;
|
6157
|
+
}
|
6158
|
+
return !1;
|
6159
|
+
}
|
6160
|
+
isAtBottom() {
|
6136
6161
|
const e = this.conversationContentRef.value;
|
6137
|
-
e
|
6138
|
-
|
6139
|
-
|
6140
|
-
|
6162
|
+
return e ? e.scrollHeight - e.scrollTop - e.clientHeight < 1 : !1;
|
6163
|
+
}
|
6164
|
+
scrollToBottom() {
|
6165
|
+
var e, t;
|
6166
|
+
(!this.isTypingState() || this.isAtBottom()) && (setTimeout(
|
6167
|
+
() => {
|
6168
|
+
var n;
|
6169
|
+
return (n = this.scrollRef.value) == null ? void 0 : n.scrollIntoView({ behavior: "smooth" });
|
6170
|
+
},
|
6171
|
+
300
|
6172
|
+
), this.chatScrollHeight = (e = this.scrollRef.value) == null ? void 0 : e.scrollHeight, this.chatCurrentScrollPosition = (t = this.scrollRef.value) == null ? void 0 : t.scrollTop);
|
6173
|
+
}
|
6174
|
+
onSessionUpdated() {
|
6175
|
+
this.scrollToBottom();
|
6141
6176
|
}
|
6142
6177
|
disableInput() {
|
6143
|
-
this.
|
6178
|
+
this.disabledInput = !0;
|
6144
6179
|
}
|
6145
6180
|
enableInput() {
|
6146
|
-
this.
|
6181
|
+
this.disabledInput = !1;
|
6182
|
+
}
|
6183
|
+
disableSubmit() {
|
6184
|
+
this.disabledSubmit = !0;
|
6185
|
+
}
|
6186
|
+
enableSubmit() {
|
6187
|
+
this.disabledSubmit = !1;
|
6188
|
+
}
|
6189
|
+
//Clear messages when starting a new chat to avoid confusion
|
6190
|
+
clearMessages() {
|
6191
|
+
var i, r;
|
6192
|
+
const e = (i = this.shadowRoot) == null ? void 0 : i.querySelector("ace-conversation-feed"), t = (r = e == null ? void 0 : e.shadowRoot) == null ? void 0 : r.querySelector(".conversation-feed"), n = t == null ? void 0 : t.querySelectorAll(".conversation-entry");
|
6193
|
+
n == null || n.forEach((o) => o.remove());
|
6147
6194
|
}
|
6148
6195
|
setToastMessage(e) {
|
6149
6196
|
this.toast.message = e;
|
@@ -6171,11 +6218,11 @@ class U extends ki {
|
|
6171
6218
|
return;
|
6172
6219
|
const t = this.application.texts, n = t.getOrFallback("conversation.mute", "Mute"), i = t.getOrFallback("conversation.unmute", "Unmute"), r = !!this.application.storage.get("muteAudioNotifications"), o = e.addOption({
|
6173
6220
|
label: r ? i : n,
|
6174
|
-
icon: r ? jn.svg :
|
6221
|
+
icon: r ? jn.svg : Dn.svg,
|
6175
6222
|
closeOnClick: !1,
|
6176
6223
|
datatestid: "options-mute-button",
|
6177
6224
|
onClick: () => {
|
6178
|
-
!!this.application.storage.get("muteAudioNotifications") ? (this.application.unmute(), o.updateLabel(n), o.updateIcon(
|
6225
|
+
!!this.application.storage.get("muteAudioNotifications") ? (this.application.unmute(), o.updateLabel(n), o.updateIcon(Dn.svg)) : (this.application.mute(), o.updateLabel(i), o.updateIcon(jn.svg));
|
6179
6226
|
}
|
6180
6227
|
});
|
6181
6228
|
}
|
@@ -6185,7 +6232,16 @@ class U extends ki {
|
|
6185
6232
|
), e.target.style.height = e.target.scrollHeight + "px", this.textAreaLength = e.target.value.length;
|
6186
6233
|
}
|
6187
6234
|
_keyDownHandler(e) {
|
6188
|
-
e.key === "Enter" && !e.shiftKey && (this._onSendMessage(e), e.preventDefault());
|
6235
|
+
this.userTyping$.next(e.key), e.key === "Enter" && !e.shiftKey && !this.disabledSubmit && (this._onSendMessage(e), e.preventDefault());
|
6236
|
+
}
|
6237
|
+
skipToLatestMessage() {
|
6238
|
+
var n, i;
|
6239
|
+
const e = (n = this.conversationFeedRef) == null ? void 0 : n.value, t = (i = e == null ? void 0 : e.shadowRoot) == null ? void 0 : i.querySelectorAll(
|
6240
|
+
".conversation-entry"
|
6241
|
+
);
|
6242
|
+
t.length && Array.from(
|
6243
|
+
t
|
6244
|
+
).pop().focus();
|
6189
6245
|
}
|
6190
6246
|
handover(e, t) {
|
6191
6247
|
this.enableInput(), this.setToastMessage(null);
|
@@ -6204,9 +6260,9 @@ class U extends ki {
|
|
6204
6260
|
@action=${this._actionHandler}
|
6205
6261
|
class=${Te({
|
6206
6262
|
conversation: !0,
|
6207
|
-
disabled: this.
|
6263
|
+
disabled: this.disabledInput,
|
6208
6264
|
"conversation--has-toast": this.toast.hasMessage(),
|
6209
|
-
"conversation--input-has-text": this.message.length > 0,
|
6265
|
+
"conversation--input-has-text": this.message.length > 0 && !this.disabledSubmit,
|
6210
6266
|
"overlay-mode": this.chatOverlayActive
|
6211
6267
|
})}
|
6212
6268
|
>
|
@@ -6225,19 +6281,21 @@ class U extends ki {
|
|
6225
6281
|
})}
|
6226
6282
|
part="scroll-container"
|
6227
6283
|
aria-live="polite"
|
6228
|
-
${
|
6284
|
+
${N(this.conversationContentRef)}
|
6229
6285
|
>
|
6230
6286
|
${this.toast.hasMessage() ? m`<div class="conversation__toast">${this.toast.message}</div>` : g}
|
6231
6287
|
<ace-conversation-feed
|
6232
6288
|
.entries=${this.entries}
|
6233
6289
|
.loading=${this.typing}
|
6290
|
+
${N(this.conversationFeedRef)}
|
6234
6291
|
@updated=${this.onSessionUpdated}
|
6235
6292
|
></ace-conversation-feed>
|
6293
|
+
<div class="scroll" ${N(this.scrollRef)}></div>
|
6236
6294
|
</div>
|
6237
6295
|
<form
|
6238
6296
|
class="conversation-bottom"
|
6239
6297
|
@submit=${this._onSendMessage}
|
6240
|
-
${
|
6298
|
+
${N(this.formRef)}
|
6241
6299
|
>
|
6242
6300
|
<label for="chat-message-input" class="visually-hidden">
|
6243
6301
|
Chat message
|
@@ -6252,10 +6310,10 @@ class U extends ki {
|
|
6252
6310
|
)}
|
6253
6311
|
data-testid="message-input"
|
6254
6312
|
.value=${this.message}
|
6255
|
-
?disabled=${this.
|
6313
|
+
?disabled=${this.disabledInput}
|
6256
6314
|
@input=${this._inputHandler}
|
6257
6315
|
@keydown=${this._keyDownHandler}
|
6258
|
-
${
|
6316
|
+
${N(this.inputRef)}
|
6259
6317
|
></textarea>
|
6260
6318
|
<div class="conversation-actions">
|
6261
6319
|
<button
|
@@ -6263,7 +6321,7 @@ class U extends ki {
|
|
6263
6321
|
type="submit"
|
6264
6322
|
data-testid="send-message-button"
|
6265
6323
|
title=${e.getOrFallback("conversation.send-alt", "Send")}
|
6266
|
-
?disabled=${this.
|
6324
|
+
?disabled=${this.disabledSubmit}
|
6267
6325
|
>
|
6268
6326
|
<telia-icon svg=${Kr.svg}></telia-icon>
|
6269
6327
|
</button>
|
@@ -6273,10 +6331,16 @@ class U extends ki {
|
|
6273
6331
|
>-->
|
6274
6332
|
</div>
|
6275
6333
|
</form>
|
6334
|
+
<button
|
6335
|
+
class="skip-to-latest-message-button"
|
6336
|
+
@click=${this.skipToLatestMessage}
|
6337
|
+
>
|
6338
|
+
${this.skipToLatestMessageLabel}
|
6339
|
+
</button>
|
6276
6340
|
</div>`;
|
6277
6341
|
}
|
6278
6342
|
}
|
6279
|
-
|
6343
|
+
R.styles = [
|
6280
6344
|
ki.styles || [],
|
6281
6345
|
A`
|
6282
6346
|
:host {
|
@@ -6308,8 +6372,10 @@ U.styles = [
|
|
6308
6372
|
--input-text-color: var(--conversation-input-text-color, inherit);
|
6309
6373
|
--conversation-input-bg: var(--conversation-input-bg-color, #fff);
|
6310
6374
|
|
6311
|
-
--toast-bg: #
|
6312
|
-
--toast-
|
6375
|
+
--toast-bg: #caeaff;
|
6376
|
+
--toast-border: 1px solid #0078cb;
|
6377
|
+
|
6378
|
+
--toast-text-color: #000;
|
6313
6379
|
|
6314
6380
|
--error-text-color: #eb5185;
|
6315
6381
|
|
@@ -6364,6 +6430,21 @@ U.styles = [
|
|
6364
6430
|
position: absolute;
|
6365
6431
|
width: 1px;
|
6366
6432
|
}
|
6433
|
+
.skip-to-latest-message-button {
|
6434
|
+
position: absolute;
|
6435
|
+
bottom: 80px;
|
6436
|
+
text-align: center;
|
6437
|
+
background-color: var(--conversation-bg);
|
6438
|
+
text-decoration: none;
|
6439
|
+
padding: var(--spacing-sm);
|
6440
|
+
border-radius: var(--spacing-sm);
|
6441
|
+
left: -10000000px;
|
6442
|
+
outline: none;
|
6443
|
+
}
|
6444
|
+
.skip-to-latest-message-button:focus-visible {
|
6445
|
+
left: 50%;
|
6446
|
+
transform: translateX(-50%);
|
6447
|
+
}
|
6367
6448
|
.conversation {
|
6368
6449
|
display: grid;
|
6369
6450
|
grid-template-rows: 1fr auto;
|
@@ -6378,6 +6459,7 @@ U.styles = [
|
|
6378
6459
|
.conversation.conversation--has-toast .conversation-content {
|
6379
6460
|
border-top-right-radius: 0;
|
6380
6461
|
border-top-left-radius: 0;
|
6462
|
+
padding-top: var(--spacing-md);
|
6381
6463
|
}
|
6382
6464
|
.conversation.disabled .conversation-bottom {
|
6383
6465
|
--conversation-input-bg: rgba(255, 255, 255, 0.4);
|
@@ -6424,6 +6506,9 @@ U.styles = [
|
|
6424
6506
|
}
|
6425
6507
|
.conversation__toast {
|
6426
6508
|
background-color: var(--toast-bg);
|
6509
|
+
border: var(--toast-border);
|
6510
|
+
border-radius: var(--border-radius-sm);
|
6511
|
+
margin: 0 var(--spacing-md) var(--spacing-md) var(--spacing-md);
|
6427
6512
|
color: var(--toast-text-color);
|
6428
6513
|
padding: var(--spacing-md);
|
6429
6514
|
position: sticky;
|
@@ -6503,39 +6588,42 @@ U.styles = [
|
|
6503
6588
|
}
|
6504
6589
|
`
|
6505
6590
|
];
|
6506
|
-
|
6507
|
-
|
6508
|
-
],
|
6509
|
-
|
6510
|
-
|
6511
|
-
],
|
6512
|
-
|
6513
|
-
|
6514
|
-
],
|
6515
|
-
|
6516
|
-
|
6517
|
-
],
|
6518
|
-
|
6519
|
-
|
6520
|
-
],
|
6521
|
-
|
6522
|
-
|
6523
|
-
],
|
6524
|
-
|
6525
|
-
|
6526
|
-
],
|
6591
|
+
G([
|
6592
|
+
E()
|
6593
|
+
], R.prototype, "message", 2);
|
6594
|
+
G([
|
6595
|
+
E()
|
6596
|
+
], R.prototype, "disabledInput", 2);
|
6597
|
+
G([
|
6598
|
+
E()
|
6599
|
+
], R.prototype, "disabledSubmit", 2);
|
6600
|
+
G([
|
6601
|
+
E()
|
6602
|
+
], R.prototype, "chatOverlayActive", 2);
|
6603
|
+
G([
|
6604
|
+
E()
|
6605
|
+
], R.prototype, "textAreaLength", 2);
|
6606
|
+
G([
|
6607
|
+
E()
|
6608
|
+
], R.prototype, "platform", 2);
|
6609
|
+
G([
|
6610
|
+
E()
|
6611
|
+
], R.prototype, "entries", 2);
|
6612
|
+
G([
|
6613
|
+
E()
|
6614
|
+
], R.prototype, "typing", 2);
|
6527
6615
|
const Ll = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
6528
6616
|
__proto__: null,
|
6529
|
-
Conversation:
|
6530
|
-
default:
|
6617
|
+
Conversation: R,
|
6618
|
+
default: R
|
6531
6619
|
}, Symbol.toStringTag, { value: "Module" }));
|
6532
6620
|
export {
|
6533
6621
|
xr as Agent,
|
6534
|
-
|
6535
|
-
|
6622
|
+
R as Conversation,
|
6623
|
+
Pl as ConversationComponent,
|
6536
6624
|
lt as ConversationEntry,
|
6537
|
-
|
6625
|
+
Z as ConversationMessageType,
|
6538
6626
|
ds as ConversationPlatform,
|
6539
|
-
|
6627
|
+
Rl as ConversationProvider,
|
6540
6628
|
wr as User
|
6541
6629
|
};
|