@telia-ace/ace-chat-flamingo 1.1.122 → 1.1.123-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +288 -229
- package/index.mjs +891 -797
- package/package.json +3 -3
package/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var A = (n, e, t) =>
|
|
1
|
+
var gl = Object.defineProperty;
|
|
2
|
+
var ml = (n, e, t) => e in n ? gl(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
|
|
3
|
+
var A = (n, e, t) => ml(n, typeof e != "symbol" ? e + "" : e, t);
|
|
4
4
|
var Ri = function(n, e) {
|
|
5
5
|
return Ri = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, i) {
|
|
6
6
|
t.__proto__ = i;
|
|
@@ -8,7 +8,7 @@ var Ri = function(n, e) {
|
|
|
8
8
|
for (var s in i) Object.prototype.hasOwnProperty.call(i, s) && (t[s] = i[s]);
|
|
9
9
|
}, Ri(n, e);
|
|
10
10
|
};
|
|
11
|
-
function
|
|
11
|
+
function Ie(n, e) {
|
|
12
12
|
if (typeof e != "function" && e !== null)
|
|
13
13
|
throw new TypeError("Class extends value " + String(e) + " is not a constructor or null");
|
|
14
14
|
Ri(n, e);
|
|
@@ -17,7 +17,7 @@ function Le(n, e) {
|
|
|
17
17
|
}
|
|
18
18
|
n.prototype = e === null ? Object.create(e) : (t.prototype = e.prototype, new t());
|
|
19
19
|
}
|
|
20
|
-
function
|
|
20
|
+
function vl(n, e, t, i) {
|
|
21
21
|
function s(r) {
|
|
22
22
|
return r instanceof t ? r : new t(function(o) {
|
|
23
23
|
o(r);
|
|
@@ -139,7 +139,7 @@ function Xe(n, e, t) {
|
|
|
139
139
|
function gt(n) {
|
|
140
140
|
return this instanceof gt ? (this.v = n, this) : new gt(n);
|
|
141
141
|
}
|
|
142
|
-
function
|
|
142
|
+
function bl(n, e, t) {
|
|
143
143
|
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
144
144
|
var i = t.apply(n, e || []), s, r = [];
|
|
145
145
|
return s = Object.create((typeof AsyncIterator == "function" ? AsyncIterator : Object).prototype), a("next"), a("throw"), a("return", o), s[Symbol.asyncIterator] = function() {
|
|
@@ -152,8 +152,8 @@ function vl(n, e, t) {
|
|
|
152
152
|
}
|
|
153
153
|
function a(g, m) {
|
|
154
154
|
i[g] && (s[g] = function($) {
|
|
155
|
-
return new Promise(function(
|
|
156
|
-
r.push([g, $,
|
|
155
|
+
return new Promise(function($e, ce) {
|
|
156
|
+
r.push([g, $, $e, ce]) > 1 || l(g, $);
|
|
157
157
|
});
|
|
158
158
|
}, m && (s[g] = m(s[g])));
|
|
159
159
|
}
|
|
@@ -177,7 +177,7 @@ function vl(n, e, t) {
|
|
|
177
177
|
g(m), r.shift(), r.length && l(r[0][0], r[0][1]);
|
|
178
178
|
}
|
|
179
179
|
}
|
|
180
|
-
function
|
|
180
|
+
function yl(n) {
|
|
181
181
|
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
182
182
|
var e = n[Symbol.asyncIterator], t;
|
|
183
183
|
return e ? e.call(n) : (n = typeof yt == "function" ? yt(n) : n[Symbol.iterator](), t = {}, i("next"), i("throw"), i("return"), t[Symbol.asyncIterator] = function() {
|
|
@@ -315,9 +315,9 @@ function Io(n) {
|
|
|
315
315
|
function Cr(n) {
|
|
316
316
|
E(n) ? n() : n.unsubscribe();
|
|
317
317
|
}
|
|
318
|
-
var
|
|
318
|
+
var $l = {
|
|
319
319
|
Promise: void 0
|
|
320
|
-
},
|
|
320
|
+
}, wl = {
|
|
321
321
|
setTimeout: function(n, e) {
|
|
322
322
|
for (var t = [], i = 2; i < arguments.length; i++)
|
|
323
323
|
t[i - 2] = arguments[i];
|
|
@@ -329,7 +329,7 @@ var yl = {
|
|
|
329
329
|
delegate: void 0
|
|
330
330
|
};
|
|
331
331
|
function Po(n) {
|
|
332
|
-
|
|
332
|
+
wl.setTimeout(function() {
|
|
333
333
|
throw n;
|
|
334
334
|
});
|
|
335
335
|
}
|
|
@@ -339,10 +339,10 @@ function wn(n) {
|
|
|
339
339
|
n();
|
|
340
340
|
}
|
|
341
341
|
var ts = (function(n) {
|
|
342
|
-
|
|
342
|
+
Ie(e, n);
|
|
343
343
|
function e(t) {
|
|
344
344
|
var i = n.call(this) || this;
|
|
345
|
-
return i.isStopped = !1, t ? (i.destination = t, Io(t) && t.add(i)) : i.destination =
|
|
345
|
+
return i.isStopped = !1, t ? (i.destination = t, Io(t) && t.add(i)) : i.destination = Sl, i;
|
|
346
346
|
}
|
|
347
347
|
return e.create = function(t, i, s) {
|
|
348
348
|
return new Ii(t, i, s);
|
|
@@ -369,7 +369,7 @@ var ts = (function(n) {
|
|
|
369
369
|
this.unsubscribe();
|
|
370
370
|
}
|
|
371
371
|
}, e;
|
|
372
|
-
})(tn),
|
|
372
|
+
})(tn), xl = (function() {
|
|
373
373
|
function n(e) {
|
|
374
374
|
this.partialObserver = e;
|
|
375
375
|
}
|
|
@@ -401,27 +401,27 @@ var ts = (function(n) {
|
|
|
401
401
|
}
|
|
402
402
|
}, n;
|
|
403
403
|
})(), Ii = (function(n) {
|
|
404
|
-
|
|
404
|
+
Ie(e, n);
|
|
405
405
|
function e(t, i, s) {
|
|
406
406
|
var r = n.call(this) || this, o;
|
|
407
407
|
return E(t) || !t ? o = {
|
|
408
408
|
next: t ?? void 0,
|
|
409
409
|
error: i ?? void 0,
|
|
410
410
|
complete: s ?? void 0
|
|
411
|
-
} : o = t, r.destination = new
|
|
411
|
+
} : o = t, r.destination = new xl(o), r;
|
|
412
412
|
}
|
|
413
413
|
return e;
|
|
414
414
|
})(ts);
|
|
415
415
|
function mn(n) {
|
|
416
416
|
Po(n);
|
|
417
417
|
}
|
|
418
|
-
function
|
|
418
|
+
function kl(n) {
|
|
419
419
|
throw n;
|
|
420
420
|
}
|
|
421
|
-
var
|
|
421
|
+
var Sl = {
|
|
422
422
|
closed: !0,
|
|
423
423
|
next: En,
|
|
424
|
-
error:
|
|
424
|
+
error: kl,
|
|
425
425
|
complete: En
|
|
426
426
|
}, ns = (function() {
|
|
427
427
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
@@ -429,7 +429,7 @@ var kl = {
|
|
|
429
429
|
function Ct(n) {
|
|
430
430
|
return n;
|
|
431
431
|
}
|
|
432
|
-
function
|
|
432
|
+
function Cl(n) {
|
|
433
433
|
return n.length === 0 ? Ct : n.length === 1 ? n[0] : function(t) {
|
|
434
434
|
return n.reduce(function(i, s) {
|
|
435
435
|
return s(i);
|
|
@@ -444,7 +444,7 @@ var j = (function() {
|
|
|
444
444
|
var t = new n();
|
|
445
445
|
return t.source = this, t.operator = e, t;
|
|
446
446
|
}, n.prototype.subscribe = function(e, t, i) {
|
|
447
|
-
var s = this, r =
|
|
447
|
+
var s = this, r = _l(e) ? e : new Ii(e, t, i);
|
|
448
448
|
return wn(function() {
|
|
449
449
|
var o = s, a = o.operator, l = o.source;
|
|
450
450
|
r.add(a ? a.call(r, l) : l ? s._subscribe(r) : s._trySubscribe(r));
|
|
@@ -479,7 +479,7 @@ var j = (function() {
|
|
|
479
479
|
}, n.prototype.pipe = function() {
|
|
480
480
|
for (var e = [], t = 0; t < arguments.length; t++)
|
|
481
481
|
e[t] = arguments[t];
|
|
482
|
-
return
|
|
482
|
+
return Cl(e)(this);
|
|
483
483
|
}, n.prototype.toPromise = function(e) {
|
|
484
484
|
var t = this;
|
|
485
485
|
return e = Er(e), new e(function(i, s) {
|
|
@@ -498,20 +498,20 @@ var j = (function() {
|
|
|
498
498
|
})();
|
|
499
499
|
function Er(n) {
|
|
500
500
|
var e;
|
|
501
|
-
return (e = n ??
|
|
502
|
-
}
|
|
503
|
-
function Cl(n) {
|
|
504
|
-
return n && E(n.next) && E(n.error) && E(n.complete);
|
|
501
|
+
return (e = n ?? $l.Promise) !== null && e !== void 0 ? e : Promise;
|
|
505
502
|
}
|
|
506
503
|
function El(n) {
|
|
507
|
-
return n && n
|
|
504
|
+
return n && E(n.next) && E(n.error) && E(n.complete);
|
|
508
505
|
}
|
|
509
506
|
function _l(n) {
|
|
507
|
+
return n && n instanceof ts || El(n) && Io(n);
|
|
508
|
+
}
|
|
509
|
+
function Al(n) {
|
|
510
510
|
return E(n == null ? void 0 : n.lift);
|
|
511
511
|
}
|
|
512
|
-
function
|
|
512
|
+
function oe(n) {
|
|
513
513
|
return function(e) {
|
|
514
|
-
if (
|
|
514
|
+
if (Al(e))
|
|
515
515
|
return e.lift(function(t) {
|
|
516
516
|
try {
|
|
517
517
|
return n(t, this);
|
|
@@ -523,10 +523,10 @@ function se(n) {
|
|
|
523
523
|
};
|
|
524
524
|
}
|
|
525
525
|
function Y(n, e, t, i, s) {
|
|
526
|
-
return new
|
|
526
|
+
return new Tl(n, e, t, i, s);
|
|
527
527
|
}
|
|
528
|
-
var
|
|
529
|
-
|
|
528
|
+
var Tl = (function(n) {
|
|
529
|
+
Ie(e, n);
|
|
530
530
|
function e(t, i, s, r, o, a) {
|
|
531
531
|
var l = n.call(this, t) || this;
|
|
532
532
|
return l.onFinalize = o, l.shouldUnsubscribe = a, l._next = i ? function(c) {
|
|
@@ -560,12 +560,12 @@ var Al = (function(n) {
|
|
|
560
560
|
n.prototype.unsubscribe.call(this), !i && ((t = this.onFinalize) === null || t === void 0 || t.call(this));
|
|
561
561
|
}
|
|
562
562
|
}, e;
|
|
563
|
-
})(ts),
|
|
563
|
+
})(ts), Ol = Lo(function(n) {
|
|
564
564
|
return function() {
|
|
565
565
|
n(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
566
566
|
};
|
|
567
567
|
}), P = (function(n) {
|
|
568
|
-
|
|
568
|
+
Ie(e, n);
|
|
569
569
|
function e() {
|
|
570
570
|
var t = n.call(this) || this;
|
|
571
571
|
return t.closed = !1, t.currentObservers = null, t.observers = [], t.isStopped = !1, t.hasError = !1, t.thrownError = null, t;
|
|
@@ -575,7 +575,7 @@ var Al = (function(n) {
|
|
|
575
575
|
return i.operator = t, i;
|
|
576
576
|
}, e.prototype._throwIfClosed = function() {
|
|
577
577
|
if (this.closed)
|
|
578
|
-
throw new
|
|
578
|
+
throw new Ol();
|
|
579
579
|
}, e.prototype.next = function(t) {
|
|
580
580
|
var i = this;
|
|
581
581
|
wn(function() {
|
|
@@ -644,7 +644,7 @@ var Al = (function(n) {
|
|
|
644
644
|
return new _r(t, i);
|
|
645
645
|
}, e;
|
|
646
646
|
})(j), _r = (function(n) {
|
|
647
|
-
|
|
647
|
+
Ie(e, n);
|
|
648
648
|
function e(t, i) {
|
|
649
649
|
var s = n.call(this) || this;
|
|
650
650
|
return s.destination = t, s.source = i, s;
|
|
@@ -662,8 +662,8 @@ var Al = (function(n) {
|
|
|
662
662
|
var i, s;
|
|
663
663
|
return (s = (i = this.source) === null || i === void 0 ? void 0 : i.subscribe(t)) !== null && s !== void 0 ? s : Ro;
|
|
664
664
|
}, e;
|
|
665
|
-
})(P),
|
|
666
|
-
|
|
665
|
+
})(P), de = (function(n) {
|
|
666
|
+
Ie(e, n);
|
|
667
667
|
function e(t) {
|
|
668
668
|
var i = n.call(this) || this;
|
|
669
669
|
return i._value = t, i;
|
|
@@ -685,12 +685,12 @@ var Al = (function(n) {
|
|
|
685
685
|
}, e.prototype.next = function(t) {
|
|
686
686
|
n.prototype.next.call(this, this._value = t);
|
|
687
687
|
}, e;
|
|
688
|
-
})(P),
|
|
688
|
+
})(P), Ll = {
|
|
689
689
|
now: function() {
|
|
690
690
|
return Date.now();
|
|
691
691
|
}
|
|
692
|
-
},
|
|
693
|
-
|
|
692
|
+
}, Rl = (function(n) {
|
|
693
|
+
Ie(e, n);
|
|
694
694
|
function e(t, i) {
|
|
695
695
|
return n.call(this) || this;
|
|
696
696
|
}
|
|
@@ -707,8 +707,8 @@ var Al = (function(n) {
|
|
|
707
707
|
return clearInterval(n);
|
|
708
708
|
},
|
|
709
709
|
delegate: void 0
|
|
710
|
-
},
|
|
711
|
-
|
|
710
|
+
}, Il = (function(n) {
|
|
711
|
+
Ie(e, n);
|
|
712
712
|
function e(t, i) {
|
|
713
713
|
var s = n.call(this, t, i) || this;
|
|
714
714
|
return s.scheduler = t, s.work = i, s.pending = !1, s;
|
|
@@ -749,15 +749,15 @@ var Al = (function(n) {
|
|
|
749
749
|
this.work = this.state = this.scheduler = null, this.pending = !1, Cn(r, this), i != null && (this.id = this.recycleAsyncId(s, i, null)), this.delay = null, n.prototype.unsubscribe.call(this);
|
|
750
750
|
}
|
|
751
751
|
}, e;
|
|
752
|
-
})(
|
|
752
|
+
})(Rl), Tr = (function() {
|
|
753
753
|
function n(e, t) {
|
|
754
754
|
t === void 0 && (t = n.now), this.schedulerActionCtor = e, this.now = t;
|
|
755
755
|
}
|
|
756
756
|
return n.prototype.schedule = function(e, t, i) {
|
|
757
757
|
return t === void 0 && (t = 0), new this.schedulerActionCtor(this, e).schedule(i, t);
|
|
758
|
-
}, n.now =
|
|
759
|
-
})(),
|
|
760
|
-
|
|
758
|
+
}, n.now = Ll.now, n;
|
|
759
|
+
})(), Pl = (function(n) {
|
|
760
|
+
Ie(e, n);
|
|
761
761
|
function e(t, i) {
|
|
762
762
|
i === void 0 && (i = Tr.now);
|
|
763
763
|
var s = n.call(this, t, i) || this;
|
|
@@ -781,11 +781,11 @@ var Al = (function(n) {
|
|
|
781
781
|
throw s;
|
|
782
782
|
}
|
|
783
783
|
}, e;
|
|
784
|
-
})(Tr), vp = new Il
|
|
784
|
+
})(Tr), vp = new Pl(Il);
|
|
785
785
|
var tt = new j(function(n) {
|
|
786
786
|
return n.complete();
|
|
787
787
|
});
|
|
788
|
-
function
|
|
788
|
+
function Ml(n) {
|
|
789
789
|
return n && E(n.schedule);
|
|
790
790
|
}
|
|
791
791
|
function is(n) {
|
|
@@ -795,9 +795,9 @@ function Mo(n) {
|
|
|
795
795
|
return E(is(n)) ? n.pop() : void 0;
|
|
796
796
|
}
|
|
797
797
|
function ss(n) {
|
|
798
|
-
return
|
|
798
|
+
return Ml(is(n)) ? n.pop() : void 0;
|
|
799
799
|
}
|
|
800
|
-
function
|
|
800
|
+
function Ul(n, e) {
|
|
801
801
|
return typeof is(n) == "number" ? n.pop() : e;
|
|
802
802
|
}
|
|
803
803
|
var rs = (function(n) {
|
|
@@ -815,15 +815,15 @@ function Do(n) {
|
|
|
815
815
|
function zo(n) {
|
|
816
816
|
return new TypeError("You provided " + (n !== null && typeof n == "object" ? "an invalid object" : "'" + n + "'") + " where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.");
|
|
817
817
|
}
|
|
818
|
-
function
|
|
818
|
+
function Nl() {
|
|
819
819
|
return typeof Symbol != "function" || !Symbol.iterator ? "@@iterator" : Symbol.iterator;
|
|
820
820
|
}
|
|
821
|
-
var Ho =
|
|
821
|
+
var Ho = Nl();
|
|
822
822
|
function Fo(n) {
|
|
823
823
|
return E(n == null ? void 0 : n[Ho]);
|
|
824
824
|
}
|
|
825
825
|
function jo(n) {
|
|
826
|
-
return
|
|
826
|
+
return bl(this, arguments, function() {
|
|
827
827
|
var t, i, s, r;
|
|
828
828
|
return Oo(this, function(o) {
|
|
829
829
|
switch (o.label) {
|
|
@@ -856,26 +856,26 @@ function jo(n) {
|
|
|
856
856
|
function Bo(n) {
|
|
857
857
|
return E(n == null ? void 0 : n.getReader);
|
|
858
858
|
}
|
|
859
|
-
function
|
|
859
|
+
function ae(n) {
|
|
860
860
|
if (n instanceof j)
|
|
861
861
|
return n;
|
|
862
862
|
if (n != null) {
|
|
863
863
|
if (No(n))
|
|
864
|
-
return Nl(n);
|
|
865
|
-
if (rs(n))
|
|
866
864
|
return Dl(n);
|
|
867
|
-
if (
|
|
865
|
+
if (rs(n))
|
|
868
866
|
return zl(n);
|
|
867
|
+
if (Uo(n))
|
|
868
|
+
return Hl(n);
|
|
869
869
|
if (Do(n))
|
|
870
870
|
return qo(n);
|
|
871
871
|
if (Fo(n))
|
|
872
|
-
return Hl(n);
|
|
873
|
-
if (Bo(n))
|
|
874
872
|
return Fl(n);
|
|
873
|
+
if (Bo(n))
|
|
874
|
+
return jl(n);
|
|
875
875
|
}
|
|
876
876
|
throw zo(n);
|
|
877
877
|
}
|
|
878
|
-
function
|
|
878
|
+
function Dl(n) {
|
|
879
879
|
return new j(function(e) {
|
|
880
880
|
var t = n[ns]();
|
|
881
881
|
if (E(t.subscribe))
|
|
@@ -883,14 +883,14 @@ function Nl(n) {
|
|
|
883
883
|
throw new TypeError("Provided object does not correctly implement Symbol.observable");
|
|
884
884
|
});
|
|
885
885
|
}
|
|
886
|
-
function
|
|
886
|
+
function zl(n) {
|
|
887
887
|
return new j(function(e) {
|
|
888
888
|
for (var t = 0; t < n.length && !e.closed; t++)
|
|
889
889
|
e.next(n[t]);
|
|
890
890
|
e.complete();
|
|
891
891
|
});
|
|
892
892
|
}
|
|
893
|
-
function
|
|
893
|
+
function Hl(n) {
|
|
894
894
|
return new j(function(e) {
|
|
895
895
|
n.then(function(t) {
|
|
896
896
|
e.closed || (e.next(t), e.complete());
|
|
@@ -899,7 +899,7 @@ function zl(n) {
|
|
|
899
899
|
}).then(null, Po);
|
|
900
900
|
});
|
|
901
901
|
}
|
|
902
|
-
function
|
|
902
|
+
function Fl(n) {
|
|
903
903
|
return new j(function(e) {
|
|
904
904
|
var t, i;
|
|
905
905
|
try {
|
|
@@ -922,22 +922,22 @@ function Hl(n) {
|
|
|
922
922
|
}
|
|
923
923
|
function qo(n) {
|
|
924
924
|
return new j(function(e) {
|
|
925
|
-
|
|
925
|
+
Bl(n, e).catch(function(t) {
|
|
926
926
|
return e.error(t);
|
|
927
927
|
});
|
|
928
928
|
});
|
|
929
929
|
}
|
|
930
|
-
function
|
|
930
|
+
function jl(n) {
|
|
931
931
|
return qo(jo(n));
|
|
932
932
|
}
|
|
933
|
-
function
|
|
933
|
+
function Bl(n, e) {
|
|
934
934
|
var t, i, s, r;
|
|
935
|
-
return
|
|
935
|
+
return vl(this, void 0, void 0, function() {
|
|
936
936
|
var o, a;
|
|
937
937
|
return Oo(this, function(l) {
|
|
938
938
|
switch (l.label) {
|
|
939
939
|
case 0:
|
|
940
|
-
l.trys.push([0, 5, 6, 11]), t =
|
|
940
|
+
l.trys.push([0, 5, 6, 11]), t = yl(n), l.label = 1;
|
|
941
941
|
case 1:
|
|
942
942
|
return [4, t.next()];
|
|
943
943
|
case 2:
|
|
@@ -977,7 +977,7 @@ function Ne(n, e, t, i, s) {
|
|
|
977
977
|
return r;
|
|
978
978
|
}
|
|
979
979
|
function Vo(n, e) {
|
|
980
|
-
return e === void 0 && (e = 0),
|
|
980
|
+
return e === void 0 && (e = 0), oe(function(t, i) {
|
|
981
981
|
t.subscribe(Y(i, function(s) {
|
|
982
982
|
return Ne(i, n, function() {
|
|
983
983
|
return i.next(s);
|
|
@@ -994,19 +994,19 @@ function Vo(n, e) {
|
|
|
994
994
|
});
|
|
995
995
|
}
|
|
996
996
|
function Wo(n, e) {
|
|
997
|
-
return e === void 0 && (e = 0),
|
|
997
|
+
return e === void 0 && (e = 0), oe(function(t, i) {
|
|
998
998
|
i.add(n.schedule(function() {
|
|
999
999
|
return t.subscribe(i);
|
|
1000
1000
|
}, e));
|
|
1001
1001
|
});
|
|
1002
1002
|
}
|
|
1003
|
-
function Bl(n, e) {
|
|
1004
|
-
return re(n).pipe(Wo(e), Vo(e));
|
|
1005
|
-
}
|
|
1006
1003
|
function ql(n, e) {
|
|
1007
|
-
return
|
|
1004
|
+
return ae(n).pipe(Wo(e), Vo(e));
|
|
1008
1005
|
}
|
|
1009
1006
|
function Vl(n, e) {
|
|
1007
|
+
return ae(n).pipe(Wo(e), Vo(e));
|
|
1008
|
+
}
|
|
1009
|
+
function Wl(n, e) {
|
|
1010
1010
|
return new j(function(t) {
|
|
1011
1011
|
var i = 0;
|
|
1012
1012
|
return e.schedule(function() {
|
|
@@ -1014,7 +1014,7 @@ function Vl(n, e) {
|
|
|
1014
1014
|
});
|
|
1015
1015
|
});
|
|
1016
1016
|
}
|
|
1017
|
-
function
|
|
1017
|
+
function Gl(n, e) {
|
|
1018
1018
|
return new j(function(t) {
|
|
1019
1019
|
var i;
|
|
1020
1020
|
return Ne(t, e, function() {
|
|
@@ -1047,28 +1047,28 @@ function Go(n, e) {
|
|
|
1047
1047
|
});
|
|
1048
1048
|
});
|
|
1049
1049
|
}
|
|
1050
|
-
function
|
|
1050
|
+
function Zl(n, e) {
|
|
1051
1051
|
return Go(jo(n), e);
|
|
1052
1052
|
}
|
|
1053
|
-
function
|
|
1053
|
+
function Yl(n, e) {
|
|
1054
1054
|
if (n != null) {
|
|
1055
1055
|
if (No(n))
|
|
1056
|
-
return
|
|
1056
|
+
return ql(n, e);
|
|
1057
1057
|
if (rs(n))
|
|
1058
|
-
return
|
|
1058
|
+
return Wl(n, e);
|
|
1059
1059
|
if (Uo(n))
|
|
1060
|
-
return
|
|
1060
|
+
return Vl(n, e);
|
|
1061
1061
|
if (Do(n))
|
|
1062
1062
|
return Go(n, e);
|
|
1063
1063
|
if (Fo(n))
|
|
1064
|
-
return Wl(n, e);
|
|
1065
|
-
if (Bo(n))
|
|
1066
1064
|
return Gl(n, e);
|
|
1065
|
+
if (Bo(n))
|
|
1066
|
+
return Zl(n, e);
|
|
1067
1067
|
}
|
|
1068
1068
|
throw zo(n);
|
|
1069
1069
|
}
|
|
1070
1070
|
function Ye(n, e) {
|
|
1071
|
-
return e ?
|
|
1071
|
+
return e ? Yl(n, e) : ae(n);
|
|
1072
1072
|
}
|
|
1073
1073
|
function Pi() {
|
|
1074
1074
|
for (var n = [], e = 0; e < arguments.length; e++)
|
|
@@ -1077,30 +1077,30 @@ function Pi() {
|
|
|
1077
1077
|
return Ye(n, t);
|
|
1078
1078
|
}
|
|
1079
1079
|
function _n(n, e) {
|
|
1080
|
-
return
|
|
1080
|
+
return oe(function(t, i) {
|
|
1081
1081
|
var s = 0;
|
|
1082
1082
|
t.subscribe(Y(i, function(r) {
|
|
1083
1083
|
i.next(n.call(e, r, s++));
|
|
1084
1084
|
}));
|
|
1085
1085
|
});
|
|
1086
1086
|
}
|
|
1087
|
-
var
|
|
1088
|
-
function
|
|
1089
|
-
return
|
|
1087
|
+
var Ql = Array.isArray;
|
|
1088
|
+
function Xl(n, e) {
|
|
1089
|
+
return Ql(e) ? n.apply(void 0, Xe([], ze(e))) : n(e);
|
|
1090
1090
|
}
|
|
1091
1091
|
function Zo(n) {
|
|
1092
1092
|
return _n(function(e) {
|
|
1093
|
-
return
|
|
1093
|
+
return Xl(n, e);
|
|
1094
1094
|
});
|
|
1095
1095
|
}
|
|
1096
|
-
var
|
|
1097
|
-
function
|
|
1096
|
+
var Kl = Array.isArray, Jl = Object.getPrototypeOf, ec = Object.prototype, tc = Object.keys;
|
|
1097
|
+
function nc(n) {
|
|
1098
1098
|
if (n.length === 1) {
|
|
1099
1099
|
var e = n[0];
|
|
1100
|
-
if (
|
|
1100
|
+
if (Kl(e))
|
|
1101
1101
|
return { args: e, keys: null };
|
|
1102
|
-
if (
|
|
1103
|
-
var t =
|
|
1102
|
+
if (ic(e)) {
|
|
1103
|
+
var t = tc(e);
|
|
1104
1104
|
return {
|
|
1105
1105
|
args: t.map(function(i) {
|
|
1106
1106
|
return e[i];
|
|
@@ -1111,26 +1111,26 @@ function tc(n) {
|
|
|
1111
1111
|
}
|
|
1112
1112
|
return { args: n, keys: null };
|
|
1113
1113
|
}
|
|
1114
|
-
function
|
|
1115
|
-
return n && typeof n == "object" &&
|
|
1114
|
+
function ic(n) {
|
|
1115
|
+
return n && typeof n == "object" && Jl(n) === ec;
|
|
1116
1116
|
}
|
|
1117
|
-
function
|
|
1117
|
+
function sc(n, e) {
|
|
1118
1118
|
return n.reduce(function(t, i, s) {
|
|
1119
1119
|
return t[i] = e[s], t;
|
|
1120
1120
|
}, {});
|
|
1121
1121
|
}
|
|
1122
|
-
function
|
|
1122
|
+
function rc() {
|
|
1123
1123
|
for (var n = [], e = 0; e < arguments.length; e++)
|
|
1124
1124
|
n[e] = arguments[e];
|
|
1125
|
-
var t = ss(n), i = Mo(n), s =
|
|
1125
|
+
var t = ss(n), i = Mo(n), s = nc(n), r = s.args, o = s.keys;
|
|
1126
1126
|
if (r.length === 0)
|
|
1127
1127
|
return Ye([], t);
|
|
1128
|
-
var a = new j(
|
|
1129
|
-
return
|
|
1128
|
+
var a = new j(oc(r, t, o ? function(l) {
|
|
1129
|
+
return sc(o, l);
|
|
1130
1130
|
} : Ct));
|
|
1131
1131
|
return i ? a.pipe(Zo(i)) : a;
|
|
1132
1132
|
}
|
|
1133
|
-
function
|
|
1133
|
+
function oc(n, e, t) {
|
|
1134
1134
|
return t === void 0 && (t = Ct), function(i) {
|
|
1135
1135
|
Or(e, function() {
|
|
1136
1136
|
for (var s = n.length, r = new Array(s), o = s, a = s, l = function(u) {
|
|
@@ -1150,30 +1150,30 @@ function rc(n, e, t) {
|
|
|
1150
1150
|
function Or(n, e, t) {
|
|
1151
1151
|
n ? Ne(t, n, e) : e();
|
|
1152
1152
|
}
|
|
1153
|
-
function
|
|
1153
|
+
function ac(n, e, t, i, s, r, o, a) {
|
|
1154
1154
|
var l = [], c = 0, u = 0, p = !1, d = function() {
|
|
1155
1155
|
p && !l.length && !c && e.complete();
|
|
1156
1156
|
}, g = function($) {
|
|
1157
1157
|
return c < i ? m($) : l.push($);
|
|
1158
1158
|
}, m = function($) {
|
|
1159
1159
|
c++;
|
|
1160
|
-
var
|
|
1161
|
-
|
|
1162
|
-
e.next(
|
|
1160
|
+
var $e = !1;
|
|
1161
|
+
ae(t($, u++)).subscribe(Y(e, function(ce) {
|
|
1162
|
+
e.next(ce);
|
|
1163
1163
|
}, function() {
|
|
1164
|
-
|
|
1164
|
+
$e = !0;
|
|
1165
1165
|
}, void 0, function() {
|
|
1166
|
-
if (
|
|
1166
|
+
if ($e)
|
|
1167
1167
|
try {
|
|
1168
1168
|
c--;
|
|
1169
|
-
for (var
|
|
1170
|
-
var
|
|
1171
|
-
o || m(
|
|
1169
|
+
for (var ce = function() {
|
|
1170
|
+
var Pe = l.shift();
|
|
1171
|
+
o || m(Pe);
|
|
1172
1172
|
}; l.length && c < i; )
|
|
1173
|
-
|
|
1173
|
+
ce();
|
|
1174
1174
|
d();
|
|
1175
|
-
} catch (
|
|
1176
|
-
e.error(
|
|
1175
|
+
} catch (Pe) {
|
|
1176
|
+
e.error(Pe);
|
|
1177
1177
|
}
|
|
1178
1178
|
}));
|
|
1179
1179
|
};
|
|
@@ -1186,32 +1186,32 @@ function qt(n, e, t) {
|
|
|
1186
1186
|
return t === void 0 && (t = 1 / 0), E(e) ? qt(function(i, s) {
|
|
1187
1187
|
return _n(function(r, o) {
|
|
1188
1188
|
return e(i, r, s, o);
|
|
1189
|
-
})(
|
|
1190
|
-
}, t) : (typeof e == "number" && (t = e),
|
|
1191
|
-
return
|
|
1189
|
+
})(ae(n(i, s)));
|
|
1190
|
+
}, t) : (typeof e == "number" && (t = e), oe(function(i, s) {
|
|
1191
|
+
return ac(i, s, n, t);
|
|
1192
1192
|
}));
|
|
1193
1193
|
}
|
|
1194
|
-
function
|
|
1194
|
+
function lc(n) {
|
|
1195
1195
|
return n === void 0 && (n = 1 / 0), qt(Ct, n);
|
|
1196
1196
|
}
|
|
1197
|
-
function
|
|
1197
|
+
function cc(n) {
|
|
1198
1198
|
return new j(function(e) {
|
|
1199
|
-
|
|
1199
|
+
ae(n()).subscribe(e);
|
|
1200
1200
|
});
|
|
1201
1201
|
}
|
|
1202
|
-
var
|
|
1202
|
+
var uc = ["addListener", "removeListener"], hc = ["addEventListener", "removeEventListener"], dc = ["on", "off"];
|
|
1203
1203
|
function An(n, e, t, i) {
|
|
1204
1204
|
if (E(t) && (i = t, t = void 0), i)
|
|
1205
1205
|
return An(n, e, t).pipe(Zo(i));
|
|
1206
|
-
var s = ze(
|
|
1206
|
+
var s = ze(gc(n) ? hc.map(function(a) {
|
|
1207
1207
|
return function(l) {
|
|
1208
1208
|
return n[a](e, l, t);
|
|
1209
1209
|
};
|
|
1210
|
-
}) :
|
|
1210
|
+
}) : pc(n) ? uc.map(Lr(n, e)) : fc(n) ? dc.map(Lr(n, e)) : [], 2), r = s[0], o = s[1];
|
|
1211
1211
|
if (!r && rs(n))
|
|
1212
1212
|
return qt(function(a) {
|
|
1213
1213
|
return An(a, e, t);
|
|
1214
|
-
})(
|
|
1214
|
+
})(ae(n));
|
|
1215
1215
|
if (!r)
|
|
1216
1216
|
throw new TypeError("Invalid event target");
|
|
1217
1217
|
return new j(function(a) {
|
|
@@ -1232,23 +1232,23 @@ function Lr(n, e) {
|
|
|
1232
1232
|
};
|
|
1233
1233
|
};
|
|
1234
1234
|
}
|
|
1235
|
-
function
|
|
1235
|
+
function pc(n) {
|
|
1236
1236
|
return E(n.addListener) && E(n.removeListener);
|
|
1237
1237
|
}
|
|
1238
|
-
function
|
|
1238
|
+
function fc(n) {
|
|
1239
1239
|
return E(n.on) && E(n.off);
|
|
1240
1240
|
}
|
|
1241
|
-
function
|
|
1241
|
+
function gc(n) {
|
|
1242
1242
|
return E(n.addEventListener) && E(n.removeEventListener);
|
|
1243
1243
|
}
|
|
1244
|
-
function
|
|
1244
|
+
function mc() {
|
|
1245
1245
|
for (var n = [], e = 0; e < arguments.length; e++)
|
|
1246
1246
|
n[e] = arguments[e];
|
|
1247
|
-
var t = ss(n), i =
|
|
1248
|
-
return s.length ? s.length === 1 ?
|
|
1247
|
+
var t = ss(n), i = Ul(n, 1 / 0), s = n;
|
|
1248
|
+
return s.length ? s.length === 1 ? ae(s[0]) : lc(i)(Ye(s, t)) : tt;
|
|
1249
1249
|
}
|
|
1250
1250
|
function W(n, e) {
|
|
1251
|
-
return
|
|
1251
|
+
return oe(function(t, i) {
|
|
1252
1252
|
var s = 0;
|
|
1253
1253
|
t.subscribe(Y(i, function(r) {
|
|
1254
1254
|
return n.call(e, r, s++) && i.next(r);
|
|
@@ -1256,20 +1256,20 @@ function W(n, e) {
|
|
|
1256
1256
|
});
|
|
1257
1257
|
}
|
|
1258
1258
|
function Mi(n) {
|
|
1259
|
-
return
|
|
1259
|
+
return oe(function(e, t) {
|
|
1260
1260
|
var i = null, s = !1, r;
|
|
1261
1261
|
i = e.subscribe(Y(t, void 0, void 0, function(o) {
|
|
1262
|
-
r =
|
|
1262
|
+
r = ae(n(o, Mi(n)(e))), i ? (i.unsubscribe(), i = null, r.subscribe(t)) : s = !0;
|
|
1263
1263
|
})), s && (i.unsubscribe(), i = null, r.subscribe(t));
|
|
1264
1264
|
});
|
|
1265
1265
|
}
|
|
1266
1266
|
function vi(n, e) {
|
|
1267
1267
|
return E(e) ? qt(n, e, 1) : qt(n, 1);
|
|
1268
1268
|
}
|
|
1269
|
-
function
|
|
1269
|
+
function me(n) {
|
|
1270
1270
|
return n <= 0 ? function() {
|
|
1271
1271
|
return tt;
|
|
1272
|
-
} :
|
|
1272
|
+
} : oe(function(e, t) {
|
|
1273
1273
|
var i = 0;
|
|
1274
1274
|
e.subscribe(Y(t, function(s) {
|
|
1275
1275
|
++i <= n && (t.next(s), n <= i && t.complete());
|
|
@@ -1280,7 +1280,7 @@ function bi(n) {
|
|
|
1280
1280
|
var e = 1 / 0, t;
|
|
1281
1281
|
return e <= 0 ? function() {
|
|
1282
1282
|
return tt;
|
|
1283
|
-
} :
|
|
1283
|
+
} : oe(function(i, s) {
|
|
1284
1284
|
var r = 0, o, a = function() {
|
|
1285
1285
|
o == null || o.unsubscribe(), o = null;
|
|
1286
1286
|
var c, u;
|
|
@@ -1294,15 +1294,15 @@ function bi(n) {
|
|
|
1294
1294
|
l();
|
|
1295
1295
|
});
|
|
1296
1296
|
}
|
|
1297
|
-
function
|
|
1298
|
-
return
|
|
1297
|
+
function Oe(n, e) {
|
|
1298
|
+
return oe(function(t, i) {
|
|
1299
1299
|
var s = null, r = 0, o = !1, a = function() {
|
|
1300
1300
|
return o && !s && i.complete();
|
|
1301
1301
|
};
|
|
1302
1302
|
t.subscribe(Y(i, function(l) {
|
|
1303
1303
|
s == null || s.unsubscribe();
|
|
1304
1304
|
var c = 0, u = r++;
|
|
1305
|
-
|
|
1305
|
+
ae(n(l, u)).subscribe(s = Y(i, function(p) {
|
|
1306
1306
|
return i.next(e ? e(l, p, u, c++) : p);
|
|
1307
1307
|
}, function() {
|
|
1308
1308
|
s = null, a();
|
|
@@ -1313,15 +1313,15 @@ function Ae(n, e) {
|
|
|
1313
1313
|
});
|
|
1314
1314
|
}
|
|
1315
1315
|
function z(n) {
|
|
1316
|
-
return
|
|
1317
|
-
|
|
1316
|
+
return oe(function(e, t) {
|
|
1317
|
+
ae(n).subscribe(Y(t, function() {
|
|
1318
1318
|
return t.complete();
|
|
1319
1319
|
}, En)), !t.closed && e.subscribe(t);
|
|
1320
1320
|
});
|
|
1321
1321
|
}
|
|
1322
|
-
function
|
|
1322
|
+
function vc(n, e, t) {
|
|
1323
1323
|
var i = E(n) || e || t ? { next: n, error: e, complete: t } : n;
|
|
1324
|
-
return i ?
|
|
1324
|
+
return i ? oe(function(s, r) {
|
|
1325
1325
|
var o;
|
|
1326
1326
|
(o = i.subscribe) === null || o === void 0 || o.call(i);
|
|
1327
1327
|
var a = !0;
|
|
@@ -1344,11 +1344,11 @@ function Ui() {
|
|
|
1344
1344
|
for (var n = [], e = 0; e < arguments.length; e++)
|
|
1345
1345
|
n[e] = arguments[e];
|
|
1346
1346
|
var t = Mo(n);
|
|
1347
|
-
return
|
|
1347
|
+
return oe(function(i, s) {
|
|
1348
1348
|
for (var r = n.length, o = new Array(r), a = n.map(function() {
|
|
1349
1349
|
return !1;
|
|
1350
1350
|
}), l = !1, c = function(p) {
|
|
1351
|
-
|
|
1351
|
+
ae(n[p]).subscribe(Y(s, function(d) {
|
|
1352
1352
|
o[p] = d, !l && !a[p] && (a[p] = !0, (l = a.every(Ct)) && (a = null));
|
|
1353
1353
|
}, En));
|
|
1354
1354
|
}, u = 0; u < r; u++)
|
|
@@ -1386,10 +1386,10 @@ class os {
|
|
|
1386
1386
|
// }
|
|
1387
1387
|
}
|
|
1388
1388
|
var F = /* @__PURE__ */ ((n) => (n.User = "user", n.Agent = "agent", n.System = "system", n))(F || {});
|
|
1389
|
-
const
|
|
1389
|
+
const bc = () => "10000000-1000-4000-8000-100000000000".replace(
|
|
1390
1390
|
/[018]/g,
|
|
1391
1391
|
(n) => (+n ^ crypto.getRandomValues(new Uint8Array(1))[0] & 15 >> +n / 4).toString(16)
|
|
1392
|
-
), Yo = () => typeof crypto.randomUUID == "function" ? crypto.randomUUID() :
|
|
1392
|
+
), Yo = () => typeof crypto.randomUUID == "function" ? crypto.randomUUID() : bc();
|
|
1393
1393
|
function Rr(n) {
|
|
1394
1394
|
let e = n;
|
|
1395
1395
|
const t = /https?:\/\/[^\s<]+/gi, i = /<a [^>]*href="([^"]*)"[^>]*>[^<]*<\/a>/g, s = n.match(t) || [], r = [];
|
|
@@ -1412,7 +1412,7 @@ function Rr(n) {
|
|
|
1412
1412
|
}
|
|
1413
1413
|
function Ni(n) {
|
|
1414
1414
|
if (n.includes("aceChatGuideTitle"))
|
|
1415
|
-
return
|
|
1415
|
+
return yc(n);
|
|
1416
1416
|
const e = /<a [^>]*>https?:\/\/[^<]*<\/a>/gim;
|
|
1417
1417
|
return n.replace(e, (t) => {
|
|
1418
1418
|
const i = Qo(t);
|
|
@@ -1446,7 +1446,7 @@ function Qo(n) {
|
|
|
1446
1446
|
function Di(n, e) {
|
|
1447
1447
|
return n.replace(/>[^<]*<\/a>/, `>${e}</a>`);
|
|
1448
1448
|
}
|
|
1449
|
-
function
|
|
1449
|
+
function yc(n) {
|
|
1450
1450
|
const e = /<a [^>]*aceChatGuideTitle[^>]*>[^<]*<\/a>/gm;
|
|
1451
1451
|
return n.replace(e, (t) => {
|
|
1452
1452
|
const i = Qo(t);
|
|
@@ -1456,7 +1456,7 @@ function bc(n) {
|
|
|
1456
1456
|
return o ? Di(t, o) : t;
|
|
1457
1457
|
});
|
|
1458
1458
|
}
|
|
1459
|
-
class
|
|
1459
|
+
class te {
|
|
1460
1460
|
constructor(e, t, i) {
|
|
1461
1461
|
this.type = e, this.sender = t, this.messages = i, this.status = "delivered", this.didUpdate = new P(), this.actions$ = new P(), this.remove$ = new P(), this.timestamp = Date.now(), this.id = Yo();
|
|
1462
1462
|
}
|
|
@@ -1474,12 +1474,12 @@ class ee {
|
|
|
1474
1474
|
this.remove$.next();
|
|
1475
1475
|
}
|
|
1476
1476
|
}
|
|
1477
|
-
class
|
|
1477
|
+
class $c {
|
|
1478
1478
|
constructor(e) {
|
|
1479
1479
|
this.name = e, this.print$ = new P();
|
|
1480
1480
|
}
|
|
1481
1481
|
print(e, t = "html", i = this.name) {
|
|
1482
|
-
const s = new
|
|
1482
|
+
const s = new te(
|
|
1483
1483
|
F.Agent,
|
|
1484
1484
|
{ name: i },
|
|
1485
1485
|
[
|
|
@@ -1494,12 +1494,12 @@ class yc {
|
|
|
1494
1494
|
return this.print$.asObservable();
|
|
1495
1495
|
}
|
|
1496
1496
|
}
|
|
1497
|
-
class
|
|
1497
|
+
class wc {
|
|
1498
1498
|
constructor(e) {
|
|
1499
1499
|
this.name = e, this.print$ = new P();
|
|
1500
1500
|
}
|
|
1501
1501
|
print(e) {
|
|
1502
|
-
const t = new
|
|
1502
|
+
const t = new te(
|
|
1503
1503
|
F.User,
|
|
1504
1504
|
{ name: this.name },
|
|
1505
1505
|
[
|
|
@@ -1514,12 +1514,12 @@ class $c {
|
|
|
1514
1514
|
return this.print$.asObservable();
|
|
1515
1515
|
}
|
|
1516
1516
|
}
|
|
1517
|
-
class
|
|
1517
|
+
class xc {
|
|
1518
1518
|
constructor() {
|
|
1519
1519
|
this.print$ = new P(), this.name = "system";
|
|
1520
1520
|
}
|
|
1521
1521
|
print(e) {
|
|
1522
|
-
const t = new
|
|
1522
|
+
const t = new te(
|
|
1523
1523
|
F.System,
|
|
1524
1524
|
{ name: this.name },
|
|
1525
1525
|
[
|
|
@@ -1534,12 +1534,12 @@ class wc {
|
|
|
1534
1534
|
return this.print$.asObservable();
|
|
1535
1535
|
}
|
|
1536
1536
|
}
|
|
1537
|
-
class
|
|
1537
|
+
class kc {
|
|
1538
1538
|
constructor(e, t) {
|
|
1539
|
-
this.name = e, this.component = t, this.print$ = new P(), this.typingState$ = new
|
|
1539
|
+
this.name = e, this.component = t, this.print$ = new P(), this.typingState$ = new de(!1), this.complete$ = new P(), this.system = this.createSystem(), this.rehydrate$ = new P(), this.saveToCurrentSession$ = new P(), this.showChatOverlay$ = new de(!1), this.onComplete = () => this.complete$.asObservable();
|
|
1540
1540
|
}
|
|
1541
1541
|
connect(e = {}) {
|
|
1542
|
-
this.complete$.pipe(
|
|
1542
|
+
this.complete$.pipe(me(1)).subscribe(() => {
|
|
1543
1543
|
this.disconnected();
|
|
1544
1544
|
});
|
|
1545
1545
|
}
|
|
@@ -1551,7 +1551,7 @@ class xc {
|
|
|
1551
1551
|
this.print(F.User, e.text);
|
|
1552
1552
|
}
|
|
1553
1553
|
print(e, t) {
|
|
1554
|
-
const i = new
|
|
1554
|
+
const i = new te(
|
|
1555
1555
|
e,
|
|
1556
1556
|
{
|
|
1557
1557
|
name: ""
|
|
@@ -1568,19 +1568,19 @@ class xc {
|
|
|
1568
1568
|
return this.print$.next(e), e;
|
|
1569
1569
|
}
|
|
1570
1570
|
createAgent(e) {
|
|
1571
|
-
const t = new
|
|
1571
|
+
const t = new $c(e);
|
|
1572
1572
|
return t.subscribe().subscribe((i) => {
|
|
1573
1573
|
this.playNotification(), this.printEntry(i);
|
|
1574
1574
|
}), t;
|
|
1575
1575
|
}
|
|
1576
1576
|
createUser(e) {
|
|
1577
|
-
const t = new
|
|
1577
|
+
const t = new wc(e);
|
|
1578
1578
|
return t.subscribe().subscribe((i) => {
|
|
1579
1579
|
this.printEntry(i);
|
|
1580
1580
|
}), t;
|
|
1581
1581
|
}
|
|
1582
1582
|
createSystem() {
|
|
1583
|
-
const e = new
|
|
1583
|
+
const e = new xc();
|
|
1584
1584
|
return e.subscribe().subscribe((t) => {
|
|
1585
1585
|
this.printEntry(t);
|
|
1586
1586
|
}), e;
|
|
@@ -1635,14 +1635,14 @@ let Xo = class {
|
|
|
1635
1635
|
return this.cssText;
|
|
1636
1636
|
}
|
|
1637
1637
|
};
|
|
1638
|
-
const
|
|
1638
|
+
const Sc = (n) => new Xo(typeof n == "string" ? n : n + "", void 0, ls), O = (n, ...e) => {
|
|
1639
1639
|
const t = n.length === 1 ? n[0] : e.reduce(((i, s, r) => i + ((o) => {
|
|
1640
1640
|
if (o._$cssResult$ === !0) return o.cssText;
|
|
1641
1641
|
if (typeof o == "number") return o;
|
|
1642
1642
|
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.");
|
|
1643
1643
|
})(s) + n[r + 1]), n[0]);
|
|
1644
1644
|
return new Xo(t, n, ls);
|
|
1645
|
-
},
|
|
1645
|
+
}, Cc = (n, e) => {
|
|
1646
1646
|
if (as) n.adoptedStyleSheets = e.map(((t) => t instanceof CSSStyleSheet ? t : t.styleSheet));
|
|
1647
1647
|
else for (const t of e) {
|
|
1648
1648
|
const i = document.createElement("style"), s = xn.litNonce;
|
|
@@ -1651,17 +1651,17 @@ const kc = (n) => new Xo(typeof n == "string" ? n : n + "", void 0, ls), T = (n,
|
|
|
1651
1651
|
}, Pr = as ? (n) => n : (n) => n instanceof CSSStyleSheet ? ((e) => {
|
|
1652
1652
|
let t = "";
|
|
1653
1653
|
for (const i of e.cssRules) t += i.cssText;
|
|
1654
|
-
return
|
|
1654
|
+
return Sc(t);
|
|
1655
1655
|
})(n) : n;
|
|
1656
1656
|
/**
|
|
1657
1657
|
* @license
|
|
1658
1658
|
* Copyright 2017 Google LLC
|
|
1659
1659
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1660
1660
|
*/
|
|
1661
|
-
const { is:
|
|
1661
|
+
const { is: Ec, defineProperty: _c, getOwnPropertyDescriptor: Ac, getOwnPropertyNames: Tc, getOwnPropertySymbols: Oc, getPrototypeOf: Lc } = Object, De = globalThis, Mr = De.trustedTypes, Rc = Mr ? Mr.emptyScript : "", yi = De.reactiveElementPolyfillSupport, zt = (n, e) => n, Tn = { toAttribute(n, e) {
|
|
1662
1662
|
switch (e) {
|
|
1663
1663
|
case Boolean:
|
|
1664
|
-
n = n ?
|
|
1664
|
+
n = n ? Rc : null;
|
|
1665
1665
|
break;
|
|
1666
1666
|
case Object:
|
|
1667
1667
|
case Array:
|
|
@@ -1686,7 +1686,7 @@ const { is: Cc, defineProperty: Ec, getOwnPropertyDescriptor: _c, getOwnProperty
|
|
|
1686
1686
|
}
|
|
1687
1687
|
}
|
|
1688
1688
|
return t;
|
|
1689
|
-
} }, cs = (n, e) => !
|
|
1689
|
+
} }, cs = (n, e) => !Ec(n, e), Ur = { attribute: !0, type: String, converter: Tn, reflect: !1, useDefault: !1, hasChanged: cs };
|
|
1690
1690
|
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), De.litPropertyMetadata ?? (De.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
1691
1691
|
let ht = class extends HTMLElement {
|
|
1692
1692
|
static addInitializer(e) {
|
|
@@ -1698,11 +1698,11 @@ let ht = class extends HTMLElement {
|
|
|
1698
1698
|
static createProperty(e, t = Ur) {
|
|
1699
1699
|
if (t.state && (t.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(e) && ((t = Object.create(t)).wrapped = !0), this.elementProperties.set(e, t), !t.noAccessor) {
|
|
1700
1700
|
const i = Symbol(), s = this.getPropertyDescriptor(e, i, t);
|
|
1701
|
-
s !== void 0 &&
|
|
1701
|
+
s !== void 0 && _c(this.prototype, e, s);
|
|
1702
1702
|
}
|
|
1703
1703
|
}
|
|
1704
1704
|
static getPropertyDescriptor(e, t, i) {
|
|
1705
|
-
const { get: s, set: r } =
|
|
1705
|
+
const { get: s, set: r } = Ac(this.prototype, e) ?? { get() {
|
|
1706
1706
|
return this[t];
|
|
1707
1707
|
}, set(o) {
|
|
1708
1708
|
this[t] = o;
|
|
@@ -1717,13 +1717,13 @@ let ht = class extends HTMLElement {
|
|
|
1717
1717
|
}
|
|
1718
1718
|
static _$Ei() {
|
|
1719
1719
|
if (this.hasOwnProperty(zt("elementProperties"))) return;
|
|
1720
|
-
const e =
|
|
1720
|
+
const e = Lc(this);
|
|
1721
1721
|
e.finalize(), e.l !== void 0 && (this.l = [...e.l]), this.elementProperties = new Map(e.elementProperties);
|
|
1722
1722
|
}
|
|
1723
1723
|
static finalize() {
|
|
1724
1724
|
if (this.hasOwnProperty(zt("finalized"))) return;
|
|
1725
1725
|
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(zt("properties"))) {
|
|
1726
|
-
const t = this.properties, i = [...
|
|
1726
|
+
const t = this.properties, i = [...Tc(t), ...Oc(t)];
|
|
1727
1727
|
for (const s of i) this.createProperty(s, t[s]);
|
|
1728
1728
|
}
|
|
1729
1729
|
const e = this[Symbol.metadata];
|
|
@@ -1772,7 +1772,7 @@ let ht = class extends HTMLElement {
|
|
|
1772
1772
|
}
|
|
1773
1773
|
createRenderRoot() {
|
|
1774
1774
|
const e = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
1775
|
-
return
|
|
1775
|
+
return Cc(e, this.constructor.elementStyles), e;
|
|
1776
1776
|
}
|
|
1777
1777
|
connectedCallback() {
|
|
1778
1778
|
var e;
|
|
@@ -1897,14 +1897,14 @@ ht.elementStyles = [], ht.shadowRootOptions = { mode: "open" }, ht[zt("elementPr
|
|
|
1897
1897
|
* Copyright 2017 Google LLC
|
|
1898
1898
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1899
1899
|
*/
|
|
1900
|
-
const Ht = globalThis, On = Ht.trustedTypes, Nr = On ? On.createPolicy("lit-html", { createHTML: (n) => n }) : void 0, Ko = "$lit$", Me = `lit$${Math.random().toFixed(9).slice(2)}$`, Jo = "?" + Me,
|
|
1900
|
+
const Ht = globalThis, On = Ht.trustedTypes, Nr = On ? On.createPolicy("lit-html", { createHTML: (n) => n }) : void 0, Ko = "$lit$", Me = `lit$${Math.random().toFixed(9).slice(2)}$`, Jo = "?" + Me, Ic = `<${Jo}>`, Ke = document, Vt = () => Ke.createComment(""), Wt = (n) => n === null || typeof n != "object" && typeof n != "function", us = Array.isArray, Pc = (n) => us(n) || typeof (n == null ? void 0 : n[Symbol.iterator]) == "function", $i = `[
|
|
1901
1901
|
\f\r]`, Lt = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Dr = /-->/g, zr = />/g, Ve = RegExp(`>|${$i}(?:([^\\s"'>=/]+)(${$i}*=${$i}*(?:[^
|
|
1902
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), Hr = /'/g, Fr = /"/g, ea = /^(?:script|style|textarea|title)$/i,
|
|
1902
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), Hr = /'/g, Fr = /"/g, ea = /^(?:script|style|textarea|title)$/i, Mc = (n) => (e, ...t) => ({ _$litType$: n, strings: e, values: t }), y = Mc(1), Le = Symbol.for("lit-noChange"), w = Symbol.for("lit-nothing"), jr = /* @__PURE__ */ new WeakMap(), Ge = Ke.createTreeWalker(Ke, 129);
|
|
1903
1903
|
function ta(n, e) {
|
|
1904
1904
|
if (!us(n) || !n.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
1905
1905
|
return Nr !== void 0 ? Nr.createHTML(e) : e;
|
|
1906
1906
|
}
|
|
1907
|
-
const
|
|
1907
|
+
const Uc = (n, e) => {
|
|
1908
1908
|
const t = n.length - 1, i = [];
|
|
1909
1909
|
let s, r = e === 2 ? "<svg>" : e === 3 ? "<math>" : "", o = Lt;
|
|
1910
1910
|
for (let a = 0; a < t; a++) {
|
|
@@ -1912,7 +1912,7 @@ const Mc = (n, e) => {
|
|
|
1912
1912
|
let c, u, p = -1, d = 0;
|
|
1913
1913
|
for (; d < l.length && (o.lastIndex = d, u = o.exec(l), u !== null); ) d = o.lastIndex, o === Lt ? u[1] === "!--" ? o = Dr : u[1] !== void 0 ? o = zr : u[2] !== void 0 ? (ea.test(u[2]) && (s = RegExp("</" + u[2], "g")), o = Ve) : u[3] !== void 0 && (o = Ve) : o === Ve ? u[0] === ">" ? (o = s ?? Lt, p = -1) : u[1] === void 0 ? p = -2 : (p = o.lastIndex - u[2].length, c = u[1], o = u[3] === void 0 ? Ve : u[3] === '"' ? Fr : Hr) : o === Fr || o === Hr ? o = Ve : o === Dr || o === zr ? o = Lt : (o = Ve, s = void 0);
|
|
1914
1914
|
const g = o === Ve && n[a + 1].startsWith("/>") ? " " : "";
|
|
1915
|
-
r += o === Lt ? l +
|
|
1915
|
+
r += o === Lt ? l + Ic : p >= 0 ? (i.push(c), l.slice(0, p) + Ko + l.slice(p) + Me + g) : l + Me + (p === -2 ? a : g);
|
|
1916
1916
|
}
|
|
1917
1917
|
return [ta(n, r + (n[t] || "<?>") + (e === 2 ? "</svg>" : e === 3 ? "</math>" : "")), i];
|
|
1918
1918
|
};
|
|
@@ -1921,7 +1921,7 @@ let zi = class na {
|
|
|
1921
1921
|
let s;
|
|
1922
1922
|
this.parts = [];
|
|
1923
1923
|
let r = 0, o = 0;
|
|
1924
|
-
const a = e.length - 1, l = this.parts, [c, u] =
|
|
1924
|
+
const a = e.length - 1, l = this.parts, [c, u] = Uc(e, t);
|
|
1925
1925
|
if (this.el = na.createElement(c, i), Ge.currentNode = this.el.content, t === 2 || t === 3) {
|
|
1926
1926
|
const p = this.el.content.firstChild;
|
|
1927
1927
|
p.replaceWith(...p.childNodes);
|
|
@@ -1930,7 +1930,7 @@ let zi = class na {
|
|
|
1930
1930
|
if (s.nodeType === 1) {
|
|
1931
1931
|
if (s.hasAttributes()) for (const p of s.getAttributeNames()) if (p.endsWith(Ko)) {
|
|
1932
1932
|
const d = u[o++], g = s.getAttribute(p).split(Me), m = /([.?@])?(.*)/.exec(d);
|
|
1933
|
-
l.push({ type: 1, index: r, name: m[2], strings: g, ctor: m[1] === "." ?
|
|
1933
|
+
l.push({ type: 1, index: r, name: m[2], strings: g, ctor: m[1] === "." ? Dc : m[1] === "?" ? zc : m[1] === "@" ? Hc : Yn }), s.removeAttribute(p);
|
|
1934
1934
|
} else p.startsWith(Me) && (l.push({ type: 6, index: r }), s.removeAttribute(p));
|
|
1935
1935
|
if (ea.test(s.tagName)) {
|
|
1936
1936
|
const p = s.textContent.split(Me), d = p.length - 1;
|
|
@@ -1955,12 +1955,12 @@ let zi = class na {
|
|
|
1955
1955
|
};
|
|
1956
1956
|
function $t(n, e, t = n, i) {
|
|
1957
1957
|
var o, a;
|
|
1958
|
-
if (e ===
|
|
1958
|
+
if (e === Le) return e;
|
|
1959
1959
|
let s = i !== void 0 ? (o = t._$Co) == null ? void 0 : o[i] : t._$Cl;
|
|
1960
1960
|
const r = Wt(e) ? void 0 : e._$litDirective$;
|
|
1961
1961
|
return (s == null ? void 0 : s.constructor) !== r && ((a = s == null ? void 0 : s._$AO) == null || a.call(s, !1), r === void 0 ? s = void 0 : (s = new r(n), s._$AT(n, t, i)), i !== void 0 ? (t._$Co ?? (t._$Co = []))[i] = s : t._$Cl = s), s !== void 0 && (e = $t(n, s._$AS(n, e.values), s, i)), e;
|
|
1962
1962
|
}
|
|
1963
|
-
class
|
|
1963
|
+
class Nc {
|
|
1964
1964
|
constructor(e, t) {
|
|
1965
1965
|
this._$AV = [], this._$AN = void 0, this._$AD = e, this._$AM = t;
|
|
1966
1966
|
}
|
|
@@ -1977,7 +1977,7 @@ class Uc {
|
|
|
1977
1977
|
for (; l !== void 0; ) {
|
|
1978
1978
|
if (o === l.index) {
|
|
1979
1979
|
let c;
|
|
1980
|
-
l.type === 2 ? c = new nn(r, r.nextSibling, this, e) : l.type === 1 ? c = new l.ctor(r, l.name, l.strings, this, e) : l.type === 6 && (c = new
|
|
1980
|
+
l.type === 2 ? c = new nn(r, r.nextSibling, this, e) : l.type === 1 ? c = new l.ctor(r, l.name, l.strings, this, e) : l.type === 6 && (c = new Fc(r, this, e)), this._$AV.push(c), l = i[++a];
|
|
1981
1981
|
}
|
|
1982
1982
|
o !== (l == null ? void 0 : l.index) && (r = Ge.nextNode(), o++);
|
|
1983
1983
|
}
|
|
@@ -2008,7 +2008,7 @@ class nn {
|
|
|
2008
2008
|
return this._$AB;
|
|
2009
2009
|
}
|
|
2010
2010
|
_$AI(e, t = this) {
|
|
2011
|
-
e = $t(this, e, t), Wt(e) ? e === w || e == null || e === "" ? (this._$AH !== w && this._$AR(), this._$AH = w) : e !== this._$AH && e !==
|
|
2011
|
+
e = $t(this, e, t), Wt(e) ? e === w || e == null || e === "" ? (this._$AH !== w && this._$AR(), this._$AH = w) : e !== this._$AH && e !== Le && this._(e) : e._$litType$ !== void 0 ? this.$(e) : e.nodeType !== void 0 ? this.T(e) : Pc(e) ? this.k(e) : this._(e);
|
|
2012
2012
|
}
|
|
2013
2013
|
O(e) {
|
|
2014
2014
|
return this._$AA.parentNode.insertBefore(e, this._$AB);
|
|
@@ -2024,7 +2024,7 @@ class nn {
|
|
|
2024
2024
|
const { values: t, _$litType$: i } = e, s = typeof i == "number" ? this._$AC(e) : (i.el === void 0 && (i.el = zi.createElement(ta(i.h, i.h[0]), this.options)), i);
|
|
2025
2025
|
if (((r = this._$AH) == null ? void 0 : r._$AD) === s) this._$AH.p(t);
|
|
2026
2026
|
else {
|
|
2027
|
-
const o = new
|
|
2027
|
+
const o = new Nc(s, this), a = o.u(this.options);
|
|
2028
2028
|
o.p(t), this.T(a), this._$AH = o;
|
|
2029
2029
|
}
|
|
2030
2030
|
}
|
|
@@ -2064,11 +2064,11 @@ class Yn {
|
|
|
2064
2064
|
_$AI(e, t = this, i, s) {
|
|
2065
2065
|
const r = this.strings;
|
|
2066
2066
|
let o = !1;
|
|
2067
|
-
if (r === void 0) e = $t(this, e, t, 0), o = !Wt(e) || e !== this._$AH && e !==
|
|
2067
|
+
if (r === void 0) e = $t(this, e, t, 0), o = !Wt(e) || e !== this._$AH && e !== Le, o && (this._$AH = e);
|
|
2068
2068
|
else {
|
|
2069
2069
|
const a = e;
|
|
2070
2070
|
let l, c;
|
|
2071
|
-
for (e = r[0], l = 0; l < r.length - 1; l++) c = $t(this, a[i + l], t, l), c ===
|
|
2071
|
+
for (e = r[0], l = 0; l < r.length - 1; l++) c = $t(this, a[i + l], t, l), c === Le && (c = this._$AH[l]), o || (o = !Wt(c) || c !== this._$AH[l]), c === w ? e = w : e !== w && (e += (c ?? "") + r[l + 1]), this._$AH[l] = c;
|
|
2072
2072
|
}
|
|
2073
2073
|
o && !s && this.j(e);
|
|
2074
2074
|
}
|
|
@@ -2076,7 +2076,7 @@ class Yn {
|
|
|
2076
2076
|
e === w ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, e ?? "");
|
|
2077
2077
|
}
|
|
2078
2078
|
}
|
|
2079
|
-
let
|
|
2079
|
+
let Dc = class extends Yn {
|
|
2080
2080
|
constructor() {
|
|
2081
2081
|
super(...arguments), this.type = 3;
|
|
2082
2082
|
}
|
|
@@ -2084,7 +2084,7 @@ let Nc = class extends Yn {
|
|
|
2084
2084
|
this.element[this.name] = e === w ? void 0 : e;
|
|
2085
2085
|
}
|
|
2086
2086
|
};
|
|
2087
|
-
class
|
|
2087
|
+
class zc extends Yn {
|
|
2088
2088
|
constructor() {
|
|
2089
2089
|
super(...arguments), this.type = 4;
|
|
2090
2090
|
}
|
|
@@ -2092,12 +2092,12 @@ class Dc extends Yn {
|
|
|
2092
2092
|
this.element.toggleAttribute(this.name, !!e && e !== w);
|
|
2093
2093
|
}
|
|
2094
2094
|
}
|
|
2095
|
-
class
|
|
2095
|
+
class Hc extends Yn {
|
|
2096
2096
|
constructor(e, t, i, s, r) {
|
|
2097
2097
|
super(e, t, i, s, r), this.type = 5;
|
|
2098
2098
|
}
|
|
2099
2099
|
_$AI(e, t = this) {
|
|
2100
|
-
if ((e = $t(this, e, t, 0) ?? w) ===
|
|
2100
|
+
if ((e = $t(this, e, t, 0) ?? w) === Le) return;
|
|
2101
2101
|
const i = this._$AH, s = e === w && i !== w || e.capture !== i.capture || e.once !== i.once || e.passive !== i.passive, r = e !== w && (i === w || s);
|
|
2102
2102
|
s && this.element.removeEventListener(this.name, this, i), r && this.element.addEventListener(this.name, this, e), this._$AH = e;
|
|
2103
2103
|
}
|
|
@@ -2106,7 +2106,7 @@ class zc extends Yn {
|
|
|
2106
2106
|
typeof this._$AH == "function" ? this._$AH.call(((t = this.options) == null ? void 0 : t.host) ?? this.element, e) : this._$AH.handleEvent(e);
|
|
2107
2107
|
}
|
|
2108
2108
|
}
|
|
2109
|
-
class
|
|
2109
|
+
class Fc {
|
|
2110
2110
|
constructor(e, t, i) {
|
|
2111
2111
|
this.element = e, this.type = 6, this._$AN = void 0, this._$AM = t, this.options = i;
|
|
2112
2112
|
}
|
|
@@ -2119,7 +2119,7 @@ class Hc {
|
|
|
2119
2119
|
}
|
|
2120
2120
|
const wi = Ht.litHtmlPolyfillSupport;
|
|
2121
2121
|
wi == null || wi(zi, nn), (Ht.litHtmlVersions ?? (Ht.litHtmlVersions = [])).push("3.3.1");
|
|
2122
|
-
const
|
|
2122
|
+
const jc = (n, e, t) => {
|
|
2123
2123
|
const i = (t == null ? void 0 : t.renderBefore) ?? e;
|
|
2124
2124
|
let s = i._$litPart$;
|
|
2125
2125
|
if (s === void 0) {
|
|
@@ -2145,7 +2145,7 @@ let _ = class extends ht {
|
|
|
2145
2145
|
}
|
|
2146
2146
|
update(e) {
|
|
2147
2147
|
const t = this.render();
|
|
2148
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this._$Do =
|
|
2148
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this._$Do = jc(t, this.renderRoot, this.renderOptions);
|
|
2149
2149
|
}
|
|
2150
2150
|
connectedCallback() {
|
|
2151
2151
|
var e;
|
|
@@ -2156,7 +2156,7 @@ let _ = class extends ht {
|
|
|
2156
2156
|
super.disconnectedCallback(), (e = this._$Do) == null || e.setConnected(!1);
|
|
2157
2157
|
}
|
|
2158
2158
|
render() {
|
|
2159
|
-
return
|
|
2159
|
+
return Le;
|
|
2160
2160
|
}
|
|
2161
2161
|
};
|
|
2162
2162
|
var To;
|
|
@@ -2164,7 +2164,7 @@ _._$litElement$ = !0, _.finalized = !0, (To = Qe.litElementHydrateSupport) == nu
|
|
|
2164
2164
|
const xi = Qe.litElementPolyfillSupport;
|
|
2165
2165
|
xi == null || xi({ LitElement: _ });
|
|
2166
2166
|
(Qe.litElementVersions ?? (Qe.litElementVersions = [])).push("4.2.1");
|
|
2167
|
-
const jc = { 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>' }, ia = { svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M52 7H24C19.5838 7.00505 16.0051 10.5838 16 15V23H12C7.58382 23.0051 4.00505 26.5838 4 31V43C4.00505 47.4162 7.58382 50.9949 12 51H19.1699L24.8789 56.7075C25.737 57.5654 27.0273 57.8219 28.1482 57.3575C29.2692 56.8931 30 55.7993 30 54.5859V51H39.999C44.4152 50.995 47.994 47.4162 47.999 43V35H52C56.4162 34.9949 59.9949 31.4162 60 27V15C59.9949 10.5838 56.4162 7.00505 52 7ZM43.999 43C43.9967 45.2082 42.2072 46.9977 39.999 47H26V52.1724L20.8262 47H12C9.79184 46.9976 8.00235 45.2082 8 43V31C8.00235 28.7918 9.79184 27.0024 12 27H16C16.0051 31.4162 19.5838 34.9949 24 35H30V38.5859C29.999 39.7998 30.7298 40.8945 31.8512 41.359C32.9726 41.8236 34.2634 41.5664 35.1211 40.7075L40.8291 35H43.999V43ZM56 27C55.9977 29.2082 54.2082 30.9976 52 31H39.1729L34 36.1719V31H24C21.7918 30.9976 20.0024 29.2082 20 27V15C20.0024 12.7918 21.7918 11.0024 24 11H52C54.2082 11.0024 55.9977 12.7918 56 15V27Z"/></svg>' }, Bc = { 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>' }, qc = { 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>' }, Vc = { svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M57.5438 13.4967L28.717 50.5596C27.9537 51.5407 26.8061 52.147 25.5654 52.2248C25.4755 52.2301 25.3856 52.2332 25.2967 52.2332C24.1476 52.233 23.0455 51.7763 22.233 50.9637L6.63458 35.3654C6.08729 34.8181 5.87354 34.0204 6.07387 33.2728C6.27419 32.5252 6.85815 31.9412 7.60577 31.7409C8.35339 31.5406 9.15109 31.7543 9.69838 32.3016L25.2967 47.8999L54.1225 10.837C54.5976 10.2258 55.3626 9.91453 56.1295 10.0204C56.8963 10.1263 57.5484 10.6332 57.8402 11.3502C58.1319 12.0673 58.0189 12.8855 57.5438 13.4967Z"/></svg>' }, sa = { 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>' }, Wc = { 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>' }, hs = { 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.365 48.3012C51.9123 48.8485 52.1261 49.6462 51.9258 50.3939C51.7254 51.1415 51.1415 51.7254 50.3939 51.9258C49.6462 52.1261 48.8485 51.9123 48.3012 51.365L32.4998 35.5636L16.6984 51.365C16.1511 51.9123 15.3534 52.1261 14.6058 51.9258C13.8581 51.7254 13.2742 51.1415 13.0739 50.3939C12.8735 49.6462 13.0873 48.8485 13.6346 48.3012L29.436 32.4998L13.6346 16.6984C13.0873 16.1511 12.8735 15.3534 13.0739 14.6058C13.2742 13.8581 13.8581 13.2742 14.6058 13.0739C15.3534 12.8735 16.1511 13.0873 16.6984 13.6346L32.4998 29.436L48.3012 13.6346C49.1473 12.7885 50.519 12.7885 51.365 13.6346C52.2111 14.4806 52.2111 15.8523 51.365 16.6984L35.5636 32.4998L51.365 48.3012Z"/></svg>' }, Gc = { svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M58.2618 43.8838L38.8585 11.5469C37.4136 9.13651 34.8097 7.66134 31.9994 7.66113C29.1891 7.66093 26.585 9.13572 25.1397 11.5459L5.73642 43.8838C4.25367 46.3552 4.21482 49.4331 5.6347 51.9411C7.05459 54.4492 9.71372 55.9997 12.5958 56H51.4024C54.2845 55.9997 56.9436 54.4492 58.3635 51.9411C59.7834 49.4331 59.7446 46.3552 58.2618 43.8838ZM29.9991 36.9772V25.1569C29.9983 24.6198 30.1056 24.0879 30.3148 23.5932C30.486 23.1496 30.753 22.7494 31.0968 22.4209C31.339 22.1704 31.6666 22.0202 32.0145 22C32.5161 22 33.0173 22.3805 33.5182 23.1416C33.7901 23.4771 33.9573 23.8852 33.9991 24.3151V36.1354C33.9991 36.5759 33.6932 36.9969 33.0814 37.3982C32.4994 37.7897 31.814 37.9988 31.1126 37.999C30.3712 37.999 30 37.6584 29.9991 36.9772ZM34.2408 43.9236C34.173 43.4297 33.9757 42.9626 33.669 42.5696C33.1076 41.7469 32.566 41.3355 32.0444 41.3355C31.6396 41.354 31.2573 41.5266 30.9757 41.8179C30.593 42.1852 30.2954 42.6319 30.1039 43.1266C29.874 43.6743 29.7562 44.2625 29.7574 44.8565C29.7574 45.6189 30.1786 46 31.0208 46C31.8022 46.0001 32.5662 45.7697 33.2173 45.3377C33.8996 44.8957 34.2408 44.4243 34.2408 43.9236Z"/></svg>' }, Hi = { svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path d="M59.9139 23.8477V7.90923C59.902 5.75094 58.1522 4.00588 55.9939 4H40.0554C38.8659 4 37.9016 4.96431 37.9016 6.15385C37.9016 7.34338 38.8659 8.30769 40.0554 8.30769H52.4616L29.8462 30.9231C29.4417 31.3271 29.2145 31.8753 29.2145 32.4469C29.2145 33.0186 29.4417 33.5668 29.8462 33.9708C30.2394 34.3609 30.7677 34.5846 31.3216 34.5954C31.8941 34.5987 32.4443 34.3739 32.8508 33.9708L55.6062 11.2046V23.8477C55.6062 25.0372 56.5705 26.0015 57.76 26.0015C58.9495 26.0015 59.9139 25.0372 59.9139 23.8477Z"/><path d="M12.217 60H47.4001C51.9189 59.9942 55.5874 56.3449 55.617 51.8262V38.4615C55.617 37.272 54.6527 36.3077 53.4631 36.3077C52.2736 36.3077 51.3093 37.272 51.3093 38.4615V51.7831C51.3034 53.9396 49.5566 55.6864 47.4001 55.6923H12.217C10.0771 55.6866 8.33714 53.9659 8.30776 51.8262V16.5569C8.29914 15.5145 8.7072 14.5119 9.44126 13.7718C10.1753 13.0316 11.1746 12.6153 12.217 12.6154H25.5385C26.7281 12.6154 27.6924 11.6511 27.6924 10.4615C27.6924 9.272 26.7281 8.30769 25.5385 8.30769H12.217C10.0321 8.30767 7.9372 9.17782 6.39529 10.7258C4.85339 12.2738 3.99147 14.3721 4.00006 16.5569V51.8262C4.02963 56.3449 7.6981 59.9942 12.217 60Z"/></svg>' }, Br = { 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>' }, Zc = { 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>' }, ra = { 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>' }, qr = { 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>' }, Yc = { svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M27.2561 39.1924C27.3201 40.5364 28.0241 41.1764 29.3681 41.1764C32.1201 41.1764 34.8081 39.3844 34.8721 37.5924L35.8961 12.3764C35.8961 10.6484 35.0001 9.81641 33.1441 9.81641C29.6241 9.81641 25.9761 12.1844 25.9761 14.4244L27.2561 39.1924ZM30.9041 55.3847C28.4081 55.3847 26.0401 51.2247 26.0401 49.6247C26.0401 47.3847 29.6881 45.0167 33.2081 45.0167C35.0641 45.0167 36.0241 45.8487 36.0241 47.5767C36.0241 50.2007 34.8081 52.8887 33.2721 54.2967C32.5041 55.0007 31.7361 55.3847 30.9041 55.3847Z"/></svg>' }, dt = {
|
|
2167
|
+
const Bc = { 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>' }, ia = { svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M52 7H24C19.5838 7.00505 16.0051 10.5838 16 15V23H12C7.58382 23.0051 4.00505 26.5838 4 31V43C4.00505 47.4162 7.58382 50.9949 12 51H19.1699L24.8789 56.7075C25.737 57.5654 27.0273 57.8219 28.1482 57.3575C29.2692 56.8931 30 55.7993 30 54.5859V51H39.999C44.4152 50.995 47.994 47.4162 47.999 43V35H52C56.4162 34.9949 59.9949 31.4162 60 27V15C59.9949 10.5838 56.4162 7.00505 52 7ZM43.999 43C43.9967 45.2082 42.2072 46.9977 39.999 47H26V52.1724L20.8262 47H12C9.79184 46.9976 8.00235 45.2082 8 43V31C8.00235 28.7918 9.79184 27.0024 12 27H16C16.0051 31.4162 19.5838 34.9949 24 35H30V38.5859C29.999 39.7998 30.7298 40.8945 31.8512 41.359C32.9726 41.8236 34.2634 41.5664 35.1211 40.7075L40.8291 35H43.999V43ZM56 27C55.9977 29.2082 54.2082 30.9976 52 31H39.1729L34 36.1719V31H24C21.7918 30.9976 20.0024 29.2082 20 27V15C20.0024 12.7918 21.7918 11.0024 24 11H52C54.2082 11.0024 55.9977 12.7918 56 15V27Z"/></svg>' }, qc = { 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>' }, sa = { 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>' }, Vc = { svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M57.5438 13.4967L28.717 50.5596C27.9537 51.5407 26.8061 52.147 25.5654 52.2248C25.4755 52.2301 25.3856 52.2332 25.2967 52.2332C24.1476 52.233 23.0455 51.7763 22.233 50.9637L6.63458 35.3654C6.08729 34.8181 5.87354 34.0204 6.07387 33.2728C6.27419 32.5252 6.85815 31.9412 7.60577 31.7409C8.35339 31.5406 9.15109 31.7543 9.69838 32.3016L25.2967 47.8999L54.1225 10.837C54.5976 10.2258 55.3626 9.91453 56.1295 10.0204C56.8963 10.1263 57.5484 10.6332 57.8402 11.3502C58.1319 12.0673 58.0189 12.8855 57.5438 13.4967Z"/></svg>' }, ra = { 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>' }, Wc = { 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>' }, hs = { 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.365 48.3012C51.9123 48.8485 52.1261 49.6462 51.9258 50.3939C51.7254 51.1415 51.1415 51.7254 50.3939 51.9258C49.6462 52.1261 48.8485 51.9123 48.3012 51.365L32.4998 35.5636L16.6984 51.365C16.1511 51.9123 15.3534 52.1261 14.6058 51.9258C13.8581 51.7254 13.2742 51.1415 13.0739 50.3939C12.8735 49.6462 13.0873 48.8485 13.6346 48.3012L29.436 32.4998L13.6346 16.6984C13.0873 16.1511 12.8735 15.3534 13.0739 14.6058C13.2742 13.8581 13.8581 13.2742 14.6058 13.0739C15.3534 12.8735 16.1511 13.0873 16.6984 13.6346L32.4998 29.436L48.3012 13.6346C49.1473 12.7885 50.519 12.7885 51.365 13.6346C52.2111 14.4806 52.2111 15.8523 51.365 16.6984L35.5636 32.4998L51.365 48.3012Z"/></svg>' }, Gc = { svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M58.2618 43.8838L38.8585 11.5469C37.4136 9.13651 34.8097 7.66134 31.9994 7.66113C29.1891 7.66093 26.585 9.13572 25.1397 11.5459L5.73642 43.8838C4.25367 46.3552 4.21482 49.4331 5.6347 51.9411C7.05459 54.4492 9.71372 55.9997 12.5958 56H51.4024C54.2845 55.9997 56.9436 54.4492 58.3635 51.9411C59.7834 49.4331 59.7446 46.3552 58.2618 43.8838ZM29.9991 36.9772V25.1569C29.9983 24.6198 30.1056 24.0879 30.3148 23.5932C30.486 23.1496 30.753 22.7494 31.0968 22.4209C31.339 22.1704 31.6666 22.0202 32.0145 22C32.5161 22 33.0173 22.3805 33.5182 23.1416C33.7901 23.4771 33.9573 23.8852 33.9991 24.3151V36.1354C33.9991 36.5759 33.6932 36.9969 33.0814 37.3982C32.4994 37.7897 31.814 37.9988 31.1126 37.999C30.3712 37.999 30 37.6584 29.9991 36.9772ZM34.2408 43.9236C34.173 43.4297 33.9757 42.9626 33.669 42.5696C33.1076 41.7469 32.566 41.3355 32.0444 41.3355C31.6396 41.354 31.2573 41.5266 30.9757 41.8179C30.593 42.1852 30.2954 42.6319 30.1039 43.1266C29.874 43.6743 29.7562 44.2625 29.7574 44.8565C29.7574 45.6189 30.1786 46 31.0208 46C31.8022 46.0001 32.5662 45.7697 33.2173 45.3377C33.8996 44.8957 34.2408 44.4243 34.2408 43.9236Z"/></svg>' }, Hi = { svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path d="M59.9139 23.8477V7.90923C59.902 5.75094 58.1522 4.00588 55.9939 4H40.0554C38.8659 4 37.9016 4.96431 37.9016 6.15385C37.9016 7.34338 38.8659 8.30769 40.0554 8.30769H52.4616L29.8462 30.9231C29.4417 31.3271 29.2145 31.8753 29.2145 32.4469C29.2145 33.0186 29.4417 33.5668 29.8462 33.9708C30.2394 34.3609 30.7677 34.5846 31.3216 34.5954C31.8941 34.5987 32.4443 34.3739 32.8508 33.9708L55.6062 11.2046V23.8477C55.6062 25.0372 56.5705 26.0015 57.76 26.0015C58.9495 26.0015 59.9139 25.0372 59.9139 23.8477Z"/><path d="M12.217 60H47.4001C51.9189 59.9942 55.5874 56.3449 55.617 51.8262V38.4615C55.617 37.272 54.6527 36.3077 53.4631 36.3077C52.2736 36.3077 51.3093 37.272 51.3093 38.4615V51.7831C51.3034 53.9396 49.5566 55.6864 47.4001 55.6923H12.217C10.0771 55.6866 8.33714 53.9659 8.30776 51.8262V16.5569C8.29914 15.5145 8.7072 14.5119 9.44126 13.7718C10.1753 13.0316 11.1746 12.6153 12.217 12.6154H25.5385C26.7281 12.6154 27.6924 11.6511 27.6924 10.4615C27.6924 9.272 26.7281 8.30769 25.5385 8.30769H12.217C10.0321 8.30767 7.9372 9.17782 6.39529 10.7258C4.85339 12.2738 3.99147 14.3721 4.00006 16.5569V51.8262C4.02963 56.3449 7.6981 59.9942 12.217 60Z"/></svg>' }, Br = { 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>' }, Zc = { 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>' }, oa = { 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>' }, qr = { 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>' }, Yc = { svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M27.2561 39.1924C27.3201 40.5364 28.0241 41.1764 29.3681 41.1764C32.1201 41.1764 34.8081 39.3844 34.8721 37.5924L35.8961 12.3764C35.8961 10.6484 35.0001 9.81641 33.1441 9.81641C29.6241 9.81641 25.9761 12.1844 25.9761 14.4244L27.2561 39.1924ZM30.9041 55.3847C28.4081 55.3847 26.0401 51.2247 26.0401 49.6247C26.0401 47.3847 29.6881 45.0167 33.2081 45.0167C35.0641 45.0167 36.0241 45.8487 36.0241 47.5767C36.0241 50.2007 34.8081 52.8887 33.2721 54.2967C32.5041 55.0007 31.7361 55.3847 30.9041 55.3847Z"/></svg>' }, dt = {
|
|
2168
2168
|
allRenderFn: !1,
|
|
2169
2169
|
cmpDidLoad: !0,
|
|
2170
2170
|
cmpDidUnload: !1,
|
|
@@ -2248,8 +2248,8 @@ const jc = { svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" f
|
|
|
2248
2248
|
transformTagName: !1,
|
|
2249
2249
|
attachStyles: !0
|
|
2250
2250
|
};
|
|
2251
|
-
let pt,
|
|
2252
|
-
const Xn = typeof window < "u" ? window : {},
|
|
2251
|
+
let pt, aa, Qn, la = !1, Ln = !1, ds = !1, ne = !1, Vr = null, Fi = !1;
|
|
2252
|
+
const Xn = typeof window < "u" ? window : {}, ye = Xn.document || { head: {} }, ca = Xn.HTMLElement || class {
|
|
2253
2253
|
}, Q = {
|
|
2254
2254
|
$flags$: 0,
|
|
2255
2255
|
$resourcesUrl$: "",
|
|
@@ -2261,7 +2261,7 @@ const Xn = typeof window < "u" ? window : {}, ve = Xn.document || { head: {} },
|
|
|
2261
2261
|
}, Qc = /* @__PURE__ */ (() => {
|
|
2262
2262
|
let n = !1;
|
|
2263
2263
|
try {
|
|
2264
|
-
|
|
2264
|
+
ye.addEventListener("e", null, Object.defineProperty({}, "passive", {
|
|
2265
2265
|
get() {
|
|
2266
2266
|
n = !0;
|
|
2267
2267
|
}
|
|
@@ -2275,7 +2275,7 @@ const Xn = typeof window < "u" ? window : {}, ve = Xn.document || { head: {} },
|
|
|
2275
2275
|
} catch {
|
|
2276
2276
|
}
|
|
2277
2277
|
return !1;
|
|
2278
|
-
})(),
|
|
2278
|
+
})(), ua = (n, e, t, i) => {
|
|
2279
2279
|
t && t.map(([s, r, o]) => {
|
|
2280
2280
|
const a = eu(n, s), l = Jc(e, o), c = tu(s);
|
|
2281
2281
|
Q.ael(a, r, l, c), (e.$rmListeners$ = e.$rmListeners$ || []).push(() => Q.rel(a, r, l, c));
|
|
@@ -2286,7 +2286,7 @@ const Xn = typeof window < "u" ? window : {}, ve = Xn.document || { head: {} },
|
|
|
2286
2286
|
} catch (i) {
|
|
2287
2287
|
sn(i);
|
|
2288
2288
|
}
|
|
2289
|
-
}, eu = (n, e) => e & 4 ?
|
|
2289
|
+
}, eu = (n, e) => e & 4 ? ye : e & 8 ? Xn : e & 16 ? ye.body : n, tu = (n) => Qc ? {
|
|
2290
2290
|
passive: (n & 1) !== 0,
|
|
2291
2291
|
capture: (n & 2) !== 0
|
|
2292
2292
|
} : (n & 2) !== 0, Wr = "http://www.w3.org/1999/xlink", Je = (n, e = "") => () => {
|
|
@@ -2294,18 +2294,18 @@ const Xn = typeof window < "u" ? window : {}, ve = Xn.document || { head: {} },
|
|
|
2294
2294
|
let i = Pn.get(n);
|
|
2295
2295
|
Kc && t ? (i = i || new CSSStyleSheet(), i.replace(e)) : i = e, Pn.set(n, i);
|
|
2296
2296
|
}, iu = (n, e, t, i) => {
|
|
2297
|
-
let s =
|
|
2298
|
-
if (n = n.nodeType === 11 ? n :
|
|
2297
|
+
let s = ha(e, t), r = Pn.get(s);
|
|
2298
|
+
if (n = n.nodeType === 11 ? n : ye, r)
|
|
2299
2299
|
if (typeof r == "string") {
|
|
2300
2300
|
n = n.head || n;
|
|
2301
2301
|
let o = Gr.get(n), a;
|
|
2302
|
-
o || Gr.set(n, o = /* @__PURE__ */ new Set()), o.has(s) || (a =
|
|
2302
|
+
o || Gr.set(n, o = /* @__PURE__ */ new Set()), o.has(s) || (a = ye.createElement("style"), a.innerHTML = r, n.insertBefore(a, n.querySelector("link")), o && o.add(s));
|
|
2303
2303
|
} else n.adoptedStyleSheets.includes(r) || (n.adoptedStyleSheets = [...n.adoptedStyleSheets, r]);
|
|
2304
2304
|
return s;
|
|
2305
2305
|
}, su = (n) => {
|
|
2306
2306
|
const e = n.$cmpMeta$, t = n.$hostElement$, i = e.$flags$, s = Je("attachStyles", e.$tagName$), r = iu(t.shadowRoot ? t.shadowRoot : t.getRootNode(), e, n.$modeName$);
|
|
2307
2307
|
i & 10 && (t["s-sc"] = r, t.classList.add(r + "-h"), i & 2 && t.classList.add(r + "-s")), s();
|
|
2308
|
-
},
|
|
2308
|
+
}, ha = (n, e) => "sc-" + (e && n.$flags$ & 32 ? n.$tagName$ + "-" + e : n.$tagName$), ru = (n) => Iu.map((e) => e(n)).find((e) => !!e), Zr = {}, ou = "http://www.w3.org/2000/svg", au = "http://www.w3.org/1999/xhtml", lu = (n) => n != null, ps = (n) => (n = typeof n, n === "object" || n === "function"), mt = (n, e, ...t) => {
|
|
2309
2309
|
let i = null, s = null, r = null, o = !1, a = !1, l = [];
|
|
2310
2310
|
const c = (p) => {
|
|
2311
2311
|
for (let d = 0; d < p.length; d++)
|
|
@@ -2380,7 +2380,7 @@ const Xn = typeof window < "u" ? window : {}, ve = Xn.document || { head: {} },
|
|
|
2380
2380
|
a !== (a = a.replace(/^xlink\:?/, "")) && (e = a, c = !0), i == null || i === !1 ? (i !== !1 || n.getAttribute(e) === "") && (c ? n.removeAttributeNS(Wr, e) : n.removeAttribute(e)) : (!o || r & 4 || s) && !l && (i = i === !0 ? "" : i, c ? n.setAttributeNS(Wr, e, i) : n.setAttribute(e, i));
|
|
2381
2381
|
}
|
|
2382
2382
|
}
|
|
2383
|
-
}, du = /\s/, Xr = (n) => n ? n.split(du) : [],
|
|
2383
|
+
}, du = /\s/, Xr = (n) => n ? n.split(du) : [], da = (n, e, t, i) => {
|
|
2384
2384
|
const s = e.$elm$.nodeType === 11 && e.$elm$.host ? e.$elm$.host : e.$elm$, r = n && n.$attrs$ || Zr, o = e.$attrs$ || Zr;
|
|
2385
2385
|
for (i in r)
|
|
2386
2386
|
i in o || Qr(s, i, r[i], void 0, t, e.$flags$);
|
|
@@ -2388,38 +2388,38 @@ const Xn = typeof window < "u" ? window : {}, ve = Xn.document || { head: {} },
|
|
|
2388
2388
|
Qr(s, i, r[i], o[i], t, e.$flags$);
|
|
2389
2389
|
}, In = (n, e, t, i) => {
|
|
2390
2390
|
let s = e.$children$[t], r = 0, o, a, l;
|
|
2391
|
-
if (
|
|
2391
|
+
if (la || (ds = !0, s.$tag$ === "slot" && (pt && i.classList.add(pt + "-s"), s.$flags$ |= s.$children$ ? (
|
|
2392
2392
|
// slot element has fallback content
|
|
2393
2393
|
2
|
|
2394
2394
|
) : (
|
|
2395
2395
|
// slot element does not have fallback content
|
|
2396
2396
|
1
|
|
2397
2397
|
))), s.$text$ !== null)
|
|
2398
|
-
o = s.$elm$ =
|
|
2398
|
+
o = s.$elm$ = ye.createTextNode(s.$text$);
|
|
2399
2399
|
else if (s.$flags$ & 1)
|
|
2400
|
-
o = s.$elm$ =
|
|
2400
|
+
o = s.$elm$ = ye.createTextNode("");
|
|
2401
2401
|
else {
|
|
2402
|
-
if (
|
|
2402
|
+
if (ne || (ne = s.$tag$ === "svg"), o = s.$elm$ = ye.createElementNS(ne ? ou : au, s.$flags$ & 2 ? "slot-fb" : s.$tag$), ne && s.$tag$ === "foreignObject" && (ne = !1), da(null, s, ne), lu(pt) && o["s-si"] !== pt && o.classList.add(o["s-si"] = pt), s.$children$)
|
|
2403
2403
|
for (r = 0; r < s.$children$.length; ++r)
|
|
2404
2404
|
a = In(n, s, r, o), a && o.appendChild(a);
|
|
2405
|
-
s.$tag$ === "svg" ?
|
|
2405
|
+
s.$tag$ === "svg" ? ne = !1 : o.tagName === "foreignObject" && (ne = !0);
|
|
2406
2406
|
}
|
|
2407
|
-
return o["s-hn"] = Qn, s.$flags$ & 3 && (o["s-sr"] = !0, o["s-cr"] =
|
|
2407
|
+
return o["s-hn"] = Qn, s.$flags$ & 3 && (o["s-sr"] = !0, o["s-cr"] = aa, o["s-sn"] = s.$name$ || "", l = n && n.$children$ && n.$children$[t], l && l.$tag$ === s.$tag$ && n.$elm$ && Gt(n.$elm$, !1)), o;
|
|
2408
2408
|
}, Gt = (n, e) => {
|
|
2409
2409
|
Q.$flags$ |= 1;
|
|
2410
2410
|
const t = n.childNodes;
|
|
2411
2411
|
for (let i = t.length - 1; i >= 0; i--) {
|
|
2412
2412
|
const s = t[i];
|
|
2413
|
-
s["s-hn"] !== Qn && s["s-ol"] && (
|
|
2413
|
+
s["s-hn"] !== Qn && s["s-ol"] && (ga(s).insertBefore(s, gs(s)), s["s-ol"].remove(), s["s-ol"] = void 0, ds = !0), e && Gt(s, e);
|
|
2414
2414
|
}
|
|
2415
2415
|
Q.$flags$ &= -2;
|
|
2416
|
-
},
|
|
2416
|
+
}, pa = (n, e, t, i, s, r) => {
|
|
2417
2417
|
let o = n["s-cr"] && n["s-cr"].parentNode || n, a;
|
|
2418
2418
|
for (o.shadowRoot && o.tagName === Qn && (o = o.shadowRoot); s <= r; ++s)
|
|
2419
2419
|
i[s] && (a = In(null, t, s, n), a && (i[s].$elm$ = a, o.insertBefore(a, gs(e))));
|
|
2420
|
-
},
|
|
2420
|
+
}, fa = (n, e, t, i, s) => {
|
|
2421
2421
|
for (; e <= t; ++e)
|
|
2422
|
-
(i = n[e]) && (s = i.$elm$,
|
|
2422
|
+
(i = n[e]) && (s = i.$elm$, ba(i), Ln = !0, s["s-ol"] ? s["s-ol"].remove() : Gt(s, !0), s.remove());
|
|
2423
2423
|
}, pu = (n, e, t, i) => {
|
|
2424
2424
|
let s = 0, r = 0, o = 0, a = 0, l = e.length - 1, c = e[0], u = e[l], p = i.length - 1, d = i[0], g = i[p], m, $;
|
|
2425
2425
|
for (; s <= l && r <= p; )
|
|
@@ -2445,14 +2445,14 @@ const Xn = typeof window < "u" ? window : {}, ve = Xn.document || { head: {} },
|
|
|
2445
2445
|
o = a;
|
|
2446
2446
|
break;
|
|
2447
2447
|
}
|
|
2448
|
-
o >= 0 ? ($ = e[o], $.$tag$ !== d.$tag$ ? m = In(e && e[r], t, o, n) : (ft($, d), e[o] = void 0, m = $.$elm$), d = i[++r]) : (m = In(e && e[r], t, r, n), d = i[++r]), m &&
|
|
2448
|
+
o >= 0 ? ($ = e[o], $.$tag$ !== d.$tag$ ? m = In(e && e[r], t, o, n) : (ft($, d), e[o] = void 0, m = $.$elm$), d = i[++r]) : (m = In(e && e[r], t, r, n), d = i[++r]), m && ga(c.$elm$).insertBefore(m, gs(c.$elm$));
|
|
2449
2449
|
}
|
|
2450
|
-
s > l ?
|
|
2451
|
-
}, vn = (n, e) => n.$tag$ === e.$tag$ ? n.$tag$ === "slot" ? n.$name$ === e.$name$ : n.$key$ === e.$key$ : !1, gs = (n) => n && n["s-ol"] || n,
|
|
2450
|
+
s > l ? pa(n, i[p + 1] == null ? null : i[p + 1].$elm$, t, i, r, p) : r > p && fa(e, s, l);
|
|
2451
|
+
}, vn = (n, e) => n.$tag$ === e.$tag$ ? n.$tag$ === "slot" ? n.$name$ === e.$name$ : n.$key$ === e.$key$ : !1, gs = (n) => n && n["s-ol"] || n, ga = (n) => (n["s-ol"] ? n["s-ol"] : n).parentNode, ft = (n, e) => {
|
|
2452
2452
|
const t = e.$elm$ = n.$elm$, i = n.$children$, s = e.$children$, r = e.$tag$, o = e.$text$;
|
|
2453
2453
|
let a;
|
|
2454
|
-
o === null ? (
|
|
2455
|
-
},
|
|
2454
|
+
o === null ? (ne = r === "svg" ? !0 : r === "foreignObject" ? !1 : ne, r === "slot" || da(n, e, ne), i !== null && s !== null ? pu(t, i, e, s) : s !== null ? (n.$text$ !== null && (t.textContent = ""), pa(t, null, e, s, 0, s.length - 1)) : i !== null && fa(i, 0, i.length - 1), ne && r === "svg" && (ne = !1)) : (a = t["s-cr"]) ? a.parentNode.textContent = o : n.$text$ !== o && (t.data = o);
|
|
2455
|
+
}, ma = (n) => {
|
|
2456
2456
|
let e = n.childNodes, t, i, s, r, o, a;
|
|
2457
2457
|
for (i = 0, s = e.length; i < s; i++)
|
|
2458
2458
|
if (t = e[i], t.nodeType === 1) {
|
|
@@ -2468,36 +2468,36 @@ const Xn = typeof window < "u" ? window : {}, ve = Xn.document || { head: {} },
|
|
|
2468
2468
|
break;
|
|
2469
2469
|
}
|
|
2470
2470
|
}
|
|
2471
|
-
|
|
2471
|
+
ma(t);
|
|
2472
2472
|
}
|
|
2473
|
-
},
|
|
2473
|
+
}, he = [], va = (n) => {
|
|
2474
2474
|
let e, t, i, s, r, o, a = 0, l = n.childNodes, c = l.length;
|
|
2475
2475
|
for (; a < c; a++) {
|
|
2476
2476
|
if (e = l[a], e["s-sr"] && (t = e["s-cr"]) && t.parentNode)
|
|
2477
2477
|
for (i = t.parentNode.childNodes, s = e["s-sn"], o = i.length - 1; o >= 0; o--)
|
|
2478
|
-
t = i[o], !t["s-cn"] && !t["s-nr"] && t["s-hn"] !== e["s-hn"] && (Kr(t, s) ? (r =
|
|
2478
|
+
t = i[o], !t["s-cn"] && !t["s-nr"] && t["s-hn"] !== e["s-hn"] && (Kr(t, s) ? (r = he.find((u) => u.$nodeToRelocate$ === t), Ln = !0, t["s-sn"] = t["s-sn"] || s, r ? r.$slotRefNode$ = e : he.push({
|
|
2479
2479
|
$slotRefNode$: e,
|
|
2480
2480
|
$nodeToRelocate$: t
|
|
2481
|
-
}), t["s-sr"] &&
|
|
2482
|
-
Kr(u.$nodeToRelocate$, t["s-sn"]) && (r =
|
|
2483
|
-
})) :
|
|
2481
|
+
}), t["s-sr"] && he.map((u) => {
|
|
2482
|
+
Kr(u.$nodeToRelocate$, t["s-sn"]) && (r = he.find((p) => p.$nodeToRelocate$ === t), r && !u.$slotRefNode$ && (u.$slotRefNode$ = r.$slotRefNode$));
|
|
2483
|
+
})) : he.some((u) => u.$nodeToRelocate$ === t) || he.push({
|
|
2484
2484
|
$nodeToRelocate$: t
|
|
2485
2485
|
}));
|
|
2486
|
-
e.nodeType === 1 &&
|
|
2486
|
+
e.nodeType === 1 && va(e);
|
|
2487
2487
|
}
|
|
2488
|
-
}, Kr = (n, e) => n.nodeType === 1 ? n.getAttribute("slot") === null && e === "" || n.getAttribute("slot") === e : n["s-sn"] === e ? !0 : e === "",
|
|
2489
|
-
n.$attrs$ && n.$attrs$.ref && n.$attrs$.ref(null), n.$children$ && n.$children$.map(
|
|
2488
|
+
}, Kr = (n, e) => n.nodeType === 1 ? n.getAttribute("slot") === null && e === "" || n.getAttribute("slot") === e : n["s-sn"] === e ? !0 : e === "", ba = (n) => {
|
|
2489
|
+
n.$attrs$ && n.$attrs$.ref && n.$attrs$.ref(null), n.$children$ && n.$children$.map(ba);
|
|
2490
2490
|
}, fu = (n, e) => {
|
|
2491
2491
|
const t = n.$hostElement$, i = n.$cmpMeta$, s = n.$vnode$ || Rn(null, null), r = cu(e) ? e : mt(null, null, e);
|
|
2492
|
-
Qn = t.tagName, i.$attrsToReflect$ && (r.$attrs$ = r.$attrs$ || {}, i.$attrsToReflect$.map(([o, a]) => r.$attrs$[a] = t[o])), r.$tag$ = null, r.$flags$ |= 4, n.$vnode$ = r, r.$elm$ = s.$elm$ = t.shadowRoot || t, pt = t["s-sc"],
|
|
2492
|
+
Qn = t.tagName, i.$attrsToReflect$ && (r.$attrs$ = r.$attrs$ || {}, i.$attrsToReflect$.map(([o, a]) => r.$attrs$[a] = t[o])), r.$tag$ = null, r.$flags$ |= 4, n.$vnode$ = r, r.$elm$ = s.$elm$ = t.shadowRoot || t, pt = t["s-sc"], aa = t["s-cr"], la = (i.$flags$ & 1) !== 0, Ln = !1, ft(s, r);
|
|
2493
2493
|
{
|
|
2494
2494
|
if (Q.$flags$ |= 1, ds) {
|
|
2495
|
-
|
|
2495
|
+
va(r.$elm$);
|
|
2496
2496
|
let o, a, l, c, u, p, d = 0;
|
|
2497
|
-
for (; d <
|
|
2498
|
-
o =
|
|
2499
|
-
for (d = 0; d <
|
|
2500
|
-
if (o =
|
|
2497
|
+
for (; d < he.length; d++)
|
|
2498
|
+
o = he[d], a = o.$nodeToRelocate$, a["s-ol"] || (l = ye.createTextNode(""), l["s-nr"] = a, a.parentNode.insertBefore(a["s-ol"] = l, a));
|
|
2499
|
+
for (d = 0; d < he.length; d++)
|
|
2500
|
+
if (o = he[d], a = o.$nodeToRelocate$, o.$slotRefNode$) {
|
|
2501
2501
|
for (c = o.$slotRefNode$.parentNode, u = o.$slotRefNode$.nextSibling, l = a["s-ol"]; l = l.previousSibling; )
|
|
2502
2502
|
if (p = l["s-nr"], p && p["s-sn"] === a["s-sn"] && c === p.parentNode && (p = p.nextSibling, !p || !p["s-nr"])) {
|
|
2503
2503
|
u = p;
|
|
@@ -2507,7 +2507,7 @@ const Xn = typeof window < "u" ? window : {}, ve = Xn.document || { head: {} },
|
|
|
2507
2507
|
} else
|
|
2508
2508
|
a.nodeType === 1 && (a.hidden = !0);
|
|
2509
2509
|
}
|
|
2510
|
-
Ln &&
|
|
2510
|
+
Ln && ma(r.$elm$), Q.$flags$ &= -2, he.length = 0;
|
|
2511
2511
|
}
|
|
2512
2512
|
}, gu = (n) => n, mu = (n, e, t) => {
|
|
2513
2513
|
const i = gu(n);
|
|
@@ -2523,7 +2523,7 @@ const Xn = typeof window < "u" ? window : {}, ve = Xn.document || { head: {} },
|
|
|
2523
2523
|
const i = Q.ce(e, t);
|
|
2524
2524
|
return n.dispatchEvent(i), i;
|
|
2525
2525
|
}, bu = (n, e) => {
|
|
2526
|
-
},
|
|
2526
|
+
}, ya = (n, e) => (n.$flags$ |= 16, bu(n, n.$ancestorComponent$), Uu(() => yu(n, e))), yu = (n, e) => {
|
|
2527
2527
|
const t = n.$hostElement$, i = Je("scheduleUpdate", n.$cmpMeta$.$tagName$), s = t;
|
|
2528
2528
|
let r;
|
|
2529
2529
|
return e ? r = vt(s, "componentWillLoad") : r = vt(s, "componentWillUpdate"), r = Jr(r, () => vt(s, "componentWillRender")), i(), Jr(r, () => $u(n, s, e));
|
|
@@ -2569,7 +2569,7 @@ const Xn = typeof window < "u" ? window : {}, ve = Xn.document || { head: {} },
|
|
|
2569
2569
|
if ((a & 18) === 2) {
|
|
2570
2570
|
if (l.componentShouldUpdate && l.componentShouldUpdate(t, o, e) === !1)
|
|
2571
2571
|
return;
|
|
2572
|
-
|
|
2572
|
+
ya(s, !1);
|
|
2573
2573
|
}
|
|
2574
2574
|
}
|
|
2575
2575
|
}
|
|
@@ -2614,18 +2614,18 @@ const Xn = typeof window < "u" ? window : {}, ve = Xn.document || { head: {} },
|
|
|
2614
2614
|
if ((e.$flags$ & 32) === 0 && (s = n.constructor, e.$flags$ |= 32, customElements.whenDefined(t.$tagName$).then(() => e.$flags$ |= 128), s.style)) {
|
|
2615
2615
|
let o = s.style;
|
|
2616
2616
|
typeof o != "string" && (o = o[e.$modeName$ = ru(n)]);
|
|
2617
|
-
const a =
|
|
2617
|
+
const a = ha(t, e.$modeName$);
|
|
2618
2618
|
if (!Pn.has(a)) {
|
|
2619
2619
|
const l = Je("registerStyles", t.$tagName$);
|
|
2620
2620
|
nu(a, o, !!(t.$flags$ & 1)), l();
|
|
2621
2621
|
}
|
|
2622
2622
|
}
|
|
2623
|
-
e.$ancestorComponent$,
|
|
2623
|
+
e.$ancestorComponent$, ya(e, !0);
|
|
2624
2624
|
}, Au = (n) => {
|
|
2625
2625
|
}, Tu = (n) => {
|
|
2626
2626
|
if ((Q.$flags$ & 1) === 0) {
|
|
2627
2627
|
const e = Kn(n), t = e.$cmpMeta$, i = Je("connectedCallback", t.$tagName$);
|
|
2628
|
-
e.$flags$ & 1 ? (
|
|
2628
|
+
e.$flags$ & 1 ? (ua(n, e, t.$listeners$), Au(e.$lazyInstance$)) : (e.$flags$ |= 1, t.$flags$ & 12 && Ou(n), t.$members$ && Object.entries(t.$members$).map(([s, [r]]) => {
|
|
2629
2629
|
if (r & 31 && n.hasOwnProperty(s)) {
|
|
2630
2630
|
const o = n[s];
|
|
2631
2631
|
delete n[s], n[s] = o;
|
|
@@ -2633,14 +2633,14 @@ const Xn = typeof window < "u" ? window : {}, ve = Xn.document || { head: {} },
|
|
|
2633
2633
|
}), _u(n, e, t)), i();
|
|
2634
2634
|
}
|
|
2635
2635
|
}, Ou = (n) => {
|
|
2636
|
-
const e = n["s-cr"] =
|
|
2636
|
+
const e = n["s-cr"] = ye.createComment("");
|
|
2637
2637
|
e["s-cn"] = !0, n.insertBefore(e, n.firstChild);
|
|
2638
2638
|
}, Lu = (n) => {
|
|
2639
2639
|
if ((Q.$flags$ & 1) === 0) {
|
|
2640
2640
|
const e = Kn(n);
|
|
2641
2641
|
e.$rmListeners$ && (e.$rmListeners$.map((t) => t()), e.$rmListeners$ = void 0);
|
|
2642
2642
|
}
|
|
2643
|
-
},
|
|
2643
|
+
}, $a = (n, e) => {
|
|
2644
2644
|
const t = {
|
|
2645
2645
|
$flags$: e[0],
|
|
2646
2646
|
$tagName$: e[1]
|
|
@@ -2664,15 +2664,15 @@ const Xn = typeof window < "u" ? window : {}, ve = Xn.document || { head: {} },
|
|
|
2664
2664
|
});
|
|
2665
2665
|
}
|
|
2666
2666
|
}), n.is = t.$tagName$, Eu(n, t);
|
|
2667
|
-
},
|
|
2667
|
+
}, wa = /* @__PURE__ */ new WeakMap(), Kn = (n) => wa.get(n), Ru = (n, e) => {
|
|
2668
2668
|
const t = {
|
|
2669
2669
|
$flags$: 0,
|
|
2670
2670
|
$hostElement$: n,
|
|
2671
2671
|
$cmpMeta$: e,
|
|
2672
2672
|
$instanceValues$: /* @__PURE__ */ new Map()
|
|
2673
2673
|
};
|
|
2674
|
-
return
|
|
2675
|
-
}, eo = (n, e) => e in n, sn = (n, e) => (0, console.error)(n, e), Pn = /* @__PURE__ */ new Map(), Iu = [], to = [],
|
|
2674
|
+
return ua(n, t, e.$listeners$), wa.set(n, t);
|
|
2675
|
+
}, eo = (n, e) => e in n, sn = (n, e) => (0, console.error)(n, e), Pn = /* @__PURE__ */ new Map(), Iu = [], to = [], xa = [], Pu = (n, e) => (t) => {
|
|
2676
2676
|
n.push(t), Fi || (Fi = !0, e && Q.$flags$ & 4 ? Mu(ji) : Q.raf(ji));
|
|
2677
2677
|
}, no = (n) => {
|
|
2678
2678
|
for (let e = 0; e < n.length; e++)
|
|
@@ -2683,8 +2683,8 @@ const Xn = typeof window < "u" ? window : {}, ve = Xn.document || { head: {} },
|
|
|
2683
2683
|
}
|
|
2684
2684
|
n.length = 0;
|
|
2685
2685
|
}, ji = () => {
|
|
2686
|
-
no(to), no(
|
|
2687
|
-
}, Mu = (n) => Xc().then(n), Uu = /* @__PURE__ */ Pu(
|
|
2686
|
+
no(to), no(xa), (Fi = to.length > 0) && Q.raf(ji);
|
|
2687
|
+
}, Mu = (n) => Xc().then(n), Uu = /* @__PURE__ */ Pu(xa, !0), Nu = (n = {}) => {
|
|
2688
2688
|
const { content: e = "", title: t, attributes: i = [] } = n;
|
|
2689
2689
|
let s = "", r = [
|
|
2690
2690
|
{ name: "xmlns", value: "http://www.w3.org/2000/svg" },
|
|
@@ -2701,7 +2701,7 @@ class Hu {
|
|
|
2701
2701
|
this.voca_component = e, this.voca_added = zu(/* @__PURE__ */ new Date());
|
|
2702
2702
|
}
|
|
2703
2703
|
}
|
|
2704
|
-
const Fu = "telia-vst{display:none}", ju = /* @__PURE__ */
|
|
2704
|
+
const Fu = "telia-vst{display:none}", ju = /* @__PURE__ */ $a(class extends ca {
|
|
2705
2705
|
constructor() {
|
|
2706
2706
|
super(), this.__registerHost(), this.vocaInternalUStats = mu(this, "vocaInternalUStats");
|
|
2707
2707
|
}
|
|
@@ -2717,7 +2717,7 @@ const Fu = "telia-vst{display:none}", ju = /* @__PURE__ */ ya(class extends la {
|
|
|
2717
2717
|
}, [0, "telia-vst", {
|
|
2718
2718
|
dataTrackingId: [1, "data-tracking-id"]
|
|
2719
2719
|
}]);
|
|
2720
|
-
function
|
|
2720
|
+
function ka() {
|
|
2721
2721
|
if (typeof customElements > "u")
|
|
2722
2722
|
return;
|
|
2723
2723
|
["telia-vst"].forEach((e) => {
|
|
@@ -2728,7 +2728,7 @@ function xa() {
|
|
|
2728
2728
|
}
|
|
2729
2729
|
});
|
|
2730
2730
|
}
|
|
2731
|
-
|
|
2731
|
+
ka();
|
|
2732
2732
|
function Bi() {
|
|
2733
2733
|
return typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : { vocadsIcons: void 0, vocadsIconsRegistered: !1 };
|
|
2734
2734
|
}
|
|
@@ -2739,7 +2739,7 @@ function Bu() {
|
|
|
2739
2739
|
function qu() {
|
|
2740
2740
|
return Bi().vocadsIconsRegistered;
|
|
2741
2741
|
}
|
|
2742
|
-
const Vu = ".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))}", Wu = /* @__PURE__ */
|
|
2742
|
+
const Vu = ".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))}", Wu = /* @__PURE__ */ $a(class extends ca {
|
|
2743
2743
|
constructor() {
|
|
2744
2744
|
super(), this.__registerHost(), this.size = "md", this.allyTitle = null, this.dataTrackingId = "telia-icon";
|
|
2745
2745
|
}
|
|
@@ -2789,7 +2789,7 @@ function Gu() {
|
|
|
2789
2789
|
customElements.get(e) || customElements.define(e, Wu);
|
|
2790
2790
|
break;
|
|
2791
2791
|
case "telia-vst":
|
|
2792
|
-
customElements.get(e) ||
|
|
2792
|
+
customElements.get(e) || ka();
|
|
2793
2793
|
break;
|
|
2794
2794
|
}
|
|
2795
2795
|
});
|
|
@@ -2832,7 +2832,7 @@ function k(n) {
|
|
|
2832
2832
|
* Copyright 2017 Google LLC
|
|
2833
2833
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2834
2834
|
*/
|
|
2835
|
-
function
|
|
2835
|
+
function T(n) {
|
|
2836
2836
|
return k({ ...n, state: !0, attribute: !1 });
|
|
2837
2837
|
}
|
|
2838
2838
|
/**
|
|
@@ -2880,7 +2880,7 @@ const Ft = (n, e) => {
|
|
|
2880
2880
|
if ((e = n._$AM) === void 0) break;
|
|
2881
2881
|
t = e._$AN, t.delete(n), n = e;
|
|
2882
2882
|
} while ((t == null ? void 0 : t.size) === 0);
|
|
2883
|
-
},
|
|
2883
|
+
}, Sa = (n) => {
|
|
2884
2884
|
for (let e; e = n._$AM; n = e) {
|
|
2885
2885
|
let t = e._$AN;
|
|
2886
2886
|
if (t === void 0) e._$AN = t = /* @__PURE__ */ new Set();
|
|
@@ -2889,7 +2889,7 @@ const Ft = (n, e) => {
|
|
|
2889
2889
|
}
|
|
2890
2890
|
};
|
|
2891
2891
|
function Xu(n) {
|
|
2892
|
-
this._$AN !== void 0 ? (Mn(this), this._$AM = n,
|
|
2892
|
+
this._$AN !== void 0 ? (Mn(this), this._$AM = n, Sa(this)) : this._$AM = n;
|
|
2893
2893
|
}
|
|
2894
2894
|
function Ku(n, e = !1, t = 0) {
|
|
2895
2895
|
const i = this._$AH, s = this._$AN;
|
|
@@ -2900,12 +2900,12 @@ function Ku(n, e = !1, t = 0) {
|
|
|
2900
2900
|
const Ju = (n) => {
|
|
2901
2901
|
n.type == rn.CHILD && (n._$AP ?? (n._$AP = Ku), n._$AQ ?? (n._$AQ = Xu));
|
|
2902
2902
|
};
|
|
2903
|
-
let
|
|
2903
|
+
let Ca = class extends Jn {
|
|
2904
2904
|
constructor() {
|
|
2905
2905
|
super(...arguments), this._$AN = void 0;
|
|
2906
2906
|
}
|
|
2907
2907
|
_$AT(e, t, i) {
|
|
2908
|
-
super._$AT(e, t, i),
|
|
2908
|
+
super._$AT(e, t, i), Sa(this), this.isConnected = e._$AU;
|
|
2909
2909
|
}
|
|
2910
2910
|
_$AO(e, t = !0) {
|
|
2911
2911
|
var i, s;
|
|
@@ -2928,10 +2928,10 @@ let Sa = class extends Jn {
|
|
|
2928
2928
|
* Copyright 2020 Google LLC
|
|
2929
2929
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2930
2930
|
*/
|
|
2931
|
-
const
|
|
2931
|
+
const ve = () => new eh();
|
|
2932
2932
|
class eh {
|
|
2933
2933
|
}
|
|
2934
|
-
const ki = /* @__PURE__ */ new WeakMap(),
|
|
2934
|
+
const ki = /* @__PURE__ */ new WeakMap(), be = on(class extends Ca {
|
|
2935
2935
|
render(n) {
|
|
2936
2936
|
return w;
|
|
2937
2937
|
}
|
|
@@ -2984,7 +2984,7 @@ const wt = on(class extends Jn {
|
|
|
2984
2984
|
const o = !!e[r];
|
|
2985
2985
|
o === this.st.has(r) || (s = this.nt) != null && s.has(r) || (o ? (t.add(r), this.st.add(r)) : (t.remove(r), this.st.delete(r)));
|
|
2986
2986
|
}
|
|
2987
|
-
return
|
|
2987
|
+
return Le;
|
|
2988
2988
|
}
|
|
2989
2989
|
});
|
|
2990
2990
|
var th = Object.defineProperty, nh = (n, e, t, i) => {
|
|
@@ -3005,7 +3005,7 @@ const Ls = class Ls extends _ {
|
|
|
3005
3005
|
}
|
|
3006
3006
|
};
|
|
3007
3007
|
Ls.styles = [
|
|
3008
|
-
|
|
3008
|
+
O`
|
|
3009
3009
|
:host {
|
|
3010
3010
|
position: fixed;
|
|
3011
3011
|
display: flex;
|
|
@@ -3052,7 +3052,7 @@ const Si = /* @__PURE__ */ new Map(), so = /* @__PURE__ */ new WeakSet(), ro = (
|
|
|
3052
3052
|
const i = lo(n, e);
|
|
3053
3053
|
return { value: i, overrideFrom: t, transform: i == null || isNaN(i) ? void 0 : `scaleY(${i})` };
|
|
3054
3054
|
} }, oh = { duration: 333, easing: "ease-in-out" }, ah = ["left", "top", "width", "height", "opacity", "color", "background"], co = /* @__PURE__ */ new WeakMap();
|
|
3055
|
-
class lh extends
|
|
3055
|
+
class lh extends Ca {
|
|
3056
3056
|
constructor(e) {
|
|
3057
3057
|
if (super(e), this.t = !1, this.i = null, this.o = null, this.h = !0, this.shouldLog = !1, e.type === rn.CHILD) throw Error("The `animate` directive must be used in attribute position.");
|
|
3058
3058
|
this.createFinished();
|
|
@@ -3223,39 +3223,39 @@ class lh extends Sa {
|
|
|
3223
3223
|
this.shouldLog && !this.isDisabled() && console.log(e, this.options.id, t);
|
|
3224
3224
|
}
|
|
3225
3225
|
}
|
|
3226
|
-
const qi = on(lh),
|
|
3226
|
+
const qi = on(lh), Se = (n, e, t) => {
|
|
3227
3227
|
n && t.style.setProperty(e, n);
|
|
3228
|
-
},
|
|
3228
|
+
}, Ea = (n, e) => {
|
|
3229
3229
|
var t, i, s, r, o, a, l, c, u;
|
|
3230
|
-
|
|
3230
|
+
Se((t = n.colors) == null ? void 0 : t.primaryBackground, "--primary-background", e), Se(
|
|
3231
3231
|
(i = n.colors) == null ? void 0 : i.textOnPrimaryBackground,
|
|
3232
3232
|
"--text-on-primary-background",
|
|
3233
3233
|
e
|
|
3234
|
-
),
|
|
3234
|
+
), Se(
|
|
3235
3235
|
(s = n.colors) == null ? void 0 : s.secondaryBackground,
|
|
3236
3236
|
"--secondary-background",
|
|
3237
3237
|
e
|
|
3238
|
-
),
|
|
3238
|
+
), Se(
|
|
3239
3239
|
(r = n.colors) == null ? void 0 : r.textOnSecondaryBackground,
|
|
3240
3240
|
"--text-on-secondary-background",
|
|
3241
3241
|
e
|
|
3242
|
-
),
|
|
3242
|
+
), Se(
|
|
3243
3243
|
(o = n.colors) == null ? void 0 : o.interactiveDestructiveBackground,
|
|
3244
3244
|
"--destructive-color",
|
|
3245
3245
|
e
|
|
3246
|
-
),
|
|
3246
|
+
), Se(
|
|
3247
3247
|
(a = n.colors) == null ? void 0 : a.interactiveTextOnDestructiveBackground,
|
|
3248
3248
|
"--text-on-destructive-color",
|
|
3249
3249
|
e
|
|
3250
|
-
),
|
|
3250
|
+
), Se(
|
|
3251
3251
|
(l = n.colors) == null ? void 0 : l.interactivePrimaryBackground,
|
|
3252
3252
|
"--interactive-primary-background",
|
|
3253
3253
|
e
|
|
3254
|
-
),
|
|
3254
|
+
), Se(
|
|
3255
3255
|
(c = n.colors) == null ? void 0 : c.interactiveTextOnPrimaryBackground,
|
|
3256
3256
|
"--interactive-text-on-primary-background",
|
|
3257
3257
|
e
|
|
3258
|
-
),
|
|
3258
|
+
), Se((u = n.colors) == null ? void 0 : u.focusColor, "--focus-color", e);
|
|
3259
3259
|
};
|
|
3260
3260
|
var ch = Object.defineProperty, an = (n, e, t, i) => {
|
|
3261
3261
|
for (var s = void 0, r = n.length - 1, o; r >= 0; r--)
|
|
@@ -3264,7 +3264,7 @@ var ch = Object.defineProperty, an = (n, e, t, i) => {
|
|
|
3264
3264
|
};
|
|
3265
3265
|
const Rs = class Rs extends _ {
|
|
3266
3266
|
constructor() {
|
|
3267
|
-
super(...arguments), this.active = !1, this.triggerVisible = !0, this.loaded = !1, this.containerRef =
|
|
3267
|
+
super(...arguments), this.active = !1, this.triggerVisible = !0, this.loaded = !1, this.containerRef = ve(), this.widgetActive$ = new de(!1), this.componentIsDestroyed$ = new P();
|
|
3268
3268
|
}
|
|
3269
3269
|
async connectedCallback() {
|
|
3270
3270
|
super.connectedCallback(), this.icon = await this._renderSymbol(), this.loaded = !0, this._applyBranding();
|
|
@@ -3299,7 +3299,7 @@ const Rs = class Rs extends _ {
|
|
|
3299
3299
|
}
|
|
3300
3300
|
_applyBranding() {
|
|
3301
3301
|
var e;
|
|
3302
|
-
(e = this.application) != null && e.settings &&
|
|
3302
|
+
(e = this.application) != null && e.settings && Ea(this.application.settings.branding, this);
|
|
3303
3303
|
}
|
|
3304
3304
|
async _renderSymbol() {
|
|
3305
3305
|
var a, l, c;
|
|
@@ -3343,7 +3343,7 @@ const Rs = class Rs extends _ {
|
|
|
3343
3343
|
"trigger-container": !0,
|
|
3344
3344
|
hidden: !this.triggerVisible
|
|
3345
3345
|
})}
|
|
3346
|
-
${
|
|
3346
|
+
${be(this.containerRef)}
|
|
3347
3347
|
>
|
|
3348
3348
|
${!this.active && ((s = (i = (t = (e = this.application) == null ? void 0 : e.settings) == null ? void 0 : t.branding) == null ? void 0 : i.other) != null && s.showButtonLabel) ? y`
|
|
3349
3349
|
<button
|
|
@@ -3405,7 +3405,7 @@ const Rs = class Rs extends _ {
|
|
|
3405
3405
|
}
|
|
3406
3406
|
};
|
|
3407
3407
|
Rs.styles = [
|
|
3408
|
-
|
|
3408
|
+
O`
|
|
3409
3409
|
:host {
|
|
3410
3410
|
--voca-rem-multiplier: 0.625;
|
|
3411
3411
|
--trigger-label-bg: #f5e0ff;
|
|
@@ -3536,28 +3536,28 @@ Rs.styles = [
|
|
|
3536
3536
|
}
|
|
3537
3537
|
`
|
|
3538
3538
|
];
|
|
3539
|
-
let
|
|
3539
|
+
let Re = Rs;
|
|
3540
3540
|
an([
|
|
3541
3541
|
k({ attribute: !1 })
|
|
3542
|
-
],
|
|
3542
|
+
], Re.prototype, "application");
|
|
3543
3543
|
an([
|
|
3544
|
-
|
|
3545
|
-
],
|
|
3544
|
+
T()
|
|
3545
|
+
], Re.prototype, "active");
|
|
3546
3546
|
an([
|
|
3547
|
-
|
|
3548
|
-
],
|
|
3547
|
+
T()
|
|
3548
|
+
], Re.prototype, "triggerVisible");
|
|
3549
3549
|
an([
|
|
3550
|
-
|
|
3551
|
-
],
|
|
3550
|
+
T()
|
|
3551
|
+
], Re.prototype, "loaded");
|
|
3552
3552
|
an([
|
|
3553
|
-
|
|
3554
|
-
],
|
|
3553
|
+
T()
|
|
3554
|
+
], Re.prototype, "icon");
|
|
3555
3555
|
var uh = Object.defineProperty, We = (n, e, t, i) => {
|
|
3556
3556
|
for (var s = void 0, r = n.length - 1, o; r >= 0; r--)
|
|
3557
3557
|
(o = n[r]) && (s = o(e, t, s) || s);
|
|
3558
3558
|
return s && uh(e, t, s), s;
|
|
3559
3559
|
};
|
|
3560
|
-
const
|
|
3560
|
+
const _a = (n) => {
|
|
3561
3561
|
const t = class t extends n {
|
|
3562
3562
|
constructor() {
|
|
3563
3563
|
super(...arguments), this.properties = {}, this.context = {}, this.layout = {}, this.nodes = [];
|
|
@@ -3583,7 +3583,7 @@ const Ea = (n) => {
|
|
|
3583
3583
|
};
|
|
3584
3584
|
t.styles = [
|
|
3585
3585
|
// (superClass as unknown as typeof LitElement).styles ?? [],
|
|
3586
|
-
|
|
3586
|
+
O`
|
|
3587
3587
|
:host {
|
|
3588
3588
|
font-family: var(--font-family);
|
|
3589
3589
|
grid-column: span var(--width);
|
|
@@ -3613,13 +3613,13 @@ const Ea = (n) => {
|
|
|
3613
3613
|
], e.prototype, "application"), We([
|
|
3614
3614
|
k({ attribute: !1 })
|
|
3615
3615
|
], e.prototype, "parent"), e;
|
|
3616
|
-
}, Is = class Is extends
|
|
3616
|
+
}, Is = class Is extends _a(_) {
|
|
3617
3617
|
render() {
|
|
3618
3618
|
return y`Non resolved component`;
|
|
3619
3619
|
}
|
|
3620
3620
|
};
|
|
3621
3621
|
Is.styles = [
|
|
3622
|
-
|
|
3622
|
+
O`
|
|
3623
3623
|
:host {
|
|
3624
3624
|
display: block;
|
|
3625
3625
|
}
|
|
@@ -3637,13 +3637,13 @@ function* hh(n, e) {
|
|
|
3637
3637
|
for (const i of n) yield e(i, t++);
|
|
3638
3638
|
}
|
|
3639
3639
|
}
|
|
3640
|
-
var ms = /* @__PURE__ */ ((n) => (n.Inline = "inline", n.Trigger = "trigger", n))(ms || {}),
|
|
3640
|
+
var ms = /* @__PURE__ */ ((n) => (n.Inline = "inline", n.Trigger = "trigger", n))(ms || {}), ee = /* @__PURE__ */ ((n) => (n.NonAuthenticated = "non-authenticated", n.Authenticating = "authenticating", n.Authenticated = "authenticated", n.ChatEnded = "chat-ended", n))(ee || {});
|
|
3641
3641
|
/**
|
|
3642
3642
|
* @license
|
|
3643
3643
|
* Copyright 2021 Google LLC
|
|
3644
3644
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3645
3645
|
*/
|
|
3646
|
-
let
|
|
3646
|
+
let Aa = class extends Event {
|
|
3647
3647
|
constructor(e, t, i, s) {
|
|
3648
3648
|
super("context-request", { bubbles: !0, composed: !0 }), this.context = e, this.contextTarget = t, this.callback = i, this.subscribe = s ?? !1;
|
|
3649
3649
|
}
|
|
@@ -3675,7 +3675,7 @@ let uo = class {
|
|
|
3675
3675
|
this.unsubscribe && (this.unsubscribe(), this.unsubscribe = void 0);
|
|
3676
3676
|
}
|
|
3677
3677
|
dispatchRequest() {
|
|
3678
|
-
this.host.dispatchEvent(new
|
|
3678
|
+
this.host.dispatchEvent(new Aa(this.context, this.host, this.t, this.subscribe));
|
|
3679
3679
|
}
|
|
3680
3680
|
};
|
|
3681
3681
|
/**
|
|
@@ -3730,7 +3730,7 @@ let ph = class extends Event {
|
|
|
3730
3730
|
}, this.onProviderRequest = (o) => {
|
|
3731
3731
|
if (o.context !== this.context || (o.contextTarget ?? o.composedPath()[0]) === this.host) return;
|
|
3732
3732
|
const a = /* @__PURE__ */ new Set();
|
|
3733
|
-
for (const [l, { consumerHost: c }] of this.subscriptions) a.has(l) || (a.add(l), c.dispatchEvent(new
|
|
3733
|
+
for (const [l, { consumerHost: c }] of this.subscriptions) a.has(l) || (a.add(l), c.dispatchEvent(new Aa(this.context, c, l, !0)));
|
|
3734
3734
|
o.stopPropagation();
|
|
3735
3735
|
}, this.host = e, t.context !== void 0 ? this.context = t.context : this.context = t, this.attachListeners(), (r = (s = this.host).addController) == null || r.call(s, this);
|
|
3736
3736
|
}
|
|
@@ -3784,7 +3784,7 @@ function fh({ context: n }) {
|
|
|
3784
3784
|
* Copyright 2022 Google LLC
|
|
3785
3785
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3786
3786
|
*/
|
|
3787
|
-
function
|
|
3787
|
+
function le({ context: n, subscribe: e }) {
|
|
3788
3788
|
return (t, i) => {
|
|
3789
3789
|
typeof i == "object" ? i.addInitializer((function() {
|
|
3790
3790
|
new uo(this, { context: n, callback: (s) => {
|
|
@@ -3797,14 +3797,14 @@ function oe({ context: n, subscribe: e }) {
|
|
|
3797
3797
|
}));
|
|
3798
3798
|
};
|
|
3799
3799
|
}
|
|
3800
|
-
var gh = Object.defineProperty,
|
|
3800
|
+
var gh = Object.defineProperty, Ta = (n, e, t, i) => {
|
|
3801
3801
|
for (var s = void 0, r = n.length - 1, o; r >= 0; r--)
|
|
3802
3802
|
(o = n[r]) && (s = o(e, t, s) || s);
|
|
3803
3803
|
return s && gh(e, t, s), s;
|
|
3804
3804
|
};
|
|
3805
|
-
const
|
|
3805
|
+
const se = "application", Ps = class Ps extends _ {
|
|
3806
3806
|
constructor() {
|
|
3807
|
-
super(...arguments), this.nodes = [], this.wrapperRef =
|
|
3807
|
+
super(...arguments), this.nodes = [], this.wrapperRef = ve(), this.fullscreen = !1, this.isReady = new de(!1);
|
|
3808
3808
|
}
|
|
3809
3809
|
addChild(e) {
|
|
3810
3810
|
e.parent = this, this.nodes.push(e);
|
|
@@ -3813,7 +3813,7 @@ const ne = "application", Ps = class Ps extends _ {
|
|
|
3813
3813
|
if (!this.wrapperRef.value)
|
|
3814
3814
|
return;
|
|
3815
3815
|
const e = this.application.settings;
|
|
3816
|
-
e != null && e.branding &&
|
|
3816
|
+
e != null && e.branding && Ea(e.branding, this.wrapperRef.value);
|
|
3817
3817
|
}
|
|
3818
3818
|
applyStyles() {
|
|
3819
3819
|
if (!this.wrapperRef.value)
|
|
@@ -3829,12 +3829,12 @@ const ne = "application", Ps = class Ps extends _ {
|
|
|
3829
3829
|
render() {
|
|
3830
3830
|
var i, s;
|
|
3831
3831
|
const e = this.application.settings.components.conversation;
|
|
3832
|
-
return ((s = (i = e == null ? void 0 : e.properties) == null ? void 0 : i.chat) == null ? void 0 : s.isThirdPartyWidget) ? this.renderRoot.host.classList.add("third-party") : this.application.renderStrategy === ms.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")), this.application.fullscreen && this.renderRoot.host.classList.add("fullscreen"), window.self !== window.top && this.renderRoot.host.classList.add("embedded"), y`<div class="widget-container" ${
|
|
3832
|
+
return ((s = (i = e == null ? void 0 : e.properties) == null ? void 0 : i.chat) == null ? void 0 : s.isThirdPartyWidget) ? this.renderRoot.host.classList.add("third-party") : this.application.renderStrategy === ms.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")), this.application.fullscreen && this.renderRoot.host.classList.add("fullscreen"), window.self !== window.top && this.renderRoot.host.classList.add("embedded"), y`<div class="widget-container" ${be(this.wrapperRef)}>
|
|
3833
3833
|
${hh(this.nodes, (r) => r)}
|
|
3834
3834
|
</div>`;
|
|
3835
3835
|
}
|
|
3836
3836
|
};
|
|
3837
|
-
Ps.styles =
|
|
3837
|
+
Ps.styles = O`
|
|
3838
3838
|
:host {
|
|
3839
3839
|
--font-family: TeliaSans, Helvetica, Arial, Lucida Grande, sans-serif;
|
|
3840
3840
|
--spacing-xs: 0.2rem;
|
|
@@ -4001,12 +4001,12 @@ Ps.styles = T`
|
|
|
4001
4001
|
}
|
|
4002
4002
|
`;
|
|
4003
4003
|
let Zt = Ps;
|
|
4004
|
-
|
|
4004
|
+
Ta([
|
|
4005
4005
|
k({ attribute: !0 })
|
|
4006
4006
|
], Zt.prototype, "fullscreen");
|
|
4007
|
-
|
|
4007
|
+
Ta([
|
|
4008
4008
|
k({ attribute: !1 }),
|
|
4009
|
-
fh({ context:
|
|
4009
|
+
fh({ context: se })
|
|
4010
4010
|
], Zt.prototype, "application");
|
|
4011
4011
|
var mh = Object.defineProperty, vs = (n, e, t, i) => {
|
|
4012
4012
|
for (var s = void 0, r = n.length - 1, o; r >= 0; r--)
|
|
@@ -4039,14 +4039,14 @@ const Ms = class Ms extends _ {
|
|
|
4039
4039
|
if (!this.widget || this.status !== "activated")
|
|
4040
4040
|
return w;
|
|
4041
4041
|
if (this.widget.renderStrategy === ms.Trigger) {
|
|
4042
|
-
const e = new
|
|
4042
|
+
const e = new Re();
|
|
4043
4043
|
return e.application = this.widget, e;
|
|
4044
4044
|
}
|
|
4045
4045
|
return this.widget.render();
|
|
4046
4046
|
}
|
|
4047
4047
|
};
|
|
4048
4048
|
Ms.styles = [
|
|
4049
|
-
|
|
4049
|
+
O`
|
|
4050
4050
|
:host {
|
|
4051
4051
|
display: block;
|
|
4052
4052
|
}
|
|
@@ -4057,13 +4057,13 @@ vs([
|
|
|
4057
4057
|
k({ attribute: !0 })
|
|
4058
4058
|
], xt.prototype, "name");
|
|
4059
4059
|
vs([
|
|
4060
|
-
|
|
4060
|
+
T()
|
|
4061
4061
|
], xt.prototype, "widget");
|
|
4062
4062
|
vs([
|
|
4063
|
-
|
|
4063
|
+
T()
|
|
4064
4064
|
], xt.prototype, "status");
|
|
4065
4065
|
customElements.get("ace-trigger-slot") || customElements.define("ace-trigger-slot", Un);
|
|
4066
|
-
customElements.get("ace-trigger") || customElements.define("ace-trigger",
|
|
4066
|
+
customElements.get("ace-trigger") || customElements.define("ace-trigger", Re);
|
|
4067
4067
|
customElements.get("ace-unresolved-component") || customElements.define("ace-unresolved-component", Vi);
|
|
4068
4068
|
customElements.get("ace-wrapper") || customElements.define("ace-wrapper", Zt);
|
|
4069
4069
|
customElements.get("ace-widget") || customElements.define("ace-widget", xt);
|
|
@@ -4085,8 +4085,8 @@ class vh {
|
|
|
4085
4085
|
}
|
|
4086
4086
|
class po {
|
|
4087
4087
|
constructor(e, t, i, s, r) {
|
|
4088
|
-
this.id = e, this.providerKey = t, this.providerOptions = i, this.component = r, this.provider$ = new
|
|
4089
|
-
|
|
4088
|
+
this.id = e, this.providerKey = t, this.providerOptions = i, this.component = r, this.provider$ = new de(null), this.entries$ = new de([]), this.removeEntryAction$ = new P(), this.kill$ = new P(), this.isTyping$ = new de(!1), this.data$ = new de({}), this.complete$ = this.provider$.pipe(
|
|
4089
|
+
Oe((l) => l ? l.onComplete() : tt)
|
|
4090
4090
|
);
|
|
4091
4091
|
const o = this._getProviderFactory(t);
|
|
4092
4092
|
if (!o)
|
|
@@ -4123,14 +4123,14 @@ class po {
|
|
|
4123
4123
|
};
|
|
4124
4124
|
}
|
|
4125
4125
|
write(e) {
|
|
4126
|
-
this._addEntryRemoveHandler(e), this.entries$.pipe(
|
|
4126
|
+
this._addEntryRemoveHandler(e), this.entries$.pipe(me(1)).subscribe((t) => {
|
|
4127
4127
|
this.entries$.next([...t, e]);
|
|
4128
4128
|
});
|
|
4129
4129
|
}
|
|
4130
4130
|
_addEntryRemoveHandler(e) {
|
|
4131
4131
|
e.remove$.pipe(
|
|
4132
|
-
|
|
4133
|
-
|
|
4132
|
+
Oe(() => this.entries$),
|
|
4133
|
+
me(1)
|
|
4134
4134
|
).subscribe((t) => {
|
|
4135
4135
|
this.removeEntryAction$.next(e), this.entries$.next(t.filter((i) => i !== e));
|
|
4136
4136
|
});
|
|
@@ -4141,7 +4141,7 @@ class po {
|
|
|
4141
4141
|
}
|
|
4142
4142
|
class bh {
|
|
4143
4143
|
constructor(e) {
|
|
4144
|
-
this.component = e, this.currentSession$ = new
|
|
4144
|
+
this.component = e, this.currentSession$ = new de(null), this.sessions = [], this.storage = null, An(e, "handover").subscribe((t) => {
|
|
4145
4145
|
const i = this._createNewSession(
|
|
4146
4146
|
t.detail.providerKey,
|
|
4147
4147
|
t.detail.providerOptions
|
|
@@ -4239,9 +4239,9 @@ class bh {
|
|
|
4239
4239
|
}
|
|
4240
4240
|
class yh {
|
|
4241
4241
|
constructor(e, t) {
|
|
4242
|
-
this.state$ = e, this.component = t, this.entries$ = new
|
|
4243
|
-
|
|
4244
|
-
|
|
4242
|
+
this.state$ = e, this.component = t, this.entries$ = new de([]), this.session = () => this.session$, this.isTyping = () => this.isTyping$, this.entries = () => this.entries$.asObservable(), this.sessionService = new bh(this.component), this.session$ = this.sessionService.currentSession(), this.isTyping$ = this.session$.pipe(
|
|
4243
|
+
Oe((i) => i ? i.provider$.pipe(
|
|
4244
|
+
Oe((s) => s ? s.isTyping() : Pi(!1))
|
|
4245
4245
|
) : Pi(!1))
|
|
4246
4246
|
), e.subscribe((i) => {
|
|
4247
4247
|
switch (i) {
|
|
@@ -4266,7 +4266,7 @@ class yh {
|
|
|
4266
4266
|
}
|
|
4267
4267
|
rehydrate() {
|
|
4268
4268
|
this.session$.pipe(
|
|
4269
|
-
|
|
4269
|
+
Oe((e) => {
|
|
4270
4270
|
if (!e)
|
|
4271
4271
|
return tt;
|
|
4272
4272
|
const t = e.removeEntryAction$.pipe(Ui(this.entries$)).pipe(
|
|
@@ -4277,7 +4277,7 @@ class yh {
|
|
|
4277
4277
|
return [...r, ...o];
|
|
4278
4278
|
})
|
|
4279
4279
|
);
|
|
4280
|
-
return
|
|
4280
|
+
return mc(t, i);
|
|
4281
4281
|
})
|
|
4282
4282
|
).subscribe((e) => {
|
|
4283
4283
|
this.entries$.next(e);
|
|
@@ -4288,7 +4288,7 @@ class yh {
|
|
|
4288
4288
|
(e = this.sessionService) == null || e.startSession();
|
|
4289
4289
|
}
|
|
4290
4290
|
}
|
|
4291
|
-
var $h = Object.defineProperty,
|
|
4291
|
+
var $h = Object.defineProperty, Oa = (n, e, t, i) => {
|
|
4292
4292
|
for (var s = void 0, r = n.length - 1, o; r >= 0; r--)
|
|
4293
4293
|
(o = n[r]) && (s = o(e, t, s) || s);
|
|
4294
4294
|
return s && $h(e, t, s), s;
|
|
@@ -4325,13 +4325,13 @@ const Us = class Us extends _ {
|
|
|
4325
4325
|
}
|
|
4326
4326
|
_renderDeliveryStatus(e) {
|
|
4327
4327
|
return e === "delivered" ? y`<telia-icon
|
|
4328
|
-
svg=${
|
|
4328
|
+
svg=${qc.svg}
|
|
4329
4329
|
size="sm"
|
|
4330
4330
|
></telia-icon>` : e === "failed" ? y`<telia-icon
|
|
4331
|
-
svg=${
|
|
4331
|
+
svg=${Bc.svg}
|
|
4332
4332
|
size="sm"
|
|
4333
4333
|
title="Message could not be delivered"
|
|
4334
|
-
></telia-icon>` : y`<telia-icon svg=${
|
|
4334
|
+
></telia-icon>` : y`<telia-icon svg=${sa.svg} size="sm"></telia-icon>`;
|
|
4335
4335
|
}
|
|
4336
4336
|
_dispatchEntryAction(e) {
|
|
4337
4337
|
this.entry.actions$.next(e.detail);
|
|
@@ -4418,7 +4418,7 @@ const Us = class Us extends _ {
|
|
|
4418
4418
|
}
|
|
4419
4419
|
};
|
|
4420
4420
|
Us.styles = [
|
|
4421
|
-
|
|
4421
|
+
O`
|
|
4422
4422
|
:host {
|
|
4423
4423
|
box-sizing: border-box;
|
|
4424
4424
|
display: inline;
|
|
@@ -4553,14 +4553,14 @@ Us.styles = [
|
|
|
4553
4553
|
`
|
|
4554
4554
|
];
|
|
4555
4555
|
let Yt = Us;
|
|
4556
|
-
|
|
4556
|
+
Oa([
|
|
4557
4557
|
k({ attribute: !1 })
|
|
4558
4558
|
], Yt.prototype, "entry");
|
|
4559
|
-
|
|
4560
|
-
|
|
4559
|
+
Oa([
|
|
4560
|
+
le({ context: se }),
|
|
4561
4561
|
k({ attribute: !1 })
|
|
4562
4562
|
], Yt.prototype, "application");
|
|
4563
|
-
var wh = Object.defineProperty,
|
|
4563
|
+
var wh = Object.defineProperty, La = (n, e, t, i) => {
|
|
4564
4564
|
for (var s = void 0, r = n.length - 1, o; r >= 0; r--)
|
|
4565
4565
|
(o = n[r]) && (s = o(e, t, s) || s);
|
|
4566
4566
|
return s && wh(e, t, s), s;
|
|
@@ -4602,7 +4602,7 @@ const Ns = class Ns extends _ {
|
|
|
4602
4602
|
}
|
|
4603
4603
|
};
|
|
4604
4604
|
Ns.styles = [
|
|
4605
|
-
|
|
4605
|
+
O`
|
|
4606
4606
|
:host {
|
|
4607
4607
|
display: block;
|
|
4608
4608
|
}
|
|
@@ -4621,10 +4621,10 @@ Ns.styles = [
|
|
|
4621
4621
|
`
|
|
4622
4622
|
];
|
|
4623
4623
|
let Qt = Ns;
|
|
4624
|
-
|
|
4624
|
+
La([
|
|
4625
4625
|
k({ attribute: !1 })
|
|
4626
4626
|
], Qt.prototype, "entries");
|
|
4627
|
-
|
|
4627
|
+
La([
|
|
4628
4628
|
k({ type: Boolean })
|
|
4629
4629
|
], Qt.prototype, "loading");
|
|
4630
4630
|
/**
|
|
@@ -4671,7 +4671,7 @@ const Ds = class Ds extends _ {
|
|
|
4671
4671
|
}
|
|
4672
4672
|
};
|
|
4673
4673
|
Ds.styles = [
|
|
4674
|
-
|
|
4674
|
+
O`
|
|
4675
4675
|
:host {
|
|
4676
4676
|
box-sizing: border-box;
|
|
4677
4677
|
display: block;
|
|
@@ -4700,7 +4700,7 @@ const zs = class zs extends _ {
|
|
|
4700
4700
|
}
|
|
4701
4701
|
};
|
|
4702
4702
|
zs.styles = [
|
|
4703
|
-
|
|
4703
|
+
O`
|
|
4704
4704
|
:host {
|
|
4705
4705
|
display: block;
|
|
4706
4706
|
}
|
|
@@ -4748,7 +4748,7 @@ class Gi extends Jn {
|
|
|
4748
4748
|
}
|
|
4749
4749
|
render(e) {
|
|
4750
4750
|
if (e === w || e == null) return this._t = void 0, this.it = e;
|
|
4751
|
-
if (e ===
|
|
4751
|
+
if (e === Le) return e;
|
|
4752
4752
|
if (typeof e != "string") throw Error(this.constructor.directiveName + "() called with a non-string value");
|
|
4753
4753
|
if (e === this.it) return this._t;
|
|
4754
4754
|
this.it = e;
|
|
@@ -4760,7 +4760,7 @@ Gi.directiveName = "unsafeHTML", Gi.resultType = 1;
|
|
|
4760
4760
|
const Ch = on(Gi);
|
|
4761
4761
|
/*! @license DOMPurify 3.2.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.6/LICENSE */
|
|
4762
4762
|
const {
|
|
4763
|
-
entries:
|
|
4763
|
+
entries: Ra,
|
|
4764
4764
|
setPrototypeOf: fo,
|
|
4765
4765
|
isFrozen: Eh,
|
|
4766
4766
|
getPrototypeOf: _h,
|
|
@@ -4768,8 +4768,8 @@ const {
|
|
|
4768
4768
|
} = Object;
|
|
4769
4769
|
let {
|
|
4770
4770
|
freeze: X,
|
|
4771
|
-
seal:
|
|
4772
|
-
create:
|
|
4771
|
+
seal: re,
|
|
4772
|
+
create: Ia
|
|
4773
4773
|
} = Object, {
|
|
4774
4774
|
apply: Zi,
|
|
4775
4775
|
construct: Yi
|
|
@@ -4777,7 +4777,7 @@ let {
|
|
|
4777
4777
|
X || (X = function(e) {
|
|
4778
4778
|
return e;
|
|
4779
4779
|
});
|
|
4780
|
-
|
|
4780
|
+
re || (re = function(e) {
|
|
4781
4781
|
return e;
|
|
4782
4782
|
});
|
|
4783
4783
|
Zi || (Zi = function(e, t, i) {
|
|
@@ -4786,7 +4786,7 @@ Zi || (Zi = function(e, t, i) {
|
|
|
4786
4786
|
Yi || (Yi = function(e, t) {
|
|
4787
4787
|
return new e(...t);
|
|
4788
4788
|
});
|
|
4789
|
-
const bn = K(Array.prototype.forEach), Th = K(Array.prototype.lastIndexOf), go = K(Array.prototype.pop), Rt = K(Array.prototype.push), Oh = K(Array.prototype.splice), kn = K(String.prototype.toLowerCase), Ei = K(String.prototype.toString), mo = K(String.prototype.match), It = K(String.prototype.replace), Lh = K(String.prototype.indexOf), Rh = K(String.prototype.trim),
|
|
4789
|
+
const bn = K(Array.prototype.forEach), Th = K(Array.prototype.lastIndexOf), go = K(Array.prototype.pop), Rt = K(Array.prototype.push), Oh = K(Array.prototype.splice), kn = K(String.prototype.toLowerCase), Ei = K(String.prototype.toString), mo = K(String.prototype.match), It = K(String.prototype.replace), Lh = K(String.prototype.indexOf), Rh = K(String.prototype.trim), ue = K(Object.prototype.hasOwnProperty), G = K(RegExp.prototype.test), Pt = Ih(TypeError);
|
|
4790
4790
|
function K(n) {
|
|
4791
4791
|
return function(e) {
|
|
4792
4792
|
e instanceof RegExp && (e.lastIndex = 0);
|
|
@@ -4818,13 +4818,13 @@ function x(n, e) {
|
|
|
4818
4818
|
}
|
|
4819
4819
|
function Ph(n) {
|
|
4820
4820
|
for (let e = 0; e < n.length; e++)
|
|
4821
|
-
|
|
4821
|
+
ue(n, e) || (n[e] = null);
|
|
4822
4822
|
return n;
|
|
4823
4823
|
}
|
|
4824
|
-
function
|
|
4825
|
-
const e =
|
|
4826
|
-
for (const [t, i] of
|
|
4827
|
-
|
|
4824
|
+
function Ee(n) {
|
|
4825
|
+
const e = Ia(null);
|
|
4826
|
+
for (const [t, i] of Ra(n))
|
|
4827
|
+
ue(n, t) && (Array.isArray(i) ? e[t] = Ph(i) : i && typeof i == "object" && i.constructor === Object ? e[t] = Ee(i) : e[t] = i);
|
|
4828
4828
|
return e;
|
|
4829
4829
|
}
|
|
4830
4830
|
function Mt(n, e) {
|
|
@@ -4843,22 +4843,22 @@ function Mt(n, e) {
|
|
|
4843
4843
|
}
|
|
4844
4844
|
return t;
|
|
4845
4845
|
}
|
|
4846
|
-
const vo = X(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), _i = X(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), Ai = X(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), Mh = X(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), Ti = X(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), Uh = X(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), bo = X(["#text"]), yo = X(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), Oi = X(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), $o = X(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), yn = X(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), Nh =
|
|
4846
|
+
const vo = X(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), _i = X(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), Ai = X(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), Mh = X(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), Ti = X(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), Uh = X(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), bo = X(["#text"]), yo = X(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), Oi = X(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), $o = X(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), yn = X(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), Nh = re(/\{\{[\w\W]*|[\w\W]*\}\}/gm), Dh = re(/<%[\w\W]*|[\w\W]*%>/gm), zh = re(/\$\{[\w\W]*/gm), Hh = re(/^data-[\-\w.\u00B7-\uFFFF]+$/), Fh = re(/^aria-[\-\w]+$/), Pa = re(
|
|
4847
4847
|
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
|
4848
4848
|
// eslint-disable-line no-useless-escape
|
|
4849
|
-
), jh =
|
|
4849
|
+
), jh = re(/^(?:\w+script|data):/i), Bh = re(
|
|
4850
4850
|
/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
|
|
4851
4851
|
// eslint-disable-line no-control-regex
|
|
4852
|
-
),
|
|
4852
|
+
), Ma = re(/^html$/i), qh = re(/^[a-z][.\w]*(-[.\w]+)+$/i);
|
|
4853
4853
|
var wo = /* @__PURE__ */ Object.freeze({
|
|
4854
4854
|
__proto__: null,
|
|
4855
4855
|
ARIA_ATTR: Fh,
|
|
4856
4856
|
ATTR_WHITESPACE: Bh,
|
|
4857
4857
|
CUSTOM_ELEMENT: qh,
|
|
4858
4858
|
DATA_ATTR: Hh,
|
|
4859
|
-
DOCTYPE_NAME:
|
|
4859
|
+
DOCTYPE_NAME: Ma,
|
|
4860
4860
|
ERB_EXPR: Dh,
|
|
4861
|
-
IS_ALLOWED_URI:
|
|
4861
|
+
IS_ALLOWED_URI: Pa,
|
|
4862
4862
|
IS_SCRIPT_OR_DATA: jh,
|
|
4863
4863
|
MUSTACHE_EXPR: Nh,
|
|
4864
4864
|
TMPLIT_EXPR: zh
|
|
@@ -4904,9 +4904,9 @@ const Ut = {
|
|
|
4904
4904
|
uponSanitizeShadowNode: []
|
|
4905
4905
|
};
|
|
4906
4906
|
};
|
|
4907
|
-
function
|
|
4907
|
+
function Ua() {
|
|
4908
4908
|
let n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Vh();
|
|
4909
|
-
const e = (b) =>
|
|
4909
|
+
const e = (b) => Ua(b);
|
|
4910
4910
|
if (e.version = "3.2.6", e.removed = [], !n || !n.document || n.document.nodeType !== Ut.document || !n.Element)
|
|
4911
4911
|
return e.isSupported = !1, e;
|
|
4912
4912
|
let {
|
|
@@ -4922,7 +4922,7 @@ function Ma() {
|
|
|
4922
4922
|
HTMLFormElement: p,
|
|
4923
4923
|
DOMParser: d,
|
|
4924
4924
|
trustedTypes: g
|
|
4925
|
-
} = n, m = l.prototype, $ = Mt(m, "cloneNode"),
|
|
4925
|
+
} = n, m = l.prototype, $ = Mt(m, "cloneNode"), $e = Mt(m, "remove"), ce = Mt(m, "nextSibling"), Pe = Mt(m, "childNodes"), He = Mt(m, "parentNode");
|
|
4926
4926
|
if (typeof o == "function") {
|
|
4927
4927
|
const b = t.createElement("template");
|
|
4928
4928
|
b.content && b.content.ownerDocument && (t = b.content.ownerDocument);
|
|
@@ -4931,22 +4931,22 @@ function Ma() {
|
|
|
4931
4931
|
const {
|
|
4932
4932
|
implementation: je,
|
|
4933
4933
|
createNodeIterator: Be,
|
|
4934
|
-
createDocumentFragment:
|
|
4935
|
-
getElementsByTagName:
|
|
4934
|
+
createDocumentFragment: el,
|
|
4935
|
+
getElementsByTagName: tl
|
|
4936
4936
|
} = t, {
|
|
4937
|
-
importNode:
|
|
4937
|
+
importNode: nl
|
|
4938
4938
|
} = i;
|
|
4939
4939
|
let V = xo();
|
|
4940
|
-
e.isSupported = typeof
|
|
4940
|
+
e.isSupported = typeof Ra == "function" && typeof He == "function" && je && je.createHTMLDocument !== void 0;
|
|
4941
4941
|
const {
|
|
4942
4942
|
MUSTACHE_EXPR: ni,
|
|
4943
4943
|
ERB_EXPR: ii,
|
|
4944
4944
|
TMPLIT_EXPR: si,
|
|
4945
|
-
DATA_ATTR:
|
|
4946
|
-
ARIA_ATTR:
|
|
4947
|
-
IS_SCRIPT_OR_DATA:
|
|
4945
|
+
DATA_ATTR: il,
|
|
4946
|
+
ARIA_ATTR: sl,
|
|
4947
|
+
IS_SCRIPT_OR_DATA: rl,
|
|
4948
4948
|
ATTR_WHITESPACE: er,
|
|
4949
|
-
CUSTOM_ELEMENT:
|
|
4949
|
+
CUSTOM_ELEMENT: ol
|
|
4950
4950
|
} = wo;
|
|
4951
4951
|
let {
|
|
4952
4952
|
IS_ALLOWED_URI: tr
|
|
@@ -4954,7 +4954,7 @@ function Ma() {
|
|
|
4954
4954
|
const nr = x({}, [...vo, ..._i, ...Ai, ...Ti, ...bo]);
|
|
4955
4955
|
let D = null;
|
|
4956
4956
|
const ir = x({}, [...yo, ...Oi, ...$o, ...yn]);
|
|
4957
|
-
let R = Object.seal(
|
|
4957
|
+
let R = Object.seal(Ia(null, {
|
|
4958
4958
|
tagNameCheck: {
|
|
4959
4959
|
writable: !0,
|
|
4960
4960
|
configurable: !1,
|
|
@@ -4974,27 +4974,27 @@ function Ma() {
|
|
|
4974
4974
|
value: !1
|
|
4975
4975
|
}
|
|
4976
4976
|
})), _t = null, ri = null, sr = !0, oi = !0, rr = !1, or = !0, st = !1, cn = !0, qe = !1, ai = !1, li = !1, rt = !1, un = !1, hn = !1, ar = !0, lr = !1;
|
|
4977
|
-
const
|
|
4977
|
+
const al = "user-content-";
|
|
4978
4978
|
let ci = !0, At = !1, ot = {}, at = null;
|
|
4979
4979
|
const cr = x({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
|
|
4980
4980
|
let ur = null;
|
|
4981
4981
|
const hr = x({}, ["audio", "video", "img", "source", "image", "track"]);
|
|
4982
4982
|
let ui = null;
|
|
4983
|
-
const dr = x({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), dn = "http://www.w3.org/1998/Math/MathML", pn = "http://www.w3.org/2000/svg",
|
|
4984
|
-
let lt =
|
|
4985
|
-
const
|
|
4983
|
+
const dr = x({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), dn = "http://www.w3.org/1998/Math/MathML", pn = "http://www.w3.org/2000/svg", we = "http://www.w3.org/1999/xhtml";
|
|
4984
|
+
let lt = we, hi = !1, di = null;
|
|
4985
|
+
const ll = x({}, [dn, pn, we], Ei);
|
|
4986
4986
|
let fn = x({}, ["mi", "mo", "mn", "ms", "mtext"]), gn = x({}, ["annotation-xml"]);
|
|
4987
|
-
const
|
|
4987
|
+
const cl = x({}, ["title", "style", "font", "a", "script"]);
|
|
4988
4988
|
let Tt = null;
|
|
4989
|
-
const
|
|
4989
|
+
const ul = ["application/xhtml+xml", "text/html"], hl = "text/html";
|
|
4990
4990
|
let N = null, ct = null;
|
|
4991
|
-
const
|
|
4991
|
+
const dl = t.createElement("form"), pr = function(h) {
|
|
4992
4992
|
return h instanceof RegExp || h instanceof Function;
|
|
4993
4993
|
}, pi = function() {
|
|
4994
4994
|
let h = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
4995
4995
|
if (!(ct && ct === h)) {
|
|
4996
|
-
if ((!h || typeof h != "object") && (h = {}), h =
|
|
4997
|
-
|
|
4996
|
+
if ((!h || typeof h != "object") && (h = {}), h = Ee(h), Tt = // eslint-disable-next-line unicorn/prefer-includes
|
|
4997
|
+
ul.indexOf(h.PARSER_MEDIA_TYPE) === -1 ? hl : h.PARSER_MEDIA_TYPE, N = Tt === "application/xhtml+xml" ? Ei : kn, U = ue(h, "ALLOWED_TAGS") ? x({}, h.ALLOWED_TAGS, N) : nr, D = ue(h, "ALLOWED_ATTR") ? x({}, h.ALLOWED_ATTR, N) : ir, di = ue(h, "ALLOWED_NAMESPACES") ? x({}, h.ALLOWED_NAMESPACES, Ei) : ll, ui = ue(h, "ADD_URI_SAFE_ATTR") ? x(Ee(dr), h.ADD_URI_SAFE_ATTR, N) : dr, ur = ue(h, "ADD_DATA_URI_TAGS") ? x(Ee(hr), h.ADD_DATA_URI_TAGS, N) : hr, at = ue(h, "FORBID_CONTENTS") ? x({}, h.FORBID_CONTENTS, N) : cr, _t = ue(h, "FORBID_TAGS") ? x({}, h.FORBID_TAGS, N) : Ee({}), ri = ue(h, "FORBID_ATTR") ? x({}, h.FORBID_ATTR, N) : Ee({}), ot = ue(h, "USE_PROFILES") ? h.USE_PROFILES : !1, sr = h.ALLOW_ARIA_ATTR !== !1, oi = h.ALLOW_DATA_ATTR !== !1, rr = h.ALLOW_UNKNOWN_PROTOCOLS || !1, or = h.ALLOW_SELF_CLOSE_IN_ATTR !== !1, st = h.SAFE_FOR_TEMPLATES || !1, cn = h.SAFE_FOR_XML !== !1, qe = h.WHOLE_DOCUMENT || !1, rt = h.RETURN_DOM || !1, un = h.RETURN_DOM_FRAGMENT || !1, hn = h.RETURN_TRUSTED_TYPE || !1, li = h.FORCE_BODY || !1, ar = h.SANITIZE_DOM !== !1, lr = h.SANITIZE_NAMED_PROPS || !1, ci = h.KEEP_CONTENT !== !1, At = h.IN_PLACE || !1, tr = h.ALLOWED_URI_REGEXP || Pa, lt = h.NAMESPACE || we, fn = h.MATHML_TEXT_INTEGRATION_POINTS || fn, gn = h.HTML_INTEGRATION_POINTS || gn, R = h.CUSTOM_ELEMENT_HANDLING || {}, h.CUSTOM_ELEMENT_HANDLING && pr(h.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (R.tagNameCheck = h.CUSTOM_ELEMENT_HANDLING.tagNameCheck), h.CUSTOM_ELEMENT_HANDLING && pr(h.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (R.attributeNameCheck = h.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), h.CUSTOM_ELEMENT_HANDLING && typeof h.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (R.allowCustomizedBuiltInElements = h.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), st && (oi = !1), un && (rt = !0), ot && (U = x({}, bo), D = [], ot.html === !0 && (x(U, vo), x(D, yo)), ot.svg === !0 && (x(U, _i), x(D, Oi), x(D, yn)), ot.svgFilters === !0 && (x(U, Ai), x(D, Oi), x(D, yn)), ot.mathMl === !0 && (x(U, Ti), x(D, $o), x(D, yn))), h.ADD_TAGS && (U === nr && (U = Ee(U)), x(U, h.ADD_TAGS, N)), h.ADD_ATTR && (D === ir && (D = Ee(D)), x(D, h.ADD_ATTR, N)), h.ADD_URI_SAFE_ATTR && x(ui, h.ADD_URI_SAFE_ATTR, N), h.FORBID_CONTENTS && (at === cr && (at = Ee(at)), x(at, h.FORBID_CONTENTS, N)), ci && (U["#text"] = !0), qe && x(U, ["html", "head", "body"]), U.table && (x(U, ["tbody"]), delete _t.tbody), h.TRUSTED_TYPES_POLICY) {
|
|
4998
4998
|
if (typeof h.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
4999
4999
|
throw Pt('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
5000
5000
|
if (typeof h.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
@@ -5004,22 +5004,22 @@ function Ma() {
|
|
|
5004
5004
|
M === void 0 && (M = Wh(g, s)), M !== null && typeof Fe == "string" && (Fe = M.createHTML(""));
|
|
5005
5005
|
X && X(h), ct = h;
|
|
5006
5006
|
}
|
|
5007
|
-
}, fr = x({}, [..._i, ...Ai, ...Mh]), gr = x({}, [...Ti, ...Uh]),
|
|
5007
|
+
}, fr = x({}, [..._i, ...Ai, ...Mh]), gr = x({}, [...Ti, ...Uh]), pl = function(h) {
|
|
5008
5008
|
let f = He(h);
|
|
5009
5009
|
(!f || !f.tagName) && (f = {
|
|
5010
5010
|
namespaceURI: lt,
|
|
5011
5011
|
tagName: "template"
|
|
5012
5012
|
});
|
|
5013
5013
|
const v = kn(h.tagName), L = kn(f.tagName);
|
|
5014
|
-
return di[h.namespaceURI] ? h.namespaceURI === pn ? f.namespaceURI ===
|
|
5015
|
-
},
|
|
5014
|
+
return di[h.namespaceURI] ? h.namespaceURI === pn ? f.namespaceURI === we ? v === "svg" : f.namespaceURI === dn ? v === "svg" && (L === "annotation-xml" || fn[L]) : !!fr[v] : h.namespaceURI === dn ? f.namespaceURI === we ? v === "math" : f.namespaceURI === pn ? v === "math" && gn[L] : !!gr[v] : h.namespaceURI === we ? f.namespaceURI === pn && !gn[L] || f.namespaceURI === dn && !fn[L] ? !1 : !gr[v] && (cl[v] || !fr[v]) : !!(Tt === "application/xhtml+xml" && di[h.namespaceURI]) : !1;
|
|
5015
|
+
}, fe = function(h) {
|
|
5016
5016
|
Rt(e.removed, {
|
|
5017
5017
|
element: h
|
|
5018
5018
|
});
|
|
5019
5019
|
try {
|
|
5020
5020
|
He(h).removeChild(h);
|
|
5021
5021
|
} catch {
|
|
5022
|
-
|
|
5022
|
+
$e(h);
|
|
5023
5023
|
}
|
|
5024
5024
|
}, ut = function(h, f) {
|
|
5025
5025
|
try {
|
|
@@ -5036,7 +5036,7 @@ function Ma() {
|
|
|
5036
5036
|
if (f.removeAttribute(h), h === "is")
|
|
5037
5037
|
if (rt || un)
|
|
5038
5038
|
try {
|
|
5039
|
-
|
|
5039
|
+
fe(f);
|
|
5040
5040
|
} catch {
|
|
5041
5041
|
}
|
|
5042
5042
|
else
|
|
@@ -5052,9 +5052,9 @@ function Ma() {
|
|
|
5052
5052
|
const I = mo(h, /^[\r\n\t ]+/);
|
|
5053
5053
|
v = I && I[0];
|
|
5054
5054
|
}
|
|
5055
|
-
Tt === "application/xhtml+xml" && lt ===
|
|
5055
|
+
Tt === "application/xhtml+xml" && lt === we && (h = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + h + "</body></html>");
|
|
5056
5056
|
const L = M ? M.createHTML(h) : h;
|
|
5057
|
-
if (lt ===
|
|
5057
|
+
if (lt === we)
|
|
5058
5058
|
try {
|
|
5059
5059
|
f = new d().parseFromString(L, Tt);
|
|
5060
5060
|
} catch {
|
|
@@ -5067,7 +5067,7 @@ function Ma() {
|
|
|
5067
5067
|
}
|
|
5068
5068
|
}
|
|
5069
5069
|
const B = f.body || f.documentElement;
|
|
5070
|
-
return h && v && B.insertBefore(t.createTextNode(v), B.childNodes[0] || null), lt ===
|
|
5070
|
+
return h && v && B.insertBefore(t.createTextNode(v), B.childNodes[0] || null), lt === we ? tl.call(f, qe ? "html" : "body")[0] : qe ? f.documentElement : B;
|
|
5071
5071
|
}, vr = function(h) {
|
|
5072
5072
|
return Be.call(
|
|
5073
5073
|
h.ownerDocument || h,
|
|
@@ -5081,46 +5081,46 @@ function Ma() {
|
|
|
5081
5081
|
}, br = function(h) {
|
|
5082
5082
|
return typeof a == "function" && h instanceof a;
|
|
5083
5083
|
};
|
|
5084
|
-
function
|
|
5084
|
+
function xe(b, h, f) {
|
|
5085
5085
|
bn(b, (v) => {
|
|
5086
5086
|
v.call(e, h, f, ct);
|
|
5087
5087
|
});
|
|
5088
5088
|
}
|
|
5089
5089
|
const yr = function(h) {
|
|
5090
5090
|
let f = null;
|
|
5091
|
-
if (
|
|
5092
|
-
return
|
|
5091
|
+
if (xe(V.beforeSanitizeElements, h, null), fi(h))
|
|
5092
|
+
return fe(h), !0;
|
|
5093
5093
|
const v = N(h.nodeName);
|
|
5094
|
-
if (
|
|
5094
|
+
if (xe(V.uponSanitizeElement, h, {
|
|
5095
5095
|
tagName: v,
|
|
5096
5096
|
allowedTags: U
|
|
5097
5097
|
}), cn && h.hasChildNodes() && !br(h.firstElementChild) && G(/<[/\w!]/g, h.innerHTML) && G(/<[/\w!]/g, h.textContent) || h.nodeType === Ut.progressingInstruction || cn && h.nodeType === Ut.comment && G(/<[/\w]/g, h.data))
|
|
5098
|
-
return
|
|
5098
|
+
return fe(h), !0;
|
|
5099
5099
|
if (!U[v] || _t[v]) {
|
|
5100
5100
|
if (!_t[v] && wr(v) && (R.tagNameCheck instanceof RegExp && G(R.tagNameCheck, v) || R.tagNameCheck instanceof Function && R.tagNameCheck(v)))
|
|
5101
5101
|
return !1;
|
|
5102
5102
|
if (ci && !at[v]) {
|
|
5103
|
-
const L = He(h) || h.parentNode, B =
|
|
5103
|
+
const L = He(h) || h.parentNode, B = Pe(h) || h.childNodes;
|
|
5104
5104
|
if (B && L) {
|
|
5105
5105
|
const I = B.length;
|
|
5106
5106
|
for (let J = I - 1; J >= 0; --J) {
|
|
5107
|
-
const
|
|
5108
|
-
|
|
5107
|
+
const ke = $(B[J], !0);
|
|
5108
|
+
ke.__removalCount = (h.__removalCount || 0) + 1, L.insertBefore(ke, ce(h));
|
|
5109
5109
|
}
|
|
5110
5110
|
}
|
|
5111
5111
|
}
|
|
5112
|
-
return
|
|
5112
|
+
return fe(h), !0;
|
|
5113
5113
|
}
|
|
5114
|
-
return h instanceof l && !
|
|
5114
|
+
return h instanceof l && !pl(h) || (v === "noscript" || v === "noembed" || v === "noframes") && G(/<\/no(script|embed|frames)/i, h.innerHTML) ? (fe(h), !0) : (st && h.nodeType === Ut.text && (f = h.textContent, bn([ni, ii, si], (L) => {
|
|
5115
5115
|
f = It(f, L, " ");
|
|
5116
5116
|
}), h.textContent !== f && (Rt(e.removed, {
|
|
5117
5117
|
element: h.cloneNode()
|
|
5118
|
-
}), h.textContent = f)),
|
|
5118
|
+
}), h.textContent = f)), xe(V.afterSanitizeElements, h, null), !1);
|
|
5119
5119
|
}, $r = function(h, f, v) {
|
|
5120
|
-
if (ar && (f === "id" || f === "name") && (v in t || v in
|
|
5120
|
+
if (ar && (f === "id" || f === "name") && (v in t || v in dl))
|
|
5121
5121
|
return !1;
|
|
5122
|
-
if (!(oi && !ri[f] && G(
|
|
5123
|
-
if (!(sr && G(
|
|
5122
|
+
if (!(oi && !ri[f] && G(il, f))) {
|
|
5123
|
+
if (!(sr && G(sl, f))) {
|
|
5124
5124
|
if (!D[f] || ri[f]) {
|
|
5125
5125
|
if (
|
|
5126
5126
|
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
@@ -5133,7 +5133,7 @@ function Ma() {
|
|
|
5133
5133
|
} else if (!ui[f]) {
|
|
5134
5134
|
if (!G(tr, It(v, er, ""))) {
|
|
5135
5135
|
if (!((f === "src" || f === "xlink:href" || f === "href") && h !== "script" && Lh(v, "data:") === 0 && ur[h])) {
|
|
5136
|
-
if (!(rr && !G(
|
|
5136
|
+
if (!(rr && !G(rl, It(v, er, "")))) {
|
|
5137
5137
|
if (v)
|
|
5138
5138
|
return !1;
|
|
5139
5139
|
}
|
|
@@ -5144,9 +5144,9 @@ function Ma() {
|
|
|
5144
5144
|
}
|
|
5145
5145
|
return !0;
|
|
5146
5146
|
}, wr = function(h) {
|
|
5147
|
-
return h !== "annotation-xml" && mo(h,
|
|
5147
|
+
return h !== "annotation-xml" && mo(h, ol);
|
|
5148
5148
|
}, xr = function(h) {
|
|
5149
|
-
|
|
5149
|
+
xe(V.beforeSanitizeAttributes, h, null);
|
|
5150
5150
|
const {
|
|
5151
5151
|
attributes: f
|
|
5152
5152
|
} = h;
|
|
@@ -5164,10 +5164,10 @@ function Ma() {
|
|
|
5164
5164
|
const B = f[L], {
|
|
5165
5165
|
name: I,
|
|
5166
5166
|
namespaceURI: J,
|
|
5167
|
-
value:
|
|
5168
|
-
} = B, Ot = N(I), gi =
|
|
5167
|
+
value: ke
|
|
5168
|
+
} = B, Ot = N(I), gi = ke;
|
|
5169
5169
|
let q = I === "value" ? gi : Rh(gi);
|
|
5170
|
-
if (v.attrName = Ot, v.attrValue = q, v.keepAttr = !0, v.forceKeepAttr = void 0,
|
|
5170
|
+
if (v.attrName = Ot, v.attrValue = q, v.keepAttr = !0, v.forceKeepAttr = void 0, xe(V.uponSanitizeAttribute, h, v), q = v.attrValue, lr && (Ot === "id" || Ot === "name") && (ut(I, h), q = al + q), cn && G(/((--!?|])>)|<\/(style|title)/i, q)) {
|
|
5171
5171
|
ut(I, h);
|
|
5172
5172
|
continue;
|
|
5173
5173
|
}
|
|
@@ -5202,18 +5202,18 @@ function Ma() {
|
|
|
5202
5202
|
}
|
|
5203
5203
|
if (q !== gi)
|
|
5204
5204
|
try {
|
|
5205
|
-
J ? h.setAttributeNS(J, I, q) : h.setAttribute(I, q), fi(h) ?
|
|
5205
|
+
J ? h.setAttributeNS(J, I, q) : h.setAttribute(I, q), fi(h) ? fe(h) : go(e.removed);
|
|
5206
5206
|
} catch {
|
|
5207
5207
|
ut(I, h);
|
|
5208
5208
|
}
|
|
5209
5209
|
}
|
|
5210
|
-
|
|
5211
|
-
},
|
|
5210
|
+
xe(V.afterSanitizeAttributes, h, null);
|
|
5211
|
+
}, fl = function b(h) {
|
|
5212
5212
|
let f = null;
|
|
5213
5213
|
const v = vr(h);
|
|
5214
|
-
for (
|
|
5215
|
-
|
|
5216
|
-
|
|
5214
|
+
for (xe(V.beforeSanitizeShadowDOM, h, null); f = v.nextNode(); )
|
|
5215
|
+
xe(V.uponSanitizeShadowNode, f, null), yr(f), xr(f), f.content instanceof r && b(f.content);
|
|
5216
|
+
xe(V.afterSanitizeShadowDOM, h, null);
|
|
5217
5217
|
};
|
|
5218
5218
|
return e.sanitize = function(b) {
|
|
5219
5219
|
let h = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, f = null, v = null, L = null, B = null;
|
|
@@ -5227,8 +5227,8 @@ function Ma() {
|
|
|
5227
5227
|
return b;
|
|
5228
5228
|
if (ai || pi(h), e.removed = [], typeof b == "string" && (At = !1), At) {
|
|
5229
5229
|
if (b.nodeName) {
|
|
5230
|
-
const
|
|
5231
|
-
if (!U[
|
|
5230
|
+
const ke = N(b.nodeName);
|
|
5231
|
+
if (!U[ke] || _t[ke])
|
|
5232
5232
|
throw Pt("root node is forbidden and cannot be sanitized in-place");
|
|
5233
5233
|
}
|
|
5234
5234
|
} else if (b instanceof a)
|
|
@@ -5240,24 +5240,24 @@ function Ma() {
|
|
|
5240
5240
|
if (f = mr(b), !f)
|
|
5241
5241
|
return rt ? null : hn ? Fe : "";
|
|
5242
5242
|
}
|
|
5243
|
-
f && li &&
|
|
5243
|
+
f && li && fe(f.firstChild);
|
|
5244
5244
|
const I = vr(At ? b : f);
|
|
5245
5245
|
for (; L = I.nextNode(); )
|
|
5246
|
-
yr(L), xr(L), L.content instanceof r &&
|
|
5246
|
+
yr(L), xr(L), L.content instanceof r && fl(L.content);
|
|
5247
5247
|
if (At)
|
|
5248
5248
|
return b;
|
|
5249
5249
|
if (rt) {
|
|
5250
5250
|
if (un)
|
|
5251
|
-
for (B =
|
|
5251
|
+
for (B = el.call(f.ownerDocument); f.firstChild; )
|
|
5252
5252
|
B.appendChild(f.firstChild);
|
|
5253
5253
|
else
|
|
5254
5254
|
B = f;
|
|
5255
|
-
return (D.shadowroot || D.shadowrootmode) && (B =
|
|
5255
|
+
return (D.shadowroot || D.shadowrootmode) && (B = nl.call(i, B, !0)), B;
|
|
5256
5256
|
}
|
|
5257
5257
|
let J = qe ? f.outerHTML : f.innerHTML;
|
|
5258
|
-
return qe && U["!doctype"] && f.ownerDocument && f.ownerDocument.doctype && f.ownerDocument.doctype.name && G(
|
|
5259
|
-
` + J), st && bn([ni, ii, si], (
|
|
5260
|
-
J = It(J,
|
|
5258
|
+
return qe && U["!doctype"] && f.ownerDocument && f.ownerDocument.doctype && f.ownerDocument.doctype.name && G(Ma, f.ownerDocument.doctype.name) && (J = "<!DOCTYPE " + f.ownerDocument.doctype.name + `>
|
|
5259
|
+
` + J), st && bn([ni, ii, si], (ke) => {
|
|
5260
|
+
J = It(J, ke, " ");
|
|
5261
5261
|
}), M && hn ? M.createHTML(J) : J;
|
|
5262
5262
|
}, e.setConfig = function() {
|
|
5263
5263
|
let b = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
@@ -5282,7 +5282,7 @@ function Ma() {
|
|
|
5282
5282
|
V = xo();
|
|
5283
5283
|
}, e;
|
|
5284
5284
|
}
|
|
5285
|
-
var
|
|
5285
|
+
var Na = Ua(), Gh = Object.defineProperty, Zh = (n, e, t, i) => {
|
|
5286
5286
|
for (var s = void 0, r = n.length - 1, o; r >= 0; r--)
|
|
5287
5287
|
(o = n[r]) && (s = o(e, t, s) || s);
|
|
5288
5288
|
return s && Gh(e, t, s), s;
|
|
@@ -5290,12 +5290,12 @@ var Ua = Ma(), Gh = Object.defineProperty, Zh = (n, e, t, i) => {
|
|
|
5290
5290
|
const Hs = class Hs extends _ {
|
|
5291
5291
|
render() {
|
|
5292
5292
|
return y`<div class="message-type-html">
|
|
5293
|
-
${Ch(
|
|
5293
|
+
${Ch(Na.sanitize(this.message.content))}
|
|
5294
5294
|
</div>`;
|
|
5295
5295
|
}
|
|
5296
5296
|
};
|
|
5297
5297
|
Hs.styles = [
|
|
5298
|
-
|
|
5298
|
+
O`
|
|
5299
5299
|
:host {
|
|
5300
5300
|
box-sizing: border-box;
|
|
5301
5301
|
}
|
|
@@ -5350,7 +5350,7 @@ function bs() {
|
|
|
5350
5350
|
};
|
|
5351
5351
|
}
|
|
5352
5352
|
var nt = bs();
|
|
5353
|
-
function
|
|
5353
|
+
function Da(n) {
|
|
5354
5354
|
nt = n;
|
|
5355
5355
|
}
|
|
5356
5356
|
var jt = { exec: () => null };
|
|
@@ -5422,10 +5422,10 @@ var Z = {
|
|
|
5422
5422
|
fencesBeginRegex: (n) => new RegExp(`^ {0,${Math.min(3, n - 1)}}(?:\`\`\`|~~~)`),
|
|
5423
5423
|
headingBeginRegex: (n) => new RegExp(`^ {0,${Math.min(3, n - 1)}}#`),
|
|
5424
5424
|
htmlBeginRegex: (n) => new RegExp(`^ {0,${Math.min(3, n - 1)}}<(?:[a-z].*>|!--)`, "i")
|
|
5425
|
-
}, Yh = /^(?:[ \t]*(?:\n|$))+/, Qh = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, Xh = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, ln = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, Kh = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, ys = /(?:[*+-]|\d{1,9}[.)])/,
|
|
5425
|
+
}, Yh = /^(?:[ \t]*(?:\n|$))+/, Qh = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, Xh = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, ln = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, Kh = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, ys = /(?:[*+-]|\d{1,9}[.)])/, za = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, Ha = C(za).replace(/bull/g, ys).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), Jh = C(za).replace(/bull/g, ys).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), $s = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, ed = /^[^\n]+/, ws = /(?!\s*\])(?:\\.|[^\[\]\\])+/, td = C(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", ws).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), nd = C(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, ys).getRegex(), ei = "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", xs = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, id = C(
|
|
5426
5426
|
"^ {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|$))",
|
|
5427
5427
|
"i"
|
|
5428
|
-
).replace("comment", xs).replace("tag", ei).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),
|
|
5428
|
+
).replace("comment", xs).replace("tag", ei).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), Fa = C($s).replace("hr", ln).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", ei).getRegex(), sd = C(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", Fa).getRegex(), ks = {
|
|
5429
5429
|
blockquote: sd,
|
|
5430
5430
|
code: Qh,
|
|
5431
5431
|
def: td,
|
|
@@ -5433,10 +5433,10 @@ var Z = {
|
|
|
5433
5433
|
heading: Kh,
|
|
5434
5434
|
hr: ln,
|
|
5435
5435
|
html: id,
|
|
5436
|
-
lheading:
|
|
5436
|
+
lheading: Ha,
|
|
5437
5437
|
list: nd,
|
|
5438
5438
|
newline: Yh,
|
|
5439
|
-
paragraph:
|
|
5439
|
+
paragraph: Fa,
|
|
5440
5440
|
table: jt,
|
|
5441
5441
|
text: ed
|
|
5442
5442
|
}, ko = C(
|
|
@@ -5457,19 +5457,19 @@ var Z = {
|
|
|
5457
5457
|
// fences not supported
|
|
5458
5458
|
lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
|
|
5459
5459
|
paragraph: C($s).replace("hr", ln).replace("heading", ` *#{1,6} *[^
|
|
5460
|
-
]`).replace("lheading",
|
|
5461
|
-
}, ad = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, ld = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,
|
|
5460
|
+
]`).replace("lheading", Ha).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
|
|
5461
|
+
}, ad = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, ld = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, ja = /^( {2,}|\\)\n(?!\s*$)/, cd = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, ti = /[\p{P}\p{S}]/u, Ss = /[\s\p{P}\p{S}]/u, Ba = /[^\s\p{P}\p{S}]/u, ud = C(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, Ss).getRegex(), qa = /(?!~)[\p{P}\p{S}]/u, hd = /(?!~)[\s\p{P}\p{S}]/u, dd = /(?:[^\s\p{P}\p{S}]|~)/u, pd = /\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g, Va = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, fd = C(Va, "u").replace(/punct/g, ti).getRegex(), gd = C(Va, "u").replace(/punct/g, qa).getRegex(), Wa = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", md = C(Wa, "gu").replace(/notPunctSpace/g, Ba).replace(/punctSpace/g, Ss).replace(/punct/g, ti).getRegex(), vd = C(Wa, "gu").replace(/notPunctSpace/g, dd).replace(/punctSpace/g, hd).replace(/punct/g, qa).getRegex(), bd = C(
|
|
5462
5462
|
"^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)",
|
|
5463
5463
|
"gu"
|
|
5464
|
-
).replace(/notPunctSpace/g,
|
|
5464
|
+
).replace(/notPunctSpace/g, Ba).replace(/punctSpace/g, Ss).replace(/punct/g, ti).getRegex(), yd = C(/\\(punct)/, "gu").replace(/punct/g, ti).getRegex(), $d = C(/^<(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(), wd = C(xs).replace("(?:-->|$)", "-->").getRegex(), xd = C(
|
|
5465
5465
|
"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>"
|
|
5466
|
-
).replace("comment", wd).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), zn = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, kd = C(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label", zn).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),
|
|
5466
|
+
).replace("comment", wd).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), zn = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, kd = C(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label", zn).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), Ga = C(/^!?\[(label)\]\[(ref)\]/).replace("label", zn).replace("ref", ws).getRegex(), Za = C(/^!?\[(ref)\](?:\[\])?/).replace("ref", ws).getRegex(), Sd = C("reflink|nolink(?!\\()", "g").replace("reflink", Ga).replace("nolink", Za).getRegex(), Cs = {
|
|
5467
5467
|
_backpedal: jt,
|
|
5468
5468
|
// only used for GFM url
|
|
5469
5469
|
anyPunctuation: yd,
|
|
5470
5470
|
autolink: $d,
|
|
5471
5471
|
blockSkip: pd,
|
|
5472
|
-
br:
|
|
5472
|
+
br: ja,
|
|
5473
5473
|
code: ld,
|
|
5474
5474
|
del: jt,
|
|
5475
5475
|
emStrongLDelim: fd,
|
|
@@ -5477,9 +5477,9 @@ var Z = {
|
|
|
5477
5477
|
emStrongRDelimUnd: bd,
|
|
5478
5478
|
escape: ad,
|
|
5479
5479
|
link: kd,
|
|
5480
|
-
nolink:
|
|
5480
|
+
nolink: Za,
|
|
5481
5481
|
punctuation: ud,
|
|
5482
|
-
reflink:
|
|
5482
|
+
reflink: Ga,
|
|
5483
5483
|
reflinkSearch: Sd,
|
|
5484
5484
|
tag: xd,
|
|
5485
5485
|
text: cd,
|
|
@@ -5498,7 +5498,7 @@ var Z = {
|
|
|
5498
5498
|
text: /^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/
|
|
5499
5499
|
}, Ed = {
|
|
5500
5500
|
...Qi,
|
|
5501
|
-
br: C(
|
|
5501
|
+
br: C(ja).replace("{2,}", "*").getRegex(),
|
|
5502
5502
|
text: C(Qi.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
|
|
5503
5503
|
}, $n = {
|
|
5504
5504
|
normal: ks,
|
|
@@ -5516,7 +5516,7 @@ var Z = {
|
|
|
5516
5516
|
'"': """,
|
|
5517
5517
|
"'": "'"
|
|
5518
5518
|
}, So = (n) => _d[n];
|
|
5519
|
-
function
|
|
5519
|
+
function ge(n, e) {
|
|
5520
5520
|
if (e) {
|
|
5521
5521
|
if (Z.escapeTest.test(n))
|
|
5522
5522
|
return n.replace(Z.escapeReplace, So);
|
|
@@ -5742,22 +5742,22 @@ ${u}` : u;
|
|
|
5742
5742
|
break;
|
|
5743
5743
|
c = e[0], n = n.substring(c.length);
|
|
5744
5744
|
let p = e[2].split(`
|
|
5745
|
-
`, 1)[0].replace(this.rules.other.listReplaceTabs, (
|
|
5745
|
+
`, 1)[0].replace(this.rules.other.listReplaceTabs, (ce) => " ".repeat(3 * ce.length)), d = n.split(`
|
|
5746
5746
|
`, 1)[0], g = !p.trim(), m = 0;
|
|
5747
5747
|
if (this.options.pedantic ? (m = 2, u = p.trimStart()) : g ? m = e[1].length + 1 : (m = e[2].search(this.rules.other.nonSpaceChar), m = m > 4 ? 1 : m, u = p.slice(m), m += e[1].length), g && this.rules.other.blankLine.test(d) && (c += d + `
|
|
5748
5748
|
`, n = n.substring(d.length + 1), l = !0), !l) {
|
|
5749
|
-
const
|
|
5749
|
+
const ce = this.rules.other.nextBulletRegex(m), Pe = this.rules.other.hrRegex(m), He = this.rules.other.fencesBeginRegex(m), M = this.rules.other.headingBeginRegex(m), Fe = this.rules.other.htmlBeginRegex(m);
|
|
5750
5750
|
for (; n; ) {
|
|
5751
5751
|
const je = n.split(`
|
|
5752
5752
|
`, 1)[0];
|
|
5753
5753
|
let Be;
|
|
5754
|
-
if (d = je, this.options.pedantic ? (d = d.replace(this.rules.other.listReplaceNesting, " "), Be = d) : Be = d.replace(this.rules.other.tabCharGlobal, " "), He.test(d) || M.test(d) || Fe.test(d) ||
|
|
5754
|
+
if (d = je, this.options.pedantic ? (d = d.replace(this.rules.other.listReplaceNesting, " "), Be = d) : Be = d.replace(this.rules.other.tabCharGlobal, " "), He.test(d) || M.test(d) || Fe.test(d) || ce.test(d) || Pe.test(d))
|
|
5755
5755
|
break;
|
|
5756
5756
|
if (Be.search(this.rules.other.nonSpaceChar) >= m || !d.trim())
|
|
5757
5757
|
u += `
|
|
5758
5758
|
` + Be.slice(m);
|
|
5759
5759
|
else {
|
|
5760
|
-
if (g || p.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || He.test(p) || M.test(p) ||
|
|
5760
|
+
if (g || p.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || He.test(p) || M.test(p) || Pe.test(p))
|
|
5761
5761
|
break;
|
|
5762
5762
|
u += `
|
|
5763
5763
|
` + d;
|
|
@@ -5767,12 +5767,12 @@ ${u}` : u;
|
|
|
5767
5767
|
}
|
|
5768
5768
|
}
|
|
5769
5769
|
s.loose || (o ? s.loose = !0 : this.rules.other.doubleBlankLine.test(c) && (o = !0));
|
|
5770
|
-
let $ = null,
|
|
5771
|
-
this.options.gfm && ($ = this.rules.other.listIsTask.exec(u), $ && (
|
|
5770
|
+
let $ = null, $e;
|
|
5771
|
+
this.options.gfm && ($ = this.rules.other.listIsTask.exec(u), $ && ($e = $[0] !== "[ ] ", u = u.replace(this.rules.other.listReplaceTask, ""))), s.items.push({
|
|
5772
5772
|
type: "list_item",
|
|
5773
5773
|
raw: c,
|
|
5774
5774
|
task: !!$,
|
|
5775
|
-
checked:
|
|
5775
|
+
checked: $e,
|
|
5776
5776
|
loose: !1,
|
|
5777
5777
|
text: u,
|
|
5778
5778
|
tokens: []
|
|
@@ -6081,7 +6081,7 @@ ${u}` : u;
|
|
|
6081
6081
|
};
|
|
6082
6082
|
}
|
|
6083
6083
|
}
|
|
6084
|
-
},
|
|
6084
|
+
}, _e = class Xi {
|
|
6085
6085
|
constructor(e) {
|
|
6086
6086
|
A(this, "tokens");
|
|
6087
6087
|
A(this, "options");
|
|
@@ -6339,8 +6339,8 @@ ${u}` : u;
|
|
|
6339
6339
|
var r;
|
|
6340
6340
|
const i = (r = (e || "").match(Z.notSpaceStart)) == null ? void 0 : r[0], s = n.replace(Z.endingNewline, "") + `
|
|
6341
6341
|
`;
|
|
6342
|
-
return i ? '<pre><code class="language-' +
|
|
6343
|
-
` : "<pre><code>" + (t ? s :
|
|
6342
|
+
return i ? '<pre><code class="language-' + ge(i) + '">' + (t ? s : ge(s, !0)) + `</code></pre>
|
|
6343
|
+
` : "<pre><code>" + (t ? s : ge(s, !0)) + `</code></pre>
|
|
6344
6344
|
`;
|
|
6345
6345
|
}
|
|
6346
6346
|
blockquote({ tokens: n }) {
|
|
@@ -6376,7 +6376,7 @@ ${this.parser.parse(n)}</blockquote>
|
|
|
6376
6376
|
let e = "";
|
|
6377
6377
|
if (n.task) {
|
|
6378
6378
|
const i = this.checkbox({ checked: !!n.checked });
|
|
6379
|
-
n.loose ? ((t = n.tokens[0]) == null ? void 0 : t.type) === "paragraph" ? (n.tokens[0].text = i + " " + n.tokens[0].text, n.tokens[0].tokens && n.tokens[0].tokens.length > 0 && n.tokens[0].tokens[0].type === "text" && (n.tokens[0].tokens[0].text = i + " " +
|
|
6379
|
+
n.loose ? ((t = n.tokens[0]) == null ? void 0 : t.type) === "paragraph" ? (n.tokens[0].text = i + " " + n.tokens[0].text, n.tokens[0].tokens && n.tokens[0].tokens.length > 0 && n.tokens[0].tokens[0].type === "text" && (n.tokens[0].tokens[0].text = i + " " + ge(n.tokens[0].tokens[0].text), n.tokens[0].tokens[0].escaped = !0)) : n.tokens.unshift({
|
|
6380
6380
|
type: "text",
|
|
6381
6381
|
raw: i + " ",
|
|
6382
6382
|
text: i + " ",
|
|
@@ -6432,7 +6432,7 @@ ${n}</tr>
|
|
|
6432
6432
|
return `<em>${this.parser.parseInline(n)}</em>`;
|
|
6433
6433
|
}
|
|
6434
6434
|
codespan({ text: n }) {
|
|
6435
|
-
return `<code>${
|
|
6435
|
+
return `<code>${ge(n, !0)}</code>`;
|
|
6436
6436
|
}
|
|
6437
6437
|
br(n) {
|
|
6438
6438
|
return "<br>";
|
|
@@ -6446,19 +6446,19 @@ ${n}</tr>
|
|
|
6446
6446
|
return i;
|
|
6447
6447
|
n = s;
|
|
6448
6448
|
let r = '<a href="' + n + '"';
|
|
6449
|
-
return e && (r += ' title="' +
|
|
6449
|
+
return e && (r += ' title="' + ge(e) + '"'), r += ">" + i + "</a>", r;
|
|
6450
6450
|
}
|
|
6451
6451
|
image({ href: n, title: e, text: t, tokens: i }) {
|
|
6452
6452
|
i && (t = this.parser.parseInline(i, this.parser.textRenderer));
|
|
6453
6453
|
const s = Co(n);
|
|
6454
6454
|
if (s === null)
|
|
6455
|
-
return
|
|
6455
|
+
return ge(t);
|
|
6456
6456
|
n = s;
|
|
6457
6457
|
let r = `<img src="${n}" alt="${t}"`;
|
|
6458
|
-
return e && (r += ` title="${
|
|
6458
|
+
return e && (r += ` title="${ge(e)}"`), r += ">", r;
|
|
6459
6459
|
}
|
|
6460
6460
|
text(n) {
|
|
6461
|
-
return "tokens" in n && n.tokens ? this.parser.parseInline(n.tokens) : "escaped" in n && n.escaped ? n.text :
|
|
6461
|
+
return "tokens" in n && n.tokens ? this.parser.parseInline(n.tokens) : "escaped" in n && n.escaped ? n.text : ge(n.text);
|
|
6462
6462
|
}
|
|
6463
6463
|
}, Es = class {
|
|
6464
6464
|
// no need for block level renderers
|
|
@@ -6489,7 +6489,7 @@ ${n}</tr>
|
|
|
6489
6489
|
br() {
|
|
6490
6490
|
return "";
|
|
6491
6491
|
}
|
|
6492
|
-
},
|
|
6492
|
+
}, Ae = class Ki {
|
|
6493
6493
|
constructor(e) {
|
|
6494
6494
|
A(this, "options");
|
|
6495
6495
|
A(this, "renderer");
|
|
@@ -6679,13 +6679,13 @@ ${n}</tr>
|
|
|
6679
6679
|
* Provide function to tokenize markdown
|
|
6680
6680
|
*/
|
|
6681
6681
|
provideLexer() {
|
|
6682
|
-
return this.block ?
|
|
6682
|
+
return this.block ? _e.lex : _e.lexInline;
|
|
6683
6683
|
}
|
|
6684
6684
|
/**
|
|
6685
6685
|
* Provide function to parse tokens
|
|
6686
6686
|
*/
|
|
6687
6687
|
provideParser() {
|
|
6688
|
-
return this.block ?
|
|
6688
|
+
return this.block ? Ae.parse : Ae.parseInline;
|
|
6689
6689
|
}
|
|
6690
6690
|
}, A(Li, "passThroughHooks", /* @__PURE__ */ new Set([
|
|
6691
6691
|
"preprocess",
|
|
@@ -6697,10 +6697,10 @@ ${n}</tr>
|
|
|
6697
6697
|
A(this, "options", this.setOptions);
|
|
6698
6698
|
A(this, "parse", this.parseMarkdown(!0));
|
|
6699
6699
|
A(this, "parseInline", this.parseMarkdown(!1));
|
|
6700
|
-
A(this, "Parser",
|
|
6700
|
+
A(this, "Parser", Ae);
|
|
6701
6701
|
A(this, "Renderer", Xt);
|
|
6702
6702
|
A(this, "TextRenderer", Es);
|
|
6703
|
-
A(this, "Lexer",
|
|
6703
|
+
A(this, "Lexer", _e);
|
|
6704
6704
|
A(this, "Tokenizer", Hn);
|
|
6705
6705
|
A(this, "Hooks", Sn);
|
|
6706
6706
|
this.use(...n);
|
|
@@ -6822,10 +6822,10 @@ ${n}</tr>
|
|
|
6822
6822
|
return this.defaults = { ...this.defaults, ...n }, this;
|
|
6823
6823
|
}
|
|
6824
6824
|
lexer(n, e) {
|
|
6825
|
-
return
|
|
6825
|
+
return _e.lex(n, e ?? this.defaults);
|
|
6826
6826
|
}
|
|
6827
6827
|
parser(n, e) {
|
|
6828
|
-
return
|
|
6828
|
+
return Ae.parse(n, e ?? this.defaults);
|
|
6829
6829
|
}
|
|
6830
6830
|
parseMarkdown(n) {
|
|
6831
6831
|
return (t, i) => {
|
|
@@ -6837,7 +6837,7 @@ ${n}</tr>
|
|
|
6837
6837
|
if (typeof t != "string")
|
|
6838
6838
|
return o(new Error("marked(): input parameter is of type " + Object.prototype.toString.call(t) + ", string expected"));
|
|
6839
6839
|
r.hooks && (r.hooks.options = r, r.hooks.block = n);
|
|
6840
|
-
const a = r.hooks ? r.hooks.provideLexer() : n ?
|
|
6840
|
+
const a = r.hooks ? r.hooks.provideLexer() : n ? _e.lex : _e.lexInline, l = r.hooks ? r.hooks.provideParser() : n ? Ae.parse : Ae.parseInline;
|
|
6841
6841
|
if (r.async)
|
|
6842
6842
|
return Promise.resolve(r.hooks ? r.hooks.preprocess(t) : t).then((c) => a(c, r)).then((c) => r.hooks ? r.hooks.processAllTokens(c) : c).then((c) => r.walkTokens ? Promise.all(this.walkTokens(c, r.walkTokens)).then(() => c) : c).then((c) => l(c, r)).then((c) => r.hooks ? r.hooks.postprocess(c) : c).catch(o);
|
|
6843
6843
|
try {
|
|
@@ -6855,7 +6855,7 @@ ${n}</tr>
|
|
|
6855
6855
|
return (t) => {
|
|
6856
6856
|
if (t.message += `
|
|
6857
6857
|
Please report this to https://github.com/markedjs/marked.`, n) {
|
|
6858
|
-
const i = "<p>An error occurred:</p><pre>" +
|
|
6858
|
+
const i = "<p>An error occurred:</p><pre>" + ge(t.message + "", !0) + "</pre>";
|
|
6859
6859
|
return e ? Promise.resolve(i) : i;
|
|
6860
6860
|
}
|
|
6861
6861
|
if (e)
|
|
@@ -6868,23 +6868,23 @@ function S(n, e) {
|
|
|
6868
6868
|
return et.parse(n, e);
|
|
6869
6869
|
}
|
|
6870
6870
|
S.options = S.setOptions = function(n) {
|
|
6871
|
-
return et.setOptions(n), S.defaults = et.defaults,
|
|
6871
|
+
return et.setOptions(n), S.defaults = et.defaults, Da(S.defaults), S;
|
|
6872
6872
|
};
|
|
6873
6873
|
S.getDefaults = bs;
|
|
6874
6874
|
S.defaults = nt;
|
|
6875
6875
|
S.use = function(...n) {
|
|
6876
|
-
return et.use(...n), S.defaults = et.defaults,
|
|
6876
|
+
return et.use(...n), S.defaults = et.defaults, Da(S.defaults), S;
|
|
6877
6877
|
};
|
|
6878
6878
|
S.walkTokens = function(n, e) {
|
|
6879
6879
|
return et.walkTokens(n, e);
|
|
6880
6880
|
};
|
|
6881
6881
|
S.parseInline = et.parseInline;
|
|
6882
|
-
S.Parser =
|
|
6883
|
-
S.parser =
|
|
6882
|
+
S.Parser = Ae;
|
|
6883
|
+
S.parser = Ae.parse;
|
|
6884
6884
|
S.Renderer = Xt;
|
|
6885
6885
|
S.TextRenderer = Es;
|
|
6886
|
-
S.Lexer =
|
|
6887
|
-
S.lexer =
|
|
6886
|
+
S.Lexer = _e;
|
|
6887
|
+
S.lexer = _e.lex;
|
|
6888
6888
|
S.Tokenizer = Hn;
|
|
6889
6889
|
S.Hooks = Sn;
|
|
6890
6890
|
S.parse = S;
|
|
@@ -6893,21 +6893,21 @@ S.setOptions;
|
|
|
6893
6893
|
S.use;
|
|
6894
6894
|
S.walkTokens;
|
|
6895
6895
|
S.parseInline;
|
|
6896
|
-
|
|
6897
|
-
|
|
6898
|
-
var Ld = Object.defineProperty,
|
|
6896
|
+
Ae.parse;
|
|
6897
|
+
_e.lex;
|
|
6898
|
+
var Ld = Object.defineProperty, Ya = (n, e, t, i) => {
|
|
6899
6899
|
for (var s = void 0, r = n.length - 1, o; r >= 0; r--)
|
|
6900
6900
|
(o = n[r]) && (s = o(e, t, s) || s);
|
|
6901
6901
|
return s && Ld(e, t, s), s;
|
|
6902
6902
|
};
|
|
6903
|
-
const
|
|
6904
|
-
|
|
6903
|
+
const Qa = new Xt();
|
|
6904
|
+
Qa.link = function({ href: n, title: e, text: t }) {
|
|
6905
6905
|
return e ?? (e = t), `<a target="_blank" href="${n}" title="${e}">${t}</a>`;
|
|
6906
6906
|
};
|
|
6907
|
-
S.use({ renderer:
|
|
6907
|
+
S.use({ renderer: Qa });
|
|
6908
6908
|
const Fs = class Fs extends _ {
|
|
6909
6909
|
constructor() {
|
|
6910
|
-
super(...arguments), this.showLightbox = !1, this.imageUrl = "", this.altText = "", this.scrollRef =
|
|
6910
|
+
super(...arguments), this.showLightbox = !1, this.imageUrl = "", this.altText = "", this.scrollRef = ve(), this.contentRef = ve(), this.autoScroll = !0, this.buffer = "", this.pointer = 0, this.imageRegexp = new RegExp(/!\[[^[]*\([^)]*\)/gm);
|
|
6911
6911
|
}
|
|
6912
6912
|
// Stop autoscroll on user interaction
|
|
6913
6913
|
handleAutoscroll() {
|
|
@@ -6952,7 +6952,7 @@ const Fs = class Fs extends _ {
|
|
|
6952
6952
|
const e = this.getLastChunk();
|
|
6953
6953
|
if (!e) return;
|
|
6954
6954
|
this.buffer += e;
|
|
6955
|
-
const t =
|
|
6955
|
+
const t = Na.sanitize(
|
|
6956
6956
|
S.parse(this.buffer)
|
|
6957
6957
|
);
|
|
6958
6958
|
if (this.includesImage(this.buffer))
|
|
@@ -6972,10 +6972,10 @@ const Fs = class Fs extends _ {
|
|
|
6972
6972
|
}
|
|
6973
6973
|
render() {
|
|
6974
6974
|
return y`
|
|
6975
|
-
<div class="message-type-markdown" ${
|
|
6975
|
+
<div class="message-type-markdown" ${be(this.contentRef)}>
|
|
6976
6976
|
<div></div>
|
|
6977
6977
|
</div>
|
|
6978
|
-
<div class="scroll" ${
|
|
6978
|
+
<div class="scroll" ${be(this.scrollRef)}></div>
|
|
6979
6979
|
${this.showLightbox ? y`<ace-lightbox
|
|
6980
6980
|
imageUrl="${this.imageUrl}"
|
|
6981
6981
|
altText="${this.altText}"
|
|
@@ -6984,7 +6984,7 @@ const Fs = class Fs extends _ {
|
|
|
6984
6984
|
}
|
|
6985
6985
|
};
|
|
6986
6986
|
Fs.styles = [
|
|
6987
|
-
|
|
6987
|
+
O`
|
|
6988
6988
|
:host {
|
|
6989
6989
|
box-sizing: border-box;
|
|
6990
6990
|
}
|
|
@@ -7025,11 +7025,11 @@ Fs.styles = [
|
|
|
7025
7025
|
`
|
|
7026
7026
|
];
|
|
7027
7027
|
let Kt = Fs;
|
|
7028
|
-
|
|
7028
|
+
Ya([
|
|
7029
7029
|
k({ attribute: !1 })
|
|
7030
7030
|
], Kt.prototype, "message");
|
|
7031
|
-
|
|
7032
|
-
|
|
7031
|
+
Ya([
|
|
7032
|
+
T()
|
|
7033
7033
|
], Kt.prototype, "showLightbox");
|
|
7034
7034
|
var Rd = Object.defineProperty, Id = (n, e, t, i) => {
|
|
7035
7035
|
for (var s = void 0, r = n.length - 1, o; r >= 0; r--)
|
|
@@ -7080,7 +7080,7 @@ const js = class js extends _ {
|
|
|
7080
7080
|
}
|
|
7081
7081
|
};
|
|
7082
7082
|
js.styles = [
|
|
7083
|
-
|
|
7083
|
+
O`
|
|
7084
7084
|
:focus {
|
|
7085
7085
|
outline-color: var(--focus-color);
|
|
7086
7086
|
}
|
|
@@ -7124,7 +7124,7 @@ let Fn = js;
|
|
|
7124
7124
|
Id([
|
|
7125
7125
|
k({ attribute: !0 })
|
|
7126
7126
|
], Fn.prototype, "imageUrl");
|
|
7127
|
-
var Pd = Object.defineProperty,
|
|
7127
|
+
var Pd = Object.defineProperty, pe = (n, e, t, i) => {
|
|
7128
7128
|
for (var s = void 0, r = n.length - 1, o; r >= 0; r--)
|
|
7129
7129
|
(o = n[r]) && (s = o(e, t, s) || s);
|
|
7130
7130
|
return s && Pd(e, t, s), s;
|
|
@@ -7136,12 +7136,15 @@ customElements.get("ace-typing-state") || customElements.define("ace-typing-stat
|
|
|
7136
7136
|
customElements.get("message-type-html") || customElements.define("message-type-html", Dn);
|
|
7137
7137
|
customElements.get("message-type-markdown") || customElements.define("message-type-markdown", Kt);
|
|
7138
7138
|
customElements.get("ace-lightbox") || customElements.define("ace-lightbox", Fn);
|
|
7139
|
-
const Ao =
|
|
7139
|
+
const Ao = _a(_), Bs = class Bs extends Ao {
|
|
7140
7140
|
constructor() {
|
|
7141
|
-
super(...arguments), this.message = "", this.disabledInput = !1, this.disabledSkipToLatest = !1, this.disabledSubmit = !1, this.chatOverlayActive = !1, this.textAreaLength = 0, this.isMuted = !1, this.conversationContentRef =
|
|
7142
|
-
|
|
7141
|
+
super(...arguments), this.platform = null, this.entries = [], this.typing = !1, this.message = "", this.disabledInput = !1, this.disabledSkipToLatest = !1, this.disabledSubmit = !1, this.chatOverlayActive = !1, this.textAreaLength = 0, this.showAuthBanner = !1, this.authenticated = !1, this.isMuted = !1, this.conversationContentRef = ve(), this.conversationFeedRef = ve(), this.formRef = ve(), this.inputRef = ve(), this.scrollRef = ve(), this.counterRef = ve(), this.chatCurrentScrollPosition = 0, this.toast = new vh(this), this.messageMaxLength = 1e3, this.messageMaxLengthLabel = "Maximum character limit reached", this.skipToLatestMessageLabel = "Skip to latest message", this.conversationState$ = new de("waiting"), this.stateMachine = new yh(this.conversationState$, this), this.provider$ = this.stateMachine.session().pipe(
|
|
7142
|
+
Oe((e) => e ? e == null ? void 0 : e.provider$ : Pi(null))
|
|
7143
7143
|
), this.userTyping$ = new P();
|
|
7144
7144
|
}
|
|
7145
|
+
// =================
|
|
7146
|
+
// LIFECYCLE METHODS
|
|
7147
|
+
// =================
|
|
7145
7148
|
async connectedCallback() {
|
|
7146
7149
|
super.connectedCallback(), this.messageMaxLength = this.properties.messageMaxLength ?? this.messageMaxLength, this.messageMaxLengthLabel = this.properties.messageMaxLengthLabel ?? this.messageMaxLengthLabel, this.skipToLatestMessageLabel = this.properties.skipToLatestMessageLabel ?? this.skipToLatestMessageLabel;
|
|
7147
7150
|
const e = await this.application.container.get(
|
|
@@ -7152,7 +7155,7 @@ const Ao = Ea(_), Bs = class Bs extends Ao {
|
|
|
7152
7155
|
t && t.widgetActive$.pipe(z(t.componentIsDestroyed$)).subscribe((i) => {
|
|
7153
7156
|
const s = this.conversationContentRef.value;
|
|
7154
7157
|
s && (i ? s.scrollTop = this.chatCurrentScrollPosition : this.chatCurrentScrollPosition = s.scrollTop);
|
|
7155
|
-
}), this.stateSubscription =
|
|
7158
|
+
}), this.stateSubscription = rc([
|
|
7156
7159
|
this.stateMachine.entries(),
|
|
7157
7160
|
this.stateMachine.isTyping()
|
|
7158
7161
|
]).subscribe(([i, s]) => {
|
|
@@ -7162,17 +7165,23 @@ const Ao = Ea(_), Bs = class Bs extends Ao {
|
|
|
7162
7165
|
"user-submit"
|
|
7163
7166
|
).pipe(Ui(this.provider$)).subscribe(([i, s]) => {
|
|
7164
7167
|
s && s.onUserSubmit(i.detail);
|
|
7165
|
-
}), this.
|
|
7168
|
+
}), this.addHeaderOptions(), this.provider$.pipe(Ui(this.provider$)).subscribe(([i, s]) => {
|
|
7166
7169
|
s && s.showChatOverlay$.pipe().subscribe((r) => {
|
|
7167
7170
|
this.chatOverlayActive = r;
|
|
7168
7171
|
});
|
|
7169
7172
|
});
|
|
7170
7173
|
}
|
|
7174
|
+
firstUpdated() {
|
|
7175
|
+
this.isMuted = this.application.storage.get("muteAudioNotifications") ?? !1;
|
|
7176
|
+
}
|
|
7171
7177
|
disconnectedCallback() {
|
|
7172
7178
|
var e, t;
|
|
7173
7179
|
super.disconnectedCallback(), (e = this.userSubmitSubscription) == null || e.unsubscribe(), (t = this.stateSubscription) == null || t.unsubscribe();
|
|
7174
7180
|
}
|
|
7175
|
-
|
|
7181
|
+
// ============================
|
|
7182
|
+
// PRIVATE METHODS AND HANDLERS
|
|
7183
|
+
// ============================
|
|
7184
|
+
actionHandler(e) {
|
|
7176
7185
|
}
|
|
7177
7186
|
isTypingState() {
|
|
7178
7187
|
var t, i;
|
|
@@ -7191,46 +7200,19 @@ const Ao = Ea(_), Bs = class Bs extends Ao {
|
|
|
7191
7200
|
return e ? e.scrollHeight - e.scrollTop - e.clientHeight < 1 : !1;
|
|
7192
7201
|
}
|
|
7193
7202
|
scrollToBottom() {
|
|
7194
|
-
var e
|
|
7203
|
+
var e;
|
|
7195
7204
|
(!this.isTypingState() || this.isAtBottom()) && (setTimeout(
|
|
7196
7205
|
() => {
|
|
7197
|
-
var
|
|
7198
|
-
return (
|
|
7206
|
+
var t;
|
|
7207
|
+
return (t = this.scrollRef.value) == null ? void 0 : t.scrollIntoView({ behavior: "smooth" });
|
|
7199
7208
|
},
|
|
7200
7209
|
300
|
|
7201
|
-
), this.
|
|
7210
|
+
), this.chatCurrentScrollPosition = (e = this.scrollRef.value) == null ? void 0 : e.scrollTop);
|
|
7202
7211
|
}
|
|
7203
7212
|
onSessionUpdated() {
|
|
7204
7213
|
this.scrollToBottom();
|
|
7205
7214
|
}
|
|
7206
|
-
|
|
7207
|
-
this.disabledInput = !0, this.message = "";
|
|
7208
|
-
}
|
|
7209
|
-
enableInput() {
|
|
7210
|
-
this.disabledInput = !1;
|
|
7211
|
-
}
|
|
7212
|
-
enableSkipToLatestMessage() {
|
|
7213
|
-
this.disabledSkipToLatest = !1;
|
|
7214
|
-
}
|
|
7215
|
-
disableSkipToLatestMessage() {
|
|
7216
|
-
this.disabledSkipToLatest = !0;
|
|
7217
|
-
}
|
|
7218
|
-
disableSubmit() {
|
|
7219
|
-
this.disabledSubmit = !0;
|
|
7220
|
-
}
|
|
7221
|
-
enableSubmit() {
|
|
7222
|
-
this.disabledSubmit = !1;
|
|
7223
|
-
}
|
|
7224
|
-
// Clear messages when starting a new chat to avoid confusion
|
|
7225
|
-
clearMessages() {
|
|
7226
|
-
var s, r;
|
|
7227
|
-
const e = (s = this.shadowRoot) == null ? void 0 : s.querySelector("ace-conversation-feed"), t = (r = e == null ? void 0 : e.shadowRoot) == null ? void 0 : r.querySelector(".conversation-feed"), i = t == null ? void 0 : t.querySelectorAll(".conversation-entry");
|
|
7228
|
-
i == null || i.forEach((o) => o.remove());
|
|
7229
|
-
}
|
|
7230
|
-
setToastMessage(e) {
|
|
7231
|
-
this.toast.message = e;
|
|
7232
|
-
}
|
|
7233
|
-
async _onSendMessage(e) {
|
|
7215
|
+
async onSendMessage(e) {
|
|
7234
7216
|
var i, s;
|
|
7235
7217
|
if (e.preventDefault(), this.message.length <= 0 || this.message.length > this.messageMaxLength) {
|
|
7236
7218
|
(i = this.formRef.value) == null || i.classList.add("shake"), setTimeout(() => {
|
|
@@ -7247,7 +7229,7 @@ const Ao = Ea(_), Bs = class Bs extends Ao {
|
|
|
7247
7229
|
"--textarea-default-height"
|
|
7248
7230
|
);
|
|
7249
7231
|
}
|
|
7250
|
-
|
|
7232
|
+
addHeaderOptions() {
|
|
7251
7233
|
const e = this.application.getComponent("widget-header");
|
|
7252
7234
|
if (!e)
|
|
7253
7235
|
return;
|
|
@@ -7261,14 +7243,54 @@ const Ao = Ea(_), Bs = class Bs extends Ao {
|
|
|
7261
7243
|
}
|
|
7262
7244
|
});
|
|
7263
7245
|
}
|
|
7264
|
-
|
|
7246
|
+
inputHandler(e) {
|
|
7265
7247
|
var t, i;
|
|
7266
7248
|
this.message = e.target.value, e.target.style.height = this.style.getPropertyValue(
|
|
7267
7249
|
"--textarea-default-height"
|
|
7268
7250
|
), e.target.style.height = e.target.scrollHeight + "px", this.textAreaLength = e.target.value.length, e.target.value.length > this.messageMaxLength ? (t = this.counterRef.value) == null || t.classList.add("max-char-count-reached") : (i = this.counterRef.value) == null || i.classList.remove("max-char-count-reached");
|
|
7269
7251
|
}
|
|
7270
|
-
|
|
7271
|
-
this.userTyping$.next(e.key), e.key === "Enter" && !e.shiftKey && !this.disabledSubmit && (this.
|
|
7252
|
+
keyDownHandler(e) {
|
|
7253
|
+
this.userTyping$.next(e.key), e.key === "Enter" && !e.shiftKey && !this.disabledSubmit && (this.onSendMessage(e), e.preventDefault());
|
|
7254
|
+
}
|
|
7255
|
+
getAuthBannerMessage() {
|
|
7256
|
+
const e = this.application.texts;
|
|
7257
|
+
return this.authenticated ? e.getOrFallback(
|
|
7258
|
+
"conversation.auth-banner.authenticated",
|
|
7259
|
+
"Authenticated"
|
|
7260
|
+
) : e.getOrFallback(
|
|
7261
|
+
"conversation.auth-banner.unauthenticated",
|
|
7262
|
+
"Not authenticated"
|
|
7263
|
+
);
|
|
7264
|
+
}
|
|
7265
|
+
// ==============
|
|
7266
|
+
// PUBLIC METHODS
|
|
7267
|
+
// ==============
|
|
7268
|
+
disableInput() {
|
|
7269
|
+
this.disabledInput = !0, this.message = "";
|
|
7270
|
+
}
|
|
7271
|
+
enableInput() {
|
|
7272
|
+
this.disabledInput = !1;
|
|
7273
|
+
}
|
|
7274
|
+
enableSkipToLatestMessage() {
|
|
7275
|
+
this.disabledSkipToLatest = !1;
|
|
7276
|
+
}
|
|
7277
|
+
disableSkipToLatestMessage() {
|
|
7278
|
+
this.disabledSkipToLatest = !0;
|
|
7279
|
+
}
|
|
7280
|
+
disableSubmit() {
|
|
7281
|
+
this.disabledSubmit = !0;
|
|
7282
|
+
}
|
|
7283
|
+
enableSubmit() {
|
|
7284
|
+
this.disabledSubmit = !1;
|
|
7285
|
+
}
|
|
7286
|
+
// Clear messages when starting a new chat to avoid confusion
|
|
7287
|
+
clearMessages() {
|
|
7288
|
+
var s, r;
|
|
7289
|
+
const e = (s = this.shadowRoot) == null ? void 0 : s.querySelector("ace-conversation-feed"), t = (r = e == null ? void 0 : e.shadowRoot) == null ? void 0 : r.querySelector(".conversation-feed"), i = t == null ? void 0 : t.querySelectorAll(".conversation-entry");
|
|
7290
|
+
i == null || i.forEach((o) => o.remove());
|
|
7291
|
+
}
|
|
7292
|
+
setToastMessage(e) {
|
|
7293
|
+
this.toast.message = e;
|
|
7272
7294
|
}
|
|
7273
7295
|
skipToLatestMessage() {
|
|
7274
7296
|
var i, s;
|
|
@@ -7279,6 +7301,9 @@ const Ao = Ea(_), Bs = class Bs extends Ao {
|
|
|
7279
7301
|
t
|
|
7280
7302
|
).pop().focus();
|
|
7281
7303
|
}
|
|
7304
|
+
setAuthenticationBannerStatus(e) {
|
|
7305
|
+
this.showAuthBanner = e !== null, this.authenticated = e === ee.Authenticated;
|
|
7306
|
+
}
|
|
7282
7307
|
handover(e, t) {
|
|
7283
7308
|
this.enableInput(), this.setToastMessage(null);
|
|
7284
7309
|
const i = new CustomEvent("handover", {
|
|
@@ -7289,110 +7314,121 @@ const Ao = Ea(_), Bs = class Bs extends Ao {
|
|
|
7289
7314
|
});
|
|
7290
7315
|
return this.dispatchEvent(i), i.detail.complete || tt;
|
|
7291
7316
|
}
|
|
7292
|
-
firstUpdated() {
|
|
7293
|
-
this.isMuted = this.application.storage.get("muteAudioNotifications") ?? !1;
|
|
7294
|
-
}
|
|
7295
7317
|
render() {
|
|
7296
7318
|
var s, r, o;
|
|
7297
7319
|
const e = this.application.texts;
|
|
7298
7320
|
this.conversationState$.value === "waiting" && ((s = this.application) != null && s.storage) && this.platform && (this.stateMachine.setStorage(this.application.storage), this.conversationState$.next("init"));
|
|
7299
7321
|
const t = this.application.settings.components.conversation;
|
|
7300
|
-
return ((o = (r = t == null ? void 0 : t.properties) == null ? void 0 : r.chat) == null ? void 0 : o.isThirdPartyWidget) && (this.renderRoot.host.style.width = "100%"), y` <div
|
|
7301
|
-
|
|
7302
|
-
|
|
7322
|
+
return ((o = (r = t == null ? void 0 : t.properties) == null ? void 0 : r.chat) == null ? void 0 : o.isThirdPartyWidget) && (this.renderRoot.host.style.width = "100%"), y` <div class="conversation-container">
|
|
7323
|
+
${this.showAuthBanner ? y`<div
|
|
7324
|
+
class="auth-banner ${this.authenticated ? "auth-banner--authenticated" : "auth-banner--unauthenticated"}"
|
|
7325
|
+
role="status"
|
|
7326
|
+
aria-live="polite"
|
|
7327
|
+
>
|
|
7328
|
+
${this.authenticated ? y`<telia-icon
|
|
7329
|
+
class="auth-banner__icon"
|
|
7330
|
+
size="sm"
|
|
7331
|
+
svg=${sa.svg}
|
|
7332
|
+
></telia-icon>` : w}
|
|
7333
|
+
<span>${this.getAuthBannerMessage()}</span>
|
|
7334
|
+
</div>` : w}
|
|
7335
|
+
<div
|
|
7336
|
+
@action=${this.actionHandler}
|
|
7337
|
+
class=${wt({
|
|
7303
7338
|
conversation: !0,
|
|
7304
7339
|
disabled: this.disabledInput,
|
|
7305
7340
|
"conversation--has-toast": this.toast.hasMessage(),
|
|
7306
7341
|
"conversation--input-has-valid-text": this.message.length > 0 && this.message.length <= this.messageMaxLength && !this.disabledSubmit,
|
|
7307
7342
|
"overlay-mode": this.chatOverlayActive
|
|
7308
7343
|
})}
|
|
7309
|
-
|
|
7310
|
-
|
|
7311
|
-
|
|
7312
|
-
|
|
7313
|
-
|
|
7314
|
-
|
|
7315
|
-
|
|
7316
|
-
|
|
7317
|
-
|
|
7318
|
-
|
|
7319
|
-
|
|
7344
|
+
>
|
|
7345
|
+
${this.chatOverlayActive ? y`<div class="overlay-header">
|
|
7346
|
+
<button
|
|
7347
|
+
class="overlay-button"
|
|
7348
|
+
@click=${() => this.chatOverlayActive = !1}
|
|
7349
|
+
>
|
|
7350
|
+
<telia-icon svg=${ra.svg}></telia-icon>
|
|
7351
|
+
</button>
|
|
7352
|
+
</div>` : w}
|
|
7353
|
+
<div
|
|
7354
|
+
class=${wt({
|
|
7320
7355
|
"conversation-content": !0,
|
|
7321
7356
|
"conversation-overlay-mode": this.chatOverlayActive
|
|
7322
7357
|
})}
|
|
7323
|
-
|
|
7324
|
-
|
|
7325
|
-
|
|
7326
|
-
|
|
7327
|
-
|
|
7328
|
-
|
|
7329
|
-
|
|
7330
|
-
|
|
7331
|
-
|
|
7332
|
-
|
|
7333
|
-
|
|
7334
|
-
|
|
7335
|
-
|
|
7336
|
-
|
|
7337
|
-
|
|
7338
|
-
|
|
7339
|
-
|
|
7340
|
-
|
|
7341
|
-
|
|
7342
|
-
|
|
7343
|
-
|
|
7344
|
-
|
|
7345
|
-
|
|
7346
|
-
|
|
7347
|
-
|
|
7348
|
-
|
|
7349
|
-
|
|
7358
|
+
part="scroll-container"
|
|
7359
|
+
aria-live="polite"
|
|
7360
|
+
${be(this.conversationContentRef)}
|
|
7361
|
+
>
|
|
7362
|
+
${this.toast.hasMessage() ? y`<div class="conversation__toast">${this.toast.message}</div>` : w}
|
|
7363
|
+
<ace-conversation-feed
|
|
7364
|
+
.entries=${this.entries}
|
|
7365
|
+
.loading=${this.typing}
|
|
7366
|
+
${be(this.conversationFeedRef)}
|
|
7367
|
+
@updated=${this.onSessionUpdated}
|
|
7368
|
+
></ace-conversation-feed>
|
|
7369
|
+
<div class="scroll" ${be(this.scrollRef)}></div>
|
|
7370
|
+
</div>
|
|
7371
|
+
<form
|
|
7372
|
+
class="conversation-bottom"
|
|
7373
|
+
@submit=${this.onSendMessage}
|
|
7374
|
+
${be(this.formRef)}
|
|
7375
|
+
?inert=${this.disabledInput}
|
|
7376
|
+
data-testid="conversation-bottom"
|
|
7377
|
+
>
|
|
7378
|
+
<label for="chat-message-input" class="visually-hidden">
|
|
7379
|
+
Chat message
|
|
7380
|
+
</label>
|
|
7381
|
+
<textarea
|
|
7382
|
+
id="chat-message-input"
|
|
7383
|
+
autocomplete="off"
|
|
7384
|
+
placeholder=${e.getOrFallback(
|
|
7350
7385
|
"conversation.input-placeholder",
|
|
7351
7386
|
"Aa"
|
|
7352
7387
|
)}
|
|
7353
|
-
|
|
7354
|
-
|
|
7355
|
-
|
|
7356
|
-
|
|
7357
|
-
|
|
7358
|
-
|
|
7359
|
-
|
|
7360
|
-
|
|
7361
|
-
|
|
7362
|
-
|
|
7363
|
-
|
|
7364
|
-
|
|
7365
|
-
|
|
7366
|
-
|
|
7367
|
-
|
|
7368
|
-
|
|
7369
|
-
|
|
7370
|
-
|
|
7371
|
-
|
|
7372
|
-
|
|
7373
|
-
|
|
7374
|
-
|
|
7375
|
-
|
|
7376
|
-
|
|
7377
|
-
|
|
7378
|
-
|
|
7379
|
-
|
|
7380
|
-
|
|
7381
|
-
|
|
7382
|
-
|
|
7383
|
-
|
|
7384
|
-
|
|
7385
|
-
|
|
7386
|
-
|
|
7388
|
+
data-testid="message-input"
|
|
7389
|
+
.value=${this.message}
|
|
7390
|
+
@input=${this.inputHandler}
|
|
7391
|
+
@keydown=${this.keyDownHandler}
|
|
7392
|
+
${be(this.inputRef)}
|
|
7393
|
+
aria-valuenow=${this.textAreaLength}
|
|
7394
|
+
aria-valuemax=${this.messageMaxLength}
|
|
7395
|
+
aria-valuemin="0"
|
|
7396
|
+
role="textbox"
|
|
7397
|
+
aria-multiline="true"
|
|
7398
|
+
></textarea>
|
|
7399
|
+
<div class="conversation-actions">
|
|
7400
|
+
<button
|
|
7401
|
+
class="conversation-send-button"
|
|
7402
|
+
type="submit"
|
|
7403
|
+
data-testid="send-message-button"
|
|
7404
|
+
title=${e.getOrFallback("conversation.send-alt", "Send")}
|
|
7405
|
+
>
|
|
7406
|
+
<telia-icon svg=${oa.svg}></telia-icon>
|
|
7407
|
+
</button>
|
|
7408
|
+
<span class="counter" ${be(this.counterRef)}>
|
|
7409
|
+
${this.textAreaLength} / ${this.messageMaxLength}</span
|
|
7410
|
+
>
|
|
7411
|
+
</div>
|
|
7412
|
+
<div class="sr-only" aria-live="polite">
|
|
7413
|
+
${this.textAreaLength > this.messageMaxLength ? this.messageMaxLengthLabel : ""}
|
|
7414
|
+
</div>
|
|
7415
|
+
</form>
|
|
7416
|
+
${this.disabledSkipToLatest ? w : y`<button
|
|
7417
|
+
class="skip-to-latest-message-button"
|
|
7418
|
+
@click=${this.skipToLatestMessage}
|
|
7419
|
+
>
|
|
7420
|
+
${this.skipToLatestMessageLabel}
|
|
7421
|
+
</button>`}
|
|
7422
|
+
</div>
|
|
7387
7423
|
</div>`;
|
|
7388
7424
|
}
|
|
7389
7425
|
};
|
|
7390
7426
|
Bs.styles = [
|
|
7391
7427
|
Ao.styles || [],
|
|
7392
|
-
|
|
7428
|
+
O`
|
|
7429
|
+
/* ===== HOST & GLOBAL STYLES ===== */
|
|
7393
7430
|
:host {
|
|
7394
7431
|
font-family: var(--font-family);
|
|
7395
|
-
/* --send-icon-color: var(--gray-dark-color, #a6a6a6); */
|
|
7396
7432
|
--textarea-default-height: 1.5rem;
|
|
7397
7433
|
--send-icon-opacity: 0.4;
|
|
7398
7434
|
--send-icon-color: var(--text-color);
|
|
@@ -7422,9 +7458,7 @@ Bs.styles = [
|
|
|
7422
7458
|
|
|
7423
7459
|
--toast-bg: #caeaff;
|
|
7424
7460
|
--toast-border: 1px solid #0078cb;
|
|
7425
|
-
|
|
7426
7461
|
--toast-text-color: #000;
|
|
7427
|
-
|
|
7428
7462
|
--error-text-color: #eb5185;
|
|
7429
7463
|
|
|
7430
7464
|
--message-info-color: var(
|
|
@@ -7434,28 +7468,19 @@ Bs.styles = [
|
|
|
7434
7468
|
|
|
7435
7469
|
scrollbar-width: thin; /* Firefox */
|
|
7436
7470
|
scrollbar-color: #7f7f7f transparent; /* Firefox */
|
|
7437
|
-
}
|
|
7438
7471
|
|
|
7439
|
-
|
|
7440
|
-
|
|
7441
|
-
}
|
|
7472
|
+
--status-info-bg: #e8f6ff;
|
|
7473
|
+
--status-info-text: var(--text-on-secondary-background);
|
|
7442
7474
|
|
|
7443
|
-
|
|
7444
|
-
|
|
7445
|
-
background-color: transparent;
|
|
7446
|
-
border-left: none;
|
|
7475
|
+
--status-success-bg: #e1f9ec;
|
|
7476
|
+
--status-success-text: var(--text-on-secondary-background);
|
|
7447
7477
|
}
|
|
7448
7478
|
|
|
7449
|
-
|
|
7450
|
-
|
|
7451
|
-
}
|
|
7452
|
-
|
|
7453
|
-
::-webkit-scrollbar-track {
|
|
7454
|
-
-webkit-box-shadow: none !important;
|
|
7455
|
-
box-shadow: none !important;
|
|
7456
|
-
background-color: transparent;
|
|
7479
|
+
:focus {
|
|
7480
|
+
outline-color: var(--focus-color);
|
|
7457
7481
|
}
|
|
7458
7482
|
|
|
7483
|
+
/* ===== ANIMATIONS ===== */
|
|
7459
7484
|
@keyframes shake {
|
|
7460
7485
|
10%,
|
|
7461
7486
|
90% {
|
|
@@ -7475,48 +7500,41 @@ Bs.styles = [
|
|
|
7475
7500
|
transform: translateX(-2px);
|
|
7476
7501
|
}
|
|
7477
7502
|
}
|
|
7478
|
-
|
|
7479
|
-
|
|
7480
|
-
|
|
7481
|
-
|
|
7482
|
-
|
|
7483
|
-
|
|
7484
|
-
padding: 0;
|
|
7485
|
-
position: absolute;
|
|
7486
|
-
width: 1px;
|
|
7503
|
+
|
|
7504
|
+
/* ===== LAYOUT CONTAINERS ===== */
|
|
7505
|
+
.conversation-container {
|
|
7506
|
+
display: flex;
|
|
7507
|
+
flex-direction: column;
|
|
7508
|
+
height: 100%;
|
|
7487
7509
|
}
|
|
7488
|
-
|
|
7489
|
-
|
|
7490
|
-
|
|
7491
|
-
|
|
7492
|
-
background-color: var(--conversation-bg);
|
|
7493
|
-
text-decoration: none;
|
|
7494
|
-
padding: var(--spacing-sm);
|
|
7495
|
-
border-radius: var(--spacing-sm);
|
|
7496
|
-
left: -10000000px;
|
|
7510
|
+
|
|
7511
|
+
.conversation-container:has(.auth-banner) .auth-banner {
|
|
7512
|
+
border-top-left-radius: var(--border-radius-sm);
|
|
7513
|
+
border-top-right-radius: var(--border-radius-sm);
|
|
7497
7514
|
}
|
|
7498
|
-
|
|
7499
|
-
|
|
7500
|
-
|
|
7515
|
+
|
|
7516
|
+
.conversation-container:has(.auth-banner) .conversation-content {
|
|
7517
|
+
border-top-left-radius: 0;
|
|
7518
|
+
border-top-right-radius: 0;
|
|
7501
7519
|
}
|
|
7520
|
+
|
|
7502
7521
|
.conversation {
|
|
7503
7522
|
display: grid;
|
|
7504
7523
|
grid-template-rows: 1fr auto;
|
|
7505
7524
|
gap: var(--spacing-lg);
|
|
7506
|
-
|
|
7525
|
+
flex: 1;
|
|
7526
|
+
min-height: 0;
|
|
7507
7527
|
background-color: transparent;
|
|
7508
7528
|
}
|
|
7529
|
+
|
|
7509
7530
|
.conversation.conversation--input-has-valid-text {
|
|
7510
7531
|
--send-icon-opacity: 1;
|
|
7511
7532
|
}
|
|
7512
|
-
|
|
7513
|
-
border-top-right-radius: 0;
|
|
7514
|
-
border-top-left-radius: 0;
|
|
7515
|
-
padding-top: var(--spacing-md);
|
|
7516
|
-
}
|
|
7533
|
+
|
|
7517
7534
|
.conversation.disabled .conversation-bottom {
|
|
7518
7535
|
--conversation-input-bg: rgba(255, 255, 255, 0.4);
|
|
7519
7536
|
}
|
|
7537
|
+
|
|
7520
7538
|
.conversation-content {
|
|
7521
7539
|
flex: 1;
|
|
7522
7540
|
background-color: var(--conversation-bg);
|
|
@@ -7526,6 +7544,35 @@ Bs.styles = [
|
|
|
7526
7544
|
border: 1px solid var(--content-border);
|
|
7527
7545
|
position: relative;
|
|
7528
7546
|
}
|
|
7547
|
+
|
|
7548
|
+
/* ===== AUTH BANNER ===== */
|
|
7549
|
+
.auth-banner {
|
|
7550
|
+
font-size: 0.85rem;
|
|
7551
|
+
text-align: center;
|
|
7552
|
+
display: flex;
|
|
7553
|
+
align-items: center;
|
|
7554
|
+
justify-content: center;
|
|
7555
|
+
padding: var(--spacing-sm);
|
|
7556
|
+
border: 1px solid var(--content-border);
|
|
7557
|
+
border-bottom: none;
|
|
7558
|
+
}
|
|
7559
|
+
|
|
7560
|
+
.auth-banner--authenticated {
|
|
7561
|
+
background-color: var(--status-success-bg);
|
|
7562
|
+
color: var(--status-success-text);
|
|
7563
|
+
}
|
|
7564
|
+
|
|
7565
|
+
.auth-banner--unauthenticated {
|
|
7566
|
+
background-color: var(--status-info-bg);
|
|
7567
|
+
color: var(--status-info-text);
|
|
7568
|
+
}
|
|
7569
|
+
|
|
7570
|
+
.auth-banner__icon {
|
|
7571
|
+
margin-right: var(--spacing-xs);
|
|
7572
|
+
flex-shrink: 0;
|
|
7573
|
+
}
|
|
7574
|
+
|
|
7575
|
+
/* ===== CONVERSATION COMPONENTS ===== */
|
|
7529
7576
|
.conversation-bottom {
|
|
7530
7577
|
border: var(--input-border);
|
|
7531
7578
|
border-radius: var(--border-radius-sm);
|
|
@@ -7538,14 +7585,12 @@ Bs.styles = [
|
|
|
7538
7585
|
margin: 0;
|
|
7539
7586
|
transition: background-color 500ms ease-in-out;
|
|
7540
7587
|
}
|
|
7588
|
+
|
|
7541
7589
|
.conversation-bottom.shake {
|
|
7542
7590
|
animation: 0.82s cubic-bezier(0.36, 0.07, 0.19, 0.97) 0s 1 normal both
|
|
7543
7591
|
running shake;
|
|
7544
7592
|
}
|
|
7545
|
-
|
|
7546
|
-
border-right: 1px solid var(--gray-color);
|
|
7547
|
-
padding-right: var(--spacing-md);
|
|
7548
|
-
}
|
|
7593
|
+
|
|
7549
7594
|
.conversation-send-button {
|
|
7550
7595
|
border: none;
|
|
7551
7596
|
background: transparent;
|
|
@@ -7556,25 +7601,61 @@ Bs.styles = [
|
|
|
7556
7601
|
justify-content: right;
|
|
7557
7602
|
margin-bottom: var(--spacing-xs);
|
|
7558
7603
|
}
|
|
7604
|
+
|
|
7559
7605
|
.conversation-send-button:not(:disabled):hover {
|
|
7560
7606
|
--send-icon-opacity: 1;
|
|
7561
7607
|
cursor: pointer;
|
|
7562
7608
|
}
|
|
7609
|
+
|
|
7563
7610
|
.conversation__toast {
|
|
7564
7611
|
background-color: var(--toast-bg);
|
|
7565
7612
|
border: var(--toast-border);
|
|
7566
7613
|
border-radius: var(--border-radius-sm);
|
|
7567
|
-
margin:
|
|
7614
|
+
margin: var(--spacing-md);
|
|
7568
7615
|
color: var(--toast-text-color);
|
|
7569
7616
|
padding: var(--spacing-md);
|
|
7570
7617
|
position: sticky;
|
|
7571
|
-
top:
|
|
7572
|
-
left: 0;
|
|
7573
|
-
right: 0;
|
|
7618
|
+
top: var(--spacing-md);
|
|
7574
7619
|
font-size: 0.8rem;
|
|
7575
7620
|
text-align: center;
|
|
7576
7621
|
font-weight: 500;
|
|
7577
7622
|
}
|
|
7623
|
+
|
|
7624
|
+
.conversation-actions {
|
|
7625
|
+
display: flex;
|
|
7626
|
+
flex-direction: column;
|
|
7627
|
+
}
|
|
7628
|
+
|
|
7629
|
+
.counter {
|
|
7630
|
+
display: flex;
|
|
7631
|
+
justify-content: right;
|
|
7632
|
+
bottom: var(--spacing-xs);
|
|
7633
|
+
padding-top: var(--spacing-sm);
|
|
7634
|
+
position: absolute;
|
|
7635
|
+
font-size: 0.6rem;
|
|
7636
|
+
}
|
|
7637
|
+
|
|
7638
|
+
.max-char-count-reached {
|
|
7639
|
+
color: var(--error-text-color);
|
|
7640
|
+
}
|
|
7641
|
+
|
|
7642
|
+
.skip-to-latest-message-button {
|
|
7643
|
+
position: absolute;
|
|
7644
|
+
bottom: 80px;
|
|
7645
|
+
text-align: center;
|
|
7646
|
+
background-color: var(--conversation-bg);
|
|
7647
|
+
text-decoration: none;
|
|
7648
|
+
padding: var(--spacing-sm);
|
|
7649
|
+
border-radius: var(--spacing-sm);
|
|
7650
|
+
left: -10000000px;
|
|
7651
|
+
}
|
|
7652
|
+
|
|
7653
|
+
.skip-to-latest-message-button:focus-visible {
|
|
7654
|
+
left: 50%;
|
|
7655
|
+
transform: translateX(-50%);
|
|
7656
|
+
}
|
|
7657
|
+
|
|
7658
|
+
/* ===== FORM ELEMENTS ===== */
|
|
7578
7659
|
textarea {
|
|
7579
7660
|
border: none;
|
|
7580
7661
|
font-family: inherit;
|
|
@@ -7589,6 +7670,7 @@ Bs.styles = [
|
|
|
7589
7670
|
color: var(--input-text-color);
|
|
7590
7671
|
}
|
|
7591
7672
|
|
|
7673
|
+
/* ===== SCROLLBAR STYLES ===== */
|
|
7592
7674
|
[part='scroll-container'] {
|
|
7593
7675
|
scrollbar-width: thin;
|
|
7594
7676
|
scrollbar-color: #7f7f7f transparent !important;
|
|
@@ -7599,15 +7681,18 @@ Bs.styles = [
|
|
|
7599
7681
|
background-color: transparent;
|
|
7600
7682
|
border-left: none;
|
|
7601
7683
|
}
|
|
7684
|
+
|
|
7602
7685
|
[part='scroll-container']::-webkit-scrollbar-thumb {
|
|
7603
7686
|
background-color: #7f7f7f;
|
|
7604
7687
|
}
|
|
7688
|
+
|
|
7605
7689
|
[part='scroll-container']::-webkit-scrollbar-track {
|
|
7606
7690
|
-webkit-box-shadow: none !important;
|
|
7607
7691
|
box-shadow: none !important;
|
|
7608
7692
|
background-color: transparent;
|
|
7609
7693
|
}
|
|
7610
7694
|
|
|
7695
|
+
/* ===== OVERLAY MODE ===== */
|
|
7611
7696
|
.overlay-mode {
|
|
7612
7697
|
z-index: 1;
|
|
7613
7698
|
position: absolute;
|
|
@@ -7615,11 +7700,6 @@ Bs.styles = [
|
|
|
7615
7700
|
height: auto;
|
|
7616
7701
|
max-height: 68%;
|
|
7617
7702
|
}
|
|
7618
|
-
@media screen and (max-width: 800px) {
|
|
7619
|
-
.overlay-mode {
|
|
7620
|
-
width: 100%;
|
|
7621
|
-
}
|
|
7622
|
-
}
|
|
7623
7703
|
|
|
7624
7704
|
.overlay-header {
|
|
7625
7705
|
display: flex;
|
|
@@ -7643,22 +7723,16 @@ Bs.styles = [
|
|
|
7643
7723
|
border-top-right-radius: 0;
|
|
7644
7724
|
}
|
|
7645
7725
|
|
|
7646
|
-
|
|
7647
|
-
|
|
7648
|
-
|
|
7649
|
-
|
|
7650
|
-
|
|
7651
|
-
|
|
7652
|
-
|
|
7653
|
-
|
|
7654
|
-
bottom: var(--spacing-xs);
|
|
7655
|
-
padding-top: var(--spacing-sm);
|
|
7726
|
+
/* ===== UTILITY CLASSES ===== */
|
|
7727
|
+
.visually-hidden {
|
|
7728
|
+
border: 0;
|
|
7729
|
+
clip: rect(0 0 0 0);
|
|
7730
|
+
height: 1px;
|
|
7731
|
+
margin: -1px;
|
|
7732
|
+
overflow: hidden;
|
|
7733
|
+
padding: 0;
|
|
7656
7734
|
position: absolute;
|
|
7657
|
-
|
|
7658
|
-
}
|
|
7659
|
-
|
|
7660
|
-
.max-char-count-reached {
|
|
7661
|
-
color: var(--error-text-color);
|
|
7735
|
+
width: 1px;
|
|
7662
7736
|
}
|
|
7663
7737
|
|
|
7664
7738
|
.sr-only {
|
|
@@ -7671,37 +7745,50 @@ Bs.styles = [
|
|
|
7671
7745
|
clip: rect(0, 0, 0, 0);
|
|
7672
7746
|
border: 0;
|
|
7673
7747
|
}
|
|
7748
|
+
|
|
7749
|
+
/* ===== RESPONSIVE ===== */
|
|
7750
|
+
@media screen and (max-width: 800px) {
|
|
7751
|
+
.overlay-mode {
|
|
7752
|
+
width: 100%;
|
|
7753
|
+
}
|
|
7754
|
+
}
|
|
7674
7755
|
`
|
|
7675
7756
|
];
|
|
7676
|
-
let
|
|
7677
|
-
|
|
7678
|
-
|
|
7679
|
-
],
|
|
7680
|
-
|
|
7681
|
-
|
|
7682
|
-
],
|
|
7683
|
-
|
|
7684
|
-
|
|
7685
|
-
],
|
|
7686
|
-
|
|
7687
|
-
|
|
7688
|
-
],
|
|
7689
|
-
|
|
7690
|
-
|
|
7691
|
-
],
|
|
7692
|
-
|
|
7693
|
-
|
|
7694
|
-
],
|
|
7695
|
-
|
|
7696
|
-
|
|
7697
|
-
],
|
|
7698
|
-
|
|
7699
|
-
|
|
7700
|
-
],
|
|
7701
|
-
|
|
7702
|
-
|
|
7703
|
-
],
|
|
7704
|
-
|
|
7757
|
+
let ie = Bs;
|
|
7758
|
+
pe([
|
|
7759
|
+
T()
|
|
7760
|
+
], ie.prototype, "platform");
|
|
7761
|
+
pe([
|
|
7762
|
+
T()
|
|
7763
|
+
], ie.prototype, "entries");
|
|
7764
|
+
pe([
|
|
7765
|
+
T()
|
|
7766
|
+
], ie.prototype, "typing");
|
|
7767
|
+
pe([
|
|
7768
|
+
T()
|
|
7769
|
+
], ie.prototype, "message");
|
|
7770
|
+
pe([
|
|
7771
|
+
T()
|
|
7772
|
+
], ie.prototype, "disabledInput");
|
|
7773
|
+
pe([
|
|
7774
|
+
T()
|
|
7775
|
+
], ie.prototype, "disabledSkipToLatest");
|
|
7776
|
+
pe([
|
|
7777
|
+
T()
|
|
7778
|
+
], ie.prototype, "disabledSubmit");
|
|
7779
|
+
pe([
|
|
7780
|
+
T()
|
|
7781
|
+
], ie.prototype, "chatOverlayActive");
|
|
7782
|
+
pe([
|
|
7783
|
+
T()
|
|
7784
|
+
], ie.prototype, "textAreaLength");
|
|
7785
|
+
pe([
|
|
7786
|
+
T()
|
|
7787
|
+
], ie.prototype, "showAuthBanner");
|
|
7788
|
+
pe([
|
|
7789
|
+
T()
|
|
7790
|
+
], ie.prototype, "authenticated");
|
|
7791
|
+
var Te = /* @__PURE__ */ ((n) => (n.Tunnistus = "tunnistus", n.BankId = "bankid", n.Freja = "freja", n))(Te || {}), H = /* @__PURE__ */ ((n) => (n.Pending = "pending", n.Authenticated = "authenticated", n.Error = "error", n))(H || {});
|
|
7705
7792
|
class Bt {
|
|
7706
7793
|
constructor(e) {
|
|
7707
7794
|
this.orderRef = "", e = {
|
|
@@ -7733,18 +7820,18 @@ class Bt {
|
|
|
7733
7820
|
};
|
|
7734
7821
|
const t = await e.json();
|
|
7735
7822
|
switch (this.orderRef = t.orderRef, this.config.idHubEidType) {
|
|
7736
|
-
case
|
|
7823
|
+
case Te.Tunnistus:
|
|
7737
7824
|
return {
|
|
7738
7825
|
tunnistusURL: t.tunnistusURL,
|
|
7739
7826
|
status: H.Pending
|
|
7740
7827
|
};
|
|
7741
|
-
case
|
|
7828
|
+
case Te.BankId:
|
|
7742
7829
|
return {
|
|
7743
7830
|
autoStartToken: t.autoStartToken,
|
|
7744
7831
|
status: H.Pending
|
|
7745
7832
|
};
|
|
7746
|
-
case
|
|
7747
|
-
throw new Error(`${
|
|
7833
|
+
case Te.Freja:
|
|
7834
|
+
throw new Error(`${Te.Freja} is not implemented`);
|
|
7748
7835
|
default:
|
|
7749
7836
|
throw new Error(
|
|
7750
7837
|
`The service ${this.config.idHubEidType} is not implemented`
|
|
@@ -7831,7 +7918,7 @@ class Bt {
|
|
|
7831
7918
|
}
|
|
7832
7919
|
}
|
|
7833
7920
|
}
|
|
7834
|
-
const
|
|
7921
|
+
const Ce = (n) => n.objectType === "info", Md = (n) => n.objectType === "chatEntry", Ud = (n) => n.objectType === "pen", Nd = (n) => n.objectType === "chatButtonClicked", Dd = (n) => n.objectType === "endVideoButtonClicked", zd = (n) => n.type === "queue-status", Hd = (n) => n.type === "established", Fd = (n) => n.type === "pen-status", jd = (n) => n.type === "prepareVideo", Bd = (n) => n.type === "videoPrepared", qd = (n) => n.type === "chatButtonClicked", Vd = (n) => n.type === "endVideoButtonClicked", Wd = (n) => n.type === "chat-ended";
|
|
7835
7922
|
var Ze = /* @__PURE__ */ ((n) => (n.Initial = "initial", n.Error = "error", n.Retry = "retry", n))(Ze || {});
|
|
7836
7923
|
class jn extends Error {
|
|
7837
7924
|
constructor(e) {
|
|
@@ -7978,7 +8065,7 @@ const Gd = () => "10000000-1000-4000-8000-100000000000".replace(
|
|
|
7978
8065
|
function es(n) {
|
|
7979
8066
|
return /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(n);
|
|
7980
8067
|
}
|
|
7981
|
-
function
|
|
8068
|
+
function Xa(n) {
|
|
7982
8069
|
return n.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase();
|
|
7983
8070
|
}
|
|
7984
8071
|
function Zd(n) {
|
|
@@ -8004,7 +8091,7 @@ class Yd {
|
|
|
8004
8091
|
text: this.config.errorMessage ?? "An error occured",
|
|
8005
8092
|
source: "system"
|
|
8006
8093
|
}), new j())),
|
|
8007
|
-
|
|
8094
|
+
Oe(() => this.poll().pipe(
|
|
8008
8095
|
vi(() => this.poll()),
|
|
8009
8096
|
// Using concatMap here to ensure that each http request gets handled in order
|
|
8010
8097
|
bi()
|
|
@@ -8031,7 +8118,7 @@ class Yd {
|
|
|
8031
8118
|
text: this.config.errorMessage ?? "An error occured",
|
|
8032
8119
|
source: "system"
|
|
8033
8120
|
}), new j())),
|
|
8034
|
-
|
|
8121
|
+
Oe(() => this.poll().pipe(
|
|
8035
8122
|
vi(() => this.poll()),
|
|
8036
8123
|
// Using concatMap here to ensure that each http request gets handled in order
|
|
8037
8124
|
bi()
|
|
@@ -8046,7 +8133,7 @@ class Yd {
|
|
|
8046
8133
|
);
|
|
8047
8134
|
}
|
|
8048
8135
|
poll() {
|
|
8049
|
-
return
|
|
8136
|
+
return cc(
|
|
8050
8137
|
() => Ye(
|
|
8051
8138
|
this.client.chatRead({
|
|
8052
8139
|
uid: this.sessionId,
|
|
@@ -8055,7 +8142,7 @@ class Yd {
|
|
|
8055
8142
|
maxObjectId: this.lastObjectId
|
|
8056
8143
|
})
|
|
8057
8144
|
).pipe(
|
|
8058
|
-
|
|
8145
|
+
vc((e) => {
|
|
8059
8146
|
this.processMessages(e);
|
|
8060
8147
|
})
|
|
8061
8148
|
)
|
|
@@ -8068,7 +8155,7 @@ class Yd {
|
|
|
8068
8155
|
clockstamp: Date.now().toString(),
|
|
8069
8156
|
message: e
|
|
8070
8157
|
}), i = ((t == null ? void 0 : t.dataObjects) || []).find(
|
|
8071
|
-
(s) =>
|
|
8158
|
+
(s) => Ce(s) && s.infoType === "error"
|
|
8072
8159
|
);
|
|
8073
8160
|
if (i)
|
|
8074
8161
|
throw new jn(i.text || "Unable to send message");
|
|
@@ -8102,7 +8189,7 @@ class Yd {
|
|
|
8102
8189
|
emailAddress: e
|
|
8103
8190
|
});
|
|
8104
8191
|
if (((t == null ? void 0 : t.dataObjects) || []).find(
|
|
8105
|
-
(s) =>
|
|
8192
|
+
(s) => Ce(s) && s.infoType === "error"
|
|
8106
8193
|
))
|
|
8107
8194
|
throw new jn("Unable to send email with conversation");
|
|
8108
8195
|
}
|
|
@@ -8116,10 +8203,10 @@ class Yd {
|
|
|
8116
8203
|
}), Ud(t) && this.actionsSubject$.next({
|
|
8117
8204
|
penStatus: t.penStatus,
|
|
8118
8205
|
type: "pen-status"
|
|
8119
|
-
}),
|
|
8206
|
+
}), Ce(t) && t.infoType === "queue" && this.actionsSubject$.next({
|
|
8120
8207
|
text: t.text,
|
|
8121
8208
|
type: "queue-status"
|
|
8122
|
-
}),
|
|
8209
|
+
}), Ce(t) && t.infoType === "established" && this.actionsSubject$.next({
|
|
8123
8210
|
text: t.text,
|
|
8124
8211
|
agentAlias: t.agentAlias,
|
|
8125
8212
|
type: "established",
|
|
@@ -8128,9 +8215,9 @@ class Yd {
|
|
|
8128
8215
|
agentUsername: t.agentUsername,
|
|
8129
8216
|
entrance: t.entrance,
|
|
8130
8217
|
errand: t.errand
|
|
8131
|
-
}),
|
|
8218
|
+
}), Ce(t) && t.infoType === "prepareVideo" && this.actionsSubject$.next({
|
|
8132
8219
|
type: "prepareVideo"
|
|
8133
|
-
}),
|
|
8220
|
+
}), Ce(t) && t.infoType === "videoPrepared" && this.actionsSubject$.next({
|
|
8134
8221
|
text: t.text,
|
|
8135
8222
|
agent: t.agent,
|
|
8136
8223
|
type: "videoPrepared",
|
|
@@ -8141,7 +8228,7 @@ class Yd {
|
|
|
8141
8228
|
}), Dd(t) && this.actionsSubject$.next({
|
|
8142
8229
|
guestId: t.guestId,
|
|
8143
8230
|
type: "endVideoButtonClicked"
|
|
8144
|
-
}),
|
|
8231
|
+
}), Ce(t) && ["afterChat", "finished"].includes(t.infoType) && this.actionsSubject$.next({
|
|
8145
8232
|
text: t.text,
|
|
8146
8233
|
type: "chat-ended",
|
|
8147
8234
|
showForm: t.infoType === "afterChat",
|
|
@@ -8158,7 +8245,7 @@ class Yd {
|
|
|
8158
8245
|
return "noSession";
|
|
8159
8246
|
const t = e.dataObjects;
|
|
8160
8247
|
for (const i of t)
|
|
8161
|
-
if (
|
|
8248
|
+
if (Ce(i))
|
|
8162
8249
|
switch (i.infoType) {
|
|
8163
8250
|
case "finished":
|
|
8164
8251
|
case "afterChat":
|
|
@@ -8174,7 +8261,7 @@ class Yd {
|
|
|
8174
8261
|
instance: this.config.instance
|
|
8175
8262
|
});
|
|
8176
8263
|
return !e || (e.dataObjects || []).find(
|
|
8177
|
-
(t) =>
|
|
8264
|
+
(t) => Ce(t) && t.infoType === "noSession"
|
|
8178
8265
|
) ? null : (this.processMessages(e), e);
|
|
8179
8266
|
}
|
|
8180
8267
|
// TODO: Add missing Chat Engine requests below:
|
|
@@ -8341,7 +8428,7 @@ let it = (bt = class extends _ {
|
|
|
8341
8428
|
></ace-contact-data-field>
|
|
8342
8429
|
<div
|
|
8343
8430
|
class="warning-row"
|
|
8344
|
-
data-testid=${`form-${
|
|
8431
|
+
data-testid=${`form-${Xa(t.name)}-warning`}
|
|
8345
8432
|
style="display: ${this.showValidationWarning && this.validationErrors.includes(t.name) ? "flex" : "none"};"
|
|
8346
8433
|
>
|
|
8347
8434
|
<telia-icon
|
|
@@ -8360,7 +8447,7 @@ let it = (bt = class extends _ {
|
|
|
8360
8447
|
</div>`;
|
|
8361
8448
|
}
|
|
8362
8449
|
}, bt.styles = [
|
|
8363
|
-
|
|
8450
|
+
O`
|
|
8364
8451
|
:host {
|
|
8365
8452
|
display: block;
|
|
8366
8453
|
}
|
|
@@ -8444,22 +8531,22 @@ let it = (bt = class extends _ {
|
|
|
8444
8531
|
`
|
|
8445
8532
|
], bt);
|
|
8446
8533
|
Et([
|
|
8447
|
-
|
|
8534
|
+
T()
|
|
8448
8535
|
], it.prototype, "submitted");
|
|
8449
8536
|
Et([
|
|
8450
|
-
|
|
8537
|
+
T()
|
|
8451
8538
|
], it.prototype, "customData");
|
|
8452
8539
|
Et([
|
|
8453
|
-
|
|
8540
|
+
T()
|
|
8454
8541
|
], it.prototype, "customerName");
|
|
8455
8542
|
Et([
|
|
8456
|
-
|
|
8543
|
+
T()
|
|
8457
8544
|
], it.prototype, "validationErrors");
|
|
8458
8545
|
Et([
|
|
8459
|
-
|
|
8546
|
+
T()
|
|
8460
8547
|
], it.prototype, "showValidationWarning");
|
|
8461
8548
|
Et([
|
|
8462
|
-
|
|
8549
|
+
le({ context: se }),
|
|
8463
8550
|
k({ attribute: !1 })
|
|
8464
8551
|
], it.prototype, "application");
|
|
8465
8552
|
window.customElements.get("ace-welcome-form") || window.customElements.define("ace-welcome-form", it);
|
|
@@ -8534,7 +8621,7 @@ const qs = class qs extends _ {
|
|
|
8534
8621
|
}
|
|
8535
8622
|
};
|
|
8536
8623
|
qs.styles = [
|
|
8537
|
-
|
|
8624
|
+
O`
|
|
8538
8625
|
:host {
|
|
8539
8626
|
display: block;
|
|
8540
8627
|
visibility: visible;
|
|
@@ -8616,13 +8703,13 @@ qs.styles = [
|
|
|
8616
8703
|
];
|
|
8617
8704
|
let kt = qs;
|
|
8618
8705
|
As([
|
|
8619
|
-
|
|
8706
|
+
T()
|
|
8620
8707
|
], kt.prototype, "submitted");
|
|
8621
8708
|
As([
|
|
8622
|
-
|
|
8709
|
+
T()
|
|
8623
8710
|
], kt.prototype, "name");
|
|
8624
8711
|
As([
|
|
8625
|
-
|
|
8712
|
+
le({ context: se }),
|
|
8626
8713
|
k({ attribute: !1 })
|
|
8627
8714
|
], kt.prototype, "application");
|
|
8628
8715
|
window.customElements.get("ace-welcome-form-third-party") || window.customElements.define("ace-welcome-form-third-party", kt);
|
|
@@ -8701,7 +8788,7 @@ const Vs = class Vs extends _ {
|
|
|
8701
8788
|
}
|
|
8702
8789
|
};
|
|
8703
8790
|
Vs.styles = [
|
|
8704
|
-
|
|
8791
|
+
O`
|
|
8705
8792
|
:host {
|
|
8706
8793
|
display: block;
|
|
8707
8794
|
}
|
|
@@ -8779,13 +8866,13 @@ Vs.styles = [
|
|
|
8779
8866
|
];
|
|
8780
8867
|
let St = Vs;
|
|
8781
8868
|
Ts([
|
|
8782
|
-
|
|
8869
|
+
T()
|
|
8783
8870
|
], St.prototype, "email");
|
|
8784
8871
|
Ts([
|
|
8785
|
-
|
|
8872
|
+
T()
|
|
8786
8873
|
], St.prototype, "isEmailValid");
|
|
8787
8874
|
Ts([
|
|
8788
|
-
|
|
8875
|
+
le({ context: se }),
|
|
8789
8876
|
k({ attribute: !1 })
|
|
8790
8877
|
], St.prototype, "application");
|
|
8791
8878
|
window.customElements.get("ace-conversation-ended-form") || window.customElements.define(
|
|
@@ -8858,7 +8945,7 @@ const Ws = class Ws extends _ {
|
|
|
8858
8945
|
}
|
|
8859
8946
|
};
|
|
8860
8947
|
Ws.styles = [
|
|
8861
|
-
|
|
8948
|
+
O`
|
|
8862
8949
|
:host {
|
|
8863
8950
|
display: block;
|
|
8864
8951
|
}
|
|
@@ -8924,7 +9011,7 @@ Ws.styles = [
|
|
|
8924
9011
|
];
|
|
8925
9012
|
let Bn = Ws;
|
|
8926
9013
|
ep([
|
|
8927
|
-
|
|
9014
|
+
le({ context: se }),
|
|
8928
9015
|
k({ attribute: !1 })
|
|
8929
9016
|
], Bn.prototype, "application");
|
|
8930
9017
|
window.customElements.get("ace-video-confirm-dialog") || window.customElements.define("ace-video-confirm-dialog", Bn);
|
|
@@ -8960,7 +9047,7 @@ const Gs = class Gs extends _ {
|
|
|
8960
9047
|
}
|
|
8961
9048
|
};
|
|
8962
9049
|
Gs.styles = [
|
|
8963
|
-
|
|
9050
|
+
O`
|
|
8964
9051
|
:focus {
|
|
8965
9052
|
outline-color: var(--focus-color);
|
|
8966
9053
|
}
|
|
@@ -9010,7 +9097,7 @@ Gs.styles = [
|
|
|
9010
9097
|
];
|
|
9011
9098
|
let qn = Gs;
|
|
9012
9099
|
np([
|
|
9013
|
-
|
|
9100
|
+
le({ context: se }),
|
|
9014
9101
|
k({ attribute: !1 })
|
|
9015
9102
|
], qn.prototype, "application");
|
|
9016
9103
|
window.customElements.get("ace-survey") || window.customElements.define("ace-survey", qn);
|
|
@@ -9052,7 +9139,7 @@ const Zs = class Zs extends _ {
|
|
|
9052
9139
|
}
|
|
9053
9140
|
};
|
|
9054
9141
|
Zs.styles = [
|
|
9055
|
-
|
|
9142
|
+
O`
|
|
9056
9143
|
:host {
|
|
9057
9144
|
display: block;
|
|
9058
9145
|
}
|
|
@@ -9107,14 +9194,14 @@ Zs.styles = [
|
|
|
9107
9194
|
];
|
|
9108
9195
|
let Vn = Zs;
|
|
9109
9196
|
sp([
|
|
9110
|
-
|
|
9197
|
+
le({ context: se }),
|
|
9111
9198
|
k({ attribute: !1 })
|
|
9112
9199
|
], Vn.prototype, "application");
|
|
9113
9200
|
window.customElements.get("ace-entrance-closed-dialog") || window.customElements.define(
|
|
9114
9201
|
"ace-entrance-closed-dialog",
|
|
9115
9202
|
Vn
|
|
9116
9203
|
);
|
|
9117
|
-
var rp = Object.defineProperty,
|
|
9204
|
+
var rp = Object.defineProperty, Ka = (n, e, t, i) => {
|
|
9118
9205
|
for (var s = void 0, r = n.length - 1, o; r >= 0; r--)
|
|
9119
9206
|
(o = n[r]) && (s = o(e, t, s) || s);
|
|
9120
9207
|
return s && rp(e, t, s), s;
|
|
@@ -9156,7 +9243,7 @@ const Ys = class Ys extends _ {
|
|
|
9156
9243
|
`;
|
|
9157
9244
|
}
|
|
9158
9245
|
render() {
|
|
9159
|
-
const e = `form-${
|
|
9246
|
+
const e = `form-${Xa(this.entry.name)}`, t = this.entry.displayName;
|
|
9160
9247
|
return this.entry.entryType === "text" ? y`<div class="container">
|
|
9161
9248
|
<label for=${e}
|
|
9162
9249
|
>${t} ${this.renderRequiredIndicator(this.entry.required)}
|
|
@@ -9199,14 +9286,14 @@ const Ys = class Ys extends _ {
|
|
|
9199
9286
|
</option>`)}
|
|
9200
9287
|
</select>
|
|
9201
9288
|
<div class="custom-chevron-down">
|
|
9202
|
-
<telia-icon .svg=${
|
|
9289
|
+
<telia-icon .svg=${ra.svg}></telia-icon>
|
|
9203
9290
|
</div>
|
|
9204
9291
|
</div>
|
|
9205
9292
|
</div>` : y`<div>Unknown entry type</div>`;
|
|
9206
9293
|
}
|
|
9207
9294
|
};
|
|
9208
9295
|
Ys.styles = [
|
|
9209
|
-
|
|
9296
|
+
O`
|
|
9210
9297
|
:focus {
|
|
9211
9298
|
outline-color: var(--focus-color);
|
|
9212
9299
|
}
|
|
@@ -9300,11 +9387,11 @@ Ys.styles = [
|
|
|
9300
9387
|
`
|
|
9301
9388
|
];
|
|
9302
9389
|
let Jt = Ys;
|
|
9303
|
-
|
|
9390
|
+
Ka([
|
|
9304
9391
|
k({ attribute: !1 })
|
|
9305
9392
|
], Jt.prototype, "entry");
|
|
9306
|
-
|
|
9307
|
-
|
|
9393
|
+
Ka([
|
|
9394
|
+
le({ context: se }),
|
|
9308
9395
|
k({ attribute: !1 })
|
|
9309
9396
|
], Jt.prototype, "application");
|
|
9310
9397
|
window.customElements.get("ace-contact-data-field") || window.customElements.define("ace-contact-data-field", Jt);
|
|
@@ -9369,7 +9456,7 @@ const Qs = class Qs extends _ {
|
|
|
9369
9456
|
}
|
|
9370
9457
|
};
|
|
9371
9458
|
Qs.styles = [
|
|
9372
|
-
|
|
9459
|
+
O`
|
|
9373
9460
|
:host {
|
|
9374
9461
|
display: block;
|
|
9375
9462
|
}
|
|
@@ -9435,7 +9522,7 @@ Qs.styles = [
|
|
|
9435
9522
|
];
|
|
9436
9523
|
let Wn = Qs;
|
|
9437
9524
|
ap([
|
|
9438
|
-
|
|
9525
|
+
le({ context: se }),
|
|
9439
9526
|
k({ attribute: !1 })
|
|
9440
9527
|
], Wn.prototype, "application");
|
|
9441
9528
|
window.customElements.get("ace-quit-confirm-dialog") || window.customElements.define("ace-quit-confirm-dialog", Wn);
|
|
@@ -9500,7 +9587,7 @@ const Xs = class Xs extends _ {
|
|
|
9500
9587
|
}
|
|
9501
9588
|
};
|
|
9502
9589
|
Xs.styles = [
|
|
9503
|
-
|
|
9590
|
+
O`
|
|
9504
9591
|
:host {
|
|
9505
9592
|
display: block;
|
|
9506
9593
|
}
|
|
@@ -9566,7 +9653,7 @@ Xs.styles = [
|
|
|
9566
9653
|
];
|
|
9567
9654
|
let Gn = Xs;
|
|
9568
9655
|
cp([
|
|
9569
|
-
|
|
9656
|
+
le({ context: se }),
|
|
9570
9657
|
k({ attribute: !1 })
|
|
9571
9658
|
], Gn.prototype, "application");
|
|
9572
9659
|
window.customElements.get("ace-logout-confirm-dialog") || window.customElements.define(
|
|
@@ -9667,7 +9754,7 @@ const Ks = class Ks extends _ {
|
|
|
9667
9754
|
}
|
|
9668
9755
|
};
|
|
9669
9756
|
Ks.styles = [
|
|
9670
|
-
|
|
9757
|
+
O`
|
|
9671
9758
|
:focus {
|
|
9672
9759
|
outline-color: var(--focus-color);
|
|
9673
9760
|
}
|
|
@@ -9742,7 +9829,7 @@ Ks.styles = [
|
|
|
9742
9829
|
];
|
|
9743
9830
|
let Zn = Ks;
|
|
9744
9831
|
hp([
|
|
9745
|
-
|
|
9832
|
+
le({ context: se }),
|
|
9746
9833
|
k({ attribute: !1 })
|
|
9747
9834
|
], Zn.prototype, "application");
|
|
9748
9835
|
window.customElements.get("ace-tunnistus-auth-card") || window.customElements.define("ace-tunnistus-auth-card", Zn);
|
|
@@ -9751,7 +9838,7 @@ window.customElements.get("ace-tunnistus-auth-card") || window.customElements.de
|
|
|
9751
9838
|
* Copyright 2018 Google LLC
|
|
9752
9839
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
9753
9840
|
*/
|
|
9754
|
-
const
|
|
9841
|
+
const Ja = "important", dp = " !" + Ja, pp = on(class extends Jn {
|
|
9755
9842
|
constructor(n) {
|
|
9756
9843
|
var e;
|
|
9757
9844
|
if (super(n), n.type !== rn.ATTRIBUTE || n.name !== "style" || ((e = n.strings) == null ? void 0 : e.length) > 2) throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.");
|
|
@@ -9771,10 +9858,10 @@ const Ka = "important", dp = " !" + Ka, pp = on(class extends Jn {
|
|
|
9771
9858
|
if (s != null) {
|
|
9772
9859
|
this.ft.add(i);
|
|
9773
9860
|
const r = typeof s == "string" && s.endsWith(dp);
|
|
9774
|
-
i.includes("-") || r ? t.setProperty(i, r ? s.slice(0, -11) : s, r ?
|
|
9861
|
+
i.includes("-") || r ? t.setProperty(i, r ? s.slice(0, -11) : s, r ? Ja : "") : t[i] = s;
|
|
9775
9862
|
}
|
|
9776
9863
|
}
|
|
9777
|
-
return
|
|
9864
|
+
return Le;
|
|
9778
9865
|
}
|
|
9779
9866
|
});
|
|
9780
9867
|
var fp = Object.defineProperty, gp = (n, e, t, i) => {
|
|
@@ -9822,7 +9909,7 @@ const Js = class Js extends _ {
|
|
|
9822
9909
|
}
|
|
9823
9910
|
};
|
|
9824
9911
|
Js.styles = [
|
|
9825
|
-
|
|
9912
|
+
O`
|
|
9826
9913
|
:host {
|
|
9827
9914
|
display: block;
|
|
9828
9915
|
}
|
|
@@ -9847,11 +9934,11 @@ Js.styles = [
|
|
|
9847
9934
|
];
|
|
9848
9935
|
let en = Js;
|
|
9849
9936
|
gp([
|
|
9850
|
-
|
|
9937
|
+
le({ context: se }),
|
|
9851
9938
|
k({ attribute: !1 })
|
|
9852
9939
|
], en.prototype, "application");
|
|
9853
9940
|
window.customElements.get("ace-video-iframe") || window.customElements.define("ace-video-iframe", en);
|
|
9854
|
-
class Os extends
|
|
9941
|
+
class Os extends kc {
|
|
9855
9942
|
constructor(e, t) {
|
|
9856
9943
|
var i, s, r, o;
|
|
9857
9944
|
super(e, t), this.pendingMessages = [], this.texts = this.component.application.texts, this.headerComponent = this.component.application.getComponent("widget-header"), this.isThirdPartyParticipant = this.component.properties.chat.isThirdPartyWidget, this.agent = this.createAgent(""), this.user = this.createUser(""), this.params = new URLSearchParams(document.location.search), this.invitationUid = this.params.get("invitationUid"), this.customerName = this.params.get("customerName") || void 0, this.idHubUrl = "https://idhub.dev-se.telia-ck8s.com/idhub-gateway/public", this.logoutTimer = null, this.disconnected$ = new P(), this.agentUsername = null, this.conversationOption = null, this._conversationOptions = {}, this.sessionId = null, this.contactId = null, this.errand = null, this.entrance = null, this.guestId = null, this.chatOverlayActive = !1, this.inVideoCall = !1, this.onQueueStatusReceived = (a) => {
|
|
@@ -9953,14 +10040,21 @@ class Os extends xc {
|
|
|
9953
10040
|
}
|
|
9954
10041
|
save(e) {
|
|
9955
10042
|
this.component.stateMachine.session().pipe(
|
|
9956
|
-
|
|
9957
|
-
|
|
10043
|
+
Oe((t) => (t == null ? void 0 : t.data$) || tt),
|
|
10044
|
+
me(1)
|
|
9958
10045
|
).subscribe((t) => {
|
|
9959
10046
|
this.saveToCurrentSession$.next({ ...t, ...e });
|
|
9960
10047
|
});
|
|
9961
10048
|
}
|
|
9962
10049
|
async rehydrate(e) {
|
|
9963
|
-
e.chatSessionId && this.setSessionId(e.chatSessionId), e.survey && (this.contactId = e.survey.contactId, this.errand = e.survey.errand, this.entrance = e.survey.entrance, this.agentUsername = e.survey.agentUsername)
|
|
10050
|
+
if (e.chatSessionId && this.setSessionId(e.chatSessionId), e.survey && (this.contactId = e.survey.contactId, this.errand = e.survey.errand, this.entrance = e.survey.entrance, this.agentUsername = e.survey.agentUsername), this.shouldUseAuth) {
|
|
10051
|
+
const t = this.component.application.storage.get(
|
|
10052
|
+
"auth"
|
|
10053
|
+
);
|
|
10054
|
+
t != null && t.authenticated ? this.component.setAuthenticationBannerStatus(ee.Authenticated) : this.component.setAuthenticationBannerStatus(
|
|
10055
|
+
ee.NonAuthenticated
|
|
10056
|
+
);
|
|
10057
|
+
}
|
|
9964
10058
|
}
|
|
9965
10059
|
// ==============
|
|
9966
10060
|
// STATIC METHODS
|
|
@@ -9972,7 +10066,7 @@ class Os extends xc {
|
|
|
9972
10066
|
// INTERNAL UTILITY METHODS
|
|
9973
10067
|
// ========================
|
|
9974
10068
|
async initializeChat(e) {
|
|
9975
|
-
this.shouldUseAuth && this.idHubEidType ? (this.setupIDHubAuth(), this.idHubClient && await this.startAuthenticationFlow()) : this.handleWelcomeForm(e);
|
|
10069
|
+
this.shouldUseAuth && this.idHubEidType ? (this.component.setAuthenticationBannerStatus(ee.NonAuthenticated), this.setupIDHubAuth(), this.idHubClient && await this.startAuthenticationFlow()) : this.handleWelcomeForm(e);
|
|
9976
10070
|
}
|
|
9977
10071
|
setupAuthenticationListeners() {
|
|
9978
10072
|
var e;
|
|
@@ -9993,7 +10087,7 @@ class Os extends xc {
|
|
|
9993
10087
|
});
|
|
9994
10088
|
}
|
|
9995
10089
|
async startAuthenticationFlow() {
|
|
9996
|
-
this.component.disableInput(), this.resetAuthState(
|
|
10090
|
+
this.component.disableInput(), this.resetAuthState(ee.NonAuthenticated);
|
|
9997
10091
|
const e = await this.idHubClient.auth();
|
|
9998
10092
|
if (e.status === H.Error) {
|
|
9999
10093
|
this.printSystem(
|
|
@@ -10008,7 +10102,7 @@ class Os extends xc {
|
|
|
10008
10102
|
// ========================
|
|
10009
10103
|
// Tunnistus authentication
|
|
10010
10104
|
// ========================
|
|
10011
|
-
case
|
|
10105
|
+
case Te.Tunnistus:
|
|
10012
10106
|
if (!e.tunnistusURL) {
|
|
10013
10107
|
this.printSystem(
|
|
10014
10108
|
this.texts.getOrFallback(
|
|
@@ -10018,12 +10112,12 @@ class Os extends xc {
|
|
|
10018
10112
|
), this.headerComponent.showAuthOptions = !1;
|
|
10019
10113
|
return;
|
|
10020
10114
|
}
|
|
10021
|
-
this.authURL = e.tunnistusURL, this.headerComponent.authUrl = e.tunnistusURL, this.headerComponent.authState =
|
|
10115
|
+
this.authURL = e.tunnistusURL, this.headerComponent.authUrl = e.tunnistusURL, this.headerComponent.authState = ee.NonAuthenticated, this.authenticationCardEntry = this.showTunnistusAuthCard(
|
|
10022
10116
|
Ze.Initial,
|
|
10023
10117
|
e.tunnistusURL
|
|
10024
10118
|
), this.authenticationCardEntry.actions$.pipe(
|
|
10025
10119
|
W((t) => t.key === "start-auth"),
|
|
10026
|
-
|
|
10120
|
+
me(1)
|
|
10027
10121
|
).subscribe(() => {
|
|
10028
10122
|
this.handleAuthentication();
|
|
10029
10123
|
});
|
|
@@ -10031,7 +10125,7 @@ class Os extends xc {
|
|
|
10031
10125
|
// =====================
|
|
10032
10126
|
// BankId authentication
|
|
10033
10127
|
// =====================
|
|
10034
|
-
case
|
|
10128
|
+
case Te.BankId:
|
|
10035
10129
|
break;
|
|
10036
10130
|
}
|
|
10037
10131
|
}
|
|
@@ -10074,7 +10168,7 @@ class Os extends xc {
|
|
|
10074
10168
|
}
|
|
10075
10169
|
async endConversation() {
|
|
10076
10170
|
var e;
|
|
10077
|
-
this.shouldUseAuth && this.resetAuthState(
|
|
10171
|
+
this.shouldUseAuth && this.resetAuthState(ee.ChatEnded), await ((e = this.engine) == null ? void 0 : e.chatQuit());
|
|
10078
10172
|
}
|
|
10079
10173
|
async sendConversationEmail(e) {
|
|
10080
10174
|
var t;
|
|
@@ -10126,15 +10220,15 @@ class Os extends xc {
|
|
|
10126
10220
|
this.headerComponent.userName = this.texts.getOrFallback(
|
|
10127
10221
|
"widget-header.authenticating",
|
|
10128
10222
|
"Authenticating..."
|
|
10129
|
-
), this.headerComponent.authState =
|
|
10223
|
+
), this.headerComponent.authState = ee.Authenticating;
|
|
10130
10224
|
const e = await this.idHubClient.collect();
|
|
10131
10225
|
switch (this.authenticationCardEntry && this.authenticationCardEntry.remove(), this.idHubEidType) {
|
|
10132
|
-
case
|
|
10226
|
+
case Te.Tunnistus:
|
|
10133
10227
|
if (e.status === H.Error) {
|
|
10134
10228
|
this.headerComponent.userName = this.texts.getOrFallback(
|
|
10135
10229
|
"widget-header.not-authenticated",
|
|
10136
10230
|
"Not authenticated"
|
|
10137
|
-
), this.headerComponent.authState =
|
|
10231
|
+
), this.headerComponent.authState = ee.NonAuthenticated, this.authenticationCardEntry = this.showTunnistusAuthCard(
|
|
10138
10232
|
Ze.Error,
|
|
10139
10233
|
this.authURL
|
|
10140
10234
|
);
|
|
@@ -10149,16 +10243,16 @@ class Os extends xc {
|
|
|
10149
10243
|
this.logoutUser();
|
|
10150
10244
|
}, u));
|
|
10151
10245
|
}
|
|
10152
|
-
this.headerComponent.userName = l, this.headerComponent.authState =
|
|
10246
|
+
this.headerComponent.userName = l, this.headerComponent.authState = ee.Authenticated, this.component.application.storage.set("auth", {
|
|
10153
10247
|
name: l,
|
|
10154
10248
|
authenticated: !0
|
|
10155
|
-
}), (r = this.authenticationCardEntry) == null || r.remove(), this.handleWelcomeForm(
|
|
10249
|
+
}), this.component.setAuthenticationBannerStatus(ee.Authenticated), (r = this.authenticationCardEntry) == null || r.remove(), this.handleWelcomeForm(
|
|
10156
10250
|
this.engine.config,
|
|
10157
10251
|
e.idhubEIDToken
|
|
10158
10252
|
);
|
|
10159
10253
|
}
|
|
10160
10254
|
break;
|
|
10161
|
-
case
|
|
10255
|
+
case Te.BankId:
|
|
10162
10256
|
break;
|
|
10163
10257
|
}
|
|
10164
10258
|
}
|
|
@@ -10181,7 +10275,7 @@ class Os extends xc {
|
|
|
10181
10275
|
// UI INJECTORS
|
|
10182
10276
|
// ============
|
|
10183
10277
|
showSurvey() {
|
|
10184
|
-
const e = new
|
|
10278
|
+
const e = new te(
|
|
10185
10279
|
F.System,
|
|
10186
10280
|
{
|
|
10187
10281
|
name: ""
|
|
@@ -10206,7 +10300,7 @@ class Os extends xc {
|
|
|
10206
10300
|
this.printEntry(e);
|
|
10207
10301
|
}
|
|
10208
10302
|
showTunnistusAuthCard(e, t, i) {
|
|
10209
|
-
const s = new
|
|
10303
|
+
const s = new te(
|
|
10210
10304
|
F.System,
|
|
10211
10305
|
{
|
|
10212
10306
|
name: ""
|
|
@@ -10232,7 +10326,7 @@ class Os extends xc {
|
|
|
10232
10326
|
showWelcomeForm() {
|
|
10233
10327
|
this.component.disableInput(), this.component.disableSkipToLatestMessage();
|
|
10234
10328
|
let e;
|
|
10235
|
-
this.isThirdPartyParticipant ? e = new
|
|
10329
|
+
this.isThirdPartyParticipant ? e = new te(
|
|
10236
10330
|
F.System,
|
|
10237
10331
|
{
|
|
10238
10332
|
name: ""
|
|
@@ -10242,7 +10336,7 @@ class Os extends xc {
|
|
|
10242
10336
|
items: [["ace-welcome-form-third-party", { content: "" }]]
|
|
10243
10337
|
}
|
|
10244
10338
|
]
|
|
10245
|
-
) : e = new
|
|
10339
|
+
) : e = new te(
|
|
10246
10340
|
F.System,
|
|
10247
10341
|
{
|
|
10248
10342
|
name: ""
|
|
@@ -10254,7 +10348,7 @@ class Os extends xc {
|
|
|
10254
10348
|
]
|
|
10255
10349
|
), this.printEntry(e), e.actions$.pipe(
|
|
10256
10350
|
W((t) => t.key === "submitted"),
|
|
10257
|
-
|
|
10351
|
+
me(1)
|
|
10258
10352
|
).subscribe((t) => {
|
|
10259
10353
|
e.remove(), this.user.name = t.data.name, this.startChat({
|
|
10260
10354
|
customerName: t.data.name,
|
|
@@ -10266,7 +10360,7 @@ class Os extends xc {
|
|
|
10266
10360
|
}
|
|
10267
10361
|
showEntranceClosedDialog() {
|
|
10268
10362
|
this.component.disableInput();
|
|
10269
|
-
const e = new
|
|
10363
|
+
const e = new te(
|
|
10270
10364
|
F.System,
|
|
10271
10365
|
{
|
|
10272
10366
|
name: ""
|
|
@@ -10281,7 +10375,7 @@ class Os extends xc {
|
|
|
10281
10375
|
}
|
|
10282
10376
|
showQuitConfirmDialog() {
|
|
10283
10377
|
var e;
|
|
10284
|
-
(e = this.quitConfirmDialogEntry) == null || e.remove(), this.quitConfirmDialogEntry = new
|
|
10378
|
+
(e = this.quitConfirmDialogEntry) == null || e.remove(), this.quitConfirmDialogEntry = new te(
|
|
10285
10379
|
F.System,
|
|
10286
10380
|
{
|
|
10287
10381
|
name: ""
|
|
@@ -10293,14 +10387,14 @@ class Os extends xc {
|
|
|
10293
10387
|
]
|
|
10294
10388
|
), this.printEntry(this.quitConfirmDialogEntry), this.quitConfirmDialogEntry.actions$.pipe(
|
|
10295
10389
|
W((t) => t.key === "quit-chat"),
|
|
10296
|
-
|
|
10390
|
+
me(1)
|
|
10297
10391
|
).subscribe((t) => {
|
|
10298
10392
|
var i, s, r, o;
|
|
10299
10393
|
((i = t.data) == null ? void 0 : i.result) === "quit" ? (this.endConversation(), (s = this.quitConfirmDialogEntry) == null || s.remove()) : ((r = t.data) == null ? void 0 : r.result) === "cancel" && ((o = this.quitConfirmDialogEntry) == null || o.remove());
|
|
10300
10394
|
});
|
|
10301
10395
|
}
|
|
10302
10396
|
showConversationEndedForm() {
|
|
10303
|
-
const e = new
|
|
10397
|
+
const e = new te(
|
|
10304
10398
|
F.System,
|
|
10305
10399
|
{
|
|
10306
10400
|
name: ""
|
|
@@ -10313,13 +10407,13 @@ class Os extends xc {
|
|
|
10313
10407
|
);
|
|
10314
10408
|
this.printEntry(e), e.actions$.pipe(
|
|
10315
10409
|
W((t) => t.key === "submitted"),
|
|
10316
|
-
|
|
10410
|
+
me(1)
|
|
10317
10411
|
).subscribe((t) => {
|
|
10318
10412
|
e.remove(), t.data.email && this.sendConversationEmail(t.data.email);
|
|
10319
10413
|
});
|
|
10320
10414
|
}
|
|
10321
10415
|
showVideoConfirmDialog() {
|
|
10322
|
-
this.videoConfirmDialogEntry = new
|
|
10416
|
+
this.videoConfirmDialogEntry = new te(
|
|
10323
10417
|
F.System,
|
|
10324
10418
|
{
|
|
10325
10419
|
name: ""
|
|
@@ -10331,7 +10425,7 @@ class Os extends xc {
|
|
|
10331
10425
|
]
|
|
10332
10426
|
), this.printEntry(this.videoConfirmDialogEntry), this.videoConfirmDialogEntry.actions$.pipe(
|
|
10333
10427
|
W((e) => e.key === "video-confirm"),
|
|
10334
|
-
|
|
10428
|
+
me(1)
|
|
10335
10429
|
).subscribe((e) => {
|
|
10336
10430
|
var t;
|
|
10337
10431
|
this.videoConfirmDialogEntry && this.videoConfirmDialogEntry.remove(), e.data.result === "declined" && (this.guestId = null), (t = this.engine) == null || t.videoPrepared(e.data.result), this.printSystem(e.data.text);
|
|
@@ -10348,11 +10442,11 @@ class Os extends xc {
|
|
|
10348
10442
|
}
|
|
10349
10443
|
// Function to log out the user and end any active chat session.
|
|
10350
10444
|
async logoutUser() {
|
|
10351
|
-
this.logoutConfirmDialogEntry && this.logoutConfirmDialogEntry.remove(), await this.engine.getChatStatus() === "noSession" ? (this.resetAuthState(
|
|
10445
|
+
this.component.setAuthenticationBannerStatus(ee.NonAuthenticated), this.logoutConfirmDialogEntry && this.logoutConfirmDialogEntry.remove(), await this.engine.getChatStatus() === "noSession" ? (this.resetAuthState(ee.NonAuthenticated), this.setSessionId(null), this.component.clearMessages(), this.shouldUseAuth && this.startAuthenticationFlow()) : this.endConversation();
|
|
10352
10446
|
}
|
|
10353
10447
|
showLogoutConfirmDialog() {
|
|
10354
10448
|
var e;
|
|
10355
|
-
(e = this.logoutConfirmDialogEntry) == null || e.remove(), this.logoutConfirmDialogEntry = new
|
|
10449
|
+
(e = this.logoutConfirmDialogEntry) == null || e.remove(), this.logoutConfirmDialogEntry = new te(
|
|
10356
10450
|
F.System,
|
|
10357
10451
|
{
|
|
10358
10452
|
name: ""
|
|
@@ -10364,7 +10458,7 @@ class Os extends xc {
|
|
|
10364
10458
|
]
|
|
10365
10459
|
), this.printEntry(this.logoutConfirmDialogEntry), this.logoutConfirmDialogEntry.actions$.pipe(
|
|
10366
10460
|
W((t) => t.key === "logout-chat"),
|
|
10367
|
-
|
|
10461
|
+
me(1)
|
|
10368
10462
|
).subscribe(async (t) => {
|
|
10369
10463
|
var i, s, r, o;
|
|
10370
10464
|
((i = t.data) == null ? void 0 : i.result) === "logout" ? (this.logoutUser(), (s = this.logoutConfirmDialogEntry) == null || s.remove()) : ((r = t.data) == null ? void 0 : r.result) === "cancel" && ((o = this.logoutConfirmDialogEntry) == null || o.remove());
|
|
@@ -10403,7 +10497,7 @@ class Os extends xc {
|
|
|
10403
10497
|
"Start new chat"
|
|
10404
10498
|
),
|
|
10405
10499
|
"start-new-chat-button",
|
|
10406
|
-
|
|
10500
|
+
oa.svg,
|
|
10407
10501
|
() => {
|
|
10408
10502
|
this.restartNewChat();
|
|
10409
10503
|
}
|