@telia-ace/widget-conversation-flamingo 1.1.115-rc.7 → 1.1.115
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +78 -78
- package/index.mjs +988 -988
- 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 Fr = Object.defineProperty;
|
2
|
+
var qr = (n, e, t) => e in n ? Fr(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
|
3
|
+
var $ = (n, e, t) => qr(n, typeof e != "symbol" ? e + "" : e, t);
|
4
|
+
const Dl = async (n) => {
|
5
|
+
n.registerComponent("conversation", Promise.resolve().then(() => Nl));
|
6
6
|
};
|
7
|
-
class
|
7
|
+
class Ps {
|
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 Ps(), await e.register("conversation", t), t);
|
14
14
|
}
|
15
15
|
registerProvider(e, t) {
|
16
16
|
this.registeredProviders.set(e, t);
|
@@ -28,23 +28,23 @@ class Rs {
|
|
28
28
|
// return this.registeredProviders.get(providerKey);
|
29
29
|
// }
|
30
30
|
}
|
31
|
-
var
|
32
|
-
return
|
31
|
+
var Mt = function(n, e) {
|
32
|
+
return Mt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, s) {
|
33
33
|
t.__proto__ = s;
|
34
34
|
} || function(t, s) {
|
35
35
|
for (var r in s) Object.prototype.hasOwnProperty.call(s, r) && (t[r] = s[r]);
|
36
|
-
},
|
36
|
+
}, Mt(n, e);
|
37
37
|
};
|
38
|
-
function
|
38
|
+
function we(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
|
+
Mt(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 Zr(n, e, t, s) {
|
48
48
|
function r(i) {
|
49
49
|
return i instanceof t ? i : new t(function(o) {
|
50
50
|
o(i);
|
@@ -71,7 +71,7 @@ function qr(n, e, t, s) {
|
|
71
71
|
c((s = s.apply(n, e || [])).next());
|
72
72
|
});
|
73
73
|
}
|
74
|
-
function
|
74
|
+
function Os(n, e) {
|
75
75
|
var t = { label: 0, sent: function() {
|
76
76
|
if (i[0] & 1) throw i[1];
|
77
77
|
return i[1];
|
@@ -131,7 +131,7 @@ function Ps(n, e) {
|
|
131
131
|
return { value: c[0] ? c[1] : void 0, done: !0 };
|
132
132
|
}
|
133
133
|
}
|
134
|
-
function
|
134
|
+
function ve(n) {
|
135
135
|
var e = typeof Symbol == "function" && Symbol.iterator, t = e && n[e], s = 0;
|
136
136
|
if (t) return t.call(n);
|
137
137
|
if (n && typeof n.length == "number") return {
|
@@ -141,7 +141,7 @@ function me(n) {
|
|
141
141
|
};
|
142
142
|
throw new TypeError(e ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
143
143
|
}
|
144
|
-
function
|
144
|
+
function re(n, e) {
|
145
145
|
var t = typeof Symbol == "function" && n[Symbol.iterator];
|
146
146
|
if (!t) return n;
|
147
147
|
var s = t.call(n), r, i = [], o;
|
@@ -158,15 +158,15 @@ function se(n, e) {
|
|
158
158
|
}
|
159
159
|
return i;
|
160
160
|
}
|
161
|
-
function
|
161
|
+
function be(n, e, t) {
|
162
162
|
if (t || arguments.length === 2) for (var s = 0, r = e.length, i; s < r; s++)
|
163
163
|
(i || !(s in e)) && (i || (i = Array.prototype.slice.call(e, 0, s)), i[s] = e[s]);
|
164
164
|
return n.concat(i || Array.prototype.slice.call(e));
|
165
165
|
}
|
166
|
-
function
|
167
|
-
return this instanceof
|
166
|
+
function pe(n) {
|
167
|
+
return this instanceof pe ? (this.v = n, this) : new pe(n);
|
168
168
|
}
|
169
|
-
function
|
169
|
+
function Gr(n, e, t) {
|
170
170
|
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
171
171
|
var s = t.apply(n, e || []), r, i = [];
|
172
172
|
return r = Object.create((typeof AsyncIterator == "function" ? AsyncIterator : Object).prototype), a("next"), a("throw"), a("return", o), r[Symbol.asyncIterator] = function() {
|
@@ -179,8 +179,8 @@ function Zr(n, e, t) {
|
|
179
179
|
}
|
180
180
|
function a(p, g) {
|
181
181
|
s[p] && (r[p] = function(f) {
|
182
|
-
return new Promise(function(k,
|
183
|
-
i.push([p, f, k,
|
182
|
+
return new Promise(function(k, G) {
|
183
|
+
i.push([p, f, k, G]) > 1 || l(p, f);
|
184
184
|
});
|
185
185
|
}, g && (r[p] = g(r[p])));
|
186
186
|
}
|
@@ -192,7 +192,7 @@ function Zr(n, e, t) {
|
|
192
192
|
}
|
193
193
|
}
|
194
194
|
function c(p) {
|
195
|
-
p.value instanceof
|
195
|
+
p.value instanceof pe ? Promise.resolve(p.value.v).then(h, u) : d(i[0][2], p);
|
196
196
|
}
|
197
197
|
function h(p) {
|
198
198
|
l("next", p);
|
@@ -207,7 +207,7 @@ function Zr(n, e, t) {
|
|
207
207
|
function Wr(n) {
|
208
208
|
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
209
209
|
var e = n[Symbol.asyncIterator], t;
|
210
|
-
return e ? e.call(n) : (n = typeof
|
210
|
+
return e ? e.call(n) : (n = typeof ve == "function" ? ve(n) : n[Symbol.iterator](), t = {}, s("next"), s("throw"), s("return"), t[Symbol.asyncIterator] = function() {
|
211
211
|
return this;
|
212
212
|
}, t);
|
213
213
|
function s(i) {
|
@@ -226,13 +226,13 @@ function Wr(n) {
|
|
226
226
|
function x(n) {
|
227
227
|
return typeof n == "function";
|
228
228
|
}
|
229
|
-
function
|
229
|
+
function Is(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
|
235
|
+
var At = Is(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, r) {
|
@@ -241,13 +241,13 @@ var Ct = Os(function(n) {
|
|
241
241
|
`) : "", this.name = "UnsubscriptionError", this.errors = t;
|
242
242
|
};
|
243
243
|
});
|
244
|
-
function
|
244
|
+
function zt(n, e) {
|
245
245
|
if (n) {
|
246
246
|
var t = n.indexOf(e);
|
247
247
|
0 <= t && n.splice(t, 1);
|
248
248
|
}
|
249
249
|
}
|
250
|
-
var
|
250
|
+
var gt = function() {
|
251
251
|
function n(e) {
|
252
252
|
this.initialTeardown = e, this.closed = !1, this._parentage = null, this._finalizers = null;
|
253
253
|
}
|
@@ -259,7 +259,7 @@ var ft = function() {
|
|
259
259
|
if (o)
|
260
260
|
if (this._parentage = null, Array.isArray(o))
|
261
261
|
try {
|
262
|
-
for (var a =
|
262
|
+
for (var a = ve(o), l = a.next(); !l.done; l = a.next()) {
|
263
263
|
var c = l.value;
|
264
264
|
c.remove(this);
|
265
265
|
}
|
@@ -279,18 +279,18 @@ var ft = function() {
|
|
279
279
|
try {
|
280
280
|
h();
|
281
281
|
} catch (f) {
|
282
|
-
i = f instanceof
|
282
|
+
i = f instanceof At ? f.errors : [f];
|
283
283
|
}
|
284
284
|
var u = this._finalizers;
|
285
285
|
if (u) {
|
286
286
|
this._finalizers = null;
|
287
287
|
try {
|
288
|
-
for (var d =
|
288
|
+
for (var d = ve(u), p = d.next(); !p.done; p = d.next()) {
|
289
289
|
var g = p.value;
|
290
290
|
try {
|
291
|
-
|
291
|
+
Nn(g);
|
292
292
|
} catch (f) {
|
293
|
-
i = i ?? [], f instanceof
|
293
|
+
i = i ?? [], f instanceof At ? i = be(be([], re(i)), re(f.errors)) : i.push(f);
|
294
294
|
}
|
295
295
|
}
|
296
296
|
} catch (f) {
|
@@ -304,13 +304,13 @@ var ft = function() {
|
|
304
304
|
}
|
305
305
|
}
|
306
306
|
if (i)
|
307
|
-
throw new
|
307
|
+
throw new At(i);
|
308
308
|
}
|
309
309
|
}, n.prototype.add = function(e) {
|
310
310
|
var t;
|
311
311
|
if (e && e !== this)
|
312
312
|
if (this.closed)
|
313
|
-
|
313
|
+
Nn(e);
|
314
314
|
else {
|
315
315
|
if (e instanceof n) {
|
316
316
|
if (e.closed || e._hasParent(this))
|
@@ -327,52 +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) && zt(t, e);
|
331
331
|
}, n.prototype.remove = function(e) {
|
332
332
|
var t = this._finalizers;
|
333
|
-
t &&
|
333
|
+
t && zt(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
|
340
|
-
return n instanceof
|
338
|
+
}(), Ms = gt.EMPTY;
|
339
|
+
function zs(n) {
|
340
|
+
return n instanceof gt || n && "closed" in n && x(n.remove) && x(n.add) && x(n.unsubscribe);
|
341
341
|
}
|
342
|
-
function
|
342
|
+
function Nn(n) {
|
343
343
|
x(n) ? n() : n.unsubscribe();
|
344
344
|
}
|
345
|
-
var
|
345
|
+
var Kr = {
|
346
346
|
Promise: void 0
|
347
|
-
},
|
347
|
+
}, Qr = {
|
348
348
|
setTimeout: function(n, e) {
|
349
349
|
for (var t = [], s = 2; s < arguments.length; s++)
|
350
350
|
t[s - 2] = arguments[s];
|
351
|
-
return setTimeout.apply(void 0,
|
351
|
+
return setTimeout.apply(void 0, be([n, e], re(t)));
|
352
352
|
},
|
353
353
|
clearTimeout: function(n) {
|
354
354
|
return clearTimeout(n);
|
355
355
|
},
|
356
356
|
delegate: void 0
|
357
357
|
};
|
358
|
-
function
|
359
|
-
|
358
|
+
function Us(n) {
|
359
|
+
Qr.setTimeout(function() {
|
360
360
|
throw n;
|
361
361
|
});
|
362
362
|
}
|
363
|
-
function
|
363
|
+
function Ye() {
|
364
364
|
}
|
365
|
-
function
|
365
|
+
function Qe(n) {
|
366
366
|
n();
|
367
367
|
}
|
368
|
-
var
|
369
|
-
|
368
|
+
var Vt = function(n) {
|
369
|
+
we(e, n);
|
370
370
|
function e(t) {
|
371
371
|
var s = n.call(this) || this;
|
372
|
-
return s.isStopped = !1, t ? (s.destination = t,
|
372
|
+
return s.isStopped = !1, t ? (s.destination = t, zs(t) && t.add(s)) : s.destination = Vr, s;
|
373
373
|
}
|
374
374
|
return e.create = function(t, s, r) {
|
375
|
-
return new
|
375
|
+
return new Ut(t, s, r);
|
376
376
|
}, e.prototype.next = function(t) {
|
377
377
|
this.isStopped || this._next(t);
|
378
378
|
}, e.prototype.error = function(t) {
|
@@ -396,7 +396,7 @@ var Xt = function(n) {
|
|
396
396
|
this.unsubscribe();
|
397
397
|
}
|
398
398
|
}, e;
|
399
|
-
}(
|
399
|
+
}(gt), Xr = function() {
|
400
400
|
function n(e) {
|
401
401
|
this.partialObserver = e;
|
402
402
|
}
|
@@ -406,7 +406,7 @@ var Xt = function(n) {
|
|
406
406
|
try {
|
407
407
|
t.next(e);
|
408
408
|
} catch (s) {
|
409
|
-
|
409
|
+
Ge(s);
|
410
410
|
}
|
411
411
|
}, n.prototype.error = function(e) {
|
412
412
|
var t = this.partialObserver;
|
@@ -414,50 +414,50 @@ var Xt = function(n) {
|
|
414
414
|
try {
|
415
415
|
t.error(e);
|
416
416
|
} catch (s) {
|
417
|
-
|
417
|
+
Ge(s);
|
418
418
|
}
|
419
419
|
else
|
420
|
-
|
420
|
+
Ge(e);
|
421
421
|
}, n.prototype.complete = function() {
|
422
422
|
var e = this.partialObserver;
|
423
423
|
if (e.complete)
|
424
424
|
try {
|
425
425
|
e.complete();
|
426
426
|
} catch (t) {
|
427
|
-
|
427
|
+
Ge(t);
|
428
428
|
}
|
429
429
|
}, n;
|
430
|
-
}(),
|
431
|
-
|
430
|
+
}(), Ut = function(n) {
|
431
|
+
we(e, n);
|
432
432
|
function e(t, s, r) {
|
433
433
|
var i = n.call(this) || this, o;
|
434
434
|
return x(t) || !t ? o = {
|
435
435
|
next: t ?? void 0,
|
436
436
|
error: s ?? void 0,
|
437
437
|
complete: r ?? void 0
|
438
|
-
} : o = t, i.destination = new
|
438
|
+
} : o = t, i.destination = new Xr(o), i;
|
439
439
|
}
|
440
440
|
return e;
|
441
|
-
}(
|
442
|
-
function
|
443
|
-
|
441
|
+
}(Vt);
|
442
|
+
function Ge(n) {
|
443
|
+
Us(n);
|
444
444
|
}
|
445
|
-
function
|
445
|
+
function Yr(n) {
|
446
446
|
throw n;
|
447
447
|
}
|
448
|
-
var
|
448
|
+
var Vr = {
|
449
449
|
closed: !0,
|
450
|
-
next:
|
451
|
-
error:
|
452
|
-
complete:
|
453
|
-
},
|
450
|
+
next: Ye,
|
451
|
+
error: Yr,
|
452
|
+
complete: Ye
|
453
|
+
}, Jt = function() {
|
454
454
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
455
455
|
}();
|
456
|
-
function
|
456
|
+
function Ne(n) {
|
457
457
|
return n;
|
458
458
|
}
|
459
|
-
function
|
460
|
-
return n.length === 0 ?
|
459
|
+
function Jr(n) {
|
460
|
+
return n.length === 0 ? Ne : n.length === 1 ? n[0] : function(t) {
|
461
461
|
return n.reduce(function(s, r) {
|
462
462
|
return r(s);
|
463
463
|
}, t);
|
@@ -471,8 +471,8 @@ var L = function() {
|
|
471
471
|
var t = new n();
|
472
472
|
return t.source = this, t.operator = e, t;
|
473
473
|
}, n.prototype.subscribe = function(e, t, s) {
|
474
|
-
var r = this, i =
|
475
|
-
return
|
474
|
+
var r = this, i = ti(e) ? e : new Ut(e, t, s);
|
475
|
+
return Qe(function() {
|
476
476
|
var o = r, a = o.operator, l = o.source;
|
477
477
|
i.add(a ? a.call(i, l) : l ? r._subscribe(i) : r._trySubscribe(i));
|
478
478
|
}), i;
|
@@ -484,8 +484,8 @@ var L = function() {
|
|
484
484
|
}
|
485
485
|
}, n.prototype.forEach = function(e, t) {
|
486
486
|
var s = this;
|
487
|
-
return t =
|
488
|
-
var o = new
|
487
|
+
return t = Hn(t), new t(function(r, i) {
|
488
|
+
var o = new Ut({
|
489
489
|
next: function(a) {
|
490
490
|
try {
|
491
491
|
e(a);
|
@@ -501,15 +501,15 @@ var L = function() {
|
|
501
501
|
}, n.prototype._subscribe = function(e) {
|
502
502
|
var t;
|
503
503
|
return (t = this.source) === null || t === void 0 ? void 0 : t.subscribe(e);
|
504
|
-
}, n.prototype[
|
504
|
+
}, n.prototype[Jt] = function() {
|
505
505
|
return this;
|
506
506
|
}, n.prototype.pipe = function() {
|
507
507
|
for (var e = [], t = 0; t < arguments.length; t++)
|
508
508
|
e[t] = arguments[t];
|
509
|
-
return
|
509
|
+
return Jr(e)(this);
|
510
510
|
}, n.prototype.toPromise = function(e) {
|
511
511
|
var t = this;
|
512
|
-
return e =
|
512
|
+
return e = Hn(e), new e(function(s, r) {
|
513
513
|
var i;
|
514
514
|
t.subscribe(function(o) {
|
515
515
|
return i = o;
|
@@ -523,22 +523,22 @@ var L = function() {
|
|
523
523
|
return new n(e);
|
524
524
|
}, n;
|
525
525
|
}();
|
526
|
-
function
|
526
|
+
function Hn(n) {
|
527
527
|
var e;
|
528
|
-
return (e = n ??
|
529
|
-
}
|
530
|
-
function Jr(n) {
|
531
|
-
return n && x(n.next) && x(n.error) && x(n.complete);
|
528
|
+
return (e = n ?? Kr.Promise) !== null && e !== void 0 ? e : Promise;
|
532
529
|
}
|
533
530
|
function ei(n) {
|
534
|
-
return n && n
|
531
|
+
return n && x(n.next) && x(n.error) && x(n.complete);
|
535
532
|
}
|
536
533
|
function ti(n) {
|
534
|
+
return n && n instanceof Vt || ei(n) && zs(n);
|
535
|
+
}
|
536
|
+
function ni(n) {
|
537
537
|
return x(n == null ? void 0 : n.lift);
|
538
538
|
}
|
539
539
|
function V(n) {
|
540
540
|
return function(e) {
|
541
|
-
if (
|
541
|
+
if (ni(e))
|
542
542
|
return e.lift(function(t) {
|
543
543
|
try {
|
544
544
|
return n(t, this);
|
@@ -550,10 +550,10 @@ function V(n) {
|
|
550
550
|
};
|
551
551
|
}
|
552
552
|
function U(n, e, t, s, r) {
|
553
|
-
return new
|
553
|
+
return new si(n, e, t, s, r);
|
554
554
|
}
|
555
|
-
var
|
556
|
-
|
555
|
+
var si = function(n) {
|
556
|
+
we(e, n);
|
557
557
|
function e(t, s, r, i, o, a) {
|
558
558
|
var l = n.call(this, t) || this;
|
559
559
|
return l.onFinalize = o, l.shouldUnsubscribe = a, l._next = s ? function(c) {
|
@@ -587,30 +587,30 @@ var ni = function(n) {
|
|
587
587
|
n.prototype.unsubscribe.call(this), !s && ((t = this.onFinalize) === null || t === void 0 || t.call(this));
|
588
588
|
}
|
589
589
|
}, e;
|
590
|
-
}(
|
590
|
+
}(Vt), ri = Is(function(n) {
|
591
591
|
return function() {
|
592
592
|
n(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
593
593
|
};
|
594
594
|
}), _ = function(n) {
|
595
|
-
|
595
|
+
we(e, n);
|
596
596
|
function e() {
|
597
597
|
var t = n.call(this) || this;
|
598
598
|
return t.closed = !1, t.currentObservers = null, t.observers = [], t.isStopped = !1, t.hasError = !1, t.thrownError = null, t;
|
599
599
|
}
|
600
600
|
return e.prototype.lift = function(t) {
|
601
|
-
var s = new
|
601
|
+
var s = new Dn(this, this);
|
602
602
|
return s.operator = t, s;
|
603
603
|
}, e.prototype._throwIfClosed = function() {
|
604
604
|
if (this.closed)
|
605
|
-
throw new
|
605
|
+
throw new ri();
|
606
606
|
}, e.prototype.next = function(t) {
|
607
607
|
var s = this;
|
608
|
-
|
608
|
+
Qe(function() {
|
609
609
|
var r, i;
|
610
610
|
if (s._throwIfClosed(), !s.isStopped) {
|
611
611
|
s.currentObservers || (s.currentObservers = Array.from(s.observers));
|
612
612
|
try {
|
613
|
-
for (var o =
|
613
|
+
for (var o = ve(s.currentObservers), a = o.next(); !a.done; a = o.next()) {
|
614
614
|
var l = a.value;
|
615
615
|
l.next(t);
|
616
616
|
}
|
@@ -627,7 +627,7 @@ var ni = function(n) {
|
|
627
627
|
});
|
628
628
|
}, e.prototype.error = function(t) {
|
629
629
|
var s = this;
|
630
|
-
|
630
|
+
Qe(function() {
|
631
631
|
if (s._throwIfClosed(), !s.isStopped) {
|
632
632
|
s.hasError = s.isStopped = !0, s.thrownError = t;
|
633
633
|
for (var r = s.observers; r.length; )
|
@@ -636,7 +636,7 @@ var ni = function(n) {
|
|
636
636
|
});
|
637
637
|
}, e.prototype.complete = function() {
|
638
638
|
var t = this;
|
639
|
-
|
639
|
+
Qe(function() {
|
640
640
|
if (t._throwIfClosed(), !t.isStopped) {
|
641
641
|
t.isStopped = !0;
|
642
642
|
for (var s = t.observers; s.length; )
|
@@ -658,8 +658,8 @@ var ni = function(n) {
|
|
658
658
|
return this._throwIfClosed(), this._checkFinalizedStatuses(t), this._innerSubscribe(t);
|
659
659
|
}, e.prototype._innerSubscribe = function(t) {
|
660
660
|
var s = this, r = this, i = r.hasError, o = r.isStopped, a = r.observers;
|
661
|
-
return i || o ?
|
662
|
-
s.currentObservers = null,
|
661
|
+
return i || o ? Ms : (this.currentObservers = null, a.push(t), new gt(function() {
|
662
|
+
s.currentObservers = null, zt(a, t);
|
663
663
|
}));
|
664
664
|
}, e.prototype._checkFinalizedStatuses = function(t) {
|
665
665
|
var s = this, r = s.hasError, i = s.thrownError, o = s.isStopped;
|
@@ -668,10 +668,10 @@ var ni = function(n) {
|
|
668
668
|
var t = new L();
|
669
669
|
return t.source = this, t;
|
670
670
|
}, e.create = function(t, s) {
|
671
|
-
return new
|
671
|
+
return new Dn(t, s);
|
672
672
|
}, e;
|
673
|
-
}(L),
|
674
|
-
|
673
|
+
}(L), Dn = function(n) {
|
674
|
+
we(e, n);
|
675
675
|
function e(t, s) {
|
676
676
|
var r = n.call(this) || this;
|
677
677
|
return r.destination = t, r.source = s, r;
|
@@ -687,10 +687,10 @@ var ni = function(n) {
|
|
687
687
|
(s = (t = this.destination) === null || t === void 0 ? void 0 : t.complete) === null || s === void 0 || s.call(t);
|
688
688
|
}, e.prototype._subscribe = function(t) {
|
689
689
|
var s, r;
|
690
|
-
return (r = (s = this.source) === null || s === void 0 ? void 0 : s.subscribe(t)) !== null && r !== void 0 ? r :
|
690
|
+
return (r = (s = this.source) === null || s === void 0 ? void 0 : s.subscribe(t)) !== null && r !== void 0 ? r : Ms;
|
691
691
|
}, e;
|
692
692
|
}(_), z = function(n) {
|
693
|
-
|
693
|
+
we(e, n);
|
694
694
|
function e(t) {
|
695
695
|
var s = n.call(this) || this;
|
696
696
|
return s._value = t, s;
|
@@ -712,63 +712,63 @@ var ni = function(n) {
|
|
712
712
|
}, e.prototype.next = function(t) {
|
713
713
|
n.prototype.next.call(this, this._value = t);
|
714
714
|
}, e;
|
715
|
-
}(_),
|
715
|
+
}(_), He = new L(function(n) {
|
716
716
|
return n.complete();
|
717
717
|
});
|
718
|
-
function
|
718
|
+
function ii(n) {
|
719
719
|
return n && x(n.schedule);
|
720
720
|
}
|
721
|
-
function
|
721
|
+
function en(n) {
|
722
722
|
return n[n.length - 1];
|
723
723
|
}
|
724
|
-
function
|
725
|
-
return x(
|
724
|
+
function Bs(n) {
|
725
|
+
return x(en(n)) ? n.pop() : void 0;
|
726
726
|
}
|
727
|
-
function
|
728
|
-
return
|
727
|
+
function tn(n) {
|
728
|
+
return ii(en(n)) ? n.pop() : void 0;
|
729
729
|
}
|
730
|
-
function
|
731
|
-
return typeof
|
730
|
+
function oi(n, e) {
|
731
|
+
return typeof en(n) == "number" ? n.pop() : e;
|
732
732
|
}
|
733
|
-
var
|
733
|
+
var nn = function(n) {
|
734
734
|
return n && typeof n.length == "number" && typeof n != "function";
|
735
735
|
};
|
736
|
-
function Bs(n) {
|
737
|
-
return x(n == null ? void 0 : n.then);
|
738
|
-
}
|
739
736
|
function js(n) {
|
740
|
-
return x(n
|
737
|
+
return x(n == null ? void 0 : n.then);
|
741
738
|
}
|
742
739
|
function Ns(n) {
|
743
|
-
return
|
740
|
+
return x(n[Jt]);
|
744
741
|
}
|
745
742
|
function Hs(n) {
|
743
|
+
return Symbol.asyncIterator && x(n == null ? void 0 : n[Symbol.asyncIterator]);
|
744
|
+
}
|
745
|
+
function Ds(n) {
|
746
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.");
|
747
747
|
}
|
748
|
-
function
|
748
|
+
function ai() {
|
749
749
|
return typeof Symbol != "function" || !Symbol.iterator ? "@@iterator" : Symbol.iterator;
|
750
750
|
}
|
751
|
-
var
|
752
|
-
function Fs(n) {
|
753
|
-
return x(n == null ? void 0 : n[Ds]);
|
754
|
-
}
|
751
|
+
var Fs = ai();
|
755
752
|
function qs(n) {
|
756
|
-
return
|
753
|
+
return x(n == null ? void 0 : n[Fs]);
|
754
|
+
}
|
755
|
+
function Zs(n) {
|
756
|
+
return Gr(this, arguments, function() {
|
757
757
|
var t, s, r, i;
|
758
|
-
return
|
758
|
+
return Os(this, function(o) {
|
759
759
|
switch (o.label) {
|
760
760
|
case 0:
|
761
761
|
t = n.getReader(), o.label = 1;
|
762
762
|
case 1:
|
763
763
|
o.trys.push([1, , 9, 10]), o.label = 2;
|
764
764
|
case 2:
|
765
|
-
return [4,
|
765
|
+
return [4, pe(t.read())];
|
766
766
|
case 3:
|
767
|
-
return s = o.sent(), r = s.value, i = s.done, i ? [4,
|
767
|
+
return s = o.sent(), r = s.value, i = s.done, i ? [4, pe(void 0)] : [3, 5];
|
768
768
|
case 4:
|
769
769
|
return [2, o.sent()];
|
770
770
|
case 5:
|
771
|
-
return [4,
|
771
|
+
return [4, pe(r)];
|
772
772
|
case 6:
|
773
773
|
return [4, o.sent()];
|
774
774
|
case 7:
|
@@ -783,57 +783,57 @@ function qs(n) {
|
|
783
783
|
});
|
784
784
|
});
|
785
785
|
}
|
786
|
-
function
|
786
|
+
function Gs(n) {
|
787
787
|
return x(n == null ? void 0 : n.getReader);
|
788
788
|
}
|
789
789
|
function D(n) {
|
790
790
|
if (n instanceof L)
|
791
791
|
return n;
|
792
792
|
if (n != null) {
|
793
|
-
if (
|
794
|
-
return ai(n);
|
795
|
-
if (tn(n))
|
793
|
+
if (Ns(n))
|
796
794
|
return li(n);
|
797
|
-
if (
|
795
|
+
if (nn(n))
|
798
796
|
return ci(n);
|
799
|
-
if (
|
800
|
-
return Ws(n);
|
801
|
-
if (Fs(n))
|
797
|
+
if (js(n))
|
802
798
|
return hi(n);
|
803
|
-
if (
|
799
|
+
if (Hs(n))
|
800
|
+
return Ws(n);
|
801
|
+
if (qs(n))
|
804
802
|
return ui(n);
|
803
|
+
if (Gs(n))
|
804
|
+
return di(n);
|
805
805
|
}
|
806
|
-
throw
|
806
|
+
throw Ds(n);
|
807
807
|
}
|
808
|
-
function
|
808
|
+
function li(n) {
|
809
809
|
return new L(function(e) {
|
810
|
-
var t = n[
|
810
|
+
var t = n[Jt]();
|
811
811
|
if (x(t.subscribe))
|
812
812
|
return t.subscribe(e);
|
813
813
|
throw new TypeError("Provided object does not correctly implement Symbol.observable");
|
814
814
|
});
|
815
815
|
}
|
816
|
-
function
|
816
|
+
function ci(n) {
|
817
817
|
return new L(function(e) {
|
818
818
|
for (var t = 0; t < n.length && !e.closed; t++)
|
819
819
|
e.next(n[t]);
|
820
820
|
e.complete();
|
821
821
|
});
|
822
822
|
}
|
823
|
-
function
|
823
|
+
function hi(n) {
|
824
824
|
return new L(function(e) {
|
825
825
|
n.then(function(t) {
|
826
826
|
e.closed || (e.next(t), e.complete());
|
827
827
|
}, function(t) {
|
828
828
|
return e.error(t);
|
829
|
-
}).then(null,
|
829
|
+
}).then(null, Us);
|
830
830
|
});
|
831
831
|
}
|
832
|
-
function
|
832
|
+
function ui(n) {
|
833
833
|
return new L(function(e) {
|
834
834
|
var t, s;
|
835
835
|
try {
|
836
|
-
for (var r =
|
836
|
+
for (var r = ve(n), i = r.next(); !i.done; i = r.next()) {
|
837
837
|
var o = i.value;
|
838
838
|
if (e.next(o), e.closed)
|
839
839
|
return;
|
@@ -852,19 +852,19 @@ function hi(n) {
|
|
852
852
|
}
|
853
853
|
function Ws(n) {
|
854
854
|
return new L(function(e) {
|
855
|
-
|
855
|
+
pi(n, e).catch(function(t) {
|
856
856
|
return e.error(t);
|
857
857
|
});
|
858
858
|
});
|
859
859
|
}
|
860
|
-
function
|
861
|
-
return Ws(
|
860
|
+
function di(n) {
|
861
|
+
return Ws(Zs(n));
|
862
862
|
}
|
863
|
-
function
|
863
|
+
function pi(n, e) {
|
864
864
|
var t, s, r, i;
|
865
|
-
return
|
865
|
+
return Zr(this, void 0, void 0, function() {
|
866
866
|
var o, a;
|
867
|
-
return
|
867
|
+
return Os(this, function(l) {
|
868
868
|
switch (l.label) {
|
869
869
|
case 0:
|
870
870
|
l.trys.push([0, 5, 6, 11]), t = Wr(n), l.label = 1;
|
@@ -898,7 +898,7 @@ function di(n, e) {
|
|
898
898
|
});
|
899
899
|
});
|
900
900
|
}
|
901
|
-
function
|
901
|
+
function K(n, e, t, s, r) {
|
902
902
|
s === void 0 && (s = 0), r === void 0 && (r = !1);
|
903
903
|
var i = e.schedule(function() {
|
904
904
|
t(), r ? n.add(this.schedule(null, s)) : this.unsubscribe();
|
@@ -906,37 +906,37 @@ function Y(n, e, t, s, r) {
|
|
906
906
|
if (n.add(i), !r)
|
907
907
|
return i;
|
908
908
|
}
|
909
|
-
function
|
909
|
+
function Ks(n, e) {
|
910
910
|
return e === void 0 && (e = 0), V(function(t, s) {
|
911
911
|
t.subscribe(U(s, function(r) {
|
912
|
-
return
|
912
|
+
return K(s, n, function() {
|
913
913
|
return s.next(r);
|
914
914
|
}, e);
|
915
915
|
}, function() {
|
916
|
-
return
|
916
|
+
return K(s, n, function() {
|
917
917
|
return s.complete();
|
918
918
|
}, e);
|
919
919
|
}, function(r) {
|
920
|
-
return
|
920
|
+
return K(s, n, function() {
|
921
921
|
return s.error(r);
|
922
922
|
}, e);
|
923
923
|
}));
|
924
924
|
});
|
925
925
|
}
|
926
|
-
function
|
926
|
+
function Qs(n, e) {
|
927
927
|
return e === void 0 && (e = 0), V(function(t, s) {
|
928
928
|
s.add(n.schedule(function() {
|
929
929
|
return t.subscribe(s);
|
930
930
|
}, e));
|
931
931
|
});
|
932
932
|
}
|
933
|
-
function pi(n, e) {
|
934
|
-
return D(n).pipe(Ys(e), Gs(e));
|
935
|
-
}
|
936
933
|
function fi(n, e) {
|
937
|
-
return D(n).pipe(
|
934
|
+
return D(n).pipe(Qs(e), Ks(e));
|
938
935
|
}
|
939
936
|
function gi(n, e) {
|
937
|
+
return D(n).pipe(Qs(e), Ks(e));
|
938
|
+
}
|
939
|
+
function mi(n, e) {
|
940
940
|
return new L(function(t) {
|
941
941
|
var s = 0;
|
942
942
|
return e.schedule(function() {
|
@@ -944,11 +944,11 @@ function gi(n, e) {
|
|
944
944
|
});
|
945
945
|
});
|
946
946
|
}
|
947
|
-
function
|
947
|
+
function vi(n, e) {
|
948
948
|
return new L(function(t) {
|
949
949
|
var s;
|
950
|
-
return
|
951
|
-
s = n[
|
950
|
+
return K(t, e, function() {
|
951
|
+
s = n[Fs](), K(t, e, function() {
|
952
952
|
var r, i, o;
|
953
953
|
try {
|
954
954
|
r = s.next(), i = r.value, o = r.done;
|
@@ -963,13 +963,13 @@ function mi(n, e) {
|
|
963
963
|
};
|
964
964
|
});
|
965
965
|
}
|
966
|
-
function
|
966
|
+
function Xs(n, e) {
|
967
967
|
if (!n)
|
968
968
|
throw new Error("Iterable cannot be null");
|
969
969
|
return new L(function(t) {
|
970
|
-
|
970
|
+
K(t, e, function() {
|
971
971
|
var s = n[Symbol.asyncIterator]();
|
972
|
-
|
972
|
+
K(t, e, function() {
|
973
973
|
s.next().then(function(r) {
|
974
974
|
r.done ? t.complete() : t.next(r.value);
|
975
975
|
});
|
@@ -977,36 +977,36 @@ function Ks(n, e) {
|
|
977
977
|
});
|
978
978
|
});
|
979
979
|
}
|
980
|
-
function vi(n, e) {
|
981
|
-
return Ks(qs(n), e);
|
982
|
-
}
|
983
980
|
function bi(n, e) {
|
981
|
+
return Xs(Zs(n), e);
|
982
|
+
}
|
983
|
+
function yi(n, e) {
|
984
984
|
if (n != null) {
|
985
|
-
if (js(n))
|
986
|
-
return pi(n, e);
|
987
|
-
if (tn(n))
|
988
|
-
return gi(n, e);
|
989
|
-
if (Bs(n))
|
990
|
-
return fi(n, e);
|
991
985
|
if (Ns(n))
|
992
|
-
return
|
993
|
-
if (
|
986
|
+
return fi(n, e);
|
987
|
+
if (nn(n))
|
994
988
|
return mi(n, e);
|
995
|
-
if (
|
989
|
+
if (js(n))
|
990
|
+
return gi(n, e);
|
991
|
+
if (Hs(n))
|
992
|
+
return Xs(n, e);
|
993
|
+
if (qs(n))
|
996
994
|
return vi(n, e);
|
995
|
+
if (Gs(n))
|
996
|
+
return bi(n, e);
|
997
997
|
}
|
998
|
-
throw
|
998
|
+
throw Ds(n);
|
999
999
|
}
|
1000
|
-
function
|
1001
|
-
return e ?
|
1000
|
+
function mt(n, e) {
|
1001
|
+
return e ? yi(n, e) : D(n);
|
1002
1002
|
}
|
1003
|
-
function
|
1003
|
+
function Bt() {
|
1004
1004
|
for (var n = [], e = 0; e < arguments.length; e++)
|
1005
1005
|
n[e] = arguments[e];
|
1006
|
-
var t =
|
1007
|
-
return
|
1006
|
+
var t = tn(n);
|
1007
|
+
return mt(n, t);
|
1008
1008
|
}
|
1009
|
-
function
|
1009
|
+
function Ve(n, e) {
|
1010
1010
|
return V(function(t, s) {
|
1011
1011
|
var r = 0;
|
1012
1012
|
t.subscribe(U(s, function(i) {
|
@@ -1014,23 +1014,23 @@ function Xe(n, e) {
|
|
1014
1014
|
}));
|
1015
1015
|
});
|
1016
1016
|
}
|
1017
|
-
var
|
1018
|
-
function
|
1019
|
-
return
|
1017
|
+
var $i = Array.isArray;
|
1018
|
+
function xi(n, e) {
|
1019
|
+
return $i(e) ? n.apply(void 0, be([], re(e))) : n(e);
|
1020
1020
|
}
|
1021
|
-
function
|
1022
|
-
return
|
1023
|
-
return
|
1021
|
+
function Ys(n) {
|
1022
|
+
return Ve(function(e) {
|
1023
|
+
return xi(n, e);
|
1024
1024
|
});
|
1025
1025
|
}
|
1026
|
-
var
|
1027
|
-
function
|
1026
|
+
var wi = Array.isArray, ki = Object.getPrototypeOf, Si = Object.prototype, _i = Object.keys;
|
1027
|
+
function Ci(n) {
|
1028
1028
|
if (n.length === 1) {
|
1029
1029
|
var e = n[0];
|
1030
|
-
if (
|
1030
|
+
if (wi(e))
|
1031
1031
|
return { args: e, keys: null };
|
1032
|
-
if (
|
1033
|
-
var t =
|
1032
|
+
if (Ai(e)) {
|
1033
|
+
var t = _i(e);
|
1034
1034
|
return {
|
1035
1035
|
args: t.map(function(s) {
|
1036
1036
|
return e[s];
|
@@ -1041,31 +1041,31 @@ function _i(n) {
|
|
1041
1041
|
}
|
1042
1042
|
return { args: n, keys: null };
|
1043
1043
|
}
|
1044
|
-
function
|
1045
|
-
return n && typeof n == "object" &&
|
1044
|
+
function Ai(n) {
|
1045
|
+
return n && typeof n == "object" && ki(n) === Si;
|
1046
1046
|
}
|
1047
|
-
function
|
1047
|
+
function Ei(n, e) {
|
1048
1048
|
return n.reduce(function(t, s, r) {
|
1049
1049
|
return t[s] = e[r], t;
|
1050
1050
|
}, {});
|
1051
1051
|
}
|
1052
|
-
function
|
1052
|
+
function Li() {
|
1053
1053
|
for (var n = [], e = 0; e < arguments.length; e++)
|
1054
1054
|
n[e] = arguments[e];
|
1055
|
-
var t =
|
1055
|
+
var t = tn(n), s = Bs(n), r = Ci(n), i = r.args, o = r.keys;
|
1056
1056
|
if (i.length === 0)
|
1057
|
-
return
|
1058
|
-
var a = new L(
|
1059
|
-
return
|
1060
|
-
} :
|
1061
|
-
return s ? a.pipe(
|
1062
|
-
}
|
1063
|
-
function
|
1064
|
-
return t === void 0 && (t =
|
1065
|
-
|
1057
|
+
return mt([], t);
|
1058
|
+
var a = new L(Ti(i, t, o ? function(l) {
|
1059
|
+
return Ei(o, l);
|
1060
|
+
} : Ne));
|
1061
|
+
return s ? a.pipe(Ys(s)) : a;
|
1062
|
+
}
|
1063
|
+
function Ti(n, e, t) {
|
1064
|
+
return t === void 0 && (t = Ne), function(s) {
|
1065
|
+
Fn(e, function() {
|
1066
1066
|
for (var r = n.length, i = new Array(r), o = r, a = r, l = function(h) {
|
1067
|
-
|
1068
|
-
var u =
|
1067
|
+
Fn(e, function() {
|
1068
|
+
var u = mt(n[h], e), d = !1;
|
1069
1069
|
u.subscribe(U(s, function(p) {
|
1070
1070
|
i[h] = p, d || (d = !0, a--), a || s.next(t(i.slice()));
|
1071
1071
|
}, function() {
|
@@ -1077,10 +1077,10 @@ function Li(n, e, t) {
|
|
1077
1077
|
}, s);
|
1078
1078
|
};
|
1079
1079
|
}
|
1080
|
-
function
|
1081
|
-
n ?
|
1080
|
+
function Fn(n, e, t) {
|
1081
|
+
n ? K(t, n, e) : e();
|
1082
1082
|
}
|
1083
|
-
function
|
1083
|
+
function Ri(n, e, t, s, r, i, o, a) {
|
1084
1084
|
var l = [], c = 0, h = 0, u = !1, d = function() {
|
1085
1085
|
u && !l.length && !c && e.complete();
|
1086
1086
|
}, p = function(f) {
|
@@ -1088,19 +1088,19 @@ function Ti(n, e, t, s, r, i, o, a) {
|
|
1088
1088
|
}, g = function(f) {
|
1089
1089
|
c++;
|
1090
1090
|
var k = !1;
|
1091
|
-
D(t(f, h++)).subscribe(U(e, function(
|
1092
|
-
e.next(
|
1091
|
+
D(t(f, h++)).subscribe(U(e, function(G) {
|
1092
|
+
e.next(G);
|
1093
1093
|
}, function() {
|
1094
1094
|
k = !0;
|
1095
1095
|
}, void 0, function() {
|
1096
1096
|
if (k)
|
1097
1097
|
try {
|
1098
1098
|
c--;
|
1099
|
-
for (var
|
1099
|
+
for (var G = function() {
|
1100
1100
|
var J = l.shift();
|
1101
1101
|
o || g(J);
|
1102
1102
|
}; l.length && c < s; )
|
1103
|
-
|
1103
|
+
G();
|
1104
1104
|
d();
|
1105
1105
|
} catch (J) {
|
1106
1106
|
e.error(J);
|
@@ -1112,30 +1112,30 @@ function Ti(n, e, t, s, r, i, o, a) {
|
|
1112
1112
|
})), function() {
|
1113
1113
|
};
|
1114
1114
|
}
|
1115
|
-
function
|
1116
|
-
return t === void 0 && (t = 1 / 0), x(e) ?
|
1117
|
-
return
|
1115
|
+
function sn(n, e, t) {
|
1116
|
+
return t === void 0 && (t = 1 / 0), x(e) ? sn(function(s, r) {
|
1117
|
+
return Ve(function(i, o) {
|
1118
1118
|
return e(s, i, r, o);
|
1119
1119
|
})(D(n(s, r)));
|
1120
1120
|
}, t) : (typeof e == "number" && (t = e), V(function(s, r) {
|
1121
|
-
return
|
1121
|
+
return Ri(s, r, n, t);
|
1122
1122
|
}));
|
1123
1123
|
}
|
1124
|
-
function
|
1125
|
-
return n === void 0 && (n = 1 / 0),
|
1124
|
+
function Pi(n) {
|
1125
|
+
return n === void 0 && (n = 1 / 0), sn(Ne, n);
|
1126
1126
|
}
|
1127
|
-
var
|
1128
|
-
function
|
1127
|
+
var Oi = ["addListener", "removeListener"], Ii = ["addEventListener", "removeEventListener"], Mi = ["on", "off"];
|
1128
|
+
function Je(n, e, t, s) {
|
1129
1129
|
if (x(t) && (s = t, t = void 0), s)
|
1130
|
-
return
|
1131
|
-
var r =
|
1130
|
+
return Je(n, e, t).pipe(Ys(s));
|
1131
|
+
var r = re(Bi(n) ? Ii.map(function(a) {
|
1132
1132
|
return function(l) {
|
1133
1133
|
return n[a](e, l, t);
|
1134
1134
|
};
|
1135
|
-
}) :
|
1136
|
-
if (!i &&
|
1137
|
-
return
|
1138
|
-
return
|
1135
|
+
}) : zi(n) ? Oi.map(qn(n, e)) : Ui(n) ? Mi.map(qn(n, e)) : [], 2), i = r[0], o = r[1];
|
1136
|
+
if (!i && nn(n))
|
1137
|
+
return sn(function(a) {
|
1138
|
+
return Je(a, e, t);
|
1139
1139
|
})(D(n));
|
1140
1140
|
if (!i)
|
1141
1141
|
throw new TypeError("Invalid event target");
|
@@ -1150,31 +1150,31 @@ function Ve(n, e, t, s) {
|
|
1150
1150
|
};
|
1151
1151
|
});
|
1152
1152
|
}
|
1153
|
-
function
|
1153
|
+
function qn(n, e) {
|
1154
1154
|
return function(t) {
|
1155
1155
|
return function(s) {
|
1156
1156
|
return n[t](e, s);
|
1157
1157
|
};
|
1158
1158
|
};
|
1159
1159
|
}
|
1160
|
-
function
|
1160
|
+
function zi(n) {
|
1161
1161
|
return x(n.addListener) && x(n.removeListener);
|
1162
1162
|
}
|
1163
|
-
function
|
1163
|
+
function Ui(n) {
|
1164
1164
|
return x(n.on) && x(n.off);
|
1165
1165
|
}
|
1166
|
-
function
|
1166
|
+
function Bi(n) {
|
1167
1167
|
return x(n.addEventListener) && x(n.removeEventListener);
|
1168
1168
|
}
|
1169
|
-
function
|
1169
|
+
function ji() {
|
1170
1170
|
for (var n = [], e = 0; e < arguments.length; e++)
|
1171
1171
|
n[e] = arguments[e];
|
1172
|
-
var t =
|
1173
|
-
return r.length ? r.length === 1 ? D(r[0]) :
|
1172
|
+
var t = tn(n), s = oi(n, 1 / 0), r = n;
|
1173
|
+
return r.length ? r.length === 1 ? D(r[0]) : Pi(s)(mt(r, t)) : He;
|
1174
1174
|
}
|
1175
|
-
function
|
1175
|
+
function jt(n) {
|
1176
1176
|
return n <= 0 ? function() {
|
1177
|
-
return
|
1177
|
+
return He;
|
1178
1178
|
} : V(function(e, t) {
|
1179
1179
|
var s = 0;
|
1180
1180
|
e.subscribe(U(t, function(r) {
|
@@ -1182,7 +1182,7 @@ function Bt(n) {
|
|
1182
1182
|
}));
|
1183
1183
|
});
|
1184
1184
|
}
|
1185
|
-
function
|
1185
|
+
function fe(n, e) {
|
1186
1186
|
return V(function(t, s) {
|
1187
1187
|
var r = null, i = 0, o = !1, a = function() {
|
1188
1188
|
return o && !r && s.complete();
|
@@ -1200,40 +1200,40 @@ function pe(n, e) {
|
|
1200
1200
|
}));
|
1201
1201
|
});
|
1202
1202
|
}
|
1203
|
-
function
|
1203
|
+
function Nt(n) {
|
1204
1204
|
return V(function(e, t) {
|
1205
1205
|
D(n).subscribe(U(t, function() {
|
1206
1206
|
return t.complete();
|
1207
|
-
},
|
1207
|
+
}, Ye)), !t.closed && e.subscribe(t);
|
1208
1208
|
});
|
1209
1209
|
}
|
1210
|
-
function
|
1210
|
+
function Ht() {
|
1211
1211
|
for (var n = [], e = 0; e < arguments.length; e++)
|
1212
1212
|
n[e] = arguments[e];
|
1213
|
-
var t =
|
1213
|
+
var t = Bs(n);
|
1214
1214
|
return V(function(s, r) {
|
1215
1215
|
for (var i = n.length, o = new Array(i), a = n.map(function() {
|
1216
1216
|
return !1;
|
1217
1217
|
}), l = !1, c = function(u) {
|
1218
1218
|
D(n[u]).subscribe(U(r, function(d) {
|
1219
|
-
o[u] = d, !l && !a[u] && (a[u] = !0, (l = a.every(
|
1220
|
-
},
|
1219
|
+
o[u] = d, !l && !a[u] && (a[u] = !0, (l = a.every(Ne)) && (a = null));
|
1220
|
+
}, Ye));
|
1221
1221
|
}, h = 0; h < i; h++)
|
1222
1222
|
c(h);
|
1223
1223
|
s.subscribe(U(r, function(u) {
|
1224
1224
|
if (l) {
|
1225
|
-
var d =
|
1226
|
-
r.next(t ? t.apply(void 0,
|
1225
|
+
var d = be([u], re(o));
|
1226
|
+
r.next(t ? t.apply(void 0, be([], re(d))) : d);
|
1227
1227
|
}
|
1228
1228
|
}));
|
1229
1229
|
});
|
1230
1230
|
}
|
1231
|
-
var
|
1232
|
-
const
|
1231
|
+
var Q = /* @__PURE__ */ ((n) => (n.User = "user", n.Agent = "agent", n.System = "system", n))(Q || {});
|
1232
|
+
const Ni = () => "10000000-1000-4000-8000-100000000000".replace(
|
1233
1233
|
/[018]/g,
|
1234
1234
|
(n) => (+n ^ crypto.getRandomValues(new Uint8Array(1))[0] & 15 >> +n / 4).toString(16)
|
1235
|
-
),
|
1236
|
-
function
|
1235
|
+
), Vs = () => typeof crypto.randomUUID == "function" ? crypto.randomUUID() : Ni();
|
1236
|
+
function Fl(n) {
|
1237
1237
|
let e = n;
|
1238
1238
|
const t = /https?:\/\/[^\s<]+/gi, s = /<a [^>]*href="([^"]*)"[^>]*>[^<]*<\/a>/g, r = n.match(t) || [], i = [];
|
1239
1239
|
let o;
|
@@ -1253,12 +1253,12 @@ function Dl(n) {
|
|
1253
1253
|
);
|
1254
1254
|
}), e;
|
1255
1255
|
}
|
1256
|
-
function
|
1256
|
+
function Hi(n) {
|
1257
1257
|
if (n.includes("aceChatGuideTitle"))
|
1258
|
-
return
|
1258
|
+
return Di(n);
|
1259
1259
|
const e = /<a [^>]*>https?:\/\/[^<]*<\/a>/gim;
|
1260
1260
|
return n.replace(e, (t) => {
|
1261
|
-
const s =
|
1261
|
+
const s = Js(t);
|
1262
1262
|
if (!s)
|
1263
1263
|
return t;
|
1264
1264
|
const r = 50;
|
@@ -1273,12 +1273,12 @@ function Ni(n) {
|
|
1273
1273
|
u - h.length - 4
|
1274
1274
|
) + ".../" + h : d = c.substring(0, u - 3) + "...";
|
1275
1275
|
const p = `${a}${d}`;
|
1276
|
-
return
|
1276
|
+
return Dt(t, p);
|
1277
1277
|
}
|
1278
|
-
return
|
1278
|
+
return Dt(t, s);
|
1279
1279
|
});
|
1280
1280
|
}
|
1281
|
-
function
|
1281
|
+
function Js(n) {
|
1282
1282
|
const e = n.match(/href=["']([^'"]*)["']/);
|
1283
1283
|
if (e && e.length > 1) {
|
1284
1284
|
let t = e[1];
|
@@ -1286,22 +1286,22 @@ function Vs(n) {
|
|
1286
1286
|
}
|
1287
1287
|
return null;
|
1288
1288
|
}
|
1289
|
-
function
|
1289
|
+
function Dt(n, e) {
|
1290
1290
|
return n.replace(/>[^<]*<\/a>/, `>${e}</a>`);
|
1291
1291
|
}
|
1292
|
-
function
|
1292
|
+
function Di(n) {
|
1293
1293
|
const e = /<a [^>]*aceChatGuideTitle[^>]*>[^<]*<\/a>/gm;
|
1294
1294
|
return n.replace(e, (t) => {
|
1295
|
-
const s =
|
1295
|
+
const s = Js(t);
|
1296
1296
|
if (!s)
|
1297
1297
|
return t;
|
1298
1298
|
const r = s.split("?").pop(), o = new URLSearchParams(r).get("aceChatGuideTitle");
|
1299
|
-
return o ?
|
1299
|
+
return o ? Dt(t, o) : t;
|
1300
1300
|
});
|
1301
1301
|
}
|
1302
|
-
class
|
1302
|
+
class vt {
|
1303
1303
|
constructor(e, t, s) {
|
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 =
|
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 = Vs();
|
1305
1305
|
}
|
1306
1306
|
update(e) {
|
1307
1307
|
this.messages = [
|
@@ -1317,13 +1317,13 @@ class mt {
|
|
1317
1317
|
this.remove$.next();
|
1318
1318
|
}
|
1319
1319
|
}
|
1320
|
-
class
|
1320
|
+
class Fi {
|
1321
1321
|
constructor(e) {
|
1322
1322
|
this.name = e, this.print$ = new _();
|
1323
1323
|
}
|
1324
1324
|
print(e, t = "html", s = this.name) {
|
1325
|
-
const r = new
|
1326
|
-
|
1325
|
+
const r = new vt(
|
1326
|
+
Q.Agent,
|
1327
1327
|
{ name: s },
|
1328
1328
|
[
|
1329
1329
|
{
|
@@ -1337,13 +1337,13 @@ class Di {
|
|
1337
1337
|
return this.print$.asObservable();
|
1338
1338
|
}
|
1339
1339
|
}
|
1340
|
-
class
|
1340
|
+
class qi {
|
1341
1341
|
constructor(e) {
|
1342
1342
|
this.name = e, this.print$ = new _();
|
1343
1343
|
}
|
1344
1344
|
print(e) {
|
1345
|
-
const t = new
|
1346
|
-
|
1345
|
+
const t = new vt(
|
1346
|
+
Q.User,
|
1347
1347
|
{ name: this.name },
|
1348
1348
|
[
|
1349
1349
|
{
|
@@ -1357,13 +1357,13 @@ class Fi {
|
|
1357
1357
|
return this.print$.asObservable();
|
1358
1358
|
}
|
1359
1359
|
}
|
1360
|
-
class
|
1360
|
+
class Zi {
|
1361
1361
|
constructor() {
|
1362
1362
|
this.print$ = new _(), this.name = "system";
|
1363
1363
|
}
|
1364
1364
|
print(e) {
|
1365
|
-
const t = new
|
1366
|
-
|
1365
|
+
const t = new vt(
|
1366
|
+
Q.System,
|
1367
1367
|
{ name: this.name },
|
1368
1368
|
[
|
1369
1369
|
{
|
@@ -1377,12 +1377,12 @@ class qi {
|
|
1377
1377
|
return this.print$.asObservable();
|
1378
1378
|
}
|
1379
1379
|
}
|
1380
|
-
class
|
1380
|
+
class ql {
|
1381
1381
|
constructor(e, t) {
|
1382
1382
|
this.name = e, this.component = t, this.print$ = new _(), this.typingState$ = new z(!1), this.complete$ = new _(), this.system = this.createSystem(), this.rehydrate$ = new _(), this.saveToCurrentSession$ = new _(), this.showChatOverlay$ = new z(!1), this.onComplete = () => this.complete$.asObservable();
|
1383
1383
|
}
|
1384
1384
|
connect(e = {}) {
|
1385
|
-
this.complete$.pipe(
|
1385
|
+
this.complete$.pipe(jt(1)).subscribe(() => {
|
1386
1386
|
this.disconnected();
|
1387
1387
|
});
|
1388
1388
|
}
|
@@ -1391,10 +1391,10 @@ class Fl {
|
|
1391
1391
|
disconnected() {
|
1392
1392
|
}
|
1393
1393
|
onUserSubmit(e) {
|
1394
|
-
this.print(
|
1394
|
+
this.print(Q.User, e.text);
|
1395
1395
|
}
|
1396
1396
|
print(e, t) {
|
1397
|
-
const s = new
|
1397
|
+
const s = new vt(
|
1398
1398
|
e,
|
1399
1399
|
{
|
1400
1400
|
name: ""
|
@@ -1411,19 +1411,19 @@ class Fl {
|
|
1411
1411
|
return this.print$.next(e), e;
|
1412
1412
|
}
|
1413
1413
|
createAgent(e) {
|
1414
|
-
const t = new
|
1414
|
+
const t = new Fi(e);
|
1415
1415
|
return t.subscribe().subscribe((s) => {
|
1416
1416
|
this.playNotification(), this.printEntry(s);
|
1417
1417
|
}), t;
|
1418
1418
|
}
|
1419
1419
|
createUser(e) {
|
1420
|
-
const t = new
|
1420
|
+
const t = new qi(e);
|
1421
1421
|
return t.subscribe().subscribe((s) => {
|
1422
1422
|
this.printEntry(s);
|
1423
1423
|
}), t;
|
1424
1424
|
}
|
1425
1425
|
createSystem() {
|
1426
|
-
const e = new
|
1426
|
+
const e = new Zi();
|
1427
1427
|
return e.subscribe().subscribe((t) => {
|
1428
1428
|
this.printEntry(t);
|
1429
1429
|
}), e;
|
@@ -1459,18 +1459,18 @@ class Fl {
|
|
1459
1459
|
* Copyright 2019 Google LLC
|
1460
1460
|
* SPDX-License-Identifier: BSD-3-Clause
|
1461
1461
|
*/
|
1462
|
-
const
|
1463
|
-
let
|
1462
|
+
const Xe = globalThis, rn = Xe.ShadowRoot && (Xe.ShadyCSS === void 0 || Xe.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, on = Symbol(), Zn = /* @__PURE__ */ new WeakMap();
|
1463
|
+
let er = class {
|
1464
1464
|
constructor(e, t, s) {
|
1465
|
-
if (this._$cssResult$ = !0, s !==
|
1465
|
+
if (this._$cssResult$ = !0, s !== on) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
1466
1466
|
this.cssText = e, this.t = t;
|
1467
1467
|
}
|
1468
1468
|
get styleSheet() {
|
1469
1469
|
let e = this.o;
|
1470
1470
|
const t = this.t;
|
1471
|
-
if (
|
1471
|
+
if (rn && e === void 0) {
|
1472
1472
|
const s = t !== void 0 && t.length === 1;
|
1473
|
-
s && (e =
|
1473
|
+
s && (e = Zn.get(t)), e === void 0 && ((this.o = e = new CSSStyleSheet()).replaceSync(this.cssText), s && Zn.set(t, e));
|
1474
1474
|
}
|
1475
1475
|
return e;
|
1476
1476
|
}
|
@@ -1478,33 +1478,33 @@ let Js = class {
|
|
1478
1478
|
return this.cssText;
|
1479
1479
|
}
|
1480
1480
|
};
|
1481
|
-
const
|
1481
|
+
const Gi = (n) => new er(typeof n == "string" ? n : n + "", void 0, on), T = (n, ...e) => {
|
1482
1482
|
const t = n.length === 1 ? n[0] : e.reduce((s, r, i) => s + ((o) => {
|
1483
1483
|
if (o._$cssResult$ === !0) return o.cssText;
|
1484
1484
|
if (typeof o == "number") return o;
|
1485
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.");
|
1486
1486
|
})(r) + n[i + 1], n[0]);
|
1487
|
-
return new
|
1487
|
+
return new er(t, n, on);
|
1488
1488
|
}, Wi = (n, e) => {
|
1489
|
-
if (
|
1489
|
+
if (rn) n.adoptedStyleSheets = e.map((t) => t instanceof CSSStyleSheet ? t : t.styleSheet);
|
1490
1490
|
else for (const t of e) {
|
1491
|
-
const s = document.createElement("style"), r =
|
1491
|
+
const s = document.createElement("style"), r = Xe.litNonce;
|
1492
1492
|
r !== void 0 && s.setAttribute("nonce", r), s.textContent = t.cssText, n.appendChild(s);
|
1493
1493
|
}
|
1494
|
-
},
|
1494
|
+
}, Gn = rn ? (n) => n : (n) => n instanceof CSSStyleSheet ? ((e) => {
|
1495
1495
|
let t = "";
|
1496
1496
|
for (const s of e.cssRules) t += s.cssText;
|
1497
|
-
return
|
1497
|
+
return Gi(t);
|
1498
1498
|
})(n) : n;
|
1499
1499
|
/**
|
1500
1500
|
* @license
|
1501
1501
|
* Copyright 2017 Google LLC
|
1502
1502
|
* SPDX-License-Identifier: BSD-3-Clause
|
1503
1503
|
*/
|
1504
|
-
const { is:
|
1504
|
+
const { is: Ki, defineProperty: Qi, getOwnPropertyDescriptor: Xi, getOwnPropertyNames: Yi, getOwnPropertySymbols: Vi, getPrototypeOf: Ji } = Object, X = globalThis, Wn = X.trustedTypes, eo = Wn ? Wn.emptyScript : "", Et = X.reactiveElementPolyfillSupport, Ae = (n, e) => n, et = { toAttribute(n, e) {
|
1505
1505
|
switch (e) {
|
1506
1506
|
case Boolean:
|
1507
|
-
n = n ?
|
1507
|
+
n = n ? eo : null;
|
1508
1508
|
break;
|
1509
1509
|
case Object:
|
1510
1510
|
case Array:
|
@@ -1529,46 +1529,44 @@ const { is: Gi, defineProperty: Yi, getOwnPropertyDescriptor: Ki, getOwnProperty
|
|
1529
1529
|
}
|
1530
1530
|
}
|
1531
1531
|
return t;
|
1532
|
-
} },
|
1533
|
-
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")),
|
1534
|
-
let
|
1532
|
+
} }, an = (n, e) => !Ki(n, e), Kn = { attribute: !0, type: String, converter: et, reflect: !1, useDefault: !1, hasChanged: an };
|
1533
|
+
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), X.litPropertyMetadata ?? (X.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
1534
|
+
let ce = class extends HTMLElement {
|
1535
1535
|
static addInitializer(e) {
|
1536
1536
|
this._$Ei(), (this.l ?? (this.l = [])).push(e);
|
1537
1537
|
}
|
1538
1538
|
static get observedAttributes() {
|
1539
1539
|
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
1540
1540
|
}
|
1541
|
-
static createProperty(e, t =
|
1542
|
-
if (t.state && (t.attribute = !1), this._$Ei(), this.elementProperties.set(e, t), !t.noAccessor) {
|
1541
|
+
static createProperty(e, t = Kn) {
|
1542
|
+
if (t.state && (t.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(e) && ((t = Object.create(t)).wrapped = !0), this.elementProperties.set(e, t), !t.noAccessor) {
|
1543
1543
|
const s = Symbol(), r = this.getPropertyDescriptor(e, s, t);
|
1544
|
-
r !== void 0 &&
|
1544
|
+
r !== void 0 && Qi(this.prototype, e, r);
|
1545
1545
|
}
|
1546
1546
|
}
|
1547
1547
|
static getPropertyDescriptor(e, t, s) {
|
1548
|
-
const { get: r, set: i } =
|
1548
|
+
const { get: r, set: i } = Xi(this.prototype, e) ?? { get() {
|
1549
1549
|
return this[t];
|
1550
1550
|
}, set(o) {
|
1551
1551
|
this[t] = o;
|
1552
1552
|
} };
|
1553
|
-
return { get() {
|
1554
|
-
return r == null ? void 0 : r.call(this);
|
1555
|
-
}, set(o) {
|
1553
|
+
return { get: r, set(o) {
|
1556
1554
|
const a = r == null ? void 0 : r.call(this);
|
1557
|
-
i.call(this, o), this.requestUpdate(e, a, s);
|
1555
|
+
i == null || i.call(this, o), this.requestUpdate(e, a, s);
|
1558
1556
|
}, configurable: !0, enumerable: !0 };
|
1559
1557
|
}
|
1560
1558
|
static getPropertyOptions(e) {
|
1561
|
-
return this.elementProperties.get(e) ??
|
1559
|
+
return this.elementProperties.get(e) ?? Kn;
|
1562
1560
|
}
|
1563
1561
|
static _$Ei() {
|
1564
|
-
if (this.hasOwnProperty(
|
1565
|
-
const e =
|
1562
|
+
if (this.hasOwnProperty(Ae("elementProperties"))) return;
|
1563
|
+
const e = Ji(this);
|
1566
1564
|
e.finalize(), e.l !== void 0 && (this.l = [...e.l]), this.elementProperties = new Map(e.elementProperties);
|
1567
1565
|
}
|
1568
1566
|
static finalize() {
|
1569
|
-
if (this.hasOwnProperty(
|
1570
|
-
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(
|
1571
|
-
const t = this.properties, s = [...
|
1567
|
+
if (this.hasOwnProperty(Ae("finalized"))) return;
|
1568
|
+
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(Ae("properties"))) {
|
1569
|
+
const t = this.properties, s = [...Yi(t), ...Vi(t)];
|
1572
1570
|
for (const r of s) this.createProperty(r, t[r]);
|
1573
1571
|
}
|
1574
1572
|
const e = this[Symbol.metadata];
|
@@ -1587,8 +1585,8 @@ let le = class extends HTMLElement {
|
|
1587
1585
|
const t = [];
|
1588
1586
|
if (Array.isArray(e)) {
|
1589
1587
|
const s = new Set(e.flat(1 / 0).reverse());
|
1590
|
-
for (const r of s) t.unshift(
|
1591
|
-
} else e !== void 0 && t.push(
|
1588
|
+
for (const r of s) t.unshift(Gn(r));
|
1589
|
+
} else e !== void 0 && t.push(Gn(e));
|
1592
1590
|
return t;
|
1593
1591
|
}
|
1594
1592
|
static _$Eu(e, t) {
|
@@ -1638,33 +1636,35 @@ let le = class extends HTMLElement {
|
|
1638
1636
|
attributeChangedCallback(e, t, s) {
|
1639
1637
|
this._$AK(e, s);
|
1640
1638
|
}
|
1641
|
-
_$
|
1639
|
+
_$ET(e, t) {
|
1642
1640
|
var i;
|
1643
1641
|
const s = this.constructor.elementProperties.get(e), r = this.constructor._$Eu(e, s);
|
1644
1642
|
if (r !== void 0 && s.reflect === !0) {
|
1645
|
-
const o = (((i = s.converter) == null ? void 0 : i.toAttribute) !== void 0 ? s.converter :
|
1643
|
+
const o = (((i = s.converter) == null ? void 0 : i.toAttribute) !== void 0 ? s.converter : et).toAttribute(t, s.type);
|
1646
1644
|
this._$Em = e, o == null ? this.removeAttribute(r) : this.setAttribute(r, o), this._$Em = null;
|
1647
1645
|
}
|
1648
1646
|
}
|
1649
1647
|
_$AK(e, t) {
|
1650
|
-
var i;
|
1648
|
+
var i, o;
|
1651
1649
|
const s = this.constructor, r = s._$Eh.get(e);
|
1652
1650
|
if (r !== void 0 && this._$Em !== r) {
|
1653
|
-
const
|
1654
|
-
this._$Em = r, this[r] =
|
1651
|
+
const a = s.getPropertyOptions(r), l = typeof a.converter == "function" ? { fromAttribute: a.converter } : ((i = a.converter) == null ? void 0 : i.fromAttribute) !== void 0 ? a.converter : et;
|
1652
|
+
this._$Em = r, this[r] = l.fromAttribute(t, a.type) ?? ((o = this._$Ej) == null ? void 0 : o.get(r)) ?? null, this._$Em = null;
|
1655
1653
|
}
|
1656
1654
|
}
|
1657
1655
|
requestUpdate(e, t, s) {
|
1656
|
+
var r;
|
1658
1657
|
if (e !== void 0) {
|
1659
|
-
|
1660
|
-
|
1658
|
+
const i = this.constructor, o = this[e];
|
1659
|
+
if (s ?? (s = i.getPropertyOptions(e)), !((s.hasChanged ?? an)(o, t) || s.useDefault && s.reflect && o === ((r = this._$Ej) == null ? void 0 : r.get(e)) && !this.hasAttribute(i._$Eu(e, s)))) return;
|
1660
|
+
this.C(e, t, s);
|
1661
1661
|
}
|
1662
|
-
this.isUpdatePending === !1 && (this._$ES = this._$
|
1662
|
+
this.isUpdatePending === !1 && (this._$ES = this._$EP());
|
1663
1663
|
}
|
1664
|
-
|
1665
|
-
this._$AL.has(e) || this._$AL.set(e, t),
|
1664
|
+
C(e, t, { useDefault: s, reflect: r, wrapped: i }, o) {
|
1665
|
+
s && !(this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Map())).has(e) && (this._$Ej.set(e, o ?? t ?? this[e]), i !== !0 || o !== void 0) || (this._$AL.has(e) || (this.hasUpdated || s || (t = void 0), this._$AL.set(e, t)), r === !0 && this._$Em !== e && (this._$Eq ?? (this._$Eq = /* @__PURE__ */ new Set())).add(e));
|
1666
1666
|
}
|
1667
|
-
async _$
|
1667
|
+
async _$EP() {
|
1668
1668
|
this.isUpdatePending = !0;
|
1669
1669
|
try {
|
1670
1670
|
await this._$ES;
|
@@ -1686,7 +1686,10 @@ let le = class extends HTMLElement {
|
|
1686
1686
|
this._$Ep = void 0;
|
1687
1687
|
}
|
1688
1688
|
const r = this.constructor.elementProperties;
|
1689
|
-
if (r.size > 0) for (const [i, o] of r)
|
1689
|
+
if (r.size > 0) for (const [i, o] of r) {
|
1690
|
+
const { wrapped: a } = o, l = this[i];
|
1691
|
+
a !== !0 || this._$AL.has(i) || l === void 0 || this.C(i, void 0, o, l);
|
1692
|
+
}
|
1690
1693
|
}
|
1691
1694
|
let e = !1;
|
1692
1695
|
const t = this._$AL;
|
@@ -1694,9 +1697,9 @@ let le = class extends HTMLElement {
|
|
1694
1697
|
e = this.shouldUpdate(t), e ? (this.willUpdate(t), (s = this._$EO) == null || s.forEach((r) => {
|
1695
1698
|
var i;
|
1696
1699
|
return (i = r.hostUpdate) == null ? void 0 : i.call(r);
|
1697
|
-
}), this.update(t)) : this._$
|
1700
|
+
}), this.update(t)) : this._$EM();
|
1698
1701
|
} catch (r) {
|
1699
|
-
throw e = !1, this._$
|
1702
|
+
throw e = !1, this._$EM(), r;
|
1700
1703
|
}
|
1701
1704
|
e && this._$AE(t);
|
1702
1705
|
}
|
@@ -1709,7 +1712,7 @@ let le = class extends HTMLElement {
|
|
1709
1712
|
return (r = s.hostUpdated) == null ? void 0 : r.call(s);
|
1710
1713
|
}), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(e)), this.updated(e);
|
1711
1714
|
}
|
1712
|
-
_$
|
1715
|
+
_$EM() {
|
1713
1716
|
this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = !1;
|
1714
1717
|
}
|
1715
1718
|
get updateComplete() {
|
@@ -1722,83 +1725,83 @@ let le = class extends HTMLElement {
|
|
1722
1725
|
return !0;
|
1723
1726
|
}
|
1724
1727
|
update(e) {
|
1725
|
-
this._$
|
1728
|
+
this._$Eq && (this._$Eq = this._$Eq.forEach((t) => this._$ET(t, this[t]))), this._$EM();
|
1726
1729
|
}
|
1727
1730
|
updated(e) {
|
1728
1731
|
}
|
1729
1732
|
firstUpdated(e) {
|
1730
1733
|
}
|
1731
1734
|
};
|
1732
|
-
|
1735
|
+
ce.elementStyles = [], ce.shadowRootOptions = { mode: "open" }, ce[Ae("elementProperties")] = /* @__PURE__ */ new Map(), ce[Ae("finalized")] = /* @__PURE__ */ new Map(), Et == null || Et({ ReactiveElement: ce }), (X.reactiveElementVersions ?? (X.reactiveElementVersions = [])).push("2.1.0");
|
1733
1736
|
/**
|
1734
1737
|
* @license
|
1735
1738
|
* Copyright 2017 Google LLC
|
1736
1739
|
* SPDX-License-Identifier: BSD-3-Clause
|
1737
1740
|
*/
|
1738
|
-
const
|
1739
|
-
\f\r]`,
|
1740
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"),
|
1741
|
-
function
|
1742
|
-
if (!
|
1743
|
-
return
|
1744
|
-
}
|
1745
|
-
const
|
1741
|
+
const Ee = globalThis, tt = Ee.trustedTypes, Qn = tt ? tt.createPolicy("lit-html", { createHTML: (n) => n }) : void 0, tr = "$lit$", W = `lit$${Math.random().toFixed(9).slice(2)}$`, nr = "?" + W, to = `<${nr}>`, ie = document, Pe = () => ie.createComment(""), Oe = (n) => n === null || typeof n != "object" && typeof n != "function", ln = Array.isArray, no = (n) => ln(n) || typeof (n == null ? void 0 : n[Symbol.iterator]) == "function", Lt = `[
|
1742
|
+
\f\r]`, Se = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Xn = /-->/g, Yn = />/g, ee = RegExp(`>|${Lt}(?:([^\\s"'>=/]+)(${Lt}*=${Lt}*(?:[^
|
1743
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), Vn = /'/g, Jn = /"/g, sr = /^(?:script|style|textarea|title)$/i, so = (n) => (e, ...t) => ({ _$litType$: n, strings: e, values: t }), v = so(1), Y = Symbol.for("lit-noChange"), m = Symbol.for("lit-nothing"), es = /* @__PURE__ */ new WeakMap(), ne = ie.createTreeWalker(ie, 129);
|
1744
|
+
function rr(n, e) {
|
1745
|
+
if (!ln(n) || !n.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
1746
|
+
return Qn !== void 0 ? Qn.createHTML(e) : e;
|
1747
|
+
}
|
1748
|
+
const ro = (n, e) => {
|
1746
1749
|
const t = n.length - 1, s = [];
|
1747
|
-
let r, i = e === 2 ? "<svg>" : e === 3 ? "<math>" : "", o =
|
1750
|
+
let r, i = e === 2 ? "<svg>" : e === 3 ? "<math>" : "", o = Se;
|
1748
1751
|
for (let a = 0; a < t; a++) {
|
1749
1752
|
const l = n[a];
|
1750
1753
|
let c, h, u = -1, d = 0;
|
1751
|
-
for (; d < l.length && (o.lastIndex = d, h = o.exec(l), h !== null); ) d = o.lastIndex, o ===
|
1754
|
+
for (; d < l.length && (o.lastIndex = d, h = o.exec(l), h !== null); ) d = o.lastIndex, o === Se ? h[1] === "!--" ? o = Xn : h[1] !== void 0 ? o = Yn : h[2] !== void 0 ? (sr.test(h[2]) && (r = RegExp("</" + h[2], "g")), o = ee) : h[3] !== void 0 && (o = ee) : o === ee ? h[0] === ">" ? (o = r ?? Se, u = -1) : h[1] === void 0 ? u = -2 : (u = o.lastIndex - h[2].length, c = h[1], o = h[3] === void 0 ? ee : h[3] === '"' ? Jn : Vn) : o === Jn || o === Vn ? o = ee : o === Xn || o === Yn ? o = Se : (o = ee, r = void 0);
|
1752
1755
|
const p = o === ee && n[a + 1].startsWith("/>") ? " " : "";
|
1753
|
-
i += o ===
|
1756
|
+
i += o === Se ? l + to : u >= 0 ? (s.push(c), l.slice(0, u) + tr + l.slice(u) + W + p) : l + W + (u === -2 ? a : p);
|
1754
1757
|
}
|
1755
|
-
return [
|
1758
|
+
return [rr(n, i + (n[t] || "<?>") + (e === 2 ? "</svg>" : e === 3 ? "</math>" : "")), s];
|
1756
1759
|
};
|
1757
|
-
let
|
1760
|
+
let Ft = class ir {
|
1758
1761
|
constructor({ strings: e, _$litType$: t }, s) {
|
1759
1762
|
let r;
|
1760
1763
|
this.parts = [];
|
1761
1764
|
let i = 0, o = 0;
|
1762
|
-
const a = e.length - 1, l = this.parts, [c, h] =
|
1763
|
-
if (this.el =
|
1765
|
+
const a = e.length - 1, l = this.parts, [c, h] = ro(e, t);
|
1766
|
+
if (this.el = ir.createElement(c, s), ne.currentNode = this.el.content, t === 2 || t === 3) {
|
1764
1767
|
const u = this.el.content.firstChild;
|
1765
1768
|
u.replaceWith(...u.childNodes);
|
1766
1769
|
}
|
1767
1770
|
for (; (r = ne.nextNode()) !== null && l.length < a; ) {
|
1768
1771
|
if (r.nodeType === 1) {
|
1769
|
-
if (r.hasAttributes()) for (const u of r.getAttributeNames()) if (u.endsWith(
|
1770
|
-
const d = h[o++], p = r.getAttribute(u).split(
|
1771
|
-
l.push({ type: 1, index: i, name: g[2], strings: p, ctor: g[1] === "." ?
|
1772
|
-
} else u.startsWith(
|
1773
|
-
if (
|
1774
|
-
const u = r.textContent.split(
|
1772
|
+
if (r.hasAttributes()) for (const u of r.getAttributeNames()) if (u.endsWith(tr)) {
|
1773
|
+
const d = h[o++], p = r.getAttribute(u).split(W), g = /([.?@])?(.*)/.exec(d);
|
1774
|
+
l.push({ type: 1, index: i, name: g[2], strings: p, ctor: g[1] === "." ? oo : g[1] === "?" ? ao : g[1] === "@" ? lo : bt }), r.removeAttribute(u);
|
1775
|
+
} else u.startsWith(W) && (l.push({ type: 6, index: i }), r.removeAttribute(u));
|
1776
|
+
if (sr.test(r.tagName)) {
|
1777
|
+
const u = r.textContent.split(W), d = u.length - 1;
|
1775
1778
|
if (d > 0) {
|
1776
|
-
r.textContent =
|
1777
|
-
for (let p = 0; p < d; p++) r.append(u[p],
|
1778
|
-
r.append(u[d],
|
1779
|
+
r.textContent = tt ? tt.emptyScript : "";
|
1780
|
+
for (let p = 0; p < d; p++) r.append(u[p], Pe()), ne.nextNode(), l.push({ type: 2, index: ++i });
|
1781
|
+
r.append(u[d], Pe());
|
1779
1782
|
}
|
1780
1783
|
}
|
1781
|
-
} else if (r.nodeType === 8) if (r.data ===
|
1784
|
+
} else if (r.nodeType === 8) if (r.data === nr) l.push({ type: 2, index: i });
|
1782
1785
|
else {
|
1783
1786
|
let u = -1;
|
1784
|
-
for (; (u = r.data.indexOf(
|
1787
|
+
for (; (u = r.data.indexOf(W, u + 1)) !== -1; ) l.push({ type: 7, index: i }), u += W.length - 1;
|
1785
1788
|
}
|
1786
1789
|
i++;
|
1787
1790
|
}
|
1788
1791
|
}
|
1789
1792
|
static createElement(e, t) {
|
1790
|
-
const s =
|
1793
|
+
const s = ie.createElement("template");
|
1791
1794
|
return s.innerHTML = e, s;
|
1792
1795
|
}
|
1793
1796
|
};
|
1794
|
-
function
|
1797
|
+
function ye(n, e, t = n, s) {
|
1795
1798
|
var o, a;
|
1796
|
-
if (e ===
|
1799
|
+
if (e === Y) return e;
|
1797
1800
|
let r = s !== void 0 ? (o = t._$Co) == null ? void 0 : o[s] : t._$Cl;
|
1798
|
-
const i =
|
1799
|
-
return (r == null ? void 0 : r.constructor) !== i && ((a = r == null ? void 0 : r._$AO) == null || a.call(r, !1), i === void 0 ? r = void 0 : (r = new i(n), r._$AT(n, t, s)), s !== void 0 ? (t._$Co ?? (t._$Co = []))[s] = r : t._$Cl = r), r !== void 0 && (e =
|
1801
|
+
const i = Oe(e) ? void 0 : e._$litDirective$;
|
1802
|
+
return (r == null ? void 0 : r.constructor) !== i && ((a = r == null ? void 0 : r._$AO) == null || a.call(r, !1), i === void 0 ? r = void 0 : (r = new i(n), r._$AT(n, t, s)), s !== void 0 ? (t._$Co ?? (t._$Co = []))[s] = r : t._$Cl = r), r !== void 0 && (e = ye(n, r._$AS(n, e.values), r, s)), e;
|
1800
1803
|
}
|
1801
|
-
class
|
1804
|
+
class io {
|
1802
1805
|
constructor(e, t) {
|
1803
1806
|
this._$AV = [], this._$AN = void 0, this._$AD = e, this._$AM = t;
|
1804
1807
|
}
|
@@ -1809,24 +1812,24 @@ class ro {
|
|
1809
1812
|
return this._$AM._$AU;
|
1810
1813
|
}
|
1811
1814
|
u(e) {
|
1812
|
-
const { el: { content: t }, parts: s } = this._$AD, r = ((e == null ? void 0 : e.creationScope) ??
|
1815
|
+
const { el: { content: t }, parts: s } = this._$AD, r = ((e == null ? void 0 : e.creationScope) ?? ie).importNode(t, !0);
|
1813
1816
|
ne.currentNode = r;
|
1814
1817
|
let i = ne.nextNode(), o = 0, a = 0, l = s[0];
|
1815
1818
|
for (; l !== void 0; ) {
|
1816
1819
|
if (o === l.index) {
|
1817
1820
|
let c;
|
1818
|
-
l.type === 2 ? c = new
|
1821
|
+
l.type === 2 ? c = new De(i, i.nextSibling, this, e) : l.type === 1 ? c = new l.ctor(i, l.name, l.strings, this, e) : l.type === 6 && (c = new co(i, this, e)), this._$AV.push(c), l = s[++a];
|
1819
1822
|
}
|
1820
1823
|
o !== (l == null ? void 0 : l.index) && (i = ne.nextNode(), o++);
|
1821
1824
|
}
|
1822
|
-
return ne.currentNode =
|
1825
|
+
return ne.currentNode = ie, r;
|
1823
1826
|
}
|
1824
1827
|
p(e) {
|
1825
1828
|
let t = 0;
|
1826
1829
|
for (const s of this._$AV) s !== void 0 && (s.strings !== void 0 ? (s._$AI(e, s, t), t += s.strings.length - 2) : s._$AI(e[t])), t++;
|
1827
1830
|
}
|
1828
1831
|
}
|
1829
|
-
class
|
1832
|
+
class De {
|
1830
1833
|
get _$AU() {
|
1831
1834
|
var e;
|
1832
1835
|
return ((e = this._$AM) == null ? void 0 : e._$AU) ?? this._$Cv;
|
@@ -1846,7 +1849,7 @@ class He {
|
|
1846
1849
|
return this._$AB;
|
1847
1850
|
}
|
1848
1851
|
_$AI(e, t = this) {
|
1849
|
-
e =
|
1852
|
+
e = ye(this, e, t), Oe(e) ? e === m || e == null || e === "" ? (this._$AH !== m && this._$AR(), this._$AH = m) : e !== this._$AH && e !== Y && this._(e) : e._$litType$ !== void 0 ? this.$(e) : e.nodeType !== void 0 ? this.T(e) : no(e) ? this.k(e) : this._(e);
|
1850
1853
|
}
|
1851
1854
|
O(e) {
|
1852
1855
|
return this._$AA.parentNode.insertBefore(e, this._$AB);
|
@@ -1855,26 +1858,26 @@ class He {
|
|
1855
1858
|
this._$AH !== e && (this._$AR(), this._$AH = this.O(e));
|
1856
1859
|
}
|
1857
1860
|
_(e) {
|
1858
|
-
this._$AH !== m &&
|
1861
|
+
this._$AH !== m && Oe(this._$AH) ? this._$AA.nextSibling.data = e : this.T(ie.createTextNode(e)), this._$AH = e;
|
1859
1862
|
}
|
1860
1863
|
$(e) {
|
1861
1864
|
var i;
|
1862
|
-
const { values: t, _$litType$: s } = e, r = typeof s == "number" ? this._$AC(e) : (s.el === void 0 && (s.el =
|
1865
|
+
const { values: t, _$litType$: s } = e, r = typeof s == "number" ? this._$AC(e) : (s.el === void 0 && (s.el = Ft.createElement(rr(s.h, s.h[0]), this.options)), s);
|
1863
1866
|
if (((i = this._$AH) == null ? void 0 : i._$AD) === r) this._$AH.p(t);
|
1864
1867
|
else {
|
1865
|
-
const o = new
|
1868
|
+
const o = new io(r, this), a = o.u(this.options);
|
1866
1869
|
o.p(t), this.T(a), this._$AH = o;
|
1867
1870
|
}
|
1868
1871
|
}
|
1869
1872
|
_$AC(e) {
|
1870
|
-
let t =
|
1871
|
-
return t === void 0 &&
|
1873
|
+
let t = es.get(e.strings);
|
1874
|
+
return t === void 0 && es.set(e.strings, t = new Ft(e)), t;
|
1872
1875
|
}
|
1873
1876
|
k(e) {
|
1874
|
-
|
1877
|
+
ln(this._$AH) || (this._$AH = [], this._$AR());
|
1875
1878
|
const t = this._$AH;
|
1876
1879
|
let s, r = 0;
|
1877
|
-
for (const i of e) r === t.length ? t.push(s = new
|
1880
|
+
for (const i of e) r === t.length ? t.push(s = new De(this.O(Pe()), this.O(Pe()), this, this.options)) : s = t[r], s._$AI(i), r++;
|
1878
1881
|
r < t.length && (this._$AR(s && s._$AB.nextSibling, r), t.length = r);
|
1879
1882
|
}
|
1880
1883
|
_$AR(e = this._$AA.nextSibling, t) {
|
@@ -1889,7 +1892,7 @@ class He {
|
|
1889
1892
|
this._$AM === void 0 && (this._$Cv = e, (t = this._$AP) == null || t.call(this, e));
|
1890
1893
|
}
|
1891
1894
|
}
|
1892
|
-
class
|
1895
|
+
class bt {
|
1893
1896
|
get tagName() {
|
1894
1897
|
return this.element.tagName;
|
1895
1898
|
}
|
@@ -1902,11 +1905,11 @@ class vt {
|
|
1902
1905
|
_$AI(e, t = this, s, r) {
|
1903
1906
|
const i = this.strings;
|
1904
1907
|
let o = !1;
|
1905
|
-
if (i === void 0) e =
|
1908
|
+
if (i === void 0) e = ye(this, e, t, 0), o = !Oe(e) || e !== this._$AH && e !== Y, o && (this._$AH = e);
|
1906
1909
|
else {
|
1907
1910
|
const a = e;
|
1908
1911
|
let l, c;
|
1909
|
-
for (e = i[0], l = 0; l < i.length - 1; l++) c =
|
1912
|
+
for (e = i[0], l = 0; l < i.length - 1; l++) c = ye(this, a[s + l], t, l), c === Y && (c = this._$AH[l]), o || (o = !Oe(c) || c !== this._$AH[l]), c === m ? e = m : e !== m && (e += (c ?? "") + i[l + 1]), this._$AH[l] = c;
|
1910
1913
|
}
|
1911
1914
|
o && !r && this.j(e);
|
1912
1915
|
}
|
@@ -1914,7 +1917,7 @@ class vt {
|
|
1914
1917
|
e === m ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, e ?? "");
|
1915
1918
|
}
|
1916
1919
|
}
|
1917
|
-
let
|
1920
|
+
let oo = class extends bt {
|
1918
1921
|
constructor() {
|
1919
1922
|
super(...arguments), this.type = 3;
|
1920
1923
|
}
|
@@ -1922,7 +1925,7 @@ let io = class extends vt {
|
|
1922
1925
|
this.element[this.name] = e === m ? void 0 : e;
|
1923
1926
|
}
|
1924
1927
|
};
|
1925
|
-
class
|
1928
|
+
class ao extends bt {
|
1926
1929
|
constructor() {
|
1927
1930
|
super(...arguments), this.type = 4;
|
1928
1931
|
}
|
@@ -1930,12 +1933,12 @@ class oo extends vt {
|
|
1930
1933
|
this.element.toggleAttribute(this.name, !!e && e !== m);
|
1931
1934
|
}
|
1932
1935
|
}
|
1933
|
-
class
|
1936
|
+
class lo extends bt {
|
1934
1937
|
constructor(e, t, s, r, i) {
|
1935
1938
|
super(e, t, s, r, i), this.type = 5;
|
1936
1939
|
}
|
1937
1940
|
_$AI(e, t = this) {
|
1938
|
-
if ((e =
|
1941
|
+
if ((e = ye(this, e, t, 0) ?? m) === Y) return;
|
1939
1942
|
const s = this._$AH, r = e === m && s !== m || e.capture !== s.capture || e.once !== s.once || e.passive !== s.passive, i = e !== m && (s === m || r);
|
1940
1943
|
r && this.element.removeEventListener(this.name, this, s), i && this.element.addEventListener(this.name, this, e), this._$AH = e;
|
1941
1944
|
}
|
@@ -1944,7 +1947,7 @@ class ao extends vt {
|
|
1944
1947
|
typeof this._$AH == "function" ? this._$AH.call(((t = this.options) == null ? void 0 : t.host) ?? this.element, e) : this._$AH.handleEvent(e);
|
1945
1948
|
}
|
1946
1949
|
}
|
1947
|
-
class
|
1950
|
+
class co {
|
1948
1951
|
constructor(e, t, s) {
|
1949
1952
|
this.element = e, this.type = 6, this._$AN = void 0, this._$AM = t, this.options = s;
|
1950
1953
|
}
|
@@ -1952,17 +1955,17 @@ class lo {
|
|
1952
1955
|
return this._$AM._$AU;
|
1953
1956
|
}
|
1954
1957
|
_$AI(e) {
|
1955
|
-
|
1958
|
+
ye(this, e);
|
1956
1959
|
}
|
1957
1960
|
}
|
1958
|
-
const
|
1959
|
-
|
1960
|
-
const
|
1961
|
+
const Tt = Ee.litHtmlPolyfillSupport;
|
1962
|
+
Tt == null || Tt(Ft, De), (Ee.litHtmlVersions ?? (Ee.litHtmlVersions = [])).push("3.3.0");
|
1963
|
+
const ho = (n, e, t) => {
|
1961
1964
|
const s = (t == null ? void 0 : t.renderBefore) ?? e;
|
1962
1965
|
let r = s._$litPart$;
|
1963
1966
|
if (r === void 0) {
|
1964
1967
|
const i = (t == null ? void 0 : t.renderBefore) ?? null;
|
1965
|
-
s._$litPart$ = r = new
|
1968
|
+
s._$litPart$ = r = new De(e.insertBefore(Pe(), i), i, void 0, t ?? {});
|
1966
1969
|
}
|
1967
1970
|
return r._$AI(n), r;
|
1968
1971
|
};
|
@@ -1971,7 +1974,8 @@ const co = (n, e, t) => {
|
|
1971
1974
|
* Copyright 2017 Google LLC
|
1972
1975
|
* SPDX-License-Identifier: BSD-3-Clause
|
1973
1976
|
*/
|
1974
|
-
|
1977
|
+
const se = globalThis;
|
1978
|
+
let S = class extends ce {
|
1975
1979
|
constructor() {
|
1976
1980
|
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
1977
1981
|
}
|
@@ -1982,7 +1986,7 @@ let S = class extends le {
|
|
1982
1986
|
}
|
1983
1987
|
update(e) {
|
1984
1988
|
const t = this.render();
|
1985
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this._$Do =
|
1989
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this._$Do = ho(t, this.renderRoot, this.renderOptions);
|
1986
1990
|
}
|
1987
1991
|
connectedCallback() {
|
1988
1992
|
var e;
|
@@ -1993,15 +1997,15 @@ let S = class extends le {
|
|
1993
1997
|
super.disconnectedCallback(), (e = this._$Do) == null || e.setConnected(!1);
|
1994
1998
|
}
|
1995
1999
|
render() {
|
1996
|
-
return
|
2000
|
+
return Y;
|
1997
2001
|
}
|
1998
2002
|
};
|
1999
|
-
var
|
2000
|
-
S._$litElement$ = !0, S.finalized = !0, (
|
2001
|
-
const
|
2002
|
-
|
2003
|
-
(
|
2004
|
-
const
|
2003
|
+
var Rs;
|
2004
|
+
S._$litElement$ = !0, S.finalized = !0, (Rs = se.litElementHydrateSupport) == null || Rs.call(se, { LitElement: S });
|
2005
|
+
const Rt = se.litElementPolyfillSupport;
|
2006
|
+
Rt == null || Rt({ LitElement: S });
|
2007
|
+
(se.litElementVersions ?? (se.litElementVersions = [])).push("4.2.0");
|
2008
|
+
const 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 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>' }, 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="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>' }, 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="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>' }, go = { svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="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>' }, 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="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>' }, ts = { 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>' }, vo = { 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>' }, bo = { 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>' }, ns = { 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>' }, he = {
|
2005
2009
|
allRenderFn: !1,
|
2006
2010
|
cmpDidLoad: !0,
|
2007
2011
|
cmpDidUnload: !1,
|
@@ -2085,8 +2089,8 @@ const ho = { svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" f
|
|
2085
2089
|
transformTagName: !1,
|
2086
2090
|
attachStyles: !0
|
2087
2091
|
};
|
2088
|
-
let
|
2089
|
-
const
|
2092
|
+
let ue, or, yt, ar = !1, nt = !1, cn = !1, R = !1, ss = null, qt = !1;
|
2093
|
+
const $t = typeof window < "u" ? window : {}, H = $t.document || { head: {} }, lr = $t.HTMLElement || class {
|
2090
2094
|
}, E = {
|
2091
2095
|
$flags$: 0,
|
2092
2096
|
$resourcesUrl$: "",
|
@@ -2095,7 +2099,7 @@ const yt = typeof window < "u" ? window : {}, H = yt.document || { head: {} }, a
|
|
2095
2099
|
ael: (n, e, t, s) => n.addEventListener(e, t, s),
|
2096
2100
|
rel: (n, e, t, s) => n.removeEventListener(e, t, s),
|
2097
2101
|
ce: (n, e) => new CustomEvent(n, e)
|
2098
|
-
},
|
2102
|
+
}, yo = /* @__PURE__ */ (() => {
|
2099
2103
|
let n = !1;
|
2100
2104
|
try {
|
2101
2105
|
H.addEventListener("e", null, Object.defineProperty({}, "passive", {
|
@@ -2106,47 +2110,47 @@ const yt = typeof window < "u" ? window : {}, H = yt.document || { head: {} }, a
|
|
2106
2110
|
} catch {
|
2107
2111
|
}
|
2108
2112
|
return n;
|
2109
|
-
})(),
|
2113
|
+
})(), $o = (n) => Promise.resolve(n), xo = /* @__PURE__ */ (() => {
|
2110
2114
|
try {
|
2111
2115
|
return new CSSStyleSheet(), typeof new CSSStyleSheet().replace == "function";
|
2112
2116
|
} catch {
|
2113
2117
|
}
|
2114
2118
|
return !1;
|
2115
|
-
})(),
|
2119
|
+
})(), cr = (n, e, t, s) => {
|
2116
2120
|
t && t.map(([r, i, o]) => {
|
2117
|
-
const a =
|
2121
|
+
const a = ko(n, r), l = wo(e, o), c = So(r);
|
2118
2122
|
E.ael(a, i, l, c), (e.$rmListeners$ = e.$rmListeners$ || []).push(() => E.rel(a, i, l, c));
|
2119
2123
|
});
|
2120
|
-
},
|
2124
|
+
}, wo = (n, e) => (t) => {
|
2121
2125
|
try {
|
2122
|
-
|
2126
|
+
he.lazyLoad || n.$hostElement$[e](t);
|
2123
2127
|
} catch (s) {
|
2124
|
-
|
2128
|
+
Fe(s);
|
2125
2129
|
}
|
2126
|
-
},
|
2130
|
+
}, ko = (n, e) => e & 4 ? H : e & 8 ? $t : e & 16 ? H.body : n, So = (n) => yo ? {
|
2127
2131
|
passive: (n & 1) !== 0,
|
2128
2132
|
capture: (n & 2) !== 0
|
2129
|
-
} : (n & 2) !== 0,
|
2130
|
-
},
|
2131
|
-
let s =
|
2132
|
-
|
2133
|
-
},
|
2134
|
-
let r =
|
2133
|
+
} : (n & 2) !== 0, rs = "http://www.w3.org/1999/xlink", oe = (n, e = "") => () => {
|
2134
|
+
}, is = /* @__PURE__ */ new WeakMap(), _o = (n, e, t) => {
|
2135
|
+
let s = it.get(n);
|
2136
|
+
xo && t ? (s = s || new CSSStyleSheet(), s.replace(e)) : s = e, it.set(n, s);
|
2137
|
+
}, Co = (n, e, t, s) => {
|
2138
|
+
let r = hr(e, t), i = it.get(r);
|
2135
2139
|
if (n = n.nodeType === 11 ? n : H, i)
|
2136
2140
|
if (typeof i == "string") {
|
2137
2141
|
n = n.head || n;
|
2138
|
-
let o =
|
2139
|
-
o ||
|
2142
|
+
let o = is.get(n), a;
|
2143
|
+
o || is.set(n, o = /* @__PURE__ */ new Set()), o.has(r) || (a = H.createElement("style"), a.innerHTML = i, n.insertBefore(a, n.querySelector("link")), o && o.add(r));
|
2140
2144
|
} else n.adoptedStyleSheets.includes(i) || (n.adoptedStyleSheets = [...n.adoptedStyleSheets, i]);
|
2141
2145
|
return r;
|
2142
|
-
},
|
2143
|
-
const e = n.$cmpMeta$, t = n.$hostElement$, s = e.$flags$, r =
|
2146
|
+
}, Ao = (n) => {
|
2147
|
+
const e = n.$cmpMeta$, t = n.$hostElement$, s = e.$flags$, r = oe("attachStyles", e.$tagName$), i = Co(t.shadowRoot ? t.shadowRoot : t.getRootNode(), e, n.$modeName$);
|
2144
2148
|
s & 10 && (t["s-sc"] = i, t.classList.add(i + "-h"), s & 2 && t.classList.add(i + "-s")), r();
|
2145
|
-
},
|
2149
|
+
}, hr = (n, e) => "sc-" + (e && n.$flags$ & 32 ? n.$tagName$ + "-" + e : n.$tagName$), Eo = (n) => na.map((e) => e(n)).find((e) => !!e), os = {}, Lo = "http://www.w3.org/2000/svg", To = "http://www.w3.org/1999/xhtml", Ro = (n) => n != null, hn = (n) => (n = typeof n, n === "object" || n === "function"), ge = (n, e, ...t) => {
|
2146
2150
|
let s = null, r = null, i = null, o = !1, a = !1, l = [];
|
2147
2151
|
const c = (u) => {
|
2148
2152
|
for (let d = 0; d < u.length; d++)
|
2149
|
-
s = u[d], Array.isArray(s) ? c(s) : s != null && typeof s != "boolean" && ((o = typeof n != "function" && !
|
2153
|
+
s = u[d], Array.isArray(s) ? c(s) : s != null && typeof s != "boolean" && ((o = typeof n != "function" && !hn(s)) && (s = String(s)), o && a ? l[l.length - 1].$text$ += s : l.push(o ? st(null, s) : s), a = o);
|
2150
2154
|
};
|
2151
2155
|
if (c(t), e) {
|
2152
2156
|
e.key && (r = e.key), e.name && (i = e.name);
|
@@ -2156,10 +2160,10 @@ const yt = typeof window < "u" ? window : {}, H = yt.document || { head: {} }, a
|
|
2156
2160
|
}
|
2157
2161
|
}
|
2158
2162
|
if (typeof n == "function")
|
2159
|
-
return n(e === null ? {} : e, l,
|
2160
|
-
const h =
|
2163
|
+
return n(e === null ? {} : e, l, Oo);
|
2164
|
+
const h = st(n, null);
|
2161
2165
|
return h.$attrs$ = e, l.length > 0 && (h.$children$ = l), h.$key$ = r, h.$name$ = i, h;
|
2162
|
-
},
|
2166
|
+
}, st = (n, e) => {
|
2163
2167
|
const t = {
|
2164
2168
|
$flags$: 0,
|
2165
2169
|
$tag$: n,
|
@@ -2168,28 +2172,28 @@ const yt = typeof window < "u" ? window : {}, H = yt.document || { head: {} }, a
|
|
2168
2172
|
$children$: null
|
2169
2173
|
};
|
2170
2174
|
return t.$attrs$ = null, t.$key$ = null, t.$name$ = null, t;
|
2171
|
-
},
|
2172
|
-
forEach: (n, e) => n.map(
|
2173
|
-
map: (n, e) => n.map(
|
2174
|
-
},
|
2175
|
+
}, un = {}, Po = (n) => n && n.$tag$ === un, Oo = {
|
2176
|
+
forEach: (n, e) => n.map(as).forEach(e),
|
2177
|
+
map: (n, e) => n.map(as).map(e).map(Io)
|
2178
|
+
}, as = (n) => ({
|
2175
2179
|
vattrs: n.$attrs$,
|
2176
2180
|
vchildren: n.$children$,
|
2177
2181
|
vkey: n.$key$,
|
2178
2182
|
vname: n.$name$,
|
2179
2183
|
vtag: n.$tag$,
|
2180
2184
|
vtext: n.$text$
|
2181
|
-
}),
|
2185
|
+
}), Io = (n) => {
|
2182
2186
|
if (typeof n.vtag == "function") {
|
2183
2187
|
const t = Object.assign({}, n.vattrs);
|
2184
|
-
return n.vkey && (t.key = n.vkey), n.vname && (t.name = n.vname),
|
2188
|
+
return n.vkey && (t.key = n.vkey), n.vname && (t.name = n.vname), ge(n.vtag, t, ...n.vchildren || []);
|
2185
2189
|
}
|
2186
|
-
const e =
|
2190
|
+
const e = st(n.vtag, n.vtext);
|
2187
2191
|
return e.$attrs$ = n.vattrs, e.$children$ = n.vchildren, e.$key$ = n.vkey, e.$name$ = n.vname, e;
|
2188
|
-
},
|
2192
|
+
}, ls = (n, e, t, s, r, i) => {
|
2189
2193
|
if (t !== s) {
|
2190
|
-
let o =
|
2194
|
+
let o = ds(n, e), a = e.toLowerCase();
|
2191
2195
|
if (e === "class") {
|
2192
|
-
const l = n.classList, c =
|
2196
|
+
const l = n.classList, c = cs(t), h = cs(s);
|
2193
2197
|
l.remove(...c.filter((u) => u && !h.includes(u))), l.add(...h.filter((u) => u && !c.includes(u)));
|
2194
2198
|
} else if (e === "style") {
|
2195
2199
|
for (const l in t)
|
@@ -2200,9 +2204,9 @@ const yt = typeof window < "u" ? window : {}, H = yt.document || { head: {} }, a
|
|
2200
2204
|
if (e === "ref")
|
2201
2205
|
s && s(n);
|
2202
2206
|
else if (!n.__lookupSetter__(e) && e[0] === "o" && e[1] === "n")
|
2203
|
-
e[2] === "-" ? e = e.slice(3) :
|
2207
|
+
e[2] === "-" ? e = e.slice(3) : ds($t, 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);
|
2204
2208
|
else {
|
2205
|
-
const l =
|
2209
|
+
const l = hn(s);
|
2206
2210
|
if ((o || l && s !== null) && !r)
|
2207
2211
|
try {
|
2208
2212
|
if (n.tagName.includes("-"))
|
@@ -2214,18 +2218,18 @@ const yt = typeof window < "u" ? window : {}, H = yt.document || { head: {} }, a
|
|
2214
2218
|
} catch {
|
2215
2219
|
}
|
2216
2220
|
let c = !1;
|
2217
|
-
a !== (a = a.replace(/^xlink\:?/, "")) && (e = a, c = !0), s == null || s === !1 ? (s !== !1 || n.getAttribute(e) === "") && (c ? n.removeAttributeNS(
|
2221
|
+
a !== (a = a.replace(/^xlink\:?/, "")) && (e = a, c = !0), s == null || s === !1 ? (s !== !1 || n.getAttribute(e) === "") && (c ? n.removeAttributeNS(rs, e) : n.removeAttribute(e)) : (!o || i & 4 || r) && !l && (s = s === !0 ? "" : s, c ? n.setAttributeNS(rs, e, s) : n.setAttribute(e, s));
|
2218
2222
|
}
|
2219
2223
|
}
|
2220
|
-
},
|
2221
|
-
const r = e.$elm$.nodeType === 11 && e.$elm$.host ? e.$elm$.host : e.$elm$, i = n && n.$attrs$ ||
|
2224
|
+
}, Mo = /\s/, cs = (n) => n ? n.split(Mo) : [], ur = (n, e, t, s) => {
|
2225
|
+
const r = e.$elm$.nodeType === 11 && e.$elm$.host ? e.$elm$.host : e.$elm$, i = n && n.$attrs$ || os, o = e.$attrs$ || os;
|
2222
2226
|
for (s in i)
|
2223
|
-
s in o ||
|
2227
|
+
s in o || ls(r, s, i[s], void 0, t, e.$flags$);
|
2224
2228
|
for (s in o)
|
2225
|
-
|
2226
|
-
},
|
2229
|
+
ls(r, s, i[s], o[s], t, e.$flags$);
|
2230
|
+
}, rt = (n, e, t, s) => {
|
2227
2231
|
let r = e.$children$[t], i = 0, o, a, l;
|
2228
|
-
if (
|
2232
|
+
if (ar || (cn = !0, r.$tag$ === "slot" && (ue && s.classList.add(ue + "-s"), r.$flags$ |= r.$children$ ? (
|
2229
2233
|
// slot element has fallback content
|
2230
2234
|
2
|
2231
2235
|
) : (
|
@@ -2236,28 +2240,28 @@ const yt = typeof window < "u" ? window : {}, H = yt.document || { head: {} }, a
|
|
2236
2240
|
else if (r.$flags$ & 1)
|
2237
2241
|
o = r.$elm$ = H.createTextNode("");
|
2238
2242
|
else {
|
2239
|
-
if (R || (R = r.$tag$ === "svg"), o = r.$elm$ = H.createElementNS(R ?
|
2243
|
+
if (R || (R = r.$tag$ === "svg"), o = r.$elm$ = H.createElementNS(R ? Lo : To, r.$flags$ & 2 ? "slot-fb" : r.$tag$), R && r.$tag$ === "foreignObject" && (R = !1), ur(null, r, R), Ro(ue) && o["s-si"] !== ue && o.classList.add(o["s-si"] = ue), r.$children$)
|
2240
2244
|
for (i = 0; i < r.$children$.length; ++i)
|
2241
|
-
a =
|
2245
|
+
a = rt(n, r, i, o), a && o.appendChild(a);
|
2242
2246
|
r.$tag$ === "svg" ? R = !1 : o.tagName === "foreignObject" && (R = !0);
|
2243
2247
|
}
|
2244
|
-
return o["s-hn"] =
|
2245
|
-
},
|
2248
|
+
return o["s-hn"] = yt, r.$flags$ & 3 && (o["s-sr"] = !0, o["s-cr"] = or, o["s-sn"] = r.$name$ || "", l = n && n.$children$ && n.$children$[t], l && l.$tag$ === r.$tag$ && n.$elm$ && Ie(n.$elm$, !1)), o;
|
2249
|
+
}, Ie = (n, e) => {
|
2246
2250
|
E.$flags$ |= 1;
|
2247
2251
|
const t = n.childNodes;
|
2248
2252
|
for (let s = t.length - 1; s >= 0; s--) {
|
2249
2253
|
const r = t[s];
|
2250
|
-
r["s-hn"] !==
|
2254
|
+
r["s-hn"] !== yt && r["s-ol"] && (fr(r).insertBefore(r, dn(r)), r["s-ol"].remove(), r["s-ol"] = void 0, cn = !0), e && Ie(r, e);
|
2251
2255
|
}
|
2252
2256
|
E.$flags$ &= -2;
|
2253
|
-
},
|
2257
|
+
}, dr = (n, e, t, s, r, i) => {
|
2254
2258
|
let o = n["s-cr"] && n["s-cr"].parentNode || n, a;
|
2255
|
-
for (o.shadowRoot && o.tagName ===
|
2256
|
-
s[r] && (a =
|
2257
|
-
},
|
2259
|
+
for (o.shadowRoot && o.tagName === yt && (o = o.shadowRoot); r <= i; ++r)
|
2260
|
+
s[r] && (a = rt(null, t, r, n), a && (s[r].$elm$ = a, o.insertBefore(a, dn(e))));
|
2261
|
+
}, pr = (n, e, t, s, r) => {
|
2258
2262
|
for (; e <= t; ++e)
|
2259
|
-
(s = n[e]) && (r = s.$elm$,
|
2260
|
-
},
|
2263
|
+
(s = n[e]) && (r = s.$elm$, vr(s), nt = !0, r["s-ol"] ? r["s-ol"].remove() : Ie(r, !0), r.remove());
|
2264
|
+
}, zo = (n, e, t, s) => {
|
2261
2265
|
let r = 0, i = 0, o = 0, a = 0, l = e.length - 1, c = e[0], h = e[l], u = s.length - 1, d = s[0], p = s[u], g, f;
|
2262
2266
|
for (; r <= l && i <= u; )
|
2263
2267
|
if (c == null)
|
@@ -2269,27 +2273,27 @@ const yt = typeof window < "u" ? window : {}, H = yt.document || { head: {} }, a
|
|
2269
2273
|
else if (p == null)
|
2270
2274
|
p = s[--u];
|
2271
2275
|
else if (We(c, d))
|
2272
|
-
|
2276
|
+
de(c, d), c = e[++r], d = s[++i];
|
2273
2277
|
else if (We(h, p))
|
2274
|
-
|
2278
|
+
de(h, p), h = e[--l], p = s[--u];
|
2275
2279
|
else if (We(c, p))
|
2276
|
-
(c.$tag$ === "slot" || p.$tag$ === "slot") &&
|
2280
|
+
(c.$tag$ === "slot" || p.$tag$ === "slot") && Ie(c.$elm$.parentNode, !1), de(c, p), n.insertBefore(c.$elm$, h.$elm$.nextSibling), c = e[++r], p = s[--u];
|
2277
2281
|
else if (We(h, d))
|
2278
|
-
(c.$tag$ === "slot" || p.$tag$ === "slot") &&
|
2282
|
+
(c.$tag$ === "slot" || p.$tag$ === "slot") && Ie(h.$elm$.parentNode, !1), de(h, d), n.insertBefore(h.$elm$, c.$elm$), h = e[--l], d = s[++i];
|
2279
2283
|
else {
|
2280
2284
|
for (o = -1, a = r; a <= l; ++a)
|
2281
2285
|
if (e[a] && e[a].$key$ !== null && e[a].$key$ === d.$key$) {
|
2282
2286
|
o = a;
|
2283
2287
|
break;
|
2284
2288
|
}
|
2285
|
-
o >= 0 ? (f = e[o], f.$tag$ !== d.$tag$ ? g =
|
2289
|
+
o >= 0 ? (f = e[o], f.$tag$ !== d.$tag$ ? g = rt(e && e[i], t, o, n) : (de(f, d), e[o] = void 0, g = f.$elm$), d = s[++i]) : (g = rt(e && e[i], t, i, n), d = s[++i]), g && fr(c.$elm$).insertBefore(g, dn(c.$elm$));
|
2286
2290
|
}
|
2287
|
-
r > l ?
|
2288
|
-
}, We = (n, e) => n.$tag$ === e.$tag$ ? n.$tag$ === "slot" ? n.$name$ === e.$name$ : n.$key$ === e.$key$ : !1,
|
2291
|
+
r > l ? dr(n, s[u + 1] == null ? null : s[u + 1].$elm$, t, s, i, u) : i > u && pr(e, r, l);
|
2292
|
+
}, We = (n, e) => n.$tag$ === e.$tag$ ? n.$tag$ === "slot" ? n.$name$ === e.$name$ : n.$key$ === e.$key$ : !1, dn = (n) => n && n["s-ol"] || n, fr = (n) => (n["s-ol"] ? n["s-ol"] : n).parentNode, de = (n, e) => {
|
2289
2293
|
const t = e.$elm$ = n.$elm$, s = n.$children$, r = e.$children$, i = e.$tag$, o = e.$text$;
|
2290
2294
|
let a;
|
2291
|
-
o === null ? (R = i === "svg" ? !0 : i === "foreignObject" ? !1 : R, i === "slot" ||
|
2292
|
-
},
|
2295
|
+
o === null ? (R = i === "svg" ? !0 : i === "foreignObject" ? !1 : R, i === "slot" || ur(n, e, R), s !== null && r !== null ? zo(t, s, e, r) : r !== null ? (n.$text$ !== null && (t.textContent = ""), dr(t, null, e, r, 0, r.length - 1)) : s !== null && pr(s, 0, s.length - 1), R && i === "svg" && (R = !1)) : (a = t["s-cr"]) ? a.parentNode.textContent = o : n.$text$ !== o && (t.data = o);
|
2296
|
+
}, gr = (n) => {
|
2293
2297
|
let e = n.childNodes, t, s, r, i, o, a;
|
2294
2298
|
for (s = 0, r = e.length; s < r; s++)
|
2295
2299
|
if (t = e[s], t.nodeType === 1) {
|
@@ -2305,31 +2309,31 @@ const yt = typeof window < "u" ? window : {}, H = yt.document || { head: {} }, a
|
|
2305
2309
|
break;
|
2306
2310
|
}
|
2307
2311
|
}
|
2308
|
-
|
2312
|
+
gr(t);
|
2309
2313
|
}
|
2310
|
-
}, M = [],
|
2314
|
+
}, M = [], mr = (n) => {
|
2311
2315
|
let e, t, s, r, i, o, a = 0, l = n.childNodes, c = l.length;
|
2312
2316
|
for (; a < c; a++) {
|
2313
2317
|
if (e = l[a], e["s-sr"] && (t = e["s-cr"]) && t.parentNode)
|
2314
2318
|
for (s = t.parentNode.childNodes, r = e["s-sn"], o = s.length - 1; o >= 0; o--)
|
2315
|
-
t = s[o], !t["s-cn"] && !t["s-nr"] && t["s-hn"] !== e["s-hn"] && (
|
2319
|
+
t = s[o], !t["s-cn"] && !t["s-nr"] && t["s-hn"] !== e["s-hn"] && (hs(t, r) ? (i = M.find((h) => h.$nodeToRelocate$ === t), nt = !0, t["s-sn"] = t["s-sn"] || r, i ? i.$slotRefNode$ = e : M.push({
|
2316
2320
|
$slotRefNode$: e,
|
2317
2321
|
$nodeToRelocate$: t
|
2318
2322
|
}), t["s-sr"] && M.map((h) => {
|
2319
|
-
|
2323
|
+
hs(h.$nodeToRelocate$, t["s-sn"]) && (i = M.find((u) => u.$nodeToRelocate$ === t), i && !h.$slotRefNode$ && (h.$slotRefNode$ = i.$slotRefNode$));
|
2320
2324
|
})) : M.some((h) => h.$nodeToRelocate$ === t) || M.push({
|
2321
2325
|
$nodeToRelocate$: t
|
2322
2326
|
}));
|
2323
|
-
e.nodeType === 1 &&
|
2327
|
+
e.nodeType === 1 && mr(e);
|
2324
2328
|
}
|
2325
|
-
},
|
2326
|
-
n.$attrs$ && n.$attrs$.ref && n.$attrs$.ref(null), n.$children$ && n.$children$.map(
|
2327
|
-
},
|
2328
|
-
const t = n.$hostElement$, s = n.$cmpMeta$, r = n.$vnode$ ||
|
2329
|
-
|
2329
|
+
}, hs = (n, e) => n.nodeType === 1 ? n.getAttribute("slot") === null && e === "" || n.getAttribute("slot") === e : n["s-sn"] === e ? !0 : e === "", vr = (n) => {
|
2330
|
+
n.$attrs$ && n.$attrs$.ref && n.$attrs$.ref(null), n.$children$ && n.$children$.map(vr);
|
2331
|
+
}, Uo = (n, e) => {
|
2332
|
+
const t = n.$hostElement$, s = n.$cmpMeta$, r = n.$vnode$ || st(null, null), i = Po(e) ? e : ge(null, null, e);
|
2333
|
+
yt = t.tagName, s.$attrsToReflect$ && (i.$attrs$ = i.$attrs$ || {}, s.$attrsToReflect$.map(([o, a]) => i.$attrs$[a] = t[o])), i.$tag$ = null, i.$flags$ |= 4, n.$vnode$ = i, i.$elm$ = r.$elm$ = t.shadowRoot || t, ue = t["s-sc"], or = t["s-cr"], ar = (s.$flags$ & 1) !== 0, nt = !1, de(r, i);
|
2330
2334
|
{
|
2331
|
-
if (E.$flags$ |= 1,
|
2332
|
-
|
2335
|
+
if (E.$flags$ |= 1, cn) {
|
2336
|
+
mr(i.$elm$);
|
2333
2337
|
let o, a, l, c, h, u, d = 0;
|
2334
2338
|
for (; d < M.length; d++)
|
2335
2339
|
o = M[d], a = o.$nodeToRelocate$, a["s-ol"] || (l = H.createTextNode(""), l["s-nr"] = a, a.parentNode.insertBefore(a["s-ol"] = l, a));
|
@@ -2344,51 +2348,51 @@ const yt = typeof window < "u" ? window : {}, H = yt.document || { head: {} }, a
|
|
2344
2348
|
} else
|
2345
2349
|
a.nodeType === 1 && (a.hidden = !0);
|
2346
2350
|
}
|
2347
|
-
|
2351
|
+
nt && gr(i.$elm$), E.$flags$ &= -2, M.length = 0;
|
2348
2352
|
}
|
2349
|
-
},
|
2350
|
-
const s =
|
2353
|
+
}, Bo = (n) => n, jo = (n, e, t) => {
|
2354
|
+
const s = Bo(n);
|
2351
2355
|
return {
|
2352
|
-
emit: (r) =>
|
2356
|
+
emit: (r) => No(s, e, {
|
2353
2357
|
bubbles: !0,
|
2354
2358
|
composed: !0,
|
2355
2359
|
cancelable: !0,
|
2356
2360
|
detail: r
|
2357
2361
|
})
|
2358
2362
|
};
|
2359
|
-
},
|
2363
|
+
}, No = (n, e, t) => {
|
2360
2364
|
const s = E.ce(e, t);
|
2361
2365
|
return n.dispatchEvent(s), s;
|
2362
|
-
},
|
2363
|
-
},
|
2364
|
-
const t = n.$hostElement$, s =
|
2366
|
+
}, Ho = (n, e) => {
|
2367
|
+
}, br = (n, e) => (n.$flags$ |= 16, Ho(n, n.$ancestorComponent$), ia(() => Do(n, e))), Do = (n, e) => {
|
2368
|
+
const t = n.$hostElement$, s = oe("scheduleUpdate", n.$cmpMeta$.$tagName$), r = t;
|
2365
2369
|
let i;
|
2366
|
-
return e ? i =
|
2367
|
-
},
|
2368
|
-
const s = n.$hostElement$, r =
|
2369
|
-
s["s-rc"], t &&
|
2370
|
-
const i =
|
2371
|
-
|
2372
|
-
},
|
2370
|
+
return e ? i = me(r, "componentWillLoad") : i = me(r, "componentWillUpdate"), i = us(i, () => me(r, "componentWillRender")), s(), us(i, () => Fo(n, r, e));
|
2371
|
+
}, Fo = async (n, e, t) => {
|
2372
|
+
const s = n.$hostElement$, r = oe("update", n.$cmpMeta$.$tagName$);
|
2373
|
+
s["s-rc"], t && Ao(n);
|
2374
|
+
const i = oe("render", n.$cmpMeta$.$tagName$);
|
2375
|
+
qo(n, e, s), i(), r(), Zo(n);
|
2376
|
+
}, qo = (n, e, t) => {
|
2373
2377
|
try {
|
2374
|
-
|
2378
|
+
ss = e, e = e.render && e.render(), n.$flags$ &= -17, n.$flags$ |= 2, (he.hasRenderFn || he.reflect) && (he.vdomRender || he.reflect) && (he.hydrateServerSide || Uo(n, e));
|
2375
2379
|
} catch (a) {
|
2376
|
-
|
2380
|
+
Fe(a, n.$hostElement$);
|
2377
2381
|
}
|
2378
|
-
return
|
2379
|
-
},
|
2380
|
-
const e = n.$cmpMeta$.$tagName$, t = n.$hostElement$, s =
|
2381
|
-
n.$ancestorComponent$,
|
2382
|
-
},
|
2382
|
+
return ss = null, null;
|
2383
|
+
}, Zo = (n) => {
|
2384
|
+
const e = n.$cmpMeta$.$tagName$, t = n.$hostElement$, s = oe("postUpdate", e), r = t;
|
2385
|
+
n.$ancestorComponent$, me(r, "componentDidRender"), n.$flags$ & 64 ? (me(r, "componentDidUpdate"), s()) : (n.$flags$ |= 64, me(r, "componentDidLoad"), s());
|
2386
|
+
}, me = (n, e, t) => {
|
2383
2387
|
if (n && n[e])
|
2384
2388
|
try {
|
2385
2389
|
return n[e](t);
|
2386
2390
|
} catch (s) {
|
2387
|
-
|
2391
|
+
Fe(s);
|
2388
2392
|
}
|
2389
|
-
},
|
2390
|
-
const r =
|
2391
|
-
t =
|
2393
|
+
}, us = (n, e) => n && n.then ? n.then(e) : e(), Go = (n, e) => n != null && !hn(n) ? e & 4 ? n === "false" ? !1 : n === "" || !!n : e & 2 ? parseFloat(n) : e & 1 ? String(n) : n : n, Wo = (n, e) => xt(n).$instanceValues$.get(e), Ko = (n, e, t, s) => {
|
2394
|
+
const r = xt(n), i = n, o = r.$instanceValues$.get(e), a = r.$flags$, l = i;
|
2395
|
+
t = Go(t, s.$members$[e][0]);
|
2392
2396
|
const c = Number.isNaN(o) && Number.isNaN(t);
|
2393
2397
|
if (t !== o && !c) {
|
2394
2398
|
r.$instanceValues$.set(e, t);
|
@@ -2399,18 +2403,18 @@ const yt = typeof window < "u" ? window : {}, H = yt.document || { head: {} }, a
|
|
2399
2403
|
try {
|
2400
2404
|
l[d](t, o, e);
|
2401
2405
|
} catch (p) {
|
2402
|
-
|
2406
|
+
Fe(p, i);
|
2403
2407
|
}
|
2404
2408
|
});
|
2405
2409
|
}
|
2406
2410
|
if ((a & 18) === 2) {
|
2407
2411
|
if (l.componentShouldUpdate && l.componentShouldUpdate(t, o, e) === !1)
|
2408
2412
|
return;
|
2409
|
-
|
2413
|
+
br(r, !1);
|
2410
2414
|
}
|
2411
2415
|
}
|
2412
2416
|
}
|
2413
|
-
},
|
2417
|
+
}, Qo = (n, e, t) => {
|
2414
2418
|
if (e.$members$) {
|
2415
2419
|
n.watchers && (e.$watchers$ = n.watchers);
|
2416
2420
|
const s = Object.entries(e.$members$), r = n.prototype;
|
@@ -2420,7 +2424,7 @@ const yt = typeof window < "u" ? window : {}, H = yt.document || { head: {} }, a
|
|
2420
2424
|
return Wo(this, i);
|
2421
2425
|
},
|
2422
2426
|
set(a) {
|
2423
|
-
|
2427
|
+
Ko(this, i, a, e);
|
2424
2428
|
},
|
2425
2429
|
configurable: !0,
|
2426
2430
|
enumerable: !0
|
@@ -2447,37 +2451,37 @@ const yt = typeof window < "u" ? window : {}, H = yt.document || { head: {} }, a
|
|
2447
2451
|
}
|
2448
2452
|
}
|
2449
2453
|
return n;
|
2450
|
-
},
|
2454
|
+
}, Xo = async (n, e, t, s, r) => {
|
2451
2455
|
if (!(e.$flags$ & 32) && (r = n.constructor, e.$flags$ |= 32, customElements.whenDefined(t.$tagName$).then(() => e.$flags$ |= 128), r.style)) {
|
2452
2456
|
let o = r.style;
|
2453
|
-
typeof o != "string" && (o = o[e.$modeName$ =
|
2454
|
-
const a =
|
2455
|
-
if (!
|
2456
|
-
const l =
|
2457
|
-
|
2457
|
+
typeof o != "string" && (o = o[e.$modeName$ = Eo(n)]);
|
2458
|
+
const a = hr(t, e.$modeName$);
|
2459
|
+
if (!it.has(a)) {
|
2460
|
+
const l = oe("registerStyles", t.$tagName$);
|
2461
|
+
_o(a, o, !!(t.$flags$ & 1)), l();
|
2458
2462
|
}
|
2459
2463
|
}
|
2460
|
-
e.$ancestorComponent$,
|
2461
|
-
},
|
2462
|
-
},
|
2464
|
+
e.$ancestorComponent$, br(e, !0);
|
2465
|
+
}, Yo = (n) => {
|
2466
|
+
}, Vo = (n) => {
|
2463
2467
|
if (!(E.$flags$ & 1)) {
|
2464
|
-
const e =
|
2465
|
-
e.$flags$ & 1 ? (
|
2468
|
+
const e = xt(n), t = e.$cmpMeta$, s = oe("connectedCallback", t.$tagName$);
|
2469
|
+
e.$flags$ & 1 ? (cr(n, e, t.$listeners$), Yo(e.$lazyInstance$)) : (e.$flags$ |= 1, t.$flags$ & 12 && Jo(n), t.$members$ && Object.entries(t.$members$).map(([r, [i]]) => {
|
2466
2470
|
if (i & 31 && n.hasOwnProperty(r)) {
|
2467
2471
|
const o = n[r];
|
2468
2472
|
delete n[r], n[r] = o;
|
2469
2473
|
}
|
2470
|
-
}),
|
2474
|
+
}), Xo(n, e, t)), s();
|
2471
2475
|
}
|
2472
|
-
},
|
2476
|
+
}, Jo = (n) => {
|
2473
2477
|
const e = n["s-cr"] = H.createComment("");
|
2474
2478
|
e["s-cn"] = !0, n.insertBefore(e, n.firstChild);
|
2475
|
-
},
|
2479
|
+
}, ea = (n) => {
|
2476
2480
|
if (!(E.$flags$ & 1)) {
|
2477
|
-
const e =
|
2481
|
+
const e = xt(n);
|
2478
2482
|
e.$rmListeners$ && (e.$rmListeners$.map((t) => t()), e.$rmListeners$ = void 0);
|
2479
2483
|
}
|
2480
|
-
},
|
2484
|
+
}, yr = (n, e) => {
|
2481
2485
|
const t = {
|
2482
2486
|
$flags$: e[0],
|
2483
2487
|
$tagName$: e[1]
|
@@ -2486,13 +2490,13 @@ const yt = typeof window < "u" ? window : {}, H = yt.document || { head: {} }, a
|
|
2486
2490
|
const s = n.prototype.connectedCallback, r = n.prototype.disconnectedCallback;
|
2487
2491
|
return Object.assign(n.prototype, {
|
2488
2492
|
__registerHost() {
|
2489
|
-
|
2493
|
+
ta(this, t);
|
2490
2494
|
},
|
2491
2495
|
connectedCallback() {
|
2492
|
-
|
2496
|
+
Vo(this), s && s.call(this);
|
2493
2497
|
},
|
2494
2498
|
disconnectedCallback() {
|
2495
|
-
|
2499
|
+
ea(this), r && r.call(this);
|
2496
2500
|
},
|
2497
2501
|
__attachShadow() {
|
2498
2502
|
this.attachShadow({
|
@@ -2500,28 +2504,28 @@ const yt = typeof window < "u" ? window : {}, H = yt.document || { head: {} }, a
|
|
2500
2504
|
delegatesFocus: !!(t.$flags$ & 16)
|
2501
2505
|
});
|
2502
2506
|
}
|
2503
|
-
}), n.is = t.$tagName$,
|
2504
|
-
},
|
2507
|
+
}), n.is = t.$tagName$, Qo(n, t);
|
2508
|
+
}, $r = /* @__PURE__ */ new WeakMap(), xt = (n) => $r.get(n), ta = (n, e) => {
|
2505
2509
|
const t = {
|
2506
2510
|
$flags$: 0,
|
2507
2511
|
$hostElement$: n,
|
2508
2512
|
$cmpMeta$: e,
|
2509
2513
|
$instanceValues$: /* @__PURE__ */ new Map()
|
2510
2514
|
};
|
2511
|
-
return
|
2512
|
-
},
|
2513
|
-
n.push(t),
|
2514
|
-
},
|
2515
|
+
return cr(n, t, e.$listeners$), $r.set(n, t);
|
2516
|
+
}, ds = (n, e) => e in n, Fe = (n, e) => (0, console.error)(n, e), it = /* @__PURE__ */ new Map(), na = [], ps = [], xr = [], sa = (n, e) => (t) => {
|
2517
|
+
n.push(t), qt || (qt = !0, e && E.$flags$ & 4 ? ra(Zt) : E.raf(Zt));
|
2518
|
+
}, fs = (n) => {
|
2515
2519
|
for (let e = 0; e < n.length; e++)
|
2516
2520
|
try {
|
2517
2521
|
n[e](performance.now());
|
2518
2522
|
} catch (t) {
|
2519
|
-
|
2523
|
+
Fe(t);
|
2520
2524
|
}
|
2521
2525
|
n.length = 0;
|
2522
|
-
},
|
2523
|
-
ps
|
2524
|
-
},
|
2526
|
+
}, Zt = () => {
|
2527
|
+
fs(ps), fs(xr), (qt = ps.length > 0) && E.raf(Zt);
|
2528
|
+
}, ra = (n) => $o().then(n), ia = /* @__PURE__ */ sa(xr, !0), oa = (n = {}) => {
|
2525
2529
|
const { content: e = "", title: t, attributes: s = [] } = n;
|
2526
2530
|
let r = "", i = [
|
2527
2531
|
{ name: "xmlns", value: "http://www.w3.org/2000/svg" },
|
@@ -2529,54 +2533,54 @@ const yt = typeof window < "u" ? window : {}, H = yt.document || { head: {} }, a
|
|
2529
2533
|
...s
|
2530
2534
|
];
|
2531
2535
|
return t && (r = `<title>${t}</title>`), `<svg ${i.map((a) => `${a.name}="${a.value}"`).join(" ")}>${r}${e}</svg>`;
|
2532
|
-
},
|
2533
|
-
function
|
2536
|
+
}, aa = (n) => n.replace(/<(\/?)svg([^>]*)>/g, "").trim();
|
2537
|
+
function la(n) {
|
2534
2538
|
return `${n.getFullYear()}.${n.getMonth() + 1}`;
|
2535
2539
|
}
|
2536
|
-
class
|
2540
|
+
class ca {
|
2537
2541
|
constructor(e) {
|
2538
|
-
this.voca_component = e, this.voca_added =
|
2542
|
+
this.voca_component = e, this.voca_added = la(/* @__PURE__ */ new Date());
|
2539
2543
|
}
|
2540
2544
|
}
|
2541
|
-
const
|
2545
|
+
const ha = "telia-vst{display:none}", ua = /* @__PURE__ */ yr(class extends lr {
|
2542
2546
|
constructor() {
|
2543
|
-
super(), this.__registerHost(), this.vocaInternalUStats =
|
2547
|
+
super(), this.__registerHost(), this.vocaInternalUStats = jo(this, "vocaInternalUStats");
|
2544
2548
|
}
|
2545
2549
|
connectedCallback() {
|
2546
|
-
this.vocaInternalUStats.emit(new
|
2550
|
+
this.vocaInternalUStats.emit(new ca(this.dataTrackingId));
|
2547
2551
|
}
|
2548
2552
|
render() {
|
2549
|
-
return
|
2553
|
+
return ge(un, null);
|
2550
2554
|
}
|
2551
2555
|
static get style() {
|
2552
|
-
return
|
2556
|
+
return ha;
|
2553
2557
|
}
|
2554
2558
|
}, [0, "telia-vst", {
|
2555
2559
|
dataTrackingId: [1, "data-tracking-id"]
|
2556
2560
|
}]);
|
2557
|
-
function
|
2561
|
+
function wr() {
|
2558
2562
|
if (typeof customElements > "u")
|
2559
2563
|
return;
|
2560
2564
|
["telia-vst"].forEach((e) => {
|
2561
2565
|
switch (e) {
|
2562
2566
|
case "telia-vst":
|
2563
|
-
customElements.get(e) || customElements.define(e,
|
2567
|
+
customElements.get(e) || customElements.define(e, ua);
|
2564
2568
|
break;
|
2565
2569
|
}
|
2566
2570
|
});
|
2567
2571
|
}
|
2568
|
-
|
2569
|
-
function
|
2572
|
+
wr();
|
2573
|
+
function Gt() {
|
2570
2574
|
return typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : { vocadsIcons: void 0, vocadsIconsRegistered: !1 };
|
2571
2575
|
}
|
2572
|
-
function ua() {
|
2573
|
-
if (typeof Zt().vocadsIcons !== void 0)
|
2574
|
-
return Zt().vocadsIcons;
|
2575
|
-
}
|
2576
2576
|
function da() {
|
2577
|
-
|
2577
|
+
if (typeof Gt().vocadsIcons !== void 0)
|
2578
|
+
return Gt().vocadsIcons;
|
2579
|
+
}
|
2580
|
+
function pa() {
|
2581
|
+
return Gt().vocadsIconsRegistered;
|
2578
2582
|
}
|
2579
|
-
const
|
2583
|
+
const fa = ".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))}", ga = /* @__PURE__ */ yr(class extends lr {
|
2580
2584
|
constructor() {
|
2581
2585
|
super(), this.__registerHost(), this.size = "md", this.allyTitle = null, this.dataTrackingId = "telia-icon";
|
2582
2586
|
}
|
@@ -2588,8 +2592,8 @@ const pa = ".telia-icon{display:inline-block}.telia-icon__container{display:bloc
|
|
2588
2592
|
getSvgString() {
|
2589
2593
|
if (this.svg)
|
2590
2594
|
return this.svg;
|
2591
|
-
if (
|
2592
|
-
const n =
|
2595
|
+
if (pa() && this.name) {
|
2596
|
+
const n = da();
|
2593
2597
|
return n[this.name] ? n[this.name].svg : "";
|
2594
2598
|
}
|
2595
2599
|
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"), "";
|
@@ -2600,15 +2604,15 @@ const pa = ".telia-icon{display:inline-block}.telia-icon__container{display:bloc
|
|
2600
2604
|
...e,
|
2601
2605
|
{ name: "aria-hidden", value: "true" }
|
2602
2606
|
];
|
2603
|
-
const t =
|
2604
|
-
content:
|
2607
|
+
const t = oa({
|
2608
|
+
content: aa(n),
|
2605
2609
|
attributes: e,
|
2606
2610
|
title: this.allyTitle
|
2607
2611
|
});
|
2608
|
-
return
|
2612
|
+
return ge(un, { class: `telia-icon telia-icon--${this.size}` }, ge("span", { "aria-label": this.allyTitle, class: "telia-icon__container", innerHTML: t }), ge("telia-vst", { dataTrackingId: this.dataTrackingId }));
|
2609
2613
|
}
|
2610
2614
|
static get style() {
|
2611
|
-
return
|
2615
|
+
return fa;
|
2612
2616
|
}
|
2613
2617
|
}, [0, "telia-icon", {
|
2614
2618
|
name: [1],
|
@@ -2617,36 +2621,36 @@ const pa = ".telia-icon{display:inline-block}.telia-icon__container{display:bloc
|
|
2617
2621
|
allyTitle: [1, "ally-title"],
|
2618
2622
|
dataTestid: [1, "data-testid"]
|
2619
2623
|
}]);
|
2620
|
-
function
|
2624
|
+
function ma() {
|
2621
2625
|
if (typeof customElements > "u")
|
2622
2626
|
return;
|
2623
2627
|
["telia-icon", "telia-vst"].forEach((e) => {
|
2624
2628
|
switch (e) {
|
2625
2629
|
case "telia-icon":
|
2626
|
-
customElements.get(e) || customElements.define(e,
|
2630
|
+
customElements.get(e) || customElements.define(e, ga);
|
2627
2631
|
break;
|
2628
2632
|
case "telia-vst":
|
2629
|
-
customElements.get(e) ||
|
2633
|
+
customElements.get(e) || wr();
|
2630
2634
|
break;
|
2631
2635
|
}
|
2632
2636
|
});
|
2633
2637
|
}
|
2634
|
-
|
2638
|
+
ma();
|
2635
2639
|
/**
|
2636
2640
|
* @license
|
2637
2641
|
* Copyright 2017 Google LLC
|
2638
2642
|
* SPDX-License-Identifier: BSD-3-Clause
|
2639
2643
|
*/
|
2640
|
-
const
|
2644
|
+
const va = { attribute: !0, type: String, converter: et, reflect: !1, hasChanged: an }, ba = (n = va, e, t) => {
|
2641
2645
|
const { kind: s, metadata: r } = t;
|
2642
2646
|
let i = globalThis.litPropertyMetadata.get(r);
|
2643
|
-
if (i === void 0 && globalThis.litPropertyMetadata.set(r, i = /* @__PURE__ */ new Map()), i.set(t.name, n), s === "accessor") {
|
2647
|
+
if (i === void 0 && globalThis.litPropertyMetadata.set(r, i = /* @__PURE__ */ new Map()), s === "setter" && ((n = Object.create(n)).wrapped = !0), i.set(t.name, n), s === "accessor") {
|
2644
2648
|
const { name: o } = t;
|
2645
2649
|
return { set(a) {
|
2646
2650
|
const l = e.get.call(this);
|
2647
2651
|
e.set.call(this, a), this.requestUpdate(o, l, n);
|
2648
2652
|
}, init(a) {
|
2649
|
-
return a !== void 0 && this.
|
2653
|
+
return a !== void 0 && this.C(o, void 0, n, a), a;
|
2650
2654
|
} };
|
2651
2655
|
}
|
2652
2656
|
if (s === "setter") {
|
@@ -2659,9 +2663,9 @@ const ma = { attribute: !0, type: String, converter: Je, reflect: !1, hasChanged
|
|
2659
2663
|
throw Error("Unsupported decorator location: " + s);
|
2660
2664
|
};
|
2661
2665
|
function w(n) {
|
2662
|
-
return (e, t) => typeof t == "object" ?
|
2666
|
+
return (e, t) => typeof t == "object" ? ba(n, e, t) : ((s, r, i) => {
|
2663
2667
|
const o = r.hasOwnProperty(i);
|
2664
|
-
return r.constructor.createProperty(i,
|
2668
|
+
return r.constructor.createProperty(i, s), o ? Object.getOwnPropertyDescriptor(r, i) : void 0;
|
2665
2669
|
})(n, e, t);
|
2666
2670
|
}
|
2667
2671
|
/**
|
@@ -2677,14 +2681,14 @@ function C(n) {
|
|
2677
2681
|
* Copyright 2020 Google LLC
|
2678
2682
|
* SPDX-License-Identifier: BSD-3-Clause
|
2679
2683
|
*/
|
2680
|
-
const
|
2684
|
+
const ya = (n) => n.strings === void 0;
|
2681
2685
|
/**
|
2682
2686
|
* @license
|
2683
2687
|
* Copyright 2017 Google LLC
|
2684
2688
|
* SPDX-License-Identifier: BSD-3-Clause
|
2685
2689
|
*/
|
2686
|
-
const
|
2687
|
-
let
|
2690
|
+
const wt = { ATTRIBUTE: 1, CHILD: 2 }, kt = (n) => (...e) => ({ _$litDirective$: n, values: e });
|
2691
|
+
let pn = class {
|
2688
2692
|
constructor(e) {
|
2689
2693
|
}
|
2690
2694
|
get _$AU() {
|
@@ -2705,51 +2709,51 @@ let dn = class {
|
|
2705
2709
|
* Copyright 2017 Google LLC
|
2706
2710
|
* SPDX-License-Identifier: BSD-3-Clause
|
2707
2711
|
*/
|
2708
|
-
const
|
2712
|
+
const Le = (n, e) => {
|
2709
2713
|
var s;
|
2710
2714
|
const t = n._$AN;
|
2711
2715
|
if (t === void 0) return !1;
|
2712
|
-
for (const r of t) (s = r._$AO) == null || s.call(r, e, !1),
|
2716
|
+
for (const r of t) (s = r._$AO) == null || s.call(r, e, !1), Le(r, e);
|
2713
2717
|
return !0;
|
2714
|
-
},
|
2718
|
+
}, ot = (n) => {
|
2715
2719
|
let e, t;
|
2716
2720
|
do {
|
2717
2721
|
if ((e = n._$AM) === void 0) break;
|
2718
2722
|
t = e._$AN, t.delete(n), n = e;
|
2719
2723
|
} while ((t == null ? void 0 : t.size) === 0);
|
2720
|
-
},
|
2724
|
+
}, kr = (n) => {
|
2721
2725
|
for (let e; e = n._$AM; n = e) {
|
2722
2726
|
let t = e._$AN;
|
2723
2727
|
if (t === void 0) e._$AN = t = /* @__PURE__ */ new Set();
|
2724
2728
|
else if (t.has(n)) break;
|
2725
|
-
t.add(n),
|
2729
|
+
t.add(n), wa(e);
|
2726
2730
|
}
|
2727
2731
|
};
|
2728
|
-
function
|
2729
|
-
this._$AN !== void 0 ? (
|
2732
|
+
function $a(n) {
|
2733
|
+
this._$AN !== void 0 ? (ot(this), this._$AM = n, kr(this)) : this._$AM = n;
|
2730
2734
|
}
|
2731
|
-
function
|
2735
|
+
function xa(n, e = !1, t = 0) {
|
2732
2736
|
const s = this._$AH, r = this._$AN;
|
2733
|
-
if (r !== void 0 && r.size !== 0) if (e) if (Array.isArray(s)) for (let i = t; i < s.length; i++)
|
2734
|
-
else s != null && (
|
2735
|
-
else
|
2737
|
+
if (r !== void 0 && r.size !== 0) if (e) if (Array.isArray(s)) for (let i = t; i < s.length; i++) Le(s[i], !1), ot(s[i]);
|
2738
|
+
else s != null && (Le(s, !1), ot(s));
|
2739
|
+
else Le(this, n);
|
2736
2740
|
}
|
2737
|
-
const
|
2738
|
-
n.type ==
|
2741
|
+
const wa = (n) => {
|
2742
|
+
n.type == wt.CHILD && (n._$AP ?? (n._$AP = xa), n._$AQ ?? (n._$AQ = $a));
|
2739
2743
|
};
|
2740
|
-
let
|
2744
|
+
let Sr = class extends pn {
|
2741
2745
|
constructor() {
|
2742
2746
|
super(...arguments), this._$AN = void 0;
|
2743
2747
|
}
|
2744
2748
|
_$AT(e, t, s) {
|
2745
|
-
super._$AT(e, t, s),
|
2749
|
+
super._$AT(e, t, s), kr(this), this.isConnected = e._$AU;
|
2746
2750
|
}
|
2747
2751
|
_$AO(e, t = !0) {
|
2748
2752
|
var s, r;
|
2749
|
-
e !== this.isConnected && (this.isConnected = e, e ? (s = this.reconnected) == null || s.call(this) : (r = this.disconnected) == null || r.call(this)), t && (
|
2753
|
+
e !== this.isConnected && (this.isConnected = e, e ? (s = this.reconnected) == null || s.call(this) : (r = this.disconnected) == null || r.call(this)), t && (Le(this, e), ot(this));
|
2750
2754
|
}
|
2751
2755
|
setValue(e) {
|
2752
|
-
if (
|
2756
|
+
if (ya(this._$Ct)) this._$Ct._$AI(e, this);
|
2753
2757
|
else {
|
2754
2758
|
const t = [...this._$Ct._$AH];
|
2755
2759
|
t[this._$Ci] = e, this._$Ct._$AI(t, this, 0);
|
@@ -2765,28 +2769,28 @@ let kr = class extends dn {
|
|
2765
2769
|
* Copyright 2020 Google LLC
|
2766
2770
|
* SPDX-License-Identifier: BSD-3-Clause
|
2767
2771
|
*/
|
2768
|
-
const j = () => new
|
2769
|
-
class
|
2772
|
+
const j = () => new ka();
|
2773
|
+
class ka {
|
2770
2774
|
}
|
2771
|
-
const
|
2775
|
+
const Pt = /* @__PURE__ */ new WeakMap(), N = kt(class extends Sr {
|
2772
2776
|
render(n) {
|
2773
2777
|
return m;
|
2774
2778
|
}
|
2775
2779
|
update(n, [e]) {
|
2776
2780
|
var s;
|
2777
|
-
const t = e !== this.
|
2778
|
-
return t && this.
|
2781
|
+
const t = e !== this.G;
|
2782
|
+
return t && this.G !== void 0 && this.rt(void 0), (t || this.lt !== this.ct) && (this.G = e, this.ht = (s = n.options) == null ? void 0 : s.host, this.rt(this.ct = n.element)), m;
|
2779
2783
|
}
|
2780
2784
|
rt(n) {
|
2781
|
-
if (this.isConnected || (n = void 0), typeof this.
|
2785
|
+
if (this.isConnected || (n = void 0), typeof this.G == "function") {
|
2782
2786
|
const e = this.ht ?? globalThis;
|
2783
|
-
let t =
|
2784
|
-
t === void 0 && (t = /* @__PURE__ */ new WeakMap(),
|
2785
|
-
} else this.
|
2787
|
+
let t = Pt.get(e);
|
2788
|
+
t === void 0 && (t = /* @__PURE__ */ new WeakMap(), Pt.set(e, t)), t.get(this.G) !== void 0 && this.G.call(this.ht, void 0), t.set(this.G, n), n !== void 0 && this.G.call(this.ht, n);
|
2789
|
+
} else this.G.value = n;
|
2786
2790
|
}
|
2787
2791
|
get lt() {
|
2788
2792
|
var n, e;
|
2789
|
-
return typeof this.
|
2793
|
+
return typeof this.G == "function" ? (n = Pt.get(this.ht ?? globalThis)) == null ? void 0 : n.get(this.G) : (e = this.G) == null ? void 0 : e.value;
|
2790
2794
|
}
|
2791
2795
|
disconnected() {
|
2792
2796
|
this.lt === this.ct && this.rt(void 0);
|
@@ -2800,10 +2804,10 @@ const Rt = /* @__PURE__ */ new WeakMap(), N = wt(class extends kr {
|
|
2800
2804
|
* Copyright 2018 Google LLC
|
2801
2805
|
* SPDX-License-Identifier: BSD-3-Clause
|
2802
2806
|
*/
|
2803
|
-
const
|
2807
|
+
const $e = kt(class extends pn {
|
2804
2808
|
constructor(n) {
|
2805
2809
|
var e;
|
2806
|
-
if (super(n), n.type !==
|
2810
|
+
if (super(n), n.type !== wt.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.");
|
2807
2811
|
}
|
2808
2812
|
render(n) {
|
2809
2813
|
return " " + Object.keys(n).filter((e) => n[e]).join(" ") + " ";
|
@@ -2821,15 +2825,15 @@ const ye = wt(class extends dn {
|
|
2821
2825
|
const o = !!e[i];
|
2822
2826
|
o === this.st.has(i) || (r = this.nt) != null && r.has(i) || (o ? (t.add(i), this.st.add(i)) : (t.remove(i), this.st.delete(i)));
|
2823
2827
|
}
|
2824
|
-
return
|
2828
|
+
return Y;
|
2825
2829
|
}
|
2826
2830
|
});
|
2827
|
-
var
|
2831
|
+
var Sa = Object.defineProperty, _a = (n, e, t, s) => {
|
2828
2832
|
for (var r = void 0, i = n.length - 1, o; i >= 0; i--)
|
2829
2833
|
(o = n[i]) && (r = o(e, t, r) || r);
|
2830
|
-
return r &&
|
2834
|
+
return r && Sa(e, t, r), r;
|
2831
2835
|
};
|
2832
|
-
const
|
2836
|
+
const Sn = class Sn extends S {
|
2833
2837
|
constructor() {
|
2834
2838
|
super(...arguments), this.anchor = "BottomRight";
|
2835
2839
|
}
|
@@ -2841,7 +2845,7 @@ const kn = class kn extends S {
|
|
2841
2845
|
return this.anchor === "BottomLeft" ? this.renderRoot.host.classList.add("bottom-left") : this.anchor === "BottomRight" && this.renderRoot.host.classList.add("bottom-right"), m;
|
2842
2846
|
}
|
2843
2847
|
};
|
2844
|
-
|
2848
|
+
Sn.styles = [
|
2845
2849
|
T`
|
2846
2850
|
:host {
|
2847
2851
|
position: fixed;
|
@@ -2860,38 +2864,38 @@ kn.styles = [
|
|
2860
2864
|
}
|
2861
2865
|
`
|
2862
2866
|
];
|
2863
|
-
let
|
2864
|
-
|
2867
|
+
let at = Sn;
|
2868
|
+
_a([
|
2865
2869
|
w({ attribute: !0 })
|
2866
|
-
],
|
2867
|
-
const
|
2868
|
-
let
|
2869
|
-
const
|
2870
|
+
], at.prototype, "anchor");
|
2871
|
+
const Ca = /* @__PURE__ */ new WeakMap();
|
2872
|
+
let gs = 0;
|
2873
|
+
const Ot = /* @__PURE__ */ new Map(), ms = /* @__PURE__ */ new WeakSet(), vs = () => new Promise((n) => requestAnimationFrame(n)), Aa = [{ transform: "translateX(100%) scale(0)", opacity: 0 }], Ea = [{ opacity: 0 }], bs = [{ opacity: 0 }, { opacity: 1 }], ys = (n, e) => {
|
2870
2874
|
const t = n - e;
|
2871
2875
|
return t === 0 ? void 0 : t;
|
2872
|
-
},
|
2876
|
+
}, $s = (n, e) => {
|
2873
2877
|
const t = n / e;
|
2874
2878
|
return t === 1 ? void 0 : t;
|
2875
|
-
},
|
2876
|
-
const t =
|
2879
|
+
}, It = { left: (n, e) => {
|
2880
|
+
const t = ys(n, e);
|
2877
2881
|
return { value: t, transform: t == null || isNaN(t) ? void 0 : `translateX(${t}px)` };
|
2878
2882
|
}, top: (n, e) => {
|
2879
|
-
const t =
|
2883
|
+
const t = ys(n, e);
|
2880
2884
|
return { value: t, transform: t == null || isNaN(t) ? void 0 : `translateY(${t}px)` };
|
2881
2885
|
}, width: (n, e) => {
|
2882
2886
|
let t;
|
2883
2887
|
e === 0 && (e = 1, t = { width: "1px" });
|
2884
|
-
const s =
|
2888
|
+
const s = $s(n, e);
|
2885
2889
|
return { value: s, overrideFrom: t, transform: s == null || isNaN(s) ? void 0 : `scaleX(${s})` };
|
2886
2890
|
}, height: (n, e) => {
|
2887
2891
|
let t;
|
2888
2892
|
e === 0 && (e = 1, t = { height: "1px" });
|
2889
|
-
const s =
|
2893
|
+
const s = $s(n, e);
|
2890
2894
|
return { value: s, overrideFrom: t, transform: s == null || isNaN(s) ? void 0 : `scaleY(${s})` };
|
2891
|
-
} },
|
2892
|
-
class
|
2895
|
+
} }, La = { duration: 333, easing: "ease-in-out" }, Ta = ["left", "top", "width", "height", "opacity", "color", "background"], xs = /* @__PURE__ */ new WeakMap();
|
2896
|
+
class Ra extends Sr {
|
2893
2897
|
constructor(e) {
|
2894
|
-
if (super(e), this.t = !1, this.i = null, this.o = null, this.h = !0, this.shouldLog = !1, e.type ===
|
2898
|
+
if (super(e), this.t = !1, this.i = null, this.o = null, this.h = !0, this.shouldLog = !1, e.type === wt.CHILD) throw Error("The `animate` directive must be used in attribute position.");
|
2895
2899
|
this.createFinished();
|
2896
2900
|
}
|
2897
2901
|
createFinished() {
|
@@ -2908,7 +2912,7 @@ class Ta extends kr {
|
|
2908
2912
|
return m;
|
2909
2913
|
}
|
2910
2914
|
getController() {
|
2911
|
-
return
|
2915
|
+
return Ca.get(this.u);
|
2912
2916
|
}
|
2913
2917
|
isDisabled() {
|
2914
2918
|
var e;
|
@@ -2917,17 +2921,17 @@ class Ta extends kr {
|
|
2917
2921
|
update(e, [t]) {
|
2918
2922
|
var r;
|
2919
2923
|
const s = this.u === void 0;
|
2920
|
-
return s && (this.u = (r = e.options) == null ? void 0 : r.host, this.u.addController(this), this.u.updateComplete.then((i) => this.t = !0), this.element = e.element,
|
2924
|
+
return s && (this.u = (r = e.options) == null ? void 0 : r.host, this.u.addController(this), this.u.updateComplete.then((i) => this.t = !0), this.element = e.element, xs.set(this.element, this)), this.optionsOrCallback = t, (s || typeof t != "function") && this.p(t), this.render(t);
|
2921
2925
|
}
|
2922
2926
|
p(e) {
|
2923
2927
|
e = e ?? {};
|
2924
2928
|
const t = this.getController();
|
2925
|
-
t !== void 0 && ((e = { ...t.defaultOptions, ...e }).keyframeOptions = { ...t.defaultOptions.keyframeOptions, ...e.keyframeOptions }), e.properties ?? (e.properties =
|
2929
|
+
t !== void 0 && ((e = { ...t.defaultOptions, ...e }).keyframeOptions = { ...t.defaultOptions.keyframeOptions, ...e.keyframeOptions }), e.properties ?? (e.properties = Ta), this.options = e;
|
2926
2930
|
}
|
2927
2931
|
m() {
|
2928
2932
|
const e = {}, t = this.element.getBoundingClientRect(), s = getComputedStyle(this.element);
|
2929
2933
|
return this.options.properties.forEach((r) => {
|
2930
|
-
const i = t[r] ?? (
|
2934
|
+
const i = t[r] ?? (It[r] ? void 0 : s[r]), o = Number(i);
|
2931
2935
|
e[r] = isNaN(o) ? i + "" : o;
|
2932
2936
|
}), e;
|
2933
2937
|
}
|
@@ -2946,17 +2950,17 @@ class Ta extends kr {
|
|
2946
2950
|
async hostUpdated() {
|
2947
2951
|
if (!this.h || !this.element.isConnected || this.options.skipInitial && !this.isHostRendered) return;
|
2948
2952
|
let e;
|
2949
|
-
this.prepare(), await
|
2953
|
+
this.prepare(), await vs;
|
2950
2954
|
const t = this.O(), s = this.j(this.options.keyframeOptions, t), r = this.m();
|
2951
2955
|
if (this.A !== void 0) {
|
2952
2956
|
const { from: i, to: o } = this.N(this.A, r, t);
|
2953
2957
|
this.log("measured", [this.A, r, i, o]), e = this.calculateKeyframes(i, o);
|
2954
2958
|
} else {
|
2955
|
-
const i =
|
2959
|
+
const i = Ot.get(this.options.inId);
|
2956
2960
|
if (i) {
|
2957
|
-
|
2961
|
+
Ot.delete(this.options.inId);
|
2958
2962
|
const { from: o, to: a } = this.N(i, r, t);
|
2959
|
-
e = this.calculateKeyframes(o, a), e = this.options.in ? [{ ...this.options.in[0], ...e[0] }, ...this.options.in.slice(1), e[1]] : e,
|
2963
|
+
e = this.calculateKeyframes(o, a), e = this.options.in ? [{ ...this.options.in[0], ...e[0] }, ...this.options.in.slice(1), e[1]] : e, gs++, e.forEach((l) => l.zIndex = gs);
|
2960
2964
|
} else this.options.in && (e = [...this.options.in, {}]);
|
2961
2965
|
}
|
2962
2966
|
this.animate(e, s);
|
@@ -2972,8 +2976,8 @@ class Ta extends kr {
|
|
2972
2976
|
}
|
2973
2977
|
async disconnected() {
|
2974
2978
|
var t;
|
2975
|
-
if (!this.h || (this.options.id !== void 0 &&
|
2976
|
-
if (this.prepare(), await
|
2979
|
+
if (!this.h || (this.options.id !== void 0 && Ot.set(this.options.id, this.A), this.options.out === void 0)) return;
|
2980
|
+
if (this.prepare(), await vs(), (t = this.i) == null ? void 0 : t.isConnected) {
|
2977
2981
|
const s = this.o && this.o.parentNode === this.i ? this.o : null;
|
2978
2982
|
if (this.i.insertBefore(this.element, s), this.options.stabilizeOut) {
|
2979
2983
|
const r = this.m();
|
@@ -2999,19 +3003,19 @@ class Ta extends kr {
|
|
2999
3003
|
O() {
|
3000
3004
|
const e = [];
|
3001
3005
|
for (let t = this.element.parentNode; t; t = t == null ? void 0 : t.parentNode) {
|
3002
|
-
const s =
|
3006
|
+
const s = xs.get(t);
|
3003
3007
|
s && !s.isDisabled() && s && e.push(s);
|
3004
3008
|
}
|
3005
3009
|
return e;
|
3006
3010
|
}
|
3007
3011
|
get isHostRendered() {
|
3008
|
-
const e =
|
3012
|
+
const e = ms.has(this.u);
|
3009
3013
|
return e || this.u.updateComplete.then(() => {
|
3010
|
-
|
3014
|
+
ms.add(this.u);
|
3011
3015
|
}), e;
|
3012
3016
|
}
|
3013
3017
|
j(e, t = this.O()) {
|
3014
|
-
const s = { ...
|
3018
|
+
const s = { ...La };
|
3015
3019
|
return t.forEach((r) => Object.assign(s, r.options.keyframeOptions)), Object.assign(s, e), s;
|
3016
3020
|
}
|
3017
3021
|
N(e, t, s) {
|
@@ -3028,8 +3032,8 @@ class Ta extends kr {
|
|
3028
3032
|
const a = {};
|
3029
3033
|
for (const l in t) {
|
3030
3034
|
const c = e[l], h = t[l];
|
3031
|
-
if (l in
|
3032
|
-
const u =
|
3035
|
+
if (l in It) {
|
3036
|
+
const u = It[l];
|
3033
3037
|
if (c === void 0 || h === void 0) continue;
|
3034
3038
|
const d = u(c, h);
|
3035
3039
|
d.transform !== void 0 && (a[l] = d.value, o = !0, r.transform = `${r.transform ?? ""} ${d.transform}`, d.overrideFrom !== void 0 && Object.assign(r, d.overrideFrom));
|
@@ -3060,9 +3064,9 @@ class Ta extends kr {
|
|
3060
3064
|
this.shouldLog && !this.isDisabled() && console.log(e, this.options.id, t);
|
3061
3065
|
}
|
3062
3066
|
}
|
3063
|
-
const Wt =
|
3067
|
+
const Wt = kt(Ra), F = (n, e, t) => {
|
3064
3068
|
n && t.style.setProperty(e, n);
|
3065
|
-
},
|
3069
|
+
}, _r = (n, e) => {
|
3066
3070
|
var t, s, r, i, o, a, l, c, h;
|
3067
3071
|
F((t = n.colors) == null ? void 0 : t.primaryBackground, "--primary-background", e), F(
|
3068
3072
|
(s = n.colors) == null ? void 0 : s.textOnPrimaryBackground,
|
@@ -3094,12 +3098,12 @@ const Wt = wt(Ta), F = (n, e, t) => {
|
|
3094
3098
|
e
|
3095
3099
|
), F((h = n.colors) == null ? void 0 : h.focusColor, "--focus-color", e);
|
3096
3100
|
};
|
3097
|
-
var
|
3101
|
+
var Pa = Object.defineProperty, qe = (n, e, t, s) => {
|
3098
3102
|
for (var r = void 0, i = n.length - 1, o; i >= 0; i--)
|
3099
3103
|
(o = n[i]) && (r = o(e, t, r) || r);
|
3100
|
-
return r &&
|
3104
|
+
return r && Pa(e, t, r), r;
|
3101
3105
|
};
|
3102
|
-
const
|
3106
|
+
const _n = class _n extends S {
|
3103
3107
|
constructor() {
|
3104
3108
|
super(...arguments), this.active = !1, this.triggerVisible = !0, this.loaded = !1, this.containerRef = j(), this.widgetActive$ = new z(!1), this.componentIsDestroyed$ = new _();
|
3105
3109
|
}
|
@@ -3136,7 +3140,7 @@ const Sn = class Sn extends S {
|
|
3136
3140
|
}
|
3137
3141
|
_applyBranding() {
|
3138
3142
|
var e;
|
3139
|
-
(e = this.application) != null && e.settings &&
|
3143
|
+
(e = this.application) != null && e.settings && _r(this.application.settings.branding, this);
|
3140
3144
|
}
|
3141
3145
|
async _renderSymbol() {
|
3142
3146
|
var a, l, c;
|
@@ -3146,7 +3150,7 @@ const Sn = class Sn extends S {
|
|
3146
3150
|
const s = (c = this.application) == null ? void 0 : c.triggerIcon;
|
3147
3151
|
if (!s)
|
3148
3152
|
return m;
|
3149
|
-
const r = async (h) =>
|
3153
|
+
const r = async (h) => vo, { type: i, content: o } = s;
|
3150
3154
|
switch (i) {
|
3151
3155
|
case "Telia": {
|
3152
3156
|
const h = await r();
|
@@ -3176,7 +3180,7 @@ const Sn = class Sn extends S {
|
|
3176
3180
|
render() {
|
3177
3181
|
var e, t, s, r;
|
3178
3182
|
return v`<div
|
3179
|
-
class=${
|
3183
|
+
class=${$e({
|
3180
3184
|
"trigger-container": !0,
|
3181
3185
|
hidden: !this.triggerVisible
|
3182
3186
|
})}
|
@@ -3189,7 +3193,7 @@ const Sn = class Sn extends S {
|
|
3189
3193
|
@click=${this.toggleActive}
|
3190
3194
|
${Wt({
|
3191
3195
|
keyframeOptions: {},
|
3192
|
-
in:
|
3196
|
+
in: Aa,
|
3193
3197
|
stabilizeOut: !0,
|
3194
3198
|
skipInitial: !1
|
3195
3199
|
})}
|
@@ -3200,7 +3204,7 @@ const Sn = class Sn extends S {
|
|
3200
3204
|
|
3201
3205
|
<button
|
3202
3206
|
label="Widget trigger"
|
3203
|
-
class=${
|
3207
|
+
class=${$e({
|
3204
3208
|
trigger: !0,
|
3205
3209
|
active: this.active,
|
3206
3210
|
rendered: this.loaded
|
@@ -3239,7 +3243,7 @@ const Sn = class Sn extends S {
|
|
3239
3243
|
</div>`;
|
3240
3244
|
}
|
3241
3245
|
};
|
3242
|
-
|
3246
|
+
_n.styles = [
|
3243
3247
|
T`
|
3244
3248
|
:host {
|
3245
3249
|
--voca-rem-multiplier: 0.625;
|
@@ -3371,28 +3375,28 @@ Sn.styles = [
|
|
3371
3375
|
}
|
3372
3376
|
`
|
3373
3377
|
];
|
3374
|
-
let q =
|
3375
|
-
|
3378
|
+
let q = _n;
|
3379
|
+
qe([
|
3376
3380
|
w({ attribute: !1 })
|
3377
3381
|
], q.prototype, "application");
|
3378
|
-
|
3382
|
+
qe([
|
3379
3383
|
C()
|
3380
3384
|
], q.prototype, "active");
|
3381
|
-
|
3385
|
+
qe([
|
3382
3386
|
C()
|
3383
3387
|
], q.prototype, "triggerVisible");
|
3384
|
-
|
3388
|
+
qe([
|
3385
3389
|
C()
|
3386
3390
|
], q.prototype, "loaded");
|
3387
|
-
|
3391
|
+
qe([
|
3388
3392
|
C()
|
3389
3393
|
], q.prototype, "icon");
|
3390
|
-
var
|
3394
|
+
var Oa = Object.defineProperty, te = (n, e, t, s) => {
|
3391
3395
|
for (var r = void 0, i = n.length - 1, o; i >= 0; i--)
|
3392
3396
|
(o = n[i]) && (r = o(e, t, r) || r);
|
3393
|
-
return r &&
|
3397
|
+
return r && Oa(e, t, r), r;
|
3394
3398
|
};
|
3395
|
-
const
|
3399
|
+
const Cr = (n) => {
|
3396
3400
|
const t = class t extends n {
|
3397
3401
|
constructor() {
|
3398
3402
|
super(...arguments), this.properties = {}, this.context = {}, this.layout = {}, this.nodes = [];
|
@@ -3448,37 +3452,37 @@ const _r = (n) => {
|
|
3448
3452
|
], e.prototype, "application"), te([
|
3449
3453
|
w({ attribute: !1 })
|
3450
3454
|
], e.prototype, "parent"), e;
|
3451
|
-
},
|
3455
|
+
}, Cn = class Cn extends Cr(S) {
|
3452
3456
|
render() {
|
3453
3457
|
return v`Non resolved component`;
|
3454
3458
|
}
|
3455
3459
|
};
|
3456
|
-
|
3460
|
+
Cn.styles = [
|
3457
3461
|
T`
|
3458
3462
|
:host {
|
3459
3463
|
display: block;
|
3460
3464
|
}
|
3461
3465
|
`
|
3462
3466
|
];
|
3463
|
-
let
|
3467
|
+
let Kt = Cn;
|
3464
3468
|
/**
|
3465
3469
|
* @license
|
3466
3470
|
* Copyright 2021 Google LLC
|
3467
3471
|
* SPDX-License-Identifier: BSD-3-Clause
|
3468
3472
|
*/
|
3469
|
-
function*
|
3473
|
+
function* Ia(n, e) {
|
3470
3474
|
if (n !== void 0) {
|
3471
3475
|
let t = 0;
|
3472
3476
|
for (const s of n) yield e(s, t++);
|
3473
3477
|
}
|
3474
3478
|
}
|
3475
|
-
var
|
3479
|
+
var Me = /* @__PURE__ */ ((n) => (n.Inline = "inline", n.Trigger = "trigger", n))(Me || {});
|
3476
3480
|
/**
|
3477
3481
|
* @license
|
3478
3482
|
* Copyright 2021 Google LLC
|
3479
3483
|
* SPDX-License-Identifier: BSD-3-Clause
|
3480
3484
|
*/
|
3481
|
-
let
|
3485
|
+
let Ma = class extends Event {
|
3482
3486
|
constructor(e, t, s, r) {
|
3483
3487
|
super("context-request", { bubbles: !0, composed: !0 }), this.context = e, this.contextTarget = t, this.callback = s, this.subscribe = r ?? !1;
|
3484
3488
|
}
|
@@ -3493,7 +3497,7 @@ let Ia = class extends Event {
|
|
3493
3497
|
* Copyright 2021 Google LLC
|
3494
3498
|
* SPDX-License-Identifier: BSD-3-Clause
|
3495
3499
|
*/
|
3496
|
-
class
|
3500
|
+
class za {
|
3497
3501
|
get value() {
|
3498
3502
|
return this.o;
|
3499
3503
|
}
|
@@ -3526,12 +3530,12 @@ class Ma {
|
|
3526
3530
|
* Copyright 2021 Google LLC
|
3527
3531
|
* SPDX-License-Identifier: BSD-3-Clause
|
3528
3532
|
*/
|
3529
|
-
let
|
3533
|
+
let Ua = class extends Event {
|
3530
3534
|
constructor(e, t) {
|
3531
3535
|
super("context-provider", { bubbles: !0, composed: !0 }), this.context = e, this.contextTarget = t;
|
3532
3536
|
}
|
3533
3537
|
};
|
3534
|
-
class
|
3538
|
+
class ws extends za {
|
3535
3539
|
constructor(e, t, s) {
|
3536
3540
|
var r, i;
|
3537
3541
|
super(t.context !== void 0 ? t.initialValue : s), this.onContextRequest = (o) => {
|
@@ -3541,7 +3545,7 @@ class xs extends Ma {
|
|
3541
3545
|
}, this.onProviderRequest = (o) => {
|
3542
3546
|
if (o.context !== this.context || (o.contextTarget ?? o.composedPath()[0]) === this.host) return;
|
3543
3547
|
const a = /* @__PURE__ */ new Set();
|
3544
|
-
for (const [l, { consumerHost: c }] of this.subscriptions) a.has(l) || (a.add(l), c.dispatchEvent(new
|
3548
|
+
for (const [l, { consumerHost: c }] of this.subscriptions) a.has(l) || (a.add(l), c.dispatchEvent(new Ma(this.context, c, l, !0)));
|
3545
3549
|
o.stopPropagation();
|
3546
3550
|
}, this.host = e, t.context !== void 0 ? this.context = t.context : this.context = t, this.attachListeners(), (i = (r = this.host).addController) == null || i.call(r, this);
|
3547
3551
|
}
|
@@ -3549,7 +3553,7 @@ class xs extends Ma {
|
|
3549
3553
|
this.host.addEventListener("context-request", this.onContextRequest), this.host.addEventListener("context-provider", this.onProviderRequest);
|
3550
3554
|
}
|
3551
3555
|
hostConnected() {
|
3552
|
-
this.host.dispatchEvent(new
|
3556
|
+
this.host.dispatchEvent(new Ua(this.context, this.host));
|
3553
3557
|
}
|
3554
3558
|
}
|
3555
3559
|
/**
|
@@ -3557,23 +3561,19 @@ class xs extends Ma {
|
|
3557
3561
|
* Copyright 2017 Google LLC
|
3558
3562
|
* SPDX-License-Identifier: BSD-3-Clause
|
3559
3563
|
*/
|
3560
|
-
function
|
3564
|
+
function Ba({ context: n }) {
|
3561
3565
|
return (e, t) => {
|
3562
3566
|
const s = /* @__PURE__ */ new WeakMap();
|
3563
|
-
if (typeof t == "object") return
|
3564
|
-
s.set(this, new xs(this, { context: n }));
|
3565
|
-
}), { get() {
|
3567
|
+
if (typeof t == "object") return { get() {
|
3566
3568
|
return e.get.call(this);
|
3567
3569
|
}, set(r) {
|
3568
|
-
|
3569
|
-
return (i = s.get(this)) == null || i.setValue(r), e.set.call(this, r);
|
3570
|
+
return s.get(this).setValue(r), e.set.call(this, r);
|
3570
3571
|
}, init(r) {
|
3571
|
-
|
3572
|
-
return (i = s.get(this)) == null || i.setValue(r), r;
|
3572
|
+
return s.set(this, new ws(this, { context: n, initialValue: r })), r;
|
3573
3573
|
} };
|
3574
3574
|
{
|
3575
3575
|
e.constructor.addInitializer((o) => {
|
3576
|
-
s.set(o, new
|
3576
|
+
s.set(o, new ws(o, { context: n }));
|
3577
3577
|
});
|
3578
3578
|
const r = Object.getOwnPropertyDescriptor(e, t);
|
3579
3579
|
let i;
|
@@ -3594,12 +3594,12 @@ function Ua({ context: n }) {
|
|
3594
3594
|
}
|
3595
3595
|
};
|
3596
3596
|
}
|
3597
|
-
var
|
3597
|
+
var ja = Object.defineProperty, Ar = (n, e, t, s) => {
|
3598
3598
|
for (var r = void 0, i = n.length - 1, o; i >= 0; i--)
|
3599
3599
|
(o = n[i]) && (r = o(e, t, r) || r);
|
3600
|
-
return r &&
|
3600
|
+
return r && ja(e, t, r), r;
|
3601
3601
|
};
|
3602
|
-
const
|
3602
|
+
const Na = "application", An = class An extends S {
|
3603
3603
|
constructor() {
|
3604
3604
|
super(...arguments), this.nodes = [], this.wrapperRef = j(), this.fullscreen = !1, this.isReady = new z(!1);
|
3605
3605
|
}
|
@@ -3610,7 +3610,7 @@ const ja = "application", Cn = class Cn extends S {
|
|
3610
3610
|
if (!this.wrapperRef.value)
|
3611
3611
|
return;
|
3612
3612
|
const e = this.application.settings;
|
3613
|
-
e != null && e.branding &&
|
3613
|
+
e != null && e.branding && _r(e.branding, this.wrapperRef.value);
|
3614
3614
|
}
|
3615
3615
|
applyStyles() {
|
3616
3616
|
if (!this.wrapperRef.value)
|
@@ -3626,12 +3626,12 @@ const ja = "application", Cn = class Cn extends S {
|
|
3626
3626
|
render() {
|
3627
3627
|
var s, r;
|
3628
3628
|
const e = this.application.settings.components.conversation;
|
3629
|
-
return ((r = (s = e == null ? void 0 : e.properties) == null ? void 0 : s.chat) == null ? void 0 : r.isThirdPartyWidget) ? this.renderRoot.host.classList.add("third-party") : this.application.renderStrategy ===
|
3630
|
-
${
|
3629
|
+
return ((r = (s = e == null ? void 0 : e.properties) == null ? void 0 : s.chat) == null ? void 0 : r.isThirdPartyWidget) ? this.renderRoot.host.classList.add("third-party") : this.application.renderStrategy === Me.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"), v`<div class="widget-container" ${N(this.wrapperRef)}>
|
3630
|
+
${Ia(this.nodes, (i) => i)}
|
3631
3631
|
</div>`;
|
3632
3632
|
}
|
3633
3633
|
};
|
3634
|
-
|
3634
|
+
An.styles = T`
|
3635
3635
|
:host {
|
3636
3636
|
--font-family: TeliaSans, Helvetica, Arial, Lucida Grande, sans-serif;
|
3637
3637
|
--spacing-xs: 0.2rem;
|
@@ -3797,18 +3797,18 @@ Cn.styles = T`
|
|
3797
3797
|
animation: none;
|
3798
3798
|
}
|
3799
3799
|
`;
|
3800
|
-
let
|
3801
|
-
|
3800
|
+
let ze = An;
|
3801
|
+
Ar([
|
3802
3802
|
w({ attribute: !0 })
|
3803
|
-
],
|
3804
|
-
|
3803
|
+
], ze.prototype, "fullscreen");
|
3804
|
+
Ar([
|
3805
3805
|
w({ attribute: !1 }),
|
3806
|
-
|
3807
|
-
],
|
3808
|
-
const
|
3806
|
+
Ba({ context: Na })
|
3807
|
+
], ze.prototype, "application");
|
3808
|
+
const ft = class ft {
|
3809
3809
|
// TODO:
|
3810
3810
|
// private static endpoint = 'http://localhost:5299/api'; // TODO:
|
3811
|
-
constructor(e =
|
3811
|
+
constructor(e = ft.endpoint) {
|
3812
3812
|
this._endpoint = e;
|
3813
3813
|
}
|
3814
3814
|
async getSite(e) {
|
@@ -3817,8 +3817,8 @@ const pt = class pt {
|
|
3817
3817
|
id: s.id,
|
3818
3818
|
triggers: s.triggers || [],
|
3819
3819
|
apps: (s.widgets || []).map((r) => {
|
3820
|
-
let i =
|
3821
|
-
r.renderStrategy.toLowerCase() === "inline" && (i =
|
3820
|
+
let i = Me.Trigger;
|
3821
|
+
r.renderStrategy.toLowerCase() === "inline" && (i = Me.Inline);
|
3822
3822
|
const o = r.widgetId ? r.widgetId : r.id, a = typeof r.autoActivate == "boolean" ? r.autoActivate : !1, l = typeof r.anchor == "string" ? r.anchor : "BottomRight", c = typeof r.triggerIcon == "string" ? r.triggerIcon : "question";
|
3823
3823
|
return {
|
3824
3824
|
id: o,
|
@@ -3842,14 +3842,14 @@ const pt = class pt {
|
|
3842
3842
|
} : null;
|
3843
3843
|
}
|
3844
3844
|
};
|
3845
|
-
|
3846
|
-
let
|
3847
|
-
var
|
3845
|
+
ft.endpoint = "https://widgets.ace.teliacompany.net/api";
|
3846
|
+
let ks = ft;
|
3847
|
+
var Ha = Object.defineProperty, fn = (n, e, t, s) => {
|
3848
3848
|
for (var r = void 0, i = n.length - 1, o; i >= 0; i--)
|
3849
3849
|
(o = n[i]) && (r = o(e, t, r) || r);
|
3850
|
-
return r &&
|
3850
|
+
return r && Ha(e, t, r), r;
|
3851
3851
|
};
|
3852
|
-
const
|
3852
|
+
const En = class En extends S {
|
3853
3853
|
constructor() {
|
3854
3854
|
super(), this.status = "deactivated", this.addEventListener("environment-created", this.onEnvironmentCreated);
|
3855
3855
|
}
|
@@ -3874,36 +3874,36 @@ const An = class An extends S {
|
|
3874
3874
|
render() {
|
3875
3875
|
if (!this.widget || this.status !== "activated")
|
3876
3876
|
return m;
|
3877
|
-
if (this.widget.renderStrategy ===
|
3877
|
+
if (this.widget.renderStrategy === Me.Trigger) {
|
3878
3878
|
const e = new q();
|
3879
3879
|
return e.application = this.widget, e;
|
3880
3880
|
}
|
3881
3881
|
return this.widget.render();
|
3882
3882
|
}
|
3883
3883
|
};
|
3884
|
-
|
3884
|
+
En.styles = [
|
3885
3885
|
T`
|
3886
3886
|
:host {
|
3887
3887
|
display: block;
|
3888
3888
|
}
|
3889
3889
|
`
|
3890
3890
|
];
|
3891
|
-
let
|
3892
|
-
|
3891
|
+
let xe = En;
|
3892
|
+
fn([
|
3893
3893
|
w({ attribute: !0 })
|
3894
|
-
],
|
3895
|
-
|
3894
|
+
], xe.prototype, "name");
|
3895
|
+
fn([
|
3896
3896
|
C()
|
3897
|
-
],
|
3898
|
-
|
3897
|
+
], xe.prototype, "widget");
|
3898
|
+
fn([
|
3899
3899
|
C()
|
3900
|
-
],
|
3901
|
-
customElements.get("ace-trigger-slot") || customElements.define("ace-trigger-slot",
|
3900
|
+
], xe.prototype, "status");
|
3901
|
+
customElements.get("ace-trigger-slot") || customElements.define("ace-trigger-slot", at);
|
3902
3902
|
customElements.get("ace-trigger") || customElements.define("ace-trigger", q);
|
3903
|
-
customElements.get("ace-unresolved-component") || customElements.define("ace-unresolved-component",
|
3904
|
-
customElements.get("ace-wrapper") || customElements.define("ace-wrapper",
|
3905
|
-
customElements.get("ace-widget") || customElements.define("ace-widget",
|
3906
|
-
class
|
3903
|
+
customElements.get("ace-unresolved-component") || customElements.define("ace-unresolved-component", Kt);
|
3904
|
+
customElements.get("ace-wrapper") || customElements.define("ace-wrapper", ze);
|
3905
|
+
customElements.get("ace-widget") || customElements.define("ace-widget", xe);
|
3906
|
+
class Da {
|
3907
3907
|
constructor(e) {
|
3908
3908
|
this._message = null, this._host = e, e.addController(this);
|
3909
3909
|
}
|
@@ -3919,19 +3919,19 @@ class Ha {
|
|
3919
3919
|
return !!this.message;
|
3920
3920
|
}
|
3921
3921
|
}
|
3922
|
-
class
|
3922
|
+
class Ss {
|
3923
3923
|
constructor(e, t, s, r, i) {
|
3924
3924
|
this.id = e, this.providerKey = t, this.providerOptions = s, this.component = i, this.provider$ = new z(null), this.entries$ = new z([]), this.removeEntryAction$ = new _(), this.kill$ = new _(), this.isTyping$ = new z(!1), this.data$ = new z({}), this.complete$ = this.provider$.pipe(
|
3925
|
-
|
3925
|
+
fe((l) => l ? l.onComplete() : He)
|
3926
3926
|
);
|
3927
3927
|
const o = this._getProviderFactory(t);
|
3928
3928
|
if (!o)
|
3929
3929
|
throw new Error(`No provider with key "${t}" was found.`);
|
3930
3930
|
this.data$.next(r);
|
3931
3931
|
const a = o(this.component);
|
3932
|
-
this.provider$.next(a), a.actions().pipe(
|
3932
|
+
this.provider$.next(a), a.actions().pipe(Nt(this.kill$)).subscribe((l) => {
|
3933
3933
|
this.write(l);
|
3934
|
-
}), a.isTyping().pipe(
|
3934
|
+
}), a.isTyping().pipe(Nt(this.kill$)).subscribe((l) => {
|
3935
3935
|
this.isTyping$.next(l);
|
3936
3936
|
});
|
3937
3937
|
}
|
@@ -3959,14 +3959,14 @@ class ks {
|
|
3959
3959
|
};
|
3960
3960
|
}
|
3961
3961
|
write(e) {
|
3962
|
-
this._addEntryRemoveHandler(e), this.entries$.pipe(
|
3962
|
+
this._addEntryRemoveHandler(e), this.entries$.pipe(jt(1)).subscribe((t) => {
|
3963
3963
|
this.entries$.next([...t, e]);
|
3964
3964
|
});
|
3965
3965
|
}
|
3966
3966
|
_addEntryRemoveHandler(e) {
|
3967
3967
|
e.remove$.pipe(
|
3968
|
-
|
3969
|
-
|
3968
|
+
fe(() => this.entries$),
|
3969
|
+
jt(1)
|
3970
3970
|
).subscribe((t) => {
|
3971
3971
|
this.removeEntryAction$.next(e), this.entries$.next(t.filter((s) => s !== e));
|
3972
3972
|
});
|
@@ -3975,9 +3975,9 @@ class ks {
|
|
3975
3975
|
return this.component.platform.registeredProviders.get(e);
|
3976
3976
|
}
|
3977
3977
|
}
|
3978
|
-
class
|
3978
|
+
class Fa {
|
3979
3979
|
constructor(e) {
|
3980
|
-
this.component = e, this.currentSession$ = new z(null), this.sessions = [], this.storage = null,
|
3980
|
+
this.component = e, this.currentSession$ = new z(null), this.sessions = [], this.storage = null, Je(e, "handover").subscribe((t) => {
|
3981
3981
|
const s = this._createNewSession(
|
3982
3982
|
t.detail.providerKey,
|
3983
3983
|
t.detail.providerOptions
|
@@ -4020,7 +4020,7 @@ class Da {
|
|
4020
4020
|
);
|
4021
4021
|
return e ? {
|
4022
4022
|
sessions: e.sessions.map(
|
4023
|
-
(t) => new
|
4023
|
+
(t) => new Ss(
|
4024
4024
|
t.id,
|
4025
4025
|
t.providerKey,
|
4026
4026
|
t.providerOptions,
|
@@ -4057,8 +4057,8 @@ class Da {
|
|
4057
4057
|
this.storage.set("conversation", t);
|
4058
4058
|
}
|
4059
4059
|
_createNewSession(e, t = {}) {
|
4060
|
-
const s = this._getStoredSessions(), r = new
|
4061
|
-
|
4060
|
+
const s = this._getStoredSessions(), r = new Ss(
|
4061
|
+
Vs(),
|
4062
4062
|
e,
|
4063
4063
|
t,
|
4064
4064
|
{},
|
@@ -4073,12 +4073,12 @@ class Da {
|
|
4073
4073
|
return this.component.properties.providers[0];
|
4074
4074
|
}
|
4075
4075
|
}
|
4076
|
-
class
|
4076
|
+
class qa {
|
4077
4077
|
constructor(e, t) {
|
4078
|
-
this.state$ = e, this.component = t, this.entries$ = new z([]), this.session = () => this.session$, this.isTyping = () => this.isTyping$, this.entries = () => this.entries$.asObservable(), this.sessionService = new
|
4079
|
-
|
4080
|
-
|
4081
|
-
) :
|
4078
|
+
this.state$ = e, this.component = t, this.entries$ = new z([]), this.session = () => this.session$, this.isTyping = () => this.isTyping$, this.entries = () => this.entries$.asObservable(), this.sessionService = new Fa(this.component), this.session$ = this.sessionService.currentSession(), this.isTyping$ = this.session$.pipe(
|
4079
|
+
fe((s) => s ? s.provider$.pipe(
|
4080
|
+
fe((r) => r ? r.isTyping() : Bt(!1))
|
4081
|
+
) : Bt(!1))
|
4082
4082
|
), e.subscribe((s) => {
|
4083
4083
|
switch (s) {
|
4084
4084
|
case "init":
|
@@ -4102,18 +4102,18 @@ class Fa {
|
|
4102
4102
|
}
|
4103
4103
|
rehydrate() {
|
4104
4104
|
this.session$.pipe(
|
4105
|
-
|
4105
|
+
fe((e) => {
|
4106
4106
|
if (!e)
|
4107
|
-
return
|
4108
|
-
const t = e.removeEntryAction$.pipe(
|
4109
|
-
|
4107
|
+
return He;
|
4108
|
+
const t = e.removeEntryAction$.pipe(Ht(this.entries$)).pipe(
|
4109
|
+
Ve(([r, i]) => i.filter((o) => o.id !== r.id))
|
4110
4110
|
), s = e.entries().pipe(
|
4111
|
-
|
4111
|
+
Ve((r) => {
|
4112
4112
|
const i = this.entries$.value, o = r.filter((a) => i.findIndex((l) => l.id === a.id) === -1);
|
4113
4113
|
return [...i, ...o];
|
4114
4114
|
})
|
4115
4115
|
);
|
4116
|
-
return
|
4116
|
+
return ji(t, s);
|
4117
4117
|
})
|
4118
4118
|
).subscribe((e) => {
|
4119
4119
|
this.entries$.next(e);
|
@@ -4124,12 +4124,12 @@ class Fa {
|
|
4124
4124
|
(e = this.sessionService) == null || e.startSession();
|
4125
4125
|
}
|
4126
4126
|
}
|
4127
|
-
var
|
4127
|
+
var Za = Object.defineProperty, Ga = (n, e, t, s) => {
|
4128
4128
|
for (var r = void 0, i = n.length - 1, o; i >= 0; i--)
|
4129
4129
|
(o = n[i]) && (r = o(e, t, r) || r);
|
4130
|
-
return r &&
|
4130
|
+
return r && Za(e, t, r), r;
|
4131
4131
|
};
|
4132
|
-
const
|
4132
|
+
const Ln = class Ln extends S {
|
4133
4133
|
connectedCallback() {
|
4134
4134
|
var e;
|
4135
4135
|
super.connectedCallback(), (e = this.entry.didUpdate) == null || e.subscribe(() => {
|
@@ -4151,13 +4151,13 @@ const En = class En extends S {
|
|
4151
4151
|
}
|
4152
4152
|
_renderDeliveryStatus(e) {
|
4153
4153
|
return e === "delivered" ? v`<telia-icon
|
4154
|
-
svg=${
|
4154
|
+
svg=${po.svg}
|
4155
4155
|
size="sm"
|
4156
4156
|
></telia-icon>` : e === "failed" ? v`<telia-icon
|
4157
|
-
svg=${
|
4157
|
+
svg=${uo.svg}
|
4158
4158
|
size="sm"
|
4159
4159
|
title="Message could not be delivered"
|
4160
|
-
></telia-icon>` : v`<telia-icon svg=${
|
4160
|
+
></telia-icon>` : v`<telia-icon svg=${fo.svg} size="sm"></telia-icon>`;
|
4161
4161
|
}
|
4162
4162
|
_dispatchEntryAction(e) {
|
4163
4163
|
this.entry.actions$.next(e.detail);
|
@@ -4165,7 +4165,7 @@ const En = class En extends S {
|
|
4165
4165
|
render() {
|
4166
4166
|
var e, t;
|
4167
4167
|
switch (this.entry.type) {
|
4168
|
-
case
|
4168
|
+
case Q.System:
|
4169
4169
|
return v`
|
4170
4170
|
<div class="conversation-system-message">
|
4171
4171
|
${this.entry.messages.map(
|
@@ -4183,9 +4183,9 @@ const En = class En extends S {
|
|
4183
4183
|
<span>${this._getTimestamp(this.entry.timestamp)}</span>
|
4184
4184
|
</div>
|
4185
4185
|
`;
|
4186
|
-
case
|
4186
|
+
case Q.Agent:
|
4187
4187
|
return v`<div
|
4188
|
-
class=${
|
4188
|
+
class=${$e({
|
4189
4189
|
"conversation-agent-message": !0,
|
4190
4190
|
"has-avatar": !!((e = this.entry.sender) != null && e.avatar)
|
4191
4191
|
})}
|
@@ -4212,9 +4212,9 @@ const En = class En extends S {
|
|
4212
4212
|
)}
|
4213
4213
|
</div>
|
4214
4214
|
</div>`;
|
4215
|
-
case
|
4215
|
+
case Q.User:
|
4216
4216
|
return v`<div
|
4217
|
-
class=${
|
4217
|
+
class=${$e({
|
4218
4218
|
"conversation-user-message": !0,
|
4219
4219
|
"has-error": this.entry.status === "failed"
|
4220
4220
|
})}
|
@@ -4243,7 +4243,7 @@ const En = class En extends S {
|
|
4243
4243
|
}
|
4244
4244
|
}
|
4245
4245
|
};
|
4246
|
-
|
4246
|
+
Ln.styles = [
|
4247
4247
|
T`
|
4248
4248
|
:host {
|
4249
4249
|
box-sizing: border-box;
|
@@ -4366,16 +4366,16 @@ En.styles = [
|
|
4366
4366
|
}
|
4367
4367
|
`
|
4368
4368
|
];
|
4369
|
-
let
|
4370
|
-
|
4369
|
+
let lt = Ln;
|
4370
|
+
Ga([
|
4371
4371
|
w({ attribute: !1 })
|
4372
|
-
],
|
4373
|
-
var Wa = Object.defineProperty,
|
4372
|
+
], lt.prototype, "entry");
|
4373
|
+
var Wa = Object.defineProperty, Er = (n, e, t, s) => {
|
4374
4374
|
for (var r = void 0, i = n.length - 1, o; i >= 0; i--)
|
4375
4375
|
(o = n[i]) && (r = o(e, t, r) || r);
|
4376
4376
|
return r && Wa(e, t, r), r;
|
4377
4377
|
};
|
4378
|
-
const
|
4378
|
+
const Tn = class Tn extends S {
|
4379
4379
|
constructor() {
|
4380
4380
|
super(...arguments), this.entries = [], this.loading = !0;
|
4381
4381
|
}
|
@@ -4391,7 +4391,7 @@ const Ln = class Ln extends S {
|
|
4391
4391
|
.entry=${e}
|
4392
4392
|
${Wt({
|
4393
4393
|
keyframeOptions: {},
|
4394
|
-
in:
|
4394
|
+
in: bs,
|
4395
4395
|
stabilizeOut: !0,
|
4396
4396
|
skipInitial: !1
|
4397
4397
|
})}
|
@@ -4402,8 +4402,8 @@ const Ln = class Ln extends S {
|
|
4402
4402
|
${this.loading ? v`<ace-typing-state
|
4403
4403
|
${Wt({
|
4404
4404
|
keyframeOptions: {},
|
4405
|
-
in:
|
4406
|
-
out:
|
4405
|
+
in: bs,
|
4406
|
+
out: Ea,
|
4407
4407
|
stabilizeOut: !0,
|
4408
4408
|
skipInitial: !1
|
4409
4409
|
})}
|
@@ -4411,7 +4411,7 @@ const Ln = class Ln extends S {
|
|
4411
4411
|
</div>`;
|
4412
4412
|
}
|
4413
4413
|
};
|
4414
|
-
|
4414
|
+
Tn.styles = [
|
4415
4415
|
T`
|
4416
4416
|
:host {
|
4417
4417
|
display: block;
|
@@ -4430,34 +4430,34 @@ Ln.styles = [
|
|
4430
4430
|
}
|
4431
4431
|
`
|
4432
4432
|
];
|
4433
|
-
let
|
4434
|
-
|
4433
|
+
let Ue = Tn;
|
4434
|
+
Er([
|
4435
4435
|
w({ attribute: !1 })
|
4436
|
-
],
|
4437
|
-
|
4436
|
+
], Ue.prototype, "entries");
|
4437
|
+
Er([
|
4438
4438
|
w({ type: Boolean })
|
4439
|
-
],
|
4439
|
+
], Ue.prototype, "loading");
|
4440
4440
|
/**
|
4441
4441
|
* @license
|
4442
4442
|
* Copyright 2021 Google LLC
|
4443
4443
|
* SPDX-License-Identifier: BSD-3-Clause
|
4444
4444
|
*/
|
4445
|
-
const
|
4445
|
+
const Ka = (n, e, t) => {
|
4446
4446
|
for (const s of e) if (s[0] === n) return (0, s[1])();
|
4447
4447
|
return t == null ? void 0 : t();
|
4448
4448
|
};
|
4449
|
-
var
|
4449
|
+
var Qa = Object.defineProperty, Xa = (n, e, t, s) => {
|
4450
4450
|
for (var r = void 0, i = n.length - 1, o; i >= 0; i--)
|
4451
4451
|
(o = n[i]) && (r = o(e, t, r) || r);
|
4452
|
-
return r &&
|
4452
|
+
return r && Qa(e, t, r), r;
|
4453
4453
|
};
|
4454
|
-
const
|
4454
|
+
const Rn = class Rn extends S {
|
4455
4455
|
render() {
|
4456
4456
|
return v`
|
4457
4457
|
<div class="message-group">
|
4458
4458
|
${this.group.items.map(
|
4459
4459
|
([e, t, s]) => v`
|
4460
|
-
${
|
4460
|
+
${Ka(
|
4461
4461
|
e,
|
4462
4462
|
[
|
4463
4463
|
["html", () => v`<message-type-html .message=${t} />`],
|
@@ -4480,7 +4480,7 @@ const Tn = class Tn extends S {
|
|
4480
4480
|
`;
|
4481
4481
|
}
|
4482
4482
|
};
|
4483
|
-
|
4483
|
+
Rn.styles = [
|
4484
4484
|
T`
|
4485
4485
|
:host {
|
4486
4486
|
box-sizing: border-box;
|
@@ -4496,11 +4496,11 @@ Tn.styles = [
|
|
4496
4496
|
}
|
4497
4497
|
`
|
4498
4498
|
];
|
4499
|
-
let
|
4500
|
-
|
4499
|
+
let ct = Rn;
|
4500
|
+
Xa([
|
4501
4501
|
w({ attribute: !1 })
|
4502
|
-
],
|
4503
|
-
const
|
4502
|
+
], ct.prototype, "group");
|
4503
|
+
const Pn = class Pn extends S {
|
4504
4504
|
render() {
|
4505
4505
|
return v`<div class="container">
|
4506
4506
|
<div class="dot"></div>
|
@@ -4509,7 +4509,7 @@ const Rn = class Rn extends S {
|
|
4509
4509
|
</div>`;
|
4510
4510
|
}
|
4511
4511
|
};
|
4512
|
-
|
4512
|
+
Pn.styles = [
|
4513
4513
|
T`
|
4514
4514
|
:host {
|
4515
4515
|
display: block;
|
@@ -4546,19 +4546,19 @@ Rn.styles = [
|
|
4546
4546
|
}
|
4547
4547
|
`
|
4548
4548
|
];
|
4549
|
-
let
|
4549
|
+
let Qt = Pn;
|
4550
4550
|
/**
|
4551
4551
|
* @license
|
4552
4552
|
* Copyright 2017 Google LLC
|
4553
4553
|
* SPDX-License-Identifier: BSD-3-Clause
|
4554
4554
|
*/
|
4555
|
-
class
|
4555
|
+
class Xt extends pn {
|
4556
4556
|
constructor(e) {
|
4557
|
-
if (super(e), this.it = m, e.type !==
|
4557
|
+
if (super(e), this.it = m, e.type !== wt.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
|
4558
4558
|
}
|
4559
4559
|
render(e) {
|
4560
4560
|
if (e === m || e == null) return this._t = void 0, this.it = e;
|
4561
|
-
if (e ===
|
4561
|
+
if (e === Y) return e;
|
4562
4562
|
if (typeof e != "string") throw Error(this.constructor.directiveName + "() called with a non-string value");
|
4563
4563
|
if (e === this.it) return this._t;
|
4564
4564
|
this.it = e;
|
@@ -4566,21 +4566,21 @@ class Kt extends dn {
|
|
4566
4566
|
return t.raw = t, this._t = { _$litType$: this.constructor.resultType, strings: t, values: [] };
|
4567
4567
|
}
|
4568
4568
|
}
|
4569
|
-
|
4570
|
-
const
|
4571
|
-
var
|
4569
|
+
Xt.directiveName = "unsafeHTML", Xt.resultType = 1;
|
4570
|
+
const Ya = kt(Xt);
|
4571
|
+
var Va = Object.defineProperty, Ja = (n, e, t, s) => {
|
4572
4572
|
for (var r = void 0, i = n.length - 1, o; i >= 0; i--)
|
4573
4573
|
(o = n[i]) && (r = o(e, t, r) || r);
|
4574
|
-
return r &&
|
4574
|
+
return r && Va(e, t, r), r;
|
4575
4575
|
};
|
4576
|
-
const
|
4576
|
+
const On = class On extends S {
|
4577
4577
|
render() {
|
4578
4578
|
return v`<div class="message-type-html">
|
4579
|
-
${
|
4579
|
+
${Ya(this.message.content)}
|
4580
4580
|
</div>`;
|
4581
4581
|
}
|
4582
4582
|
};
|
4583
|
-
|
4583
|
+
On.styles = [
|
4584
4584
|
T`
|
4585
4585
|
:host {
|
4586
4586
|
box-sizing: border-box;
|
@@ -4617,11 +4617,11 @@ Pn.styles = [
|
|
4617
4617
|
}
|
4618
4618
|
`
|
4619
4619
|
];
|
4620
|
-
let
|
4621
|
-
|
4620
|
+
let ht = On;
|
4621
|
+
Ja([
|
4622
4622
|
w({ attribute: !1 })
|
4623
|
-
],
|
4624
|
-
function
|
4623
|
+
], ht.prototype, "message");
|
4624
|
+
function gn() {
|
4625
4625
|
return {
|
4626
4626
|
async: !1,
|
4627
4627
|
breaks: !1,
|
@@ -4635,11 +4635,11 @@ function fn() {
|
|
4635
4635
|
walkTokens: null
|
4636
4636
|
};
|
4637
4637
|
}
|
4638
|
-
let
|
4639
|
-
function
|
4640
|
-
|
4638
|
+
let le = gn();
|
4639
|
+
function Lr(n) {
|
4640
|
+
le = n;
|
4641
4641
|
}
|
4642
|
-
const
|
4642
|
+
const Te = { exec: () => null };
|
4643
4643
|
function y(n, e = "") {
|
4644
4644
|
let t = typeof n == "string" ? n : n.source;
|
4645
4645
|
const s = {
|
@@ -4708,97 +4708,97 @@ const A = {
|
|
4708
4708
|
fencesBeginRegex: (n) => new RegExp(`^ {0,${Math.min(3, n - 1)}}(?:\`\`\`|~~~)`),
|
4709
4709
|
headingBeginRegex: (n) => new RegExp(`^ {0,${Math.min(3, n - 1)}}#`),
|
4710
4710
|
htmlBeginRegex: (n) => new RegExp(`^ {0,${Math.min(3, n - 1)}}<(?:[a-z].*>|!--)`, "i")
|
4711
|
-
},
|
4712
|
-
blockquote:
|
4713
|
-
code:
|
4714
|
-
def:
|
4715
|
-
fences:
|
4716
|
-
heading:
|
4717
|
-
hr:
|
4718
|
-
html:
|
4719
|
-
lheading:
|
4720
|
-
list:
|
4721
|
-
newline:
|
4722
|
-
paragraph:
|
4723
|
-
table:
|
4724
|
-
text:
|
4725
|
-
},
|
4726
|
-
|
4727
|
-
lheading:
|
4728
|
-
table:
|
4729
|
-
paragraph: y(
|
4730
|
-
},
|
4731
|
-
|
4732
|
-
html: y(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",
|
4711
|
+
}, el = /^(?:[ \t]*(?:\n|$))+/, tl = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, nl = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, Ze = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, sl = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, mn = /(?:[*+-]|\d{1,9}[.)])/, Tr = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, Rr = y(Tr).replace(/bull/g, mn).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), rl = y(Tr).replace(/bull/g, mn).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), vn = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, il = /^[^\n]+/, bn = /(?!\s*\])(?:\\.|[^\[\]\\])+/, ol = y(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", bn).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), al = y(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, mn).getRegex(), St = "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", yn = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, ll = 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", yn).replace("tag", St).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), Pr = y(vn).replace("hr", Ze).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", St).getRegex(), cl = y(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", Pr).getRegex(), $n = {
|
4712
|
+
blockquote: cl,
|
4713
|
+
code: tl,
|
4714
|
+
def: ol,
|
4715
|
+
fences: nl,
|
4716
|
+
heading: sl,
|
4717
|
+
hr: Ze,
|
4718
|
+
html: ll,
|
4719
|
+
lheading: Rr,
|
4720
|
+
list: al,
|
4721
|
+
newline: el,
|
4722
|
+
paragraph: Pr,
|
4723
|
+
table: Te,
|
4724
|
+
text: il
|
4725
|
+
}, _s = y("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", Ze).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", St).getRegex(), hl = {
|
4726
|
+
...$n,
|
4727
|
+
lheading: rl,
|
4728
|
+
table: _s,
|
4729
|
+
paragraph: y(vn).replace("hr", Ze).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", _s).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", St).getRegex()
|
4730
|
+
}, ul = {
|
4731
|
+
...$n,
|
4732
|
+
html: y(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", yn).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
4733
|
def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,
|
4734
4734
|
heading: /^(#{1,6})(.*)(?:\n+|$)/,
|
4735
|
-
fences:
|
4735
|
+
fences: Te,
|
4736
4736
|
// fences not supported
|
4737
4737
|
lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
|
4738
|
-
paragraph: y(
|
4739
|
-
]`).replace("lheading",
|
4740
|
-
},
|
4741
|
-
_backpedal:
|
4738
|
+
paragraph: y(vn).replace("hr", Ze).replace("heading", ` *#{1,6} *[^
|
4739
|
+
]`).replace("lheading", Rr).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
|
4740
|
+
}, dl = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, pl = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, Or = /^( {2,}|\\)\n(?!\s*$)/, fl = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, _t = /[\p{P}\p{S}]/u, xn = /[\s\p{P}\p{S}]/u, Ir = /[^\s\p{P}\p{S}]/u, gl = y(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, xn).getRegex(), Mr = /(?!~)[\p{P}\p{S}]/u, ml = /(?!~)[\s\p{P}\p{S}]/u, vl = /(?:[^\s\p{P}\p{S}]|~)/u, bl = /\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g, zr = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, yl = y(zr, "u").replace(/punct/g, _t).getRegex(), $l = y(zr, "u").replace(/punct/g, Mr).getRegex(), Ur = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", xl = y(Ur, "gu").replace(/notPunctSpace/g, Ir).replace(/punctSpace/g, xn).replace(/punct/g, _t).getRegex(), wl = y(Ur, "gu").replace(/notPunctSpace/g, vl).replace(/punctSpace/g, ml).replace(/punct/g, Mr).getRegex(), kl = y("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, Ir).replace(/punctSpace/g, xn).replace(/punct/g, _t).getRegex(), Sl = y(/\\(punct)/, "gu").replace(/punct/g, _t).getRegex(), _l = 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(), Cl = y(yn).replace("(?:-->|$)", "-->").getRegex(), Al = 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", Cl).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), ut = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, El = y(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label", ut).replace("href", /<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), Br = y(/^!?\[(label)\]\[(ref)\]/).replace("label", ut).replace("ref", bn).getRegex(), jr = y(/^!?\[(ref)\](?:\[\])?/).replace("ref", bn).getRegex(), Ll = y("reflink|nolink(?!\\()", "g").replace("reflink", Br).replace("nolink", jr).getRegex(), wn = {
|
4741
|
+
_backpedal: Te,
|
4742
4742
|
// only used for GFM url
|
4743
|
-
anyPunctuation:
|
4744
|
-
autolink:
|
4745
|
-
blockSkip:
|
4746
|
-
br:
|
4747
|
-
code:
|
4748
|
-
del:
|
4749
|
-
emStrongLDelim: bl,
|
4750
|
-
emStrongRDelimAst: $l,
|
4751
|
-
emStrongRDelimUnd: wl,
|
4752
|
-
escape: ul,
|
4753
|
-
link: Al,
|
4754
|
-
nolink: Br,
|
4755
|
-
punctuation: fl,
|
4756
|
-
reflink: Ur,
|
4757
|
-
reflinkSearch: El,
|
4758
|
-
tag: Cl,
|
4759
|
-
text: pl,
|
4760
|
-
url: Le
|
4761
|
-
}, Ll = {
|
4762
|
-
...xn,
|
4763
|
-
link: y(/^!?\[(label)\]\((.*?)\)/).replace("label", ht).getRegex(),
|
4764
|
-
reflink: y(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", ht).getRegex()
|
4765
|
-
}, Qt = {
|
4766
|
-
...xn,
|
4767
|
-
emStrongRDelimAst: xl,
|
4743
|
+
anyPunctuation: Sl,
|
4744
|
+
autolink: _l,
|
4745
|
+
blockSkip: bl,
|
4746
|
+
br: Or,
|
4747
|
+
code: pl,
|
4748
|
+
del: Te,
|
4768
4749
|
emStrongLDelim: yl,
|
4750
|
+
emStrongRDelimAst: xl,
|
4751
|
+
emStrongRDelimUnd: kl,
|
4752
|
+
escape: dl,
|
4753
|
+
link: El,
|
4754
|
+
nolink: jr,
|
4755
|
+
punctuation: gl,
|
4756
|
+
reflink: Br,
|
4757
|
+
reflinkSearch: Ll,
|
4758
|
+
tag: Al,
|
4759
|
+
text: fl,
|
4760
|
+
url: Te
|
4761
|
+
}, Tl = {
|
4762
|
+
...wn,
|
4763
|
+
link: y(/^!?\[(label)\]\((.*?)\)/).replace("label", ut).getRegex(),
|
4764
|
+
reflink: y(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", ut).getRegex()
|
4765
|
+
}, Yt = {
|
4766
|
+
...wn,
|
4767
|
+
emStrongRDelimAst: wl,
|
4768
|
+
emStrongLDelim: $l,
|
4769
4769
|
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(),
|
4770
4770
|
_backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,
|
4771
4771
|
del: /^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,
|
4772
4772
|
text: /^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/
|
4773
|
-
}, Tl = {
|
4774
|
-
...Qt,
|
4775
|
-
br: y(Pr).replace("{2,}", "*").getRegex(),
|
4776
|
-
text: y(Qt.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
|
4777
|
-
}, Ge = {
|
4778
|
-
normal: yn,
|
4779
|
-
gfm: cl,
|
4780
|
-
pedantic: hl
|
4781
|
-
}, Se = {
|
4782
|
-
normal: xn,
|
4783
|
-
gfm: Qt,
|
4784
|
-
breaks: Tl,
|
4785
|
-
pedantic: Ll
|
4786
4773
|
}, Rl = {
|
4774
|
+
...Yt,
|
4775
|
+
br: y(Or).replace("{2,}", "*").getRegex(),
|
4776
|
+
text: y(Yt.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
|
4777
|
+
}, Ke = {
|
4778
|
+
normal: $n,
|
4779
|
+
gfm: hl,
|
4780
|
+
pedantic: ul
|
4781
|
+
}, _e = {
|
4782
|
+
normal: wn,
|
4783
|
+
gfm: Yt,
|
4784
|
+
breaks: Rl,
|
4785
|
+
pedantic: Tl
|
4786
|
+
}, Pl = {
|
4787
4787
|
"&": "&",
|
4788
4788
|
"<": "<",
|
4789
4789
|
">": ">",
|
4790
4790
|
'"': """,
|
4791
4791
|
"'": "'"
|
4792
|
-
},
|
4792
|
+
}, Cs = (n) => Pl[n];
|
4793
4793
|
function B(n, e) {
|
4794
4794
|
if (e) {
|
4795
4795
|
if (A.escapeTest.test(n))
|
4796
|
-
return n.replace(A.escapeReplace,
|
4796
|
+
return n.replace(A.escapeReplace, Cs);
|
4797
4797
|
} else if (A.escapeTestNoEncode.test(n))
|
4798
|
-
return n.replace(A.escapeReplaceNoEncode,
|
4798
|
+
return n.replace(A.escapeReplaceNoEncode, Cs);
|
4799
4799
|
return n;
|
4800
4800
|
}
|
4801
|
-
function
|
4801
|
+
function As(n) {
|
4802
4802
|
try {
|
4803
4803
|
n = encodeURI(n).replace(A.percentDecode, "%");
|
4804
4804
|
} catch {
|
@@ -4806,7 +4806,7 @@ function Cs(n) {
|
|
4806
4806
|
}
|
4807
4807
|
return n;
|
4808
4808
|
}
|
4809
|
-
function
|
4809
|
+
function Es(n, e) {
|
4810
4810
|
var i;
|
4811
4811
|
const t = n.replace(A.findPipe, (o, a, l) => {
|
4812
4812
|
let c = !1, h = a;
|
@@ -4825,7 +4825,7 @@ function As(n, e) {
|
|
4825
4825
|
s[r] = s[r].trim().replace(A.slashPipe, "|");
|
4826
4826
|
return s;
|
4827
4827
|
}
|
4828
|
-
function
|
4828
|
+
function Ce(n, e, t) {
|
4829
4829
|
const s = n.length;
|
4830
4830
|
if (s === 0)
|
4831
4831
|
return "";
|
@@ -4834,7 +4834,7 @@ function _e(n, e, t) {
|
|
4834
4834
|
r++;
|
4835
4835
|
return n.slice(0, s - r);
|
4836
4836
|
}
|
4837
|
-
function
|
4837
|
+
function Ol(n, e) {
|
4838
4838
|
if (n.indexOf(e[1]) === -1)
|
4839
4839
|
return -1;
|
4840
4840
|
let t = 0;
|
@@ -4847,7 +4847,7 @@ function Pl(n, e) {
|
|
4847
4847
|
return s;
|
4848
4848
|
return -1;
|
4849
4849
|
}
|
4850
|
-
function
|
4850
|
+
function Ls(n, e, t, s, r) {
|
4851
4851
|
const i = e.href, o = e.title || null, a = n[1].replace(r.other.outputLinkReplace, "$1");
|
4852
4852
|
if (n[0].charAt(0) !== "!") {
|
4853
4853
|
s.state.inLink = !0;
|
@@ -4869,7 +4869,7 @@ function Es(n, e, t, s, r) {
|
|
4869
4869
|
text: a
|
4870
4870
|
};
|
4871
4871
|
}
|
4872
|
-
function
|
4872
|
+
function Il(n, e, t) {
|
4873
4873
|
const s = n.match(t.other.indentCodeCompensation);
|
4874
4874
|
if (s === null)
|
4875
4875
|
return e;
|
@@ -4884,14 +4884,14 @@ function Ol(n, e, t) {
|
|
4884
4884
|
}).join(`
|
4885
4885
|
`);
|
4886
4886
|
}
|
4887
|
-
class
|
4887
|
+
class dt {
|
4888
4888
|
// set by the lexer
|
4889
4889
|
constructor(e) {
|
4890
4890
|
$(this, "options");
|
4891
4891
|
$(this, "rules");
|
4892
4892
|
// set by the lexer
|
4893
4893
|
$(this, "lexer");
|
4894
|
-
this.options = e ||
|
4894
|
+
this.options = e || le;
|
4895
4895
|
}
|
4896
4896
|
space(e) {
|
4897
4897
|
const t = this.rules.block.newline.exec(e);
|
@@ -4909,7 +4909,7 @@ class ut {
|
|
4909
4909
|
type: "code",
|
4910
4910
|
raw: t[0],
|
4911
4911
|
codeBlockStyle: "indented",
|
4912
|
-
text: this.options.pedantic ? s :
|
4912
|
+
text: this.options.pedantic ? s : Ce(s, `
|
4913
4913
|
`)
|
4914
4914
|
};
|
4915
4915
|
}
|
@@ -4917,7 +4917,7 @@ class ut {
|
|
4917
4917
|
fences(e) {
|
4918
4918
|
const t = this.rules.block.fences.exec(e);
|
4919
4919
|
if (t) {
|
4920
|
-
const s = t[0], r =
|
4920
|
+
const s = t[0], r = Il(s, t[3] || "", this.rules);
|
4921
4921
|
return {
|
4922
4922
|
type: "code",
|
4923
4923
|
raw: s,
|
@@ -4931,7 +4931,7 @@ class ut {
|
|
4931
4931
|
if (t) {
|
4932
4932
|
let s = t[2].trim();
|
4933
4933
|
if (this.rules.other.endingHash.test(s)) {
|
4934
|
-
const r =
|
4934
|
+
const r = Ce(s, "#");
|
4935
4935
|
(this.options.pedantic || !r || this.rules.other.endingSpaceChar.test(r)) && (s = r.trim());
|
4936
4936
|
}
|
4937
4937
|
return {
|
@@ -4948,14 +4948,14 @@ class ut {
|
|
4948
4948
|
if (t)
|
4949
4949
|
return {
|
4950
4950
|
type: "hr",
|
4951
|
-
raw:
|
4951
|
+
raw: Ce(t[0], `
|
4952
4952
|
`)
|
4953
4953
|
};
|
4954
4954
|
}
|
4955
4955
|
blockquote(e) {
|
4956
4956
|
const t = this.rules.block.blockquote.exec(e);
|
4957
4957
|
if (t) {
|
4958
|
-
let s =
|
4958
|
+
let s = Ce(t[0], `
|
4959
4959
|
`).split(`
|
4960
4960
|
`), r = "", i = "";
|
4961
4961
|
const o = [];
|
@@ -5031,33 +5031,33 @@ ${u}` : u;
|
|
5031
5031
|
`, 1)[0], g = !d.trim(), f = 0;
|
5032
5032
|
if (this.options.pedantic ? (f = 2, u = d.trimStart()) : g ? f = t[1].length + 1 : (f = t[2].search(this.rules.other.nonSpaceChar), f = f > 4 ? 1 : f, u = d.slice(f), f += t[1].length), g && this.rules.other.blankLine.test(p) && (h += p + `
|
5033
5033
|
`, e = e.substring(p.length + 1), c = !0), !c) {
|
5034
|
-
const J = this.rules.other.nextBulletRegex(f),
|
5034
|
+
const J = this.rules.other.nextBulletRegex(f), Un = this.rules.other.hrRegex(f), Bn = this.rules.other.fencesBeginRegex(f), jn = this.rules.other.headingBeginRegex(f), Dr = this.rules.other.htmlBeginRegex(f);
|
5035
5035
|
for (; e; ) {
|
5036
|
-
const
|
5036
|
+
const Ct = e.split(`
|
5037
5037
|
`, 1)[0];
|
5038
|
-
let
|
5039
|
-
if (p =
|
5038
|
+
let ke;
|
5039
|
+
if (p = Ct, this.options.pedantic ? (p = p.replace(this.rules.other.listReplaceNesting, " "), ke = p) : ke = p.replace(this.rules.other.tabCharGlobal, " "), Bn.test(p) || jn.test(p) || Dr.test(p) || J.test(p) || Un.test(p))
|
5040
5040
|
break;
|
5041
|
-
if (
|
5041
|
+
if (ke.search(this.rules.other.nonSpaceChar) >= f || !p.trim())
|
5042
5042
|
u += `
|
5043
|
-
` +
|
5043
|
+
` + ke.slice(f);
|
5044
5044
|
else {
|
5045
|
-
if (g || d.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 ||
|
5045
|
+
if (g || d.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || Bn.test(d) || jn.test(d) || Un.test(d))
|
5046
5046
|
break;
|
5047
5047
|
u += `
|
5048
5048
|
` + p;
|
5049
5049
|
}
|
5050
|
-
!g && !p.trim() && (g = !0), h +=
|
5051
|
-
`, e = e.substring(
|
5050
|
+
!g && !p.trim() && (g = !0), h += Ct + `
|
5051
|
+
`, e = e.substring(Ct.length + 1), d = ke.slice(f);
|
5052
5052
|
}
|
5053
5053
|
}
|
5054
5054
|
i.loose || (a ? i.loose = !0 : this.rules.other.doubleBlankLine.test(h) && (a = !0));
|
5055
|
-
let k = null,
|
5056
|
-
this.options.gfm && (k = this.rules.other.listIsTask.exec(u), k && (
|
5055
|
+
let k = null, G;
|
5056
|
+
this.options.gfm && (k = this.rules.other.listIsTask.exec(u), k && (G = k[0] !== "[ ] ", u = u.replace(this.rules.other.listReplaceTask, ""))), i.items.push({
|
5057
5057
|
type: "list_item",
|
5058
5058
|
raw: h,
|
5059
5059
|
task: !!k,
|
5060
|
-
checked:
|
5060
|
+
checked: G,
|
5061
5061
|
loose: !1,
|
5062
5062
|
text: u,
|
5063
5063
|
tokens: []
|
@@ -5109,7 +5109,7 @@ ${u}` : u;
|
|
5109
5109
|
const t = this.rules.block.table.exec(e);
|
5110
5110
|
if (!t || !this.rules.other.tableDelimiter.test(t[2]))
|
5111
5111
|
return;
|
5112
|
-
const s =
|
5112
|
+
const s = Es(t[1]), r = t[2].replace(this.rules.other.tableAlignChars, "").split("|"), i = (a = t[3]) != null && a.trim() ? t[3].replace(this.rules.other.tableRowBlankLine, "").split(`
|
5113
5113
|
`) : [], o = {
|
5114
5114
|
type: "table",
|
5115
5115
|
raw: t[0],
|
@@ -5128,7 +5128,7 @@ ${u}` : u;
|
|
5128
5128
|
align: o.align[l]
|
5129
5129
|
});
|
5130
5130
|
for (const l of i)
|
5131
|
-
o.rows.push(
|
5131
|
+
o.rows.push(Es(l, o.header.length).map((c, h) => ({
|
5132
5132
|
text: c,
|
5133
5133
|
tokens: this.lexer.inline(c),
|
5134
5134
|
header: !1,
|
@@ -5199,11 +5199,11 @@ ${u}` : u;
|
|
5199
5199
|
if (!this.options.pedantic && this.rules.other.startAngleBracket.test(s)) {
|
5200
5200
|
if (!this.rules.other.endAngleBracket.test(s))
|
5201
5201
|
return;
|
5202
|
-
const o =
|
5202
|
+
const o = Ce(s.slice(0, -1), "\\");
|
5203
5203
|
if ((s.length - o.length) % 2 === 0)
|
5204
5204
|
return;
|
5205
5205
|
} else {
|
5206
|
-
const o =
|
5206
|
+
const o = Ol(t[2], "()");
|
5207
5207
|
if (o > -1) {
|
5208
5208
|
const l = (t[0].indexOf("!") === 0 ? 5 : 4) + t[1].length + o;
|
5209
5209
|
t[2] = t[2].substring(0, o), t[0] = t[0].substring(0, l).trim(), t[3] = "";
|
@@ -5215,7 +5215,7 @@ ${u}` : u;
|
|
5215
5215
|
o && (r = o[1], i = o[3]);
|
5216
5216
|
} else
|
5217
5217
|
i = t[3] ? t[3].slice(1, -1) : "";
|
5218
|
-
return r = r.trim(), this.rules.other.startAngleBracket.test(r) && (this.options.pedantic && !this.rules.other.endAngleBracket.test(s) ? r = r.slice(1) : r = r.slice(1, -1)),
|
5218
|
+
return r = r.trim(), this.rules.other.startAngleBracket.test(r) && (this.options.pedantic && !this.rules.other.endAngleBracket.test(s) ? r = r.slice(1) : r = r.slice(1, -1)), Ls(t, {
|
5219
5219
|
href: r && r.replace(this.rules.inline.anyPunctuation, "$1"),
|
5220
5220
|
title: i && i.replace(this.rules.inline.anyPunctuation, "$1")
|
5221
5221
|
}, t[0], this.lexer, this.rules);
|
@@ -5233,7 +5233,7 @@ ${u}` : u;
|
|
5233
5233
|
text: o
|
5234
5234
|
};
|
5235
5235
|
}
|
5236
|
-
return
|
5236
|
+
return Ls(s, i, s[0], this.lexer, this.rules);
|
5237
5237
|
}
|
5238
5238
|
}
|
5239
5239
|
emStrong(e, t, s = "") {
|
@@ -5375,25 +5375,25 @@ class O {
|
|
5375
5375
|
$(this, "state");
|
5376
5376
|
$(this, "tokenizer");
|
5377
5377
|
$(this, "inlineQueue");
|
5378
|
-
this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = e ||
|
5378
|
+
this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = e || le, this.options.tokenizer = this.options.tokenizer || new dt(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = {
|
5379
5379
|
inLink: !1,
|
5380
5380
|
inRawBlock: !1,
|
5381
5381
|
top: !0
|
5382
5382
|
};
|
5383
5383
|
const t = {
|
5384
5384
|
other: A,
|
5385
|
-
block:
|
5386
|
-
inline:
|
5385
|
+
block: Ke.normal,
|
5386
|
+
inline: _e.normal
|
5387
5387
|
};
|
5388
|
-
this.options.pedantic ? (t.block =
|
5388
|
+
this.options.pedantic ? (t.block = Ke.pedantic, t.inline = _e.pedantic) : this.options.gfm && (t.block = Ke.gfm, this.options.breaks ? t.inline = _e.breaks : t.inline = _e.gfm), this.tokenizer.rules = t;
|
5389
5389
|
}
|
5390
5390
|
/**
|
5391
5391
|
* Expose Rules
|
5392
5392
|
*/
|
5393
5393
|
static get rules() {
|
5394
5394
|
return {
|
5395
|
-
block:
|
5396
|
-
inline:
|
5395
|
+
block: Ke,
|
5396
|
+
inline: _e
|
5397
5397
|
};
|
5398
5398
|
}
|
5399
5399
|
/**
|
@@ -5534,10 +5534,10 @@ class O {
|
|
5534
5534
|
for (; (r = this.tokenizer.rules.inline.reflinkSearch.exec(s)) != null; )
|
5535
5535
|
h.includes(r[0].slice(r[0].lastIndexOf("[") + 1, -1)) && (s = s.slice(0, r.index) + "[" + "a".repeat(r[0].length - 2) + "]" + s.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex));
|
5536
5536
|
}
|
5537
|
-
for (; (r = this.tokenizer.rules.inline.blockSkip.exec(s)) != null; )
|
5538
|
-
s = s.slice(0, r.index) + "[" + "a".repeat(r[0].length - 2) + "]" + s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);
|
5539
5537
|
for (; (r = this.tokenizer.rules.inline.anyPunctuation.exec(s)) != null; )
|
5540
5538
|
s = s.slice(0, r.index) + "++" + s.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);
|
5539
|
+
for (; (r = this.tokenizer.rules.inline.blockSkip.exec(s)) != null; )
|
5540
|
+
s = s.slice(0, r.index) + "[" + "a".repeat(r[0].length - 2) + "]" + s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);
|
5541
5541
|
let i = !1, o = "";
|
5542
5542
|
for (; e; ) {
|
5543
5543
|
i || (o = ""), i = !1;
|
@@ -5613,12 +5613,12 @@ class O {
|
|
5613
5613
|
return t;
|
5614
5614
|
}
|
5615
5615
|
}
|
5616
|
-
class
|
5616
|
+
class Be {
|
5617
5617
|
// set by the parser
|
5618
5618
|
constructor(e) {
|
5619
5619
|
$(this, "options");
|
5620
5620
|
$(this, "parser");
|
5621
|
-
this.options = e ||
|
5621
|
+
this.options = e || le;
|
5622
5622
|
}
|
5623
5623
|
space(e) {
|
5624
5624
|
return "";
|
@@ -5729,7 +5729,7 @@ ${e}</tr>
|
|
5729
5729
|
return `<del>${this.parser.parseInline(e)}</del>`;
|
5730
5730
|
}
|
5731
5731
|
link({ href: e, title: t, tokens: s }) {
|
5732
|
-
const r = this.parser.parseInline(s), i =
|
5732
|
+
const r = this.parser.parseInline(s), i = As(e);
|
5733
5733
|
if (i === null)
|
5734
5734
|
return r;
|
5735
5735
|
e = i;
|
@@ -5737,7 +5737,7 @@ ${e}</tr>
|
|
5737
5737
|
return t && (o += ' title="' + B(t) + '"'), o += ">" + r + "</a>", o;
|
5738
5738
|
}
|
5739
5739
|
image({ href: e, title: t, text: s }) {
|
5740
|
-
const r =
|
5740
|
+
const r = As(e);
|
5741
5741
|
if (r === null)
|
5742
5742
|
return B(s);
|
5743
5743
|
e = r;
|
@@ -5748,7 +5748,7 @@ ${e}</tr>
|
|
5748
5748
|
return "tokens" in e && e.tokens ? this.parser.parseInline(e.tokens) : "escaped" in e && e.escaped ? e.text : B(e.text);
|
5749
5749
|
}
|
5750
5750
|
}
|
5751
|
-
class
|
5751
|
+
class kn {
|
5752
5752
|
// no need for block level renderers
|
5753
5753
|
strong({ text: e }) {
|
5754
5754
|
return e;
|
@@ -5783,7 +5783,7 @@ class I {
|
|
5783
5783
|
$(this, "options");
|
5784
5784
|
$(this, "renderer");
|
5785
5785
|
$(this, "textRenderer");
|
5786
|
-
this.options = e ||
|
5786
|
+
this.options = e || le, this.options.renderer = this.options.renderer || new Be(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new kn();
|
5787
5787
|
}
|
5788
5788
|
/**
|
5789
5789
|
* Static Parse Method
|
@@ -5941,11 +5941,11 @@ class I {
|
|
5941
5941
|
return s;
|
5942
5942
|
}
|
5943
5943
|
}
|
5944
|
-
class
|
5944
|
+
class Re {
|
5945
5945
|
constructor(e) {
|
5946
5946
|
$(this, "options");
|
5947
5947
|
$(this, "block");
|
5948
|
-
this.options = e ||
|
5948
|
+
this.options = e || le;
|
5949
5949
|
}
|
5950
5950
|
/**
|
5951
5951
|
* Process markdown before marked
|
@@ -5978,23 +5978,23 @@ class Te {
|
|
5978
5978
|
return this.block ? I.parse : I.parseInline;
|
5979
5979
|
}
|
5980
5980
|
}
|
5981
|
-
$(
|
5981
|
+
$(Re, "passThroughHooks", /* @__PURE__ */ new Set([
|
5982
5982
|
"preprocess",
|
5983
5983
|
"postprocess",
|
5984
5984
|
"processAllTokens"
|
5985
5985
|
]));
|
5986
|
-
class
|
5986
|
+
class Ml {
|
5987
5987
|
constructor(...e) {
|
5988
|
-
$(this, "defaults",
|
5988
|
+
$(this, "defaults", gn());
|
5989
5989
|
$(this, "options", this.setOptions);
|
5990
5990
|
$(this, "parse", this.parseMarkdown(!0));
|
5991
5991
|
$(this, "parseInline", this.parseMarkdown(!1));
|
5992
5992
|
$(this, "Parser", I);
|
5993
|
-
$(this, "Renderer",
|
5994
|
-
$(this, "TextRenderer",
|
5993
|
+
$(this, "Renderer", Be);
|
5994
|
+
$(this, "TextRenderer", kn);
|
5995
5995
|
$(this, "Lexer", O);
|
5996
|
-
$(this, "Tokenizer",
|
5997
|
-
$(this, "Hooks",
|
5996
|
+
$(this, "Tokenizer", dt);
|
5997
|
+
$(this, "Hooks", Re);
|
5998
5998
|
this.use(...e);
|
5999
5999
|
}
|
6000
6000
|
/**
|
@@ -6051,7 +6051,7 @@ class Il {
|
|
6051
6051
|
}
|
6052
6052
|
"childTokens" in i && i.childTokens && (t.childTokens[i.name] = i.childTokens);
|
6053
6053
|
}), r.extensions = t), s.renderer) {
|
6054
|
-
const i = this.defaults.renderer || new
|
6054
|
+
const i = this.defaults.renderer || new Be(this.defaults);
|
6055
6055
|
for (const o in s.renderer) {
|
6056
6056
|
if (!(o in i))
|
6057
6057
|
throw new Error(`renderer '${o}' does not exist`);
|
@@ -6066,7 +6066,7 @@ class Il {
|
|
6066
6066
|
r.renderer = i;
|
6067
6067
|
}
|
6068
6068
|
if (s.tokenizer) {
|
6069
|
-
const i = this.defaults.tokenizer || new
|
6069
|
+
const i = this.defaults.tokenizer || new dt(this.defaults);
|
6070
6070
|
for (const o in s.tokenizer) {
|
6071
6071
|
if (!(o in i))
|
6072
6072
|
throw new Error(`tokenizer '${o}' does not exist`);
|
@@ -6081,14 +6081,14 @@ class Il {
|
|
6081
6081
|
r.tokenizer = i;
|
6082
6082
|
}
|
6083
6083
|
if (s.hooks) {
|
6084
|
-
const i = this.defaults.hooks || new
|
6084
|
+
const i = this.defaults.hooks || new Re();
|
6085
6085
|
for (const o in s.hooks) {
|
6086
6086
|
if (!(o in i))
|
6087
6087
|
throw new Error(`hook '${o}' does not exist`);
|
6088
6088
|
if (["options", "block"].includes(o))
|
6089
6089
|
continue;
|
6090
6090
|
const a = o, l = s.hooks[a], c = i[a];
|
6091
|
-
|
6091
|
+
Re.passThroughHooks.has(o) ? i[a] = (h) => {
|
6092
6092
|
if (this.defaults.async)
|
6093
6093
|
return Promise.resolve(l.call(i, h)).then((d) => c.call(i, d));
|
6094
6094
|
const u = l.call(i, h);
|
@@ -6156,30 +6156,30 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
6156
6156
|
};
|
6157
6157
|
}
|
6158
6158
|
}
|
6159
|
-
const
|
6159
|
+
const ae = new Ml();
|
6160
6160
|
function b(n, e) {
|
6161
|
-
return
|
6161
|
+
return ae.parse(n, e);
|
6162
6162
|
}
|
6163
6163
|
b.options = b.setOptions = function(n) {
|
6164
|
-
return
|
6164
|
+
return ae.setOptions(n), b.defaults = ae.defaults, Lr(b.defaults), b;
|
6165
6165
|
};
|
6166
|
-
b.getDefaults =
|
6167
|
-
b.defaults =
|
6166
|
+
b.getDefaults = gn;
|
6167
|
+
b.defaults = le;
|
6168
6168
|
b.use = function(...n) {
|
6169
|
-
return
|
6169
|
+
return ae.use(...n), b.defaults = ae.defaults, Lr(b.defaults), b;
|
6170
6170
|
};
|
6171
6171
|
b.walkTokens = function(n, e) {
|
6172
|
-
return
|
6172
|
+
return ae.walkTokens(n, e);
|
6173
6173
|
};
|
6174
|
-
b.parseInline =
|
6174
|
+
b.parseInline = ae.parseInline;
|
6175
6175
|
b.Parser = I;
|
6176
6176
|
b.parser = I.parse;
|
6177
|
-
b.Renderer =
|
6178
|
-
b.TextRenderer =
|
6177
|
+
b.Renderer = Be;
|
6178
|
+
b.TextRenderer = kn;
|
6179
6179
|
b.Lexer = O;
|
6180
6180
|
b.lexer = O.lex;
|
6181
|
-
b.Tokenizer =
|
6182
|
-
b.Hooks =
|
6181
|
+
b.Tokenizer = dt;
|
6182
|
+
b.Hooks = Re;
|
6183
6183
|
b.parse = b;
|
6184
6184
|
b.options;
|
6185
6185
|
b.setOptions;
|
@@ -6188,17 +6188,17 @@ b.walkTokens;
|
|
6188
6188
|
b.parseInline;
|
6189
6189
|
I.parse;
|
6190
6190
|
O.lex;
|
6191
|
-
var
|
6191
|
+
var zl = Object.defineProperty, Nr = (n, e, t, s) => {
|
6192
6192
|
for (var r = void 0, i = n.length - 1, o; i >= 0; i--)
|
6193
6193
|
(o = n[i]) && (r = o(e, t, r) || r);
|
6194
|
-
return r &&
|
6194
|
+
return r && zl(e, t, r), r;
|
6195
6195
|
};
|
6196
|
-
const
|
6197
|
-
|
6196
|
+
const Hr = new Be();
|
6197
|
+
Hr.link = function({ href: n, title: e, text: t }) {
|
6198
6198
|
return e || (e = t), `<a target="_blank" href="${n}" title="${e}">${t}</a>`;
|
6199
6199
|
};
|
6200
|
-
b.use({ renderer:
|
6201
|
-
const
|
6200
|
+
b.use({ renderer: Hr });
|
6201
|
+
const In = class In extends S {
|
6202
6202
|
constructor() {
|
6203
6203
|
super(...arguments), this.showLightbox = !1, this.imageUrl = "", this.altText = "", this.scrollRef = j(), this.contentRef = j(), this.autoScroll = !0, this.buffer = "", this.pointer = 0, this.imageRegexp = new RegExp(/!\[[^[]*\([^)]*\)/gm), this.includesImage = (e) => this.imageRegexp.test(e);
|
6204
6204
|
}
|
@@ -6247,7 +6247,7 @@ const On = class On extends S {
|
|
6247
6247
|
if (this.includesImage(this.buffer))
|
6248
6248
|
(i = this.contentRef.value) == null || i.appendChild(document.createElement("div")), this.buffer = "";
|
6249
6249
|
else if (this.buffer.includes("![")) return;
|
6250
|
-
s.innerHTML =
|
6250
|
+
s.innerHTML = Hi(t), this.applyCodeStyles(s), this.autoScroll && this.scrollRef.value.scrollIntoView();
|
6251
6251
|
}
|
6252
6252
|
// Apply white-space: pre-wrap to <code> elements
|
6253
6253
|
applyCodeStyles(e) {
|
@@ -6269,7 +6269,7 @@ const On = class On extends S {
|
|
6269
6269
|
`;
|
6270
6270
|
}
|
6271
6271
|
};
|
6272
|
-
|
6272
|
+
In.styles = [
|
6273
6273
|
T`
|
6274
6274
|
:host {
|
6275
6275
|
box-sizing: border-box;
|
@@ -6310,19 +6310,19 @@ On.styles = [
|
|
6310
6310
|
}
|
6311
6311
|
`
|
6312
6312
|
];
|
6313
|
-
let
|
6314
|
-
|
6313
|
+
let je = In;
|
6314
|
+
Nr([
|
6315
6315
|
w({ attribute: !1 })
|
6316
|
-
],
|
6317
|
-
|
6316
|
+
], je.prototype, "message");
|
6317
|
+
Nr([
|
6318
6318
|
C()
|
6319
|
-
],
|
6320
|
-
var
|
6319
|
+
], je.prototype, "showLightbox");
|
6320
|
+
var Ul = Object.defineProperty, Bl = (n, e, t, s) => {
|
6321
6321
|
for (var r = void 0, i = n.length - 1, o; i >= 0; i--)
|
6322
6322
|
(o = n[i]) && (r = o(e, t, r) || r);
|
6323
|
-
return r &&
|
6323
|
+
return r && Ul(e, t, r), r;
|
6324
6324
|
};
|
6325
|
-
const
|
6325
|
+
const Mn = class Mn extends S {
|
6326
6326
|
constructor() {
|
6327
6327
|
super(...arguments), this.escapeListener = (e) => {
|
6328
6328
|
e.key === "Escape" && this.closeLightbox();
|
@@ -6359,13 +6359,13 @@ const In = class In extends S {
|
|
6359
6359
|
@keydown=${this.handleKeyDown}
|
6360
6360
|
>
|
6361
6361
|
<button class="close" @click=${this.closeLightbox}>
|
6362
|
-
<telia-icon svg=${
|
6362
|
+
<telia-icon svg=${mo.svg} size="lg"></telia-icon>
|
6363
6363
|
</button>
|
6364
6364
|
<img src="${this.imageUrl}" alt="${this.altText ?? ""}" />
|
6365
6365
|
</div> `;
|
6366
6366
|
}
|
6367
6367
|
};
|
6368
|
-
|
6368
|
+
Mn.styles = [
|
6369
6369
|
T`
|
6370
6370
|
:focus {
|
6371
6371
|
outline-color: var(--focus-color);
|
@@ -6406,26 +6406,26 @@ In.styles = [
|
|
6406
6406
|
}
|
6407
6407
|
`
|
6408
6408
|
];
|
6409
|
-
let
|
6410
|
-
|
6409
|
+
let pt = Mn;
|
6410
|
+
Bl([
|
6411
6411
|
w({ attribute: !0 })
|
6412
|
-
],
|
6413
|
-
var
|
6412
|
+
], pt.prototype, "imageUrl");
|
6413
|
+
var jl = Object.defineProperty, Z = (n, e, t, s) => {
|
6414
6414
|
for (var r = void 0, i = n.length - 1, o; i >= 0; i--)
|
6415
6415
|
(o = n[i]) && (r = o(e, t, r) || r);
|
6416
|
-
return r &&
|
6416
|
+
return r && jl(e, t, r), r;
|
6417
6417
|
};
|
6418
|
-
customElements.get("conversation-entry") || customElements.define("conversation-entry",
|
6419
|
-
customElements.get("ace-conversation-feed") || customElements.define("ace-conversation-feed",
|
6420
|
-
customElements.get("conversation-group") || customElements.define("conversation-group",
|
6421
|
-
customElements.get("ace-typing-state") || customElements.define("ace-typing-state",
|
6422
|
-
customElements.get("message-type-html") || customElements.define("message-type-html",
|
6423
|
-
customElements.get("message-type-markdown") || customElements.define("message-type-markdown",
|
6424
|
-
customElements.get("ace-lightbox") || customElements.define("ace-lightbox",
|
6425
|
-
const
|
6418
|
+
customElements.get("conversation-entry") || customElements.define("conversation-entry", lt);
|
6419
|
+
customElements.get("ace-conversation-feed") || customElements.define("ace-conversation-feed", Ue);
|
6420
|
+
customElements.get("conversation-group") || customElements.define("conversation-group", ct);
|
6421
|
+
customElements.get("ace-typing-state") || customElements.define("ace-typing-state", Qt);
|
6422
|
+
customElements.get("message-type-html") || customElements.define("message-type-html", ht);
|
6423
|
+
customElements.get("message-type-markdown") || customElements.define("message-type-markdown", je);
|
6424
|
+
customElements.get("ace-lightbox") || customElements.define("ace-lightbox", pt);
|
6425
|
+
const Ts = Cr(S), zn = class zn extends Ts {
|
6426
6426
|
constructor() {
|
6427
|
-
super(...arguments), this.message = "", this.disabledInput = !1, this.disabledSkipToLatest = !1, this.disabledSubmit = !1, this.chatOverlayActive = !1, this.textAreaLength = 0, this.isMuted = !1, this.conversationContentRef = j(), this.conversationFeedRef = j(), this.formRef = j(), this.inputRef = j(), this.scrollRef = j(), this.counterRef = j(), this.chatScrollHeight = 0, this.chatCurrentScrollPosition = 0, this.toast = new
|
6428
|
-
|
6427
|
+
super(...arguments), this.message = "", this.disabledInput = !1, this.disabledSkipToLatest = !1, this.disabledSubmit = !1, this.chatOverlayActive = !1, this.textAreaLength = 0, this.isMuted = !1, this.conversationContentRef = j(), this.conversationFeedRef = j(), this.formRef = j(), this.inputRef = j(), this.scrollRef = j(), this.counterRef = j(), this.chatScrollHeight = 0, this.chatCurrentScrollPosition = 0, this.toast = new Da(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 z("waiting"), this.stateMachine = new qa(this.conversationState$, this), this.provider$ = this.stateMachine.session().pipe(
|
6428
|
+
fe((e) => e ? e == null ? void 0 : e.provider$ : Bt(null))
|
6429
6429
|
), this.userTyping$ = new _();
|
6430
6430
|
}
|
6431
6431
|
async connectedCallback() {
|
@@ -6435,20 +6435,20 @@ const Ls = _r(S), Mn = class Mn extends Ls {
|
|
6435
6435
|
);
|
6436
6436
|
this.platform = e || null;
|
6437
6437
|
const t = this.application.trigger;
|
6438
|
-
t && t.widgetActive$.pipe(
|
6438
|
+
t && t.widgetActive$.pipe(Nt(t.componentIsDestroyed$)).subscribe((s) => {
|
6439
6439
|
const r = this.conversationContentRef.value;
|
6440
6440
|
r && (s ? r.scrollTop = this.chatCurrentScrollPosition : this.chatCurrentScrollPosition = r.scrollTop);
|
6441
|
-
}), this.stateSubscription =
|
6441
|
+
}), this.stateSubscription = Li([
|
6442
6442
|
this.stateMachine.entries(),
|
6443
6443
|
this.stateMachine.isTyping()
|
6444
6444
|
]).subscribe(([s, r]) => {
|
6445
6445
|
this.entries = s, this.typing = r;
|
6446
|
-
}), this.userSubmitSubscription =
|
6446
|
+
}), this.userSubmitSubscription = Je(
|
6447
6447
|
this,
|
6448
6448
|
"user-submit"
|
6449
|
-
).pipe(
|
6449
|
+
).pipe(Ht(this.provider$)).subscribe(([s, r]) => {
|
6450
6450
|
r && r.onUserSubmit(s.detail);
|
6451
|
-
}), this._addHeaderOptions(), this.provider$.pipe(
|
6451
|
+
}), this._addHeaderOptions(), this.provider$.pipe(Ht(this.provider$)).subscribe(([s, r]) => {
|
6452
6452
|
r && r.showChatOverlay$.pipe().subscribe((i) => {
|
6453
6453
|
this.chatOverlayActive = i;
|
6454
6454
|
});
|
@@ -6539,11 +6539,11 @@ const Ls = _r(S), Mn = class Mn extends Ls {
|
|
6539
6539
|
return;
|
6540
6540
|
const t = this.application.texts, s = t.getOrFallback("conversation.mute", "Mute"), r = t.getOrFallback("conversation.unmute", "Unmute"), i = e.addOption({
|
6541
6541
|
label: this.isMuted ? r : s,
|
6542
|
-
icon: this.isMuted ?
|
6542
|
+
icon: this.isMuted ? ts.svg : ns.svg,
|
6543
6543
|
closeOnClick: !1,
|
6544
6544
|
datatestid: "options-mute-button",
|
6545
6545
|
onClick: () => {
|
6546
|
-
this.isMuted ? (this.isMuted = !1, this.application.unmute(), i.updateLabel(s), i.updateIcon(
|
6546
|
+
this.isMuted ? (this.isMuted = !1, this.application.unmute(), i.updateLabel(s), i.updateIcon(ns.svg)) : (this.isMuted = !0, this.application.mute(), i.updateLabel(r), i.updateIcon(ts.svg));
|
6547
6547
|
}
|
6548
6548
|
});
|
6549
6549
|
}
|
@@ -6573,7 +6573,7 @@ const Ls = _r(S), Mn = class Mn extends Ls {
|
|
6573
6573
|
providerOptions: t
|
6574
6574
|
}
|
6575
6575
|
});
|
6576
|
-
return this.dispatchEvent(s), s.detail.complete ||
|
6576
|
+
return this.dispatchEvent(s), s.detail.complete || He;
|
6577
6577
|
}
|
6578
6578
|
firstUpdated() {
|
6579
6579
|
this.isMuted = this.application.storage.get("muteAudioNotifications") ?? !1;
|
@@ -6585,7 +6585,7 @@ const Ls = _r(S), Mn = class Mn extends Ls {
|
|
6585
6585
|
const t = this.application.settings.components.conversation;
|
6586
6586
|
return ((o = (i = t == null ? void 0 : t.properties) == null ? void 0 : i.chat) == null ? void 0 : o.isThirdPartyWidget) && (this.renderRoot.host.style.width = "100%"), v` <div
|
6587
6587
|
@action=${this._actionHandler}
|
6588
|
-
class=${
|
6588
|
+
class=${$e({
|
6589
6589
|
conversation: !0,
|
6590
6590
|
disabled: this.disabledInput,
|
6591
6591
|
"conversation--has-toast": this.toast.hasMessage(),
|
@@ -6598,11 +6598,11 @@ const Ls = _r(S), Mn = class Mn extends Ls {
|
|
6598
6598
|
class="overlay-button"
|
6599
6599
|
@click=${() => this.chatOverlayActive = !1}
|
6600
6600
|
>
|
6601
|
-
<telia-icon svg=${
|
6601
|
+
<telia-icon svg=${go.svg}></telia-icon>
|
6602
6602
|
</button>
|
6603
6603
|
</div>` : m}
|
6604
6604
|
<div
|
6605
|
-
class=${
|
6605
|
+
class=${$e({
|
6606
6606
|
"conversation-content": !0,
|
6607
6607
|
"conversation-overlay-mode": this.chatOverlayActive
|
6608
6608
|
})}
|
@@ -6654,7 +6654,7 @@ const Ls = _r(S), Mn = class Mn extends Ls {
|
|
6654
6654
|
title=${e.getOrFallback("conversation.send-alt", "Send")}
|
6655
6655
|
?disabled=${this.disabledSubmit}
|
6656
6656
|
>
|
6657
|
-
<telia-icon svg=${
|
6657
|
+
<telia-icon svg=${bo.svg}></telia-icon>
|
6658
6658
|
</button>
|
6659
6659
|
<span class="counter" ${N(this.counterRef)}>
|
6660
6660
|
${this.textAreaLength} / ${this.messageMaxLength}</span
|
@@ -6673,8 +6673,8 @@ const Ls = _r(S), Mn = class Mn extends Ls {
|
|
6673
6673
|
</div>`;
|
6674
6674
|
}
|
6675
6675
|
};
|
6676
|
-
|
6677
|
-
|
6676
|
+
zn.styles = [
|
6677
|
+
Ts.styles || [],
|
6678
6678
|
T`
|
6679
6679
|
:host {
|
6680
6680
|
font-family: var(--font-family);
|
@@ -6959,7 +6959,7 @@ Mn.styles = [
|
|
6959
6959
|
}
|
6960
6960
|
`
|
6961
6961
|
];
|
6962
|
-
let P =
|
6962
|
+
let P = zn;
|
6963
6963
|
Z([
|
6964
6964
|
C()
|
6965
6965
|
], P.prototype, "message");
|
@@ -6987,20 +6987,20 @@ Z([
|
|
6987
6987
|
Z([
|
6988
6988
|
C()
|
6989
6989
|
], P.prototype, "typing");
|
6990
|
-
const
|
6990
|
+
const Nl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
6991
6991
|
__proto__: null,
|
6992
6992
|
Conversation: P,
|
6993
6993
|
default: P
|
6994
6994
|
}, Symbol.toStringTag, { value: "Module" }));
|
6995
6995
|
export {
|
6996
|
-
|
6996
|
+
Fi as Agent,
|
6997
6997
|
P as Conversation,
|
6998
|
-
|
6999
|
-
|
7000
|
-
|
7001
|
-
|
7002
|
-
|
7003
|
-
|
7004
|
-
|
7005
|
-
|
6998
|
+
Dl as ConversationComponent,
|
6999
|
+
vt as ConversationEntry,
|
7000
|
+
Q as ConversationMessageType,
|
7001
|
+
Ps as ConversationPlatform,
|
7002
|
+
ql as ConversationProvider,
|
7003
|
+
qi as User,
|
7004
|
+
Fl as findPlainTextLinks,
|
7005
|
+
Hi as truncateLongLinks
|
7006
7006
|
};
|