@duyluonganduin/acl-web-components 0.0.53 → 0.0.55

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.
@@ -3,18 +3,18 @@
3
3
  * Copyright 2019 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
5
5
  */
6
- const V2 = globalThis, E5 = V2.ShadowRoot && (V2.ShadyCSS === void 0 || V2.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, z5 = Symbol(), c3 = /* @__PURE__ */ new WeakMap();
7
- let T3 = class {
6
+ const V2 = globalThis, D5 = V2.ShadowRoot && (V2.ShadyCSS === void 0 || V2.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, B5 = Symbol(), p3 = /* @__PURE__ */ new WeakMap();
7
+ let j3 = class {
8
8
  constructor(e, t, o) {
9
- if (this._$cssResult$ = !0, o !== z5) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
9
+ if (this._$cssResult$ = !0, o !== B5) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
10
10
  this.cssText = e, this.t = t;
11
11
  }
12
12
  get styleSheet() {
13
13
  let e = this.o;
14
14
  const t = this.t;
15
- if (E5 && e === void 0) {
15
+ if (D5 && e === void 0) {
16
16
  const o = t !== void 0 && t.length === 1;
17
- o && (e = c3.get(t)), e === void 0 && ((this.o = e = new CSSStyleSheet()).replaceSync(this.cssText), o && c3.set(t, e));
17
+ o && (e = p3.get(t)), e === void 0 && ((this.o = e = new CSSStyleSheet()).replaceSync(this.cssText), o && p3.set(t, e));
18
18
  }
19
19
  return e;
20
20
  }
@@ -22,33 +22,33 @@ let T3 = class {
22
22
  return this.cssText;
23
23
  }
24
24
  };
25
- const ve = (r) => new T3(typeof r == "string" ? r : r + "", void 0, z5), g = (r, ...e) => {
25
+ const be = (r) => new j3(typeof r == "string" ? r : r + "", void 0, B5), g = (r, ...e) => {
26
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
30
  })(i) + r[n + 1], r[0]);
31
- return new T3(t, r, z5);
32
- }, be = (r, e) => {
33
- if (E5) r.adoptedStyleSheets = e.map((t) => t instanceof CSSStyleSheet ? t : t.styleSheet);
31
+ return new j3(t, r, B5);
32
+ }, He = (r, e) => {
33
+ if (D5) 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 = V2.litNonce;
36
36
  i !== void 0 && o.setAttribute("nonce", i), o.textContent = t.cssText, r.appendChild(o);
37
37
  }
38
- }, C3 = E5 ? (r) => r : (r) => r instanceof CSSStyleSheet ? ((e) => {
38
+ }, h3 = D5 ? (r) => r : (r) => r instanceof CSSStyleSheet ? ((e) => {
39
39
  let t = "";
40
40
  for (const o of e.cssRules) t += o.cssText;
41
- return ve(t);
41
+ return be(t);
42
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: me, defineProperty: He, getOwnPropertyDescriptor: ye, getOwnPropertyNames: _e, getOwnPropertySymbols: Ve, getPrototypeOf: Le } = Object, C1 = globalThis, p3 = C1.trustedTypes, xe = p3 ? p3.emptyScript : "", O2 = C1.reactiveElementPolyfillSupport, e2 = (r, e) => r, L2 = { toAttribute(r, e) {
48
+ const { is: ye, defineProperty: _e, getOwnPropertyDescriptor: Le, getOwnPropertyNames: Ve, getOwnPropertySymbols: xe, getPrototypeOf: Me } = Object, p1 = globalThis, u3 = p1.trustedTypes, we = u3 ? u3.emptyScript : "", N2 = p1.reactiveElementPolyfillSupport, t2 = (r, e) => r, x2 = { toAttribute(r, e) {
49
49
  switch (e) {
50
50
  case Boolean:
51
- r = r ? xe : null;
51
+ r = r ? we : null;
52
52
  break;
53
53
  case Object:
54
54
  case Array:
@@ -73,8 +73,8 @@ const { is: me, defineProperty: He, getOwnPropertyDescriptor: ye, getOwnProperty
73
73
  }
74
74
  }
75
75
  return t;
76
- } }, S5 = (r, e) => !me(r, e), u3 = { attribute: !0, type: String, converter: L2, reflect: !1, useDefault: !1, hasChanged: S5 };
77
- Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), C1.litPropertyMetadata ?? (C1.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
76
+ } }, P5 = (r, e) => !ye(r, e), g3 = { attribute: !0, type: String, converter: x2, reflect: !1, useDefault: !1, hasChanged: P5 };
77
+ Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), p1.litPropertyMetadata ?? (p1.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
78
78
  let B1 = class extends HTMLElement {
79
79
  static addInitializer(e) {
80
80
  this._$Ei(), (this.l ?? (this.l = [])).push(e);
@@ -82,14 +82,14 @@ let B1 = class extends HTMLElement {
82
82
  static get observedAttributes() {
83
83
  return this.finalize(), this._$Eh && [...this._$Eh.keys()];
84
84
  }
85
- static createProperty(e, t = u3) {
85
+ static createProperty(e, t = g3) {
86
86
  if (t.state && (t.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(e) && ((t = Object.create(t)).wrapped = !0), this.elementProperties.set(e, t), !t.noAccessor) {
87
87
  const o = Symbol(), i = this.getPropertyDescriptor(e, o, t);
88
- i !== void 0 && He(this.prototype, e, i);
88
+ i !== void 0 && _e(this.prototype, e, i);
89
89
  }
90
90
  }
91
91
  static getPropertyDescriptor(e, t, o) {
92
- const { get: i, set: n } = ye(this.prototype, e) ?? { get() {
92
+ const { get: i, set: n } = Le(this.prototype, e) ?? { get() {
93
93
  return this[t];
94
94
  }, set(l) {
95
95
  this[t] = l;
@@ -100,17 +100,17 @@ let B1 = class extends HTMLElement {
100
100
  }, configurable: !0, enumerable: !0 };
101
101
  }
102
102
  static getPropertyOptions(e) {
103
- return this.elementProperties.get(e) ?? u3;
103
+ return this.elementProperties.get(e) ?? g3;
104
104
  }
105
105
  static _$Ei() {
106
- if (this.hasOwnProperty(e2("elementProperties"))) return;
107
- const e = Le(this);
106
+ if (this.hasOwnProperty(t2("elementProperties"))) return;
107
+ const e = Me(this);
108
108
  e.finalize(), e.l !== void 0 && (this.l = [...e.l]), this.elementProperties = new Map(e.elementProperties);
109
109
  }
110
110
  static finalize() {
111
- if (this.hasOwnProperty(e2("finalized"))) return;
112
- if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(e2("properties"))) {
113
- const t = this.properties, o = [..._e(t), ...Ve(t)];
111
+ if (this.hasOwnProperty(t2("finalized"))) return;
112
+ if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(t2("properties"))) {
113
+ const t = this.properties, o = [...Ve(t), ...xe(t)];
114
114
  for (const i of o) this.createProperty(i, t[i]);
115
115
  }
116
116
  const e = this[Symbol.metadata];
@@ -129,8 +129,8 @@ let B1 = class extends HTMLElement {
129
129
  const t = [];
130
130
  if (Array.isArray(e)) {
131
131
  const o = new Set(e.flat(1 / 0).reverse());
132
- for (const i of o) t.unshift(C3(i));
133
- } else e !== void 0 && t.push(C3(e));
132
+ for (const i of o) t.unshift(h3(i));
133
+ } else e !== void 0 && t.push(h3(e));
134
134
  return t;
135
135
  }
136
136
  static _$Eu(e, t) {
@@ -159,7 +159,7 @@ let B1 = class extends HTMLElement {
159
159
  }
160
160
  createRenderRoot() {
161
161
  const e = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
162
- return be(e, this.constructor.elementStyles), e;
162
+ return He(e, this.constructor.elementStyles), e;
163
163
  }
164
164
  connectedCallback() {
165
165
  var e;
@@ -184,7 +184,7 @@ let B1 = class extends HTMLElement {
184
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 = (((n = o.converter) == null ? void 0 : n.toAttribute) !== void 0 ? o.converter : L2).toAttribute(t, o.type);
187
+ const l = (((n = o.converter) == null ? void 0 : n.toAttribute) !== void 0 ? o.converter : x2).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
  }
@@ -192,7 +192,7 @@ let B1 = class extends HTMLElement {
192
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 } : ((n = d.converter) == null ? void 0 : n.fromAttribute) !== void 0 ? d.converter : L2;
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 : x2;
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;
@@ -202,7 +202,7 @@ let B1 = class extends HTMLElement {
202
202
  var l;
203
203
  if (e !== void 0) {
204
204
  const d = this.constructor;
205
- if (i === !1 && (n = this[e]), o ?? (o = d.getPropertyOptions(e)), !((o.hasChanged ?? S5)(n, t) || o.useDefault && o.reflect && n === ((l = this._$Ej) == null ? void 0 : l.get(e)) && !this.hasAttribute(d._$Eu(e, o)))) return;
205
+ if (i === !1 && (n = this[e]), o ?? (o = d.getPropertyOptions(e)), !((o.hasChanged ?? P5)(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());
@@ -278,59 +278,59 @@ let B1 = class extends HTMLElement {
278
278
  firstUpdated(e) {
279
279
  }
280
280
  };
281
- B1.elementStyles = [], B1.shadowRootOptions = { mode: "open" }, B1[e2("elementProperties")] = /* @__PURE__ */ new Map(), B1[e2("finalized")] = /* @__PURE__ */ new Map(), O2 == null || O2({ ReactiveElement: B1 }), (C1.reactiveElementVersions ?? (C1.reactiveElementVersions = [])).push("2.1.2");
281
+ B1.elementStyles = [], B1.shadowRootOptions = { mode: "open" }, B1[t2("elementProperties")] = /* @__PURE__ */ new Map(), B1[t2("finalized")] = /* @__PURE__ */ new Map(), N2 == null || N2({ ReactiveElement: B1 }), (p1.reactiveElementVersions ?? (p1.reactiveElementVersions = [])).push("2.1.2");
282
282
  /**
283
283
  * @license
284
284
  * Copyright 2017 Google LLC
285
285
  * SPDX-License-Identifier: BSD-3-Clause
286
286
  */
287
- const t2 = globalThis, h3 = (r) => r, x2 = t2.trustedTypes, g3 = x2 ? x2.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, N3 = "$lit$", c1 = `lit$${Math.random().toFixed(9).slice(2)}$`, j3 = "?" + c1, Me = `<${j3}>`, M1 = document, o2 = () => M1.createComment(""), n2 = (r) => r === null || typeof r != "object" && typeof r != "function", A5 = Array.isArray, we = (r) => A5(r) || typeof (r == null ? void 0 : r[Symbol.iterator]) == "function", I2 = `[
288
- \f\r]`, q1 = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, f3 = /-->/g, v3 = />/g, _1 = RegExp(`>|${I2}(?:([^\\s"'>=/]+)(${I2}*=${I2}*(?:[^
289
- \f\r"'\`<>=]|("|')|))|$)`, "g"), b3 = /'/g, m3 = /"/g, U3 = /^(?:script|style|textarea|title)$/i, G3 = (r) => (e, ...t) => ({ _$litType$: r, strings: e, values: t }), s = G3(1), M2 = G3(2), w1 = Symbol.for("lit-noChange"), u = Symbol.for("lit-nothing"), H3 = /* @__PURE__ */ new WeakMap(), L1 = M1.createTreeWalker(M1, 129);
290
- function K3(r, e) {
291
- if (!A5(r) || !r.hasOwnProperty("raw")) throw Error("invalid template strings array");
292
- return g3 !== void 0 ? g3.createHTML(e) : e;
287
+ const i2 = globalThis, f3 = (r) => r, M2 = i2.trustedTypes, v3 = M2 ? M2.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, U3 = "$lit$", C1 = `lit$${Math.random().toFixed(9).slice(2)}$`, G3 = "?" + C1, Ze = `<${G3}>`, M1 = document, n2 = () => M1.createComment(""), r2 = (r) => r === null || typeof r != "object" && typeof r != "function", F5 = Array.isArray, ke = (r) => F5(r) || typeof (r == null ? void 0 : r[Symbol.iterator]) == "function", j2 = `[
288
+ \f\r]`, q1 = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, m3 = /-->/g, b3 = />/g, _1 = RegExp(`>|${j2}(?:([^\\s"'>=/]+)(${j2}*=${j2}*(?:[^
289
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), H3 = /'/g, y3 = /"/g, K3 = /^(?:script|style|textarea|title)$/i, W3 = (r) => (e, ...t) => ({ _$litType$: r, strings: e, values: t }), s = W3(1), w2 = W3(2), w1 = Symbol.for("lit-noChange"), u = Symbol.for("lit-nothing"), _3 = /* @__PURE__ */ new WeakMap(), V1 = M1.createTreeWalker(M1, 129);
290
+ function Y3(r, e) {
291
+ if (!F5(r) || !r.hasOwnProperty("raw")) throw Error("invalid template strings array");
292
+ return v3 !== void 0 ? v3.createHTML(e) : e;
293
293
  }
294
- const Ze = (r, e) => {
294
+ const Re = (r, e) => {
295
295
  const t = r.length - 1, o = [];
296
296
  let i, n = e === 2 ? "<svg>" : e === 3 ? "<math>" : "", l = q1;
297
297
  for (let d = 0; d < t; d++) {
298
298
  const c = r[d];
299
- let C, p, f = -1, m = 0;
300
- for (; m < c.length && (l.lastIndex = m, p = l.exec(c), p !== null); ) m = l.lastIndex, l === q1 ? p[1] === "!--" ? l = f3 : p[1] !== void 0 ? l = v3 : p[2] !== void 0 ? (U3.test(p[2]) && (i = RegExp("</" + p[2], "g")), l = _1) : p[3] !== void 0 && (l = _1) : l === _1 ? p[0] === ">" ? (l = i ?? q1, f = -1) : p[1] === void 0 ? f = -2 : (f = l.lastIndex - p[2].length, C = p[1], l = p[3] === void 0 ? _1 : p[3] === '"' ? m3 : b3) : l === m3 || l === b3 ? l = _1 : l === f3 || l === v3 ? l = q1 : (l = _1, i = void 0);
301
- const b = l === _1 && r[d + 1].startsWith("/>") ? " " : "";
302
- n += l === q1 ? c + Me : f >= 0 ? (o.push(C), c.slice(0, f) + N3 + c.slice(f) + c1 + b) : c + c1 + (f === -2 ? d : b);
299
+ let C, p, f = -1, b = 0;
300
+ for (; b < c.length && (l.lastIndex = b, p = l.exec(c), p !== null); ) b = l.lastIndex, l === q1 ? p[1] === "!--" ? l = m3 : p[1] !== void 0 ? l = b3 : p[2] !== void 0 ? (K3.test(p[2]) && (i = RegExp("</" + p[2], "g")), l = _1) : p[3] !== void 0 && (l = _1) : l === _1 ? p[0] === ">" ? (l = i ?? q1, f = -1) : p[1] === void 0 ? f = -2 : (f = l.lastIndex - p[2].length, C = p[1], l = p[3] === void 0 ? _1 : p[3] === '"' ? y3 : H3) : l === y3 || l === H3 ? l = _1 : l === m3 || l === b3 ? l = q1 : (l = _1, i = void 0);
301
+ const m = l === _1 && r[d + 1].startsWith("/>") ? " " : "";
302
+ n += l === q1 ? c + Ze : f >= 0 ? (o.push(C), c.slice(0, f) + U3 + c.slice(f) + C1 + m) : c + C1 + (f === -2 ? d : m);
303
303
  }
304
- return [K3(r, n + (r[t] || "<?>") + (e === 2 ? "</svg>" : e === 3 ? "</math>" : "")), o];
304
+ return [Y3(r, n + (r[t] || "<?>") + (e === 2 ? "</svg>" : e === 3 ? "</math>" : "")), o];
305
305
  };
306
- class r2 {
306
+ class l2 {
307
307
  constructor({ strings: e, _$litType$: t }, o) {
308
308
  let i;
309
309
  this.parts = [];
310
310
  let n = 0, l = 0;
311
- const d = e.length - 1, c = this.parts, [C, p] = Ze(e, t);
312
- if (this.el = r2.createElement(C, o), L1.currentNode = this.el.content, t === 2 || t === 3) {
311
+ const d = e.length - 1, c = this.parts, [C, p] = Re(e, t);
312
+ if (this.el = l2.createElement(C, o), V1.currentNode = this.el.content, t === 2 || t === 3) {
313
313
  const f = this.el.content.firstChild;
314
314
  f.replaceWith(...f.childNodes);
315
315
  }
316
- for (; (i = L1.nextNode()) !== null && c.length < d; ) {
316
+ for (; (i = V1.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)) {
319
- const m = p[l++], b = i.getAttribute(f).split(c1), L = /([.?@])?(.*)/.exec(m);
320
- c.push({ type: 1, index: n, name: L[2], strings: b, ctor: L[1] === "." ? Re : L[1] === "?" ? $e : L[1] === "@" ? Ee : P2 }), i.removeAttribute(f);
321
- } else f.startsWith(c1) && (c.push({ type: 6, index: n }), i.removeAttribute(f));
322
- if (U3.test(i.tagName)) {
323
- const f = i.textContent.split(c1), m = f.length - 1;
324
- if (m > 0) {
325
- i.textContent = x2 ? x2.emptyScript : "";
326
- for (let b = 0; b < m; b++) i.append(f[b], o2()), L1.nextNode(), c.push({ type: 2, index: ++n });
327
- i.append(f[m], o2());
318
+ if (i.hasAttributes()) for (const f of i.getAttributeNames()) if (f.endsWith(U3)) {
319
+ const b = p[l++], m = i.getAttribute(f).split(C1), V = /([.?@])?(.*)/.exec(b);
320
+ c.push({ type: 1, index: n, name: V[2], strings: m, ctor: V[1] === "." ? Ee : V[1] === "?" ? ze : V[1] === "@" ? Se : I2 }), i.removeAttribute(f);
321
+ } else f.startsWith(C1) && (c.push({ type: 6, index: n }), i.removeAttribute(f));
322
+ if (K3.test(i.tagName)) {
323
+ const f = i.textContent.split(C1), b = f.length - 1;
324
+ if (b > 0) {
325
+ i.textContent = M2 ? M2.emptyScript : "";
326
+ for (let m = 0; m < b; m++) i.append(f[m], n2()), V1.nextNode(), c.push({ type: 2, index: ++n });
327
+ i.append(f[b], n2());
328
328
  }
329
329
  }
330
- } else if (i.nodeType === 8) if (i.data === j3) c.push({ type: 2, index: n });
330
+ } else if (i.nodeType === 8) if (i.data === G3) c.push({ type: 2, index: n });
331
331
  else {
332
332
  let f = -1;
333
- for (; (f = i.data.indexOf(c1, f + 1)) !== -1; ) c.push({ type: 7, index: n }), f += c1.length - 1;
333
+ for (; (f = i.data.indexOf(C1, f + 1)) !== -1; ) c.push({ type: 7, index: n }), f += C1.length - 1;
334
334
  }
335
335
  n++;
336
336
  }
@@ -344,10 +344,10 @@ function F1(r, e, t = r, o) {
344
344
  var l, d;
345
345
  if (e === w1) return e;
346
346
  let i = o !== void 0 ? (l = t._$Co) == null ? void 0 : l[o] : t._$Cl;
347
- const n = n2(e) ? void 0 : e._$litDirective$;
347
+ const n = r2(e) ? void 0 : e._$litDirective$;
348
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 = F1(r, i._$AS(r, e.values), i, o)), e;
349
349
  }
350
- class ke {
350
+ class $e {
351
351
  constructor(e, t) {
352
352
  this._$AV = [], this._$AN = void 0, this._$AD = e, this._$AM = t;
353
353
  }
@@ -359,23 +359,23 @@ class ke {
359
359
  }
360
360
  u(e) {
361
361
  const { el: { content: t }, parts: o } = this._$AD, i = ((e == null ? void 0 : e.creationScope) ?? M1).importNode(t, !0);
362
- L1.currentNode = i;
363
- let n = L1.nextNode(), l = 0, d = 0, c = o[0];
362
+ V1.currentNode = i;
363
+ let n = V1.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 y2(n, n.nextSibling, this, e) : c.type === 1 ? C = new c.ctor(n, c.name, c.strings, this, e) : c.type === 6 && (C = new ze(n, this, e)), this._$AV.push(C), c = o[++d];
367
+ c.type === 2 ? C = new _2(n, n.nextSibling, this, e) : c.type === 1 ? C = new c.ctor(n, c.name, c.strings, this, e) : c.type === 6 && (C = new Ae(n, this, e)), this._$AV.push(C), c = o[++d];
368
368
  }
369
- l !== (c == null ? void 0 : c.index) && (n = L1.nextNode(), l++);
369
+ l !== (c == null ? void 0 : c.index) && (n = V1.nextNode(), l++);
370
370
  }
371
- return L1.currentNode = M1, i;
371
+ return V1.currentNode = M1, i;
372
372
  }
373
373
  p(e) {
374
374
  let t = 0;
375
375
  for (const o of this._$AV) o !== void 0 && (o.strings !== void 0 ? (o._$AI(e, o, t), t += o.strings.length - 2) : o._$AI(e[t])), t++;
376
376
  }
377
377
  }
378
- class y2 {
378
+ class _2 {
379
379
  get _$AU() {
380
380
  var e;
381
381
  return ((e = this._$AM) == null ? void 0 : e._$AU) ?? this._$Cv;
@@ -395,7 +395,7 @@ class y2 {
395
395
  return this._$AB;
396
396
  }
397
397
  _$AI(e, t = this) {
398
- e = F1(this, e, t), n2(e) ? e === u || e == null || e === "" ? (this._$AH !== u && this._$AR(), this._$AH = u) : e !== this._$AH && e !== w1 && this._(e) : e._$litType$ !== void 0 ? this.$(e) : e.nodeType !== void 0 ? this.T(e) : we(e) ? this.k(e) : this._(e);
398
+ e = F1(this, e, t), r2(e) ? e === u || e == null || e === "" ? (this._$AH !== u && this._$AR(), this._$AH = u) : e !== this._$AH && e !== w1 && this._(e) : e._$litType$ !== void 0 ? this.$(e) : e.nodeType !== void 0 ? this.T(e) : ke(e) ? this.k(e) : this._(e);
399
399
  }
400
400
  O(e) {
401
401
  return this._$AA.parentNode.insertBefore(e, this._$AB);
@@ -404,33 +404,33 @@ class y2 {
404
404
  this._$AH !== e && (this._$AR(), this._$AH = this.O(e));
405
405
  }
406
406
  _(e) {
407
- this._$AH !== u && n2(this._$AH) ? this._$AA.nextSibling.data = e : this.T(M1.createTextNode(e)), this._$AH = e;
407
+ this._$AH !== u && r2(this._$AH) ? this._$AA.nextSibling.data = e : this.T(M1.createTextNode(e)), this._$AH = e;
408
408
  }
409
409
  $(e) {
410
410
  var n;
411
- const { values: t, _$litType$: o } = e, i = typeof o == "number" ? this._$AC(e) : (o.el === void 0 && (o.el = r2.createElement(K3(o.h, o.h[0]), this.options)), o);
411
+ const { values: t, _$litType$: o } = e, i = typeof o == "number" ? this._$AC(e) : (o.el === void 0 && (o.el = l2.createElement(Y3(o.h, o.h[0]), this.options)), o);
412
412
  if (((n = this._$AH) == null ? void 0 : n._$AD) === i) this._$AH.p(t);
413
413
  else {
414
- const l = new ke(i, this), d = l.u(this.options);
414
+ const l = new $e(i, this), d = l.u(this.options);
415
415
  l.p(t), this.T(d), this._$AH = l;
416
416
  }
417
417
  }
418
418
  _$AC(e) {
419
- let t = H3.get(e.strings);
420
- return t === void 0 && H3.set(e.strings, t = new r2(e)), t;
419
+ let t = _3.get(e.strings);
420
+ return t === void 0 && _3.set(e.strings, t = new l2(e)), t;
421
421
  }
422
422
  k(e) {
423
- A5(this._$AH) || (this._$AH = [], this._$AR());
423
+ F5(this._$AH) || (this._$AH = [], this._$AR());
424
424
  const t = this._$AH;
425
425
  let o, i = 0;
426
- for (const n of e) i === t.length ? t.push(o = new y2(this.O(o2()), this.O(o2()), this, this.options)) : o = t[i], o._$AI(n), i++;
426
+ for (const n of e) i === t.length ? t.push(o = new _2(this.O(n2()), this.O(n2()), 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) {
430
430
  var o;
431
431
  for ((o = this._$AP) == null ? void 0 : o.call(this, !1, !0, t); e !== this._$AB; ) {
432
- const i = h3(e).nextSibling;
433
- h3(e).remove(), e = i;
432
+ const i = f3(e).nextSibling;
433
+ f3(e).remove(), e = i;
434
434
  }
435
435
  }
436
436
  setConnected(e) {
@@ -438,7 +438,7 @@ class y2 {
438
438
  this._$AM === void 0 && (this._$Cv = e, (t = this._$AP) == null || t.call(this, e));
439
439
  }
440
440
  }
441
- class P2 {
441
+ class I2 {
442
442
  get tagName() {
443
443
  return this.element.tagName;
444
444
  }
@@ -451,11 +451,11 @@ class P2 {
451
451
  _$AI(e, t = this, o, i) {
452
452
  const n = this.strings;
453
453
  let l = !1;
454
- if (n === void 0) e = F1(this, e, t, 0), l = !n2(e) || e !== this._$AH && e !== w1, l && (this._$AH = e);
454
+ if (n === void 0) e = F1(this, e, t, 0), l = !r2(e) || e !== this._$AH && e !== w1, l && (this._$AH = e);
455
455
  else {
456
456
  const d = e;
457
457
  let c, C;
458
- for (e = n[0], c = 0; c < n.length - 1; c++) C = F1(this, d[o + c], t, c), C === w1 && (C = this._$AH[c]), l || (l = !n2(C) || C !== this._$AH[c]), C === u ? e = u : e !== u && (e += (C ?? "") + n[c + 1]), this._$AH[c] = C;
458
+ for (e = n[0], c = 0; c < n.length - 1; c++) C = F1(this, d[o + c], t, c), C === w1 && (C = this._$AH[c]), l || (l = !r2(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
  }
@@ -463,7 +463,7 @@ class P2 {
463
463
  e === u ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, e ?? "");
464
464
  }
465
465
  }
466
- class Re extends P2 {
466
+ class Ee extends I2 {
467
467
  constructor() {
468
468
  super(...arguments), this.type = 3;
469
469
  }
@@ -471,7 +471,7 @@ class Re extends P2 {
471
471
  this.element[this.name] = e === u ? void 0 : e;
472
472
  }
473
473
  }
474
- class $e extends P2 {
474
+ class ze extends I2 {
475
475
  constructor() {
476
476
  super(...arguments), this.type = 4;
477
477
  }
@@ -479,7 +479,7 @@ class $e extends P2 {
479
479
  this.element.toggleAttribute(this.name, !!e && e !== u);
480
480
  }
481
481
  }
482
- class Ee extends P2 {
482
+ class Se extends I2 {
483
483
  constructor(e, t, o, i, n) {
484
484
  super(e, t, o, i, n), this.type = 5;
485
485
  }
@@ -493,7 +493,7 @@ class Ee extends P2 {
493
493
  typeof this._$AH == "function" ? this._$AH.call(((t = this.options) == null ? void 0 : t.host) ?? this.element, e) : this._$AH.handleEvent(e);
494
494
  }
495
495
  }
496
- class ze {
496
+ class Ae {
497
497
  constructor(e, t, o) {
498
498
  this.element = e, this.type = 6, this._$AN = void 0, this._$AM = t, this.options = o;
499
499
  }
@@ -504,14 +504,14 @@ class ze {
504
504
  F1(this, e);
505
505
  }
506
506
  }
507
- const T2 = t2.litHtmlPolyfillSupport;
508
- T2 == null || T2(r2, y2), (t2.litHtmlVersions ?? (t2.litHtmlVersions = [])).push("3.3.2");
509
- const Se = (r, e, t) => {
507
+ const U2 = i2.litHtmlPolyfillSupport;
508
+ U2 == null || U2(l2, _2), (i2.litHtmlVersions ?? (i2.litHtmlVersions = [])).push("3.3.2");
509
+ const De = (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
513
  const n = (t == null ? void 0 : t.renderBefore) ?? null;
514
- o._$litPart$ = i = new y2(e.insertBefore(o2(), n), n, void 0, t ?? {});
514
+ o._$litPart$ = i = new _2(e.insertBefore(n2(), n), n, void 0, t ?? {});
515
515
  }
516
516
  return i._$AI(r), i;
517
517
  };
@@ -532,7 +532,7 @@ let h = class extends B1 {
532
532
  }
533
533
  update(e) {
534
534
  const t = this.render();
535
- this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this._$Do = Se(t, this.renderRoot, this.renderOptions);
535
+ this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this._$Do = De(t, this.renderRoot, this.renderOptions);
536
536
  }
537
537
  connectedCallback() {
538
538
  var e;
@@ -546,17 +546,17 @@ let h = class extends B1 {
546
546
  return w1;
547
547
  }
548
548
  };
549
- var I3;
550
- h._$litElement$ = !0, h.finalized = !0, (I3 = x1.litElementHydrateSupport) == null || I3.call(x1, { LitElement: h });
551
- const N2 = x1.litElementPolyfillSupport;
552
- N2 == null || N2({ LitElement: h });
549
+ var N3;
550
+ h._$litElement$ = !0, h.finalized = !0, (N3 = x1.litElementHydrateSupport) == null || N3.call(x1, { LitElement: h });
551
+ const G2 = x1.litElementPolyfillSupport;
552
+ G2 == null || G2({ LitElement: h });
553
553
  (x1.litElementVersions ?? (x1.litElementVersions = [])).push("4.2.2");
554
554
  /**
555
555
  * @license
556
556
  * Copyright 2017 Google LLC
557
557
  * SPDX-License-Identifier: BSD-3-Clause
558
558
  */
559
- const Ae = { attribute: !0, type: String, converter: L2, reflect: !1, hasChanged: S5 }, De = (r = Ae, e, t) => {
559
+ const Be = { attribute: !0, type: String, converter: x2, reflect: !1, hasChanged: P5 }, Pe = (r = Be, e, t) => {
560
560
  const { kind: o, metadata: i } = t;
561
561
  let n = globalThis.litPropertyMetadata.get(i);
562
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") {
@@ -578,7 +578,7 @@ const Ae = { attribute: !0, type: String, converter: L2, reflect: !1, hasChanged
578
578
  throw Error("Unsupported decorator location: " + o);
579
579
  };
580
580
  function a(r) {
581
- return (e, t) => typeof t == "object" ? De(r, e, t) : ((o, i, n) => {
581
+ return (e, t) => typeof t == "object" ? Pe(r, e, t) : ((o, i, n) => {
582
582
  const l = i.hasOwnProperty(n);
583
583
  return i.constructor.createProperty(n, o), l ? Object.getOwnPropertyDescriptor(i, n) : void 0;
584
584
  })(r, e, t);
@@ -596,7 +596,7 @@ function H(r) {
596
596
  * Copyright 2017 Google LLC
597
597
  * SPDX-License-Identifier: BSD-3-Clause
598
598
  */
599
- const Be = (r, e, t) => (t.configurable = !0, t.enumerable = !0, Reflect.decorate && typeof e != "object" && Object.defineProperty(r, e, t), t);
599
+ const Fe = (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
@@ -608,17 +608,17 @@ function z(r, e) {
608
608
  var d;
609
609
  return ((d = l.renderRoot) == null ? void 0 : d.querySelector(r)) ?? null;
610
610
  };
611
- return Be(t, o, { get() {
611
+ return Fe(t, o, { get() {
612
612
  return n(this);
613
613
  } });
614
614
  };
615
615
  }
616
- var Pe = Object.defineProperty, W3 = (r, e, t, o) => {
616
+ var Oe = Object.defineProperty, q3 = (r, e, t, o) => {
617
617
  for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
618
618
  (l = r[n]) && (i = l(e, t, i) || i);
619
- return i && Pe(e, t, i), i;
619
+ return i && Oe(e, t, i), i;
620
620
  };
621
- const F5 = class F5 extends h {
621
+ const N5 = class N5 extends h {
622
622
  constructor() {
623
623
  super(...arguments), this.size = "medium", this.percent = "";
624
624
  }
@@ -641,7 +641,7 @@ const F5 = class F5 extends h {
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
643
  const n = t / 2, l = t + e, d = e / 2, c = Math.PI * e;
644
- return M2`
644
+ return w2`
645
645
  <svg
646
646
  class=${o ? "spinner" : ""}
647
647
  width="${e}px"
@@ -675,31 +675,31 @@ const F5 = class F5 extends h {
675
675
  `;
676
676
  }
677
677
  };
678
- F5.styles = g`
678
+ N5.styles = g`
679
679
  :host { display: inline-block; line-height: 0; font-family: var(--font-sans); }
680
680
  .spinner { animation: circle 0.6s linear infinite; }
681
681
  @keyframes circle { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
682
682
  `;
683
- let l2 = F5;
684
- W3([
683
+ let a2 = N5;
684
+ q3([
685
685
  a()
686
- ], l2.prototype, "size");
687
- W3([
686
+ ], a2.prototype, "size");
687
+ q3([
688
688
  a()
689
- ], l2.prototype, "percent");
690
- customElements.get("anduin-spinner") || customElements.define("anduin-spinner", l2);
691
- var Fe = Object.defineProperty, Y3 = (r, e, t, o) => {
689
+ ], a2.prototype, "percent");
690
+ customElements.get("anduin-spinner") || customElements.define("anduin-spinner", a2);
691
+ var Ie = Object.defineProperty, X3 = (r, e, t, o) => {
692
692
  for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
693
693
  (l = r[n]) && (i = l(e, t, i) || i);
694
- return i && Fe(e, t, i), i;
694
+ return i && Ie(e, t, i), i;
695
695
  };
696
- const y3 = "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", Oe = { small: 16, medium: 24, large: 32 }, O5 = class O5 extends h {
696
+ const L3 = "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", Te = { small: 16, medium: 24, large: 32 }, j5 = class j5 extends h {
697
697
  constructor() {
698
698
  super(...arguments), this.size = "small", this.color = "default";
699
699
  }
700
700
  render() {
701
- const e = Oe[this.size] ?? 16;
702
- return M2`
701
+ const e = Te[this.size] ?? 16;
702
+ return w2`
703
703
  <svg
704
704
  xmlns="http://www.w3.org/2000/svg"
705
705
  width="${e}"
@@ -708,13 +708,13 @@ const y3 = "M7.23359 3.5336C7.49685 2.82213 8.50314 2.82213 8.76641 3.5336L9.635
708
708
  fill="currentColor"
709
709
  overflow="visible"
710
710
  >
711
- <path class="star" d="${y3}"/>
712
- <path class="star star-2" d="${y3}"/>
711
+ <path class="star" d="${L3}"/>
712
+ <path class="star star-2" d="${L3}"/>
713
713
  </svg>
714
714
  `;
715
715
  }
716
716
  };
717
- O5.styles = g`
717
+ j5.styles = g`
718
718
  :host { display: inline-block; line-height: 0; }
719
719
 
720
720
  /* ── Colors ─────────────────────────────────────────────────── */
@@ -753,15 +753,15 @@ O5.styles = g`
753
753
  100% { transform: translate(12px, 12px) scale(0.5); opacity: 0; }
754
754
  }
755
755
  `;
756
- let a2 = O5;
757
- Y3([
756
+ let s2 = j5;
757
+ X3([
758
758
  a({ reflect: !0 })
759
- ], a2.prototype, "size");
760
- Y3([
759
+ ], s2.prototype, "size");
760
+ X3([
761
761
  a({ reflect: !0 })
762
- ], a2.prototype, "color");
763
- customElements.get("anduin-sparkle-spinner") || customElements.define("anduin-sparkle-spinner", a2);
764
- const _3 = {
762
+ ], s2.prototype, "color");
763
+ customElements.get("anduin-sparkle-spinner") || customElements.define("anduin-sparkle-spinner", s2);
764
+ const V3 = {
765
765
  access: [{ d: "M13 2.5H3C2.72386 2.5 2.5 2.72386 2.5 3V5.75H1V3C1 1.89543 1.89543 1 3 1H13C14.1046 1 15 1.89543 15 3V13C15 14.1046 14.1046 15 13 15H3C1.89543 15 1 14.1046 1 13V10.25H2.5V13C2.5 13.2761 2.72386 13.5 3 13.5H13C13.2761 13.5 13.5 13.2761 13.5 13V3C13.5 2.72386 13.2761 2.5 13 2.5ZM7.53033 4.21979C7.23744 3.9269 6.76256 3.9269 6.46967 4.21979C6.17678 4.51269 6.17678 4.98756 6.46967 5.28045L8.43922 7.25L0.75 7.25C0.335786 7.25 0 7.58579 0 8C0 8.41421 0.335786 8.75 0.75 8.75L8.43946 8.75L6.46967 10.7198C6.17678 11.0127 6.17678 11.4876 6.46967 11.7805C6.76256 12.0733 7.23744 12.0733 7.53033 11.7805L10.7803 8.53044C11.0732 8.23755 11.0732 7.76268 10.7803 7.46978L7.53033 4.21979Z", fillRule: "evenodd", clipRule: "evenodd" }],
766
766
  alignCenter: [{ d: "M2 1C1.44772 1 1 1.44772 1 2C1 2.55228 1.44772 3 2 3H14C14.5523 3 15 2.55228 15 2C15 1.44772 14.5523 1 14 1H2ZM2 9C1.44772 9 1 9.44771 1 10C1 10.5523 1.44772 11 2 11H14C14.5523 11 15 10.5523 15 10C15 9.44771 14.5523 9 14 9H2ZM4 6C4 5.44772 4.44772 5 5 5H11C11.5523 5 12 5.44772 12 6C12 6.55228 11.5523 7 11 7H5C4.44772 7 4 6.55228 4 6ZM5 13C4.44772 13 4 13.4477 4 14C4 14.5523 4.44772 15 5 15H11C11.5523 15 12 14.5523 12 14C12 13.4477 11.5523 13 11 13H5Z", fillRule: "evenodd", clipRule: "evenodd" }],
767
767
  alignJustify: [{ d: "M2 1C1.44772 1 1 1.44772 1 2C1 2.55228 1.44772 3 2 3H14C14.5523 3 15 2.55228 15 2C15 1.44772 14.5523 1 14 1H2ZM2 9C1.44772 9 1 9.44771 1 10C1 10.5523 1.44772 11 2 11H14C14.5523 11 15 10.5523 15 10C15 9.44771 14.5523 9 14 9H2ZM1 6C1 5.44772 1.44772 5 2 5H14C14.5523 5 15 5.44772 15 6C15 6.55228 14.5523 7 14 7H2C1.44772 7 1 6.55228 1 6ZM2 13C1.44772 13 1 13.4477 1 14C1 14.5523 1.44772 15 2 15H14C14.5523 15 15 14.5523 15 14C15 13.4477 14.5523 13 14 13H2Z", fillRule: "evenodd", clipRule: "evenodd" }],
@@ -1079,6 +1079,10 @@ const _3 = {
1079
1079
  textColor: [{ d: "M8.01619 0.999024C8.31193 0.999419 8.57983 1.17357 8.70023 1.44369L12.935 10.9447C13.1037 11.323 12.9337 11.7664 12.5553 11.935C12.177 12.1037 11.7336 11.9337 11.565 11.5553L10.2042 8.50228H5.80562L4.43422 11.5572C4.26458 11.935 3.82073 12.1039 3.44284 11.9342C3.06496 11.7646 2.89615 11.3207 3.06579 10.9428L7.33098 1.44186C7.4521 1.17207 7.72046 0.998631 8.01619 0.999024ZM8.01275 3.58577L9.53557 7.00228H6.479L8.01275 3.58577ZM2 13.0115C1.44772 13.0115 1 13.4592 1 14.0115V15C1 15.5523 1.44772 16 2 16H14C14.5523 16 15 15.5523 15 15V14.0115C15 13.4592 14.5523 13.0115 14 13.0115H2Z", fillRule: "evenodd", clipRule: "evenodd" }],
1080
1080
  textStyle: [{ d: "M8.91058 1.61448C8.75496 1.24202 8.39068 0.999654 7.98702 1C7.58337 1.00035 7.2195 1.24334 7.06452 1.61606L2.07663 13.6119C1.86458 14.1218 2.10609 14.7071 2.61605 14.9191C3.12601 15.1312 3.7113 14.8897 3.92335 14.3797L5.32865 11H10.6645L12.0773 14.3813C12.2902 14.8909 12.8759 15.1314 13.3855 14.9185C13.8951 14.7056 14.1356 14.1199 13.9227 13.6103L8.91058 1.61448ZM9.82886 9L7.99012 4.59922L6.16026 9H9.82886Z", fillRule: "evenodd", clipRule: "evenodd" }],
1081
1081
  textarea: [{ d: "M4 5H3.5C3.22386 5 3 4.77614 3 4.5C3 4.22386 3.22386 4 3.5 4H5.5C5.77614 4 6 4.22386 6 4.5C6 4.77614 5.77614 5 5.5 5H5V8H5.5C5.77614 8 6 8.22386 6 8.5C6 8.77614 5.77614 9 5.5 9H3.5C3.22386 9 3 8.77614 3 8.5C3 8.22386 3.22386 8 3.5 8H4V5Z", fillRule: "", clipRule: "" }, { d: "M10 12H13V9L10 12Z", fillRule: "", clipRule: "" }, { d: "M2 1C0.895431 1 0 1.89543 0 3V13C0 14.1046 0.895431 15 2 15H14C15.1046 15 16 14.1046 16 13V3C16 1.89543 15.1046 1 14 1H2ZM14 2.5H2C1.72386 2.5 1.5 2.72386 1.5 3V13C1.5 13.2761 1.72386 13.5 2 13.5H14C14.2761 13.5 14.5 13.2761 14.5 13V3C14.5 2.72386 14.2761 2.5 14 2.5Z", fillRule: "evenodd", clipRule: "evenodd" }],
1082
+ thumbDown: [{ d: "M4 2.42188C4 1.91274 3.58726 1.5 3.07812 1.5C2.52673 1.50009 1.99804 1.71929 1.6084 2.10938C1.21872 2.49951 1 3.02872 1 3.58008L1.00977 8.49805C1.01027 9.04873 1.22892 9.5771 1.61816 9.9668C2.00782 10.3568 2.53651 10.5761 3.08789 10.5762C3.59163 10.5762 4 10.1678 4 9.66406V2.42188Z", fillRule: "", clipRule: "" }, { d: "M8.20215 15.4961C8.92329 15.4961 9.62486 15.2195 10.1455 14.6982C10.6606 14.1825 10.9502 13.4829 10.9502 12.7539V12.5039C10.9502 12.4427 10.9426 12.3816 10.9277 12.3223L10.4912 10.5762H13.416C13.7396 10.577 14.0591 10.5018 14.3486 10.3574C14.639 10.2126 14.8917 10.002 15.0859 9.74219C15.2802 9.48237 15.4109 9.18067 15.4678 8.86133C15.5247 8.54187 15.5057 8.21333 15.4131 7.90234L15.4092 7.88867L13.8516 2.98242C13.7241 2.55695 13.4639 2.18297 13.1084 1.91602C12.748 1.6454 12.3091 1.50048 11.8584 1.50098L6.00014 1.50014C5.4478 1.50006 5 1.9478 5 2.50014V10.6533C5.00631 10.6569 5.01335 10.6592 5.01953 10.6631C5.11089 10.72 5.18457 10.8017 5.23242 10.8984L5.24707 10.9277L7.54492 15.1074L7.59961 15.1934C7.73986 15.3823 7.96287 15.4961 8.20215 15.4961Z", fillRule: "", clipRule: "" }],
1083
+ thumbDownLine: [{ d: "M8.20215 15.4961C8.92329 15.4961 9.62486 15.2195 10.1455 14.6982C10.6606 14.1825 10.9502 13.4829 10.9502 12.7539V12.5039C10.9502 12.4427 10.9426 12.3816 10.9277 12.3223L10.4912 10.5762H13.416C13.7396 10.577 14.0591 10.5018 14.3486 10.3574C14.639 10.2126 14.8917 10.002 15.0859 9.74219C15.2802 9.48237 15.4109 9.18067 15.4678 8.86133C15.5247 8.54187 15.5057 8.21333 15.4131 7.90234L15.4092 7.88867L13.8516 2.98242C13.7241 2.55695 13.4639 2.18297 13.1084 1.91602C12.748 1.6454 12.3091 1.50048 11.8584 1.50098L3.07812 1.5C2.52673 1.50009 1.99804 1.71929 1.6084 2.10938C1.21872 2.49951 1 3.02872 1 3.58008L1.00977 8.49805C1.01027 9.04873 1.22892 9.5771 1.61816 9.9668C2.00782 10.3568 2.53651 10.5761 3.08789 10.5762H4.71484C4.82235 10.5763 4.92812 10.6062 5.01953 10.6631C5.11089 10.72 5.18457 10.8017 5.23242 10.8984L5.24707 10.9277L7.54492 15.1074L7.59961 15.1934C7.73986 15.3823 7.96287 15.4961 8.20215 15.4961ZM6.57617 10.2344C6.40464 9.88744 6.1401 9.59421 5.81152 9.38965C5.71216 9.32783 5.60748 9.27637 5.5 9.23242V3H11.8594C11.9845 2.99976 12.1067 3.04004 12.207 3.11523C12.3074 3.19058 12.381 3.29707 12.416 3.41797L12.4219 3.43652L13.9756 8.33203C14.001 8.41827 14.0069 8.50909 13.9912 8.59766C13.9753 8.68676 13.9388 8.77136 13.8848 8.84375C13.8306 8.91622 13.7595 8.97535 13.6787 9.01562C13.598 9.05578 13.509 9.07654 13.4189 9.07617H9.53027C9.29952 9.07625 9.08154 9.18243 8.93945 9.36426C8.79736 9.54623 8.74682 9.78382 8.80273 10.0078L9.4502 12.5996V12.7539C9.4502 13.0857 9.31807 13.4043 9.08398 13.6387C8.95078 13.772 8.78775 13.87 8.6084 13.9297L6.57617 10.2344ZM3.08789 9.07617C2.93484 9.0761 2.78817 9.01486 2.67969 8.90625C2.57112 8.79755 2.50977 8.65018 2.50977 8.49609L2.5 3.57812C2.50046 3.42472 2.56184 3.2782 2.66992 3.16992C2.77839 3.06133 2.92511 3.00009 3.07812 3H4V9.07617H3.08789Z", fillRule: "evenodd", clipRule: "evenodd" }],
1084
+ thumbUp: [{ d: "M4 13.5742C4 14.0834 3.58726 14.4961 3.07812 14.4961C2.52673 14.496 1.99804 14.2768 1.6084 13.8867C1.21872 13.4966 1 12.9674 1 12.416L1.00977 7.49805C1.01027 6.94736 1.22892 6.41899 1.61816 6.0293C2.00782 5.63925 2.53651 5.42 3.08789 5.41992C3.59163 5.41992 4 5.82829 4 6.33203V13.5742Z", fillRule: "", clipRule: "" }, { d: "M8.20215 0.5C8.92329 0.500026 9.62486 0.776604 10.1455 1.29785C10.6606 1.81363 10.9502 2.51321 10.9502 3.24219V3.49219C10.9502 3.55339 10.9426 3.61445 10.9277 3.67383L10.4912 5.41992H13.416C13.7396 5.41906 14.0591 5.49429 14.3486 5.63867C14.639 5.78349 14.8917 5.99408 15.0859 6.25391C15.2802 6.51372 15.4109 6.81543 15.4678 7.13477C15.5247 7.45422 15.5057 7.78276 15.4131 8.09375L15.4092 8.10742L13.8516 13.0137C13.7241 13.4391 13.4639 13.8131 13.1084 14.0801C12.748 14.3507 12.3091 14.4956 11.8584 14.4951L6.00014 14.496C5.4478 14.496 5 14.0483 5 13.496V5.34277C5.00631 5.33917 5.01335 5.33685 5.01953 5.33301C5.11089 5.27611 5.18457 5.19442 5.23242 5.09766L5.24707 5.06836L7.54492 0.888672L7.59961 0.802734C7.73986 0.613767 7.96287 0.5 8.20215 0.5Z", fillRule: "", clipRule: "" }],
1085
+ thumbUpLine: [{ d: "M8.20215 0.5C8.92329 0.500026 9.62486 0.776604 10.1455 1.29785C10.6606 1.81363 10.9502 2.51321 10.9502 3.24219V3.49219C10.9502 3.55339 10.9426 3.61445 10.9277 3.67383L10.4912 5.41992H13.416C13.7396 5.41906 14.0591 5.49429 14.3486 5.63867C14.639 5.78349 14.8917 5.99408 15.0859 6.25391C15.2802 6.51372 15.4109 6.81543 15.4678 7.13477C15.5247 7.45422 15.5057 7.78276 15.4131 8.09375L15.4092 8.10742L13.8516 13.0137C13.7241 13.4391 13.4639 13.8131 13.1084 14.0801C12.748 14.3507 12.3091 14.4956 11.8584 14.4951L3.07812 14.4961C2.52673 14.496 1.99804 14.2768 1.6084 13.8867C1.21872 13.4966 1 12.9674 1 12.416L1.00977 7.49805C1.01027 6.94736 1.22892 6.41899 1.61816 6.0293C2.00782 5.63925 2.53651 5.42 3.08789 5.41992H4.71484C4.82235 5.41976 4.92812 5.38992 5.01953 5.33301C5.11089 5.27611 5.18457 5.19442 5.23242 5.09766L5.24707 5.06836L7.54492 0.888672L7.59961 0.802734C7.73986 0.613767 7.96287 0.5 8.20215 0.5ZM6.57617 5.76172C6.40464 6.10865 6.1401 6.40189 5.81152 6.60645C5.71216 6.66827 5.60748 6.71972 5.5 6.76367V12.9961H11.8594C11.9845 12.9963 12.1067 12.9561 12.207 12.8809C12.3074 12.8055 12.381 12.699 12.416 12.5781L12.4219 12.5596L13.9756 7.66406C14.001 7.57782 14.0069 7.487 13.9912 7.39844C13.9753 7.30933 13.9388 7.22473 13.8848 7.15234C13.8306 7.07987 13.7595 7.02074 13.6787 6.98047C13.598 6.94032 13.509 6.91955 13.4189 6.91992H9.53027C9.29952 6.91984 9.08154 6.81366 8.93945 6.63184C8.79736 6.44987 8.74682 6.21227 8.80273 5.98828L9.4502 3.39648V3.24219C9.4502 2.91039 9.31807 2.59177 9.08398 2.35742C8.95078 2.22412 8.78775 2.12612 8.6084 2.06641L6.57617 5.76172ZM3.08789 6.91992C2.93484 6.92 2.78817 6.98123 2.67969 7.08984C2.57112 7.19855 2.50977 7.34591 2.50977 7.5L2.5 12.418C2.50046 12.5714 2.56184 12.7179 2.66992 12.8262C2.77839 12.9348 2.92511 12.996 3.07812 12.9961H4V6.91992H3.08789Z", fillRule: "evenodd", clipRule: "evenodd" }],
1082
1086
  toolbox: [{ d: "M4.00195 2.75195V4H3C1.89543 4 1 4.89543 1 6V7.49457H4V7.25C4 6.83579 4.33579 6.5 4.75 6.5C5.16421 6.5 5.5 6.83579 5.5 7.25V7.49457H10.5V7.25C10.5 6.83579 10.8358 6.5 11.25 6.5C11.6642 6.5 12 6.83579 12 7.25V7.49457H15V6C15 4.89543 14.1046 4 13 4H11.998V2.75195C11.998 1.78546 11.2145 1.00195 10.248 1.00195H5.75195C4.78546 1.00195 4.00195 1.78545 4.00195 2.75195ZM5.75195 2.50195C5.61388 2.50195 5.50195 2.61388 5.50195 2.75195V4H10.498V2.75195C10.498 2.61388 10.3861 2.50195 10.248 2.50195H5.75195ZM15 8.99457H12V9.25C12 9.66421 11.6642 10 11.25 10C10.8358 10 10.5 9.66421 10.5 9.25V8.99457H5.5V9.25C5.5 9.66421 5.16421 10 4.75 10C4.33579 10 4 9.66421 4 9.25V8.99457H1V12C1 13.1046 1.89543 14 3 14H13C14.1046 14 15 13.1046 15 12V8.99457Z", fillRule: "evenodd", clipRule: "evenodd" }],
1083
1087
  trash: [{ d: "M6 1C5.44772 1 5 1.44772 5 2V3H3C2.44772 3 2 3.44772 2 4C2 4.55228 2.44772 5 3 5L3 13C3 14.1046 3.89543 15 5 15H11C12.1046 15 13 14.1046 13 13V5C13.5523 5 14 4.55228 14 4C14 3.44772 13.5523 3 13 3H11V2C11 1.44772 10.5523 1 10 1H6ZM5.5 7.75C5.5 7.33579 5.83579 7 6.25 7C6.66421 7 7 7.33579 7 7.75V11.25C7 11.6642 6.66421 12 6.25 12C5.83579 12 5.5 11.6642 5.5 11.25V7.75ZM9.75 7C9.33579 7 9 7.33579 9 7.75V11.25C9 11.6642 9.33579 12 9.75 12C10.1642 12 10.5 11.6642 10.5 11.25V7.75C10.5 7.33579 10.1642 7 9.75 7Z", fillRule: "evenodd", clipRule: "evenodd" }],
1084
1088
  treeArrow: [{ d: "M9.2195 14.7198C8.9267 15.0128 8.92685 15.4877 9.21984 15.7805C9.51283 16.0733 9.9877 16.0731 10.2805 15.7802L14.7805 11.2773C14.9211 11.1366 15.0001 10.9458 15 10.7469C14.9999 10.5479 14.9209 10.3572 14.7802 10.2166L10.2802 5.7195C9.98717 5.4267 9.5123 5.42685 9.2195 5.71984C8.9267 6.01283 8.92685 6.4877 9.21984 6.7805L12.4414 10L6.75 10C4.95507 10 3.5 8.54492 3.5 6.75L3.5 3.75C3.5 3.33578 3.16421 3 2.75 3C2.33579 3 2 3.33578 2 3.75L2 6.75C2 9.37335 4.12664 11.5 6.75 11.5L12.4373 11.5L9.2195 14.7198Z", fillRule: "", clipRule: "" }],
@@ -1118,18 +1122,18 @@ const _3 = {
1118
1122
  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" }],
1119
1123
  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" }]
1120
1124
  };
1121
- var Ie = Object.defineProperty, q3 = (r, e, t, o) => {
1125
+ var Ne = Object.defineProperty, J3 = (r, e, t, o) => {
1122
1126
  for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
1123
1127
  (l = r[n]) && (i = l(e, t, i) || i);
1124
- return i && Ie(e, t, i), i;
1128
+ return i && Ne(e, t, i), i;
1125
1129
  };
1126
- const I5 = class I5 extends h {
1130
+ const U5 = class U5 extends h {
1127
1131
  constructor() {
1128
1132
  super(...arguments), this.name = "", this.size = 16;
1129
1133
  }
1130
1134
  render() {
1131
- const e = this.name && _3[this.name] ? _3[this.name] : [], t = !this.name;
1132
- return M2`
1135
+ const e = this.name && V3[this.name] ? V3[this.name] : [], t = !this.name;
1136
+ return w2`
1133
1137
  <svg
1134
1138
  class=${t ? "icon--hidden" : ""}
1135
1139
  xmlns="http://www.w3.org/2000/svg"
@@ -1139,7 +1143,7 @@ const I5 = class I5 extends h {
1139
1143
  viewBox="0 0 16 16"
1140
1144
  >
1141
1145
  ${e.map(
1142
- (o) => M2`
1146
+ (o) => w2`
1143
1147
  <path
1144
1148
  fill="currentColor"
1145
1149
  d="${o.d}"
@@ -1151,24 +1155,24 @@ const I5 = class I5 extends h {
1151
1155
  `;
1152
1156
  }
1153
1157
  };
1154
- I5.styles = g`
1158
+ U5.styles = g`
1155
1159
  :host { display: block; line-height: 0; font-family: var(--font-sans); }
1156
1160
  .icon--hidden { display: none; }
1157
1161
  `;
1158
- let s2 = I5;
1159
- q3([
1162
+ let d2 = U5;
1163
+ J3([
1160
1164
  a()
1161
- ], s2.prototype, "name");
1162
- q3([
1165
+ ], d2.prototype, "name");
1166
+ J3([
1163
1167
  a({ type: Number })
1164
- ], s2.prototype, "size");
1165
- customElements.get("anduin-icon") || customElements.define("anduin-icon", s2);
1166
- var Te = Object.defineProperty, Ne = (r, e, t, o) => {
1168
+ ], d2.prototype, "size");
1169
+ customElements.get("anduin-icon") || customElements.define("anduin-icon", d2);
1170
+ var je = Object.defineProperty, Ue = (r, e, t, o) => {
1167
1171
  for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
1168
1172
  (l = r[n]) && (i = l(e, t, i) || i);
1169
- return i && Te(e, t, i), i;
1173
+ return i && je(e, t, i), i;
1170
1174
  };
1171
- const X3 = g`
1175
+ const Q3 = g`
1172
1176
  :host { display: inline-block; font-family: var(--font-sans); }
1173
1177
  .badge {
1174
1178
  border-radius: 9999px;
@@ -1195,7 +1199,7 @@ const X3 = g`
1195
1199
  .badge--bold-warning { background-color: var(--color-semantic-warning-3); color: var(--color-semantic-gray-8); }
1196
1200
  .badge--hidden { display: none; }
1197
1201
  `;
1198
- function J3(r) {
1202
+ function ee(r) {
1199
1203
  return {
1200
1204
  gray: "badge--light-gray",
1201
1205
  primary: "badge--light-primary",
@@ -1209,27 +1213,27 @@ function J3(r) {
1209
1213
  boldDanger: "badge--bold-danger"
1210
1214
  }[r || "gray"] || "badge--light-gray";
1211
1215
  }
1212
- const T5 = class T5 extends h {
1216
+ const G5 = class G5 extends h {
1213
1217
  constructor() {
1214
1218
  super(...arguments), this.variant = "gray";
1215
1219
  }
1216
1220
  render() {
1217
- const e = J3(this.variant);
1221
+ const e = ee(this.variant);
1218
1222
  return s`<div class="badge ${e}" part="badge"><slot></slot></div>`;
1219
1223
  }
1220
1224
  };
1221
- T5.styles = [X3];
1222
- let w2 = T5;
1223
- Ne([
1225
+ G5.styles = [Q3];
1226
+ let Z2 = G5;
1227
+ Ue([
1224
1228
  a()
1225
- ], w2.prototype, "variant");
1226
- customElements.get("anduin-badge") || customElements.define("anduin-badge", w2);
1227
- var je = Object.defineProperty, Q3 = (r, e, t, o) => {
1229
+ ], Z2.prototype, "variant");
1230
+ customElements.get("anduin-badge") || customElements.define("anduin-badge", Z2);
1231
+ var Ge = Object.defineProperty, te = (r, e, t, o) => {
1228
1232
  for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
1229
1233
  (l = r[n]) && (i = l(e, t, i) || i);
1230
- return i && je(e, t, i), i;
1234
+ return i && Ge(e, t, i), i;
1231
1235
  };
1232
- const N5 = class N5 extends h {
1236
+ const K5 = class K5 extends h {
1233
1237
  constructor() {
1234
1238
  super(...arguments), this.variant = "gray", this.count = 0;
1235
1239
  }
@@ -1237,7 +1241,7 @@ const N5 = class N5 extends h {
1237
1241
  return e > 99 ? "99+" : e.toString();
1238
1242
  }
1239
1243
  render() {
1240
- const e = J3(this.variant), t = this.count === 0, o = this.count > 0 && this.count < 10, i = [
1244
+ const e = ee(this.variant), t = this.count === 0, o = this.count > 0 && this.count < 10, i = [
1241
1245
  "badge",
1242
1246
  e,
1243
1247
  t ? "badge--hidden" : "",
@@ -1246,24 +1250,24 @@ const N5 = class N5 extends h {
1246
1250
  return s`<div class="${i}" part="badge">${this.formatCount(this.count)}</div>`;
1247
1251
  }
1248
1252
  };
1249
- N5.styles = [X3];
1250
- let d2 = N5;
1251
- Q3([
1253
+ K5.styles = [Q3];
1254
+ let c2 = K5;
1255
+ te([
1252
1256
  a()
1253
- ], d2.prototype, "variant");
1254
- Q3([
1257
+ ], c2.prototype, "variant");
1258
+ te([
1255
1259
  a({ type: Number })
1256
- ], d2.prototype, "count");
1257
- customElements.get("anduin-badge-count") || customElements.define("anduin-badge-count", d2);
1258
- var Ue = Object.defineProperty, B = (r, e, t, o) => {
1260
+ ], c2.prototype, "count");
1261
+ customElements.get("anduin-badge-count") || customElements.define("anduin-badge-count", c2);
1262
+ var Ke = Object.defineProperty, B = (r, e, t, o) => {
1259
1263
  for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
1260
1264
  (l = r[n]) && (i = l(e, t, i) || i);
1261
- return i && Ue(e, t, i), i;
1265
+ return i && Ke(e, t, i), i;
1262
1266
  };
1263
- function Ge(r) {
1267
+ function We(r) {
1264
1268
  return r.replace(/([A-Z])/g, (e) => `-${e.toLowerCase()}`);
1265
1269
  }
1266
- const j5 = class j5 extends h {
1270
+ const W5 = class W5 extends h {
1267
1271
  constructor() {
1268
1272
  super(...arguments), this.iconOnly = !1, this.appearance = "filled", this.variant = "", this.size = "medium", this.disabled = !1, this.loading = !1, this.fullWidth = !1, this.pill = !1, this.selected = !1, this.href = "", this.openNewTab = !1, this.download = "", this.startIcon = "", this.endIcon = "", this.label = "";
1269
1273
  }
@@ -1280,7 +1284,7 @@ const j5 = class j5 extends h {
1280
1284
  return this.variant ? this.variant : this.appearance === "filled" ? "gray0" : this.appearance === "text" ? "primary" : "gray9";
1281
1285
  }
1282
1286
  getSizeKebab() {
1283
- return Ge(this.size);
1287
+ return We(this.size);
1284
1288
  }
1285
1289
  iconSize() {
1286
1290
  return this.size === "tiny" || this.size === "extraSmall" || this.size === "small" ? "12" : "16";
@@ -1324,7 +1328,7 @@ const j5 = class j5 extends h {
1324
1328
  `;
1325
1329
  }
1326
1330
  };
1327
- j5.styles = g`
1331
+ W5.styles = g`
1328
1332
  :host { display: inline-block; font-family: var(--font-sans); }
1329
1333
  :host([full-width]) { display: block; width: 100%; }
1330
1334
  .button {
@@ -1437,7 +1441,7 @@ j5.styles = g`
1437
1441
  .button--icon-only.button--medium { width: 32px; min-width: 32px; padding-left: 0; padding-right: 0; }
1438
1442
  .button--icon-only.button--large { width: 40px; min-width: 40px; padding-left: 0; padding-right: 0; }
1439
1443
  `;
1440
- let k = j5;
1444
+ let k = W5;
1441
1445
  B([
1442
1446
  H()
1443
1447
  ], k.prototype, "iconOnly");
@@ -1484,12 +1488,12 @@ B([
1484
1488
  a()
1485
1489
  ], k.prototype, "label");
1486
1490
  customElements.get("anduin-button") || customElements.define("anduin-button", k);
1487
- var Ke = Object.defineProperty, We = (r, e, t, o) => {
1491
+ var Ye = Object.defineProperty, qe = (r, e, t, o) => {
1488
1492
  for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
1489
1493
  (l = r[n]) && (i = l(e, t, i) || i);
1490
- return i && Ke(e, t, i), i;
1494
+ return i && Ye(e, t, i), i;
1491
1495
  };
1492
- const U5 = class U5 extends h {
1496
+ const Y5 = class Y5 extends h {
1493
1497
  constructor() {
1494
1498
  super(...arguments), this.variant = "gray";
1495
1499
  }
@@ -1502,7 +1506,7 @@ const U5 = class U5 extends h {
1502
1506
  `;
1503
1507
  }
1504
1508
  };
1505
- U5.styles = g`
1509
+ Y5.styles = g`
1506
1510
  :host { display: block; font-family: var(--font-sans); }
1507
1511
  .callout {
1508
1512
  display: flex; align-items: center; justify-content: center;
@@ -1514,17 +1518,17 @@ U5.styles = g`
1514
1518
  .callout--danger { background-color: var(--color-semantic-danger-4); color: var(--color-semantic-gray-0); }
1515
1519
  .callout--warning { background-color: var(--color-semantic-warning-3); color: var(--color-semantic-gray-8); }
1516
1520
  `;
1517
- let Z2 = U5;
1518
- We([
1521
+ let k2 = Y5;
1522
+ qe([
1519
1523
  a()
1520
- ], Z2.prototype, "variant");
1521
- customElements.get("anduin-callout") || customElements.define("anduin-callout", Z2);
1522
- var Ye = Object.defineProperty, ee = (r, e, t, o) => {
1524
+ ], k2.prototype, "variant");
1525
+ customElements.get("anduin-callout") || customElements.define("anduin-callout", k2);
1526
+ var Xe = Object.defineProperty, ie = (r, e, t, o) => {
1523
1527
  for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
1524
1528
  (l = r[n]) && (i = l(e, t, i) || i);
1525
- return i && Ye(e, t, i), i;
1529
+ return i && Xe(e, t, i), i;
1526
1530
  };
1527
- const G5 = class G5 extends h {
1531
+ const q5 = class q5 extends h {
1528
1532
  constructor() {
1529
1533
  super(...arguments), this.direction = "horizontal", this.hasContent = !1;
1530
1534
  }
@@ -1555,7 +1559,7 @@ const G5 = class G5 extends h {
1555
1559
  </div>` : s`<div class="divider--horizontal divider--horizontal-empty"><slot @slotchange=${this.onSlotChange}></slot></div>`;
1556
1560
  }
1557
1561
  };
1558
- G5.styles = g`
1562
+ q5.styles = g`
1559
1563
  :host { display: block; width: 100%; font-family: var(--font-sans); }
1560
1564
  :host([direction="vertical"]) { width: auto; height: 100%; }
1561
1565
  .divider--horizontal { margin-top: 8px; margin-bottom: 8px; width: 100%; display: grid; grid-template-columns: 1fr auto 1fr; column-gap: 8px; text-align: center; }
@@ -1565,20 +1569,20 @@ G5.styles = g`
1565
1569
  .divider--vertical-empty { background-color: var(--color-gray-3); width: 1px; }
1566
1570
  .divider__line--vertical { border-left: 1px solid var(--color-gray-3); justify-self: center; }
1567
1571
  `;
1568
- let c2 = G5;
1569
- ee([
1572
+ let C2 = q5;
1573
+ ie([
1570
1574
  a({ reflect: !0 })
1571
- ], c2.prototype, "direction");
1572
- ee([
1575
+ ], C2.prototype, "direction");
1576
+ ie([
1573
1577
  H()
1574
- ], c2.prototype, "hasContent");
1575
- customElements.get("anduin-divider") || customElements.define("anduin-divider", c2);
1576
- var qe = Object.defineProperty, Xe = (r, e, t, o) => {
1578
+ ], C2.prototype, "hasContent");
1579
+ customElements.get("anduin-divider") || customElements.define("anduin-divider", C2);
1580
+ var Je = Object.defineProperty, Qe = (r, e, t, o) => {
1577
1581
  for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
1578
1582
  (l = r[n]) && (i = l(e, t, i) || i);
1579
- return i && qe(e, t, i), i;
1583
+ return i && Je(e, t, i), i;
1580
1584
  };
1581
- const K5 = class K5 extends h {
1585
+ const X5 = class X5 extends h {
1582
1586
  constructor() {
1583
1587
  super(...arguments), this.variant = "gray";
1584
1588
  }
@@ -1586,7 +1590,7 @@ const K5 = class K5 extends h {
1586
1590
  return s`<div class="dot dot--${this.variant}" part="dot"></div>`;
1587
1591
  }
1588
1592
  };
1589
- K5.styles = g`
1593
+ X5.styles = g`
1590
1594
  :host { display: inline-block; font-family: var(--font-sans); }
1591
1595
  .dot { width: 10px; height: 10px; border-radius: 9999px; }
1592
1596
  .dot--gray { background-color: var(--color-semantic-gray-6); color: var(--color-semantic-gray-0); }
@@ -1595,17 +1599,17 @@ K5.styles = g`
1595
1599
  .dot--danger { background-color: var(--color-semantic-danger-4); color: var(--color-semantic-gray-0); }
1596
1600
  .dot--warning { background-color: var(--color-semantic-warning-3); color: var(--color-semantic-gray-8); }
1597
1601
  `;
1598
- let k2 = K5;
1599
- Xe([
1602
+ let R2 = X5;
1603
+ Qe([
1600
1604
  a()
1601
- ], k2.prototype, "variant");
1602
- customElements.get("anduin-dot") || customElements.define("anduin-dot", k2);
1603
- var Je = Object.defineProperty, te = (r, e, t, o) => {
1605
+ ], R2.prototype, "variant");
1606
+ customElements.get("anduin-dot") || customElements.define("anduin-dot", R2);
1607
+ var e7 = Object.defineProperty, oe = (r, e, t, o) => {
1604
1608
  for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
1605
1609
  (l = r[n]) && (i = l(e, t, i) || i);
1606
- return i && Je(e, t, i), i;
1610
+ return i && e7(e, t, i), i;
1607
1611
  };
1608
- const W5 = class W5 extends h {
1612
+ const J5 = class J5 extends h {
1609
1613
  constructor() {
1610
1614
  super(...arguments), this.percent = "", this.height = "medium";
1611
1615
  }
@@ -1621,7 +1625,7 @@ const W5 = class W5 extends h {
1621
1625
  `;
1622
1626
  }
1623
1627
  };
1624
- W5.styles = g`
1628
+ J5.styles = g`
1625
1629
  :host { display: block; font-family: var(--font-sans); }
1626
1630
  .progress { overflow-x: hidden; position: relative; border-radius: 9999px; }
1627
1631
  .progress__fill {
@@ -1637,20 +1641,20 @@ W5.styles = g`
1637
1641
  to { transform: translateX(330%); }
1638
1642
  }
1639
1643
  `;
1640
- let C2 = W5;
1641
- te([
1644
+ let p2 = J5;
1645
+ oe([
1642
1646
  a()
1643
- ], C2.prototype, "percent");
1644
- te([
1647
+ ], p2.prototype, "percent");
1648
+ oe([
1645
1649
  a()
1646
- ], C2.prototype, "height");
1647
- customElements.get("anduin-progress") || customElements.define("anduin-progress", C2);
1648
- var Qe = Object.defineProperty, G1 = (r, e, t, o) => {
1650
+ ], p2.prototype, "height");
1651
+ customElements.get("anduin-progress") || customElements.define("anduin-progress", p2);
1652
+ var t7 = Object.defineProperty, G1 = (r, e, t, o) => {
1649
1653
  for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
1650
1654
  (l = r[n]) && (i = l(e, t, i) || i);
1651
- return i && Qe(e, t, i), i;
1655
+ return i && t7(e, t, i), i;
1652
1656
  };
1653
- const Y5 = class Y5 extends h {
1657
+ const Q5 = class Q5 extends h {
1654
1658
  constructor() {
1655
1659
  super(...arguments), this.effect = "pulse", this.shape = "rectangle", this.height = "", this.width = "100%", this.duration = 1500, this.fontSize = "";
1656
1660
  }
@@ -1669,7 +1673,7 @@ const Y5 = class Y5 extends h {
1669
1673
  `;
1670
1674
  }
1671
1675
  };
1672
- Y5.styles = g`
1676
+ Q5.styles = g`
1673
1677
  :host { display: block; height: 100%; font-family: var(--font-sans); }
1674
1678
  .skeleton { background-color: var(--color-gray-3); position: relative; overflow: hidden; }
1675
1679
  .skeleton--circle { border-radius: 9999px; }
@@ -1688,7 +1692,7 @@ Y5.styles = g`
1688
1692
  0% { transform: translateX(-100%); } 100% { transform: translateX(100%); }
1689
1693
  }
1690
1694
  `;
1691
- let o1 = Y5;
1695
+ let o1 = Q5;
1692
1696
  G1([
1693
1697
  a()
1694
1698
  ], o1.prototype, "effect");
@@ -1708,12 +1712,12 @@ G1([
1708
1712
  a({ attribute: "font-size" })
1709
1713
  ], o1.prototype, "fontSize");
1710
1714
  customElements.get("anduin-skeleton") || customElements.define("anduin-skeleton", o1);
1711
- var e7 = Object.defineProperty, t7 = (r, e, t, o) => {
1715
+ var i7 = Object.defineProperty, o7 = (r, e, t, o) => {
1712
1716
  for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
1713
1717
  (l = r[n]) && (i = l(e, t, i) || i);
1714
- return i && e7(e, t, i), i;
1718
+ return i && i7(e, t, i), i;
1715
1719
  };
1716
- const q5 = class q5 extends h {
1720
+ const e4 = class e4 extends h {
1717
1721
  constructor() {
1718
1722
  super(...arguments), this.height = "256px";
1719
1723
  }
@@ -1728,28 +1732,28 @@ const q5 = class q5 extends h {
1728
1732
  `;
1729
1733
  }
1730
1734
  };
1731
- q5.styles = g`
1735
+ e4.styles = g`
1732
1736
  :host { display: block; height: 100%; font-family: var(--font-sans); }
1733
1737
  .loading-state { display: flex; flex-direction: column; justify-content: center; align-items: center; }
1734
1738
  .loading-state__indicator { color: var(--color-primary-4); }
1735
1739
  .loading-state__content { margin-top: 12px; font-size: 15px; color: var(--color-gray-6); }
1736
1740
  `;
1737
- let R2 = q5;
1738
- t7([
1741
+ let $2 = e4;
1742
+ o7([
1739
1743
  a()
1740
- ], R2.prototype, "height");
1741
- customElements.get("anduin-loading-state") || customElements.define("anduin-loading-state", R2);
1742
- var i7 = Object.defineProperty, D5 = (r, e, t, o) => {
1744
+ ], $2.prototype, "height");
1745
+ customElements.get("anduin-loading-state") || customElements.define("anduin-loading-state", $2);
1746
+ var n7 = Object.defineProperty, O5 = (r, e, t, o) => {
1743
1747
  for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
1744
1748
  (l = r[n]) && (i = l(e, t, i) || i);
1745
- return i && i7(e, t, i), i;
1749
+ return i && n7(e, t, i), i;
1746
1750
  };
1747
- const ie = "anduin-field:label-click", u1 = "anduin-field:label-click-coordinated", X5 = class X5 extends h {
1751
+ const ne = "anduin-field:label-click", u1 = "anduin-field:label-click-coordinated", t4 = class t4 extends h {
1748
1752
  constructor() {
1749
1753
  super(...arguments), this.orientation = "vertical";
1750
1754
  }
1751
1755
  connectedCallback() {
1752
- super.connectedCallback(), this.addEventListener(ie, (e) => {
1756
+ super.connectedCallback(), this.addEventListener(ne, (e) => {
1753
1757
  const t = e;
1754
1758
  this.dispatchEvent(new CustomEvent(u1, {
1755
1759
  detail: t.detail,
@@ -1767,17 +1771,17 @@ const ie = "anduin-field:label-click", u1 = "anduin-field:label-click-coordinate
1767
1771
  `;
1768
1772
  }
1769
1773
  };
1770
- X5.styles = g`
1774
+ t4.styles = g`
1771
1775
  :host { display: block; font-family: var(--font-sans); }
1772
1776
  .field { display: flex; flex-wrap: wrap; }
1773
1777
  .field--vertical { flex-direction: column; row-gap: 4px; }
1774
1778
  .field--horizontal { column-gap: 4px; }
1775
1779
  `;
1776
- let $2 = X5;
1777
- D5([
1780
+ let E2 = t4;
1781
+ O5([
1778
1782
  a()
1779
- ], $2.prototype, "orientation");
1780
- const J5 = class J5 extends h {
1783
+ ], E2.prototype, "orientation");
1784
+ const i4 = class i4 extends h {
1781
1785
  constructor() {
1782
1786
  super(...arguments), this.htmlfor = "", this.required = !1;
1783
1787
  }
@@ -1785,7 +1789,7 @@ const J5 = class J5 extends h {
1785
1789
  super.connectedCallback();
1786
1790
  }
1787
1791
  onLabelClick(e) {
1788
- this.htmlfor && (e.preventDefault(), this.dispatchEvent(new CustomEvent(ie, {
1792
+ this.htmlfor && (e.preventDefault(), this.dispatchEvent(new CustomEvent(ne, {
1789
1793
  detail: this.htmlfor,
1790
1794
  bubbles: !0,
1791
1795
  composed: !0
@@ -1804,59 +1808,59 @@ const J5 = class J5 extends h {
1804
1808
  `;
1805
1809
  }
1806
1810
  };
1807
- J5.styles = g`
1811
+ i4.styles = g`
1808
1812
  :host { display: inline-block; font-family: var(--font-sans); }
1809
1813
  .field-label { font-size: 13px; line-height: 20px; font-weight: 600; cursor: default; color: var(--color-gray-8, #101828); }
1810
1814
  .field-label__required { color: var(--color-danger-5); }
1811
1815
  `;
1812
- let p2 = J5;
1813
- D5([
1816
+ let h2 = i4;
1817
+ O5([
1814
1818
  a()
1815
- ], p2.prototype, "htmlfor");
1816
- D5([
1819
+ ], h2.prototype, "htmlfor");
1820
+ O5([
1817
1821
  a({ type: Boolean })
1818
- ], p2.prototype, "required");
1819
- const Q5 = class Q5 extends h {
1822
+ ], h2.prototype, "required");
1823
+ const o4 = class o4 extends h {
1820
1824
  render() {
1821
1825
  return s`<div class="field-description" part="description"><slot></slot></div>`;
1822
1826
  }
1823
1827
  };
1824
- Q5.styles = g`
1828
+ o4.styles = g`
1825
1829
  :host { display: inline-block; font-family: var(--font-sans); }
1826
1830
  .field-description { display: block; line-height: 16px; font-size: 11px; color: var(--color-gray-7); }
1827
1831
  `;
1828
- let q2 = Q5;
1829
- const e4 = class e4 extends h {
1832
+ let t5 = o4;
1833
+ const n4 = class n4 extends h {
1830
1834
  render() {
1831
1835
  return s`<div class="field-error" part="error"><slot></slot></div>`;
1832
1836
  }
1833
1837
  };
1834
- e4.styles = g`
1838
+ n4.styles = g`
1835
1839
  :host { display: block; font-family: var(--font-sans); }
1836
1840
  .field-error { color: var(--color-danger-4); }
1837
1841
  `;
1838
- let X2 = e4;
1839
- const t4 = class t4 extends h {
1842
+ let i5 = n4;
1843
+ const r4 = class r4 extends h {
1840
1844
  render() {
1841
1845
  return s`<div class="field-group" part="group"><slot></slot></div>`;
1842
1846
  }
1843
1847
  };
1844
- t4.styles = g`
1848
+ r4.styles = g`
1845
1849
  :host { display: block; font-family: var(--font-sans); }
1846
1850
  .field-group { display: flex; flex-direction: column; row-gap: 24px; }
1847
1851
  `;
1848
- let J2 = t4;
1849
- customElements.get("anduin-field") || customElements.define("anduin-field", $2);
1850
- customElements.get("anduin-field-label") || customElements.define("anduin-field-label", p2);
1851
- customElements.get("anduin-field-description") || customElements.define("anduin-field-description", q2);
1852
- customElements.get("anduin-field-error") || customElements.define("anduin-field-error", X2);
1853
- customElements.get("anduin-field-group") || customElements.define("anduin-field-group", J2);
1854
- var o7 = Object.defineProperty, _2 = (r, e, t, o) => {
1852
+ let o5 = r4;
1853
+ customElements.get("anduin-field") || customElements.define("anduin-field", E2);
1854
+ customElements.get("anduin-field-label") || customElements.define("anduin-field-label", h2);
1855
+ customElements.get("anduin-field-description") || customElements.define("anduin-field-description", t5);
1856
+ customElements.get("anduin-field-error") || customElements.define("anduin-field-error", i5);
1857
+ customElements.get("anduin-field-group") || customElements.define("anduin-field-group", o5);
1858
+ var r7 = Object.defineProperty, L2 = (r, e, t, o) => {
1855
1859
  for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
1856
1860
  (l = r[n]) && (i = l(e, t, i) || i);
1857
- return i && o7(e, t, i), i;
1861
+ return i && r7(e, t, i), i;
1858
1862
  };
1859
- const n7 = "anduin-checkbox:change", i4 = class i4 extends h {
1863
+ const l7 = "anduin-checkbox:change", l4 = class l4 extends h {
1860
1864
  constructor() {
1861
1865
  super(...arguments), this.checked = !1, this.disabled = !1, this.indeterminate = !1, this.readonly = !1, this.inputid = "";
1862
1866
  }
@@ -1869,7 +1873,7 @@ const n7 = "anduin-checkbox:change", i4 = class i4 extends h {
1869
1873
  });
1870
1874
  }
1871
1875
  toggle() {
1872
- this.checked = !this.checked, this.dispatchEvent(new CustomEvent(n7, {
1876
+ this.checked = !this.checked, this.dispatchEvent(new CustomEvent(l7, {
1873
1877
  detail: this.checked,
1874
1878
  bubbles: !0,
1875
1879
  composed: !0
@@ -1910,7 +1914,7 @@ const n7 = "anduin-checkbox:change", i4 = class i4 extends h {
1910
1914
  `;
1911
1915
  }
1912
1916
  };
1913
- i4.styles = g`
1917
+ l4.styles = g`
1914
1918
  :host { display: inline-flex; font-family: var(--font-sans); }
1915
1919
 
1916
1920
  label {
@@ -1948,29 +1952,29 @@ i4.styles = g`
1948
1952
  .checkbox__icon { position: absolute; inset: 0; pointer-events: none; color: var(--color-gray-4); display: flex; align-items: center; justify-content: center; }
1949
1953
  .checkbox__icon--visible { color: var(--color-gray-0); }
1950
1954
  `;
1951
- let h1 = i4;
1952
- _2([
1955
+ let g1 = l4;
1956
+ L2([
1953
1957
  a({ type: Boolean })
1954
- ], h1.prototype, "checked");
1955
- _2([
1958
+ ], g1.prototype, "checked");
1959
+ L2([
1956
1960
  a({ type: Boolean })
1957
- ], h1.prototype, "disabled");
1958
- _2([
1961
+ ], g1.prototype, "disabled");
1962
+ L2([
1959
1963
  a({ type: Boolean })
1960
- ], h1.prototype, "indeterminate");
1961
- _2([
1964
+ ], g1.prototype, "indeterminate");
1965
+ L2([
1962
1966
  a({ type: Boolean })
1963
- ], h1.prototype, "readonly");
1964
- _2([
1967
+ ], g1.prototype, "readonly");
1968
+ L2([
1965
1969
  a()
1966
- ], h1.prototype, "inputid");
1967
- customElements.get("anduin-checkbox") || customElements.define("anduin-checkbox", h1);
1968
- var r7 = Object.defineProperty, K = (r, e, t, o) => {
1970
+ ], g1.prototype, "inputid");
1971
+ customElements.get("anduin-checkbox") || customElements.define("anduin-checkbox", g1);
1972
+ var a7 = Object.defineProperty, K = (r, e, t, o) => {
1969
1973
  for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
1970
1974
  (l = r[n]) && (i = l(e, t, i) || i);
1971
- return i && r7(e, t, i), i;
1975
+ return i && a7(e, t, i), i;
1972
1976
  };
1973
- const V3 = "anduin-input:change", l7 = "anduin-input:clear", o4 = class o4 extends h {
1977
+ const x3 = "anduin-input:change", s7 = "anduin-input:clear", P2 = class P2 extends h {
1974
1978
  constructor() {
1975
1979
  super(...arguments), this.value = "", this.size = "default", this.disabled = !1, this.readonly = !1, this.placeholder = "", this.inputid = "", this.status = "", this.startIcon = "", this.endIcon = "", this.clearable = !1;
1976
1980
  }
@@ -1986,8 +1990,37 @@ const V3 = "anduin-input:change", l7 = "anduin-input:clear", o4 = class o4 exten
1986
1990
  updated() {
1987
1991
  this.inputEl && this.inputEl.value !== this.value && (this.inputEl.value = this.value);
1988
1992
  }
1993
+ /**
1994
+ * Runs `fn` against the inner `<input>` now, or once the first render has
1995
+ * made it. A wrapper's ref is live before Lit's first render (a microtask
1996
+ * after connection), and a call made then would otherwise find no input and
1997
+ * do nothing — the "open focused, value selected" case is exactly that.
1998
+ */
1999
+ _withInput(e) {
2000
+ this.inputEl ? e(this.inputEl) : this.updateComplete.then(() => {
2001
+ this.inputEl && e(this.inputEl);
2002
+ });
2003
+ }
2004
+ /**
2005
+ * Focuses the inner `<input>` (via `delegatesFocus`). A disabled input stays
2006
+ * unfocusable, as a native one is.
2007
+ */
2008
+ focus(e) {
2009
+ this.inputEl ? super.focus(e) : this.updateComplete.then(() => super.focus(e));
2010
+ }
2011
+ /**
2012
+ * Selects the whole value so the next keystroke replaces it — e.g. from an
2013
+ * `onFocus` handler. Like the native `select()`, it also focuses the field.
2014
+ */
2015
+ select() {
2016
+ this._withInput((e) => e.select());
2017
+ }
2018
+ /** Forwards to the inner `<input>`'s `setSelectionRange`. */
2019
+ setSelectionRange(e, t, o) {
2020
+ this._withInput((i) => i.setSelectionRange(e, t, o));
2021
+ }
1989
2022
  onInput() {
1990
- this.value = this.inputEl.value, this.dispatchEvent(new CustomEvent(V3, {
2023
+ this.value = this.inputEl.value, this.dispatchEvent(new CustomEvent(x3, {
1991
2024
  detail: this.value,
1992
2025
  bubbles: !0,
1993
2026
  composed: !0
@@ -1995,7 +2028,7 @@ const V3 = "anduin-input:change", l7 = "anduin-input:clear", o4 = class o4 exten
1995
2028
  }
1996
2029
  onClear() {
1997
2030
  var e;
1998
- this.value = "", this.inputEl && (this.inputEl.value = ""), this.dispatchEvent(new CustomEvent(V3, { detail: "", bubbles: !0, composed: !0 })), this.dispatchEvent(new CustomEvent(l7, { bubbles: !0, composed: !0 })), (e = this.inputEl) == null || e.focus();
2031
+ this.value = "", this.inputEl && (this.inputEl.value = ""), this.dispatchEvent(new CustomEvent(x3, { detail: "", bubbles: !0, composed: !0 })), this.dispatchEvent(new CustomEvent(s7, { bubbles: !0, composed: !0 })), (e = this.inputEl) == null || e.focus();
1999
2032
  }
2000
2033
  render() {
2001
2034
  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";
@@ -2039,7 +2072,7 @@ const V3 = "anduin-input:change", l7 = "anduin-input:clear", o4 = class o4 exten
2039
2072
  `;
2040
2073
  }
2041
2074
  };
2042
- o4.styles = g`
2075
+ P2.shadowRootOptions = { ...h.shadowRootOptions, delegatesFocus: !0 }, P2.styles = g`
2043
2076
  :host { display: block; font-family: var(--font-sans); }
2044
2077
 
2045
2078
  .input-wrapper { position: relative; display: flex; align-items: center; }
@@ -2093,7 +2126,7 @@ o4.styles = g`
2093
2126
  }
2094
2127
  .input__clear:hover { color: var(--color-gray-7); }
2095
2128
  `;
2096
- let P = o4;
2129
+ let P = P2;
2097
2130
  K([
2098
2131
  a()
2099
2132
  ], P.prototype, "value");
@@ -2128,12 +2161,12 @@ K([
2128
2161
  z("input")
2129
2162
  ], P.prototype, "inputEl");
2130
2163
  customElements.get("anduin-input") || customElements.define("anduin-input", P);
2131
- var a7 = Object.defineProperty, m1 = (r, e, t, o) => {
2164
+ var d7 = Object.defineProperty, H1 = (r, e, t, o) => {
2132
2165
  for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
2133
2166
  (l = r[n]) && (i = l(e, t, i) || i);
2134
- return i && a7(e, t, i), i;
2167
+ return i && d7(e, t, i), i;
2135
2168
  };
2136
- const s7 = "anduin-textarea:change", n4 = class n4 extends h {
2169
+ const c7 = "anduin-textarea:change", F2 = class F2 extends h {
2137
2170
  constructor() {
2138
2171
  super(...arguments), this.value = "", this.disabled = !1, this.readonly = !1, this.placeholder = "", this.inputid = "", this.rows = 3, this.status = "";
2139
2172
  }
@@ -2149,8 +2182,26 @@ const s7 = "anduin-textarea:change", n4 = class n4 extends h {
2149
2182
  updated() {
2150
2183
  this.textareaEl && this.textareaEl.value !== this.value && (this.textareaEl.value = this.value);
2151
2184
  }
2185
+ /** Runs `fn` against the inner `<textarea>` now, or once the first render has made it (see `anduin-input`). */
2186
+ _withTextarea(e) {
2187
+ this.textareaEl ? e(this.textareaEl) : this.updateComplete.then(() => {
2188
+ this.textareaEl && e(this.textareaEl);
2189
+ });
2190
+ }
2191
+ /** Focuses the inner `<textarea>` (via `delegatesFocus`). A disabled one stays unfocusable. */
2192
+ focus(e) {
2193
+ this.textareaEl ? super.focus(e) : this.updateComplete.then(() => super.focus(e));
2194
+ }
2195
+ /** Selects the whole value so typing replaces it. Like the native `select()`, it also focuses the field. */
2196
+ select() {
2197
+ this._withTextarea((e) => e.select());
2198
+ }
2199
+ /** Forwards to the inner `<textarea>`'s `setSelectionRange`. */
2200
+ setSelectionRange(e, t, o) {
2201
+ this._withTextarea((i) => i.setSelectionRange(e, t, o));
2202
+ }
2152
2203
  onInput() {
2153
- this.value = this.textareaEl.value, this.dispatchEvent(new CustomEvent(s7, {
2204
+ this.value = this.textareaEl.value, this.dispatchEvent(new CustomEvent(c7, {
2154
2205
  detail: this.value,
2155
2206
  bubbles: !0,
2156
2207
  composed: !0
@@ -2175,7 +2226,7 @@ const s7 = "anduin-textarea:change", n4 = class n4 extends h {
2175
2226
  `;
2176
2227
  }
2177
2228
  };
2178
- n4.styles = g`
2229
+ F2.shadowRootOptions = { ...h.shadowRootOptions, delegatesFocus: !0 }, F2.styles = g`
2179
2230
  :host { display: block; font-family: var(--font-sans); }
2180
2231
 
2181
2232
  .textarea {
@@ -2192,46 +2243,46 @@ n4.styles = g`
2192
2243
  .textarea--warning { border-color: var(--color-warning-4); }
2193
2244
  .textarea--loading { border-color: var(--color-gray-4); }
2194
2245
  `;
2195
- let U = n4;
2196
- m1([
2246
+ let G = F2;
2247
+ H1([
2197
2248
  a()
2198
- ], U.prototype, "value");
2199
- m1([
2249
+ ], G.prototype, "value");
2250
+ H1([
2200
2251
  a({ type: Boolean })
2201
- ], U.prototype, "disabled");
2202
- m1([
2252
+ ], G.prototype, "disabled");
2253
+ H1([
2203
2254
  a({ type: Boolean })
2204
- ], U.prototype, "readonly");
2205
- m1([
2255
+ ], G.prototype, "readonly");
2256
+ H1([
2206
2257
  a()
2207
- ], U.prototype, "placeholder");
2208
- m1([
2258
+ ], G.prototype, "placeholder");
2259
+ H1([
2209
2260
  a()
2210
- ], U.prototype, "inputid");
2211
- m1([
2261
+ ], G.prototype, "inputid");
2262
+ H1([
2212
2263
  a({ type: Number })
2213
- ], U.prototype, "rows");
2214
- m1([
2264
+ ], G.prototype, "rows");
2265
+ H1([
2215
2266
  a()
2216
- ], U.prototype, "status");
2217
- m1([
2267
+ ], G.prototype, "status");
2268
+ H1([
2218
2269
  z("textarea")
2219
- ], U.prototype, "textareaEl");
2220
- customElements.get("anduin-textarea") || customElements.define("anduin-textarea", U);
2221
- var d7 = Object.defineProperty, N = (r, e, t, o) => {
2270
+ ], G.prototype, "textareaEl");
2271
+ customElements.get("anduin-textarea") || customElements.define("anduin-textarea", G);
2272
+ var C7 = Object.defineProperty, N = (r, e, t, o) => {
2222
2273
  for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
2223
2274
  (l = r[n]) && (i = l(e, t, i) || i);
2224
- return i && d7(e, t, i), i;
2275
+ return i && C7(e, t, i), i;
2225
2276
  };
2226
- const oe = "anduin-tab:trigger-click", F2 = "anduin-tab:value-changed", c7 = "anduin-tab:change", r4 = class r4 extends h {
2277
+ const re = "anduin-tab:trigger-click", T2 = "anduin-tab:value-changed", p7 = "anduin-tab:change", a4 = class a4 extends h {
2227
2278
  constructor() {
2228
2279
  super(...arguments), this.defaultValue = "", this.value = "", this.fill = !1;
2229
2280
  }
2230
2281
  connectedCallback() {
2231
- super.connectedCallback(), this.addEventListener(oe, (e) => {
2282
+ super.connectedCallback(), this.addEventListener(re, (e) => {
2232
2283
  e.stopPropagation();
2233
2284
  const t = e;
2234
- this.value = t.detail, this.broadcastValueChanged(t.detail), this.dispatchEvent(new CustomEvent(c7, { detail: t.detail, bubbles: !0, composed: !0 }));
2285
+ this.value = t.detail, this.broadcastValueChanged(t.detail), this.dispatchEvent(new CustomEvent(p7, { detail: t.detail, bubbles: !0, composed: !0 }));
2235
2286
  }), requestAnimationFrame(() => {
2236
2287
  const e = this.value || this.defaultValue;
2237
2288
  e && (this.value || (this.value = e), this.broadcastValueChanged(e));
@@ -2244,19 +2295,19 @@ const oe = "anduin-tab:trigger-click", F2 = "anduin-tab:value-changed", c7 = "an
2244
2295
  }
2245
2296
  }
2246
2297
  broadcastValueChanged(e) {
2247
- this.dispatchEvent(new CustomEvent(F2, { detail: e, bubbles: !1, composed: !1 }));
2298
+ this.dispatchEvent(new CustomEvent(T2, { detail: e, bubbles: !1, composed: !1 }));
2248
2299
  }
2249
2300
  render() {
2250
2301
  return s`<div class="tabs" part="tabs"><slot></slot></div>`;
2251
2302
  }
2252
2303
  };
2253
- r4.styles = g`
2304
+ a4.styles = g`
2254
2305
  :host { display: flex; flex-direction: column; font-family: var(--font-sans); }
2255
2306
  :host([fill]) { flex: 1; min-height: 0; --_tab-fill-flex: 1; --_tab-fill-height: 100%; }
2256
2307
  .tabs { display: flex; flex-direction: column; width: 100%; }
2257
2308
  :host([fill]) .tabs { flex: 1; min-height: 0; }
2258
2309
  `;
2259
- let O1 = r4;
2310
+ let O1 = a4;
2260
2311
  N([
2261
2312
  a({ attribute: "default-value" })
2262
2313
  ], O1.prototype, "defaultValue");
@@ -2266,14 +2317,14 @@ N([
2266
2317
  N([
2267
2318
  a({ type: Boolean, reflect: !0 })
2268
2319
  ], O1.prototype, "fill");
2269
- const l4 = class l4 extends h {
2320
+ const s4 = class s4 extends h {
2270
2321
  constructor() {
2271
2322
  super(...arguments), this.alignment = "left", this.lastActiveValue = "", this.resizeObserver = null;
2272
2323
  }
2273
2324
  connectedCallback() {
2274
2325
  super.connectedCallback();
2275
2326
  const e = this.closest("anduin-tabs");
2276
- e && e.addEventListener(F2, (t) => {
2327
+ e && e.addEventListener(T2, (t) => {
2277
2328
  const o = t;
2278
2329
  this.lastActiveValue = o.detail, requestAnimationFrame(() => {
2279
2330
  this.animateIndicator(o.detail);
@@ -2310,7 +2361,7 @@ const l4 = class l4 extends h {
2310
2361
  `;
2311
2362
  }
2312
2363
  };
2313
- l4.styles = g`
2364
+ s4.styles = g`
2314
2365
  :host { display: block; font-family: var(--font-sans); }
2315
2366
  /* Transparent by default so the list picks up whatever it sits on. Set a
2316
2367
  * background via anduin-tabs-list::part(tabs-list) when one is wanted. */
@@ -2327,27 +2378,27 @@ l4.styles = g`
2327
2378
  left: 0; height: 2px; transition-duration: 200ms; transition-property: transform, width;
2328
2379
  }
2329
2380
  `;
2330
- let u2 = l4;
2381
+ let u2 = s4;
2331
2382
  N([
2332
2383
  a()
2333
2384
  ], u2.prototype, "alignment");
2334
2385
  N([
2335
2386
  z(".tabs-list__indicator")
2336
2387
  ], u2.prototype, "indicator");
2337
- const a4 = class a4 extends h {
2388
+ const d4 = class d4 extends h {
2338
2389
  constructor() {
2339
2390
  super(...arguments), this.value = "", this.startIcon = "", this.disabled = !1, this.showBadge = !1, this.badgeCount = "", this.isActive = !1;
2340
2391
  }
2341
2392
  connectedCallback() {
2342
2393
  super.connectedCallback();
2343
2394
  const e = this.closest("anduin-tabs");
2344
- e && e.addEventListener(F2, (t) => {
2395
+ e && e.addEventListener(T2, (t) => {
2345
2396
  const o = t;
2346
2397
  this.isActive = o.detail === this.value;
2347
2398
  });
2348
2399
  }
2349
2400
  onClick() {
2350
- this.dispatchEvent(new CustomEvent(oe, { detail: this.value, bubbles: !0, composed: !0 }));
2401
+ this.dispatchEvent(new CustomEvent(re, { detail: this.value, bubbles: !0, composed: !0 }));
2351
2402
  }
2352
2403
  render() {
2353
2404
  return s`
@@ -2368,7 +2419,7 @@ const a4 = class a4 extends h {
2368
2419
  `;
2369
2420
  }
2370
2421
  };
2371
- a4.styles = g`
2422
+ d4.styles = g`
2372
2423
  :host { display: inline-block; font-family: var(--font-sans); }
2373
2424
  .tab-trigger {
2374
2425
  cursor: pointer; background: none; border: none; display: block;
@@ -2391,7 +2442,7 @@ a4.styles = g`
2391
2442
  color: var(--color-gray-7); white-space: nowrap;
2392
2443
  }
2393
2444
  `;
2394
- let n1 = a4;
2445
+ let n1 = d4;
2395
2446
  N([
2396
2447
  a({ reflect: !0 })
2397
2448
  ], n1.prototype, "value");
@@ -2410,14 +2461,14 @@ N([
2410
2461
  N([
2411
2462
  H()
2412
2463
  ], n1.prototype, "isActive");
2413
- const s4 = class s4 extends h {
2464
+ const c4 = class c4 extends h {
2414
2465
  constructor() {
2415
2466
  super(...arguments), this.value = "", this.isActive = !1;
2416
2467
  }
2417
2468
  connectedCallback() {
2418
2469
  super.connectedCallback();
2419
2470
  const e = this.closest("anduin-tabs");
2420
- e && e.addEventListener(F2, (t) => {
2471
+ e && e.addEventListener(T2, (t) => {
2421
2472
  const o = t;
2422
2473
  this.isActive = o.detail === this.value;
2423
2474
  });
@@ -2433,28 +2484,28 @@ const s4 = class s4 extends h {
2433
2484
  `;
2434
2485
  }
2435
2486
  };
2436
- s4.styles = g`
2487
+ c4.styles = g`
2437
2488
  :host { display: block; font-family: var(--font-sans); flex: var(--_tab-fill-flex, 0 0 auto); min-height: 0; }
2438
2489
  :host(:not([active])) { display: none; }
2439
2490
  .tab-content { width: 100%; height: var(--_tab-fill-height, auto); overflow-x: hidden; overflow-y: auto; }
2440
2491
  `;
2441
- let h2 = s4;
2492
+ let g2 = c4;
2442
2493
  N([
2443
2494
  a()
2444
- ], h2.prototype, "value");
2495
+ ], g2.prototype, "value");
2445
2496
  N([
2446
2497
  H()
2447
- ], h2.prototype, "isActive");
2498
+ ], g2.prototype, "isActive");
2448
2499
  customElements.get("anduin-tabs") || customElements.define("anduin-tabs", O1);
2449
2500
  customElements.get("anduin-tabs-list") || customElements.define("anduin-tabs-list", u2);
2450
2501
  customElements.get("anduin-tab-trigger") || customElements.define("anduin-tab-trigger", n1);
2451
- customElements.get("anduin-tab-content") || customElements.define("anduin-tab-content", h2);
2452
- var C7 = Object.defineProperty, B5 = (r, e, t, o) => {
2502
+ customElements.get("anduin-tab-content") || customElements.define("anduin-tab-content", g2);
2503
+ var h7 = Object.defineProperty, I5 = (r, e, t, o) => {
2453
2504
  for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
2454
2505
  (l = r[n]) && (i = l(e, t, i) || i);
2455
- return i && C7(e, t, i), i;
2506
+ return i && h7(e, t, i), i;
2456
2507
  };
2457
- const p7 = "anduin-tag-close:click", u7 = {
2508
+ const u7 = "anduin-tag-close:click", g7 = {
2458
2509
  gray: "tag--light-gray",
2459
2510
  primary: "tag--light-primary",
2460
2511
  success: "tag--light-success",
@@ -2479,7 +2530,7 @@ const p7 = "anduin-tag-close:click", u7 = {
2479
2530
  customYellow: "tag--custom-yellow",
2480
2531
  customYellowGreen: "tag--custom-yellow-green",
2481
2532
  customYellowOrange: "tag--custom-yellow-orange"
2482
- }, h7 = {
2533
+ }, f7 = {
2483
2534
  gray: "tag__icon--light-gray",
2484
2535
  primary: "tag__icon--light-primary",
2485
2536
  success: "tag__icon--light-success",
@@ -2504,12 +2555,12 @@ const p7 = "anduin-tag-close:click", u7 = {
2504
2555
  customMagenta: "tag__icon--custom-magenta",
2505
2556
  customBlueGreen: "tag__icon--custom-blue-green",
2506
2557
  customPink: "tag__icon--custom-pink"
2507
- }, d4 = class d4 extends h {
2558
+ }, C4 = class C4 extends h {
2508
2559
  constructor() {
2509
2560
  super(...arguments), this.variant = "gray", this.icon = "", this.disabled = !1;
2510
2561
  }
2511
2562
  render() {
2512
- const e = u7[this.variant] || "tag--light-gray", t = h7[this.variant] || "tag__icon--light-gray";
2563
+ const e = g7[this.variant] || "tag--light-gray", t = f7[this.variant] || "tag__icon--light-gray";
2513
2564
  return s`
2514
2565
  <div class="tag ${e} ${this.disabled ? "tag--disabled" : ""}" part="tag">
2515
2566
  ${this.icon ? s`<anduin-icon name="${this.icon}" size="12" class="tag__icon ${t}"></anduin-icon>` : u}
@@ -2519,7 +2570,7 @@ const p7 = "anduin-tag-close:click", u7 = {
2519
2570
  `;
2520
2571
  }
2521
2572
  };
2522
- d4.styles = g`
2573
+ C4.styles = g`
2523
2574
  :host { display: inline-flex; max-width: 100%; font-family: var(--font-sans); }
2524
2575
  .tag {
2525
2576
  font-weight: 500; font-size: 11px; height: 20px; padding-left: 6px; padding-right: 6px;
@@ -2567,19 +2618,19 @@ d4.styles = g`
2567
2618
  .tag--custom-yellow-green { color: var(--color-gray-9); background-color: rgb(174,207,85); }
2568
2619
  .tag--custom-yellow-orange { color: var(--color-gray-9); background-color: rgb(255,193,107); }
2569
2620
  `;
2570
- let I1 = d4;
2571
- B5([
2621
+ let I1 = C4;
2622
+ I5([
2572
2623
  a()
2573
2624
  ], I1.prototype, "variant");
2574
- B5([
2625
+ I5([
2575
2626
  a()
2576
2627
  ], I1.prototype, "icon");
2577
- B5([
2628
+ I5([
2578
2629
  a({ type: Boolean })
2579
2630
  ], I1.prototype, "disabled");
2580
- const c4 = class c4 extends h {
2631
+ const p4 = class p4 extends h {
2581
2632
  onClick() {
2582
- this.dispatchEvent(new CustomEvent(p7, { bubbles: !0, composed: !0 }));
2633
+ this.dispatchEvent(new CustomEvent(u7, { bubbles: !0, composed: !0 }));
2583
2634
  }
2584
2635
  render() {
2585
2636
  return s`
@@ -2589,7 +2640,7 @@ const c4 = class c4 extends h {
2589
2640
  `;
2590
2641
  }
2591
2642
  };
2592
- c4.styles = g`
2643
+ p4.styles = g`
2593
2644
  :host { display: inline-block; font-family: var(--font-sans); }
2594
2645
  .tag-close__button {
2595
2646
  flex: none; width: 16px; height: 16px; display: flex; align-items: center;
@@ -2599,15 +2650,15 @@ c4.styles = g`
2599
2650
  .tag-close__button:hover { opacity: 0.7; }
2600
2651
  .tag-close__button:active { opacity: 0.5; }
2601
2652
  `;
2602
- let Q2 = c4;
2653
+ let n5 = p4;
2603
2654
  customElements.get("anduin-tag") || customElements.define("anduin-tag", I1);
2604
- customElements.get("anduin-tag-close") || customElements.define("anduin-tag-close", Q2);
2605
- var g7 = Object.defineProperty, F = (r, e, t, o) => {
2655
+ customElements.get("anduin-tag-close") || customElements.define("anduin-tag-close", n5);
2656
+ var v7 = Object.defineProperty, F = (r, e, t, o) => {
2606
2657
  for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
2607
2658
  (l = r[n]) && (i = l(e, t, i) || i);
2608
- return i && g7(e, t, i), i;
2659
+ return i && v7(e, t, i), i;
2609
2660
  };
2610
- const f7 = "anduin-toggle-group:change", v7 = "anduin-toggle-group-item:change", b7 = "anduin-toggle-group-item:select", m7 = "anduin-toggle-group-item:deselect", e5 = "anduin-toggle-group-item:item-click", C4 = class C4 extends h {
2661
+ const m7 = "anduin-toggle-group:change", b7 = "anduin-toggle-group-item:change", H7 = "anduin-toggle-group-item:select", y7 = "anduin-toggle-group-item:deselect", r5 = "anduin-toggle-group-item:item-click", h4 = class h4 extends h {
2611
2662
  constructor() {
2612
2663
  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) => {
2613
2664
  var c;
@@ -2619,7 +2670,7 @@ const f7 = "anduin-toggle-group:change", v7 = "anduin-toggle-group-item:change",
2619
2670
  if (d == null || d.emitSelectionChange(!n), this.mode === "single" && !n)
2620
2671
  for (const C of i)
2621
2672
  (c = this.items.find((p) => p.value === C)) == null || c.emitSelectionChange(!1);
2622
- this.dispatchEvent(new CustomEvent(f7, {
2673
+ this.dispatchEvent(new CustomEvent(m7, {
2623
2674
  detail: l.join(" "),
2624
2675
  bubbles: !0,
2625
2676
  composed: !0
@@ -2630,16 +2681,16 @@ const f7 = "anduin-toggle-group:change", v7 = "anduin-toggle-group-item:change",
2630
2681
  return this.value != null;
2631
2682
  }
2632
2683
  get selection() {
2633
- return this.isControlled ? j2(this.value) : this.internalValue;
2684
+ return this.isControlled ? K2(this.value) : this.internalValue;
2634
2685
  }
2635
2686
  connectedCallback() {
2636
- super.connectedCallback(), this.hasUpdated || (this.internalValue = j2(this.defaultValue)), this.addEventListener(e5, this.onItemClick);
2687
+ super.connectedCallback(), this.hasUpdated || (this.internalValue = K2(this.defaultValue)), this.addEventListener(r5, this.onItemClick);
2637
2688
  }
2638
2689
  willUpdate(e) {
2639
- e.has("defaultValue") && !this.isControlled && !this.userInteracted && (this.internalValue = j2(this.defaultValue));
2690
+ e.has("defaultValue") && !this.isControlled && !this.userInteracted && (this.internalValue = K2(this.defaultValue));
2640
2691
  }
2641
2692
  disconnectedCallback() {
2642
- super.disconnectedCallback(), this.removeEventListener(e5, this.onItemClick);
2693
+ super.disconnectedCallback(), this.removeEventListener(r5, this.onItemClick);
2643
2694
  }
2644
2695
  updated() {
2645
2696
  this.syncItems();
@@ -2660,7 +2711,7 @@ const f7 = "anduin-toggle-group:change", v7 = "anduin-toggle-group-item:change",
2660
2711
  `;
2661
2712
  }
2662
2713
  };
2663
- C4.styles = g`
2714
+ h4.styles = g`
2664
2715
  :host { display: inline-flex; font-family: var(--font-sans); }
2665
2716
  .toggle-group { display: inline-flex; align-items: center; }
2666
2717
  .toggle-group--small {
@@ -2694,7 +2745,7 @@ C4.styles = g`
2694
2745
  /* Gapped pills stand alone, so each keeps all four borders. */
2695
2746
  .toggle-group--gap ::slotted(anduin-toggle-group-item) { --toggle-group-item-radius: 4px; --toggle-group-item-border-left: 1px; }
2696
2747
  `;
2697
- let Y = C4;
2748
+ let Y = h4;
2698
2749
  F([
2699
2750
  a()
2700
2751
  ], Y.prototype, "mode");
@@ -2716,17 +2767,17 @@ F([
2716
2767
  F([
2717
2768
  H()
2718
2769
  ], Y.prototype, "internalValue");
2719
- const p4 = class p4 extends h {
2770
+ const u4 = class u4 extends h {
2720
2771
  constructor() {
2721
2772
  super(...arguments), this.value = "", this.startIcon = "", this.disabled = !1, this.selected = !1, this.groupSize = "medium", this.groupVariant = "gray", this.groupMode = "single";
2722
2773
  }
2723
2774
  /** Called by the parent group when the user's action changes this item's selection. */
2724
2775
  emitSelectionChange(e) {
2725
- this.dispatchEvent(new CustomEvent(v7, {
2776
+ this.dispatchEvent(new CustomEvent(b7, {
2726
2777
  detail: e,
2727
2778
  bubbles: !0,
2728
2779
  composed: !0
2729
- })), this.dispatchEvent(new CustomEvent(e ? b7 : m7, {
2780
+ })), this.dispatchEvent(new CustomEvent(e ? H7 : y7, {
2730
2781
  detail: this.value,
2731
2782
  bubbles: !0,
2732
2783
  composed: !0
@@ -2736,7 +2787,7 @@ const p4 = class p4 extends h {
2736
2787
  (e.has("selected") || e.has("groupMode")) && (this.groupMode === "single" ? (this.setAttribute("role", "radio"), this.setAttribute("aria-checked", String(this.selected))) : (this.removeAttribute("role"), this.removeAttribute("aria-checked")));
2737
2788
  }
2738
2789
  onClick() {
2739
- this.dispatchEvent(new CustomEvent(e5, {
2790
+ this.dispatchEvent(new CustomEvent(r5, {
2740
2791
  detail: this.value,
2741
2792
  bubbles: !0,
2742
2793
  composed: !0
@@ -2766,7 +2817,7 @@ const p4 = class p4 extends h {
2766
2817
  `;
2767
2818
  }
2768
2819
  };
2769
- p4.styles = g`
2820
+ u4.styles = g`
2770
2821
  :host { display: inline-block; font-family: var(--font-sans); }
2771
2822
  .toggle-item {
2772
2823
  position: relative; z-index: 0; box-sizing: border-box;
@@ -2802,7 +2853,7 @@ p4.styles = g`
2802
2853
  .toggle-item--selected .toggle-item__icon { color: var(--color-gray-7); }
2803
2854
  .toggle-item--variant-primary.toggle-item--selected .toggle-item__icon { color: var(--color-primary-4); }
2804
2855
  `;
2805
- let q = p4;
2856
+ let q = u4;
2806
2857
  F([
2807
2858
  a({ reflect: !0 })
2808
2859
  ], q.prototype, "value");
@@ -2824,17 +2875,17 @@ F([
2824
2875
  F([
2825
2876
  a({ attribute: !1 })
2826
2877
  ], q.prototype, "groupMode");
2827
- function j2(r) {
2878
+ function K2(r) {
2828
2879
  return r.split(" ").map((e) => e.trim()).filter(Boolean);
2829
2880
  }
2830
2881
  customElements.get("anduin-toggle-group") || customElements.define("anduin-toggle-group", Y);
2831
2882
  customElements.get("anduin-toggle-group-item") || customElements.define("anduin-toggle-group-item", q);
2832
- var H7 = Object.defineProperty, ne = (r, e, t, o) => {
2883
+ var _7 = Object.defineProperty, le = (r, e, t, o) => {
2833
2884
  for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
2834
2885
  (l = r[n]) && (i = l(e, t, i) || i);
2835
- return i && H7(e, t, i), i;
2886
+ return i && _7(e, t, i), i;
2836
2887
  };
2837
- const re = "anduin-tooltip:show", P5 = "anduin-tooltip:hide", le = "anduin-tooltip:trigger-mounted", ae = "anduin-tooltip:content-popup-mounted", se = "anduin-tooltip:content-popup-unmounted", de = "anduin-tooltip:visibility-changed", y7 = [
2888
+ const ae = "anduin-tooltip:show", T5 = "anduin-tooltip:hide", se = "anduin-tooltip:trigger-mounted", de = "anduin-tooltip:content-popup-mounted", ce = "anduin-tooltip:content-popup-unmounted", Ce = "anduin-tooltip:visibility-changed", L7 = [
2838
2889
  "top-start",
2839
2890
  "top-center",
2840
2891
  "top-end",
@@ -2848,7 +2899,7 @@ const re = "anduin-tooltip:show", P5 = "anduin-tooltip:hide", le = "anduin-toolt
2848
2899
  "left-center",
2849
2900
  "left-end"
2850
2901
  ];
2851
- function L3(r, e, t, o, i) {
2902
+ function M3(r, e, t, o, i) {
2852
2903
  switch (o) {
2853
2904
  case "top-start":
2854
2905
  return { left: r.left, top: r.top - t - i };
@@ -2878,43 +2929,43 @@ function L3(r, e, t, o, i) {
2878
2929
  return { left: 0, top: 0 };
2879
2930
  }
2880
2931
  }
2881
- function x3(r, e) {
2932
+ function w3(r, e) {
2882
2933
  return e.right >= r.left && e.left <= r.right && e.top <= r.bottom && e.bottom >= r.top;
2883
2934
  }
2884
- function M3(r, e) {
2935
+ function Z3(r, e) {
2885
2936
  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);
2886
2937
  return i < t || n < o ? 0 : (i - t) * (n - o);
2887
2938
  }
2888
- function _7(r, e, t, o = 8) {
2939
+ function V7(r, e, t, o = 8) {
2889
2940
  const i = window.innerWidth, n = window.innerHeight, l = { left: 0, top: 0, right: i, bottom: n }, d = e.width, c = e.height;
2890
- if (!x3(
2941
+ if (!w3(
2891
2942
  { left: r.left, top: r.top, right: r.right, bottom: r.bottom },
2892
2943
  l
2893
2944
  )) return null;
2894
- const C = L3(r, d, c, t, o), p = y7.map((b) => ({ p: b, off: L3(r, d, c, b, o) })).filter(({ off: b }) => x3({ left: b.left, top: b.top, right: b.left + d, bottom: b.top + c }, l));
2945
+ const C = M3(r, d, c, t, o), p = L7.map((m) => ({ p: m, off: M3(r, d, c, m, o) })).filter(({ off: m }) => w3({ left: m.left, top: m.top, right: m.left + d, bottom: m.top + c }, l));
2895
2946
  if (p.length === 0)
2896
2947
  return {
2897
2948
  placement: t,
2898
2949
  left: Math.round(Math.min(Math.max(C.left, 0), i - d)),
2899
2950
  top: Math.round(Math.min(Math.max(C.top, 0), n - c))
2900
2951
  };
2901
- p.sort((b, L) => {
2902
- const _ = { left: b.off.left, top: b.off.top, right: b.off.left + d, bottom: b.off.top + c }, v = { left: L.off.left, top: L.off.top, right: L.off.left + d, bottom: L.off.top + c }, x = M3(_, l), M = M3(v, l);
2952
+ p.sort((m, V) => {
2953
+ const _ = { 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 = Z3(_, l), M = Z3(v, l);
2903
2954
  if (M !== x) return M - x;
2904
- const S = Math.abs(b.off.left - C.left) + Math.abs(b.off.top - C.top), j = Math.abs(L.off.left - C.left) + Math.abs(L.off.top - C.top);
2905
- return S - j;
2955
+ const S = Math.abs(m.off.left - C.left) + Math.abs(m.off.top - C.top), U = Math.abs(V.off.left - C.left) + Math.abs(V.off.top - C.top);
2956
+ return S - U;
2906
2957
  });
2907
- const { p: f, off: m } = p[0];
2958
+ const { p: f, off: b } = p[0];
2908
2959
  return {
2909
2960
  placement: f,
2910
- left: Math.round(Math.min(Math.max(m.left, 0), i - d)),
2911
- top: Math.round(Math.min(Math.max(m.top, 0), n - c))
2961
+ left: Math.round(Math.min(Math.max(b.left, 0), i - d)),
2962
+ top: Math.round(Math.min(Math.max(b.top, 0), n - c))
2912
2963
  };
2913
2964
  }
2914
- function t5(r) {
2965
+ function l5(r) {
2915
2966
  return r.split("-")[0] || "top";
2916
2967
  }
2917
- function V7(r, e, t) {
2968
+ function x7(r, e, t) {
2918
2969
  let o = !1, i = t.length - 1;
2919
2970
  for (let n = 0; n < t.length; n++) {
2920
2971
  const l = t[n][0], d = t[n][1], c = t[i][0], C = t[i][1];
@@ -2922,20 +2973,20 @@ function V7(r, e, t) {
2922
2973
  }
2923
2974
  return o;
2924
2975
  }
2925
- const u4 = class u4 extends h {
2976
+ const g4 = class g4 extends h {
2926
2977
  constructor() {
2927
2978
  super(...arguments), this.disabled = !1, this.placement = "top-center", this.triggerElement = null, this.contentPopupElement = null, this.containingBlockLeft = 0, this.containingBlockTop = 0, this.rafId = 0, this.prevTriggerTop = NaN, this.prevTriggerLeft = NaN, this.isVisible = !1;
2928
2979
  }
2929
2980
  connectedCallback() {
2930
- super.connectedCallback(), this.addEventListener(le, (e) => {
2981
+ super.connectedCallback(), this.addEventListener(se, (e) => {
2931
2982
  e.stopPropagation(), this.triggerElement = e.detail, this.maybeStartPositionLoop();
2932
- }), this.addEventListener(ae, (e) => {
2983
+ }), this.addEventListener(de, (e) => {
2933
2984
  e.stopPropagation(), this.contentPopupElement = e.detail, this.computeContainingBlockOffset(this.contentPopupElement), this.maybeStartPositionLoop();
2934
- }), this.addEventListener(se, (e) => {
2985
+ }), this.addEventListener(ce, (e) => {
2935
2986
  e.stopPropagation(), this.stopPositionLoop(), this.contentPopupElement = null;
2936
- }), this.addEventListener(re, (e) => {
2987
+ }), this.addEventListener(ae, (e) => {
2937
2988
  e.stopPropagation(), !this.disabled && (this.isVisible = !0, this.broadcastVisibilityChanged(`show:${this.placement}`));
2938
- }), this.addEventListener(P5, (e) => {
2989
+ }), this.addEventListener(T5, (e) => {
2939
2990
  e.stopPropagation(), this.isVisible = !1, this.stopPositionLoop(), this.broadcastVisibilityChanged("hide");
2940
2991
  });
2941
2992
  }
@@ -2966,11 +3017,11 @@ const u4 = class u4 extends h {
2966
3017
  this.containingBlockLeft = i.left, this.containingBlockTop = i.top, t.style.transform = o;
2967
3018
  }
2968
3019
  positionPopup(e, t, o) {
2969
- const i = t.getBoundingClientRect(), n = e.getBoundingClientRect(), l = _7(i, n, o, 8);
3020
+ const i = t.getBoundingClientRect(), n = e.getBoundingClientRect(), l = V7(i, n, o, 8);
2970
3021
  if (l) {
2971
3022
  const d = e;
2972
3023
  d.style.transform = `translate(${l.left - this.containingBlockLeft}px, ${l.top - this.containingBlockTop}px)`;
2973
- const c = t5(l.placement), C = t5(o);
3024
+ const c = l5(l.placement), C = l5(o);
2974
3025
  if (c !== C) {
2975
3026
  const p = e.querySelector(".tooltip-arrow");
2976
3027
  p && (p.classList.remove(`tooltip-arrow--${C}`), p.classList.add(`tooltip-arrow--${c}`));
@@ -2978,13 +3029,13 @@ const u4 = class u4 extends h {
2978
3029
  }
2979
3030
  }
2980
3031
  broadcastVisibilityChanged(e) {
2981
- this.dispatchEvent(new CustomEvent(de, { detail: e, bubbles: !1, composed: !1 }));
3032
+ this.dispatchEvent(new CustomEvent(Ce, { detail: e, bubbles: !1, composed: !1 }));
2982
3033
  }
2983
3034
  render() {
2984
3035
  return s`<div class="tooltip-root" part="tooltip"><slot></slot></div>`;
2985
3036
  }
2986
3037
  };
2987
- u4.styles = g`
3038
+ g4.styles = g`
2988
3039
  /* inline-flex, not inline-block: the wrapper is purely structural (it exists
2989
3040
  to position the popup), so it must not add height of its own. As an
2990
3041
  inline-block it establishes a line box, and an inline-level trigger sits
@@ -2995,39 +3046,39 @@ u4.styles = g`
2995
3046
  :host { display: inline-flex; position: relative; max-width: 100%; font-family: var(--font-sans); }
2996
3047
  .tooltip-root { display: inline-flex; position: relative; max-width: 100%; }
2997
3048
  `;
2998
- let g2 = u4;
2999
- ne([
3049
+ let f2 = g4;
3050
+ le([
3000
3051
  a({ type: Boolean })
3001
- ], g2.prototype, "disabled");
3002
- ne([
3052
+ ], f2.prototype, "disabled");
3053
+ le([
3003
3054
  a()
3004
- ], g2.prototype, "placement");
3005
- const h4 = class h4 extends h {
3055
+ ], f2.prototype, "placement");
3056
+ const f4 = class f4 extends h {
3006
3057
  firstUpdated() {
3007
3058
  requestAnimationFrame(() => {
3008
- this.dispatchEvent(new CustomEvent(le, { detail: this, bubbles: !0, composed: !0 }));
3059
+ this.dispatchEvent(new CustomEvent(se, { detail: this, bubbles: !0, composed: !0 }));
3009
3060
  }), this.addEventListener("pointerenter", () => {
3010
- this.dispatchEvent(new CustomEvent(re, { bubbles: !0, composed: !0 }));
3061
+ this.dispatchEvent(new CustomEvent(ae, { bubbles: !0, composed: !0 }));
3011
3062
  }), this.addEventListener("click", () => {
3012
- this.dispatchEvent(new CustomEvent(P5, { bubbles: !0, composed: !0 }));
3063
+ this.dispatchEvent(new CustomEvent(T5, { bubbles: !0, composed: !0 }));
3013
3064
  });
3014
3065
  }
3015
3066
  render() {
3016
3067
  return s`<span class="tooltip-trigger" part="tooltip-trigger"><slot></slot></span>`;
3017
3068
  }
3018
3069
  };
3019
- h4.styles = g`
3070
+ f4.styles = g`
3020
3071
  :host { display: inline-block; max-width: 100%; font-family: var(--font-sans); }
3021
3072
  .tooltip-trigger { display: flex; align-items: center; max-width: 100%; }
3022
3073
  `;
3023
- let i5 = h4;
3024
- const g4 = class g4 extends h {
3074
+ let a5 = f4;
3075
+ const v4 = class v4 extends h {
3025
3076
  constructor() {
3026
3077
  super(...arguments), this.graceArea = null, this.triggerEl = null, this.popupEl = null, this.handlePointerMove = (e) => {
3027
3078
  var n, l;
3028
3079
  if (!this.graceArea) return;
3029
3080
  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;
3030
- o || i ? this.graceArea = null : V7(e.clientX, e.clientY, this.graceArea) || (this.graceArea = null, this.dispatchEvent(new CustomEvent(P5, { bubbles: !0, composed: !0 })));
3081
+ o || i ? this.graceArea = null : x7(e.clientX, e.clientY, this.graceArea) || (this.graceArea = null, this.dispatchEvent(new CustomEvent(T5, { bubbles: !0, composed: !0 })));
3031
3082
  }, this.handleTriggerLeave = (e) => {
3032
3083
  this.triggerEl && this.popupEl && this.createGraceArea(this.triggerEl, this.popupEl, e);
3033
3084
  }, this.handleContentLeave = (e) => {
@@ -3037,7 +3088,7 @@ const g4 = class g4 extends h {
3037
3088
  connectedCallback() {
3038
3089
  super.connectedCallback();
3039
3090
  const e = this.closest("anduin-tooltip");
3040
- e && e.addEventListener(de, (t) => {
3091
+ e && e.addEventListener(Ce, (t) => {
3041
3092
  const o = t.detail;
3042
3093
  o.startsWith("show:") ? this.showPopup(o.slice(5)) : this.hidePopup();
3043
3094
  });
@@ -3063,7 +3114,7 @@ const g4 = class g4 extends h {
3063
3114
  }
3064
3115
  showPopup(e) {
3065
3116
  this.hidePopup();
3066
- const t = t5(e), o = document.createElement("div");
3117
+ const t = l5(e), o = document.createElement("div");
3067
3118
  o.className = "tooltip-popup", o.setAttribute("role", "tooltip");
3068
3119
  const i = document.createElement("div");
3069
3120
  i.className = `tooltip-arrow tooltip-arrow--${t}`;
@@ -3076,16 +3127,16 @@ const g4 = class g4 extends h {
3076
3127
  const c = d.querySelector("anduin-tooltip-trigger");
3077
3128
  c && this.setupGraceAreaListeners(c, o);
3078
3129
  }
3079
- this.dispatchEvent(new CustomEvent(ae, { detail: o, bubbles: !0, composed: !0 }));
3130
+ this.dispatchEvent(new CustomEvent(de, { detail: o, bubbles: !0, composed: !0 }));
3080
3131
  }
3081
3132
  hidePopup() {
3082
- this.popupEl && (this.popupEl.remove(), this.popupEl = null, this.dispatchEvent(new CustomEvent(se, { bubbles: !0, composed: !0 }))), this.cleanupGraceAreaListeners();
3133
+ this.popupEl && (this.popupEl.remove(), this.popupEl = null, this.dispatchEvent(new CustomEvent(ce, { bubbles: !0, composed: !0 }))), this.cleanupGraceAreaListeners();
3083
3134
  }
3084
3135
  render() {
3085
3136
  return s`<div class="tooltip-content-wrapper"></div>`;
3086
3137
  }
3087
3138
  };
3088
- g4.styles = g`
3139
+ v4.styles = g`
3089
3140
  :host {
3090
3141
  display: contents;
3091
3142
  --tooltip-bg: var(--anduin-tooltip-content-background, var(--color-gray-9));
@@ -3109,16 +3160,16 @@ g4.styles = g`
3109
3160
  .tooltip-arrow--left { right: -4px; top: 50%; transform: translateY(-50%); border-left-color: var(--tooltip-bg); border-right: none; }
3110
3161
  .tooltip-arrow--right { left: -4px; top: 50%; transform: translateY(-50%); border-right-color: var(--tooltip-bg); border-left: none; }
3111
3162
  `;
3112
- let o5 = g4;
3113
- customElements.get("anduin-tooltip") || customElements.define("anduin-tooltip", g2);
3114
- customElements.get("anduin-tooltip-trigger") || customElements.define("anduin-tooltip-trigger", i5);
3115
- customElements.get("anduin-tooltip-content") || customElements.define("anduin-tooltip-content", o5);
3116
- var L7 = Object.defineProperty, x7 = (r, e, t, o) => {
3163
+ let s5 = v4;
3164
+ customElements.get("anduin-tooltip") || customElements.define("anduin-tooltip", f2);
3165
+ customElements.get("anduin-tooltip-trigger") || customElements.define("anduin-tooltip-trigger", a5);
3166
+ customElements.get("anduin-tooltip-content") || customElements.define("anduin-tooltip-content", s5);
3167
+ var M7 = Object.defineProperty, w7 = (r, e, t, o) => {
3117
3168
  for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
3118
3169
  (l = r[n]) && (i = l(e, t, i) || i);
3119
- return i && L7(e, t, i), i;
3170
+ return i && M7(e, t, i), i;
3120
3171
  };
3121
- const M7 = "anduin-well-close:click", f4 = class f4 extends h {
3172
+ const Z7 = "anduin-well-close:click", m4 = class m4 extends h {
3122
3173
  constructor() {
3123
3174
  super(...arguments), this.variant = "gray";
3124
3175
  }
@@ -3138,7 +3189,7 @@ const M7 = "anduin-well-close:click", f4 = class f4 extends h {
3138
3189
  `;
3139
3190
  }
3140
3191
  };
3141
- f4.styles = g`
3192
+ m4.styles = g`
3142
3193
  :host {
3143
3194
  display: block;
3144
3195
  font-family: var(--font-sans);
@@ -3213,14 +3264,14 @@ f4.styles = g`
3213
3264
  color: var(--color-warning-4);
3214
3265
  }
3215
3266
  `;
3216
- let E2 = f4;
3217
- x7([
3267
+ let z2 = m4;
3268
+ w7([
3218
3269
  a()
3219
- ], E2.prototype, "variant");
3220
- const v4 = class v4 extends h {
3270
+ ], z2.prototype, "variant");
3271
+ const b4 = class b4 extends h {
3221
3272
  onClick() {
3222
3273
  this.dispatchEvent(
3223
- new CustomEvent(M7, { bubbles: !0, composed: !0 })
3274
+ new CustomEvent(Z7, { bubbles: !0, composed: !0 })
3224
3275
  );
3225
3276
  }
3226
3277
  render() {
@@ -3235,7 +3286,7 @@ const v4 = class v4 extends h {
3235
3286
  `;
3236
3287
  }
3237
3288
  };
3238
- v4.styles = g`
3289
+ b4.styles = g`
3239
3290
  :host {
3240
3291
  display: inline-block;
3241
3292
  font-family: var(--font-sans);
@@ -3260,15 +3311,15 @@ v4.styles = g`
3260
3311
  background-color: var(--color-gray-3);
3261
3312
  }
3262
3313
  `;
3263
- let n5 = v4;
3264
- customElements.get("anduin-well") || customElements.define("anduin-well", E2);
3265
- customElements.get("anduin-well-close") || customElements.define("anduin-well-close", n5);
3266
- var w7 = Object.defineProperty, k1 = (r, e, t, o) => {
3314
+ let d5 = b4;
3315
+ customElements.get("anduin-well") || customElements.define("anduin-well", z2);
3316
+ customElements.get("anduin-well-close") || customElements.define("anduin-well-close", d5);
3317
+ var k7 = Object.defineProperty, k1 = (r, e, t, o) => {
3267
3318
  for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
3268
3319
  (l = r[n]) && (i = l(e, t, i) || i);
3269
- return i && w7(e, t, i), i;
3320
+ return i && k7(e, t, i), i;
3270
3321
  };
3271
- const r5 = "anduin-popover:close", l5 = "anduin-popover:open-change", b4 = class b4 extends h {
3322
+ const c5 = "anduin-popover:close", C5 = "anduin-popover:open-change", H4 = class H4 extends h {
3272
3323
  constructor() {
3273
3324
  super(...arguments), this.open = !1, this.placement = "bottom-start", this.fullWidth = !1, this._visible = !1, this._closing = !1, this._closeTransitionEndHandler = null, this._onOutsideClick = (e) => {
3274
3325
  e.composedPath().includes(this) || (this.open = !1);
@@ -3282,13 +3333,13 @@ const r5 = "anduin-popover:close", l5 = "anduin-popover:open-change", b4 = class
3282
3333
  this.open = !this.open;
3283
3334
  }
3284
3335
  connectedCallback() {
3285
- super.connectedCallback(), document.addEventListener("click", this._onOutsideClick), window.addEventListener("scroll", this._onScrollOrResize, { passive: !0, capture: !0 }), window.addEventListener("resize", this._onScrollOrResize), this.addEventListener(r5, this._onPopoverClose);
3336
+ super.connectedCallback(), document.addEventListener("click", this._onOutsideClick), window.addEventListener("scroll", this._onScrollOrResize, { passive: !0, capture: !0 }), window.addEventListener("resize", this._onScrollOrResize), this.addEventListener(c5, this._onPopoverClose);
3286
3337
  }
3287
3338
  disconnectedCallback() {
3288
- super.disconnectedCallback(), document.removeEventListener("click", this._onOutsideClick), window.removeEventListener("scroll", this._onScrollOrResize, { capture: !0 }), window.removeEventListener("resize", this._onScrollOrResize), this.removeEventListener(r5, this._onPopoverClose);
3339
+ super.disconnectedCallback(), document.removeEventListener("click", this._onOutsideClick), window.removeEventListener("scroll", this._onScrollOrResize, { capture: !0 }), window.removeEventListener("resize", this._onScrollOrResize), this.removeEventListener(c5, this._onPopoverClose);
3289
3340
  }
3290
3341
  updated(e) {
3291
- e.has("open") && (this.dispatchEvent(new CustomEvent(l5, {
3342
+ e.has("open") && (this.dispatchEvent(new CustomEvent(C5, {
3292
3343
  detail: this.open,
3293
3344
  bubbles: !0,
3294
3345
  composed: !0
@@ -3317,11 +3368,11 @@ const r5 = "anduin-popover:close", l5 = "anduin-popover:open-change", b4 = class
3317
3368
  const n = t.getBoundingClientRect();
3318
3369
  t.style.transform = i;
3319
3370
  const l = t.getBoundingClientRect(), d = 4, c = window.innerWidth, C = window.innerHeight, p = 8;
3320
- let f = 0, m = 0, b = "bottom";
3321
- const L = !this.placement.startsWith("top"), _ = C - o.bottom - d, v = o.top - d, x = _ >= l.height, M = v >= l.height, S = L ? x || _ >= v : !M && x;
3322
- b = S ? "bottom" : "top", m = S ? o.bottom + d : o.top - l.height - d;
3323
- const j = this.placement.endsWith("end") ? "end" : this.placement.endsWith("start") ? "start" : "center";
3324
- j === "start" ? f = o.left : j === "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)), m = Math.max(p, Math.min(m, C - l.height - p)), t.style.transform = `translate(${Math.round(f - n.left)}px, ${Math.round(m - n.top)}px)`, t.dataset.side = b;
3371
+ let f = 0, b = 0, m = "bottom";
3372
+ const V = !this.placement.startsWith("top"), _ = C - o.bottom - d, v = o.top - d, x = _ >= l.height, M = v >= l.height, S = V ? x || _ >= v : !M && x;
3373
+ m = S ? "bottom" : "top", b = S ? o.bottom + d : o.top - l.height - d;
3374
+ const U = this.placement.endsWith("end") ? "end" : this.placement.endsWith("start") ? "start" : "center";
3375
+ U === "start" ? f = o.left : U === "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)), b = Math.max(p, Math.min(b, C - l.height - p)), t.style.transform = `translate(${Math.round(f - n.left)}px, ${Math.round(b - n.top)}px)`, t.dataset.side = m;
3325
3376
  }
3326
3377
  render() {
3327
3378
  return s`
@@ -3336,7 +3387,7 @@ const r5 = "anduin-popover:close", l5 = "anduin-popover:open-change", b4 = class
3336
3387
  `;
3337
3388
  }
3338
3389
  };
3339
- b4.styles = g`
3390
+ H4.styles = g`
3340
3391
  :host { display: inline-block; font-family: var(--font-sans); }
3341
3392
  :host([full-width]) { display: block; width: 100%; }
3342
3393
 
@@ -3389,7 +3440,7 @@ b4.styles = g`
3389
3440
  transform: none;
3390
3441
  }
3391
3442
  `;
3392
- let X = b4;
3443
+ let X = H4;
3393
3444
  k1([
3394
3445
  a({ type: Boolean, reflect: !0 })
3395
3446
  ], X.prototype, "open");
@@ -3412,23 +3463,23 @@ k1([
3412
3463
  z(".popover__panel")
3413
3464
  ], X.prototype, "_panelEl");
3414
3465
  customElements.get("anduin-popover") || customElements.define("anduin-popover", X);
3415
- const m4 = class m4 extends h {
3466
+ const y4 = class y4 extends h {
3416
3467
  _onClick() {
3417
- this.dispatchEvent(new CustomEvent(r5, { bubbles: !0, composed: !0 }));
3468
+ this.dispatchEvent(new CustomEvent(c5, { bubbles: !0, composed: !0 }));
3418
3469
  }
3419
3470
  render() {
3420
3471
  return s`<span @click=${this._onClick}><slot></slot></span>`;
3421
3472
  }
3422
3473
  };
3423
- m4.styles = g`:host { display: contents; }`;
3424
- let a5 = m4;
3425
- customElements.get("anduin-popover-close") || customElements.define("anduin-popover-close", a5);
3426
- var Z7 = Object.defineProperty, R1 = (r, e, t, o) => {
3474
+ y4.styles = g`:host { display: contents; }`;
3475
+ let p5 = y4;
3476
+ customElements.get("anduin-popover-close") || customElements.define("anduin-popover-close", p5);
3477
+ var R7 = Object.defineProperty, R1 = (r, e, t, o) => {
3427
3478
  for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
3428
3479
  (l = r[n]) && (i = l(e, t, i) || i);
3429
- return i && Z7(e, t, i), i;
3480
+ return i && R7(e, t, i), i;
3430
3481
  };
3431
- const s5 = "anduin-menu-item:click", H4 = class H4 extends h {
3482
+ const h5 = "anduin-menu-item:click", _4 = class _4 extends h {
3432
3483
  constructor() {
3433
3484
  super(...arguments), this.open = !1, this.placement = "bottom-start", this._onOutsideClick = (e) => {
3434
3485
  e.composedPath().includes(this) || (this.open = !1);
@@ -3442,10 +3493,10 @@ const s5 = "anduin-menu-item:click", H4 = class H4 extends h {
3442
3493
  this.open = !this.open;
3443
3494
  }
3444
3495
  connectedCallback() {
3445
- super.connectedCallback(), document.addEventListener("click", this._onOutsideClick), this.addEventListener(s5, this._onItemClick), window.addEventListener("scroll", this._onScrollOrResize, { passive: !0, capture: !0 }), window.addEventListener("resize", this._onScrollOrResize);
3496
+ super.connectedCallback(), document.addEventListener("click", this._onOutsideClick), this.addEventListener(h5, this._onItemClick), window.addEventListener("scroll", this._onScrollOrResize, { passive: !0, capture: !0 }), window.addEventListener("resize", this._onScrollOrResize);
3446
3497
  }
3447
3498
  disconnectedCallback() {
3448
- super.disconnectedCallback(), document.removeEventListener("click", this._onOutsideClick), this.removeEventListener(s5, this._onItemClick), window.removeEventListener("scroll", this._onScrollOrResize, { capture: !0 }), window.removeEventListener("resize", this._onScrollOrResize);
3499
+ super.disconnectedCallback(), document.removeEventListener("click", this._onOutsideClick), this.removeEventListener(h5, this._onItemClick), window.removeEventListener("scroll", this._onScrollOrResize, { capture: !0 }), window.removeEventListener("resize", this._onScrollOrResize);
3449
3500
  }
3450
3501
  updated(e) {
3451
3502
  e.has("open") && this.open && requestAnimationFrame(() => this._updatePosition());
@@ -3494,7 +3545,7 @@ const s5 = "anduin-menu-item:click", H4 = class H4 extends h {
3494
3545
  `;
3495
3546
  }
3496
3547
  };
3497
- H4.styles = g`
3548
+ _4.styles = g`
3498
3549
  :host { display: inline-block; font-family: var(--font-sans); }
3499
3550
 
3500
3551
  .menu__trigger { display: inline-block; }
@@ -3537,7 +3588,7 @@ H4.styles = g`
3537
3588
  transform: scale(1) translateY(0);
3538
3589
  }
3539
3590
  `;
3540
- let Z1 = H4;
3591
+ let Z1 = _4;
3541
3592
  R1([
3542
3593
  a({ type: Boolean, reflect: !0 })
3543
3594
  ], Z1.prototype, "open");
@@ -3550,12 +3601,12 @@ R1([
3550
3601
  R1([
3551
3602
  z(".menu__panel")
3552
3603
  ], Z1.prototype, "_panelEl");
3553
- const y4 = class y4 extends h {
3604
+ const L4 = class L4 extends h {
3554
3605
  constructor() {
3555
3606
  super(...arguments), this.icon = "", this.variant = "default", this.disabled = !1;
3556
3607
  }
3557
3608
  _onClick() {
3558
- this.dispatchEvent(new CustomEvent(s5, { bubbles: !0, composed: !0 }));
3609
+ this.dispatchEvent(new CustomEvent(h5, { bubbles: !0, composed: !0 }));
3559
3610
  }
3560
3611
  render() {
3561
3612
  return s`
@@ -3572,7 +3623,7 @@ const y4 = class y4 extends h {
3572
3623
  `;
3573
3624
  }
3574
3625
  };
3575
- y4.styles = g`
3626
+ L4.styles = g`
3576
3627
  :host { display: block; width: 100%; font-family: var(--font-sans); }
3577
3628
  .menu-item {
3578
3629
  display: flex;
@@ -3602,7 +3653,7 @@ y4.styles = g`
3602
3653
  anduin-icon { color: var(--color-gray-7); }
3603
3654
  .menu-item--danger anduin-icon { color: var(--color-danger-4); }
3604
3655
  `;
3605
- let T1 = y4;
3656
+ let T1 = L4;
3606
3657
  R1([
3607
3658
  a()
3608
3659
  ], T1.prototype, "icon");
@@ -3614,41 +3665,41 @@ R1([
3614
3665
  ], T1.prototype, "disabled");
3615
3666
  customElements.get("anduin-menu") || customElements.define("anduin-menu", Z1);
3616
3667
  customElements.get("anduin-menu-item") || customElements.define("anduin-menu-item", T1);
3617
- var k7 = Object.defineProperty, $1 = (r, e, t, o) => {
3668
+ var $7 = Object.defineProperty, $1 = (r, e, t, o) => {
3618
3669
  for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
3619
3670
  (l = r[n]) && (i = l(e, t, i) || i);
3620
- return i && k7(e, t, i), i;
3671
+ return i && $7(e, t, i), i;
3621
3672
  };
3622
- const Q1 = "anduin-close", R7 = "anduin-after-close", U2 = 300, G2 = 200, w3 = 250;
3623
- let i2 = 0, ce = "";
3624
- function $7() {
3625
- typeof document > "u" || (i2 === 0 && (ce = document.body.style.overflow, document.body.style.overflow = "hidden"), i2++);
3673
+ const Q1 = "anduin-close", W2 = "anduin-after-close", Y2 = 300, q2 = 200, k3 = 250;
3674
+ let o2 = 0, pe = "";
3675
+ function E7() {
3676
+ typeof document > "u" || (o2 === 0 && (pe = document.body.style.overflow, document.body.style.overflow = "hidden"), o2++);
3626
3677
  }
3627
- function Z3() {
3628
- typeof document > "u" || i2 !== 0 && (i2--, i2 === 0 && (document.body.style.overflow = ce));
3678
+ function R3() {
3679
+ typeof document > "u" || o2 !== 0 && (o2--, o2 === 0 && (document.body.style.overflow = pe));
3629
3680
  }
3630
- var p1;
3631
- const H1 = (p1 = class extends h {
3681
+ var h1;
3682
+ const y1 = (h1 = class extends h {
3632
3683
  constructor() {
3633
3684
  super(...arguments), this.open = !1, this.heading = "", this.hideHeader = !1, this.hideFooter = !1, this.maxWidth = "480", this.fullscreen = !1, this._leaving = !1, this._holdsScrollLock = !1, this.onAnduinClose = (e) => {
3634
- e.target !== this && e.stopPropagation();
3685
+ e.stopPropagation();
3635
3686
  };
3636
3687
  }
3637
3688
  updated(e) {
3638
3689
  if (e.has("maxWidth")) {
3639
- const t = this.maxWidth, o = p1._PRESETS.has(t) ? `${t}px` : t;
3690
+ const t = this.maxWidth, o = h1._PRESETS.has(t) ? `${t}px` : t;
3640
3691
  this.style.setProperty("--_modal-width", o);
3641
3692
  }
3642
- e.has("open") && (this.open ? (this._leaving = !1, this.classList.add("is-shown"), this._holdsScrollLock || (this._holdsScrollLock = !0, $7())) : this.classList.contains("is-shown") && (this._leaving = !0, setTimeout(
3693
+ e.has("open") && (this.open ? (this._leaving = !1, this.classList.add("is-shown"), this._holdsScrollLock || (this._holdsScrollLock = !0, E7())) : this.classList.contains("is-shown") && (this._leaving = !0, setTimeout(
3643
3694
  () => {
3644
- this._leaving = !1, this.classList.remove("is-shown"), this._holdsScrollLock && (this._holdsScrollLock = !1, Z3()), this.dispatchEvent(
3645
- new CustomEvent(R7, {
3695
+ this._leaving = !1, this.classList.remove("is-shown"), this._holdsScrollLock && (this._holdsScrollLock = !1, R3()), this.dispatchEvent(
3696
+ new CustomEvent(W2, {
3646
3697
  bubbles: !0,
3647
3698
  composed: !0
3648
3699
  })
3649
3700
  );
3650
3701
  },
3651
- Math.max(G2, w3)
3702
+ Math.max(q2, k3)
3652
3703
  )));
3653
3704
  }
3654
3705
  dispatch(e) {
@@ -3663,10 +3714,10 @@ const H1 = (p1 = class extends h {
3663
3714
  this.dispatch(Q1);
3664
3715
  }
3665
3716
  connectedCallback() {
3666
- super.connectedCallback(), this.addEventListener(Q1, this.onAnduinClose);
3717
+ super.connectedCallback(), this.addEventListener(Q1, this.onAnduinClose), this.addEventListener(W2, this.onAnduinClose);
3667
3718
  }
3668
3719
  disconnectedCallback() {
3669
- super.disconnectedCallback(), this.removeEventListener(Q1, this.onAnduinClose), this._holdsScrollLock && (this._holdsScrollLock = !1, Z3());
3720
+ super.disconnectedCallback(), this.removeEventListener(Q1, this.onAnduinClose), this.removeEventListener(W2, this.onAnduinClose), this._holdsScrollLock && (this._holdsScrollLock = !1, R3());
3670
3721
  }
3671
3722
  render() {
3672
3723
  const e = this._leaving, t = this.fullscreen;
@@ -3708,7 +3759,7 @@ const H1 = (p1 = class extends h {
3708
3759
  </div>
3709
3760
  `;
3710
3761
  }
3711
- }, p1.styles = g`
3762
+ }, h1.styles = g`
3712
3763
  :host {
3713
3764
  display: none;
3714
3765
  font-family: var(--font-sans);
@@ -3780,11 +3831,11 @@ const H1 = (p1 = class extends h {
3780
3831
  inset: 0;
3781
3832
  background: rgba(50, 60, 77, 0.6);
3782
3833
  cursor: default;
3783
- animation: overlayIn ${U2}ms cubic-bezier(0.2, 0, 0, 1)
3834
+ animation: overlayIn ${Y2}ms cubic-bezier(0.2, 0, 0, 1)
3784
3835
  forwards;
3785
3836
  }
3786
3837
  .overlay.is-leaving {
3787
- animation: overlayOut ${w3}ms
3838
+ animation: overlayOut ${k3}ms
3788
3839
  cubic-bezier(0.3, 0, 0.8, 0.15) forwards;
3789
3840
  }
3790
3841
  .modal-wrapper {
@@ -3810,11 +3861,11 @@ const H1 = (p1 = class extends h {
3810
3861
  0 8px 24px 0 rgba(29, 41, 57, 0.12),
3811
3862
  0 2px 8px 0 rgba(29, 41, 57, 0.08);
3812
3863
  flex-shrink: 0;
3813
- animation: modalIn ${U2}ms cubic-bezier(0.05, 0.7, 0.1, 1)
3864
+ animation: modalIn ${Y2}ms cubic-bezier(0.05, 0.7, 0.1, 1)
3814
3865
  forwards;
3815
3866
  }
3816
3867
  .modal.is-leaving {
3817
- animation: modalOut ${G2}ms
3868
+ animation: modalOut ${q2}ms
3818
3869
  cubic-bezier(0.3, 0, 0.8, 0.15) forwards;
3819
3870
  }
3820
3871
  .modal-wrapper--fullscreen {
@@ -3844,11 +3895,11 @@ const H1 = (p1 = class extends h {
3844
3895
  max-height: 100%;
3845
3896
  height: 100%;
3846
3897
  box-shadow: none;
3847
- animation: modalFullscreenIn ${U2}ms
3898
+ animation: modalFullscreenIn ${Y2}ms
3848
3899
  cubic-bezier(0.05, 0.7, 0.1, 1) forwards;
3849
3900
  }
3850
3901
  .modal--fullscreen.is-leaving {
3851
- animation: modalFullscreenOut ${G2}ms
3902
+ animation: modalFullscreenOut ${q2}ms
3852
3903
  cubic-bezier(0.3, 0, 0.8, 0.15) forwards;
3853
3904
  }
3854
3905
  .header {
@@ -3894,37 +3945,37 @@ const H1 = (p1 = class extends h {
3894
3945
  padding: 16px 24px;
3895
3946
  border-top: 1px solid var(--color-gray-3, #e4e7ec);
3896
3947
  }
3897
- `, p1._PRESETS = /* @__PURE__ */ new Set([
3948
+ `, h1._PRESETS = /* @__PURE__ */ new Set([
3898
3949
  "480",
3899
3950
  "600",
3900
3951
  "720",
3901
3952
  "960",
3902
3953
  "1160"
3903
- ]), p1);
3954
+ ]), h1);
3904
3955
  $1([
3905
3956
  a({ type: Boolean, reflect: !0 })
3906
- ], H1.prototype, "open");
3957
+ ], y1.prototype, "open");
3907
3958
  $1([
3908
3959
  a()
3909
- ], H1.prototype, "heading");
3960
+ ], y1.prototype, "heading");
3910
3961
  $1([
3911
3962
  a({ type: Boolean, attribute: "hide-header" })
3912
- ], H1.prototype, "hideHeader");
3963
+ ], y1.prototype, "hideHeader");
3913
3964
  $1([
3914
3965
  a({ type: Boolean, attribute: "hide-footer" })
3915
- ], H1.prototype, "hideFooter");
3966
+ ], y1.prototype, "hideFooter");
3916
3967
  $1([
3917
3968
  a({ attribute: "max-width" })
3918
- ], H1.prototype, "maxWidth");
3969
+ ], y1.prototype, "maxWidth");
3919
3970
  $1([
3920
3971
  a({ type: Boolean })
3921
- ], H1.prototype, "fullscreen");
3972
+ ], y1.prototype, "fullscreen");
3922
3973
  $1([
3923
3974
  H()
3924
- ], H1.prototype, "_leaving");
3925
- let E7 = H1;
3926
- customElements.get("anduin-modal") || customElements.define("anduin-modal", E7);
3927
- class z7 extends HTMLElement {
3975
+ ], y1.prototype, "_leaving");
3976
+ let z7 = y1;
3977
+ customElements.get("anduin-modal") || customElements.define("anduin-modal", z7);
3978
+ class S7 extends HTMLElement {
3928
3979
  constructor() {
3929
3980
  super(...arguments), this._onClick = () => {
3930
3981
  this.dispatchEvent(
@@ -3939,13 +3990,13 @@ class z7 extends HTMLElement {
3939
3990
  this.removeEventListener("click", this._onClick);
3940
3991
  }
3941
3992
  }
3942
- customElements.get("anduin-modal-close") || customElements.define("anduin-modal-close", z7);
3943
- var S7 = Object.defineProperty, a1 = (r, e, t, o) => {
3993
+ customElements.get("anduin-modal-close") || customElements.define("anduin-modal-close", S7);
3994
+ var A7 = Object.defineProperty, a1 = (r, e, t, o) => {
3944
3995
  for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
3945
3996
  (l = r[n]) && (i = l(e, t, i) || i);
3946
- return i && S7(e, t, i), i;
3997
+ return i && A7(e, t, i), i;
3947
3998
  };
3948
- const d5 = "anduin-radio:change", A7 = "anduin-radio-group:change", _4 = class _4 extends h {
3999
+ const u5 = "anduin-radio:change", D7 = "anduin-radio-group:change", V4 = class V4 extends h {
3949
4000
  constructor() {
3950
4001
  super(...arguments), this.checked = !1, this.disabled = !1, this.readonly = !1, this.value = "", this.name = "", this.inputid = "";
3951
4002
  }
@@ -3958,7 +4009,7 @@ const d5 = "anduin-radio:change", A7 = "anduin-radio-group:change", _4 = class _
3958
4009
  });
3959
4010
  }
3960
4011
  _select() {
3961
- this.checked || (this.checked = !0, this.dispatchEvent(new CustomEvent(d5, {
4012
+ this.checked || (this.checked = !0, this.dispatchEvent(new CustomEvent(u5, {
3962
4013
  detail: this.value,
3963
4014
  bubbles: !0,
3964
4015
  composed: !0
@@ -3999,7 +4050,7 @@ const d5 = "anduin-radio:change", A7 = "anduin-radio-group:change", _4 = class _
3999
4050
  `;
4000
4051
  }
4001
4052
  };
4002
- _4.styles = g`
4053
+ V4.styles = g`
4003
4054
  :host { display: inline-flex; font-family: var(--font-sans); }
4004
4055
 
4005
4056
  label {
@@ -4070,7 +4121,7 @@ _4.styles = g`
4070
4121
  transform: scale(1);
4071
4122
  }
4072
4123
  `;
4073
- let r1 = _4;
4124
+ let r1 = V4;
4074
4125
  a1([
4075
4126
  a({ type: Boolean })
4076
4127
  ], r1.prototype, "checked");
@@ -4090,14 +4141,14 @@ a1([
4090
4141
  a()
4091
4142
  ], r1.prototype, "inputid");
4092
4143
  customElements.get("anduin-radio") || customElements.define("anduin-radio", r1);
4093
- const V4 = class V4 extends h {
4144
+ const x4 = class x4 extends h {
4094
4145
  constructor() {
4095
4146
  super(...arguments), this.value = "", this.name = "", this.orientation = "vertical", this._onRadioChange = (e) => {
4096
4147
  const o = e.detail;
4097
4148
  o !== this.value && (this.value = o, this.querySelectorAll("anduin-radio").forEach((i) => {
4098
4149
  const n = i;
4099
4150
  n.checked = n.value === o;
4100
- }), this.dispatchEvent(new CustomEvent(A7, {
4151
+ }), this.dispatchEvent(new CustomEvent(D7, {
4101
4152
  detail: o,
4102
4153
  bubbles: !0,
4103
4154
  composed: !0
@@ -4105,10 +4156,10 @@ const V4 = class V4 extends h {
4105
4156
  };
4106
4157
  }
4107
4158
  connectedCallback() {
4108
- super.connectedCallback(), this.addEventListener(d5, this._onRadioChange);
4159
+ super.connectedCallback(), this.addEventListener(u5, this._onRadioChange);
4109
4160
  }
4110
4161
  disconnectedCallback() {
4111
- super.disconnectedCallback(), this.removeEventListener(d5, this._onRadioChange);
4162
+ super.disconnectedCallback(), this.removeEventListener(u5, this._onRadioChange);
4112
4163
  }
4113
4164
  render() {
4114
4165
  return s`
@@ -4118,7 +4169,7 @@ const V4 = class V4 extends h {
4118
4169
  `;
4119
4170
  }
4120
4171
  };
4121
- V4.styles = g`
4172
+ x4.styles = g`
4122
4173
  :host { display: block; font-family: var(--font-sans); }
4123
4174
 
4124
4175
  .group {
@@ -4128,7 +4179,7 @@ V4.styles = g`
4128
4179
  .group--vertical { flex-direction: column; }
4129
4180
  .group--horizontal { flex-direction: row; flex-wrap: wrap; align-items: center; }
4130
4181
  `;
4131
- let N1 = V4;
4182
+ let N1 = x4;
4132
4183
  a1([
4133
4184
  a()
4134
4185
  ], N1.prototype, "value");
@@ -4139,12 +4190,12 @@ a1([
4139
4190
  a()
4140
4191
  ], N1.prototype, "orientation");
4141
4192
  customElements.get("anduin-radio-group") || customElements.define("anduin-radio-group", N1);
4142
- var D7 = Object.defineProperty, E1 = (r, e, t, o) => {
4193
+ var B7 = Object.defineProperty, E1 = (r, e, t, o) => {
4143
4194
  for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
4144
4195
  (l = r[n]) && (i = l(e, t, i) || i);
4145
- return i && D7(e, t, i), i;
4196
+ return i && B7(e, t, i), i;
4146
4197
  };
4147
- const k3 = [
4198
+ const $3 = [
4148
4199
  { bg: "#6172F3", text: "#ffffff" },
4149
4200
  { bg: "#B692F6", text: "#ffffff" },
4150
4201
  { bg: "#F670C7", text: "#ffffff" },
@@ -4154,17 +4205,17 @@ const k3 = [
4154
4205
  { bg: "#F97066", text: "#ffffff" },
4155
4206
  { bg: "#7A5AF8", text: "#ffffff" }
4156
4207
  ];
4157
- function B7(r) {
4208
+ function P7(r) {
4158
4209
  let e = 0;
4159
4210
  for (let t = 0; t < r.length; t++) e = e * 31 + r.charCodeAt(t) >>> 0;
4160
- return k3[e % k3.length];
4211
+ return $3[e % $3.length];
4161
4212
  }
4162
- function P7(r, e = 2) {
4213
+ function F7(r, e = 2) {
4163
4214
  var i;
4164
4215
  const t = r.trim().split(/\s+/), o = ((i = t[0]) == null ? void 0 : i[0]) ?? "";
4165
4216
  return e < 2 || t.length === 1 ? o.toUpperCase() : (o + (t[t.length - 1][0] ?? "")).toUpperCase();
4166
4217
  }
4167
- const L4 = class L4 extends h {
4218
+ const M4 = class M4 extends h {
4168
4219
  constructor() {
4169
4220
  super(...arguments), this.src = "", this.name = "", this.alt = "", this.icon = "", this.size = 32, this.shape = "circle", this._imgError = !1;
4170
4221
  }
@@ -4175,7 +4226,7 @@ const L4 = class L4 extends h {
4175
4226
  return this.size <= 16 ? 10 : this.size <= 20 ? 12 : this.size <= 24 ? 14 : 18;
4176
4227
  }
4177
4228
  render() {
4178
- const e = !!this.src && !this._imgError, t = this.name || this.icon ? B7(this.name || this.icon) : { bg: "#F2F4F7", text: "#667085" }, o = this.name ? P7(this.name, this.size <= 20 ? 1 : 2) : "";
4229
+ const e = !!this.src && !this._imgError, t = this.name || this.icon ? P7(this.name || this.icon) : { bg: "#F2F4F7", text: "#667085" }, o = this.name ? F7(this.name, this.size <= 20 ? 1 : 2) : "";
4179
4230
  return s`
4180
4231
  <div
4181
4232
  class="avatar avatar--${this.shape} avatar--${this.size}"
@@ -4193,7 +4244,7 @@ const L4 = class L4 extends h {
4193
4244
  `;
4194
4245
  }
4195
4246
  };
4196
- L4.styles = g`
4247
+ M4.styles = g`
4197
4248
  :host { display: inline-flex; }
4198
4249
 
4199
4250
  .avatar {
@@ -4222,7 +4273,7 @@ L4.styles = g`
4222
4273
  display: block;
4223
4274
  }
4224
4275
  `;
4225
- let J = L4;
4276
+ let J = M4;
4226
4277
  E1([
4227
4278
  a()
4228
4279
  ], J.prototype, "src");
@@ -4250,8 +4301,8 @@ customElements.get("anduin-avatar") || customElements.define("anduin-avatar", J)
4250
4301
  * Copyright 2017 Google LLC
4251
4302
  * SPDX-License-Identifier: BSD-3-Clause
4252
4303
  */
4253
- const F7 = { CHILD: 2 }, O7 = (r) => (...e) => ({ _$litDirective$: r, values: e });
4254
- class I7 {
4304
+ const O7 = { CHILD: 2 }, I7 = (r) => (...e) => ({ _$litDirective$: r, values: e });
4305
+ class T7 {
4255
4306
  constructor(e) {
4256
4307
  }
4257
4308
  get _$AU() {
@@ -4272,9 +4323,9 @@ class I7 {
4272
4323
  * Copyright 2017 Google LLC
4273
4324
  * SPDX-License-Identifier: BSD-3-Clause
4274
4325
  */
4275
- class c5 extends I7 {
4326
+ class g5 extends T7 {
4276
4327
  constructor(e) {
4277
- if (super(e), this.it = u, e.type !== F7.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
4328
+ if (super(e), this.it = u, e.type !== O7.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
4278
4329
  }
4279
4330
  render(e) {
4280
4331
  if (e === u || e == null) return this._t = void 0, this.it = e;
@@ -4286,16 +4337,16 @@ class c5 extends I7 {
4286
4337
  return t.raw = t, this._t = { _$litType$: this.constructor.resultType, strings: t, values: [] };
4287
4338
  }
4288
4339
  }
4289
- c5.directiveName = "unsafeHTML", c5.resultType = 1;
4340
+ g5.directiveName = "unsafeHTML", g5.resultType = 1;
4290
4341
  /**
4291
4342
  * @license
4292
4343
  * Copyright 2017 Google LLC
4293
4344
  * SPDX-License-Identifier: BSD-3-Clause
4294
4345
  */
4295
- class C5 extends c5 {
4346
+ class f5 extends g5 {
4296
4347
  }
4297
- C5.directiveName = "unsafeSVG", C5.resultType = 2;
4298
- const T7 = O7(C5), N7 = {
4348
+ f5.directiveName = "unsafeSVG", f5.resultType = 2;
4349
+ const N7 = I7(f5), j7 = {
4299
4350
  archive: {
4300
4351
  16: { viewBox: "0 0 16 16", paths: `<path d="M2 1.5C2 0.671573 2.67157 0 3.5 0H9.17157C9.70201 0 10.2107 0.210714 10.5858 0.585786L13.4142 3.41421C13.7893 3.78929 14 4.29799 14 4.82843V14.5C14 15.3284 13.3284 16 12.5 16H3.5C2.67157 16 2 15.3284 2 14.5V1.5Z" fill="white"/>
4301
4352
  <path fill-rule="evenodd" clip-rule="evenodd" d="M13 5.5C13 5.22386 12.7761 5 12.5 5H9.5C9.22386 5 9 4.77614 9 4.5V1.5C9 1.22386 8.77614 1 8.5 1H6H3.5C3.22386 1 3 1.22386 3 1.5V14.5C3 14.7761 3.22386 15 3.5 15H12.5C12.7761 15 13 14.7761 13 14.5V8V5.5ZM14 8V14.5C14 15.3284 13.3284 16 12.5 16H3.5C2.67157 16 2 15.3284 2 14.5V1.5C2 0.671573 2.67157 0 3.5 0H6H9.17157C9.70201 0 10.2107 0.210714 10.5858 0.585786L13.4142 3.41421C13.7893 3.78929 14 4.29799 14 4.82843V8Z" fill="#CCD2DB"/>
@@ -4539,26 +4590,26 @@ const T7 = O7(C5), N7 = {
4539
4590
  <path fill-rule="evenodd" clip-rule="evenodd" d="M6 2H18.5H18.5147C18.8078 2 19.0982 2.02573 19.3829 2.07593C19.7452 2.22622 20 2.58335 20 3V8C20 8.55228 20.4477 9 21 9H26C26.4166 9 26.7738 9.25482 26.9241 9.6171C26.9743 9.90183 27 10.1922 27 10.4853V29C27 29.5523 26.5523 30 26 30H6C5.44772 30 5 29.5523 5 29V3C5 2.44772 5.44772 2 6 2ZM27.9804 10C27.9934 10.1608 28 10.3227 28 10.4853V29C28 30.1046 27.1046 31 26 31H6C4.89543 31 4 30.1046 4 29V3C4 1.89543 4.89543 1 6 1H18.5H18.5147C20.0951 1 21.6113 1.62353 22.7342 2.73435C22.742 2.742 22.7497 2.74967 22.7574 2.75736L26.2426 6.24264L26.5858 6.58579C27.4913 7.49129 28 8.71942 28 10H27.9804Z" fill="#AADAF9"/>
4540
4591
  <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"/>` }
4541
4592
  }
4542
- }, j7 = [32, 24, 16];
4543
- function U7(r, e) {
4544
- const t = N7[r];
4593
+ }, U7 = [32, 24, 16];
4594
+ function G7(r, e) {
4595
+ const t = j7[r];
4545
4596
  if (!t) return null;
4546
4597
  if (t[e]) return t[e];
4547
- for (const o of j7)
4598
+ for (const o of U7)
4548
4599
  if (t[o]) return t[o];
4549
4600
  return null;
4550
4601
  }
4551
- var G7 = Object.defineProperty, Ce = (r, e, t, o) => {
4602
+ var K7 = Object.defineProperty, he = (r, e, t, o) => {
4552
4603
  for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
4553
4604
  (l = r[n]) && (i = l(e, t, i) || i);
4554
- return i && G7(e, t, i), i;
4605
+ return i && K7(e, t, i), i;
4555
4606
  };
4556
- const x4 = class x4 extends h {
4607
+ const w4 = class w4 extends h {
4557
4608
  constructor() {
4558
4609
  super(...arguments), this.type = "pdf", this.size = 32;
4559
4610
  }
4560
4611
  render() {
4561
- const e = U7(this.type, this.size);
4612
+ const e = G7(this.type, this.size);
4562
4613
  return e ? s`
4563
4614
  <svg
4564
4615
  width=${this.size}
@@ -4569,35 +4620,35 @@ const x4 = class x4 extends h {
4569
4620
  aria-label="${this.type} file"
4570
4621
  role="img"
4571
4622
  >
4572
- ${T7(e.paths)}
4623
+ ${N7(e.paths)}
4573
4624
  </svg>
4574
4625
  ` : u;
4575
4626
  }
4576
4627
  };
4577
- x4.styles = g`
4628
+ w4.styles = g`
4578
4629
  :host { display: inline-flex; align-items: center; justify-content: center; }
4579
4630
  svg { display: block; }
4580
4631
  `;
4581
- let f2 = x4;
4582
- Ce([
4632
+ let v2 = w4;
4633
+ he([
4583
4634
  a()
4584
- ], f2.prototype, "type");
4585
- Ce([
4635
+ ], v2.prototype, "type");
4636
+ he([
4586
4637
  a({ type: Number })
4587
- ], f2.prototype, "size");
4588
- customElements.get("anduin-file-icon") || customElements.define("anduin-file-icon", f2);
4589
- var K7 = Object.defineProperty, z1 = (r, e, t, o) => {
4638
+ ], v2.prototype, "size");
4639
+ customElements.get("anduin-file-icon") || customElements.define("anduin-file-icon", v2);
4640
+ var W7 = Object.defineProperty, z1 = (r, e, t, o) => {
4590
4641
  for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
4591
4642
  (l = r[n]) && (i = l(e, t, i) || i);
4592
- return i && K7(e, t, i), i;
4643
+ return i && W7(e, t, i), i;
4593
4644
  };
4594
- const R3 = {
4645
+ const E3 = {
4595
4646
  gray: "info",
4596
4647
  primary: "infoCircleLine",
4597
4648
  success: "checkCircle",
4598
4649
  warning: "warning",
4599
4650
  danger: "error"
4600
- }, W7 = "anduin-toast:dismiss", M4 = class M4 extends h {
4651
+ }, Y7 = "anduin-toast:dismiss", Z4 = class Z4 extends h {
4601
4652
  constructor() {
4602
4653
  super(...arguments), this.variant = "gray", this.heading = "", this.description = "", this._dismissing = !1;
4603
4654
  }
@@ -4608,7 +4659,7 @@ const R3 = {
4608
4659
  const e = (o) => {
4609
4660
  var i;
4610
4661
  o.propertyName === "opacity" && ((i = this._toastEl) == null || i.removeEventListener("transitionend", e), this.dispatchEvent(
4611
- new CustomEvent(W7, { bubbles: !0, composed: !0 })
4662
+ new CustomEvent(Y7, { bubbles: !0, composed: !0 })
4612
4663
  ));
4613
4664
  };
4614
4665
  (t = this._toastEl) == null || t.addEventListener("transitionend", e);
@@ -4617,7 +4668,7 @@ const R3 = {
4617
4668
  this.dismiss();
4618
4669
  }
4619
4670
  render() {
4620
- const e = R3[this.variant] ?? R3.gray;
4671
+ const e = E3[this.variant] ?? E3.gray;
4621
4672
  return s`
4622
4673
  <div
4623
4674
  class="toast toast--${this.variant} ${this._dismissing ? "toast--dismissing" : ""}"
@@ -4643,7 +4694,7 @@ const R3 = {
4643
4694
  `;
4644
4695
  }
4645
4696
  };
4646
- M4.styles = g`
4697
+ Z4.styles = g`
4647
4698
  :host {
4648
4699
  display: block;
4649
4700
  font-family: var(--font-sans);
@@ -4771,24 +4822,24 @@ M4.styles = g`
4771
4822
  background: var(--color-gray-3, #d0d5dd);
4772
4823
  }
4773
4824
  `;
4774
- let g1 = M4;
4825
+ let f1 = Z4;
4775
4826
  z1([
4776
4827
  a()
4777
- ], g1.prototype, "variant");
4828
+ ], f1.prototype, "variant");
4778
4829
  z1([
4779
4830
  a()
4780
- ], g1.prototype, "heading");
4831
+ ], f1.prototype, "heading");
4781
4832
  z1([
4782
4833
  a()
4783
- ], g1.prototype, "description");
4834
+ ], f1.prototype, "description");
4784
4835
  z1([
4785
4836
  H()
4786
- ], g1.prototype, "_dismissing");
4837
+ ], f1.prototype, "_dismissing");
4787
4838
  z1([
4788
4839
  z(".toast")
4789
- ], g1.prototype, "_toastEl");
4790
- customElements.get("anduin-toast") || customElements.define("anduin-toast", g1);
4791
- const w4 = class w4 extends h {
4840
+ ], f1.prototype, "_toastEl");
4841
+ customElements.get("anduin-toast") || customElements.define("anduin-toast", f1);
4842
+ const k4 = class k4 extends h {
4792
4843
  constructor() {
4793
4844
  super(...arguments), this.position = "bottom-left", this._toasts = [], this._nextId = 0;
4794
4845
  }
@@ -4832,7 +4883,7 @@ const w4 = class w4 extends h {
4832
4883
  `;
4833
4884
  }
4834
4885
  };
4835
- w4.styles = g`
4886
+ k4.styles = g`
4836
4887
  :host {
4837
4888
  display: contents;
4838
4889
  pointer-events: none;
@@ -4879,17 +4930,17 @@ w4.styles = g`
4879
4930
  align-items: flex-end;
4880
4931
  }
4881
4932
  `;
4882
- let v2 = w4;
4933
+ let m2 = k4;
4883
4934
  z1([
4884
4935
  a()
4885
- ], v2.prototype, "position");
4936
+ ], m2.prototype, "position");
4886
4937
  z1([
4887
4938
  H()
4888
- ], v2.prototype, "_toasts");
4889
- customElements.get("anduin-toaster") || customElements.define("anduin-toaster", v2);
4939
+ ], m2.prototype, "_toasts");
4940
+ customElements.get("anduin-toaster") || customElements.define("anduin-toaster", m2);
4890
4941
  const j0 = {
4891
4942
  show(r) {
4892
- return Y7(r.position).show(r);
4943
+ return q7(r.position).show(r);
4893
4944
  },
4894
4945
  success(r, e, t) {
4895
4946
  return this.show({ ...t, variant: "success", heading: r, description: e });
@@ -4906,23 +4957,23 @@ const j0 = {
4906
4957
  gray(r, e, t) {
4907
4958
  return this.show({ ...t, variant: "gray", heading: r, description: e });
4908
4959
  }
4909
- }, K2 = /* @__PURE__ */ new Map();
4910
- function Y7(r = "bottom-left") {
4911
- if (K2.has(r)) return K2.get(r);
4960
+ }, X2 = /* @__PURE__ */ new Map();
4961
+ function q7(r = "bottom-left") {
4962
+ if (X2.has(r)) return X2.get(r);
4912
4963
  const e = document.createElement("anduin-toaster");
4913
- return e.position = r, document.body.appendChild(e), K2.set(r, e), e;
4964
+ return e.position = r, document.body.appendChild(e), X2.set(r, e), e;
4914
4965
  }
4915
- var q7 = Object.defineProperty, pe = (r, e, t, o) => {
4966
+ var X7 = Object.defineProperty, ue = (r, e, t, o) => {
4916
4967
  for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
4917
4968
  (l = r[n]) && (i = l(e, t, i) || i);
4918
- return i && q7(e, t, i), i;
4969
+ return i && X7(e, t, i), i;
4919
4970
  };
4920
- const X7 = "anduin-switcher:change", Z4 = class Z4 extends h {
4971
+ const J7 = "anduin-switcher:change", R4 = class R4 extends h {
4921
4972
  constructor() {
4922
4973
  super(...arguments), this.checked = !1, this.disabled = !1;
4923
4974
  }
4924
4975
  onChange() {
4925
- this.checked = !this.checked, this.dispatchEvent(new CustomEvent(X7, {
4976
+ this.checked = !this.checked, this.dispatchEvent(new CustomEvent(J7, {
4926
4977
  detail: this.checked,
4927
4978
  bubbles: !0,
4928
4979
  composed: !0
@@ -4946,7 +4997,7 @@ const X7 = "anduin-switcher:change", Z4 = class Z4 extends h {
4946
4997
  `;
4947
4998
  }
4948
4999
  };
4949
- Z4.styles = g`
5000
+ R4.styles = g`
4950
5001
  :host { display: inline-flex; font-family: var(--font-sans); }
4951
5002
 
4952
5003
  label {
@@ -5010,20 +5061,20 @@ Z4.styles = g`
5010
5061
  line-height: 20px;
5011
5062
  }
5012
5063
  `;
5013
- let b2 = Z4;
5014
- pe([
5064
+ let b2 = R4;
5065
+ ue([
5015
5066
  a({ type: Boolean })
5016
5067
  ], b2.prototype, "checked");
5017
- pe([
5068
+ ue([
5018
5069
  a({ type: Boolean })
5019
5070
  ], b2.prototype, "disabled");
5020
5071
  customElements.get("anduin-switcher") || customElements.define("anduin-switcher", b2);
5021
- var J7 = Object.defineProperty, D = (r, e, t, o) => {
5072
+ var Q7 = Object.defineProperty, D = (r, e, t, o) => {
5022
5073
  for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
5023
5074
  (l = r[n]) && (i = l(e, t, i) || i);
5024
- return i && J7(e, t, i), i;
5075
+ return i && Q7(e, t, i), i;
5025
5076
  };
5026
- const $3 = "anduin-dropdown:change", k4 = class k4 extends h {
5077
+ const z3 = "anduin-dropdown:change", $4 = class $4 extends h {
5027
5078
  constructor() {
5028
5079
  super(...arguments), this.value = "", this.placeholder = "Select...", this.options = [], this.icon = "", this.searchable = !0, this.disabled = !1, this.placement = "bottom-start", this.appearance = "filled", this.variant = "gray0", this.size = "default", this.fullWidth = !1, this._open = !1, this._query = "", this._onOutsideClick = (e) => {
5029
5080
  var t;
@@ -5055,14 +5106,14 @@ const $3 = "anduin-dropdown:change", k4 = class k4 extends h {
5055
5106
  e.key === "Escape" && (this._open = !1, this._query = "", (t = this._triggerEl) == null || t.focus());
5056
5107
  }
5057
5108
  _onClear(e) {
5058
- e.stopPropagation(), this.value = "", this.dispatchEvent(new CustomEvent($3, {
5109
+ e.stopPropagation(), this.value = "", this.dispatchEvent(new CustomEvent(z3, {
5059
5110
  detail: "",
5060
5111
  bubbles: !0,
5061
5112
  composed: !0
5062
5113
  }));
5063
5114
  }
5064
5115
  _selectOption(e) {
5065
- this.value = e.value, this._open = !1, this._query = "", this.dispatchEvent(new CustomEvent($3, {
5116
+ this.value = e.value, this._open = !1, this._query = "", this.dispatchEvent(new CustomEvent(z3, {
5066
5117
  detail: e.value,
5067
5118
  bubbles: !0,
5068
5119
  composed: !0
@@ -5077,7 +5128,7 @@ const $3 = "anduin-dropdown:change", k4 = class k4 extends h {
5077
5128
  t.style.transform = i;
5078
5129
  const l = t.querySelector(".panel__inner");
5079
5130
  l && (l.style.minWidth = `${o.width}px`);
5080
- const d = t.getBoundingClientRect(), c = 4, C = window.innerWidth, p = window.innerHeight, f = 8, m = p - o.bottom - c, b = o.top - c, _ = d.height <= m || m >= b ? o.bottom + c : o.top - d.height - c;
5131
+ const d = t.getBoundingClientRect(), c = 4, C = window.innerWidth, p = window.innerHeight, f = 8, b = p - o.bottom - c, m = o.top - c, _ = d.height <= b || b >= m ? o.bottom + c : o.top - d.height - c;
5081
5132
  let v = o.left;
5082
5133
  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));
5083
5134
  const x = Math.max(f, Math.min(_, p - d.height - f));
@@ -5148,7 +5199,7 @@ const $3 = "anduin-dropdown:change", k4 = class k4 extends h {
5148
5199
  `;
5149
5200
  }
5150
5201
  };
5151
- k4.styles = g`
5202
+ $4.styles = g`
5152
5203
  :host { display: inline-block; font-family: var(--font-sans); }
5153
5204
  :host([full-width]) { display: block; width: 100%; }
5154
5205
  :host([full-width]) .trigger { width: 100%; }
@@ -5328,7 +5379,7 @@ k4.styles = g`
5328
5379
  text-align: center;
5329
5380
  }
5330
5381
  `;
5331
- let Z = k4;
5382
+ let Z = $4;
5332
5383
  D([
5333
5384
  a()
5334
5385
  ], Z.prototype, "value");
@@ -5378,24 +5429,26 @@ D([
5378
5429
  z("anduin-input")
5379
5430
  ], Z.prototype, "_searchEl");
5380
5431
  customElements.get("anduin-dropdown") || customElements.define("anduin-dropdown", Z);
5381
- var Q7 = Object.defineProperty, y1 = (r, e, t, o) => {
5432
+ var e0 = Object.defineProperty, s1 = (r, e, t, o) => {
5382
5433
  for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
5383
5434
  (l = r[n]) && (i = l(e, t, i) || i);
5384
- return i && Q7(e, t, i), i;
5435
+ return i && e0(e, t, i), i;
5385
5436
  };
5386
- const p5 = "anduin-close", e0 = "anduin-after-close", t0 = 300, E3 = 250, i0 = /* @__PURE__ */ new Map([
5437
+ const e2 = "anduin-close", J2 = "anduin-after-close", t0 = 300, S3 = 250, i0 = /* @__PURE__ */ new Map([
5387
5438
  ["320", 320],
5388
5439
  ["360", 360],
5389
5440
  ["400", 400],
5390
5441
  ["640", 640]
5391
- ]), R4 = class R4 extends h {
5442
+ ]), E4 = class E4 extends h {
5392
5443
  constructor() {
5393
- super(...arguments), this.open = !1, this.heading = "", this.hideHeader = !1, this.hideFooter = !1, this.defaultWidth = "320", this.allowInteractOutside = !1, this._leaving = !1, this._width = 320, this._resizing = !1, this._startX = 0, this._startWidth = 0, this._onResizeStart = (e) => {
5444
+ super(...arguments), this.open = !1, this.heading = "", this.hideHeader = !1, this.hideFooter = !1, this.defaultWidth = "320", this.placement = "right", this.allowInteractOutside = !1, this._leaving = !1, this._width = 320, this._resizing = !1, this._startX = 0, this._startWidth = 0, this._stopAtSelf = (e) => {
5445
+ e.stopPropagation();
5446
+ }, this._onResizeStart = (e) => {
5394
5447
  this._resizing = !0, this._startX = e.clientX, this._startWidth = this._width, e.currentTarget.setPointerCapture(e.pointerId), e.preventDefault();
5395
5448
  }, this._onResizeMove = (e) => {
5396
5449
  var n;
5397
5450
  if (!this._resizing) return;
5398
- const t = this._startX - e.clientX, o = Math.max(
5451
+ const t = this.placement === "left" ? e.clientX - this._startX : this._startX - e.clientX, o = Math.max(
5399
5452
  200,
5400
5453
  Math.min(window.innerWidth * 0.9, this._startWidth + t)
5401
5454
  );
@@ -5412,23 +5465,29 @@ const p5 = "anduin-close", e0 = "anduin-after-close", t0 = 300, E3 = 250, i0 = /
5412
5465
  updated(e) {
5413
5466
  e.has("open") && (this.open ? (this._leaving = !1, this.classList.add("is-shown")) : this.classList.contains("is-shown") && (this._leaving = !0, setTimeout(() => {
5414
5467
  this._leaving = !1, this.classList.remove("is-shown"), this.dispatchEvent(
5415
- new CustomEvent(e0, {
5468
+ new CustomEvent(J2, {
5416
5469
  bubbles: !0,
5417
5470
  composed: !0
5418
5471
  })
5419
5472
  );
5420
- }, E3)));
5473
+ }, S3)));
5421
5474
  }
5422
5475
  _dispatch(e) {
5423
5476
  this.dispatchEvent(
5424
5477
  new CustomEvent(e, { bubbles: !0, composed: !0 })
5425
5478
  );
5426
5479
  }
5480
+ connectedCallback() {
5481
+ super.connectedCallback(), this.addEventListener(e2, this._stopAtSelf), this.addEventListener(J2, this._stopAtSelf);
5482
+ }
5483
+ disconnectedCallback() {
5484
+ super.disconnectedCallback(), this.removeEventListener(e2, this._stopAtSelf), this.removeEventListener(J2, this._stopAtSelf);
5485
+ }
5427
5486
  _onClose() {
5428
- this._dispatch(p5);
5487
+ this._dispatch(e2);
5429
5488
  }
5430
5489
  _onBackdropClick() {
5431
- this._dispatch(p5);
5490
+ this._dispatch(e2);
5432
5491
  }
5433
5492
  render() {
5434
5493
  const e = this._leaving;
@@ -5471,7 +5530,7 @@ const p5 = "anduin-close", e0 = "anduin-after-close", t0 = 300, E3 = 250, i0 = /
5471
5530
  `;
5472
5531
  }
5473
5532
  };
5474
- R4.styles = g`
5533
+ E4.styles = g`
5475
5534
  :host {
5476
5535
  display: none;
5477
5536
  font-family: var(--font-sans);
@@ -5500,6 +5559,25 @@ R4.styles = g`
5500
5559
  transform: translateX(100%);
5501
5560
  }
5502
5561
  }
5562
+ /* Mirrors of the two above for placement="left". A separate pair, rather
5563
+ than one pair driven by a custom property, so the right-hand drawer's
5564
+ animation stays exactly the rules it always was. */
5565
+ @keyframes drawerInLeft {
5566
+ from {
5567
+ transform: translateX(-100%);
5568
+ }
5569
+ to {
5570
+ transform: translateX(0);
5571
+ }
5572
+ }
5573
+ @keyframes drawerOutLeft {
5574
+ from {
5575
+ transform: translateX(0);
5576
+ }
5577
+ to {
5578
+ transform: translateX(-100%);
5579
+ }
5580
+ }
5503
5581
  /* Transparent backdrop — only rendered when dismiss-on-outside-click is set */
5504
5582
  .backdrop {
5505
5583
  position: absolute;
@@ -5525,9 +5603,24 @@ R4.styles = g`
5525
5603
  pointer-events: auto;
5526
5604
  }
5527
5605
  .drawer.is-leaving {
5528
- animation: drawerOut ${E3}ms
5606
+ animation: drawerOut ${S3}ms
5529
5607
  cubic-bezier(0.3, 0, 0.8, 0.15) forwards;
5530
5608
  }
5609
+ /* placement="left": every rule above that assumes the right edge, flipped.
5610
+ Anchor to the left, cast the shadow rightward (towards the page, away
5611
+ from the edge it is pinned to), and slide in and out past the left edge.
5612
+ Only animation-name changes, so duration and easing stay shared. */
5613
+ :host([placement="left"]) .drawer {
5614
+ left: 0;
5615
+ right: auto;
5616
+ box-shadow:
5617
+ 8px 0 24px 0 rgba(29, 41, 57, 0.12),
5618
+ 2px 0 8px 0 rgba(29, 41, 57, 0.08);
5619
+ animation-name: drawerInLeft;
5620
+ }
5621
+ :host([placement="left"]) .drawer.is-leaving {
5622
+ animation-name: drawerOutLeft;
5623
+ }
5531
5624
  @media (max-width: 640px) {
5532
5625
  .drawer {
5533
5626
  top: 0;
@@ -5538,6 +5631,11 @@ R4.styles = g`
5538
5631
  max-width: 100%;
5539
5632
  min-width: unset;
5540
5633
  }
5634
+ /* The placement="left" rule's right: auto outranks the bare .drawer
5635
+ above on specificity, so full-screen has to be restated for it. */
5636
+ :host([placement="left"]) .drawer {
5637
+ right: 0;
5638
+ }
5541
5639
  .resize-handle {
5542
5640
  display: none;
5543
5641
  }
@@ -5555,6 +5653,11 @@ R4.styles = g`
5555
5653
  .resize-handle:hover {
5556
5654
  background: var(--color-primary-3, #84caff);
5557
5655
  }
5656
+ /* The handle sits on the edge that faces the page — the one you pull. */
5657
+ :host([placement="left"]) .resize-handle {
5658
+ left: auto;
5659
+ right: 0;
5660
+ }
5558
5661
  .header {
5559
5662
  flex-shrink: 0;
5560
5663
  display: flex;
@@ -5589,37 +5692,40 @@ R4.styles = g`
5589
5692
  border-top: 1px solid var(--color-gray-3, #e4e7ec);
5590
5693
  }
5591
5694
  `;
5592
- let G = R4;
5593
- y1([
5695
+ let j = E4;
5696
+ s1([
5594
5697
  a({ type: Boolean, reflect: !0 })
5595
- ], G.prototype, "open");
5596
- y1([
5698
+ ], j.prototype, "open");
5699
+ s1([
5597
5700
  a()
5598
- ], G.prototype, "heading");
5599
- y1([
5701
+ ], j.prototype, "heading");
5702
+ s1([
5600
5703
  a({ type: Boolean, attribute: "hide-header" })
5601
- ], G.prototype, "hideHeader");
5602
- y1([
5704
+ ], j.prototype, "hideHeader");
5705
+ s1([
5603
5706
  a({ type: Boolean, attribute: "hide-footer" })
5604
- ], G.prototype, "hideFooter");
5605
- y1([
5707
+ ], j.prototype, "hideFooter");
5708
+ s1([
5606
5709
  a({ attribute: "default-width" })
5607
- ], G.prototype, "defaultWidth");
5608
- y1([
5710
+ ], j.prototype, "defaultWidth");
5711
+ s1([
5712
+ a({ reflect: !0 })
5713
+ ], j.prototype, "placement");
5714
+ s1([
5609
5715
  a({ type: Boolean, attribute: "allow-interact-outside" })
5610
- ], G.prototype, "allowInteractOutside");
5611
- y1([
5716
+ ], j.prototype, "allowInteractOutside");
5717
+ s1([
5612
5718
  H()
5613
- ], G.prototype, "_leaving");
5614
- y1([
5719
+ ], j.prototype, "_leaving");
5720
+ s1([
5615
5721
  H()
5616
- ], G.prototype, "_width");
5617
- customElements.get("anduin-drawer") || customElements.define("anduin-drawer", G);
5722
+ ], j.prototype, "_width");
5723
+ customElements.get("anduin-drawer") || customElements.define("anduin-drawer", j);
5618
5724
  class o0 extends HTMLElement {
5619
5725
  constructor() {
5620
5726
  super(...arguments), this._onClick = () => {
5621
5727
  this.dispatchEvent(
5622
- new CustomEvent(p5, { bubbles: !0, composed: !0 })
5728
+ new CustomEvent(e2, { bubbles: !0, composed: !0 })
5623
5729
  );
5624
5730
  };
5625
5731
  }
@@ -5636,7 +5742,7 @@ var n0 = Object.defineProperty, R = (r, e, t, o) => {
5636
5742
  (l = r[n]) && (i = l(e, t, i) || i);
5637
5743
  return i && n0(e, t, i), i;
5638
5744
  };
5639
- const W2 = "anduin-suggestion:change", r0 = "anduin-suggestion:select", l0 = "anduin-suggestion:clear", $4 = class $4 extends h {
5745
+ const Q2 = "anduin-suggestion:change", r0 = "anduin-suggestion:select", l0 = "anduin-suggestion:clear", z4 = class z4 extends h {
5640
5746
  constructor() {
5641
5747
  super(...arguments), this.value = "", this.size = "default", this.disabled = !1, this.readonly = !1, this.placeholder = "", this.inputid = "", this.status = "", this.startIcon = "", this.endIcon = "", this.clearable = !1, this.suggestions = [], this.filter = !1, this.hideWhenEmpty = !1, this.emptyText = "No suggestions", this._open = !1, this._activeIndex = -1, this._onDocumentMouseDown = (e) => {
5642
5748
  var t;
@@ -5676,7 +5782,7 @@ const W2 = "anduin-suggestion:change", r0 = "anduin-suggestion:select", l0 = "an
5676
5782
  this._openPanel();
5677
5783
  }
5678
5784
  _onInput() {
5679
- this.value = this._inputEl.value, this._open || this._openPanel(), this._activeIndex = -1, this.dispatchEvent(new CustomEvent(W2, {
5785
+ this.value = this._inputEl.value, this._open || this._openPanel(), this._activeIndex = -1, this.dispatchEvent(new CustomEvent(Q2, {
5680
5786
  detail: this.value,
5681
5787
  bubbles: !0,
5682
5788
  composed: !0
@@ -5709,7 +5815,7 @@ const W2 = "anduin-suggestion:change", r0 = "anduin-suggestion:select", l0 = "an
5709
5815
  }
5710
5816
  _selectSuggestion(e) {
5711
5817
  var t;
5712
- this.value = e.value, this._inputEl && (this._inputEl.value = e.value), this._open = !1, this.dispatchEvent(new CustomEvent(W2, {
5818
+ this.value = e.value, this._inputEl && (this._inputEl.value = e.value), this._open = !1, this.dispatchEvent(new CustomEvent(Q2, {
5713
5819
  detail: this.value,
5714
5820
  bubbles: !0,
5715
5821
  composed: !0
@@ -5721,7 +5827,7 @@ const W2 = "anduin-suggestion:change", r0 = "anduin-suggestion:select", l0 = "an
5721
5827
  }
5722
5828
  _onClear() {
5723
5829
  var e;
5724
- this.value = "", this._inputEl && (this._inputEl.value = ""), this._activeIndex = -1, this.dispatchEvent(new CustomEvent(W2, { detail: "", bubbles: !0, composed: !0 })), this.dispatchEvent(new CustomEvent(l0, { bubbles: !0, composed: !0 })), (e = this._inputEl) == null || e.focus();
5830
+ this.value = "", this._inputEl && (this._inputEl.value = ""), this._activeIndex = -1, this.dispatchEvent(new CustomEvent(Q2, { detail: "", bubbles: !0, composed: !0 })), this.dispatchEvent(new CustomEvent(l0, { bubbles: !0, composed: !0 })), (e = this._inputEl) == null || e.focus();
5725
5831
  }
5726
5832
  _updatePosition() {
5727
5833
  var M;
@@ -5733,7 +5839,7 @@ const W2 = "anduin-suggestion:change", r0 = "anduin-suggestion:select", l0 = "an
5733
5839
  t.style.transform = i;
5734
5840
  const l = t.querySelector(".panel__inner");
5735
5841
  l && (l.style.minWidth = `${o.width}px`);
5736
- const d = t.getBoundingClientRect(), c = 4, C = window.innerWidth, p = window.innerHeight, f = 8, m = p - o.bottom - c, b = o.top - c, _ = d.height <= m || m >= b ? o.bottom + c : o.top - d.height - c;
5842
+ const d = t.getBoundingClientRect(), c = 4, C = window.innerWidth, p = window.innerHeight, f = 8, b = p - o.bottom - c, m = o.top - c, _ = d.height <= b || b >= m ? o.bottom + c : o.top - d.height - c;
5737
5843
  let v = o.left;
5738
5844
  v = Math.max(f, Math.min(v, C - d.width - f));
5739
5845
  const x = Math.max(f, Math.min(_, p - d.height - f));
@@ -5795,8 +5901,8 @@ const W2 = "anduin-suggestion:change", r0 = "anduin-suggestion:select", l0 = "an
5795
5901
  @mouseenter=${() => {
5796
5902
  this._activeIndex = f;
5797
5903
  }}
5798
- @mousedown=${(m) => {
5799
- m.preventDefault(), this._selectSuggestion(p);
5904
+ @mousedown=${(b) => {
5905
+ b.preventDefault(), this._selectSuggestion(p);
5800
5906
  }}
5801
5907
  >
5802
5908
  ${p.icon ? s`<anduin-icon name=${p.icon} size="16"></anduin-icon>` : u}
@@ -5809,7 +5915,7 @@ const W2 = "anduin-suggestion:change", r0 = "anduin-suggestion:select", l0 = "an
5809
5915
  `;
5810
5916
  }
5811
5917
  };
5812
- $4.styles = g`
5918
+ z4.styles = g`
5813
5919
  :host { display: block; font-family: var(--font-sans); position: relative; }
5814
5920
 
5815
5921
  .input-wrapper { position: relative; display: flex; align-items: center; }
@@ -5922,7 +6028,7 @@ $4.styles = g`
5922
6028
  text-align: center;
5923
6029
  }
5924
6030
  `;
5925
- let w = $4;
6031
+ let w = z4;
5926
6032
  R([
5927
6033
  a()
5928
6034
  ], w.prototype, "value");
@@ -5983,7 +6089,7 @@ var a0 = Object.defineProperty, W = (r, e, t, o) => {
5983
6089
  (l = r[n]) && (i = l(e, t, i) || i);
5984
6090
  return i && a0(e, t, i), i;
5985
6091
  };
5986
- const s0 = "anduin-navigation:change", u5 = "anduin-navigation-item:item-click", E4 = class E4 extends h {
6092
+ const s0 = "anduin-navigation:change", v5 = "anduin-navigation-item:item-click", S4 = class S4 extends h {
5987
6093
  constructor() {
5988
6094
  super(...arguments), this.defaultValue = "", this.value = null, this.theme = "light", this.alignment = "left", this.internalValue = "", this.onItemClick = (e) => {
5989
6095
  e.stopPropagation();
@@ -6002,10 +6108,10 @@ const s0 = "anduin-navigation:change", u5 = "anduin-navigation-item:item-click",
6002
6108
  return this.isControlled ? this.value : this.internalValue;
6003
6109
  }
6004
6110
  connectedCallback() {
6005
- super.connectedCallback(), this.hasUpdated || (this.internalValue = this.defaultValue), this.addEventListener(u5, this.onItemClick);
6111
+ super.connectedCallback(), this.hasUpdated || (this.internalValue = this.defaultValue), this.addEventListener(v5, this.onItemClick);
6006
6112
  }
6007
6113
  disconnectedCallback() {
6008
- super.disconnectedCallback(), this.removeEventListener(u5, this.onItemClick);
6114
+ super.disconnectedCallback(), this.removeEventListener(v5, this.onItemClick);
6009
6115
  }
6010
6116
  updated() {
6011
6117
  this.syncItems();
@@ -6026,7 +6132,7 @@ const s0 = "anduin-navigation:change", u5 = "anduin-navigation-item:item-click",
6026
6132
  `;
6027
6133
  }
6028
6134
  };
6029
- E4.styles = g`
6135
+ S4.styles = g`
6030
6136
  :host {
6031
6137
  display: block;
6032
6138
  font-family: var(--font-sans);
@@ -6069,23 +6175,23 @@ E4.styles = g`
6069
6175
  .navigation--center { justify-content: center; }
6070
6176
  .navigation--right { justify-content: flex-end; }
6071
6177
  `;
6072
- let f1 = E4;
6178
+ let v1 = S4;
6073
6179
  W([
6074
6180
  a({ attribute: "default-value" })
6075
- ], f1.prototype, "defaultValue");
6181
+ ], v1.prototype, "defaultValue");
6076
6182
  W([
6077
6183
  a()
6078
- ], f1.prototype, "value");
6184
+ ], v1.prototype, "value");
6079
6185
  W([
6080
6186
  a({ reflect: !0 })
6081
- ], f1.prototype, "theme");
6187
+ ], v1.prototype, "theme");
6082
6188
  W([
6083
6189
  a()
6084
- ], f1.prototype, "alignment");
6190
+ ], v1.prototype, "alignment");
6085
6191
  W([
6086
6192
  H()
6087
- ], f1.prototype, "internalValue");
6088
- const z4 = class z4 extends h {
6193
+ ], v1.prototype, "internalValue");
6194
+ const A4 = class A4 extends h {
6089
6195
  constructor() {
6090
6196
  super(...arguments), this.value = "", this.startIcon = "", this.href = "", this.disabled = !1, this.selected = !1, this.theme = "light";
6091
6197
  }
@@ -6094,7 +6200,7 @@ const z4 = class z4 extends h {
6094
6200
  e.preventDefault();
6095
6201
  return;
6096
6202
  }
6097
- this.dispatchEvent(new CustomEvent(u5, {
6203
+ this.dispatchEvent(new CustomEvent(v5, {
6098
6204
  detail: this.value,
6099
6205
  bubbles: !0,
6100
6206
  composed: !0
@@ -6132,7 +6238,7 @@ const z4 = class z4 extends h {
6132
6238
  `;
6133
6239
  }
6134
6240
  };
6135
- z4.styles = g`
6241
+ A4.styles = g`
6136
6242
  :host { display: inline-block; font-family: var(--font-sans); }
6137
6243
  .nav-item {
6138
6244
  box-sizing: border-box;
@@ -6177,7 +6283,7 @@ z4.styles = g`
6177
6283
  }
6178
6284
  .nav-item__icon { display: flex; }
6179
6285
  `;
6180
- let l1 = z4;
6286
+ let l1 = A4;
6181
6287
  W([
6182
6288
  a()
6183
6289
  ], l1.prototype, "value");
@@ -6196,21 +6302,21 @@ W([
6196
6302
  W([
6197
6303
  a({ attribute: !1 })
6198
6304
  ], l1.prototype, "theme");
6199
- customElements.get("anduin-navigation") || customElements.define("anduin-navigation", f1);
6305
+ customElements.get("anduin-navigation") || customElements.define("anduin-navigation", v1);
6200
6306
  customElements.get("anduin-navigation-item") || customElements.define("anduin-navigation-item", l1);
6201
6307
  var d0 = Object.defineProperty, S1 = (r, e, t, o) => {
6202
6308
  for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
6203
6309
  (l = r[n]) && (i = l(e, t, i) || i);
6204
6310
  return i && d0(e, t, i), i;
6205
6311
  };
6206
- const c0 = "anduin-resizable:resize", ue = "anduin-resizable-panel", z3 = (r) => !!r && r.tagName.toLowerCase() === ue;
6207
- function S3(r, e, t) {
6312
+ const c0 = "anduin-resizable:resize", ge = "anduin-resizable-panel", A3 = (r) => !!r && r.tagName.toLowerCase() === ge;
6313
+ function D3(r, e, t) {
6208
6314
  const o = (r || "").trim();
6209
6315
  if (!o) return t;
6210
6316
  const i = parseFloat(o);
6211
6317
  return Number.isNaN(i) ? t : o.endsWith("%") ? i / 100 * e : i;
6212
6318
  }
6213
- const S4 = class S4 extends h {
6319
+ const D4 = class D4 extends h {
6214
6320
  constructor() {
6215
6321
  super(...arguments), this.orientation = "horizontal";
6216
6322
  }
@@ -6226,7 +6332,7 @@ const S4 = class S4 extends h {
6226
6332
  return this.isVertical ? e.height : e.width;
6227
6333
  }
6228
6334
  get panels() {
6229
- return Array.from(this.querySelectorAll(`:scope > ${ue}`));
6335
+ return Array.from(this.querySelectorAll(`:scope > ${ge}`));
6230
6336
  }
6231
6337
  updated() {
6232
6338
  for (const e of this.querySelectorAll(":scope > anduin-resizable-handle"))
@@ -6251,7 +6357,7 @@ const S4 = class S4 extends h {
6251
6357
  `;
6252
6358
  }
6253
6359
  };
6254
- S4.styles = g`
6360
+ D4.styles = g`
6255
6361
  :host { display: block; width: 100%; height: 100%; font-family: var(--font-sans); }
6256
6362
  .panel-group {
6257
6363
  display: flex; flex-direction: row;
@@ -6259,11 +6365,11 @@ S4.styles = g`
6259
6365
  }
6260
6366
  .panel-group--vertical { flex-direction: column; }
6261
6367
  `;
6262
- let z2 = S4;
6368
+ let S2 = D4;
6263
6369
  S1([
6264
6370
  a({ reflect: !0 })
6265
- ], z2.prototype, "orientation");
6266
- const A4 = class A4 extends h {
6371
+ ], S2.prototype, "orientation");
6372
+ const B4 = class B4 extends h {
6267
6373
  constructor() {
6268
6374
  super(...arguments), this.defaultSize = "", this.minSize = "", this.maxSize = "", this.applied = !1;
6269
6375
  }
@@ -6286,20 +6392,20 @@ const A4 = class A4 extends h {
6286
6392
  return e ? t.height : t.width;
6287
6393
  }
6288
6394
  minPx(e) {
6289
- return S3(this.minSize, e, 0);
6395
+ return D3(this.minSize, e, 0);
6290
6396
  }
6291
6397
  maxPx(e) {
6292
- return S3(this.maxSize, e, e);
6398
+ return D3(this.maxSize, e, e);
6293
6399
  }
6294
6400
  render() {
6295
6401
  return s`<div class="panel" part="panel"><slot></slot></div>`;
6296
6402
  }
6297
6403
  };
6298
- A4.styles = g`
6404
+ B4.styles = g`
6299
6405
  :host { display: block; flex: 1 1 0; min-width: 0; min-height: 0; overflow: hidden; font-family: var(--font-sans); }
6300
6406
  .panel { width: 100%; height: 100%; overflow: hidden; }
6301
6407
  `;
6302
- let j1 = A4;
6408
+ let j1 = B4;
6303
6409
  S1([
6304
6410
  a({ attribute: "default-size" })
6305
6411
  ], j1.prototype, "defaultSize");
@@ -6309,7 +6415,7 @@ S1([
6309
6415
  S1([
6310
6416
  a({ attribute: "max-size" })
6311
6417
  ], j1.prototype, "maxSize");
6312
- const D4 = class D4 extends h {
6418
+ const P4 = class P4 extends h {
6313
6419
  constructor() {
6314
6420
  super(...arguments), this.withHandle = !1, this.groupVertical = !1, this.dragging = !1, this.group = null, this.startPos = 0, this.startPrevPx = 0, this.combinedPx = 0, this.combinedGrow = 0, this.activePointerId = null, this.onPointerDown = (e) => {
6315
6421
  const t = this.closest("anduin-resizable-panel-group"), o = this.prevPanel, i = this.nextPanel;
@@ -6355,10 +6461,10 @@ const D4 = class D4 extends h {
6355
6461
  this.groupVertical = e, this.setAttribute("aria-orientation", e ? "horizontal" : "vertical");
6356
6462
  }
6357
6463
  get prevPanel() {
6358
- return z3(this.previousElementSibling) ? this.previousElementSibling : null;
6464
+ return A3(this.previousElementSibling) ? this.previousElementSibling : null;
6359
6465
  }
6360
6466
  get nextPanel() {
6361
- return z3(this.nextElementSibling) ? this.nextElementSibling : null;
6467
+ return A3(this.nextElementSibling) ? this.nextElementSibling : null;
6362
6468
  }
6363
6469
  endDrag() {
6364
6470
  if (!(!this.dragging && this.activePointerId === null)) {
@@ -6405,7 +6511,7 @@ const D4 = class D4 extends h {
6405
6511
  `;
6406
6512
  }
6407
6513
  };
6408
- D4.styles = g`
6514
+ P4.styles = g`
6409
6515
  :host { display: block; flex: 0 0 auto; position: relative; z-index: 1; outline: none; font-family: var(--font-sans); }
6410
6516
  .handle {
6411
6517
  position: relative; display: flex; align-items: center; justify-content: center;
@@ -6426,7 +6532,7 @@ D4.styles = g`
6426
6532
  .handle:hover .handle__grip, .handle--dragging .handle__grip, :host(:focus-visible) .handle__grip { opacity: 1; }
6427
6533
  .handle--vertical .handle__grip { transform: rotate(90deg); }
6428
6534
  `;
6429
- let U1 = D4;
6535
+ let U1 = P4;
6430
6536
  S1([
6431
6537
  a({ type: Boolean, attribute: "with-handle" })
6432
6538
  ], U1.prototype, "withHandle");
@@ -6436,7 +6542,7 @@ S1([
6436
6542
  S1([
6437
6543
  H()
6438
6544
  ], U1.prototype, "dragging");
6439
- customElements.get("anduin-resizable-panel-group") || customElements.define("anduin-resizable-panel-group", z2);
6545
+ customElements.get("anduin-resizable-panel-group") || customElements.define("anduin-resizable-panel-group", S2);
6440
6546
  customElements.get("anduin-resizable-panel") || customElements.define("anduin-resizable-panel", j1);
6441
6547
  customElements.get("anduin-resizable-handle") || customElements.define("anduin-resizable-handle", U1);
6442
6548
  var C0 = Object.defineProperty, K1 = (r, e, t, o) => {
@@ -6444,12 +6550,12 @@ var C0 = Object.defineProperty, K1 = (r, e, t, o) => {
6444
6550
  (l = r[n]) && (i = l(e, t, i) || i);
6445
6551
  return i && C0(e, t, i), i;
6446
6552
  };
6447
- const p0 = "anduin-pagination:change", h5 = "anduin-pagination:jump";
6553
+ const p0 = "anduin-pagination:change", m5 = "anduin-pagination:jump";
6448
6554
  function X1(r, e) {
6449
6555
  const t = Math.max(e - r + 1, 0);
6450
6556
  return Array.from({ length: t }, (o, i) => r + i);
6451
6557
  }
6452
- const B4 = class B4 extends h {
6558
+ const F4 = class F4 extends h {
6453
6559
  constructor() {
6454
6560
  super(...arguments), this.numberOfPages = 0, this.defaultValue = 1, this.value = null, this.internalValue = 1, this.indicatorReady = !1, this.onJump = (e) => {
6455
6561
  e.stopPropagation(), this.goTo(e.detail === "first" ? 1 : this.count);
@@ -6466,10 +6572,10 @@ const B4 = class B4 extends h {
6466
6572
  return Math.min(Math.max(Math.floor(e || 1), 1), Math.max(this.count, 1));
6467
6573
  }
6468
6574
  connectedCallback() {
6469
- super.connectedCallback(), this.hasUpdated || (this.internalValue = this.defaultValue || 1), this.addEventListener(h5, this.onJump);
6575
+ super.connectedCallback(), this.hasUpdated || (this.internalValue = this.defaultValue || 1), this.addEventListener(m5, this.onJump);
6470
6576
  }
6471
6577
  disconnectedCallback() {
6472
- super.disconnectedCallback(), this.removeEventListener(h5, this.onJump);
6578
+ super.disconnectedCallback(), this.removeEventListener(m5, this.onJump);
6473
6579
  }
6474
6580
  /** MUI-style windowing: boundaryCount = 1, siblingCount = 1. */
6475
6581
  buildItems() {
@@ -6579,7 +6685,7 @@ const B4 = class B4 extends h {
6579
6685
  `;
6580
6686
  }
6581
6687
  };
6582
- B4.styles = g`
6688
+ F4.styles = g`
6583
6689
  :host { display: inline-block; font-family: var(--font-sans); }
6584
6690
  :host(:not([number-of-pages])),
6585
6691
  :host([number-of-pages='0']),
@@ -6642,26 +6748,26 @@ B4.styles = g`
6642
6748
  align-items: stretch;
6643
6749
  }
6644
6750
  `;
6645
- let v1 = B4;
6751
+ let m1 = F4;
6646
6752
  K1([
6647
6753
  a({ type: Number, attribute: "number-of-pages", reflect: !0 })
6648
- ], v1.prototype, "numberOfPages");
6754
+ ], m1.prototype, "numberOfPages");
6649
6755
  K1([
6650
6756
  a({ type: Number, attribute: "default-value" })
6651
- ], v1.prototype, "defaultValue");
6757
+ ], m1.prototype, "defaultValue");
6652
6758
  K1([
6653
6759
  a({ type: Number })
6654
- ], v1.prototype, "value");
6760
+ ], m1.prototype, "value");
6655
6761
  K1([
6656
6762
  H()
6657
- ], v1.prototype, "internalValue");
6763
+ ], m1.prototype, "internalValue");
6658
6764
  K1([
6659
6765
  z(".pagination__indicator")
6660
- ], v1.prototype, "indicatorEl");
6661
- const P4 = class P4 extends h {
6766
+ ], m1.prototype, "indicatorEl");
6767
+ const O4 = class O4 extends h {
6662
6768
  constructor() {
6663
6769
  super(...arguments), this.disabled = !1, this.icon = "", this.label = "", this.target = "first", this.onClick = () => {
6664
- this.disabled || this.dispatchEvent(new CustomEvent(h5, {
6770
+ this.disabled || this.dispatchEvent(new CustomEvent(m5, {
6665
6771
  detail: this.target,
6666
6772
  bubbles: !0,
6667
6773
  composed: !0
@@ -6684,32 +6790,32 @@ const P4 = class P4 extends h {
6684
6790
  `;
6685
6791
  }
6686
6792
  };
6687
- P4.styles = g`
6793
+ O4.styles = g`
6688
6794
  :host { display: inline-flex; }
6689
6795
  `;
6690
- let m2 = P4;
6796
+ let H2 = O4;
6691
6797
  K1([
6692
6798
  a({ type: Boolean })
6693
- ], m2.prototype, "disabled");
6694
- class u0 extends m2 {
6799
+ ], H2.prototype, "disabled");
6800
+ class h0 extends H2 {
6695
6801
  constructor() {
6696
6802
  super(...arguments), this.icon = "chevronVerticalLeft", this.label = "Go to first page", this.target = "first";
6697
6803
  }
6698
6804
  }
6699
- class h0 extends m2 {
6805
+ class u0 extends H2 {
6700
6806
  constructor() {
6701
6807
  super(...arguments), this.icon = "chevronVerticalRight", this.label = "Go to last page", this.target = "last";
6702
6808
  }
6703
6809
  }
6704
- customElements.get("anduin-pagination") || customElements.define("anduin-pagination", v1);
6705
- customElements.get("anduin-pagination-first-page") || customElements.define("anduin-pagination-first-page", u0);
6706
- customElements.get("anduin-pagination-last-page") || customElements.define("anduin-pagination-last-page", h0);
6707
- const F4 = class F4 extends h {
6810
+ customElements.get("anduin-pagination") || customElements.define("anduin-pagination", m1);
6811
+ customElements.get("anduin-pagination-first-page") || customElements.define("anduin-pagination-first-page", h0);
6812
+ customElements.get("anduin-pagination-last-page") || customElements.define("anduin-pagination-last-page", u0);
6813
+ const I4 = class I4 extends h {
6708
6814
  render() {
6709
6815
  return s`<div class="timeline"><slot></slot></div>`;
6710
6816
  }
6711
6817
  };
6712
- F4.styles = g`
6818
+ I4.styles = g`
6713
6819
  :host {
6714
6820
  display: block;
6715
6821
  }
@@ -6723,8 +6829,8 @@ F4.styles = g`
6723
6829
  flex-direction: column;
6724
6830
  }
6725
6831
  `;
6726
- let g5 = F4;
6727
- const O4 = class O4 extends h {
6832
+ let b5 = I4;
6833
+ const T4 = class T4 extends h {
6728
6834
  render() {
6729
6835
  return s`
6730
6836
  <div class="item">
@@ -6734,7 +6840,7 @@ const O4 = class O4 extends h {
6734
6840
  `;
6735
6841
  }
6736
6842
  };
6737
- O4.styles = g`
6843
+ T4.styles = g`
6738
6844
  /* Host padding-left: 29px positions the rail so the dot center
6739
6845
  * (29 + 7 = 36px from left edge) aligns with the timeline axis. */
6740
6846
  :host {
@@ -6824,13 +6930,13 @@ O4.styles = g`
6824
6930
  padding-bottom: 0;
6825
6931
  }
6826
6932
  `;
6827
- let f5 = O4;
6828
- const I4 = class I4 extends h {
6933
+ let H5 = T4;
6934
+ const N4 = class N4 extends h {
6829
6935
  render() {
6830
6936
  return s`<div class="date"><slot></slot></div>`;
6831
6937
  }
6832
6938
  };
6833
- I4.styles = g`
6939
+ N4.styles = g`
6834
6940
  :host {
6835
6941
  display: block;
6836
6942
  }
@@ -6842,25 +6948,25 @@ I4.styles = g`
6842
6948
  color: var(--color-gray-7);
6843
6949
  }
6844
6950
  `;
6845
- let v5 = I4;
6846
- const T4 = class T4 extends h {
6951
+ let y5 = N4;
6952
+ const j4 = class j4 extends h {
6847
6953
  render() {
6848
6954
  return s`<div class="title"><slot></slot></div>`;
6849
6955
  }
6850
6956
  };
6851
- T4.styles = g`
6957
+ j4.styles = g`
6852
6958
  /* Block-level element inheriting the parent's font size and color. */
6853
6959
  :host {
6854
6960
  display: block;
6855
6961
  }
6856
6962
  `;
6857
- let b5 = T4;
6858
- const N4 = class N4 extends h {
6963
+ let _5 = j4;
6964
+ const U4 = class U4 extends h {
6859
6965
  render() {
6860
6966
  return s`<div class="group__items"><slot></slot></div>`;
6861
6967
  }
6862
6968
  };
6863
- N4.styles = g`
6969
+ U4.styles = g`
6864
6970
  :host {
6865
6971
  display: block;
6866
6972
  }
@@ -6879,13 +6985,13 @@ N4.styles = g`
6879
6985
  flex-direction: column;
6880
6986
  }
6881
6987
  `;
6882
- let m5 = N4;
6883
- const j4 = class j4 extends h {
6988
+ let L5 = U4;
6989
+ const G4 = class G4 extends h {
6884
6990
  render() {
6885
6991
  return s`<div class="label-center"><div class="label-pill"><slot></slot></div></div>`;
6886
6992
  }
6887
6993
  };
6888
- j4.styles = g`
6994
+ G4.styles = g`
6889
6995
  /* Sticky positioning keeps the label visible while scrolling. The gray-0
6890
6996
  * background covers content behind it during scroll. z-index: 1 ensures the
6891
6997
  * label sits above item dots and rails. */
@@ -6943,19 +7049,19 @@ j4.styles = g`
6943
7049
  font-weight: 600;
6944
7050
  }
6945
7051
  `;
6946
- let H5 = j4;
6947
- customElements.get("anduin-timeline") || customElements.define("anduin-timeline", g5);
6948
- customElements.get("anduin-timeline-item") || customElements.define("anduin-timeline-item", f5);
6949
- customElements.get("anduin-timeline-date") || customElements.define("anduin-timeline-date", v5);
6950
- customElements.get("anduin-timeline-title") || customElements.define("anduin-timeline-title", b5);
6951
- customElements.get("anduin-timeline-group") || customElements.define("anduin-timeline-group", m5);
6952
- customElements.get("anduin-timeline-label") || customElements.define("anduin-timeline-label", H5);
7052
+ let V5 = G4;
7053
+ customElements.get("anduin-timeline") || customElements.define("anduin-timeline", b5);
7054
+ customElements.get("anduin-timeline-item") || customElements.define("anduin-timeline-item", H5);
7055
+ customElements.get("anduin-timeline-date") || customElements.define("anduin-timeline-date", y5);
7056
+ customElements.get("anduin-timeline-title") || customElements.define("anduin-timeline-title", _5);
7057
+ customElements.get("anduin-timeline-group") || customElements.define("anduin-timeline-group", L5);
7058
+ customElements.get("anduin-timeline-label") || customElements.define("anduin-timeline-label", V5);
6953
7059
  var g0 = Object.defineProperty, A1 = (r, e, t, o) => {
6954
7060
  for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
6955
7061
  (l = r[n]) && (i = l(e, t, i) || i);
6956
7062
  return i && g0(e, t, i), i;
6957
7063
  };
6958
- const f0 = "anduin-sidebar:select", U4 = class U4 extends h {
7064
+ const f0 = "anduin-sidebar:select", K4 = class K4 extends h {
6959
7065
  connectedCallback() {
6960
7066
  super.connectedCallback(), this.hasAttribute("role") || this.setAttribute("role", "navigation");
6961
7067
  }
@@ -6963,7 +7069,7 @@ const f0 = "anduin-sidebar:select", U4 = class U4 extends h {
6963
7069
  return s`<div class="sidebar" part="sidebar"><slot></slot></div>`;
6964
7070
  }
6965
7071
  };
6966
- U4.styles = g`
7072
+ K4.styles = g`
6967
7073
  :host {
6968
7074
  display: flex;
6969
7075
  flex-direction: column;
@@ -6978,13 +7084,13 @@ U4.styles = g`
6978
7084
  min-height: 0;
6979
7085
  }
6980
7086
  `;
6981
- let y5 = U4;
6982
- const G4 = class G4 extends h {
7087
+ let x5 = K4;
7088
+ const W4 = class W4 extends h {
6983
7089
  render() {
6984
7090
  return s`<div class="sidebar-content" part="content"><slot></slot></div>`;
6985
7091
  }
6986
7092
  };
6987
- G4.styles = g`
7093
+ W4.styles = g`
6988
7094
  :host {
6989
7095
  display: flex;
6990
7096
  flex-direction: column;
@@ -6999,8 +7105,8 @@ G4.styles = g`
6999
7105
  padding: 12px 16px;
7000
7106
  }
7001
7107
  `;
7002
- let _5 = G4;
7003
- const K4 = class K4 extends h {
7108
+ let M5 = W4;
7109
+ const Y4 = class Y4 extends h {
7004
7110
  constructor() {
7005
7111
  super(...arguments), this.divider = !1;
7006
7112
  }
@@ -7008,7 +7114,7 @@ const K4 = class K4 extends h {
7008
7114
  return s`<div class="sidebar-header" part="header"><slot></slot></div>`;
7009
7115
  }
7010
7116
  };
7011
- K4.styles = g`
7117
+ Y4.styles = g`
7012
7118
  :host {
7013
7119
  display: block;
7014
7120
  flex: 0 0 auto;
@@ -7019,11 +7125,11 @@ K4.styles = g`
7019
7125
  border-bottom: 1px solid var(--color-gray-3);
7020
7126
  }
7021
7127
  `;
7022
- let S2 = K4;
7128
+ let A2 = Y4;
7023
7129
  A1([
7024
7130
  a({ type: Boolean, reflect: !0 })
7025
- ], S2.prototype, "divider");
7026
- const W4 = class W4 extends h {
7131
+ ], A2.prototype, "divider");
7132
+ const q4 = class q4 extends h {
7027
7133
  constructor() {
7028
7134
  super(...arguments), this.divider = !1;
7029
7135
  }
@@ -7031,7 +7137,7 @@ const W4 = class W4 extends h {
7031
7137
  return s`<div class="sidebar-footer" part="footer"><slot></slot></div>`;
7032
7138
  }
7033
7139
  };
7034
- W4.styles = g`
7140
+ q4.styles = g`
7035
7141
  :host {
7036
7142
  display: block;
7037
7143
  flex: 0 0 auto;
@@ -7042,16 +7148,16 @@ W4.styles = g`
7042
7148
  border-top: 1px solid var(--color-gray-3);
7043
7149
  }
7044
7150
  `;
7045
- let A2 = W4;
7151
+ let D2 = q4;
7046
7152
  A1([
7047
7153
  a({ type: Boolean, reflect: !0 })
7048
- ], A2.prototype, "divider");
7049
- const Y4 = class Y4 extends h {
7154
+ ], D2.prototype, "divider");
7155
+ const X4 = class X4 extends h {
7050
7156
  render() {
7051
7157
  return s`<div class="sidebar-group" part="group" role="group"><slot></slot></div>`;
7052
7158
  }
7053
7159
  };
7054
- Y4.styles = g`
7160
+ X4.styles = g`
7055
7161
  :host {
7056
7162
  display: block;
7057
7163
  }
@@ -7061,8 +7167,8 @@ Y4.styles = g`
7061
7167
  gap: 4px;
7062
7168
  }
7063
7169
  `;
7064
- let V5 = Y4;
7065
- const q4 = class q4 extends h {
7170
+ let w5 = X4;
7171
+ const J4 = class J4 extends h {
7066
7172
  render() {
7067
7173
  return s`
7068
7174
  <div class="sidebar-group-label" part="group-label">
@@ -7073,7 +7179,7 @@ const q4 = class q4 extends h {
7073
7179
  `;
7074
7180
  }
7075
7181
  };
7076
- q4.styles = g`
7182
+ J4.styles = g`
7077
7183
  :host {
7078
7184
  display: block;
7079
7185
  }
@@ -7105,13 +7211,13 @@ q4.styles = g`
7105
7211
  padding-right: 6px;
7106
7212
  }
7107
7213
  `;
7108
- let L5 = q4;
7109
- const X4 = class X4 extends h {
7214
+ let Z5 = J4;
7215
+ const Q4 = class Q4 extends h {
7110
7216
  render() {
7111
7217
  return s`<div class="sidebar-menu" part="menu"><slot></slot></div>`;
7112
7218
  }
7113
7219
  };
7114
- X4.styles = g`
7220
+ Q4.styles = g`
7115
7221
  :host {
7116
7222
  display: block;
7117
7223
  }
@@ -7121,8 +7227,8 @@ X4.styles = g`
7121
7227
  gap: 2px;
7122
7228
  }
7123
7229
  `;
7124
- let x5 = X4;
7125
- const J4 = class J4 extends h {
7230
+ let k5 = Q4;
7231
+ const e3 = class e3 extends h {
7126
7232
  constructor() {
7127
7233
  super(...arguments), this.startIcon = "", this.selected = !1, this.disabled = !1, this.href = "", this.openNewTab = !1, this.onClick = (e) => {
7128
7234
  if (this.disabled) {
@@ -7178,7 +7284,7 @@ const J4 = class J4 extends h {
7178
7284
  `;
7179
7285
  }
7180
7286
  };
7181
- J4.styles = g`
7287
+ e3.styles = g`
7182
7288
  :host {
7183
7289
  display: block;
7184
7290
  }
@@ -7261,7 +7367,7 @@ J4.styles = g`
7261
7367
  padding-right: 6px;
7262
7368
  }
7263
7369
  `;
7264
- let b1 = J4;
7370
+ let b1 = e3;
7265
7371
  A1([
7266
7372
  a({ attribute: "start-icon" })
7267
7373
  ], b1.prototype, "startIcon");
@@ -7277,7 +7383,7 @@ A1([
7277
7383
  A1([
7278
7384
  a({ type: Boolean, attribute: "open-new-tab" })
7279
7385
  ], b1.prototype, "openNewTab");
7280
- const Q4 = class Q4 extends h {
7386
+ const t3 = class t3 extends h {
7281
7387
  connectedCallback() {
7282
7388
  super.connectedCallback(), this.hasAttribute("slot") || this.setAttribute("slot", "action");
7283
7389
  }
@@ -7285,7 +7391,7 @@ const Q4 = class Q4 extends h {
7285
7391
  return s`<div class="sidebar-action" part="action"><slot></slot></div>`;
7286
7392
  }
7287
7393
  };
7288
- Q4.styles = g`
7394
+ t3.styles = g`
7289
7395
  :host {
7290
7396
  display: flex;
7291
7397
  align-items: center;
@@ -7295,8 +7401,8 @@ Q4.styles = g`
7295
7401
  align-items: center;
7296
7402
  }
7297
7403
  `;
7298
- let M5 = Q4;
7299
- const e3 = class e3 extends h {
7404
+ let R5 = t3;
7405
+ const i3 = class i3 extends h {
7300
7406
  connectedCallback() {
7301
7407
  super.connectedCallback(), this.hasAttribute("slot") || this.setAttribute("slot", "badge");
7302
7408
  }
@@ -7304,7 +7410,7 @@ const e3 = class e3 extends h {
7304
7410
  return s`<div class="sidebar-badge" part="badge"><slot></slot></div>`;
7305
7411
  }
7306
7412
  };
7307
- e3.styles = g`
7413
+ i3.styles = g`
7308
7414
  :host {
7309
7415
  display: flex;
7310
7416
  align-items: center;
@@ -7314,8 +7420,8 @@ e3.styles = g`
7314
7420
  align-items: center;
7315
7421
  }
7316
7422
  `;
7317
- let w5 = e3;
7318
- const t3 = class t3 extends h {
7423
+ let $5 = i3;
7424
+ const o3 = class o3 extends h {
7319
7425
  connectedCallback() {
7320
7426
  super.connectedCallback(), this.hasAttribute("role") || this.setAttribute("role", "separator");
7321
7427
  }
@@ -7323,7 +7429,7 @@ const t3 = class t3 extends h {
7323
7429
  return s`<div class="sidebar-separator" part="separator"></div>`;
7324
7430
  }
7325
7431
  };
7326
- t3.styles = g`
7432
+ o3.styles = g`
7327
7433
  :host {
7328
7434
  display: block;
7329
7435
  }
@@ -7332,18 +7438,18 @@ t3.styles = g`
7332
7438
  background-color: var(--color-gray-3);
7333
7439
  }
7334
7440
  `;
7335
- let Z5 = t3;
7336
- customElements.get("anduin-sidebar") || customElements.define("anduin-sidebar", y5);
7337
- customElements.get("anduin-sidebar-content") || customElements.define("anduin-sidebar-content", _5);
7338
- customElements.get("anduin-sidebar-header") || customElements.define("anduin-sidebar-header", S2);
7339
- customElements.get("anduin-sidebar-footer") || customElements.define("anduin-sidebar-footer", A2);
7340
- customElements.get("anduin-sidebar-group") || customElements.define("anduin-sidebar-group", V5);
7341
- customElements.get("anduin-sidebar-group-label") || customElements.define("anduin-sidebar-group-label", L5);
7342
- customElements.get("anduin-sidebar-menu") || customElements.define("anduin-sidebar-menu", x5);
7441
+ let E5 = o3;
7442
+ customElements.get("anduin-sidebar") || customElements.define("anduin-sidebar", x5);
7443
+ customElements.get("anduin-sidebar-content") || customElements.define("anduin-sidebar-content", M5);
7444
+ customElements.get("anduin-sidebar-header") || customElements.define("anduin-sidebar-header", A2);
7445
+ customElements.get("anduin-sidebar-footer") || customElements.define("anduin-sidebar-footer", D2);
7446
+ customElements.get("anduin-sidebar-group") || customElements.define("anduin-sidebar-group", w5);
7447
+ customElements.get("anduin-sidebar-group-label") || customElements.define("anduin-sidebar-group-label", Z5);
7448
+ customElements.get("anduin-sidebar-menu") || customElements.define("anduin-sidebar-menu", k5);
7343
7449
  customElements.get("anduin-sidebar-menu-item") || customElements.define("anduin-sidebar-menu-item", b1);
7344
- customElements.get("anduin-sidebar-action") || customElements.define("anduin-sidebar-action", M5);
7345
- customElements.get("anduin-sidebar-badge") || customElements.define("anduin-sidebar-badge", w5);
7346
- customElements.get("anduin-sidebar-separator") || customElements.define("anduin-sidebar-separator", Z5);
7450
+ customElements.get("anduin-sidebar-action") || customElements.define("anduin-sidebar-action", R5);
7451
+ customElements.get("anduin-sidebar-badge") || customElements.define("anduin-sidebar-badge", $5);
7452
+ customElements.get("anduin-sidebar-separator") || customElements.define("anduin-sidebar-separator", E5);
7347
7453
  function A(r) {
7348
7454
  if (!r) return null;
7349
7455
  const e = /^(\d{4})-(\d{1,2})-(\d{1,2})$/.exec(r.trim());
@@ -7351,7 +7457,7 @@ function A(r) {
7351
7457
  const [t, o, i] = [Number(e[1]), Number(e[2]), Number(e[3])], n = new Date(t, o - 1, i);
7352
7458
  return n.getFullYear() !== t || n.getMonth() !== o - 1 || n.getDate() !== i ? null : n;
7353
7459
  }
7354
- function V1(r) {
7460
+ function L1(r) {
7355
7461
  const e = (t) => String(t).padStart(2, "0");
7356
7462
  return `${r.getFullYear()}-${e(r.getMonth() + 1)}-${e(r.getDate())}`;
7357
7463
  }
@@ -7359,19 +7465,19 @@ function P1() {
7359
7465
  const r = /* @__PURE__ */ new Date();
7360
7466
  return new Date(r.getFullYear(), r.getMonth(), r.getDate());
7361
7467
  }
7362
- function d1(r, e) {
7468
+ function c1(r, e) {
7363
7469
  const t = r.getFullYear(), o = r.getMonth() + e, i = new Date(t, o + 1, 0).getDate();
7364
7470
  return new Date(t, o, Math.min(r.getDate(), i));
7365
7471
  }
7366
7472
  function v0(r, e) {
7367
7473
  return new Date(r, e + 1, 0).getDate();
7368
7474
  }
7369
- var b0 = Object.defineProperty, e1 = (r, e, t, o) => {
7475
+ var m0 = Object.defineProperty, e1 = (r, e, t, o) => {
7370
7476
  for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
7371
7477
  (l = r[n]) && (i = l(e, t, i) || i);
7372
- return i && b0(e, t, i), i;
7478
+ return i && m0(e, t, i), i;
7373
7479
  };
7374
- const H2 = "anduin-calendar:change", k5 = "anduin-calendar:day-hover", A3 = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], D3 = [
7480
+ const y2 = "anduin-calendar:change", z5 = "anduin-calendar:day-hover", B3 = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], P3 = [
7375
7481
  "January",
7376
7482
  "February",
7377
7483
  "March",
@@ -7384,7 +7490,7 @@ const H2 = "anduin-calendar:change", k5 = "anduin-calendar:day-hover", A3 = ["Ja
7384
7490
  "October",
7385
7491
  "November",
7386
7492
  "December"
7387
- ], m0 = ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], B3 = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"];
7493
+ ], b0 = ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], F3 = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"];
7388
7494
  function D1(r, e) {
7389
7495
  return new Date(r.getFullYear(), r.getMonth(), r.getDate() + e);
7390
7496
  }
@@ -7392,7 +7498,7 @@ function H0(r) {
7392
7498
  const e = ["th", "st", "nd", "rd"], t = r % 100;
7393
7499
  return `${r}${e[(t - 20) % 10] ?? e[t] ?? e[0]}`;
7394
7500
  }
7395
- const i3 = class i3 extends h {
7501
+ const n3 = class n3 extends h {
7396
7502
  constructor() {
7397
7503
  super(...arguments), this.value = "", this.minDate = "", this.maxDate = "", this.rangeStart = "", this.rangeEnd = "", this.rangeMode = !1, this._viewMonth = P1().getMonth(), this._viewYear = P1().getFullYear(), this._focus = "", this._openSelect = null, this._viewSeeded = !1, this._pendingFocus = !1, this._onOutsideClick = (e) => {
7398
7504
  this._openSelect && !e.composedPath().includes(this) && (this._openSelect = null);
@@ -7440,13 +7546,13 @@ const i3 = class i3 extends h {
7440
7546
  }
7441
7547
  // ── Navigation ──────────────────────────────────────────────────
7442
7548
  _shiftMonth(e) {
7443
- const t = d1(new Date(this._viewYear, this._viewMonth, 1), e);
7549
+ const t = c1(new Date(this._viewYear, this._viewMonth, 1), e);
7444
7550
  this._viewYear = t.getFullYear(), this._viewMonth = t.getMonth(), this._viewSeeded = !0;
7445
7551
  }
7446
7552
  /** Move the roving focus, pulling the displayed month along with it. */
7447
7553
  _moveFocus(e, t) {
7448
7554
  const o = this._clamp(t);
7449
- this._isDisabled(o) || (this._focus = V1(o), (o.getMonth() !== e.getMonth() || o.getFullYear() !== e.getFullYear()) && (this._viewYear = o.getFullYear(), this._viewMonth = o.getMonth(), this._viewSeeded = !0), this._pendingFocus = !0);
7555
+ this._isDisabled(o) || (this._focus = L1(o), (o.getMonth() !== e.getMonth() || o.getFullYear() !== e.getFullYear()) && (this._viewYear = o.getFullYear(), this._viewMonth = o.getMonth(), this._viewSeeded = !0), this._pendingFocus = !0);
7450
7556
  }
7451
7557
  _onGridKeyDown(e) {
7452
7558
  const t = A(this._focus) ?? this._defaultFocusDate();
@@ -7454,16 +7560,16 @@ const i3 = class i3 extends h {
7454
7560
  // Shift turns the horizontal arrows into month steps and the vertical
7455
7561
  // ones into year steps.
7456
7562
  case "ArrowLeft":
7457
- this._moveFocus(t, e.shiftKey ? d1(t, -1) : D1(t, -1));
7563
+ this._moveFocus(t, e.shiftKey ? c1(t, -1) : D1(t, -1));
7458
7564
  break;
7459
7565
  case "ArrowRight":
7460
- this._moveFocus(t, e.shiftKey ? d1(t, 1) : D1(t, 1));
7566
+ this._moveFocus(t, e.shiftKey ? c1(t, 1) : D1(t, 1));
7461
7567
  break;
7462
7568
  case "ArrowUp":
7463
- this._moveFocus(t, e.shiftKey ? d1(t, -12) : D1(t, -7));
7569
+ this._moveFocus(t, e.shiftKey ? c1(t, -12) : D1(t, -7));
7464
7570
  break;
7465
7571
  case "ArrowDown":
7466
- this._moveFocus(t, e.shiftKey ? d1(t, 12) : D1(t, 7));
7572
+ this._moveFocus(t, e.shiftKey ? c1(t, 12) : D1(t, 7));
7467
7573
  break;
7468
7574
  case "Home":
7469
7575
  this._moveFocus(t, D1(t, -t.getDay()));
@@ -7472,10 +7578,10 @@ const i3 = class i3 extends h {
7472
7578
  this._moveFocus(t, D1(t, 6 - t.getDay()));
7473
7579
  break;
7474
7580
  case "PageUp":
7475
- this._moveFocus(t, d1(t, e.shiftKey ? -12 : -1));
7581
+ this._moveFocus(t, c1(t, e.shiftKey ? -12 : -1));
7476
7582
  break;
7477
7583
  case "PageDown":
7478
- this._moveFocus(t, d1(t, e.shiftKey ? 12 : 1));
7584
+ this._moveFocus(t, c1(t, e.shiftKey ? 12 : 1));
7479
7585
  break;
7480
7586
  case "Enter":
7481
7587
  case " ":
@@ -7488,11 +7594,11 @@ const i3 = class i3 extends h {
7488
7594
  }
7489
7595
  // ── Selection ───────────────────────────────────────────────────
7490
7596
  _pick(e) {
7491
- const t = V1(e);
7492
- this.value = t, this._focus = t, this.dispatchEvent(new CustomEvent(H2, { detail: t, bubbles: !0, composed: !0 }));
7597
+ const t = L1(e);
7598
+ this.value = t, this._focus = t, this.dispatchEvent(new CustomEvent(y2, { detail: t, bubbles: !0, composed: !0 }));
7493
7599
  }
7494
7600
  _emitHover(e) {
7495
- this.dispatchEvent(new CustomEvent(k5, { detail: e, bubbles: !0, composed: !0 }));
7601
+ this.dispatchEvent(new CustomEvent(z5, { detail: e, bubbles: !0, composed: !0 }));
7496
7602
  }
7497
7603
  /** The day that owns `tabindex="0"` when nothing has been focused yet. */
7498
7604
  _defaultFocusDate() {
@@ -7551,15 +7657,15 @@ const i3 = class i3 extends h {
7551
7657
  }
7552
7658
  // ── Render ──────────────────────────────────────────────────────
7553
7659
  render() {
7554
- const e = V1(P1()), t = A(this.value), o = A(this.rangeStart), i = A(this.rangeEnd), n = this.rangeMode || !!(o || i), l = V1(this._defaultFocusDate()), d = new Date(this._viewYear, this._viewMonth, 1), c = new Date(this._viewYear, this._viewMonth + 1, 0).getDate(), C = d.getDay(), p = [
7660
+ const e = L1(P1()), t = A(this.value), o = A(this.rangeStart), i = A(this.rangeEnd), n = this.rangeMode || !!(o || i), l = L1(this._defaultFocusDate()), d = new Date(this._viewYear, this._viewMonth, 1), c = new Date(this._viewYear, this._viewMonth + 1, 0).getDate(), C = d.getDay(), p = [
7555
7661
  ...Array.from({ length: C }, () => null),
7556
7662
  ...Array.from({ length: c }, (_, v) => v + 1)
7557
7663
  ];
7558
7664
  for (; p.length % 7 !== 0; ) p.push(null);
7559
- const f = Array.from({ length: p.length / 7 }, (_, v) => p.slice(v * 7, v * 7 + 7)), m = `${D3[this._viewMonth]} ${this._viewYear}`, b = (() => {
7665
+ const f = Array.from({ length: p.length / 7 }, (_, v) => p.slice(v * 7, v * 7 + 7)), b = `${P3[this._viewMonth]} ${this._viewYear}`, m = (() => {
7560
7666
  const _ = this._min;
7561
7667
  return _ ? new Date(this._viewYear, this._viewMonth, 0).getTime() < _.getTime() : !1;
7562
- })(), L = (() => {
7668
+ })(), V = (() => {
7563
7669
  const _ = this._max;
7564
7670
  return _ ? new Date(this._viewYear, this._viewMonth + 1, 1).getTime() > _.getTime() : !1;
7565
7671
  })();
@@ -7571,15 +7677,15 @@ const i3 = class i3 extends h {
7571
7677
  size="small"
7572
7678
  start-icon="chevronLeft"
7573
7679
  label="Previous month"
7574
- ?disabled=${b}
7680
+ ?disabled=${m}
7575
7681
  @click=${() => this._shiftMonth(-1)}
7576
7682
  ></anduin-button>
7577
7683
  <div class="calendar__header-spacer"></div>
7578
7684
  ${this._renderSelect(
7579
7685
  "month",
7580
- A3[this._viewMonth],
7686
+ B3[this._viewMonth],
7581
7687
  "Choose the month",
7582
- A3.map((_, v) => ({ value: v, label: _, selected: v === this._viewMonth })),
7688
+ B3.map((_, v) => ({ value: v, label: _, selected: v === this._viewMonth })),
7583
7689
  (_) => this._selectMonth(_)
7584
7690
  )}
7585
7691
  ${this._renderSelect(
@@ -7595,7 +7701,7 @@ const i3 = class i3 extends h {
7595
7701
  size="small"
7596
7702
  start-icon="chevronRight"
7597
7703
  label="Next month"
7598
- ?disabled=${L}
7704
+ ?disabled=${V}
7599
7705
  @click=${() => this._shiftMonth(1)}
7600
7706
  ></anduin-button>
7601
7707
  </div>
@@ -7605,14 +7711,14 @@ const i3 = class i3 extends h {
7605
7711
  part="grid"
7606
7712
  role="grid"
7607
7713
  aria-multiselectable="false"
7608
- aria-label="${m}"
7714
+ aria-label="${b}"
7609
7715
  @keydown=${this._onGridKeyDown}
7610
7716
  @mouseleave=${() => this._emitHover(null)}
7611
7717
  >
7612
7718
  <thead aria-hidden="true">
7613
7719
  <tr>
7614
- ${m0.map((_, v) => s`
7615
- <th class="calendar__day-header" aria-label="${B3[v]}">${_}</th>
7720
+ ${b0.map((_, v) => s`
7721
+ <th class="calendar__day-header" aria-label="${F3[v]}">${_}</th>
7616
7722
  `)}
7617
7723
  </tr>
7618
7724
  </thead>
@@ -7621,40 +7727,40 @@ const i3 = class i3 extends h {
7621
7727
  <tr>
7622
7728
  ${_.map((v) => {
7623
7729
  if (v === null) return s`<td class="calendar__day-cell"></td>`;
7624
- const x = new Date(this._viewYear, this._viewMonth, v), M = V1(x), S = x.getTime(), j = this._isDisabled(x), Y1 = !!o && S === o.getTime(), t1 = !!i && S === i.getTime(), s3 = !!o && !!i && S > o.getTime() && S < i.getTime(), d3 = !n && !!t && S === t.getTime(), ge = [
7730
+ const x = new Date(this._viewYear, this._viewMonth, v), M = L1(x), S = x.getTime(), U = this._isDisabled(x), Y1 = !!o && S === o.getTime(), t1 = !!i && S === i.getTime(), c3 = !!o && !!i && S > o.getTime() && S < i.getTime(), C3 = !n && !!t && S === t.getTime(), ve = [
7625
7731
  "calendar__day-cell",
7626
- s3 ? "calendar__day-cell--in-range" : "",
7732
+ c3 ? "calendar__day-cell--in-range" : "",
7627
7733
  // Only tint the edge cell when it actually opens a span —
7628
7734
  // a lone start marker shouldn't paint a half-rounded block.
7629
7735
  Y1 && i ? "calendar__day-cell--range-start" : "",
7630
7736
  t1 && o ? "calendar__day-cell--range-end" : ""
7631
- ].filter(Boolean).join(" "), fe = [
7737
+ ].filter(Boolean).join(" "), me = [
7632
7738
  "calendar__day-button",
7633
7739
  M === e ? "calendar__day-button--today" : "",
7634
- d3 ? "calendar__day-button--selected" : "",
7740
+ C3 ? "calendar__day-button--selected" : "",
7635
7741
  Y1 ? "calendar__day-button--range-start" : "",
7636
7742
  t1 ? "calendar__day-button--range-end" : "",
7637
- s3 ? "calendar__day-button--in-range" : "",
7638
- j ? "calendar__day-button--disabled" : ""
7743
+ c3 ? "calendar__day-button--in-range" : "",
7744
+ U ? "calendar__day-button--disabled" : ""
7639
7745
  ].filter(Boolean).join(" ");
7640
7746
  return s`
7641
7747
  <td
7642
- class="${ge}"
7748
+ class="${ve}"
7643
7749
  role="gridcell"
7644
- aria-selected="${d3 || Y1 || t1}"
7750
+ aria-selected="${C3 || Y1 || t1}"
7645
7751
  >
7646
7752
  <button
7647
7753
  type="button"
7648
- class="${fe}"
7754
+ class="${me}"
7649
7755
  part="day"
7650
- aria-disabled="${j}"
7651
- aria-label="${B3[x.getDay()]}, ${D3[x.getMonth()]} ${H0(v)}, ${x.getFullYear()}"
7756
+ aria-disabled="${U}"
7757
+ aria-label="${F3[x.getDay()]}, ${P3[x.getMonth()]} ${H0(v)}, ${x.getFullYear()}"
7652
7758
  tabindex="${M === l ? 0 : -1}"
7653
7759
  @click=${() => {
7654
- j || this._pick(x);
7760
+ U || this._pick(x);
7655
7761
  }}
7656
7762
  @mouseenter=${() => {
7657
- j || this._emitHover(M);
7763
+ U || this._emitHover(M);
7658
7764
  }}
7659
7765
  >${v}</button>
7660
7766
  </td>
@@ -7668,7 +7774,7 @@ const i3 = class i3 extends h {
7668
7774
  `;
7669
7775
  }
7670
7776
  };
7671
- i3.styles = g`
7777
+ n3.styles = g`
7672
7778
  :host { display: inline-block; font-family: var(--font-sans); }
7673
7779
 
7674
7780
  .calendar { display: flex; flex-direction: column; font-family: inherit; font-size: 13px; }
@@ -7763,7 +7869,7 @@ i3.styles = g`
7763
7869
  .calendar__day-button--in-range { color: var(--color-primary-7, var(--color-primary-5)); }
7764
7870
  .calendar__day-button--in-range:hover { background-color: var(--color-primary-2); }
7765
7871
  `;
7766
- let T = i3;
7872
+ let T = n3;
7767
7873
  e1([
7768
7874
  a({ reflect: !0 })
7769
7875
  ], T.prototype, "value");
@@ -7800,7 +7906,7 @@ var y0 = Object.defineProperty, W1 = (r, e, t, o) => {
7800
7906
  (l = r[n]) && (i = l(e, t, i) || i);
7801
7907
  return i && y0(e, t, i), i;
7802
7908
  };
7803
- const _0 = "anduin-date-range:change", o3 = class o3 extends h {
7909
+ const _0 = "anduin-date-range:change", r3 = class r3 extends h {
7804
7910
  constructor() {
7805
7911
  super(...arguments), this.startDate = "", this.endDate = "", this.minDate = "", this.maxDate = "", this._anchor = null, this._hover = null, this._panels = /* @__PURE__ */ new Map(), this._pushedValue = /* @__PURE__ */ new Map(), this._onCalendarChange = (e) => {
7806
7912
  e.stopPropagation();
@@ -7821,10 +7927,10 @@ const _0 = "anduin-date-range:change", o3 = class o3 extends h {
7821
7927
  };
7822
7928
  }
7823
7929
  connectedCallback() {
7824
- super.connectedCallback(), this.addEventListener(H2, this._onCalendarChange), this.addEventListener(k5, this._onCalendarHover);
7930
+ super.connectedCallback(), this.addEventListener(y2, this._onCalendarChange), this.addEventListener(z5, this._onCalendarHover);
7825
7931
  }
7826
7932
  disconnectedCallback() {
7827
- super.disconnectedCallback(), this.removeEventListener(H2, this._onCalendarChange), this.removeEventListener(k5, this._onCalendarHover);
7933
+ super.disconnectedCallback(), this.removeEventListener(y2, this._onCalendarChange), this.removeEventListener(z5, this._onCalendarHover);
7828
7934
  }
7829
7935
  updated() {
7830
7936
  this._sync();
@@ -7853,7 +7959,7 @@ const _0 = "anduin-date-range:change", o3 = class o3 extends h {
7853
7959
  * after it on the right. Falls back to today when there's no range yet. */
7854
7960
  _panelValue(e) {
7855
7961
  const t = A(this.startDate) ?? P1();
7856
- return V1(e === "start" ? t : d1(t, 1));
7962
+ return L1(e === "start" ? t : c1(t, 1));
7857
7963
  }
7858
7964
  /** The range the calendars should paint — the live preview while selecting,
7859
7965
  * otherwise the committed range. */
@@ -7871,10 +7977,10 @@ const _0 = "anduin-date-range:change", o3 = class o3 extends h {
7871
7977
  return s`<div class="date-range" part="date-range"><slot></slot></div>`;
7872
7978
  }
7873
7979
  };
7874
- o3.styles = g`
7980
+ r3.styles = g`
7875
7981
  :host { display: inline-block; font-family: var(--font-sans); }
7876
7982
  `;
7877
- let Q = o3;
7983
+ let Q = r3;
7878
7984
  W1([
7879
7985
  a({ attribute: "start-date", reflect: !0 })
7880
7986
  ], Q.prototype, "startDate");
@@ -7893,7 +7999,7 @@ W1([
7893
7999
  W1([
7894
8000
  H()
7895
8001
  ], Q.prototype, "_hover");
7896
- const n3 = class n3 extends h {
8002
+ const l3 = class l3 extends h {
7897
8003
  constructor() {
7898
8004
  super(...arguments), this._host = null;
7899
8005
  }
@@ -7922,21 +8028,21 @@ const n3 = class n3 extends h {
7922
8028
  return s`<anduin-calendar part="calendar" range-mode></anduin-calendar>`;
7923
8029
  }
7924
8030
  };
7925
- n3.styles = g`
8031
+ l3.styles = g`
7926
8032
  :host { display: inline-block; font-family: var(--font-sans); }
7927
8033
  `;
7928
- let D2 = n3;
7929
- class V0 extends D2 {
8034
+ let B2 = l3;
8035
+ class L0 extends B2 {
7930
8036
  constructor() {
7931
8037
  super(...arguments), this.panelRole = "start";
7932
8038
  }
7933
8039
  }
7934
- class L0 extends D2 {
8040
+ class V0 extends B2 {
7935
8041
  constructor() {
7936
8042
  super(...arguments), this.panelRole = "end";
7937
8043
  }
7938
8044
  }
7939
- const r3 = class r3 extends h {
8045
+ const a3 = class a3 extends h {
7940
8046
  render() {
7941
8047
  return s`
7942
8048
  <div class="date-range-default" part="layout">
@@ -7946,30 +8052,30 @@ const r3 = class r3 extends h {
7946
8052
  `;
7947
8053
  }
7948
8054
  };
7949
- r3.styles = g`
8055
+ a3.styles = g`
7950
8056
  :host { display: inline-block; font-family: var(--font-sans); }
7951
8057
 
7952
8058
  .date-range-default { display: flex; flex-direction: row; gap: 16px; }
7953
8059
  `;
7954
- let R5 = r3;
8060
+ let S5 = a3;
7955
8061
  customElements.get("anduin-date-range") || customElements.define("anduin-date-range", Q);
7956
- customElements.get("anduin-date-range-default") || customElements.define("anduin-date-range-default", R5);
7957
- customElements.get("anduin-date-range-start") || customElements.define("anduin-date-range-start", V0);
7958
- customElements.get("anduin-date-range-end") || customElements.define("anduin-date-range-end", L0);
8062
+ customElements.get("anduin-date-range-default") || customElements.define("anduin-date-range-default", S5);
8063
+ customElements.get("anduin-date-range-start") || customElements.define("anduin-date-range-start", L0);
8064
+ customElements.get("anduin-date-range-end") || customElements.define("anduin-date-range-end", V0);
7959
8065
  var x0 = Object.defineProperty, O = (r, e, t, o) => {
7960
8066
  for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
7961
8067
  (l = r[n]) && (i = l(e, t, i) || i);
7962
8068
  return i && x0(e, t, i), i;
7963
8069
  };
7964
- const $5 = "anduin-date-input:change", P3 = { M: "month", d: "day", y: "year" };
8070
+ const A5 = "anduin-date-input:change", O3 = { M: "month", d: "day", y: "year" };
7965
8071
  function M0(r) {
7966
8072
  const e = [];
7967
8073
  let t = 0, o = 0;
7968
8074
  for (; o < r.length; ) {
7969
- const i = r[o], n = P3[i];
8075
+ const i = r[o], n = O3[i];
7970
8076
  if (!n) {
7971
8077
  let d = "";
7972
- for (; o < r.length && !P3[r[o]]; ) d += r[o++];
8078
+ for (; o < r.length && !O3[r[o]]; ) d += r[o++];
7973
8079
  e.push({ literal: d }), t += d.length;
7974
8080
  continue;
7975
8081
  }
@@ -7979,10 +8085,10 @@ function M0(r) {
7979
8085
  }
7980
8086
  return e;
7981
8087
  }
7982
- function Y2(r) {
8088
+ function e5(r) {
7983
8089
  return r.type === "year" ? 10 ** r.length - 1 : r.length === 1 ? 9 : r.type === "month" ? 12 : 31;
7984
8090
  }
7985
- const J1 = 1, B2 = class B2 extends h {
8091
+ const J1 = 1, O2 = class O2 extends h {
7986
8092
  constructor() {
7987
8093
  super(...arguments), this.format = "MM/dd/yyyy", this.value = "", this.size = "default", this.disabled = !1, this.readonly = !1, this.status = "", this.startIcon = "", this.minDate = "", this.maxDate = "", this.inputid = "", this._digits = [], this._active = 0, this._buffer = "", this._pendingSelection = null, this._tokens = [], this._segments = [], this._onFieldLabelClick = (e) => {
7988
8094
  const t = e.detail;
@@ -8035,7 +8141,7 @@ const J1 = 1, B2 = class B2 extends h {
8035
8141
  return;
8036
8142
  }
8037
8143
  const o = this._clampToBounds(e);
8038
- this._digits = o, this.value = this._composeValue(), this.dispatchEvent(new CustomEvent($5, {
8144
+ this._digits = o, this.value = this._composeValue(), this.dispatchEvent(new CustomEvent(A5, {
8039
8145
  detail: this.value,
8040
8146
  bubbles: !0,
8041
8147
  composed: !0
@@ -8053,14 +8159,14 @@ const J1 = 1, B2 = class B2 extends h {
8053
8159
  if (!t && !o) return e;
8054
8160
  const i = this._indexOfType("month"), n = this._indexOfType("day"), l = this._indexOfType("year");
8055
8161
  if (i < 0 || n < 0 || l < 0) return e;
8056
- const d = Number(e[l]), c = Number(e[i]), C = Number(e[n]), p = Math.min(C, v0(d, c - 1)), f = new Date(d, c - 1, p), m = t && f.getTime() < t.getTime() ? t : o && f.getTime() > o.getTime() ? o : null;
8057
- if (!m) {
8162
+ const d = Number(e[l]), c = Number(e[i]), C = Number(e[n]), p = Math.min(C, v0(d, c - 1)), f = new Date(d, c - 1, p), b = t && f.getTime() < t.getTime() ? t : o && f.getTime() > o.getTime() ? o : null;
8163
+ if (!b) {
8058
8164
  if (p === C) return e;
8059
- const L = [...e];
8060
- return L[n] = String(p).padStart(this._segments[n].length, "0"), L;
8165
+ const V = [...e];
8166
+ return V[n] = String(p).padStart(this._segments[n].length, "0"), V;
8061
8167
  }
8062
- const b = [...e];
8063
- return b[l] = String(m.getFullYear()).padStart(this._segments[l].length, "0").slice(-this._segments[l].length), b[i] = String(m.getMonth() + 1).padStart(this._segments[i].length, "0"), b[n] = String(m.getDate()).padStart(this._segments[n].length, "0"), b;
8168
+ const m = [...e];
8169
+ return m[l] = String(b.getFullYear()).padStart(this._segments[l].length, "0").slice(-this._segments[l].length), m[i] = String(b.getMonth() + 1).padStart(this._segments[i].length, "0"), m[n] = String(b.getDate()).padStart(this._segments[n].length, "0"), m;
8064
8170
  }
8065
8171
  // ── Selection ───────────────────────────────────────────────────
8066
8172
  _focusSegment(e) {
@@ -8092,7 +8198,7 @@ const J1 = 1, B2 = class B2 extends h {
8092
8198
  _writeSegment(e, t) {
8093
8199
  const o = this._segments[e];
8094
8200
  if (!o) return;
8095
- const i = Math.min(Math.max(Number(t), J1), Y2(o)), n = [...this._digits];
8201
+ const i = Math.min(Math.max(Number(t), J1), e5(o)), n = [...this._digits];
8096
8202
  n[e] = String(i).padStart(o.length, "0"), this._buffer = "", this._setDigits(n);
8097
8203
  }
8098
8204
  /** Commit any half-typed digits so they aren't stranded on blur or navigation. */
@@ -8111,7 +8217,7 @@ const J1 = 1, B2 = class B2 extends h {
8111
8217
  return;
8112
8218
  }
8113
8219
  const l = Number(i.padEnd(o.length, "0")), d = Number(i.padEnd(o.length, "9"));
8114
- if (l > Y2(o) || d < J1) {
8220
+ if (l > e5(o) || d < J1) {
8115
8221
  this._commitBuffer(t, i, !0);
8116
8222
  return;
8117
8223
  }
@@ -8120,7 +8226,7 @@ const J1 = 1, B2 = class B2 extends h {
8120
8226
  _step(e) {
8121
8227
  const t = this._active, o = this._segments[t];
8122
8228
  if (!o) return;
8123
- const i = Y2(o), n = this._digits[t];
8229
+ const i = e5(o), n = this._digits[t];
8124
8230
  let l;
8125
8231
  n === null ? l = e > 0 ? J1 : i : (l = Number(n) + e, l > i && (l = J1), l < J1 && (l = i));
8126
8232
  const d = [...this._digits];
@@ -8198,7 +8304,7 @@ const J1 = 1, B2 = class B2 extends h {
8198
8304
  `;
8199
8305
  }
8200
8306
  };
8201
- B2.shadowRootOptions = { ...h.shadowRootOptions, delegatesFocus: !0 }, B2.styles = g`
8307
+ O2.shadowRootOptions = { ...h.shadowRootOptions, delegatesFocus: !0 }, O2.styles = g`
8202
8308
  :host { display: block; font-family: var(--font-sans); }
8203
8309
 
8204
8310
  .date-input-container { position: relative; display: flex; align-items: center; }
@@ -8249,7 +8355,7 @@ B2.shadowRootOptions = { ...h.shadowRootOptions, delegatesFocus: !0 }, B2.styles
8249
8355
  .date-input--warning { border-color: var(--color-warning-4); }
8250
8356
  .date-input--loading { border-color: var(--color-gray-4); }
8251
8357
  `;
8252
- let $ = B2;
8358
+ let $ = O2;
8253
8359
  O([
8254
8360
  a()
8255
8361
  ], $.prototype, "format");
@@ -8298,13 +8404,13 @@ var w0 = Object.defineProperty, I = (r, e, t, o) => {
8298
8404
  (l = r[n]) && (i = l(e, t, i) || i);
8299
8405
  return i && w0(e, t, i), i;
8300
8406
  };
8301
- const Z0 = "anduin-date-picker:change", he = { M: "month", d: "day", y: "year" };
8407
+ const Z0 = "anduin-date-picker:change", fe = { M: "month", d: "day", y: "year" };
8302
8408
  function k0(r, e) {
8303
8409
  if (!r) return null;
8304
8410
  const t = {};
8305
8411
  let o = 0, i = 0;
8306
8412
  for (; i < e.length; ) {
8307
- const d = e[i], c = he[d];
8413
+ const d = e[i], c = fe[d];
8308
8414
  if (!c) {
8309
8415
  i++, o++;
8310
8416
  continue;
@@ -8328,7 +8434,7 @@ function R0(r, e) {
8328
8434
  };
8329
8435
  let o = "", i = 0;
8330
8436
  for (; i < e.length; ) {
8331
- const n = e[i], l = he[n];
8437
+ const n = e[i], l = fe[n];
8332
8438
  if (!l) {
8333
8439
  o += n, i++;
8334
8440
  continue;
@@ -8340,7 +8446,7 @@ function R0(r, e) {
8340
8446
  }
8341
8447
  return o;
8342
8448
  }
8343
- const l3 = class l3 extends h {
8449
+ const s3 = class s3 extends h {
8344
8450
  constructor() {
8345
8451
  super(...arguments), this.format = "MM/dd/yyyy", this.value = "", this.size = "default", this.disabled = !1, this.readonly = !1, this.status = "", this.startIcon = "", this.minDate = "", this.maxDate = "", this.placement = "bottom-start", this.inputid = "", this._open = !1, this._onPopoverOpenChange = (e) => {
8346
8452
  e.stopPropagation(), this._open = e.detail;
@@ -8358,10 +8464,10 @@ const l3 = class l3 extends h {
8358
8464
  };
8359
8465
  }
8360
8466
  connectedCallback() {
8361
- super.connectedCallback(), this.addEventListener($5, this._onInputChange), this.addEventListener(H2, this._onCalendarChange), this.addEventListener(l5, this._onPopoverOpenChange), this.addEventListener("keydown", this._onKeyDown);
8467
+ super.connectedCallback(), this.addEventListener(A5, this._onInputChange), this.addEventListener(y2, this._onCalendarChange), this.addEventListener(C5, this._onPopoverOpenChange), this.addEventListener("keydown", this._onKeyDown);
8362
8468
  }
8363
8469
  disconnectedCallback() {
8364
- super.disconnectedCallback(), this.removeEventListener($5, this._onInputChange), this.removeEventListener(H2, this._onCalendarChange), this.removeEventListener(l5, this._onPopoverOpenChange), this.removeEventListener("keydown", this._onKeyDown);
8470
+ super.disconnectedCallback(), this.removeEventListener(A5, this._onInputChange), this.removeEventListener(y2, this._onCalendarChange), this.removeEventListener(C5, this._onPopoverOpenChange), this.removeEventListener("keydown", this._onKeyDown);
8365
8471
  }
8366
8472
  _closePopover() {
8367
8473
  this._popoverEl && (this._popoverEl.open = !1), this._open = !1;
@@ -8373,7 +8479,7 @@ const l3 = class l3 extends h {
8373
8479
  /** ISO form of the value, for driving the calendar. */
8374
8480
  get _isoValue() {
8375
8481
  const e = this._date;
8376
- return e ? V1(e) : "";
8482
+ return e ? L1(e) : "";
8377
8483
  }
8378
8484
  _emit(e) {
8379
8485
  this.value = e, this.dispatchEvent(new CustomEvent(Z0, {
@@ -8416,7 +8522,7 @@ const l3 = class l3 extends h {
8416
8522
  `;
8417
8523
  }
8418
8524
  };
8419
- l3.styles = g`
8525
+ s3.styles = g`
8420
8526
  :host { display: inline-block; font-family: var(--font-sans); }
8421
8527
 
8422
8528
  .datepicker { display: block; }
@@ -8426,7 +8532,7 @@ l3.styles = g`
8426
8532
  /* The popover contributes 8px; the calendar reads better with 16px total. */
8427
8533
  .datepicker__panel { padding: 8px; display: flex; flex-direction: column; }
8428
8534
  `;
8429
- let E = l3;
8535
+ let E = s3;
8430
8536
  I([
8431
8537
  a()
8432
8538
  ], E.prototype, "format");
@@ -8470,12 +8576,12 @@ I([
8470
8576
  z("anduin-popover")
8471
8577
  ], E.prototype, "_popoverEl");
8472
8578
  customElements.get("anduin-date-picker") || customElements.define("anduin-date-picker", E);
8473
- var $0 = Object.defineProperty, V = (r, e, t, o) => {
8579
+ var $0 = Object.defineProperty, L = (r, e, t, o) => {
8474
8580
  for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
8475
8581
  (l = r[n]) && (i = l(e, t, i) || i);
8476
8582
  return i && $0(e, t, i), i;
8477
8583
  };
8478
- const E0 = "anduin-table:sort", z0 = "anduin-table:column-click", S0 = "anduin-table:row-click", A0 = "anduin-table:selection-change", D0 = "anduin-table:cell-context-menu", B0 = "anduin-table:row-expand", P0 = "anduin-table:row-collapse", F0 = "anduin-table:group-toggle", F3 = "anduin-table:column-resize", O3 = 40, i1 = (r) => r.type === "selection", s1 = (r, e) => {
8584
+ const E0 = "anduin-table:sort", z0 = "anduin-table:column-click", S0 = "anduin-table:row-click", A0 = "anduin-table:selection-change", D0 = "anduin-table:cell-context-menu", B0 = "anduin-table:row-expand", P0 = "anduin-table:row-collapse", F0 = "anduin-table:group-toggle", I3 = "anduin-table:column-resize", T3 = 40, i1 = (r) => r.type === "selection", d1 = (r, e) => {
8479
8585
  if (!e) return;
8480
8586
  let t = r;
8481
8587
  for (const o of e.split(".")) {
@@ -8483,7 +8589,7 @@ const E0 = "anduin-table:sort", z0 = "anduin-table:column-click", S0 = "anduin-t
8483
8589
  t = t[o];
8484
8590
  }
8485
8591
  return t;
8486
- }, O0 = (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" }), a3 = class a3 extends h {
8592
+ }, O0 = (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" }), d3 = class d3 extends h {
8487
8593
  constructor() {
8488
8594
  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 = () => {
8489
8595
  this.isDraggingRange = !1;
@@ -8499,7 +8605,7 @@ const E0 = "anduin-table:sort", z0 = "anduin-table:column-click", S0 = "anduin-t
8499
8605
  }));
8500
8606
  }, this.onResizeEnd = (e) => {
8501
8607
  const t = this.resizeDrag;
8502
- t && (this.resizeFrame && (cancelAnimationFrame(this.resizeFrame), this.resizeFrame = 0), this.resizedWidths = { ...this.resizedWidths, [t.key]: t.width }, this.resizeDrag = null, this.resizingKey = "", this.dispatchEvent(new CustomEvent(F3, {
8608
+ t && (this.resizeFrame && (cancelAnimationFrame(this.resizeFrame), this.resizeFrame = 0), this.resizedWidths = { ...this.resizedWidths, [t.key]: t.width }, this.resizeDrag = null, this.resizingKey = "", this.dispatchEvent(new CustomEvent(I3, {
8503
8609
  detail: { column: e, field: t.key, width: t.width },
8504
8610
  bubbles: !0,
8505
8611
  composed: !0
@@ -8552,7 +8658,7 @@ const E0 = "anduin-table:sort", z0 = "anduin-table:column-click", S0 = "anduin-t
8552
8658
  // ── Row keys & selection helpers ────────────────────────────────────────
8553
8659
  /** A stable identity for a row, used for selection and expansion state. */
8554
8660
  keyFor(e, t) {
8555
- const o = s1(e, this.indexColumn);
8661
+ const o = d1(e, this.indexColumn);
8556
8662
  return o == null ? `__index:${t}` : String(o);
8557
8663
  }
8558
8664
  get selectedKeySet() {
@@ -8616,7 +8722,7 @@ const E0 = "anduin-table:sort", z0 = "anduin-table:column-click", S0 = "anduin-t
8616
8722
  sortRows(e) {
8617
8723
  const t = this.sortedColumn;
8618
8724
  if (!t) return e;
8619
- const o = this.sortDirection === "desc" ? -1 : 1, i = t.sortWith ? (n, l) => t.sortWith({ a: n, b: l }) : (n, l) => O0(s1(n, t.field), s1(l, t.field));
8725
+ const o = this.sortDirection === "desc" ? -1 : 1, i = t.sortWith ? (n, l) => t.sortWith({ a: n, b: l }) : (n, l) => O0(d1(n, t.field), d1(l, t.field));
8620
8726
  return [...e].sort((n, l) => i(n, l) * o);
8621
8727
  }
8622
8728
  onHeaderClick(e) {
@@ -8640,14 +8746,14 @@ const E0 = "anduin-table:sort", z0 = "anduin-table:column-click", S0 = "anduin-t
8640
8746
  buildFlatRows(e, t) {
8641
8747
  const o = [];
8642
8748
  return e.forEach((i, n) => {
8643
- const l = this.keyFor(i, n), d = this.dataTree ? s1(i, this.treeChildrenField) : void 0, c = Array.isArray(d) && d.length > 0, C = c && this.isExpanded(l, i);
8749
+ const l = this.keyFor(i, n), d = this.dataTree ? d1(i, this.treeChildrenField) : void 0, c = Array.isArray(d) && d.length > 0, C = c && this.isExpanded(l, i);
8644
8750
  o.push({ kind: "row", data: i, key: l, depth: t, hasChildren: c, expanded: C }), C && o.push(...this.buildFlatRows(this.sortRows(d), t + 1));
8645
8751
  }), o;
8646
8752
  }
8647
8753
  buildGroupedRows() {
8648
8754
  const e = /* @__PURE__ */ new Map();
8649
8755
  this.data.forEach((o) => {
8650
- const i = s1(o, this.groupBy), n = String(i), l = e.get(n);
8756
+ const i = d1(o, this.groupBy), n = String(i), l = e.get(n);
8651
8757
  l ? l.rows.push(o) : e.set(n, { value: i, rows: [o] });
8652
8758
  });
8653
8759
  const t = [];
@@ -8678,7 +8784,7 @@ const E0 = "anduin-table:sort", z0 = "anduin-table:column-click", S0 = "anduin-t
8678
8784
  expandAll() {
8679
8785
  const e = /* @__PURE__ */ new Set(), t = (o) => {
8680
8786
  o.forEach((i, n) => {
8681
- const l = s1(i, this.treeChildrenField);
8787
+ const l = d1(i, this.treeChildrenField);
8682
8788
  Array.isArray(l) && l.length > 0 && (e.add(this.keyFor(i, n)), t(l));
8683
8789
  });
8684
8790
  };
@@ -8699,7 +8805,7 @@ const E0 = "anduin-table:sort", z0 = "anduin-table:column-click", S0 = "anduin-t
8699
8805
  const t = /* @__PURE__ */ new Map(), o = (n) => {
8700
8806
  n.forEach((l, d) => {
8701
8807
  t.set(this.keyFor(l, d), l);
8702
- const c = this.dataTree ? s1(l, this.treeChildrenField) : void 0;
8808
+ const c = this.dataTree ? d1(l, this.treeChildrenField) : void 0;
8703
8809
  Array.isArray(c) && o(c);
8704
8810
  });
8705
8811
  };
@@ -8831,7 +8937,7 @@ const E0 = "anduin-table:sort", z0 = "anduin-table:column-click", S0 = "anduin-t
8831
8937
  */
8832
8938
  fitColumnsMinWidth() {
8833
8939
  return this.layout !== "fit-columns" || !this.columns.some((e) => e.minWidth) ? 0 : this.columns.reduce((e, t, o) => {
8834
- const i = i1(t) && !t.width && !t.minWidth ? O3 : Math.max(this.widthFor(t, o) ?? 0, t.minWidth ?? 0);
8940
+ const i = i1(t) && !t.width && !t.minWidth ? T3 : Math.max(this.widthFor(t, o) ?? 0, t.minWidth ?? 0);
8835
8941
  return e + i;
8836
8942
  }, 0);
8837
8943
  }
@@ -8857,7 +8963,7 @@ const E0 = "anduin-table:sort", z0 = "anduin-table:column-click", S0 = "anduin-t
8857
8963
  const i = this.columnKey(t, o);
8858
8964
  if (this.resizedWidths[i] === void 0) return;
8859
8965
  const n = { ...this.resizedWidths };
8860
- delete n[i], this.resizedWidths = n, this.dispatchEvent(new CustomEvent(F3, {
8966
+ delete n[i], this.resizedWidths = n, this.dispatchEvent(new CustomEvent(I3, {
8861
8967
  detail: { column: t, field: i, width: null },
8862
8968
  bubbles: !0,
8863
8969
  composed: !0
@@ -8901,14 +9007,14 @@ const E0 = "anduin-table:sort", z0 = "anduin-table:column-click", S0 = "anduin-t
8901
9007
  ></span>
8902
9008
  ` : u;
8903
9009
  if (i1(e)) {
8904
- const v = this.renderSelectableRows, x = this.renderSelectedKeys, M = v.filter((t1) => x.has(t1.key)).length, S = v.length > 0 && M === v.length, j = M > 0 && !S, Y1 = e.renderHeader ? e.renderHeader({
9010
+ const v = this.renderSelectableRows, x = this.renderSelectedKeys, M = v.filter((t1) => x.has(t1.key)).length, S = v.length > 0 && M === v.length, U = M > 0 && !S, Y1 = e.renderHeader ? e.renderHeader({
8905
9011
  areAllRowsSelected: S,
8906
9012
  hasSelectedRow: M > 0,
8907
9013
  onChange: (t1) => this.toggleAllRows(t1)
8908
9014
  }) : s`
8909
9015
  <anduin-checkbox
8910
9016
  .checked=${S}
8911
- .indeterminate=${j}
9017
+ .indeterminate=${U}
8912
9018
  aria-label="${S ? "Deselect all rows" : "Select all rows"}"
8913
9019
  @anduin-checkbox:change=${(t1) => {
8914
9020
  t1.stopPropagation(), this.toggleAllRows(!S);
@@ -8925,10 +9031,10 @@ const E0 = "anduin-table:sort", z0 = "anduin-table:column-click", S0 = "anduin-t
8925
9031
  ><div class="${C}">${Y1}</div>${f}</th>
8926
9032
  `;
8927
9033
  }
8928
- const m = this.sortField === e.field, b = m ? this.sortDirection : null, L = e.renderHeader ? e.renderHeader({ column: e, sortDirection: b }) : s`<span class="table__header-text">${e.title ?? ""}</span>`, _ = e.isSortable ? s`
9034
+ const b = this.sortField === e.field, m = b ? this.sortDirection : null, V = e.renderHeader ? e.renderHeader({ column: e, sortDirection: m }) : s`<span class="table__header-text">${e.title ?? ""}</span>`, _ = e.isSortable ? s`
8929
9035
  <anduin-icon
8930
- class="table__sort-icon ${m ? "table__sort-icon--active" : ""}"
8931
- name="${b === "desc" ? "caretDown" : "caretUp"}"
9036
+ class="table__sort-icon ${b ? "table__sort-icon--active" : ""}"
9037
+ name="${m === "desc" ? "caretDown" : "caretUp"}"
8932
9038
  size="16"
8933
9039
  ></anduin-icon>
8934
9040
  ` : u;
@@ -8940,12 +9046,12 @@ const E0 = "anduin-table:sort", z0 = "anduin-table:column-click", S0 = "anduin-t
8940
9046
  data-col="${t}"
8941
9047
  style="${d}"
8942
9048
  tabindex="${e.isSortable ? "0" : u}"
8943
- aria-sort="${m ? b === "desc" ? "descending" : "ascending" : e.isSortable ? "none" : u}"
9049
+ aria-sort="${b ? m === "desc" ? "descending" : "ascending" : e.isSortable ? "none" : u}"
8944
9050
  @click=${() => this.onHeaderClick(e)}
8945
9051
  @keydown=${(v) => {
8946
9052
  e.isSortable && (v.key !== "Enter" && v.key !== " " || (v.preventDefault(), this.onHeaderClick(e)));
8947
9053
  }}
8948
- ><div class="${C}">${L}${_}</div>${f}</th>
9054
+ ><div class="${C}">${V}${_}</div>${f}</th>
8949
9055
  `;
8950
9056
  }
8951
9057
  renderCell(e, t, o, i) {
@@ -8959,13 +9065,13 @@ const E0 = "anduin-table:sort", z0 = "anduin-table:column-click", S0 = "anduin-t
8959
9065
  this.sizingClass(o, i)
8960
9066
  ].filter(Boolean).join(" "), C = this.cellStyle(o, i);
8961
9067
  if (i1(o)) {
8962
- const L = this.renderSelectedKeys.has(e.key), _ = this.rowIsDisabled(e.data), v = (M) => this.setRowSelected(e, M), x = o.renderCell ? o.renderCell({ data: e.data, isChecked: L, isDisabled: _, onChange: v }) : s`
9068
+ const V = this.renderSelectedKeys.has(e.key), _ = this.rowIsDisabled(e.data), v = (M) => this.setRowSelected(e, M), x = o.renderCell ? o.renderCell({ data: e.data, isChecked: V, isDisabled: _, onChange: v }) : s`
8963
9069
  <anduin-checkbox
8964
- .checked=${L}
9070
+ .checked=${V}
8965
9071
  .disabled=${_}
8966
- aria-label="${L ? "Deselect row" : "Select row"}"
9072
+ aria-label="${V ? "Deselect row" : "Select row"}"
8967
9073
  @anduin-checkbox:change=${(M) => {
8968
- M.stopPropagation(), v(!L);
9074
+ M.stopPropagation(), v(!V);
8969
9075
  }}
8970
9076
  ></anduin-checkbox>
8971
9077
  `;
@@ -8979,7 +9085,7 @@ const E0 = "anduin-table:sort", z0 = "anduin-table:column-click", S0 = "anduin-t
8979
9085
  >${x}</td>
8980
9086
  `;
8981
9087
  }
8982
- const p = s1(e.data, o.field), f = o.renderCell ? o.renderCell({ data: e.data, value: p, rowIndex: t, column: o }) : p == null ? u : String(p), b = this.dataTree && i === this.firstDataColumnIndex ? s`
9088
+ const p = d1(e.data, o.field), f = o.renderCell ? o.renderCell({ data: e.data, value: p, rowIndex: t, column: o }) : p == null ? u : String(p), m = this.dataTree && i === this.firstDataColumnIndex ? s`
8983
9089
  <div class="table__tree-cell" style="padding-left:${e.depth * this.treeChildIndent}px">
8984
9090
  ${e.hasChildren ? s`
8985
9091
  <button
@@ -8987,8 +9093,8 @@ const E0 = "anduin-table:sort", z0 = "anduin-table:column-click", S0 = "anduin-t
8987
9093
  type="button"
8988
9094
  aria-expanded="${e.expanded}"
8989
9095
  aria-label="${e.expanded ? "Collapse row" : "Expand row"}"
8990
- @click=${(L) => {
8991
- L.stopPropagation(), this.toggleTreeRow(e);
9096
+ @click=${(V) => {
9097
+ V.stopPropagation(), this.toggleTreeRow(e);
8992
9098
  }}
8993
9099
  >
8994
9100
  <anduin-icon
@@ -9006,8 +9112,8 @@ const E0 = "anduin-table:sort", z0 = "anduin-table:column-click", S0 = "anduin-t
9006
9112
  part="cell"
9007
9113
  data-col="${i}"
9008
9114
  style="${C}"
9009
- @contextmenu=${(L) => this.onCellContextMenu(L, e, t, o)}
9010
- >${b}</td>
9115
+ @contextmenu=${(V) => this.onCellContextMenu(V, e, t, o)}
9116
+ >${m}</td>
9011
9117
  `;
9012
9118
  }
9013
9119
  get firstDataColumnIndex() {
@@ -9084,8 +9190,8 @@ const E0 = "anduin-table:sort", z0 = "anduin-table:column-click", S0 = "anduin-t
9084
9190
  ].filter(Boolean).join(" ");
9085
9191
  let n = e, l = 0, d = 0, c = 0;
9086
9192
  if (this.renderMode === "virtual" && e.length > 0) {
9087
- const p = Math.ceil((this.viewportHeight || 400) / this.rowHeight), f = Math.max(0, Math.floor(this.virtualScrollTop / this.rowHeight) - 6), m = Math.min(e.length, f + p + 12);
9088
- n = e.slice(f, m), l = f * this.rowHeight, d = (e.length - m) * this.rowHeight, c = f;
9193
+ const p = Math.ceil((this.viewportHeight || 400) / this.rowHeight), f = Math.max(0, Math.floor(this.virtualScrollTop / this.rowHeight) - 6), b = Math.min(e.length, f + p + 12);
9194
+ n = e.slice(f, b), l = f * this.rowHeight, d = (e.length - b) * this.rowHeight, c = f;
9089
9195
  }
9090
9196
  return s`
9091
9197
  <div class="${i}" part="table" style="${t}">
@@ -9121,7 +9227,7 @@ const E0 = "anduin-table:sort", z0 = "anduin-table:column-click", S0 = "anduin-t
9121
9227
  `;
9122
9228
  }
9123
9229
  };
9124
- a3.styles = g`
9230
+ d3.styles = g`
9125
9231
  :host {
9126
9232
  display: flex;
9127
9233
  flex-direction: column;
@@ -9338,7 +9444,7 @@ a3.styles = g`
9338
9444
  text-align: right;
9339
9445
  }
9340
9446
  .table__cell--selection {
9341
- width: ${O3}px;
9447
+ width: ${T3}px;
9342
9448
  padding: 8px 0 8px 12px;
9343
9449
  }
9344
9450
 
@@ -9487,261 +9593,261 @@ a3.styles = g`
9487
9593
  cursor: progress;
9488
9594
  }
9489
9595
  `;
9490
- let y = a3;
9491
- V([
9596
+ let y = d3;
9597
+ L([
9492
9598
  a({ attribute: !1 })
9493
9599
  ], y.prototype, "columns");
9494
- V([
9600
+ L([
9495
9601
  a({ attribute: !1 })
9496
9602
  ], y.prototype, "data");
9497
- V([
9603
+ L([
9498
9604
  a({ reflect: !0 })
9499
9605
  ], y.prototype, "layout");
9500
- V([
9606
+ L([
9501
9607
  a({ attribute: "render-mode", reflect: !0 })
9502
9608
  ], y.prototype, "renderMode");
9503
- V([
9609
+ L([
9504
9610
  a({ type: Number, attribute: "row-height" })
9505
9611
  ], y.prototype, "rowHeight");
9506
- V([
9612
+ L([
9507
9613
  a()
9508
9614
  ], y.prototype, "height");
9509
- V([
9615
+ L([
9510
9616
  a({ attribute: "max-height" })
9511
9617
  ], y.prototype, "maxHeight");
9512
- V([
9618
+ L([
9513
9619
  a({ attribute: "min-height" })
9514
9620
  ], y.prototype, "minHeight");
9515
- V([
9621
+ L([
9516
9622
  a({
9517
9623
  attribute: "resizable-columns",
9518
9624
  converter: (r) => r !== "false"
9519
9625
  })
9520
9626
  ], y.prototype, "resizableColumns");
9521
- V([
9627
+ L([
9522
9628
  a({ type: Boolean, attribute: "hide-header", reflect: !0 })
9523
9629
  ], y.prototype, "hideHeader");
9524
- V([
9630
+ L([
9525
9631
  a({ type: Boolean, reflect: !0 })
9526
9632
  ], y.prototype, "loading");
9527
- V([
9633
+ L([
9528
9634
  a({ reflect: !0 })
9529
9635
  ], y.prototype, "selectable");
9530
- V([
9636
+ L([
9531
9637
  a({ attribute: "index-column" })
9532
9638
  ], y.prototype, "indexColumn");
9533
- V([
9639
+ L([
9534
9640
  a({ attribute: "column-align" })
9535
9641
  ], y.prototype, "columnAlign");
9536
- V([
9642
+ L([
9537
9643
  a({ attribute: "column-vertical-align" })
9538
9644
  ], y.prototype, "columnVerticalAlign");
9539
- V([
9645
+ L([
9540
9646
  a({ attribute: "sort-field" })
9541
9647
  ], y.prototype, "sortField");
9542
- V([
9648
+ L([
9543
9649
  a({ attribute: "sort-direction" })
9544
9650
  ], y.prototype, "sortDirection");
9545
- V([
9651
+ L([
9546
9652
  a({ type: Boolean, attribute: "data-tree", reflect: !0 })
9547
9653
  ], y.prototype, "dataTree");
9548
- V([
9654
+ L([
9549
9655
  a({ attribute: "tree-children-field" })
9550
9656
  ], y.prototype, "treeChildrenField");
9551
- V([
9657
+ L([
9552
9658
  a({ type: Number, attribute: "tree-child-indent" })
9553
9659
  ], y.prototype, "treeChildIndent");
9554
- V([
9660
+ L([
9555
9661
  a({ attribute: "group-by" })
9556
9662
  ], y.prototype, "groupBy");
9557
- V([
9663
+ L([
9558
9664
  a({ attribute: !1 })
9559
9665
  ], y.prototype, "selectedRows");
9560
- V([
9666
+ L([
9561
9667
  a({ attribute: !1 })
9562
9668
  ], y.prototype, "isRowDisabled");
9563
- V([
9669
+ L([
9564
9670
  a({ attribute: !1 })
9565
9671
  ], y.prototype, "onStartExpanded");
9566
- V([
9672
+ L([
9567
9673
  a({ attribute: !1 })
9568
9674
  ], y.prototype, "rowClass");
9569
- V([
9675
+ L([
9570
9676
  a({ attribute: !1 })
9571
9677
  ], y.prototype, "renderGroupHeader");
9572
- V([
9678
+ L([
9573
9679
  H()
9574
9680
  ], y.prototype, "expandedKeys");
9575
- V([
9681
+ L([
9576
9682
  H()
9577
9683
  ], y.prototype, "collapsedGroups");
9578
- V([
9684
+ L([
9579
9685
  H()
9580
9686
  ], y.prototype, "virtualScrollTop");
9581
- V([
9687
+ L([
9582
9688
  H()
9583
9689
  ], y.prototype, "viewportHeight");
9584
- V([
9690
+ L([
9585
9691
  H()
9586
9692
  ], y.prototype, "scrolledX");
9587
- V([
9693
+ L([
9588
9694
  H()
9589
9695
  ], y.prototype, "scrollableXEnd");
9590
- V([
9696
+ L([
9591
9697
  H()
9592
9698
  ], y.prototype, "resizedWidths");
9593
- V([
9699
+ L([
9594
9700
  H()
9595
9701
  ], y.prototype, "resizingKey");
9596
9702
  customElements.get("anduin-table") || customElements.define("anduin-table", y);
9597
9703
  export {
9598
- x5 as $,
9704
+ k5 as $,
9599
9705
  J as A,
9600
- R2 as B,
9706
+ $2 as B,
9601
9707
  Z1 as C,
9602
9708
  T1 as D,
9603
- E7 as E,
9604
- z7 as F,
9605
- f1 as G,
9709
+ z7 as E,
9710
+ S7 as F,
9711
+ v1 as G,
9606
9712
  l1 as H,
9607
- v1 as I,
9608
- u0 as J,
9609
- h0 as K,
9713
+ m1 as I,
9714
+ h0 as J,
9715
+ u0 as K,
9610
9716
  X as L,
9611
- a5 as M,
9612
- C2 as N,
9717
+ p5 as M,
9718
+ p2 as N,
9613
9719
  r1 as O,
9614
9720
  N1 as P,
9615
9721
  U1 as Q,
9616
9722
  j1 as R,
9617
- z2 as S,
9618
- y5 as T,
9619
- M5 as U,
9620
- w5 as V,
9621
- _5 as W,
9622
- A2 as X,
9623
- V5 as Y,
9624
- L5 as Z,
9625
- S2 as _,
9626
- w2 as a,
9723
+ S2 as S,
9724
+ x5 as T,
9725
+ R5 as U,
9726
+ $5 as V,
9727
+ M5 as W,
9728
+ D2 as X,
9729
+ w5 as Y,
9730
+ Z5 as Z,
9731
+ A2 as _,
9732
+ Z2 as a,
9627
9733
  z0 as a$,
9628
9734
  b1 as a0,
9629
- Z5 as a1,
9735
+ E5 as a1,
9630
9736
  o1 as a2,
9631
- a2 as a3,
9632
- l2 as a4,
9737
+ s2 as a3,
9738
+ a2 as a4,
9633
9739
  w as a5,
9634
9740
  b2 as a6,
9635
- h2 as a7,
9741
+ g2 as a7,
9636
9742
  n1 as a8,
9637
9743
  y as a9,
9638
9744
  _0 as aA,
9639
- e0 as aB,
9640
- p5 as aC,
9641
- $3 as aD,
9642
- ie as aE,
9745
+ J2 as aB,
9746
+ e2 as aC,
9747
+ z3 as aD,
9748
+ ne as aE,
9643
9749
  u1 as aF,
9644
- N7 as aG,
9645
- V3 as aH,
9646
- l7 as aI,
9647
- s5 as aJ,
9648
- R7 as aK,
9750
+ j7 as aG,
9751
+ x3 as aH,
9752
+ s7 as aI,
9753
+ h5 as aJ,
9754
+ W2 as aK,
9649
9755
  Q1 as aL,
9650
9756
  s0 as aM,
9651
- u5 as aN,
9757
+ v5 as aN,
9652
9758
  p0 as aO,
9653
- h5 as aP,
9654
- r5 as aQ,
9655
- l5 as aR,
9656
- d5 as aS,
9657
- A7 as aT,
9759
+ m5 as aP,
9760
+ c5 as aQ,
9761
+ C5 as aR,
9762
+ u5 as aS,
9763
+ D7 as aT,
9658
9764
  c0 as aU,
9659
9765
  f0 as aV,
9660
- W2 as aW,
9766
+ Q2 as aW,
9661
9767
  l0 as aX,
9662
9768
  r0 as aY,
9663
- X7 as aZ,
9769
+ J7 as aZ,
9664
9770
  D0 as a_,
9665
9771
  O1 as aa,
9666
9772
  u2 as ab,
9667
9773
  I1 as ac,
9668
- Q2 as ad,
9669
- U as ae,
9670
- g5 as af,
9671
- v5 as ag,
9672
- m5 as ah,
9673
- f5 as ai,
9674
- H5 as aj,
9675
- b5 as ak,
9676
- g1 as al,
9677
- v2 as am,
9774
+ n5 as ad,
9775
+ G as ae,
9776
+ b5 as af,
9777
+ y5 as ag,
9778
+ L5 as ah,
9779
+ H5 as ai,
9780
+ V5 as aj,
9781
+ _5 as ak,
9782
+ f1 as al,
9783
+ m2 as am,
9678
9784
  Y as an,
9679
9785
  q as ao,
9680
- g2 as ap,
9681
- o5 as aq,
9682
- i5 as ar,
9683
- E2 as as,
9684
- n5 as at,
9685
- X3 as au,
9686
- H2 as av,
9687
- k5 as aw,
9688
- n7 as ax,
9689
- $5 as ay,
9786
+ f2 as ap,
9787
+ s5 as aq,
9788
+ a5 as ar,
9789
+ z2 as as,
9790
+ d5 as at,
9791
+ Q3 as au,
9792
+ y2 as av,
9793
+ z5 as aw,
9794
+ l7 as ax,
9795
+ A5 as ay,
9690
9796
  Z0 as az,
9691
- d2 as b,
9692
- F3 as b0,
9797
+ c2 as b,
9798
+ I3 as b0,
9693
9799
  F0 as b1,
9694
9800
  S0 as b2,
9695
9801
  P0 as b3,
9696
9802
  B0 as b4,
9697
9803
  A0 as b5,
9698
9804
  E0 as b6,
9699
- c7 as b7,
9700
- oe as b8,
9701
- F2 as b9,
9702
- p7 as ba,
9703
- s7 as bb,
9704
- f7 as bc,
9705
- v7 as bd,
9706
- e5 as be,
9707
- m7 as bf,
9708
- b7 as bg,
9709
- ae as bh,
9710
- se as bi,
9711
- P5 as bj,
9712
- re as bk,
9713
- le as bl,
9714
- de as bm,
9715
- M7 as bn,
9716
- d1 as bo,
9717
- V1 as bp,
9718
- J3 as bq,
9805
+ p7 as b7,
9806
+ re as b8,
9807
+ T2 as b9,
9808
+ u7 as ba,
9809
+ c7 as bb,
9810
+ m7 as bc,
9811
+ b7 as bd,
9812
+ r5 as be,
9813
+ y7 as bf,
9814
+ H7 as bg,
9815
+ de as bh,
9816
+ ce as bi,
9817
+ T5 as bj,
9818
+ ae as bk,
9819
+ se as bl,
9820
+ Ce as bm,
9821
+ Z7 as bn,
9822
+ c1 as bo,
9823
+ L1 as bp,
9824
+ ee as bq,
9719
9825
  A as br,
9720
- U7 as bs,
9826
+ G7 as bs,
9721
9827
  P1 as bt,
9722
9828
  j0 as bu,
9723
9829
  k as c,
9724
9830
  T as d,
9725
- Z2 as e,
9726
- h1 as f,
9831
+ k2 as e,
9832
+ g1 as f,
9727
9833
  $ as g,
9728
9834
  E as h,
9729
9835
  Q as i,
9730
- R5 as j,
9731
- L0 as k,
9732
- D2 as l,
9733
- V0 as m,
9734
- c2 as n,
9735
- k2 as o,
9736
- G as p,
9836
+ S5 as j,
9837
+ V0 as k,
9838
+ B2 as l,
9839
+ L0 as m,
9840
+ C2 as n,
9841
+ R2 as o,
9842
+ j as p,
9737
9843
  o0 as q,
9738
9844
  Z as r,
9739
- $2 as s,
9740
- q2 as t,
9741
- X2 as u,
9742
- J2 as v,
9743
- p2 as w,
9744
- f2 as x,
9745
- s2 as y,
9845
+ E2 as s,
9846
+ t5 as t,
9847
+ i5 as u,
9848
+ o5 as v,
9849
+ h2 as w,
9850
+ v2 as x,
9851
+ d2 as y,
9746
9852
  P as z
9747
9853
  };