@telia-ace/widget-core-flamingo 1.1.32 → 1.1.33-rc.1
Sign up to get free protection for your applications and to get access to all the features.
- package/components/trigger-slot.component.d.ts +8 -0
- package/components/trigger.component.d.ts +1 -3
- package/index.js +53 -35
- package/index.mjs +752 -699
- package/models/application.d.ts +5 -1
- package/package.json +1 -1
- package/types.d.ts +4 -0
package/index.mjs
CHANGED
@@ -1,45 +1,45 @@
|
|
1
|
-
var
|
2
|
-
return
|
1
|
+
var ut = function(r, t) {
|
2
|
+
return ut = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, i) {
|
3
3
|
e.__proto__ = i;
|
4
4
|
} || function(e, i) {
|
5
|
-
for (var
|
6
|
-
Object.prototype.hasOwnProperty.call(i,
|
7
|
-
},
|
5
|
+
for (var s in i)
|
6
|
+
Object.prototype.hasOwnProperty.call(i, s) && (e[s] = i[s]);
|
7
|
+
}, ut(r, t);
|
8
8
|
};
|
9
|
-
function D(
|
9
|
+
function D(r, t) {
|
10
10
|
if (typeof t != "function" && t !== null)
|
11
11
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
12
|
-
|
12
|
+
ut(r, t);
|
13
13
|
function e() {
|
14
|
-
this.constructor =
|
14
|
+
this.constructor = r;
|
15
15
|
}
|
16
|
-
|
16
|
+
r.prototype = t === null ? Object.create(t) : (e.prototype = t.prototype, new e());
|
17
17
|
}
|
18
|
-
function
|
19
|
-
var t = typeof Symbol == "function" && Symbol.iterator, e = t &&
|
18
|
+
function ft(r) {
|
19
|
+
var t = typeof Symbol == "function" && Symbol.iterator, e = t && r[t], i = 0;
|
20
20
|
if (e)
|
21
|
-
return e.call(
|
22
|
-
if (
|
21
|
+
return e.call(r);
|
22
|
+
if (r && typeof r.length == "number")
|
23
23
|
return {
|
24
24
|
next: function() {
|
25
|
-
return
|
25
|
+
return r && i >= r.length && (r = void 0), { value: r && r[i++], done: !r };
|
26
26
|
}
|
27
27
|
};
|
28
28
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
29
29
|
}
|
30
|
-
function
|
31
|
-
var e = typeof Symbol == "function" &&
|
30
|
+
function q(r, t) {
|
31
|
+
var e = typeof Symbol == "function" && r[Symbol.iterator];
|
32
32
|
if (!e)
|
33
|
-
return
|
34
|
-
var i = e.call(
|
33
|
+
return r;
|
34
|
+
var i = e.call(r), s, n = [], o;
|
35
35
|
try {
|
36
|
-
for (; (t === void 0 || t-- > 0) && !(
|
37
|
-
n.push(
|
36
|
+
for (; (t === void 0 || t-- > 0) && !(s = i.next()).done; )
|
37
|
+
n.push(s.value);
|
38
38
|
} catch (a) {
|
39
39
|
o = { error: a };
|
40
40
|
} finally {
|
41
41
|
try {
|
42
|
-
|
42
|
+
s && !s.done && (e = i.return) && e.call(i);
|
43
43
|
} finally {
|
44
44
|
if (o)
|
45
45
|
throw o.error;
|
@@ -47,54 +47,54 @@ function K(s, t) {
|
|
47
47
|
}
|
48
48
|
return n;
|
49
49
|
}
|
50
|
-
function
|
50
|
+
function K(r, t, e) {
|
51
51
|
if (e || arguments.length === 2)
|
52
|
-
for (var i = 0,
|
52
|
+
for (var i = 0, s = t.length, n; i < s; i++)
|
53
53
|
(n || !(i in t)) && (n || (n = Array.prototype.slice.call(t, 0, i)), n[i] = t[i]);
|
54
|
-
return
|
54
|
+
return r.concat(n || Array.prototype.slice.call(t));
|
55
55
|
}
|
56
|
-
function
|
57
|
-
return typeof
|
56
|
+
function b(r) {
|
57
|
+
return typeof r == "function";
|
58
58
|
}
|
59
|
-
function
|
59
|
+
function Kt(r) {
|
60
60
|
var t = function(i) {
|
61
61
|
Error.call(i), i.stack = new Error().stack;
|
62
|
-
}, e =
|
62
|
+
}, e = r(t);
|
63
63
|
return e.prototype = Object.create(Error.prototype), e.prototype.constructor = e, e;
|
64
64
|
}
|
65
|
-
var st =
|
65
|
+
var st = Kt(function(r) {
|
66
66
|
return function(e) {
|
67
|
-
|
68
|
-
` + e.map(function(i,
|
69
|
-
return
|
67
|
+
r(this), this.message = e ? e.length + ` errors occurred during unsubscription:
|
68
|
+
` + e.map(function(i, s) {
|
69
|
+
return s + 1 + ") " + i.toString();
|
70
70
|
}).join(`
|
71
71
|
`) : "", this.name = "UnsubscriptionError", this.errors = e;
|
72
72
|
};
|
73
73
|
});
|
74
|
-
function
|
75
|
-
if (
|
76
|
-
var e =
|
77
|
-
0 <= e &&
|
74
|
+
function gt(r, t) {
|
75
|
+
if (r) {
|
76
|
+
var e = r.indexOf(t);
|
77
|
+
0 <= e && r.splice(e, 1);
|
78
78
|
}
|
79
79
|
}
|
80
|
-
var
|
81
|
-
function
|
80
|
+
var Q = function() {
|
81
|
+
function r(t) {
|
82
82
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
83
83
|
}
|
84
|
-
return
|
85
|
-
var t, e, i,
|
84
|
+
return r.prototype.unsubscribe = function() {
|
85
|
+
var t, e, i, s, n;
|
86
86
|
if (!this.closed) {
|
87
87
|
this.closed = !0;
|
88
88
|
var o = this._parentage;
|
89
89
|
if (o)
|
90
90
|
if (this._parentage = null, Array.isArray(o))
|
91
91
|
try {
|
92
|
-
for (var a =
|
92
|
+
for (var a = ft(o), c = a.next(); !c.done; c = a.next()) {
|
93
93
|
var l = c.value;
|
94
94
|
l.remove(this);
|
95
95
|
}
|
96
|
-
} catch (
|
97
|
-
t = { error:
|
96
|
+
} catch (v) {
|
97
|
+
t = { error: v };
|
98
98
|
} finally {
|
99
99
|
try {
|
100
100
|
c && !c.done && (e = a.return) && e.call(a);
|
@@ -106,29 +106,29 @@ var tt = function() {
|
|
106
106
|
else
|
107
107
|
o.remove(this);
|
108
108
|
var h = this.initialTeardown;
|
109
|
-
if (
|
109
|
+
if (b(h))
|
110
110
|
try {
|
111
111
|
h();
|
112
|
-
} catch (
|
113
|
-
n =
|
112
|
+
} catch (v) {
|
113
|
+
n = v instanceof st ? v.errors : [v];
|
114
114
|
}
|
115
115
|
var p = this._finalizers;
|
116
116
|
if (p) {
|
117
117
|
this._finalizers = null;
|
118
118
|
try {
|
119
|
-
for (var
|
120
|
-
var g =
|
119
|
+
for (var u = ft(p), f = u.next(); !f.done; f = u.next()) {
|
120
|
+
var g = f.value;
|
121
121
|
try {
|
122
|
-
|
123
|
-
} catch (
|
124
|
-
n = n ?? [],
|
122
|
+
Ct(g);
|
123
|
+
} catch (v) {
|
124
|
+
n = n ?? [], v instanceof st ? n = K(K([], q(n)), q(v.errors)) : n.push(v);
|
125
125
|
}
|
126
126
|
}
|
127
|
-
} catch (
|
128
|
-
i = { error:
|
127
|
+
} catch (v) {
|
128
|
+
i = { error: v };
|
129
129
|
} finally {
|
130
130
|
try {
|
131
|
-
|
131
|
+
f && !f.done && (s = u.return) && s.call(u);
|
132
132
|
} finally {
|
133
133
|
if (i)
|
134
134
|
throw i.error;
|
@@ -138,79 +138,79 @@ var tt = function() {
|
|
138
138
|
if (n)
|
139
139
|
throw new st(n);
|
140
140
|
}
|
141
|
-
},
|
141
|
+
}, r.prototype.add = function(t) {
|
142
142
|
var e;
|
143
143
|
if (t && t !== this)
|
144
144
|
if (this.closed)
|
145
|
-
|
145
|
+
Ct(t);
|
146
146
|
else {
|
147
|
-
if (t instanceof
|
147
|
+
if (t instanceof r) {
|
148
148
|
if (t.closed || t._hasParent(this))
|
149
149
|
return;
|
150
150
|
t._addParent(this);
|
151
151
|
}
|
152
152
|
(this._finalizers = (e = this._finalizers) !== null && e !== void 0 ? e : []).push(t);
|
153
153
|
}
|
154
|
-
},
|
154
|
+
}, r.prototype._hasParent = function(t) {
|
155
155
|
var e = this._parentage;
|
156
156
|
return e === t || Array.isArray(e) && e.includes(t);
|
157
|
-
},
|
157
|
+
}, r.prototype._addParent = function(t) {
|
158
158
|
var e = this._parentage;
|
159
159
|
this._parentage = Array.isArray(e) ? (e.push(t), e) : e ? [e, t] : t;
|
160
|
-
},
|
160
|
+
}, r.prototype._removeParent = function(t) {
|
161
161
|
var e = this._parentage;
|
162
|
-
e === t ? this._parentage = null : Array.isArray(e) &&
|
163
|
-
},
|
162
|
+
e === t ? this._parentage = null : Array.isArray(e) && gt(e, t);
|
163
|
+
}, r.prototype.remove = function(t) {
|
164
164
|
var e = this._finalizers;
|
165
|
-
e &&
|
166
|
-
},
|
167
|
-
var t = new
|
165
|
+
e && gt(e, t), t instanceof r && t._removeParent(this);
|
166
|
+
}, r.EMPTY = function() {
|
167
|
+
var t = new r();
|
168
168
|
return t.closed = !0, t;
|
169
|
-
}(),
|
170
|
-
}(),
|
171
|
-
function
|
172
|
-
return
|
169
|
+
}(), r;
|
170
|
+
}(), Jt = Q.EMPTY;
|
171
|
+
function Xt(r) {
|
172
|
+
return r instanceof Q || r && "closed" in r && b(r.remove) && b(r.add) && b(r.unsubscribe);
|
173
173
|
}
|
174
|
-
function
|
175
|
-
|
174
|
+
function Ct(r) {
|
175
|
+
b(r) ? r() : r.unsubscribe();
|
176
176
|
}
|
177
|
-
var
|
177
|
+
var Zt = {
|
178
178
|
onUnhandledError: null,
|
179
179
|
onStoppedNotification: null,
|
180
180
|
Promise: void 0,
|
181
181
|
useDeprecatedSynchronousErrorHandling: !1,
|
182
182
|
useDeprecatedNextContext: !1
|
183
|
-
},
|
184
|
-
setTimeout: function(
|
183
|
+
}, mt = {
|
184
|
+
setTimeout: function(r, t) {
|
185
185
|
for (var e = [], i = 2; i < arguments.length; i++)
|
186
186
|
e[i - 2] = arguments[i];
|
187
|
-
var
|
188
|
-
return
|
187
|
+
var s = mt.delegate;
|
188
|
+
return s != null && s.setTimeout ? s.setTimeout.apply(s, K([r, t], q(e))) : setTimeout.apply(void 0, K([r, t], q(e)));
|
189
189
|
},
|
190
|
-
clearTimeout: function(
|
191
|
-
var t =
|
192
|
-
return ((t == null ? void 0 : t.clearTimeout) || clearTimeout)(
|
190
|
+
clearTimeout: function(r) {
|
191
|
+
var t = mt.delegate;
|
192
|
+
return ((t == null ? void 0 : t.clearTimeout) || clearTimeout)(r);
|
193
193
|
},
|
194
194
|
delegate: void 0
|
195
195
|
};
|
196
|
-
function
|
197
|
-
|
198
|
-
throw
|
196
|
+
function ve(r) {
|
197
|
+
mt.setTimeout(function() {
|
198
|
+
throw r;
|
199
199
|
});
|
200
200
|
}
|
201
|
-
function
|
201
|
+
function Et() {
|
202
202
|
}
|
203
|
-
function
|
204
|
-
|
203
|
+
function V(r) {
|
204
|
+
r();
|
205
205
|
}
|
206
|
-
var
|
207
|
-
D(t,
|
206
|
+
var Qt = function(r) {
|
207
|
+
D(t, r);
|
208
208
|
function t(e) {
|
209
|
-
var i =
|
210
|
-
return i.isStopped = !1, e ? (i.destination = e,
|
209
|
+
var i = r.call(this) || this;
|
210
|
+
return i.isStopped = !1, e ? (i.destination = e, Xt(e) && e.add(i)) : i.destination = _e, i;
|
211
211
|
}
|
212
|
-
return t.create = function(e, i,
|
213
|
-
return new
|
212
|
+
return t.create = function(e, i, s) {
|
213
|
+
return new vt(e, i, s);
|
214
214
|
}, t.prototype.next = function(e) {
|
215
215
|
this.isStopped || this._next(e);
|
216
216
|
}, t.prototype.error = function(e) {
|
@@ -218,7 +218,7 @@ var Zt = function(s) {
|
|
218
218
|
}, t.prototype.complete = function() {
|
219
219
|
this.isStopped || (this.isStopped = !0, this._complete());
|
220
220
|
}, t.prototype.unsubscribe = function() {
|
221
|
-
this.closed || (this.isStopped = !0,
|
221
|
+
this.closed || (this.isStopped = !0, r.prototype.unsubscribe.call(this), this.destination = null);
|
222
222
|
}, t.prototype._next = function(e) {
|
223
223
|
this.destination.next(e);
|
224
224
|
}, t.prototype._error = function(e) {
|
@@ -234,112 +234,112 @@ var Zt = function(s) {
|
|
234
234
|
this.unsubscribe();
|
235
235
|
}
|
236
236
|
}, t;
|
237
|
-
}(
|
238
|
-
function
|
239
|
-
return
|
237
|
+
}(Q), ye = Function.prototype.bind;
|
238
|
+
function nt(r, t) {
|
239
|
+
return ye.call(r, t);
|
240
240
|
}
|
241
|
-
var
|
242
|
-
function
|
241
|
+
var be = function() {
|
242
|
+
function r(t) {
|
243
243
|
this.partialObserver = t;
|
244
244
|
}
|
245
|
-
return
|
245
|
+
return r.prototype.next = function(t) {
|
246
246
|
var e = this.partialObserver;
|
247
247
|
if (e.next)
|
248
248
|
try {
|
249
249
|
e.next(t);
|
250
250
|
} catch (i) {
|
251
|
-
|
251
|
+
F(i);
|
252
252
|
}
|
253
|
-
},
|
253
|
+
}, r.prototype.error = function(t) {
|
254
254
|
var e = this.partialObserver;
|
255
255
|
if (e.error)
|
256
256
|
try {
|
257
257
|
e.error(t);
|
258
258
|
} catch (i) {
|
259
|
-
|
259
|
+
F(i);
|
260
260
|
}
|
261
261
|
else
|
262
|
-
|
263
|
-
},
|
262
|
+
F(t);
|
263
|
+
}, r.prototype.complete = function() {
|
264
264
|
var t = this.partialObserver;
|
265
265
|
if (t.complete)
|
266
266
|
try {
|
267
267
|
t.complete();
|
268
268
|
} catch (e) {
|
269
|
-
|
269
|
+
F(e);
|
270
270
|
}
|
271
|
-
},
|
272
|
-
}(),
|
273
|
-
D(t,
|
274
|
-
function t(e, i,
|
275
|
-
var n =
|
276
|
-
if (
|
271
|
+
}, r;
|
272
|
+
}(), vt = function(r) {
|
273
|
+
D(t, r);
|
274
|
+
function t(e, i, s) {
|
275
|
+
var n = r.call(this) || this, o;
|
276
|
+
if (b(e) || !e)
|
277
277
|
o = {
|
278
278
|
next: e ?? void 0,
|
279
279
|
error: i ?? void 0,
|
280
|
-
complete:
|
280
|
+
complete: s ?? void 0
|
281
281
|
};
|
282
282
|
else {
|
283
283
|
var a;
|
284
|
-
n &&
|
284
|
+
n && Zt.useDeprecatedNextContext ? (a = Object.create(e), a.unsubscribe = function() {
|
285
285
|
return n.unsubscribe();
|
286
286
|
}, o = {
|
287
|
-
next: e.next &&
|
288
|
-
error: e.error &&
|
289
|
-
complete: e.complete &&
|
287
|
+
next: e.next && nt(e.next, a),
|
288
|
+
error: e.error && nt(e.error, a),
|
289
|
+
complete: e.complete && nt(e.complete, a)
|
290
290
|
}) : o = e;
|
291
291
|
}
|
292
|
-
return n.destination = new
|
292
|
+
return n.destination = new be(o), n;
|
293
293
|
}
|
294
294
|
return t;
|
295
|
-
}(
|
296
|
-
function
|
297
|
-
|
295
|
+
}(Qt);
|
296
|
+
function F(r) {
|
297
|
+
ve(r);
|
298
298
|
}
|
299
|
-
function
|
300
|
-
throw
|
299
|
+
function $e(r) {
|
300
|
+
throw r;
|
301
301
|
}
|
302
|
-
var
|
302
|
+
var _e = {
|
303
303
|
closed: !0,
|
304
|
-
next:
|
305
|
-
error:
|
306
|
-
complete:
|
307
|
-
},
|
304
|
+
next: Et,
|
305
|
+
error: $e,
|
306
|
+
complete: Et
|
307
|
+
}, we = function() {
|
308
308
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
309
309
|
}();
|
310
|
-
function
|
311
|
-
return
|
310
|
+
function Ae(r) {
|
311
|
+
return r;
|
312
312
|
}
|
313
|
-
function
|
314
|
-
return
|
315
|
-
return
|
316
|
-
return
|
313
|
+
function Se(r) {
|
314
|
+
return r.length === 0 ? Ae : r.length === 1 ? r[0] : function(e) {
|
315
|
+
return r.reduce(function(i, s) {
|
316
|
+
return s(i);
|
317
317
|
}, e);
|
318
318
|
};
|
319
319
|
}
|
320
|
-
var
|
321
|
-
function
|
320
|
+
var Pt = function() {
|
321
|
+
function r(t) {
|
322
322
|
t && (this._subscribe = t);
|
323
323
|
}
|
324
|
-
return
|
325
|
-
var e = new
|
324
|
+
return r.prototype.lift = function(t) {
|
325
|
+
var e = new r();
|
326
326
|
return e.source = this, e.operator = t, e;
|
327
|
-
},
|
328
|
-
var
|
329
|
-
return
|
330
|
-
var o =
|
331
|
-
n.add(a ? a.call(n, c) : c ?
|
327
|
+
}, r.prototype.subscribe = function(t, e, i) {
|
328
|
+
var s = this, n = Ce(t) ? t : new vt(t, e, i);
|
329
|
+
return V(function() {
|
330
|
+
var o = s, a = o.operator, c = o.source;
|
331
|
+
n.add(a ? a.call(n, c) : c ? s._subscribe(n) : s._trySubscribe(n));
|
332
332
|
}), n;
|
333
|
-
},
|
333
|
+
}, r.prototype._trySubscribe = function(t) {
|
334
334
|
try {
|
335
335
|
return this._subscribe(t);
|
336
336
|
} catch (e) {
|
337
337
|
t.error(e);
|
338
338
|
}
|
339
|
-
},
|
339
|
+
}, r.prototype.forEach = function(t, e) {
|
340
340
|
var i = this;
|
341
|
-
return e = Ot(e), new e(function(
|
342
|
-
var o = new
|
341
|
+
return e = Ot(e), new e(function(s, n) {
|
342
|
+
var o = new vt({
|
343
343
|
next: function(a) {
|
344
344
|
try {
|
345
345
|
t(a);
|
@@ -348,96 +348,96 @@ var Et = function() {
|
|
348
348
|
}
|
349
349
|
},
|
350
350
|
error: n,
|
351
|
-
complete:
|
351
|
+
complete: s
|
352
352
|
});
|
353
353
|
i.subscribe(o);
|
354
354
|
});
|
355
|
-
},
|
355
|
+
}, r.prototype._subscribe = function(t) {
|
356
356
|
var e;
|
357
357
|
return (e = this.source) === null || e === void 0 ? void 0 : e.subscribe(t);
|
358
|
-
},
|
358
|
+
}, r.prototype[we] = function() {
|
359
359
|
return this;
|
360
|
-
},
|
360
|
+
}, r.prototype.pipe = function() {
|
361
361
|
for (var t = [], e = 0; e < arguments.length; e++)
|
362
362
|
t[e] = arguments[e];
|
363
|
-
return
|
364
|
-
},
|
363
|
+
return Se(t)(this);
|
364
|
+
}, r.prototype.toPromise = function(t) {
|
365
365
|
var e = this;
|
366
|
-
return t = Ot(t), new t(function(i,
|
366
|
+
return t = Ot(t), new t(function(i, s) {
|
367
367
|
var n;
|
368
368
|
e.subscribe(function(o) {
|
369
369
|
return n = o;
|
370
370
|
}, function(o) {
|
371
|
-
return
|
371
|
+
return s(o);
|
372
372
|
}, function() {
|
373
373
|
return i(n);
|
374
374
|
});
|
375
375
|
});
|
376
|
-
},
|
377
|
-
return new
|
378
|
-
},
|
376
|
+
}, r.create = function(t) {
|
377
|
+
return new r(t);
|
378
|
+
}, r;
|
379
379
|
}();
|
380
|
-
function Ot(
|
380
|
+
function Ot(r) {
|
381
381
|
var t;
|
382
|
-
return (t =
|
382
|
+
return (t = r ?? Zt.Promise) !== null && t !== void 0 ? t : Promise;
|
383
383
|
}
|
384
|
-
function
|
385
|
-
return
|
384
|
+
function xe(r) {
|
385
|
+
return r && b(r.next) && b(r.error) && b(r.complete);
|
386
386
|
}
|
387
|
-
function
|
388
|
-
return
|
387
|
+
function Ce(r) {
|
388
|
+
return r && r instanceof Qt || xe(r) && Xt(r);
|
389
389
|
}
|
390
|
-
var
|
390
|
+
var Ee = Kt(function(r) {
|
391
391
|
return function() {
|
392
|
-
|
392
|
+
r(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
393
393
|
};
|
394
|
-
}),
|
395
|
-
D(t,
|
394
|
+
}), te = function(r) {
|
395
|
+
D(t, r);
|
396
396
|
function t() {
|
397
|
-
var e =
|
397
|
+
var e = r.call(this) || this;
|
398
398
|
return e.closed = !1, e.currentObservers = null, e.observers = [], e.isStopped = !1, e.hasError = !1, e.thrownError = null, e;
|
399
399
|
}
|
400
400
|
return t.prototype.lift = function(e) {
|
401
|
-
var i = new
|
401
|
+
var i = new Tt(this, this);
|
402
402
|
return i.operator = e, i;
|
403
403
|
}, t.prototype._throwIfClosed = function() {
|
404
404
|
if (this.closed)
|
405
|
-
throw new
|
405
|
+
throw new Ee();
|
406
406
|
}, t.prototype.next = function(e) {
|
407
407
|
var i = this;
|
408
|
-
|
409
|
-
var
|
408
|
+
V(function() {
|
409
|
+
var s, n;
|
410
410
|
if (i._throwIfClosed(), !i.isStopped) {
|
411
411
|
i.currentObservers || (i.currentObservers = Array.from(i.observers));
|
412
412
|
try {
|
413
|
-
for (var o =
|
413
|
+
for (var o = ft(i.currentObservers), a = o.next(); !a.done; a = o.next()) {
|
414
414
|
var c = a.value;
|
415
415
|
c.next(e);
|
416
416
|
}
|
417
417
|
} catch (l) {
|
418
|
-
|
418
|
+
s = { error: l };
|
419
419
|
} finally {
|
420
420
|
try {
|
421
421
|
a && !a.done && (n = o.return) && n.call(o);
|
422
422
|
} finally {
|
423
|
-
if (
|
424
|
-
throw
|
423
|
+
if (s)
|
424
|
+
throw s.error;
|
425
425
|
}
|
426
426
|
}
|
427
427
|
}
|
428
428
|
});
|
429
429
|
}, t.prototype.error = function(e) {
|
430
430
|
var i = this;
|
431
|
-
|
431
|
+
V(function() {
|
432
432
|
if (i._throwIfClosed(), !i.isStopped) {
|
433
433
|
i.hasError = i.isStopped = !0, i.thrownError = e;
|
434
|
-
for (var
|
435
|
-
|
434
|
+
for (var s = i.observers; s.length; )
|
435
|
+
s.shift().error(e);
|
436
436
|
}
|
437
437
|
});
|
438
438
|
}, t.prototype.complete = function() {
|
439
439
|
var e = this;
|
440
|
-
|
440
|
+
V(function() {
|
441
441
|
if (e._throwIfClosed(), !e.isStopped) {
|
442
442
|
e.isStopped = !0;
|
443
443
|
for (var i = e.observers; i.length; )
|
@@ -454,46 +454,46 @@ var Ce = qt(function(s) {
|
|
454
454
|
enumerable: !1,
|
455
455
|
configurable: !0
|
456
456
|
}), t.prototype._trySubscribe = function(e) {
|
457
|
-
return this._throwIfClosed(),
|
457
|
+
return this._throwIfClosed(), r.prototype._trySubscribe.call(this, e);
|
458
458
|
}, t.prototype._subscribe = function(e) {
|
459
459
|
return this._throwIfClosed(), this._checkFinalizedStatuses(e), this._innerSubscribe(e);
|
460
460
|
}, t.prototype._innerSubscribe = function(e) {
|
461
|
-
var i = this,
|
462
|
-
return n || o ?
|
463
|
-
i.currentObservers = null,
|
461
|
+
var i = this, s = this, n = s.hasError, o = s.isStopped, a = s.observers;
|
462
|
+
return n || o ? Jt : (this.currentObservers = null, a.push(e), new Q(function() {
|
463
|
+
i.currentObservers = null, gt(a, e);
|
464
464
|
}));
|
465
465
|
}, t.prototype._checkFinalizedStatuses = function(e) {
|
466
|
-
var i = this,
|
467
|
-
|
466
|
+
var i = this, s = i.hasError, n = i.thrownError, o = i.isStopped;
|
467
|
+
s ? e.error(n) : o && e.complete();
|
468
468
|
}, t.prototype.asObservable = function() {
|
469
|
-
var e = new
|
469
|
+
var e = new Pt();
|
470
470
|
return e.source = this, e;
|
471
471
|
}, t.create = function(e, i) {
|
472
|
-
return new
|
472
|
+
return new Tt(e, i);
|
473
473
|
}, t;
|
474
|
-
}(
|
475
|
-
D(t,
|
474
|
+
}(Pt), Tt = function(r) {
|
475
|
+
D(t, r);
|
476
476
|
function t(e, i) {
|
477
|
-
var
|
478
|
-
return
|
477
|
+
var s = r.call(this) || this;
|
478
|
+
return s.destination = e, s.source = i, s;
|
479
479
|
}
|
480
480
|
return t.prototype.next = function(e) {
|
481
|
-
var i,
|
482
|
-
(
|
481
|
+
var i, s;
|
482
|
+
(s = (i = this.destination) === null || i === void 0 ? void 0 : i.next) === null || s === void 0 || s.call(i, e);
|
483
483
|
}, t.prototype.error = function(e) {
|
484
|
-
var i,
|
485
|
-
(
|
484
|
+
var i, s;
|
485
|
+
(s = (i = this.destination) === null || i === void 0 ? void 0 : i.error) === null || s === void 0 || s.call(i, e);
|
486
486
|
}, t.prototype.complete = function() {
|
487
487
|
var e, i;
|
488
488
|
(i = (e = this.destination) === null || e === void 0 ? void 0 : e.complete) === null || i === void 0 || i.call(e);
|
489
489
|
}, t.prototype._subscribe = function(e) {
|
490
|
-
var i,
|
491
|
-
return (
|
490
|
+
var i, s;
|
491
|
+
return (s = (i = this.source) === null || i === void 0 ? void 0 : i.subscribe(e)) !== null && s !== void 0 ? s : Jt;
|
492
492
|
}, t;
|
493
|
-
}(
|
494
|
-
D(t,
|
493
|
+
}(te), Pe = function(r) {
|
494
|
+
D(t, r);
|
495
495
|
function t(e) {
|
496
|
-
var i =
|
496
|
+
var i = r.call(this) || this;
|
497
497
|
return i._value = e, i;
|
498
498
|
}
|
499
499
|
return Object.defineProperty(t.prototype, "value", {
|
@@ -503,20 +503,20 @@ var Ce = qt(function(s) {
|
|
503
503
|
enumerable: !1,
|
504
504
|
configurable: !0
|
505
505
|
}), t.prototype._subscribe = function(e) {
|
506
|
-
var i =
|
506
|
+
var i = r.prototype._subscribe.call(this, e);
|
507
507
|
return !i.closed && e.next(this._value), i;
|
508
508
|
}, t.prototype.getValue = function() {
|
509
|
-
var e = this, i = e.hasError,
|
509
|
+
var e = this, i = e.hasError, s = e.thrownError, n = e._value;
|
510
510
|
if (i)
|
511
|
-
throw
|
511
|
+
throw s;
|
512
512
|
return this._throwIfClosed(), n;
|
513
513
|
}, t.prototype.next = function(e) {
|
514
|
-
|
514
|
+
r.prototype.next.call(this, this._value = e);
|
515
515
|
}, t;
|
516
|
-
}(
|
517
|
-
class
|
516
|
+
}(te), ee = /* @__PURE__ */ ((r) => (r.Loading = "loading", r.Ready = "ready", r))(ee || {});
|
517
|
+
class Ut {
|
518
518
|
constructor(t, e) {
|
519
|
-
this.state = new
|
519
|
+
this.state = new Pe(
|
520
520
|
"loading"
|
521
521
|
/* Loading */
|
522
522
|
), this.resolvers = /* @__PURE__ */ new Map(), this.name = t, this.environment = e, this.state.next(
|
@@ -539,19 +539,19 @@ class Tt {
|
|
539
539
|
* Copyright 2019 Google LLC
|
540
540
|
* SPDX-License-Identifier: BSD-3-Clause
|
541
541
|
*/
|
542
|
-
const
|
543
|
-
let
|
542
|
+
const Y = globalThis, bt = Y.ShadowRoot && (Y.ShadyCSS === void 0 || Y.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, $t = Symbol(), Rt = /* @__PURE__ */ new WeakMap();
|
543
|
+
let ie = class {
|
544
544
|
constructor(t, e, i) {
|
545
|
-
if (this._$cssResult$ = !0, i !==
|
545
|
+
if (this._$cssResult$ = !0, i !== $t)
|
546
546
|
throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
547
547
|
this.cssText = t, this.t = e;
|
548
548
|
}
|
549
549
|
get styleSheet() {
|
550
550
|
let t = this.o;
|
551
551
|
const e = this.t;
|
552
|
-
if (
|
552
|
+
if (bt && t === void 0) {
|
553
553
|
const i = e !== void 0 && e.length === 1;
|
554
|
-
i && (t =
|
554
|
+
i && (t = Rt.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), i && Rt.set(e, t));
|
555
555
|
}
|
556
556
|
return t;
|
557
557
|
}
|
@@ -559,118 +559,118 @@ let ee = class {
|
|
559
559
|
return this.cssText;
|
560
560
|
}
|
561
561
|
};
|
562
|
-
const Oe = (
|
563
|
-
const e =
|
562
|
+
const Oe = (r) => new ie(typeof r == "string" ? r : r + "", void 0, $t), R = (r, ...t) => {
|
563
|
+
const e = r.length === 1 ? r[0] : t.reduce((i, s, n) => i + ((o) => {
|
564
564
|
if (o._$cssResult$ === !0)
|
565
565
|
return o.cssText;
|
566
566
|
if (typeof o == "number")
|
567
567
|
return o;
|
568
568
|
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.");
|
569
|
-
})(
|
570
|
-
return new
|
571
|
-
},
|
572
|
-
if (
|
573
|
-
|
569
|
+
})(s) + r[n + 1], r[0]);
|
570
|
+
return new ie(e, r, $t);
|
571
|
+
}, Te = (r, t) => {
|
572
|
+
if (bt)
|
573
|
+
r.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
574
574
|
else
|
575
575
|
for (const e of t) {
|
576
|
-
const i = document.createElement("style"),
|
577
|
-
|
576
|
+
const i = document.createElement("style"), s = Y.litNonce;
|
577
|
+
s !== void 0 && i.setAttribute("nonce", s), i.textContent = e.cssText, r.appendChild(i);
|
578
578
|
}
|
579
|
-
}, kt =
|
579
|
+
}, kt = bt ? (r) => r : (r) => r instanceof CSSStyleSheet ? ((t) => {
|
580
580
|
let e = "";
|
581
581
|
for (const i of t.cssRules)
|
582
582
|
e += i.cssText;
|
583
583
|
return Oe(e);
|
584
|
-
})(
|
584
|
+
})(r) : r;
|
585
585
|
/**
|
586
586
|
* @license
|
587
587
|
* Copyright 2017 Google LLC
|
588
588
|
* SPDX-License-Identifier: BSD-3-Clause
|
589
589
|
*/
|
590
|
-
const { is:
|
590
|
+
const { is: Ue, defineProperty: Re, getOwnPropertyDescriptor: ke, getOwnPropertyNames: Ie, getOwnPropertySymbols: Ne, getPrototypeOf: je } = Object, w = globalThis, It = w.trustedTypes, Me = It ? It.emptyScript : "", ot = w.reactiveElementPolyfillSupport, I = (r, t) => r, J = { toAttribute(r, t) {
|
591
591
|
switch (t) {
|
592
592
|
case Boolean:
|
593
|
-
|
593
|
+
r = r ? Me : null;
|
594
594
|
break;
|
595
595
|
case Object:
|
596
596
|
case Array:
|
597
|
-
|
597
|
+
r = r == null ? r : JSON.stringify(r);
|
598
598
|
}
|
599
|
-
return
|
600
|
-
}, fromAttribute(
|
601
|
-
let e =
|
599
|
+
return r;
|
600
|
+
}, fromAttribute(r, t) {
|
601
|
+
let e = r;
|
602
602
|
switch (t) {
|
603
603
|
case Boolean:
|
604
|
-
e =
|
604
|
+
e = r !== null;
|
605
605
|
break;
|
606
606
|
case Number:
|
607
|
-
e =
|
607
|
+
e = r === null ? null : Number(r);
|
608
608
|
break;
|
609
609
|
case Object:
|
610
610
|
case Array:
|
611
611
|
try {
|
612
|
-
e = JSON.parse(
|
612
|
+
e = JSON.parse(r);
|
613
613
|
} catch {
|
614
614
|
e = null;
|
615
615
|
}
|
616
616
|
}
|
617
617
|
return e;
|
618
|
-
} },
|
619
|
-
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")),
|
620
|
-
let
|
618
|
+
} }, _t = (r, t) => !Ue(r, t), Nt = { attribute: !0, type: String, converter: J, reflect: !1, hasChanged: _t };
|
619
|
+
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), w.litPropertyMetadata ?? (w.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
620
|
+
let O = class extends HTMLElement {
|
621
621
|
static addInitializer(t) {
|
622
622
|
this._$Ei(), (this.l ?? (this.l = [])).push(t);
|
623
623
|
}
|
624
624
|
static get observedAttributes() {
|
625
625
|
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
626
626
|
}
|
627
|
-
static createProperty(t, e =
|
627
|
+
static createProperty(t, e = Nt) {
|
628
628
|
if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(t, e), !e.noAccessor) {
|
629
|
-
const i = Symbol(),
|
630
|
-
|
629
|
+
const i = Symbol(), s = this.getPropertyDescriptor(t, i, e);
|
630
|
+
s !== void 0 && Re(this.prototype, t, s);
|
631
631
|
}
|
632
632
|
}
|
633
633
|
static getPropertyDescriptor(t, e, i) {
|
634
|
-
const { get:
|
634
|
+
const { get: s, set: n } = ke(this.prototype, t) ?? { get() {
|
635
635
|
return this[e];
|
636
636
|
}, set(o) {
|
637
637
|
this[e] = o;
|
638
638
|
} };
|
639
639
|
return { get() {
|
640
|
-
return
|
640
|
+
return s == null ? void 0 : s.call(this);
|
641
641
|
}, set(o) {
|
642
|
-
const a =
|
642
|
+
const a = s == null ? void 0 : s.call(this);
|
643
643
|
n.call(this, o), this.requestUpdate(t, a, i);
|
644
644
|
}, configurable: !0, enumerable: !0 };
|
645
645
|
}
|
646
646
|
static getPropertyOptions(t) {
|
647
|
-
return this.elementProperties.get(t) ??
|
647
|
+
return this.elementProperties.get(t) ?? Nt;
|
648
648
|
}
|
649
649
|
static _$Ei() {
|
650
650
|
if (this.hasOwnProperty(I("elementProperties")))
|
651
651
|
return;
|
652
|
-
const t =
|
652
|
+
const t = je(this);
|
653
653
|
t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
|
654
654
|
}
|
655
655
|
static finalize() {
|
656
656
|
if (this.hasOwnProperty(I("finalized")))
|
657
657
|
return;
|
658
658
|
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(I("properties"))) {
|
659
|
-
const e = this.properties, i = [...
|
660
|
-
for (const
|
661
|
-
this.createProperty(
|
659
|
+
const e = this.properties, i = [...Ie(e), ...Ne(e)];
|
660
|
+
for (const s of i)
|
661
|
+
this.createProperty(s, e[s]);
|
662
662
|
}
|
663
663
|
const t = this[Symbol.metadata];
|
664
664
|
if (t !== null) {
|
665
665
|
const e = litPropertyMetadata.get(t);
|
666
666
|
if (e !== void 0)
|
667
|
-
for (const [i,
|
668
|
-
this.elementProperties.set(i,
|
667
|
+
for (const [i, s] of e)
|
668
|
+
this.elementProperties.set(i, s);
|
669
669
|
}
|
670
670
|
this._$Eh = /* @__PURE__ */ new Map();
|
671
671
|
for (const [e, i] of this.elementProperties) {
|
672
|
-
const
|
673
|
-
|
672
|
+
const s = this._$Eu(e, i);
|
673
|
+
s !== void 0 && this._$Eh.set(s, e);
|
674
674
|
}
|
675
675
|
this.elementStyles = this.finalizeStyles(this.styles);
|
676
676
|
}
|
@@ -678,8 +678,8 @@ let P = class extends HTMLElement {
|
|
678
678
|
const e = [];
|
679
679
|
if (Array.isArray(t)) {
|
680
680
|
const i = new Set(t.flat(1 / 0).reverse());
|
681
|
-
for (const
|
682
|
-
e.unshift(kt(
|
681
|
+
for (const s of i)
|
682
|
+
e.unshift(kt(s));
|
683
683
|
} else
|
684
684
|
t !== void 0 && e.push(kt(t));
|
685
685
|
return e;
|
@@ -711,7 +711,7 @@ let P = class extends HTMLElement {
|
|
711
711
|
}
|
712
712
|
createRenderRoot() {
|
713
713
|
const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
714
|
-
return
|
714
|
+
return Te(t, this.constructor.elementStyles), t;
|
715
715
|
}
|
716
716
|
connectedCallback() {
|
717
717
|
var t;
|
@@ -734,23 +734,23 @@ let P = class extends HTMLElement {
|
|
734
734
|
}
|
735
735
|
_$EO(t, e) {
|
736
736
|
var n;
|
737
|
-
const i = this.constructor.elementProperties.get(t),
|
738
|
-
if (
|
739
|
-
const o = (((n = i.converter) == null ? void 0 : n.toAttribute) !== void 0 ? i.converter :
|
740
|
-
this._$Em = t, o == null ? this.removeAttribute(
|
737
|
+
const i = this.constructor.elementProperties.get(t), s = this.constructor._$Eu(t, i);
|
738
|
+
if (s !== void 0 && i.reflect === !0) {
|
739
|
+
const o = (((n = i.converter) == null ? void 0 : n.toAttribute) !== void 0 ? i.converter : J).toAttribute(e, i.type);
|
740
|
+
this._$Em = t, o == null ? this.removeAttribute(s) : this.setAttribute(s, o), this._$Em = null;
|
741
741
|
}
|
742
742
|
}
|
743
743
|
_$AK(t, e) {
|
744
744
|
var n;
|
745
|
-
const i = this.constructor,
|
746
|
-
if (
|
747
|
-
const o = i.getPropertyOptions(
|
748
|
-
this._$Em =
|
745
|
+
const i = this.constructor, s = i._$Eh.get(t);
|
746
|
+
if (s !== void 0 && this._$Em !== s) {
|
747
|
+
const o = i.getPropertyOptions(s), a = typeof o.converter == "function" ? { fromAttribute: o.converter } : ((n = o.converter) == null ? void 0 : n.fromAttribute) !== void 0 ? o.converter : J;
|
748
|
+
this._$Em = s, this[s] = a.fromAttribute(e, o.type), this._$Em = null;
|
749
749
|
}
|
750
750
|
}
|
751
|
-
requestUpdate(t, e, i,
|
751
|
+
requestUpdate(t, e, i, s = !1, n) {
|
752
752
|
if (t !== void 0) {
|
753
|
-
if (i ?? (i = this.constructor.getPropertyOptions(t)), !(i.hasChanged ??
|
753
|
+
if (i ?? (i = this.constructor.getPropertyOptions(t)), !(i.hasChanged ?? _t)(s ? n : this[t], e))
|
754
754
|
return;
|
755
755
|
this.C(t, e, i);
|
756
756
|
}
|
@@ -782,20 +782,20 @@ let P = class extends HTMLElement {
|
|
782
782
|
this[n] = o;
|
783
783
|
this._$Ep = void 0;
|
784
784
|
}
|
785
|
-
const
|
786
|
-
if (
|
787
|
-
for (const [n, o] of
|
785
|
+
const s = this.constructor.elementProperties;
|
786
|
+
if (s.size > 0)
|
787
|
+
for (const [n, o] of s)
|
788
788
|
o.wrapped !== !0 || this._$AL.has(n) || this[n] === void 0 || this.C(n, this[n], o);
|
789
789
|
}
|
790
790
|
let t = !1;
|
791
791
|
const e = this._$AL;
|
792
792
|
try {
|
793
|
-
t = this.shouldUpdate(e), t ? (this.willUpdate(e), (i = this._$ES) == null || i.forEach((
|
793
|
+
t = this.shouldUpdate(e), t ? (this.willUpdate(e), (i = this._$ES) == null || i.forEach((s) => {
|
794
794
|
var n;
|
795
|
-
return (n =
|
795
|
+
return (n = s.hostUpdate) == null ? void 0 : n.call(s);
|
796
796
|
}), this.update(e)) : this._$ET();
|
797
|
-
} catch (
|
798
|
-
throw t = !1, this._$ET(),
|
797
|
+
} catch (s) {
|
798
|
+
throw t = !1, this._$ET(), s;
|
799
799
|
}
|
800
800
|
t && this._$AE(e);
|
801
801
|
}
|
@@ -804,8 +804,8 @@ let P = class extends HTMLElement {
|
|
804
804
|
_$AE(t) {
|
805
805
|
var e;
|
806
806
|
(e = this._$ES) == null || e.forEach((i) => {
|
807
|
-
var
|
808
|
-
return (
|
807
|
+
var s;
|
808
|
+
return (s = i.hostUpdated) == null ? void 0 : s.call(i);
|
809
809
|
}), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
|
810
810
|
}
|
811
811
|
_$ET() {
|
@@ -828,68 +828,68 @@ let P = class extends HTMLElement {
|
|
828
828
|
firstUpdated(t) {
|
829
829
|
}
|
830
830
|
};
|
831
|
-
|
831
|
+
O.elementStyles = [], O.shadowRootOptions = { mode: "open" }, O[I("elementProperties")] = /* @__PURE__ */ new Map(), O[I("finalized")] = /* @__PURE__ */ new Map(), ot == null || ot({ ReactiveElement: O }), (w.reactiveElementVersions ?? (w.reactiveElementVersions = [])).push("2.0.1");
|
832
832
|
/**
|
833
833
|
* @license
|
834
834
|
* Copyright 2017 Google LLC
|
835
835
|
* SPDX-License-Identifier: BSD-3-Clause
|
836
836
|
*/
|
837
|
-
const N = globalThis,
|
838
|
-
\f\r]`,
|
839
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"),
|
840
|
-
function
|
841
|
-
if (!Array.isArray(
|
837
|
+
const N = globalThis, X = N.trustedTypes, jt = X ? X.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, re = "$lit$", _ = `lit$${(Math.random() + "").slice(9)}$`, se = "?" + _, He = `<${se}>`, E = document, M = () => E.createComment(""), H = (r) => r === null || typeof r != "object" && typeof r != "function", ne = Array.isArray, Le = (r) => ne(r) || typeof (r == null ? void 0 : r[Symbol.iterator]) == "function", at = `[
|
838
|
+
\f\r]`, k = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Mt = /-->/g, Ht = />/g, S = RegExp(`>|${at}(?:([^\\s"'>=/]+)(${at}*=${at}*(?:[^
|
839
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), Lt = /'/g, Dt = /"/g, oe = /^(?:script|style|textarea|title)$/i, De = (r) => (t, ...e) => ({ _$litType$: r, strings: t, values: e }), T = De(1), P = Symbol.for("lit-noChange"), d = Symbol.for("lit-nothing"), Bt = /* @__PURE__ */ new WeakMap(), C = E.createTreeWalker(E, 129);
|
840
|
+
function ae(r, t) {
|
841
|
+
if (!Array.isArray(r) || !r.hasOwnProperty("raw"))
|
842
842
|
throw Error("invalid template strings array");
|
843
|
-
return
|
843
|
+
return jt !== void 0 ? jt.createHTML(t) : t;
|
844
844
|
}
|
845
|
-
const
|
846
|
-
const e =
|
847
|
-
let
|
845
|
+
const Be = (r, t) => {
|
846
|
+
const e = r.length - 1, i = [];
|
847
|
+
let s, n = t === 2 ? "<svg>" : "", o = k;
|
848
848
|
for (let a = 0; a < e; a++) {
|
849
|
-
const c =
|
850
|
-
let l, h, p = -1,
|
851
|
-
for (;
|
852
|
-
|
853
|
-
const
|
854
|
-
n += o ===
|
855
|
-
}
|
856
|
-
return [
|
849
|
+
const c = r[a];
|
850
|
+
let l, h, p = -1, u = 0;
|
851
|
+
for (; u < c.length && (o.lastIndex = u, h = o.exec(c), h !== null); )
|
852
|
+
u = o.lastIndex, o === k ? h[1] === "!--" ? o = Mt : h[1] !== void 0 ? o = Ht : h[2] !== void 0 ? (oe.test(h[2]) && (s = RegExp("</" + h[2], "g")), o = S) : h[3] !== void 0 && (o = S) : o === S ? h[0] === ">" ? (o = s ?? k, p = -1) : h[1] === void 0 ? p = -2 : (p = o.lastIndex - h[2].length, l = h[1], o = h[3] === void 0 ? S : h[3] === '"' ? Dt : Lt) : o === Dt || o === Lt ? o = S : o === Mt || o === Ht ? o = k : (o = S, s = void 0);
|
853
|
+
const f = o === S && r[a + 1].startsWith("/>") ? " " : "";
|
854
|
+
n += o === k ? c + He : p >= 0 ? (i.push(l), c.slice(0, p) + re + c.slice(p) + _ + f) : c + _ + (p === -2 ? a : f);
|
855
|
+
}
|
856
|
+
return [ae(r, n + (r[e] || "<?>") + (t === 2 ? "</svg>" : "")), i];
|
857
857
|
};
|
858
858
|
class L {
|
859
859
|
constructor({ strings: t, _$litType$: e }, i) {
|
860
|
-
let
|
860
|
+
let s;
|
861
861
|
this.parts = [];
|
862
862
|
let n = 0, o = 0;
|
863
|
-
const a = t.length - 1, c = this.parts, [l, h] =
|
863
|
+
const a = t.length - 1, c = this.parts, [l, h] = Be(t, e);
|
864
864
|
if (this.el = L.createElement(l, i), C.currentNode = this.el.content, e === 2) {
|
865
865
|
const p = this.el.content.firstChild;
|
866
866
|
p.replaceWith(...p.childNodes);
|
867
867
|
}
|
868
|
-
for (; (
|
869
|
-
if (
|
870
|
-
if (
|
871
|
-
for (const p of
|
872
|
-
if (p.endsWith(
|
873
|
-
const
|
874
|
-
c.push({ type: 1, index: n, name: g[2], strings:
|
868
|
+
for (; (s = C.nextNode()) !== null && c.length < a; ) {
|
869
|
+
if (s.nodeType === 1) {
|
870
|
+
if (s.hasAttributes())
|
871
|
+
for (const p of s.getAttributeNames())
|
872
|
+
if (p.endsWith(re)) {
|
873
|
+
const u = h[o++], f = s.getAttribute(p).split(_), g = /([.?@])?(.*)/.exec(u);
|
874
|
+
c.push({ type: 1, index: n, name: g[2], strings: f, ctor: g[1] === "." ? We : g[1] === "?" ? Fe : g[1] === "@" ? Ge : tt }), s.removeAttribute(p);
|
875
875
|
} else
|
876
|
-
p.startsWith(
|
877
|
-
if (
|
878
|
-
const p =
|
879
|
-
if (
|
880
|
-
|
881
|
-
for (let
|
882
|
-
|
883
|
-
|
876
|
+
p.startsWith(_) && (c.push({ type: 6, index: n }), s.removeAttribute(p));
|
877
|
+
if (oe.test(s.tagName)) {
|
878
|
+
const p = s.textContent.split(_), u = p.length - 1;
|
879
|
+
if (u > 0) {
|
880
|
+
s.textContent = X ? X.emptyScript : "";
|
881
|
+
for (let f = 0; f < u; f++)
|
882
|
+
s.append(p[f], M()), C.nextNode(), c.push({ type: 2, index: ++n });
|
883
|
+
s.append(p[u], M());
|
884
884
|
}
|
885
885
|
}
|
886
|
-
} else if (
|
887
|
-
if (
|
886
|
+
} else if (s.nodeType === 8)
|
887
|
+
if (s.data === se)
|
888
888
|
c.push({ type: 2, index: n });
|
889
889
|
else {
|
890
890
|
let p = -1;
|
891
|
-
for (; (p =
|
892
|
-
c.push({ type: 7, index: n }), p +=
|
891
|
+
for (; (p = s.data.indexOf(_, p + 1)) !== -1; )
|
892
|
+
c.push({ type: 7, index: n }), p += _.length - 1;
|
893
893
|
}
|
894
894
|
n++;
|
895
895
|
}
|
@@ -899,15 +899,15 @@ class L {
|
|
899
899
|
return i.innerHTML = t, i;
|
900
900
|
}
|
901
901
|
}
|
902
|
-
function U(
|
902
|
+
function U(r, t, e = r, i) {
|
903
903
|
var o, a;
|
904
|
-
if (t ===
|
904
|
+
if (t === P)
|
905
905
|
return t;
|
906
|
-
let
|
906
|
+
let s = i !== void 0 ? (o = e._$Co) == null ? void 0 : o[i] : e._$Cl;
|
907
907
|
const n = H(t) ? void 0 : t._$litDirective$;
|
908
|
-
return (
|
908
|
+
return (s == null ? void 0 : s.constructor) !== n && ((a = s == null ? void 0 : s._$AO) == null || a.call(s, !1), n === void 0 ? s = void 0 : (s = new n(r), s._$AT(r, e, i)), i !== void 0 ? (e._$Co ?? (e._$Co = []))[i] = s : e._$Cl = s), s !== void 0 && (t = U(r, s._$AS(r, t.values), s, i)), t;
|
909
909
|
}
|
910
|
-
class
|
910
|
+
class ze {
|
911
911
|
constructor(t, e) {
|
912
912
|
this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = e;
|
913
913
|
}
|
@@ -918,17 +918,17 @@ class Be {
|
|
918
918
|
return this._$AM._$AU;
|
919
919
|
}
|
920
920
|
u(t) {
|
921
|
-
const { el: { content: e }, parts: i } = this._$AD,
|
922
|
-
C.currentNode =
|
921
|
+
const { el: { content: e }, parts: i } = this._$AD, s = ((t == null ? void 0 : t.creationScope) ?? E).importNode(e, !0);
|
922
|
+
C.currentNode = s;
|
923
923
|
let n = C.nextNode(), o = 0, a = 0, c = i[0];
|
924
924
|
for (; c !== void 0; ) {
|
925
925
|
if (o === c.index) {
|
926
926
|
let l;
|
927
|
-
c.type === 2 ? l = new
|
927
|
+
c.type === 2 ? l = new B(n, n.nextSibling, this, t) : c.type === 1 ? l = new c.ctor(n, c.name, c.strings, this, t) : c.type === 6 && (l = new Ve(n, this, t)), this._$AV.push(l), c = i[++a];
|
928
928
|
}
|
929
929
|
o !== (c == null ? void 0 : c.index) && (n = C.nextNode(), o++);
|
930
930
|
}
|
931
|
-
return C.currentNode = E,
|
931
|
+
return C.currentNode = E, s;
|
932
932
|
}
|
933
933
|
p(t) {
|
934
934
|
let e = 0;
|
@@ -936,13 +936,13 @@ class Be {
|
|
936
936
|
i !== void 0 && (i.strings !== void 0 ? (i._$AI(t, i, e), e += i.strings.length - 2) : i._$AI(t[e])), e++;
|
937
937
|
}
|
938
938
|
}
|
939
|
-
class
|
939
|
+
class B {
|
940
940
|
get _$AU() {
|
941
941
|
var t;
|
942
942
|
return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
|
943
943
|
}
|
944
|
-
constructor(t, e, i,
|
945
|
-
this.type = 2, this._$AH =
|
944
|
+
constructor(t, e, i, s) {
|
945
|
+
this.type = 2, this._$AH = d, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = i, this.options = s, this._$Cv = (s == null ? void 0 : s.isConnected) ?? !0;
|
946
946
|
}
|
947
947
|
get parentNode() {
|
948
948
|
let t = this._$AA.parentNode;
|
@@ -956,7 +956,7 @@ class z {
|
|
956
956
|
return this._$AB;
|
957
957
|
}
|
958
958
|
_$AI(t, e = this) {
|
959
|
-
t = U(this, t, e), H(t) ? t ===
|
959
|
+
t = U(this, t, e), H(t) ? t === d || t == null || t === "" ? (this._$AH !== d && this._$AR(), this._$AH = d) : t !== this._$AH && t !== P && this._(t) : t._$litType$ !== void 0 ? this.g(t) : t.nodeType !== void 0 ? this.$(t) : Le(t) ? this.T(t) : this._(t);
|
960
960
|
}
|
961
961
|
k(t) {
|
962
962
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
@@ -965,35 +965,35 @@ class z {
|
|
965
965
|
this._$AH !== t && (this._$AR(), this._$AH = this.k(t));
|
966
966
|
}
|
967
967
|
_(t) {
|
968
|
-
this._$AH !==
|
968
|
+
this._$AH !== d && H(this._$AH) ? this._$AA.nextSibling.data = t : this.$(E.createTextNode(t)), this._$AH = t;
|
969
969
|
}
|
970
970
|
g(t) {
|
971
971
|
var n;
|
972
|
-
const { values: e, _$litType$: i } = t,
|
973
|
-
if (((n = this._$AH) == null ? void 0 : n._$AD) ===
|
972
|
+
const { values: e, _$litType$: i } = t, s = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el = L.createElement(ae(i.h, i.h[0]), this.options)), i);
|
973
|
+
if (((n = this._$AH) == null ? void 0 : n._$AD) === s)
|
974
974
|
this._$AH.p(e);
|
975
975
|
else {
|
976
|
-
const o = new
|
976
|
+
const o = new ze(s, this), a = o.u(this.options);
|
977
977
|
o.p(e), this.$(a), this._$AH = o;
|
978
978
|
}
|
979
979
|
}
|
980
980
|
_$AC(t) {
|
981
|
-
let e =
|
982
|
-
return e === void 0 &&
|
981
|
+
let e = Bt.get(t.strings);
|
982
|
+
return e === void 0 && Bt.set(t.strings, e = new L(t)), e;
|
983
983
|
}
|
984
984
|
T(t) {
|
985
|
-
|
985
|
+
ne(this._$AH) || (this._$AH = [], this._$AR());
|
986
986
|
const e = this._$AH;
|
987
|
-
let i,
|
987
|
+
let i, s = 0;
|
988
988
|
for (const n of t)
|
989
|
-
|
990
|
-
|
989
|
+
s === e.length ? e.push(i = new B(this.k(M()), this.k(M()), this, this.options)) : i = e[s], i._$AI(n), s++;
|
990
|
+
s < e.length && (this._$AR(i && i._$AB.nextSibling, s), e.length = s);
|
991
991
|
}
|
992
992
|
_$AR(t = this._$AA.nextSibling, e) {
|
993
993
|
var i;
|
994
994
|
for ((i = this._$AP) == null ? void 0 : i.call(this, !1, !0, e); t && t !== this._$AB; ) {
|
995
|
-
const
|
996
|
-
t.remove(), t =
|
995
|
+
const s = t.nextSibling;
|
996
|
+
t.remove(), t = s;
|
997
997
|
}
|
998
998
|
}
|
999
999
|
setConnected(t) {
|
@@ -1001,65 +1001,65 @@ class z {
|
|
1001
1001
|
this._$AM === void 0 && (this._$Cv = t, (e = this._$AP) == null || e.call(this, t));
|
1002
1002
|
}
|
1003
1003
|
}
|
1004
|
-
class
|
1004
|
+
class tt {
|
1005
1005
|
get tagName() {
|
1006
1006
|
return this.element.tagName;
|
1007
1007
|
}
|
1008
1008
|
get _$AU() {
|
1009
1009
|
return this._$AM._$AU;
|
1010
1010
|
}
|
1011
|
-
constructor(t, e, i,
|
1012
|
-
this.type = 1, this._$AH =
|
1011
|
+
constructor(t, e, i, s, n) {
|
1012
|
+
this.type = 1, this._$AH = d, this._$AN = void 0, this.element = t, this.name = e, this._$AM = s, this.options = n, i.length > 2 || i[0] !== "" || i[1] !== "" ? (this._$AH = Array(i.length - 1).fill(new String()), this.strings = i) : this._$AH = d;
|
1013
1013
|
}
|
1014
|
-
_$AI(t, e = this, i,
|
1014
|
+
_$AI(t, e = this, i, s) {
|
1015
1015
|
const n = this.strings;
|
1016
1016
|
let o = !1;
|
1017
1017
|
if (n === void 0)
|
1018
|
-
t = U(this, t, e, 0), o = !H(t) || t !== this._$AH && t !==
|
1018
|
+
t = U(this, t, e, 0), o = !H(t) || t !== this._$AH && t !== P, o && (this._$AH = t);
|
1019
1019
|
else {
|
1020
1020
|
const a = t;
|
1021
1021
|
let c, l;
|
1022
1022
|
for (t = n[0], c = 0; c < n.length - 1; c++)
|
1023
|
-
l = U(this, a[i + c], e, c), l ===
|
1023
|
+
l = U(this, a[i + c], e, c), l === P && (l = this._$AH[c]), o || (o = !H(l) || l !== this._$AH[c]), l === d ? t = d : t !== d && (t += (l ?? "") + n[c + 1]), this._$AH[c] = l;
|
1024
1024
|
}
|
1025
|
-
o && !
|
1025
|
+
o && !s && this.O(t);
|
1026
1026
|
}
|
1027
1027
|
O(t) {
|
1028
|
-
t ===
|
1028
|
+
t === d ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
1029
1029
|
}
|
1030
1030
|
}
|
1031
|
-
class
|
1031
|
+
class We extends tt {
|
1032
1032
|
constructor() {
|
1033
1033
|
super(...arguments), this.type = 3;
|
1034
1034
|
}
|
1035
1035
|
O(t) {
|
1036
|
-
this.element[this.name] = t ===
|
1036
|
+
this.element[this.name] = t === d ? void 0 : t;
|
1037
1037
|
}
|
1038
1038
|
}
|
1039
|
-
class
|
1039
|
+
class Fe extends tt {
|
1040
1040
|
constructor() {
|
1041
1041
|
super(...arguments), this.type = 4;
|
1042
1042
|
}
|
1043
1043
|
O(t) {
|
1044
|
-
this.element.toggleAttribute(this.name, !!t && t !==
|
1044
|
+
this.element.toggleAttribute(this.name, !!t && t !== d);
|
1045
1045
|
}
|
1046
1046
|
}
|
1047
|
-
class
|
1048
|
-
constructor(t, e, i,
|
1049
|
-
super(t, e, i,
|
1047
|
+
class Ge extends tt {
|
1048
|
+
constructor(t, e, i, s, n) {
|
1049
|
+
super(t, e, i, s, n), this.type = 5;
|
1050
1050
|
}
|
1051
1051
|
_$AI(t, e = this) {
|
1052
|
-
if ((t = U(this, t, e, 0) ??
|
1052
|
+
if ((t = U(this, t, e, 0) ?? d) === P)
|
1053
1053
|
return;
|
1054
|
-
const i = this._$AH,
|
1055
|
-
|
1054
|
+
const i = this._$AH, s = t === d && i !== d || t.capture !== i.capture || t.once !== i.once || t.passive !== i.passive, n = t !== d && (i === d || s);
|
1055
|
+
s && this.element.removeEventListener(this.name, this, i), n && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
1056
1056
|
}
|
1057
1057
|
handleEvent(t) {
|
1058
1058
|
var e;
|
1059
1059
|
typeof this._$AH == "function" ? this._$AH.call(((e = this.options) == null ? void 0 : e.host) ?? this.element, t) : this._$AH.handleEvent(t);
|
1060
1060
|
}
|
1061
1061
|
}
|
1062
|
-
class
|
1062
|
+
class Ve {
|
1063
1063
|
constructor(t, e, i) {
|
1064
1064
|
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = i;
|
1065
1065
|
}
|
@@ -1070,23 +1070,23 @@ class Ge {
|
|
1070
1070
|
U(this, t);
|
1071
1071
|
}
|
1072
1072
|
}
|
1073
|
-
const
|
1074
|
-
|
1075
|
-
const
|
1073
|
+
const ct = N.litHtmlPolyfillSupport;
|
1074
|
+
ct == null || ct(L, B), (N.litHtmlVersions ?? (N.litHtmlVersions = [])).push("3.0.2");
|
1075
|
+
const Ye = (r, t, e) => {
|
1076
1076
|
const i = (e == null ? void 0 : e.renderBefore) ?? t;
|
1077
|
-
let
|
1078
|
-
if (
|
1077
|
+
let s = i._$litPart$;
|
1078
|
+
if (s === void 0) {
|
1079
1079
|
const n = (e == null ? void 0 : e.renderBefore) ?? null;
|
1080
|
-
i._$litPart$ =
|
1080
|
+
i._$litPart$ = s = new B(t.insertBefore(M(), n), n, void 0, e ?? {});
|
1081
1081
|
}
|
1082
|
-
return
|
1082
|
+
return s._$AI(r), s;
|
1083
1083
|
};
|
1084
1084
|
/**
|
1085
1085
|
* @license
|
1086
1086
|
* Copyright 2017 Google LLC
|
1087
1087
|
* SPDX-License-Identifier: BSD-3-Clause
|
1088
1088
|
*/
|
1089
|
-
let
|
1089
|
+
let $ = class extends O {
|
1090
1090
|
constructor() {
|
1091
1091
|
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
1092
1092
|
}
|
@@ -1097,7 +1097,7 @@ let w = class extends P {
|
|
1097
1097
|
}
|
1098
1098
|
update(t) {
|
1099
1099
|
const e = this.render();
|
1100
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do =
|
1100
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = Ye(e, this.renderRoot, this.renderOptions);
|
1101
1101
|
}
|
1102
1102
|
connectedCallback() {
|
1103
1103
|
var t;
|
@@ -1108,21 +1108,100 @@ let w = class extends P {
|
|
1108
1108
|
super.disconnectedCallback(), (t = this._$Do) == null || t.setConnected(!1);
|
1109
1109
|
}
|
1110
1110
|
render() {
|
1111
|
-
return
|
1111
|
+
return P;
|
1112
1112
|
}
|
1113
1113
|
};
|
1114
|
-
var
|
1115
|
-
|
1116
|
-
const
|
1117
|
-
|
1114
|
+
var qt;
|
1115
|
+
$._$litElement$ = !0, $.finalized = !0, (qt = globalThis.litElementHydrateSupport) == null || qt.call(globalThis, { LitElement: $ });
|
1116
|
+
const lt = globalThis.litElementPolyfillSupport;
|
1117
|
+
lt == null || lt({ LitElement: $ });
|
1118
1118
|
(globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.0.1");
|
1119
1119
|
/**
|
1120
1120
|
* @license
|
1121
1121
|
* Copyright 2017 Google LLC
|
1122
1122
|
* SPDX-License-Identifier: BSD-3-Clause
|
1123
1123
|
*/
|
1124
|
-
const
|
1125
|
-
|
1124
|
+
const qe = { attribute: !0, type: String, converter: J, reflect: !1, hasChanged: _t }, Ke = (r = qe, t, e) => {
|
1125
|
+
const { kind: i, metadata: s } = e;
|
1126
|
+
let n = globalThis.litPropertyMetadata.get(s);
|
1127
|
+
if (n === void 0 && globalThis.litPropertyMetadata.set(s, n = /* @__PURE__ */ new Map()), n.set(e.name, r), i === "accessor") {
|
1128
|
+
const { name: o } = e;
|
1129
|
+
return { set(a) {
|
1130
|
+
const c = t.get.call(this);
|
1131
|
+
t.set.call(this, a), this.requestUpdate(o, c, r);
|
1132
|
+
}, init(a) {
|
1133
|
+
return a !== void 0 && this.C(o, void 0, r), a;
|
1134
|
+
} };
|
1135
|
+
}
|
1136
|
+
if (i === "setter") {
|
1137
|
+
const { name: o } = e;
|
1138
|
+
return function(a) {
|
1139
|
+
const c = this[o];
|
1140
|
+
t.call(this, a), this.requestUpdate(o, c, r);
|
1141
|
+
};
|
1142
|
+
}
|
1143
|
+
throw Error("Unsupported decorator location: " + i);
|
1144
|
+
};
|
1145
|
+
function m(r) {
|
1146
|
+
return (t, e) => typeof e == "object" ? Ke(r, t, e) : ((i, s, n) => {
|
1147
|
+
const o = s.hasOwnProperty(n);
|
1148
|
+
return s.constructor.createProperty(n, o ? { ...i, wrapped: !0 } : i), o ? Object.getOwnPropertyDescriptor(s, n) : void 0;
|
1149
|
+
})(r, t, e);
|
1150
|
+
}
|
1151
|
+
/**
|
1152
|
+
* @license
|
1153
|
+
* Copyright 2017 Google LLC
|
1154
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
1155
|
+
*/
|
1156
|
+
function z(r) {
|
1157
|
+
return m({ ...r, state: !0, attribute: !1 });
|
1158
|
+
}
|
1159
|
+
var Je = Object.defineProperty, Xe = Object.getOwnPropertyDescriptor, Ze = (r, t, e, i) => {
|
1160
|
+
for (var s = i > 1 ? void 0 : i ? Xe(t, e) : t, n = r.length - 1, o; n >= 0; n--)
|
1161
|
+
(o = r[n]) && (s = (i ? o(t, e, s) : o(s)) || s);
|
1162
|
+
return i && s && Je(t, e, s), s;
|
1163
|
+
};
|
1164
|
+
class et extends $ {
|
1165
|
+
constructor() {
|
1166
|
+
super(...arguments), this.anchor = "bottom-right";
|
1167
|
+
}
|
1168
|
+
appendChild(t) {
|
1169
|
+
var e;
|
1170
|
+
return (e = this.shadowRoot) == null || e.appendChild(t), t;
|
1171
|
+
}
|
1172
|
+
render() {
|
1173
|
+
return this.renderRoot.host.classList.add(this.anchor), d;
|
1174
|
+
}
|
1175
|
+
}
|
1176
|
+
et.styles = [
|
1177
|
+
R`
|
1178
|
+
:host {
|
1179
|
+
position: fixed;
|
1180
|
+
display: flex;
|
1181
|
+
align-items: center;
|
1182
|
+
gap: 1rem;
|
1183
|
+
}
|
1184
|
+
|
1185
|
+
:host(.bottom-right) {
|
1186
|
+
bottom: 20px;
|
1187
|
+
right: 20px;
|
1188
|
+
}
|
1189
|
+
:host(.bottom-left) {
|
1190
|
+
bottom: 20px;
|
1191
|
+
left: 20px;
|
1192
|
+
}
|
1193
|
+
`
|
1194
|
+
];
|
1195
|
+
Ze([
|
1196
|
+
m({ attribute: !0 })
|
1197
|
+
], et.prototype, "anchor", 2);
|
1198
|
+
/**
|
1199
|
+
* @license
|
1200
|
+
* Copyright 2017 Google LLC
|
1201
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
1202
|
+
*/
|
1203
|
+
const wt = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, At = (r) => (...t) => ({ _$litDirective$: r, values: t });
|
1204
|
+
let ce = class {
|
1126
1205
|
constructor(t) {
|
1127
1206
|
}
|
1128
1207
|
get _$AU() {
|
@@ -1143,68 +1222,68 @@ let ae = class {
|
|
1143
1222
|
* Copyright 2020 Google LLC
|
1144
1223
|
* SPDX-License-Identifier: BSD-3-Clause
|
1145
1224
|
*/
|
1146
|
-
const
|
1225
|
+
const Qe = (r) => r.strings === void 0;
|
1147
1226
|
/**
|
1148
1227
|
* @license
|
1149
1228
|
* Copyright 2017 Google LLC
|
1150
1229
|
* SPDX-License-Identifier: BSD-3-Clause
|
1151
1230
|
*/
|
1152
|
-
const
|
1231
|
+
const j = (r, t) => {
|
1153
1232
|
var i;
|
1154
|
-
const e =
|
1233
|
+
const e = r._$AN;
|
1155
1234
|
if (e === void 0)
|
1156
1235
|
return !1;
|
1157
|
-
for (const
|
1158
|
-
(i =
|
1236
|
+
for (const s of e)
|
1237
|
+
(i = s._$AO) == null || i.call(s, t, !1), j(s, t);
|
1159
1238
|
return !0;
|
1160
|
-
},
|
1239
|
+
}, Z = (r) => {
|
1161
1240
|
let t, e;
|
1162
1241
|
do {
|
1163
|
-
if ((t =
|
1242
|
+
if ((t = r._$AM) === void 0)
|
1164
1243
|
break;
|
1165
|
-
e = t._$AN, e.delete(
|
1244
|
+
e = t._$AN, e.delete(r), r = t;
|
1166
1245
|
} while ((e == null ? void 0 : e.size) === 0);
|
1167
|
-
},
|
1168
|
-
for (let t; t =
|
1246
|
+
}, le = (r) => {
|
1247
|
+
for (let t; t = r._$AM; r = t) {
|
1169
1248
|
let e = t._$AN;
|
1170
1249
|
if (e === void 0)
|
1171
1250
|
t._$AN = e = /* @__PURE__ */ new Set();
|
1172
|
-
else if (e.has(
|
1251
|
+
else if (e.has(r))
|
1173
1252
|
break;
|
1174
|
-
e.add(
|
1253
|
+
e.add(r), ii(t);
|
1175
1254
|
}
|
1176
1255
|
};
|
1177
|
-
function
|
1178
|
-
this._$AN !== void 0 ? (
|
1256
|
+
function ti(r) {
|
1257
|
+
this._$AN !== void 0 ? (Z(this), this._$AM = r, le(this)) : this._$AM = r;
|
1179
1258
|
}
|
1180
|
-
function
|
1181
|
-
const i = this._$AH,
|
1182
|
-
if (
|
1259
|
+
function ei(r, t = !1, e = 0) {
|
1260
|
+
const i = this._$AH, s = this._$AN;
|
1261
|
+
if (s !== void 0 && s.size !== 0)
|
1183
1262
|
if (t)
|
1184
1263
|
if (Array.isArray(i))
|
1185
1264
|
for (let n = e; n < i.length; n++)
|
1186
|
-
|
1265
|
+
j(i[n], !1), Z(i[n]);
|
1187
1266
|
else
|
1188
|
-
i != null && (
|
1267
|
+
i != null && (j(i, !1), Z(i));
|
1189
1268
|
else
|
1190
|
-
|
1269
|
+
j(this, r);
|
1191
1270
|
}
|
1192
|
-
const
|
1193
|
-
|
1271
|
+
const ii = (r) => {
|
1272
|
+
r.type == wt.CHILD && (r._$AP ?? (r._$AP = ei), r._$AQ ?? (r._$AQ = ti));
|
1194
1273
|
};
|
1195
|
-
class
|
1274
|
+
class he extends ce {
|
1196
1275
|
constructor() {
|
1197
1276
|
super(...arguments), this._$AN = void 0;
|
1198
1277
|
}
|
1199
1278
|
_$AT(t, e, i) {
|
1200
|
-
super._$AT(t, e, i),
|
1279
|
+
super._$AT(t, e, i), le(this), this.isConnected = t._$AU;
|
1201
1280
|
}
|
1202
1281
|
_$AO(t, e = !0) {
|
1203
|
-
var i,
|
1204
|
-
t !== this.isConnected && (this.isConnected = t, t ? (i = this.reconnected) == null || i.call(this) : (
|
1282
|
+
var i, s;
|
1283
|
+
t !== this.isConnected && (this.isConnected = t, t ? (i = this.reconnected) == null || i.call(this) : (s = this.disconnected) == null || s.call(this)), e && (j(this, t), Z(this));
|
1205
1284
|
}
|
1206
1285
|
setValue(t) {
|
1207
|
-
if (
|
1286
|
+
if (Qe(this._$Ct))
|
1208
1287
|
this._$Ct._$AI(t, this);
|
1209
1288
|
else {
|
1210
1289
|
const e = [...this._$Ct._$AH];
|
@@ -1216,34 +1295,34 @@ class le extends ae {
|
|
1216
1295
|
reconnected() {
|
1217
1296
|
}
|
1218
1297
|
}
|
1219
|
-
const
|
1220
|
-
let
|
1221
|
-
const
|
1222
|
-
const e =
|
1298
|
+
const ri = /* @__PURE__ */ new WeakMap();
|
1299
|
+
let zt = 0;
|
1300
|
+
const ht = /* @__PURE__ */ new Map(), Wt = /* @__PURE__ */ new WeakSet(), Ft = () => new Promise((r) => requestAnimationFrame(r)), si = [{ transform: "translateX(100%) scale(0)", opacity: 0 }], Gt = (r, t) => {
|
1301
|
+
const e = r - t;
|
1223
1302
|
return e === 0 ? void 0 : e;
|
1224
|
-
},
|
1225
|
-
const e =
|
1303
|
+
}, Vt = (r, t) => {
|
1304
|
+
const e = r / t;
|
1226
1305
|
return e === 1 ? void 0 : e;
|
1227
|
-
},
|
1228
|
-
const e =
|
1306
|
+
}, pt = { left: (r, t) => {
|
1307
|
+
const e = Gt(r, t);
|
1229
1308
|
return { value: e, transform: e == null || isNaN(e) ? void 0 : `translateX(${e}px)` };
|
1230
|
-
}, top: (
|
1231
|
-
const e =
|
1309
|
+
}, top: (r, t) => {
|
1310
|
+
const e = Gt(r, t);
|
1232
1311
|
return { value: e, transform: e == null || isNaN(e) ? void 0 : `translateY(${e}px)` };
|
1233
|
-
}, width: (
|
1312
|
+
}, width: (r, t) => {
|
1234
1313
|
let e;
|
1235
1314
|
t === 0 && (t = 1, e = { width: "1px" });
|
1236
|
-
const i =
|
1315
|
+
const i = Vt(r, t);
|
1237
1316
|
return { value: i, overrideFrom: e, transform: i == null || isNaN(i) ? void 0 : `scaleX(${i})` };
|
1238
|
-
}, height: (
|
1317
|
+
}, height: (r, t) => {
|
1239
1318
|
let e;
|
1240
1319
|
t === 0 && (t = 1, e = { height: "1px" });
|
1241
|
-
const i =
|
1320
|
+
const i = Vt(r, t);
|
1242
1321
|
return { value: i, overrideFrom: e, transform: i == null || isNaN(i) ? void 0 : `scaleY(${i})` };
|
1243
|
-
} },
|
1244
|
-
class
|
1322
|
+
} }, ni = { duration: 333, easing: "ease-in-out" }, oi = ["left", "top", "width", "height", "opacity", "color", "background"], Yt = /* @__PURE__ */ new WeakMap();
|
1323
|
+
class ai extends he {
|
1245
1324
|
constructor(t) {
|
1246
|
-
if (super(t), this.t = null, this.i = null, this.o = !0, this.shouldLog = !1, t.type ===
|
1325
|
+
if (super(t), this.t = null, this.i = null, this.o = !0, this.shouldLog = !1, t.type === wt.CHILD)
|
1247
1326
|
throw Error("The `animate` directive must be used in attribute position.");
|
1248
1327
|
this.createFinished();
|
1249
1328
|
}
|
@@ -1258,39 +1337,39 @@ class ei extends le {
|
|
1258
1337
|
(t = this.h) == null || t.call(this), this.h = void 0;
|
1259
1338
|
}
|
1260
1339
|
render(t) {
|
1261
|
-
return
|
1340
|
+
return d;
|
1262
1341
|
}
|
1263
1342
|
getController() {
|
1264
|
-
return
|
1343
|
+
return ri.get(this.l);
|
1265
1344
|
}
|
1266
1345
|
isDisabled() {
|
1267
1346
|
var t;
|
1268
1347
|
return this.options.disabled || ((t = this.getController()) == null ? void 0 : t.disabled);
|
1269
1348
|
}
|
1270
1349
|
update(t, [e]) {
|
1271
|
-
var
|
1350
|
+
var s;
|
1272
1351
|
const i = this.l === void 0;
|
1273
|
-
return i && (this.l = (
|
1352
|
+
return i && (this.l = (s = t.options) == null ? void 0 : s.host, this.l.addController(this), this.element = t.element, Yt.set(this.element, this)), this.optionsOrCallback = e, (i || typeof e != "function") && this.u(e), this.render(e);
|
1274
1353
|
}
|
1275
1354
|
u(t) {
|
1276
1355
|
t = t ?? {};
|
1277
1356
|
const e = this.getController();
|
1278
|
-
e !== void 0 && ((t = { ...e.defaultOptions, ...t }).keyframeOptions = { ...e.defaultOptions.keyframeOptions, ...t.keyframeOptions }), t.properties ?? (t.properties =
|
1357
|
+
e !== void 0 && ((t = { ...e.defaultOptions, ...t }).keyframeOptions = { ...e.defaultOptions.keyframeOptions, ...t.keyframeOptions }), t.properties ?? (t.properties = oi), this.options = t;
|
1279
1358
|
}
|
1280
1359
|
p() {
|
1281
1360
|
const t = {}, e = this.element.getBoundingClientRect(), i = getComputedStyle(this.element);
|
1282
|
-
return this.options.properties.forEach((
|
1283
|
-
const n = e[
|
1284
|
-
t[
|
1361
|
+
return this.options.properties.forEach((s) => {
|
1362
|
+
const n = e[s] ?? (pt[s] ? void 0 : i[s]), o = Number(n);
|
1363
|
+
t[s] = isNaN(o) ? n + "" : o;
|
1285
1364
|
}), t;
|
1286
1365
|
}
|
1287
1366
|
m() {
|
1288
1367
|
let t, e = !0;
|
1289
|
-
return this.options.guard && (t = this.options.guard(), e = ((i,
|
1368
|
+
return this.options.guard && (t = this.options.guard(), e = ((i, s) => {
|
1290
1369
|
if (Array.isArray(i)) {
|
1291
|
-
if (Array.isArray(
|
1370
|
+
if (Array.isArray(s) && s.length === i.length && i.every((n, o) => n === s[o]))
|
1292
1371
|
return !1;
|
1293
|
-
} else if (
|
1372
|
+
} else if (s === i)
|
1294
1373
|
return !1;
|
1295
1374
|
return !0;
|
1296
1375
|
})(t, this.v)), this.o = this.l.hasUpdated && !this.isDisabled() && !this.isAnimating() && e && this.element.isConnected, this.o && (this.v = Array.isArray(t) ? Array.from(t) : t), this.o;
|
@@ -1302,17 +1381,17 @@ class ei extends le {
|
|
1302
1381
|
if (!this.o || !this.element.isConnected || this.options.skipInitial && !this.isHostRendered)
|
1303
1382
|
return;
|
1304
1383
|
let t;
|
1305
|
-
this.prepare(), await
|
1306
|
-
const e = this._(), i = this.A(this.options.keyframeOptions, e),
|
1384
|
+
this.prepare(), await Ft;
|
1385
|
+
const e = this._(), i = this.A(this.options.keyframeOptions, e), s = this.p();
|
1307
1386
|
if (this.g !== void 0) {
|
1308
|
-
const { from: n, to: o } = this.O(this.g,
|
1309
|
-
this.log("measured", [this.g,
|
1387
|
+
const { from: n, to: o } = this.O(this.g, s, e);
|
1388
|
+
this.log("measured", [this.g, s, n, o]), t = this.calculateKeyframes(n, o);
|
1310
1389
|
} else {
|
1311
|
-
const n =
|
1390
|
+
const n = ht.get(this.options.inId);
|
1312
1391
|
if (n) {
|
1313
|
-
|
1314
|
-
const { from: o, to: a } = this.O(n,
|
1315
|
-
t = this.calculateKeyframes(o, a), t = this.options.in ? [{ ...this.options.in[0], ...t[0] }, ...this.options.in.slice(1), t[1]] : t,
|
1392
|
+
ht.delete(this.options.inId);
|
1393
|
+
const { from: o, to: a } = this.O(n, s, e);
|
1394
|
+
t = this.calculateKeyframes(o, a), t = this.options.in ? [{ ...this.options.in[0], ...t[0] }, ...this.options.in.slice(1), t[1]] : t, zt++, t.forEach((c) => c.zIndex = zt);
|
1316
1395
|
} else
|
1317
1396
|
this.options.in && (t = [...this.options.in, {}]);
|
1318
1397
|
}
|
@@ -1329,14 +1408,14 @@ class ei extends le {
|
|
1329
1408
|
}
|
1330
1409
|
async disconnected() {
|
1331
1410
|
var e;
|
1332
|
-
if (!this.o || (this.options.id !== void 0 &&
|
1411
|
+
if (!this.o || (this.options.id !== void 0 && ht.set(this.options.id, this.g), this.options.out === void 0))
|
1333
1412
|
return;
|
1334
|
-
if (this.prepare(), await
|
1413
|
+
if (this.prepare(), await Ft(), (e = this.t) == null ? void 0 : e.isConnected) {
|
1335
1414
|
const i = this.i && this.i.parentNode === this.t ? this.i : null;
|
1336
1415
|
if (this.t.insertBefore(this.element, i), this.options.stabilizeOut) {
|
1337
|
-
const
|
1416
|
+
const s = this.p();
|
1338
1417
|
this.log("stabilizing out");
|
1339
|
-
const n = this.g.left -
|
1418
|
+
const n = this.g.left - s.left, o = this.g.top - s.top;
|
1340
1419
|
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");
|
1341
1420
|
}
|
1342
1421
|
}
|
@@ -1357,58 +1436,58 @@ class ei extends le {
|
|
1357
1436
|
_() {
|
1358
1437
|
const t = [];
|
1359
1438
|
for (let e = this.element.parentNode; e; e = e == null ? void 0 : e.parentNode) {
|
1360
|
-
const i =
|
1439
|
+
const i = Yt.get(e);
|
1361
1440
|
i && !i.isDisabled() && i && t.push(i);
|
1362
1441
|
}
|
1363
1442
|
return t;
|
1364
1443
|
}
|
1365
1444
|
get isHostRendered() {
|
1366
|
-
const t =
|
1445
|
+
const t = Wt.has(this.l);
|
1367
1446
|
return t || this.l.updateComplete.then(() => {
|
1368
|
-
|
1447
|
+
Wt.add(this.l);
|
1369
1448
|
}), t;
|
1370
1449
|
}
|
1371
1450
|
A(t, e = this._()) {
|
1372
|
-
const i = { ...
|
1373
|
-
return e.forEach((
|
1451
|
+
const i = { ...ni };
|
1452
|
+
return e.forEach((s) => Object.assign(i, s.options.keyframeOptions)), Object.assign(i, t), i;
|
1374
1453
|
}
|
1375
1454
|
O(t, e, i) {
|
1376
1455
|
t = { ...t }, e = { ...e };
|
1377
|
-
const
|
1456
|
+
const s = i.map((a) => a.animatingProperties).filter((a) => a !== void 0);
|
1378
1457
|
let n = 1, o = 1;
|
1379
|
-
return
|
1458
|
+
return s !== void 0 && (s.forEach((a) => {
|
1380
1459
|
a.width && (n /= a.width), a.height && (o /= a.height);
|
1381
1460
|
}), 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 };
|
1382
1461
|
}
|
1383
1462
|
calculateKeyframes(t, e, i = !1) {
|
1384
|
-
const
|
1463
|
+
const s = {}, n = {};
|
1385
1464
|
let o = !1;
|
1386
1465
|
const a = {};
|
1387
1466
|
for (const c in e) {
|
1388
1467
|
const l = t[c], h = e[c];
|
1389
|
-
if (c in
|
1390
|
-
const p =
|
1468
|
+
if (c in pt) {
|
1469
|
+
const p = pt[c];
|
1391
1470
|
if (l === void 0 || h === void 0)
|
1392
1471
|
continue;
|
1393
|
-
const
|
1394
|
-
|
1472
|
+
const u = p(l, h);
|
1473
|
+
u.transform !== void 0 && (a[c] = u.value, o = !0, s.transform = `${s.transform ?? ""} ${u.transform}`, u.overrideFrom !== void 0 && Object.assign(s, u.overrideFrom));
|
1395
1474
|
} else
|
1396
|
-
l !== h && l !== void 0 && h !== void 0 && (o = !0,
|
1475
|
+
l !== h && l !== void 0 && h !== void 0 && (o = !0, s[c] = l, n[c] = h);
|
1397
1476
|
}
|
1398
|
-
return
|
1477
|
+
return s.transformOrigin = n.transformOrigin = i ? "center center" : "top left", this.animatingProperties = a, o ? [s, n] : void 0;
|
1399
1478
|
}
|
1400
1479
|
async animate(t, e = this.options.keyframeOptions) {
|
1401
1480
|
this.start(), this.frames = t;
|
1402
1481
|
let i = !1;
|
1403
1482
|
if (!this.isAnimating() && !this.isDisabled() && (this.options.onFrames && (this.frames = t = this.options.onFrames(this), this.log("modified frames", t)), t !== void 0)) {
|
1404
1483
|
this.log("animate", [t, e]), i = !0, this.webAnimation = this.element.animate(t, e);
|
1405
|
-
const
|
1406
|
-
|
1484
|
+
const s = this.getController();
|
1485
|
+
s == null || s.add(this);
|
1407
1486
|
try {
|
1408
1487
|
await this.webAnimation.finished;
|
1409
1488
|
} catch {
|
1410
1489
|
}
|
1411
|
-
|
1490
|
+
s == null || s.remove(this);
|
1412
1491
|
}
|
1413
1492
|
return this.didFinish(i), i;
|
1414
1493
|
}
|
@@ -1420,92 +1499,52 @@ class ei extends le {
|
|
1420
1499
|
this.shouldLog && !this.isDisabled() && console.log(t, this.options.id, e);
|
1421
1500
|
}
|
1422
1501
|
}
|
1423
|
-
const
|
1424
|
-
/**
|
1425
|
-
* @license
|
1426
|
-
* Copyright 2017 Google LLC
|
1427
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
1428
|
-
*/
|
1429
|
-
const si = { attribute: !0, type: String, converter: X, reflect: !1, hasChanged: $t }, ri = (s = si, t, e) => {
|
1430
|
-
const { kind: i, metadata: r } = e;
|
1431
|
-
let n = globalThis.litPropertyMetadata.get(r);
|
1432
|
-
if (n === void 0 && globalThis.litPropertyMetadata.set(r, n = /* @__PURE__ */ new Map()), n.set(e.name, s), i === "accessor") {
|
1433
|
-
const { name: o } = e;
|
1434
|
-
return { set(a) {
|
1435
|
-
const c = t.get.call(this);
|
1436
|
-
t.set.call(this, a), this.requestUpdate(o, c, s);
|
1437
|
-
}, init(a) {
|
1438
|
-
return a !== void 0 && this.C(o, void 0, s), a;
|
1439
|
-
} };
|
1440
|
-
}
|
1441
|
-
if (i === "setter") {
|
1442
|
-
const { name: o } = e;
|
1443
|
-
return function(a) {
|
1444
|
-
const c = this[o];
|
1445
|
-
t.call(this, a), this.requestUpdate(o, c, s);
|
1446
|
-
};
|
1447
|
-
}
|
1448
|
-
throw Error("Unsupported decorator location: " + i);
|
1449
|
-
};
|
1450
|
-
function v(s) {
|
1451
|
-
return (t, e) => typeof e == "object" ? ri(s, t, e) : ((i, r, n) => {
|
1452
|
-
const o = r.hasOwnProperty(n);
|
1453
|
-
return r.constructor.createProperty(n, o ? { ...i, wrapped: !0 } : i), o ? Object.getOwnPropertyDescriptor(r, n) : void 0;
|
1454
|
-
})(s, t, e);
|
1455
|
-
}
|
1456
|
-
/**
|
1457
|
-
* @license
|
1458
|
-
* Copyright 2017 Google LLC
|
1459
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
1460
|
-
*/
|
1461
|
-
function k(s) {
|
1462
|
-
return v({ ...s, state: !0, attribute: !1 });
|
1463
|
-
}
|
1502
|
+
const ci = At(ai);
|
1464
1503
|
/**
|
1465
1504
|
* @license
|
1466
1505
|
* Copyright 2018 Google LLC
|
1467
1506
|
* SPDX-License-Identifier: BSD-3-Clause
|
1468
1507
|
*/
|
1469
|
-
const
|
1470
|
-
constructor(
|
1508
|
+
const li = At(class extends ce {
|
1509
|
+
constructor(r) {
|
1471
1510
|
var t;
|
1472
|
-
if (super(
|
1511
|
+
if (super(r), r.type !== wt.ATTRIBUTE || r.name !== "class" || ((t = r.strings) == null ? void 0 : t.length) > 2)
|
1473
1512
|
throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
|
1474
1513
|
}
|
1475
|
-
render(
|
1476
|
-
return " " + Object.keys(
|
1514
|
+
render(r) {
|
1515
|
+
return " " + Object.keys(r).filter((t) => r[t]).join(" ") + " ";
|
1477
1516
|
}
|
1478
|
-
update(
|
1479
|
-
var i,
|
1517
|
+
update(r, [t]) {
|
1518
|
+
var i, s;
|
1480
1519
|
if (this.it === void 0) {
|
1481
|
-
this.it = /* @__PURE__ */ new Set(),
|
1520
|
+
this.it = /* @__PURE__ */ new Set(), r.strings !== void 0 && (this.st = new Set(r.strings.join(" ").split(/\s/).filter((n) => n !== "")));
|
1482
1521
|
for (const n in t)
|
1483
1522
|
t[n] && !((i = this.st) != null && i.has(n)) && this.it.add(n);
|
1484
1523
|
return this.render(t);
|
1485
1524
|
}
|
1486
|
-
const e =
|
1525
|
+
const e = r.element.classList;
|
1487
1526
|
for (const n of this.it)
|
1488
1527
|
n in t || (e.remove(n), this.it.delete(n));
|
1489
1528
|
for (const n in t) {
|
1490
1529
|
const o = !!t[n];
|
1491
|
-
o === this.it.has(n) || (
|
1530
|
+
o === this.it.has(n) || (s = this.st) != null && s.has(n) || (o ? (e.add(n), this.it.add(n)) : (e.remove(n), this.it.delete(n)));
|
1492
1531
|
}
|
1493
|
-
return
|
1494
|
-
}
|
1495
|
-
}),
|
1496
|
-
|
1497
|
-
},
|
1498
|
-
var e, i,
|
1499
|
-
|
1500
|
-
(i =
|
1532
|
+
return P;
|
1533
|
+
}
|
1534
|
+
}), G = (r, t, e) => {
|
1535
|
+
r && e.style.setProperty(t, r);
|
1536
|
+
}, pe = (r, t) => {
|
1537
|
+
var e, i, s, n;
|
1538
|
+
G((e = r.colors) == null ? void 0 : e.primaryBackground, "--primary-background", t), G(
|
1539
|
+
(i = r.colors) == null ? void 0 : i.textOnPrimaryBackground,
|
1501
1540
|
"--text-on-primary-background",
|
1502
1541
|
t
|
1503
|
-
),
|
1504
|
-
(
|
1542
|
+
), G(
|
1543
|
+
(s = r.colors) == null ? void 0 : s.secondaryBackground,
|
1505
1544
|
"--secondary-background",
|
1506
1545
|
t
|
1507
|
-
),
|
1508
|
-
(n =
|
1546
|
+
), G(
|
1547
|
+
(n = r.colors) == null ? void 0 : n.textOnSecondaryBackground,
|
1509
1548
|
"--text-on-secondary-background",
|
1510
1549
|
t
|
1511
1550
|
);
|
@@ -1515,29 +1554,29 @@ const ni = wt(class extends ae {
|
|
1515
1554
|
* Copyright 2020 Google LLC
|
1516
1555
|
* SPDX-License-Identifier: BSD-3-Clause
|
1517
1556
|
*/
|
1518
|
-
const
|
1519
|
-
class
|
1557
|
+
const de = () => new hi();
|
1558
|
+
class hi {
|
1520
1559
|
}
|
1521
|
-
const
|
1522
|
-
render(
|
1523
|
-
return
|
1560
|
+
const dt = /* @__PURE__ */ new WeakMap(), ue = At(class extends he {
|
1561
|
+
render(r) {
|
1562
|
+
return d;
|
1524
1563
|
}
|
1525
|
-
update(
|
1564
|
+
update(r, [t]) {
|
1526
1565
|
var i;
|
1527
1566
|
const e = t !== this.G;
|
1528
|
-
return e && this.G !== void 0 && this.ot(void 0), (e || this.rt !== this.lt) && (this.G = t, this.ct = (i =
|
1567
|
+
return e && this.G !== void 0 && this.ot(void 0), (e || this.rt !== this.lt) && (this.G = t, this.ct = (i = r.options) == null ? void 0 : i.host, this.ot(this.lt = r.element)), d;
|
1529
1568
|
}
|
1530
|
-
ot(
|
1569
|
+
ot(r) {
|
1531
1570
|
if (typeof this.G == "function") {
|
1532
1571
|
const t = this.ct ?? globalThis;
|
1533
|
-
let e =
|
1534
|
-
e === void 0 && (e = /* @__PURE__ */ new WeakMap(),
|
1572
|
+
let e = dt.get(t);
|
1573
|
+
e === void 0 && (e = /* @__PURE__ */ new WeakMap(), dt.set(t, e)), e.get(this.G) !== void 0 && this.G.call(this.ct, void 0), e.set(this.G, r), r !== void 0 && this.G.call(this.ct, r);
|
1535
1574
|
} else
|
1536
|
-
this.G.value =
|
1575
|
+
this.G.value = r;
|
1537
1576
|
}
|
1538
1577
|
get rt() {
|
1539
|
-
var
|
1540
|
-
return typeof this.G == "function" ? (
|
1578
|
+
var r, t;
|
1579
|
+
return typeof this.G == "function" ? (r = dt.get(this.ct ?? globalThis)) == null ? void 0 : r.get(this.G) : (t = this.G) == null ? void 0 : t.value;
|
1541
1580
|
}
|
1542
1581
|
disconnected() {
|
1543
1582
|
this.rt === this.lt && this.ot(void 0);
|
@@ -1546,17 +1585,17 @@ const pt = /* @__PURE__ */ new WeakMap(), de = wt(class extends le {
|
|
1546
1585
|
this.ot(this.lt);
|
1547
1586
|
}
|
1548
1587
|
});
|
1549
|
-
var
|
1550
|
-
for (var
|
1551
|
-
(o =
|
1552
|
-
return i &&
|
1588
|
+
var pi = Object.defineProperty, di = Object.getOwnPropertyDescriptor, it = (r, t, e, i) => {
|
1589
|
+
for (var s = i > 1 ? void 0 : i ? di(t, e) : t, n = r.length - 1, o; n >= 0; n--)
|
1590
|
+
(o = r[n]) && (s = (i ? o(t, e, s) : o(s)) || s);
|
1591
|
+
return i && s && pi(t, e, s), s;
|
1553
1592
|
};
|
1554
|
-
class
|
1593
|
+
class A extends $ {
|
1555
1594
|
constructor() {
|
1556
|
-
super(...arguments), this.active = !1, this.loaded = !1, this.
|
1595
|
+
super(...arguments), this.active = !1, this.loaded = !1, this.containerRef = de();
|
1557
1596
|
}
|
1558
1597
|
async connectedCallback() {
|
1559
|
-
super.connectedCallback(), this.icon = await this._renderSymbol(), this.loaded = !0, this._applyBranding()
|
1598
|
+
super.connectedCallback(), this.icon = await this._renderSymbol(), this.loaded = !0, this._applyBranding();
|
1560
1599
|
}
|
1561
1600
|
_toggleActive() {
|
1562
1601
|
var t;
|
@@ -1570,7 +1609,7 @@ class b extends w {
|
|
1570
1609
|
}
|
1571
1610
|
_applyBranding() {
|
1572
1611
|
var t;
|
1573
|
-
(t = this.application) != null && t.settings &&
|
1612
|
+
(t = this.application) != null && t.settings && pe(this.application.settings.branding, this);
|
1574
1613
|
}
|
1575
1614
|
async _renderSymbol() {
|
1576
1615
|
var a, c, l;
|
@@ -1579,52 +1618,48 @@ class b extends w {
|
|
1579
1618
|
return T` <img src=${e} class="trigger-icon" alt="" /> `;
|
1580
1619
|
const i = (l = this.application) == null ? void 0 : l.triggerIcon;
|
1581
1620
|
if (!i)
|
1582
|
-
return
|
1583
|
-
const
|
1584
|
-
(
|
1621
|
+
return d;
|
1622
|
+
const s = async (h) => await import("./index-5087564d.mjs").then(
|
1623
|
+
(u) => u[h]
|
1585
1624
|
), { type: n, content: o } = i;
|
1586
1625
|
switch (n) {
|
1587
1626
|
case "Telia": {
|
1588
|
-
const h = await
|
1627
|
+
const h = await s(o);
|
1589
1628
|
return h ? T`<telia-icon
|
1590
1629
|
class="trigger-icon"
|
1591
1630
|
svg=${h.svg}
|
1592
1631
|
size="lg"
|
1593
|
-
></telia-icon>` :
|
1632
|
+
></telia-icon>` : d;
|
1594
1633
|
}
|
1595
1634
|
default:
|
1596
|
-
return
|
1635
|
+
return d;
|
1597
1636
|
}
|
1598
1637
|
}
|
1599
|
-
setOffset(t) {
|
1600
|
-
this.offset = t;
|
1601
|
-
}
|
1602
1638
|
render() {
|
1603
|
-
var t, e, i,
|
1604
|
-
return T`<div class="trigger-container">
|
1605
|
-
${!this.active && ((
|
1639
|
+
var t, e, i, s;
|
1640
|
+
return T`<div class="trigger-container" ${ue(this.containerRef)}>
|
1641
|
+
${!this.active && ((s = (i = (e = (t = this.application) == null ? void 0 : t.settings) == null ? void 0 : e.branding) == null ? void 0 : i.other) != null && s.showButtonLabel) ? T`
|
1606
1642
|
<button
|
1607
1643
|
class="trigger-label"
|
1608
1644
|
@click=${this._toggleActive}
|
1609
|
-
${
|
1645
|
+
${ci({
|
1610
1646
|
keyframeOptions: {},
|
1611
|
-
in:
|
1647
|
+
in: si,
|
1612
1648
|
stabilizeOut: !0,
|
1613
1649
|
skipInitial: !1
|
1614
1650
|
})}
|
1615
1651
|
>
|
1616
1652
|
${this.application.settings.branding.other.buttonLabelText}
|
1617
1653
|
</button>
|
1618
|
-
` :
|
1654
|
+
` : d}
|
1619
1655
|
|
1620
1656
|
<button
|
1621
|
-
class=${
|
1657
|
+
class=${li({
|
1622
1658
|
trigger: !0,
|
1623
1659
|
active: this.active,
|
1624
1660
|
rendered: this.loaded
|
1625
1661
|
})}
|
1626
1662
|
@click=${this._toggleActive}
|
1627
|
-
${de(this.buttonRef)}
|
1628
1663
|
>
|
1629
1664
|
${this.icon}
|
1630
1665
|
<span class="trigger-close">
|
@@ -1658,8 +1693,8 @@ class b extends w {
|
|
1658
1693
|
</div>`;
|
1659
1694
|
}
|
1660
1695
|
}
|
1661
|
-
|
1662
|
-
|
1696
|
+
A.styles = [
|
1697
|
+
R`
|
1663
1698
|
:host {
|
1664
1699
|
--voca-rem-multiplier: 0.625;
|
1665
1700
|
--trigger-label-bg: #f5e0ff;
|
@@ -1671,9 +1706,6 @@ b.styles = [
|
|
1671
1706
|
}
|
1672
1707
|
|
1673
1708
|
.trigger-container {
|
1674
|
-
position: fixed;
|
1675
|
-
bottom: 20px;
|
1676
|
-
right: 20px;
|
1677
1709
|
display: flex;
|
1678
1710
|
align-items: center;
|
1679
1711
|
gap: 1rem;
|
@@ -1768,28 +1800,25 @@ b.styles = [
|
|
1768
1800
|
}
|
1769
1801
|
`
|
1770
1802
|
];
|
1771
|
-
|
1772
|
-
|
1773
|
-
],
|
1774
|
-
|
1775
|
-
|
1776
|
-
],
|
1777
|
-
|
1778
|
-
|
1779
|
-
],
|
1780
|
-
|
1781
|
-
|
1782
|
-
],
|
1783
|
-
|
1784
|
-
|
1785
|
-
]
|
1786
|
-
|
1787
|
-
for (var r = i > 1 ? void 0 : i ? hi(t, e) : t, n = s.length - 1, o; n >= 0; n--)
|
1788
|
-
(o = s[n]) && (r = (i ? o(t, e, r) : o(r)) || r);
|
1789
|
-
return i && r && li(t, e, r), r;
|
1803
|
+
it([
|
1804
|
+
m({ attribute: !1 })
|
1805
|
+
], A.prototype, "application", 2);
|
1806
|
+
it([
|
1807
|
+
z()
|
1808
|
+
], A.prototype, "active", 2);
|
1809
|
+
it([
|
1810
|
+
z()
|
1811
|
+
], A.prototype, "loaded", 2);
|
1812
|
+
it([
|
1813
|
+
z()
|
1814
|
+
], A.prototype, "icon", 2);
|
1815
|
+
var ui = Object.defineProperty, fi = Object.getOwnPropertyDescriptor, x = (r, t, e, i) => {
|
1816
|
+
for (var s = i > 1 ? void 0 : i ? fi(t, e) : t, n = r.length - 1, o; n >= 0; n--)
|
1817
|
+
(o = r[n]) && (s = (i ? o(t, e, s) : o(s)) || s);
|
1818
|
+
return i && s && ui(t, e, s), s;
|
1790
1819
|
};
|
1791
|
-
const
|
1792
|
-
class t extends
|
1820
|
+
const gi = (r) => {
|
1821
|
+
class t extends r {
|
1793
1822
|
constructor() {
|
1794
1823
|
super(...arguments), this.properties = {}, this.context = {}, this.layout = {}, this.nodes = [];
|
1795
1824
|
}
|
@@ -1814,7 +1843,7 @@ const pi = (s) => {
|
|
1814
1843
|
}
|
1815
1844
|
return t.styles = [
|
1816
1845
|
// (superClass as unknown as typeof LitElement).styles ?? [],
|
1817
|
-
|
1846
|
+
R`
|
1818
1847
|
:host {
|
1819
1848
|
font-family: var(--font-family);
|
1820
1849
|
grid-column: span var(--width);
|
@@ -1828,28 +1857,28 @@ const pi = (s) => {
|
|
1828
1857
|
}
|
1829
1858
|
`
|
1830
1859
|
], x([
|
1831
|
-
|
1860
|
+
m()
|
1832
1861
|
], t.prototype, "properties", 2), x([
|
1833
|
-
|
1862
|
+
m()
|
1834
1863
|
], t.prototype, "context", 2), x([
|
1835
|
-
|
1864
|
+
m()
|
1836
1865
|
], t.prototype, "layout", 2), x([
|
1837
|
-
|
1866
|
+
m()
|
1838
1867
|
], t.prototype, "name", 2), x([
|
1839
|
-
|
1868
|
+
m()
|
1840
1869
|
], t.prototype, "type", 2), x([
|
1841
|
-
|
1870
|
+
m({ attribute: !1 })
|
1842
1871
|
], t.prototype, "application", 2), x([
|
1843
|
-
|
1872
|
+
m({ attribute: !1 })
|
1844
1873
|
], t.prototype, "parent", 2), t;
|
1845
1874
|
};
|
1846
|
-
class
|
1875
|
+
class St extends gi($) {
|
1847
1876
|
render() {
|
1848
1877
|
return T`Non resolved component`;
|
1849
1878
|
}
|
1850
1879
|
}
|
1851
|
-
|
1852
|
-
|
1880
|
+
St.styles = [
|
1881
|
+
R`
|
1853
1882
|
:host {
|
1854
1883
|
display: block;
|
1855
1884
|
}
|
@@ -1860,21 +1889,21 @@ At.styles = [
|
|
1860
1889
|
* Copyright 2021 Google LLC
|
1861
1890
|
* SPDX-License-Identifier: BSD-3-Clause
|
1862
1891
|
*/
|
1863
|
-
function*
|
1864
|
-
if (
|
1892
|
+
function* mi(r, t) {
|
1893
|
+
if (r !== void 0) {
|
1865
1894
|
let e = 0;
|
1866
|
-
for (const i of
|
1895
|
+
for (const i of r)
|
1867
1896
|
yield t(i, e++);
|
1868
1897
|
}
|
1869
1898
|
}
|
1870
|
-
var
|
1871
|
-
for (var
|
1872
|
-
(o =
|
1873
|
-
return i &&
|
1899
|
+
var y = /* @__PURE__ */ ((r) => (r.Inline = "inline", r.Trigger = "trigger", r))(y || {}), vi = Object.defineProperty, yi = Object.getOwnPropertyDescriptor, bi = (r, t, e, i) => {
|
1900
|
+
for (var s = i > 1 ? void 0 : i ? yi(t, e) : t, n = r.length - 1, o; n >= 0; n--)
|
1901
|
+
(o = r[n]) && (s = (i ? o(t, e, s) : o(s)) || s);
|
1902
|
+
return i && s && vi(t, e, s), s;
|
1874
1903
|
};
|
1875
|
-
class
|
1904
|
+
class rt extends $ {
|
1876
1905
|
constructor() {
|
1877
|
-
super(...arguments), this.nodes = [], this.wrapperRef =
|
1906
|
+
super(...arguments), this.nodes = [], this.wrapperRef = de();
|
1878
1907
|
}
|
1879
1908
|
addChild(t) {
|
1880
1909
|
t.parent = this, this.nodes.push(t);
|
@@ -1883,26 +1912,26 @@ class it extends w {
|
|
1883
1912
|
if (!this.wrapperRef.value)
|
1884
1913
|
return;
|
1885
1914
|
const t = this.application.settings;
|
1886
|
-
t != null && t.branding &&
|
1915
|
+
t != null && t.branding && pe(t.branding, this.wrapperRef.value);
|
1887
1916
|
}
|
1888
1917
|
applyStyles() {
|
1889
1918
|
if (!this.wrapperRef.value)
|
1890
1919
|
return;
|
1891
1920
|
const t = this.application.styles(), e = this.wrapperRef.value;
|
1892
|
-
Object.entries(t).forEach(([i,
|
1893
|
-
e.style.setProperty(`--${i}`,
|
1921
|
+
Object.entries(t).forEach(([i, s]) => {
|
1922
|
+
e.style.setProperty(`--${i}`, s);
|
1894
1923
|
});
|
1895
1924
|
}
|
1896
1925
|
firstUpdated(t) {
|
1897
1926
|
this.applyBranding(), this.applyStyles();
|
1898
1927
|
}
|
1899
1928
|
render() {
|
1900
|
-
return this.application.renderStrategy ===
|
1901
|
-
${
|
1929
|
+
return this.application.renderStrategy === y.Trigger && (this.renderRoot.host.classList.add("floating"), this.renderRoot.host.classList.add(this.application.anchor)), T`<div class="widget-container" ${ue(this.wrapperRef)}>
|
1930
|
+
${mi(this.nodes, (t) => t)}
|
1902
1931
|
</div>`;
|
1903
1932
|
}
|
1904
1933
|
}
|
1905
|
-
|
1934
|
+
rt.styles = R`
|
1906
1935
|
:host {
|
1907
1936
|
--font-family: TeliaSans, Helvetica, Arial, Lucida Grande, sans-serif;
|
1908
1937
|
--spacing-xs: 0.2rem;
|
@@ -1949,6 +1978,12 @@ it.styles = B`
|
|
1949
1978
|
width: 400px;
|
1950
1979
|
height: 700px;
|
1951
1980
|
}
|
1981
|
+
:host(.floating.bottom-right) {
|
1982
|
+
inset: auto 20px 95px auto;
|
1983
|
+
}
|
1984
|
+
:host(.floating.bottom-left) {
|
1985
|
+
inset: auto auto 95px 20px;
|
1986
|
+
}
|
1952
1987
|
}
|
1953
1988
|
|
1954
1989
|
:host(.floating) .widget-container {
|
@@ -1994,10 +2029,10 @@ it.styles = B`
|
|
1994
2029
|
animation: slideDown 0.3s linear;
|
1995
2030
|
}
|
1996
2031
|
`;
|
1997
|
-
|
1998
|
-
|
1999
|
-
],
|
2000
|
-
class
|
2032
|
+
bi([
|
2033
|
+
m({ attribute: !1 })
|
2034
|
+
], rt.prototype, "application", 2);
|
2035
|
+
class $i {
|
2001
2036
|
constructor() {
|
2002
2037
|
this.root = this.createRoot();
|
2003
2038
|
}
|
@@ -2015,36 +2050,36 @@ class mi {
|
|
2015
2050
|
definitionId: a,
|
2016
2051
|
overrides: []
|
2017
2052
|
};
|
2018
|
-
},
|
2053
|
+
}, s = (a, c, l, h) => {
|
2019
2054
|
l.forEach((p) => {
|
2020
|
-
const
|
2021
|
-
if (!
|
2055
|
+
const u = i(p), f = h[u.definitionId];
|
2056
|
+
if (!f) {
|
2022
2057
|
console.error(
|
2023
|
-
`No definition found for component type '${
|
2058
|
+
`No definition found for component type '${u.definitionId}'.`
|
2024
2059
|
);
|
2025
2060
|
return;
|
2026
2061
|
}
|
2027
|
-
const g = a.createNode(
|
2028
|
-
g && (g.name =
|
2062
|
+
const g = a.createNode(f.type, f.type);
|
2063
|
+
g && (g.name = u.definitionId, g.application = e, f.properties && g.writeProperties(f.properties), f.context && g.writeContext(f.context), f.layout && g.writeLayout(f.layout), c.addChild(g), f.children && s(
|
2029
2064
|
a,
|
2030
2065
|
g,
|
2031
|
-
|
2066
|
+
f.children,
|
2032
2067
|
h
|
2033
2068
|
// views
|
2034
2069
|
));
|
2035
2070
|
});
|
2036
2071
|
}, { entry: n, components: o } = t;
|
2037
|
-
return
|
2072
|
+
return s(this, this.root, [n], o), this.root;
|
2038
2073
|
}
|
2039
2074
|
createRoot() {
|
2040
|
-
return new
|
2075
|
+
return new rt();
|
2041
2076
|
}
|
2042
2077
|
createNode(t, e) {
|
2043
2078
|
const i = this.resolveComponent(e);
|
2044
2079
|
if (!i)
|
2045
|
-
return console.warn(`Unable to resolve component: ${e}`), new
|
2046
|
-
const
|
2047
|
-
return
|
2080
|
+
return console.warn(`Unable to resolve component: ${e}`), new St();
|
2081
|
+
const s = new i();
|
2082
|
+
return s.type = e, s.name = t, s;
|
2048
2083
|
}
|
2049
2084
|
resolveComponent(t) {
|
2050
2085
|
return customElements.get(`ace-${t}`);
|
@@ -2053,33 +2088,33 @@ class mi {
|
|
2053
2088
|
return this.root;
|
2054
2089
|
}
|
2055
2090
|
}
|
2056
|
-
const
|
2091
|
+
const fe = class {
|
2057
2092
|
constructor() {
|
2058
2093
|
this.components = /* @__PURE__ */ new Map();
|
2059
2094
|
}
|
2060
|
-
getComponent(
|
2061
|
-
const t = this.components.get(
|
2095
|
+
getComponent(r) {
|
2096
|
+
const t = this.components.get(r);
|
2062
2097
|
return t || console.warn(
|
2063
|
-
`Unable to resolve component: ${
|
2098
|
+
`Unable to resolve component: ${r}. You most likely forgot to register the required plugin.`
|
2064
2099
|
), t;
|
2065
2100
|
}
|
2066
|
-
registerComponent(
|
2067
|
-
this.components.set(
|
2101
|
+
registerComponent(r, t) {
|
2102
|
+
this.components.set(r, t);
|
2068
2103
|
}
|
2069
2104
|
async loadComponents() {
|
2070
|
-
const
|
2105
|
+
const r = [...this.components.entries()].map(([t, e]) => e.then((i) => {
|
2071
2106
|
this.defineAsWebComponent(t, i.default);
|
2072
2107
|
}));
|
2073
|
-
await Promise.all(
|
2108
|
+
await Promise.all(r);
|
2074
2109
|
}
|
2075
|
-
defineAsWebComponent(
|
2076
|
-
const e =
|
2110
|
+
defineAsWebComponent(r, t) {
|
2111
|
+
const e = fe.ResolveWebComponentName(r);
|
2077
2112
|
customElements.get(e) || customElements.define(e, t);
|
2078
2113
|
}
|
2079
2114
|
};
|
2080
|
-
let
|
2081
|
-
|
2082
|
-
class
|
2115
|
+
let ge = fe;
|
2116
|
+
ge.ResolveWebComponentName = (r) => `ace-${r}`;
|
2117
|
+
class _i {
|
2083
2118
|
constructor() {
|
2084
2119
|
this.texts = /* @__PURE__ */ new Map();
|
2085
2120
|
}
|
@@ -2091,14 +2126,14 @@ class vi {
|
|
2091
2126
|
return i || e || null;
|
2092
2127
|
}
|
2093
2128
|
}
|
2094
|
-
class
|
2095
|
-
constructor(t, e, i,
|
2096
|
-
this.name = t, this.container = e, this.settings = i, this.options =
|
2129
|
+
class wi {
|
2130
|
+
constructor(t, e, i, s) {
|
2131
|
+
this.name = t, this.container = e, this.settings = i, this.options = s, this.platform = new $i(), this.texts = new _i(), this.renderStrategy = y.Inline, this.anchor = "bottom-right", this.autoActivate = !1, this.plugins = [], this.componentResolver = new ge(), this.components = [], this.renderStrategy = this.options.renderStrategy || y.Inline, this.triggerIcon = this.options.triggerIcon, typeof s.autoActivate == "boolean" && (this.autoActivate = s.autoActivate), s.anchor && (this.anchor = s.anchor), this.container.register("$settings", i), this.texts.loadTexts(i.texts || {});
|
2097
2132
|
}
|
2098
2133
|
async activate() {
|
2099
|
-
if (await this.loadPlugins(), await this.componentResolver.loadComponents(), this.root = this.platform.createComponentModel(this.settings, this), this.container.setState(
|
2134
|
+
if (await this.loadPlugins(), await this.componentResolver.loadComponents(), this.root = this.platform.createComponentModel(this.settings, this), this.container.setState(ee.Ready), this.autoActivate) {
|
2100
2135
|
const t = this.render();
|
2101
|
-
t &&
|
2136
|
+
t && this._getTargetElement().appendChild(t);
|
2102
2137
|
}
|
2103
2138
|
}
|
2104
2139
|
async loadPlugins() {
|
@@ -2120,6 +2155,12 @@ class yi {
|
|
2120
2155
|
hide() {
|
2121
2156
|
this.root && (this.root.classList.add("hidden"), this.root.classList.remove("expanded"));
|
2122
2157
|
}
|
2158
|
+
mute() {
|
2159
|
+
this.settings.branding.other.disableSound = !0;
|
2160
|
+
}
|
2161
|
+
unmute() {
|
2162
|
+
this.settings.branding.other.disableSound = !1;
|
2163
|
+
}
|
2123
2164
|
registerComponent(t, e) {
|
2124
2165
|
this.componentResolver.registerComponent(t, e);
|
2125
2166
|
}
|
@@ -2133,27 +2174,36 @@ class yi {
|
|
2133
2174
|
const e = this.components.find((i) => i.type === t);
|
2134
2175
|
return e || null;
|
2135
2176
|
}
|
2177
|
+
_getTargetElement() {
|
2178
|
+
if (this.renderStrategy === y.Trigger) {
|
2179
|
+
let t = document.querySelector(
|
2180
|
+
`ace-trigger-slot.${this.anchor}`
|
2181
|
+
);
|
2182
|
+
return t || (t = new et(), t.anchor = this.anchor, document.body.appendChild(t)), t;
|
2183
|
+
}
|
2184
|
+
return document.body;
|
2185
|
+
}
|
2136
2186
|
render() {
|
2137
|
-
if (this.renderStrategy ===
|
2138
|
-
const t =
|
2139
|
-
return
|
2187
|
+
if (this.renderStrategy === y.Trigger) {
|
2188
|
+
const t = new A();
|
2189
|
+
return t.application = this, t;
|
2140
2190
|
}
|
2141
2191
|
return this.root;
|
2142
2192
|
}
|
2143
2193
|
}
|
2144
|
-
const
|
2194
|
+
const me = class {
|
2145
2195
|
// TODO:
|
2146
2196
|
// private static endpoint = 'http://localhost:5299/api'; // TODO:
|
2147
|
-
async getSite(
|
2148
|
-
const e = await (await fetch(
|
2197
|
+
async getSite(r) {
|
2198
|
+
const e = await (await fetch(r)).json();
|
2149
2199
|
return e ? {
|
2150
2200
|
id: e.id,
|
2151
2201
|
apps: e.widgets.map((i) => {
|
2152
|
-
let
|
2153
|
-
return i.renderStrategy === "Trigger" && (
|
2202
|
+
let s = y.Inline;
|
2203
|
+
return i.renderStrategy === "Trigger" && (s = y.Trigger), {
|
2154
2204
|
id: i.id,
|
2155
2205
|
widgetId: i.widgetId,
|
2156
|
-
renderStrategy:
|
2206
|
+
renderStrategy: s,
|
2157
2207
|
autoActivate: i.autoActivate,
|
2158
2208
|
triggerIcon: {
|
2159
2209
|
type: "Telia",
|
@@ -2163,19 +2213,19 @@ const ge = class {
|
|
2163
2213
|
})
|
2164
2214
|
} : null;
|
2165
2215
|
}
|
2166
|
-
async getWidget(
|
2167
|
-
const e = await (await fetch(`${
|
2216
|
+
async getWidget(r) {
|
2217
|
+
const e = await (await fetch(`${me.endpoint}/widget/${r}`)).json();
|
2168
2218
|
return e ? {
|
2169
2219
|
name: e.name,
|
2170
2220
|
config: JSON.parse(e.configuration)
|
2171
2221
|
} : null;
|
2172
2222
|
}
|
2173
2223
|
};
|
2174
|
-
let
|
2175
|
-
|
2176
|
-
class
|
2224
|
+
let yt = me;
|
2225
|
+
yt.endpoint = "https://widgets.ace.teliacompany.net/api";
|
2226
|
+
class Ai {
|
2177
2227
|
constructor() {
|
2178
|
-
this.applications = [], this.container = new
|
2228
|
+
this.applications = [], this.container = new Ut("environment", this), setTimeout(() => {
|
2179
2229
|
this.notifyWidgetsOfCreation();
|
2180
2230
|
}, 1e3);
|
2181
2231
|
}
|
@@ -2191,7 +2241,7 @@ class bi {
|
|
2191
2241
|
}
|
2192
2242
|
notifyWidgetsOfCreation() {
|
2193
2243
|
document.querySelectorAll("ace-widget").forEach((e) => {
|
2194
|
-
const i = this.applications.find((
|
2244
|
+
const i = this.applications.find((s) => s.name === e.name);
|
2195
2245
|
i && e.dispatchEvent(
|
2196
2246
|
new CustomEvent("environment-created", {
|
2197
2247
|
detail: { widget: i }
|
@@ -2200,7 +2250,7 @@ class bi {
|
|
2200
2250
|
});
|
2201
2251
|
}
|
2202
2252
|
registerApp(t, e, i) {
|
2203
|
-
const
|
2253
|
+
const s = new Ut(t, this), n = new wi(t, s, e, i);
|
2204
2254
|
this.applications.push(n);
|
2205
2255
|
}
|
2206
2256
|
plugin(t) {
|
@@ -2209,9 +2259,9 @@ class bi {
|
|
2209
2259
|
}), this;
|
2210
2260
|
}
|
2211
2261
|
}
|
2212
|
-
class
|
2262
|
+
class Si {
|
2213
2263
|
constructor(t) {
|
2214
|
-
this.configurations = [], this.httpClient = new
|
2264
|
+
this.configurations = [], this.httpClient = new yt(), this.httpClient = new yt(), typeof t == "string" ? this.url = t : (t.httpClient && (this.httpClient = t.httpClient), this.loadFromConfig(t));
|
2215
2265
|
}
|
2216
2266
|
async load(t) {
|
2217
2267
|
const e = await this.httpClient.getSite(t);
|
@@ -2227,6 +2277,7 @@ class $i {
|
|
2227
2277
|
renderStrategy: e.renderStrategy,
|
2228
2278
|
widgetId: e.widgetId,
|
2229
2279
|
autoActivate: e.autoActivate,
|
2280
|
+
anchor: e.anchor,
|
2230
2281
|
triggerIcon: {
|
2231
2282
|
type: "Telia",
|
2232
2283
|
content: e.triggerIcon || "question"
|
@@ -2235,13 +2286,14 @@ class $i {
|
|
2235
2286
|
}
|
2236
2287
|
async bootstrap(t) {
|
2237
2288
|
var e;
|
2238
|
-
this.url && await this.load(this.url), this.environment = new
|
2289
|
+
this.url && await this.load(this.url), this.environment = new Ai(), this.addGlobal(this.environment);
|
2239
2290
|
for await (const i of this.configurations) {
|
2240
|
-
const
|
2241
|
-
|
2291
|
+
const s = await this.httpClient.getWidget(i.widgetId);
|
2292
|
+
s && ((e = this.environment) == null || e.registerApp(s.name, s.config, {
|
2242
2293
|
renderStrategy: i.renderStrategy,
|
2243
2294
|
triggerIcon: i.triggerIcon,
|
2244
|
-
autoActivate: i.autoActivate
|
2295
|
+
autoActivate: i.autoActivate,
|
2296
|
+
anchor: i.anchor
|
2245
2297
|
}));
|
2246
2298
|
}
|
2247
2299
|
t(this.environment), await this.environment.bootstrap();
|
@@ -2250,12 +2302,12 @@ class $i {
|
|
2250
2302
|
globalThis.widgets = t;
|
2251
2303
|
}
|
2252
2304
|
}
|
2253
|
-
var
|
2254
|
-
for (var
|
2255
|
-
(o =
|
2256
|
-
return i &&
|
2305
|
+
var xi = Object.defineProperty, Ci = Object.getOwnPropertyDescriptor, xt = (r, t, e, i) => {
|
2306
|
+
for (var s = i > 1 ? void 0 : i ? Ci(t, e) : t, n = r.length - 1, o; n >= 0; n--)
|
2307
|
+
(o = r[n]) && (s = (i ? o(t, e, s) : o(s)) || s);
|
2308
|
+
return i && s && xi(t, e, s), s;
|
2257
2309
|
};
|
2258
|
-
class
|
2310
|
+
class W extends $ {
|
2259
2311
|
constructor() {
|
2260
2312
|
super(), this.status = "deactivated", this.addEventListener("environment-created", this.onEnvironmentCreated);
|
2261
2313
|
}
|
@@ -2279,45 +2331,46 @@ class F extends w {
|
|
2279
2331
|
}
|
2280
2332
|
render() {
|
2281
2333
|
if (!this.widget || this.status !== "activated")
|
2282
|
-
return
|
2283
|
-
if (this.widget.renderStrategy ===
|
2284
|
-
const t = new
|
2334
|
+
return d;
|
2335
|
+
if (this.widget.renderStrategy === y.Trigger) {
|
2336
|
+
const t = new A();
|
2285
2337
|
return t.application = this.widget, t;
|
2286
2338
|
}
|
2287
2339
|
return this.widget.render();
|
2288
2340
|
}
|
2289
2341
|
}
|
2290
|
-
|
2291
|
-
|
2342
|
+
W.styles = [
|
2343
|
+
R`
|
2292
2344
|
:host {
|
2293
2345
|
display: block;
|
2294
2346
|
}
|
2295
2347
|
`
|
2296
2348
|
];
|
2297
|
-
|
2298
|
-
|
2299
|
-
],
|
2300
|
-
|
2301
|
-
|
2302
|
-
],
|
2303
|
-
|
2304
|
-
|
2305
|
-
],
|
2306
|
-
customElements.get("ace-trigger") || customElements.define("ace-trigger",
|
2307
|
-
customElements.get("ace-
|
2308
|
-
customElements.get("ace-
|
2309
|
-
customElements.get("ace-
|
2310
|
-
|
2311
|
-
|
2349
|
+
xt([
|
2350
|
+
m({ attribute: !0 })
|
2351
|
+
], W.prototype, "name", 2);
|
2352
|
+
xt([
|
2353
|
+
z()
|
2354
|
+
], W.prototype, "widget", 2);
|
2355
|
+
xt([
|
2356
|
+
z()
|
2357
|
+
], W.prototype, "status", 2);
|
2358
|
+
customElements.get("ace-trigger-slot") || customElements.define("ace-trigger-slot", et);
|
2359
|
+
customElements.get("ace-trigger") || customElements.define("ace-trigger", A);
|
2360
|
+
customElements.get("ace-unresolved-component") || customElements.define("ace-unresolved-component", St);
|
2361
|
+
customElements.get("ace-wrapper") || customElements.define("ace-wrapper", rt);
|
2362
|
+
customElements.get("ace-widget") || customElements.define("ace-widget", W);
|
2363
|
+
const Ui = async (r, t) => {
|
2364
|
+
await new Si(r).bootstrap(t);
|
2312
2365
|
};
|
2313
2366
|
export {
|
2314
|
-
|
2315
|
-
|
2316
|
-
|
2317
|
-
|
2318
|
-
|
2319
|
-
|
2320
|
-
|
2321
|
-
|
2322
|
-
|
2367
|
+
W as AceWidget,
|
2368
|
+
wi as Application,
|
2369
|
+
Ut as Container,
|
2370
|
+
Ai as Environment,
|
2371
|
+
yt as HttpClient,
|
2372
|
+
Si as Site,
|
2373
|
+
A as Trigger,
|
2374
|
+
gi as WidgetComponent,
|
2375
|
+
Ui as bootstrap
|
2323
2376
|
};
|