@telia-ace/widget-components-list-flamingo 1.1.123-rc.9 → 1.1.123

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,87 +1,87 @@
1
- const ot = (r, t, e, ...s) => {
2
- const i = `[${r.get("$environment").name || "webprovisions"}] ${e}`;
1
+ const at = (i, t, e, ...s) => {
2
+ const n = `[${i.get("$environment").name || "webprovisions"}] ${e}`;
3
3
  switch (t) {
4
4
  case "info":
5
- console.info(i, ...s);
5
+ console.info(n, ...s);
6
6
  break;
7
7
  case "warning":
8
- console.warn(i, ...s);
8
+ console.warn(n, ...s);
9
9
  break;
10
10
  case "error":
11
- console.error(i, ...s);
11
+ console.error(n, ...s);
12
12
  break;
13
13
  }
14
- }, he = (r) => {
15
- const t = r.container || r;
14
+ }, le = (i) => {
15
+ const t = i.container || i;
16
16
  return {
17
- info: (e, ...s) => ot(t, "info", e, ...s),
18
- warn: (e, ...s) => ot(t, "warning", e, ...s),
19
- error: (e, ...s) => ot(t, "error", e, ...s)
17
+ info: (e, ...s) => at(t, "info", e, ...s),
18
+ warn: (e, ...s) => at(t, "warning", e, ...s),
19
+ error: (e, ...s) => at(t, "error", e, ...s)
20
20
  };
21
21
  };
22
- var G = /* @__PURE__ */ ((r) => (r.Implementation = "implementation", r.Widget = "widget", r))(G || {}), S = /* @__PURE__ */ ((r) => (r.Pre = "pre", r.Post = "post", r))(S || {});
23
- const le = (r, t, e, s) => {
22
+ var X = /* @__PURE__ */ ((i) => (i.Implementation = "implementation", i.Widget = "widget", i))(X || {}), S = /* @__PURE__ */ ((i) => (i.Pre = "pre", i.Post = "post", i))(S || {});
23
+ const pe = (i, t, e, s) => {
24
24
  try {
25
- const i = new t(e, s);
25
+ const n = new t(e, s);
26
26
  return {
27
- name: r,
28
- invoke: (n, o) => {
27
+ name: i,
28
+ invoke: (r, o) => {
29
29
  let a;
30
- return i[n] && (a = i[n].call(i, o)), Promise.resolve(a);
30
+ return n[r] && (a = n[r].call(n, o)), Promise.resolve(a);
31
31
  },
32
- getInstance: () => i
32
+ getInstance: () => n
33
33
  };
34
- } catch (i) {
35
- if (i.message && i.message.indexOf("is not a constructor") >= 0)
34
+ } catch (n) {
35
+ if (n.message && n.message.indexOf("is not a constructor") >= 0)
36
36
  return {
37
- name: r,
38
- invoke: (n) => {
37
+ name: i,
38
+ invoke: (r) => {
39
39
  let o;
40
- return n === "initialize" && (o = t(e, s)), Promise.resolve(o);
40
+ return r === "initialize" && (o = t(e, s)), Promise.resolve(o);
41
41
  },
42
42
  getInstance: () => t
43
43
  };
44
- throw i;
44
+ throw n;
45
45
  }
46
46
  };
47
- function It(r, t) {
48
- return typeof r > "u" ? t : r;
47
+ function Ht(i, t) {
48
+ return typeof i > "u" ? t : i;
49
49
  }
50
- class pe {
50
+ class de {
51
51
  constructor(t = {}) {
52
52
  this.part = t;
53
53
  }
54
54
  createCommand(t, e, s) {
55
- let i;
56
- typeof e == "function" ? i = {
57
- scope: G.Widget,
55
+ let n;
56
+ typeof e == "function" ? n = {
57
+ scope: X.Widget,
58
58
  stage: S.Post,
59
59
  defaultArgs: void 0,
60
60
  handlerResolver: e
61
- } : i = {
62
- scope: It(e.scope, G.Widget),
63
- stage: It(e.stage, S.Post),
61
+ } : n = {
62
+ scope: Ht(e.scope, X.Widget),
63
+ stage: Ht(e.stage, S.Post),
64
64
  defaultArgs: e.defaultArgs,
65
65
  handlerResolver: s
66
66
  };
67
- let n = this.part;
67
+ let r = this.part;
68
68
  const o = t.split(".");
69
69
  return o.forEach((a, c) => {
70
- c === o.length - 1 ? n[a] || (n[a] = () => i) : n = this.part[a] = this.part[a] || {};
70
+ c === o.length - 1 ? r[a] || (r[a] = () => n) : r = this.part[a] = this.part[a] || {};
71
71
  }), this;
72
72
  }
73
73
  get() {
74
74
  return this.part;
75
75
  }
76
76
  }
77
- const $t = (r) => {
78
- const t = new pe({});
79
- return r(t), t.get();
77
+ const vt = (i) => {
78
+ const t = new de({});
79
+ return i(t), t.get();
80
80
  };
81
- $t((r) => {
82
- r.createCommand(
81
+ vt((i) => {
82
+ i.createCommand(
83
83
  "types.register",
84
- { scope: G.Implementation, stage: S.Pre },
84
+ { scope: X.Implementation, stage: S.Pre },
85
85
  (t) => (e, s) => {
86
86
  t.container.get("$types")[e] = s;
87
87
  }
@@ -104,10 +104,10 @@ $t((r) => {
104
104
  ).createCommand(
105
105
  "plugin",
106
106
  { stage: S.Pre },
107
- (t) => (e, s, i) => {
108
- const { container: n } = t;
107
+ (t) => (e, s, n) => {
108
+ const { container: r } = t;
109
109
  let o = null, a = e, c = s;
110
- typeof e == "string" && (o = e, a = s, c = i);
110
+ typeof e == "string" && (o = e, a = s, c = n);
111
111
  const l = (h) => {
112
112
  const { transformPluginSettings: p } = t.container.get("$environmentOptions"), d = p ? p(
113
113
  c || {},
@@ -116,15 +116,15 @@ $t((r) => {
116
116
  a
117
117
  ) : s;
118
118
  try {
119
- const u = le(
119
+ const u = pe(
120
120
  o,
121
121
  a,
122
- n,
122
+ r,
123
123
  d
124
124
  );
125
- n.get("$plugins").push(u), h && u.invoke("initialize", null);
125
+ r.get("$plugins").push(u), h && u.invoke("initialize", null);
126
126
  } catch (u) {
127
- he(t).warn("Error when initializing plugin", u);
127
+ le(t).warn("Error when initializing plugin", u);
128
128
  }
129
129
  };
130
130
  t.container.get("$instance") ? l(!0) : t.events.subscribeOnce("widget:instance-created", () => l(!1));
@@ -157,44 +157,44 @@ $t((r) => {
157
157
  }
158
158
  );
159
159
  });
160
- const tt = (r, t, ...e) => typeof t == "string" ? r(`[humany] ${t}`, ...e) : r(t, ...e), I = class {
160
+ const et = (i, t, ...e) => typeof t == "string" ? i(`[humany] ${t}`, ...e) : i(t, ...e), V = class j {
161
161
  constructor() {
162
- this.keys = [], this.log = (t, ...e) => this.lookup(t, () => I.log(...e)), this.warn = (t, ...e) => this.lookup(t, () => I.warn(...e)), this.error = (t, ...e) => this.lookup(t, () => I.error(...e)), this.info = (t, ...e) => this.lookup(t, () => I.info(...e));
162
+ this.keys = [], this.log = (t, ...e) => this.lookup(t, () => j.log(...e)), this.warn = (t, ...e) => this.lookup(t, () => j.warn(...e)), this.error = (t, ...e) => this.lookup(t, () => j.error(...e)), this.info = (t, ...e) => this.lookup(t, () => j.info(...e));
163
163
  }
164
164
  lookup(t, e) {
165
165
  this.keys.indexOf(t) === -1 && (this.keys.push(t), e());
166
166
  }
167
167
  };
168
- let y = I;
169
- y.log = (...r) => tt(console.log, ...r);
170
- y.warn = (...r) => tt(console.warn, ...r);
171
- y.error = (...r) => tt(console.error, ...r);
172
- y.info = (...r) => tt(console.info, ...r);
173
- const Xt = (r) => {
168
+ V.log = (...i) => et(console.log, ...i);
169
+ V.warn = (...i) => et(console.warn, ...i);
170
+ V.error = (...i) => et(console.error, ...i);
171
+ V.info = (...i) => et(console.info, ...i);
172
+ let A = V;
173
+ const Qt = (i) => {
174
174
  let t = {}, e, s;
175
- if (typeof r != "object" || r === null)
176
- return r;
177
- t = Array.isArray(r) ? [] : {};
178
- for (s in r)
179
- e = r[s], t[s] = typeof e == "object" && e !== null ? Xt(e) : e;
175
+ if (typeof i != "object" || i === null)
176
+ return i;
177
+ t = Array.isArray(i) ? [] : {};
178
+ for (s in i)
179
+ e = i[s], t[s] = typeof e == "object" && e !== null ? Qt(e) : e;
180
180
  return t;
181
181
  };
182
- function Ht(r) {
182
+ function Rt(i) {
183
183
  let t = 0;
184
- if (r.length === 0)
184
+ if (i.length === 0)
185
185
  return t.toString();
186
- for (let e = 0; e < r.length; e++) {
187
- const s = r.charCodeAt(e);
186
+ for (let e = 0; e < i.length; e++) {
187
+ const s = i.charCodeAt(e);
188
188
  t = (t << 5) - t + s, t = t & t;
189
189
  }
190
190
  return t.toString();
191
191
  }
192
- let de = class {
192
+ let ue = class {
193
193
  constructor(t, e) {
194
194
  this.lockWarningTime = t, this.lockErrorTime = e, this.tasks = [], this.current = Promise.resolve(), this.next = this.next.bind(this);
195
195
  }
196
- add(t, e, s, i) {
197
- this.tasks.push({ task: t, resolve: e, reject: s, done: i }), this.next();
196
+ add(t, e, s, n) {
197
+ this.tasks.push({ task: t, resolve: e, reject: s, done: n }), this.next();
198
198
  }
199
199
  next() {
200
200
  this.current = this.current.then(() => {
@@ -202,41 +202,41 @@ let de = class {
202
202
  if (t) {
203
203
  let e;
204
204
  const s = setTimeout(() => {
205
- process.env.NODE_ENV !== "production" && y.warn(
205
+ process.env.NODE_ENV !== "production" && A.warn(
206
206
  `A lock has exceeded ${this.lockWarningTime} ms. Waiting additional ${this.lockErrorTime} ms before rejecting the task.`,
207
207
  t
208
208
  ), e = setTimeout(() => {
209
209
  t.reject("lock timeout exceeded");
210
210
  }, this.lockErrorTime);
211
- }, this.lockWarningTime), i = Promise.resolve(t.task()).then((n) => (clearTimeout(s), clearTimeout(e), n));
212
- return Promise.resolve(i).then(this.next).then(
213
- () => i.then((n) => {
214
- t.done(), t.resolve(n);
211
+ }, this.lockWarningTime), n = Promise.resolve(t.task()).then((r) => (clearTimeout(s), clearTimeout(e), r));
212
+ return Promise.resolve(n).then(this.next).then(
213
+ () => n.then((r) => {
214
+ t.done(), t.resolve(r);
215
215
  })
216
- ).catch((n) => (t.done(), t.reject(n), this.next()));
216
+ ).catch((r) => (t.done(), t.reject(r), this.next()));
217
217
  }
218
218
  return Promise.resolve();
219
219
  });
220
220
  }
221
221
  };
222
- const q = /* @__PURE__ */ new WeakMap();
223
- function et(r, t = 5e3, e = 1e3) {
224
- return q.has(r) || q.set(r, new de(t, e)), (s) => new Promise((i, n) => {
225
- const o = q.get(r);
226
- o.add(s, i, n, () => {
227
- o.tasks.length || q.delete(r);
222
+ const K = /* @__PURE__ */ new WeakMap();
223
+ function st(i, t = 5e3, e = 1e3) {
224
+ return K.has(i) || K.set(i, new ue(t, e)), (s) => new Promise((n, r) => {
225
+ const o = K.get(i);
226
+ o.add(s, n, r, () => {
227
+ o.tasks.length || K.delete(i);
228
228
  });
229
229
  });
230
230
  }
231
- const _ = () => Math.floor((1 + Math.random()) * 65536).toString(16).substring(1);
232
- function vt() {
233
- return _() + _() + "-" + _() + "-" + _() + "-" + _() + "-" + _() + _() + _();
231
+ const w = () => Math.floor((1 + Math.random()) * 65536).toString(16).substring(1);
232
+ function bt() {
233
+ return w() + w() + "-" + w() + "-" + w() + "-" + w() + "-" + w() + w() + w();
234
234
  }
235
- const ue = (r) => {
235
+ const me = (i) => {
236
236
  const t = [];
237
237
  return [
238
238
  (e, s) => {
239
- t.push(r.subscribe(e, s));
239
+ t.push(i.subscribe(e, s));
240
240
  },
241
241
  () => {
242
242
  t.forEach((e) => {
@@ -245,7 +245,7 @@ const ue = (r) => {
245
245
  }
246
246
  ];
247
247
  };
248
- let bt = class {
248
+ let wt = class {
249
249
  constructor(t, e = []) {
250
250
  this.platform = t, this.rules = e;
251
251
  }
@@ -259,19 +259,19 @@ let bt = class {
259
259
  return this.rules.push({ id: t }), this;
260
260
  }
261
261
  select() {
262
- return new me(this.platform, this);
262
+ return new ge(this.platform, this);
263
263
  }
264
- }, Yt = class {
264
+ }, te = class {
265
265
  constructor(t, e, s) {
266
- this.platform = t, this.node = e, this.actions = new wt(
266
+ this.platform = t, this.node = e, this.actions = new _t(
267
267
  t,
268
- new bt(t).withId(e.id),
268
+ new wt(t).withId(e.id),
269
269
  s
270
270
  );
271
- const [i, n] = ue(
271
+ const [n, r] = me(
272
272
  this.platform.events
273
273
  );
274
- this.subscribe = i, this.unsubscribe = n;
274
+ this.subscribe = n, this.unsubscribe = r;
275
275
  }
276
276
  properties(t) {
277
277
  return t && this.node.touchProperties((e) => t(e)), this.node.attributes.properties;
@@ -298,10 +298,9 @@ let bt = class {
298
298
  dispose() {
299
299
  this.unsubscribe(), this.actions.dispose();
300
300
  }
301
- };
302
- class me {
301
+ }, ge = class {
303
302
  constructor(t, e, s = !0) {
304
- this.platform = t, this.target = e, this.clearOnDispose = s, this.removes = [], this.actions = new wt(this.platform, this.target);
303
+ this.platform = t, this.target = e, this.clearOnDispose = s, this.removes = [], this.actions = new _t(this.platform, this.target);
305
304
  }
306
305
  writeProperties(t, e) {
307
306
  this.removes.push(
@@ -338,28 +337,28 @@ class me {
338
337
  t();
339
338
  }), this.actions.dispose();
340
339
  }
341
- }
342
- const ge = (r, t, e) => {
343
- const s = r.concat(), i = (n, o, a) => {
340
+ };
341
+ const fe = (i, t, e) => {
342
+ const s = i.concat(), n = (r, o, a) => {
344
343
  let c = !0;
345
344
  if (s.length) {
346
- const l = s.shift(), h = (p, d) => (c = !1, i(
345
+ const l = s.shift(), h = (p, d) => (c = !1, n(
347
346
  p,
348
347
  Object.assign({}, o, d),
349
348
  a
350
349
  ));
351
- return Promise.resolve(l(n, h, a)).then(
350
+ return Promise.resolve(l(r, h, a)).then(
352
351
  (p) => ({
353
352
  ...p,
354
353
  cancelled: c
355
354
  })
356
355
  );
357
356
  }
358
- return Promise.resolve({ data: n, cancelled: !1, options: o });
357
+ return Promise.resolve({ data: r, cancelled: !1, options: o });
359
358
  };
360
- return i(t, {}, e);
359
+ return n(t, {}, e);
361
360
  };
362
- let wt = class {
361
+ let _t = class {
363
362
  constructor(t, e, s) {
364
363
  this.platform = t, this.target = e, this.ns = s, this.subscriptions = [], this.create = this.create.bind(this);
365
364
  }
@@ -372,20 +371,20 @@ let wt = class {
372
371
  ns: this.ns
373
372
  };
374
373
  this.platform.actionsState.handlers.push(s);
375
- const i = () => {
376
- const n = this.platform.actionsState.handlers.indexOf(s);
377
- n > -1 && this.platform.actionsState.handlers.splice(n, 1);
374
+ const n = () => {
375
+ const r = this.platform.actionsState.handlers.indexOf(s);
376
+ r > -1 && this.platform.actionsState.handlers.splice(r, 1);
378
377
  };
379
- return this.subscriptions.push(i), i;
378
+ return this.subscriptions.push(n), n;
380
379
  }
381
380
  dispatch(t, e) {
382
381
  const s = this.platform.nodes.all.concat(
383
382
  this.platform.nodes.detached
384
- ), i = {}, n = this.platform.actionsState.handlers.filter(
383
+ ), n = {}, r = this.platform.actionsState.handlers.filter(
385
384
  (o) => o.key === t && (!o.ns || !this.ns || o.ns === this.ns)
386
385
  );
387
386
  return Promise.all(
388
- n.map((o) => {
387
+ r.map((o) => {
389
388
  const a = s.filter(
390
389
  (l) => o.target.match(l) && this.target.match(l)
391
390
  ), c = this.platform.actionsState.watchers.filter((l) => l.key === t && (!l.ns || !this.ns || l.ns === this.ns) && a.some(
@@ -393,35 +392,35 @@ let wt = class {
393
392
  )).map((l) => l.fn);
394
393
  return Promise.all(
395
394
  a.map((l) => {
396
- const h = new Yt(
395
+ const h = new te(
397
396
  this.platform,
398
397
  l,
399
398
  this.ns
400
399
  );
401
- return ge(c, e, h).then(
400
+ return fe(c, e, h).then(
402
401
  (p) => {
403
402
  const { data: d = {}, options: u, cancelled: g } = p;
404
403
  return Promise.resolve(
405
404
  g ? {} : o.fn(d, u, h)
406
- ).then((D) => {
407
- i[l.id] = D;
405
+ ).then((I) => {
406
+ n[l.id] = I;
408
407
  });
409
408
  }
410
409
  );
411
410
  })
412
411
  );
413
412
  })
414
- ).then(() => i);
413
+ ).then(() => n);
415
414
  }
416
415
  watch(t, e) {
417
- let s = t, i = this.ns;
418
- const n = t.split(".");
419
- n.length > 1 && (i = n[0], s = n.splice(1).join("."));
416
+ let s = t, n = this.ns;
417
+ const r = t.split(".");
418
+ r.length > 1 && (n = r[0], s = r.splice(1).join("."));
420
419
  const o = {
421
420
  fn: e,
422
421
  target: this.target,
423
422
  key: s,
424
- ns: i
423
+ ns: n
425
424
  };
426
425
  this.platform.actionsState.watchers.push(o);
427
426
  const a = () => {
@@ -434,21 +433,21 @@ let wt = class {
434
433
  this.subscriptions.forEach((t) => t());
435
434
  }
436
435
  };
437
- $t((r) => {
438
- r.createCommand("components", (t) => (e) => {
436
+ vt((i) => {
437
+ i.createCommand("components", (t) => (e) => {
439
438
  t.events.subscribeOnce(
440
439
  "components:platform-created",
441
- (s, { platform: i }) => {
442
- e.handlers && e.handlers.forEach(([n, o]) => {
443
- i.addComponentHandler(n, o);
440
+ (s, { platform: n }) => {
441
+ e.handlers && e.handlers.forEach(([r, o]) => {
442
+ n.addComponentHandler(r, o);
444
443
  });
445
444
  }
446
445
  );
447
446
  });
448
447
  });
449
- let Rt = class {
448
+ let Lt = class {
450
449
  constructor(t, e) {
451
- this.events = t, this.tags = [], this.children = {}, this.changesets = [], this.mountCount = 0, this.id = vt(), this.type = e, this.attributes = {
450
+ this.events = t, this.tags = [], this.children = {}, this.changesets = [], this.mountCount = 0, this.id = bt(), this.type = e, this.attributes = {
452
451
  context: {},
453
452
  properties: {},
454
453
  layout: {},
@@ -457,7 +456,7 @@ let Rt = class {
457
456
  }
458
457
  mount(t, e) {
459
458
  let s = t.get("mounted-nodes");
460
- return s || (s = /* @__PURE__ */ new Map(), t.register("mounted-nodes", s)), s.has(this) ? (process.env.NODE_ENV !== "production" && y.error(
459
+ return s || (s = /* @__PURE__ */ new Map(), t.register("mounted-nodes", s)), s.has(this) ? (process.env.NODE_ENV !== "production" && A.error(
461
460
  "Trying to mount an already mounted component node.",
462
461
  this
463
462
  ), () => {
@@ -482,46 +481,46 @@ let Rt = class {
482
481
  t.parent = this, this.children[e] || (this.children[e] = []), this.children[e].unshift(t), this.events.dispatch("components:node-appended", { node: t });
483
482
  }
484
483
  touchProperties(t, e = {}, s) {
485
- const i = [{ properties: t }, e];
486
- return this.changesets.push(i), this.events.dispatch("components:set-properties", { node: this }), () => {
484
+ const n = [{ properties: t }, e];
485
+ return this.changesets.push(n), this.events.dispatch("components:set-properties", { node: this }), () => {
487
486
  if (s) {
488
- const n = this.changesets.indexOf(i);
489
- n > -1 && (this.changesets.splice(n, 1), this.events.dispatch("components:set-properties", { node: this }));
487
+ const r = this.changesets.indexOf(n);
488
+ r > -1 && (this.changesets.splice(r, 1), this.events.dispatch("components:set-properties", { node: this }));
490
489
  }
491
490
  };
492
491
  }
493
492
  writeProperties(t, e = {}, s) {
494
- const i = [{ properties: t }, e];
495
- return this.changesets.push(i), this.events.dispatch("components:set-properties", { node: this }), () => {
493
+ const n = [{ properties: t }, e];
494
+ return this.changesets.push(n), this.events.dispatch("components:set-properties", { node: this }), () => {
496
495
  if (s) {
497
- const n = this.changesets.indexOf(i);
498
- n > -1 && (this.changesets.splice(n, 1), this.events.dispatch("components:set-properties", { node: this }));
496
+ const r = this.changesets.indexOf(n);
497
+ r > -1 && (this.changesets.splice(r, 1), this.events.dispatch("components:set-properties", { node: this }));
499
498
  }
500
499
  };
501
500
  }
502
501
  writeLayout(t, e = {}, s) {
503
- const i = [{ layout: t }, e];
504
- return this.changesets.push(i), this.events.dispatch("components:set-layout", { node: this }), () => {
502
+ const n = [{ layout: t }, e];
503
+ return this.changesets.push(n), this.events.dispatch("components:set-layout", { node: this }), () => {
505
504
  if (!s)
506
505
  return;
507
- const n = this.changesets.indexOf(i);
508
- n > -1 && (this.changesets.splice(n, 1), this.events.dispatch("components:set-layout", { node: this }));
506
+ const r = this.changesets.indexOf(n);
507
+ r > -1 && (this.changesets.splice(r, 1), this.events.dispatch("components:set-layout", { node: this }));
509
508
  };
510
509
  }
511
510
  writeContext(t, e = {}, s) {
512
- const i = [{ context: t }, e];
513
- return this.changesets.push(i), this.events.dispatch("components:set-context", { node: this }), () => {
511
+ const n = [{ context: t }, e];
512
+ return this.changesets.push(n), this.events.dispatch("components:set-context", { node: this }), () => {
514
513
  if (!s)
515
514
  return;
516
- const n = this.changesets.indexOf(i);
517
- n > -1 && (this.changesets.splice(n, 1), this.events.dispatch("components:set-context", { node: this }));
515
+ const r = this.changesets.indexOf(n);
516
+ r > -1 && (this.changesets.splice(r, 1), this.events.dispatch("components:set-context", { node: this }));
518
517
  };
519
518
  }
520
519
  getChildren(t = "default") {
521
520
  const e = this.children[t] || [];
522
- return e.reduce((s, i, n) => {
523
- const { order: o = n } = i.attributes.layout;
524
- return s[o] ? s.splice(o, 0, i) : s[o] = i, s;
521
+ return e.reduce((s, n, r) => {
522
+ const { order: o = r } = n.attributes.layout;
523
+ return s[o] ? s.splice(o, 0, n) : s[o] = n, s;
525
524
  }, Array(e.length));
526
525
  }
527
526
  remove() {
@@ -529,67 +528,67 @@ let Rt = class {
529
528
  }
530
529
  removeChild(t) {
531
530
  Object.keys(this.children).forEach((e) => {
532
- const s = this.children[e], i = s.indexOf(t);
533
- i > -1 && (s.splice(i, 1), this.events.dispatch("components:node-removed", {
531
+ const s = this.children[e], n = s.indexOf(t);
532
+ n > -1 && (s.splice(n, 1), this.events.dispatch("components:node-removed", {
534
533
  node: t,
535
534
  parentNode: this
536
535
  }));
537
536
  }), delete t.parent;
538
537
  }
539
538
  };
540
- const te = (r, t, e) => {
541
- for (let s = 0, i = r.length; s < i && e(r[s]) !== !0; s++) {
542
- const n = t[r[s].id] || "default", o = r[s].getChildren(n);
543
- te(o, t, e);
539
+ const ee = (i, t, e) => {
540
+ for (let s = 0, n = i.length; s < n && e(i[s]) !== !0; s++) {
541
+ const r = t[i[s].id] || "default", o = i[s].getChildren(r);
542
+ ee(o, t, e);
544
543
  }
545
- }, _t = (r, t, e) => {
546
- if (e(r) !== !0) {
547
- const s = t[r.id] || "default", i = r.children[s];
548
- te(i, t, e);
544
+ }, At = (i, t, e) => {
545
+ if (e(i) !== !0) {
546
+ const s = t[i.id] || "default", n = i.children[s];
547
+ ee(n, t, e);
549
548
  }
550
- }, at = (r, t) => {
549
+ }, ct = (i, t) => {
551
550
  const e = [];
552
- return _t(r, t, (s) => {
551
+ return At(i, t, (s) => {
553
552
  e.push(s);
554
553
  }), e;
555
- }, fe = (r, t, e) => {
554
+ }, ye = (i, t, e) => {
556
555
  let s;
557
- return _t(r, t, (i) => {
558
- if (e(i))
559
- return s = i, !0;
556
+ return At(i, t, (n) => {
557
+ if (e(n))
558
+ return s = n, !0;
560
559
  }), s;
561
560
  };
562
- let ye = class {
561
+ class $e {
563
562
  constructor(t, e, s) {
564
563
  this.root = t, this.switches = e, this.all = [], this.visible = [], this.detached = [], s.subscribe(
565
564
  "components:node-appended",
566
- (i, n) => {
567
- this.all.push(n.node), this.visible = at(t, e);
565
+ (n, r) => {
566
+ this.all.push(r.node), this.visible = ct(t, e);
568
567
  }
569
568
  ), s.subscribe(
570
569
  "components:node-removed",
571
- (i, n) => {
572
- let o = this.all.indexOf(n.node);
573
- o > -1 && this.all.splice(o, 1), o = this.visible.indexOf(n.node), o > -1 && this.visible.splice(o, 1), this.visible = at(t, e);
570
+ (n, r) => {
571
+ let o = this.all.indexOf(r.node);
572
+ o > -1 && this.all.splice(o, 1), o = this.visible.indexOf(r.node), o > -1 && this.visible.splice(o, 1), this.visible = ct(t, e);
574
573
  }
575
574
  ), s.subscribe(
576
575
  "components:node-switched",
577
- (i, n) => {
578
- this.visible = at(t, e);
576
+ (n, r) => {
577
+ this.visible = ct(t, e);
579
578
  }
580
579
  );
581
580
  }
582
581
  query(t = {}) {
583
582
  const e = [];
584
- return _t(this.root, this.switches, (s) => {
585
- Object.keys(t).every((i) => t[i] === s[i]) && e.push(s);
583
+ return At(this.root, this.switches, (s) => {
584
+ Object.keys(t).every((n) => t[n] === s[n]) && e.push(s);
586
585
  }), e;
587
586
  }
588
587
  get(t) {
589
- return fe(this.root, this.switches, (e) => e.id === t) || this.detached.find((e) => e.id === t);
588
+ return ye(this.root, this.switches, (e) => e.id === t) || this.detached.find((e) => e.id === t);
590
589
  }
591
- };
592
- class $e {
590
+ }
591
+ let ve = class {
593
592
  constructor() {
594
593
  this.handlers = /* @__PURE__ */ new Map();
595
594
  }
@@ -599,62 +598,62 @@ class $e {
599
598
  get(t) {
600
599
  return this.handlers.get(t);
601
600
  }
602
- }
603
- const ve = (r) => {
604
- let t = r, e = 0;
601
+ };
602
+ const be = (i) => {
603
+ let t = i, e = 0;
605
604
  for (; t.parent; )
606
605
  e = e + 1, t = t.parent;
607
606
  return e;
608
- }, be = (r) => r.map(
609
- ([t, e]) => [ve(t), t, e]
610
- ).sort(([t], [e]) => t - e).map(([, t, e]) => [t, e]), ct = (r) => r instanceof Date ? !1 : r && typeof r == "object" && !Array.isArray(r), b = (r, ...t) => {
607
+ }, we = (i) => i.map(
608
+ ([t, e]) => [be(t), t, e]
609
+ ).sort(([t], [e]) => t - e).map(([, t, e]) => [t, e]), ht = (i) => i instanceof Date ? !1 : i && typeof i == "object" && !Array.isArray(i), v = (i, ...t) => {
611
610
  if (!t.length)
612
- return r;
611
+ return i;
613
612
  const e = t.shift();
614
- if (ct(r) && ct(e))
613
+ if (ht(i) && ht(e))
615
614
  for (const s in e)
616
- ct(e[s]) ? (r[s] || Object.assign(r, { [s]: {} }), b(r[s], e[s])) : Object.assign(r, { [s]: e[s] });
617
- return b(r, ...t);
618
- }, we = (r, t) => !r || r === "all" ? !0 : r.some((e) => t.indexOf(e) > -1), _e = (r, t) => {
619
- let e = [], s = [], i;
620
- const n = () => {
615
+ ht(e[s]) ? (i[s] || Object.assign(i, { [s]: {} }), v(i[s], e[s])) : Object.assign(i, { [s]: e[s] });
616
+ return v(i, ...t);
617
+ }, _e = (i, t) => !i || i === "all" ? !0 : i.some((e) => t.indexOf(e) > -1), Ae = (i, t) => {
618
+ let e = [], s = [], n;
619
+ const r = () => {
621
620
  process.env.NODE_ENV !== "production" && console.time("state-processor.flush");
622
- const a = /* @__PURE__ */ new Map(), c = be(
621
+ const a = /* @__PURE__ */ new Map(), c = we(
623
622
  e.map((h, p) => [h, s[p]])
624
623
  ), l = (h, p) => {
625
624
  var d;
626
- const u = a.get(h) || {}, g = p.context && !u.context, D = p.properties && !u.properties, it = p.layout && !u.layout;
625
+ const u = a.get(h) || {}, g = p.context && !u.context, I = p.properties && !u.properties, rt = p.layout && !u.layout;
627
626
  a.set(h, {
628
627
  context: u.context || g,
629
- properties: u.properties || D,
630
- layout: u.layout || it
631
- }), D && (h.attributes.properties = {}), it && (h.attributes.layout = {}), g && (h.attributes.context = b(
628
+ properties: u.properties || I,
629
+ layout: u.layout || rt
630
+ }), I && (h.attributes.properties = {}), rt && (h.attributes.layout = {}), g && (h.attributes.context = v(
632
631
  {},
633
632
  (d = h.parent) == null ? void 0 : d.attributes.context
634
633
  ));
635
- const Mt = [], Dt = [], jt = [];
636
- if (h.changesets.forEach((v) => {
637
- const [$, nt] = v;
638
- we(nt.breakpoints, r.breakpoints) && (D && (typeof $.properties == "function" ? Mt.push(
639
- $.properties
640
- ) : b(h.attributes.properties, $.properties)), it && (typeof $.layout == "function" ? Dt.push($.layout) : b(h.attributes.layout, $.layout)), g && (typeof $.context == "function" ? jt.push(
641
- $.context
642
- ) : b(h.attributes.context, $.context)));
643
- }), Mt.forEach((v) => {
644
- b(
634
+ const It = [], Dt = [], jt = [];
635
+ if (h.changesets.forEach(($) => {
636
+ const [y, ot] = $;
637
+ _e(ot.breakpoints, i.breakpoints) && (I && (typeof y.properties == "function" ? It.push(
638
+ y.properties
639
+ ) : v(h.attributes.properties, y.properties)), rt && (typeof y.layout == "function" ? Dt.push(y.layout) : v(h.attributes.layout, y.layout)), g && (typeof y.context == "function" ? jt.push(
640
+ y.context
641
+ ) : v(h.attributes.context, y.context)));
642
+ }), It.forEach(($) => {
643
+ v(
645
644
  h.attributes.properties,
646
- v(h.attributes.properties)
645
+ $(h.attributes.properties)
647
646
  );
648
- }), Dt.forEach((v) => {
649
- b(h.attributes.layout, v(h.attributes.layout));
650
- }), jt.forEach((v) => {
651
- b(h.attributes.context, v(h.attributes.context));
647
+ }), Dt.forEach(($) => {
648
+ v(h.attributes.layout, $(h.attributes.layout));
649
+ }), jt.forEach(($) => {
650
+ v(h.attributes.context, $(h.attributes.context));
652
651
  }), g || p.recursive) {
653
- const v = r.getBranch(h), $ = p.recursive ? p : {
652
+ const $ = i.getBranch(h), y = p.recursive ? p : {
654
653
  context: !!g
655
654
  };
656
- h.getChildren(v).forEach((nt) => {
657
- l(nt, $);
655
+ h.getChildren($).forEach((ot) => {
656
+ l(ot, y);
658
657
  });
659
658
  }
660
659
  };
@@ -662,7 +661,7 @@ const ve = (r) => {
662
661
  l(h, p);
663
662
  }), e = [], s = [], t(a);
664
663
  }, o = () => {
665
- clearTimeout(i), i = setTimeout(n, 0);
664
+ clearTimeout(n), n = setTimeout(r, 0);
666
665
  };
667
666
  return (a, c) => {
668
667
  const l = e.indexOf(a);
@@ -673,21 +672,21 @@ const ve = (r) => {
673
672
  return e.push(a), s.push(c), o();
674
673
  };
675
674
  };
676
- class Ae {
675
+ class xe {
677
676
  constructor(t, e = {}) {
678
- this.providers = e, this.breakpoints = [], this.actionsState = { handlers: [], watchers: [] }, this.switches = {}, this.changesets = [], this.subscriptions = [], this.customComponentHandler = new $e(), this.events = t.events.createChild(this);
679
- const s = new Rt(this.events, "root");
680
- s.name = `root-${t.name}`, this.nodes = new ye(s, this.switches, this.events);
681
- const i = this.processNode = _e(
677
+ this.providers = e, this.breakpoints = [], this.actionsState = { handlers: [], watchers: [] }, this.switches = {}, this.changesets = [], this.subscriptions = [], this.customComponentHandler = new ve(), this.events = t.events.createChild(this);
678
+ const s = new Lt(this.events, "root");
679
+ s.name = `root-${t.name}`, this.nodes = new $e(s, this.switches, this.events);
680
+ const n = this.processNode = Ae(
682
681
  this,
683
- (n) => {
684
- const o = Array.from(n.keys());
682
+ (r) => {
683
+ const o = Array.from(r.keys());
685
684
  process.env.NODE_ENV !== "production" && console.info(`STATE PROCESSOR: ${o.length} node(s) processed:
686
685
  ${o.map(
687
686
  (a) => `${a.name || "<no name>"} (${a.id})
688
687
  `
689
688
  )}`), o.forEach((a) => {
690
- const c = n.get(a);
689
+ const c = r.get(a);
691
690
  a.parent && a.parent.type === "root" && this.events.dispatch("components:root-children-changed", { node: a }), c != null && c.context && this.events.dispatch("components:context-changed", { node: a }), c != null && c.properties && this.events.dispatch("components:properties-changed", { node: a }), c != null && c.layout && this.events.dispatch("components:layout-changed", { node: a });
692
691
  }), this.events.dispatch(
693
692
  "components:component-model-initialized",
@@ -697,11 +696,11 @@ class Ae {
697
696
  }
698
697
  );
699
698
  Promise.all(
700
- Object.keys(e).map((n) => e[n].load(this))
699
+ Object.keys(e).map((r) => e[r].load(this))
701
700
  ), this.subscriptions.push(
702
701
  this.events.subscribe(
703
702
  "components:node-appended",
704
- (n, o) => {
703
+ (r, o) => {
705
704
  const { node: a } = o;
706
705
  this.changesets.forEach((c) => {
707
706
  const { changeset: l, target: h, removes: p } = c, [d, u] = l;
@@ -712,43 +711,43 @@ class Ae {
712
711
  ), this.subscriptions.push(
713
712
  this.events.subscribe(
714
713
  "components:node-appended",
715
- (n, o) => {
716
- i(o.node, { properties: !0, context: !0 });
714
+ (r, o) => {
715
+ n(o.node, { properties: !0, context: !0 });
717
716
  }
718
717
  )
719
718
  ), this.subscriptions.push(
720
719
  this.events.subscribe(
721
720
  "components:set-properties",
722
- (n, o) => {
723
- i(o.node, { properties: !0 });
721
+ (r, o) => {
722
+ n(o.node, { properties: !0 });
724
723
  }
725
724
  )
726
725
  ), this.subscriptions.push(
727
726
  this.events.subscribe(
728
727
  "components:set-context",
729
- (n, o) => {
730
- i(o.node, { properties: !0, context: !0 });
728
+ (r, o) => {
729
+ n(o.node, { properties: !0, context: !0 });
731
730
  }
732
731
  )
733
732
  ), this.subscriptions.push(
734
733
  this.events.subscribe(
735
734
  "components:set-indent",
736
- (n, o) => {
737
- i(o.node, { layout: !0 });
735
+ (r, o) => {
736
+ n(o.node, { layout: !0 });
738
737
  }
739
738
  )
740
739
  ), this.subscriptions.push(
741
740
  this.events.subscribe(
742
741
  "components:set-layout",
743
- (n, o) => {
744
- i(o.node, { layout: !0 });
742
+ (r, o) => {
743
+ n(o.node, { layout: !0 });
745
744
  }
746
745
  )
747
746
  ), this.subscriptions.push(
748
747
  this.events.subscribe(
749
748
  "components:node-switched",
750
- (n, { node: o, branch: a }) => {
751
- i(o, {
749
+ (r, { node: o, branch: a }) => {
750
+ n(o, {
752
751
  layout: !0,
753
752
  recursive: !0,
754
753
  properties: !0,
@@ -759,8 +758,8 @@ class Ae {
759
758
  ), this.subscriptions.push(
760
759
  this.events.subscribe(
761
760
  "components:node-removed",
762
- (n, { parentNode: o }) => {
763
- i(o, { properties: !0 });
761
+ (r, { parentNode: o }) => {
762
+ n(o, { properties: !0 });
764
763
  }
765
764
  )
766
765
  ), this.events.parent && this.events.parent.dispatch("components:platform-created", {
@@ -798,26 +797,26 @@ class Ae {
798
797
  * @param type Type of node.
799
798
  */
800
799
  createNode(t, e = {}) {
801
- const s = new Rt(this.events, t);
800
+ const s = new Lt(this.events, t);
802
801
  return e.detached && this.nodes.detached.push(s), s;
803
802
  }
804
803
  components() {
805
- return new bt(this);
804
+ return new wt(this);
806
805
  }
807
806
  actions(t, e) {
808
- return new wt(this, t, e);
807
+ return new _t(this, t, e);
809
808
  }
810
809
  write(t) {
811
810
  const {
812
811
  provider: e,
813
812
  target: s,
814
- attributes: i,
815
- options: n = {},
813
+ attributes: n,
814
+ options: r = {},
816
815
  removable: o
817
- } = t, a = t.key || vt(), c = { changeset: [i, n], target: s, removes: [] };
816
+ } = t, a = t.key || bt(), c = { changeset: [n, r], target: s, removes: [] };
818
817
  if (e) {
819
818
  const l = this.providers[e];
820
- l.write(a, s, i, n), c.removes.push(() => {
819
+ l.write(a, s, n, r), c.removes.push(() => {
821
820
  l.remove(a);
822
821
  });
823
822
  }
@@ -825,11 +824,11 @@ class Ae {
825
824
  if (s.match(l)) {
826
825
  let h = () => {
827
826
  };
828
- i.properties && (h = l.writeProperties(
829
- i.properties,
830
- n,
827
+ n.properties && (h = l.writeProperties(
828
+ n.properties,
829
+ r,
831
830
  o
832
- )), i.context && (h = l.writeContext(i.context, n, o)), i.layout && (h = l.writeContext(i.layout, n, o)), c.removes.push(h);
831
+ )), n.context && (h = l.writeContext(n.context, r, o)), n.layout && (h = l.writeContext(n.layout, r, o)), c.removes.push(h);
833
832
  }
834
833
  }), () => {
835
834
  if (o) {
@@ -849,22 +848,22 @@ class Ae {
849
848
  this.subscriptions.forEach((t) => t());
850
849
  }
851
850
  }
852
- const bs = (r, t) => ({
853
- id: r.id,
854
- type: r.type,
855
- name: r.name,
851
+ const ws = (i, t) => ({
852
+ id: i.id,
853
+ type: i.type,
854
+ name: i.name,
856
855
  branch: t || "default"
857
- }), xe = (r, t, e, s = vt(), i = {}) => r.getAsync("components").then((n) => {
856
+ }), Ee = (i, t, e, s = bt(), n = {}) => i.getAsync("components").then((r) => {
858
857
  let o;
859
858
  {
860
- const l = new bt(n);
859
+ const l = new wt(r);
861
860
  l.ofType(t), o = l;
862
861
  }
863
862
  const a = {}, c = (l) => {
864
863
  const h = a[l.id];
865
- return h ? Promise.resolve(h.controller) : Ae.getInstance(r).then((p) => new Yt(p, l, s));
864
+ return h ? Promise.resolve(h.controller) : xe.getInstance(i).then((p) => new te(p, l, s));
866
865
  };
867
- n.events.subscribe(
866
+ r.events.subscribe(
868
867
  "components:node-enter",
869
868
  (l, { node: h }) => {
870
869
  o.match(h) && c(h).then((p) => {
@@ -876,201 +875,201 @@ const bs = (r, t) => ({
876
875
  });
877
876
  });
878
877
  }
879
- ), n.events.subscribe(
878
+ ), r.events.subscribe(
880
879
  "components:node-exit",
881
880
  (l, { node: h }) => {
882
881
  const p = a[h.id];
883
- p && (p.dispose && p.dispose(), i.reuseController || (p.controller.dispose(), delete a[h.id]));
882
+ p && (p.dispose && p.dispose(), n.reuseController || (p.controller.dispose(), delete a[h.id]));
884
883
  }
885
884
  );
886
885
  });
887
- var w = /* @__PURE__ */ ((r) => (r.Cookie = "cookie", r.Local = "local", r.Session = "session", r))(w || {}), At = /* @__PURE__ */ ((r) => (r.Tenant = "tenant", r.Implementation = "implementation", r.Widget = "widget", r))(At || {}), f = /* @__PURE__ */ ((r) => (r.Necessary = "necessary", r.Functional = "functional", r.Analytical = "analytical", r.Marketing = "marketing", r))(f || {});
888
- const Ee = (r, t, e, s = {}) => Lt(r, e).then((i) => (process.env.NODE_ENV !== "production" && i && y.warn(
886
+ var b = /* @__PURE__ */ ((i) => (i.Cookie = "cookie", i.Local = "local", i.Session = "session", i))(b || {}), xt = /* @__PURE__ */ ((i) => (i.Tenant = "tenant", i.Implementation = "implementation", i.Widget = "widget", i))(xt || {}), f = /* @__PURE__ */ ((i) => (i.Necessary = "necessary", i.Functional = "functional", i.Analytical = "analytical", i.Marketing = "marketing", i))(f || {});
887
+ const Se = (i, t, e, s = {}) => Bt(i, e).then((n) => (process.env.NODE_ENV !== "production" && n && A.warn(
889
888
  `createStorageWriter: Attempted to create storage writer using unallowed category.
890
889
  Key: ${t}
891
890
  Category: ${JSON.stringify(e)}
892
891
  Options: ${JSON.stringify(s)}`
893
- ), (n) => (Et(r), Lt(r, e).then((o) => {
892
+ ), (r) => (St(i), Bt(i, e).then((o) => {
894
893
  if (o) {
895
- process.env.NODE_ENV !== "production" && y.warn(
894
+ process.env.NODE_ENV !== "production" && A.warn(
896
895
  `storageWriter: Attempted to write to storage using unallowed category.
897
896
  Key: ${t}
898
897
  Category: ${JSON.stringify(e)}
899
- Value: ${JSON.stringify(n)}
898
+ Value: ${JSON.stringify(r)}
900
899
  Options: ${JSON.stringify(s)}`
901
900
  );
902
901
  return;
903
902
  }
904
903
  const {
905
- scope: a = At.Widget,
906
- medium: c = w.Session,
904
+ scope: a = xt.Widget,
905
+ medium: c = b.Session,
907
906
  duration: l
908
- } = s, h = Oe();
909
- return h[a][t] = re(n, e, l), c === w.Cookie ? Ue(r, h) : De(r, c, h);
910
- })))), Se = (r, t, e = w.Session) => (Et(r), typeof t > "u" ? (process.env.NODE_ENV !== "production" && y.warn(
907
+ } = s, h = Pe();
908
+ return h[a][t] = ne(r, e, l), c === b.Cookie ? Me(i, h) : De(i, c, h);
909
+ })))), Ce = (i, t, e = b.Session) => (St(i), typeof t > "u" ? (process.env.NODE_ENV !== "production" && A.warn(
911
910
  "readStorage: Undefined key passed when reading storage. ",
912
911
  t,
913
912
  e
914
- ), Promise.resolve(void 0)) : e === w.Cookie ? Te(r).then((s) => yt(s, t)) : Me(r, e).then(
915
- (s) => yt(s, t)
916
- )), U = (r) => !!Object.entries(r).filter(([t, e]) => typeof e < "u").length, ht = (r) => Object.entries(r).filter(([t, e]) => typeof e < "u").forEach(([t, { value: e }]) => {
917
- typeof e > "u" && delete r[t];
918
- }), ee = (r, t) => {
913
+ ), Promise.resolve(void 0)) : e === b.Cookie ? Ue(i).then((s) => $t(s, t)) : Ie(i, e).then(
914
+ (s) => $t(s, t)
915
+ )), U = (i) => !!Object.entries(i).filter(([t, e]) => typeof e < "u").length, lt = (i) => Object.entries(i).filter(([t, e]) => typeof e < "u").forEach(([t, { value: e }]) => {
916
+ typeof e > "u" && delete i[t];
917
+ }), se = (i, t) => {
919
918
  const e = {
920
- tenant: { ...r.tenant, ...t.tenant },
921
- implementation: { ...r.implementation, ...t.implementation },
922
- widget: { ...r.widget, ...t.widget }
919
+ tenant: { ...i.tenant, ...t.tenant },
920
+ implementation: { ...i.implementation, ...t.implementation },
921
+ widget: { ...i.widget, ...t.widget }
923
922
  };
924
- return ht(e.tenant), ht(e.implementation), ht(e.widget), e;
925
- }, Ce = (r) => Object.entries(r).reduce(
923
+ return lt(e.tenant), lt(e.implementation), lt(e.widget), e;
924
+ }, Oe = (i) => Object.entries(i).reduce(
926
925
  (t, e) => {
927
- const [s, i] = e;
928
- return Object.entries(i).forEach((n) => {
929
- const [o, { expiration: a }] = n;
926
+ const [s, n] = e;
927
+ return Object.entries(n).forEach((r) => {
928
+ const [o, { expiration: a }] = r;
930
929
  a && t.push(a);
931
930
  }), t;
932
931
  },
933
932
  []
934
- ).slice().sort((t, e) => new Date(e).valueOf() - new Date(t).valueOf()).shift() || St(), st = (r) => {
933
+ ).slice().sort((t, e) => new Date(e).valueOf() - new Date(t).valueOf()).shift() || Ct(), it = (i) => {
935
934
  const {
936
935
  name: t,
937
936
  implementation: { name: e, tenant: s }
938
- } = r.get("$widget");
937
+ } = i.get("$widget");
939
938
  return [
940
939
  `humany_${s}`,
941
- `humany_${Ht(s + e)}`,
942
- `humany_${Ht(s + e + t)}`
940
+ `humany_${Rt(s + e)}`,
941
+ `humany_${Rt(s + e + t)}`
943
942
  ];
944
- }, lt = (r) => {
945
- const t = new RegExp(`(?:^|;)\\s?${r}=(.*?)(?:;|$)`, "i"), e = document.cookie.match(t);
943
+ }, pt = (i) => {
944
+ const t = new RegExp(`(?:^|;)\\s?${i}=(.*?)(?:;|$)`, "i"), e = document.cookie.match(t);
946
945
  return e && e[1] && JSON.parse(e[1]) || void 0;
947
- }, pt = (r, t, e) => {
948
- const s = `${r}=${JSON.stringify(t).trim()}`, i = `expires=${new Date(e).toUTCString()}`, n = "path=/", o = "SameSite=None;Secure";
949
- return document.cookie = `${s}; ${i}; ${n}; ${o}`;
950
- }, xt = (r) => {
951
- const [t, e, s] = st(r), i = lt(t) || {}, n = lt(e) || {}, o = lt(s) || {};
946
+ }, dt = (i, t, e) => {
947
+ const s = `${i}=${JSON.stringify(t).trim()}`, n = `expires=${new Date(e).toUTCString()}`, r = "path=/", o = "SameSite=None;Secure";
948
+ return document.cookie = `${s}; ${n}; ${r}; ${o}`;
949
+ }, Et = (i) => {
950
+ const [t, e, s] = it(i), n = pt(t) || {}, r = pt(e) || {}, o = pt(s) || {};
952
951
  return {
953
- tenant: i,
954
- implementation: n,
952
+ tenant: n,
953
+ implementation: r,
955
954
  widget: o
956
955
  };
957
- }, se = (r, t) => {
958
- const e = xt(r), s = ee(e, t), [i, n, o] = st(r), { tenant: a, implementation: c, widget: l } = s, h = Ce(t), p = St({ days: -1 });
959
- pt(
960
- i,
956
+ }, ie = (i, t) => {
957
+ const e = Et(i), s = se(e, t), [n, r, o] = it(i), { tenant: a, implementation: c, widget: l } = s, h = Oe(t), p = Ct({ days: -1 });
958
+ dt(
959
+ n,
961
960
  a,
962
961
  U(a) ? h : p
963
- ), pt(
964
- n,
962
+ ), dt(
963
+ r,
965
964
  c,
966
965
  U(c) ? h : p
967
- ), pt(
966
+ ), dt(
968
967
  o,
969
968
  l,
970
969
  U(l) ? h : p
971
970
  );
972
- }, Q = (r, t) => {
973
- const [e, s, i] = st(r), n = t.getItem(e) || "{}", o = t.getItem(s) || "{}", a = t.getItem(i) || "{}";
971
+ }, Y = (i, t) => {
972
+ const [e, s, n] = it(i), r = t.getItem(e) || "{}", o = t.getItem(s) || "{}", a = t.getItem(n) || "{}";
974
973
  return {
975
- tenant: JSON.parse(n),
974
+ tenant: JSON.parse(r),
976
975
  implementation: JSON.parse(o),
977
976
  widget: JSON.parse(a)
978
977
  };
979
- }, ft = (r, t, e) => {
980
- const s = Q(r, t), i = ee(s, e), [n, o, a] = st(r), { tenant: c, implementation: l, widget: h } = i;
981
- U(c) ? t.setItem(n, JSON.stringify(c)) : t.removeItem(n), U(l) ? t.setItem(
978
+ }, yt = (i, t, e) => {
979
+ const s = Y(i, t), n = se(s, e), [r, o, a] = it(i), { tenant: c, implementation: l, widget: h } = n;
980
+ U(c) ? t.setItem(r, JSON.stringify(c)) : t.removeItem(r), U(l) ? t.setItem(
982
981
  o,
983
982
  JSON.stringify(l)
984
983
  ) : t.removeItem(o), U(h) ? t.setItem(a, JSON.stringify(h)) : t.removeItem(a);
985
- const { events: p } = r.get("$widget");
984
+ const { events: p } = i.get("$widget");
986
985
  p.dispatch("storage:changed", {});
987
- }, Oe = () => ({
986
+ }, Pe = () => ({
988
987
  tenant: {},
989
988
  implementation: {},
990
989
  widget: {}
991
- }), Pe = (r) => r ? !!r && /* @__PURE__ */ new Date() > new Date(r) : !1, yt = (r, t) => {
992
- const e = r.widget[t] || r.implementation[t] || r.tenant[t];
990
+ }), ke = (i) => i ? !!i && /* @__PURE__ */ new Date() > new Date(i) : !1, $t = (i, t) => {
991
+ const e = i.widget[t] || i.implementation[t] || i.tenant[t];
993
992
  return e == null ? void 0 : e.value;
994
- }, re = (r, t, e) => e ? {
995
- value: r,
993
+ }, ne = (i, t, e) => e ? {
994
+ value: i,
996
995
  category: t,
997
- expiration: typeof e == "object" ? St(e) : e
996
+ expiration: typeof e == "object" ? Ct(e) : e
998
997
  } : {
999
- value: r,
998
+ value: i,
1000
999
  category: t
1001
- }, ke = (r, t) => {
1002
- const e = Xt(r);
1003
- return Object.entries(e).forEach(([s, i]) => {
1004
- Object.entries(i).forEach(([n, o]) => {
1000
+ }, Ne = (i, t) => {
1001
+ const e = Qt(i);
1002
+ return Object.entries(e).forEach(([s, n]) => {
1003
+ Object.entries(n).forEach(([r, o]) => {
1005
1004
  const { expiration: a, category: c } = o;
1006
- (Pe(a) || Ne(t, c)) && (i[n] = re(void 0, c, a));
1005
+ (ke(a) || Te(t, c)) && (n[r] = ne(void 0, c, a));
1007
1006
  });
1008
1007
  }), e;
1009
- }, Lt = (r, t) => Se(
1010
- r,
1008
+ }, Bt = (i, t) => Ce(
1009
+ i,
1011
1010
  "storagePolicy",
1012
- w.Cookie
1011
+ b.Cookie
1013
1012
  ).then(
1014
1013
  (e = [f.Necessary]) => !!t && e.indexOf(t) === -1
1015
- ), Ne = (r = [f.Necessary], t) => !!t && r.indexOf(t) === -1, Et = (r) => {
1016
- const t = xt(r), e = Q(r, window.localStorage), s = Q(r, sessionStorage), i = yt(t, "storagePolicy"), [n, o, a] = [
1014
+ ), Te = (i = [f.Necessary], t) => !!t && i.indexOf(t) === -1, St = (i) => {
1015
+ const t = Et(i), e = Y(i, window.localStorage), s = Y(i, sessionStorage), n = $t(t, "storagePolicy"), [r, o, a] = [
1017
1016
  t,
1018
1017
  e,
1019
1018
  s
1020
- ].map((c) => ke(c, i));
1021
- se(r, n), ft(r, window.localStorage, o), ft(r, window.sessionStorage, a);
1022
- }, St = (r = { days: 30 }) => {
1023
- const { days: t = 0, hours: e = 0, minutes: s = 0, seconds: i = 0 } = r, n = /* @__PURE__ */ new Date();
1024
- return n.setTime(n.getTime() + e * 60 * 60 * 1e3), n.setTime(n.getTime() + t * 24 * 60 * 60 * 1e3), n.setTime(n.getTime() + s * 60 * 1e3), n.setTime(n.getTime() + i * 1e3), n.toISOString();
1025
- }, Te = (r) => et(document)(() => xt(r)), Ue = (r, t) => et(document)(() => se(r, t)), Me = (r, t) => {
1026
- const e = t === w.Local ? window.localStorage : window.sessionStorage;
1027
- return et(e)(() => Q(r, e));
1028
- }, De = (r, t, e) => {
1029
- const s = t === w.Local ? window.localStorage : window.sessionStorage;
1030
- return et(s)(() => ft(r, s, e));
1019
+ ].map((c) => Ne(c, n));
1020
+ ie(i, r), yt(i, window.localStorage, o), yt(i, window.sessionStorage, a);
1021
+ }, Ct = (i = { days: 30 }) => {
1022
+ const { days: t = 0, hours: e = 0, minutes: s = 0, seconds: n = 0 } = i, r = /* @__PURE__ */ new Date();
1023
+ return r.setTime(r.getTime() + e * 60 * 60 * 1e3), r.setTime(r.getTime() + t * 24 * 60 * 60 * 1e3), r.setTime(r.getTime() + s * 60 * 1e3), r.setTime(r.getTime() + n * 1e3), r.toISOString();
1024
+ }, Ue = (i) => st(document)(() => Et(i)), Me = (i, t) => st(document)(() => ie(i, t)), Ie = (i, t) => {
1025
+ const e = t === b.Local ? window.localStorage : window.sessionStorage;
1026
+ return st(e)(() => Y(i, e));
1027
+ }, De = (i, t, e) => {
1028
+ const s = t === b.Local ? window.localStorage : window.sessionStorage;
1029
+ return st(s)(() => yt(i, s, e));
1031
1030
  };
1032
- $t((r) => {
1033
- r.createCommand(
1031
+ vt((i) => {
1032
+ i.createCommand(
1034
1033
  "storage",
1035
1034
  (t) => (e = {}) => {
1036
1035
  const { consent: s } = e;
1037
1036
  if (typeof s < "u") {
1038
1037
  if (typeof s != "number" && typeof s != "string" && !Array.isArray(s)) {
1039
- process.env.NODE_ENV !== "production" && y.warn(
1038
+ process.env.NODE_ENV !== "production" && A.warn(
1040
1039
  `storagePolicyConfigurationApi: passed consent is not valid. Consent either has to be a number, a string, an array of strings or an array of numbers.
1041
1040
  Passed consent: ${JSON.stringify(s)}`
1042
1041
  );
1043
1042
  return;
1044
1043
  }
1045
1044
  if (Array.isArray(s) && !s.every(
1046
- (n) => typeof n == "number" || typeof n == "string"
1045
+ (r) => typeof r == "number" || typeof r == "string"
1047
1046
  )) {
1048
- process.env.NODE_ENV !== "production" && y.warn(
1047
+ process.env.NODE_ENV !== "production" && A.warn(
1049
1048
  `storagePolicyConfigurationApi: passed consent is not valid. Consent either has to be a number, a string, an array of strings or an array of numbers.
1050
1049
  Passed consent: ${JSON.stringify(s)}`
1051
1050
  );
1052
1051
  return;
1053
1052
  }
1054
- const i = [
1053
+ const n = [
1055
1054
  f.Necessary,
1056
1055
  f.Functional,
1057
1056
  f.Analytical,
1058
1057
  f.Marketing
1059
- ].filter((n, o, a) => typeof s == "number" ? s > o : typeof s == "string" ? a.indexOf(s) + 1 > o : Array.isArray(s) ? s.findIndex((c) => c === o + 1 || c === n) > -1 : !0);
1060
- return i.indexOf(f.Necessary) === -1 && (process.env.NODE_ENV !== "production" && y.warn(
1058
+ ].filter((r, o, a) => typeof s == "number" ? s > o : typeof s == "string" ? a.indexOf(s) + 1 > o : Array.isArray(s) ? s.findIndex((c) => c === o + 1 || c === r) > -1 : !0);
1059
+ return n.indexOf(f.Necessary) === -1 && (process.env.NODE_ENV !== "production" && A.warn(
1061
1060
  `storagePolicyConfigurationApi: passed consent does not include category: '${f.Necessary}'. Consent has to atleast include the '${f.Necessary}' category.
1062
1061
  Passed consent: ${JSON.stringify(s)}`
1063
- ), i.unshift(f.Necessary)), Ee(
1062
+ ), n.unshift(f.Necessary)), Se(
1064
1063
  t.container,
1065
1064
  "storagePolicy",
1066
1065
  f.Necessary,
1067
1066
  {
1068
- medium: w.Cookie,
1069
- scope: At.Tenant,
1067
+ medium: b.Cookie,
1068
+ scope: xt.Tenant,
1070
1069
  duration: { days: 365 }
1071
1070
  }
1072
- ).then((n) => n(i)).then(() => {
1073
- Et(t.container), t.events.dispatch("storage:policy-changed", i);
1071
+ ).then((r) => r(n)).then(() => {
1072
+ St(t.container), t.events.dispatch("storage:policy-changed", n);
1074
1073
  });
1075
1074
  }
1076
1075
  }
@@ -1081,18 +1080,18 @@ $t((r) => {
1081
1080
  * Copyright 2019 Google LLC
1082
1081
  * SPDX-License-Identifier: BSD-3-Clause
1083
1082
  */
1084
- const Z = globalThis, Ct = Z.ShadowRoot && (Z.ShadyCSS === void 0 || Z.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Ot = Symbol(), Bt = /* @__PURE__ */ new WeakMap();
1085
- let ie = class {
1083
+ const G = globalThis, Ot = G.ShadowRoot && (G.ShadyCSS === void 0 || G.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Pt = Symbol(), zt = /* @__PURE__ */ new WeakMap();
1084
+ let re = class {
1086
1085
  constructor(t, e, s) {
1087
- if (this._$cssResult$ = !0, s !== Ot) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
1086
+ if (this._$cssResult$ = !0, s !== Pt) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
1088
1087
  this.cssText = t, this.t = e;
1089
1088
  }
1090
1089
  get styleSheet() {
1091
1090
  let t = this.o;
1092
1091
  const e = this.t;
1093
- if (Ct && t === void 0) {
1092
+ if (Ot && t === void 0) {
1094
1093
  const s = e !== void 0 && e.length === 1;
1095
- s && (t = Bt.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), s && Bt.set(e, t));
1094
+ s && (t = zt.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), s && zt.set(e, t));
1096
1095
  }
1097
1096
  return t;
1098
1097
  }
@@ -1100,58 +1099,58 @@ let ie = class {
1100
1099
  return this.cssText;
1101
1100
  }
1102
1101
  };
1103
- const je = (r) => new ie(typeof r == "string" ? r : r + "", void 0, Ot), Ie = (r, ...t) => {
1104
- const e = r.length === 1 ? r[0] : t.reduce(((s, i, n) => s + ((o) => {
1102
+ const je = (i) => new re(typeof i == "string" ? i : i + "", void 0, Pt), He = (i, ...t) => {
1103
+ const e = i.length === 1 ? i[0] : t.reduce(((s, n, r) => s + ((o) => {
1105
1104
  if (o._$cssResult$ === !0) return o.cssText;
1106
1105
  if (typeof o == "number") return o;
1107
1106
  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.");
1108
- })(i) + r[n + 1]), r[0]);
1109
- return new ie(e, r, Ot);
1110
- }, He = (r, t) => {
1111
- if (Ct) r.adoptedStyleSheets = t.map(((e) => e instanceof CSSStyleSheet ? e : e.styleSheet));
1107
+ })(n) + i[r + 1]), i[0]);
1108
+ return new re(e, i, Pt);
1109
+ }, Re = (i, t) => {
1110
+ if (Ot) i.adoptedStyleSheets = t.map(((e) => e instanceof CSSStyleSheet ? e : e.styleSheet));
1112
1111
  else for (const e of t) {
1113
- const s = document.createElement("style"), i = Z.litNonce;
1114
- i !== void 0 && s.setAttribute("nonce", i), s.textContent = e.cssText, r.appendChild(s);
1112
+ const s = document.createElement("style"), n = G.litNonce;
1113
+ n !== void 0 && s.setAttribute("nonce", n), s.textContent = e.cssText, i.appendChild(s);
1115
1114
  }
1116
- }, zt = Ct ? (r) => r : (r) => r instanceof CSSStyleSheet ? ((t) => {
1115
+ }, Wt = Ot ? (i) => i : (i) => i instanceof CSSStyleSheet ? ((t) => {
1117
1116
  let e = "";
1118
1117
  for (const s of t.cssRules) e += s.cssText;
1119
1118
  return je(e);
1120
- })(r) : r;
1119
+ })(i) : i;
1121
1120
  /**
1122
1121
  * @license
1123
1122
  * Copyright 2017 Google LLC
1124
1123
  * SPDX-License-Identifier: BSD-3-Clause
1125
1124
  */
1126
- const { is: Re, defineProperty: Le, getOwnPropertyDescriptor: Be, getOwnPropertyNames: ze, getOwnPropertySymbols: We, getPrototypeOf: Ve } = Object, x = globalThis, Wt = x.trustedTypes, Je = Wt ? Wt.emptyScript : "", dt = x.reactiveElementPolyfillSupport, H = (r, t) => r, X = { toAttribute(r, t) {
1125
+ const { is: Le, defineProperty: Be, getOwnPropertyDescriptor: ze, getOwnPropertyNames: We, getOwnPropertySymbols: Ve, getPrototypeOf: Je } = Object, x = globalThis, Vt = x.trustedTypes, qe = Vt ? Vt.emptyScript : "", ut = x.reactiveElementPolyfillSupport, H = (i, t) => i, Q = { toAttribute(i, t) {
1127
1126
  switch (t) {
1128
1127
  case Boolean:
1129
- r = r ? Je : null;
1128
+ i = i ? qe : null;
1130
1129
  break;
1131
1130
  case Object:
1132
1131
  case Array:
1133
- r = r == null ? r : JSON.stringify(r);
1132
+ i = i == null ? i : JSON.stringify(i);
1134
1133
  }
1135
- return r;
1136
- }, fromAttribute(r, t) {
1137
- let e = r;
1134
+ return i;
1135
+ }, fromAttribute(i, t) {
1136
+ let e = i;
1138
1137
  switch (t) {
1139
1138
  case Boolean:
1140
- e = r !== null;
1139
+ e = i !== null;
1141
1140
  break;
1142
1141
  case Number:
1143
- e = r === null ? null : Number(r);
1142
+ e = i === null ? null : Number(i);
1144
1143
  break;
1145
1144
  case Object:
1146
1145
  case Array:
1147
1146
  try {
1148
- e = JSON.parse(r);
1147
+ e = JSON.parse(i);
1149
1148
  } catch {
1150
1149
  e = null;
1151
1150
  }
1152
1151
  }
1153
1152
  return e;
1154
- } }, Pt = (r, t) => !Re(r, t), Vt = { attribute: !0, type: String, converter: X, reflect: !1, useDefault: !1, hasChanged: Pt };
1153
+ } }, kt = (i, t) => !Le(i, t), Jt = { attribute: !0, type: String, converter: Q, reflect: !1, useDefault: !1, hasChanged: kt };
1155
1154
  Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), x.litPropertyMetadata ?? (x.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
1156
1155
  let T = class extends HTMLElement {
1157
1156
  static addInitializer(t) {
@@ -1160,46 +1159,46 @@ let T = class extends HTMLElement {
1160
1159
  static get observedAttributes() {
1161
1160
  return this.finalize(), this._$Eh && [...this._$Eh.keys()];
1162
1161
  }
1163
- static createProperty(t, e = Vt) {
1162
+ static createProperty(t, e = Jt) {
1164
1163
  if (e.state && (e.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(t) && ((e = Object.create(e)).wrapped = !0), this.elementProperties.set(t, e), !e.noAccessor) {
1165
- const s = Symbol(), i = this.getPropertyDescriptor(t, s, e);
1166
- i !== void 0 && Le(this.prototype, t, i);
1164
+ const s = Symbol(), n = this.getPropertyDescriptor(t, s, e);
1165
+ n !== void 0 && Be(this.prototype, t, n);
1167
1166
  }
1168
1167
  }
1169
1168
  static getPropertyDescriptor(t, e, s) {
1170
- const { get: i, set: n } = Be(this.prototype, t) ?? { get() {
1169
+ const { get: n, set: r } = ze(this.prototype, t) ?? { get() {
1171
1170
  return this[e];
1172
1171
  }, set(o) {
1173
1172
  this[e] = o;
1174
1173
  } };
1175
- return { get: i, set(o) {
1176
- const a = i == null ? void 0 : i.call(this);
1177
- n == null || n.call(this, o), this.requestUpdate(t, a, s);
1174
+ return { get: n, set(o) {
1175
+ const a = n == null ? void 0 : n.call(this);
1176
+ r == null || r.call(this, o), this.requestUpdate(t, a, s);
1178
1177
  }, configurable: !0, enumerable: !0 };
1179
1178
  }
1180
1179
  static getPropertyOptions(t) {
1181
- return this.elementProperties.get(t) ?? Vt;
1180
+ return this.elementProperties.get(t) ?? Jt;
1182
1181
  }
1183
1182
  static _$Ei() {
1184
1183
  if (this.hasOwnProperty(H("elementProperties"))) return;
1185
- const t = Ve(this);
1184
+ const t = Je(this);
1186
1185
  t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
1187
1186
  }
1188
1187
  static finalize() {
1189
1188
  if (this.hasOwnProperty(H("finalized"))) return;
1190
1189
  if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(H("properties"))) {
1191
- const e = this.properties, s = [...ze(e), ...We(e)];
1192
- for (const i of s) this.createProperty(i, e[i]);
1190
+ const e = this.properties, s = [...We(e), ...Ve(e)];
1191
+ for (const n of s) this.createProperty(n, e[n]);
1193
1192
  }
1194
1193
  const t = this[Symbol.metadata];
1195
1194
  if (t !== null) {
1196
1195
  const e = litPropertyMetadata.get(t);
1197
- if (e !== void 0) for (const [s, i] of e) this.elementProperties.set(s, i);
1196
+ if (e !== void 0) for (const [s, n] of e) this.elementProperties.set(s, n);
1198
1197
  }
1199
1198
  this._$Eh = /* @__PURE__ */ new Map();
1200
1199
  for (const [e, s] of this.elementProperties) {
1201
- const i = this._$Eu(e, s);
1202
- i !== void 0 && this._$Eh.set(i, e);
1200
+ const n = this._$Eu(e, s);
1201
+ n !== void 0 && this._$Eh.set(n, e);
1203
1202
  }
1204
1203
  this.elementStyles = this.finalizeStyles(this.styles);
1205
1204
  }
@@ -1207,8 +1206,8 @@ let T = class extends HTMLElement {
1207
1206
  const e = [];
1208
1207
  if (Array.isArray(t)) {
1209
1208
  const s = new Set(t.flat(1 / 0).reverse());
1210
- for (const i of s) e.unshift(zt(i));
1211
- } else t !== void 0 && e.push(zt(t));
1209
+ for (const n of s) e.unshift(Wt(n));
1210
+ } else t !== void 0 && e.push(Wt(t));
1212
1211
  return e;
1213
1212
  }
1214
1213
  static _$Eu(t, e) {
@@ -1237,7 +1236,7 @@ let T = class extends HTMLElement {
1237
1236
  }
1238
1237
  createRenderRoot() {
1239
1238
  const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
1240
- return He(t, this.constructor.elementStyles), t;
1239
+ return Re(t, this.constructor.elementStyles), t;
1241
1240
  }
1242
1241
  connectedCallback() {
1243
1242
  var t;
@@ -1259,34 +1258,34 @@ let T = class extends HTMLElement {
1259
1258
  this._$AK(t, s);
1260
1259
  }
1261
1260
  _$ET(t, e) {
1262
- var n;
1263
- const s = this.constructor.elementProperties.get(t), i = this.constructor._$Eu(t, s);
1264
- if (i !== void 0 && s.reflect === !0) {
1265
- const o = (((n = s.converter) == null ? void 0 : n.toAttribute) !== void 0 ? s.converter : X).toAttribute(e, s.type);
1266
- this._$Em = t, o == null ? this.removeAttribute(i) : this.setAttribute(i, o), this._$Em = null;
1261
+ var r;
1262
+ const s = this.constructor.elementProperties.get(t), n = this.constructor._$Eu(t, s);
1263
+ if (n !== void 0 && s.reflect === !0) {
1264
+ const o = (((r = s.converter) == null ? void 0 : r.toAttribute) !== void 0 ? s.converter : Q).toAttribute(e, s.type);
1265
+ this._$Em = t, o == null ? this.removeAttribute(n) : this.setAttribute(n, o), this._$Em = null;
1267
1266
  }
1268
1267
  }
1269
1268
  _$AK(t, e) {
1270
- var n, o;
1271
- const s = this.constructor, i = s._$Eh.get(t);
1272
- if (i !== void 0 && this._$Em !== i) {
1273
- const a = s.getPropertyOptions(i), c = typeof a.converter == "function" ? { fromAttribute: a.converter } : ((n = a.converter) == null ? void 0 : n.fromAttribute) !== void 0 ? a.converter : X;
1274
- this._$Em = i;
1269
+ var r, o;
1270
+ const s = this.constructor, n = s._$Eh.get(t);
1271
+ if (n !== void 0 && this._$Em !== n) {
1272
+ const a = s.getPropertyOptions(n), c = typeof a.converter == "function" ? { fromAttribute: a.converter } : ((r = a.converter) == null ? void 0 : r.fromAttribute) !== void 0 ? a.converter : Q;
1273
+ this._$Em = n;
1275
1274
  const l = c.fromAttribute(e, a.type);
1276
- this[i] = l ?? ((o = this._$Ej) == null ? void 0 : o.get(i)) ?? l, this._$Em = null;
1275
+ this[n] = l ?? ((o = this._$Ej) == null ? void 0 : o.get(n)) ?? l, this._$Em = null;
1277
1276
  }
1278
1277
  }
1279
1278
  requestUpdate(t, e, s) {
1280
- var i;
1279
+ var n;
1281
1280
  if (t !== void 0) {
1282
- const n = this.constructor, o = this[t];
1283
- if (s ?? (s = n.getPropertyOptions(t)), !((s.hasChanged ?? Pt)(o, e) || s.useDefault && s.reflect && o === ((i = this._$Ej) == null ? void 0 : i.get(t)) && !this.hasAttribute(n._$Eu(t, s)))) return;
1281
+ const r = this.constructor, o = this[t];
1282
+ if (s ?? (s = r.getPropertyOptions(t)), !((s.hasChanged ?? kt)(o, e) || s.useDefault && s.reflect && o === ((n = this._$Ej) == null ? void 0 : n.get(t)) && !this.hasAttribute(r._$Eu(t, s)))) return;
1284
1283
  this.C(t, e, s);
1285
1284
  }
1286
1285
  this.isUpdatePending === !1 && (this._$ES = this._$EP());
1287
1286
  }
1288
- C(t, e, { useDefault: s, reflect: i, wrapped: n }, o) {
1289
- s && !(this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Map())).has(t) && (this._$Ej.set(t, o ?? e ?? this[t]), n !== !0 || o !== void 0) || (this._$AL.has(t) || (this.hasUpdated || s || (e = void 0), this._$AL.set(t, e)), i === !0 && this._$Em !== t && (this._$Eq ?? (this._$Eq = /* @__PURE__ */ new Set())).add(t));
1287
+ C(t, e, { useDefault: s, reflect: n, wrapped: r }, o) {
1288
+ s && !(this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Map())).has(t) && (this._$Ej.set(t, o ?? e ?? this[t]), r !== !0 || o !== void 0) || (this._$AL.has(t) || (this.hasUpdated || s || (e = void 0), this._$AL.set(t, e)), n === !0 && this._$Em !== t && (this._$Eq ?? (this._$Eq = /* @__PURE__ */ new Set())).add(t));
1290
1289
  }
1291
1290
  async _$EP() {
1292
1291
  this.isUpdatePending = !0;
@@ -1306,24 +1305,24 @@ let T = class extends HTMLElement {
1306
1305
  if (!this.isUpdatePending) return;
1307
1306
  if (!this.hasUpdated) {
1308
1307
  if (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this._$Ep) {
1309
- for (const [n, o] of this._$Ep) this[n] = o;
1308
+ for (const [r, o] of this._$Ep) this[r] = o;
1310
1309
  this._$Ep = void 0;
1311
1310
  }
1312
- const i = this.constructor.elementProperties;
1313
- if (i.size > 0) for (const [n, o] of i) {
1314
- const { wrapped: a } = o, c = this[n];
1315
- a !== !0 || this._$AL.has(n) || c === void 0 || this.C(n, void 0, o, c);
1311
+ const n = this.constructor.elementProperties;
1312
+ if (n.size > 0) for (const [r, o] of n) {
1313
+ const { wrapped: a } = o, c = this[r];
1314
+ a !== !0 || this._$AL.has(r) || c === void 0 || this.C(r, void 0, o, c);
1316
1315
  }
1317
1316
  }
1318
1317
  let t = !1;
1319
1318
  const e = this._$AL;
1320
1319
  try {
1321
- t = this.shouldUpdate(e), t ? (this.willUpdate(e), (s = this._$EO) == null || s.forEach(((i) => {
1322
- var n;
1323
- return (n = i.hostUpdate) == null ? void 0 : n.call(i);
1320
+ t = this.shouldUpdate(e), t ? (this.willUpdate(e), (s = this._$EO) == null || s.forEach(((n) => {
1321
+ var r;
1322
+ return (r = n.hostUpdate) == null ? void 0 : r.call(n);
1324
1323
  })), this.update(e)) : this._$EM();
1325
- } catch (i) {
1326
- throw t = !1, this._$EM(), i;
1324
+ } catch (n) {
1325
+ throw t = !1, this._$EM(), n;
1327
1326
  }
1328
1327
  t && this._$AE(e);
1329
1328
  }
@@ -1332,8 +1331,8 @@ let T = class extends HTMLElement {
1332
1331
  _$AE(t) {
1333
1332
  var e;
1334
1333
  (e = this._$EO) == null || e.forEach(((s) => {
1335
- var i;
1336
- return (i = s.hostUpdated) == null ? void 0 : i.call(s);
1334
+ var n;
1335
+ return (n = s.hostUpdated) == null ? void 0 : n.call(s);
1337
1336
  })), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
1338
1337
  }
1339
1338
  _$EM() {
@@ -1356,61 +1355,61 @@ let T = class extends HTMLElement {
1356
1355
  firstUpdated(t) {
1357
1356
  }
1358
1357
  };
1359
- T.elementStyles = [], T.shadowRootOptions = { mode: "open" }, T[H("elementProperties")] = /* @__PURE__ */ new Map(), T[H("finalized")] = /* @__PURE__ */ new Map(), dt == null || dt({ ReactiveElement: T }), (x.reactiveElementVersions ?? (x.reactiveElementVersions = [])).push("2.1.1");
1358
+ T.elementStyles = [], T.shadowRootOptions = { mode: "open" }, T[H("elementProperties")] = /* @__PURE__ */ new Map(), T[H("finalized")] = /* @__PURE__ */ new Map(), ut == null || ut({ ReactiveElement: T }), (x.reactiveElementVersions ?? (x.reactiveElementVersions = [])).push("2.1.1");
1360
1359
  /**
1361
1360
  * @license
1362
1361
  * Copyright 2017 Google LLC
1363
1362
  * SPDX-License-Identifier: BSD-3-Clause
1364
1363
  */
1365
- const R = globalThis, Y = R.trustedTypes, Jt = Y ? Y.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, ne = "$lit$", A = `lit$${Math.random().toFixed(9).slice(2)}$`, oe = "?" + A, qe = `<${oe}>`, P = document, B = () => P.createComment(""), z = (r) => r === null || typeof r != "object" && typeof r != "function", kt = Array.isArray, Fe = (r) => kt(r) || typeof (r == null ? void 0 : r[Symbol.iterator]) == "function", ut = `[
1366
- \f\r]`, j = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, qt = /-->/g, Ft = />/g, E = RegExp(`>|${ut}(?:([^\\s"'>=/]+)(${ut}*=${ut}*(?:[^
1367
- \f\r"'\`<>=]|("|')|))|$)`, "g"), Kt = /'/g, Zt = /"/g, ae = /^(?:script|style|textarea|title)$/i, Ke = (r) => (t, ...e) => ({ _$litType$: r, strings: t, values: e }), F = Ke(1), k = Symbol.for("lit-noChange"), m = Symbol.for("lit-nothing"), Gt = /* @__PURE__ */ new WeakMap(), C = P.createTreeWalker(P, 129);
1368
- function ce(r, t) {
1369
- if (!kt(r) || !r.hasOwnProperty("raw")) throw Error("invalid template strings array");
1370
- return Jt !== void 0 ? Jt.createHTML(t) : t;
1364
+ const R = globalThis, tt = R.trustedTypes, qt = tt ? tt.createPolicy("lit-html", { createHTML: (i) => i }) : void 0, oe = "$lit$", _ = `lit$${Math.random().toFixed(9).slice(2)}$`, ae = "?" + _, Ke = `<${ae}>`, P = document, B = () => P.createComment(""), z = (i) => i === null || typeof i != "object" && typeof i != "function", Nt = Array.isArray, Fe = (i) => Nt(i) || typeof (i == null ? void 0 : i[Symbol.iterator]) == "function", mt = `[
1365
+ \f\r]`, D = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Kt = /-->/g, Ft = />/g, E = RegExp(`>|${mt}(?:([^\\s"'>=/]+)(${mt}*=${mt}*(?:[^
1366
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), Zt = /'/g, Gt = /"/g, ce = /^(?:script|style|textarea|title)$/i, Ze = (i) => (t, ...e) => ({ _$litType$: i, strings: t, values: e }), F = Ze(1), k = Symbol.for("lit-noChange"), m = Symbol.for("lit-nothing"), Xt = /* @__PURE__ */ new WeakMap(), C = P.createTreeWalker(P, 129);
1367
+ function he(i, t) {
1368
+ if (!Nt(i) || !i.hasOwnProperty("raw")) throw Error("invalid template strings array");
1369
+ return qt !== void 0 ? qt.createHTML(t) : t;
1371
1370
  }
1372
- const Ze = (r, t) => {
1373
- const e = r.length - 1, s = [];
1374
- let i, n = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", o = j;
1371
+ const Ge = (i, t) => {
1372
+ const e = i.length - 1, s = [];
1373
+ let n, r = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", o = D;
1375
1374
  for (let a = 0; a < e; a++) {
1376
- const c = r[a];
1375
+ const c = i[a];
1377
1376
  let l, h, p = -1, d = 0;
1378
- for (; d < c.length && (o.lastIndex = d, h = o.exec(c), h !== null); ) d = o.lastIndex, o === j ? h[1] === "!--" ? o = qt : h[1] !== void 0 ? o = Ft : h[2] !== void 0 ? (ae.test(h[2]) && (i = RegExp("</" + h[2], "g")), o = E) : h[3] !== void 0 && (o = E) : o === E ? h[0] === ">" ? (o = i ?? j, p = -1) : h[1] === void 0 ? p = -2 : (p = o.lastIndex - h[2].length, l = h[1], o = h[3] === void 0 ? E : h[3] === '"' ? Zt : Kt) : o === Zt || o === Kt ? o = E : o === qt || o === Ft ? o = j : (o = E, i = void 0);
1379
- const u = o === E && r[a + 1].startsWith("/>") ? " " : "";
1380
- n += o === j ? c + qe : p >= 0 ? (s.push(l), c.slice(0, p) + ne + c.slice(p) + A + u) : c + A + (p === -2 ? a : u);
1377
+ for (; d < c.length && (o.lastIndex = d, h = o.exec(c), h !== null); ) d = o.lastIndex, o === D ? h[1] === "!--" ? o = Kt : h[1] !== void 0 ? o = Ft : h[2] !== void 0 ? (ce.test(h[2]) && (n = RegExp("</" + h[2], "g")), o = E) : h[3] !== void 0 && (o = E) : o === E ? h[0] === ">" ? (o = n ?? D, p = -1) : h[1] === void 0 ? p = -2 : (p = o.lastIndex - h[2].length, l = h[1], o = h[3] === void 0 ? E : h[3] === '"' ? Gt : Zt) : o === Gt || o === Zt ? o = E : o === Kt || o === Ft ? o = D : (o = E, n = void 0);
1378
+ const u = o === E && i[a + 1].startsWith("/>") ? " " : "";
1379
+ r += o === D ? c + Ke : p >= 0 ? (s.push(l), c.slice(0, p) + oe + c.slice(p) + _ + u) : c + _ + (p === -2 ? a : u);
1381
1380
  }
1382
- return [ce(r, n + (r[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), s];
1381
+ return [he(i, r + (i[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), s];
1383
1382
  };
1384
1383
  class W {
1385
1384
  constructor({ strings: t, _$litType$: e }, s) {
1386
- let i;
1385
+ let n;
1387
1386
  this.parts = [];
1388
- let n = 0, o = 0;
1389
- const a = t.length - 1, c = this.parts, [l, h] = Ze(t, e);
1387
+ let r = 0, o = 0;
1388
+ const a = t.length - 1, c = this.parts, [l, h] = Ge(t, e);
1390
1389
  if (this.el = W.createElement(l, s), C.currentNode = this.el.content, e === 2 || e === 3) {
1391
1390
  const p = this.el.content.firstChild;
1392
1391
  p.replaceWith(...p.childNodes);
1393
1392
  }
1394
- for (; (i = C.nextNode()) !== null && c.length < a; ) {
1395
- if (i.nodeType === 1) {
1396
- if (i.hasAttributes()) for (const p of i.getAttributeNames()) if (p.endsWith(ne)) {
1397
- const d = h[o++], u = i.getAttribute(p).split(A), g = /([.?@])?(.*)/.exec(d);
1398
- c.push({ type: 1, index: n, name: g[2], strings: u, ctor: g[1] === "." ? Qe : g[1] === "?" ? Xe : g[1] === "@" ? Ye : rt }), i.removeAttribute(p);
1399
- } else p.startsWith(A) && (c.push({ type: 6, index: n }), i.removeAttribute(p));
1400
- if (ae.test(i.tagName)) {
1401
- const p = i.textContent.split(A), d = p.length - 1;
1393
+ for (; (n = C.nextNode()) !== null && c.length < a; ) {
1394
+ if (n.nodeType === 1) {
1395
+ if (n.hasAttributes()) for (const p of n.getAttributeNames()) if (p.endsWith(oe)) {
1396
+ const d = h[o++], u = n.getAttribute(p).split(_), g = /([.?@])?(.*)/.exec(d);
1397
+ c.push({ type: 1, index: r, name: g[2], strings: u, ctor: g[1] === "." ? Ye : g[1] === "?" ? Qe : g[1] === "@" ? ts : nt }), n.removeAttribute(p);
1398
+ } else p.startsWith(_) && (c.push({ type: 6, index: r }), n.removeAttribute(p));
1399
+ if (ce.test(n.tagName)) {
1400
+ const p = n.textContent.split(_), d = p.length - 1;
1402
1401
  if (d > 0) {
1403
- i.textContent = Y ? Y.emptyScript : "";
1404
- for (let u = 0; u < d; u++) i.append(p[u], B()), C.nextNode(), c.push({ type: 2, index: ++n });
1405
- i.append(p[d], B());
1402
+ n.textContent = tt ? tt.emptyScript : "";
1403
+ for (let u = 0; u < d; u++) n.append(p[u], B()), C.nextNode(), c.push({ type: 2, index: ++r });
1404
+ n.append(p[d], B());
1406
1405
  }
1407
1406
  }
1408
- } else if (i.nodeType === 8) if (i.data === oe) c.push({ type: 2, index: n });
1407
+ } else if (n.nodeType === 8) if (n.data === ae) c.push({ type: 2, index: r });
1409
1408
  else {
1410
1409
  let p = -1;
1411
- for (; (p = i.data.indexOf(A, p + 1)) !== -1; ) c.push({ type: 7, index: n }), p += A.length - 1;
1410
+ for (; (p = n.data.indexOf(_, p + 1)) !== -1; ) c.push({ type: 7, index: r }), p += _.length - 1;
1412
1411
  }
1413
- n++;
1412
+ r++;
1414
1413
  }
1415
1414
  }
1416
1415
  static createElement(t, e) {
@@ -1418,14 +1417,14 @@ class W {
1418
1417
  return s.innerHTML = t, s;
1419
1418
  }
1420
1419
  }
1421
- function M(r, t, e = r, s) {
1420
+ function M(i, t, e = i, s) {
1422
1421
  var o, a;
1423
1422
  if (t === k) return t;
1424
- let i = s !== void 0 ? (o = e._$Co) == null ? void 0 : o[s] : e._$Cl;
1425
- const n = z(t) ? void 0 : t._$litDirective$;
1426
- return (i == null ? void 0 : i.constructor) !== n && ((a = i == null ? void 0 : i._$AO) == null || a.call(i, !1), n === void 0 ? i = void 0 : (i = new n(r), i._$AT(r, e, s)), s !== void 0 ? (e._$Co ?? (e._$Co = []))[s] = i : e._$Cl = i), i !== void 0 && (t = M(r, i._$AS(r, t.values), i, s)), t;
1423
+ let n = s !== void 0 ? (o = e._$Co) == null ? void 0 : o[s] : e._$Cl;
1424
+ const r = z(t) ? void 0 : t._$litDirective$;
1425
+ return (n == null ? void 0 : n.constructor) !== r && ((a = n == null ? void 0 : n._$AO) == null || a.call(n, !1), r === void 0 ? n = void 0 : (n = new r(i), n._$AT(i, e, s)), s !== void 0 ? (e._$Co ?? (e._$Co = []))[s] = n : e._$Cl = n), n !== void 0 && (t = M(i, n._$AS(i, t.values), n, s)), t;
1427
1426
  }
1428
- class Ge {
1427
+ class Xe {
1429
1428
  constructor(t, e) {
1430
1429
  this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = e;
1431
1430
  }
@@ -1436,30 +1435,30 @@ class Ge {
1436
1435
  return this._$AM._$AU;
1437
1436
  }
1438
1437
  u(t) {
1439
- const { el: { content: e }, parts: s } = this._$AD, i = ((t == null ? void 0 : t.creationScope) ?? P).importNode(e, !0);
1440
- C.currentNode = i;
1441
- let n = C.nextNode(), o = 0, a = 0, c = s[0];
1438
+ const { el: { content: e }, parts: s } = this._$AD, n = ((t == null ? void 0 : t.creationScope) ?? P).importNode(e, !0);
1439
+ C.currentNode = n;
1440
+ let r = C.nextNode(), o = 0, a = 0, c = s[0];
1442
1441
  for (; c !== void 0; ) {
1443
1442
  if (o === c.index) {
1444
1443
  let l;
1445
- c.type === 2 ? l = new V(n, n.nextSibling, this, t) : c.type === 1 ? l = new c.ctor(n, c.name, c.strings, this, t) : c.type === 6 && (l = new ts(n, this, t)), this._$AV.push(l), c = s[++a];
1444
+ c.type === 2 ? l = new J(r, r.nextSibling, this, t) : c.type === 1 ? l = new c.ctor(r, c.name, c.strings, this, t) : c.type === 6 && (l = new es(r, this, t)), this._$AV.push(l), c = s[++a];
1446
1445
  }
1447
- o !== (c == null ? void 0 : c.index) && (n = C.nextNode(), o++);
1446
+ o !== (c == null ? void 0 : c.index) && (r = C.nextNode(), o++);
1448
1447
  }
1449
- return C.currentNode = P, i;
1448
+ return C.currentNode = P, n;
1450
1449
  }
1451
1450
  p(t) {
1452
1451
  let e = 0;
1453
1452
  for (const s of this._$AV) s !== void 0 && (s.strings !== void 0 ? (s._$AI(t, s, e), e += s.strings.length - 2) : s._$AI(t[e])), e++;
1454
1453
  }
1455
1454
  }
1456
- class V {
1455
+ class J {
1457
1456
  get _$AU() {
1458
1457
  var t;
1459
1458
  return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
1460
1459
  }
1461
- constructor(t, e, s, i) {
1462
- this.type = 2, this._$AH = m, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = s, this.options = i, this._$Cv = (i == null ? void 0 : i.isConnected) ?? !0;
1460
+ constructor(t, e, s, n) {
1461
+ this.type = 2, this._$AH = m, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = s, this.options = n, this._$Cv = (n == null ? void 0 : n.isConnected) ?? !0;
1463
1462
  }
1464
1463
  get parentNode() {
1465
1464
  let t = this._$AA.parentNode;
@@ -1485,30 +1484,30 @@ class V {
1485
1484
  this._$AH !== m && z(this._$AH) ? this._$AA.nextSibling.data = t : this.T(P.createTextNode(t)), this._$AH = t;
1486
1485
  }
1487
1486
  $(t) {
1488
- var n;
1489
- const { values: e, _$litType$: s } = t, i = typeof s == "number" ? this._$AC(t) : (s.el === void 0 && (s.el = W.createElement(ce(s.h, s.h[0]), this.options)), s);
1490
- if (((n = this._$AH) == null ? void 0 : n._$AD) === i) this._$AH.p(e);
1487
+ var r;
1488
+ const { values: e, _$litType$: s } = t, n = typeof s == "number" ? this._$AC(t) : (s.el === void 0 && (s.el = W.createElement(he(s.h, s.h[0]), this.options)), s);
1489
+ if (((r = this._$AH) == null ? void 0 : r._$AD) === n) this._$AH.p(e);
1491
1490
  else {
1492
- const o = new Ge(i, this), a = o.u(this.options);
1491
+ const o = new Xe(n, this), a = o.u(this.options);
1493
1492
  o.p(e), this.T(a), this._$AH = o;
1494
1493
  }
1495
1494
  }
1496
1495
  _$AC(t) {
1497
- let e = Gt.get(t.strings);
1498
- return e === void 0 && Gt.set(t.strings, e = new W(t)), e;
1496
+ let e = Xt.get(t.strings);
1497
+ return e === void 0 && Xt.set(t.strings, e = new W(t)), e;
1499
1498
  }
1500
1499
  k(t) {
1501
- kt(this._$AH) || (this._$AH = [], this._$AR());
1500
+ Nt(this._$AH) || (this._$AH = [], this._$AR());
1502
1501
  const e = this._$AH;
1503
- let s, i = 0;
1504
- for (const n of t) i === e.length ? e.push(s = new V(this.O(B()), this.O(B()), this, this.options)) : s = e[i], s._$AI(n), i++;
1505
- i < e.length && (this._$AR(s && s._$AB.nextSibling, i), e.length = i);
1502
+ let s, n = 0;
1503
+ for (const r of t) n === e.length ? e.push(s = new J(this.O(B()), this.O(B()), this, this.options)) : s = e[n], s._$AI(r), n++;
1504
+ n < e.length && (this._$AR(s && s._$AB.nextSibling, n), e.length = n);
1506
1505
  }
1507
1506
  _$AR(t = this._$AA.nextSibling, e) {
1508
1507
  var s;
1509
1508
  for ((s = this._$AP) == null ? void 0 : s.call(this, !1, !0, e); t !== this._$AB; ) {
1510
- const i = t.nextSibling;
1511
- t.remove(), t = i;
1509
+ const n = t.nextSibling;
1510
+ t.remove(), t = n;
1512
1511
  }
1513
1512
  }
1514
1513
  setConnected(t) {
@@ -1516,32 +1515,32 @@ class V {
1516
1515
  this._$AM === void 0 && (this._$Cv = t, (e = this._$AP) == null || e.call(this, t));
1517
1516
  }
1518
1517
  }
1519
- class rt {
1518
+ class nt {
1520
1519
  get tagName() {
1521
1520
  return this.element.tagName;
1522
1521
  }
1523
1522
  get _$AU() {
1524
1523
  return this._$AM._$AU;
1525
1524
  }
1526
- constructor(t, e, s, i, n) {
1527
- this.type = 1, this._$AH = m, this._$AN = void 0, this.element = t, this.name = e, this._$AM = i, this.options = n, s.length > 2 || s[0] !== "" || s[1] !== "" ? (this._$AH = Array(s.length - 1).fill(new String()), this.strings = s) : this._$AH = m;
1525
+ constructor(t, e, s, n, r) {
1526
+ this.type = 1, this._$AH = m, this._$AN = void 0, this.element = t, this.name = e, this._$AM = n, this.options = r, s.length > 2 || s[0] !== "" || s[1] !== "" ? (this._$AH = Array(s.length - 1).fill(new String()), this.strings = s) : this._$AH = m;
1528
1527
  }
1529
- _$AI(t, e = this, s, i) {
1530
- const n = this.strings;
1528
+ _$AI(t, e = this, s, n) {
1529
+ const r = this.strings;
1531
1530
  let o = !1;
1532
- if (n === void 0) t = M(this, t, e, 0), o = !z(t) || t !== this._$AH && t !== k, o && (this._$AH = t);
1531
+ if (r === void 0) t = M(this, t, e, 0), o = !z(t) || t !== this._$AH && t !== k, o && (this._$AH = t);
1533
1532
  else {
1534
1533
  const a = t;
1535
1534
  let c, l;
1536
- for (t = n[0], c = 0; c < n.length - 1; c++) l = M(this, a[s + c], e, c), l === k && (l = this._$AH[c]), o || (o = !z(l) || l !== this._$AH[c]), l === m ? t = m : t !== m && (t += (l ?? "") + n[c + 1]), this._$AH[c] = l;
1535
+ for (t = r[0], c = 0; c < r.length - 1; c++) l = M(this, a[s + c], e, c), l === k && (l = this._$AH[c]), o || (o = !z(l) || l !== this._$AH[c]), l === m ? t = m : t !== m && (t += (l ?? "") + r[c + 1]), this._$AH[c] = l;
1537
1536
  }
1538
- o && !i && this.j(t);
1537
+ o && !n && this.j(t);
1539
1538
  }
1540
1539
  j(t) {
1541
1540
  t === m ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
1542
1541
  }
1543
1542
  }
1544
- class Qe extends rt {
1543
+ class Ye extends nt {
1545
1544
  constructor() {
1546
1545
  super(...arguments), this.type = 3;
1547
1546
  }
@@ -1549,7 +1548,7 @@ class Qe extends rt {
1549
1548
  this.element[this.name] = t === m ? void 0 : t;
1550
1549
  }
1551
1550
  }
1552
- class Xe extends rt {
1551
+ class Qe extends nt {
1553
1552
  constructor() {
1554
1553
  super(...arguments), this.type = 4;
1555
1554
  }
@@ -1557,21 +1556,21 @@ class Xe extends rt {
1557
1556
  this.element.toggleAttribute(this.name, !!t && t !== m);
1558
1557
  }
1559
1558
  }
1560
- class Ye extends rt {
1561
- constructor(t, e, s, i, n) {
1562
- super(t, e, s, i, n), this.type = 5;
1559
+ class ts extends nt {
1560
+ constructor(t, e, s, n, r) {
1561
+ super(t, e, s, n, r), this.type = 5;
1563
1562
  }
1564
1563
  _$AI(t, e = this) {
1565
1564
  if ((t = M(this, t, e, 0) ?? m) === k) return;
1566
- const s = this._$AH, i = t === m && s !== m || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive, n = t !== m && (s === m || i);
1567
- i && this.element.removeEventListener(this.name, this, s), n && this.element.addEventListener(this.name, this, t), this._$AH = t;
1565
+ const s = this._$AH, n = t === m && s !== m || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive, r = t !== m && (s === m || n);
1566
+ n && this.element.removeEventListener(this.name, this, s), r && this.element.addEventListener(this.name, this, t), this._$AH = t;
1568
1567
  }
1569
1568
  handleEvent(t) {
1570
1569
  var e;
1571
1570
  typeof this._$AH == "function" ? this._$AH.call(((e = this.options) == null ? void 0 : e.host) ?? this.element, t) : this._$AH.handleEvent(t);
1572
1571
  }
1573
1572
  }
1574
- class ts {
1573
+ class es {
1575
1574
  constructor(t, e, s) {
1576
1575
  this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = s;
1577
1576
  }
@@ -1582,16 +1581,16 @@ class ts {
1582
1581
  M(this, t);
1583
1582
  }
1584
1583
  }
1585
- const mt = R.litHtmlPolyfillSupport;
1586
- mt == null || mt(W, V), (R.litHtmlVersions ?? (R.litHtmlVersions = [])).push("3.3.1");
1587
- const es = (r, t, e) => {
1584
+ const gt = R.litHtmlPolyfillSupport;
1585
+ gt == null || gt(W, J), (R.litHtmlVersions ?? (R.litHtmlVersions = [])).push("3.3.1");
1586
+ const ss = (i, t, e) => {
1588
1587
  const s = (e == null ? void 0 : e.renderBefore) ?? t;
1589
- let i = s._$litPart$;
1590
- if (i === void 0) {
1591
- const n = (e == null ? void 0 : e.renderBefore) ?? null;
1592
- s._$litPart$ = i = new V(t.insertBefore(B(), n), n, void 0, e ?? {});
1588
+ let n = s._$litPart$;
1589
+ if (n === void 0) {
1590
+ const r = (e == null ? void 0 : e.renderBefore) ?? null;
1591
+ s._$litPart$ = n = new J(t.insertBefore(B(), r), r, void 0, e ?? {});
1593
1592
  }
1594
- return i._$AI(r), i;
1593
+ return n._$AI(i), n;
1595
1594
  };
1596
1595
  /**
1597
1596
  * @license
@@ -1610,7 +1609,7 @@ let L = class extends T {
1610
1609
  }
1611
1610
  update(t) {
1612
1611
  const e = this.render();
1613
- this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = es(e, this.renderRoot, this.renderOptions);
1612
+ this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = ss(e, this.renderRoot, this.renderOptions);
1614
1613
  }
1615
1614
  connectedCallback() {
1616
1615
  var t;
@@ -1624,58 +1623,58 @@ let L = class extends T {
1624
1623
  return k;
1625
1624
  }
1626
1625
  };
1627
- var Qt;
1628
- L._$litElement$ = !0, L.finalized = !0, (Qt = O.litElementHydrateSupport) == null || Qt.call(O, { LitElement: L });
1629
- const gt = O.litElementPolyfillSupport;
1630
- gt == null || gt({ LitElement: L });
1626
+ var Yt;
1627
+ L._$litElement$ = !0, L.finalized = !0, (Yt = O.litElementHydrateSupport) == null || Yt.call(O, { LitElement: L });
1628
+ const ft = O.litElementPolyfillSupport;
1629
+ ft == null || ft({ LitElement: L });
1631
1630
  (O.litElementVersions ?? (O.litElementVersions = [])).push("4.2.1");
1632
1631
  /**
1633
1632
  * @license
1634
1633
  * Copyright 2017 Google LLC
1635
1634
  * SPDX-License-Identifier: BSD-3-Clause
1636
1635
  */
1637
- const ss = { attribute: !0, type: String, converter: X, reflect: !1, hasChanged: Pt }, rs = (r = ss, t, e) => {
1638
- const { kind: s, metadata: i } = e;
1639
- let n = globalThis.litPropertyMetadata.get(i);
1640
- if (n === void 0 && globalThis.litPropertyMetadata.set(i, n = /* @__PURE__ */ new Map()), s === "setter" && ((r = Object.create(r)).wrapped = !0), n.set(e.name, r), s === "accessor") {
1636
+ const is = { attribute: !0, type: String, converter: Q, reflect: !1, hasChanged: kt }, ns = (i = is, t, e) => {
1637
+ const { kind: s, metadata: n } = e;
1638
+ let r = globalThis.litPropertyMetadata.get(n);
1639
+ if (r === void 0 && globalThis.litPropertyMetadata.set(n, r = /* @__PURE__ */ new Map()), s === "setter" && ((i = Object.create(i)).wrapped = !0), r.set(e.name, i), s === "accessor") {
1641
1640
  const { name: o } = e;
1642
1641
  return { set(a) {
1643
1642
  const c = t.get.call(this);
1644
- t.set.call(this, a), this.requestUpdate(o, c, r);
1643
+ t.set.call(this, a), this.requestUpdate(o, c, i);
1645
1644
  }, init(a) {
1646
- return a !== void 0 && this.C(o, void 0, r, a), a;
1645
+ return a !== void 0 && this.C(o, void 0, i, a), a;
1647
1646
  } };
1648
1647
  }
1649
1648
  if (s === "setter") {
1650
1649
  const { name: o } = e;
1651
1650
  return function(a) {
1652
1651
  const c = this[o];
1653
- t.call(this, a), this.requestUpdate(o, c, r);
1652
+ t.call(this, a), this.requestUpdate(o, c, i);
1654
1653
  };
1655
1654
  }
1656
1655
  throw Error("Unsupported decorator location: " + s);
1657
1656
  };
1658
- function Nt(r) {
1659
- return (t, e) => typeof e == "object" ? rs(r, t, e) : ((s, i, n) => {
1660
- const o = i.hasOwnProperty(n);
1661
- return i.constructor.createProperty(n, s), o ? Object.getOwnPropertyDescriptor(i, n) : void 0;
1662
- })(r, t, e);
1657
+ function Tt(i) {
1658
+ return (t, e) => typeof e == "object" ? ns(i, t, e) : ((s, n, r) => {
1659
+ const o = n.hasOwnProperty(r);
1660
+ return n.constructor.createProperty(r, s), o ? Object.getOwnPropertyDescriptor(n, r) : void 0;
1661
+ })(i, t, e);
1663
1662
  }
1664
1663
  /**
1665
1664
  * @license
1666
1665
  * Copyright 2017 Google LLC
1667
1666
  * SPDX-License-Identifier: BSD-3-Clause
1668
1667
  */
1669
- function Tt(r) {
1670
- return Nt({ ...r, state: !0, attribute: !1 });
1668
+ function Ut(i) {
1669
+ return Tt({ ...i, state: !0, attribute: !1 });
1671
1670
  }
1672
1671
  /**
1673
1672
  * @license
1674
1673
  * Copyright 2017 Google LLC
1675
1674
  * SPDX-License-Identifier: BSD-3-Clause
1676
1675
  */
1677
- const is = { ATTRIBUTE: 1 }, ns = (r) => (...t) => ({ _$litDirective$: r, values: t });
1678
- class os {
1676
+ const rs = { ATTRIBUTE: 1 }, os = (i) => (...t) => ({ _$litDirective$: i, values: t });
1677
+ class as {
1679
1678
  constructor(t) {
1680
1679
  }
1681
1680
  get _$AU() {
@@ -1696,49 +1695,49 @@ class os {
1696
1695
  * Copyright 2018 Google LLC
1697
1696
  * SPDX-License-Identifier: BSD-3-Clause
1698
1697
  */
1699
- const as = ns(class extends os {
1700
- constructor(r) {
1698
+ const cs = os(class extends as {
1699
+ constructor(i) {
1701
1700
  var t;
1702
- if (super(r), r.type !== is.ATTRIBUTE || r.name !== "class" || ((t = r.strings) == null ? void 0 : t.length) > 2) throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
1701
+ if (super(i), i.type !== rs.ATTRIBUTE || i.name !== "class" || ((t = i.strings) == null ? void 0 : t.length) > 2) throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
1703
1702
  }
1704
- render(r) {
1705
- return " " + Object.keys(r).filter(((t) => r[t])).join(" ") + " ";
1703
+ render(i) {
1704
+ return " " + Object.keys(i).filter(((t) => i[t])).join(" ") + " ";
1706
1705
  }
1707
- update(r, [t]) {
1708
- var s, i;
1706
+ update(i, [t]) {
1707
+ var s, n;
1709
1708
  if (this.st === void 0) {
1710
- this.st = /* @__PURE__ */ new Set(), r.strings !== void 0 && (this.nt = new Set(r.strings.join(" ").split(/\s/).filter(((n) => n !== ""))));
1711
- for (const n in t) t[n] && !((s = this.nt) != null && s.has(n)) && this.st.add(n);
1709
+ this.st = /* @__PURE__ */ new Set(), i.strings !== void 0 && (this.nt = new Set(i.strings.join(" ").split(/\s/).filter(((r) => r !== ""))));
1710
+ for (const r in t) t[r] && !((s = this.nt) != null && s.has(r)) && this.st.add(r);
1712
1711
  return this.render(t);
1713
1712
  }
1714
- const e = r.element.classList;
1715
- for (const n of this.st) n in t || (e.remove(n), this.st.delete(n));
1716
- for (const n in t) {
1717
- const o = !!t[n];
1718
- o === this.st.has(n) || (i = this.nt) != null && i.has(n) || (o ? (e.add(n), this.st.add(n)) : (e.remove(n), this.st.delete(n)));
1713
+ const e = i.element.classList;
1714
+ for (const r of this.st) r in t || (e.remove(r), this.st.delete(r));
1715
+ for (const r in t) {
1716
+ const o = !!t[r];
1717
+ o === this.st.has(r) || (n = this.nt) != null && n.has(r) || (o ? (e.add(r), this.st.add(r)) : (e.remove(r), this.st.delete(r)));
1719
1718
  }
1720
1719
  return k;
1721
1720
  }
1722
- }), K = (r, t, e) => {
1723
- r && e.style.setProperty(t, r);
1724
- }, cs = (r, t) => {
1725
- var e, s, i, n;
1726
- K((e = r.colors) == null ? void 0 : e.primaryBackground, "--primary-background", t), K(
1727
- (s = r.colors) == null ? void 0 : s.textOnPrimaryBackground,
1721
+ }), Z = (i, t, e) => {
1722
+ i && e.style.setProperty(t, i);
1723
+ }, hs = (i, t) => {
1724
+ var e, s, n, r;
1725
+ Z((e = i.colors) == null ? void 0 : e.primaryBackground, "--primary-background", t), Z(
1726
+ (s = i.colors) == null ? void 0 : s.textOnPrimaryBackground,
1728
1727
  "--text-on-primary-background",
1729
1728
  t
1730
- ), K((i = r.colors) == null ? void 0 : i.secondaryBackground, "--secondary-background", t), K(
1731
- (n = r.colors) == null ? void 0 : n.textOnSecondaryBackground,
1729
+ ), Z((n = i.colors) == null ? void 0 : n.secondaryBackground, "--secondary-background", t), Z(
1730
+ (r = i.colors) == null ? void 0 : r.textOnSecondaryBackground,
1732
1731
  "--text-on-secondary-background",
1733
1732
  t
1734
1733
  );
1735
1734
  };
1736
- var hs = Object.defineProperty, J = (r, t, e, s) => {
1737
- for (var i = void 0, n = r.length - 1, o; n >= 0; n--)
1738
- (o = r[n]) && (i = o(t, e, i) || i);
1739
- return i && hs(t, e, i), i;
1735
+ var ls = Object.defineProperty, q = (i, t, e, s) => {
1736
+ for (var n = void 0, r = i.length - 1, o; r >= 0; r--)
1737
+ (o = i[r]) && (n = o(t, e, n) || n);
1738
+ return n && ls(t, e, n), n;
1740
1739
  };
1741
- const Ut = class Ut extends L {
1740
+ const Mt = class Mt extends L {
1742
1741
  constructor() {
1743
1742
  super(...arguments), this.active = !1, this.loaded = !1;
1744
1743
  }
@@ -1751,29 +1750,29 @@ const Ut = class Ut extends L {
1751
1750
  _applyBranding() {
1752
1751
  var e;
1753
1752
  const t = ((e = this.container) == null ? void 0 : e.get("$settings")) ?? {};
1754
- t != null && t.branding && cs(t.branding, this);
1753
+ t != null && t.branding && hs(t.branding, this);
1755
1754
  }
1756
1755
  async _renderSymbol(t) {
1757
1756
  const e = async (s) => await import("./index-KiHHCiS_.mjs").then(
1758
- (n) => n[s]
1757
+ (r) => r[s]
1759
1758
  );
1760
1759
  if (t) {
1761
- const { type: s, content: i } = t;
1760
+ const { type: s, content: n } = t;
1762
1761
  switch (s) {
1763
1762
  case "Telia": {
1764
- const n = await e(i);
1765
- return n ? F`<telia-icon
1763
+ const r = await e(n);
1764
+ return r ? F`<telia-icon
1766
1765
  class="trigger-icon"
1767
- svg=${n.svg}
1766
+ svg=${r.svg}
1768
1767
  size="lg"
1769
1768
  ></telia-icon>` : m;
1770
1769
  }
1771
1770
  case "FontAwesome":
1772
- return F`<i class="trigger-fa-icon fa fa-${i}"></i>`;
1771
+ return F`<i class="trigger-fa-icon fa fa-${n}"></i>`;
1773
1772
  case "Uri":
1774
1773
  return F`<i
1775
1774
  class="trigger-custom-icon"
1776
- style="background: url(${i}) no-repeat center center;background-size: contain;"
1775
+ style="background: url(${n}) no-repeat center center;background-size: contain;"
1777
1776
  ></i>`;
1778
1777
  default:
1779
1778
  return m;
@@ -1782,7 +1781,7 @@ const Ut = class Ut extends L {
1782
1781
  }
1783
1782
  render() {
1784
1783
  return F`<button
1785
- class=${as({
1784
+ class=${cs({
1786
1785
  trigger: !0,
1787
1786
  active: this.active,
1788
1787
  rendered: this.loaded
@@ -1820,8 +1819,8 @@ const Ut = class Ut extends L {
1820
1819
  </button>`;
1821
1820
  }
1822
1821
  };
1823
- Ut.styles = [
1824
- Ie`
1822
+ Mt.styles = [
1823
+ He`
1825
1824
  :host {
1826
1825
  --voca-rem-multiplier: 0.625;
1827
1826
  display: block;
@@ -1891,65 +1890,65 @@ Ut.styles = [
1891
1890
  }
1892
1891
  `
1893
1892
  ];
1894
- let N = Ut;
1895
- J([
1896
- Nt({ attribute: !1 })
1893
+ let N = Mt;
1894
+ q([
1895
+ Tt({ attribute: !1 })
1897
1896
  ], N.prototype, "symbol");
1898
- J([
1899
- Nt({ attribute: !1 })
1897
+ q([
1898
+ Tt({ attribute: !1 })
1900
1899
  ], N.prototype, "container");
1901
- J([
1902
- Tt()
1900
+ q([
1901
+ Ut()
1903
1902
  ], N.prototype, "active");
1904
- J([
1905
- Tt()
1903
+ q([
1904
+ Ut()
1906
1905
  ], N.prototype, "loaded");
1907
- J([
1908
- Tt()
1906
+ q([
1907
+ Ut()
1909
1908
  ], N.prototype, "icon");
1910
- const ls = async (r, t) => {
1911
- const e = r.properties().provider;
1912
- let s = {}, i = "";
1913
- Array.isArray(e) ? (i = e[0], s = e[1]) : i = e || "";
1914
- const n = await t.getAsync(
1915
- i
1909
+ const ps = async (i, t) => {
1910
+ const e = i.properties().provider;
1911
+ let s = {}, n = "";
1912
+ Array.isArray(e) ? (n = e[0], s = e[1]) : n = e || "";
1913
+ const r = await t.getAsync(
1914
+ n
1916
1915
  );
1917
- if (!n)
1916
+ if (!r)
1918
1917
  throw new Error("No provider defined in ListComponent");
1919
- return n.applyComponentNodeSettings(r.node.id, s), { provider: n, settings: s };
1920
- }, ps = async (r, t) => {
1921
- const { provider: e, settings: s = {} } = await ls(r, t);
1918
+ return r.applyComponentNodeSettings(i.node.id, s), { provider: r, settings: s };
1919
+ }, ds = async (i, t) => {
1920
+ const { provider: e, settings: s = {} } = await ps(i, t);
1922
1921
  return {
1923
- addResource: (i, n) => e.addResource(i, n),
1924
- getData: (i, n) => e.getData(i, n, s)
1922
+ addResource: (n, r) => e.addResource(n, r),
1923
+ getData: (n, r) => e.getData(n, r, s)
1925
1924
  };
1926
- }, ds = (r, t, e, s, i) => r.getAsync("componentResolver").then((n) => (n.registerComponent(t, e), xe(r, t, s || (() => {
1927
- }), t, i))), xs = (r) => ds(
1928
- r,
1925
+ }, us = (i, t, e, s, n) => i.getAsync("componentResolver").then((r) => (r.registerComponent(t, e), Ee(i, t, s || (() => {
1926
+ }), t, n))), Es = (i) => us(
1927
+ i,
1929
1928
  "list",
1930
- import("./list-Bi9qAdTU.mjs"),
1929
+ import("./list-9REMVMSc.mjs"),
1931
1930
  (t) => {
1932
1931
  (async () => {
1933
1932
  t.writeProperties({ loading: !0, items: [], totalItems: 0 });
1934
- const i = await (await ps(t, r)).getData("items", {});
1933
+ const n = await (await ds(t, i)).getData("items", {});
1935
1934
  t.writeProperties({
1936
1935
  loading: !1,
1937
- items: (i == null ? void 0 : i.items) || [],
1938
- totalItems: (i == null ? void 0 : i.totalItems) || 0
1936
+ items: (n == null ? void 0 : n.items) || [],
1937
+ totalItems: (n == null ? void 0 : n.totalItems) || 0
1939
1938
  });
1940
1939
  })();
1941
1940
  }
1942
1941
  );
1943
1942
  export {
1944
1943
  m as E,
1945
- xs as L,
1946
- bt as N,
1947
- vt as a,
1948
- L as b,
1949
- bs as d,
1950
- Ae as e,
1951
- Ie as i,
1952
- Nt as n,
1953
- Tt as r,
1944
+ Es as L,
1945
+ wt as N,
1946
+ L as a,
1947
+ ws as d,
1948
+ He as i,
1949
+ Tt as n,
1950
+ bt as o,
1951
+ Ut as r,
1952
+ xe as s,
1954
1953
  F as x
1955
1954
  };