@telia-ace/widget-core-flamingo 1.1.28 → 1.1.29

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