@telia-ace/widget-conversation-flamingo 1.1.70-rc.9 → 1.1.70
Sign up to get free protection for your applications and to get access to all the features.
- package/conversation.d.ts +16 -2
- package/index.js +177 -96
- package/index.mjs +1100 -961
- package/package.json +2 -2
package/index.mjs
CHANGED
@@ -1,17 +1,17 @@
|
|
1
|
-
var
|
2
|
-
var
|
3
|
-
var x = (s, e, t) => (
|
1
|
+
var Si = Object.defineProperty;
|
2
|
+
var Ci = (s, e, t) => e in s ? Si(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t;
|
3
|
+
var x = (s, e, t) => (Ci(s, typeof e != "symbol" ? e + "" : e, t), t), Ai = (s, e, t) => {
|
4
4
|
if (!e.has(s))
|
5
5
|
throw TypeError("Cannot " + t);
|
6
6
|
};
|
7
|
-
var
|
7
|
+
var $t = (s, e, t) => {
|
8
8
|
if (e.has(s))
|
9
9
|
throw TypeError("Cannot add the same private member more than once");
|
10
10
|
e instanceof WeakSet ? e.add(s) : e.set(s, t);
|
11
11
|
};
|
12
|
-
var
|
12
|
+
var He = (s, e, t) => (Ai(s, e, "access private method"), t);
|
13
13
|
const Rl = async (s) => {
|
14
|
-
s.registerComponent("conversation", Promise.resolve().then(() =>
|
14
|
+
s.registerComponent("conversation", Promise.resolve().then(() => Ol));
|
15
15
|
};
|
16
16
|
class ds {
|
17
17
|
constructor() {
|
@@ -37,24 +37,24 @@ class ds {
|
|
37
37
|
// return this.registeredProviders.get(providerKey);
|
38
38
|
// }
|
39
39
|
}
|
40
|
-
var
|
41
|
-
return
|
40
|
+
var Lt = function(s, e) {
|
41
|
+
return Lt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, n) {
|
42
42
|
t.__proto__ = n;
|
43
43
|
} || function(t, n) {
|
44
44
|
for (var i in n)
|
45
45
|
Object.prototype.hasOwnProperty.call(n, i) && (t[i] = n[i]);
|
46
|
-
},
|
46
|
+
}, Lt(s, e);
|
47
47
|
};
|
48
|
-
function
|
48
|
+
function be(s, e) {
|
49
49
|
if (typeof e != "function" && e !== null)
|
50
50
|
throw new TypeError("Class extends value " + String(e) + " is not a constructor or null");
|
51
|
-
|
51
|
+
Lt(s, e);
|
52
52
|
function t() {
|
53
53
|
this.constructor = s;
|
54
54
|
}
|
55
55
|
s.prototype = e === null ? Object.create(e) : (t.prototype = e.prototype, new t());
|
56
56
|
}
|
57
|
-
function
|
57
|
+
function Ei(s, e, t, n) {
|
58
58
|
function i(r) {
|
59
59
|
return r instanceof t ? r : new t(function(o) {
|
60
60
|
o(r);
|
@@ -158,7 +158,7 @@ function ge(s) {
|
|
158
158
|
};
|
159
159
|
throw new TypeError(e ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
160
160
|
}
|
161
|
-
function
|
161
|
+
function Y(s, e) {
|
162
162
|
var t = typeof Symbol == "function" && s[Symbol.iterator];
|
163
163
|
if (!t)
|
164
164
|
return s;
|
@@ -178,7 +178,7 @@ function q(s, e) {
|
|
178
178
|
}
|
179
179
|
return r;
|
180
180
|
}
|
181
|
-
function
|
181
|
+
function ne(s, e, t) {
|
182
182
|
if (t || arguments.length === 2)
|
183
183
|
for (var n = 0, i = e.length, r; n < i; n++)
|
184
184
|
(r || !(n in e)) && (r || (r = Array.prototype.slice.call(e, 0, n)), r[n] = e[n]);
|
@@ -187,7 +187,7 @@ function ee(s, e, t) {
|
|
187
187
|
function ue(s) {
|
188
188
|
return this instanceof ue ? (this.v = s, this) : new ue(s);
|
189
189
|
}
|
190
|
-
function
|
190
|
+
function Ti(s, e, t) {
|
191
191
|
if (!Symbol.asyncIterator)
|
192
192
|
throw new TypeError("Symbol.asyncIterator is not defined.");
|
193
193
|
var n = t.apply(s, e || []), i, r = [];
|
@@ -221,7 +221,7 @@ function Ei(s, e, t) {
|
|
221
221
|
p(d), r.shift(), r.length && a(r[0][0], r[0][1]);
|
222
222
|
}
|
223
223
|
}
|
224
|
-
function
|
224
|
+
function Li(s) {
|
225
225
|
if (!Symbol.asyncIterator)
|
226
226
|
throw new TypeError("Symbol.asyncIterator is not defined.");
|
227
227
|
var e = s[Symbol.asyncIterator], t;
|
@@ -241,7 +241,7 @@ function Ti(s) {
|
|
241
241
|
}, o);
|
242
242
|
}
|
243
243
|
}
|
244
|
-
function
|
244
|
+
function $(s) {
|
245
245
|
return typeof s == "function";
|
246
246
|
}
|
247
247
|
function gs(s) {
|
@@ -259,13 +259,13 @@ var xt = gs(function(s) {
|
|
259
259
|
`) : "", this.name = "UnsubscriptionError", this.errors = t;
|
260
260
|
};
|
261
261
|
});
|
262
|
-
function
|
262
|
+
function Ot(s, e) {
|
263
263
|
if (s) {
|
264
264
|
var t = s.indexOf(e);
|
265
265
|
0 <= t && s.splice(t, 1);
|
266
266
|
}
|
267
267
|
}
|
268
|
-
var
|
268
|
+
var at = function() {
|
269
269
|
function s(e) {
|
270
270
|
this.initialTeardown = e, this.closed = !1, this._parentage = null, this._finalizers = null;
|
271
271
|
}
|
@@ -294,7 +294,7 @@ var ot = function() {
|
|
294
294
|
else
|
295
295
|
o.remove(this);
|
296
296
|
var h = this.initialTeardown;
|
297
|
-
if (
|
297
|
+
if ($(h))
|
298
298
|
try {
|
299
299
|
h();
|
300
300
|
} catch (f) {
|
@@ -307,9 +307,9 @@ var ot = function() {
|
|
307
307
|
for (var p = ge(u), d = p.next(); !d.done; d = p.next()) {
|
308
308
|
var b = d.value;
|
309
309
|
try {
|
310
|
-
|
310
|
+
kn(b);
|
311
311
|
} catch (f) {
|
312
|
-
r = r ?? [], f instanceof xt ? r =
|
312
|
+
r = r ?? [], f instanceof xt ? r = ne(ne([], Y(r)), Y(f.errors)) : r.push(f);
|
313
313
|
}
|
314
314
|
}
|
315
315
|
} catch (f) {
|
@@ -330,7 +330,7 @@ var ot = function() {
|
|
330
330
|
var t;
|
331
331
|
if (e && e !== this)
|
332
332
|
if (this.closed)
|
333
|
-
|
333
|
+
kn(e);
|
334
334
|
else {
|
335
335
|
if (e instanceof s) {
|
336
336
|
if (e.closed || e._hasParent(this))
|
@@ -347,20 +347,20 @@ var ot = function() {
|
|
347
347
|
this._parentage = Array.isArray(t) ? (t.push(e), t) : t ? [t, e] : e;
|
348
348
|
}, s.prototype._removeParent = function(e) {
|
349
349
|
var t = this._parentage;
|
350
|
-
t === e ? this._parentage = null : Array.isArray(t) &&
|
350
|
+
t === e ? this._parentage = null : Array.isArray(t) && Ot(t, e);
|
351
351
|
}, s.prototype.remove = function(e) {
|
352
352
|
var t = this._finalizers;
|
353
|
-
t &&
|
353
|
+
t && Ot(t, e), e instanceof s && e._removeParent(this);
|
354
354
|
}, s.EMPTY = function() {
|
355
355
|
var e = new s();
|
356
356
|
return e.closed = !0, e;
|
357
357
|
}(), s;
|
358
|
-
}(), ms =
|
358
|
+
}(), ms = at.EMPTY;
|
359
359
|
function vs(s) {
|
360
|
-
return s instanceof
|
360
|
+
return s instanceof at || s && "closed" in s && $(s.remove) && $(s.add) && $(s.unsubscribe);
|
361
361
|
}
|
362
|
-
function
|
363
|
-
|
362
|
+
function kn(s) {
|
363
|
+
$(s) ? s() : s.unsubscribe();
|
364
364
|
}
|
365
365
|
var bs = {
|
366
366
|
onUnhandledError: null,
|
@@ -373,7 +373,7 @@ var bs = {
|
|
373
373
|
for (var t = [], n = 2; n < arguments.length; n++)
|
374
374
|
t[n - 2] = arguments[n];
|
375
375
|
var i = Pt.delegate;
|
376
|
-
return i != null && i.setTimeout ? i.setTimeout.apply(i,
|
376
|
+
return i != null && i.setTimeout ? i.setTimeout.apply(i, ne([s, e], Y(t))) : setTimeout.apply(void 0, ne([s, e], Y(t)));
|
377
377
|
},
|
378
378
|
clearTimeout: function(s) {
|
379
379
|
var e = Pt.delegate;
|
@@ -381,21 +381,21 @@ var bs = {
|
|
381
381
|
},
|
382
382
|
delegate: void 0
|
383
383
|
};
|
384
|
-
function
|
384
|
+
function ys(s) {
|
385
385
|
Pt.setTimeout(function() {
|
386
386
|
throw s;
|
387
387
|
});
|
388
388
|
}
|
389
|
-
function
|
389
|
+
function Ye() {
|
390
390
|
}
|
391
391
|
function Ze(s) {
|
392
392
|
s();
|
393
393
|
}
|
394
394
|
var Zt = function(s) {
|
395
|
-
|
395
|
+
be(e, s);
|
396
396
|
function e(t) {
|
397
397
|
var n = s.call(this) || this;
|
398
|
-
return n.isStopped = !1, t ? (n.destination = t, vs(t) && t.add(n)) : n.destination =
|
398
|
+
return n.isStopped = !1, t ? (n.destination = t, vs(t) && t.add(n)) : n.destination = Ii, n;
|
399
399
|
}
|
400
400
|
return e.create = function(t, n, i) {
|
401
401
|
return new Rt(t, n, i);
|
@@ -422,11 +422,11 @@ var Zt = function(s) {
|
|
422
422
|
this.unsubscribe();
|
423
423
|
}
|
424
424
|
}, e;
|
425
|
-
}(
|
425
|
+
}(at), Oi = Function.prototype.bind;
|
426
426
|
function wt(s, e) {
|
427
427
|
return Oi.call(s, e);
|
428
428
|
}
|
429
|
-
var
|
429
|
+
var Pi = function() {
|
430
430
|
function s(e) {
|
431
431
|
this.partialObserver = e;
|
432
432
|
}
|
@@ -436,7 +436,7 @@ var Li = function() {
|
|
436
436
|
try {
|
437
437
|
t.next(e);
|
438
438
|
} catch (n) {
|
439
|
-
|
439
|
+
De(n);
|
440
440
|
}
|
441
441
|
}, s.prototype.error = function(e) {
|
442
442
|
var t = this.partialObserver;
|
@@ -444,24 +444,24 @@ var Li = function() {
|
|
444
444
|
try {
|
445
445
|
t.error(e);
|
446
446
|
} catch (n) {
|
447
|
-
|
447
|
+
De(n);
|
448
448
|
}
|
449
449
|
else
|
450
|
-
|
450
|
+
De(e);
|
451
451
|
}, s.prototype.complete = function() {
|
452
452
|
var e = this.partialObserver;
|
453
453
|
if (e.complete)
|
454
454
|
try {
|
455
455
|
e.complete();
|
456
456
|
} catch (t) {
|
457
|
-
|
457
|
+
De(t);
|
458
458
|
}
|
459
459
|
}, s;
|
460
460
|
}(), Rt = function(s) {
|
461
|
-
|
461
|
+
be(e, s);
|
462
462
|
function e(t, n, i) {
|
463
463
|
var r = s.call(this) || this, o;
|
464
|
-
if (
|
464
|
+
if ($(t) || !t)
|
465
465
|
o = {
|
466
466
|
next: t ?? void 0,
|
467
467
|
error: n ?? void 0,
|
@@ -477,35 +477,35 @@ var Li = function() {
|
|
477
477
|
complete: t.complete && wt(t.complete, a)
|
478
478
|
}) : o = t;
|
479
479
|
}
|
480
|
-
return r.destination = new
|
480
|
+
return r.destination = new Pi(o), r;
|
481
481
|
}
|
482
482
|
return e;
|
483
483
|
}(Zt);
|
484
|
-
function
|
485
|
-
|
484
|
+
function De(s) {
|
485
|
+
ys(s);
|
486
486
|
}
|
487
|
-
function
|
487
|
+
function Ri(s) {
|
488
488
|
throw s;
|
489
489
|
}
|
490
|
-
var
|
490
|
+
var Ii = {
|
491
491
|
closed: !0,
|
492
|
-
next:
|
493
|
-
error:
|
494
|
-
complete:
|
495
|
-
},
|
492
|
+
next: Ye,
|
493
|
+
error: Ri,
|
494
|
+
complete: Ye
|
495
|
+
}, Wt = function() {
|
496
496
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
497
497
|
}();
|
498
|
-
function
|
498
|
+
function Oe(s) {
|
499
499
|
return s;
|
500
500
|
}
|
501
|
-
function
|
502
|
-
return s.length === 0 ?
|
501
|
+
function Mi(s) {
|
502
|
+
return s.length === 0 ? Oe : s.length === 1 ? s[0] : function(t) {
|
503
503
|
return s.reduce(function(n, i) {
|
504
504
|
return i(n);
|
505
505
|
}, t);
|
506
506
|
};
|
507
507
|
}
|
508
|
-
var
|
508
|
+
var A = function() {
|
509
509
|
function s(e) {
|
510
510
|
e && (this._subscribe = e);
|
511
511
|
}
|
@@ -513,7 +513,7 @@ var C = function() {
|
|
513
513
|
var t = new s();
|
514
514
|
return t.source = this, t.operator = e, t;
|
515
515
|
}, s.prototype.subscribe = function(e, t, n) {
|
516
|
-
var i = this, r =
|
516
|
+
var i = this, r = Ui(e) ? e : new Rt(e, t, n);
|
517
517
|
return Ze(function() {
|
518
518
|
var o = i, a = o.operator, l = o.source;
|
519
519
|
r.add(a ? a.call(r, l) : l ? i._subscribe(r) : i._trySubscribe(r));
|
@@ -526,7 +526,7 @@ var C = function() {
|
|
526
526
|
}
|
527
527
|
}, s.prototype.forEach = function(e, t) {
|
528
528
|
var n = this;
|
529
|
-
return t =
|
529
|
+
return t = _n(t), new t(function(i, r) {
|
530
530
|
var o = new Rt({
|
531
531
|
next: function(a) {
|
532
532
|
try {
|
@@ -543,15 +543,15 @@ var C = function() {
|
|
543
543
|
}, s.prototype._subscribe = function(e) {
|
544
544
|
var t;
|
545
545
|
return (t = this.source) === null || t === void 0 ? void 0 : t.subscribe(e);
|
546
|
-
}, s.prototype[
|
546
|
+
}, s.prototype[Wt] = function() {
|
547
547
|
return this;
|
548
548
|
}, s.prototype.pipe = function() {
|
549
549
|
for (var e = [], t = 0; t < arguments.length; t++)
|
550
550
|
e[t] = arguments[t];
|
551
|
-
return
|
551
|
+
return Mi(e)(this);
|
552
552
|
}, s.prototype.toPromise = function(e) {
|
553
553
|
var t = this;
|
554
|
-
return e =
|
554
|
+
return e = _n(e), new e(function(n, i) {
|
555
555
|
var r;
|
556
556
|
t.subscribe(function(o) {
|
557
557
|
return r = o;
|
@@ -565,22 +565,22 @@ var C = function() {
|
|
565
565
|
return new s(e);
|
566
566
|
}, s;
|
567
567
|
}();
|
568
|
-
function
|
568
|
+
function _n(s) {
|
569
569
|
var e;
|
570
570
|
return (e = s ?? bs.Promise) !== null && e !== void 0 ? e : Promise;
|
571
571
|
}
|
572
|
-
function Mi(s) {
|
573
|
-
return s && y(s.next) && y(s.error) && y(s.complete);
|
574
|
-
}
|
575
572
|
function zi(s) {
|
576
|
-
return s && s
|
573
|
+
return s && $(s.next) && $(s.error) && $(s.complete);
|
577
574
|
}
|
578
575
|
function Ui(s) {
|
579
|
-
return
|
576
|
+
return s && s instanceof Zt || zi(s) && vs(s);
|
577
|
+
}
|
578
|
+
function ji(s) {
|
579
|
+
return $(s == null ? void 0 : s.lift);
|
580
580
|
}
|
581
|
-
function
|
581
|
+
function K(s) {
|
582
582
|
return function(e) {
|
583
|
-
if (
|
583
|
+
if (ji(e))
|
584
584
|
return e.lift(function(t) {
|
585
585
|
try {
|
586
586
|
return s(t, this);
|
@@ -592,10 +592,10 @@ function Y(s) {
|
|
592
592
|
};
|
593
593
|
}
|
594
594
|
function P(s, e, t, n, i) {
|
595
|
-
return new
|
595
|
+
return new Hi(s, e, t, n, i);
|
596
596
|
}
|
597
|
-
var
|
598
|
-
|
597
|
+
var Hi = function(s) {
|
598
|
+
be(e, s);
|
599
599
|
function e(t, n, i, r, o, a) {
|
600
600
|
var l = s.call(this, t) || this;
|
601
601
|
return l.onFinalize = o, l.shouldUnsubscribe = a, l._next = n ? function(c) {
|
@@ -629,22 +629,22 @@ var ji = function(s) {
|
|
629
629
|
s.prototype.unsubscribe.call(this), !n && ((t = this.onFinalize) === null || t === void 0 || t.call(this));
|
630
630
|
}
|
631
631
|
}, e;
|
632
|
-
}(Zt),
|
632
|
+
}(Zt), Di = gs(function(s) {
|
633
633
|
return function() {
|
634
634
|
s(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
635
635
|
};
|
636
|
-
}),
|
637
|
-
|
636
|
+
}), _ = function(s) {
|
637
|
+
be(e, s);
|
638
638
|
function e() {
|
639
639
|
var t = s.call(this) || this;
|
640
640
|
return t.closed = !1, t.currentObservers = null, t.observers = [], t.isStopped = !1, t.hasError = !1, t.thrownError = null, t;
|
641
641
|
}
|
642
642
|
return e.prototype.lift = function(t) {
|
643
|
-
var n = new
|
643
|
+
var n = new Sn(this, this);
|
644
644
|
return n.operator = t, n;
|
645
645
|
}, e.prototype._throwIfClosed = function() {
|
646
646
|
if (this.closed)
|
647
|
-
throw new
|
647
|
+
throw new Di();
|
648
648
|
}, e.prototype.next = function(t) {
|
649
649
|
var n = this;
|
650
650
|
Ze(function() {
|
@@ -701,20 +701,20 @@ var ji = function(s) {
|
|
701
701
|
return this._throwIfClosed(), this._checkFinalizedStatuses(t), this._innerSubscribe(t);
|
702
702
|
}, e.prototype._innerSubscribe = function(t) {
|
703
703
|
var n = this, i = this, r = i.hasError, o = i.isStopped, a = i.observers;
|
704
|
-
return r || o ? ms : (this.currentObservers = null, a.push(t), new
|
705
|
-
n.currentObservers = null,
|
704
|
+
return r || o ? ms : (this.currentObservers = null, a.push(t), new at(function() {
|
705
|
+
n.currentObservers = null, Ot(a, t);
|
706
706
|
}));
|
707
707
|
}, e.prototype._checkFinalizedStatuses = function(t) {
|
708
708
|
var n = this, i = n.hasError, r = n.thrownError, o = n.isStopped;
|
709
709
|
i ? t.error(r) : o && t.complete();
|
710
710
|
}, e.prototype.asObservable = function() {
|
711
|
-
var t = new
|
711
|
+
var t = new A();
|
712
712
|
return t.source = this, t;
|
713
713
|
}, e.create = function(t, n) {
|
714
|
-
return new
|
714
|
+
return new Sn(t, n);
|
715
715
|
}, e;
|
716
|
-
}(
|
717
|
-
|
716
|
+
}(A), Sn = function(s) {
|
717
|
+
be(e, s);
|
718
718
|
function e(t, n) {
|
719
719
|
var i = s.call(this) || this;
|
720
720
|
return i.destination = t, i.source = n, i;
|
@@ -732,8 +732,8 @@ var ji = function(s) {
|
|
732
732
|
var n, i;
|
733
733
|
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(t)) !== null && i !== void 0 ? i : ms;
|
734
734
|
}, e;
|
735
|
-
}(
|
736
|
-
|
735
|
+
}(_), U = function(s) {
|
736
|
+
be(e, s);
|
737
737
|
function e(t) {
|
738
738
|
var n = s.call(this) || this;
|
739
739
|
return n._value = t, n;
|
@@ -755,48 +755,48 @@ var ji = function(s) {
|
|
755
755
|
}, e.prototype.next = function(t) {
|
756
756
|
s.prototype.next.call(this, this._value = t);
|
757
757
|
}, e;
|
758
|
-
}(
|
758
|
+
}(_), Pe = new A(function(s) {
|
759
759
|
return s.complete();
|
760
760
|
});
|
761
|
-
function
|
762
|
-
return s &&
|
761
|
+
function Bi(s) {
|
762
|
+
return s && $(s.schedule);
|
763
763
|
}
|
764
|
-
function
|
764
|
+
function Yt(s) {
|
765
765
|
return s[s.length - 1];
|
766
766
|
}
|
767
|
-
function
|
768
|
-
return
|
767
|
+
function $s(s) {
|
768
|
+
return $(Yt(s)) ? s.pop() : void 0;
|
769
769
|
}
|
770
|
-
function
|
771
|
-
return
|
770
|
+
function Qt(s) {
|
771
|
+
return Bi(Yt(s)) ? s.pop() : void 0;
|
772
772
|
}
|
773
|
-
function
|
774
|
-
return typeof
|
773
|
+
function Ni(s, e) {
|
774
|
+
return typeof Yt(s) == "number" ? s.pop() : e;
|
775
775
|
}
|
776
|
-
var
|
776
|
+
var Kt = function(s) {
|
777
777
|
return s && typeof s.length == "number" && typeof s != "function";
|
778
778
|
};
|
779
779
|
function xs(s) {
|
780
|
-
return
|
780
|
+
return $(s == null ? void 0 : s.then);
|
781
781
|
}
|
782
782
|
function ws(s) {
|
783
|
-
return
|
783
|
+
return $(s[Wt]);
|
784
784
|
}
|
785
785
|
function ks(s) {
|
786
|
-
return Symbol.asyncIterator &&
|
786
|
+
return Symbol.asyncIterator && $(s == null ? void 0 : s[Symbol.asyncIterator]);
|
787
787
|
}
|
788
788
|
function _s(s) {
|
789
789
|
return new TypeError("You provided " + (s !== null && typeof s == "object" ? "an invalid object" : "'" + s + "'") + " where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.");
|
790
790
|
}
|
791
|
-
function
|
791
|
+
function Fi() {
|
792
792
|
return typeof Symbol != "function" || !Symbol.iterator ? "@@iterator" : Symbol.iterator;
|
793
793
|
}
|
794
|
-
var Ss =
|
794
|
+
var Ss = Fi();
|
795
795
|
function Cs(s) {
|
796
|
-
return
|
796
|
+
return $(s == null ? void 0 : s[Ss]);
|
797
797
|
}
|
798
798
|
function As(s) {
|
799
|
-
return
|
799
|
+
return Ti(this, arguments, function() {
|
800
800
|
var t, n, i, r;
|
801
801
|
return fs(this, function(o) {
|
802
802
|
switch (o.label) {
|
@@ -827,53 +827,53 @@ function As(s) {
|
|
827
827
|
});
|
828
828
|
}
|
829
829
|
function Es(s) {
|
830
|
-
return
|
830
|
+
return $(s == null ? void 0 : s.getReader);
|
831
831
|
}
|
832
|
-
function
|
833
|
-
if (s instanceof
|
832
|
+
function B(s) {
|
833
|
+
if (s instanceof A)
|
834
834
|
return s;
|
835
835
|
if (s != null) {
|
836
836
|
if (ws(s))
|
837
|
-
return
|
838
|
-
if (
|
837
|
+
return qi(s);
|
838
|
+
if (Kt(s))
|
839
839
|
return Zi(s);
|
840
840
|
if (xs(s))
|
841
|
-
return
|
841
|
+
return Wi(s);
|
842
842
|
if (ks(s))
|
843
843
|
return Ts(s);
|
844
844
|
if (Cs(s))
|
845
|
-
return Wi(s);
|
846
|
-
if (Es(s))
|
847
845
|
return Yi(s);
|
846
|
+
if (Es(s))
|
847
|
+
return Qi(s);
|
848
848
|
}
|
849
849
|
throw _s(s);
|
850
850
|
}
|
851
|
-
function
|
852
|
-
return new
|
853
|
-
var t = s[
|
854
|
-
if (
|
851
|
+
function qi(s) {
|
852
|
+
return new A(function(e) {
|
853
|
+
var t = s[Wt]();
|
854
|
+
if ($(t.subscribe))
|
855
855
|
return t.subscribe(e);
|
856
856
|
throw new TypeError("Provided object does not correctly implement Symbol.observable");
|
857
857
|
});
|
858
858
|
}
|
859
859
|
function Zi(s) {
|
860
|
-
return new
|
860
|
+
return new A(function(e) {
|
861
861
|
for (var t = 0; t < s.length && !e.closed; t++)
|
862
862
|
e.next(s[t]);
|
863
863
|
e.complete();
|
864
864
|
});
|
865
865
|
}
|
866
|
-
function
|
867
|
-
return new
|
866
|
+
function Wi(s) {
|
867
|
+
return new A(function(e) {
|
868
868
|
s.then(function(t) {
|
869
869
|
e.closed || (e.next(t), e.complete());
|
870
870
|
}, function(t) {
|
871
871
|
return e.error(t);
|
872
|
-
}).then(null,
|
872
|
+
}).then(null, ys);
|
873
873
|
});
|
874
874
|
}
|
875
|
-
function
|
876
|
-
return new
|
875
|
+
function Yi(s) {
|
876
|
+
return new A(function(e) {
|
877
877
|
var t, n;
|
878
878
|
try {
|
879
879
|
for (var i = ge(s), r = i.next(); !r.done; r = i.next()) {
|
@@ -895,23 +895,23 @@ function Wi(s) {
|
|
895
895
|
});
|
896
896
|
}
|
897
897
|
function Ts(s) {
|
898
|
-
return new
|
899
|
-
|
898
|
+
return new A(function(e) {
|
899
|
+
Ki(s, e).catch(function(t) {
|
900
900
|
return e.error(t);
|
901
901
|
});
|
902
902
|
});
|
903
903
|
}
|
904
|
-
function
|
904
|
+
function Qi(s) {
|
905
905
|
return Ts(As(s));
|
906
906
|
}
|
907
|
-
function
|
907
|
+
function Ki(s, e) {
|
908
908
|
var t, n, i, r;
|
909
|
-
return
|
909
|
+
return Ei(this, void 0, void 0, function() {
|
910
910
|
var o, a;
|
911
911
|
return fs(this, function(l) {
|
912
912
|
switch (l.label) {
|
913
913
|
case 0:
|
914
|
-
l.trys.push([0, 5, 6, 11]), t =
|
914
|
+
l.trys.push([0, 5, 6, 11]), t = Li(s), l.label = 1;
|
915
915
|
case 1:
|
916
916
|
return [4, t.next()];
|
917
917
|
case 2:
|
@@ -944,7 +944,7 @@ function Qi(s, e) {
|
|
944
944
|
});
|
945
945
|
});
|
946
946
|
}
|
947
|
-
function
|
947
|
+
function F(s, e, t, n, i) {
|
948
948
|
n === void 0 && (n = 0), i === void 0 && (i = !1);
|
949
949
|
var r = e.schedule(function() {
|
950
950
|
t(), i ? s.add(this.schedule(null, n)) : this.unsubscribe();
|
@@ -952,38 +952,38 @@ function B(s, e, t, n, i) {
|
|
952
952
|
if (s.add(r), !i)
|
953
953
|
return r;
|
954
954
|
}
|
955
|
-
function
|
956
|
-
return e === void 0 && (e = 0),
|
955
|
+
function Ls(s, e) {
|
956
|
+
return e === void 0 && (e = 0), K(function(t, n) {
|
957
957
|
t.subscribe(P(n, function(i) {
|
958
|
-
return
|
958
|
+
return F(n, s, function() {
|
959
959
|
return n.next(i);
|
960
960
|
}, e);
|
961
961
|
}, function() {
|
962
|
-
return
|
962
|
+
return F(n, s, function() {
|
963
963
|
return n.complete();
|
964
964
|
}, e);
|
965
965
|
}, function(i) {
|
966
|
-
return
|
966
|
+
return F(n, s, function() {
|
967
967
|
return n.error(i);
|
968
968
|
}, e);
|
969
969
|
}));
|
970
970
|
});
|
971
971
|
}
|
972
|
-
function
|
973
|
-
return e === void 0 && (e = 0),
|
972
|
+
function Os(s, e) {
|
973
|
+
return e === void 0 && (e = 0), K(function(t, n) {
|
974
974
|
n.add(s.schedule(function() {
|
975
975
|
return t.subscribe(n);
|
976
976
|
}, e));
|
977
977
|
});
|
978
978
|
}
|
979
|
-
function Ki(s, e) {
|
980
|
-
return j(s).pipe(Ls(e), Os(e));
|
981
|
-
}
|
982
979
|
function Gi(s, e) {
|
983
|
-
return
|
980
|
+
return B(s).pipe(Os(e), Ls(e));
|
984
981
|
}
|
985
982
|
function Xi(s, e) {
|
986
|
-
return
|
983
|
+
return B(s).pipe(Os(e), Ls(e));
|
984
|
+
}
|
985
|
+
function Vi(s, e) {
|
986
|
+
return new A(function(t) {
|
987
987
|
var n = 0;
|
988
988
|
return e.schedule(function() {
|
989
989
|
n === s.length ? t.complete() : (t.next(s[n++]), t.closed || this.schedule());
|
@@ -991,10 +991,10 @@ function Xi(s, e) {
|
|
991
991
|
});
|
992
992
|
}
|
993
993
|
function Ji(s, e) {
|
994
|
-
return new
|
994
|
+
return new A(function(t) {
|
995
995
|
var n;
|
996
|
-
return
|
997
|
-
n = s[Ss](),
|
996
|
+
return F(t, e, function() {
|
997
|
+
n = s[Ss](), F(t, e, function() {
|
998
998
|
var i, r, o;
|
999
999
|
try {
|
1000
1000
|
i = n.next(), r = i.value, o = i.done;
|
@@ -1005,17 +1005,17 @@ function Ji(s, e) {
|
|
1005
1005
|
o ? t.complete() : t.next(r);
|
1006
1006
|
}, 0, !0);
|
1007
1007
|
}), function() {
|
1008
|
-
return
|
1008
|
+
return $(n == null ? void 0 : n.return) && n.return();
|
1009
1009
|
};
|
1010
1010
|
});
|
1011
1011
|
}
|
1012
1012
|
function Ps(s, e) {
|
1013
1013
|
if (!s)
|
1014
1014
|
throw new Error("Iterable cannot be null");
|
1015
|
-
return new
|
1016
|
-
|
1015
|
+
return new A(function(t) {
|
1016
|
+
F(t, e, function() {
|
1017
1017
|
var n = s[Symbol.asyncIterator]();
|
1018
|
-
|
1018
|
+
F(t, e, function() {
|
1019
1019
|
n.next().then(function(i) {
|
1020
1020
|
i.done ? t.complete() : t.next(i.value);
|
1021
1021
|
});
|
@@ -1023,60 +1023,60 @@ function Ps(s, e) {
|
|
1023
1023
|
});
|
1024
1024
|
});
|
1025
1025
|
}
|
1026
|
-
function
|
1026
|
+
function er(s, e) {
|
1027
1027
|
return Ps(As(s), e);
|
1028
1028
|
}
|
1029
|
-
function
|
1029
|
+
function tr(s, e) {
|
1030
1030
|
if (s != null) {
|
1031
1031
|
if (ws(s))
|
1032
|
-
return Ki(s, e);
|
1033
|
-
if (Qt(s))
|
1034
|
-
return Xi(s, e);
|
1035
|
-
if (xs(s))
|
1036
1032
|
return Gi(s, e);
|
1033
|
+
if (Kt(s))
|
1034
|
+
return Vi(s, e);
|
1035
|
+
if (xs(s))
|
1036
|
+
return Xi(s, e);
|
1037
1037
|
if (ks(s))
|
1038
1038
|
return Ps(s, e);
|
1039
1039
|
if (Cs(s))
|
1040
1040
|
return Ji(s, e);
|
1041
1041
|
if (Es(s))
|
1042
|
-
return
|
1042
|
+
return er(s, e);
|
1043
1043
|
}
|
1044
1044
|
throw _s(s);
|
1045
1045
|
}
|
1046
|
-
function
|
1047
|
-
return e ?
|
1046
|
+
function lt(s, e) {
|
1047
|
+
return e ? tr(s, e) : B(s);
|
1048
1048
|
}
|
1049
1049
|
function It() {
|
1050
1050
|
for (var s = [], e = 0; e < arguments.length; e++)
|
1051
1051
|
s[e] = arguments[e];
|
1052
|
-
var t =
|
1053
|
-
return
|
1052
|
+
var t = Qt(s);
|
1053
|
+
return lt(s, t);
|
1054
1054
|
}
|
1055
|
-
function
|
1056
|
-
return
|
1055
|
+
function Qe(s, e) {
|
1056
|
+
return K(function(t, n) {
|
1057
1057
|
var i = 0;
|
1058
1058
|
t.subscribe(P(n, function(r) {
|
1059
1059
|
n.next(s.call(e, r, i++));
|
1060
1060
|
}));
|
1061
1061
|
});
|
1062
1062
|
}
|
1063
|
-
var
|
1064
|
-
function
|
1065
|
-
return
|
1063
|
+
var nr = Array.isArray;
|
1064
|
+
function sr(s, e) {
|
1065
|
+
return nr(e) ? s.apply(void 0, ne([], Y(e))) : s(e);
|
1066
1066
|
}
|
1067
1067
|
function Rs(s) {
|
1068
|
-
return
|
1069
|
-
return
|
1068
|
+
return Qe(function(e) {
|
1069
|
+
return sr(s, e);
|
1070
1070
|
});
|
1071
1071
|
}
|
1072
|
-
var
|
1073
|
-
function
|
1072
|
+
var ir = Array.isArray, rr = Object.getPrototypeOf, or = Object.prototype, ar = Object.keys;
|
1073
|
+
function lr(s) {
|
1074
1074
|
if (s.length === 1) {
|
1075
1075
|
var e = s[0];
|
1076
|
-
if (
|
1076
|
+
if (ir(e))
|
1077
1077
|
return { args: e, keys: null };
|
1078
|
-
if (
|
1079
|
-
var t =
|
1078
|
+
if (cr(e)) {
|
1079
|
+
var t = ar(e);
|
1080
1080
|
return {
|
1081
1081
|
args: t.map(function(n) {
|
1082
1082
|
return e[n];
|
@@ -1087,31 +1087,31 @@ function ar(s) {
|
|
1087
1087
|
}
|
1088
1088
|
return { args: s, keys: null };
|
1089
1089
|
}
|
1090
|
-
function
|
1091
|
-
return s && typeof s == "object" &&
|
1090
|
+
function cr(s) {
|
1091
|
+
return s && typeof s == "object" && rr(s) === or;
|
1092
1092
|
}
|
1093
|
-
function
|
1093
|
+
function hr(s, e) {
|
1094
1094
|
return s.reduce(function(t, n, i) {
|
1095
1095
|
return t[n] = e[i], t;
|
1096
1096
|
}, {});
|
1097
1097
|
}
|
1098
|
-
function
|
1098
|
+
function ur() {
|
1099
1099
|
for (var s = [], e = 0; e < arguments.length; e++)
|
1100
1100
|
s[e] = arguments[e];
|
1101
|
-
var t =
|
1101
|
+
var t = Qt(s), n = $s(s), i = lr(s), r = i.args, o = i.keys;
|
1102
1102
|
if (r.length === 0)
|
1103
|
-
return
|
1104
|
-
var a = new
|
1105
|
-
return
|
1106
|
-
} :
|
1103
|
+
return lt([], t);
|
1104
|
+
var a = new A(pr(r, t, o ? function(l) {
|
1105
|
+
return hr(o, l);
|
1106
|
+
} : Oe));
|
1107
1107
|
return n ? a.pipe(Rs(n)) : a;
|
1108
1108
|
}
|
1109
|
-
function
|
1110
|
-
return t === void 0 && (t =
|
1111
|
-
|
1109
|
+
function pr(s, e, t) {
|
1110
|
+
return t === void 0 && (t = Oe), function(n) {
|
1111
|
+
Cn(e, function() {
|
1112
1112
|
for (var i = s.length, r = new Array(i), o = i, a = i, l = function(h) {
|
1113
|
-
|
1114
|
-
var u =
|
1113
|
+
Cn(e, function() {
|
1114
|
+
var u = lt(s[h], e), p = !1;
|
1115
1115
|
u.subscribe(P(n, function(d) {
|
1116
1116
|
r[h] = d, p || (p = !0, a--), a || n.next(t(r.slice()));
|
1117
1117
|
}, function() {
|
@@ -1123,35 +1123,35 @@ function ur(s, e, t) {
|
|
1123
1123
|
}, n);
|
1124
1124
|
};
|
1125
1125
|
}
|
1126
|
-
function
|
1127
|
-
s ?
|
1126
|
+
function Cn(s, e, t) {
|
1127
|
+
s ? F(t, s, e) : e();
|
1128
1128
|
}
|
1129
|
-
function
|
1129
|
+
function dr(s, e, t, n, i, r, o, a) {
|
1130
1130
|
var l = [], c = 0, h = 0, u = !1, p = function() {
|
1131
1131
|
u && !l.length && !c && e.complete();
|
1132
1132
|
}, d = function(f) {
|
1133
1133
|
return c < n ? b(f) : l.push(f);
|
1134
1134
|
}, b = function(f) {
|
1135
1135
|
r && e.next(f), c++;
|
1136
|
-
var
|
1137
|
-
|
1138
|
-
i == null || i(
|
1136
|
+
var I = !1;
|
1137
|
+
B(t(f, h++)).subscribe(P(e, function(N) {
|
1138
|
+
i == null || i(N), r ? d(N) : e.next(N);
|
1139
1139
|
}, function() {
|
1140
|
-
|
1140
|
+
I = !0;
|
1141
1141
|
}, void 0, function() {
|
1142
|
-
if (
|
1142
|
+
if (I)
|
1143
1143
|
try {
|
1144
1144
|
c--;
|
1145
|
-
for (var
|
1146
|
-
var
|
1147
|
-
o ?
|
1148
|
-
return b(
|
1149
|
-
}) : b(
|
1145
|
+
for (var N = function() {
|
1146
|
+
var V = l.shift();
|
1147
|
+
o ? F(e, o, function() {
|
1148
|
+
return b(V);
|
1149
|
+
}) : b(V);
|
1150
1150
|
}; l.length && c < n; )
|
1151
|
-
|
1151
|
+
N();
|
1152
1152
|
p();
|
1153
|
-
} catch (
|
1154
|
-
e.error(
|
1153
|
+
} catch (V) {
|
1154
|
+
e.error(V);
|
1155
1155
|
}
|
1156
1156
|
}));
|
1157
1157
|
};
|
@@ -1161,34 +1161,34 @@ function pr(s, e, t, n, i, r, o, a) {
|
|
1161
1161
|
a == null || a();
|
1162
1162
|
};
|
1163
1163
|
}
|
1164
|
-
function
|
1165
|
-
return t === void 0 && (t = 1 / 0),
|
1166
|
-
return
|
1164
|
+
function Gt(s, e, t) {
|
1165
|
+
return t === void 0 && (t = 1 / 0), $(e) ? Gt(function(n, i) {
|
1166
|
+
return Qe(function(r, o) {
|
1167
1167
|
return e(n, r, i, o);
|
1168
|
-
})(
|
1169
|
-
}, t) : (typeof e == "number" && (t = e),
|
1170
|
-
return
|
1168
|
+
})(B(s(n, i)));
|
1169
|
+
}, t) : (typeof e == "number" && (t = e), K(function(n, i) {
|
1170
|
+
return dr(n, i, s, t);
|
1171
1171
|
}));
|
1172
1172
|
}
|
1173
|
-
function
|
1174
|
-
return s === void 0 && (s = 1 / 0),
|
1173
|
+
function fr(s) {
|
1174
|
+
return s === void 0 && (s = 1 / 0), Gt(Oe, s);
|
1175
1175
|
}
|
1176
|
-
var
|
1177
|
-
function
|
1178
|
-
if (
|
1179
|
-
return
|
1180
|
-
var i =
|
1176
|
+
var gr = ["addListener", "removeListener"], mr = ["addEventListener", "removeEventListener"], vr = ["on", "off"];
|
1177
|
+
function Ke(s, e, t, n) {
|
1178
|
+
if ($(t) && (n = t, t = void 0), n)
|
1179
|
+
return Ke(s, e, t).pipe(Rs(n));
|
1180
|
+
var i = Y($r(s) ? mr.map(function(a) {
|
1181
1181
|
return function(l) {
|
1182
1182
|
return s[a](e, l, t);
|
1183
1183
|
};
|
1184
|
-
}) :
|
1185
|
-
if (!r &&
|
1186
|
-
return
|
1187
|
-
return
|
1188
|
-
})(
|
1184
|
+
}) : br(s) ? gr.map(An(s, e)) : yr(s) ? vr.map(An(s, e)) : [], 2), r = i[0], o = i[1];
|
1185
|
+
if (!r && Kt(s))
|
1186
|
+
return Gt(function(a) {
|
1187
|
+
return Ke(a, e, t);
|
1188
|
+
})(B(s));
|
1189
1189
|
if (!r)
|
1190
1190
|
throw new TypeError("Invalid event target");
|
1191
|
-
return new
|
1191
|
+
return new A(function(a) {
|
1192
1192
|
var l = function() {
|
1193
1193
|
for (var c = [], h = 0; h < arguments.length; h++)
|
1194
1194
|
c[h] = arguments[h];
|
@@ -1199,32 +1199,32 @@ function Qe(s, e, t, n) {
|
|
1199
1199
|
};
|
1200
1200
|
});
|
1201
1201
|
}
|
1202
|
-
function
|
1202
|
+
function An(s, e) {
|
1203
1203
|
return function(t) {
|
1204
1204
|
return function(n) {
|
1205
1205
|
return s[t](e, n);
|
1206
1206
|
};
|
1207
1207
|
};
|
1208
1208
|
}
|
1209
|
-
function vr(s) {
|
1210
|
-
return y(s.addListener) && y(s.removeListener);
|
1211
|
-
}
|
1212
1209
|
function br(s) {
|
1213
|
-
return
|
1210
|
+
return $(s.addListener) && $(s.removeListener);
|
1211
|
+
}
|
1212
|
+
function yr(s) {
|
1213
|
+
return $(s.on) && $(s.off);
|
1214
1214
|
}
|
1215
1215
|
function $r(s) {
|
1216
|
-
return
|
1216
|
+
return $(s.addEventListener) && $(s.removeEventListener);
|
1217
1217
|
}
|
1218
|
-
function
|
1218
|
+
function xr() {
|
1219
1219
|
for (var s = [], e = 0; e < arguments.length; e++)
|
1220
1220
|
s[e] = arguments[e];
|
1221
|
-
var t =
|
1222
|
-
return i.length ? i.length === 1 ?
|
1221
|
+
var t = Qt(s), n = Ni(s, 1 / 0), i = s;
|
1222
|
+
return i.length ? i.length === 1 ? B(i[0]) : fr(n)(lt(i, t)) : Pe;
|
1223
1223
|
}
|
1224
1224
|
function Mt(s) {
|
1225
1225
|
return s <= 0 ? function() {
|
1226
1226
|
return Pe;
|
1227
|
-
} :
|
1227
|
+
} : K(function(e, t) {
|
1228
1228
|
var n = 0;
|
1229
1229
|
e.subscribe(P(t, function(i) {
|
1230
1230
|
++n <= s && (t.next(i), s <= n && t.complete());
|
@@ -1232,14 +1232,14 @@ function Mt(s) {
|
|
1232
1232
|
});
|
1233
1233
|
}
|
1234
1234
|
function pe(s, e) {
|
1235
|
-
return
|
1235
|
+
return K(function(t, n) {
|
1236
1236
|
var i = null, r = 0, o = !1, a = function() {
|
1237
1237
|
return o && !i && n.complete();
|
1238
1238
|
};
|
1239
1239
|
t.subscribe(P(n, function(l) {
|
1240
1240
|
i == null || i.unsubscribe();
|
1241
1241
|
var c = 0, h = r++;
|
1242
|
-
|
1242
|
+
B(s(l, h)).subscribe(i = P(n, function(u) {
|
1243
1243
|
return n.next(e ? e(l, u, h, c++) : u);
|
1244
1244
|
}, function() {
|
1245
1245
|
i = null, a();
|
@@ -1249,39 +1249,39 @@ function pe(s, e) {
|
|
1249
1249
|
}));
|
1250
1250
|
});
|
1251
1251
|
}
|
1252
|
-
function
|
1253
|
-
return
|
1254
|
-
|
1252
|
+
function zt(s) {
|
1253
|
+
return K(function(e, t) {
|
1254
|
+
B(s).subscribe(P(t, function() {
|
1255
1255
|
return t.complete();
|
1256
|
-
},
|
1256
|
+
}, Ye)), !t.closed && e.subscribe(t);
|
1257
1257
|
});
|
1258
1258
|
}
|
1259
|
-
function
|
1259
|
+
function Ut() {
|
1260
1260
|
for (var s = [], e = 0; e < arguments.length; e++)
|
1261
1261
|
s[e] = arguments[e];
|
1262
|
-
var t =
|
1263
|
-
return
|
1262
|
+
var t = $s(s);
|
1263
|
+
return K(function(n, i) {
|
1264
1264
|
for (var r = s.length, o = new Array(r), a = s.map(function() {
|
1265
1265
|
return !1;
|
1266
1266
|
}), l = !1, c = function(u) {
|
1267
|
-
|
1268
|
-
o[u] = p, !l && !a[u] && (a[u] = !0, (l = a.every(
|
1269
|
-
},
|
1267
|
+
B(s[u]).subscribe(P(i, function(p) {
|
1268
|
+
o[u] = p, !l && !a[u] && (a[u] = !0, (l = a.every(Oe)) && (a = null));
|
1269
|
+
}, Ye));
|
1270
1270
|
}, h = 0; h < r; h++)
|
1271
1271
|
c(h);
|
1272
1272
|
n.subscribe(P(i, function(u) {
|
1273
1273
|
if (l) {
|
1274
|
-
var p =
|
1275
|
-
i.next(t ? t.apply(void 0,
|
1274
|
+
var p = ne([u], Y(o));
|
1275
|
+
i.next(t ? t.apply(void 0, ne([], Y(p))) : p);
|
1276
1276
|
}
|
1277
1277
|
}));
|
1278
1278
|
});
|
1279
1279
|
}
|
1280
|
-
var
|
1280
|
+
var Z = /* @__PURE__ */ ((s) => (s.User = "user", s.Agent = "agent", s.System = "system", s))(Z || {});
|
1281
1281
|
const Is = () => crypto.randomUUID();
|
1282
|
-
class
|
1282
|
+
class ct {
|
1283
1283
|
constructor(e, t, n) {
|
1284
|
-
this.type = e, this.sender = t, this.messages = n, this.status = "delivered", this.didUpdate = new
|
1284
|
+
this.type = e, this.sender = t, this.messages = n, this.status = "delivered", this.didUpdate = new _(), this.actions$ = new _(), this.remove$ = new _(), this.timestamp = Date.now(), this.id = Is();
|
1285
1285
|
}
|
1286
1286
|
update(e) {
|
1287
1287
|
this.messages = [
|
@@ -1297,13 +1297,13 @@ class lt {
|
|
1297
1297
|
this.remove$.next();
|
1298
1298
|
}
|
1299
1299
|
}
|
1300
|
-
class
|
1300
|
+
class wr {
|
1301
1301
|
constructor(e) {
|
1302
|
-
this.name = e, this.print$ = new
|
1302
|
+
this.name = e, this.print$ = new _();
|
1303
1303
|
}
|
1304
1304
|
print(e, t = "html") {
|
1305
|
-
const n = new
|
1306
|
-
|
1305
|
+
const n = new ct(
|
1306
|
+
Z.Agent,
|
1307
1307
|
{ name: this.name },
|
1308
1308
|
[
|
1309
1309
|
{
|
@@ -1317,13 +1317,13 @@ class xr {
|
|
1317
1317
|
return this.print$.asObservable();
|
1318
1318
|
}
|
1319
1319
|
}
|
1320
|
-
class
|
1320
|
+
class kr {
|
1321
1321
|
constructor(e) {
|
1322
|
-
this.name = e, this.print$ = new
|
1322
|
+
this.name = e, this.print$ = new _();
|
1323
1323
|
}
|
1324
1324
|
print(e) {
|
1325
|
-
const t = new
|
1326
|
-
|
1325
|
+
const t = new ct(
|
1326
|
+
Z.User,
|
1327
1327
|
{ name: this.name },
|
1328
1328
|
[
|
1329
1329
|
{
|
@@ -1337,13 +1337,13 @@ class wr {
|
|
1337
1337
|
return this.print$.asObservable();
|
1338
1338
|
}
|
1339
1339
|
}
|
1340
|
-
class
|
1340
|
+
class _r {
|
1341
1341
|
constructor() {
|
1342
|
-
this.print$ = new
|
1342
|
+
this.print$ = new _(), this.name = "system";
|
1343
1343
|
}
|
1344
1344
|
print(e) {
|
1345
|
-
const t = new
|
1346
|
-
|
1345
|
+
const t = new ct(
|
1346
|
+
Z.System,
|
1347
1347
|
{ name: this.name },
|
1348
1348
|
[
|
1349
1349
|
{
|
@@ -1359,7 +1359,7 @@ class kr {
|
|
1359
1359
|
}
|
1360
1360
|
class Il {
|
1361
1361
|
constructor(e, t) {
|
1362
|
-
this.name = e, this.component = t, this.print$ = new
|
1362
|
+
this.name = e, this.component = t, this.print$ = new _(), this.typingState$ = new U(!1), this.complete$ = new _(), this.system = this.createSystem(), this.rehydrate$ = new _(), this.saveToCurrentSession$ = new _(), this.showChatOverlay$ = new U(!1), this.onComplete = () => this.complete$.asObservable();
|
1363
1363
|
}
|
1364
1364
|
connect(e = {}) {
|
1365
1365
|
this.complete$.pipe(Mt(1)).subscribe(() => {
|
@@ -1371,10 +1371,10 @@ class Il {
|
|
1371
1371
|
disconnected() {
|
1372
1372
|
}
|
1373
1373
|
onUserSubmit(e) {
|
1374
|
-
this.print(
|
1374
|
+
this.print(Z.User, e.text);
|
1375
1375
|
}
|
1376
1376
|
print(e, t) {
|
1377
|
-
const n = new
|
1377
|
+
const n = new ct(
|
1378
1378
|
e,
|
1379
1379
|
{
|
1380
1380
|
name: ""
|
@@ -1391,19 +1391,19 @@ class Il {
|
|
1391
1391
|
return this.print$.next(e), e;
|
1392
1392
|
}
|
1393
1393
|
createAgent(e) {
|
1394
|
-
const t = new
|
1394
|
+
const t = new wr(e);
|
1395
1395
|
return t.subscribe().subscribe((n) => {
|
1396
1396
|
this.playNotification(), this.printEntry(n);
|
1397
1397
|
}), t;
|
1398
1398
|
}
|
1399
1399
|
createUser(e) {
|
1400
|
-
const t = new
|
1400
|
+
const t = new kr(e);
|
1401
1401
|
return t.subscribe().subscribe((n) => {
|
1402
1402
|
this.printEntry(n);
|
1403
1403
|
}), t;
|
1404
1404
|
}
|
1405
1405
|
createSystem() {
|
1406
|
-
const e = new
|
1406
|
+
const e = new _r();
|
1407
1407
|
return e.subscribe().subscribe((t) => {
|
1408
1408
|
this.printEntry(t);
|
1409
1409
|
}), e;
|
@@ -1439,17 +1439,17 @@ class Il {
|
|
1439
1439
|
* Copyright 2019 Google LLC
|
1440
1440
|
* SPDX-License-Identifier: BSD-3-Clause
|
1441
1441
|
*/
|
1442
|
-
const
|
1442
|
+
const We = globalThis, Xt = We.ShadowRoot && (We.ShadyCSS === void 0 || We.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Vt = Symbol(), En = /* @__PURE__ */ new WeakMap();
|
1443
1443
|
let Ms = class {
|
1444
1444
|
constructor(e, t, n) {
|
1445
|
-
if (this._$cssResult$ = !0, n !==
|
1445
|
+
if (this._$cssResult$ = !0, n !== Vt)
|
1446
1446
|
throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
1447
1447
|
this.cssText = e, this.t = t;
|
1448
1448
|
}
|
1449
1449
|
get styleSheet() {
|
1450
1450
|
let e = this.o;
|
1451
1451
|
const t = this.t;
|
1452
|
-
if (
|
1452
|
+
if (Xt && e === void 0) {
|
1453
1453
|
const n = t !== void 0 && t.length === 1;
|
1454
1454
|
n && (e = En.get(t)), e === void 0 && ((this.o = e = new CSSStyleSheet()).replaceSync(this.cssText), n && En.set(t, e));
|
1455
1455
|
}
|
@@ -1459,7 +1459,7 @@ let Ms = class {
|
|
1459
1459
|
return this.cssText;
|
1460
1460
|
}
|
1461
1461
|
};
|
1462
|
-
const
|
1462
|
+
const Sr = (s) => new Ms(typeof s == "string" ? s : s + "", void 0, Vt), E = (s, ...e) => {
|
1463
1463
|
const t = s.length === 1 ? s[0] : e.reduce((n, i, r) => n + ((o) => {
|
1464
1464
|
if (o._$cssResult$ === !0)
|
1465
1465
|
return o.cssText;
|
@@ -1467,30 +1467,30 @@ const _r = (s) => new Ms(typeof s == "string" ? s : s + "", void 0, Xt), A = (s,
|
|
1467
1467
|
return o;
|
1468
1468
|
throw Error("Value passed to 'css' function must be a 'css' function result: " + o + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
|
1469
1469
|
})(i) + s[r + 1], s[0]);
|
1470
|
-
return new Ms(t, s,
|
1471
|
-
},
|
1472
|
-
if (
|
1470
|
+
return new Ms(t, s, Vt);
|
1471
|
+
}, Cr = (s, e) => {
|
1472
|
+
if (Xt)
|
1473
1473
|
s.adoptedStyleSheets = e.map((t) => t instanceof CSSStyleSheet ? t : t.styleSheet);
|
1474
1474
|
else
|
1475
1475
|
for (const t of e) {
|
1476
|
-
const n = document.createElement("style"), i =
|
1476
|
+
const n = document.createElement("style"), i = We.litNonce;
|
1477
1477
|
i !== void 0 && n.setAttribute("nonce", i), n.textContent = t.cssText, s.appendChild(n);
|
1478
1478
|
}
|
1479
|
-
}, Tn =
|
1479
|
+
}, Tn = Xt ? (s) => s : (s) => s instanceof CSSStyleSheet ? ((e) => {
|
1480
1480
|
let t = "";
|
1481
1481
|
for (const n of e.cssRules)
|
1482
1482
|
t += n.cssText;
|
1483
|
-
return
|
1483
|
+
return Sr(t);
|
1484
1484
|
})(s) : s;
|
1485
1485
|
/**
|
1486
1486
|
* @license
|
1487
1487
|
* Copyright 2017 Google LLC
|
1488
1488
|
* SPDX-License-Identifier: BSD-3-Clause
|
1489
1489
|
*/
|
1490
|
-
const { is:
|
1490
|
+
const { is: Ar, defineProperty: Er, getOwnPropertyDescriptor: Tr, getOwnPropertyNames: Lr, getOwnPropertySymbols: Or, getPrototypeOf: Pr } = Object, W = globalThis, Ln = W.trustedTypes, Rr = Ln ? Ln.emptyScript : "", kt = W.reactiveElementPolyfillSupport, xe = (s, e) => s, Ge = { toAttribute(s, e) {
|
1491
1491
|
switch (e) {
|
1492
1492
|
case Boolean:
|
1493
|
-
s = s ?
|
1493
|
+
s = s ? Rr : null;
|
1494
1494
|
break;
|
1495
1495
|
case Object:
|
1496
1496
|
case Array:
|
@@ -1515,8 +1515,8 @@ const { is: Cr, defineProperty: Ar, getOwnPropertyDescriptor: Er, getOwnProperty
|
|
1515
1515
|
}
|
1516
1516
|
}
|
1517
1517
|
return t;
|
1518
|
-
} }, Jt = (s, e) => !
|
1519
|
-
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")),
|
1518
|
+
} }, Jt = (s, e) => !Ar(s, e), On = { attribute: !0, type: String, converter: Ge, reflect: !1, hasChanged: Jt };
|
1519
|
+
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), W.litPropertyMetadata ?? (W.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
1520
1520
|
let ae = class extends HTMLElement {
|
1521
1521
|
static addInitializer(e) {
|
1522
1522
|
this._$Ei(), (this.l ?? (this.l = [])).push(e);
|
@@ -1524,14 +1524,14 @@ let ae = class extends HTMLElement {
|
|
1524
1524
|
static get observedAttributes() {
|
1525
1525
|
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
1526
1526
|
}
|
1527
|
-
static createProperty(e, t =
|
1527
|
+
static createProperty(e, t = On) {
|
1528
1528
|
if (t.state && (t.attribute = !1), this._$Ei(), this.elementProperties.set(e, t), !t.noAccessor) {
|
1529
1529
|
const n = Symbol(), i = this.getPropertyDescriptor(e, n, t);
|
1530
|
-
i !== void 0 &&
|
1530
|
+
i !== void 0 && Er(this.prototype, e, i);
|
1531
1531
|
}
|
1532
1532
|
}
|
1533
1533
|
static getPropertyDescriptor(e, t, n) {
|
1534
|
-
const { get: i, set: r } =
|
1534
|
+
const { get: i, set: r } = Tr(this.prototype, e) ?? { get() {
|
1535
1535
|
return this[t];
|
1536
1536
|
}, set(o) {
|
1537
1537
|
this[t] = o;
|
@@ -1544,19 +1544,19 @@ let ae = class extends HTMLElement {
|
|
1544
1544
|
}, configurable: !0, enumerable: !0 };
|
1545
1545
|
}
|
1546
1546
|
static getPropertyOptions(e) {
|
1547
|
-
return this.elementProperties.get(e) ??
|
1547
|
+
return this.elementProperties.get(e) ?? On;
|
1548
1548
|
}
|
1549
1549
|
static _$Ei() {
|
1550
|
-
if (this.hasOwnProperty(
|
1550
|
+
if (this.hasOwnProperty(xe("elementProperties")))
|
1551
1551
|
return;
|
1552
|
-
const e =
|
1552
|
+
const e = Pr(this);
|
1553
1553
|
e.finalize(), e.l !== void 0 && (this.l = [...e.l]), this.elementProperties = new Map(e.elementProperties);
|
1554
1554
|
}
|
1555
1555
|
static finalize() {
|
1556
|
-
if (this.hasOwnProperty(
|
1556
|
+
if (this.hasOwnProperty(xe("finalized")))
|
1557
1557
|
return;
|
1558
|
-
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(
|
1559
|
-
const t = this.properties, n = [...
|
1558
|
+
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(xe("properties"))) {
|
1559
|
+
const t = this.properties, n = [...Lr(t), ...Or(t)];
|
1560
1560
|
for (const i of n)
|
1561
1561
|
this.createProperty(i, t[i]);
|
1562
1562
|
}
|
@@ -1611,7 +1611,7 @@ let ae = class extends HTMLElement {
|
|
1611
1611
|
}
|
1612
1612
|
createRenderRoot() {
|
1613
1613
|
const e = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
1614
|
-
return
|
1614
|
+
return Cr(e, this.constructor.elementStyles), e;
|
1615
1615
|
}
|
1616
1616
|
connectedCallback() {
|
1617
1617
|
var e;
|
@@ -1636,7 +1636,7 @@ let ae = class extends HTMLElement {
|
|
1636
1636
|
var r;
|
1637
1637
|
const n = this.constructor.elementProperties.get(e), i = this.constructor._$Eu(e, n);
|
1638
1638
|
if (i !== void 0 && n.reflect === !0) {
|
1639
|
-
const o = (((r = n.converter) == null ? void 0 : r.toAttribute) !== void 0 ? n.converter :
|
1639
|
+
const o = (((r = n.converter) == null ? void 0 : r.toAttribute) !== void 0 ? n.converter : Ge).toAttribute(t, n.type);
|
1640
1640
|
this._$Em = e, o == null ? this.removeAttribute(i) : this.setAttribute(i, o), this._$Em = null;
|
1641
1641
|
}
|
1642
1642
|
}
|
@@ -1644,7 +1644,7 @@ let ae = class extends HTMLElement {
|
|
1644
1644
|
var r;
|
1645
1645
|
const n = this.constructor, i = n._$Eh.get(e);
|
1646
1646
|
if (i !== void 0 && this._$Em !== i) {
|
1647
|
-
const o = n.getPropertyOptions(i), a = typeof o.converter == "function" ? { fromAttribute: o.converter } : ((r = o.converter) == null ? void 0 : r.fromAttribute) !== void 0 ? o.converter :
|
1647
|
+
const o = n.getPropertyOptions(i), a = typeof o.converter == "function" ? { fromAttribute: o.converter } : ((r = o.converter) == null ? void 0 : r.fromAttribute) !== void 0 ? o.converter : Ge;
|
1648
1648
|
this._$Em = i, this[i] = a.fromAttribute(t, o.type), this._$Em = null;
|
1649
1649
|
}
|
1650
1650
|
}
|
@@ -1728,59 +1728,59 @@ let ae = class extends HTMLElement {
|
|
1728
1728
|
firstUpdated(e) {
|
1729
1729
|
}
|
1730
1730
|
};
|
1731
|
-
ae.elementStyles = [], ae.shadowRootOptions = { mode: "open" }, ae[
|
1731
|
+
ae.elementStyles = [], ae.shadowRootOptions = { mode: "open" }, ae[xe("elementProperties")] = /* @__PURE__ */ new Map(), ae[xe("finalized")] = /* @__PURE__ */ new Map(), kt == null || kt({ ReactiveElement: ae }), (W.reactiveElementVersions ?? (W.reactiveElementVersions = [])).push("2.0.4");
|
1732
1732
|
/**
|
1733
1733
|
* @license
|
1734
1734
|
* Copyright 2017 Google LLC
|
1735
1735
|
* SPDX-License-Identifier: BSD-3-Clause
|
1736
1736
|
*/
|
1737
|
-
const
|
1738
|
-
\f\r]`,
|
1739
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), Mn = /'/g, zn = /"/g, Hs = /^(?:script|style|textarea|title)$/i,
|
1737
|
+
const we = globalThis, Xe = we.trustedTypes, Pn = Xe ? Xe.createPolicy("lit-html", { createHTML: (s) => s }) : void 0, zs = "$lit$", q = `lit$${(Math.random() + "").slice(9)}$`, Us = "?" + q, Ir = `<${Us}>`, se = document, Ce = () => se.createComment(""), Ae = (s) => s === null || typeof s != "object" && typeof s != "function", js = Array.isArray, Mr = (s) => js(s) || typeof (s == null ? void 0 : s[Symbol.iterator]) == "function", _t = `[
|
1738
|
+
\f\r]`, ye = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Rn = /-->/g, In = />/g, J = RegExp(`>|${_t}(?:([^\\s"'>=/]+)(${_t}*=${_t}*(?:[^
|
1739
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), Mn = /'/g, zn = /"/g, Hs = /^(?:script|style|textarea|title)$/i, zr = (s) => (e, ...t) => ({ _$litType$: s, strings: e, values: t }), m = zr(1), Q = Symbol.for("lit-noChange"), g = Symbol.for("lit-nothing"), Un = /* @__PURE__ */ new WeakMap(), te = se.createTreeWalker(se, 129);
|
1740
1740
|
function Ds(s, e) {
|
1741
1741
|
if (!Array.isArray(s) || !s.hasOwnProperty("raw"))
|
1742
1742
|
throw Error("invalid template strings array");
|
1743
1743
|
return Pn !== void 0 ? Pn.createHTML(e) : e;
|
1744
1744
|
}
|
1745
|
-
const
|
1745
|
+
const Ur = (s, e) => {
|
1746
1746
|
const t = s.length - 1, n = [];
|
1747
|
-
let i, r = e === 2 ? "<svg>" : "", o =
|
1747
|
+
let i, r = e === 2 ? "<svg>" : "", o = ye;
|
1748
1748
|
for (let a = 0; a < t; a++) {
|
1749
1749
|
const l = s[a];
|
1750
1750
|
let c, h, u = -1, p = 0;
|
1751
1751
|
for (; p < l.length && (o.lastIndex = p, h = o.exec(l), h !== null); )
|
1752
|
-
p = o.lastIndex, o ===
|
1753
|
-
const d = o ===
|
1754
|
-
r += o ===
|
1752
|
+
p = o.lastIndex, o === ye ? h[1] === "!--" ? o = Rn : h[1] !== void 0 ? o = In : h[2] !== void 0 ? (Hs.test(h[2]) && (i = RegExp("</" + h[2], "g")), o = J) : h[3] !== void 0 && (o = J) : o === J ? h[0] === ">" ? (o = i ?? ye, u = -1) : h[1] === void 0 ? u = -2 : (u = o.lastIndex - h[2].length, c = h[1], o = h[3] === void 0 ? J : h[3] === '"' ? zn : Mn) : o === zn || o === Mn ? o = J : o === Rn || o === In ? o = ye : (o = J, i = void 0);
|
1753
|
+
const d = o === J && s[a + 1].startsWith("/>") ? " " : "";
|
1754
|
+
r += o === ye ? l + Ir : u >= 0 ? (n.push(c), l.slice(0, u) + zs + l.slice(u) + q + d) : l + q + (u === -2 ? a : d);
|
1755
1755
|
}
|
1756
1756
|
return [Ds(s, r + (s[t] || "<?>") + (e === 2 ? "</svg>" : "")), n];
|
1757
1757
|
};
|
1758
|
-
class
|
1758
|
+
class Ee {
|
1759
1759
|
constructor({ strings: e, _$litType$: t }, n) {
|
1760
1760
|
let i;
|
1761
1761
|
this.parts = [];
|
1762
1762
|
let r = 0, o = 0;
|
1763
|
-
const a = e.length - 1, l = this.parts, [c, h] =
|
1764
|
-
if (this.el =
|
1763
|
+
const a = e.length - 1, l = this.parts, [c, h] = Ur(e, t);
|
1764
|
+
if (this.el = Ee.createElement(c, n), te.currentNode = this.el.content, t === 2) {
|
1765
1765
|
const u = this.el.content.firstChild;
|
1766
1766
|
u.replaceWith(...u.childNodes);
|
1767
1767
|
}
|
1768
|
-
for (; (i =
|
1768
|
+
for (; (i = te.nextNode()) !== null && l.length < a; ) {
|
1769
1769
|
if (i.nodeType === 1) {
|
1770
1770
|
if (i.hasAttributes())
|
1771
1771
|
for (const u of i.getAttributeNames())
|
1772
1772
|
if (u.endsWith(zs)) {
|
1773
|
-
const p = h[o++], d = i.getAttribute(u).split(
|
1774
|
-
l.push({ type: 1, index: r, name: b[2], strings: d, ctor: b[1] === "." ?
|
1773
|
+
const p = h[o++], d = i.getAttribute(u).split(q), b = /([.?@])?(.*)/.exec(p);
|
1774
|
+
l.push({ type: 1, index: r, name: b[2], strings: d, ctor: b[1] === "." ? Hr : b[1] === "?" ? Dr : b[1] === "@" ? Br : ht }), i.removeAttribute(u);
|
1775
1775
|
} else
|
1776
|
-
u.startsWith(
|
1776
|
+
u.startsWith(q) && (l.push({ type: 6, index: r }), i.removeAttribute(u));
|
1777
1777
|
if (Hs.test(i.tagName)) {
|
1778
|
-
const u = i.textContent.split(
|
1778
|
+
const u = i.textContent.split(q), p = u.length - 1;
|
1779
1779
|
if (p > 0) {
|
1780
|
-
i.textContent =
|
1780
|
+
i.textContent = Xe ? Xe.emptyScript : "";
|
1781
1781
|
for (let d = 0; d < p; d++)
|
1782
|
-
i.append(u[d],
|
1783
|
-
i.append(u[p],
|
1782
|
+
i.append(u[d], Ce()), te.nextNode(), l.push({ type: 2, index: ++r });
|
1783
|
+
i.append(u[p], Ce());
|
1784
1784
|
}
|
1785
1785
|
}
|
1786
1786
|
} else if (i.nodeType === 8)
|
@@ -1788,26 +1788,26 @@ class Ae {
|
|
1788
1788
|
l.push({ type: 2, index: r });
|
1789
1789
|
else {
|
1790
1790
|
let u = -1;
|
1791
|
-
for (; (u = i.data.indexOf(
|
1792
|
-
l.push({ type: 7, index: r }), u +=
|
1791
|
+
for (; (u = i.data.indexOf(q, u + 1)) !== -1; )
|
1792
|
+
l.push({ type: 7, index: r }), u += q.length - 1;
|
1793
1793
|
}
|
1794
1794
|
r++;
|
1795
1795
|
}
|
1796
1796
|
}
|
1797
1797
|
static createElement(e, t) {
|
1798
|
-
const n =
|
1798
|
+
const n = se.createElement("template");
|
1799
1799
|
return n.innerHTML = e, n;
|
1800
1800
|
}
|
1801
1801
|
}
|
1802
1802
|
function me(s, e, t = s, n) {
|
1803
1803
|
var o, a;
|
1804
|
-
if (e ===
|
1804
|
+
if (e === Q)
|
1805
1805
|
return e;
|
1806
1806
|
let i = n !== void 0 ? (o = t._$Co) == null ? void 0 : o[n] : t._$Cl;
|
1807
|
-
const r =
|
1807
|
+
const r = Ae(e) ? void 0 : e._$litDirective$;
|
1808
1808
|
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(s), i._$AT(s, t, n)), n !== void 0 ? (t._$Co ?? (t._$Co = []))[n] = i : t._$Cl = i), i !== void 0 && (e = me(s, i._$AS(s, e.values), i, n)), e;
|
1809
1809
|
}
|
1810
|
-
class
|
1810
|
+
class jr {
|
1811
1811
|
constructor(e, t) {
|
1812
1812
|
this._$AV = [], this._$AN = void 0, this._$AD = e, this._$AM = t;
|
1813
1813
|
}
|
@@ -1818,17 +1818,17 @@ class Ur {
|
|
1818
1818
|
return this._$AM._$AU;
|
1819
1819
|
}
|
1820
1820
|
u(e) {
|
1821
|
-
const { el: { content: t }, parts: n } = this._$AD, i = ((e == null ? void 0 : e.creationScope) ??
|
1822
|
-
|
1823
|
-
let r =
|
1821
|
+
const { el: { content: t }, parts: n } = this._$AD, i = ((e == null ? void 0 : e.creationScope) ?? se).importNode(t, !0);
|
1822
|
+
te.currentNode = i;
|
1823
|
+
let r = te.nextNode(), o = 0, a = 0, l = n[0];
|
1824
1824
|
for (; l !== void 0; ) {
|
1825
1825
|
if (o === l.index) {
|
1826
1826
|
let c;
|
1827
|
-
l.type === 2 ? c = new Re(r, r.nextSibling, this, e) : l.type === 1 ? c = new l.ctor(r, l.name, l.strings, this, e) : l.type === 6 && (c = new
|
1827
|
+
l.type === 2 ? c = new Re(r, r.nextSibling, this, e) : l.type === 1 ? c = new l.ctor(r, l.name, l.strings, this, e) : l.type === 6 && (c = new Nr(r, this, e)), this._$AV.push(c), l = n[++a];
|
1828
1828
|
}
|
1829
|
-
o !== (l == null ? void 0 : l.index) && (r =
|
1829
|
+
o !== (l == null ? void 0 : l.index) && (r = te.nextNode(), o++);
|
1830
1830
|
}
|
1831
|
-
return
|
1831
|
+
return te.currentNode = se, i;
|
1832
1832
|
}
|
1833
1833
|
p(e) {
|
1834
1834
|
let t = 0;
|
@@ -1856,7 +1856,7 @@ class Re {
|
|
1856
1856
|
return this._$AB;
|
1857
1857
|
}
|
1858
1858
|
_$AI(e, t = this) {
|
1859
|
-
e = me(this, e, t),
|
1859
|
+
e = me(this, e, t), Ae(e) ? e === g || e == null || e === "" ? (this._$AH !== g && this._$AR(), this._$AH = g) : e !== this._$AH && e !== Q && this._(e) : e._$litType$ !== void 0 ? this.$(e) : e.nodeType !== void 0 ? this.T(e) : Mr(e) ? this.k(e) : this._(e);
|
1860
1860
|
}
|
1861
1861
|
S(e) {
|
1862
1862
|
return this._$AA.parentNode.insertBefore(e, this._$AB);
|
@@ -1865,28 +1865,28 @@ class Re {
|
|
1865
1865
|
this._$AH !== e && (this._$AR(), this._$AH = this.S(e));
|
1866
1866
|
}
|
1867
1867
|
_(e) {
|
1868
|
-
this._$AH !== g &&
|
1868
|
+
this._$AH !== g && Ae(this._$AH) ? this._$AA.nextSibling.data = e : this.T(se.createTextNode(e)), this._$AH = e;
|
1869
1869
|
}
|
1870
1870
|
$(e) {
|
1871
1871
|
var r;
|
1872
|
-
const { values: t, _$litType$: n } = e, i = typeof n == "number" ? this._$AC(e) : (n.el === void 0 && (n.el =
|
1872
|
+
const { values: t, _$litType$: n } = e, i = typeof n == "number" ? this._$AC(e) : (n.el === void 0 && (n.el = Ee.createElement(Ds(n.h, n.h[0]), this.options)), n);
|
1873
1873
|
if (((r = this._$AH) == null ? void 0 : r._$AD) === i)
|
1874
1874
|
this._$AH.p(t);
|
1875
1875
|
else {
|
1876
|
-
const o = new
|
1876
|
+
const o = new jr(i, this), a = o.u(this.options);
|
1877
1877
|
o.p(t), this.T(a), this._$AH = o;
|
1878
1878
|
}
|
1879
1879
|
}
|
1880
1880
|
_$AC(e) {
|
1881
1881
|
let t = Un.get(e.strings);
|
1882
|
-
return t === void 0 && Un.set(e.strings, t = new
|
1882
|
+
return t === void 0 && Un.set(e.strings, t = new Ee(e)), t;
|
1883
1883
|
}
|
1884
1884
|
k(e) {
|
1885
1885
|
js(this._$AH) || (this._$AH = [], this._$AR());
|
1886
1886
|
const t = this._$AH;
|
1887
1887
|
let n, i = 0;
|
1888
1888
|
for (const r of e)
|
1889
|
-
i === t.length ? t.push(n = new Re(this.S(
|
1889
|
+
i === t.length ? t.push(n = new Re(this.S(Ce()), this.S(Ce()), this, this.options)) : n = t[i], n._$AI(r), i++;
|
1890
1890
|
i < t.length && (this._$AR(n && n._$AB.nextSibling, i), t.length = i);
|
1891
1891
|
}
|
1892
1892
|
_$AR(e = this._$AA.nextSibling, t) {
|
@@ -1901,7 +1901,7 @@ class Re {
|
|
1901
1901
|
this._$AM === void 0 && (this._$Cv = e, (t = this._$AP) == null || t.call(this, e));
|
1902
1902
|
}
|
1903
1903
|
}
|
1904
|
-
class
|
1904
|
+
class ht {
|
1905
1905
|
get tagName() {
|
1906
1906
|
return this.element.tagName;
|
1907
1907
|
}
|
@@ -1915,12 +1915,12 @@ class ct {
|
|
1915
1915
|
const r = this.strings;
|
1916
1916
|
let o = !1;
|
1917
1917
|
if (r === void 0)
|
1918
|
-
e = me(this, e, t, 0), o = !
|
1918
|
+
e = me(this, e, t, 0), o = !Ae(e) || e !== this._$AH && e !== Q, o && (this._$AH = e);
|
1919
1919
|
else {
|
1920
1920
|
const a = e;
|
1921
1921
|
let l, c;
|
1922
1922
|
for (e = r[0], l = 0; l < r.length - 1; l++)
|
1923
|
-
c = me(this, a[n + l], t, l), c ===
|
1923
|
+
c = me(this, a[n + l], t, l), c === Q && (c = this._$AH[l]), o || (o = !Ae(c) || c !== this._$AH[l]), c === g ? e = g : e !== g && (e += (c ?? "") + r[l + 1]), this._$AH[l] = c;
|
1924
1924
|
}
|
1925
1925
|
o && !i && this.j(e);
|
1926
1926
|
}
|
@@ -1928,7 +1928,7 @@ class ct {
|
|
1928
1928
|
e === g ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, e ?? "");
|
1929
1929
|
}
|
1930
1930
|
}
|
1931
|
-
class
|
1931
|
+
class Hr extends ht {
|
1932
1932
|
constructor() {
|
1933
1933
|
super(...arguments), this.type = 3;
|
1934
1934
|
}
|
@@ -1936,7 +1936,7 @@ class jr extends ct {
|
|
1936
1936
|
this.element[this.name] = e === g ? void 0 : e;
|
1937
1937
|
}
|
1938
1938
|
}
|
1939
|
-
let
|
1939
|
+
let Dr = class extends ht {
|
1940
1940
|
constructor() {
|
1941
1941
|
super(...arguments), this.type = 4;
|
1942
1942
|
}
|
@@ -1944,12 +1944,12 @@ let Hr = class extends ct {
|
|
1944
1944
|
this.element.toggleAttribute(this.name, !!e && e !== g);
|
1945
1945
|
}
|
1946
1946
|
};
|
1947
|
-
class
|
1947
|
+
class Br extends ht {
|
1948
1948
|
constructor(e, t, n, i, r) {
|
1949
1949
|
super(e, t, n, i, r), this.type = 5;
|
1950
1950
|
}
|
1951
1951
|
_$AI(e, t = this) {
|
1952
|
-
if ((e = me(this, e, t, 0) ?? g) ===
|
1952
|
+
if ((e = me(this, e, t, 0) ?? g) === Q)
|
1953
1953
|
return;
|
1954
1954
|
const n = this._$AH, i = e === g && n !== g || e.capture !== n.capture || e.once !== n.once || e.passive !== n.passive, r = e !== g && (n === g || i);
|
1955
1955
|
i && this.element.removeEventListener(this.name, this, n), r && this.element.addEventListener(this.name, this, e), this._$AH = e;
|
@@ -1959,7 +1959,7 @@ class Dr extends ct {
|
|
1959
1959
|
typeof this._$AH == "function" ? this._$AH.call(((t = this.options) == null ? void 0 : t.host) ?? this.element, e) : this._$AH.handleEvent(e);
|
1960
1960
|
}
|
1961
1961
|
}
|
1962
|
-
class
|
1962
|
+
class Nr {
|
1963
1963
|
constructor(e, t, n) {
|
1964
1964
|
this.element = e, this.type = 6, this._$AN = void 0, this._$AM = t, this.options = n;
|
1965
1965
|
}
|
@@ -1970,14 +1970,14 @@ class Br {
|
|
1970
1970
|
me(this, e);
|
1971
1971
|
}
|
1972
1972
|
}
|
1973
|
-
const St =
|
1974
|
-
St == null || St(
|
1975
|
-
const
|
1973
|
+
const St = we.litHtmlPolyfillSupport;
|
1974
|
+
St == null || St(Ee, Re), (we.litHtmlVersions ?? (we.litHtmlVersions = [])).push("3.1.2");
|
1975
|
+
const Fr = (s, e, t) => {
|
1976
1976
|
const n = (t == null ? void 0 : t.renderBefore) ?? e;
|
1977
1977
|
let i = n._$litPart$;
|
1978
1978
|
if (i === void 0) {
|
1979
1979
|
const r = (t == null ? void 0 : t.renderBefore) ?? null;
|
1980
|
-
n._$litPart$ = i = new Re(e.insertBefore(
|
1980
|
+
n._$litPart$ = i = new Re(e.insertBefore(Ce(), r), r, void 0, t ?? {});
|
1981
1981
|
}
|
1982
1982
|
return i._$AI(s), i;
|
1983
1983
|
};
|
@@ -1997,7 +1997,7 @@ let k = class extends ae {
|
|
1997
1997
|
}
|
1998
1998
|
update(e) {
|
1999
1999
|
const t = this.render();
|
2000
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this._$Do =
|
2000
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this._$Do = Fr(t, this.renderRoot, this.renderOptions);
|
2001
2001
|
}
|
2002
2002
|
connectedCallback() {
|
2003
2003
|
var e;
|
@@ -2008,7 +2008,7 @@ let k = class extends ae {
|
|
2008
2008
|
super.disconnectedCallback(), (e = this._$Do) == null || e.setConnected(!1);
|
2009
2009
|
}
|
2010
2010
|
render() {
|
2011
|
-
return
|
2011
|
+
return Q;
|
2012
2012
|
}
|
2013
2013
|
};
|
2014
2014
|
var ps;
|
@@ -2016,7 +2016,7 @@ k._$litElement$ = !0, k.finalized = !0, (ps = globalThis.litElementHydrateSuppor
|
|
2016
2016
|
const Ct = globalThis.litElementPolyfillSupport;
|
2017
2017
|
Ct == null || Ct({ LitElement: k });
|
2018
2018
|
(globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.0.4");
|
2019
|
-
const
|
2019
|
+
const qr = { name: "alert", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M32 60C47.464 60 60 47.464 60 32C60 16.536 47.464 4 32 4C16.536 4 4 16.536 4 32C4.01731 47.4568 16.5432 59.9827 32 60ZM32 8.30769C45.0849 8.30769 55.6923 18.9151 55.6923 32C55.6923 45.0849 45.0849 55.6923 32 55.6923C18.9151 55.6923 8.30769 45.0849 8.30769 32C8.32247 18.9212 18.9212 8.32247 32 8.30769Z"/><path d="M29.3491 38.6031V20.6807C29.348 19.8662 29.4903 19.0598 29.7675 18.3096C29.9945 17.6371 30.3484 17.0302 30.804 16.5322C31.1251 16.1524 31.5593 15.9246 32.0204 15.894C32.6852 15.894 33.3496 16.471 34.0134 17.625C34.3738 18.1337 34.5955 18.7525 34.6509 19.4042V37.3267C34.6509 37.9947 34.2454 38.6329 33.4345 39.2414C32.6632 39.835 31.7547 40.1521 30.825 40.1523C29.8423 40.1524 29.3503 39.636 29.3491 38.6031Z"/><path d="M33.66 44.6959C33.9649 45.0866 34.161 45.551 34.2284 46.0419C34.2284 46.5397 33.8893 47.0083 33.2109 47.4476C32.5638 47.8771 31.8043 48.1062 31.0275 48.1061C30.1902 48.1061 29.7716 47.7271 29.7716 46.9693C29.7703 46.3788 29.8874 45.7941 30.116 45.2496C30.3064 44.7579 30.6022 44.3138 30.9826 43.9487C31.2626 43.6591 31.6427 43.4875 32.045 43.4692C32.5635 43.4692 33.1019 43.8781 33.66 44.6959Z"/></svg>' }, Zr = { name: "check-circle-filled", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M32 4C16.536 4 4 16.536 4 32C4 47.464 16.536 60 32 60C47.464 60 60 47.464 60 32C59.9829 16.5431 47.4569 4.01712 32 4ZM44.5613 24.5793L31.6382 43.9639C31.2806 44.5011 30.7008 44.8493 30.0586 44.9126C29.988 44.9197 29.9171 44.9232 29.8462 44.9231C29.275 44.9229 28.7272 44.696 28.3233 44.2921L19.7079 35.6767C19.1639 35.1326 18.9514 34.3396 19.1505 33.5964C19.3497 32.8533 19.9302 32.2728 20.6734 32.0736C21.4166 31.8745 22.2095 32.087 22.7536 32.631L29.5117 39.3881L40.9772 22.1899C41.4016 21.5439 42.1396 21.1749 42.9111 21.2229C43.6825 21.2709 44.3691 21.7286 44.7101 22.4223C45.0511 23.1159 44.9944 23.9391 44.5613 24.5793Z"/></svg>' }, Wr = { name: "check-circle", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M31.9998 4C16.5358 4 3.99976 16.536 3.99976 32C3.99976 47.464 16.5358 60 31.9998 60C47.4637 60 59.9998 47.464 59.9998 32C59.9826 16.5431 47.4566 4.01712 31.9998 4ZM31.9998 55.6923C18.9149 55.6923 8.30745 45.0849 8.30745 32C8.30745 18.9151 18.9149 8.30769 31.9998 8.30769C45.0847 8.30769 55.6921 18.9151 55.6921 32C55.6773 45.0788 45.0785 55.6775 31.9998 55.6923ZM44.5611 24.5793L31.638 43.9639C31.2804 44.5011 30.7005 44.8493 30.0584 44.9126C29.9878 44.9197 29.9169 44.9232 29.8459 44.9231C29.2747 44.9229 28.727 44.696 28.3231 44.2921L19.7077 35.6767C19.1636 35.1326 18.9512 34.3396 19.1503 33.5964C19.3494 32.8533 19.9299 32.2728 20.6731 32.0736C21.4163 31.8745 22.2093 32.087 22.7534 32.631L29.5115 39.3881L40.9769 22.1899C41.4013 21.5439 42.1394 21.1749 42.9108 21.2229C43.6823 21.2709 44.3688 21.7286 44.7099 22.4223C45.0509 23.1159 44.9941 23.9391 44.5611 24.5793Z"/></svg>' }, Yr = { name: "chevron-down", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M53.0318 24.8653L33.5318 44.3653C33.1256 44.7717 32.5745 45.0001 31.9999 45.0001C31.4253 45.0001 30.8742 44.7717 30.468 44.3653L10.968 24.8653C10.122 24.0193 10.122 22.6476 10.968 21.8015C11.8141 20.9555 13.1858 20.9555 14.0318 21.8015L31.9999 39.7696L49.968 21.8015C50.8141 20.9555 52.1858 20.9555 53.0318 21.8015C53.8779 22.6476 53.8779 24.0193 53.0318 24.8653Z"/></svg>' }, Qr = { name: "close-circle", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M32 56C45.2548 56 56 45.2548 56 32C56 18.7452 45.2548 8 32 8C18.7452 8 8 18.7452 8 32C8 45.2548 18.7452 56 32 56ZM32 60C47.464 60 60 47.464 60 32C60 16.536 47.464 4 32 4C16.536 4 4 16.536 4 32C4 47.464 16.536 60 32 60Z"/><path d="M25.2772 22.695C24.5164 21.8942 23.2505 21.8617 22.4497 22.6225C21.6488 23.3833 21.6164 24.6492 22.3772 25.45L29.2411 32.6752L22.4773 39.795C21.7166 40.5958 21.749 41.8617 22.5498 42.6225C23.3507 43.3833 24.6166 43.3508 25.3773 42.55L31.9998 35.5791L38.6222 42.55C39.3829 43.3508 40.6488 43.3833 41.4497 42.6225C42.2505 41.8617 42.2829 40.5958 41.5222 39.795L34.7584 32.6752L41.6223 25.45C42.3831 24.6492 42.3507 23.3833 41.5498 22.6225C40.749 21.8617 39.4831 21.8942 38.7224 22.695L31.9998 29.7714L25.2772 22.695Z"/></svg>' }, jn = { name: "mute", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M51.4283 11.6761L53.1768 9.53891C53.9347 8.61282 53.7982 7.24774 52.8722 6.48993C51.9461 5.73211 50.581 5.86852 49.8232 6.79461L36.3333 23.2822V13.3972C36.3332 11.6447 35.2774 10.0648 33.6583 9.39418C32.0391 8.72356 30.1755 9.09425 28.9362 10.3334L18.1029 21.1668H14.6667C9.88247 21.1722 6.00547 25.0492 6 29.8334V34.1668C6.00547 38.951 9.88247 42.828 14.6667 42.8334H18.1029L19.3315 44.0621L10.8232 54.4613C10.0653 55.3874 10.2018 56.7525 11.1279 57.5103C12.0539 58.2681 13.419 58.1317 14.1768 57.2056L22.411 47.1416L28.9362 53.6668C30.1755 54.9059 32.0391 55.2766 33.6583 54.606C35.2774 53.9354 36.3332 52.3555 36.3333 50.603V30.1254L42.6092 22.4549C44.2201 25.3756 45.044 28.6649 45 32.0001C45.1184 36.1899 43.7698 40.2896 41.1872 43.5909C40.409 44.5001 40.5152 45.8679 41.4243 46.6461C42.3334 47.4243 43.7012 47.3183 44.4795 46.4093C47.7313 42.3208 49.4486 37.2227 49.3333 32.0001C49.403 27.3538 48.067 22.7949 45.5005 18.9211L48.6119 15.1182C52.019 20.0793 53.7867 25.9829 53.6667 32.0001C53.6667 39.0587 51.4873 45.6518 47.6872 50.0909C46.909 51.0001 47.0152 52.3679 47.9243 53.1461C48.8334 53.9243 50.2012 53.8183 50.9795 52.9093C55.4408 47.6968 58 40.0764 58 32.0001C58 24.21 55.6006 16.8662 51.4283 11.6761ZM19.8971 38.5H14.6667C12.2744 38.4977 10.3357 36.559 10.3333 34.1667V29.8334C10.3357 27.4411 12.2744 25.5024 14.6667 25.5H19.8971L32 13.3972V28.5784L22.089 40.6919L19.8971 38.5ZM31.9997 50.603L25.1682 43.7715L31.9997 35.4218V50.603Z"/></svg>' }, Kr = { 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>' }, Gr = { name: "send", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M8.41642 6.29292C5.99705 5.18016 3.38612 7.41823 4.12858 9.96847L10.5427 32L4.12858 54.0315C3.38612 56.5818 5.99704 58.8198 8.41642 57.7071L58.1942 34.8125C60.6019 33.7051 60.6019 30.2949 58.1942 29.1875L8.41642 6.29292ZM14.2569 29.9351L8.74174 10.9913L49.9295 29.9351H14.2569ZM14.2568 34.0651L8.74174 53.0087L49.9291 34.0651H14.2568Z"/></svg>' }, Hn = { name: "volume", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M33.6578 9.3322C32.0391 8.65799 30.1735 9.02919 28.9362 10.2717L18.1029 21.105H14.6667C9.88247 21.1105 6.00547 24.9875 6 29.7717V34.105C6.00547 38.8892 9.88247 42.7662 14.6667 42.7717H18.1029L28.9362 53.605C30.1755 54.8442 32.0391 55.2149 33.6583 54.5442C35.2774 53.8736 36.3332 52.2937 36.3333 50.5412V13.3355C36.3365 11.5817 35.2794 10.0001 33.6578 9.3322ZM32 50.5411L19.8971 38.4382H14.6667C12.2744 38.4358 10.3357 36.4971 10.3333 34.1049V29.7716C10.3357 27.3793 12.2744 25.4406 14.6667 25.4382H19.8971L32 13.3353V50.5411ZM49.3334 31.9383C49.4487 37.161 47.7314 42.2591 44.4796 46.3475C43.7013 47.2565 42.3335 47.3625 41.4244 46.5843C40.5153 45.8061 40.4092 44.4383 41.1873 43.5291C43.7699 40.2278 45.1185 36.1282 45.0001 31.9383C45.1185 27.7485 43.7699 23.6488 41.1873 20.3475C40.4092 19.4383 40.5153 18.0705 41.4244 17.2923C42.3335 16.5141 43.7013 16.6201 44.4796 17.5291C47.7314 21.6176 49.4487 26.7157 49.3334 31.9383ZM58.0001 31.9383C58.0001 40.0147 55.441 47.635 50.9796 52.8475C50.2013 53.7565 48.8335 53.8625 47.9244 53.0843C47.0153 52.3061 46.9092 50.9383 47.6873 50.0291C51.4874 45.59 53.6668 38.9969 53.6668 31.9383C53.6668 24.8797 51.4874 18.2866 47.6873 13.8475C46.9092 12.9383 47.0153 11.5705 47.9244 10.7923C48.8335 10.0141 50.2013 10.1201 50.9796 11.0291C55.441 16.2416 58.0001 23.862 58.0001 31.9383Z"/></svg>' }, le = {
|
2020
2020
|
allRenderFn: !1,
|
2021
2021
|
cmpDidLoad: !0,
|
2022
2022
|
cmpDidUnload: !1,
|
@@ -2100,9 +2100,9 @@ const Fr = { name: "alert", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.
|
|
2100
2100
|
transformTagName: !1,
|
2101
2101
|
attachStyles: !0
|
2102
2102
|
};
|
2103
|
-
let ce, Bs,
|
2104
|
-
const
|
2105
|
-
},
|
2103
|
+
let ce, Bs, ut, Ns = !1, Ve = !1, en = !1, T = !1, Dn = null, jt = !1;
|
2104
|
+
const pt = typeof window < "u" ? window : {}, D = pt.document || { head: {} }, Fs = pt.HTMLElement || class {
|
2105
|
+
}, S = {
|
2106
2106
|
$flags$: 0,
|
2107
2107
|
$resourcesUrl$: "",
|
2108
2108
|
jmp: (s) => s(),
|
@@ -2110,10 +2110,10 @@ const ut = typeof window < "u" ? window : {}, z = ut.document || { head: {} }, F
|
|
2110
2110
|
ael: (s, e, t, n) => s.addEventListener(e, t, n),
|
2111
2111
|
rel: (s, e, t, n) => s.removeEventListener(e, t, n),
|
2112
2112
|
ce: (s, e) => new CustomEvent(s, e)
|
2113
|
-
},
|
2113
|
+
}, Xr = /* @__PURE__ */ (() => {
|
2114
2114
|
let s = !1;
|
2115
2115
|
try {
|
2116
|
-
|
2116
|
+
D.addEventListener("e", null, Object.defineProperty({}, "passive", {
|
2117
2117
|
get() {
|
2118
2118
|
s = !0;
|
2119
2119
|
}
|
@@ -2121,48 +2121,48 @@ const ut = typeof window < "u" ? window : {}, z = ut.document || { head: {} }, F
|
|
2121
2121
|
} catch {
|
2122
2122
|
}
|
2123
2123
|
return s;
|
2124
|
-
})(),
|
2124
|
+
})(), Vr = (s) => Promise.resolve(s), Jr = /* @__PURE__ */ (() => {
|
2125
2125
|
try {
|
2126
2126
|
return new CSSStyleSheet(), typeof new CSSStyleSheet().replace == "function";
|
2127
2127
|
} catch {
|
2128
2128
|
}
|
2129
2129
|
return !1;
|
2130
|
-
})(),
|
2130
|
+
})(), qs = (s, e, t, n) => {
|
2131
2131
|
t && t.map(([i, r, o]) => {
|
2132
|
-
const a =
|
2133
|
-
|
2132
|
+
const a = to(s, i), l = eo(e, o), c = no(i);
|
2133
|
+
S.ael(a, r, l, c), (e.$rmListeners$ = e.$rmListeners$ || []).push(() => S.rel(a, r, l, c));
|
2134
2134
|
});
|
2135
|
-
},
|
2135
|
+
}, eo = (s, e) => (t) => {
|
2136
2136
|
try {
|
2137
2137
|
le.lazyLoad || s.$hostElement$[e](t);
|
2138
2138
|
} catch (n) {
|
2139
2139
|
Ie(n);
|
2140
2140
|
}
|
2141
|
-
},
|
2141
|
+
}, to = (s, e) => e & 4 ? D : e & 8 ? pt : e & 16 ? D.body : s, no = (s) => Xr ? {
|
2142
2142
|
passive: (s & 1) !== 0,
|
2143
2143
|
capture: (s & 2) !== 0
|
2144
|
-
} : (s & 2) !== 0, Bn = "http://www.w3.org/1999/xlink",
|
2145
|
-
}, Nn = /* @__PURE__ */ new WeakMap(),
|
2146
|
-
let n =
|
2147
|
-
Jr && t ? (n = n || new CSSStyleSheet(), n.replace(e)) : n = e,
|
2148
|
-
},
|
2149
|
-
let i =
|
2150
|
-
if (s = s.nodeType === 11 ? s :
|
2144
|
+
} : (s & 2) !== 0, Bn = "http://www.w3.org/1999/xlink", ie = (s, e = "") => () => {
|
2145
|
+
}, Nn = /* @__PURE__ */ new WeakMap(), so = (s, e, t) => {
|
2146
|
+
let n = tt.get(s);
|
2147
|
+
Jr && t ? (n = n || new CSSStyleSheet(), n.replace(e)) : n = e, tt.set(s, n);
|
2148
|
+
}, io = (s, e, t, n) => {
|
2149
|
+
let i = Zs(e, t), r = tt.get(i);
|
2150
|
+
if (s = s.nodeType === 11 ? s : D, r)
|
2151
2151
|
if (typeof r == "string") {
|
2152
2152
|
s = s.head || s;
|
2153
2153
|
let o = Nn.get(s), a;
|
2154
|
-
o || Nn.set(s, o = /* @__PURE__ */ new Set()), o.has(i) || (a =
|
2154
|
+
o || Nn.set(s, o = /* @__PURE__ */ new Set()), o.has(i) || (a = D.createElement("style"), a.innerHTML = r, s.insertBefore(a, s.querySelector("link")), o && o.add(i));
|
2155
2155
|
} else
|
2156
2156
|
s.adoptedStyleSheets.includes(r) || (s.adoptedStyleSheets = [...s.adoptedStyleSheets, r]);
|
2157
2157
|
return i;
|
2158
|
-
},
|
2159
|
-
const e = s.$cmpMeta$, t = s.$hostElement$, n = e.$flags$, i =
|
2158
|
+
}, ro = (s) => {
|
2159
|
+
const e = s.$cmpMeta$, t = s.$hostElement$, n = e.$flags$, i = ie("attachStyles", e.$tagName$), r = io(t.shadowRoot ? t.shadowRoot : t.getRootNode(), e, s.$modeName$);
|
2160
2160
|
n & 10 && (t["s-sc"] = r, t.classList.add(r + "-h"), n & 2 && t.classList.add(r + "-s")), i();
|
2161
|
-
},
|
2161
|
+
}, Zs = (s, e) => "sc-" + (e && s.$flags$ & 32 ? s.$tagName$ + "-" + e : s.$tagName$), oo = (s) => Mo.map((e) => e(s)).find((e) => !!e), Fn = {}, ao = "http://www.w3.org/2000/svg", lo = "http://www.w3.org/1999/xhtml", co = (s) => s != null, tn = (s) => (s = typeof s, s === "object" || s === "function"), de = (s, e, ...t) => {
|
2162
2162
|
let n = null, i = null, r = null, o = !1, a = !1, l = [];
|
2163
2163
|
const c = (u) => {
|
2164
2164
|
for (let p = 0; p < u.length; p++)
|
2165
|
-
n = u[p], Array.isArray(n) ? c(n) : n != null && typeof n != "boolean" && ((o = typeof s != "function" && !
|
2165
|
+
n = u[p], Array.isArray(n) ? c(n) : n != null && typeof n != "boolean" && ((o = typeof s != "function" && !tn(n)) && (n = String(n)), o && a ? l[l.length - 1].$text$ += n : l.push(o ? Je(null, n) : n), a = o);
|
2166
2166
|
};
|
2167
2167
|
if (c(t), e) {
|
2168
2168
|
e.key && (i = e.key), e.name && (r = e.name);
|
@@ -2172,7 +2172,7 @@ const ut = typeof window < "u" ? window : {}, z = ut.document || { head: {} }, F
|
|
2172
2172
|
}
|
2173
2173
|
}
|
2174
2174
|
if (typeof s == "function")
|
2175
|
-
return s(e === null ? {} : e, l,
|
2175
|
+
return s(e === null ? {} : e, l, uo);
|
2176
2176
|
const h = Je(s, null);
|
2177
2177
|
return h.$attrs$ = e, l.length > 0 && (h.$children$ = l), h.$key$ = i, h.$name$ = r, h;
|
2178
2178
|
}, Je = (s, e) => {
|
@@ -2184,24 +2184,24 @@ const ut = typeof window < "u" ? window : {}, z = ut.document || { head: {} }, F
|
|
2184
2184
|
$children$: null
|
2185
2185
|
};
|
2186
2186
|
return t.$attrs$ = null, t.$key$ = null, t.$name$ = null, t;
|
2187
|
-
},
|
2188
|
-
forEach: (s, e) => s.map(
|
2189
|
-
map: (s, e) => s.map(
|
2190
|
-
},
|
2187
|
+
}, nn = {}, ho = (s) => s && s.$tag$ === nn, uo = {
|
2188
|
+
forEach: (s, e) => s.map(qn).forEach(e),
|
2189
|
+
map: (s, e) => s.map(qn).map(e).map(po)
|
2190
|
+
}, qn = (s) => ({
|
2191
2191
|
vattrs: s.$attrs$,
|
2192
2192
|
vchildren: s.$children$,
|
2193
2193
|
vkey: s.$key$,
|
2194
2194
|
vname: s.$name$,
|
2195
2195
|
vtag: s.$tag$,
|
2196
2196
|
vtext: s.$text$
|
2197
|
-
}),
|
2197
|
+
}), po = (s) => {
|
2198
2198
|
if (typeof s.vtag == "function") {
|
2199
2199
|
const t = Object.assign({}, s.vattrs);
|
2200
2200
|
return s.vkey && (t.key = s.vkey), s.vname && (t.name = s.vname), de(s.vtag, t, ...s.vchildren || []);
|
2201
2201
|
}
|
2202
2202
|
const e = Je(s.vtag, s.vtext);
|
2203
2203
|
return e.$attrs$ = s.vattrs, e.$children$ = s.vchildren, e.$key$ = s.vkey, e.$name$ = s.vname, e;
|
2204
|
-
},
|
2204
|
+
}, Zn = (s, e, t, n, i, r) => {
|
2205
2205
|
if (t !== n) {
|
2206
2206
|
let o = Kn(s, e), a = e.toLowerCase();
|
2207
2207
|
if (e === "class") {
|
@@ -2216,9 +2216,9 @@ const ut = typeof window < "u" ? window : {}, z = ut.document || { head: {} }, F
|
|
2216
2216
|
if (e === "ref")
|
2217
2217
|
n && n(s);
|
2218
2218
|
else if (!s.__lookupSetter__(e) && e[0] === "o" && e[1] === "n")
|
2219
|
-
e[2] === "-" ? e = e.slice(3) : Kn(
|
2219
|
+
e[2] === "-" ? e = e.slice(3) : Kn(pt, a) ? e = a.slice(2) : e = a[2] + e.slice(3), t && S.rel(s, e, t, !1), n && S.ael(s, e, n, !1);
|
2220
2220
|
else {
|
2221
|
-
const l =
|
2221
|
+
const l = tn(n);
|
2222
2222
|
if ((o || l && n !== null) && !i)
|
2223
2223
|
try {
|
2224
2224
|
if (s.tagName.includes("-"))
|
@@ -2233,47 +2233,47 @@ const ut = typeof window < "u" ? window : {}, z = ut.document || { head: {} }, F
|
|
2233
2233
|
a !== (a = a.replace(/^xlink\:?/, "")) && (e = a, c = !0), n == null || n === !1 ? (n !== !1 || s.getAttribute(e) === "") && (c ? s.removeAttributeNS(Bn, e) : s.removeAttribute(e)) : (!o || r & 4 || i) && !l && (n = n === !0 ? "" : n, c ? s.setAttributeNS(Bn, e, n) : s.setAttribute(e, n));
|
2234
2234
|
}
|
2235
2235
|
}
|
2236
|
-
},
|
2236
|
+
}, fo = /\s/, Wn = (s) => s ? s.split(fo) : [], Ws = (s, e, t, n) => {
|
2237
2237
|
const i = e.$elm$.nodeType === 11 && e.$elm$.host ? e.$elm$.host : e.$elm$, r = s && s.$attrs$ || Fn, o = e.$attrs$ || Fn;
|
2238
2238
|
for (n in r)
|
2239
|
-
n in o ||
|
2239
|
+
n in o || Zn(i, n, r[n], void 0, t, e.$flags$);
|
2240
2240
|
for (n in o)
|
2241
|
-
|
2242
|
-
},
|
2241
|
+
Zn(i, n, r[n], o[n], t, e.$flags$);
|
2242
|
+
}, et = (s, e, t, n) => {
|
2243
2243
|
let i = e.$children$[t], r = 0, o, a, l;
|
2244
|
-
if (Ns || (
|
2244
|
+
if (Ns || (en = !0, i.$tag$ === "slot" && (ce && n.classList.add(ce + "-s"), i.$flags$ |= i.$children$ ? (
|
2245
2245
|
// slot element has fallback content
|
2246
2246
|
2
|
2247
2247
|
) : (
|
2248
2248
|
// slot element does not have fallback content
|
2249
2249
|
1
|
2250
2250
|
))), i.$text$ !== null)
|
2251
|
-
o = i.$elm$ =
|
2251
|
+
o = i.$elm$ = D.createTextNode(i.$text$);
|
2252
2252
|
else if (i.$flags$ & 1)
|
2253
|
-
o = i.$elm$ =
|
2253
|
+
o = i.$elm$ = D.createTextNode("");
|
2254
2254
|
else {
|
2255
|
-
if (
|
2255
|
+
if (T || (T = i.$tag$ === "svg"), o = i.$elm$ = D.createElementNS(T ? ao : lo, i.$flags$ & 2 ? "slot-fb" : i.$tag$), T && i.$tag$ === "foreignObject" && (T = !1), Ws(null, i, T), co(ce) && o["s-si"] !== ce && o.classList.add(o["s-si"] = ce), i.$children$)
|
2256
2256
|
for (r = 0; r < i.$children$.length; ++r)
|
2257
|
-
a =
|
2258
|
-
i.$tag$ === "svg" ?
|
2257
|
+
a = et(s, i, r, o), a && o.appendChild(a);
|
2258
|
+
i.$tag$ === "svg" ? T = !1 : o.tagName === "foreignObject" && (T = !0);
|
2259
2259
|
}
|
2260
|
-
return o["s-hn"] =
|
2261
|
-
},
|
2262
|
-
|
2260
|
+
return o["s-hn"] = ut, i.$flags$ & 3 && (o["s-sr"] = !0, o["s-cr"] = Bs, o["s-sn"] = i.$name$ || "", l = s && s.$children$ && s.$children$[t], l && l.$tag$ === i.$tag$ && s.$elm$ && Te(s.$elm$, !1)), o;
|
2261
|
+
}, Te = (s, e) => {
|
2262
|
+
S.$flags$ |= 1;
|
2263
2263
|
const t = s.childNodes;
|
2264
2264
|
for (let n = t.length - 1; n >= 0; n--) {
|
2265
2265
|
const i = t[n];
|
2266
|
-
i["s-hn"] !==
|
2266
|
+
i["s-hn"] !== ut && i["s-ol"] && (Ks(i).insertBefore(i, sn(i)), i["s-ol"].remove(), i["s-ol"] = void 0, en = !0), e && Te(i, e);
|
2267
2267
|
}
|
2268
|
-
|
2268
|
+
S.$flags$ &= -2;
|
2269
2269
|
}, Ys = (s, e, t, n, i, r) => {
|
2270
2270
|
let o = s["s-cr"] && s["s-cr"].parentNode || s, a;
|
2271
|
-
for (o.shadowRoot && o.tagName ===
|
2272
|
-
n[i] && (a =
|
2271
|
+
for (o.shadowRoot && o.tagName === ut && (o = o.shadowRoot); i <= r; ++i)
|
2272
|
+
n[i] && (a = et(null, t, i, s), a && (n[i].$elm$ = a, o.insertBefore(a, sn(e))));
|
2273
2273
|
}, Qs = (s, e, t, n, i) => {
|
2274
2274
|
for (; e <= t; ++e)
|
2275
|
-
(n = s[e]) && (i = n.$elm$,
|
2276
|
-
},
|
2275
|
+
(n = s[e]) && (i = n.$elm$, Vs(n), Ve = !0, i["s-ol"] ? i["s-ol"].remove() : Te(i, !0), i.remove());
|
2276
|
+
}, go = (s, e, t, n) => {
|
2277
2277
|
let i = 0, r = 0, o = 0, a = 0, l = e.length - 1, c = e[0], h = e[l], u = n.length - 1, p = n[0], d = n[u], b, f;
|
2278
2278
|
for (; i <= l && r <= u; )
|
2279
2279
|
if (c == null)
|
@@ -2284,27 +2284,27 @@ const ut = typeof window < "u" ? window : {}, z = ut.document || { head: {} }, F
|
|
2284
2284
|
p = n[++r];
|
2285
2285
|
else if (d == null)
|
2286
2286
|
d = n[--u];
|
2287
|
-
else if (
|
2287
|
+
else if (Be(c, p))
|
2288
2288
|
he(c, p), c = e[++i], p = n[++r];
|
2289
|
-
else if (
|
2289
|
+
else if (Be(h, d))
|
2290
2290
|
he(h, d), h = e[--l], d = n[--u];
|
2291
|
-
else if (
|
2292
|
-
(c.$tag$ === "slot" || d.$tag$ === "slot") &&
|
2293
|
-
else if (
|
2294
|
-
(c.$tag$ === "slot" || d.$tag$ === "slot") &&
|
2291
|
+
else if (Be(c, d))
|
2292
|
+
(c.$tag$ === "slot" || d.$tag$ === "slot") && Te(c.$elm$.parentNode, !1), he(c, d), s.insertBefore(c.$elm$, h.$elm$.nextSibling), c = e[++i], d = n[--u];
|
2293
|
+
else if (Be(h, p))
|
2294
|
+
(c.$tag$ === "slot" || d.$tag$ === "slot") && Te(h.$elm$.parentNode, !1), he(h, p), s.insertBefore(h.$elm$, c.$elm$), h = e[--l], p = n[++r];
|
2295
2295
|
else {
|
2296
2296
|
for (o = -1, a = i; a <= l; ++a)
|
2297
2297
|
if (e[a] && e[a].$key$ !== null && e[a].$key$ === p.$key$) {
|
2298
2298
|
o = a;
|
2299
2299
|
break;
|
2300
2300
|
}
|
2301
|
-
o >= 0 ? (f = e[o], f.$tag$ !== p.$tag$ ? b =
|
2301
|
+
o >= 0 ? (f = e[o], f.$tag$ !== p.$tag$ ? b = et(e && e[r], t, o, s) : (he(f, p), e[o] = void 0, b = f.$elm$), p = n[++r]) : (b = et(e && e[r], t, r, s), p = n[++r]), b && Ks(c.$elm$).insertBefore(b, sn(c.$elm$));
|
2302
2302
|
}
|
2303
2303
|
i > l ? Ys(s, n[u + 1] == null ? null : n[u + 1].$elm$, t, n, r, u) : r > u && Qs(e, i, l);
|
2304
|
-
},
|
2304
|
+
}, Be = (s, e) => s.$tag$ === e.$tag$ ? s.$tag$ === "slot" ? s.$name$ === e.$name$ : s.$key$ === e.$key$ : !1, sn = (s) => s && s["s-ol"] || s, Ks = (s) => (s["s-ol"] ? s["s-ol"] : s).parentNode, he = (s, e) => {
|
2305
2305
|
const t = e.$elm$ = s.$elm$, n = s.$children$, i = e.$children$, r = e.$tag$, o = e.$text$;
|
2306
2306
|
let a;
|
2307
|
-
o === null ? (
|
2307
|
+
o === null ? (T = r === "svg" ? !0 : r === "foreignObject" ? !1 : T, r === "slot" || Ws(s, e, T), n !== null && i !== null ? go(t, n, e, i) : i !== null ? (s.$text$ !== null && (t.textContent = ""), Ys(t, null, e, i, 0, i.length - 1)) : n !== null && Qs(n, 0, n.length - 1), T && r === "svg" && (T = !1)) : (a = t["s-cr"]) ? a.parentNode.textContent = o : s.$text$ !== o && (t.data = o);
|
2308
2308
|
}, Gs = (s) => {
|
2309
2309
|
let e = s.childNodes, t, n, i, r, o, a;
|
2310
2310
|
for (n = 0, i = e.length; n < i; n++)
|
@@ -2323,34 +2323,34 @@ const ut = typeof window < "u" ? window : {}, z = ut.document || { head: {} }, F
|
|
2323
2323
|
}
|
2324
2324
|
Gs(t);
|
2325
2325
|
}
|
2326
|
-
},
|
2326
|
+
}, O = [], Xs = (s) => {
|
2327
2327
|
let e, t, n, i, r, o, a = 0, l = s.childNodes, c = l.length;
|
2328
2328
|
for (; a < c; a++) {
|
2329
2329
|
if (e = l[a], e["s-sr"] && (t = e["s-cr"]) && t.parentNode)
|
2330
2330
|
for (n = t.parentNode.childNodes, i = e["s-sn"], o = n.length - 1; o >= 0; o--)
|
2331
|
-
t = n[o], !t["s-cn"] && !t["s-nr"] && t["s-hn"] !== e["s-hn"] && (Yn(t, i) ? (r =
|
2331
|
+
t = n[o], !t["s-cn"] && !t["s-nr"] && t["s-hn"] !== e["s-hn"] && (Yn(t, i) ? (r = O.find((h) => h.$nodeToRelocate$ === t), Ve = !0, t["s-sn"] = t["s-sn"] || i, r ? r.$slotRefNode$ = e : O.push({
|
2332
2332
|
$slotRefNode$: e,
|
2333
2333
|
$nodeToRelocate$: t
|
2334
|
-
}), t["s-sr"] &&
|
2335
|
-
Yn(h.$nodeToRelocate$, t["s-sn"]) && (r =
|
2336
|
-
})) :
|
2334
|
+
}), t["s-sr"] && O.map((h) => {
|
2335
|
+
Yn(h.$nodeToRelocate$, t["s-sn"]) && (r = O.find((u) => u.$nodeToRelocate$ === t), r && !h.$slotRefNode$ && (h.$slotRefNode$ = r.$slotRefNode$));
|
2336
|
+
})) : O.some((h) => h.$nodeToRelocate$ === t) || O.push({
|
2337
2337
|
$nodeToRelocate$: t
|
2338
2338
|
}));
|
2339
2339
|
e.nodeType === 1 && Xs(e);
|
2340
2340
|
}
|
2341
|
-
}, Yn = (s, e) => s.nodeType === 1 ? s.getAttribute("slot") === null && e === "" || s.getAttribute("slot") === e : s["s-sn"] === e ? !0 : e === "",
|
2342
|
-
s.$attrs$ && s.$attrs$.ref && s.$attrs$.ref(null), s.$children$ && s.$children$.map(
|
2343
|
-
},
|
2344
|
-
const t = s.$hostElement$, n = s.$cmpMeta$, i = s.$vnode$ || Je(null, null), r =
|
2345
|
-
|
2341
|
+
}, Yn = (s, e) => s.nodeType === 1 ? s.getAttribute("slot") === null && e === "" || s.getAttribute("slot") === e : s["s-sn"] === e ? !0 : e === "", Vs = (s) => {
|
2342
|
+
s.$attrs$ && s.$attrs$.ref && s.$attrs$.ref(null), s.$children$ && s.$children$.map(Vs);
|
2343
|
+
}, mo = (s, e) => {
|
2344
|
+
const t = s.$hostElement$, n = s.$cmpMeta$, i = s.$vnode$ || Je(null, null), r = ho(e) ? e : de(null, null, e);
|
2345
|
+
ut = t.tagName, n.$attrsToReflect$ && (r.$attrs$ = r.$attrs$ || {}, n.$attrsToReflect$.map(([o, a]) => r.$attrs$[a] = t[o])), r.$tag$ = null, r.$flags$ |= 4, s.$vnode$ = r, r.$elm$ = i.$elm$ = t.shadowRoot || t, ce = t["s-sc"], Bs = t["s-cr"], Ns = (n.$flags$ & 1) !== 0, Ve = !1, he(i, r);
|
2346
2346
|
{
|
2347
|
-
if (
|
2347
|
+
if (S.$flags$ |= 1, en) {
|
2348
2348
|
Xs(r.$elm$);
|
2349
2349
|
let o, a, l, c, h, u, p = 0;
|
2350
|
-
for (; p <
|
2351
|
-
o =
|
2352
|
-
for (p = 0; p <
|
2353
|
-
if (o =
|
2350
|
+
for (; p < O.length; p++)
|
2351
|
+
o = O[p], a = o.$nodeToRelocate$, a["s-ol"] || (l = D.createTextNode(""), l["s-nr"] = a, a.parentNode.insertBefore(a["s-ol"] = l, a));
|
2352
|
+
for (p = 0; p < O.length; p++)
|
2353
|
+
if (o = O[p], a = o.$nodeToRelocate$, o.$slotRefNode$) {
|
2354
2354
|
for (c = o.$slotRefNode$.parentNode, h = o.$slotRefNode$.nextSibling, l = a["s-ol"]; l = l.previousSibling; )
|
2355
2355
|
if (u = l["s-nr"], u && u["s-sn"] === a["s-sn"] && c === u.parentNode && (u = u.nextSibling, !u || !u["s-nr"])) {
|
2356
2356
|
h = u;
|
@@ -2360,40 +2360,40 @@ const ut = typeof window < "u" ? window : {}, z = ut.document || { head: {} }, F
|
|
2360
2360
|
} else
|
2361
2361
|
a.nodeType === 1 && (a.hidden = !0);
|
2362
2362
|
}
|
2363
|
-
|
2363
|
+
Ve && Gs(r.$elm$), S.$flags$ &= -2, O.length = 0;
|
2364
2364
|
}
|
2365
|
-
},
|
2366
|
-
const n =
|
2365
|
+
}, vo = (s) => s, bo = (s, e, t) => {
|
2366
|
+
const n = vo(s);
|
2367
2367
|
return {
|
2368
|
-
emit: (i) =>
|
2368
|
+
emit: (i) => yo(n, e, {
|
2369
2369
|
bubbles: !!(t & 4),
|
2370
2370
|
composed: !!(t & 2),
|
2371
2371
|
cancelable: !!(t & 1),
|
2372
2372
|
detail: i
|
2373
2373
|
})
|
2374
2374
|
};
|
2375
|
-
},
|
2376
|
-
const n =
|
2375
|
+
}, yo = (s, e, t) => {
|
2376
|
+
const n = S.ce(e, t);
|
2377
2377
|
return s.dispatchEvent(n), n;
|
2378
2378
|
}, $o = (s, e) => {
|
2379
|
-
},
|
2380
|
-
const t = s.$hostElement$, n =
|
2379
|
+
}, Js = (s, e) => (s.$flags$ |= 16, $o(s, s.$ancestorComponent$), jo(() => xo(s, e))), xo = (s, e) => {
|
2380
|
+
const t = s.$hostElement$, n = ie("scheduleUpdate", s.$cmpMeta$.$tagName$), i = t;
|
2381
2381
|
let r;
|
2382
|
-
return e ? r = fe(i, "componentWillLoad") : r = fe(i, "componentWillUpdate"), r = Qn(r, () => fe(i, "componentWillRender")), n(), Qn(r, () =>
|
2383
|
-
},
|
2384
|
-
const n = s.$hostElement$, i =
|
2385
|
-
n["s-rc"], t &&
|
2386
|
-
const r =
|
2387
|
-
|
2388
|
-
},
|
2382
|
+
return e ? r = fe(i, "componentWillLoad") : r = fe(i, "componentWillUpdate"), r = Qn(r, () => fe(i, "componentWillRender")), n(), Qn(r, () => wo(s, i, e));
|
2383
|
+
}, wo = async (s, e, t) => {
|
2384
|
+
const n = s.$hostElement$, i = ie("update", s.$cmpMeta$.$tagName$);
|
2385
|
+
n["s-rc"], t && ro(s);
|
2386
|
+
const r = ie("render", s.$cmpMeta$.$tagName$);
|
2387
|
+
ko(s, e, n), r(), i(), _o(s);
|
2388
|
+
}, ko = (s, e, t) => {
|
2389
2389
|
try {
|
2390
|
-
Dn = e, e = e.render && e.render(), s.$flags$ &= -17, s.$flags$ |= 2, (le.hasRenderFn || le.reflect) && (le.vdomRender || le.reflect) && (le.hydrateServerSide ||
|
2390
|
+
Dn = e, e = e.render && e.render(), s.$flags$ &= -17, s.$flags$ |= 2, (le.hasRenderFn || le.reflect) && (le.vdomRender || le.reflect) && (le.hydrateServerSide || mo(s, e));
|
2391
2391
|
} catch (a) {
|
2392
2392
|
Ie(a, s.$hostElement$);
|
2393
2393
|
}
|
2394
2394
|
return Dn = null, null;
|
2395
|
-
},
|
2396
|
-
const e = s.$cmpMeta$.$tagName$, t = s.$hostElement$, n =
|
2395
|
+
}, _o = (s) => {
|
2396
|
+
const e = s.$cmpMeta$.$tagName$, t = s.$hostElement$, n = ie("postUpdate", e), i = t;
|
2397
2397
|
s.$ancestorComponent$, fe(i, "componentDidRender"), s.$flags$ & 64 ? (fe(i, "componentDidUpdate"), n()) : (s.$flags$ |= 64, fe(i, "componentDidLoad"), n());
|
2398
2398
|
}, fe = (s, e, t) => {
|
2399
2399
|
if (s && s[e])
|
@@ -2402,9 +2402,9 @@ const ut = typeof window < "u" ? window : {}, z = ut.document || { head: {} }, F
|
|
2402
2402
|
} catch (n) {
|
2403
2403
|
Ie(n);
|
2404
2404
|
}
|
2405
|
-
}, Qn = (s, e) => s && s.then ? s.then(e) : e(),
|
2406
|
-
const i =
|
2407
|
-
t =
|
2405
|
+
}, Qn = (s, e) => s && s.then ? s.then(e) : e(), So = (s, e) => s != null && !tn(s) ? e & 4 ? s === "false" ? !1 : s === "" || !!s : e & 2 ? parseFloat(s) : e & 1 ? String(s) : s : s, Co = (s, e) => dt(s).$instanceValues$.get(e), Ao = (s, e, t, n) => {
|
2406
|
+
const i = dt(s), r = s, o = i.$instanceValues$.get(e), a = i.$flags$, l = r;
|
2407
|
+
t = So(t, n.$members$[e][0]);
|
2408
2408
|
const c = Number.isNaN(o) && Number.isNaN(t);
|
2409
2409
|
if (t !== o && !c) {
|
2410
2410
|
i.$instanceValues$.set(e, t);
|
@@ -2422,21 +2422,21 @@ const ut = typeof window < "u" ? window : {}, z = ut.document || { head: {} }, F
|
|
2422
2422
|
if ((a & 18) === 2) {
|
2423
2423
|
if (l.componentShouldUpdate && l.componentShouldUpdate(t, o, e) === !1)
|
2424
2424
|
return;
|
2425
|
-
|
2425
|
+
Js(i, !1);
|
2426
2426
|
}
|
2427
2427
|
}
|
2428
2428
|
}
|
2429
|
-
},
|
2429
|
+
}, Eo = (s, e, t) => {
|
2430
2430
|
if (e.$members$) {
|
2431
2431
|
s.watchers && (e.$watchers$ = s.watchers);
|
2432
2432
|
const n = Object.entries(e.$members$), i = s.prototype;
|
2433
2433
|
n.map(([r, [o]]) => {
|
2434
2434
|
(o & 31 || o & 32) && Object.defineProperty(i, r, {
|
2435
2435
|
get() {
|
2436
|
-
return
|
2436
|
+
return Co(this, r);
|
2437
2437
|
},
|
2438
2438
|
set(a) {
|
2439
|
-
|
2439
|
+
Ao(this, r, a, e);
|
2440
2440
|
},
|
2441
2441
|
configurable: !0,
|
2442
2442
|
enumerable: !0
|
@@ -2445,7 +2445,7 @@ const ut = typeof window < "u" ? window : {}, z = ut.document || { head: {} }, F
|
|
2445
2445
|
{
|
2446
2446
|
const r = /* @__PURE__ */ new Map();
|
2447
2447
|
i.attributeChangedCallback = function(o, a, l) {
|
2448
|
-
|
2448
|
+
S.jmp(() => {
|
2449
2449
|
const c = r.get(o);
|
2450
2450
|
if (this.hasOwnProperty(c))
|
2451
2451
|
l = this[c], delete this[c];
|
@@ -2463,34 +2463,34 @@ const ut = typeof window < "u" ? window : {}, z = ut.document || { head: {} }, F
|
|
2463
2463
|
}
|
2464
2464
|
}
|
2465
2465
|
return s;
|
2466
|
-
},
|
2466
|
+
}, To = async (s, e, t, n, i) => {
|
2467
2467
|
if (!(e.$flags$ & 32) && (i = s.constructor, e.$flags$ |= 32, customElements.whenDefined(t.$tagName$).then(() => e.$flags$ |= 128), i.style)) {
|
2468
2468
|
let o = i.style;
|
2469
|
-
typeof o != "string" && (o = o[e.$modeName$ =
|
2470
|
-
const a =
|
2471
|
-
if (!
|
2472
|
-
const l =
|
2473
|
-
|
2469
|
+
typeof o != "string" && (o = o[e.$modeName$ = oo(s)]);
|
2470
|
+
const a = Zs(t, e.$modeName$);
|
2471
|
+
if (!tt.has(a)) {
|
2472
|
+
const l = ie("registerStyles", t.$tagName$);
|
2473
|
+
so(a, o, !!(t.$flags$ & 1)), l();
|
2474
2474
|
}
|
2475
2475
|
}
|
2476
|
-
e.$ancestorComponent$, (() =>
|
2477
|
-
},
|
2476
|
+
e.$ancestorComponent$, (() => Js(e, !0))();
|
2477
|
+
}, Lo = (s) => {
|
2478
2478
|
}, Oo = (s) => {
|
2479
|
-
if (!(
|
2480
|
-
const e =
|
2481
|
-
e.$flags$ & 1 ? (
|
2479
|
+
if (!(S.$flags$ & 1)) {
|
2480
|
+
const e = dt(s), t = e.$cmpMeta$, n = ie("connectedCallback", t.$tagName$);
|
2481
|
+
e.$flags$ & 1 ? (qs(s, e, t.$listeners$), Lo(e.$lazyInstance$)) : (e.$flags$ |= 1, t.$flags$ & 12 && Po(s), t.$members$ && Object.entries(t.$members$).map(([i, [r]]) => {
|
2482
2482
|
if (r & 31 && s.hasOwnProperty(i)) {
|
2483
2483
|
const o = s[i];
|
2484
2484
|
delete s[i], s[i] = o;
|
2485
2485
|
}
|
2486
|
-
}),
|
2486
|
+
}), To(s, e, t)), n();
|
2487
2487
|
}
|
2488
|
-
}, Lo = (s) => {
|
2489
|
-
const e = s["s-cr"] = z.createComment("");
|
2490
|
-
e["s-cn"] = !0, s.insertBefore(e, s.firstChild);
|
2491
2488
|
}, Po = (s) => {
|
2492
|
-
|
2493
|
-
|
2489
|
+
const e = s["s-cr"] = D.createComment("");
|
2490
|
+
e["s-cn"] = !0, s.insertBefore(e, s.firstChild);
|
2491
|
+
}, Ro = (s) => {
|
2492
|
+
if (!(S.$flags$ & 1)) {
|
2493
|
+
const e = dt(s);
|
2494
2494
|
e.$rmListeners$ && (e.$rmListeners$.map((t) => t()), e.$rmListeners$ = void 0);
|
2495
2495
|
}
|
2496
2496
|
}, ei = (s, e) => {
|
@@ -2502,13 +2502,13 @@ const ut = typeof window < "u" ? window : {}, z = ut.document || { head: {} }, F
|
|
2502
2502
|
const n = s.prototype.connectedCallback, i = s.prototype.disconnectedCallback;
|
2503
2503
|
return Object.assign(s.prototype, {
|
2504
2504
|
__registerHost() {
|
2505
|
-
|
2505
|
+
Io(this, t);
|
2506
2506
|
},
|
2507
2507
|
connectedCallback() {
|
2508
2508
|
Oo(this), n && n.call(this);
|
2509
2509
|
},
|
2510
2510
|
disconnectedCallback() {
|
2511
|
-
|
2511
|
+
Ro(this), i && i.call(this);
|
2512
2512
|
},
|
2513
2513
|
__attachShadow() {
|
2514
2514
|
this.attachShadow({
|
@@ -2516,17 +2516,17 @@ const ut = typeof window < "u" ? window : {}, z = ut.document || { head: {} }, F
|
|
2516
2516
|
delegatesFocus: !!(t.$flags$ & 16)
|
2517
2517
|
});
|
2518
2518
|
}
|
2519
|
-
}), s.is = t.$tagName$,
|
2520
|
-
}, ti = /* @__PURE__ */ new WeakMap(),
|
2519
|
+
}), s.is = t.$tagName$, Eo(s, t);
|
2520
|
+
}, ti = /* @__PURE__ */ new WeakMap(), dt = (s) => ti.get(s), Io = (s, e) => {
|
2521
2521
|
const t = {
|
2522
2522
|
$flags$: 0,
|
2523
2523
|
$hostElement$: s,
|
2524
2524
|
$cmpMeta$: e,
|
2525
2525
|
$instanceValues$: /* @__PURE__ */ new Map()
|
2526
2526
|
};
|
2527
|
-
return
|
2528
|
-
}, Kn = (s, e) => e in s, Ie = (s, e) => (0, console.error)(s, e),
|
2529
|
-
s.push(t),
|
2527
|
+
return qs(s, t, e.$listeners$), ti.set(s, t);
|
2528
|
+
}, Kn = (s, e) => e in s, Ie = (s, e) => (0, console.error)(s, e), tt = /* @__PURE__ */ new Map(), Mo = [], Gn = [], ni = [], zo = (s, e) => (t) => {
|
2529
|
+
s.push(t), jt || (jt = !0, e && S.$flags$ & 4 ? Uo(Ht) : S.raf(Ht));
|
2530
2530
|
}, Xn = (s) => {
|
2531
2531
|
for (let e = 0; e < s.length; e++)
|
2532
2532
|
try {
|
@@ -2535,9 +2535,9 @@ const ut = typeof window < "u" ? window : {}, z = ut.document || { head: {} }, F
|
|
2535
2535
|
Ie(t);
|
2536
2536
|
}
|
2537
2537
|
s.length = 0;
|
2538
|
-
},
|
2539
|
-
Xn(Gn), Xn(ni), (
|
2540
|
-
},
|
2538
|
+
}, Ht = () => {
|
2539
|
+
Xn(Gn), Xn(ni), (jt = Gn.length > 0) && S.raf(Ht);
|
2540
|
+
}, Uo = (s) => Vr().then(s), jo = /* @__PURE__ */ zo(ni, !0), Ho = (s = {}) => {
|
2541
2541
|
const { content: e = "", title: t, attributes: n = [] } = s;
|
2542
2542
|
let i = "", r = [
|
2543
2543
|
{ name: "xmlns", value: "http://www.w3.org/2000/svg" },
|
@@ -2545,27 +2545,27 @@ const ut = typeof window < "u" ? window : {}, z = ut.document || { head: {} }, F
|
|
2545
2545
|
...n
|
2546
2546
|
];
|
2547
2547
|
return t && (i = `<title>${t}</title>`), `<svg ${r.map((a) => `${a.name}="${a.value}"`).join(" ")}>${i}${e}</svg>`;
|
2548
|
-
},
|
2549
|
-
function
|
2548
|
+
}, Do = (s) => s.replace(/<(\/?)svg([^>]*)>/g, "").trim();
|
2549
|
+
function Bo(s) {
|
2550
2550
|
return `${s.getFullYear()}.${s.getMonth() + 1}`;
|
2551
2551
|
}
|
2552
|
-
class
|
2552
|
+
class No {
|
2553
2553
|
constructor(e) {
|
2554
|
-
this.voca_component = e, this.voca_added =
|
2554
|
+
this.voca_component = e, this.voca_added = Bo(/* @__PURE__ */ new Date());
|
2555
2555
|
}
|
2556
2556
|
}
|
2557
|
-
const
|
2557
|
+
const Fo = "telia-vst{display:none}", qo = /* @__PURE__ */ ei(class extends Fs {
|
2558
2558
|
constructor() {
|
2559
|
-
super(), this.__registerHost(), this.vocaInternalUStats =
|
2559
|
+
super(), this.__registerHost(), this.vocaInternalUStats = bo(this, "vocaInternalUStats", 7);
|
2560
2560
|
}
|
2561
2561
|
connectedCallback() {
|
2562
|
-
this.vocaInternalUStats.emit(new
|
2562
|
+
this.vocaInternalUStats.emit(new No(this.dataTrackingId));
|
2563
2563
|
}
|
2564
2564
|
render() {
|
2565
|
-
return de(
|
2565
|
+
return de(nn, null);
|
2566
2566
|
}
|
2567
2567
|
static get style() {
|
2568
|
-
return
|
2568
|
+
return Fo;
|
2569
2569
|
}
|
2570
2570
|
}, [0, "telia-vst", {
|
2571
2571
|
dataTrackingId: [1, "data-tracking-id"]
|
@@ -2576,23 +2576,23 @@ function si() {
|
|
2576
2576
|
["telia-vst"].forEach((e) => {
|
2577
2577
|
switch (e) {
|
2578
2578
|
case "telia-vst":
|
2579
|
-
customElements.get(e) || customElements.define(e,
|
2579
|
+
customElements.get(e) || customElements.define(e, qo);
|
2580
2580
|
break;
|
2581
2581
|
}
|
2582
2582
|
});
|
2583
2583
|
}
|
2584
2584
|
si();
|
2585
|
-
function
|
2585
|
+
function Dt() {
|
2586
2586
|
return typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : { vocadsIcons: void 0, vocadsIconsRegistered: !1 };
|
2587
2587
|
}
|
2588
2588
|
function Zo() {
|
2589
|
-
if (typeof
|
2590
|
-
return
|
2589
|
+
if (typeof Dt().vocadsIcons !== void 0)
|
2590
|
+
return Dt().vocadsIcons;
|
2591
2591
|
}
|
2592
|
-
function
|
2593
|
-
return
|
2592
|
+
function Wo() {
|
2593
|
+
return Dt().vocadsIconsRegistered;
|
2594
2594
|
}
|
2595
|
-
const
|
2595
|
+
const Yo = ".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))}", Qo = /* @__PURE__ */ ei(class extends Fs {
|
2596
2596
|
constructor() {
|
2597
2597
|
super(), this.__registerHost(), this.size = "md", this.allyTitle = null, this.dataTrackingId = "telia-icon";
|
2598
2598
|
}
|
@@ -2604,7 +2604,7 @@ const Wo = ".telia-icon{display:inline-block}.telia-icon__container{display:bloc
|
|
2604
2604
|
getSvgString() {
|
2605
2605
|
if (this.svg)
|
2606
2606
|
return this.svg;
|
2607
|
-
if (
|
2607
|
+
if (Wo() && this.name) {
|
2608
2608
|
const s = Zo();
|
2609
2609
|
return s[this.name] ? s[this.name].svg : "";
|
2610
2610
|
}
|
@@ -2616,15 +2616,15 @@ const Wo = ".telia-icon{display:inline-block}.telia-icon__container{display:bloc
|
|
2616
2616
|
...e,
|
2617
2617
|
{ name: "aria-hidden", value: "true" }
|
2618
2618
|
];
|
2619
|
-
const t =
|
2620
|
-
content:
|
2619
|
+
const t = Ho({
|
2620
|
+
content: Do(s),
|
2621
2621
|
attributes: e,
|
2622
2622
|
title: this.allyTitle
|
2623
2623
|
});
|
2624
|
-
return de(
|
2624
|
+
return de(nn, { class: `telia-icon telia-icon--${this.size}` }, de("span", { "aria-label": this.allyTitle, class: "telia-icon__container", innerHTML: t }), de("telia-vst", { dataTrackingId: this.dataTrackingId }));
|
2625
2625
|
}
|
2626
2626
|
static get style() {
|
2627
|
-
return
|
2627
|
+
return Yo;
|
2628
2628
|
}
|
2629
2629
|
}, [0, "telia-icon", {
|
2630
2630
|
name: [1],
|
@@ -2633,13 +2633,13 @@ const Wo = ".telia-icon{display:inline-block}.telia-icon__container{display:bloc
|
|
2633
2633
|
allyTitle: [1, "ally-title"],
|
2634
2634
|
dataTestid: [1, "data-testid"]
|
2635
2635
|
}]);
|
2636
|
-
function
|
2636
|
+
function Ko() {
|
2637
2637
|
if (typeof customElements > "u")
|
2638
2638
|
return;
|
2639
2639
|
["telia-icon", "telia-vst"].forEach((e) => {
|
2640
2640
|
switch (e) {
|
2641
2641
|
case "telia-icon":
|
2642
|
-
customElements.get(e) || customElements.define(e,
|
2642
|
+
customElements.get(e) || customElements.define(e, Qo);
|
2643
2643
|
break;
|
2644
2644
|
case "telia-vst":
|
2645
2645
|
customElements.get(e) || si();
|
@@ -2647,13 +2647,13 @@ function Qo() {
|
|
2647
2647
|
}
|
2648
2648
|
});
|
2649
2649
|
}
|
2650
|
-
|
2650
|
+
Ko();
|
2651
2651
|
/**
|
2652
2652
|
* @license
|
2653
2653
|
* Copyright 2017 Google LLC
|
2654
2654
|
* SPDX-License-Identifier: BSD-3-Clause
|
2655
2655
|
*/
|
2656
|
-
const
|
2656
|
+
const Go = { attribute: !0, type: String, converter: Ge, reflect: !1, hasChanged: Jt }, Xo = (s = Go, e, t) => {
|
2657
2657
|
const { kind: n, metadata: i } = t;
|
2658
2658
|
let r = globalThis.litPropertyMetadata.get(i);
|
2659
2659
|
if (r === void 0 && globalThis.litPropertyMetadata.set(i, r = /* @__PURE__ */ new Map()), r.set(t.name, s), n === "accessor") {
|
@@ -2675,7 +2675,7 @@ const Ko = { attribute: !0, type: String, converter: Ke, reflect: !1, hasChanged
|
|
2675
2675
|
throw Error("Unsupported decorator location: " + n);
|
2676
2676
|
};
|
2677
2677
|
function w(s) {
|
2678
|
-
return (e, t) => typeof t == "object" ?
|
2678
|
+
return (e, t) => typeof t == "object" ? Xo(s, e, t) : ((n, i, r) => {
|
2679
2679
|
const o = i.hasOwnProperty(r);
|
2680
2680
|
return i.constructor.createProperty(r, o ? { ...n, wrapped: !0 } : n), o ? Object.getOwnPropertyDescriptor(i, r) : void 0;
|
2681
2681
|
})(s, e, t);
|
@@ -2685,7 +2685,7 @@ function w(s) {
|
|
2685
2685
|
* Copyright 2017 Google LLC
|
2686
2686
|
* SPDX-License-Identifier: BSD-3-Clause
|
2687
2687
|
*/
|
2688
|
-
function
|
2688
|
+
function C(s) {
|
2689
2689
|
return w({ ...s, state: !0, attribute: !1 });
|
2690
2690
|
}
|
2691
2691
|
/**
|
@@ -2693,14 +2693,14 @@ function O(s) {
|
|
2693
2693
|
* Copyright 2020 Google LLC
|
2694
2694
|
* SPDX-License-Identifier: BSD-3-Clause
|
2695
2695
|
*/
|
2696
|
-
const
|
2696
|
+
const Vo = (s) => s.strings === void 0;
|
2697
2697
|
/**
|
2698
2698
|
* @license
|
2699
2699
|
* Copyright 2017 Google LLC
|
2700
2700
|
* SPDX-License-Identifier: BSD-3-Clause
|
2701
2701
|
*/
|
2702
|
-
const
|
2703
|
-
let
|
2702
|
+
const ft = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, gt = (s) => (...e) => ({ _$litDirective$: s, values: e });
|
2703
|
+
let rn = class {
|
2704
2704
|
constructor(e) {
|
2705
2705
|
}
|
2706
2706
|
get _$AU() {
|
@@ -2721,15 +2721,15 @@ let sn = class {
|
|
2721
2721
|
* Copyright 2017 Google LLC
|
2722
2722
|
* SPDX-License-Identifier: BSD-3-Clause
|
2723
2723
|
*/
|
2724
|
-
const
|
2724
|
+
const ke = (s, e) => {
|
2725
2725
|
var n;
|
2726
2726
|
const t = s._$AN;
|
2727
2727
|
if (t === void 0)
|
2728
2728
|
return !1;
|
2729
2729
|
for (const i of t)
|
2730
|
-
(n = i._$AO) == null || n.call(i, e, !1),
|
2730
|
+
(n = i._$AO) == null || n.call(i, e, !1), ke(i, e);
|
2731
2731
|
return !0;
|
2732
|
-
},
|
2732
|
+
}, nt = (s) => {
|
2733
2733
|
let e, t;
|
2734
2734
|
do {
|
2735
2735
|
if ((e = s._$AM) === void 0)
|
@@ -2743,28 +2743,28 @@ const we = (s, e) => {
|
|
2743
2743
|
e._$AN = t = /* @__PURE__ */ new Set();
|
2744
2744
|
else if (t.has(s))
|
2745
2745
|
break;
|
2746
|
-
t.add(s),
|
2746
|
+
t.add(s), ta(e);
|
2747
2747
|
}
|
2748
2748
|
};
|
2749
2749
|
function Jo(s) {
|
2750
|
-
this._$AN !== void 0 ? (
|
2750
|
+
this._$AN !== void 0 ? (nt(this), this._$AM = s, ii(this)) : this._$AM = s;
|
2751
2751
|
}
|
2752
|
-
function
|
2752
|
+
function ea(s, e = !1, t = 0) {
|
2753
2753
|
const n = this._$AH, i = this._$AN;
|
2754
2754
|
if (i !== void 0 && i.size !== 0)
|
2755
2755
|
if (e)
|
2756
2756
|
if (Array.isArray(n))
|
2757
2757
|
for (let r = t; r < n.length; r++)
|
2758
|
-
|
2758
|
+
ke(n[r], !1), nt(n[r]);
|
2759
2759
|
else
|
2760
|
-
n != null && (
|
2760
|
+
n != null && (ke(n, !1), nt(n));
|
2761
2761
|
else
|
2762
|
-
|
2762
|
+
ke(this, s);
|
2763
2763
|
}
|
2764
|
-
const
|
2765
|
-
s.type ==
|
2764
|
+
const ta = (s) => {
|
2765
|
+
s.type == ft.CHILD && (s._$AP ?? (s._$AP = ea), s._$AQ ?? (s._$AQ = Jo));
|
2766
2766
|
};
|
2767
|
-
let ri = class extends
|
2767
|
+
let ri = class extends rn {
|
2768
2768
|
constructor() {
|
2769
2769
|
super(...arguments), this._$AN = void 0;
|
2770
2770
|
}
|
@@ -2773,10 +2773,10 @@ let ri = class extends sn {
|
|
2773
2773
|
}
|
2774
2774
|
_$AO(e, t = !0) {
|
2775
2775
|
var n, i;
|
2776
|
-
e !== this.isConnected && (this.isConnected = e, e ? (n = this.reconnected) == null || n.call(this) : (i = this.disconnected) == null || i.call(this)), t && (
|
2776
|
+
e !== this.isConnected && (this.isConnected = e, e ? (n = this.reconnected) == null || n.call(this) : (i = this.disconnected) == null || i.call(this)), t && (ke(this, e), nt(this));
|
2777
2777
|
}
|
2778
2778
|
setValue(e) {
|
2779
|
-
if (
|
2779
|
+
if (Vo(this._$Ct))
|
2780
2780
|
this._$Ct._$AI(e, this);
|
2781
2781
|
else {
|
2782
2782
|
const t = [...this._$Ct._$AH];
|
@@ -2793,10 +2793,10 @@ let ri = class extends sn {
|
|
2793
2793
|
* Copyright 2020 Google LLC
|
2794
2794
|
* SPDX-License-Identifier: BSD-3-Clause
|
2795
2795
|
*/
|
2796
|
-
const
|
2797
|
-
class
|
2796
|
+
const M = () => new na();
|
2797
|
+
class na {
|
2798
2798
|
}
|
2799
|
-
const At = /* @__PURE__ */ new WeakMap(),
|
2799
|
+
const At = /* @__PURE__ */ new WeakMap(), z = gt(class extends ri {
|
2800
2800
|
render(s) {
|
2801
2801
|
return g;
|
2802
2802
|
}
|
@@ -2829,10 +2829,10 @@ const At = /* @__PURE__ */ new WeakMap(), V = ft(class extends ri {
|
|
2829
2829
|
* Copyright 2018 Google LLC
|
2830
2830
|
* SPDX-License-Identifier: BSD-3-Clause
|
2831
2831
|
*/
|
2832
|
-
const
|
2832
|
+
const ve = gt(class extends rn {
|
2833
2833
|
constructor(s) {
|
2834
2834
|
var e;
|
2835
|
-
if (super(s), s.type !==
|
2835
|
+
if (super(s), s.type !== ft.ATTRIBUTE || s.name !== "class" || ((e = s.strings) == null ? void 0 : e.length) > 2)
|
2836
2836
|
throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
|
2837
2837
|
}
|
2838
2838
|
render(s) {
|
@@ -2853,15 +2853,15 @@ const Te = ft(class extends sn {
|
|
2853
2853
|
const o = !!e[r];
|
2854
2854
|
o === this.st.has(r) || (i = this.nt) != null && i.has(r) || (o ? (t.add(r), this.st.add(r)) : (t.remove(r), this.st.delete(r)));
|
2855
2855
|
}
|
2856
|
-
return
|
2856
|
+
return Q;
|
2857
2857
|
}
|
2858
2858
|
});
|
2859
|
-
var
|
2860
|
-
for (var i = n > 1 ? void 0 : n ?
|
2859
|
+
var sa = Object.defineProperty, ia = Object.getOwnPropertyDescriptor, ra = (s, e, t, n) => {
|
2860
|
+
for (var i = n > 1 ? void 0 : n ? ia(e, t) : e, r = s.length - 1, o; r >= 0; r--)
|
2861
2861
|
(o = s[r]) && (i = (n ? o(e, t, i) : o(i)) || i);
|
2862
|
-
return n && i &&
|
2862
|
+
return n && i && sa(e, t, i), i;
|
2863
2863
|
};
|
2864
|
-
class
|
2864
|
+
class on extends k {
|
2865
2865
|
constructor() {
|
2866
2866
|
super(...arguments), this.anchor = "BottomRight";
|
2867
2867
|
}
|
@@ -2873,8 +2873,8 @@ class rn extends k {
|
|
2873
2873
|
return this.anchor === "BottomLeft" ? this.renderRoot.host.classList.add("bottom-left") : this.anchor === "BottomRight" && this.renderRoot.host.classList.add("bottom-right"), g;
|
2874
2874
|
}
|
2875
2875
|
}
|
2876
|
-
|
2877
|
-
|
2876
|
+
on.styles = [
|
2877
|
+
E`
|
2878
2878
|
:host {
|
2879
2879
|
position: fixed;
|
2880
2880
|
display: flex;
|
@@ -2892,12 +2892,12 @@ rn.styles = [
|
|
2892
2892
|
}
|
2893
2893
|
`
|
2894
2894
|
];
|
2895
|
-
|
2895
|
+
ra([
|
2896
2896
|
w({ attribute: !0 })
|
2897
|
-
],
|
2898
|
-
const
|
2899
|
-
let
|
2900
|
-
const Et = /* @__PURE__ */ new Map(),
|
2897
|
+
], on.prototype, "anchor", 2);
|
2898
|
+
const oa = /* @__PURE__ */ new WeakMap();
|
2899
|
+
let Vn = 0;
|
2900
|
+
const Et = /* @__PURE__ */ new Map(), Jn = /* @__PURE__ */ new WeakSet(), es = () => new Promise((s) => requestAnimationFrame(s)), aa = [{ transform: "translateX(100%) scale(0)", opacity: 0 }], la = [{ opacity: 0 }], ts = [{ opacity: 0 }, { opacity: 1 }], ns = (s, e) => {
|
2901
2901
|
const t = s - e;
|
2902
2902
|
return t === 0 ? void 0 : t;
|
2903
2903
|
}, ss = (s, e) => {
|
@@ -2919,10 +2919,10 @@ const Et = /* @__PURE__ */ new Map(), Vn = /* @__PURE__ */ new WeakSet(), es = (
|
|
2919
2919
|
e === 0 && (e = 1, t = { height: "1px" });
|
2920
2920
|
const n = ss(s, e);
|
2921
2921
|
return { value: n, overrideFrom: t, transform: n == null || isNaN(n) ? void 0 : `scaleY(${n})` };
|
2922
|
-
} },
|
2923
|
-
class
|
2922
|
+
} }, ca = { duration: 333, easing: "ease-in-out" }, ha = ["left", "top", "width", "height", "opacity", "color", "background"], is = /* @__PURE__ */ new WeakMap();
|
2923
|
+
class ua extends ri {
|
2924
2924
|
constructor(e) {
|
2925
|
-
if (super(e), this.t = !1, this.i = null, this.o = null, this.h = !0, this.shouldLog = !1, e.type ===
|
2925
|
+
if (super(e), this.t = !1, this.i = null, this.o = null, this.h = !0, this.shouldLog = !1, e.type === ft.CHILD)
|
2926
2926
|
throw Error("The `animate` directive must be used in attribute position.");
|
2927
2927
|
this.createFinished();
|
2928
2928
|
}
|
@@ -2940,7 +2940,7 @@ class ha extends ri {
|
|
2940
2940
|
return g;
|
2941
2941
|
}
|
2942
2942
|
getController() {
|
2943
|
-
return
|
2943
|
+
return oa.get(this.u);
|
2944
2944
|
}
|
2945
2945
|
isDisabled() {
|
2946
2946
|
var e;
|
@@ -2954,7 +2954,7 @@ class ha extends ri {
|
|
2954
2954
|
p(e) {
|
2955
2955
|
e = e ?? {};
|
2956
2956
|
const t = this.getController();
|
2957
|
-
t !== void 0 && ((e = { ...t.defaultOptions, ...e }).keyframeOptions = { ...t.defaultOptions.keyframeOptions, ...e.keyframeOptions }), e.properties ?? (e.properties =
|
2957
|
+
t !== void 0 && ((e = { ...t.defaultOptions, ...e }).keyframeOptions = { ...t.defaultOptions.keyframeOptions, ...e.keyframeOptions }), e.properties ?? (e.properties = ha), this.options = e;
|
2958
2958
|
}
|
2959
2959
|
m() {
|
2960
2960
|
const e = {}, t = this.element.getBoundingClientRect(), n = getComputedStyle(this.element);
|
@@ -2991,7 +2991,7 @@ class ha extends ri {
|
|
2991
2991
|
if (r) {
|
2992
2992
|
Et.delete(this.options.inId);
|
2993
2993
|
const { from: o, to: a } = this.N(r, i, t);
|
2994
|
-
e = this.calculateKeyframes(o, a), e = this.options.in ? [{ ...this.options.in[0], ...e[0] }, ...this.options.in.slice(1), e[1]] : e,
|
2994
|
+
e = this.calculateKeyframes(o, a), e = this.options.in ? [{ ...this.options.in[0], ...e[0] }, ...this.options.in.slice(1), e[1]] : e, Vn++, e.forEach((l) => l.zIndex = Vn);
|
2995
2995
|
} else
|
2996
2996
|
this.options.in && (e = [...this.options.in, {}]);
|
2997
2997
|
}
|
@@ -3042,13 +3042,13 @@ class ha extends ri {
|
|
3042
3042
|
return e;
|
3043
3043
|
}
|
3044
3044
|
get isHostRendered() {
|
3045
|
-
const e =
|
3045
|
+
const e = Jn.has(this.u);
|
3046
3046
|
return e || this.u.updateComplete.then(() => {
|
3047
|
-
|
3047
|
+
Jn.add(this.u);
|
3048
3048
|
}), e;
|
3049
3049
|
}
|
3050
3050
|
j(e, t = this.O()) {
|
3051
|
-
const n = { ...
|
3051
|
+
const n = { ...ca };
|
3052
3052
|
return t.forEach((i) => Object.assign(n, i.options.keyframeOptions)), Object.assign(n, e), n;
|
3053
3053
|
}
|
3054
3054
|
N(e, t, n) {
|
@@ -3099,36 +3099,39 @@ class ha extends ri {
|
|
3099
3099
|
this.shouldLog && !this.isDisabled() && console.log(e, this.options.id, t);
|
3100
3100
|
}
|
3101
3101
|
}
|
3102
|
-
const
|
3102
|
+
const Bt = gt(ua), Ne = (s, e, t) => {
|
3103
3103
|
s && t.style.setProperty(e, s);
|
3104
3104
|
}, oi = (s, e) => {
|
3105
3105
|
var t, n, i, r;
|
3106
|
-
|
3106
|
+
Ne((t = s.colors) == null ? void 0 : t.primaryBackground, "--primary-background", e), Ne(
|
3107
3107
|
(n = s.colors) == null ? void 0 : n.textOnPrimaryBackground,
|
3108
3108
|
"--text-on-primary-background",
|
3109
3109
|
e
|
3110
|
-
),
|
3110
|
+
), Ne(
|
3111
3111
|
(i = s.colors) == null ? void 0 : i.secondaryBackground,
|
3112
3112
|
"--secondary-background",
|
3113
3113
|
e
|
3114
|
-
),
|
3114
|
+
), Ne(
|
3115
3115
|
(r = s.colors) == null ? void 0 : r.textOnSecondaryBackground,
|
3116
3116
|
"--text-on-secondary-background",
|
3117
3117
|
e
|
3118
3118
|
);
|
3119
3119
|
};
|
3120
|
-
var
|
3121
|
-
for (var i = n > 1 ? void 0 : n ?
|
3120
|
+
var pa = Object.defineProperty, da = Object.getOwnPropertyDescriptor, Me = (s, e, t, n) => {
|
3121
|
+
for (var i = n > 1 ? void 0 : n ? da(e, t) : e, r = s.length - 1, o; r >= 0; r--)
|
3122
3122
|
(o = s[r]) && (i = (n ? o(e, t, i) : o(i)) || i);
|
3123
|
-
return n && i &&
|
3123
|
+
return n && i && pa(e, t, i), i;
|
3124
3124
|
};
|
3125
|
-
class
|
3125
|
+
class G extends k {
|
3126
3126
|
constructor() {
|
3127
|
-
super(...arguments), this.active = !1, this.loaded = !1, this.containerRef =
|
3127
|
+
super(...arguments), this.active = !1, this.triggerVisible = !0, this.loaded = !1, this.containerRef = M(), this.widgetActive$ = new U(!1), this.componentIsDestroyed$ = new _();
|
3128
3128
|
}
|
3129
3129
|
async connectedCallback() {
|
3130
3130
|
super.connectedCallback(), this.icon = await this._renderSymbol(), this.loaded = !0, this._applyBranding();
|
3131
3131
|
}
|
3132
|
+
disconnectedCallback() {
|
3133
|
+
super.disconnectedCallback(), this.componentIsDestroyed$.next(), this.componentIsDestroyed$.complete();
|
3134
|
+
}
|
3132
3135
|
toggleActive() {
|
3133
3136
|
var e;
|
3134
3137
|
if (!((e = this.application) != null && e.root)) {
|
@@ -3137,7 +3140,7 @@ class ie extends k {
|
|
3137
3140
|
);
|
3138
3141
|
return;
|
3139
3142
|
}
|
3140
|
-
this.active = !this.active, this.active ? this.application.appendToDOM() : this.application.hide();
|
3143
|
+
this.active = !this.active, this.active ? (this.application.appendToDOM(), this.widgetActive$.next(!0)) : (this.application.hide(), this.widgetActive$.next(!1));
|
3141
3144
|
}
|
3142
3145
|
_applyBranding() {
|
3143
3146
|
var e;
|
@@ -3151,7 +3154,7 @@ class ie extends k {
|
|
3151
3154
|
const n = (c = this.application) == null ? void 0 : c.triggerIcon;
|
3152
3155
|
if (!n)
|
3153
3156
|
return g;
|
3154
|
-
const i = async (h) =>
|
3157
|
+
const i = async (h) => Kr, { type: r, content: o } = n;
|
3155
3158
|
switch (r) {
|
3156
3159
|
case "Telia": {
|
3157
3160
|
const h = await i();
|
@@ -3165,17 +3168,29 @@ class ie extends k {
|
|
3165
3168
|
return g;
|
3166
3169
|
}
|
3167
3170
|
}
|
3171
|
+
hideTrigger() {
|
3172
|
+
this.triggerVisible = !1;
|
3173
|
+
}
|
3174
|
+
showTrigger() {
|
3175
|
+
this.triggerVisible = !0;
|
3176
|
+
}
|
3168
3177
|
render() {
|
3169
3178
|
var e, t, n, i;
|
3170
|
-
return m`<div
|
3179
|
+
return m`<div
|
3180
|
+
class=${ve({
|
3181
|
+
"trigger-container": !0,
|
3182
|
+
hidden: !this.triggerVisible
|
3183
|
+
})}
|
3184
|
+
${z(this.containerRef)}
|
3185
|
+
>
|
3171
3186
|
${!this.active && ((i = (n = (t = (e = this.application) == null ? void 0 : e.settings) == null ? void 0 : t.branding) == null ? void 0 : n.other) != null && i.showButtonLabel) ? m`
|
3172
3187
|
<button
|
3173
3188
|
label="${this.application.settings.branding.other.buttonLabelText ?? "Widget trigger"}"
|
3174
3189
|
class="trigger-label"
|
3175
3190
|
@click=${this.toggleActive}
|
3176
|
-
${
|
3191
|
+
${Bt({
|
3177
3192
|
keyframeOptions: {},
|
3178
|
-
in:
|
3193
|
+
in: aa,
|
3179
3194
|
stabilizeOut: !0,
|
3180
3195
|
skipInitial: !1
|
3181
3196
|
})}
|
@@ -3186,7 +3201,7 @@ class ie extends k {
|
|
3186
3201
|
|
3187
3202
|
<button
|
3188
3203
|
label="Widget trigger"
|
3189
|
-
class=${
|
3204
|
+
class=${ve({
|
3190
3205
|
trigger: !0,
|
3191
3206
|
active: this.active,
|
3192
3207
|
rendered: this.loaded
|
@@ -3225,8 +3240,8 @@ class ie extends k {
|
|
3225
3240
|
</div>`;
|
3226
3241
|
}
|
3227
3242
|
}
|
3228
|
-
|
3229
|
-
|
3243
|
+
G.styles = [
|
3244
|
+
E`
|
3230
3245
|
:host {
|
3231
3246
|
--voca-rem-multiplier: 0.625;
|
3232
3247
|
--trigger-label-bg: #f5e0ff;
|
@@ -3242,6 +3257,9 @@ ie.styles = [
|
|
3242
3257
|
align-items: center;
|
3243
3258
|
gap: 1rem;
|
3244
3259
|
}
|
3260
|
+
.trigger-container.hidden {
|
3261
|
+
display: none;
|
3262
|
+
}
|
3245
3263
|
|
3246
3264
|
.trigger {
|
3247
3265
|
transform: scale(0);
|
@@ -3334,22 +3352,25 @@ ie.styles = [
|
|
3334
3352
|
}
|
3335
3353
|
`
|
3336
3354
|
];
|
3337
|
-
|
3355
|
+
Me([
|
3338
3356
|
w({ attribute: !1 })
|
3339
|
-
],
|
3340
|
-
|
3341
|
-
|
3342
|
-
],
|
3343
|
-
|
3344
|
-
|
3345
|
-
],
|
3346
|
-
|
3347
|
-
|
3348
|
-
],
|
3349
|
-
|
3350
|
-
|
3357
|
+
], G.prototype, "application", 2);
|
3358
|
+
Me([
|
3359
|
+
C()
|
3360
|
+
], G.prototype, "active", 2);
|
3361
|
+
Me([
|
3362
|
+
C()
|
3363
|
+
], G.prototype, "triggerVisible", 2);
|
3364
|
+
Me([
|
3365
|
+
C()
|
3366
|
+
], G.prototype, "loaded", 2);
|
3367
|
+
Me([
|
3368
|
+
C()
|
3369
|
+
], G.prototype, "icon", 2);
|
3370
|
+
var fa = Object.defineProperty, ga = Object.getOwnPropertyDescriptor, ee = (s, e, t, n) => {
|
3371
|
+
for (var i = n > 1 ? void 0 : n ? ga(e, t) : e, r = s.length - 1, o; r >= 0; r--)
|
3351
3372
|
(o = s[r]) && (i = (n ? o(e, t, i) : o(i)) || i);
|
3352
|
-
return n && i &&
|
3373
|
+
return n && i && fa(e, t, i), i;
|
3353
3374
|
};
|
3354
3375
|
const ai = (s) => {
|
3355
3376
|
class e extends s {
|
@@ -3377,7 +3398,7 @@ const ai = (s) => {
|
|
3377
3398
|
}
|
3378
3399
|
return e.styles = [
|
3379
3400
|
// (superClass as unknown as typeof LitElement).styles ?? [],
|
3380
|
-
|
3401
|
+
E`
|
3381
3402
|
:host {
|
3382
3403
|
font-family: var(--font-family);
|
3383
3404
|
grid-column: span var(--width);
|
@@ -3390,19 +3411,19 @@ const ai = (s) => {
|
|
3390
3411
|
box-sizing: border-box;
|
3391
3412
|
}
|
3392
3413
|
`
|
3393
|
-
],
|
3414
|
+
], ee([
|
3394
3415
|
w()
|
3395
|
-
], e.prototype, "properties", 2),
|
3416
|
+
], e.prototype, "properties", 2), ee([
|
3396
3417
|
w()
|
3397
|
-
], e.prototype, "context", 2),
|
3418
|
+
], e.prototype, "context", 2), ee([
|
3398
3419
|
w()
|
3399
|
-
], e.prototype, "layout", 2),
|
3420
|
+
], e.prototype, "layout", 2), ee([
|
3400
3421
|
w()
|
3401
|
-
], e.prototype, "name", 2),
|
3422
|
+
], e.prototype, "name", 2), ee([
|
3402
3423
|
w()
|
3403
|
-
], e.prototype, "type", 2),
|
3424
|
+
], e.prototype, "type", 2), ee([
|
3404
3425
|
w({ attribute: !1 })
|
3405
|
-
], e.prototype, "application", 2),
|
3426
|
+
], e.prototype, "application", 2), ee([
|
3406
3427
|
w({ attribute: !1 })
|
3407
3428
|
], e.prototype, "parent", 2), e;
|
3408
3429
|
};
|
@@ -3412,7 +3433,7 @@ class li extends ai(k) {
|
|
3412
3433
|
}
|
3413
3434
|
}
|
3414
3435
|
li.styles = [
|
3415
|
-
|
3436
|
+
E`
|
3416
3437
|
:host {
|
3417
3438
|
display: block;
|
3418
3439
|
}
|
@@ -3423,20 +3444,20 @@ li.styles = [
|
|
3423
3444
|
* Copyright 2021 Google LLC
|
3424
3445
|
* SPDX-License-Identifier: BSD-3-Clause
|
3425
3446
|
*/
|
3426
|
-
function*
|
3447
|
+
function* ma(s, e) {
|
3427
3448
|
if (s !== void 0) {
|
3428
3449
|
let t = 0;
|
3429
3450
|
for (const n of s)
|
3430
3451
|
yield e(n, t++);
|
3431
3452
|
}
|
3432
3453
|
}
|
3433
|
-
var
|
3454
|
+
var an = /* @__PURE__ */ ((s) => (s.Inline = "inline", s.Trigger = "trigger", s))(an || {});
|
3434
3455
|
/**
|
3435
3456
|
* @license
|
3436
3457
|
* Copyright 2021 Google LLC
|
3437
3458
|
* SPDX-License-Identifier: BSD-3-Clause
|
3438
3459
|
*/
|
3439
|
-
let
|
3460
|
+
let va = class extends Event {
|
3440
3461
|
constructor(e, t, n) {
|
3441
3462
|
super("context-request", { bubbles: !0, composed: !0 }), this.context = e, this.callback = t, this.subscribe = n ?? !1;
|
3442
3463
|
}
|
@@ -3451,7 +3472,7 @@ let ma = class extends Event {
|
|
3451
3472
|
* Copyright 2021 Google LLC
|
3452
3473
|
* SPDX-License-Identifier: BSD-3-Clause
|
3453
3474
|
*/
|
3454
|
-
class
|
3475
|
+
class ba {
|
3455
3476
|
get value() {
|
3456
3477
|
return this.o;
|
3457
3478
|
}
|
@@ -3486,12 +3507,12 @@ class va {
|
|
3486
3507
|
* Copyright 2021 Google LLC
|
3487
3508
|
* SPDX-License-Identifier: BSD-3-Clause
|
3488
3509
|
*/
|
3489
|
-
let
|
3510
|
+
let ya = class extends Event {
|
3490
3511
|
constructor(e) {
|
3491
3512
|
super("context-provider", { bubbles: !0, composed: !0 }), this.context = e;
|
3492
3513
|
}
|
3493
3514
|
};
|
3494
|
-
class rs extends
|
3515
|
+
class rs extends ba {
|
3495
3516
|
constructor(e, t, n) {
|
3496
3517
|
var i, r;
|
3497
3518
|
super(t.context !== void 0 ? t.initialValue : n), this.onContextRequest = (o) => {
|
@@ -3503,7 +3524,7 @@ class rs extends va {
|
|
3503
3524
|
return;
|
3504
3525
|
const l = /* @__PURE__ */ new Set();
|
3505
3526
|
for (const [c, { consumerHost: h }] of this.subscriptions)
|
3506
|
-
l.has(c) || (l.add(c), h.dispatchEvent(new
|
3527
|
+
l.has(c) || (l.add(c), h.dispatchEvent(new va(this.context, c, !0)));
|
3507
3528
|
o.stopPropagation();
|
3508
3529
|
}, 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);
|
3509
3530
|
}
|
@@ -3511,7 +3532,7 @@ class rs extends va {
|
|
3511
3532
|
this.host.addEventListener("context-request", this.onContextRequest), this.host.addEventListener("context-provider", this.onProviderRequest);
|
3512
3533
|
}
|
3513
3534
|
hostConnected() {
|
3514
|
-
this.host.dispatchEvent(new
|
3535
|
+
this.host.dispatchEvent(new ya(this.context));
|
3515
3536
|
}
|
3516
3537
|
}
|
3517
3538
|
/**
|
@@ -3557,15 +3578,15 @@ function $a({ context: s }) {
|
|
3557
3578
|
}
|
3558
3579
|
};
|
3559
3580
|
}
|
3560
|
-
var
|
3561
|
-
for (var i = n > 1 ? void 0 : n ?
|
3581
|
+
var xa = Object.defineProperty, wa = Object.getOwnPropertyDescriptor, ka = (s, e, t, n) => {
|
3582
|
+
for (var i = n > 1 ? void 0 : n ? wa(e, t) : e, r = s.length - 1, o; r >= 0; r--)
|
3562
3583
|
(o = s[r]) && (i = (n ? o(e, t, i) : o(i)) || i);
|
3563
|
-
return n && i &&
|
3584
|
+
return n && i && xa(e, t, i), i;
|
3564
3585
|
};
|
3565
|
-
const
|
3566
|
-
class
|
3586
|
+
const _a = "application";
|
3587
|
+
class ln extends k {
|
3567
3588
|
constructor() {
|
3568
|
-
super(...arguments), this.nodes = [], this.wrapperRef =
|
3589
|
+
super(...arguments), this.nodes = [], this.wrapperRef = M();
|
3569
3590
|
}
|
3570
3591
|
addChild(e) {
|
3571
3592
|
e.parent = this, this.nodes.push(e);
|
@@ -3588,12 +3609,12 @@ class an extends k {
|
|
3588
3609
|
this.applyBranding(), this.applyStyles();
|
3589
3610
|
}
|
3590
3611
|
render() {
|
3591
|
-
return this.application.renderStrategy ===
|
3592
|
-
${
|
3612
|
+
return this.application.renderStrategy === an.Trigger && (this.renderRoot.host.classList.add("floating"), this.application.anchor === "BottomLeft" ? this.renderRoot.host.classList.add("bottom-left") : this.application.anchor === "BottomRight" && this.renderRoot.host.classList.add("bottom-right")), m`<div class="widget-container" ${z(this.wrapperRef)}>
|
3613
|
+
${ma(this.nodes, (e) => e)}
|
3593
3614
|
</div>`;
|
3594
3615
|
}
|
3595
3616
|
}
|
3596
|
-
|
3617
|
+
ln.styles = E`
|
3597
3618
|
:host {
|
3598
3619
|
--font-family: TeliaSans, Helvetica, Arial, Lucida Grande, sans-serif;
|
3599
3620
|
--spacing-xs: 0.2rem;
|
@@ -3638,6 +3659,7 @@ an.styles = A`
|
|
3638
3659
|
@media screen and (max-width: 800px) {
|
3639
3660
|
:host(.floating) {
|
3640
3661
|
inset: 0 0 95px 0;
|
3662
|
+
height: 100%;
|
3641
3663
|
}
|
3642
3664
|
}
|
3643
3665
|
@media screen and (min-width: 801px) {
|
@@ -3658,6 +3680,10 @@ an.styles = A`
|
|
3658
3680
|
:host(.floating) .widget-container {
|
3659
3681
|
box-shadow: rgba(0, 0, 0, 0.16) 0px 5px 40px;
|
3660
3682
|
border-radius: 0.7rem;
|
3683
|
+
|
3684
|
+
@media screen and (max-width: 800px) {
|
3685
|
+
border-radius: 0;
|
3686
|
+
}
|
3661
3687
|
}
|
3662
3688
|
|
3663
3689
|
* {
|
@@ -3696,18 +3722,19 @@ an.styles = A`
|
|
3696
3722
|
:host(.hidden) {
|
3697
3723
|
opacity: 0;
|
3698
3724
|
animation: slideDown 0.3s linear;
|
3725
|
+
pointer-events: none;
|
3699
3726
|
}
|
3700
3727
|
`;
|
3701
|
-
|
3728
|
+
ka([
|
3702
3729
|
w({ attribute: !1 }),
|
3703
|
-
$a({ context:
|
3704
|
-
],
|
3705
|
-
var
|
3706
|
-
for (var i = n > 1 ? void 0 : n ?
|
3730
|
+
$a({ context: _a })
|
3731
|
+
], ln.prototype, "application", 2);
|
3732
|
+
var ci = /* @__PURE__ */ ((s) => (s.Mandatory = "mandatory", s.Preferences = "preferences", s.Analytics = "analytics", s))(ci || {}), Sa = Object.defineProperty, Ca = Object.getOwnPropertyDescriptor, cn = (s, e, t, n) => {
|
3733
|
+
for (var i = n > 1 ? void 0 : n ? Ca(e, t) : e, r = s.length - 1, o; r >= 0; r--)
|
3707
3734
|
(o = s[r]) && (i = (n ? o(e, t, i) : o(i)) || i);
|
3708
|
-
return n && i &&
|
3735
|
+
return n && i && Sa(e, t, i), i;
|
3709
3736
|
};
|
3710
|
-
class
|
3737
|
+
class ze extends k {
|
3711
3738
|
constructor() {
|
3712
3739
|
super(), this.status = "deactivated", this.addEventListener("environment-created", this.onEnvironmentCreated);
|
3713
3740
|
}
|
@@ -3732,35 +3759,35 @@ class Me extends k {
|
|
3732
3759
|
render() {
|
3733
3760
|
if (!this.widget || this.status !== "activated")
|
3734
3761
|
return g;
|
3735
|
-
if (this.widget.renderStrategy ===
|
3736
|
-
const e = new
|
3762
|
+
if (this.widget.renderStrategy === an.Trigger) {
|
3763
|
+
const e = new G();
|
3737
3764
|
return e.application = this.widget, e;
|
3738
3765
|
}
|
3739
3766
|
return this.widget.render();
|
3740
3767
|
}
|
3741
3768
|
}
|
3742
|
-
|
3743
|
-
|
3769
|
+
ze.styles = [
|
3770
|
+
E`
|
3744
3771
|
:host {
|
3745
3772
|
display: block;
|
3746
3773
|
}
|
3747
3774
|
`
|
3748
3775
|
];
|
3749
|
-
|
3776
|
+
cn([
|
3750
3777
|
w({ attribute: !0 })
|
3751
|
-
],
|
3752
|
-
|
3753
|
-
|
3754
|
-
],
|
3755
|
-
|
3756
|
-
|
3757
|
-
],
|
3758
|
-
customElements.get("ace-trigger-slot") || customElements.define("ace-trigger-slot",
|
3759
|
-
customElements.get("ace-trigger") || customElements.define("ace-trigger",
|
3778
|
+
], ze.prototype, "name", 2);
|
3779
|
+
cn([
|
3780
|
+
C()
|
3781
|
+
], ze.prototype, "widget", 2);
|
3782
|
+
cn([
|
3783
|
+
C()
|
3784
|
+
], ze.prototype, "status", 2);
|
3785
|
+
customElements.get("ace-trigger-slot") || customElements.define("ace-trigger-slot", on);
|
3786
|
+
customElements.get("ace-trigger") || customElements.define("ace-trigger", G);
|
3760
3787
|
customElements.get("ace-unresolved-component") || customElements.define("ace-unresolved-component", li);
|
3761
|
-
customElements.get("ace-wrapper") || customElements.define("ace-wrapper",
|
3762
|
-
customElements.get("ace-widget") || customElements.define("ace-widget",
|
3763
|
-
class
|
3788
|
+
customElements.get("ace-wrapper") || customElements.define("ace-wrapper", ln);
|
3789
|
+
customElements.get("ace-widget") || customElements.define("ace-widget", ze);
|
3790
|
+
class Aa {
|
3764
3791
|
constructor(e) {
|
3765
3792
|
this._message = null, this._host = e, e.addController(this);
|
3766
3793
|
}
|
@@ -3778,7 +3805,7 @@ class Ca {
|
|
3778
3805
|
}
|
3779
3806
|
class os {
|
3780
3807
|
constructor(e, t, n, i, r) {
|
3781
|
-
this.id = e, this.providerKey = t, this.providerOptions = n, this.component = r, this.provider$ = new
|
3808
|
+
this.id = e, this.providerKey = t, this.providerOptions = n, this.component = r, this.provider$ = new U(null), this.entries$ = new U([]), this.removeEntryAction$ = new _(), this.kill$ = new _(), this.isTyping$ = new U(!1), this.data$ = new U({}), this.complete$ = this.provider$.pipe(
|
3782
3809
|
pe((l) => l ? l.onComplete() : Pe)
|
3783
3810
|
);
|
3784
3811
|
const o = this._getProviderFactory(t);
|
@@ -3786,9 +3813,9 @@ class os {
|
|
3786
3813
|
throw new Error(`No provider with key "${t}" was found.`);
|
3787
3814
|
this.data$.next(i);
|
3788
3815
|
const a = o(this.component);
|
3789
|
-
this.provider$.next(a), a.actions().pipe(
|
3816
|
+
this.provider$.next(a), a.actions().pipe(zt(this.kill$)).subscribe((l) => {
|
3790
3817
|
this.write(l);
|
3791
|
-
}), a.isTyping().pipe(
|
3818
|
+
}), a.isTyping().pipe(zt(this.kill$)).subscribe((l) => {
|
3792
3819
|
this.isTyping$.next(l);
|
3793
3820
|
});
|
3794
3821
|
}
|
@@ -3832,9 +3859,9 @@ class os {
|
|
3832
3859
|
return this.component.platform.registeredProviders.get(e);
|
3833
3860
|
}
|
3834
3861
|
}
|
3835
|
-
class
|
3862
|
+
class Ea {
|
3836
3863
|
constructor(e) {
|
3837
|
-
this.component = e, this.currentSession$ = new
|
3864
|
+
this.component = e, this.currentSession$ = new U(null), this.sessions = [], this.storage = null, Ke(e, "handover").subscribe((t) => {
|
3838
3865
|
const n = this._createNewSession(
|
3839
3866
|
t.detail.providerKey,
|
3840
3867
|
t.detail.providerOptions
|
@@ -3911,7 +3938,7 @@ class Aa {
|
|
3911
3938
|
const t = {
|
3912
3939
|
sessions: e.sessions.map((n) => n.toStore())
|
3913
3940
|
};
|
3914
|
-
this.storage.set("conversation",
|
3941
|
+
this.storage.set("conversation", t, ci.Mandatory);
|
3915
3942
|
}
|
3916
3943
|
_createNewSession(e, t = {}) {
|
3917
3944
|
const n = this._getStoredSessions(), i = new os(
|
@@ -3930,9 +3957,9 @@ class Aa {
|
|
3930
3957
|
return this.component.properties.providers[0];
|
3931
3958
|
}
|
3932
3959
|
}
|
3933
|
-
class
|
3960
|
+
class Ta {
|
3934
3961
|
constructor(e, t) {
|
3935
|
-
this.state$ = e, this.component = t, this.entries$ = new
|
3962
|
+
this.state$ = e, this.component = t, this.entries$ = new U([]), this.session = () => this.session$, this.isTyping = () => this.isTyping$, this.entries = () => this.entries$.asObservable(), this.sessionService = new Ea(this.component), this.session$ = this.sessionService.currentSession(), this.isTyping$ = this.session$.pipe(
|
3936
3963
|
pe((n) => n ? n.provider$.pipe(
|
3937
3964
|
pe((i) => i ? i.isTyping() : It(!1))
|
3938
3965
|
) : It(!1))
|
@@ -3962,15 +3989,15 @@ class Ea {
|
|
3962
3989
|
pe((e) => {
|
3963
3990
|
if (!e)
|
3964
3991
|
return Pe;
|
3965
|
-
const t = e.removeEntryAction$.pipe(
|
3966
|
-
|
3992
|
+
const t = e.removeEntryAction$.pipe(Ut(this.entries$)).pipe(
|
3993
|
+
Qe(([i, r]) => r.filter((o) => o.id !== i.id))
|
3967
3994
|
), n = e.entries().pipe(
|
3968
|
-
|
3995
|
+
Qe((i) => {
|
3969
3996
|
const r = this.entries$.value, o = i.filter((a) => r.findIndex((l) => l.id === a.id) === -1);
|
3970
3997
|
return [...r, ...o];
|
3971
3998
|
})
|
3972
3999
|
);
|
3973
|
-
return
|
4000
|
+
return xr(t, n);
|
3974
4001
|
})
|
3975
4002
|
).subscribe((e) => {
|
3976
4003
|
this.entries$.next(e);
|
@@ -3981,12 +4008,12 @@ class Ea {
|
|
3981
4008
|
(e = this.sessionService) == null || e.startSession();
|
3982
4009
|
}
|
3983
4010
|
}
|
3984
|
-
var
|
4011
|
+
var La = Object.defineProperty, Oa = Object.getOwnPropertyDescriptor, Pa = (s, e, t, n) => {
|
3985
4012
|
for (var i = n > 1 ? void 0 : n ? Oa(e, t) : e, r = s.length - 1, o; r >= 0; r--)
|
3986
4013
|
(o = s[r]) && (i = (n ? o(e, t, i) : o(i)) || i);
|
3987
|
-
return n && i &&
|
4014
|
+
return n && i && La(e, t, i), i;
|
3988
4015
|
};
|
3989
|
-
class
|
4016
|
+
class hn extends k {
|
3990
4017
|
connectedCallback() {
|
3991
4018
|
var e;
|
3992
4019
|
super.connectedCallback(), (e = this.entry.didUpdate) == null || e.subscribe(() => {
|
@@ -4011,10 +4038,10 @@ class cn extends k {
|
|
4011
4038
|
svg=${Zr.svg}
|
4012
4039
|
size="sm"
|
4013
4040
|
></telia-icon>` : e === "failed" ? m`<telia-icon
|
4014
|
-
svg=${
|
4041
|
+
svg=${qr.svg}
|
4015
4042
|
size="sm"
|
4016
4043
|
title="Message could not be delivered"
|
4017
|
-
></telia-icon>` : m`<telia-icon svg=${
|
4044
|
+
></telia-icon>` : m`<telia-icon svg=${Wr.svg} size="sm"></telia-icon>`;
|
4018
4045
|
}
|
4019
4046
|
_dispatchEntryAction(e) {
|
4020
4047
|
this.entry.actions$.next(e.detail);
|
@@ -4022,7 +4049,7 @@ class cn extends k {
|
|
4022
4049
|
render() {
|
4023
4050
|
var e, t;
|
4024
4051
|
switch (this.entry.type) {
|
4025
|
-
case
|
4052
|
+
case Z.System:
|
4026
4053
|
return m`
|
4027
4054
|
<div class="conversation-system-message">
|
4028
4055
|
${this.entry.messages.map(
|
@@ -4040,9 +4067,9 @@ class cn extends k {
|
|
4040
4067
|
<span>${this._getTimestamp(this.entry.timestamp)}</span>
|
4041
4068
|
</div>
|
4042
4069
|
`;
|
4043
|
-
case
|
4070
|
+
case Z.Agent:
|
4044
4071
|
return m`<div
|
4045
|
-
class=${
|
4072
|
+
class=${ve({
|
4046
4073
|
"conversation-agent-message": !0,
|
4047
4074
|
"has-avatar": !!((e = this.entry.sender) != null && e.avatar)
|
4048
4075
|
})}
|
@@ -4069,9 +4096,9 @@ class cn extends k {
|
|
4069
4096
|
)}
|
4070
4097
|
</div>
|
4071
4098
|
</div>`;
|
4072
|
-
case
|
4099
|
+
case Z.User:
|
4073
4100
|
return m`<div
|
4074
|
-
class=${
|
4101
|
+
class=${ve({
|
4075
4102
|
"conversation-user-message": !0,
|
4076
4103
|
"has-error": this.entry.status === "failed"
|
4077
4104
|
})}
|
@@ -4100,8 +4127,8 @@ class cn extends k {
|
|
4100
4127
|
}
|
4101
4128
|
}
|
4102
4129
|
}
|
4103
|
-
|
4104
|
-
|
4130
|
+
hn.styles = [
|
4131
|
+
E`
|
4105
4132
|
:host {
|
4106
4133
|
box-sizing: border-box;
|
4107
4134
|
display: block;
|
@@ -4218,13 +4245,13 @@ cn.styles = [
|
|
4218
4245
|
}
|
4219
4246
|
`
|
4220
4247
|
];
|
4221
|
-
|
4248
|
+
Pa([
|
4222
4249
|
w({ attribute: !1 })
|
4223
|
-
],
|
4224
|
-
var
|
4225
|
-
for (var i = n > 1 ? void 0 : n ?
|
4250
|
+
], hn.prototype, "entry", 2);
|
4251
|
+
var Ra = Object.defineProperty, Ia = Object.getOwnPropertyDescriptor, hi = (s, e, t, n) => {
|
4252
|
+
for (var i = n > 1 ? void 0 : n ? Ia(e, t) : e, r = s.length - 1, o; r >= 0; r--)
|
4226
4253
|
(o = s[r]) && (i = (n ? o(e, t, i) : o(i)) || i);
|
4227
|
-
return n && i &&
|
4254
|
+
return n && i && Ra(e, t, i), i;
|
4228
4255
|
};
|
4229
4256
|
class mt extends k {
|
4230
4257
|
constructor() {
|
@@ -4240,7 +4267,7 @@ class mt extends k {
|
|
4240
4267
|
(e) => m`<div class="conversation-entry" tabindex="-1">
|
4241
4268
|
<conversation-entry
|
4242
4269
|
.entry=${e}
|
4243
|
-
${
|
4270
|
+
${Bt({
|
4244
4271
|
keyframeOptions: {},
|
4245
4272
|
in: ts,
|
4246
4273
|
stabilizeOut: !0,
|
@@ -4251,10 +4278,10 @@ class mt extends k {
|
|
4251
4278
|
</div>`
|
4252
4279
|
)}
|
4253
4280
|
${this.loading ? m`<ace-typing-state
|
4254
|
-
${
|
4281
|
+
${Bt({
|
4255
4282
|
keyframeOptions: {},
|
4256
4283
|
in: ts,
|
4257
|
-
out:
|
4284
|
+
out: la,
|
4258
4285
|
stabilizeOut: !0,
|
4259
4286
|
skipInitial: !1
|
4260
4287
|
})}
|
@@ -4263,7 +4290,7 @@ class mt extends k {
|
|
4263
4290
|
}
|
4264
4291
|
}
|
4265
4292
|
mt.styles = [
|
4266
|
-
|
4293
|
+
E`
|
4267
4294
|
:host {
|
4268
4295
|
display: block;
|
4269
4296
|
}
|
@@ -4276,10 +4303,10 @@ mt.styles = [
|
|
4276
4303
|
}
|
4277
4304
|
`
|
4278
4305
|
];
|
4279
|
-
|
4306
|
+
hi([
|
4280
4307
|
w({ attribute: !1 })
|
4281
4308
|
], mt.prototype, "entries", 2);
|
4282
|
-
|
4309
|
+
hi([
|
4283
4310
|
w({ type: Boolean })
|
4284
4311
|
], mt.prototype, "loading", 2);
|
4285
4312
|
/**
|
@@ -4287,24 +4314,24 @@ ci([
|
|
4287
4314
|
* Copyright 2021 Google LLC
|
4288
4315
|
* SPDX-License-Identifier: BSD-3-Clause
|
4289
4316
|
*/
|
4290
|
-
const
|
4317
|
+
const Ma = (s, e, t) => {
|
4291
4318
|
for (const n of e)
|
4292
4319
|
if (n[0] === s)
|
4293
4320
|
return (0, n[1])();
|
4294
4321
|
return t == null ? void 0 : t();
|
4295
4322
|
};
|
4296
|
-
var
|
4297
|
-
for (var i = n > 1 ? void 0 : n ?
|
4323
|
+
var za = Object.defineProperty, Ua = Object.getOwnPropertyDescriptor, ja = (s, e, t, n) => {
|
4324
|
+
for (var i = n > 1 ? void 0 : n ? Ua(e, t) : e, r = s.length - 1, o; r >= 0; r--)
|
4298
4325
|
(o = s[r]) && (i = (n ? o(e, t, i) : o(i)) || i);
|
4299
|
-
return n && i &&
|
4326
|
+
return n && i && za(e, t, i), i;
|
4300
4327
|
};
|
4301
|
-
class
|
4328
|
+
class un extends k {
|
4302
4329
|
render() {
|
4303
4330
|
return m`
|
4304
4331
|
<div class="message-group">
|
4305
4332
|
${this.group.items.map(
|
4306
4333
|
([e, t, n]) => m`
|
4307
|
-
${
|
4334
|
+
${Ma(
|
4308
4335
|
e,
|
4309
4336
|
[
|
4310
4337
|
["html", () => m`<message-type-html .message=${t} />`],
|
@@ -4327,8 +4354,8 @@ class hn extends k {
|
|
4327
4354
|
`;
|
4328
4355
|
}
|
4329
4356
|
}
|
4330
|
-
|
4331
|
-
|
4357
|
+
un.styles = [
|
4358
|
+
E`
|
4332
4359
|
:host {
|
4333
4360
|
box-sizing: border-box;
|
4334
4361
|
display: block;
|
@@ -4343,10 +4370,10 @@ hn.styles = [
|
|
4343
4370
|
}
|
4344
4371
|
`
|
4345
4372
|
];
|
4346
|
-
|
4373
|
+
ja([
|
4347
4374
|
w({ attribute: !1 })
|
4348
|
-
],
|
4349
|
-
class
|
4375
|
+
], un.prototype, "group", 2);
|
4376
|
+
class ui extends k {
|
4350
4377
|
render() {
|
4351
4378
|
return m`<div class="container">
|
4352
4379
|
<div class="dot"></div>
|
@@ -4355,8 +4382,8 @@ class hi extends k {
|
|
4355
4382
|
</div>`;
|
4356
4383
|
}
|
4357
4384
|
}
|
4358
|
-
|
4359
|
-
|
4385
|
+
ui.styles = [
|
4386
|
+
E`
|
4360
4387
|
:host {
|
4361
4388
|
display: block;
|
4362
4389
|
}
|
@@ -4397,15 +4424,15 @@ hi.styles = [
|
|
4397
4424
|
* Copyright 2017 Google LLC
|
4398
4425
|
* SPDX-License-Identifier: BSD-3-Clause
|
4399
4426
|
*/
|
4400
|
-
class
|
4427
|
+
class Nt extends rn {
|
4401
4428
|
constructor(e) {
|
4402
|
-
if (super(e), this.it = g, e.type !==
|
4429
|
+
if (super(e), this.it = g, e.type !== ft.CHILD)
|
4403
4430
|
throw Error(this.constructor.directiveName + "() can only be used in child bindings");
|
4404
4431
|
}
|
4405
4432
|
render(e) {
|
4406
4433
|
if (e === g || e == null)
|
4407
4434
|
return this._t = void 0, this.it = e;
|
4408
|
-
if (e ===
|
4435
|
+
if (e === Q)
|
4409
4436
|
return e;
|
4410
4437
|
if (typeof e != "string")
|
4411
4438
|
throw Error(this.constructor.directiveName + "() called with a non-string value");
|
@@ -4416,22 +4443,22 @@ class Bt extends sn {
|
|
4416
4443
|
return t.raw = t, this._t = { _$litType$: this.constructor.resultType, strings: t, values: [] };
|
4417
4444
|
}
|
4418
4445
|
}
|
4419
|
-
|
4420
|
-
const
|
4421
|
-
var
|
4422
|
-
for (var i = n > 1 ? void 0 : n ?
|
4446
|
+
Nt.directiveName = "unsafeHTML", Nt.resultType = 1;
|
4447
|
+
const Ha = gt(Nt);
|
4448
|
+
var Da = Object.defineProperty, Ba = Object.getOwnPropertyDescriptor, Na = (s, e, t, n) => {
|
4449
|
+
for (var i = n > 1 ? void 0 : n ? Ba(e, t) : e, r = s.length - 1, o; r >= 0; r--)
|
4423
4450
|
(o = s[r]) && (i = (n ? o(e, t, i) : o(i)) || i);
|
4424
|
-
return n && i &&
|
4451
|
+
return n && i && Da(e, t, i), i;
|
4425
4452
|
};
|
4426
|
-
class
|
4453
|
+
class pn extends k {
|
4427
4454
|
render() {
|
4428
4455
|
return m`<div class="message-type-html">
|
4429
|
-
${
|
4456
|
+
${Ha(this.message.content)}
|
4430
4457
|
</div>`;
|
4431
4458
|
}
|
4432
4459
|
}
|
4433
|
-
|
4434
|
-
|
4460
|
+
pn.styles = [
|
4461
|
+
E`
|
4435
4462
|
:host {
|
4436
4463
|
box-sizing: border-box;
|
4437
4464
|
}
|
@@ -4454,10 +4481,10 @@ un.styles = [
|
|
4454
4481
|
}
|
4455
4482
|
`
|
4456
4483
|
];
|
4457
|
-
|
4484
|
+
Na([
|
4458
4485
|
w({ attribute: !1 })
|
4459
|
-
],
|
4460
|
-
function
|
4486
|
+
], pn.prototype, "message", 2);
|
4487
|
+
function dn() {
|
4461
4488
|
return {
|
4462
4489
|
async: !1,
|
4463
4490
|
breaks: !1,
|
@@ -4471,37 +4498,37 @@ function pn() {
|
|
4471
4498
|
walkTokens: null
|
4472
4499
|
};
|
4473
4500
|
}
|
4474
|
-
let
|
4475
|
-
function
|
4476
|
-
|
4501
|
+
let oe = dn();
|
4502
|
+
function pi(s) {
|
4503
|
+
oe = s;
|
4477
4504
|
}
|
4478
|
-
const
|
4505
|
+
const di = /[&<>"']/, Fa = new RegExp(di.source, "g"), fi = /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, qa = new RegExp(fi.source, "g"), Za = {
|
4479
4506
|
"&": "&",
|
4480
4507
|
"<": "<",
|
4481
4508
|
">": ">",
|
4482
4509
|
'"': """,
|
4483
4510
|
"'": "'"
|
4484
4511
|
}, as = (s) => Za[s];
|
4485
|
-
function
|
4512
|
+
function L(s, e) {
|
4486
4513
|
if (e) {
|
4487
|
-
if (
|
4488
|
-
return s.replace(
|
4489
|
-
} else if (
|
4490
|
-
return s.replace(
|
4514
|
+
if (di.test(s))
|
4515
|
+
return s.replace(Fa, as);
|
4516
|
+
} else if (fi.test(s))
|
4517
|
+
return s.replace(qa, as);
|
4491
4518
|
return s;
|
4492
4519
|
}
|
4493
|
-
const
|
4494
|
-
function
|
4495
|
-
return s.replace(
|
4520
|
+
const Wa = /&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;
|
4521
|
+
function Ya(s) {
|
4522
|
+
return s.replace(Wa, (e, t) => (t = t.toLowerCase(), t === "colon" ? ":" : t.charAt(0) === "#" ? t.charAt(1) === "x" ? String.fromCharCode(parseInt(t.substring(2), 16)) : String.fromCharCode(+t.substring(1)) : ""));
|
4496
4523
|
}
|
4497
|
-
const
|
4498
|
-
function
|
4524
|
+
const Qa = /(^|[^\[])\^/g;
|
4525
|
+
function y(s, e) {
|
4499
4526
|
let t = typeof s == "string" ? s : s.source;
|
4500
4527
|
e = e || "";
|
4501
4528
|
const n = {
|
4502
4529
|
replace: (i, r) => {
|
4503
4530
|
let o = typeof r == "string" ? r : r.source;
|
4504
|
-
return o = o.replace(
|
4531
|
+
return o = o.replace(Qa, "$1"), t = t.replace(i, o), n;
|
4505
4532
|
},
|
4506
4533
|
getRegex: () => new RegExp(t, e)
|
4507
4534
|
};
|
@@ -4515,7 +4542,7 @@ function ls(s) {
|
|
4515
4542
|
}
|
4516
4543
|
return s;
|
4517
4544
|
}
|
4518
|
-
const
|
4545
|
+
const _e = { exec: () => null };
|
4519
4546
|
function cs(s, e) {
|
4520
4547
|
const t = s.replace(/\|/g, (r, o, a) => {
|
4521
4548
|
let l = !1, c = o;
|
@@ -4534,7 +4561,7 @@ function cs(s, e) {
|
|
4534
4561
|
n[i] = n[i].trim().replace(/\\\|/g, "|");
|
4535
4562
|
return n;
|
4536
4563
|
}
|
4537
|
-
function
|
4564
|
+
function Fe(s, e, t) {
|
4538
4565
|
const n = s.length;
|
4539
4566
|
if (n === 0)
|
4540
4567
|
return "";
|
@@ -4550,7 +4577,7 @@ function Ne(s, e, t) {
|
|
4550
4577
|
}
|
4551
4578
|
return s.slice(0, n - i);
|
4552
4579
|
}
|
4553
|
-
function
|
4580
|
+
function Ka(s, e) {
|
4554
4581
|
if (s.indexOf(e[1]) === -1)
|
4555
4582
|
return -1;
|
4556
4583
|
let t = 0;
|
@@ -4564,7 +4591,7 @@ function Qa(s, e) {
|
|
4564
4591
|
return -1;
|
4565
4592
|
}
|
4566
4593
|
function hs(s, e, t, n) {
|
4567
|
-
const i = e.href, r = e.title ?
|
4594
|
+
const i = e.href, r = e.title ? L(e.title) : null, o = s[1].replace(/\\([\[\]])/g, "$1");
|
4568
4595
|
if (s[0].charAt(0) !== "!") {
|
4569
4596
|
n.state.inLink = !0;
|
4570
4597
|
const a = {
|
@@ -4582,10 +4609,10 @@ function hs(s, e, t, n) {
|
|
4582
4609
|
raw: t,
|
4583
4610
|
href: i,
|
4584
4611
|
title: r,
|
4585
|
-
text:
|
4612
|
+
text: L(o)
|
4586
4613
|
};
|
4587
4614
|
}
|
4588
|
-
function
|
4615
|
+
function Ga(s, e) {
|
4589
4616
|
const t = s.match(/^(\s+)(?:```)/);
|
4590
4617
|
if (t === null)
|
4591
4618
|
return e;
|
@@ -4600,14 +4627,14 @@ function Ka(s, e) {
|
|
4600
4627
|
}).join(`
|
4601
4628
|
`);
|
4602
4629
|
}
|
4603
|
-
class
|
4630
|
+
class st {
|
4604
4631
|
// set by the lexer
|
4605
4632
|
constructor(e) {
|
4606
4633
|
x(this, "options");
|
4607
4634
|
x(this, "rules");
|
4608
4635
|
// set by the lexer
|
4609
4636
|
x(this, "lexer");
|
4610
|
-
this.options = e ||
|
4637
|
+
this.options = e || oe;
|
4611
4638
|
}
|
4612
4639
|
space(e) {
|
4613
4640
|
const t = this.rules.block.newline.exec(e);
|
@@ -4625,7 +4652,7 @@ class nt {
|
|
4625
4652
|
type: "code",
|
4626
4653
|
raw: t[0],
|
4627
4654
|
codeBlockStyle: "indented",
|
4628
|
-
text: this.options.pedantic ? n :
|
4655
|
+
text: this.options.pedantic ? n : Fe(n, `
|
4629
4656
|
`)
|
4630
4657
|
};
|
4631
4658
|
}
|
@@ -4633,7 +4660,7 @@ class nt {
|
|
4633
4660
|
fences(e) {
|
4634
4661
|
const t = this.rules.block.fences.exec(e);
|
4635
4662
|
if (t) {
|
4636
|
-
const n = t[0], i =
|
4663
|
+
const n = t[0], i = Ga(n, t[3] || "");
|
4637
4664
|
return {
|
4638
4665
|
type: "code",
|
4639
4666
|
raw: n,
|
@@ -4647,7 +4674,7 @@ class nt {
|
|
4647
4674
|
if (t) {
|
4648
4675
|
let n = t[2].trim();
|
4649
4676
|
if (/#$/.test(n)) {
|
4650
|
-
const i =
|
4677
|
+
const i = Fe(n, "#");
|
4651
4678
|
(this.options.pedantic || !i || / $/.test(i)) && (n = i.trim());
|
4652
4679
|
}
|
4653
4680
|
return {
|
@@ -4672,7 +4699,7 @@ class nt {
|
|
4672
4699
|
if (t) {
|
4673
4700
|
let n = t[0].replace(/\n {0,3}((?:=+|-+) *)(?=\n|$)/g, `
|
4674
4701
|
$1`);
|
4675
|
-
n =
|
4702
|
+
n = Fe(n.replace(/^ *>[ \t]?/gm, ""), `
|
4676
4703
|
`);
|
4677
4704
|
const i = this.lexer.state.top;
|
4678
4705
|
this.lexer.state.top = !0;
|
@@ -4706,38 +4733,38 @@ class nt {
|
|
4706
4733
|
break;
|
4707
4734
|
a = t[0], e = e.substring(a.length);
|
4708
4735
|
let u = t[2].split(`
|
4709
|
-
`, 1)[0].replace(/^\t+/, (
|
4736
|
+
`, 1)[0].replace(/^\t+/, (N) => " ".repeat(3 * N.length)), p = e.split(`
|
4710
4737
|
`, 1)[0], d = 0;
|
4711
4738
|
this.options.pedantic ? (d = 2, l = u.trimStart()) : (d = t[2].search(/[^ ]/), d = d > 4 ? 1 : d, l = u.slice(d), d += t[1].length);
|
4712
4739
|
let b = !1;
|
4713
4740
|
if (!u && /^ *$/.test(p) && (a += p + `
|
4714
4741
|
`, e = e.substring(p.length + 1), h = !0), !h) {
|
4715
|
-
const
|
4742
|
+
const N = new RegExp(`^ {0,${Math.min(3, d - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`), V = new RegExp(`^ {0,${Math.min(3, d - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`), xn = new RegExp(`^ {0,${Math.min(3, d - 1)}}(?:\`\`\`|~~~)`), wn = new RegExp(`^ {0,${Math.min(3, d - 1)}}#`);
|
4716
4743
|
for (; e; ) {
|
4717
|
-
const
|
4744
|
+
const yt = e.split(`
|
4718
4745
|
`, 1)[0];
|
4719
|
-
if (p =
|
4746
|
+
if (p = yt, this.options.pedantic && (p = p.replace(/^ {1,4}(?=( {4})*[^ ])/g, " ")), xn.test(p) || wn.test(p) || N.test(p) || V.test(e))
|
4720
4747
|
break;
|
4721
4748
|
if (p.search(/[^ ]/) >= d || !p.trim())
|
4722
4749
|
l += `
|
4723
4750
|
` + p.slice(d);
|
4724
4751
|
else {
|
4725
|
-
if (b || u.search(/[^ ]/) >= 4 ||
|
4752
|
+
if (b || u.search(/[^ ]/) >= 4 || xn.test(u) || wn.test(u) || V.test(u))
|
4726
4753
|
break;
|
4727
4754
|
l += `
|
4728
4755
|
` + p;
|
4729
4756
|
}
|
4730
|
-
!b && !p.trim() && (b = !0), a +=
|
4731
|
-
`, e = e.substring(
|
4757
|
+
!b && !p.trim() && (b = !0), a += yt + `
|
4758
|
+
`, e = e.substring(yt.length + 1), u = p.slice(d);
|
4732
4759
|
}
|
4733
4760
|
}
|
4734
4761
|
r.loose || (c ? r.loose = !0 : /\n *\n *$/.test(a) && (c = !0));
|
4735
|
-
let f = null,
|
4736
|
-
this.options.gfm && (f = /^\[[ xX]\] /.exec(l), f && (
|
4762
|
+
let f = null, I;
|
4763
|
+
this.options.gfm && (f = /^\[[ xX]\] /.exec(l), f && (I = f[0] !== "[ ] ", l = l.replace(/^\[[ xX]\] +/, ""))), r.items.push({
|
4737
4764
|
type: "list_item",
|
4738
4765
|
raw: a,
|
4739
4766
|
task: !!f,
|
4740
|
-
checked:
|
4767
|
+
checked: I,
|
4741
4768
|
loose: !1,
|
4742
4769
|
text: l,
|
4743
4770
|
tokens: []
|
@@ -4847,7 +4874,7 @@ class nt {
|
|
4847
4874
|
return {
|
4848
4875
|
type: "escape",
|
4849
4876
|
raw: t[0],
|
4850
|
-
text:
|
4877
|
+
text: L(t[1])
|
4851
4878
|
};
|
4852
4879
|
}
|
4853
4880
|
tag(e) {
|
@@ -4869,11 +4896,11 @@ class nt {
|
|
4869
4896
|
if (!this.options.pedantic && /^</.test(n)) {
|
4870
4897
|
if (!/>$/.test(n))
|
4871
4898
|
return;
|
4872
|
-
const o =
|
4899
|
+
const o = Fe(n.slice(0, -1), "\\");
|
4873
4900
|
if ((n.length - o.length) % 2 === 0)
|
4874
4901
|
return;
|
4875
4902
|
} else {
|
4876
|
-
const o =
|
4903
|
+
const o = Ka(t[2], "()");
|
4877
4904
|
if (o > -1) {
|
4878
4905
|
const l = (t[0].indexOf("!") === 0 ? 5 : 4) + t[1].length + o;
|
4879
4906
|
t[2] = t[2].substring(0, o), t[0] = t[0].substring(0, l).trim(), t[3] = "";
|
@@ -4952,7 +4979,7 @@ class nt {
|
|
4952
4979
|
if (t) {
|
4953
4980
|
let n = t[2].replace(/\n/g, " ");
|
4954
4981
|
const i = /[^ ]/.test(n), r = /^ /.test(n) && / $/.test(n);
|
4955
|
-
return i && r && (n = n.substring(1, n.length - 1)), n =
|
4982
|
+
return i && r && (n = n.substring(1, n.length - 1)), n = L(n, !0), {
|
4956
4983
|
type: "codespan",
|
4957
4984
|
raw: t[0],
|
4958
4985
|
text: n
|
@@ -4981,7 +5008,7 @@ class nt {
|
|
4981
5008
|
const t = this.rules.inline.autolink.exec(e);
|
4982
5009
|
if (t) {
|
4983
5010
|
let n, i;
|
4984
|
-
return t[2] === "@" ? (n =
|
5011
|
+
return t[2] === "@" ? (n = L(t[1]), i = "mailto:" + n) : (n = L(t[1]), i = n), {
|
4985
5012
|
type: "link",
|
4986
5013
|
raw: t[0],
|
4987
5014
|
text: n,
|
@@ -5002,13 +5029,13 @@ class nt {
|
|
5002
5029
|
if (t = this.rules.inline.url.exec(e)) {
|
5003
5030
|
let i, r;
|
5004
5031
|
if (t[2] === "@")
|
5005
|
-
i =
|
5032
|
+
i = L(t[0]), r = "mailto:" + i;
|
5006
5033
|
else {
|
5007
5034
|
let o;
|
5008
5035
|
do
|
5009
5036
|
o = t[0], t[0] = ((n = this.rules.inline._backpedal.exec(t[0])) == null ? void 0 : n[0]) ?? "";
|
5010
5037
|
while (o !== t[0]);
|
5011
|
-
i =
|
5038
|
+
i = L(t[0]), t[1] === "www." ? r = "http://" + t[0] : r = t[0];
|
5012
5039
|
}
|
5013
5040
|
return {
|
5014
5041
|
type: "link",
|
@@ -5029,7 +5056,7 @@ class nt {
|
|
5029
5056
|
const t = this.rules.inline.text.exec(e);
|
5030
5057
|
if (t) {
|
5031
5058
|
let n;
|
5032
|
-
return this.lexer.state.inRawBlock ? n = t[0] : n =
|
5059
|
+
return this.lexer.state.inRawBlock ? n = t[0] : n = L(t[0]), {
|
5033
5060
|
type: "text",
|
5034
5061
|
raw: t[0],
|
5035
5062
|
text: n
|
@@ -5037,104 +5064,104 @@ class nt {
|
|
5037
5064
|
}
|
5038
5065
|
}
|
5039
5066
|
}
|
5040
|
-
const
|
5041
|
-
blockquote:
|
5042
|
-
code:
|
5043
|
-
def:
|
5067
|
+
const Xa = /^(?: *(?:\n|$))+/, Va = /^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/, Ja = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, Ue = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, el = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, gi = /(?:[*+-]|\d{1,9}[.)])/, mi = y(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g, gi).replace(/blockCode/g, / {4}/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).getRegex(), fn = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, tl = /^[^\n]+/, gn = /(?!\s*\])(?:\\.|[^\[\]\\])+/, nl = y(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label", gn).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), sl = y(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, gi).getRegex(), vt = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", mn = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, il = y("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))", "i").replace("comment", mn).replace("tag", vt).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), vi = y(fn).replace("hr", Ue).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", vt).getRegex(), rl = y(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", vi).getRegex(), vn = {
|
5068
|
+
blockquote: rl,
|
5069
|
+
code: Va,
|
5070
|
+
def: nl,
|
5044
5071
|
fences: Ja,
|
5045
|
-
heading:
|
5046
|
-
hr:
|
5047
|
-
html:
|
5048
|
-
lheading:
|
5049
|
-
list:
|
5050
|
-
newline:
|
5051
|
-
paragraph:
|
5052
|
-
table:
|
5053
|
-
text:
|
5054
|
-
}, us =
|
5055
|
-
...
|
5072
|
+
heading: el,
|
5073
|
+
hr: Ue,
|
5074
|
+
html: il,
|
5075
|
+
lheading: mi,
|
5076
|
+
list: sl,
|
5077
|
+
newline: Xa,
|
5078
|
+
paragraph: vi,
|
5079
|
+
table: _e,
|
5080
|
+
text: tl
|
5081
|
+
}, us = y("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", Ue).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", " {4}[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", vt).getRegex(), ol = {
|
5082
|
+
...vn,
|
5056
5083
|
table: us,
|
5057
|
-
paragraph:
|
5058
|
-
},
|
5059
|
-
...
|
5060
|
-
html:
|
5084
|
+
paragraph: y(fn).replace("hr", Ue).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", us).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", vt).getRegex()
|
5085
|
+
}, al = {
|
5086
|
+
...vn,
|
5087
|
+
html: y(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", mn).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),
|
5061
5088
|
def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,
|
5062
5089
|
heading: /^(#{1,6})(.*)(?:\n+|$)/,
|
5063
|
-
fences:
|
5090
|
+
fences: _e,
|
5064
5091
|
// fences not supported
|
5065
5092
|
lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
|
5066
|
-
paragraph:
|
5067
|
-
]`).replace("lheading",
|
5068
|
-
},
|
5069
|
-
_backpedal:
|
5093
|
+
paragraph: y(fn).replace("hr", Ue).replace("heading", ` *#{1,6} *[^
|
5094
|
+
]`).replace("lheading", mi).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
|
5095
|
+
}, bi = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, ll = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, yi = /^( {2,}|\\)\n(?!\s*$)/, cl = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, je = "\\p{P}\\p{S}", hl = y(/^((?![*_])[\spunctuation])/, "u").replace(/punctuation/g, je).getRegex(), ul = /\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g, pl = y(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/, "u").replace(/punct/g, je).getRegex(), dl = y("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])", "gu").replace(/punct/g, je).getRegex(), fl = y("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])", "gu").replace(/punct/g, je).getRegex(), gl = y(/\\([punct])/, "gu").replace(/punct/g, je).getRegex(), ml = y(/^<(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(), vl = y(mn).replace("(?:-->|$)", "-->").getRegex(), bl = y("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", vl).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), it = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, yl = y(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label", it).replace("href", /<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), $i = y(/^!?\[(label)\]\[(ref)\]/).replace("label", it).replace("ref", gn).getRegex(), xi = y(/^!?\[(ref)\](?:\[\])?/).replace("ref", gn).getRegex(), $l = y("reflink|nolink(?!\\()", "g").replace("reflink", $i).replace("nolink", xi).getRegex(), bn = {
|
5096
|
+
_backpedal: _e,
|
5070
5097
|
// only used for GFM url
|
5071
|
-
anyPunctuation:
|
5072
|
-
autolink:
|
5073
|
-
blockSkip:
|
5074
|
-
br:
|
5075
|
-
code:
|
5076
|
-
del:
|
5077
|
-
emStrongLDelim:
|
5078
|
-
emStrongRDelimAst:
|
5079
|
-
emStrongRDelimUnd:
|
5080
|
-
escape:
|
5081
|
-
link:
|
5082
|
-
nolink:
|
5083
|
-
punctuation:
|
5098
|
+
anyPunctuation: gl,
|
5099
|
+
autolink: ml,
|
5100
|
+
blockSkip: ul,
|
5101
|
+
br: yi,
|
5102
|
+
code: ll,
|
5103
|
+
del: _e,
|
5104
|
+
emStrongLDelim: pl,
|
5105
|
+
emStrongRDelimAst: dl,
|
5106
|
+
emStrongRDelimUnd: fl,
|
5107
|
+
escape: bi,
|
5108
|
+
link: yl,
|
5109
|
+
nolink: xi,
|
5110
|
+
punctuation: hl,
|
5084
5111
|
reflink: $i,
|
5085
5112
|
reflinkSearch: $l,
|
5086
|
-
tag:
|
5087
|
-
text:
|
5088
|
-
url:
|
5089
|
-
},
|
5090
|
-
...
|
5091
|
-
link:
|
5092
|
-
reflink:
|
5093
|
-
},
|
5094
|
-
...
|
5095
|
-
escape:
|
5096
|
-
url:
|
5113
|
+
tag: bl,
|
5114
|
+
text: cl,
|
5115
|
+
url: _e
|
5116
|
+
}, xl = {
|
5117
|
+
...bn,
|
5118
|
+
link: y(/^!?\[(label)\]\((.*?)\)/).replace("label", it).getRegex(),
|
5119
|
+
reflink: y(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", it).getRegex()
|
5120
|
+
}, Ft = {
|
5121
|
+
...bn,
|
5122
|
+
escape: y(bi).replace("])", "~|])").getRegex(),
|
5123
|
+
url: y(/^((?: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(),
|
5097
5124
|
_backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,
|
5098
5125
|
del: /^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,
|
5099
5126
|
text: /^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/
|
5100
|
-
},
|
5101
|
-
...
|
5102
|
-
br:
|
5103
|
-
text:
|
5104
|
-
},
|
5105
|
-
normal: mn,
|
5106
|
-
gfm: rl,
|
5107
|
-
pedantic: ol
|
5108
|
-
}, $e = {
|
5127
|
+
}, wl = {
|
5128
|
+
...Ft,
|
5129
|
+
br: y(yi).replace("{2,}", "*").getRegex(),
|
5130
|
+
text: y(Ft.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
|
5131
|
+
}, qe = {
|
5109
5132
|
normal: vn,
|
5110
|
-
gfm:
|
5111
|
-
|
5112
|
-
|
5133
|
+
gfm: ol,
|
5134
|
+
pedantic: al
|
5135
|
+
}, $e = {
|
5136
|
+
normal: bn,
|
5137
|
+
gfm: Ft,
|
5138
|
+
breaks: wl,
|
5139
|
+
pedantic: xl
|
5113
5140
|
};
|
5114
|
-
class
|
5141
|
+
class j {
|
5115
5142
|
constructor(e) {
|
5116
5143
|
x(this, "tokens");
|
5117
5144
|
x(this, "options");
|
5118
5145
|
x(this, "state");
|
5119
5146
|
x(this, "tokenizer");
|
5120
5147
|
x(this, "inlineQueue");
|
5121
|
-
this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = e ||
|
5148
|
+
this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = e || oe, this.options.tokenizer = this.options.tokenizer || new st(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = {
|
5122
5149
|
inLink: !1,
|
5123
5150
|
inRawBlock: !1,
|
5124
5151
|
top: !0
|
5125
5152
|
};
|
5126
5153
|
const t = {
|
5127
|
-
block:
|
5154
|
+
block: qe.normal,
|
5128
5155
|
inline: $e.normal
|
5129
5156
|
};
|
5130
|
-
this.options.pedantic ? (t.block =
|
5157
|
+
this.options.pedantic ? (t.block = qe.pedantic, t.inline = $e.pedantic) : this.options.gfm && (t.block = qe.gfm, this.options.breaks ? t.inline = $e.breaks : t.inline = $e.gfm), this.tokenizer.rules = t;
|
5131
5158
|
}
|
5132
5159
|
/**
|
5133
5160
|
* Expose Rules
|
5134
5161
|
*/
|
5135
5162
|
static get rules() {
|
5136
5163
|
return {
|
5137
|
-
block:
|
5164
|
+
block: qe,
|
5138
5165
|
inline: $e
|
5139
5166
|
};
|
5140
5167
|
}
|
@@ -5142,13 +5169,13 @@ class I {
|
|
5142
5169
|
* Static Lex Method
|
5143
5170
|
*/
|
5144
5171
|
static lex(e, t) {
|
5145
|
-
return new
|
5172
|
+
return new j(t).lex(e);
|
5146
5173
|
}
|
5147
5174
|
/**
|
5148
5175
|
* Static Lex Inline Method
|
5149
5176
|
*/
|
5150
5177
|
static lexInline(e, t) {
|
5151
|
-
return new
|
5178
|
+
return new j(t).inlineTokens(e);
|
5152
5179
|
}
|
5153
5180
|
/**
|
5154
5181
|
* Preprocessing
|
@@ -5334,17 +5361,17 @@ class I {
|
|
5334
5361
|
return t;
|
5335
5362
|
}
|
5336
5363
|
}
|
5337
|
-
class
|
5364
|
+
class rt {
|
5338
5365
|
constructor(e) {
|
5339
5366
|
x(this, "options");
|
5340
|
-
this.options = e ||
|
5367
|
+
this.options = e || oe;
|
5341
5368
|
}
|
5342
5369
|
code(e, t, n) {
|
5343
5370
|
var r;
|
5344
5371
|
const i = (r = (t || "").match(/^\S*/)) == null ? void 0 : r[0];
|
5345
5372
|
return e = e.replace(/\n$/, "") + `
|
5346
|
-
`, i ? '<pre><code class="language-' +
|
5347
|
-
` : "<pre><code>" + (n ? e :
|
5373
|
+
`, i ? '<pre><code class="language-' + L(i) + '">' + (n ? e : L(e, !0)) + `</code></pre>
|
5374
|
+
` : "<pre><code>" + (n ? e : L(e, !0)) + `</code></pre>
|
5348
5375
|
`;
|
5349
5376
|
}
|
5350
5377
|
blockquote(e) {
|
@@ -5435,7 +5462,7 @@ ${e}</tr>
|
|
5435
5462
|
return e;
|
5436
5463
|
}
|
5437
5464
|
}
|
5438
|
-
class
|
5465
|
+
class yn {
|
5439
5466
|
// no need for block level renderers
|
5440
5467
|
strong(e) {
|
5441
5468
|
return e;
|
@@ -5465,24 +5492,24 @@ class bn {
|
|
5465
5492
|
return "";
|
5466
5493
|
}
|
5467
5494
|
}
|
5468
|
-
class
|
5495
|
+
class H {
|
5469
5496
|
constructor(e) {
|
5470
5497
|
x(this, "options");
|
5471
5498
|
x(this, "renderer");
|
5472
5499
|
x(this, "textRenderer");
|
5473
|
-
this.options = e ||
|
5500
|
+
this.options = e || oe, this.options.renderer = this.options.renderer || new rt(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.textRenderer = new yn();
|
5474
5501
|
}
|
5475
5502
|
/**
|
5476
5503
|
* Static Parse Method
|
5477
5504
|
*/
|
5478
5505
|
static parse(e, t) {
|
5479
|
-
return new
|
5506
|
+
return new H(t).parse(e);
|
5480
5507
|
}
|
5481
5508
|
/**
|
5482
5509
|
* Static Parse Inline Method
|
5483
5510
|
*/
|
5484
5511
|
static parseInline(e, t) {
|
5485
|
-
return new
|
5512
|
+
return new H(t).parseInline(e);
|
5486
5513
|
}
|
5487
5514
|
/**
|
5488
5515
|
* Parse Loop
|
@@ -5507,7 +5534,7 @@ class M {
|
|
5507
5534
|
}
|
5508
5535
|
case "heading": {
|
5509
5536
|
const o = r;
|
5510
|
-
n += this.renderer.heading(this.parseInline(o.tokens), o.depth,
|
5537
|
+
n += this.renderer.heading(this.parseInline(o.tokens), o.depth, Ya(this.parseInline(o.tokens, this.textRenderer)));
|
5511
5538
|
continue;
|
5512
5539
|
}
|
5513
5540
|
case "code": {
|
@@ -5544,11 +5571,11 @@ class M {
|
|
5544
5571
|
const p = o.items[u], d = p.checked, b = p.task;
|
5545
5572
|
let f = "";
|
5546
5573
|
if (p.task) {
|
5547
|
-
const
|
5548
|
-
c ? p.tokens.length > 0 && p.tokens[0].type === "paragraph" ? (p.tokens[0].text =
|
5574
|
+
const I = this.renderer.checkbox(!!d);
|
5575
|
+
c ? p.tokens.length > 0 && p.tokens[0].type === "paragraph" ? (p.tokens[0].text = I + " " + p.tokens[0].text, p.tokens[0].tokens && p.tokens[0].tokens.length > 0 && p.tokens[0].tokens[0].type === "text" && (p.tokens[0].tokens[0].text = I + " " + p.tokens[0].tokens[0].text)) : p.tokens.unshift({
|
5549
5576
|
type: "text",
|
5550
|
-
text:
|
5551
|
-
}) : f +=
|
5577
|
+
text: I + " "
|
5578
|
+
}) : f += I + " ";
|
5552
5579
|
}
|
5553
5580
|
f += this.parse(p.tokens, c), h += this.renderer.listitem(f, b, !!d);
|
5554
5581
|
}
|
@@ -5659,10 +5686,10 @@ class M {
|
|
5659
5686
|
return n;
|
5660
5687
|
}
|
5661
5688
|
}
|
5662
|
-
class
|
5689
|
+
class Se {
|
5663
5690
|
constructor(e) {
|
5664
5691
|
x(this, "options");
|
5665
|
-
this.options = e ||
|
5692
|
+
this.options = e || oe;
|
5666
5693
|
}
|
5667
5694
|
/**
|
5668
5695
|
* Process markdown before marked
|
@@ -5683,26 +5710,26 @@ class _e {
|
|
5683
5710
|
return e;
|
5684
5711
|
}
|
5685
5712
|
}
|
5686
|
-
x(
|
5713
|
+
x(Se, "passThroughHooks", /* @__PURE__ */ new Set([
|
5687
5714
|
"preprocess",
|
5688
5715
|
"postprocess",
|
5689
5716
|
"processAllTokens"
|
5690
5717
|
]));
|
5691
|
-
var
|
5692
|
-
class
|
5718
|
+
var Le, qt, ot, wi;
|
5719
|
+
class kl {
|
5693
5720
|
constructor(...e) {
|
5694
|
-
|
5695
|
-
|
5696
|
-
x(this, "defaults",
|
5721
|
+
$t(this, Le);
|
5722
|
+
$t(this, ot);
|
5723
|
+
x(this, "defaults", dn());
|
5697
5724
|
x(this, "options", this.setOptions);
|
5698
|
-
x(this, "parse",
|
5699
|
-
x(this, "parseInline",
|
5700
|
-
x(this, "Parser",
|
5701
|
-
x(this, "Renderer",
|
5702
|
-
x(this, "TextRenderer",
|
5703
|
-
x(this, "Lexer",
|
5704
|
-
x(this, "Tokenizer",
|
5705
|
-
x(this, "Hooks",
|
5725
|
+
x(this, "parse", He(this, Le, qt).call(this, j.lex, H.parse));
|
5726
|
+
x(this, "parseInline", He(this, Le, qt).call(this, j.lexInline, H.parseInline));
|
5727
|
+
x(this, "Parser", H);
|
5728
|
+
x(this, "Renderer", rt);
|
5729
|
+
x(this, "TextRenderer", yn);
|
5730
|
+
x(this, "Lexer", j);
|
5731
|
+
x(this, "Tokenizer", st);
|
5732
|
+
x(this, "Hooks", Se);
|
5706
5733
|
this.use(...e);
|
5707
5734
|
}
|
5708
5735
|
/**
|
@@ -5759,7 +5786,7 @@ class wl {
|
|
5759
5786
|
}
|
5760
5787
|
"childTokens" in r && r.childTokens && (t.childTokens[r.name] = r.childTokens);
|
5761
5788
|
}), i.extensions = t), n.renderer) {
|
5762
|
-
const r = this.defaults.renderer || new
|
5789
|
+
const r = this.defaults.renderer || new rt(this.defaults);
|
5763
5790
|
for (const o in n.renderer) {
|
5764
5791
|
if (!(o in r))
|
5765
5792
|
throw new Error(`renderer '${o}' does not exist`);
|
@@ -5774,7 +5801,7 @@ class wl {
|
|
5774
5801
|
i.renderer = r;
|
5775
5802
|
}
|
5776
5803
|
if (n.tokenizer) {
|
5777
|
-
const r = this.defaults.tokenizer || new
|
5804
|
+
const r = this.defaults.tokenizer || new st(this.defaults);
|
5778
5805
|
for (const o in n.tokenizer) {
|
5779
5806
|
if (!(o in r))
|
5780
5807
|
throw new Error(`tokenizer '${o}' does not exist`);
|
@@ -5789,14 +5816,14 @@ class wl {
|
|
5789
5816
|
i.tokenizer = r;
|
5790
5817
|
}
|
5791
5818
|
if (n.hooks) {
|
5792
|
-
const r = this.defaults.hooks || new
|
5819
|
+
const r = this.defaults.hooks || new Se();
|
5793
5820
|
for (const o in n.hooks) {
|
5794
5821
|
if (!(o in r))
|
5795
5822
|
throw new Error(`hook '${o}' does not exist`);
|
5796
5823
|
if (o === "options")
|
5797
5824
|
continue;
|
5798
5825
|
const a = o, l = n.hooks[a], c = r[a];
|
5799
|
-
|
5826
|
+
Se.passThroughHooks.has(o) ? r[a] = (h) => {
|
5800
5827
|
if (this.defaults.async)
|
5801
5828
|
return Promise.resolve(l.call(r, h)).then((p) => c.call(r, p));
|
5802
5829
|
const u = l.call(r, h);
|
@@ -5822,17 +5849,17 @@ class wl {
|
|
5822
5849
|
return this.defaults = { ...this.defaults, ...e }, this;
|
5823
5850
|
}
|
5824
5851
|
lexer(e, t) {
|
5825
|
-
return
|
5852
|
+
return j.lex(e, t ?? this.defaults);
|
5826
5853
|
}
|
5827
5854
|
parser(e, t) {
|
5828
|
-
return
|
5855
|
+
return H.parse(e, t ?? this.defaults);
|
5829
5856
|
}
|
5830
5857
|
}
|
5831
|
-
|
5858
|
+
Le = new WeakSet(), qt = function(e, t) {
|
5832
5859
|
return (n, i) => {
|
5833
5860
|
const r = { ...i }, o = { ...this.defaults, ...r };
|
5834
5861
|
this.defaults.async === !0 && r.async === !1 && (o.silent || console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."), o.async = !0);
|
5835
|
-
const a =
|
5862
|
+
const a = He(this, ot, wi).call(this, !!o.silent, !!o.async);
|
5836
5863
|
if (typeof n > "u" || n === null)
|
5837
5864
|
return a(new Error("marked(): input parameter is undefined or null"));
|
5838
5865
|
if (typeof n != "string")
|
@@ -5849,11 +5876,11 @@ Oe = new WeakSet(), Ft = function(e, t) {
|
|
5849
5876
|
return a(l);
|
5850
5877
|
}
|
5851
5878
|
};
|
5852
|
-
},
|
5879
|
+
}, ot = new WeakSet(), wi = function(e, t) {
|
5853
5880
|
return (n) => {
|
5854
5881
|
if (n.message += `
|
5855
5882
|
Please report this to https://github.com/markedjs/marked.`, e) {
|
5856
|
-
const i = "<p>An error occurred:</p><pre>" +
|
5883
|
+
const i = "<p>An error occurred:</p><pre>" + L(n.message + "", !0) + "</pre>";
|
5857
5884
|
return t ? Promise.resolve(i) : i;
|
5858
5885
|
}
|
5859
5886
|
if (t)
|
@@ -5861,42 +5888,42 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
5861
5888
|
throw n;
|
5862
5889
|
};
|
5863
5890
|
};
|
5864
|
-
const
|
5891
|
+
const re = new kl();
|
5865
5892
|
function v(s, e) {
|
5866
|
-
return
|
5893
|
+
return re.parse(s, e);
|
5867
5894
|
}
|
5868
5895
|
v.options = v.setOptions = function(s) {
|
5869
|
-
return
|
5896
|
+
return re.setOptions(s), v.defaults = re.defaults, pi(v.defaults), v;
|
5870
5897
|
};
|
5871
|
-
v.getDefaults =
|
5872
|
-
v.defaults =
|
5898
|
+
v.getDefaults = dn;
|
5899
|
+
v.defaults = oe;
|
5873
5900
|
v.use = function(...s) {
|
5874
|
-
return
|
5901
|
+
return re.use(...s), v.defaults = re.defaults, pi(v.defaults), v;
|
5875
5902
|
};
|
5876
5903
|
v.walkTokens = function(s, e) {
|
5877
|
-
return
|
5904
|
+
return re.walkTokens(s, e);
|
5878
5905
|
};
|
5879
|
-
v.parseInline =
|
5880
|
-
v.Parser =
|
5881
|
-
v.parser =
|
5882
|
-
v.Renderer =
|
5883
|
-
v.TextRenderer =
|
5884
|
-
v.Lexer =
|
5885
|
-
v.lexer =
|
5886
|
-
v.Tokenizer =
|
5887
|
-
v.Hooks =
|
5906
|
+
v.parseInline = re.parseInline;
|
5907
|
+
v.Parser = H;
|
5908
|
+
v.parser = H.parse;
|
5909
|
+
v.Renderer = rt;
|
5910
|
+
v.TextRenderer = yn;
|
5911
|
+
v.Lexer = j;
|
5912
|
+
v.lexer = j.lex;
|
5913
|
+
v.Tokenizer = st;
|
5914
|
+
v.Hooks = Se;
|
5888
5915
|
v.parse = v;
|
5889
5916
|
v.options;
|
5890
5917
|
v.setOptions;
|
5891
5918
|
v.use;
|
5892
5919
|
v.walkTokens;
|
5893
5920
|
v.parseInline;
|
5894
|
-
|
5895
|
-
|
5896
|
-
var
|
5897
|
-
for (var i = n > 1 ? void 0 : n ?
|
5921
|
+
H.parse;
|
5922
|
+
j.lex;
|
5923
|
+
var _l = Object.defineProperty, Sl = Object.getOwnPropertyDescriptor, ki = (s, e, t, n) => {
|
5924
|
+
for (var i = n > 1 ? void 0 : n ? Sl(e, t) : e, r = s.length - 1, o; r >= 0; r--)
|
5898
5925
|
(o = s[r]) && (i = (n ? o(e, t, i) : o(i)) || i);
|
5899
|
-
return n && i &&
|
5926
|
+
return n && i && _l(e, t, i), i;
|
5900
5927
|
};
|
5901
5928
|
v.use({
|
5902
5929
|
renderer: {
|
@@ -5907,7 +5934,7 @@ v.use({
|
|
5907
5934
|
});
|
5908
5935
|
class bt extends k {
|
5909
5936
|
constructor() {
|
5910
|
-
super(...arguments), this.showLightbox = !1, this.imageUrl = "", this.altText = "", this.scrollRef =
|
5937
|
+
super(...arguments), this.showLightbox = !1, this.imageUrl = "", this.altText = "", this.scrollRef = M(), this.contentRef = M(), this.autoScroll = !0, this.buffer = "", this.pointer = 0, this.imageRegexp = new RegExp(/!\[[^[]*\([^)]*\)/gm), this.includesImage = (e) => this.imageRegexp.test(e);
|
5911
5938
|
}
|
5912
5939
|
// Stop autoscroll on user interaction
|
5913
5940
|
handleAutoscroll() {
|
@@ -5956,10 +5983,10 @@ class bt extends k {
|
|
5956
5983
|
}
|
5957
5984
|
render() {
|
5958
5985
|
return m`
|
5959
|
-
<div class="message-type-markdown" ${
|
5986
|
+
<div class="message-type-markdown" ${z(this.contentRef)}>
|
5960
5987
|
<div></div>
|
5961
5988
|
</div>
|
5962
|
-
<div class="scroll" ${
|
5989
|
+
<div class="scroll" ${z(this.scrollRef)}></div>
|
5963
5990
|
${this.showLightbox ? m`<ace-lightbox
|
5964
5991
|
imageUrl="${this.imageUrl}"
|
5965
5992
|
altText="${this.altText}"
|
@@ -5968,7 +5995,7 @@ class bt extends k {
|
|
5968
5995
|
}
|
5969
5996
|
}
|
5970
5997
|
bt.styles = [
|
5971
|
-
|
5998
|
+
E`
|
5972
5999
|
:host {
|
5973
6000
|
box-sizing: border-box;
|
5974
6001
|
}
|
@@ -5976,10 +6003,13 @@ bt.styles = [
|
|
5976
6003
|
box-sizing: border-box;
|
5977
6004
|
}
|
5978
6005
|
p {
|
5979
|
-
margin: 0
|
6006
|
+
margin: 0;
|
5980
6007
|
padding: 0;
|
5981
6008
|
word-break: break-word;
|
5982
6009
|
}
|
6010
|
+
p:not(:first-of-type) {
|
6011
|
+
margin-top: var(--spacing-sm);
|
6012
|
+
}
|
5983
6013
|
a {
|
5984
6014
|
word-break: break-all;
|
5985
6015
|
}
|
@@ -5991,16 +6021,16 @@ bt.styles = [
|
|
5991
6021
|
}
|
5992
6022
|
`
|
5993
6023
|
];
|
5994
|
-
|
6024
|
+
ki([
|
5995
6025
|
w({ attribute: !1 })
|
5996
6026
|
], bt.prototype, "message", 2);
|
5997
|
-
|
5998
|
-
|
6027
|
+
ki([
|
6028
|
+
C()
|
5999
6029
|
], bt.prototype, "showLightbox", 2);
|
6000
|
-
var
|
6001
|
-
for (var i = n > 1 ? void 0 : n ?
|
6030
|
+
var Cl = Object.defineProperty, Al = Object.getOwnPropertyDescriptor, El = (s, e, t, n) => {
|
6031
|
+
for (var i = n > 1 ? void 0 : n ? Al(e, t) : e, r = s.length - 1, o; r >= 0; r--)
|
6002
6032
|
(o = s[r]) && (i = (n ? o(e, t, i) : o(i)) || i);
|
6003
|
-
return n && i &&
|
6033
|
+
return n && i && Cl(e, t, i), i;
|
6004
6034
|
};
|
6005
6035
|
class $n extends k {
|
6006
6036
|
constructor() {
|
@@ -6039,14 +6069,14 @@ class $n extends k {
|
|
6039
6069
|
@keydown=${this.handleKeyDown}
|
6040
6070
|
>
|
6041
6071
|
<button class="close" @click=${this.closeLightbox}>
|
6042
|
-
<telia-icon svg=${
|
6072
|
+
<telia-icon svg=${Qr.svg} size="lg"></telia-icon>
|
6043
6073
|
</button>
|
6044
6074
|
<img src="${this.imageUrl}" alt="${this.altText ?? ""}" />
|
6045
6075
|
</div> `;
|
6046
6076
|
}
|
6047
6077
|
}
|
6048
6078
|
$n.styles = [
|
6049
|
-
|
6079
|
+
E`
|
6050
6080
|
.lightbox {
|
6051
6081
|
position: fixed;
|
6052
6082
|
z-index: 9999;
|
@@ -6082,49 +6112,51 @@ $n.styles = [
|
|
6082
6112
|
}
|
6083
6113
|
`
|
6084
6114
|
];
|
6085
|
-
|
6115
|
+
El([
|
6086
6116
|
w({ attribute: !0 })
|
6087
6117
|
], $n.prototype, "imageUrl", 2);
|
6088
|
-
var
|
6089
|
-
for (var i = n > 1 ? void 0 : n ?
|
6118
|
+
var Tl = Object.defineProperty, Ll = Object.getOwnPropertyDescriptor, X = (s, e, t, n) => {
|
6119
|
+
for (var i = n > 1 ? void 0 : n ? Ll(e, t) : e, r = s.length - 1, o; r >= 0; r--)
|
6090
6120
|
(o = s[r]) && (i = (n ? o(e, t, i) : o(i)) || i);
|
6091
|
-
return n && i &&
|
6092
|
-
};
|
6093
|
-
const Ol = (s) => {
|
6094
|
-
s.scrollTo ? s.scrollTo({ top: s.scrollHeight, behavior: "smooth" }) : s.scrollTop = s.scrollHeight;
|
6121
|
+
return n && i && Tl(e, t, i), i;
|
6095
6122
|
};
|
6096
|
-
customElements.get("conversation-entry") || customElements.define("conversation-entry",
|
6123
|
+
customElements.get("conversation-entry") || customElements.define("conversation-entry", hn);
|
6097
6124
|
customElements.get("ace-conversation-feed") || customElements.define("ace-conversation-feed", mt);
|
6098
|
-
customElements.get("conversation-group") || customElements.define("conversation-group",
|
6099
|
-
customElements.get("ace-typing-state") || customElements.define("ace-typing-state",
|
6100
|
-
customElements.get("message-type-html") || customElements.define("message-type-html",
|
6125
|
+
customElements.get("conversation-group") || customElements.define("conversation-group", un);
|
6126
|
+
customElements.get("ace-typing-state") || customElements.define("ace-typing-state", ui);
|
6127
|
+
customElements.get("message-type-html") || customElements.define("message-type-html", pn);
|
6101
6128
|
customElements.get("message-type-markdown") || customElements.define("message-type-markdown", bt);
|
6102
6129
|
customElements.get("ace-lightbox") || customElements.define("ace-lightbox", $n);
|
6103
|
-
const
|
6104
|
-
class
|
6130
|
+
const _i = ai(k);
|
6131
|
+
class R extends _i {
|
6105
6132
|
constructor() {
|
6106
|
-
super(...arguments), this.message = "", this.
|
6133
|
+
super(...arguments), this.message = "", this.disabledInput = !1, this.disabledSubmit = !1, this.chatOverlayActive = !1, this.textAreaLength = 0, this.conversationContentRef = M(), this.conversationFeedRef = M(), this.formRef = M(), this.inputRef = M(), this.scrollRef = M(), this.counterRef = M(), this.chatScrollHeight = 0, this.chatCurrentScrollPosition = 0, this.toast = new Aa(this), this.messageMaxLength = 1e3, this.messageMaxLengthLabel = "Maximum character limit reached", this.skipToLatestMessageLabel = "Skip to latest message", this.platform = null, this.entries = [], this.typing = !1, this.conversationState$ = new U("waiting"), this.stateMachine = new Ta(this.conversationState$, this), this.provider$ = this.stateMachine.session().pipe(
|
6107
6134
|
pe((e) => e ? e == null ? void 0 : e.provider$ : It(null))
|
6108
|
-
);
|
6135
|
+
), this.userTyping$ = new _();
|
6109
6136
|
}
|
6110
6137
|
async connectedCallback() {
|
6111
|
-
super.connectedCallback(), this.messageMaxLength = this.properties.messageMaxLength ?? this.messageMaxLength;
|
6138
|
+
super.connectedCallback(), this.messageMaxLength = this.properties.messageMaxLength ?? this.messageMaxLength, this.messageMaxLengthLabel = this.properties.messageMaxLengthLabel ?? this.messageMaxLengthLabel, this.skipToLatestMessageLabel = this.properties.skipToLatestMessageLabel ?? this.skipToLatestMessageLabel;
|
6112
6139
|
const e = await this.application.container.get(
|
6113
6140
|
"conversation"
|
6114
6141
|
);
|
6115
|
-
this.platform = e || null
|
6142
|
+
this.platform = e || null;
|
6143
|
+
const t = this.application.trigger;
|
6144
|
+
t && t.widgetActive$.pipe(zt(t.componentIsDestroyed$)).subscribe((n) => {
|
6145
|
+
const i = this.conversationContentRef.value;
|
6146
|
+
i && (n ? i.scrollTop = this.chatCurrentScrollPosition : this.chatCurrentScrollPosition = i.scrollTop);
|
6147
|
+
}), this.stateSubscription = ur([
|
6116
6148
|
this.stateMachine.entries(),
|
6117
6149
|
this.stateMachine.isTyping()
|
6118
|
-
]).subscribe(([
|
6119
|
-
this.entries =
|
6120
|
-
}), this.userSubmitSubscription =
|
6150
|
+
]).subscribe(([n, i]) => {
|
6151
|
+
this.entries = n, this.typing = i;
|
6152
|
+
}), this.userSubmitSubscription = Ke(
|
6121
6153
|
this,
|
6122
6154
|
"user-submit"
|
6123
|
-
).pipe(
|
6124
|
-
|
6125
|
-
}), this._addHeaderOptions(), this.provider$.pipe(
|
6126
|
-
|
6127
|
-
this.chatOverlayActive =
|
6155
|
+
).pipe(Ut(this.provider$)).subscribe(([n, i]) => {
|
6156
|
+
i && i.onUserSubmit(n.detail);
|
6157
|
+
}), this._addHeaderOptions(), this.provider$.pipe(Ut(this.provider$)).subscribe(([n, i]) => {
|
6158
|
+
i && i.showChatOverlay$.pipe().subscribe((r) => {
|
6159
|
+
this.chatOverlayActive = r;
|
6128
6160
|
});
|
6129
6161
|
});
|
6130
6162
|
}
|
@@ -6134,18 +6166,46 @@ class U extends ki {
|
|
6134
6166
|
}
|
6135
6167
|
_actionHandler(e) {
|
6136
6168
|
}
|
6137
|
-
|
6169
|
+
isTypingState() {
|
6170
|
+
var t, n;
|
6171
|
+
const e = (n = (t = this.conversationFeedRef.value) == null ? void 0 : t.shadowRoot) == null ? void 0 : n.querySelector(
|
6172
|
+
".conversation-feed"
|
6173
|
+
);
|
6174
|
+
if (e) {
|
6175
|
+
const i = e.lastElementChild;
|
6176
|
+
if (i && i.tagName.toLowerCase() === "ace-typing-state")
|
6177
|
+
return !0;
|
6178
|
+
}
|
6179
|
+
return !1;
|
6180
|
+
}
|
6181
|
+
isAtBottom() {
|
6138
6182
|
const e = this.conversationContentRef.value;
|
6139
|
-
e
|
6140
|
-
|
6141
|
-
|
6142
|
-
|
6183
|
+
return e ? e.scrollHeight - e.scrollTop - e.clientHeight < 1 : !1;
|
6184
|
+
}
|
6185
|
+
scrollToBottom() {
|
6186
|
+
var e, t;
|
6187
|
+
(!this.isTypingState() || this.isAtBottom()) && (setTimeout(
|
6188
|
+
() => {
|
6189
|
+
var n;
|
6190
|
+
return (n = this.scrollRef.value) == null ? void 0 : n.scrollIntoView({ behavior: "smooth" });
|
6191
|
+
},
|
6192
|
+
300
|
6193
|
+
), this.chatScrollHeight = (e = this.scrollRef.value) == null ? void 0 : e.scrollHeight, this.chatCurrentScrollPosition = (t = this.scrollRef.value) == null ? void 0 : t.scrollTop);
|
6194
|
+
}
|
6195
|
+
onSessionUpdated() {
|
6196
|
+
this.scrollToBottom();
|
6143
6197
|
}
|
6144
6198
|
disableInput() {
|
6145
|
-
this.
|
6199
|
+
this.disabledInput = !0;
|
6146
6200
|
}
|
6147
6201
|
enableInput() {
|
6148
|
-
this.
|
6202
|
+
this.disabledInput = !1;
|
6203
|
+
}
|
6204
|
+
disableSubmit() {
|
6205
|
+
this.disabledSubmit = !0;
|
6206
|
+
}
|
6207
|
+
enableSubmit() {
|
6208
|
+
this.disabledSubmit = !1;
|
6149
6209
|
}
|
6150
6210
|
//Clear messages when starting a new chat to avoid confusion
|
6151
6211
|
clearMessages() {
|
@@ -6157,11 +6217,11 @@ class U extends ki {
|
|
6157
6217
|
this.toast.message = e;
|
6158
6218
|
}
|
6159
6219
|
async _onSendMessage(e) {
|
6160
|
-
var n;
|
6161
|
-
if (e.preventDefault(), this.message.length <= 0) {
|
6220
|
+
var n, i;
|
6221
|
+
if (e.preventDefault(), this.message.length <= 0 || this.message.length > this.messageMaxLength) {
|
6162
6222
|
(n = this.formRef.value) == null || n.classList.add("shake"), setTimeout(() => {
|
6163
|
-
var
|
6164
|
-
(
|
6223
|
+
var r;
|
6224
|
+
(r = this.formRef.value) == null || r.classList.remove("shake");
|
6165
6225
|
}, 500);
|
6166
6226
|
return;
|
6167
6227
|
}
|
@@ -6169,7 +6229,7 @@ class U extends ki {
|
|
6169
6229
|
const t = new CustomEvent("user-submit", {
|
6170
6230
|
detail: { text: this.message }
|
6171
6231
|
});
|
6172
|
-
this.dispatchEvent(t), this.message = "", this.inputRef.value.style.height = this.style.getPropertyValue(
|
6232
|
+
this.dispatchEvent(t), this.message = "", this.textAreaLength = 0, (i = this.counterRef.value) == null || i.classList.remove("max-char-count-reached"), this.inputRef.value.style.height = this.style.getPropertyValue(
|
6173
6233
|
"--textarea-default-height"
|
6174
6234
|
);
|
6175
6235
|
}
|
@@ -6188,12 +6248,22 @@ class U extends ki {
|
|
6188
6248
|
});
|
6189
6249
|
}
|
6190
6250
|
_inputHandler(e) {
|
6251
|
+
var t, n;
|
6191
6252
|
this.message = e.target.value, e.target.style.height = this.style.getPropertyValue(
|
6192
6253
|
"--textarea-default-height"
|
6193
|
-
), e.target.style.height = e.target.scrollHeight + "px", this.textAreaLength = e.target.value.length;
|
6254
|
+
), e.target.style.height = e.target.scrollHeight + "px", this.textAreaLength = e.target.value.length, e.target.value.length > this.messageMaxLength ? (t = this.counterRef.value) == null || t.classList.add("max-char-count-reached") : (n = this.counterRef.value) == null || n.classList.remove("max-char-count-reached");
|
6194
6255
|
}
|
6195
6256
|
_keyDownHandler(e) {
|
6196
|
-
e.key === "Enter" && !e.shiftKey && (this._onSendMessage(e), e.preventDefault());
|
6257
|
+
this.userTyping$.next(e.key), e.key === "Enter" && !e.shiftKey && !this.disabledSubmit && (this._onSendMessage(e), e.preventDefault());
|
6258
|
+
}
|
6259
|
+
skipToLatestMessage() {
|
6260
|
+
var n, i;
|
6261
|
+
const e = (n = this.conversationFeedRef) == null ? void 0 : n.value, t = (i = e == null ? void 0 : e.shadowRoot) == null ? void 0 : i.querySelectorAll(
|
6262
|
+
".conversation-entry"
|
6263
|
+
);
|
6264
|
+
t.length && Array.from(
|
6265
|
+
t
|
6266
|
+
).pop().focus();
|
6197
6267
|
}
|
6198
6268
|
handover(e, t) {
|
6199
6269
|
this.enableInput(), this.setToastMessage(null);
|
@@ -6210,11 +6280,11 @@ class U extends ki {
|
|
6210
6280
|
const e = this.application.texts;
|
6211
6281
|
return this.conversationState$.value === "waiting" && ((t = this.application) != null && t.storage) && this.platform && (this.stateMachine.setStorage(this.application.storage), this.conversationState$.next("init")), m` <div
|
6212
6282
|
@action=${this._actionHandler}
|
6213
|
-
class=${
|
6283
|
+
class=${ve({
|
6214
6284
|
conversation: !0,
|
6215
|
-
disabled: this.
|
6285
|
+
disabled: this.disabledInput,
|
6216
6286
|
"conversation--has-toast": this.toast.hasMessage(),
|
6217
|
-
"conversation--input-has-text": this.message.length > 0,
|
6287
|
+
"conversation--input-has-valid-text": this.message.length > 0 && this.message.length <= this.messageMaxLength && !this.disabledSubmit,
|
6218
6288
|
"overlay-mode": this.chatOverlayActive
|
6219
6289
|
})}
|
6220
6290
|
>
|
@@ -6223,29 +6293,31 @@ class U extends ki {
|
|
6223
6293
|
class="overlay-button"
|
6224
6294
|
@click=${() => this.chatOverlayActive = !1}
|
6225
6295
|
>
|
6226
|
-
<telia-icon svg=${
|
6296
|
+
<telia-icon svg=${Yr.svg}></telia-icon>
|
6227
6297
|
</button>
|
6228
6298
|
</div>` : g}
|
6229
6299
|
<div
|
6230
|
-
class=${
|
6300
|
+
class=${ve({
|
6231
6301
|
"conversation-content": !0,
|
6232
6302
|
"conversation-overlay-mode": this.chatOverlayActive
|
6233
6303
|
})}
|
6234
6304
|
part="scroll-container"
|
6235
6305
|
aria-live="polite"
|
6236
|
-
${
|
6306
|
+
${z(this.conversationContentRef)}
|
6237
6307
|
>
|
6238
6308
|
${this.toast.hasMessage() ? m`<div class="conversation__toast">${this.toast.message}</div>` : g}
|
6239
6309
|
<ace-conversation-feed
|
6240
6310
|
.entries=${this.entries}
|
6241
6311
|
.loading=${this.typing}
|
6312
|
+
${z(this.conversationFeedRef)}
|
6242
6313
|
@updated=${this.onSessionUpdated}
|
6243
6314
|
></ace-conversation-feed>
|
6315
|
+
<div class="scroll" ${z(this.scrollRef)}></div>
|
6244
6316
|
</div>
|
6245
6317
|
<form
|
6246
6318
|
class="conversation-bottom"
|
6247
6319
|
@submit=${this._onSendMessage}
|
6248
|
-
${
|
6320
|
+
${z(this.formRef)}
|
6249
6321
|
>
|
6250
6322
|
<label for="chat-message-input" class="visually-hidden">
|
6251
6323
|
Chat message
|
@@ -6253,17 +6325,21 @@ class U extends ki {
|
|
6253
6325
|
<textarea
|
6254
6326
|
id="chat-message-input"
|
6255
6327
|
autocomplete="off"
|
6256
|
-
maxlength=${this.messageMaxLength}
|
6257
6328
|
placeholder=${e.getOrFallback(
|
6258
6329
|
"conversation.input-placeholder",
|
6259
6330
|
"Aa"
|
6260
6331
|
)}
|
6261
6332
|
data-testid="message-input"
|
6262
6333
|
.value=${this.message}
|
6263
|
-
?disabled=${this.
|
6334
|
+
?disabled=${this.disabledInput}
|
6264
6335
|
@input=${this._inputHandler}
|
6265
6336
|
@keydown=${this._keyDownHandler}
|
6266
|
-
${
|
6337
|
+
${z(this.inputRef)}
|
6338
|
+
aria-valuenow=${this.textAreaLength}
|
6339
|
+
aria-valuemax=${this.messageMaxLength}
|
6340
|
+
aria-valuemin="0"
|
6341
|
+
role="textbox"
|
6342
|
+
aria-multiline="true"
|
6267
6343
|
></textarea>
|
6268
6344
|
<div class="conversation-actions">
|
6269
6345
|
<button
|
@@ -6271,22 +6347,30 @@ class U extends ki {
|
|
6271
6347
|
type="submit"
|
6272
6348
|
data-testid="send-message-button"
|
6273
6349
|
title=${e.getOrFallback("conversation.send-alt", "Send")}
|
6274
|
-
?disabled=${this.
|
6350
|
+
?disabled=${this.disabledSubmit}
|
6275
6351
|
>
|
6276
|
-
<telia-icon svg=${
|
6352
|
+
<telia-icon svg=${Gr.svg}></telia-icon>
|
6277
6353
|
</button>
|
6278
|
-
|
6279
|
-
|
6280
|
-
|
6281
|
-
|
6354
|
+
<span class="counter" ${z(this.counterRef)}>
|
6355
|
+
${this.textAreaLength} / ${this.messageMaxLength}</span
|
6356
|
+
>
|
6357
|
+
</div>
|
6358
|
+
<div class="sr-only" aria-live="polite">
|
6359
|
+
${this.textAreaLength > this.messageMaxLength ? this.messageMaxLengthLabel : ""}
|
6282
6360
|
</div>
|
6283
6361
|
</form>
|
6362
|
+
<button
|
6363
|
+
class="skip-to-latest-message-button"
|
6364
|
+
@click=${this.skipToLatestMessage}
|
6365
|
+
>
|
6366
|
+
${this.skipToLatestMessageLabel}
|
6367
|
+
</button>
|
6284
6368
|
</div>`;
|
6285
6369
|
}
|
6286
6370
|
}
|
6287
|
-
|
6288
|
-
|
6289
|
-
|
6371
|
+
R.styles = [
|
6372
|
+
_i.styles || [],
|
6373
|
+
E`
|
6290
6374
|
:host {
|
6291
6375
|
font-family: var(--font-family);
|
6292
6376
|
/* --send-icon-color: var(--gray-dark-color, #a6a6a6); */
|
@@ -6316,8 +6400,10 @@ U.styles = [
|
|
6316
6400
|
--input-text-color: var(--conversation-input-text-color, inherit);
|
6317
6401
|
--conversation-input-bg: var(--conversation-input-bg-color, #fff);
|
6318
6402
|
|
6319
|
-
--toast-bg: #
|
6320
|
-
--toast-
|
6403
|
+
--toast-bg: #caeaff;
|
6404
|
+
--toast-border: 1px solid #0078cb;
|
6405
|
+
|
6406
|
+
--toast-text-color: #000;
|
6321
6407
|
|
6322
6408
|
--error-text-color: #eb5185;
|
6323
6409
|
|
@@ -6372,6 +6458,21 @@ U.styles = [
|
|
6372
6458
|
position: absolute;
|
6373
6459
|
width: 1px;
|
6374
6460
|
}
|
6461
|
+
.skip-to-latest-message-button {
|
6462
|
+
position: absolute;
|
6463
|
+
bottom: 80px;
|
6464
|
+
text-align: center;
|
6465
|
+
background-color: var(--conversation-bg);
|
6466
|
+
text-decoration: none;
|
6467
|
+
padding: var(--spacing-sm);
|
6468
|
+
border-radius: var(--spacing-sm);
|
6469
|
+
left: -10000000px;
|
6470
|
+
outline: none;
|
6471
|
+
}
|
6472
|
+
.skip-to-latest-message-button:focus-visible {
|
6473
|
+
left: 50%;
|
6474
|
+
transform: translateX(-50%);
|
6475
|
+
}
|
6375
6476
|
.conversation {
|
6376
6477
|
display: grid;
|
6377
6478
|
grid-template-rows: 1fr auto;
|
@@ -6379,13 +6480,13 @@ U.styles = [
|
|
6379
6480
|
height: 100%;
|
6380
6481
|
background-color: transparent;
|
6381
6482
|
}
|
6382
|
-
.conversation.conversation--input-has-text {
|
6383
|
-
/* --send-icon-color: var(--primary-color); */
|
6483
|
+
.conversation.conversation--input-has-valid-text {
|
6384
6484
|
--send-icon-opacity: 1;
|
6385
6485
|
}
|
6386
6486
|
.conversation.conversation--has-toast .conversation-content {
|
6387
6487
|
border-top-right-radius: 0;
|
6388
6488
|
border-top-left-radius: 0;
|
6489
|
+
padding-top: var(--spacing-md);
|
6389
6490
|
}
|
6390
6491
|
.conversation.disabled .conversation-bottom {
|
6391
6492
|
--conversation-input-bg: rgba(255, 255, 255, 0.4);
|
@@ -6425,6 +6526,9 @@ U.styles = [
|
|
6425
6526
|
color: var(--send-icon-color);
|
6426
6527
|
opacity: var(--send-icon-opacity);
|
6427
6528
|
transition: opacity 200ms ease-in-out;
|
6529
|
+
display: flex;
|
6530
|
+
justify-content: right;
|
6531
|
+
margin-bottom: var(--spacing-xs);
|
6428
6532
|
}
|
6429
6533
|
.conversation-send-button:not(:disabled):hover {
|
6430
6534
|
--send-icon-opacity: 1;
|
@@ -6432,6 +6536,9 @@ U.styles = [
|
|
6432
6536
|
}
|
6433
6537
|
.conversation__toast {
|
6434
6538
|
background-color: var(--toast-bg);
|
6539
|
+
border: var(--toast-border);
|
6540
|
+
border-radius: var(--border-radius-sm);
|
6541
|
+
margin: 0 var(--spacing-md) var(--spacing-md) var(--spacing-md);
|
6435
6542
|
color: var(--toast-text-color);
|
6436
6543
|
padding: var(--spacing-md);
|
6437
6544
|
position: sticky;
|
@@ -6509,41 +6616,73 @@ U.styles = [
|
|
6509
6616
|
border-top-left-radius: 0;
|
6510
6617
|
border-top-right-radius: 0;
|
6511
6618
|
}
|
6619
|
+
|
6620
|
+
.conversation-actions {
|
6621
|
+
display: flex;
|
6622
|
+
flex-direction: column;
|
6623
|
+
}
|
6624
|
+
|
6625
|
+
.counter {
|
6626
|
+
display: flex;
|
6627
|
+
justify-content: right;
|
6628
|
+
bottom: var(--spacing-xs);
|
6629
|
+
padding-top: var(--spacing-sm);
|
6630
|
+
position: absolute;
|
6631
|
+
font-size: 0.6rem;
|
6632
|
+
}
|
6633
|
+
|
6634
|
+
.max-char-count-reached {
|
6635
|
+
color: var(--error-text-color);
|
6636
|
+
}
|
6637
|
+
|
6638
|
+
.sr-only {
|
6639
|
+
position: absolute;
|
6640
|
+
width: 1px;
|
6641
|
+
height: 1px;
|
6642
|
+
margin: -1px;
|
6643
|
+
padding: 0;
|
6644
|
+
overflow: hidden;
|
6645
|
+
clip: rect(0, 0, 0, 0);
|
6646
|
+
border: 0;
|
6647
|
+
}
|
6512
6648
|
`
|
6513
6649
|
];
|
6514
|
-
|
6515
|
-
|
6516
|
-
],
|
6517
|
-
|
6518
|
-
|
6519
|
-
],
|
6520
|
-
|
6521
|
-
|
6522
|
-
],
|
6523
|
-
|
6524
|
-
|
6525
|
-
],
|
6526
|
-
|
6527
|
-
|
6528
|
-
],
|
6529
|
-
|
6530
|
-
|
6531
|
-
],
|
6532
|
-
|
6533
|
-
|
6534
|
-
],
|
6535
|
-
|
6650
|
+
X([
|
6651
|
+
C()
|
6652
|
+
], R.prototype, "message", 2);
|
6653
|
+
X([
|
6654
|
+
C()
|
6655
|
+
], R.prototype, "disabledInput", 2);
|
6656
|
+
X([
|
6657
|
+
C()
|
6658
|
+
], R.prototype, "disabledSubmit", 2);
|
6659
|
+
X([
|
6660
|
+
C()
|
6661
|
+
], R.prototype, "chatOverlayActive", 2);
|
6662
|
+
X([
|
6663
|
+
C()
|
6664
|
+
], R.prototype, "textAreaLength", 2);
|
6665
|
+
X([
|
6666
|
+
C()
|
6667
|
+
], R.prototype, "platform", 2);
|
6668
|
+
X([
|
6669
|
+
C()
|
6670
|
+
], R.prototype, "entries", 2);
|
6671
|
+
X([
|
6672
|
+
C()
|
6673
|
+
], R.prototype, "typing", 2);
|
6674
|
+
const Ol = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
6536
6675
|
__proto__: null,
|
6537
|
-
Conversation:
|
6538
|
-
default:
|
6676
|
+
Conversation: R,
|
6677
|
+
default: R
|
6539
6678
|
}, Symbol.toStringTag, { value: "Module" }));
|
6540
6679
|
export {
|
6541
|
-
|
6542
|
-
|
6680
|
+
wr as Agent,
|
6681
|
+
R as Conversation,
|
6543
6682
|
Rl as ConversationComponent,
|
6544
|
-
|
6545
|
-
|
6683
|
+
ct as ConversationEntry,
|
6684
|
+
Z as ConversationMessageType,
|
6546
6685
|
ds as ConversationPlatform,
|
6547
6686
|
Il as ConversationProvider,
|
6548
|
-
|
6687
|
+
kr as User
|
6549
6688
|
};
|