@telia-ace/widget-conversational-hub 1.1.123-rc.0 → 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 +276 -217
- package/index.mjs +1070 -983
- package/package.json +3 -3
package/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var _ = (n, e, t) =>
|
|
1
|
+
var _a = Object.defineProperty;
|
|
2
|
+
var Ea = (n, e, t) => e in n ? _a(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
|
|
3
|
+
var _ = (n, e, t) => Ea(n, typeof e != "symbol" ? e + "" : e, t);
|
|
4
4
|
class Ss {
|
|
5
5
|
constructor() {
|
|
6
6
|
this.registeredProviders = /* @__PURE__ */ new Map();
|
|
@@ -41,7 +41,7 @@ function at(n, e) {
|
|
|
41
41
|
}
|
|
42
42
|
n.prototype = e === null ? Object.create(e) : (t.prototype = e.prototype, new t());
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function Aa(n, e, t, s) {
|
|
45
45
|
function i(r) {
|
|
46
46
|
return r instanceof t ? r : new t(function(o) {
|
|
47
47
|
o(r);
|
|
@@ -163,7 +163,7 @@ function st(n, e, t) {
|
|
|
163
163
|
function Qe(n) {
|
|
164
164
|
return this instanceof Qe ? (this.v = n, this) : new Qe(n);
|
|
165
165
|
}
|
|
166
|
-
function
|
|
166
|
+
function Ca(n, e, t) {
|
|
167
167
|
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
168
168
|
var s = t.apply(n, e || []), i, r = [];
|
|
169
169
|
return i = Object.create((typeof AsyncIterator == "function" ? AsyncIterator : Object).prototype), a("next"), a("throw"), a("return", o), i[Symbol.asyncIterator] = function() {
|
|
@@ -176,8 +176,8 @@ function Ea(n, e, t) {
|
|
|
176
176
|
}
|
|
177
177
|
function a(g, m) {
|
|
178
178
|
s[g] && (i[g] = function(y) {
|
|
179
|
-
return new Promise(function(
|
|
180
|
-
r.push([g, y,
|
|
179
|
+
return new Promise(function(ue, ee) {
|
|
180
|
+
r.push([g, y, ue, ee]) > 1 || l(g, y);
|
|
181
181
|
});
|
|
182
182
|
}, m && (i[g] = m(i[g])));
|
|
183
183
|
}
|
|
@@ -201,7 +201,7 @@ function Ea(n, e, t) {
|
|
|
201
201
|
g(m), r.shift(), r.length && l(r[0][0], r[0][1]);
|
|
202
202
|
}
|
|
203
203
|
}
|
|
204
|
-
function
|
|
204
|
+
function Ta(n) {
|
|
205
205
|
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
206
206
|
var e = n[Symbol.asyncIterator], t;
|
|
207
207
|
return e ? e.call(n) : (n = typeof nt == "function" ? nt(n) : n[Symbol.iterator](), t = {}, s("next"), s("throw"), s("return"), t[Symbol.asyncIterator] = function() {
|
|
@@ -339,9 +339,9 @@ function Wr(n) {
|
|
|
339
339
|
function Di(n) {
|
|
340
340
|
E(n) ? n() : n.unsubscribe();
|
|
341
341
|
}
|
|
342
|
-
var
|
|
342
|
+
var La = {
|
|
343
343
|
Promise: void 0
|
|
344
|
-
},
|
|
344
|
+
}, Ra = {
|
|
345
345
|
setTimeout: function(n, e) {
|
|
346
346
|
for (var t = [], s = 2; s < arguments.length; s++)
|
|
347
347
|
t[s - 2] = arguments[s];
|
|
@@ -353,7 +353,7 @@ var Ca = {
|
|
|
353
353
|
delegate: void 0
|
|
354
354
|
};
|
|
355
355
|
function Gr(n) {
|
|
356
|
-
|
|
356
|
+
Ra.setTimeout(function() {
|
|
357
357
|
throw n;
|
|
358
358
|
});
|
|
359
359
|
}
|
|
@@ -366,7 +366,7 @@ var _s = (function(n) {
|
|
|
366
366
|
at(e, n);
|
|
367
367
|
function e(t) {
|
|
368
368
|
var s = n.call(this) || this;
|
|
369
|
-
return s.isStopped = !1, t ? (s.destination = t, Wr(t) && t.add(s)) : s.destination =
|
|
369
|
+
return s.isStopped = !1, t ? (s.destination = t, Wr(t) && t.add(s)) : s.destination = Ia, s;
|
|
370
370
|
}
|
|
371
371
|
return e.create = function(t, s, i) {
|
|
372
372
|
return new rs(t, s, i);
|
|
@@ -393,7 +393,7 @@ var _s = (function(n) {
|
|
|
393
393
|
this.unsubscribe();
|
|
394
394
|
}
|
|
395
395
|
}, e;
|
|
396
|
-
})(yn),
|
|
396
|
+
})(yn), Oa = (function() {
|
|
397
397
|
function n(e) {
|
|
398
398
|
this.partialObserver = e;
|
|
399
399
|
}
|
|
@@ -432,20 +432,20 @@ var _s = (function(n) {
|
|
|
432
432
|
next: t ?? void 0,
|
|
433
433
|
error: s ?? void 0,
|
|
434
434
|
complete: i ?? void 0
|
|
435
|
-
} : o = t, r.destination = new
|
|
435
|
+
} : o = t, r.destination = new Oa(o), r;
|
|
436
436
|
}
|
|
437
437
|
return e;
|
|
438
438
|
})(_s);
|
|
439
439
|
function Gt(n) {
|
|
440
440
|
Gr(n);
|
|
441
441
|
}
|
|
442
|
-
function
|
|
442
|
+
function Pa(n) {
|
|
443
443
|
throw n;
|
|
444
444
|
}
|
|
445
|
-
var
|
|
445
|
+
var Ia = {
|
|
446
446
|
closed: !0,
|
|
447
447
|
next: tn,
|
|
448
|
-
error:
|
|
448
|
+
error: Pa,
|
|
449
449
|
complete: tn
|
|
450
450
|
}, Es = (function() {
|
|
451
451
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
@@ -453,7 +453,7 @@ var Oa = {
|
|
|
453
453
|
function Ot(n) {
|
|
454
454
|
return n;
|
|
455
455
|
}
|
|
456
|
-
function
|
|
456
|
+
function Ma(n) {
|
|
457
457
|
return n.length === 0 ? Ot : n.length === 1 ? n[0] : function(t) {
|
|
458
458
|
return n.reduce(function(s, i) {
|
|
459
459
|
return i(s);
|
|
@@ -468,7 +468,7 @@ var X = (function() {
|
|
|
468
468
|
var t = new n();
|
|
469
469
|
return t.source = this, t.operator = e, t;
|
|
470
470
|
}, n.prototype.subscribe = function(e, t, s) {
|
|
471
|
-
var i = this, r =
|
|
471
|
+
var i = this, r = Da(e) ? e : new rs(e, t, s);
|
|
472
472
|
return Vt(function() {
|
|
473
473
|
var o = i, a = o.operator, l = o.source;
|
|
474
474
|
r.add(a ? a.call(r, l) : l ? i._subscribe(r) : i._trySubscribe(r));
|
|
@@ -503,7 +503,7 @@ var X = (function() {
|
|
|
503
503
|
}, n.prototype.pipe = function() {
|
|
504
504
|
for (var e = [], t = 0; t < arguments.length; t++)
|
|
505
505
|
e[t] = arguments[t];
|
|
506
|
-
return
|
|
506
|
+
return Ma(e)(this);
|
|
507
507
|
}, n.prototype.toPromise = function(e) {
|
|
508
508
|
var t = this;
|
|
509
509
|
return e = Ui(e), new e(function(s, i) {
|
|
@@ -522,20 +522,20 @@ var X = (function() {
|
|
|
522
522
|
})();
|
|
523
523
|
function Ui(n) {
|
|
524
524
|
var e;
|
|
525
|
-
return (e = n ??
|
|
525
|
+
return (e = n ?? La.Promise) !== null && e !== void 0 ? e : Promise;
|
|
526
526
|
}
|
|
527
|
-
function
|
|
527
|
+
function Na(n) {
|
|
528
528
|
return n && E(n.next) && E(n.error) && E(n.complete);
|
|
529
529
|
}
|
|
530
|
-
function
|
|
531
|
-
return n && n instanceof _s ||
|
|
530
|
+
function Da(n) {
|
|
531
|
+
return n && n instanceof _s || Na(n) && Wr(n);
|
|
532
532
|
}
|
|
533
|
-
function
|
|
533
|
+
function Ua(n) {
|
|
534
534
|
return E(n == null ? void 0 : n.lift);
|
|
535
535
|
}
|
|
536
|
-
function
|
|
536
|
+
function $e(n) {
|
|
537
537
|
return function(e) {
|
|
538
|
-
if (
|
|
538
|
+
if (Ua(e))
|
|
539
539
|
return e.lift(function(t) {
|
|
540
540
|
try {
|
|
541
541
|
return n(t, this);
|
|
@@ -546,10 +546,10 @@ function ye(n) {
|
|
|
546
546
|
throw new TypeError("Unable to lift unknown Observable type");
|
|
547
547
|
};
|
|
548
548
|
}
|
|
549
|
-
function
|
|
550
|
-
return new
|
|
549
|
+
function Q(n, e, t, s, i) {
|
|
550
|
+
return new za(n, e, t, s, i);
|
|
551
551
|
}
|
|
552
|
-
var
|
|
552
|
+
var za = (function(n) {
|
|
553
553
|
at(e, n);
|
|
554
554
|
function e(t, s, i, r, o, a) {
|
|
555
555
|
var l = n.call(this, t) || this;
|
|
@@ -584,7 +584,7 @@ var Da = (function(n) {
|
|
|
584
584
|
n.prototype.unsubscribe.call(this), !s && ((t = this.onFinalize) === null || t === void 0 || t.call(this));
|
|
585
585
|
}
|
|
586
586
|
}, e;
|
|
587
|
-
})(_s),
|
|
587
|
+
})(_s), Ba = jr(function(n) {
|
|
588
588
|
return function() {
|
|
589
589
|
n(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
590
590
|
};
|
|
@@ -599,7 +599,7 @@ var Da = (function(n) {
|
|
|
599
599
|
return s.operator = t, s;
|
|
600
600
|
}, e.prototype._throwIfClosed = function() {
|
|
601
601
|
if (this.closed)
|
|
602
|
-
throw new
|
|
602
|
+
throw new Ba();
|
|
603
603
|
}, e.prototype.next = function(t) {
|
|
604
604
|
var s = this;
|
|
605
605
|
Vt(function() {
|
|
@@ -712,7 +712,7 @@ var Da = (function(n) {
|
|
|
712
712
|
})(I), Pt = new X(function(n) {
|
|
713
713
|
return n.complete();
|
|
714
714
|
});
|
|
715
|
-
function
|
|
715
|
+
function Ha(n) {
|
|
716
716
|
return n && E(n.schedule);
|
|
717
717
|
}
|
|
718
718
|
function As(n) {
|
|
@@ -722,9 +722,9 @@ function Zr(n) {
|
|
|
722
722
|
return E(As(n)) ? n.pop() : void 0;
|
|
723
723
|
}
|
|
724
724
|
function Cs(n) {
|
|
725
|
-
return
|
|
725
|
+
return Ha(As(n)) ? n.pop() : void 0;
|
|
726
726
|
}
|
|
727
|
-
function
|
|
727
|
+
function Fa(n, e) {
|
|
728
728
|
return typeof As(n) == "number" ? n.pop() : e;
|
|
729
729
|
}
|
|
730
730
|
var Ts = (function(n) {
|
|
@@ -742,15 +742,15 @@ function Kr(n) {
|
|
|
742
742
|
function Vr(n) {
|
|
743
743
|
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.");
|
|
744
744
|
}
|
|
745
|
-
function
|
|
745
|
+
function ja() {
|
|
746
746
|
return typeof Symbol != "function" || !Symbol.iterator ? "@@iterator" : Symbol.iterator;
|
|
747
747
|
}
|
|
748
|
-
var Qr =
|
|
748
|
+
var Qr = ja();
|
|
749
749
|
function Jr(n) {
|
|
750
750
|
return E(n == null ? void 0 : n[Qr]);
|
|
751
751
|
}
|
|
752
752
|
function eo(n) {
|
|
753
|
-
return
|
|
753
|
+
return Ca(this, arguments, function() {
|
|
754
754
|
var t, s, i, r;
|
|
755
755
|
return Fr(this, function(o) {
|
|
756
756
|
switch (o.label) {
|
|
@@ -783,26 +783,26 @@ function eo(n) {
|
|
|
783
783
|
function to(n) {
|
|
784
784
|
return E(n == null ? void 0 : n.getReader);
|
|
785
785
|
}
|
|
786
|
-
function
|
|
786
|
+
function ce(n) {
|
|
787
787
|
if (n instanceof X)
|
|
788
788
|
return n;
|
|
789
789
|
if (n != null) {
|
|
790
790
|
if (Xr(n))
|
|
791
|
-
return
|
|
791
|
+
return qa(n);
|
|
792
792
|
if (Ts(n))
|
|
793
|
-
return
|
|
793
|
+
return Wa(n);
|
|
794
794
|
if (Yr(n))
|
|
795
|
-
return
|
|
795
|
+
return Ga(n);
|
|
796
796
|
if (Kr(n))
|
|
797
797
|
return no(n);
|
|
798
798
|
if (Jr(n))
|
|
799
|
-
return
|
|
799
|
+
return Za(n);
|
|
800
800
|
if (to(n))
|
|
801
|
-
return
|
|
801
|
+
return Ya(n);
|
|
802
802
|
}
|
|
803
803
|
throw Vr(n);
|
|
804
804
|
}
|
|
805
|
-
function
|
|
805
|
+
function qa(n) {
|
|
806
806
|
return new X(function(e) {
|
|
807
807
|
var t = n[Es]();
|
|
808
808
|
if (E(t.subscribe))
|
|
@@ -810,14 +810,14 @@ function Fa(n) {
|
|
|
810
810
|
throw new TypeError("Provided object does not correctly implement Symbol.observable");
|
|
811
811
|
});
|
|
812
812
|
}
|
|
813
|
-
function
|
|
813
|
+
function Wa(n) {
|
|
814
814
|
return new X(function(e) {
|
|
815
815
|
for (var t = 0; t < n.length && !e.closed; t++)
|
|
816
816
|
e.next(n[t]);
|
|
817
817
|
e.complete();
|
|
818
818
|
});
|
|
819
819
|
}
|
|
820
|
-
function
|
|
820
|
+
function Ga(n) {
|
|
821
821
|
return new X(function(e) {
|
|
822
822
|
n.then(function(t) {
|
|
823
823
|
e.closed || (e.next(t), e.complete());
|
|
@@ -826,7 +826,7 @@ function qa(n) {
|
|
|
826
826
|
}).then(null, Gr);
|
|
827
827
|
});
|
|
828
828
|
}
|
|
829
|
-
function
|
|
829
|
+
function Za(n) {
|
|
830
830
|
return new X(function(e) {
|
|
831
831
|
var t, s;
|
|
832
832
|
try {
|
|
@@ -849,22 +849,22 @@ function Wa(n) {
|
|
|
849
849
|
}
|
|
850
850
|
function no(n) {
|
|
851
851
|
return new X(function(e) {
|
|
852
|
-
|
|
852
|
+
Xa(n, e).catch(function(t) {
|
|
853
853
|
return e.error(t);
|
|
854
854
|
});
|
|
855
855
|
});
|
|
856
856
|
}
|
|
857
|
-
function
|
|
857
|
+
function Ya(n) {
|
|
858
858
|
return no(eo(n));
|
|
859
859
|
}
|
|
860
|
-
function
|
|
860
|
+
function Xa(n, e) {
|
|
861
861
|
var t, s, i, r;
|
|
862
|
-
return
|
|
862
|
+
return Aa(this, void 0, void 0, function() {
|
|
863
863
|
var o, a;
|
|
864
864
|
return Fr(this, function(l) {
|
|
865
865
|
switch (l.label) {
|
|
866
866
|
case 0:
|
|
867
|
-
l.trys.push([0, 5, 6, 11]), t =
|
|
867
|
+
l.trys.push([0, 5, 6, 11]), t = Ta(n), l.label = 1;
|
|
868
868
|
case 1:
|
|
869
869
|
return [4, t.next()];
|
|
870
870
|
case 2:
|
|
@@ -904,8 +904,8 @@ function ke(n, e, t, s, i) {
|
|
|
904
904
|
return r;
|
|
905
905
|
}
|
|
906
906
|
function so(n, e) {
|
|
907
|
-
return e === void 0 && (e = 0),
|
|
908
|
-
t.subscribe(
|
|
907
|
+
return e === void 0 && (e = 0), $e(function(t, s) {
|
|
908
|
+
t.subscribe(Q(s, function(i) {
|
|
909
909
|
return ke(s, n, function() {
|
|
910
910
|
return s.next(i);
|
|
911
911
|
}, e);
|
|
@@ -921,19 +921,19 @@ function so(n, e) {
|
|
|
921
921
|
});
|
|
922
922
|
}
|
|
923
923
|
function io(n, e) {
|
|
924
|
-
return e === void 0 && (e = 0),
|
|
924
|
+
return e === void 0 && (e = 0), $e(function(t, s) {
|
|
925
925
|
s.add(n.schedule(function() {
|
|
926
926
|
return t.subscribe(s);
|
|
927
927
|
}, e));
|
|
928
928
|
});
|
|
929
929
|
}
|
|
930
|
-
function
|
|
931
|
-
return
|
|
930
|
+
function Ka(n, e) {
|
|
931
|
+
return ce(n).pipe(io(e), so(e));
|
|
932
932
|
}
|
|
933
|
-
function
|
|
934
|
-
return
|
|
933
|
+
function Va(n, e) {
|
|
934
|
+
return ce(n).pipe(io(e), so(e));
|
|
935
935
|
}
|
|
936
|
-
function
|
|
936
|
+
function Qa(n, e) {
|
|
937
937
|
return new X(function(t) {
|
|
938
938
|
var s = 0;
|
|
939
939
|
return e.schedule(function() {
|
|
@@ -941,7 +941,7 @@ function Ka(n, e) {
|
|
|
941
941
|
});
|
|
942
942
|
});
|
|
943
943
|
}
|
|
944
|
-
function
|
|
944
|
+
function Ja(n, e) {
|
|
945
945
|
return new X(function(t) {
|
|
946
946
|
var s;
|
|
947
947
|
return ke(t, e, function() {
|
|
@@ -974,28 +974,28 @@ function ro(n, e) {
|
|
|
974
974
|
});
|
|
975
975
|
});
|
|
976
976
|
}
|
|
977
|
-
function
|
|
977
|
+
function el(n, e) {
|
|
978
978
|
return ro(eo(n), e);
|
|
979
979
|
}
|
|
980
|
-
function
|
|
980
|
+
function tl(n, e) {
|
|
981
981
|
if (n != null) {
|
|
982
982
|
if (Xr(n))
|
|
983
|
-
return Ya(n, e);
|
|
984
|
-
if (Ts(n))
|
|
985
983
|
return Ka(n, e);
|
|
984
|
+
if (Ts(n))
|
|
985
|
+
return Qa(n, e);
|
|
986
986
|
if (Yr(n))
|
|
987
|
-
return
|
|
987
|
+
return Va(n, e);
|
|
988
988
|
if (Kr(n))
|
|
989
989
|
return ro(n, e);
|
|
990
990
|
if (Jr(n))
|
|
991
|
-
return
|
|
991
|
+
return Ja(n, e);
|
|
992
992
|
if (to(n))
|
|
993
|
-
return
|
|
993
|
+
return el(n, e);
|
|
994
994
|
}
|
|
995
995
|
throw Vr(n);
|
|
996
996
|
}
|
|
997
997
|
function $n(n, e) {
|
|
998
|
-
return e ?
|
|
998
|
+
return e ? tl(n, e) : ce(n);
|
|
999
999
|
}
|
|
1000
1000
|
function os() {
|
|
1001
1001
|
for (var n = [], e = 0; e < arguments.length; e++)
|
|
@@ -1004,30 +1004,30 @@ function os() {
|
|
|
1004
1004
|
return $n(n, t);
|
|
1005
1005
|
}
|
|
1006
1006
|
function nn(n, e) {
|
|
1007
|
-
return
|
|
1007
|
+
return $e(function(t, s) {
|
|
1008
1008
|
var i = 0;
|
|
1009
|
-
t.subscribe(
|
|
1009
|
+
t.subscribe(Q(s, function(r) {
|
|
1010
1010
|
s.next(n.call(e, r, i++));
|
|
1011
1011
|
}));
|
|
1012
1012
|
});
|
|
1013
1013
|
}
|
|
1014
|
-
var
|
|
1015
|
-
function
|
|
1016
|
-
return
|
|
1014
|
+
var nl = Array.isArray;
|
|
1015
|
+
function sl(n, e) {
|
|
1016
|
+
return nl(e) ? n.apply(void 0, st([], Ne(e))) : n(e);
|
|
1017
1017
|
}
|
|
1018
1018
|
function oo(n) {
|
|
1019
1019
|
return nn(function(e) {
|
|
1020
|
-
return
|
|
1020
|
+
return sl(n, e);
|
|
1021
1021
|
});
|
|
1022
1022
|
}
|
|
1023
|
-
var
|
|
1024
|
-
function
|
|
1023
|
+
var il = Array.isArray, rl = Object.getPrototypeOf, ol = Object.prototype, al = Object.keys;
|
|
1024
|
+
function ll(n) {
|
|
1025
1025
|
if (n.length === 1) {
|
|
1026
1026
|
var e = n[0];
|
|
1027
|
-
if (
|
|
1027
|
+
if (il(e))
|
|
1028
1028
|
return { args: e, keys: null };
|
|
1029
|
-
if (
|
|
1030
|
-
var t =
|
|
1029
|
+
if (cl(e)) {
|
|
1030
|
+
var t = al(e);
|
|
1031
1031
|
return {
|
|
1032
1032
|
args: t.map(function(s) {
|
|
1033
1033
|
return e[s];
|
|
@@ -1038,32 +1038,32 @@ function ol(n) {
|
|
|
1038
1038
|
}
|
|
1039
1039
|
return { args: n, keys: null };
|
|
1040
1040
|
}
|
|
1041
|
-
function
|
|
1042
|
-
return n && typeof n == "object" &&
|
|
1041
|
+
function cl(n) {
|
|
1042
|
+
return n && typeof n == "object" && rl(n) === ol;
|
|
1043
1043
|
}
|
|
1044
|
-
function
|
|
1044
|
+
function ul(n, e) {
|
|
1045
1045
|
return n.reduce(function(t, s, i) {
|
|
1046
1046
|
return t[s] = e[i], t;
|
|
1047
1047
|
}, {});
|
|
1048
1048
|
}
|
|
1049
|
-
function
|
|
1049
|
+
function hl() {
|
|
1050
1050
|
for (var n = [], e = 0; e < arguments.length; e++)
|
|
1051
1051
|
n[e] = arguments[e];
|
|
1052
|
-
var t = Cs(n), s = Zr(n), i =
|
|
1052
|
+
var t = Cs(n), s = Zr(n), i = ll(n), r = i.args, o = i.keys;
|
|
1053
1053
|
if (r.length === 0)
|
|
1054
1054
|
return $n([], t);
|
|
1055
|
-
var a = new X(
|
|
1056
|
-
return
|
|
1055
|
+
var a = new X(dl(r, t, o ? function(l) {
|
|
1056
|
+
return ul(o, l);
|
|
1057
1057
|
} : Ot));
|
|
1058
1058
|
return s ? a.pipe(oo(s)) : a;
|
|
1059
1059
|
}
|
|
1060
|
-
function
|
|
1060
|
+
function dl(n, e, t) {
|
|
1061
1061
|
return t === void 0 && (t = Ot), function(s) {
|
|
1062
|
-
|
|
1062
|
+
Bi(e, function() {
|
|
1063
1063
|
for (var i = n.length, r = new Array(i), o = i, a = i, l = function(u) {
|
|
1064
|
-
|
|
1064
|
+
Bi(e, function() {
|
|
1065
1065
|
var p = $n(n[u], e), d = !1;
|
|
1066
|
-
p.subscribe(
|
|
1066
|
+
p.subscribe(Q(s, function(g) {
|
|
1067
1067
|
r[u] = g, d || (d = !0, a--), a || s.next(t(r.slice()));
|
|
1068
1068
|
}, function() {
|
|
1069
1069
|
--o || s.complete();
|
|
@@ -1074,66 +1074,66 @@ function ul(n, e, t) {
|
|
|
1074
1074
|
}, s);
|
|
1075
1075
|
};
|
|
1076
1076
|
}
|
|
1077
|
-
function
|
|
1077
|
+
function Bi(n, e, t) {
|
|
1078
1078
|
n ? ke(t, n, e) : e();
|
|
1079
1079
|
}
|
|
1080
|
-
function
|
|
1080
|
+
function pl(n, e, t, s, i, r, o, a) {
|
|
1081
1081
|
var l = [], c = 0, u = 0, p = !1, d = function() {
|
|
1082
1082
|
p && !l.length && !c && e.complete();
|
|
1083
1083
|
}, g = function(y) {
|
|
1084
1084
|
return c < s ? m(y) : l.push(y);
|
|
1085
1085
|
}, m = function(y) {
|
|
1086
1086
|
c++;
|
|
1087
|
-
var
|
|
1088
|
-
|
|
1089
|
-
e.next(
|
|
1087
|
+
var ue = !1;
|
|
1088
|
+
ce(t(y, u++)).subscribe(Q(e, function(ee) {
|
|
1089
|
+
e.next(ee);
|
|
1090
1090
|
}, function() {
|
|
1091
|
-
|
|
1091
|
+
ue = !0;
|
|
1092
1092
|
}, void 0, function() {
|
|
1093
|
-
if (
|
|
1093
|
+
if (ue)
|
|
1094
1094
|
try {
|
|
1095
1095
|
c--;
|
|
1096
|
-
for (var
|
|
1096
|
+
for (var ee = function() {
|
|
1097
1097
|
var xe = l.shift();
|
|
1098
1098
|
o || m(xe);
|
|
1099
1099
|
}; l.length && c < s; )
|
|
1100
|
-
|
|
1100
|
+
ee();
|
|
1101
1101
|
d();
|
|
1102
1102
|
} catch (xe) {
|
|
1103
1103
|
e.error(xe);
|
|
1104
1104
|
}
|
|
1105
1105
|
}));
|
|
1106
1106
|
};
|
|
1107
|
-
return n.subscribe(
|
|
1107
|
+
return n.subscribe(Q(e, g, function() {
|
|
1108
1108
|
p = !0, d();
|
|
1109
1109
|
})), function() {
|
|
1110
1110
|
};
|
|
1111
1111
|
}
|
|
1112
|
-
function
|
|
1113
|
-
return t === void 0 && (t = 1 / 0), E(e) ?
|
|
1112
|
+
function Ls(n, e, t) {
|
|
1113
|
+
return t === void 0 && (t = 1 / 0), E(e) ? Ls(function(s, i) {
|
|
1114
1114
|
return nn(function(r, o) {
|
|
1115
1115
|
return e(s, r, i, o);
|
|
1116
|
-
})(
|
|
1117
|
-
}, t) : (typeof e == "number" && (t = e),
|
|
1118
|
-
return
|
|
1116
|
+
})(ce(n(s, i)));
|
|
1117
|
+
}, t) : (typeof e == "number" && (t = e), $e(function(s, i) {
|
|
1118
|
+
return pl(s, i, n, t);
|
|
1119
1119
|
}));
|
|
1120
1120
|
}
|
|
1121
|
-
function
|
|
1122
|
-
return n === void 0 && (n = 1 / 0),
|
|
1121
|
+
function fl(n) {
|
|
1122
|
+
return n === void 0 && (n = 1 / 0), Ls(Ot, n);
|
|
1123
1123
|
}
|
|
1124
|
-
var
|
|
1124
|
+
var gl = ["addListener", "removeListener"], ml = ["addEventListener", "removeEventListener"], vl = ["on", "off"];
|
|
1125
1125
|
function sn(n, e, t, s) {
|
|
1126
1126
|
if (E(t) && (s = t, t = void 0), s)
|
|
1127
1127
|
return sn(n, e, t).pipe(oo(s));
|
|
1128
|
-
var i = Ne(
|
|
1128
|
+
var i = Ne($l(n) ? ml.map(function(a) {
|
|
1129
1129
|
return function(l) {
|
|
1130
1130
|
return n[a](e, l, t);
|
|
1131
1131
|
};
|
|
1132
|
-
}) :
|
|
1132
|
+
}) : bl(n) ? gl.map(Hi(n, e)) : yl(n) ? vl.map(Hi(n, e)) : [], 2), r = i[0], o = i[1];
|
|
1133
1133
|
if (!r && Ts(n))
|
|
1134
|
-
return
|
|
1134
|
+
return Ls(function(a) {
|
|
1135
1135
|
return sn(a, e, t);
|
|
1136
|
-
})(
|
|
1136
|
+
})(ce(n));
|
|
1137
1137
|
if (!r)
|
|
1138
1138
|
throw new TypeError("Invalid event target");
|
|
1139
1139
|
return new X(function(a) {
|
|
@@ -1147,32 +1147,32 @@ function sn(n, e, t, s) {
|
|
|
1147
1147
|
};
|
|
1148
1148
|
});
|
|
1149
1149
|
}
|
|
1150
|
-
function
|
|
1150
|
+
function Hi(n, e) {
|
|
1151
1151
|
return function(t) {
|
|
1152
1152
|
return function(s) {
|
|
1153
1153
|
return n[t](e, s);
|
|
1154
1154
|
};
|
|
1155
1155
|
};
|
|
1156
1156
|
}
|
|
1157
|
-
function
|
|
1157
|
+
function bl(n) {
|
|
1158
1158
|
return E(n.addListener) && E(n.removeListener);
|
|
1159
1159
|
}
|
|
1160
|
-
function
|
|
1160
|
+
function yl(n) {
|
|
1161
1161
|
return E(n.on) && E(n.off);
|
|
1162
1162
|
}
|
|
1163
|
-
function
|
|
1163
|
+
function $l(n) {
|
|
1164
1164
|
return E(n.addEventListener) && E(n.removeEventListener);
|
|
1165
1165
|
}
|
|
1166
|
-
function
|
|
1166
|
+
function xl() {
|
|
1167
1167
|
for (var n = [], e = 0; e < arguments.length; e++)
|
|
1168
1168
|
n[e] = arguments[e];
|
|
1169
|
-
var t = Cs(n), s =
|
|
1170
|
-
return i.length ? i.length === 1 ?
|
|
1169
|
+
var t = Cs(n), s = Fa(n, 1 / 0), i = n;
|
|
1170
|
+
return i.length ? i.length === 1 ? ce(i[0]) : fl(s)($n(i, t)) : Pt;
|
|
1171
1171
|
}
|
|
1172
|
-
function
|
|
1173
|
-
return
|
|
1172
|
+
function wl(n, e) {
|
|
1173
|
+
return $e(function(t, s) {
|
|
1174
1174
|
var i = 0;
|
|
1175
|
-
t.subscribe(
|
|
1175
|
+
t.subscribe(Q(s, function(r) {
|
|
1176
1176
|
return n.call(e, r, i++) && s.next(r);
|
|
1177
1177
|
}));
|
|
1178
1178
|
});
|
|
@@ -1180,22 +1180,22 @@ function $l(n, e) {
|
|
|
1180
1180
|
function Ie(n) {
|
|
1181
1181
|
return n <= 0 ? function() {
|
|
1182
1182
|
return Pt;
|
|
1183
|
-
} :
|
|
1183
|
+
} : $e(function(e, t) {
|
|
1184
1184
|
var s = 0;
|
|
1185
|
-
e.subscribe(
|
|
1185
|
+
e.subscribe(Q(t, function(i) {
|
|
1186
1186
|
++s <= n && (t.next(i), n <= s && t.complete());
|
|
1187
1187
|
}));
|
|
1188
1188
|
});
|
|
1189
1189
|
}
|
|
1190
1190
|
function Je(n, e) {
|
|
1191
|
-
return
|
|
1191
|
+
return $e(function(t, s) {
|
|
1192
1192
|
var i = null, r = 0, o = !1, a = function() {
|
|
1193
1193
|
return o && !i && s.complete();
|
|
1194
1194
|
};
|
|
1195
|
-
t.subscribe(
|
|
1195
|
+
t.subscribe(Q(s, function(l) {
|
|
1196
1196
|
i == null || i.unsubscribe();
|
|
1197
1197
|
var c = 0, u = r++;
|
|
1198
|
-
|
|
1198
|
+
ce(n(l, u)).subscribe(i = Q(s, function(p) {
|
|
1199
1199
|
return s.next(e ? e(l, p, u, c++) : p);
|
|
1200
1200
|
}, function() {
|
|
1201
1201
|
i = null, a();
|
|
@@ -1206,8 +1206,8 @@ function Je(n, e) {
|
|
|
1206
1206
|
});
|
|
1207
1207
|
}
|
|
1208
1208
|
function as(n) {
|
|
1209
|
-
return
|
|
1210
|
-
|
|
1209
|
+
return $e(function(e, t) {
|
|
1210
|
+
ce(n).subscribe(Q(t, function() {
|
|
1211
1211
|
return t.complete();
|
|
1212
1212
|
}, tn)), !t.closed && e.subscribe(t);
|
|
1213
1213
|
});
|
|
@@ -1216,16 +1216,16 @@ function ls() {
|
|
|
1216
1216
|
for (var n = [], e = 0; e < arguments.length; e++)
|
|
1217
1217
|
n[e] = arguments[e];
|
|
1218
1218
|
var t = Zr(n);
|
|
1219
|
-
return
|
|
1219
|
+
return $e(function(s, i) {
|
|
1220
1220
|
for (var r = n.length, o = new Array(r), a = n.map(function() {
|
|
1221
1221
|
return !1;
|
|
1222
1222
|
}), l = !1, c = function(p) {
|
|
1223
|
-
|
|
1223
|
+
ce(n[p]).subscribe(Q(i, function(d) {
|
|
1224
1224
|
o[p] = d, !l && !a[p] && (a[p] = !0, (l = a.every(Ot)) && (a = null));
|
|
1225
1225
|
}, tn));
|
|
1226
1226
|
}, u = 0; u < r; u++)
|
|
1227
1227
|
c(u);
|
|
1228
|
-
s.subscribe(
|
|
1228
|
+
s.subscribe(Q(i, function(p) {
|
|
1229
1229
|
if (l) {
|
|
1230
1230
|
var d = st([p], Ne(o));
|
|
1231
1231
|
i.next(t ? t.apply(void 0, st([], Ne(d))) : d);
|
|
@@ -1233,11 +1233,11 @@ function ls() {
|
|
|
1233
1233
|
}));
|
|
1234
1234
|
});
|
|
1235
1235
|
}
|
|
1236
|
-
var
|
|
1237
|
-
const
|
|
1236
|
+
var be = /* @__PURE__ */ ((n) => (n.User = "user", n.Agent = "agent", n.System = "system", n))(be || {});
|
|
1237
|
+
const kl = () => "10000000-1000-4000-8000-100000000000".replace(
|
|
1238
1238
|
/[018]/g,
|
|
1239
1239
|
(n) => (+n ^ crypto.getRandomValues(new Uint8Array(1))[0] & 15 >> +n / 4).toString(16)
|
|
1240
|
-
), ao = () => typeof crypto.randomUUID == "function" ? crypto.randomUUID() :
|
|
1240
|
+
), ao = () => typeof crypto.randomUUID == "function" ? crypto.randomUUID() : kl();
|
|
1241
1241
|
function Fi(n) {
|
|
1242
1242
|
let e = n;
|
|
1243
1243
|
const t = /https?:\/\/[^\s<]+/gi, s = /<a [^>]*href="([^"]*)"[^>]*>[^<]*<\/a>/g, i = n.match(t) || [], r = [];
|
|
@@ -1260,7 +1260,7 @@ function Fi(n) {
|
|
|
1260
1260
|
}
|
|
1261
1261
|
function cs(n) {
|
|
1262
1262
|
if (n.includes("aceChatGuideTitle"))
|
|
1263
|
-
return
|
|
1263
|
+
return Sl(n);
|
|
1264
1264
|
const e = /<a [^>]*>https?:\/\/[^<]*<\/a>/gim;
|
|
1265
1265
|
return n.replace(e, (t) => {
|
|
1266
1266
|
const s = lo(t);
|
|
@@ -1294,7 +1294,7 @@ function lo(n) {
|
|
|
1294
1294
|
function us(n, e) {
|
|
1295
1295
|
return n.replace(/>[^<]*<\/a>/, `>${e}</a>`);
|
|
1296
1296
|
}
|
|
1297
|
-
function
|
|
1297
|
+
function Sl(n) {
|
|
1298
1298
|
const e = /<a [^>]*aceChatGuideTitle[^>]*>[^<]*<\/a>/gm;
|
|
1299
1299
|
return n.replace(e, (t) => {
|
|
1300
1300
|
const s = lo(t);
|
|
@@ -1322,13 +1322,13 @@ class It {
|
|
|
1322
1322
|
this.remove$.next();
|
|
1323
1323
|
}
|
|
1324
1324
|
}
|
|
1325
|
-
class
|
|
1325
|
+
class _l {
|
|
1326
1326
|
constructor(e) {
|
|
1327
1327
|
this.name = e, this.print$ = new I();
|
|
1328
1328
|
}
|
|
1329
1329
|
print(e, t = "html", s = this.name) {
|
|
1330
1330
|
const i = new It(
|
|
1331
|
-
|
|
1331
|
+
be.Agent,
|
|
1332
1332
|
{ name: s },
|
|
1333
1333
|
[
|
|
1334
1334
|
{
|
|
@@ -1342,13 +1342,13 @@ class kl {
|
|
|
1342
1342
|
return this.print$.asObservable();
|
|
1343
1343
|
}
|
|
1344
1344
|
}
|
|
1345
|
-
class
|
|
1345
|
+
class El {
|
|
1346
1346
|
constructor(e) {
|
|
1347
1347
|
this.name = e, this.print$ = new I();
|
|
1348
1348
|
}
|
|
1349
1349
|
print(e) {
|
|
1350
1350
|
const t = new It(
|
|
1351
|
-
|
|
1351
|
+
be.User,
|
|
1352
1352
|
{ name: this.name },
|
|
1353
1353
|
[
|
|
1354
1354
|
{
|
|
@@ -1362,13 +1362,13 @@ class Sl {
|
|
|
1362
1362
|
return this.print$.asObservable();
|
|
1363
1363
|
}
|
|
1364
1364
|
}
|
|
1365
|
-
class
|
|
1365
|
+
class Al {
|
|
1366
1366
|
constructor() {
|
|
1367
1367
|
this.print$ = new I(), this.name = "system";
|
|
1368
1368
|
}
|
|
1369
1369
|
print(e) {
|
|
1370
1370
|
const t = new It(
|
|
1371
|
-
|
|
1371
|
+
be.System,
|
|
1372
1372
|
{ name: this.name },
|
|
1373
1373
|
[
|
|
1374
1374
|
{
|
|
@@ -1382,7 +1382,7 @@ class _l {
|
|
|
1382
1382
|
return this.print$.asObservable();
|
|
1383
1383
|
}
|
|
1384
1384
|
}
|
|
1385
|
-
class
|
|
1385
|
+
class Cl {
|
|
1386
1386
|
constructor(e, t) {
|
|
1387
1387
|
this.name = e, this.component = t, this.print$ = new I(), this.typingState$ = new F(!1), this.complete$ = new I(), this.system = this.createSystem(), this.rehydrate$ = new I(), this.saveToCurrentSession$ = new I(), this.showChatOverlay$ = new F(!1), this.onComplete = () => this.complete$.asObservable();
|
|
1388
1388
|
}
|
|
@@ -1396,7 +1396,7 @@ class El {
|
|
|
1396
1396
|
disconnected() {
|
|
1397
1397
|
}
|
|
1398
1398
|
onUserSubmit(e) {
|
|
1399
|
-
this.print(
|
|
1399
|
+
this.print(be.User, e.text);
|
|
1400
1400
|
}
|
|
1401
1401
|
print(e, t) {
|
|
1402
1402
|
const s = new It(
|
|
@@ -1416,19 +1416,19 @@ class El {
|
|
|
1416
1416
|
return this.print$.next(e), e;
|
|
1417
1417
|
}
|
|
1418
1418
|
createAgent(e) {
|
|
1419
|
-
const t = new
|
|
1419
|
+
const t = new _l(e);
|
|
1420
1420
|
return t.subscribe().subscribe((s) => {
|
|
1421
1421
|
this.playNotification(), this.printEntry(s);
|
|
1422
1422
|
}), t;
|
|
1423
1423
|
}
|
|
1424
1424
|
createUser(e) {
|
|
1425
|
-
const t = new
|
|
1425
|
+
const t = new El(e);
|
|
1426
1426
|
return t.subscribe().subscribe((s) => {
|
|
1427
1427
|
this.printEntry(s);
|
|
1428
1428
|
}), t;
|
|
1429
1429
|
}
|
|
1430
1430
|
createSystem() {
|
|
1431
|
-
const e = new
|
|
1431
|
+
const e = new Al();
|
|
1432
1432
|
return e.subscribe().subscribe((t) => {
|
|
1433
1433
|
this.printEntry(t);
|
|
1434
1434
|
}), e;
|
|
@@ -1464,7 +1464,7 @@ class El {
|
|
|
1464
1464
|
* Copyright 2019 Google LLC
|
|
1465
1465
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1466
1466
|
*/
|
|
1467
|
-
const Qt = globalThis,
|
|
1467
|
+
const Qt = globalThis, Rs = Qt.ShadowRoot && (Qt.ShadyCSS === void 0 || Qt.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Os = Symbol(), ji = /* @__PURE__ */ new WeakMap();
|
|
1468
1468
|
let co = class {
|
|
1469
1469
|
constructor(e, t, s) {
|
|
1470
1470
|
if (this._$cssResult$ = !0, s !== Os) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
@@ -1473,7 +1473,7 @@ let co = class {
|
|
|
1473
1473
|
get styleSheet() {
|
|
1474
1474
|
let e = this.o;
|
|
1475
1475
|
const t = this.t;
|
|
1476
|
-
if (
|
|
1476
|
+
if (Rs && e === void 0) {
|
|
1477
1477
|
const s = t !== void 0 && t.length === 1;
|
|
1478
1478
|
s && (e = ji.get(t)), e === void 0 && ((this.o = e = new CSSStyleSheet()).replaceSync(this.cssText), s && ji.set(t, e));
|
|
1479
1479
|
}
|
|
@@ -1483,33 +1483,33 @@ let co = class {
|
|
|
1483
1483
|
return this.cssText;
|
|
1484
1484
|
}
|
|
1485
1485
|
};
|
|
1486
|
-
const
|
|
1486
|
+
const Tl = (n) => new co(typeof n == "string" ? n : n + "", void 0, Os), Z = (n, ...e) => {
|
|
1487
1487
|
const t = n.length === 1 ? n[0] : e.reduce(((s, i, r) => s + ((o) => {
|
|
1488
1488
|
if (o._$cssResult$ === !0) return o.cssText;
|
|
1489
1489
|
if (typeof o == "number") return o;
|
|
1490
1490
|
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.");
|
|
1491
1491
|
})(i) + n[r + 1]), n[0]);
|
|
1492
1492
|
return new co(t, n, Os);
|
|
1493
|
-
},
|
|
1494
|
-
if (
|
|
1493
|
+
}, Ll = (n, e) => {
|
|
1494
|
+
if (Rs) n.adoptedStyleSheets = e.map(((t) => t instanceof CSSStyleSheet ? t : t.styleSheet));
|
|
1495
1495
|
else for (const t of e) {
|
|
1496
1496
|
const s = document.createElement("style"), i = Qt.litNonce;
|
|
1497
1497
|
i !== void 0 && s.setAttribute("nonce", i), s.textContent = t.cssText, n.appendChild(s);
|
|
1498
1498
|
}
|
|
1499
|
-
}, qi =
|
|
1499
|
+
}, qi = Rs ? (n) => n : (n) => n instanceof CSSStyleSheet ? ((e) => {
|
|
1500
1500
|
let t = "";
|
|
1501
1501
|
for (const s of e.cssRules) t += s.cssText;
|
|
1502
|
-
return
|
|
1502
|
+
return Tl(t);
|
|
1503
1503
|
})(n) : n;
|
|
1504
1504
|
/**
|
|
1505
1505
|
* @license
|
|
1506
1506
|
* Copyright 2017 Google LLC
|
|
1507
1507
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1508
1508
|
*/
|
|
1509
|
-
const { is:
|
|
1509
|
+
const { is: Rl, defineProperty: Ol, getOwnPropertyDescriptor: Pl, getOwnPropertyNames: Il, getOwnPropertySymbols: Ml, getPrototypeOf: Nl } = Object, Se = globalThis, Wi = Se.trustedTypes, Dl = Wi ? Wi.emptyScript : "", qn = Se.reactiveElementPolyfillSupport, $t = (n, e) => n, rn = { toAttribute(n, e) {
|
|
1510
1510
|
switch (e) {
|
|
1511
1511
|
case Boolean:
|
|
1512
|
-
n = n ?
|
|
1512
|
+
n = n ? Dl : null;
|
|
1513
1513
|
break;
|
|
1514
1514
|
case Object:
|
|
1515
1515
|
case Array:
|
|
@@ -1534,7 +1534,7 @@ const { is: Tl, defineProperty: Rl, getOwnPropertyDescriptor: Ll, getOwnProperty
|
|
|
1534
1534
|
}
|
|
1535
1535
|
}
|
|
1536
1536
|
return t;
|
|
1537
|
-
} }, Ps = (n, e) => !
|
|
1537
|
+
} }, Ps = (n, e) => !Rl(n, e), Gi = { attribute: !0, type: String, converter: rn, reflect: !1, useDefault: !1, hasChanged: Ps };
|
|
1538
1538
|
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), Se.litPropertyMetadata ?? (Se.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
1539
1539
|
let Ye = class extends HTMLElement {
|
|
1540
1540
|
static addInitializer(e) {
|
|
@@ -1546,11 +1546,11 @@ let Ye = class extends HTMLElement {
|
|
|
1546
1546
|
static createProperty(e, t = Gi) {
|
|
1547
1547
|
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) {
|
|
1548
1548
|
const s = Symbol(), i = this.getPropertyDescriptor(e, s, t);
|
|
1549
|
-
i !== void 0 &&
|
|
1549
|
+
i !== void 0 && Ol(this.prototype, e, i);
|
|
1550
1550
|
}
|
|
1551
1551
|
}
|
|
1552
1552
|
static getPropertyDescriptor(e, t, s) {
|
|
1553
|
-
const { get: i, set: r } =
|
|
1553
|
+
const { get: i, set: r } = Pl(this.prototype, e) ?? { get() {
|
|
1554
1554
|
return this[t];
|
|
1555
1555
|
}, set(o) {
|
|
1556
1556
|
this[t] = o;
|
|
@@ -1565,13 +1565,13 @@ let Ye = class extends HTMLElement {
|
|
|
1565
1565
|
}
|
|
1566
1566
|
static _$Ei() {
|
|
1567
1567
|
if (this.hasOwnProperty($t("elementProperties"))) return;
|
|
1568
|
-
const e =
|
|
1568
|
+
const e = Nl(this);
|
|
1569
1569
|
e.finalize(), e.l !== void 0 && (this.l = [...e.l]), this.elementProperties = new Map(e.elementProperties);
|
|
1570
1570
|
}
|
|
1571
1571
|
static finalize() {
|
|
1572
1572
|
if (this.hasOwnProperty($t("finalized"))) return;
|
|
1573
1573
|
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty($t("properties"))) {
|
|
1574
|
-
const t = this.properties, s = [...
|
|
1574
|
+
const t = this.properties, s = [...Il(t), ...Ml(t)];
|
|
1575
1575
|
for (const i of s) this.createProperty(i, t[i]);
|
|
1576
1576
|
}
|
|
1577
1577
|
const e = this[Symbol.metadata];
|
|
@@ -1620,7 +1620,7 @@ let Ye = class extends HTMLElement {
|
|
|
1620
1620
|
}
|
|
1621
1621
|
createRenderRoot() {
|
|
1622
1622
|
const e = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
1623
|
-
return
|
|
1623
|
+
return Ll(e, this.constructor.elementStyles), e;
|
|
1624
1624
|
}
|
|
1625
1625
|
connectedCallback() {
|
|
1626
1626
|
var e;
|
|
@@ -1745,22 +1745,22 @@ Ye.elementStyles = [], Ye.shadowRootOptions = { mode: "open" }, Ye[$t("elementPr
|
|
|
1745
1745
|
* Copyright 2017 Google LLC
|
|
1746
1746
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1747
1747
|
*/
|
|
1748
|
-
const xt = globalThis, on = xt.trustedTypes, Zi = on ? on.createPolicy("lit-html", { createHTML: (n) => n }) : void 0, uo = "$lit$", we = `lit$${Math.random().toFixed(9).slice(2)}$`, ho = "?" + we,
|
|
1749
|
-
\f\r]`, dt = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Yi = /-->/g, Xi = />/g,
|
|
1750
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), Ki = /'/g, Vi = /"/g, po = /^(?:script|style|textarea|title)$/i,
|
|
1748
|
+
const xt = globalThis, on = xt.trustedTypes, Zi = on ? on.createPolicy("lit-html", { createHTML: (n) => n }) : void 0, uo = "$lit$", we = `lit$${Math.random().toFixed(9).slice(2)}$`, ho = "?" + we, Ul = `<${ho}>`, De = document, St = () => De.createComment(""), _t = (n) => n === null || typeof n != "object" && typeof n != "function", Is = Array.isArray, zl = (n) => Is(n) || typeof (n == null ? void 0 : n[Symbol.iterator]) == "function", Wn = `[
|
|
1749
|
+
\f\r]`, dt = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Yi = /-->/g, Xi = />/g, Re = RegExp(`>|${Wn}(?:([^\\s"'>=/]+)(${Wn}*=${Wn}*(?:[^
|
|
1750
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), Ki = /'/g, Vi = /"/g, po = /^(?:script|style|textarea|title)$/i, Bl = (n) => (e, ...t) => ({ _$litType$: n, strings: e, values: t }), w = Bl(1), _e = Symbol.for("lit-noChange"), $ = Symbol.for("lit-nothing"), Qi = /* @__PURE__ */ new WeakMap(), Pe = De.createTreeWalker(De, 129);
|
|
1751
1751
|
function fo(n, e) {
|
|
1752
1752
|
if (!Is(n) || !n.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
1753
1753
|
return Zi !== void 0 ? Zi.createHTML(e) : e;
|
|
1754
1754
|
}
|
|
1755
|
-
const
|
|
1755
|
+
const Hl = (n, e) => {
|
|
1756
1756
|
const t = n.length - 1, s = [];
|
|
1757
1757
|
let i, r = e === 2 ? "<svg>" : e === 3 ? "<math>" : "", o = dt;
|
|
1758
1758
|
for (let a = 0; a < t; a++) {
|
|
1759
1759
|
const l = n[a];
|
|
1760
1760
|
let c, u, p = -1, d = 0;
|
|
1761
|
-
for (; d < l.length && (o.lastIndex = d, u = o.exec(l), u !== null); ) d = o.lastIndex, o === dt ? u[1] === "!--" ? o = Yi : u[1] !== void 0 ? o = Xi : u[2] !== void 0 ? (po.test(u[2]) && (i = RegExp("</" + u[2], "g")), o =
|
|
1762
|
-
const g = o ===
|
|
1763
|
-
r += o === dt ? l +
|
|
1761
|
+
for (; d < l.length && (o.lastIndex = d, u = o.exec(l), u !== null); ) d = o.lastIndex, o === dt ? u[1] === "!--" ? o = Yi : u[1] !== void 0 ? o = Xi : u[2] !== void 0 ? (po.test(u[2]) && (i = RegExp("</" + u[2], "g")), o = Re) : u[3] !== void 0 && (o = Re) : o === Re ? u[0] === ">" ? (o = i ?? dt, p = -1) : u[1] === void 0 ? p = -2 : (p = o.lastIndex - u[2].length, c = u[1], o = u[3] === void 0 ? Re : u[3] === '"' ? Vi : Ki) : o === Vi || o === Ki ? o = Re : o === Yi || o === Xi ? o = dt : (o = Re, i = void 0);
|
|
1762
|
+
const g = o === Re && n[a + 1].startsWith("/>") ? " " : "";
|
|
1763
|
+
r += o === dt ? l + Ul : p >= 0 ? (s.push(c), l.slice(0, p) + uo + l.slice(p) + we + g) : l + we + (p === -2 ? a : g);
|
|
1764
1764
|
}
|
|
1765
1765
|
return [fo(n, r + (n[t] || "<?>") + (e === 2 ? "</svg>" : e === 3 ? "</math>" : "")), s];
|
|
1766
1766
|
};
|
|
@@ -1769,7 +1769,7 @@ let hs = class go {
|
|
|
1769
1769
|
let i;
|
|
1770
1770
|
this.parts = [];
|
|
1771
1771
|
let r = 0, o = 0;
|
|
1772
|
-
const a = e.length - 1, l = this.parts, [c, u] =
|
|
1772
|
+
const a = e.length - 1, l = this.parts, [c, u] = Hl(e, t);
|
|
1773
1773
|
if (this.el = go.createElement(c, s), Pe.currentNode = this.el.content, t === 2 || t === 3) {
|
|
1774
1774
|
const p = this.el.content.firstChild;
|
|
1775
1775
|
p.replaceWith(...p.childNodes);
|
|
@@ -1778,7 +1778,7 @@ let hs = class go {
|
|
|
1778
1778
|
if (i.nodeType === 1) {
|
|
1779
1779
|
if (i.hasAttributes()) for (const p of i.getAttributeNames()) if (p.endsWith(uo)) {
|
|
1780
1780
|
const d = u[o++], g = i.getAttribute(p).split(we), m = /([.?@])?(.*)/.exec(d);
|
|
1781
|
-
l.push({ type: 1, index: r, name: m[2], strings: g, ctor: m[1] === "." ?
|
|
1781
|
+
l.push({ type: 1, index: r, name: m[2], strings: g, ctor: m[1] === "." ? jl : m[1] === "?" ? ql : m[1] === "@" ? Wl : xn }), i.removeAttribute(p);
|
|
1782
1782
|
} else p.startsWith(we) && (l.push({ type: 6, index: r }), i.removeAttribute(p));
|
|
1783
1783
|
if (po.test(i.tagName)) {
|
|
1784
1784
|
const p = i.textContent.split(we), d = p.length - 1;
|
|
@@ -1808,7 +1808,7 @@ function it(n, e, t = n, s) {
|
|
|
1808
1808
|
const r = _t(e) ? void 0 : e._$litDirective$;
|
|
1809
1809
|
return (i == null ? void 0 : i.constructor) !== r && ((a = i == null ? void 0 : i._$AO) == null || a.call(i, !1), r === void 0 ? i = void 0 : (i = new r(n), i._$AT(n, t, s)), s !== void 0 ? (t._$Co ?? (t._$Co = []))[s] = i : t._$Cl = i), i !== void 0 && (e = it(n, i._$AS(n, e.values), i, s)), e;
|
|
1810
1810
|
}
|
|
1811
|
-
class
|
|
1811
|
+
class Fl {
|
|
1812
1812
|
constructor(e, t) {
|
|
1813
1813
|
this._$AV = [], this._$AN = void 0, this._$AD = e, this._$AM = t;
|
|
1814
1814
|
}
|
|
@@ -1825,7 +1825,7 @@ class Hl {
|
|
|
1825
1825
|
for (; l !== void 0; ) {
|
|
1826
1826
|
if (o === l.index) {
|
|
1827
1827
|
let c;
|
|
1828
|
-
l.type === 2 ? c = new Mt(r, r.nextSibling, this, e) : l.type === 1 ? c = new l.ctor(r, l.name, l.strings, this, e) : l.type === 6 && (c = new
|
|
1828
|
+
l.type === 2 ? c = new Mt(r, r.nextSibling, this, e) : l.type === 1 ? c = new l.ctor(r, l.name, l.strings, this, e) : l.type === 6 && (c = new Gl(r, this, e)), this._$AV.push(c), l = s[++a];
|
|
1829
1829
|
}
|
|
1830
1830
|
o !== (l == null ? void 0 : l.index) && (r = Pe.nextNode(), o++);
|
|
1831
1831
|
}
|
|
@@ -1842,7 +1842,7 @@ class Mt {
|
|
|
1842
1842
|
return ((e = this._$AM) == null ? void 0 : e._$AU) ?? this._$Cv;
|
|
1843
1843
|
}
|
|
1844
1844
|
constructor(e, t, s, i) {
|
|
1845
|
-
this.type = 2, this._$AH =
|
|
1845
|
+
this.type = 2, this._$AH = $, this._$AN = void 0, this._$AA = e, this._$AB = t, this._$AM = s, this.options = i, this._$Cv = (i == null ? void 0 : i.isConnected) ?? !0;
|
|
1846
1846
|
}
|
|
1847
1847
|
get parentNode() {
|
|
1848
1848
|
let e = this._$AA.parentNode;
|
|
@@ -1856,7 +1856,7 @@ class Mt {
|
|
|
1856
1856
|
return this._$AB;
|
|
1857
1857
|
}
|
|
1858
1858
|
_$AI(e, t = this) {
|
|
1859
|
-
e = it(this, e, t), _t(e) ? e ===
|
|
1859
|
+
e = it(this, e, t), _t(e) ? e === $ || e == null || e === "" ? (this._$AH !== $ && this._$AR(), this._$AH = $) : e !== this._$AH && e !== _e && this._(e) : e._$litType$ !== void 0 ? this.$(e) : e.nodeType !== void 0 ? this.T(e) : zl(e) ? this.k(e) : this._(e);
|
|
1860
1860
|
}
|
|
1861
1861
|
O(e) {
|
|
1862
1862
|
return this._$AA.parentNode.insertBefore(e, this._$AB);
|
|
@@ -1865,14 +1865,14 @@ class Mt {
|
|
|
1865
1865
|
this._$AH !== e && (this._$AR(), this._$AH = this.O(e));
|
|
1866
1866
|
}
|
|
1867
1867
|
_(e) {
|
|
1868
|
-
this._$AH !==
|
|
1868
|
+
this._$AH !== $ && _t(this._$AH) ? this._$AA.nextSibling.data = e : this.T(De.createTextNode(e)), this._$AH = e;
|
|
1869
1869
|
}
|
|
1870
1870
|
$(e) {
|
|
1871
1871
|
var r;
|
|
1872
1872
|
const { values: t, _$litType$: s } = e, i = typeof s == "number" ? this._$AC(e) : (s.el === void 0 && (s.el = hs.createElement(fo(s.h, s.h[0]), this.options)), s);
|
|
1873
1873
|
if (((r = this._$AH) == null ? void 0 : r._$AD) === i) this._$AH.p(t);
|
|
1874
1874
|
else {
|
|
1875
|
-
const o = new
|
|
1875
|
+
const o = new Fl(i, this), a = o.u(this.options);
|
|
1876
1876
|
o.p(t), this.T(a), this._$AH = o;
|
|
1877
1877
|
}
|
|
1878
1878
|
}
|
|
@@ -1907,7 +1907,7 @@ class xn {
|
|
|
1907
1907
|
return this._$AM._$AU;
|
|
1908
1908
|
}
|
|
1909
1909
|
constructor(e, t, s, i, r) {
|
|
1910
|
-
this.type = 1, this._$AH =
|
|
1910
|
+
this.type = 1, this._$AH = $, this._$AN = void 0, this.element = e, this.name = t, this._$AM = i, this.options = r, s.length > 2 || s[0] !== "" || s[1] !== "" ? (this._$AH = Array(s.length - 1).fill(new String()), this.strings = s) : this._$AH = $;
|
|
1911
1911
|
}
|
|
1912
1912
|
_$AI(e, t = this, s, i) {
|
|
1913
1913
|
const r = this.strings;
|
|
@@ -1916,37 +1916,37 @@ class xn {
|
|
|
1916
1916
|
else {
|
|
1917
1917
|
const a = e;
|
|
1918
1918
|
let l, c;
|
|
1919
|
-
for (e = r[0], l = 0; l < r.length - 1; l++) c = it(this, a[s + l], t, l), c === _e && (c = this._$AH[l]), o || (o = !_t(c) || c !== this._$AH[l]), c ===
|
|
1919
|
+
for (e = r[0], l = 0; l < r.length - 1; l++) c = it(this, a[s + l], t, l), c === _e && (c = this._$AH[l]), o || (o = !_t(c) || c !== this._$AH[l]), c === $ ? e = $ : e !== $ && (e += (c ?? "") + r[l + 1]), this._$AH[l] = c;
|
|
1920
1920
|
}
|
|
1921
1921
|
o && !i && this.j(e);
|
|
1922
1922
|
}
|
|
1923
1923
|
j(e) {
|
|
1924
|
-
e ===
|
|
1924
|
+
e === $ ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, e ?? "");
|
|
1925
1925
|
}
|
|
1926
1926
|
}
|
|
1927
|
-
let
|
|
1927
|
+
let jl = class extends xn {
|
|
1928
1928
|
constructor() {
|
|
1929
1929
|
super(...arguments), this.type = 3;
|
|
1930
1930
|
}
|
|
1931
1931
|
j(e) {
|
|
1932
|
-
this.element[this.name] = e ===
|
|
1932
|
+
this.element[this.name] = e === $ ? void 0 : e;
|
|
1933
1933
|
}
|
|
1934
1934
|
};
|
|
1935
|
-
class
|
|
1935
|
+
class ql extends xn {
|
|
1936
1936
|
constructor() {
|
|
1937
1937
|
super(...arguments), this.type = 4;
|
|
1938
1938
|
}
|
|
1939
1939
|
j(e) {
|
|
1940
|
-
this.element.toggleAttribute(this.name, !!e && e !==
|
|
1940
|
+
this.element.toggleAttribute(this.name, !!e && e !== $);
|
|
1941
1941
|
}
|
|
1942
1942
|
}
|
|
1943
|
-
class
|
|
1943
|
+
class Wl extends xn {
|
|
1944
1944
|
constructor(e, t, s, i, r) {
|
|
1945
1945
|
super(e, t, s, i, r), this.type = 5;
|
|
1946
1946
|
}
|
|
1947
1947
|
_$AI(e, t = this) {
|
|
1948
|
-
if ((e = it(this, e, t, 0) ??
|
|
1949
|
-
const s = this._$AH, i = e ===
|
|
1948
|
+
if ((e = it(this, e, t, 0) ?? $) === _e) return;
|
|
1949
|
+
const s = this._$AH, i = e === $ && s !== $ || e.capture !== s.capture || e.once !== s.once || e.passive !== s.passive, r = e !== $ && (s === $ || i);
|
|
1950
1950
|
i && this.element.removeEventListener(this.name, this, s), r && this.element.addEventListener(this.name, this, e), this._$AH = e;
|
|
1951
1951
|
}
|
|
1952
1952
|
handleEvent(e) {
|
|
@@ -1954,7 +1954,7 @@ class jl extends xn {
|
|
|
1954
1954
|
typeof this._$AH == "function" ? this._$AH.call(((t = this.options) == null ? void 0 : t.host) ?? this.element, e) : this._$AH.handleEvent(e);
|
|
1955
1955
|
}
|
|
1956
1956
|
}
|
|
1957
|
-
class
|
|
1957
|
+
class Gl {
|
|
1958
1958
|
constructor(e, t, s) {
|
|
1959
1959
|
this.element = e, this.type = 6, this._$AN = void 0, this._$AM = t, this.options = s;
|
|
1960
1960
|
}
|
|
@@ -1967,7 +1967,7 @@ class ql {
|
|
|
1967
1967
|
}
|
|
1968
1968
|
const Gn = xt.litHtmlPolyfillSupport;
|
|
1969
1969
|
Gn == null || Gn(hs, Mt), (xt.litHtmlVersions ?? (xt.litHtmlVersions = [])).push("3.3.1");
|
|
1970
|
-
const
|
|
1970
|
+
const Zl = (n, e, t) => {
|
|
1971
1971
|
const s = (t == null ? void 0 : t.renderBefore) ?? e;
|
|
1972
1972
|
let i = s._$litPart$;
|
|
1973
1973
|
if (i === void 0) {
|
|
@@ -1993,7 +1993,7 @@ let M = class extends Ye {
|
|
|
1993
1993
|
}
|
|
1994
1994
|
update(e) {
|
|
1995
1995
|
const t = this.render();
|
|
1996
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this._$Do =
|
|
1996
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this._$Do = Zl(t, this.renderRoot, this.renderOptions);
|
|
1997
1997
|
}
|
|
1998
1998
|
connectedCallback() {
|
|
1999
1999
|
var e;
|
|
@@ -2007,12 +2007,12 @@ let M = class extends Ye {
|
|
|
2007
2007
|
return _e;
|
|
2008
2008
|
}
|
|
2009
2009
|
};
|
|
2010
|
-
var
|
|
2011
|
-
M._$litElement$ = !0, M.finalized = !0, (
|
|
2010
|
+
var Hr;
|
|
2011
|
+
M._$litElement$ = !0, M.finalized = !0, (Hr = Me.litElementHydrateSupport) == null || Hr.call(Me, { LitElement: M });
|
|
2012
2012
|
const Zn = Me.litElementPolyfillSupport;
|
|
2013
2013
|
Zn == null || Zn({ LitElement: M });
|
|
2014
2014
|
(Me.litElementVersions ?? (Me.litElementVersions = [])).push("4.2.1");
|
|
2015
|
-
const
|
|
2015
|
+
const Yl = { 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>' }, Xl = { 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>' }, mo = { 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>' }, Kl = { 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>' }, Vl = { 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>' }, Ji = { 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>' }, Ql = { 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>' }, Jl = { 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>' }, er = { 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>' }, Xe = {
|
|
2016
2016
|
allRenderFn: !1,
|
|
2017
2017
|
cmpDidLoad: !0,
|
|
2018
2018
|
cmpDidUnload: !1,
|
|
@@ -2096,8 +2096,8 @@ const Gl = { svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" f
|
|
|
2096
2096
|
transformTagName: !1,
|
|
2097
2097
|
attachStyles: !0
|
|
2098
2098
|
};
|
|
2099
|
-
let Ke,
|
|
2100
|
-
const kn = typeof window < "u" ? window : {},
|
|
2099
|
+
let Ke, vo, wn, bo = !1, an = !1, Ms = !1, K = !1, tr = null, ds = !1;
|
|
2100
|
+
const kn = typeof window < "u" ? window : {}, le = kn.document || { head: {} }, yo = kn.HTMLElement || class {
|
|
2101
2101
|
}, q = {
|
|
2102
2102
|
$flags$: 0,
|
|
2103
2103
|
$resourcesUrl$: "",
|
|
@@ -2106,10 +2106,10 @@ const kn = typeof window < "u" ? window : {}, ae = kn.document || { head: {} },
|
|
|
2106
2106
|
ael: (n, e, t, s) => n.addEventListener(e, t, s),
|
|
2107
2107
|
rel: (n, e, t, s) => n.removeEventListener(e, t, s),
|
|
2108
2108
|
ce: (n, e) => new CustomEvent(n, e)
|
|
2109
|
-
},
|
|
2109
|
+
}, ec = /* @__PURE__ */ (() => {
|
|
2110
2110
|
let n = !1;
|
|
2111
2111
|
try {
|
|
2112
|
-
|
|
2112
|
+
le.addEventListener("e", null, Object.defineProperty({}, "passive", {
|
|
2113
2113
|
get() {
|
|
2114
2114
|
n = !0;
|
|
2115
2115
|
}
|
|
@@ -2117,43 +2117,43 @@ const kn = typeof window < "u" ? window : {}, ae = kn.document || { head: {} },
|
|
|
2117
2117
|
} catch {
|
|
2118
2118
|
}
|
|
2119
2119
|
return n;
|
|
2120
|
-
})(),
|
|
2120
|
+
})(), tc = (n) => Promise.resolve(n), nc = /* @__PURE__ */ (() => {
|
|
2121
2121
|
try {
|
|
2122
2122
|
return new CSSStyleSheet(), typeof new CSSStyleSheet().replace == "function";
|
|
2123
2123
|
} catch {
|
|
2124
2124
|
}
|
|
2125
2125
|
return !1;
|
|
2126
|
-
})(),
|
|
2126
|
+
})(), $o = (n, e, t, s) => {
|
|
2127
2127
|
t && t.map(([i, r, o]) => {
|
|
2128
|
-
const a =
|
|
2128
|
+
const a = ic(n, i), l = sc(e, o), c = rc(i);
|
|
2129
2129
|
q.ael(a, r, l, c), (e.$rmListeners$ = e.$rmListeners$ || []).push(() => q.rel(a, r, l, c));
|
|
2130
2130
|
});
|
|
2131
|
-
},
|
|
2131
|
+
}, sc = (n, e) => (t) => {
|
|
2132
2132
|
try {
|
|
2133
2133
|
Xe.lazyLoad || n.$hostElement$[e](t);
|
|
2134
2134
|
} catch (s) {
|
|
2135
2135
|
Nt(s);
|
|
2136
2136
|
}
|
|
2137
|
-
},
|
|
2137
|
+
}, ic = (n, e) => e & 4 ? le : e & 8 ? kn : e & 16 ? le.body : n, rc = (n) => ec ? {
|
|
2138
2138
|
passive: (n & 1) !== 0,
|
|
2139
2139
|
capture: (n & 2) !== 0
|
|
2140
2140
|
} : (n & 2) !== 0, nr = "http://www.w3.org/1999/xlink", Ue = (n, e = "") => () => {
|
|
2141
|
-
}, sr = /* @__PURE__ */ new WeakMap(),
|
|
2141
|
+
}, sr = /* @__PURE__ */ new WeakMap(), oc = (n, e, t) => {
|
|
2142
2142
|
let s = un.get(n);
|
|
2143
|
-
|
|
2144
|
-
},
|
|
2145
|
-
let i =
|
|
2146
|
-
if (n = n.nodeType === 11 ? n :
|
|
2143
|
+
nc && t ? (s = s || new CSSStyleSheet(), s.replace(e)) : s = e, un.set(n, s);
|
|
2144
|
+
}, ac = (n, e, t, s) => {
|
|
2145
|
+
let i = xo(e, t), r = un.get(i);
|
|
2146
|
+
if (n = n.nodeType === 11 ? n : le, r)
|
|
2147
2147
|
if (typeof r == "string") {
|
|
2148
2148
|
n = n.head || n;
|
|
2149
2149
|
let o = sr.get(n), a;
|
|
2150
|
-
o || sr.set(n, o = /* @__PURE__ */ new Set()), o.has(i) || (a =
|
|
2150
|
+
o || sr.set(n, o = /* @__PURE__ */ new Set()), o.has(i) || (a = le.createElement("style"), a.innerHTML = r, n.insertBefore(a, n.querySelector("link")), o && o.add(i));
|
|
2151
2151
|
} else n.adoptedStyleSheets.includes(r) || (n.adoptedStyleSheets = [...n.adoptedStyleSheets, r]);
|
|
2152
2152
|
return i;
|
|
2153
|
-
},
|
|
2154
|
-
const e = n.$cmpMeta$, t = n.$hostElement$, s = e.$flags$, i = Ue("attachStyles", e.$tagName$), r =
|
|
2153
|
+
}, lc = (n) => {
|
|
2154
|
+
const e = n.$cmpMeta$, t = n.$hostElement$, s = e.$flags$, i = Ue("attachStyles", e.$tagName$), r = ac(t.shadowRoot ? t.shadowRoot : t.getRootNode(), e, n.$modeName$);
|
|
2155
2155
|
s & 10 && (t["s-sc"] = r, t.classList.add(r + "-h"), s & 2 && t.classList.add(r + "-s")), i();
|
|
2156
|
-
},
|
|
2156
|
+
}, xo = (n, e) => "sc-" + (e && n.$flags$ & 32 ? n.$tagName$ + "-" + e : n.$tagName$), cc = (n) => Dc.map((e) => e(n)).find((e) => !!e), ir = {}, uc = "http://www.w3.org/2000/svg", hc = "http://www.w3.org/1999/xhtml", dc = (n) => n != null, Ns = (n) => (n = typeof n, n === "object" || n === "function"), et = (n, e, ...t) => {
|
|
2157
2157
|
let s = null, i = null, r = null, o = !1, a = !1, l = [];
|
|
2158
2158
|
const c = (p) => {
|
|
2159
2159
|
for (let d = 0; d < p.length; d++)
|
|
@@ -2167,7 +2167,7 @@ const kn = typeof window < "u" ? window : {}, ae = kn.document || { head: {} },
|
|
|
2167
2167
|
}
|
|
2168
2168
|
}
|
|
2169
2169
|
if (typeof n == "function")
|
|
2170
|
-
return n(e === null ? {} : e, l,
|
|
2170
|
+
return n(e === null ? {} : e, l, fc);
|
|
2171
2171
|
const u = ln(n, null);
|
|
2172
2172
|
return u.$attrs$ = e, l.length > 0 && (u.$children$ = l), u.$key$ = i, u.$name$ = r, u;
|
|
2173
2173
|
}, ln = (n, e) => {
|
|
@@ -2179,9 +2179,9 @@ const kn = typeof window < "u" ? window : {}, ae = kn.document || { head: {} },
|
|
|
2179
2179
|
$children$: null
|
|
2180
2180
|
};
|
|
2181
2181
|
return t.$attrs$ = null, t.$key$ = null, t.$name$ = null, t;
|
|
2182
|
-
}, Ds = {},
|
|
2182
|
+
}, Ds = {}, pc = (n) => n && n.$tag$ === Ds, fc = {
|
|
2183
2183
|
forEach: (n, e) => n.map(rr).forEach(e),
|
|
2184
|
-
map: (n, e) => n.map(rr).map(e).map(
|
|
2184
|
+
map: (n, e) => n.map(rr).map(e).map(gc)
|
|
2185
2185
|
}, rr = (n) => ({
|
|
2186
2186
|
vattrs: n.$attrs$,
|
|
2187
2187
|
vchildren: n.$children$,
|
|
@@ -2189,7 +2189,7 @@ const kn = typeof window < "u" ? window : {}, ae = kn.document || { head: {} },
|
|
|
2189
2189
|
vname: n.$name$,
|
|
2190
2190
|
vtag: n.$tag$,
|
|
2191
2191
|
vtext: n.$text$
|
|
2192
|
-
}),
|
|
2192
|
+
}), gc = (n) => {
|
|
2193
2193
|
if (typeof n.vtag == "function") {
|
|
2194
2194
|
const t = Object.assign({}, n.vattrs);
|
|
2195
2195
|
return n.vkey && (t.key = n.vkey), n.vname && (t.name = n.vname), et(n.vtag, t, ...n.vchildren || []);
|
|
@@ -2228,7 +2228,7 @@ const kn = typeof window < "u" ? window : {}, ae = kn.document || { head: {} },
|
|
|
2228
2228
|
a !== (a = a.replace(/^xlink\:?/, "")) && (e = a, c = !0), s == null || s === !1 ? (s !== !1 || n.getAttribute(e) === "") && (c ? n.removeAttributeNS(nr, e) : n.removeAttribute(e)) : (!o || r & 4 || i) && !l && (s = s === !0 ? "" : s, c ? n.setAttributeNS(nr, e, s) : n.setAttribute(e, s));
|
|
2229
2229
|
}
|
|
2230
2230
|
}
|
|
2231
|
-
},
|
|
2231
|
+
}, mc = /\s/, ar = (n) => n ? n.split(mc) : [], wo = (n, e, t, s) => {
|
|
2232
2232
|
const i = e.$elm$.nodeType === 11 && e.$elm$.host ? e.$elm$.host : e.$elm$, r = n && n.$attrs$ || ir, o = e.$attrs$ || ir;
|
|
2233
2233
|
for (s in r)
|
|
2234
2234
|
s in o || or(i, s, r[s], void 0, t, e.$flags$);
|
|
@@ -2236,39 +2236,39 @@ const kn = typeof window < "u" ? window : {}, ae = kn.document || { head: {} },
|
|
|
2236
2236
|
or(i, s, r[s], o[s], t, e.$flags$);
|
|
2237
2237
|
}, cn = (n, e, t, s) => {
|
|
2238
2238
|
let i = e.$children$[t], r = 0, o, a, l;
|
|
2239
|
-
if (
|
|
2239
|
+
if (bo || (Ms = !0, i.$tag$ === "slot" && (Ke && s.classList.add(Ke + "-s"), i.$flags$ |= i.$children$ ? (
|
|
2240
2240
|
// slot element has fallback content
|
|
2241
2241
|
2
|
|
2242
2242
|
) : (
|
|
2243
2243
|
// slot element does not have fallback content
|
|
2244
2244
|
1
|
|
2245
2245
|
))), i.$text$ !== null)
|
|
2246
|
-
o = i.$elm$ =
|
|
2246
|
+
o = i.$elm$ = le.createTextNode(i.$text$);
|
|
2247
2247
|
else if (i.$flags$ & 1)
|
|
2248
|
-
o = i.$elm$ =
|
|
2248
|
+
o = i.$elm$ = le.createTextNode("");
|
|
2249
2249
|
else {
|
|
2250
|
-
if (K || (K = i.$tag$ === "svg"), o = i.$elm$ =
|
|
2250
|
+
if (K || (K = i.$tag$ === "svg"), o = i.$elm$ = le.createElementNS(K ? uc : hc, i.$flags$ & 2 ? "slot-fb" : i.$tag$), K && i.$tag$ === "foreignObject" && (K = !1), wo(null, i, K), dc(Ke) && o["s-si"] !== Ke && o.classList.add(o["s-si"] = Ke), i.$children$)
|
|
2251
2251
|
for (r = 0; r < i.$children$.length; ++r)
|
|
2252
2252
|
a = cn(n, i, r, o), a && o.appendChild(a);
|
|
2253
2253
|
i.$tag$ === "svg" ? K = !1 : o.tagName === "foreignObject" && (K = !0);
|
|
2254
2254
|
}
|
|
2255
|
-
return o["s-hn"] = wn, i.$flags$ & 3 && (o["s-sr"] = !0, o["s-cr"] =
|
|
2255
|
+
return o["s-hn"] = wn, i.$flags$ & 3 && (o["s-sr"] = !0, o["s-cr"] = vo, o["s-sn"] = i.$name$ || "", l = n && n.$children$ && n.$children$[t], l && l.$tag$ === i.$tag$ && n.$elm$ && Et(n.$elm$, !1)), o;
|
|
2256
2256
|
}, Et = (n, e) => {
|
|
2257
2257
|
q.$flags$ |= 1;
|
|
2258
2258
|
const t = n.childNodes;
|
|
2259
2259
|
for (let s = t.length - 1; s >= 0; s--) {
|
|
2260
2260
|
const i = t[s];
|
|
2261
|
-
i["s-hn"] !== wn && i["s-ol"] && (
|
|
2261
|
+
i["s-hn"] !== wn && i["s-ol"] && (_o(i).insertBefore(i, Us(i)), i["s-ol"].remove(), i["s-ol"] = void 0, Ms = !0), e && Et(i, e);
|
|
2262
2262
|
}
|
|
2263
2263
|
q.$flags$ &= -2;
|
|
2264
|
-
},
|
|
2264
|
+
}, ko = (n, e, t, s, i, r) => {
|
|
2265
2265
|
let o = n["s-cr"] && n["s-cr"].parentNode || n, a;
|
|
2266
2266
|
for (o.shadowRoot && o.tagName === wn && (o = o.shadowRoot); i <= r; ++i)
|
|
2267
2267
|
s[i] && (a = cn(null, t, i, n), a && (s[i].$elm$ = a, o.insertBefore(a, Us(e))));
|
|
2268
|
-
},
|
|
2268
|
+
}, So = (n, e, t, s, i) => {
|
|
2269
2269
|
for (; e <= t; ++e)
|
|
2270
|
-
(s = n[e]) && (i = s.$elm$,
|
|
2271
|
-
},
|
|
2270
|
+
(s = n[e]) && (i = s.$elm$, Co(s), an = !0, i["s-ol"] ? i["s-ol"].remove() : Et(i, !0), i.remove());
|
|
2271
|
+
}, vc = (n, e, t, s) => {
|
|
2272
2272
|
let i = 0, r = 0, o = 0, a = 0, l = e.length - 1, c = e[0], u = e[l], p = s.length - 1, d = s[0], g = s[p], m, y;
|
|
2273
2273
|
for (; i <= l && r <= p; )
|
|
2274
2274
|
if (c == null)
|
|
@@ -2293,14 +2293,14 @@ const kn = typeof window < "u" ? window : {}, ae = kn.document || { head: {} },
|
|
|
2293
2293
|
o = a;
|
|
2294
2294
|
break;
|
|
2295
2295
|
}
|
|
2296
|
-
o >= 0 ? (y = e[o], y.$tag$ !== d.$tag$ ? m = cn(e && e[r], t, o, n) : (Ve(y, d), e[o] = void 0, m = y.$elm$), d = s[++r]) : (m = cn(e && e[r], t, r, n), d = s[++r]), m &&
|
|
2296
|
+
o >= 0 ? (y = e[o], y.$tag$ !== d.$tag$ ? m = cn(e && e[r], t, o, n) : (Ve(y, d), e[o] = void 0, m = y.$elm$), d = s[++r]) : (m = cn(e && e[r], t, r, n), d = s[++r]), m && _o(c.$elm$).insertBefore(m, Us(c.$elm$));
|
|
2297
2297
|
}
|
|
2298
|
-
i > l ?
|
|
2299
|
-
}, Zt = (n, e) => n.$tag$ === e.$tag$ ? n.$tag$ === "slot" ? n.$name$ === e.$name$ : n.$key$ === e.$key$ : !1, Us = (n) => n && n["s-ol"] || n,
|
|
2298
|
+
i > l ? ko(n, s[p + 1] == null ? null : s[p + 1].$elm$, t, s, r, p) : r > p && So(e, i, l);
|
|
2299
|
+
}, Zt = (n, e) => n.$tag$ === e.$tag$ ? n.$tag$ === "slot" ? n.$name$ === e.$name$ : n.$key$ === e.$key$ : !1, Us = (n) => n && n["s-ol"] || n, _o = (n) => (n["s-ol"] ? n["s-ol"] : n).parentNode, Ve = (n, e) => {
|
|
2300
2300
|
const t = e.$elm$ = n.$elm$, s = n.$children$, i = e.$children$, r = e.$tag$, o = e.$text$;
|
|
2301
2301
|
let a;
|
|
2302
|
-
o === null ? (K = r === "svg" ? !0 : r === "foreignObject" ? !1 : K, r === "slot" ||
|
|
2303
|
-
},
|
|
2302
|
+
o === null ? (K = r === "svg" ? !0 : r === "foreignObject" ? !1 : K, r === "slot" || wo(n, e, K), s !== null && i !== null ? vc(t, s, e, i) : i !== null ? (n.$text$ !== null && (t.textContent = ""), ko(t, null, e, i, 0, i.length - 1)) : s !== null && So(s, 0, s.length - 1), K && r === "svg" && (K = !1)) : (a = t["s-cr"]) ? a.parentNode.textContent = o : n.$text$ !== o && (t.data = o);
|
|
2303
|
+
}, Eo = (n) => {
|
|
2304
2304
|
let e = n.childNodes, t, s, i, r, o, a;
|
|
2305
2305
|
for (s = 0, i = e.length; s < i; s++)
|
|
2306
2306
|
if (t = e[s], t.nodeType === 1) {
|
|
@@ -2316,36 +2316,36 @@ const kn = typeof window < "u" ? window : {}, ae = kn.document || { head: {} },
|
|
|
2316
2316
|
break;
|
|
2317
2317
|
}
|
|
2318
2318
|
}
|
|
2319
|
-
|
|
2319
|
+
Eo(t);
|
|
2320
2320
|
}
|
|
2321
|
-
},
|
|
2321
|
+
}, ne = [], Ao = (n) => {
|
|
2322
2322
|
let e, t, s, i, r, o, a = 0, l = n.childNodes, c = l.length;
|
|
2323
2323
|
for (; a < c; a++) {
|
|
2324
2324
|
if (e = l[a], e["s-sr"] && (t = e["s-cr"]) && t.parentNode)
|
|
2325
2325
|
for (s = t.parentNode.childNodes, i = e["s-sn"], o = s.length - 1; o >= 0; o--)
|
|
2326
|
-
t = s[o], !t["s-cn"] && !t["s-nr"] && t["s-hn"] !== e["s-hn"] && (lr(t, i) ? (r =
|
|
2326
|
+
t = s[o], !t["s-cn"] && !t["s-nr"] && t["s-hn"] !== e["s-hn"] && (lr(t, i) ? (r = ne.find((u) => u.$nodeToRelocate$ === t), an = !0, t["s-sn"] = t["s-sn"] || i, r ? r.$slotRefNode$ = e : ne.push({
|
|
2327
2327
|
$slotRefNode$: e,
|
|
2328
2328
|
$nodeToRelocate$: t
|
|
2329
|
-
}), t["s-sr"] &&
|
|
2330
|
-
lr(u.$nodeToRelocate$, t["s-sn"]) && (r =
|
|
2331
|
-
})) :
|
|
2329
|
+
}), t["s-sr"] && ne.map((u) => {
|
|
2330
|
+
lr(u.$nodeToRelocate$, t["s-sn"]) && (r = ne.find((p) => p.$nodeToRelocate$ === t), r && !u.$slotRefNode$ && (u.$slotRefNode$ = r.$slotRefNode$));
|
|
2331
|
+
})) : ne.some((u) => u.$nodeToRelocate$ === t) || ne.push({
|
|
2332
2332
|
$nodeToRelocate$: t
|
|
2333
2333
|
}));
|
|
2334
|
-
e.nodeType === 1 &&
|
|
2334
|
+
e.nodeType === 1 && Ao(e);
|
|
2335
2335
|
}
|
|
2336
|
-
}, lr = (n, e) => n.nodeType === 1 ? n.getAttribute("slot") === null && e === "" || n.getAttribute("slot") === e : n["s-sn"] === e ? !0 : e === "",
|
|
2337
|
-
n.$attrs$ && n.$attrs$.ref && n.$attrs$.ref(null), n.$children$ && n.$children$.map(
|
|
2338
|
-
},
|
|
2339
|
-
const t = n.$hostElement$, s = n.$cmpMeta$, i = n.$vnode$ || ln(null, null), r =
|
|
2340
|
-
wn = t.tagName, s.$attrsToReflect$ && (r.$attrs$ = r.$attrs$ || {}, s.$attrsToReflect$.map(([o, a]) => r.$attrs$[a] = t[o])), r.$tag$ = null, r.$flags$ |= 4, n.$vnode$ = r, r.$elm$ = i.$elm$ = t.shadowRoot || t, Ke = t["s-sc"],
|
|
2336
|
+
}, lr = (n, e) => n.nodeType === 1 ? n.getAttribute("slot") === null && e === "" || n.getAttribute("slot") === e : n["s-sn"] === e ? !0 : e === "", Co = (n) => {
|
|
2337
|
+
n.$attrs$ && n.$attrs$.ref && n.$attrs$.ref(null), n.$children$ && n.$children$.map(Co);
|
|
2338
|
+
}, bc = (n, e) => {
|
|
2339
|
+
const t = n.$hostElement$, s = n.$cmpMeta$, i = n.$vnode$ || ln(null, null), r = pc(e) ? e : et(null, null, e);
|
|
2340
|
+
wn = t.tagName, s.$attrsToReflect$ && (r.$attrs$ = r.$attrs$ || {}, s.$attrsToReflect$.map(([o, a]) => r.$attrs$[a] = t[o])), r.$tag$ = null, r.$flags$ |= 4, n.$vnode$ = r, r.$elm$ = i.$elm$ = t.shadowRoot || t, Ke = t["s-sc"], vo = t["s-cr"], bo = (s.$flags$ & 1) !== 0, an = !1, Ve(i, r);
|
|
2341
2341
|
{
|
|
2342
2342
|
if (q.$flags$ |= 1, Ms) {
|
|
2343
|
-
|
|
2343
|
+
Ao(r.$elm$);
|
|
2344
2344
|
let o, a, l, c, u, p, d = 0;
|
|
2345
|
-
for (; d <
|
|
2346
|
-
o =
|
|
2347
|
-
for (d = 0; d <
|
|
2348
|
-
if (o =
|
|
2345
|
+
for (; d < ne.length; d++)
|
|
2346
|
+
o = ne[d], a = o.$nodeToRelocate$, a["s-ol"] || (l = le.createTextNode(""), l["s-nr"] = a, a.parentNode.insertBefore(a["s-ol"] = l, a));
|
|
2347
|
+
for (d = 0; d < ne.length; d++)
|
|
2348
|
+
if (o = ne[d], a = o.$nodeToRelocate$, o.$slotRefNode$) {
|
|
2349
2349
|
for (c = o.$slotRefNode$.parentNode, u = o.$slotRefNode$.nextSibling, l = a["s-ol"]; l = l.previousSibling; )
|
|
2350
2350
|
if (p = l["s-nr"], p && p["s-sn"] === a["s-sn"] && c === p.parentNode && (p = p.nextSibling, !p || !p["s-nr"])) {
|
|
2351
2351
|
u = p;
|
|
@@ -2355,39 +2355,39 @@ const kn = typeof window < "u" ? window : {}, ae = kn.document || { head: {} },
|
|
|
2355
2355
|
} else
|
|
2356
2356
|
a.nodeType === 1 && (a.hidden = !0);
|
|
2357
2357
|
}
|
|
2358
|
-
an &&
|
|
2358
|
+
an && Eo(r.$elm$), q.$flags$ &= -2, ne.length = 0;
|
|
2359
2359
|
}
|
|
2360
|
-
},
|
|
2361
|
-
const s =
|
|
2360
|
+
}, yc = (n) => n, $c = (n, e, t) => {
|
|
2361
|
+
const s = yc(n);
|
|
2362
2362
|
return {
|
|
2363
|
-
emit: (i) =>
|
|
2363
|
+
emit: (i) => xc(s, e, {
|
|
2364
2364
|
bubbles: !0,
|
|
2365
2365
|
composed: !0,
|
|
2366
2366
|
cancelable: !0,
|
|
2367
2367
|
detail: i
|
|
2368
2368
|
})
|
|
2369
2369
|
};
|
|
2370
|
-
},
|
|
2370
|
+
}, xc = (n, e, t) => {
|
|
2371
2371
|
const s = q.ce(e, t);
|
|
2372
2372
|
return n.dispatchEvent(s), s;
|
|
2373
|
-
},
|
|
2374
|
-
},
|
|
2373
|
+
}, wc = (n, e) => {
|
|
2374
|
+
}, To = (n, e) => (n.$flags$ |= 16, wc(n, n.$ancestorComponent$), Bc(() => kc(n, e))), kc = (n, e) => {
|
|
2375
2375
|
const t = n.$hostElement$, s = Ue("scheduleUpdate", n.$cmpMeta$.$tagName$), i = t;
|
|
2376
2376
|
let r;
|
|
2377
|
-
return e ? r = tt(i, "componentWillLoad") : r = tt(i, "componentWillUpdate"), r = cr(r, () => tt(i, "componentWillRender")), s(), cr(r, () =>
|
|
2378
|
-
},
|
|
2377
|
+
return e ? r = tt(i, "componentWillLoad") : r = tt(i, "componentWillUpdate"), r = cr(r, () => tt(i, "componentWillRender")), s(), cr(r, () => Sc(n, i, e));
|
|
2378
|
+
}, Sc = async (n, e, t) => {
|
|
2379
2379
|
const s = n.$hostElement$, i = Ue("update", n.$cmpMeta$.$tagName$);
|
|
2380
|
-
s["s-rc"], t &&
|
|
2380
|
+
s["s-rc"], t && lc(n);
|
|
2381
2381
|
const r = Ue("render", n.$cmpMeta$.$tagName$);
|
|
2382
|
-
|
|
2383
|
-
},
|
|
2382
|
+
_c(n, e, s), r(), i(), Ec(n);
|
|
2383
|
+
}, _c = (n, e, t) => {
|
|
2384
2384
|
try {
|
|
2385
|
-
tr = e, e = e.render && e.render(), n.$flags$ &= -17, n.$flags$ |= 2, (Xe.hasRenderFn || Xe.reflect) && (Xe.vdomRender || Xe.reflect) && (Xe.hydrateServerSide ||
|
|
2385
|
+
tr = e, e = e.render && e.render(), n.$flags$ &= -17, n.$flags$ |= 2, (Xe.hasRenderFn || Xe.reflect) && (Xe.vdomRender || Xe.reflect) && (Xe.hydrateServerSide || bc(n, e));
|
|
2386
2386
|
} catch (a) {
|
|
2387
2387
|
Nt(a, n.$hostElement$);
|
|
2388
2388
|
}
|
|
2389
2389
|
return tr = null, null;
|
|
2390
|
-
},
|
|
2390
|
+
}, Ec = (n) => {
|
|
2391
2391
|
const e = n.$cmpMeta$.$tagName$, t = n.$hostElement$, s = Ue("postUpdate", e), i = t;
|
|
2392
2392
|
n.$ancestorComponent$, tt(i, "componentDidRender"), n.$flags$ & 64 ? (tt(i, "componentDidUpdate"), s()) : (n.$flags$ |= 64, tt(i, "componentDidLoad"), s());
|
|
2393
2393
|
}, tt = (n, e, t) => {
|
|
@@ -2397,9 +2397,9 @@ const kn = typeof window < "u" ? window : {}, ae = kn.document || { head: {} },
|
|
|
2397
2397
|
} catch (s) {
|
|
2398
2398
|
Nt(s);
|
|
2399
2399
|
}
|
|
2400
|
-
}, cr = (n, e) => n && n.then ? n.then(e) : e(),
|
|
2400
|
+
}, cr = (n, e) => n && n.then ? n.then(e) : e(), Ac = (n, e) => n != null && !Ns(n) ? e & 4 ? n === "false" ? !1 : n === "" || !!n : e & 2 ? parseFloat(n) : e & 1 ? String(n) : n : n, Cc = (n, e) => Sn(n).$instanceValues$.get(e), Tc = (n, e, t, s) => {
|
|
2401
2401
|
const i = Sn(n), r = n, o = i.$instanceValues$.get(e), a = i.$flags$, l = r;
|
|
2402
|
-
t =
|
|
2402
|
+
t = Ac(t, s.$members$[e][0]);
|
|
2403
2403
|
const c = Number.isNaN(o) && Number.isNaN(t);
|
|
2404
2404
|
if (t !== o && !c) {
|
|
2405
2405
|
i.$instanceValues$.set(e, t);
|
|
@@ -2417,21 +2417,21 @@ const kn = typeof window < "u" ? window : {}, ae = kn.document || { head: {} },
|
|
|
2417
2417
|
if ((a & 18) === 2) {
|
|
2418
2418
|
if (l.componentShouldUpdate && l.componentShouldUpdate(t, o, e) === !1)
|
|
2419
2419
|
return;
|
|
2420
|
-
|
|
2420
|
+
To(i, !1);
|
|
2421
2421
|
}
|
|
2422
2422
|
}
|
|
2423
2423
|
}
|
|
2424
|
-
},
|
|
2424
|
+
}, Lc = (n, e, t) => {
|
|
2425
2425
|
if (e.$members$) {
|
|
2426
2426
|
n.watchers && (e.$watchers$ = n.watchers);
|
|
2427
2427
|
const s = Object.entries(e.$members$), i = n.prototype;
|
|
2428
2428
|
s.map(([r, [o]]) => {
|
|
2429
2429
|
(o & 31 || o & 32) && Object.defineProperty(i, r, {
|
|
2430
2430
|
get() {
|
|
2431
|
-
return
|
|
2431
|
+
return Cc(this, r);
|
|
2432
2432
|
},
|
|
2433
2433
|
set(a) {
|
|
2434
|
-
|
|
2434
|
+
Tc(this, r, a, e);
|
|
2435
2435
|
},
|
|
2436
2436
|
configurable: !0,
|
|
2437
2437
|
enumerable: !0
|
|
@@ -2461,34 +2461,34 @@ const kn = typeof window < "u" ? window : {}, ae = kn.document || { head: {} },
|
|
|
2461
2461
|
}, Rc = async (n, e, t, s, i) => {
|
|
2462
2462
|
if ((e.$flags$ & 32) === 0 && (i = n.constructor, e.$flags$ |= 32, customElements.whenDefined(t.$tagName$).then(() => e.$flags$ |= 128), i.style)) {
|
|
2463
2463
|
let o = i.style;
|
|
2464
|
-
typeof o != "string" && (o = o[e.$modeName$ =
|
|
2465
|
-
const a =
|
|
2464
|
+
typeof o != "string" && (o = o[e.$modeName$ = cc(n)]);
|
|
2465
|
+
const a = xo(t, e.$modeName$);
|
|
2466
2466
|
if (!un.has(a)) {
|
|
2467
2467
|
const l = Ue("registerStyles", t.$tagName$);
|
|
2468
|
-
|
|
2468
|
+
oc(a, o, !!(t.$flags$ & 1)), l();
|
|
2469
2469
|
}
|
|
2470
2470
|
}
|
|
2471
|
-
e.$ancestorComponent$,
|
|
2472
|
-
}, Lc = (n) => {
|
|
2471
|
+
e.$ancestorComponent$, To(e, !0);
|
|
2473
2472
|
}, Oc = (n) => {
|
|
2473
|
+
}, Pc = (n) => {
|
|
2474
2474
|
if ((q.$flags$ & 1) === 0) {
|
|
2475
2475
|
const e = Sn(n), t = e.$cmpMeta$, s = Ue("connectedCallback", t.$tagName$);
|
|
2476
|
-
e.$flags$ & 1 ? (
|
|
2476
|
+
e.$flags$ & 1 ? ($o(n, e, t.$listeners$), Oc(e.$lazyInstance$)) : (e.$flags$ |= 1, t.$flags$ & 12 && Ic(n), t.$members$ && Object.entries(t.$members$).map(([i, [r]]) => {
|
|
2477
2477
|
if (r & 31 && n.hasOwnProperty(i)) {
|
|
2478
2478
|
const o = n[i];
|
|
2479
2479
|
delete n[i], n[i] = o;
|
|
2480
2480
|
}
|
|
2481
2481
|
}), Rc(n, e, t)), s();
|
|
2482
2482
|
}
|
|
2483
|
-
}, Pc = (n) => {
|
|
2484
|
-
const e = n["s-cr"] = ae.createComment("");
|
|
2485
|
-
e["s-cn"] = !0, n.insertBefore(e, n.firstChild);
|
|
2486
2483
|
}, Ic = (n) => {
|
|
2484
|
+
const e = n["s-cr"] = le.createComment("");
|
|
2485
|
+
e["s-cn"] = !0, n.insertBefore(e, n.firstChild);
|
|
2486
|
+
}, Mc = (n) => {
|
|
2487
2487
|
if ((q.$flags$ & 1) === 0) {
|
|
2488
2488
|
const e = Sn(n);
|
|
2489
2489
|
e.$rmListeners$ && (e.$rmListeners$.map((t) => t()), e.$rmListeners$ = void 0);
|
|
2490
2490
|
}
|
|
2491
|
-
},
|
|
2491
|
+
}, Lo = (n, e) => {
|
|
2492
2492
|
const t = {
|
|
2493
2493
|
$flags$: e[0],
|
|
2494
2494
|
$tagName$: e[1]
|
|
@@ -2497,13 +2497,13 @@ const kn = typeof window < "u" ? window : {}, ae = kn.document || { head: {} },
|
|
|
2497
2497
|
const s = n.prototype.connectedCallback, i = n.prototype.disconnectedCallback;
|
|
2498
2498
|
return Object.assign(n.prototype, {
|
|
2499
2499
|
__registerHost() {
|
|
2500
|
-
|
|
2500
|
+
Nc(this, t);
|
|
2501
2501
|
},
|
|
2502
2502
|
connectedCallback() {
|
|
2503
|
-
|
|
2503
|
+
Pc(this), s && s.call(this);
|
|
2504
2504
|
},
|
|
2505
2505
|
disconnectedCallback() {
|
|
2506
|
-
|
|
2506
|
+
Mc(this), i && i.call(this);
|
|
2507
2507
|
},
|
|
2508
2508
|
__attachShadow() {
|
|
2509
2509
|
this.attachShadow({
|
|
@@ -2511,17 +2511,17 @@ const kn = typeof window < "u" ? window : {}, ae = kn.document || { head: {} },
|
|
|
2511
2511
|
delegatesFocus: !!(t.$flags$ & 16)
|
|
2512
2512
|
});
|
|
2513
2513
|
}
|
|
2514
|
-
}), n.is = t.$tagName$,
|
|
2515
|
-
}, Ro = /* @__PURE__ */ new WeakMap(), Sn = (n) => Ro.get(n),
|
|
2514
|
+
}), n.is = t.$tagName$, Lc(n, t);
|
|
2515
|
+
}, Ro = /* @__PURE__ */ new WeakMap(), Sn = (n) => Ro.get(n), Nc = (n, e) => {
|
|
2516
2516
|
const t = {
|
|
2517
2517
|
$flags$: 0,
|
|
2518
2518
|
$hostElement$: n,
|
|
2519
2519
|
$cmpMeta$: e,
|
|
2520
2520
|
$instanceValues$: /* @__PURE__ */ new Map()
|
|
2521
2521
|
};
|
|
2522
|
-
return
|
|
2523
|
-
}, ur = (n, e) => e in n, Nt = (n, e) => (0, console.error)(n, e), un = /* @__PURE__ */ new Map(),
|
|
2524
|
-
n.push(t), ds || (ds = !0, e && q.$flags$ & 4 ?
|
|
2522
|
+
return $o(n, t, e.$listeners$), Ro.set(n, t);
|
|
2523
|
+
}, ur = (n, e) => e in n, Nt = (n, e) => (0, console.error)(n, e), un = /* @__PURE__ */ new Map(), Dc = [], hr = [], Oo = [], Uc = (n, e) => (t) => {
|
|
2524
|
+
n.push(t), ds || (ds = !0, e && q.$flags$ & 4 ? zc(ps) : q.raf(ps));
|
|
2525
2525
|
}, dr = (n) => {
|
|
2526
2526
|
for (let e = 0; e < n.length; e++)
|
|
2527
2527
|
try {
|
|
@@ -2531,8 +2531,8 @@ const kn = typeof window < "u" ? window : {}, ae = kn.document || { head: {} },
|
|
|
2531
2531
|
}
|
|
2532
2532
|
n.length = 0;
|
|
2533
2533
|
}, ps = () => {
|
|
2534
|
-
dr(hr), dr(
|
|
2535
|
-
},
|
|
2534
|
+
dr(hr), dr(Oo), (ds = hr.length > 0) && q.raf(ps);
|
|
2535
|
+
}, zc = (n) => tc().then(n), Bc = /* @__PURE__ */ Uc(Oo, !0), Hc = (n = {}) => {
|
|
2536
2536
|
const { content: e = "", title: t, attributes: s = [] } = n;
|
|
2537
2537
|
let i = "", r = [
|
|
2538
2538
|
{ name: "xmlns", value: "http://www.w3.org/2000/svg" },
|
|
@@ -2540,54 +2540,54 @@ const kn = typeof window < "u" ? window : {}, ae = kn.document || { head: {} },
|
|
|
2540
2540
|
...s
|
|
2541
2541
|
];
|
|
2542
2542
|
return t && (i = `<title>${t}</title>`), `<svg ${r.map((a) => `${a.name}="${a.value}"`).join(" ")}>${i}${e}</svg>`;
|
|
2543
|
-
},
|
|
2544
|
-
function
|
|
2543
|
+
}, Fc = (n) => n.replace(/<(\/?)svg([^>]*)>/g, "").trim();
|
|
2544
|
+
function jc(n) {
|
|
2545
2545
|
return `${n.getFullYear()}.${n.getMonth() + 1}`;
|
|
2546
2546
|
}
|
|
2547
|
-
class
|
|
2547
|
+
class qc {
|
|
2548
2548
|
constructor(e) {
|
|
2549
|
-
this.voca_component = e, this.voca_added =
|
|
2549
|
+
this.voca_component = e, this.voca_added = jc(/* @__PURE__ */ new Date());
|
|
2550
2550
|
}
|
|
2551
2551
|
}
|
|
2552
|
-
const
|
|
2552
|
+
const Wc = "telia-vst{display:none}", Gc = /* @__PURE__ */ Lo(class extends yo {
|
|
2553
2553
|
constructor() {
|
|
2554
|
-
super(), this.__registerHost(), this.vocaInternalUStats =
|
|
2554
|
+
super(), this.__registerHost(), this.vocaInternalUStats = $c(this, "vocaInternalUStats");
|
|
2555
2555
|
}
|
|
2556
2556
|
connectedCallback() {
|
|
2557
|
-
this.vocaInternalUStats.emit(new
|
|
2557
|
+
this.vocaInternalUStats.emit(new qc(this.dataTrackingId));
|
|
2558
2558
|
}
|
|
2559
2559
|
render() {
|
|
2560
2560
|
return et(Ds, null);
|
|
2561
2561
|
}
|
|
2562
2562
|
static get style() {
|
|
2563
|
-
return
|
|
2563
|
+
return Wc;
|
|
2564
2564
|
}
|
|
2565
2565
|
}, [0, "telia-vst", {
|
|
2566
2566
|
dataTrackingId: [1, "data-tracking-id"]
|
|
2567
2567
|
}]);
|
|
2568
|
-
function
|
|
2568
|
+
function Po() {
|
|
2569
2569
|
if (typeof customElements > "u")
|
|
2570
2570
|
return;
|
|
2571
2571
|
["telia-vst"].forEach((e) => {
|
|
2572
2572
|
switch (e) {
|
|
2573
2573
|
case "telia-vst":
|
|
2574
|
-
customElements.get(e) || customElements.define(e,
|
|
2574
|
+
customElements.get(e) || customElements.define(e, Gc);
|
|
2575
2575
|
break;
|
|
2576
2576
|
}
|
|
2577
2577
|
});
|
|
2578
2578
|
}
|
|
2579
|
-
|
|
2579
|
+
Po();
|
|
2580
2580
|
function fs() {
|
|
2581
2581
|
return typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : { vocadsIcons: void 0, vocadsIconsRegistered: !1 };
|
|
2582
2582
|
}
|
|
2583
|
-
function
|
|
2583
|
+
function Zc() {
|
|
2584
2584
|
if (typeof fs().vocadsIcons !== void 0)
|
|
2585
2585
|
return fs().vocadsIcons;
|
|
2586
2586
|
}
|
|
2587
|
-
function
|
|
2587
|
+
function Yc() {
|
|
2588
2588
|
return fs().vocadsIconsRegistered;
|
|
2589
2589
|
}
|
|
2590
|
-
const
|
|
2590
|
+
const Xc = ".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))}", Kc = /* @__PURE__ */ Lo(class extends yo {
|
|
2591
2591
|
constructor() {
|
|
2592
2592
|
super(), this.__registerHost(), this.size = "md", this.allyTitle = null, this.dataTrackingId = "telia-icon";
|
|
2593
2593
|
}
|
|
@@ -2599,8 +2599,8 @@ const Yc = ".telia-icon{display:inline-block}.telia-icon__container{display:bloc
|
|
|
2599
2599
|
getSvgString() {
|
|
2600
2600
|
if (this.svg)
|
|
2601
2601
|
return this.svg;
|
|
2602
|
-
if (
|
|
2603
|
-
const n =
|
|
2602
|
+
if (Yc() && this.name) {
|
|
2603
|
+
const n = Zc();
|
|
2604
2604
|
return n[this.name] ? n[this.name].svg : "";
|
|
2605
2605
|
}
|
|
2606
2606
|
return this.name && console.warn(this.name, "Icons bundle is not registered and will not be rendered. Check if you have registered icons bundle or use svg property"), "";
|
|
@@ -2612,14 +2612,14 @@ const Yc = ".telia-icon{display:inline-block}.telia-icon__container{display:bloc
|
|
|
2612
2612
|
{ name: "aria-hidden", value: "true" }
|
|
2613
2613
|
];
|
|
2614
2614
|
const t = Hc({
|
|
2615
|
-
content:
|
|
2615
|
+
content: Fc(n),
|
|
2616
2616
|
attributes: e,
|
|
2617
2617
|
title: this.allyTitle
|
|
2618
2618
|
});
|
|
2619
2619
|
return et(Ds, { class: `telia-icon telia-icon--${this.size}` }, et("span", { "aria-label": this.allyTitle, class: "telia-icon__container", innerHTML: t }), et("telia-vst", { dataTrackingId: this.dataTrackingId }));
|
|
2620
2620
|
}
|
|
2621
2621
|
static get style() {
|
|
2622
|
-
return
|
|
2622
|
+
return Xc;
|
|
2623
2623
|
}
|
|
2624
2624
|
}, [0, "telia-icon", {
|
|
2625
2625
|
name: [1],
|
|
@@ -2628,27 +2628,27 @@ const Yc = ".telia-icon{display:inline-block}.telia-icon__container{display:bloc
|
|
|
2628
2628
|
allyTitle: [1, "ally-title"],
|
|
2629
2629
|
dataTestid: [1, "data-testid"]
|
|
2630
2630
|
}]);
|
|
2631
|
-
function
|
|
2631
|
+
function Vc() {
|
|
2632
2632
|
if (typeof customElements > "u")
|
|
2633
2633
|
return;
|
|
2634
2634
|
["telia-icon", "telia-vst"].forEach((e) => {
|
|
2635
2635
|
switch (e) {
|
|
2636
2636
|
case "telia-icon":
|
|
2637
|
-
customElements.get(e) || customElements.define(e,
|
|
2637
|
+
customElements.get(e) || customElements.define(e, Kc);
|
|
2638
2638
|
break;
|
|
2639
2639
|
case "telia-vst":
|
|
2640
|
-
customElements.get(e) ||
|
|
2640
|
+
customElements.get(e) || Po();
|
|
2641
2641
|
break;
|
|
2642
2642
|
}
|
|
2643
2643
|
});
|
|
2644
2644
|
}
|
|
2645
|
-
|
|
2645
|
+
Vc();
|
|
2646
2646
|
/**
|
|
2647
2647
|
* @license
|
|
2648
2648
|
* Copyright 2017 Google LLC
|
|
2649
2649
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2650
2650
|
*/
|
|
2651
|
-
const
|
|
2651
|
+
const Qc = (n) => (e, t) => {
|
|
2652
2652
|
t !== void 0 ? t.addInitializer((() => {
|
|
2653
2653
|
customElements.define(n, e);
|
|
2654
2654
|
})) : customElements.define(n, e);
|
|
@@ -2658,7 +2658,7 @@ const Vc = (n) => (e, t) => {
|
|
|
2658
2658
|
* Copyright 2017 Google LLC
|
|
2659
2659
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2660
2660
|
*/
|
|
2661
|
-
const
|
|
2661
|
+
const Jc = { attribute: !0, type: String, converter: rn, reflect: !1, hasChanged: Ps }, eu = (n = Jc, e, t) => {
|
|
2662
2662
|
const { kind: s, metadata: i } = t;
|
|
2663
2663
|
let r = globalThis.litPropertyMetadata.get(i);
|
|
2664
2664
|
if (r === void 0 && globalThis.litPropertyMetadata.set(i, r = /* @__PURE__ */ new Map()), s === "setter" && ((n = Object.create(n)).wrapped = !0), r.set(t.name, n), s === "accessor") {
|
|
@@ -2680,7 +2680,7 @@ const Qc = { attribute: !0, type: String, converter: rn, reflect: !1, hasChanged
|
|
|
2680
2680
|
throw Error("Unsupported decorator location: " + s);
|
|
2681
2681
|
};
|
|
2682
2682
|
function C(n) {
|
|
2683
|
-
return (e, t) => typeof t == "object" ?
|
|
2683
|
+
return (e, t) => typeof t == "object" ? eu(n, e, t) : ((s, i, r) => {
|
|
2684
2684
|
const o = i.hasOwnProperty(r);
|
|
2685
2685
|
return i.constructor.createProperty(r, s), o ? Object.getOwnPropertyDescriptor(i, r) : void 0;
|
|
2686
2686
|
})(n, e, t);
|
|
@@ -2690,7 +2690,7 @@ function C(n) {
|
|
|
2690
2690
|
* Copyright 2017 Google LLC
|
|
2691
2691
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2692
2692
|
*/
|
|
2693
|
-
function
|
|
2693
|
+
function N(n) {
|
|
2694
2694
|
return C({ ...n, state: !0, attribute: !1 });
|
|
2695
2695
|
}
|
|
2696
2696
|
/**
|
|
@@ -2698,7 +2698,7 @@ function z(n) {
|
|
|
2698
2698
|
* Copyright 2020 Google LLC
|
|
2699
2699
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2700
2700
|
*/
|
|
2701
|
-
const
|
|
2701
|
+
const tu = (n) => n.strings === void 0;
|
|
2702
2702
|
/**
|
|
2703
2703
|
* @license
|
|
2704
2704
|
* Copyright 2017 Google LLC
|
|
@@ -2738,39 +2738,39 @@ const wt = (n, e) => {
|
|
|
2738
2738
|
if ((e = n._$AM) === void 0) break;
|
|
2739
2739
|
t = e._$AN, t.delete(n), n = e;
|
|
2740
2740
|
} while ((t == null ? void 0 : t.size) === 0);
|
|
2741
|
-
},
|
|
2741
|
+
}, Io = (n) => {
|
|
2742
2742
|
for (let e; e = n._$AM; n = e) {
|
|
2743
2743
|
let t = e._$AN;
|
|
2744
2744
|
if (t === void 0) e._$AN = t = /* @__PURE__ */ new Set();
|
|
2745
2745
|
else if (t.has(n)) break;
|
|
2746
|
-
t.add(n),
|
|
2746
|
+
t.add(n), iu(e);
|
|
2747
2747
|
}
|
|
2748
2748
|
};
|
|
2749
|
-
function
|
|
2750
|
-
this._$AN !== void 0 ? (hn(this), this._$AM = n,
|
|
2749
|
+
function nu(n) {
|
|
2750
|
+
this._$AN !== void 0 ? (hn(this), this._$AM = n, Io(this)) : this._$AM = n;
|
|
2751
2751
|
}
|
|
2752
|
-
function
|
|
2752
|
+
function su(n, e = !1, t = 0) {
|
|
2753
2753
|
const s = this._$AH, i = this._$AN;
|
|
2754
2754
|
if (i !== void 0 && i.size !== 0) if (e) if (Array.isArray(s)) for (let r = t; r < s.length; r++) wt(s[r], !1), hn(s[r]);
|
|
2755
2755
|
else s != null && (wt(s, !1), hn(s));
|
|
2756
2756
|
else wt(this, n);
|
|
2757
2757
|
}
|
|
2758
|
-
const
|
|
2759
|
-
n.type == _n.CHILD && (n._$AP ?? (n._$AP =
|
|
2758
|
+
const iu = (n) => {
|
|
2759
|
+
n.type == _n.CHILD && (n._$AP ?? (n._$AP = su), n._$AQ ?? (n._$AQ = nu));
|
|
2760
2760
|
};
|
|
2761
|
-
let
|
|
2761
|
+
let Mo = class extends zs {
|
|
2762
2762
|
constructor() {
|
|
2763
2763
|
super(...arguments), this._$AN = void 0;
|
|
2764
2764
|
}
|
|
2765
2765
|
_$AT(e, t, s) {
|
|
2766
|
-
super._$AT(e, t, s),
|
|
2766
|
+
super._$AT(e, t, s), Io(this), this.isConnected = e._$AU;
|
|
2767
2767
|
}
|
|
2768
2768
|
_$AO(e, t = !0) {
|
|
2769
2769
|
var s, i;
|
|
2770
2770
|
e !== this.isConnected && (this.isConnected = e, e ? (s = this.reconnected) == null || s.call(this) : (i = this.disconnected) == null || i.call(this)), t && (wt(this, e), hn(this));
|
|
2771
2771
|
}
|
|
2772
2772
|
setValue(e) {
|
|
2773
|
-
if (
|
|
2773
|
+
if (tu(this._$Ct)) this._$Ct._$AI(e, this);
|
|
2774
2774
|
else {
|
|
2775
2775
|
const t = [...this._$Ct._$AH];
|
|
2776
2776
|
t[this._$Ci] = e, this._$Ct._$AI(t, this, 0);
|
|
@@ -2786,17 +2786,17 @@ let Io = class extends zs {
|
|
|
2786
2786
|
* Copyright 2020 Google LLC
|
|
2787
2787
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2788
2788
|
*/
|
|
2789
|
-
const
|
|
2790
|
-
class
|
|
2789
|
+
const oe = () => new ru();
|
|
2790
|
+
class ru {
|
|
2791
2791
|
}
|
|
2792
|
-
const Yn = /* @__PURE__ */ new WeakMap(),
|
|
2792
|
+
const Yn = /* @__PURE__ */ new WeakMap(), ae = En(class extends Mo {
|
|
2793
2793
|
render(n) {
|
|
2794
|
-
return
|
|
2794
|
+
return $;
|
|
2795
2795
|
}
|
|
2796
2796
|
update(n, [e]) {
|
|
2797
2797
|
var s;
|
|
2798
2798
|
const t = e !== this.G;
|
|
2799
|
-
return t && this.G !== void 0 && this.rt(void 0), (t || this.lt !== this.ct) && (this.G = e, this.ht = (s = n.options) == null ? void 0 : s.host, this.rt(this.ct = n.element)),
|
|
2799
|
+
return t && this.G !== void 0 && this.rt(void 0), (t || this.lt !== this.ct) && (this.G = e, this.ht = (s = n.options) == null ? void 0 : s.host, this.rt(this.ct = n.element)), $;
|
|
2800
2800
|
}
|
|
2801
2801
|
rt(n) {
|
|
2802
2802
|
if (this.isConnected || (n = void 0), typeof this.G == "function") {
|
|
@@ -2845,10 +2845,10 @@ const rt = En(class extends zs {
|
|
|
2845
2845
|
return _e;
|
|
2846
2846
|
}
|
|
2847
2847
|
});
|
|
2848
|
-
var
|
|
2848
|
+
var ou = Object.defineProperty, au = (n, e, t, s) => {
|
|
2849
2849
|
for (var i = void 0, r = n.length - 1, o; r >= 0; r--)
|
|
2850
2850
|
(o = n[r]) && (i = o(e, t, i) || i);
|
|
2851
|
-
return i &&
|
|
2851
|
+
return i && ou(e, t, i), i;
|
|
2852
2852
|
};
|
|
2853
2853
|
const Js = class Js extends M {
|
|
2854
2854
|
constructor() {
|
|
@@ -2859,7 +2859,7 @@ const Js = class Js extends M {
|
|
|
2859
2859
|
return (t = this.shadowRoot) == null || t.appendChild(e), e;
|
|
2860
2860
|
}
|
|
2861
2861
|
render() {
|
|
2862
|
-
return this.anchor === "BottomLeft" ? this.renderRoot.host.classList.add("bottom-left") : this.anchor === "BottomRight" && this.renderRoot.host.classList.add("bottom-right"),
|
|
2862
|
+
return this.anchor === "BottomLeft" ? this.renderRoot.host.classList.add("bottom-left") : this.anchor === "BottomRight" && this.renderRoot.host.classList.add("bottom-right"), $;
|
|
2863
2863
|
}
|
|
2864
2864
|
};
|
|
2865
2865
|
Js.styles = [
|
|
@@ -2882,12 +2882,12 @@ Js.styles = [
|
|
|
2882
2882
|
`
|
|
2883
2883
|
];
|
|
2884
2884
|
let dn = Js;
|
|
2885
|
-
|
|
2885
|
+
au([
|
|
2886
2886
|
C({ attribute: !0 })
|
|
2887
2887
|
], dn.prototype, "anchor");
|
|
2888
|
-
const
|
|
2888
|
+
const lu = /* @__PURE__ */ new WeakMap();
|
|
2889
2889
|
let pr = 0;
|
|
2890
|
-
const Xn = /* @__PURE__ */ new Map(), fr = /* @__PURE__ */ new WeakSet(), gr = () => new Promise(((n) => requestAnimationFrame(n))),
|
|
2890
|
+
const Xn = /* @__PURE__ */ new Map(), fr = /* @__PURE__ */ new WeakSet(), gr = () => new Promise(((n) => requestAnimationFrame(n))), cu = [{ transform: "translateX(100%) scale(0)", opacity: 0 }], uu = [{ opacity: 0 }], mr = [{ opacity: 0 }, { opacity: 1 }], vr = (n, e) => {
|
|
2891
2891
|
const t = n - e;
|
|
2892
2892
|
return t === 0 ? void 0 : t;
|
|
2893
2893
|
}, br = (n, e) => {
|
|
@@ -2909,8 +2909,8 @@ const Xn = /* @__PURE__ */ new Map(), fr = /* @__PURE__ */ new WeakSet(), gr = (
|
|
|
2909
2909
|
e === 0 && (e = 1, t = { height: "1px" });
|
|
2910
2910
|
const s = br(n, e);
|
|
2911
2911
|
return { value: s, overrideFrom: t, transform: s == null || isNaN(s) ? void 0 : `scaleY(${s})` };
|
|
2912
|
-
} },
|
|
2913
|
-
class
|
|
2912
|
+
} }, hu = { duration: 333, easing: "ease-in-out" }, du = ["left", "top", "width", "height", "opacity", "color", "background"], yr = /* @__PURE__ */ new WeakMap();
|
|
2913
|
+
class pu extends Mo {
|
|
2914
2914
|
constructor(e) {
|
|
2915
2915
|
if (super(e), this.t = !1, this.i = null, this.o = null, this.h = !0, this.shouldLog = !1, e.type === _n.CHILD) throw Error("The `animate` directive must be used in attribute position.");
|
|
2916
2916
|
this.createFinished();
|
|
@@ -2926,10 +2926,10 @@ class du extends Io {
|
|
|
2926
2926
|
(e = this.l) == null || e.call(this), this.l = void 0;
|
|
2927
2927
|
}
|
|
2928
2928
|
render(e) {
|
|
2929
|
-
return
|
|
2929
|
+
return $;
|
|
2930
2930
|
}
|
|
2931
2931
|
getController() {
|
|
2932
|
-
return
|
|
2932
|
+
return lu.get(this.u);
|
|
2933
2933
|
}
|
|
2934
2934
|
isDisabled() {
|
|
2935
2935
|
var e;
|
|
@@ -2943,7 +2943,7 @@ class du extends Io {
|
|
|
2943
2943
|
p(e) {
|
|
2944
2944
|
e = e ?? {};
|
|
2945
2945
|
const t = this.getController();
|
|
2946
|
-
t !== void 0 && ((e = { ...t.defaultOptions, ...e }).keyframeOptions = { ...t.defaultOptions.keyframeOptions, ...e.keyframeOptions }), e.properties ?? (e.properties =
|
|
2946
|
+
t !== void 0 && ((e = { ...t.defaultOptions, ...e }).keyframeOptions = { ...t.defaultOptions.keyframeOptions, ...e.keyframeOptions }), e.properties ?? (e.properties = du), this.options = e;
|
|
2947
2947
|
}
|
|
2948
2948
|
m() {
|
|
2949
2949
|
const e = {}, t = this.element.getBoundingClientRect(), s = getComputedStyle(this.element);
|
|
@@ -3032,7 +3032,7 @@ class du extends Io {
|
|
|
3032
3032
|
})), e;
|
|
3033
3033
|
}
|
|
3034
3034
|
j(e, t = this.O()) {
|
|
3035
|
-
const s = { ...
|
|
3035
|
+
const s = { ...hu };
|
|
3036
3036
|
return t.forEach(((i) => Object.assign(s, i.options.keyframeOptions))), Object.assign(s, e), s;
|
|
3037
3037
|
}
|
|
3038
3038
|
N(e, t, s) {
|
|
@@ -3081,48 +3081,48 @@ class du extends Io {
|
|
|
3081
3081
|
this.shouldLog && !this.isDisabled() && console.log(e, this.options.id, t);
|
|
3082
3082
|
}
|
|
3083
3083
|
}
|
|
3084
|
-
const gs = En(
|
|
3084
|
+
const gs = En(pu), fe = (n, e, t) => {
|
|
3085
3085
|
n && t.style.setProperty(e, n);
|
|
3086
|
-
},
|
|
3086
|
+
}, No = (n, e) => {
|
|
3087
3087
|
var t, s, i, r, o, a, l, c, u;
|
|
3088
|
-
|
|
3088
|
+
fe((t = n.colors) == null ? void 0 : t.primaryBackground, "--primary-background", e), fe(
|
|
3089
3089
|
(s = n.colors) == null ? void 0 : s.textOnPrimaryBackground,
|
|
3090
3090
|
"--text-on-primary-background",
|
|
3091
3091
|
e
|
|
3092
|
-
),
|
|
3092
|
+
), fe(
|
|
3093
3093
|
(i = n.colors) == null ? void 0 : i.secondaryBackground,
|
|
3094
3094
|
"--secondary-background",
|
|
3095
3095
|
e
|
|
3096
|
-
),
|
|
3096
|
+
), fe(
|
|
3097
3097
|
(r = n.colors) == null ? void 0 : r.textOnSecondaryBackground,
|
|
3098
3098
|
"--text-on-secondary-background",
|
|
3099
3099
|
e
|
|
3100
|
-
),
|
|
3100
|
+
), fe(
|
|
3101
3101
|
(o = n.colors) == null ? void 0 : o.interactiveDestructiveBackground,
|
|
3102
3102
|
"--destructive-color",
|
|
3103
3103
|
e
|
|
3104
|
-
),
|
|
3104
|
+
), fe(
|
|
3105
3105
|
(a = n.colors) == null ? void 0 : a.interactiveTextOnDestructiveBackground,
|
|
3106
3106
|
"--text-on-destructive-color",
|
|
3107
3107
|
e
|
|
3108
|
-
),
|
|
3108
|
+
), fe(
|
|
3109
3109
|
(l = n.colors) == null ? void 0 : l.interactivePrimaryBackground,
|
|
3110
3110
|
"--interactive-primary-background",
|
|
3111
3111
|
e
|
|
3112
|
-
),
|
|
3112
|
+
), fe(
|
|
3113
3113
|
(c = n.colors) == null ? void 0 : c.interactiveTextOnPrimaryBackground,
|
|
3114
3114
|
"--interactive-text-on-primary-background",
|
|
3115
3115
|
e
|
|
3116
|
-
),
|
|
3116
|
+
), fe((u = n.colors) == null ? void 0 : u.focusColor, "--focus-color", e);
|
|
3117
3117
|
};
|
|
3118
|
-
var
|
|
3118
|
+
var fu = Object.defineProperty, Dt = (n, e, t, s) => {
|
|
3119
3119
|
for (var i = void 0, r = n.length - 1, o; r >= 0; r--)
|
|
3120
3120
|
(o = n[r]) && (i = o(e, t, i) || i);
|
|
3121
|
-
return i &&
|
|
3121
|
+
return i && fu(e, t, i), i;
|
|
3122
3122
|
};
|
|
3123
3123
|
const ei = class ei extends M {
|
|
3124
3124
|
constructor() {
|
|
3125
|
-
super(...arguments), this.active = !1, this.triggerVisible = !0, this.loaded = !1, this.containerRef =
|
|
3125
|
+
super(...arguments), this.active = !1, this.triggerVisible = !0, this.loaded = !1, this.containerRef = oe(), this.widgetActive$ = new F(!1), this.componentIsDestroyed$ = new I();
|
|
3126
3126
|
}
|
|
3127
3127
|
async connectedCallback() {
|
|
3128
3128
|
super.connectedCallback(), this.icon = await this._renderSymbol(), this.loaded = !0, this._applyBranding();
|
|
@@ -3157,7 +3157,7 @@ const ei = class ei extends M {
|
|
|
3157
3157
|
}
|
|
3158
3158
|
_applyBranding() {
|
|
3159
3159
|
var e;
|
|
3160
|
-
(e = this.application) != null && e.settings &&
|
|
3160
|
+
(e = this.application) != null && e.settings && No(this.application.settings.branding, this);
|
|
3161
3161
|
}
|
|
3162
3162
|
async _renderSymbol() {
|
|
3163
3163
|
var a, l, c;
|
|
@@ -3166,8 +3166,8 @@ const ei = class ei extends M {
|
|
|
3166
3166
|
return w` <img src=${t} class="trigger-icon" alt="" /> `;
|
|
3167
3167
|
const s = (c = this.application) == null ? void 0 : c.triggerIcon;
|
|
3168
3168
|
if (!s)
|
|
3169
|
-
return
|
|
3170
|
-
const i = async (u) =>
|
|
3169
|
+
return $;
|
|
3170
|
+
const i = async (u) => Ql, { type: r, content: o } = s;
|
|
3171
3171
|
switch (r) {
|
|
3172
3172
|
case "Telia": {
|
|
3173
3173
|
const u = await i();
|
|
@@ -3175,7 +3175,7 @@ const ei = class ei extends M {
|
|
|
3175
3175
|
class="trigger-icon"
|
|
3176
3176
|
svg=${u.svg}
|
|
3177
3177
|
size="lg"
|
|
3178
|
-
></telia-icon>` :
|
|
3178
|
+
></telia-icon>` : $;
|
|
3179
3179
|
}
|
|
3180
3180
|
// case 'FontAwesome':
|
|
3181
3181
|
// return html`<i class="trigger-fa-icon fa fa-${content}"></i>`;
|
|
@@ -3185,7 +3185,7 @@ const ei = class ei extends M {
|
|
|
3185
3185
|
// style="background: url(${content}) no-repeat center center;background-size: contain;"
|
|
3186
3186
|
// ></i>`;
|
|
3187
3187
|
default:
|
|
3188
|
-
return
|
|
3188
|
+
return $;
|
|
3189
3189
|
}
|
|
3190
3190
|
}
|
|
3191
3191
|
hideTrigger() {
|
|
@@ -3201,7 +3201,7 @@ const ei = class ei extends M {
|
|
|
3201
3201
|
"trigger-container": !0,
|
|
3202
3202
|
hidden: !this.triggerVisible
|
|
3203
3203
|
})}
|
|
3204
|
-
${
|
|
3204
|
+
${ae(this.containerRef)}
|
|
3205
3205
|
>
|
|
3206
3206
|
${!this.active && ((i = (s = (t = (e = this.application) == null ? void 0 : e.settings) == null ? void 0 : t.branding) == null ? void 0 : s.other) != null && i.showButtonLabel) ? w`
|
|
3207
3207
|
<button
|
|
@@ -3211,14 +3211,14 @@ const ei = class ei extends M {
|
|
|
3211
3211
|
@click=${this.toggleActive}
|
|
3212
3212
|
${gs({
|
|
3213
3213
|
keyframeOptions: {},
|
|
3214
|
-
in:
|
|
3214
|
+
in: cu,
|
|
3215
3215
|
stabilizeOut: !0,
|
|
3216
3216
|
skipInitial: !1
|
|
3217
3217
|
})}
|
|
3218
3218
|
>
|
|
3219
3219
|
${this.application.settings.branding.other.buttonLabelText ?? "Widget trigger"}
|
|
3220
3220
|
</button>
|
|
3221
|
-
` :
|
|
3221
|
+
` : $}
|
|
3222
3222
|
|
|
3223
3223
|
<button
|
|
3224
3224
|
type="button"
|
|
@@ -3394,28 +3394,28 @@ ei.styles = [
|
|
|
3394
3394
|
}
|
|
3395
3395
|
`
|
|
3396
3396
|
];
|
|
3397
|
-
let
|
|
3397
|
+
let ye = ei;
|
|
3398
3398
|
Dt([
|
|
3399
3399
|
C({ attribute: !1 })
|
|
3400
|
-
],
|
|
3400
|
+
], ye.prototype, "application");
|
|
3401
3401
|
Dt([
|
|
3402
|
-
|
|
3403
|
-
],
|
|
3402
|
+
N()
|
|
3403
|
+
], ye.prototype, "active");
|
|
3404
3404
|
Dt([
|
|
3405
|
-
|
|
3406
|
-
],
|
|
3405
|
+
N()
|
|
3406
|
+
], ye.prototype, "triggerVisible");
|
|
3407
3407
|
Dt([
|
|
3408
|
-
|
|
3409
|
-
],
|
|
3408
|
+
N()
|
|
3409
|
+
], ye.prototype, "loaded");
|
|
3410
3410
|
Dt([
|
|
3411
|
-
|
|
3412
|
-
],
|
|
3413
|
-
var
|
|
3411
|
+
N()
|
|
3412
|
+
], ye.prototype, "icon");
|
|
3413
|
+
var gu = Object.defineProperty, Oe = (n, e, t, s) => {
|
|
3414
3414
|
for (var i = void 0, r = n.length - 1, o; r >= 0; r--)
|
|
3415
3415
|
(o = n[r]) && (i = o(e, t, i) || i);
|
|
3416
|
-
return i &&
|
|
3416
|
+
return i && gu(e, t, i), i;
|
|
3417
3417
|
};
|
|
3418
|
-
const
|
|
3418
|
+
const Do = (n) => {
|
|
3419
3419
|
const t = class t extends n {
|
|
3420
3420
|
constructor() {
|
|
3421
3421
|
super(...arguments), this.properties = {}, this.context = {}, this.layout = {}, this.nodes = [];
|
|
@@ -3471,7 +3471,7 @@ const No = (n) => {
|
|
|
3471
3471
|
], e.prototype, "application"), Oe([
|
|
3472
3472
|
C({ attribute: !1 })
|
|
3473
3473
|
], e.prototype, "parent"), e;
|
|
3474
|
-
}, ti = class ti extends
|
|
3474
|
+
}, ti = class ti extends Do(M) {
|
|
3475
3475
|
render() {
|
|
3476
3476
|
return w`Non resolved component`;
|
|
3477
3477
|
}
|
|
@@ -3489,19 +3489,19 @@ let ms = ti;
|
|
|
3489
3489
|
* Copyright 2021 Google LLC
|
|
3490
3490
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3491
3491
|
*/
|
|
3492
|
-
function*
|
|
3492
|
+
function* mu(n, e) {
|
|
3493
3493
|
if (n !== void 0) {
|
|
3494
3494
|
let t = 0;
|
|
3495
3495
|
for (const s of n) yield e(s, t++);
|
|
3496
3496
|
}
|
|
3497
3497
|
}
|
|
3498
|
-
var
|
|
3498
|
+
var Bs = /* @__PURE__ */ ((n) => (n.Inline = "inline", n.Trigger = "trigger", n))(Bs || {}), Uo = /* @__PURE__ */ ((n) => (n.NonAuthenticated = "non-authenticated", n.Authenticating = "authenticating", n.Authenticated = "authenticated", n.ChatEnded = "chat-ended", n))(Uo || {});
|
|
3499
3499
|
/**
|
|
3500
3500
|
* @license
|
|
3501
3501
|
* Copyright 2021 Google LLC
|
|
3502
3502
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3503
3503
|
*/
|
|
3504
|
-
let
|
|
3504
|
+
let zo = class extends Event {
|
|
3505
3505
|
constructor(e, t, s, i) {
|
|
3506
3506
|
super("context-request", { bubbles: !0, composed: !0 }), this.context = e, this.contextTarget = t, this.callback = s, this.subscribe = i ?? !1;
|
|
3507
3507
|
}
|
|
@@ -3533,7 +3533,7 @@ let $r = class {
|
|
|
3533
3533
|
this.unsubscribe && (this.unsubscribe(), this.unsubscribe = void 0);
|
|
3534
3534
|
}
|
|
3535
3535
|
dispatchRequest() {
|
|
3536
|
-
this.host.dispatchEvent(new
|
|
3536
|
+
this.host.dispatchEvent(new zo(this.context, this.host, this.t, this.subscribe));
|
|
3537
3537
|
}
|
|
3538
3538
|
};
|
|
3539
3539
|
/**
|
|
@@ -3541,7 +3541,7 @@ let $r = class {
|
|
|
3541
3541
|
* Copyright 2021 Google LLC
|
|
3542
3542
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3543
3543
|
*/
|
|
3544
|
-
class
|
|
3544
|
+
class vu {
|
|
3545
3545
|
get value() {
|
|
3546
3546
|
return this.o;
|
|
3547
3547
|
}
|
|
@@ -3574,12 +3574,12 @@ class mu {
|
|
|
3574
3574
|
* Copyright 2021 Google LLC
|
|
3575
3575
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3576
3576
|
*/
|
|
3577
|
-
let
|
|
3577
|
+
let bu = class extends Event {
|
|
3578
3578
|
constructor(e, t) {
|
|
3579
3579
|
super("context-provider", { bubbles: !0, composed: !0 }), this.context = e, this.contextTarget = t;
|
|
3580
3580
|
}
|
|
3581
3581
|
};
|
|
3582
|
-
class xr extends
|
|
3582
|
+
class xr extends vu {
|
|
3583
3583
|
constructor(e, t, s) {
|
|
3584
3584
|
var i, r;
|
|
3585
3585
|
super(t.context !== void 0 ? t.initialValue : s), this.onContextRequest = (o) => {
|
|
@@ -3589,7 +3589,7 @@ class xr extends mu {
|
|
|
3589
3589
|
}, this.onProviderRequest = (o) => {
|
|
3590
3590
|
if (o.context !== this.context || (o.contextTarget ?? o.composedPath()[0]) === this.host) return;
|
|
3591
3591
|
const a = /* @__PURE__ */ new Set();
|
|
3592
|
-
for (const [l, { consumerHost: c }] of this.subscriptions) a.has(l) || (a.add(l), c.dispatchEvent(new
|
|
3592
|
+
for (const [l, { consumerHost: c }] of this.subscriptions) a.has(l) || (a.add(l), c.dispatchEvent(new zo(this.context, c, l, !0)));
|
|
3593
3593
|
o.stopPropagation();
|
|
3594
3594
|
}, this.host = e, t.context !== void 0 ? this.context = t.context : this.context = t, this.attachListeners(), (r = (i = this.host).addController) == null || r.call(i, this);
|
|
3595
3595
|
}
|
|
@@ -3597,7 +3597,7 @@ class xr extends mu {
|
|
|
3597
3597
|
this.host.addEventListener("context-request", this.onContextRequest), this.host.addEventListener("context-provider", this.onProviderRequest);
|
|
3598
3598
|
}
|
|
3599
3599
|
hostConnected() {
|
|
3600
|
-
this.host.dispatchEvent(new
|
|
3600
|
+
this.host.dispatchEvent(new bu(this.context, this.host));
|
|
3601
3601
|
}
|
|
3602
3602
|
}
|
|
3603
3603
|
/**
|
|
@@ -3605,7 +3605,7 @@ class xr extends mu {
|
|
|
3605
3605
|
* Copyright 2017 Google LLC
|
|
3606
3606
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3607
3607
|
*/
|
|
3608
|
-
function
|
|
3608
|
+
function yu({ context: n }) {
|
|
3609
3609
|
return (e, t) => {
|
|
3610
3610
|
const s = /* @__PURE__ */ new WeakMap();
|
|
3611
3611
|
if (typeof t == "object") return { get() {
|
|
@@ -3643,7 +3643,7 @@ function bu({ context: n }) {
|
|
|
3643
3643
|
* Copyright 2022 Google LLC
|
|
3644
3644
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3645
3645
|
*/
|
|
3646
|
-
function
|
|
3646
|
+
function Bo({ context: n, subscribe: e }) {
|
|
3647
3647
|
return (t, s) => {
|
|
3648
3648
|
typeof s == "object" ? s.addInitializer((function() {
|
|
3649
3649
|
new $r(this, { context: n, callback: (i) => {
|
|
@@ -3656,14 +3656,14 @@ function Uo({ context: n, subscribe: e }) {
|
|
|
3656
3656
|
}));
|
|
3657
3657
|
};
|
|
3658
3658
|
}
|
|
3659
|
-
var
|
|
3659
|
+
var $u = Object.defineProperty, Ho = (n, e, t, s) => {
|
|
3660
3660
|
for (var i = void 0, r = n.length - 1, o; r >= 0; r--)
|
|
3661
3661
|
(o = n[r]) && (i = o(e, t, i) || i);
|
|
3662
|
-
return i &&
|
|
3662
|
+
return i && $u(e, t, i), i;
|
|
3663
3663
|
};
|
|
3664
|
-
const
|
|
3664
|
+
const Hs = "application", ni = class ni extends M {
|
|
3665
3665
|
constructor() {
|
|
3666
|
-
super(...arguments), this.nodes = [], this.wrapperRef =
|
|
3666
|
+
super(...arguments), this.nodes = [], this.wrapperRef = oe(), this.fullscreen = !1, this.isReady = new F(!1);
|
|
3667
3667
|
}
|
|
3668
3668
|
addChild(e) {
|
|
3669
3669
|
e.parent = this, this.nodes.push(e);
|
|
@@ -3672,7 +3672,7 @@ const Bs = "application", ni = class ni extends M {
|
|
|
3672
3672
|
if (!this.wrapperRef.value)
|
|
3673
3673
|
return;
|
|
3674
3674
|
const e = this.application.settings;
|
|
3675
|
-
e != null && e.branding &&
|
|
3675
|
+
e != null && e.branding && No(e.branding, this.wrapperRef.value);
|
|
3676
3676
|
}
|
|
3677
3677
|
applyStyles() {
|
|
3678
3678
|
if (!this.wrapperRef.value)
|
|
@@ -3688,8 +3688,8 @@ const Bs = "application", ni = class ni extends M {
|
|
|
3688
3688
|
render() {
|
|
3689
3689
|
var s, i;
|
|
3690
3690
|
const e = this.application.settings.components.conversation;
|
|
3691
|
-
return ((i = (s = e == null ? void 0 : e.properties) == null ? void 0 : s.chat) == null ? void 0 : i.isThirdPartyWidget) ? this.renderRoot.host.classList.add("third-party") : this.application.renderStrategy ===
|
|
3692
|
-
${
|
|
3691
|
+
return ((i = (s = e == null ? void 0 : e.properties) == null ? void 0 : s.chat) == null ? void 0 : i.isThirdPartyWidget) ? this.renderRoot.host.classList.add("third-party") : this.application.renderStrategy === Bs.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"), w`<div class="widget-container" ${ae(this.wrapperRef)}>
|
|
3692
|
+
${mu(this.nodes, (r) => r)}
|
|
3693
3693
|
</div>`;
|
|
3694
3694
|
}
|
|
3695
3695
|
};
|
|
@@ -3860,17 +3860,17 @@ ni.styles = Z`
|
|
|
3860
3860
|
}
|
|
3861
3861
|
`;
|
|
3862
3862
|
let At = ni;
|
|
3863
|
-
|
|
3863
|
+
Ho([
|
|
3864
3864
|
C({ attribute: !0 })
|
|
3865
3865
|
], At.prototype, "fullscreen");
|
|
3866
|
-
|
|
3866
|
+
Ho([
|
|
3867
3867
|
C({ attribute: !1 }),
|
|
3868
|
-
|
|
3868
|
+
yu({ context: Hs })
|
|
3869
3869
|
], At.prototype, "application");
|
|
3870
|
-
var
|
|
3870
|
+
var xu = Object.defineProperty, Fs = (n, e, t, s) => {
|
|
3871
3871
|
for (var i = void 0, r = n.length - 1, o; r >= 0; r--)
|
|
3872
3872
|
(o = n[r]) && (i = o(e, t, i) || i);
|
|
3873
|
-
return i &&
|
|
3873
|
+
return i && xu(e, t, i), i;
|
|
3874
3874
|
};
|
|
3875
3875
|
const si = class si extends M {
|
|
3876
3876
|
constructor() {
|
|
@@ -3896,9 +3896,9 @@ const si = class si extends M {
|
|
|
3896
3896
|
}
|
|
3897
3897
|
render() {
|
|
3898
3898
|
if (!this.widget || this.status !== "activated")
|
|
3899
|
-
return
|
|
3900
|
-
if (this.widget.renderStrategy ===
|
|
3901
|
-
const e = new
|
|
3899
|
+
return $;
|
|
3900
|
+
if (this.widget.renderStrategy === Bs.Trigger) {
|
|
3901
|
+
const e = new ye();
|
|
3902
3902
|
return e.application = this.widget, e;
|
|
3903
3903
|
}
|
|
3904
3904
|
return this.widget.render();
|
|
@@ -3916,17 +3916,17 @@ Fs([
|
|
|
3916
3916
|
C({ attribute: !0 })
|
|
3917
3917
|
], ot.prototype, "name");
|
|
3918
3918
|
Fs([
|
|
3919
|
-
|
|
3919
|
+
N()
|
|
3920
3920
|
], ot.prototype, "widget");
|
|
3921
3921
|
Fs([
|
|
3922
|
-
|
|
3922
|
+
N()
|
|
3923
3923
|
], ot.prototype, "status");
|
|
3924
3924
|
customElements.get("ace-trigger-slot") || customElements.define("ace-trigger-slot", dn);
|
|
3925
|
-
customElements.get("ace-trigger") || customElements.define("ace-trigger",
|
|
3925
|
+
customElements.get("ace-trigger") || customElements.define("ace-trigger", ye);
|
|
3926
3926
|
customElements.get("ace-unresolved-component") || customElements.define("ace-unresolved-component", ms);
|
|
3927
3927
|
customElements.get("ace-wrapper") || customElements.define("ace-wrapper", At);
|
|
3928
3928
|
customElements.get("ace-widget") || customElements.define("ace-widget", ot);
|
|
3929
|
-
class
|
|
3929
|
+
class wu {
|
|
3930
3930
|
constructor(e) {
|
|
3931
3931
|
this._message = null, this._host = e, e.addController(this);
|
|
3932
3932
|
}
|
|
@@ -3998,7 +3998,7 @@ class wr {
|
|
|
3998
3998
|
return this.component.platform.registeredProviders.get(e);
|
|
3999
3999
|
}
|
|
4000
4000
|
}
|
|
4001
|
-
class
|
|
4001
|
+
class ku {
|
|
4002
4002
|
constructor(e) {
|
|
4003
4003
|
this.component = e, this.currentSession$ = new F(null), this.sessions = [], this.storage = null, sn(e, "handover").subscribe((t) => {
|
|
4004
4004
|
const s = this._createNewSession(
|
|
@@ -4096,9 +4096,9 @@ class wu {
|
|
|
4096
4096
|
return this.component.properties.providers[0];
|
|
4097
4097
|
}
|
|
4098
4098
|
}
|
|
4099
|
-
class
|
|
4099
|
+
class Su {
|
|
4100
4100
|
constructor(e, t) {
|
|
4101
|
-
this.state$ = e, this.component = t, this.entries$ = new F([]), this.session = () => this.session$, this.isTyping = () => this.isTyping$, this.entries = () => this.entries$.asObservable(), this.sessionService = new
|
|
4101
|
+
this.state$ = e, this.component = t, this.entries$ = new F([]), this.session = () => this.session$, this.isTyping = () => this.isTyping$, this.entries = () => this.entries$.asObservable(), this.sessionService = new ku(this.component), this.session$ = this.sessionService.currentSession(), this.isTyping$ = this.session$.pipe(
|
|
4102
4102
|
Je((s) => s ? s.provider$.pipe(
|
|
4103
4103
|
Je((i) => i ? i.isTyping() : os(!1))
|
|
4104
4104
|
) : os(!1))
|
|
@@ -4136,7 +4136,7 @@ class ku {
|
|
|
4136
4136
|
return [...r, ...o];
|
|
4137
4137
|
})
|
|
4138
4138
|
);
|
|
4139
|
-
return
|
|
4139
|
+
return xl(t, s);
|
|
4140
4140
|
})
|
|
4141
4141
|
).subscribe((e) => {
|
|
4142
4142
|
this.entries$.next(e);
|
|
@@ -4147,10 +4147,10 @@ class ku {
|
|
|
4147
4147
|
(e = this.sessionService) == null || e.startSession();
|
|
4148
4148
|
}
|
|
4149
4149
|
}
|
|
4150
|
-
var
|
|
4150
|
+
var _u = Object.defineProperty, Fo = (n, e, t, s) => {
|
|
4151
4151
|
for (var i = void 0, r = n.length - 1, o; r >= 0; r--)
|
|
4152
4152
|
(o = n[r]) && (i = o(e, t, i) || i);
|
|
4153
|
-
return i &&
|
|
4153
|
+
return i && _u(e, t, i), i;
|
|
4154
4154
|
};
|
|
4155
4155
|
const ii = class ii extends M {
|
|
4156
4156
|
connectedCallback() {
|
|
@@ -4168,7 +4168,7 @@ const ii = class ii extends M {
|
|
|
4168
4168
|
}
|
|
4169
4169
|
_renderTimestamp(e, t) {
|
|
4170
4170
|
if (!e && !t)
|
|
4171
|
-
return
|
|
4171
|
+
return $;
|
|
4172
4172
|
let s = "";
|
|
4173
4173
|
e ? t ? s = `${e}: ${this._getTimestamp(t)}` : s = e : t && (s = this._getTimestamp(t));
|
|
4174
4174
|
const i = this.application.texts.getOrFallback(
|
|
@@ -4184,13 +4184,13 @@ const ii = class ii extends M {
|
|
|
4184
4184
|
}
|
|
4185
4185
|
_renderDeliveryStatus(e) {
|
|
4186
4186
|
return e === "delivered" ? w`<telia-icon
|
|
4187
|
-
svg=${
|
|
4187
|
+
svg=${Xl.svg}
|
|
4188
4188
|
size="sm"
|
|
4189
4189
|
></telia-icon>` : e === "failed" ? w`<telia-icon
|
|
4190
|
-
svg=${
|
|
4190
|
+
svg=${Yl.svg}
|
|
4191
4191
|
size="sm"
|
|
4192
4192
|
title="Message could not be delivered"
|
|
4193
|
-
></telia-icon>` : w`<telia-icon svg=${
|
|
4193
|
+
></telia-icon>` : w`<telia-icon svg=${mo.svg} size="sm"></telia-icon>`;
|
|
4194
4194
|
}
|
|
4195
4195
|
_dispatchEntryAction(e) {
|
|
4196
4196
|
this.entry.actions$.next(e.detail);
|
|
@@ -4198,7 +4198,7 @@ const ii = class ii extends M {
|
|
|
4198
4198
|
render() {
|
|
4199
4199
|
var e, t;
|
|
4200
4200
|
switch (this.entry.type) {
|
|
4201
|
-
case
|
|
4201
|
+
case be.System:
|
|
4202
4202
|
return w`
|
|
4203
4203
|
<div class="conversation-system-message">
|
|
4204
4204
|
${this.entry.messages.map(
|
|
@@ -4216,7 +4216,7 @@ const ii = class ii extends M {
|
|
|
4216
4216
|
<span>${this._getTimestamp(this.entry.timestamp)}</span>
|
|
4217
4217
|
</div>
|
|
4218
4218
|
`;
|
|
4219
|
-
case
|
|
4219
|
+
case be.Agent:
|
|
4220
4220
|
return w`<div
|
|
4221
4221
|
class=${rt({
|
|
4222
4222
|
"conversation-agent-message": !0,
|
|
@@ -4225,7 +4225,7 @@ const ii = class ii extends M {
|
|
|
4225
4225
|
>
|
|
4226
4226
|
${typeof ((t = this.entry.sender) == null ? void 0 : t.avatar) == "string" ? w`<div class="avatar">
|
|
4227
4227
|
<img src=${this.entry.sender.avatar} />
|
|
4228
|
-
</div>` :
|
|
4228
|
+
</div>` : $}
|
|
4229
4229
|
|
|
4230
4230
|
<div class="entry-content">
|
|
4231
4231
|
${this.entry.messages.map(
|
|
@@ -4245,7 +4245,7 @@ const ii = class ii extends M {
|
|
|
4245
4245
|
)}
|
|
4246
4246
|
</div>
|
|
4247
4247
|
</div>`;
|
|
4248
|
-
case
|
|
4248
|
+
case be.User:
|
|
4249
4249
|
return w`<div
|
|
4250
4250
|
class=${rt({
|
|
4251
4251
|
"conversation-user-message": !0,
|
|
@@ -4272,7 +4272,7 @@ const ii = class ii extends M {
|
|
|
4272
4272
|
</div>
|
|
4273
4273
|
</div>`;
|
|
4274
4274
|
default:
|
|
4275
|
-
return
|
|
4275
|
+
return $;
|
|
4276
4276
|
}
|
|
4277
4277
|
}
|
|
4278
4278
|
};
|
|
@@ -4412,17 +4412,17 @@ ii.styles = [
|
|
|
4412
4412
|
`
|
|
4413
4413
|
];
|
|
4414
4414
|
let Ct = ii;
|
|
4415
|
-
|
|
4415
|
+
Fo([
|
|
4416
4416
|
C({ attribute: !1 })
|
|
4417
4417
|
], Ct.prototype, "entry");
|
|
4418
|
-
|
|
4419
|
-
|
|
4418
|
+
Fo([
|
|
4419
|
+
Bo({ context: Hs }),
|
|
4420
4420
|
C({ attribute: !1 })
|
|
4421
4421
|
], Ct.prototype, "application");
|
|
4422
|
-
var
|
|
4422
|
+
var Eu = Object.defineProperty, jo = (n, e, t, s) => {
|
|
4423
4423
|
for (var i = void 0, r = n.length - 1, o; r >= 0; r--)
|
|
4424
4424
|
(o = n[r]) && (i = o(e, t, i) || i);
|
|
4425
|
-
return i &&
|
|
4425
|
+
return i && Eu(e, t, i), i;
|
|
4426
4426
|
};
|
|
4427
4427
|
const ri = class ri extends M {
|
|
4428
4428
|
constructor() {
|
|
@@ -4452,11 +4452,11 @@ const ri = class ri extends M {
|
|
|
4452
4452
|
${gs({
|
|
4453
4453
|
keyframeOptions: {},
|
|
4454
4454
|
in: mr,
|
|
4455
|
-
out:
|
|
4455
|
+
out: uu,
|
|
4456
4456
|
stabilizeOut: !0,
|
|
4457
4457
|
skipInitial: !1
|
|
4458
4458
|
})}
|
|
4459
|
-
></ace-typing-state>` :
|
|
4459
|
+
></ace-typing-state>` : $}
|
|
4460
4460
|
</div>`;
|
|
4461
4461
|
}
|
|
4462
4462
|
};
|
|
@@ -4480,10 +4480,10 @@ ri.styles = [
|
|
|
4480
4480
|
`
|
|
4481
4481
|
];
|
|
4482
4482
|
let Tt = ri;
|
|
4483
|
-
|
|
4483
|
+
jo([
|
|
4484
4484
|
C({ attribute: !1 })
|
|
4485
4485
|
], Tt.prototype, "entries");
|
|
4486
|
-
|
|
4486
|
+
jo([
|
|
4487
4487
|
C({ type: Boolean })
|
|
4488
4488
|
], Tt.prototype, "loading");
|
|
4489
4489
|
/**
|
|
@@ -4491,14 +4491,14 @@ Bo([
|
|
|
4491
4491
|
* Copyright 2021 Google LLC
|
|
4492
4492
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
4493
4493
|
*/
|
|
4494
|
-
const
|
|
4494
|
+
const Au = (n, e, t) => {
|
|
4495
4495
|
for (const s of e) if (s[0] === n) return (0, s[1])();
|
|
4496
4496
|
return t == null ? void 0 : t();
|
|
4497
4497
|
};
|
|
4498
|
-
var
|
|
4498
|
+
var Cu = Object.defineProperty, Tu = (n, e, t, s) => {
|
|
4499
4499
|
for (var i = void 0, r = n.length - 1, o; r >= 0; r--)
|
|
4500
4500
|
(o = n[r]) && (i = o(e, t, i) || i);
|
|
4501
|
-
return i &&
|
|
4501
|
+
return i && Cu(e, t, i), i;
|
|
4502
4502
|
};
|
|
4503
4503
|
const oi = class oi extends M {
|
|
4504
4504
|
render() {
|
|
@@ -4506,7 +4506,7 @@ const oi = class oi extends M {
|
|
|
4506
4506
|
<div class="message-group">
|
|
4507
4507
|
${this.group.items.map(
|
|
4508
4508
|
([e, t, s]) => w`
|
|
4509
|
-
${
|
|
4509
|
+
${Au(
|
|
4510
4510
|
e,
|
|
4511
4511
|
[
|
|
4512
4512
|
["html", () => w`<message-type-html .message=${t} />`],
|
|
@@ -4518,7 +4518,7 @@ const oi = class oi extends M {
|
|
|
4518
4518
|
() => {
|
|
4519
4519
|
const i = customElements.get(e);
|
|
4520
4520
|
if (!i)
|
|
4521
|
-
return
|
|
4521
|
+
return $;
|
|
4522
4522
|
const r = new i(s || null);
|
|
4523
4523
|
return w`${r}`;
|
|
4524
4524
|
}
|
|
@@ -4546,7 +4546,7 @@ oi.styles = [
|
|
|
4546
4546
|
`
|
|
4547
4547
|
];
|
|
4548
4548
|
let pn = oi;
|
|
4549
|
-
|
|
4549
|
+
Tu([
|
|
4550
4550
|
C({ attribute: !1 })
|
|
4551
4551
|
], pn.prototype, "group");
|
|
4552
4552
|
const ai = class ai extends M {
|
|
@@ -4603,10 +4603,10 @@ let vs = ai;
|
|
|
4603
4603
|
*/
|
|
4604
4604
|
class bs extends zs {
|
|
4605
4605
|
constructor(e) {
|
|
4606
|
-
if (super(e), this.it =
|
|
4606
|
+
if (super(e), this.it = $, e.type !== _n.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
|
|
4607
4607
|
}
|
|
4608
4608
|
render(e) {
|
|
4609
|
-
if (e ===
|
|
4609
|
+
if (e === $ || e == null) return this._t = void 0, this.it = e;
|
|
4610
4610
|
if (e === _e) return e;
|
|
4611
4611
|
if (typeof e != "string") throw Error(this.constructor.directiveName + "() called with a non-string value");
|
|
4612
4612
|
if (e === this.it) return this._t;
|
|
@@ -4616,19 +4616,19 @@ class bs extends zs {
|
|
|
4616
4616
|
}
|
|
4617
4617
|
}
|
|
4618
4618
|
bs.directiveName = "unsafeHTML", bs.resultType = 1;
|
|
4619
|
-
const
|
|
4619
|
+
const Lu = En(bs);
|
|
4620
4620
|
/*! @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 */
|
|
4621
4621
|
const {
|
|
4622
|
-
entries:
|
|
4622
|
+
entries: qo,
|
|
4623
4623
|
setPrototypeOf: kr,
|
|
4624
4624
|
isFrozen: Ru,
|
|
4625
|
-
getPrototypeOf:
|
|
4626
|
-
getOwnPropertyDescriptor:
|
|
4625
|
+
getPrototypeOf: Ou,
|
|
4626
|
+
getOwnPropertyDescriptor: Pu
|
|
4627
4627
|
} = Object;
|
|
4628
4628
|
let {
|
|
4629
4629
|
freeze: W,
|
|
4630
|
-
seal:
|
|
4631
|
-
create:
|
|
4630
|
+
seal: J,
|
|
4631
|
+
create: Wo
|
|
4632
4632
|
} = Object, {
|
|
4633
4633
|
apply: ys,
|
|
4634
4634
|
construct: $s
|
|
@@ -4636,7 +4636,7 @@ let {
|
|
|
4636
4636
|
W || (W = function(e) {
|
|
4637
4637
|
return e;
|
|
4638
4638
|
});
|
|
4639
|
-
|
|
4639
|
+
J || (J = function(e) {
|
|
4640
4640
|
return e;
|
|
4641
4641
|
});
|
|
4642
4642
|
ys || (ys = function(e, t, s) {
|
|
@@ -4645,7 +4645,7 @@ ys || (ys = function(e, t, s) {
|
|
|
4645
4645
|
$s || ($s = function(e, t) {
|
|
4646
4646
|
return new e(...t);
|
|
4647
4647
|
});
|
|
4648
|
-
const Yt = G(Array.prototype.forEach),
|
|
4648
|
+
const Yt = G(Array.prototype.forEach), Iu = G(Array.prototype.lastIndexOf), Sr = G(Array.prototype.pop), pt = G(Array.prototype.push), Mu = G(Array.prototype.splice), Jt = G(String.prototype.toLowerCase), Vn = G(String.prototype.toString), _r = G(String.prototype.match), ft = G(String.prototype.replace), Nu = G(String.prototype.indexOf), Du = G(String.prototype.trim), te = G(Object.prototype.hasOwnProperty), H = G(RegExp.prototype.test), gt = Uu(TypeError);
|
|
4649
4649
|
function G(n) {
|
|
4650
4650
|
return function(e) {
|
|
4651
4651
|
e instanceof RegExp && (e.lastIndex = 0);
|
|
@@ -4654,14 +4654,14 @@ function G(n) {
|
|
|
4654
4654
|
return ys(n, e, s);
|
|
4655
4655
|
};
|
|
4656
4656
|
}
|
|
4657
|
-
function
|
|
4657
|
+
function Uu(n) {
|
|
4658
4658
|
return function() {
|
|
4659
4659
|
for (var e = arguments.length, t = new Array(e), s = 0; s < e; s++)
|
|
4660
4660
|
t[s] = arguments[s];
|
|
4661
4661
|
return $s(n, t);
|
|
4662
4662
|
};
|
|
4663
4663
|
}
|
|
4664
|
-
function
|
|
4664
|
+
function x(n, e) {
|
|
4665
4665
|
let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : Jt;
|
|
4666
4666
|
kr && kr(n, null);
|
|
4667
4667
|
let s = e.length;
|
|
@@ -4675,52 +4675,52 @@ function $(n, e) {
|
|
|
4675
4675
|
}
|
|
4676
4676
|
return n;
|
|
4677
4677
|
}
|
|
4678
|
-
function
|
|
4678
|
+
function zu(n) {
|
|
4679
4679
|
for (let e = 0; e < n.length; e++)
|
|
4680
|
-
|
|
4680
|
+
te(n, e) || (n[e] = null);
|
|
4681
4681
|
return n;
|
|
4682
4682
|
}
|
|
4683
|
-
function
|
|
4684
|
-
const e =
|
|
4685
|
-
for (const [t, s] of
|
|
4686
|
-
|
|
4683
|
+
function ge(n) {
|
|
4684
|
+
const e = Wo(null);
|
|
4685
|
+
for (const [t, s] of qo(n))
|
|
4686
|
+
te(n, t) && (Array.isArray(s) ? e[t] = zu(s) : s && typeof s == "object" && s.constructor === Object ? e[t] = ge(s) : e[t] = s);
|
|
4687
4687
|
return e;
|
|
4688
4688
|
}
|
|
4689
4689
|
function mt(n, e) {
|
|
4690
4690
|
for (; n !== null; ) {
|
|
4691
|
-
const s =
|
|
4691
|
+
const s = Pu(n, e);
|
|
4692
4692
|
if (s) {
|
|
4693
4693
|
if (s.get)
|
|
4694
4694
|
return G(s.get);
|
|
4695
4695
|
if (typeof s.value == "function")
|
|
4696
4696
|
return G(s.value);
|
|
4697
4697
|
}
|
|
4698
|
-
n =
|
|
4698
|
+
n = Ou(n);
|
|
4699
4699
|
}
|
|
4700
4700
|
function t() {
|
|
4701
4701
|
return null;
|
|
4702
4702
|
}
|
|
4703
4703
|
return t;
|
|
4704
4704
|
}
|
|
4705
|
-
const Er = W(["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"]), Qn = W(["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"]), Jn = W(["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"]),
|
|
4705
|
+
const Er = W(["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"]), Qn = W(["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"]), Jn = W(["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"]), Bu = W(["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"]), es = W(["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"]), Hu = W(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), Ar = W(["#text"]), Cr = W(["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"]), ts = W(["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"]), Tr = W(["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"]), Xt = W(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), Fu = J(/\{\{[\w\W]*|[\w\W]*\}\}/gm), ju = J(/<%[\w\W]*|[\w\W]*%>/gm), qu = J(/\$\{[\w\W]*/gm), Wu = J(/^data-[\-\w.\u00B7-\uFFFF]+$/), Gu = J(/^aria-[\-\w]+$/), Go = J(
|
|
4706
4706
|
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
|
4707
4707
|
// eslint-disable-line no-useless-escape
|
|
4708
|
-
),
|
|
4708
|
+
), Zu = J(/^(?:\w+script|data):/i), Yu = J(
|
|
4709
4709
|
/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
|
|
4710
4710
|
// eslint-disable-line no-control-regex
|
|
4711
|
-
),
|
|
4712
|
-
var
|
|
4711
|
+
), Zo = J(/^html$/i), Xu = J(/^[a-z][.\w]*(-[.\w]+)+$/i);
|
|
4712
|
+
var Lr = /* @__PURE__ */ Object.freeze({
|
|
4713
4713
|
__proto__: null,
|
|
4714
|
-
ARIA_ATTR:
|
|
4715
|
-
ATTR_WHITESPACE:
|
|
4716
|
-
CUSTOM_ELEMENT:
|
|
4717
|
-
DATA_ATTR:
|
|
4718
|
-
DOCTYPE_NAME:
|
|
4719
|
-
ERB_EXPR:
|
|
4720
|
-
IS_ALLOWED_URI:
|
|
4721
|
-
IS_SCRIPT_OR_DATA:
|
|
4722
|
-
MUSTACHE_EXPR:
|
|
4723
|
-
TMPLIT_EXPR:
|
|
4714
|
+
ARIA_ATTR: Gu,
|
|
4715
|
+
ATTR_WHITESPACE: Yu,
|
|
4716
|
+
CUSTOM_ELEMENT: Xu,
|
|
4717
|
+
DATA_ATTR: Wu,
|
|
4718
|
+
DOCTYPE_NAME: Zo,
|
|
4719
|
+
ERB_EXPR: ju,
|
|
4720
|
+
IS_ALLOWED_URI: Go,
|
|
4721
|
+
IS_SCRIPT_OR_DATA: Zu,
|
|
4722
|
+
MUSTACHE_EXPR: Fu,
|
|
4723
|
+
TMPLIT_EXPR: qu
|
|
4724
4724
|
});
|
|
4725
4725
|
const vt = {
|
|
4726
4726
|
element: 1,
|
|
@@ -4729,9 +4729,9 @@ const vt = {
|
|
|
4729
4729
|
progressingInstruction: 7,
|
|
4730
4730
|
comment: 8,
|
|
4731
4731
|
document: 9
|
|
4732
|
-
},
|
|
4732
|
+
}, Ku = function() {
|
|
4733
4733
|
return typeof window > "u" ? null : window;
|
|
4734
|
-
},
|
|
4734
|
+
}, Vu = function(e, t) {
|
|
4735
4735
|
if (typeof e != "object" || typeof e.createPolicy != "function")
|
|
4736
4736
|
return null;
|
|
4737
4737
|
let s = null;
|
|
@@ -4750,7 +4750,7 @@ const vt = {
|
|
|
4750
4750
|
} catch {
|
|
4751
4751
|
return console.warn("TrustedTypes policy " + r + " could not be created."), null;
|
|
4752
4752
|
}
|
|
4753
|
-
},
|
|
4753
|
+
}, Rr = function() {
|
|
4754
4754
|
return {
|
|
4755
4755
|
afterSanitizeAttributes: [],
|
|
4756
4756
|
afterSanitizeElements: [],
|
|
@@ -4763,9 +4763,9 @@ const vt = {
|
|
|
4763
4763
|
uponSanitizeShadowNode: []
|
|
4764
4764
|
};
|
|
4765
4765
|
};
|
|
4766
|
-
function
|
|
4767
|
-
let n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] :
|
|
4768
|
-
const e = (b) =>
|
|
4766
|
+
function Yo() {
|
|
4767
|
+
let n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Ku();
|
|
4768
|
+
const e = (b) => Yo(b);
|
|
4769
4769
|
if (e.version = "3.2.6", e.removed = [], !n || !n.document || n.document.nodeType !== vt.document || !n.Element)
|
|
4770
4770
|
return e.isSupported = !1, e;
|
|
4771
4771
|
let {
|
|
@@ -4781,39 +4781,39 @@ function Go() {
|
|
|
4781
4781
|
HTMLFormElement: p,
|
|
4782
4782
|
DOMParser: d,
|
|
4783
4783
|
trustedTypes: g
|
|
4784
|
-
} = n, m = l.prototype, y = mt(m, "cloneNode"),
|
|
4784
|
+
} = n, m = l.prototype, y = mt(m, "cloneNode"), ue = mt(m, "remove"), ee = mt(m, "nextSibling"), xe = mt(m, "childNodes"), Ee = mt(m, "parentNode");
|
|
4785
4785
|
if (typeof o == "function") {
|
|
4786
4786
|
const b = t.createElement("template");
|
|
4787
4787
|
b.content && b.content.ownerDocument && (t = b.content.ownerDocument);
|
|
4788
4788
|
}
|
|
4789
|
-
let
|
|
4789
|
+
let R, Ae = "";
|
|
4790
4790
|
const {
|
|
4791
4791
|
implementation: Ce,
|
|
4792
4792
|
createNodeIterator: Te,
|
|
4793
|
-
createDocumentFragment:
|
|
4794
|
-
getElementsByTagName:
|
|
4793
|
+
createDocumentFragment: ua,
|
|
4794
|
+
getElementsByTagName: ha
|
|
4795
4795
|
} = t, {
|
|
4796
|
-
importNode:
|
|
4796
|
+
importNode: da
|
|
4797
4797
|
} = s;
|
|
4798
|
-
let
|
|
4799
|
-
e.isSupported = typeof
|
|
4798
|
+
let B = Rr();
|
|
4799
|
+
e.isSupported = typeof qo == "function" && typeof Ee == "function" && Ce && Ce.createHTMLDocument !== void 0;
|
|
4800
4800
|
const {
|
|
4801
4801
|
MUSTACHE_EXPR: Tn,
|
|
4802
|
-
ERB_EXPR:
|
|
4803
|
-
TMPLIT_EXPR:
|
|
4804
|
-
DATA_ATTR:
|
|
4805
|
-
ARIA_ATTR:
|
|
4806
|
-
IS_SCRIPT_OR_DATA:
|
|
4802
|
+
ERB_EXPR: Ln,
|
|
4803
|
+
TMPLIT_EXPR: Rn,
|
|
4804
|
+
DATA_ATTR: pa,
|
|
4805
|
+
ARIA_ATTR: fa,
|
|
4806
|
+
IS_SCRIPT_OR_DATA: ga,
|
|
4807
4807
|
ATTR_WHITESPACE: di,
|
|
4808
|
-
CUSTOM_ELEMENT:
|
|
4809
|
-
} =
|
|
4808
|
+
CUSTOM_ELEMENT: ma
|
|
4809
|
+
} = Lr;
|
|
4810
4810
|
let {
|
|
4811
4811
|
IS_ALLOWED_URI: pi
|
|
4812
|
-
} =
|
|
4813
|
-
const fi =
|
|
4814
|
-
let
|
|
4815
|
-
const gi =
|
|
4816
|
-
let T = Object.seal(
|
|
4812
|
+
} = Lr, O = null;
|
|
4813
|
+
const fi = x({}, [...Er, ...Qn, ...Jn, ...es, ...Ar]);
|
|
4814
|
+
let D = null;
|
|
4815
|
+
const gi = x({}, [...Cr, ...ts, ...Tr, ...Xt]);
|
|
4816
|
+
let T = Object.seal(Wo(null, {
|
|
4817
4817
|
tagNameCheck: {
|
|
4818
4818
|
writable: !0,
|
|
4819
4819
|
configurable: !1,
|
|
@@ -4832,53 +4832,53 @@ function Go() {
|
|
|
4832
4832
|
enumerable: !0,
|
|
4833
4833
|
value: !1
|
|
4834
4834
|
}
|
|
4835
|
-
})), lt = null, On = null, mi = !0, Pn = !0, vi = !1, bi = !0,
|
|
4836
|
-
const
|
|
4835
|
+
})), lt = null, On = null, mi = !0, Pn = !0, vi = !1, bi = !0, He = !1, zt = !0, Le = !1, In = !1, Mn = !1, Fe = !1, Bt = !1, Ht = !1, yi = !0, $i = !1;
|
|
4836
|
+
const va = "user-content-";
|
|
4837
4837
|
let Nn = !0, ct = !1, je = {}, qe = null;
|
|
4838
|
-
const xi =
|
|
4838
|
+
const xi = 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"]);
|
|
4839
4839
|
let wi = null;
|
|
4840
|
-
const ki =
|
|
4840
|
+
const ki = x({}, ["audio", "video", "img", "source", "image", "track"]);
|
|
4841
4841
|
let Dn = null;
|
|
4842
|
-
const Si =
|
|
4843
|
-
let We =
|
|
4844
|
-
const
|
|
4845
|
-
let qt =
|
|
4846
|
-
const
|
|
4842
|
+
const Si = x({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), Ft = "http://www.w3.org/1998/Math/MathML", jt = "http://www.w3.org/2000/svg", he = "http://www.w3.org/1999/xhtml";
|
|
4843
|
+
let We = he, Un = !1, zn = null;
|
|
4844
|
+
const ba = x({}, [Ft, jt, he], Vn);
|
|
4845
|
+
let qt = x({}, ["mi", "mo", "mn", "ms", "mtext"]), Wt = x({}, ["annotation-xml"]);
|
|
4846
|
+
const ya = x({}, ["title", "style", "font", "a", "script"]);
|
|
4847
4847
|
let ut = null;
|
|
4848
|
-
const
|
|
4848
|
+
const $a = ["application/xhtml+xml", "text/html"], xa = "text/html";
|
|
4849
4849
|
let P = null, Ge = null;
|
|
4850
|
-
const
|
|
4850
|
+
const wa = t.createElement("form"), _i = function(h) {
|
|
4851
4851
|
return h instanceof RegExp || h instanceof Function;
|
|
4852
|
-
},
|
|
4852
|
+
}, Bn = function() {
|
|
4853
4853
|
let h = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
4854
4854
|
if (!(Ge && Ge === h)) {
|
|
4855
|
-
if ((!h || typeof h != "object") && (h = {}), h =
|
|
4856
|
-
|
|
4855
|
+
if ((!h || typeof h != "object") && (h = {}), h = ge(h), ut = // eslint-disable-next-line unicorn/prefer-includes
|
|
4856
|
+
$a.indexOf(h.PARSER_MEDIA_TYPE) === -1 ? xa : h.PARSER_MEDIA_TYPE, P = ut === "application/xhtml+xml" ? Vn : Jt, O = te(h, "ALLOWED_TAGS") ? x({}, h.ALLOWED_TAGS, P) : fi, D = te(h, "ALLOWED_ATTR") ? x({}, h.ALLOWED_ATTR, P) : gi, zn = te(h, "ALLOWED_NAMESPACES") ? x({}, h.ALLOWED_NAMESPACES, Vn) : ba, Dn = te(h, "ADD_URI_SAFE_ATTR") ? x(ge(Si), h.ADD_URI_SAFE_ATTR, P) : Si, wi = te(h, "ADD_DATA_URI_TAGS") ? x(ge(ki), h.ADD_DATA_URI_TAGS, P) : ki, qe = te(h, "FORBID_CONTENTS") ? x({}, h.FORBID_CONTENTS, P) : xi, lt = te(h, "FORBID_TAGS") ? x({}, h.FORBID_TAGS, P) : ge({}), On = te(h, "FORBID_ATTR") ? x({}, h.FORBID_ATTR, P) : ge({}), je = te(h, "USE_PROFILES") ? h.USE_PROFILES : !1, mi = h.ALLOW_ARIA_ATTR !== !1, Pn = h.ALLOW_DATA_ATTR !== !1, vi = h.ALLOW_UNKNOWN_PROTOCOLS || !1, bi = h.ALLOW_SELF_CLOSE_IN_ATTR !== !1, He = h.SAFE_FOR_TEMPLATES || !1, zt = h.SAFE_FOR_XML !== !1, Le = h.WHOLE_DOCUMENT || !1, Fe = h.RETURN_DOM || !1, Bt = h.RETURN_DOM_FRAGMENT || !1, Ht = h.RETURN_TRUSTED_TYPE || !1, Mn = h.FORCE_BODY || !1, yi = h.SANITIZE_DOM !== !1, $i = h.SANITIZE_NAMED_PROPS || !1, Nn = h.KEEP_CONTENT !== !1, ct = h.IN_PLACE || !1, pi = h.ALLOWED_URI_REGEXP || Go, We = h.NAMESPACE || he, qt = h.MATHML_TEXT_INTEGRATION_POINTS || qt, Wt = h.HTML_INTEGRATION_POINTS || Wt, T = h.CUSTOM_ELEMENT_HANDLING || {}, h.CUSTOM_ELEMENT_HANDLING && _i(h.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (T.tagNameCheck = h.CUSTOM_ELEMENT_HANDLING.tagNameCheck), h.CUSTOM_ELEMENT_HANDLING && _i(h.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (T.attributeNameCheck = h.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), h.CUSTOM_ELEMENT_HANDLING && typeof h.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (T.allowCustomizedBuiltInElements = h.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), He && (Pn = !1), Bt && (Fe = !0), je && (O = x({}, Ar), D = [], je.html === !0 && (x(O, Er), x(D, Cr)), je.svg === !0 && (x(O, Qn), x(D, ts), x(D, Xt)), je.svgFilters === !0 && (x(O, Jn), x(D, ts), x(D, Xt)), je.mathMl === !0 && (x(O, es), x(D, Tr), x(D, Xt))), h.ADD_TAGS && (O === fi && (O = ge(O)), x(O, h.ADD_TAGS, P)), h.ADD_ATTR && (D === gi && (D = ge(D)), x(D, h.ADD_ATTR, P)), h.ADD_URI_SAFE_ATTR && x(Dn, h.ADD_URI_SAFE_ATTR, P), h.FORBID_CONTENTS && (qe === xi && (qe = ge(qe)), x(qe, h.FORBID_CONTENTS, P)), Nn && (O["#text"] = !0), Le && x(O, ["html", "head", "body"]), O.table && (x(O, ["tbody"]), delete lt.tbody), h.TRUSTED_TYPES_POLICY) {
|
|
4857
4857
|
if (typeof h.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
4858
4858
|
throw gt('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
4859
4859
|
if (typeof h.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
4860
4860
|
throw gt('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
|
|
4861
|
-
|
|
4861
|
+
R = h.TRUSTED_TYPES_POLICY, Ae = R.createHTML("");
|
|
4862
4862
|
} else
|
|
4863
|
-
|
|
4863
|
+
R === void 0 && (R = Vu(g, i)), R !== null && typeof Ae == "string" && (Ae = R.createHTML(""));
|
|
4864
4864
|
W && W(h), Ge = h;
|
|
4865
4865
|
}
|
|
4866
|
-
}, Ei =
|
|
4866
|
+
}, Ei = x({}, [...Qn, ...Jn, ...Bu]), Ai = x({}, [...es, ...Hu]), ka = function(h) {
|
|
4867
4867
|
let f = Ee(h);
|
|
4868
4868
|
(!f || !f.tagName) && (f = {
|
|
4869
4869
|
namespaceURI: We,
|
|
4870
4870
|
tagName: "template"
|
|
4871
4871
|
});
|
|
4872
4872
|
const v = Jt(h.tagName), A = Jt(f.tagName);
|
|
4873
|
-
return zn[h.namespaceURI] ? h.namespaceURI === jt ? f.namespaceURI ===
|
|
4874
|
-
},
|
|
4873
|
+
return zn[h.namespaceURI] ? h.namespaceURI === jt ? f.namespaceURI === he ? v === "svg" : f.namespaceURI === Ft ? v === "svg" && (A === "annotation-xml" || qt[A]) : !!Ei[v] : h.namespaceURI === Ft ? f.namespaceURI === he ? v === "math" : f.namespaceURI === jt ? v === "math" && Wt[A] : !!Ai[v] : h.namespaceURI === he ? f.namespaceURI === jt && !Wt[A] || f.namespaceURI === Ft && !qt[A] ? !1 : !Ai[v] && (ya[v] || !Ei[v]) : !!(ut === "application/xhtml+xml" && zn[h.namespaceURI]) : !1;
|
|
4874
|
+
}, ie = function(h) {
|
|
4875
4875
|
pt(e.removed, {
|
|
4876
4876
|
element: h
|
|
4877
4877
|
});
|
|
4878
4878
|
try {
|
|
4879
4879
|
Ee(h).removeChild(h);
|
|
4880
4880
|
} catch {
|
|
4881
|
-
|
|
4881
|
+
ue(h);
|
|
4882
4882
|
}
|
|
4883
4883
|
}, Ze = function(h, f) {
|
|
4884
4884
|
try {
|
|
@@ -4893,9 +4893,9 @@ function Go() {
|
|
|
4893
4893
|
});
|
|
4894
4894
|
}
|
|
4895
4895
|
if (f.removeAttribute(h), h === "is")
|
|
4896
|
-
if (Fe ||
|
|
4896
|
+
if (Fe || Bt)
|
|
4897
4897
|
try {
|
|
4898
|
-
|
|
4898
|
+
ie(f);
|
|
4899
4899
|
} catch {
|
|
4900
4900
|
}
|
|
4901
4901
|
else
|
|
@@ -4908,12 +4908,12 @@ function Go() {
|
|
|
4908
4908
|
if (Mn)
|
|
4909
4909
|
h = "<remove></remove>" + h;
|
|
4910
4910
|
else {
|
|
4911
|
-
const
|
|
4912
|
-
v =
|
|
4911
|
+
const L = _r(h, /^[\r\n\t ]+/);
|
|
4912
|
+
v = L && L[0];
|
|
4913
4913
|
}
|
|
4914
|
-
ut === "application/xhtml+xml" && We ===
|
|
4915
|
-
const A =
|
|
4916
|
-
if (We ===
|
|
4914
|
+
ut === "application/xhtml+xml" && We === he && (h = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + h + "</body></html>");
|
|
4915
|
+
const A = R ? R.createHTML(h) : h;
|
|
4916
|
+
if (We === he)
|
|
4917
4917
|
try {
|
|
4918
4918
|
f = new d().parseFromString(A, ut);
|
|
4919
4919
|
} catch {
|
|
@@ -4925,8 +4925,8 @@ function Go() {
|
|
|
4925
4925
|
} catch {
|
|
4926
4926
|
}
|
|
4927
4927
|
}
|
|
4928
|
-
const
|
|
4929
|
-
return h && v &&
|
|
4928
|
+
const U = f.body || f.documentElement;
|
|
4929
|
+
return h && v && U.insertBefore(t.createTextNode(v), U.childNodes[0] || null), We === he ? ha.call(f, Le ? "html" : "body")[0] : Le ? f.documentElement : U;
|
|
4930
4930
|
}, Ti = function(h) {
|
|
4931
4931
|
return Te.call(
|
|
4932
4932
|
h.ownerDocument || h,
|
|
@@ -4935,64 +4935,64 @@ function Go() {
|
|
|
4935
4935
|
c.SHOW_ELEMENT | c.SHOW_COMMENT | c.SHOW_TEXT | c.SHOW_PROCESSING_INSTRUCTION | c.SHOW_CDATA_SECTION,
|
|
4936
4936
|
null
|
|
4937
4937
|
);
|
|
4938
|
-
},
|
|
4938
|
+
}, Hn = function(h) {
|
|
4939
4939
|
return h instanceof p && (typeof h.nodeName != "string" || typeof h.textContent != "string" || typeof h.removeChild != "function" || !(h.attributes instanceof u) || typeof h.removeAttribute != "function" || typeof h.setAttribute != "function" || typeof h.namespaceURI != "string" || typeof h.insertBefore != "function" || typeof h.hasChildNodes != "function");
|
|
4940
|
-
},
|
|
4940
|
+
}, Li = function(h) {
|
|
4941
4941
|
return typeof a == "function" && h instanceof a;
|
|
4942
4942
|
};
|
|
4943
|
-
function
|
|
4943
|
+
function de(b, h, f) {
|
|
4944
4944
|
Yt(b, (v) => {
|
|
4945
4945
|
v.call(e, h, f, Ge);
|
|
4946
4946
|
});
|
|
4947
4947
|
}
|
|
4948
|
-
const
|
|
4948
|
+
const Ri = function(h) {
|
|
4949
4949
|
let f = null;
|
|
4950
|
-
if (
|
|
4951
|
-
return
|
|
4950
|
+
if (de(B.beforeSanitizeElements, h, null), Hn(h))
|
|
4951
|
+
return ie(h), !0;
|
|
4952
4952
|
const v = P(h.nodeName);
|
|
4953
|
-
if (
|
|
4953
|
+
if (de(B.uponSanitizeElement, h, {
|
|
4954
4954
|
tagName: v,
|
|
4955
4955
|
allowedTags: O
|
|
4956
|
-
}), zt && h.hasChildNodes() && !
|
|
4957
|
-
return
|
|
4956
|
+
}), zt && h.hasChildNodes() && !Li(h.firstElementChild) && H(/<[/\w!]/g, h.innerHTML) && H(/<[/\w!]/g, h.textContent) || h.nodeType === vt.progressingInstruction || zt && h.nodeType === vt.comment && H(/<[/\w]/g, h.data))
|
|
4957
|
+
return ie(h), !0;
|
|
4958
4958
|
if (!O[v] || lt[v]) {
|
|
4959
|
-
if (!lt[v] && Pi(v) && (T.tagNameCheck instanceof RegExp &&
|
|
4959
|
+
if (!lt[v] && Pi(v) && (T.tagNameCheck instanceof RegExp && H(T.tagNameCheck, v) || T.tagNameCheck instanceof Function && T.tagNameCheck(v)))
|
|
4960
4960
|
return !1;
|
|
4961
4961
|
if (Nn && !qe[v]) {
|
|
4962
|
-
const A = Ee(h) || h.parentNode,
|
|
4963
|
-
if (
|
|
4964
|
-
const
|
|
4965
|
-
for (let Y =
|
|
4966
|
-
const
|
|
4967
|
-
|
|
4962
|
+
const A = Ee(h) || h.parentNode, U = xe(h) || h.childNodes;
|
|
4963
|
+
if (U && A) {
|
|
4964
|
+
const L = U.length;
|
|
4965
|
+
for (let Y = L - 1; Y >= 0; --Y) {
|
|
4966
|
+
const pe = y(U[Y], !0);
|
|
4967
|
+
pe.__removalCount = (h.__removalCount || 0) + 1, A.insertBefore(pe, ee(h));
|
|
4968
4968
|
}
|
|
4969
4969
|
}
|
|
4970
4970
|
}
|
|
4971
|
-
return
|
|
4971
|
+
return ie(h), !0;
|
|
4972
4972
|
}
|
|
4973
|
-
return h instanceof l && !
|
|
4973
|
+
return h instanceof l && !ka(h) || (v === "noscript" || v === "noembed" || v === "noframes") && H(/<\/no(script|embed|frames)/i, h.innerHTML) ? (ie(h), !0) : (He && h.nodeType === vt.text && (f = h.textContent, Yt([Tn, Ln, Rn], (A) => {
|
|
4974
4974
|
f = ft(f, A, " ");
|
|
4975
4975
|
}), h.textContent !== f && (pt(e.removed, {
|
|
4976
4976
|
element: h.cloneNode()
|
|
4977
|
-
}), h.textContent = f)),
|
|
4977
|
+
}), h.textContent = f)), de(B.afterSanitizeElements, h, null), !1);
|
|
4978
4978
|
}, Oi = function(h, f, v) {
|
|
4979
|
-
if (yi && (f === "id" || f === "name") && (v in t || v in
|
|
4979
|
+
if (yi && (f === "id" || f === "name") && (v in t || v in wa))
|
|
4980
4980
|
return !1;
|
|
4981
|
-
if (!(Pn && !On[f] &&
|
|
4982
|
-
if (!(mi &&
|
|
4983
|
-
if (!
|
|
4981
|
+
if (!(Pn && !On[f] && H(pa, f))) {
|
|
4982
|
+
if (!(mi && H(fa, f))) {
|
|
4983
|
+
if (!D[f] || On[f]) {
|
|
4984
4984
|
if (
|
|
4985
4985
|
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
4986
4986
|
// b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
4987
4987
|
// and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
|
|
4988
|
-
!(Pi(h) && (T.tagNameCheck instanceof RegExp &&
|
|
4988
|
+
!(Pi(h) && (T.tagNameCheck instanceof RegExp && H(T.tagNameCheck, h) || T.tagNameCheck instanceof Function && T.tagNameCheck(h)) && (T.attributeNameCheck instanceof RegExp && H(T.attributeNameCheck, f) || T.attributeNameCheck instanceof Function && T.attributeNameCheck(f)) || // Alternative, second condition checks if it's an `is`-attribute, AND
|
|
4989
4989
|
// the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
4990
|
-
f === "is" && T.allowCustomizedBuiltInElements && (T.tagNameCheck instanceof RegExp &&
|
|
4990
|
+
f === "is" && T.allowCustomizedBuiltInElements && (T.tagNameCheck instanceof RegExp && H(T.tagNameCheck, v) || T.tagNameCheck instanceof Function && T.tagNameCheck(v)))
|
|
4991
4991
|
) return !1;
|
|
4992
4992
|
} else if (!Dn[f]) {
|
|
4993
|
-
if (!
|
|
4994
|
-
if (!((f === "src" || f === "xlink:href" || f === "href") && h !== "script" &&
|
|
4995
|
-
if (!(vi && !
|
|
4993
|
+
if (!H(pi, ft(v, di, ""))) {
|
|
4994
|
+
if (!((f === "src" || f === "xlink:href" || f === "href") && h !== "script" && Nu(v, "data:") === 0 && wi[h])) {
|
|
4995
|
+
if (!(vi && !H(ga, ft(v, di, "")))) {
|
|
4996
4996
|
if (v)
|
|
4997
4997
|
return !1;
|
|
4998
4998
|
}
|
|
@@ -5003,80 +5003,80 @@ function Go() {
|
|
|
5003
5003
|
}
|
|
5004
5004
|
return !0;
|
|
5005
5005
|
}, Pi = function(h) {
|
|
5006
|
-
return h !== "annotation-xml" && _r(h,
|
|
5006
|
+
return h !== "annotation-xml" && _r(h, ma);
|
|
5007
5007
|
}, Ii = function(h) {
|
|
5008
|
-
|
|
5008
|
+
de(B.beforeSanitizeAttributes, h, null);
|
|
5009
5009
|
const {
|
|
5010
5010
|
attributes: f
|
|
5011
5011
|
} = h;
|
|
5012
|
-
if (!f ||
|
|
5012
|
+
if (!f || Hn(h))
|
|
5013
5013
|
return;
|
|
5014
5014
|
const v = {
|
|
5015
5015
|
attrName: "",
|
|
5016
5016
|
attrValue: "",
|
|
5017
5017
|
keepAttr: !0,
|
|
5018
|
-
allowedAttributes:
|
|
5018
|
+
allowedAttributes: D,
|
|
5019
5019
|
forceKeepAttr: void 0
|
|
5020
5020
|
};
|
|
5021
5021
|
let A = f.length;
|
|
5022
5022
|
for (; A--; ) {
|
|
5023
|
-
const
|
|
5024
|
-
name:
|
|
5023
|
+
const U = f[A], {
|
|
5024
|
+
name: L,
|
|
5025
5025
|
namespaceURI: Y,
|
|
5026
|
-
value:
|
|
5027
|
-
} =
|
|
5028
|
-
let
|
|
5029
|
-
if (v.attrName = ht, v.attrValue =
|
|
5030
|
-
Ze(
|
|
5026
|
+
value: pe
|
|
5027
|
+
} = U, ht = P(L), Fn = pe;
|
|
5028
|
+
let z = L === "value" ? Fn : Du(Fn);
|
|
5029
|
+
if (v.attrName = ht, v.attrValue = z, v.keepAttr = !0, v.forceKeepAttr = void 0, de(B.uponSanitizeAttribute, h, v), z = v.attrValue, $i && (ht === "id" || ht === "name") && (Ze(L, h), z = va + z), zt && H(/((--!?|])>)|<\/(style|title)/i, z)) {
|
|
5030
|
+
Ze(L, h);
|
|
5031
5031
|
continue;
|
|
5032
5032
|
}
|
|
5033
5033
|
if (v.forceKeepAttr)
|
|
5034
5034
|
continue;
|
|
5035
5035
|
if (!v.keepAttr) {
|
|
5036
|
-
Ze(
|
|
5036
|
+
Ze(L, h);
|
|
5037
5037
|
continue;
|
|
5038
5038
|
}
|
|
5039
|
-
if (!bi &&
|
|
5040
|
-
Ze(
|
|
5039
|
+
if (!bi && H(/\/>/i, z)) {
|
|
5040
|
+
Ze(L, h);
|
|
5041
5041
|
continue;
|
|
5042
5042
|
}
|
|
5043
|
-
|
|
5044
|
-
|
|
5043
|
+
He && Yt([Tn, Ln, Rn], (Ni) => {
|
|
5044
|
+
z = ft(z, Ni, " ");
|
|
5045
5045
|
});
|
|
5046
5046
|
const Mi = P(h.nodeName);
|
|
5047
|
-
if (!Oi(Mi, ht,
|
|
5048
|
-
Ze(
|
|
5047
|
+
if (!Oi(Mi, ht, z)) {
|
|
5048
|
+
Ze(L, h);
|
|
5049
5049
|
continue;
|
|
5050
5050
|
}
|
|
5051
|
-
if (
|
|
5051
|
+
if (R && typeof g == "object" && typeof g.getAttributeType == "function" && !Y)
|
|
5052
5052
|
switch (g.getAttributeType(Mi, ht)) {
|
|
5053
5053
|
case "TrustedHTML": {
|
|
5054
|
-
|
|
5054
|
+
z = R.createHTML(z);
|
|
5055
5055
|
break;
|
|
5056
5056
|
}
|
|
5057
5057
|
case "TrustedScriptURL": {
|
|
5058
|
-
|
|
5058
|
+
z = R.createScriptURL(z);
|
|
5059
5059
|
break;
|
|
5060
5060
|
}
|
|
5061
5061
|
}
|
|
5062
|
-
if (
|
|
5062
|
+
if (z !== Fn)
|
|
5063
5063
|
try {
|
|
5064
|
-
Y ? h.setAttributeNS(Y,
|
|
5064
|
+
Y ? h.setAttributeNS(Y, L, z) : h.setAttribute(L, z), Hn(h) ? ie(h) : Sr(e.removed);
|
|
5065
5065
|
} catch {
|
|
5066
|
-
Ze(
|
|
5066
|
+
Ze(L, h);
|
|
5067
5067
|
}
|
|
5068
5068
|
}
|
|
5069
|
-
|
|
5070
|
-
},
|
|
5069
|
+
de(B.afterSanitizeAttributes, h, null);
|
|
5070
|
+
}, Sa = function b(h) {
|
|
5071
5071
|
let f = null;
|
|
5072
5072
|
const v = Ti(h);
|
|
5073
|
-
for (
|
|
5074
|
-
|
|
5075
|
-
|
|
5073
|
+
for (de(B.beforeSanitizeShadowDOM, h, null); f = v.nextNode(); )
|
|
5074
|
+
de(B.uponSanitizeShadowNode, f, null), Ri(f), Ii(f), f.content instanceof r && b(f.content);
|
|
5075
|
+
de(B.afterSanitizeShadowDOM, h, null);
|
|
5076
5076
|
};
|
|
5077
5077
|
return e.sanitize = function(b) {
|
|
5078
|
-
let h = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, f = null, v = null, A = null,
|
|
5079
|
-
if (Un = !b, Un && (b = "<!-->"), typeof b != "string" && !
|
|
5078
|
+
let h = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, f = null, v = null, A = null, U = null;
|
|
5079
|
+
if (Un = !b, Un && (b = "<!-->"), typeof b != "string" && !Li(b))
|
|
5080
5080
|
if (typeof b.toString == "function") {
|
|
5081
5081
|
if (b = b.toString(), typeof b != "string")
|
|
5082
5082
|
throw gt("dirty is not a string, aborting");
|
|
@@ -5084,72 +5084,72 @@ function Go() {
|
|
|
5084
5084
|
throw gt("toString is not a function");
|
|
5085
5085
|
if (!e.isSupported)
|
|
5086
5086
|
return b;
|
|
5087
|
-
if (In ||
|
|
5087
|
+
if (In || Bn(h), e.removed = [], typeof b == "string" && (ct = !1), ct) {
|
|
5088
5088
|
if (b.nodeName) {
|
|
5089
|
-
const
|
|
5090
|
-
if (!O[
|
|
5089
|
+
const pe = P(b.nodeName);
|
|
5090
|
+
if (!O[pe] || lt[pe])
|
|
5091
5091
|
throw gt("root node is forbidden and cannot be sanitized in-place");
|
|
5092
5092
|
}
|
|
5093
5093
|
} else if (b instanceof a)
|
|
5094
5094
|
f = Ci("<!---->"), v = f.ownerDocument.importNode(b, !0), v.nodeType === vt.element && v.nodeName === "BODY" || v.nodeName === "HTML" ? f = v : f.appendChild(v);
|
|
5095
5095
|
else {
|
|
5096
|
-
if (!Fe && !
|
|
5096
|
+
if (!Fe && !He && !Le && // eslint-disable-next-line unicorn/prefer-includes
|
|
5097
5097
|
b.indexOf("<") === -1)
|
|
5098
|
-
return
|
|
5098
|
+
return R && Ht ? R.createHTML(b) : b;
|
|
5099
5099
|
if (f = Ci(b), !f)
|
|
5100
|
-
return Fe ? null :
|
|
5100
|
+
return Fe ? null : Ht ? Ae : "";
|
|
5101
5101
|
}
|
|
5102
|
-
f && Mn &&
|
|
5103
|
-
const
|
|
5104
|
-
for (; A =
|
|
5105
|
-
|
|
5102
|
+
f && Mn && ie(f.firstChild);
|
|
5103
|
+
const L = Ti(ct ? b : f);
|
|
5104
|
+
for (; A = L.nextNode(); )
|
|
5105
|
+
Ri(A), Ii(A), A.content instanceof r && Sa(A.content);
|
|
5106
5106
|
if (ct)
|
|
5107
5107
|
return b;
|
|
5108
5108
|
if (Fe) {
|
|
5109
|
-
if (
|
|
5110
|
-
for (
|
|
5111
|
-
|
|
5109
|
+
if (Bt)
|
|
5110
|
+
for (U = ua.call(f.ownerDocument); f.firstChild; )
|
|
5111
|
+
U.appendChild(f.firstChild);
|
|
5112
5112
|
else
|
|
5113
|
-
|
|
5114
|
-
return (
|
|
5115
|
-
}
|
|
5116
|
-
let Y =
|
|
5117
|
-
return
|
|
5118
|
-
` + Y),
|
|
5119
|
-
Y = ft(Y,
|
|
5120
|
-
}),
|
|
5113
|
+
U = f;
|
|
5114
|
+
return (D.shadowroot || D.shadowrootmode) && (U = da.call(s, U, !0)), U;
|
|
5115
|
+
}
|
|
5116
|
+
let Y = Le ? f.outerHTML : f.innerHTML;
|
|
5117
|
+
return Le && O["!doctype"] && f.ownerDocument && f.ownerDocument.doctype && f.ownerDocument.doctype.name && H(Zo, f.ownerDocument.doctype.name) && (Y = "<!DOCTYPE " + f.ownerDocument.doctype.name + `>
|
|
5118
|
+
` + Y), He && Yt([Tn, Ln, Rn], (pe) => {
|
|
5119
|
+
Y = ft(Y, pe, " ");
|
|
5120
|
+
}), R && Ht ? R.createHTML(Y) : Y;
|
|
5121
5121
|
}, e.setConfig = function() {
|
|
5122
5122
|
let b = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
5123
|
-
|
|
5123
|
+
Bn(b), In = !0;
|
|
5124
5124
|
}, e.clearConfig = function() {
|
|
5125
5125
|
Ge = null, In = !1;
|
|
5126
5126
|
}, e.isValidAttribute = function(b, h, f) {
|
|
5127
|
-
Ge ||
|
|
5127
|
+
Ge || Bn({});
|
|
5128
5128
|
const v = P(b), A = P(h);
|
|
5129
5129
|
return Oi(v, A, f);
|
|
5130
5130
|
}, e.addHook = function(b, h) {
|
|
5131
|
-
typeof h == "function" && pt(
|
|
5131
|
+
typeof h == "function" && pt(B[b], h);
|
|
5132
5132
|
}, e.removeHook = function(b, h) {
|
|
5133
5133
|
if (h !== void 0) {
|
|
5134
|
-
const f =
|
|
5135
|
-
return f === -1 ? void 0 :
|
|
5134
|
+
const f = Iu(B[b], h);
|
|
5135
|
+
return f === -1 ? void 0 : Mu(B[b], f, 1)[0];
|
|
5136
5136
|
}
|
|
5137
|
-
return Sr(
|
|
5137
|
+
return Sr(B[b]);
|
|
5138
5138
|
}, e.removeHooks = function(b) {
|
|
5139
|
-
|
|
5139
|
+
B[b] = [];
|
|
5140
5140
|
}, e.removeAllHooks = function() {
|
|
5141
|
-
|
|
5141
|
+
B = Rr();
|
|
5142
5142
|
}, e;
|
|
5143
5143
|
}
|
|
5144
|
-
var
|
|
5144
|
+
var Xo = Yo(), Qu = Object.defineProperty, Ju = (n, e, t, s) => {
|
|
5145
5145
|
for (var i = void 0, r = n.length - 1, o; r >= 0; r--)
|
|
5146
5146
|
(o = n[r]) && (i = o(e, t, i) || i);
|
|
5147
|
-
return i &&
|
|
5147
|
+
return i && Qu(e, t, i), i;
|
|
5148
5148
|
};
|
|
5149
5149
|
const li = class li extends M {
|
|
5150
5150
|
render() {
|
|
5151
5151
|
return w`<div class="message-type-html">
|
|
5152
|
-
${
|
|
5152
|
+
${Lu(Xo.sanitize(this.message.content))}
|
|
5153
5153
|
</div>`;
|
|
5154
5154
|
}
|
|
5155
5155
|
};
|
|
@@ -5191,7 +5191,7 @@ li.styles = [
|
|
|
5191
5191
|
`
|
|
5192
5192
|
];
|
|
5193
5193
|
let fn = li;
|
|
5194
|
-
|
|
5194
|
+
Ju([
|
|
5195
5195
|
C({ attribute: !1 })
|
|
5196
5196
|
], fn.prototype, "message");
|
|
5197
5197
|
function js() {
|
|
@@ -5208,9 +5208,9 @@ function js() {
|
|
|
5208
5208
|
walkTokens: null
|
|
5209
5209
|
};
|
|
5210
5210
|
}
|
|
5211
|
-
var
|
|
5212
|
-
function
|
|
5213
|
-
|
|
5211
|
+
var Be = js();
|
|
5212
|
+
function Ko(n) {
|
|
5213
|
+
Be = n;
|
|
5214
5214
|
}
|
|
5215
5215
|
var kt = { exec: () => null };
|
|
5216
5216
|
function S(n, e = "") {
|
|
@@ -5281,31 +5281,31 @@ var j = {
|
|
|
5281
5281
|
fencesBeginRegex: (n) => new RegExp(`^ {0,${Math.min(3, n - 1)}}(?:\`\`\`|~~~)`),
|
|
5282
5282
|
headingBeginRegex: (n) => new RegExp(`^ {0,${Math.min(3, n - 1)}}#`),
|
|
5283
5283
|
htmlBeginRegex: (n) => new RegExp(`^ {0,${Math.min(3, n - 1)}}<(?:[a-z].*>|!--)`, "i")
|
|
5284
|
-
},
|
|
5284
|
+
}, eh = /^(?:[ \t]*(?:\n|$))+/, th = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, nh = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, Ut = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, sh = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, qs = /(?:[*+-]|\d{1,9}[.)])/, Vo = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, Qo = S(Vo).replace(/bull/g, qs).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(), ih = S(Vo).replace(/bull/g, qs).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(), Ws = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, rh = /^[^\n]+/, Gs = /(?!\s*\])(?:\\.|[^\[\]\\])+/, oh = S(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", Gs).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), ah = S(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, qs).getRegex(), An = "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", Zs = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, lh = S(
|
|
5285
5285
|
"^ {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|$))",
|
|
5286
5286
|
"i"
|
|
5287
|
-
).replace("comment", Zs).replace("tag", An).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),
|
|
5288
|
-
blockquote:
|
|
5289
|
-
code:
|
|
5290
|
-
def:
|
|
5291
|
-
fences:
|
|
5292
|
-
heading:
|
|
5287
|
+
).replace("comment", Zs).replace("tag", An).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), Jo = S(Ws).replace("hr", Ut).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", An).getRegex(), ch = S(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", Jo).getRegex(), Ys = {
|
|
5288
|
+
blockquote: ch,
|
|
5289
|
+
code: th,
|
|
5290
|
+
def: oh,
|
|
5291
|
+
fences: nh,
|
|
5292
|
+
heading: sh,
|
|
5293
5293
|
hr: Ut,
|
|
5294
|
-
html:
|
|
5295
|
-
lheading:
|
|
5296
|
-
list:
|
|
5297
|
-
newline:
|
|
5298
|
-
paragraph:
|
|
5294
|
+
html: lh,
|
|
5295
|
+
lheading: Qo,
|
|
5296
|
+
list: ah,
|
|
5297
|
+
newline: eh,
|
|
5298
|
+
paragraph: Jo,
|
|
5299
5299
|
table: kt,
|
|
5300
|
-
text:
|
|
5300
|
+
text: rh
|
|
5301
5301
|
}, Or = S(
|
|
5302
5302
|
"^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"
|
|
5303
|
-
).replace("hr", Ut).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", An).getRegex(),
|
|
5303
|
+
).replace("hr", Ut).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", An).getRegex(), uh = {
|
|
5304
5304
|
...Ys,
|
|
5305
|
-
lheading:
|
|
5305
|
+
lheading: ih,
|
|
5306
5306
|
table: Or,
|
|
5307
5307
|
paragraph: S(Ws).replace("hr", Ut).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", Or).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", An).getRegex()
|
|
5308
|
-
},
|
|
5308
|
+
}, hh = {
|
|
5309
5309
|
...Ys,
|
|
5310
5310
|
html: S(
|
|
5311
5311
|
`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`
|
|
@@ -5316,66 +5316,66 @@ var j = {
|
|
|
5316
5316
|
// fences not supported
|
|
5317
5317
|
lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
|
|
5318
5318
|
paragraph: S(Ws).replace("hr", Ut).replace("heading", ` *#{1,6} *[^
|
|
5319
|
-
]`).replace("lheading",
|
|
5320
|
-
},
|
|
5319
|
+
]`).replace("lheading", Qo).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
|
|
5320
|
+
}, dh = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, ph = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, ea = /^( {2,}|\\)\n(?!\s*$)/, fh = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, Cn = /[\p{P}\p{S}]/u, Xs = /[\s\p{P}\p{S}]/u, ta = /[^\s\p{P}\p{S}]/u, gh = S(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, Xs).getRegex(), na = /(?!~)[\p{P}\p{S}]/u, mh = /(?!~)[\s\p{P}\p{S}]/u, vh = /(?:[^\s\p{P}\p{S}]|~)/u, bh = /\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g, sa = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, yh = S(sa, "u").replace(/punct/g, Cn).getRegex(), $h = S(sa, "u").replace(/punct/g, na).getRegex(), ia = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", xh = S(ia, "gu").replace(/notPunctSpace/g, ta).replace(/punctSpace/g, Xs).replace(/punct/g, Cn).getRegex(), wh = S(ia, "gu").replace(/notPunctSpace/g, vh).replace(/punctSpace/g, mh).replace(/punct/g, na).getRegex(), kh = S(
|
|
5321
5321
|
"^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)",
|
|
5322
5322
|
"gu"
|
|
5323
|
-
).replace(/notPunctSpace/g,
|
|
5323
|
+
).replace(/notPunctSpace/g, ta).replace(/punctSpace/g, Xs).replace(/punct/g, Cn).getRegex(), Sh = S(/\\(punct)/, "gu").replace(/punct/g, Cn).getRegex(), _h = S(/^<(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(), Eh = S(Zs).replace("(?:-->|$)", "-->").getRegex(), Ah = S(
|
|
5324
5324
|
"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>"
|
|
5325
|
-
).replace("comment",
|
|
5325
|
+
).replace("comment", Eh).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), gn = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, Ch = S(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label", gn).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), ra = S(/^!?\[(label)\]\[(ref)\]/).replace("label", gn).replace("ref", Gs).getRegex(), oa = S(/^!?\[(ref)\](?:\[\])?/).replace("ref", Gs).getRegex(), Th = S("reflink|nolink(?!\\()", "g").replace("reflink", ra).replace("nolink", oa).getRegex(), Ks = {
|
|
5326
5326
|
_backpedal: kt,
|
|
5327
5327
|
// only used for GFM url
|
|
5328
|
-
anyPunctuation:
|
|
5329
|
-
autolink:
|
|
5330
|
-
blockSkip:
|
|
5331
|
-
br:
|
|
5332
|
-
code:
|
|
5328
|
+
anyPunctuation: Sh,
|
|
5329
|
+
autolink: _h,
|
|
5330
|
+
blockSkip: bh,
|
|
5331
|
+
br: ea,
|
|
5332
|
+
code: ph,
|
|
5333
5333
|
del: kt,
|
|
5334
|
-
emStrongLDelim:
|
|
5335
|
-
emStrongRDelimAst:
|
|
5336
|
-
emStrongRDelimUnd:
|
|
5337
|
-
escape:
|
|
5338
|
-
link:
|
|
5339
|
-
nolink:
|
|
5340
|
-
punctuation:
|
|
5341
|
-
reflink:
|
|
5342
|
-
reflinkSearch:
|
|
5343
|
-
tag:
|
|
5344
|
-
text:
|
|
5334
|
+
emStrongLDelim: yh,
|
|
5335
|
+
emStrongRDelimAst: xh,
|
|
5336
|
+
emStrongRDelimUnd: kh,
|
|
5337
|
+
escape: dh,
|
|
5338
|
+
link: Ch,
|
|
5339
|
+
nolink: oa,
|
|
5340
|
+
punctuation: gh,
|
|
5341
|
+
reflink: ra,
|
|
5342
|
+
reflinkSearch: Th,
|
|
5343
|
+
tag: Ah,
|
|
5344
|
+
text: fh,
|
|
5345
5345
|
url: kt
|
|
5346
|
-
},
|
|
5346
|
+
}, Lh = {
|
|
5347
5347
|
...Ks,
|
|
5348
5348
|
link: S(/^!?\[(label)\]\((.*?)\)/).replace("label", gn).getRegex(),
|
|
5349
5349
|
reflink: S(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", gn).getRegex()
|
|
5350
5350
|
}, xs = {
|
|
5351
5351
|
...Ks,
|
|
5352
|
-
emStrongRDelimAst:
|
|
5353
|
-
emStrongLDelim:
|
|
5352
|
+
emStrongRDelimAst: wh,
|
|
5353
|
+
emStrongLDelim: $h,
|
|
5354
5354
|
url: S(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/, "i").replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),
|
|
5355
5355
|
_backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,
|
|
5356
5356
|
del: /^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,
|
|
5357
5357
|
text: /^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/
|
|
5358
5358
|
}, Rh = {
|
|
5359
5359
|
...xs,
|
|
5360
|
-
br: S(
|
|
5360
|
+
br: S(ea).replace("{2,}", "*").getRegex(),
|
|
5361
5361
|
text: S(xs.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
|
|
5362
5362
|
}, Kt = {
|
|
5363
5363
|
normal: Ys,
|
|
5364
|
-
gfm:
|
|
5365
|
-
pedantic:
|
|
5364
|
+
gfm: uh,
|
|
5365
|
+
pedantic: hh
|
|
5366
5366
|
}, bt = {
|
|
5367
5367
|
normal: Ks,
|
|
5368
5368
|
gfm: xs,
|
|
5369
5369
|
breaks: Rh,
|
|
5370
|
-
pedantic:
|
|
5371
|
-
},
|
|
5370
|
+
pedantic: Lh
|
|
5371
|
+
}, Oh = {
|
|
5372
5372
|
"&": "&",
|
|
5373
5373
|
"<": "<",
|
|
5374
5374
|
">": ">",
|
|
5375
5375
|
'"': """,
|
|
5376
5376
|
"'": "'"
|
|
5377
|
-
}, Pr = (n) =>
|
|
5378
|
-
function
|
|
5377
|
+
}, Pr = (n) => Oh[n];
|
|
5378
|
+
function re(n, e) {
|
|
5379
5379
|
if (e) {
|
|
5380
5380
|
if (j.escapeTest.test(n))
|
|
5381
5381
|
return n.replace(j.escapeReplace, Pr);
|
|
@@ -5417,7 +5417,7 @@ function yt(n, e, t) {
|
|
|
5417
5417
|
i++;
|
|
5418
5418
|
return n.slice(0, s - i);
|
|
5419
5419
|
}
|
|
5420
|
-
function
|
|
5420
|
+
function Ph(n, e) {
|
|
5421
5421
|
if (n.indexOf(e[1]) === -1)
|
|
5422
5422
|
return -1;
|
|
5423
5423
|
let t = 0;
|
|
@@ -5443,7 +5443,7 @@ function Nr(n, e, t, s, i) {
|
|
|
5443
5443
|
};
|
|
5444
5444
|
return s.state.inLink = !1, l;
|
|
5445
5445
|
}
|
|
5446
|
-
function
|
|
5446
|
+
function Ih(n, e, t) {
|
|
5447
5447
|
const s = n.match(t.other.indentCodeCompensation);
|
|
5448
5448
|
if (s === null)
|
|
5449
5449
|
return e;
|
|
@@ -5465,7 +5465,7 @@ var mn = class {
|
|
|
5465
5465
|
_(this, "rules");
|
|
5466
5466
|
// set by the lexer
|
|
5467
5467
|
_(this, "lexer");
|
|
5468
|
-
this.options = n ||
|
|
5468
|
+
this.options = n || Be;
|
|
5469
5469
|
}
|
|
5470
5470
|
space(n) {
|
|
5471
5471
|
const e = this.rules.block.newline.exec(n);
|
|
@@ -5491,7 +5491,7 @@ var mn = class {
|
|
|
5491
5491
|
fences(n) {
|
|
5492
5492
|
const e = this.rules.block.fences.exec(n);
|
|
5493
5493
|
if (e) {
|
|
5494
|
-
const t = e[0], s =
|
|
5494
|
+
const t = e[0], s = Ih(t, e[3] || "", this.rules);
|
|
5495
5495
|
return {
|
|
5496
5496
|
type: "code",
|
|
5497
5497
|
raw: t,
|
|
@@ -5601,22 +5601,22 @@ ${u}` : u;
|
|
|
5601
5601
|
break;
|
|
5602
5602
|
c = e[0], n = n.substring(c.length);
|
|
5603
5603
|
let p = e[2].split(`
|
|
5604
|
-
`, 1)[0].replace(this.rules.other.listReplaceTabs, (
|
|
5604
|
+
`, 1)[0].replace(this.rules.other.listReplaceTabs, (ee) => " ".repeat(3 * ee.length)), d = n.split(`
|
|
5605
5605
|
`, 1)[0], g = !p.trim(), m = 0;
|
|
5606
5606
|
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 + `
|
|
5607
5607
|
`, n = n.substring(d.length + 1), l = !0), !l) {
|
|
5608
|
-
const
|
|
5608
|
+
const ee = this.rules.other.nextBulletRegex(m), xe = this.rules.other.hrRegex(m), Ee = this.rules.other.fencesBeginRegex(m), R = this.rules.other.headingBeginRegex(m), Ae = this.rules.other.htmlBeginRegex(m);
|
|
5609
5609
|
for (; n; ) {
|
|
5610
5610
|
const Ce = n.split(`
|
|
5611
5611
|
`, 1)[0];
|
|
5612
5612
|
let Te;
|
|
5613
|
-
if (d = Ce, this.options.pedantic ? (d = d.replace(this.rules.other.listReplaceNesting, " "), Te = d) : Te = d.replace(this.rules.other.tabCharGlobal, " "), Ee.test(d) ||
|
|
5613
|
+
if (d = Ce, this.options.pedantic ? (d = d.replace(this.rules.other.listReplaceNesting, " "), Te = d) : Te = d.replace(this.rules.other.tabCharGlobal, " "), Ee.test(d) || R.test(d) || Ae.test(d) || ee.test(d) || xe.test(d))
|
|
5614
5614
|
break;
|
|
5615
5615
|
if (Te.search(this.rules.other.nonSpaceChar) >= m || !d.trim())
|
|
5616
5616
|
u += `
|
|
5617
5617
|
` + Te.slice(m);
|
|
5618
5618
|
else {
|
|
5619
|
-
if (g || p.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || Ee.test(p) ||
|
|
5619
|
+
if (g || p.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || Ee.test(p) || R.test(p) || xe.test(p))
|
|
5620
5620
|
break;
|
|
5621
5621
|
u += `
|
|
5622
5622
|
` + d;
|
|
@@ -5626,12 +5626,12 @@ ${u}` : u;
|
|
|
5626
5626
|
}
|
|
5627
5627
|
}
|
|
5628
5628
|
i.loose || (o ? i.loose = !0 : this.rules.other.doubleBlankLine.test(c) && (o = !0));
|
|
5629
|
-
let y = null,
|
|
5630
|
-
this.options.gfm && (y = this.rules.other.listIsTask.exec(u), y && (
|
|
5629
|
+
let y = null, ue;
|
|
5630
|
+
this.options.gfm && (y = this.rules.other.listIsTask.exec(u), y && (ue = y[0] !== "[ ] ", u = u.replace(this.rules.other.listReplaceTask, ""))), i.items.push({
|
|
5631
5631
|
type: "list_item",
|
|
5632
5632
|
raw: c,
|
|
5633
5633
|
task: !!y,
|
|
5634
|
-
checked:
|
|
5634
|
+
checked: ue,
|
|
5635
5635
|
loose: !1,
|
|
5636
5636
|
text: u,
|
|
5637
5637
|
tokens: []
|
|
@@ -5777,7 +5777,7 @@ ${u}` : u;
|
|
|
5777
5777
|
if ((t.length - r.length) % 2 === 0)
|
|
5778
5778
|
return;
|
|
5779
5779
|
} else {
|
|
5780
|
-
const r =
|
|
5780
|
+
const r = Ph(e[2], "()");
|
|
5781
5781
|
if (r === -2)
|
|
5782
5782
|
return;
|
|
5783
5783
|
if (r > -1) {
|
|
@@ -5940,14 +5940,14 @@ ${u}` : u;
|
|
|
5940
5940
|
};
|
|
5941
5941
|
}
|
|
5942
5942
|
}
|
|
5943
|
-
},
|
|
5943
|
+
}, me = class ws {
|
|
5944
5944
|
constructor(e) {
|
|
5945
5945
|
_(this, "tokens");
|
|
5946
5946
|
_(this, "options");
|
|
5947
5947
|
_(this, "state");
|
|
5948
5948
|
_(this, "tokenizer");
|
|
5949
5949
|
_(this, "inlineQueue");
|
|
5950
|
-
this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = e ||
|
|
5950
|
+
this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = e || Be, this.options.tokenizer = this.options.tokenizer || new mn(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = {
|
|
5951
5951
|
inLink: !1,
|
|
5952
5952
|
inRawBlock: !1,
|
|
5953
5953
|
top: !0
|
|
@@ -6184,12 +6184,12 @@ ${u}` : u;
|
|
|
6184
6184
|
}
|
|
6185
6185
|
return t;
|
|
6186
6186
|
}
|
|
6187
|
-
},
|
|
6187
|
+
}, Lt = class {
|
|
6188
6188
|
// set by the parser
|
|
6189
6189
|
constructor(n) {
|
|
6190
6190
|
_(this, "options");
|
|
6191
6191
|
_(this, "parser");
|
|
6192
|
-
this.options = n ||
|
|
6192
|
+
this.options = n || Be;
|
|
6193
6193
|
}
|
|
6194
6194
|
space(n) {
|
|
6195
6195
|
return "";
|
|
@@ -6198,8 +6198,8 @@ ${u}` : u;
|
|
|
6198
6198
|
var r;
|
|
6199
6199
|
const s = (r = (e || "").match(j.notSpaceStart)) == null ? void 0 : r[0], i = n.replace(j.endingNewline, "") + `
|
|
6200
6200
|
`;
|
|
6201
|
-
return s ? '<pre><code class="language-' +
|
|
6202
|
-
` : "<pre><code>" + (t ? i :
|
|
6201
|
+
return s ? '<pre><code class="language-' + re(s) + '">' + (t ? i : re(i, !0)) + `</code></pre>
|
|
6202
|
+
` : "<pre><code>" + (t ? i : re(i, !0)) + `</code></pre>
|
|
6203
6203
|
`;
|
|
6204
6204
|
}
|
|
6205
6205
|
blockquote({ tokens: n }) {
|
|
@@ -6235,7 +6235,7 @@ ${this.parser.parse(n)}</blockquote>
|
|
|
6235
6235
|
let e = "";
|
|
6236
6236
|
if (n.task) {
|
|
6237
6237
|
const s = this.checkbox({ checked: !!n.checked });
|
|
6238
|
-
n.loose ? ((t = n.tokens[0]) == null ? void 0 : t.type) === "paragraph" ? (n.tokens[0].text = s + " " + 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 = s + " " +
|
|
6238
|
+
n.loose ? ((t = n.tokens[0]) == null ? void 0 : t.type) === "paragraph" ? (n.tokens[0].text = s + " " + 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 = s + " " + re(n.tokens[0].tokens[0].text), n.tokens[0].tokens[0].escaped = !0)) : n.tokens.unshift({
|
|
6239
6239
|
type: "text",
|
|
6240
6240
|
raw: s + " ",
|
|
6241
6241
|
text: s + " ",
|
|
@@ -6291,7 +6291,7 @@ ${n}</tr>
|
|
|
6291
6291
|
return `<em>${this.parser.parseInline(n)}</em>`;
|
|
6292
6292
|
}
|
|
6293
6293
|
codespan({ text: n }) {
|
|
6294
|
-
return `<code>${
|
|
6294
|
+
return `<code>${re(n, !0)}</code>`;
|
|
6295
6295
|
}
|
|
6296
6296
|
br(n) {
|
|
6297
6297
|
return "<br>";
|
|
@@ -6305,19 +6305,19 @@ ${n}</tr>
|
|
|
6305
6305
|
return s;
|
|
6306
6306
|
n = i;
|
|
6307
6307
|
let r = '<a href="' + n + '"';
|
|
6308
|
-
return e && (r += ' title="' +
|
|
6308
|
+
return e && (r += ' title="' + re(e) + '"'), r += ">" + s + "</a>", r;
|
|
6309
6309
|
}
|
|
6310
6310
|
image({ href: n, title: e, text: t, tokens: s }) {
|
|
6311
6311
|
s && (t = this.parser.parseInline(s, this.parser.textRenderer));
|
|
6312
6312
|
const i = Ir(n);
|
|
6313
6313
|
if (i === null)
|
|
6314
|
-
return
|
|
6314
|
+
return re(t);
|
|
6315
6315
|
n = i;
|
|
6316
6316
|
let r = `<img src="${n}" alt="${t}"`;
|
|
6317
|
-
return e && (r += ` title="${
|
|
6317
|
+
return e && (r += ` title="${re(e)}"`), r += ">", r;
|
|
6318
6318
|
}
|
|
6319
6319
|
text(n) {
|
|
6320
|
-
return "tokens" in n && n.tokens ? this.parser.parseInline(n.tokens) : "escaped" in n && n.escaped ? n.text :
|
|
6320
|
+
return "tokens" in n && n.tokens ? this.parser.parseInline(n.tokens) : "escaped" in n && n.escaped ? n.text : re(n.text);
|
|
6321
6321
|
}
|
|
6322
6322
|
}, Vs = class {
|
|
6323
6323
|
// no need for block level renderers
|
|
@@ -6348,12 +6348,12 @@ ${n}</tr>
|
|
|
6348
6348
|
br() {
|
|
6349
6349
|
return "";
|
|
6350
6350
|
}
|
|
6351
|
-
},
|
|
6351
|
+
}, ve = class ks {
|
|
6352
6352
|
constructor(e) {
|
|
6353
6353
|
_(this, "options");
|
|
6354
6354
|
_(this, "renderer");
|
|
6355
6355
|
_(this, "textRenderer");
|
|
6356
|
-
this.options = e ||
|
|
6356
|
+
this.options = e || Be, this.options.renderer = this.options.renderer || new Lt(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new Vs();
|
|
6357
6357
|
}
|
|
6358
6358
|
/**
|
|
6359
6359
|
* Static Parse Method
|
|
@@ -6514,7 +6514,7 @@ ${n}</tr>
|
|
|
6514
6514
|
constructor(n) {
|
|
6515
6515
|
_(this, "options");
|
|
6516
6516
|
_(this, "block");
|
|
6517
|
-
this.options = n ||
|
|
6517
|
+
this.options = n || Be;
|
|
6518
6518
|
}
|
|
6519
6519
|
/**
|
|
6520
6520
|
* Process markdown before marked
|
|
@@ -6538,28 +6538,28 @@ ${n}</tr>
|
|
|
6538
6538
|
* Provide function to tokenize markdown
|
|
6539
6539
|
*/
|
|
6540
6540
|
provideLexer() {
|
|
6541
|
-
return this.block ?
|
|
6541
|
+
return this.block ? me.lex : me.lexInline;
|
|
6542
6542
|
}
|
|
6543
6543
|
/**
|
|
6544
6544
|
* Provide function to parse tokens
|
|
6545
6545
|
*/
|
|
6546
6546
|
provideParser() {
|
|
6547
|
-
return this.block ?
|
|
6547
|
+
return this.block ? ve.parse : ve.parseInline;
|
|
6548
6548
|
}
|
|
6549
6549
|
}, _(ns, "passThroughHooks", /* @__PURE__ */ new Set([
|
|
6550
6550
|
"preprocess",
|
|
6551
6551
|
"postprocess",
|
|
6552
6552
|
"processAllTokens"
|
|
6553
|
-
])), ns),
|
|
6553
|
+
])), ns), Mh = class {
|
|
6554
6554
|
constructor(...n) {
|
|
6555
6555
|
_(this, "defaults", js());
|
|
6556
6556
|
_(this, "options", this.setOptions);
|
|
6557
6557
|
_(this, "parse", this.parseMarkdown(!0));
|
|
6558
6558
|
_(this, "parseInline", this.parseMarkdown(!1));
|
|
6559
|
-
_(this, "Parser",
|
|
6560
|
-
_(this, "Renderer",
|
|
6559
|
+
_(this, "Parser", ve);
|
|
6560
|
+
_(this, "Renderer", Lt);
|
|
6561
6561
|
_(this, "TextRenderer", Vs);
|
|
6562
|
-
_(this, "Lexer",
|
|
6562
|
+
_(this, "Lexer", me);
|
|
6563
6563
|
_(this, "Tokenizer", mn);
|
|
6564
6564
|
_(this, "Hooks", en);
|
|
6565
6565
|
this.use(...n);
|
|
@@ -6618,7 +6618,7 @@ ${n}</tr>
|
|
|
6618
6618
|
}
|
|
6619
6619
|
"childTokens" in i && i.childTokens && (e.childTokens[i.name] = i.childTokens);
|
|
6620
6620
|
}), s.extensions = e), t.renderer) {
|
|
6621
|
-
const i = this.defaults.renderer || new
|
|
6621
|
+
const i = this.defaults.renderer || new Lt(this.defaults);
|
|
6622
6622
|
for (const r in t.renderer) {
|
|
6623
6623
|
if (!(r in i))
|
|
6624
6624
|
throw new Error(`renderer '${r}' does not exist`);
|
|
@@ -6681,10 +6681,10 @@ ${n}</tr>
|
|
|
6681
6681
|
return this.defaults = { ...this.defaults, ...n }, this;
|
|
6682
6682
|
}
|
|
6683
6683
|
lexer(n, e) {
|
|
6684
|
-
return
|
|
6684
|
+
return me.lex(n, e ?? this.defaults);
|
|
6685
6685
|
}
|
|
6686
6686
|
parser(n, e) {
|
|
6687
|
-
return
|
|
6687
|
+
return ve.parse(n, e ?? this.defaults);
|
|
6688
6688
|
}
|
|
6689
6689
|
parseMarkdown(n) {
|
|
6690
6690
|
return (t, s) => {
|
|
@@ -6696,7 +6696,7 @@ ${n}</tr>
|
|
|
6696
6696
|
if (typeof t != "string")
|
|
6697
6697
|
return o(new Error("marked(): input parameter is of type " + Object.prototype.toString.call(t) + ", string expected"));
|
|
6698
6698
|
r.hooks && (r.hooks.options = r, r.hooks.block = n);
|
|
6699
|
-
const a = r.hooks ? r.hooks.provideLexer() : n ?
|
|
6699
|
+
const a = r.hooks ? r.hooks.provideLexer() : n ? me.lex : me.lexInline, l = r.hooks ? r.hooks.provideParser() : n ? ve.parse : ve.parseInline;
|
|
6700
6700
|
if (r.async)
|
|
6701
6701
|
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);
|
|
6702
6702
|
try {
|
|
@@ -6714,7 +6714,7 @@ ${n}</tr>
|
|
|
6714
6714
|
return (t) => {
|
|
6715
6715
|
if (t.message += `
|
|
6716
6716
|
Please report this to https://github.com/markedjs/marked.`, n) {
|
|
6717
|
-
const s = "<p>An error occurred:</p><pre>" +
|
|
6717
|
+
const s = "<p>An error occurred:</p><pre>" + re(t.message + "", !0) + "</pre>";
|
|
6718
6718
|
return e ? Promise.resolve(s) : s;
|
|
6719
6719
|
}
|
|
6720
6720
|
if (e)
|
|
@@ -6722,28 +6722,28 @@ Please report this to https://github.com/markedjs/marked.`, n) {
|
|
|
6722
6722
|
throw t;
|
|
6723
6723
|
};
|
|
6724
6724
|
}
|
|
6725
|
-
}, ze = new
|
|
6725
|
+
}, ze = new Mh();
|
|
6726
6726
|
function k(n, e) {
|
|
6727
6727
|
return ze.parse(n, e);
|
|
6728
6728
|
}
|
|
6729
6729
|
k.options = k.setOptions = function(n) {
|
|
6730
|
-
return ze.setOptions(n), k.defaults = ze.defaults,
|
|
6730
|
+
return ze.setOptions(n), k.defaults = ze.defaults, Ko(k.defaults), k;
|
|
6731
6731
|
};
|
|
6732
6732
|
k.getDefaults = js;
|
|
6733
|
-
k.defaults =
|
|
6733
|
+
k.defaults = Be;
|
|
6734
6734
|
k.use = function(...n) {
|
|
6735
|
-
return ze.use(...n), k.defaults = ze.defaults,
|
|
6735
|
+
return ze.use(...n), k.defaults = ze.defaults, Ko(k.defaults), k;
|
|
6736
6736
|
};
|
|
6737
6737
|
k.walkTokens = function(n, e) {
|
|
6738
6738
|
return ze.walkTokens(n, e);
|
|
6739
6739
|
};
|
|
6740
6740
|
k.parseInline = ze.parseInline;
|
|
6741
|
-
k.Parser =
|
|
6742
|
-
k.parser =
|
|
6743
|
-
k.Renderer =
|
|
6741
|
+
k.Parser = ve;
|
|
6742
|
+
k.parser = ve.parse;
|
|
6743
|
+
k.Renderer = Lt;
|
|
6744
6744
|
k.TextRenderer = Vs;
|
|
6745
|
-
k.Lexer =
|
|
6746
|
-
k.lexer =
|
|
6745
|
+
k.Lexer = me;
|
|
6746
|
+
k.lexer = me.lex;
|
|
6747
6747
|
k.Tokenizer = mn;
|
|
6748
6748
|
k.Hooks = en;
|
|
6749
6749
|
k.parse = k;
|
|
@@ -6752,21 +6752,21 @@ k.setOptions;
|
|
|
6752
6752
|
k.use;
|
|
6753
6753
|
k.walkTokens;
|
|
6754
6754
|
k.parseInline;
|
|
6755
|
-
|
|
6756
|
-
|
|
6757
|
-
var
|
|
6755
|
+
ve.parse;
|
|
6756
|
+
me.lex;
|
|
6757
|
+
var Nh = Object.defineProperty, aa = (n, e, t, s) => {
|
|
6758
6758
|
for (var i = void 0, r = n.length - 1, o; r >= 0; r--)
|
|
6759
6759
|
(o = n[r]) && (i = o(e, t, i) || i);
|
|
6760
|
-
return i &&
|
|
6760
|
+
return i && Nh(e, t, i), i;
|
|
6761
6761
|
};
|
|
6762
|
-
const
|
|
6763
|
-
|
|
6762
|
+
const la = new Lt();
|
|
6763
|
+
la.link = function({ href: n, title: e, text: t }) {
|
|
6764
6764
|
return e ?? (e = t), `<a target="_blank" href="${n}" title="${e}">${t}</a>`;
|
|
6765
6765
|
};
|
|
6766
|
-
k.use({ renderer:
|
|
6766
|
+
k.use({ renderer: la });
|
|
6767
6767
|
const ci = class ci extends M {
|
|
6768
6768
|
constructor() {
|
|
6769
|
-
super(...arguments), this.showLightbox = !1, this.imageUrl = "", this.altText = "", this.scrollRef =
|
|
6769
|
+
super(...arguments), this.showLightbox = !1, this.imageUrl = "", this.altText = "", this.scrollRef = oe(), this.contentRef = oe(), this.autoScroll = !0, this.buffer = "", this.pointer = 0, this.imageRegexp = new RegExp(/!\[[^[]*\([^)]*\)/gm);
|
|
6770
6770
|
}
|
|
6771
6771
|
// Stop autoscroll on user interaction
|
|
6772
6772
|
handleAutoscroll() {
|
|
@@ -6811,7 +6811,7 @@ const ci = class ci extends M {
|
|
|
6811
6811
|
const e = this.getLastChunk();
|
|
6812
6812
|
if (!e) return;
|
|
6813
6813
|
this.buffer += e;
|
|
6814
|
-
const t =
|
|
6814
|
+
const t = Xo.sanitize(
|
|
6815
6815
|
k.parse(this.buffer)
|
|
6816
6816
|
);
|
|
6817
6817
|
if (this.includesImage(this.buffer))
|
|
@@ -6831,10 +6831,10 @@ const ci = class ci extends M {
|
|
|
6831
6831
|
}
|
|
6832
6832
|
render() {
|
|
6833
6833
|
return w`
|
|
6834
|
-
<div class="message-type-markdown" ${
|
|
6834
|
+
<div class="message-type-markdown" ${ae(this.contentRef)}>
|
|
6835
6835
|
<div></div>
|
|
6836
6836
|
</div>
|
|
6837
|
-
<div class="scroll" ${
|
|
6837
|
+
<div class="scroll" ${ae(this.scrollRef)}></div>
|
|
6838
6838
|
${this.showLightbox ? w`<ace-lightbox
|
|
6839
6839
|
imageUrl="${this.imageUrl}"
|
|
6840
6840
|
altText="${this.altText}"
|
|
@@ -6883,17 +6883,17 @@ ci.styles = [
|
|
|
6883
6883
|
}
|
|
6884
6884
|
`
|
|
6885
6885
|
];
|
|
6886
|
-
let
|
|
6887
|
-
|
|
6886
|
+
let Rt = ci;
|
|
6887
|
+
aa([
|
|
6888
6888
|
C({ attribute: !1 })
|
|
6889
|
-
],
|
|
6890
|
-
|
|
6891
|
-
|
|
6892
|
-
],
|
|
6893
|
-
var
|
|
6889
|
+
], Rt.prototype, "message");
|
|
6890
|
+
aa([
|
|
6891
|
+
N()
|
|
6892
|
+
], Rt.prototype, "showLightbox");
|
|
6893
|
+
var Dh = Object.defineProperty, Uh = (n, e, t, s) => {
|
|
6894
6894
|
for (var i = void 0, r = n.length - 1, o; r >= 0; r--)
|
|
6895
6895
|
(o = n[r]) && (i = o(e, t, i) || i);
|
|
6896
|
-
return i &&
|
|
6896
|
+
return i && Dh(e, t, i), i;
|
|
6897
6897
|
};
|
|
6898
6898
|
const ui = class ui extends M {
|
|
6899
6899
|
constructor() {
|
|
@@ -6932,7 +6932,7 @@ const ui = class ui extends M {
|
|
|
6932
6932
|
@keydown=${this.handleKeyDown}
|
|
6933
6933
|
>
|
|
6934
6934
|
<button class="close" @click=${this.closeLightbox}>
|
|
6935
|
-
<telia-icon svg=${
|
|
6935
|
+
<telia-icon svg=${Vl.svg} size="lg"></telia-icon>
|
|
6936
6936
|
</button>
|
|
6937
6937
|
<img src="${this.imageUrl}" alt="${this.altText ?? ""}" />
|
|
6938
6938
|
</div> `;
|
|
@@ -6980,27 +6980,30 @@ ui.styles = [
|
|
|
6980
6980
|
`
|
|
6981
6981
|
];
|
|
6982
6982
|
let vn = ui;
|
|
6983
|
-
|
|
6983
|
+
Uh([
|
|
6984
6984
|
C({ attribute: !0 })
|
|
6985
6985
|
], vn.prototype, "imageUrl");
|
|
6986
|
-
var
|
|
6986
|
+
var zh = Object.defineProperty, se = (n, e, t, s) => {
|
|
6987
6987
|
for (var i = void 0, r = n.length - 1, o; r >= 0; r--)
|
|
6988
6988
|
(o = n[r]) && (i = o(e, t, i) || i);
|
|
6989
|
-
return i &&
|
|
6989
|
+
return i && zh(e, t, i), i;
|
|
6990
6990
|
};
|
|
6991
6991
|
customElements.get("conversation-entry") || customElements.define("conversation-entry", Ct);
|
|
6992
6992
|
customElements.get("ace-conversation-feed") || customElements.define("ace-conversation-feed", Tt);
|
|
6993
6993
|
customElements.get("conversation-group") || customElements.define("conversation-group", pn);
|
|
6994
6994
|
customElements.get("ace-typing-state") || customElements.define("ace-typing-state", vs);
|
|
6995
6995
|
customElements.get("message-type-html") || customElements.define("message-type-html", fn);
|
|
6996
|
-
customElements.get("message-type-markdown") || customElements.define("message-type-markdown",
|
|
6996
|
+
customElements.get("message-type-markdown") || customElements.define("message-type-markdown", Rt);
|
|
6997
6997
|
customElements.get("ace-lightbox") || customElements.define("ace-lightbox", vn);
|
|
6998
|
-
const Dr =
|
|
6998
|
+
const Dr = Do(M), hi = class hi extends Dr {
|
|
6999
6999
|
constructor() {
|
|
7000
|
-
super(...arguments), this.message = "", this.disabledInput = !1, this.disabledSkipToLatest = !1, this.disabledSubmit = !1, this.chatOverlayActive = !1, this.textAreaLength = 0, this.isMuted = !1, this.conversationContentRef =
|
|
7000
|
+
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 = oe(), this.conversationFeedRef = oe(), this.formRef = oe(), this.inputRef = oe(), this.scrollRef = oe(), this.counterRef = oe(), this.chatCurrentScrollPosition = 0, this.toast = new wu(this), this.messageMaxLength = 1e3, this.messageMaxLengthLabel = "Maximum character limit reached", this.skipToLatestMessageLabel = "Skip to latest message", this.conversationState$ = new F("waiting"), this.stateMachine = new Su(this.conversationState$, this), this.provider$ = this.stateMachine.session().pipe(
|
|
7001
7001
|
Je((e) => e ? e == null ? void 0 : e.provider$ : os(null))
|
|
7002
7002
|
), this.userTyping$ = new I();
|
|
7003
7003
|
}
|
|
7004
|
+
// =================
|
|
7005
|
+
// LIFECYCLE METHODS
|
|
7006
|
+
// =================
|
|
7004
7007
|
async connectedCallback() {
|
|
7005
7008
|
super.connectedCallback(), this.messageMaxLength = this.properties.messageMaxLength ?? this.messageMaxLength, this.messageMaxLengthLabel = this.properties.messageMaxLengthLabel ?? this.messageMaxLengthLabel, this.skipToLatestMessageLabel = this.properties.skipToLatestMessageLabel ?? this.skipToLatestMessageLabel;
|
|
7006
7009
|
const e = await this.application.container.get(
|
|
@@ -7011,7 +7014,7 @@ const Dr = No(M), hi = class hi extends Dr {
|
|
|
7011
7014
|
t && t.widgetActive$.pipe(as(t.componentIsDestroyed$)).subscribe((s) => {
|
|
7012
7015
|
const i = this.conversationContentRef.value;
|
|
7013
7016
|
i && (s ? i.scrollTop = this.chatCurrentScrollPosition : this.chatCurrentScrollPosition = i.scrollTop);
|
|
7014
|
-
}), this.stateSubscription =
|
|
7017
|
+
}), this.stateSubscription = hl([
|
|
7015
7018
|
this.stateMachine.entries(),
|
|
7016
7019
|
this.stateMachine.isTyping()
|
|
7017
7020
|
]).subscribe(([s, i]) => {
|
|
@@ -7021,17 +7024,23 @@ const Dr = No(M), hi = class hi extends Dr {
|
|
|
7021
7024
|
"user-submit"
|
|
7022
7025
|
).pipe(ls(this.provider$)).subscribe(([s, i]) => {
|
|
7023
7026
|
i && i.onUserSubmit(s.detail);
|
|
7024
|
-
}), this.
|
|
7027
|
+
}), this.addHeaderOptions(), this.provider$.pipe(ls(this.provider$)).subscribe(([s, i]) => {
|
|
7025
7028
|
i && i.showChatOverlay$.pipe().subscribe((r) => {
|
|
7026
7029
|
this.chatOverlayActive = r;
|
|
7027
7030
|
});
|
|
7028
7031
|
});
|
|
7029
7032
|
}
|
|
7033
|
+
firstUpdated() {
|
|
7034
|
+
this.isMuted = this.application.storage.get("muteAudioNotifications") ?? !1;
|
|
7035
|
+
}
|
|
7030
7036
|
disconnectedCallback() {
|
|
7031
7037
|
var e, t;
|
|
7032
7038
|
super.disconnectedCallback(), (e = this.userSubmitSubscription) == null || e.unsubscribe(), (t = this.stateSubscription) == null || t.unsubscribe();
|
|
7033
7039
|
}
|
|
7034
|
-
|
|
7040
|
+
// ============================
|
|
7041
|
+
// PRIVATE METHODS AND HANDLERS
|
|
7042
|
+
// ============================
|
|
7043
|
+
actionHandler(e) {
|
|
7035
7044
|
}
|
|
7036
7045
|
isTypingState() {
|
|
7037
7046
|
var t, s;
|
|
@@ -7050,46 +7059,19 @@ const Dr = No(M), hi = class hi extends Dr {
|
|
|
7050
7059
|
return e ? e.scrollHeight - e.scrollTop - e.clientHeight < 1 : !1;
|
|
7051
7060
|
}
|
|
7052
7061
|
scrollToBottom() {
|
|
7053
|
-
var e
|
|
7062
|
+
var e;
|
|
7054
7063
|
(!this.isTypingState() || this.isAtBottom()) && (setTimeout(
|
|
7055
7064
|
() => {
|
|
7056
|
-
var
|
|
7057
|
-
return (
|
|
7065
|
+
var t;
|
|
7066
|
+
return (t = this.scrollRef.value) == null ? void 0 : t.scrollIntoView({ behavior: "smooth" });
|
|
7058
7067
|
},
|
|
7059
7068
|
300
|
|
7060
|
-
), this.
|
|
7069
|
+
), this.chatCurrentScrollPosition = (e = this.scrollRef.value) == null ? void 0 : e.scrollTop);
|
|
7061
7070
|
}
|
|
7062
7071
|
onSessionUpdated() {
|
|
7063
7072
|
this.scrollToBottom();
|
|
7064
7073
|
}
|
|
7065
|
-
|
|
7066
|
-
this.disabledInput = !0, this.message = "";
|
|
7067
|
-
}
|
|
7068
|
-
enableInput() {
|
|
7069
|
-
this.disabledInput = !1;
|
|
7070
|
-
}
|
|
7071
|
-
enableSkipToLatestMessage() {
|
|
7072
|
-
this.disabledSkipToLatest = !1;
|
|
7073
|
-
}
|
|
7074
|
-
disableSkipToLatestMessage() {
|
|
7075
|
-
this.disabledSkipToLatest = !0;
|
|
7076
|
-
}
|
|
7077
|
-
disableSubmit() {
|
|
7078
|
-
this.disabledSubmit = !0;
|
|
7079
|
-
}
|
|
7080
|
-
enableSubmit() {
|
|
7081
|
-
this.disabledSubmit = !1;
|
|
7082
|
-
}
|
|
7083
|
-
// Clear messages when starting a new chat to avoid confusion
|
|
7084
|
-
clearMessages() {
|
|
7085
|
-
var i, r;
|
|
7086
|
-
const e = (i = this.shadowRoot) == null ? void 0 : i.querySelector("ace-conversation-feed"), t = (r = e == null ? void 0 : e.shadowRoot) == null ? void 0 : r.querySelector(".conversation-feed"), s = t == null ? void 0 : t.querySelectorAll(".conversation-entry");
|
|
7087
|
-
s == null || s.forEach((o) => o.remove());
|
|
7088
|
-
}
|
|
7089
|
-
setToastMessage(e) {
|
|
7090
|
-
this.toast.message = e;
|
|
7091
|
-
}
|
|
7092
|
-
async _onSendMessage(e) {
|
|
7074
|
+
async onSendMessage(e) {
|
|
7093
7075
|
var s, i;
|
|
7094
7076
|
if (e.preventDefault(), this.message.length <= 0 || this.message.length > this.messageMaxLength) {
|
|
7095
7077
|
(s = this.formRef.value) == null || s.classList.add("shake"), setTimeout(() => {
|
|
@@ -7106,7 +7088,7 @@ const Dr = No(M), hi = class hi extends Dr {
|
|
|
7106
7088
|
"--textarea-default-height"
|
|
7107
7089
|
);
|
|
7108
7090
|
}
|
|
7109
|
-
|
|
7091
|
+
addHeaderOptions() {
|
|
7110
7092
|
const e = this.application.getComponent("widget-header");
|
|
7111
7093
|
if (!e)
|
|
7112
7094
|
return;
|
|
@@ -7120,14 +7102,54 @@ const Dr = No(M), hi = class hi extends Dr {
|
|
|
7120
7102
|
}
|
|
7121
7103
|
});
|
|
7122
7104
|
}
|
|
7123
|
-
|
|
7105
|
+
inputHandler(e) {
|
|
7124
7106
|
var t, s;
|
|
7125
7107
|
this.message = e.target.value, e.target.style.height = this.style.getPropertyValue(
|
|
7126
7108
|
"--textarea-default-height"
|
|
7127
7109
|
), 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") : (s = this.counterRef.value) == null || s.classList.remove("max-char-count-reached");
|
|
7128
7110
|
}
|
|
7129
|
-
|
|
7130
|
-
this.userTyping$.next(e.key), e.key === "Enter" && !e.shiftKey && !this.disabledSubmit && (this.
|
|
7111
|
+
keyDownHandler(e) {
|
|
7112
|
+
this.userTyping$.next(e.key), e.key === "Enter" && !e.shiftKey && !this.disabledSubmit && (this.onSendMessage(e), e.preventDefault());
|
|
7113
|
+
}
|
|
7114
|
+
getAuthBannerMessage() {
|
|
7115
|
+
const e = this.application.texts;
|
|
7116
|
+
return this.authenticated ? e.getOrFallback(
|
|
7117
|
+
"conversation.auth-banner.authenticated",
|
|
7118
|
+
"Authenticated"
|
|
7119
|
+
) : e.getOrFallback(
|
|
7120
|
+
"conversation.auth-banner.unauthenticated",
|
|
7121
|
+
"Not authenticated"
|
|
7122
|
+
);
|
|
7123
|
+
}
|
|
7124
|
+
// ==============
|
|
7125
|
+
// PUBLIC METHODS
|
|
7126
|
+
// ==============
|
|
7127
|
+
disableInput() {
|
|
7128
|
+
this.disabledInput = !0, this.message = "";
|
|
7129
|
+
}
|
|
7130
|
+
enableInput() {
|
|
7131
|
+
this.disabledInput = !1;
|
|
7132
|
+
}
|
|
7133
|
+
enableSkipToLatestMessage() {
|
|
7134
|
+
this.disabledSkipToLatest = !1;
|
|
7135
|
+
}
|
|
7136
|
+
disableSkipToLatestMessage() {
|
|
7137
|
+
this.disabledSkipToLatest = !0;
|
|
7138
|
+
}
|
|
7139
|
+
disableSubmit() {
|
|
7140
|
+
this.disabledSubmit = !0;
|
|
7141
|
+
}
|
|
7142
|
+
enableSubmit() {
|
|
7143
|
+
this.disabledSubmit = !1;
|
|
7144
|
+
}
|
|
7145
|
+
// Clear messages when starting a new chat to avoid confusion
|
|
7146
|
+
clearMessages() {
|
|
7147
|
+
var i, r;
|
|
7148
|
+
const e = (i = this.shadowRoot) == null ? void 0 : i.querySelector("ace-conversation-feed"), t = (r = e == null ? void 0 : e.shadowRoot) == null ? void 0 : r.querySelector(".conversation-feed"), s = t == null ? void 0 : t.querySelectorAll(".conversation-entry");
|
|
7149
|
+
s == null || s.forEach((o) => o.remove());
|
|
7150
|
+
}
|
|
7151
|
+
setToastMessage(e) {
|
|
7152
|
+
this.toast.message = e;
|
|
7131
7153
|
}
|
|
7132
7154
|
skipToLatestMessage() {
|
|
7133
7155
|
var s, i;
|
|
@@ -7138,6 +7160,9 @@ const Dr = No(M), hi = class hi extends Dr {
|
|
|
7138
7160
|
t
|
|
7139
7161
|
).pop().focus();
|
|
7140
7162
|
}
|
|
7163
|
+
setAuthenticationBannerStatus(e) {
|
|
7164
|
+
this.showAuthBanner = e !== null, this.authenticated = e === Uo.Authenticated;
|
|
7165
|
+
}
|
|
7141
7166
|
handover(e, t) {
|
|
7142
7167
|
this.enableInput(), this.setToastMessage(null);
|
|
7143
7168
|
const s = new CustomEvent("handover", {
|
|
@@ -7148,110 +7173,121 @@ const Dr = No(M), hi = class hi extends Dr {
|
|
|
7148
7173
|
});
|
|
7149
7174
|
return this.dispatchEvent(s), s.detail.complete || Pt;
|
|
7150
7175
|
}
|
|
7151
|
-
firstUpdated() {
|
|
7152
|
-
this.isMuted = this.application.storage.get("muteAudioNotifications") ?? !1;
|
|
7153
|
-
}
|
|
7154
7176
|
render() {
|
|
7155
7177
|
var i, r, o;
|
|
7156
7178
|
const e = this.application.texts;
|
|
7157
7179
|
this.conversationState$.value === "waiting" && ((i = this.application) != null && i.storage) && this.platform && (this.stateMachine.setStorage(this.application.storage), this.conversationState$.next("init"));
|
|
7158
7180
|
const t = this.application.settings.components.conversation;
|
|
7159
|
-
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%"), w` <div
|
|
7160
|
-
|
|
7161
|
-
|
|
7181
|
+
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%"), w` <div class="conversation-container">
|
|
7182
|
+
${this.showAuthBanner ? w`<div
|
|
7183
|
+
class="auth-banner ${this.authenticated ? "auth-banner--authenticated" : "auth-banner--unauthenticated"}"
|
|
7184
|
+
role="status"
|
|
7185
|
+
aria-live="polite"
|
|
7186
|
+
>
|
|
7187
|
+
${this.authenticated ? w`<telia-icon
|
|
7188
|
+
class="auth-banner__icon"
|
|
7189
|
+
size="sm"
|
|
7190
|
+
svg=${mo.svg}
|
|
7191
|
+
></telia-icon>` : $}
|
|
7192
|
+
<span>${this.getAuthBannerMessage()}</span>
|
|
7193
|
+
</div>` : $}
|
|
7194
|
+
<div
|
|
7195
|
+
@action=${this.actionHandler}
|
|
7196
|
+
class=${rt({
|
|
7162
7197
|
conversation: !0,
|
|
7163
7198
|
disabled: this.disabledInput,
|
|
7164
7199
|
"conversation--has-toast": this.toast.hasMessage(),
|
|
7165
7200
|
"conversation--input-has-valid-text": this.message.length > 0 && this.message.length <= this.messageMaxLength && !this.disabledSubmit,
|
|
7166
7201
|
"overlay-mode": this.chatOverlayActive
|
|
7167
7202
|
})}
|
|
7168
|
-
|
|
7169
|
-
|
|
7170
|
-
|
|
7171
|
-
|
|
7172
|
-
|
|
7173
|
-
|
|
7174
|
-
|
|
7175
|
-
|
|
7176
|
-
|
|
7177
|
-
|
|
7178
|
-
|
|
7203
|
+
>
|
|
7204
|
+
${this.chatOverlayActive ? w`<div class="overlay-header">
|
|
7205
|
+
<button
|
|
7206
|
+
class="overlay-button"
|
|
7207
|
+
@click=${() => this.chatOverlayActive = !1}
|
|
7208
|
+
>
|
|
7209
|
+
<telia-icon svg=${Kl.svg}></telia-icon>
|
|
7210
|
+
</button>
|
|
7211
|
+
</div>` : $}
|
|
7212
|
+
<div
|
|
7213
|
+
class=${rt({
|
|
7179
7214
|
"conversation-content": !0,
|
|
7180
7215
|
"conversation-overlay-mode": this.chatOverlayActive
|
|
7181
7216
|
})}
|
|
7182
|
-
|
|
7183
|
-
|
|
7184
|
-
|
|
7185
|
-
|
|
7186
|
-
|
|
7187
|
-
|
|
7188
|
-
|
|
7189
|
-
|
|
7190
|
-
|
|
7191
|
-
|
|
7192
|
-
|
|
7193
|
-
|
|
7194
|
-
|
|
7195
|
-
|
|
7196
|
-
|
|
7197
|
-
|
|
7198
|
-
|
|
7199
|
-
|
|
7200
|
-
|
|
7201
|
-
|
|
7202
|
-
|
|
7203
|
-
|
|
7204
|
-
|
|
7205
|
-
|
|
7206
|
-
|
|
7207
|
-
|
|
7208
|
-
|
|
7217
|
+
part="scroll-container"
|
|
7218
|
+
aria-live="polite"
|
|
7219
|
+
${ae(this.conversationContentRef)}
|
|
7220
|
+
>
|
|
7221
|
+
${this.toast.hasMessage() ? w`<div class="conversation__toast">${this.toast.message}</div>` : $}
|
|
7222
|
+
<ace-conversation-feed
|
|
7223
|
+
.entries=${this.entries}
|
|
7224
|
+
.loading=${this.typing}
|
|
7225
|
+
${ae(this.conversationFeedRef)}
|
|
7226
|
+
@updated=${this.onSessionUpdated}
|
|
7227
|
+
></ace-conversation-feed>
|
|
7228
|
+
<div class="scroll" ${ae(this.scrollRef)}></div>
|
|
7229
|
+
</div>
|
|
7230
|
+
<form
|
|
7231
|
+
class="conversation-bottom"
|
|
7232
|
+
@submit=${this.onSendMessage}
|
|
7233
|
+
${ae(this.formRef)}
|
|
7234
|
+
?inert=${this.disabledInput}
|
|
7235
|
+
data-testid="conversation-bottom"
|
|
7236
|
+
>
|
|
7237
|
+
<label for="chat-message-input" class="visually-hidden">
|
|
7238
|
+
Chat message
|
|
7239
|
+
</label>
|
|
7240
|
+
<textarea
|
|
7241
|
+
id="chat-message-input"
|
|
7242
|
+
autocomplete="off"
|
|
7243
|
+
placeholder=${e.getOrFallback(
|
|
7209
7244
|
"conversation.input-placeholder",
|
|
7210
7245
|
"Aa"
|
|
7211
7246
|
)}
|
|
7212
|
-
|
|
7213
|
-
|
|
7214
|
-
|
|
7215
|
-
|
|
7216
|
-
|
|
7217
|
-
|
|
7218
|
-
|
|
7219
|
-
|
|
7220
|
-
|
|
7221
|
-
|
|
7222
|
-
|
|
7223
|
-
|
|
7224
|
-
|
|
7225
|
-
|
|
7226
|
-
|
|
7227
|
-
|
|
7228
|
-
|
|
7229
|
-
|
|
7230
|
-
|
|
7231
|
-
|
|
7232
|
-
|
|
7233
|
-
|
|
7234
|
-
|
|
7235
|
-
|
|
7236
|
-
|
|
7237
|
-
|
|
7238
|
-
|
|
7239
|
-
|
|
7240
|
-
|
|
7241
|
-
|
|
7242
|
-
|
|
7243
|
-
|
|
7244
|
-
|
|
7245
|
-
|
|
7247
|
+
data-testid="message-input"
|
|
7248
|
+
.value=${this.message}
|
|
7249
|
+
@input=${this.inputHandler}
|
|
7250
|
+
@keydown=${this.keyDownHandler}
|
|
7251
|
+
${ae(this.inputRef)}
|
|
7252
|
+
aria-valuenow=${this.textAreaLength}
|
|
7253
|
+
aria-valuemax=${this.messageMaxLength}
|
|
7254
|
+
aria-valuemin="0"
|
|
7255
|
+
role="textbox"
|
|
7256
|
+
aria-multiline="true"
|
|
7257
|
+
></textarea>
|
|
7258
|
+
<div class="conversation-actions">
|
|
7259
|
+
<button
|
|
7260
|
+
class="conversation-send-button"
|
|
7261
|
+
type="submit"
|
|
7262
|
+
data-testid="send-message-button"
|
|
7263
|
+
title=${e.getOrFallback("conversation.send-alt", "Send")}
|
|
7264
|
+
>
|
|
7265
|
+
<telia-icon svg=${Jl.svg}></telia-icon>
|
|
7266
|
+
</button>
|
|
7267
|
+
<span class="counter" ${ae(this.counterRef)}>
|
|
7268
|
+
${this.textAreaLength} / ${this.messageMaxLength}</span
|
|
7269
|
+
>
|
|
7270
|
+
</div>
|
|
7271
|
+
<div class="sr-only" aria-live="polite">
|
|
7272
|
+
${this.textAreaLength > this.messageMaxLength ? this.messageMaxLengthLabel : ""}
|
|
7273
|
+
</div>
|
|
7274
|
+
</form>
|
|
7275
|
+
${this.disabledSkipToLatest ? $ : w`<button
|
|
7276
|
+
class="skip-to-latest-message-button"
|
|
7277
|
+
@click=${this.skipToLatestMessage}
|
|
7278
|
+
>
|
|
7279
|
+
${this.skipToLatestMessageLabel}
|
|
7280
|
+
</button>`}
|
|
7281
|
+
</div>
|
|
7246
7282
|
</div>`;
|
|
7247
7283
|
}
|
|
7248
7284
|
};
|
|
7249
7285
|
hi.styles = [
|
|
7250
7286
|
Dr.styles || [],
|
|
7251
7287
|
Z`
|
|
7288
|
+
/* ===== HOST & GLOBAL STYLES ===== */
|
|
7252
7289
|
:host {
|
|
7253
7290
|
font-family: var(--font-family);
|
|
7254
|
-
/* --send-icon-color: var(--gray-dark-color, #a6a6a6); */
|
|
7255
7291
|
--textarea-default-height: 1.5rem;
|
|
7256
7292
|
--send-icon-opacity: 0.4;
|
|
7257
7293
|
--send-icon-color: var(--text-color);
|
|
@@ -7281,9 +7317,7 @@ hi.styles = [
|
|
|
7281
7317
|
|
|
7282
7318
|
--toast-bg: #caeaff;
|
|
7283
7319
|
--toast-border: 1px solid #0078cb;
|
|
7284
|
-
|
|
7285
7320
|
--toast-text-color: #000;
|
|
7286
|
-
|
|
7287
7321
|
--error-text-color: #eb5185;
|
|
7288
7322
|
|
|
7289
7323
|
--message-info-color: var(
|
|
@@ -7293,28 +7327,19 @@ hi.styles = [
|
|
|
7293
7327
|
|
|
7294
7328
|
scrollbar-width: thin; /* Firefox */
|
|
7295
7329
|
scrollbar-color: #7f7f7f transparent; /* Firefox */
|
|
7296
|
-
}
|
|
7297
|
-
|
|
7298
|
-
:focus {
|
|
7299
|
-
outline-color: var(--focus-color);
|
|
7300
|
-
}
|
|
7301
7330
|
|
|
7302
|
-
|
|
7303
|
-
|
|
7304
|
-
background-color: transparent;
|
|
7305
|
-
border-left: none;
|
|
7306
|
-
}
|
|
7331
|
+
--status-info-bg: #e8f6ff;
|
|
7332
|
+
--status-info-text: var(--text-on-secondary-background);
|
|
7307
7333
|
|
|
7308
|
-
|
|
7309
|
-
|
|
7334
|
+
--status-success-bg: #e1f9ec;
|
|
7335
|
+
--status-success-text: var(--text-on-secondary-background);
|
|
7310
7336
|
}
|
|
7311
7337
|
|
|
7312
|
-
|
|
7313
|
-
-
|
|
7314
|
-
box-shadow: none !important;
|
|
7315
|
-
background-color: transparent;
|
|
7338
|
+
:focus {
|
|
7339
|
+
outline-color: var(--focus-color);
|
|
7316
7340
|
}
|
|
7317
7341
|
|
|
7342
|
+
/* ===== ANIMATIONS ===== */
|
|
7318
7343
|
@keyframes shake {
|
|
7319
7344
|
10%,
|
|
7320
7345
|
90% {
|
|
@@ -7334,48 +7359,41 @@ hi.styles = [
|
|
|
7334
7359
|
transform: translateX(-2px);
|
|
7335
7360
|
}
|
|
7336
7361
|
}
|
|
7337
|
-
|
|
7338
|
-
|
|
7339
|
-
|
|
7340
|
-
|
|
7341
|
-
|
|
7342
|
-
|
|
7343
|
-
padding: 0;
|
|
7344
|
-
position: absolute;
|
|
7345
|
-
width: 1px;
|
|
7362
|
+
|
|
7363
|
+
/* ===== LAYOUT CONTAINERS ===== */
|
|
7364
|
+
.conversation-container {
|
|
7365
|
+
display: flex;
|
|
7366
|
+
flex-direction: column;
|
|
7367
|
+
height: 100%;
|
|
7346
7368
|
}
|
|
7347
|
-
|
|
7348
|
-
|
|
7349
|
-
|
|
7350
|
-
|
|
7351
|
-
background-color: var(--conversation-bg);
|
|
7352
|
-
text-decoration: none;
|
|
7353
|
-
padding: var(--spacing-sm);
|
|
7354
|
-
border-radius: var(--spacing-sm);
|
|
7355
|
-
left: -10000000px;
|
|
7369
|
+
|
|
7370
|
+
.conversation-container:has(.auth-banner) .auth-banner {
|
|
7371
|
+
border-top-left-radius: var(--border-radius-sm);
|
|
7372
|
+
border-top-right-radius: var(--border-radius-sm);
|
|
7356
7373
|
}
|
|
7357
|
-
|
|
7358
|
-
|
|
7359
|
-
|
|
7374
|
+
|
|
7375
|
+
.conversation-container:has(.auth-banner) .conversation-content {
|
|
7376
|
+
border-top-left-radius: 0;
|
|
7377
|
+
border-top-right-radius: 0;
|
|
7360
7378
|
}
|
|
7379
|
+
|
|
7361
7380
|
.conversation {
|
|
7362
7381
|
display: grid;
|
|
7363
7382
|
grid-template-rows: 1fr auto;
|
|
7364
7383
|
gap: var(--spacing-lg);
|
|
7365
|
-
|
|
7384
|
+
flex: 1;
|
|
7385
|
+
min-height: 0;
|
|
7366
7386
|
background-color: transparent;
|
|
7367
7387
|
}
|
|
7388
|
+
|
|
7368
7389
|
.conversation.conversation--input-has-valid-text {
|
|
7369
7390
|
--send-icon-opacity: 1;
|
|
7370
7391
|
}
|
|
7371
|
-
|
|
7372
|
-
border-top-right-radius: 0;
|
|
7373
|
-
border-top-left-radius: 0;
|
|
7374
|
-
padding-top: var(--spacing-md);
|
|
7375
|
-
}
|
|
7392
|
+
|
|
7376
7393
|
.conversation.disabled .conversation-bottom {
|
|
7377
7394
|
--conversation-input-bg: rgba(255, 255, 255, 0.4);
|
|
7378
7395
|
}
|
|
7396
|
+
|
|
7379
7397
|
.conversation-content {
|
|
7380
7398
|
flex: 1;
|
|
7381
7399
|
background-color: var(--conversation-bg);
|
|
@@ -7385,6 +7403,35 @@ hi.styles = [
|
|
|
7385
7403
|
border: 1px solid var(--content-border);
|
|
7386
7404
|
position: relative;
|
|
7387
7405
|
}
|
|
7406
|
+
|
|
7407
|
+
/* ===== AUTH BANNER ===== */
|
|
7408
|
+
.auth-banner {
|
|
7409
|
+
font-size: 0.85rem;
|
|
7410
|
+
text-align: center;
|
|
7411
|
+
display: flex;
|
|
7412
|
+
align-items: center;
|
|
7413
|
+
justify-content: center;
|
|
7414
|
+
padding: var(--spacing-sm);
|
|
7415
|
+
border: 1px solid var(--content-border);
|
|
7416
|
+
border-bottom: none;
|
|
7417
|
+
}
|
|
7418
|
+
|
|
7419
|
+
.auth-banner--authenticated {
|
|
7420
|
+
background-color: var(--status-success-bg);
|
|
7421
|
+
color: var(--status-success-text);
|
|
7422
|
+
}
|
|
7423
|
+
|
|
7424
|
+
.auth-banner--unauthenticated {
|
|
7425
|
+
background-color: var(--status-info-bg);
|
|
7426
|
+
color: var(--status-info-text);
|
|
7427
|
+
}
|
|
7428
|
+
|
|
7429
|
+
.auth-banner__icon {
|
|
7430
|
+
margin-right: var(--spacing-xs);
|
|
7431
|
+
flex-shrink: 0;
|
|
7432
|
+
}
|
|
7433
|
+
|
|
7434
|
+
/* ===== CONVERSATION COMPONENTS ===== */
|
|
7388
7435
|
.conversation-bottom {
|
|
7389
7436
|
border: var(--input-border);
|
|
7390
7437
|
border-radius: var(--border-radius-sm);
|
|
@@ -7397,14 +7444,12 @@ hi.styles = [
|
|
|
7397
7444
|
margin: 0;
|
|
7398
7445
|
transition: background-color 500ms ease-in-out;
|
|
7399
7446
|
}
|
|
7447
|
+
|
|
7400
7448
|
.conversation-bottom.shake {
|
|
7401
7449
|
animation: 0.82s cubic-bezier(0.36, 0.07, 0.19, 0.97) 0s 1 normal both
|
|
7402
7450
|
running shake;
|
|
7403
7451
|
}
|
|
7404
|
-
|
|
7405
|
-
border-right: 1px solid var(--gray-color);
|
|
7406
|
-
padding-right: var(--spacing-md);
|
|
7407
|
-
}
|
|
7452
|
+
|
|
7408
7453
|
.conversation-send-button {
|
|
7409
7454
|
border: none;
|
|
7410
7455
|
background: transparent;
|
|
@@ -7415,25 +7460,61 @@ hi.styles = [
|
|
|
7415
7460
|
justify-content: right;
|
|
7416
7461
|
margin-bottom: var(--spacing-xs);
|
|
7417
7462
|
}
|
|
7463
|
+
|
|
7418
7464
|
.conversation-send-button:not(:disabled):hover {
|
|
7419
7465
|
--send-icon-opacity: 1;
|
|
7420
7466
|
cursor: pointer;
|
|
7421
7467
|
}
|
|
7468
|
+
|
|
7422
7469
|
.conversation__toast {
|
|
7423
7470
|
background-color: var(--toast-bg);
|
|
7424
7471
|
border: var(--toast-border);
|
|
7425
7472
|
border-radius: var(--border-radius-sm);
|
|
7426
|
-
margin:
|
|
7473
|
+
margin: var(--spacing-md);
|
|
7427
7474
|
color: var(--toast-text-color);
|
|
7428
7475
|
padding: var(--spacing-md);
|
|
7429
7476
|
position: sticky;
|
|
7430
|
-
top:
|
|
7431
|
-
left: 0;
|
|
7432
|
-
right: 0;
|
|
7477
|
+
top: var(--spacing-md);
|
|
7433
7478
|
font-size: 0.8rem;
|
|
7434
7479
|
text-align: center;
|
|
7435
7480
|
font-weight: 500;
|
|
7436
7481
|
}
|
|
7482
|
+
|
|
7483
|
+
.conversation-actions {
|
|
7484
|
+
display: flex;
|
|
7485
|
+
flex-direction: column;
|
|
7486
|
+
}
|
|
7487
|
+
|
|
7488
|
+
.counter {
|
|
7489
|
+
display: flex;
|
|
7490
|
+
justify-content: right;
|
|
7491
|
+
bottom: var(--spacing-xs);
|
|
7492
|
+
padding-top: var(--spacing-sm);
|
|
7493
|
+
position: absolute;
|
|
7494
|
+
font-size: 0.6rem;
|
|
7495
|
+
}
|
|
7496
|
+
|
|
7497
|
+
.max-char-count-reached {
|
|
7498
|
+
color: var(--error-text-color);
|
|
7499
|
+
}
|
|
7500
|
+
|
|
7501
|
+
.skip-to-latest-message-button {
|
|
7502
|
+
position: absolute;
|
|
7503
|
+
bottom: 80px;
|
|
7504
|
+
text-align: center;
|
|
7505
|
+
background-color: var(--conversation-bg);
|
|
7506
|
+
text-decoration: none;
|
|
7507
|
+
padding: var(--spacing-sm);
|
|
7508
|
+
border-radius: var(--spacing-sm);
|
|
7509
|
+
left: -10000000px;
|
|
7510
|
+
}
|
|
7511
|
+
|
|
7512
|
+
.skip-to-latest-message-button:focus-visible {
|
|
7513
|
+
left: 50%;
|
|
7514
|
+
transform: translateX(-50%);
|
|
7515
|
+
}
|
|
7516
|
+
|
|
7517
|
+
/* ===== FORM ELEMENTS ===== */
|
|
7437
7518
|
textarea {
|
|
7438
7519
|
border: none;
|
|
7439
7520
|
font-family: inherit;
|
|
@@ -7448,6 +7529,7 @@ hi.styles = [
|
|
|
7448
7529
|
color: var(--input-text-color);
|
|
7449
7530
|
}
|
|
7450
7531
|
|
|
7532
|
+
/* ===== SCROLLBAR STYLES ===== */
|
|
7451
7533
|
[part='scroll-container'] {
|
|
7452
7534
|
scrollbar-width: thin;
|
|
7453
7535
|
scrollbar-color: #7f7f7f transparent !important;
|
|
@@ -7458,15 +7540,18 @@ hi.styles = [
|
|
|
7458
7540
|
background-color: transparent;
|
|
7459
7541
|
border-left: none;
|
|
7460
7542
|
}
|
|
7543
|
+
|
|
7461
7544
|
[part='scroll-container']::-webkit-scrollbar-thumb {
|
|
7462
7545
|
background-color: #7f7f7f;
|
|
7463
7546
|
}
|
|
7547
|
+
|
|
7464
7548
|
[part='scroll-container']::-webkit-scrollbar-track {
|
|
7465
7549
|
-webkit-box-shadow: none !important;
|
|
7466
7550
|
box-shadow: none !important;
|
|
7467
7551
|
background-color: transparent;
|
|
7468
7552
|
}
|
|
7469
7553
|
|
|
7554
|
+
/* ===== OVERLAY MODE ===== */
|
|
7470
7555
|
.overlay-mode {
|
|
7471
7556
|
z-index: 1;
|
|
7472
7557
|
position: absolute;
|
|
@@ -7474,11 +7559,6 @@ hi.styles = [
|
|
|
7474
7559
|
height: auto;
|
|
7475
7560
|
max-height: 68%;
|
|
7476
7561
|
}
|
|
7477
|
-
@media screen and (max-width: 800px) {
|
|
7478
|
-
.overlay-mode {
|
|
7479
|
-
width: 100%;
|
|
7480
|
-
}
|
|
7481
|
-
}
|
|
7482
7562
|
|
|
7483
7563
|
.overlay-header {
|
|
7484
7564
|
display: flex;
|
|
@@ -7502,22 +7582,16 @@ hi.styles = [
|
|
|
7502
7582
|
border-top-right-radius: 0;
|
|
7503
7583
|
}
|
|
7504
7584
|
|
|
7505
|
-
|
|
7506
|
-
|
|
7507
|
-
|
|
7508
|
-
|
|
7509
|
-
|
|
7510
|
-
|
|
7511
|
-
|
|
7512
|
-
|
|
7513
|
-
bottom: var(--spacing-xs);
|
|
7514
|
-
padding-top: var(--spacing-sm);
|
|
7585
|
+
/* ===== UTILITY CLASSES ===== */
|
|
7586
|
+
.visually-hidden {
|
|
7587
|
+
border: 0;
|
|
7588
|
+
clip: rect(0 0 0 0);
|
|
7589
|
+
height: 1px;
|
|
7590
|
+
margin: -1px;
|
|
7591
|
+
overflow: hidden;
|
|
7592
|
+
padding: 0;
|
|
7515
7593
|
position: absolute;
|
|
7516
|
-
|
|
7517
|
-
}
|
|
7518
|
-
|
|
7519
|
-
.max-char-count-reached {
|
|
7520
|
-
color: var(--error-text-color);
|
|
7594
|
+
width: 1px;
|
|
7521
7595
|
}
|
|
7522
7596
|
|
|
7523
7597
|
.sr-only {
|
|
@@ -7530,49 +7604,62 @@ hi.styles = [
|
|
|
7530
7604
|
clip: rect(0, 0, 0, 0);
|
|
7531
7605
|
border: 0;
|
|
7532
7606
|
}
|
|
7607
|
+
|
|
7608
|
+
/* ===== RESPONSIVE ===== */
|
|
7609
|
+
@media screen and (max-width: 800px) {
|
|
7610
|
+
.overlay-mode {
|
|
7611
|
+
width: 100%;
|
|
7612
|
+
}
|
|
7613
|
+
}
|
|
7533
7614
|
`
|
|
7534
7615
|
];
|
|
7535
|
-
let
|
|
7536
|
-
|
|
7537
|
-
|
|
7538
|
-
],
|
|
7539
|
-
|
|
7540
|
-
|
|
7541
|
-
],
|
|
7542
|
-
|
|
7543
|
-
|
|
7544
|
-
],
|
|
7545
|
-
|
|
7546
|
-
|
|
7547
|
-
],
|
|
7548
|
-
|
|
7549
|
-
|
|
7550
|
-
],
|
|
7551
|
-
|
|
7552
|
-
|
|
7553
|
-
],
|
|
7554
|
-
|
|
7555
|
-
|
|
7556
|
-
],
|
|
7557
|
-
|
|
7558
|
-
|
|
7559
|
-
],
|
|
7560
|
-
|
|
7561
|
-
|
|
7562
|
-
],
|
|
7563
|
-
|
|
7616
|
+
let V = hi;
|
|
7617
|
+
se([
|
|
7618
|
+
N()
|
|
7619
|
+
], V.prototype, "platform");
|
|
7620
|
+
se([
|
|
7621
|
+
N()
|
|
7622
|
+
], V.prototype, "entries");
|
|
7623
|
+
se([
|
|
7624
|
+
N()
|
|
7625
|
+
], V.prototype, "typing");
|
|
7626
|
+
se([
|
|
7627
|
+
N()
|
|
7628
|
+
], V.prototype, "message");
|
|
7629
|
+
se([
|
|
7630
|
+
N()
|
|
7631
|
+
], V.prototype, "disabledInput");
|
|
7632
|
+
se([
|
|
7633
|
+
N()
|
|
7634
|
+
], V.prototype, "disabledSkipToLatest");
|
|
7635
|
+
se([
|
|
7636
|
+
N()
|
|
7637
|
+
], V.prototype, "disabledSubmit");
|
|
7638
|
+
se([
|
|
7639
|
+
N()
|
|
7640
|
+
], V.prototype, "chatOverlayActive");
|
|
7641
|
+
se([
|
|
7642
|
+
N()
|
|
7643
|
+
], V.prototype, "textAreaLength");
|
|
7644
|
+
se([
|
|
7645
|
+
N()
|
|
7646
|
+
], V.prototype, "showAuthBanner");
|
|
7647
|
+
se([
|
|
7648
|
+
N()
|
|
7649
|
+
], V.prototype, "authenticated");
|
|
7650
|
+
const Bh = (n) => {
|
|
7564
7651
|
var e, t;
|
|
7565
7652
|
return !!((e = n == null ? void 0 : n.outputPayload) != null && e.textOutputContent) && ((t = n == null ? void 0 : n.outputPayload) == null ? void 0 : t.isFinal);
|
|
7566
7653
|
}, Hh = (n) => {
|
|
7567
7654
|
var e;
|
|
7568
7655
|
return !!((e = n == null ? void 0 : n.outputPayload) != null && e.textStreamOutputContent);
|
|
7569
|
-
},
|
|
7656
|
+
}, Fh = (n) => {
|
|
7570
7657
|
var e;
|
|
7571
7658
|
return !!((e = n == null ? void 0 : n.initializeResponsePayload) != null && e.greetingMessage);
|
|
7572
|
-
},
|
|
7659
|
+
}, jh = (n) => !!(n != null && n.errorPayload), Ur = (n) => {
|
|
7573
7660
|
var e, t;
|
|
7574
7661
|
return !!((t = (e = n.inputPayload) == null ? void 0 : e.textInputContent) != null && t.text);
|
|
7575
|
-
},
|
|
7662
|
+
}, qh = (n) => (n == null ? void 0 : n.type) === "handover";
|
|
7576
7663
|
class zr {
|
|
7577
7664
|
constructor(e, t, s) {
|
|
7578
7665
|
this.settings = e, this.component = t, this.provider = s, this.started = !1, this.restartRequested = !1, this.currentSequenceNumber = 1, this.dialogId = null, this.isConnected$ = new F(!1), this.agent$ = new F({ name: "" }), this.messageSubject$ = new I(), this.systemEvents$ = new I(), this.store$ = new F({ messages: [], dialogId: null }), this.retries = 0, this.isConnected = () => this.isConnected$.asObservable(), this.agent = () => this.agent$.asObservable(), this.messages = () => this.messageSubject$.asObservable(), this.events = () => this.systemEvents$.asObservable(), this.restartSubscription$ = this.provider.shouldRestart$.subscribe(
|
|
@@ -7687,11 +7774,11 @@ class zr {
|
|
|
7687
7774
|
messages: [...t.messages, e],
|
|
7688
7775
|
dialogId: t.dialogId
|
|
7689
7776
|
});
|
|
7690
|
-
}),
|
|
7777
|
+
}), jh(e)) {
|
|
7691
7778
|
this.provider.setShouldRestart(!0), console.debug("Received error from socket connection:", e);
|
|
7692
7779
|
return;
|
|
7693
7780
|
}
|
|
7694
|
-
if (
|
|
7781
|
+
if (qh(e)) {
|
|
7695
7782
|
this.systemEvents$.next({
|
|
7696
7783
|
event: e.type,
|
|
7697
7784
|
text: "",
|
|
@@ -7705,7 +7792,7 @@ class zr {
|
|
|
7705
7792
|
});
|
|
7706
7793
|
return;
|
|
7707
7794
|
}
|
|
7708
|
-
|
|
7795
|
+
Fh(e) && e.initializeResponsePayload.greetingMessage.length > 0 ? (this.agent$.next({
|
|
7709
7796
|
name: e.initializeResponsePayload.agentName || ""
|
|
7710
7797
|
}), this.dialogId = e.initializeResponsePayload.dialogId, this.store$.pipe(Ie(1)).subscribe((t) => {
|
|
7711
7798
|
this.store$.next({
|
|
@@ -7728,7 +7815,7 @@ class zr {
|
|
|
7728
7815
|
isComplete: !!e.outputPayload.isFinal,
|
|
7729
7816
|
sequenceNumber: e.sequenceNumber,
|
|
7730
7817
|
type: "stream"
|
|
7731
|
-
})) :
|
|
7818
|
+
})) : Bh(e) && (this.component.enableSubmit(), this.messageSubject$.next({
|
|
7732
7819
|
text: e.outputPayload.textOutputContent.text,
|
|
7733
7820
|
isComplete: !0,
|
|
7734
7821
|
sequenceNumber: e.sequenceNumber,
|
|
@@ -7779,10 +7866,10 @@ class zr {
|
|
|
7779
7866
|
this.restartSubscription$ && this.restartSubscription$.unsubscribe();
|
|
7780
7867
|
}
|
|
7781
7868
|
}
|
|
7782
|
-
var
|
|
7783
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
7869
|
+
var Wh = Object.defineProperty, Gh = Object.getOwnPropertyDescriptor, ca = (n, e, t, s) => {
|
|
7870
|
+
for (var i = s > 1 ? void 0 : s ? Gh(e, t) : e, r = n.length - 1, o; r >= 0; r--)
|
|
7784
7871
|
(o = n[r]) && (i = (s ? o(e, t, i) : o(i)) || i);
|
|
7785
|
-
return s && i &&
|
|
7872
|
+
return s && i && Wh(e, t, i), i;
|
|
7786
7873
|
};
|
|
7787
7874
|
let bn = class extends M {
|
|
7788
7875
|
_onRestart() {
|
|
@@ -7866,14 +7953,14 @@ bn.styles = [
|
|
|
7866
7953
|
}
|
|
7867
7954
|
`
|
|
7868
7955
|
];
|
|
7869
|
-
|
|
7870
|
-
|
|
7956
|
+
ca([
|
|
7957
|
+
Bo({ context: Hs }),
|
|
7871
7958
|
C({ attribute: !1 })
|
|
7872
7959
|
], bn.prototype, "application", 2);
|
|
7873
|
-
bn =
|
|
7874
|
-
|
|
7960
|
+
bn = ca([
|
|
7961
|
+
Qc("ace-restart-dialog")
|
|
7875
7962
|
], bn);
|
|
7876
|
-
class Qs extends
|
|
7963
|
+
class Qs extends Cl {
|
|
7877
7964
|
constructor(e, t) {
|
|
7878
7965
|
super(e, t), this.isConnected = !1, this.rehydrating = !1, this.lastReceivedMessageWasComplete = !0, this.isReady = !1, this.lastWrittenEntry = null, this.agent = this.createAgent(""), this.user = this.createUser(""), this.shouldRestartSubject$ = new F(!1), this.connection = this.createConnection(t.properties), this.connection.store$.subscribe((s) => {
|
|
7879
7966
|
s = {
|
|
@@ -7939,7 +8026,7 @@ class Qs extends El {
|
|
|
7939
8026
|
}
|
|
7940
8027
|
showRestartDialog() {
|
|
7941
8028
|
this.restartDialogEntry && this.restartDialogEntry.remove(), this.component.disableInput(), this.restartDialogEntry = new It(
|
|
7942
|
-
|
|
8029
|
+
be.System,
|
|
7943
8030
|
{
|
|
7944
8031
|
name: ""
|
|
7945
8032
|
},
|
|
@@ -7949,7 +8036,7 @@ class Qs extends El {
|
|
|
7949
8036
|
}
|
|
7950
8037
|
]
|
|
7951
8038
|
), this.printEntry(this.restartDialogEntry), this.restartDialogEntry.actions$.pipe(
|
|
7952
|
-
|
|
8039
|
+
wl((e) => e.key === "restart-session"),
|
|
7953
8040
|
Ie(1)
|
|
7954
8041
|
).subscribe(async () => {
|
|
7955
8042
|
this.restartDialogEntry && this.restartDialogEntry.remove(), this.restartConversation(), this.component.clearMessages();
|
|
@@ -8010,15 +8097,15 @@ class Qs extends El {
|
|
|
8010
8097
|
});
|
|
8011
8098
|
}
|
|
8012
8099
|
}
|
|
8013
|
-
const
|
|
8100
|
+
const Br = "ace-conversational-hub-provider", sd = async (n) => {
|
|
8014
8101
|
(await Ss.getInstance(n.container)).registerProvider(
|
|
8015
|
-
|
|
8102
|
+
Br,
|
|
8016
8103
|
(t) => Qs.getInstance(
|
|
8017
|
-
|
|
8104
|
+
Br,
|
|
8018
8105
|
t
|
|
8019
8106
|
)
|
|
8020
8107
|
);
|
|
8021
8108
|
};
|
|
8022
8109
|
export {
|
|
8023
|
-
|
|
8110
|
+
sd as ConversationalHubProviderPlugin
|
|
8024
8111
|
};
|