@telia-ace/widget-conversation-flamingo 1.1.110-rc.1 → 1.1.110
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +83 -83
- package/index.mjs +823 -927
- package/package.json +2 -2
package/index.mjs
CHANGED
@@ -1,16 +1,16 @@
|
|
1
|
-
var
|
2
|
-
var
|
3
|
-
var $ = (n, e, t) =>
|
4
|
-
const
|
5
|
-
n.registerComponent("conversation", Promise.resolve().then(() =>
|
1
|
+
var Ni = Object.defineProperty;
|
2
|
+
var Di = (n, e, t) => e in n ? Ni(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
|
3
|
+
var $ = (n, e, t) => Di(n, typeof e != "symbol" ? e + "" : e, t);
|
4
|
+
const jl = async (n) => {
|
5
|
+
n.registerComponent("conversation", Promise.resolve().then(() => Ul));
|
6
6
|
};
|
7
|
-
class
|
7
|
+
class Ts {
|
8
8
|
constructor() {
|
9
9
|
this.registeredProviders = /* @__PURE__ */ new Map();
|
10
10
|
}
|
11
11
|
static async getInstance(e) {
|
12
12
|
let t = await e.get("conversation");
|
13
|
-
return t || (t = new
|
13
|
+
return t || (t = new Ts(), await e.register("conversation", t), t);
|
14
14
|
}
|
15
15
|
registerProvider(e, t) {
|
16
16
|
this.registeredProviders.set(e, t);
|
@@ -28,50 +28,50 @@ class Rs {
|
|
28
28
|
// return this.registeredProviders.get(providerKey);
|
29
29
|
// }
|
30
30
|
}
|
31
|
-
var
|
32
|
-
return
|
31
|
+
var It = function(n, e) {
|
32
|
+
return It = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, s) {
|
33
33
|
t.__proto__ = s;
|
34
34
|
} || function(t, s) {
|
35
35
|
for (var i in s) Object.prototype.hasOwnProperty.call(s, i) && (t[i] = s[i]);
|
36
|
-
},
|
36
|
+
}, It(n, e);
|
37
37
|
};
|
38
38
|
function xe(n, e) {
|
39
39
|
if (typeof e != "function" && e !== null)
|
40
40
|
throw new TypeError("Class extends value " + String(e) + " is not a constructor or null");
|
41
|
-
|
41
|
+
It(n, e);
|
42
42
|
function t() {
|
43
43
|
this.constructor = n;
|
44
44
|
}
|
45
45
|
n.prototype = e === null ? Object.create(e) : (t.prototype = e.prototype, new t());
|
46
46
|
}
|
47
|
-
function
|
47
|
+
function qi(n, e, t, s) {
|
48
48
|
function i(r) {
|
49
49
|
return r instanceof t ? r : new t(function(o) {
|
50
50
|
o(r);
|
51
51
|
});
|
52
52
|
}
|
53
53
|
return new (t || (t = Promise))(function(r, o) {
|
54
|
-
function a(
|
54
|
+
function a(u) {
|
55
55
|
try {
|
56
|
-
c(s.next(
|
57
|
-
} catch (
|
58
|
-
o(
|
56
|
+
c(s.next(u));
|
57
|
+
} catch (h) {
|
58
|
+
o(h);
|
59
59
|
}
|
60
60
|
}
|
61
|
-
function l(
|
61
|
+
function l(u) {
|
62
62
|
try {
|
63
|
-
c(s.throw(
|
64
|
-
} catch (
|
65
|
-
o(
|
63
|
+
c(s.throw(u));
|
64
|
+
} catch (h) {
|
65
|
+
o(h);
|
66
66
|
}
|
67
67
|
}
|
68
|
-
function c(
|
69
|
-
|
68
|
+
function c(u) {
|
69
|
+
u.done ? r(u.value) : i(u.value).then(a, l);
|
70
70
|
}
|
71
71
|
c((s = s.apply(n, e || [])).next());
|
72
72
|
});
|
73
73
|
}
|
74
|
-
function
|
74
|
+
function Rs(n, e) {
|
75
75
|
var t = { label: 0, sent: function() {
|
76
76
|
if (r[0] & 1) throw r[1];
|
77
77
|
return r[1];
|
@@ -80,8 +80,8 @@ function Ps(n, e) {
|
|
80
80
|
return this;
|
81
81
|
}), o;
|
82
82
|
function a(c) {
|
83
|
-
return function(
|
84
|
-
return l([c,
|
83
|
+
return function(u) {
|
84
|
+
return l([c, u]);
|
85
85
|
};
|
86
86
|
}
|
87
87
|
function l(c) {
|
@@ -122,8 +122,8 @@ function Ps(n, e) {
|
|
122
122
|
continue;
|
123
123
|
}
|
124
124
|
c = e.call(n, t);
|
125
|
-
} catch (
|
126
|
-
c = [6,
|
125
|
+
} catch (u) {
|
126
|
+
c = [6, u], i = 0;
|
127
127
|
} finally {
|
128
128
|
s = r = 0;
|
129
129
|
}
|
@@ -158,7 +158,7 @@ function se(n, e) {
|
|
158
158
|
}
|
159
159
|
return r;
|
160
160
|
}
|
161
|
-
function
|
161
|
+
function be(n, e, t) {
|
162
162
|
if (t || arguments.length === 2) for (var s = 0, i = e.length, r; s < i; s++)
|
163
163
|
(r || !(s in e)) && (r || (r = Array.prototype.slice.call(e, 0, s)), r[s] = e[s]);
|
164
164
|
return n.concat(r || Array.prototype.slice.call(e));
|
@@ -166,7 +166,7 @@ function ve(n, e, t) {
|
|
166
166
|
function de(n) {
|
167
167
|
return this instanceof de ? (this.v = n, this) : new de(n);
|
168
168
|
}
|
169
|
-
function
|
169
|
+
function Fi(n, e, t) {
|
170
170
|
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
171
171
|
var s = t.apply(n, e || []), i, r = [];
|
172
172
|
return i = Object.create((typeof AsyncIterator == "function" ? AsyncIterator : Object).prototype), a("next"), a("throw"), a("return", o), i[Symbol.asyncIterator] = function() {
|
@@ -174,7 +174,7 @@ function Zi(n, e, t) {
|
|
174
174
|
}, i;
|
175
175
|
function o(p) {
|
176
176
|
return function(g) {
|
177
|
-
return Promise.resolve(g).then(p,
|
177
|
+
return Promise.resolve(g).then(p, h);
|
178
178
|
};
|
179
179
|
}
|
180
180
|
function a(p, g) {
|
@@ -192,19 +192,19 @@ function Zi(n, e, t) {
|
|
192
192
|
}
|
193
193
|
}
|
194
194
|
function c(p) {
|
195
|
-
p.value instanceof de ? Promise.resolve(p.value.v).then(
|
195
|
+
p.value instanceof de ? Promise.resolve(p.value.v).then(u, h) : d(r[0][2], p);
|
196
196
|
}
|
197
|
-
function
|
197
|
+
function u(p) {
|
198
198
|
l("next", p);
|
199
199
|
}
|
200
|
-
function
|
200
|
+
function h(p) {
|
201
201
|
l("throw", p);
|
202
202
|
}
|
203
203
|
function d(p, g) {
|
204
204
|
p(g), r.shift(), r.length && l(r[0][0], r[0][1]);
|
205
205
|
}
|
206
206
|
}
|
207
|
-
function
|
207
|
+
function Zi(n) {
|
208
208
|
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
209
209
|
var e = n[Symbol.asyncIterator], t;
|
210
210
|
return e ? e.call(n) : (n = typeof me == "function" ? me(n) : n[Symbol.iterator](), t = {}, s("next"), s("throw"), s("return"), t[Symbol.asyncIterator] = function() {
|
@@ -226,13 +226,13 @@ function Wi(n) {
|
|
226
226
|
function x(n) {
|
227
227
|
return typeof n == "function";
|
228
228
|
}
|
229
|
-
function
|
229
|
+
function Ps(n) {
|
230
230
|
var e = function(s) {
|
231
231
|
Error.call(s), s.stack = new Error().stack;
|
232
232
|
}, t = n(e);
|
233
233
|
return t.prototype = Object.create(Error.prototype), t.prototype.constructor = t, t;
|
234
234
|
}
|
235
|
-
var Ct =
|
235
|
+
var Ct = Ps(function(n) {
|
236
236
|
return function(t) {
|
237
237
|
n(this), this.message = t ? t.length + ` errors occurred during unsubscription:
|
238
238
|
` + t.map(function(s, i) {
|
@@ -241,7 +241,7 @@ var Ct = Os(function(n) {
|
|
241
241
|
`) : "", this.name = "UnsubscriptionError", this.errors = t;
|
242
242
|
};
|
243
243
|
});
|
244
|
-
function
|
244
|
+
function Mt(n, e) {
|
245
245
|
if (n) {
|
246
246
|
var t = n.indexOf(e);
|
247
247
|
0 <= t && n.splice(t, 1);
|
@@ -274,23 +274,23 @@ var ft = function() {
|
|
274
274
|
}
|
275
275
|
else
|
276
276
|
o.remove(this);
|
277
|
-
var
|
278
|
-
if (x(
|
277
|
+
var u = this.initialTeardown;
|
278
|
+
if (x(u))
|
279
279
|
try {
|
280
|
-
|
280
|
+
u();
|
281
281
|
} catch (f) {
|
282
282
|
r = f instanceof Ct ? f.errors : [f];
|
283
283
|
}
|
284
|
-
var
|
285
|
-
if (
|
284
|
+
var h = this._finalizers;
|
285
|
+
if (h) {
|
286
286
|
this._finalizers = null;
|
287
287
|
try {
|
288
|
-
for (var d = me(
|
288
|
+
for (var d = me(h), p = d.next(); !p.done; p = d.next()) {
|
289
289
|
var g = p.value;
|
290
290
|
try {
|
291
|
-
|
291
|
+
Bn(g);
|
292
292
|
} catch (f) {
|
293
|
-
r = r ?? [], f instanceof Ct ? r =
|
293
|
+
r = r ?? [], f instanceof Ct ? r = be(be([], se(r)), se(f.errors)) : r.push(f);
|
294
294
|
}
|
295
295
|
}
|
296
296
|
} catch (f) {
|
@@ -310,7 +310,7 @@ var ft = function() {
|
|
310
310
|
var t;
|
311
311
|
if (e && e !== this)
|
312
312
|
if (this.closed)
|
313
|
-
|
313
|
+
Bn(e);
|
314
314
|
else {
|
315
315
|
if (e instanceof n) {
|
316
316
|
if (e.closed || e._hasParent(this))
|
@@ -327,57 +327,52 @@ var ft = function() {
|
|
327
327
|
this._parentage = Array.isArray(t) ? (t.push(e), t) : t ? [t, e] : e;
|
328
328
|
}, n.prototype._removeParent = function(e) {
|
329
329
|
var t = this._parentage;
|
330
|
-
t === e ? this._parentage = null : Array.isArray(t) &&
|
330
|
+
t === e ? this._parentage = null : Array.isArray(t) && Mt(t, e);
|
331
331
|
}, n.prototype.remove = function(e) {
|
332
332
|
var t = this._finalizers;
|
333
|
-
t &&
|
333
|
+
t && Mt(t, e), e instanceof n && e._removeParent(this);
|
334
334
|
}, n.EMPTY = function() {
|
335
335
|
var e = new n();
|
336
336
|
return e.closed = !0, e;
|
337
337
|
}(), n;
|
338
|
-
}(),
|
339
|
-
function
|
338
|
+
}(), Os = ft.EMPTY;
|
339
|
+
function Is(n) {
|
340
340
|
return n instanceof ft || n && "closed" in n && x(n.remove) && x(n.add) && x(n.unsubscribe);
|
341
341
|
}
|
342
|
-
function
|
342
|
+
function Bn(n) {
|
343
343
|
x(n) ? n() : n.unsubscribe();
|
344
344
|
}
|
345
|
-
var
|
346
|
-
|
347
|
-
|
348
|
-
Promise: void 0,
|
349
|
-
useDeprecatedSynchronousErrorHandling: !1,
|
350
|
-
useDeprecatedNextContext: !1
|
351
|
-
}, Us = {
|
345
|
+
var Wi = {
|
346
|
+
Promise: void 0
|
347
|
+
}, Gi = {
|
352
348
|
setTimeout: function(n, e) {
|
353
349
|
for (var t = [], s = 2; s < arguments.length; s++)
|
354
350
|
t[s - 2] = arguments[s];
|
355
|
-
return setTimeout.apply(void 0,
|
351
|
+
return setTimeout.apply(void 0, be([n, e], se(t)));
|
356
352
|
},
|
357
353
|
clearTimeout: function(n) {
|
358
|
-
|
359
|
-
return ((e == null ? void 0 : e.clearTimeout) || clearTimeout)(n);
|
354
|
+
return clearTimeout(n);
|
360
355
|
},
|
361
356
|
delegate: void 0
|
362
357
|
};
|
363
|
-
function
|
364
|
-
|
358
|
+
function Ms(n) {
|
359
|
+
Gi.setTimeout(function() {
|
365
360
|
throw n;
|
366
361
|
});
|
367
362
|
}
|
368
363
|
function Qe() {
|
369
364
|
}
|
370
|
-
function
|
365
|
+
function Ye(n) {
|
371
366
|
n();
|
372
367
|
}
|
373
|
-
var
|
368
|
+
var Xt = function(n) {
|
374
369
|
xe(e, n);
|
375
370
|
function e(t) {
|
376
371
|
var s = n.call(this) || this;
|
377
|
-
return s.isStopped = !1, t ? (s.destination = t,
|
372
|
+
return s.isStopped = !1, t ? (s.destination = t, Is(t) && t.add(s)) : s.destination = Qi, s;
|
378
373
|
}
|
379
374
|
return e.create = function(t, s, i) {
|
380
|
-
return new
|
375
|
+
return new zt(t, s, i);
|
381
376
|
}, e.prototype.next = function(t) {
|
382
377
|
this.isStopped || this._next(t);
|
383
378
|
}, e.prototype.error = function(t) {
|
@@ -401,11 +396,7 @@ var Vt = function(n) {
|
|
401
396
|
this.unsubscribe();
|
402
397
|
}
|
403
398
|
}, e;
|
404
|
-
}(ft), Yi =
|
405
|
-
function At(n, e) {
|
406
|
-
return Yi.call(n, e);
|
407
|
-
}
|
408
|
-
var Gi = function() {
|
399
|
+
}(ft), Yi = function() {
|
409
400
|
function n(e) {
|
410
401
|
this.partialObserver = e;
|
411
402
|
}
|
@@ -436,32 +427,20 @@ var Gi = function() {
|
|
436
427
|
Ze(t);
|
437
428
|
}
|
438
429
|
}, n;
|
439
|
-
}(),
|
430
|
+
}(), zt = function(n) {
|
440
431
|
xe(e, n);
|
441
432
|
function e(t, s, i) {
|
442
433
|
var r = n.call(this) || this, o;
|
443
|
-
|
444
|
-
|
445
|
-
|
446
|
-
|
447
|
-
|
448
|
-
};
|
449
|
-
else {
|
450
|
-
var a;
|
451
|
-
r && zs.useDeprecatedNextContext ? (a = Object.create(t), a.unsubscribe = function() {
|
452
|
-
return r.unsubscribe();
|
453
|
-
}, o = {
|
454
|
-
next: t.next && At(t.next, a),
|
455
|
-
error: t.error && At(t.error, a),
|
456
|
-
complete: t.complete && At(t.complete, a)
|
457
|
-
}) : o = t;
|
458
|
-
}
|
459
|
-
return r.destination = new Gi(o), r;
|
434
|
+
return x(t) || !t ? o = {
|
435
|
+
next: t ?? void 0,
|
436
|
+
error: s ?? void 0,
|
437
|
+
complete: i ?? void 0
|
438
|
+
} : o = t, r.destination = new Yi(o), r;
|
460
439
|
}
|
461
440
|
return e;
|
462
|
-
}(
|
441
|
+
}(Xt);
|
463
442
|
function Ze(n) {
|
464
|
-
|
443
|
+
Ms(n);
|
465
444
|
}
|
466
445
|
function Ki(n) {
|
467
446
|
throw n;
|
@@ -471,7 +450,7 @@ var Qi = {
|
|
471
450
|
next: Qe,
|
472
451
|
error: Ki,
|
473
452
|
complete: Qe
|
474
|
-
},
|
453
|
+
}, Vt = function() {
|
475
454
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
476
455
|
}();
|
477
456
|
function je(n) {
|
@@ -484,7 +463,7 @@ function Xi(n) {
|
|
484
463
|
}, t);
|
485
464
|
};
|
486
465
|
}
|
487
|
-
var
|
466
|
+
var L = function() {
|
488
467
|
function n(e) {
|
489
468
|
e && (this._subscribe = e);
|
490
469
|
}
|
@@ -492,8 +471,8 @@ var T = function() {
|
|
492
471
|
var t = new n();
|
493
472
|
return t.source = this, t.operator = e, t;
|
494
473
|
}, n.prototype.subscribe = function(e, t, s) {
|
495
|
-
var i = this, r = Ji(e) ? e : new
|
496
|
-
return
|
474
|
+
var i = this, r = Ji(e) ? e : new zt(e, t, s);
|
475
|
+
return Ye(function() {
|
497
476
|
var o = i, a = o.operator, l = o.source;
|
498
477
|
r.add(a ? a.call(r, l) : l ? i._subscribe(r) : i._trySubscribe(r));
|
499
478
|
}), r;
|
@@ -505,8 +484,8 @@ var T = function() {
|
|
505
484
|
}
|
506
485
|
}, n.prototype.forEach = function(e, t) {
|
507
486
|
var s = this;
|
508
|
-
return t =
|
509
|
-
var o = new
|
487
|
+
return t = jn(t), new t(function(i, r) {
|
488
|
+
var o = new zt({
|
510
489
|
next: function(a) {
|
511
490
|
try {
|
512
491
|
e(a);
|
@@ -522,7 +501,7 @@ var T = function() {
|
|
522
501
|
}, n.prototype._subscribe = function(e) {
|
523
502
|
var t;
|
524
503
|
return (t = this.source) === null || t === void 0 ? void 0 : t.subscribe(e);
|
525
|
-
}, n.prototype[
|
504
|
+
}, n.prototype[Vt] = function() {
|
526
505
|
return this;
|
527
506
|
}, n.prototype.pipe = function() {
|
528
507
|
for (var e = [], t = 0; t < arguments.length; t++)
|
@@ -530,7 +509,7 @@ var T = function() {
|
|
530
509
|
return Xi(e)(this);
|
531
510
|
}, n.prototype.toPromise = function(e) {
|
532
511
|
var t = this;
|
533
|
-
return e =
|
512
|
+
return e = jn(e), new e(function(s, i) {
|
534
513
|
var r;
|
535
514
|
t.subscribe(function(o) {
|
536
515
|
return r = o;
|
@@ -544,15 +523,15 @@ var T = function() {
|
|
544
523
|
return new n(e);
|
545
524
|
}, n;
|
546
525
|
}();
|
547
|
-
function
|
526
|
+
function jn(n) {
|
548
527
|
var e;
|
549
|
-
return (e = n ??
|
528
|
+
return (e = n ?? Wi.Promise) !== null && e !== void 0 ? e : Promise;
|
550
529
|
}
|
551
530
|
function Vi(n) {
|
552
531
|
return n && x(n.next) && x(n.error) && x(n.complete);
|
553
532
|
}
|
554
533
|
function Ji(n) {
|
555
|
-
return n && n instanceof
|
534
|
+
return n && n instanceof Xt || Vi(n) && Is(n);
|
556
535
|
}
|
557
536
|
function er(n) {
|
558
537
|
return x(n == null ? void 0 : n.lift);
|
@@ -580,14 +559,14 @@ var tr = function(n) {
|
|
580
559
|
return l.onFinalize = o, l.shouldUnsubscribe = a, l._next = s ? function(c) {
|
581
560
|
try {
|
582
561
|
s(c);
|
583
|
-
} catch (
|
584
|
-
t.error(
|
562
|
+
} catch (u) {
|
563
|
+
t.error(u);
|
585
564
|
}
|
586
565
|
} : n.prototype._next, l._error = r ? function(c) {
|
587
566
|
try {
|
588
567
|
r(c);
|
589
|
-
} catch (
|
590
|
-
t.error(
|
568
|
+
} catch (u) {
|
569
|
+
t.error(u);
|
591
570
|
} finally {
|
592
571
|
this.unsubscribe();
|
593
572
|
}
|
@@ -608,7 +587,7 @@ var tr = function(n) {
|
|
608
587
|
n.prototype.unsubscribe.call(this), !s && ((t = this.onFinalize) === null || t === void 0 || t.call(this));
|
609
588
|
}
|
610
589
|
}, e;
|
611
|
-
}(
|
590
|
+
}(Xt), nr = Ps(function(n) {
|
612
591
|
return function() {
|
613
592
|
n(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
614
593
|
};
|
@@ -619,14 +598,14 @@ var tr = function(n) {
|
|
619
598
|
return t.closed = !1, t.currentObservers = null, t.observers = [], t.isStopped = !1, t.hasError = !1, t.thrownError = null, t;
|
620
599
|
}
|
621
600
|
return e.prototype.lift = function(t) {
|
622
|
-
var s = new
|
601
|
+
var s = new Hn(this, this);
|
623
602
|
return s.operator = t, s;
|
624
603
|
}, e.prototype._throwIfClosed = function() {
|
625
604
|
if (this.closed)
|
626
605
|
throw new nr();
|
627
606
|
}, e.prototype.next = function(t) {
|
628
607
|
var s = this;
|
629
|
-
|
608
|
+
Ye(function() {
|
630
609
|
var i, r;
|
631
610
|
if (s._throwIfClosed(), !s.isStopped) {
|
632
611
|
s.currentObservers || (s.currentObservers = Array.from(s.observers));
|
@@ -648,7 +627,7 @@ var tr = function(n) {
|
|
648
627
|
});
|
649
628
|
}, e.prototype.error = function(t) {
|
650
629
|
var s = this;
|
651
|
-
|
630
|
+
Ye(function() {
|
652
631
|
if (s._throwIfClosed(), !s.isStopped) {
|
653
632
|
s.hasError = s.isStopped = !0, s.thrownError = t;
|
654
633
|
for (var i = s.observers; i.length; )
|
@@ -657,7 +636,7 @@ var tr = function(n) {
|
|
657
636
|
});
|
658
637
|
}, e.prototype.complete = function() {
|
659
638
|
var t = this;
|
660
|
-
|
639
|
+
Ye(function() {
|
661
640
|
if (t._throwIfClosed(), !t.isStopped) {
|
662
641
|
t.isStopped = !0;
|
663
642
|
for (var s = t.observers; s.length; )
|
@@ -679,19 +658,19 @@ var tr = function(n) {
|
|
679
658
|
return this._throwIfClosed(), this._checkFinalizedStatuses(t), this._innerSubscribe(t);
|
680
659
|
}, e.prototype._innerSubscribe = function(t) {
|
681
660
|
var s = this, i = this, r = i.hasError, o = i.isStopped, a = i.observers;
|
682
|
-
return r || o ?
|
683
|
-
s.currentObservers = null,
|
661
|
+
return r || o ? Os : (this.currentObservers = null, a.push(t), new ft(function() {
|
662
|
+
s.currentObservers = null, Mt(a, t);
|
684
663
|
}));
|
685
664
|
}, e.prototype._checkFinalizedStatuses = function(t) {
|
686
665
|
var s = this, i = s.hasError, r = s.thrownError, o = s.isStopped;
|
687
666
|
i ? t.error(r) : o && t.complete();
|
688
667
|
}, e.prototype.asObservable = function() {
|
689
|
-
var t = new
|
668
|
+
var t = new L();
|
690
669
|
return t.source = this, t;
|
691
670
|
}, e.create = function(t, s) {
|
692
|
-
return new
|
671
|
+
return new Hn(t, s);
|
693
672
|
}, e;
|
694
|
-
}(
|
673
|
+
}(L), Hn = function(n) {
|
695
674
|
xe(e, n);
|
696
675
|
function e(t, s) {
|
697
676
|
var i = n.call(this) || this;
|
@@ -708,7 +687,7 @@ var tr = function(n) {
|
|
708
687
|
(s = (t = this.destination) === null || t === void 0 ? void 0 : t.complete) === null || s === void 0 || s.call(t);
|
709
688
|
}, e.prototype._subscribe = function(t) {
|
710
689
|
var s, i;
|
711
|
-
return (i = (s = this.source) === null || s === void 0 ? void 0 : s.subscribe(t)) !== null && i !== void 0 ? i :
|
690
|
+
return (i = (s = this.source) === null || s === void 0 ? void 0 : s.subscribe(t)) !== null && i !== void 0 ? i : Os;
|
712
691
|
}, e;
|
713
692
|
}(_), H = function(n) {
|
714
693
|
xe(e, n);
|
@@ -733,50 +712,50 @@ var tr = function(n) {
|
|
733
712
|
}, e.prototype.next = function(t) {
|
734
713
|
n.prototype.next.call(this, this._value = t);
|
735
714
|
}, e;
|
736
|
-
}(_), He = new
|
715
|
+
}(_), He = new L(function(n) {
|
737
716
|
return n.complete();
|
738
717
|
});
|
739
718
|
function sr(n) {
|
740
719
|
return n && x(n.schedule);
|
741
720
|
}
|
742
|
-
function
|
721
|
+
function Jt(n) {
|
743
722
|
return n[n.length - 1];
|
744
723
|
}
|
745
|
-
function
|
746
|
-
return x(
|
724
|
+
function zs(n) {
|
725
|
+
return x(Jt(n)) ? n.pop() : void 0;
|
747
726
|
}
|
748
|
-
function
|
749
|
-
return sr(
|
727
|
+
function en(n) {
|
728
|
+
return sr(Jt(n)) ? n.pop() : void 0;
|
750
729
|
}
|
751
730
|
function ir(n, e) {
|
752
|
-
return typeof
|
731
|
+
return typeof Jt(n) == "number" ? n.pop() : e;
|
753
732
|
}
|
754
|
-
var
|
733
|
+
var tn = function(n) {
|
755
734
|
return n && typeof n.length == "number" && typeof n != "function";
|
756
735
|
};
|
757
|
-
function
|
736
|
+
function Us(n) {
|
758
737
|
return x(n == null ? void 0 : n.then);
|
759
738
|
}
|
760
|
-
function
|
761
|
-
return x(n[
|
739
|
+
function Bs(n) {
|
740
|
+
return x(n[Vt]);
|
762
741
|
}
|
763
|
-
function
|
742
|
+
function js(n) {
|
764
743
|
return Symbol.asyncIterator && x(n == null ? void 0 : n[Symbol.asyncIterator]);
|
765
744
|
}
|
766
|
-
function
|
745
|
+
function Hs(n) {
|
767
746
|
return new TypeError("You provided " + (n !== null && typeof n == "object" ? "an invalid object" : "'" + n + "'") + " where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.");
|
768
747
|
}
|
769
748
|
function rr() {
|
770
749
|
return typeof Symbol != "function" || !Symbol.iterator ? "@@iterator" : Symbol.iterator;
|
771
750
|
}
|
772
|
-
var
|
773
|
-
function
|
774
|
-
return x(n == null ? void 0 : n[
|
751
|
+
var Ns = rr();
|
752
|
+
function Ds(n) {
|
753
|
+
return x(n == null ? void 0 : n[Ns]);
|
775
754
|
}
|
776
|
-
function
|
777
|
-
return
|
755
|
+
function qs(n) {
|
756
|
+
return Fi(this, arguments, function() {
|
778
757
|
var t, s, i, r;
|
779
|
-
return
|
758
|
+
return Rs(this, function(o) {
|
780
759
|
switch (o.label) {
|
781
760
|
case 0:
|
782
761
|
t = n.getReader(), o.label = 1;
|
@@ -804,54 +783,54 @@ function Ws(n) {
|
|
804
783
|
});
|
805
784
|
});
|
806
785
|
}
|
807
|
-
function
|
786
|
+
function Fs(n) {
|
808
787
|
return x(n == null ? void 0 : n.getReader);
|
809
788
|
}
|
810
789
|
function D(n) {
|
811
|
-
if (n instanceof
|
790
|
+
if (n instanceof L)
|
812
791
|
return n;
|
813
792
|
if (n != null) {
|
814
|
-
if (
|
793
|
+
if (Bs(n))
|
815
794
|
return or(n);
|
816
|
-
if (
|
795
|
+
if (tn(n))
|
817
796
|
return ar(n);
|
818
|
-
if (
|
797
|
+
if (Us(n))
|
819
798
|
return lr(n);
|
799
|
+
if (js(n))
|
800
|
+
return Zs(n);
|
820
801
|
if (Ds(n))
|
821
|
-
return Gs(n);
|
822
|
-
if (Zs(n))
|
823
802
|
return cr(n);
|
824
|
-
if (
|
825
|
-
return
|
803
|
+
if (Fs(n))
|
804
|
+
return ur(n);
|
826
805
|
}
|
827
|
-
throw
|
806
|
+
throw Hs(n);
|
828
807
|
}
|
829
808
|
function or(n) {
|
830
|
-
return new
|
831
|
-
var t = n[
|
809
|
+
return new L(function(e) {
|
810
|
+
var t = n[Vt]();
|
832
811
|
if (x(t.subscribe))
|
833
812
|
return t.subscribe(e);
|
834
813
|
throw new TypeError("Provided object does not correctly implement Symbol.observable");
|
835
814
|
});
|
836
815
|
}
|
837
816
|
function ar(n) {
|
838
|
-
return new
|
817
|
+
return new L(function(e) {
|
839
818
|
for (var t = 0; t < n.length && !e.closed; t++)
|
840
819
|
e.next(n[t]);
|
841
820
|
e.complete();
|
842
821
|
});
|
843
822
|
}
|
844
823
|
function lr(n) {
|
845
|
-
return new
|
824
|
+
return new L(function(e) {
|
846
825
|
n.then(function(t) {
|
847
826
|
e.closed || (e.next(t), e.complete());
|
848
827
|
}, function(t) {
|
849
828
|
return e.error(t);
|
850
|
-
}).then(null,
|
829
|
+
}).then(null, Ms);
|
851
830
|
});
|
852
831
|
}
|
853
832
|
function cr(n) {
|
854
|
-
return new
|
833
|
+
return new L(function(e) {
|
855
834
|
var t, s;
|
856
835
|
try {
|
857
836
|
for (var i = me(n), r = i.next(); !r.done; r = i.next()) {
|
@@ -871,24 +850,24 @@ function cr(n) {
|
|
871
850
|
e.complete();
|
872
851
|
});
|
873
852
|
}
|
874
|
-
function
|
875
|
-
return new
|
876
|
-
|
853
|
+
function Zs(n) {
|
854
|
+
return new L(function(e) {
|
855
|
+
hr(n, e).catch(function(t) {
|
877
856
|
return e.error(t);
|
878
857
|
});
|
879
858
|
});
|
880
859
|
}
|
881
|
-
function
|
882
|
-
return
|
860
|
+
function ur(n) {
|
861
|
+
return Zs(qs(n));
|
883
862
|
}
|
884
|
-
function
|
863
|
+
function hr(n, e) {
|
885
864
|
var t, s, i, r;
|
886
|
-
return
|
865
|
+
return qi(this, void 0, void 0, function() {
|
887
866
|
var o, a;
|
888
|
-
return
|
867
|
+
return Rs(this, function(l) {
|
889
868
|
switch (l.label) {
|
890
869
|
case 0:
|
891
|
-
l.trys.push([0, 5, 6, 11]), t =
|
870
|
+
l.trys.push([0, 5, 6, 11]), t = Zi(n), l.label = 1;
|
892
871
|
case 1:
|
893
872
|
return [4, t.next()];
|
894
873
|
case 2:
|
@@ -919,7 +898,7 @@ function ur(n, e) {
|
|
919
898
|
});
|
920
899
|
});
|
921
900
|
}
|
922
|
-
function
|
901
|
+
function Y(n, e, t, s, i) {
|
923
902
|
s === void 0 && (s = 0), i === void 0 && (i = !1);
|
924
903
|
var r = e.schedule(function() {
|
925
904
|
t(), i ? n.add(this.schedule(null, s)) : this.unsubscribe();
|
@@ -927,24 +906,24 @@ function G(n, e, t, s, i) {
|
|
927
906
|
if (n.add(r), !i)
|
928
907
|
return r;
|
929
908
|
}
|
930
|
-
function
|
909
|
+
function Ws(n, e) {
|
931
910
|
return e === void 0 && (e = 0), V(function(t, s) {
|
932
911
|
t.subscribe(z(s, function(i) {
|
933
|
-
return
|
912
|
+
return Y(s, n, function() {
|
934
913
|
return s.next(i);
|
935
914
|
}, e);
|
936
915
|
}, function() {
|
937
|
-
return
|
916
|
+
return Y(s, n, function() {
|
938
917
|
return s.complete();
|
939
918
|
}, e);
|
940
919
|
}, function(i) {
|
941
|
-
return
|
920
|
+
return Y(s, n, function() {
|
942
921
|
return s.error(i);
|
943
922
|
}, e);
|
944
923
|
}));
|
945
924
|
});
|
946
925
|
}
|
947
|
-
function
|
926
|
+
function Gs(n, e) {
|
948
927
|
return e === void 0 && (e = 0), V(function(t, s) {
|
949
928
|
s.add(n.schedule(function() {
|
950
929
|
return t.subscribe(s);
|
@@ -952,13 +931,13 @@ function Qs(n, e) {
|
|
952
931
|
});
|
953
932
|
}
|
954
933
|
function dr(n, e) {
|
955
|
-
return D(n).pipe(
|
934
|
+
return D(n).pipe(Gs(e), Ws(e));
|
956
935
|
}
|
957
936
|
function pr(n, e) {
|
958
|
-
return D(n).pipe(
|
937
|
+
return D(n).pipe(Gs(e), Ws(e));
|
959
938
|
}
|
960
939
|
function fr(n, e) {
|
961
|
-
return new
|
940
|
+
return new L(function(t) {
|
962
941
|
var s = 0;
|
963
942
|
return e.schedule(function() {
|
964
943
|
s === n.length ? t.complete() : (t.next(n[s++]), t.closed || this.schedule());
|
@@ -966,10 +945,10 @@ function fr(n, e) {
|
|
966
945
|
});
|
967
946
|
}
|
968
947
|
function gr(n, e) {
|
969
|
-
return new
|
948
|
+
return new L(function(t) {
|
970
949
|
var s;
|
971
|
-
return
|
972
|
-
s = n[
|
950
|
+
return Y(t, e, function() {
|
951
|
+
s = n[Ns](), Y(t, e, function() {
|
973
952
|
var i, r, o;
|
974
953
|
try {
|
975
954
|
i = s.next(), r = i.value, o = i.done;
|
@@ -984,13 +963,13 @@ function gr(n, e) {
|
|
984
963
|
};
|
985
964
|
});
|
986
965
|
}
|
987
|
-
function
|
966
|
+
function Ys(n, e) {
|
988
967
|
if (!n)
|
989
968
|
throw new Error("Iterable cannot be null");
|
990
|
-
return new
|
991
|
-
|
969
|
+
return new L(function(t) {
|
970
|
+
Y(t, e, function() {
|
992
971
|
var s = n[Symbol.asyncIterator]();
|
993
|
-
|
972
|
+
Y(t, e, function() {
|
994
973
|
s.next().then(function(i) {
|
995
974
|
i.done ? t.complete() : t.next(i.value);
|
996
975
|
});
|
@@ -999,32 +978,32 @@ function Xs(n, e) {
|
|
999
978
|
});
|
1000
979
|
}
|
1001
980
|
function mr(n, e) {
|
1002
|
-
return
|
981
|
+
return Ys(qs(n), e);
|
1003
982
|
}
|
1004
|
-
function
|
983
|
+
function br(n, e) {
|
1005
984
|
if (n != null) {
|
1006
|
-
if (
|
985
|
+
if (Bs(n))
|
1007
986
|
return dr(n, e);
|
1008
|
-
if (
|
987
|
+
if (tn(n))
|
1009
988
|
return fr(n, e);
|
1010
|
-
if (
|
989
|
+
if (Us(n))
|
1011
990
|
return pr(n, e);
|
991
|
+
if (js(n))
|
992
|
+
return Ys(n, e);
|
1012
993
|
if (Ds(n))
|
1013
|
-
return Xs(n, e);
|
1014
|
-
if (Zs(n))
|
1015
994
|
return gr(n, e);
|
1016
|
-
if (
|
995
|
+
if (Fs(n))
|
1017
996
|
return mr(n, e);
|
1018
997
|
}
|
1019
|
-
throw
|
998
|
+
throw Hs(n);
|
1020
999
|
}
|
1021
1000
|
function gt(n, e) {
|
1022
|
-
return e ?
|
1001
|
+
return e ? br(n, e) : D(n);
|
1023
1002
|
}
|
1024
|
-
function
|
1003
|
+
function Ut() {
|
1025
1004
|
for (var n = [], e = 0; e < arguments.length; e++)
|
1026
1005
|
n[e] = arguments[e];
|
1027
|
-
var t =
|
1006
|
+
var t = en(n);
|
1028
1007
|
return gt(n, t);
|
1029
1008
|
}
|
1030
1009
|
function Xe(n, e) {
|
@@ -1035,11 +1014,11 @@ function Xe(n, e) {
|
|
1035
1014
|
}));
|
1036
1015
|
});
|
1037
1016
|
}
|
1038
|
-
var
|
1017
|
+
var vr = Array.isArray;
|
1039
1018
|
function yr(n, e) {
|
1040
|
-
return
|
1019
|
+
return vr(e) ? n.apply(void 0, be([], se(e))) : n(e);
|
1041
1020
|
}
|
1042
|
-
function
|
1021
|
+
function Ks(n) {
|
1043
1022
|
return Xe(function(e) {
|
1044
1023
|
return yr(n, e);
|
1045
1024
|
});
|
@@ -1073,22 +1052,22 @@ function Cr(n, e) {
|
|
1073
1052
|
function Ar() {
|
1074
1053
|
for (var n = [], e = 0; e < arguments.length; e++)
|
1075
1054
|
n[e] = arguments[e];
|
1076
|
-
var t =
|
1055
|
+
var t = en(n), s = zs(n), i = Sr(n), r = i.args, o = i.keys;
|
1077
1056
|
if (r.length === 0)
|
1078
1057
|
return gt([], t);
|
1079
|
-
var a = new
|
1058
|
+
var a = new L(Er(r, t, o ? function(l) {
|
1080
1059
|
return Cr(o, l);
|
1081
1060
|
} : je));
|
1082
|
-
return s ? a.pipe(
|
1061
|
+
return s ? a.pipe(Ks(s)) : a;
|
1083
1062
|
}
|
1084
1063
|
function Er(n, e, t) {
|
1085
1064
|
return t === void 0 && (t = je), function(s) {
|
1086
|
-
|
1087
|
-
for (var i = n.length, r = new Array(i), o = i, a = i, l = function(
|
1088
|
-
|
1089
|
-
var
|
1090
|
-
|
1091
|
-
r[
|
1065
|
+
Nn(e, function() {
|
1066
|
+
for (var i = n.length, r = new Array(i), o = i, a = i, l = function(u) {
|
1067
|
+
Nn(e, function() {
|
1068
|
+
var h = gt(n[u], e), d = !1;
|
1069
|
+
h.subscribe(z(s, function(p) {
|
1070
|
+
r[u] = p, d || (d = !0, a--), a || s.next(t(r.slice()));
|
1092
1071
|
}, function() {
|
1093
1072
|
--o || s.complete();
|
1094
1073
|
}));
|
@@ -1098,18 +1077,18 @@ function Er(n, e, t) {
|
|
1098
1077
|
}, s);
|
1099
1078
|
};
|
1100
1079
|
}
|
1101
|
-
function
|
1102
|
-
n ?
|
1080
|
+
function Nn(n, e, t) {
|
1081
|
+
n ? Y(t, n, e) : e();
|
1103
1082
|
}
|
1104
|
-
function
|
1105
|
-
var l = [], c = 0,
|
1106
|
-
|
1083
|
+
function Lr(n, e, t, s, i, r, o, a) {
|
1084
|
+
var l = [], c = 0, u = 0, h = !1, d = function() {
|
1085
|
+
h && !l.length && !c && e.complete();
|
1107
1086
|
}, p = function(f) {
|
1108
1087
|
return c < s ? g(f) : l.push(f);
|
1109
1088
|
}, g = function(f) {
|
1110
1089
|
c++;
|
1111
1090
|
var k = !1;
|
1112
|
-
D(t(f,
|
1091
|
+
D(t(f, u++)).subscribe(z(e, function(W) {
|
1113
1092
|
e.next(W);
|
1114
1093
|
}, function() {
|
1115
1094
|
k = !0;
|
@@ -1129,41 +1108,41 @@ function Tr(n, e, t, s, i, r, o, a) {
|
|
1129
1108
|
}));
|
1130
1109
|
};
|
1131
1110
|
return n.subscribe(z(e, p, function() {
|
1132
|
-
|
1111
|
+
h = !0, d();
|
1133
1112
|
})), function() {
|
1134
1113
|
};
|
1135
1114
|
}
|
1136
|
-
function
|
1137
|
-
return t === void 0 && (t = 1 / 0), x(e) ?
|
1115
|
+
function nn(n, e, t) {
|
1116
|
+
return t === void 0 && (t = 1 / 0), x(e) ? nn(function(s, i) {
|
1138
1117
|
return Xe(function(r, o) {
|
1139
1118
|
return e(s, r, i, o);
|
1140
1119
|
})(D(n(s, i)));
|
1141
1120
|
}, t) : (typeof e == "number" && (t = e), V(function(s, i) {
|
1142
|
-
return
|
1121
|
+
return Lr(s, i, n, t);
|
1143
1122
|
}));
|
1144
1123
|
}
|
1145
|
-
function
|
1146
|
-
return n === void 0 && (n = 1 / 0),
|
1124
|
+
function Tr(n) {
|
1125
|
+
return n === void 0 && (n = 1 / 0), nn(je, n);
|
1147
1126
|
}
|
1148
1127
|
var Rr = ["addListener", "removeListener"], Pr = ["addEventListener", "removeEventListener"], Or = ["on", "off"];
|
1149
1128
|
function Ve(n, e, t, s) {
|
1150
1129
|
if (x(t) && (s = t, t = void 0), s)
|
1151
|
-
return Ve(n, e, t).pipe(
|
1130
|
+
return Ve(n, e, t).pipe(Ks(s));
|
1152
1131
|
var i = se(zr(n) ? Pr.map(function(a) {
|
1153
1132
|
return function(l) {
|
1154
1133
|
return n[a](e, l, t);
|
1155
1134
|
};
|
1156
|
-
}) : Ir(n) ? Rr.map(
|
1157
|
-
if (!r &&
|
1158
|
-
return
|
1135
|
+
}) : Ir(n) ? Rr.map(Dn(n, e)) : Mr(n) ? Or.map(Dn(n, e)) : [], 2), r = i[0], o = i[1];
|
1136
|
+
if (!r && tn(n))
|
1137
|
+
return nn(function(a) {
|
1159
1138
|
return Ve(a, e, t);
|
1160
1139
|
})(D(n));
|
1161
1140
|
if (!r)
|
1162
1141
|
throw new TypeError("Invalid event target");
|
1163
|
-
return new
|
1142
|
+
return new L(function(a) {
|
1164
1143
|
var l = function() {
|
1165
|
-
for (var c = [],
|
1166
|
-
c[
|
1144
|
+
for (var c = [], u = 0; u < arguments.length; u++)
|
1145
|
+
c[u] = arguments[u];
|
1167
1146
|
return a.next(1 < c.length ? c : c[0]);
|
1168
1147
|
};
|
1169
1148
|
return r(l), function() {
|
@@ -1171,7 +1150,7 @@ function Ve(n, e, t, s) {
|
|
1171
1150
|
};
|
1172
1151
|
});
|
1173
1152
|
}
|
1174
|
-
function
|
1153
|
+
function Dn(n, e) {
|
1175
1154
|
return function(t) {
|
1176
1155
|
return function(s) {
|
1177
1156
|
return n[t](e, s);
|
@@ -1190,10 +1169,10 @@ function zr(n) {
|
|
1190
1169
|
function Ur() {
|
1191
1170
|
for (var n = [], e = 0; e < arguments.length; e++)
|
1192
1171
|
n[e] = arguments[e];
|
1193
|
-
var t =
|
1194
|
-
return i.length ? i.length === 1 ? D(i[0]) :
|
1172
|
+
var t = en(n), s = ir(n, 1 / 0), i = n;
|
1173
|
+
return i.length ? i.length === 1 ? D(i[0]) : Tr(s)(gt(i, t)) : He;
|
1195
1174
|
}
|
1196
|
-
function
|
1175
|
+
function Bt(n) {
|
1197
1176
|
return n <= 0 ? function() {
|
1198
1177
|
return He;
|
1199
1178
|
} : V(function(e, t) {
|
@@ -1210,9 +1189,9 @@ function pe(n, e) {
|
|
1210
1189
|
};
|
1211
1190
|
t.subscribe(z(s, function(l) {
|
1212
1191
|
i == null || i.unsubscribe();
|
1213
|
-
var c = 0,
|
1214
|
-
D(n(l,
|
1215
|
-
return s.next(e ? e(l,
|
1192
|
+
var c = 0, u = r++;
|
1193
|
+
D(n(l, u)).subscribe(i = z(s, function(h) {
|
1194
|
+
return s.next(e ? e(l, h, u, c++) : h);
|
1216
1195
|
}, function() {
|
1217
1196
|
i = null, a();
|
1218
1197
|
}));
|
@@ -1221,30 +1200,30 @@ function pe(n, e) {
|
|
1221
1200
|
}));
|
1222
1201
|
});
|
1223
1202
|
}
|
1224
|
-
function
|
1203
|
+
function jt(n) {
|
1225
1204
|
return V(function(e, t) {
|
1226
1205
|
D(n).subscribe(z(t, function() {
|
1227
1206
|
return t.complete();
|
1228
1207
|
}, Qe)), !t.closed && e.subscribe(t);
|
1229
1208
|
});
|
1230
1209
|
}
|
1231
|
-
function
|
1210
|
+
function Ht() {
|
1232
1211
|
for (var n = [], e = 0; e < arguments.length; e++)
|
1233
1212
|
n[e] = arguments[e];
|
1234
|
-
var t =
|
1213
|
+
var t = zs(n);
|
1235
1214
|
return V(function(s, i) {
|
1236
1215
|
for (var r = n.length, o = new Array(r), a = n.map(function() {
|
1237
1216
|
return !1;
|
1238
|
-
}), l = !1, c = function(
|
1239
|
-
D(n[
|
1240
|
-
o[
|
1217
|
+
}), l = !1, c = function(h) {
|
1218
|
+
D(n[h]).subscribe(z(i, function(d) {
|
1219
|
+
o[h] = d, !l && !a[h] && (a[h] = !0, (l = a.every(je)) && (a = null));
|
1241
1220
|
}, Qe));
|
1242
|
-
},
|
1243
|
-
c(
|
1244
|
-
s.subscribe(z(i, function(
|
1221
|
+
}, u = 0; u < r; u++)
|
1222
|
+
c(u);
|
1223
|
+
s.subscribe(z(i, function(h) {
|
1245
1224
|
if (l) {
|
1246
|
-
var d =
|
1247
|
-
i.next(t ? t.apply(void 0,
|
1225
|
+
var d = be([h], se(o));
|
1226
|
+
i.next(t ? t.apply(void 0, be([], se(d))) : d);
|
1248
1227
|
}
|
1249
1228
|
}));
|
1250
1229
|
});
|
@@ -1253,15 +1232,15 @@ var K = /* @__PURE__ */ ((n) => (n.User = "user", n.Agent = "agent", n.System =
|
|
1253
1232
|
const Br = () => "10000000-1000-4000-8000-100000000000".replace(
|
1254
1233
|
/[018]/g,
|
1255
1234
|
(n) => (+n ^ crypto.getRandomValues(new Uint8Array(1))[0] & 15 >> +n / 4).toString(16)
|
1256
|
-
),
|
1257
|
-
function
|
1235
|
+
), Qs = () => typeof crypto.randomUUID == "function" ? crypto.randomUUID() : Br();
|
1236
|
+
function Hl(n) {
|
1258
1237
|
let e = n;
|
1259
1238
|
const t = /https?:\/\/[^\s<]+/gi, s = /<a [^>]*href="([^"]*)"[^>]*>[^<]*<\/a>/g, i = n.match(t) || [], r = [];
|
1260
1239
|
let o;
|
1261
1240
|
for (; (o = s.exec(n)) !== null; )
|
1262
1241
|
r.push(o[1]);
|
1263
1242
|
return i.filter((l) => !r.includes(l)).forEach((l) => {
|
1264
|
-
const c = l.endsWith(".") ? l.slice(0, -1) : l,
|
1243
|
+
const c = l.endsWith(".") ? l.slice(0, -1) : l, u = new RegExp(
|
1265
1244
|
`(?<!<a[^>]*>)${c.replace(
|
1266
1245
|
/[.*+?^${}()|[\]\\]/g,
|
1267
1246
|
"\\$&"
|
@@ -1269,7 +1248,7 @@ function Ml(n) {
|
|
1269
1248
|
"gi"
|
1270
1249
|
);
|
1271
1250
|
e = e.replace(
|
1272
|
-
|
1251
|
+
u,
|
1273
1252
|
`<a title='${c}' target='_blank' href='${c}'>${c}</a>`
|
1274
1253
|
);
|
1275
1254
|
}), e;
|
@@ -1279,7 +1258,7 @@ function jr(n) {
|
|
1279
1258
|
return Hr(n);
|
1280
1259
|
const e = /<a [^>]*>https?:\/\/[^<]*<\/a>/gim;
|
1281
1260
|
return n.replace(e, (t) => {
|
1282
|
-
const s =
|
1261
|
+
const s = Xs(t);
|
1283
1262
|
if (!s)
|
1284
1263
|
return t;
|
1285
1264
|
const i = 50;
|
@@ -1287,19 +1266,19 @@ function jr(n) {
|
|
1287
1266
|
const r = /^(https?:\/\/[^/]+)(\/.*)?$/i, o = s.match(r);
|
1288
1267
|
if (!o)
|
1289
1268
|
return t;
|
1290
|
-
const a = o[1], c = (o[2] || "/").split("?")[0],
|
1269
|
+
const a = o[1], c = (o[2] || "/").split("?")[0], u = c.split("/").pop(), h = i - a.length;
|
1291
1270
|
let d = c;
|
1292
|
-
|
1271
|
+
u && u.length < h && c.length > h ? d = c.substring(
|
1293
1272
|
0,
|
1294
|
-
|
1295
|
-
) + ".../" +
|
1273
|
+
h - u.length - 4
|
1274
|
+
) + ".../" + u : d = c.substring(0, h - 3) + "...";
|
1296
1275
|
const p = `${a}${d}`;
|
1297
|
-
return
|
1276
|
+
return Nt(t, p);
|
1298
1277
|
}
|
1299
|
-
return
|
1278
|
+
return Nt(t, s);
|
1300
1279
|
});
|
1301
1280
|
}
|
1302
|
-
function
|
1281
|
+
function Xs(n) {
|
1303
1282
|
const e = n.match(/href=["']([^'"]*)["']/);
|
1304
1283
|
if (e && e.length > 1) {
|
1305
1284
|
let t = e[1];
|
@@ -1307,22 +1286,22 @@ function ei(n) {
|
|
1307
1286
|
}
|
1308
1287
|
return null;
|
1309
1288
|
}
|
1310
|
-
function
|
1289
|
+
function Nt(n, e) {
|
1311
1290
|
return n.replace(/>[^<]*<\/a>/, `>${e}</a>`);
|
1312
1291
|
}
|
1313
1292
|
function Hr(n) {
|
1314
1293
|
const e = /<a [^>]*aceChatGuideTitle[^>]*>[^<]*<\/a>/gm;
|
1315
1294
|
return n.replace(e, (t) => {
|
1316
|
-
const s =
|
1295
|
+
const s = Xs(t);
|
1317
1296
|
if (!s)
|
1318
1297
|
return t;
|
1319
1298
|
const i = s.split("?").pop(), o = new URLSearchParams(i).get("aceChatGuideTitle");
|
1320
|
-
return o ?
|
1299
|
+
return o ? Nt(t, o) : t;
|
1321
1300
|
});
|
1322
1301
|
}
|
1323
1302
|
class mt {
|
1324
1303
|
constructor(e, t, s) {
|
1325
|
-
this.type = e, this.sender = t, this.messages = s, this.status = "delivered", this.didUpdate = new _(), this.actions$ = new _(), this.remove$ = new _(), this.timestamp = Date.now(), this.id =
|
1304
|
+
this.type = e, this.sender = t, this.messages = s, this.status = "delivered", this.didUpdate = new _(), this.actions$ = new _(), this.remove$ = new _(), this.timestamp = Date.now(), this.id = Qs();
|
1326
1305
|
}
|
1327
1306
|
update(e) {
|
1328
1307
|
this.messages = [
|
@@ -1398,12 +1377,12 @@ class qr {
|
|
1398
1377
|
return this.print$.asObservable();
|
1399
1378
|
}
|
1400
1379
|
}
|
1401
|
-
class
|
1380
|
+
class Nl {
|
1402
1381
|
constructor(e, t) {
|
1403
1382
|
this.name = e, this.component = t, this.print$ = new _(), this.typingState$ = new H(!1), this.complete$ = new _(), this.system = this.createSystem(), this.rehydrate$ = new _(), this.saveToCurrentSession$ = new _(), this.showChatOverlay$ = new H(!1), this.onComplete = () => this.complete$.asObservable();
|
1404
1383
|
}
|
1405
1384
|
connect(e = {}) {
|
1406
|
-
this.complete$.pipe(
|
1385
|
+
this.complete$.pipe(Bt(1)).subscribe(() => {
|
1407
1386
|
this.disconnected();
|
1408
1387
|
});
|
1409
1388
|
}
|
@@ -1480,18 +1459,18 @@ class zl {
|
|
1480
1459
|
* Copyright 2019 Google LLC
|
1481
1460
|
* SPDX-License-Identifier: BSD-3-Clause
|
1482
1461
|
*/
|
1483
|
-
const Ke = globalThis,
|
1484
|
-
let
|
1462
|
+
const Ke = globalThis, sn = Ke.ShadowRoot && (Ke.ShadyCSS === void 0 || Ke.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, rn = Symbol(), qn = /* @__PURE__ */ new WeakMap();
|
1463
|
+
let Vs = class {
|
1485
1464
|
constructor(e, t, s) {
|
1486
|
-
if (this._$cssResult$ = !0, s !==
|
1465
|
+
if (this._$cssResult$ = !0, s !== rn) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
1487
1466
|
this.cssText = e, this.t = t;
|
1488
1467
|
}
|
1489
1468
|
get styleSheet() {
|
1490
1469
|
let e = this.o;
|
1491
1470
|
const t = this.t;
|
1492
|
-
if (
|
1471
|
+
if (sn && e === void 0) {
|
1493
1472
|
const s = t !== void 0 && t.length === 1;
|
1494
|
-
s && (e =
|
1473
|
+
s && (e = qn.get(t)), e === void 0 && ((this.o = e = new CSSStyleSheet()).replaceSync(this.cssText), s && qn.set(t, e));
|
1495
1474
|
}
|
1496
1475
|
return e;
|
1497
1476
|
}
|
@@ -1499,20 +1478,20 @@ let ti = class {
|
|
1499
1478
|
return this.cssText;
|
1500
1479
|
}
|
1501
1480
|
};
|
1502
|
-
const Fr = (n) => new
|
1481
|
+
const Fr = (n) => new Vs(typeof n == "string" ? n : n + "", void 0, rn), T = (n, ...e) => {
|
1503
1482
|
const t = n.length === 1 ? n[0] : e.reduce((s, i, r) => s + ((o) => {
|
1504
1483
|
if (o._$cssResult$ === !0) return o.cssText;
|
1505
1484
|
if (typeof o == "number") return o;
|
1506
1485
|
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.");
|
1507
1486
|
})(i) + n[r + 1], n[0]);
|
1508
|
-
return new
|
1487
|
+
return new Vs(t, n, rn);
|
1509
1488
|
}, Zr = (n, e) => {
|
1510
|
-
if (
|
1489
|
+
if (sn) n.adoptedStyleSheets = e.map((t) => t instanceof CSSStyleSheet ? t : t.styleSheet);
|
1511
1490
|
else for (const t of e) {
|
1512
1491
|
const s = document.createElement("style"), i = Ke.litNonce;
|
1513
1492
|
i !== void 0 && s.setAttribute("nonce", i), s.textContent = t.cssText, n.appendChild(s);
|
1514
1493
|
}
|
1515
|
-
},
|
1494
|
+
}, Fn = sn ? (n) => n : (n) => n instanceof CSSStyleSheet ? ((e) => {
|
1516
1495
|
let t = "";
|
1517
1496
|
for (const s of e.cssRules) t += s.cssText;
|
1518
1497
|
return Fr(t);
|
@@ -1522,7 +1501,7 @@ const Fr = (n) => new ti(typeof n == "string" ? n : n + "", void 0, on), L = (n,
|
|
1522
1501
|
* Copyright 2017 Google LLC
|
1523
1502
|
* SPDX-License-Identifier: BSD-3-Clause
|
1524
1503
|
*/
|
1525
|
-
const { is: Wr, defineProperty:
|
1504
|
+
const { is: Wr, defineProperty: Gr, getOwnPropertyDescriptor: Yr, getOwnPropertyNames: Kr, getOwnPropertySymbols: Qr, getPrototypeOf: Xr } = Object, Q = globalThis, Zn = Q.trustedTypes, Vr = Zn ? Zn.emptyScript : "", At = Q.reactiveElementPolyfillSupport, Ce = (n, e) => n, Je = { toAttribute(n, e) {
|
1526
1505
|
switch (e) {
|
1527
1506
|
case Boolean:
|
1528
1507
|
n = n ? Vr : null;
|
@@ -1550,7 +1529,7 @@ const { is: Wr, defineProperty: Yr, getOwnPropertyDescriptor: Gr, getOwnProperty
|
|
1550
1529
|
}
|
1551
1530
|
}
|
1552
1531
|
return t;
|
1553
|
-
} },
|
1532
|
+
} }, on = (n, e) => !Wr(n, e), Wn = { attribute: !0, type: String, converter: Je, reflect: !1, hasChanged: on };
|
1554
1533
|
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), Q.litPropertyMetadata ?? (Q.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
1555
1534
|
let le = class extends HTMLElement {
|
1556
1535
|
static addInitializer(e) {
|
@@ -1559,14 +1538,14 @@ let le = class extends HTMLElement {
|
|
1559
1538
|
static get observedAttributes() {
|
1560
1539
|
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
1561
1540
|
}
|
1562
|
-
static createProperty(e, t =
|
1541
|
+
static createProperty(e, t = Wn) {
|
1563
1542
|
if (t.state && (t.attribute = !1), this._$Ei(), this.elementProperties.set(e, t), !t.noAccessor) {
|
1564
1543
|
const s = Symbol(), i = this.getPropertyDescriptor(e, s, t);
|
1565
|
-
i !== void 0 &&
|
1544
|
+
i !== void 0 && Gr(this.prototype, e, i);
|
1566
1545
|
}
|
1567
1546
|
}
|
1568
1547
|
static getPropertyDescriptor(e, t, s) {
|
1569
|
-
const { get: i, set: r } =
|
1548
|
+
const { get: i, set: r } = Yr(this.prototype, e) ?? { get() {
|
1570
1549
|
return this[t];
|
1571
1550
|
}, set(o) {
|
1572
1551
|
this[t] = o;
|
@@ -1579,7 +1558,7 @@ let le = class extends HTMLElement {
|
|
1579
1558
|
}, configurable: !0, enumerable: !0 };
|
1580
1559
|
}
|
1581
1560
|
static getPropertyOptions(e) {
|
1582
|
-
return this.elementProperties.get(e) ??
|
1561
|
+
return this.elementProperties.get(e) ?? Wn;
|
1583
1562
|
}
|
1584
1563
|
static _$Ei() {
|
1585
1564
|
if (this.hasOwnProperty(Ce("elementProperties"))) return;
|
@@ -1608,8 +1587,8 @@ let le = class extends HTMLElement {
|
|
1608
1587
|
const t = [];
|
1609
1588
|
if (Array.isArray(e)) {
|
1610
1589
|
const s = new Set(e.flat(1 / 0).reverse());
|
1611
|
-
for (const i of s) t.unshift(
|
1612
|
-
} else e !== void 0 && t.push(
|
1590
|
+
for (const i of s) t.unshift(Fn(i));
|
1591
|
+
} else e !== void 0 && t.push(Fn(e));
|
1613
1592
|
return t;
|
1614
1593
|
}
|
1615
1594
|
static _$Eu(e, t) {
|
@@ -1677,7 +1656,7 @@ let le = class extends HTMLElement {
|
|
1677
1656
|
}
|
1678
1657
|
requestUpdate(e, t, s) {
|
1679
1658
|
if (e !== void 0) {
|
1680
|
-
if (s ?? (s = this.constructor.getPropertyOptions(e)), !(s.hasChanged ??
|
1659
|
+
if (s ?? (s = this.constructor.getPropertyOptions(e)), !(s.hasChanged ?? on)(this[e], t)) return;
|
1681
1660
|
this.P(e, t, s);
|
1682
1661
|
}
|
1683
1662
|
this.isUpdatePending === !1 && (this._$ES = this._$ET());
|
@@ -1750,17 +1729,17 @@ let le = class extends HTMLElement {
|
|
1750
1729
|
firstUpdated(e) {
|
1751
1730
|
}
|
1752
1731
|
};
|
1753
|
-
le.elementStyles = [], le.shadowRootOptions = { mode: "open" }, le[Ce("elementProperties")] = /* @__PURE__ */ new Map(), le[Ce("finalized")] = /* @__PURE__ */ new Map(),
|
1732
|
+
le.elementStyles = [], le.shadowRootOptions = { mode: "open" }, le[Ce("elementProperties")] = /* @__PURE__ */ new Map(), le[Ce("finalized")] = /* @__PURE__ */ new Map(), At == null || At({ ReactiveElement: le }), (Q.reactiveElementVersions ?? (Q.reactiveElementVersions = [])).push("2.0.4");
|
1754
1733
|
/**
|
1755
1734
|
* @license
|
1756
1735
|
* Copyright 2017 Google LLC
|
1757
1736
|
* SPDX-License-Identifier: BSD-3-Clause
|
1758
1737
|
*/
|
1759
|
-
const Ae = globalThis, et = Ae.trustedTypes, Gn = et ? et.createPolicy("lit-html", { createHTML: (n) => n }) : void 0,
|
1760
|
-
\f\r]`, ke = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,
|
1761
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"),
|
1762
|
-
function
|
1763
|
-
if (!
|
1738
|
+
const Ae = globalThis, et = Ae.trustedTypes, Gn = et ? et.createPolicy("lit-html", { createHTML: (n) => n }) : void 0, Js = "$lit$", G = `lit$${Math.random().toFixed(9).slice(2)}$`, ei = "?" + G, Jr = `<${ei}>`, ie = document, Re = () => ie.createComment(""), Pe = (n) => n === null || typeof n != "object" && typeof n != "function", an = Array.isArray, eo = (n) => an(n) || typeof (n == null ? void 0 : n[Symbol.iterator]) == "function", Et = `[
|
1739
|
+
\f\r]`, ke = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Yn = /-->/g, Kn = />/g, ee = RegExp(`>|${Et}(?:([^\\s"'>=/]+)(${Et}*=${Et}*(?:[^
|
1740
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), Qn = /'/g, Xn = /"/g, ti = /^(?:script|style|textarea|title)$/i, to = (n) => (e, ...t) => ({ _$litType$: n, strings: e, values: t }), b = to(1), X = Symbol.for("lit-noChange"), m = Symbol.for("lit-nothing"), Vn = /* @__PURE__ */ new WeakMap(), ne = ie.createTreeWalker(ie, 129);
|
1741
|
+
function ni(n, e) {
|
1742
|
+
if (!an(n) || !n.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
1764
1743
|
return Gn !== void 0 ? Gn.createHTML(e) : e;
|
1765
1744
|
}
|
1766
1745
|
const no = (n, e) => {
|
@@ -1768,41 +1747,41 @@ const no = (n, e) => {
|
|
1768
1747
|
let i, r = e === 2 ? "<svg>" : e === 3 ? "<math>" : "", o = ke;
|
1769
1748
|
for (let a = 0; a < t; a++) {
|
1770
1749
|
const l = n[a];
|
1771
|
-
let c,
|
1772
|
-
for (; d < l.length && (o.lastIndex = d,
|
1750
|
+
let c, u, h = -1, d = 0;
|
1751
|
+
for (; d < l.length && (o.lastIndex = d, u = o.exec(l), u !== null); ) d = o.lastIndex, o === ke ? u[1] === "!--" ? o = Yn : u[1] !== void 0 ? o = Kn : u[2] !== void 0 ? (ti.test(u[2]) && (i = RegExp("</" + u[2], "g")), o = ee) : u[3] !== void 0 && (o = ee) : o === ee ? u[0] === ">" ? (o = i ?? ke, h = -1) : u[1] === void 0 ? h = -2 : (h = o.lastIndex - u[2].length, c = u[1], o = u[3] === void 0 ? ee : u[3] === '"' ? Xn : Qn) : o === Xn || o === Qn ? o = ee : o === Yn || o === Kn ? o = ke : (o = ee, i = void 0);
|
1773
1752
|
const p = o === ee && n[a + 1].startsWith("/>") ? " " : "";
|
1774
|
-
r += o === ke ? l + Jr :
|
1753
|
+
r += o === ke ? l + Jr : h >= 0 ? (s.push(c), l.slice(0, h) + Js + l.slice(h) + G + p) : l + G + (h === -2 ? a : p);
|
1775
1754
|
}
|
1776
|
-
return [
|
1755
|
+
return [ni(n, r + (n[t] || "<?>") + (e === 2 ? "</svg>" : e === 3 ? "</math>" : "")), s];
|
1777
1756
|
};
|
1778
|
-
let
|
1757
|
+
let Dt = class si {
|
1779
1758
|
constructor({ strings: e, _$litType$: t }, s) {
|
1780
1759
|
let i;
|
1781
1760
|
this.parts = [];
|
1782
1761
|
let r = 0, o = 0;
|
1783
|
-
const a = e.length - 1, l = this.parts, [c,
|
1784
|
-
if (this.el =
|
1785
|
-
const
|
1786
|
-
|
1762
|
+
const a = e.length - 1, l = this.parts, [c, u] = no(e, t);
|
1763
|
+
if (this.el = si.createElement(c, s), ne.currentNode = this.el.content, t === 2 || t === 3) {
|
1764
|
+
const h = this.el.content.firstChild;
|
1765
|
+
h.replaceWith(...h.childNodes);
|
1787
1766
|
}
|
1788
1767
|
for (; (i = ne.nextNode()) !== null && l.length < a; ) {
|
1789
1768
|
if (i.nodeType === 1) {
|
1790
|
-
if (i.hasAttributes()) for (const
|
1791
|
-
const d =
|
1792
|
-
l.push({ type: 1, index: r, name: g[2], strings: p, ctor: g[1] === "." ? io : g[1] === "?" ? ro : g[1] === "@" ? oo :
|
1793
|
-
} else
|
1794
|
-
if (
|
1795
|
-
const
|
1769
|
+
if (i.hasAttributes()) for (const h of i.getAttributeNames()) if (h.endsWith(Js)) {
|
1770
|
+
const d = u[o++], p = i.getAttribute(h).split(G), g = /([.?@])?(.*)/.exec(d);
|
1771
|
+
l.push({ type: 1, index: r, name: g[2], strings: p, ctor: g[1] === "." ? io : g[1] === "?" ? ro : g[1] === "@" ? oo : bt }), i.removeAttribute(h);
|
1772
|
+
} else h.startsWith(G) && (l.push({ type: 6, index: r }), i.removeAttribute(h));
|
1773
|
+
if (ti.test(i.tagName)) {
|
1774
|
+
const h = i.textContent.split(G), d = h.length - 1;
|
1796
1775
|
if (d > 0) {
|
1797
1776
|
i.textContent = et ? et.emptyScript : "";
|
1798
|
-
for (let p = 0; p < d; p++) i.append(
|
1799
|
-
i.append(
|
1777
|
+
for (let p = 0; p < d; p++) i.append(h[p], Re()), ne.nextNode(), l.push({ type: 2, index: ++r });
|
1778
|
+
i.append(h[d], Re());
|
1800
1779
|
}
|
1801
1780
|
}
|
1802
|
-
} else if (i.nodeType === 8) if (i.data ===
|
1781
|
+
} else if (i.nodeType === 8) if (i.data === ei) l.push({ type: 2, index: r });
|
1803
1782
|
else {
|
1804
|
-
let
|
1805
|
-
for (; (
|
1783
|
+
let h = -1;
|
1784
|
+
for (; (h = i.data.indexOf(G, h + 1)) !== -1; ) l.push({ type: 7, index: r }), h += G.length - 1;
|
1806
1785
|
}
|
1807
1786
|
r++;
|
1808
1787
|
}
|
@@ -1812,12 +1791,12 @@ let qt = class oi {
|
|
1812
1791
|
return s.innerHTML = e, s;
|
1813
1792
|
}
|
1814
1793
|
};
|
1815
|
-
function
|
1794
|
+
function ve(n, e, t = n, s) {
|
1816
1795
|
var o, a;
|
1817
1796
|
if (e === X) return e;
|
1818
1797
|
let i = s !== void 0 ? (o = t._$Co) == null ? void 0 : o[s] : t._$Cl;
|
1819
1798
|
const r = Pe(e) ? void 0 : e._$litDirective$;
|
1820
|
-
return (i == null ? void 0 : i.constructor) !== r && ((a = i == null ? void 0 : i._$AO) == null || a.call(i, !1), r === void 0 ? i = void 0 : (i = new r(n), i._$AT(n, t, s)), s !== void 0 ? (t._$Co ?? (t._$Co = []))[s] = i : t._$Cl = i), i !== void 0 && (e =
|
1799
|
+
return (i == null ? void 0 : i.constructor) !== r && ((a = i == null ? void 0 : i._$AO) == null || a.call(i, !1), r === void 0 ? i = void 0 : (i = new r(n), i._$AT(n, t, s)), s !== void 0 ? (t._$Co ?? (t._$Co = []))[s] = i : t._$Cl = i), i !== void 0 && (e = ve(n, i._$AS(n, e.values), i, s)), e;
|
1821
1800
|
}
|
1822
1801
|
class so {
|
1823
1802
|
constructor(e, t) {
|
@@ -1867,7 +1846,7 @@ class Ne {
|
|
1867
1846
|
return this._$AB;
|
1868
1847
|
}
|
1869
1848
|
_$AI(e, t = this) {
|
1870
|
-
e =
|
1849
|
+
e = ve(this, e, t), Pe(e) ? e === m || e == null || e === "" ? (this._$AH !== m && this._$AR(), this._$AH = m) : e !== this._$AH && e !== X && this._(e) : e._$litType$ !== void 0 ? this.$(e) : e.nodeType !== void 0 ? this.T(e) : eo(e) ? this.k(e) : this._(e);
|
1871
1850
|
}
|
1872
1851
|
O(e) {
|
1873
1852
|
return this._$AA.parentNode.insertBefore(e, this._$AB);
|
@@ -1880,7 +1859,7 @@ class Ne {
|
|
1880
1859
|
}
|
1881
1860
|
$(e) {
|
1882
1861
|
var r;
|
1883
|
-
const { values: t, _$litType$: s } = e, i = typeof s == "number" ? this._$AC(e) : (s.el === void 0 && (s.el =
|
1862
|
+
const { values: t, _$litType$: s } = e, i = typeof s == "number" ? this._$AC(e) : (s.el === void 0 && (s.el = Dt.createElement(ni(s.h, s.h[0]), this.options)), s);
|
1884
1863
|
if (((r = this._$AH) == null ? void 0 : r._$AD) === i) this._$AH.p(t);
|
1885
1864
|
else {
|
1886
1865
|
const o = new so(i, this), a = o.u(this.options);
|
@@ -1888,11 +1867,11 @@ class Ne {
|
|
1888
1867
|
}
|
1889
1868
|
}
|
1890
1869
|
_$AC(e) {
|
1891
|
-
let t =
|
1892
|
-
return t === void 0 &&
|
1870
|
+
let t = Vn.get(e.strings);
|
1871
|
+
return t === void 0 && Vn.set(e.strings, t = new Dt(e)), t;
|
1893
1872
|
}
|
1894
1873
|
k(e) {
|
1895
|
-
|
1874
|
+
an(this._$AH) || (this._$AH = [], this._$AR());
|
1896
1875
|
const t = this._$AH;
|
1897
1876
|
let s, i = 0;
|
1898
1877
|
for (const r of e) i === t.length ? t.push(s = new Ne(this.O(Re()), this.O(Re()), this, this.options)) : s = t[i], s._$AI(r), i++;
|
@@ -1910,7 +1889,7 @@ class Ne {
|
|
1910
1889
|
this._$AM === void 0 && (this._$Cv = e, (t = this._$AP) == null || t.call(this, e));
|
1911
1890
|
}
|
1912
1891
|
}
|
1913
|
-
class
|
1892
|
+
class bt {
|
1914
1893
|
get tagName() {
|
1915
1894
|
return this.element.tagName;
|
1916
1895
|
}
|
@@ -1923,11 +1902,11 @@ class vt {
|
|
1923
1902
|
_$AI(e, t = this, s, i) {
|
1924
1903
|
const r = this.strings;
|
1925
1904
|
let o = !1;
|
1926
|
-
if (r === void 0) e =
|
1905
|
+
if (r === void 0) e = ve(this, e, t, 0), o = !Pe(e) || e !== this._$AH && e !== X, o && (this._$AH = e);
|
1927
1906
|
else {
|
1928
1907
|
const a = e;
|
1929
1908
|
let l, c;
|
1930
|
-
for (e = r[0], l = 0; l < r.length - 1; l++) c =
|
1909
|
+
for (e = r[0], l = 0; l < r.length - 1; l++) c = ve(this, a[s + l], t, l), c === X && (c = this._$AH[l]), o || (o = !Pe(c) || c !== this._$AH[l]), c === m ? e = m : e !== m && (e += (c ?? "") + r[l + 1]), this._$AH[l] = c;
|
1931
1910
|
}
|
1932
1911
|
o && !i && this.j(e);
|
1933
1912
|
}
|
@@ -1935,7 +1914,7 @@ class vt {
|
|
1935
1914
|
e === m ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, e ?? "");
|
1936
1915
|
}
|
1937
1916
|
}
|
1938
|
-
let io = class extends
|
1917
|
+
let io = class extends bt {
|
1939
1918
|
constructor() {
|
1940
1919
|
super(...arguments), this.type = 3;
|
1941
1920
|
}
|
@@ -1943,7 +1922,7 @@ let io = class extends vt {
|
|
1943
1922
|
this.element[this.name] = e === m ? void 0 : e;
|
1944
1923
|
}
|
1945
1924
|
};
|
1946
|
-
class ro extends
|
1925
|
+
class ro extends bt {
|
1947
1926
|
constructor() {
|
1948
1927
|
super(...arguments), this.type = 4;
|
1949
1928
|
}
|
@@ -1951,12 +1930,12 @@ class ro extends vt {
|
|
1951
1930
|
this.element.toggleAttribute(this.name, !!e && e !== m);
|
1952
1931
|
}
|
1953
1932
|
}
|
1954
|
-
class oo extends
|
1933
|
+
class oo extends bt {
|
1955
1934
|
constructor(e, t, s, i, r) {
|
1956
1935
|
super(e, t, s, i, r), this.type = 5;
|
1957
1936
|
}
|
1958
1937
|
_$AI(e, t = this) {
|
1959
|
-
if ((e =
|
1938
|
+
if ((e = ve(this, e, t, 0) ?? m) === X) return;
|
1960
1939
|
const s = this._$AH, i = e === m && s !== m || e.capture !== s.capture || e.once !== s.once || e.passive !== s.passive, r = e !== m && (s === m || i);
|
1961
1940
|
i && this.element.removeEventListener(this.name, this, s), r && this.element.addEventListener(this.name, this, e), this._$AH = e;
|
1962
1941
|
}
|
@@ -1973,11 +1952,11 @@ class ao {
|
|
1973
1952
|
return this._$AM._$AU;
|
1974
1953
|
}
|
1975
1954
|
_$AI(e) {
|
1976
|
-
|
1955
|
+
ve(this, e);
|
1977
1956
|
}
|
1978
1957
|
}
|
1979
1958
|
const Lt = Ae.litHtmlPolyfillSupport;
|
1980
|
-
Lt == null || Lt(
|
1959
|
+
Lt == null || Lt(Dt, Ne), (Ae.litHtmlVersions ?? (Ae.litHtmlVersions = [])).push("3.2.1");
|
1981
1960
|
const lo = (n, e, t) => {
|
1982
1961
|
const s = (t == null ? void 0 : t.renderBefore) ?? e;
|
1983
1962
|
let i = s._$litPart$;
|
@@ -2019,95 +1998,18 @@ let S = class extends le {
|
|
2019
1998
|
};
|
2020
1999
|
var Ls;
|
2021
2000
|
S._$litElement$ = !0, S.finalized = !0, (Ls = globalThis.litElementHydrateSupport) == null || Ls.call(globalThis, { LitElement: S });
|
2022
|
-
const
|
2023
|
-
|
2001
|
+
const Tt = globalThis.litElementPolyfillSupport;
|
2002
|
+
Tt == null || Tt({ LitElement: S });
|
2024
2003
|
(globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.1.1");
|
2025
|
-
const co = {
|
2026
|
-
allRenderFn: !1,
|
2027
|
-
cmpDidLoad: !0,
|
2028
|
-
cmpDidUnload: !1,
|
2029
|
-
cmpDidUpdate: !0,
|
2030
|
-
cmpDidRender: !0,
|
2031
|
-
cmpWillLoad: !0,
|
2032
|
-
cmpWillUpdate: !0,
|
2033
|
-
cmpWillRender: !0,
|
2034
|
-
connectedCallback: !0,
|
2035
|
-
disconnectedCallback: !0,
|
2036
|
-
element: !0,
|
2037
|
-
event: !0,
|
2004
|
+
const co = { 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>' }, uo = { 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>' }, ho = { 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>' }, po = { 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>' }, fo = { 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 = { 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>' }, go = { 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>' }, mo = { svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="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>' }, es = { 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>' }, ce = {
|
2038
2005
|
hasRenderFn: !0,
|
2039
|
-
lifecycle: !0,
|
2040
|
-
hostListener: !0,
|
2041
|
-
hostListenerTargetWindow: !0,
|
2042
|
-
hostListenerTargetDocument: !0,
|
2043
|
-
hostListenerTargetBody: !0,
|
2044
|
-
hostListenerTargetParent: !1,
|
2045
|
-
hostListenerTarget: !0,
|
2046
|
-
member: !0,
|
2047
|
-
method: !0,
|
2048
|
-
mode: !0,
|
2049
|
-
observeAttribute: !0,
|
2050
|
-
prop: !0,
|
2051
|
-
propMutable: !0,
|
2052
2006
|
reflect: !0,
|
2053
|
-
scoped: !0,
|
2054
|
-
shadowDom: !0,
|
2055
|
-
slot: !0,
|
2056
|
-
cssAnnotations: !0,
|
2057
|
-
state: !0,
|
2058
|
-
style: !0,
|
2059
|
-
svg: !0,
|
2060
|
-
updatable: !0,
|
2061
|
-
vdomAttribute: !0,
|
2062
|
-
vdomXlink: !0,
|
2063
|
-
vdomClass: !0,
|
2064
|
-
vdomFunctional: !0,
|
2065
|
-
vdomKey: !0,
|
2066
|
-
vdomListener: !0,
|
2067
|
-
vdomRef: !0,
|
2068
|
-
vdomPropOrAttr: !0,
|
2069
2007
|
vdomRender: !0,
|
2070
|
-
vdomStyle: !0,
|
2071
|
-
vdomText: !0,
|
2072
|
-
watchCallback: !0,
|
2073
|
-
taskQueue: !0,
|
2074
|
-
hotModuleReplacement: !1,
|
2075
|
-
isDebug: !1,
|
2076
|
-
isDev: !1,
|
2077
|
-
isTesting: !1,
|
2078
2008
|
hydrateServerSide: !1,
|
2079
|
-
|
2080
|
-
lifecycleDOMEvents: !1,
|
2081
|
-
lazyLoad: !1,
|
2082
|
-
profile: !1,
|
2083
|
-
slotRelocation: !0,
|
2084
|
-
appendChildSlotFix: !1,
|
2085
|
-
cloneNodeFix: !1,
|
2086
|
-
hydratedAttribute: !1,
|
2087
|
-
hydratedClass: !0,
|
2088
|
-
safari10: !1,
|
2089
|
-
scriptDataOpts: !1,
|
2090
|
-
scopedSlotTextContentFix: !1,
|
2091
|
-
shadowDomShim: !1,
|
2092
|
-
slotChildNodesFix: !1,
|
2093
|
-
invisiblePrehydration: !0,
|
2094
|
-
propBoolean: !0,
|
2095
|
-
propNumber: !0,
|
2096
|
-
propString: !0,
|
2097
|
-
cssVarShim: !1,
|
2098
|
-
constructableCSS: !0,
|
2099
|
-
cmpShouldUpdate: !0,
|
2100
|
-
devTools: !1,
|
2101
|
-
dynamicImportShim: !1,
|
2102
|
-
shadowDelegatesFocus: !0,
|
2103
|
-
initializeNextTick: !1,
|
2104
|
-
asyncLoading: !1,
|
2105
|
-
asyncQueue: !1,
|
2106
|
-
transformTagName: !1,
|
2107
|
-
attachStyles: !0
|
2009
|
+
lazyLoad: !1
|
2108
2010
|
};
|
2109
|
-
let
|
2110
|
-
const yt = typeof window < "u" ? window : {}, N = yt.document || { head: {} },
|
2011
|
+
let ue, ii, vt, ri = !1, tt = !1, ln = !1, R = !1, ts = null, qt = !1;
|
2012
|
+
const yt = typeof window < "u" ? window : {}, N = yt.document || { head: {} }, oi = yt.HTMLElement || class {
|
2111
2013
|
}, E = {
|
2112
2014
|
$flags$: 0,
|
2113
2015
|
$resourcesUrl$: "",
|
@@ -2116,7 +2018,7 @@ const yt = typeof window < "u" ? window : {}, N = yt.document || { head: {} }, c
|
|
2116
2018
|
ael: (n, e, t, s) => n.addEventListener(e, t, s),
|
2117
2019
|
rel: (n, e, t, s) => n.removeEventListener(e, t, s),
|
2118
2020
|
ce: (n, e) => new CustomEvent(n, e)
|
2119
|
-
},
|
2021
|
+
}, bo = /* @__PURE__ */ (() => {
|
2120
2022
|
let n = !1;
|
2121
2023
|
try {
|
2122
2024
|
N.addEventListener("e", null, Object.defineProperty({}, "passive", {
|
@@ -2127,13 +2029,13 @@ const yt = typeof window < "u" ? window : {}, N = yt.document || { head: {} }, c
|
|
2127
2029
|
} catch {
|
2128
2030
|
}
|
2129
2031
|
return n;
|
2130
|
-
})(),
|
2032
|
+
})(), vo = (n) => Promise.resolve(n), yo = /* @__PURE__ */ (() => {
|
2131
2033
|
try {
|
2132
2034
|
return new CSSStyleSheet(), typeof new CSSStyleSheet().replace == "function";
|
2133
2035
|
} catch {
|
2134
2036
|
}
|
2135
2037
|
return !1;
|
2136
|
-
})(),
|
2038
|
+
})(), ai = (n, e, t, s) => {
|
2137
2039
|
t && t.map(([i, r, o]) => {
|
2138
2040
|
const a = xo(n, i), l = $o(e, o), c = wo(i);
|
2139
2041
|
E.ael(a, r, l, c), (e.$rmListeners$ = e.$rmListeners$ || []).push(() => E.rel(a, r, l, c));
|
@@ -2144,42 +2046,42 @@ const yt = typeof window < "u" ? window : {}, N = yt.document || { head: {} }, c
|
|
2144
2046
|
} catch (s) {
|
2145
2047
|
De(s);
|
2146
2048
|
}
|
2147
|
-
}, xo = (n, e) => e & 4 ? N : e & 8 ? yt : e & 16 ? N.body : n, wo = (n) =>
|
2049
|
+
}, xo = (n, e) => e & 4 ? N : e & 8 ? yt : e & 16 ? N.body : n, wo = (n) => bo ? {
|
2148
2050
|
passive: (n & 1) !== 0,
|
2149
2051
|
capture: (n & 2) !== 0
|
2150
|
-
} : (n & 2) !== 0,
|
2151
|
-
},
|
2052
|
+
} : (n & 2) !== 0, ns = "http://www.w3.org/1999/xlink", re = (n, e = "") => () => {
|
2053
|
+
}, ss = /* @__PURE__ */ new WeakMap(), ko = (n, e, t) => {
|
2152
2054
|
let s = it.get(n);
|
2153
2055
|
yo && t ? (s = s || new CSSStyleSheet(), s.replace(e)) : s = e, it.set(n, s);
|
2154
2056
|
}, So = (n, e, t, s) => {
|
2155
|
-
let i =
|
2057
|
+
let i = li(e, t), r = it.get(i);
|
2156
2058
|
if (n = n.nodeType === 11 ? n : N, r)
|
2157
2059
|
if (typeof r == "string") {
|
2158
2060
|
n = n.head || n;
|
2159
|
-
let o =
|
2160
|
-
o ||
|
2061
|
+
let o = ss.get(n), a;
|
2062
|
+
o || ss.set(n, o = /* @__PURE__ */ new Set()), o.has(i) || (a = N.createElement("style"), a.innerHTML = r, n.insertBefore(a, n.querySelector("link")), o && o.add(i));
|
2161
2063
|
} else n.adoptedStyleSheets.includes(r) || (n.adoptedStyleSheets = [...n.adoptedStyleSheets, r]);
|
2162
2064
|
return i;
|
2163
2065
|
}, _o = (n) => {
|
2164
2066
|
const e = n.$cmpMeta$, t = n.$hostElement$, s = e.$flags$, i = re("attachStyles", e.$tagName$), r = So(t.shadowRoot ? t.shadowRoot : t.getRootNode(), e, n.$modeName$);
|
2165
2067
|
s & 10 && (t["s-sc"] = r, t.classList.add(r + "-h"), s & 2 && t.classList.add(r + "-s")), i();
|
2166
|
-
},
|
2068
|
+
}, li = (n, e) => "sc-" + (e && n.$flags$ & 32 ? n.$tagName$ + "-" + e : n.$tagName$), Co = (n) => ea.map((e) => e(n)).find((e) => !!e), is = {}, Ao = "http://www.w3.org/2000/svg", Eo = "http://www.w3.org/1999/xhtml", Lo = (n) => n != null, cn = (n) => (n = typeof n, n === "object" || n === "function"), fe = (n, e, ...t) => {
|
2167
2069
|
let s = null, i = null, r = null, o = !1, a = !1, l = [];
|
2168
|
-
const c = (
|
2169
|
-
for (let d = 0; d <
|
2170
|
-
s =
|
2070
|
+
const c = (h) => {
|
2071
|
+
for (let d = 0; d < h.length; d++)
|
2072
|
+
s = h[d], Array.isArray(s) ? c(s) : s != null && typeof s != "boolean" && ((o = typeof n != "function" && !cn(s)) && (s = String(s)), o && a ? l[l.length - 1].$text$ += s : l.push(o ? nt(null, s) : s), a = o);
|
2171
2073
|
};
|
2172
2074
|
if (c(t), e) {
|
2173
2075
|
e.key && (i = e.key), e.name && (r = e.name);
|
2174
2076
|
{
|
2175
|
-
const
|
2176
|
-
|
2077
|
+
const h = e.className || e.class;
|
2078
|
+
h && (e.class = typeof h != "object" ? h : Object.keys(h).filter((d) => h[d]).join(" "));
|
2177
2079
|
}
|
2178
2080
|
}
|
2179
2081
|
if (typeof n == "function")
|
2180
2082
|
return n(e === null ? {} : e, l, Ro);
|
2181
|
-
const
|
2182
|
-
return
|
2083
|
+
const u = nt(n, null);
|
2084
|
+
return u.$attrs$ = e, l.length > 0 && (u.$children$ = l), u.$key$ = i, u.$name$ = r, u;
|
2183
2085
|
}, nt = (n, e) => {
|
2184
2086
|
const t = {
|
2185
2087
|
$flags$: 0,
|
@@ -2189,10 +2091,10 @@ const yt = typeof window < "u" ? window : {}, N = yt.document || { head: {} }, c
|
|
2189
2091
|
$children$: null
|
2190
2092
|
};
|
2191
2093
|
return t.$attrs$ = null, t.$key$ = null, t.$name$ = null, t;
|
2192
|
-
}, un = {},
|
2193
|
-
forEach: (n, e) => n.map(
|
2194
|
-
map: (n, e) => n.map(
|
2195
|
-
},
|
2094
|
+
}, un = {}, To = (n) => n && n.$tag$ === un, Ro = {
|
2095
|
+
forEach: (n, e) => n.map(rs).forEach(e),
|
2096
|
+
map: (n, e) => n.map(rs).map(e).map(Po)
|
2097
|
+
}, rs = (n) => ({
|
2196
2098
|
vattrs: n.$attrs$,
|
2197
2099
|
vchildren: n.$children$,
|
2198
2100
|
vkey: n.$key$,
|
@@ -2206,12 +2108,12 @@ const yt = typeof window < "u" ? window : {}, N = yt.document || { head: {} }, c
|
|
2206
2108
|
}
|
2207
2109
|
const e = nt(n.vtag, n.vtext);
|
2208
2110
|
return e.$attrs$ = n.vattrs, e.$children$ = n.vchildren, e.$key$ = n.vkey, e.$name$ = n.vname, e;
|
2209
|
-
},
|
2111
|
+
}, os = (n, e, t, s, i, r) => {
|
2210
2112
|
if (t !== s) {
|
2211
2113
|
let o = us(n, e), a = e.toLowerCase();
|
2212
2114
|
if (e === "class") {
|
2213
|
-
const l = n.classList, c =
|
2214
|
-
l.remove(...c.filter((
|
2115
|
+
const l = n.classList, c = as(t), u = as(s);
|
2116
|
+
l.remove(...c.filter((h) => h && !u.includes(h))), l.add(...u.filter((h) => h && !c.includes(h)));
|
2215
2117
|
} else if (e === "style") {
|
2216
2118
|
for (const l in t)
|
2217
2119
|
(!s || s[l] == null) && (l.includes("-") ? n.style.removeProperty(l) : n.style[l] = "");
|
@@ -2223,30 +2125,30 @@ const yt = typeof window < "u" ? window : {}, N = yt.document || { head: {} }, c
|
|
2223
2125
|
else if (!n.__lookupSetter__(e) && e[0] === "o" && e[1] === "n")
|
2224
2126
|
e[2] === "-" ? e = e.slice(3) : us(yt, a) ? e = a.slice(2) : e = a[2] + e.slice(3), t && E.rel(n, e, t, !1), s && E.ael(n, e, s, !1);
|
2225
2127
|
else {
|
2226
|
-
const l =
|
2128
|
+
const l = cn(s);
|
2227
2129
|
if ((o || l && s !== null) && !i)
|
2228
2130
|
try {
|
2229
2131
|
if (n.tagName.includes("-"))
|
2230
2132
|
n[e] = s;
|
2231
2133
|
else {
|
2232
|
-
let
|
2233
|
-
e === "list" ? o = !1 : (t == null || n[e] !=
|
2134
|
+
let u = s ?? "";
|
2135
|
+
e === "list" ? o = !1 : (t == null || n[e] != u) && (n[e] = u);
|
2234
2136
|
}
|
2235
2137
|
} catch {
|
2236
2138
|
}
|
2237
2139
|
let c = !1;
|
2238
|
-
a !== (a = a.replace(/^xlink\:?/, "")) && (e = a, c = !0), s == null || s === !1 ? (s !== !1 || n.getAttribute(e) === "") && (c ? n.removeAttributeNS(
|
2140
|
+
a !== (a = a.replace(/^xlink\:?/, "")) && (e = a, c = !0), s == null || s === !1 ? (s !== !1 || n.getAttribute(e) === "") && (c ? n.removeAttributeNS(ns, e) : n.removeAttribute(e)) : (!o || r & 4 || i) && !l && (s = s === !0 ? "" : s, c ? n.setAttributeNS(ns, e, s) : n.setAttribute(e, s));
|
2239
2141
|
}
|
2240
2142
|
}
|
2241
|
-
}, Oo = /\s/,
|
2242
|
-
const i = e.$elm$.nodeType === 11 && e.$elm$.host ? e.$elm$.host : e.$elm$, r = n && n.$attrs$ ||
|
2143
|
+
}, Oo = /\s/, as = (n) => n ? n.split(Oo) : [], ci = (n, e, t, s) => {
|
2144
|
+
const i = e.$elm$.nodeType === 11 && e.$elm$.host ? e.$elm$.host : e.$elm$, r = n && n.$attrs$ || is, o = e.$attrs$ || is;
|
2243
2145
|
for (s in r)
|
2244
|
-
s in o ||
|
2146
|
+
s in o || os(i, s, r[s], void 0, t, e.$flags$);
|
2245
2147
|
for (s in o)
|
2246
|
-
|
2148
|
+
os(i, s, r[s], o[s], t, e.$flags$);
|
2247
2149
|
}, st = (n, e, t, s) => {
|
2248
2150
|
let i = e.$children$[t], r = 0, o, a, l;
|
2249
|
-
if (
|
2151
|
+
if (ri || (ln = !0, i.$tag$ === "slot" && (ue && s.classList.add(ue + "-s"), i.$flags$ |= i.$children$ ? (
|
2250
2152
|
// slot element has fallback content
|
2251
2153
|
2
|
2252
2154
|
) : (
|
@@ -2257,60 +2159,60 @@ const yt = typeof window < "u" ? window : {}, N = yt.document || { head: {} }, c
|
|
2257
2159
|
else if (i.$flags$ & 1)
|
2258
2160
|
o = i.$elm$ = N.createTextNode("");
|
2259
2161
|
else {
|
2260
|
-
if (R || (R = i.$tag$ === "svg"), o = i.$elm$ = N.createElementNS(R ? Ao : Eo, i.$flags$ & 2 ? "slot-fb" : i.$tag$), R && i.$tag$ === "foreignObject" && (R = !1),
|
2162
|
+
if (R || (R = i.$tag$ === "svg"), o = i.$elm$ = N.createElementNS(R ? Ao : Eo, i.$flags$ & 2 ? "slot-fb" : i.$tag$), R && i.$tag$ === "foreignObject" && (R = !1), ci(null, i, R), Lo(ue) && o["s-si"] !== ue && o.classList.add(o["s-si"] = ue), i.$children$)
|
2261
2163
|
for (r = 0; r < i.$children$.length; ++r)
|
2262
2164
|
a = st(n, i, r, o), a && o.appendChild(a);
|
2263
2165
|
i.$tag$ === "svg" ? R = !1 : o.tagName === "foreignObject" && (R = !0);
|
2264
2166
|
}
|
2265
|
-
return o["s-hn"] =
|
2167
|
+
return o["s-hn"] = vt, i.$flags$ & 3 && (o["s-sr"] = !0, o["s-cr"] = ii, o["s-sn"] = i.$name$ || "", l = n && n.$children$ && n.$children$[t], l && l.$tag$ === i.$tag$ && n.$elm$ && Oe(n.$elm$, !1)), o;
|
2266
2168
|
}, Oe = (n, e) => {
|
2267
2169
|
E.$flags$ |= 1;
|
2268
2170
|
const t = n.childNodes;
|
2269
2171
|
for (let s = t.length - 1; s >= 0; s--) {
|
2270
2172
|
const i = t[s];
|
2271
|
-
i["s-hn"] !==
|
2173
|
+
i["s-hn"] !== vt && i["s-ol"] && (di(i).insertBefore(i, hn(i)), i["s-ol"].remove(), i["s-ol"] = void 0, ln = !0), e && Oe(i, e);
|
2272
2174
|
}
|
2273
2175
|
E.$flags$ &= -2;
|
2274
|
-
},
|
2176
|
+
}, ui = (n, e, t, s, i, r) => {
|
2275
2177
|
let o = n["s-cr"] && n["s-cr"].parentNode || n, a;
|
2276
|
-
for (o.shadowRoot && o.tagName ===
|
2277
|
-
s[i] && (a = st(null, t, i, n), a && (s[i].$elm$ = a, o.insertBefore(a,
|
2278
|
-
},
|
2178
|
+
for (o.shadowRoot && o.tagName === vt && (o = o.shadowRoot); i <= r; ++i)
|
2179
|
+
s[i] && (a = st(null, t, i, n), a && (s[i].$elm$ = a, o.insertBefore(a, hn(e))));
|
2180
|
+
}, hi = (n, e, t, s, i) => {
|
2279
2181
|
for (; e <= t; ++e)
|
2280
|
-
(s = n[e]) && (i = s.$elm$,
|
2182
|
+
(s = n[e]) && (i = s.$elm$, gi(s), tt = !0, i["s-ol"] ? i["s-ol"].remove() : Oe(i, !0), i.remove());
|
2281
2183
|
}, Io = (n, e, t, s) => {
|
2282
|
-
let i = 0, r = 0, o = 0, a = 0, l = e.length - 1, c = e[0],
|
2283
|
-
for (; i <= l && r <=
|
2184
|
+
let i = 0, r = 0, o = 0, a = 0, l = e.length - 1, c = e[0], u = e[l], h = s.length - 1, d = s[0], p = s[h], g, f;
|
2185
|
+
for (; i <= l && r <= h; )
|
2284
2186
|
if (c == null)
|
2285
2187
|
c = e[++i];
|
2286
|
-
else if (
|
2287
|
-
|
2188
|
+
else if (u == null)
|
2189
|
+
u = e[--l];
|
2288
2190
|
else if (d == null)
|
2289
2191
|
d = s[++r];
|
2290
2192
|
else if (p == null)
|
2291
|
-
p = s[--
|
2193
|
+
p = s[--h];
|
2292
2194
|
else if (We(c, d))
|
2293
|
-
|
2294
|
-
else if (We(
|
2295
|
-
|
2195
|
+
he(c, d), c = e[++i], d = s[++r];
|
2196
|
+
else if (We(u, p))
|
2197
|
+
he(u, p), u = e[--l], p = s[--h];
|
2296
2198
|
else if (We(c, p))
|
2297
|
-
(c.$tag$ === "slot" || p.$tag$ === "slot") && Oe(c.$elm$.parentNode, !1),
|
2298
|
-
else if (We(
|
2299
|
-
(c.$tag$ === "slot" || p.$tag$ === "slot") && Oe(
|
2199
|
+
(c.$tag$ === "slot" || p.$tag$ === "slot") && Oe(c.$elm$.parentNode, !1), he(c, p), n.insertBefore(c.$elm$, u.$elm$.nextSibling), c = e[++i], p = s[--h];
|
2200
|
+
else if (We(u, d))
|
2201
|
+
(c.$tag$ === "slot" || p.$tag$ === "slot") && Oe(u.$elm$.parentNode, !1), he(u, d), n.insertBefore(u.$elm$, c.$elm$), u = e[--l], d = s[++r];
|
2300
2202
|
else {
|
2301
2203
|
for (o = -1, a = i; a <= l; ++a)
|
2302
2204
|
if (e[a] && e[a].$key$ !== null && e[a].$key$ === d.$key$) {
|
2303
2205
|
o = a;
|
2304
2206
|
break;
|
2305
2207
|
}
|
2306
|
-
o >= 0 ? (f = e[o], f.$tag$ !== d.$tag$ ? g = st(e && e[r], t, o, n) : (
|
2208
|
+
o >= 0 ? (f = e[o], f.$tag$ !== d.$tag$ ? g = st(e && e[r], t, o, n) : (he(f, d), e[o] = void 0, g = f.$elm$), d = s[++r]) : (g = st(e && e[r], t, r, n), d = s[++r]), g && di(c.$elm$).insertBefore(g, hn(c.$elm$));
|
2307
2209
|
}
|
2308
|
-
i > l ?
|
2309
|
-
}, We = (n, e) => n.$tag$ === e.$tag$ ? n.$tag$ === "slot" ? n.$name$ === e.$name$ : n.$key$ === e.$key$ : !1,
|
2210
|
+
i > l ? ui(n, s[h + 1] == null ? null : s[h + 1].$elm$, t, s, r, h) : r > h && hi(e, i, l);
|
2211
|
+
}, We = (n, e) => n.$tag$ === e.$tag$ ? n.$tag$ === "slot" ? n.$name$ === e.$name$ : n.$key$ === e.$key$ : !1, hn = (n) => n && n["s-ol"] || n, di = (n) => (n["s-ol"] ? n["s-ol"] : n).parentNode, he = (n, e) => {
|
2310
2212
|
const t = e.$elm$ = n.$elm$, s = n.$children$, i = e.$children$, r = e.$tag$, o = e.$text$;
|
2311
2213
|
let a;
|
2312
|
-
o === null ? (R = r === "svg" ? !0 : r === "foreignObject" ? !1 : R, r === "slot" ||
|
2313
|
-
},
|
2214
|
+
o === null ? (R = r === "svg" ? !0 : r === "foreignObject" ? !1 : R, r === "slot" || ci(n, e, R), s !== null && i !== null ? Io(t, s, e, i) : i !== null ? (n.$text$ !== null && (t.textContent = ""), ui(t, null, e, i, 0, i.length - 1)) : s !== null && hi(s, 0, s.length - 1), R && r === "svg" && (R = !1)) : (a = t["s-cr"]) ? a.parentNode.textContent = o : n.$text$ !== o && (t.data = o);
|
2215
|
+
}, pi = (n) => {
|
2314
2216
|
let e = n.childNodes, t, s, i, r, o, a;
|
2315
2217
|
for (s = 0, i = e.length; s < i; s++)
|
2316
2218
|
if (t = e[s], t.nodeType === 1) {
|
@@ -2326,54 +2228,54 @@ const yt = typeof window < "u" ? window : {}, N = yt.document || { head: {} }, c
|
|
2326
2228
|
break;
|
2327
2229
|
}
|
2328
2230
|
}
|
2329
|
-
|
2231
|
+
pi(t);
|
2330
2232
|
}
|
2331
|
-
}, M = [],
|
2233
|
+
}, M = [], fi = (n) => {
|
2332
2234
|
let e, t, s, i, r, o, a = 0, l = n.childNodes, c = l.length;
|
2333
2235
|
for (; a < c; a++) {
|
2334
2236
|
if (e = l[a], e["s-sr"] && (t = e["s-cr"]) && t.parentNode)
|
2335
2237
|
for (s = t.parentNode.childNodes, i = e["s-sn"], o = s.length - 1; o >= 0; o--)
|
2336
|
-
t = s[o], !t["s-cn"] && !t["s-nr"] && t["s-hn"] !== e["s-hn"] && (
|
2238
|
+
t = s[o], !t["s-cn"] && !t["s-nr"] && t["s-hn"] !== e["s-hn"] && (ls(t, i) ? (r = M.find((u) => u.$nodeToRelocate$ === t), tt = !0, t["s-sn"] = t["s-sn"] || i, r ? r.$slotRefNode$ = e : M.push({
|
2337
2239
|
$slotRefNode$: e,
|
2338
2240
|
$nodeToRelocate$: t
|
2339
|
-
}), t["s-sr"] && M.map((
|
2340
|
-
|
2341
|
-
})) : M.some((
|
2241
|
+
}), t["s-sr"] && M.map((u) => {
|
2242
|
+
ls(u.$nodeToRelocate$, t["s-sn"]) && (r = M.find((h) => h.$nodeToRelocate$ === t), r && !u.$slotRefNode$ && (u.$slotRefNode$ = r.$slotRefNode$));
|
2243
|
+
})) : M.some((u) => u.$nodeToRelocate$ === t) || M.push({
|
2342
2244
|
$nodeToRelocate$: t
|
2343
2245
|
}));
|
2344
|
-
e.nodeType === 1 &&
|
2246
|
+
e.nodeType === 1 && fi(e);
|
2345
2247
|
}
|
2346
|
-
},
|
2347
|
-
n.$attrs$ && n.$attrs$.ref && n.$attrs$.ref(null), n.$children$ && n.$children$.map(
|
2248
|
+
}, ls = (n, e) => n.nodeType === 1 ? n.getAttribute("slot") === null && e === "" || n.getAttribute("slot") === e : n["s-sn"] === e ? !0 : e === "", gi = (n) => {
|
2249
|
+
n.$attrs$ && n.$attrs$.ref && n.$attrs$.ref(null), n.$children$ && n.$children$.map(gi);
|
2348
2250
|
}, Mo = (n, e) => {
|
2349
|
-
const t = n.$hostElement$, s = n.$cmpMeta$, i = n.$vnode$ || nt(null, null), r =
|
2350
|
-
|
2251
|
+
const t = n.$hostElement$, s = n.$cmpMeta$, i = n.$vnode$ || nt(null, null), r = To(e) ? e : fe(null, null, e);
|
2252
|
+
vt = t.tagName, s.$attrsToReflect$ && (r.$attrs$ = r.$attrs$ || {}, s.$attrsToReflect$.map(([o, a]) => r.$attrs$[a] = t[o])), r.$tag$ = null, r.$flags$ |= 4, n.$vnode$ = r, r.$elm$ = i.$elm$ = t.shadowRoot || t, ue = t["s-sc"], ii = t["s-cr"], ri = (s.$flags$ & 1) !== 0, tt = !1, he(i, r);
|
2351
2253
|
{
|
2352
|
-
if (E.$flags$ |= 1,
|
2353
|
-
|
2354
|
-
let o, a, l, c,
|
2254
|
+
if (E.$flags$ |= 1, ln) {
|
2255
|
+
fi(r.$elm$);
|
2256
|
+
let o, a, l, c, u, h, d = 0;
|
2355
2257
|
for (; d < M.length; d++)
|
2356
2258
|
o = M[d], a = o.$nodeToRelocate$, a["s-ol"] || (l = N.createTextNode(""), l["s-nr"] = a, a.parentNode.insertBefore(a["s-ol"] = l, a));
|
2357
2259
|
for (d = 0; d < M.length; d++)
|
2358
2260
|
if (o = M[d], a = o.$nodeToRelocate$, o.$slotRefNode$) {
|
2359
|
-
for (c = o.$slotRefNode$.parentNode,
|
2360
|
-
if (
|
2361
|
-
|
2261
|
+
for (c = o.$slotRefNode$.parentNode, u = o.$slotRefNode$.nextSibling, l = a["s-ol"]; l = l.previousSibling; )
|
2262
|
+
if (h = l["s-nr"], h && h["s-sn"] === a["s-sn"] && c === h.parentNode && (h = h.nextSibling, !h || !h["s-nr"])) {
|
2263
|
+
u = h;
|
2362
2264
|
break;
|
2363
2265
|
}
|
2364
|
-
(!
|
2266
|
+
(!u && c !== a.parentNode || a.nextSibling !== u) && a !== u && (!a["s-hn"] && a["s-ol"] && (a["s-hn"] = a["s-ol"].parentNode.nodeName), c.insertBefore(a, u));
|
2365
2267
|
} else
|
2366
2268
|
a.nodeType === 1 && (a.hidden = !0);
|
2367
2269
|
}
|
2368
|
-
tt &&
|
2270
|
+
tt && pi(r.$elm$), E.$flags$ &= -2, M.length = 0;
|
2369
2271
|
}
|
2370
2272
|
}, zo = (n) => n, Uo = (n, e, t) => {
|
2371
2273
|
const s = zo(n);
|
2372
2274
|
return {
|
2373
2275
|
emit: (i) => Bo(s, e, {
|
2374
|
-
bubbles:
|
2375
|
-
composed:
|
2376
|
-
cancelable:
|
2276
|
+
bubbles: !0,
|
2277
|
+
composed: !0,
|
2278
|
+
cancelable: !0,
|
2377
2279
|
detail: i
|
2378
2280
|
})
|
2379
2281
|
};
|
@@ -2381,10 +2283,10 @@ const yt = typeof window < "u" ? window : {}, N = yt.document || { head: {} }, c
|
|
2381
2283
|
const s = E.ce(e, t);
|
2382
2284
|
return n.dispatchEvent(s), s;
|
2383
2285
|
}, jo = (n, e) => {
|
2384
|
-
},
|
2286
|
+
}, mi = (n, e) => (n.$flags$ |= 16, jo(n, n.$ancestorComponent$), sa(() => Ho(n, e))), Ho = (n, e) => {
|
2385
2287
|
const t = n.$hostElement$, s = re("scheduleUpdate", n.$cmpMeta$.$tagName$), i = t;
|
2386
2288
|
let r;
|
2387
|
-
return e ? r = ge(i, "componentWillLoad") : r = ge(i, "componentWillUpdate"), r =
|
2289
|
+
return e ? r = ge(i, "componentWillLoad") : r = ge(i, "componentWillUpdate"), r = cs(r, () => ge(i, "componentWillRender")), s(), cs(r, () => No(n, i, e));
|
2388
2290
|
}, No = async (n, e, t) => {
|
2389
2291
|
const s = n.$hostElement$, i = re("update", n.$cmpMeta$.$tagName$);
|
2390
2292
|
s["s-rc"], t && _o(n);
|
@@ -2392,11 +2294,11 @@ const yt = typeof window < "u" ? window : {}, N = yt.document || { head: {} }, c
|
|
2392
2294
|
Do(n, e, s), r(), i(), qo(n);
|
2393
2295
|
}, Do = (n, e, t) => {
|
2394
2296
|
try {
|
2395
|
-
|
2297
|
+
ts = e, e = e.render && e.render(), n.$flags$ &= -17, n.$flags$ |= 2, (ce.hasRenderFn || ce.reflect) && (ce.vdomRender || ce.reflect) && (ce.hydrateServerSide || Mo(n, e));
|
2396
2298
|
} catch (a) {
|
2397
2299
|
De(a, n.$hostElement$);
|
2398
2300
|
}
|
2399
|
-
return
|
2301
|
+
return ts = null, null;
|
2400
2302
|
}, qo = (n) => {
|
2401
2303
|
const e = n.$cmpMeta$.$tagName$, t = n.$hostElement$, s = re("postUpdate", e), i = t;
|
2402
2304
|
n.$ancestorComponent$, ge(i, "componentDidRender"), n.$flags$ & 64 ? (ge(i, "componentDidUpdate"), s()) : (n.$flags$ |= 64, ge(i, "componentDidLoad"), s());
|
@@ -2407,7 +2309,7 @@ const yt = typeof window < "u" ? window : {}, N = yt.document || { head: {} }, c
|
|
2407
2309
|
} catch (s) {
|
2408
2310
|
De(s);
|
2409
2311
|
}
|
2410
|
-
},
|
2312
|
+
}, cs = (n, e) => n && n.then ? n.then(e) : e(), Fo = (n, e) => n != null && !cn(n) ? e & 4 ? n === "false" ? !1 : n === "" || !!n : e & 2 ? parseFloat(n) : e & 1 ? String(n) : n : n, Zo = (n, e) => $t(n).$instanceValues$.get(e), Wo = (n, e, t, s) => {
|
2411
2313
|
const i = $t(n), r = n, o = i.$instanceValues$.get(e), a = i.$flags$, l = r;
|
2412
2314
|
t = Fo(t, s.$members$[e][0]);
|
2413
2315
|
const c = Number.isNaN(o) && Number.isNaN(t);
|
@@ -2415,8 +2317,8 @@ const yt = typeof window < "u" ? window : {}, N = yt.document || { head: {} }, c
|
|
2415
2317
|
i.$instanceValues$.set(e, t);
|
2416
2318
|
{
|
2417
2319
|
if (s.$watchers$ && a & 128) {
|
2418
|
-
const
|
2419
|
-
|
2320
|
+
const h = s.$watchers$[e];
|
2321
|
+
h && h.map((d) => {
|
2420
2322
|
try {
|
2421
2323
|
l[d](t, o, e);
|
2422
2324
|
} catch (p) {
|
@@ -2427,11 +2329,11 @@ const yt = typeof window < "u" ? window : {}, N = yt.document || { head: {} }, c
|
|
2427
2329
|
if ((a & 18) === 2) {
|
2428
2330
|
if (l.componentShouldUpdate && l.componentShouldUpdate(t, o, e) === !1)
|
2429
2331
|
return;
|
2430
|
-
|
2332
|
+
mi(i, !1);
|
2431
2333
|
}
|
2432
2334
|
}
|
2433
2335
|
}
|
2434
|
-
},
|
2336
|
+
}, Go = (n, e, t) => {
|
2435
2337
|
if (e.$members$) {
|
2436
2338
|
n.watchers && (e.$watchers$ = n.watchers);
|
2437
2339
|
const s = Object.entries(e.$members$), i = n.prototype;
|
@@ -2468,27 +2370,27 @@ const yt = typeof window < "u" ? window : {}, N = yt.document || { head: {} }, c
|
|
2468
2370
|
}
|
2469
2371
|
}
|
2470
2372
|
return n;
|
2471
|
-
},
|
2373
|
+
}, Yo = async (n, e, t, s, i) => {
|
2472
2374
|
if (!(e.$flags$ & 32) && (i = n.constructor, e.$flags$ |= 32, customElements.whenDefined(t.$tagName$).then(() => e.$flags$ |= 128), i.style)) {
|
2473
2375
|
let o = i.style;
|
2474
2376
|
typeof o != "string" && (o = o[e.$modeName$ = Co(n)]);
|
2475
|
-
const a =
|
2377
|
+
const a = li(t, e.$modeName$);
|
2476
2378
|
if (!it.has(a)) {
|
2477
2379
|
const l = re("registerStyles", t.$tagName$);
|
2478
2380
|
ko(a, o, !!(t.$flags$ & 1)), l();
|
2479
2381
|
}
|
2480
2382
|
}
|
2481
|
-
e.$ancestorComponent$,
|
2383
|
+
e.$ancestorComponent$, mi(e, !0);
|
2482
2384
|
}, Ko = (n) => {
|
2483
2385
|
}, Qo = (n) => {
|
2484
2386
|
if (!(E.$flags$ & 1)) {
|
2485
2387
|
const e = $t(n), t = e.$cmpMeta$, s = re("connectedCallback", t.$tagName$);
|
2486
|
-
e.$flags$ & 1 ? (
|
2388
|
+
e.$flags$ & 1 ? (ai(n, e, t.$listeners$), Ko(e.$lazyInstance$)) : (e.$flags$ |= 1, t.$flags$ & 12 && Xo(n), t.$members$ && Object.entries(t.$members$).map(([i, [r]]) => {
|
2487
2389
|
if (r & 31 && n.hasOwnProperty(i)) {
|
2488
2390
|
const o = n[i];
|
2489
2391
|
delete n[i], n[i] = o;
|
2490
2392
|
}
|
2491
|
-
}),
|
2393
|
+
}), Yo(n, e, t)), s();
|
2492
2394
|
}
|
2493
2395
|
}, Xo = (n) => {
|
2494
2396
|
const e = n["s-cr"] = N.createComment("");
|
@@ -2498,7 +2400,7 @@ const yt = typeof window < "u" ? window : {}, N = yt.document || { head: {} }, c
|
|
2498
2400
|
const e = $t(n);
|
2499
2401
|
e.$rmListeners$ && (e.$rmListeners$.map((t) => t()), e.$rmListeners$ = void 0);
|
2500
2402
|
}
|
2501
|
-
},
|
2403
|
+
}, bi = (n, e) => {
|
2502
2404
|
const t = {
|
2503
2405
|
$flags$: e[0],
|
2504
2406
|
$tagName$: e[1]
|
@@ -2521,18 +2423,18 @@ const yt = typeof window < "u" ? window : {}, N = yt.document || { head: {} }, c
|
|
2521
2423
|
delegatesFocus: !!(t.$flags$ & 16)
|
2522
2424
|
});
|
2523
2425
|
}
|
2524
|
-
}), n.is = t.$tagName$,
|
2525
|
-
},
|
2426
|
+
}), n.is = t.$tagName$, Go(n, t);
|
2427
|
+
}, vi = /* @__PURE__ */ new WeakMap(), $t = (n) => vi.get(n), Jo = (n, e) => {
|
2526
2428
|
const t = {
|
2527
2429
|
$flags$: 0,
|
2528
2430
|
$hostElement$: n,
|
2529
2431
|
$cmpMeta$: e,
|
2530
2432
|
$instanceValues$: /* @__PURE__ */ new Map()
|
2531
2433
|
};
|
2532
|
-
return
|
2533
|
-
}, us = (n, e) => e in n, De = (n, e) => (0, console.error)(n, e), it = /* @__PURE__ */ new Map(), ea = [],
|
2534
|
-
n.push(t),
|
2535
|
-
},
|
2434
|
+
return ai(n, t, e.$listeners$), vi.set(n, t);
|
2435
|
+
}, us = (n, e) => e in n, De = (n, e) => (0, console.error)(n, e), it = /* @__PURE__ */ new Map(), ea = [], hs = [], yi = [], ta = (n, e) => (t) => {
|
2436
|
+
n.push(t), qt || (qt = !0, e && E.$flags$ & 4 ? na(Ft) : E.raf(Ft));
|
2437
|
+
}, ds = (n) => {
|
2536
2438
|
for (let e = 0; e < n.length; e++)
|
2537
2439
|
try {
|
2538
2440
|
n[e](performance.now());
|
@@ -2540,9 +2442,9 @@ const yt = typeof window < "u" ? window : {}, N = yt.document || { head: {} }, c
|
|
2540
2442
|
De(t);
|
2541
2443
|
}
|
2542
2444
|
n.length = 0;
|
2543
|
-
},
|
2544
|
-
|
2545
|
-
}, na = (n) =>
|
2445
|
+
}, Ft = () => {
|
2446
|
+
ds(hs), ds(yi), (qt = hs.length > 0) && E.raf(Ft);
|
2447
|
+
}, na = (n) => vo().then(n), sa = /* @__PURE__ */ ta(yi, !0), ia = (n = {}) => {
|
2546
2448
|
const { content: e = "", title: t, attributes: s = [] } = n;
|
2547
2449
|
let i = "", r = [
|
2548
2450
|
{ name: "xmlns", value: "http://www.w3.org/2000/svg" },
|
@@ -2559,9 +2461,9 @@ class aa {
|
|
2559
2461
|
this.voca_component = e, this.voca_added = oa(/* @__PURE__ */ new Date());
|
2560
2462
|
}
|
2561
2463
|
}
|
2562
|
-
const la = "telia-vst{display:none}", ca = /* @__PURE__ */
|
2464
|
+
const la = "telia-vst{display:none}", ca = /* @__PURE__ */ bi(class extends oi {
|
2563
2465
|
constructor() {
|
2564
|
-
super(), this.__registerHost(), this.vocaInternalUStats = Uo(this, "vocaInternalUStats"
|
2466
|
+
super(), this.__registerHost(), this.vocaInternalUStats = Uo(this, "vocaInternalUStats");
|
2565
2467
|
}
|
2566
2468
|
connectedCallback() {
|
2567
2469
|
this.vocaInternalUStats.emit(new aa(this.dataTrackingId));
|
@@ -2575,7 +2477,7 @@ const la = "telia-vst{display:none}", ca = /* @__PURE__ */ $i(class extends ci {
|
|
2575
2477
|
}, [0, "telia-vst", {
|
2576
2478
|
dataTrackingId: [1, "data-tracking-id"]
|
2577
2479
|
}]);
|
2578
|
-
function
|
2480
|
+
function $i() {
|
2579
2481
|
if (typeof customElements > "u")
|
2580
2482
|
return;
|
2581
2483
|
["telia-vst"].forEach((e) => {
|
@@ -2586,18 +2488,18 @@ function ki() {
|
|
2586
2488
|
}
|
2587
2489
|
});
|
2588
2490
|
}
|
2589
|
-
|
2590
|
-
function
|
2491
|
+
$i();
|
2492
|
+
function Zt() {
|
2591
2493
|
return typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : { vocadsIcons: void 0, vocadsIconsRegistered: !1 };
|
2592
2494
|
}
|
2593
|
-
function ha() {
|
2594
|
-
if (typeof Wt().vocadsIcons !== void 0)
|
2595
|
-
return Wt().vocadsIcons;
|
2596
|
-
}
|
2597
2495
|
function ua() {
|
2598
|
-
|
2496
|
+
if (typeof Zt().vocadsIcons !== void 0)
|
2497
|
+
return Zt().vocadsIcons;
|
2599
2498
|
}
|
2600
|
-
|
2499
|
+
function ha() {
|
2500
|
+
return Zt().vocadsIconsRegistered;
|
2501
|
+
}
|
2502
|
+
const da = ".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))}", pa = /* @__PURE__ */ bi(class extends oi {
|
2601
2503
|
constructor() {
|
2602
2504
|
super(), this.__registerHost(), this.size = "md", this.allyTitle = null, this.dataTrackingId = "telia-icon";
|
2603
2505
|
}
|
@@ -2609,8 +2511,8 @@ const da = ".telia-icon{display:inline-block}.telia-icon__container{display:bloc
|
|
2609
2511
|
getSvgString() {
|
2610
2512
|
if (this.svg)
|
2611
2513
|
return this.svg;
|
2612
|
-
if (
|
2613
|
-
const n =
|
2514
|
+
if (ha() && this.name) {
|
2515
|
+
const n = ua();
|
2614
2516
|
return n[this.name] ? n[this.name].svg : "";
|
2615
2517
|
}
|
2616
2518
|
return this.name && console.warn(this.name, "Icons bundle is not registered and will not be rendered. Check if you have registered icons bundle or use svg property"), "";
|
@@ -2647,7 +2549,7 @@ function fa() {
|
|
2647
2549
|
customElements.get(e) || customElements.define(e, pa);
|
2648
2550
|
break;
|
2649
2551
|
case "telia-vst":
|
2650
|
-
customElements.get(e) ||
|
2552
|
+
customElements.get(e) || $i();
|
2651
2553
|
break;
|
2652
2554
|
}
|
2653
2555
|
});
|
@@ -2658,7 +2560,7 @@ fa();
|
|
2658
2560
|
* Copyright 2017 Google LLC
|
2659
2561
|
* SPDX-License-Identifier: BSD-3-Clause
|
2660
2562
|
*/
|
2661
|
-
const ga = { attribute: !0, type: String, converter: Je, reflect: !1, hasChanged:
|
2563
|
+
const ga = { attribute: !0, type: String, converter: Je, reflect: !1, hasChanged: on }, ma = (n = ga, e, t) => {
|
2662
2564
|
const { kind: s, metadata: i } = t;
|
2663
2565
|
let r = globalThis.litPropertyMetadata.get(i);
|
2664
2566
|
if (r === void 0 && globalThis.litPropertyMetadata.set(i, r = /* @__PURE__ */ new Map()), r.set(t.name, n), s === "accessor") {
|
@@ -2698,14 +2600,14 @@ function C(n) {
|
|
2698
2600
|
* Copyright 2020 Google LLC
|
2699
2601
|
* SPDX-License-Identifier: BSD-3-Clause
|
2700
2602
|
*/
|
2701
|
-
const
|
2603
|
+
const ba = (n) => n.strings === void 0;
|
2702
2604
|
/**
|
2703
2605
|
* @license
|
2704
2606
|
* Copyright 2017 Google LLC
|
2705
2607
|
* SPDX-License-Identifier: BSD-3-Clause
|
2706
2608
|
*/
|
2707
|
-
const xt = { ATTRIBUTE: 1, CHILD: 2
|
2708
|
-
let
|
2609
|
+
const xt = { ATTRIBUTE: 1, CHILD: 2 }, wt = (n) => (...e) => ({ _$litDirective$: n, values: e });
|
2610
|
+
let dn = class {
|
2709
2611
|
constructor(e) {
|
2710
2612
|
}
|
2711
2613
|
get _$AU() {
|
@@ -2738,7 +2640,7 @@ const Ee = (n, e) => {
|
|
2738
2640
|
if ((e = n._$AM) === void 0) break;
|
2739
2641
|
t = e._$AN, t.delete(n), n = e;
|
2740
2642
|
} while ((t == null ? void 0 : t.size) === 0);
|
2741
|
-
},
|
2643
|
+
}, xi = (n) => {
|
2742
2644
|
for (let e; e = n._$AM; n = e) {
|
2743
2645
|
let t = e._$AN;
|
2744
2646
|
if (t === void 0) e._$AN = t = /* @__PURE__ */ new Set();
|
@@ -2746,8 +2648,8 @@ const Ee = (n, e) => {
|
|
2746
2648
|
t.add(n), $a(e);
|
2747
2649
|
}
|
2748
2650
|
};
|
2749
|
-
function
|
2750
|
-
this._$AN !== void 0 ? (rt(this), this._$AM = n,
|
2651
|
+
function va(n) {
|
2652
|
+
this._$AN !== void 0 ? (rt(this), this._$AM = n, xi(this)) : this._$AM = n;
|
2751
2653
|
}
|
2752
2654
|
function ya(n, e = !1, t = 0) {
|
2753
2655
|
const s = this._$AH, i = this._$AN;
|
@@ -2756,21 +2658,21 @@ function ya(n, e = !1, t = 0) {
|
|
2756
2658
|
else Ee(this, n);
|
2757
2659
|
}
|
2758
2660
|
const $a = (n) => {
|
2759
|
-
n.type == xt.CHILD && (n._$AP ?? (n._$AP = ya), n._$AQ ?? (n._$AQ =
|
2661
|
+
n.type == xt.CHILD && (n._$AP ?? (n._$AP = ya), n._$AQ ?? (n._$AQ = va));
|
2760
2662
|
};
|
2761
|
-
let
|
2663
|
+
let wi = class extends dn {
|
2762
2664
|
constructor() {
|
2763
2665
|
super(...arguments), this._$AN = void 0;
|
2764
2666
|
}
|
2765
2667
|
_$AT(e, t, s) {
|
2766
|
-
super._$AT(e, t, s),
|
2668
|
+
super._$AT(e, t, s), xi(this), this.isConnected = e._$AU;
|
2767
2669
|
}
|
2768
2670
|
_$AO(e, t = !0) {
|
2769
2671
|
var s, i;
|
2770
2672
|
e !== this.isConnected && (this.isConnected = e, e ? (s = this.reconnected) == null || s.call(this) : (i = this.disconnected) == null || i.call(this)), t && (Ee(this, e), rt(this));
|
2771
2673
|
}
|
2772
2674
|
setValue(e) {
|
2773
|
-
if (
|
2675
|
+
if (ba(this._$Ct)) this._$Ct._$AI(e, this);
|
2774
2676
|
else {
|
2775
2677
|
const t = [...this._$Ct._$AH];
|
2776
2678
|
t[this._$Ci] = e, this._$Ct._$AI(t, this, 0);
|
@@ -2789,7 +2691,7 @@ let _i = class extends pn {
|
|
2789
2691
|
const B = () => new xa();
|
2790
2692
|
class xa {
|
2791
2693
|
}
|
2792
|
-
const
|
2694
|
+
const Rt = /* @__PURE__ */ new WeakMap(), j = wt(class extends wi {
|
2793
2695
|
render(n) {
|
2794
2696
|
return m;
|
2795
2697
|
}
|
@@ -2801,13 +2703,13 @@ const Pt = /* @__PURE__ */ new WeakMap(), j = wt(class extends _i {
|
|
2801
2703
|
rt(n) {
|
2802
2704
|
if (this.isConnected || (n = void 0), typeof this.Y == "function") {
|
2803
2705
|
const e = this.ht ?? globalThis;
|
2804
|
-
let t =
|
2805
|
-
t === void 0 && (t = /* @__PURE__ */ new WeakMap(),
|
2706
|
+
let t = Rt.get(e);
|
2707
|
+
t === void 0 && (t = /* @__PURE__ */ new WeakMap(), Rt.set(e, t)), t.get(this.Y) !== void 0 && this.Y.call(this.ht, void 0), t.set(this.Y, n), n !== void 0 && this.Y.call(this.ht, n);
|
2806
2708
|
} else this.Y.value = n;
|
2807
2709
|
}
|
2808
2710
|
get lt() {
|
2809
2711
|
var n, e;
|
2810
|
-
return typeof this.Y == "function" ? (n =
|
2712
|
+
return typeof this.Y == "function" ? (n = Rt.get(this.ht ?? globalThis)) == null ? void 0 : n.get(this.Y) : (e = this.Y) == null ? void 0 : e.value;
|
2811
2713
|
}
|
2812
2714
|
disconnected() {
|
2813
2715
|
this.lt === this.ct && this.rt(void 0);
|
@@ -2821,7 +2723,7 @@ const Pt = /* @__PURE__ */ new WeakMap(), j = wt(class extends _i {
|
|
2821
2723
|
* Copyright 2018 Google LLC
|
2822
2724
|
* SPDX-License-Identifier: BSD-3-Clause
|
2823
2725
|
*/
|
2824
|
-
const ye = wt(class extends
|
2726
|
+
const ye = wt(class extends dn {
|
2825
2727
|
constructor(n) {
|
2826
2728
|
var e;
|
2827
2729
|
if (super(n), n.type !== xt.ATTRIBUTE || n.name !== "class" || ((e = n.strings) == null ? void 0 : e.length) > 2) throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
|
@@ -2850,7 +2752,7 @@ var wa = Object.defineProperty, ka = (n, e, t, s) => {
|
|
2850
2752
|
(o = n[r]) && (i = o(e, t, i) || i);
|
2851
2753
|
return i && wa(e, t, i), i;
|
2852
2754
|
};
|
2853
|
-
const
|
2755
|
+
const wn = class wn extends S {
|
2854
2756
|
constructor() {
|
2855
2757
|
super(...arguments), this.anchor = "BottomRight";
|
2856
2758
|
}
|
@@ -2862,8 +2764,8 @@ const kn = class kn extends S {
|
|
2862
2764
|
return this.anchor === "BottomLeft" ? this.renderRoot.host.classList.add("bottom-left") : this.anchor === "BottomRight" && this.renderRoot.host.classList.add("bottom-right"), m;
|
2863
2765
|
}
|
2864
2766
|
};
|
2865
|
-
|
2866
|
-
|
2767
|
+
wn.styles = [
|
2768
|
+
T`
|
2867
2769
|
:host {
|
2868
2770
|
position: fixed;
|
2869
2771
|
display: flex;
|
@@ -2881,19 +2783,19 @@ kn.styles = [
|
|
2881
2783
|
}
|
2882
2784
|
`
|
2883
2785
|
];
|
2884
|
-
let ot =
|
2786
|
+
let ot = wn;
|
2885
2787
|
ka([
|
2886
2788
|
w({ attribute: !0 })
|
2887
2789
|
], ot.prototype, "anchor");
|
2888
2790
|
const Sa = /* @__PURE__ */ new WeakMap();
|
2889
|
-
let
|
2890
|
-
const
|
2791
|
+
let ps = 0;
|
2792
|
+
const Pt = /* @__PURE__ */ new Map(), fs = /* @__PURE__ */ new WeakSet(), gs = () => new Promise((n) => requestAnimationFrame(n)), _a = [{ transform: "translateX(100%) scale(0)", opacity: 0 }], Ca = [{ opacity: 0 }], ms = [{ opacity: 0 }, { opacity: 1 }], bs = (n, e) => {
|
2891
2793
|
const t = n - e;
|
2892
2794
|
return t === 0 ? void 0 : t;
|
2893
|
-
},
|
2795
|
+
}, vs = (n, e) => {
|
2894
2796
|
const t = n / e;
|
2895
2797
|
return t === 1 ? void 0 : t;
|
2896
|
-
},
|
2798
|
+
}, Ot = { left: (n, e) => {
|
2897
2799
|
const t = bs(n, e);
|
2898
2800
|
return { value: t, transform: t == null || isNaN(t) ? void 0 : `translateX(${t}px)` };
|
2899
2801
|
}, top: (n, e) => {
|
@@ -2902,15 +2804,15 @@ const Ot = /* @__PURE__ */ new Map(), gs = /* @__PURE__ */ new WeakSet(), ms = (
|
|
2902
2804
|
}, width: (n, e) => {
|
2903
2805
|
let t;
|
2904
2806
|
e === 0 && (e = 1, t = { width: "1px" });
|
2905
|
-
const s =
|
2807
|
+
const s = vs(n, e);
|
2906
2808
|
return { value: s, overrideFrom: t, transform: s == null || isNaN(s) ? void 0 : `scaleX(${s})` };
|
2907
2809
|
}, height: (n, e) => {
|
2908
2810
|
let t;
|
2909
2811
|
e === 0 && (e = 1, t = { height: "1px" });
|
2910
|
-
const s =
|
2812
|
+
const s = vs(n, e);
|
2911
2813
|
return { value: s, overrideFrom: t, transform: s == null || isNaN(s) ? void 0 : `scaleY(${s})` };
|
2912
|
-
} }, Aa = { duration: 333, easing: "ease-in-out" }, Ea = ["left", "top", "width", "height", "opacity", "color", "background"],
|
2913
|
-
class
|
2814
|
+
} }, Aa = { duration: 333, easing: "ease-in-out" }, Ea = ["left", "top", "width", "height", "opacity", "color", "background"], ys = /* @__PURE__ */ new WeakMap();
|
2815
|
+
class La extends wi {
|
2914
2816
|
constructor(e) {
|
2915
2817
|
if (super(e), this.t = !1, this.i = null, this.o = null, this.h = !0, this.shouldLog = !1, e.type === xt.CHILD) throw Error("The `animate` directive must be used in attribute position.");
|
2916
2818
|
this.createFinished();
|
@@ -2938,7 +2840,7 @@ class Ta extends _i {
|
|
2938
2840
|
update(e, [t]) {
|
2939
2841
|
var i;
|
2940
2842
|
const s = this.u === void 0;
|
2941
|
-
return s && (this.u = (i = e.options) == null ? void 0 : i.host, this.u.addController(this), this.u.updateComplete.then((r) => this.t = !0), this.element = e.element,
|
2843
|
+
return s && (this.u = (i = e.options) == null ? void 0 : i.host, this.u.addController(this), this.u.updateComplete.then((r) => this.t = !0), this.element = e.element, ys.set(this.element, this)), this.optionsOrCallback = t, (s || typeof t != "function") && this.p(t), this.render(t);
|
2942
2844
|
}
|
2943
2845
|
p(e) {
|
2944
2846
|
e = e ?? {};
|
@@ -2948,7 +2850,7 @@ class Ta extends _i {
|
|
2948
2850
|
m() {
|
2949
2851
|
const e = {}, t = this.element.getBoundingClientRect(), s = getComputedStyle(this.element);
|
2950
2852
|
return this.options.properties.forEach((i) => {
|
2951
|
-
const r = t[i] ?? (
|
2853
|
+
const r = t[i] ?? (Ot[i] ? void 0 : s[i]), o = Number(r);
|
2952
2854
|
e[i] = isNaN(o) ? r + "" : o;
|
2953
2855
|
}), e;
|
2954
2856
|
}
|
@@ -2967,17 +2869,17 @@ class Ta extends _i {
|
|
2967
2869
|
async hostUpdated() {
|
2968
2870
|
if (!this.h || !this.element.isConnected || this.options.skipInitial && !this.isHostRendered) return;
|
2969
2871
|
let e;
|
2970
|
-
this.prepare(), await
|
2872
|
+
this.prepare(), await gs;
|
2971
2873
|
const t = this.O(), s = this.j(this.options.keyframeOptions, t), i = this.m();
|
2972
2874
|
if (this.A !== void 0) {
|
2973
2875
|
const { from: r, to: o } = this.N(this.A, i, t);
|
2974
2876
|
this.log("measured", [this.A, i, r, o]), e = this.calculateKeyframes(r, o);
|
2975
2877
|
} else {
|
2976
|
-
const r =
|
2878
|
+
const r = Pt.get(this.options.inId);
|
2977
2879
|
if (r) {
|
2978
|
-
|
2880
|
+
Pt.delete(this.options.inId);
|
2979
2881
|
const { from: o, to: a } = this.N(r, i, t);
|
2980
|
-
e = this.calculateKeyframes(o, a), e = this.options.in ? [{ ...this.options.in[0], ...e[0] }, ...this.options.in.slice(1), e[1]] : e,
|
2882
|
+
e = this.calculateKeyframes(o, a), e = this.options.in ? [{ ...this.options.in[0], ...e[0] }, ...this.options.in.slice(1), e[1]] : e, ps++, e.forEach((l) => l.zIndex = ps);
|
2981
2883
|
} else this.options.in && (e = [...this.options.in, {}]);
|
2982
2884
|
}
|
2983
2885
|
this.animate(e, s);
|
@@ -2993,8 +2895,8 @@ class Ta extends _i {
|
|
2993
2895
|
}
|
2994
2896
|
async disconnected() {
|
2995
2897
|
var t;
|
2996
|
-
if (!this.h || (this.options.id !== void 0 &&
|
2997
|
-
if (this.prepare(), await
|
2898
|
+
if (!this.h || (this.options.id !== void 0 && Pt.set(this.options.id, this.A), this.options.out === void 0)) return;
|
2899
|
+
if (this.prepare(), await gs(), (t = this.i) == null ? void 0 : t.isConnected) {
|
2998
2900
|
const s = this.o && this.o.parentNode === this.i ? this.o : null;
|
2999
2901
|
if (this.i.insertBefore(this.element, s), this.options.stabilizeOut) {
|
3000
2902
|
const i = this.m();
|
@@ -3020,15 +2922,15 @@ class Ta extends _i {
|
|
3020
2922
|
O() {
|
3021
2923
|
const e = [];
|
3022
2924
|
for (let t = this.element.parentNode; t; t = t == null ? void 0 : t.parentNode) {
|
3023
|
-
const s =
|
2925
|
+
const s = ys.get(t);
|
3024
2926
|
s && !s.isDisabled() && s && e.push(s);
|
3025
2927
|
}
|
3026
2928
|
return e;
|
3027
2929
|
}
|
3028
2930
|
get isHostRendered() {
|
3029
|
-
const e =
|
2931
|
+
const e = fs.has(this.u);
|
3030
2932
|
return e || this.u.updateComplete.then(() => {
|
3031
|
-
|
2933
|
+
fs.add(this.u);
|
3032
2934
|
}), e;
|
3033
2935
|
}
|
3034
2936
|
j(e, t = this.O()) {
|
@@ -3048,13 +2950,13 @@ class Ta extends _i {
|
|
3048
2950
|
let o = !1;
|
3049
2951
|
const a = {};
|
3050
2952
|
for (const l in t) {
|
3051
|
-
const c = e[l],
|
3052
|
-
if (l in
|
3053
|
-
const
|
3054
|
-
if (c === void 0 ||
|
3055
|
-
const d =
|
2953
|
+
const c = e[l], u = t[l];
|
2954
|
+
if (l in Ot) {
|
2955
|
+
const h = Ot[l];
|
2956
|
+
if (c === void 0 || u === void 0) continue;
|
2957
|
+
const d = h(c, u);
|
3056
2958
|
d.transform !== void 0 && (a[l] = d.value, o = !0, i.transform = `${i.transform ?? ""} ${d.transform}`, d.overrideFrom !== void 0 && Object.assign(i, d.overrideFrom));
|
3057
|
-
} else c !==
|
2959
|
+
} else c !== u && c !== void 0 && u !== void 0 && (o = !0, i[l] = c, r[l] = u);
|
3058
2960
|
}
|
3059
2961
|
return i.transformOrigin = r.transformOrigin = s ? "center center" : "top left", this.animatingProperties = a, o ? [i, r] : void 0;
|
3060
2962
|
}
|
@@ -3081,10 +2983,10 @@ class Ta extends _i {
|
|
3081
2983
|
this.shouldLog && !this.isDisabled() && console.log(e, this.options.id, t);
|
3082
2984
|
}
|
3083
2985
|
}
|
3084
|
-
const
|
2986
|
+
const Wt = wt(La), q = (n, e, t) => {
|
3085
2987
|
n && t.style.setProperty(e, n);
|
3086
|
-
},
|
3087
|
-
var t, s, i, r, o, a, l, c,
|
2988
|
+
}, ki = (n, e) => {
|
2989
|
+
var t, s, i, r, o, a, l, c, u;
|
3088
2990
|
q((t = n.colors) == null ? void 0 : t.primaryBackground, "--primary-background", e), q(
|
3089
2991
|
(s = n.colors) == null ? void 0 : s.textOnPrimaryBackground,
|
3090
2992
|
"--text-on-primary-background",
|
@@ -3113,14 +3015,14 @@ const Yt = wt(Ta), q = (n, e, t) => {
|
|
3113
3015
|
(c = n.colors) == null ? void 0 : c.interactiveTextOnPrimaryBackground,
|
3114
3016
|
"--interactive-text-on-primary-background",
|
3115
3017
|
e
|
3116
|
-
), q((
|
3018
|
+
), q((u = n.colors) == null ? void 0 : u.focusColor, "--focus-color", e);
|
3117
3019
|
};
|
3118
|
-
var
|
3020
|
+
var Ta = Object.defineProperty, qe = (n, e, t, s) => {
|
3119
3021
|
for (var i = void 0, r = n.length - 1, o; r >= 0; r--)
|
3120
3022
|
(o = n[r]) && (i = o(e, t, i) || i);
|
3121
|
-
return i &&
|
3023
|
+
return i && Ta(e, t, i), i;
|
3122
3024
|
};
|
3123
|
-
const
|
3025
|
+
const kn = class kn extends S {
|
3124
3026
|
constructor() {
|
3125
3027
|
super(...arguments), this.active = !1, this.triggerVisible = !0, this.loaded = !1, this.containerRef = B(), this.widgetActive$ = new H(!1), this.componentIsDestroyed$ = new _();
|
3126
3028
|
}
|
@@ -3157,23 +3059,23 @@ const Sn = class Sn extends S {
|
|
3157
3059
|
}
|
3158
3060
|
_applyBranding() {
|
3159
3061
|
var e;
|
3160
|
-
(e = this.application) != null && e.settings &&
|
3062
|
+
(e = this.application) != null && e.settings && ki(this.application.settings.branding, this);
|
3161
3063
|
}
|
3162
3064
|
async _renderSymbol() {
|
3163
3065
|
var a, l, c;
|
3164
3066
|
const e = (a = this.application) == null ? void 0 : a.branding(), t = (l = e == null ? void 0 : e.graphics) == null ? void 0 : l.trigger;
|
3165
3067
|
if (t)
|
3166
|
-
return
|
3068
|
+
return b` <img src=${t} class="trigger-icon" alt="" /> `;
|
3167
3069
|
const s = (c = this.application) == null ? void 0 : c.triggerIcon;
|
3168
3070
|
if (!s)
|
3169
3071
|
return m;
|
3170
|
-
const i = async (
|
3072
|
+
const i = async (u) => go, { type: r, content: o } = s;
|
3171
3073
|
switch (r) {
|
3172
3074
|
case "Telia": {
|
3173
|
-
const
|
3174
|
-
return
|
3075
|
+
const u = await i();
|
3076
|
+
return u ? b`<telia-icon
|
3175
3077
|
class="trigger-icon"
|
3176
|
-
svg=${
|
3078
|
+
svg=${u.svg}
|
3177
3079
|
size="lg"
|
3178
3080
|
></telia-icon>` : m;
|
3179
3081
|
}
|
@@ -3189,19 +3091,19 @@ const Sn = class Sn extends S {
|
|
3189
3091
|
}
|
3190
3092
|
render() {
|
3191
3093
|
var e, t, s, i;
|
3192
|
-
return
|
3094
|
+
return b`<div
|
3193
3095
|
class=${ye({
|
3194
3096
|
"trigger-container": !0,
|
3195
3097
|
hidden: !this.triggerVisible
|
3196
3098
|
})}
|
3197
3099
|
${j(this.containerRef)}
|
3198
3100
|
>
|
3199
|
-
${!this.active && ((i = (s = (t = (e = this.application) == null ? void 0 : e.settings) == null ? void 0 : t.branding) == null ? void 0 : s.other) != null && i.showButtonLabel) ?
|
3101
|
+
${!this.active && ((i = (s = (t = (e = this.application) == null ? void 0 : e.settings) == null ? void 0 : t.branding) == null ? void 0 : s.other) != null && i.showButtonLabel) ? b`
|
3200
3102
|
<button
|
3201
3103
|
label="${this.application.settings.branding.other.buttonLabelText ?? "Widget trigger"}"
|
3202
3104
|
class="trigger-label"
|
3203
3105
|
@click=${this.toggleActive}
|
3204
|
-
${
|
3106
|
+
${Wt({
|
3205
3107
|
keyframeOptions: {},
|
3206
3108
|
in: _a,
|
3207
3109
|
stabilizeOut: !0,
|
@@ -3253,8 +3155,8 @@ const Sn = class Sn extends S {
|
|
3253
3155
|
</div>`;
|
3254
3156
|
}
|
3255
3157
|
};
|
3256
|
-
|
3257
|
-
|
3158
|
+
kn.styles = [
|
3159
|
+
T`
|
3258
3160
|
:host {
|
3259
3161
|
--voca-rem-multiplier: 0.625;
|
3260
3162
|
--trigger-label-bg: #f5e0ff;
|
@@ -3385,7 +3287,7 @@ Sn.styles = [
|
|
3385
3287
|
}
|
3386
3288
|
`
|
3387
3289
|
];
|
3388
|
-
let F =
|
3290
|
+
let F = kn;
|
3389
3291
|
qe([
|
3390
3292
|
w({ attribute: !1 })
|
3391
3293
|
], F.prototype, "application");
|
@@ -3406,7 +3308,7 @@ var Ra = Object.defineProperty, te = (n, e, t, s) => {
|
|
3406
3308
|
(o = n[r]) && (i = o(e, t, i) || i);
|
3407
3309
|
return i && Ra(e, t, i), i;
|
3408
3310
|
};
|
3409
|
-
const
|
3311
|
+
const Si = (n) => {
|
3410
3312
|
const t = class t extends n {
|
3411
3313
|
constructor() {
|
3412
3314
|
super(...arguments), this.properties = {}, this.context = {}, this.layout = {}, this.nodes = [];
|
@@ -3432,7 +3334,7 @@ const Ai = (n) => {
|
|
3432
3334
|
};
|
3433
3335
|
t.styles = [
|
3434
3336
|
// (superClass as unknown as typeof LitElement).styles ?? [],
|
3435
|
-
|
3337
|
+
T`
|
3436
3338
|
:host {
|
3437
3339
|
font-family: var(--font-family);
|
3438
3340
|
grid-column: span var(--width);
|
@@ -3462,19 +3364,19 @@ const Ai = (n) => {
|
|
3462
3364
|
], e.prototype, "application"), te([
|
3463
3365
|
w({ attribute: !1 })
|
3464
3366
|
], e.prototype, "parent"), e;
|
3465
|
-
},
|
3367
|
+
}, Sn = class Sn extends Si(S) {
|
3466
3368
|
render() {
|
3467
|
-
return
|
3369
|
+
return b`Non resolved component`;
|
3468
3370
|
}
|
3469
3371
|
};
|
3470
|
-
|
3471
|
-
|
3372
|
+
Sn.styles = [
|
3373
|
+
T`
|
3472
3374
|
:host {
|
3473
3375
|
display: block;
|
3474
3376
|
}
|
3475
3377
|
`
|
3476
3378
|
];
|
3477
|
-
let Gt =
|
3379
|
+
let Gt = Sn;
|
3478
3380
|
/**
|
3479
3381
|
* @license
|
3480
3382
|
* Copyright 2021 Google LLC
|
@@ -3545,7 +3447,7 @@ let Ma = class extends Event {
|
|
3545
3447
|
super("context-provider", { bubbles: !0, composed: !0 }), this.context = e;
|
3546
3448
|
}
|
3547
3449
|
};
|
3548
|
-
class
|
3450
|
+
class $s extends Ia {
|
3549
3451
|
constructor(e, t, s) {
|
3550
3452
|
var i, r;
|
3551
3453
|
super(t.context !== void 0 ? t.initialValue : s), this.onContextRequest = (o) => {
|
@@ -3555,7 +3457,7 @@ class xs extends Ia {
|
|
3555
3457
|
const a = o.composedPath()[0];
|
3556
3458
|
if (o.context !== this.context || a === this.host) return;
|
3557
3459
|
const l = /* @__PURE__ */ new Set();
|
3558
|
-
for (const [c, { consumerHost:
|
3460
|
+
for (const [c, { consumerHost: u }] of this.subscriptions) l.has(c) || (l.add(c), u.dispatchEvent(new Oa(this.context, c, !0)));
|
3559
3461
|
o.stopPropagation();
|
3560
3462
|
}, 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);
|
3561
3463
|
}
|
@@ -3575,7 +3477,7 @@ function za({ context: n }) {
|
|
3575
3477
|
return (e, t) => {
|
3576
3478
|
const s = /* @__PURE__ */ new WeakMap();
|
3577
3479
|
if (typeof t == "object") return t.addInitializer(function() {
|
3578
|
-
s.set(this, new
|
3480
|
+
s.set(this, new $s(this, { context: n }));
|
3579
3481
|
}), { get() {
|
3580
3482
|
return e.get.call(this);
|
3581
3483
|
}, set(i) {
|
@@ -3587,7 +3489,7 @@ function za({ context: n }) {
|
|
3587
3489
|
} };
|
3588
3490
|
{
|
3589
3491
|
e.constructor.addInitializer((o) => {
|
3590
|
-
s.set(o, new
|
3492
|
+
s.set(o, new $s(o, { context: n }));
|
3591
3493
|
});
|
3592
3494
|
const i = Object.getOwnPropertyDescriptor(e, t);
|
3593
3495
|
let r;
|
@@ -3608,12 +3510,12 @@ function za({ context: n }) {
|
|
3608
3510
|
}
|
3609
3511
|
};
|
3610
3512
|
}
|
3611
|
-
var Ua = Object.defineProperty,
|
3513
|
+
var Ua = Object.defineProperty, _i = (n, e, t, s) => {
|
3612
3514
|
for (var i = void 0, r = n.length - 1, o; r >= 0; r--)
|
3613
3515
|
(o = n[r]) && (i = o(e, t, i) || i);
|
3614
3516
|
return i && Ua(e, t, i), i;
|
3615
3517
|
};
|
3616
|
-
const Ba = "application",
|
3518
|
+
const Ba = "application", _n = class _n extends S {
|
3617
3519
|
constructor() {
|
3618
3520
|
super(...arguments), this.nodes = [], this.wrapperRef = B(), this.fullscreen = !1;
|
3619
3521
|
}
|
@@ -3624,7 +3526,7 @@ const Ba = "application", Cn = class Cn extends S {
|
|
3624
3526
|
if (!this.wrapperRef.value)
|
3625
3527
|
return;
|
3626
3528
|
const e = this.application.settings;
|
3627
|
-
e != null && e.branding &&
|
3529
|
+
e != null && e.branding && ki(e.branding, this.wrapperRef.value);
|
3628
3530
|
}
|
3629
3531
|
applyStyles() {
|
3630
3532
|
if (!this.wrapperRef.value)
|
@@ -3640,12 +3542,12 @@ const Ba = "application", Cn = class Cn extends S {
|
|
3640
3542
|
render() {
|
3641
3543
|
var s, i;
|
3642
3544
|
const e = this.application.settings.components.conversation;
|
3643
|
-
return ((i = (s = e == null ? void 0 : e.properties) == null ? void 0 : s.chat) == null ? void 0 : i.isThirdPartyWidget) ? this.renderRoot.host.classList.add("third-party") : this.application.renderStrategy === Ie.Trigger && (this.renderRoot.host.classList.add("floating"), this.application.anchor === "BottomLeft" ? this.renderRoot.host.classList.add("bottom-left") : this.application.anchor === "BottomRight" && this.renderRoot.host.classList.add("bottom-right")), this.application.fullscreen && this.renderRoot.host.classList.add("fullscreen"), window.self !== window.top && this.renderRoot.host.classList.add("embedded"),
|
3545
|
+
return ((i = (s = e == null ? void 0 : e.properties) == null ? void 0 : s.chat) == null ? void 0 : i.isThirdPartyWidget) ? this.renderRoot.host.classList.add("third-party") : this.application.renderStrategy === Ie.Trigger && (this.renderRoot.host.classList.add("floating"), this.application.anchor === "BottomLeft" ? this.renderRoot.host.classList.add("bottom-left") : this.application.anchor === "BottomRight" && this.renderRoot.host.classList.add("bottom-right")), this.application.fullscreen && this.renderRoot.host.classList.add("fullscreen"), window.self !== window.top && this.renderRoot.host.classList.add("embedded"), b`<div class="widget-container" ${j(this.wrapperRef)}>
|
3644
3546
|
${Pa(this.nodes, (r) => r)}
|
3645
3547
|
</div>`;
|
3646
3548
|
}
|
3647
3549
|
};
|
3648
|
-
|
3550
|
+
_n.styles = T`
|
3649
3551
|
:host {
|
3650
3552
|
--font-family: TeliaSans, Helvetica, Arial, Lucida Grande, sans-serif;
|
3651
3553
|
--spacing-xs: 0.2rem;
|
@@ -3798,11 +3700,11 @@ Cn.styles = L`
|
|
3798
3700
|
animation: none;
|
3799
3701
|
}
|
3800
3702
|
`;
|
3801
|
-
let Me =
|
3802
|
-
|
3703
|
+
let Me = _n;
|
3704
|
+
_i([
|
3803
3705
|
w({ attribute: !0 })
|
3804
3706
|
], Me.prototype, "fullscreen");
|
3805
|
-
|
3707
|
+
_i([
|
3806
3708
|
w({ attribute: !1 }),
|
3807
3709
|
za({ context: Ba })
|
3808
3710
|
], Me.prototype, "application");
|
@@ -3844,13 +3746,13 @@ const pt = class pt {
|
|
3844
3746
|
}
|
3845
3747
|
};
|
3846
3748
|
pt.endpoint = "https://widgets.ace.teliacompany.net/api";
|
3847
|
-
let
|
3848
|
-
var ja = Object.defineProperty,
|
3749
|
+
let xs = pt;
|
3750
|
+
var ja = Object.defineProperty, pn = (n, e, t, s) => {
|
3849
3751
|
for (var i = void 0, r = n.length - 1, o; r >= 0; r--)
|
3850
3752
|
(o = n[r]) && (i = o(e, t, i) || i);
|
3851
3753
|
return i && ja(e, t, i), i;
|
3852
3754
|
};
|
3853
|
-
const
|
3755
|
+
const Cn = class Cn extends S {
|
3854
3756
|
constructor() {
|
3855
3757
|
super(), this.status = "deactivated", this.addEventListener("environment-created", this.onEnvironmentCreated);
|
3856
3758
|
}
|
@@ -3882,21 +3784,21 @@ const An = class An extends S {
|
|
3882
3784
|
return this.widget.render();
|
3883
3785
|
}
|
3884
3786
|
};
|
3885
|
-
|
3886
|
-
|
3787
|
+
Cn.styles = [
|
3788
|
+
T`
|
3887
3789
|
:host {
|
3888
3790
|
display: block;
|
3889
3791
|
}
|
3890
3792
|
`
|
3891
3793
|
];
|
3892
|
-
let $e =
|
3893
|
-
|
3794
|
+
let $e = Cn;
|
3795
|
+
pn([
|
3894
3796
|
w({ attribute: !0 })
|
3895
3797
|
], $e.prototype, "name");
|
3896
|
-
|
3798
|
+
pn([
|
3897
3799
|
C()
|
3898
3800
|
], $e.prototype, "widget");
|
3899
|
-
|
3801
|
+
pn([
|
3900
3802
|
C()
|
3901
3803
|
], $e.prototype, "status");
|
3902
3804
|
customElements.get("ace-trigger-slot") || customElements.define("ace-trigger-slot", ot);
|
@@ -3920,7 +3822,7 @@ class Ha {
|
|
3920
3822
|
return !!this.message;
|
3921
3823
|
}
|
3922
3824
|
}
|
3923
|
-
class
|
3825
|
+
class ws {
|
3924
3826
|
constructor(e, t, s, i, r) {
|
3925
3827
|
this.id = e, this.providerKey = t, this.providerOptions = s, this.component = r, this.provider$ = new H(null), this.entries$ = new H([]), this.removeEntryAction$ = new _(), this.kill$ = new _(), this.isTyping$ = new H(!1), this.data$ = new H({}), this.complete$ = this.provider$.pipe(
|
3926
3828
|
pe((l) => l ? l.onComplete() : He)
|
@@ -3930,9 +3832,9 @@ class ks {
|
|
3930
3832
|
throw new Error(`No provider with key "${t}" was found.`);
|
3931
3833
|
this.data$.next(i);
|
3932
3834
|
const a = o(this.component);
|
3933
|
-
this.provider$.next(a), a.actions().pipe(
|
3835
|
+
this.provider$.next(a), a.actions().pipe(jt(this.kill$)).subscribe((l) => {
|
3934
3836
|
this.write(l);
|
3935
|
-
}), a.isTyping().pipe(
|
3837
|
+
}), a.isTyping().pipe(jt(this.kill$)).subscribe((l) => {
|
3936
3838
|
this.isTyping$.next(l);
|
3937
3839
|
});
|
3938
3840
|
}
|
@@ -3960,14 +3862,14 @@ class ks {
|
|
3960
3862
|
};
|
3961
3863
|
}
|
3962
3864
|
write(e) {
|
3963
|
-
this._addEntryRemoveHandler(e), this.entries$.pipe(
|
3865
|
+
this._addEntryRemoveHandler(e), this.entries$.pipe(Bt(1)).subscribe((t) => {
|
3964
3866
|
this.entries$.next([...t, e]);
|
3965
3867
|
});
|
3966
3868
|
}
|
3967
3869
|
_addEntryRemoveHandler(e) {
|
3968
3870
|
e.remove$.pipe(
|
3969
3871
|
pe(() => this.entries$),
|
3970
|
-
|
3872
|
+
Bt(1)
|
3971
3873
|
).subscribe((t) => {
|
3972
3874
|
this.removeEntryAction$.next(e), this.entries$.next(t.filter((s) => s !== e));
|
3973
3875
|
});
|
@@ -4021,7 +3923,7 @@ class Na {
|
|
4021
3923
|
);
|
4022
3924
|
return e ? {
|
4023
3925
|
sessions: e.sessions.map(
|
4024
|
-
(t) => new
|
3926
|
+
(t) => new ws(
|
4025
3927
|
t.id,
|
4026
3928
|
t.providerKey,
|
4027
3929
|
t.providerOptions,
|
@@ -4058,8 +3960,8 @@ class Na {
|
|
4058
3960
|
this.storage.set("conversation", t);
|
4059
3961
|
}
|
4060
3962
|
_createNewSession(e, t = {}) {
|
4061
|
-
const s = this._getStoredSessions(), i = new
|
4062
|
-
|
3963
|
+
const s = this._getStoredSessions(), i = new ws(
|
3964
|
+
Qs(),
|
4063
3965
|
e,
|
4064
3966
|
t,
|
4065
3967
|
{},
|
@@ -4078,8 +3980,8 @@ class Da {
|
|
4078
3980
|
constructor(e, t) {
|
4079
3981
|
this.state$ = e, this.component = t, this.entries$ = new H([]), this.session = () => this.session$, this.isTyping = () => this.isTyping$, this.entries = () => this.entries$.asObservable(), this.sessionService = new Na(this.component), this.session$ = this.sessionService.currentSession(), this.isTyping$ = this.session$.pipe(
|
4080
3982
|
pe((s) => s ? s.provider$.pipe(
|
4081
|
-
pe((i) => i ? i.isTyping() :
|
4082
|
-
) :
|
3983
|
+
pe((i) => i ? i.isTyping() : Ut(!1))
|
3984
|
+
) : Ut(!1))
|
4083
3985
|
), e.subscribe((s) => {
|
4084
3986
|
switch (s) {
|
4085
3987
|
case "init":
|
@@ -4106,7 +4008,7 @@ class Da {
|
|
4106
4008
|
pe((e) => {
|
4107
4009
|
if (!e)
|
4108
4010
|
return He;
|
4109
|
-
const t = e.removeEntryAction$.pipe(
|
4011
|
+
const t = e.removeEntryAction$.pipe(Ht(this.entries$)).pipe(
|
4110
4012
|
Xe(([i, r]) => r.filter((o) => o.id !== i.id))
|
4111
4013
|
), s = e.entries().pipe(
|
4112
4014
|
Xe((i) => {
|
@@ -4130,7 +4032,7 @@ var qa = Object.defineProperty, Fa = (n, e, t, s) => {
|
|
4130
4032
|
(o = n[r]) && (i = o(e, t, i) || i);
|
4131
4033
|
return i && qa(e, t, i), i;
|
4132
4034
|
};
|
4133
|
-
const
|
4035
|
+
const An = class An extends S {
|
4134
4036
|
connectedCallback() {
|
4135
4037
|
var e;
|
4136
4038
|
super.connectedCallback(), (e = this.entry.didUpdate) == null || e.subscribe(() => {
|
@@ -4148,17 +4050,17 @@ const En = class En extends S {
|
|
4148
4050
|
if (!e && !t)
|
4149
4051
|
return m;
|
4150
4052
|
let s = "";
|
4151
|
-
return e ? t ? s = `${e}: ${this._getTimestamp(t)}` : s = e : t && (s = this._getTimestamp(t)),
|
4053
|
+
return e ? t ? s = `${e}: ${this._getTimestamp(t)}` : s = e : t && (s = this._getTimestamp(t)), b`<p class="conversation-timestamp">${s}</p>`;
|
4152
4054
|
}
|
4153
4055
|
_renderDeliveryStatus(e) {
|
4154
|
-
return e === "delivered" ?
|
4155
|
-
svg=${
|
4056
|
+
return e === "delivered" ? b`<telia-icon
|
4057
|
+
svg=${uo.svg}
|
4156
4058
|
size="sm"
|
4157
|
-
></telia-icon>` : e === "failed" ?
|
4059
|
+
></telia-icon>` : e === "failed" ? b`<telia-icon
|
4158
4060
|
svg=${co.svg}
|
4159
4061
|
size="sm"
|
4160
4062
|
title="Message could not be delivered"
|
4161
|
-
></telia-icon>` :
|
4063
|
+
></telia-icon>` : b`<telia-icon svg=${ho.svg} size="sm"></telia-icon>`;
|
4162
4064
|
}
|
4163
4065
|
_dispatchEntryAction(e) {
|
4164
4066
|
this.entry.actions$.next(e.detail);
|
@@ -4167,10 +4069,10 @@ const En = class En extends S {
|
|
4167
4069
|
var e, t;
|
4168
4070
|
switch (this.entry.type) {
|
4169
4071
|
case K.System:
|
4170
|
-
return
|
4072
|
+
return b`
|
4171
4073
|
<div class="conversation-system-message">
|
4172
4074
|
${this.entry.messages.map(
|
4173
|
-
(s) =>
|
4075
|
+
(s) => b`
|
4174
4076
|
<div class="message-container">
|
4175
4077
|
<div class="message-content">
|
4176
4078
|
<conversation-group
|
@@ -4185,19 +4087,19 @@ const En = class En extends S {
|
|
4185
4087
|
</div>
|
4186
4088
|
`;
|
4187
4089
|
case K.Agent:
|
4188
|
-
return
|
4090
|
+
return b`<div
|
4189
4091
|
class=${ye({
|
4190
4092
|
"conversation-agent-message": !0,
|
4191
4093
|
"has-avatar": !!((e = this.entry.sender) != null && e.avatar)
|
4192
4094
|
})}
|
4193
4095
|
>
|
4194
|
-
${typeof ((t = this.entry.sender) == null ? void 0 : t.avatar) == "string" ?
|
4096
|
+
${typeof ((t = this.entry.sender) == null ? void 0 : t.avatar) == "string" ? b`<div class="avatar">
|
4195
4097
|
<img src=${this.entry.sender.avatar} />
|
4196
4098
|
</div>` : m}
|
4197
4099
|
|
4198
4100
|
<div class="entry-content">
|
4199
4101
|
${this.entry.messages.map(
|
4200
|
-
(s) =>
|
4102
|
+
(s) => b`
|
4201
4103
|
<div class="message-container">
|
4202
4104
|
<div class="message-content">
|
4203
4105
|
<conversation-group .group=${s}></conversation-group>
|
@@ -4214,7 +4116,7 @@ const En = class En extends S {
|
|
4214
4116
|
</div>
|
4215
4117
|
</div>`;
|
4216
4118
|
case K.User:
|
4217
|
-
return
|
4119
|
+
return b`<div
|
4218
4120
|
class=${ye({
|
4219
4121
|
"conversation-user-message": !0,
|
4220
4122
|
"has-error": this.entry.status === "failed"
|
@@ -4222,7 +4124,7 @@ const En = class En extends S {
|
|
4222
4124
|
>
|
4223
4125
|
<div class="entry-content">
|
4224
4126
|
${this.entry.messages.map(
|
4225
|
-
(s) =>
|
4127
|
+
(s) => b`
|
4226
4128
|
<div class="message-container">
|
4227
4129
|
<div class="message-content">
|
4228
4130
|
<conversation-group .group=${s}></conversation-group>
|
@@ -4244,8 +4146,8 @@ const En = class En extends S {
|
|
4244
4146
|
}
|
4245
4147
|
}
|
4246
4148
|
};
|
4247
|
-
|
4248
|
-
|
4149
|
+
An.styles = [
|
4150
|
+
T`
|
4249
4151
|
:host {
|
4250
4152
|
box-sizing: border-box;
|
4251
4153
|
display: inline;
|
@@ -4367,16 +4269,16 @@ En.styles = [
|
|
4367
4269
|
}
|
4368
4270
|
`
|
4369
4271
|
];
|
4370
|
-
let at =
|
4272
|
+
let at = An;
|
4371
4273
|
Fa([
|
4372
4274
|
w({ attribute: !1 })
|
4373
4275
|
], at.prototype, "entry");
|
4374
|
-
var Za = Object.defineProperty,
|
4276
|
+
var Za = Object.defineProperty, Ci = (n, e, t, s) => {
|
4375
4277
|
for (var i = void 0, r = n.length - 1, o; r >= 0; r--)
|
4376
4278
|
(o = n[r]) && (i = o(e, t, i) || i);
|
4377
4279
|
return i && Za(e, t, i), i;
|
4378
4280
|
};
|
4379
|
-
const
|
4281
|
+
const En = class En extends S {
|
4380
4282
|
constructor() {
|
4381
4283
|
super(...arguments), this.entries = [], this.loading = !0;
|
4382
4284
|
}
|
@@ -4385,14 +4287,14 @@ const Tn = class Tn extends S {
|
|
4385
4287
|
this.dispatchEvent(t);
|
4386
4288
|
}
|
4387
4289
|
render() {
|
4388
|
-
return
|
4290
|
+
return b`<div class="conversation-feed">
|
4389
4291
|
${this.entries.map(
|
4390
|
-
(e) =>
|
4292
|
+
(e) => b`<div class="conversation-entry" tabindex="-1">
|
4391
4293
|
<conversation-entry
|
4392
4294
|
.entry=${e}
|
4393
|
-
${
|
4295
|
+
${Wt({
|
4394
4296
|
keyframeOptions: {},
|
4395
|
-
in:
|
4297
|
+
in: ms,
|
4396
4298
|
stabilizeOut: !0,
|
4397
4299
|
skipInitial: !1
|
4398
4300
|
})}
|
@@ -4400,10 +4302,10 @@ const Tn = class Tn extends S {
|
|
4400
4302
|
</conversation-entry>
|
4401
4303
|
</div>`
|
4402
4304
|
)}
|
4403
|
-
${this.loading ?
|
4404
|
-
${
|
4305
|
+
${this.loading ? b`<ace-typing-state
|
4306
|
+
${Wt({
|
4405
4307
|
keyframeOptions: {},
|
4406
|
-
in:
|
4308
|
+
in: ms,
|
4407
4309
|
out: Ca,
|
4408
4310
|
stabilizeOut: !0,
|
4409
4311
|
skipInitial: !1
|
@@ -4412,8 +4314,8 @@ const Tn = class Tn extends S {
|
|
4412
4314
|
</div>`;
|
4413
4315
|
}
|
4414
4316
|
};
|
4415
|
-
|
4416
|
-
|
4317
|
+
En.styles = [
|
4318
|
+
T`
|
4417
4319
|
:host {
|
4418
4320
|
display: block;
|
4419
4321
|
}
|
@@ -4431,11 +4333,11 @@ Tn.styles = [
|
|
4431
4333
|
}
|
4432
4334
|
`
|
4433
4335
|
];
|
4434
|
-
let ze =
|
4435
|
-
|
4336
|
+
let ze = En;
|
4337
|
+
Ci([
|
4436
4338
|
w({ attribute: !1 })
|
4437
4339
|
], ze.prototype, "entries");
|
4438
|
-
|
4340
|
+
Ci([
|
4439
4341
|
w({ type: Boolean })
|
4440
4342
|
], ze.prototype, "loading");
|
4441
4343
|
/**
|
@@ -4447,24 +4349,24 @@ const Wa = (n, e, t) => {
|
|
4447
4349
|
for (const s of e) if (s[0] === n) return (0, s[1])();
|
4448
4350
|
return t == null ? void 0 : t();
|
4449
4351
|
};
|
4450
|
-
var
|
4352
|
+
var Ga = Object.defineProperty, Ya = (n, e, t, s) => {
|
4451
4353
|
for (var i = void 0, r = n.length - 1, o; r >= 0; r--)
|
4452
4354
|
(o = n[r]) && (i = o(e, t, i) || i);
|
4453
|
-
return i &&
|
4355
|
+
return i && Ga(e, t, i), i;
|
4454
4356
|
};
|
4455
4357
|
const Ln = class Ln extends S {
|
4456
4358
|
render() {
|
4457
|
-
return
|
4359
|
+
return b`
|
4458
4360
|
<div class="message-group">
|
4459
4361
|
${this.group.items.map(
|
4460
|
-
([e, t, s]) =>
|
4362
|
+
([e, t, s]) => b`
|
4461
4363
|
${Wa(
|
4462
4364
|
e,
|
4463
4365
|
[
|
4464
|
-
["html", () =>
|
4366
|
+
["html", () => b`<message-type-html .message=${t} />`],
|
4465
4367
|
[
|
4466
4368
|
"markdown",
|
4467
|
-
() =>
|
4369
|
+
() => b`<message-type-markdown .message=${t} />`
|
4468
4370
|
]
|
4469
4371
|
],
|
4470
4372
|
() => {
|
@@ -4472,7 +4374,7 @@ const Ln = class Ln extends S {
|
|
4472
4374
|
if (!i)
|
4473
4375
|
return m;
|
4474
4376
|
const r = new i(s || null);
|
4475
|
-
return
|
4377
|
+
return b`${r}`;
|
4476
4378
|
}
|
4477
4379
|
)}
|
4478
4380
|
`
|
@@ -4482,7 +4384,7 @@ const Ln = class Ln extends S {
|
|
4482
4384
|
}
|
4483
4385
|
};
|
4484
4386
|
Ln.styles = [
|
4485
|
-
|
4387
|
+
T`
|
4486
4388
|
:host {
|
4487
4389
|
box-sizing: border-box;
|
4488
4390
|
display: block;
|
@@ -4498,20 +4400,20 @@ Ln.styles = [
|
|
4498
4400
|
`
|
4499
4401
|
];
|
4500
4402
|
let lt = Ln;
|
4501
|
-
|
4403
|
+
Ya([
|
4502
4404
|
w({ attribute: !1 })
|
4503
4405
|
], lt.prototype, "group");
|
4504
|
-
const
|
4406
|
+
const Tn = class Tn extends S {
|
4505
4407
|
render() {
|
4506
|
-
return
|
4408
|
+
return b`<div class="container">
|
4507
4409
|
<div class="dot"></div>
|
4508
4410
|
<div class="dot"></div>
|
4509
4411
|
<div class="dot"></div>
|
4510
4412
|
</div>`;
|
4511
4413
|
}
|
4512
4414
|
};
|
4513
|
-
|
4514
|
-
|
4415
|
+
Tn.styles = [
|
4416
|
+
T`
|
4515
4417
|
:host {
|
4516
4418
|
display: block;
|
4517
4419
|
}
|
@@ -4547,13 +4449,13 @@ Rn.styles = [
|
|
4547
4449
|
}
|
4548
4450
|
`
|
4549
4451
|
];
|
4550
|
-
let
|
4452
|
+
let Yt = Tn;
|
4551
4453
|
/**
|
4552
4454
|
* @license
|
4553
4455
|
* Copyright 2017 Google LLC
|
4554
4456
|
* SPDX-License-Identifier: BSD-3-Clause
|
4555
4457
|
*/
|
4556
|
-
class
|
4458
|
+
class Kt extends dn {
|
4557
4459
|
constructor(e) {
|
4558
4460
|
if (super(e), this.it = m, e.type !== xt.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
|
4559
4461
|
}
|
@@ -4567,22 +4469,22 @@ class Qt extends pn {
|
|
4567
4469
|
return t.raw = t, this._t = { _$litType$: this.constructor.resultType, strings: t, values: [] };
|
4568
4470
|
}
|
4569
4471
|
}
|
4570
|
-
|
4571
|
-
const Ka = wt(
|
4472
|
+
Kt.directiveName = "unsafeHTML", Kt.resultType = 1;
|
4473
|
+
const Ka = wt(Kt);
|
4572
4474
|
var Qa = Object.defineProperty, Xa = (n, e, t, s) => {
|
4573
4475
|
for (var i = void 0, r = n.length - 1, o; r >= 0; r--)
|
4574
4476
|
(o = n[r]) && (i = o(e, t, i) || i);
|
4575
4477
|
return i && Qa(e, t, i), i;
|
4576
4478
|
};
|
4577
|
-
const
|
4479
|
+
const Rn = class Rn extends S {
|
4578
4480
|
render() {
|
4579
|
-
return
|
4481
|
+
return b`<div class="message-type-html">
|
4580
4482
|
${Ka(this.message.content)}
|
4581
4483
|
</div>`;
|
4582
4484
|
}
|
4583
4485
|
};
|
4584
|
-
|
4585
|
-
|
4486
|
+
Rn.styles = [
|
4487
|
+
T`
|
4586
4488
|
:host {
|
4587
4489
|
box-sizing: border-box;
|
4588
4490
|
}
|
@@ -4618,11 +4520,11 @@ Pn.styles = [
|
|
4618
4520
|
}
|
4619
4521
|
`
|
4620
4522
|
];
|
4621
|
-
let ct =
|
4523
|
+
let ct = Rn;
|
4622
4524
|
Xa([
|
4623
4525
|
w({ attribute: !1 })
|
4624
4526
|
], ct.prototype, "message");
|
4625
|
-
function
|
4527
|
+
function fn() {
|
4626
4528
|
return {
|
4627
4529
|
async: !1,
|
4628
4530
|
breaks: !1,
|
@@ -4636,11 +4538,11 @@ function gn() {
|
|
4636
4538
|
walkTokens: null
|
4637
4539
|
};
|
4638
4540
|
}
|
4639
|
-
let ae =
|
4640
|
-
function
|
4541
|
+
let ae = fn();
|
4542
|
+
function Ai(n) {
|
4641
4543
|
ae = n;
|
4642
4544
|
}
|
4643
|
-
const
|
4545
|
+
const Le = { exec: () => null };
|
4644
4546
|
function y(n, e = "") {
|
4645
4547
|
let t = typeof n == "string" ? n : n.source;
|
4646
4548
|
const s = {
|
@@ -4709,7 +4611,7 @@ const A = {
|
|
4709
4611
|
fencesBeginRegex: (n) => new RegExp(`^ {0,${Math.min(3, n - 1)}}(?:\`\`\`|~~~)`),
|
4710
4612
|
headingBeginRegex: (n) => new RegExp(`^ {0,${Math.min(3, n - 1)}}#`),
|
4711
4613
|
htmlBeginRegex: (n) => new RegExp(`^ {0,${Math.min(3, n - 1)}}<(?:[a-z].*>|!--)`, "i")
|
4712
|
-
}, Va = /^(?:[ \t]*(?:\n|$))+/, Ja = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, el = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, Fe = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, tl = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,
|
4614
|
+
}, Va = /^(?:[ \t]*(?:\n|$))+/, Ja = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, el = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, Fe = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, tl = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, Ei = /(?:[*+-]|\d{1,9}[.)])/, Li = y(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g, Ei).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).getRegex(), gn = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, nl = /^[^\n]+/, mn = /(?!\s*\])(?:\\.|[^\[\]\\])+/, sl = y(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", mn).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), il = y(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, Ei).getRegex(), kt = "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", bn = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, rl = 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", bn).replace("tag", kt).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), Ti = y(gn).replace("hr", Fe).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", kt).getRegex(), ol = y(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", Ti).getRegex(), vn = {
|
4713
4615
|
blockquote: ol,
|
4714
4616
|
code: Ja,
|
4715
4617
|
def: sl,
|
@@ -4717,87 +4619,88 @@ const A = {
|
|
4717
4619
|
heading: tl,
|
4718
4620
|
hr: Fe,
|
4719
4621
|
html: rl,
|
4720
|
-
lheading:
|
4622
|
+
lheading: Li,
|
4721
4623
|
list: il,
|
4722
4624
|
newline: Va,
|
4723
|
-
paragraph:
|
4724
|
-
table:
|
4625
|
+
paragraph: Ti,
|
4626
|
+
table: Le,
|
4725
4627
|
text: nl
|
4726
|
-
},
|
4727
|
-
...
|
4728
|
-
table:
|
4729
|
-
paragraph: y(
|
4628
|
+
}, ks = y("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", Fe).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", kt).getRegex(), al = {
|
4629
|
+
...vn,
|
4630
|
+
table: ks,
|
4631
|
+
paragraph: y(gn).replace("hr", Fe).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", ks).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", kt).getRegex()
|
4730
4632
|
}, ll = {
|
4731
|
-
...
|
4633
|
+
...vn,
|
4732
4634
|
html: y(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", bn).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(),
|
4733
4635
|
def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,
|
4734
4636
|
heading: /^(#{1,6})(.*)(?:\n+|$)/,
|
4735
|
-
fences:
|
4637
|
+
fences: Le,
|
4736
4638
|
// fences not supported
|
4737
4639
|
lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
|
4738
|
-
paragraph: y(
|
4739
|
-
]`).replace("lheading",
|
4740
|
-
},
|
4741
|
-
_backpedal:
|
4640
|
+
paragraph: y(gn).replace("hr", Fe).replace("heading", ` *#{1,6} *[^
|
4641
|
+
]`).replace("lheading", Li).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
|
4642
|
+
}, cl = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, ul = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, Ri = /^( {2,}|\\)\n(?!\s*$)/, hl = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, St = /[\p{P}\p{S}]/u, yn = /[\s\p{P}\p{S}]/u, Pi = /[^\s\p{P}\p{S}]/u, dl = y(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, yn).getRegex(), Oi = /(?!~)[\p{P}\p{S}]/u, pl = /(?!~)[\s\p{P}\p{S}]/u, fl = /(?:[^\s\p{P}\p{S}]|~)/u, gl = /\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g, Ii = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, ml = y(Ii, "u").replace(/punct/g, St).getRegex(), bl = y(Ii, "u").replace(/punct/g, Oi).getRegex(), Mi = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", vl = y(Mi, "gu").replace(/notPunctSpace/g, Pi).replace(/punctSpace/g, yn).replace(/punct/g, St).getRegex(), yl = y(Mi, "gu").replace(/notPunctSpace/g, fl).replace(/punctSpace/g, pl).replace(/punct/g, Oi).getRegex(), $l = y("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, Pi).replace(/punctSpace/g, yn).replace(/punct/g, St).getRegex(), xl = y(/\\(punct)/, "gu").replace(/punct/g, St).getRegex(), wl = 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(), kl = y(bn).replace("(?:-->|$)", "-->").getRegex(), Sl = 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", kl).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), ut = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, _l = y(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label", ut).replace("href", /<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), zi = y(/^!?\[(label)\]\[(ref)\]/).replace("label", ut).replace("ref", mn).getRegex(), Ui = y(/^!?\[(ref)\](?:\[\])?/).replace("ref", mn).getRegex(), Cl = y("reflink|nolink(?!\\()", "g").replace("reflink", zi).replace("nolink", Ui).getRegex(), $n = {
|
4643
|
+
_backpedal: Le,
|
4742
4644
|
// only used for GFM url
|
4743
|
-
anyPunctuation:
|
4744
|
-
autolink:
|
4745
|
-
blockSkip:
|
4746
|
-
br:
|
4747
|
-
code:
|
4748
|
-
del:
|
4749
|
-
emStrongLDelim:
|
4750
|
-
emStrongRDelimAst:
|
4751
|
-
emStrongRDelimUnd:
|
4752
|
-
escape:
|
4753
|
-
link:
|
4754
|
-
nolink:
|
4755
|
-
punctuation:
|
4756
|
-
reflink:
|
4757
|
-
reflinkSearch:
|
4758
|
-
tag:
|
4645
|
+
anyPunctuation: xl,
|
4646
|
+
autolink: wl,
|
4647
|
+
blockSkip: gl,
|
4648
|
+
br: Ri,
|
4649
|
+
code: ul,
|
4650
|
+
del: Le,
|
4651
|
+
emStrongLDelim: ml,
|
4652
|
+
emStrongRDelimAst: vl,
|
4653
|
+
emStrongRDelimUnd: $l,
|
4654
|
+
escape: cl,
|
4655
|
+
link: _l,
|
4656
|
+
nolink: Ui,
|
4657
|
+
punctuation: dl,
|
4658
|
+
reflink: zi,
|
4659
|
+
reflinkSearch: Cl,
|
4660
|
+
tag: Sl,
|
4759
4661
|
text: hl,
|
4760
|
-
url:
|
4761
|
-
},
|
4762
|
-
|
4763
|
-
link: y(/^!?\[(label)\]\((.*?)\)/).replace("label",
|
4764
|
-
reflink: y(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",
|
4765
|
-
},
|
4766
|
-
|
4767
|
-
|
4662
|
+
url: Le
|
4663
|
+
}, Al = {
|
4664
|
+
...$n,
|
4665
|
+
link: y(/^!?\[(label)\]\((.*?)\)/).replace("label", ut).getRegex(),
|
4666
|
+
reflink: y(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", ut).getRegex()
|
4667
|
+
}, Qt = {
|
4668
|
+
...$n,
|
4669
|
+
emStrongRDelimAst: yl,
|
4670
|
+
emStrongLDelim: bl,
|
4768
4671
|
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(),
|
4769
4672
|
_backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,
|
4770
4673
|
del: /^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,
|
4771
4674
|
text: /^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/
|
4772
|
-
},
|
4773
|
-
...
|
4774
|
-
br: y(
|
4775
|
-
text: y(
|
4776
|
-
},
|
4777
|
-
normal:
|
4675
|
+
}, El = {
|
4676
|
+
...Qt,
|
4677
|
+
br: y(Ri).replace("{2,}", "*").getRegex(),
|
4678
|
+
text: y(Qt.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
|
4679
|
+
}, Ge = {
|
4680
|
+
normal: vn,
|
4778
4681
|
gfm: al,
|
4779
4682
|
pedantic: ll
|
4780
4683
|
}, Se = {
|
4781
|
-
normal:
|
4782
|
-
gfm:
|
4783
|
-
breaks:
|
4784
|
-
pedantic:
|
4785
|
-
},
|
4684
|
+
normal: $n,
|
4685
|
+
gfm: Qt,
|
4686
|
+
breaks: El,
|
4687
|
+
pedantic: Al
|
4688
|
+
}, Ll = {
|
4786
4689
|
"&": "&",
|
4787
4690
|
"<": "<",
|
4788
4691
|
">": ">",
|
4789
4692
|
'"': """,
|
4790
4693
|
"'": "'"
|
4791
|
-
},
|
4694
|
+
}, Ss = (n) => Ll[n];
|
4792
4695
|
function U(n, e) {
|
4793
4696
|
if (e) {
|
4794
4697
|
if (A.escapeTest.test(n))
|
4795
|
-
return n.replace(A.escapeReplace,
|
4698
|
+
return n.replace(A.escapeReplace, Ss);
|
4796
4699
|
} else if (A.escapeTestNoEncode.test(n))
|
4797
|
-
return n.replace(A.escapeReplaceNoEncode,
|
4700
|
+
return n.replace(A.escapeReplaceNoEncode, Ss);
|
4798
4701
|
return n;
|
4799
4702
|
}
|
4800
|
-
function
|
4703
|
+
function _s(n) {
|
4801
4704
|
try {
|
4802
4705
|
n = encodeURI(n).replace(A.percentDecode, "%");
|
4803
4706
|
} catch {
|
@@ -4805,11 +4708,11 @@ function Cs(n) {
|
|
4805
4708
|
}
|
4806
4709
|
return n;
|
4807
4710
|
}
|
4808
|
-
function
|
4711
|
+
function Cs(n, e) {
|
4809
4712
|
var r;
|
4810
4713
|
const t = n.replace(A.findPipe, (o, a, l) => {
|
4811
|
-
let c = !1,
|
4812
|
-
for (; --
|
4714
|
+
let c = !1, u = a;
|
4715
|
+
for (; --u >= 0 && l[u] === "\\"; )
|
4813
4716
|
c = !c;
|
4814
4717
|
return c ? "|" : " |";
|
4815
4718
|
}), s = t.split(A.splitPipe);
|
@@ -4829,18 +4732,11 @@ function _e(n, e, t) {
|
|
4829
4732
|
if (s === 0)
|
4830
4733
|
return "";
|
4831
4734
|
let i = 0;
|
4832
|
-
for (; i < s; )
|
4833
|
-
|
4834
|
-
if (r === e && !t)
|
4835
|
-
i++;
|
4836
|
-
else if (r !== e && t)
|
4837
|
-
i++;
|
4838
|
-
else
|
4839
|
-
break;
|
4840
|
-
}
|
4735
|
+
for (; i < s && n.charAt(s - i - 1) === e; )
|
4736
|
+
i++;
|
4841
4737
|
return n.slice(0, s - i);
|
4842
4738
|
}
|
4843
|
-
function
|
4739
|
+
function Tl(n, e) {
|
4844
4740
|
if (n.indexOf(e[1]) === -1)
|
4845
4741
|
return -1;
|
4846
4742
|
let t = 0;
|
@@ -4853,7 +4749,7 @@ function _l(n, e) {
|
|
4853
4749
|
return s;
|
4854
4750
|
return -1;
|
4855
4751
|
}
|
4856
|
-
function
|
4752
|
+
function As(n, e, t, s, i) {
|
4857
4753
|
const r = e.href, o = e.title || null, a = n[1].replace(i.other.outputLinkReplace, "$1");
|
4858
4754
|
if (n[0].charAt(0) !== "!") {
|
4859
4755
|
s.state.inLink = !0;
|
@@ -4875,7 +4771,7 @@ function Es(n, e, t, s, i) {
|
|
4875
4771
|
text: a
|
4876
4772
|
};
|
4877
4773
|
}
|
4878
|
-
function
|
4774
|
+
function Rl(n, e, t) {
|
4879
4775
|
const s = n.match(t.other.indentCodeCompensation);
|
4880
4776
|
if (s === null)
|
4881
4777
|
return e;
|
@@ -4890,7 +4786,7 @@ function Cl(n, e, t) {
|
|
4890
4786
|
}).join(`
|
4891
4787
|
`);
|
4892
4788
|
}
|
4893
|
-
class
|
4789
|
+
class ht {
|
4894
4790
|
// set by the lexer
|
4895
4791
|
constructor(e) {
|
4896
4792
|
$(this, "options");
|
@@ -4923,7 +4819,7 @@ class ut {
|
|
4923
4819
|
fences(e) {
|
4924
4820
|
const t = this.rules.block.fences.exec(e);
|
4925
4821
|
if (t) {
|
4926
|
-
const s = t[0], i =
|
4822
|
+
const s = t[0], i = Rl(s, t[3] || "", this.rules);
|
4927
4823
|
return {
|
4928
4824
|
type: "code",
|
4929
4825
|
raw: s,
|
@@ -4977,14 +4873,14 @@ class ut {
|
|
4977
4873
|
else
|
4978
4874
|
break;
|
4979
4875
|
s = s.slice(c);
|
4980
|
-
const
|
4981
|
-
`),
|
4876
|
+
const u = l.join(`
|
4877
|
+
`), h = u.replace(this.rules.other.blockquoteSetextReplace, `
|
4982
4878
|
$1`).replace(this.rules.other.blockquoteSetextReplace2, "");
|
4983
4879
|
i = i ? `${i}
|
4984
|
-
${
|
4985
|
-
${
|
4880
|
+
${u}` : u, r = r ? `${r}
|
4881
|
+
${h}` : h;
|
4986
4882
|
const d = this.lexer.state.top;
|
4987
|
-
if (this.lexer.state.top = !0, this.lexer.blockTokens(
|
4883
|
+
if (this.lexer.state.top = !0, this.lexer.blockTokens(h, o, !0), this.lexer.state.top = d, s.length === 0)
|
4988
4884
|
break;
|
4989
4885
|
const p = o.at(-1);
|
4990
4886
|
if ((p == null ? void 0 : p.type) === "code")
|
@@ -5028,46 +4924,46 @@ ${u}` : u;
|
|
5028
4924
|
const o = this.rules.other.listItemRegex(s);
|
5029
4925
|
let a = !1;
|
5030
4926
|
for (; e; ) {
|
5031
|
-
let c = !1,
|
4927
|
+
let c = !1, u = "", h = "";
|
5032
4928
|
if (!(t = o.exec(e)) || this.rules.block.hr.test(e))
|
5033
4929
|
break;
|
5034
|
-
|
4930
|
+
u = t[0], e = e.substring(u.length);
|
5035
4931
|
let d = t[2].split(`
|
5036
4932
|
`, 1)[0].replace(this.rules.other.listReplaceTabs, (J) => " ".repeat(3 * J.length)), p = e.split(`
|
5037
4933
|
`, 1)[0], g = !d.trim(), f = 0;
|
5038
|
-
if (this.options.pedantic ? (f = 2,
|
4934
|
+
if (this.options.pedantic ? (f = 2, h = d.trimStart()) : g ? f = t[1].length + 1 : (f = t[2].search(this.rules.other.nonSpaceChar), f = f > 4 ? 1 : f, h = d.slice(f), f += t[1].length), g && this.rules.other.blankLine.test(p) && (u += p + `
|
5039
4935
|
`, e = e.substring(p.length + 1), c = !0), !c) {
|
5040
|
-
const J = this.rules.other.nextBulletRegex(f),
|
4936
|
+
const J = this.rules.other.nextBulletRegex(f), Mn = this.rules.other.hrRegex(f), zn = this.rules.other.fencesBeginRegex(f), Un = this.rules.other.headingBeginRegex(f), Hi = this.rules.other.htmlBeginRegex(f);
|
5041
4937
|
for (; e; ) {
|
5042
4938
|
const _t = e.split(`
|
5043
4939
|
`, 1)[0];
|
5044
4940
|
let we;
|
5045
|
-
if (p = _t, this.options.pedantic ? (p = p.replace(this.rules.other.listReplaceNesting, " "), we = p) : we = p.replace(this.rules.other.tabCharGlobal, " "),
|
4941
|
+
if (p = _t, this.options.pedantic ? (p = p.replace(this.rules.other.listReplaceNesting, " "), we = p) : we = p.replace(this.rules.other.tabCharGlobal, " "), zn.test(p) || Un.test(p) || Hi.test(p) || J.test(p) || Mn.test(p))
|
5046
4942
|
break;
|
5047
4943
|
if (we.search(this.rules.other.nonSpaceChar) >= f || !p.trim())
|
5048
|
-
|
4944
|
+
h += `
|
5049
4945
|
` + we.slice(f);
|
5050
4946
|
else {
|
5051
|
-
if (g || d.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 ||
|
4947
|
+
if (g || d.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || zn.test(d) || Un.test(d) || Mn.test(d))
|
5052
4948
|
break;
|
5053
|
-
|
4949
|
+
h += `
|
5054
4950
|
` + p;
|
5055
4951
|
}
|
5056
|
-
!g && !p.trim() && (g = !0),
|
4952
|
+
!g && !p.trim() && (g = !0), u += _t + `
|
5057
4953
|
`, e = e.substring(_t.length + 1), d = we.slice(f);
|
5058
4954
|
}
|
5059
4955
|
}
|
5060
|
-
r.loose || (a ? r.loose = !0 : this.rules.other.doubleBlankLine.test(
|
4956
|
+
r.loose || (a ? r.loose = !0 : this.rules.other.doubleBlankLine.test(u) && (a = !0));
|
5061
4957
|
let k = null, W;
|
5062
|
-
this.options.gfm && (k = this.rules.other.listIsTask.exec(
|
4958
|
+
this.options.gfm && (k = this.rules.other.listIsTask.exec(h), k && (W = k[0] !== "[ ] ", h = h.replace(this.rules.other.listReplaceTask, ""))), r.items.push({
|
5063
4959
|
type: "list_item",
|
5064
|
-
raw:
|
4960
|
+
raw: u,
|
5065
4961
|
task: !!k,
|
5066
4962
|
checked: W,
|
5067
4963
|
loose: !1,
|
5068
|
-
text:
|
4964
|
+
text: h,
|
5069
4965
|
tokens: []
|
5070
|
-
}), r.raw +=
|
4966
|
+
}), r.raw += u;
|
5071
4967
|
}
|
5072
4968
|
const l = r.items.at(-1);
|
5073
4969
|
if (l)
|
@@ -5077,8 +4973,8 @@ ${u}` : u;
|
|
5077
4973
|
r.raw = r.raw.trimEnd();
|
5078
4974
|
for (let c = 0; c < r.items.length; c++)
|
5079
4975
|
if (this.lexer.state.top = !1, r.items[c].tokens = this.lexer.blockTokens(r.items[c].text, []), !r.loose) {
|
5080
|
-
const
|
5081
|
-
r.loose =
|
4976
|
+
const u = r.items[c].tokens.filter((d) => d.type === "space"), h = u.length > 0 && u.some((d) => this.rules.other.anyLine.test(d.raw));
|
4977
|
+
r.loose = h;
|
5082
4978
|
}
|
5083
4979
|
if (r.loose)
|
5084
4980
|
for (let c = 0; c < r.items.length; c++)
|
@@ -5115,7 +5011,7 @@ ${u}` : u;
|
|
5115
5011
|
const t = this.rules.block.table.exec(e);
|
5116
5012
|
if (!t || !this.rules.other.tableDelimiter.test(t[2]))
|
5117
5013
|
return;
|
5118
|
-
const s =
|
5014
|
+
const s = Cs(t[1]), i = t[2].replace(this.rules.other.tableAlignChars, "").split("|"), r = (a = t[3]) != null && a.trim() ? t[3].replace(this.rules.other.tableRowBlankLine, "").split(`
|
5119
5015
|
`) : [], o = {
|
5120
5016
|
type: "table",
|
5121
5017
|
raw: t[0],
|
@@ -5134,11 +5030,11 @@ ${u}` : u;
|
|
5134
5030
|
align: o.align[l]
|
5135
5031
|
});
|
5136
5032
|
for (const l of r)
|
5137
|
-
o.rows.push(
|
5033
|
+
o.rows.push(Cs(l, o.header.length).map((c, u) => ({
|
5138
5034
|
text: c,
|
5139
5035
|
tokens: this.lexer.inline(c),
|
5140
5036
|
header: !1,
|
5141
|
-
align: o.align[
|
5037
|
+
align: o.align[u]
|
5142
5038
|
})));
|
5143
5039
|
return o;
|
5144
5040
|
}
|
@@ -5209,7 +5105,7 @@ ${u}` : u;
|
|
5209
5105
|
if ((s.length - o.length) % 2 === 0)
|
5210
5106
|
return;
|
5211
5107
|
} else {
|
5212
|
-
const o =
|
5108
|
+
const o = Tl(t[2], "()");
|
5213
5109
|
if (o > -1) {
|
5214
5110
|
const l = (t[0].indexOf("!") === 0 ? 5 : 4) + t[1].length + o;
|
5215
5111
|
t[2] = t[2].substring(0, o), t[0] = t[0].substring(0, l).trim(), t[3] = "";
|
@@ -5221,7 +5117,7 @@ ${u}` : u;
|
|
5221
5117
|
o && (i = o[1], r = o[3]);
|
5222
5118
|
} else
|
5223
5119
|
r = t[3] ? t[3].slice(1, -1) : "";
|
5224
|
-
return i = i.trim(), this.rules.other.startAngleBracket.test(i) && (this.options.pedantic && !this.rules.other.endAngleBracket.test(s) ? i = i.slice(1) : i = i.slice(1, -1)),
|
5120
|
+
return i = i.trim(), this.rules.other.startAngleBracket.test(i) && (this.options.pedantic && !this.rules.other.endAngleBracket.test(s) ? i = i.slice(1) : i = i.slice(1, -1)), As(t, {
|
5225
5121
|
href: i && i.replace(this.rules.inline.anyPunctuation, "$1"),
|
5226
5122
|
title: r && r.replace(this.rules.inline.anyPunctuation, "$1")
|
5227
5123
|
}, t[0], this.lexer, this.rules);
|
@@ -5239,7 +5135,7 @@ ${u}` : u;
|
|
5239
5135
|
text: o
|
5240
5136
|
};
|
5241
5137
|
}
|
5242
|
-
return
|
5138
|
+
return As(s, r, s[0], this.lexer, this.rules);
|
5243
5139
|
}
|
5244
5140
|
}
|
5245
5141
|
emStrong(e, t, s = "") {
|
@@ -5248,21 +5144,21 @@ ${u}` : u;
|
|
5248
5144
|
return;
|
5249
5145
|
if (!(i[1] || i[2] || "") || !s || this.rules.inline.punctuation.exec(s)) {
|
5250
5146
|
const o = [...i[0]].length - 1;
|
5251
|
-
let a, l, c = o,
|
5252
|
-
const
|
5253
|
-
for (
|
5147
|
+
let a, l, c = o, u = 0;
|
5148
|
+
const h = i[0][0] === "*" ? this.rules.inline.emStrongRDelimAst : this.rules.inline.emStrongRDelimUnd;
|
5149
|
+
for (h.lastIndex = 0, t = t.slice(-1 * e.length + o); (i = h.exec(t)) != null; ) {
|
5254
5150
|
if (a = i[1] || i[2] || i[3] || i[4] || i[5] || i[6], !a)
|
5255
5151
|
continue;
|
5256
5152
|
if (l = [...a].length, i[3] || i[4]) {
|
5257
5153
|
c += l;
|
5258
5154
|
continue;
|
5259
5155
|
} else if ((i[5] || i[6]) && o % 3 && !((o + l) % 3)) {
|
5260
|
-
|
5156
|
+
u += l;
|
5261
5157
|
continue;
|
5262
5158
|
}
|
5263
5159
|
if (c -= l, c > 0)
|
5264
5160
|
continue;
|
5265
|
-
l = Math.min(l, l + c +
|
5161
|
+
l = Math.min(l, l + c + u);
|
5266
5162
|
const d = [...i[0]][0].length, p = e.slice(0, o + i.index + d + l);
|
5267
5163
|
if (Math.min(o, l) % 2) {
|
5268
5164
|
const f = p.slice(1, -1);
|
@@ -5381,24 +5277,24 @@ class O {
|
|
5381
5277
|
$(this, "state");
|
5382
5278
|
$(this, "tokenizer");
|
5383
5279
|
$(this, "inlineQueue");
|
5384
|
-
this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = e || ae, this.options.tokenizer = this.options.tokenizer || new
|
5280
|
+
this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = e || ae, this.options.tokenizer = this.options.tokenizer || new ht(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = {
|
5385
5281
|
inLink: !1,
|
5386
5282
|
inRawBlock: !1,
|
5387
5283
|
top: !0
|
5388
5284
|
};
|
5389
5285
|
const t = {
|
5390
5286
|
other: A,
|
5391
|
-
block:
|
5287
|
+
block: Ge.normal,
|
5392
5288
|
inline: Se.normal
|
5393
5289
|
};
|
5394
|
-
this.options.pedantic ? (t.block =
|
5290
|
+
this.options.pedantic ? (t.block = Ge.pedantic, t.inline = Se.pedantic) : this.options.gfm && (t.block = Ge.gfm, this.options.breaks ? t.inline = Se.breaks : t.inline = Se.gfm), this.tokenizer.rules = t;
|
5395
5291
|
}
|
5396
5292
|
/**
|
5397
5293
|
* Expose Rules
|
5398
5294
|
*/
|
5399
5295
|
static get rules() {
|
5400
5296
|
return {
|
5401
|
-
block:
|
5297
|
+
block: Ge,
|
5402
5298
|
inline: Se
|
5403
5299
|
};
|
5404
5300
|
}
|
@@ -5493,10 +5389,10 @@ class O {
|
|
5493
5389
|
let l = e;
|
5494
5390
|
if ((o = this.options.extensions) != null && o.startBlock) {
|
5495
5391
|
let c = 1 / 0;
|
5496
|
-
const
|
5497
|
-
let
|
5392
|
+
const u = e.slice(1);
|
5393
|
+
let h;
|
5498
5394
|
this.options.extensions.startBlock.forEach((d) => {
|
5499
|
-
|
5395
|
+
h = d.call({ lexer: this }, u), typeof h == "number" && h >= 0 && (c = Math.min(c, h));
|
5500
5396
|
}), c < 1 / 0 && c >= 0 && (l = e.substring(0, c + 1));
|
5501
5397
|
}
|
5502
5398
|
if (this.state.top && (a = this.tokenizer.paragraph(l))) {
|
@@ -5535,10 +5431,10 @@ class O {
|
|
5535
5431
|
var a, l, c;
|
5536
5432
|
let s = e, i = null;
|
5537
5433
|
if (this.tokens.links) {
|
5538
|
-
const
|
5539
|
-
if (
|
5434
|
+
const u = Object.keys(this.tokens.links);
|
5435
|
+
if (u.length > 0)
|
5540
5436
|
for (; (i = this.tokenizer.rules.inline.reflinkSearch.exec(s)) != null; )
|
5541
|
-
|
5437
|
+
u.includes(i[0].slice(i[0].lastIndexOf("[") + 1, -1)) && (s = s.slice(0, i.index) + "[" + "a".repeat(i[0].length - 2) + "]" + s.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex));
|
5542
5438
|
}
|
5543
5439
|
for (; (i = this.tokenizer.rules.inline.blockSkip.exec(s)) != null; )
|
5544
5440
|
s = s.slice(0, i.index) + "[" + "a".repeat(i[0].length - 2) + "]" + s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);
|
@@ -5547,64 +5443,64 @@ class O {
|
|
5547
5443
|
let r = !1, o = "";
|
5548
5444
|
for (; e; ) {
|
5549
5445
|
r || (o = ""), r = !1;
|
5550
|
-
let
|
5551
|
-
if ((l = (a = this.options.extensions) == null ? void 0 : a.inline) != null && l.some((d) => (
|
5446
|
+
let u;
|
5447
|
+
if ((l = (a = this.options.extensions) == null ? void 0 : a.inline) != null && l.some((d) => (u = d.call({ lexer: this }, e, t)) ? (e = e.substring(u.raw.length), t.push(u), !0) : !1))
|
5552
5448
|
continue;
|
5553
|
-
if (
|
5554
|
-
e = e.substring(
|
5449
|
+
if (u = this.tokenizer.escape(e)) {
|
5450
|
+
e = e.substring(u.raw.length), t.push(u);
|
5555
5451
|
continue;
|
5556
5452
|
}
|
5557
|
-
if (
|
5558
|
-
e = e.substring(
|
5453
|
+
if (u = this.tokenizer.tag(e)) {
|
5454
|
+
e = e.substring(u.raw.length), t.push(u);
|
5559
5455
|
continue;
|
5560
5456
|
}
|
5561
|
-
if (
|
5562
|
-
e = e.substring(
|
5457
|
+
if (u = this.tokenizer.link(e)) {
|
5458
|
+
e = e.substring(u.raw.length), t.push(u);
|
5563
5459
|
continue;
|
5564
5460
|
}
|
5565
|
-
if (
|
5566
|
-
e = e.substring(
|
5461
|
+
if (u = this.tokenizer.reflink(e, this.tokens.links)) {
|
5462
|
+
e = e.substring(u.raw.length);
|
5567
5463
|
const d = t.at(-1);
|
5568
|
-
|
5464
|
+
u.type === "text" && (d == null ? void 0 : d.type) === "text" ? (d.raw += u.raw, d.text += u.text) : t.push(u);
|
5569
5465
|
continue;
|
5570
5466
|
}
|
5571
|
-
if (
|
5572
|
-
e = e.substring(
|
5467
|
+
if (u = this.tokenizer.emStrong(e, s, o)) {
|
5468
|
+
e = e.substring(u.raw.length), t.push(u);
|
5573
5469
|
continue;
|
5574
5470
|
}
|
5575
|
-
if (
|
5576
|
-
e = e.substring(
|
5471
|
+
if (u = this.tokenizer.codespan(e)) {
|
5472
|
+
e = e.substring(u.raw.length), t.push(u);
|
5577
5473
|
continue;
|
5578
5474
|
}
|
5579
|
-
if (
|
5580
|
-
e = e.substring(
|
5475
|
+
if (u = this.tokenizer.br(e)) {
|
5476
|
+
e = e.substring(u.raw.length), t.push(u);
|
5581
5477
|
continue;
|
5582
5478
|
}
|
5583
|
-
if (
|
5584
|
-
e = e.substring(
|
5479
|
+
if (u = this.tokenizer.del(e)) {
|
5480
|
+
e = e.substring(u.raw.length), t.push(u);
|
5585
5481
|
continue;
|
5586
5482
|
}
|
5587
|
-
if (
|
5588
|
-
e = e.substring(
|
5483
|
+
if (u = this.tokenizer.autolink(e)) {
|
5484
|
+
e = e.substring(u.raw.length), t.push(u);
|
5589
5485
|
continue;
|
5590
5486
|
}
|
5591
|
-
if (!this.state.inLink && (
|
5592
|
-
e = e.substring(
|
5487
|
+
if (!this.state.inLink && (u = this.tokenizer.url(e))) {
|
5488
|
+
e = e.substring(u.raw.length), t.push(u);
|
5593
5489
|
continue;
|
5594
5490
|
}
|
5595
|
-
let
|
5491
|
+
let h = e;
|
5596
5492
|
if ((c = this.options.extensions) != null && c.startInline) {
|
5597
5493
|
let d = 1 / 0;
|
5598
5494
|
const p = e.slice(1);
|
5599
5495
|
let g;
|
5600
5496
|
this.options.extensions.startInline.forEach((f) => {
|
5601
5497
|
g = f.call({ lexer: this }, p), typeof g == "number" && g >= 0 && (d = Math.min(d, g));
|
5602
|
-
}), d < 1 / 0 && d >= 0 && (
|
5498
|
+
}), d < 1 / 0 && d >= 0 && (h = e.substring(0, d + 1));
|
5603
5499
|
}
|
5604
|
-
if (
|
5605
|
-
e = e.substring(
|
5500
|
+
if (u = this.tokenizer.inlineText(h)) {
|
5501
|
+
e = e.substring(u.raw.length), u.raw.slice(-1) !== "_" && (o = u.raw.slice(-1)), r = !0;
|
5606
5502
|
const d = t.at(-1);
|
5607
|
-
(d == null ? void 0 : d.type) === "text" ? (d.raw +=
|
5503
|
+
(d == null ? void 0 : d.type) === "text" ? (d.raw += u.raw, d.text += u.text) : t.push(u);
|
5608
5504
|
continue;
|
5609
5505
|
}
|
5610
5506
|
if (e) {
|
@@ -5735,7 +5631,7 @@ ${e}</tr>
|
|
5735
5631
|
return `<del>${this.parser.parseInline(e)}</del>`;
|
5736
5632
|
}
|
5737
5633
|
link({ href: e, title: t, tokens: s }) {
|
5738
|
-
const i = this.parser.parseInline(s), r =
|
5634
|
+
const i = this.parser.parseInline(s), r = _s(e);
|
5739
5635
|
if (r === null)
|
5740
5636
|
return i;
|
5741
5637
|
e = r;
|
@@ -5743,7 +5639,7 @@ ${e}</tr>
|
|
5743
5639
|
return t && (o += ' title="' + U(t) + '"'), o += ">" + i + "</a>", o;
|
5744
5640
|
}
|
5745
5641
|
image({ href: e, title: t, text: s }) {
|
5746
|
-
const i =
|
5642
|
+
const i = _s(e);
|
5747
5643
|
if (i === null)
|
5748
5644
|
return U(s);
|
5749
5645
|
e = i;
|
@@ -5754,7 +5650,7 @@ ${e}</tr>
|
|
5754
5650
|
return "tokens" in e && e.tokens ? this.parser.parseInline(e.tokens) : "escaped" in e && e.escaped ? e.text : U(e.text);
|
5755
5651
|
}
|
5756
5652
|
}
|
5757
|
-
class
|
5653
|
+
class xn {
|
5758
5654
|
// no need for block level renderers
|
5759
5655
|
strong({ text: e }) {
|
5760
5656
|
return e;
|
@@ -5789,7 +5685,7 @@ class I {
|
|
5789
5685
|
$(this, "options");
|
5790
5686
|
$(this, "renderer");
|
5791
5687
|
$(this, "textRenderer");
|
5792
|
-
this.options = e || ae, this.options.renderer = this.options.renderer || new Ue(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new
|
5688
|
+
this.options = e || ae, this.options.renderer = this.options.renderer || new Ue(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new xn();
|
5793
5689
|
}
|
5794
5690
|
/**
|
5795
5691
|
* Static Parse Method
|
@@ -5812,9 +5708,9 @@ class I {
|
|
5812
5708
|
for (let o = 0; o < e.length; o++) {
|
5813
5709
|
const a = e[o];
|
5814
5710
|
if ((r = (i = this.options.extensions) == null ? void 0 : i.renderers) != null && r[a.type]) {
|
5815
|
-
const c = a,
|
5816
|
-
if (
|
5817
|
-
s +=
|
5711
|
+
const c = a, u = this.options.extensions.renderers[c.type].call({ parser: this }, c);
|
5712
|
+
if (u !== !1 || !["space", "hr", "heading", "code", "table", "blockquote", "list", "html", "paragraph", "text"].includes(c.type)) {
|
5713
|
+
s += u || "";
|
5818
5714
|
continue;
|
5819
5715
|
}
|
5820
5716
|
}
|
@@ -5857,16 +5753,16 @@ class I {
|
|
5857
5753
|
continue;
|
5858
5754
|
}
|
5859
5755
|
case "text": {
|
5860
|
-
let c = l,
|
5756
|
+
let c = l, u = this.renderer.text(c);
|
5861
5757
|
for (; o + 1 < e.length && e[o + 1].type === "text"; )
|
5862
|
-
c = e[++o],
|
5758
|
+
c = e[++o], u += `
|
5863
5759
|
` + this.renderer.text(c);
|
5864
5760
|
t ? s += this.renderer.paragraph({
|
5865
5761
|
type: "paragraph",
|
5866
|
-
raw:
|
5867
|
-
text:
|
5868
|
-
tokens: [{ type: "text", raw:
|
5869
|
-
}) : s +=
|
5762
|
+
raw: u,
|
5763
|
+
text: u,
|
5764
|
+
tokens: [{ type: "text", raw: u, text: u, escaped: !0 }]
|
5765
|
+
}) : s += u;
|
5870
5766
|
continue;
|
5871
5767
|
}
|
5872
5768
|
default: {
|
@@ -5947,7 +5843,7 @@ class I {
|
|
5947
5843
|
return s;
|
5948
5844
|
}
|
5949
5845
|
}
|
5950
|
-
class
|
5846
|
+
class Te {
|
5951
5847
|
constructor(e) {
|
5952
5848
|
$(this, "options");
|
5953
5849
|
$(this, "block");
|
@@ -5984,23 +5880,23 @@ class Le {
|
|
5984
5880
|
return this.block ? I.parse : I.parseInline;
|
5985
5881
|
}
|
5986
5882
|
}
|
5987
|
-
$(
|
5883
|
+
$(Te, "passThroughHooks", /* @__PURE__ */ new Set([
|
5988
5884
|
"preprocess",
|
5989
5885
|
"postprocess",
|
5990
5886
|
"processAllTokens"
|
5991
5887
|
]));
|
5992
|
-
class
|
5888
|
+
class Pl {
|
5993
5889
|
constructor(...e) {
|
5994
|
-
$(this, "defaults",
|
5890
|
+
$(this, "defaults", fn());
|
5995
5891
|
$(this, "options", this.setOptions);
|
5996
5892
|
$(this, "parse", this.parseMarkdown(!0));
|
5997
5893
|
$(this, "parseInline", this.parseMarkdown(!1));
|
5998
5894
|
$(this, "Parser", I);
|
5999
5895
|
$(this, "Renderer", Ue);
|
6000
|
-
$(this, "TextRenderer",
|
5896
|
+
$(this, "TextRenderer", xn);
|
6001
5897
|
$(this, "Lexer", O);
|
6002
|
-
$(this, "Tokenizer",
|
6003
|
-
$(this, "Hooks",
|
5898
|
+
$(this, "Tokenizer", ht);
|
5899
|
+
$(this, "Hooks", Te);
|
6004
5900
|
this.use(...e);
|
6005
5901
|
}
|
6006
5902
|
/**
|
@@ -6064,44 +5960,44 @@ class Al {
|
|
6064
5960
|
if (["options", "parser"].includes(o))
|
6065
5961
|
continue;
|
6066
5962
|
const a = o, l = s.renderer[a], c = r[a];
|
6067
|
-
r[a] = (...
|
6068
|
-
let
|
6069
|
-
return
|
5963
|
+
r[a] = (...u) => {
|
5964
|
+
let h = l.apply(r, u);
|
5965
|
+
return h === !1 && (h = c.apply(r, u)), h || "";
|
6070
5966
|
};
|
6071
5967
|
}
|
6072
5968
|
i.renderer = r;
|
6073
5969
|
}
|
6074
5970
|
if (s.tokenizer) {
|
6075
|
-
const r = this.defaults.tokenizer || new
|
5971
|
+
const r = this.defaults.tokenizer || new ht(this.defaults);
|
6076
5972
|
for (const o in s.tokenizer) {
|
6077
5973
|
if (!(o in r))
|
6078
5974
|
throw new Error(`tokenizer '${o}' does not exist`);
|
6079
5975
|
if (["options", "rules", "lexer"].includes(o))
|
6080
5976
|
continue;
|
6081
5977
|
const a = o, l = s.tokenizer[a], c = r[a];
|
6082
|
-
r[a] = (...
|
6083
|
-
let
|
6084
|
-
return
|
5978
|
+
r[a] = (...u) => {
|
5979
|
+
let h = l.apply(r, u);
|
5980
|
+
return h === !1 && (h = c.apply(r, u)), h;
|
6085
5981
|
};
|
6086
5982
|
}
|
6087
5983
|
i.tokenizer = r;
|
6088
5984
|
}
|
6089
5985
|
if (s.hooks) {
|
6090
|
-
const r = this.defaults.hooks || new
|
5986
|
+
const r = this.defaults.hooks || new Te();
|
6091
5987
|
for (const o in s.hooks) {
|
6092
5988
|
if (!(o in r))
|
6093
5989
|
throw new Error(`hook '${o}' does not exist`);
|
6094
5990
|
if (["options", "block"].includes(o))
|
6095
5991
|
continue;
|
6096
5992
|
const a = o, l = s.hooks[a], c = r[a];
|
6097
|
-
|
5993
|
+
Te.passThroughHooks.has(o) ? r[a] = (u) => {
|
6098
5994
|
if (this.defaults.async)
|
6099
|
-
return Promise.resolve(l.call(r,
|
6100
|
-
const
|
6101
|
-
return c.call(r,
|
6102
|
-
} : r[a] = (...
|
6103
|
-
let
|
6104
|
-
return
|
5995
|
+
return Promise.resolve(l.call(r, u)).then((d) => c.call(r, d));
|
5996
|
+
const h = l.call(r, u);
|
5997
|
+
return c.call(r, h);
|
5998
|
+
} : r[a] = (...u) => {
|
5999
|
+
let h = l.apply(r, u);
|
6000
|
+
return h === !1 && (h = c.apply(r, u)), h;
|
6105
6001
|
};
|
6106
6002
|
}
|
6107
6003
|
i.hooks = r;
|
@@ -6137,15 +6033,15 @@ class Al {
|
|
6137
6033
|
o.hooks && (o.hooks.options = o, o.hooks.block = e);
|
6138
6034
|
const l = o.hooks ? o.hooks.provideLexer() : e ? O.lex : O.lexInline, c = o.hooks ? o.hooks.provideParser() : e ? I.parse : I.parseInline;
|
6139
6035
|
if (o.async)
|
6140
|
-
return Promise.resolve(o.hooks ? o.hooks.preprocess(s) : s).then((
|
6036
|
+
return Promise.resolve(o.hooks ? o.hooks.preprocess(s) : s).then((u) => l(u, o)).then((u) => o.hooks ? o.hooks.processAllTokens(u) : u).then((u) => o.walkTokens ? Promise.all(this.walkTokens(u, o.walkTokens)).then(() => u) : u).then((u) => c(u, o)).then((u) => o.hooks ? o.hooks.postprocess(u) : u).catch(a);
|
6141
6037
|
try {
|
6142
6038
|
o.hooks && (s = o.hooks.preprocess(s));
|
6143
|
-
let
|
6144
|
-
o.hooks && (
|
6145
|
-
let
|
6146
|
-
return o.hooks && (
|
6147
|
-
} catch (
|
6148
|
-
return a(
|
6039
|
+
let u = l(s, o);
|
6040
|
+
o.hooks && (u = o.hooks.processAllTokens(u)), o.walkTokens && this.walkTokens(u, o.walkTokens);
|
6041
|
+
let h = c(u, o);
|
6042
|
+
return o.hooks && (h = o.hooks.postprocess(h)), h;
|
6043
|
+
} catch (u) {
|
6044
|
+
return a(u);
|
6149
6045
|
}
|
6150
6046
|
};
|
6151
6047
|
}
|
@@ -6162,49 +6058,49 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
6162
6058
|
};
|
6163
6059
|
}
|
6164
6060
|
}
|
6165
|
-
const oe = new
|
6166
|
-
function
|
6061
|
+
const oe = new Pl();
|
6062
|
+
function v(n, e) {
|
6167
6063
|
return oe.parse(n, e);
|
6168
6064
|
}
|
6169
|
-
|
6170
|
-
return oe.setOptions(n),
|
6065
|
+
v.options = v.setOptions = function(n) {
|
6066
|
+
return oe.setOptions(n), v.defaults = oe.defaults, Ai(v.defaults), v;
|
6171
6067
|
};
|
6172
|
-
|
6173
|
-
|
6174
|
-
|
6175
|
-
return oe.use(...n),
|
6068
|
+
v.getDefaults = fn;
|
6069
|
+
v.defaults = ae;
|
6070
|
+
v.use = function(...n) {
|
6071
|
+
return oe.use(...n), v.defaults = oe.defaults, Ai(v.defaults), v;
|
6176
6072
|
};
|
6177
|
-
|
6073
|
+
v.walkTokens = function(n, e) {
|
6178
6074
|
return oe.walkTokens(n, e);
|
6179
6075
|
};
|
6180
|
-
|
6181
|
-
|
6182
|
-
|
6183
|
-
|
6184
|
-
|
6185
|
-
|
6186
|
-
|
6187
|
-
|
6188
|
-
|
6189
|
-
|
6190
|
-
|
6191
|
-
|
6192
|
-
|
6193
|
-
|
6194
|
-
|
6076
|
+
v.parseInline = oe.parseInline;
|
6077
|
+
v.Parser = I;
|
6078
|
+
v.parser = I.parse;
|
6079
|
+
v.Renderer = Ue;
|
6080
|
+
v.TextRenderer = xn;
|
6081
|
+
v.Lexer = O;
|
6082
|
+
v.lexer = O.lex;
|
6083
|
+
v.Tokenizer = ht;
|
6084
|
+
v.Hooks = Te;
|
6085
|
+
v.parse = v;
|
6086
|
+
v.options;
|
6087
|
+
v.setOptions;
|
6088
|
+
v.use;
|
6089
|
+
v.walkTokens;
|
6090
|
+
v.parseInline;
|
6195
6091
|
I.parse;
|
6196
6092
|
O.lex;
|
6197
|
-
var
|
6093
|
+
var Ol = Object.defineProperty, Bi = (n, e, t, s) => {
|
6198
6094
|
for (var i = void 0, r = n.length - 1, o; r >= 0; r--)
|
6199
6095
|
(o = n[r]) && (i = o(e, t, i) || i);
|
6200
|
-
return i &&
|
6096
|
+
return i && Ol(e, t, i), i;
|
6201
6097
|
};
|
6202
|
-
const
|
6203
|
-
|
6098
|
+
const ji = new Ue();
|
6099
|
+
ji.link = function({ href: n, title: e, text: t }) {
|
6204
6100
|
return e || (e = t), `<a target="_blank" href="${n}" title="${e}">${t}</a>`;
|
6205
6101
|
};
|
6206
|
-
|
6207
|
-
const
|
6102
|
+
v.use({ renderer: ji });
|
6103
|
+
const Pn = class Pn extends S {
|
6208
6104
|
constructor() {
|
6209
6105
|
super(...arguments), this.showLightbox = !1, this.imageUrl = "", this.altText = "", this.scrollRef = B(), this.contentRef = B(), this.autoScroll = !0, this.buffer = "", this.pointer = 0, this.imageRegexp = new RegExp(/!\[[^[]*\([^)]*\)/gm), this.includesImage = (e) => this.imageRegexp.test(e);
|
6210
6106
|
}
|
@@ -6247,7 +6143,7 @@ const On = class On extends S {
|
|
6247
6143
|
const e = this.getLastChunk();
|
6248
6144
|
if (!e) return;
|
6249
6145
|
this.buffer += e;
|
6250
|
-
const t =
|
6146
|
+
const t = v.parse(this.buffer), s = (i = this.contentRef.value) == null ? void 0 : i.querySelector(
|
6251
6147
|
"div:last-of-type"
|
6252
6148
|
);
|
6253
6149
|
if (this.includesImage(this.buffer))
|
@@ -6263,20 +6159,20 @@ const On = class On extends S {
|
|
6263
6159
|
});
|
6264
6160
|
}
|
6265
6161
|
render() {
|
6266
|
-
return
|
6162
|
+
return b`
|
6267
6163
|
<div class="message-type-markdown" ${j(this.contentRef)}>
|
6268
6164
|
<div></div>
|
6269
6165
|
</div>
|
6270
6166
|
<div class="scroll" ${j(this.scrollRef)}></div>
|
6271
|
-
${this.showLightbox ?
|
6167
|
+
${this.showLightbox ? b`<ace-lightbox
|
6272
6168
|
imageUrl="${this.imageUrl}"
|
6273
6169
|
altText="${this.altText}"
|
6274
6170
|
/>` : null}
|
6275
6171
|
`;
|
6276
6172
|
}
|
6277
6173
|
};
|
6278
|
-
|
6279
|
-
|
6174
|
+
Pn.styles = [
|
6175
|
+
T`
|
6280
6176
|
:host {
|
6281
6177
|
box-sizing: border-box;
|
6282
6178
|
}
|
@@ -6316,19 +6212,19 @@ On.styles = [
|
|
6316
6212
|
}
|
6317
6213
|
`
|
6318
6214
|
];
|
6319
|
-
let Be =
|
6320
|
-
|
6215
|
+
let Be = Pn;
|
6216
|
+
Bi([
|
6321
6217
|
w({ attribute: !1 })
|
6322
6218
|
], Be.prototype, "message");
|
6323
|
-
|
6219
|
+
Bi([
|
6324
6220
|
C()
|
6325
6221
|
], Be.prototype, "showLightbox");
|
6326
|
-
var
|
6222
|
+
var Il = Object.defineProperty, Ml = (n, e, t, s) => {
|
6327
6223
|
for (var i = void 0, r = n.length - 1, o; r >= 0; r--)
|
6328
6224
|
(o = n[r]) && (i = o(e, t, i) || i);
|
6329
|
-
return i &&
|
6225
|
+
return i && Il(e, t, i), i;
|
6330
6226
|
};
|
6331
|
-
const
|
6227
|
+
const On = class On extends S {
|
6332
6228
|
constructor() {
|
6333
6229
|
super(...arguments), this.escapeListener = (e) => {
|
6334
6230
|
e.key === "Escape" && this.closeLightbox();
|
@@ -6359,7 +6255,7 @@ const In = class In extends S {
|
|
6359
6255
|
}
|
6360
6256
|
}
|
6361
6257
|
render() {
|
6362
|
-
return
|
6258
|
+
return b`<div
|
6363
6259
|
class="lightbox"
|
6364
6260
|
tabindex="-1"
|
6365
6261
|
@keydown=${this.handleKeyDown}
|
@@ -6371,8 +6267,8 @@ const In = class In extends S {
|
|
6371
6267
|
</div> `;
|
6372
6268
|
}
|
6373
6269
|
};
|
6374
|
-
|
6375
|
-
|
6270
|
+
On.styles = [
|
6271
|
+
T`
|
6376
6272
|
:focus {
|
6377
6273
|
outline-color: var(--focus-color);
|
6378
6274
|
}
|
@@ -6412,26 +6308,26 @@ In.styles = [
|
|
6412
6308
|
}
|
6413
6309
|
`
|
6414
6310
|
];
|
6415
|
-
let dt =
|
6416
|
-
|
6311
|
+
let dt = On;
|
6312
|
+
Ml([
|
6417
6313
|
w({ attribute: !0 })
|
6418
6314
|
], dt.prototype, "imageUrl");
|
6419
|
-
var
|
6315
|
+
var zl = Object.defineProperty, Z = (n, e, t, s) => {
|
6420
6316
|
for (var i = void 0, r = n.length - 1, o; r >= 0; r--)
|
6421
6317
|
(o = n[r]) && (i = o(e, t, i) || i);
|
6422
|
-
return i &&
|
6318
|
+
return i && zl(e, t, i), i;
|
6423
6319
|
};
|
6424
6320
|
customElements.get("conversation-entry") || customElements.define("conversation-entry", at);
|
6425
6321
|
customElements.get("ace-conversation-feed") || customElements.define("ace-conversation-feed", ze);
|
6426
6322
|
customElements.get("conversation-group") || customElements.define("conversation-group", lt);
|
6427
|
-
customElements.get("ace-typing-state") || customElements.define("ace-typing-state",
|
6323
|
+
customElements.get("ace-typing-state") || customElements.define("ace-typing-state", Yt);
|
6428
6324
|
customElements.get("message-type-html") || customElements.define("message-type-html", ct);
|
6429
6325
|
customElements.get("message-type-markdown") || customElements.define("message-type-markdown", Be);
|
6430
6326
|
customElements.get("ace-lightbox") || customElements.define("ace-lightbox", dt);
|
6431
|
-
const
|
6327
|
+
const Es = Si(S), In = class In extends Es {
|
6432
6328
|
constructor() {
|
6433
6329
|
super(...arguments), this.message = "", this.disabledInput = !1, this.disabledSkipToLatest = !1, this.disabledSubmit = !1, this.chatOverlayActive = !1, this.textAreaLength = 0, this.isMuted = !1, this.conversationContentRef = B(), this.conversationFeedRef = B(), this.formRef = B(), this.inputRef = B(), this.scrollRef = B(), this.counterRef = B(), this.chatScrollHeight = 0, this.chatCurrentScrollPosition = 0, this.toast = new Ha(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 H("waiting"), this.stateMachine = new Da(this.conversationState$, this), this.provider$ = this.stateMachine.session().pipe(
|
6434
|
-
pe((e) => e ? e == null ? void 0 : e.provider$ :
|
6330
|
+
pe((e) => e ? e == null ? void 0 : e.provider$ : Ut(null))
|
6435
6331
|
), this.userTyping$ = new _();
|
6436
6332
|
}
|
6437
6333
|
async connectedCallback() {
|
@@ -6441,7 +6337,7 @@ const Ts = Ai(S), Mn = class Mn extends Ts {
|
|
6441
6337
|
);
|
6442
6338
|
this.platform = e || null;
|
6443
6339
|
const t = this.application.trigger;
|
6444
|
-
t && t.widgetActive$.pipe(
|
6340
|
+
t && t.widgetActive$.pipe(jt(t.componentIsDestroyed$)).subscribe((s) => {
|
6445
6341
|
const i = this.conversationContentRef.value;
|
6446
6342
|
i && (s ? i.scrollTop = this.chatCurrentScrollPosition : this.chatCurrentScrollPosition = i.scrollTop);
|
6447
6343
|
}), this.stateSubscription = Ar([
|
@@ -6452,9 +6348,9 @@ const Ts = Ai(S), Mn = class Mn extends Ts {
|
|
6452
6348
|
}), this.userSubmitSubscription = Ve(
|
6453
6349
|
this,
|
6454
6350
|
"user-submit"
|
6455
|
-
).pipe(
|
6351
|
+
).pipe(Ht(this.provider$)).subscribe(([s, i]) => {
|
6456
6352
|
i && i.onUserSubmit(s.detail);
|
6457
|
-
}), this._addHeaderOptions(), this.provider$.pipe(
|
6353
|
+
}), this._addHeaderOptions(), this.provider$.pipe(Ht(this.provider$)).subscribe(([s, i]) => {
|
6458
6354
|
i && i.showChatOverlay$.pipe().subscribe((r) => {
|
6459
6355
|
this.chatOverlayActive = r;
|
6460
6356
|
});
|
@@ -6545,11 +6441,11 @@ const Ts = Ai(S), Mn = class Mn extends Ts {
|
|
6545
6441
|
return;
|
6546
6442
|
const t = this.application.texts, s = t.getOrFallback("conversation.mute", "Mute"), i = t.getOrFallback("conversation.unmute", "Unmute"), r = e.addOption({
|
6547
6443
|
label: this.isMuted ? i : s,
|
6548
|
-
icon: this.isMuted ?
|
6444
|
+
icon: this.isMuted ? Jn.svg : es.svg,
|
6549
6445
|
closeOnClick: !1,
|
6550
6446
|
datatestid: "options-mute-button",
|
6551
6447
|
onClick: () => {
|
6552
|
-
this.isMuted ? (this.isMuted = !1, this.application.unmute(), r.updateLabel(s), r.updateIcon(
|
6448
|
+
this.isMuted ? (this.isMuted = !1, this.application.unmute(), r.updateLabel(s), r.updateIcon(es.svg)) : (this.isMuted = !0, this.application.mute(), r.updateLabel(i), r.updateIcon(Jn.svg));
|
6553
6449
|
}
|
6554
6450
|
});
|
6555
6451
|
}
|
@@ -6589,7 +6485,7 @@ const Ts = Ai(S), Mn = class Mn extends Ts {
|
|
6589
6485
|
const e = this.application.texts;
|
6590
6486
|
this.conversationState$.value === "waiting" && ((i = this.application) != null && i.storage) && this.platform && (this.stateMachine.setStorage(this.application.storage), this.conversationState$.next("init"));
|
6591
6487
|
const t = this.application.settings.components.conversation;
|
6592
|
-
return ((o = (r = t == null ? void 0 : t.properties) == null ? void 0 : r.chat) == null ? void 0 : o.isThirdPartyWidget) && (this.renderRoot.host.style.width = "100%"),
|
6488
|
+
return ((o = (r = t == null ? void 0 : t.properties) == null ? void 0 : r.chat) == null ? void 0 : o.isThirdPartyWidget) && (this.renderRoot.host.style.width = "100%"), b` <div
|
6593
6489
|
@action=${this._actionHandler}
|
6594
6490
|
class=${ye({
|
6595
6491
|
conversation: !0,
|
@@ -6599,7 +6495,7 @@ const Ts = Ai(S), Mn = class Mn extends Ts {
|
|
6599
6495
|
"overlay-mode": this.chatOverlayActive
|
6600
6496
|
})}
|
6601
6497
|
>
|
6602
|
-
${this.chatOverlayActive ?
|
6498
|
+
${this.chatOverlayActive ? b`<div class="overlay-header">
|
6603
6499
|
<button
|
6604
6500
|
class="overlay-button"
|
6605
6501
|
@click=${() => this.chatOverlayActive = !1}
|
@@ -6616,7 +6512,7 @@ const Ts = Ai(S), Mn = class Mn extends Ts {
|
|
6616
6512
|
aria-live="polite"
|
6617
6513
|
${j(this.conversationContentRef)}
|
6618
6514
|
>
|
6619
|
-
${this.toast.hasMessage() ?
|
6515
|
+
${this.toast.hasMessage() ? b`<div class="conversation__toast">${this.toast.message}</div>` : m}
|
6620
6516
|
<ace-conversation-feed
|
6621
6517
|
.entries=${this.entries}
|
6622
6518
|
.loading=${this.typing}
|
@@ -6670,7 +6566,7 @@ const Ts = Ai(S), Mn = class Mn extends Ts {
|
|
6670
6566
|
${this.textAreaLength > this.messageMaxLength ? this.messageMaxLengthLabel : ""}
|
6671
6567
|
</div>
|
6672
6568
|
</form>
|
6673
|
-
${this.disabledSkipToLatest ? m :
|
6569
|
+
${this.disabledSkipToLatest ? m : b`<button
|
6674
6570
|
class="skip-to-latest-message-button"
|
6675
6571
|
@click=${this.skipToLatestMessage}
|
6676
6572
|
>
|
@@ -6679,9 +6575,9 @@ const Ts = Ai(S), Mn = class Mn extends Ts {
|
|
6679
6575
|
</div>`;
|
6680
6576
|
}
|
6681
6577
|
};
|
6682
|
-
|
6683
|
-
|
6684
|
-
|
6578
|
+
In.styles = [
|
6579
|
+
Es.styles || [],
|
6580
|
+
T`
|
6685
6581
|
:host {
|
6686
6582
|
font-family: var(--font-family);
|
6687
6583
|
/* --send-icon-color: var(--gray-dark-color, #a6a6a6); */
|
@@ -6965,7 +6861,7 @@ Mn.styles = [
|
|
6965
6861
|
}
|
6966
6862
|
`
|
6967
6863
|
];
|
6968
|
-
let P =
|
6864
|
+
let P = In;
|
6969
6865
|
Z([
|
6970
6866
|
C()
|
6971
6867
|
], P.prototype, "message");
|
@@ -6993,7 +6889,7 @@ Z([
|
|
6993
6889
|
Z([
|
6994
6890
|
C()
|
6995
6891
|
], P.prototype, "typing");
|
6996
|
-
const
|
6892
|
+
const Ul = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
6997
6893
|
__proto__: null,
|
6998
6894
|
Conversation: P,
|
6999
6895
|
default: P
|
@@ -7001,12 +6897,12 @@ const Pl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
7001
6897
|
export {
|
7002
6898
|
Nr as Agent,
|
7003
6899
|
P as Conversation,
|
7004
|
-
|
6900
|
+
jl as ConversationComponent,
|
7005
6901
|
mt as ConversationEntry,
|
7006
6902
|
K as ConversationMessageType,
|
7007
|
-
|
7008
|
-
|
6903
|
+
Ts as ConversationPlatform,
|
6904
|
+
Nl as ConversationProvider,
|
7009
6905
|
Dr as User,
|
7010
|
-
|
6906
|
+
Hl as findPlainTextLinks,
|
7011
6907
|
jr as truncateLongLinks
|
7012
6908
|
};
|