@telia-ace/widget-core-flamingo 1.1.32 → 1.1.33-rc.1

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