@telia-ace/widget-conversational-agent 1.1.123-rc.44 → 1.1.123-rc.46
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 +53 -53
- package/index.mjs +560 -565
- package/package.json +3 -3
package/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var _ = (n, e, t) =>
|
|
1
|
+
var Sa = Object.defineProperty;
|
|
2
|
+
var _a = (n, e, t) => e in n ? Sa(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
|
|
3
|
+
var _ = (n, e, t) => _a(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 Ea(n, e, t, s) {
|
|
45
45
|
function i(r) {
|
|
46
46
|
return r instanceof t ? r : new t(function(o) {
|
|
47
47
|
o(r);
|
|
@@ -68,7 +68,7 @@ function Aa(n, e, t, s) {
|
|
|
68
68
|
c((s = s.apply(n, e || [])).next());
|
|
69
69
|
});
|
|
70
70
|
}
|
|
71
|
-
function
|
|
71
|
+
function Hr(n, e) {
|
|
72
72
|
var t = { label: 0, sent: function() {
|
|
73
73
|
if (r[0] & 1) throw r[1];
|
|
74
74
|
return r[1];
|
|
@@ -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 Aa(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() {
|
|
@@ -201,7 +201,7 @@ function Ca(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 Ca(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() {
|
|
@@ -223,13 +223,13 @@ function Ta(n) {
|
|
|
223
223
|
function E(n) {
|
|
224
224
|
return typeof n == "function";
|
|
225
225
|
}
|
|
226
|
-
function
|
|
226
|
+
function Fr(n) {
|
|
227
227
|
var e = function(s) {
|
|
228
228
|
Error.call(s), s.stack = new Error().stack;
|
|
229
229
|
}, t = n(e);
|
|
230
230
|
return t.prototype = Object.create(Error.prototype), t.prototype.constructor = t, t;
|
|
231
231
|
}
|
|
232
|
-
var jn =
|
|
232
|
+
var jn = Fr(function(n) {
|
|
233
233
|
return function(t) {
|
|
234
234
|
n(this), this.message = t ? t.length + ` errors occurred during unsubscription:
|
|
235
235
|
` + t.map(function(s, i) {
|
|
@@ -332,16 +332,16 @@ var yn = (function() {
|
|
|
332
332
|
var e = new n();
|
|
333
333
|
return e.closed = !0, e;
|
|
334
334
|
})(), n;
|
|
335
|
-
})(),
|
|
336
|
-
function
|
|
335
|
+
})(), jr = yn.EMPTY;
|
|
336
|
+
function qr(n) {
|
|
337
337
|
return n instanceof yn || n && "closed" in n && E(n.remove) && E(n.add) && E(n.unsubscribe);
|
|
338
338
|
}
|
|
339
339
|
function Di(n) {
|
|
340
340
|
E(n) ? n() : n.unsubscribe();
|
|
341
341
|
}
|
|
342
|
-
var
|
|
342
|
+
var Ta = {
|
|
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];
|
|
@@ -352,8 +352,8 @@ var Ra = {
|
|
|
352
352
|
},
|
|
353
353
|
delegate: void 0
|
|
354
354
|
};
|
|
355
|
-
function
|
|
356
|
-
|
|
355
|
+
function Wr(n) {
|
|
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,
|
|
369
|
+
return s.isStopped = !1, t ? (s.destination = t, qr(t) && t.add(s)) : s.destination = Pa, 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), La = (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 La(o), r;
|
|
436
436
|
}
|
|
437
437
|
return e;
|
|
438
438
|
})(_s);
|
|
439
439
|
function Gt(n) {
|
|
440
|
-
|
|
440
|
+
Wr(n);
|
|
441
441
|
}
|
|
442
|
-
function
|
|
442
|
+
function Oa(n) {
|
|
443
443
|
throw n;
|
|
444
444
|
}
|
|
445
|
-
var
|
|
445
|
+
var Pa = {
|
|
446
446
|
closed: !0,
|
|
447
447
|
next: tn,
|
|
448
|
-
error:
|
|
448
|
+
error: Oa,
|
|
449
449
|
complete: tn
|
|
450
450
|
}, Es = (function() {
|
|
451
451
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
@@ -453,7 +453,7 @@ var Ia = {
|
|
|
453
453
|
function Ot(n) {
|
|
454
454
|
return n;
|
|
455
455
|
}
|
|
456
|
-
function
|
|
456
|
+
function Ia(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 K = (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 = Na(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 K = (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 Ia(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 K = (function() {
|
|
|
522
522
|
})();
|
|
523
523
|
function Ui(n) {
|
|
524
524
|
var e;
|
|
525
|
-
return (e = n ??
|
|
525
|
+
return (e = n ?? Ta.Promise) !== null && e !== void 0 ? e : Promise;
|
|
526
526
|
}
|
|
527
|
-
function
|
|
527
|
+
function Ma(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 Na(n) {
|
|
531
|
+
return n && n instanceof _s || Ma(n) && qr(n);
|
|
532
532
|
}
|
|
533
|
-
function
|
|
533
|
+
function Da(n) {
|
|
534
534
|
return E(n == null ? void 0 : n.lift);
|
|
535
535
|
}
|
|
536
536
|
function $e(n) {
|
|
537
537
|
return function(e) {
|
|
538
|
-
if (
|
|
538
|
+
if (Da(e))
|
|
539
539
|
return e.lift(function(t) {
|
|
540
540
|
try {
|
|
541
541
|
return n(t, this);
|
|
@@ -547,9 +547,9 @@ function $e(n) {
|
|
|
547
547
|
};
|
|
548
548
|
}
|
|
549
549
|
function Q(n, e, t, s, i) {
|
|
550
|
-
return new
|
|
550
|
+
return new Ua(n, e, t, s, i);
|
|
551
551
|
}
|
|
552
|
-
var
|
|
552
|
+
var Ua = (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 za = (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), za = Fr(function(n) {
|
|
588
588
|
return function() {
|
|
589
589
|
n(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
590
590
|
};
|
|
@@ -599,7 +599,7 @@ var za = (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 za();
|
|
603
603
|
}, e.prototype.next = function(t) {
|
|
604
604
|
var s = this;
|
|
605
605
|
Vt(function() {
|
|
@@ -655,7 +655,7 @@ var za = (function(n) {
|
|
|
655
655
|
return this._throwIfClosed(), this._checkFinalizedStatuses(t), this._innerSubscribe(t);
|
|
656
656
|
}, e.prototype._innerSubscribe = function(t) {
|
|
657
657
|
var s = this, i = this, r = i.hasError, o = i.isStopped, a = i.observers;
|
|
658
|
-
return r || o ?
|
|
658
|
+
return r || o ? jr : (this.currentObservers = null, a.push(t), new yn(function() {
|
|
659
659
|
s.currentObservers = null, is(a, t);
|
|
660
660
|
}));
|
|
661
661
|
}, e.prototype._checkFinalizedStatuses = function(t) {
|
|
@@ -684,7 +684,7 @@ var za = (function(n) {
|
|
|
684
684
|
(s = (t = this.destination) === null || t === void 0 ? void 0 : t.complete) === null || s === void 0 || s.call(t);
|
|
685
685
|
}, e.prototype._subscribe = function(t) {
|
|
686
686
|
var s, i;
|
|
687
|
-
return (i = (s = this.source) === null || s === void 0 ? void 0 : s.subscribe(t)) !== null && i !== void 0 ? i :
|
|
687
|
+
return (i = (s = this.source) === null || s === void 0 ? void 0 : s.subscribe(t)) !== null && i !== void 0 ? i : jr;
|
|
688
688
|
}, e;
|
|
689
689
|
})(I), F = (function(n) {
|
|
690
690
|
at(e, n);
|
|
@@ -712,47 +712,47 @@ var za = (function(n) {
|
|
|
712
712
|
})(I), Pt = new K(function(n) {
|
|
713
713
|
return n.complete();
|
|
714
714
|
});
|
|
715
|
-
function
|
|
715
|
+
function Ba(n) {
|
|
716
716
|
return n && E(n.schedule);
|
|
717
717
|
}
|
|
718
718
|
function As(n) {
|
|
719
719
|
return n[n.length - 1];
|
|
720
720
|
}
|
|
721
|
-
function
|
|
721
|
+
function Gr(n) {
|
|
722
722
|
return E(As(n)) ? n.pop() : void 0;
|
|
723
723
|
}
|
|
724
724
|
function Cs(n) {
|
|
725
|
-
return
|
|
725
|
+
return Ba(As(n)) ? n.pop() : void 0;
|
|
726
726
|
}
|
|
727
|
-
function
|
|
727
|
+
function Ha(n, e) {
|
|
728
728
|
return typeof As(n) == "number" ? n.pop() : e;
|
|
729
729
|
}
|
|
730
730
|
var Ts = (function(n) {
|
|
731
731
|
return n && typeof n.length == "number" && typeof n != "function";
|
|
732
732
|
});
|
|
733
|
-
function
|
|
733
|
+
function Zr(n) {
|
|
734
734
|
return E(n == null ? void 0 : n.then);
|
|
735
735
|
}
|
|
736
|
-
function
|
|
736
|
+
function Yr(n) {
|
|
737
737
|
return E(n[Es]);
|
|
738
738
|
}
|
|
739
|
-
function
|
|
739
|
+
function Kr(n) {
|
|
740
740
|
return Symbol.asyncIterator && E(n == null ? void 0 : n[Symbol.asyncIterator]);
|
|
741
741
|
}
|
|
742
|
-
function
|
|
742
|
+
function Xr(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 Fa() {
|
|
746
746
|
return typeof Symbol != "function" || !Symbol.iterator ? "@@iterator" : Symbol.iterator;
|
|
747
747
|
}
|
|
748
|
-
var
|
|
749
|
-
function
|
|
750
|
-
return E(n == null ? void 0 : n[
|
|
748
|
+
var Vr = Fa();
|
|
749
|
+
function Qr(n) {
|
|
750
|
+
return E(n == null ? void 0 : n[Vr]);
|
|
751
751
|
}
|
|
752
|
-
function
|
|
753
|
-
return
|
|
752
|
+
function Jr(n) {
|
|
753
|
+
return Aa(this, arguments, function() {
|
|
754
754
|
var t, s, i, r;
|
|
755
|
-
return
|
|
755
|
+
return Hr(this, function(o) {
|
|
756
756
|
switch (o.label) {
|
|
757
757
|
case 0:
|
|
758
758
|
t = n.getReader(), o.label = 1;
|
|
@@ -780,29 +780,29 @@ function eo(n) {
|
|
|
780
780
|
});
|
|
781
781
|
});
|
|
782
782
|
}
|
|
783
|
-
function
|
|
783
|
+
function eo(n) {
|
|
784
784
|
return E(n == null ? void 0 : n.getReader);
|
|
785
785
|
}
|
|
786
786
|
function ce(n) {
|
|
787
787
|
if (n instanceof K)
|
|
788
788
|
return n;
|
|
789
789
|
if (n != null) {
|
|
790
|
-
if (
|
|
791
|
-
return
|
|
790
|
+
if (Yr(n))
|
|
791
|
+
return ja(n);
|
|
792
792
|
if (Ts(n))
|
|
793
|
+
return qa(n);
|
|
794
|
+
if (Zr(n))
|
|
793
795
|
return Wa(n);
|
|
794
|
-
if (
|
|
796
|
+
if (Kr(n))
|
|
797
|
+
return to(n);
|
|
798
|
+
if (Qr(n))
|
|
795
799
|
return Ga(n);
|
|
796
|
-
if (
|
|
797
|
-
return no(n);
|
|
798
|
-
if (Jr(n))
|
|
800
|
+
if (eo(n))
|
|
799
801
|
return Za(n);
|
|
800
|
-
if (to(n))
|
|
801
|
-
return Ya(n);
|
|
802
802
|
}
|
|
803
|
-
throw
|
|
803
|
+
throw Xr(n);
|
|
804
804
|
}
|
|
805
|
-
function
|
|
805
|
+
function ja(n) {
|
|
806
806
|
return new K(function(e) {
|
|
807
807
|
var t = n[Es]();
|
|
808
808
|
if (E(t.subscribe))
|
|
@@ -810,23 +810,23 @@ function qa(n) {
|
|
|
810
810
|
throw new TypeError("Provided object does not correctly implement Symbol.observable");
|
|
811
811
|
});
|
|
812
812
|
}
|
|
813
|
-
function
|
|
813
|
+
function qa(n) {
|
|
814
814
|
return new K(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 Wa(n) {
|
|
821
821
|
return new K(function(e) {
|
|
822
822
|
n.then(function(t) {
|
|
823
823
|
e.closed || (e.next(t), e.complete());
|
|
824
824
|
}, function(t) {
|
|
825
825
|
return e.error(t);
|
|
826
|
-
}).then(null,
|
|
826
|
+
}).then(null, Wr);
|
|
827
827
|
});
|
|
828
828
|
}
|
|
829
|
-
function
|
|
829
|
+
function Ga(n) {
|
|
830
830
|
return new K(function(e) {
|
|
831
831
|
var t, s;
|
|
832
832
|
try {
|
|
@@ -847,24 +847,24 @@ function Za(n) {
|
|
|
847
847
|
e.complete();
|
|
848
848
|
});
|
|
849
849
|
}
|
|
850
|
-
function
|
|
850
|
+
function to(n) {
|
|
851
851
|
return new K(function(e) {
|
|
852
|
-
|
|
852
|
+
Ya(n, e).catch(function(t) {
|
|
853
853
|
return e.error(t);
|
|
854
854
|
});
|
|
855
855
|
});
|
|
856
856
|
}
|
|
857
|
-
function
|
|
858
|
-
return
|
|
857
|
+
function Za(n) {
|
|
858
|
+
return to(Jr(n));
|
|
859
859
|
}
|
|
860
|
-
function
|
|
860
|
+
function Ya(n, e) {
|
|
861
861
|
var t, s, i, r;
|
|
862
|
-
return
|
|
862
|
+
return Ea(this, void 0, void 0, function() {
|
|
863
863
|
var o, a;
|
|
864
|
-
return
|
|
864
|
+
return Hr(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 = Ca(n), l.label = 1;
|
|
868
868
|
case 1:
|
|
869
869
|
return [4, t.next()];
|
|
870
870
|
case 2:
|
|
@@ -903,7 +903,7 @@ function ke(n, e, t, s, i) {
|
|
|
903
903
|
if (n.add(r), !i)
|
|
904
904
|
return r;
|
|
905
905
|
}
|
|
906
|
-
function
|
|
906
|
+
function no(n, e) {
|
|
907
907
|
return e === void 0 && (e = 0), $e(function(t, s) {
|
|
908
908
|
t.subscribe(Q(s, function(i) {
|
|
909
909
|
return ke(s, n, function() {
|
|
@@ -920,20 +920,20 @@ function so(n, e) {
|
|
|
920
920
|
}));
|
|
921
921
|
});
|
|
922
922
|
}
|
|
923
|
-
function
|
|
923
|
+
function so(n, e) {
|
|
924
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 Ka(n, e) {
|
|
931
|
+
return ce(n).pipe(so(e), no(e));
|
|
932
|
+
}
|
|
930
933
|
function Xa(n, e) {
|
|
931
|
-
return ce(n).pipe(
|
|
934
|
+
return ce(n).pipe(so(e), no(e));
|
|
932
935
|
}
|
|
933
936
|
function Va(n, e) {
|
|
934
|
-
return ce(n).pipe(io(e), so(e));
|
|
935
|
-
}
|
|
936
|
-
function Qa(n, e) {
|
|
937
937
|
return new K(function(t) {
|
|
938
938
|
var s = 0;
|
|
939
939
|
return e.schedule(function() {
|
|
@@ -941,11 +941,11 @@ function Qa(n, e) {
|
|
|
941
941
|
});
|
|
942
942
|
});
|
|
943
943
|
}
|
|
944
|
-
function
|
|
944
|
+
function Qa(n, e) {
|
|
945
945
|
return new K(function(t) {
|
|
946
946
|
var s;
|
|
947
947
|
return ke(t, e, function() {
|
|
948
|
-
s = n[
|
|
948
|
+
s = n[Vr](), ke(t, e, function() {
|
|
949
949
|
var i, r, o;
|
|
950
950
|
try {
|
|
951
951
|
i = s.next(), r = i.value, o = i.done;
|
|
@@ -960,7 +960,7 @@ function Ja(n, e) {
|
|
|
960
960
|
};
|
|
961
961
|
});
|
|
962
962
|
}
|
|
963
|
-
function
|
|
963
|
+
function io(n, e) {
|
|
964
964
|
if (!n)
|
|
965
965
|
throw new Error("Iterable cannot be null");
|
|
966
966
|
return new K(function(t) {
|
|
@@ -974,28 +974,28 @@ function ro(n, e) {
|
|
|
974
974
|
});
|
|
975
975
|
});
|
|
976
976
|
}
|
|
977
|
-
function
|
|
978
|
-
return
|
|
977
|
+
function Ja(n, e) {
|
|
978
|
+
return io(Jr(n), e);
|
|
979
979
|
}
|
|
980
|
-
function
|
|
980
|
+
function el(n, e) {
|
|
981
981
|
if (n != null) {
|
|
982
|
-
if (Kr(n))
|
|
983
|
-
return Xa(n, e);
|
|
984
|
-
if (Ts(n))
|
|
985
|
-
return Qa(n, e);
|
|
986
982
|
if (Yr(n))
|
|
983
|
+
return Ka(n, e);
|
|
984
|
+
if (Ts(n))
|
|
987
985
|
return Va(n, e);
|
|
988
|
-
if (
|
|
989
|
-
return
|
|
990
|
-
if (
|
|
986
|
+
if (Zr(n))
|
|
987
|
+
return Xa(n, e);
|
|
988
|
+
if (Kr(n))
|
|
989
|
+
return io(n, e);
|
|
990
|
+
if (Qr(n))
|
|
991
|
+
return Qa(n, e);
|
|
992
|
+
if (eo(n))
|
|
991
993
|
return Ja(n, e);
|
|
992
|
-
if (to(n))
|
|
993
|
-
return el(n, e);
|
|
994
994
|
}
|
|
995
|
-
throw
|
|
995
|
+
throw Xr(n);
|
|
996
996
|
}
|
|
997
997
|
function $n(n, e) {
|
|
998
|
-
return e ?
|
|
998
|
+
return e ? el(n, e) : ce(n);
|
|
999
999
|
}
|
|
1000
1000
|
function os() {
|
|
1001
1001
|
for (var n = [], e = 0; e < arguments.length; e++)
|
|
@@ -1011,23 +1011,23 @@ function nn(n, e) {
|
|
|
1011
1011
|
}));
|
|
1012
1012
|
});
|
|
1013
1013
|
}
|
|
1014
|
-
var
|
|
1015
|
-
function
|
|
1016
|
-
return
|
|
1014
|
+
var tl = Array.isArray;
|
|
1015
|
+
function nl(n, e) {
|
|
1016
|
+
return tl(e) ? n.apply(void 0, st([], Ne(e))) : n(e);
|
|
1017
1017
|
}
|
|
1018
|
-
function
|
|
1018
|
+
function ro(n) {
|
|
1019
1019
|
return nn(function(e) {
|
|
1020
|
-
return
|
|
1020
|
+
return nl(n, e);
|
|
1021
1021
|
});
|
|
1022
1022
|
}
|
|
1023
|
-
var
|
|
1024
|
-
function
|
|
1023
|
+
var sl = Array.isArray, il = Object.getPrototypeOf, rl = Object.prototype, ol = Object.keys;
|
|
1024
|
+
function al(n) {
|
|
1025
1025
|
if (n.length === 1) {
|
|
1026
1026
|
var e = n[0];
|
|
1027
|
-
if (
|
|
1027
|
+
if (sl(e))
|
|
1028
1028
|
return { args: e, keys: null };
|
|
1029
|
-
if (
|
|
1030
|
-
var t =
|
|
1029
|
+
if (ll(e)) {
|
|
1030
|
+
var t = ol(e);
|
|
1031
1031
|
return {
|
|
1032
1032
|
args: t.map(function(s) {
|
|
1033
1033
|
return e[s];
|
|
@@ -1038,26 +1038,26 @@ function ll(n) {
|
|
|
1038
1038
|
}
|
|
1039
1039
|
return { args: n, keys: null };
|
|
1040
1040
|
}
|
|
1041
|
-
function
|
|
1042
|
-
return n && typeof n == "object" &&
|
|
1041
|
+
function ll(n) {
|
|
1042
|
+
return n && typeof n == "object" && il(n) === rl;
|
|
1043
1043
|
}
|
|
1044
|
-
function
|
|
1044
|
+
function cl(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 ul() {
|
|
1050
1050
|
for (var n = [], e = 0; e < arguments.length; e++)
|
|
1051
1051
|
n[e] = arguments[e];
|
|
1052
|
-
var t = Cs(n), s =
|
|
1052
|
+
var t = Cs(n), s = Gr(n), i = al(n), r = i.args, o = i.keys;
|
|
1053
1053
|
if (r.length === 0)
|
|
1054
1054
|
return $n([], t);
|
|
1055
|
-
var a = new K(
|
|
1056
|
-
return
|
|
1055
|
+
var a = new K(hl(r, t, o ? function(l) {
|
|
1056
|
+
return cl(o, l);
|
|
1057
1057
|
} : Ot));
|
|
1058
|
-
return s ? a.pipe(
|
|
1058
|
+
return s ? a.pipe(ro(s)) : a;
|
|
1059
1059
|
}
|
|
1060
|
-
function
|
|
1060
|
+
function hl(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) {
|
|
@@ -1077,7 +1077,7 @@ function dl(n, e, t) {
|
|
|
1077
1077
|
function Bi(n, e, t) {
|
|
1078
1078
|
n ? ke(t, n, e) : e();
|
|
1079
1079
|
}
|
|
1080
|
-
function
|
|
1080
|
+
function dl(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) {
|
|
@@ -1115,21 +1115,21 @@ function Rs(n, e, t) {
|
|
|
1115
1115
|
return e(s, r, i, o);
|
|
1116
1116
|
})(ce(n(s, i)));
|
|
1117
1117
|
}, t) : (typeof e == "number" && (t = e), $e(function(s, i) {
|
|
1118
|
-
return
|
|
1118
|
+
return dl(s, i, n, t);
|
|
1119
1119
|
}));
|
|
1120
1120
|
}
|
|
1121
|
-
function
|
|
1121
|
+
function pl(n) {
|
|
1122
1122
|
return n === void 0 && (n = 1 / 0), Rs(Ot, n);
|
|
1123
1123
|
}
|
|
1124
|
-
var
|
|
1124
|
+
var fl = ["addListener", "removeListener"], gl = ["addEventListener", "removeEventListener"], ml = ["on", "off"];
|
|
1125
1125
|
function sn(n, e, t, s) {
|
|
1126
1126
|
if (E(t) && (s = t, t = void 0), s)
|
|
1127
|
-
return sn(n, e, t).pipe(
|
|
1128
|
-
var i = Ne(
|
|
1127
|
+
return sn(n, e, t).pipe(ro(s));
|
|
1128
|
+
var i = Ne(yl(n) ? gl.map(function(a) {
|
|
1129
1129
|
return function(l) {
|
|
1130
1130
|
return n[a](e, l, t);
|
|
1131
1131
|
};
|
|
1132
|
-
}) :
|
|
1132
|
+
}) : vl(n) ? fl.map(Hi(n, e)) : bl(n) ? ml.map(Hi(n, e)) : [], 2), r = i[0], o = i[1];
|
|
1133
1133
|
if (!r && Ts(n))
|
|
1134
1134
|
return Rs(function(a) {
|
|
1135
1135
|
return sn(a, e, t);
|
|
@@ -1154,22 +1154,22 @@ function Hi(n, e) {
|
|
|
1154
1154
|
};
|
|
1155
1155
|
};
|
|
1156
1156
|
}
|
|
1157
|
-
function
|
|
1157
|
+
function vl(n) {
|
|
1158
1158
|
return E(n.addListener) && E(n.removeListener);
|
|
1159
1159
|
}
|
|
1160
|
-
function
|
|
1160
|
+
function bl(n) {
|
|
1161
1161
|
return E(n.on) && E(n.off);
|
|
1162
1162
|
}
|
|
1163
|
-
function
|
|
1163
|
+
function yl(n) {
|
|
1164
1164
|
return E(n.addEventListener) && E(n.removeEventListener);
|
|
1165
1165
|
}
|
|
1166
|
-
function
|
|
1166
|
+
function $l() {
|
|
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 ? ce(i[0]) :
|
|
1169
|
+
var t = Cs(n), s = Ha(n, 1 / 0), i = n;
|
|
1170
|
+
return i.length ? i.length === 1 ? ce(i[0]) : pl(s)($n(i, t)) : Pt;
|
|
1171
1171
|
}
|
|
1172
|
-
function
|
|
1172
|
+
function xl(n, e) {
|
|
1173
1173
|
return $e(function(t, s) {
|
|
1174
1174
|
var i = 0;
|
|
1175
1175
|
t.subscribe(Q(s, function(r) {
|
|
@@ -1215,7 +1215,7 @@ function as(n) {
|
|
|
1215
1215
|
function ls() {
|
|
1216
1216
|
for (var n = [], e = 0; e < arguments.length; e++)
|
|
1217
1217
|
n[e] = arguments[e];
|
|
1218
|
-
var t =
|
|
1218
|
+
var t = Gr(n);
|
|
1219
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;
|
|
@@ -1234,10 +1234,10 @@ function ls() {
|
|
|
1234
1234
|
});
|
|
1235
1235
|
}
|
|
1236
1236
|
var be = /* @__PURE__ */ ((n) => (n.User = "user", n.Agent = "agent", n.System = "system", n))(be || {});
|
|
1237
|
-
const
|
|
1237
|
+
const wl = () => "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
|
-
),
|
|
1240
|
+
), oo = () => typeof crypto.randomUUID == "function" ? crypto.randomUUID() : wl();
|
|
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,10 +1260,10 @@ function Fi(n) {
|
|
|
1260
1260
|
}
|
|
1261
1261
|
function cs(n) {
|
|
1262
1262
|
if (n.includes("aceChatGuideTitle"))
|
|
1263
|
-
return
|
|
1263
|
+
return kl(n);
|
|
1264
1264
|
const e = /<a [^>]*>https?:\/\/[^<]*<\/a>/gim;
|
|
1265
1265
|
return n.replace(e, (t) => {
|
|
1266
|
-
const s =
|
|
1266
|
+
const s = ao(t);
|
|
1267
1267
|
if (!s)
|
|
1268
1268
|
return t;
|
|
1269
1269
|
const i = 50;
|
|
@@ -1283,7 +1283,7 @@ function cs(n) {
|
|
|
1283
1283
|
return us(t, s);
|
|
1284
1284
|
});
|
|
1285
1285
|
}
|
|
1286
|
-
function
|
|
1286
|
+
function ao(n) {
|
|
1287
1287
|
const e = n.match(/href=["']([^'"]*)["']/);
|
|
1288
1288
|
if (e && e.length > 1) {
|
|
1289
1289
|
let t = e[1];
|
|
@@ -1294,10 +1294,10 @@ function lo(n) {
|
|
|
1294
1294
|
function us(n, e) {
|
|
1295
1295
|
return n.replace(/>[^<]*<\/a>/, `>${e}</a>`);
|
|
1296
1296
|
}
|
|
1297
|
-
function
|
|
1297
|
+
function kl(n) {
|
|
1298
1298
|
const e = /<a [^>]*aceChatGuideTitle[^>]*>[^<]*<\/a>/gm;
|
|
1299
1299
|
return n.replace(e, (t) => {
|
|
1300
|
-
const s =
|
|
1300
|
+
const s = ao(t);
|
|
1301
1301
|
if (!s)
|
|
1302
1302
|
return t;
|
|
1303
1303
|
const i = s.split("?").pop(), o = new URLSearchParams(i).get("aceChatGuideTitle");
|
|
@@ -1306,7 +1306,7 @@ function Sl(n) {
|
|
|
1306
1306
|
}
|
|
1307
1307
|
class It {
|
|
1308
1308
|
constructor(e, t, s) {
|
|
1309
|
-
this.type = e, this.sender = t, this.messages = s, this.status = "delivered", this.didUpdate = new I(), this.actions$ = new I(), this.remove$ = new I(), this.timestamp = Date.now(), this.id =
|
|
1309
|
+
this.type = e, this.sender = t, this.messages = s, this.status = "delivered", this.didUpdate = new I(), this.actions$ = new I(), this.remove$ = new I(), this.timestamp = Date.now(), this.id = oo();
|
|
1310
1310
|
}
|
|
1311
1311
|
update(e) {
|
|
1312
1312
|
this.messages = [
|
|
@@ -1322,7 +1322,7 @@ class It {
|
|
|
1322
1322
|
this.remove$.next();
|
|
1323
1323
|
}
|
|
1324
1324
|
}
|
|
1325
|
-
class
|
|
1325
|
+
class Sl {
|
|
1326
1326
|
constructor(e) {
|
|
1327
1327
|
this.name = e, this.print$ = new I();
|
|
1328
1328
|
}
|
|
@@ -1342,7 +1342,7 @@ class _l {
|
|
|
1342
1342
|
return this.print$.asObservable();
|
|
1343
1343
|
}
|
|
1344
1344
|
}
|
|
1345
|
-
class
|
|
1345
|
+
class _l {
|
|
1346
1346
|
constructor(e) {
|
|
1347
1347
|
this.name = e, this.print$ = new I();
|
|
1348
1348
|
}
|
|
@@ -1362,7 +1362,7 @@ class El {
|
|
|
1362
1362
|
return this.print$.asObservable();
|
|
1363
1363
|
}
|
|
1364
1364
|
}
|
|
1365
|
-
class
|
|
1365
|
+
class El {
|
|
1366
1366
|
constructor() {
|
|
1367
1367
|
this.print$ = new I(), this.name = "system";
|
|
1368
1368
|
}
|
|
@@ -1382,7 +1382,7 @@ class Al {
|
|
|
1382
1382
|
return this.print$.asObservable();
|
|
1383
1383
|
}
|
|
1384
1384
|
}
|
|
1385
|
-
class
|
|
1385
|
+
class Al {
|
|
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
|
}
|
|
@@ -1416,19 +1416,19 @@ class Cl {
|
|
|
1416
1416
|
return this.print$.next(e), e;
|
|
1417
1417
|
}
|
|
1418
1418
|
createAgent(e) {
|
|
1419
|
-
const t = new
|
|
1419
|
+
const t = new Sl(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 _l(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 El();
|
|
1432
1432
|
return e.subscribe().subscribe((t) => {
|
|
1433
1433
|
this.printEntry(t);
|
|
1434
1434
|
}), e;
|
|
@@ -1465,7 +1465,7 @@ class Cl {
|
|
|
1465
1465
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1466
1466
|
*/
|
|
1467
1467
|
const Qt = globalThis, Ls = Qt.ShadowRoot && (Qt.ShadyCSS === void 0 || Qt.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Os = Symbol(), ji = /* @__PURE__ */ new WeakMap();
|
|
1468
|
-
let
|
|
1468
|
+
let lo = 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.");
|
|
1471
1471
|
this.cssText = e, this.t = t;
|
|
@@ -1483,14 +1483,14 @@ let co = class {
|
|
|
1483
1483
|
return this.cssText;
|
|
1484
1484
|
}
|
|
1485
1485
|
};
|
|
1486
|
-
const
|
|
1486
|
+
const Cl = (n) => new lo(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
|
-
return new
|
|
1493
|
-
},
|
|
1492
|
+
return new lo(t, n, Os);
|
|
1493
|
+
}, Tl = (n, e) => {
|
|
1494
1494
|
if (Ls) 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;
|
|
@@ -1499,17 +1499,17 @@ const Tl = (n) => new co(typeof n == "string" ? n : n + "", void 0, Os), Z = (n,
|
|
|
1499
1499
|
}, qi = Ls ? (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 Cl(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: Ll, getOwnPropertyDescriptor: Ol, getOwnPropertyNames: Pl, getOwnPropertySymbols: Il, getPrototypeOf: Ml } = Object, Se = globalThis, Wi = Se.trustedTypes, Nl = 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 ? Nl : null;
|
|
1513
1513
|
break;
|
|
1514
1514
|
case Object:
|
|
1515
1515
|
case Array:
|
|
@@ -1534,7 +1534,7 @@ const { is: Ll, defineProperty: Ol, getOwnPropertyDescriptor: Pl, 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 && Ll(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 } = Ol(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 = Ml(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 = [...Pl(t), ...Il(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 Tl(e, this.constructor.elementStyles), e;
|
|
1624
1624
|
}
|
|
1625
1625
|
connectedCallback() {
|
|
1626
1626
|
var e;
|
|
@@ -1745,42 +1745,42 @@ 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,
|
|
1748
|
+
const xt = globalThis, on = xt.trustedTypes, Zi = on ? on.createPolicy("lit-html", { createHTML: (n) => n }) : void 0, co = "$lit$", we = `lit$${Math.random().toFixed(9).slice(2)}$`, uo = "?" + we, Dl = `<${uo}>`, De = document, St = () => De.createComment(""), _t = (n) => n === null || typeof n != "object" && typeof n != "function", Is = Array.isArray, Ul = (n) => Is(n) || typeof (n == null ? void 0 : n[Symbol.iterator]) == "function", Wn = `[
|
|
1749
1749
|
\f\r]`, dt = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Yi = /-->/g, Ki = />/g, Le = RegExp(`>|${Wn}(?:([^\\s"'>=/]+)(${Wn}*=${Wn}*(?:[^
|
|
1750
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), Xi = /'/g, Vi = /"/g,
|
|
1751
|
-
function
|
|
1750
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), Xi = /'/g, Vi = /"/g, ho = /^(?:script|style|textarea|title)$/i, zl = (n) => (e, ...t) => ({ _$litType$: n, strings: e, values: t }), w = zl(1), _e = Symbol.for("lit-noChange"), $ = Symbol.for("lit-nothing"), Qi = /* @__PURE__ */ new WeakMap(), Pe = De.createTreeWalker(De, 129);
|
|
1751
|
+
function po(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 Bl = (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 = Ki : u[2] !== void 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 = Ki : u[2] !== void 0 ? (ho.test(u[2]) && (i = RegExp("</" + u[2], "g")), o = Le) : u[3] !== void 0 && (o = Le) : o === Le ? 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 ? Le : u[3] === '"' ? Vi : Xi) : o === Vi || o === Xi ? o = Le : o === Yi || o === Ki ? o = dt : (o = Le, i = void 0);
|
|
1762
1762
|
const g = o === Le && n[a + 1].startsWith("/>") ? " " : "";
|
|
1763
|
-
r += o === dt ? l +
|
|
1763
|
+
r += o === dt ? l + Dl : p >= 0 ? (s.push(c), l.slice(0, p) + co + l.slice(p) + we + g) : l + we + (p === -2 ? a : g);
|
|
1764
1764
|
}
|
|
1765
|
-
return [
|
|
1765
|
+
return [po(n, r + (n[t] || "<?>") + (e === 2 ? "</svg>" : e === 3 ? "</math>" : "")), s];
|
|
1766
1766
|
};
|
|
1767
|
-
let hs = class
|
|
1767
|
+
let hs = class fo {
|
|
1768
1768
|
constructor({ strings: e, _$litType$: t }, s) {
|
|
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] =
|
|
1773
|
-
if (this.el =
|
|
1772
|
+
const a = e.length - 1, l = this.parts, [c, u] = Bl(e, t);
|
|
1773
|
+
if (this.el = fo.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);
|
|
1776
1776
|
}
|
|
1777
1777
|
for (; (i = Pe.nextNode()) !== null && l.length < a; ) {
|
|
1778
1778
|
if (i.nodeType === 1) {
|
|
1779
|
-
if (i.hasAttributes()) for (const p of i.getAttributeNames()) if (p.endsWith(
|
|
1779
|
+
if (i.hasAttributes()) for (const p of i.getAttributeNames()) if (p.endsWith(co)) {
|
|
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] === "." ? Fl : m[1] === "?" ? jl : m[1] === "@" ? ql : xn }), i.removeAttribute(p);
|
|
1782
1782
|
} else p.startsWith(we) && (l.push({ type: 6, index: r }), i.removeAttribute(p));
|
|
1783
|
-
if (
|
|
1783
|
+
if (ho.test(i.tagName)) {
|
|
1784
1784
|
const p = i.textContent.split(we), d = p.length - 1;
|
|
1785
1785
|
if (d > 0) {
|
|
1786
1786
|
i.textContent = on ? on.emptyScript : "";
|
|
@@ -1788,7 +1788,7 @@ let hs = class go {
|
|
|
1788
1788
|
i.append(p[d], St());
|
|
1789
1789
|
}
|
|
1790
1790
|
}
|
|
1791
|
-
} else if (i.nodeType === 8) if (i.data ===
|
|
1791
|
+
} else if (i.nodeType === 8) if (i.data === uo) l.push({ type: 2, index: r });
|
|
1792
1792
|
else {
|
|
1793
1793
|
let p = -1;
|
|
1794
1794
|
for (; (p = i.data.indexOf(we, p + 1)) !== -1; ) l.push({ type: 7, index: r }), p += we.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 Hl {
|
|
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 Fl {
|
|
|
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 Wl(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
|
}
|
|
@@ -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 === $ || 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) :
|
|
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) : Ul(e) ? this.k(e) : this._(e);
|
|
1860
1860
|
}
|
|
1861
1861
|
O(e) {
|
|
1862
1862
|
return this._$AA.parentNode.insertBefore(e, this._$AB);
|
|
@@ -1869,10 +1869,10 @@ class Mt {
|
|
|
1869
1869
|
}
|
|
1870
1870
|
$(e) {
|
|
1871
1871
|
var r;
|
|
1872
|
-
const { values: t, _$litType$: s } = e, i = typeof s == "number" ? this._$AC(e) : (s.el === void 0 && (s.el = hs.createElement(
|
|
1872
|
+
const { values: t, _$litType$: s } = e, i = typeof s == "number" ? this._$AC(e) : (s.el === void 0 && (s.el = hs.createElement(po(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 Hl(i, this), a = o.u(this.options);
|
|
1876
1876
|
o.p(t), this.T(a), this._$AH = o;
|
|
1877
1877
|
}
|
|
1878
1878
|
}
|
|
@@ -1924,7 +1924,7 @@ class xn {
|
|
|
1924
1924
|
e === $ ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, e ?? "");
|
|
1925
1925
|
}
|
|
1926
1926
|
}
|
|
1927
|
-
let
|
|
1927
|
+
let Fl = class extends xn {
|
|
1928
1928
|
constructor() {
|
|
1929
1929
|
super(...arguments), this.type = 3;
|
|
1930
1930
|
}
|
|
@@ -1932,7 +1932,7 @@ let jl = class extends xn {
|
|
|
1932
1932
|
this.element[this.name] = e === $ ? void 0 : e;
|
|
1933
1933
|
}
|
|
1934
1934
|
};
|
|
1935
|
-
class
|
|
1935
|
+
class jl extends xn {
|
|
1936
1936
|
constructor() {
|
|
1937
1937
|
super(...arguments), this.type = 4;
|
|
1938
1938
|
}
|
|
@@ -1940,7 +1940,7 @@ class ql extends xn {
|
|
|
1940
1940
|
this.element.toggleAttribute(this.name, !!e && e !== $);
|
|
1941
1941
|
}
|
|
1942
1942
|
}
|
|
1943
|
-
class
|
|
1943
|
+
class ql extends xn {
|
|
1944
1944
|
constructor(e, t, s, i, r) {
|
|
1945
1945
|
super(e, t, s, i, r), this.type = 5;
|
|
1946
1946
|
}
|
|
@@ -1954,7 +1954,7 @@ class Wl 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 Wl {
|
|
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 Gl {
|
|
|
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 Gl = (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 = Gl(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 Br;
|
|
2011
|
+
M._$litElement$ = !0, M.finalized = !0, (Br = Me.litElementHydrateSupport) == null || Br.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 Zl = { 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>' }, 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 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>' }, go = { 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>' }, 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 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>' }, Vl = { 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>' }, Ql = { 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>' }, Ke = {
|
|
2016
2016
|
allRenderFn: !1,
|
|
2017
2017
|
cmpDidLoad: !0,
|
|
2018
2018
|
cmpDidUnload: !1,
|
|
@@ -2096,8 +2096,8 @@ const Yl = { 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 Xe,
|
|
2100
|
-
const kn = typeof window < "u" ? window : {}, le = kn.document || { head: {} },
|
|
2099
|
+
let Xe, mo, wn, vo = !1, an = !1, Ms = !1, X = !1, tr = null, ds = !1;
|
|
2100
|
+
const kn = typeof window < "u" ? window : {}, le = kn.document || { head: {} }, bo = kn.HTMLElement || class {
|
|
2101
2101
|
}, q = {
|
|
2102
2102
|
$flags$: 0,
|
|
2103
2103
|
$resourcesUrl$: "",
|
|
@@ -2106,7 +2106,7 @@ const kn = typeof window < "u" ? window : {}, le = 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
|
+
}, Jl = /* @__PURE__ */ (() => {
|
|
2110
2110
|
let n = !1;
|
|
2111
2111
|
try {
|
|
2112
2112
|
le.addEventListener("e", null, Object.defineProperty({}, "passive", {
|
|
@@ -2117,32 +2117,32 @@ const kn = typeof window < "u" ? window : {}, le = kn.document || { head: {} },
|
|
|
2117
2117
|
} catch {
|
|
2118
2118
|
}
|
|
2119
2119
|
return n;
|
|
2120
|
-
})(),
|
|
2120
|
+
})(), ec = (n) => Promise.resolve(n), tc = /* @__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
|
+
})(), yo = (n, e, t, s) => {
|
|
2127
2127
|
t && t.map(([i, r, o]) => {
|
|
2128
|
-
const a =
|
|
2128
|
+
const a = sc(n, i), l = nc(e, o), c = ic(i);
|
|
2129
2129
|
q.ael(a, r, l, c), (e.$rmListeners$ = e.$rmListeners$ || []).push(() => q.rel(a, r, l, c));
|
|
2130
2130
|
});
|
|
2131
|
-
},
|
|
2131
|
+
}, nc = (n, e) => (t) => {
|
|
2132
2132
|
try {
|
|
2133
2133
|
Ke.lazyLoad || n.$hostElement$[e](t);
|
|
2134
2134
|
} catch (s) {
|
|
2135
2135
|
Nt(s);
|
|
2136
2136
|
}
|
|
2137
|
-
},
|
|
2137
|
+
}, sc = (n, e) => e & 4 ? le : e & 8 ? kn : e & 16 ? le.body : n, ic = (n) => Jl ? {
|
|
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(), rc = (n, e, t) => {
|
|
2142
2142
|
let s = un.get(n);
|
|
2143
|
-
|
|
2144
|
-
},
|
|
2145
|
-
let i =
|
|
2143
|
+
tc && t ? (s = s || new CSSStyleSheet(), s.replace(e)) : s = e, un.set(n, s);
|
|
2144
|
+
}, oc = (n, e, t, s) => {
|
|
2145
|
+
let i = $o(e, t), r = un.get(i);
|
|
2146
2146
|
if (n = n.nodeType === 11 ? n : le, r)
|
|
2147
2147
|
if (typeof r == "string") {
|
|
2148
2148
|
n = n.head || n;
|
|
@@ -2150,10 +2150,10 @@ const kn = typeof window < "u" ? window : {}, le = kn.document || { head: {} },
|
|
|
2150
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
|
+
}, ac = (n) => {
|
|
2154
|
+
const e = n.$cmpMeta$, t = n.$hostElement$, s = e.$flags$, i = Ue("attachStyles", e.$tagName$), r = oc(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
|
+
}, $o = (n, e) => "sc-" + (e && n.$flags$ & 32 ? n.$tagName$ + "-" + e : n.$tagName$), lc = (n) => Nc.map((e) => e(n)).find((e) => !!e), ir = {}, cc = "http://www.w3.org/2000/svg", uc = "http://www.w3.org/1999/xhtml", hc = (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 : {}, le = 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, pc);
|
|
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 : {}, le = 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 = {}, dc = (n) => n && n.$tag$ === Ds, pc = {
|
|
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(fc)
|
|
2185
2185
|
}, rr = (n) => ({
|
|
2186
2186
|
vattrs: n.$attrs$,
|
|
2187
2187
|
vchildren: n.$children$,
|
|
@@ -2189,7 +2189,7 @@ const kn = typeof window < "u" ? window : {}, le = kn.document || { head: {} },
|
|
|
2189
2189
|
vname: n.$name$,
|
|
2190
2190
|
vtag: n.$tag$,
|
|
2191
2191
|
vtext: n.$text$
|
|
2192
|
-
}),
|
|
2192
|
+
}), fc = (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 : {}, le = 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
|
+
}, gc = /\s/, ar = (n) => n ? n.split(gc) : [], xo = (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,7 +2236,7 @@ const kn = typeof window < "u" ? window : {}, le = 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 (vo || (Ms = !0, i.$tag$ === "slot" && (Xe && s.classList.add(Xe + "-s"), i.$flags$ |= i.$children$ ? (
|
|
2240
2240
|
// slot element has fallback content
|
|
2241
2241
|
2
|
|
2242
2242
|
) : (
|
|
@@ -2247,28 +2247,28 @@ const kn = typeof window < "u" ? window : {}, le = kn.document || { head: {} },
|
|
|
2247
2247
|
else if (i.$flags$ & 1)
|
|
2248
2248
|
o = i.$elm$ = le.createTextNode("");
|
|
2249
2249
|
else {
|
|
2250
|
-
if (X || (X = i.$tag$ === "svg"), o = i.$elm$ = le.createElementNS(X ?
|
|
2250
|
+
if (X || (X = i.$tag$ === "svg"), o = i.$elm$ = le.createElementNS(X ? cc : uc, i.$flags$ & 2 ? "slot-fb" : i.$tag$), X && i.$tag$ === "foreignObject" && (X = !1), xo(null, i, X), hc(Xe) && o["s-si"] !== Xe && o.classList.add(o["s-si"] = Xe), 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" ? X = !1 : o.tagName === "foreignObject" && (X = !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"] = mo, 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"] && (So(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
|
+
}, wo = (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
|
+
}, ko = (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$, Ao(s), an = !0, i["s-ol"] ? i["s-ol"].remove() : Et(i, !0), i.remove());
|
|
2271
|
+
}, mc = (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 : {}, le = 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 && So(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 ? wo(n, s[p + 1] == null ? null : s[p + 1].$elm$, t, s, r, p) : r > p && ko(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, So = (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 ? (X = r === "svg" ? !0 : r === "foreignObject" ? !1 : X, r === "slot" ||
|
|
2303
|
-
},
|
|
2302
|
+
o === null ? (X = r === "svg" ? !0 : r === "foreignObject" ? !1 : X, r === "slot" || xo(n, e, X), s !== null && i !== null ? mc(t, s, e, i) : i !== null ? (n.$text$ !== null && (t.textContent = ""), wo(t, null, e, i, 0, i.length - 1)) : s !== null && ko(s, 0, s.length - 1), X && r === "svg" && (X = !1)) : (a = t["s-cr"]) ? a.parentNode.textContent = o : n.$text$ !== o && (t.data = o);
|
|
2303
|
+
}, _o = (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,9 +2316,9 @@ const kn = typeof window < "u" ? window : {}, le = kn.document || { head: {} },
|
|
|
2316
2316
|
break;
|
|
2317
2317
|
}
|
|
2318
2318
|
}
|
|
2319
|
-
|
|
2319
|
+
_o(t);
|
|
2320
2320
|
}
|
|
2321
|
-
}, ne = [],
|
|
2321
|
+
}, ne = [], Eo = (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)
|
|
@@ -2331,16 +2331,16 @@ const kn = typeof window < "u" ? window : {}, le = kn.document || { head: {} },
|
|
|
2331
2331
|
})) : ne.some((u) => u.$nodeToRelocate$ === t) || ne.push({
|
|
2332
2332
|
$nodeToRelocate$: t
|
|
2333
2333
|
}));
|
|
2334
|
-
e.nodeType === 1 &&
|
|
2334
|
+
e.nodeType === 1 && Eo(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, Xe = 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 === "", Ao = (n) => {
|
|
2337
|
+
n.$attrs$ && n.$attrs$.ref && n.$attrs$.ref(null), n.$children$ && n.$children$.map(Ao);
|
|
2338
|
+
}, vc = (n, e) => {
|
|
2339
|
+
const t = n.$hostElement$, s = n.$cmpMeta$, i = n.$vnode$ || ln(null, null), r = dc(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, Xe = t["s-sc"], mo = t["s-cr"], vo = (s.$flags$ & 1) !== 0, an = !1, Ve(i, r);
|
|
2341
2341
|
{
|
|
2342
2342
|
if (q.$flags$ |= 1, Ms) {
|
|
2343
|
-
|
|
2343
|
+
Eo(r.$elm$);
|
|
2344
2344
|
let o, a, l, c, u, p, d = 0;
|
|
2345
2345
|
for (; d < ne.length; d++)
|
|
2346
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));
|
|
@@ -2355,39 +2355,39 @@ const kn = typeof window < "u" ? window : {}, le = kn.document || { head: {} },
|
|
|
2355
2355
|
} else
|
|
2356
2356
|
a.nodeType === 1 && (a.hidden = !0);
|
|
2357
2357
|
}
|
|
2358
|
-
an &&
|
|
2358
|
+
an && _o(r.$elm$), q.$flags$ &= -2, ne.length = 0;
|
|
2359
2359
|
}
|
|
2360
|
-
},
|
|
2361
|
-
const s =
|
|
2360
|
+
}, bc = (n) => n, yc = (n, e, t) => {
|
|
2361
|
+
const s = bc(n);
|
|
2362
2362
|
return {
|
|
2363
|
-
emit: (i) =>
|
|
2363
|
+
emit: (i) => $c(s, e, {
|
|
2364
2364
|
bubbles: !0,
|
|
2365
2365
|
composed: !0,
|
|
2366
2366
|
cancelable: !0,
|
|
2367
2367
|
detail: i
|
|
2368
2368
|
})
|
|
2369
2369
|
};
|
|
2370
|
-
},
|
|
2370
|
+
}, $c = (n, e, t) => {
|
|
2371
2371
|
const s = q.ce(e, t);
|
|
2372
2372
|
return n.dispatchEvent(s), s;
|
|
2373
|
-
},
|
|
2374
|
-
},
|
|
2373
|
+
}, xc = (n, e) => {
|
|
2374
|
+
}, Co = (n, e) => (n.$flags$ |= 16, xc(n, n.$ancestorComponent$), zc(() => wc(n, e))), wc = (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, () => kc(n, i, e));
|
|
2378
|
+
}, kc = 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 && ac(n);
|
|
2381
2381
|
const r = Ue("render", n.$cmpMeta$.$tagName$);
|
|
2382
|
-
|
|
2383
|
-
},
|
|
2382
|
+
Sc(n, e, s), r(), i(), _c(n);
|
|
2383
|
+
}, Sc = (n, e, t) => {
|
|
2384
2384
|
try {
|
|
2385
|
-
tr = e, e = e.render && e.render(), n.$flags$ &= -17, n.$flags$ |= 2, (Ke.hasRenderFn || Ke.reflect) && (Ke.vdomRender || Ke.reflect) && (Ke.hydrateServerSide ||
|
|
2385
|
+
tr = e, e = e.render && e.render(), n.$flags$ &= -17, n.$flags$ |= 2, (Ke.hasRenderFn || Ke.reflect) && (Ke.vdomRender || Ke.reflect) && (Ke.hydrateServerSide || vc(n, e));
|
|
2386
2386
|
} catch (a) {
|
|
2387
2387
|
Nt(a, n.$hostElement$);
|
|
2388
2388
|
}
|
|
2389
2389
|
return tr = null, null;
|
|
2390
|
-
},
|
|
2390
|
+
}, _c = (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 : {}, le = 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(), Ec = (n, e) => n != null && !Ns(n) ? e & 4 ? n === "false" ? !1 : n === "" || !!n : e & 2 ? parseFloat(n) : e & 1 ? String(n) : n : n, Ac = (n, e) => Sn(n).$instanceValues$.get(e), Cc = (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 = Ec(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 : {}, le = 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
|
+
Co(i, !1);
|
|
2421
2421
|
}
|
|
2422
2422
|
}
|
|
2423
2423
|
}
|
|
2424
|
-
},
|
|
2424
|
+
}, Tc = (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 Ac(this, r);
|
|
2432
2432
|
},
|
|
2433
2433
|
set(a) {
|
|
2434
|
-
|
|
2434
|
+
Cc(this, r, a, e);
|
|
2435
2435
|
},
|
|
2436
2436
|
configurable: !0,
|
|
2437
2437
|
enumerable: !0
|
|
@@ -2458,37 +2458,37 @@ const kn = typeof window < "u" ? window : {}, le = kn.document || { head: {} },
|
|
|
2458
2458
|
}
|
|
2459
2459
|
}
|
|
2460
2460
|
return n;
|
|
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$ = lc(n)]);
|
|
2465
|
+
const a = $o(t, e.$modeName$);
|
|
2466
2466
|
if (!un.has(a)) {
|
|
2467
2467
|
const l = Ue("registerStyles", t.$tagName$);
|
|
2468
|
-
|
|
2468
|
+
rc(a, o, !!(t.$flags$ & 1)), l();
|
|
2469
2469
|
}
|
|
2470
2470
|
}
|
|
2471
|
-
e.$ancestorComponent$,
|
|
2471
|
+
e.$ancestorComponent$, Co(e, !0);
|
|
2472
|
+
}, Lc = (n) => {
|
|
2472
2473
|
}, 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 ? (yo(n, e, t.$listeners$), Lc(e.$lazyInstance$)) : (e.$flags$ |= 1, t.$flags$ & 12 && Pc(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
|
-
},
|
|
2483
|
+
}, Pc = (n) => {
|
|
2484
2484
|
const e = n["s-cr"] = le.createComment("");
|
|
2485
2485
|
e["s-cn"] = !0, n.insertBefore(e, n.firstChild);
|
|
2486
|
-
},
|
|
2486
|
+
}, Ic = (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
|
+
}, To = (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 : {}, le = 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
|
+
Mc(this, t);
|
|
2501
2501
|
},
|
|
2502
2502
|
connectedCallback() {
|
|
2503
|
-
|
|
2503
|
+
Oc(this), s && s.call(this);
|
|
2504
2504
|
},
|
|
2505
2505
|
disconnectedCallback() {
|
|
2506
|
-
|
|
2506
|
+
Ic(this), i && i.call(this);
|
|
2507
2507
|
},
|
|
2508
2508
|
__attachShadow() {
|
|
2509
2509
|
this.attachShadow({
|
|
@@ -2511,17 +2511,17 @@ const kn = typeof window < "u" ? window : {}, le = kn.document || { head: {} },
|
|
|
2511
2511
|
delegatesFocus: !!(t.$flags$ & 16)
|
|
2512
2512
|
});
|
|
2513
2513
|
}
|
|
2514
|
-
}), n.is = t.$tagName$,
|
|
2515
|
-
},
|
|
2514
|
+
}), n.is = t.$tagName$, Tc(n, t);
|
|
2515
|
+
}, Ro = /* @__PURE__ */ new WeakMap(), Sn = (n) => Ro.get(n), Mc = (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 yo(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(), Nc = [], hr = [], Lo = [], Dc = (n, e) => (t) => {
|
|
2524
|
+
n.push(t), ds || (ds = !0, e && q.$flags$ & 4 ? Uc(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 : {}, le = kn.document || { head: {} },
|
|
|
2531
2531
|
}
|
|
2532
2532
|
n.length = 0;
|
|
2533
2533
|
}, ps = () => {
|
|
2534
|
-
dr(hr), dr(
|
|
2535
|
-
},
|
|
2534
|
+
dr(hr), dr(Lo), (ds = hr.length > 0) && q.raf(ps);
|
|
2535
|
+
}, Uc = (n) => ec().then(n), zc = /* @__PURE__ */ Dc(Lo, !0), Bc = (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 : {}, le = 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
|
+
}, Hc = (n) => n.replace(/<(\/?)svg([^>]*)>/g, "").trim();
|
|
2544
|
+
function Fc(n) {
|
|
2545
2545
|
return `${n.getFullYear()}.${n.getMonth() + 1}`;
|
|
2546
2546
|
}
|
|
2547
|
-
class
|
|
2547
|
+
class jc {
|
|
2548
2548
|
constructor(e) {
|
|
2549
|
-
this.voca_component = e, this.voca_added =
|
|
2549
|
+
this.voca_component = e, this.voca_added = Fc(/* @__PURE__ */ new Date());
|
|
2550
2550
|
}
|
|
2551
2551
|
}
|
|
2552
|
-
const
|
|
2552
|
+
const qc = "telia-vst{display:none}", Wc = /* @__PURE__ */ To(class extends bo {
|
|
2553
2553
|
constructor() {
|
|
2554
|
-
super(), this.__registerHost(), this.vocaInternalUStats =
|
|
2554
|
+
super(), this.__registerHost(), this.vocaInternalUStats = yc(this, "vocaInternalUStats");
|
|
2555
2555
|
}
|
|
2556
2556
|
connectedCallback() {
|
|
2557
|
-
this.vocaInternalUStats.emit(new
|
|
2557
|
+
this.vocaInternalUStats.emit(new jc(this.dataTrackingId));
|
|
2558
2558
|
}
|
|
2559
2559
|
render() {
|
|
2560
2560
|
return et(Ds, null);
|
|
2561
2561
|
}
|
|
2562
2562
|
static get style() {
|
|
2563
|
-
return
|
|
2563
|
+
return qc;
|
|
2564
2564
|
}
|
|
2565
2565
|
}, [0, "telia-vst", {
|
|
2566
2566
|
dataTrackingId: [1, "data-tracking-id"]
|
|
2567
2567
|
}]);
|
|
2568
|
-
function
|
|
2568
|
+
function Oo() {
|
|
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, Wc);
|
|
2575
2575
|
break;
|
|
2576
2576
|
}
|
|
2577
2577
|
});
|
|
2578
2578
|
}
|
|
2579
|
-
|
|
2579
|
+
Oo();
|
|
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 Gc() {
|
|
2584
2584
|
if (typeof fs().vocadsIcons !== void 0)
|
|
2585
2585
|
return fs().vocadsIcons;
|
|
2586
2586
|
}
|
|
2587
|
-
function
|
|
2587
|
+
function Zc() {
|
|
2588
2588
|
return fs().vocadsIconsRegistered;
|
|
2589
2589
|
}
|
|
2590
|
-
const
|
|
2590
|
+
const Yc = ".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__ */ To(class extends bo {
|
|
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 Kc = ".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 (Zc() && this.name) {
|
|
2603
|
+
const n = Gc();
|
|
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"), "";
|
|
@@ -2611,15 +2611,15 @@ const Kc = ".telia-icon{display:inline-block}.telia-icon__container{display:bloc
|
|
|
2611
2611
|
...e,
|
|
2612
2612
|
{ name: "aria-hidden", value: "true" }
|
|
2613
2613
|
];
|
|
2614
|
-
const t =
|
|
2615
|
-
content:
|
|
2614
|
+
const t = Bc({
|
|
2615
|
+
content: Hc(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 Yc;
|
|
2623
2623
|
}
|
|
2624
2624
|
}, [0, "telia-icon", {
|
|
2625
2625
|
name: [1],
|
|
@@ -2628,27 +2628,27 @@ const Kc = ".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 Xc() {
|
|
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) || Oo();
|
|
2641
2641
|
break;
|
|
2642
2642
|
}
|
|
2643
2643
|
});
|
|
2644
2644
|
}
|
|
2645
|
-
|
|
2645
|
+
Xc();
|
|
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 Vc = (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 Qc = (n) => (e, t) => {
|
|
|
2658
2658
|
* Copyright 2017 Google LLC
|
|
2659
2659
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2660
2660
|
*/
|
|
2661
|
-
const
|
|
2661
|
+
const Qc = { attribute: !0, type: String, converter: rn, reflect: !1, hasChanged: Ps }, Jc = (n = Qc, 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 Jc = { 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" ? Jc(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);
|
|
@@ -2698,7 +2698,7 @@ function N(n) {
|
|
|
2698
2698
|
* Copyright 2020 Google LLC
|
|
2699
2699
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2700
2700
|
*/
|
|
2701
|
-
const
|
|
2701
|
+
const eu = (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
|
+
}, Po = (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), su(e);
|
|
2747
2747
|
}
|
|
2748
2748
|
};
|
|
2749
|
-
function
|
|
2750
|
-
this._$AN !== void 0 ? (hn(this), this._$AM = n,
|
|
2749
|
+
function tu(n) {
|
|
2750
|
+
this._$AN !== void 0 ? (hn(this), this._$AM = n, Po(this)) : this._$AM = n;
|
|
2751
2751
|
}
|
|
2752
|
-
function
|
|
2752
|
+
function nu(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 su = (n) => {
|
|
2759
|
+
n.type == _n.CHILD && (n._$AP ?? (n._$AP = nu), n._$AQ ?? (n._$AQ = tu));
|
|
2760
2760
|
};
|
|
2761
|
-
let
|
|
2761
|
+
let Io = 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), Po(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 (eu(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,10 +2786,10 @@ let Mo = class extends zs {
|
|
|
2786
2786
|
* Copyright 2020 Google LLC
|
|
2787
2787
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2788
2788
|
*/
|
|
2789
|
-
const oe = () => new
|
|
2790
|
-
class
|
|
2789
|
+
const oe = () => new iu();
|
|
2790
|
+
class iu {
|
|
2791
2791
|
}
|
|
2792
|
-
const Yn = /* @__PURE__ */ new WeakMap(), ae = En(class extends
|
|
2792
|
+
const Yn = /* @__PURE__ */ new WeakMap(), ae = En(class extends Io {
|
|
2793
2793
|
render(n) {
|
|
2794
2794
|
return $;
|
|
2795
2795
|
}
|
|
@@ -2845,10 +2845,10 @@ const rt = En(class extends zs {
|
|
|
2845
2845
|
return _e;
|
|
2846
2846
|
}
|
|
2847
2847
|
});
|
|
2848
|
-
var
|
|
2848
|
+
var ru = Object.defineProperty, ou = (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 && ru(e, t, i), i;
|
|
2852
2852
|
};
|
|
2853
2853
|
const Js = class Js extends M {
|
|
2854
2854
|
constructor() {
|
|
@@ -2882,12 +2882,12 @@ Js.styles = [
|
|
|
2882
2882
|
`
|
|
2883
2883
|
];
|
|
2884
2884
|
let dn = Js;
|
|
2885
|
-
|
|
2885
|
+
ou([
|
|
2886
2886
|
C({ attribute: !0 })
|
|
2887
2887
|
], dn.prototype, "anchor");
|
|
2888
|
-
const
|
|
2888
|
+
const au = /* @__PURE__ */ new WeakMap();
|
|
2889
2889
|
let pr = 0;
|
|
2890
|
-
const Kn = /* @__PURE__ */ new Map(), fr = /* @__PURE__ */ new WeakSet(), gr = () => new Promise(((n) => requestAnimationFrame(n))),
|
|
2890
|
+
const Kn = /* @__PURE__ */ new Map(), fr = /* @__PURE__ */ new WeakSet(), gr = () => new Promise(((n) => requestAnimationFrame(n))), lu = [{ transform: "translateX(100%) scale(0)", opacity: 0 }], cu = [{ 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 Kn = /* @__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
|
+
} }, uu = { duration: 333, easing: "ease-in-out" }, hu = ["left", "top", "width", "height", "opacity", "color", "background"], yr = /* @__PURE__ */ new WeakMap();
|
|
2913
|
+
class du extends Io {
|
|
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();
|
|
@@ -2929,7 +2929,7 @@ class pu extends Mo {
|
|
|
2929
2929
|
return $;
|
|
2930
2930
|
}
|
|
2931
2931
|
getController() {
|
|
2932
|
-
return
|
|
2932
|
+
return au.get(this.u);
|
|
2933
2933
|
}
|
|
2934
2934
|
isDisabled() {
|
|
2935
2935
|
var e;
|
|
@@ -2943,7 +2943,7 @@ class pu extends Mo {
|
|
|
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 = hu), 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 pu extends Mo {
|
|
|
3032
3032
|
})), e;
|
|
3033
3033
|
}
|
|
3034
3034
|
j(e, t = this.O()) {
|
|
3035
|
-
const s = { ...
|
|
3035
|
+
const s = { ...uu };
|
|
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,9 +3081,9 @@ class pu extends Mo {
|
|
|
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(du), fe = (n, e, t) => {
|
|
3085
3085
|
n && t.style.setProperty(e, n);
|
|
3086
|
-
},
|
|
3086
|
+
}, Mo = (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,
|
|
@@ -3115,10 +3115,10 @@ const gs = En(pu), fe = (n, e, t) => {
|
|
|
3115
3115
|
e
|
|
3116
3116
|
), fe((u = n.colors) == null ? void 0 : u.focusColor, "--focus-color", e);
|
|
3117
3117
|
};
|
|
3118
|
-
var
|
|
3118
|
+
var pu = 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 && pu(e, t, i), i;
|
|
3122
3122
|
};
|
|
3123
3123
|
const ei = class ei extends M {
|
|
3124
3124
|
constructor() {
|
|
@@ -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 && Mo(this.application.settings.branding, this);
|
|
3161
3161
|
}
|
|
3162
3162
|
async _renderSymbol() {
|
|
3163
3163
|
var a, l, c;
|
|
@@ -3167,7 +3167,7 @@ const ei = class ei extends M {
|
|
|
3167
3167
|
const s = (c = this.application) == null ? void 0 : c.triggerIcon;
|
|
3168
3168
|
if (!s)
|
|
3169
3169
|
return $;
|
|
3170
|
-
const i = async (u) =>
|
|
3170
|
+
const i = async (u) => Vl, { type: r, content: o } = s;
|
|
3171
3171
|
switch (r) {
|
|
3172
3172
|
case "Telia": {
|
|
3173
3173
|
const u = await i();
|
|
@@ -3211,7 +3211,7 @@ const ei = class ei extends M {
|
|
|
3211
3211
|
@click=${this.toggleActive}
|
|
3212
3212
|
${gs({
|
|
3213
3213
|
keyframeOptions: {},
|
|
3214
|
-
in:
|
|
3214
|
+
in: lu,
|
|
3215
3215
|
stabilizeOut: !0,
|
|
3216
3216
|
skipInitial: !1
|
|
3217
3217
|
})}
|
|
@@ -3410,12 +3410,12 @@ Dt([
|
|
|
3410
3410
|
Dt([
|
|
3411
3411
|
N()
|
|
3412
3412
|
], ye.prototype, "icon");
|
|
3413
|
-
var
|
|
3413
|
+
var fu = 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 && fu(e, t, i), i;
|
|
3417
3417
|
};
|
|
3418
|
-
const
|
|
3418
|
+
const No = (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 Do = (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 No(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* gu(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 Bs = /* @__PURE__ */ ((n) => (n.Inline = "inline", n.Trigger = "trigger", n))(Bs || {}),
|
|
3498
|
+
var Bs = /* @__PURE__ */ ((n) => (n.Inline = "inline", n.Trigger = "trigger", n))(Bs || {}), Do = /* @__PURE__ */ ((n) => (n.NonAuthenticated = "non-authenticated", n.Authenticating = "authenticating", n.Authenticated = "authenticated", n.ChatEnded = "chat-ended", n))(Do || {});
|
|
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 Uo = 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 Uo(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 mu {
|
|
3545
3545
|
get value() {
|
|
3546
3546
|
return this.o;
|
|
3547
3547
|
}
|
|
@@ -3574,12 +3574,12 @@ class vu {
|
|
|
3574
3574
|
* Copyright 2021 Google LLC
|
|
3575
3575
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3576
3576
|
*/
|
|
3577
|
-
let
|
|
3577
|
+
let vu = 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 mu {
|
|
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 vu {
|
|
|
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 Uo(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 vu {
|
|
|
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 vu(this.context, this.host));
|
|
3601
3601
|
}
|
|
3602
3602
|
}
|
|
3603
3603
|
/**
|
|
@@ -3605,7 +3605,7 @@ class xr extends vu {
|
|
|
3605
3605
|
* Copyright 2017 Google LLC
|
|
3606
3606
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3607
3607
|
*/
|
|
3608
|
-
function
|
|
3608
|
+
function bu({ 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 yu({ context: n }) {
|
|
|
3643
3643
|
* Copyright 2022 Google LLC
|
|
3644
3644
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3645
3645
|
*/
|
|
3646
|
-
function
|
|
3646
|
+
function zo({ 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,10 +3656,10 @@ function Bo({ context: n, subscribe: e }) {
|
|
|
3656
3656
|
}));
|
|
3657
3657
|
};
|
|
3658
3658
|
}
|
|
3659
|
-
var
|
|
3659
|
+
var yu = Object.defineProperty, Bo = (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 && yu(e, t, i), i;
|
|
3663
3663
|
};
|
|
3664
3664
|
const Hs = "application", ni = class ni extends M {
|
|
3665
3665
|
constructor() {
|
|
@@ -3672,7 +3672,7 @@ const Hs = "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 && Mo(e.branding, this.wrapperRef.value);
|
|
3676
3676
|
}
|
|
3677
3677
|
applyStyles() {
|
|
3678
3678
|
if (!this.wrapperRef.value)
|
|
@@ -3688,7 +3688,7 @@ const Hs = "application", ni = class ni extends M {
|
|
|
3688
3688
|
render() {
|
|
3689
3689
|
var t, s, i;
|
|
3690
3690
|
return ((i = (s = (t = this.application.settings) == null ? void 0 : t.agentConfig) == null ? void 0 : s.live) == null ? void 0 : i.isThirdPartyWidget) ?? !1 ? 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)}>
|
|
3691
|
-
${
|
|
3691
|
+
${gu(this.nodes, (r) => r)}
|
|
3692
3692
|
</div>`;
|
|
3693
3693
|
}
|
|
3694
3694
|
};
|
|
@@ -3859,17 +3859,17 @@ ni.styles = Z`
|
|
|
3859
3859
|
}
|
|
3860
3860
|
`;
|
|
3861
3861
|
let At = ni;
|
|
3862
|
-
|
|
3862
|
+
Bo([
|
|
3863
3863
|
C({ attribute: !0 })
|
|
3864
3864
|
], At.prototype, "fullscreen");
|
|
3865
|
-
|
|
3865
|
+
Bo([
|
|
3866
3866
|
C({ attribute: !1 }),
|
|
3867
|
-
|
|
3867
|
+
bu({ context: Hs })
|
|
3868
3868
|
], At.prototype, "application");
|
|
3869
|
-
var
|
|
3869
|
+
var $u = Object.defineProperty, Fs = (n, e, t, s) => {
|
|
3870
3870
|
for (var i = void 0, r = n.length - 1, o; r >= 0; r--)
|
|
3871
3871
|
(o = n[r]) && (i = o(e, t, i) || i);
|
|
3872
|
-
return i &&
|
|
3872
|
+
return i && $u(e, t, i), i;
|
|
3873
3873
|
};
|
|
3874
3874
|
const si = class si extends M {
|
|
3875
3875
|
constructor() {
|
|
@@ -3925,7 +3925,7 @@ customElements.get("ace-trigger") || customElements.define("ace-trigger", ye);
|
|
|
3925
3925
|
customElements.get("ace-unresolved-component") || customElements.define("ace-unresolved-component", ms);
|
|
3926
3926
|
customElements.get("ace-wrapper") || customElements.define("ace-wrapper", At);
|
|
3927
3927
|
customElements.get("ace-widget") || customElements.define("ace-widget", ot);
|
|
3928
|
-
class
|
|
3928
|
+
class xu {
|
|
3929
3929
|
constructor(e) {
|
|
3930
3930
|
this._message = null, this._host = e, e.addController(this);
|
|
3931
3931
|
}
|
|
@@ -3997,7 +3997,7 @@ class wr {
|
|
|
3997
3997
|
return this.component.platform.registeredProviders.get(e);
|
|
3998
3998
|
}
|
|
3999
3999
|
}
|
|
4000
|
-
class
|
|
4000
|
+
class wu {
|
|
4001
4001
|
constructor(e) {
|
|
4002
4002
|
this.component = e, this.currentSession$ = new F(null), this.sessions = [], this.storage = null, sn(e, "handover").subscribe((t) => {
|
|
4003
4003
|
const s = this._createNewSession(
|
|
@@ -4080,7 +4080,7 @@ class ku {
|
|
|
4080
4080
|
}
|
|
4081
4081
|
_createNewSession(e, t = {}) {
|
|
4082
4082
|
const s = this._getStoredSessions(), i = new wr(
|
|
4083
|
-
|
|
4083
|
+
oo(),
|
|
4084
4084
|
e,
|
|
4085
4085
|
t,
|
|
4086
4086
|
{},
|
|
@@ -4095,9 +4095,9 @@ class ku {
|
|
|
4095
4095
|
return this.component.properties.providers[0];
|
|
4096
4096
|
}
|
|
4097
4097
|
}
|
|
4098
|
-
class
|
|
4098
|
+
class ku {
|
|
4099
4099
|
constructor(e, t) {
|
|
4100
|
-
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
|
|
4100
|
+
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 wu(this.component), this.session$ = this.sessionService.currentSession(), this.isTyping$ = this.session$.pipe(
|
|
4101
4101
|
Je((s) => s ? s.provider$.pipe(
|
|
4102
4102
|
Je((i) => i ? i.isTyping() : os(!1))
|
|
4103
4103
|
) : os(!1))
|
|
@@ -4135,7 +4135,7 @@ class Su {
|
|
|
4135
4135
|
return [...r, ...o];
|
|
4136
4136
|
})
|
|
4137
4137
|
);
|
|
4138
|
-
return
|
|
4138
|
+
return $l(t, s);
|
|
4139
4139
|
})
|
|
4140
4140
|
).subscribe((e) => {
|
|
4141
4141
|
this.entries$.next(e);
|
|
@@ -4146,10 +4146,10 @@ class Su {
|
|
|
4146
4146
|
(e = this.sessionService) == null || e.startSession();
|
|
4147
4147
|
}
|
|
4148
4148
|
}
|
|
4149
|
-
var
|
|
4149
|
+
var Su = Object.defineProperty, Ho = (n, e, t, s) => {
|
|
4150
4150
|
for (var i = void 0, r = n.length - 1, o; r >= 0; r--)
|
|
4151
4151
|
(o = n[r]) && (i = o(e, t, i) || i);
|
|
4152
|
-
return i &&
|
|
4152
|
+
return i && Su(e, t, i), i;
|
|
4153
4153
|
};
|
|
4154
4154
|
const ii = class ii extends M {
|
|
4155
4155
|
connectedCallback() {
|
|
@@ -4183,13 +4183,13 @@ const ii = class ii extends M {
|
|
|
4183
4183
|
}
|
|
4184
4184
|
_renderDeliveryStatus(e) {
|
|
4185
4185
|
return e === "delivered" ? w`<telia-icon
|
|
4186
|
-
svg=${
|
|
4186
|
+
svg=${Yl.svg}
|
|
4187
4187
|
size="sm"
|
|
4188
4188
|
></telia-icon>` : e === "failed" ? w`<telia-icon
|
|
4189
|
-
svg=${
|
|
4189
|
+
svg=${Zl.svg}
|
|
4190
4190
|
size="sm"
|
|
4191
4191
|
title="Message could not be delivered"
|
|
4192
|
-
></telia-icon>` : w`<telia-icon svg=${
|
|
4192
|
+
></telia-icon>` : w`<telia-icon svg=${go.svg} size="sm"></telia-icon>`;
|
|
4193
4193
|
}
|
|
4194
4194
|
_dispatchEntryAction(e) {
|
|
4195
4195
|
this.entry.actions$.next(e.detail);
|
|
@@ -4411,17 +4411,17 @@ ii.styles = [
|
|
|
4411
4411
|
`
|
|
4412
4412
|
];
|
|
4413
4413
|
let Ct = ii;
|
|
4414
|
-
|
|
4414
|
+
Ho([
|
|
4415
4415
|
C({ attribute: !1 })
|
|
4416
4416
|
], Ct.prototype, "entry");
|
|
4417
|
-
|
|
4418
|
-
|
|
4417
|
+
Ho([
|
|
4418
|
+
zo({ context: Hs }),
|
|
4419
4419
|
C({ attribute: !1 })
|
|
4420
4420
|
], Ct.prototype, "application");
|
|
4421
|
-
var
|
|
4421
|
+
var _u = Object.defineProperty, Fo = (n, e, t, s) => {
|
|
4422
4422
|
for (var i = void 0, r = n.length - 1, o; r >= 0; r--)
|
|
4423
4423
|
(o = n[r]) && (i = o(e, t, i) || i);
|
|
4424
|
-
return i &&
|
|
4424
|
+
return i && _u(e, t, i), i;
|
|
4425
4425
|
};
|
|
4426
4426
|
const ri = class ri extends M {
|
|
4427
4427
|
constructor() {
|
|
@@ -4451,7 +4451,7 @@ const ri = class ri extends M {
|
|
|
4451
4451
|
${gs({
|
|
4452
4452
|
keyframeOptions: {},
|
|
4453
4453
|
in: mr,
|
|
4454
|
-
out:
|
|
4454
|
+
out: cu,
|
|
4455
4455
|
stabilizeOut: !0,
|
|
4456
4456
|
skipInitial: !1
|
|
4457
4457
|
})}
|
|
@@ -4479,10 +4479,10 @@ ri.styles = [
|
|
|
4479
4479
|
`
|
|
4480
4480
|
];
|
|
4481
4481
|
let Tt = ri;
|
|
4482
|
-
|
|
4482
|
+
Fo([
|
|
4483
4483
|
C({ attribute: !1 })
|
|
4484
4484
|
], Tt.prototype, "entries");
|
|
4485
|
-
|
|
4485
|
+
Fo([
|
|
4486
4486
|
C({ type: Boolean })
|
|
4487
4487
|
], Tt.prototype, "loading");
|
|
4488
4488
|
/**
|
|
@@ -4490,14 +4490,14 @@ jo([
|
|
|
4490
4490
|
* Copyright 2021 Google LLC
|
|
4491
4491
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
4492
4492
|
*/
|
|
4493
|
-
const
|
|
4493
|
+
const Eu = (n, e, t) => {
|
|
4494
4494
|
for (const s of e) if (s[0] === n) return (0, s[1])();
|
|
4495
4495
|
return t == null ? void 0 : t();
|
|
4496
4496
|
};
|
|
4497
|
-
var
|
|
4497
|
+
var Au = Object.defineProperty, Cu = (n, e, t, s) => {
|
|
4498
4498
|
for (var i = void 0, r = n.length - 1, o; r >= 0; r--)
|
|
4499
4499
|
(o = n[r]) && (i = o(e, t, i) || i);
|
|
4500
|
-
return i &&
|
|
4500
|
+
return i && Au(e, t, i), i;
|
|
4501
4501
|
};
|
|
4502
4502
|
const oi = class oi extends M {
|
|
4503
4503
|
render() {
|
|
@@ -4505,7 +4505,7 @@ const oi = class oi extends M {
|
|
|
4505
4505
|
<div class="message-group">
|
|
4506
4506
|
${this.group.items.map(
|
|
4507
4507
|
([e, t, s]) => w`
|
|
4508
|
-
${
|
|
4508
|
+
${Eu(
|
|
4509
4509
|
e,
|
|
4510
4510
|
[
|
|
4511
4511
|
["html", () => w`<message-type-html .message=${t} />`],
|
|
@@ -4545,7 +4545,7 @@ oi.styles = [
|
|
|
4545
4545
|
`
|
|
4546
4546
|
];
|
|
4547
4547
|
let pn = oi;
|
|
4548
|
-
|
|
4548
|
+
Cu([
|
|
4549
4549
|
C({ attribute: !1 })
|
|
4550
4550
|
], pn.prototype, "group");
|
|
4551
4551
|
const ai = class ai extends M {
|
|
@@ -4615,19 +4615,19 @@ class bs extends zs {
|
|
|
4615
4615
|
}
|
|
4616
4616
|
}
|
|
4617
4617
|
bs.directiveName = "unsafeHTML", bs.resultType = 1;
|
|
4618
|
-
const
|
|
4618
|
+
const Tu = En(bs);
|
|
4619
4619
|
/*! @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 */
|
|
4620
4620
|
const {
|
|
4621
|
-
entries:
|
|
4621
|
+
entries: jo,
|
|
4622
4622
|
setPrototypeOf: kr,
|
|
4623
|
-
isFrozen:
|
|
4624
|
-
getPrototypeOf:
|
|
4625
|
-
getOwnPropertyDescriptor:
|
|
4623
|
+
isFrozen: Ru,
|
|
4624
|
+
getPrototypeOf: Lu,
|
|
4625
|
+
getOwnPropertyDescriptor: Ou
|
|
4626
4626
|
} = Object;
|
|
4627
4627
|
let {
|
|
4628
4628
|
freeze: W,
|
|
4629
4629
|
seal: J,
|
|
4630
|
-
create:
|
|
4630
|
+
create: qo
|
|
4631
4631
|
} = Object, {
|
|
4632
4632
|
apply: ys,
|
|
4633
4633
|
construct: $s
|
|
@@ -4644,7 +4644,7 @@ ys || (ys = function(e, t, s) {
|
|
|
4644
4644
|
$s || ($s = function(e, t) {
|
|
4645
4645
|
return new e(...t);
|
|
4646
4646
|
});
|
|
4647
|
-
const Yt = G(Array.prototype.forEach),
|
|
4647
|
+
const Yt = G(Array.prototype.forEach), Pu = G(Array.prototype.lastIndexOf), Sr = G(Array.prototype.pop), pt = G(Array.prototype.push), Iu = G(Array.prototype.splice), Jt = G(String.prototype.toLowerCase), Vn = G(String.prototype.toString), _r = G(String.prototype.match), ft = G(String.prototype.replace), Mu = G(String.prototype.indexOf), Nu = G(String.prototype.trim), te = G(Object.prototype.hasOwnProperty), H = G(RegExp.prototype.test), gt = Du(TypeError);
|
|
4648
4648
|
function G(n) {
|
|
4649
4649
|
return function(e) {
|
|
4650
4650
|
e instanceof RegExp && (e.lastIndex = 0);
|
|
@@ -4653,7 +4653,7 @@ function G(n) {
|
|
|
4653
4653
|
return ys(n, e, s);
|
|
4654
4654
|
};
|
|
4655
4655
|
}
|
|
4656
|
-
function
|
|
4656
|
+
function Du(n) {
|
|
4657
4657
|
return function() {
|
|
4658
4658
|
for (var e = arguments.length, t = new Array(e), s = 0; s < e; s++)
|
|
4659
4659
|
t[s] = arguments[s];
|
|
@@ -4668,58 +4668,58 @@ function x(n, e) {
|
|
|
4668
4668
|
let i = e[s];
|
|
4669
4669
|
if (typeof i == "string") {
|
|
4670
4670
|
const r = t(i);
|
|
4671
|
-
r !== i && (
|
|
4671
|
+
r !== i && (Ru(e) || (e[s] = r), i = r);
|
|
4672
4672
|
}
|
|
4673
4673
|
n[i] = !0;
|
|
4674
4674
|
}
|
|
4675
4675
|
return n;
|
|
4676
4676
|
}
|
|
4677
|
-
function
|
|
4677
|
+
function Uu(n) {
|
|
4678
4678
|
for (let e = 0; e < n.length; e++)
|
|
4679
4679
|
te(n, e) || (n[e] = null);
|
|
4680
4680
|
return n;
|
|
4681
4681
|
}
|
|
4682
4682
|
function ge(n) {
|
|
4683
|
-
const e =
|
|
4684
|
-
for (const [t, s] of
|
|
4685
|
-
te(n, t) && (Array.isArray(s) ? e[t] =
|
|
4683
|
+
const e = qo(null);
|
|
4684
|
+
for (const [t, s] of jo(n))
|
|
4685
|
+
te(n, t) && (Array.isArray(s) ? e[t] = Uu(s) : s && typeof s == "object" && s.constructor === Object ? e[t] = ge(s) : e[t] = s);
|
|
4686
4686
|
return e;
|
|
4687
4687
|
}
|
|
4688
4688
|
function mt(n, e) {
|
|
4689
4689
|
for (; n !== null; ) {
|
|
4690
|
-
const s =
|
|
4690
|
+
const s = Ou(n, e);
|
|
4691
4691
|
if (s) {
|
|
4692
4692
|
if (s.get)
|
|
4693
4693
|
return G(s.get);
|
|
4694
4694
|
if (typeof s.value == "function")
|
|
4695
4695
|
return G(s.value);
|
|
4696
4696
|
}
|
|
4697
|
-
n =
|
|
4697
|
+
n = Lu(n);
|
|
4698
4698
|
}
|
|
4699
4699
|
function t() {
|
|
4700
4700
|
return null;
|
|
4701
4701
|
}
|
|
4702
4702
|
return t;
|
|
4703
4703
|
}
|
|
4704
|
-
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"]),
|
|
4704
|
+
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"]), zu = 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"]), Bu = 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"]), Kt = W(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), Hu = J(/\{\{[\w\W]*|[\w\W]*\}\}/gm), Fu = J(/<%[\w\W]*|[\w\W]*%>/gm), ju = J(/\$\{[\w\W]*/gm), qu = J(/^data-[\-\w.\u00B7-\uFFFF]+$/), Wu = J(/^aria-[\-\w]+$/), Wo = J(
|
|
4705
4705
|
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
|
4706
4706
|
// eslint-disable-line no-useless-escape
|
|
4707
|
-
),
|
|
4707
|
+
), Gu = J(/^(?:\w+script|data):/i), Zu = J(
|
|
4708
4708
|
/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
|
|
4709
4709
|
// eslint-disable-line no-control-regex
|
|
4710
|
-
),
|
|
4710
|
+
), Go = J(/^html$/i), Yu = J(/^[a-z][.\w]*(-[.\w]+)+$/i);
|
|
4711
4711
|
var Rr = /* @__PURE__ */ Object.freeze({
|
|
4712
4712
|
__proto__: null,
|
|
4713
|
-
ARIA_ATTR:
|
|
4714
|
-
ATTR_WHITESPACE:
|
|
4715
|
-
CUSTOM_ELEMENT:
|
|
4716
|
-
DATA_ATTR:
|
|
4717
|
-
DOCTYPE_NAME:
|
|
4718
|
-
ERB_EXPR:
|
|
4719
|
-
IS_ALLOWED_URI:
|
|
4720
|
-
IS_SCRIPT_OR_DATA:
|
|
4721
|
-
MUSTACHE_EXPR:
|
|
4722
|
-
TMPLIT_EXPR:
|
|
4713
|
+
ARIA_ATTR: Wu,
|
|
4714
|
+
ATTR_WHITESPACE: Zu,
|
|
4715
|
+
CUSTOM_ELEMENT: Yu,
|
|
4716
|
+
DATA_ATTR: qu,
|
|
4717
|
+
DOCTYPE_NAME: Go,
|
|
4718
|
+
ERB_EXPR: Fu,
|
|
4719
|
+
IS_ALLOWED_URI: Wo,
|
|
4720
|
+
IS_SCRIPT_OR_DATA: Gu,
|
|
4721
|
+
MUSTACHE_EXPR: Hu,
|
|
4722
|
+
TMPLIT_EXPR: ju
|
|
4723
4723
|
});
|
|
4724
4724
|
const vt = {
|
|
4725
4725
|
element: 1,
|
|
@@ -4728,9 +4728,9 @@ const vt = {
|
|
|
4728
4728
|
progressingInstruction: 7,
|
|
4729
4729
|
comment: 8,
|
|
4730
4730
|
document: 9
|
|
4731
|
-
},
|
|
4731
|
+
}, Ku = function() {
|
|
4732
4732
|
return typeof window > "u" ? null : window;
|
|
4733
|
-
},
|
|
4733
|
+
}, Xu = function(e, t) {
|
|
4734
4734
|
if (typeof e != "object" || typeof e.createPolicy != "function")
|
|
4735
4735
|
return null;
|
|
4736
4736
|
let s = null;
|
|
@@ -4762,9 +4762,9 @@ const vt = {
|
|
|
4762
4762
|
uponSanitizeShadowNode: []
|
|
4763
4763
|
};
|
|
4764
4764
|
};
|
|
4765
|
-
function
|
|
4766
|
-
let n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] :
|
|
4767
|
-
const e = (b) =>
|
|
4765
|
+
function Zo() {
|
|
4766
|
+
let n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Ku();
|
|
4767
|
+
const e = (b) => Zo(b);
|
|
4768
4768
|
if (e.version = "3.2.6", e.removed = [], !n || !n.document || n.document.nodeType !== vt.document || !n.Element)
|
|
4769
4769
|
return e.isSupported = !1, e;
|
|
4770
4770
|
let {
|
|
@@ -4789,22 +4789,22 @@ function Yo() {
|
|
|
4789
4789
|
const {
|
|
4790
4790
|
implementation: Ce,
|
|
4791
4791
|
createNodeIterator: Te,
|
|
4792
|
-
createDocumentFragment:
|
|
4793
|
-
getElementsByTagName:
|
|
4792
|
+
createDocumentFragment: ca,
|
|
4793
|
+
getElementsByTagName: ua
|
|
4794
4794
|
} = t, {
|
|
4795
|
-
importNode:
|
|
4795
|
+
importNode: ha
|
|
4796
4796
|
} = s;
|
|
4797
4797
|
let B = Lr();
|
|
4798
|
-
e.isSupported = typeof
|
|
4798
|
+
e.isSupported = typeof jo == "function" && typeof Ee == "function" && Ce && Ce.createHTMLDocument !== void 0;
|
|
4799
4799
|
const {
|
|
4800
4800
|
MUSTACHE_EXPR: Tn,
|
|
4801
4801
|
ERB_EXPR: Rn,
|
|
4802
4802
|
TMPLIT_EXPR: Ln,
|
|
4803
|
-
DATA_ATTR:
|
|
4804
|
-
ARIA_ATTR:
|
|
4805
|
-
IS_SCRIPT_OR_DATA:
|
|
4803
|
+
DATA_ATTR: da,
|
|
4804
|
+
ARIA_ATTR: pa,
|
|
4805
|
+
IS_SCRIPT_OR_DATA: fa,
|
|
4806
4806
|
ATTR_WHITESPACE: di,
|
|
4807
|
-
CUSTOM_ELEMENT:
|
|
4807
|
+
CUSTOM_ELEMENT: ga
|
|
4808
4808
|
} = Rr;
|
|
4809
4809
|
let {
|
|
4810
4810
|
IS_ALLOWED_URI: pi
|
|
@@ -4812,7 +4812,7 @@ function Yo() {
|
|
|
4812
4812
|
const fi = x({}, [...Er, ...Qn, ...Jn, ...es, ...Ar]);
|
|
4813
4813
|
let D = null;
|
|
4814
4814
|
const gi = x({}, [...Cr, ...ts, ...Tr, ...Kt]);
|
|
4815
|
-
let T = Object.seal(
|
|
4815
|
+
let T = Object.seal(qo(null, {
|
|
4816
4816
|
tagNameCheck: {
|
|
4817
4817
|
writable: !0,
|
|
4818
4818
|
configurable: !1,
|
|
@@ -4832,7 +4832,7 @@ function Yo() {
|
|
|
4832
4832
|
value: !1
|
|
4833
4833
|
}
|
|
4834
4834
|
})), lt = null, On = null, mi = !0, Pn = !0, vi = !1, bi = !0, He = !1, zt = !0, Re = !1, In = !1, Mn = !1, Fe = !1, Bt = !1, Ht = !1, yi = !0, $i = !1;
|
|
4835
|
-
const
|
|
4835
|
+
const ma = "user-content-";
|
|
4836
4836
|
let Nn = !0, ct = !1, je = {}, qe = null;
|
|
4837
4837
|
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"]);
|
|
4838
4838
|
let wi = null;
|
|
@@ -4840,36 +4840,36 @@ function Yo() {
|
|
|
4840
4840
|
let Dn = null;
|
|
4841
4841
|
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";
|
|
4842
4842
|
let We = he, Un = !1, zn = null;
|
|
4843
|
-
const
|
|
4843
|
+
const va = x({}, [Ft, jt, he], Vn);
|
|
4844
4844
|
let qt = x({}, ["mi", "mo", "mn", "ms", "mtext"]), Wt = x({}, ["annotation-xml"]);
|
|
4845
|
-
const
|
|
4845
|
+
const ba = x({}, ["title", "style", "font", "a", "script"]);
|
|
4846
4846
|
let ut = null;
|
|
4847
|
-
const
|
|
4847
|
+
const ya = ["application/xhtml+xml", "text/html"], $a = "text/html";
|
|
4848
4848
|
let P = null, Ge = null;
|
|
4849
|
-
const
|
|
4849
|
+
const xa = t.createElement("form"), _i = function(h) {
|
|
4850
4850
|
return h instanceof RegExp || h instanceof Function;
|
|
4851
4851
|
}, Bn = function() {
|
|
4852
4852
|
let h = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
4853
4853
|
if (!(Ge && Ge === h)) {
|
|
4854
4854
|
if ((!h || typeof h != "object") && (h = {}), h = ge(h), ut = // eslint-disable-next-line unicorn/prefer-includes
|
|
4855
|
-
|
|
4855
|
+
ya.indexOf(h.PARSER_MEDIA_TYPE) === -1 ? $a : 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) : va, 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, Re = 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 || Wo, 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, Kt)), je.svgFilters === !0 && (x(O, Jn), x(D, ts), x(D, Kt)), je.mathMl === !0 && (x(O, es), x(D, Tr), x(D, Kt))), 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), Re && x(O, ["html", "head", "body"]), O.table && (x(O, ["tbody"]), delete lt.tbody), h.TRUSTED_TYPES_POLICY) {
|
|
4856
4856
|
if (typeof h.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
4857
4857
|
throw gt('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
4858
4858
|
if (typeof h.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
4859
4859
|
throw gt('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
|
|
4860
4860
|
L = h.TRUSTED_TYPES_POLICY, Ae = L.createHTML("");
|
|
4861
4861
|
} else
|
|
4862
|
-
L === void 0 && (L =
|
|
4862
|
+
L === void 0 && (L = Xu(g, i)), L !== null && typeof Ae == "string" && (Ae = L.createHTML(""));
|
|
4863
4863
|
W && W(h), Ge = h;
|
|
4864
4864
|
}
|
|
4865
|
-
}, Ei = x({}, [...Qn, ...Jn, ...
|
|
4865
|
+
}, Ei = x({}, [...Qn, ...Jn, ...zu]), Ai = x({}, [...es, ...Bu]), wa = function(h) {
|
|
4866
4866
|
let f = Ee(h);
|
|
4867
4867
|
(!f || !f.tagName) && (f = {
|
|
4868
4868
|
namespaceURI: We,
|
|
4869
4869
|
tagName: "template"
|
|
4870
4870
|
});
|
|
4871
4871
|
const v = Jt(h.tagName), A = Jt(f.tagName);
|
|
4872
|
-
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] && (
|
|
4872
|
+
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] && (ba[v] || !Ei[v]) : !!(ut === "application/xhtml+xml" && zn[h.namespaceURI]) : !1;
|
|
4873
4873
|
}, ie = function(h) {
|
|
4874
4874
|
pt(e.removed, {
|
|
4875
4875
|
element: h
|
|
@@ -4925,7 +4925,7 @@ function Yo() {
|
|
|
4925
4925
|
}
|
|
4926
4926
|
}
|
|
4927
4927
|
const U = f.body || f.documentElement;
|
|
4928
|
-
return h && v && U.insertBefore(t.createTextNode(v), U.childNodes[0] || null), We === he ?
|
|
4928
|
+
return h && v && U.insertBefore(t.createTextNode(v), U.childNodes[0] || null), We === he ? ua.call(f, Re ? "html" : "body")[0] : Re ? f.documentElement : U;
|
|
4929
4929
|
}, Ti = function(h) {
|
|
4930
4930
|
return Te.call(
|
|
4931
4931
|
h.ownerDocument || h,
|
|
@@ -4969,16 +4969,16 @@ function Yo() {
|
|
|
4969
4969
|
}
|
|
4970
4970
|
return ie(h), !0;
|
|
4971
4971
|
}
|
|
4972
|
-
return h instanceof l && !
|
|
4972
|
+
return h instanceof l && !wa(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, Rn, Ln], (A) => {
|
|
4973
4973
|
f = ft(f, A, " ");
|
|
4974
4974
|
}), h.textContent !== f && (pt(e.removed, {
|
|
4975
4975
|
element: h.cloneNode()
|
|
4976
4976
|
}), h.textContent = f)), de(B.afterSanitizeElements, h, null), !1);
|
|
4977
4977
|
}, Oi = function(h, f, v) {
|
|
4978
|
-
if (yi && (f === "id" || f === "name") && (v in t || v in
|
|
4978
|
+
if (yi && (f === "id" || f === "name") && (v in t || v in xa))
|
|
4979
4979
|
return !1;
|
|
4980
|
-
if (!(Pn && !On[f] && H(
|
|
4981
|
-
if (!(mi && H(
|
|
4980
|
+
if (!(Pn && !On[f] && H(da, f))) {
|
|
4981
|
+
if (!(mi && H(pa, f))) {
|
|
4982
4982
|
if (!D[f] || On[f]) {
|
|
4983
4983
|
if (
|
|
4984
4984
|
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
@@ -4990,8 +4990,8 @@ function Yo() {
|
|
|
4990
4990
|
) return !1;
|
|
4991
4991
|
} else if (!Dn[f]) {
|
|
4992
4992
|
if (!H(pi, ft(v, di, ""))) {
|
|
4993
|
-
if (!((f === "src" || f === "xlink:href" || f === "href") && h !== "script" &&
|
|
4994
|
-
if (!(vi && !H(
|
|
4993
|
+
if (!((f === "src" || f === "xlink:href" || f === "href") && h !== "script" && Mu(v, "data:") === 0 && wi[h])) {
|
|
4994
|
+
if (!(vi && !H(fa, ft(v, di, "")))) {
|
|
4995
4995
|
if (v)
|
|
4996
4996
|
return !1;
|
|
4997
4997
|
}
|
|
@@ -5002,7 +5002,7 @@ function Yo() {
|
|
|
5002
5002
|
}
|
|
5003
5003
|
return !0;
|
|
5004
5004
|
}, Pi = function(h) {
|
|
5005
|
-
return h !== "annotation-xml" && _r(h,
|
|
5005
|
+
return h !== "annotation-xml" && _r(h, ga);
|
|
5006
5006
|
}, Ii = function(h) {
|
|
5007
5007
|
de(B.beforeSanitizeAttributes, h, null);
|
|
5008
5008
|
const {
|
|
@@ -5024,8 +5024,8 @@ function Yo() {
|
|
|
5024
5024
|
namespaceURI: Y,
|
|
5025
5025
|
value: pe
|
|
5026
5026
|
} = U, ht = P(R), Fn = pe;
|
|
5027
|
-
let z = R === "value" ? Fn :
|
|
5028
|
-
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(R, h), z =
|
|
5027
|
+
let z = R === "value" ? Fn : Nu(Fn);
|
|
5028
|
+
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(R, h), z = ma + z), zt && H(/((--!?|])>)|<\/(style|title)/i, z)) {
|
|
5029
5029
|
Ze(R, h);
|
|
5030
5030
|
continue;
|
|
5031
5031
|
}
|
|
@@ -5066,7 +5066,7 @@ function Yo() {
|
|
|
5066
5066
|
}
|
|
5067
5067
|
}
|
|
5068
5068
|
de(B.afterSanitizeAttributes, h, null);
|
|
5069
|
-
},
|
|
5069
|
+
}, ka = function b(h) {
|
|
5070
5070
|
let f = null;
|
|
5071
5071
|
const v = Ti(h);
|
|
5072
5072
|
for (de(B.beforeSanitizeShadowDOM, h, null); f = v.nextNode(); )
|
|
@@ -5101,19 +5101,19 @@ function Yo() {
|
|
|
5101
5101
|
f && Mn && ie(f.firstChild);
|
|
5102
5102
|
const R = Ti(ct ? b : f);
|
|
5103
5103
|
for (; A = R.nextNode(); )
|
|
5104
|
-
Li(A), Ii(A), A.content instanceof r &&
|
|
5104
|
+
Li(A), Ii(A), A.content instanceof r && ka(A.content);
|
|
5105
5105
|
if (ct)
|
|
5106
5106
|
return b;
|
|
5107
5107
|
if (Fe) {
|
|
5108
5108
|
if (Bt)
|
|
5109
|
-
for (U =
|
|
5109
|
+
for (U = ca.call(f.ownerDocument); f.firstChild; )
|
|
5110
5110
|
U.appendChild(f.firstChild);
|
|
5111
5111
|
else
|
|
5112
5112
|
U = f;
|
|
5113
|
-
return (D.shadowroot || D.shadowrootmode) && (U =
|
|
5113
|
+
return (D.shadowroot || D.shadowrootmode) && (U = ha.call(s, U, !0)), U;
|
|
5114
5114
|
}
|
|
5115
5115
|
let Y = Re ? f.outerHTML : f.innerHTML;
|
|
5116
|
-
return Re && O["!doctype"] && f.ownerDocument && f.ownerDocument.doctype && f.ownerDocument.doctype.name && H(
|
|
5116
|
+
return Re && O["!doctype"] && f.ownerDocument && f.ownerDocument.doctype && f.ownerDocument.doctype.name && H(Go, f.ownerDocument.doctype.name) && (Y = "<!DOCTYPE " + f.ownerDocument.doctype.name + `>
|
|
5117
5117
|
` + Y), He && Yt([Tn, Rn, Ln], (pe) => {
|
|
5118
5118
|
Y = ft(Y, pe, " ");
|
|
5119
5119
|
}), L && Ht ? L.createHTML(Y) : Y;
|
|
@@ -5130,8 +5130,8 @@ function Yo() {
|
|
|
5130
5130
|
typeof h == "function" && pt(B[b], h);
|
|
5131
5131
|
}, e.removeHook = function(b, h) {
|
|
5132
5132
|
if (h !== void 0) {
|
|
5133
|
-
const f =
|
|
5134
|
-
return f === -1 ? void 0 :
|
|
5133
|
+
const f = Pu(B[b], h);
|
|
5134
|
+
return f === -1 ? void 0 : Iu(B[b], f, 1)[0];
|
|
5135
5135
|
}
|
|
5136
5136
|
return Sr(B[b]);
|
|
5137
5137
|
}, e.removeHooks = function(b) {
|
|
@@ -5140,15 +5140,15 @@ function Yo() {
|
|
|
5140
5140
|
B = Lr();
|
|
5141
5141
|
}, e;
|
|
5142
5142
|
}
|
|
5143
|
-
var
|
|
5143
|
+
var Yo = Zo(), Vu = Object.defineProperty, Qu = (n, e, t, s) => {
|
|
5144
5144
|
for (var i = void 0, r = n.length - 1, o; r >= 0; r--)
|
|
5145
5145
|
(o = n[r]) && (i = o(e, t, i) || i);
|
|
5146
|
-
return i &&
|
|
5146
|
+
return i && Vu(e, t, i), i;
|
|
5147
5147
|
};
|
|
5148
5148
|
const li = class li extends M {
|
|
5149
5149
|
render() {
|
|
5150
5150
|
return w`<div class="message-type-html">
|
|
5151
|
-
${
|
|
5151
|
+
${Tu(Yo.sanitize(this.message.content))}
|
|
5152
5152
|
</div>`;
|
|
5153
5153
|
}
|
|
5154
5154
|
};
|
|
@@ -5190,7 +5190,7 @@ li.styles = [
|
|
|
5190
5190
|
`
|
|
5191
5191
|
];
|
|
5192
5192
|
let fn = li;
|
|
5193
|
-
|
|
5193
|
+
Qu([
|
|
5194
5194
|
C({ attribute: !1 })
|
|
5195
5195
|
], fn.prototype, "message");
|
|
5196
5196
|
function js() {
|
|
@@ -5208,7 +5208,7 @@ function js() {
|
|
|
5208
5208
|
};
|
|
5209
5209
|
}
|
|
5210
5210
|
var Be = js();
|
|
5211
|
-
function
|
|
5211
|
+
function Ko(n) {
|
|
5212
5212
|
Be = n;
|
|
5213
5213
|
}
|
|
5214
5214
|
var kt = { exec: () => null };
|
|
@@ -5280,31 +5280,31 @@ var j = {
|
|
|
5280
5280
|
fencesBeginRegex: (n) => new RegExp(`^ {0,${Math.min(3, n - 1)}}(?:\`\`\`|~~~)`),
|
|
5281
5281
|
headingBeginRegex: (n) => new RegExp(`^ {0,${Math.min(3, n - 1)}}#`),
|
|
5282
5282
|
htmlBeginRegex: (n) => new RegExp(`^ {0,${Math.min(3, n - 1)}}<(?:[a-z].*>|!--)`, "i")
|
|
5283
|
-
},
|
|
5283
|
+
}, Ju = /^(?:[ \t]*(?:\n|$))+/, eh = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, th = /^ {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+|$)/, nh = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, qs = /(?:[*+-]|\d{1,9}[.)])/, Xo = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, Vo = S(Xo).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(), sh = S(Xo).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]+)*)/, ih = /^[^\n]+/, Gs = /(?!\s*\])(?:\\.|[^\[\]\\])+/, rh = S(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", Gs).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), oh = 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]*?(?:-->|$))/, ah = S(
|
|
5284
5284
|
"^ {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|$))",
|
|
5285
5285
|
"i"
|
|
5286
|
-
).replace("comment", Zs).replace("tag", An).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),
|
|
5287
|
-
blockquote:
|
|
5288
|
-
code:
|
|
5289
|
-
def:
|
|
5290
|
-
fences:
|
|
5291
|
-
heading:
|
|
5286
|
+
).replace("comment", Zs).replace("tag", An).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), Qo = 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(), lh = S(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", Qo).getRegex(), Ys = {
|
|
5287
|
+
blockquote: lh,
|
|
5288
|
+
code: eh,
|
|
5289
|
+
def: rh,
|
|
5290
|
+
fences: th,
|
|
5291
|
+
heading: nh,
|
|
5292
5292
|
hr: Ut,
|
|
5293
|
-
html:
|
|
5294
|
-
lheading:
|
|
5295
|
-
list:
|
|
5296
|
-
newline:
|
|
5297
|
-
paragraph:
|
|
5293
|
+
html: ah,
|
|
5294
|
+
lheading: Vo,
|
|
5295
|
+
list: oh,
|
|
5296
|
+
newline: Ju,
|
|
5297
|
+
paragraph: Qo,
|
|
5298
5298
|
table: kt,
|
|
5299
|
-
text:
|
|
5299
|
+
text: ih
|
|
5300
5300
|
}, Or = S(
|
|
5301
5301
|
"^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"
|
|
5302
|
-
).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(),
|
|
5302
|
+
).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(), ch = {
|
|
5303
5303
|
...Ys,
|
|
5304
|
-
lheading:
|
|
5304
|
+
lheading: sh,
|
|
5305
5305
|
table: Or,
|
|
5306
5306
|
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()
|
|
5307
|
-
},
|
|
5307
|
+
}, uh = {
|
|
5308
5308
|
...Ys,
|
|
5309
5309
|
html: S(
|
|
5310
5310
|
`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`
|
|
@@ -5315,65 +5315,65 @@ var j = {
|
|
|
5315
5315
|
// fences not supported
|
|
5316
5316
|
lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
|
|
5317
5317
|
paragraph: S(Ws).replace("hr", Ut).replace("heading", ` *#{1,6} *[^
|
|
5318
|
-
]`).replace("lheading",
|
|
5319
|
-
},
|
|
5318
|
+
]`).replace("lheading", Vo).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
|
|
5319
|
+
}, hh = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, dh = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, Jo = /^( {2,}|\\)\n(?!\s*$)/, ph = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, Cn = /[\p{P}\p{S}]/u, Ks = /[\s\p{P}\p{S}]/u, ea = /[^\s\p{P}\p{S}]/u, fh = S(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, Ks).getRegex(), ta = /(?!~)[\p{P}\p{S}]/u, gh = /(?!~)[\s\p{P}\p{S}]/u, mh = /(?:[^\s\p{P}\p{S}]|~)/u, vh = /\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g, na = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, bh = S(na, "u").replace(/punct/g, Cn).getRegex(), yh = S(na, "u").replace(/punct/g, ta).getRegex(), sa = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", $h = S(sa, "gu").replace(/notPunctSpace/g, ea).replace(/punctSpace/g, Ks).replace(/punct/g, Cn).getRegex(), xh = S(sa, "gu").replace(/notPunctSpace/g, mh).replace(/punctSpace/g, gh).replace(/punct/g, ta).getRegex(), wh = S(
|
|
5320
5320
|
"^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)",
|
|
5321
5321
|
"gu"
|
|
5322
|
-
).replace(/notPunctSpace/g,
|
|
5322
|
+
).replace(/notPunctSpace/g, ea).replace(/punctSpace/g, Ks).replace(/punct/g, Cn).getRegex(), kh = S(/\\(punct)/, "gu").replace(/punct/g, Cn).getRegex(), Sh = 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(), _h = S(Zs).replace("(?:-->|$)", "-->").getRegex(), Eh = S(
|
|
5323
5323
|
"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>"
|
|
5324
|
-
).replace("comment",
|
|
5324
|
+
).replace("comment", _h).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), gn = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, Ah = S(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label", gn).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), ia = S(/^!?\[(label)\]\[(ref)\]/).replace("label", gn).replace("ref", Gs).getRegex(), ra = S(/^!?\[(ref)\](?:\[\])?/).replace("ref", Gs).getRegex(), Ch = S("reflink|nolink(?!\\()", "g").replace("reflink", ia).replace("nolink", ra).getRegex(), Xs = {
|
|
5325
5325
|
_backpedal: kt,
|
|
5326
5326
|
// only used for GFM url
|
|
5327
|
-
anyPunctuation:
|
|
5328
|
-
autolink:
|
|
5329
|
-
blockSkip:
|
|
5330
|
-
br:
|
|
5331
|
-
code:
|
|
5327
|
+
anyPunctuation: kh,
|
|
5328
|
+
autolink: Sh,
|
|
5329
|
+
blockSkip: vh,
|
|
5330
|
+
br: Jo,
|
|
5331
|
+
code: dh,
|
|
5332
5332
|
del: kt,
|
|
5333
|
-
emStrongLDelim:
|
|
5334
|
-
emStrongRDelimAst:
|
|
5335
|
-
emStrongRDelimUnd:
|
|
5336
|
-
escape:
|
|
5337
|
-
link:
|
|
5338
|
-
nolink:
|
|
5339
|
-
punctuation:
|
|
5340
|
-
reflink:
|
|
5341
|
-
reflinkSearch:
|
|
5342
|
-
tag:
|
|
5343
|
-
text:
|
|
5333
|
+
emStrongLDelim: bh,
|
|
5334
|
+
emStrongRDelimAst: $h,
|
|
5335
|
+
emStrongRDelimUnd: wh,
|
|
5336
|
+
escape: hh,
|
|
5337
|
+
link: Ah,
|
|
5338
|
+
nolink: ra,
|
|
5339
|
+
punctuation: fh,
|
|
5340
|
+
reflink: ia,
|
|
5341
|
+
reflinkSearch: Ch,
|
|
5342
|
+
tag: Eh,
|
|
5343
|
+
text: ph,
|
|
5344
5344
|
url: kt
|
|
5345
|
-
},
|
|
5345
|
+
}, Th = {
|
|
5346
5346
|
...Xs,
|
|
5347
5347
|
link: S(/^!?\[(label)\]\((.*?)\)/).replace("label", gn).getRegex(),
|
|
5348
5348
|
reflink: S(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", gn).getRegex()
|
|
5349
5349
|
}, xs = {
|
|
5350
5350
|
...Xs,
|
|
5351
|
-
emStrongRDelimAst:
|
|
5352
|
-
emStrongLDelim:
|
|
5351
|
+
emStrongRDelimAst: xh,
|
|
5352
|
+
emStrongLDelim: yh,
|
|
5353
5353
|
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(),
|
|
5354
5354
|
_backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,
|
|
5355
5355
|
del: /^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,
|
|
5356
5356
|
text: /^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/
|
|
5357
|
-
},
|
|
5357
|
+
}, Rh = {
|
|
5358
5358
|
...xs,
|
|
5359
|
-
br: S(
|
|
5359
|
+
br: S(Jo).replace("{2,}", "*").getRegex(),
|
|
5360
5360
|
text: S(xs.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
|
|
5361
5361
|
}, Xt = {
|
|
5362
5362
|
normal: Ys,
|
|
5363
|
-
gfm:
|
|
5364
|
-
pedantic:
|
|
5363
|
+
gfm: ch,
|
|
5364
|
+
pedantic: uh
|
|
5365
5365
|
}, bt = {
|
|
5366
5366
|
normal: Xs,
|
|
5367
5367
|
gfm: xs,
|
|
5368
|
-
breaks:
|
|
5369
|
-
pedantic:
|
|
5370
|
-
},
|
|
5368
|
+
breaks: Rh,
|
|
5369
|
+
pedantic: Th
|
|
5370
|
+
}, Lh = {
|
|
5371
5371
|
"&": "&",
|
|
5372
5372
|
"<": "<",
|
|
5373
5373
|
">": ">",
|
|
5374
5374
|
'"': """,
|
|
5375
5375
|
"'": "'"
|
|
5376
|
-
}, Pr = (n) =>
|
|
5376
|
+
}, Pr = (n) => Lh[n];
|
|
5377
5377
|
function re(n, e) {
|
|
5378
5378
|
if (e) {
|
|
5379
5379
|
if (j.escapeTest.test(n))
|
|
@@ -5416,7 +5416,7 @@ function yt(n, e, t) {
|
|
|
5416
5416
|
i++;
|
|
5417
5417
|
return n.slice(0, s - i);
|
|
5418
5418
|
}
|
|
5419
|
-
function
|
|
5419
|
+
function Oh(n, e) {
|
|
5420
5420
|
if (n.indexOf(e[1]) === -1)
|
|
5421
5421
|
return -1;
|
|
5422
5422
|
let t = 0;
|
|
@@ -5442,7 +5442,7 @@ function Nr(n, e, t, s, i) {
|
|
|
5442
5442
|
};
|
|
5443
5443
|
return s.state.inLink = !1, l;
|
|
5444
5444
|
}
|
|
5445
|
-
function
|
|
5445
|
+
function Ph(n, e, t) {
|
|
5446
5446
|
const s = n.match(t.other.indentCodeCompensation);
|
|
5447
5447
|
if (s === null)
|
|
5448
5448
|
return e;
|
|
@@ -5490,7 +5490,7 @@ var mn = class {
|
|
|
5490
5490
|
fences(n) {
|
|
5491
5491
|
const e = this.rules.block.fences.exec(n);
|
|
5492
5492
|
if (e) {
|
|
5493
|
-
const t = e[0], s =
|
|
5493
|
+
const t = e[0], s = Ph(t, e[3] || "", this.rules);
|
|
5494
5494
|
return {
|
|
5495
5495
|
type: "code",
|
|
5496
5496
|
raw: t,
|
|
@@ -5776,7 +5776,7 @@ ${u}` : u;
|
|
|
5776
5776
|
if ((t.length - r.length) % 2 === 0)
|
|
5777
5777
|
return;
|
|
5778
5778
|
} else {
|
|
5779
|
-
const r =
|
|
5779
|
+
const r = Oh(e[2], "()");
|
|
5780
5780
|
if (r === -2)
|
|
5781
5781
|
return;
|
|
5782
5782
|
if (r > -1) {
|
|
@@ -6549,7 +6549,7 @@ ${n}</tr>
|
|
|
6549
6549
|
"preprocess",
|
|
6550
6550
|
"postprocess",
|
|
6551
6551
|
"processAllTokens"
|
|
6552
|
-
])), ns),
|
|
6552
|
+
])), ns), Ih = class {
|
|
6553
6553
|
constructor(...n) {
|
|
6554
6554
|
_(this, "defaults", js());
|
|
6555
6555
|
_(this, "options", this.setOptions);
|
|
@@ -6721,17 +6721,17 @@ Please report this to https://github.com/markedjs/marked.`, n) {
|
|
|
6721
6721
|
throw t;
|
|
6722
6722
|
};
|
|
6723
6723
|
}
|
|
6724
|
-
}, ze = new
|
|
6724
|
+
}, ze = new Ih();
|
|
6725
6725
|
function k(n, e) {
|
|
6726
6726
|
return ze.parse(n, e);
|
|
6727
6727
|
}
|
|
6728
6728
|
k.options = k.setOptions = function(n) {
|
|
6729
|
-
return ze.setOptions(n), k.defaults = ze.defaults,
|
|
6729
|
+
return ze.setOptions(n), k.defaults = ze.defaults, Ko(k.defaults), k;
|
|
6730
6730
|
};
|
|
6731
6731
|
k.getDefaults = js;
|
|
6732
6732
|
k.defaults = Be;
|
|
6733
6733
|
k.use = function(...n) {
|
|
6734
|
-
return ze.use(...n), k.defaults = ze.defaults,
|
|
6734
|
+
return ze.use(...n), k.defaults = ze.defaults, Ko(k.defaults), k;
|
|
6735
6735
|
};
|
|
6736
6736
|
k.walkTokens = function(n, e) {
|
|
6737
6737
|
return ze.walkTokens(n, e);
|
|
@@ -6753,16 +6753,16 @@ k.walkTokens;
|
|
|
6753
6753
|
k.parseInline;
|
|
6754
6754
|
ve.parse;
|
|
6755
6755
|
me.lex;
|
|
6756
|
-
var
|
|
6756
|
+
var Mh = Object.defineProperty, oa = (n, e, t, s) => {
|
|
6757
6757
|
for (var i = void 0, r = n.length - 1, o; r >= 0; r--)
|
|
6758
6758
|
(o = n[r]) && (i = o(e, t, i) || i);
|
|
6759
|
-
return i &&
|
|
6759
|
+
return i && Mh(e, t, i), i;
|
|
6760
6760
|
};
|
|
6761
|
-
const
|
|
6762
|
-
|
|
6761
|
+
const aa = new Rt();
|
|
6762
|
+
aa.link = function({ href: n, title: e, text: t }) {
|
|
6763
6763
|
return e ?? (e = t), `<a target="_blank" href="${n}" title="${e}">${t}</a>`;
|
|
6764
6764
|
};
|
|
6765
|
-
k.use({ renderer:
|
|
6765
|
+
k.use({ renderer: aa });
|
|
6766
6766
|
const ci = class ci extends M {
|
|
6767
6767
|
constructor() {
|
|
6768
6768
|
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);
|
|
@@ -6812,7 +6812,7 @@ const ci = class ci extends M {
|
|
|
6812
6812
|
if (this.buffer += e, this.includesImage(this.buffer))
|
|
6813
6813
|
(o = this.contentRef.value) == null || o.appendChild(document.createElement("div")), this.buffer = "";
|
|
6814
6814
|
else if (this.buffer.includes("![")) return;
|
|
6815
|
-
const t = k.parse(this.buffer), s = cs(t), i =
|
|
6815
|
+
const t = k.parse(this.buffer), s = cs(t), i = Yo.sanitize(s, {
|
|
6816
6816
|
ADD_ATTR: ["target"]
|
|
6817
6817
|
}), r = (a = this.contentRef.value) == null ? void 0 : a.querySelector(
|
|
6818
6818
|
"div:last-of-type"
|
|
@@ -6881,16 +6881,16 @@ ci.styles = [
|
|
|
6881
6881
|
`
|
|
6882
6882
|
];
|
|
6883
6883
|
let Lt = ci;
|
|
6884
|
-
|
|
6884
|
+
oa([
|
|
6885
6885
|
C({ attribute: !1 })
|
|
6886
6886
|
], Lt.prototype, "message");
|
|
6887
|
-
|
|
6887
|
+
oa([
|
|
6888
6888
|
N()
|
|
6889
6889
|
], Lt.prototype, "showLightbox");
|
|
6890
|
-
var
|
|
6890
|
+
var Nh = Object.defineProperty, Dh = (n, e, t, s) => {
|
|
6891
6891
|
for (var i = void 0, r = n.length - 1, o; r >= 0; r--)
|
|
6892
6892
|
(o = n[r]) && (i = o(e, t, i) || i);
|
|
6893
|
-
return i &&
|
|
6893
|
+
return i && Nh(e, t, i), i;
|
|
6894
6894
|
};
|
|
6895
6895
|
const ui = class ui extends M {
|
|
6896
6896
|
constructor() {
|
|
@@ -6929,7 +6929,7 @@ const ui = class ui extends M {
|
|
|
6929
6929
|
@keydown=${this.handleKeyDown}
|
|
6930
6930
|
>
|
|
6931
6931
|
<button class="close" @click=${this.closeLightbox}>
|
|
6932
|
-
<telia-icon svg=${
|
|
6932
|
+
<telia-icon svg=${Xl.svg} size="lg"></telia-icon>
|
|
6933
6933
|
</button>
|
|
6934
6934
|
<img src="${this.imageUrl}" alt="${this.altText ?? ""}" />
|
|
6935
6935
|
</div> `;
|
|
@@ -6977,13 +6977,13 @@ ui.styles = [
|
|
|
6977
6977
|
`
|
|
6978
6978
|
];
|
|
6979
6979
|
let vn = ui;
|
|
6980
|
-
|
|
6980
|
+
Dh([
|
|
6981
6981
|
C({ attribute: !0 })
|
|
6982
6982
|
], vn.prototype, "imageUrl");
|
|
6983
|
-
var
|
|
6983
|
+
var Uh = Object.defineProperty, se = (n, e, t, s) => {
|
|
6984
6984
|
for (var i = void 0, r = n.length - 1, o; r >= 0; r--)
|
|
6985
6985
|
(o = n[r]) && (i = o(e, t, i) || i);
|
|
6986
|
-
return i &&
|
|
6986
|
+
return i && Uh(e, t, i), i;
|
|
6987
6987
|
};
|
|
6988
6988
|
customElements.get("conversation-entry") || customElements.define("conversation-entry", Ct);
|
|
6989
6989
|
customElements.get("ace-conversation-feed") || customElements.define("ace-conversation-feed", Tt);
|
|
@@ -6992,9 +6992,9 @@ customElements.get("ace-typing-state") || customElements.define("ace-typing-stat
|
|
|
6992
6992
|
customElements.get("message-type-html") || customElements.define("message-type-html", fn);
|
|
6993
6993
|
customElements.get("message-type-markdown") || customElements.define("message-type-markdown", Lt);
|
|
6994
6994
|
customElements.get("ace-lightbox") || customElements.define("ace-lightbox", vn);
|
|
6995
|
-
const Dr =
|
|
6995
|
+
const Dr = No(M), hi = class hi extends Dr {
|
|
6996
6996
|
constructor() {
|
|
6997
|
-
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.isKeyboardNavigation = !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
|
|
6997
|
+
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.isKeyboardNavigation = !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 xu(this), this.messageMaxLength = 1e3, this.messageMaxLengthLabel = "Maximum character limit reached", this.skipToLatestMessageLabel = "Skip to latest message", this.conversationState$ = new F("waiting"), this.stateMachine = new ku(this.conversationState$, this), this.provider$ = this.stateMachine.session().pipe(
|
|
6998
6998
|
Je((e) => e ? e == null ? void 0 : e.provider$ : os(null))
|
|
6999
6999
|
), this.userTyping$ = new I();
|
|
7000
7000
|
}
|
|
@@ -7011,7 +7011,7 @@ const Dr = Do(M), hi = class hi extends Dr {
|
|
|
7011
7011
|
t && t.widgetActive$.pipe(as(t.componentIsDestroyed$)).subscribe((s) => {
|
|
7012
7012
|
const i = this.conversationContentRef.value;
|
|
7013
7013
|
i && (s ? i.scrollTop = this.chatCurrentScrollPosition : this.chatCurrentScrollPosition = i.scrollTop);
|
|
7014
|
-
}), this.stateSubscription =
|
|
7014
|
+
}), this.stateSubscription = ul([
|
|
7015
7015
|
this.stateMachine.entries(),
|
|
7016
7016
|
this.stateMachine.isTyping()
|
|
7017
7017
|
]).subscribe(([s, i]) => {
|
|
@@ -7167,7 +7167,7 @@ const Dr = Do(M), hi = class hi extends Dr {
|
|
|
7167
7167
|
).pop().focus();
|
|
7168
7168
|
}
|
|
7169
7169
|
setAuthenticationBannerStatus(e) {
|
|
7170
|
-
this.showAuthBanner = e !== null, this.authenticated = e ===
|
|
7170
|
+
this.showAuthBanner = e !== null, this.authenticated = e === Do.Authenticated;
|
|
7171
7171
|
}
|
|
7172
7172
|
handover(e, t) {
|
|
7173
7173
|
this.enableInput(), this.setToastMessage(null);
|
|
@@ -7191,7 +7191,7 @@ const Dr = Do(M), hi = class hi extends Dr {
|
|
|
7191
7191
|
${this.authenticated ? w`<telia-icon
|
|
7192
7192
|
class="auth-banner__icon"
|
|
7193
7193
|
size="sm"
|
|
7194
|
-
svg=${
|
|
7194
|
+
svg=${go.svg}
|
|
7195
7195
|
></telia-icon>` : $}
|
|
7196
7196
|
<span>${this.getAuthBannerMessage()}</span>
|
|
7197
7197
|
</div>` : $}
|
|
@@ -7210,7 +7210,7 @@ const Dr = Do(M), hi = class hi extends Dr {
|
|
|
7210
7210
|
class="overlay-button"
|
|
7211
7211
|
@click=${() => this.chatOverlayActive = !1}
|
|
7212
7212
|
>
|
|
7213
|
-
<telia-icon svg=${
|
|
7213
|
+
<telia-icon svg=${Kl.svg}></telia-icon>
|
|
7214
7214
|
</button>
|
|
7215
7215
|
</div>` : $}
|
|
7216
7216
|
<div
|
|
@@ -7269,7 +7269,7 @@ const Dr = Do(M), hi = class hi extends Dr {
|
|
|
7269
7269
|
data-testid="send-message-button"
|
|
7270
7270
|
title=${e.getOrFallback("conversation.send-alt", "Send")}
|
|
7271
7271
|
>
|
|
7272
|
-
<telia-icon svg=${
|
|
7272
|
+
<telia-icon svg=${Ql.svg}></telia-icon>
|
|
7273
7273
|
</button>
|
|
7274
7274
|
<span class="counter" ${ae(this.counterRef)}>
|
|
7275
7275
|
${this.textAreaLength} / ${this.messageMaxLength}</span
|
|
@@ -7666,20 +7666,20 @@ se([
|
|
|
7666
7666
|
se([
|
|
7667
7667
|
N()
|
|
7668
7668
|
], V.prototype, "authenticated");
|
|
7669
|
-
const
|
|
7669
|
+
const zh = (n) => {
|
|
7670
7670
|
var e, t;
|
|
7671
7671
|
return !!((e = n == null ? void 0 : n.outputPayload) != null && e.textOutputContent) && ((t = n == null ? void 0 : n.outputPayload) == null ? void 0 : t.isFinal);
|
|
7672
|
-
},
|
|
7672
|
+
}, Bh = (n) => {
|
|
7673
7673
|
var e;
|
|
7674
7674
|
return !!((e = n == null ? void 0 : n.outputPayload) != null && e.textStreamOutputContent);
|
|
7675
|
-
},
|
|
7675
|
+
}, Hh = (n) => {
|
|
7676
7676
|
var e;
|
|
7677
7677
|
return !!((e = n == null ? void 0 : n.initializeResponsePayload) != null && e.greetingMessage);
|
|
7678
|
-
},
|
|
7678
|
+
}, Fh = (n) => !!(n != null && n.errorPayload), Ur = (n) => {
|
|
7679
7679
|
var e, t;
|
|
7680
7680
|
return !!((t = (e = n.inputPayload) == null ? void 0 : e.textInputContent) != null && t.text);
|
|
7681
|
-
},
|
|
7682
|
-
class
|
|
7681
|
+
}, jh = (n) => (n == null ? void 0 : n.type) === "handover";
|
|
7682
|
+
class qh {
|
|
7683
7683
|
constructor(e, t, s) {
|
|
7684
7684
|
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(
|
|
7685
7685
|
(i) => {
|
|
@@ -7794,11 +7794,11 @@ class zr {
|
|
|
7794
7794
|
messages: [...t.messages, e],
|
|
7795
7795
|
dialogId: t.dialogId
|
|
7796
7796
|
});
|
|
7797
|
-
}),
|
|
7797
|
+
}), Fh(e)) {
|
|
7798
7798
|
this.provider.setShouldRestart(!0), console.debug("Received error from socket connection:", e);
|
|
7799
7799
|
return;
|
|
7800
7800
|
}
|
|
7801
|
-
if (
|
|
7801
|
+
if (jh(e)) {
|
|
7802
7802
|
this.systemEvents$.next({
|
|
7803
7803
|
event: e.type,
|
|
7804
7804
|
text: "",
|
|
@@ -7812,7 +7812,7 @@ class zr {
|
|
|
7812
7812
|
});
|
|
7813
7813
|
return;
|
|
7814
7814
|
}
|
|
7815
|
-
|
|
7815
|
+
Hh(e) && e.initializeResponsePayload.greetingMessage.length > 0 ? (this.agent$.next({
|
|
7816
7816
|
name: e.initializeResponsePayload.agentName || ""
|
|
7817
7817
|
}), this.dialogId = e.initializeResponsePayload.dialogId, this.store$.pipe(Ie(1)).subscribe((t) => {
|
|
7818
7818
|
this.store$.next({
|
|
@@ -7830,12 +7830,12 @@ class zr {
|
|
|
7830
7830
|
text: e.inputPayload.textInputContent.text,
|
|
7831
7831
|
type: "text",
|
|
7832
7832
|
sender: "user"
|
|
7833
|
-
}) :
|
|
7833
|
+
}) : Bh(e) ? (e.outputPayload.isFinal && this.component.enableSubmit(), this.messageSubject$.next({
|
|
7834
7834
|
text: e.outputPayload.textStreamOutputContent.textPart || "",
|
|
7835
7835
|
isComplete: !!e.outputPayload.isFinal,
|
|
7836
7836
|
sequenceNumber: e.sequenceNumber,
|
|
7837
7837
|
type: "stream"
|
|
7838
|
-
})) :
|
|
7838
|
+
})) : zh(e) && (this.component.enableSubmit(), this.messageSubject$.next({
|
|
7839
7839
|
text: e.outputPayload.textOutputContent.text,
|
|
7840
7840
|
isComplete: !0,
|
|
7841
7841
|
sequenceNumber: e.sequenceNumber,
|
|
@@ -7876,7 +7876,7 @@ class zr {
|
|
|
7876
7876
|
this.restartSubscription$ && this.restartSubscription$.unsubscribe();
|
|
7877
7877
|
}
|
|
7878
7878
|
}
|
|
7879
|
-
var Wh = Object.defineProperty, Gh = Object.getOwnPropertyDescriptor,
|
|
7879
|
+
var Wh = Object.defineProperty, Gh = Object.getOwnPropertyDescriptor, la = (n, e, t, s) => {
|
|
7880
7880
|
for (var i = s > 1 ? void 0 : s ? Gh(e, t) : e, r = n.length - 1, o; r >= 0; r--)
|
|
7881
7881
|
(o = n[r]) && (i = (s ? o(e, t, i) : o(i)) || i);
|
|
7882
7882
|
return s && i && Wh(e, t, i), i;
|
|
@@ -7963,16 +7963,16 @@ bn.styles = [
|
|
|
7963
7963
|
}
|
|
7964
7964
|
`
|
|
7965
7965
|
];
|
|
7966
|
-
|
|
7967
|
-
|
|
7966
|
+
la([
|
|
7967
|
+
zo({ context: Hs }),
|
|
7968
7968
|
C({ attribute: !1 })
|
|
7969
7969
|
], bn.prototype, "application", 2);
|
|
7970
|
-
bn =
|
|
7971
|
-
|
|
7970
|
+
bn = la([
|
|
7971
|
+
Vc("ace-restart-dialog")
|
|
7972
7972
|
], bn);
|
|
7973
|
-
class Qs extends
|
|
7973
|
+
class Qs extends Al {
|
|
7974
7974
|
constructor(e, t) {
|
|
7975
|
-
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(
|
|
7975
|
+
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(), this.connection.store$.subscribe((s) => {
|
|
7976
7976
|
s = {
|
|
7977
7977
|
...s,
|
|
7978
7978
|
messages: s.messages.filter((i) => !i.reconnectResponsePayload)
|
|
@@ -8046,7 +8046,7 @@ class Qs extends Cl {
|
|
|
8046
8046
|
}
|
|
8047
8047
|
]
|
|
8048
8048
|
), this.printEntry(this.restartDialogEntry), this.restartDialogEntry.actions$.pipe(
|
|
8049
|
-
|
|
8049
|
+
xl((e) => e.key === "restart-session"),
|
|
8050
8050
|
Ie(1)
|
|
8051
8051
|
).subscribe(async () => {
|
|
8052
8052
|
this.restartDialogEntry && this.restartDialogEntry.remove(), this.restartConversation(), this.component.clearMessages();
|
|
@@ -8067,32 +8067,27 @@ class Qs extends Cl {
|
|
|
8067
8067
|
updateEntry(e, t) {
|
|
8068
8068
|
e.update([["markdown", { content: t }]]);
|
|
8069
8069
|
}
|
|
8070
|
-
createConnection(
|
|
8071
|
-
var
|
|
8070
|
+
createConnection() {
|
|
8071
|
+
var i;
|
|
8072
8072
|
this.connection && this.connection.dispose();
|
|
8073
|
-
const
|
|
8073
|
+
const e = (i = this.component.application.settings.agentConfig) == null ? void 0 : i.virtual, t = e == null ? void 0 : e.extension;
|
|
8074
8074
|
if (!t)
|
|
8075
8075
|
throw new Error(
|
|
8076
|
-
"Extension is required, config misconfigured. See
|
|
8076
|
+
"Extension is required, config misconfigured. See agentConfig.virtual.extension"
|
|
8077
8077
|
);
|
|
8078
|
-
const s =
|
|
8079
|
-
|
|
8080
|
-
|
|
8081
|
-
|
|
8082
|
-
|
|
8083
|
-
|
|
8084
|
-
this.component,
|
|
8085
|
-
this
|
|
8086
|
-
) : (console.warn(
|
|
8087
|
-
"ConversationalAgentProvider has not defined an extension. Using default extension 1792."
|
|
8088
|
-
), new zr(
|
|
8078
|
+
const s = e == null ? void 0 : e.webconnectorUrl;
|
|
8079
|
+
if (!s)
|
|
8080
|
+
throw new Error(
|
|
8081
|
+
"WebConnector URL is required, config misconfigured. See agentConfig.virtual.webconnectorUrl"
|
|
8082
|
+
);
|
|
8083
|
+
return new qh(
|
|
8089
8084
|
{
|
|
8090
|
-
connectionUri:
|
|
8091
|
-
extension:
|
|
8085
|
+
connectionUri: s,
|
|
8086
|
+
extension: t.toString()
|
|
8092
8087
|
},
|
|
8093
8088
|
this.component,
|
|
8094
8089
|
this
|
|
8095
|
-
)
|
|
8090
|
+
);
|
|
8096
8091
|
}
|
|
8097
8092
|
restartConversation() {
|
|
8098
8093
|
if (this.isConnected) {
|
|
@@ -8113,11 +8108,11 @@ class Qs extends Cl {
|
|
|
8113
8108
|
});
|
|
8114
8109
|
}
|
|
8115
8110
|
}
|
|
8116
|
-
const
|
|
8111
|
+
const zr = "ace-conversational-agent-provider", sd = async (n) => {
|
|
8117
8112
|
(await Ss.getInstance(n.container)).registerProvider(
|
|
8118
|
-
|
|
8113
|
+
zr,
|
|
8119
8114
|
(t) => Qs.getInstance(
|
|
8120
|
-
|
|
8115
|
+
zr,
|
|
8121
8116
|
t
|
|
8122
8117
|
)
|
|
8123
8118
|
);
|