@duyluonganduin/acl-web-components 0.0.65 → 0.0.66

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 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) => {
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) => {
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) + 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);
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);
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, n.appendChild(o);
36
+ i !== void 0 && o.setAttribute("nonce", i), o.textContent = t.cssText, r.appendChild(o);
37
37
  }
38
- }, L4 = N5 ? (n) => n : (n) => n instanceof CSSStyleSheet ? ((e) => {
38
+ }, L4 = N5 ? (r) => r : (r) => r instanceof CSSStyleSheet ? ((e) => {
39
39
  let t = "";
40
40
  for (const o of e.cssRules) t += o.cssText;
41
- return r3(t);
42
- })(n) : n;
41
+ return n3(t);
42
+ })(r) : r;
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 = (n, e) => n, E2 = { toAttribute(n, 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 = (r, e) => r, E2 = { toAttribute(r, e) {
49
49
  switch (e) {
50
50
  case Boolean:
51
- n = n ? O3 : null;
51
+ r = r ? O3 : null;
52
52
  break;
53
53
  case Object:
54
54
  case Array:
55
- n = n == null ? n : JSON.stringify(n);
55
+ r = r == null ? r : JSON.stringify(r);
56
56
  }
57
- return n;
58
- }, fromAttribute(n, e) {
59
- let t = n;
57
+ return r;
58
+ }, fromAttribute(r, e) {
59
+ let t = r;
60
60
  switch (e) {
61
61
  case Boolean:
62
- t = n !== null;
62
+ t = r !== null;
63
63
  break;
64
64
  case Number:
65
- t = n === null ? null : Number(n);
65
+ t = r === null ? null : Number(r);
66
66
  break;
67
67
  case Object:
68
68
  case Array:
69
69
  try {
70
- t = JSON.parse(n);
70
+ t = JSON.parse(r);
71
71
  } catch {
72
72
  t = null;
73
73
  }
74
74
  }
75
75
  return t;
76
- } }, U5 = (n, e) => !A3(n, e), x4 = { attribute: !0, type: String, converter: E2, reflect: !1, useDefault: !1, hasChanged: U5 };
76
+ } }, U5 = (r, e) => !A3(r, 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: r } = P3(this.prototype, e) ?? { get() {
92
+ const { get: i, set: n } = 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
- r == null || r.call(this, l), this.requestUpdate(e, d, o);
99
+ n == null || n.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 r;
184
+ var n;
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 = (((r = o.converter) == null ? void 0 : r.toAttribute) !== void 0 ? o.converter : E2).toAttribute(t, o.type);
187
+ const l = (((n = o.converter) == null ? void 0 : n.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 r, l;
192
+ var n, 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 } : ((r = d.converter) == null ? void 0 : r.fromAttribute) !== void 0 ? d.converter : E2;
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;
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, r) {
201
+ requestUpdate(e, t, o, i = !1, n) {
202
202
  var l;
203
203
  if (e !== void 0) {
204
204
  const d = this.constructor;
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;
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;
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: 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));
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));
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 [r, l] of this._$Ep) this[r] = l;
231
+ for (const [n, l] of this._$Ep) this[n] = l;
232
232
  this._$Ep = void 0;
233
233
  }
234
234
  const i = this.constructor.elementProperties;
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);
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);
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 r;
245
- return (r = i.hostUpdate) == null ? void 0 : r.call(i);
244
+ var n;
245
+ return (n = i.hostUpdate) == null ? void 0 : n.call(i);
246
246
  }), this.update(t)) : this._$EM();
247
247
  } catch (i) {
248
248
  throw e = !1, this._$EM(), i;
@@ -284,30 +284,30 @@ 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, 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 = `[
287
+ const a2 = globalThis, w4 = (r) => r, z2 = a2.trustedTypes, M4 = 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 = `[
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 = (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");
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(), w1 = k1.createTreeWalker(k1, 129);
290
+ function d3(r, e) {
291
+ if (!G5(r) || !r.hasOwnProperty("raw")) throw Error("invalid template strings array");
292
292
  return M4 !== void 0 ? M4.createHTML(e) : e;
293
293
  }
294
- const j3 = (n, e) => {
295
- const t = n.length - 1, o = [];
296
- let i, r = e === 2 ? "<svg>" : e === 3 ? "<math>" : "", l = e2;
294
+ const j3 = (r, e) => {
295
+ const t = r.length - 1, o = [];
296
+ let i, n = e === 2 ? "<svg>" : e === 3 ? "<math>" : "", l = e2;
297
297
  for (let d = 0; d < t; d++) {
298
- const c = n[d];
298
+ const c = r[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 && 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);
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);
303
303
  }
304
- return [d3(n, r + (n[t] || "<?>") + (e === 2 ? "</svg>" : e === 3 ? "</math>" : "")), o];
304
+ return [d3(r, n + (r[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 r = 0, l = 0;
310
+ let n = 0, l = 0;
311
311
  const d = e.length - 1, c = this.parts, [C, p] = j3(e, t);
312
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;
@@ -315,24 +315,24 @@ class p2 {
315
315
  }
316
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(n3)) {
318
+ if (i.hasAttributes()) for (const f of i.getAttributeNames()) if (f.endsWith(r3)) {
319
319
  const H = p[l++], m = i.getAttribute(f).split(p1), V = /([.?@])?(.*)/.exec(H);
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));
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));
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()), w1.nextNode(), c.push({ type: 2, index: ++r });
326
+ for (let m = 0; m < H; m++) i.append(f[m], c2()), w1.nextNode(), c.push({ type: 2, index: ++n });
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: r });
330
+ } else if (i.nodeType === 8) if (i.data === l3) c.push({ type: 2, index: n });
331
331
  else {
332
332
  let f = -1;
333
- for (; (f = i.data.indexOf(p1, f + 1)) !== -1; ) c.push({ type: 7, index: r }), f += p1.length - 1;
333
+ for (; (f = i.data.indexOf(p1, f + 1)) !== -1; ) c.push({ type: 7, index: n }), f += p1.length - 1;
334
334
  }
335
- r++;
335
+ n++;
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(n, e, t = n, o) {
343
+ function T1(r, e, t = r, 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 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;
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;
349
349
  }
350
350
  class U3 {
351
351
  constructor(e, t) {
@@ -360,13 +360,13 @@ class U3 {
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
362
  w1.currentNode = i;
363
- let r = w1.nextNode(), l = 0, d = 0, c = o[0];
363
+ let n = 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(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];
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];
368
368
  }
369
- l !== (c == null ? void 0 : c.index) && (r = w1.nextNode(), l++);
369
+ l !== (c == null ? void 0 : c.index) && (n = w1.nextNode(), l++);
370
370
  }
371
371
  return w1.currentNode = k1, i;
372
372
  }
@@ -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 r;
410
+ var n;
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 (((r = this._$AH) == null ? void 0 : r._$AD) === i) this._$AH.p(t);
412
+ if (((n = this._$AH) == null ? void 0 : n._$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,7 +423,7 @@ 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 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++;
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++;
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) {
@@ -445,17 +445,17 @@ class K2 {
445
445
  get _$AU() {
446
446
  return this._$AM._$AU;
447
447
  }
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;
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;
450
450
  }
451
451
  _$AI(e, t = this, o, i) {
452
- const r = this.strings;
452
+ const n = this.strings;
453
453
  let l = !1;
454
- if (r === void 0) e = T1(this, e, t, 0), l = !C2(e) || e !== this._$AH && e !== R1, l && (this._$AH = e);
454
+ if (n === 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 = 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;
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;
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, r) {
484
- super(e, t, o, i, r), this.type = 5;
483
+ constructor(e, t, o, i, n) {
484
+ super(e, t, o, i, n), 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, 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;
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;
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 = (n, e, t) => {
509
+ const q3 = (r, 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 r = (t == null ? void 0 : t.renderBefore) ?? null;
514
- o._$litPart$ = i = new k2(e.insertBefore(c2(), r), r, void 0, t ?? {});
513
+ const n = (t == null ? void 0 : t.renderBefore) ?? null;
514
+ o._$litPart$ = i = new k2(e.insertBefore(c2(), n), n, void 0, t ?? {});
515
515
  }
516
- return i._$AI(n), i;
516
+ return i._$AI(r), 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 = (n = X3, e, t) => {
559
+ const X3 = { attribute: !0, type: String, converter: E2, reflect: !1, hasChanged: U5 }, J3 = (r = X3, e, t) => {
560
560
  const { kind: o, metadata: i } = t;
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") {
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") {
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, n, !0, d);
566
+ e.set.call(this, d), this.requestUpdate(l, c, r, !0, d);
567
567
  }, init(d) {
568
- return d !== void 0 && this.C(l, void 0, n, d), d;
568
+ return d !== void 0 && this.C(l, void 0, r, 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, n, !0, d);
575
+ e.call(this, d), this.requestUpdate(l, c, r, !0, d);
576
576
  };
577
577
  }
578
578
  throw Error("Unsupported decorator location: " + o);
579
579
  };
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);
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);
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(n) {
592
- return s({ ...n, state: !0, attribute: !1 });
591
+ function b(r) {
592
+ return s({ ...r, 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 = (n, e, t) => (t.configurable = !0, t.enumerable = !0, Reflect.decorate && typeof e != "object" && Object.defineProperty(n, e, t), t);
599
+ const Q3 = (r, e, t) => (t.configurable = !0, t.enumerable = !0, Reflect.decorate && typeof e != "object" && Object.defineProperty(r, 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(n, e) {
605
+ function k(r, e) {
606
606
  return (t, o, i) => {
607
- const r = (l) => {
607
+ const n = (l) => {
608
608
  var d;
609
- return ((d = l.renderRoot) == null ? void 0 : d.querySelector(n)) ?? null;
609
+ return ((d = l.renderRoot) == null ? void 0 : d.querySelector(r)) ?? null;
610
610
  };
611
611
  return Q3(t, o, { get() {
612
- return r(this);
612
+ return n(this);
613
613
  } });
614
614
  };
615
615
  }
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);
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);
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 r = t / 2, l = t + e, d = e / 2, c = Math.PI * e;
643
+ const n = 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="-${r} -${r} ${l} ${l}"
650
+ viewBox="-${n} -${n} ${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 = (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);
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);
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 {
@@ -718,10 +718,10 @@ J5.styles = g`
718
718
  :host { display: inline-block; line-height: 0; }
719
719
 
720
720
  /* ── Colors ─────────────────────────────────────────────────── */
721
- :host([color="primary"]) { color: var(--color-primary); }
721
+ :host([color="primary"]) { color: var(--color-primary-icon); }
722
722
  :host([color="success"]) { color: var(--color-success); }
723
723
  :host([color="warning"]) { color: var(--color-warning-active); }
724
- :host([color="danger"]) { color: var(--color-destructive); }
724
+ :host([color="danger"]) { color: var(--color-destructive-icon); }
725
725
 
726
726
  /* ── Star base ──────────────────────────────────────────────── */
727
727
  .star {
@@ -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 = (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);
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);
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, 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;
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", M1 = "ai-spinner__segment", st = u3.map(
813
+ (r) => `
814
+ .${M1}--${r.index} {
815
+ transform-origin: ${r.originX}px ${r.originY}px;
816
816
  }
817
817
 
818
- .${o2} .${M1}--${n.index},
819
- .${r2} .${M1}--${n.index} {
820
- animation-delay: ${n.delay}s;
818
+ .${o2} .${M1}--${r.index},
819
+ .${n2} .${M1}--${r.index} {
820
+ animation-delay: ${r.delay}s;
821
821
  }
822
822
  `
823
823
  ).join(`
@@ -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(r2);
864
+ const o = this.currentRotationDegrees(t), i = t.classList.contains(o2) || t.classList.contains(n2);
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((r) => Number(r.trim()));
871
+ const o = t.slice(t.indexOf("(") + 1, t.indexOf(")")).split(",").map((n) => Number(n.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(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);
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);
880
880
  }, e.addEventListener("transitionend", this.settleListener);
881
881
  }
882
882
  cancelSettle(e) {
883
- this.detachSettleListener(e), e.classList.remove(r2), e.style.removeProperty("transition"), e.style.removeProperty("transform");
883
+ this.detachSettleListener(e), e.classList.remove(n2), 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,24 +894,24 @@ 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(`.${M1}`)).map((r) => {
898
- const l = getComputedStyle(r);
899
- return { segment: r, transform: l.transform, opacity: l.opacity };
897
+ const o = Array.from(e.querySelectorAll(`.${M1}`)).map((n) => {
898
+ const l = getComputedStyle(n);
899
+ return { segment: n, transform: l.transform, opacity: l.opacity };
900
900
  });
901
901
  if (!o.some(
902
- (r) => r.transform && r.transform !== "none" || Number(r.opacity) < 1
902
+ (n) => n.transform && n.transform !== "none" || Number(n.opacity) < 1
903
903
  )) {
904
904
  this.dropPhaseClasses(e);
905
905
  return;
906
906
  }
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);
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);
909
909
  this.dropPhaseClasses(e), e.offsetHeight;
910
- for (const { segment: r } of o)
911
- r.style.setProperty(
910
+ for (const { segment: n } of o)
911
+ n.style.setProperty(
912
912
  "transition",
913
913
  `transform ${Q2}ms linear, opacity ${Q2}ms linear`
914
- ), r.style.setProperty("transform", "none"), r.style.setProperty("opacity", "1");
914
+ ), n.style.setProperty("transform", "none"), n.style.setProperty("opacity", "1");
915
915
  this.segmentRestTimer = setTimeout(() => this.cancelSegmentRest(e), Q2);
916
916
  }
917
917
  cancelSegmentRest(e) {
@@ -920,14 +920,16 @@ const u3 = [
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(r2);
923
+ e.classList.remove(o2), e.classList.remove(n2);
924
924
  }
925
925
  };
926
926
  Q5.styles = g`
927
927
  :host {
928
928
  display: inline-block;
929
929
  line-height: 0;
930
- color: var(--color-ai);
930
+ /* Purple as text, not the fill: purple-600 in light, purple-200 in dark,
931
+ where purple-600 is 2.5:1 on gray-9. anduin.design's spinner does the same. */
932
+ color: var(--color-ai-text);
931
933
  }
932
934
 
933
935
  .ai-spinner {
@@ -958,7 +960,7 @@ Q5.styles = g`
958
960
  animation: ai-spinner-pulse 1.52s linear infinite;
959
961
  }
960
962
 
961
- ${r3(st)}
963
+ ${n3(st)}
962
964
 
963
965
  @keyframes ai-spinner-spin {
964
966
  to {
@@ -1370,9 +1372,9 @@ const P4 = {
1370
1372
  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
1373
  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
1374
  };
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);
1375
+ var at = Object.defineProperty, p3 = (r, e, t, o) => {
1376
+ for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
1377
+ (l = r[n]) && (i = l(e, t, i) || i);
1376
1378
  return i && at(e, t, i), i;
1377
1379
  };
1378
1380
  const ee = class ee extends h {
@@ -1415,9 +1417,9 @@ p3([
1415
1417
  s({ type: Number })
1416
1418
  ], f2.prototype, "size");
1417
1419
  customElements.get("anduin-icon") || customElements.define("anduin-icon", f2);
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);
1420
+ var dt = Object.defineProperty, ct = (r, e, t, o) => {
1421
+ for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
1422
+ (l = r[n]) && (i = l(e, t, i) || i);
1421
1423
  return i && dt(e, t, i), i;
1422
1424
  };
1423
1425
  const h3 = g`
@@ -1448,7 +1450,7 @@ const h3 = g`
1448
1450
  .badge--bold-warning { background-color: var(--color-warning); color: var(--color-warning-foreground); }
1449
1451
  .badge--hidden { display: none; }
1450
1452
  `;
1451
- function g3(n) {
1453
+ function g3(r) {
1452
1454
  return {
1453
1455
  gray: "badge--light-gray",
1454
1456
  primary: "badge--light-primary",
@@ -1460,7 +1462,7 @@ function g3(n) {
1460
1462
  boldSuccess: "badge--bold-success",
1461
1463
  boldWarning: "badge--bold-warning",
1462
1464
  boldDanger: "badge--bold-danger"
1463
- }[n || "gray"] || "badge--light-gray";
1465
+ }[r || "gray"] || "badge--light-gray";
1464
1466
  }
1465
1467
  const te = class te extends h {
1466
1468
  constructor() {
@@ -1477,9 +1479,9 @@ ct([
1477
1479
  s()
1478
1480
  ], S2.prototype, "variant");
1479
1481
  customElements.get("anduin-badge") || customElements.define("anduin-badge", S2);
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);
1482
+ var Ct = Object.defineProperty, f3 = (r, e, t, o) => {
1483
+ for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
1484
+ (l = r[n]) && (i = l(e, t, i) || i);
1483
1485
  return i && Ct(e, t, i), i;
1484
1486
  };
1485
1487
  const ie = class ie extends h {
@@ -1508,13 +1510,13 @@ f3([
1508
1510
  s({ type: Number })
1509
1511
  ], v2.prototype, "count");
1510
1512
  customElements.get("anduin-badge-count") || customElements.define("anduin-badge-count", v2);
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);
1513
+ var ut = Object.defineProperty, F = (r, e, t, o) => {
1514
+ for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
1515
+ (l = r[n]) && (i = l(e, t, i) || i);
1514
1516
  return i && ut(e, t, i), i;
1515
1517
  };
1516
- function pt(n) {
1517
- return n.replace(/([A-Z])/g, (e) => `-${e.toLowerCase()}`);
1518
+ function pt(r) {
1519
+ return r.replace(/([A-Z])/g, (e) => `-${e.toLowerCase()}`);
1518
1520
  }
1519
1521
  const oe = class oe extends h {
1520
1522
  constructor() {
@@ -1635,7 +1637,7 @@ oe.styles = g`
1635
1637
  .button--outlined.button--danger { border-color: var(--color-destructive-border); color: var(--color-destructive-subtle-foreground); background-color: transparent; }
1636
1638
  .button--outlined.button--danger:hover { background-color: var(--color-destructive-subtle); }
1637
1639
  .button--outlined.button--danger:active { background-color: var(--color-destructive-subtle-active); }
1638
- .button--outlined.button--primary { border-color: var(--color-primary-border); color: var(--color-primary); background-color: transparent; }
1640
+ .button--outlined.button--primary { border-color: var(--color-primary-border); color: var(--color-primary-text); background-color: transparent; }
1639
1641
  .button--outlined.button--primary:hover { background-color: var(--color-primary-subtle); }
1640
1642
  .button--outlined.button--primary:active { background-color: var(--color-primary-subtle-active); }
1641
1643
  .button--outlined.button--success { border-color: var(--color-success-border); color: var(--color-success-subtle-foreground); background-color: transparent; }
@@ -1644,8 +1646,9 @@ oe.styles = g`
1644
1646
  .button--outlined.button--warning { border-color: var(--color-warning-border); color: var(--color-warning-subtle-foreground); background-color: transparent; }
1645
1647
  .button--outlined.button--warning:hover { background-color: var(--color-warning-subtle); }
1646
1648
  .button--outlined.button--warning:active { background-color: var(--color-warning-subtle-active); }
1647
- /* Purple text moves from purple-500 to --color-ai (purple-600): one step darker, better contrast. */
1648
- .button--outlined.button--purple { border-color: var(--color-ai-border); color: var(--color-ai); background-color: transparent; }
1649
+ /* Purple text moved from purple-500 to purple-600 for contrast on white; it now reads --color-ai-text,
1650
+ which is that same purple-600 in light and purple-200 in dark, where purple-600 is 2.5:1 on gray-9. */
1651
+ .button--outlined.button--purple { border-color: var(--color-ai-border); color: var(--color-ai-text); background-color: transparent; }
1649
1652
  .button--outlined.button--purple:hover { background-color: var(--color-ai-subtle); }
1650
1653
  .button--outlined.button--purple:active { background-color: var(--color-ai-subtle-active); }
1651
1654
  .button--plain.button--gray9 { border-color: transparent; color: var(--color-muted-foreground); background-color: transparent; }
@@ -1657,7 +1660,7 @@ oe.styles = g`
1657
1660
  .button--plain.button--danger { border-color: transparent; color: var(--color-destructive-subtle-foreground); background-color: transparent; }
1658
1661
  .button--plain.button--danger:hover { background-color: var(--color-destructive-subtle); }
1659
1662
  .button--plain.button--danger:active { background-color: var(--color-destructive-subtle-active); }
1660
- .button--plain.button--primary { border-color: transparent; color: var(--color-primary); background-color: transparent; }
1663
+ .button--plain.button--primary { border-color: transparent; color: var(--color-primary-text); background-color: transparent; }
1661
1664
  .button--plain.button--primary:hover { background-color: var(--color-primary-subtle); }
1662
1665
  .button--plain.button--primary:active { background-color: var(--color-primary-subtle-active); }
1663
1666
  .button--plain.button--success { border-color: transparent; color: var(--color-success-subtle-foreground); background-color: transparent; }
@@ -1666,7 +1669,7 @@ oe.styles = g`
1666
1669
  .button--plain.button--warning { border-color: transparent; color: var(--color-warning-subtle-foreground); background-color: transparent; }
1667
1670
  .button--plain.button--warning:hover { background-color: var(--color-warning-subtle); }
1668
1671
  .button--plain.button--warning:active { background-color: var(--color-warning-subtle-active); }
1669
- .button--plain.button--purple { border-color: transparent; color: var(--color-ai); background-color: transparent; }
1672
+ .button--plain.button--purple { border-color: transparent; color: var(--color-ai-text); background-color: transparent; }
1670
1673
  .button--plain.button--purple:hover { background-color: var(--color-ai-subtle); }
1671
1674
  .button--plain.button--purple:active { background-color: var(--color-ai-subtle-active); }
1672
1675
  .button--text { border: none; background: none; padding: 0; height: auto; width: auto; display: inline-flex; align-items: center; vertical-align: bottom; }
@@ -1678,7 +1681,7 @@ oe.styles = g`
1678
1681
  .button--text.button--success { color: var(--color-success-subtle-foreground); }
1679
1682
  .button--text.button--danger { color: var(--color-destructive-subtle-foreground); }
1680
1683
  .button--text.button--warning { color: var(--color-warning-subtle-foreground); }
1681
- .button--text.button--purple { color: var(--color-ai); }
1684
+ .button--text.button--purple { color: var(--color-ai-text); }
1682
1685
  .button--selected.button--filled.button--gray0 { background-color: var(--color-accent-strong); }
1683
1686
  .button--selected.button--filled.button--gray9 { background-color: var(--color-neutral-active); }
1684
1687
  .button--selected.button--filled.button--primary { background-color: var(--color-primary-active); }
@@ -1697,7 +1700,7 @@ F([
1697
1700
  b()
1698
1701
  ], $.prototype, "iconOnly");
1699
1702
  F([
1700
- s({ converter: (n) => n || "filled" })
1703
+ s({ converter: (r) => r || "filled" })
1701
1704
  ], $.prototype, "appearance");
1702
1705
  F([
1703
1706
  s()
@@ -1739,12 +1742,12 @@ F([
1739
1742
  s()
1740
1743
  ], $.prototype, "label");
1741
1744
  customElements.get("anduin-button") || customElements.define("anduin-button", $);
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
+ var ht = Object.defineProperty, gt = (r, e, t, o) => {
1746
+ for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
1747
+ (l = r[n]) && (i = l(e, t, i) || i);
1745
1748
  return i && ht(e, t, i), i;
1746
1749
  };
1747
- const re = class re extends h {
1750
+ const ne = class ne extends h {
1748
1751
  constructor() {
1749
1752
  super(...arguments), this.variant = "gray";
1750
1753
  }
@@ -1757,7 +1760,7 @@ const re = class re extends h {
1757
1760
  `;
1758
1761
  }
1759
1762
  };
1760
- re.styles = g`
1763
+ ne.styles = g`
1761
1764
  :host { display: block; font-family: var(--font-sans); }
1762
1765
  .callout {
1763
1766
  display: flex; align-items: center; justify-content: center;
@@ -1769,17 +1772,17 @@ re.styles = g`
1769
1772
  .callout--danger { background-color: var(--color-destructive); color: var(--color-destructive-foreground); }
1770
1773
  .callout--warning { background-color: var(--color-warning); color: var(--color-warning-foreground); }
1771
1774
  `;
1772
- let A2 = re;
1775
+ let A2 = ne;
1773
1776
  gt([
1774
1777
  s()
1775
1778
  ], A2.prototype, "variant");
1776
1779
  customElements.get("anduin-callout") || customElements.define("anduin-callout", A2);
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
+ var ft = Object.defineProperty, v3 = (r, e, t, o) => {
1781
+ for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
1782
+ (l = r[n]) && (i = l(e, t, i) || i);
1780
1783
  return i && ft(e, t, i), i;
1781
1784
  };
1782
- const ne = class ne extends h {
1785
+ const re = class re extends h {
1783
1786
  constructor() {
1784
1787
  super(...arguments), this.direction = "horizontal", this.hasContent = !1;
1785
1788
  }
@@ -1792,8 +1795,8 @@ const ne = class ne extends h {
1792
1795
  onSlotChange(e) {
1793
1796
  const o = e.target.assignedNodes({ flatten: !0 });
1794
1797
  this.hasContent = o.some((i) => {
1795
- var r;
1796
- return ((r = i.textContent) == null ? void 0 : r.trim()) !== "";
1798
+ var n;
1799
+ return ((n = i.textContent) == null ? void 0 : n.trim()) !== "";
1797
1800
  });
1798
1801
  }
1799
1802
  render() {
@@ -1810,7 +1813,7 @@ const ne = class ne extends h {
1810
1813
  </div>` : a`<div class="divider--horizontal divider--horizontal-empty"><slot @slotchange=${this.onSlotChange}></slot></div>`;
1811
1814
  }
1812
1815
  };
1813
- ne.styles = g`
1816
+ re.styles = g`
1814
1817
  :host { display: block; width: 100%; font-family: var(--font-sans); }
1815
1818
  :host([direction="vertical"]) { width: auto; height: 100%; }
1816
1819
  .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 +1823,7 @@ ne.styles = g`
1820
1823
  .divider--vertical-empty { background-color: var(--color-border); width: 1px; }
1821
1824
  .divider__line--vertical { border-left: 1px solid var(--color-border); justify-self: center; }
1822
1825
  `;
1823
- let b2 = ne;
1826
+ let b2 = re;
1824
1827
  v3([
1825
1828
  s({ reflect: !0 })
1826
1829
  ], b2.prototype, "direction");
@@ -1828,9 +1831,9 @@ v3([
1828
1831
  b()
1829
1832
  ], b2.prototype, "hasContent");
1830
1833
  customElements.get("anduin-divider") || customElements.define("anduin-divider", b2);
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
+ var vt = Object.defineProperty, bt = (r, e, t, o) => {
1835
+ for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
1836
+ (l = r[n]) && (i = l(e, t, i) || i);
1834
1837
  return i && vt(e, t, i), i;
1835
1838
  };
1836
1839
  const le = class le extends h {
@@ -1856,9 +1859,9 @@ bt([
1856
1859
  s()
1857
1860
  ], D2.prototype, "variant");
1858
1861
  customElements.get("anduin-dot") || customElements.define("anduin-dot", D2);
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
+ var mt = Object.defineProperty, b3 = (r, e, t, o) => {
1863
+ for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
1864
+ (l = r[n]) && (i = l(e, t, i) || i);
1862
1865
  return i && mt(e, t, i), i;
1863
1866
  };
1864
1867
  const se = class se extends h {
@@ -1901,9 +1904,9 @@ b3([
1901
1904
  s()
1902
1905
  ], m2.prototype, "height");
1903
1906
  customElements.get("anduin-progress") || customElements.define("anduin-progress", m2);
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
+ var Ht = Object.defineProperty, q1 = (r, e, t, o) => {
1908
+ for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
1909
+ (l = r[n]) && (i = l(e, t, i) || i);
1907
1910
  return i && Ht(e, t, i), i;
1908
1911
  };
1909
1912
  const ae = class ae extends h {
@@ -1944,29 +1947,29 @@ ae.styles = g`
1944
1947
  0% { transform: translateX(-100%); } 100% { transform: translateX(100%); }
1945
1948
  }
1946
1949
  `;
1947
- let n1 = ae;
1950
+ let r1 = ae;
1948
1951
  q1([
1949
1952
  s()
1950
- ], n1.prototype, "effect");
1953
+ ], r1.prototype, "effect");
1951
1954
  q1([
1952
1955
  s()
1953
- ], n1.prototype, "shape");
1956
+ ], r1.prototype, "shape");
1954
1957
  q1([
1955
1958
  s()
1956
- ], n1.prototype, "height");
1959
+ ], r1.prototype, "height");
1957
1960
  q1([
1958
1961
  s()
1959
- ], n1.prototype, "width");
1962
+ ], r1.prototype, "width");
1960
1963
  q1([
1961
1964
  s({ type: Number })
1962
- ], n1.prototype, "duration");
1965
+ ], r1.prototype, "duration");
1963
1966
  q1([
1964
1967
  s({ attribute: "font-size" })
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);
1968
+ ], r1.prototype, "fontSize");
1969
+ customElements.get("anduin-skeleton") || customElements.define("anduin-skeleton", r1);
1970
+ var _t = Object.defineProperty, yt = (r, e, t, o) => {
1971
+ for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
1972
+ (l = r[n]) && (i = l(e, t, i) || i);
1970
1973
  return i && _t(e, t, i), i;
1971
1974
  };
1972
1975
  const de = class de extends h {
@@ -1987,7 +1990,7 @@ const de = class de extends h {
1987
1990
  de.styles = g`
1988
1991
  :host { display: block; height: 100%; font-family: var(--font-sans); }
1989
1992
  .loading-state { display: flex; flex-direction: column; justify-content: center; align-items: center; }
1990
- .loading-state__indicator { color: var(--color-primary); }
1993
+ .loading-state__indicator { color: var(--color-primary-icon); }
1991
1994
  .loading-state__content { margin-top: 12px; font-size: 15px; color: var(--color-subtle-foreground); }
1992
1995
  `;
1993
1996
  let P2 = de;
@@ -1995,9 +1998,9 @@ yt([
1995
1998
  s()
1996
1999
  ], P2.prototype, "height");
1997
2000
  customElements.get("anduin-loading-state") || customElements.define("anduin-loading-state", P2);
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
+ var Lt = Object.defineProperty, W5 = (r, e, t, o) => {
2002
+ for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
2003
+ (l = r[n]) && (i = l(e, t, i) || i);
2001
2004
  return i && Lt(e, t, i), i;
2002
2005
  };
2003
2006
  const m3 = "anduin-field:label-click", f1 = "anduin-field:label-click-coordinated", ce = class ce extends h {
@@ -2089,7 +2092,7 @@ const pe = class pe extends h {
2089
2092
  };
2090
2093
  pe.styles = g`
2091
2094
  :host { display: block; font-family: var(--font-sans); }
2092
- .field-error { color: var(--color-destructive); }
2095
+ .field-error { color: var(--color-destructive-text); }
2093
2096
  `;
2094
2097
  let d5 = pe;
2095
2098
  const he = class he extends h {
@@ -2107,9 +2110,9 @@ customElements.get("anduin-field-label") || customElements.define("anduin-field-
2107
2110
  customElements.get("anduin-field-description") || customElements.define("anduin-field-description", a5);
2108
2111
  customElements.get("anduin-field-error") || customElements.define("anduin-field-error", d5);
2109
2112
  customElements.get("anduin-field-group") || customElements.define("anduin-field-group", c5);
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
+ var Vt = Object.defineProperty, R2 = (r, e, t, o) => {
2114
+ for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
2115
+ (l = r[n]) && (i = l(e, t, i) || i);
2113
2116
  return i && Vt(e, t, i), i;
2114
2117
  };
2115
2118
  const xt = "anduin-checkbox:change", ge = class ge extends h {
@@ -2221,9 +2224,9 @@ R2([
2221
2224
  s()
2222
2225
  ], v1.prototype, "inputid");
2223
2226
  customElements.get("anduin-checkbox") || customElements.define("anduin-checkbox", v1);
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
+ var wt = Object.defineProperty, Y = (r, e, t, o) => {
2228
+ for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
2229
+ (l = r[n]) && (i = l(e, t, i) || i);
2227
2230
  return i && wt(e, t, i), i;
2228
2231
  };
2229
2232
  const B4 = "anduin-input:change", Mt = "anduin-input:clear", j2 = class j2 extends h {
@@ -2283,7 +2286,7 @@ const B4 = "anduin-input:change", Mt = "anduin-input:clear", j2 = class j2 exten
2283
2286
  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
2287
  }
2285
2288
  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, 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";
2289
+ 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";
2287
2290
  return a`
2288
2291
  <div class="input-wrapper">
2289
2292
  ${o ? a`
@@ -2310,7 +2313,7 @@ const B4 = "anduin-input:change", Mt = "anduin-input:clear", j2 = class j2 exten
2310
2313
 
2311
2314
  ${i ? a`
2312
2315
  <span class="input__end">
2313
- ${r ? a`
2316
+ ${n ? a`
2314
2317
  <button class="input__clear" type="button" @click=${this.onClear} aria-label="Clear">
2315
2318
  <anduin-icon name="cross" size=${d}></anduin-icon>
2316
2319
  </button>
@@ -2414,9 +2417,9 @@ Y([
2414
2417
  k("input")
2415
2418
  ], I.prototype, "inputEl");
2416
2419
  customElements.get("anduin-input") || customElements.define("anduin-input", 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
+ var Zt = Object.defineProperty, H3 = (r, e, t, o) => {
2421
+ for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
2422
+ (l = r[n]) && (i = l(e, t, i) || i);
2420
2423
  return i && Zt(e, t, i), i;
2421
2424
  };
2422
2425
  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,55 +2436,55 @@ const _3 = "anduin-tooltip:show", Y5 = "anduin-tooltip:hide", y3 = "anduin-toolt
2433
2436
  "left-center",
2434
2437
  "left-end"
2435
2438
  ];
2436
- function F4(n, e, t, o, i) {
2439
+ function F4(r, e, t, o, i) {
2437
2440
  switch (o) {
2438
2441
  case "top-start":
2439
- return { left: n.left, top: n.top - t - i };
2442
+ return { left: r.left, top: r.top - t - i };
2440
2443
  case "top-center":
2441
- return { left: n.left + n.width / 2 - e / 2, top: n.top - t - i };
2444
+ return { left: r.left + r.width / 2 - e / 2, top: r.top - t - i };
2442
2445
  case "top-end":
2443
- return { left: n.left + n.width - e, top: n.top - t - i };
2446
+ return { left: r.left + r.width - e, top: r.top - t - i };
2444
2447
  case "right-start":
2445
- return { left: n.right + i, top: n.top };
2448
+ return { left: r.right + i, top: r.top };
2446
2449
  case "right-center":
2447
- return { left: n.right + i, top: n.top + n.height / 2 - t / 2 };
2450
+ return { left: r.right + i, top: r.top + r.height / 2 - t / 2 };
2448
2451
  case "right-end":
2449
- return { left: n.right + i, top: n.top + n.height - t };
2452
+ return { left: r.right + i, top: r.top + r.height - t };
2450
2453
  case "bottom-start":
2451
- return { left: n.left, top: n.bottom + i };
2454
+ return { left: r.left, top: r.bottom + i };
2452
2455
  case "bottom-center":
2453
- return { left: n.left + n.width / 2 - e / 2, top: n.bottom + i };
2456
+ return { left: r.left + r.width / 2 - e / 2, top: r.bottom + i };
2454
2457
  case "bottom-end":
2455
- return { left: n.left + n.width - e, top: n.bottom + i };
2458
+ return { left: r.left + r.width - e, top: r.bottom + i };
2456
2459
  case "left-start":
2457
- return { left: n.left - e - i, top: n.top };
2460
+ return { left: r.left - e - i, top: r.top };
2458
2461
  case "left-center":
2459
- return { left: n.left - e - i, top: n.top + n.height / 2 - t / 2 };
2462
+ return { left: r.left - e - i, top: r.top + r.height / 2 - t / 2 };
2460
2463
  case "left-end":
2461
- return { left: n.left - e - i, top: n.top + n.height - t };
2464
+ return { left: r.left - e - i, top: r.top + r.height - t };
2462
2465
  default:
2463
2466
  return { left: 0, top: 0 };
2464
2467
  }
2465
2468
  }
2466
- function I4(n, e) {
2467
- return e.right >= n.left && e.left <= n.right && e.top <= n.bottom && e.bottom >= n.top;
2469
+ function I4(r, e) {
2470
+ return e.right >= r.left && e.left <= r.right && e.top <= r.bottom && e.bottom >= r.top;
2468
2471
  }
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
+ function O4(r, e) {
2473
+ 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);
2474
+ return i < t || n < o ? 0 : (i - t) * (n - o);
2472
2475
  }
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;
2476
+ function Rt(r, e, t, o = 8) {
2477
+ const i = window.innerWidth, n = window.innerHeight, l = { left: 0, top: 0, right: i, bottom: n }, d = e.width, c = e.height;
2475
2478
  if (!I4(
2476
- { left: n.left, top: n.top, right: n.right, bottom: n.bottom },
2479
+ { left: r.left, top: r.top, right: r.right, bottom: r.bottom },
2477
2480
  l
2478
2481
  )) return null;
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));
2482
+ 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));
2480
2483
  if (p.length === 0)
2481
2484
  return {
2482
2485
  placement: t,
2483
2486
  left: Math.round(Math.min(Math.max(C.left, 0), i - d)),
2484
- top: Math.round(Math.min(Math.max(C.top, 0), r - c))
2487
+ top: Math.round(Math.min(Math.max(C.top, 0), n - c))
2485
2488
  };
2486
2489
  p.sort((m, V) => {
2487
2490
  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);
@@ -2493,17 +2496,17 @@ function Rt(n, e, t, o = 8) {
2493
2496
  return {
2494
2497
  placement: f,
2495
2498
  left: Math.round(Math.min(Math.max(H.left, 0), i - d)),
2496
- top: Math.round(Math.min(Math.max(H.top, 0), r - c))
2499
+ top: Math.round(Math.min(Math.max(H.top, 0), n - c))
2497
2500
  };
2498
2501
  }
2499
- function C5(n) {
2500
- return n.split("-")[0] || "top";
2502
+ function C5(r) {
2503
+ return r.split("-")[0] || "top";
2501
2504
  }
2502
- function $t(n, e, t) {
2505
+ function $t(r, e, t) {
2503
2506
  let o = !1, i = t.length - 1;
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
+ for (let n = 0; n < t.length; n++) {
2508
+ const l = t[n][0], d = t[n][1], c = t[i][0], C = t[i][1];
2509
+ d > e != C > e && r < (c - l) * (e - d) / (C - d) + l && (o = !o), i = n;
2507
2510
  }
2508
2511
  return o;
2509
2512
  }
@@ -2536,8 +2539,8 @@ const fe = class fe extends h {
2536
2539
  startPositionLoop() {
2537
2540
  this.stopPositionLoop(), this.prevTriggerTop = NaN, this.prevTriggerLeft = NaN;
2538
2541
  const e = this.triggerElement, t = this.contentPopupElement, o = this.placement, 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);
2542
+ const n = e.getBoundingClientRect();
2543
+ (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);
2541
2544
  };
2542
2545
  this.rafId = requestAnimationFrame(i);
2543
2546
  }
@@ -2551,7 +2554,7 @@ const fe = class fe extends h {
2551
2554
  this.containingBlockLeft = i.left, this.containingBlockTop = i.top, t.style.transform = o;
2552
2555
  }
2553
2556
  positionPopup(e, t, o) {
2554
- const i = t.getBoundingClientRect(), r = e.getBoundingClientRect(), l = Rt(i, r, o, 8);
2557
+ const i = t.getBoundingClientRect(), n = e.getBoundingClientRect(), l = Rt(i, n, o, 8);
2555
2558
  if (l) {
2556
2559
  const d = e;
2557
2560
  d.style.transform = `translate(${l.left - this.containingBlockLeft}px, ${l.top - this.containingBlockTop}px)`;
@@ -2609,9 +2612,9 @@ let u5 = ve;
2609
2612
  const be = class be extends h {
2610
2613
  constructor() {
2611
2614
  super(...arguments), this.graceArea = null, this.triggerEl = null, this.popupEl = null, this.handlePointerMove = (e) => {
2612
- var r, l;
2615
+ var n, l;
2613
2616
  if (!this.graceArea) return;
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;
2617
+ 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;
2615
2618
  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
2619
  }, this.handleTriggerLeave = (e) => {
2617
2620
  this.triggerEl && this.popupEl && this.createGraceArea(this.triggerEl, this.popupEl, e);
@@ -2631,9 +2634,9 @@ const be = class be extends h {
2631
2634
  super.disconnectedCallback(), this.hidePopup();
2632
2635
  }
2633
2636
  createGraceArea(e, t, o) {
2634
- const i = t.getBoundingClientRect(), r = o.clientX, l = o.clientY;
2637
+ const i = t.getBoundingClientRect(), n = o.clientX, l = o.clientY;
2635
2638
  this.graceArea = [
2636
- [r, l],
2639
+ [n, l],
2637
2640
  [i.left, i.top],
2638
2641
  [i.right, i.top],
2639
2642
  [i.right, i.bottom],
@@ -2652,8 +2655,8 @@ const be = class be extends h {
2652
2655
  o.className = "tooltip-popup", o.setAttribute("role", "tooltip");
2653
2656
  const i = document.createElement("div");
2654
2657
  i.className = `tooltip-arrow tooltip-arrow--${t}`;
2655
- const r = document.createElement("div");
2656
- r.className = "tooltip-body", r.appendChild(document.createElement("slot")), o.appendChild(i), o.appendChild(r);
2658
+ const n = document.createElement("div");
2659
+ n.className = "tooltip-body", n.appendChild(document.createElement("slot")), o.appendChild(i), o.appendChild(n);
2657
2660
  const l = this.shadowRoot.querySelector(".tooltip-content-wrapper");
2658
2661
  l && l.appendChild(o), this.popupEl = o;
2659
2662
  const d = this.closest("anduin-tooltip");
@@ -2698,9 +2701,9 @@ let p5 = be;
2698
2701
  customElements.get("anduin-tooltip") || customElements.define("anduin-tooltip", _2);
2699
2702
  customElements.get("anduin-tooltip-trigger") || customElements.define("anduin-tooltip-trigger", u5);
2700
2703
  customElements.get("anduin-tooltip-content") || customElements.define("anduin-tooltip-content", p5);
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
+ var Et = Object.defineProperty, B = (r, e, t, o) => {
2705
+ for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
2706
+ (l = r[n]) && (i = l(e, t, i) || i);
2704
2707
  return i && Et(e, t, i), i;
2705
2708
  };
2706
2709
  const zt = "anduin-inline-edit:save", St = "anduin-inline-edit:cancel", At = "anduin-inline-edit:edit", me = class me extends h {
@@ -2960,9 +2963,9 @@ B([
2960
2963
  k(".text")
2961
2964
  ], R.prototype, "_text");
2962
2965
  customElements.get("anduin-inline-edit") || customElements.define("anduin-inline-edit", R);
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
+ var Dt = Object.defineProperty, y1 = (r, e, t, o) => {
2967
+ for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
2968
+ (l = r[n]) && (i = l(e, t, i) || i);
2966
2969
  return i && Dt(e, t, i), i;
2967
2970
  };
2968
2971
  const Pt = "anduin-textarea:change", U2 = class U2 extends h {
@@ -3069,9 +3072,9 @@ y1([
3069
3072
  k("textarea")
3070
3073
  ], W.prototype, "textareaEl");
3071
3074
  customElements.get("anduin-textarea") || customElements.define("anduin-textarea", W);
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
+ var Bt = Object.defineProperty, U = (r, e, t, o) => {
3076
+ for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
3077
+ (l = r[n]) && (i = l(e, t, i) || i);
3075
3078
  return i && Bt(e, t, i), i;
3076
3079
  };
3077
3080
  const w3 = "anduin-tab:trigger-click", W2 = "anduin-tab:value-changed", Ft = "anduin-tab:change", He = class He extends h {
@@ -3300,9 +3303,9 @@ customElements.get("anduin-tabs") || customElements.define("anduin-tabs", j1);
3300
3303
  customElements.get("anduin-tabs-list") || customElements.define("anduin-tabs-list", y2);
3301
3304
  customElements.get("anduin-tab-trigger") || customElements.define("anduin-tab-trigger", l1);
3302
3305
  customElements.get("anduin-tab-content") || customElements.define("anduin-tab-content", L2);
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
+ var It = Object.defineProperty, q5 = (r, e, t, o) => {
3307
+ for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
3308
+ (l = r[n]) && (i = l(e, t, i) || i);
3306
3309
  return i && It(e, t, i), i;
3307
3310
  };
3308
3311
  const Ot = "anduin-tag-close:click", Tt = {
@@ -3382,10 +3385,10 @@ Ve.styles = g`
3382
3385
  .tag__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
3383
3386
  .tag--disabled { opacity: 0.6; }
3384
3387
  .tag__icon--light-gray { color: var(--color-neutral-subtle-foreground); }
3385
- .tag__icon--light-primary { color: var(--color-primary); }
3388
+ .tag__icon--light-primary { color: var(--color-primary-icon); }
3386
3389
  .tag__icon--light-success { color: var(--color-success); }
3387
3390
  .tag__icon--light-warning { color: var(--color-warning-active); }
3388
- .tag__icon--light-danger { color: var(--color-destructive); }
3391
+ .tag__icon--light-danger { color: var(--color-destructive-icon); }
3389
3392
  .tag__icon--bold-gray { color: var(--color-neutral-foreground); }
3390
3393
  .tag__icon--bold-primary { color: var(--color-primary-foreground); }
3391
3394
  .tag__icon--bold-success { color: var(--color-success-foreground); }
@@ -3457,9 +3460,9 @@ xe.styles = g`
3457
3460
  let h5 = xe;
3458
3461
  customElements.get("anduin-tag") || customElements.define("anduin-tag", U1);
3459
3462
  customElements.get("anduin-tag-close") || customElements.define("anduin-tag-close", h5);
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
+ var jt = Object.defineProperty, O = (r, e, t, o) => {
3464
+ for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
3465
+ (l = r[n]) && (i = l(e, t, i) || i);
3463
3466
  return i && jt(e, t, i), i;
3464
3467
  };
3465
3468
  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 {
@@ -3467,11 +3470,11 @@ const Ut = "anduin-toggle-group:change", Gt = "anduin-toggle-group-item:change",
3467
3470
  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
3471
  var c;
3469
3472
  e.stopPropagation();
3470
- const o = e.detail, i = this.selection, r = i.includes(o);
3473
+ const o = e.detail, i = this.selection, n = i.includes(o);
3471
3474
  let l;
3472
- this.mode === "multiple" ? l = r ? i.filter((C) => C !== o) : [...i, o] : l = r ? [] : [o];
3475
+ this.mode === "multiple" ? l = n ? i.filter((C) => C !== o) : [...i, o] : l = n ? [] : [o];
3473
3476
  const d = this.items.find((C) => C.value === o);
3474
- if (d == null || d.emitSelectionChange(!r), this.mode === "single" && !r)
3477
+ if (d == null || d.emitSelectionChange(!n), this.mode === "single" && !n)
3475
3478
  for (const C of i)
3476
3479
  (c = this.items.find((p) => p.value === C)) == null || c.emitSelectionChange(!1);
3477
3480
  this.dispatchEvent(new CustomEvent(Ut, {
@@ -3655,7 +3658,7 @@ Me.styles = g`
3655
3658
  .toggle-item__icon { display: flex; color: var(--color-subtle-foreground); }
3656
3659
  .toggle-item:hover .toggle-item__icon { color: var(--color-muted-foreground); }
3657
3660
  .toggle-item--selected .toggle-item__icon { color: var(--color-muted-foreground); }
3658
- .toggle-item--variant-primary.toggle-item--selected .toggle-item__icon { color: var(--color-primary); }
3661
+ .toggle-item--variant-primary.toggle-item--selected .toggle-item__icon { color: var(--color-primary-icon); }
3659
3662
  `;
3660
3663
  let J = Me;
3661
3664
  O([
@@ -3679,14 +3682,14 @@ O([
3679
3682
  O([
3680
3683
  s({ attribute: !1 })
3681
3684
  ], J.prototype, "groupMode");
3682
- function e5(n) {
3683
- return n.split(" ").map((e) => e.trim()).filter(Boolean);
3685
+ function e5(r) {
3686
+ return r.split(" ").map((e) => e.trim()).filter(Boolean);
3684
3687
  }
3685
3688
  customElements.get("anduin-toggle-group") || customElements.define("anduin-toggle-group", X);
3686
3689
  customElements.get("anduin-toggle-group-item") || customElements.define("anduin-toggle-group-item", J);
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
+ var Yt = Object.defineProperty, qt = (r, e, t, o) => {
3691
+ for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
3692
+ (l = r[n]) && (i = l(e, t, i) || i);
3690
3693
  return i && Yt(e, t, i), i;
3691
3694
  };
3692
3695
  const Xt = "anduin-well-close:click", Ze = class Ze extends h {
@@ -3768,17 +3771,20 @@ Ze.styles = g`
3768
3771
  .well--warning {
3769
3772
  background-color: var(--color-warning-subtle);
3770
3773
  }
3774
+ /* Same split as the toast's icons: primary and danger read -icon (light
3775
+ unchanged, step 3 in dark); success and warning keep step 4, which already
3776
+ clears 3:1 on their dark tint and which -icon would move in light. */
3771
3777
  .well__icon--gray {
3772
3778
  color: var(--color-muted-foreground);
3773
3779
  }
3774
3780
  .well__icon--primary {
3775
- color: var(--color-primary);
3781
+ color: var(--color-primary-icon);
3776
3782
  }
3777
3783
  .well__icon--success {
3778
3784
  color: var(--color-success);
3779
3785
  }
3780
3786
  .well__icon--danger {
3781
- color: var(--color-destructive);
3787
+ color: var(--color-destructive-icon);
3782
3788
  }
3783
3789
  .well__icon--warning {
3784
3790
  color: var(--color-warning-active);
@@ -3834,9 +3840,9 @@ ke.styles = g`
3834
3840
  let f5 = ke;
3835
3841
  customElements.get("anduin-well") || customElements.define("anduin-well", F2);
3836
3842
  customElements.get("anduin-well-close") || customElements.define("anduin-well-close", f5);
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);
3843
+ var Jt = Object.defineProperty, E1 = (r, e, t, o) => {
3844
+ for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
3845
+ (l = r[n]) && (i = l(e, t, i) || i);
3840
3846
  return i && Jt(e, t, i), i;
3841
3847
  };
3842
3848
  const v5 = "anduin-popover:close", b5 = "anduin-popover:open-change", Re = class Re extends h {
@@ -3885,14 +3891,14 @@ const v5 = "anduin-popover:close", b5 = "anduin-popover:open-change", Re = class
3885
3891
  if (!e || !t) return;
3886
3892
  const o = e.getBoundingClientRect(), i = t.style.transform;
3887
3893
  t.style.transform = "none";
3888
- const r = t.getBoundingClientRect();
3894
+ const n = t.getBoundingClientRect();
3889
3895
  t.style.transform = i;
3890
3896
  const l = t.getBoundingClientRect(), d = 4, c = window.innerWidth, C = window.innerHeight, p = 8;
3891
3897
  let f = 0, H = 0, m = "bottom";
3892
3898
  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
3899
  m = D ? "bottom" : "top", H = D ? o.bottom + d : o.top - l.height - d;
3894
3900
  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 - r.left)}px, ${Math.round(H - r.top)}px)`, t.dataset.side = m;
3901
+ 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;
3896
3902
  }
3897
3903
  render() {
3898
3904
  return a`
@@ -3995,9 +4001,9 @@ const $e = class $e extends h {
3995
4001
  $e.styles = g`:host { display: contents; }`;
3996
4002
  let m5 = $e;
3997
4003
  customElements.get("anduin-popover-close") || customElements.define("anduin-popover-close", m5);
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);
4004
+ var Qt = Object.defineProperty, z1 = (r, e, t, o) => {
4005
+ for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
4006
+ (l = r[n]) && (i = l(e, t, i) || i);
4001
4007
  return i && Qt(e, t, i), i;
4002
4008
  };
4003
4009
  const H5 = "anduin-menu-item:click", Ee = class Ee extends h {
@@ -4027,7 +4033,7 @@ const H5 = "anduin-menu-item:click", Ee = class Ee extends h {
4027
4033
  if (!e || !t) return;
4028
4034
  const o = e.getBoundingClientRect(), i = t.style.transform;
4029
4035
  t.style.transform = "none";
4030
- const r = t.getBoundingClientRect();
4036
+ const n = t.getBoundingClientRect();
4031
4037
  t.style.transform = i;
4032
4038
  const l = t.getBoundingClientRect(), d = 4;
4033
4039
  let c = 0, C = 0, p = "bottom";
@@ -4051,7 +4057,7 @@ const H5 = "anduin-menu-item:click", Ee = class Ee extends h {
4051
4057
  c = o.left + o.width / 2 - l.width / 2, C = o.top - l.height - d, p = "top";
4052
4058
  break;
4053
4059
  }
4054
- t.style.transform = `translate(${Math.round(c - r.left)}px, ${Math.round(C - r.top)}px)`, t.dataset.side = p;
4060
+ t.style.transform = `translate(${Math.round(c - n.left)}px, ${Math.round(C - n.top)}px)`, t.dataset.side = p;
4055
4061
  }
4056
4062
  render() {
4057
4063
  return a`
@@ -4172,7 +4178,7 @@ ze.styles = g`
4172
4178
  .menu-item:disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }
4173
4179
  .menu-item__label { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
4174
4180
  anduin-icon { color: var(--color-muted-foreground); }
4175
- .menu-item--danger anduin-icon { color: var(--color-destructive); }
4181
+ .menu-item--danger anduin-icon { color: var(--color-destructive-icon); }
4176
4182
  `;
4177
4183
  let G1 = ze;
4178
4184
  z1([
@@ -4186,12 +4192,12 @@ z1([
4186
4192
  ], G1.prototype, "disabled");
4187
4193
  customElements.get("anduin-menu") || customElements.define("anduin-menu", $1);
4188
4194
  customElements.get("anduin-menu-item") || customElements.define("anduin-menu-item", G1);
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);
4195
+ var e7 = Object.defineProperty, S1 = (r, e, t, o) => {
4196
+ for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
4197
+ (l = r[n]) && (i = l(e, t, i) || i);
4192
4198
  return i && e7(e, t, i), i;
4193
4199
  };
4194
- const n2 = "anduin-close", t5 = "anduin-after-close", i5 = 300, o5 = 200, T4 = 250;
4200
+ const r2 = "anduin-close", t5 = "anduin-after-close", i5 = 300, o5 = 200, T4 = 250;
4195
4201
  let d2 = 0, M3 = "";
4196
4202
  function t7() {
4197
4203
  typeof document > "u" || (d2 === 0 && (M3 = document.body.style.overflow, document.body.style.overflow = "hidden"), d2++);
@@ -4229,16 +4235,16 @@ const L1 = (g1 = class extends h {
4229
4235
  );
4230
4236
  }
4231
4237
  onOverlayClick() {
4232
- this.dispatch(n2);
4238
+ this.dispatch(r2);
4233
4239
  }
4234
4240
  onClose() {
4235
- this.dispatch(n2);
4241
+ this.dispatch(r2);
4236
4242
  }
4237
4243
  connectedCallback() {
4238
- super.connectedCallback(), this.addEventListener(n2, this.onAnduinClose), this.addEventListener(t5, this.onAnduinClose);
4244
+ super.connectedCallback(), this.addEventListener(r2, this.onAnduinClose), this.addEventListener(t5, this.onAnduinClose);
4239
4245
  }
4240
4246
  disconnectedCallback() {
4241
- super.disconnectedCallback(), this.removeEventListener(n2, this.onAnduinClose), this.removeEventListener(t5, this.onAnduinClose), this._holdsScrollLock && (this._holdsScrollLock = !1, N4());
4247
+ super.disconnectedCallback(), this.removeEventListener(r2, this.onAnduinClose), this.removeEventListener(t5, this.onAnduinClose), this._holdsScrollLock && (this._holdsScrollLock = !1, N4());
4242
4248
  }
4243
4249
  render() {
4244
4250
  const e = this._leaving, t = this.fullscreen;
@@ -4500,7 +4506,7 @@ class o7 extends HTMLElement {
4500
4506
  constructor() {
4501
4507
  super(...arguments), this._onClick = () => {
4502
4508
  this.dispatchEvent(
4503
- new CustomEvent(n2, { bubbles: !0, composed: !0 })
4509
+ new CustomEvent(r2, { bubbles: !0, composed: !0 })
4504
4510
  );
4505
4511
  };
4506
4512
  }
@@ -4512,12 +4518,12 @@ class o7 extends HTMLElement {
4512
4518
  }
4513
4519
  }
4514
4520
  customElements.get("anduin-modal-close") || customElements.define("anduin-modal-close", o7);
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;
4521
+ var n7 = Object.defineProperty, d1 = (r, e, t, o) => {
4522
+ for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
4523
+ (l = r[n]) && (i = l(e, t, i) || i);
4524
+ return i && n7(e, t, i), i;
4519
4525
  };
4520
- const _5 = "anduin-radio:change", n7 = "anduin-radio-group:change", Se = class Se extends h {
4526
+ const _5 = "anduin-radio:change", r7 = "anduin-radio-group:change", Se = class Se extends h {
4521
4527
  constructor() {
4522
4528
  super(...arguments), this.checked = !1, this.disabled = !1, this.readonly = !1, this.value = "", this.name = "", this.inputid = "";
4523
4529
  }
@@ -4667,9 +4673,9 @@ const Ae = class Ae extends h {
4667
4673
  super(...arguments), this.value = "", this.name = "", this.orientation = "vertical", this._onRadioChange = (e) => {
4668
4674
  const o = e.detail;
4669
4675
  o !== this.value && (this.value = o, this.querySelectorAll("anduin-radio").forEach((i) => {
4670
- const r = i;
4671
- r.checked = r.value === o;
4672
- }), this.dispatchEvent(new CustomEvent(n7, {
4676
+ const n = i;
4677
+ n.checked = n.value === o;
4678
+ }), this.dispatchEvent(new CustomEvent(r7, {
4673
4679
  detail: o,
4674
4680
  bubbles: !0,
4675
4681
  composed: !0
@@ -4711,9 +4717,9 @@ d1([
4711
4717
  s()
4712
4718
  ], K1.prototype, "orientation");
4713
4719
  customElements.get("anduin-radio-group") || customElements.define("anduin-radio-group", K1);
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);
4720
+ var l7 = Object.defineProperty, A1 = (r, e, t, o) => {
4721
+ for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
4722
+ (l = r[n]) && (i = l(e, t, i) || i);
4717
4723
  return i && l7(e, t, i), i;
4718
4724
  };
4719
4725
  const j4 = [
@@ -4726,14 +4732,14 @@ const j4 = [
4726
4732
  { bg: "#F97066", text: "#ffffff" },
4727
4733
  { bg: "#7A5AF8", text: "#ffffff" }
4728
4734
  ];
4729
- function s7(n) {
4735
+ function s7(r) {
4730
4736
  let e = 0;
4731
- for (let t = 0; t < n.length; t++) e = e * 31 + n.charCodeAt(t) >>> 0;
4737
+ for (let t = 0; t < r.length; t++) e = e * 31 + r.charCodeAt(t) >>> 0;
4732
4738
  return j4[e % j4.length];
4733
4739
  }
4734
- function a7(n, e = 2) {
4740
+ function a7(r, e = 2) {
4735
4741
  var i;
4736
- const t = n.trim().split(/\s+/), o = ((i = t[0]) == null ? void 0 : i[0]) ?? "";
4742
+ const t = r.trim().split(/\s+/), o = ((i = t[0]) == null ? void 0 : i[0]) ?? "";
4737
4743
  return e < 2 || t.length === 1 ? o.toUpperCase() : (o + (t[t.length - 1][0] ?? "")).toUpperCase();
4738
4744
  }
4739
4745
  const De = class De extends h {
@@ -4822,7 +4828,7 @@ customElements.get("anduin-avatar") || customElements.define("anduin-avatar", e1
4822
4828
  * Copyright 2017 Google LLC
4823
4829
  * SPDX-License-Identifier: BSD-3-Clause
4824
4830
  */
4825
- const d7 = { CHILD: 2 }, c7 = (n) => (...e) => ({ _$litDirective$: n, values: e });
4831
+ const d7 = { CHILD: 2 }, c7 = (r) => (...e) => ({ _$litDirective$: r, values: e });
4826
4832
  class C7 {
4827
4833
  constructor(e) {
4828
4834
  }
@@ -5112,17 +5118,17 @@ const u7 = c7(L5), p7 = {
5112
5118
  <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
5119
  }
5114
5120
  }, h7 = [32, 24, 16];
5115
- function g7(n, e) {
5116
- const t = p7[n];
5121
+ function g7(r, e) {
5122
+ const t = p7[r];
5117
5123
  if (!t) return null;
5118
5124
  if (t[e]) return t[e];
5119
5125
  for (const o of h7)
5120
5126
  if (t[o]) return t[o];
5121
5127
  return null;
5122
5128
  }
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);
5129
+ var f7 = Object.defineProperty, Z3 = (r, e, t, o) => {
5130
+ for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
5131
+ (l = r[n]) && (i = l(e, t, i) || i);
5126
5132
  return i && f7(e, t, i), i;
5127
5133
  };
5128
5134
  const Pe = class Pe extends h {
@@ -5158,9 +5164,9 @@ Z3([
5158
5164
  s({ type: Number })
5159
5165
  ], V2.prototype, "size");
5160
5166
  customElements.get("anduin-file-icon") || customElements.define("anduin-file-icon", V2);
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);
5167
+ var v7 = Object.defineProperty, D1 = (r, e, t, o) => {
5168
+ for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
5169
+ (l = r[n]) && (i = l(e, t, i) || i);
5164
5170
  return i && v7(e, t, i), i;
5165
5171
  };
5166
5172
  const U4 = {
@@ -5271,12 +5277,16 @@ Be.styles = g`
5271
5277
  padding: 12px;
5272
5278
  border-radius: 8px;
5273
5279
  }
5280
+ /* Primary and danger read -icon (step 4 in light, as before; step 3 in dark,
5281
+ where step 4 on its own tint was under 3:1). Success and warning keep step 4:
5282
+ -icon would change their light colour, and step 4 already clears 3:1 on
5283
+ gray-9 and on its dark tint (success 3.4:1, warning 4.7:1). */
5274
5284
  .toast__icon--gray {
5275
5285
  color: var(--color-subtle-foreground);
5276
5286
  background: var(--color-secondary);
5277
5287
  }
5278
5288
  .toast__icon--primary {
5279
- color: var(--color-primary);
5289
+ color: var(--color-primary-icon);
5280
5290
  background: var(--color-primary-subtle);
5281
5291
  }
5282
5292
  .toast__icon--success {
@@ -5288,7 +5298,7 @@ Be.styles = g`
5288
5298
  background: var(--color-warning-subtle);
5289
5299
  }
5290
5300
  .toast__icon--danger {
5291
- color: var(--color-destructive);
5301
+ color: var(--color-destructive-icon);
5292
5302
  background: var(--color-destructive-subtle);
5293
5303
  }
5294
5304
 
@@ -5457,33 +5467,33 @@ D1([
5457
5467
  ], x2.prototype, "_toasts");
5458
5468
  customElements.get("anduin-toaster") || customElements.define("anduin-toaster", x2);
5459
5469
  const p0 = {
5460
- show(n) {
5461
- return m7(n.position).show(n);
5470
+ show(r) {
5471
+ return m7(r.position).show(r);
5462
5472
  },
5463
- success(n, e, t) {
5464
- return this.show({ ...t, variant: "success", heading: n, description: e });
5473
+ success(r, e, t) {
5474
+ return this.show({ ...t, variant: "success", heading: r, description: e });
5465
5475
  },
5466
- danger(n, e, t) {
5467
- return this.show({ ...t, variant: "danger", heading: n, description: e });
5476
+ danger(r, e, t) {
5477
+ return this.show({ ...t, variant: "danger", heading: r, description: e });
5468
5478
  },
5469
- warning(n, e, t) {
5470
- return this.show({ ...t, variant: "warning", heading: n, description: e });
5479
+ warning(r, e, t) {
5480
+ return this.show({ ...t, variant: "warning", heading: r, description: e });
5471
5481
  },
5472
- primary(n, e, t) {
5473
- return this.show({ ...t, variant: "primary", heading: n, description: e });
5482
+ primary(r, e, t) {
5483
+ return this.show({ ...t, variant: "primary", heading: r, description: e });
5474
5484
  },
5475
- gray(n, e, t) {
5476
- return this.show({ ...t, variant: "gray", heading: n, description: e });
5485
+ gray(r, e, t) {
5486
+ return this.show({ ...t, variant: "gray", heading: r, description: e });
5477
5487
  }
5478
- }, r5 = /* @__PURE__ */ new Map();
5479
- function m7(n = "bottom-left") {
5480
- if (r5.has(n)) return r5.get(n);
5488
+ }, n5 = /* @__PURE__ */ new Map();
5489
+ function m7(r = "bottom-left") {
5490
+ if (n5.has(r)) return n5.get(r);
5481
5491
  const e = document.createElement("anduin-toaster");
5482
- return e.position = n, document.body.appendChild(e), r5.set(n, e), e;
5492
+ return e.position = r, document.body.appendChild(e), n5.set(r, e), e;
5483
5493
  }
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);
5494
+ var H7 = Object.defineProperty, k3 = (r, e, t, o) => {
5495
+ for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
5496
+ (l = r[n]) && (i = l(e, t, i) || i);
5487
5497
  return i && H7(e, t, i), i;
5488
5498
  };
5489
5499
  const _7 = "anduin-switcher:change", Ie = class Ie extends h {
@@ -5587,9 +5597,9 @@ k3([
5587
5597
  s({ type: Boolean })
5588
5598
  ], w2.prototype, "disabled");
5589
5599
  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);
5600
+ var y7 = Object.defineProperty, E = (r, e, t, o) => {
5601
+ for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
5602
+ (l = r[n]) && (i = l(e, t, i) || i);
5593
5603
  return i && y7(e, t, i), i;
5594
5604
  };
5595
5605
  const G4 = "anduin-dropdown:change", Oe = class Oe extends h {
@@ -5610,9 +5620,9 @@ const G4 = "anduin-dropdown:change", Oe = class Oe extends h {
5610
5620
  updated(e) {
5611
5621
  var t, o;
5612
5622
  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, r;
5623
+ var i, n;
5614
5624
  if (this._updatePosition(), this.searchable) {
5615
- const l = (r = (i = this._searchEl) == null ? void 0 : i.shadowRoot) == null ? void 0 : r.querySelector("input");
5625
+ const l = (n = (i = this._searchEl) == null ? void 0 : i.shadowRoot) == null ? void 0 : n.querySelector("input");
5616
5626
  l == null || l.focus();
5617
5627
  }
5618
5628
  });
@@ -5669,7 +5679,7 @@ const G4 = "anduin-dropdown:change", Oe = class Oe extends h {
5669
5679
  if (!e || !t) return;
5670
5680
  const o = e.getBoundingClientRect(), i = t.style.transform;
5671
5681
  t.style.transform = "none";
5672
- const r = t.getBoundingClientRect();
5682
+ const n = t.getBoundingClientRect();
5673
5683
  t.style.transform = i;
5674
5684
  const l = t.querySelector(".panel__inner");
5675
5685
  l && (l.style.minWidth = `${o.width}px`);
@@ -5677,7 +5687,7 @@ const G4 = "anduin-dropdown:change", Oe = class Oe extends h {
5677
5687
  let v = o.left;
5678
5688
  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
5689
  const x = Math.max(f, Math.min(y, p - d.height - f));
5680
- t.style.transform = `translate(${Math.round(v - r.left)}px, ${Math.round(x - r.top)}px)`;
5690
+ t.style.transform = `translate(${Math.round(v - n.left)}px, ${Math.round(x - n.top)}px)`;
5681
5691
  }
5682
5692
  get _filteredOptions() {
5683
5693
  if (!this._query) return this.options;
@@ -5685,7 +5695,7 @@ const G4 = "anduin-dropdown:change", Oe = class Oe extends h {
5685
5695
  return this.options.filter((t) => t.label.toLowerCase().includes(e));
5686
5696
  }
5687
5697
  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, r = this.clearable && !!this.value && !this.disabled;
5698
+ 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;
5689
5699
  return a`
5690
5700
  <button
5691
5701
  class="trigger trigger--${this.appearance} trigger--${this.variant}${this.size === "small" ? " trigger--small" : ""}${this.value ? " has-value" : ""}"
@@ -5698,11 +5708,11 @@ const G4 = "anduin-dropdown:change", Oe = class Oe extends h {
5698
5708
  >
5699
5709
  ${o && t ? a`<anduin-icon name="${o}" size="16"></anduin-icon>` : u}
5700
5710
  <span class="trigger__label${t ? "" : " trigger__label--placeholder"}">${t || this.placeholder}</span>
5701
- <span class="trigger__caret${r ? " trigger__caret--clearable" : ""}">
5711
+ <span class="trigger__caret${n ? " trigger__caret--clearable" : ""}">
5702
5712
  <span class="trigger__chevron">
5703
5713
  <anduin-icon name="caretDown" size="16"></anduin-icon>
5704
5714
  </span>
5705
- ${r ? a`
5715
+ ${n ? a`
5706
5716
  <span class="trigger__clear" @click=${this._onClear}>
5707
5717
  <anduin-icon name="crossSmall" size="16"></anduin-icon>
5708
5718
  </span>
@@ -5807,7 +5817,7 @@ Oe.styles = g`
5807
5817
  .trigger--outlined.trigger--gray0 { border-color: var(--color-gray-7); color: var(--color-gray-4); background-color: transparent; }
5808
5818
  .trigger--outlined.trigger--gray0:hover { background-color: var(--color-gray-7); }
5809
5819
  .trigger--outlined.trigger--gray0:active { background-color: var(--color-gray-3); }
5810
- .trigger--outlined.trigger--primary { border-color: var(--color-primary-border); color: var(--color-primary); background-color: transparent; }
5820
+ .trigger--outlined.trigger--primary { border-color: var(--color-primary-border); color: var(--color-primary-text); background-color: transparent; }
5811
5821
  .trigger--outlined.trigger--primary:hover { background-color: var(--color-primary-subtle); }
5812
5822
  .trigger--outlined.trigger--primary:active { background-color: var(--color-primary-subtle-active); }
5813
5823
  .trigger--outlined.trigger--danger { border-color: var(--color-destructive-border); color: var(--color-destructive-subtle-foreground); background-color: transparent; }
@@ -5827,7 +5837,7 @@ Oe.styles = g`
5827
5837
  .trigger--plain.trigger--gray0 { border-color: transparent; color: var(--color-gray-4); background-color: transparent; }
5828
5838
  .trigger--plain.trigger--gray0:hover { background-color: var(--color-gray-7); }
5829
5839
  .trigger--plain.trigger--gray0:active { background-color: var(--color-gray-8); }
5830
- .trigger--plain.trigger--primary { border-color: transparent; color: var(--color-primary); background-color: transparent; }
5840
+ .trigger--plain.trigger--primary { border-color: transparent; color: var(--color-primary-text); background-color: transparent; }
5831
5841
  .trigger--plain.trigger--primary:hover { background-color: var(--color-primary-subtle); }
5832
5842
  .trigger--plain.trigger--primary:active { background-color: var(--color-primary-subtle-active); }
5833
5843
  .trigger--plain.trigger--danger { border-color: transparent; color: var(--color-destructive-subtle-foreground); background-color: transparent; }
@@ -6033,7 +6043,7 @@ E([
6033
6043
  s({ type: Boolean, attribute: "full-width", reflect: !0 })
6034
6044
  ], M.prototype, "fullWidth");
6035
6045
  E([
6036
- s({ converter: (n) => n !== "false" })
6046
+ s({ converter: (r) => r !== "false" })
6037
6047
  ], M.prototype, "clearable");
6038
6048
  E([
6039
6049
  b()
@@ -6054,12 +6064,12 @@ E([
6054
6064
  k("anduin-input")
6055
6065
  ], M.prototype, "_searchEl");
6056
6066
  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);
6067
+ var L7 = Object.defineProperty, c1 = (r, e, t, o) => {
6068
+ for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
6069
+ (l = r[n]) && (i = l(e, t, i) || i);
6060
6070
  return i && L7(e, t, i), i;
6061
6071
  };
6062
- const l2 = "anduin-close", n5 = "anduin-after-close", V7 = 300, K4 = 250, x7 = /* @__PURE__ */ new Map([
6072
+ const l2 = "anduin-close", r5 = "anduin-after-close", V7 = 300, K4 = 250, x7 = /* @__PURE__ */ new Map([
6063
6073
  ["320", 320],
6064
6074
  ["360", 360],
6065
6075
  ["400", 400],
@@ -6071,14 +6081,14 @@ const l2 = "anduin-close", n5 = "anduin-after-close", V7 = 300, K4 = 250, x7 = /
6071
6081
  }, this._onResizeStart = (e) => {
6072
6082
  this._resizing = !0, this._startX = e.clientX, this._startWidth = this._width, e.currentTarget.setPointerCapture(e.pointerId), e.preventDefault();
6073
6083
  }, this._onResizeMove = (e) => {
6074
- var r;
6084
+ var n;
6075
6085
  if (!this._resizing) return;
6076
6086
  const t = this.placement === "left" ? e.clientX - this._startX : this._startX - e.clientX, o = Math.max(
6077
6087
  200,
6078
6088
  Math.min(window.innerWidth * 0.9, this._startWidth + t)
6079
6089
  );
6080
6090
  this._width = Math.round(o);
6081
- const i = (r = this.shadowRoot) == null ? void 0 : r.querySelector(".drawer");
6091
+ const i = (n = this.shadowRoot) == null ? void 0 : n.querySelector(".drawer");
6082
6092
  i && (i.style.width = `${this._width}px`);
6083
6093
  }, this._onResizeEnd = () => {
6084
6094
  this._resizing = !1;
@@ -6090,7 +6100,7 @@ const l2 = "anduin-close", n5 = "anduin-after-close", V7 = 300, K4 = 250, x7 = /
6090
6100
  updated(e) {
6091
6101
  e.has("open") && (this.open ? (this._leaving = !1, this.classList.add("is-shown")) : this.classList.contains("is-shown") && (this._leaving = !0, setTimeout(() => {
6092
6102
  this._leaving = !1, this.classList.remove("is-shown"), this.dispatchEvent(
6093
- new CustomEvent(n5, {
6103
+ new CustomEvent(r5, {
6094
6104
  bubbles: !0,
6095
6105
  composed: !0
6096
6106
  })
@@ -6103,10 +6113,10 @@ const l2 = "anduin-close", n5 = "anduin-after-close", V7 = 300, K4 = 250, x7 = /
6103
6113
  );
6104
6114
  }
6105
6115
  connectedCallback() {
6106
- super.connectedCallback(), this.addEventListener(l2, this._stopAtSelf), this.addEventListener(n5, this._stopAtSelf);
6116
+ super.connectedCallback(), this.addEventListener(l2, this._stopAtSelf), this.addEventListener(r5, this._stopAtSelf);
6107
6117
  }
6108
6118
  disconnectedCallback() {
6109
- super.disconnectedCallback(), this.removeEventListener(l2, this._stopAtSelf), this.removeEventListener(n5, this._stopAtSelf);
6119
+ super.disconnectedCallback(), this.removeEventListener(l2, this._stopAtSelf), this.removeEventListener(r5, this._stopAtSelf);
6110
6120
  }
6111
6121
  _onClose() {
6112
6122
  this._dispatch(l2);
@@ -6363,9 +6373,9 @@ class w7 extends HTMLElement {
6363
6373
  }
6364
6374
  }
6365
6375
  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);
6376
+ var M7 = Object.defineProperty, z = (r, e, t, o) => {
6377
+ for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
6378
+ (l = r[n]) && (i = l(e, t, i) || i);
6369
6379
  return i && M7(e, t, i), i;
6370
6380
  };
6371
6381
  const l5 = "anduin-suggestion:change", Z7 = "anduin-suggestion:select", k7 = "anduin-suggestion:clear", Ne = class Ne extends h {
@@ -6461,7 +6471,7 @@ const l5 = "anduin-suggestion:change", Z7 = "anduin-suggestion:select", k7 = "an
6461
6471
  if (!e || !t) return;
6462
6472
  const o = e.getBoundingClientRect(), i = t.style.transform;
6463
6473
  t.style.transform = "none";
6464
- const r = t.getBoundingClientRect();
6474
+ const n = t.getBoundingClientRect();
6465
6475
  t.style.transform = i;
6466
6476
  const l = t.querySelector(".panel__inner");
6467
6477
  l && (l.style.minWidth = `${o.width}px`);
@@ -6469,10 +6479,10 @@ const l5 = "anduin-suggestion:change", Z7 = "anduin-suggestion:select", k7 = "an
6469
6479
  let v = o.left;
6470
6480
  v = Math.max(f, Math.min(v, C - d.width - f));
6471
6481
  const x = Math.max(f, Math.min(y, p - d.height - f));
6472
- t.style.transform = `translate(${Math.round(v - r.left)}px, ${Math.round(x - r.top)}px)`;
6482
+ t.style.transform = `translate(${Math.round(v - n.left)}px, ${Math.round(x - n.top)}px)`;
6473
6483
  }
6474
6484
  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, 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);
6485
+ 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);
6476
6486
  return a`
6477
6487
  <div class="input-wrapper">
6478
6488
  ${o ? a`
@@ -6504,7 +6514,7 @@ const l5 = "anduin-suggestion:change", Z7 = "anduin-suggestion:select", k7 = "an
6504
6514
 
6505
6515
  ${i ? a`
6506
6516
  <span class="input__end">
6507
- ${r ? a`
6517
+ ${n ? a`
6508
6518
  <button class="input__clear" type="button" @click=${this._onClear} aria-label="Clear">
6509
6519
  <anduin-icon name="cross" size=${d}></anduin-icon>
6510
6520
  </button>
@@ -6710,9 +6720,9 @@ z([
6710
6720
  k(".panel")
6711
6721
  ], Z.prototype, "_panelEl");
6712
6722
  customElements.get("anduin-suggestion") || customElements.define("anduin-suggestion", Z);
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);
6723
+ var R7 = Object.defineProperty, q = (r, e, t, o) => {
6724
+ for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
6725
+ (l = r[n]) && (i = l(e, t, i) || i);
6716
6726
  return i && R7(e, t, i), i;
6717
6727
  };
6718
6728
  const $7 = "anduin-navigation:change", V5 = "anduin-navigation-item:item-click", je = class je extends h {
@@ -6930,14 +6940,14 @@ q([
6930
6940
  ], a1.prototype, "theme");
6931
6941
  customElements.get("anduin-navigation") || customElements.define("anduin-navigation", m1);
6932
6942
  customElements.get("anduin-navigation-item") || customElements.define("anduin-navigation-item", a1);
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);
6943
+ var E7 = Object.defineProperty, P1 = (r, e, t, o) => {
6944
+ for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
6945
+ (l = r[n]) && (i = l(e, t, i) || i);
6936
6946
  return i && E7(e, t, i), i;
6937
6947
  };
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();
6948
+ const z7 = "anduin-resizable:resize", R3 = "anduin-resizable-panel", W4 = (r) => !!r && r.tagName.toLowerCase() === R3;
6949
+ function Y4(r, e, t) {
6950
+ const o = (r || "").trim();
6941
6951
  if (!o) return t;
6942
6952
  const i = parseFloat(o);
6943
6953
  return Number.isNaN(i) ? t : o.endsWith("%") ? i / 100 * e : i;
@@ -6973,7 +6983,7 @@ const Ge = class Ge extends h {
6973
6983
  const e = this.axisSize;
6974
6984
  if (e <= 0) return;
6975
6985
  const t = this.panels, o = t.map((i) => i.axisSize(this.isVertical));
6976
- t.forEach((i, r) => i.setGrow(o[r] / e * 100));
6986
+ t.forEach((i, n) => i.setGrow(o[n] / e * 100));
6977
6987
  }
6978
6988
  render() {
6979
6989
  return a`
@@ -7047,8 +7057,8 @@ const We = class We extends h {
7047
7057
  const t = this.closest("anduin-resizable-panel-group"), o = this.prevPanel, i = this.nextPanel;
7048
7058
  if (!t || !o || !i) return;
7049
7059
  e.preventDefault(), this.group = t, this.dragging = !0, this.activePointerId = e.pointerId, this.setPointerCapture(e.pointerId), t.normalizeToGrow();
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);
7060
+ const n = t.isVertical;
7061
+ 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);
7052
7062
  }, this.onPointerMove = (e) => {
7053
7063
  if (!this.dragging || !this.group) return;
7054
7064
  const o = (this.group.isVertical ? e.clientY : e.clientX) - this.startPos;
@@ -7065,11 +7075,11 @@ const We = class We extends h {
7065
7075
  else if (o && e.key === "ArrowDown") i = 1;
7066
7076
  else if (o && e.key === "ArrowUp") i = -1;
7067
7077
  else return;
7068
- const r = this.prevPanel, l = this.nextPanel;
7069
- if (!r || !l) return;
7078
+ const n = this.prevPanel, l = this.nextPanel;
7079
+ if (!n || !l) return;
7070
7080
  e.preventDefault(), this.group = t, t.normalizeToGrow();
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);
7081
+ const d = n.axisSize(o);
7082
+ this.combinedPx = d + l.axisSize(o), this.combinedGrow = (parseFloat(n.style.flexGrow) || 0) + (parseFloat(l.style.flexGrow) || 0);
7073
7083
  const c = Math.max(t.axisSize * 0.02, 8);
7074
7084
  this.resizeTo(d + i * c), this.emitResize();
7075
7085
  };
@@ -7109,7 +7119,7 @@ const We = class We extends h {
7109
7119
  resizeTo(e) {
7110
7120
  const t = this.group, o = this.prevPanel, i = this.nextPanel;
7111
7121
  if (!t || !o || !i || this.combinedPx <= 0) return;
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);
7122
+ 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);
7113
7123
  o.setGrow(C), i.setGrow(this.combinedGrow - C);
7114
7124
  }
7115
7125
  emitResize() {
@@ -7117,9 +7127,9 @@ const We = class We extends h {
7117
7127
  if (!e || !t || !o) return;
7118
7128
  const i = e.axisSize;
7119
7129
  if (i <= 0) return;
7120
- const r = e.isVertical;
7130
+ const n = e.isVertical;
7121
7131
  this.dispatchEvent(new CustomEvent(z7, {
7122
- detail: { sizes: [t.axisSize(r) / i * 100, o.axisSize(r) / i * 100] },
7132
+ detail: { sizes: [t.axisSize(n) / i * 100, o.axisSize(n) / i * 100] },
7123
7133
  bubbles: !0,
7124
7134
  composed: !0
7125
7135
  }));
@@ -7171,15 +7181,15 @@ P1([
7171
7181
  customElements.get("anduin-resizable-panel-group") || customElements.define("anduin-resizable-panel-group", I2);
7172
7182
  customElements.get("anduin-resizable-panel") || customElements.define("anduin-resizable-panel", W1);
7173
7183
  customElements.get("anduin-resizable-handle") || customElements.define("anduin-resizable-handle", Y1);
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);
7184
+ var S7 = Object.defineProperty, X1 = (r, e, t, o) => {
7185
+ for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
7186
+ (l = r[n]) && (i = l(e, t, i) || i);
7177
7187
  return i && S7(e, t, i), i;
7178
7188
  };
7179
7189
  const A7 = "anduin-pagination:change", x5 = "anduin-pagination:jump";
7180
- function t2(n, e) {
7181
- const t = Math.max(e - n + 1, 0);
7182
- return Array.from({ length: t }, (o, i) => n + i);
7190
+ function t2(r, e) {
7191
+ const t = Math.max(e - r + 1, 0);
7192
+ return Array.from({ length: t }, (o, i) => r + i);
7183
7193
  }
7184
7194
  const Ye = class Ye extends h {
7185
7195
  constructor() {
@@ -7205,7 +7215,7 @@ const Ye = class Ye extends h {
7205
7215
  }
7206
7216
  /** MUI-style windowing: boundaryCount = 1, siblingCount = 1. */
7207
7217
  buildItems() {
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(
7218
+ 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(
7209
7219
  Math.min(t - i, e - o - i * 2 - 1),
7210
7220
  o + 2
7211
7221
  ), c = Math.min(
@@ -7213,7 +7223,7 @@ const Ye = class Ye extends h {
7213
7223
  l.length > 0 ? l[0] - 2 : e - 1
7214
7224
  );
7215
7225
  return [
7216
- ...r,
7226
+ ...n,
7217
7227
  ...d > o + 2 ? ["start-ellipsis"] : o + 1 < e - o ? [o + 1] : [],
7218
7228
  ...t2(d, c),
7219
7229
  ...c < e - o - 1 ? ["end-ellipsis"] : e - o > o ? [e - o] : [],
@@ -7282,11 +7292,11 @@ const Ye = class Ye extends h {
7282
7292
  }
7283
7293
  renderItem(e, t) {
7284
7294
  if (e.type === "page") {
7285
- const r = e.page === t;
7295
+ const n = e.page === t;
7286
7296
  return a`
7287
7297
  <button
7288
- class="pagination__button ${r ? "pagination__button--active" : ""}"
7289
- aria-current=${r ? "page" : u}
7298
+ class="pagination__button ${n ? "pagination__button--active" : ""}"
7299
+ aria-current=${n ? "page" : u}
7290
7300
  aria-label="Go to page ${e.page}"
7291
7301
  @click=${() => this.goTo(e.page)}
7292
7302
  >${e.page}</button>
@@ -7303,8 +7313,8 @@ const Ye = class Ye extends h {
7303
7313
  label=${i}
7304
7314
  ></anduin-button>
7305
7315
  <div class="pagination__ellipsis-list">
7306
- ${o.map((r) => a`
7307
- <anduin-menu-item @click=${() => this.goTo(r)}>${r}</anduin-menu-item>
7316
+ ${o.map((n) => a`
7317
+ <anduin-menu-item @click=${() => this.goTo(n)}>${n}</anduin-menu-item>
7308
7318
  `)}
7309
7319
  </div>
7310
7320
  </anduin-menu>
@@ -7682,9 +7692,9 @@ customElements.get("anduin-timeline-date") || customElements.define("anduin-time
7682
7692
  customElements.get("anduin-timeline-title") || customElements.define("anduin-timeline-title", k5);
7683
7693
  customElements.get("anduin-timeline-group") || customElements.define("anduin-timeline-group", R5);
7684
7694
  customElements.get("anduin-timeline-label") || customElements.define("anduin-timeline-label", $5);
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);
7695
+ var B7 = Object.defineProperty, B1 = (r, e, t, o) => {
7696
+ for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
7697
+ (l = r[n]) && (i = l(e, t, i) || i);
7688
7698
  return i && B7(e, t, i), i;
7689
7699
  };
7690
7700
  const F7 = "anduin-sidebar:select", o4 = class o4 extends h {
@@ -7711,12 +7721,12 @@ o4.styles = g`
7711
7721
  }
7712
7722
  `;
7713
7723
  let E5 = o4;
7714
- const r4 = class r4 extends h {
7724
+ const n4 = class n4 extends h {
7715
7725
  render() {
7716
7726
  return a`<div class="sidebar-content" part="content"><slot></slot></div>`;
7717
7727
  }
7718
7728
  };
7719
- r4.styles = g`
7729
+ n4.styles = g`
7720
7730
  :host {
7721
7731
  display: flex;
7722
7732
  flex-direction: column;
@@ -7731,8 +7741,8 @@ r4.styles = g`
7731
7741
  padding: 12px 16px;
7732
7742
  }
7733
7743
  `;
7734
- let z5 = r4;
7735
- const n4 = class n4 extends h {
7744
+ let z5 = n4;
7745
+ const r4 = class r4 extends h {
7736
7746
  constructor() {
7737
7747
  super(...arguments), this.divider = !1;
7738
7748
  }
@@ -7740,7 +7750,7 @@ const n4 = class n4 extends h {
7740
7750
  return a`<div class="sidebar-header" part="header"><slot></slot></div>`;
7741
7751
  }
7742
7752
  };
7743
- n4.styles = g`
7753
+ r4.styles = g`
7744
7754
  :host {
7745
7755
  display: block;
7746
7756
  flex: 0 0 auto;
@@ -7751,7 +7761,7 @@ n4.styles = g`
7751
7761
  border-bottom: 1px solid var(--color-border);
7752
7762
  }
7753
7763
  `;
7754
- let O2 = n4;
7764
+ let O2 = r4;
7755
7765
  B1([
7756
7766
  s({ type: Boolean, reflect: !0 })
7757
7767
  ], O2.prototype, "divider");
@@ -7933,7 +7943,7 @@ c4.styles = g`
7933
7943
  color: var(--color-primary-subtle-foreground);
7934
7944
  }
7935
7945
  .sidebar-menu-item-wrapper--selected .sidebar-menu-item__icon {
7936
- color: var(--color-primary);
7946
+ color: var(--color-primary-icon);
7937
7947
  }
7938
7948
 
7939
7949
  .sidebar-menu-item {
@@ -8076,31 +8086,31 @@ customElements.get("anduin-sidebar-menu-item") || customElements.define("anduin-
8076
8086
  customElements.get("anduin-sidebar-action") || customElements.define("anduin-sidebar-action", P5);
8077
8087
  customElements.get("anduin-sidebar-badge") || customElements.define("anduin-sidebar-badge", B5);
8078
8088
  customElements.get("anduin-sidebar-separator") || customElements.define("anduin-sidebar-separator", F5);
8079
- function P(n) {
8080
- if (!n) return null;
8081
- const e = /^(\d{4})-(\d{1,2})-(\d{1,2})$/.exec(n.trim());
8089
+ function P(r) {
8090
+ if (!r) return null;
8091
+ const e = /^(\d{4})-(\d{1,2})-(\d{1,2})$/.exec(r.trim());
8082
8092
  if (!e) return null;
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;
8093
+ const [t, o, i] = [Number(e[1]), Number(e[2]), Number(e[3])], n = new Date(t, o - 1, i);
8094
+ return n.getFullYear() !== t || n.getMonth() !== o - 1 || n.getDate() !== i ? null : n;
8085
8095
  }
8086
- function x1(n) {
8096
+ function x1(r) {
8087
8097
  const e = (t) => String(t).padStart(2, "0");
8088
- return `${n.getFullYear()}-${e(n.getMonth() + 1)}-${e(n.getDate())}`;
8098
+ return `${r.getFullYear()}-${e(r.getMonth() + 1)}-${e(r.getDate())}`;
8089
8099
  }
8090
8100
  function O1() {
8091
- const n = /* @__PURE__ */ new Date();
8092
- return new Date(n.getFullYear(), n.getMonth(), n.getDate());
8101
+ const r = /* @__PURE__ */ new Date();
8102
+ return new Date(r.getFullYear(), r.getMonth(), r.getDate());
8093
8103
  }
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));
8104
+ function u1(r, e) {
8105
+ const t = r.getFullYear(), o = r.getMonth() + e, i = new Date(t, o + 1, 0).getDate();
8106
+ return new Date(t, o, Math.min(r.getDate(), i));
8097
8107
  }
8098
- function I7(n, e) {
8099
- return new Date(n, e + 1, 0).getDate();
8108
+ function I7(r, e) {
8109
+ return new Date(r, e + 1, 0).getDate();
8100
8110
  }
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);
8111
+ var O7 = Object.defineProperty, i1 = (r, e, t, o) => {
8112
+ for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
8113
+ (l = r[n]) && (i = l(e, t, i) || i);
8104
8114
  return i && O7(e, t, i), i;
8105
8115
  };
8106
8116
  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 +8127,12 @@ const Z2 = "anduin-calendar:change", I5 = "anduin-calendar:day-hover", q4 = ["Ja
8117
8127
  "November",
8118
8128
  "December"
8119
8129
  ], T7 = ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], J4 = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"];
8120
- function F1(n, e) {
8121
- return new Date(n.getFullYear(), n.getMonth(), n.getDate() + e);
8130
+ function F1(r, e) {
8131
+ return new Date(r.getFullYear(), r.getMonth(), r.getDate() + e);
8122
8132
  }
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]}`;
8133
+ function N7(r) {
8134
+ const e = ["th", "st", "nd", "rd"], t = r % 100;
8135
+ return `${r}${e[(t - 20) % 10] ?? e[t] ?? e[0]}`;
8126
8136
  }
8127
8137
  const h4 = class h4 extends h {
8128
8138
  constructor() {
@@ -8241,8 +8251,8 @@ const h4 = class h4 extends h {
8241
8251
  /** Years offered in the year picker — bounded by min/max when set, otherwise
8242
8252
  * a ±10-year window around the displayed year. */
8243
8253
  get _yearOptions() {
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);
8254
+ 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);
8255
+ return Array.from({ length: l - n + 1 }, (d, c) => n + c);
8246
8256
  }
8247
8257
  _selectMonth(e) {
8248
8258
  this._viewMonth = e, this._viewSeeded = !0, this._openSelect = null;
@@ -8250,7 +8260,7 @@ const h4 = class h4 extends h {
8250
8260
  _selectYear(e) {
8251
8261
  this._viewYear = e, this._viewSeeded = !0, this._openSelect = null;
8252
8262
  }
8253
- _renderSelect(e, t, o, i, r) {
8263
+ _renderSelect(e, t, o, i, n) {
8254
8264
  const l = this._openSelect === e;
8255
8265
  return a`
8256
8266
  <div class="calendar__select">
@@ -8273,7 +8283,7 @@ const h4 = class h4 extends h {
8273
8283
  class="calendar__option${d.selected ? " calendar__option--selected" : ""}"
8274
8284
  role="option"
8275
8285
  aria-selected="${d.selected}"
8276
- @click=${() => r(d.value)}
8286
+ @click=${() => n(d.value)}
8277
8287
  >${d.label}</button>
8278
8288
  `)}
8279
8289
  </div>
@@ -8283,7 +8293,7 @@ const h4 = class h4 extends h {
8283
8293
  }
8284
8294
  // ── Render ──────────────────────────────────────────────────────
8285
8295
  render() {
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 = [
8296
+ 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 = [
8287
8297
  ...Array.from({ length: C }, () => null),
8288
8298
  ...Array.from({ length: c }, (y, v) => v + 1)
8289
8299
  ];
@@ -8353,7 +8363,7 @@ const h4 = class h4 extends h {
8353
8363
  <tr>
8354
8364
  ${y.map((v) => {
8355
8365
  if (v === null) return a`<td class="calendar__day-cell"></td>`;
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 = [
8366
+ 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 = !n && !!t && D === t.getTime(), E3 = [
8357
8367
  "calendar__day-cell",
8358
8368
  H4 ? "calendar__day-cell--in-range" : "",
8359
8369
  // Only tint the edge cell when it actually opens a span —
@@ -8527,9 +8537,9 @@ i1([
8527
8537
  b()
8528
8538
  ], j.prototype, "_openSelect");
8529
8539
  customElements.get("anduin-calendar") || customElements.define("anduin-calendar", j);
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);
8540
+ var j7 = Object.defineProperty, J1 = (r, e, t, o) => {
8541
+ for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
8542
+ (l = r[n]) && (i = l(e, t, i) || i);
8533
8543
  return i && j7(e, t, i), i;
8534
8544
  };
8535
8545
  const U7 = "anduin-date-range:change", g4 = class g4 extends h {
@@ -8574,11 +8584,11 @@ const U7 = "anduin-date-range:change", g4 = class g4 extends h {
8574
8584
  _sync() {
8575
8585
  const [e, t] = this._displayedRange();
8576
8586
  for (const [o, i] of this._panels) {
8577
- const r = i.calendar;
8578
- if (!r) continue;
8579
- r.minDate = this.minDate, r.maxDate = this.maxDate, r.rangeStart = e, r.rangeEnd = t;
8587
+ const n = i.calendar;
8588
+ if (!n) continue;
8589
+ n.minDate = this.minDate, n.maxDate = this.maxDate, n.rangeStart = e, n.rangeEnd = t;
8580
8590
  const l = this._panelValue(o);
8581
- this._pushedValue.get(o) !== l && (this._pushedValue.set(o, l), r.value = l);
8591
+ this._pushedValue.get(o) !== l && (this._pushedValue.set(o, l), n.value = l);
8582
8592
  }
8583
8593
  }
8584
8594
  /** Which month each panel opens on: the start date on the left, the month
@@ -8688,31 +8698,31 @@ customElements.get("anduin-date-range") || customElements.define("anduin-date-ra
8688
8698
  customElements.get("anduin-date-range-default") || customElements.define("anduin-date-range-default", O5);
8689
8699
  customElements.get("anduin-date-range-start") || customElements.define("anduin-date-range-start", G7);
8690
8700
  customElements.get("anduin-date-range-end") || customElements.define("anduin-date-range-end", K7);
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);
8701
+ var W7 = Object.defineProperty, T = (r, e, t, o) => {
8702
+ for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
8703
+ (l = r[n]) && (i = l(e, t, i) || i);
8694
8704
  return i && W7(e, t, i), i;
8695
8705
  };
8696
8706
  const T5 = "anduin-date-input:change", Q4 = { M: "month", d: "day", y: "year" };
8697
- function Y7(n) {
8707
+ function Y7(r) {
8698
8708
  const e = [];
8699
8709
  let t = 0, o = 0;
8700
- for (; o < n.length; ) {
8701
- const i = n[o], r = Q4[i];
8702
- if (!r) {
8710
+ for (; o < r.length; ) {
8711
+ const i = r[o], n = Q4[i];
8712
+ if (!n) {
8703
8713
  let d = "";
8704
- for (; o < n.length && !Q4[n[o]]; ) d += n[o++];
8714
+ for (; o < r.length && !Q4[r[o]]; ) d += r[o++];
8705
8715
  e.push({ literal: d }), t += d.length;
8706
8716
  continue;
8707
8717
  }
8708
8718
  let l = "";
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;
8719
+ for (; o < r.length && r[o] === i; ) l += r[o++];
8720
+ e.push({ segment: { type: n, placeholder: l, length: l.length, start: t } }), t += l.length;
8711
8721
  }
8712
8722
  return e;
8713
8723
  }
8714
- function s5(n) {
8715
- return n.type === "year" ? 10 ** n.length - 1 : n.length === 1 ? 9 : n.type === "month" ? 12 : 31;
8724
+ function s5(r) {
8725
+ return r.type === "year" ? 10 ** r.length - 1 : r.length === 1 ? 9 : r.type === "month" ? 12 : 31;
8716
8726
  }
8717
8727
  const i2 = 1, G2 = class G2 extends h {
8718
8728
  constructor() {
@@ -8783,16 +8793,16 @@ const i2 = 1, G2 = class G2 extends h {
8783
8793
  _clampToBounds(e) {
8784
8794
  const t = P(this.minDate), o = P(this.maxDate);
8785
8795
  if (!t && !o) return e;
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;
8796
+ const i = this._indexOfType("month"), n = this._indexOfType("day"), l = this._indexOfType("year");
8797
+ if (i < 0 || n < 0 || l < 0) return e;
8798
+ 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;
8789
8799
  if (!H) {
8790
8800
  if (p === C) return e;
8791
8801
  const V = [...e];
8792
- return V[r] = String(p).padStart(this._segments[r].length, "0"), V;
8802
+ return V[n] = String(p).padStart(this._segments[n].length, "0"), V;
8793
8803
  }
8794
8804
  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[r] = String(H.getDate()).padStart(this._segments[r].length, "0"), m;
8805
+ 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;
8796
8806
  }
8797
8807
  // ── Selection ───────────────────────────────────────────────────
8798
8808
  _focusSegment(e) {
@@ -8824,8 +8834,8 @@ const i2 = 1, G2 = class G2 extends h {
8824
8834
  _writeSegment(e, t) {
8825
8835
  const o = this._segments[e];
8826
8836
  if (!o) return;
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);
8837
+ const i = Math.min(Math.max(Number(t), i2), s5(o)), n = [...this._digits];
8838
+ n[e] = String(i).padStart(o.length, "0"), this._buffer = "", this._setDigits(n);
8829
8839
  }
8830
8840
  /** Commit any half-typed digits so they aren't stranded on blur or navigation. */
8831
8841
  _flushBuffer() {
@@ -8852,9 +8862,9 @@ const i2 = 1, G2 = class G2 extends h {
8852
8862
  _step(e) {
8853
8863
  const t = this._active, o = this._segments[t];
8854
8864
  if (!o) return;
8855
- const i = s5(o), r = this._digits[t];
8865
+ const i = s5(o), n = this._digits[t];
8856
8866
  let l;
8857
- r === null ? l = e > 0 ? i2 : i : (l = Number(r) + e, l > i && (l = i2), l < i2 && (l = i));
8867
+ n === null ? l = e > 0 ? i2 : i : (l = Number(n) + e, l > i && (l = i2), l < i2 && (l = i));
8858
8868
  const d = [...this._digits];
8859
8869
  d[t] = String(l).padStart(o.length, "0"), this._buffer = "", this._setDigits(d), this._pendingSelection = [o.start, o.start + o.length];
8860
8870
  }
@@ -8922,9 +8932,9 @@ const i2 = 1, G2 = class G2 extends h {
8922
8932
  @mouseup=${this._onSelectionIntent}
8923
8933
  @focus=${this._onSelectionIntent}
8924
8934
  @blur=${() => this._flushBuffer()}
8925
- @beforeinput=${(r) => r.preventDefault()}
8926
- @paste=${(r) => r.preventDefault()}
8927
- @drop=${(r) => r.preventDefault()}
8935
+ @beforeinput=${(n) => n.preventDefault()}
8936
+ @paste=${(n) => n.preventDefault()}
8937
+ @drop=${(n) => n.preventDefault()}
8928
8938
  />
8929
8939
  </div>
8930
8940
  `;
@@ -9025,14 +9035,14 @@ T([
9025
9035
  k("input")
9026
9036
  ], S.prototype, "_inputEl");
9027
9037
  customElements.get("anduin-date-input") || customElements.define("anduin-date-input", S);
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);
9038
+ var q7 = Object.defineProperty, N = (r, e, t, o) => {
9039
+ for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
9040
+ (l = r[n]) && (i = l(e, t, i) || i);
9031
9041
  return i && q7(e, t, i), i;
9032
9042
  };
9033
9043
  const X7 = "anduin-date-picker:change", $3 = { M: "month", d: "day", y: "year" };
9034
- function J7(n, e) {
9035
- if (!n) return null;
9044
+ function J7(r, e) {
9045
+ if (!r) return null;
9036
9046
  const t = {};
9037
9047
  let o = 0, i = 0;
9038
9048
  for (; i < e.length; ) {
@@ -9044,29 +9054,29 @@ function J7(n, e) {
9044
9054
  let C = 0;
9045
9055
  for (; i < e.length && e[i] === d; )
9046
9056
  i++, C++;
9047
- const p = n.slice(o, o + C);
9057
+ const p = r.slice(o, o + C);
9048
9058
  if (!/^\d+$/.test(p)) return null;
9049
9059
  t[c] = p, o += C;
9050
9060
  }
9051
9061
  if (!t.month || !t.day || !t.year) return null;
9052
- const r = Number(t.year), l = new Date(r, Number(t.month) - 1, Number(t.day));
9062
+ const n = Number(t.year), l = new Date(n, Number(t.month) - 1, Number(t.day));
9053
9063
  return l.getMonth() !== Number(t.month) - 1 || l.getDate() !== Number(t.day) ? null : l;
9054
9064
  }
9055
- function Q7(n, e) {
9065
+ function Q7(r, e) {
9056
9066
  const t = {
9057
- month: n.getMonth() + 1,
9058
- day: n.getDate(),
9059
- year: n.getFullYear()
9067
+ month: r.getMonth() + 1,
9068
+ day: r.getDate(),
9069
+ year: r.getFullYear()
9060
9070
  };
9061
9071
  let o = "", i = 0;
9062
9072
  for (; i < e.length; ) {
9063
- const r = e[i], l = $3[r];
9073
+ const n = e[i], l = $3[n];
9064
9074
  if (!l) {
9065
- o += r, i++;
9075
+ o += n, i++;
9066
9076
  continue;
9067
9077
  }
9068
9078
  let d = 0;
9069
- for (; i < e.length && e[i] === r; )
9079
+ for (; i < e.length && e[i] === n; )
9070
9080
  i++, d++;
9071
9081
  o += String(t[l]).padStart(d, "0").slice(-d);
9072
9082
  }
@@ -9202,20 +9212,20 @@ N([
9202
9212
  k("anduin-popover")
9203
9213
  ], A.prototype, "_popoverEl");
9204
9214
  customElements.get("anduin-date-picker") || customElements.define("anduin-date-picker", A);
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);
9215
+ var e0 = Object.defineProperty, L = (r, e, t, o) => {
9216
+ for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
9217
+ (l = r[n]) && (i = l(e, t, i) || i);
9208
9218
  return i && e0(e, t, i), i;
9209
9219
  };
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) => {
9220
+ 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) => {
9211
9221
  if (!e) return;
9212
- let t = n;
9222
+ let t = r;
9213
9223
  for (const o of e.split(".")) {
9214
9224
  if (t === null || typeof t != "object") return;
9215
9225
  t = t[o];
9216
9226
  }
9217
9227
  return t;
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 {
9228
+ }, 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 {
9219
9229
  constructor() {
9220
9230
  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
9231
  this.isDraggingRange = !1;
@@ -9327,9 +9337,9 @@ const t0 = "anduin-table:sort", i0 = "anduin-table:column-click", o0 = "anduin-t
9327
9337
  );
9328
9338
  if (t.length === 0) return;
9329
9339
  const o = t.map((c) => c.getBoundingClientRect().width), i = e.map(() => null);
9330
- let r = 0;
9340
+ let n = 0;
9331
9341
  for (let c = 0; c < e.length; c++)
9332
- e[c] === "left" && (i[c] = r, r += o[c] ?? 0);
9342
+ e[c] === "left" && (i[c] = n, n += o[c] ?? 0);
9333
9343
  let l = 0;
9334
9344
  for (let c = e.length - 1; c >= 0; c--)
9335
9345
  e[c] === "right" && (i[c] = l, l += o[c] ?? 0);
@@ -9342,14 +9352,14 @@ const t0 = "anduin-table:sort", i0 = "anduin-table:column-click", o0 = "anduin-t
9342
9352
  get sortedColumn() {
9343
9353
  if (this.sortField)
9344
9354
  return this.columns.find(
9345
- (e) => !r1(e) && e.field === this.sortField
9355
+ (e) => !n1(e) && e.field === this.sortField
9346
9356
  );
9347
9357
  }
9348
9358
  sortRows(e) {
9349
9359
  const t = this.sortedColumn;
9350
9360
  if (!t) return e;
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);
9361
+ 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));
9362
+ return [...e].sort((n, l) => i(n, l) * o);
9353
9363
  }
9354
9364
  onHeaderClick(e) {
9355
9365
  if (this.dispatchEvent(new CustomEvent(i0, {
@@ -9371,21 +9381,21 @@ const t0 = "anduin-table:sort", i0 = "anduin-table:column-click", o0 = "anduin-t
9371
9381
  }
9372
9382
  buildFlatRows(e, t) {
9373
9383
  const o = [];
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);
9384
+ return e.forEach((i, n) => {
9385
+ 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);
9376
9386
  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
9387
  }), o;
9378
9388
  }
9379
9389
  buildGroupedRows() {
9380
9390
  const e = /* @__PURE__ */ new Map();
9381
9391
  this.data.forEach((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] });
9392
+ const i = C1(o, this.groupBy), n = String(i), l = e.get(n);
9393
+ l ? l.rows.push(o) : e.set(n, { value: i, rows: [o] });
9384
9394
  });
9385
9395
  const t = [];
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));
9396
+ return e.forEach(({ value: o, rows: i }, n) => {
9397
+ const l = !this.collapsedGroups.has(n);
9398
+ t.push({ kind: "group", key: n, value: o, rows: i, expanded: l }), l && t.push(...this.buildFlatRows(this.sortRows(i), 0));
9389
9399
  }), t;
9390
9400
  }
9391
9401
  isExpanded(e, t) {
@@ -9409,9 +9419,9 @@ const t0 = "anduin-table:sort", i0 = "anduin-table:column-click", o0 = "anduin-t
9409
9419
  /** Expands every tree row that has children. */
9410
9420
  expandAll() {
9411
9421
  const e = /* @__PURE__ */ new Set(), t = (o) => {
9412
- o.forEach((i, r) => {
9422
+ o.forEach((i, n) => {
9413
9423
  const l = C1(i, this.treeChildrenField);
9414
- Array.isArray(l) && l.length > 0 && (e.add(this.keyFor(i, r)), t(l));
9424
+ Array.isArray(l) && l.length > 0 && (e.add(this.keyFor(i, n)), t(l));
9415
9425
  });
9416
9426
  };
9417
9427
  t(this.data), this.expandedKeys = e;
@@ -9428,16 +9438,16 @@ const t0 = "anduin-table:sort", i0 = "anduin-table:column-click", o0 = "anduin-t
9428
9438
  );
9429
9439
  }
9430
9440
  commitSelection(e) {
9431
- const t = /* @__PURE__ */ new Map(), o = (r) => {
9432
- r.forEach((l, d) => {
9441
+ const t = /* @__PURE__ */ new Map(), o = (n) => {
9442
+ n.forEach((l, d) => {
9433
9443
  t.set(this.keyFor(l, d), l);
9434
9444
  const c = this.dataTree ? C1(l, this.treeChildrenField) : void 0;
9435
9445
  Array.isArray(c) && o(c);
9436
9446
  });
9437
9447
  };
9438
9448
  o(this.data);
9439
- const i = [...e].filter((r) => t.has(r));
9440
- this.selectedRows = i.map((r) => t.get(r)), this.dispatchEvent(new CustomEvent(r0, {
9449
+ const i = [...e].filter((n) => t.has(n));
9450
+ this.selectedRows = i.map((n) => t.get(n)), this.dispatchEvent(new CustomEvent(n0, {
9441
9451
  detail: { selectedRows: this.selectedRows, selectedKeys: i },
9442
9452
  bubbles: !0,
9443
9453
  composed: !0
@@ -9456,9 +9466,9 @@ const t0 = "anduin-table:sort", i0 = "anduin-table:column-click", o0 = "anduin-t
9456
9466
  }
9457
9467
  /** Selects (or clears) every row between the anchor and `row`, inclusive. */
9458
9468
  selectRange(e, t, 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);
9469
+ const i = this.selectableRows, n = i.findIndex((f) => f.key === e.key);
9470
+ if (n < 0) return;
9471
+ 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);
9462
9472
  for (let f = c; f <= C; f++)
9463
9473
  t ? p.add(i[f].key) : p.delete(i[f].key);
9464
9474
  this.commitSelection(p);
@@ -9477,19 +9487,19 @@ const t0 = "anduin-table:sort", i0 = "anduin-table:column-click", o0 = "anduin-t
9477
9487
  }));
9478
9488
  const i = this.selectable;
9479
9489
  if (i === "unselectable" || i === "clickable" || this.rowIsDisabled(t.data)) return;
9480
- const r = this.selectedKeySet.has(t.key);
9490
+ const n = this.selectedKeySet.has(t.key);
9481
9491
  if (i === "selectable-by-clicking" && e.shiftKey) {
9482
9492
  this.selectRange(t, !0, e.metaKey || e.ctrlKey ? [...this.selectedKeySet] : []);
9483
9493
  return;
9484
9494
  }
9485
9495
  if (i === "selectable-by-clicking" && !(e.metaKey || e.ctrlKey)) {
9486
- this.rangeAnchorKey = t.key, this.commitSelection(new Set(r && this.selectedRows.length === 1 ? [] : [t.key]));
9496
+ this.rangeAnchorKey = t.key, this.commitSelection(new Set(n && this.selectedRows.length === 1 ? [] : [t.key]));
9487
9497
  return;
9488
9498
  }
9489
- this.setRowSelected(t, !r);
9499
+ this.setRowSelected(t, !n);
9490
9500
  }
9491
9501
  onCellContextMenu(e, t, o, i) {
9492
- this.dispatchEvent(new CustomEvent(n0, {
9502
+ this.dispatchEvent(new CustomEvent(r0, {
9493
9503
  detail: {
9494
9504
  data: t.data,
9495
9505
  key: t.key,
@@ -9519,7 +9529,7 @@ const t0 = "anduin-table:sort", i0 = "anduin-table:column-click", o0 = "anduin-t
9519
9529
  */
9520
9530
  /** A stable identity for a column, used to remember a dragged width. */
9521
9531
  columnKey(e, t) {
9522
- return r1(e) ? `__selection:${t}` : e.field || `__col:${t}`;
9532
+ return n1(e) ? `__selection:${t}` : e.field || `__col:${t}`;
9523
9533
  }
9524
9534
  /** The width to lay a column out at: a dragged width beats the configured one. */
9525
9535
  widthFor(e, t) {
@@ -9563,7 +9573,7 @@ const t0 = "anduin-table:sort", i0 = "anduin-table:column-click", o0 = "anduin-t
9563
9573
  */
9564
9574
  fitColumnsMinWidth() {
9565
9575
  return this.layout !== "fit-columns" || !this.columns.some((e) => e.minWidth) ? 0 : this.columns.reduce((e, t, o) => {
9566
- const i = r1(t) && !t.width && !t.minWidth ? t3 : Math.max(this.widthFor(t, o) ?? 0, t.minWidth ?? 0);
9576
+ const i = n1(t) && !t.width && !t.minWidth ? t3 : Math.max(this.widthFor(t, o) ?? 0, t.minWidth ?? 0);
9567
9577
  return e + i;
9568
9578
  }, 0);
9569
9579
  }
@@ -9573,9 +9583,9 @@ const t0 = "anduin-table:sort", i0 = "anduin-table:column-click", o0 = "anduin-t
9573
9583
  }
9574
9584
  onResizeStart(e, t, o) {
9575
9585
  e.preventDefault(), e.stopPropagation();
9576
- const i = e.currentTarget, r = i.closest("th");
9577
- if (!r) return;
9578
- const l = r.getBoundingClientRect().width;
9586
+ const i = e.currentTarget, n = i.closest("th");
9587
+ if (!n) return;
9588
+ const l = n.getBoundingClientRect().width;
9579
9589
  this.resizeDrag = {
9580
9590
  key: this.columnKey(t, o),
9581
9591
  startX: e.clientX,
@@ -9588,8 +9598,8 @@ const t0 = "anduin-table:sort", i0 = "anduin-table:column-click", o0 = "anduin-t
9588
9598
  e.preventDefault(), e.stopPropagation();
9589
9599
  const i = this.columnKey(t, o);
9590
9600
  if (this.resizedWidths[i] === void 0) return;
9591
- const r = { ...this.resizedWidths };
9592
- delete r[i], this.resizedWidths = r, this.dispatchEvent(new CustomEvent(e3, {
9601
+ const n = { ...this.resizedWidths };
9602
+ delete n[i], this.resizedWidths = n, this.dispatchEvent(new CustomEvent(e3, {
9593
9603
  detail: { column: t, field: i, width: null },
9594
9604
  bubbles: !0,
9595
9605
  composed: !0
@@ -9607,12 +9617,12 @@ const t0 = "anduin-table:sort", i0 = "anduin-table:column-click", o0 = "anduin-t
9607
9617
  ].filter(Boolean).join(" ");
9608
9618
  }
9609
9619
  renderHeaderCell(e, t) {
9610
- const o = this.frozenSides, i = o[t], r = i === "left" ? o[t + 1] !== "left" : i === "right" ? o[t - 1] !== "right" : !1, l = [
9620
+ const o = this.frozenSides, i = o[t], n = i === "left" ? o[t + 1] !== "left" : i === "right" ? o[t - 1] !== "right" : !1, l = [
9611
9621
  "table__header-cell",
9612
9622
  i ? "table__header-cell--frozen" : "",
9613
- i && r ? `table__header-cell--frozen-${i}-edge` : "",
9614
- !r1(e) && e.isSortable ? "table__header-cell--sortable" : "",
9615
- r1(e) ? "table__cell--selection" : "",
9623
+ i && n ? `table__header-cell--frozen-${i}-edge` : "",
9624
+ !n1(e) && e.isSortable ? "table__header-cell--sortable" : "",
9625
+ n1(e) ? "table__cell--selection" : "",
9616
9626
  this.sizingClass(e, t)
9617
9627
  ].filter(Boolean).join(" "), d = this.cellStyle(e, t), c = e.headerAlign ?? e.align ?? this.columnAlign, C = [
9618
9628
  "table__header-inner",
@@ -9632,7 +9642,7 @@ const t0 = "anduin-table:sort", i0 = "anduin-table:column-click", o0 = "anduin-t
9632
9642
  @click=${(v) => v.stopPropagation()}
9633
9643
  ></span>
9634
9644
  ` : u;
9635
- if (r1(e)) {
9645
+ if (n1(e)) {
9636
9646
  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
9647
  areAllRowsSelected: D,
9638
9648
  hasSelectedRow: w > 0,
@@ -9681,16 +9691,16 @@ const t0 = "anduin-table:sort", i0 = "anduin-table:column-click", o0 = "anduin-t
9681
9691
  `;
9682
9692
  }
9683
9693
  renderCell(e, t, o, i) {
9684
- const r = this.frozenSides, l = r[i], d = l === "left" ? r[i + 1] !== "left" : l === "right" ? r[i - 1] !== "right" : !1, c = [
9694
+ const n = this.frozenSides, l = n[i], d = l === "left" ? n[i + 1] !== "left" : l === "right" ? n[i - 1] !== "right" : !1, c = [
9685
9695
  "table__cell",
9686
9696
  this.alignClass(o),
9687
9697
  l ? "table__cell--frozen" : "",
9688
9698
  l && d ? `table__cell--frozen-${l}-edge` : "",
9689
- r1(o) ? "table__cell--selection" : "",
9699
+ n1(o) ? "table__cell--selection" : "",
9690
9700
  o.showOnRowHover ? "table__cell--hover-only" : "",
9691
9701
  this.sizingClass(o, i)
9692
9702
  ].filter(Boolean).join(" "), C = this.cellStyle(o, i);
9693
- if (r1(o)) {
9703
+ if (n1(o)) {
9694
9704
  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
9705
  <anduin-checkbox
9696
9706
  .checked=${V}
@@ -9743,20 +9753,20 @@ const t0 = "anduin-table:sort", i0 = "anduin-table:column-click", o0 = "anduin-t
9743
9753
  `;
9744
9754
  }
9745
9755
  get firstDataColumnIndex() {
9746
- const e = this.columns.findIndex((t) => !r1(t));
9756
+ const e = this.columns.findIndex((t) => !n1(t));
9747
9757
  return e < 0 ? 0 : e;
9748
9758
  }
9749
9759
  renderRow(e, t) {
9750
- const o = this.renderSelectedKeys.has(e.key), i = this.selectable !== "unselectable", r = this.rowClass ? this.rowClass(e.data, t).trim() : "", l = [
9760
+ const o = this.renderSelectedKeys.has(e.key), i = this.selectable !== "unselectable", n = this.rowClass ? this.rowClass(e.data, t).trim() : "", l = [
9751
9761
  "table__row",
9752
9762
  i ? "table__row--interactive" : "",
9753
9763
  o ? "table__row--selected" : "",
9754
- r
9764
+ n
9755
9765
  ].filter(Boolean).join(" ");
9756
9766
  return a`
9757
9767
  <tr
9758
9768
  class="${l}"
9759
- part="${r ? `row ${r}` : "row"}"
9769
+ part="${n ? `row ${n}` : "row"}"
9760
9770
  aria-selected="${this.selectable === "unselectable" || this.selectable === "clickable" ? u : String(o)}"
9761
9771
  style="${this.renderMode === "virtual" ? `height:${this.rowHeight}px` : ""}"
9762
9772
  @click=${(d) => this.onRowClick(d, e, t)}
@@ -9814,10 +9824,10 @@ const t0 = "anduin-table:sort", i0 = "anduin-table:column-click", o0 = "anduin-t
9814
9824
  this.scrolledX ? "table--scrolled-x" : "",
9815
9825
  this.scrollableXEnd ? "table--scrollable-x-end" : ""
9816
9826
  ].filter(Boolean).join(" ");
9817
- let r = e, l = 0, d = 0, c = 0;
9827
+ let n = e, l = 0, d = 0, c = 0;
9818
9828
  if (this.renderMode === "virtual" && e.length > 0) {
9819
9829
  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
- r = e.slice(f, H), l = f * this.rowHeight, d = (e.length - H) * this.rowHeight, c = f;
9830
+ n = e.slice(f, H), l = f * this.rowHeight, d = (e.length - H) * this.rowHeight, c = f;
9821
9831
  }
9822
9832
  return a`
9823
9833
  <div class="${i}" part="table" style="${t}">
@@ -9837,7 +9847,7 @@ const t0 = "anduin-table:sort", i0 = "anduin-table:column-click", o0 = "anduin-t
9837
9847
  <tbody part="body">
9838
9848
  ${e.length === 0 ? this.renderPlaceholder() : u}
9839
9849
  ${l > 0 ? a`<tr style="height:${l}px" aria-hidden="true"><td colspan="${this.columnCount}"></td></tr>` : u}
9840
- ${r.map(
9850
+ ${n.map(
9841
9851
  (C, p) => C.kind === "group" ? this.renderGroupRow(C) : this.renderRow(C, c + p)
9842
9852
  )}
9843
9853
  ${d > 0 ? a`<tr style="height:${d}px" aria-hidden="true"><td colspan="${this.columnCount}"></td></tr>` : u}
@@ -9989,7 +9999,7 @@ m4.styles = g`
9989
9999
  color: var(--color-placeholder);
9990
10000
  }
9991
10001
  .table__sort-icon--active {
9992
- color: var(--color-primary);
10002
+ color: var(--color-primary-icon);
9993
10003
  }
9994
10004
 
9995
10005
  /* The divider between headers is the resize affordance: a hairline at rest,
@@ -10251,7 +10261,7 @@ L([
10251
10261
  L([
10252
10262
  s({
10253
10263
  attribute: "resizable-columns",
10254
- converter: (n) => n !== "false"
10264
+ converter: (r) => r !== "false"
10255
10265
  })
10256
10266
  ], _.prototype, "resizableColumns");
10257
10267
  L([
@@ -10365,7 +10375,7 @@ export {
10365
10375
  D5 as a1,
10366
10376
  _1 as a2,
10367
10377
  F5 as a3,
10368
- n1 as a4,
10378
+ r1 as a4,
10369
10379
  g2 as a5,
10370
10380
  h2 as a6,
10371
10381
  Z as a7,
@@ -10374,7 +10384,7 @@ export {
10374
10384
  T5 as aA,
10375
10385
  X7 as aB,
10376
10386
  U7 as aC,
10377
- n5 as aD,
10387
+ r5 as aD,
10378
10388
  l2 as aE,
10379
10389
  G4 as aF,
10380
10390
  m3 as aG,
@@ -10387,7 +10397,7 @@ export {
10387
10397
  Mt as aN,
10388
10398
  H5 as aO,
10389
10399
  t5 as aP,
10390
- n2 as aQ,
10400
+ r2 as aQ,
10391
10401
  $7 as aR,
10392
10402
  V5 as aS,
10393
10403
  A7 as aT,
@@ -10395,7 +10405,7 @@ export {
10395
10405
  v5 as aV,
10396
10406
  b5 as aW,
10397
10407
  _5 as aX,
10398
- n7 as aY,
10408
+ r7 as aY,
10399
10409
  z7 as aZ,
10400
10410
  F7 as a_,
10401
10411
  l1 as aa,
@@ -10428,14 +10438,14 @@ export {
10428
10438
  k7 as b0,
10429
10439
  Z7 as b1,
10430
10440
  _7 as b2,
10431
- n0 as b3,
10441
+ r0 as b3,
10432
10442
  i0 as b4,
10433
10443
  e3 as b5,
10434
10444
  a0 as b6,
10435
10445
  o0 as b7,
10436
10446
  s0 as b8,
10437
10447
  l0 as b9,
10438
- r0 as ba,
10448
+ n0 as ba,
10439
10449
  t0 as bb,
10440
10450
  Ft as bc,
10441
10451
  w3 as bd,