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