@telia-ace/ace-chat-flamingo 1.1.123-rc.8 → 1.1.123-rc.9
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 +35 -35
- package/index.mjs +406 -398
- package/package.json +3 -3
- package/types.d.ts +8 -0
package/index.mjs
CHANGED
|
@@ -26,22 +26,22 @@ function vl(n, e, t, i) {
|
|
|
26
26
|
return new (t || (t = Promise))(function(r, o) {
|
|
27
27
|
function a(u) {
|
|
28
28
|
try {
|
|
29
|
-
|
|
29
|
+
l(i.next(u));
|
|
30
30
|
} catch (p) {
|
|
31
31
|
o(p);
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
|
-
function
|
|
34
|
+
function c(u) {
|
|
35
35
|
try {
|
|
36
|
-
|
|
36
|
+
l(i.throw(u));
|
|
37
37
|
} catch (p) {
|
|
38
38
|
o(p);
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
|
-
function
|
|
42
|
-
u.done ? r(u.value) : s(u.value).then(a,
|
|
41
|
+
function l(u) {
|
|
42
|
+
u.done ? r(u.value) : s(u.value).then(a, c);
|
|
43
43
|
}
|
|
44
|
-
|
|
44
|
+
l((i = i.apply(n, e || [])).next());
|
|
45
45
|
});
|
|
46
46
|
}
|
|
47
47
|
function Oo(n, e) {
|
|
@@ -52,56 +52,56 @@ function Oo(n, e) {
|
|
|
52
52
|
return o.next = a(0), o.throw = a(1), o.return = a(2), typeof Symbol == "function" && (o[Symbol.iterator] = function() {
|
|
53
53
|
return this;
|
|
54
54
|
}), o;
|
|
55
|
-
function a(
|
|
55
|
+
function a(l) {
|
|
56
56
|
return function(u) {
|
|
57
|
-
return
|
|
57
|
+
return c([l, u]);
|
|
58
58
|
};
|
|
59
59
|
}
|
|
60
|
-
function l
|
|
60
|
+
function c(l) {
|
|
61
61
|
if (i) throw new TypeError("Generator is already executing.");
|
|
62
|
-
for (; o && (o = 0,
|
|
63
|
-
if (i = 1, s && (r =
|
|
64
|
-
switch (s = 0, r && (
|
|
62
|
+
for (; o && (o = 0, l[0] && (t = 0)), t; ) try {
|
|
63
|
+
if (i = 1, s && (r = l[0] & 2 ? s.return : l[0] ? s.throw || ((r = s.return) && r.call(s), 0) : s.next) && !(r = r.call(s, l[1])).done) return r;
|
|
64
|
+
switch (s = 0, r && (l = [l[0] & 2, r.value]), l[0]) {
|
|
65
65
|
case 0:
|
|
66
66
|
case 1:
|
|
67
|
-
r =
|
|
67
|
+
r = l;
|
|
68
68
|
break;
|
|
69
69
|
case 4:
|
|
70
|
-
return t.label++, { value:
|
|
70
|
+
return t.label++, { value: l[1], done: !1 };
|
|
71
71
|
case 5:
|
|
72
|
-
t.label++, s =
|
|
72
|
+
t.label++, s = l[1], l = [0];
|
|
73
73
|
continue;
|
|
74
74
|
case 7:
|
|
75
|
-
|
|
75
|
+
l = t.ops.pop(), t.trys.pop();
|
|
76
76
|
continue;
|
|
77
77
|
default:
|
|
78
|
-
if (r = t.trys, !(r = r.length > 0 && r[r.length - 1]) && (
|
|
78
|
+
if (r = t.trys, !(r = r.length > 0 && r[r.length - 1]) && (l[0] === 6 || l[0] === 2)) {
|
|
79
79
|
t = 0;
|
|
80
80
|
continue;
|
|
81
81
|
}
|
|
82
|
-
if (
|
|
83
|
-
t.label =
|
|
82
|
+
if (l[0] === 3 && (!r || l[1] > r[0] && l[1] < r[3])) {
|
|
83
|
+
t.label = l[1];
|
|
84
84
|
break;
|
|
85
85
|
}
|
|
86
|
-
if (
|
|
87
|
-
t.label = r[1], r =
|
|
86
|
+
if (l[0] === 6 && t.label < r[1]) {
|
|
87
|
+
t.label = r[1], r = l;
|
|
88
88
|
break;
|
|
89
89
|
}
|
|
90
90
|
if (r && t.label < r[2]) {
|
|
91
|
-
t.label = r[2], t.ops.push(
|
|
91
|
+
t.label = r[2], t.ops.push(l);
|
|
92
92
|
break;
|
|
93
93
|
}
|
|
94
94
|
r[2] && t.ops.pop(), t.trys.pop();
|
|
95
95
|
continue;
|
|
96
96
|
}
|
|
97
|
-
|
|
97
|
+
l = e.call(n, t);
|
|
98
98
|
} catch (u) {
|
|
99
|
-
|
|
99
|
+
l = [6, u], s = 0;
|
|
100
100
|
} finally {
|
|
101
101
|
i = r = 0;
|
|
102
102
|
}
|
|
103
|
-
if (
|
|
104
|
-
return { value:
|
|
103
|
+
if (l[0] & 5) throw l[1];
|
|
104
|
+
return { value: l[0] ? l[1] : void 0, done: !0 };
|
|
105
105
|
}
|
|
106
106
|
}
|
|
107
107
|
function yt(n) {
|
|
@@ -153,28 +153,28 @@ function bl(n, e, t) {
|
|
|
153
153
|
function a(g, m) {
|
|
154
154
|
i[g] && (s[g] = function($) {
|
|
155
155
|
return new Promise(function($e, ce) {
|
|
156
|
-
r.push([g, $, $e, ce]) > 1 ||
|
|
156
|
+
r.push([g, $, $e, ce]) > 1 || c(g, $);
|
|
157
157
|
});
|
|
158
158
|
}, m && (s[g] = m(s[g])));
|
|
159
159
|
}
|
|
160
|
-
function
|
|
160
|
+
function c(g, m) {
|
|
161
161
|
try {
|
|
162
|
-
|
|
162
|
+
l(i[g](m));
|
|
163
163
|
} catch ($) {
|
|
164
164
|
d(r[0][3], $);
|
|
165
165
|
}
|
|
166
166
|
}
|
|
167
|
-
function
|
|
167
|
+
function l(g) {
|
|
168
168
|
g.value instanceof gt ? Promise.resolve(g.value.v).then(u, p) : d(r[0][2], g);
|
|
169
169
|
}
|
|
170
170
|
function u(g) {
|
|
171
|
-
|
|
171
|
+
c("next", g);
|
|
172
172
|
}
|
|
173
173
|
function p(g) {
|
|
174
|
-
|
|
174
|
+
c("throw", g);
|
|
175
175
|
}
|
|
176
176
|
function d(g, m) {
|
|
177
|
-
g(m), r.shift(), r.length &&
|
|
177
|
+
g(m), r.shift(), r.length && c(r[0][0], r[0][1]);
|
|
178
178
|
}
|
|
179
179
|
}
|
|
180
180
|
function yl(n) {
|
|
@@ -185,14 +185,14 @@ function yl(n) {
|
|
|
185
185
|
}, t);
|
|
186
186
|
function i(r) {
|
|
187
187
|
t[r] = n[r] && function(o) {
|
|
188
|
-
return new Promise(function(a,
|
|
189
|
-
o = n[r](o), s(a,
|
|
188
|
+
return new Promise(function(a, c) {
|
|
189
|
+
o = n[r](o), s(a, c, o.done, o.value);
|
|
190
190
|
});
|
|
191
191
|
};
|
|
192
192
|
}
|
|
193
|
-
function s(r, o, a,
|
|
194
|
-
Promise.resolve(
|
|
195
|
-
r({ value:
|
|
193
|
+
function s(r, o, a, c) {
|
|
194
|
+
Promise.resolve(c).then(function(l) {
|
|
195
|
+
r({ value: l, done: a });
|
|
196
196
|
}, o);
|
|
197
197
|
}
|
|
198
198
|
}
|
|
@@ -232,15 +232,15 @@ var tn = (function() {
|
|
|
232
232
|
if (o)
|
|
233
233
|
if (this._parentage = null, Array.isArray(o))
|
|
234
234
|
try {
|
|
235
|
-
for (var a = yt(o),
|
|
236
|
-
var
|
|
237
|
-
|
|
235
|
+
for (var a = yt(o), c = a.next(); !c.done; c = a.next()) {
|
|
236
|
+
var l = c.value;
|
|
237
|
+
l.remove(this);
|
|
238
238
|
}
|
|
239
239
|
} catch ($) {
|
|
240
240
|
e = { error: $ };
|
|
241
241
|
} finally {
|
|
242
242
|
try {
|
|
243
|
-
|
|
243
|
+
c && !c.done && (t = a.return) && t.call(a);
|
|
244
244
|
} finally {
|
|
245
245
|
if (e) throw e.error;
|
|
246
246
|
}
|
|
@@ -446,8 +446,8 @@ var j = (function() {
|
|
|
446
446
|
}, n.prototype.subscribe = function(e, t, i) {
|
|
447
447
|
var s = this, r = _l(e) ? e : new Ii(e, t, i);
|
|
448
448
|
return wn(function() {
|
|
449
|
-
var o = s, a = o.operator,
|
|
450
|
-
r.add(a ? a.call(r,
|
|
449
|
+
var o = s, a = o.operator, c = o.source;
|
|
450
|
+
r.add(a ? a.call(r, c) : c ? s._subscribe(r) : s._trySubscribe(r));
|
|
451
451
|
}), r;
|
|
452
452
|
}, n.prototype._trySubscribe = function(e) {
|
|
453
453
|
try {
|
|
@@ -462,8 +462,8 @@ var j = (function() {
|
|
|
462
462
|
next: function(a) {
|
|
463
463
|
try {
|
|
464
464
|
e(a);
|
|
465
|
-
} catch (
|
|
466
|
-
r(
|
|
465
|
+
} catch (c) {
|
|
466
|
+
r(c), o.unsubscribe();
|
|
467
467
|
}
|
|
468
468
|
},
|
|
469
469
|
error: r,
|
|
@@ -528,30 +528,30 @@ function Y(n, e, t, i, s) {
|
|
|
528
528
|
var Tl = (function(n) {
|
|
529
529
|
Ie(e, n);
|
|
530
530
|
function e(t, i, s, r, o, a) {
|
|
531
|
-
var
|
|
532
|
-
return
|
|
531
|
+
var c = n.call(this, t) || this;
|
|
532
|
+
return c.onFinalize = o, c.shouldUnsubscribe = a, c._next = i ? function(l) {
|
|
533
533
|
try {
|
|
534
|
-
i(
|
|
534
|
+
i(l);
|
|
535
535
|
} catch (u) {
|
|
536
536
|
t.error(u);
|
|
537
537
|
}
|
|
538
|
-
} : n.prototype._next,
|
|
538
|
+
} : n.prototype._next, c._error = r ? function(l) {
|
|
539
539
|
try {
|
|
540
|
-
r(
|
|
540
|
+
r(l);
|
|
541
541
|
} catch (u) {
|
|
542
542
|
t.error(u);
|
|
543
543
|
} finally {
|
|
544
544
|
this.unsubscribe();
|
|
545
545
|
}
|
|
546
|
-
} : n.prototype._error,
|
|
546
|
+
} : n.prototype._error, c._complete = s ? function() {
|
|
547
547
|
try {
|
|
548
548
|
s();
|
|
549
|
-
} catch (
|
|
550
|
-
t.error(
|
|
549
|
+
} catch (l) {
|
|
550
|
+
t.error(l);
|
|
551
551
|
} finally {
|
|
552
552
|
this.unsubscribe();
|
|
553
553
|
}
|
|
554
|
-
} : n.prototype._complete,
|
|
554
|
+
} : n.prototype._complete, c;
|
|
555
555
|
}
|
|
556
556
|
return e.prototype.unsubscribe = function() {
|
|
557
557
|
var t;
|
|
@@ -584,11 +584,11 @@ var Tl = (function(n) {
|
|
|
584
584
|
i.currentObservers || (i.currentObservers = Array.from(i.observers));
|
|
585
585
|
try {
|
|
586
586
|
for (var o = yt(i.currentObservers), a = o.next(); !a.done; a = o.next()) {
|
|
587
|
-
var
|
|
588
|
-
|
|
587
|
+
var c = a.value;
|
|
588
|
+
c.next(t);
|
|
589
589
|
}
|
|
590
|
-
} catch (
|
|
591
|
-
s = { error:
|
|
590
|
+
} catch (l) {
|
|
591
|
+
s = { error: l };
|
|
592
592
|
} finally {
|
|
593
593
|
try {
|
|
594
594
|
a && !a.done && (r = o.return) && r.call(o);
|
|
@@ -934,27 +934,27 @@ function Bl(n, e) {
|
|
|
934
934
|
var t, i, s, r;
|
|
935
935
|
return vl(this, void 0, void 0, function() {
|
|
936
936
|
var o, a;
|
|
937
|
-
return Oo(this, function(
|
|
938
|
-
switch (
|
|
937
|
+
return Oo(this, function(c) {
|
|
938
|
+
switch (c.label) {
|
|
939
939
|
case 0:
|
|
940
|
-
|
|
940
|
+
c.trys.push([0, 5, 6, 11]), t = yl(n), c.label = 1;
|
|
941
941
|
case 1:
|
|
942
942
|
return [4, t.next()];
|
|
943
943
|
case 2:
|
|
944
|
-
if (i =
|
|
944
|
+
if (i = c.sent(), !!i.done) return [3, 4];
|
|
945
945
|
if (o = i.value, e.next(o), e.closed)
|
|
946
946
|
return [2];
|
|
947
|
-
|
|
947
|
+
c.label = 3;
|
|
948
948
|
case 3:
|
|
949
949
|
return [3, 1];
|
|
950
950
|
case 4:
|
|
951
951
|
return [3, 11];
|
|
952
952
|
case 5:
|
|
953
|
-
return a =
|
|
953
|
+
return a = c.sent(), s = { error: a }, [3, 11];
|
|
954
954
|
case 6:
|
|
955
|
-
return
|
|
955
|
+
return c.trys.push([6, , 9, 10]), i && !i.done && (r = t.return) ? [4, r.call(t)] : [3, 8];
|
|
956
956
|
case 7:
|
|
957
|
-
|
|
957
|
+
c.sent(), c.label = 8;
|
|
958
958
|
case 8:
|
|
959
959
|
return [3, 10];
|
|
960
960
|
case 9:
|
|
@@ -1125,15 +1125,15 @@ function rc() {
|
|
|
1125
1125
|
var t = ss(n), i = Mo(n), s = nc(n), r = s.args, o = s.keys;
|
|
1126
1126
|
if (r.length === 0)
|
|
1127
1127
|
return Ye([], t);
|
|
1128
|
-
var a = new j(oc(r, t, o ? function(
|
|
1129
|
-
return sc(o,
|
|
1128
|
+
var a = new j(oc(r, t, o ? function(c) {
|
|
1129
|
+
return sc(o, c);
|
|
1130
1130
|
} : Ct));
|
|
1131
1131
|
return i ? a.pipe(Zo(i)) : a;
|
|
1132
1132
|
}
|
|
1133
1133
|
function oc(n, e, t) {
|
|
1134
1134
|
return t === void 0 && (t = Ct), function(i) {
|
|
1135
1135
|
Or(e, function() {
|
|
1136
|
-
for (var s = n.length, r = new Array(s), o = s, a = s,
|
|
1136
|
+
for (var s = n.length, r = new Array(s), o = s, a = s, c = function(u) {
|
|
1137
1137
|
Or(e, function() {
|
|
1138
1138
|
var p = Ye(n[u], e), d = !1;
|
|
1139
1139
|
p.subscribe(Y(i, function(g) {
|
|
@@ -1142,8 +1142,8 @@ function oc(n, e, t) {
|
|
|
1142
1142
|
--o || i.complete();
|
|
1143
1143
|
}));
|
|
1144
1144
|
}, i);
|
|
1145
|
-
},
|
|
1146
|
-
l
|
|
1145
|
+
}, l = 0; l < s; l++)
|
|
1146
|
+
c(l);
|
|
1147
1147
|
}, i);
|
|
1148
1148
|
};
|
|
1149
1149
|
}
|
|
@@ -1151,12 +1151,12 @@ function Or(n, e, t) {
|
|
|
1151
1151
|
n ? Ne(t, n, e) : e();
|
|
1152
1152
|
}
|
|
1153
1153
|
function ac(n, e, t, i, s, r, o, a) {
|
|
1154
|
-
var
|
|
1155
|
-
p && !
|
|
1154
|
+
var c = [], l = 0, u = 0, p = !1, d = function() {
|
|
1155
|
+
p && !c.length && !l && e.complete();
|
|
1156
1156
|
}, g = function($) {
|
|
1157
|
-
return
|
|
1157
|
+
return l < i ? m($) : c.push($);
|
|
1158
1158
|
}, m = function($) {
|
|
1159
|
-
|
|
1159
|
+
l++;
|
|
1160
1160
|
var $e = !1;
|
|
1161
1161
|
ae(t($, u++)).subscribe(Y(e, function(ce) {
|
|
1162
1162
|
e.next(ce);
|
|
@@ -1165,11 +1165,11 @@ function ac(n, e, t, i, s, r, o, a) {
|
|
|
1165
1165
|
}, void 0, function() {
|
|
1166
1166
|
if ($e)
|
|
1167
1167
|
try {
|
|
1168
|
-
|
|
1168
|
+
l--;
|
|
1169
1169
|
for (var ce = function() {
|
|
1170
|
-
var Pe =
|
|
1170
|
+
var Pe = c.shift();
|
|
1171
1171
|
o || m(Pe);
|
|
1172
|
-
};
|
|
1172
|
+
}; c.length && l < i; )
|
|
1173
1173
|
ce();
|
|
1174
1174
|
d();
|
|
1175
1175
|
} catch (Pe) {
|
|
@@ -1204,8 +1204,8 @@ function An(n, e, t, i) {
|
|
|
1204
1204
|
if (E(t) && (i = t, t = void 0), i)
|
|
1205
1205
|
return An(n, e, t).pipe(Zo(i));
|
|
1206
1206
|
var s = ze(gc(n) ? hc.map(function(a) {
|
|
1207
|
-
return function(
|
|
1208
|
-
return n[a](e,
|
|
1207
|
+
return function(c) {
|
|
1208
|
+
return n[a](e, c, t);
|
|
1209
1209
|
};
|
|
1210
1210
|
}) : pc(n) ? uc.map(Lr(n, e)) : fc(n) ? dc.map(Lr(n, e)) : [], 2), r = s[0], o = s[1];
|
|
1211
1211
|
if (!r && rs(n))
|
|
@@ -1215,13 +1215,13 @@ function An(n, e, t, i) {
|
|
|
1215
1215
|
if (!r)
|
|
1216
1216
|
throw new TypeError("Invalid event target");
|
|
1217
1217
|
return new j(function(a) {
|
|
1218
|
-
var
|
|
1219
|
-
for (var
|
|
1220
|
-
|
|
1221
|
-
return a.next(1 <
|
|
1218
|
+
var c = function() {
|
|
1219
|
+
for (var l = [], u = 0; u < arguments.length; u++)
|
|
1220
|
+
l[u] = arguments[u];
|
|
1221
|
+
return a.next(1 < l.length ? l : l[0]);
|
|
1222
1222
|
};
|
|
1223
|
-
return r(
|
|
1224
|
-
return o(
|
|
1223
|
+
return r(c), function() {
|
|
1224
|
+
return o(c);
|
|
1225
1225
|
};
|
|
1226
1226
|
});
|
|
1227
1227
|
}
|
|
@@ -1283,15 +1283,15 @@ function bi(n) {
|
|
|
1283
1283
|
} : oe(function(i, s) {
|
|
1284
1284
|
var r = 0, o, a = function() {
|
|
1285
1285
|
o == null || o.unsubscribe(), o = null;
|
|
1286
|
-
var
|
|
1287
|
-
t != null ||
|
|
1288
|
-
},
|
|
1289
|
-
var
|
|
1286
|
+
var l, u;
|
|
1287
|
+
t != null || c();
|
|
1288
|
+
}, c = function() {
|
|
1289
|
+
var l = !1;
|
|
1290
1290
|
o = i.subscribe(Y(s, void 0, function() {
|
|
1291
|
-
++r < e ? o ? a() :
|
|
1292
|
-
})),
|
|
1291
|
+
++r < e ? o ? a() : l = !0 : s.complete();
|
|
1292
|
+
})), l && a();
|
|
1293
1293
|
};
|
|
1294
|
-
|
|
1294
|
+
c();
|
|
1295
1295
|
});
|
|
1296
1296
|
}
|
|
1297
1297
|
function Oe(n, e) {
|
|
@@ -1299,11 +1299,11 @@ function Oe(n, e) {
|
|
|
1299
1299
|
var s = null, r = 0, o = !1, a = function() {
|
|
1300
1300
|
return o && !s && i.complete();
|
|
1301
1301
|
};
|
|
1302
|
-
t.subscribe(Y(i, function(
|
|
1302
|
+
t.subscribe(Y(i, function(c) {
|
|
1303
1303
|
s == null || s.unsubscribe();
|
|
1304
|
-
var
|
|
1305
|
-
ae(n(
|
|
1306
|
-
return i.next(e ? e(
|
|
1304
|
+
var l = 0, u = r++;
|
|
1305
|
+
ae(n(c, u)).subscribe(s = Y(i, function(p) {
|
|
1306
|
+
return i.next(e ? e(c, p, u, l++) : p);
|
|
1307
1307
|
}, function() {
|
|
1308
1308
|
s = null, a();
|
|
1309
1309
|
}));
|
|
@@ -1325,18 +1325,18 @@ function vc(n, e, t) {
|
|
|
1325
1325
|
var o;
|
|
1326
1326
|
(o = i.subscribe) === null || o === void 0 || o.call(i);
|
|
1327
1327
|
var a = !0;
|
|
1328
|
-
s.subscribe(Y(r, function(
|
|
1329
|
-
var c;
|
|
1330
|
-
(c = i.next) === null || c === void 0 || c.call(i, l), r.next(l);
|
|
1331
|
-
}, function() {
|
|
1328
|
+
s.subscribe(Y(r, function(c) {
|
|
1332
1329
|
var l;
|
|
1333
|
-
|
|
1334
|
-
}, function(
|
|
1330
|
+
(l = i.next) === null || l === void 0 || l.call(i, c), r.next(c);
|
|
1331
|
+
}, function() {
|
|
1335
1332
|
var c;
|
|
1336
|
-
a = !1, (c = i.
|
|
1333
|
+
a = !1, (c = i.complete) === null || c === void 0 || c.call(i), r.complete();
|
|
1334
|
+
}, function(c) {
|
|
1335
|
+
var l;
|
|
1336
|
+
a = !1, (l = i.error) === null || l === void 0 || l.call(i, c), r.error(c);
|
|
1337
1337
|
}, function() {
|
|
1338
|
-
var
|
|
1339
|
-
a && ((
|
|
1338
|
+
var c, l;
|
|
1339
|
+
a && ((c = i.unsubscribe) === null || c === void 0 || c.call(i)), (l = i.finalize) === null || l === void 0 || l.call(i);
|
|
1340
1340
|
}));
|
|
1341
1341
|
}) : Ct;
|
|
1342
1342
|
}
|
|
@@ -1347,14 +1347,14 @@ function Ui() {
|
|
|
1347
1347
|
return oe(function(i, s) {
|
|
1348
1348
|
for (var r = n.length, o = new Array(r), a = n.map(function() {
|
|
1349
1349
|
return !1;
|
|
1350
|
-
}),
|
|
1350
|
+
}), c = !1, l = function(p) {
|
|
1351
1351
|
ae(n[p]).subscribe(Y(s, function(d) {
|
|
1352
|
-
o[p] = d, !
|
|
1352
|
+
o[p] = d, !c && !a[p] && (a[p] = !0, (c = a.every(Ct)) && (a = null));
|
|
1353
1353
|
}, En));
|
|
1354
1354
|
}, u = 0; u < r; u++)
|
|
1355
|
-
|
|
1355
|
+
l(u);
|
|
1356
1356
|
i.subscribe(Y(s, function(p) {
|
|
1357
|
-
if (
|
|
1357
|
+
if (c) {
|
|
1358
1358
|
var d = Xe([p], ze(o));
|
|
1359
1359
|
s.next(t ? t.apply(void 0, Xe([], ze(d))) : d);
|
|
1360
1360
|
}
|
|
@@ -1396,9 +1396,9 @@ function Rr(n) {
|
|
|
1396
1396
|
let o;
|
|
1397
1397
|
for (; (o = i.exec(n)) !== null; )
|
|
1398
1398
|
r.push(o[1]);
|
|
1399
|
-
return s.filter((
|
|
1400
|
-
const
|
|
1401
|
-
`(?<!<a[^>]*>)${
|
|
1399
|
+
return s.filter((c) => !r.includes(c)).forEach((c) => {
|
|
1400
|
+
const l = c.endsWith(".") ? c.slice(0, -1) : c, u = new RegExp(
|
|
1401
|
+
`(?<!<a[^>]*>)${l.replace(
|
|
1402
1402
|
/[.*+?^${}()|[\]\\]/g,
|
|
1403
1403
|
"\\$&"
|
|
1404
1404
|
)}(?![^<]*</a>)`,
|
|
@@ -1406,7 +1406,7 @@ function Rr(n) {
|
|
|
1406
1406
|
);
|
|
1407
1407
|
e = e.replace(
|
|
1408
1408
|
u,
|
|
1409
|
-
`<a title='${
|
|
1409
|
+
`<a title='${l}' target='_blank' href='${l}'>${l}</a>`
|
|
1410
1410
|
);
|
|
1411
1411
|
}), e;
|
|
1412
1412
|
}
|
|
@@ -1423,12 +1423,12 @@ function Ni(n) {
|
|
|
1423
1423
|
const r = /^(https?:\/\/[^/]+)(\/.*)?$/i, o = i.match(r);
|
|
1424
1424
|
if (!o)
|
|
1425
1425
|
return t;
|
|
1426
|
-
const a = o[1],
|
|
1427
|
-
let d =
|
|
1428
|
-
u && u.length < p &&
|
|
1426
|
+
const a = o[1], l = (o[2] || "/").split("?")[0], u = l.split("/").pop(), p = s - a.length;
|
|
1427
|
+
let d = l;
|
|
1428
|
+
u && u.length < p && l.length > p ? d = l.substring(
|
|
1429
1429
|
0,
|
|
1430
1430
|
p - u.length - 4
|
|
1431
|
-
) + ".../" + u : d =
|
|
1431
|
+
) + ".../" + u : d = l.substring(0, p - 3) + "...";
|
|
1432
1432
|
const g = `${a}${d}`;
|
|
1433
1433
|
return Di(t, g);
|
|
1434
1434
|
}
|
|
@@ -1805,10 +1805,10 @@ let ht = class extends HTMLElement {
|
|
|
1805
1805
|
var r, o;
|
|
1806
1806
|
const i = this.constructor, s = i._$Eh.get(e);
|
|
1807
1807
|
if (s !== void 0 && this._$Em !== s) {
|
|
1808
|
-
const a = i.getPropertyOptions(s),
|
|
1808
|
+
const a = i.getPropertyOptions(s), c = typeof a.converter == "function" ? { fromAttribute: a.converter } : ((r = a.converter) == null ? void 0 : r.fromAttribute) !== void 0 ? a.converter : Tn;
|
|
1809
1809
|
this._$Em = s;
|
|
1810
|
-
const
|
|
1811
|
-
this[s] =
|
|
1810
|
+
const l = c.fromAttribute(t, a.type);
|
|
1811
|
+
this[s] = l ?? ((o = this._$Ej) == null ? void 0 : o.get(s)) ?? l, this._$Em = null;
|
|
1812
1812
|
}
|
|
1813
1813
|
}
|
|
1814
1814
|
requestUpdate(e, t, i) {
|
|
@@ -1846,8 +1846,8 @@ let ht = class extends HTMLElement {
|
|
|
1846
1846
|
}
|
|
1847
1847
|
const s = this.constructor.elementProperties;
|
|
1848
1848
|
if (s.size > 0) for (const [r, o] of s) {
|
|
1849
|
-
const { wrapped: a } = o,
|
|
1850
|
-
a !== !0 || this._$AL.has(r) ||
|
|
1849
|
+
const { wrapped: a } = o, c = this[r];
|
|
1850
|
+
a !== !0 || this._$AL.has(r) || c === void 0 || this.C(r, void 0, o, c);
|
|
1851
1851
|
}
|
|
1852
1852
|
}
|
|
1853
1853
|
let e = !1;
|
|
@@ -1908,11 +1908,11 @@ const Uc = (n, e) => {
|
|
|
1908
1908
|
const t = n.length - 1, i = [];
|
|
1909
1909
|
let s, r = e === 2 ? "<svg>" : e === 3 ? "<math>" : "", o = Lt;
|
|
1910
1910
|
for (let a = 0; a < t; a++) {
|
|
1911
|
-
const
|
|
1912
|
-
let
|
|
1913
|
-
for (; d <
|
|
1911
|
+
const c = n[a];
|
|
1912
|
+
let l, u, p = -1, d = 0;
|
|
1913
|
+
for (; d < c.length && (o.lastIndex = d, u = o.exec(c), u !== null); ) d = o.lastIndex, o === Lt ? u[1] === "!--" ? o = Dr : u[1] !== void 0 ? o = zr : u[2] !== void 0 ? (ea.test(u[2]) && (s = RegExp("</" + u[2], "g")), o = Ve) : u[3] !== void 0 && (o = Ve) : o === Ve ? u[0] === ">" ? (o = s ?? Lt, p = -1) : u[1] === void 0 ? p = -2 : (p = o.lastIndex - u[2].length, l = u[1], o = u[3] === void 0 ? Ve : u[3] === '"' ? Fr : Hr) : o === Fr || o === Hr ? o = Ve : o === Dr || o === zr ? o = Lt : (o = Ve, s = void 0);
|
|
1914
1914
|
const g = o === Ve && n[a + 1].startsWith("/>") ? " " : "";
|
|
1915
|
-
r += o === Lt ?
|
|
1915
|
+
r += o === Lt ? c + Ic : p >= 0 ? (i.push(l), c.slice(0, p) + Ko + c.slice(p) + Me + g) : c + Me + (p === -2 ? a : g);
|
|
1916
1916
|
}
|
|
1917
1917
|
return [ta(n, r + (n[t] || "<?>") + (e === 2 ? "</svg>" : e === 3 ? "</math>" : "")), i];
|
|
1918
1918
|
};
|
|
@@ -1921,29 +1921,29 @@ let zi = class na {
|
|
|
1921
1921
|
let s;
|
|
1922
1922
|
this.parts = [];
|
|
1923
1923
|
let r = 0, o = 0;
|
|
1924
|
-
const a = e.length - 1,
|
|
1925
|
-
if (this.el = na.createElement(
|
|
1924
|
+
const a = e.length - 1, c = this.parts, [l, u] = Uc(e, t);
|
|
1925
|
+
if (this.el = na.createElement(l, i), Ge.currentNode = this.el.content, t === 2 || t === 3) {
|
|
1926
1926
|
const p = this.el.content.firstChild;
|
|
1927
1927
|
p.replaceWith(...p.childNodes);
|
|
1928
1928
|
}
|
|
1929
|
-
for (; (s = Ge.nextNode()) !== null &&
|
|
1929
|
+
for (; (s = Ge.nextNode()) !== null && c.length < a; ) {
|
|
1930
1930
|
if (s.nodeType === 1) {
|
|
1931
1931
|
if (s.hasAttributes()) for (const p of s.getAttributeNames()) if (p.endsWith(Ko)) {
|
|
1932
1932
|
const d = u[o++], g = s.getAttribute(p).split(Me), m = /([.?@])?(.*)/.exec(d);
|
|
1933
|
-
|
|
1934
|
-
} else p.startsWith(Me) && (
|
|
1933
|
+
c.push({ type: 1, index: r, name: m[2], strings: g, ctor: m[1] === "." ? Dc : m[1] === "?" ? zc : m[1] === "@" ? Hc : Yn }), s.removeAttribute(p);
|
|
1934
|
+
} else p.startsWith(Me) && (c.push({ type: 6, index: r }), s.removeAttribute(p));
|
|
1935
1935
|
if (ea.test(s.tagName)) {
|
|
1936
1936
|
const p = s.textContent.split(Me), d = p.length - 1;
|
|
1937
1937
|
if (d > 0) {
|
|
1938
1938
|
s.textContent = On ? On.emptyScript : "";
|
|
1939
|
-
for (let g = 0; g < d; g++) s.append(p[g], Vt()), Ge.nextNode(),
|
|
1939
|
+
for (let g = 0; g < d; g++) s.append(p[g], Vt()), Ge.nextNode(), c.push({ type: 2, index: ++r });
|
|
1940
1940
|
s.append(p[d], Vt());
|
|
1941
1941
|
}
|
|
1942
1942
|
}
|
|
1943
|
-
} else if (s.nodeType === 8) if (s.data === Jo)
|
|
1943
|
+
} else if (s.nodeType === 8) if (s.data === Jo) c.push({ type: 2, index: r });
|
|
1944
1944
|
else {
|
|
1945
1945
|
let p = -1;
|
|
1946
|
-
for (; (p = s.data.indexOf(Me, p + 1)) !== -1; )
|
|
1946
|
+
for (; (p = s.data.indexOf(Me, p + 1)) !== -1; ) c.push({ type: 7, index: r }), p += Me.length - 1;
|
|
1947
1947
|
}
|
|
1948
1948
|
r++;
|
|
1949
1949
|
}
|
|
@@ -1973,13 +1973,13 @@ class Nc {
|
|
|
1973
1973
|
u(e) {
|
|
1974
1974
|
const { el: { content: t }, parts: i } = this._$AD, s = ((e == null ? void 0 : e.creationScope) ?? Ke).importNode(t, !0);
|
|
1975
1975
|
Ge.currentNode = s;
|
|
1976
|
-
let r = Ge.nextNode(), o = 0, a = 0,
|
|
1977
|
-
for (;
|
|
1978
|
-
if (o ===
|
|
1979
|
-
let
|
|
1980
|
-
|
|
1976
|
+
let r = Ge.nextNode(), o = 0, a = 0, c = i[0];
|
|
1977
|
+
for (; c !== void 0; ) {
|
|
1978
|
+
if (o === c.index) {
|
|
1979
|
+
let l;
|
|
1980
|
+
c.type === 2 ? l = new nn(r, r.nextSibling, this, e) : c.type === 1 ? l = new c.ctor(r, c.name, c.strings, this, e) : c.type === 6 && (l = new Fc(r, this, e)), this._$AV.push(l), c = i[++a];
|
|
1981
1981
|
}
|
|
1982
|
-
o !== (
|
|
1982
|
+
o !== (c == null ? void 0 : c.index) && (r = Ge.nextNode(), o++);
|
|
1983
1983
|
}
|
|
1984
1984
|
return Ge.currentNode = Ke, s;
|
|
1985
1985
|
}
|
|
@@ -2067,8 +2067,8 @@ class Yn {
|
|
|
2067
2067
|
if (r === void 0) e = $t(this, e, t, 0), o = !Wt(e) || e !== this._$AH && e !== Le, o && (this._$AH = e);
|
|
2068
2068
|
else {
|
|
2069
2069
|
const a = e;
|
|
2070
|
-
let
|
|
2071
|
-
for (e = r[0],
|
|
2070
|
+
let c, l;
|
|
2071
|
+
for (e = r[0], c = 0; c < r.length - 1; c++) l = $t(this, a[i + c], t, c), l === Le && (l = this._$AH[c]), o || (o = !Wt(l) || l !== this._$AH[c]), l === w ? e = w : e !== w && (e += (l ?? "") + r[c + 1]), this._$AH[c] = l;
|
|
2072
2072
|
}
|
|
2073
2073
|
o && !s && this.j(e);
|
|
2074
2074
|
}
|
|
@@ -2277,8 +2277,8 @@ const Xn = typeof window < "u" ? window : {}, ye = Xn.document || { head: {} },
|
|
|
2277
2277
|
return !1;
|
|
2278
2278
|
})(), ua = (n, e, t, i) => {
|
|
2279
2279
|
t && t.map(([s, r, o]) => {
|
|
2280
|
-
const a = eu(n, s),
|
|
2281
|
-
Q.ael(a, r,
|
|
2280
|
+
const a = eu(n, s), c = Jc(e, o), l = tu(s);
|
|
2281
|
+
Q.ael(a, r, c, l), (e.$rmListeners$ = e.$rmListeners$ || []).push(() => Q.rel(a, r, c, l));
|
|
2282
2282
|
});
|
|
2283
2283
|
}, Jc = (n, e) => (t) => {
|
|
2284
2284
|
try {
|
|
@@ -2306,12 +2306,12 @@ const Xn = typeof window < "u" ? window : {}, ye = Xn.document || { head: {} },
|
|
|
2306
2306
|
const e = n.$cmpMeta$, t = n.$hostElement$, i = e.$flags$, s = Je("attachStyles", e.$tagName$), r = iu(t.shadowRoot ? t.shadowRoot : t.getRootNode(), e, n.$modeName$);
|
|
2307
2307
|
i & 10 && (t["s-sc"] = r, t.classList.add(r + "-h"), i & 2 && t.classList.add(r + "-s")), s();
|
|
2308
2308
|
}, ha = (n, e) => "sc-" + (e && n.$flags$ & 32 ? n.$tagName$ + "-" + e : n.$tagName$), ru = (n) => Iu.map((e) => e(n)).find((e) => !!e), Zr = {}, ou = "http://www.w3.org/2000/svg", au = "http://www.w3.org/1999/xhtml", lu = (n) => n != null, ps = (n) => (n = typeof n, n === "object" || n === "function"), mt = (n, e, ...t) => {
|
|
2309
|
-
let i = null, s = null, r = null, o = !1, a = !1,
|
|
2310
|
-
const
|
|
2309
|
+
let i = null, s = null, r = null, o = !1, a = !1, c = [];
|
|
2310
|
+
const l = (p) => {
|
|
2311
2311
|
for (let d = 0; d < p.length; d++)
|
|
2312
|
-
i = p[d], Array.isArray(i) ?
|
|
2312
|
+
i = p[d], Array.isArray(i) ? l(i) : i != null && typeof i != "boolean" && ((o = typeof n != "function" && !ps(i)) && (i = String(i)), o && a ? c[c.length - 1].$text$ += i : c.push(o ? Rn(null, i) : i), a = o);
|
|
2313
2313
|
};
|
|
2314
|
-
if (
|
|
2314
|
+
if (l(t), e) {
|
|
2315
2315
|
e.key && (s = e.key), e.name && (r = e.name);
|
|
2316
2316
|
{
|
|
2317
2317
|
const p = e.className || e.class;
|
|
@@ -2319,9 +2319,9 @@ const Xn = typeof window < "u" ? window : {}, ye = Xn.document || { head: {} },
|
|
|
2319
2319
|
}
|
|
2320
2320
|
}
|
|
2321
2321
|
if (typeof n == "function")
|
|
2322
|
-
return n(e === null ? {} : e,
|
|
2322
|
+
return n(e === null ? {} : e, c, uu);
|
|
2323
2323
|
const u = Rn(n, null);
|
|
2324
|
-
return u.$attrs$ = e,
|
|
2324
|
+
return u.$attrs$ = e, c.length > 0 && (u.$children$ = c), u.$key$ = s, u.$name$ = r, u;
|
|
2325
2325
|
}, Rn = (n, e) => {
|
|
2326
2326
|
const t = {
|
|
2327
2327
|
$flags$: 0,
|
|
@@ -2352,21 +2352,21 @@ const Xn = typeof window < "u" ? window : {}, ye = Xn.document || { head: {} },
|
|
|
2352
2352
|
if (t !== i) {
|
|
2353
2353
|
let o = eo(n, e), a = e.toLowerCase();
|
|
2354
2354
|
if (e === "class") {
|
|
2355
|
-
const
|
|
2356
|
-
|
|
2355
|
+
const c = n.classList, l = Xr(t), u = Xr(i);
|
|
2356
|
+
c.remove(...l.filter((p) => p && !u.includes(p))), c.add(...u.filter((p) => p && !l.includes(p)));
|
|
2357
2357
|
} else if (e === "style") {
|
|
2358
|
-
for (const
|
|
2359
|
-
(!i || i[
|
|
2360
|
-
for (const
|
|
2361
|
-
(!t || i[
|
|
2358
|
+
for (const c in t)
|
|
2359
|
+
(!i || i[c] == null) && (c.includes("-") ? n.style.removeProperty(c) : n.style[c] = "");
|
|
2360
|
+
for (const c in i)
|
|
2361
|
+
(!t || i[c] !== t[c]) && (c.includes("-") ? n.style.setProperty(c, i[c]) : n.style[c] = i[c]);
|
|
2362
2362
|
} else if (e !== "key")
|
|
2363
2363
|
if (e === "ref")
|
|
2364
2364
|
i && i(n);
|
|
2365
2365
|
else if (!n.__lookupSetter__(e) && e[0] === "o" && e[1] === "n")
|
|
2366
2366
|
e[2] === "-" ? e = e.slice(3) : eo(Xn, a) ? e = a.slice(2) : e = a[2] + e.slice(3), t && Q.rel(n, e, t, !1), i && Q.ael(n, e, i, !1);
|
|
2367
2367
|
else {
|
|
2368
|
-
const
|
|
2369
|
-
if ((o ||
|
|
2368
|
+
const c = ps(i);
|
|
2369
|
+
if ((o || c && i !== null) && !s)
|
|
2370
2370
|
try {
|
|
2371
2371
|
if (n.tagName.includes("-"))
|
|
2372
2372
|
n[e] = i;
|
|
@@ -2376,8 +2376,8 @@ const Xn = typeof window < "u" ? window : {}, ye = Xn.document || { head: {} },
|
|
|
2376
2376
|
}
|
|
2377
2377
|
} catch {
|
|
2378
2378
|
}
|
|
2379
|
-
let
|
|
2380
|
-
a !== (a = a.replace(/^xlink\:?/, "")) && (e = a,
|
|
2379
|
+
let l = !1;
|
|
2380
|
+
a !== (a = a.replace(/^xlink\:?/, "")) && (e = a, l = !0), i == null || i === !1 ? (i !== !1 || n.getAttribute(e) === "") && (l ? n.removeAttributeNS(Wr, e) : n.removeAttribute(e)) : (!o || r & 4 || s) && !c && (i = i === !0 ? "" : i, l ? n.setAttributeNS(Wr, e, i) : n.setAttribute(e, i));
|
|
2381
2381
|
}
|
|
2382
2382
|
}
|
|
2383
2383
|
}, du = /\s/, Xr = (n) => n ? n.split(du) : [], da = (n, e, t, i) => {
|
|
@@ -2387,7 +2387,7 @@ const Xn = typeof window < "u" ? window : {}, ye = Xn.document || { head: {} },
|
|
|
2387
2387
|
for (i in o)
|
|
2388
2388
|
Qr(s, i, r[i], o[i], t, e.$flags$);
|
|
2389
2389
|
}, In = (n, e, t, i) => {
|
|
2390
|
-
let s = e.$children$[t], r = 0, o, a,
|
|
2390
|
+
let s = e.$children$[t], r = 0, o, a, c;
|
|
2391
2391
|
if (la || (ds = !0, s.$tag$ === "slot" && (pt && i.classList.add(pt + "-s"), s.$flags$ |= s.$children$ ? (
|
|
2392
2392
|
// slot element has fallback content
|
|
2393
2393
|
2
|
|
@@ -2404,7 +2404,7 @@ const Xn = typeof window < "u" ? window : {}, ye = Xn.document || { head: {} },
|
|
|
2404
2404
|
a = In(n, s, r, o), a && o.appendChild(a);
|
|
2405
2405
|
s.$tag$ === "svg" ? ne = !1 : o.tagName === "foreignObject" && (ne = !0);
|
|
2406
2406
|
}
|
|
2407
|
-
return o["s-hn"] = Qn, s.$flags$ & 3 && (o["s-sr"] = !0, o["s-cr"] = aa, o["s-sn"] = s.$name$ || "",
|
|
2407
|
+
return o["s-hn"] = Qn, s.$flags$ & 3 && (o["s-sr"] = !0, o["s-cr"] = aa, o["s-sn"] = s.$name$ || "", c = n && n.$children$ && n.$children$[t], c && c.$tag$ === s.$tag$ && n.$elm$ && Gt(n.$elm$, !1)), o;
|
|
2408
2408
|
}, Gt = (n, e) => {
|
|
2409
2409
|
Q.$flags$ |= 1;
|
|
2410
2410
|
const t = n.childNodes;
|
|
@@ -2421,33 +2421,33 @@ const Xn = typeof window < "u" ? window : {}, ye = Xn.document || { head: {} },
|
|
|
2421
2421
|
for (; e <= t; ++e)
|
|
2422
2422
|
(i = n[e]) && (s = i.$elm$, ba(i), Ln = !0, s["s-ol"] ? s["s-ol"].remove() : Gt(s, !0), s.remove());
|
|
2423
2423
|
}, pu = (n, e, t, i) => {
|
|
2424
|
-
let s = 0, r = 0, o = 0, a = 0,
|
|
2425
|
-
for (; s <=
|
|
2426
|
-
if (
|
|
2427
|
-
|
|
2424
|
+
let s = 0, r = 0, o = 0, a = 0, c = e.length - 1, l = e[0], u = e[c], p = i.length - 1, d = i[0], g = i[p], m, $;
|
|
2425
|
+
for (; s <= c && r <= p; )
|
|
2426
|
+
if (l == null)
|
|
2427
|
+
l = e[++s];
|
|
2428
2428
|
else if (u == null)
|
|
2429
|
-
u = e[--
|
|
2429
|
+
u = e[--c];
|
|
2430
2430
|
else if (d == null)
|
|
2431
2431
|
d = i[++r];
|
|
2432
2432
|
else if (g == null)
|
|
2433
2433
|
g = i[--p];
|
|
2434
|
-
else if (vn(
|
|
2435
|
-
ft(
|
|
2434
|
+
else if (vn(l, d))
|
|
2435
|
+
ft(l, d), l = e[++s], d = i[++r];
|
|
2436
2436
|
else if (vn(u, g))
|
|
2437
|
-
ft(u, g), u = e[--
|
|
2438
|
-
else if (vn(
|
|
2439
|
-
(
|
|
2437
|
+
ft(u, g), u = e[--c], g = i[--p];
|
|
2438
|
+
else if (vn(l, g))
|
|
2439
|
+
(l.$tag$ === "slot" || g.$tag$ === "slot") && Gt(l.$elm$.parentNode, !1), ft(l, g), n.insertBefore(l.$elm$, u.$elm$.nextSibling), l = e[++s], g = i[--p];
|
|
2440
2440
|
else if (vn(u, d))
|
|
2441
|
-
(
|
|
2441
|
+
(l.$tag$ === "slot" || g.$tag$ === "slot") && Gt(u.$elm$.parentNode, !1), ft(u, d), n.insertBefore(u.$elm$, l.$elm$), u = e[--c], d = i[++r];
|
|
2442
2442
|
else {
|
|
2443
|
-
for (o = -1, a = s; a <=
|
|
2443
|
+
for (o = -1, a = s; a <= c; ++a)
|
|
2444
2444
|
if (e[a] && e[a].$key$ !== null && e[a].$key$ === d.$key$) {
|
|
2445
2445
|
o = a;
|
|
2446
2446
|
break;
|
|
2447
2447
|
}
|
|
2448
|
-
o >= 0 ? ($ = e[o], $.$tag$ !== d.$tag$ ? m = In(e && e[r], t, o, n) : (ft($, d), e[o] = void 0, m = $.$elm$), d = i[++r]) : (m = In(e && e[r], t, r, n), d = i[++r]), m && ga(
|
|
2448
|
+
o >= 0 ? ($ = e[o], $.$tag$ !== d.$tag$ ? m = In(e && e[r], t, o, n) : (ft($, d), e[o] = void 0, m = $.$elm$), d = i[++r]) : (m = In(e && e[r], t, r, n), d = i[++r]), m && ga(l.$elm$).insertBefore(m, gs(l.$elm$));
|
|
2449
2449
|
}
|
|
2450
|
-
s >
|
|
2450
|
+
s > c ? pa(n, i[p + 1] == null ? null : i[p + 1].$elm$, t, i, r, p) : r > p && fa(e, s, c);
|
|
2451
2451
|
}, vn = (n, e) => n.$tag$ === e.$tag$ ? n.$tag$ === "slot" ? n.$name$ === e.$name$ : n.$key$ === e.$key$ : !1, gs = (n) => n && n["s-ol"] || n, ga = (n) => (n["s-ol"] ? n["s-ol"] : n).parentNode, ft = (n, e) => {
|
|
2452
2452
|
const t = e.$elm$ = n.$elm$, i = n.$children$, s = e.$children$, r = e.$tag$, o = e.$text$;
|
|
2453
2453
|
let a;
|
|
@@ -2471,9 +2471,9 @@ const Xn = typeof window < "u" ? window : {}, ye = Xn.document || { head: {} },
|
|
|
2471
2471
|
ma(t);
|
|
2472
2472
|
}
|
|
2473
2473
|
}, he = [], va = (n) => {
|
|
2474
|
-
let e, t, i, s, r, o, a = 0,
|
|
2475
|
-
for (; a <
|
|
2476
|
-
if (e =
|
|
2474
|
+
let e, t, i, s, r, o, a = 0, c = n.childNodes, l = c.length;
|
|
2475
|
+
for (; a < l; a++) {
|
|
2476
|
+
if (e = c[a], e["s-sr"] && (t = e["s-cr"]) && t.parentNode)
|
|
2477
2477
|
for (i = t.parentNode.childNodes, s = e["s-sn"], o = i.length - 1; o >= 0; o--)
|
|
2478
2478
|
t = i[o], !t["s-cn"] && !t["s-nr"] && t["s-hn"] !== e["s-hn"] && (Kr(t, s) ? (r = he.find((u) => u.$nodeToRelocate$ === t), Ln = !0, t["s-sn"] = t["s-sn"] || s, r ? r.$slotRefNode$ = e : he.push({
|
|
2479
2479
|
$slotRefNode$: e,
|
|
@@ -2493,17 +2493,17 @@ const Xn = typeof window < "u" ? window : {}, ye = Xn.document || { head: {} },
|
|
|
2493
2493
|
{
|
|
2494
2494
|
if (Q.$flags$ |= 1, ds) {
|
|
2495
2495
|
va(r.$elm$);
|
|
2496
|
-
let o, a,
|
|
2496
|
+
let o, a, c, l, u, p, d = 0;
|
|
2497
2497
|
for (; d < he.length; d++)
|
|
2498
|
-
o = he[d], a = o.$nodeToRelocate$, a["s-ol"] || (
|
|
2498
|
+
o = he[d], a = o.$nodeToRelocate$, a["s-ol"] || (c = ye.createTextNode(""), c["s-nr"] = a, a.parentNode.insertBefore(a["s-ol"] = c, a));
|
|
2499
2499
|
for (d = 0; d < he.length; d++)
|
|
2500
2500
|
if (o = he[d], a = o.$nodeToRelocate$, o.$slotRefNode$) {
|
|
2501
|
-
for (
|
|
2502
|
-
if (p =
|
|
2501
|
+
for (l = o.$slotRefNode$.parentNode, u = o.$slotRefNode$.nextSibling, c = a["s-ol"]; c = c.previousSibling; )
|
|
2502
|
+
if (p = c["s-nr"], p && p["s-sn"] === a["s-sn"] && l === p.parentNode && (p = p.nextSibling, !p || !p["s-nr"])) {
|
|
2503
2503
|
u = p;
|
|
2504
2504
|
break;
|
|
2505
2505
|
}
|
|
2506
|
-
(!u &&
|
|
2506
|
+
(!u && l !== a.parentNode || a.nextSibling !== u) && a !== u && (!a["s-hn"] && a["s-ol"] && (a["s-hn"] = a["s-ol"].parentNode.nodeName), l.insertBefore(a, u));
|
|
2507
2507
|
} else
|
|
2508
2508
|
a.nodeType === 1 && (a.hidden = !0);
|
|
2509
2509
|
}
|
|
@@ -2550,24 +2550,24 @@ const Xn = typeof window < "u" ? window : {}, ye = Xn.document || { head: {} },
|
|
|
2550
2550
|
sn(i);
|
|
2551
2551
|
}
|
|
2552
2552
|
}, Jr = (n, e) => n && n.then ? n.then(e) : e(), ku = (n, e) => n != null && !ps(n) ? e & 4 ? n === "false" ? !1 : n === "" || !!n : e & 2 ? parseFloat(n) : e & 1 ? String(n) : n : n, Su = (n, e) => Kn(n).$instanceValues$.get(e), Cu = (n, e, t, i) => {
|
|
2553
|
-
const s = Kn(n), r = n, o = s.$instanceValues$.get(e), a = s.$flags$,
|
|
2553
|
+
const s = Kn(n), r = n, o = s.$instanceValues$.get(e), a = s.$flags$, c = r;
|
|
2554
2554
|
t = ku(t, i.$members$[e][0]);
|
|
2555
|
-
const
|
|
2556
|
-
if (t !== o && !
|
|
2555
|
+
const l = Number.isNaN(o) && Number.isNaN(t);
|
|
2556
|
+
if (t !== o && !l) {
|
|
2557
2557
|
s.$instanceValues$.set(e, t);
|
|
2558
2558
|
{
|
|
2559
2559
|
if (i.$watchers$ && a & 128) {
|
|
2560
2560
|
const p = i.$watchers$[e];
|
|
2561
2561
|
p && p.map((d) => {
|
|
2562
2562
|
try {
|
|
2563
|
-
|
|
2563
|
+
c[d](t, o, e);
|
|
2564
2564
|
} catch (g) {
|
|
2565
2565
|
sn(g, r);
|
|
2566
2566
|
}
|
|
2567
2567
|
});
|
|
2568
2568
|
}
|
|
2569
2569
|
if ((a & 18) === 2) {
|
|
2570
|
-
if (
|
|
2570
|
+
if (c.componentShouldUpdate && c.componentShouldUpdate(t, o, e) === !1)
|
|
2571
2571
|
return;
|
|
2572
2572
|
ya(s, !1);
|
|
2573
2573
|
}
|
|
@@ -2591,21 +2591,21 @@ const Xn = typeof window < "u" ? window : {}, ye = Xn.document || { head: {} },
|
|
|
2591
2591
|
});
|
|
2592
2592
|
{
|
|
2593
2593
|
const r = /* @__PURE__ */ new Map();
|
|
2594
|
-
s.attributeChangedCallback = function(o, a,
|
|
2594
|
+
s.attributeChangedCallback = function(o, a, c) {
|
|
2595
2595
|
Q.jmp(() => {
|
|
2596
|
-
const
|
|
2597
|
-
if (this.hasOwnProperty(
|
|
2598
|
-
|
|
2599
|
-
else if (s.hasOwnProperty(
|
|
2596
|
+
const l = r.get(o);
|
|
2597
|
+
if (this.hasOwnProperty(l))
|
|
2598
|
+
c = this[l], delete this[l];
|
|
2599
|
+
else if (s.hasOwnProperty(l) && typeof this[l] == "number" && this[l] == c)
|
|
2600
2600
|
return;
|
|
2601
|
-
this[
|
|
2601
|
+
this[l] = c === null && typeof this[l] == "boolean" ? !1 : c;
|
|
2602
2602
|
});
|
|
2603
2603
|
}, n.observedAttributes = i.filter(
|
|
2604
2604
|
([o, a]) => a[0] & 15
|
|
2605
2605
|
/* HasAttribute */
|
|
2606
2606
|
).map(([o, a]) => {
|
|
2607
|
-
const
|
|
2608
|
-
return r.set(
|
|
2607
|
+
const c = a[1] || o;
|
|
2608
|
+
return r.set(c, o), a[0] & 512 && e.$attrsToReflect$.push([o, c]), c;
|
|
2609
2609
|
});
|
|
2610
2610
|
}
|
|
2611
2611
|
}
|
|
@@ -2616,8 +2616,8 @@ const Xn = typeof window < "u" ? window : {}, ye = Xn.document || { head: {} },
|
|
|
2616
2616
|
typeof o != "string" && (o = o[e.$modeName$ = ru(n)]);
|
|
2617
2617
|
const a = ha(t, e.$modeName$);
|
|
2618
2618
|
if (!Pn.has(a)) {
|
|
2619
|
-
const
|
|
2620
|
-
nu(a, o, !!(t.$flags$ & 1)),
|
|
2619
|
+
const c = Je("registerStyles", t.$tagName$);
|
|
2620
|
+
nu(a, o, !!(t.$flags$ & 1)), c();
|
|
2621
2621
|
}
|
|
2622
2622
|
}
|
|
2623
2623
|
e.$ancestorComponent$, ya(e, !0);
|
|
@@ -2806,8 +2806,8 @@ const Zu = { attribute: !0, type: String, converter: Tn, reflect: !1, hasChanged
|
|
|
2806
2806
|
if (r === void 0 && globalThis.litPropertyMetadata.set(s, r = /* @__PURE__ */ new Map()), i === "setter" && ((n = Object.create(n)).wrapped = !0), r.set(t.name, n), i === "accessor") {
|
|
2807
2807
|
const { name: o } = t;
|
|
2808
2808
|
return { set(a) {
|
|
2809
|
-
const
|
|
2810
|
-
e.set.call(this, a), this.requestUpdate(o,
|
|
2809
|
+
const c = e.get.call(this);
|
|
2810
|
+
e.set.call(this, a), this.requestUpdate(o, c, n);
|
|
2811
2811
|
}, init(a) {
|
|
2812
2812
|
return a !== void 0 && this.C(o, void 0, n, a), a;
|
|
2813
2813
|
} };
|
|
@@ -2815,8 +2815,8 @@ const Zu = { attribute: !0, type: String, converter: Tn, reflect: !1, hasChanged
|
|
|
2815
2815
|
if (i === "setter") {
|
|
2816
2816
|
const { name: o } = t;
|
|
2817
2817
|
return function(a) {
|
|
2818
|
-
const
|
|
2819
|
-
e.call(this, a), this.requestUpdate(o,
|
|
2818
|
+
const c = this[o];
|
|
2819
|
+
e.call(this, a), this.requestUpdate(o, c, n);
|
|
2820
2820
|
};
|
|
2821
2821
|
}
|
|
2822
2822
|
throw Error("Unsupported decorator location: " + i);
|
|
@@ -3119,7 +3119,7 @@ class lh extends Ca {
|
|
|
3119
3119
|
if (r) {
|
|
3120
3120
|
Si.delete(this.options.inId);
|
|
3121
3121
|
const { from: o, to: a } = this.N(r, s, t);
|
|
3122
|
-
e = this.calculateKeyframes(o, a), e = this.options.in ? [{ ...this.options.in[0], ...e[0] }, ...this.options.in.slice(1), e[1]] : e, io++, e.forEach(((
|
|
3122
|
+
e = this.calculateKeyframes(o, a), e = this.options.in ? [{ ...this.options.in[0], ...e[0] }, ...this.options.in.slice(1), e[1]] : e, io++, e.forEach(((c) => c.zIndex = io));
|
|
3123
3123
|
} else this.options.in && (e = [...this.options.in, {}]);
|
|
3124
3124
|
}
|
|
3125
3125
|
this.animate(e, i);
|
|
@@ -3189,14 +3189,14 @@ class lh extends Ca {
|
|
|
3189
3189
|
const s = {}, r = {};
|
|
3190
3190
|
let o = !1;
|
|
3191
3191
|
const a = {};
|
|
3192
|
-
for (const
|
|
3193
|
-
const
|
|
3194
|
-
if (
|
|
3195
|
-
const p = Ci[
|
|
3196
|
-
if (
|
|
3197
|
-
const d = p(
|
|
3198
|
-
d.transform !== void 0 && (a[
|
|
3199
|
-
} else
|
|
3192
|
+
for (const c in t) {
|
|
3193
|
+
const l = e[c], u = t[c];
|
|
3194
|
+
if (c in Ci) {
|
|
3195
|
+
const p = Ci[c];
|
|
3196
|
+
if (l === void 0 || u === void 0) continue;
|
|
3197
|
+
const d = p(l, u);
|
|
3198
|
+
d.transform !== void 0 && (a[c] = d.value, o = !0, s.transform = `${s.transform ?? ""} ${d.transform}`, d.overrideFrom !== void 0 && Object.assign(s, d.overrideFrom));
|
|
3199
|
+
} else l !== u && l !== void 0 && u !== void 0 && (o = !0, s[c] = l, r[c] = u);
|
|
3200
3200
|
}
|
|
3201
3201
|
return s.transformOrigin = r.transformOrigin = i ? "center center" : "top left", this.animatingProperties = a, o ? [s, r] : void 0;
|
|
3202
3202
|
}
|
|
@@ -3226,7 +3226,7 @@ class lh extends Ca {
|
|
|
3226
3226
|
const qi = on(lh), Se = (n, e, t) => {
|
|
3227
3227
|
n && t.style.setProperty(e, n);
|
|
3228
3228
|
}, Ea = (n, e) => {
|
|
3229
|
-
var t, i, s, r, o, a,
|
|
3229
|
+
var t, i, s, r, o, a, c, l, u;
|
|
3230
3230
|
Se((t = n.colors) == null ? void 0 : t.primaryBackground, "--primary-background", e), Se(
|
|
3231
3231
|
(i = n.colors) == null ? void 0 : i.textOnPrimaryBackground,
|
|
3232
3232
|
"--text-on-primary-background",
|
|
@@ -3248,11 +3248,11 @@ const qi = on(lh), Se = (n, e, t) => {
|
|
|
3248
3248
|
"--text-on-destructive-color",
|
|
3249
3249
|
e
|
|
3250
3250
|
), Se(
|
|
3251
|
-
(
|
|
3251
|
+
(c = n.colors) == null ? void 0 : c.interactivePrimaryBackground,
|
|
3252
3252
|
"--interactive-primary-background",
|
|
3253
3253
|
e
|
|
3254
3254
|
), Se(
|
|
3255
|
-
(
|
|
3255
|
+
(l = n.colors) == null ? void 0 : l.interactiveTextOnPrimaryBackground,
|
|
3256
3256
|
"--interactive-text-on-primary-background",
|
|
3257
3257
|
e
|
|
3258
3258
|
), Se((u = n.colors) == null ? void 0 : u.focusColor, "--focus-color", e);
|
|
@@ -3302,11 +3302,11 @@ const Rs = class Rs extends _ {
|
|
|
3302
3302
|
(e = this.application) != null && e.settings && Ea(this.application.settings.branding, this);
|
|
3303
3303
|
}
|
|
3304
3304
|
async _renderSymbol() {
|
|
3305
|
-
var a,
|
|
3306
|
-
const e = (a = this.application) == null ? void 0 : a.branding(), t = (
|
|
3305
|
+
var a, c, l;
|
|
3306
|
+
const e = (a = this.application) == null ? void 0 : a.branding(), t = (c = e == null ? void 0 : e.graphics) == null ? void 0 : c.trigger;
|
|
3307
3307
|
if (t)
|
|
3308
3308
|
return y` <img src=${t} class="trigger-icon" alt="" /> `;
|
|
3309
|
-
const i = (
|
|
3309
|
+
const i = (l = this.application) == null ? void 0 : l.triggerIcon;
|
|
3310
3310
|
if (!i)
|
|
3311
3311
|
return w;
|
|
3312
3312
|
const s = async (u) => Zc, { type: r, content: o } = i;
|
|
@@ -3730,7 +3730,7 @@ let ph = class extends Event {
|
|
|
3730
3730
|
}, this.onProviderRequest = (o) => {
|
|
3731
3731
|
if (o.context !== this.context || (o.contextTarget ?? o.composedPath()[0]) === this.host) return;
|
|
3732
3732
|
const a = /* @__PURE__ */ new Set();
|
|
3733
|
-
for (const [
|
|
3733
|
+
for (const [c, { consumerHost: l }] of this.subscriptions) a.has(c) || (a.add(c), l.dispatchEvent(new Aa(this.context, l, c, !0)));
|
|
3734
3734
|
o.stopPropagation();
|
|
3735
3735
|
}, this.host = e, t.context !== void 0 ? this.context = t.context : this.context = t, this.attachListeners(), (r = (s = this.host).addController) == null || r.call(s, this);
|
|
3736
3736
|
}
|
|
@@ -4086,17 +4086,17 @@ class vh {
|
|
|
4086
4086
|
class po {
|
|
4087
4087
|
constructor(e, t, i, s, r) {
|
|
4088
4088
|
this.id = e, this.providerKey = t, this.providerOptions = i, this.component = r, this.provider$ = new de(null), this.entries$ = new de([]), this.removeEntryAction$ = new P(), this.kill$ = new P(), this.isTyping$ = new de(!1), this.data$ = new de({}), this.complete$ = this.provider$.pipe(
|
|
4089
|
-
Oe((
|
|
4089
|
+
Oe((c) => c ? c.onComplete() : tt)
|
|
4090
4090
|
);
|
|
4091
4091
|
const o = this._getProviderFactory(t);
|
|
4092
4092
|
if (!o)
|
|
4093
4093
|
throw new Error(`No provider with key "${t}" was found.`);
|
|
4094
4094
|
this.data$.next(s);
|
|
4095
4095
|
const a = o(this.component);
|
|
4096
|
-
this.provider$.next(a), a.actions().pipe(z(this.kill$)).subscribe((
|
|
4097
|
-
this.write(
|
|
4098
|
-
}), a.isTyping().pipe(z(this.kill$)).subscribe((
|
|
4099
|
-
this.isTyping$.next(
|
|
4096
|
+
this.provider$.next(a), a.actions().pipe(z(this.kill$)).subscribe((c) => {
|
|
4097
|
+
this.write(c);
|
|
4098
|
+
}), a.isTyping().pipe(z(this.kill$)).subscribe((c) => {
|
|
4099
|
+
this.isTyping$.next(c);
|
|
4100
4100
|
});
|
|
4101
4101
|
}
|
|
4102
4102
|
start() {
|
|
@@ -4273,7 +4273,7 @@ class yh {
|
|
|
4273
4273
|
_n(([s, r]) => r.filter((o) => o.id !== s.id))
|
|
4274
4274
|
), i = e.entries().pipe(
|
|
4275
4275
|
_n((s) => {
|
|
4276
|
-
const r = this.entries$.value, o = s.filter((a) => r.findIndex((
|
|
4276
|
+
const r = this.entries$.value, o = s.filter((a) => r.findIndex((c) => c.id === a.id) === -1);
|
|
4277
4277
|
return [...r, ...o];
|
|
4278
4278
|
})
|
|
4279
4279
|
);
|
|
@@ -4916,13 +4916,13 @@ function Ua() {
|
|
|
4916
4916
|
DocumentFragment: r,
|
|
4917
4917
|
HTMLTemplateElement: o,
|
|
4918
4918
|
Node: a,
|
|
4919
|
-
Element:
|
|
4920
|
-
NodeFilter:
|
|
4919
|
+
Element: c,
|
|
4920
|
+
NodeFilter: l,
|
|
4921
4921
|
NamedNodeMap: u = n.NamedNodeMap || n.MozNamedAttrMap,
|
|
4922
4922
|
HTMLFormElement: p,
|
|
4923
4923
|
DOMParser: d,
|
|
4924
4924
|
trustedTypes: g
|
|
4925
|
-
} = n, m =
|
|
4925
|
+
} = n, m = c.prototype, $ = Mt(m, "cloneNode"), $e = Mt(m, "remove"), ce = Mt(m, "nextSibling"), Pe = Mt(m, "childNodes"), He = Mt(m, "parentNode");
|
|
4926
4926
|
if (typeof o == "function") {
|
|
4927
4927
|
const b = t.createElement("template");
|
|
4928
4928
|
b.content && b.content.ownerDocument && (t = b.content.ownerDocument);
|
|
@@ -5073,7 +5073,7 @@ function Ua() {
|
|
|
5073
5073
|
h.ownerDocument || h,
|
|
5074
5074
|
h,
|
|
5075
5075
|
// eslint-disable-next-line no-bitwise
|
|
5076
|
-
|
|
5076
|
+
l.SHOW_ELEMENT | l.SHOW_COMMENT | l.SHOW_TEXT | l.SHOW_PROCESSING_INSTRUCTION | l.SHOW_CDATA_SECTION,
|
|
5077
5077
|
null
|
|
5078
5078
|
);
|
|
5079
5079
|
}, fi = function(h) {
|
|
@@ -5111,7 +5111,7 @@ function Ua() {
|
|
|
5111
5111
|
}
|
|
5112
5112
|
return fe(h), !0;
|
|
5113
5113
|
}
|
|
5114
|
-
return h instanceof
|
|
5114
|
+
return h instanceof c && !pl(h) || (v === "noscript" || v === "noembed" || v === "noframes") && G(/<\/no(script|embed|frames)/i, h.innerHTML) ? (fe(h), !0) : (st && h.nodeType === Ut.text && (f = h.textContent, bn([ni, ii, si], (L) => {
|
|
5115
5115
|
f = It(f, L, " ");
|
|
5116
5116
|
}), h.textContent !== f && (Rt(e.removed, {
|
|
5117
5117
|
element: h.cloneNode()
|
|
@@ -5534,10 +5534,10 @@ function Co(n) {
|
|
|
5534
5534
|
}
|
|
5535
5535
|
function Eo(n, e) {
|
|
5536
5536
|
var r;
|
|
5537
|
-
const t = n.replace(Z.findPipe, (o, a,
|
|
5538
|
-
let
|
|
5539
|
-
for (; --u >= 0 &&
|
|
5540
|
-
return
|
|
5537
|
+
const t = n.replace(Z.findPipe, (o, a, c) => {
|
|
5538
|
+
let l = !1, u = a;
|
|
5539
|
+
for (; --u >= 0 && c[u] === "\\"; ) l = !l;
|
|
5540
|
+
return l ? "|" : " |";
|
|
5541
5541
|
}), i = t.split(Z.splitPipe);
|
|
5542
5542
|
let s = 0;
|
|
5543
5543
|
if (i[0].trim() || i.shift(), i.length > 0 && !((r = i.at(-1)) != null && r.trim()) && i.pop(), e)
|
|
@@ -5574,7 +5574,7 @@ function Ad(n, e) {
|
|
|
5574
5574
|
function _o(n, e, t, i, s) {
|
|
5575
5575
|
const r = e.href, o = e.title || null, a = n[1].replace(s.other.outputLinkReplace, "$1");
|
|
5576
5576
|
i.state.inLink = !0;
|
|
5577
|
-
const
|
|
5577
|
+
const c = {
|
|
5578
5578
|
type: n[0].charAt(0) === "!" ? "image" : "link",
|
|
5579
5579
|
raw: t,
|
|
5580
5580
|
href: r,
|
|
@@ -5582,7 +5582,7 @@ function _o(n, e, t, i, s) {
|
|
|
5582
5582
|
text: a,
|
|
5583
5583
|
tokens: i.inlineTokens(a)
|
|
5584
5584
|
};
|
|
5585
|
-
return i.state.inLink = !1,
|
|
5585
|
+
return i.state.inLink = !1, c;
|
|
5586
5586
|
}
|
|
5587
5587
|
function Td(n, e, t) {
|
|
5588
5588
|
const i = n.match(t.other.indentCodeCompensation);
|
|
@@ -5677,20 +5677,20 @@ var Hn = class {
|
|
|
5677
5677
|
for (; t.length > 0; ) {
|
|
5678
5678
|
let o = !1;
|
|
5679
5679
|
const a = [];
|
|
5680
|
-
let
|
|
5681
|
-
for (
|
|
5682
|
-
if (this.rules.other.blockquoteStart.test(t[
|
|
5683
|
-
a.push(t[
|
|
5680
|
+
let c;
|
|
5681
|
+
for (c = 0; c < t.length; c++)
|
|
5682
|
+
if (this.rules.other.blockquoteStart.test(t[c]))
|
|
5683
|
+
a.push(t[c]), o = !0;
|
|
5684
5684
|
else if (!o)
|
|
5685
|
-
a.push(t[
|
|
5685
|
+
a.push(t[c]);
|
|
5686
5686
|
else
|
|
5687
5687
|
break;
|
|
5688
|
-
t = t.slice(
|
|
5689
|
-
const
|
|
5690
|
-
`), u =
|
|
5688
|
+
t = t.slice(c);
|
|
5689
|
+
const l = a.join(`
|
|
5690
|
+
`), u = l.replace(this.rules.other.blockquoteSetextReplace, `
|
|
5691
5691
|
$1`).replace(this.rules.other.blockquoteSetextReplace2, "");
|
|
5692
5692
|
i = i ? `${i}
|
|
5693
|
-
${
|
|
5693
|
+
${l}` : l, s = s ? `${s}
|
|
5694
5694
|
${u}` : u;
|
|
5695
5695
|
const p = this.lexer.state.top;
|
|
5696
5696
|
if (this.lexer.state.top = !0, this.lexer.blockTokens(u, r, !0), this.lexer.state.top = p, t.length === 0)
|
|
@@ -5737,15 +5737,15 @@ ${u}` : u;
|
|
|
5737
5737
|
const r = this.rules.other.listItemRegex(t);
|
|
5738
5738
|
let o = !1;
|
|
5739
5739
|
for (; n; ) {
|
|
5740
|
-
let
|
|
5740
|
+
let c = !1, l = "", u = "";
|
|
5741
5741
|
if (!(e = r.exec(n)) || this.rules.block.hr.test(n))
|
|
5742
5742
|
break;
|
|
5743
|
-
|
|
5743
|
+
l = e[0], n = n.substring(l.length);
|
|
5744
5744
|
let p = e[2].split(`
|
|
5745
5745
|
`, 1)[0].replace(this.rules.other.listReplaceTabs, (ce) => " ".repeat(3 * ce.length)), d = n.split(`
|
|
5746
5746
|
`, 1)[0], g = !p.trim(), m = 0;
|
|
5747
|
-
if (this.options.pedantic ? (m = 2, u = p.trimStart()) : g ? m = e[1].length + 1 : (m = e[2].search(this.rules.other.nonSpaceChar), m = m > 4 ? 1 : m, u = p.slice(m), m += e[1].length), g && this.rules.other.blankLine.test(d) && (
|
|
5748
|
-
`, n = n.substring(d.length + 1),
|
|
5747
|
+
if (this.options.pedantic ? (m = 2, u = p.trimStart()) : g ? m = e[1].length + 1 : (m = e[2].search(this.rules.other.nonSpaceChar), m = m > 4 ? 1 : m, u = p.slice(m), m += e[1].length), g && this.rules.other.blankLine.test(d) && (l += d + `
|
|
5748
|
+
`, n = n.substring(d.length + 1), c = !0), !c) {
|
|
5749
5749
|
const ce = this.rules.other.nextBulletRegex(m), Pe = this.rules.other.hrRegex(m), He = this.rules.other.fencesBeginRegex(m), M = this.rules.other.headingBeginRegex(m), Fe = this.rules.other.htmlBeginRegex(m);
|
|
5750
5750
|
for (; n; ) {
|
|
5751
5751
|
const je = n.split(`
|
|
@@ -5762,21 +5762,21 @@ ${u}` : u;
|
|
|
5762
5762
|
u += `
|
|
5763
5763
|
` + d;
|
|
5764
5764
|
}
|
|
5765
|
-
!g && !d.trim() && (g = !0),
|
|
5765
|
+
!g && !d.trim() && (g = !0), l += je + `
|
|
5766
5766
|
`, n = n.substring(je.length + 1), p = Be.slice(m);
|
|
5767
5767
|
}
|
|
5768
5768
|
}
|
|
5769
|
-
s.loose || (o ? s.loose = !0 : this.rules.other.doubleBlankLine.test(
|
|
5769
|
+
s.loose || (o ? s.loose = !0 : this.rules.other.doubleBlankLine.test(l) && (o = !0));
|
|
5770
5770
|
let $ = null, $e;
|
|
5771
5771
|
this.options.gfm && ($ = this.rules.other.listIsTask.exec(u), $ && ($e = $[0] !== "[ ] ", u = u.replace(this.rules.other.listReplaceTask, ""))), s.items.push({
|
|
5772
5772
|
type: "list_item",
|
|
5773
|
-
raw:
|
|
5773
|
+
raw: l,
|
|
5774
5774
|
task: !!$,
|
|
5775
5775
|
checked: $e,
|
|
5776
5776
|
loose: !1,
|
|
5777
5777
|
text: u,
|
|
5778
5778
|
tokens: []
|
|
5779
|
-
}), s.raw +=
|
|
5779
|
+
}), s.raw += l;
|
|
5780
5780
|
}
|
|
5781
5781
|
const a = s.items.at(-1);
|
|
5782
5782
|
if (a)
|
|
@@ -5784,14 +5784,14 @@ ${u}` : u;
|
|
|
5784
5784
|
else
|
|
5785
5785
|
return;
|
|
5786
5786
|
s.raw = s.raw.trimEnd();
|
|
5787
|
-
for (let
|
|
5788
|
-
if (this.lexer.state.top = !1, s.items[
|
|
5789
|
-
const
|
|
5787
|
+
for (let c = 0; c < s.items.length; c++)
|
|
5788
|
+
if (this.lexer.state.top = !1, s.items[c].tokens = this.lexer.blockTokens(s.items[c].text, []), !s.loose) {
|
|
5789
|
+
const l = s.items[c].tokens.filter((p) => p.type === "space"), u = l.length > 0 && l.some((p) => this.rules.other.anyLine.test(p.raw));
|
|
5790
5790
|
s.loose = u;
|
|
5791
5791
|
}
|
|
5792
5792
|
if (s.loose)
|
|
5793
|
-
for (let
|
|
5794
|
-
s.items[
|
|
5793
|
+
for (let c = 0; c < s.items.length; c++)
|
|
5794
|
+
s.items[c].loose = !0;
|
|
5795
5795
|
return s;
|
|
5796
5796
|
}
|
|
5797
5797
|
}
|
|
@@ -5843,11 +5843,11 @@ ${u}` : u;
|
|
|
5843
5843
|
align: r.align[a]
|
|
5844
5844
|
});
|
|
5845
5845
|
for (const a of s)
|
|
5846
|
-
r.rows.push(Eo(a, r.header.length).map((
|
|
5847
|
-
text:
|
|
5848
|
-
tokens: this.lexer.inline(
|
|
5846
|
+
r.rows.push(Eo(a, r.header.length).map((c, l) => ({
|
|
5847
|
+
text: c,
|
|
5848
|
+
tokens: this.lexer.inline(c),
|
|
5849
5849
|
header: !1,
|
|
5850
|
-
align: r.align[
|
|
5850
|
+
align: r.align[l]
|
|
5851
5851
|
})));
|
|
5852
5852
|
return r;
|
|
5853
5853
|
}
|
|
@@ -5958,19 +5958,19 @@ ${u}` : u;
|
|
|
5958
5958
|
if (!i || i[3] && t.match(this.rules.other.unicodeAlphaNumeric)) return;
|
|
5959
5959
|
if (!(i[1] || i[2] || "") || !t || this.rules.inline.punctuation.exec(t)) {
|
|
5960
5960
|
const r = [...i[0]].length - 1;
|
|
5961
|
-
let o, a,
|
|
5961
|
+
let o, a, c = r, l = 0;
|
|
5962
5962
|
const u = i[0][0] === "*" ? this.rules.inline.emStrongRDelimAst : this.rules.inline.emStrongRDelimUnd;
|
|
5963
5963
|
for (u.lastIndex = 0, e = e.slice(-1 * n.length + r); (i = u.exec(e)) != null; ) {
|
|
5964
5964
|
if (o = i[1] || i[2] || i[3] || i[4] || i[5] || i[6], !o) continue;
|
|
5965
5965
|
if (a = [...o].length, i[3] || i[4]) {
|
|
5966
|
-
|
|
5966
|
+
c += a;
|
|
5967
5967
|
continue;
|
|
5968
5968
|
} else if ((i[5] || i[6]) && r % 3 && !((r + a) % 3)) {
|
|
5969
|
-
|
|
5969
|
+
l += a;
|
|
5970
5970
|
continue;
|
|
5971
5971
|
}
|
|
5972
|
-
if (
|
|
5973
|
-
a = Math.min(a, a +
|
|
5972
|
+
if (c -= a, c > 0) continue;
|
|
5973
|
+
a = Math.min(a, a + c + l);
|
|
5974
5974
|
const p = [...i[0]][0].length, d = n.slice(0, r + i.index + p + a);
|
|
5975
5975
|
if (Math.min(r, a) % 2) {
|
|
5976
5976
|
const m = d.slice(1, -1);
|
|
@@ -6137,21 +6137,21 @@ ${u}` : u;
|
|
|
6137
6137
|
var s, r, o;
|
|
6138
6138
|
for (this.options.pedantic && (e = e.replace(Z.tabCharGlobal, " ").replace(Z.spaceLine, "")); e; ) {
|
|
6139
6139
|
let a;
|
|
6140
|
-
if ((r = (s = this.options.extensions) == null ? void 0 : s.block) != null && r.some((
|
|
6140
|
+
if ((r = (s = this.options.extensions) == null ? void 0 : s.block) != null && r.some((l) => (a = l.call({ lexer: this }, e, t)) ? (e = e.substring(a.raw.length), t.push(a), !0) : !1))
|
|
6141
6141
|
continue;
|
|
6142
6142
|
if (a = this.tokenizer.space(e)) {
|
|
6143
6143
|
e = e.substring(a.raw.length);
|
|
6144
|
-
const
|
|
6145
|
-
a.raw.length === 1 &&
|
|
6144
|
+
const l = t.at(-1);
|
|
6145
|
+
a.raw.length === 1 && l !== void 0 ? l.raw += `
|
|
6146
6146
|
` : t.push(a);
|
|
6147
6147
|
continue;
|
|
6148
6148
|
}
|
|
6149
6149
|
if (a = this.tokenizer.code(e)) {
|
|
6150
6150
|
e = e.substring(a.raw.length);
|
|
6151
|
-
const
|
|
6152
|
-
(
|
|
6153
|
-
` + a.raw,
|
|
6154
|
-
` + a.text, this.inlineQueue.at(-1).src =
|
|
6151
|
+
const l = t.at(-1);
|
|
6152
|
+
(l == null ? void 0 : l.type) === "paragraph" || (l == null ? void 0 : l.type) === "text" ? (l.raw += `
|
|
6153
|
+
` + a.raw, l.text += `
|
|
6154
|
+
` + a.text, this.inlineQueue.at(-1).src = l.text) : t.push(a);
|
|
6155
6155
|
continue;
|
|
6156
6156
|
}
|
|
6157
6157
|
if (a = this.tokenizer.fences(e)) {
|
|
@@ -6180,10 +6180,10 @@ ${u}` : u;
|
|
|
6180
6180
|
}
|
|
6181
6181
|
if (a = this.tokenizer.def(e)) {
|
|
6182
6182
|
e = e.substring(a.raw.length);
|
|
6183
|
-
const
|
|
6184
|
-
(
|
|
6185
|
-
` + a.raw,
|
|
6186
|
-
` + a.raw, this.inlineQueue.at(-1).src =
|
|
6183
|
+
const l = t.at(-1);
|
|
6184
|
+
(l == null ? void 0 : l.type) === "paragraph" || (l == null ? void 0 : l.type) === "text" ? (l.raw += `
|
|
6185
|
+
` + a.raw, l.text += `
|
|
6186
|
+
` + a.raw, this.inlineQueue.at(-1).src = l.text) : this.tokens.links[a.tag] || (this.tokens.links[a.tag] = {
|
|
6187
6187
|
href: a.href,
|
|
6188
6188
|
title: a.title
|
|
6189
6189
|
});
|
|
@@ -6197,37 +6197,37 @@ ${u}` : u;
|
|
|
6197
6197
|
e = e.substring(a.raw.length), t.push(a);
|
|
6198
6198
|
continue;
|
|
6199
6199
|
}
|
|
6200
|
-
let
|
|
6200
|
+
let c = e;
|
|
6201
6201
|
if ((o = this.options.extensions) != null && o.startBlock) {
|
|
6202
|
-
let
|
|
6202
|
+
let l = 1 / 0;
|
|
6203
6203
|
const u = e.slice(1);
|
|
6204
6204
|
let p;
|
|
6205
6205
|
this.options.extensions.startBlock.forEach((d) => {
|
|
6206
|
-
p = d.call({ lexer: this }, u), typeof p == "number" && p >= 0 && (
|
|
6207
|
-
}),
|
|
6208
|
-
}
|
|
6209
|
-
if (this.state.top && (a = this.tokenizer.paragraph(
|
|
6210
|
-
const
|
|
6211
|
-
i && (
|
|
6212
|
-
` + a.raw,
|
|
6213
|
-
` + a.text, this.inlineQueue.pop(), this.inlineQueue.at(-1).src =
|
|
6206
|
+
p = d.call({ lexer: this }, u), typeof p == "number" && p >= 0 && (l = Math.min(l, p));
|
|
6207
|
+
}), l < 1 / 0 && l >= 0 && (c = e.substring(0, l + 1));
|
|
6208
|
+
}
|
|
6209
|
+
if (this.state.top && (a = this.tokenizer.paragraph(c))) {
|
|
6210
|
+
const l = t.at(-1);
|
|
6211
|
+
i && (l == null ? void 0 : l.type) === "paragraph" ? (l.raw += `
|
|
6212
|
+
` + a.raw, l.text += `
|
|
6213
|
+
` + a.text, this.inlineQueue.pop(), this.inlineQueue.at(-1).src = l.text) : t.push(a), i = c.length !== e.length, e = e.substring(a.raw.length);
|
|
6214
6214
|
continue;
|
|
6215
6215
|
}
|
|
6216
6216
|
if (a = this.tokenizer.text(e)) {
|
|
6217
6217
|
e = e.substring(a.raw.length);
|
|
6218
|
-
const
|
|
6219
|
-
(
|
|
6220
|
-
` + a.raw,
|
|
6221
|
-
` + a.text, this.inlineQueue.pop(), this.inlineQueue.at(-1).src =
|
|
6218
|
+
const l = t.at(-1);
|
|
6219
|
+
(l == null ? void 0 : l.type) === "text" ? (l.raw += `
|
|
6220
|
+
` + a.raw, l.text += `
|
|
6221
|
+
` + a.text, this.inlineQueue.pop(), this.inlineQueue.at(-1).src = l.text) : t.push(a);
|
|
6222
6222
|
continue;
|
|
6223
6223
|
}
|
|
6224
6224
|
if (e) {
|
|
6225
|
-
const
|
|
6225
|
+
const l = "Infinite loop on byte: " + e.charCodeAt(0);
|
|
6226
6226
|
if (this.options.silent) {
|
|
6227
|
-
console.error(
|
|
6227
|
+
console.error(l);
|
|
6228
6228
|
break;
|
|
6229
6229
|
} else
|
|
6230
|
-
throw new Error(
|
|
6230
|
+
throw new Error(l);
|
|
6231
6231
|
}
|
|
6232
6232
|
}
|
|
6233
6233
|
return this.state.top = !0, t;
|
|
@@ -6239,7 +6239,7 @@ ${u}` : u;
|
|
|
6239
6239
|
* Lexing/Compiling
|
|
6240
6240
|
*/
|
|
6241
6241
|
inlineTokens(e, t = []) {
|
|
6242
|
-
var a,
|
|
6242
|
+
var a, c, l;
|
|
6243
6243
|
let i = e, s = null;
|
|
6244
6244
|
if (this.tokens.links) {
|
|
6245
6245
|
const u = Object.keys(this.tokens.links);
|
|
@@ -6255,7 +6255,7 @@ ${u}` : u;
|
|
|
6255
6255
|
for (; e; ) {
|
|
6256
6256
|
r || (o = ""), r = !1;
|
|
6257
6257
|
let u;
|
|
6258
|
-
if ((
|
|
6258
|
+
if ((c = (a = this.options.extensions) == null ? void 0 : a.inline) != null && c.some((d) => (u = d.call({ lexer: this }, e, t)) ? (e = e.substring(u.raw.length), t.push(u), !0) : !1))
|
|
6259
6259
|
continue;
|
|
6260
6260
|
if (u = this.tokenizer.escape(e)) {
|
|
6261
6261
|
e = e.substring(u.raw.length), t.push(u);
|
|
@@ -6300,7 +6300,7 @@ ${u}` : u;
|
|
|
6300
6300
|
continue;
|
|
6301
6301
|
}
|
|
6302
6302
|
let p = e;
|
|
6303
|
-
if ((
|
|
6303
|
+
if ((l = this.options.extensions) != null && l.startInline) {
|
|
6304
6304
|
let d = 1 / 0;
|
|
6305
6305
|
const g = e.slice(1);
|
|
6306
6306
|
let m;
|
|
@@ -6517,55 +6517,55 @@ ${n}</tr>
|
|
|
6517
6517
|
for (let o = 0; o < e.length; o++) {
|
|
6518
6518
|
const a = e[o];
|
|
6519
6519
|
if ((r = (s = this.options.extensions) == null ? void 0 : s.renderers) != null && r[a.type]) {
|
|
6520
|
-
const
|
|
6521
|
-
if (u !== !1 || !["space", "hr", "heading", "code", "table", "blockquote", "list", "html", "paragraph", "text"].includes(
|
|
6520
|
+
const l = a, u = this.options.extensions.renderers[l.type].call({ parser: this }, l);
|
|
6521
|
+
if (u !== !1 || !["space", "hr", "heading", "code", "table", "blockquote", "list", "html", "paragraph", "text"].includes(l.type)) {
|
|
6522
6522
|
i += u || "";
|
|
6523
6523
|
continue;
|
|
6524
6524
|
}
|
|
6525
6525
|
}
|
|
6526
|
-
const
|
|
6527
|
-
switch (
|
|
6526
|
+
const c = a;
|
|
6527
|
+
switch (c.type) {
|
|
6528
6528
|
case "space": {
|
|
6529
|
-
i += this.renderer.space(
|
|
6529
|
+
i += this.renderer.space(c);
|
|
6530
6530
|
continue;
|
|
6531
6531
|
}
|
|
6532
6532
|
case "hr": {
|
|
6533
|
-
i += this.renderer.hr(
|
|
6533
|
+
i += this.renderer.hr(c);
|
|
6534
6534
|
continue;
|
|
6535
6535
|
}
|
|
6536
6536
|
case "heading": {
|
|
6537
|
-
i += this.renderer.heading(
|
|
6537
|
+
i += this.renderer.heading(c);
|
|
6538
6538
|
continue;
|
|
6539
6539
|
}
|
|
6540
6540
|
case "code": {
|
|
6541
|
-
i += this.renderer.code(
|
|
6541
|
+
i += this.renderer.code(c);
|
|
6542
6542
|
continue;
|
|
6543
6543
|
}
|
|
6544
6544
|
case "table": {
|
|
6545
|
-
i += this.renderer.table(
|
|
6545
|
+
i += this.renderer.table(c);
|
|
6546
6546
|
continue;
|
|
6547
6547
|
}
|
|
6548
6548
|
case "blockquote": {
|
|
6549
|
-
i += this.renderer.blockquote(
|
|
6549
|
+
i += this.renderer.blockquote(c);
|
|
6550
6550
|
continue;
|
|
6551
6551
|
}
|
|
6552
6552
|
case "list": {
|
|
6553
|
-
i += this.renderer.list(
|
|
6553
|
+
i += this.renderer.list(c);
|
|
6554
6554
|
continue;
|
|
6555
6555
|
}
|
|
6556
6556
|
case "html": {
|
|
6557
|
-
i += this.renderer.html(
|
|
6557
|
+
i += this.renderer.html(c);
|
|
6558
6558
|
continue;
|
|
6559
6559
|
}
|
|
6560
6560
|
case "paragraph": {
|
|
6561
|
-
i += this.renderer.paragraph(
|
|
6561
|
+
i += this.renderer.paragraph(c);
|
|
6562
6562
|
continue;
|
|
6563
6563
|
}
|
|
6564
6564
|
case "text": {
|
|
6565
|
-
let
|
|
6565
|
+
let l = c, u = this.renderer.text(l);
|
|
6566
6566
|
for (; o + 1 < e.length && e[o + 1].type === "text"; )
|
|
6567
|
-
|
|
6568
|
-
` + this.renderer.text(
|
|
6567
|
+
l = e[++o], u += `
|
|
6568
|
+
` + this.renderer.text(l);
|
|
6569
6569
|
t ? i += this.renderer.paragraph({
|
|
6570
6570
|
type: "paragraph",
|
|
6571
6571
|
raw: u,
|
|
@@ -6575,10 +6575,10 @@ ${n}</tr>
|
|
|
6575
6575
|
continue;
|
|
6576
6576
|
}
|
|
6577
6577
|
default: {
|
|
6578
|
-
const
|
|
6578
|
+
const l = 'Token with "' + c.type + '" type was not found.';
|
|
6579
6579
|
if (this.options.silent)
|
|
6580
|
-
return console.error(
|
|
6581
|
-
throw new Error(
|
|
6580
|
+
return console.error(l), "";
|
|
6581
|
+
throw new Error(l);
|
|
6582
6582
|
}
|
|
6583
6583
|
}
|
|
6584
6584
|
}
|
|
@@ -6593,59 +6593,59 @@ ${n}</tr>
|
|
|
6593
6593
|
for (let o = 0; o < e.length; o++) {
|
|
6594
6594
|
const a = e[o];
|
|
6595
6595
|
if ((r = (s = this.options.extensions) == null ? void 0 : s.renderers) != null && r[a.type]) {
|
|
6596
|
-
const
|
|
6597
|
-
if (
|
|
6598
|
-
i +=
|
|
6596
|
+
const l = this.options.extensions.renderers[a.type].call({ parser: this }, a);
|
|
6597
|
+
if (l !== !1 || !["escape", "html", "link", "image", "strong", "em", "codespan", "br", "del", "text"].includes(a.type)) {
|
|
6598
|
+
i += l || "";
|
|
6599
6599
|
continue;
|
|
6600
6600
|
}
|
|
6601
6601
|
}
|
|
6602
|
-
const
|
|
6603
|
-
switch (
|
|
6602
|
+
const c = a;
|
|
6603
|
+
switch (c.type) {
|
|
6604
6604
|
case "escape": {
|
|
6605
|
-
i += t.text(
|
|
6605
|
+
i += t.text(c);
|
|
6606
6606
|
break;
|
|
6607
6607
|
}
|
|
6608
6608
|
case "html": {
|
|
6609
|
-
i += t.html(
|
|
6609
|
+
i += t.html(c);
|
|
6610
6610
|
break;
|
|
6611
6611
|
}
|
|
6612
6612
|
case "link": {
|
|
6613
|
-
i += t.link(
|
|
6613
|
+
i += t.link(c);
|
|
6614
6614
|
break;
|
|
6615
6615
|
}
|
|
6616
6616
|
case "image": {
|
|
6617
|
-
i += t.image(
|
|
6617
|
+
i += t.image(c);
|
|
6618
6618
|
break;
|
|
6619
6619
|
}
|
|
6620
6620
|
case "strong": {
|
|
6621
|
-
i += t.strong(
|
|
6621
|
+
i += t.strong(c);
|
|
6622
6622
|
break;
|
|
6623
6623
|
}
|
|
6624
6624
|
case "em": {
|
|
6625
|
-
i += t.em(
|
|
6625
|
+
i += t.em(c);
|
|
6626
6626
|
break;
|
|
6627
6627
|
}
|
|
6628
6628
|
case "codespan": {
|
|
6629
|
-
i += t.codespan(
|
|
6629
|
+
i += t.codespan(c);
|
|
6630
6630
|
break;
|
|
6631
6631
|
}
|
|
6632
6632
|
case "br": {
|
|
6633
|
-
i += t.br(
|
|
6633
|
+
i += t.br(c);
|
|
6634
6634
|
break;
|
|
6635
6635
|
}
|
|
6636
6636
|
case "del": {
|
|
6637
|
-
i += t.del(
|
|
6637
|
+
i += t.del(c);
|
|
6638
6638
|
break;
|
|
6639
6639
|
}
|
|
6640
6640
|
case "text": {
|
|
6641
|
-
i += t.text(
|
|
6641
|
+
i += t.text(c);
|
|
6642
6642
|
break;
|
|
6643
6643
|
}
|
|
6644
6644
|
default: {
|
|
6645
|
-
const
|
|
6645
|
+
const l = 'Token with "' + c.type + '" type was not found.';
|
|
6646
6646
|
if (this.options.silent)
|
|
6647
|
-
return console.error(
|
|
6648
|
-
throw new Error(
|
|
6647
|
+
return console.error(l), "";
|
|
6648
|
+
throw new Error(l);
|
|
6649
6649
|
}
|
|
6650
6650
|
}
|
|
6651
6651
|
}
|
|
@@ -6718,8 +6718,8 @@ ${n}</tr>
|
|
|
6718
6718
|
for (const a of o.header)
|
|
6719
6719
|
t = t.concat(this.walkTokens(a.tokens, e));
|
|
6720
6720
|
for (const a of o.rows)
|
|
6721
|
-
for (const
|
|
6722
|
-
t = t.concat(this.walkTokens(
|
|
6721
|
+
for (const c of a)
|
|
6722
|
+
t = t.concat(this.walkTokens(c.tokens, e));
|
|
6723
6723
|
break;
|
|
6724
6724
|
}
|
|
6725
6725
|
case "list": {
|
|
@@ -6730,8 +6730,8 @@ ${n}</tr>
|
|
|
6730
6730
|
default: {
|
|
6731
6731
|
const o = r;
|
|
6732
6732
|
(s = (i = this.defaults.extensions) == null ? void 0 : i.childTokens) != null && s[o.type] ? this.defaults.extensions.childTokens[o.type].forEach((a) => {
|
|
6733
|
-
const
|
|
6734
|
-
t = t.concat(this.walkTokens(
|
|
6733
|
+
const c = o[a].flat(1 / 0);
|
|
6734
|
+
t = t.concat(this.walkTokens(c, e));
|
|
6735
6735
|
}) : o.tokens && (t = t.concat(this.walkTokens(o.tokens, e)));
|
|
6736
6736
|
}
|
|
6737
6737
|
}
|
|
@@ -6765,10 +6765,10 @@ ${n}</tr>
|
|
|
6765
6765
|
throw new Error(`renderer '${r}' does not exist`);
|
|
6766
6766
|
if (["options", "parser"].includes(r))
|
|
6767
6767
|
continue;
|
|
6768
|
-
const o = r, a = t.renderer[o],
|
|
6769
|
-
s[o] = (...
|
|
6770
|
-
let u = a.apply(s,
|
|
6771
|
-
return u === !1 && (u =
|
|
6768
|
+
const o = r, a = t.renderer[o], c = s[o];
|
|
6769
|
+
s[o] = (...l) => {
|
|
6770
|
+
let u = a.apply(s, l);
|
|
6771
|
+
return u === !1 && (u = c.apply(s, l)), u || "";
|
|
6772
6772
|
};
|
|
6773
6773
|
}
|
|
6774
6774
|
i.renderer = s;
|
|
@@ -6780,10 +6780,10 @@ ${n}</tr>
|
|
|
6780
6780
|
throw new Error(`tokenizer '${r}' does not exist`);
|
|
6781
6781
|
if (["options", "rules", "lexer"].includes(r))
|
|
6782
6782
|
continue;
|
|
6783
|
-
const o = r, a = t.tokenizer[o],
|
|
6784
|
-
s[o] = (...
|
|
6785
|
-
let u = a.apply(s,
|
|
6786
|
-
return u === !1 && (u =
|
|
6783
|
+
const o = r, a = t.tokenizer[o], c = s[o];
|
|
6784
|
+
s[o] = (...l) => {
|
|
6785
|
+
let u = a.apply(s, l);
|
|
6786
|
+
return u === !1 && (u = c.apply(s, l)), u;
|
|
6787
6787
|
};
|
|
6788
6788
|
}
|
|
6789
6789
|
i.tokenizer = s;
|
|
@@ -6795,15 +6795,15 @@ ${n}</tr>
|
|
|
6795
6795
|
throw new Error(`hook '${r}' does not exist`);
|
|
6796
6796
|
if (["options", "block"].includes(r))
|
|
6797
6797
|
continue;
|
|
6798
|
-
const o = r, a = t.hooks[o],
|
|
6799
|
-
Sn.passThroughHooks.has(r) ? s[o] = (
|
|
6798
|
+
const o = r, a = t.hooks[o], c = s[o];
|
|
6799
|
+
Sn.passThroughHooks.has(r) ? s[o] = (l) => {
|
|
6800
6800
|
if (this.defaults.async)
|
|
6801
|
-
return Promise.resolve(a.call(s,
|
|
6802
|
-
const u = a.call(s,
|
|
6803
|
-
return
|
|
6804
|
-
} : s[o] = (...
|
|
6805
|
-
let u = a.apply(s,
|
|
6806
|
-
return u === !1 && (u =
|
|
6801
|
+
return Promise.resolve(a.call(s, l)).then((p) => c.call(s, p));
|
|
6802
|
+
const u = a.call(s, l);
|
|
6803
|
+
return c.call(s, u);
|
|
6804
|
+
} : s[o] = (...l) => {
|
|
6805
|
+
let u = a.apply(s, l);
|
|
6806
|
+
return u === !1 && (u = c.apply(s, l)), u;
|
|
6807
6807
|
};
|
|
6808
6808
|
}
|
|
6809
6809
|
i.hooks = s;
|
|
@@ -6837,17 +6837,17 @@ ${n}</tr>
|
|
|
6837
6837
|
if (typeof t != "string")
|
|
6838
6838
|
return o(new Error("marked(): input parameter is of type " + Object.prototype.toString.call(t) + ", string expected"));
|
|
6839
6839
|
r.hooks && (r.hooks.options = r, r.hooks.block = n);
|
|
6840
|
-
const a = r.hooks ? r.hooks.provideLexer() : n ? _e.lex : _e.lexInline,
|
|
6840
|
+
const a = r.hooks ? r.hooks.provideLexer() : n ? _e.lex : _e.lexInline, c = r.hooks ? r.hooks.provideParser() : n ? Ae.parse : Ae.parseInline;
|
|
6841
6841
|
if (r.async)
|
|
6842
|
-
return Promise.resolve(r.hooks ? r.hooks.preprocess(t) : t).then((
|
|
6842
|
+
return Promise.resolve(r.hooks ? r.hooks.preprocess(t) : t).then((l) => a(l, r)).then((l) => r.hooks ? r.hooks.processAllTokens(l) : l).then((l) => r.walkTokens ? Promise.all(this.walkTokens(l, r.walkTokens)).then(() => l) : l).then((l) => c(l, r)).then((l) => r.hooks ? r.hooks.postprocess(l) : l).catch(o);
|
|
6843
6843
|
try {
|
|
6844
6844
|
r.hooks && (t = r.hooks.preprocess(t));
|
|
6845
|
-
let
|
|
6846
|
-
r.hooks && (
|
|
6847
|
-
let u = l
|
|
6845
|
+
let l = a(t, r);
|
|
6846
|
+
r.hooks && (l = r.hooks.processAllTokens(l)), r.walkTokens && this.walkTokens(l, r.walkTokens);
|
|
6847
|
+
let u = c(l, r);
|
|
6848
6848
|
return r.hooks && (u = r.hooks.postprocess(u)), u;
|
|
6849
|
-
} catch (
|
|
6850
|
-
return o(
|
|
6849
|
+
} catch (l) {
|
|
6850
|
+
return o(l);
|
|
6851
6851
|
}
|
|
6852
6852
|
};
|
|
6853
6853
|
}
|
|
@@ -8346,26 +8346,26 @@ let it = (bt = class extends _ {
|
|
|
8346
8346
|
});
|
|
8347
8347
|
}
|
|
8348
8348
|
_onStartChat(e) {
|
|
8349
|
-
if (e.preventDefault(), this.showValidationWarning = !1, this.customData.forEach((
|
|
8350
|
-
this.validateCustomDataEntry(
|
|
8349
|
+
if (e.preventDefault(), this.showValidationWarning = !1, this.customData.forEach((l) => {
|
|
8350
|
+
this.validateCustomDataEntry(l);
|
|
8351
8351
|
}), this.validationErrors.length > 0) {
|
|
8352
8352
|
this.showValidationWarning = !0;
|
|
8353
8353
|
return;
|
|
8354
8354
|
}
|
|
8355
8355
|
this.submitted = !0;
|
|
8356
8356
|
const t = this.customData.find(
|
|
8357
|
-
(
|
|
8357
|
+
(l) => l.name === "customerEmailAddress"
|
|
8358
8358
|
);
|
|
8359
8359
|
t && (this.emailController.email = t.value);
|
|
8360
8360
|
const i = this.customData.reduce(
|
|
8361
|
-
(
|
|
8361
|
+
(l, u) => (l[u.name] = u.value, l),
|
|
8362
8362
|
{}
|
|
8363
8363
|
), {
|
|
8364
8364
|
customerName: s,
|
|
8365
8365
|
customerEmailAddress: r,
|
|
8366
8366
|
visitorQuestion: o,
|
|
8367
8367
|
...a
|
|
8368
|
-
} = i,
|
|
8368
|
+
} = i, c = new CustomEvent("action", {
|
|
8369
8369
|
bubbles: !0,
|
|
8370
8370
|
composed: !0,
|
|
8371
8371
|
detail: {
|
|
@@ -8378,7 +8378,7 @@ let it = (bt = class extends _ {
|
|
|
8378
8378
|
}
|
|
8379
8379
|
}
|
|
8380
8380
|
});
|
|
8381
|
-
this.dispatchEvent(
|
|
8381
|
+
this.dispatchEvent(c);
|
|
8382
8382
|
}
|
|
8383
8383
|
_customDataValueChanged(e, t) {
|
|
8384
8384
|
this.customData = this.customData.map((i) => (i.name === t.name && (i.value = e), i));
|
|
@@ -9941,36 +9941,42 @@ gp([
|
|
|
9941
9941
|
window.customElements.get("ace-video-iframe") || window.customElements.define("ace-video-iframe", en);
|
|
9942
9942
|
class Os extends kc {
|
|
9943
9943
|
constructor(e, t) {
|
|
9944
|
-
var i, s, r, o;
|
|
9945
|
-
super(e, t), this.pendingMessages = [], this.texts = this.component.application.texts, this.headerComponent = this.component.application.getComponent("widget-header"), this.isThirdPartyParticipant = this.component.properties.chat.isThirdPartyWidget, this.agent = this.createAgent(
|
|
9946
|
-
this.
|
|
9947
|
-
|
|
9948
|
-
|
|
9949
|
-
|
|
9944
|
+
var i, s, r, o, a, c;
|
|
9945
|
+
super(e, t), this.pendingMessages = [], this.texts = this.component.application.texts, this.headerComponent = this.component.application.getComponent("widget-header"), this.isThirdPartyParticipant = this.component.properties.chat.isThirdPartyWidget, this.agent = this.createAgent(
|
|
9946
|
+
((i = this.component.application.storage.get("agentInfo")) == null ? void 0 : i.name) || ""
|
|
9947
|
+
), this.user = this.createUser(
|
|
9948
|
+
((s = this.component.application.storage.get("userInfo")) == null ? void 0 : s.name) || ""
|
|
9949
|
+
), this.params = new URLSearchParams(document.location.search), this.invitationUid = this.params.get("invitationUid"), this.customerName = this.params.get("customerName") || void 0, this.idHubUrl = "https://idhub.dev-se.telia-ck8s.com/idhub-gateway/public", this.logoutTimer = null, this.disconnected$ = new P(), this.agentUsername = null, this.conversationOption = null, this._conversationOptions = {}, this.sessionId = null, this.contactId = null, this.errand = null, this.entrance = null, this.guestId = null, this.chatOverlayActive = !1, this.inVideoCall = !1, this.onQueueStatusReceived = (l) => {
|
|
9950
|
+
this.setQueueStatus(l.text || null);
|
|
9951
|
+
}, this.onEstablished = (l) => {
|
|
9952
|
+
this.contactId = l.contactId, this.errand = l.errand, this.entrance = l.entrance, this.agentUsername = l.agentUsername;
|
|
9953
|
+
const u = {
|
|
9950
9954
|
contactId: this.contactId,
|
|
9951
9955
|
errand: this.errand,
|
|
9952
9956
|
entrance: this.entrance,
|
|
9953
9957
|
agentUsername: this.agentUsername
|
|
9954
9958
|
};
|
|
9955
9959
|
this.save({
|
|
9956
|
-
survey:
|
|
9957
|
-
}), this.setQueueStatus(null), this.agent.name =
|
|
9960
|
+
survey: u
|
|
9961
|
+
}), this.setQueueStatus(null), this.agent.name = l.agentAlias, this.component.application.storage.set("agentInfo", {
|
|
9962
|
+
name: this.agent.name
|
|
9963
|
+
}), l.videoEnded && this.removeVideo();
|
|
9958
9964
|
}, this.onPrepareVideo = () => {
|
|
9959
9965
|
this.showVideoConfirmDialog();
|
|
9960
|
-
}, this.onVideoPrepared = (
|
|
9961
|
-
this.showVideoIFrame(
|
|
9962
|
-
}, this.onChatButtonClicked = (
|
|
9963
|
-
this.showChatOverVideo(
|
|
9964
|
-
}, this.onEndVideoButtonClicked = (
|
|
9965
|
-
this.guestId && (
|
|
9966
|
-
}, this.onPenStatusChange = (
|
|
9967
|
-
|
|
9968
|
-
}, this.onChatEnded = async (
|
|
9969
|
-
var
|
|
9970
|
-
this.shouldUseAuth && this.logoutUser(), this.setToastMessage(null), this.setTypingState(!1), this.videoConfirmDialogEntry && this.videoConfirmDialogEntry.remove(), this.component.disableInput(),
|
|
9971
|
-
const
|
|
9972
|
-
(
|
|
9973
|
-
}, this.properties = t.properties, this.shouldUseAuth = (
|
|
9966
|
+
}, this.onVideoPrepared = (l) => {
|
|
9967
|
+
this.showVideoIFrame(l.userUrl);
|
|
9968
|
+
}, this.onChatButtonClicked = (l) => {
|
|
9969
|
+
this.showChatOverVideo(l.guestId);
|
|
9970
|
+
}, this.onEndVideoButtonClicked = (l) => {
|
|
9971
|
+
this.guestId && (l == null ? void 0 : l.guestId) === this.guestId && this.removeVideo();
|
|
9972
|
+
}, this.onPenStatusChange = (l) => {
|
|
9973
|
+
l.penStatus === "on" ? this.setTypingState(!0) : this.setTypingState(!1);
|
|
9974
|
+
}, this.onChatEnded = async (l) => {
|
|
9975
|
+
var p, d;
|
|
9976
|
+
this.shouldUseAuth && this.logoutUser(), this.setToastMessage(null), this.setTypingState(!1), this.videoConfirmDialogEntry && this.videoConfirmDialogEntry.remove(), this.component.disableInput(), l.showForm && this.showConversationEndedForm();
|
|
9977
|
+
const u = this.component.application.settings;
|
|
9978
|
+
(p = u == null ? void 0 : u.survey) != null && p.shouldUseSurvey && ((d = u == null ? void 0 : u.survey) != null && d.surveyBaseUrl) && this.showSurvey(), this.isThirdPartyParticipant ? this.removeHeaderOptions() : this.setStartNewChatOption(), this.complete();
|
|
9979
|
+
}, this.properties = t.properties, this.shouldUseAuth = (o = (r = this.component.application.settings) == null ? void 0 : r.auth) == null ? void 0 : o.shouldUseAuth, this.idHubEidType = (c = (a = this.component.application.settings) == null ? void 0 : a.auth) == null ? void 0 : c.idHubEidType.toLowerCase();
|
|
9974
9980
|
}
|
|
9975
9981
|
// =============================
|
|
9976
9982
|
// LIFECYCLE METHODS (overrides)
|
|
@@ -10237,15 +10243,15 @@ class Os extends kc {
|
|
|
10237
10243
|
} else if (e.status === H.Authenticated) {
|
|
10238
10244
|
const o = Zd(
|
|
10239
10245
|
((t = e == null ? void 0 : e.idhubEIDToken) == null ? void 0 : t.split(".")[1]) ?? ""
|
|
10240
|
-
), a = JSON.parse(o),
|
|
10241
|
-
if (typeof
|
|
10242
|
-
const u =
|
|
10246
|
+
), a = JSON.parse(o), c = ((s = (i = a == null ? void 0 : a.completionData) == null ? void 0 : i.user) == null ? void 0 : s.name) ?? "", l = a == null ? void 0 : a.exp;
|
|
10247
|
+
if (typeof l == "number" && l > 0) {
|
|
10248
|
+
const u = l * 1e3 - Date.now();
|
|
10243
10249
|
u <= 0 ? this.logoutUser() : (this.logoutTimer && clearTimeout(this.logoutTimer), this.logoutTimer = setTimeout(() => {
|
|
10244
10250
|
this.logoutUser();
|
|
10245
10251
|
}, u));
|
|
10246
10252
|
}
|
|
10247
|
-
this.headerComponent.userName =
|
|
10248
|
-
name:
|
|
10253
|
+
this.headerComponent.userName = c, this.headerComponent.authState = ee.Authenticated, this.component.application.storage.set("auth", {
|
|
10254
|
+
name: c,
|
|
10249
10255
|
authenticated: !0
|
|
10250
10256
|
}), this.component.setAuthenticationBannerStatus(ee.Authenticated), (r = this.authenticationCardEntry) == null || r.remove(), this.handleWelcomeForm(
|
|
10251
10257
|
this.engine.config,
|
|
@@ -10351,7 +10357,9 @@ class Os extends kc {
|
|
|
10351
10357
|
W((t) => t.key === "submitted"),
|
|
10352
10358
|
me(1)
|
|
10353
10359
|
).subscribe((t) => {
|
|
10354
|
-
e.remove(), this.user.name = t.data.name, this.
|
|
10360
|
+
e.remove(), this.user.name = t.data.name, this.component.application.storage.set("userInfo", {
|
|
10361
|
+
name: this.user.name
|
|
10362
|
+
}), this.startChat({
|
|
10355
10363
|
customerName: t.data.name,
|
|
10356
10364
|
customerEmailAddress: t.data.email,
|
|
10357
10365
|
visitorQuestion: t.data.question,
|