@telia-ace/widget-components-copyright-flamingo 1.1.81-rc.0 → 1.1.81-rc.1
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/copyright-C6lijIr-.js +497 -0
- package/{copyright-c7453ffe.mjs → copyright-DA60KPU6.mjs} +625 -658
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/package.json +2 -2
- package/copyright-115583b5.js +0 -497
- package/index.d.ts +0 -2
|
@@ -1,68 +1,61 @@
|
|
|
1
|
-
var
|
|
2
|
-
return
|
|
1
|
+
var dt = function(s, t) {
|
|
2
|
+
return dt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, i) {
|
|
3
3
|
e.__proto__ = i;
|
|
4
4
|
} || function(e, i) {
|
|
5
|
-
for (var r in i)
|
|
6
|
-
|
|
7
|
-
}, lt(s, t);
|
|
5
|
+
for (var r in i) Object.prototype.hasOwnProperty.call(i, r) && (e[r] = i[r]);
|
|
6
|
+
}, dt(s, t);
|
|
8
7
|
};
|
|
9
|
-
function
|
|
8
|
+
function z(s, t) {
|
|
10
9
|
if (typeof t != "function" && t !== null)
|
|
11
10
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
12
|
-
|
|
11
|
+
dt(s, t);
|
|
13
12
|
function e() {
|
|
14
13
|
this.constructor = s;
|
|
15
14
|
}
|
|
16
15
|
s.prototype = t === null ? Object.create(t) : (e.prototype = t.prototype, new e());
|
|
17
16
|
}
|
|
18
|
-
function
|
|
17
|
+
function pt(s) {
|
|
19
18
|
var t = typeof Symbol == "function" && Symbol.iterator, e = t && s[t], i = 0;
|
|
20
|
-
if (e)
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
}
|
|
27
|
-
};
|
|
19
|
+
if (e) return e.call(s);
|
|
20
|
+
if (s && typeof s.length == "number") return {
|
|
21
|
+
next: function() {
|
|
22
|
+
return s && i >= s.length && (s = void 0), { value: s && s[i++], done: !s };
|
|
23
|
+
}
|
|
24
|
+
};
|
|
28
25
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
29
26
|
}
|
|
30
|
-
function
|
|
27
|
+
function ut(s, t) {
|
|
31
28
|
var e = typeof Symbol == "function" && s[Symbol.iterator];
|
|
32
|
-
if (!e)
|
|
33
|
-
|
|
34
|
-
var i = e.call(s), r, o = [], n;
|
|
29
|
+
if (!e) return s;
|
|
30
|
+
var i = e.call(s), r, n = [], o;
|
|
35
31
|
try {
|
|
36
|
-
for (; (t === void 0 || t-- > 0) && !(r = i.next()).done; )
|
|
37
|
-
o.push(r.value);
|
|
32
|
+
for (; (t === void 0 || t-- > 0) && !(r = i.next()).done; ) n.push(r.value);
|
|
38
33
|
} catch (a) {
|
|
39
|
-
|
|
34
|
+
o = { error: a };
|
|
40
35
|
} finally {
|
|
41
36
|
try {
|
|
42
37
|
r && !r.done && (e = i.return) && e.call(i);
|
|
43
38
|
} finally {
|
|
44
|
-
if (
|
|
45
|
-
throw n.error;
|
|
39
|
+
if (o) throw o.error;
|
|
46
40
|
}
|
|
47
41
|
}
|
|
48
|
-
return
|
|
42
|
+
return n;
|
|
49
43
|
}
|
|
50
|
-
function
|
|
51
|
-
if (e || arguments.length === 2)
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
return s.concat(o || Array.prototype.slice.call(t));
|
|
44
|
+
function ft(s, t, e) {
|
|
45
|
+
if (e || arguments.length === 2) for (var i = 0, r = t.length, n; i < r; i++)
|
|
46
|
+
(n || !(i in t)) && (n || (n = Array.prototype.slice.call(t, 0, i)), n[i] = t[i]);
|
|
47
|
+
return s.concat(n || Array.prototype.slice.call(t));
|
|
55
48
|
}
|
|
56
49
|
function b(s) {
|
|
57
50
|
return typeof s == "function";
|
|
58
51
|
}
|
|
59
|
-
function
|
|
52
|
+
function oe(s) {
|
|
60
53
|
var t = function(i) {
|
|
61
54
|
Error.call(i), i.stack = new Error().stack;
|
|
62
55
|
}, e = s(t);
|
|
63
56
|
return e.prototype = Object.create(Error.prototype), e.prototype.constructor = e, e;
|
|
64
57
|
}
|
|
65
|
-
var
|
|
58
|
+
var it = oe(function(s) {
|
|
66
59
|
return function(e) {
|
|
67
60
|
s(this), this.message = e ? e.length + ` errors occurred during unsubscription:
|
|
68
61
|
` + e.map(function(i, r) {
|
|
@@ -71,27 +64,27 @@ var tt = Gt(function(s) {
|
|
|
71
64
|
`) : "", this.name = "UnsubscriptionError", this.errors = e;
|
|
72
65
|
};
|
|
73
66
|
});
|
|
74
|
-
function
|
|
67
|
+
function gt(s, t) {
|
|
75
68
|
if (s) {
|
|
76
69
|
var e = s.indexOf(t);
|
|
77
70
|
0 <= e && s.splice(e, 1);
|
|
78
71
|
}
|
|
79
72
|
}
|
|
80
|
-
var
|
|
73
|
+
var tt = function() {
|
|
81
74
|
function s(t) {
|
|
82
75
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
83
76
|
}
|
|
84
77
|
return s.prototype.unsubscribe = function() {
|
|
85
|
-
var t, e, i, r,
|
|
78
|
+
var t, e, i, r, n;
|
|
86
79
|
if (!this.closed) {
|
|
87
80
|
this.closed = !0;
|
|
88
|
-
var
|
|
89
|
-
if (
|
|
90
|
-
if (this._parentage = null, Array.isArray(
|
|
81
|
+
var o = this._parentage;
|
|
82
|
+
if (o)
|
|
83
|
+
if (this._parentage = null, Array.isArray(o))
|
|
91
84
|
try {
|
|
92
|
-
for (var a =
|
|
93
|
-
var
|
|
94
|
-
|
|
85
|
+
for (var a = pt(o), c = a.next(); !c.done; c = a.next()) {
|
|
86
|
+
var h = c.value;
|
|
87
|
+
h.remove(this);
|
|
95
88
|
}
|
|
96
89
|
} catch (v) {
|
|
97
90
|
t = { error: v };
|
|
@@ -99,29 +92,28 @@ var J = function() {
|
|
|
99
92
|
try {
|
|
100
93
|
c && !c.done && (e = a.return) && e.call(a);
|
|
101
94
|
} finally {
|
|
102
|
-
if (t)
|
|
103
|
-
throw t.error;
|
|
95
|
+
if (t) throw t.error;
|
|
104
96
|
}
|
|
105
97
|
}
|
|
106
98
|
else
|
|
107
|
-
|
|
108
|
-
var
|
|
109
|
-
if (b(
|
|
99
|
+
o.remove(this);
|
|
100
|
+
var l = this.initialTeardown;
|
|
101
|
+
if (b(l))
|
|
110
102
|
try {
|
|
111
|
-
|
|
103
|
+
l();
|
|
112
104
|
} catch (v) {
|
|
113
|
-
|
|
105
|
+
n = v instanceof it ? v.errors : [v];
|
|
114
106
|
}
|
|
115
|
-
var
|
|
116
|
-
if (
|
|
107
|
+
var d = this._finalizers;
|
|
108
|
+
if (d) {
|
|
117
109
|
this._finalizers = null;
|
|
118
110
|
try {
|
|
119
|
-
for (var u =
|
|
120
|
-
var
|
|
111
|
+
for (var u = pt(d), f = u.next(); !f.done; f = u.next()) {
|
|
112
|
+
var O = f.value;
|
|
121
113
|
try {
|
|
122
|
-
|
|
114
|
+
Ht(O);
|
|
123
115
|
} catch (v) {
|
|
124
|
-
|
|
116
|
+
n = n ?? [], v instanceof it ? n = ft(ft([], ut(n)), ut(v.errors)) : n.push(v);
|
|
125
117
|
}
|
|
126
118
|
}
|
|
127
119
|
} catch (v) {
|
|
@@ -130,19 +122,18 @@ var J = function() {
|
|
|
130
122
|
try {
|
|
131
123
|
f && !f.done && (r = u.return) && r.call(u);
|
|
132
124
|
} finally {
|
|
133
|
-
if (i)
|
|
134
|
-
throw i.error;
|
|
125
|
+
if (i) throw i.error;
|
|
135
126
|
}
|
|
136
127
|
}
|
|
137
128
|
}
|
|
138
|
-
if (
|
|
139
|
-
throw new
|
|
129
|
+
if (n)
|
|
130
|
+
throw new it(n);
|
|
140
131
|
}
|
|
141
132
|
}, s.prototype.add = function(t) {
|
|
142
133
|
var e;
|
|
143
134
|
if (t && t !== this)
|
|
144
135
|
if (this.closed)
|
|
145
|
-
|
|
136
|
+
Ht(t);
|
|
146
137
|
else {
|
|
147
138
|
if (t instanceof s) {
|
|
148
139
|
if (t.closed || t._hasParent(this))
|
|
@@ -159,58 +150,56 @@ var J = function() {
|
|
|
159
150
|
this._parentage = Array.isArray(e) ? (e.push(t), e) : e ? [e, t] : t;
|
|
160
151
|
}, s.prototype._removeParent = function(t) {
|
|
161
152
|
var e = this._parentage;
|
|
162
|
-
e === t ? this._parentage = null : Array.isArray(e) &&
|
|
153
|
+
e === t ? this._parentage = null : Array.isArray(e) && gt(e, t);
|
|
163
154
|
}, s.prototype.remove = function(t) {
|
|
164
155
|
var e = this._finalizers;
|
|
165
|
-
e &&
|
|
156
|
+
e && gt(e, t), t instanceof s && t._removeParent(this);
|
|
166
157
|
}, s.EMPTY = function() {
|
|
167
158
|
var t = new s();
|
|
168
159
|
return t.closed = !0, t;
|
|
169
160
|
}(), s;
|
|
170
|
-
}(),
|
|
171
|
-
function
|
|
172
|
-
return s instanceof
|
|
161
|
+
}(), ae = tt.EMPTY;
|
|
162
|
+
function ce(s) {
|
|
163
|
+
return s instanceof tt || s && "closed" in s && b(s.remove) && b(s.add) && b(s.unsubscribe);
|
|
173
164
|
}
|
|
174
|
-
function
|
|
165
|
+
function Ht(s) {
|
|
175
166
|
b(s) ? s() : s.unsubscribe();
|
|
176
167
|
}
|
|
177
|
-
var
|
|
168
|
+
var he = {
|
|
178
169
|
onUnhandledError: null,
|
|
179
170
|
onStoppedNotification: null,
|
|
180
171
|
Promise: void 0,
|
|
181
172
|
useDeprecatedSynchronousErrorHandling: !1,
|
|
182
173
|
useDeprecatedNextContext: !1
|
|
183
|
-
},
|
|
174
|
+
}, xe = {
|
|
184
175
|
setTimeout: function(s, t) {
|
|
185
176
|
for (var e = [], i = 2; i < arguments.length; i++)
|
|
186
177
|
e[i - 2] = arguments[i];
|
|
187
|
-
|
|
188
|
-
return r != null && r.setTimeout ? r.setTimeout.apply(r, q([s, t], Z(e))) : setTimeout.apply(void 0, q([s, t], Z(e)));
|
|
178
|
+
return setTimeout.apply(void 0, ft([s, t], ut(e)));
|
|
189
179
|
},
|
|
190
180
|
clearTimeout: function(s) {
|
|
191
|
-
|
|
192
|
-
return ((t == null ? void 0 : t.clearTimeout) || clearTimeout)(s);
|
|
181
|
+
return clearTimeout(s);
|
|
193
182
|
},
|
|
194
183
|
delegate: void 0
|
|
195
184
|
};
|
|
196
|
-
function
|
|
197
|
-
|
|
185
|
+
function Ee(s) {
|
|
186
|
+
xe.setTimeout(function() {
|
|
198
187
|
throw s;
|
|
199
188
|
});
|
|
200
189
|
}
|
|
201
|
-
function
|
|
190
|
+
function Ut() {
|
|
202
191
|
}
|
|
203
|
-
function
|
|
192
|
+
function Z(s) {
|
|
204
193
|
s();
|
|
205
194
|
}
|
|
206
|
-
var
|
|
207
|
-
|
|
195
|
+
var le = function(s) {
|
|
196
|
+
z(t, s);
|
|
208
197
|
function t(e) {
|
|
209
198
|
var i = s.call(this) || this;
|
|
210
|
-
return i.isStopped = !1, e ? (i.destination = e,
|
|
199
|
+
return i.isStopped = !1, e ? (i.destination = e, ce(e) && e.add(i)) : i.destination = Oe, i;
|
|
211
200
|
}
|
|
212
201
|
return t.create = function(e, i, r) {
|
|
213
|
-
return new
|
|
202
|
+
return new vt(e, i, r);
|
|
214
203
|
}, t.prototype.next = function(e) {
|
|
215
204
|
this.isStopped || this._next(e);
|
|
216
205
|
}, t.prototype.error = function(e) {
|
|
@@ -234,11 +223,11 @@ var te = function(s) {
|
|
|
234
223
|
this.unsubscribe();
|
|
235
224
|
}
|
|
236
225
|
}, t;
|
|
237
|
-
}(
|
|
238
|
-
function
|
|
239
|
-
return
|
|
226
|
+
}(tt), Se = Function.prototype.bind;
|
|
227
|
+
function st(s, t) {
|
|
228
|
+
return Se.call(s, t);
|
|
240
229
|
}
|
|
241
|
-
var
|
|
230
|
+
var Pe = function() {
|
|
242
231
|
function s(t) {
|
|
243
232
|
this.partialObserver = t;
|
|
244
233
|
}
|
|
@@ -248,7 +237,7 @@ var be = function() {
|
|
|
248
237
|
try {
|
|
249
238
|
e.next(t);
|
|
250
239
|
} catch (i) {
|
|
251
|
-
|
|
240
|
+
Y(i);
|
|
252
241
|
}
|
|
253
242
|
}, s.prototype.error = function(t) {
|
|
254
243
|
var e = this.partialObserver;
|
|
@@ -256,68 +245,68 @@ var be = function() {
|
|
|
256
245
|
try {
|
|
257
246
|
e.error(t);
|
|
258
247
|
} catch (i) {
|
|
259
|
-
|
|
248
|
+
Y(i);
|
|
260
249
|
}
|
|
261
250
|
else
|
|
262
|
-
|
|
251
|
+
Y(t);
|
|
263
252
|
}, s.prototype.complete = function() {
|
|
264
253
|
var t = this.partialObserver;
|
|
265
254
|
if (t.complete)
|
|
266
255
|
try {
|
|
267
256
|
t.complete();
|
|
268
257
|
} catch (e) {
|
|
269
|
-
|
|
258
|
+
Y(e);
|
|
270
259
|
}
|
|
271
260
|
}, s;
|
|
272
|
-
}(),
|
|
273
|
-
|
|
261
|
+
}(), vt = function(s) {
|
|
262
|
+
z(t, s);
|
|
274
263
|
function t(e, i, r) {
|
|
275
|
-
var
|
|
264
|
+
var n = s.call(this) || this, o;
|
|
276
265
|
if (b(e) || !e)
|
|
277
|
-
|
|
266
|
+
o = {
|
|
278
267
|
next: e ?? void 0,
|
|
279
268
|
error: i ?? void 0,
|
|
280
269
|
complete: r ?? void 0
|
|
281
270
|
};
|
|
282
271
|
else {
|
|
283
272
|
var a;
|
|
284
|
-
|
|
285
|
-
return
|
|
286
|
-
},
|
|
287
|
-
next: e.next &&
|
|
288
|
-
error: e.error &&
|
|
289
|
-
complete: e.complete &&
|
|
290
|
-
}) :
|
|
273
|
+
n && he.useDeprecatedNextContext ? (a = Object.create(e), a.unsubscribe = function() {
|
|
274
|
+
return n.unsubscribe();
|
|
275
|
+
}, o = {
|
|
276
|
+
next: e.next && st(e.next, a),
|
|
277
|
+
error: e.error && st(e.error, a),
|
|
278
|
+
complete: e.complete && st(e.complete, a)
|
|
279
|
+
}) : o = e;
|
|
291
280
|
}
|
|
292
|
-
return
|
|
281
|
+
return n.destination = new Pe(o), n;
|
|
293
282
|
}
|
|
294
283
|
return t;
|
|
295
|
-
}(
|
|
296
|
-
function
|
|
297
|
-
|
|
284
|
+
}(le);
|
|
285
|
+
function Y(s) {
|
|
286
|
+
Ee(s);
|
|
298
287
|
}
|
|
299
|
-
function
|
|
288
|
+
function ke(s) {
|
|
300
289
|
throw s;
|
|
301
290
|
}
|
|
302
|
-
var
|
|
291
|
+
var Oe = {
|
|
303
292
|
closed: !0,
|
|
304
|
-
next:
|
|
305
|
-
error:
|
|
306
|
-
complete:
|
|
307
|
-
},
|
|
293
|
+
next: Ut,
|
|
294
|
+
error: ke,
|
|
295
|
+
complete: Ut
|
|
296
|
+
}, Te = function() {
|
|
308
297
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
309
298
|
}();
|
|
310
|
-
function
|
|
299
|
+
function Me(s) {
|
|
311
300
|
return s;
|
|
312
301
|
}
|
|
313
|
-
function
|
|
314
|
-
return s.length === 0 ?
|
|
302
|
+
function He(s) {
|
|
303
|
+
return s.length === 0 ? Me : s.length === 1 ? s[0] : function(e) {
|
|
315
304
|
return s.reduce(function(i, r) {
|
|
316
305
|
return r(i);
|
|
317
306
|
}, e);
|
|
318
307
|
};
|
|
319
308
|
}
|
|
320
|
-
var
|
|
309
|
+
var Lt = function() {
|
|
321
310
|
function s(t) {
|
|
322
311
|
t && (this._subscribe = t);
|
|
323
312
|
}
|
|
@@ -325,11 +314,11 @@ var Pt = function() {
|
|
|
325
314
|
var e = new s();
|
|
326
315
|
return e.source = this, e.operator = t, e;
|
|
327
316
|
}, s.prototype.subscribe = function(t, e, i) {
|
|
328
|
-
var r = this,
|
|
329
|
-
return
|
|
330
|
-
var
|
|
331
|
-
|
|
332
|
-
}),
|
|
317
|
+
var r = this, n = Le(t) ? t : new vt(t, e, i);
|
|
318
|
+
return Z(function() {
|
|
319
|
+
var o = r, a = o.operator, c = o.source;
|
|
320
|
+
n.add(a ? a.call(n, c) : c ? r._subscribe(n) : r._trySubscribe(n));
|
|
321
|
+
}), n;
|
|
333
322
|
}, s.prototype._trySubscribe = function(t) {
|
|
334
323
|
try {
|
|
335
324
|
return this._subscribe(t);
|
|
@@ -338,97 +327,96 @@ var Pt = function() {
|
|
|
338
327
|
}
|
|
339
328
|
}, s.prototype.forEach = function(t, e) {
|
|
340
329
|
var i = this;
|
|
341
|
-
return e =
|
|
342
|
-
var
|
|
330
|
+
return e = Rt(e), new e(function(r, n) {
|
|
331
|
+
var o = new vt({
|
|
343
332
|
next: function(a) {
|
|
344
333
|
try {
|
|
345
334
|
t(a);
|
|
346
335
|
} catch (c) {
|
|
347
|
-
|
|
336
|
+
n(c), o.unsubscribe();
|
|
348
337
|
}
|
|
349
338
|
},
|
|
350
|
-
error:
|
|
339
|
+
error: n,
|
|
351
340
|
complete: r
|
|
352
341
|
});
|
|
353
|
-
i.subscribe(
|
|
342
|
+
i.subscribe(o);
|
|
354
343
|
});
|
|
355
344
|
}, s.prototype._subscribe = function(t) {
|
|
356
345
|
var e;
|
|
357
346
|
return (e = this.source) === null || e === void 0 ? void 0 : e.subscribe(t);
|
|
358
|
-
}, s.prototype[
|
|
347
|
+
}, s.prototype[Te] = function() {
|
|
359
348
|
return this;
|
|
360
349
|
}, s.prototype.pipe = function() {
|
|
361
350
|
for (var t = [], e = 0; e < arguments.length; e++)
|
|
362
351
|
t[e] = arguments[e];
|
|
363
|
-
return
|
|
352
|
+
return He(t)(this);
|
|
364
353
|
}, s.prototype.toPromise = function(t) {
|
|
365
354
|
var e = this;
|
|
366
|
-
return t =
|
|
367
|
-
var
|
|
368
|
-
e.subscribe(function(
|
|
369
|
-
return
|
|
370
|
-
}, function(
|
|
371
|
-
return r(
|
|
355
|
+
return t = Rt(t), new t(function(i, r) {
|
|
356
|
+
var n;
|
|
357
|
+
e.subscribe(function(o) {
|
|
358
|
+
return n = o;
|
|
359
|
+
}, function(o) {
|
|
360
|
+
return r(o);
|
|
372
361
|
}, function() {
|
|
373
|
-
return i(
|
|
362
|
+
return i(n);
|
|
374
363
|
});
|
|
375
364
|
});
|
|
376
365
|
}, s.create = function(t) {
|
|
377
366
|
return new s(t);
|
|
378
367
|
}, s;
|
|
379
368
|
}();
|
|
380
|
-
function
|
|
369
|
+
function Rt(s) {
|
|
381
370
|
var t;
|
|
382
|
-
return (t = s ??
|
|
371
|
+
return (t = s ?? he.Promise) !== null && t !== void 0 ? t : Promise;
|
|
383
372
|
}
|
|
384
|
-
function
|
|
373
|
+
function Ue(s) {
|
|
385
374
|
return s && b(s.next) && b(s.error) && b(s.complete);
|
|
386
375
|
}
|
|
387
|
-
function
|
|
388
|
-
return s && s instanceof
|
|
376
|
+
function Le(s) {
|
|
377
|
+
return s && s instanceof le || Ue(s) && ce(s);
|
|
389
378
|
}
|
|
390
|
-
var
|
|
379
|
+
var Re = oe(function(s) {
|
|
391
380
|
return function() {
|
|
392
381
|
s(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
393
382
|
};
|
|
394
|
-
}),
|
|
395
|
-
|
|
383
|
+
}), bt = function(s) {
|
|
384
|
+
z(t, s);
|
|
396
385
|
function t() {
|
|
397
386
|
var e = s.call(this) || this;
|
|
398
387
|
return e.closed = !1, e.currentObservers = null, e.observers = [], e.isStopped = !1, e.hasError = !1, e.thrownError = null, e;
|
|
399
388
|
}
|
|
400
389
|
return t.prototype.lift = function(e) {
|
|
401
|
-
var i = new
|
|
390
|
+
var i = new jt(this, this);
|
|
402
391
|
return i.operator = e, i;
|
|
403
392
|
}, t.prototype._throwIfClosed = function() {
|
|
404
393
|
if (this.closed)
|
|
405
|
-
throw new
|
|
394
|
+
throw new Re();
|
|
406
395
|
}, t.prototype.next = function(e) {
|
|
407
396
|
var i = this;
|
|
408
|
-
|
|
409
|
-
var r,
|
|
397
|
+
Z(function() {
|
|
398
|
+
var r, n;
|
|
410
399
|
if (i._throwIfClosed(), !i.isStopped) {
|
|
411
400
|
i.currentObservers || (i.currentObservers = Array.from(i.observers));
|
|
412
401
|
try {
|
|
413
|
-
for (var
|
|
402
|
+
for (var o = pt(i.currentObservers), a = o.next(); !a.done; a = o.next()) {
|
|
414
403
|
var c = a.value;
|
|
415
404
|
c.next(e);
|
|
416
405
|
}
|
|
417
|
-
} catch (
|
|
418
|
-
r = { error:
|
|
406
|
+
} catch (h) {
|
|
407
|
+
r = { error: h };
|
|
419
408
|
} finally {
|
|
420
409
|
try {
|
|
421
|
-
a && !a.done && (
|
|
410
|
+
a && !a.done && (n = o.return) && n.call(o);
|
|
422
411
|
} finally {
|
|
423
|
-
if (r)
|
|
424
|
-
throw r.error;
|
|
412
|
+
if (r) throw r.error;
|
|
425
413
|
}
|
|
426
414
|
}
|
|
427
415
|
}
|
|
428
416
|
});
|
|
429
417
|
}, t.prototype.error = function(e) {
|
|
430
418
|
var i = this;
|
|
431
|
-
|
|
419
|
+
Z(function() {
|
|
432
420
|
if (i._throwIfClosed(), !i.isStopped) {
|
|
433
421
|
i.hasError = i.isStopped = !0, i.thrownError = e;
|
|
434
422
|
for (var r = i.observers; r.length; )
|
|
@@ -437,7 +425,7 @@ var Se = Gt(function(s) {
|
|
|
437
425
|
});
|
|
438
426
|
}, t.prototype.complete = function() {
|
|
439
427
|
var e = this;
|
|
440
|
-
|
|
428
|
+
Z(function() {
|
|
441
429
|
if (e._throwIfClosed(), !e.isStopped) {
|
|
442
430
|
e.isStopped = !0;
|
|
443
431
|
for (var i = e.observers; i.length; )
|
|
@@ -458,21 +446,21 @@ var Se = Gt(function(s) {
|
|
|
458
446
|
}, t.prototype._subscribe = function(e) {
|
|
459
447
|
return this._throwIfClosed(), this._checkFinalizedStatuses(e), this._innerSubscribe(e);
|
|
460
448
|
}, t.prototype._innerSubscribe = function(e) {
|
|
461
|
-
var i = this, r = this,
|
|
462
|
-
return
|
|
463
|
-
i.currentObservers = null,
|
|
449
|
+
var i = this, r = this, n = r.hasError, o = r.isStopped, a = r.observers;
|
|
450
|
+
return n || o ? ae : (this.currentObservers = null, a.push(e), new tt(function() {
|
|
451
|
+
i.currentObservers = null, gt(a, e);
|
|
464
452
|
}));
|
|
465
453
|
}, t.prototype._checkFinalizedStatuses = function(e) {
|
|
466
|
-
var i = this, r = i.hasError,
|
|
467
|
-
r ? e.error(
|
|
454
|
+
var i = this, r = i.hasError, n = i.thrownError, o = i.isStopped;
|
|
455
|
+
r ? e.error(n) : o && e.complete();
|
|
468
456
|
}, t.prototype.asObservable = function() {
|
|
469
|
-
var e = new
|
|
457
|
+
var e = new Lt();
|
|
470
458
|
return e.source = this, e;
|
|
471
459
|
}, t.create = function(e, i) {
|
|
472
|
-
return new
|
|
460
|
+
return new jt(e, i);
|
|
473
461
|
}, t;
|
|
474
|
-
}(
|
|
475
|
-
|
|
462
|
+
}(Lt), jt = function(s) {
|
|
463
|
+
z(t, s);
|
|
476
464
|
function t(e, i) {
|
|
477
465
|
var r = s.call(this) || this;
|
|
478
466
|
return r.destination = e, r.source = i, r;
|
|
@@ -488,10 +476,10 @@ var Se = Gt(function(s) {
|
|
|
488
476
|
(i = (e = this.destination) === null || e === void 0 ? void 0 : e.complete) === null || i === void 0 || i.call(e);
|
|
489
477
|
}, t.prototype._subscribe = function(e) {
|
|
490
478
|
var i, r;
|
|
491
|
-
return (r = (i = this.source) === null || i === void 0 ? void 0 : i.subscribe(e)) !== null && r !== void 0 ? r :
|
|
479
|
+
return (r = (i = this.source) === null || i === void 0 ? void 0 : i.subscribe(e)) !== null && r !== void 0 ? r : ae;
|
|
492
480
|
}, t;
|
|
493
|
-
}(
|
|
494
|
-
|
|
481
|
+
}(bt), je = function(s) {
|
|
482
|
+
z(t, s);
|
|
495
483
|
function t(e) {
|
|
496
484
|
var i = s.call(this) || this;
|
|
497
485
|
return i._value = e, i;
|
|
@@ -506,32 +494,31 @@ var Se = Gt(function(s) {
|
|
|
506
494
|
var i = s.prototype._subscribe.call(this, e);
|
|
507
495
|
return !i.closed && e.next(this._value), i;
|
|
508
496
|
}, t.prototype.getValue = function() {
|
|
509
|
-
var e = this, i = e.hasError, r = e.thrownError,
|
|
497
|
+
var e = this, i = e.hasError, r = e.thrownError, n = e._value;
|
|
510
498
|
if (i)
|
|
511
499
|
throw r;
|
|
512
|
-
return this._throwIfClosed(),
|
|
500
|
+
return this._throwIfClosed(), n;
|
|
513
501
|
}, t.prototype.next = function(e) {
|
|
514
502
|
s.prototype.next.call(this, this._value = e);
|
|
515
503
|
}, t;
|
|
516
|
-
}(
|
|
504
|
+
}(bt);
|
|
517
505
|
/**
|
|
518
506
|
* @license
|
|
519
507
|
* Copyright 2019 Google LLC
|
|
520
508
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
521
509
|
*/
|
|
522
|
-
const
|
|
523
|
-
let
|
|
510
|
+
const W = globalThis, $t = W.ShadowRoot && (W.ShadyCSS === void 0 || W.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, _t = Symbol(), Nt = /* @__PURE__ */ new WeakMap();
|
|
511
|
+
let de = class {
|
|
524
512
|
constructor(t, e, i) {
|
|
525
|
-
if (this._$cssResult$ = !0, i !==
|
|
526
|
-
throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
513
|
+
if (this._$cssResult$ = !0, i !== _t) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
527
514
|
this.cssText = t, this.t = e;
|
|
528
515
|
}
|
|
529
516
|
get styleSheet() {
|
|
530
517
|
let t = this.o;
|
|
531
518
|
const e = this.t;
|
|
532
|
-
if (
|
|
519
|
+
if ($t && t === void 0) {
|
|
533
520
|
const i = e !== void 0 && e.length === 1;
|
|
534
|
-
i && (t =
|
|
521
|
+
i && (t = Nt.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), i && Nt.set(e, t));
|
|
535
522
|
}
|
|
536
523
|
return t;
|
|
537
524
|
}
|
|
@@ -539,38 +526,33 @@ let ee = class {
|
|
|
539
526
|
return this.cssText;
|
|
540
527
|
}
|
|
541
528
|
};
|
|
542
|
-
const
|
|
543
|
-
const e = s.length === 1 ? s[0] : t.reduce((i, r,
|
|
544
|
-
if (
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
const i = document.createElement("style"), r = Y.litNonce;
|
|
557
|
-
r !== void 0 && i.setAttribute("nonce", r), i.textContent = e.cssText, s.appendChild(i);
|
|
558
|
-
}
|
|
559
|
-
}, Mt = vt ? (s) => s : (s) => s instanceof CSSStyleSheet ? ((t) => {
|
|
529
|
+
const Ne = (s) => new de(typeof s == "string" ? s : s + "", void 0, _t), k = (s, ...t) => {
|
|
530
|
+
const e = s.length === 1 ? s[0] : t.reduce((i, r, n) => i + ((o) => {
|
|
531
|
+
if (o._$cssResult$ === !0) return o.cssText;
|
|
532
|
+
if (typeof o == "number") return o;
|
|
533
|
+
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.");
|
|
534
|
+
})(r) + s[n + 1], s[0]);
|
|
535
|
+
return new de(e, s, _t);
|
|
536
|
+
}, Ie = (s, t) => {
|
|
537
|
+
if ($t) s.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
|
538
|
+
else for (const e of t) {
|
|
539
|
+
const i = document.createElement("style"), r = W.litNonce;
|
|
540
|
+
r !== void 0 && i.setAttribute("nonce", r), i.textContent = e.cssText, s.appendChild(i);
|
|
541
|
+
}
|
|
542
|
+
}, It = $t ? (s) => s : (s) => s instanceof CSSStyleSheet ? ((t) => {
|
|
560
543
|
let e = "";
|
|
561
|
-
for (const i of t.cssRules)
|
|
562
|
-
|
|
563
|
-
return Oe(e);
|
|
544
|
+
for (const i of t.cssRules) e += i.cssText;
|
|
545
|
+
return Ne(e);
|
|
564
546
|
})(s) : s;
|
|
565
547
|
/**
|
|
566
548
|
* @license
|
|
567
549
|
* Copyright 2017 Google LLC
|
|
568
550
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
569
551
|
*/
|
|
570
|
-
const { is:
|
|
552
|
+
const { is: Be, defineProperty: Ve, getOwnPropertyDescriptor: ze, getOwnPropertyNames: De, getOwnPropertySymbols: Fe, getPrototypeOf: Ye } = Object, w = globalThis, Bt = w.trustedTypes, Ze = Bt ? Bt.emptyScript : "", rt = w.reactiveElementPolyfillSupport, R = (s, t) => s, q = { toAttribute(s, t) {
|
|
571
553
|
switch (t) {
|
|
572
554
|
case Boolean:
|
|
573
|
-
s = s ?
|
|
555
|
+
s = s ? Ze : null;
|
|
574
556
|
break;
|
|
575
557
|
case Object:
|
|
576
558
|
case Array:
|
|
@@ -595,57 +577,52 @@ const { is: ke, defineProperty: Me, getOwnPropertyDescriptor: Ue, getOwnProperty
|
|
|
595
577
|
}
|
|
596
578
|
}
|
|
597
579
|
return e;
|
|
598
|
-
} },
|
|
599
|
-
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")),
|
|
600
|
-
let
|
|
580
|
+
} }, wt = (s, t) => !Be(s, t), Vt = { attribute: !0, type: String, converter: q, reflect: !1, hasChanged: wt };
|
|
581
|
+
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), w.litPropertyMetadata ?? (w.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
582
|
+
let T = class extends HTMLElement {
|
|
601
583
|
static addInitializer(t) {
|
|
602
584
|
this._$Ei(), (this.l ?? (this.l = [])).push(t);
|
|
603
585
|
}
|
|
604
586
|
static get observedAttributes() {
|
|
605
587
|
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
|
606
588
|
}
|
|
607
|
-
static createProperty(t, e =
|
|
589
|
+
static createProperty(t, e = Vt) {
|
|
608
590
|
if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(t, e), !e.noAccessor) {
|
|
609
591
|
const i = Symbol(), r = this.getPropertyDescriptor(t, i, e);
|
|
610
|
-
r !== void 0 &&
|
|
592
|
+
r !== void 0 && Ve(this.prototype, t, r);
|
|
611
593
|
}
|
|
612
594
|
}
|
|
613
595
|
static getPropertyDescriptor(t, e, i) {
|
|
614
|
-
const { get: r, set:
|
|
596
|
+
const { get: r, set: n } = ze(this.prototype, t) ?? { get() {
|
|
615
597
|
return this[e];
|
|
616
|
-
}, set(
|
|
617
|
-
this[e] =
|
|
598
|
+
}, set(o) {
|
|
599
|
+
this[e] = o;
|
|
618
600
|
} };
|
|
619
601
|
return { get() {
|
|
620
602
|
return r == null ? void 0 : r.call(this);
|
|
621
|
-
}, set(
|
|
603
|
+
}, set(o) {
|
|
622
604
|
const a = r == null ? void 0 : r.call(this);
|
|
623
|
-
|
|
605
|
+
n.call(this, o), this.requestUpdate(t, a, i);
|
|
624
606
|
}, configurable: !0, enumerable: !0 };
|
|
625
607
|
}
|
|
626
608
|
static getPropertyOptions(t) {
|
|
627
|
-
return this.elementProperties.get(t) ??
|
|
609
|
+
return this.elementProperties.get(t) ?? Vt;
|
|
628
610
|
}
|
|
629
611
|
static _$Ei() {
|
|
630
|
-
if (this.hasOwnProperty(
|
|
631
|
-
|
|
632
|
-
const t = Re(this);
|
|
612
|
+
if (this.hasOwnProperty(R("elementProperties"))) return;
|
|
613
|
+
const t = Ye(this);
|
|
633
614
|
t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
|
|
634
615
|
}
|
|
635
616
|
static finalize() {
|
|
636
|
-
if (this.hasOwnProperty(
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
const
|
|
640
|
-
for (const r of i)
|
|
641
|
-
this.createProperty(r, e[r]);
|
|
617
|
+
if (this.hasOwnProperty(R("finalized"))) return;
|
|
618
|
+
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(R("properties"))) {
|
|
619
|
+
const e = this.properties, i = [...De(e), ...Fe(e)];
|
|
620
|
+
for (const r of i) this.createProperty(r, e[r]);
|
|
642
621
|
}
|
|
643
622
|
const t = this[Symbol.metadata];
|
|
644
623
|
if (t !== null) {
|
|
645
624
|
const e = litPropertyMetadata.get(t);
|
|
646
|
-
if (e !== void 0)
|
|
647
|
-
for (const [i, r] of e)
|
|
648
|
-
this.elementProperties.set(i, r);
|
|
625
|
+
if (e !== void 0) for (const [i, r] of e) this.elementProperties.set(i, r);
|
|
649
626
|
}
|
|
650
627
|
this._$Eh = /* @__PURE__ */ new Map();
|
|
651
628
|
for (const [e, i] of this.elementProperties) {
|
|
@@ -658,10 +635,8 @@ let k = class extends HTMLElement {
|
|
|
658
635
|
const e = [];
|
|
659
636
|
if (Array.isArray(t)) {
|
|
660
637
|
const i = new Set(t.flat(1 / 0).reverse());
|
|
661
|
-
for (const r of i)
|
|
662
|
-
|
|
663
|
-
} else
|
|
664
|
-
t !== void 0 && e.push(Mt(t));
|
|
638
|
+
for (const r of i) e.unshift(It(r));
|
|
639
|
+
} else t !== void 0 && e.push(It(t));
|
|
665
640
|
return e;
|
|
666
641
|
}
|
|
667
642
|
static _$Eu(t, e) {
|
|
@@ -685,13 +660,12 @@ let k = class extends HTMLElement {
|
|
|
685
660
|
}
|
|
686
661
|
_$E_() {
|
|
687
662
|
const t = /* @__PURE__ */ new Map(), e = this.constructor.elementProperties;
|
|
688
|
-
for (const i of e.keys())
|
|
689
|
-
this.hasOwnProperty(i) && (t.set(i, this[i]), delete this[i]);
|
|
663
|
+
for (const i of e.keys()) this.hasOwnProperty(i) && (t.set(i, this[i]), delete this[i]);
|
|
690
664
|
t.size > 0 && (this._$Ep = t);
|
|
691
665
|
}
|
|
692
666
|
createRenderRoot() {
|
|
693
667
|
const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
694
|
-
return
|
|
668
|
+
return Ie(t, this.constructor.elementStyles), t;
|
|
695
669
|
}
|
|
696
670
|
connectedCallback() {
|
|
697
671
|
var t;
|
|
@@ -713,25 +687,24 @@ let k = class extends HTMLElement {
|
|
|
713
687
|
this._$AK(t, i);
|
|
714
688
|
}
|
|
715
689
|
_$EC(t, e) {
|
|
716
|
-
var
|
|
690
|
+
var n;
|
|
717
691
|
const i = this.constructor.elementProperties.get(t), r = this.constructor._$Eu(t, i);
|
|
718
692
|
if (r !== void 0 && i.reflect === !0) {
|
|
719
|
-
const
|
|
720
|
-
this._$Em = t,
|
|
693
|
+
const o = (((n = i.converter) == null ? void 0 : n.toAttribute) !== void 0 ? i.converter : q).toAttribute(e, i.type);
|
|
694
|
+
this._$Em = t, o == null ? this.removeAttribute(r) : this.setAttribute(r, o), this._$Em = null;
|
|
721
695
|
}
|
|
722
696
|
}
|
|
723
697
|
_$AK(t, e) {
|
|
724
|
-
var
|
|
698
|
+
var n;
|
|
725
699
|
const i = this.constructor, r = i._$Eh.get(t);
|
|
726
700
|
if (r !== void 0 && this._$Em !== r) {
|
|
727
|
-
const
|
|
728
|
-
this._$Em = r, this[r] = a.fromAttribute(e,
|
|
701
|
+
const o = i.getPropertyOptions(r), a = typeof o.converter == "function" ? { fromAttribute: o.converter } : ((n = o.converter) == null ? void 0 : n.fromAttribute) !== void 0 ? o.converter : q;
|
|
702
|
+
this._$Em = r, this[r] = a.fromAttribute(e, o.type), this._$Em = null;
|
|
729
703
|
}
|
|
730
704
|
}
|
|
731
705
|
requestUpdate(t, e, i) {
|
|
732
706
|
if (t !== void 0) {
|
|
733
|
-
if (i ?? (i = this.constructor.getPropertyOptions(t)), !(i.hasChanged ??
|
|
734
|
-
return;
|
|
707
|
+
if (i ?? (i = this.constructor.getPropertyOptions(t)), !(i.hasChanged ?? wt)(this[t], e)) return;
|
|
735
708
|
this.P(t, e, i);
|
|
736
709
|
}
|
|
737
710
|
this.isUpdatePending === !1 && (this._$ES = this._$ET());
|
|
@@ -754,25 +727,21 @@ let k = class extends HTMLElement {
|
|
|
754
727
|
}
|
|
755
728
|
performUpdate() {
|
|
756
729
|
var i;
|
|
757
|
-
if (!this.isUpdatePending)
|
|
758
|
-
return;
|
|
730
|
+
if (!this.isUpdatePending) return;
|
|
759
731
|
if (!this.hasUpdated) {
|
|
760
732
|
if (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this._$Ep) {
|
|
761
|
-
for (const [
|
|
762
|
-
this[o] = n;
|
|
733
|
+
for (const [n, o] of this._$Ep) this[n] = o;
|
|
763
734
|
this._$Ep = void 0;
|
|
764
735
|
}
|
|
765
736
|
const r = this.constructor.elementProperties;
|
|
766
|
-
if (r.size > 0)
|
|
767
|
-
for (const [o, n] of r)
|
|
768
|
-
n.wrapped !== !0 || this._$AL.has(o) || this[o] === void 0 || this.P(o, this[o], n);
|
|
737
|
+
if (r.size > 0) for (const [n, o] of r) o.wrapped !== !0 || this._$AL.has(n) || this[n] === void 0 || this.P(n, this[n], o);
|
|
769
738
|
}
|
|
770
739
|
let t = !1;
|
|
771
740
|
const e = this._$AL;
|
|
772
741
|
try {
|
|
773
742
|
t = this.shouldUpdate(e), t ? (this.willUpdate(e), (i = this._$EO) == null || i.forEach((r) => {
|
|
774
|
-
var
|
|
775
|
-
return (
|
|
743
|
+
var n;
|
|
744
|
+
return (n = r.hostUpdate) == null ? void 0 : n.call(r);
|
|
776
745
|
}), this.update(e)) : this._$EU();
|
|
777
746
|
} catch (r) {
|
|
778
747
|
throw t = !1, this._$EU(), r;
|
|
@@ -808,70 +777,61 @@ let k = class extends HTMLElement {
|
|
|
808
777
|
firstUpdated(t) {
|
|
809
778
|
}
|
|
810
779
|
};
|
|
811
|
-
|
|
780
|
+
T.elementStyles = [], T.shadowRootOptions = { mode: "open" }, T[R("elementProperties")] = /* @__PURE__ */ new Map(), T[R("finalized")] = /* @__PURE__ */ new Map(), rt == null || rt({ ReactiveElement: T }), (w.reactiveElementVersions ?? (w.reactiveElementVersions = [])).push("2.0.4");
|
|
812
781
|
/**
|
|
813
782
|
* @license
|
|
814
783
|
* Copyright 2017 Google LLC
|
|
815
784
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
816
785
|
*/
|
|
817
|
-
const
|
|
818
|
-
\f\r]`,
|
|
819
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"),
|
|
820
|
-
function
|
|
821
|
-
if (!
|
|
822
|
-
|
|
823
|
-
return Lt !== void 0 ? Lt.createHTML(t) : t;
|
|
786
|
+
const j = globalThis, K = j.trustedTypes, zt = K ? K.createPolicy("lit-html", { createHTML: (s) => s }) : void 0, pe = "$lit$", _ = `lit$${Math.random().toFixed(9).slice(2)}$`, ue = "?" + _, We = `<${ue}>`, S = document, I = () => S.createComment(""), B = (s) => s === null || typeof s != "object" && typeof s != "function", At = Array.isArray, qe = (s) => At(s) || typeof (s == null ? void 0 : s[Symbol.iterator]) == "function", nt = `[
|
|
787
|
+
\f\r]`, L = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Dt = /-->/g, Ft = />/g, A = RegExp(`>|${nt}(?:([^\\s"'>=/]+)(${nt}*=${nt}*(?:[^
|
|
788
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), Yt = /'/g, Zt = /"/g, fe = /^(?:script|style|textarea|title)$/i, ge = (s) => (t, ...e) => ({ _$litType$: s, strings: t, values: e }), x = ge(1), Ke = ge(2), P = Symbol.for("lit-noChange"), p = Symbol.for("lit-nothing"), Wt = /* @__PURE__ */ new WeakMap(), E = S.createTreeWalker(S, 129);
|
|
789
|
+
function ve(s, t) {
|
|
790
|
+
if (!At(s) || !s.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
791
|
+
return zt !== void 0 ? zt.createHTML(t) : t;
|
|
824
792
|
}
|
|
825
|
-
const
|
|
793
|
+
const Ge = (s, t) => {
|
|
826
794
|
const e = s.length - 1, i = [];
|
|
827
|
-
let r,
|
|
795
|
+
let r, n = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", o = L;
|
|
828
796
|
for (let a = 0; a < e; a++) {
|
|
829
797
|
const c = s[a];
|
|
830
|
-
let
|
|
831
|
-
for (; u < c.length && (
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
o += n === H ? c + Ne : p >= 0 ? (i.push(l), c.slice(0, p) + ie + c.slice(p) + $ + f) : c + $ + (p === -2 ? a : f);
|
|
798
|
+
let h, l, d = -1, u = 0;
|
|
799
|
+
for (; u < c.length && (o.lastIndex = u, l = o.exec(c), l !== null); ) u = o.lastIndex, o === L ? l[1] === "!--" ? o = Dt : l[1] !== void 0 ? o = Ft : l[2] !== void 0 ? (fe.test(l[2]) && (r = RegExp("</" + l[2], "g")), o = A) : l[3] !== void 0 && (o = A) : o === A ? l[0] === ">" ? (o = r ?? L, d = -1) : l[1] === void 0 ? d = -2 : (d = o.lastIndex - l[2].length, h = l[1], o = l[3] === void 0 ? A : l[3] === '"' ? Zt : Yt) : o === Zt || o === Yt ? o = A : o === Dt || o === Ft ? o = L : (o = A, r = void 0);
|
|
800
|
+
const f = o === A && s[a + 1].startsWith("/>") ? " " : "";
|
|
801
|
+
n += o === L ? c + We : d >= 0 ? (i.push(h), c.slice(0, d) + pe + c.slice(d) + _ + f) : c + _ + (d === -2 ? a : f);
|
|
835
802
|
}
|
|
836
|
-
return [
|
|
803
|
+
return [ve(s, n + (s[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), i];
|
|
837
804
|
};
|
|
838
|
-
let
|
|
805
|
+
let mt = class me {
|
|
839
806
|
constructor({ strings: t, _$litType$: e }, i) {
|
|
840
807
|
let r;
|
|
841
808
|
this.parts = [];
|
|
842
|
-
let
|
|
843
|
-
const a = t.length - 1, c = this.parts, [
|
|
844
|
-
if (this.el =
|
|
845
|
-
const
|
|
846
|
-
|
|
809
|
+
let n = 0, o = 0;
|
|
810
|
+
const a = t.length - 1, c = this.parts, [h, l] = Ge(t, e);
|
|
811
|
+
if (this.el = me.createElement(h, i), E.currentNode = this.el.content, e === 2 || e === 3) {
|
|
812
|
+
const d = this.el.content.firstChild;
|
|
813
|
+
d.replaceWith(...d.childNodes);
|
|
847
814
|
}
|
|
848
815
|
for (; (r = E.nextNode()) !== null && c.length < a; ) {
|
|
849
816
|
if (r.nodeType === 1) {
|
|
850
|
-
if (r.hasAttributes())
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
p.startsWith($) && (c.push({ type: 6, index: o }), r.removeAttribute(p));
|
|
857
|
-
if (re.test(r.tagName)) {
|
|
858
|
-
const p = r.textContent.split($), u = p.length - 1;
|
|
817
|
+
if (r.hasAttributes()) for (const d of r.getAttributeNames()) if (d.endsWith(pe)) {
|
|
818
|
+
const u = l[o++], f = r.getAttribute(d).split(_), O = /([.?@])?(.*)/.exec(u);
|
|
819
|
+
c.push({ type: 1, index: n, name: O[2], strings: f, ctor: O[1] === "." ? Je : O[1] === "?" ? Qe : O[1] === "@" ? ti : et }), r.removeAttribute(d);
|
|
820
|
+
} else d.startsWith(_) && (c.push({ type: 6, index: n }), r.removeAttribute(d));
|
|
821
|
+
if (fe.test(r.tagName)) {
|
|
822
|
+
const d = r.textContent.split(_), u = d.length - 1;
|
|
859
823
|
if (u > 0) {
|
|
860
|
-
r.textContent =
|
|
861
|
-
for (let f = 0; f < u; f++)
|
|
862
|
-
|
|
863
|
-
r.append(p[u], N());
|
|
824
|
+
r.textContent = K ? K.emptyScript : "";
|
|
825
|
+
for (let f = 0; f < u; f++) r.append(d[f], I()), E.nextNode(), c.push({ type: 2, index: ++n });
|
|
826
|
+
r.append(d[u], I());
|
|
864
827
|
}
|
|
865
828
|
}
|
|
866
|
-
} else if (r.nodeType === 8)
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
c.push({ type: 7, index: o }), p += $.length - 1;
|
|
873
|
-
}
|
|
874
|
-
o++;
|
|
829
|
+
} else if (r.nodeType === 8) if (r.data === ue) c.push({ type: 2, index: n });
|
|
830
|
+
else {
|
|
831
|
+
let d = -1;
|
|
832
|
+
for (; (d = r.data.indexOf(_, d + 1)) !== -1; ) c.push({ type: 7, index: n }), d += _.length - 1;
|
|
833
|
+
}
|
|
834
|
+
n++;
|
|
875
835
|
}
|
|
876
836
|
}
|
|
877
837
|
static createElement(t, e) {
|
|
@@ -880,14 +840,13 @@ let ft = class ae {
|
|
|
880
840
|
}
|
|
881
841
|
};
|
|
882
842
|
function M(s, t, e = s, i) {
|
|
883
|
-
var
|
|
884
|
-
if (t === P)
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
return (r == null ? void 0 : r.constructor) !== o && ((a = r == null ? void 0 : r._$AO) == null || a.call(r, !1), o === void 0 ? r = void 0 : (r = new o(s), r._$AT(s, e, i)), i !== void 0 ? (e._$Co ?? (e._$Co = []))[i] = r : e._$Cl = r), r !== void 0 && (t = M(s, r._$AS(s, t.values), r, i)), t;
|
|
843
|
+
var o, a;
|
|
844
|
+
if (t === P) return t;
|
|
845
|
+
let r = i !== void 0 ? (o = e._$Co) == null ? void 0 : o[i] : e._$Cl;
|
|
846
|
+
const n = B(t) ? void 0 : t._$litDirective$;
|
|
847
|
+
return (r == null ? void 0 : r.constructor) !== n && ((a = r == null ? void 0 : r._$AO) == null || a.call(r, !1), n === void 0 ? r = void 0 : (r = new n(s), r._$AT(s, e, i)), i !== void 0 ? (e._$Co ?? (e._$Co = []))[i] = r : e._$Cl = r), r !== void 0 && (t = M(s, r._$AS(s, t.values), r, i)), t;
|
|
889
848
|
}
|
|
890
|
-
class
|
|
849
|
+
class Xe {
|
|
891
850
|
constructor(t, e) {
|
|
892
851
|
this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = e;
|
|
893
852
|
}
|
|
@@ -900,20 +859,19 @@ class Ve {
|
|
|
900
859
|
u(t) {
|
|
901
860
|
const { el: { content: e }, parts: i } = this._$AD, r = ((t == null ? void 0 : t.creationScope) ?? S).importNode(e, !0);
|
|
902
861
|
E.currentNode = r;
|
|
903
|
-
let
|
|
862
|
+
let n = E.nextNode(), o = 0, a = 0, c = i[0];
|
|
904
863
|
for (; c !== void 0; ) {
|
|
905
|
-
if (
|
|
906
|
-
let
|
|
907
|
-
c.type === 2 ?
|
|
864
|
+
if (o === c.index) {
|
|
865
|
+
let h;
|
|
866
|
+
c.type === 2 ? h = new D(n, n.nextSibling, this, t) : c.type === 1 ? h = new c.ctor(n, c.name, c.strings, this, t) : c.type === 6 && (h = new ei(n, this, t)), this._$AV.push(h), c = i[++a];
|
|
908
867
|
}
|
|
909
|
-
|
|
868
|
+
o !== (c == null ? void 0 : c.index) && (n = E.nextNode(), o++);
|
|
910
869
|
}
|
|
911
870
|
return E.currentNode = S, r;
|
|
912
871
|
}
|
|
913
872
|
p(t) {
|
|
914
873
|
let e = 0;
|
|
915
|
-
for (const i of this._$AV)
|
|
916
|
-
i !== void 0 && (i.strings !== void 0 ? (i._$AI(t, i, e), e += i.strings.length - 2) : i._$AI(t[e])), e++;
|
|
874
|
+
for (const i of this._$AV) i !== void 0 && (i.strings !== void 0 ? (i._$AI(t, i, e), e += i.strings.length - 2) : i._$AI(t[e])), e++;
|
|
917
875
|
}
|
|
918
876
|
}
|
|
919
877
|
class D {
|
|
@@ -922,7 +880,7 @@ class D {
|
|
|
922
880
|
return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
|
|
923
881
|
}
|
|
924
882
|
constructor(t, e, i, r) {
|
|
925
|
-
this.type = 2, this._$AH =
|
|
883
|
+
this.type = 2, this._$AH = p, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = i, this.options = r, this._$Cv = (r == null ? void 0 : r.isConnected) ?? !0;
|
|
926
884
|
}
|
|
927
885
|
get parentNode() {
|
|
928
886
|
let t = this._$AA.parentNode;
|
|
@@ -936,7 +894,7 @@ class D {
|
|
|
936
894
|
return this._$AB;
|
|
937
895
|
}
|
|
938
896
|
_$AI(t, e = this) {
|
|
939
|
-
t = M(this, t, e),
|
|
897
|
+
t = M(this, t, e), B(t) ? t === p || t == null || t === "" ? (this._$AH !== p && this._$AR(), this._$AH = p) : t !== this._$AH && t !== P && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : qe(t) ? this.k(t) : this._(t);
|
|
940
898
|
}
|
|
941
899
|
O(t) {
|
|
942
900
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
|
@@ -945,28 +903,26 @@ class D {
|
|
|
945
903
|
this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
|
|
946
904
|
}
|
|
947
905
|
_(t) {
|
|
948
|
-
this._$AH !==
|
|
906
|
+
this._$AH !== p && B(this._$AH) ? this._$AA.nextSibling.data = t : this.T(S.createTextNode(t)), this._$AH = t;
|
|
949
907
|
}
|
|
950
908
|
$(t) {
|
|
951
|
-
var
|
|
952
|
-
const { values: e, _$litType$: i } = t, r = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el =
|
|
953
|
-
if (((
|
|
954
|
-
this._$AH.p(e);
|
|
909
|
+
var n;
|
|
910
|
+
const { values: e, _$litType$: i } = t, r = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el = mt.createElement(ve(i.h, i.h[0]), this.options)), i);
|
|
911
|
+
if (((n = this._$AH) == null ? void 0 : n._$AD) === r) this._$AH.p(e);
|
|
955
912
|
else {
|
|
956
|
-
const
|
|
957
|
-
|
|
913
|
+
const o = new Xe(r, this), a = o.u(this.options);
|
|
914
|
+
o.p(e), this.T(a), this._$AH = o;
|
|
958
915
|
}
|
|
959
916
|
}
|
|
960
917
|
_$AC(t) {
|
|
961
|
-
let e =
|
|
962
|
-
return e === void 0 &&
|
|
918
|
+
let e = Wt.get(t.strings);
|
|
919
|
+
return e === void 0 && Wt.set(t.strings, e = new mt(t)), e;
|
|
963
920
|
}
|
|
964
921
|
k(t) {
|
|
965
|
-
|
|
922
|
+
At(this._$AH) || (this._$AH = [], this._$AR());
|
|
966
923
|
const e = this._$AH;
|
|
967
924
|
let i, r = 0;
|
|
968
|
-
for (const
|
|
969
|
-
r === e.length ? e.push(i = new D(this.O(N()), this.O(N()), this, this.options)) : i = e[r], i._$AI(o), r++;
|
|
925
|
+
for (const n of t) r === e.length ? e.push(i = new D(this.O(I()), this.O(I()), this, this.options)) : i = e[r], i._$AI(n), r++;
|
|
970
926
|
r < e.length && (this._$AR(i && i._$AB.nextSibling, r), e.length = r);
|
|
971
927
|
}
|
|
972
928
|
_$AR(t = this._$AA.nextSibling, e) {
|
|
@@ -981,65 +937,62 @@ class D {
|
|
|
981
937
|
this._$AM === void 0 && (this._$Cv = t, (e = this._$AP) == null || e.call(this, t));
|
|
982
938
|
}
|
|
983
939
|
}
|
|
984
|
-
class
|
|
940
|
+
class et {
|
|
985
941
|
get tagName() {
|
|
986
942
|
return this.element.tagName;
|
|
987
943
|
}
|
|
988
944
|
get _$AU() {
|
|
989
945
|
return this._$AM._$AU;
|
|
990
946
|
}
|
|
991
|
-
constructor(t, e, i, r,
|
|
992
|
-
this.type = 1, this._$AH =
|
|
947
|
+
constructor(t, e, i, r, n) {
|
|
948
|
+
this.type = 1, this._$AH = p, this._$AN = void 0, this.element = t, this.name = e, this._$AM = r, this.options = n, i.length > 2 || i[0] !== "" || i[1] !== "" ? (this._$AH = Array(i.length - 1).fill(new String()), this.strings = i) : this._$AH = p;
|
|
993
949
|
}
|
|
994
950
|
_$AI(t, e = this, i, r) {
|
|
995
|
-
const
|
|
996
|
-
let
|
|
997
|
-
if (
|
|
998
|
-
t = M(this, t, e, 0), n = !I(t) || t !== this._$AH && t !== P, n && (this._$AH = t);
|
|
951
|
+
const n = this.strings;
|
|
952
|
+
let o = !1;
|
|
953
|
+
if (n === void 0) t = M(this, t, e, 0), o = !B(t) || t !== this._$AH && t !== P, o && (this._$AH = t);
|
|
999
954
|
else {
|
|
1000
955
|
const a = t;
|
|
1001
|
-
let c,
|
|
1002
|
-
for (t =
|
|
1003
|
-
l = M(this, a[i + c], e, c), l === P && (l = this._$AH[c]), n || (n = !I(l) || l !== this._$AH[c]), l === d ? t = d : t !== d && (t += (l ?? "") + o[c + 1]), this._$AH[c] = l;
|
|
956
|
+
let c, h;
|
|
957
|
+
for (t = n[0], c = 0; c < n.length - 1; c++) h = M(this, a[i + c], e, c), h === P && (h = this._$AH[c]), o || (o = !B(h) || h !== this._$AH[c]), h === p ? t = p : t !== p && (t += (h ?? "") + n[c + 1]), this._$AH[c] = h;
|
|
1004
958
|
}
|
|
1005
|
-
|
|
959
|
+
o && !r && this.j(t);
|
|
1006
960
|
}
|
|
1007
961
|
j(t) {
|
|
1008
|
-
t ===
|
|
962
|
+
t === p ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
|
1009
963
|
}
|
|
1010
964
|
}
|
|
1011
|
-
class
|
|
965
|
+
class Je extends et {
|
|
1012
966
|
constructor() {
|
|
1013
967
|
super(...arguments), this.type = 3;
|
|
1014
968
|
}
|
|
1015
969
|
j(t) {
|
|
1016
|
-
this.element[this.name] = t ===
|
|
970
|
+
this.element[this.name] = t === p ? void 0 : t;
|
|
1017
971
|
}
|
|
1018
972
|
}
|
|
1019
|
-
class
|
|
973
|
+
class Qe extends et {
|
|
1020
974
|
constructor() {
|
|
1021
975
|
super(...arguments), this.type = 4;
|
|
1022
976
|
}
|
|
1023
977
|
j(t) {
|
|
1024
|
-
this.element.toggleAttribute(this.name, !!t && t !==
|
|
978
|
+
this.element.toggleAttribute(this.name, !!t && t !== p);
|
|
1025
979
|
}
|
|
1026
980
|
}
|
|
1027
|
-
class
|
|
1028
|
-
constructor(t, e, i, r,
|
|
1029
|
-
super(t, e, i, r,
|
|
981
|
+
class ti extends et {
|
|
982
|
+
constructor(t, e, i, r, n) {
|
|
983
|
+
super(t, e, i, r, n), this.type = 5;
|
|
1030
984
|
}
|
|
1031
985
|
_$AI(t, e = this) {
|
|
1032
|
-
if ((t = M(this, t, e, 0) ??
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
r && this.element.removeEventListener(this.name, this, i), o && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
|
986
|
+
if ((t = M(this, t, e, 0) ?? p) === P) return;
|
|
987
|
+
const i = this._$AH, r = t === p && i !== p || t.capture !== i.capture || t.once !== i.once || t.passive !== i.passive, n = t !== p && (i === p || r);
|
|
988
|
+
r && this.element.removeEventListener(this.name, this, i), n && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
|
1036
989
|
}
|
|
1037
990
|
handleEvent(t) {
|
|
1038
991
|
var e;
|
|
1039
992
|
typeof this._$AH == "function" ? this._$AH.call(((e = this.options) == null ? void 0 : e.host) ?? this.element, t) : this._$AH.handleEvent(t);
|
|
1040
993
|
}
|
|
1041
994
|
}
|
|
1042
|
-
class
|
|
995
|
+
class ei {
|
|
1043
996
|
constructor(t, e, i) {
|
|
1044
997
|
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = i;
|
|
1045
998
|
}
|
|
@@ -1050,14 +1003,14 @@ class Ye {
|
|
|
1050
1003
|
M(this, t);
|
|
1051
1004
|
}
|
|
1052
1005
|
}
|
|
1053
|
-
const
|
|
1054
|
-
|
|
1055
|
-
const
|
|
1006
|
+
const ot = j.litHtmlPolyfillSupport;
|
|
1007
|
+
ot == null || ot(mt, D), (j.litHtmlVersions ?? (j.litHtmlVersions = [])).push("3.2.1");
|
|
1008
|
+
const ii = (s, t, e) => {
|
|
1056
1009
|
const i = (e == null ? void 0 : e.renderBefore) ?? t;
|
|
1057
1010
|
let r = i._$litPart$;
|
|
1058
1011
|
if (r === void 0) {
|
|
1059
|
-
const
|
|
1060
|
-
i._$litPart$ = r = new D(t.insertBefore(
|
|
1012
|
+
const n = (e == null ? void 0 : e.renderBefore) ?? null;
|
|
1013
|
+
i._$litPart$ = r = new D(t.insertBefore(I(), n), n, void 0, e ?? {});
|
|
1061
1014
|
}
|
|
1062
1015
|
return r._$AI(s), r;
|
|
1063
1016
|
};
|
|
@@ -1066,7 +1019,7 @@ const Ze = (s, t, e) => {
|
|
|
1066
1019
|
* Copyright 2017 Google LLC
|
|
1067
1020
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1068
1021
|
*/
|
|
1069
|
-
let m = class extends
|
|
1022
|
+
let m = class extends T {
|
|
1070
1023
|
constructor() {
|
|
1071
1024
|
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
|
1072
1025
|
}
|
|
@@ -1077,7 +1030,7 @@ let m = class extends k {
|
|
|
1077
1030
|
}
|
|
1078
1031
|
update(t) {
|
|
1079
1032
|
const e = this.render();
|
|
1080
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do =
|
|
1033
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = ii(e, this.renderRoot, this.renderOptions);
|
|
1081
1034
|
}
|
|
1082
1035
|
connectedCallback() {
|
|
1083
1036
|
var t;
|
|
@@ -1091,41 +1044,41 @@ let m = class extends k {
|
|
|
1091
1044
|
return P;
|
|
1092
1045
|
}
|
|
1093
1046
|
};
|
|
1094
|
-
var
|
|
1095
|
-
m._$litElement$ = !0, m.finalized = !0, (
|
|
1096
|
-
const
|
|
1097
|
-
|
|
1047
|
+
var ne;
|
|
1048
|
+
m._$litElement$ = !0, m.finalized = !0, (ne = globalThis.litElementHydrateSupport) == null || ne.call(globalThis, { LitElement: m });
|
|
1049
|
+
const at = globalThis.litElementPolyfillSupport;
|
|
1050
|
+
at == null || at({ LitElement: m });
|
|
1098
1051
|
(globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.1.1");
|
|
1099
1052
|
/**
|
|
1100
1053
|
* @license
|
|
1101
1054
|
* Copyright 2017 Google LLC
|
|
1102
1055
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1103
1056
|
*/
|
|
1104
|
-
const
|
|
1057
|
+
const si = { attribute: !0, type: String, converter: q, reflect: !1, hasChanged: wt }, ri = (s = si, t, e) => {
|
|
1105
1058
|
const { kind: i, metadata: r } = e;
|
|
1106
|
-
let
|
|
1107
|
-
if (
|
|
1108
|
-
const { name:
|
|
1059
|
+
let n = globalThis.litPropertyMetadata.get(r);
|
|
1060
|
+
if (n === void 0 && globalThis.litPropertyMetadata.set(r, n = /* @__PURE__ */ new Map()), n.set(e.name, s), i === "accessor") {
|
|
1061
|
+
const { name: o } = e;
|
|
1109
1062
|
return { set(a) {
|
|
1110
1063
|
const c = t.get.call(this);
|
|
1111
|
-
t.set.call(this, a), this.requestUpdate(
|
|
1064
|
+
t.set.call(this, a), this.requestUpdate(o, c, s);
|
|
1112
1065
|
}, init(a) {
|
|
1113
|
-
return a !== void 0 && this.P(
|
|
1066
|
+
return a !== void 0 && this.P(o, void 0, s), a;
|
|
1114
1067
|
} };
|
|
1115
1068
|
}
|
|
1116
1069
|
if (i === "setter") {
|
|
1117
|
-
const { name:
|
|
1070
|
+
const { name: o } = e;
|
|
1118
1071
|
return function(a) {
|
|
1119
|
-
const c = this[
|
|
1120
|
-
t.call(this, a), this.requestUpdate(
|
|
1072
|
+
const c = this[o];
|
|
1073
|
+
t.call(this, a), this.requestUpdate(o, c, s);
|
|
1121
1074
|
};
|
|
1122
1075
|
}
|
|
1123
1076
|
throw Error("Unsupported decorator location: " + i);
|
|
1124
1077
|
};
|
|
1125
1078
|
function g(s) {
|
|
1126
|
-
return (t, e) => typeof e == "object" ?
|
|
1127
|
-
const
|
|
1128
|
-
return r.constructor.createProperty(
|
|
1079
|
+
return (t, e) => typeof e == "object" ? ri(s, t, e) : ((i, r, n) => {
|
|
1080
|
+
const o = r.hasOwnProperty(n);
|
|
1081
|
+
return r.constructor.createProperty(n, o ? { ...i, wrapped: !0 } : i), o ? Object.getOwnPropertyDescriptor(r, n) : void 0;
|
|
1129
1082
|
})(s, t, e);
|
|
1130
1083
|
}
|
|
1131
1084
|
/**
|
|
@@ -1136,12 +1089,12 @@ function g(s) {
|
|
|
1136
1089
|
function U(s) {
|
|
1137
1090
|
return g({ ...s, state: !0, attribute: !1 });
|
|
1138
1091
|
}
|
|
1139
|
-
var
|
|
1140
|
-
for (var r =
|
|
1141
|
-
(
|
|
1142
|
-
return
|
|
1092
|
+
var ni = Object.defineProperty, oi = (s, t, e, i) => {
|
|
1093
|
+
for (var r = void 0, n = s.length - 1, o; n >= 0; n--)
|
|
1094
|
+
(o = s[n]) && (r = o(t, e, r) || r);
|
|
1095
|
+
return r && ni(t, e, r), r;
|
|
1143
1096
|
};
|
|
1144
|
-
class
|
|
1097
|
+
const St = class St extends m {
|
|
1145
1098
|
constructor() {
|
|
1146
1099
|
super(...arguments), this.anchor = "BottomRight";
|
|
1147
1100
|
}
|
|
@@ -1150,11 +1103,11 @@ class $t extends m {
|
|
|
1150
1103
|
return (e = this.shadowRoot) == null || e.appendChild(t), t;
|
|
1151
1104
|
}
|
|
1152
1105
|
render() {
|
|
1153
|
-
return this.anchor === "BottomLeft" ? this.renderRoot.host.classList.add("bottom-left") : this.anchor === "BottomRight" && this.renderRoot.host.classList.add("bottom-right"),
|
|
1106
|
+
return this.anchor === "BottomLeft" ? this.renderRoot.host.classList.add("bottom-left") : this.anchor === "BottomRight" && this.renderRoot.host.classList.add("bottom-right"), p;
|
|
1154
1107
|
}
|
|
1155
|
-
}
|
|
1156
|
-
|
|
1157
|
-
|
|
1108
|
+
};
|
|
1109
|
+
St.styles = [
|
|
1110
|
+
k`
|
|
1158
1111
|
:host {
|
|
1159
1112
|
position: fixed;
|
|
1160
1113
|
display: flex;
|
|
@@ -1172,16 +1125,17 @@ $t.styles = [
|
|
|
1172
1125
|
}
|
|
1173
1126
|
`
|
|
1174
1127
|
];
|
|
1175
|
-
|
|
1128
|
+
let G = St;
|
|
1129
|
+
oi([
|
|
1176
1130
|
g({ attribute: !0 })
|
|
1177
|
-
],
|
|
1131
|
+
], G.prototype, "anchor");
|
|
1178
1132
|
/**
|
|
1179
1133
|
* @license
|
|
1180
1134
|
* Copyright 2017 Google LLC
|
|
1181
1135
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1182
1136
|
*/
|
|
1183
|
-
const
|
|
1184
|
-
let
|
|
1137
|
+
const Ct = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, xt = (s) => (...t) => ({ _$litDirective$: s, values: t });
|
|
1138
|
+
let ye = class {
|
|
1185
1139
|
constructor(t) {
|
|
1186
1140
|
}
|
|
1187
1141
|
get _$AU() {
|
|
@@ -1202,69 +1156,57 @@ let ce = class {
|
|
|
1202
1156
|
* Copyright 2020 Google LLC
|
|
1203
1157
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1204
1158
|
*/
|
|
1205
|
-
const
|
|
1159
|
+
const ai = (s) => s.strings === void 0;
|
|
1206
1160
|
/**
|
|
1207
1161
|
* @license
|
|
1208
1162
|
* Copyright 2017 Google LLC
|
|
1209
1163
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1210
1164
|
*/
|
|
1211
|
-
const
|
|
1165
|
+
const N = (s, t) => {
|
|
1212
1166
|
var i;
|
|
1213
1167
|
const e = s._$AN;
|
|
1214
|
-
if (e === void 0)
|
|
1215
|
-
|
|
1216
|
-
for (const r of e)
|
|
1217
|
-
(i = r._$AO) == null || i.call(r, t, !1), j(r, t);
|
|
1168
|
+
if (e === void 0) return !1;
|
|
1169
|
+
for (const r of e) (i = r._$AO) == null || i.call(r, t, !1), N(r, t);
|
|
1218
1170
|
return !0;
|
|
1219
1171
|
}, X = (s) => {
|
|
1220
1172
|
let t, e;
|
|
1221
1173
|
do {
|
|
1222
|
-
if ((t = s._$AM) === void 0)
|
|
1223
|
-
break;
|
|
1174
|
+
if ((t = s._$AM) === void 0) break;
|
|
1224
1175
|
e = t._$AN, e.delete(s), s = t;
|
|
1225
1176
|
} while ((e == null ? void 0 : e.size) === 0);
|
|
1226
|
-
},
|
|
1177
|
+
}, be = (s) => {
|
|
1227
1178
|
for (let t; t = s._$AM; s = t) {
|
|
1228
1179
|
let e = t._$AN;
|
|
1229
|
-
if (e === void 0)
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
break;
|
|
1233
|
-
e.add(s), ii(t);
|
|
1180
|
+
if (e === void 0) t._$AN = e = /* @__PURE__ */ new Set();
|
|
1181
|
+
else if (e.has(s)) break;
|
|
1182
|
+
e.add(s), li(t);
|
|
1234
1183
|
}
|
|
1235
1184
|
};
|
|
1236
|
-
function
|
|
1237
|
-
this._$AN !== void 0 ? (X(this), this._$AM = s,
|
|
1185
|
+
function ci(s) {
|
|
1186
|
+
this._$AN !== void 0 ? (X(this), this._$AM = s, be(this)) : this._$AM = s;
|
|
1238
1187
|
}
|
|
1239
|
-
function
|
|
1188
|
+
function hi(s, t = !1, e = 0) {
|
|
1240
1189
|
const i = this._$AH, r = this._$AN;
|
|
1241
|
-
if (r !== void 0 && r.size !== 0)
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
for (let o = e; o < i.length; o++)
|
|
1245
|
-
j(i[o], !1), X(i[o]);
|
|
1246
|
-
else
|
|
1247
|
-
i != null && (j(i, !1), X(i));
|
|
1248
|
-
else
|
|
1249
|
-
j(this, s);
|
|
1190
|
+
if (r !== void 0 && r.size !== 0) if (t) if (Array.isArray(i)) for (let n = e; n < i.length; n++) N(i[n], !1), X(i[n]);
|
|
1191
|
+
else i != null && (N(i, !1), X(i));
|
|
1192
|
+
else N(this, s);
|
|
1250
1193
|
}
|
|
1251
|
-
const
|
|
1252
|
-
s.type ==
|
|
1194
|
+
const li = (s) => {
|
|
1195
|
+
s.type == Ct.CHILD && (s._$AP ?? (s._$AP = hi), s._$AQ ?? (s._$AQ = ci));
|
|
1253
1196
|
};
|
|
1254
|
-
class
|
|
1197
|
+
class $e extends ye {
|
|
1255
1198
|
constructor() {
|
|
1256
1199
|
super(...arguments), this._$AN = void 0;
|
|
1257
1200
|
}
|
|
1258
1201
|
_$AT(t, e, i) {
|
|
1259
|
-
super._$AT(t, e, i),
|
|
1202
|
+
super._$AT(t, e, i), be(this), this.isConnected = t._$AU;
|
|
1260
1203
|
}
|
|
1261
1204
|
_$AO(t, e = !0) {
|
|
1262
1205
|
var i, r;
|
|
1263
|
-
t !== this.isConnected && (this.isConnected = t, t ? (i = this.reconnected) == null || i.call(this) : (r = this.disconnected) == null || r.call(this)), e && (
|
|
1206
|
+
t !== this.isConnected && (this.isConnected = t, t ? (i = this.reconnected) == null || i.call(this) : (r = this.disconnected) == null || r.call(this)), e && (N(this, t), X(this));
|
|
1264
1207
|
}
|
|
1265
1208
|
setValue(t) {
|
|
1266
|
-
if (
|
|
1267
|
-
this._$Ct._$AI(t, this);
|
|
1209
|
+
if (ai(this._$Ct)) this._$Ct._$AI(t, this);
|
|
1268
1210
|
else {
|
|
1269
1211
|
const e = [...this._$Ct._$AH];
|
|
1270
1212
|
e[this._$Ci] = t, this._$Ct._$AI(e, this, 0);
|
|
@@ -1275,35 +1217,34 @@ class he extends ce {
|
|
|
1275
1217
|
reconnected() {
|
|
1276
1218
|
}
|
|
1277
1219
|
}
|
|
1278
|
-
const
|
|
1279
|
-
let
|
|
1280
|
-
const
|
|
1220
|
+
const di = /* @__PURE__ */ new WeakMap();
|
|
1221
|
+
let qt = 0;
|
|
1222
|
+
const ct = /* @__PURE__ */ new Map(), Kt = /* @__PURE__ */ new WeakSet(), Gt = () => new Promise((s) => requestAnimationFrame(s)), pi = [{ transform: "translateX(100%) scale(0)", opacity: 0 }], Xt = (s, t) => {
|
|
1281
1223
|
const e = s - t;
|
|
1282
1224
|
return e === 0 ? void 0 : e;
|
|
1283
|
-
},
|
|
1225
|
+
}, Jt = (s, t) => {
|
|
1284
1226
|
const e = s / t;
|
|
1285
1227
|
return e === 1 ? void 0 : e;
|
|
1286
|
-
},
|
|
1287
|
-
const e =
|
|
1228
|
+
}, ht = { left: (s, t) => {
|
|
1229
|
+
const e = Xt(s, t);
|
|
1288
1230
|
return { value: e, transform: e == null || isNaN(e) ? void 0 : `translateX(${e}px)` };
|
|
1289
1231
|
}, top: (s, t) => {
|
|
1290
|
-
const e =
|
|
1232
|
+
const e = Xt(s, t);
|
|
1291
1233
|
return { value: e, transform: e == null || isNaN(e) ? void 0 : `translateY(${e}px)` };
|
|
1292
1234
|
}, width: (s, t) => {
|
|
1293
1235
|
let e;
|
|
1294
1236
|
t === 0 && (t = 1, e = { width: "1px" });
|
|
1295
|
-
const i =
|
|
1237
|
+
const i = Jt(s, t);
|
|
1296
1238
|
return { value: i, overrideFrom: e, transform: i == null || isNaN(i) ? void 0 : `scaleX(${i})` };
|
|
1297
1239
|
}, height: (s, t) => {
|
|
1298
1240
|
let e;
|
|
1299
1241
|
t === 0 && (t = 1, e = { height: "1px" });
|
|
1300
|
-
const i =
|
|
1242
|
+
const i = Jt(s, t);
|
|
1301
1243
|
return { value: i, overrideFrom: e, transform: i == null || isNaN(i) ? void 0 : `scaleY(${i})` };
|
|
1302
|
-
} },
|
|
1303
|
-
class
|
|
1244
|
+
} }, ui = { duration: 333, easing: "ease-in-out" }, fi = ["left", "top", "width", "height", "opacity", "color", "background"], Qt = /* @__PURE__ */ new WeakMap();
|
|
1245
|
+
class gi extends $e {
|
|
1304
1246
|
constructor(t) {
|
|
1305
|
-
if (super(t), this.t = !1, this.i = null, this.o = null, this.h = !0, this.shouldLog = !1, t.type ===
|
|
1306
|
-
throw Error("The `animate` directive must be used in attribute position.");
|
|
1247
|
+
if (super(t), this.t = !1, this.i = null, this.o = null, this.h = !0, this.shouldLog = !1, t.type === Ct.CHILD) throw Error("The `animate` directive must be used in attribute position.");
|
|
1307
1248
|
this.createFinished();
|
|
1308
1249
|
}
|
|
1309
1250
|
createFinished() {
|
|
@@ -1317,10 +1258,10 @@ class ai extends he {
|
|
|
1317
1258
|
(t = this.l) == null || t.call(this), this.l = void 0;
|
|
1318
1259
|
}
|
|
1319
1260
|
render(t) {
|
|
1320
|
-
return
|
|
1261
|
+
return p;
|
|
1321
1262
|
}
|
|
1322
1263
|
getController() {
|
|
1323
|
-
return
|
|
1264
|
+
return di.get(this.u);
|
|
1324
1265
|
}
|
|
1325
1266
|
isDisabled() {
|
|
1326
1267
|
var t;
|
|
@@ -1329,28 +1270,26 @@ class ai extends he {
|
|
|
1329
1270
|
update(t, [e]) {
|
|
1330
1271
|
var r;
|
|
1331
1272
|
const i = this.u === void 0;
|
|
1332
|
-
return i && (this.u = (r = t.options) == null ? void 0 : r.host, this.u.addController(this), this.u.updateComplete.then((
|
|
1273
|
+
return i && (this.u = (r = t.options) == null ? void 0 : r.host, this.u.addController(this), this.u.updateComplete.then((n) => this.t = !0), this.element = t.element, Qt.set(this.element, this)), this.optionsOrCallback = e, (i || typeof e != "function") && this.p(e), this.render(e);
|
|
1333
1274
|
}
|
|
1334
1275
|
p(t) {
|
|
1335
1276
|
t = t ?? {};
|
|
1336
1277
|
const e = this.getController();
|
|
1337
|
-
e !== void 0 && ((t = { ...e.defaultOptions, ...t }).keyframeOptions = { ...e.defaultOptions.keyframeOptions, ...t.keyframeOptions }), t.properties ?? (t.properties =
|
|
1278
|
+
e !== void 0 && ((t = { ...e.defaultOptions, ...t }).keyframeOptions = { ...e.defaultOptions.keyframeOptions, ...t.keyframeOptions }), t.properties ?? (t.properties = fi), this.options = t;
|
|
1338
1279
|
}
|
|
1339
1280
|
m() {
|
|
1340
1281
|
const t = {}, e = this.element.getBoundingClientRect(), i = getComputedStyle(this.element);
|
|
1341
1282
|
return this.options.properties.forEach((r) => {
|
|
1342
|
-
const
|
|
1343
|
-
t[r] = isNaN(
|
|
1283
|
+
const n = e[r] ?? (ht[r] ? void 0 : i[r]), o = Number(n);
|
|
1284
|
+
t[r] = isNaN(o) ? n + "" : o;
|
|
1344
1285
|
}), t;
|
|
1345
1286
|
}
|
|
1346
1287
|
v() {
|
|
1347
1288
|
let t, e = !0;
|
|
1348
1289
|
return this.options.guard && (t = this.options.guard(), e = ((i, r) => {
|
|
1349
1290
|
if (Array.isArray(i)) {
|
|
1350
|
-
if (Array.isArray(r) && r.length === i.length && i.every((
|
|
1351
|
-
|
|
1352
|
-
} else if (r === i)
|
|
1353
|
-
return !1;
|
|
1291
|
+
if (Array.isArray(r) && r.length === i.length && i.every((n, o) => n === r[o])) return !1;
|
|
1292
|
+
} else if (r === i) return !1;
|
|
1354
1293
|
return !0;
|
|
1355
1294
|
})(t, this._)), this.h = this.t && !this.isDisabled() && !this.isAnimating() && e && this.element.isConnected, this.h && (this._ = Array.isArray(t) ? Array.from(t) : t), this.h;
|
|
1356
1295
|
}
|
|
@@ -1358,22 +1297,20 @@ class ai extends he {
|
|
|
1358
1297
|
typeof this.optionsOrCallback == "function" && this.p(this.optionsOrCallback()), this.v() && (this.A = this.m(), this.i = this.i ?? this.element.parentNode, this.o = this.element.nextSibling);
|
|
1359
1298
|
}
|
|
1360
1299
|
async hostUpdated() {
|
|
1361
|
-
if (!this.h || !this.element.isConnected || this.options.skipInitial && !this.isHostRendered)
|
|
1362
|
-
return;
|
|
1300
|
+
if (!this.h || !this.element.isConnected || this.options.skipInitial && !this.isHostRendered) return;
|
|
1363
1301
|
let t;
|
|
1364
|
-
this.prepare(), await
|
|
1302
|
+
this.prepare(), await Gt;
|
|
1365
1303
|
const e = this.O(), i = this.j(this.options.keyframeOptions, e), r = this.m();
|
|
1366
1304
|
if (this.A !== void 0) {
|
|
1367
|
-
const { from:
|
|
1368
|
-
this.log("measured", [this.A, r,
|
|
1305
|
+
const { from: n, to: o } = this.N(this.A, r, e);
|
|
1306
|
+
this.log("measured", [this.A, r, n, o]), t = this.calculateKeyframes(n, o);
|
|
1369
1307
|
} else {
|
|
1370
|
-
const
|
|
1371
|
-
if (
|
|
1372
|
-
|
|
1373
|
-
const { from:
|
|
1374
|
-
t = this.calculateKeyframes(
|
|
1375
|
-
} else
|
|
1376
|
-
this.options.in && (t = [...this.options.in, {}]);
|
|
1308
|
+
const n = ct.get(this.options.inId);
|
|
1309
|
+
if (n) {
|
|
1310
|
+
ct.delete(this.options.inId);
|
|
1311
|
+
const { from: o, to: a } = this.N(n, r, e);
|
|
1312
|
+
t = this.calculateKeyframes(o, a), t = this.options.in ? [{ ...this.options.in[0], ...t[0] }, ...this.options.in.slice(1), t[1]] : t, qt++, t.forEach((c) => c.zIndex = qt);
|
|
1313
|
+
} else this.options.in && (t = [...this.options.in, {}]);
|
|
1377
1314
|
}
|
|
1378
1315
|
this.animate(t, i);
|
|
1379
1316
|
}
|
|
@@ -1388,15 +1325,14 @@ class ai extends he {
|
|
|
1388
1325
|
}
|
|
1389
1326
|
async disconnected() {
|
|
1390
1327
|
var e;
|
|
1391
|
-
if (!this.h || (this.options.id !== void 0 &&
|
|
1392
|
-
|
|
1393
|
-
if (this.prepare(), await zt(), (e = this.i) == null ? void 0 : e.isConnected) {
|
|
1328
|
+
if (!this.h || (this.options.id !== void 0 && ct.set(this.options.id, this.A), this.options.out === void 0)) return;
|
|
1329
|
+
if (this.prepare(), await Gt(), (e = this.i) == null ? void 0 : e.isConnected) {
|
|
1394
1330
|
const i = this.o && this.o.parentNode === this.i ? this.o : null;
|
|
1395
1331
|
if (this.i.insertBefore(this.element, i), this.options.stabilizeOut) {
|
|
1396
1332
|
const r = this.m();
|
|
1397
1333
|
this.log("stabilizing out");
|
|
1398
|
-
const
|
|
1399
|
-
getComputedStyle(this.element).position !== "static" ||
|
|
1334
|
+
const n = this.A.left - r.left, o = this.A.top - r.top;
|
|
1335
|
+
getComputedStyle(this.element).position !== "static" || n === 0 && o === 0 || (this.element.style.position = "relative"), n !== 0 && (this.element.style.left = n + "px"), o !== 0 && (this.element.style.top = o + "px");
|
|
1400
1336
|
}
|
|
1401
1337
|
}
|
|
1402
1338
|
const t = this.j(this.options.keyframeOptions);
|
|
@@ -1416,45 +1352,43 @@ class ai extends he {
|
|
|
1416
1352
|
O() {
|
|
1417
1353
|
const t = [];
|
|
1418
1354
|
for (let e = this.element.parentNode; e; e = e == null ? void 0 : e.parentNode) {
|
|
1419
|
-
const i =
|
|
1355
|
+
const i = Qt.get(e);
|
|
1420
1356
|
i && !i.isDisabled() && i && t.push(i);
|
|
1421
1357
|
}
|
|
1422
1358
|
return t;
|
|
1423
1359
|
}
|
|
1424
1360
|
get isHostRendered() {
|
|
1425
|
-
const t =
|
|
1361
|
+
const t = Kt.has(this.u);
|
|
1426
1362
|
return t || this.u.updateComplete.then(() => {
|
|
1427
|
-
|
|
1363
|
+
Kt.add(this.u);
|
|
1428
1364
|
}), t;
|
|
1429
1365
|
}
|
|
1430
1366
|
j(t, e = this.O()) {
|
|
1431
|
-
const i = { ...
|
|
1367
|
+
const i = { ...ui };
|
|
1432
1368
|
return e.forEach((r) => Object.assign(i, r.options.keyframeOptions)), Object.assign(i, t), i;
|
|
1433
1369
|
}
|
|
1434
1370
|
N(t, e, i) {
|
|
1435
1371
|
t = { ...t }, e = { ...e };
|
|
1436
1372
|
const r = i.map((a) => a.animatingProperties).filter((a) => a !== void 0);
|
|
1437
|
-
let
|
|
1373
|
+
let n = 1, o = 1;
|
|
1438
1374
|
return r.length > 0 && (r.forEach((a) => {
|
|
1439
|
-
a.width && (
|
|
1440
|
-
}), t.left !== void 0 && e.left !== void 0 && (t.left =
|
|
1375
|
+
a.width && (n /= a.width), a.height && (o /= a.height);
|
|
1376
|
+
}), t.left !== void 0 && e.left !== void 0 && (t.left = n * t.left, e.left = n * e.left), t.top !== void 0 && e.top !== void 0 && (t.top = o * t.top, e.top = o * e.top)), { from: t, to: e };
|
|
1441
1377
|
}
|
|
1442
1378
|
calculateKeyframes(t, e, i = !1) {
|
|
1443
|
-
const r = {},
|
|
1444
|
-
let
|
|
1379
|
+
const r = {}, n = {};
|
|
1380
|
+
let o = !1;
|
|
1445
1381
|
const a = {};
|
|
1446
1382
|
for (const c in e) {
|
|
1447
|
-
const
|
|
1448
|
-
if (c in
|
|
1449
|
-
const
|
|
1450
|
-
if (
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
} else
|
|
1455
|
-
l !== h && l !== void 0 && h !== void 0 && (n = !0, r[c] = l, o[c] = h);
|
|
1383
|
+
const h = t[c], l = e[c];
|
|
1384
|
+
if (c in ht) {
|
|
1385
|
+
const d = ht[c];
|
|
1386
|
+
if (h === void 0 || l === void 0) continue;
|
|
1387
|
+
const u = d(h, l);
|
|
1388
|
+
u.transform !== void 0 && (a[c] = u.value, o = !0, r.transform = `${r.transform ?? ""} ${u.transform}`, u.overrideFrom !== void 0 && Object.assign(r, u.overrideFrom));
|
|
1389
|
+
} else h !== l && h !== void 0 && l !== void 0 && (o = !0, r[c] = h, n[c] = l);
|
|
1456
1390
|
}
|
|
1457
|
-
return r.transformOrigin =
|
|
1391
|
+
return r.transformOrigin = n.transformOrigin = i ? "center center" : "top left", this.animatingProperties = a, o ? [r, n] : void 0;
|
|
1458
1392
|
}
|
|
1459
1393
|
async animate(t, e = this.options.keyframeOptions) {
|
|
1460
1394
|
this.start(), this.frames = t;
|
|
@@ -1479,17 +1413,16 @@ class ai extends he {
|
|
|
1479
1413
|
this.shouldLog && !this.isDisabled() && console.log(t, this.options.id, e);
|
|
1480
1414
|
}
|
|
1481
1415
|
}
|
|
1482
|
-
const
|
|
1416
|
+
const vi = xt(gi), mi = { 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>' };
|
|
1483
1417
|
/**
|
|
1484
1418
|
* @license
|
|
1485
1419
|
* Copyright 2018 Google LLC
|
|
1486
1420
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1487
1421
|
*/
|
|
1488
|
-
const
|
|
1422
|
+
const te = xt(class extends ye {
|
|
1489
1423
|
constructor(s) {
|
|
1490
1424
|
var t;
|
|
1491
|
-
if (super(s), s.type !==
|
|
1492
|
-
throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
|
|
1425
|
+
if (super(s), s.type !== Ct.ATTRIBUTE || s.name !== "class" || ((t = s.strings) == null ? void 0 : t.length) > 2) throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
|
|
1493
1426
|
}
|
|
1494
1427
|
render(s) {
|
|
1495
1428
|
return " " + Object.keys(s).filter((t) => s[t]).join(" ") + " ";
|
|
@@ -1497,24 +1430,22 @@ const Zt = wt(class extends ce {
|
|
|
1497
1430
|
update(s, [t]) {
|
|
1498
1431
|
var i, r;
|
|
1499
1432
|
if (this.st === void 0) {
|
|
1500
|
-
this.st = /* @__PURE__ */ new Set(), s.strings !== void 0 && (this.nt = new Set(s.strings.join(" ").split(/\s/).filter((
|
|
1501
|
-
for (const
|
|
1502
|
-
t[o] && !((i = this.nt) != null && i.has(o)) && this.st.add(o);
|
|
1433
|
+
this.st = /* @__PURE__ */ new Set(), s.strings !== void 0 && (this.nt = new Set(s.strings.join(" ").split(/\s/).filter((n) => n !== "")));
|
|
1434
|
+
for (const n in t) t[n] && !((i = this.nt) != null && i.has(n)) && this.st.add(n);
|
|
1503
1435
|
return this.render(t);
|
|
1504
1436
|
}
|
|
1505
1437
|
const e = s.element.classList;
|
|
1506
|
-
for (const
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
n === this.st.has(o) || (r = this.nt) != null && r.has(o) || (n ? (e.add(o), this.st.add(o)) : (e.remove(o), this.st.delete(o)));
|
|
1438
|
+
for (const n of this.st) n in t || (e.remove(n), this.st.delete(n));
|
|
1439
|
+
for (const n in t) {
|
|
1440
|
+
const o = !!t[n];
|
|
1441
|
+
o === this.st.has(n) || (r = this.nt) != null && r.has(n) || (o ? (e.add(n), this.st.add(n)) : (e.remove(n), this.st.delete(n)));
|
|
1511
1442
|
}
|
|
1512
1443
|
return P;
|
|
1513
1444
|
}
|
|
1514
1445
|
}), y = (s, t, e) => {
|
|
1515
1446
|
s && e.style.setProperty(t, s);
|
|
1516
|
-
},
|
|
1517
|
-
var e, i, r,
|
|
1447
|
+
}, _e = (s, t) => {
|
|
1448
|
+
var e, i, r, n, o, a, c, h, l;
|
|
1518
1449
|
y((e = s.colors) == null ? void 0 : e.primaryBackground, "--primary-background", t), y(
|
|
1519
1450
|
(i = s.colors) == null ? void 0 : i.textOnPrimaryBackground,
|
|
1520
1451
|
"--text-on-primary-background",
|
|
@@ -1524,11 +1455,11 @@ const Zt = wt(class extends ce {
|
|
|
1524
1455
|
"--secondary-background",
|
|
1525
1456
|
t
|
|
1526
1457
|
), y(
|
|
1527
|
-
(
|
|
1458
|
+
(n = s.colors) == null ? void 0 : n.textOnSecondaryBackground,
|
|
1528
1459
|
"--text-on-secondary-background",
|
|
1529
1460
|
t
|
|
1530
1461
|
), y(
|
|
1531
|
-
(
|
|
1462
|
+
(o = s.colors) == null ? void 0 : o.interactiveDestructiveBackground,
|
|
1532
1463
|
"--destructive-color",
|
|
1533
1464
|
t
|
|
1534
1465
|
), y(
|
|
@@ -1540,39 +1471,38 @@ const Zt = wt(class extends ce {
|
|
|
1540
1471
|
"--interactive-primary-background",
|
|
1541
1472
|
t
|
|
1542
1473
|
), y(
|
|
1543
|
-
(
|
|
1474
|
+
(h = s.colors) == null ? void 0 : h.interactiveTextOnPrimaryBackground,
|
|
1544
1475
|
"--interactive-text-on-primary-background",
|
|
1545
1476
|
t
|
|
1546
|
-
), y((
|
|
1477
|
+
), y((l = s.colors) == null ? void 0 : l.focusColor, "--focus-color", t);
|
|
1547
1478
|
};
|
|
1548
1479
|
/**
|
|
1549
1480
|
* @license
|
|
1550
1481
|
* Copyright 2020 Google LLC
|
|
1551
1482
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1552
1483
|
*/
|
|
1553
|
-
const
|
|
1554
|
-
class
|
|
1484
|
+
const we = () => new yi();
|
|
1485
|
+
class yi {
|
|
1555
1486
|
}
|
|
1556
|
-
const
|
|
1487
|
+
const lt = /* @__PURE__ */ new WeakMap(), Ae = xt(class extends $e {
|
|
1557
1488
|
render(s) {
|
|
1558
|
-
return
|
|
1489
|
+
return p;
|
|
1559
1490
|
}
|
|
1560
1491
|
update(s, [t]) {
|
|
1561
1492
|
var i;
|
|
1562
1493
|
const e = t !== this.Y;
|
|
1563
|
-
return e && this.Y !== void 0 && this.rt(void 0), (e || this.lt !== this.ct) && (this.Y = t, this.ht = (i = s.options) == null ? void 0 : i.host, this.rt(this.ct = s.element)),
|
|
1494
|
+
return e && this.Y !== void 0 && this.rt(void 0), (e || this.lt !== this.ct) && (this.Y = t, this.ht = (i = s.options) == null ? void 0 : i.host, this.rt(this.ct = s.element)), p;
|
|
1564
1495
|
}
|
|
1565
1496
|
rt(s) {
|
|
1566
1497
|
if (this.isConnected || (s = void 0), typeof this.Y == "function") {
|
|
1567
1498
|
const t = this.ht ?? globalThis;
|
|
1568
|
-
let e =
|
|
1569
|
-
e === void 0 && (e = /* @__PURE__ */ new WeakMap(),
|
|
1570
|
-
} else
|
|
1571
|
-
this.Y.value = s;
|
|
1499
|
+
let e = lt.get(t);
|
|
1500
|
+
e === void 0 && (e = /* @__PURE__ */ new WeakMap(), lt.set(t, e)), e.get(this.Y) !== void 0 && this.Y.call(this.ht, void 0), e.set(this.Y, s), s !== void 0 && this.Y.call(this.ht, s);
|
|
1501
|
+
} else this.Y.value = s;
|
|
1572
1502
|
}
|
|
1573
1503
|
get lt() {
|
|
1574
1504
|
var s, t;
|
|
1575
|
-
return typeof this.Y == "function" ? (s =
|
|
1505
|
+
return typeof this.Y == "function" ? (s = lt.get(this.ht ?? globalThis)) == null ? void 0 : s.get(this.Y) : (t = this.Y) == null ? void 0 : t.value;
|
|
1576
1506
|
}
|
|
1577
1507
|
disconnected() {
|
|
1578
1508
|
this.lt === this.ct && this.rt(void 0);
|
|
@@ -1581,14 +1511,14 @@ const ct = /* @__PURE__ */ new WeakMap(), ue = wt(class extends he {
|
|
|
1581
1511
|
this.rt(this.ct);
|
|
1582
1512
|
}
|
|
1583
1513
|
});
|
|
1584
|
-
var
|
|
1585
|
-
for (var r =
|
|
1586
|
-
(
|
|
1587
|
-
return
|
|
1514
|
+
var bi = Object.defineProperty, F = (s, t, e, i) => {
|
|
1515
|
+
for (var r = void 0, n = s.length - 1, o; n >= 0; n--)
|
|
1516
|
+
(o = s[n]) && (r = o(t, e, r) || r);
|
|
1517
|
+
return r && bi(t, e, r), r;
|
|
1588
1518
|
};
|
|
1589
|
-
class
|
|
1519
|
+
const Pt = class Pt extends m {
|
|
1590
1520
|
constructor() {
|
|
1591
|
-
super(...arguments), this.active = !1, this.triggerVisible = !0, this.loaded = !1, this.containerRef =
|
|
1521
|
+
super(...arguments), this.active = !1, this.triggerVisible = !0, this.loaded = !1, this.containerRef = we(), this.widgetActive$ = new je(!1), this.componentIsDestroyed$ = new bt();
|
|
1592
1522
|
}
|
|
1593
1523
|
async connectedCallback() {
|
|
1594
1524
|
super.connectedCallback(), this.icon = await this._renderSymbol(), this.loaded = !0, this._applyBranding();
|
|
@@ -1623,28 +1553,28 @@ class w extends m {
|
|
|
1623
1553
|
}
|
|
1624
1554
|
_applyBranding() {
|
|
1625
1555
|
var t;
|
|
1626
|
-
(t = this.application) != null && t.settings &&
|
|
1556
|
+
(t = this.application) != null && t.settings && _e(this.application.settings.branding, this);
|
|
1627
1557
|
}
|
|
1628
1558
|
async _renderSymbol() {
|
|
1629
|
-
var a, c,
|
|
1559
|
+
var a, c, h;
|
|
1630
1560
|
const t = (a = this.application) == null ? void 0 : a.branding(), e = (c = t == null ? void 0 : t.graphics) == null ? void 0 : c.trigger;
|
|
1631
1561
|
if (e)
|
|
1632
1562
|
return x` <img src=${e} class="trigger-icon" alt="" /> `;
|
|
1633
|
-
const i = (
|
|
1563
|
+
const i = (h = this.application) == null ? void 0 : h.triggerIcon;
|
|
1634
1564
|
if (!i)
|
|
1635
|
-
return
|
|
1636
|
-
const r = async (
|
|
1637
|
-
switch (
|
|
1565
|
+
return p;
|
|
1566
|
+
const r = async (l) => mi, { type: n, content: o } = i;
|
|
1567
|
+
switch (n) {
|
|
1638
1568
|
case "Telia": {
|
|
1639
|
-
const
|
|
1640
|
-
return
|
|
1569
|
+
const l = await r();
|
|
1570
|
+
return l ? x`<telia-icon
|
|
1641
1571
|
class="trigger-icon"
|
|
1642
|
-
svg=${
|
|
1572
|
+
svg=${l.svg}
|
|
1643
1573
|
size="lg"
|
|
1644
|
-
></telia-icon>` :
|
|
1574
|
+
></telia-icon>` : p;
|
|
1645
1575
|
}
|
|
1646
1576
|
default:
|
|
1647
|
-
return
|
|
1577
|
+
return p;
|
|
1648
1578
|
}
|
|
1649
1579
|
}
|
|
1650
1580
|
hideTrigger() {
|
|
@@ -1656,31 +1586,31 @@ class w extends m {
|
|
|
1656
1586
|
render() {
|
|
1657
1587
|
var t, e, i, r;
|
|
1658
1588
|
return x`<div
|
|
1659
|
-
class=${
|
|
1589
|
+
class=${te({
|
|
1660
1590
|
"trigger-container": !0,
|
|
1661
1591
|
hidden: !this.triggerVisible
|
|
1662
1592
|
})}
|
|
1663
|
-
${
|
|
1593
|
+
${Ae(this.containerRef)}
|
|
1664
1594
|
>
|
|
1665
1595
|
${!this.active && ((r = (i = (e = (t = this.application) == null ? void 0 : t.settings) == null ? void 0 : e.branding) == null ? void 0 : i.other) != null && r.showButtonLabel) ? x`
|
|
1666
1596
|
<button
|
|
1667
1597
|
label="${this.application.settings.branding.other.buttonLabelText ?? "Widget trigger"}"
|
|
1668
1598
|
class="trigger-label"
|
|
1669
1599
|
@click=${this.toggleActive}
|
|
1670
|
-
${
|
|
1600
|
+
${vi({
|
|
1671
1601
|
keyframeOptions: {},
|
|
1672
|
-
in:
|
|
1602
|
+
in: pi,
|
|
1673
1603
|
stabilizeOut: !0,
|
|
1674
1604
|
skipInitial: !1
|
|
1675
1605
|
})}
|
|
1676
1606
|
>
|
|
1677
1607
|
${this.application.settings.branding.other.buttonLabelText}
|
|
1678
1608
|
</button>
|
|
1679
|
-
` :
|
|
1609
|
+
` : p}
|
|
1680
1610
|
|
|
1681
1611
|
<button
|
|
1682
1612
|
label="Widget trigger"
|
|
1683
|
-
class=${
|
|
1613
|
+
class=${te({
|
|
1684
1614
|
trigger: !0,
|
|
1685
1615
|
active: this.active,
|
|
1686
1616
|
rendered: this.loaded
|
|
@@ -1718,9 +1648,9 @@ class w extends m {
|
|
|
1718
1648
|
</button>
|
|
1719
1649
|
</div>`;
|
|
1720
1650
|
}
|
|
1721
|
-
}
|
|
1722
|
-
|
|
1723
|
-
|
|
1651
|
+
};
|
|
1652
|
+
Pt.styles = [
|
|
1653
|
+
k`
|
|
1724
1654
|
:host {
|
|
1725
1655
|
--voca-rem-multiplier: 0.625;
|
|
1726
1656
|
--trigger-label-bg: #f5e0ff;
|
|
@@ -1851,42 +1781,43 @@ w.styles = [
|
|
|
1851
1781
|
}
|
|
1852
1782
|
`
|
|
1853
1783
|
];
|
|
1854
|
-
|
|
1784
|
+
let $ = Pt;
|
|
1785
|
+
F([
|
|
1855
1786
|
g({ attribute: !1 })
|
|
1856
|
-
],
|
|
1857
|
-
|
|
1787
|
+
], $.prototype, "application");
|
|
1788
|
+
F([
|
|
1858
1789
|
U()
|
|
1859
|
-
],
|
|
1860
|
-
|
|
1790
|
+
], $.prototype, "active");
|
|
1791
|
+
F([
|
|
1861
1792
|
U()
|
|
1862
|
-
],
|
|
1863
|
-
|
|
1793
|
+
], $.prototype, "triggerVisible");
|
|
1794
|
+
F([
|
|
1864
1795
|
U()
|
|
1865
|
-
],
|
|
1866
|
-
|
|
1796
|
+
], $.prototype, "loaded");
|
|
1797
|
+
F([
|
|
1867
1798
|
U()
|
|
1868
|
-
],
|
|
1869
|
-
var
|
|
1870
|
-
for (var r =
|
|
1871
|
-
(
|
|
1872
|
-
return
|
|
1799
|
+
], $.prototype, "icon");
|
|
1800
|
+
var $i = Object.defineProperty, C = (s, t, e, i) => {
|
|
1801
|
+
for (var r = void 0, n = s.length - 1, o; n >= 0; n--)
|
|
1802
|
+
(o = s[n]) && (r = o(t, e, r) || r);
|
|
1803
|
+
return r && $i(t, e, r), r;
|
|
1873
1804
|
};
|
|
1874
|
-
const
|
|
1875
|
-
class
|
|
1805
|
+
const Ce = (s) => {
|
|
1806
|
+
const e = class e extends s {
|
|
1876
1807
|
constructor() {
|
|
1877
1808
|
super(...arguments), this.properties = {}, this.context = {}, this.layout = {}, this.nodes = [];
|
|
1878
1809
|
}
|
|
1879
|
-
writeProperties(
|
|
1880
|
-
this.properties =
|
|
1810
|
+
writeProperties(r) {
|
|
1811
|
+
this.properties = r;
|
|
1881
1812
|
}
|
|
1882
|
-
writeLayout(
|
|
1883
|
-
this.layout =
|
|
1813
|
+
writeLayout(r) {
|
|
1814
|
+
this.layout = r;
|
|
1884
1815
|
}
|
|
1885
|
-
writeContext(
|
|
1886
|
-
this.context =
|
|
1816
|
+
writeContext(r) {
|
|
1817
|
+
this.context = r;
|
|
1887
1818
|
}
|
|
1888
|
-
addChild(
|
|
1889
|
-
|
|
1819
|
+
addChild(r) {
|
|
1820
|
+
r.parent = this, this.nodes.push(r);
|
|
1890
1821
|
}
|
|
1891
1822
|
connectedCallback() {
|
|
1892
1823
|
super.connectedCallback(), this.renderRoot.host.style.setProperty(
|
|
@@ -1894,10 +1825,10 @@ const fe = (s) => {
|
|
|
1894
1825
|
this.layout.size === "full" ? "var(--columns, 1)" : `min(${this.layout.size || "var(--columns)"}, var(--columns))`
|
|
1895
1826
|
), this.application.mountComponent(this);
|
|
1896
1827
|
}
|
|
1897
|
-
}
|
|
1898
|
-
|
|
1828
|
+
};
|
|
1829
|
+
e.styles = [
|
|
1899
1830
|
// (superClass as unknown as typeof LitElement).styles ?? [],
|
|
1900
|
-
|
|
1831
|
+
k`
|
|
1901
1832
|
:host {
|
|
1902
1833
|
font-family: var(--font-family);
|
|
1903
1834
|
grid-column: span var(--width);
|
|
@@ -1910,53 +1841,54 @@ const fe = (s) => {
|
|
|
1910
1841
|
box-sizing: border-box;
|
|
1911
1842
|
}
|
|
1912
1843
|
`
|
|
1913
|
-
]
|
|
1844
|
+
];
|
|
1845
|
+
let t = e;
|
|
1846
|
+
return C([
|
|
1914
1847
|
g()
|
|
1915
|
-
], t.prototype, "properties"
|
|
1848
|
+
], t.prototype, "properties"), C([
|
|
1916
1849
|
g()
|
|
1917
|
-
], t.prototype, "context"
|
|
1850
|
+
], t.prototype, "context"), C([
|
|
1918
1851
|
g()
|
|
1919
|
-
], t.prototype, "layout"
|
|
1852
|
+
], t.prototype, "layout"), C([
|
|
1920
1853
|
g()
|
|
1921
|
-
], t.prototype, "name"
|
|
1854
|
+
], t.prototype, "name"), C([
|
|
1922
1855
|
g()
|
|
1923
|
-
], t.prototype, "type"
|
|
1856
|
+
], t.prototype, "type"), C([
|
|
1924
1857
|
g({ attribute: !1 })
|
|
1925
|
-
], t.prototype, "application"
|
|
1858
|
+
], t.prototype, "application"), C([
|
|
1926
1859
|
g({ attribute: !1 })
|
|
1927
|
-
], t.prototype, "parent"
|
|
1928
|
-
}
|
|
1929
|
-
class ge extends fe(m) {
|
|
1860
|
+
], t.prototype, "parent"), t;
|
|
1861
|
+
}, kt = class kt extends Ce(m) {
|
|
1930
1862
|
render() {
|
|
1931
1863
|
return x`Non resolved component`;
|
|
1932
1864
|
}
|
|
1933
|
-
}
|
|
1934
|
-
|
|
1935
|
-
|
|
1865
|
+
};
|
|
1866
|
+
kt.styles = [
|
|
1867
|
+
k`
|
|
1936
1868
|
:host {
|
|
1937
1869
|
display: block;
|
|
1938
1870
|
}
|
|
1939
1871
|
`
|
|
1940
1872
|
];
|
|
1873
|
+
let yt = kt;
|
|
1941
1874
|
/**
|
|
1942
1875
|
* @license
|
|
1943
1876
|
* Copyright 2021 Google LLC
|
|
1944
1877
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1945
1878
|
*/
|
|
1946
|
-
function*
|
|
1879
|
+
function* _i(s, t) {
|
|
1947
1880
|
if (s !== void 0) {
|
|
1948
1881
|
let e = 0;
|
|
1949
|
-
for (const i of s)
|
|
1950
|
-
yield t(i, e++);
|
|
1882
|
+
for (const i of s) yield t(i, e++);
|
|
1951
1883
|
}
|
|
1952
1884
|
}
|
|
1953
|
-
var
|
|
1885
|
+
var V = /* @__PURE__ */ ((s) => (s.Inline = "inline", s.Trigger = "trigger", s))(V || {});
|
|
1954
1886
|
/**
|
|
1955
1887
|
* @license
|
|
1956
1888
|
* Copyright 2021 Google LLC
|
|
1957
1889
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1958
1890
|
*/
|
|
1959
|
-
let
|
|
1891
|
+
let wi = class extends Event {
|
|
1960
1892
|
constructor(t, e, i) {
|
|
1961
1893
|
super("context-request", { bubbles: !0, composed: !0 }), this.context = t, this.callback = e, this.subscribe = i ?? !1;
|
|
1962
1894
|
}
|
|
@@ -1971,7 +1903,7 @@ let vi = class extends Event {
|
|
|
1971
1903
|
* Copyright 2021 Google LLC
|
|
1972
1904
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1973
1905
|
*/
|
|
1974
|
-
class
|
|
1906
|
+
class Ai {
|
|
1975
1907
|
get value() {
|
|
1976
1908
|
return this.o;
|
|
1977
1909
|
}
|
|
@@ -1984,13 +1916,11 @@ class mi {
|
|
|
1984
1916
|
}
|
|
1985
1917
|
constructor(t) {
|
|
1986
1918
|
this.subscriptions = /* @__PURE__ */ new Map(), this.updateObservers = () => {
|
|
1987
|
-
for (const [e, { disposer: i }] of this.subscriptions)
|
|
1988
|
-
e(this.o, i);
|
|
1919
|
+
for (const [e, { disposer: i }] of this.subscriptions) e(this.o, i);
|
|
1989
1920
|
}, t !== void 0 && (this.value = t);
|
|
1990
1921
|
}
|
|
1991
1922
|
addCallback(t, e, i) {
|
|
1992
|
-
if (!i)
|
|
1993
|
-
return void t(this.value);
|
|
1923
|
+
if (!i) return void t(this.value);
|
|
1994
1924
|
this.subscriptions.has(t) || this.subscriptions.set(t, { disposer: () => {
|
|
1995
1925
|
this.subscriptions.delete(t);
|
|
1996
1926
|
}, consumerHost: e });
|
|
@@ -2006,32 +1936,30 @@ class mi {
|
|
|
2006
1936
|
* Copyright 2021 Google LLC
|
|
2007
1937
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2008
1938
|
*/
|
|
2009
|
-
let
|
|
1939
|
+
let Ci = class extends Event {
|
|
2010
1940
|
constructor(t) {
|
|
2011
1941
|
super("context-provider", { bubbles: !0, composed: !0 }), this.context = t;
|
|
2012
1942
|
}
|
|
2013
1943
|
};
|
|
2014
|
-
class
|
|
1944
|
+
class ee extends Ai {
|
|
2015
1945
|
constructor(t, e, i) {
|
|
2016
|
-
var r,
|
|
2017
|
-
super(e.context !== void 0 ? e.initialValue : i), this.onContextRequest = (
|
|
2018
|
-
const a =
|
|
2019
|
-
|
|
2020
|
-
}, this.onProviderRequest = (
|
|
2021
|
-
const a =
|
|
2022
|
-
if (
|
|
2023
|
-
return;
|
|
1946
|
+
var r, n;
|
|
1947
|
+
super(e.context !== void 0 ? e.initialValue : i), this.onContextRequest = (o) => {
|
|
1948
|
+
const a = o.composedPath()[0];
|
|
1949
|
+
o.context === this.context && a !== this.host && (o.stopPropagation(), this.addCallback(o.callback, a, o.subscribe));
|
|
1950
|
+
}, this.onProviderRequest = (o) => {
|
|
1951
|
+
const a = o.composedPath()[0];
|
|
1952
|
+
if (o.context !== this.context || a === this.host) return;
|
|
2024
1953
|
const c = /* @__PURE__ */ new Set();
|
|
2025
|
-
for (const [
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
}, this.host = t, e.context !== void 0 ? this.context = e.context : this.context = e, this.attachListeners(), (o = (r = this.host).addController) == null || o.call(r, this);
|
|
1954
|
+
for (const [h, { consumerHost: l }] of this.subscriptions) c.has(h) || (c.add(h), l.dispatchEvent(new wi(this.context, h, !0)));
|
|
1955
|
+
o.stopPropagation();
|
|
1956
|
+
}, this.host = t, e.context !== void 0 ? this.context = e.context : this.context = e, this.attachListeners(), (n = (r = this.host).addController) == null || n.call(r, this);
|
|
2029
1957
|
}
|
|
2030
1958
|
attachListeners() {
|
|
2031
1959
|
this.host.addEventListener("context-request", this.onContextRequest), this.host.addEventListener("context-provider", this.onProviderRequest);
|
|
2032
1960
|
}
|
|
2033
1961
|
hostConnected() {
|
|
2034
|
-
this.host.dispatchEvent(new
|
|
1962
|
+
this.host.dispatchEvent(new Ci(this.context));
|
|
2035
1963
|
}
|
|
2036
1964
|
}
|
|
2037
1965
|
/**
|
|
@@ -2039,53 +1967,51 @@ class qt extends mi {
|
|
|
2039
1967
|
* Copyright 2017 Google LLC
|
|
2040
1968
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2041
1969
|
*/
|
|
2042
|
-
function
|
|
1970
|
+
function xi({ context: s }) {
|
|
2043
1971
|
return (t, e) => {
|
|
2044
1972
|
const i = /* @__PURE__ */ new WeakMap();
|
|
2045
|
-
if (typeof e == "object")
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
} };
|
|
1973
|
+
if (typeof e == "object") return e.addInitializer(function() {
|
|
1974
|
+
i.set(this, new ee(this, { context: s }));
|
|
1975
|
+
}), { get() {
|
|
1976
|
+
return t.get.call(this);
|
|
1977
|
+
}, set(r) {
|
|
1978
|
+
var n;
|
|
1979
|
+
return (n = i.get(this)) == null || n.setValue(r), t.set.call(this, r);
|
|
1980
|
+
}, init(r) {
|
|
1981
|
+
var n;
|
|
1982
|
+
return (n = i.get(this)) == null || n.setValue(r), r;
|
|
1983
|
+
} };
|
|
2057
1984
|
{
|
|
2058
|
-
t.constructor.addInitializer((
|
|
2059
|
-
i.set(
|
|
1985
|
+
t.constructor.addInitializer((o) => {
|
|
1986
|
+
i.set(o, new ee(o, { context: s }));
|
|
2060
1987
|
});
|
|
2061
1988
|
const r = Object.getOwnPropertyDescriptor(t, e);
|
|
2062
|
-
let
|
|
1989
|
+
let n;
|
|
2063
1990
|
if (r === void 0) {
|
|
2064
|
-
const
|
|
2065
|
-
|
|
2066
|
-
return
|
|
1991
|
+
const o = /* @__PURE__ */ new WeakMap();
|
|
1992
|
+
n = { get() {
|
|
1993
|
+
return o.get(this);
|
|
2067
1994
|
}, set(a) {
|
|
2068
|
-
i.get(this).setValue(a),
|
|
1995
|
+
i.get(this).setValue(a), o.set(this, a);
|
|
2069
1996
|
}, configurable: !0, enumerable: !0 };
|
|
2070
1997
|
} else {
|
|
2071
|
-
const
|
|
2072
|
-
|
|
2073
|
-
i.get(this).setValue(a),
|
|
1998
|
+
const o = r.set;
|
|
1999
|
+
n = { ...r, set(a) {
|
|
2000
|
+
i.get(this).setValue(a), o == null || o.call(this, a);
|
|
2074
2001
|
} };
|
|
2075
2002
|
}
|
|
2076
|
-
return void Object.defineProperty(t, e,
|
|
2003
|
+
return void Object.defineProperty(t, e, n);
|
|
2077
2004
|
}
|
|
2078
2005
|
};
|
|
2079
2006
|
}
|
|
2080
|
-
var
|
|
2081
|
-
for (var r =
|
|
2082
|
-
(
|
|
2083
|
-
return
|
|
2007
|
+
var Ei = Object.defineProperty, Si = (s, t, e, i) => {
|
|
2008
|
+
for (var r = void 0, n = s.length - 1, o; n >= 0; n--)
|
|
2009
|
+
(o = s[n]) && (r = o(t, e, r) || r);
|
|
2010
|
+
return r && Ei(t, e, r), r;
|
|
2084
2011
|
};
|
|
2085
|
-
const
|
|
2086
|
-
class At extends m {
|
|
2012
|
+
const Pi = "application", Ot = class Ot extends m {
|
|
2087
2013
|
constructor() {
|
|
2088
|
-
super(...arguments), this.nodes = [], this.wrapperRef =
|
|
2014
|
+
super(...arguments), this.nodes = [], this.wrapperRef = we();
|
|
2089
2015
|
}
|
|
2090
2016
|
addChild(t) {
|
|
2091
2017
|
t.parent = this, this.nodes.push(t);
|
|
@@ -2094,7 +2020,7 @@ class At extends m {
|
|
|
2094
2020
|
if (!this.wrapperRef.value)
|
|
2095
2021
|
return;
|
|
2096
2022
|
const t = this.application.settings;
|
|
2097
|
-
t != null && t.branding &&
|
|
2023
|
+
t != null && t.branding && _e(t.branding, this.wrapperRef.value);
|
|
2098
2024
|
}
|
|
2099
2025
|
applyStyles() {
|
|
2100
2026
|
if (!this.wrapperRef.value)
|
|
@@ -2110,12 +2036,12 @@ class At extends m {
|
|
|
2110
2036
|
render() {
|
|
2111
2037
|
var i, r;
|
|
2112
2038
|
const t = this.application.settings.components.conversation;
|
|
2113
|
-
return ((r = (i = t == null ? void 0 : t.properties) == null ? void 0 : i.chat) == null ? void 0 : r.isThirdPartyWidget) ? this.renderRoot.host.classList.add("third-party") : this.application.renderStrategy ===
|
|
2114
|
-
${
|
|
2039
|
+
return ((r = (i = t == null ? void 0 : t.properties) == null ? void 0 : i.chat) == null ? void 0 : r.isThirdPartyWidget) ? this.renderRoot.host.classList.add("third-party") : this.application.renderStrategy === V.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")), window.self !== window.top && this.renderRoot.host.classList.add("embedded"), x`<div class="widget-container" ${Ae(this.wrapperRef)}>
|
|
2040
|
+
${_i(this.nodes, (n) => n)}
|
|
2115
2041
|
</div>`;
|
|
2116
2042
|
}
|
|
2117
|
-
}
|
|
2118
|
-
|
|
2043
|
+
};
|
|
2044
|
+
Ot.styles = k`
|
|
2119
2045
|
:host {
|
|
2120
2046
|
--font-family: TeliaSans, Helvetica, Arial, Lucida Grande, sans-serif;
|
|
2121
2047
|
--spacing-xs: 0.2rem;
|
|
@@ -2251,16 +2177,56 @@ At.styles = O`
|
|
|
2251
2177
|
pointer-events: none;
|
|
2252
2178
|
}
|
|
2253
2179
|
`;
|
|
2254
|
-
|
|
2180
|
+
let J = Ot;
|
|
2181
|
+
Si([
|
|
2255
2182
|
g({ attribute: !1 }),
|
|
2256
|
-
|
|
2257
|
-
],
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
|
|
2183
|
+
xi({ context: Pi })
|
|
2184
|
+
], J.prototype, "application");
|
|
2185
|
+
const Q = class Q {
|
|
2186
|
+
// TODO:
|
|
2187
|
+
// private static endpoint = 'http://localhost:5299/api'; // TODO:
|
|
2188
|
+
constructor(t = Q.endpoint) {
|
|
2189
|
+
this._endpoint = t;
|
|
2190
|
+
}
|
|
2191
|
+
async getSite(t) {
|
|
2192
|
+
const i = await (await fetch(t)).json();
|
|
2193
|
+
return i ? {
|
|
2194
|
+
id: i.id,
|
|
2195
|
+
triggers: i.triggers || [],
|
|
2196
|
+
apps: (i.widgets || []).map((r) => {
|
|
2197
|
+
let n = V.Trigger;
|
|
2198
|
+
r.renderStrategy.toLowerCase() === "inline" && (n = V.Inline);
|
|
2199
|
+
const o = r.widgetId ? r.widgetId : r.id, a = typeof r.autoActivate == "boolean" ? r.autoActivate : !1, c = typeof r.anchor == "string" ? r.anchor : "BottomRight", h = typeof r.triggerIcon == "string" ? r.triggerIcon : "question";
|
|
2200
|
+
return {
|
|
2201
|
+
id: o,
|
|
2202
|
+
widgetId: o,
|
|
2203
|
+
renderStrategy: n,
|
|
2204
|
+
autoActivate: a,
|
|
2205
|
+
anchor: c,
|
|
2206
|
+
triggerIcon: {
|
|
2207
|
+
type: "Telia",
|
|
2208
|
+
content: h
|
|
2209
|
+
}
|
|
2210
|
+
};
|
|
2211
|
+
})
|
|
2212
|
+
} : null;
|
|
2213
|
+
}
|
|
2214
|
+
async getWidget(t) {
|
|
2215
|
+
const i = await (await fetch(`${this._endpoint}/widget/${t}`)).json();
|
|
2216
|
+
return i ? {
|
|
2217
|
+
name: i.name,
|
|
2218
|
+
config: JSON.parse(i.configuration)
|
|
2219
|
+
} : null;
|
|
2220
|
+
}
|
|
2262
2221
|
};
|
|
2263
|
-
|
|
2222
|
+
Q.endpoint = "https://widgets.ace.teliacompany.net/api";
|
|
2223
|
+
let ie = Q;
|
|
2224
|
+
var ki = Object.defineProperty, Et = (s, t, e, i) => {
|
|
2225
|
+
for (var r = void 0, n = s.length - 1, o; n >= 0; n--)
|
|
2226
|
+
(o = s[n]) && (r = o(t, e, r) || r);
|
|
2227
|
+
return r && ki(t, e, r), r;
|
|
2228
|
+
};
|
|
2229
|
+
const Tt = class Tt extends m {
|
|
2264
2230
|
constructor() {
|
|
2265
2231
|
super(), this.status = "deactivated", this.addEventListener("environment-created", this.onEnvironmentCreated);
|
|
2266
2232
|
}
|
|
@@ -2284,36 +2250,37 @@ class z extends m {
|
|
|
2284
2250
|
}
|
|
2285
2251
|
render() {
|
|
2286
2252
|
if (!this.widget || this.status !== "activated")
|
|
2287
|
-
return
|
|
2288
|
-
if (this.widget.renderStrategy ===
|
|
2289
|
-
const t = new
|
|
2253
|
+
return p;
|
|
2254
|
+
if (this.widget.renderStrategy === V.Trigger) {
|
|
2255
|
+
const t = new $();
|
|
2290
2256
|
return t.application = this.widget, t;
|
|
2291
2257
|
}
|
|
2292
2258
|
return this.widget.render();
|
|
2293
2259
|
}
|
|
2294
|
-
}
|
|
2295
|
-
|
|
2296
|
-
|
|
2260
|
+
};
|
|
2261
|
+
Tt.styles = [
|
|
2262
|
+
k`
|
|
2297
2263
|
:host {
|
|
2298
2264
|
display: block;
|
|
2299
2265
|
}
|
|
2300
2266
|
`
|
|
2301
2267
|
];
|
|
2302
|
-
|
|
2268
|
+
let H = Tt;
|
|
2269
|
+
Et([
|
|
2303
2270
|
g({ attribute: !0 })
|
|
2304
|
-
],
|
|
2305
|
-
|
|
2271
|
+
], H.prototype, "name");
|
|
2272
|
+
Et([
|
|
2306
2273
|
U()
|
|
2307
|
-
],
|
|
2308
|
-
|
|
2274
|
+
], H.prototype, "widget");
|
|
2275
|
+
Et([
|
|
2309
2276
|
U()
|
|
2310
|
-
],
|
|
2311
|
-
customElements.get("ace-trigger-slot") || customElements.define("ace-trigger-slot",
|
|
2312
|
-
customElements.get("ace-trigger") || customElements.define("ace-trigger",
|
|
2313
|
-
customElements.get("ace-unresolved-component") || customElements.define("ace-unresolved-component",
|
|
2314
|
-
customElements.get("ace-wrapper") || customElements.define("ace-wrapper",
|
|
2315
|
-
customElements.get("ace-widget") || customElements.define("ace-widget",
|
|
2316
|
-
const
|
|
2277
|
+
], H.prototype, "status");
|
|
2278
|
+
customElements.get("ace-trigger-slot") || customElements.define("ace-trigger-slot", G);
|
|
2279
|
+
customElements.get("ace-trigger") || customElements.define("ace-trigger", $);
|
|
2280
|
+
customElements.get("ace-unresolved-component") || customElements.define("ace-unresolved-component", yt);
|
|
2281
|
+
customElements.get("ace-wrapper") || customElements.define("ace-wrapper", J);
|
|
2282
|
+
customElements.get("ace-widget") || customElements.define("ace-widget", H);
|
|
2283
|
+
const Oi = Ke`
|
|
2317
2284
|
<g clip-path="url(#clip0_119_1665)">
|
|
2318
2285
|
<path d="M16.9321 27.4656C11.5983 29.6245 8.54568 28.9365 6.85856 27.5904L6.83398 27.5712C9.44534 30.1717 12.4221 32.0011 15.0324 32.0011C19.6033 32.0011 25.8614 26.4651 28.8232 17.8805C27.1542 20.9792 23.5727 24.7861 16.9321 27.4656Z" fill="#990AE3"/>
|
|
2319
2286
|
<path d="M20.9805 22.4843C25.1369 20.0779 28.8809 15.9968 30.0615 13.0869C30.397 10.6784 30.4654 10.3744 30.506 7.72479C30.5113 7.35786 30.4889 7.00586 30.4547 6.66879C30.2122 10.56 25.1743 15.4528 18.5092 18.6496C10.4689 22.5056 4.43734 23.5435 1.74585 20.6027C2.68077 22.4459 3.29407 23.3408 4.34545 24.7083C7.45044 27.4539 13.9852 26.5355 20.9805 22.4843Z" fill="#990AE3"/>
|
|
@@ -2331,11 +2298,10 @@ const Ei = Be`
|
|
|
2331
2298
|
<clipPath id="clip0_119_1665">
|
|
2332
2299
|
<rect width="30.5068" height="32.0011" fill="white"/>
|
|
2333
2300
|
</clipPath>
|
|
2334
|
-
</defs>`,
|
|
2335
|
-
class Si extends ve {
|
|
2301
|
+
</defs>`, se = Ce(m), Mt = class Mt extends se {
|
|
2336
2302
|
render() {
|
|
2337
2303
|
var e;
|
|
2338
|
-
return (e = this.application.branding().other) != null && e.whiteLabel ?
|
|
2304
|
+
return (e = this.application.branding().other) != null && e.whiteLabel ? p : x` <div class="copyright">
|
|
2339
2305
|
<a
|
|
2340
2306
|
aria-label="Powered by Telia ACE"
|
|
2341
2307
|
href="https://ace-showcase.com"
|
|
@@ -2350,15 +2316,15 @@ class Si extends ve {
|
|
|
2350
2316
|
fill="none"
|
|
2351
2317
|
xmlns="http://www.w3.org/2000/svg"
|
|
2352
2318
|
>
|
|
2353
|
-
${
|
|
2319
|
+
${Oi}
|
|
2354
2320
|
</svg>
|
|
2355
2321
|
</a>
|
|
2356
2322
|
</div>`;
|
|
2357
2323
|
}
|
|
2358
|
-
}
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2324
|
+
};
|
|
2325
|
+
Mt.styles = [
|
|
2326
|
+
se.styles || [],
|
|
2327
|
+
k`
|
|
2362
2328
|
:host {
|
|
2363
2329
|
--copyright-text-color: var(--text-on-primary-background);
|
|
2364
2330
|
}
|
|
@@ -2393,7 +2359,8 @@ Si.styles = [
|
|
|
2393
2359
|
}
|
|
2394
2360
|
`
|
|
2395
2361
|
];
|
|
2362
|
+
let re = Mt;
|
|
2396
2363
|
export {
|
|
2397
|
-
|
|
2398
|
-
|
|
2364
|
+
re as Copyright,
|
|
2365
|
+
re as default
|
|
2399
2366
|
};
|