@triptease/tt-navbar 0.0.21 → 0.0.22

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.
package/dist/web/index.js CHANGED
@@ -1,12 +1,12 @@
1
1
  /**
2
- * @triptease/tt-navbar v0.0.21
2
+ * @triptease/tt-navbar v0.0.22
3
3
  */
4
4
  var __defProp = Object.defineProperty;
5
5
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
6
  var __decorateClass = (decorators, target, key, kind) => {
7
7
  var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
8
- for (var i6 = decorators.length - 1, decorator; i6 >= 0; i6--)
9
- if (decorator = decorators[i6])
8
+ for (var i7 = decorators.length - 1, decorator; i7 >= 0; i7--)
9
+ if (decorator = decorators[i7])
10
10
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
11
11
  if (kind && result) __defProp(target, key, result);
12
12
  return result;
@@ -18,44 +18,44 @@ var e = t.ShadowRoot && (void 0 === t.ShadyCSS || t.ShadyCSS.nativeShadow) && "a
18
18
  var s = Symbol();
19
19
  var o = /* @__PURE__ */ new WeakMap();
20
20
  var n = class {
21
- constructor(t5, e8, o8) {
22
- if (this._$cssResult$ = true, o8 !== s) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
23
- this.cssText = t5, this.t = e8;
21
+ constructor(t6, e10, o10) {
22
+ if (this._$cssResult$ = true, o10 !== s) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
23
+ this.cssText = t6, this.t = e10;
24
24
  }
25
25
  get styleSheet() {
26
- let t5 = this.o;
27
- const s4 = this.t;
28
- if (e && void 0 === t5) {
29
- const e8 = void 0 !== s4 && 1 === s4.length;
30
- e8 && (t5 = o.get(s4)), void 0 === t5 && ((this.o = t5 = new CSSStyleSheet()).replaceSync(this.cssText), e8 && o.set(s4, t5));
26
+ let t6 = this.o;
27
+ const s5 = this.t;
28
+ if (e && void 0 === t6) {
29
+ const e10 = void 0 !== s5 && 1 === s5.length;
30
+ e10 && (t6 = o.get(s5)), void 0 === t6 && ((this.o = t6 = new CSSStyleSheet()).replaceSync(this.cssText), e10 && o.set(s5, t6));
31
31
  }
32
- return t5;
32
+ return t6;
33
33
  }
34
34
  toString() {
35
35
  return this.cssText;
36
36
  }
37
37
  };
38
- var r = (t5) => new n("string" == typeof t5 ? t5 : t5 + "", void 0, s);
39
- var i = (t5, ...e8) => {
40
- const o8 = 1 === t5.length ? t5[0] : e8.reduce((e9, s4, o9) => e9 + ((t6) => {
41
- if (true === t6._$cssResult$) return t6.cssText;
42
- if ("number" == typeof t6) return t6;
43
- throw Error("Value passed to 'css' function must be a 'css' function result: " + t6 + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
44
- })(s4) + t5[o9 + 1], t5[0]);
45
- return new n(o8, t5, s);
38
+ var r = (t6) => new n("string" == typeof t6 ? t6 : t6 + "", void 0, s);
39
+ var i = (t6, ...e10) => {
40
+ const o10 = 1 === t6.length ? t6[0] : e10.reduce((e11, s5, o11) => e11 + ((t7) => {
41
+ if (true === t7._$cssResult$) return t7.cssText;
42
+ if ("number" == typeof t7) return t7;
43
+ throw Error("Value passed to 'css' function must be a 'css' function result: " + t7 + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
44
+ })(s5) + t6[o11 + 1], t6[0]);
45
+ return new n(o10, t6, s);
46
46
  };
47
- var S = (s4, o8) => {
48
- if (e) s4.adoptedStyleSheets = o8.map((t5) => t5 instanceof CSSStyleSheet ? t5 : t5.styleSheet);
49
- else for (const e8 of o8) {
50
- const o9 = document.createElement("style"), n5 = t.litNonce;
51
- void 0 !== n5 && o9.setAttribute("nonce", n5), o9.textContent = e8.cssText, s4.appendChild(o9);
47
+ var S = (s5, o10) => {
48
+ if (e) s5.adoptedStyleSheets = o10.map((t6) => t6 instanceof CSSStyleSheet ? t6 : t6.styleSheet);
49
+ else for (const e10 of o10) {
50
+ const o11 = document.createElement("style"), n5 = t.litNonce;
51
+ void 0 !== n5 && o11.setAttribute("nonce", n5), o11.textContent = e10.cssText, s5.appendChild(o11);
52
52
  }
53
53
  };
54
- var c = e ? (t5) => t5 : (t5) => t5 instanceof CSSStyleSheet ? ((t6) => {
55
- let e8 = "";
56
- for (const s4 of t6.cssRules) e8 += s4.cssText;
57
- return r(e8);
58
- })(t5) : t5;
54
+ var c = e ? (t6) => t6 : (t6) => t6 instanceof CSSStyleSheet ? ((t7) => {
55
+ let e10 = "";
56
+ for (const s5 of t7.cssRules) e10 += s5.cssText;
57
+ return r(e10);
58
+ })(t6) : t6;
59
59
 
60
60
  // ../../node_modules/@lit/reactive-element/reactive-element.js
61
61
  var { is: i2, defineProperty: e2, getOwnPropertyDescriptor: h, getOwnPropertyNames: r2, getOwnPropertySymbols: o2, getPrototypeOf: n2 } = Object;
@@ -63,167 +63,167 @@ var a = globalThis;
63
63
  var c2 = a.trustedTypes;
64
64
  var l = c2 ? c2.emptyScript : "";
65
65
  var p = a.reactiveElementPolyfillSupport;
66
- var d = (t5, s4) => t5;
67
- var u = { toAttribute(t5, s4) {
68
- switch (s4) {
66
+ var d = (t6, s5) => t6;
67
+ var u = { toAttribute(t6, s5) {
68
+ switch (s5) {
69
69
  case Boolean:
70
- t5 = t5 ? l : null;
70
+ t6 = t6 ? l : null;
71
71
  break;
72
72
  case Object:
73
73
  case Array:
74
- t5 = null == t5 ? t5 : JSON.stringify(t5);
74
+ t6 = null == t6 ? t6 : JSON.stringify(t6);
75
75
  }
76
- return t5;
77
- }, fromAttribute(t5, s4) {
78
- let i6 = t5;
79
- switch (s4) {
76
+ return t6;
77
+ }, fromAttribute(t6, s5) {
78
+ let i7 = t6;
79
+ switch (s5) {
80
80
  case Boolean:
81
- i6 = null !== t5;
81
+ i7 = null !== t6;
82
82
  break;
83
83
  case Number:
84
- i6 = null === t5 ? null : Number(t5);
84
+ i7 = null === t6 ? null : Number(t6);
85
85
  break;
86
86
  case Object:
87
87
  case Array:
88
88
  try {
89
- i6 = JSON.parse(t5);
90
- } catch (t6) {
91
- i6 = null;
89
+ i7 = JSON.parse(t6);
90
+ } catch (t7) {
91
+ i7 = null;
92
92
  }
93
93
  }
94
- return i6;
94
+ return i7;
95
95
  } };
96
- var f = (t5, s4) => !i2(t5, s4);
96
+ var f = (t6, s5) => !i2(t6, s5);
97
97
  var b = { attribute: true, type: String, converter: u, reflect: false, useDefault: false, hasChanged: f };
98
98
  Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), a.litPropertyMetadata ?? (a.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
99
99
  var y = class extends HTMLElement {
100
- static addInitializer(t5) {
101
- this._$Ei(), (this.l ?? (this.l = [])).push(t5);
100
+ static addInitializer(t6) {
101
+ this._$Ei(), (this.l ?? (this.l = [])).push(t6);
102
102
  }
103
103
  static get observedAttributes() {
104
104
  return this.finalize(), this._$Eh && [...this._$Eh.keys()];
105
105
  }
106
- static createProperty(t5, s4 = b) {
107
- if (s4.state && (s4.attribute = false), this._$Ei(), this.prototype.hasOwnProperty(t5) && ((s4 = Object.create(s4)).wrapped = true), this.elementProperties.set(t5, s4), !s4.noAccessor) {
108
- const i6 = Symbol(), h3 = this.getPropertyDescriptor(t5, i6, s4);
109
- void 0 !== h3 && e2(this.prototype, t5, h3);
106
+ static createProperty(t6, s5 = b) {
107
+ if (s5.state && (s5.attribute = false), this._$Ei(), this.prototype.hasOwnProperty(t6) && ((s5 = Object.create(s5)).wrapped = true), this.elementProperties.set(t6, s5), !s5.noAccessor) {
108
+ const i7 = Symbol(), h3 = this.getPropertyDescriptor(t6, i7, s5);
109
+ void 0 !== h3 && e2(this.prototype, t6, h3);
110
110
  }
111
111
  }
112
- static getPropertyDescriptor(t5, s4, i6) {
113
- const { get: e8, set: r7 } = h(this.prototype, t5) ?? { get() {
114
- return this[s4];
115
- }, set(t6) {
116
- this[s4] = t6;
112
+ static getPropertyDescriptor(t6, s5, i7) {
113
+ const { get: e10, set: r8 } = h(this.prototype, t6) ?? { get() {
114
+ return this[s5];
115
+ }, set(t7) {
116
+ this[s5] = t7;
117
117
  } };
118
- return { get: e8, set(s5) {
119
- const h3 = e8?.call(this);
120
- r7?.call(this, s5), this.requestUpdate(t5, h3, i6);
118
+ return { get: e10, set(s6) {
119
+ const h3 = e10?.call(this);
120
+ r8?.call(this, s6), this.requestUpdate(t6, h3, i7);
121
121
  }, configurable: true, enumerable: true };
122
122
  }
123
- static getPropertyOptions(t5) {
124
- return this.elementProperties.get(t5) ?? b;
123
+ static getPropertyOptions(t6) {
124
+ return this.elementProperties.get(t6) ?? b;
125
125
  }
126
126
  static _$Ei() {
127
127
  if (this.hasOwnProperty(d("elementProperties"))) return;
128
- const t5 = n2(this);
129
- t5.finalize(), void 0 !== t5.l && (this.l = [...t5.l]), this.elementProperties = new Map(t5.elementProperties);
128
+ const t6 = n2(this);
129
+ t6.finalize(), void 0 !== t6.l && (this.l = [...t6.l]), this.elementProperties = new Map(t6.elementProperties);
130
130
  }
131
131
  static finalize() {
132
132
  if (this.hasOwnProperty(d("finalized"))) return;
133
133
  if (this.finalized = true, this._$Ei(), this.hasOwnProperty(d("properties"))) {
134
- const t6 = this.properties, s4 = [...r2(t6), ...o2(t6)];
135
- for (const i6 of s4) this.createProperty(i6, t6[i6]);
134
+ const t7 = this.properties, s5 = [...r2(t7), ...o2(t7)];
135
+ for (const i7 of s5) this.createProperty(i7, t7[i7]);
136
136
  }
137
- const t5 = this[Symbol.metadata];
138
- if (null !== t5) {
139
- const s4 = litPropertyMetadata.get(t5);
140
- if (void 0 !== s4) for (const [t6, i6] of s4) this.elementProperties.set(t6, i6);
137
+ const t6 = this[Symbol.metadata];
138
+ if (null !== t6) {
139
+ const s5 = litPropertyMetadata.get(t6);
140
+ if (void 0 !== s5) for (const [t7, i7] of s5) this.elementProperties.set(t7, i7);
141
141
  }
142
142
  this._$Eh = /* @__PURE__ */ new Map();
143
- for (const [t6, s4] of this.elementProperties) {
144
- const i6 = this._$Eu(t6, s4);
145
- void 0 !== i6 && this._$Eh.set(i6, t6);
143
+ for (const [t7, s5] of this.elementProperties) {
144
+ const i7 = this._$Eu(t7, s5);
145
+ void 0 !== i7 && this._$Eh.set(i7, t7);
146
146
  }
147
147
  this.elementStyles = this.finalizeStyles(this.styles);
148
148
  }
149
- static finalizeStyles(s4) {
150
- const i6 = [];
151
- if (Array.isArray(s4)) {
152
- const e8 = new Set(s4.flat(1 / 0).reverse());
153
- for (const s5 of e8) i6.unshift(c(s5));
154
- } else void 0 !== s4 && i6.push(c(s4));
155
- return i6;
149
+ static finalizeStyles(s5) {
150
+ const i7 = [];
151
+ if (Array.isArray(s5)) {
152
+ const e10 = new Set(s5.flat(1 / 0).reverse());
153
+ for (const s6 of e10) i7.unshift(c(s6));
154
+ } else void 0 !== s5 && i7.push(c(s5));
155
+ return i7;
156
156
  }
157
- static _$Eu(t5, s4) {
158
- const i6 = s4.attribute;
159
- return false === i6 ? void 0 : "string" == typeof i6 ? i6 : "string" == typeof t5 ? t5.toLowerCase() : void 0;
157
+ static _$Eu(t6, s5) {
158
+ const i7 = s5.attribute;
159
+ return false === i7 ? void 0 : "string" == typeof i7 ? i7 : "string" == typeof t6 ? t6.toLowerCase() : void 0;
160
160
  }
161
161
  constructor() {
162
162
  super(), this._$Ep = void 0, this.isUpdatePending = false, this.hasUpdated = false, this._$Em = null, this._$Ev();
163
163
  }
164
164
  _$Ev() {
165
- this._$ES = new Promise((t5) => this.enableUpdating = t5), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), this.constructor.l?.forEach((t5) => t5(this));
165
+ this._$ES = new Promise((t6) => this.enableUpdating = t6), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), this.constructor.l?.forEach((t6) => t6(this));
166
166
  }
167
- addController(t5) {
168
- (this._$EO ?? (this._$EO = /* @__PURE__ */ new Set())).add(t5), void 0 !== this.renderRoot && this.isConnected && t5.hostConnected?.();
167
+ addController(t6) {
168
+ (this._$EO ?? (this._$EO = /* @__PURE__ */ new Set())).add(t6), void 0 !== this.renderRoot && this.isConnected && t6.hostConnected?.();
169
169
  }
170
- removeController(t5) {
171
- this._$EO?.delete(t5);
170
+ removeController(t6) {
171
+ this._$EO?.delete(t6);
172
172
  }
173
173
  _$E_() {
174
- const t5 = /* @__PURE__ */ new Map(), s4 = this.constructor.elementProperties;
175
- for (const i6 of s4.keys()) this.hasOwnProperty(i6) && (t5.set(i6, this[i6]), delete this[i6]);
176
- t5.size > 0 && (this._$Ep = t5);
174
+ const t6 = /* @__PURE__ */ new Map(), s5 = this.constructor.elementProperties;
175
+ for (const i7 of s5.keys()) this.hasOwnProperty(i7) && (t6.set(i7, this[i7]), delete this[i7]);
176
+ t6.size > 0 && (this._$Ep = t6);
177
177
  }
178
178
  createRenderRoot() {
179
- const t5 = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
180
- return S(t5, this.constructor.elementStyles), t5;
179
+ const t6 = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
180
+ return S(t6, this.constructor.elementStyles), t6;
181
181
  }
182
182
  connectedCallback() {
183
- this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(true), this._$EO?.forEach((t5) => t5.hostConnected?.());
183
+ this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(true), this._$EO?.forEach((t6) => t6.hostConnected?.());
184
184
  }
185
- enableUpdating(t5) {
185
+ enableUpdating(t6) {
186
186
  }
187
187
  disconnectedCallback() {
188
- this._$EO?.forEach((t5) => t5.hostDisconnected?.());
188
+ this._$EO?.forEach((t6) => t6.hostDisconnected?.());
189
189
  }
190
- attributeChangedCallback(t5, s4, i6) {
191
- this._$AK(t5, i6);
190
+ attributeChangedCallback(t6, s5, i7) {
191
+ this._$AK(t6, i7);
192
192
  }
193
- _$ET(t5, s4) {
194
- const i6 = this.constructor.elementProperties.get(t5), e8 = this.constructor._$Eu(t5, i6);
195
- if (void 0 !== e8 && true === i6.reflect) {
196
- const h3 = (void 0 !== i6.converter?.toAttribute ? i6.converter : u).toAttribute(s4, i6.type);
197
- this._$Em = t5, null == h3 ? this.removeAttribute(e8) : this.setAttribute(e8, h3), this._$Em = null;
193
+ _$ET(t6, s5) {
194
+ const i7 = this.constructor.elementProperties.get(t6), e10 = this.constructor._$Eu(t6, i7);
195
+ if (void 0 !== e10 && true === i7.reflect) {
196
+ const h3 = (void 0 !== i7.converter?.toAttribute ? i7.converter : u).toAttribute(s5, i7.type);
197
+ this._$Em = t6, null == h3 ? this.removeAttribute(e10) : this.setAttribute(e10, h3), this._$Em = null;
198
198
  }
199
199
  }
200
- _$AK(t5, s4) {
201
- const i6 = this.constructor, e8 = i6._$Eh.get(t5);
202
- if (void 0 !== e8 && this._$Em !== e8) {
203
- const t6 = i6.getPropertyOptions(e8), h3 = "function" == typeof t6.converter ? { fromAttribute: t6.converter } : void 0 !== t6.converter?.fromAttribute ? t6.converter : u;
204
- this._$Em = e8, this[e8] = h3.fromAttribute(s4, t6.type) ?? this._$Ej?.get(e8) ?? null, this._$Em = null;
200
+ _$AK(t6, s5) {
201
+ const i7 = this.constructor, e10 = i7._$Eh.get(t6);
202
+ if (void 0 !== e10 && this._$Em !== e10) {
203
+ const t7 = i7.getPropertyOptions(e10), h3 = "function" == typeof t7.converter ? { fromAttribute: t7.converter } : void 0 !== t7.converter?.fromAttribute ? t7.converter : u;
204
+ this._$Em = e10, this[e10] = h3.fromAttribute(s5, t7.type) ?? this._$Ej?.get(e10) ?? null, this._$Em = null;
205
205
  }
206
206
  }
207
- requestUpdate(t5, s4, i6) {
208
- if (void 0 !== t5) {
209
- const e8 = this.constructor, h3 = this[t5];
210
- if (i6 ?? (i6 = e8.getPropertyOptions(t5)), !((i6.hasChanged ?? f)(h3, s4) || i6.useDefault && i6.reflect && h3 === this._$Ej?.get(t5) && !this.hasAttribute(e8._$Eu(t5, i6)))) return;
211
- this.C(t5, s4, i6);
207
+ requestUpdate(t6, s5, i7) {
208
+ if (void 0 !== t6) {
209
+ const e10 = this.constructor, h3 = this[t6];
210
+ if (i7 ?? (i7 = e10.getPropertyOptions(t6)), !((i7.hasChanged ?? f)(h3, s5) || i7.useDefault && i7.reflect && h3 === this._$Ej?.get(t6) && !this.hasAttribute(e10._$Eu(t6, i7)))) return;
211
+ this.C(t6, s5, i7);
212
212
  }
213
213
  false === this.isUpdatePending && (this._$ES = this._$EP());
214
214
  }
215
- C(t5, s4, { useDefault: i6, reflect: e8, wrapped: h3 }, r7) {
216
- i6 && !(this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Map())).has(t5) && (this._$Ej.set(t5, r7 ?? s4 ?? this[t5]), true !== h3 || void 0 !== r7) || (this._$AL.has(t5) || (this.hasUpdated || i6 || (s4 = void 0), this._$AL.set(t5, s4)), true === e8 && this._$Em !== t5 && (this._$Eq ?? (this._$Eq = /* @__PURE__ */ new Set())).add(t5));
215
+ C(t6, s5, { useDefault: i7, reflect: e10, wrapped: h3 }, r8) {
216
+ i7 && !(this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Map())).has(t6) && (this._$Ej.set(t6, r8 ?? s5 ?? this[t6]), true !== h3 || void 0 !== r8) || (this._$AL.has(t6) || (this.hasUpdated || i7 || (s5 = void 0), this._$AL.set(t6, s5)), true === e10 && this._$Em !== t6 && (this._$Eq ?? (this._$Eq = /* @__PURE__ */ new Set())).add(t6));
217
217
  }
218
218
  async _$EP() {
219
219
  this.isUpdatePending = true;
220
220
  try {
221
221
  await this._$ES;
222
- } catch (t6) {
223
- Promise.reject(t6);
222
+ } catch (t7) {
223
+ Promise.reject(t7);
224
224
  }
225
- const t5 = this.scheduleUpdate();
226
- return null != t5 && await t5, !this.isUpdatePending;
225
+ const t6 = this.scheduleUpdate();
226
+ return null != t6 && await t6, !this.isUpdatePending;
227
227
  }
228
228
  scheduleUpdate() {
229
229
  return this.performUpdate();
@@ -232,28 +232,28 @@ var y = class extends HTMLElement {
232
232
  if (!this.isUpdatePending) return;
233
233
  if (!this.hasUpdated) {
234
234
  if (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this._$Ep) {
235
- for (const [t7, s5] of this._$Ep) this[t7] = s5;
235
+ for (const [t8, s6] of this._$Ep) this[t8] = s6;
236
236
  this._$Ep = void 0;
237
237
  }
238
- const t6 = this.constructor.elementProperties;
239
- if (t6.size > 0) for (const [s5, i6] of t6) {
240
- const { wrapped: t7 } = i6, e8 = this[s5];
241
- true !== t7 || this._$AL.has(s5) || void 0 === e8 || this.C(s5, void 0, i6, e8);
238
+ const t7 = this.constructor.elementProperties;
239
+ if (t7.size > 0) for (const [s6, i7] of t7) {
240
+ const { wrapped: t8 } = i7, e10 = this[s6];
241
+ true !== t8 || this._$AL.has(s6) || void 0 === e10 || this.C(s6, void 0, i7, e10);
242
242
  }
243
243
  }
244
- let t5 = false;
245
- const s4 = this._$AL;
244
+ let t6 = false;
245
+ const s5 = this._$AL;
246
246
  try {
247
- t5 = this.shouldUpdate(s4), t5 ? (this.willUpdate(s4), this._$EO?.forEach((t6) => t6.hostUpdate?.()), this.update(s4)) : this._$EM();
248
- } catch (s5) {
249
- throw t5 = false, this._$EM(), s5;
247
+ t6 = this.shouldUpdate(s5), t6 ? (this.willUpdate(s5), this._$EO?.forEach((t7) => t7.hostUpdate?.()), this.update(s5)) : this._$EM();
248
+ } catch (s6) {
249
+ throw t6 = false, this._$EM(), s6;
250
250
  }
251
- t5 && this._$AE(s4);
251
+ t6 && this._$AE(s5);
252
252
  }
253
- willUpdate(t5) {
253
+ willUpdate(t6) {
254
254
  }
255
- _$AE(t5) {
256
- this._$EO?.forEach((t6) => t6.hostUpdated?.()), this.hasUpdated || (this.hasUpdated = true, this.firstUpdated(t5)), this.updated(t5);
255
+ _$AE(t6) {
256
+ this._$EO?.forEach((t7) => t7.hostUpdated?.()), this.hasUpdated || (this.hasUpdated = true, this.firstUpdated(t6)), this.updated(t6);
257
257
  }
258
258
  _$EM() {
259
259
  this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = false;
@@ -264,15 +264,15 @@ var y = class extends HTMLElement {
264
264
  getUpdateComplete() {
265
265
  return this._$ES;
266
266
  }
267
- shouldUpdate(t5) {
267
+ shouldUpdate(t6) {
268
268
  return true;
269
269
  }
270
- update(t5) {
271
- this._$Eq && (this._$Eq = this._$Eq.forEach((t6) => this._$ET(t6, this[t6]))), this._$EM();
270
+ update(t6) {
271
+ this._$Eq && (this._$Eq = this._$Eq.forEach((t7) => this._$ET(t7, this[t7]))), this._$EM();
272
272
  }
273
- updated(t5) {
273
+ updated(t6) {
274
274
  }
275
- firstUpdated(t5) {
275
+ firstUpdated(t6) {
276
276
  }
277
277
  };
278
278
  y.elementStyles = [], y.shadowRootOptions = { mode: "open" }, y[d("elementProperties")] = /* @__PURE__ */ new Map(), y[d("finalized")] = /* @__PURE__ */ new Map(), p?.({ ReactiveElement: y }), (a.reactiveElementVersions ?? (a.reactiveElementVersions = [])).push("2.1.0");
@@ -280,16 +280,16 @@ y.elementStyles = [], y.shadowRootOptions = { mode: "open" }, y[d("elementProper
280
280
  // ../../node_modules/lit-html/lit-html.js
281
281
  var t2 = globalThis;
282
282
  var i3 = t2.trustedTypes;
283
- var s2 = i3 ? i3.createPolicy("lit-html", { createHTML: (t5) => t5 }) : void 0;
283
+ var s2 = i3 ? i3.createPolicy("lit-html", { createHTML: (t6) => t6 }) : void 0;
284
284
  var e3 = "$lit$";
285
285
  var h2 = `lit$${Math.random().toFixed(9).slice(2)}$`;
286
286
  var o3 = "?" + h2;
287
287
  var n3 = `<${o3}>`;
288
288
  var r3 = document;
289
289
  var l2 = () => r3.createComment("");
290
- var c3 = (t5) => null === t5 || "object" != typeof t5 && "function" != typeof t5;
290
+ var c3 = (t6) => null === t6 || "object" != typeof t6 && "function" != typeof t6;
291
291
  var a2 = Array.isArray;
292
- var u2 = (t5) => a2(t5) || "function" == typeof t5?.[Symbol.iterator];
292
+ var u2 = (t6) => a2(t6) || "function" == typeof t6?.[Symbol.iterator];
293
293
  var d2 = "[ \n\f\r]";
294
294
  var f2 = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g;
295
295
  var v = /-->/g;
@@ -299,7 +299,7 @@ var m = RegExp(`>|${d2}(?:([^\\s"'>=/]+)(${d2}*=${d2}*(?:[^
299
299
  var p2 = /'/g;
300
300
  var g = /"/g;
301
301
  var $ = /^(?:script|style|textarea|title)$/i;
302
- var y2 = (t5) => (i6, ...s4) => ({ _$litType$: t5, strings: i6, values: s4 });
302
+ var y2 = (t6) => (i7, ...s5) => ({ _$litType$: t6, strings: i7, values: s5 });
303
303
  var x = y2(1);
304
304
  var b2 = y2(2);
305
305
  var w = y2(3);
@@ -307,68 +307,68 @@ var T = Symbol.for("lit-noChange");
307
307
  var E = Symbol.for("lit-nothing");
308
308
  var A = /* @__PURE__ */ new WeakMap();
309
309
  var C = r3.createTreeWalker(r3, 129);
310
- function P(t5, i6) {
311
- if (!a2(t5) || !t5.hasOwnProperty("raw")) throw Error("invalid template strings array");
312
- return void 0 !== s2 ? s2.createHTML(i6) : i6;
310
+ function P(t6, i7) {
311
+ if (!a2(t6) || !t6.hasOwnProperty("raw")) throw Error("invalid template strings array");
312
+ return void 0 !== s2 ? s2.createHTML(i7) : i7;
313
313
  }
314
- var V = (t5, i6) => {
315
- const s4 = t5.length - 1, o8 = [];
316
- let r7, l3 = 2 === i6 ? "<svg>" : 3 === i6 ? "<math>" : "", c4 = f2;
317
- for (let i7 = 0; i7 < s4; i7++) {
318
- const s5 = t5[i7];
319
- let a3, u3, d3 = -1, y3 = 0;
320
- for (; y3 < s5.length && (c4.lastIndex = y3, u3 = c4.exec(s5), null !== u3); ) y3 = c4.lastIndex, c4 === f2 ? "!--" === u3[1] ? c4 = v : void 0 !== u3[1] ? c4 = _ : void 0 !== u3[2] ? ($.test(u3[2]) && (r7 = RegExp("</" + u3[2], "g")), c4 = m) : void 0 !== u3[3] && (c4 = m) : c4 === m ? ">" === u3[0] ? (c4 = r7 ?? f2, d3 = -1) : void 0 === u3[1] ? d3 = -2 : (d3 = c4.lastIndex - u3[2].length, a3 = u3[1], c4 = void 0 === u3[3] ? m : '"' === u3[3] ? g : p2) : c4 === g || c4 === p2 ? c4 = m : c4 === v || c4 === _ ? c4 = f2 : (c4 = m, r7 = void 0);
321
- const x2 = c4 === m && t5[i7 + 1].startsWith("/>") ? " " : "";
322
- l3 += c4 === f2 ? s5 + n3 : d3 >= 0 ? (o8.push(a3), s5.slice(0, d3) + e3 + s5.slice(d3) + h2 + x2) : s5 + h2 + (-2 === d3 ? i7 : x2);
323
- }
324
- return [P(t5, l3 + (t5[s4] || "<?>") + (2 === i6 ? "</svg>" : 3 === i6 ? "</math>" : "")), o8];
314
+ var V = (t6, i7) => {
315
+ const s5 = t6.length - 1, o10 = [];
316
+ let r8, l3 = 2 === i7 ? "<svg>" : 3 === i7 ? "<math>" : "", c5 = f2;
317
+ for (let i8 = 0; i8 < s5; i8++) {
318
+ const s6 = t6[i8];
319
+ let a3, u5, d3 = -1, y3 = 0;
320
+ for (; y3 < s6.length && (c5.lastIndex = y3, u5 = c5.exec(s6), null !== u5); ) y3 = c5.lastIndex, c5 === f2 ? "!--" === u5[1] ? c5 = v : void 0 !== u5[1] ? c5 = _ : void 0 !== u5[2] ? ($.test(u5[2]) && (r8 = RegExp("</" + u5[2], "g")), c5 = m) : void 0 !== u5[3] && (c5 = m) : c5 === m ? ">" === u5[0] ? (c5 = r8 ?? f2, d3 = -1) : void 0 === u5[1] ? d3 = -2 : (d3 = c5.lastIndex - u5[2].length, a3 = u5[1], c5 = void 0 === u5[3] ? m : '"' === u5[3] ? g : p2) : c5 === g || c5 === p2 ? c5 = m : c5 === v || c5 === _ ? c5 = f2 : (c5 = m, r8 = void 0);
321
+ const x2 = c5 === m && t6[i8 + 1].startsWith("/>") ? " " : "";
322
+ l3 += c5 === f2 ? s6 + n3 : d3 >= 0 ? (o10.push(a3), s6.slice(0, d3) + e3 + s6.slice(d3) + h2 + x2) : s6 + h2 + (-2 === d3 ? i8 : x2);
323
+ }
324
+ return [P(t6, l3 + (t6[s5] || "<?>") + (2 === i7 ? "</svg>" : 3 === i7 ? "</math>" : "")), o10];
325
325
  };
326
326
  var N = class _N {
327
- constructor({ strings: t5, _$litType$: s4 }, n5) {
328
- let r7;
327
+ constructor({ strings: t6, _$litType$: s5 }, n5) {
328
+ let r8;
329
329
  this.parts = [];
330
- let c4 = 0, a3 = 0;
331
- const u3 = t5.length - 1, d3 = this.parts, [f3, v2] = V(t5, s4);
332
- if (this.el = _N.createElement(f3, n5), C.currentNode = this.el.content, 2 === s4 || 3 === s4) {
333
- const t6 = this.el.content.firstChild;
334
- t6.replaceWith(...t6.childNodes);
330
+ let c5 = 0, a3 = 0;
331
+ const u5 = t6.length - 1, d3 = this.parts, [f3, v3] = V(t6, s5);
332
+ if (this.el = _N.createElement(f3, n5), C.currentNode = this.el.content, 2 === s5 || 3 === s5) {
333
+ const t7 = this.el.content.firstChild;
334
+ t7.replaceWith(...t7.childNodes);
335
335
  }
336
- for (; null !== (r7 = C.nextNode()) && d3.length < u3; ) {
337
- if (1 === r7.nodeType) {
338
- if (r7.hasAttributes()) for (const t6 of r7.getAttributeNames()) if (t6.endsWith(e3)) {
339
- const i6 = v2[a3++], s5 = r7.getAttribute(t6).split(h2), e8 = /([.?@])?(.*)/.exec(i6);
340
- d3.push({ type: 1, index: c4, name: e8[2], strings: s5, ctor: "." === e8[1] ? H : "?" === e8[1] ? I : "@" === e8[1] ? L : k }), r7.removeAttribute(t6);
341
- } else t6.startsWith(h2) && (d3.push({ type: 6, index: c4 }), r7.removeAttribute(t6));
342
- if ($.test(r7.tagName)) {
343
- const t6 = r7.textContent.split(h2), s5 = t6.length - 1;
344
- if (s5 > 0) {
345
- r7.textContent = i3 ? i3.emptyScript : "";
346
- for (let i6 = 0; i6 < s5; i6++) r7.append(t6[i6], l2()), C.nextNode(), d3.push({ type: 2, index: ++c4 });
347
- r7.append(t6[s5], l2());
336
+ for (; null !== (r8 = C.nextNode()) && d3.length < u5; ) {
337
+ if (1 === r8.nodeType) {
338
+ if (r8.hasAttributes()) for (const t7 of r8.getAttributeNames()) if (t7.endsWith(e3)) {
339
+ const i7 = v3[a3++], s6 = r8.getAttribute(t7).split(h2), e10 = /([.?@])?(.*)/.exec(i7);
340
+ d3.push({ type: 1, index: c5, name: e10[2], strings: s6, ctor: "." === e10[1] ? H : "?" === e10[1] ? I : "@" === e10[1] ? L : k }), r8.removeAttribute(t7);
341
+ } else t7.startsWith(h2) && (d3.push({ type: 6, index: c5 }), r8.removeAttribute(t7));
342
+ if ($.test(r8.tagName)) {
343
+ const t7 = r8.textContent.split(h2), s6 = t7.length - 1;
344
+ if (s6 > 0) {
345
+ r8.textContent = i3 ? i3.emptyScript : "";
346
+ for (let i7 = 0; i7 < s6; i7++) r8.append(t7[i7], l2()), C.nextNode(), d3.push({ type: 2, index: ++c5 });
347
+ r8.append(t7[s6], l2());
348
348
  }
349
349
  }
350
- } else if (8 === r7.nodeType) if (r7.data === o3) d3.push({ type: 2, index: c4 });
350
+ } else if (8 === r8.nodeType) if (r8.data === o3) d3.push({ type: 2, index: c5 });
351
351
  else {
352
- let t6 = -1;
353
- for (; -1 !== (t6 = r7.data.indexOf(h2, t6 + 1)); ) d3.push({ type: 7, index: c4 }), t6 += h2.length - 1;
352
+ let t7 = -1;
353
+ for (; -1 !== (t7 = r8.data.indexOf(h2, t7 + 1)); ) d3.push({ type: 7, index: c5 }), t7 += h2.length - 1;
354
354
  }
355
- c4++;
355
+ c5++;
356
356
  }
357
357
  }
358
- static createElement(t5, i6) {
359
- const s4 = r3.createElement("template");
360
- return s4.innerHTML = t5, s4;
358
+ static createElement(t6, i7) {
359
+ const s5 = r3.createElement("template");
360
+ return s5.innerHTML = t6, s5;
361
361
  }
362
362
  };
363
- function S2(t5, i6, s4 = t5, e8) {
364
- if (i6 === T) return i6;
365
- let h3 = void 0 !== e8 ? s4._$Co?.[e8] : s4._$Cl;
366
- const o8 = c3(i6) ? void 0 : i6._$litDirective$;
367
- return h3?.constructor !== o8 && (h3?._$AO?.(false), void 0 === o8 ? h3 = void 0 : (h3 = new o8(t5), h3._$AT(t5, s4, e8)), void 0 !== e8 ? (s4._$Co ?? (s4._$Co = []))[e8] = h3 : s4._$Cl = h3), void 0 !== h3 && (i6 = S2(t5, h3._$AS(t5, i6.values), h3, e8)), i6;
363
+ function S2(t6, i7, s5 = t6, e10) {
364
+ if (i7 === T) return i7;
365
+ let h3 = void 0 !== e10 ? s5._$Co?.[e10] : s5._$Cl;
366
+ const o10 = c3(i7) ? void 0 : i7._$litDirective$;
367
+ return h3?.constructor !== o10 && (h3?._$AO?.(false), void 0 === o10 ? h3 = void 0 : (h3 = new o10(t6), h3._$AT(t6, s5, e10)), void 0 !== e10 ? (s5._$Co ?? (s5._$Co = []))[e10] = h3 : s5._$Cl = h3), void 0 !== h3 && (i7 = S2(t6, h3._$AS(t6, i7.values), h3, e10)), i7;
368
368
  }
369
369
  var M = class {
370
- constructor(t5, i6) {
371
- this._$AV = [], this._$AN = void 0, this._$AD = t5, this._$AM = i6;
370
+ constructor(t6, i7) {
371
+ this._$AV = [], this._$AN = void 0, this._$AD = t6, this._$AM = i7;
372
372
  }
373
373
  get parentNode() {
374
374
  return this._$AM.parentNode;
@@ -376,35 +376,35 @@ var M = class {
376
376
  get _$AU() {
377
377
  return this._$AM._$AU;
378
378
  }
379
- u(t5) {
380
- const { el: { content: i6 }, parts: s4 } = this._$AD, e8 = (t5?.creationScope ?? r3).importNode(i6, true);
381
- C.currentNode = e8;
382
- let h3 = C.nextNode(), o8 = 0, n5 = 0, l3 = s4[0];
379
+ u(t6) {
380
+ const { el: { content: i7 }, parts: s5 } = this._$AD, e10 = (t6?.creationScope ?? r3).importNode(i7, true);
381
+ C.currentNode = e10;
382
+ let h3 = C.nextNode(), o10 = 0, n5 = 0, l3 = s5[0];
383
383
  for (; void 0 !== l3; ) {
384
- if (o8 === l3.index) {
385
- let i7;
386
- 2 === l3.type ? i7 = new R(h3, h3.nextSibling, this, t5) : 1 === l3.type ? i7 = new l3.ctor(h3, l3.name, l3.strings, this, t5) : 6 === l3.type && (i7 = new z(h3, this, t5)), this._$AV.push(i7), l3 = s4[++n5];
384
+ if (o10 === l3.index) {
385
+ let i8;
386
+ 2 === l3.type ? i8 = new R(h3, h3.nextSibling, this, t6) : 1 === l3.type ? i8 = new l3.ctor(h3, l3.name, l3.strings, this, t6) : 6 === l3.type && (i8 = new z(h3, this, t6)), this._$AV.push(i8), l3 = s5[++n5];
387
387
  }
388
- o8 !== l3?.index && (h3 = C.nextNode(), o8++);
388
+ o10 !== l3?.index && (h3 = C.nextNode(), o10++);
389
389
  }
390
- return C.currentNode = r3, e8;
390
+ return C.currentNode = r3, e10;
391
391
  }
392
- p(t5) {
393
- let i6 = 0;
394
- for (const s4 of this._$AV) void 0 !== s4 && (void 0 !== s4.strings ? (s4._$AI(t5, s4, i6), i6 += s4.strings.length - 2) : s4._$AI(t5[i6])), i6++;
392
+ p(t6) {
393
+ let i7 = 0;
394
+ for (const s5 of this._$AV) void 0 !== s5 && (void 0 !== s5.strings ? (s5._$AI(t6, s5, i7), i7 += s5.strings.length - 2) : s5._$AI(t6[i7])), i7++;
395
395
  }
396
396
  };
397
397
  var R = class _R {
398
398
  get _$AU() {
399
399
  return this._$AM?._$AU ?? this._$Cv;
400
400
  }
401
- constructor(t5, i6, s4, e8) {
402
- this.type = 2, this._$AH = E, this._$AN = void 0, this._$AA = t5, this._$AB = i6, this._$AM = s4, this.options = e8, this._$Cv = e8?.isConnected ?? true;
401
+ constructor(t6, i7, s5, e10) {
402
+ this.type = 2, this._$AH = E, this._$AN = void 0, this._$AA = t6, this._$AB = i7, this._$AM = s5, this.options = e10, this._$Cv = e10?.isConnected ?? true;
403
403
  }
404
404
  get parentNode() {
405
- let t5 = this._$AA.parentNode;
406
- const i6 = this._$AM;
407
- return void 0 !== i6 && 11 === t5?.nodeType && (t5 = i6.parentNode), t5;
405
+ let t6 = this._$AA.parentNode;
406
+ const i7 = this._$AM;
407
+ return void 0 !== i7 && 11 === t6?.nodeType && (t6 = i7.parentNode), t6;
408
408
  }
409
409
  get startNode() {
410
410
  return this._$AA;
@@ -412,45 +412,45 @@ var R = class _R {
412
412
  get endNode() {
413
413
  return this._$AB;
414
414
  }
415
- _$AI(t5, i6 = this) {
416
- t5 = S2(this, t5, i6), c3(t5) ? t5 === E || null == t5 || "" === t5 ? (this._$AH !== E && this._$AR(), this._$AH = E) : t5 !== this._$AH && t5 !== T && this._(t5) : void 0 !== t5._$litType$ ? this.$(t5) : void 0 !== t5.nodeType ? this.T(t5) : u2(t5) ? this.k(t5) : this._(t5);
415
+ _$AI(t6, i7 = this) {
416
+ t6 = S2(this, t6, i7), c3(t6) ? t6 === E || null == t6 || "" === t6 ? (this._$AH !== E && this._$AR(), this._$AH = E) : t6 !== this._$AH && t6 !== T && this._(t6) : void 0 !== t6._$litType$ ? this.$(t6) : void 0 !== t6.nodeType ? this.T(t6) : u2(t6) ? this.k(t6) : this._(t6);
417
417
  }
418
- O(t5) {
419
- return this._$AA.parentNode.insertBefore(t5, this._$AB);
418
+ O(t6) {
419
+ return this._$AA.parentNode.insertBefore(t6, this._$AB);
420
420
  }
421
- T(t5) {
422
- this._$AH !== t5 && (this._$AR(), this._$AH = this.O(t5));
421
+ T(t6) {
422
+ this._$AH !== t6 && (this._$AR(), this._$AH = this.O(t6));
423
423
  }
424
- _(t5) {
425
- this._$AH !== E && c3(this._$AH) ? this._$AA.nextSibling.data = t5 : this.T(r3.createTextNode(t5)), this._$AH = t5;
424
+ _(t6) {
425
+ this._$AH !== E && c3(this._$AH) ? this._$AA.nextSibling.data = t6 : this.T(r3.createTextNode(t6)), this._$AH = t6;
426
426
  }
427
- $(t5) {
428
- const { values: i6, _$litType$: s4 } = t5, e8 = "number" == typeof s4 ? this._$AC(t5) : (void 0 === s4.el && (s4.el = N.createElement(P(s4.h, s4.h[0]), this.options)), s4);
429
- if (this._$AH?._$AD === e8) this._$AH.p(i6);
427
+ $(t6) {
428
+ const { values: i7, _$litType$: s5 } = t6, e10 = "number" == typeof s5 ? this._$AC(t6) : (void 0 === s5.el && (s5.el = N.createElement(P(s5.h, s5.h[0]), this.options)), s5);
429
+ if (this._$AH?._$AD === e10) this._$AH.p(i7);
430
430
  else {
431
- const t6 = new M(e8, this), s5 = t6.u(this.options);
432
- t6.p(i6), this.T(s5), this._$AH = t6;
431
+ const t7 = new M(e10, this), s6 = t7.u(this.options);
432
+ t7.p(i7), this.T(s6), this._$AH = t7;
433
433
  }
434
434
  }
435
- _$AC(t5) {
436
- let i6 = A.get(t5.strings);
437
- return void 0 === i6 && A.set(t5.strings, i6 = new N(t5)), i6;
435
+ _$AC(t6) {
436
+ let i7 = A.get(t6.strings);
437
+ return void 0 === i7 && A.set(t6.strings, i7 = new N(t6)), i7;
438
438
  }
439
- k(t5) {
439
+ k(t6) {
440
440
  a2(this._$AH) || (this._$AH = [], this._$AR());
441
- const i6 = this._$AH;
442
- let s4, e8 = 0;
443
- for (const h3 of t5) e8 === i6.length ? i6.push(s4 = new _R(this.O(l2()), this.O(l2()), this, this.options)) : s4 = i6[e8], s4._$AI(h3), e8++;
444
- e8 < i6.length && (this._$AR(s4 && s4._$AB.nextSibling, e8), i6.length = e8);
445
- }
446
- _$AR(t5 = this._$AA.nextSibling, i6) {
447
- for (this._$AP?.(false, true, i6); t5 && t5 !== this._$AB; ) {
448
- const i7 = t5.nextSibling;
449
- t5.remove(), t5 = i7;
441
+ const i7 = this._$AH;
442
+ let s5, e10 = 0;
443
+ for (const h3 of t6) e10 === i7.length ? i7.push(s5 = new _R(this.O(l2()), this.O(l2()), this, this.options)) : s5 = i7[e10], s5._$AI(h3), e10++;
444
+ e10 < i7.length && (this._$AR(s5 && s5._$AB.nextSibling, e10), i7.length = e10);
445
+ }
446
+ _$AR(t6 = this._$AA.nextSibling, i7) {
447
+ for (this._$AP?.(false, true, i7); t6 && t6 !== this._$AB; ) {
448
+ const i8 = t6.nextSibling;
449
+ t6.remove(), t6 = i8;
450
450
  }
451
451
  }
452
- setConnected(t5) {
453
- void 0 === this._$AM && (this._$Cv = t5, this._$AP?.(t5));
452
+ setConnected(t6) {
453
+ void 0 === this._$AM && (this._$Cv = t6, this._$AP?.(t6));
454
454
  }
455
455
  };
456
456
  var k = class {
@@ -460,74 +460,75 @@ var k = class {
460
460
  get _$AU() {
461
461
  return this._$AM._$AU;
462
462
  }
463
- constructor(t5, i6, s4, e8, h3) {
464
- this.type = 1, this._$AH = E, this._$AN = void 0, this.element = t5, this.name = i6, this._$AM = e8, this.options = h3, s4.length > 2 || "" !== s4[0] || "" !== s4[1] ? (this._$AH = Array(s4.length - 1).fill(new String()), this.strings = s4) : this._$AH = E;
463
+ constructor(t6, i7, s5, e10, h3) {
464
+ this.type = 1, this._$AH = E, this._$AN = void 0, this.element = t6, this.name = i7, this._$AM = e10, this.options = h3, s5.length > 2 || "" !== s5[0] || "" !== s5[1] ? (this._$AH = Array(s5.length - 1).fill(new String()), this.strings = s5) : this._$AH = E;
465
465
  }
466
- _$AI(t5, i6 = this, s4, e8) {
466
+ _$AI(t6, i7 = this, s5, e10) {
467
467
  const h3 = this.strings;
468
- let o8 = false;
469
- if (void 0 === h3) t5 = S2(this, t5, i6, 0), o8 = !c3(t5) || t5 !== this._$AH && t5 !== T, o8 && (this._$AH = t5);
468
+ let o10 = false;
469
+ if (void 0 === h3) t6 = S2(this, t6, i7, 0), o10 = !c3(t6) || t6 !== this._$AH && t6 !== T, o10 && (this._$AH = t6);
470
470
  else {
471
- const e9 = t5;
472
- let n5, r7;
473
- for (t5 = h3[0], n5 = 0; n5 < h3.length - 1; n5++) r7 = S2(this, e9[s4 + n5], i6, n5), r7 === T && (r7 = this._$AH[n5]), o8 || (o8 = !c3(r7) || r7 !== this._$AH[n5]), r7 === E ? t5 = E : t5 !== E && (t5 += (r7 ?? "") + h3[n5 + 1]), this._$AH[n5] = r7;
471
+ const e11 = t6;
472
+ let n5, r8;
473
+ for (t6 = h3[0], n5 = 0; n5 < h3.length - 1; n5++) r8 = S2(this, e11[s5 + n5], i7, n5), r8 === T && (r8 = this._$AH[n5]), o10 || (o10 = !c3(r8) || r8 !== this._$AH[n5]), r8 === E ? t6 = E : t6 !== E && (t6 += (r8 ?? "") + h3[n5 + 1]), this._$AH[n5] = r8;
474
474
  }
475
- o8 && !e8 && this.j(t5);
475
+ o10 && !e10 && this.j(t6);
476
476
  }
477
- j(t5) {
478
- t5 === E ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t5 ?? "");
477
+ j(t6) {
478
+ t6 === E ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t6 ?? "");
479
479
  }
480
480
  };
481
481
  var H = class extends k {
482
482
  constructor() {
483
483
  super(...arguments), this.type = 3;
484
484
  }
485
- j(t5) {
486
- this.element[this.name] = t5 === E ? void 0 : t5;
485
+ j(t6) {
486
+ this.element[this.name] = t6 === E ? void 0 : t6;
487
487
  }
488
488
  };
489
489
  var I = class extends k {
490
490
  constructor() {
491
491
  super(...arguments), this.type = 4;
492
492
  }
493
- j(t5) {
494
- this.element.toggleAttribute(this.name, !!t5 && t5 !== E);
493
+ j(t6) {
494
+ this.element.toggleAttribute(this.name, !!t6 && t6 !== E);
495
495
  }
496
496
  };
497
497
  var L = class extends k {
498
- constructor(t5, i6, s4, e8, h3) {
499
- super(t5, i6, s4, e8, h3), this.type = 5;
498
+ constructor(t6, i7, s5, e10, h3) {
499
+ super(t6, i7, s5, e10, h3), this.type = 5;
500
500
  }
501
- _$AI(t5, i6 = this) {
502
- if ((t5 = S2(this, t5, i6, 0) ?? E) === T) return;
503
- const s4 = this._$AH, e8 = t5 === E && s4 !== E || t5.capture !== s4.capture || t5.once !== s4.once || t5.passive !== s4.passive, h3 = t5 !== E && (s4 === E || e8);
504
- e8 && this.element.removeEventListener(this.name, this, s4), h3 && this.element.addEventListener(this.name, this, t5), this._$AH = t5;
501
+ _$AI(t6, i7 = this) {
502
+ if ((t6 = S2(this, t6, i7, 0) ?? E) === T) return;
503
+ const s5 = this._$AH, e10 = t6 === E && s5 !== E || t6.capture !== s5.capture || t6.once !== s5.once || t6.passive !== s5.passive, h3 = t6 !== E && (s5 === E || e10);
504
+ e10 && this.element.removeEventListener(this.name, this, s5), h3 && this.element.addEventListener(this.name, this, t6), this._$AH = t6;
505
505
  }
506
- handleEvent(t5) {
507
- "function" == typeof this._$AH ? this._$AH.call(this.options?.host ?? this.element, t5) : this._$AH.handleEvent(t5);
506
+ handleEvent(t6) {
507
+ "function" == typeof this._$AH ? this._$AH.call(this.options?.host ?? this.element, t6) : this._$AH.handleEvent(t6);
508
508
  }
509
509
  };
510
510
  var z = class {
511
- constructor(t5, i6, s4) {
512
- this.element = t5, this.type = 6, this._$AN = void 0, this._$AM = i6, this.options = s4;
511
+ constructor(t6, i7, s5) {
512
+ this.element = t6, this.type = 6, this._$AN = void 0, this._$AM = i7, this.options = s5;
513
513
  }
514
514
  get _$AU() {
515
515
  return this._$AM._$AU;
516
516
  }
517
- _$AI(t5) {
518
- S2(this, t5);
517
+ _$AI(t6) {
518
+ S2(this, t6);
519
519
  }
520
520
  };
521
+ var Z = { M: e3, P: h2, A: o3, C: 1, L: V, R: M, D: u2, V: S2, I: R, H: k, N: I, U: L, B: H, F: z };
521
522
  var j = t2.litHtmlPolyfillSupport;
522
523
  j?.(N, R), (t2.litHtmlVersions ?? (t2.litHtmlVersions = [])).push("3.3.0");
523
- var B = (t5, i6, s4) => {
524
- const e8 = s4?.renderBefore ?? i6;
525
- let h3 = e8._$litPart$;
524
+ var B = (t6, i7, s5) => {
525
+ const e10 = s5?.renderBefore ?? i7;
526
+ let h3 = e10._$litPart$;
526
527
  if (void 0 === h3) {
527
- const t6 = s4?.renderBefore ?? null;
528
- e8._$litPart$ = h3 = new R(i6.insertBefore(l2(), t6), t6, void 0, s4 ?? {});
528
+ const t7 = s5?.renderBefore ?? null;
529
+ e10._$litPart$ = h3 = new R(i7.insertBefore(l2(), t7), t7, void 0, s5 ?? {});
529
530
  }
530
- return h3._$AI(t5), h3;
531
+ return h3._$AI(t6), h3;
531
532
  };
532
533
 
533
534
  // ../../node_modules/lit-element/lit-element.js
@@ -538,12 +539,12 @@ var i4 = class extends y {
538
539
  }
539
540
  createRenderRoot() {
540
541
  var _a;
541
- const t5 = super.createRenderRoot();
542
- return (_a = this.renderOptions).renderBefore ?? (_a.renderBefore = t5.firstChild), t5;
542
+ const t6 = super.createRenderRoot();
543
+ return (_a = this.renderOptions).renderBefore ?? (_a.renderBefore = t6.firstChild), t6;
543
544
  }
544
- update(t5) {
545
- const r7 = this.render();
546
- this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t5), this._$Do = B(r7, this.renderRoot, this.renderOptions);
545
+ update(t6) {
546
+ const r8 = this.render();
547
+ this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t6), this._$Do = B(r8, this.renderRoot, this.renderOptions);
547
548
  }
548
549
  connectedCallback() {
549
550
  super.connectedCallback(), this._$Do?.setConnected(true);
@@ -562,93 +563,128 @@ o4?.({ LitElement: i4 });
562
563
 
563
564
  // ../../node_modules/@lit/reactive-element/decorators/property.js
564
565
  var o5 = { attribute: true, type: String, converter: u, reflect: false, hasChanged: f };
565
- var r4 = (t5 = o5, e8, r7) => {
566
- const { kind: n5, metadata: i6 } = r7;
567
- let s4 = globalThis.litPropertyMetadata.get(i6);
568
- if (void 0 === s4 && globalThis.litPropertyMetadata.set(i6, s4 = /* @__PURE__ */ new Map()), "setter" === n5 && ((t5 = Object.create(t5)).wrapped = true), s4.set(r7.name, t5), "accessor" === n5) {
569
- const { name: o8 } = r7;
570
- return { set(r8) {
571
- const n6 = e8.get.call(this);
572
- e8.set.call(this, r8), this.requestUpdate(o8, n6, t5);
573
- }, init(e9) {
574
- return void 0 !== e9 && this.C(o8, void 0, t5, e9), e9;
566
+ var r4 = (t6 = o5, e10, r8) => {
567
+ const { kind: n5, metadata: i7 } = r8;
568
+ let s5 = globalThis.litPropertyMetadata.get(i7);
569
+ if (void 0 === s5 && globalThis.litPropertyMetadata.set(i7, s5 = /* @__PURE__ */ new Map()), "setter" === n5 && ((t6 = Object.create(t6)).wrapped = true), s5.set(r8.name, t6), "accessor" === n5) {
570
+ const { name: o10 } = r8;
571
+ return { set(r9) {
572
+ const n6 = e10.get.call(this);
573
+ e10.set.call(this, r9), this.requestUpdate(o10, n6, t6);
574
+ }, init(e11) {
575
+ return void 0 !== e11 && this.C(o10, void 0, t6, e11), e11;
575
576
  } };
576
577
  }
577
578
  if ("setter" === n5) {
578
- const { name: o8 } = r7;
579
- return function(r8) {
580
- const n6 = this[o8];
581
- e8.call(this, r8), this.requestUpdate(o8, n6, t5);
579
+ const { name: o10 } = r8;
580
+ return function(r9) {
581
+ const n6 = this[o10];
582
+ e10.call(this, r9), this.requestUpdate(o10, n6, t6);
582
583
  };
583
584
  }
584
585
  throw Error("Unsupported decorator location: " + n5);
585
586
  };
586
- function n4(t5) {
587
- return (e8, o8) => "object" == typeof o8 ? r4(t5, e8, o8) : ((t6, e9, o9) => {
588
- const r7 = e9.hasOwnProperty(o9);
589
- return e9.constructor.createProperty(o9, t6), r7 ? Object.getOwnPropertyDescriptor(e9, o9) : void 0;
590
- })(t5, e8, o8);
587
+ function n4(t6) {
588
+ return (e10, o10) => "object" == typeof o10 ? r4(t6, e10, o10) : ((t7, e11, o11) => {
589
+ const r8 = e11.hasOwnProperty(o11);
590
+ return e11.constructor.createProperty(o11, t7), r8 ? Object.getOwnPropertyDescriptor(e11, o11) : void 0;
591
+ })(t6, e10, o10);
591
592
  }
592
593
 
593
594
  // ../../node_modules/@lit/reactive-element/decorators/state.js
594
- function r5(r7) {
595
- return n4({ ...r7, state: true, attribute: false });
595
+ function r5(r8) {
596
+ return n4({ ...r8, state: true, attribute: false });
596
597
  }
597
598
 
598
599
  // ../../node_modules/@lit/reactive-element/decorators/base.js
599
- var e4 = (e8, t5, c4) => (c4.configurable = true, c4.enumerable = true, Reflect.decorate && "object" != typeof t5 && Object.defineProperty(e8, t5, c4), c4);
600
+ var e4 = (e10, t6, c5) => (c5.configurable = true, c5.enumerable = true, Reflect.decorate && "object" != typeof t6 && Object.defineProperty(e10, t6, c5), c5);
601
+
602
+ // ../../node_modules/@lit/reactive-element/decorators/query.js
603
+ function e5(e10, r8) {
604
+ return (n5, s5, i7) => {
605
+ const o10 = (t6) => t6.renderRoot?.querySelector(e10) ?? null;
606
+ if (r8) {
607
+ const { get: e11, set: r9 } = "object" == typeof s5 ? n5 : i7 ?? (() => {
608
+ const t6 = Symbol();
609
+ return { get() {
610
+ return this[t6];
611
+ }, set(e12) {
612
+ this[t6] = e12;
613
+ } };
614
+ })();
615
+ return e4(n5, s5, { get() {
616
+ let t6 = e11.call(this);
617
+ return void 0 === t6 && (t6 = o10(this), (null !== t6 || this.hasUpdated) && r9.call(this, t6)), t6;
618
+ } });
619
+ }
620
+ return e4(n5, s5, { get() {
621
+ return o10(this);
622
+ } });
623
+ };
624
+ }
600
625
 
601
626
  // ../../node_modules/@lit/reactive-element/decorators/query-all.js
602
- var e5;
603
- function r6(r7) {
604
- return (n5, o8) => e4(n5, o8, { get() {
605
- return (this.renderRoot ?? (e5 ?? (e5 = document.createDocumentFragment()))).querySelectorAll(r7);
627
+ var e6;
628
+ function r6(r8) {
629
+ return (n5, o10) => e4(n5, o10, { get() {
630
+ return (this.renderRoot ?? (e6 ?? (e6 = document.createDocumentFragment()))).querySelectorAll(r8);
606
631
  } });
607
632
  }
608
633
 
634
+ // ../../node_modules/@lit/reactive-element/decorators/query-assigned-elements.js
635
+ function o6(o10) {
636
+ return (e10, n5) => {
637
+ const { slot: r8, selector: s5 } = o10 ?? {}, c5 = "slot" + (r8 ? `[name=${r8}]` : ":not([name])");
638
+ return e4(e10, n5, { get() {
639
+ const t6 = this.renderRoot?.querySelector(c5), e11 = t6?.assignedElements(o10) ?? [];
640
+ return void 0 === s5 ? e11 : e11.filter((t7) => t7.matches(s5));
641
+ } });
642
+ };
643
+ }
644
+
609
645
  // ../../node_modules/lit-html/directive.js
610
646
  var t3 = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 };
611
- var e6 = (t5) => (...e8) => ({ _$litDirective$: t5, values: e8 });
647
+ var e7 = (t6) => (...e10) => ({ _$litDirective$: t6, values: e10 });
612
648
  var i5 = class {
613
- constructor(t5) {
649
+ constructor(t6) {
614
650
  }
615
651
  get _$AU() {
616
652
  return this._$AM._$AU;
617
653
  }
618
- _$AT(t5, e8, i6) {
619
- this._$Ct = t5, this._$AM = e8, this._$Ci = i6;
654
+ _$AT(t6, e10, i7) {
655
+ this._$Ct = t6, this._$AM = e10, this._$Ci = i7;
620
656
  }
621
- _$AS(t5, e8) {
622
- return this.update(t5, e8);
657
+ _$AS(t6, e10) {
658
+ return this.update(t6, e10);
623
659
  }
624
- update(t5, e8) {
625
- return this.render(...e8);
660
+ update(t6, e10) {
661
+ return this.render(...e10);
626
662
  }
627
663
  };
628
664
 
629
665
  // ../../node_modules/lit-html/directives/unsafe-html.js
630
- var e7 = class extends i5 {
631
- constructor(i6) {
632
- if (super(i6), this.it = E, i6.type !== t3.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
633
- }
634
- render(r7) {
635
- if (r7 === E || null == r7) return this._t = void 0, this.it = r7;
636
- if (r7 === T) return r7;
637
- if ("string" != typeof r7) throw Error(this.constructor.directiveName + "() called with a non-string value");
638
- if (r7 === this.it) return this._t;
639
- this.it = r7;
640
- const s4 = [r7];
641
- return s4.raw = s4, this._t = { _$litType$: this.constructor.resultType, strings: s4, values: [] };
666
+ var e8 = class extends i5 {
667
+ constructor(i7) {
668
+ if (super(i7), this.it = E, i7.type !== t3.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
669
+ }
670
+ render(r8) {
671
+ if (r8 === E || null == r8) return this._t = void 0, this.it = r8;
672
+ if (r8 === T) return r8;
673
+ if ("string" != typeof r8) throw Error(this.constructor.directiveName + "() called with a non-string value");
674
+ if (r8 === this.it) return this._t;
675
+ this.it = r8;
676
+ const s5 = [r8];
677
+ return s5.raw = s5, this._t = { _$litType$: this.constructor.resultType, strings: s5, values: [] };
642
678
  }
643
679
  };
644
- e7.directiveName = "unsafeHTML", e7.resultType = 1;
645
- var o6 = e6(e7);
680
+ e8.directiveName = "unsafeHTML", e8.resultType = 1;
681
+ var o7 = e7(e8);
646
682
 
647
683
  // ../../node_modules/lit-html/directives/unsafe-svg.js
648
- var t4 = class extends e7 {
684
+ var t4 = class extends e8 {
649
685
  };
650
686
  t4.directiveName = "unsafeSVG", t4.resultType = 2;
651
- var o7 = e6(t4);
687
+ var o8 = e7(t4);
652
688
 
653
689
  // node_modules/@triptease/icons/dist/src/icons/chevron-down.js
654
690
  var chevronDown = `
@@ -710,6 +746,871 @@ var wallet = `<svg width="24" height="24" viewBox="0 0 24 24" fill="currentColor
710
746
  <path d="M14.2275 3.02681C16.5581 2.53634 18.7497 4.3152 18.75 6.69674V7.09518C20.0437 7.42823 20.9998 8.60187 21 9.99948V16.9995C21 18.6046 19.7394 19.9153 18.1543 19.9956L18 19.9995H6C4.39489 19.9995 3.08421 18.7389 3.00391 17.1538L3 16.9995V8.43405C3.00022 6.66092 4.2424 5.12941 5.97754 4.76412L14.2275 3.02681ZM6 8.49948C5.17173 8.49948 4.50026 9.17127 4.5 9.99948V16.9995C4.5 17.8279 5.17157 18.4995 6 18.4995H18C18.8284 18.4995 19.5 17.8279 19.5 16.9995V9.99948C19.4997 9.17127 18.8283 8.49948 18 8.49948H6ZM16.5 11.9995C17.3283 11.9995 17.9997 12.6713 18 13.4995C18 14.3279 17.3284 14.9995 16.5 14.9995C15.6716 14.9995 15 14.3279 15 13.4995C15.0003 12.6713 15.6717 11.9995 16.5 11.9995ZM17.25 6.69674C17.2497 5.26791 15.9344 4.20028 14.5361 4.49459L6.28613 6.2319C5.67607 6.36042 5.16896 6.73055 4.85254 7.22799C5.20609 7.08147 5.59347 6.99948 6 6.99948H17.25V6.69674Z" />
711
747
  </svg>`;
712
748
 
749
+ // ../../node_modules/tslib/tslib.es6.mjs
750
+ function __decorate(decorators, target, key, desc) {
751
+ var c5 = arguments.length, r8 = c5 < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d3;
752
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r8 = Reflect.decorate(decorators, target, key, desc);
753
+ else for (var i7 = decorators.length - 1; i7 >= 0; i7--) if (d3 = decorators[i7]) r8 = (c5 < 3 ? d3(r8) : c5 > 3 ? d3(target, key, r8) : d3(target, key)) || r8;
754
+ return c5 > 3 && r8 && Object.defineProperty(target, key, r8), r8;
755
+ }
756
+
757
+ // ../../node_modules/lit-html/directives/if-defined.js
758
+ var o9 = (o10) => o10 ?? E;
759
+
760
+ // ../../node_modules/lit-html/directive-helpers.js
761
+ var { I: t5 } = Z;
762
+ var s4 = () => document.createComment("");
763
+ var r7 = (o10, i7, n5) => {
764
+ const e10 = o10._$AA.parentNode, l3 = void 0 === i7 ? o10._$AB : i7._$AA;
765
+ if (void 0 === n5) {
766
+ const i8 = e10.insertBefore(s4(), l3), c5 = e10.insertBefore(s4(), l3);
767
+ n5 = new t5(i8, c5, o10, o10.options);
768
+ } else {
769
+ const t6 = n5._$AB.nextSibling, i8 = n5._$AM, c5 = i8 !== o10;
770
+ if (c5) {
771
+ let t7;
772
+ n5._$AQ?.(o10), n5._$AM = o10, void 0 !== n5._$AP && (t7 = o10._$AU) !== i8._$AU && n5._$AP(t7);
773
+ }
774
+ if (t6 !== l3 || c5) {
775
+ let o11 = n5._$AA;
776
+ for (; o11 !== t6; ) {
777
+ const t7 = o11.nextSibling;
778
+ e10.insertBefore(o11, l3), o11 = t7;
779
+ }
780
+ }
781
+ }
782
+ return n5;
783
+ };
784
+ var v2 = (o10, t6, i7 = o10) => (o10._$AI(t6, i7), o10);
785
+ var u3 = {};
786
+ var m2 = (o10, t6 = u3) => o10._$AH = t6;
787
+ var p3 = (o10) => o10._$AH;
788
+ var M2 = (o10) => {
789
+ o10._$AP?.(false, true);
790
+ let t6 = o10._$AA;
791
+ const i7 = o10._$AB.nextSibling;
792
+ for (; t6 !== i7; ) {
793
+ const o11 = t6.nextSibling;
794
+ t6.remove(), t6 = o11;
795
+ }
796
+ };
797
+
798
+ // ../../node_modules/lit-html/directives/repeat.js
799
+ var u4 = (e10, s5, t6) => {
800
+ const r8 = /* @__PURE__ */ new Map();
801
+ for (let l3 = s5; l3 <= t6; l3++) r8.set(e10[l3], l3);
802
+ return r8;
803
+ };
804
+ var c4 = e7(class extends i5 {
805
+ constructor(e10) {
806
+ if (super(e10), e10.type !== t3.CHILD) throw Error("repeat() can only be used in text expressions");
807
+ }
808
+ dt(e10, s5, t6) {
809
+ let r8;
810
+ void 0 === t6 ? t6 = s5 : void 0 !== s5 && (r8 = s5);
811
+ const l3 = [], o10 = [];
812
+ let i7 = 0;
813
+ for (const s6 of e10) l3[i7] = r8 ? r8(s6, i7) : i7, o10[i7] = t6(s6, i7), i7++;
814
+ return { values: o10, keys: l3 };
815
+ }
816
+ render(e10, s5, t6) {
817
+ return this.dt(e10, s5, t6).values;
818
+ }
819
+ update(s5, [t6, r8, c5]) {
820
+ const d3 = p3(s5), { values: p4, keys: a3 } = this.dt(t6, r8, c5);
821
+ if (!Array.isArray(d3)) return this.ut = a3, p4;
822
+ const h3 = this.ut ?? (this.ut = []), v3 = [];
823
+ let m3, y3, x2 = 0, j2 = d3.length - 1, k2 = 0, w2 = p4.length - 1;
824
+ for (; x2 <= j2 && k2 <= w2; ) if (null === d3[x2]) x2++;
825
+ else if (null === d3[j2]) j2--;
826
+ else if (h3[x2] === a3[k2]) v3[k2] = v2(d3[x2], p4[k2]), x2++, k2++;
827
+ else if (h3[j2] === a3[w2]) v3[w2] = v2(d3[j2], p4[w2]), j2--, w2--;
828
+ else if (h3[x2] === a3[w2]) v3[w2] = v2(d3[x2], p4[w2]), r7(s5, v3[w2 + 1], d3[x2]), x2++, w2--;
829
+ else if (h3[j2] === a3[k2]) v3[k2] = v2(d3[j2], p4[k2]), r7(s5, d3[x2], d3[j2]), j2--, k2++;
830
+ else if (void 0 === m3 && (m3 = u4(a3, k2, w2), y3 = u4(h3, x2, j2)), m3.has(h3[x2])) if (m3.has(h3[j2])) {
831
+ const e10 = y3.get(a3[k2]), t7 = void 0 !== e10 ? d3[e10] : null;
832
+ if (null === t7) {
833
+ const e11 = r7(s5, d3[x2]);
834
+ v2(e11, p4[k2]), v3[k2] = e11;
835
+ } else v3[k2] = v2(t7, p4[k2]), r7(s5, d3[x2], t7), d3[e10] = null;
836
+ k2++;
837
+ } else M2(d3[j2]), j2--;
838
+ else M2(d3[x2]), x2++;
839
+ for (; k2 <= w2; ) {
840
+ const e10 = r7(s5, v3[w2 + 1]);
841
+ v2(e10, p4[k2]), v3[k2++] = e10;
842
+ }
843
+ for (; x2 <= j2; ) {
844
+ const e10 = d3[x2++];
845
+ null !== e10 && M2(e10);
846
+ }
847
+ return this.ut = a3, m2(s5, v3), T;
848
+ }
849
+ });
850
+
851
+ // ../../node_modules/lit-html/directives/guard.js
852
+ var e9 = {};
853
+ var i6 = e7(class extends i5 {
854
+ constructor() {
855
+ super(...arguments), this.ot = e9;
856
+ }
857
+ render(r8, t6) {
858
+ return t6();
859
+ }
860
+ update(t6, [s5, e10]) {
861
+ if (Array.isArray(s5)) {
862
+ if (Array.isArray(this.ot) && this.ot.length === s5.length && s5.every((r8, t7) => r8 === this.ot[t7])) return T;
863
+ } else if (this.ot === s5) return T;
864
+ return this.ot = Array.isArray(s5) ? Array.from(s5) : s5, this.render(s5, e10);
865
+ }
866
+ });
867
+
868
+ // ../../node_modules/@triptease/icons/dist/src/icons/chevron-down.js
869
+ var chevronDown2 = `
870
+ <svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" fill="currentColor" class="bi bi-chevron-down chevron-down"
871
+ viewBox="0 0 16 16" role="presentation">
872
+ <path fill-rule="evenodd"
873
+ d="M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z"
874
+ stroke="currentColor"/>
875
+ </svg>`;
876
+
877
+ // ../../node_modules/@triptease/icons/dist/src/icons/alert.js
878
+ var alert2 = `<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
879
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M10 20C15.5228 20 20 15.5228 20 10C20 4.47715 15.5228 0 10 0C4.47715 0 0 4.47715 0 10C0 15.5228 4.47715 20 10 20ZM9.25 5.75C9.25 5.33579 9.58579 5 10 5C10.4142 5 10.75 5.33579 10.75 5.75V11.25C10.75 11.6642 10.4142 12 10 12C9.58579 12 9.25 11.6642 9.25 11.25V5.75ZM10.75 13.75C10.75 14.1642 10.4142 14.5 10 14.5C9.58579 14.5 9.25 14.1642 9.25 13.75C9.25 13.3358 9.58579 13 10 13C10.4142 13 10.75 13.3358 10.75 13.75Z" fill="#3B353B"/>
880
+ </svg>`;
881
+
882
+ // ../../node_modules/@triptease/tt-combobox/dist/src/styles.js
883
+ var styles = i`
884
+ :host {
885
+ display: flex;
886
+ flex-direction: var(--tt-combobox-flex-direction, row);
887
+ align-items: var(--tt-combobox-align-items, center);
888
+ justify-content: var(--tt-combobox-justify-content, initial);
889
+ align-content: var(--tt-combobox-align-content, initial);
890
+ gap: var(--tt-combobox-gap, 0.5rem);
891
+ font-size: var(--tt-combobox-font-size, var(--font-size-200));
892
+ color: var(--tt-combobox-color, var(--color-text-400));
893
+ }
894
+
895
+ :host([disabled]) .tt-combobox-container {
896
+ border-color: var(--tt-combobox-disabled-border-color, var(--color-border-200));
897
+ color: var(--tt-combobox-disabled-color, var(--color-text-200));
898
+ background-color: var(--tt-combobox-disabled-background-color, var(--color-surface-200));
899
+ pointer-events: none;
900
+ }
901
+
902
+ .tt-combobox-container:focus-within {
903
+ outline: 5px auto Highlight;
904
+ outline: 5px auto -webkit-focus-ring-color;
905
+ }
906
+
907
+ .tt-combobox-container:hover {
908
+ background-color: var(--tt-combobox-hover-background-color, var(--color-surface-300));
909
+ }
910
+
911
+ :host([invalid]) .tt-combobox-container,
912
+ :host(:state(interacted):invalid) .tt-combobox-container {
913
+ outline: 1px solid var(--color-alert-400, red);
914
+ }
915
+
916
+ .errormessage {
917
+ visibility: hidden;
918
+ display: flex;
919
+ align-items: center;
920
+ gap: var(--space-scale-0-5);
921
+ color: var(--color-alert-400, red);
922
+
923
+ &[data-hidden] {
924
+ display: none;
925
+ }
926
+ }
927
+
928
+ .errormessage svg path {
929
+ fill: var(--color-alert-400, red);
930
+ height: 20px;
931
+ }
932
+
933
+ .tt-combobox-container:has([role="combobox"][aria-invalid="true"]) ~ .errormessage {
934
+ visibility: visible;
935
+ }
936
+
937
+ :has([role="combobox"][aria-invalid="true"]) ::slotted([slot="error"]) {
938
+ color: var(--color-alert-400, darkred);
939
+ font-size: var(--font-size-100);
940
+ margin: 0;
941
+ font-weight: var(--font-weight-regular);
942
+ line-height: 1.2;
943
+ }
944
+
945
+ slot[name="option"]::slotted(*) {
946
+ display: none;
947
+ }
948
+
949
+ * {
950
+ box-sizing: border-box;
951
+ font-family: var(--font-family-sans);
952
+ cursor: inherit;
953
+ }
954
+
955
+ .tt-combobox-container {
956
+ position: relative;
957
+ max-width: var(--tt-combobox-max-width, 300px);
958
+ min-width: var(--tt-combobox-min-width, 250px);
959
+ display: flex;
960
+ flex-direction: row;
961
+ align-items: center;
962
+ border-radius: var(--border-radius);
963
+ border-color: var(--tt-combobox-border-color, var(--color-border-400));
964
+ border-style: solid;
965
+ border-width: var(--tt-combobox-border-width, 1px);
966
+ background-color: var(--tt-combobox-background-color, var(--color-surface-100));
967
+ padding: 0.5rem;
968
+ gap: 0.25rem;
969
+ //width: 100%;
970
+ }
971
+
972
+ [role="listbox"] {
973
+ display: none;
974
+ }
975
+
976
+ [role="combobox"] {
977
+ width: 100%;
978
+ border-style: none;
979
+ background-color: transparent;
980
+ font-size: var(--tt-combobox-font-size, var(--font-size-200));
981
+ }
982
+
983
+ .hide-caret {
984
+ caret-color: transparent;
985
+ }
986
+
987
+ [role="combobox"]::placeholder {
988
+ color: var(--tt-combobox-placeholder-color, var(--color-text-300));
989
+ font-family: var(--font-family-inter);
990
+ font-size: var(--tt-combobox-font-size, var(--font-size-200));
991
+ }
992
+
993
+ :host([disabled]) [role="combobox"]::placeholder {
994
+ color: var(--tt-combobox-disabled-placeholder-color, var(--color-text-200));
995
+ }
996
+
997
+ [role="combobox"]:placeholder-shown {
998
+ text-overflow: ellipsis;
999
+ overflow: clip;
1000
+ }
1001
+
1002
+ [role="combobox"]:focus {
1003
+ outline: none;
1004
+ }
1005
+
1006
+ [role="combobox"] ~ button {
1007
+ appearance: none;
1008
+ padding: 0;
1009
+ border-width: 0;
1010
+ background-color: transparent;
1011
+ aspect-ratio: 1;
1012
+ }
1013
+
1014
+ [role="combobox"] ~ button svg {
1015
+ transition: transform 0.2s ease-in-out;
1016
+ color: var(--tt-combobox-dropdown-color, var(--color-text-400));
1017
+ }
1018
+
1019
+ [role="combobox"][aria-expanded="true"] ~ button svg {
1020
+ transform: rotate(180deg);
1021
+ }
1022
+
1023
+ [role="combobox"][aria-expanded="true"] ~ [role="listbox"] {
1024
+ display: block;
1025
+ width: max-content;
1026
+ max-width: var(--tt-combobox-list-max-width, 35ch);
1027
+ min-width: 100%;
1028
+ background-color: var(--tt-combobox-list-background-color, var(--color-surface-100, white));
1029
+ border: 1px solid var(--tt-combobox-border-color, var(--color-border-300));
1030
+ border-radius: var(--border-radius);
1031
+ box-shadow: var(--box-shadow-lg);
1032
+ padding: 0;
1033
+ position: absolute;
1034
+ top: var(--tt-combobox-top, calc(100% + 0.5rem));
1035
+ left: var(--tt-combobox-left, 0);
1036
+ right: var(--tt-combobox-right, unset);
1037
+ bottom: var(--tt-combobox-bottom, unset);
1038
+ z-index: 2;
1039
+ margin: 0;
1040
+ list-style: none;
1041
+ max-height: var(--tt-combobox-max-height, 400px);
1042
+ overflow-y: auto;
1043
+
1044
+
1045
+ li {
1046
+ display: flex;
1047
+ padding: 0.5rem;
1048
+ box-sizing: border-box;
1049
+ text-align: left;
1050
+ text-overflow: ellipsis;
1051
+ text-wrap: nowrap;
1052
+ align-items: center;
1053
+ gap: 0.25rem;
1054
+ max-width: 100%;
1055
+ width: 100%;
1056
+ overflow-y: visible;
1057
+ flex: 1;
1058
+
1059
+
1060
+ input[type="checkbox"] {
1061
+ width: var(--checkbox-size, var(--space-scale-2));
1062
+ aspect-ratio: 1;
1063
+ flex: 0 0 auto;
1064
+ }
1065
+
1066
+ span {
1067
+ overflow: hidden;
1068
+ text-overflow: ellipsis;
1069
+ white-space: nowrap;
1070
+ flex: 1;
1071
+ line-height: 1.1;
1072
+ }
1073
+
1074
+ &.no-results {
1075
+ display: none;
1076
+ }
1077
+
1078
+ &[aria-hidden="true"] {
1079
+ visibility: hidden;
1080
+ display: none;
1081
+ }
1082
+ }
1083
+
1084
+ &:not(:has([role="option"]:not([data-value="select-all"]))) {
1085
+ .no-results {
1086
+ display: flex;
1087
+ }
1088
+
1089
+ .select-all {
1090
+ display: none;
1091
+ }
1092
+ }
1093
+
1094
+
1095
+ }
1096
+
1097
+ [role="combobox"][aria-expanded="true"] ~ [role="listbox"][data-open-upward] {
1098
+ top: unset;
1099
+ bottom: calc(100% + 0.5rem);
1100
+ }
1101
+
1102
+ slot[name="icon"] {
1103
+ display: inline-block;
1104
+ max-width: var(--tt-combobox-icon-size, 1rem);
1105
+ aspect-ratio: 1;
1106
+ }
1107
+
1108
+ [role="option"].select-all {
1109
+ border-bottom: 1px solid var(--color-border-300);
1110
+ }
1111
+
1112
+ [aria-multiselectable="false"] [role="option"][aria-selected="true"] {
1113
+ color: var(--color-primary-400);
1114
+ font-weight: var(--font-weight-medium);
1115
+ }
1116
+
1117
+ [role="option"]:is(:hover, [data-active="true"]) {
1118
+ background-color: var(--tt-combobox-option-background-color-hover, inherit);
1119
+ color: var(--tt-combobox-option-color-hover, inherit);
1120
+
1121
+ &:first-child {
1122
+ border-top-left-radius: var(--border-radius);
1123
+ border-top-right-radius: var(--border-radius);
1124
+ }
1125
+
1126
+ &:last-child {
1127
+ border-bottom-left-radius: var(--border-radius);
1128
+ border-bottom-right-radius: var(--border-radius);
1129
+ }
1130
+ }
1131
+
1132
+ [role="option"]:hover {
1133
+ cursor: pointer;
1134
+ }
1135
+
1136
+ [role="option"][aria-disabled="true"] {
1137
+ pointer-events: none;
1138
+ opacity: 0.5;
1139
+ }
1140
+
1141
+ [role="listbox"][aria-multiselectable="true"] [role="option"] input[type="checkbox"] {
1142
+ accent-color: var(--color-primary-400);
1143
+ width: var(--checkbox-size, var(--space-scale-2));
1144
+ aspect-ratio: 1;
1145
+ pointer-events: none;
1146
+ }
1147
+
1148
+ [role="listbox"][aria-multiselectable="true"] [role="option"][aria-disabled="true"] input[type="checkbox"] {
1149
+ pointer-events: none;
1150
+ }
1151
+
1152
+ label {
1153
+ font-size: var(--tt-combobox-label-font-size, inherit);
1154
+ color: var(--tt-combobox-label-color, inherit);
1155
+ font-weight: var(--tt-combobox-label-font-weight, inherit);
1156
+
1157
+ &[data-hidden] {
1158
+ display: none;
1159
+ }
1160
+
1161
+ }
1162
+ `;
1163
+
1164
+ // ../../node_modules/@triptease/tt-combobox/dist/src/TtCombobox.js
1165
+ var TtCombobox = class extends i4 {
1166
+ get form() {
1167
+ return this.internals.form;
1168
+ }
1169
+ get _isAllSelected() {
1170
+ return Array.from(this._selectableVisibleOptions).every((option) => Array.from(this._selectedVisibleOptions).includes(option));
1171
+ }
1172
+ constructor() {
1173
+ super();
1174
+ this.multiselect = false;
1175
+ this.disabled = false;
1176
+ this.invalid = false;
1177
+ this.displaySelectAll = false;
1178
+ this.required = false;
1179
+ this.name = "";
1180
+ this.ariaLabelledby = E;
1181
+ this.hideCaret = false;
1182
+ this.openUpward = false;
1183
+ this._activeOption = -1;
1184
+ this._expanded = false;
1185
+ this._filter = "";
1186
+ this.value = [];
1187
+ this._slotObserver = new MutationObserver((mutations) => {
1188
+ mutations.forEach((mutation) => {
1189
+ if (mutation.type === "attributes") {
1190
+ this.requestUpdate("options");
1191
+ }
1192
+ });
1193
+ });
1194
+ this._valueChanged = () => {
1195
+ this._selectableOptions.forEach((option) => {
1196
+ if (this.value.includes(option.dataset.value)) {
1197
+ this._checkOption(option);
1198
+ } else {
1199
+ this._uncheckOption(option);
1200
+ }
1201
+ });
1202
+ this.internals.setFormValue(JSON.stringify(this.value));
1203
+ };
1204
+ this._listenForOptionChange = () => {
1205
+ this.options.forEach((option) => {
1206
+ this._slotObserver.observe(option, { attributes: true, attributeFilter: ["selected", "disabled", "hidden"] });
1207
+ });
1208
+ };
1209
+ this._selectAll = (event) => {
1210
+ event.preventDefault();
1211
+ event.stopPropagation();
1212
+ if (this.value.length === this._selectableOptions.length) {
1213
+ this.value = [];
1214
+ } else {
1215
+ this.value = Array.from(this._selectableOptions).map((option) => option.dataset.value);
1216
+ }
1217
+ };
1218
+ this._renderSelectAll = () => {
1219
+ if (!this.multiselect || !this.displaySelectAll) {
1220
+ return E;
1221
+ }
1222
+ const id = `${this.id}-option-select-all`;
1223
+ const active = this._getActiveOptionId() === id;
1224
+ const selected = this._isAllSelected;
1225
+ return x`
1226
+ <li
1227
+ class="select-all"
1228
+ role="option"
1229
+ id="${this.id}-option-select-all"
1230
+ aria-selected="${selected}"
1231
+ data-active=${active}
1232
+ @click="${this._selectAll}"
1233
+ @mousedown="${(evt) => evt.preventDefault()}"
1234
+ data-value="select-all"
1235
+ part="option"
1236
+ >
1237
+ <input type="checkbox" ?checked=${selected} role="presentation" tabindex="-1" part="checkbox">
1238
+ Select all
1239
+ </li>`;
1240
+ };
1241
+ this._renderChevron = () => x`
1242
+ <button type="button" aria-label="Expand" @click="${this._onChevronClick}" aria-expanded="${this._expanded}"
1243
+ aria-controls="${this.id}-list" tabindex="-1" ?disabled=${this.disabled} part="arrow">
1244
+ ${o8(chevronDown2)}
1245
+ </button>
1246
+ `;
1247
+ this.internals = this.attachInternals();
1248
+ }
1249
+ _handleFocusOut(e10) {
1250
+ if (!this.shadowRoot.contains(e10.relatedTarget)) {
1251
+ this._expanded = false;
1252
+ }
1253
+ }
1254
+ _onFocus() {
1255
+ this._comboboxInput.focus();
1256
+ }
1257
+ connectedCallback() {
1258
+ super.connectedCallback();
1259
+ this.addEventListener("focus", this._onFocus);
1260
+ }
1261
+ disconnectedCallback() {
1262
+ super.disconnectedCallback();
1263
+ this.removeEventListener("focus", this._onFocus);
1264
+ }
1265
+ firstUpdated(changedProperties) {
1266
+ this.internals.setFormValue(JSON.stringify(this.value));
1267
+ this._reportValidity();
1268
+ this._listenForOptionChange();
1269
+ super.firstUpdated(changedProperties);
1270
+ }
1271
+ update(changedProperties) {
1272
+ if (changedProperties.has("value")) {
1273
+ this._valueChanged();
1274
+ if (changedProperties.get("value") !== void 0 && JSON.stringify(changedProperties.get("value")) !== JSON.stringify(this.value)) {
1275
+ this._dispatchSelectedOptions();
1276
+ this._reportValidity();
1277
+ }
1278
+ }
1279
+ if (changedProperties.has("_expanded") && changedProperties.get("_expanded") && !this._expanded) {
1280
+ this.internals.states.add("interacted");
1281
+ }
1282
+ if (changedProperties.has("options")) {
1283
+ this.updateComplete.then(() => {
1284
+ this.value = Array.from(/* @__PURE__ */ new Set([...this.value, ...Array.from(this._selectedOptions).map((option) => option.dataset.value)]));
1285
+ this._listenForOptionChange();
1286
+ });
1287
+ }
1288
+ super.update(changedProperties);
1289
+ }
1290
+ _reportValidity() {
1291
+ if (this.required && !this.value.length) {
1292
+ const errorMessage = this.multiselect ? "Please select at least one option" : "Please select an option";
1293
+ this.internals.setValidity({
1294
+ valueMissing: true
1295
+ }, errorMessage, this._comboboxInput);
1296
+ this.internals.states.add("--invalid");
1297
+ } else if (!this.internals.validity.valid) {
1298
+ this.internals.setValidity({});
1299
+ if (this.internals.states.has("--invalid")) {
1300
+ this.internals.states.delete("--invalid");
1301
+ }
1302
+ }
1303
+ }
1304
+ get labels() {
1305
+ return [...this.internals.labels];
1306
+ }
1307
+ get labelContent() {
1308
+ if (this.ariaLabel !== null) {
1309
+ return this.ariaLabel;
1310
+ }
1311
+ return this.labels.map((label) => label.innerText).join(", ");
1312
+ }
1313
+ _onKeyUp(event) {
1314
+ switch (event.key) {
1315
+ case "ArrowDown":
1316
+ event.preventDefault();
1317
+ if (!this._expanded) {
1318
+ this._expanded = true;
1319
+ this._activeOption = -1;
1320
+ } else {
1321
+ this._activeOption = Math.min(this._visibleOptions.length - 1, this._activeOption + 1);
1322
+ }
1323
+ break;
1324
+ case "ArrowUp":
1325
+ event.preventDefault();
1326
+ if (this._expanded) {
1327
+ this._activeOption = Math.max(0, this._activeOption - 1);
1328
+ }
1329
+ break;
1330
+ case "Escape":
1331
+ event.preventDefault();
1332
+ if (this._expanded) {
1333
+ this._expanded = false;
1334
+ } else if (this._filter !== "") {
1335
+ this._filter = "";
1336
+ }
1337
+ break;
1338
+ case "Enter":
1339
+ event.preventDefault();
1340
+ if (this._expanded) {
1341
+ this._visibleOptions[this._activeOption].click();
1342
+ }
1343
+ break;
1344
+ default:
1345
+ break;
1346
+ }
1347
+ }
1348
+ _uncheckOption(option) {
1349
+ if (option.dataset.deselectable !== "true")
1350
+ return;
1351
+ option.setAttribute("aria-selected", "false");
1352
+ const checkbox = option.querySelector('input[type="checkbox"]');
1353
+ if (checkbox) {
1354
+ checkbox.checked = false;
1355
+ }
1356
+ }
1357
+ _checkOption(option) {
1358
+ if (!this.multiselect) {
1359
+ this._selectableOptions.forEach((opt) => {
1360
+ this._uncheckOption(opt);
1361
+ });
1362
+ }
1363
+ option.setAttribute("aria-selected", "true");
1364
+ const checkbox = option.querySelector('input[type="checkbox"]');
1365
+ if (checkbox) {
1366
+ checkbox.checked = true;
1367
+ }
1368
+ }
1369
+ _getActiveOptionId() {
1370
+ if (this._activeOption === -1 || this._visibleOptions.length === 0) {
1371
+ return void 0;
1372
+ }
1373
+ const option = this._visibleOptions[this._activeOption];
1374
+ return option.id;
1375
+ }
1376
+ _onClick() {
1377
+ this._expanded = !this._expanded;
1378
+ if (this._expanded) {
1379
+ this.shadowRoot?.querySelector('input[role="combobox"]')?.focus();
1380
+ }
1381
+ }
1382
+ _onChevronClick() {
1383
+ this.shadowRoot?.querySelector('input[role="combobox"]')?.focus();
1384
+ }
1385
+ _onClickOption(event) {
1386
+ event.preventDefault();
1387
+ event.stopPropagation();
1388
+ const option = event.currentTarget;
1389
+ const selectedValue = option.dataset.value;
1390
+ if (this.multiselect) {
1391
+ if (this.value.includes(selectedValue)) {
1392
+ this.value = this.value.filter((value) => value !== selectedValue);
1393
+ } else {
1394
+ this.value = [...this.value, selectedValue];
1395
+ }
1396
+ } else {
1397
+ this.value = [selectedValue];
1398
+ this._expanded = false;
1399
+ }
1400
+ }
1401
+ _onInput(event) {
1402
+ const input = event.target;
1403
+ const filter = input.value.toLowerCase();
1404
+ if (filter !== "" && !this._expanded) {
1405
+ this._expanded = true;
1406
+ }
1407
+ this._activeOption = -1;
1408
+ this._filter = filter;
1409
+ }
1410
+ _dispatchSelectedOptions() {
1411
+ this.dispatchEvent(new Event("change", {
1412
+ bubbles: true,
1413
+ composed: true
1414
+ }));
1415
+ }
1416
+ get _isValid() {
1417
+ return this.internals.validity.valid && !this.invalid;
1418
+ }
1419
+ _renderCombobox() {
1420
+ const placeHolderValue = i6([this.placeholder, this.disabled, this.value, this.activeOptions.length, this.selectAllPlaceholder], () => {
1421
+ if (this.placeholder) {
1422
+ return this.placeholder;
1423
+ }
1424
+ if (this.disabled) {
1425
+ return "Disabled";
1426
+ }
1427
+ if (!this._selectedVisibleOptions.length) {
1428
+ return "No options selected";
1429
+ }
1430
+ if (this._selectedVisibleOptions.length === 1) {
1431
+ return this._selectedVisibleOptions[0].textContent?.trim();
1432
+ }
1433
+ if (this._isAllSelected) {
1434
+ return this.selectAllPlaceholder || "All options selected";
1435
+ }
1436
+ return `${this._selectedVisibleOptions.length} options selected`;
1437
+ });
1438
+ return x`
1439
+ <input
1440
+ type="text"
1441
+ id="${this.id}"
1442
+ name="${this.name}"
1443
+ autocomplete="off"
1444
+ aria-label="${this.labelContent}"
1445
+ aria-labelledby="${this.ariaLabelledby}"
1446
+ role="combobox"
1447
+ aria-controls="${this.id}-list"
1448
+ aria-expanded="${this._expanded}"
1449
+ aria-autocomplete="list"
1450
+ aria-haspopup="listbox"
1451
+ aria-disabled="${this.disabled}"
1452
+ aria-invalid="${!this._isValid}"
1453
+ aria-errormessage="${!this._isValid ? `error-msg-${this.id}` : E}"
1454
+ aria-required="${this.required}"
1455
+ ?disabled=${this.disabled}
1456
+ aria-activedescendant="${o9(this._getActiveOptionId())}"
1457
+ @input="${this._onInput}"
1458
+ .value="${this._filter}"
1459
+ .placeholder="${placeHolderValue}"
1460
+ @focusout="${this._handleFocusOut}"
1461
+ part="input"
1462
+ class=${this.hideCaret ? "hide-caret" : ""}
1463
+ />`;
1464
+ }
1465
+ _renderOption(option) {
1466
+ if (this._filter !== "" && !option.value.toLowerCase().includes(this._filter) && !option.innerText.toLowerCase().includes(this._filter)) {
1467
+ return E;
1468
+ }
1469
+ const id = `${this.id}-option-${option.value}`;
1470
+ const active = this._getActiveOptionId() === id;
1471
+ const selected = Boolean(this.multiselect && option.selected);
1472
+ return x`
1473
+ <li
1474
+ role="option"
1475
+ id="${this.id}-option-${option.value}"
1476
+ aria-selected=${this.multiselect && option.selected}
1477
+ data-active=${active}
1478
+ @click="${this._onClickOption}"
1479
+ @mousedown="${(event) => event.preventDefault()}"
1480
+ data-value="${option.value}"
1481
+ aria-disabled=${option.disabled}
1482
+ aria-hidden=${option.hidden || E}
1483
+ data-deselectable=${!option.selected}
1484
+ part="option"
1485
+ >
1486
+ ${this.multiselect ? x`<input type="checkbox" ?checked=${selected}
1487
+ role="presentation" tabindex="-1" part="checkbox">` : E}
1488
+ <span>${o7(option.innerHTML)}</span>
1489
+ </li>`;
1490
+ }
1491
+ _hasErrorContent() {
1492
+ return this.errorElements?.length > 0;
1493
+ }
1494
+ render() {
1495
+ return x`
1496
+ <div class="tt-combobox-container" @focus="${this._onFocus}" @keydown="${this._onKeyUp}" @click="${this._onClick}"
1497
+ aria-disabled="${this.disabled}" part="container">
1498
+ <slot name="icon" part="icon"></slot>
1499
+ ${this._renderCombobox()}
1500
+ ${this._renderChevron()}
1501
+ <ul
1502
+ id="${this.id}-list"
1503
+ role="listbox"
1504
+ aria-multiselectable="${this.multiselect}"
1505
+ aria-label="${this.labelContent}"
1506
+ part="listbox"
1507
+ ?data-open-upward="${this.openUpward}"
1508
+ >
1509
+ ${this._renderSelectAll()}
1510
+
1511
+ ${c4(this.options, (opt) => opt.value, this._renderOption.bind(this))}
1512
+
1513
+ <li part="no-results" class="no-results">No results</li>
1514
+ </ul>
1515
+ </div>
1516
+ <slot name="option" @slotchange=${() => this.requestUpdate("options")}></slot>
1517
+ <div class="errormessage" id="error-msg-${this.id}" role="alert" aria-atomic="true"
1518
+ ?data-hidden="${!this._hasErrorContent()}" part="error">
1519
+ ${o8(alert2)}
1520
+ <slot name="error"></slot>
1521
+ </div>
1522
+ `;
1523
+ }
1524
+ };
1525
+ TtCombobox.styles = styles;
1526
+ TtCombobox.formAssociated = true;
1527
+ TtCombobox.shadowRootOptions = {
1528
+ ...i4.shadowRootOptions,
1529
+ delegatesFocus: true
1530
+ };
1531
+ __decorate([
1532
+ n4({ type: Boolean })
1533
+ ], TtCombobox.prototype, "multiselect", void 0);
1534
+ __decorate([
1535
+ n4({ type: Boolean })
1536
+ ], TtCombobox.prototype, "disabled", void 0);
1537
+ __decorate([
1538
+ n4({ type: Boolean })
1539
+ ], TtCombobox.prototype, "invalid", void 0);
1540
+ __decorate([
1541
+ n4({ type: Boolean, attribute: "display-select-all" })
1542
+ ], TtCombobox.prototype, "displaySelectAll", void 0);
1543
+ __decorate([
1544
+ n4({ type: Boolean })
1545
+ ], TtCombobox.prototype, "required", void 0);
1546
+ __decorate([
1547
+ n4({ type: String })
1548
+ ], TtCombobox.prototype, "name", void 0);
1549
+ __decorate([
1550
+ n4({ type: String, attribute: "aria-labelledby" })
1551
+ ], TtCombobox.prototype, "ariaLabelledby", void 0);
1552
+ __decorate([
1553
+ n4({ type: Boolean, attribute: "hide-caret" })
1554
+ ], TtCombobox.prototype, "hideCaret", void 0);
1555
+ __decorate([
1556
+ n4({ type: String })
1557
+ ], TtCombobox.prototype, "placeholder", void 0);
1558
+ __decorate([
1559
+ n4({ type: String, attribute: "select-all-placeholder" })
1560
+ ], TtCombobox.prototype, "selectAllPlaceholder", void 0);
1561
+ __decorate([
1562
+ n4({ type: Boolean, attribute: "open-upward" })
1563
+ ], TtCombobox.prototype, "openUpward", void 0);
1564
+ __decorate([
1565
+ r5()
1566
+ ], TtCombobox.prototype, "_activeOption", void 0);
1567
+ __decorate([
1568
+ r5()
1569
+ ], TtCombobox.prototype, "_expanded", void 0);
1570
+ __decorate([
1571
+ r5()
1572
+ ], TtCombobox.prototype, "_filter", void 0);
1573
+ __decorate([
1574
+ o6({ slot: "option", selector: "option" })
1575
+ ], TtCombobox.prototype, "options", void 0);
1576
+ __decorate([
1577
+ o6({ slot: "option", selector: "option:not([disabled])" })
1578
+ ], TtCombobox.prototype, "activeOptions", void 0);
1579
+ __decorate([
1580
+ o6({ slot: "error" })
1581
+ ], TtCombobox.prototype, "errorElements", void 0);
1582
+ __decorate([
1583
+ r6('li[role="option"]:not([aria-disabled="true"], [aria-hidden="true"])')
1584
+ ], TtCombobox.prototype, "_visibleOptions", void 0);
1585
+ __decorate([
1586
+ r6('li[role="option"]:not([aria-disabled="true"], [data-value="select-all"])')
1587
+ ], TtCombobox.prototype, "_selectableOptions", void 0);
1588
+ __decorate([
1589
+ r6('li[role="option"]:not([aria-disabled="true"], [data-value="select-all"], [aria-hidden="true"])')
1590
+ ], TtCombobox.prototype, "_selectableVisibleOptions", void 0);
1591
+ __decorate([
1592
+ r6('li[role="option"]:not([data-value="select-all"])[aria-selected="true"]')
1593
+ ], TtCombobox.prototype, "_selectedOptions", void 0);
1594
+ __decorate([
1595
+ r6('li[role="option"]:not([data-value="select-all"], [aria-hidden="true"])[aria-selected="true"]')
1596
+ ], TtCombobox.prototype, "_selectedVisibleOptions", void 0);
1597
+ __decorate([
1598
+ e5('input[role="combobox"]')
1599
+ ], TtCombobox.prototype, "_comboboxInput", void 0);
1600
+ __decorate([
1601
+ e5("button:has(svg)")
1602
+ ], TtCombobox.prototype, "_chevronButton", void 0);
1603
+ __decorate([
1604
+ n4({ type: Array, attribute: "value" })
1605
+ ], TtCombobox.prototype, "value", void 0);
1606
+
1607
+ // ../../node_modules/@triptease/tt-combobox/dist/src/tt-combobox.js
1608
+ if (typeof window !== "undefined") {
1609
+ if (!window.customElements.get("tt-combobox")) {
1610
+ window.customElements.define("tt-combobox", TtCombobox);
1611
+ }
1612
+ }
1613
+
713
1614
  // src/styles.ts
714
1615
  var visuallyHiddenCss = i`
715
1616
  position: absolute;
@@ -723,7 +1624,7 @@ var visuallyHiddenCss = i`
723
1624
  clip-path: inset(50%);
724
1625
  white-space: nowrap;
725
1626
  `;
726
- var styles = i`
1627
+ var styles2 = i`
727
1628
  :host {
728
1629
  --nav-bar-width: 260px;
729
1630
 
@@ -817,8 +1718,8 @@ var styles = i`
817
1718
 
818
1719
  .tertiary-nav.sidebar-closed {
819
1720
  .external-link,
820
- slot,
821
- hr {
1721
+ hr,
1722
+ #client-selector {
822
1723
  display: none;
823
1724
  visibility: hidden;
824
1725
  }
@@ -1046,6 +1947,31 @@ var styles = i`
1046
1947
  visibility: visible;
1047
1948
  opacity: 1;
1048
1949
  }
1950
+
1951
+ #client-selector {
1952
+ display: flex;
1953
+ align-items: center;
1954
+ }
1955
+
1956
+ #client-selector tt-combobox {
1957
+ --tt-combobox-color: var(--color-text-inverted-400);
1958
+ --tt-combobox-dropdown-color: var(--color-text-inverted-400);
1959
+ --tt-combobox-list-background-color: var(--color-surface-inverted-100);
1960
+ --tt-combobox-option-background-color-hover: var(--color-surface-inverted-200);
1961
+ --tt-combobox-placeholder-color: var(--color-text-inverted-300);
1962
+ --tt-combobox-background-color: var(--color-surface-inverted-100);
1963
+ --tt-combobox-hover-background-color: var(--color-surface-inverted-200);
1964
+ --tt-combobox-list-max-width: 80ch;
1965
+ --tt-combobox-min-width: 244px;
1966
+ --tt-combobox-max-width: 244px;
1967
+ }
1968
+
1969
+ .single-client-name {
1970
+ height: 39px;
1971
+ padding: var(--space-scale-1); /* match tt-combobox height */
1972
+ font-size: var(--font-size-100);
1973
+ color: var(--color-text-inverted-400);
1974
+ }
1049
1975
  `;
1050
1976
 
1051
1977
  // src/triptease-logo.ts
@@ -1076,10 +2002,19 @@ var Routes = {
1076
2002
  };
1077
2003
 
1078
2004
  // src/TtNavbar.ts
2005
+ var jsonArrayConverter = (value) => {
2006
+ if (!value) return [];
2007
+ try {
2008
+ return JSON.parse(value);
2009
+ } catch {
2010
+ return [];
2011
+ }
2012
+ };
1079
2013
  var TtNavbar = class extends i4 {
1080
2014
  constructor() {
1081
2015
  super(...arguments);
1082
2016
  this.campaignManagerUrl = "https://app.campaign-manager.triptease.io";
2017
+ this.clients = [];
1083
2018
  this.sidebarOpen = true;
1084
2019
  /*
1085
2020
  * Set the active state for the current page.
@@ -1152,9 +2087,9 @@ var TtNavbar = class extends i4 {
1152
2087
  this.closeAllDetails();
1153
2088
  this.sidebarOpen = !this.sidebarOpen;
1154
2089
  };
1155
- this.handleToggle = (e8) => {
1156
- const { newState } = e8;
1157
- const target = e8.currentTarget;
2090
+ this.handleToggle = (e10) => {
2091
+ const { newState } = e10;
2092
+ const target = e10.currentTarget;
1158
2093
  if (newState === "open") {
1159
2094
  if (!this.sidebarOpen) {
1160
2095
  this.sidebarOpen = true;
@@ -1168,9 +2103,9 @@ var TtNavbar = class extends i4 {
1168
2103
  if (!this.platformUrl) return formattedPath;
1169
2104
  return new URL(formattedPath, this.platformUrl).toString();
1170
2105
  };
1171
- this.onAnchorClick = (e8) => {
2106
+ this.onAnchorClick = (e10) => {
1172
2107
  if (this.navigate) {
1173
- this.navigate(e8);
2108
+ this.navigate(e10);
1174
2109
  this.setActiveState();
1175
2110
  }
1176
2111
  };
@@ -1183,12 +2118,12 @@ var TtNavbar = class extends i4 {
1183
2118
  <nav id=${this.id} class="${this.sidebarOpen ? "" : "sidebar-closed"}">
1184
2119
  <div class="sidebar-header ${this.sidebarOpen ? "" : "sidebar-closed"}">
1185
2120
  <div class="logo">
1186
- ${o7(tripteaseLogo)}
2121
+ ${o8(tripteaseLogo)}
1187
2122
  </div>
1188
2123
  <button id="navbar-toggle-btn" class="nav-item nav-toggle-button" @click=${this.toggleSidebar}>
1189
- ${o7(sidebarCollapsed)}
2124
+ ${o8(sidebarCollapsed)}
1190
2125
  <span class="tooltip nav-toggle-tooltip">
1191
- ${o7(sidebarCollapsed)}
2126
+ ${o8(sidebarCollapsed)}
1192
2127
  <span>Collapse sidebar</span>
1193
2128
  </span>
1194
2129
  </button>
@@ -1199,22 +2134,22 @@ var TtNavbar = class extends i4 {
1199
2134
  class="nav-item"
1200
2135
  href=${this.buildUrl("/")}
1201
2136
  @click=${this.onAnchorClick}
1202
- >${o7(home)}<span>Dashboard</span></a
2137
+ >${o8(home)}<span>Dashboard</span></a
1203
2138
  >
1204
2139
  <a id="${Routes.CampaignManager}" class="nav-item" href=${this.campaignManagerUrl}
1205
- >${o7(campaigns)}<span>Campaigns</span></a
2140
+ >${o8(campaigns)}<span>Campaigns</span></a
1206
2141
  >
1207
2142
  <a
1208
2143
  class="nav-item"
1209
2144
  href=${this.buildUrl("/channels")}
1210
2145
  @click=${this.onAnchorClick}
1211
- >${o7(channels)}<span>Channels</span></a
2146
+ >${o8(channels)}<span>Channels</span></a
1212
2147
  >
1213
2148
  <details id="market-insights" @toggle=${this.handleToggle}>
1214
2149
  <summary>
1215
- ${o7(graph)}
2150
+ ${o8(graph)}
1216
2151
  <span>Market Insights</span>
1217
- <span class="icon chevron"> ${o7(chevronDown)}</span>
2152
+ <span class="icon chevron"> ${o8(chevronDown)}</span>
1218
2153
  </summary>
1219
2154
  <div class="dropdown-items">
1220
2155
  <a
@@ -1233,9 +2168,9 @@ var TtNavbar = class extends i4 {
1233
2168
  </details>
1234
2169
  <details id="settings" @toggle=${this.handleToggle}>
1235
2170
  <summary>
1236
- ${o7(gear)}
2171
+ ${o8(gear)}
1237
2172
  <span>Settings</span>
1238
- <span class="icon chevron"> ${o7(chevronDown)}</span>
2173
+ <span class="icon chevron"> ${o8(chevronDown)}</span>
1239
2174
  </summary>
1240
2175
  <div class="dropdown-items">
1241
2176
  <a
@@ -1267,9 +2202,9 @@ var TtNavbar = class extends i4 {
1267
2202
  <hr />
1268
2203
  <details id="account" @toggle=${this.handleToggle}>
1269
2204
  <summary>
1270
- ${o7(user)}
2205
+ ${o8(user)}
1271
2206
  <span>Account</span>
1272
- <span class="icon chevron"> ${o7(chevronDown)}</span>
2207
+ <span class="icon chevron"> ${o8(chevronDown)}</span>
1273
2208
  </summary>
1274
2209
  <div class="dropdown-items">
1275
2210
  <a
@@ -1288,9 +2223,9 @@ var TtNavbar = class extends i4 {
1288
2223
  </details>
1289
2224
  <details id="billing-routes" @toggle=${this.handleToggle}>
1290
2225
  <summary>
1291
- ${o7(wallet)}
2226
+ ${o8(wallet)}
1292
2227
  <span>Billing</span>
1293
- <span class="icon chevron"> ${o7(chevronDown)}</span>
2228
+ <span class="icon chevron"> ${o8(chevronDown)}</span>
1294
2229
  </summary>
1295
2230
  <div>
1296
2231
  <a
@@ -1317,7 +2252,7 @@ var TtNavbar = class extends i4 {
1317
2252
  rel="noreferrer"
1318
2253
  >
1319
2254
  Feature requests
1320
- ${o7(external)}
2255
+ ${o8(external)}
1321
2256
  </a>
1322
2257
  <a
1323
2258
  class='nav-item external-link'
@@ -1326,7 +2261,7 @@ var TtNavbar = class extends i4 {
1326
2261
  rel="noreferrer"
1327
2262
  >
1328
2263
  Product updates
1329
- ${o7(external)}
2264
+ ${o8(external)}
1330
2265
  </a>
1331
2266
  <a
1332
2267
  class='nav-item external-link'
@@ -1335,25 +2270,42 @@ var TtNavbar = class extends i4 {
1335
2270
  rel="noreferrer"
1336
2271
  >
1337
2272
  Help center
1338
- ${o7(external)}
2273
+ ${o8(external)}
1339
2274
  </a>
1340
2275
  <hr />
1341
2276
  </div>
1342
2277
  <div class='nav-items'>
1343
- <slot id="client-selector" name="clientSelector"></slot>
2278
+ <div id="client-selector">
2279
+ ${this.clients.length > 1 ? x`
2280
+ <tt-combobox
2281
+ .openUpward=${true}
2282
+ .value=${this.clientKey}
2283
+ .onChange=${this.onClientChange}
2284
+ >
2285
+ ${this.clients.map((client) => x`
2286
+ <option slot="option" value=${client.clientKey}>
2287
+ ${client.displayName}
2288
+ </option>
2289
+ `)}
2290
+ </tt-combobox>
2291
+ ` : x`
2292
+ <div class="single-client-name">
2293
+ ${this.clients.find((m3) => m3.clientKey === this.clientKey)?.displayName}
2294
+ </div>
2295
+ `}
2296
+ </div>
1344
2297
  <a
1345
2298
  id="logout-link"
1346
2299
  class="nav-item"
1347
2300
  href=${this.buildUrl("/logout")}
1348
2301
  @click=${this.onAnchorClick}
1349
- >${o7(logout)}<span>Logout</span></a>
2302
+ >${o8(logout)}<span>Logout</span></a>
1350
2303
  </div>
1351
- <div>
1352
2304
  </nav>
1353
2305
  `;
1354
2306
  }
1355
2307
  };
1356
- TtNavbar.styles = styles;
2308
+ TtNavbar.styles = styles2;
1357
2309
  __decorateClass([
1358
2310
  n4({ type: Function })
1359
2311
  ], TtNavbar.prototype, "navigate", 2);
@@ -1369,6 +2321,12 @@ __decorateClass([
1369
2321
  __decorateClass([
1370
2322
  n4({ type: String, attribute: "active-route" })
1371
2323
  ], TtNavbar.prototype, "activeRoute", 2);
2324
+ __decorateClass([
2325
+ n4({ type: Array, converter: jsonArrayConverter })
2326
+ ], TtNavbar.prototype, "clients", 2);
2327
+ __decorateClass([
2328
+ n4({ type: Object })
2329
+ ], TtNavbar.prototype, "onClientChange", 2);
1372
2330
  __decorateClass([
1373
2331
  r6("details")
1374
2332
  ], TtNavbar.prototype, "allDetailsElements", 2);
@@ -1509,5 +2467,33 @@ lit-html/directives/unsafe-svg.js:
1509
2467
  * Copyright 2017 Google LLC
1510
2468
  * SPDX-License-Identifier: BSD-3-Clause
1511
2469
  *)
2470
+
2471
+ lit-html/directives/if-defined.js:
2472
+ (**
2473
+ * @license
2474
+ * Copyright 2018 Google LLC
2475
+ * SPDX-License-Identifier: BSD-3-Clause
2476
+ *)
2477
+
2478
+ lit-html/directive-helpers.js:
2479
+ (**
2480
+ * @license
2481
+ * Copyright 2020 Google LLC
2482
+ * SPDX-License-Identifier: BSD-3-Clause
2483
+ *)
2484
+
2485
+ lit-html/directives/repeat.js:
2486
+ (**
2487
+ * @license
2488
+ * Copyright 2017 Google LLC
2489
+ * SPDX-License-Identifier: BSD-3-Clause
2490
+ *)
2491
+
2492
+ lit-html/directives/guard.js:
2493
+ (**
2494
+ * @license
2495
+ * Copyright 2018 Google LLC
2496
+ * SPDX-License-Identifier: BSD-3-Clause
2497
+ *)
1512
2498
  */
1513
2499
  //# sourceMappingURL=index.js.map