@telia-ace/widget-core-flamingo 1.1.12-rc.10 → 1.1.12-rc.5
Sign up to get free protection for your applications and to get access to all the features.
- package/components/ace-widget.component.d.ts +1 -1
- package/index.js +31 -27
- package/index.mjs +671 -648
- package/package.json +1 -1
package/index.mjs
CHANGED
@@ -1,45 +1,45 @@
|
|
1
|
-
var
|
2
|
-
return
|
3
|
-
e.__proto__ =
|
4
|
-
} || function(e,
|
5
|
-
for (var n in
|
6
|
-
Object.prototype.hasOwnProperty.call(
|
7
|
-
},
|
1
|
+
var dt = function(r, t) {
|
2
|
+
return dt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, i) {
|
3
|
+
e.__proto__ = i;
|
4
|
+
} || function(e, i) {
|
5
|
+
for (var n in i)
|
6
|
+
Object.prototype.hasOwnProperty.call(i, n) && (e[n] = i[n]);
|
7
|
+
}, dt(r, t);
|
8
8
|
};
|
9
|
-
function
|
9
|
+
function L(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
|
+
dt(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 J(r, t) {
|
31
|
+
var e = typeof Symbol == "function" && r[Symbol.iterator];
|
32
32
|
if (!e)
|
33
|
-
return
|
34
|
-
var
|
33
|
+
return r;
|
34
|
+
var i = e.call(r), n, s = [], o;
|
35
35
|
try {
|
36
|
-
for (; (t === void 0 || t-- > 0) && !(n =
|
36
|
+
for (; (t === void 0 || t-- > 0) && !(n = i.next()).done; )
|
37
37
|
s.push(n.value);
|
38
38
|
} catch (a) {
|
39
39
|
o = { error: a };
|
40
40
|
} finally {
|
41
41
|
try {
|
42
|
-
n && !n.done && (e =
|
42
|
+
n && !n.done && (e = i.return) && e.call(i);
|
43
43
|
} finally {
|
44
44
|
if (o)
|
45
45
|
throw o.error;
|
@@ -47,49 +47,49 @@ function Y(i, t) {
|
|
47
47
|
}
|
48
48
|
return s;
|
49
49
|
}
|
50
|
-
function
|
50
|
+
function K(r, t, e) {
|
51
51
|
if (e || arguments.length === 2)
|
52
|
-
for (var
|
53
|
-
(s || !(
|
54
|
-
return
|
52
|
+
for (var i = 0, n = t.length, s; i < n; i++)
|
53
|
+
(s || !(i in t)) && (s || (s = Array.prototype.slice.call(t, 0, i)), s[i] = t[i]);
|
54
|
+
return r.concat(s || Array.prototype.slice.call(t));
|
55
55
|
}
|
56
|
-
function m(
|
57
|
-
return typeof
|
56
|
+
function m(r) {
|
57
|
+
return typeof r == "function";
|
58
58
|
}
|
59
|
-
function
|
60
|
-
var t = function(
|
61
|
-
Error.call(
|
62
|
-
}, e =
|
59
|
+
function Dt(r) {
|
60
|
+
var t = function(i) {
|
61
|
+
Error.call(i), i.stack = new Error().stack;
|
62
|
+
}, e = r(t);
|
63
63
|
return e.prototype = Object.create(Error.prototype), e.prototype.constructor = e, e;
|
64
64
|
}
|
65
|
-
var
|
65
|
+
var ot = Dt(function(r) {
|
66
66
|
return function(e) {
|
67
|
-
|
68
|
-
` + e.map(function(
|
69
|
-
return n + 1 + ") " +
|
67
|
+
r(this), this.message = e ? e.length + ` errors occurred during unsubscription:
|
68
|
+
` + e.map(function(i, n) {
|
69
|
+
return n + 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 rt = 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,
|
84
|
+
return r.prototype.unsubscribe = function() {
|
85
|
+
var t, e, i, n, s;
|
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 h = c.value;
|
94
94
|
h.remove(this);
|
95
95
|
}
|
@@ -110,107 +110,107 @@ var X = function() {
|
|
110
110
|
try {
|
111
111
|
d();
|
112
112
|
} catch (v) {
|
113
|
-
s = v instanceof
|
113
|
+
s = v instanceof ot ? v.errors : [v];
|
114
114
|
}
|
115
115
|
var l = this._finalizers;
|
116
116
|
if (l) {
|
117
117
|
this._finalizers = null;
|
118
118
|
try {
|
119
|
-
for (var f =
|
120
|
-
var g =
|
119
|
+
for (var f = ft(l), p = f.next(); !p.done; p = f.next()) {
|
120
|
+
var g = p.value;
|
121
121
|
try {
|
122
|
-
|
122
|
+
wt(g);
|
123
123
|
} catch (v) {
|
124
|
-
s = s ?? [], v instanceof
|
124
|
+
s = s ?? [], v instanceof ot ? s = K(K([], J(s)), J(v.errors)) : s.push(v);
|
125
125
|
}
|
126
126
|
}
|
127
127
|
} catch (v) {
|
128
|
-
|
128
|
+
i = { error: v };
|
129
129
|
} finally {
|
130
130
|
try {
|
131
|
-
|
131
|
+
p && !p.done && (n = f.return) && n.call(f);
|
132
132
|
} finally {
|
133
|
-
if (
|
134
|
-
throw
|
133
|
+
if (i)
|
134
|
+
throw i.error;
|
135
135
|
}
|
136
136
|
}
|
137
137
|
}
|
138
138
|
if (s)
|
139
|
-
throw new
|
139
|
+
throw new ot(s);
|
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
|
+
wt(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
|
+
}(), Lt = rt.EMPTY;
|
171
|
+
function Bt(r) {
|
172
|
+
return r instanceof rt || r && "closed" in r && m(r.remove) && m(r.add) && m(r.unsubscribe);
|
173
173
|
}
|
174
|
-
function
|
175
|
-
m(
|
174
|
+
function wt(r) {
|
175
|
+
m(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(
|
185
|
-
for (var e = [],
|
186
|
-
e[
|
187
|
-
var n =
|
188
|
-
return n != null && n.setTimeout ? n.setTimeout.apply(n,
|
183
|
+
}, vt = {
|
184
|
+
setTimeout: function(r, t) {
|
185
|
+
for (var e = [], i = 2; i < arguments.length; i++)
|
186
|
+
e[i - 2] = arguments[i];
|
187
|
+
var n = vt.delegate;
|
188
|
+
return n != null && n.setTimeout ? n.setTimeout.apply(n, K([r, t], J(e))) : setTimeout.apply(void 0, K([r, t], J(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 = vt.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 ae(r) {
|
197
|
+
vt.setTimeout(function() {
|
198
|
+
throw r;
|
199
199
|
});
|
200
200
|
}
|
201
|
-
function
|
201
|
+
function At() {
|
202
202
|
}
|
203
|
-
function
|
204
|
-
|
203
|
+
function Y(r) {
|
204
|
+
r();
|
205
205
|
}
|
206
|
-
var
|
207
|
-
|
206
|
+
var Wt = function(r) {
|
207
|
+
L(t, r);
|
208
208
|
function t(e) {
|
209
|
-
var
|
210
|
-
return
|
209
|
+
var i = r.call(this) || this;
|
210
|
+
return i.isStopped = !1, e ? (i.destination = e, Bt(e) && e.add(i)) : i.destination = pe, i;
|
211
211
|
}
|
212
|
-
return t.create = function(e,
|
213
|
-
return new
|
212
|
+
return t.create = function(e, i, n) {
|
213
|
+
return new yt(e, i, n);
|
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(i) {
|
|
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(i) {
|
|
234
234
|
this.unsubscribe();
|
235
235
|
}
|
236
236
|
}, t;
|
237
|
-
}(
|
238
|
-
function
|
239
|
-
return
|
237
|
+
}(rt), ce = Function.prototype.bind;
|
238
|
+
function at(r, t) {
|
239
|
+
return ce.call(r, t);
|
240
240
|
}
|
241
|
-
var
|
242
|
-
function
|
241
|
+
var le = 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
|
-
} catch (
|
251
|
-
|
250
|
+
} catch (i) {
|
251
|
+
V(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
|
-
} catch (
|
259
|
-
|
258
|
+
} catch (i) {
|
259
|
+
V(i);
|
260
260
|
}
|
261
261
|
else
|
262
|
-
|
263
|
-
},
|
262
|
+
V(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
|
+
V(e);
|
270
270
|
}
|
271
|
-
},
|
272
|
-
}(),
|
273
|
-
|
274
|
-
function t(e,
|
275
|
-
var s =
|
271
|
+
}, r;
|
272
|
+
}(), yt = function(r) {
|
273
|
+
L(t, r);
|
274
|
+
function t(e, i, n) {
|
275
|
+
var s = r.call(this) || this, o;
|
276
276
|
if (m(e) || !e)
|
277
277
|
o = {
|
278
278
|
next: e ?? void 0,
|
279
|
-
error:
|
279
|
+
error: i ?? void 0,
|
280
280
|
complete: n ?? void 0
|
281
281
|
};
|
282
282
|
else {
|
283
283
|
var a;
|
284
|
-
s &&
|
284
|
+
s && zt.useDeprecatedNextContext ? (a = Object.create(e), a.unsubscribe = function() {
|
285
285
|
return s.unsubscribe();
|
286
286
|
}, o = {
|
287
|
-
next: e.next &&
|
288
|
-
error: e.error &&
|
289
|
-
complete: e.complete &&
|
287
|
+
next: e.next && at(e.next, a),
|
288
|
+
error: e.error && at(e.error, a),
|
289
|
+
complete: e.complete && at(e.complete, a)
|
290
290
|
}) : o = e;
|
291
291
|
}
|
292
|
-
return s.destination = new
|
292
|
+
return s.destination = new le(o), s;
|
293
293
|
}
|
294
294
|
return t;
|
295
|
-
}(
|
296
|
-
function
|
297
|
-
|
295
|
+
}(Wt);
|
296
|
+
function V(r) {
|
297
|
+
ae(r);
|
298
298
|
}
|
299
|
-
function
|
300
|
-
throw
|
299
|
+
function he(r) {
|
300
|
+
throw r;
|
301
301
|
}
|
302
|
-
var
|
302
|
+
var pe = {
|
303
303
|
closed: !0,
|
304
|
-
next:
|
305
|
-
error:
|
306
|
-
complete:
|
307
|
-
},
|
304
|
+
next: At,
|
305
|
+
error: he,
|
306
|
+
complete: At
|
307
|
+
}, ue = function() {
|
308
308
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
309
309
|
}();
|
310
|
-
function
|
311
|
-
return
|
310
|
+
function de(r) {
|
311
|
+
return r;
|
312
312
|
}
|
313
|
-
function
|
314
|
-
return
|
315
|
-
return
|
316
|
-
return n(
|
313
|
+
function fe(r) {
|
314
|
+
return r.length === 0 ? de : r.length === 1 ? r[0] : function(e) {
|
315
|
+
return r.reduce(function(i, n) {
|
316
|
+
return n(i);
|
317
317
|
}, e);
|
318
318
|
};
|
319
319
|
}
|
320
|
-
var
|
321
|
-
function
|
320
|
+
var St = 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 n = this, s =
|
329
|
-
return
|
327
|
+
}, r.prototype.subscribe = function(t, e, i) {
|
328
|
+
var n = this, s = ve(t) ? t : new yt(t, e, i);
|
329
|
+
return Y(function() {
|
330
330
|
var o = n, a = o.operator, c = o.source;
|
331
331
|
s.add(a ? a.call(s, c) : c ? n._subscribe(s) : n._trySubscribe(s));
|
332
332
|
}), s;
|
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
|
-
},
|
340
|
-
var
|
341
|
-
return e =
|
342
|
-
var o = new
|
339
|
+
}, r.prototype.forEach = function(t, e) {
|
340
|
+
var i = this;
|
341
|
+
return e = Et(e), new e(function(n, s) {
|
342
|
+
var o = new yt({
|
343
343
|
next: function(a) {
|
344
344
|
try {
|
345
345
|
t(a);
|
@@ -350,67 +350,67 @@ var At = function() {
|
|
350
350
|
error: s,
|
351
351
|
complete: n
|
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[ue] = 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 fe(t)(this);
|
364
|
+
}, r.prototype.toPromise = function(t) {
|
365
365
|
var e = this;
|
366
|
-
return t =
|
366
|
+
return t = Et(t), new t(function(i, n) {
|
367
367
|
var s;
|
368
368
|
e.subscribe(function(o) {
|
369
369
|
return s = o;
|
370
370
|
}, function(o) {
|
371
371
|
return n(o);
|
372
372
|
}, function() {
|
373
|
-
return
|
373
|
+
return i(s);
|
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
|
380
|
+
function Et(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 ge(r) {
|
385
|
+
return r && m(r.next) && m(r.error) && m(r.complete);
|
386
386
|
}
|
387
|
-
function
|
388
|
-
return
|
387
|
+
function ve(r) {
|
388
|
+
return r && r instanceof Wt || ge(r) && Bt(r);
|
389
389
|
}
|
390
|
-
var
|
390
|
+
var ye = Dt(function(r) {
|
391
391
|
return function() {
|
392
|
-
|
392
|
+
r(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
393
393
|
};
|
394
|
-
}),
|
395
|
-
|
394
|
+
}), Gt = function(r) {
|
395
|
+
L(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
|
402
|
-
return
|
401
|
+
var i = new Ct(this, this);
|
402
|
+
return i.operator = e, i;
|
403
403
|
}, t.prototype._throwIfClosed = function() {
|
404
404
|
if (this.closed)
|
405
|
-
throw new
|
405
|
+
throw new ye();
|
406
406
|
}, t.prototype.next = function(e) {
|
407
|
-
var
|
408
|
-
|
407
|
+
var i = this;
|
408
|
+
Y(function() {
|
409
409
|
var n, s;
|
410
|
-
if (
|
411
|
-
|
410
|
+
if (i._throwIfClosed(), !i.isStopped) {
|
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
|
}
|
@@ -427,21 +427,21 @@ var ge = Nt(function(i) {
|
|
427
427
|
}
|
428
428
|
});
|
429
429
|
}, t.prototype.error = function(e) {
|
430
|
-
var
|
431
|
-
|
432
|
-
if (
|
433
|
-
|
434
|
-
for (var n =
|
430
|
+
var i = this;
|
431
|
+
Y(function() {
|
432
|
+
if (i._throwIfClosed(), !i.isStopped) {
|
433
|
+
i.hasError = i.isStopped = !0, i.thrownError = e;
|
434
|
+
for (var n = i.observers; n.length; )
|
435
435
|
n.shift().error(e);
|
436
436
|
}
|
437
437
|
});
|
438
438
|
}, t.prototype.complete = function() {
|
439
439
|
var e = this;
|
440
|
-
|
440
|
+
Y(function() {
|
441
441
|
if (e._throwIfClosed(), !e.isStopped) {
|
442
442
|
e.isStopped = !0;
|
443
|
-
for (var
|
444
|
-
|
443
|
+
for (var i = e.observers; i.length; )
|
444
|
+
i.shift().complete();
|
445
445
|
}
|
446
446
|
});
|
447
447
|
}, t.prototype.unsubscribe = function() {
|
@@ -454,47 +454,47 @@ var ge = Nt(function(i) {
|
|
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
|
462
|
-
return s || o ?
|
463
|
-
|
461
|
+
var i = this, n = this, s = n.hasError, o = n.isStopped, a = n.observers;
|
462
|
+
return s || o ? Lt : (this.currentObservers = null, a.push(e), new rt(function() {
|
463
|
+
i.currentObservers = null, gt(a, e);
|
464
464
|
}));
|
465
465
|
}, t.prototype._checkFinalizedStatuses = function(e) {
|
466
|
-
var
|
466
|
+
var i = this, n = i.hasError, s = i.thrownError, o = i.isStopped;
|
467
467
|
n ? e.error(s) : o && e.complete();
|
468
468
|
}, t.prototype.asObservable = function() {
|
469
|
-
var e = new
|
469
|
+
var e = new St();
|
470
470
|
return e.source = this, e;
|
471
|
-
}, t.create = function(e,
|
472
|
-
return new
|
471
|
+
}, t.create = function(e, i) {
|
472
|
+
return new Ct(e, i);
|
473
473
|
}, t;
|
474
|
-
}(
|
475
|
-
|
476
|
-
function t(e,
|
477
|
-
var n =
|
478
|
-
return n.destination = e, n.source =
|
474
|
+
}(St), Ct = function(r) {
|
475
|
+
L(t, r);
|
476
|
+
function t(e, i) {
|
477
|
+
var n = r.call(this) || this;
|
478
|
+
return n.destination = e, n.source = i, n;
|
479
479
|
}
|
480
480
|
return t.prototype.next = function(e) {
|
481
|
-
var
|
482
|
-
(n = (
|
481
|
+
var i, n;
|
482
|
+
(n = (i = this.destination) === null || i === void 0 ? void 0 : i.next) === null || n === void 0 || n.call(i, e);
|
483
483
|
}, t.prototype.error = function(e) {
|
484
|
-
var
|
485
|
-
(n = (
|
484
|
+
var i, n;
|
485
|
+
(n = (i = this.destination) === null || i === void 0 ? void 0 : i.error) === null || n === void 0 || n.call(i, e);
|
486
486
|
}, t.prototype.complete = function() {
|
487
|
-
var e,
|
488
|
-
(
|
487
|
+
var e, i;
|
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
|
491
|
-
return (n = (
|
490
|
+
var i, n;
|
491
|
+
return (n = (i = this.source) === null || i === void 0 ? void 0 : i.subscribe(e)) !== null && n !== void 0 ? n : Lt;
|
492
492
|
}, t;
|
493
|
-
}(
|
494
|
-
|
493
|
+
}(Gt), me = function(r) {
|
494
|
+
L(t, r);
|
495
495
|
function t(e) {
|
496
|
-
var
|
497
|
-
return
|
496
|
+
var i = r.call(this) || this;
|
497
|
+
return i._value = e, i;
|
498
498
|
}
|
499
499
|
return Object.defineProperty(t.prototype, "value", {
|
500
500
|
get: function() {
|
@@ -503,20 +503,20 @@ var ge = Nt(function(i) {
|
|
503
503
|
enumerable: !1,
|
504
504
|
configurable: !0
|
505
505
|
}), t.prototype._subscribe = function(e) {
|
506
|
-
var
|
507
|
-
return !
|
506
|
+
var i = r.prototype._subscribe.call(this, e);
|
507
|
+
return !i.closed && e.next(this._value), i;
|
508
508
|
}, t.prototype.getValue = function() {
|
509
|
-
var e = this,
|
510
|
-
if (
|
509
|
+
var e = this, i = e.hasError, n = e.thrownError, s = e._value;
|
510
|
+
if (i)
|
511
511
|
throw n;
|
512
512
|
return this._throwIfClosed(), s;
|
513
513
|
}, t.prototype.next = function(e) {
|
514
|
-
|
514
|
+
r.prototype.next.call(this, this._value = e);
|
515
515
|
}, t;
|
516
|
-
}(
|
517
|
-
class
|
516
|
+
}(Gt), Vt = /* @__PURE__ */ ((r) => (r.Loading = "loading", r.Ready = "ready", r))(Vt || {});
|
517
|
+
class xt {
|
518
518
|
constructor(t, e) {
|
519
|
-
this.state = new
|
519
|
+
this.state = new me(
|
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 Ct {
|
|
539
539
|
* Copyright 2019 Google LLC
|
540
540
|
* SPDX-License-Identifier: BSD-3-Clause
|
541
541
|
*/
|
542
|
-
const
|
543
|
-
let
|
544
|
-
constructor(t, e,
|
545
|
-
if (this._$cssResult$ = !0,
|
542
|
+
const q = globalThis, bt = q.ShadowRoot && (q.ShadyCSS === void 0 || q.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, _t = Symbol(), Pt = /* @__PURE__ */ new WeakMap();
|
543
|
+
let Ft = class {
|
544
|
+
constructor(t, e, 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 (
|
553
|
-
const
|
554
|
-
|
552
|
+
if (bt && t === void 0) {
|
553
|
+
const i = e !== void 0 && e.length === 1;
|
554
|
+
i && (t = Pt.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), i && Pt.set(e, t));
|
555
555
|
}
|
556
556
|
return t;
|
557
557
|
}
|
@@ -559,79 +559,79 @@ let Vt = class {
|
|
559
559
|
return this.cssText;
|
560
560
|
}
|
561
561
|
};
|
562
|
-
const
|
563
|
-
const e =
|
562
|
+
const be = (r) => new Ft(typeof r == "string" ? r : r + "", void 0, _t), B = (r, ...t) => {
|
563
|
+
const e = r.length === 1 ? r[0] : t.reduce((i, n, s) => 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
|
-
})(n) +
|
570
|
-
return new
|
571
|
-
},
|
572
|
-
if (
|
573
|
-
|
569
|
+
})(n) + r[s + 1], r[0]);
|
570
|
+
return new Ft(e, r, _t);
|
571
|
+
}, _e = (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
|
577
|
-
n !== void 0 &&
|
576
|
+
const i = document.createElement("style"), n = q.litNonce;
|
577
|
+
n !== void 0 && i.setAttribute("nonce", n), i.textContent = e.cssText, r.appendChild(i);
|
578
578
|
}
|
579
|
-
},
|
579
|
+
}, Ot = bt ? (r) => r : (r) => r instanceof CSSStyleSheet ? ((t) => {
|
580
580
|
let e = "";
|
581
|
-
for (const
|
582
|
-
e +=
|
583
|
-
return
|
584
|
-
})(
|
581
|
+
for (const i of t.cssRules)
|
582
|
+
e += i.cssText;
|
583
|
+
return be(e);
|
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: $e, defineProperty: we, getOwnPropertyDescriptor: Ae, getOwnPropertyNames: Se, getOwnPropertySymbols: Ee, getPrototypeOf: Ce } = Object, $ = globalThis, Tt = $.trustedTypes, xe = Tt ? Tt.emptyScript : "", ct = $.reactiveElementPolyfillSupport, I = (r, t) => r, Z = { toAttribute(r, t) {
|
591
591
|
switch (t) {
|
592
592
|
case Boolean:
|
593
|
-
|
593
|
+
r = r ? xe : 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
|
-
class
|
618
|
+
} }, $t = (r, t) => !$e(r, t), Ut = { attribute: !0, type: String, converter: Z, reflect: !1, hasChanged: $t };
|
619
|
+
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), $.litPropertyMetadata ?? ($.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
620
|
+
class O 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 = Ut) {
|
628
628
|
if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(t, e), !e.noAccessor) {
|
629
|
-
const
|
630
|
-
n !== void 0 &&
|
629
|
+
const i = Symbol(), n = this.getPropertyDescriptor(t, i, e);
|
630
|
+
n !== void 0 && we(this.prototype, t, n);
|
631
631
|
}
|
632
632
|
}
|
633
|
-
static getPropertyDescriptor(t, e,
|
634
|
-
const { get: n, set: s } =
|
633
|
+
static getPropertyDescriptor(t, e, i) {
|
634
|
+
const { get: n, set: s } = Ae(this.prototype, t) ?? { get() {
|
635
635
|
return this[e];
|
636
636
|
}, set(o) {
|
637
637
|
this[e] = o;
|
@@ -640,36 +640,36 @@ class T extends HTMLElement {
|
|
640
640
|
return n == null ? void 0 : n.call(this);
|
641
641
|
}, set(o) {
|
642
642
|
const a = n == null ? void 0 : n.call(this);
|
643
|
-
s.call(this, o), this.requestUpdate(t, a,
|
643
|
+
s.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) ?? Ut;
|
648
648
|
}
|
649
649
|
static _$Ei() {
|
650
|
-
if (this.hasOwnProperty(
|
650
|
+
if (this.hasOwnProperty(I("elementProperties")))
|
651
651
|
return;
|
652
|
-
const t =
|
652
|
+
const t = Ce(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
|
-
if (this.hasOwnProperty(
|
656
|
+
if (this.hasOwnProperty(I("finalized")))
|
657
657
|
return;
|
658
|
-
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(
|
659
|
-
const e = this.properties,
|
660
|
-
for (const n of
|
658
|
+
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(I("properties"))) {
|
659
|
+
const e = this.properties, i = [...Se(e), ...Ee(e)];
|
660
|
+
for (const n of i)
|
661
661
|
this.createProperty(n, e[n]);
|
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 [
|
668
|
-
this.elementProperties.set(
|
667
|
+
for (const [i, n] of e)
|
668
|
+
this.elementProperties.set(i, n);
|
669
669
|
}
|
670
670
|
this._$Eh = /* @__PURE__ */ new Map();
|
671
|
-
for (const [e,
|
672
|
-
const n = this._$Eu(e,
|
671
|
+
for (const [e, i] of this.elementProperties) {
|
672
|
+
const n = this._$Eu(e, i);
|
673
673
|
n !== void 0 && this._$Eh.set(n, e);
|
674
674
|
}
|
675
675
|
this.elementStyles = this.finalizeStyles(this.styles);
|
@@ -677,16 +677,16 @@ class T extends HTMLElement {
|
|
677
677
|
static finalizeStyles(t) {
|
678
678
|
const e = [];
|
679
679
|
if (Array.isArray(t)) {
|
680
|
-
const
|
681
|
-
for (const n of
|
682
|
-
e.unshift(
|
680
|
+
const i = new Set(t.flat(1 / 0).reverse());
|
681
|
+
for (const n of i)
|
682
|
+
e.unshift(Ot(n));
|
683
683
|
} else
|
684
|
-
t !== void 0 && e.push(
|
684
|
+
t !== void 0 && e.push(Ot(t));
|
685
685
|
return e;
|
686
686
|
}
|
687
687
|
static _$Eu(t, e) {
|
688
|
-
const
|
689
|
-
return
|
688
|
+
const i = e.attribute;
|
689
|
+
return i === !1 ? void 0 : typeof i == "string" ? i : typeof t == "string" ? t.toLowerCase() : void 0;
|
690
690
|
}
|
691
691
|
constructor() {
|
692
692
|
super(), this._$Ep = void 0, this.isUpdatePending = !1, this.hasUpdated = !1, this._$Em = null, this._$Ev();
|
@@ -705,19 +705,19 @@ class T extends HTMLElement {
|
|
705
705
|
}
|
706
706
|
_$E_() {
|
707
707
|
const t = /* @__PURE__ */ new Map(), e = this.constructor.elementProperties;
|
708
|
-
for (const
|
709
|
-
this.hasOwnProperty(
|
708
|
+
for (const i of e.keys())
|
709
|
+
this.hasOwnProperty(i) && (t.set(i, this[i]), delete this[i]);
|
710
710
|
t.size > 0 && (this._$Ep = t);
|
711
711
|
}
|
712
712
|
createRenderRoot() {
|
713
713
|
const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
714
|
-
return
|
714
|
+
return _e(t, this.constructor.elementStyles), t;
|
715
715
|
}
|
716
716
|
connectedCallback() {
|
717
717
|
var t;
|
718
718
|
this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), (t = this._$ES) == null || t.forEach((e) => {
|
719
|
-
var
|
720
|
-
return (
|
719
|
+
var i;
|
720
|
+
return (i = e.hostConnected) == null ? void 0 : i.call(e);
|
721
721
|
});
|
722
722
|
}
|
723
723
|
enableUpdating(t) {
|
@@ -725,39 +725,39 @@ class T extends HTMLElement {
|
|
725
725
|
disconnectedCallback() {
|
726
726
|
var t;
|
727
727
|
(t = this._$ES) == null || t.forEach((e) => {
|
728
|
-
var
|
729
|
-
return (
|
728
|
+
var i;
|
729
|
+
return (i = e.hostDisconnected) == null ? void 0 : i.call(e);
|
730
730
|
});
|
731
731
|
}
|
732
|
-
attributeChangedCallback(t, e,
|
733
|
-
this._$AK(t,
|
732
|
+
attributeChangedCallback(t, e, i) {
|
733
|
+
this._$AK(t, i);
|
734
734
|
}
|
735
735
|
_$EO(t, e) {
|
736
736
|
var s;
|
737
|
-
const
|
738
|
-
if (n !== void 0 &&
|
739
|
-
const o = (((s =
|
737
|
+
const i = this.constructor.elementProperties.get(t), n = this.constructor._$Eu(t, i);
|
738
|
+
if (n !== void 0 && i.reflect === !0) {
|
739
|
+
const o = (((s = i.converter) == null ? void 0 : s.toAttribute) !== void 0 ? i.converter : Z).toAttribute(e, i.type);
|
740
740
|
this._$Em = t, o == null ? this.removeAttribute(n) : this.setAttribute(n, o), this._$Em = null;
|
741
741
|
}
|
742
742
|
}
|
743
743
|
_$AK(t, e) {
|
744
744
|
var s;
|
745
|
-
const
|
745
|
+
const i = this.constructor, n = i._$Eh.get(t);
|
746
746
|
if (n !== void 0 && this._$Em !== n) {
|
747
|
-
const o =
|
747
|
+
const o = i.getPropertyOptions(n), a = typeof o.converter == "function" ? { fromAttribute: o.converter } : ((s = o.converter) == null ? void 0 : s.fromAttribute) !== void 0 ? o.converter : Z;
|
748
748
|
this._$Em = n, this[n] = a.fromAttribute(e, o.type), this._$Em = null;
|
749
749
|
}
|
750
750
|
}
|
751
|
-
requestUpdate(t, e,
|
751
|
+
requestUpdate(t, e, i, n = !1, s) {
|
752
752
|
if (t !== void 0) {
|
753
|
-
if (
|
753
|
+
if (i ?? (i = this.constructor.getPropertyOptions(t)), !(i.hasChanged ?? $t)(n ? s : this[t], e))
|
754
754
|
return;
|
755
|
-
this.C(t, e,
|
755
|
+
this.C(t, e, i);
|
756
756
|
}
|
757
757
|
this.isUpdatePending === !1 && (this._$Eg = this._$EP());
|
758
758
|
}
|
759
|
-
C(t, e,
|
760
|
-
this._$AL.has(t) || this._$AL.set(t, e),
|
759
|
+
C(t, e, i) {
|
760
|
+
this._$AL.has(t) || this._$AL.set(t, e), i.reflect === !0 && this._$Em !== t && (this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Set())).add(t);
|
761
761
|
}
|
762
762
|
async _$EP() {
|
763
763
|
this.isUpdatePending = !0;
|
@@ -773,7 +773,7 @@ class T extends HTMLElement {
|
|
773
773
|
return this.performUpdate();
|
774
774
|
}
|
775
775
|
performUpdate() {
|
776
|
-
var
|
776
|
+
var i;
|
777
777
|
if (!this.isUpdatePending)
|
778
778
|
return;
|
779
779
|
if (!this.hasUpdated) {
|
@@ -790,7 +790,7 @@ class T extends HTMLElement {
|
|
790
790
|
let t = !1;
|
791
791
|
const e = this._$AL;
|
792
792
|
try {
|
793
|
-
t = this.shouldUpdate(e), t ? (this.willUpdate(e), (
|
793
|
+
t = this.shouldUpdate(e), t ? (this.willUpdate(e), (i = this._$ES) == null || i.forEach((n) => {
|
794
794
|
var s;
|
795
795
|
return (s = n.hostUpdate) == null ? void 0 : s.call(n);
|
796
796
|
}), this.update(e)) : this._$ET();
|
@@ -803,9 +803,9 @@ class T extends HTMLElement {
|
|
803
803
|
}
|
804
804
|
_$AE(t) {
|
805
805
|
var e;
|
806
|
-
(e = this._$ES) == null || e.forEach((
|
806
|
+
(e = this._$ES) == null || e.forEach((i) => {
|
807
807
|
var n;
|
808
|
-
return (n =
|
808
|
+
return (n = i.hostUpdated) == null ? void 0 : n.call(i);
|
809
809
|
}), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
|
810
810
|
}
|
811
811
|
_$ET() {
|
@@ -828,40 +828,40 @@ class T 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(), ct == null || ct({ ReactiveElement: O }), ($.reactiveElementVersions ?? ($.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
|
838
|
-
\f\r]`,
|
839
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"),
|
840
|
-
function
|
841
|
-
if (!Array.isArray(
|
837
|
+
const M = globalThis, Q = M.trustedTypes, Rt = Q ? Q.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, Yt = "$lit$", _ = `lit$${(Math.random() + "").slice(9)}$`, qt = "?" + _, Pe = `<${qt}>`, x = document, H = () => x.createComment(""), k = (r) => r === null || typeof r != "object" && typeof r != "function", Jt = Array.isArray, Oe = (r) => Jt(r) || typeof (r == null ? void 0 : r[Symbol.iterator]) == "function", lt = `[
|
838
|
+
\f\r]`, R = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, It = /-->/g, Mt = />/g, S = RegExp(`>|${lt}(?:([^\\s"'>=/]+)(${lt}*=${lt}*(?:[^
|
839
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), jt = /'/g, Ht = /"/g, Kt = /^(?:script|style|textarea|title)$/i, Te = (r) => (t, ...e) => ({ _$litType$: r, strings: t, values: e }), X = Te(1), P = Symbol.for("lit-noChange"), u = Symbol.for("lit-nothing"), kt = /* @__PURE__ */ new WeakMap(), C = x.createTreeWalker(x, 129);
|
840
|
+
function Zt(r, t) {
|
841
|
+
if (!Array.isArray(r) || !r.hasOwnProperty("raw"))
|
842
842
|
throw Error("invalid template strings array");
|
843
|
-
return
|
843
|
+
return Rt !== void 0 ? Rt.createHTML(t) : t;
|
844
844
|
}
|
845
|
-
const
|
846
|
-
const e =
|
847
|
-
let n, s = t === 2 ? "<svg>" : "", o =
|
845
|
+
const Ue = (r, t) => {
|
846
|
+
const e = r.length - 1, i = [];
|
847
|
+
let n, s = t === 2 ? "<svg>" : "", o = R;
|
848
848
|
for (let a = 0; a < e; a++) {
|
849
|
-
const c =
|
849
|
+
const c = r[a];
|
850
850
|
let h, d, l = -1, f = 0;
|
851
851
|
for (; f < c.length && (o.lastIndex = f, d = o.exec(c), d !== null); )
|
852
|
-
f = o.lastIndex, o ===
|
853
|
-
const
|
854
|
-
s += o ===
|
852
|
+
f = o.lastIndex, o === R ? d[1] === "!--" ? o = It : d[1] !== void 0 ? o = Mt : d[2] !== void 0 ? (Kt.test(d[2]) && (n = RegExp("</" + d[2], "g")), o = S) : d[3] !== void 0 && (o = S) : o === S ? d[0] === ">" ? (o = n ?? R, l = -1) : d[1] === void 0 ? l = -2 : (l = o.lastIndex - d[2].length, h = d[1], o = d[3] === void 0 ? S : d[3] === '"' ? Ht : jt) : o === Ht || o === jt ? o = S : o === It || o === Mt ? o = R : (o = S, n = void 0);
|
853
|
+
const p = o === S && r[a + 1].startsWith("/>") ? " " : "";
|
854
|
+
s += o === R ? c + Pe : l >= 0 ? (i.push(h), c.slice(0, l) + Yt + c.slice(l) + _ + p) : c + _ + (l === -2 ? a : p);
|
855
855
|
}
|
856
|
-
return [
|
856
|
+
return [Zt(r, s + (r[e] || "<?>") + (t === 2 ? "</svg>" : "")), i];
|
857
857
|
};
|
858
|
-
class
|
859
|
-
constructor({ strings: t, _$litType$: e },
|
858
|
+
class N {
|
859
|
+
constructor({ strings: t, _$litType$: e }, i) {
|
860
860
|
let n;
|
861
861
|
this.parts = [];
|
862
862
|
let s = 0, o = 0;
|
863
|
-
const a = t.length - 1, c = this.parts, [h, d] =
|
864
|
-
if (this.el =
|
863
|
+
const a = t.length - 1, c = this.parts, [h, d] = Ue(t, e);
|
864
|
+
if (this.el = N.createElement(h, i), C.currentNode = this.el.content, e === 2) {
|
865
865
|
const l = this.el.content.firstChild;
|
866
866
|
l.replaceWith(...l.childNodes);
|
867
867
|
}
|
@@ -869,45 +869,45 @@ class H {
|
|
869
869
|
if (n.nodeType === 1) {
|
870
870
|
if (n.hasAttributes())
|
871
871
|
for (const l of n.getAttributeNames())
|
872
|
-
if (l.endsWith(
|
873
|
-
const f = d[o++],
|
874
|
-
c.push({ type: 1, index: s, name: g[2], strings:
|
872
|
+
if (l.endsWith(Yt)) {
|
873
|
+
const f = d[o++], p = n.getAttribute(l).split(_), g = /([.?@])?(.*)/.exec(f);
|
874
|
+
c.push({ type: 1, index: s, name: g[2], strings: p, ctor: g[1] === "." ? Ie : g[1] === "?" ? Me : g[1] === "@" ? je : it }), n.removeAttribute(l);
|
875
875
|
} else
|
876
|
-
l.startsWith(
|
877
|
-
if (
|
878
|
-
const l = n.textContent.split(
|
876
|
+
l.startsWith(_) && (c.push({ type: 6, index: s }), n.removeAttribute(l));
|
877
|
+
if (Kt.test(n.tagName)) {
|
878
|
+
const l = n.textContent.split(_), f = l.length - 1;
|
879
879
|
if (f > 0) {
|
880
|
-
n.textContent =
|
881
|
-
for (let
|
882
|
-
n.append(l[
|
883
|
-
n.append(l[f],
|
880
|
+
n.textContent = Q ? Q.emptyScript : "";
|
881
|
+
for (let p = 0; p < f; p++)
|
882
|
+
n.append(l[p], H()), C.nextNode(), c.push({ type: 2, index: ++s });
|
883
|
+
n.append(l[f], H());
|
884
884
|
}
|
885
885
|
}
|
886
886
|
} else if (n.nodeType === 8)
|
887
|
-
if (n.data ===
|
887
|
+
if (n.data === qt)
|
888
888
|
c.push({ type: 2, index: s });
|
889
889
|
else {
|
890
890
|
let l = -1;
|
891
|
-
for (; (l = n.data.indexOf(
|
892
|
-
c.push({ type: 7, index: s }), l +=
|
891
|
+
for (; (l = n.data.indexOf(_, l + 1)) !== -1; )
|
892
|
+
c.push({ type: 7, index: s }), l += _.length - 1;
|
893
893
|
}
|
894
894
|
s++;
|
895
895
|
}
|
896
896
|
}
|
897
897
|
static createElement(t, e) {
|
898
|
-
const
|
899
|
-
return
|
898
|
+
const i = x.createElement("template");
|
899
|
+
return i.innerHTML = t, i;
|
900
900
|
}
|
901
901
|
}
|
902
|
-
function
|
902
|
+
function T(r, t, e = r, i) {
|
903
903
|
var o, a;
|
904
904
|
if (t === P)
|
905
905
|
return t;
|
906
|
-
let n =
|
907
|
-
const s =
|
908
|
-
return (n == null ? void 0 : n.constructor) !== s && ((a = n == null ? void 0 : n._$AO) == null || a.call(n, !1), s === void 0 ? n = void 0 : (n = new s(
|
906
|
+
let n = i !== void 0 ? (o = e._$Co) == null ? void 0 : o[i] : e._$Cl;
|
907
|
+
const s = k(t) ? void 0 : t._$litDirective$;
|
908
|
+
return (n == null ? void 0 : n.constructor) !== s && ((a = n == null ? void 0 : n._$AO) == null || a.call(n, !1), s === void 0 ? n = void 0 : (n = new s(r), n._$AT(r, e, i)), i !== void 0 ? (e._$Co ?? (e._$Co = []))[i] = n : e._$Cl = n), n !== void 0 && (t = T(r, n._$AS(r, t.values), n, i)), t;
|
909
909
|
}
|
910
|
-
class
|
910
|
+
class Re {
|
911
911
|
constructor(t, e) {
|
912
912
|
this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = e;
|
913
913
|
}
|
@@ -918,13 +918,13 @@ class Oe {
|
|
918
918
|
return this._$AM._$AU;
|
919
919
|
}
|
920
920
|
u(t) {
|
921
|
-
const { el: { content: e }, parts:
|
921
|
+
const { el: { content: e }, parts: i } = this._$AD, n = ((t == null ? void 0 : t.creationScope) ?? x).importNode(e, !0);
|
922
922
|
C.currentNode = n;
|
923
|
-
let s = C.nextNode(), o = 0, a = 0, c =
|
923
|
+
let s = C.nextNode(), o = 0, a = 0, c = i[0];
|
924
924
|
for (; c !== void 0; ) {
|
925
925
|
if (o === c.index) {
|
926
926
|
let h;
|
927
|
-
c.type === 2 ? h = new
|
927
|
+
c.type === 2 ? h = new z(s, s.nextSibling, this, t) : c.type === 1 ? h = new c.ctor(s, c.name, c.strings, this, t) : c.type === 6 && (h = new He(s, this, t)), this._$AV.push(h), c = i[++a];
|
928
928
|
}
|
929
929
|
o !== (c == null ? void 0 : c.index) && (s = C.nextNode(), o++);
|
930
930
|
}
|
@@ -932,17 +932,17 @@ class Oe {
|
|
932
932
|
}
|
933
933
|
p(t) {
|
934
934
|
let e = 0;
|
935
|
-
for (const
|
936
|
-
|
935
|
+
for (const i of this._$AV)
|
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 z {
|
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,
|
945
|
-
this.type = 2, this._$AH =
|
944
|
+
constructor(t, e, i, n) {
|
945
|
+
this.type = 2, this._$AH = u, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = i, this.options = n, this._$Cv = (n == null ? void 0 : n.isConnected) ?? !0;
|
946
946
|
}
|
947
947
|
get parentNode() {
|
948
948
|
let t = this._$AA.parentNode;
|
@@ -956,7 +956,7 @@ class L {
|
|
956
956
|
return this._$AB;
|
957
957
|
}
|
958
958
|
_$AI(t, e = this) {
|
959
|
-
t =
|
959
|
+
t = T(this, t, e), k(t) ? t === u || t == null || t === "" ? (this._$AH !== u && this._$AR(), this._$AH = u) : t !== this._$AH && t !== P && this._(t) : t._$litType$ !== void 0 ? this.g(t) : t.nodeType !== void 0 ? this.$(t) : Oe(t) ? this.T(t) : this._(t);
|
960
960
|
}
|
961
961
|
k(t) {
|
962
962
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
@@ -965,33 +965,33 @@ class L {
|
|
965
965
|
this._$AH !== t && (this._$AR(), this._$AH = this.k(t));
|
966
966
|
}
|
967
967
|
_(t) {
|
968
|
-
this._$AH !==
|
968
|
+
this._$AH !== u && k(this._$AH) ? this._$AA.nextSibling.data = t : this.$(x.createTextNode(t)), this._$AH = t;
|
969
969
|
}
|
970
970
|
g(t) {
|
971
971
|
var s;
|
972
|
-
const { values: e, _$litType$:
|
972
|
+
const { values: e, _$litType$: i } = t, n = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el = N.createElement(Zt(i.h, i.h[0]), this.options)), i);
|
973
973
|
if (((s = this._$AH) == null ? void 0 : s._$AD) === n)
|
974
974
|
this._$AH.p(e);
|
975
975
|
else {
|
976
|
-
const o = new
|
976
|
+
const o = new Re(n, 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 = kt.get(t.strings);
|
982
|
+
return e === void 0 && kt.set(t.strings, e = new N(t)), e;
|
983
983
|
}
|
984
984
|
T(t) {
|
985
|
-
|
985
|
+
Jt(this._$AH) || (this._$AH = [], this._$AR());
|
986
986
|
const e = this._$AH;
|
987
|
-
let
|
987
|
+
let i, n = 0;
|
988
988
|
for (const s of t)
|
989
|
-
n === e.length ? e.push(
|
990
|
-
n < e.length && (this._$AR(
|
989
|
+
n === e.length ? e.push(i = new z(this.k(H()), this.k(H()), this, this.options)) : i = e[n], i._$AI(s), n++;
|
990
|
+
n < e.length && (this._$AR(i && i._$AB.nextSibling, n), e.length = n);
|
991
991
|
}
|
992
992
|
_$AR(t = this._$AA.nextSibling, e) {
|
993
|
-
var
|
994
|
-
for ((
|
993
|
+
var i;
|
994
|
+
for ((i = this._$AP) == null ? void 0 : i.call(this, !1, !0, e); t && t !== this._$AB; ) {
|
995
995
|
const n = t.nextSibling;
|
996
996
|
t.remove(), t = n;
|
997
997
|
}
|
@@ -1001,92 +1001,92 @@ class L {
|
|
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 it {
|
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,
|
1012
|
-
this.type = 1, this._$AH =
|
1011
|
+
constructor(t, e, i, n, s) {
|
1012
|
+
this.type = 1, this._$AH = u, this._$AN = void 0, this.element = t, this.name = e, this._$AM = n, this.options = s, i.length > 2 || i[0] !== "" || i[1] !== "" ? (this._$AH = Array(i.length - 1).fill(new String()), this.strings = i) : this._$AH = u;
|
1013
1013
|
}
|
1014
|
-
_$AI(t, e = this,
|
1014
|
+
_$AI(t, e = this, i, n) {
|
1015
1015
|
const s = this.strings;
|
1016
1016
|
let o = !1;
|
1017
1017
|
if (s === void 0)
|
1018
|
-
t =
|
1018
|
+
t = T(this, t, e, 0), o = !k(t) || t !== this._$AH && t !== P, o && (this._$AH = t);
|
1019
1019
|
else {
|
1020
1020
|
const a = t;
|
1021
1021
|
let c, h;
|
1022
1022
|
for (t = s[0], c = 0; c < s.length - 1; c++)
|
1023
|
-
h =
|
1023
|
+
h = T(this, a[i + c], e, c), h === P && (h = this._$AH[c]), o || (o = !k(h) || h !== this._$AH[c]), h === u ? t = u : t !== u && (t += (h ?? "") + s[c + 1]), this._$AH[c] = h;
|
1024
1024
|
}
|
1025
1025
|
o && !n && this.O(t);
|
1026
1026
|
}
|
1027
1027
|
O(t) {
|
1028
|
-
t ===
|
1028
|
+
t === u ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
1029
1029
|
}
|
1030
1030
|
}
|
1031
|
-
class
|
1031
|
+
class Ie extends it {
|
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 === u ? void 0 : t;
|
1037
1037
|
}
|
1038
1038
|
}
|
1039
|
-
class
|
1039
|
+
class Me extends it {
|
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 !== u);
|
1045
1045
|
}
|
1046
1046
|
}
|
1047
|
-
class
|
1048
|
-
constructor(t, e,
|
1049
|
-
super(t, e,
|
1047
|
+
class je extends it {
|
1048
|
+
constructor(t, e, i, n, s) {
|
1049
|
+
super(t, e, i, n, s), this.type = 5;
|
1050
1050
|
}
|
1051
1051
|
_$AI(t, e = this) {
|
1052
|
-
if ((t =
|
1052
|
+
if ((t = T(this, t, e, 0) ?? u) === P)
|
1053
1053
|
return;
|
1054
|
-
const
|
1055
|
-
n && this.element.removeEventListener(this.name, this,
|
1054
|
+
const i = this._$AH, n = t === u && i !== u || t.capture !== i.capture || t.once !== i.once || t.passive !== i.passive, s = t !== u && (i === u || n);
|
1055
|
+
n && this.element.removeEventListener(this.name, this, i), s && 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
|
1063
|
-
constructor(t, e,
|
1064
|
-
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options =
|
1062
|
+
class He {
|
1063
|
+
constructor(t, e, i) {
|
1064
|
+
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = i;
|
1065
1065
|
}
|
1066
1066
|
get _$AU() {
|
1067
1067
|
return this._$AM._$AU;
|
1068
1068
|
}
|
1069
1069
|
_$AI(t) {
|
1070
|
-
|
1070
|
+
T(this, t);
|
1071
1071
|
}
|
1072
1072
|
}
|
1073
|
-
const
|
1074
|
-
|
1075
|
-
const ke = (
|
1076
|
-
const
|
1077
|
-
let n =
|
1073
|
+
const ht = M.litHtmlPolyfillSupport;
|
1074
|
+
ht == null || ht(N, z), (M.litHtmlVersions ?? (M.litHtmlVersions = [])).push("3.0.2");
|
1075
|
+
const ke = (r, t, e) => {
|
1076
|
+
const i = (e == null ? void 0 : e.renderBefore) ?? t;
|
1077
|
+
let n = i._$litPart$;
|
1078
1078
|
if (n === void 0) {
|
1079
1079
|
const s = (e == null ? void 0 : e.renderBefore) ?? null;
|
1080
|
-
|
1080
|
+
i._$litPart$ = n = new z(t.insertBefore(H(), s), s, void 0, e ?? {});
|
1081
1081
|
}
|
1082
|
-
return n._$AI(
|
1082
|
+
return n._$AI(r), n;
|
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 w = class extends O {
|
1090
1090
|
constructor() {
|
1091
1091
|
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
1092
1092
|
}
|
@@ -1111,65 +1111,75 @@ let $ = class extends T {
|
|
1111
1111
|
return P;
|
1112
1112
|
}
|
1113
1113
|
};
|
1114
|
-
var
|
1115
|
-
|
1116
|
-
const
|
1117
|
-
|
1114
|
+
var Nt;
|
1115
|
+
w._$litElement$ = !0, w.finalized = !0, (Nt = globalThis.litElementHydrateSupport) == null || Nt.call(globalThis, { LitElement: w });
|
1116
|
+
const pt = globalThis.litElementPolyfillSupport;
|
1117
|
+
pt == null || pt({ LitElement: w });
|
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 nt = (r) => (t, e) => {
|
1125
|
+
e !== void 0 ? e.addInitializer(() => {
|
1126
|
+
customElements.define(r, t);
|
1127
|
+
}) : customElements.define(r, t);
|
1128
|
+
};
|
1129
|
+
/**
|
1130
|
+
* @license
|
1131
|
+
* Copyright 2017 Google LLC
|
1132
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
1133
|
+
*/
|
1134
|
+
const Ne = { attribute: !0, type: String, converter: Z, reflect: !1, hasChanged: $t }, De = (r = Ne, t, e) => {
|
1135
|
+
const { kind: i, metadata: n } = e;
|
1126
1136
|
let s = globalThis.litPropertyMetadata.get(n);
|
1127
|
-
if (s === void 0 && globalThis.litPropertyMetadata.set(n, s = /* @__PURE__ */ new Map()), s.set(e.name,
|
1137
|
+
if (s === void 0 && globalThis.litPropertyMetadata.set(n, s = /* @__PURE__ */ new Map()), s.set(e.name, r), i === "accessor") {
|
1128
1138
|
const { name: o } = e;
|
1129
1139
|
return { set(a) {
|
1130
1140
|
const c = t.get.call(this);
|
1131
|
-
t.set.call(this, a), this.requestUpdate(o, c,
|
1141
|
+
t.set.call(this, a), this.requestUpdate(o, c, r);
|
1132
1142
|
}, init(a) {
|
1133
|
-
return a !== void 0 && this.C(o, void 0,
|
1143
|
+
return a !== void 0 && this.C(o, void 0, r), a;
|
1134
1144
|
} };
|
1135
1145
|
}
|
1136
|
-
if (
|
1146
|
+
if (i === "setter") {
|
1137
1147
|
const { name: o } = e;
|
1138
1148
|
return function(a) {
|
1139
1149
|
const c = this[o];
|
1140
|
-
t.call(this, a), this.requestUpdate(o, c,
|
1150
|
+
t.call(this, a), this.requestUpdate(o, c, r);
|
1141
1151
|
};
|
1142
1152
|
}
|
1143
|
-
throw Error("Unsupported decorator location: " +
|
1153
|
+
throw Error("Unsupported decorator location: " + i);
|
1144
1154
|
};
|
1145
|
-
function y(
|
1146
|
-
return (t, e) => typeof e == "object" ?
|
1155
|
+
function y(r) {
|
1156
|
+
return (t, e) => typeof e == "object" ? De(r, t, e) : ((i, n, s) => {
|
1147
1157
|
const o = n.hasOwnProperty(s);
|
1148
|
-
return n.constructor.createProperty(s, o ? { ...
|
1149
|
-
})(
|
1158
|
+
return n.constructor.createProperty(s, o ? { ...i, wrapped: !0 } : i), o ? Object.getOwnPropertyDescriptor(n, s) : void 0;
|
1159
|
+
})(r, t, e);
|
1150
1160
|
}
|
1151
1161
|
/**
|
1152
1162
|
* @license
|
1153
1163
|
* Copyright 2017 Google LLC
|
1154
1164
|
* SPDX-License-Identifier: BSD-3-Clause
|
1155
1165
|
*/
|
1156
|
-
function
|
1157
|
-
return y({ ...
|
1166
|
+
function W(r) {
|
1167
|
+
return y({ ...r, state: !0, attribute: !1 });
|
1158
1168
|
}
|
1159
1169
|
/**
|
1160
1170
|
* @license
|
1161
1171
|
* Copyright 2017 Google LLC
|
1162
1172
|
* SPDX-License-Identifier: BSD-3-Clause
|
1163
1173
|
*/
|
1164
|
-
const
|
1165
|
-
class
|
1174
|
+
const Qt = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, Xt = (r) => (...t) => ({ _$litDirective$: r, values: t });
|
1175
|
+
class te {
|
1166
1176
|
constructor(t) {
|
1167
1177
|
}
|
1168
1178
|
get _$AU() {
|
1169
1179
|
return this._$AM._$AU;
|
1170
1180
|
}
|
1171
|
-
_$AT(t, e,
|
1172
|
-
this._$Ct = t, this._$AM = e, this._$Ci =
|
1181
|
+
_$AT(t, e, i) {
|
1182
|
+
this._$Ct = t, this._$AM = e, this._$Ci = i;
|
1173
1183
|
}
|
1174
1184
|
_$AS(t, e) {
|
1175
1185
|
return this.update(t, e);
|
@@ -1183,24 +1193,24 @@ class Xt {
|
|
1183
1193
|
* Copyright 2018 Google LLC
|
1184
1194
|
* SPDX-License-Identifier: BSD-3-Clause
|
1185
1195
|
*/
|
1186
|
-
const
|
1187
|
-
constructor(
|
1196
|
+
const Le = Xt(class extends te {
|
1197
|
+
constructor(r) {
|
1188
1198
|
var t;
|
1189
|
-
if (super(
|
1199
|
+
if (super(r), r.type !== Qt.ATTRIBUTE || r.name !== "class" || ((t = r.strings) == null ? void 0 : t.length) > 2)
|
1190
1200
|
throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
|
1191
1201
|
}
|
1192
|
-
render(
|
1193
|
-
return " " + Object.keys(
|
1202
|
+
render(r) {
|
1203
|
+
return " " + Object.keys(r).filter((t) => r[t]).join(" ") + " ";
|
1194
1204
|
}
|
1195
|
-
update(
|
1196
|
-
var
|
1205
|
+
update(r, [t]) {
|
1206
|
+
var i, n;
|
1197
1207
|
if (this.it === void 0) {
|
1198
|
-
this.it = /* @__PURE__ */ new Set(),
|
1208
|
+
this.it = /* @__PURE__ */ new Set(), r.strings !== void 0 && (this.st = new Set(r.strings.join(" ").split(/\s/).filter((s) => s !== "")));
|
1199
1209
|
for (const s in t)
|
1200
|
-
t[s] && !((
|
1210
|
+
t[s] && !((i = this.st) != null && i.has(s)) && this.it.add(s);
|
1201
1211
|
return this.render(t);
|
1202
1212
|
}
|
1203
|
-
const e =
|
1213
|
+
const e = r.element.classList;
|
1204
1214
|
for (const s of this.it)
|
1205
1215
|
s in t || (e.remove(s), this.it.delete(s));
|
1206
1216
|
for (const s in t) {
|
@@ -1209,30 +1219,30 @@ const Ne = Qt(class extends Xt {
|
|
1209
1219
|
}
|
1210
1220
|
return P;
|
1211
1221
|
}
|
1212
|
-
}),
|
1213
|
-
|
1214
|
-
},
|
1215
|
-
var e,
|
1216
|
-
|
1217
|
-
(
|
1222
|
+
}), F = (r, t, e) => {
|
1223
|
+
r && e.style.setProperty(t, r);
|
1224
|
+
}, ee = (r, t) => {
|
1225
|
+
var e, i, n, s;
|
1226
|
+
F((e = r.colors) == null ? void 0 : e.primaryBackground, "--primary-background", t), F(
|
1227
|
+
(i = r.colors) == null ? void 0 : i.textOnPrimaryBackground,
|
1218
1228
|
"--text-on-primary-background",
|
1219
1229
|
t
|
1220
|
-
),
|
1221
|
-
(n =
|
1230
|
+
), F(
|
1231
|
+
(n = r.colors) == null ? void 0 : n.secondaryBackground,
|
1222
1232
|
"--secondary-background",
|
1223
1233
|
t
|
1224
|
-
),
|
1225
|
-
(s =
|
1234
|
+
), F(
|
1235
|
+
(s = r.colors) == null ? void 0 : s.textOnSecondaryBackground,
|
1226
1236
|
"--text-on-secondary-background",
|
1227
1237
|
t
|
1228
1238
|
);
|
1229
1239
|
};
|
1230
|
-
var
|
1231
|
-
for (var n =
|
1232
|
-
(o =
|
1233
|
-
return
|
1240
|
+
var Be = Object.defineProperty, ze = Object.getOwnPropertyDescriptor, G = (r, t, e, i) => {
|
1241
|
+
for (var n = i > 1 ? void 0 : i ? ze(t, e) : t, s = r.length - 1, o; s >= 0; s--)
|
1242
|
+
(o = r[s]) && (n = (i ? o(t, e, n) : o(n)) || n);
|
1243
|
+
return i && n && Be(t, e, n), n;
|
1234
1244
|
};
|
1235
|
-
class
|
1245
|
+
let b = class extends w {
|
1236
1246
|
constructor() {
|
1237
1247
|
super(...arguments), this.active = !1, this.loaded = !1;
|
1238
1248
|
}
|
@@ -1240,8 +1250,8 @@ class A extends $ {
|
|
1240
1250
|
super.connectedCallback(), this.icon = await this._renderSymbol(), this.loaded = !0, this._applyBranding();
|
1241
1251
|
}
|
1242
1252
|
_toggleActive() {
|
1243
|
-
var
|
1244
|
-
if (!((
|
1253
|
+
var r;
|
1254
|
+
if (!((r = this.application) != null && r.root)) {
|
1245
1255
|
console.warn(
|
1246
1256
|
"Could not activate widget. No root element assigned to widget."
|
1247
1257
|
);
|
@@ -1250,33 +1260,33 @@ class A extends $ {
|
|
1250
1260
|
this.active = !this.active, this.active ? this.application.appendToDOM() : this.application.removeFromDOM();
|
1251
1261
|
}
|
1252
1262
|
_applyBranding() {
|
1253
|
-
var
|
1254
|
-
(
|
1263
|
+
var r;
|
1264
|
+
(r = this.application) != null && r.settings && ee(this.application.settings.branding, this);
|
1255
1265
|
}
|
1256
1266
|
async _renderSymbol() {
|
1257
|
-
var
|
1258
|
-
const
|
1259
|
-
if (!
|
1260
|
-
return
|
1261
|
-
const
|
1262
|
-
(
|
1263
|
-
), { type:
|
1264
|
-
switch (
|
1267
|
+
var n;
|
1268
|
+
const r = (n = this.application) == null ? void 0 : n.triggerIcon;
|
1269
|
+
if (!r)
|
1270
|
+
return u;
|
1271
|
+
const t = async (s) => await import("./index-5087564d.mjs").then(
|
1272
|
+
(a) => a[s]
|
1273
|
+
), { type: e, content: i } = r;
|
1274
|
+
switch (e) {
|
1265
1275
|
case "Telia": {
|
1266
|
-
const
|
1267
|
-
return
|
1276
|
+
const s = await t(i);
|
1277
|
+
return s ? X`<telia-icon
|
1268
1278
|
class="trigger-icon"
|
1269
|
-
svg=${
|
1279
|
+
svg=${s.svg}
|
1270
1280
|
size="lg"
|
1271
|
-
></telia-icon>` :
|
1281
|
+
></telia-icon>` : u;
|
1272
1282
|
}
|
1273
1283
|
default:
|
1274
|
-
return
|
1284
|
+
return u;
|
1275
1285
|
}
|
1276
1286
|
}
|
1277
1287
|
render() {
|
1278
|
-
return
|
1279
|
-
class=${
|
1288
|
+
return X`<button
|
1289
|
+
class=${Le({
|
1280
1290
|
trigger: !0,
|
1281
1291
|
active: this.active,
|
1282
1292
|
rendered: this.loaded
|
@@ -1313,9 +1323,9 @@ class A extends $ {
|
|
1313
1323
|
</span>
|
1314
1324
|
</button>`;
|
1315
1325
|
}
|
1316
|
-
}
|
1317
|
-
|
1318
|
-
|
1326
|
+
};
|
1327
|
+
b.styles = [
|
1328
|
+
B`
|
1319
1329
|
:host {
|
1320
1330
|
--voca-rem-multiplier: 0.625;
|
1321
1331
|
display: block;
|
@@ -1385,39 +1395,42 @@ A.styles = [
|
|
1385
1395
|
}
|
1386
1396
|
`
|
1387
1397
|
];
|
1388
|
-
|
1398
|
+
G([
|
1389
1399
|
y({ attribute: !1 })
|
1390
|
-
],
|
1391
|
-
|
1392
|
-
|
1393
|
-
],
|
1394
|
-
|
1395
|
-
|
1396
|
-
],
|
1397
|
-
|
1398
|
-
|
1399
|
-
],
|
1400
|
-
|
1401
|
-
|
1402
|
-
|
1403
|
-
|
1400
|
+
], b.prototype, "application", 2);
|
1401
|
+
G([
|
1402
|
+
W()
|
1403
|
+
], b.prototype, "active", 2);
|
1404
|
+
G([
|
1405
|
+
W()
|
1406
|
+
], b.prototype, "loaded", 2);
|
1407
|
+
G([
|
1408
|
+
W()
|
1409
|
+
], b.prototype, "icon", 2);
|
1410
|
+
b = G([
|
1411
|
+
nt("ace-trigger")
|
1412
|
+
], b);
|
1413
|
+
var We = Object.defineProperty, Ge = Object.getOwnPropertyDescriptor, E = (r, t, e, i) => {
|
1414
|
+
for (var n = i > 1 ? void 0 : i ? Ge(t, e) : t, s = r.length - 1, o; s >= 0; s--)
|
1415
|
+
(o = r[s]) && (n = (i ? o(t, e, n) : o(n)) || n);
|
1416
|
+
return i && n && We(t, e, n), n;
|
1404
1417
|
};
|
1405
|
-
const
|
1406
|
-
class t extends
|
1418
|
+
const Ve = (r) => {
|
1419
|
+
class t extends r {
|
1407
1420
|
constructor() {
|
1408
1421
|
super(...arguments), this.properties = {}, this.context = {}, this.layout = {}, this.nodes = [];
|
1409
1422
|
}
|
1410
|
-
writeProperties(
|
1411
|
-
this.properties =
|
1423
|
+
writeProperties(i) {
|
1424
|
+
this.properties = i;
|
1412
1425
|
}
|
1413
|
-
writeLayout(
|
1414
|
-
this.layout =
|
1426
|
+
writeLayout(i) {
|
1427
|
+
this.layout = i;
|
1415
1428
|
}
|
1416
|
-
writeContext(
|
1417
|
-
this.context =
|
1429
|
+
writeContext(i) {
|
1430
|
+
this.context = i;
|
1418
1431
|
}
|
1419
|
-
addChild(
|
1420
|
-
|
1432
|
+
addChild(i) {
|
1433
|
+
i.parent = this, this.nodes.push(i);
|
1421
1434
|
}
|
1422
1435
|
connectedCallback() {
|
1423
1436
|
super.connectedCallback(), this.renderRoot.host.style.setProperty(
|
@@ -1428,7 +1441,7 @@ const We = (i) => {
|
|
1428
1441
|
}
|
1429
1442
|
return t.styles = [
|
1430
1443
|
// (superClass as unknown as typeof LitElement).styles ?? [],
|
1431
|
-
|
1444
|
+
B`
|
1432
1445
|
:host {
|
1433
1446
|
font-family: var(--font-family);
|
1434
1447
|
grid-column: span var(--width);
|
@@ -1457,85 +1470,93 @@ const We = (i) => {
|
|
1457
1470
|
y({ attribute: !1 })
|
1458
1471
|
], t.prototype, "parent", 2), t;
|
1459
1472
|
};
|
1460
|
-
|
1473
|
+
var Fe = Object.defineProperty, Ye = Object.getOwnPropertyDescriptor, qe = (r, t, e, i) => {
|
1474
|
+
for (var n = i > 1 ? void 0 : i ? Ye(t, e) : t, s = r.length - 1, o; s >= 0; s--)
|
1475
|
+
(o = r[s]) && (n = (i ? o(t, e, n) : o(n)) || n);
|
1476
|
+
return i && n && Fe(t, e, n), n;
|
1477
|
+
};
|
1478
|
+
let tt = class extends Ve(w) {
|
1461
1479
|
render() {
|
1462
|
-
return
|
1480
|
+
return X`Non resolved component`;
|
1463
1481
|
}
|
1464
|
-
}
|
1465
|
-
|
1466
|
-
|
1482
|
+
};
|
1483
|
+
tt.styles = [
|
1484
|
+
B`
|
1467
1485
|
:host {
|
1468
1486
|
display: block;
|
1469
1487
|
}
|
1470
1488
|
`
|
1471
1489
|
];
|
1490
|
+
tt = qe([
|
1491
|
+
nt("ace-unresolved-component")
|
1492
|
+
], tt);
|
1472
1493
|
/**
|
1473
1494
|
* @license
|
1474
1495
|
* Copyright 2020 Google LLC
|
1475
1496
|
* SPDX-License-Identifier: BSD-3-Clause
|
1476
1497
|
*/
|
1477
|
-
const
|
1498
|
+
const Je = (r) => r.strings === void 0;
|
1478
1499
|
/**
|
1479
1500
|
* @license
|
1480
1501
|
* Copyright 2017 Google LLC
|
1481
1502
|
* SPDX-License-Identifier: BSD-3-Clause
|
1482
1503
|
*/
|
1483
|
-
const
|
1484
|
-
var
|
1485
|
-
const e =
|
1504
|
+
const j = (r, t) => {
|
1505
|
+
var i;
|
1506
|
+
const e = r._$AN;
|
1486
1507
|
if (e === void 0)
|
1487
1508
|
return !1;
|
1488
1509
|
for (const n of e)
|
1489
|
-
(
|
1510
|
+
(i = n._$AO) == null || i.call(n, t, !1), j(n, t);
|
1490
1511
|
return !0;
|
1491
|
-
},
|
1512
|
+
}, et = (r) => {
|
1492
1513
|
let t, e;
|
1493
1514
|
do {
|
1494
|
-
if ((t =
|
1515
|
+
if ((t = r._$AM) === void 0)
|
1495
1516
|
break;
|
1496
|
-
e = t._$AN, e.delete(
|
1517
|
+
e = t._$AN, e.delete(r), r = t;
|
1497
1518
|
} while ((e == null ? void 0 : e.size) === 0);
|
1498
|
-
},
|
1499
|
-
for (let t; t =
|
1519
|
+
}, re = (r) => {
|
1520
|
+
for (let t; t = r._$AM; r = t) {
|
1500
1521
|
let e = t._$AN;
|
1501
1522
|
if (e === void 0)
|
1502
1523
|
t._$AN = e = /* @__PURE__ */ new Set();
|
1503
|
-
else if (e.has(
|
1524
|
+
else if (e.has(r))
|
1504
1525
|
break;
|
1505
|
-
e.add(
|
1526
|
+
e.add(r), Qe(t);
|
1506
1527
|
}
|
1507
1528
|
};
|
1508
|
-
function
|
1509
|
-
this._$AN !== void 0 ? (
|
1529
|
+
function Ke(r) {
|
1530
|
+
this._$AN !== void 0 ? (et(this), this._$AM = r, re(this)) : this._$AM = r;
|
1510
1531
|
}
|
1511
|
-
function
|
1512
|
-
const
|
1532
|
+
function Ze(r, t = !1, e = 0) {
|
1533
|
+
const i = this._$AH, n = this._$AN;
|
1513
1534
|
if (n !== void 0 && n.size !== 0)
|
1514
1535
|
if (t)
|
1515
|
-
if (Array.isArray(
|
1516
|
-
for (let s = e; s <
|
1517
|
-
|
1536
|
+
if (Array.isArray(i))
|
1537
|
+
for (let s = e; s < i.length; s++)
|
1538
|
+
j(i[s], !1), et(i[s]);
|
1518
1539
|
else
|
1519
|
-
|
1540
|
+
i != null && (j(i, !1), et(i));
|
1520
1541
|
else
|
1521
|
-
|
1542
|
+
j(this, r);
|
1522
1543
|
}
|
1523
|
-
const
|
1524
|
-
|
1544
|
+
const Qe = (r) => {
|
1545
|
+
r.type == Qt.CHILD && (r._$AP ?? (r._$AP = Ze), r._$AQ ?? (r._$AQ = Ke));
|
1525
1546
|
};
|
1526
|
-
class
|
1547
|
+
class Xe extends te {
|
1527
1548
|
constructor() {
|
1528
1549
|
super(...arguments), this._$AN = void 0;
|
1529
1550
|
}
|
1530
|
-
_$AT(t, e,
|
1531
|
-
super._$AT(t, e,
|
1551
|
+
_$AT(t, e, i) {
|
1552
|
+
super._$AT(t, e, i), re(this), this.isConnected = t._$AU;
|
1532
1553
|
}
|
1533
1554
|
_$AO(t, e = !0) {
|
1534
|
-
var
|
1535
|
-
t !== this.isConnected && (this.isConnected = t, t ? (
|
1555
|
+
var i, n;
|
1556
|
+
t !== this.isConnected && (this.isConnected = t, t ? (i = this.reconnected) == null || i.call(this) : (n = this.disconnected) == null || n.call(this)), e && (j(this, t), et(this));
|
1536
1557
|
}
|
1537
1558
|
setValue(t) {
|
1538
|
-
if (
|
1559
|
+
if (Je(this._$Ct))
|
1539
1560
|
this._$Ct._$AI(t, this);
|
1540
1561
|
else {
|
1541
1562
|
const e = [...this._$Ct._$AH];
|
@@ -1552,29 +1573,29 @@ class qe extends Xt {
|
|
1552
1573
|
* Copyright 2020 Google LLC
|
1553
1574
|
* SPDX-License-Identifier: BSD-3-Clause
|
1554
1575
|
*/
|
1555
|
-
const
|
1556
|
-
class
|
1576
|
+
const tr = () => new er();
|
1577
|
+
class er {
|
1557
1578
|
}
|
1558
|
-
const
|
1559
|
-
render(
|
1560
|
-
return
|
1579
|
+
const ut = /* @__PURE__ */ new WeakMap(), rr = Xt(class extends Xe {
|
1580
|
+
render(r) {
|
1581
|
+
return u;
|
1561
1582
|
}
|
1562
|
-
update(
|
1563
|
-
var
|
1583
|
+
update(r, [t]) {
|
1584
|
+
var i;
|
1564
1585
|
const e = t !== this.G;
|
1565
|
-
return e && this.G !== void 0 && this.ot(void 0), (e || this.rt !== this.lt) && (this.G = t, this.ct = (
|
1586
|
+
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)), u;
|
1566
1587
|
}
|
1567
|
-
ot(
|
1588
|
+
ot(r) {
|
1568
1589
|
if (typeof this.G == "function") {
|
1569
1590
|
const t = this.ct ?? globalThis;
|
1570
|
-
let e =
|
1571
|
-
e === void 0 && (e = /* @__PURE__ */ new WeakMap(),
|
1591
|
+
let e = ut.get(t);
|
1592
|
+
e === void 0 && (e = /* @__PURE__ */ new WeakMap(), ut.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);
|
1572
1593
|
} else
|
1573
|
-
this.G.value =
|
1594
|
+
this.G.value = r;
|
1574
1595
|
}
|
1575
1596
|
get rt() {
|
1576
|
-
var
|
1577
|
-
return typeof this.G == "function" ? (
|
1597
|
+
var r, t;
|
1598
|
+
return typeof this.G == "function" ? (r = ut.get(this.ct ?? globalThis)) == null ? void 0 : r.get(this.G) : (t = this.G) == null ? void 0 : t.value;
|
1578
1599
|
}
|
1579
1600
|
disconnected() {
|
1580
1601
|
this.rt === this.lt && this.ot(void 0);
|
@@ -1588,41 +1609,41 @@ const lt = /* @__PURE__ */ new WeakMap(), Ze = Qt(class extends qe {
|
|
1588
1609
|
* Copyright 2021 Google LLC
|
1589
1610
|
* SPDX-License-Identifier: BSD-3-Clause
|
1590
1611
|
*/
|
1591
|
-
function*
|
1592
|
-
if (
|
1612
|
+
function* ir(r, t) {
|
1613
|
+
if (r !== void 0) {
|
1593
1614
|
let e = 0;
|
1594
|
-
for (const
|
1595
|
-
yield t(
|
1615
|
+
for (const i of r)
|
1616
|
+
yield t(i, e++);
|
1596
1617
|
}
|
1597
1618
|
}
|
1598
|
-
var
|
1599
|
-
for (var n =
|
1600
|
-
(o =
|
1601
|
-
return
|
1619
|
+
var A = /* @__PURE__ */ ((r) => (r.Inline = "inline", r.Trigger = "trigger", r))(A || {}), nr = Object.defineProperty, sr = Object.getOwnPropertyDescriptor, ie = (r, t, e, i) => {
|
1620
|
+
for (var n = i > 1 ? void 0 : i ? sr(t, e) : t, s = r.length - 1, o; s >= 0; s--)
|
1621
|
+
(o = r[s]) && (n = (i ? o(t, e, n) : o(n)) || n);
|
1622
|
+
return i && n && nr(t, e, n), n;
|
1602
1623
|
};
|
1603
|
-
class
|
1624
|
+
let D = class extends w {
|
1604
1625
|
constructor() {
|
1605
|
-
super(...arguments), this.nodes = [], this.wrapperRef =
|
1626
|
+
super(...arguments), this.nodes = [], this.wrapperRef = tr();
|
1606
1627
|
}
|
1607
|
-
addChild(
|
1608
|
-
|
1628
|
+
addChild(r) {
|
1629
|
+
r.parent = this, this.nodes.push(r);
|
1609
1630
|
}
|
1610
1631
|
applyBranding() {
|
1611
1632
|
if (this.wrapperRef.value) {
|
1612
|
-
const
|
1613
|
-
|
1633
|
+
const r = this.application.settings;
|
1634
|
+
r != null && r.branding && ee(r.branding, this.wrapperRef.value);
|
1614
1635
|
}
|
1615
1636
|
}
|
1616
|
-
firstUpdated(
|
1637
|
+
firstUpdated(r) {
|
1617
1638
|
this.applyBranding();
|
1618
1639
|
}
|
1619
1640
|
render() {
|
1620
|
-
return this.application.renderStrategy ===
|
1621
|
-
${
|
1641
|
+
return this.application.renderStrategy === A.Trigger && this.renderRoot.host.classList.add("floating"), X`<div class="widget-container" ${rr(this.wrapperRef)}>
|
1642
|
+
${ir(this.nodes, (r) => r)}
|
1622
1643
|
</div>`;
|
1623
1644
|
}
|
1624
|
-
}
|
1625
|
-
|
1645
|
+
};
|
1646
|
+
D.styles = B`
|
1626
1647
|
:host {
|
1627
1648
|
--font-family: TeliaSans, Helvetica, Arial, Lucida Grande, sans-serif;
|
1628
1649
|
--spacing-xs: 0.2rem;
|
@@ -1701,16 +1722,19 @@ rt.styles = D`
|
|
1701
1722
|
}
|
1702
1723
|
}
|
1703
1724
|
`;
|
1704
|
-
|
1725
|
+
ie([
|
1705
1726
|
y({ attribute: !1 })
|
1706
|
-
],
|
1707
|
-
|
1727
|
+
], D.prototype, "application", 2);
|
1728
|
+
D = ie([
|
1729
|
+
nt("ace-wrapper")
|
1730
|
+
], D);
|
1731
|
+
class or {
|
1708
1732
|
constructor() {
|
1709
1733
|
this.root = this.createRoot();
|
1710
1734
|
}
|
1711
1735
|
createComponentModel(t, e) {
|
1712
1736
|
this.root.application = e;
|
1713
|
-
const
|
1737
|
+
const i = (a) => {
|
1714
1738
|
if (Array.isArray(a)) {
|
1715
1739
|
const [c, ...h] = a;
|
1716
1740
|
return {
|
@@ -1724,18 +1748,18 @@ class rr {
|
|
1724
1748
|
};
|
1725
1749
|
}, n = (a, c, h, d) => {
|
1726
1750
|
h.forEach((l) => {
|
1727
|
-
const f =
|
1728
|
-
if (!
|
1751
|
+
const f = i(l), p = d[f.definitionId];
|
1752
|
+
if (!p) {
|
1729
1753
|
console.error(
|
1730
1754
|
`No definition found for component type '${f.definitionId}'.`
|
1731
1755
|
);
|
1732
1756
|
return;
|
1733
1757
|
}
|
1734
|
-
const g = a.createNode(
|
1735
|
-
g && (g.name = f.definitionId, g.application = e,
|
1758
|
+
const g = a.createNode(p.type, p.type);
|
1759
|
+
g && (g.name = f.definitionId, g.application = e, p.properties && g.writeProperties(p.properties), p.context && g.writeContext(p.context), p.layout && g.writeLayout(p.layout), c.addChild(g), p.children && n(
|
1736
1760
|
a,
|
1737
1761
|
g,
|
1738
|
-
|
1762
|
+
p.children,
|
1739
1763
|
d
|
1740
1764
|
// views
|
1741
1765
|
));
|
@@ -1744,13 +1768,13 @@ class rr {
|
|
1744
1768
|
return n(this, this.root, [s], o), this.root;
|
1745
1769
|
}
|
1746
1770
|
createRoot() {
|
1747
|
-
return new
|
1771
|
+
return new D();
|
1748
1772
|
}
|
1749
1773
|
createNode(t, e) {
|
1750
|
-
const
|
1751
|
-
if (!
|
1752
|
-
return console.warn(`Unable to resolve component: ${e}`), new
|
1753
|
-
const n = new
|
1774
|
+
const i = this.resolveComponent(e);
|
1775
|
+
if (!i)
|
1776
|
+
return console.warn(`Unable to resolve component: ${e}`), new tt();
|
1777
|
+
const n = new i();
|
1754
1778
|
return n.type = e, n.name = t, n;
|
1755
1779
|
}
|
1756
1780
|
resolveComponent(t) {
|
@@ -1760,38 +1784,38 @@ class rr {
|
|
1760
1784
|
return this.root;
|
1761
1785
|
}
|
1762
1786
|
}
|
1763
|
-
const
|
1787
|
+
const ne = class {
|
1764
1788
|
constructor() {
|
1765
1789
|
this.components = /* @__PURE__ */ new Map();
|
1766
1790
|
}
|
1767
|
-
getComponent(
|
1768
|
-
const t = this.components.get(
|
1791
|
+
getComponent(r) {
|
1792
|
+
const t = this.components.get(r);
|
1769
1793
|
return t || console.warn(
|
1770
|
-
`Unable to resolve component: ${
|
1794
|
+
`Unable to resolve component: ${r}. You most likely forgot to register the required plugin.`
|
1771
1795
|
), t;
|
1772
1796
|
}
|
1773
|
-
registerComponent(
|
1774
|
-
this.components.set(
|
1797
|
+
registerComponent(r, t) {
|
1798
|
+
this.components.set(r, t);
|
1775
1799
|
}
|
1776
1800
|
async loadComponents() {
|
1777
|
-
const
|
1778
|
-
this.defineAsWebComponent(t,
|
1801
|
+
const r = [...this.components.entries()].map(([t, e]) => e.then((i) => {
|
1802
|
+
this.defineAsWebComponent(t, i.default);
|
1779
1803
|
}));
|
1780
|
-
await Promise.all(
|
1804
|
+
await Promise.all(r);
|
1781
1805
|
}
|
1782
|
-
defineAsWebComponent(
|
1783
|
-
const e =
|
1806
|
+
defineAsWebComponent(r, t) {
|
1807
|
+
const e = ne.ResolveWebComponentName(r);
|
1784
1808
|
customElements.get(e) || customElements.define(e, t);
|
1785
1809
|
}
|
1786
1810
|
};
|
1787
|
-
let
|
1788
|
-
|
1789
|
-
class
|
1790
|
-
constructor(t, e,
|
1791
|
-
this.name = t, this.container = e, this.settings =
|
1811
|
+
let se = ne;
|
1812
|
+
se.ResolveWebComponentName = (r) => `ace-${r}`;
|
1813
|
+
class ar {
|
1814
|
+
constructor(t, e, i, n) {
|
1815
|
+
this.name = t, this.container = e, this.settings = i, this.options = n, this.platform = new or(), this.renderStrategy = A.Inline, this.autoActivate = !1, this.plugins = [], this.componentResolver = new se(), this.renderStrategy = this.options.renderStrategy || A.Inline, this.triggerIcon = this.options.triggerIcon, typeof n.autoActivate == "boolean" && (this.autoActivate = n.autoActivate), this.container.register("$settings", i);
|
1792
1816
|
}
|
1793
1817
|
async activate() {
|
1794
|
-
if (await this.loadPlugins(), await this.componentResolver.loadComponents(), this.root = this.platform.createComponentModel(this.settings, this), this.container.setState(
|
1818
|
+
if (await this.loadPlugins(), await this.componentResolver.loadComponents(), this.root = this.platform.createComponentModel(this.settings, this), this.container.setState(Vt.Ready), this.autoActivate) {
|
1795
1819
|
const t = this.render();
|
1796
1820
|
t && document.body.appendChild(t);
|
1797
1821
|
}
|
@@ -1816,47 +1840,47 @@ class ir {
|
|
1816
1840
|
return this.componentResolver.getComponent(t);
|
1817
1841
|
}
|
1818
1842
|
render() {
|
1819
|
-
if (this.renderStrategy ===
|
1820
|
-
const t = new
|
1843
|
+
if (this.renderStrategy === A.Trigger) {
|
1844
|
+
const t = new b();
|
1821
1845
|
return t.application = this, t;
|
1822
1846
|
}
|
1823
1847
|
return this.root;
|
1824
1848
|
}
|
1825
1849
|
}
|
1826
|
-
const
|
1850
|
+
const oe = class {
|
1827
1851
|
// TODO:
|
1828
1852
|
// private static endpoint = 'http://localhost:5299/api'; // TODO:
|
1829
|
-
static async getSite(
|
1830
|
-
const e = await (await fetch(
|
1853
|
+
static async getSite(r) {
|
1854
|
+
const e = await (await fetch(r)).json();
|
1831
1855
|
return e ? {
|
1832
1856
|
id: e.id,
|
1833
|
-
apps: e.widgets.map((
|
1834
|
-
let n =
|
1835
|
-
return
|
1836
|
-
id:
|
1837
|
-
widgetId:
|
1857
|
+
apps: e.widgets.map((i) => {
|
1858
|
+
let n = A.Inline;
|
1859
|
+
return i.renderStrategy === "Trigger" && (n = A.Trigger), {
|
1860
|
+
id: i.id,
|
1861
|
+
widgetId: i.widgetId,
|
1838
1862
|
renderStrategy: n,
|
1839
1863
|
triggerIcon: {
|
1840
1864
|
type: "Telia",
|
1841
|
-
content:
|
1865
|
+
content: i.triggerIcon
|
1842
1866
|
}
|
1843
1867
|
};
|
1844
1868
|
})
|
1845
1869
|
} : null;
|
1846
1870
|
}
|
1847
|
-
static async getWidget(
|
1848
|
-
const e = await (await fetch(`${
|
1871
|
+
static async getWidget(r) {
|
1872
|
+
const e = await (await fetch(`${oe.endpoint}/widget/${r}`)).json();
|
1849
1873
|
return e ? {
|
1850
1874
|
name: e.name,
|
1851
1875
|
config: JSON.parse(e.configuration)
|
1852
1876
|
} : null;
|
1853
1877
|
}
|
1854
1878
|
};
|
1855
|
-
let
|
1856
|
-
|
1857
|
-
class
|
1879
|
+
let mt = oe;
|
1880
|
+
mt.endpoint = "https://widgets.ace.teliacompany.net/api";
|
1881
|
+
class cr {
|
1858
1882
|
constructor() {
|
1859
|
-
this.applications = [], this.container = new
|
1883
|
+
this.applications = [], this.container = new xt("environment", this), setTimeout(() => {
|
1860
1884
|
this.notifyWidgetsOfCreation();
|
1861
1885
|
}, 1e3);
|
1862
1886
|
}
|
@@ -1872,25 +1896,25 @@ class nr {
|
|
1872
1896
|
}
|
1873
1897
|
notifyWidgetsOfCreation() {
|
1874
1898
|
document.querySelectorAll("ace-widget").forEach((e) => {
|
1875
|
-
const
|
1876
|
-
|
1899
|
+
const i = this.applications.find((n) => n.name === e.name);
|
1900
|
+
i && e.dispatchEvent(
|
1877
1901
|
new CustomEvent("environment-created", {
|
1878
|
-
detail: { widget:
|
1902
|
+
detail: { widget: i }
|
1879
1903
|
})
|
1880
1904
|
);
|
1881
1905
|
});
|
1882
1906
|
}
|
1883
|
-
registerApp(t, e,
|
1884
|
-
const n = new
|
1907
|
+
registerApp(t, e, i) {
|
1908
|
+
const n = new xt(t, this), s = new ar(t, n, e, i);
|
1885
1909
|
this.applications.push(s);
|
1886
1910
|
}
|
1887
1911
|
}
|
1888
|
-
class
|
1912
|
+
class lr {
|
1889
1913
|
constructor(t) {
|
1890
1914
|
this.configurations = [], typeof t == "string" ? this.url = t : this.loadFromConfig(t);
|
1891
1915
|
}
|
1892
1916
|
async load(t) {
|
1893
|
-
const e = await
|
1917
|
+
const e = await mt.getSite(t);
|
1894
1918
|
if (!e) {
|
1895
1919
|
console.warn(`Unable to load site from the url provided: ${t}`);
|
1896
1920
|
return;
|
@@ -1911,13 +1935,13 @@ class sr {
|
|
1911
1935
|
}
|
1912
1936
|
async bootstrap(t) {
|
1913
1937
|
var e;
|
1914
|
-
this.url && await this.load(this.url), this.environment = new
|
1915
|
-
for await (const
|
1916
|
-
const n = await
|
1938
|
+
this.url && await this.load(this.url), this.environment = new cr(), this.addGlobal(this.environment);
|
1939
|
+
for await (const i of this.configurations) {
|
1940
|
+
const n = await mt.getWidget(i.widgetId);
|
1917
1941
|
n && ((e = this.environment) == null || e.registerApp(n.name, n.config, {
|
1918
|
-
renderStrategy:
|
1919
|
-
triggerIcon:
|
1920
|
-
autoActivate:
|
1942
|
+
renderStrategy: i.renderStrategy,
|
1943
|
+
triggerIcon: i.triggerIcon,
|
1944
|
+
autoActivate: i.autoActivate
|
1921
1945
|
}));
|
1922
1946
|
}
|
1923
1947
|
t(this.environment), await this.environment.bootstrap();
|
@@ -1926,12 +1950,12 @@ class sr {
|
|
1926
1950
|
globalThis.widgets = t;
|
1927
1951
|
}
|
1928
1952
|
}
|
1929
|
-
var
|
1930
|
-
for (var n =
|
1931
|
-
(o =
|
1932
|
-
return
|
1953
|
+
var hr = Object.defineProperty, pr = Object.getOwnPropertyDescriptor, st = (r, t, e, i) => {
|
1954
|
+
for (var n = i > 1 ? void 0 : i ? pr(t, e) : t, s = r.length - 1, o; s >= 0; s--)
|
1955
|
+
(o = r[s]) && (n = (i ? o(t, e, n) : o(n)) || n);
|
1956
|
+
return i && n && hr(t, e, n), n;
|
1933
1957
|
};
|
1934
|
-
class
|
1958
|
+
let U = class extends w {
|
1935
1959
|
constructor() {
|
1936
1960
|
super(), this.status = "deactivated", this.addEventListener("environment-created", this.onEnvironmentCreated);
|
1937
1961
|
}
|
@@ -1941,58 +1965,57 @@ class z extends $ {
|
|
1941
1965
|
disconnectedCallback() {
|
1942
1966
|
super.disconnectedCallback(), this.removeEventListener("environment-created", this.onEnvironmentCreated);
|
1943
1967
|
}
|
1944
|
-
async onEnvironmentCreated(
|
1945
|
-
this.widget =
|
1968
|
+
async onEnvironmentCreated(r) {
|
1969
|
+
this.widget = r.detail.widget, await this.activate(), this.requestUpdate();
|
1946
1970
|
}
|
1947
1971
|
async activate() {
|
1948
1972
|
this.widget && (await this.widget.activate(), this.status = "activated");
|
1949
1973
|
}
|
1950
1974
|
async getGlobalEnvironment() {
|
1951
|
-
const
|
1952
|
-
|
1953
|
-
(
|
1975
|
+
const r = globalThis.widgets;
|
1976
|
+
r && (this.widget = r.applications.find(
|
1977
|
+
(t) => t.name === this.name
|
1954
1978
|
), await this.activate());
|
1955
1979
|
}
|
1956
1980
|
render() {
|
1957
1981
|
if (!this.widget || this.status !== "activated")
|
1958
|
-
return
|
1959
|
-
if (this.widget.renderStrategy ===
|
1960
|
-
const
|
1961
|
-
return
|
1982
|
+
return u;
|
1983
|
+
if (this.widget.renderStrategy === A.Trigger) {
|
1984
|
+
const r = new b();
|
1985
|
+
return r.application = this.widget, r;
|
1962
1986
|
}
|
1963
1987
|
return this.widget.render();
|
1964
1988
|
}
|
1965
|
-
}
|
1966
|
-
|
1967
|
-
|
1989
|
+
};
|
1990
|
+
U.styles = [
|
1991
|
+
B`
|
1968
1992
|
:host {
|
1969
1993
|
display: block;
|
1970
1994
|
}
|
1971
1995
|
`
|
1972
1996
|
];
|
1973
|
-
|
1997
|
+
st([
|
1974
1998
|
y({ attribute: !0 })
|
1975
|
-
],
|
1976
|
-
|
1977
|
-
|
1978
|
-
],
|
1979
|
-
|
1980
|
-
|
1981
|
-
],
|
1982
|
-
|
1983
|
-
|
1984
|
-
|
1985
|
-
|
1986
|
-
|
1987
|
-
await new sr(i).bootstrap(t);
|
1999
|
+
], U.prototype, "name", 2);
|
2000
|
+
st([
|
2001
|
+
W()
|
2002
|
+
], U.prototype, "widget", 2);
|
2003
|
+
st([
|
2004
|
+
W()
|
2005
|
+
], U.prototype, "status", 2);
|
2006
|
+
U = st([
|
2007
|
+
nt("ace-widget")
|
2008
|
+
], U);
|
2009
|
+
const fr = async (r, t) => {
|
2010
|
+
await new lr(r).bootstrap(t);
|
1988
2011
|
};
|
1989
2012
|
export {
|
1990
|
-
|
1991
|
-
|
1992
|
-
|
1993
|
-
|
1994
|
-
|
1995
|
-
|
1996
|
-
|
1997
|
-
|
2013
|
+
U as AceWidget,
|
2014
|
+
ar as Application,
|
2015
|
+
xt as Container,
|
2016
|
+
cr as Environment,
|
2017
|
+
lr as Site,
|
2018
|
+
b as Trigger,
|
2019
|
+
Ve as WidgetComponent,
|
2020
|
+
fr as bootstrap
|
1998
2021
|
};
|