@duyluonganduin/acl-web-components 0.0.64 → 0.0.65

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.
@@ -22,58 +22,58 @@ let o3 = class {
22
22
  return this.cssText;
23
23
  }
24
24
  };
25
- const n3 = (r) => new o3(typeof r == "string" ? r : r + "", void 0, j5), g = (r, ...e) => {
26
- const t = r.length === 1 ? r[0] : e.reduce((o, i, n) => o + ((l) => {
25
+ const r3 = (n) => new o3(typeof n == "string" ? n : n + "", void 0, j5), g = (n, ...e) => {
26
+ const t = n.length === 1 ? n[0] : e.reduce((o, i, r) => o + ((l) => {
27
27
  if (l._$cssResult$ === !0) return l.cssText;
28
28
  if (typeof l == "number") return l;
29
29
  throw Error("Value passed to 'css' function must be a 'css' function result: " + l + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
30
- })(i) + r[n + 1], r[0]);
31
- return new o3(t, r, j5);
32
- }, S3 = (r, e) => {
33
- if (N5) r.adoptedStyleSheets = e.map((t) => t instanceof CSSStyleSheet ? t : t.styleSheet);
30
+ })(i) + n[r + 1], n[0]);
31
+ return new o3(t, n, j5);
32
+ }, S3 = (n, e) => {
33
+ if (N5) n.adoptedStyleSheets = e.map((t) => t instanceof CSSStyleSheet ? t : t.styleSheet);
34
34
  else for (const t of e) {
35
35
  const o = document.createElement("style"), i = $2.litNonce;
36
- i !== void 0 && o.setAttribute("nonce", i), o.textContent = t.cssText, r.appendChild(o);
36
+ i !== void 0 && o.setAttribute("nonce", i), o.textContent = t.cssText, n.appendChild(o);
37
37
  }
38
- }, L4 = N5 ? (r) => r : (r) => r instanceof CSSStyleSheet ? ((e) => {
38
+ }, L4 = N5 ? (n) => n : (n) => n instanceof CSSStyleSheet ? ((e) => {
39
39
  let t = "";
40
40
  for (const o of e.cssRules) t += o.cssText;
41
- return n3(t);
42
- })(r) : r;
41
+ return r3(t);
42
+ })(n) : n;
43
43
  /**
44
44
  * @license
45
45
  * Copyright 2017 Google LLC
46
46
  * SPDX-License-Identifier: BSD-3-Clause
47
47
  */
48
- const { is: A3, defineProperty: D3, getOwnPropertyDescriptor: P3, getOwnPropertyNames: B3, getOwnPropertySymbols: F3, getPrototypeOf: I3 } = Object, h1 = globalThis, V4 = h1.trustedTypes, O3 = V4 ? V4.emptyScript : "", Y2 = h1.reactiveElementPolyfillSupport, s2 = (r, e) => r, E2 = { toAttribute(r, e) {
48
+ const { is: A3, defineProperty: D3, getOwnPropertyDescriptor: P3, getOwnPropertyNames: B3, getOwnPropertySymbols: F3, getPrototypeOf: I3 } = Object, h1 = globalThis, V4 = h1.trustedTypes, O3 = V4 ? V4.emptyScript : "", Y2 = h1.reactiveElementPolyfillSupport, s2 = (n, e) => n, E2 = { toAttribute(n, e) {
49
49
  switch (e) {
50
50
  case Boolean:
51
- r = r ? O3 : null;
51
+ n = n ? O3 : null;
52
52
  break;
53
53
  case Object:
54
54
  case Array:
55
- r = r == null ? r : JSON.stringify(r);
55
+ n = n == null ? n : JSON.stringify(n);
56
56
  }
57
- return r;
58
- }, fromAttribute(r, e) {
59
- let t = r;
57
+ return n;
58
+ }, fromAttribute(n, e) {
59
+ let t = n;
60
60
  switch (e) {
61
61
  case Boolean:
62
- t = r !== null;
62
+ t = n !== null;
63
63
  break;
64
64
  case Number:
65
- t = r === null ? null : Number(r);
65
+ t = n === null ? null : Number(n);
66
66
  break;
67
67
  case Object:
68
68
  case Array:
69
69
  try {
70
- t = JSON.parse(r);
70
+ t = JSON.parse(n);
71
71
  } catch {
72
72
  t = null;
73
73
  }
74
74
  }
75
75
  return t;
76
- } }, U5 = (r, e) => !A3(r, e), x4 = { attribute: !0, type: String, converter: E2, reflect: !1, useDefault: !1, hasChanged: U5 };
76
+ } }, U5 = (n, e) => !A3(n, e), x4 = { attribute: !0, type: String, converter: E2, reflect: !1, useDefault: !1, hasChanged: U5 };
77
77
  Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), h1.litPropertyMetadata ?? (h1.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
78
78
  let I1 = class extends HTMLElement {
79
79
  static addInitializer(e) {
@@ -89,14 +89,14 @@ let I1 = class extends HTMLElement {
89
89
  }
90
90
  }
91
91
  static getPropertyDescriptor(e, t, o) {
92
- const { get: i, set: n } = P3(this.prototype, e) ?? { get() {
92
+ const { get: i, set: r } = P3(this.prototype, e) ?? { get() {
93
93
  return this[t];
94
94
  }, set(l) {
95
95
  this[t] = l;
96
96
  } };
97
97
  return { get: i, set(l) {
98
98
  const d = i == null ? void 0 : i.call(this);
99
- n == null || n.call(this, l), this.requestUpdate(e, d, o);
99
+ r == null || r.call(this, l), this.requestUpdate(e, d, o);
100
100
  }, configurable: !0, enumerable: !0 };
101
101
  }
102
102
  static getPropertyOptions(e) {
@@ -181,34 +181,34 @@ let I1 = class extends HTMLElement {
181
181
  this._$AK(e, o);
182
182
  }
183
183
  _$ET(e, t) {
184
- var n;
184
+ var r;
185
185
  const o = this.constructor.elementProperties.get(e), i = this.constructor._$Eu(e, o);
186
186
  if (i !== void 0 && o.reflect === !0) {
187
- const l = (((n = o.converter) == null ? void 0 : n.toAttribute) !== void 0 ? o.converter : E2).toAttribute(t, o.type);
187
+ const l = (((r = o.converter) == null ? void 0 : r.toAttribute) !== void 0 ? o.converter : E2).toAttribute(t, o.type);
188
188
  this._$Em = e, l == null ? this.removeAttribute(i) : this.setAttribute(i, l), this._$Em = null;
189
189
  }
190
190
  }
191
191
  _$AK(e, t) {
192
- var n, l;
192
+ var r, l;
193
193
  const o = this.constructor, i = o._$Eh.get(e);
194
194
  if (i !== void 0 && this._$Em !== i) {
195
- const d = o.getPropertyOptions(i), c = typeof d.converter == "function" ? { fromAttribute: d.converter } : ((n = d.converter) == null ? void 0 : n.fromAttribute) !== void 0 ? d.converter : E2;
195
+ const d = o.getPropertyOptions(i), c = typeof d.converter == "function" ? { fromAttribute: d.converter } : ((r = d.converter) == null ? void 0 : r.fromAttribute) !== void 0 ? d.converter : E2;
196
196
  this._$Em = i;
197
197
  const C = c.fromAttribute(t, d.type);
198
198
  this[i] = C ?? ((l = this._$Ej) == null ? void 0 : l.get(i)) ?? C, this._$Em = null;
199
199
  }
200
200
  }
201
- requestUpdate(e, t, o, i = !1, n) {
201
+ requestUpdate(e, t, o, i = !1, r) {
202
202
  var l;
203
203
  if (e !== void 0) {
204
204
  const d = this.constructor;
205
- if (i === !1 && (n = this[e]), o ?? (o = d.getPropertyOptions(e)), !((o.hasChanged ?? U5)(n, t) || o.useDefault && o.reflect && n === ((l = this._$Ej) == null ? void 0 : l.get(e)) && !this.hasAttribute(d._$Eu(e, o)))) return;
205
+ if (i === !1 && (r = this[e]), o ?? (o = d.getPropertyOptions(e)), !((o.hasChanged ?? U5)(r, t) || o.useDefault && o.reflect && r === ((l = this._$Ej) == null ? void 0 : l.get(e)) && !this.hasAttribute(d._$Eu(e, o)))) return;
206
206
  this.C(e, t, o);
207
207
  }
208
208
  this.isUpdatePending === !1 && (this._$ES = this._$EP());
209
209
  }
210
- C(e, t, { useDefault: o, reflect: i, wrapped: n }, l) {
211
- o && !(this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Map())).has(e) && (this._$Ej.set(e, l ?? t ?? this[e]), n !== !0 || l !== void 0) || (this._$AL.has(e) || (this.hasUpdated || o || (t = void 0), this._$AL.set(e, t)), i === !0 && this._$Em !== e && (this._$Eq ?? (this._$Eq = /* @__PURE__ */ new Set())).add(e));
210
+ C(e, t, { useDefault: o, reflect: i, wrapped: r }, l) {
211
+ o && !(this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Map())).has(e) && (this._$Ej.set(e, l ?? t ?? this[e]), r !== !0 || l !== void 0) || (this._$AL.has(e) || (this.hasUpdated || o || (t = void 0), this._$AL.set(e, t)), i === !0 && this._$Em !== e && (this._$Eq ?? (this._$Eq = /* @__PURE__ */ new Set())).add(e));
212
212
  }
213
213
  async _$EP() {
214
214
  this.isUpdatePending = !0;
@@ -228,21 +228,21 @@ let I1 = class extends HTMLElement {
228
228
  if (!this.isUpdatePending) return;
229
229
  if (!this.hasUpdated) {
230
230
  if (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this._$Ep) {
231
- for (const [n, l] of this._$Ep) this[n] = l;
231
+ for (const [r, l] of this._$Ep) this[r] = l;
232
232
  this._$Ep = void 0;
233
233
  }
234
234
  const i = this.constructor.elementProperties;
235
- if (i.size > 0) for (const [n, l] of i) {
236
- const { wrapped: d } = l, c = this[n];
237
- d !== !0 || this._$AL.has(n) || c === void 0 || this.C(n, void 0, l, c);
235
+ if (i.size > 0) for (const [r, l] of i) {
236
+ const { wrapped: d } = l, c = this[r];
237
+ d !== !0 || this._$AL.has(r) || c === void 0 || this.C(r, void 0, l, c);
238
238
  }
239
239
  }
240
240
  let e = !1;
241
241
  const t = this._$AL;
242
242
  try {
243
243
  e = this.shouldUpdate(t), e ? (this.willUpdate(t), (o = this._$EO) == null || o.forEach((i) => {
244
- var n;
245
- return (n = i.hostUpdate) == null ? void 0 : n.call(i);
244
+ var r;
245
+ return (r = i.hostUpdate) == null ? void 0 : r.call(i);
246
246
  }), this.update(t)) : this._$EM();
247
247
  } catch (i) {
248
248
  throw e = !1, this._$EM(), i;
@@ -284,55 +284,55 @@ I1.elementStyles = [], I1.shadowRootOptions = { mode: "open" }, I1[s2("elementPr
284
284
  * Copyright 2017 Google LLC
285
285
  * SPDX-License-Identifier: BSD-3-Clause
286
286
  */
287
- const a2 = globalThis, M4 = (r) => r, z2 = a2.trustedTypes, w4 = z2 ? z2.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, r3 = "$lit$", p1 = `lit$${Math.random().toFixed(9).slice(2)}$`, l3 = "?" + p1, T3 = `<${l3}>`, k1 = document, c2 = () => k1.createComment(""), C2 = (r) => r === null || typeof r != "object" && typeof r != "function", G5 = Array.isArray, N3 = (r) => G5(r) || typeof (r == null ? void 0 : r[Symbol.iterator]) == "function", q2 = `[
287
+ const a2 = globalThis, w4 = (n) => n, z2 = a2.trustedTypes, M4 = z2 ? z2.createPolicy("lit-html", { createHTML: (n) => n }) : void 0, n3 = "$lit$", p1 = `lit$${Math.random().toFixed(9).slice(2)}$`, l3 = "?" + p1, T3 = `<${l3}>`, k1 = document, c2 = () => k1.createComment(""), C2 = (n) => n === null || typeof n != "object" && typeof n != "function", G5 = Array.isArray, N3 = (n) => G5(n) || typeof (n == null ? void 0 : n[Symbol.iterator]) == "function", q2 = `[
288
288
  \f\r]`, e2 = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Z4 = /-->/g, k4 = />/g, V1 = RegExp(`>|${q2}(?:([^\\s"'>=/]+)(${q2}*=${q2}*(?:[^
289
- \f\r"'\`<>=]|("|')|))|$)`, "g"), R4 = /'/g, $4 = /"/g, s3 = /^(?:script|style|textarea|title)$/i, a3 = (r) => (e, ...t) => ({ _$litType$: r, strings: e, values: t }), a = a3(1), u2 = a3(2), R1 = Symbol.for("lit-noChange"), u = Symbol.for("lit-nothing"), E4 = /* @__PURE__ */ new WeakMap(), M1 = k1.createTreeWalker(k1, 129);
290
- function d3(r, e) {
291
- if (!G5(r) || !r.hasOwnProperty("raw")) throw Error("invalid template strings array");
292
- return w4 !== void 0 ? w4.createHTML(e) : e;
289
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), R4 = /'/g, $4 = /"/g, s3 = /^(?:script|style|textarea|title)$/i, a3 = (n) => (e, ...t) => ({ _$litType$: n, strings: e, values: t }), a = a3(1), u2 = a3(2), R1 = Symbol.for("lit-noChange"), u = Symbol.for("lit-nothing"), E4 = /* @__PURE__ */ new WeakMap(), w1 = k1.createTreeWalker(k1, 129);
290
+ function d3(n, e) {
291
+ if (!G5(n) || !n.hasOwnProperty("raw")) throw Error("invalid template strings array");
292
+ return M4 !== void 0 ? M4.createHTML(e) : e;
293
293
  }
294
- const j3 = (r, e) => {
295
- const t = r.length - 1, o = [];
296
- let i, n = e === 2 ? "<svg>" : e === 3 ? "<math>" : "", l = e2;
294
+ const j3 = (n, e) => {
295
+ const t = n.length - 1, o = [];
296
+ let i, r = e === 2 ? "<svg>" : e === 3 ? "<math>" : "", l = e2;
297
297
  for (let d = 0; d < t; d++) {
298
- const c = r[d];
298
+ const c = n[d];
299
299
  let C, p, f = -1, H = 0;
300
300
  for (; H < c.length && (l.lastIndex = H, p = l.exec(c), p !== null); ) H = l.lastIndex, l === e2 ? p[1] === "!--" ? l = Z4 : p[1] !== void 0 ? l = k4 : p[2] !== void 0 ? (s3.test(p[2]) && (i = RegExp("</" + p[2], "g")), l = V1) : p[3] !== void 0 && (l = V1) : l === V1 ? p[0] === ">" ? (l = i ?? e2, f = -1) : p[1] === void 0 ? f = -2 : (f = l.lastIndex - p[2].length, C = p[1], l = p[3] === void 0 ? V1 : p[3] === '"' ? $4 : R4) : l === $4 || l === R4 ? l = V1 : l === Z4 || l === k4 ? l = e2 : (l = V1, i = void 0);
301
- const m = l === V1 && r[d + 1].startsWith("/>") ? " " : "";
302
- n += l === e2 ? c + T3 : f >= 0 ? (o.push(C), c.slice(0, f) + r3 + c.slice(f) + p1 + m) : c + p1 + (f === -2 ? d : m);
301
+ const m = l === V1 && n[d + 1].startsWith("/>") ? " " : "";
302
+ r += l === e2 ? c + T3 : f >= 0 ? (o.push(C), c.slice(0, f) + n3 + c.slice(f) + p1 + m) : c + p1 + (f === -2 ? d : m);
303
303
  }
304
- return [d3(r, n + (r[t] || "<?>") + (e === 2 ? "</svg>" : e === 3 ? "</math>" : "")), o];
304
+ return [d3(n, r + (n[t] || "<?>") + (e === 2 ? "</svg>" : e === 3 ? "</math>" : "")), o];
305
305
  };
306
306
  class p2 {
307
307
  constructor({ strings: e, _$litType$: t }, o) {
308
308
  let i;
309
309
  this.parts = [];
310
- let n = 0, l = 0;
310
+ let r = 0, l = 0;
311
311
  const d = e.length - 1, c = this.parts, [C, p] = j3(e, t);
312
- if (this.el = p2.createElement(C, o), M1.currentNode = this.el.content, t === 2 || t === 3) {
312
+ if (this.el = p2.createElement(C, o), w1.currentNode = this.el.content, t === 2 || t === 3) {
313
313
  const f = this.el.content.firstChild;
314
314
  f.replaceWith(...f.childNodes);
315
315
  }
316
- for (; (i = M1.nextNode()) !== null && c.length < d; ) {
316
+ for (; (i = w1.nextNode()) !== null && c.length < d; ) {
317
317
  if (i.nodeType === 1) {
318
- if (i.hasAttributes()) for (const f of i.getAttributeNames()) if (f.endsWith(r3)) {
318
+ if (i.hasAttributes()) for (const f of i.getAttributeNames()) if (f.endsWith(n3)) {
319
319
  const H = p[l++], m = i.getAttribute(f).split(p1), V = /([.?@])?(.*)/.exec(H);
320
- c.push({ type: 1, index: n, name: V[2], strings: m, ctor: V[1] === "." ? G3 : V[1] === "?" ? K3 : V[1] === "@" ? W3 : K2 }), i.removeAttribute(f);
321
- } else f.startsWith(p1) && (c.push({ type: 6, index: n }), i.removeAttribute(f));
320
+ c.push({ type: 1, index: r, name: V[2], strings: m, ctor: V[1] === "." ? G3 : V[1] === "?" ? K3 : V[1] === "@" ? W3 : K2 }), i.removeAttribute(f);
321
+ } else f.startsWith(p1) && (c.push({ type: 6, index: r }), i.removeAttribute(f));
322
322
  if (s3.test(i.tagName)) {
323
323
  const f = i.textContent.split(p1), H = f.length - 1;
324
324
  if (H > 0) {
325
325
  i.textContent = z2 ? z2.emptyScript : "";
326
- for (let m = 0; m < H; m++) i.append(f[m], c2()), M1.nextNode(), c.push({ type: 2, index: ++n });
326
+ for (let m = 0; m < H; m++) i.append(f[m], c2()), w1.nextNode(), c.push({ type: 2, index: ++r });
327
327
  i.append(f[H], c2());
328
328
  }
329
329
  }
330
- } else if (i.nodeType === 8) if (i.data === l3) c.push({ type: 2, index: n });
330
+ } else if (i.nodeType === 8) if (i.data === l3) c.push({ type: 2, index: r });
331
331
  else {
332
332
  let f = -1;
333
- for (; (f = i.data.indexOf(p1, f + 1)) !== -1; ) c.push({ type: 7, index: n }), f += p1.length - 1;
333
+ for (; (f = i.data.indexOf(p1, f + 1)) !== -1; ) c.push({ type: 7, index: r }), f += p1.length - 1;
334
334
  }
335
- n++;
335
+ r++;
336
336
  }
337
337
  }
338
338
  static createElement(e, t) {
@@ -340,12 +340,12 @@ class p2 {
340
340
  return o.innerHTML = e, o;
341
341
  }
342
342
  }
343
- function T1(r, e, t = r, o) {
343
+ function T1(n, e, t = n, o) {
344
344
  var l, d;
345
345
  if (e === R1) return e;
346
346
  let i = o !== void 0 ? (l = t._$Co) == null ? void 0 : l[o] : t._$Cl;
347
- const n = C2(e) ? void 0 : e._$litDirective$;
348
- return (i == null ? void 0 : i.constructor) !== n && ((d = i == null ? void 0 : i._$AO) == null || d.call(i, !1), n === void 0 ? i = void 0 : (i = new n(r), i._$AT(r, t, o)), o !== void 0 ? (t._$Co ?? (t._$Co = []))[o] = i : t._$Cl = i), i !== void 0 && (e = T1(r, i._$AS(r, e.values), i, o)), e;
347
+ const r = C2(e) ? void 0 : e._$litDirective$;
348
+ return (i == null ? void 0 : i.constructor) !== r && ((d = i == null ? void 0 : i._$AO) == null || d.call(i, !1), r === void 0 ? i = void 0 : (i = new r(n), i._$AT(n, t, o)), o !== void 0 ? (t._$Co ?? (t._$Co = []))[o] = i : t._$Cl = i), i !== void 0 && (e = T1(n, i._$AS(n, e.values), i, o)), e;
349
349
  }
350
350
  class U3 {
351
351
  constructor(e, t) {
@@ -359,16 +359,16 @@ class U3 {
359
359
  }
360
360
  u(e) {
361
361
  const { el: { content: t }, parts: o } = this._$AD, i = ((e == null ? void 0 : e.creationScope) ?? k1).importNode(t, !0);
362
- M1.currentNode = i;
363
- let n = M1.nextNode(), l = 0, d = 0, c = o[0];
362
+ w1.currentNode = i;
363
+ let r = w1.nextNode(), l = 0, d = 0, c = o[0];
364
364
  for (; c !== void 0; ) {
365
365
  if (l === c.index) {
366
366
  let C;
367
- c.type === 2 ? C = new k2(n, n.nextSibling, this, e) : c.type === 1 ? C = new c.ctor(n, c.name, c.strings, this, e) : c.type === 6 && (C = new Y3(n, this, e)), this._$AV.push(C), c = o[++d];
367
+ c.type === 2 ? C = new k2(r, r.nextSibling, this, e) : c.type === 1 ? C = new c.ctor(r, c.name, c.strings, this, e) : c.type === 6 && (C = new Y3(r, this, e)), this._$AV.push(C), c = o[++d];
368
368
  }
369
- l !== (c == null ? void 0 : c.index) && (n = M1.nextNode(), l++);
369
+ l !== (c == null ? void 0 : c.index) && (r = w1.nextNode(), l++);
370
370
  }
371
- return M1.currentNode = k1, i;
371
+ return w1.currentNode = k1, i;
372
372
  }
373
373
  p(e) {
374
374
  let t = 0;
@@ -407,9 +407,9 @@ class k2 {
407
407
  this._$AH !== u && C2(this._$AH) ? this._$AA.nextSibling.data = e : this.T(k1.createTextNode(e)), this._$AH = e;
408
408
  }
409
409
  $(e) {
410
- var n;
410
+ var r;
411
411
  const { values: t, _$litType$: o } = e, i = typeof o == "number" ? this._$AC(e) : (o.el === void 0 && (o.el = p2.createElement(d3(o.h, o.h[0]), this.options)), o);
412
- if (((n = this._$AH) == null ? void 0 : n._$AD) === i) this._$AH.p(t);
412
+ if (((r = this._$AH) == null ? void 0 : r._$AD) === i) this._$AH.p(t);
413
413
  else {
414
414
  const l = new U3(i, this), d = l.u(this.options);
415
415
  l.p(t), this.T(d), this._$AH = l;
@@ -423,14 +423,14 @@ class k2 {
423
423
  G5(this._$AH) || (this._$AH = [], this._$AR());
424
424
  const t = this._$AH;
425
425
  let o, i = 0;
426
- for (const n of e) i === t.length ? t.push(o = new k2(this.O(c2()), this.O(c2()), this, this.options)) : o = t[i], o._$AI(n), i++;
426
+ for (const r of e) i === t.length ? t.push(o = new k2(this.O(c2()), this.O(c2()), this, this.options)) : o = t[i], o._$AI(r), i++;
427
427
  i < t.length && (this._$AR(o && o._$AB.nextSibling, i), t.length = i);
428
428
  }
429
429
  _$AR(e = this._$AA.nextSibling, t) {
430
430
  var o;
431
431
  for ((o = this._$AP) == null ? void 0 : o.call(this, !1, !0, t); e !== this._$AB; ) {
432
- const i = M4(e).nextSibling;
433
- M4(e).remove(), e = i;
432
+ const i = w4(e).nextSibling;
433
+ w4(e).remove(), e = i;
434
434
  }
435
435
  }
436
436
  setConnected(e) {
@@ -445,17 +445,17 @@ class K2 {
445
445
  get _$AU() {
446
446
  return this._$AM._$AU;
447
447
  }
448
- constructor(e, t, o, i, n) {
449
- this.type = 1, this._$AH = u, this._$AN = void 0, this.element = e, this.name = t, this._$AM = i, this.options = n, o.length > 2 || o[0] !== "" || o[1] !== "" ? (this._$AH = Array(o.length - 1).fill(new String()), this.strings = o) : this._$AH = u;
448
+ constructor(e, t, o, i, r) {
449
+ this.type = 1, this._$AH = u, this._$AN = void 0, this.element = e, this.name = t, this._$AM = i, this.options = r, o.length > 2 || o[0] !== "" || o[1] !== "" ? (this._$AH = Array(o.length - 1).fill(new String()), this.strings = o) : this._$AH = u;
450
450
  }
451
451
  _$AI(e, t = this, o, i) {
452
- const n = this.strings;
452
+ const r = this.strings;
453
453
  let l = !1;
454
- if (n === void 0) e = T1(this, e, t, 0), l = !C2(e) || e !== this._$AH && e !== R1, l && (this._$AH = e);
454
+ if (r === void 0) e = T1(this, e, t, 0), l = !C2(e) || e !== this._$AH && e !== R1, l && (this._$AH = e);
455
455
  else {
456
456
  const d = e;
457
457
  let c, C;
458
- for (e = n[0], c = 0; c < n.length - 1; c++) C = T1(this, d[o + c], t, c), C === R1 && (C = this._$AH[c]), l || (l = !C2(C) || C !== this._$AH[c]), C === u ? e = u : e !== u && (e += (C ?? "") + n[c + 1]), this._$AH[c] = C;
458
+ for (e = r[0], c = 0; c < r.length - 1; c++) C = T1(this, d[o + c], t, c), C === R1 && (C = this._$AH[c]), l || (l = !C2(C) || C !== this._$AH[c]), C === u ? e = u : e !== u && (e += (C ?? "") + r[c + 1]), this._$AH[c] = C;
459
459
  }
460
460
  l && !i && this.j(e);
461
461
  }
@@ -480,13 +480,13 @@ class K3 extends K2 {
480
480
  }
481
481
  }
482
482
  class W3 extends K2 {
483
- constructor(e, t, o, i, n) {
484
- super(e, t, o, i, n), this.type = 5;
483
+ constructor(e, t, o, i, r) {
484
+ super(e, t, o, i, r), this.type = 5;
485
485
  }
486
486
  _$AI(e, t = this) {
487
487
  if ((e = T1(this, e, t, 0) ?? u) === R1) return;
488
- const o = this._$AH, i = e === u && o !== u || e.capture !== o.capture || e.once !== o.once || e.passive !== o.passive, n = e !== u && (o === u || i);
489
- i && this.element.removeEventListener(this.name, this, o), n && this.element.addEventListener(this.name, this, e), this._$AH = e;
488
+ const o = this._$AH, i = e === u && o !== u || e.capture !== o.capture || e.once !== o.once || e.passive !== o.passive, r = e !== u && (o === u || i);
489
+ i && this.element.removeEventListener(this.name, this, o), r && this.element.addEventListener(this.name, this, e), this._$AH = e;
490
490
  }
491
491
  handleEvent(e) {
492
492
  var t;
@@ -506,14 +506,14 @@ class Y3 {
506
506
  }
507
507
  const X2 = a2.litHtmlPolyfillSupport;
508
508
  X2 == null || X2(p2, k2), (a2.litHtmlVersions ?? (a2.litHtmlVersions = [])).push("3.3.2");
509
- const q3 = (r, e, t) => {
509
+ const q3 = (n, e, t) => {
510
510
  const o = (t == null ? void 0 : t.renderBefore) ?? e;
511
511
  let i = o._$litPart$;
512
512
  if (i === void 0) {
513
- const n = (t == null ? void 0 : t.renderBefore) ?? null;
514
- o._$litPart$ = i = new k2(e.insertBefore(c2(), n), n, void 0, t ?? {});
513
+ const r = (t == null ? void 0 : t.renderBefore) ?? null;
514
+ o._$litPart$ = i = new k2(e.insertBefore(c2(), r), r, void 0, t ?? {});
515
515
  }
516
- return i._$AI(r), i;
516
+ return i._$AI(n), i;
517
517
  };
518
518
  /**
519
519
  * @license
@@ -556,66 +556,66 @@ J2 == null || J2({ LitElement: h });
556
556
  * Copyright 2017 Google LLC
557
557
  * SPDX-License-Identifier: BSD-3-Clause
558
558
  */
559
- const X3 = { attribute: !0, type: String, converter: E2, reflect: !1, hasChanged: U5 }, J3 = (r = X3, e, t) => {
559
+ const X3 = { attribute: !0, type: String, converter: E2, reflect: !1, hasChanged: U5 }, J3 = (n = X3, e, t) => {
560
560
  const { kind: o, metadata: i } = t;
561
- let n = globalThis.litPropertyMetadata.get(i);
562
- if (n === void 0 && globalThis.litPropertyMetadata.set(i, n = /* @__PURE__ */ new Map()), o === "setter" && ((r = Object.create(r)).wrapped = !0), n.set(t.name, r), o === "accessor") {
561
+ let r = globalThis.litPropertyMetadata.get(i);
562
+ if (r === void 0 && globalThis.litPropertyMetadata.set(i, r = /* @__PURE__ */ new Map()), o === "setter" && ((n = Object.create(n)).wrapped = !0), r.set(t.name, n), o === "accessor") {
563
563
  const { name: l } = t;
564
564
  return { set(d) {
565
565
  const c = e.get.call(this);
566
- e.set.call(this, d), this.requestUpdate(l, c, r, !0, d);
566
+ e.set.call(this, d), this.requestUpdate(l, c, n, !0, d);
567
567
  }, init(d) {
568
- return d !== void 0 && this.C(l, void 0, r, d), d;
568
+ return d !== void 0 && this.C(l, void 0, n, d), d;
569
569
  } };
570
570
  }
571
571
  if (o === "setter") {
572
572
  const { name: l } = t;
573
573
  return function(d) {
574
574
  const c = this[l];
575
- e.call(this, d), this.requestUpdate(l, c, r, !0, d);
575
+ e.call(this, d), this.requestUpdate(l, c, n, !0, d);
576
576
  };
577
577
  }
578
578
  throw Error("Unsupported decorator location: " + o);
579
579
  };
580
- function s(r) {
581
- return (e, t) => typeof t == "object" ? J3(r, e, t) : ((o, i, n) => {
582
- const l = i.hasOwnProperty(n);
583
- return i.constructor.createProperty(n, o), l ? Object.getOwnPropertyDescriptor(i, n) : void 0;
584
- })(r, e, t);
580
+ function s(n) {
581
+ return (e, t) => typeof t == "object" ? J3(n, e, t) : ((o, i, r) => {
582
+ const l = i.hasOwnProperty(r);
583
+ return i.constructor.createProperty(r, o), l ? Object.getOwnPropertyDescriptor(i, r) : void 0;
584
+ })(n, e, t);
585
585
  }
586
586
  /**
587
587
  * @license
588
588
  * Copyright 2017 Google LLC
589
589
  * SPDX-License-Identifier: BSD-3-Clause
590
590
  */
591
- function b(r) {
592
- return s({ ...r, state: !0, attribute: !1 });
591
+ function b(n) {
592
+ return s({ ...n, state: !0, attribute: !1 });
593
593
  }
594
594
  /**
595
595
  * @license
596
596
  * Copyright 2017 Google LLC
597
597
  * SPDX-License-Identifier: BSD-3-Clause
598
598
  */
599
- const Q3 = (r, e, t) => (t.configurable = !0, t.enumerable = !0, Reflect.decorate && typeof e != "object" && Object.defineProperty(r, e, t), t);
599
+ const Q3 = (n, e, t) => (t.configurable = !0, t.enumerable = !0, Reflect.decorate && typeof e != "object" && Object.defineProperty(n, e, t), t);
600
600
  /**
601
601
  * @license
602
602
  * Copyright 2017 Google LLC
603
603
  * SPDX-License-Identifier: BSD-3-Clause
604
604
  */
605
- function k(r, e) {
605
+ function k(n, e) {
606
606
  return (t, o, i) => {
607
- const n = (l) => {
607
+ const r = (l) => {
608
608
  var d;
609
- return ((d = l.renderRoot) == null ? void 0 : d.querySelector(r)) ?? null;
609
+ return ((d = l.renderRoot) == null ? void 0 : d.querySelector(n)) ?? null;
610
610
  };
611
611
  return Q3(t, o, { get() {
612
- return n(this);
612
+ return r(this);
613
613
  } });
614
614
  };
615
615
  }
616
- var et = Object.defineProperty, c3 = (r, e, t, o) => {
617
- for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
618
- (l = r[n]) && (i = l(e, t, i) || i);
616
+ var et = Object.defineProperty, c3 = (n, e, t, o) => {
617
+ for (var i = void 0, r = n.length - 1, l; r >= 0; r--)
618
+ (l = n[r]) && (i = l(e, t, i) || i);
619
619
  return i && et(e, t, i), i;
620
620
  };
621
621
  const X5 = class X5 extends h {
@@ -640,14 +640,14 @@ const X5 = class X5 extends h {
640
640
  const [e, t] = this.getSizeParams(this.size), o = this.percent === "" || this.percent === null;
641
641
  let i;
642
642
  o ? i = 0.75 * Math.PI * e : i = (1 - Math.max(0, Math.min(1, parseFloat(this.percent) || 0))) * Math.PI * e;
643
- const n = t / 2, l = t + e, d = e / 2, c = Math.PI * e;
643
+ const r = t / 2, l = t + e, d = e / 2, c = Math.PI * e;
644
644
  return u2`
645
645
  <svg
646
646
  class=${o ? "spinner" : ""}
647
647
  width="${e}px"
648
648
  height="${e}px"
649
649
  transform="rotate(-90)"
650
- viewBox="-${n} -${n} ${l} ${l}"
650
+ viewBox="-${r} -${r} ${l} ${l}"
651
651
  xmlns="http://www.w3.org/2000/svg"
652
652
  >
653
653
  <circle
@@ -688,9 +688,9 @@ c3([
688
688
  s()
689
689
  ], h2.prototype, "percent");
690
690
  customElements.get("anduin-spinner") || customElements.define("anduin-spinner", h2);
691
- var tt = Object.defineProperty, C3 = (r, e, t, o) => {
692
- for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
693
- (l = r[n]) && (i = l(e, t, i) || i);
691
+ var tt = Object.defineProperty, C3 = (n, e, t, o) => {
692
+ for (var i = void 0, r = n.length - 1, l; r >= 0; r--)
693
+ (l = n[r]) && (i = l(e, t, i) || i);
694
694
  return i && tt(e, t, i), i;
695
695
  };
696
696
  const z4 = "M7.23359 3.5336C7.49685 2.82213 8.50314 2.82213 8.76641 3.5336L9.63534 5.88184C9.71811 6.10553 9.89447 6.28189 10.1182 6.36466L12.4664 7.23359C13.1779 7.49685 13.1779 8.50314 12.4664 8.76641L10.1182 9.63534C9.89447 9.71811 9.71811 9.89447 9.63534 10.1182L8.76641 12.4664C8.50314 13.1779 7.49685 13.1779 7.23359 12.4664L6.36466 10.1182C6.28189 9.89447 6.10553 9.71811 5.88185 9.63534L3.5336 8.76641C2.82213 8.50314 2.82213 7.49685 3.5336 7.23359L5.88184 6.36466C6.10553 6.28189 6.28189 6.10553 6.36466 5.88185L7.23359 3.5336Z", it = { small: 16, medium: 24, large: 32 }, J5 = class J5 extends h {
@@ -761,9 +761,9 @@ C3([
761
761
  s({ reflect: !0 })
762
762
  ], g2.prototype, "color");
763
763
  customElements.get("anduin-sparkle-spinner") || customElements.define("anduin-sparkle-spinner", g2);
764
- var ot = Object.defineProperty, K5 = (r, e, t, o) => {
765
- for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
766
- (l = r[n]) && (i = l(e, t, i) || i);
764
+ var ot = Object.defineProperty, K5 = (n, e, t, o) => {
765
+ for (var i = void 0, r = n.length - 1, l; r >= 0; r--)
766
+ (l = n[r]) && (i = l(e, t, i) || i);
767
767
  return i && ot(e, t, i), i;
768
768
  };
769
769
  const u3 = [
@@ -809,15 +809,15 @@ const u3 = [
809
809
  originY: 39.0175,
810
810
  delay: -0.97
811
811
  }
812
- ], S4 = 20, A4 = 5, nt = 900, rt = 160, D4 = 2, lt = "cubic-bezier(0.22, 0.61, 0.36, 1)", Q2 = 180, o2 = "ai-spinner--loading", n2 = "ai-spinner--settling", w1 = "ai-spinner__segment", st = u3.map(
813
- (r) => `
814
- .${w1}--${r.index} {
815
- transform-origin: ${r.originX}px ${r.originY}px;
812
+ ], S4 = 20, A4 = 5, rt = 900, nt = 160, D4 = 2, lt = "cubic-bezier(0.22, 0.61, 0.36, 1)", Q2 = 180, o2 = "ai-spinner--loading", r2 = "ai-spinner--settling", M1 = "ai-spinner__segment", st = u3.map(
813
+ (n) => `
814
+ .${M1}--${n.index} {
815
+ transform-origin: ${n.originX}px ${n.originY}px;
816
816
  }
817
817
 
818
- .${o2} .${w1}--${r.index},
819
- .${n2} .${w1}--${r.index} {
820
- animation-delay: ${r.delay}s;
818
+ .${o2} .${M1}--${n.index},
819
+ .${r2} .${M1}--${n.index} {
820
+ animation-delay: ${n.delay}s;
821
821
  }
822
822
  `
823
823
  ).join(`
@@ -841,7 +841,7 @@ const u3 = [
841
841
  ${u3.map(
842
842
  (t) => u2`
843
843
  <path
844
- class="${w1} ${w1}--${t.index}"
844
+ class="${M1} ${M1}--${t.index}"
845
845
  fill="currentColor"
846
846
  d=${t.d}
847
847
  />
@@ -861,26 +861,26 @@ const u3 = [
861
861
  applyPhase(e) {
862
862
  const t = this.wrapper;
863
863
  if (!t) return;
864
- const o = this.currentRotationDegrees(t), i = t.classList.contains(o2) || t.classList.contains(n2);
864
+ const o = this.currentRotationDegrees(t), i = t.classList.contains(o2) || t.classList.contains(r2);
865
865
  e ? (this.cancelSettle(t), this.cancelSegmentRest(t), o !== null && o >= D4 ? t.style.setProperty("animation-delay", `${-(o / 360 * A4)}s`) : t.style.removeProperty("animation-delay"), t.classList.add(o2)) : i && (o !== null && 360 - o >= D4 ? (this.cancelSettle(t), t.classList.remove(o2), this.startSettle(t, o)) : this.restSegments(t));
866
866
  }
867
867
  /** The mark's current rotation in [0, 360), or null when it is not rotating (static, or reduced motion). */
868
868
  currentRotationDegrees(e) {
869
869
  const t = getComputedStyle(e).transform;
870
870
  if (!t || t === "none") return null;
871
- const o = t.slice(t.indexOf("(") + 1, t.indexOf(")")).split(",").map((n) => Number(n.trim()));
871
+ const o = t.slice(t.indexOf("(") + 1, t.indexOf(")")).split(",").map((r) => Number(r.trim()));
872
872
  if (o.length < 2 || o.some(Number.isNaN)) return null;
873
873
  const i = Math.atan2(o[1], o[0]) * 180 / Math.PI;
874
874
  return i < 0 ? i + 360 : i;
875
875
  }
876
876
  startSettle(e, t) {
877
- const o = 360 - t, i = Math.max(rt, o / 360 * nt);
878
- e.classList.add(n2), e.style.setProperty("transition", "none"), e.style.setProperty("transform", `rotate(${t}deg)`), e.offsetHeight, e.style.setProperty("transition", `transform ${i}ms ${lt}`), e.style.setProperty("transform", "rotate(360deg)"), this.settleListener = (n) => {
879
- n.target === e && n.propertyName === "transform" && this.restSegments(e);
877
+ const o = 360 - t, i = Math.max(nt, o / 360 * rt);
878
+ e.classList.add(r2), e.style.setProperty("transition", "none"), e.style.setProperty("transform", `rotate(${t}deg)`), e.offsetHeight, e.style.setProperty("transition", `transform ${i}ms ${lt}`), e.style.setProperty("transform", "rotate(360deg)"), this.settleListener = (r) => {
879
+ r.target === e && r.propertyName === "transform" && this.restSegments(e);
880
880
  }, e.addEventListener("transitionend", this.settleListener);
881
881
  }
882
882
  cancelSettle(e) {
883
- this.detachSettleListener(e), e.classList.remove(n2), e.style.removeProperty("transition"), e.style.removeProperty("transform");
883
+ this.detachSettleListener(e), e.classList.remove(r2), e.style.removeProperty("transition"), e.style.removeProperty("transform");
884
884
  }
885
885
  detachSettleListener(e) {
886
886
  this.settleListener && (e.removeEventListener("transitionend", this.settleListener), this.settleListener = void 0);
@@ -894,33 +894,33 @@ const u3 = [
894
894
  */
895
895
  restSegments(e) {
896
896
  this.detachSettleListener(e), this.cancelSegmentRest(e), e.style.removeProperty("transition"), e.style.removeProperty("transform");
897
- const o = Array.from(e.querySelectorAll(`.${w1}`)).map((n) => {
898
- const l = getComputedStyle(n);
899
- return { segment: n, transform: l.transform, opacity: l.opacity };
897
+ const o = Array.from(e.querySelectorAll(`.${M1}`)).map((r) => {
898
+ const l = getComputedStyle(r);
899
+ return { segment: r, transform: l.transform, opacity: l.opacity };
900
900
  });
901
901
  if (!o.some(
902
- (n) => n.transform && n.transform !== "none" || Number(n.opacity) < 1
902
+ (r) => r.transform && r.transform !== "none" || Number(r.opacity) < 1
903
903
  )) {
904
904
  this.dropPhaseClasses(e);
905
905
  return;
906
906
  }
907
- for (const { segment: n, transform: l, opacity: d } of o)
908
- n.style.setProperty("transition", "none"), n.style.setProperty("transform", l), n.style.setProperty("opacity", d);
907
+ for (const { segment: r, transform: l, opacity: d } of o)
908
+ r.style.setProperty("transition", "none"), r.style.setProperty("transform", l), r.style.setProperty("opacity", d);
909
909
  this.dropPhaseClasses(e), e.offsetHeight;
910
- for (const { segment: n } of o)
911
- n.style.setProperty(
910
+ for (const { segment: r } of o)
911
+ r.style.setProperty(
912
912
  "transition",
913
913
  `transform ${Q2}ms linear, opacity ${Q2}ms linear`
914
- ), n.style.setProperty("transform", "none"), n.style.setProperty("opacity", "1");
914
+ ), r.style.setProperty("transform", "none"), r.style.setProperty("opacity", "1");
915
915
  this.segmentRestTimer = setTimeout(() => this.cancelSegmentRest(e), Q2);
916
916
  }
917
917
  cancelSegmentRest(e) {
918
918
  this.segmentRestTimer !== void 0 && (clearTimeout(this.segmentRestTimer), this.segmentRestTimer = void 0);
919
- for (const t of e.querySelectorAll(`.${w1}`))
919
+ for (const t of e.querySelectorAll(`.${M1}`))
920
920
  t.style.removeProperty("transition"), t.style.removeProperty("transform"), t.style.removeProperty("opacity");
921
921
  }
922
922
  dropPhaseClasses(e) {
923
- e.classList.remove(o2), e.classList.remove(n2);
923
+ e.classList.remove(o2), e.classList.remove(r2);
924
924
  }
925
925
  };
926
926
  Q5.styles = g`
@@ -958,7 +958,7 @@ Q5.styles = g`
958
958
  animation: ai-spinner-pulse 1.52s linear infinite;
959
959
  }
960
960
 
961
- ${n3(st)}
961
+ ${r3(st)}
962
962
 
963
963
  @keyframes ai-spinner-spin {
964
964
  to {
@@ -1370,9 +1370,9 @@ const P4 = {
1370
1370
  zoomOut: [{ d: "M4.5 6.25C4.08579 6.25 3.75 6.58579 3.75 7C3.75 7.41421 4.08579 7.75 4.5 7.75H9.5C9.91421 7.75 10.25 7.41421 10.25 7C10.25 6.58579 9.91421 6.25 9.5 6.25H4.5ZM7 14C8.57591 14 10.0302 13.4792 11.2001 12.6004C11.2281 12.6376 11.259 12.6733 11.2929 12.7071L14.2929 15.7071C14.6834 16.0976 15.3166 16.0976 15.7071 15.7071C16.0976 15.3166 16.0976 14.6834 15.7071 14.2929L12.7071 11.2929C12.6733 11.259 12.6376 11.2281 12.6004 11.2001C13.4792 10.0302 14 8.57591 14 7C14 3.13401 10.866 0 7 0C3.13401 0 0 3.13401 0 7C0 10.866 3.13401 14 7 14ZM7 12.5C10.0376 12.5 12.5 10.0376 12.5 7C12.5 3.96243 10.0376 1.5 7 1.5C3.96243 1.5 1.5 3.96243 1.5 7C1.5 10.0376 3.96243 12.5 7 12.5Z", fillRule: "evenodd", clipRule: "evenodd" }],
1371
1371
  zz: [{ d: "M9.75 1.02686C9.33579 1.02686 9 1.36264 9 1.77686C9 2.19107 9.33579 2.52686 9.75 2.52686H12.8186L9.13336 7.84995C8.97457 8.07931 8.9562 8.37784 9.08567 8.62494C9.21513 8.87203 9.47104 9.02686 9.75 9.02686H14.25C14.6642 9.02686 15 8.69107 15 8.27686C15 7.86264 14.6642 7.52686 14.25 7.52686H11.1814L14.8666 2.20376C15.0254 1.97441 15.0438 1.67587 14.9143 1.42878C14.7849 1.18168 14.529 1.02686 14.25 1.02686H9.75ZM1.75 7.02686C1.33579 7.02686 1 7.36264 1 7.77686C1 8.19107 1.33579 8.52686 1.75 8.52686H4.81858L1.13336 13.8499C0.974572 14.0793 0.956201 14.3778 1.08567 14.6249C1.21513 14.872 1.47104 15.0269 1.75 15.0269H6.25C6.66422 15.0269 7 14.6911 7 14.2769C7 13.8626 6.66422 13.5269 6.25 13.5269H3.18143L6.86665 8.20376C7.02543 7.97441 7.0438 7.67587 6.91434 7.42878C6.78487 7.18168 6.52896 7.02686 6.25 7.02686H1.75Z", fillRule: "evenodd", clipRule: "evenodd" }]
1372
1372
  };
1373
- var at = Object.defineProperty, p3 = (r, e, t, o) => {
1374
- for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
1375
- (l = r[n]) && (i = l(e, t, i) || i);
1373
+ var at = Object.defineProperty, p3 = (n, e, t, o) => {
1374
+ for (var i = void 0, r = n.length - 1, l; r >= 0; r--)
1375
+ (l = n[r]) && (i = l(e, t, i) || i);
1376
1376
  return i && at(e, t, i), i;
1377
1377
  };
1378
1378
  const ee = class ee extends h {
@@ -1415,9 +1415,9 @@ p3([
1415
1415
  s({ type: Number })
1416
1416
  ], f2.prototype, "size");
1417
1417
  customElements.get("anduin-icon") || customElements.define("anduin-icon", f2);
1418
- var dt = Object.defineProperty, ct = (r, e, t, o) => {
1419
- for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
1420
- (l = r[n]) && (i = l(e, t, i) || i);
1418
+ var dt = Object.defineProperty, ct = (n, e, t, o) => {
1419
+ for (var i = void 0, r = n.length - 1, l; r >= 0; r--)
1420
+ (l = n[r]) && (i = l(e, t, i) || i);
1421
1421
  return i && dt(e, t, i), i;
1422
1422
  };
1423
1423
  const h3 = g`
@@ -1448,7 +1448,7 @@ const h3 = g`
1448
1448
  .badge--bold-warning { background-color: var(--color-warning); color: var(--color-warning-foreground); }
1449
1449
  .badge--hidden { display: none; }
1450
1450
  `;
1451
- function g3(r) {
1451
+ function g3(n) {
1452
1452
  return {
1453
1453
  gray: "badge--light-gray",
1454
1454
  primary: "badge--light-primary",
@@ -1460,7 +1460,7 @@ function g3(r) {
1460
1460
  boldSuccess: "badge--bold-success",
1461
1461
  boldWarning: "badge--bold-warning",
1462
1462
  boldDanger: "badge--bold-danger"
1463
- }[r || "gray"] || "badge--light-gray";
1463
+ }[n || "gray"] || "badge--light-gray";
1464
1464
  }
1465
1465
  const te = class te extends h {
1466
1466
  constructor() {
@@ -1477,9 +1477,9 @@ ct([
1477
1477
  s()
1478
1478
  ], S2.prototype, "variant");
1479
1479
  customElements.get("anduin-badge") || customElements.define("anduin-badge", S2);
1480
- var Ct = Object.defineProperty, f3 = (r, e, t, o) => {
1481
- for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
1482
- (l = r[n]) && (i = l(e, t, i) || i);
1480
+ var Ct = Object.defineProperty, f3 = (n, e, t, o) => {
1481
+ for (var i = void 0, r = n.length - 1, l; r >= 0; r--)
1482
+ (l = n[r]) && (i = l(e, t, i) || i);
1483
1483
  return i && Ct(e, t, i), i;
1484
1484
  };
1485
1485
  const ie = class ie extends h {
@@ -1508,13 +1508,13 @@ f3([
1508
1508
  s({ type: Number })
1509
1509
  ], v2.prototype, "count");
1510
1510
  customElements.get("anduin-badge-count") || customElements.define("anduin-badge-count", v2);
1511
- var ut = Object.defineProperty, F = (r, e, t, o) => {
1512
- for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
1513
- (l = r[n]) && (i = l(e, t, i) || i);
1511
+ var ut = Object.defineProperty, F = (n, e, t, o) => {
1512
+ for (var i = void 0, r = n.length - 1, l; r >= 0; r--)
1513
+ (l = n[r]) && (i = l(e, t, i) || i);
1514
1514
  return i && ut(e, t, i), i;
1515
1515
  };
1516
- function pt(r) {
1517
- return r.replace(/([A-Z])/g, (e) => `-${e.toLowerCase()}`);
1516
+ function pt(n) {
1517
+ return n.replace(/([A-Z])/g, (e) => `-${e.toLowerCase()}`);
1518
1518
  }
1519
1519
  const oe = class oe extends h {
1520
1520
  constructor() {
@@ -1697,7 +1697,7 @@ F([
1697
1697
  b()
1698
1698
  ], $.prototype, "iconOnly");
1699
1699
  F([
1700
- s({ converter: (r) => r || "filled" })
1700
+ s({ converter: (n) => n || "filled" })
1701
1701
  ], $.prototype, "appearance");
1702
1702
  F([
1703
1703
  s()
@@ -1739,12 +1739,12 @@ F([
1739
1739
  s()
1740
1740
  ], $.prototype, "label");
1741
1741
  customElements.get("anduin-button") || customElements.define("anduin-button", $);
1742
- var ht = Object.defineProperty, gt = (r, e, t, o) => {
1743
- for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
1744
- (l = r[n]) && (i = l(e, t, i) || i);
1742
+ var ht = Object.defineProperty, gt = (n, e, t, o) => {
1743
+ for (var i = void 0, r = n.length - 1, l; r >= 0; r--)
1744
+ (l = n[r]) && (i = l(e, t, i) || i);
1745
1745
  return i && ht(e, t, i), i;
1746
1746
  };
1747
- const ne = class ne extends h {
1747
+ const re = class re extends h {
1748
1748
  constructor() {
1749
1749
  super(...arguments), this.variant = "gray";
1750
1750
  }
@@ -1757,7 +1757,7 @@ const ne = class ne extends h {
1757
1757
  `;
1758
1758
  }
1759
1759
  };
1760
- ne.styles = g`
1760
+ re.styles = g`
1761
1761
  :host { display: block; font-family: var(--font-sans); }
1762
1762
  .callout {
1763
1763
  display: flex; align-items: center; justify-content: center;
@@ -1769,17 +1769,17 @@ ne.styles = g`
1769
1769
  .callout--danger { background-color: var(--color-destructive); color: var(--color-destructive-foreground); }
1770
1770
  .callout--warning { background-color: var(--color-warning); color: var(--color-warning-foreground); }
1771
1771
  `;
1772
- let A2 = ne;
1772
+ let A2 = re;
1773
1773
  gt([
1774
1774
  s()
1775
1775
  ], A2.prototype, "variant");
1776
1776
  customElements.get("anduin-callout") || customElements.define("anduin-callout", A2);
1777
- var ft = Object.defineProperty, v3 = (r, e, t, o) => {
1778
- for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
1779
- (l = r[n]) && (i = l(e, t, i) || i);
1777
+ var ft = Object.defineProperty, v3 = (n, e, t, o) => {
1778
+ for (var i = void 0, r = n.length - 1, l; r >= 0; r--)
1779
+ (l = n[r]) && (i = l(e, t, i) || i);
1780
1780
  return i && ft(e, t, i), i;
1781
1781
  };
1782
- const re = class re extends h {
1782
+ const ne = class ne extends h {
1783
1783
  constructor() {
1784
1784
  super(...arguments), this.direction = "horizontal", this.hasContent = !1;
1785
1785
  }
@@ -1792,8 +1792,8 @@ const re = class re extends h {
1792
1792
  onSlotChange(e) {
1793
1793
  const o = e.target.assignedNodes({ flatten: !0 });
1794
1794
  this.hasContent = o.some((i) => {
1795
- var n;
1796
- return ((n = i.textContent) == null ? void 0 : n.trim()) !== "";
1795
+ var r;
1796
+ return ((r = i.textContent) == null ? void 0 : r.trim()) !== "";
1797
1797
  });
1798
1798
  }
1799
1799
  render() {
@@ -1810,7 +1810,7 @@ const re = class re extends h {
1810
1810
  </div>` : a`<div class="divider--horizontal divider--horizontal-empty"><slot @slotchange=${this.onSlotChange}></slot></div>`;
1811
1811
  }
1812
1812
  };
1813
- re.styles = g`
1813
+ ne.styles = g`
1814
1814
  :host { display: block; width: 100%; font-family: var(--font-sans); }
1815
1815
  :host([direction="vertical"]) { width: auto; height: 100%; }
1816
1816
  .divider--horizontal { margin-top: 8px; margin-bottom: 8px; width: 100%; display: grid; grid-template-columns: 1fr auto 1fr; column-gap: 8px; text-align: center; }
@@ -1820,7 +1820,7 @@ re.styles = g`
1820
1820
  .divider--vertical-empty { background-color: var(--color-border); width: 1px; }
1821
1821
  .divider__line--vertical { border-left: 1px solid var(--color-border); justify-self: center; }
1822
1822
  `;
1823
- let b2 = re;
1823
+ let b2 = ne;
1824
1824
  v3([
1825
1825
  s({ reflect: !0 })
1826
1826
  ], b2.prototype, "direction");
@@ -1828,9 +1828,9 @@ v3([
1828
1828
  b()
1829
1829
  ], b2.prototype, "hasContent");
1830
1830
  customElements.get("anduin-divider") || customElements.define("anduin-divider", b2);
1831
- var vt = Object.defineProperty, bt = (r, e, t, o) => {
1832
- for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
1833
- (l = r[n]) && (i = l(e, t, i) || i);
1831
+ var vt = Object.defineProperty, bt = (n, e, t, o) => {
1832
+ for (var i = void 0, r = n.length - 1, l; r >= 0; r--)
1833
+ (l = n[r]) && (i = l(e, t, i) || i);
1834
1834
  return i && vt(e, t, i), i;
1835
1835
  };
1836
1836
  const le = class le extends h {
@@ -1856,9 +1856,9 @@ bt([
1856
1856
  s()
1857
1857
  ], D2.prototype, "variant");
1858
1858
  customElements.get("anduin-dot") || customElements.define("anduin-dot", D2);
1859
- var mt = Object.defineProperty, b3 = (r, e, t, o) => {
1860
- for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
1861
- (l = r[n]) && (i = l(e, t, i) || i);
1859
+ var mt = Object.defineProperty, b3 = (n, e, t, o) => {
1860
+ for (var i = void 0, r = n.length - 1, l; r >= 0; r--)
1861
+ (l = n[r]) && (i = l(e, t, i) || i);
1862
1862
  return i && mt(e, t, i), i;
1863
1863
  };
1864
1864
  const se = class se extends h {
@@ -1901,9 +1901,9 @@ b3([
1901
1901
  s()
1902
1902
  ], m2.prototype, "height");
1903
1903
  customElements.get("anduin-progress") || customElements.define("anduin-progress", m2);
1904
- var Ht = Object.defineProperty, q1 = (r, e, t, o) => {
1905
- for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
1906
- (l = r[n]) && (i = l(e, t, i) || i);
1904
+ var Ht = Object.defineProperty, q1 = (n, e, t, o) => {
1905
+ for (var i = void 0, r = n.length - 1, l; r >= 0; r--)
1906
+ (l = n[r]) && (i = l(e, t, i) || i);
1907
1907
  return i && Ht(e, t, i), i;
1908
1908
  };
1909
1909
  const ae = class ae extends h {
@@ -1944,29 +1944,29 @@ ae.styles = g`
1944
1944
  0% { transform: translateX(-100%); } 100% { transform: translateX(100%); }
1945
1945
  }
1946
1946
  `;
1947
- let r1 = ae;
1947
+ let n1 = ae;
1948
1948
  q1([
1949
1949
  s()
1950
- ], r1.prototype, "effect");
1950
+ ], n1.prototype, "effect");
1951
1951
  q1([
1952
1952
  s()
1953
- ], r1.prototype, "shape");
1953
+ ], n1.prototype, "shape");
1954
1954
  q1([
1955
1955
  s()
1956
- ], r1.prototype, "height");
1956
+ ], n1.prototype, "height");
1957
1957
  q1([
1958
1958
  s()
1959
- ], r1.prototype, "width");
1959
+ ], n1.prototype, "width");
1960
1960
  q1([
1961
1961
  s({ type: Number })
1962
- ], r1.prototype, "duration");
1962
+ ], n1.prototype, "duration");
1963
1963
  q1([
1964
1964
  s({ attribute: "font-size" })
1965
- ], r1.prototype, "fontSize");
1966
- customElements.get("anduin-skeleton") || customElements.define("anduin-skeleton", r1);
1967
- var _t = Object.defineProperty, yt = (r, e, t, o) => {
1968
- for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
1969
- (l = r[n]) && (i = l(e, t, i) || i);
1965
+ ], n1.prototype, "fontSize");
1966
+ customElements.get("anduin-skeleton") || customElements.define("anduin-skeleton", n1);
1967
+ var _t = Object.defineProperty, yt = (n, e, t, o) => {
1968
+ for (var i = void 0, r = n.length - 1, l; r >= 0; r--)
1969
+ (l = n[r]) && (i = l(e, t, i) || i);
1970
1970
  return i && _t(e, t, i), i;
1971
1971
  };
1972
1972
  const de = class de extends h {
@@ -1995,9 +1995,9 @@ yt([
1995
1995
  s()
1996
1996
  ], P2.prototype, "height");
1997
1997
  customElements.get("anduin-loading-state") || customElements.define("anduin-loading-state", P2);
1998
- var Lt = Object.defineProperty, W5 = (r, e, t, o) => {
1999
- for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
2000
- (l = r[n]) && (i = l(e, t, i) || i);
1998
+ var Lt = Object.defineProperty, W5 = (n, e, t, o) => {
1999
+ for (var i = void 0, r = n.length - 1, l; r >= 0; r--)
2000
+ (l = n[r]) && (i = l(e, t, i) || i);
2001
2001
  return i && Lt(e, t, i), i;
2002
2002
  };
2003
2003
  const m3 = "anduin-field:label-click", f1 = "anduin-field:label-click-coordinated", ce = class ce extends h {
@@ -2107,9 +2107,9 @@ customElements.get("anduin-field-label") || customElements.define("anduin-field-
2107
2107
  customElements.get("anduin-field-description") || customElements.define("anduin-field-description", a5);
2108
2108
  customElements.get("anduin-field-error") || customElements.define("anduin-field-error", d5);
2109
2109
  customElements.get("anduin-field-group") || customElements.define("anduin-field-group", c5);
2110
- var Vt = Object.defineProperty, R2 = (r, e, t, o) => {
2111
- for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
2112
- (l = r[n]) && (i = l(e, t, i) || i);
2110
+ var Vt = Object.defineProperty, R2 = (n, e, t, o) => {
2111
+ for (var i = void 0, r = n.length - 1, l; r >= 0; r--)
2112
+ (l = n[r]) && (i = l(e, t, i) || i);
2113
2113
  return i && Vt(e, t, i), i;
2114
2114
  };
2115
2115
  const xt = "anduin-checkbox:change", ge = class ge extends h {
@@ -2221,12 +2221,12 @@ R2([
2221
2221
  s()
2222
2222
  ], v1.prototype, "inputid");
2223
2223
  customElements.get("anduin-checkbox") || customElements.define("anduin-checkbox", v1);
2224
- var Mt = Object.defineProperty, Y = (r, e, t, o) => {
2225
- for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
2226
- (l = r[n]) && (i = l(e, t, i) || i);
2227
- return i && Mt(e, t, i), i;
2224
+ var wt = Object.defineProperty, Y = (n, e, t, o) => {
2225
+ for (var i = void 0, r = n.length - 1, l; r >= 0; r--)
2226
+ (l = n[r]) && (i = l(e, t, i) || i);
2227
+ return i && wt(e, t, i), i;
2228
2228
  };
2229
- const B4 = "anduin-input:change", wt = "anduin-input:clear", j2 = class j2 extends h {
2229
+ const B4 = "anduin-input:change", Mt = "anduin-input:clear", j2 = class j2 extends h {
2230
2230
  constructor() {
2231
2231
  super(...arguments), this.value = "", this.size = "default", this.disabled = !1, this.readonly = !1, this.placeholder = "", this.inputid = "", this.status = "", this.startIcon = "", this.endIcon = "", this.clearable = !1;
2232
2232
  }
@@ -2280,10 +2280,10 @@ const B4 = "anduin-input:change", wt = "anduin-input:clear", j2 = class j2 exten
2280
2280
  }
2281
2281
  onClear() {
2282
2282
  var e;
2283
- this.value = "", this.inputEl && (this.inputEl.value = ""), this.dispatchEvent(new CustomEvent(B4, { detail: "", bubbles: !0, composed: !0 })), this.dispatchEvent(new CustomEvent(wt, { bubbles: !0, composed: !0 })), (e = this.inputEl) == null || e.focus();
2283
+ this.value = "", this.inputEl && (this.inputEl.value = ""), this.dispatchEvent(new CustomEvent(B4, { detail: "", bubbles: !0, composed: !0 })), this.dispatchEvent(new CustomEvent(Mt, { bubbles: !0, composed: !0 })), (e = this.inputEl) == null || e.focus();
2284
2284
  }
2285
2285
  render() {
2286
- const e = this.size === "small" ? "input--small" : this.size === "large" ? "input--large" : "input--default", t = this.status ? `input--${this.status}` : "", o = !!this.startIcon, i = !!this.endIcon || this.clearable && !!this.value, n = this.clearable && !!this.value && !this.disabled && !this.readonly, l = this.size === "small" ? "12" : this.size === "large" ? "20" : "16", d = this.size === "small" ? "10" : this.size === "large" ? "16" : "14";
2286
+ const e = this.size === "small" ? "input--small" : this.size === "large" ? "input--large" : "input--default", t = this.status ? `input--${this.status}` : "", o = !!this.startIcon, i = !!this.endIcon || this.clearable && !!this.value, r = this.clearable && !!this.value && !this.disabled && !this.readonly, l = this.size === "small" ? "12" : this.size === "large" ? "20" : "16", d = this.size === "small" ? "10" : this.size === "large" ? "16" : "14";
2287
2287
  return a`
2288
2288
  <div class="input-wrapper">
2289
2289
  ${o ? a`
@@ -2310,7 +2310,7 @@ const B4 = "anduin-input:change", wt = "anduin-input:clear", j2 = class j2 exten
2310
2310
 
2311
2311
  ${i ? a`
2312
2312
  <span class="input__end">
2313
- ${n ? a`
2313
+ ${r ? a`
2314
2314
  <button class="input__clear" type="button" @click=${this.onClear} aria-label="Clear">
2315
2315
  <anduin-icon name="cross" size=${d}></anduin-icon>
2316
2316
  </button>
@@ -2414,9 +2414,9 @@ Y([
2414
2414
  k("input")
2415
2415
  ], I.prototype, "inputEl");
2416
2416
  customElements.get("anduin-input") || customElements.define("anduin-input", I);
2417
- var Zt = Object.defineProperty, H3 = (r, e, t, o) => {
2418
- for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
2419
- (l = r[n]) && (i = l(e, t, i) || i);
2417
+ var Zt = Object.defineProperty, H3 = (n, e, t, o) => {
2418
+ for (var i = void 0, r = n.length - 1, l; r >= 0; r--)
2419
+ (l = n[r]) && (i = l(e, t, i) || i);
2420
2420
  return i && Zt(e, t, i), i;
2421
2421
  };
2422
2422
  const _3 = "anduin-tooltip:show", Y5 = "anduin-tooltip:hide", y3 = "anduin-tooltip:trigger-mounted", L3 = "anduin-tooltip:content-popup-mounted", V3 = "anduin-tooltip:content-popup-unmounted", x3 = "anduin-tooltip:visibility-changed", kt = [
@@ -2433,59 +2433,59 @@ const _3 = "anduin-tooltip:show", Y5 = "anduin-tooltip:hide", y3 = "anduin-toolt
2433
2433
  "left-center",
2434
2434
  "left-end"
2435
2435
  ];
2436
- function F4(r, e, t, o, i) {
2436
+ function F4(n, e, t, o, i) {
2437
2437
  switch (o) {
2438
2438
  case "top-start":
2439
- return { left: r.left, top: r.top - t - i };
2439
+ return { left: n.left, top: n.top - t - i };
2440
2440
  case "top-center":
2441
- return { left: r.left + r.width / 2 - e / 2, top: r.top - t - i };
2441
+ return { left: n.left + n.width / 2 - e / 2, top: n.top - t - i };
2442
2442
  case "top-end":
2443
- return { left: r.left + r.width - e, top: r.top - t - i };
2443
+ return { left: n.left + n.width - e, top: n.top - t - i };
2444
2444
  case "right-start":
2445
- return { left: r.right + i, top: r.top };
2445
+ return { left: n.right + i, top: n.top };
2446
2446
  case "right-center":
2447
- return { left: r.right + i, top: r.top + r.height / 2 - t / 2 };
2447
+ return { left: n.right + i, top: n.top + n.height / 2 - t / 2 };
2448
2448
  case "right-end":
2449
- return { left: r.right + i, top: r.top + r.height - t };
2449
+ return { left: n.right + i, top: n.top + n.height - t };
2450
2450
  case "bottom-start":
2451
- return { left: r.left, top: r.bottom + i };
2451
+ return { left: n.left, top: n.bottom + i };
2452
2452
  case "bottom-center":
2453
- return { left: r.left + r.width / 2 - e / 2, top: r.bottom + i };
2453
+ return { left: n.left + n.width / 2 - e / 2, top: n.bottom + i };
2454
2454
  case "bottom-end":
2455
- return { left: r.left + r.width - e, top: r.bottom + i };
2455
+ return { left: n.left + n.width - e, top: n.bottom + i };
2456
2456
  case "left-start":
2457
- return { left: r.left - e - i, top: r.top };
2457
+ return { left: n.left - e - i, top: n.top };
2458
2458
  case "left-center":
2459
- return { left: r.left - e - i, top: r.top + r.height / 2 - t / 2 };
2459
+ return { left: n.left - e - i, top: n.top + n.height / 2 - t / 2 };
2460
2460
  case "left-end":
2461
- return { left: r.left - e - i, top: r.top + r.height - t };
2461
+ return { left: n.left - e - i, top: n.top + n.height - t };
2462
2462
  default:
2463
2463
  return { left: 0, top: 0 };
2464
2464
  }
2465
2465
  }
2466
- function I4(r, e) {
2467
- return e.right >= r.left && e.left <= r.right && e.top <= r.bottom && e.bottom >= r.top;
2466
+ function I4(n, e) {
2467
+ return e.right >= n.left && e.left <= n.right && e.top <= n.bottom && e.bottom >= n.top;
2468
2468
  }
2469
- function O4(r, e) {
2470
- const t = Math.max(r.left, e.left), o = Math.max(r.top, e.top), i = Math.min(r.right, e.right), n = Math.min(r.bottom, e.bottom);
2471
- return i < t || n < o ? 0 : (i - t) * (n - o);
2469
+ function O4(n, e) {
2470
+ const t = Math.max(n.left, e.left), o = Math.max(n.top, e.top), i = Math.min(n.right, e.right), r = Math.min(n.bottom, e.bottom);
2471
+ return i < t || r < o ? 0 : (i - t) * (r - o);
2472
2472
  }
2473
- function Rt(r, e, t, o = 8) {
2474
- const i = window.innerWidth, n = window.innerHeight, l = { left: 0, top: 0, right: i, bottom: n }, d = e.width, c = e.height;
2473
+ function Rt(n, e, t, o = 8) {
2474
+ const i = window.innerWidth, r = window.innerHeight, l = { left: 0, top: 0, right: i, bottom: r }, d = e.width, c = e.height;
2475
2475
  if (!I4(
2476
- { left: r.left, top: r.top, right: r.right, bottom: r.bottom },
2476
+ { left: n.left, top: n.top, right: n.right, bottom: n.bottom },
2477
2477
  l
2478
2478
  )) return null;
2479
- const C = F4(r, d, c, t, o), p = kt.map((m) => ({ p: m, off: F4(r, d, c, m, o) })).filter(({ off: m }) => I4({ left: m.left, top: m.top, right: m.left + d, bottom: m.top + c }, l));
2479
+ const C = F4(n, d, c, t, o), p = kt.map((m) => ({ p: m, off: F4(n, d, c, m, o) })).filter(({ off: m }) => I4({ left: m.left, top: m.top, right: m.left + d, bottom: m.top + c }, l));
2480
2480
  if (p.length === 0)
2481
2481
  return {
2482
2482
  placement: t,
2483
2483
  left: Math.round(Math.min(Math.max(C.left, 0), i - d)),
2484
- top: Math.round(Math.min(Math.max(C.top, 0), n - c))
2484
+ top: Math.round(Math.min(Math.max(C.top, 0), r - c))
2485
2485
  };
2486
2486
  p.sort((m, V) => {
2487
- const y = { left: m.off.left, top: m.off.top, right: m.off.left + d, bottom: m.off.top + c }, v = { left: V.off.left, top: V.off.top, right: V.off.left + d, bottom: V.off.top + c }, x = O4(y, l), M = O4(v, l);
2488
- if (M !== x) return M - x;
2487
+ const y = { left: m.off.left, top: m.off.top, right: m.off.left + d, bottom: m.off.top + c }, v = { left: V.off.left, top: V.off.top, right: V.off.left + d, bottom: V.off.top + c }, x = O4(y, l), w = O4(v, l);
2488
+ if (w !== x) return w - x;
2489
2489
  const D = Math.abs(m.off.left - C.left) + Math.abs(m.off.top - C.top), K = Math.abs(V.off.left - C.left) + Math.abs(V.off.top - C.top);
2490
2490
  return D - K;
2491
2491
  });
@@ -2493,17 +2493,17 @@ function Rt(r, e, t, o = 8) {
2493
2493
  return {
2494
2494
  placement: f,
2495
2495
  left: Math.round(Math.min(Math.max(H.left, 0), i - d)),
2496
- top: Math.round(Math.min(Math.max(H.top, 0), n - c))
2496
+ top: Math.round(Math.min(Math.max(H.top, 0), r - c))
2497
2497
  };
2498
2498
  }
2499
- function C5(r) {
2500
- return r.split("-")[0] || "top";
2499
+ function C5(n) {
2500
+ return n.split("-")[0] || "top";
2501
2501
  }
2502
- function $t(r, e, t) {
2502
+ function $t(n, e, t) {
2503
2503
  let o = !1, i = t.length - 1;
2504
- for (let n = 0; n < t.length; n++) {
2505
- const l = t[n][0], d = t[n][1], c = t[i][0], C = t[i][1];
2506
- d > e != C > e && r < (c - l) * (e - d) / (C - d) + l && (o = !o), i = n;
2504
+ for (let r = 0; r < t.length; r++) {
2505
+ const l = t[r][0], d = t[r][1], c = t[i][0], C = t[i][1];
2506
+ d > e != C > e && n < (c - l) * (e - d) / (C - d) + l && (o = !o), i = r;
2507
2507
  }
2508
2508
  return o;
2509
2509
  }
@@ -2536,8 +2536,8 @@ const fe = class fe extends h {
2536
2536
  startPositionLoop() {
2537
2537
  this.stopPositionLoop(), this.prevTriggerTop = NaN, this.prevTriggerLeft = NaN;
2538
2538
  const e = this.triggerElement, t = this.contentPopupElement, o = this.placement, i = () => {
2539
- const n = e.getBoundingClientRect();
2540
- (n.top !== this.prevTriggerTop || n.left !== this.prevTriggerLeft) && (this.prevTriggerTop = n.top, this.prevTriggerLeft = n.left, this.positionPopup(t, e, o)), this.rafId = requestAnimationFrame(i);
2539
+ const r = e.getBoundingClientRect();
2540
+ (r.top !== this.prevTriggerTop || r.left !== this.prevTriggerLeft) && (this.prevTriggerTop = r.top, this.prevTriggerLeft = r.left, this.positionPopup(t, e, o)), this.rafId = requestAnimationFrame(i);
2541
2541
  };
2542
2542
  this.rafId = requestAnimationFrame(i);
2543
2543
  }
@@ -2551,7 +2551,7 @@ const fe = class fe extends h {
2551
2551
  this.containingBlockLeft = i.left, this.containingBlockTop = i.top, t.style.transform = o;
2552
2552
  }
2553
2553
  positionPopup(e, t, o) {
2554
- const i = t.getBoundingClientRect(), n = e.getBoundingClientRect(), l = Rt(i, n, o, 8);
2554
+ const i = t.getBoundingClientRect(), r = e.getBoundingClientRect(), l = Rt(i, r, o, 8);
2555
2555
  if (l) {
2556
2556
  const d = e;
2557
2557
  d.style.transform = `translate(${l.left - this.containingBlockLeft}px, ${l.top - this.containingBlockTop}px)`;
@@ -2609,9 +2609,9 @@ let u5 = ve;
2609
2609
  const be = class be extends h {
2610
2610
  constructor() {
2611
2611
  super(...arguments), this.graceArea = null, this.triggerEl = null, this.popupEl = null, this.handlePointerMove = (e) => {
2612
- var n, l;
2612
+ var r, l;
2613
2613
  if (!this.graceArea) return;
2614
- const t = e.target, o = ((n = this.triggerEl) == null ? void 0 : n.contains(t)) ?? !1, i = ((l = this.popupEl) == null ? void 0 : l.contains(t)) ?? !1;
2614
+ const t = e.target, o = ((r = this.triggerEl) == null ? void 0 : r.contains(t)) ?? !1, i = ((l = this.popupEl) == null ? void 0 : l.contains(t)) ?? !1;
2615
2615
  o || i ? this.graceArea = null : $t(e.clientX, e.clientY, this.graceArea) || (this.graceArea = null, this.dispatchEvent(new CustomEvent(Y5, { bubbles: !0, composed: !0 })));
2616
2616
  }, this.handleTriggerLeave = (e) => {
2617
2617
  this.triggerEl && this.popupEl && this.createGraceArea(this.triggerEl, this.popupEl, e);
@@ -2631,9 +2631,9 @@ const be = class be extends h {
2631
2631
  super.disconnectedCallback(), this.hidePopup();
2632
2632
  }
2633
2633
  createGraceArea(e, t, o) {
2634
- const i = t.getBoundingClientRect(), n = o.clientX, l = o.clientY;
2634
+ const i = t.getBoundingClientRect(), r = o.clientX, l = o.clientY;
2635
2635
  this.graceArea = [
2636
- [n, l],
2636
+ [r, l],
2637
2637
  [i.left, i.top],
2638
2638
  [i.right, i.top],
2639
2639
  [i.right, i.bottom],
@@ -2652,8 +2652,8 @@ const be = class be extends h {
2652
2652
  o.className = "tooltip-popup", o.setAttribute("role", "tooltip");
2653
2653
  const i = document.createElement("div");
2654
2654
  i.className = `tooltip-arrow tooltip-arrow--${t}`;
2655
- const n = document.createElement("div");
2656
- n.className = "tooltip-body", n.appendChild(document.createElement("slot")), o.appendChild(i), o.appendChild(n);
2655
+ const r = document.createElement("div");
2656
+ r.className = "tooltip-body", r.appendChild(document.createElement("slot")), o.appendChild(i), o.appendChild(r);
2657
2657
  const l = this.shadowRoot.querySelector(".tooltip-content-wrapper");
2658
2658
  l && l.appendChild(o), this.popupEl = o;
2659
2659
  const d = this.closest("anduin-tooltip");
@@ -2698,9 +2698,9 @@ let p5 = be;
2698
2698
  customElements.get("anduin-tooltip") || customElements.define("anduin-tooltip", _2);
2699
2699
  customElements.get("anduin-tooltip-trigger") || customElements.define("anduin-tooltip-trigger", u5);
2700
2700
  customElements.get("anduin-tooltip-content") || customElements.define("anduin-tooltip-content", p5);
2701
- var Et = Object.defineProperty, B = (r, e, t, o) => {
2702
- for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
2703
- (l = r[n]) && (i = l(e, t, i) || i);
2701
+ var Et = Object.defineProperty, B = (n, e, t, o) => {
2702
+ for (var i = void 0, r = n.length - 1, l; r >= 0; r--)
2703
+ (l = n[r]) && (i = l(e, t, i) || i);
2704
2704
  return i && Et(e, t, i), i;
2705
2705
  };
2706
2706
  const zt = "anduin-inline-edit:save", St = "anduin-inline-edit:cancel", At = "anduin-inline-edit:edit", me = class me extends h {
@@ -2960,9 +2960,9 @@ B([
2960
2960
  k(".text")
2961
2961
  ], R.prototype, "_text");
2962
2962
  customElements.get("anduin-inline-edit") || customElements.define("anduin-inline-edit", R);
2963
- var Dt = Object.defineProperty, y1 = (r, e, t, o) => {
2964
- for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
2965
- (l = r[n]) && (i = l(e, t, i) || i);
2963
+ var Dt = Object.defineProperty, y1 = (n, e, t, o) => {
2964
+ for (var i = void 0, r = n.length - 1, l; r >= 0; r--)
2965
+ (l = n[r]) && (i = l(e, t, i) || i);
2966
2966
  return i && Dt(e, t, i), i;
2967
2967
  };
2968
2968
  const Pt = "anduin-textarea:change", U2 = class U2 extends h {
@@ -3069,17 +3069,17 @@ y1([
3069
3069
  k("textarea")
3070
3070
  ], W.prototype, "textareaEl");
3071
3071
  customElements.get("anduin-textarea") || customElements.define("anduin-textarea", W);
3072
- var Bt = Object.defineProperty, U = (r, e, t, o) => {
3073
- for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
3074
- (l = r[n]) && (i = l(e, t, i) || i);
3072
+ var Bt = Object.defineProperty, U = (n, e, t, o) => {
3073
+ for (var i = void 0, r = n.length - 1, l; r >= 0; r--)
3074
+ (l = n[r]) && (i = l(e, t, i) || i);
3075
3075
  return i && Bt(e, t, i), i;
3076
3076
  };
3077
- const M3 = "anduin-tab:trigger-click", W2 = "anduin-tab:value-changed", Ft = "anduin-tab:change", He = class He extends h {
3077
+ const w3 = "anduin-tab:trigger-click", W2 = "anduin-tab:value-changed", Ft = "anduin-tab:change", He = class He extends h {
3078
3078
  constructor() {
3079
3079
  super(...arguments), this.defaultValue = "", this.value = "", this.fill = !1;
3080
3080
  }
3081
3081
  connectedCallback() {
3082
- super.connectedCallback(), this.addEventListener(M3, (e) => {
3082
+ super.connectedCallback(), this.addEventListener(w3, (e) => {
3083
3083
  e.stopPropagation();
3084
3084
  const t = e;
3085
3085
  this.value = t.detail, this.broadcastValueChanged(t.detail), this.dispatchEvent(new CustomEvent(Ft, { detail: t.detail, bubbles: !0, composed: !0 }));
@@ -3198,7 +3198,7 @@ const ye = class ye extends h {
3198
3198
  });
3199
3199
  }
3200
3200
  onClick() {
3201
- this.dispatchEvent(new CustomEvent(M3, { detail: this.value, bubbles: !0, composed: !0 }));
3201
+ this.dispatchEvent(new CustomEvent(w3, { detail: this.value, bubbles: !0, composed: !0 }));
3202
3202
  }
3203
3203
  render() {
3204
3204
  return a`
@@ -3300,9 +3300,9 @@ customElements.get("anduin-tabs") || customElements.define("anduin-tabs", j1);
3300
3300
  customElements.get("anduin-tabs-list") || customElements.define("anduin-tabs-list", y2);
3301
3301
  customElements.get("anduin-tab-trigger") || customElements.define("anduin-tab-trigger", l1);
3302
3302
  customElements.get("anduin-tab-content") || customElements.define("anduin-tab-content", L2);
3303
- var It = Object.defineProperty, q5 = (r, e, t, o) => {
3304
- for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
3305
- (l = r[n]) && (i = l(e, t, i) || i);
3303
+ var It = Object.defineProperty, q5 = (n, e, t, o) => {
3304
+ for (var i = void 0, r = n.length - 1, l; r >= 0; r--)
3305
+ (l = n[r]) && (i = l(e, t, i) || i);
3306
3306
  return i && It(e, t, i), i;
3307
3307
  };
3308
3308
  const Ot = "anduin-tag-close:click", Tt = {
@@ -3457,21 +3457,21 @@ xe.styles = g`
3457
3457
  let h5 = xe;
3458
3458
  customElements.get("anduin-tag") || customElements.define("anduin-tag", U1);
3459
3459
  customElements.get("anduin-tag-close") || customElements.define("anduin-tag-close", h5);
3460
- var jt = Object.defineProperty, O = (r, e, t, o) => {
3461
- for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
3462
- (l = r[n]) && (i = l(e, t, i) || i);
3460
+ var jt = Object.defineProperty, O = (n, e, t, o) => {
3461
+ for (var i = void 0, r = n.length - 1, l; r >= 0; r--)
3462
+ (l = n[r]) && (i = l(e, t, i) || i);
3463
3463
  return i && jt(e, t, i), i;
3464
3464
  };
3465
- const Ut = "anduin-toggle-group:change", Gt = "anduin-toggle-group-item:change", Kt = "anduin-toggle-group-item:select", Wt = "anduin-toggle-group-item:deselect", g5 = "anduin-toggle-group-item:item-click", Me = class Me extends h {
3465
+ const Ut = "anduin-toggle-group:change", Gt = "anduin-toggle-group-item:change", Kt = "anduin-toggle-group-item:select", Wt = "anduin-toggle-group-item:deselect", g5 = "anduin-toggle-group-item:item-click", we = class we extends h {
3466
3466
  constructor() {
3467
3467
  super(...arguments), this.mode = "single", this.defaultValue = "", this.value = null, this.size = "medium", this.variant = "gray", this.gap = !1, this.internalValue = [], this.userInteracted = !1, this.onItemClick = (e) => {
3468
3468
  var c;
3469
3469
  e.stopPropagation();
3470
- const o = e.detail, i = this.selection, n = i.includes(o);
3470
+ const o = e.detail, i = this.selection, r = i.includes(o);
3471
3471
  let l;
3472
- this.mode === "multiple" ? l = n ? i.filter((C) => C !== o) : [...i, o] : l = n ? [] : [o];
3472
+ this.mode === "multiple" ? l = r ? i.filter((C) => C !== o) : [...i, o] : l = r ? [] : [o];
3473
3473
  const d = this.items.find((C) => C.value === o);
3474
- if (d == null || d.emitSelectionChange(!n), this.mode === "single" && !n)
3474
+ if (d == null || d.emitSelectionChange(!r), this.mode === "single" && !r)
3475
3475
  for (const C of i)
3476
3476
  (c = this.items.find((p) => p.value === C)) == null || c.emitSelectionChange(!1);
3477
3477
  this.dispatchEvent(new CustomEvent(Ut, {
@@ -3515,7 +3515,7 @@ const Ut = "anduin-toggle-group:change", Gt = "anduin-toggle-group-item:change",
3515
3515
  `;
3516
3516
  }
3517
3517
  };
3518
- Me.styles = g`
3518
+ we.styles = g`
3519
3519
  :host { display: inline-flex; font-family: var(--font-sans); }
3520
3520
  .toggle-group { display: inline-flex; align-items: center; }
3521
3521
  .toggle-group--small {
@@ -3549,7 +3549,7 @@ Me.styles = g`
3549
3549
  /* Gapped pills stand alone, so each keeps all four borders. */
3550
3550
  .toggle-group--gap ::slotted(anduin-toggle-group-item) { --toggle-group-item-radius: 4px; --toggle-group-item-border-left: 1px; }
3551
3551
  `;
3552
- let X = Me;
3552
+ let X = we;
3553
3553
  O([
3554
3554
  s()
3555
3555
  ], X.prototype, "mode");
@@ -3571,7 +3571,7 @@ O([
3571
3571
  O([
3572
3572
  b()
3573
3573
  ], X.prototype, "internalValue");
3574
- const we = class we extends h {
3574
+ const Me = class Me extends h {
3575
3575
  constructor() {
3576
3576
  super(...arguments), this.value = "", this.startIcon = "", this.disabled = !1, this.selected = !1, this.groupSize = "medium", this.groupVariant = "gray", this.groupMode = "single";
3577
3577
  }
@@ -3621,7 +3621,7 @@ const we = class we extends h {
3621
3621
  `;
3622
3622
  }
3623
3623
  };
3624
- we.styles = g`
3624
+ Me.styles = g`
3625
3625
  :host { display: inline-block; font-family: var(--font-sans); }
3626
3626
  .toggle-item {
3627
3627
  position: relative; z-index: 0; box-sizing: border-box;
@@ -3657,7 +3657,7 @@ we.styles = g`
3657
3657
  .toggle-item--selected .toggle-item__icon { color: var(--color-muted-foreground); }
3658
3658
  .toggle-item--variant-primary.toggle-item--selected .toggle-item__icon { color: var(--color-primary); }
3659
3659
  `;
3660
- let J = we;
3660
+ let J = Me;
3661
3661
  O([
3662
3662
  s({ reflect: !0 })
3663
3663
  ], J.prototype, "value");
@@ -3679,14 +3679,14 @@ O([
3679
3679
  O([
3680
3680
  s({ attribute: !1 })
3681
3681
  ], J.prototype, "groupMode");
3682
- function e5(r) {
3683
- return r.split(" ").map((e) => e.trim()).filter(Boolean);
3682
+ function e5(n) {
3683
+ return n.split(" ").map((e) => e.trim()).filter(Boolean);
3684
3684
  }
3685
3685
  customElements.get("anduin-toggle-group") || customElements.define("anduin-toggle-group", X);
3686
3686
  customElements.get("anduin-toggle-group-item") || customElements.define("anduin-toggle-group-item", J);
3687
- var Yt = Object.defineProperty, qt = (r, e, t, o) => {
3688
- for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
3689
- (l = r[n]) && (i = l(e, t, i) || i);
3687
+ var Yt = Object.defineProperty, qt = (n, e, t, o) => {
3688
+ for (var i = void 0, r = n.length - 1, l; r >= 0; r--)
3689
+ (l = n[r]) && (i = l(e, t, i) || i);
3690
3690
  return i && Yt(e, t, i), i;
3691
3691
  };
3692
3692
  const Xt = "anduin-well-close:click", Ze = class Ze extends h {
@@ -3834,9 +3834,9 @@ ke.styles = g`
3834
3834
  let f5 = ke;
3835
3835
  customElements.get("anduin-well") || customElements.define("anduin-well", F2);
3836
3836
  customElements.get("anduin-well-close") || customElements.define("anduin-well-close", f5);
3837
- var Jt = Object.defineProperty, E1 = (r, e, t, o) => {
3838
- for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
3839
- (l = r[n]) && (i = l(e, t, i) || i);
3837
+ var Jt = Object.defineProperty, E1 = (n, e, t, o) => {
3838
+ for (var i = void 0, r = n.length - 1, l; r >= 0; r--)
3839
+ (l = n[r]) && (i = l(e, t, i) || i);
3840
3840
  return i && Jt(e, t, i), i;
3841
3841
  };
3842
3842
  const v5 = "anduin-popover:close", b5 = "anduin-popover:open-change", Re = class Re extends h {
@@ -3885,14 +3885,14 @@ const v5 = "anduin-popover:close", b5 = "anduin-popover:open-change", Re = class
3885
3885
  if (!e || !t) return;
3886
3886
  const o = e.getBoundingClientRect(), i = t.style.transform;
3887
3887
  t.style.transform = "none";
3888
- const n = t.getBoundingClientRect();
3888
+ const r = t.getBoundingClientRect();
3889
3889
  t.style.transform = i;
3890
3890
  const l = t.getBoundingClientRect(), d = 4, c = window.innerWidth, C = window.innerHeight, p = 8;
3891
3891
  let f = 0, H = 0, m = "bottom";
3892
- const V = !this.placement.startsWith("top"), y = C - o.bottom - d, v = o.top - d, x = y >= l.height, M = v >= l.height, D = V ? x || y >= v : !M && x;
3892
+ const V = !this.placement.startsWith("top"), y = C - o.bottom - d, v = o.top - d, x = y >= l.height, w = v >= l.height, D = V ? x || y >= v : !w && x;
3893
3893
  m = D ? "bottom" : "top", H = D ? o.bottom + d : o.top - l.height - d;
3894
3894
  const K = this.placement.endsWith("end") ? "end" : this.placement.endsWith("start") ? "start" : "center";
3895
- K === "start" ? f = o.left : K === "end" ? f = o.right - l.width : f = o.left + o.width / 2 - l.width / 2, f = Math.max(p, Math.min(f, c - l.width - p)), H = Math.max(p, Math.min(H, C - l.height - p)), t.style.transform = `translate(${Math.round(f - n.left)}px, ${Math.round(H - n.top)}px)`, t.dataset.side = m;
3895
+ K === "start" ? f = o.left : K === "end" ? f = o.right - l.width : f = o.left + o.width / 2 - l.width / 2, f = Math.max(p, Math.min(f, c - l.width - p)), H = Math.max(p, Math.min(H, C - l.height - p)), t.style.transform = `translate(${Math.round(f - r.left)}px, ${Math.round(H - r.top)}px)`, t.dataset.side = m;
3896
3896
  }
3897
3897
  render() {
3898
3898
  return a`
@@ -3995,9 +3995,9 @@ const $e = class $e extends h {
3995
3995
  $e.styles = g`:host { display: contents; }`;
3996
3996
  let m5 = $e;
3997
3997
  customElements.get("anduin-popover-close") || customElements.define("anduin-popover-close", m5);
3998
- var Qt = Object.defineProperty, z1 = (r, e, t, o) => {
3999
- for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
4000
- (l = r[n]) && (i = l(e, t, i) || i);
3998
+ var Qt = Object.defineProperty, z1 = (n, e, t, o) => {
3999
+ for (var i = void 0, r = n.length - 1, l; r >= 0; r--)
4000
+ (l = n[r]) && (i = l(e, t, i) || i);
4001
4001
  return i && Qt(e, t, i), i;
4002
4002
  };
4003
4003
  const H5 = "anduin-menu-item:click", Ee = class Ee extends h {
@@ -4027,7 +4027,7 @@ const H5 = "anduin-menu-item:click", Ee = class Ee extends h {
4027
4027
  if (!e || !t) return;
4028
4028
  const o = e.getBoundingClientRect(), i = t.style.transform;
4029
4029
  t.style.transform = "none";
4030
- const n = t.getBoundingClientRect();
4030
+ const r = t.getBoundingClientRect();
4031
4031
  t.style.transform = i;
4032
4032
  const l = t.getBoundingClientRect(), d = 4;
4033
4033
  let c = 0, C = 0, p = "bottom";
@@ -4051,7 +4051,7 @@ const H5 = "anduin-menu-item:click", Ee = class Ee extends h {
4051
4051
  c = o.left + o.width / 2 - l.width / 2, C = o.top - l.height - d, p = "top";
4052
4052
  break;
4053
4053
  }
4054
- t.style.transform = `translate(${Math.round(c - n.left)}px, ${Math.round(C - n.top)}px)`, t.dataset.side = p;
4054
+ t.style.transform = `translate(${Math.round(c - r.left)}px, ${Math.round(C - r.top)}px)`, t.dataset.side = p;
4055
4055
  }
4056
4056
  render() {
4057
4057
  return a`
@@ -4186,18 +4186,18 @@ z1([
4186
4186
  ], G1.prototype, "disabled");
4187
4187
  customElements.get("anduin-menu") || customElements.define("anduin-menu", $1);
4188
4188
  customElements.get("anduin-menu-item") || customElements.define("anduin-menu-item", G1);
4189
- var e7 = Object.defineProperty, S1 = (r, e, t, o) => {
4190
- for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
4191
- (l = r[n]) && (i = l(e, t, i) || i);
4189
+ var e7 = Object.defineProperty, S1 = (n, e, t, o) => {
4190
+ for (var i = void 0, r = n.length - 1, l; r >= 0; r--)
4191
+ (l = n[r]) && (i = l(e, t, i) || i);
4192
4192
  return i && e7(e, t, i), i;
4193
4193
  };
4194
- const r2 = "anduin-close", t5 = "anduin-after-close", i5 = 300, o5 = 200, T4 = 250;
4195
- let d2 = 0, w3 = "";
4194
+ const n2 = "anduin-close", t5 = "anduin-after-close", i5 = 300, o5 = 200, T4 = 250;
4195
+ let d2 = 0, M3 = "";
4196
4196
  function t7() {
4197
- typeof document > "u" || (d2 === 0 && (w3 = document.body.style.overflow, document.body.style.overflow = "hidden"), d2++);
4197
+ typeof document > "u" || (d2 === 0 && (M3 = document.body.style.overflow, document.body.style.overflow = "hidden"), d2++);
4198
4198
  }
4199
4199
  function N4() {
4200
- typeof document > "u" || d2 !== 0 && (d2--, d2 === 0 && (document.body.style.overflow = w3));
4200
+ typeof document > "u" || d2 !== 0 && (d2--, d2 === 0 && (document.body.style.overflow = M3));
4201
4201
  }
4202
4202
  var g1;
4203
4203
  const L1 = (g1 = class extends h {
@@ -4229,16 +4229,16 @@ const L1 = (g1 = class extends h {
4229
4229
  );
4230
4230
  }
4231
4231
  onOverlayClick() {
4232
- this.dispatch(r2);
4232
+ this.dispatch(n2);
4233
4233
  }
4234
4234
  onClose() {
4235
- this.dispatch(r2);
4235
+ this.dispatch(n2);
4236
4236
  }
4237
4237
  connectedCallback() {
4238
- super.connectedCallback(), this.addEventListener(r2, this.onAnduinClose), this.addEventListener(t5, this.onAnduinClose);
4238
+ super.connectedCallback(), this.addEventListener(n2, this.onAnduinClose), this.addEventListener(t5, this.onAnduinClose);
4239
4239
  }
4240
4240
  disconnectedCallback() {
4241
- super.disconnectedCallback(), this.removeEventListener(r2, this.onAnduinClose), this.removeEventListener(t5, this.onAnduinClose), this._holdsScrollLock && (this._holdsScrollLock = !1, N4());
4241
+ super.disconnectedCallback(), this.removeEventListener(n2, this.onAnduinClose), this.removeEventListener(t5, this.onAnduinClose), this._holdsScrollLock && (this._holdsScrollLock = !1, N4());
4242
4242
  }
4243
4243
  render() {
4244
4244
  const e = this._leaving, t = this.fullscreen;
@@ -4500,7 +4500,7 @@ class o7 extends HTMLElement {
4500
4500
  constructor() {
4501
4501
  super(...arguments), this._onClick = () => {
4502
4502
  this.dispatchEvent(
4503
- new CustomEvent(r2, { bubbles: !0, composed: !0 })
4503
+ new CustomEvent(n2, { bubbles: !0, composed: !0 })
4504
4504
  );
4505
4505
  };
4506
4506
  }
@@ -4512,12 +4512,12 @@ class o7 extends HTMLElement {
4512
4512
  }
4513
4513
  }
4514
4514
  customElements.get("anduin-modal-close") || customElements.define("anduin-modal-close", o7);
4515
- var n7 = Object.defineProperty, d1 = (r, e, t, o) => {
4516
- for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
4517
- (l = r[n]) && (i = l(e, t, i) || i);
4518
- return i && n7(e, t, i), i;
4515
+ var r7 = Object.defineProperty, d1 = (n, e, t, o) => {
4516
+ for (var i = void 0, r = n.length - 1, l; r >= 0; r--)
4517
+ (l = n[r]) && (i = l(e, t, i) || i);
4518
+ return i && r7(e, t, i), i;
4519
4519
  };
4520
- const _5 = "anduin-radio:change", r7 = "anduin-radio-group:change", Se = class Se extends h {
4520
+ const _5 = "anduin-radio:change", n7 = "anduin-radio-group:change", Se = class Se extends h {
4521
4521
  constructor() {
4522
4522
  super(...arguments), this.checked = !1, this.disabled = !1, this.readonly = !1, this.value = "", this.name = "", this.inputid = "";
4523
4523
  }
@@ -4667,9 +4667,9 @@ const Ae = class Ae extends h {
4667
4667
  super(...arguments), this.value = "", this.name = "", this.orientation = "vertical", this._onRadioChange = (e) => {
4668
4668
  const o = e.detail;
4669
4669
  o !== this.value && (this.value = o, this.querySelectorAll("anduin-radio").forEach((i) => {
4670
- const n = i;
4671
- n.checked = n.value === o;
4672
- }), this.dispatchEvent(new CustomEvent(r7, {
4670
+ const r = i;
4671
+ r.checked = r.value === o;
4672
+ }), this.dispatchEvent(new CustomEvent(n7, {
4673
4673
  detail: o,
4674
4674
  bubbles: !0,
4675
4675
  composed: !0
@@ -4711,9 +4711,9 @@ d1([
4711
4711
  s()
4712
4712
  ], K1.prototype, "orientation");
4713
4713
  customElements.get("anduin-radio-group") || customElements.define("anduin-radio-group", K1);
4714
- var l7 = Object.defineProperty, A1 = (r, e, t, o) => {
4715
- for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
4716
- (l = r[n]) && (i = l(e, t, i) || i);
4714
+ var l7 = Object.defineProperty, A1 = (n, e, t, o) => {
4715
+ for (var i = void 0, r = n.length - 1, l; r >= 0; r--)
4716
+ (l = n[r]) && (i = l(e, t, i) || i);
4717
4717
  return i && l7(e, t, i), i;
4718
4718
  };
4719
4719
  const j4 = [
@@ -4726,14 +4726,14 @@ const j4 = [
4726
4726
  { bg: "#F97066", text: "#ffffff" },
4727
4727
  { bg: "#7A5AF8", text: "#ffffff" }
4728
4728
  ];
4729
- function s7(r) {
4729
+ function s7(n) {
4730
4730
  let e = 0;
4731
- for (let t = 0; t < r.length; t++) e = e * 31 + r.charCodeAt(t) >>> 0;
4731
+ for (let t = 0; t < n.length; t++) e = e * 31 + n.charCodeAt(t) >>> 0;
4732
4732
  return j4[e % j4.length];
4733
4733
  }
4734
- function a7(r, e = 2) {
4734
+ function a7(n, e = 2) {
4735
4735
  var i;
4736
- const t = r.trim().split(/\s+/), o = ((i = t[0]) == null ? void 0 : i[0]) ?? "";
4736
+ const t = n.trim().split(/\s+/), o = ((i = t[0]) == null ? void 0 : i[0]) ?? "";
4737
4737
  return e < 2 || t.length === 1 ? o.toUpperCase() : (o + (t[t.length - 1][0] ?? "")).toUpperCase();
4738
4738
  }
4739
4739
  const De = class De extends h {
@@ -4822,7 +4822,7 @@ customElements.get("anduin-avatar") || customElements.define("anduin-avatar", e1
4822
4822
  * Copyright 2017 Google LLC
4823
4823
  * SPDX-License-Identifier: BSD-3-Clause
4824
4824
  */
4825
- const d7 = { CHILD: 2 }, c7 = (r) => (...e) => ({ _$litDirective$: r, values: e });
4825
+ const d7 = { CHILD: 2 }, c7 = (n) => (...e) => ({ _$litDirective$: n, values: e });
4826
4826
  class C7 {
4827
4827
  constructor(e) {
4828
4828
  }
@@ -5112,17 +5112,17 @@ const u7 = c7(L5), p7 = {
5112
5112
  <path d="M18.875 21.5385L20.3324 13.4117C20.3751 13.1734 20.5825 13 20.8246 13H22.1261C22.4436 13 22.6808 13.2921 22.6154 13.6029L20.3023 24.6029C20.2536 24.8343 20.0494 25 19.813 25H18.2572C18.0243 25 17.8223 24.8393 17.77 24.6124L16.0078 16.9725L14.2457 24.6124C14.1933 24.8393 13.9913 25 13.7584 25H12.2027C11.9662 25 11.762 24.8343 11.7134 24.6029L9.40022 13.6029C9.33487 13.2921 9.57198 13 9.88952 13H11.1916C11.4335 13 11.6406 13.1731 11.6836 13.4111L13.1484 21.522L14.9371 13.3926C14.9875 13.1633 15.1906 13 15.4254 13H16.6053C16.8403 13 17.0436 13.1636 17.0938 13.3932L18.875 21.5385Z" fill="#1075DC"/>` }
5113
5113
  }
5114
5114
  }, h7 = [32, 24, 16];
5115
- function g7(r, e) {
5116
- const t = p7[r];
5115
+ function g7(n, e) {
5116
+ const t = p7[n];
5117
5117
  if (!t) return null;
5118
5118
  if (t[e]) return t[e];
5119
5119
  for (const o of h7)
5120
5120
  if (t[o]) return t[o];
5121
5121
  return null;
5122
5122
  }
5123
- var f7 = Object.defineProperty, Z3 = (r, e, t, o) => {
5124
- for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
5125
- (l = r[n]) && (i = l(e, t, i) || i);
5123
+ var f7 = Object.defineProperty, Z3 = (n, e, t, o) => {
5124
+ for (var i = void 0, r = n.length - 1, l; r >= 0; r--)
5125
+ (l = n[r]) && (i = l(e, t, i) || i);
5126
5126
  return i && f7(e, t, i), i;
5127
5127
  };
5128
5128
  const Pe = class Pe extends h {
@@ -5158,9 +5158,9 @@ Z3([
5158
5158
  s({ type: Number })
5159
5159
  ], V2.prototype, "size");
5160
5160
  customElements.get("anduin-file-icon") || customElements.define("anduin-file-icon", V2);
5161
- var v7 = Object.defineProperty, D1 = (r, e, t, o) => {
5162
- for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
5163
- (l = r[n]) && (i = l(e, t, i) || i);
5161
+ var v7 = Object.defineProperty, D1 = (n, e, t, o) => {
5162
+ for (var i = void 0, r = n.length - 1, l; r >= 0; r--)
5163
+ (l = n[r]) && (i = l(e, t, i) || i);
5164
5164
  return i && v7(e, t, i), i;
5165
5165
  };
5166
5166
  const U4 = {
@@ -5457,33 +5457,33 @@ D1([
5457
5457
  ], x2.prototype, "_toasts");
5458
5458
  customElements.get("anduin-toaster") || customElements.define("anduin-toaster", x2);
5459
5459
  const p0 = {
5460
- show(r) {
5461
- return m7(r.position).show(r);
5460
+ show(n) {
5461
+ return m7(n.position).show(n);
5462
5462
  },
5463
- success(r, e, t) {
5464
- return this.show({ ...t, variant: "success", heading: r, description: e });
5463
+ success(n, e, t) {
5464
+ return this.show({ ...t, variant: "success", heading: n, description: e });
5465
5465
  },
5466
- danger(r, e, t) {
5467
- return this.show({ ...t, variant: "danger", heading: r, description: e });
5466
+ danger(n, e, t) {
5467
+ return this.show({ ...t, variant: "danger", heading: n, description: e });
5468
5468
  },
5469
- warning(r, e, t) {
5470
- return this.show({ ...t, variant: "warning", heading: r, description: e });
5469
+ warning(n, e, t) {
5470
+ return this.show({ ...t, variant: "warning", heading: n, description: e });
5471
5471
  },
5472
- primary(r, e, t) {
5473
- return this.show({ ...t, variant: "primary", heading: r, description: e });
5472
+ primary(n, e, t) {
5473
+ return this.show({ ...t, variant: "primary", heading: n, description: e });
5474
5474
  },
5475
- gray(r, e, t) {
5476
- return this.show({ ...t, variant: "gray", heading: r, description: e });
5475
+ gray(n, e, t) {
5476
+ return this.show({ ...t, variant: "gray", heading: n, description: e });
5477
5477
  }
5478
- }, n5 = /* @__PURE__ */ new Map();
5479
- function m7(r = "bottom-left") {
5480
- if (n5.has(r)) return n5.get(r);
5478
+ }, r5 = /* @__PURE__ */ new Map();
5479
+ function m7(n = "bottom-left") {
5480
+ if (r5.has(n)) return r5.get(n);
5481
5481
  const e = document.createElement("anduin-toaster");
5482
- return e.position = r, document.body.appendChild(e), n5.set(r, e), e;
5482
+ return e.position = n, document.body.appendChild(e), r5.set(n, e), e;
5483
5483
  }
5484
- var H7 = Object.defineProperty, k3 = (r, e, t, o) => {
5485
- for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
5486
- (l = r[n]) && (i = l(e, t, i) || i);
5484
+ var H7 = Object.defineProperty, k3 = (n, e, t, o) => {
5485
+ for (var i = void 0, r = n.length - 1, l; r >= 0; r--)
5486
+ (l = n[r]) && (i = l(e, t, i) || i);
5487
5487
  return i && H7(e, t, i), i;
5488
5488
  };
5489
5489
  const _7 = "anduin-switcher:change", Ie = class Ie extends h {
@@ -5579,17 +5579,17 @@ Ie.styles = g`
5579
5579
  line-height: 20px;
5580
5580
  }
5581
5581
  `;
5582
- let M2 = Ie;
5582
+ let w2 = Ie;
5583
5583
  k3([
5584
5584
  s({ type: Boolean })
5585
- ], M2.prototype, "checked");
5585
+ ], w2.prototype, "checked");
5586
5586
  k3([
5587
5587
  s({ type: Boolean })
5588
- ], M2.prototype, "disabled");
5589
- customElements.get("anduin-switcher") || customElements.define("anduin-switcher", M2);
5590
- var y7 = Object.defineProperty, E = (r, e, t, o) => {
5591
- for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
5592
- (l = r[n]) && (i = l(e, t, i) || i);
5588
+ ], w2.prototype, "disabled");
5589
+ customElements.get("anduin-switcher") || customElements.define("anduin-switcher", w2);
5590
+ var y7 = Object.defineProperty, E = (n, e, t, o) => {
5591
+ for (var i = void 0, r = n.length - 1, l; r >= 0; r--)
5592
+ (l = n[r]) && (i = l(e, t, i) || i);
5593
5593
  return i && y7(e, t, i), i;
5594
5594
  };
5595
5595
  const G4 = "anduin-dropdown:change", Oe = class Oe extends h {
@@ -5610,9 +5610,9 @@ const G4 = "anduin-dropdown:change", Oe = class Oe extends h {
5610
5610
  updated(e) {
5611
5611
  var t, o;
5612
5612
  e.has("_activeIndex") && this._activeIndex >= 0 && ((o = (t = this.shadowRoot) == null ? void 0 : t.querySelector(".option--active")) == null || o.scrollIntoView({ block: "nearest" })), e.has("_open") && this._open && requestAnimationFrame(() => {
5613
- var i, n;
5613
+ var i, r;
5614
5614
  if (this._updatePosition(), this.searchable) {
5615
- const l = (n = (i = this._searchEl) == null ? void 0 : i.shadowRoot) == null ? void 0 : n.querySelector("input");
5615
+ const l = (r = (i = this._searchEl) == null ? void 0 : i.shadowRoot) == null ? void 0 : r.querySelector("input");
5616
5616
  l == null || l.focus();
5617
5617
  }
5618
5618
  });
@@ -5669,7 +5669,7 @@ const G4 = "anduin-dropdown:change", Oe = class Oe extends h {
5669
5669
  if (!e || !t) return;
5670
5670
  const o = e.getBoundingClientRect(), i = t.style.transform;
5671
5671
  t.style.transform = "none";
5672
- const n = t.getBoundingClientRect();
5672
+ const r = t.getBoundingClientRect();
5673
5673
  t.style.transform = i;
5674
5674
  const l = t.querySelector(".panel__inner");
5675
5675
  l && (l.style.minWidth = `${o.width}px`);
@@ -5677,7 +5677,7 @@ const G4 = "anduin-dropdown:change", Oe = class Oe extends h {
5677
5677
  let v = o.left;
5678
5678
  this.placement === "bottom-end" ? v = o.right - d.width : this.placement === "bottom" && (v = o.left + o.width / 2 - d.width / 2), v = Math.max(f, Math.min(v, C - d.width - f));
5679
5679
  const x = Math.max(f, Math.min(y, p - d.height - f));
5680
- t.style.transform = `translate(${Math.round(v - n.left)}px, ${Math.round(x - n.top)}px)`;
5680
+ t.style.transform = `translate(${Math.round(v - r.left)}px, ${Math.round(x - r.top)}px)`;
5681
5681
  }
5682
5682
  get _filteredOptions() {
5683
5683
  if (!this._query) return this.options;
@@ -5685,7 +5685,7 @@ const G4 = "anduin-dropdown:change", Oe = class Oe extends h {
5685
5685
  return this.options.filter((t) => t.label.toLowerCase().includes(e));
5686
5686
  }
5687
5687
  render() {
5688
- const e = this.options.find((l) => l.value === this.value), t = (e == null ? void 0 : e.label) ?? "", o = e ? e.icon ?? "" : this.icon, i = this._filteredOptions, n = this.clearable && !!this.value && !this.disabled;
5688
+ const e = this.options.find((l) => l.value === this.value), t = (e == null ? void 0 : e.label) ?? "", o = e ? e.icon ?? "" : this.icon, i = this._filteredOptions, r = this.clearable && !!this.value && !this.disabled;
5689
5689
  return a`
5690
5690
  <button
5691
5691
  class="trigger trigger--${this.appearance} trigger--${this.variant}${this.size === "small" ? " trigger--small" : ""}${this.value ? " has-value" : ""}"
@@ -5698,11 +5698,11 @@ const G4 = "anduin-dropdown:change", Oe = class Oe extends h {
5698
5698
  >
5699
5699
  ${o && t ? a`<anduin-icon name="${o}" size="16"></anduin-icon>` : u}
5700
5700
  <span class="trigger__label${t ? "" : " trigger__label--placeholder"}">${t || this.placeholder}</span>
5701
- <span class="trigger__caret${n ? " trigger__caret--clearable" : ""}">
5701
+ <span class="trigger__caret${r ? " trigger__caret--clearable" : ""}">
5702
5702
  <span class="trigger__chevron">
5703
5703
  <anduin-icon name="caretDown" size="16"></anduin-icon>
5704
5704
  </span>
5705
- ${n ? a`
5705
+ ${r ? a`
5706
5706
  <span class="trigger__clear" @click=${this._onClear}>
5707
5707
  <anduin-icon name="crossSmall" size="16"></anduin-icon>
5708
5708
  </span>
@@ -5998,68 +5998,68 @@ Oe.styles = g`
5998
5998
  text-align: center;
5999
5999
  }
6000
6000
  `;
6001
- let w = Oe;
6001
+ let M = Oe;
6002
6002
  E([
6003
6003
  s()
6004
- ], w.prototype, "value");
6004
+ ], M.prototype, "value");
6005
6005
  E([
6006
6006
  s()
6007
- ], w.prototype, "placeholder");
6007
+ ], M.prototype, "placeholder");
6008
6008
  E([
6009
6009
  s({ attribute: !1 })
6010
- ], w.prototype, "options");
6010
+ ], M.prototype, "options");
6011
6011
  E([
6012
6012
  s()
6013
- ], w.prototype, "icon");
6013
+ ], M.prototype, "icon");
6014
6014
  E([
6015
6015
  s({ type: Boolean })
6016
- ], w.prototype, "searchable");
6016
+ ], M.prototype, "searchable");
6017
6017
  E([
6018
6018
  s({ type: Boolean })
6019
- ], w.prototype, "disabled");
6019
+ ], M.prototype, "disabled");
6020
6020
  E([
6021
6021
  s()
6022
- ], w.prototype, "placement");
6022
+ ], M.prototype, "placement");
6023
6023
  E([
6024
6024
  s()
6025
- ], w.prototype, "appearance");
6025
+ ], M.prototype, "appearance");
6026
6026
  E([
6027
6027
  s()
6028
- ], w.prototype, "variant");
6028
+ ], M.prototype, "variant");
6029
6029
  E([
6030
6030
  s()
6031
- ], w.prototype, "size");
6031
+ ], M.prototype, "size");
6032
6032
  E([
6033
6033
  s({ type: Boolean, attribute: "full-width", reflect: !0 })
6034
- ], w.prototype, "fullWidth");
6034
+ ], M.prototype, "fullWidth");
6035
6035
  E([
6036
- s({ converter: (r) => r !== "false" })
6037
- ], w.prototype, "clearable");
6036
+ s({ converter: (n) => n !== "false" })
6037
+ ], M.prototype, "clearable");
6038
6038
  E([
6039
6039
  b()
6040
- ], w.prototype, "_open");
6040
+ ], M.prototype, "_open");
6041
6041
  E([
6042
6042
  b()
6043
- ], w.prototype, "_query");
6043
+ ], M.prototype, "_query");
6044
6044
  E([
6045
6045
  b()
6046
- ], w.prototype, "_activeIndex");
6046
+ ], M.prototype, "_activeIndex");
6047
6047
  E([
6048
6048
  k(".trigger")
6049
- ], w.prototype, "_triggerEl");
6049
+ ], M.prototype, "_triggerEl");
6050
6050
  E([
6051
6051
  k(".panel")
6052
- ], w.prototype, "_panelEl");
6052
+ ], M.prototype, "_panelEl");
6053
6053
  E([
6054
6054
  k("anduin-input")
6055
- ], w.prototype, "_searchEl");
6056
- customElements.get("anduin-dropdown") || customElements.define("anduin-dropdown", w);
6057
- var L7 = Object.defineProperty, c1 = (r, e, t, o) => {
6058
- for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
6059
- (l = r[n]) && (i = l(e, t, i) || i);
6055
+ ], M.prototype, "_searchEl");
6056
+ customElements.get("anduin-dropdown") || customElements.define("anduin-dropdown", M);
6057
+ var L7 = Object.defineProperty, c1 = (n, e, t, o) => {
6058
+ for (var i = void 0, r = n.length - 1, l; r >= 0; r--)
6059
+ (l = n[r]) && (i = l(e, t, i) || i);
6060
6060
  return i && L7(e, t, i), i;
6061
6061
  };
6062
- const l2 = "anduin-close", r5 = "anduin-after-close", V7 = 300, K4 = 250, x7 = /* @__PURE__ */ new Map([
6062
+ const l2 = "anduin-close", n5 = "anduin-after-close", V7 = 300, K4 = 250, x7 = /* @__PURE__ */ new Map([
6063
6063
  ["320", 320],
6064
6064
  ["360", 360],
6065
6065
  ["400", 400],
@@ -6071,14 +6071,14 @@ const l2 = "anduin-close", r5 = "anduin-after-close", V7 = 300, K4 = 250, x7 = /
6071
6071
  }, this._onResizeStart = (e) => {
6072
6072
  this._resizing = !0, this._startX = e.clientX, this._startWidth = this._width, e.currentTarget.setPointerCapture(e.pointerId), e.preventDefault();
6073
6073
  }, this._onResizeMove = (e) => {
6074
- var n;
6074
+ var r;
6075
6075
  if (!this._resizing) return;
6076
6076
  const t = this.placement === "left" ? e.clientX - this._startX : this._startX - e.clientX, o = Math.max(
6077
6077
  200,
6078
6078
  Math.min(window.innerWidth * 0.9, this._startWidth + t)
6079
6079
  );
6080
6080
  this._width = Math.round(o);
6081
- const i = (n = this.shadowRoot) == null ? void 0 : n.querySelector(".drawer");
6081
+ const i = (r = this.shadowRoot) == null ? void 0 : r.querySelector(".drawer");
6082
6082
  i && (i.style.width = `${this._width}px`);
6083
6083
  }, this._onResizeEnd = () => {
6084
6084
  this._resizing = !1;
@@ -6090,7 +6090,7 @@ const l2 = "anduin-close", r5 = "anduin-after-close", V7 = 300, K4 = 250, x7 = /
6090
6090
  updated(e) {
6091
6091
  e.has("open") && (this.open ? (this._leaving = !1, this.classList.add("is-shown")) : this.classList.contains("is-shown") && (this._leaving = !0, setTimeout(() => {
6092
6092
  this._leaving = !1, this.classList.remove("is-shown"), this.dispatchEvent(
6093
- new CustomEvent(r5, {
6093
+ new CustomEvent(n5, {
6094
6094
  bubbles: !0,
6095
6095
  composed: !0
6096
6096
  })
@@ -6103,10 +6103,10 @@ const l2 = "anduin-close", r5 = "anduin-after-close", V7 = 300, K4 = 250, x7 = /
6103
6103
  );
6104
6104
  }
6105
6105
  connectedCallback() {
6106
- super.connectedCallback(), this.addEventListener(l2, this._stopAtSelf), this.addEventListener(r5, this._stopAtSelf);
6106
+ super.connectedCallback(), this.addEventListener(l2, this._stopAtSelf), this.addEventListener(n5, this._stopAtSelf);
6107
6107
  }
6108
6108
  disconnectedCallback() {
6109
- super.disconnectedCallback(), this.removeEventListener(l2, this._stopAtSelf), this.removeEventListener(r5, this._stopAtSelf);
6109
+ super.disconnectedCallback(), this.removeEventListener(l2, this._stopAtSelf), this.removeEventListener(n5, this._stopAtSelf);
6110
6110
  }
6111
6111
  _onClose() {
6112
6112
  this._dispatch(l2);
@@ -6347,7 +6347,7 @@ c1([
6347
6347
  b()
6348
6348
  ], G.prototype, "_width");
6349
6349
  customElements.get("anduin-drawer") || customElements.define("anduin-drawer", G);
6350
- class M7 extends HTMLElement {
6350
+ class w7 extends HTMLElement {
6351
6351
  constructor() {
6352
6352
  super(...arguments), this._onClick = () => {
6353
6353
  this.dispatchEvent(
@@ -6362,11 +6362,11 @@ class M7 extends HTMLElement {
6362
6362
  this.removeEventListener("click", this._onClick);
6363
6363
  }
6364
6364
  }
6365
- customElements.get("anduin-drawer-close") || customElements.define("anduin-drawer-close", M7);
6366
- var w7 = Object.defineProperty, z = (r, e, t, o) => {
6367
- for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
6368
- (l = r[n]) && (i = l(e, t, i) || i);
6369
- return i && w7(e, t, i), i;
6365
+ customElements.get("anduin-drawer-close") || customElements.define("anduin-drawer-close", w7);
6366
+ var M7 = Object.defineProperty, z = (n, e, t, o) => {
6367
+ for (var i = void 0, r = n.length - 1, l; r >= 0; r--)
6368
+ (l = n[r]) && (i = l(e, t, i) || i);
6369
+ return i && M7(e, t, i), i;
6370
6370
  };
6371
6371
  const l5 = "anduin-suggestion:change", Z7 = "anduin-suggestion:select", k7 = "anduin-suggestion:clear", Ne = class Ne extends h {
6372
6372
  constructor() {
@@ -6456,12 +6456,12 @@ const l5 = "anduin-suggestion:change", Z7 = "anduin-suggestion:select", k7 = "an
6456
6456
  this.value = "", this._inputEl && (this._inputEl.value = ""), this._activeIndex = -1, this.dispatchEvent(new CustomEvent(l5, { detail: "", bubbles: !0, composed: !0 })), this.dispatchEvent(new CustomEvent(k7, { bubbles: !0, composed: !0 })), (e = this._inputEl) == null || e.focus();
6457
6457
  }
6458
6458
  _updatePosition() {
6459
- var M;
6460
- const e = (M = this.shadowRoot) == null ? void 0 : M.querySelector(".input-wrapper"), t = this._panelEl;
6459
+ var w;
6460
+ const e = (w = this.shadowRoot) == null ? void 0 : w.querySelector(".input-wrapper"), t = this._panelEl;
6461
6461
  if (!e || !t) return;
6462
6462
  const o = e.getBoundingClientRect(), i = t.style.transform;
6463
6463
  t.style.transform = "none";
6464
- const n = t.getBoundingClientRect();
6464
+ const r = t.getBoundingClientRect();
6465
6465
  t.style.transform = i;
6466
6466
  const l = t.querySelector(".panel__inner");
6467
6467
  l && (l.style.minWidth = `${o.width}px`);
@@ -6469,10 +6469,10 @@ const l5 = "anduin-suggestion:change", Z7 = "anduin-suggestion:select", k7 = "an
6469
6469
  let v = o.left;
6470
6470
  v = Math.max(f, Math.min(v, C - d.width - f));
6471
6471
  const x = Math.max(f, Math.min(y, p - d.height - f));
6472
- t.style.transform = `translate(${Math.round(v - n.left)}px, ${Math.round(x - n.top)}px)`;
6472
+ t.style.transform = `translate(${Math.round(v - r.left)}px, ${Math.round(x - r.top)}px)`;
6473
6473
  }
6474
6474
  render() {
6475
- const e = this.size === "small" ? "input--small" : this.size === "large" ? "input--large" : "input--default", t = this.status ? `input--${this.status}` : "", o = !!this.startIcon, i = !!this.endIcon || this.clearable && !!this.value, n = this.clearable && !!this.value && !this.disabled && !this.readonly, l = this.size === "small" ? "12" : this.size === "large" ? "20" : "16", d = this.size === "small" ? "10" : this.size === "large" ? "16" : "14", c = this._filteredSuggestions, C = this._open && (!this.hideWhenEmpty || c.length > 0);
6475
+ const e = this.size === "small" ? "input--small" : this.size === "large" ? "input--large" : "input--default", t = this.status ? `input--${this.status}` : "", o = !!this.startIcon, i = !!this.endIcon || this.clearable && !!this.value, r = this.clearable && !!this.value && !this.disabled && !this.readonly, l = this.size === "small" ? "12" : this.size === "large" ? "20" : "16", d = this.size === "small" ? "10" : this.size === "large" ? "16" : "14", c = this._filteredSuggestions, C = this._open && (!this.hideWhenEmpty || c.length > 0);
6476
6476
  return a`
6477
6477
  <div class="input-wrapper">
6478
6478
  ${o ? a`
@@ -6504,7 +6504,7 @@ const l5 = "anduin-suggestion:change", Z7 = "anduin-suggestion:select", k7 = "an
6504
6504
 
6505
6505
  ${i ? a`
6506
6506
  <span class="input__end">
6507
- ${n ? a`
6507
+ ${r ? a`
6508
6508
  <button class="input__clear" type="button" @click=${this._onClear} aria-label="Clear">
6509
6509
  <anduin-icon name="cross" size=${d}></anduin-icon>
6510
6510
  </button>
@@ -6710,9 +6710,9 @@ z([
6710
6710
  k(".panel")
6711
6711
  ], Z.prototype, "_panelEl");
6712
6712
  customElements.get("anduin-suggestion") || customElements.define("anduin-suggestion", Z);
6713
- var R7 = Object.defineProperty, q = (r, e, t, o) => {
6714
- for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
6715
- (l = r[n]) && (i = l(e, t, i) || i);
6713
+ var R7 = Object.defineProperty, q = (n, e, t, o) => {
6714
+ for (var i = void 0, r = n.length - 1, l; r >= 0; r--)
6715
+ (l = n[r]) && (i = l(e, t, i) || i);
6716
6716
  return i && R7(e, t, i), i;
6717
6717
  };
6718
6718
  const $7 = "anduin-navigation:change", V5 = "anduin-navigation-item:item-click", je = class je extends h {
@@ -6930,14 +6930,14 @@ q([
6930
6930
  ], a1.prototype, "theme");
6931
6931
  customElements.get("anduin-navigation") || customElements.define("anduin-navigation", m1);
6932
6932
  customElements.get("anduin-navigation-item") || customElements.define("anduin-navigation-item", a1);
6933
- var E7 = Object.defineProperty, P1 = (r, e, t, o) => {
6934
- for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
6935
- (l = r[n]) && (i = l(e, t, i) || i);
6933
+ var E7 = Object.defineProperty, P1 = (n, e, t, o) => {
6934
+ for (var i = void 0, r = n.length - 1, l; r >= 0; r--)
6935
+ (l = n[r]) && (i = l(e, t, i) || i);
6936
6936
  return i && E7(e, t, i), i;
6937
6937
  };
6938
- const z7 = "anduin-resizable:resize", R3 = "anduin-resizable-panel", W4 = (r) => !!r && r.tagName.toLowerCase() === R3;
6939
- function Y4(r, e, t) {
6940
- const o = (r || "").trim();
6938
+ const z7 = "anduin-resizable:resize", R3 = "anduin-resizable-panel", W4 = (n) => !!n && n.tagName.toLowerCase() === R3;
6939
+ function Y4(n, e, t) {
6940
+ const o = (n || "").trim();
6941
6941
  if (!o) return t;
6942
6942
  const i = parseFloat(o);
6943
6943
  return Number.isNaN(i) ? t : o.endsWith("%") ? i / 100 * e : i;
@@ -6973,7 +6973,7 @@ const Ge = class Ge extends h {
6973
6973
  const e = this.axisSize;
6974
6974
  if (e <= 0) return;
6975
6975
  const t = this.panels, o = t.map((i) => i.axisSize(this.isVertical));
6976
- t.forEach((i, n) => i.setGrow(o[n] / e * 100));
6976
+ t.forEach((i, r) => i.setGrow(o[r] / e * 100));
6977
6977
  }
6978
6978
  render() {
6979
6979
  return a`
@@ -7047,8 +7047,8 @@ const We = class We extends h {
7047
7047
  const t = this.closest("anduin-resizable-panel-group"), o = this.prevPanel, i = this.nextPanel;
7048
7048
  if (!t || !o || !i) return;
7049
7049
  e.preventDefault(), this.group = t, this.dragging = !0, this.activePointerId = e.pointerId, this.setPointerCapture(e.pointerId), t.normalizeToGrow();
7050
- const n = t.isVertical;
7051
- this.startPos = n ? e.clientY : e.clientX, this.startPrevPx = o.axisSize(n), this.combinedPx = this.startPrevPx + i.axisSize(n), this.combinedGrow = (parseFloat(o.style.flexGrow) || 0) + (parseFloat(i.style.flexGrow) || 0), document.body.style.userSelect = "none", document.body.style.cursor = n ? "row-resize" : "col-resize", window.addEventListener("pointermove", this.onPointerMove), window.addEventListener("pointerup", this.onPointerUp);
7050
+ const r = t.isVertical;
7051
+ this.startPos = r ? e.clientY : e.clientX, this.startPrevPx = o.axisSize(r), this.combinedPx = this.startPrevPx + i.axisSize(r), this.combinedGrow = (parseFloat(o.style.flexGrow) || 0) + (parseFloat(i.style.flexGrow) || 0), document.body.style.userSelect = "none", document.body.style.cursor = r ? "row-resize" : "col-resize", window.addEventListener("pointermove", this.onPointerMove), window.addEventListener("pointerup", this.onPointerUp);
7052
7052
  }, this.onPointerMove = (e) => {
7053
7053
  if (!this.dragging || !this.group) return;
7054
7054
  const o = (this.group.isVertical ? e.clientY : e.clientX) - this.startPos;
@@ -7065,11 +7065,11 @@ const We = class We extends h {
7065
7065
  else if (o && e.key === "ArrowDown") i = 1;
7066
7066
  else if (o && e.key === "ArrowUp") i = -1;
7067
7067
  else return;
7068
- const n = this.prevPanel, l = this.nextPanel;
7069
- if (!n || !l) return;
7068
+ const r = this.prevPanel, l = this.nextPanel;
7069
+ if (!r || !l) return;
7070
7070
  e.preventDefault(), this.group = t, t.normalizeToGrow();
7071
- const d = n.axisSize(o);
7072
- this.combinedPx = d + l.axisSize(o), this.combinedGrow = (parseFloat(n.style.flexGrow) || 0) + (parseFloat(l.style.flexGrow) || 0);
7071
+ const d = r.axisSize(o);
7072
+ this.combinedPx = d + l.axisSize(o), this.combinedGrow = (parseFloat(r.style.flexGrow) || 0) + (parseFloat(l.style.flexGrow) || 0);
7073
7073
  const c = Math.max(t.axisSize * 0.02, 8);
7074
7074
  this.resizeTo(d + i * c), this.emitResize();
7075
7075
  };
@@ -7109,7 +7109,7 @@ const We = class We extends h {
7109
7109
  resizeTo(e) {
7110
7110
  const t = this.group, o = this.prevPanel, i = this.nextPanel;
7111
7111
  if (!t || !o || !i || this.combinedPx <= 0) return;
7112
- const n = t.axisSize, l = Math.max(o.minPx(n), this.combinedPx - i.maxPx(n), 0), d = Math.min(o.maxPx(n), this.combinedPx - i.minPx(n), this.combinedPx), c = Math.max(l, Math.min(d, e)), C = this.combinedGrow * (c / this.combinedPx);
7112
+ const r = t.axisSize, l = Math.max(o.minPx(r), this.combinedPx - i.maxPx(r), 0), d = Math.min(o.maxPx(r), this.combinedPx - i.minPx(r), this.combinedPx), c = Math.max(l, Math.min(d, e)), C = this.combinedGrow * (c / this.combinedPx);
7113
7113
  o.setGrow(C), i.setGrow(this.combinedGrow - C);
7114
7114
  }
7115
7115
  emitResize() {
@@ -7117,9 +7117,9 @@ const We = class We extends h {
7117
7117
  if (!e || !t || !o) return;
7118
7118
  const i = e.axisSize;
7119
7119
  if (i <= 0) return;
7120
- const n = e.isVertical;
7120
+ const r = e.isVertical;
7121
7121
  this.dispatchEvent(new CustomEvent(z7, {
7122
- detail: { sizes: [t.axisSize(n) / i * 100, o.axisSize(n) / i * 100] },
7122
+ detail: { sizes: [t.axisSize(r) / i * 100, o.axisSize(r) / i * 100] },
7123
7123
  bubbles: !0,
7124
7124
  composed: !0
7125
7125
  }));
@@ -7171,15 +7171,15 @@ P1([
7171
7171
  customElements.get("anduin-resizable-panel-group") || customElements.define("anduin-resizable-panel-group", I2);
7172
7172
  customElements.get("anduin-resizable-panel") || customElements.define("anduin-resizable-panel", W1);
7173
7173
  customElements.get("anduin-resizable-handle") || customElements.define("anduin-resizable-handle", Y1);
7174
- var S7 = Object.defineProperty, X1 = (r, e, t, o) => {
7175
- for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
7176
- (l = r[n]) && (i = l(e, t, i) || i);
7174
+ var S7 = Object.defineProperty, X1 = (n, e, t, o) => {
7175
+ for (var i = void 0, r = n.length - 1, l; r >= 0; r--)
7176
+ (l = n[r]) && (i = l(e, t, i) || i);
7177
7177
  return i && S7(e, t, i), i;
7178
7178
  };
7179
7179
  const A7 = "anduin-pagination:change", x5 = "anduin-pagination:jump";
7180
- function t2(r, e) {
7181
- const t = Math.max(e - r + 1, 0);
7182
- return Array.from({ length: t }, (o, i) => r + i);
7180
+ function t2(n, e) {
7181
+ const t = Math.max(e - n + 1, 0);
7182
+ return Array.from({ length: t }, (o, i) => n + i);
7183
7183
  }
7184
7184
  const Ye = class Ye extends h {
7185
7185
  constructor() {
@@ -7205,7 +7205,7 @@ const Ye = class Ye extends h {
7205
7205
  }
7206
7206
  /** MUI-style windowing: boundaryCount = 1, siblingCount = 1. */
7207
7207
  buildItems() {
7208
- const e = this.count, t = this.selection, o = 1, i = 1, n = t2(1, Math.min(o, e)), l = t2(Math.max(e - o + 1, o + 1), e), d = Math.max(
7208
+ const e = this.count, t = this.selection, o = 1, i = 1, r = t2(1, Math.min(o, e)), l = t2(Math.max(e - o + 1, o + 1), e), d = Math.max(
7209
7209
  Math.min(t - i, e - o - i * 2 - 1),
7210
7210
  o + 2
7211
7211
  ), c = Math.min(
@@ -7213,7 +7213,7 @@ const Ye = class Ye extends h {
7213
7213
  l.length > 0 ? l[0] - 2 : e - 1
7214
7214
  );
7215
7215
  return [
7216
- ...n,
7216
+ ...r,
7217
7217
  ...d > o + 2 ? ["start-ellipsis"] : o + 1 < e - o ? [o + 1] : [],
7218
7218
  ...t2(d, c),
7219
7219
  ...c < e - o - 1 ? ["end-ellipsis"] : e - o > o ? [e - o] : [],
@@ -7282,11 +7282,11 @@ const Ye = class Ye extends h {
7282
7282
  }
7283
7283
  renderItem(e, t) {
7284
7284
  if (e.type === "page") {
7285
- const n = e.page === t;
7285
+ const r = e.page === t;
7286
7286
  return a`
7287
7287
  <button
7288
- class="pagination__button ${n ? "pagination__button--active" : ""}"
7289
- aria-current=${n ? "page" : u}
7288
+ class="pagination__button ${r ? "pagination__button--active" : ""}"
7289
+ aria-current=${r ? "page" : u}
7290
7290
  aria-label="Go to page ${e.page}"
7291
7291
  @click=${() => this.goTo(e.page)}
7292
7292
  >${e.page}</button>
@@ -7303,8 +7303,8 @@ const Ye = class Ye extends h {
7303
7303
  label=${i}
7304
7304
  ></anduin-button>
7305
7305
  <div class="pagination__ellipsis-list">
7306
- ${o.map((n) => a`
7307
- <anduin-menu-item @click=${() => this.goTo(n)}>${n}</anduin-menu-item>
7306
+ ${o.map((r) => a`
7307
+ <anduin-menu-item @click=${() => this.goTo(r)}>${r}</anduin-menu-item>
7308
7308
  `)}
7309
7309
  </div>
7310
7310
  </anduin-menu>
@@ -7419,16 +7419,16 @@ const qe = class qe extends h {
7419
7419
  qe.styles = g`
7420
7420
  :host { display: inline-flex; }
7421
7421
  `;
7422
- let w2 = qe;
7422
+ let M2 = qe;
7423
7423
  X1([
7424
7424
  s({ type: Boolean })
7425
- ], w2.prototype, "disabled");
7426
- class D7 extends w2 {
7425
+ ], M2.prototype, "disabled");
7426
+ class D7 extends M2 {
7427
7427
  constructor() {
7428
7428
  super(...arguments), this.icon = "chevronVerticalLeft", this.label = "Go to first page", this.target = "first";
7429
7429
  }
7430
7430
  }
7431
- class P7 extends w2 {
7431
+ class P7 extends M2 {
7432
7432
  constructor() {
7433
7433
  super(...arguments), this.icon = "chevronVerticalRight", this.label = "Go to last page", this.target = "last";
7434
7434
  }
@@ -7455,7 +7455,7 @@ Xe.styles = g`
7455
7455
  flex-direction: column;
7456
7456
  }
7457
7457
  `;
7458
- let M5 = Xe;
7458
+ let w5 = Xe;
7459
7459
  const Je = class Je extends h {
7460
7460
  render() {
7461
7461
  return a`
@@ -7556,7 +7556,7 @@ Je.styles = g`
7556
7556
  padding-bottom: 0;
7557
7557
  }
7558
7558
  `;
7559
- let w5 = Je;
7559
+ let M5 = Je;
7560
7560
  const Qe = class Qe extends h {
7561
7561
  render() {
7562
7562
  return a`<div class="date"><slot></slot></div>`;
@@ -7676,15 +7676,15 @@ i4.styles = g`
7676
7676
  }
7677
7677
  `;
7678
7678
  let $5 = i4;
7679
- customElements.get("anduin-timeline") || customElements.define("anduin-timeline", M5);
7680
- customElements.get("anduin-timeline-item") || customElements.define("anduin-timeline-item", w5);
7679
+ customElements.get("anduin-timeline") || customElements.define("anduin-timeline", w5);
7680
+ customElements.get("anduin-timeline-item") || customElements.define("anduin-timeline-item", M5);
7681
7681
  customElements.get("anduin-timeline-date") || customElements.define("anduin-timeline-date", Z5);
7682
7682
  customElements.get("anduin-timeline-title") || customElements.define("anduin-timeline-title", k5);
7683
7683
  customElements.get("anduin-timeline-group") || customElements.define("anduin-timeline-group", R5);
7684
7684
  customElements.get("anduin-timeline-label") || customElements.define("anduin-timeline-label", $5);
7685
- var B7 = Object.defineProperty, B1 = (r, e, t, o) => {
7686
- for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
7687
- (l = r[n]) && (i = l(e, t, i) || i);
7685
+ var B7 = Object.defineProperty, B1 = (n, e, t, o) => {
7686
+ for (var i = void 0, r = n.length - 1, l; r >= 0; r--)
7687
+ (l = n[r]) && (i = l(e, t, i) || i);
7688
7688
  return i && B7(e, t, i), i;
7689
7689
  };
7690
7690
  const F7 = "anduin-sidebar:select", o4 = class o4 extends h {
@@ -7711,12 +7711,12 @@ o4.styles = g`
7711
7711
  }
7712
7712
  `;
7713
7713
  let E5 = o4;
7714
- const n4 = class n4 extends h {
7714
+ const r4 = class r4 extends h {
7715
7715
  render() {
7716
7716
  return a`<div class="sidebar-content" part="content"><slot></slot></div>`;
7717
7717
  }
7718
7718
  };
7719
- n4.styles = g`
7719
+ r4.styles = g`
7720
7720
  :host {
7721
7721
  display: flex;
7722
7722
  flex-direction: column;
@@ -7731,8 +7731,8 @@ n4.styles = g`
7731
7731
  padding: 12px 16px;
7732
7732
  }
7733
7733
  `;
7734
- let z5 = n4;
7735
- const r4 = class r4 extends h {
7734
+ let z5 = r4;
7735
+ const n4 = class n4 extends h {
7736
7736
  constructor() {
7737
7737
  super(...arguments), this.divider = !1;
7738
7738
  }
@@ -7740,7 +7740,7 @@ const r4 = class r4 extends h {
7740
7740
  return a`<div class="sidebar-header" part="header"><slot></slot></div>`;
7741
7741
  }
7742
7742
  };
7743
- r4.styles = g`
7743
+ n4.styles = g`
7744
7744
  :host {
7745
7745
  display: block;
7746
7746
  flex: 0 0 auto;
@@ -7751,7 +7751,7 @@ r4.styles = g`
7751
7751
  border-bottom: 1px solid var(--color-border);
7752
7752
  }
7753
7753
  `;
7754
- let O2 = r4;
7754
+ let O2 = n4;
7755
7755
  B1([
7756
7756
  s({ type: Boolean, reflect: !0 })
7757
7757
  ], O2.prototype, "divider");
@@ -8076,31 +8076,31 @@ customElements.get("anduin-sidebar-menu-item") || customElements.define("anduin-
8076
8076
  customElements.get("anduin-sidebar-action") || customElements.define("anduin-sidebar-action", P5);
8077
8077
  customElements.get("anduin-sidebar-badge") || customElements.define("anduin-sidebar-badge", B5);
8078
8078
  customElements.get("anduin-sidebar-separator") || customElements.define("anduin-sidebar-separator", F5);
8079
- function P(r) {
8080
- if (!r) return null;
8081
- const e = /^(\d{4})-(\d{1,2})-(\d{1,2})$/.exec(r.trim());
8079
+ function P(n) {
8080
+ if (!n) return null;
8081
+ const e = /^(\d{4})-(\d{1,2})-(\d{1,2})$/.exec(n.trim());
8082
8082
  if (!e) return null;
8083
- const [t, o, i] = [Number(e[1]), Number(e[2]), Number(e[3])], n = new Date(t, o - 1, i);
8084
- return n.getFullYear() !== t || n.getMonth() !== o - 1 || n.getDate() !== i ? null : n;
8083
+ const [t, o, i] = [Number(e[1]), Number(e[2]), Number(e[3])], r = new Date(t, o - 1, i);
8084
+ return r.getFullYear() !== t || r.getMonth() !== o - 1 || r.getDate() !== i ? null : r;
8085
8085
  }
8086
- function x1(r) {
8086
+ function x1(n) {
8087
8087
  const e = (t) => String(t).padStart(2, "0");
8088
- return `${r.getFullYear()}-${e(r.getMonth() + 1)}-${e(r.getDate())}`;
8088
+ return `${n.getFullYear()}-${e(n.getMonth() + 1)}-${e(n.getDate())}`;
8089
8089
  }
8090
8090
  function O1() {
8091
- const r = /* @__PURE__ */ new Date();
8092
- return new Date(r.getFullYear(), r.getMonth(), r.getDate());
8091
+ const n = /* @__PURE__ */ new Date();
8092
+ return new Date(n.getFullYear(), n.getMonth(), n.getDate());
8093
8093
  }
8094
- function u1(r, e) {
8095
- const t = r.getFullYear(), o = r.getMonth() + e, i = new Date(t, o + 1, 0).getDate();
8096
- return new Date(t, o, Math.min(r.getDate(), i));
8094
+ function u1(n, e) {
8095
+ const t = n.getFullYear(), o = n.getMonth() + e, i = new Date(t, o + 1, 0).getDate();
8096
+ return new Date(t, o, Math.min(n.getDate(), i));
8097
8097
  }
8098
- function I7(r, e) {
8099
- return new Date(r, e + 1, 0).getDate();
8098
+ function I7(n, e) {
8099
+ return new Date(n, e + 1, 0).getDate();
8100
8100
  }
8101
- var O7 = Object.defineProperty, i1 = (r, e, t, o) => {
8102
- for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
8103
- (l = r[n]) && (i = l(e, t, i) || i);
8101
+ var O7 = Object.defineProperty, i1 = (n, e, t, o) => {
8102
+ for (var i = void 0, r = n.length - 1, l; r >= 0; r--)
8103
+ (l = n[r]) && (i = l(e, t, i) || i);
8104
8104
  return i && O7(e, t, i), i;
8105
8105
  };
8106
8106
  const Z2 = "anduin-calendar:change", I5 = "anduin-calendar:day-hover", q4 = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], X4 = [
@@ -8117,12 +8117,12 @@ const Z2 = "anduin-calendar:change", I5 = "anduin-calendar:day-hover", q4 = ["Ja
8117
8117
  "November",
8118
8118
  "December"
8119
8119
  ], T7 = ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], J4 = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"];
8120
- function F1(r, e) {
8121
- return new Date(r.getFullYear(), r.getMonth(), r.getDate() + e);
8120
+ function F1(n, e) {
8121
+ return new Date(n.getFullYear(), n.getMonth(), n.getDate() + e);
8122
8122
  }
8123
- function N7(r) {
8124
- const e = ["th", "st", "nd", "rd"], t = r % 100;
8125
- return `${r}${e[(t - 20) % 10] ?? e[t] ?? e[0]}`;
8123
+ function N7(n) {
8124
+ const e = ["th", "st", "nd", "rd"], t = n % 100;
8125
+ return `${n}${e[(t - 20) % 10] ?? e[t] ?? e[0]}`;
8126
8126
  }
8127
8127
  const h4 = class h4 extends h {
8128
8128
  constructor() {
@@ -8241,8 +8241,8 @@ const h4 = class h4 extends h {
8241
8241
  /** Years offered in the year picker — bounded by min/max when set, otherwise
8242
8242
  * a ±10-year window around the displayed year. */
8243
8243
  get _yearOptions() {
8244
- const e = this._min, t = this._max, o = e ? e.getFullYear() : this._viewYear - 10, i = t ? t.getFullYear() : this._viewYear + 10, n = Math.min(o, this._viewYear), l = Math.max(i, this._viewYear);
8245
- return Array.from({ length: l - n + 1 }, (d, c) => n + c);
8244
+ const e = this._min, t = this._max, o = e ? e.getFullYear() : this._viewYear - 10, i = t ? t.getFullYear() : this._viewYear + 10, r = Math.min(o, this._viewYear), l = Math.max(i, this._viewYear);
8245
+ return Array.from({ length: l - r + 1 }, (d, c) => r + c);
8246
8246
  }
8247
8247
  _selectMonth(e) {
8248
8248
  this._viewMonth = e, this._viewSeeded = !0, this._openSelect = null;
@@ -8250,7 +8250,7 @@ const h4 = class h4 extends h {
8250
8250
  _selectYear(e) {
8251
8251
  this._viewYear = e, this._viewSeeded = !0, this._openSelect = null;
8252
8252
  }
8253
- _renderSelect(e, t, o, i, n) {
8253
+ _renderSelect(e, t, o, i, r) {
8254
8254
  const l = this._openSelect === e;
8255
8255
  return a`
8256
8256
  <div class="calendar__select">
@@ -8273,7 +8273,7 @@ const h4 = class h4 extends h {
8273
8273
  class="calendar__option${d.selected ? " calendar__option--selected" : ""}"
8274
8274
  role="option"
8275
8275
  aria-selected="${d.selected}"
8276
- @click=${() => n(d.value)}
8276
+ @click=${() => r(d.value)}
8277
8277
  >${d.label}</button>
8278
8278
  `)}
8279
8279
  </div>
@@ -8283,7 +8283,7 @@ const h4 = class h4 extends h {
8283
8283
  }
8284
8284
  // ── Render ──────────────────────────────────────────────────────
8285
8285
  render() {
8286
- const e = x1(O1()), t = P(this.value), o = P(this.rangeStart), i = P(this.rangeEnd), n = this.rangeMode || !!(o || i), l = x1(this._defaultFocusDate()), d = new Date(this._viewYear, this._viewMonth, 1), c = new Date(this._viewYear, this._viewMonth + 1, 0).getDate(), C = d.getDay(), p = [
8286
+ const e = x1(O1()), t = P(this.value), o = P(this.rangeStart), i = P(this.rangeEnd), r = this.rangeMode || !!(o || i), l = x1(this._defaultFocusDate()), d = new Date(this._viewYear, this._viewMonth, 1), c = new Date(this._viewYear, this._viewMonth + 1, 0).getDate(), C = d.getDay(), p = [
8287
8287
  ...Array.from({ length: C }, () => null),
8288
8288
  ...Array.from({ length: c }, (y, v) => v + 1)
8289
8289
  ];
@@ -8353,7 +8353,7 @@ const h4 = class h4 extends h {
8353
8353
  <tr>
8354
8354
  ${y.map((v) => {
8355
8355
  if (v === null) return a`<td class="calendar__day-cell"></td>`;
8356
- const x = new Date(this._viewYear, this._viewMonth, v), M = x1(x), D = x.getTime(), K = this._isDisabled(x), Q1 = !!o && D === o.getTime(), o1 = !!i && D === i.getTime(), H4 = !!o && !!i && D > o.getTime() && D < i.getTime(), _4 = !n && !!t && D === t.getTime(), E3 = [
8356
+ const x = new Date(this._viewYear, this._viewMonth, v), w = x1(x), D = x.getTime(), K = this._isDisabled(x), Q1 = !!o && D === o.getTime(), o1 = !!i && D === i.getTime(), H4 = !!o && !!i && D > o.getTime() && D < i.getTime(), _4 = !r && !!t && D === t.getTime(), E3 = [
8357
8357
  "calendar__day-cell",
8358
8358
  H4 ? "calendar__day-cell--in-range" : "",
8359
8359
  // Only tint the edge cell when it actually opens a span —
@@ -8362,7 +8362,7 @@ const h4 = class h4 extends h {
8362
8362
  o1 && o ? "calendar__day-cell--range-end" : ""
8363
8363
  ].filter(Boolean).join(" "), z3 = [
8364
8364
  "calendar__day-button",
8365
- M === e ? "calendar__day-button--today" : "",
8365
+ w === e ? "calendar__day-button--today" : "",
8366
8366
  _4 ? "calendar__day-button--selected" : "",
8367
8367
  Q1 ? "calendar__day-button--range-start" : "",
8368
8368
  o1 ? "calendar__day-button--range-end" : "",
@@ -8381,12 +8381,12 @@ const h4 = class h4 extends h {
8381
8381
  part="day"
8382
8382
  aria-disabled="${K}"
8383
8383
  aria-label="${J4[x.getDay()]}, ${X4[x.getMonth()]} ${N7(v)}, ${x.getFullYear()}"
8384
- tabindex="${M === l ? 0 : -1}"
8384
+ tabindex="${w === l ? 0 : -1}"
8385
8385
  @click=${() => {
8386
8386
  K || this._pick(x);
8387
8387
  }}
8388
8388
  @mouseenter=${() => {
8389
- K || this._emitHover(M);
8389
+ K || this._emitHover(w);
8390
8390
  }}
8391
8391
  >${v}</button>
8392
8392
  </td>
@@ -8527,9 +8527,9 @@ i1([
8527
8527
  b()
8528
8528
  ], j.prototype, "_openSelect");
8529
8529
  customElements.get("anduin-calendar") || customElements.define("anduin-calendar", j);
8530
- var j7 = Object.defineProperty, J1 = (r, e, t, o) => {
8531
- for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
8532
- (l = r[n]) && (i = l(e, t, i) || i);
8530
+ var j7 = Object.defineProperty, J1 = (n, e, t, o) => {
8531
+ for (var i = void 0, r = n.length - 1, l; r >= 0; r--)
8532
+ (l = n[r]) && (i = l(e, t, i) || i);
8533
8533
  return i && j7(e, t, i), i;
8534
8534
  };
8535
8535
  const U7 = "anduin-date-range:change", g4 = class g4 extends h {
@@ -8574,11 +8574,11 @@ const U7 = "anduin-date-range:change", g4 = class g4 extends h {
8574
8574
  _sync() {
8575
8575
  const [e, t] = this._displayedRange();
8576
8576
  for (const [o, i] of this._panels) {
8577
- const n = i.calendar;
8578
- if (!n) continue;
8579
- n.minDate = this.minDate, n.maxDate = this.maxDate, n.rangeStart = e, n.rangeEnd = t;
8577
+ const r = i.calendar;
8578
+ if (!r) continue;
8579
+ r.minDate = this.minDate, r.maxDate = this.maxDate, r.rangeStart = e, r.rangeEnd = t;
8580
8580
  const l = this._panelValue(o);
8581
- this._pushedValue.get(o) !== l && (this._pushedValue.set(o, l), n.value = l);
8581
+ this._pushedValue.get(o) !== l && (this._pushedValue.set(o, l), r.value = l);
8582
8582
  }
8583
8583
  }
8584
8584
  /** Which month each panel opens on: the start date on the left, the month
@@ -8688,31 +8688,31 @@ customElements.get("anduin-date-range") || customElements.define("anduin-date-ra
8688
8688
  customElements.get("anduin-date-range-default") || customElements.define("anduin-date-range-default", O5);
8689
8689
  customElements.get("anduin-date-range-start") || customElements.define("anduin-date-range-start", G7);
8690
8690
  customElements.get("anduin-date-range-end") || customElements.define("anduin-date-range-end", K7);
8691
- var W7 = Object.defineProperty, T = (r, e, t, o) => {
8692
- for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
8693
- (l = r[n]) && (i = l(e, t, i) || i);
8691
+ var W7 = Object.defineProperty, T = (n, e, t, o) => {
8692
+ for (var i = void 0, r = n.length - 1, l; r >= 0; r--)
8693
+ (l = n[r]) && (i = l(e, t, i) || i);
8694
8694
  return i && W7(e, t, i), i;
8695
8695
  };
8696
8696
  const T5 = "anduin-date-input:change", Q4 = { M: "month", d: "day", y: "year" };
8697
- function Y7(r) {
8697
+ function Y7(n) {
8698
8698
  const e = [];
8699
8699
  let t = 0, o = 0;
8700
- for (; o < r.length; ) {
8701
- const i = r[o], n = Q4[i];
8702
- if (!n) {
8700
+ for (; o < n.length; ) {
8701
+ const i = n[o], r = Q4[i];
8702
+ if (!r) {
8703
8703
  let d = "";
8704
- for (; o < r.length && !Q4[r[o]]; ) d += r[o++];
8704
+ for (; o < n.length && !Q4[n[o]]; ) d += n[o++];
8705
8705
  e.push({ literal: d }), t += d.length;
8706
8706
  continue;
8707
8707
  }
8708
8708
  let l = "";
8709
- for (; o < r.length && r[o] === i; ) l += r[o++];
8710
- e.push({ segment: { type: n, placeholder: l, length: l.length, start: t } }), t += l.length;
8709
+ for (; o < n.length && n[o] === i; ) l += n[o++];
8710
+ e.push({ segment: { type: r, placeholder: l, length: l.length, start: t } }), t += l.length;
8711
8711
  }
8712
8712
  return e;
8713
8713
  }
8714
- function s5(r) {
8715
- return r.type === "year" ? 10 ** r.length - 1 : r.length === 1 ? 9 : r.type === "month" ? 12 : 31;
8714
+ function s5(n) {
8715
+ return n.type === "year" ? 10 ** n.length - 1 : n.length === 1 ? 9 : n.type === "month" ? 12 : 31;
8716
8716
  }
8717
8717
  const i2 = 1, G2 = class G2 extends h {
8718
8718
  constructor() {
@@ -8783,16 +8783,16 @@ const i2 = 1, G2 = class G2 extends h {
8783
8783
  _clampToBounds(e) {
8784
8784
  const t = P(this.minDate), o = P(this.maxDate);
8785
8785
  if (!t && !o) return e;
8786
- const i = this._indexOfType("month"), n = this._indexOfType("day"), l = this._indexOfType("year");
8787
- if (i < 0 || n < 0 || l < 0) return e;
8788
- const d = Number(e[l]), c = Number(e[i]), C = Number(e[n]), p = Math.min(C, I7(d, c - 1)), f = new Date(d, c - 1, p), H = t && f.getTime() < t.getTime() ? t : o && f.getTime() > o.getTime() ? o : null;
8786
+ const i = this._indexOfType("month"), r = this._indexOfType("day"), l = this._indexOfType("year");
8787
+ if (i < 0 || r < 0 || l < 0) return e;
8788
+ const d = Number(e[l]), c = Number(e[i]), C = Number(e[r]), p = Math.min(C, I7(d, c - 1)), f = new Date(d, c - 1, p), H = t && f.getTime() < t.getTime() ? t : o && f.getTime() > o.getTime() ? o : null;
8789
8789
  if (!H) {
8790
8790
  if (p === C) return e;
8791
8791
  const V = [...e];
8792
- return V[n] = String(p).padStart(this._segments[n].length, "0"), V;
8792
+ return V[r] = String(p).padStart(this._segments[r].length, "0"), V;
8793
8793
  }
8794
8794
  const m = [...e];
8795
- return m[l] = String(H.getFullYear()).padStart(this._segments[l].length, "0").slice(-this._segments[l].length), m[i] = String(H.getMonth() + 1).padStart(this._segments[i].length, "0"), m[n] = String(H.getDate()).padStart(this._segments[n].length, "0"), m;
8795
+ return m[l] = String(H.getFullYear()).padStart(this._segments[l].length, "0").slice(-this._segments[l].length), m[i] = String(H.getMonth() + 1).padStart(this._segments[i].length, "0"), m[r] = String(H.getDate()).padStart(this._segments[r].length, "0"), m;
8796
8796
  }
8797
8797
  // ── Selection ───────────────────────────────────────────────────
8798
8798
  _focusSegment(e) {
@@ -8824,8 +8824,8 @@ const i2 = 1, G2 = class G2 extends h {
8824
8824
  _writeSegment(e, t) {
8825
8825
  const o = this._segments[e];
8826
8826
  if (!o) return;
8827
- const i = Math.min(Math.max(Number(t), i2), s5(o)), n = [...this._digits];
8828
- n[e] = String(i).padStart(o.length, "0"), this._buffer = "", this._setDigits(n);
8827
+ const i = Math.min(Math.max(Number(t), i2), s5(o)), r = [...this._digits];
8828
+ r[e] = String(i).padStart(o.length, "0"), this._buffer = "", this._setDigits(r);
8829
8829
  }
8830
8830
  /** Commit any half-typed digits so they aren't stranded on blur or navigation. */
8831
8831
  _flushBuffer() {
@@ -8852,9 +8852,9 @@ const i2 = 1, G2 = class G2 extends h {
8852
8852
  _step(e) {
8853
8853
  const t = this._active, o = this._segments[t];
8854
8854
  if (!o) return;
8855
- const i = s5(o), n = this._digits[t];
8855
+ const i = s5(o), r = this._digits[t];
8856
8856
  let l;
8857
- n === null ? l = e > 0 ? i2 : i : (l = Number(n) + e, l > i && (l = i2), l < i2 && (l = i));
8857
+ r === null ? l = e > 0 ? i2 : i : (l = Number(r) + e, l > i && (l = i2), l < i2 && (l = i));
8858
8858
  const d = [...this._digits];
8859
8859
  d[t] = String(l).padStart(o.length, "0"), this._buffer = "", this._setDigits(d), this._pendingSelection = [o.start, o.start + o.length];
8860
8860
  }
@@ -8922,9 +8922,9 @@ const i2 = 1, G2 = class G2 extends h {
8922
8922
  @mouseup=${this._onSelectionIntent}
8923
8923
  @focus=${this._onSelectionIntent}
8924
8924
  @blur=${() => this._flushBuffer()}
8925
- @beforeinput=${(n) => n.preventDefault()}
8926
- @paste=${(n) => n.preventDefault()}
8927
- @drop=${(n) => n.preventDefault()}
8925
+ @beforeinput=${(r) => r.preventDefault()}
8926
+ @paste=${(r) => r.preventDefault()}
8927
+ @drop=${(r) => r.preventDefault()}
8928
8928
  />
8929
8929
  </div>
8930
8930
  `;
@@ -9025,14 +9025,14 @@ T([
9025
9025
  k("input")
9026
9026
  ], S.prototype, "_inputEl");
9027
9027
  customElements.get("anduin-date-input") || customElements.define("anduin-date-input", S);
9028
- var q7 = Object.defineProperty, N = (r, e, t, o) => {
9029
- for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
9030
- (l = r[n]) && (i = l(e, t, i) || i);
9028
+ var q7 = Object.defineProperty, N = (n, e, t, o) => {
9029
+ for (var i = void 0, r = n.length - 1, l; r >= 0; r--)
9030
+ (l = n[r]) && (i = l(e, t, i) || i);
9031
9031
  return i && q7(e, t, i), i;
9032
9032
  };
9033
9033
  const X7 = "anduin-date-picker:change", $3 = { M: "month", d: "day", y: "year" };
9034
- function J7(r, e) {
9035
- if (!r) return null;
9034
+ function J7(n, e) {
9035
+ if (!n) return null;
9036
9036
  const t = {};
9037
9037
  let o = 0, i = 0;
9038
9038
  for (; i < e.length; ) {
@@ -9044,29 +9044,29 @@ function J7(r, e) {
9044
9044
  let C = 0;
9045
9045
  for (; i < e.length && e[i] === d; )
9046
9046
  i++, C++;
9047
- const p = r.slice(o, o + C);
9047
+ const p = n.slice(o, o + C);
9048
9048
  if (!/^\d+$/.test(p)) return null;
9049
9049
  t[c] = p, o += C;
9050
9050
  }
9051
9051
  if (!t.month || !t.day || !t.year) return null;
9052
- const n = Number(t.year), l = new Date(n, Number(t.month) - 1, Number(t.day));
9052
+ const r = Number(t.year), l = new Date(r, Number(t.month) - 1, Number(t.day));
9053
9053
  return l.getMonth() !== Number(t.month) - 1 || l.getDate() !== Number(t.day) ? null : l;
9054
9054
  }
9055
- function Q7(r, e) {
9055
+ function Q7(n, e) {
9056
9056
  const t = {
9057
- month: r.getMonth() + 1,
9058
- day: r.getDate(),
9059
- year: r.getFullYear()
9057
+ month: n.getMonth() + 1,
9058
+ day: n.getDate(),
9059
+ year: n.getFullYear()
9060
9060
  };
9061
9061
  let o = "", i = 0;
9062
9062
  for (; i < e.length; ) {
9063
- const n = e[i], l = $3[n];
9063
+ const r = e[i], l = $3[r];
9064
9064
  if (!l) {
9065
- o += n, i++;
9065
+ o += r, i++;
9066
9066
  continue;
9067
9067
  }
9068
9068
  let d = 0;
9069
- for (; i < e.length && e[i] === n; )
9069
+ for (; i < e.length && e[i] === r; )
9070
9070
  i++, d++;
9071
9071
  o += String(t[l]).padStart(d, "0").slice(-d);
9072
9072
  }
@@ -9202,20 +9202,20 @@ N([
9202
9202
  k("anduin-popover")
9203
9203
  ], A.prototype, "_popoverEl");
9204
9204
  customElements.get("anduin-date-picker") || customElements.define("anduin-date-picker", A);
9205
- var e0 = Object.defineProperty, L = (r, e, t, o) => {
9206
- for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
9207
- (l = r[n]) && (i = l(e, t, i) || i);
9205
+ var e0 = Object.defineProperty, L = (n, e, t, o) => {
9206
+ for (var i = void 0, r = n.length - 1, l; r >= 0; r--)
9207
+ (l = n[r]) && (i = l(e, t, i) || i);
9208
9208
  return i && e0(e, t, i), i;
9209
9209
  };
9210
- const t0 = "anduin-table:sort", i0 = "anduin-table:column-click", o0 = "anduin-table:row-click", n0 = "anduin-table:selection-change", r0 = "anduin-table:cell-context-menu", l0 = "anduin-table:row-expand", s0 = "anduin-table:row-collapse", a0 = "anduin-table:group-toggle", e3 = "anduin-table:column-resize", t3 = 40, n1 = (r) => r.type === "selection", C1 = (r, e) => {
9210
+ const t0 = "anduin-table:sort", i0 = "anduin-table:column-click", o0 = "anduin-table:row-click", r0 = "anduin-table:selection-change", n0 = "anduin-table:cell-context-menu", l0 = "anduin-table:row-expand", s0 = "anduin-table:row-collapse", a0 = "anduin-table:group-toggle", e3 = "anduin-table:column-resize", t3 = 40, r1 = (n) => n.type === "selection", C1 = (n, e) => {
9211
9211
  if (!e) return;
9212
- let t = r;
9212
+ let t = n;
9213
9213
  for (const o of e.split(".")) {
9214
9214
  if (t === null || typeof t != "object") return;
9215
9215
  t = t[o];
9216
9216
  }
9217
9217
  return t;
9218
- }, d0 = (r, e) => r === e ? 0 : r == null ? 1 : e == null ? -1 : typeof r == "number" && typeof e == "number" ? r - e : typeof r == "boolean" && typeof e == "boolean" ? Number(r) - Number(e) : r instanceof Date && e instanceof Date ? r.getTime() - e.getTime() : String(r).localeCompare(String(e), void 0, { numeric: !0, sensitivity: "base" }), m4 = class m4 extends h {
9218
+ }, d0 = (n, e) => n === e ? 0 : n == null ? 1 : e == null ? -1 : typeof n == "number" && typeof e == "number" ? n - e : typeof n == "boolean" && typeof e == "boolean" ? Number(n) - Number(e) : n instanceof Date && e instanceof Date ? n.getTime() - e.getTime() : String(n).localeCompare(String(e), void 0, { numeric: !0, sensitivity: "base" }), m4 = class m4 extends h {
9219
9219
  constructor() {
9220
9220
  super(...arguments), this.columns = [], this.data = [], this.layout = "fit-data", this.renderMode = "basic", this.rowHeight = 40, this.height = "", this.maxHeight = "", this.minHeight = "", this.resizableColumns = !0, this.hideHeader = !1, this.loading = !1, this.selectable = "clickable", this.indexColumn = "id", this.columnAlign = "left", this.columnVerticalAlign = "middle", this.sortField = "", this.sortDirection = "asc", this.dataTree = !1, this.treeChildrenField = "children", this.treeChildIndent = 20, this.groupBy = "", this.selectedRows = [], this.expandedKeys = /* @__PURE__ */ new Set(), this.collapsedGroups = /* @__PURE__ */ new Set(), this.virtualScrollTop = 0, this.viewportHeight = 0, this.scrolledX = !1, this.scrollableXEnd = !1, this.resizedWidths = {}, this.resizingKey = "", this.rangeAnchorKey = null, this.isDraggingRange = !1, this.dragBaseKeys = [], this.dragSelects = !0, this.autoExpandedKeys = /* @__PURE__ */ new Set(), this.resizeDrag = null, this.resizeFrame = 0, this.renderSelectedKeys = /* @__PURE__ */ new Set(), this.renderSelectableRows = [], this.cachedRenderRows = [], this.rowsDirty = !0, this.onWindowMouseUp = () => {
9221
9221
  this.isDraggingRange = !1;
@@ -9327,9 +9327,9 @@ const t0 = "anduin-table:sort", i0 = "anduin-table:column-click", o0 = "anduin-t
9327
9327
  );
9328
9328
  if (t.length === 0) return;
9329
9329
  const o = t.map((c) => c.getBoundingClientRect().width), i = e.map(() => null);
9330
- let n = 0;
9330
+ let r = 0;
9331
9331
  for (let c = 0; c < e.length; c++)
9332
- e[c] === "left" && (i[c] = n, n += o[c] ?? 0);
9332
+ e[c] === "left" && (i[c] = r, r += o[c] ?? 0);
9333
9333
  let l = 0;
9334
9334
  for (let c = e.length - 1; c >= 0; c--)
9335
9335
  e[c] === "right" && (i[c] = l, l += o[c] ?? 0);
@@ -9342,14 +9342,14 @@ const t0 = "anduin-table:sort", i0 = "anduin-table:column-click", o0 = "anduin-t
9342
9342
  get sortedColumn() {
9343
9343
  if (this.sortField)
9344
9344
  return this.columns.find(
9345
- (e) => !n1(e) && e.field === this.sortField
9345
+ (e) => !r1(e) && e.field === this.sortField
9346
9346
  );
9347
9347
  }
9348
9348
  sortRows(e) {
9349
9349
  const t = this.sortedColumn;
9350
9350
  if (!t) return e;
9351
- const o = this.sortDirection === "desc" ? -1 : 1, i = t.sortWith ? (n, l) => t.sortWith({ a: n, b: l }) : (n, l) => d0(C1(n, t.field), C1(l, t.field));
9352
- return [...e].sort((n, l) => i(n, l) * o);
9351
+ const o = this.sortDirection === "desc" ? -1 : 1, i = t.sortWith ? (r, l) => t.sortWith({ a: r, b: l }) : (r, l) => d0(C1(r, t.field), C1(l, t.field));
9352
+ return [...e].sort((r, l) => i(r, l) * o);
9353
9353
  }
9354
9354
  onHeaderClick(e) {
9355
9355
  if (this.dispatchEvent(new CustomEvent(i0, {
@@ -9371,21 +9371,21 @@ const t0 = "anduin-table:sort", i0 = "anduin-table:column-click", o0 = "anduin-t
9371
9371
  }
9372
9372
  buildFlatRows(e, t) {
9373
9373
  const o = [];
9374
- return e.forEach((i, n) => {
9375
- const l = this.keyFor(i, n), d = this.dataTree ? C1(i, this.treeChildrenField) : void 0, c = Array.isArray(d) && d.length > 0, C = c && this.isExpanded(l, i);
9374
+ return e.forEach((i, r) => {
9375
+ const l = this.keyFor(i, r), d = this.dataTree ? C1(i, this.treeChildrenField) : void 0, c = Array.isArray(d) && d.length > 0, C = c && this.isExpanded(l, i);
9376
9376
  o.push({ kind: "row", data: i, key: l, depth: t, hasChildren: c, expanded: C }), C && o.push(...this.buildFlatRows(this.sortRows(d), t + 1));
9377
9377
  }), o;
9378
9378
  }
9379
9379
  buildGroupedRows() {
9380
9380
  const e = /* @__PURE__ */ new Map();
9381
9381
  this.data.forEach((o) => {
9382
- const i = C1(o, this.groupBy), n = String(i), l = e.get(n);
9383
- l ? l.rows.push(o) : e.set(n, { value: i, rows: [o] });
9382
+ const i = C1(o, this.groupBy), r = String(i), l = e.get(r);
9383
+ l ? l.rows.push(o) : e.set(r, { value: i, rows: [o] });
9384
9384
  });
9385
9385
  const t = [];
9386
- return e.forEach(({ value: o, rows: i }, n) => {
9387
- const l = !this.collapsedGroups.has(n);
9388
- t.push({ kind: "group", key: n, value: o, rows: i, expanded: l }), l && t.push(...this.buildFlatRows(this.sortRows(i), 0));
9386
+ return e.forEach(({ value: o, rows: i }, r) => {
9387
+ const l = !this.collapsedGroups.has(r);
9388
+ t.push({ kind: "group", key: r, value: o, rows: i, expanded: l }), l && t.push(...this.buildFlatRows(this.sortRows(i), 0));
9389
9389
  }), t;
9390
9390
  }
9391
9391
  isExpanded(e, t) {
@@ -9409,9 +9409,9 @@ const t0 = "anduin-table:sort", i0 = "anduin-table:column-click", o0 = "anduin-t
9409
9409
  /** Expands every tree row that has children. */
9410
9410
  expandAll() {
9411
9411
  const e = /* @__PURE__ */ new Set(), t = (o) => {
9412
- o.forEach((i, n) => {
9412
+ o.forEach((i, r) => {
9413
9413
  const l = C1(i, this.treeChildrenField);
9414
- Array.isArray(l) && l.length > 0 && (e.add(this.keyFor(i, n)), t(l));
9414
+ Array.isArray(l) && l.length > 0 && (e.add(this.keyFor(i, r)), t(l));
9415
9415
  });
9416
9416
  };
9417
9417
  t(this.data), this.expandedKeys = e;
@@ -9428,16 +9428,16 @@ const t0 = "anduin-table:sort", i0 = "anduin-table:column-click", o0 = "anduin-t
9428
9428
  );
9429
9429
  }
9430
9430
  commitSelection(e) {
9431
- const t = /* @__PURE__ */ new Map(), o = (n) => {
9432
- n.forEach((l, d) => {
9431
+ const t = /* @__PURE__ */ new Map(), o = (r) => {
9432
+ r.forEach((l, d) => {
9433
9433
  t.set(this.keyFor(l, d), l);
9434
9434
  const c = this.dataTree ? C1(l, this.treeChildrenField) : void 0;
9435
9435
  Array.isArray(c) && o(c);
9436
9436
  });
9437
9437
  };
9438
9438
  o(this.data);
9439
- const i = [...e].filter((n) => t.has(n));
9440
- this.selectedRows = i.map((n) => t.get(n)), this.dispatchEvent(new CustomEvent(n0, {
9439
+ const i = [...e].filter((r) => t.has(r));
9440
+ this.selectedRows = i.map((r) => t.get(r)), this.dispatchEvent(new CustomEvent(r0, {
9441
9441
  detail: { selectedRows: this.selectedRows, selectedKeys: i },
9442
9442
  bubbles: !0,
9443
9443
  composed: !0
@@ -9456,9 +9456,9 @@ const t0 = "anduin-table:sort", i0 = "anduin-table:column-click", o0 = "anduin-t
9456
9456
  }
9457
9457
  /** Selects (or clears) every row between the anchor and `row`, inclusive. */
9458
9458
  selectRange(e, t, o) {
9459
- const i = this.selectableRows, n = i.findIndex((f) => f.key === e.key);
9460
- if (n < 0) return;
9461
- const l = this.rangeAnchorKey ? i.findIndex((f) => f.key === this.rangeAnchorKey) : -1, d = l < 0 ? n : l, [c, C] = d <= n ? [d, n] : [n, d], p = new Set(o);
9459
+ const i = this.selectableRows, r = i.findIndex((f) => f.key === e.key);
9460
+ if (r < 0) return;
9461
+ const l = this.rangeAnchorKey ? i.findIndex((f) => f.key === this.rangeAnchorKey) : -1, d = l < 0 ? r : l, [c, C] = d <= r ? [d, r] : [r, d], p = new Set(o);
9462
9462
  for (let f = c; f <= C; f++)
9463
9463
  t ? p.add(i[f].key) : p.delete(i[f].key);
9464
9464
  this.commitSelection(p);
@@ -9477,19 +9477,19 @@ const t0 = "anduin-table:sort", i0 = "anduin-table:column-click", o0 = "anduin-t
9477
9477
  }));
9478
9478
  const i = this.selectable;
9479
9479
  if (i === "unselectable" || i === "clickable" || this.rowIsDisabled(t.data)) return;
9480
- const n = this.selectedKeySet.has(t.key);
9480
+ const r = this.selectedKeySet.has(t.key);
9481
9481
  if (i === "selectable-by-clicking" && e.shiftKey) {
9482
9482
  this.selectRange(t, !0, e.metaKey || e.ctrlKey ? [...this.selectedKeySet] : []);
9483
9483
  return;
9484
9484
  }
9485
9485
  if (i === "selectable-by-clicking" && !(e.metaKey || e.ctrlKey)) {
9486
- this.rangeAnchorKey = t.key, this.commitSelection(new Set(n && this.selectedRows.length === 1 ? [] : [t.key]));
9486
+ this.rangeAnchorKey = t.key, this.commitSelection(new Set(r && this.selectedRows.length === 1 ? [] : [t.key]));
9487
9487
  return;
9488
9488
  }
9489
- this.setRowSelected(t, !n);
9489
+ this.setRowSelected(t, !r);
9490
9490
  }
9491
9491
  onCellContextMenu(e, t, o, i) {
9492
- this.dispatchEvent(new CustomEvent(r0, {
9492
+ this.dispatchEvent(new CustomEvent(n0, {
9493
9493
  detail: {
9494
9494
  data: t.data,
9495
9495
  key: t.key,
@@ -9519,7 +9519,7 @@ const t0 = "anduin-table:sort", i0 = "anduin-table:column-click", o0 = "anduin-t
9519
9519
  */
9520
9520
  /** A stable identity for a column, used to remember a dragged width. */
9521
9521
  columnKey(e, t) {
9522
- return n1(e) ? `__selection:${t}` : e.field || `__col:${t}`;
9522
+ return r1(e) ? `__selection:${t}` : e.field || `__col:${t}`;
9523
9523
  }
9524
9524
  /** The width to lay a column out at: a dragged width beats the configured one. */
9525
9525
  widthFor(e, t) {
@@ -9563,7 +9563,7 @@ const t0 = "anduin-table:sort", i0 = "anduin-table:column-click", o0 = "anduin-t
9563
9563
  */
9564
9564
  fitColumnsMinWidth() {
9565
9565
  return this.layout !== "fit-columns" || !this.columns.some((e) => e.minWidth) ? 0 : this.columns.reduce((e, t, o) => {
9566
- const i = n1(t) && !t.width && !t.minWidth ? t3 : Math.max(this.widthFor(t, o) ?? 0, t.minWidth ?? 0);
9566
+ const i = r1(t) && !t.width && !t.minWidth ? t3 : Math.max(this.widthFor(t, o) ?? 0, t.minWidth ?? 0);
9567
9567
  return e + i;
9568
9568
  }, 0);
9569
9569
  }
@@ -9573,9 +9573,9 @@ const t0 = "anduin-table:sort", i0 = "anduin-table:column-click", o0 = "anduin-t
9573
9573
  }
9574
9574
  onResizeStart(e, t, o) {
9575
9575
  e.preventDefault(), e.stopPropagation();
9576
- const i = e.currentTarget, n = i.closest("th");
9577
- if (!n) return;
9578
- const l = n.getBoundingClientRect().width;
9576
+ const i = e.currentTarget, r = i.closest("th");
9577
+ if (!r) return;
9578
+ const l = r.getBoundingClientRect().width;
9579
9579
  this.resizeDrag = {
9580
9580
  key: this.columnKey(t, o),
9581
9581
  startX: e.clientX,
@@ -9588,8 +9588,8 @@ const t0 = "anduin-table:sort", i0 = "anduin-table:column-click", o0 = "anduin-t
9588
9588
  e.preventDefault(), e.stopPropagation();
9589
9589
  const i = this.columnKey(t, o);
9590
9590
  if (this.resizedWidths[i] === void 0) return;
9591
- const n = { ...this.resizedWidths };
9592
- delete n[i], this.resizedWidths = n, this.dispatchEvent(new CustomEvent(e3, {
9591
+ const r = { ...this.resizedWidths };
9592
+ delete r[i], this.resizedWidths = r, this.dispatchEvent(new CustomEvent(e3, {
9593
9593
  detail: { column: t, field: i, width: null },
9594
9594
  bubbles: !0,
9595
9595
  composed: !0
@@ -9607,12 +9607,12 @@ const t0 = "anduin-table:sort", i0 = "anduin-table:column-click", o0 = "anduin-t
9607
9607
  ].filter(Boolean).join(" ");
9608
9608
  }
9609
9609
  renderHeaderCell(e, t) {
9610
- const o = this.frozenSides, i = o[t], n = i === "left" ? o[t + 1] !== "left" : i === "right" ? o[t - 1] !== "right" : !1, l = [
9610
+ const o = this.frozenSides, i = o[t], r = i === "left" ? o[t + 1] !== "left" : i === "right" ? o[t - 1] !== "right" : !1, l = [
9611
9611
  "table__header-cell",
9612
9612
  i ? "table__header-cell--frozen" : "",
9613
- i && n ? `table__header-cell--frozen-${i}-edge` : "",
9614
- !n1(e) && e.isSortable ? "table__header-cell--sortable" : "",
9615
- n1(e) ? "table__cell--selection" : "",
9613
+ i && r ? `table__header-cell--frozen-${i}-edge` : "",
9614
+ !r1(e) && e.isSortable ? "table__header-cell--sortable" : "",
9615
+ r1(e) ? "table__cell--selection" : "",
9616
9616
  this.sizingClass(e, t)
9617
9617
  ].filter(Boolean).join(" "), d = this.cellStyle(e, t), c = e.headerAlign ?? e.align ?? this.columnAlign, C = [
9618
9618
  "table__header-inner",
@@ -9632,10 +9632,10 @@ const t0 = "anduin-table:sort", i0 = "anduin-table:column-click", o0 = "anduin-t
9632
9632
  @click=${(v) => v.stopPropagation()}
9633
9633
  ></span>
9634
9634
  ` : u;
9635
- if (n1(e)) {
9636
- const v = this.renderSelectableRows, x = this.renderSelectedKeys, M = v.filter((o1) => x.has(o1.key)).length, D = v.length > 0 && M === v.length, K = M > 0 && !D, Q1 = e.renderHeader ? e.renderHeader({
9635
+ if (r1(e)) {
9636
+ const v = this.renderSelectableRows, x = this.renderSelectedKeys, w = v.filter((o1) => x.has(o1.key)).length, D = v.length > 0 && w === v.length, K = w > 0 && !D, Q1 = e.renderHeader ? e.renderHeader({
9637
9637
  areAllRowsSelected: D,
9638
- hasSelectedRow: M > 0,
9638
+ hasSelectedRow: w > 0,
9639
9639
  onChange: (o1) => this.toggleAllRows(o1)
9640
9640
  }) : a`
9641
9641
  <anduin-checkbox
@@ -9681,23 +9681,23 @@ const t0 = "anduin-table:sort", i0 = "anduin-table:column-click", o0 = "anduin-t
9681
9681
  `;
9682
9682
  }
9683
9683
  renderCell(e, t, o, i) {
9684
- const n = this.frozenSides, l = n[i], d = l === "left" ? n[i + 1] !== "left" : l === "right" ? n[i - 1] !== "right" : !1, c = [
9684
+ const r = this.frozenSides, l = r[i], d = l === "left" ? r[i + 1] !== "left" : l === "right" ? r[i - 1] !== "right" : !1, c = [
9685
9685
  "table__cell",
9686
9686
  this.alignClass(o),
9687
9687
  l ? "table__cell--frozen" : "",
9688
9688
  l && d ? `table__cell--frozen-${l}-edge` : "",
9689
- n1(o) ? "table__cell--selection" : "",
9689
+ r1(o) ? "table__cell--selection" : "",
9690
9690
  o.showOnRowHover ? "table__cell--hover-only" : "",
9691
9691
  this.sizingClass(o, i)
9692
9692
  ].filter(Boolean).join(" "), C = this.cellStyle(o, i);
9693
- if (n1(o)) {
9694
- const V = this.renderSelectedKeys.has(e.key), y = this.rowIsDisabled(e.data), v = (M) => this.setRowSelected(e, M), x = o.renderCell ? o.renderCell({ data: e.data, isChecked: V, isDisabled: y, onChange: v }) : a`
9693
+ if (r1(o)) {
9694
+ const V = this.renderSelectedKeys.has(e.key), y = this.rowIsDisabled(e.data), v = (w) => this.setRowSelected(e, w), x = o.renderCell ? o.renderCell({ data: e.data, isChecked: V, isDisabled: y, onChange: v }) : a`
9695
9695
  <anduin-checkbox
9696
9696
  .checked=${V}
9697
9697
  .disabled=${y}
9698
9698
  aria-label="${V ? "Deselect row" : "Select row"}"
9699
- @anduin-checkbox:change=${(M) => {
9700
- M.stopPropagation(), v(!V);
9699
+ @anduin-checkbox:change=${(w) => {
9700
+ w.stopPropagation(), v(!V);
9701
9701
  }}
9702
9702
  ></anduin-checkbox>
9703
9703
  `;
@@ -9707,7 +9707,7 @@ const t0 = "anduin-table:sort", i0 = "anduin-table:column-click", o0 = "anduin-t
9707
9707
  part="cell"
9708
9708
  data-col="${i}"
9709
9709
  style="${C}"
9710
- @click=${(M) => M.stopPropagation()}
9710
+ @click=${(w) => w.stopPropagation()}
9711
9711
  >${x}</td>
9712
9712
  `;
9713
9713
  }
@@ -9743,20 +9743,20 @@ const t0 = "anduin-table:sort", i0 = "anduin-table:column-click", o0 = "anduin-t
9743
9743
  `;
9744
9744
  }
9745
9745
  get firstDataColumnIndex() {
9746
- const e = this.columns.findIndex((t) => !n1(t));
9746
+ const e = this.columns.findIndex((t) => !r1(t));
9747
9747
  return e < 0 ? 0 : e;
9748
9748
  }
9749
9749
  renderRow(e, t) {
9750
- const o = this.renderSelectedKeys.has(e.key), i = this.selectable !== "unselectable", n = this.rowClass ? this.rowClass(e.data, t).trim() : "", l = [
9750
+ const o = this.renderSelectedKeys.has(e.key), i = this.selectable !== "unselectable", r = this.rowClass ? this.rowClass(e.data, t).trim() : "", l = [
9751
9751
  "table__row",
9752
9752
  i ? "table__row--interactive" : "",
9753
9753
  o ? "table__row--selected" : "",
9754
- n
9754
+ r
9755
9755
  ].filter(Boolean).join(" ");
9756
9756
  return a`
9757
9757
  <tr
9758
9758
  class="${l}"
9759
- part="${n ? `row ${n}` : "row"}"
9759
+ part="${r ? `row ${r}` : "row"}"
9760
9760
  aria-selected="${this.selectable === "unselectable" || this.selectable === "clickable" ? u : String(o)}"
9761
9761
  style="${this.renderMode === "virtual" ? `height:${this.rowHeight}px` : ""}"
9762
9762
  @click=${(d) => this.onRowClick(d, e, t)}
@@ -9814,10 +9814,10 @@ const t0 = "anduin-table:sort", i0 = "anduin-table:column-click", o0 = "anduin-t
9814
9814
  this.scrolledX ? "table--scrolled-x" : "",
9815
9815
  this.scrollableXEnd ? "table--scrollable-x-end" : ""
9816
9816
  ].filter(Boolean).join(" ");
9817
- let n = e, l = 0, d = 0, c = 0;
9817
+ let r = e, l = 0, d = 0, c = 0;
9818
9818
  if (this.renderMode === "virtual" && e.length > 0) {
9819
9819
  const p = Math.ceil((this.viewportHeight || 400) / this.rowHeight), f = Math.max(0, Math.floor(this.virtualScrollTop / this.rowHeight) - 6), H = Math.min(e.length, f + p + 12);
9820
- n = e.slice(f, H), l = f * this.rowHeight, d = (e.length - H) * this.rowHeight, c = f;
9820
+ r = e.slice(f, H), l = f * this.rowHeight, d = (e.length - H) * this.rowHeight, c = f;
9821
9821
  }
9822
9822
  return a`
9823
9823
  <div class="${i}" part="table" style="${t}">
@@ -9837,7 +9837,7 @@ const t0 = "anduin-table:sort", i0 = "anduin-table:column-click", o0 = "anduin-t
9837
9837
  <tbody part="body">
9838
9838
  ${e.length === 0 ? this.renderPlaceholder() : u}
9839
9839
  ${l > 0 ? a`<tr style="height:${l}px" aria-hidden="true"><td colspan="${this.columnCount}"></td></tr>` : u}
9840
- ${n.map(
9840
+ ${r.map(
9841
9841
  (C, p) => C.kind === "group" ? this.renderGroupRow(C) : this.renderRow(C, c + p)
9842
9842
  )}
9843
9843
  ${d > 0 ? a`<tr style="height:${d}px" aria-hidden="true"><td colspan="${this.columnCount}"></td></tr>` : u}
@@ -9945,7 +9945,10 @@ m4.styles = g`
9945
9945
  height: 36px;
9946
9946
  padding: 0 12px;
9947
9947
  border-bottom: 1px solid var(--color-border);
9948
- background-color: var(--color-muted);
9948
+ /* table-header, not muted: both are gray-1 in light, but in dark muted is the
9949
+ sunken canvas (darker than the rows) while anduin.design lifts the header to
9950
+ gray-8, a step lighter than the gray-9 rows. */
9951
+ background-color: var(--color-table-header);
9949
9952
  color: var(--color-muted-foreground);
9950
9953
  font-size: var(--text-12, 12px);
9951
9954
  font-weight: 600;
@@ -10169,7 +10172,8 @@ m4.styles = g`
10169
10172
  height: 32px;
10170
10173
  padding: 0;
10171
10174
  border-bottom: 1px solid var(--color-border-subtle);
10172
- background-color: var(--color-muted);
10175
+ /* A group's header row reads as a header: table-header, as above */
10176
+ background-color: var(--color-table-header);
10173
10177
  }
10174
10178
  .table__group-toggle {
10175
10179
  display: flex;
@@ -10247,7 +10251,7 @@ L([
10247
10251
  L([
10248
10252
  s({
10249
10253
  attribute: "resizable-columns",
10250
- converter: (r) => r !== "false"
10254
+ converter: (n) => n !== "false"
10251
10255
  })
10252
10256
  ], _.prototype, "resizableColumns");
10253
10257
  L([
@@ -10361,16 +10365,16 @@ export {
10361
10365
  D5 as a1,
10362
10366
  _1 as a2,
10363
10367
  F5 as a3,
10364
- r1 as a4,
10368
+ n1 as a4,
10365
10369
  g2 as a5,
10366
10370
  h2 as a6,
10367
10371
  Z as a7,
10368
- M2 as a8,
10372
+ w2 as a8,
10369
10373
  L2 as a9,
10370
10374
  T5 as aA,
10371
10375
  X7 as aB,
10372
10376
  U7 as aC,
10373
- r5 as aD,
10377
+ n5 as aD,
10374
10378
  l2 as aE,
10375
10379
  G4 as aF,
10376
10380
  m3 as aG,
@@ -10380,10 +10384,10 @@ export {
10380
10384
  At as aK,
10381
10385
  zt as aL,
10382
10386
  B4 as aM,
10383
- wt as aN,
10387
+ Mt as aN,
10384
10388
  H5 as aO,
10385
10389
  t5 as aP,
10386
- r2 as aQ,
10390
+ n2 as aQ,
10387
10391
  $7 as aR,
10388
10392
  V5 as aS,
10389
10393
  A7 as aT,
@@ -10391,7 +10395,7 @@ export {
10391
10395
  v5 as aV,
10392
10396
  b5 as aW,
10393
10397
  _5 as aX,
10394
- r7 as aY,
10398
+ n7 as aY,
10395
10399
  z7 as aZ,
10396
10400
  F7 as a_,
10397
10401
  l1 as aa,
@@ -10401,10 +10405,10 @@ export {
10401
10405
  U1 as ae,
10402
10406
  h5 as af,
10403
10407
  W as ag,
10404
- M5 as ah,
10408
+ w5 as ah,
10405
10409
  Z5 as ai,
10406
10410
  R5 as aj,
10407
- w5 as ak,
10411
+ M5 as ak,
10408
10412
  $5 as al,
10409
10413
  k5 as am,
10410
10414
  b1 as an,
@@ -10424,17 +10428,17 @@ export {
10424
10428
  k7 as b0,
10425
10429
  Z7 as b1,
10426
10430
  _7 as b2,
10427
- r0 as b3,
10431
+ n0 as b3,
10428
10432
  i0 as b4,
10429
10433
  e3 as b5,
10430
10434
  a0 as b6,
10431
10435
  o0 as b7,
10432
10436
  s0 as b8,
10433
10437
  l0 as b9,
10434
- n0 as ba,
10438
+ r0 as ba,
10435
10439
  t0 as bb,
10436
10440
  Ft as bc,
10437
- M3 as bd,
10441
+ w3 as bd,
10438
10442
  W2 as be,
10439
10443
  Ot as bf,
10440
10444
  Pt as bg,
@@ -10472,8 +10476,8 @@ export {
10472
10476
  b2 as o,
10473
10477
  D2 as p,
10474
10478
  G as q,
10475
- M7 as r,
10476
- w as s,
10479
+ w7 as r,
10480
+ M as s,
10477
10481
  B2 as t,
10478
10482
  a5 as u,
10479
10483
  d5 as v,