@duyluonganduin/acl-web-components 0.0.6 → 0.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,21 +1,21 @@
1
- const p2 = ':root{--color-gray-0: oklch(1 0 0);--color-gray-1: oklch(.9846 .0017 247.84);--color-gray-2: oklch(.9515 .0046 258.32);--color-gray-3: oklch(.9336 .0058 264.53);--color-gray-4: oklch(.8618 .0141 258.35);--color-gray-5: oklch(.7073 .0268 263.28);--color-gray-6: oklch(.6528 .0316 266.24);--color-gray-7: oklch(.5371 .0337 264.24);--color-gray-8: oklch(.3544 .0326 260.94);--color-gray-9: oklch(.2776 .0341 255.81);--color-danger-1: oklch(.9437 .0174 17.47);--color-danger-2: oklch(.8643 .0573 18.32);--color-danger-3: oklch(.712 .1517 21.64);--color-danger-4: oklch(.5948 .2165 26.91);--color-danger-5: oklch(.531 .2147 28.91);--color-primary-1: oklch(.9474 .0256 221.57);--color-primary-2: oklch(.8652 .066 236.86);--color-primary-3: oklch(.7219 .1335 240.15);--color-primary-4: oklch(.5679 .1784 254.76);--color-primary-5: oklch(.4682 .1548 255.23);--color-success-1: oklch(.9276 .0541 150.91);--color-success-2: oklch(.8592 .1078 149.75);--color-success-3: oklch(.6953 .1711 149.14);--color-success-4: oklch(.6149 .1634 148.21);--color-success-5: oklch(.5075 .136 146.46);--color-warning-1: oklch(.9549 .0496 88.08);--color-warning-2: oklch(.912 .0811 83.56);--color-warning-3: oklch(.8282 .1628 78.73);--color-warning-4: oklch(.7325 .1512 75.97);--color-warning-5: oklch(.5329 .1098 82);--color-semantic-gray-0: oklch(1 0 0);--color-semantic-gray-1: oklch(.9846 .0017 247.84);--color-semantic-gray-2: oklch(.9515 .0046 258.32);--color-semantic-gray-3: oklch(.9336 .0058 264.53);--color-semantic-gray-4: oklch(.8618 .0141 258.35);--color-semantic-gray-5: oklch(.7073 .0268 263.28);--color-semantic-gray-6: oklch(.6528 .0316 266.24);--color-semantic-gray-7: oklch(.5371 .0337 264.24);--color-semantic-gray-8: oklch(.3544 .0326 260.94);--color-semantic-gray-9: oklch(.2776 .0341 255.81);--color-semantic-danger-1: oklch(.9437 .0174 17.47);--color-semantic-danger-2: oklch(.8643 .0573 18.32);--color-semantic-danger-3: oklch(.712 .1517 21.64);--color-semantic-danger-4: oklch(.5948 .2165 26.91);--color-semantic-danger-5: oklch(.531 .2147 28.91);--color-semantic-primary-1: oklch(.9474 .0256 221.57);--color-semantic-primary-2: oklch(.8652 .066 236.86);--color-semantic-primary-3: oklch(.7219 .1335 240.15);--color-semantic-primary-4: oklch(.5679 .1784 254.76);--color-semantic-primary-5: oklch(.4682 .1548 255.23);--color-semantic-success-1: oklch(.9276 .0541 150.91);--color-semantic-success-2: oklch(.8592 .1078 149.75);--color-semantic-success-3: oklch(.6953 .1711 149.14);--color-semantic-success-4: oklch(.6149 .1634 148.21);--color-semantic-success-5: oklch(.5075 .136 146.46);--color-semantic-warning-1: oklch(.9549 .0496 88.08);--color-semantic-warning-2: oklch(.912 .0811 83.56);--color-semantic-warning-3: oklch(.8282 .1628 78.73);--color-semantic-warning-4: oklch(.7325 .1512 75.97);--color-semantic-warning-5: oklch(.5329 .1098 82);--color-white: var(--color-gray-0);--font-sans: system-ui, -apple-system, Roboto, Oxygen, Cantarell, Ubuntu, "Segoe UI", sans-serif;--font-mono: monospace;--text-9: 9px;--text-10: 10px;--text-11: 11px;--text-13: 13px;--text-15: 15px;--text-17: 17px;--text-20: 20px;--text-23: 23px;--text-26: 26px;--text-30: 30px;--text-35: 35px;--font-weight-normal: 400;--font-weight-medium: 500;--font-weight-semibold: 600;--font-weight-bold: 700;--leading-16: 16px;--leading-20: 20px;--leading-24: 24px;--leading-28: 28px;--leading-32: 32px;--leading-40: 40px;--leading-44: 44px;--leading-r1p5: 1.5;--radius-0: 0;--radius-2: 2px;--radius-3: 3px;--radius-4: 4px;--radius-6: 6px;--radius-8: 8px;--radius-12: 12px;--radius-16: 16px;--radius-20: 20px;--radius-24: 24px;--radius-full: 9999px;--shadow-1: 0px 1px 2px rgba(29, 41, 57, .07);--shadow-2: 0px 1px 2px rgba(29, 41, 57, .04), 0px 2px 8px rgba(29, 41, 57, .08);--shadow-3: 0px 2px 8px rgba(29, 41, 57, .08), 0px 8px 24px rgba(29, 41, 57, .12);--shadow-4: 0px 4px 8px rgba(29, 41, 57, .08), 0px 16px 48px rgba(29, 41, 57, .16);--spacing-px: 1px;--spacing-0: 0;--spacing-2: 2px;--spacing-4: 4px;--spacing-6: 6px;--spacing-8: 8px;--spacing-12: 12px;--spacing-16: 16px;--spacing-20: 20px;--spacing-24: 24px;--spacing-28: 28px;--spacing-32: 32px;--spacing-40: 40px;--spacing-48: 48px;--spacing-56: 56px;--spacing-64: 64px;--spacing-128: 128px;--spacing-256: 256px;--z-0: 0;--z-1: 1;--z-2: 2;--z-3: 3;--z-4: 4;--z-5: 5;--z-999: 999;--z-9999: 9999}body{font-family:var(--font-sans);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-size:var(--text-13)}';
1
+ const L2 = ':root{--color-gray-0: oklch(1 0 0);--color-gray-1: oklch(.9846 .0017 247.84);--color-gray-2: oklch(.9515 .0046 258.32);--color-gray-3: oklch(.9336 .0058 264.53);--color-gray-4: oklch(.8618 .0141 258.35);--color-gray-5: oklch(.7073 .0268 263.28);--color-gray-6: oklch(.6528 .0316 266.24);--color-gray-7: oklch(.5371 .0337 264.24);--color-gray-8: oklch(.3544 .0326 260.94);--color-gray-9: oklch(.2776 .0341 255.81);--color-danger-1: oklch(.9437 .0174 17.47);--color-danger-2: oklch(.8643 .0573 18.32);--color-danger-3: oklch(.712 .1517 21.64);--color-danger-4: oklch(.5948 .2165 26.91);--color-danger-5: oklch(.531 .2147 28.91);--color-primary-1: oklch(.9474 .0256 221.57);--color-primary-2: oklch(.8652 .066 236.86);--color-primary-3: oklch(.7219 .1335 240.15);--color-primary-4: oklch(.5679 .1784 254.76);--color-primary-5: oklch(.4682 .1548 255.23);--color-success-1: oklch(.9276 .0541 150.91);--color-success-2: oklch(.8592 .1078 149.75);--color-success-3: oklch(.6953 .1711 149.14);--color-success-4: oklch(.6149 .1634 148.21);--color-success-5: oklch(.5075 .136 146.46);--color-warning-1: oklch(.9549 .0496 88.08);--color-warning-2: oklch(.912 .0811 83.56);--color-warning-3: oklch(.8282 .1628 78.73);--color-warning-4: oklch(.7325 .1512 75.97);--color-warning-5: oklch(.5329 .1098 82);--color-semantic-gray-0: oklch(1 0 0);--color-semantic-gray-1: oklch(.9846 .0017 247.84);--color-semantic-gray-2: oklch(.9515 .0046 258.32);--color-semantic-gray-3: oklch(.9336 .0058 264.53);--color-semantic-gray-4: oklch(.8618 .0141 258.35);--color-semantic-gray-5: oklch(.7073 .0268 263.28);--color-semantic-gray-6: oklch(.6528 .0316 266.24);--color-semantic-gray-7: oklch(.5371 .0337 264.24);--color-semantic-gray-8: oklch(.3544 .0326 260.94);--color-semantic-gray-9: oklch(.2776 .0341 255.81);--color-semantic-danger-1: oklch(.9437 .0174 17.47);--color-semantic-danger-2: oklch(.8643 .0573 18.32);--color-semantic-danger-3: oklch(.712 .1517 21.64);--color-semantic-danger-4: oklch(.5948 .2165 26.91);--color-semantic-danger-5: oklch(.531 .2147 28.91);--color-semantic-primary-1: oklch(.9474 .0256 221.57);--color-semantic-primary-2: oklch(.8652 .066 236.86);--color-semantic-primary-3: oklch(.7219 .1335 240.15);--color-semantic-primary-4: oklch(.5679 .1784 254.76);--color-semantic-primary-5: oklch(.4682 .1548 255.23);--color-semantic-success-1: oklch(.9276 .0541 150.91);--color-semantic-success-2: oklch(.8592 .1078 149.75);--color-semantic-success-3: oklch(.6953 .1711 149.14);--color-semantic-success-4: oklch(.6149 .1634 148.21);--color-semantic-success-5: oklch(.5075 .136 146.46);--color-semantic-warning-1: oklch(.9549 .0496 88.08);--color-semantic-warning-2: oklch(.912 .0811 83.56);--color-semantic-warning-3: oklch(.8282 .1628 78.73);--color-semantic-warning-4: oklch(.7325 .1512 75.97);--color-semantic-warning-5: oklch(.5329 .1098 82);--color-white: var(--color-gray-0);--font-sans: system-ui, -apple-system, Roboto, Oxygen, Cantarell, Ubuntu, "Segoe UI", sans-serif;--font-mono: monospace;--text-9: 9px;--text-10: 10px;--text-11: 11px;--text-13: 13px;--text-15: 15px;--text-17: 17px;--text-20: 20px;--text-23: 23px;--text-26: 26px;--text-30: 30px;--text-35: 35px;--font-weight-normal: 400;--font-weight-medium: 500;--font-weight-semibold: 600;--font-weight-bold: 700;--leading-16: 16px;--leading-20: 20px;--leading-24: 24px;--leading-28: 28px;--leading-32: 32px;--leading-40: 40px;--leading-44: 44px;--leading-r1p5: 1.5;--radius-0: 0;--radius-2: 2px;--radius-3: 3px;--radius-4: 4px;--radius-6: 6px;--radius-8: 8px;--radius-12: 12px;--radius-16: 16px;--radius-20: 20px;--radius-24: 24px;--radius-full: 9999px;--shadow-1: 0px 1px 2px rgba(29, 41, 57, .07);--shadow-2: 0px 1px 2px rgba(29, 41, 57, .04), 0px 2px 8px rgba(29, 41, 57, .08);--shadow-3: 0px 2px 8px rgba(29, 41, 57, .08), 0px 8px 24px rgba(29, 41, 57, .12);--shadow-4: 0px 4px 8px rgba(29, 41, 57, .08), 0px 16px 48px rgba(29, 41, 57, .16);--spacing-px: 1px;--spacing-0: 0;--spacing-2: 2px;--spacing-4: 4px;--spacing-6: 6px;--spacing-8: 8px;--spacing-12: 12px;--spacing-16: 16px;--spacing-20: 20px;--spacing-24: 24px;--spacing-28: 28px;--spacing-32: 32px;--spacing-40: 40px;--spacing-48: 48px;--spacing-56: 56px;--spacing-64: 64px;--spacing-128: 128px;--spacing-256: 256px;--z-0: 0;--z-1: 1;--z-2: 2;--z-3: 3;--z-4: 4;--z-5: 5;--z-999: 999;--z-9999: 9999}body{font-family:var(--font-sans);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-size:var(--text-13)}';
2
2
  /**
3
3
  * @license
4
4
  * Copyright 2019 Google LLC
5
5
  * SPDX-License-Identifier: BSD-3-Clause
6
6
  */
7
- const s1 = globalThis, S1 = s1.ShadowRoot && (s1.ShadyCSS === void 0 || s1.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, O1 = Symbol(), y5 = /* @__PURE__ */ new WeakMap();
8
- let T5 = class {
9
- constructor(e, t, l) {
10
- if (this._$cssResult$ = !0, l !== O1) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
11
- this.cssText = e, this.t = t;
7
+ const p1 = globalThis, B1 = p1.ShadowRoot && (p1.ShadyCSS === void 0 || p1.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, T1 = Symbol(), x5 = /* @__PURE__ */ new WeakMap();
8
+ let q5 = class {
9
+ constructor(e, o, l) {
10
+ if (this._$cssResult$ = !0, l !== T1) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
11
+ this.cssText = e, this.t = o;
12
12
  }
13
13
  get styleSheet() {
14
14
  let e = this.o;
15
- const t = this.t;
16
- if (S1 && e === void 0) {
17
- const l = t !== void 0 && t.length === 1;
18
- l && (e = y5.get(t)), e === void 0 && ((this.o = e = new CSSStyleSheet()).replaceSync(this.cssText), l && y5.set(t, e));
15
+ const o = this.t;
16
+ if (B1 && e === void 0) {
17
+ const l = o !== void 0 && o.length === 1;
18
+ l && (e = x5.get(o)), e === void 0 && ((this.o = e = new CSSStyleSheet()).replaceSync(this.cssText), l && x5.set(o, e));
19
19
  }
20
20
  return e;
21
21
  }
@@ -23,33 +23,33 @@ let T5 = class {
23
23
  return this.cssText;
24
24
  }
25
25
  };
26
- const h2 = (C) => new T5(typeof C == "string" ? C : C + "", void 0, O1), h = (C, ...e) => {
27
- const t = C.length === 1 ? C[0] : e.reduce((l, o, i) => l + ((n) => {
26
+ const f2 = (C) => new q5(typeof C == "string" ? C : C + "", void 0, T1), h = (C, ...e) => {
27
+ const o = C.length === 1 ? C[0] : e.reduce((l, t, i) => l + ((n) => {
28
28
  if (n._$cssResult$ === !0) return n.cssText;
29
29
  if (typeof n == "number") return n;
30
30
  throw Error("Value passed to 'css' function must be a 'css' function result: " + n + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
31
- })(o) + C[i + 1], C[0]);
32
- return new T5(t, C, O1);
33
- }, v2 = (C, e) => {
34
- if (S1) C.adoptedStyleSheets = e.map((t) => t instanceof CSSStyleSheet ? t : t.styleSheet);
35
- else for (const t of e) {
36
- const l = document.createElement("style"), o = s1.litNonce;
37
- o !== void 0 && l.setAttribute("nonce", o), l.textContent = t.cssText, C.appendChild(l);
38
- }
39
- }, R5 = S1 ? (C) => C : (C) => C instanceof CSSStyleSheet ? ((e) => {
40
- let t = "";
41
- for (const l of e.cssRules) t += l.cssText;
42
- return h2(t);
31
+ })(t) + C[i + 1], C[0]);
32
+ return new q5(o, C, T1);
33
+ }, H2 = (C, e) => {
34
+ if (B1) C.adoptedStyleSheets = e.map((o) => o instanceof CSSStyleSheet ? o : o.styleSheet);
35
+ else for (const o of e) {
36
+ const l = document.createElement("style"), t = p1.litNonce;
37
+ t !== void 0 && l.setAttribute("nonce", t), l.textContent = o.cssText, C.appendChild(l);
38
+ }
39
+ }, k5 = B1 ? (C) => C : (C) => C instanceof CSSStyleSheet ? ((e) => {
40
+ let o = "";
41
+ for (const l of e.cssRules) o += l.cssText;
42
+ return f2(o);
43
43
  })(C) : C;
44
44
  /**
45
45
  * @license
46
46
  * Copyright 2017 Google LLC
47
47
  * SPDX-License-Identifier: BSD-3-Clause
48
48
  */
49
- const { is: L2, defineProperty: g2, getOwnPropertyDescriptor: f2, getOwnPropertyNames: H2, getOwnPropertySymbols: b2, getPrototypeOf: m2 } = Object, x = globalThis, _5 = x.trustedTypes, V2 = _5 ? _5.emptyScript : "", V1 = x.reactiveElementPolyfillSupport, D = (C, e) => C, d1 = { toAttribute(C, e) {
49
+ const { is: b2, defineProperty: m2, getOwnPropertyDescriptor: V2, getOwnPropertyNames: M2, getOwnPropertySymbols: Z2, getPrototypeOf: y2 } = Object, x = globalThis, w5 = x.trustedTypes, R2 = w5 ? w5.emptyScript : "", y1 = x.reactiveElementPolyfillSupport, G = (C, e) => C, h1 = { toAttribute(C, e) {
50
50
  switch (e) {
51
51
  case Boolean:
52
- C = C ? V2 : null;
52
+ C = C ? R2 : null;
53
53
  break;
54
54
  case Object:
55
55
  case Array:
@@ -57,85 +57,85 @@ const { is: L2, defineProperty: g2, getOwnPropertyDescriptor: f2, getOwnProperty
57
57
  }
58
58
  return C;
59
59
  }, fromAttribute(C, e) {
60
- let t = C;
60
+ let o = C;
61
61
  switch (e) {
62
62
  case Boolean:
63
- t = C !== null;
63
+ o = C !== null;
64
64
  break;
65
65
  case Number:
66
- t = C === null ? null : Number(C);
66
+ o = C === null ? null : Number(C);
67
67
  break;
68
68
  case Object:
69
69
  case Array:
70
70
  try {
71
- t = JSON.parse(C);
71
+ o = JSON.parse(C);
72
72
  } catch {
73
- t = null;
73
+ o = null;
74
74
  }
75
75
  }
76
- return t;
77
- } }, B1 = (C, e) => !L2(C, e), x5 = { attribute: !0, type: String, converter: d1, reflect: !1, useDefault: !1, hasChanged: B1 };
76
+ return o;
77
+ } }, N1 = (C, e) => !b2(C, e), $5 = { attribute: !0, type: String, converter: h1, reflect: !1, useDefault: !1, hasChanged: N1 };
78
78
  Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), x.litPropertyMetadata ?? (x.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
79
- let S = class extends HTMLElement {
79
+ let O = class extends HTMLElement {
80
80
  static addInitializer(e) {
81
81
  this._$Ei(), (this.l ?? (this.l = [])).push(e);
82
82
  }
83
83
  static get observedAttributes() {
84
84
  return this.finalize(), this._$Eh && [...this._$Eh.keys()];
85
85
  }
86
- static createProperty(e, t = x5) {
87
- 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) {
88
- const l = Symbol(), o = this.getPropertyDescriptor(e, l, t);
89
- o !== void 0 && g2(this.prototype, e, o);
86
+ static createProperty(e, o = $5) {
87
+ if (o.state && (o.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(e) && ((o = Object.create(o)).wrapped = !0), this.elementProperties.set(e, o), !o.noAccessor) {
88
+ const l = Symbol(), t = this.getPropertyDescriptor(e, l, o);
89
+ t !== void 0 && m2(this.prototype, e, t);
90
90
  }
91
91
  }
92
- static getPropertyDescriptor(e, t, l) {
93
- const { get: o, set: i } = f2(this.prototype, e) ?? { get() {
94
- return this[t];
92
+ static getPropertyDescriptor(e, o, l) {
93
+ const { get: t, set: i } = V2(this.prototype, e) ?? { get() {
94
+ return this[o];
95
95
  }, set(n) {
96
- this[t] = n;
96
+ this[o] = n;
97
97
  } };
98
- return { get: o, set(n) {
99
- const a = o == null ? void 0 : o.call(this);
98
+ return { get: t, set(n) {
99
+ const a = t == null ? void 0 : t.call(this);
100
100
  i == null || i.call(this, n), this.requestUpdate(e, a, l);
101
101
  }, configurable: !0, enumerable: !0 };
102
102
  }
103
103
  static getPropertyOptions(e) {
104
- return this.elementProperties.get(e) ?? x5;
104
+ return this.elementProperties.get(e) ?? $5;
105
105
  }
106
106
  static _$Ei() {
107
- if (this.hasOwnProperty(D("elementProperties"))) return;
108
- const e = m2(this);
107
+ if (this.hasOwnProperty(G("elementProperties"))) return;
108
+ const e = y2(this);
109
109
  e.finalize(), e.l !== void 0 && (this.l = [...e.l]), this.elementProperties = new Map(e.elementProperties);
110
110
  }
111
111
  static finalize() {
112
- if (this.hasOwnProperty(D("finalized"))) return;
113
- if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(D("properties"))) {
114
- const t = this.properties, l = [...H2(t), ...b2(t)];
115
- for (const o of l) this.createProperty(o, t[o]);
112
+ if (this.hasOwnProperty(G("finalized"))) return;
113
+ if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(G("properties"))) {
114
+ const o = this.properties, l = [...M2(o), ...Z2(o)];
115
+ for (const t of l) this.createProperty(t, o[t]);
116
116
  }
117
117
  const e = this[Symbol.metadata];
118
118
  if (e !== null) {
119
- const t = litPropertyMetadata.get(e);
120
- if (t !== void 0) for (const [l, o] of t) this.elementProperties.set(l, o);
119
+ const o = litPropertyMetadata.get(e);
120
+ if (o !== void 0) for (const [l, t] of o) this.elementProperties.set(l, t);
121
121
  }
122
122
  this._$Eh = /* @__PURE__ */ new Map();
123
- for (const [t, l] of this.elementProperties) {
124
- const o = this._$Eu(t, l);
125
- o !== void 0 && this._$Eh.set(o, t);
123
+ for (const [o, l] of this.elementProperties) {
124
+ const t = this._$Eu(o, l);
125
+ t !== void 0 && this._$Eh.set(t, o);
126
126
  }
127
127
  this.elementStyles = this.finalizeStyles(this.styles);
128
128
  }
129
129
  static finalizeStyles(e) {
130
- const t = [];
130
+ const o = [];
131
131
  if (Array.isArray(e)) {
132
132
  const l = new Set(e.flat(1 / 0).reverse());
133
- for (const o of l) t.unshift(R5(o));
134
- } else e !== void 0 && t.push(R5(e));
135
- return t;
133
+ for (const t of l) o.unshift(k5(t));
134
+ } else e !== void 0 && o.push(k5(e));
135
+ return o;
136
136
  }
137
- static _$Eu(e, t) {
138
- const l = t.attribute;
137
+ static _$Eu(e, o) {
138
+ const l = o.attribute;
139
139
  return l === !1 ? void 0 : typeof l == "string" ? l : typeof e == "string" ? e.toLowerCase() : void 0;
140
140
  }
141
141
  constructor() {
@@ -143,80 +143,80 @@ let S = class extends HTMLElement {
143
143
  }
144
144
  _$Ev() {
145
145
  var e;
146
- this._$ES = new Promise((t) => this.enableUpdating = t), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), (e = this.constructor.l) == null || e.forEach((t) => t(this));
146
+ this._$ES = new Promise((o) => this.enableUpdating = o), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), (e = this.constructor.l) == null || e.forEach((o) => o(this));
147
147
  }
148
148
  addController(e) {
149
- var t;
150
- (this._$EO ?? (this._$EO = /* @__PURE__ */ new Set())).add(e), this.renderRoot !== void 0 && this.isConnected && ((t = e.hostConnected) == null || t.call(e));
149
+ var o;
150
+ (this._$EO ?? (this._$EO = /* @__PURE__ */ new Set())).add(e), this.renderRoot !== void 0 && this.isConnected && ((o = e.hostConnected) == null || o.call(e));
151
151
  }
152
152
  removeController(e) {
153
- var t;
154
- (t = this._$EO) == null || t.delete(e);
153
+ var o;
154
+ (o = this._$EO) == null || o.delete(e);
155
155
  }
156
156
  _$E_() {
157
- const e = /* @__PURE__ */ new Map(), t = this.constructor.elementProperties;
158
- for (const l of t.keys()) this.hasOwnProperty(l) && (e.set(l, this[l]), delete this[l]);
157
+ const e = /* @__PURE__ */ new Map(), o = this.constructor.elementProperties;
158
+ for (const l of o.keys()) this.hasOwnProperty(l) && (e.set(l, this[l]), delete this[l]);
159
159
  e.size > 0 && (this._$Ep = e);
160
160
  }
161
161
  createRenderRoot() {
162
162
  const e = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
163
- return v2(e, this.constructor.elementStyles), e;
163
+ return H2(e, this.constructor.elementStyles), e;
164
164
  }
165
165
  connectedCallback() {
166
166
  var e;
167
- this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), (e = this._$EO) == null || e.forEach((t) => {
167
+ this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), (e = this._$EO) == null || e.forEach((o) => {
168
168
  var l;
169
- return (l = t.hostConnected) == null ? void 0 : l.call(t);
169
+ return (l = o.hostConnected) == null ? void 0 : l.call(o);
170
170
  });
171
171
  }
172
172
  enableUpdating(e) {
173
173
  }
174
174
  disconnectedCallback() {
175
175
  var e;
176
- (e = this._$EO) == null || e.forEach((t) => {
176
+ (e = this._$EO) == null || e.forEach((o) => {
177
177
  var l;
178
- return (l = t.hostDisconnected) == null ? void 0 : l.call(t);
178
+ return (l = o.hostDisconnected) == null ? void 0 : l.call(o);
179
179
  });
180
180
  }
181
- attributeChangedCallback(e, t, l) {
181
+ attributeChangedCallback(e, o, l) {
182
182
  this._$AK(e, l);
183
183
  }
184
- _$ET(e, t) {
184
+ _$ET(e, o) {
185
185
  var i;
186
- const l = this.constructor.elementProperties.get(e), o = this.constructor._$Eu(e, l);
187
- if (o !== void 0 && l.reflect === !0) {
188
- const n = (((i = l.converter) == null ? void 0 : i.toAttribute) !== void 0 ? l.converter : d1).toAttribute(t, l.type);
189
- this._$Em = e, n == null ? this.removeAttribute(o) : this.setAttribute(o, n), this._$Em = null;
186
+ const l = this.constructor.elementProperties.get(e), t = this.constructor._$Eu(e, l);
187
+ if (t !== void 0 && l.reflect === !0) {
188
+ const n = (((i = l.converter) == null ? void 0 : i.toAttribute) !== void 0 ? l.converter : h1).toAttribute(o, l.type);
189
+ this._$Em = e, n == null ? this.removeAttribute(t) : this.setAttribute(t, n), this._$Em = null;
190
190
  }
191
191
  }
192
- _$AK(e, t) {
192
+ _$AK(e, o) {
193
193
  var i, n;
194
- const l = this.constructor, o = l._$Eh.get(e);
195
- if (o !== void 0 && this._$Em !== o) {
196
- const a = l.getPropertyOptions(o), s = typeof a.converter == "function" ? { fromAttribute: a.converter } : ((i = a.converter) == null ? void 0 : i.fromAttribute) !== void 0 ? a.converter : d1;
197
- this._$Em = o;
198
- const u = s.fromAttribute(t, a.type);
199
- this[o] = u ?? ((n = this._$Ej) == null ? void 0 : n.get(o)) ?? u, this._$Em = null;
194
+ const l = this.constructor, t = l._$Eh.get(e);
195
+ if (t !== void 0 && this._$Em !== t) {
196
+ const a = l.getPropertyOptions(t), s = typeof a.converter == "function" ? { fromAttribute: a.converter } : ((i = a.converter) == null ? void 0 : i.fromAttribute) !== void 0 ? a.converter : h1;
197
+ this._$Em = t;
198
+ const p = s.fromAttribute(o, a.type);
199
+ this[t] = p ?? ((n = this._$Ej) == null ? void 0 : n.get(t)) ?? p, this._$Em = null;
200
200
  }
201
201
  }
202
- requestUpdate(e, t, l, o = !1, i) {
202
+ requestUpdate(e, o, l, t = !1, i) {
203
203
  var n;
204
204
  if (e !== void 0) {
205
205
  const a = this.constructor;
206
- if (o === !1 && (i = this[e]), l ?? (l = a.getPropertyOptions(e)), !((l.hasChanged ?? B1)(i, t) || l.useDefault && l.reflect && i === ((n = this._$Ej) == null ? void 0 : n.get(e)) && !this.hasAttribute(a._$Eu(e, l)))) return;
207
- this.C(e, t, l);
206
+ if (t === !1 && (i = this[e]), l ?? (l = a.getPropertyOptions(e)), !((l.hasChanged ?? N1)(i, o) || l.useDefault && l.reflect && i === ((n = this._$Ej) == null ? void 0 : n.get(e)) && !this.hasAttribute(a._$Eu(e, l)))) return;
207
+ this.C(e, o, l);
208
208
  }
209
209
  this.isUpdatePending === !1 && (this._$ES = this._$EP());
210
210
  }
211
- C(e, t, { useDefault: l, reflect: o, wrapped: i }, n) {
212
- l && !(this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Map())).has(e) && (this._$Ej.set(e, n ?? t ?? this[e]), i !== !0 || n !== void 0) || (this._$AL.has(e) || (this.hasUpdated || l || (t = void 0), this._$AL.set(e, t)), o === !0 && this._$Em !== e && (this._$Eq ?? (this._$Eq = /* @__PURE__ */ new Set())).add(e));
211
+ C(e, o, { useDefault: l, reflect: t, wrapped: i }, n) {
212
+ l && !(this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Map())).has(e) && (this._$Ej.set(e, n ?? o ?? this[e]), i !== !0 || n !== void 0) || (this._$AL.has(e) || (this.hasUpdated || l || (o = void 0), this._$AL.set(e, o)), t === !0 && this._$Em !== e && (this._$Eq ?? (this._$Eq = /* @__PURE__ */ new Set())).add(e));
213
213
  }
214
214
  async _$EP() {
215
215
  this.isUpdatePending = !0;
216
216
  try {
217
217
  await this._$ES;
218
- } catch (t) {
219
- Promise.reject(t);
218
+ } catch (o) {
219
+ Promise.reject(o);
220
220
  }
221
221
  const e = this.scheduleUpdate();
222
222
  return e != null && await e, !this.isUpdatePending;
@@ -232,31 +232,31 @@ let S = class extends HTMLElement {
232
232
  for (const [i, n] of this._$Ep) this[i] = n;
233
233
  this._$Ep = void 0;
234
234
  }
235
- const o = this.constructor.elementProperties;
236
- if (o.size > 0) for (const [i, n] of o) {
235
+ const t = this.constructor.elementProperties;
236
+ if (t.size > 0) for (const [i, n] of t) {
237
237
  const { wrapped: a } = n, s = this[i];
238
238
  a !== !0 || this._$AL.has(i) || s === void 0 || this.C(i, void 0, n, s);
239
239
  }
240
240
  }
241
241
  let e = !1;
242
- const t = this._$AL;
242
+ const o = this._$AL;
243
243
  try {
244
- e = this.shouldUpdate(t), e ? (this.willUpdate(t), (l = this._$EO) == null || l.forEach((o) => {
244
+ e = this.shouldUpdate(o), e ? (this.willUpdate(o), (l = this._$EO) == null || l.forEach((t) => {
245
245
  var i;
246
- return (i = o.hostUpdate) == null ? void 0 : i.call(o);
247
- }), this.update(t)) : this._$EM();
248
- } catch (o) {
249
- throw e = !1, this._$EM(), o;
246
+ return (i = t.hostUpdate) == null ? void 0 : i.call(t);
247
+ }), this.update(o)) : this._$EM();
248
+ } catch (t) {
249
+ throw e = !1, this._$EM(), t;
250
250
  }
251
- e && this._$AE(t);
251
+ e && this._$AE(o);
252
252
  }
253
253
  willUpdate(e) {
254
254
  }
255
255
  _$AE(e) {
256
- var t;
257
- (t = this._$EO) == null || t.forEach((l) => {
258
- var o;
259
- return (o = l.hostUpdated) == null ? void 0 : o.call(l);
256
+ var o;
257
+ (o = this._$EO) == null || o.forEach((l) => {
258
+ var t;
259
+ return (t = l.hostUpdated) == null ? void 0 : t.call(l);
260
260
  }), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(e)), this.updated(e);
261
261
  }
262
262
  _$EM() {
@@ -272,85 +272,85 @@ let S = class extends HTMLElement {
272
272
  return !0;
273
273
  }
274
274
  update(e) {
275
- this._$Eq && (this._$Eq = this._$Eq.forEach((t) => this._$ET(t, this[t]))), this._$EM();
275
+ this._$Eq && (this._$Eq = this._$Eq.forEach((o) => this._$ET(o, this[o]))), this._$EM();
276
276
  }
277
277
  updated(e) {
278
278
  }
279
279
  firstUpdated(e) {
280
280
  }
281
281
  };
282
- S.elementStyles = [], S.shadowRootOptions = { mode: "open" }, S[D("elementProperties")] = /* @__PURE__ */ new Map(), S[D("finalized")] = /* @__PURE__ */ new Map(), V1 == null || V1({ ReactiveElement: S }), (x.reactiveElementVersions ?? (x.reactiveElementVersions = [])).push("2.1.2");
282
+ O.elementStyles = [], O.shadowRootOptions = { mode: "open" }, O[G("elementProperties")] = /* @__PURE__ */ new Map(), O[G("finalized")] = /* @__PURE__ */ new Map(), y1 == null || y1({ ReactiveElement: O }), (x.reactiveElementVersions ?? (x.reactiveElementVersions = [])).push("2.1.2");
283
283
  /**
284
284
  * @license
285
285
  * Copyright 2017 Google LLC
286
286
  * SPDX-License-Identifier: BSD-3-Clause
287
287
  */
288
- const q = globalThis, k5 = (C) => C, c1 = q.trustedTypes, w5 = c1 ? c1.createPolicy("lit-html", { createHTML: (C) => C }) : void 0, U5 = "$lit$", _ = `lit$${Math.random().toFixed(9).slice(2)}$`, j5 = "?" + _, M2 = `<${j5}>`, z = document, G = () => z.createComment(""), Y = (C) => C === null || typeof C != "object" && typeof C != "function", I1 = Array.isArray, Z2 = (C) => I1(C) || typeof (C == null ? void 0 : C[Symbol.iterator]) == "function", M1 = `[
289
- \f\r]`, j = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, $5 = /-->/g, E5 = />/g, E = RegExp(`>|${M1}(?:([^\\s"'>=/]+)(${M1}*=${M1}*(?:[^
290
- \f\r"'\`<>=]|("|')|))|$)`, "g"), P5 = /'/g, A5 = /"/g, D5 = /^(?:script|style|textarea|title)$/i, q5 = (C) => (e, ...t) => ({ _$litType$: C, strings: e, values: t }), d = q5(1), R1 = q5(2), O = Symbol.for("lit-noChange"), p = Symbol.for("lit-nothing"), z5 = /* @__PURE__ */ new WeakMap(), P = z.createTreeWalker(z, 129);
291
- function G5(C, e) {
292
- if (!I1(C) || !C.hasOwnProperty("raw")) throw Error("invalid template strings array");
293
- return w5 !== void 0 ? w5.createHTML(e) : e;
288
+ const Y = globalThis, E5 = (C) => C, v1 = Y.trustedTypes, A5 = v1 ? v1.createPolicy("lit-html", { createHTML: (C) => C }) : void 0, G5 = "$lit$", _ = `lit$${Math.random().toFixed(9).slice(2)}$`, Y5 = "?" + _, _2 = `<${Y5}>`, S = document, W = () => S.createComment(""), X = (C) => C === null || typeof C != "object" && typeof C != "function", U1 = Array.isArray, x2 = (C) => U1(C) || typeof (C == null ? void 0 : C[Symbol.iterator]) == "function", R1 = `[
289
+ \f\r]`, q = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, P5 = /-->/g, z5 = />/g, A = RegExp(`>|${R1}(?:([^\\s"'>=/]+)(${R1}*=${R1}*(?:[^
290
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), S5 = /'/g, O5 = /"/g, W5 = /^(?:script|style|textarea|title)$/i, X5 = (C) => (e, ...o) => ({ _$litType$: C, strings: e, values: o }), d = X5(1), k1 = X5(2), I = Symbol.for("lit-noChange"), u = Symbol.for("lit-nothing"), I5 = /* @__PURE__ */ new WeakMap(), P = S.createTreeWalker(S, 129);
291
+ function F5(C, e) {
292
+ if (!U1(C) || !C.hasOwnProperty("raw")) throw Error("invalid template strings array");
293
+ return A5 !== void 0 ? A5.createHTML(e) : e;
294
294
  }
295
- const y2 = (C, e) => {
296
- const t = C.length - 1, l = [];
297
- let o, i = e === 2 ? "<svg>" : e === 3 ? "<math>" : "", n = j;
298
- for (let a = 0; a < t; a++) {
295
+ const k2 = (C, e) => {
296
+ const o = C.length - 1, l = [];
297
+ let t, i = e === 2 ? "<svg>" : e === 3 ? "<math>" : "", n = q;
298
+ for (let a = 0; a < o; a++) {
299
299
  const s = C[a];
300
- let u, L, v = -1, m = 0;
301
- for (; m < s.length && (n.lastIndex = m, L = n.exec(s), L !== null); ) m = n.lastIndex, n === j ? L[1] === "!--" ? n = $5 : L[1] !== void 0 ? n = E5 : L[2] !== void 0 ? (D5.test(L[2]) && (o = RegExp("</" + L[2], "g")), n = E) : L[3] !== void 0 && (n = E) : n === E ? L[0] === ">" ? (n = o ?? j, v = -1) : L[1] === void 0 ? v = -2 : (v = n.lastIndex - L[2].length, u = L[1], n = L[3] === void 0 ? E : L[3] === '"' ? A5 : P5) : n === A5 || n === P5 ? n = E : n === $5 || n === E5 ? n = j : (n = E, o = void 0);
302
- const g = n === E && C[a + 1].startsWith("/>") ? " " : "";
303
- i += n === j ? s + M2 : v >= 0 ? (l.push(u), s.slice(0, v) + U5 + s.slice(v) + _ + g) : s + _ + (v === -2 ? a : g);
300
+ let p, g, v = -1, m = 0;
301
+ for (; m < s.length && (n.lastIndex = m, g = n.exec(s), g !== null); ) m = n.lastIndex, n === q ? g[1] === "!--" ? n = P5 : g[1] !== void 0 ? n = z5 : g[2] !== void 0 ? (W5.test(g[2]) && (t = RegExp("</" + g[2], "g")), n = A) : g[3] !== void 0 && (n = A) : n === A ? g[0] === ">" ? (n = t ?? q, v = -1) : g[1] === void 0 ? v = -2 : (v = n.lastIndex - g[2].length, p = g[1], n = g[3] === void 0 ? A : g[3] === '"' ? O5 : S5) : n === O5 || n === S5 ? n = A : n === P5 || n === z5 ? n = q : (n = A, t = void 0);
302
+ const L = n === A && C[a + 1].startsWith("/>") ? " " : "";
303
+ i += n === q ? s + _2 : v >= 0 ? (l.push(p), s.slice(0, v) + G5 + s.slice(v) + _ + L) : s + _ + (v === -2 ? a : L);
304
304
  }
305
- return [G5(C, i + (C[t] || "<?>") + (e === 2 ? "</svg>" : e === 3 ? "</math>" : "")), l];
305
+ return [F5(C, i + (C[o] || "<?>") + (e === 2 ? "</svg>" : e === 3 ? "</math>" : "")), l];
306
306
  };
307
- class W {
308
- constructor({ strings: e, _$litType$: t }, l) {
309
- let o;
307
+ class F {
308
+ constructor({ strings: e, _$litType$: o }, l) {
309
+ let t;
310
310
  this.parts = [];
311
311
  let i = 0, n = 0;
312
- const a = e.length - 1, s = this.parts, [u, L] = y2(e, t);
313
- if (this.el = W.createElement(u, l), P.currentNode = this.el.content, t === 2 || t === 3) {
312
+ const a = e.length - 1, s = this.parts, [p, g] = k2(e, o);
313
+ if (this.el = F.createElement(p, l), P.currentNode = this.el.content, o === 2 || o === 3) {
314
314
  const v = this.el.content.firstChild;
315
315
  v.replaceWith(...v.childNodes);
316
316
  }
317
- for (; (o = P.nextNode()) !== null && s.length < a; ) {
318
- if (o.nodeType === 1) {
319
- if (o.hasAttributes()) for (const v of o.getAttributeNames()) if (v.endsWith(U5)) {
320
- const m = L[n++], g = o.getAttribute(v).split(_), V = /([.?@])?(.*)/.exec(m);
321
- s.push({ type: 1, index: i, name: V[2], strings: g, ctor: V[1] === "." ? _2 : V[1] === "?" ? x2 : V[1] === "@" ? k2 : f1 }), o.removeAttribute(v);
322
- } else v.startsWith(_) && (s.push({ type: 6, index: i }), o.removeAttribute(v));
323
- if (D5.test(o.tagName)) {
324
- const v = o.textContent.split(_), m = v.length - 1;
317
+ for (; (t = P.nextNode()) !== null && s.length < a; ) {
318
+ if (t.nodeType === 1) {
319
+ if (t.hasAttributes()) for (const v of t.getAttributeNames()) if (v.endsWith(G5)) {
320
+ const m = g[n++], L = t.getAttribute(v).split(_), V = /([.?@])?(.*)/.exec(m);
321
+ s.push({ type: 1, index: i, name: V[2], strings: L, ctor: V[1] === "." ? $2 : V[1] === "?" ? E2 : V[1] === "@" ? A2 : V1 }), t.removeAttribute(v);
322
+ } else v.startsWith(_) && (s.push({ type: 6, index: i }), t.removeAttribute(v));
323
+ if (W5.test(t.tagName)) {
324
+ const v = t.textContent.split(_), m = v.length - 1;
325
325
  if (m > 0) {
326
- o.textContent = c1 ? c1.emptyScript : "";
327
- for (let g = 0; g < m; g++) o.append(v[g], G()), P.nextNode(), s.push({ type: 2, index: ++i });
328
- o.append(v[m], G());
326
+ t.textContent = v1 ? v1.emptyScript : "";
327
+ for (let L = 0; L < m; L++) t.append(v[L], W()), P.nextNode(), s.push({ type: 2, index: ++i });
328
+ t.append(v[m], W());
329
329
  }
330
330
  }
331
- } else if (o.nodeType === 8) if (o.data === j5) s.push({ type: 2, index: i });
331
+ } else if (t.nodeType === 8) if (t.data === Y5) s.push({ type: 2, index: i });
332
332
  else {
333
333
  let v = -1;
334
- for (; (v = o.data.indexOf(_, v + 1)) !== -1; ) s.push({ type: 7, index: i }), v += _.length - 1;
334
+ for (; (v = t.data.indexOf(_, v + 1)) !== -1; ) s.push({ type: 7, index: i }), v += _.length - 1;
335
335
  }
336
336
  i++;
337
337
  }
338
338
  }
339
- static createElement(e, t) {
340
- const l = z.createElement("template");
339
+ static createElement(e, o) {
340
+ const l = S.createElement("template");
341
341
  return l.innerHTML = e, l;
342
342
  }
343
343
  }
344
- function B(C, e, t = C, l) {
344
+ function B(C, e, o = C, l) {
345
345
  var n, a;
346
- if (e === O) return e;
347
- let o = l !== void 0 ? (n = t._$Co) == null ? void 0 : n[l] : t._$Cl;
348
- const i = Y(e) ? void 0 : e._$litDirective$;
349
- return (o == null ? void 0 : o.constructor) !== i && ((a = o == null ? void 0 : o._$AO) == null || a.call(o, !1), i === void 0 ? o = void 0 : (o = new i(C), o._$AT(C, t, l)), l !== void 0 ? (t._$Co ?? (t._$Co = []))[l] = o : t._$Cl = o), o !== void 0 && (e = B(C, o._$AS(C, e.values), o, l)), e;
346
+ if (e === I) return e;
347
+ let t = l !== void 0 ? (n = o._$Co) == null ? void 0 : n[l] : o._$Cl;
348
+ const i = X(e) ? void 0 : e._$litDirective$;
349
+ return (t == null ? void 0 : t.constructor) !== i && ((a = t == null ? void 0 : t._$AO) == null || a.call(t, !1), i === void 0 ? t = void 0 : (t = new i(C), t._$AT(C, o, l)), l !== void 0 ? (o._$Co ?? (o._$Co = []))[l] = t : o._$Cl = t), t !== void 0 && (e = B(C, t._$AS(C, e.values), t, l)), e;
350
350
  }
351
- class R2 {
352
- constructor(e, t) {
353
- this._$AV = [], this._$AN = void 0, this._$AD = e, this._$AM = t;
351
+ class w2 {
352
+ constructor(e, o) {
353
+ this._$AV = [], this._$AN = void 0, this._$AD = e, this._$AM = o;
354
354
  }
355
355
  get parentNode() {
356
356
  return this._$AM.parentNode;
@@ -359,35 +359,35 @@ class R2 {
359
359
  return this._$AM._$AU;
360
360
  }
361
361
  u(e) {
362
- const { el: { content: t }, parts: l } = this._$AD, o = ((e == null ? void 0 : e.creationScope) ?? z).importNode(t, !0);
363
- P.currentNode = o;
362
+ const { el: { content: o }, parts: l } = this._$AD, t = ((e == null ? void 0 : e.creationScope) ?? S).importNode(o, !0);
363
+ P.currentNode = t;
364
364
  let i = P.nextNode(), n = 0, a = 0, s = l[0];
365
365
  for (; s !== void 0; ) {
366
366
  if (n === s.index) {
367
- let u;
368
- s.type === 2 ? u = new n1(i, i.nextSibling, this, e) : s.type === 1 ? u = new s.ctor(i, s.name, s.strings, this, e) : s.type === 6 && (u = new w2(i, this, e)), this._$AV.push(u), s = l[++a];
367
+ let p;
368
+ s.type === 2 ? p = new a1(i, i.nextSibling, this, e) : s.type === 1 ? p = new s.ctor(i, s.name, s.strings, this, e) : s.type === 6 && (p = new P2(i, this, e)), this._$AV.push(p), s = l[++a];
369
369
  }
370
370
  n !== (s == null ? void 0 : s.index) && (i = P.nextNode(), n++);
371
371
  }
372
- return P.currentNode = z, o;
372
+ return P.currentNode = S, t;
373
373
  }
374
374
  p(e) {
375
- let t = 0;
376
- for (const l of this._$AV) l !== void 0 && (l.strings !== void 0 ? (l._$AI(e, l, t), t += l.strings.length - 2) : l._$AI(e[t])), t++;
375
+ let o = 0;
376
+ for (const l of this._$AV) l !== void 0 && (l.strings !== void 0 ? (l._$AI(e, l, o), o += l.strings.length - 2) : l._$AI(e[o])), o++;
377
377
  }
378
378
  }
379
- class n1 {
379
+ class a1 {
380
380
  get _$AU() {
381
381
  var e;
382
382
  return ((e = this._$AM) == null ? void 0 : e._$AU) ?? this._$Cv;
383
383
  }
384
- constructor(e, t, l, o) {
385
- this.type = 2, this._$AH = p, this._$AN = void 0, this._$AA = e, this._$AB = t, this._$AM = l, this.options = o, this._$Cv = (o == null ? void 0 : o.isConnected) ?? !0;
384
+ constructor(e, o, l, t) {
385
+ this.type = 2, this._$AH = u, this._$AN = void 0, this._$AA = e, this._$AB = o, this._$AM = l, this.options = t, this._$Cv = (t == null ? void 0 : t.isConnected) ?? !0;
386
386
  }
387
387
  get parentNode() {
388
388
  let e = this._$AA.parentNode;
389
- const t = this._$AM;
390
- return t !== void 0 && (e == null ? void 0 : e.nodeType) === 11 && (e = t.parentNode), e;
389
+ const o = this._$AM;
390
+ return o !== void 0 && (e == null ? void 0 : e.nodeType) === 11 && (e = o.parentNode), e;
391
391
  }
392
392
  get startNode() {
393
393
  return this._$AA;
@@ -395,8 +395,8 @@ class n1 {
395
395
  get endNode() {
396
396
  return this._$AB;
397
397
  }
398
- _$AI(e, t = this) {
399
- e = B(this, e, t), Y(e) ? e === p || e == null || e === "" ? (this._$AH !== p && this._$AR(), this._$AH = p) : e !== this._$AH && e !== O && this._(e) : e._$litType$ !== void 0 ? this.$(e) : e.nodeType !== void 0 ? this.T(e) : Z2(e) ? this.k(e) : this._(e);
398
+ _$AI(e, o = this) {
399
+ e = B(this, e, o), X(e) ? e === u || e == null || e === "" ? (this._$AH !== u && this._$AR(), this._$AH = u) : e !== this._$AH && e !== I && this._(e) : e._$litType$ !== void 0 ? this.$(e) : e.nodeType !== void 0 ? this.T(e) : x2(e) ? this.k(e) : this._(e);
400
400
  }
401
401
  O(e) {
402
402
  return this._$AA.parentNode.insertBefore(e, this._$AB);
@@ -405,98 +405,98 @@ class n1 {
405
405
  this._$AH !== e && (this._$AR(), this._$AH = this.O(e));
406
406
  }
407
407
  _(e) {
408
- this._$AH !== p && Y(this._$AH) ? this._$AA.nextSibling.data = e : this.T(z.createTextNode(e)), this._$AH = e;
408
+ this._$AH !== u && X(this._$AH) ? this._$AA.nextSibling.data = e : this.T(S.createTextNode(e)), this._$AH = e;
409
409
  }
410
410
  $(e) {
411
411
  var i;
412
- const { values: t, _$litType$: l } = e, o = typeof l == "number" ? this._$AC(e) : (l.el === void 0 && (l.el = W.createElement(G5(l.h, l.h[0]), this.options)), l);
413
- if (((i = this._$AH) == null ? void 0 : i._$AD) === o) this._$AH.p(t);
412
+ const { values: o, _$litType$: l } = e, t = typeof l == "number" ? this._$AC(e) : (l.el === void 0 && (l.el = F.createElement(F5(l.h, l.h[0]), this.options)), l);
413
+ if (((i = this._$AH) == null ? void 0 : i._$AD) === t) this._$AH.p(o);
414
414
  else {
415
- const n = new R2(o, this), a = n.u(this.options);
416
- n.p(t), this.T(a), this._$AH = n;
415
+ const n = new w2(t, this), a = n.u(this.options);
416
+ n.p(o), this.T(a), this._$AH = n;
417
417
  }
418
418
  }
419
419
  _$AC(e) {
420
- let t = z5.get(e.strings);
421
- return t === void 0 && z5.set(e.strings, t = new W(e)), t;
420
+ let o = I5.get(e.strings);
421
+ return o === void 0 && I5.set(e.strings, o = new F(e)), o;
422
422
  }
423
423
  k(e) {
424
- I1(this._$AH) || (this._$AH = [], this._$AR());
425
- const t = this._$AH;
426
- let l, o = 0;
427
- for (const i of e) o === t.length ? t.push(l = new n1(this.O(G()), this.O(G()), this, this.options)) : l = t[o], l._$AI(i), o++;
428
- o < t.length && (this._$AR(l && l._$AB.nextSibling, o), t.length = o);
424
+ U1(this._$AH) || (this._$AH = [], this._$AR());
425
+ const o = this._$AH;
426
+ let l, t = 0;
427
+ for (const i of e) t === o.length ? o.push(l = new a1(this.O(W()), this.O(W()), this, this.options)) : l = o[t], l._$AI(i), t++;
428
+ t < o.length && (this._$AR(l && l._$AB.nextSibling, t), o.length = t);
429
429
  }
430
- _$AR(e = this._$AA.nextSibling, t) {
430
+ _$AR(e = this._$AA.nextSibling, o) {
431
431
  var l;
432
- for ((l = this._$AP) == null ? void 0 : l.call(this, !1, !0, t); e !== this._$AB; ) {
433
- const o = k5(e).nextSibling;
434
- k5(e).remove(), e = o;
432
+ for ((l = this._$AP) == null ? void 0 : l.call(this, !1, !0, o); e !== this._$AB; ) {
433
+ const t = E5(e).nextSibling;
434
+ E5(e).remove(), e = t;
435
435
  }
436
436
  }
437
437
  setConnected(e) {
438
- var t;
439
- this._$AM === void 0 && (this._$Cv = e, (t = this._$AP) == null || t.call(this, e));
438
+ var o;
439
+ this._$AM === void 0 && (this._$Cv = e, (o = this._$AP) == null || o.call(this, e));
440
440
  }
441
441
  }
442
- class f1 {
442
+ class V1 {
443
443
  get tagName() {
444
444
  return this.element.tagName;
445
445
  }
446
446
  get _$AU() {
447
447
  return this._$AM._$AU;
448
448
  }
449
- constructor(e, t, l, o, i) {
450
- this.type = 1, this._$AH = p, this._$AN = void 0, this.element = e, this.name = t, this._$AM = o, this.options = i, l.length > 2 || l[0] !== "" || l[1] !== "" ? (this._$AH = Array(l.length - 1).fill(new String()), this.strings = l) : this._$AH = p;
449
+ constructor(e, o, l, t, i) {
450
+ this.type = 1, this._$AH = u, this._$AN = void 0, this.element = e, this.name = o, this._$AM = t, this.options = i, l.length > 2 || l[0] !== "" || l[1] !== "" ? (this._$AH = Array(l.length - 1).fill(new String()), this.strings = l) : this._$AH = u;
451
451
  }
452
- _$AI(e, t = this, l, o) {
452
+ _$AI(e, o = this, l, t) {
453
453
  const i = this.strings;
454
454
  let n = !1;
455
- if (i === void 0) e = B(this, e, t, 0), n = !Y(e) || e !== this._$AH && e !== O, n && (this._$AH = e);
455
+ if (i === void 0) e = B(this, e, o, 0), n = !X(e) || e !== this._$AH && e !== I, n && (this._$AH = e);
456
456
  else {
457
457
  const a = e;
458
- let s, u;
459
- for (e = i[0], s = 0; s < i.length - 1; s++) u = B(this, a[l + s], t, s), u === O && (u = this._$AH[s]), n || (n = !Y(u) || u !== this._$AH[s]), u === p ? e = p : e !== p && (e += (u ?? "") + i[s + 1]), this._$AH[s] = u;
458
+ let s, p;
459
+ for (e = i[0], s = 0; s < i.length - 1; s++) p = B(this, a[l + s], o, s), p === I && (p = this._$AH[s]), n || (n = !X(p) || p !== this._$AH[s]), p === u ? e = u : e !== u && (e += (p ?? "") + i[s + 1]), this._$AH[s] = p;
460
460
  }
461
- n && !o && this.j(e);
461
+ n && !t && this.j(e);
462
462
  }
463
463
  j(e) {
464
- e === p ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, e ?? "");
464
+ e === u ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, e ?? "");
465
465
  }
466
466
  }
467
- class _2 extends f1 {
467
+ class $2 extends V1 {
468
468
  constructor() {
469
469
  super(...arguments), this.type = 3;
470
470
  }
471
471
  j(e) {
472
- this.element[this.name] = e === p ? void 0 : e;
472
+ this.element[this.name] = e === u ? void 0 : e;
473
473
  }
474
474
  }
475
- class x2 extends f1 {
475
+ class E2 extends V1 {
476
476
  constructor() {
477
477
  super(...arguments), this.type = 4;
478
478
  }
479
479
  j(e) {
480
- this.element.toggleAttribute(this.name, !!e && e !== p);
480
+ this.element.toggleAttribute(this.name, !!e && e !== u);
481
481
  }
482
482
  }
483
- class k2 extends f1 {
484
- constructor(e, t, l, o, i) {
485
- super(e, t, l, o, i), this.type = 5;
483
+ class A2 extends V1 {
484
+ constructor(e, o, l, t, i) {
485
+ super(e, o, l, t, i), this.type = 5;
486
486
  }
487
- _$AI(e, t = this) {
488
- if ((e = B(this, e, t, 0) ?? p) === O) return;
489
- const l = this._$AH, o = e === p && l !== p || e.capture !== l.capture || e.once !== l.once || e.passive !== l.passive, i = e !== p && (l === p || o);
490
- o && this.element.removeEventListener(this.name, this, l), i && this.element.addEventListener(this.name, this, e), this._$AH = e;
487
+ _$AI(e, o = this) {
488
+ if ((e = B(this, e, o, 0) ?? u) === I) return;
489
+ const l = this._$AH, t = e === u && l !== u || e.capture !== l.capture || e.once !== l.once || e.passive !== l.passive, i = e !== u && (l === u || t);
490
+ t && this.element.removeEventListener(this.name, this, l), i && this.element.addEventListener(this.name, this, e), this._$AH = e;
491
491
  }
492
492
  handleEvent(e) {
493
- var t;
494
- typeof this._$AH == "function" ? this._$AH.call(((t = this.options) == null ? void 0 : t.host) ?? this.element, e) : this._$AH.handleEvent(e);
493
+ var o;
494
+ typeof this._$AH == "function" ? this._$AH.call(((o = this.options) == null ? void 0 : o.host) ?? this.element, e) : this._$AH.handleEvent(e);
495
495
  }
496
496
  }
497
- class w2 {
498
- constructor(e, t, l) {
499
- this.element = e, this.type = 6, this._$AN = void 0, this._$AM = t, this.options = l;
497
+ class P2 {
498
+ constructor(e, o, l) {
499
+ this.element = e, this.type = 6, this._$AN = void 0, this._$AM = o, this.options = l;
500
500
  }
501
501
  get _$AU() {
502
502
  return this._$AM._$AU;
@@ -505,35 +505,35 @@ class w2 {
505
505
  B(this, e);
506
506
  }
507
507
  }
508
- const Z1 = q.litHtmlPolyfillSupport;
509
- Z1 == null || Z1(W, n1), (q.litHtmlVersions ?? (q.litHtmlVersions = [])).push("3.3.2");
510
- const $2 = (C, e, t) => {
511
- const l = (t == null ? void 0 : t.renderBefore) ?? e;
512
- let o = l._$litPart$;
513
- if (o === void 0) {
514
- const i = (t == null ? void 0 : t.renderBefore) ?? null;
515
- l._$litPart$ = o = new n1(e.insertBefore(G(), i), i, void 0, t ?? {});
516
- }
517
- return o._$AI(C), o;
508
+ const _1 = Y.litHtmlPolyfillSupport;
509
+ _1 == null || _1(F, a1), (Y.litHtmlVersions ?? (Y.litHtmlVersions = [])).push("3.3.2");
510
+ const z2 = (C, e, o) => {
511
+ const l = (o == null ? void 0 : o.renderBefore) ?? e;
512
+ let t = l._$litPart$;
513
+ if (t === void 0) {
514
+ const i = (o == null ? void 0 : o.renderBefore) ?? null;
515
+ l._$litPart$ = t = new a1(e.insertBefore(W(), i), i, void 0, o ?? {});
516
+ }
517
+ return t._$AI(C), t;
518
518
  };
519
519
  /**
520
520
  * @license
521
521
  * Copyright 2017 Google LLC
522
522
  * SPDX-License-Identifier: BSD-3-Clause
523
523
  */
524
- const A = globalThis;
525
- class c extends S {
524
+ const z = globalThis;
525
+ class c extends O {
526
526
  constructor() {
527
527
  super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
528
528
  }
529
529
  createRenderRoot() {
530
- var t;
530
+ var o;
531
531
  const e = super.createRenderRoot();
532
- return (t = this.renderOptions).renderBefore ?? (t.renderBefore = e.firstChild), e;
532
+ return (o = this.renderOptions).renderBefore ?? (o.renderBefore = e.firstChild), e;
533
533
  }
534
534
  update(e) {
535
- const t = this.render();
536
- this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this._$Do = $2(t, this.renderRoot, this.renderOptions);
535
+ const o = this.render();
536
+ this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this._$Do = z2(o, this.renderRoot, this.renderOptions);
537
537
  }
538
538
  connectedCallback() {
539
539
  var e;
@@ -544,24 +544,24 @@ class c extends S {
544
544
  super.disconnectedCallback(), (e = this._$Do) == null || e.setConnected(!1);
545
545
  }
546
546
  render() {
547
- return O;
547
+ return I;
548
548
  }
549
549
  }
550
- var N5;
551
- c._$litElement$ = !0, c.finalized = !0, (N5 = A.litElementHydrateSupport) == null || N5.call(A, { LitElement: c });
552
- const y1 = A.litElementPolyfillSupport;
553
- y1 == null || y1({ LitElement: c });
554
- (A.litElementVersions ?? (A.litElementVersions = [])).push("4.2.2");
550
+ var D5;
551
+ c._$litElement$ = !0, c.finalized = !0, (D5 = z.litElementHydrateSupport) == null || D5.call(z, { LitElement: c });
552
+ const x1 = z.litElementPolyfillSupport;
553
+ x1 == null || x1({ LitElement: c });
554
+ (z.litElementVersions ?? (z.litElementVersions = [])).push("4.2.2");
555
555
  /**
556
556
  * @license
557
557
  * Copyright 2017 Google LLC
558
558
  * SPDX-License-Identifier: BSD-3-Clause
559
559
  */
560
- const E2 = { attribute: !0, type: String, converter: d1, reflect: !1, hasChanged: B1 }, P2 = (C = E2, e, t) => {
561
- const { kind: l, metadata: o } = t;
562
- let i = globalThis.litPropertyMetadata.get(o);
563
- if (i === void 0 && globalThis.litPropertyMetadata.set(o, i = /* @__PURE__ */ new Map()), l === "setter" && ((C = Object.create(C)).wrapped = !0), i.set(t.name, C), l === "accessor") {
564
- const { name: n } = t;
560
+ const S2 = { attribute: !0, type: String, converter: h1, reflect: !1, hasChanged: N1 }, O2 = (C = S2, e, o) => {
561
+ const { kind: l, metadata: t } = o;
562
+ let i = globalThis.litPropertyMetadata.get(t);
563
+ if (i === void 0 && globalThis.litPropertyMetadata.set(t, i = /* @__PURE__ */ new Map()), l === "setter" && ((C = Object.create(C)).wrapped = !0), i.set(o.name, C), l === "accessor") {
564
+ const { name: n } = o;
565
565
  return { set(a) {
566
566
  const s = e.get.call(this);
567
567
  e.set.call(this, a), this.requestUpdate(n, s, C, !0, a);
@@ -570,7 +570,7 @@ const E2 = { attribute: !0, type: String, converter: d1, reflect: !1, hasChanged
570
570
  } };
571
571
  }
572
572
  if (l === "setter") {
573
- const { name: n } = t;
573
+ const { name: n } = o;
574
574
  return function(a) {
575
575
  const s = this[n];
576
576
  e.call(this, a), this.requestUpdate(n, s, C, !0, a);
@@ -579,17 +579,17 @@ const E2 = { attribute: !0, type: String, converter: d1, reflect: !1, hasChanged
579
579
  throw Error("Unsupported decorator location: " + l);
580
580
  };
581
581
  function r(C) {
582
- return (e, t) => typeof t == "object" ? P2(C, e, t) : ((l, o, i) => {
583
- const n = o.hasOwnProperty(i);
584
- return o.constructor.createProperty(i, l), n ? Object.getOwnPropertyDescriptor(o, i) : void 0;
585
- })(C, e, t);
582
+ return (e, o) => typeof o == "object" ? O2(C, e, o) : ((l, t, i) => {
583
+ const n = t.hasOwnProperty(i);
584
+ return t.constructor.createProperty(i, l), n ? Object.getOwnPropertyDescriptor(t, i) : void 0;
585
+ })(C, e, o);
586
586
  }
587
587
  /**
588
588
  * @license
589
589
  * Copyright 2017 Google LLC
590
590
  * SPDX-License-Identifier: BSD-3-Clause
591
591
  */
592
- function H1(C) {
592
+ function s1(C) {
593
593
  return r({ ...C, state: !0, attribute: !1 });
594
594
  }
595
595
  /**
@@ -597,29 +597,29 @@ function H1(C) {
597
597
  * Copyright 2017 Google LLC
598
598
  * SPDX-License-Identifier: BSD-3-Clause
599
599
  */
600
- const A2 = (C, e, t) => (t.configurable = !0, t.enumerable = !0, Reflect.decorate && typeof e != "object" && Object.defineProperty(C, e, t), t);
600
+ const I2 = (C, e, o) => (o.configurable = !0, o.enumerable = !0, Reflect.decorate && typeof e != "object" && Object.defineProperty(C, e, o), o);
601
601
  /**
602
602
  * @license
603
603
  * Copyright 2017 Google LLC
604
604
  * SPDX-License-Identifier: BSD-3-Clause
605
605
  */
606
- function N1(C, e) {
607
- return (t, l, o) => {
606
+ function j1(C, e) {
607
+ return (o, l, t) => {
608
608
  const i = (n) => {
609
609
  var a;
610
610
  return ((a = n.renderRoot) == null ? void 0 : a.querySelector(C)) ?? null;
611
611
  };
612
- return A2(t, l, { get() {
612
+ return I2(o, l, { get() {
613
613
  return i(this);
614
614
  } });
615
615
  };
616
616
  }
617
- var z2 = Object.defineProperty, Y5 = (C, e, t, l) => {
618
- for (var o = void 0, i = C.length - 1, n; i >= 0; i--)
619
- (n = C[i]) && (o = n(e, t, o) || o);
620
- return o && z2(e, t, o), o;
617
+ var B2 = Object.defineProperty, K5 = (C, e, o, l) => {
618
+ for (var t = void 0, i = C.length - 1, n; i >= 0; i--)
619
+ (n = C[i]) && (t = n(e, o, t) || t);
620
+ return t && B2(e, o, t), t;
621
621
  };
622
- const D1 = class D1 extends c {
622
+ const Y1 = class Y1 extends c {
623
623
  constructor() {
624
624
  super(...arguments), this.size = "medium", this.percent = "";
625
625
  }
@@ -638,11 +638,11 @@ const D1 = class D1 extends c {
638
638
  }
639
639
  }
640
640
  render() {
641
- const [e, t] = this.getSizeParams(this.size), l = this.percent === "" || this.percent === null;
642
- let o;
643
- l ? o = 0.75 * Math.PI * e : o = (1 - Math.max(0, Math.min(1, parseFloat(this.percent) || 0))) * Math.PI * e;
644
- const i = t / 2, n = t + e, a = e / 2, s = Math.PI * e;
645
- return R1`
641
+ const [e, o] = this.getSizeParams(this.size), l = this.percent === "" || this.percent === null;
642
+ let t;
643
+ l ? t = 0.75 * Math.PI * e : t = (1 - Math.max(0, Math.min(1, parseFloat(this.percent) || 0))) * Math.PI * e;
644
+ const i = o / 2, n = o + e, a = e / 2, s = Math.PI * e;
645
+ return k1`
646
646
  <svg
647
647
  class=${l ? "spinner" : ""}
648
648
  width="${e}px"
@@ -654,7 +654,7 @@ const D1 = class D1 extends c {
654
654
  <circle
655
655
  stroke="currentColor"
656
656
  stroke-linecap="round"
657
- stroke-width="${t}px"
657
+ stroke-width="${o}px"
658
658
  cx="${a}"
659
659
  cy="${a}"
660
660
  r="${a}"
@@ -664,32 +664,32 @@ const D1 = class D1 extends c {
664
664
  <circle
665
665
  stroke="currentColor"
666
666
  stroke-linecap="round"
667
- stroke-width="${t}px"
667
+ stroke-width="${o}px"
668
668
  cx="${a}"
669
669
  cy="${a}"
670
670
  r="${a}"
671
671
  fill-opacity="0"
672
672
  stroke-dasharray="${s}"
673
- stroke-dashoffset="${o}"
673
+ stroke-dashoffset="${t}"
674
674
  />
675
675
  </svg>
676
676
  `;
677
677
  }
678
678
  };
679
- D1.styles = h`
679
+ Y1.styles = h`
680
680
  :host { display: inline-block; line-height: 0; font-family: var(--font-sans); }
681
681
  .spinner { animation: circle 0.6s linear infinite; }
682
682
  @keyframes circle { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
683
683
  `;
684
- let X = D1;
685
- Y5([
684
+ let K = Y1;
685
+ K5([
686
686
  r()
687
- ], X.prototype, "size");
688
- Y5([
687
+ ], K.prototype, "size");
688
+ K5([
689
689
  r()
690
- ], X.prototype, "percent");
691
- customElements.get("anduin-spinner") || customElements.define("anduin-spinner", X);
692
- const S5 = {
690
+ ], K.prototype, "percent");
691
+ customElements.get("anduin-spinner") || customElements.define("anduin-spinner", K);
692
+ const B5 = {
693
693
  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" }],
694
694
  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" }],
695
695
  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" }],
@@ -1026,20 +1026,20 @@ const S5 = {
1026
1026
  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" }],
1027
1027
  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" }]
1028
1028
  };
1029
- var S2 = Object.defineProperty, W5 = (C, e, t, l) => {
1030
- for (var o = void 0, i = C.length - 1, n; i >= 0; i--)
1031
- (n = C[i]) && (o = n(e, t, o) || o);
1032
- return o && S2(e, t, o), o;
1029
+ var T2 = Object.defineProperty, J5 = (C, e, o, l) => {
1030
+ for (var t = void 0, i = C.length - 1, n; i >= 0; i--)
1031
+ (n = C[i]) && (t = n(e, o, t) || t);
1032
+ return t && T2(e, o, t), t;
1033
1033
  };
1034
- const q1 = class q1 extends c {
1034
+ const W1 = class W1 extends c {
1035
1035
  constructor() {
1036
1036
  super(...arguments), this.name = "", this.size = 16;
1037
1037
  }
1038
1038
  render() {
1039
- const e = this.name && S5[this.name] ? S5[this.name] : [], t = !this.name;
1040
- return R1`
1039
+ const e = this.name && B5[this.name] ? B5[this.name] : [], o = !this.name;
1040
+ return k1`
1041
1041
  <svg
1042
- class=${t ? "icon--hidden" : ""}
1042
+ class=${o ? "icon--hidden" : ""}
1043
1043
  xmlns="http://www.w3.org/2000/svg"
1044
1044
  fill="none"
1045
1045
  width="${this.size}"
@@ -1047,36 +1047,36 @@ const q1 = class q1 extends c {
1047
1047
  viewBox="0 0 16 16"
1048
1048
  >
1049
1049
  ${e.map(
1050
- (l) => R1`
1050
+ (l) => k1`
1051
1051
  <path
1052
1052
  fill="currentColor"
1053
1053
  d="${l.d}"
1054
- fill-rule="${l.fillRule ?? p}"
1055
- clip-rule="${l.clipRule ?? p}"
1054
+ fill-rule="${l.fillRule ?? u}"
1055
+ clip-rule="${l.clipRule ?? u}"
1056
1056
  />`
1057
1057
  )}
1058
1058
  </svg>
1059
1059
  `;
1060
1060
  }
1061
1061
  };
1062
- q1.styles = h`
1062
+ W1.styles = h`
1063
1063
  :host { display: block; line-height: 0; font-family: var(--font-sans); }
1064
1064
  .icon--hidden { display: none; }
1065
1065
  `;
1066
- let K = q1;
1067
- W5([
1066
+ let J = W1;
1067
+ J5([
1068
1068
  r()
1069
- ], K.prototype, "name");
1070
- W5([
1069
+ ], J.prototype, "name");
1070
+ J5([
1071
1071
  r({ type: Number })
1072
- ], K.prototype, "size");
1073
- customElements.get("anduin-icon") || customElements.define("anduin-icon", K);
1074
- var O2 = Object.defineProperty, B2 = (C, e, t, l) => {
1075
- for (var o = void 0, i = C.length - 1, n; i >= 0; i--)
1076
- (n = C[i]) && (o = n(e, t, o) || o);
1077
- return o && O2(e, t, o), o;
1072
+ ], J.prototype, "size");
1073
+ customElements.get("anduin-icon") || customElements.define("anduin-icon", J);
1074
+ var N2 = Object.defineProperty, U2 = (C, e, o, l) => {
1075
+ for (var t = void 0, i = C.length - 1, n; i >= 0; i--)
1076
+ (n = C[i]) && (t = n(e, o, t) || t);
1077
+ return t && N2(e, o, t), t;
1078
1078
  };
1079
- const X5 = h`
1079
+ const Q5 = h`
1080
1080
  :host { display: inline-block; font-family: var(--font-sans); }
1081
1081
  .badge {
1082
1082
  border-radius: 9999px;
@@ -1103,7 +1103,7 @@ const X5 = h`
1103
1103
  .badge--bold-warning { background-color: var(--color-semantic-warning-3); color: var(--color-semantic-gray-8); }
1104
1104
  .badge--hidden { display: none; }
1105
1105
  `;
1106
- function K5(C) {
1106
+ function e2(C) {
1107
1107
  return {
1108
1108
  gray: "badge--light-gray",
1109
1109
  primary: "badge--light-primary",
@@ -1117,27 +1117,27 @@ function K5(C) {
1117
1117
  boldDanger: "badge--bold-danger"
1118
1118
  }[C || "gray"] || "badge--light-gray";
1119
1119
  }
1120
- const G1 = class G1 extends c {
1120
+ const X1 = class X1 extends c {
1121
1121
  constructor() {
1122
1122
  super(...arguments), this.variant = "gray";
1123
1123
  }
1124
1124
  render() {
1125
- const e = K5(this.variant);
1125
+ const e = e2(this.variant);
1126
1126
  return d`<div class="badge ${e}" part="badge"><slot></slot></div>`;
1127
1127
  }
1128
1128
  };
1129
- G1.styles = [X5];
1130
- let u1 = G1;
1131
- B2([
1129
+ X1.styles = [Q5];
1130
+ let g1 = X1;
1131
+ U2([
1132
1132
  r()
1133
- ], u1.prototype, "variant");
1134
- customElements.get("anduin-badge") || customElements.define("anduin-badge", u1);
1135
- var I2 = Object.defineProperty, F5 = (C, e, t, l) => {
1136
- for (var o = void 0, i = C.length - 1, n; i >= 0; i--)
1137
- (n = C[i]) && (o = n(e, t, o) || o);
1138
- return o && I2(e, t, o), o;
1133
+ ], g1.prototype, "variant");
1134
+ customElements.get("anduin-badge") || customElements.define("anduin-badge", g1);
1135
+ var j2 = Object.defineProperty, t2 = (C, e, o, l) => {
1136
+ for (var t = void 0, i = C.length - 1, n; i >= 0; i--)
1137
+ (n = C[i]) && (t = n(e, o, t) || t);
1138
+ return t && j2(e, o, t), t;
1139
1139
  };
1140
- const Y1 = class Y1 extends c {
1140
+ const F1 = class F1 extends c {
1141
1141
  constructor() {
1142
1142
  super(...arguments), this.variant = "gray", this.count = 0;
1143
1143
  }
@@ -1145,96 +1145,96 @@ const Y1 = class Y1 extends c {
1145
1145
  return e > 99 ? "99+" : e.toString();
1146
1146
  }
1147
1147
  render() {
1148
- const e = K5(this.variant), t = this.count === 0, l = this.count > 0 && this.count < 10, o = [
1148
+ const e = e2(this.variant), o = this.count === 0, l = this.count > 0 && this.count < 10, t = [
1149
1149
  "badge",
1150
1150
  e,
1151
- t ? "badge--hidden" : "",
1151
+ o ? "badge--hidden" : "",
1152
1152
  l ? "badge--square" : ""
1153
1153
  ].filter(Boolean).join(" ");
1154
- return d`<div class="${o}" part="badge">${this.formatCount(this.count)}</div>`;
1154
+ return d`<div class="${t}" part="badge">${this.formatCount(this.count)}</div>`;
1155
1155
  }
1156
1156
  };
1157
- Y1.styles = [X5];
1158
- let F = Y1;
1159
- F5([
1157
+ F1.styles = [Q5];
1158
+ let Q = F1;
1159
+ t2([
1160
1160
  r()
1161
- ], F.prototype, "variant");
1162
- F5([
1161
+ ], Q.prototype, "variant");
1162
+ t2([
1163
1163
  r({ type: Number })
1164
- ], F.prototype, "count");
1165
- customElements.get("anduin-badge-count") || customElements.define("anduin-badge-count", F);
1166
- var N2 = Object.defineProperty, H = (C, e, t, l) => {
1167
- for (var o = void 0, i = C.length - 1, n; i >= 0; i--)
1168
- (n = C[i]) && (o = n(e, t, o) || o);
1169
- return o && N2(e, t, o), o;
1164
+ ], Q.prototype, "count");
1165
+ customElements.get("anduin-badge-count") || customElements.define("anduin-badge-count", Q);
1166
+ var D2 = Object.defineProperty, H = (C, e, o, l) => {
1167
+ for (var t = void 0, i = C.length - 1, n; i >= 0; i--)
1168
+ (n = C[i]) && (t = n(e, o, t) || t);
1169
+ return t && D2(e, o, t), t;
1170
1170
  };
1171
- function T2(C) {
1171
+ function q2(C) {
1172
1172
  return C.replace(/([A-Z])/g, (e) => `-${e.toLowerCase()}`);
1173
1173
  }
1174
- const W1 = class W1 extends c {
1174
+ const K1 = class K1 extends c {
1175
1175
  constructor() {
1176
1176
  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 = "";
1177
1177
  }
1178
1178
  firstUpdated() {
1179
- var t;
1180
- const e = (t = this.shadowRoot) == null ? void 0 : t.querySelector("slot");
1179
+ var o;
1180
+ const e = (o = this.shadowRoot) == null ? void 0 : o.querySelector("slot");
1181
1181
  e && (this.iconOnly = e.assignedNodes({ flatten: !0 }).length === 0);
1182
1182
  }
1183
1183
  onSlotChange(e) {
1184
- const t = e.target;
1185
- this.iconOnly = t.assignedNodes({ flatten: !0 }).length === 0;
1184
+ const o = e.target;
1185
+ this.iconOnly = o.assignedNodes({ flatten: !0 }).length === 0;
1186
1186
  }
1187
1187
  getVariant() {
1188
1188
  return this.variant ? this.variant : this.appearance === "filled" ? "gray0" : this.appearance === "text" ? "primary" : "gray9";
1189
1189
  }
1190
1190
  getSizeKebab() {
1191
- return T2(this.size);
1191
+ return q2(this.size);
1192
1192
  }
1193
1193
  iconSize() {
1194
1194
  return this.size === "tiny" || this.size === "extraSmall" || this.size === "small" ? "12" : "16";
1195
1195
  }
1196
1196
  render() {
1197
- const e = this.getVariant(), t = this.getSizeKebab(), l = [
1197
+ const e = this.getVariant(), o = this.getSizeKebab(), l = [
1198
1198
  "button",
1199
1199
  `button--${this.appearance}`,
1200
1200
  `button--${e}`,
1201
- `button--${t}`,
1201
+ `button--${o}`,
1202
1202
  this.fullWidth ? "button--full-width" : "",
1203
1203
  this.pill ? "button--pill" : "",
1204
1204
  this.disabled ? "button--disabled" : "",
1205
1205
  this.loading ? "button--loading" : "",
1206
1206
  this.selected ? "button--selected" : "",
1207
1207
  this.iconOnly && this.appearance !== "text" && !this.fullWidth ? "button--icon-only" : ""
1208
- ].filter(Boolean).join(" "), o = d`
1209
- <div class="button__content button__content--${t}">
1210
- ${this.startIcon ? d`<anduin-icon name="${this.startIcon}" size="${this.iconSize()}"></anduin-icon>` : p}
1208
+ ].filter(Boolean).join(" "), t = d`
1209
+ <div class="button__content button__content--${o}">
1210
+ ${this.startIcon ? d`<anduin-icon name="${this.startIcon}" size="${this.iconSize()}"></anduin-icon>` : u}
1211
1211
  <slot @slotchange=${this.onSlotChange}></slot>
1212
- ${this.endIcon ? d`<anduin-icon name="${this.endIcon}" size="${this.iconSize()}"></anduin-icon>` : p}
1212
+ ${this.endIcon ? d`<anduin-icon name="${this.endIcon}" size="${this.iconSize()}"></anduin-icon>` : u}
1213
1213
  </div>
1214
- ${this.loading && this.appearance !== "text" ? d`<div class="button__loading"><anduin-spinner size="small"></anduin-spinner></div>` : p}
1214
+ ${this.loading && this.appearance !== "text" ? d`<div class="button__loading"><anduin-spinner size="small"></anduin-spinner></div>` : u}
1215
1215
  `;
1216
1216
  return this.href ? d`
1217
1217
  <a
1218
1218
  class="${l}"
1219
1219
  href="${this.disabled ? "" : this.href}"
1220
- target="${this.openNewTab ? "_blank" : p}"
1221
- rel="${this.openNewTab ? "noreferrer noopener" : p}"
1222
- download="${this.download || p}"
1223
- aria-label="${this.label || p}"
1224
- >${o}</a>
1220
+ target="${this.openNewTab ? "_blank" : u}"
1221
+ rel="${this.openNewTab ? "noreferrer noopener" : u}"
1222
+ download="${this.download || u}"
1223
+ aria-label="${this.label || u}"
1224
+ >${t}</a>
1225
1225
  ` : d`
1226
1226
  <button
1227
1227
  type="button"
1228
1228
  class="${l}"
1229
1229
  ?disabled="${this.disabled}"
1230
- aria-label="${this.label || p}"
1231
- >${o}</button>
1230
+ aria-label="${this.label || u}"
1231
+ >${t}</button>
1232
1232
  `;
1233
1233
  }
1234
1234
  };
1235
- W1.styles = h`
1235
+ K1.styles = h`
1236
1236
  :host { display: inline-block; font-family: var(--font-sans); }
1237
- :host([full-width="true"]) { display: block; width: 100%; }
1237
+ :host([full-width]) { display: block; width: 100%; }
1238
1238
  .button {
1239
1239
  background: none; border-radius: 4px; display: block; flex-shrink: 0; font-weight: 500;
1240
1240
  border-width: 1px; border-style: solid; line-height: 16px; white-space: nowrap;
@@ -1334,9 +1334,9 @@ W1.styles = h`
1334
1334
  .button--icon-only.button--medium { width: 32px; min-width: 32px; padding-left: 0; padding-right: 0; }
1335
1335
  .button--icon-only.button--large { width: 40px; min-width: 40px; padding-left: 0; padding-right: 0; }
1336
1336
  `;
1337
- let f = W1;
1337
+ let f = K1;
1338
1338
  H([
1339
- H1()
1339
+ s1()
1340
1340
  ], f.prototype, "iconOnly");
1341
1341
  H([
1342
1342
  r()
@@ -1381,12 +1381,12 @@ H([
1381
1381
  r()
1382
1382
  ], f.prototype, "label");
1383
1383
  customElements.get("anduin-button") || customElements.define("anduin-button", f);
1384
- var U2 = Object.defineProperty, j2 = (C, e, t, l) => {
1385
- for (var o = void 0, i = C.length - 1, n; i >= 0; i--)
1386
- (n = C[i]) && (o = n(e, t, o) || o);
1387
- return o && U2(e, t, o), o;
1384
+ var G2 = Object.defineProperty, Y2 = (C, e, o, l) => {
1385
+ for (var t = void 0, i = C.length - 1, n; i >= 0; i--)
1386
+ (n = C[i]) && (t = n(e, o, t) || t);
1387
+ return t && G2(e, o, t), t;
1388
1388
  };
1389
- const X1 = class X1 extends c {
1389
+ const J1 = class J1 extends c {
1390
1390
  constructor() {
1391
1391
  super(...arguments), this.variant = "gray";
1392
1392
  }
@@ -1399,7 +1399,7 @@ const X1 = class X1 extends c {
1399
1399
  `;
1400
1400
  }
1401
1401
  };
1402
- X1.styles = h`
1402
+ J1.styles = h`
1403
1403
  :host { display: block; font-family: var(--font-sans); }
1404
1404
  .callout {
1405
1405
  display: flex; align-items: center; justify-content: center;
@@ -1411,17 +1411,17 @@ X1.styles = h`
1411
1411
  .callout--danger { background-color: var(--color-semantic-danger-4); color: var(--color-semantic-gray-0); }
1412
1412
  .callout--warning { background-color: var(--color-semantic-warning-3); color: var(--color-semantic-gray-8); }
1413
1413
  `;
1414
- let p1 = X1;
1415
- j2([
1414
+ let L1 = J1;
1415
+ Y2([
1416
1416
  r()
1417
- ], p1.prototype, "variant");
1418
- customElements.get("anduin-callout") || customElements.define("anduin-callout", p1);
1419
- var D2 = Object.defineProperty, J5 = (C, e, t, l) => {
1420
- for (var o = void 0, i = C.length - 1, n; i >= 0; i--)
1421
- (n = C[i]) && (o = n(e, t, o) || o);
1422
- return o && D2(e, t, o), o;
1417
+ ], L1.prototype, "variant");
1418
+ customElements.get("anduin-callout") || customElements.define("anduin-callout", L1);
1419
+ var W2 = Object.defineProperty, o2 = (C, e, o, l) => {
1420
+ for (var t = void 0, i = C.length - 1, n; i >= 0; i--)
1421
+ (n = C[i]) && (t = n(e, o, t) || t);
1422
+ return t && W2(e, o, t), t;
1423
1423
  };
1424
- const K1 = class K1 extends c {
1424
+ const Q1 = class Q1 extends c {
1425
1425
  constructor() {
1426
1426
  super(...arguments), this.direction = "horizontal", this.hasContent = !1;
1427
1427
  }
@@ -1433,9 +1433,9 @@ const K1 = class K1 extends c {
1433
1433
  }
1434
1434
  onSlotChange(e) {
1435
1435
  const l = e.target.assignedNodes({ flatten: !0 });
1436
- this.hasContent = l.some((o) => {
1436
+ this.hasContent = l.some((t) => {
1437
1437
  var i;
1438
- return ((i = o.textContent) == null ? void 0 : i.trim()) !== "";
1438
+ return ((i = t.textContent) == null ? void 0 : i.trim()) !== "";
1439
1439
  });
1440
1440
  }
1441
1441
  render() {
@@ -1452,7 +1452,7 @@ const K1 = class K1 extends c {
1452
1452
  </div>` : d`<div class="divider--horizontal divider--horizontal-empty"><slot @slotchange=${this.onSlotChange}></slot></div>`;
1453
1453
  }
1454
1454
  };
1455
- K1.styles = h`
1455
+ Q1.styles = h`
1456
1456
  :host { width: 100%; font-family: var(--font-sans); }
1457
1457
  :host([direction="vertical"]) { width: auto; height: 100%; }
1458
1458
  .divider--horizontal { margin-top: 8px; margin-bottom: 8px; width: 100%; display: grid; grid-template-columns: 1fr auto 1fr; column-gap: 8px; text-align: center; }
@@ -1462,20 +1462,20 @@ K1.styles = h`
1462
1462
  .divider--vertical-empty { background-color: var(--color-gray-3); width: 1px; }
1463
1463
  .divider__line--vertical { border-left: 1px solid var(--color-gray-3); justify-self: center; }
1464
1464
  `;
1465
- let J = K1;
1466
- J5([
1465
+ let e1 = Q1;
1466
+ o2([
1467
1467
  r()
1468
- ], J.prototype, "direction");
1469
- J5([
1470
- H1()
1471
- ], J.prototype, "hasContent");
1472
- customElements.get("anduin-divider") || customElements.define("anduin-divider", J);
1473
- var q2 = Object.defineProperty, G2 = (C, e, t, l) => {
1474
- for (var o = void 0, i = C.length - 1, n; i >= 0; i--)
1475
- (n = C[i]) && (o = n(e, t, o) || o);
1476
- return o && q2(e, t, o), o;
1468
+ ], e1.prototype, "direction");
1469
+ o2([
1470
+ s1()
1471
+ ], e1.prototype, "hasContent");
1472
+ customElements.get("anduin-divider") || customElements.define("anduin-divider", e1);
1473
+ var X2 = Object.defineProperty, F2 = (C, e, o, l) => {
1474
+ for (var t = void 0, i = C.length - 1, n; i >= 0; i--)
1475
+ (n = C[i]) && (t = n(e, o, t) || t);
1476
+ return t && X2(e, o, t), t;
1477
1477
  };
1478
- const F1 = class F1 extends c {
1478
+ const e5 = class e5 extends c {
1479
1479
  constructor() {
1480
1480
  super(...arguments), this.variant = "gray";
1481
1481
  }
@@ -1483,7 +1483,7 @@ const F1 = class F1 extends c {
1483
1483
  return d`<div class="dot dot--${this.variant}" part="dot"></div>`;
1484
1484
  }
1485
1485
  };
1486
- F1.styles = h`
1486
+ e5.styles = h`
1487
1487
  :host { display: inline-block; font-family: var(--font-sans); }
1488
1488
  .dot { width: 10px; height: 10px; border-radius: 9999px; }
1489
1489
  .dot--gray { background-color: var(--color-semantic-gray-6); color: var(--color-semantic-gray-0); }
@@ -1492,33 +1492,33 @@ F1.styles = h`
1492
1492
  .dot--danger { background-color: var(--color-semantic-danger-4); color: var(--color-semantic-gray-0); }
1493
1493
  .dot--warning { background-color: var(--color-semantic-warning-3); color: var(--color-semantic-gray-8); }
1494
1494
  `;
1495
- let h1 = F1;
1496
- G2([
1495
+ let f1 = e5;
1496
+ F2([
1497
1497
  r()
1498
- ], h1.prototype, "variant");
1499
- customElements.get("anduin-dot") || customElements.define("anduin-dot", h1);
1500
- var Y2 = Object.defineProperty, Q5 = (C, e, t, l) => {
1501
- for (var o = void 0, i = C.length - 1, n; i >= 0; i--)
1502
- (n = C[i]) && (o = n(e, t, o) || o);
1503
- return o && Y2(e, t, o), o;
1498
+ ], f1.prototype, "variant");
1499
+ customElements.get("anduin-dot") || customElements.define("anduin-dot", f1);
1500
+ var K2 = Object.defineProperty, l2 = (C, e, o, l) => {
1501
+ for (var t = void 0, i = C.length - 1, n; i >= 0; i--)
1502
+ (n = C[i]) && (t = n(e, o, t) || t);
1503
+ return t && K2(e, o, t), t;
1504
1504
  };
1505
- const J1 = class J1 extends c {
1505
+ const t5 = class t5 extends c {
1506
1506
  constructor() {
1507
1507
  super(...arguments), this.percent = "", this.height = "medium";
1508
1508
  }
1509
1509
  render() {
1510
- const e = this.height === "large" ? 8 : 3, t = this.percent === "" || this.percent === null;
1510
+ const e = this.height === "large" ? 8 : 3, o = this.percent === "" || this.percent === null;
1511
1511
  let l = "";
1512
- const o = ["progress__fill"];
1513
- return t ? o.push("progress__fill--indeterminate") : l = `width: ${Math.max(0, Math.min(1, parseFloat(this.percent) || 0)) * 100}%;`, d`
1512
+ const t = ["progress__fill"];
1513
+ return o ? t.push("progress__fill--indeterminate") : l = `width: ${Math.max(0, Math.min(1, parseFloat(this.percent) || 0)) * 100}%;`, d`
1514
1514
  <div class="progress" style="height: ${e}px;" part="progress">
1515
- <div class="${o.join(" ")}" style="${l}"></div>
1515
+ <div class="${t.join(" ")}" style="${l}"></div>
1516
1516
  <div class="progress__background"></div>
1517
1517
  </div>
1518
1518
  `;
1519
1519
  }
1520
1520
  };
1521
- J1.styles = h`
1521
+ t5.styles = h`
1522
1522
  :host { display: block; font-family: var(--font-sans); }
1523
1523
  .progress { overflow-x: hidden; position: relative; border-radius: 9999px; }
1524
1524
  .progress__fill {
@@ -1534,20 +1534,20 @@ J1.styles = h`
1534
1534
  to { transform: translateX(330%); }
1535
1535
  }
1536
1536
  `;
1537
- let Q = J1;
1538
- Q5([
1537
+ let t1 = t5;
1538
+ l2([
1539
1539
  r()
1540
- ], Q.prototype, "percent");
1541
- Q5([
1540
+ ], t1.prototype, "percent");
1541
+ l2([
1542
1542
  r()
1543
- ], Q.prototype, "height");
1544
- customElements.get("anduin-progress") || customElements.define("anduin-progress", Q);
1545
- var W2 = Object.defineProperty, U = (C, e, t, l) => {
1546
- for (var o = void 0, i = C.length - 1, n; i >= 0; i--)
1547
- (n = C[i]) && (o = n(e, t, o) || o);
1548
- return o && W2(e, t, o), o;
1543
+ ], t1.prototype, "height");
1544
+ customElements.get("anduin-progress") || customElements.define("anduin-progress", t1);
1545
+ var J2 = Object.defineProperty, j = (C, e, o, l) => {
1546
+ for (var t = void 0, i = C.length - 1, n; i >= 0; i--)
1547
+ (n = C[i]) && (t = n(e, o, t) || t);
1548
+ return t && J2(e, o, t), t;
1549
1549
  };
1550
- const Q1 = class Q1 extends c {
1550
+ const o5 = class o5 extends c {
1551
1551
  constructor() {
1552
1552
  super(...arguments), this.effect = "pulse", this.shape = "rectangle", this.height = "", this.width = "100%", this.duration = 1500, this.fontSize = "";
1553
1553
  }
@@ -1558,15 +1558,15 @@ const Q1 = class Q1 extends c {
1558
1558
  this.shape === "rounded" ? "skeleton--rounded" : "",
1559
1559
  this.shape === "rectangle" ? "skeleton--rectangle" : "",
1560
1560
  this.shape === "text" && this.fontSize ? "skeleton--text" : ""
1561
- ].filter(Boolean).join(" "), t = this.shape === "text" && this.fontSize ? `--anduin-skeleton-font-size: ${this.fontSize};` : "", l = `${this.height ? `height: ${this.height};` : ""} width: ${this.width};`, o = this.effect === "pulse" ? `animation: skeleton-pulse ${this.duration}ms ease-in-out infinite;` : "";
1561
+ ].filter(Boolean).join(" "), o = this.shape === "text" && this.fontSize ? `--anduin-skeleton-font-size: ${this.fontSize};` : "", l = `${this.height ? `height: ${this.height};` : ""} width: ${this.width};`, t = this.effect === "pulse" ? `animation: skeleton-pulse ${this.duration}ms ease-in-out infinite;` : "";
1562
1562
  return d`
1563
- <div class="${e}" style="${t} ${l} ${o}" part="skeleton">
1563
+ <div class="${e}" style="${o} ${l} ${t}" part="skeleton">
1564
1564
  ${this.effect === "wave" ? d`<div class="skeleton__wave" style="animation: skeleton-wave ${this.duration}ms linear infinite;"></div>` : ""}
1565
1565
  </div>
1566
1566
  `;
1567
1567
  }
1568
1568
  };
1569
- Q1.styles = h`
1569
+ o5.styles = h`
1570
1570
  :host { display: block; height: 100%; font-family: var(--font-sans); }
1571
1571
  .skeleton { background-color: var(--color-gray-3); position: relative; overflow: hidden; }
1572
1572
  .skeleton--circle { border-radius: 9999px; }
@@ -1585,32 +1585,32 @@ Q1.styles = h`
1585
1585
  0% { transform: translateX(-100%); } 100% { transform: translateX(100%); }
1586
1586
  }
1587
1587
  `;
1588
- let y = Q1;
1589
- U([
1588
+ let y = o5;
1589
+ j([
1590
1590
  r()
1591
1591
  ], y.prototype, "effect");
1592
- U([
1592
+ j([
1593
1593
  r()
1594
1594
  ], y.prototype, "shape");
1595
- U([
1595
+ j([
1596
1596
  r()
1597
1597
  ], y.prototype, "height");
1598
- U([
1598
+ j([
1599
1599
  r()
1600
1600
  ], y.prototype, "width");
1601
- U([
1601
+ j([
1602
1602
  r({ type: Number })
1603
1603
  ], y.prototype, "duration");
1604
- U([
1604
+ j([
1605
1605
  r({ attribute: "font-size" })
1606
1606
  ], y.prototype, "fontSize");
1607
1607
  customElements.get("anduin-skeleton") || customElements.define("anduin-skeleton", y);
1608
- var X2 = Object.defineProperty, K2 = (C, e, t, l) => {
1609
- for (var o = void 0, i = C.length - 1, n; i >= 0; i--)
1610
- (n = C[i]) && (o = n(e, t, o) || o);
1611
- return o && X2(e, t, o), o;
1608
+ var Q2 = Object.defineProperty, e4 = (C, e, o, l) => {
1609
+ for (var t = void 0, i = C.length - 1, n; i >= 0; i--)
1610
+ (n = C[i]) && (t = n(e, o, t) || t);
1611
+ return t && Q2(e, o, t), t;
1612
1612
  };
1613
- const e5 = class e5 extends c {
1613
+ const l5 = class l5 extends c {
1614
1614
  constructor() {
1615
1615
  super(...arguments), this.height = "256px";
1616
1616
  }
@@ -1625,31 +1625,31 @@ const e5 = class e5 extends c {
1625
1625
  `;
1626
1626
  }
1627
1627
  };
1628
- e5.styles = h`
1628
+ l5.styles = h`
1629
1629
  :host { display: block; height: 100%; font-family: var(--font-sans); }
1630
1630
  .loading-state { display: flex; flex-direction: column; justify-content: center; align-items: center; }
1631
1631
  .loading-state__indicator { color: var(--color-primary-4); }
1632
1632
  .loading-state__content { margin-top: 12px; font-size: 15px; color: var(--color-gray-6); }
1633
1633
  `;
1634
- let v1 = e5;
1635
- K2([
1634
+ let H1 = l5;
1635
+ e4([
1636
1636
  r()
1637
- ], v1.prototype, "height");
1638
- customElements.get("anduin-loading-state") || customElements.define("anduin-loading-state", v1);
1639
- var F2 = Object.defineProperty, T1 = (C, e, t, l) => {
1640
- for (var o = void 0, i = C.length - 1, n; i >= 0; i--)
1641
- (n = C[i]) && (o = n(e, t, o) || o);
1642
- return o && F2(e, t, o), o;
1637
+ ], H1.prototype, "height");
1638
+ customElements.get("anduin-loading-state") || customElements.define("anduin-loading-state", H1);
1639
+ var t4 = Object.defineProperty, D1 = (C, e, o, l) => {
1640
+ for (var t = void 0, i = C.length - 1, n; i >= 0; i--)
1641
+ (n = C[i]) && (t = n(e, o, t) || t);
1642
+ return t && t4(e, o, t), t;
1643
1643
  };
1644
- const e2 = "anduin-field:label-click", b1 = "anduin-field:label-click-coordinated", t5 = class t5 extends c {
1644
+ const C2 = "anduin-field:label-click", M1 = "anduin-field:label-click-coordinated", C5 = class C5 extends c {
1645
1645
  constructor() {
1646
1646
  super(...arguments), this.orientation = "vertical";
1647
1647
  }
1648
1648
  connectedCallback() {
1649
- super.connectedCallback(), this.addEventListener(e2, (e) => {
1650
- const t = e;
1651
- this.dispatchEvent(new CustomEvent(b1, {
1652
- detail: t.detail,
1649
+ super.connectedCallback(), this.addEventListener(C2, (e) => {
1650
+ const o = e;
1651
+ this.dispatchEvent(new CustomEvent(M1, {
1652
+ detail: o.detail,
1653
1653
  bubbles: !1,
1654
1654
  composed: !1
1655
1655
  }));
@@ -1664,17 +1664,17 @@ const e2 = "anduin-field:label-click", b1 = "anduin-field:label-click-coordinate
1664
1664
  `;
1665
1665
  }
1666
1666
  };
1667
- t5.styles = h`
1667
+ C5.styles = h`
1668
1668
  :host { display: block; font-family: var(--font-sans); }
1669
1669
  .field { display: flex; flex-wrap: wrap; }
1670
1670
  .field--vertical { flex-direction: column; row-gap: 4px; }
1671
1671
  .field--horizontal { column-gap: 4px; }
1672
1672
  `;
1673
- let L1 = t5;
1674
- T1([
1673
+ let b1 = C5;
1674
+ D1([
1675
1675
  r()
1676
- ], L1.prototype, "orientation");
1677
- const o5 = class o5 extends c {
1676
+ ], b1.prototype, "orientation");
1677
+ const i5 = class i5 extends c {
1678
1678
  constructor() {
1679
1679
  super(...arguments), this.htmlfor = "", this.required = !1;
1680
1680
  }
@@ -1682,7 +1682,7 @@ const o5 = class o5 extends c {
1682
1682
  super.connectedCallback();
1683
1683
  }
1684
1684
  onLabelClick(e) {
1685
- this.htmlfor && (e.preventDefault(), this.dispatchEvent(new CustomEvent(e2, {
1685
+ this.htmlfor && (e.preventDefault(), this.dispatchEvent(new CustomEvent(C2, {
1686
1686
  detail: this.htmlfor,
1687
1687
  bubbles: !0,
1688
1688
  composed: !0
@@ -1701,72 +1701,72 @@ const o5 = class o5 extends c {
1701
1701
  `;
1702
1702
  }
1703
1703
  };
1704
- o5.styles = h`
1704
+ i5.styles = h`
1705
1705
  :host { display: inline-block; font-family: var(--font-sans); }
1706
1706
  .field-label { font-size: 13px; line-height: 20px; font-weight: 600; cursor: default; }
1707
1707
  .field-label__required { color: var(--color-danger-5); }
1708
1708
  `;
1709
- let e1 = o5;
1710
- T1([
1709
+ let o1 = i5;
1710
+ D1([
1711
1711
  r()
1712
- ], e1.prototype, "htmlfor");
1713
- T1([
1712
+ ], o1.prototype, "htmlfor");
1713
+ D1([
1714
1714
  r({ type: Boolean })
1715
- ], e1.prototype, "required");
1716
- const l5 = class l5 extends c {
1715
+ ], o1.prototype, "required");
1716
+ const n5 = class n5 extends c {
1717
1717
  render() {
1718
1718
  return d`<div class="field-description" part="description"><slot></slot></div>`;
1719
1719
  }
1720
1720
  };
1721
- l5.styles = h`
1721
+ n5.styles = h`
1722
1722
  :host { display: inline-block; font-family: var(--font-sans); }
1723
1723
  .field-description { display: block; line-height: 16px; font-size: 11px; color: var(--color-gray-7); }
1724
1724
  `;
1725
- let _1 = l5;
1726
- const C5 = class C5 extends c {
1725
+ let w1 = n5;
1726
+ const r5 = class r5 extends c {
1727
1727
  render() {
1728
1728
  return d`<div class="field-error" part="error"><slot></slot></div>`;
1729
1729
  }
1730
1730
  };
1731
- C5.styles = h`
1731
+ r5.styles = h`
1732
1732
  :host { display: block; font-family: var(--font-sans); }
1733
1733
  .field-error { color: var(--color-danger-4); }
1734
1734
  `;
1735
- let x1 = C5;
1736
- const i5 = class i5 extends c {
1735
+ let $1 = r5;
1736
+ const a5 = class a5 extends c {
1737
1737
  render() {
1738
1738
  return d`<div class="field-group" part="group"><slot></slot></div>`;
1739
1739
  }
1740
1740
  };
1741
- i5.styles = h`
1741
+ a5.styles = h`
1742
1742
  :host { display: block; font-family: var(--font-sans); }
1743
1743
  .field-group { display: flex; flex-direction: column; row-gap: 24px; }
1744
1744
  `;
1745
- let k1 = i5;
1746
- customElements.get("anduin-field") || customElements.define("anduin-field", L1);
1747
- customElements.get("anduin-field-label") || customElements.define("anduin-field-label", e1);
1748
- customElements.get("anduin-field-description") || customElements.define("anduin-field-description", _1);
1749
- customElements.get("anduin-field-error") || customElements.define("anduin-field-error", x1);
1750
- customElements.get("anduin-field-group") || customElements.define("anduin-field-group", k1);
1751
- var J2 = Object.defineProperty, r1 = (C, e, t, l) => {
1752
- for (var o = void 0, i = C.length - 1, n; i >= 0; i--)
1753
- (n = C[i]) && (o = n(e, t, o) || o);
1754
- return o && J2(e, t, o), o;
1745
+ let E1 = a5;
1746
+ customElements.get("anduin-field") || customElements.define("anduin-field", b1);
1747
+ customElements.get("anduin-field-label") || customElements.define("anduin-field-label", o1);
1748
+ customElements.get("anduin-field-description") || customElements.define("anduin-field-description", w1);
1749
+ customElements.get("anduin-field-error") || customElements.define("anduin-field-error", $1);
1750
+ customElements.get("anduin-field-group") || customElements.define("anduin-field-group", E1);
1751
+ var o4 = Object.defineProperty, d1 = (C, e, o, l) => {
1752
+ for (var t = void 0, i = C.length - 1, n; i >= 0; i--)
1753
+ (n = C[i]) && (t = n(e, o, t) || t);
1754
+ return t && o4(e, o, t), t;
1755
1755
  };
1756
- const Q2 = "anduin-checkbox:change", n5 = class n5 extends c {
1756
+ const l4 = "anduin-checkbox:change", s5 = class s5 extends c {
1757
1757
  constructor() {
1758
1758
  super(...arguments), this.checked = !1, this.disabled = !1, this.indeterminate = !1, this.readonly = !1, this.inputid = "";
1759
1759
  }
1760
1760
  connectedCallback() {
1761
1761
  super.connectedCallback();
1762
1762
  const e = this.closest("anduin-field");
1763
- e && e.addEventListener(b1, (t) => {
1764
- const l = t;
1763
+ e && e.addEventListener(M1, (o) => {
1764
+ const l = o;
1765
1765
  this.inputid && this.inputid === l.detail && !this.disabled && !this.readonly && this.toggle();
1766
1766
  });
1767
1767
  }
1768
1768
  toggle() {
1769
- this.checked = !this.checked, this.dispatchEvent(new CustomEvent(Q2, {
1769
+ this.checked = !this.checked, this.dispatchEvent(new CustomEvent(l4, {
1770
1770
  detail: this.checked,
1771
1771
  bubbles: !0,
1772
1772
  composed: !0
@@ -1782,7 +1782,7 @@ const Q2 = "anduin-checkbox:change", n5 = class n5 extends c {
1782
1782
  this.readonly && !this.indeterminate && !this.checked ? "checkbox__box--readonly" : "",
1783
1783
  this.disabled && !this.indeterminate && !this.checked ? "checkbox__box--disabled" : "",
1784
1784
  !this.indeterminate && !this.checked && !this.readonly && !this.disabled ? "checkbox__box--unchecked" : ""
1785
- ].filter(Boolean).join(" "), t = this.indeterminate ? "minusBold" : this.checked ? "checkBold" : "", l = !this.disabled && !this.readonly, o = l ? 0 : -1;
1785
+ ].filter(Boolean).join(" "), o = this.indeterminate ? "minusBold" : this.checked ? "checkBold" : "", l = !this.disabled && !this.readonly, t = l ? 0 : -1;
1786
1786
  return d`
1787
1787
  <div
1788
1788
  class="checkbox ${l ? "checkbox--interactive" : ""} ${this.disabled ? "checkbox--disabled" : ""}"
@@ -1793,18 +1793,18 @@ const Q2 = "anduin-checkbox:change", n5 = class n5 extends c {
1793
1793
  type="checkbox"
1794
1794
  .checked=${this.checked}
1795
1795
  ?disabled=${this.disabled || this.readonly}
1796
- tabindex="${o}"
1797
- @change=${l ? this.onInputChange : p}
1796
+ tabindex="${t}"
1797
+ @change=${l ? this.onInputChange : u}
1798
1798
  />
1799
- <div class="${e}" tabindex="${o}"></div>
1799
+ <div class="${e}" tabindex="${t}"></div>
1800
1800
  <div class="checkbox__icon ${this.indeterminate || this.checked ? "checkbox__icon--visible" : ""}">
1801
- ${t ? d`<anduin-icon name="${t}" size="16"></anduin-icon>` : p}
1801
+ ${o ? d`<anduin-icon name="${o}" size="16"></anduin-icon>` : u}
1802
1802
  </div>
1803
1803
  </div>
1804
1804
  `;
1805
1805
  }
1806
1806
  };
1807
- n5.styles = h`
1807
+ s5.styles = h`
1808
1808
  :host { display: inline-flex; font-family: var(--font-sans); }
1809
1809
  .checkbox { width: 16px; height: 16px; position: relative; }
1810
1810
  .checkbox--interactive { cursor: pointer; }
@@ -1827,58 +1827,58 @@ n5.styles = h`
1827
1827
  .checkbox__icon { position: absolute; inset: 0; pointer-events: none; color: var(--color-gray-4); display: flex; align-items: center; justify-content: center; }
1828
1828
  .checkbox__icon--visible { color: var(--color-gray-0); }
1829
1829
  `;
1830
- let k = n5;
1831
- r1([
1830
+ let w = s5;
1831
+ d1([
1832
1832
  r({ type: Boolean })
1833
- ], k.prototype, "checked");
1834
- r1([
1833
+ ], w.prototype, "checked");
1834
+ d1([
1835
1835
  r({ type: Boolean })
1836
- ], k.prototype, "disabled");
1837
- r1([
1836
+ ], w.prototype, "disabled");
1837
+ d1([
1838
1838
  r({ type: Boolean })
1839
- ], k.prototype, "indeterminate");
1840
- r1([
1839
+ ], w.prototype, "indeterminate");
1840
+ d1([
1841
1841
  r({ type: Boolean })
1842
- ], k.prototype, "readonly");
1843
- r1([
1842
+ ], w.prototype, "readonly");
1843
+ d1([
1844
1844
  r()
1845
- ], k.prototype, "inputid");
1846
- customElements.get("anduin-checkbox") || customElements.define("anduin-checkbox", k);
1847
- var e4 = Object.defineProperty, w = (C, e, t, l) => {
1848
- for (var o = void 0, i = C.length - 1, n; i >= 0; i--)
1849
- (n = C[i]) && (o = n(e, t, o) || o);
1850
- return o && e4(e, t, o), o;
1845
+ ], w.prototype, "inputid");
1846
+ customElements.get("anduin-checkbox") || customElements.define("anduin-checkbox", w);
1847
+ var C4 = Object.defineProperty, $ = (C, e, o, l) => {
1848
+ for (var t = void 0, i = C.length - 1, n; i >= 0; i--)
1849
+ (n = C[i]) && (t = n(e, o, t) || t);
1850
+ return t && C4(e, o, t), t;
1851
1851
  };
1852
- const t4 = "anduin-input:change", r5 = class r5 extends c {
1852
+ const i4 = "anduin-input:change", d5 = class d5 extends c {
1853
1853
  constructor() {
1854
1854
  super(...arguments), this.value = "", this.size = "default", this.disabled = !1, this.readonly = !1, this.placeholder = "", this.inputid = "", this.status = "";
1855
1855
  }
1856
1856
  connectedCallback() {
1857
1857
  super.connectedCallback();
1858
1858
  const e = this.closest("anduin-field");
1859
- e && e.addEventListener(b1, (t) => {
1860
- var o;
1861
- const l = t;
1862
- this.inputid && this.inputid === l.detail && ((o = this.inputEl) == null || o.focus());
1859
+ e && e.addEventListener(M1, (o) => {
1860
+ var t;
1861
+ const l = o;
1862
+ this.inputid && this.inputid === l.detail && ((t = this.inputEl) == null || t.focus());
1863
1863
  });
1864
1864
  }
1865
1865
  updated() {
1866
1866
  this.inputEl && this.inputEl.value !== this.value && (this.inputEl.value = this.value);
1867
1867
  }
1868
1868
  onInput() {
1869
- this.value = this.inputEl.value, this.dispatchEvent(new CustomEvent(t4, {
1869
+ this.value = this.inputEl.value, this.dispatchEvent(new CustomEvent(i4, {
1870
1870
  detail: this.value,
1871
1871
  bubbles: !0,
1872
1872
  composed: !0
1873
1873
  }));
1874
1874
  }
1875
1875
  render() {
1876
- const e = this.size === "small" ? "input--small" : this.size === "large" ? "input--large" : "input--default", t = this.status ? `input--${this.status}` : "", l = this.querySelector('[slot="icon"]') !== null;
1876
+ const e = this.size === "small" ? "input--small" : this.size === "large" ? "input--large" : "input--default", o = this.status ? `input--${this.status}` : "", l = this.querySelector('[slot="icon"]') !== null;
1877
1877
  return d`
1878
1878
  <div class="input-container${l ? " input-container--has-icon" : ""}">
1879
1879
  <slot name="icon" class="input__icon"></slot>
1880
1880
  <input
1881
- class="input ${e} ${this.disabled ? "input--disabled" : ""} ${this.readonly ? "input--readonly" : ""} ${t}"
1881
+ class="input ${e} ${this.disabled ? "input--disabled" : ""} ${this.readonly ? "input--readonly" : ""} ${o}"
1882
1882
  type="text"
1883
1883
  ?disabled=${this.disabled}
1884
1884
  ?readonly=${this.readonly}
@@ -1891,7 +1891,7 @@ const t4 = "anduin-input:change", r5 = class r5 extends c {
1891
1891
  `;
1892
1892
  }
1893
1893
  };
1894
- r5.styles = h`
1894
+ d5.styles = h`
1895
1895
  :host { display: block; font-family: var(--font-sans); }
1896
1896
  .input-container { position: relative; display: flex; align-items: center; }
1897
1897
  .input-container--has-icon .input { padding-left: 32px; }
@@ -1914,55 +1914,55 @@ r5.styles = h`
1914
1914
  .input--warning { border-color: var(--color-warning-4); }
1915
1915
  .input--loading { border-color: var(--color-gray-4); }
1916
1916
  `;
1917
- let M = r5;
1918
- w([
1917
+ let M = d5;
1918
+ $([
1919
1919
  r()
1920
1920
  ], M.prototype, "value");
1921
- w([
1921
+ $([
1922
1922
  r()
1923
1923
  ], M.prototype, "size");
1924
- w([
1924
+ $([
1925
1925
  r({ type: Boolean })
1926
1926
  ], M.prototype, "disabled");
1927
- w([
1927
+ $([
1928
1928
  r({ type: Boolean })
1929
1929
  ], M.prototype, "readonly");
1930
- w([
1930
+ $([
1931
1931
  r()
1932
1932
  ], M.prototype, "placeholder");
1933
- w([
1933
+ $([
1934
1934
  r()
1935
1935
  ], M.prototype, "inputid");
1936
- w([
1936
+ $([
1937
1937
  r()
1938
1938
  ], M.prototype, "status");
1939
- w([
1940
- N1("input")
1939
+ $([
1940
+ j1("input")
1941
1941
  ], M.prototype, "inputEl");
1942
1942
  customElements.get("anduin-input") || customElements.define("anduin-input", M);
1943
- var o4 = Object.defineProperty, $ = (C, e, t, l) => {
1944
- for (var o = void 0, i = C.length - 1, n; i >= 0; i--)
1945
- (n = C[i]) && (o = n(e, t, o) || o);
1946
- return o && o4(e, t, o), o;
1943
+ var n4 = Object.defineProperty, E = (C, e, o, l) => {
1944
+ for (var t = void 0, i = C.length - 1, n; i >= 0; i--)
1945
+ (n = C[i]) && (t = n(e, o, t) || t);
1946
+ return t && n4(e, o, t), t;
1947
1947
  };
1948
- const l4 = "anduin-textarea:change", a5 = class a5 extends c {
1948
+ const r4 = "anduin-textarea:change", c5 = class c5 extends c {
1949
1949
  constructor() {
1950
1950
  super(...arguments), this.value = "", this.disabled = !1, this.readonly = !1, this.placeholder = "", this.inputid = "", this.rows = 3, this.status = "";
1951
1951
  }
1952
1952
  connectedCallback() {
1953
1953
  super.connectedCallback();
1954
1954
  const e = this.closest("anduin-field");
1955
- e && e.addEventListener(b1, (t) => {
1956
- var o;
1957
- const l = t;
1958
- this.inputid && this.inputid === l.detail && ((o = this.textareaEl) == null || o.focus());
1955
+ e && e.addEventListener(M1, (o) => {
1956
+ var t;
1957
+ const l = o;
1958
+ this.inputid && this.inputid === l.detail && ((t = this.textareaEl) == null || t.focus());
1959
1959
  });
1960
1960
  }
1961
1961
  updated() {
1962
1962
  this.textareaEl && this.textareaEl.value !== this.value && (this.textareaEl.value = this.value);
1963
1963
  }
1964
1964
  onInput() {
1965
- this.value = this.textareaEl.value, this.dispatchEvent(new CustomEvent(l4, {
1965
+ this.value = this.textareaEl.value, this.dispatchEvent(new CustomEvent(r4, {
1966
1966
  detail: this.value,
1967
1967
  bubbles: !0,
1968
1968
  composed: !0
@@ -1986,7 +1986,7 @@ const l4 = "anduin-textarea:change", a5 = class a5 extends c {
1986
1986
  `;
1987
1987
  }
1988
1988
  };
1989
- a5.styles = h`
1989
+ c5.styles = h`
1990
1990
  :host { display: block; font-family: var(--font-sans); }
1991
1991
  .textarea-container { position: relative; display: flex; align-items: stretch; }
1992
1992
  .textarea {
@@ -2004,46 +2004,46 @@ a5.styles = h`
2004
2004
  .textarea--warning { border-color: var(--color-warning-4); }
2005
2005
  .textarea--loading { border-color: var(--color-gray-4); }
2006
2006
  `;
2007
- let Z = a5;
2008
- $([
2007
+ let Z = c5;
2008
+ E([
2009
2009
  r()
2010
2010
  ], Z.prototype, "value");
2011
- $([
2011
+ E([
2012
2012
  r({ type: Boolean })
2013
2013
  ], Z.prototype, "disabled");
2014
- $([
2014
+ E([
2015
2015
  r({ type: Boolean })
2016
2016
  ], Z.prototype, "readonly");
2017
- $([
2017
+ E([
2018
2018
  r()
2019
2019
  ], Z.prototype, "placeholder");
2020
- $([
2020
+ E([
2021
2021
  r()
2022
2022
  ], Z.prototype, "inputid");
2023
- $([
2023
+ E([
2024
2024
  r({ type: Number })
2025
2025
  ], Z.prototype, "rows");
2026
- $([
2026
+ E([
2027
2027
  r()
2028
2028
  ], Z.prototype, "status");
2029
- $([
2030
- N1("textarea")
2029
+ E([
2030
+ j1("textarea")
2031
2031
  ], Z.prototype, "textareaEl");
2032
2032
  customElements.get("anduin-textarea") || customElements.define("anduin-textarea", Z);
2033
- var C4 = Object.defineProperty, b = (C, e, t, l) => {
2034
- for (var o = void 0, i = C.length - 1, n; i >= 0; i--)
2035
- (n = C[i]) && (o = n(e, t, o) || o);
2036
- return o && C4(e, t, o), o;
2033
+ var a4 = Object.defineProperty, b = (C, e, o, l) => {
2034
+ for (var t = void 0, i = C.length - 1, n; i >= 0; i--)
2035
+ (n = C[i]) && (t = n(e, o, t) || t);
2036
+ return t && a4(e, o, t), t;
2037
2037
  };
2038
- const t2 = "anduin-tab:trigger-click", m1 = "anduin-tab:value-changed", i4 = "anduin-tab:change", s5 = class s5 extends c {
2038
+ const i2 = "anduin-tab:trigger-click", Z1 = "anduin-tab:value-changed", s4 = "anduin-tab:change", u5 = class u5 extends c {
2039
2039
  constructor() {
2040
2040
  super(...arguments), this.defaultValue = "", this.value = "", this.fill = !1;
2041
2041
  }
2042
2042
  connectedCallback() {
2043
- super.connectedCallback(), this.addEventListener(t2, (e) => {
2043
+ super.connectedCallback(), this.addEventListener(i2, (e) => {
2044
2044
  e.stopPropagation();
2045
- const t = e;
2046
- this.value = t.detail, this.broadcastValueChanged(t.detail), this.dispatchEvent(new CustomEvent(i4, { detail: t.detail, bubbles: !0, composed: !0 }));
2045
+ const o = e;
2046
+ this.value = o.detail, this.broadcastValueChanged(o.detail), this.dispatchEvent(new CustomEvent(s4, { detail: o.detail, bubbles: !0, composed: !0 }));
2047
2047
  }), requestAnimationFrame(() => {
2048
2048
  const e = this.value || this.defaultValue;
2049
2049
  e && (this.value || (this.value = e), this.broadcastValueChanged(e));
@@ -2053,37 +2053,37 @@ const t2 = "anduin-tab:trigger-click", m1 = "anduin-tab:value-changed", i4 = "an
2053
2053
  e.has("value") && this.value && this.broadcastValueChanged(this.value);
2054
2054
  }
2055
2055
  broadcastValueChanged(e) {
2056
- this.dispatchEvent(new CustomEvent(m1, { detail: e, bubbles: !1, composed: !1 }));
2056
+ this.dispatchEvent(new CustomEvent(Z1, { detail: e, bubbles: !1, composed: !1 }));
2057
2057
  }
2058
2058
  render() {
2059
2059
  return d`<div class="tabs" part="tabs"><slot></slot></div>`;
2060
2060
  }
2061
2061
  };
2062
- s5.styles = h`
2062
+ u5.styles = h`
2063
2063
  :host { display: flex; flex-direction: column; font-family: var(--font-sans); }
2064
2064
  :host([fill]) { flex: 1; min-height: 0; --_tab-fill-flex: 1; --_tab-fill-height: 100%; }
2065
2065
  .tabs { display: flex; flex-direction: column; width: 100%; }
2066
2066
  :host([fill]) .tabs { flex: 1; min-height: 0; }
2067
2067
  `;
2068
- let I = s5;
2068
+ let T = u5;
2069
2069
  b([
2070
2070
  r({ attribute: "default-value" })
2071
- ], I.prototype, "defaultValue");
2071
+ ], T.prototype, "defaultValue");
2072
2072
  b([
2073
2073
  r()
2074
- ], I.prototype, "value");
2074
+ ], T.prototype, "value");
2075
2075
  b([
2076
2076
  r({ type: Boolean, reflect: !0 })
2077
- ], I.prototype, "fill");
2078
- const d5 = class d5 extends c {
2077
+ ], T.prototype, "fill");
2078
+ const p5 = class p5 extends c {
2079
2079
  constructor() {
2080
2080
  super(...arguments), this.alignment = "left", this.lastActiveValue = "", this.resizeObserver = null;
2081
2081
  }
2082
2082
  connectedCallback() {
2083
2083
  super.connectedCallback();
2084
2084
  const e = this.closest("anduin-tabs");
2085
- e && e.addEventListener(m1, (t) => {
2086
- const l = t;
2085
+ e && e.addEventListener(Z1, (o) => {
2086
+ const l = o;
2087
2087
  this.lastActiveValue = l.detail, requestAnimationFrame(() => {
2088
2088
  this.animateIndicator(l.detail);
2089
2089
  });
@@ -2099,11 +2099,11 @@ const d5 = class d5 extends c {
2099
2099
  super.disconnectedCallback(), (e = this.resizeObserver) == null || e.disconnect(), this.resizeObserver = null;
2100
2100
  }
2101
2101
  animateIndicator(e) {
2102
- const t = this.querySelectorAll(":scope > anduin-tab-trigger");
2103
- for (let l = 0; l < t.length; l++) {
2104
- const o = t[l];
2105
- if (o.getAttribute("value") === e) {
2106
- const i = o.getBoundingClientRect(), n = this.getBoundingClientRect(), a = i.left - n.left + this.scrollLeft;
2102
+ const o = this.querySelectorAll(":scope > anduin-tab-trigger");
2103
+ for (let l = 0; l < o.length; l++) {
2104
+ const t = o[l];
2105
+ if (t.getAttribute("value") === e) {
2106
+ const i = t.getBoundingClientRect(), n = this.getBoundingClientRect(), a = i.left - n.left + this.scrollLeft;
2107
2107
  this.indicator && (this.indicator.style.width = `${i.width}px`, this.indicator.style.transform = `translateX(${a}px)`);
2108
2108
  break;
2109
2109
  }
@@ -2118,7 +2118,7 @@ const d5 = class d5 extends c {
2118
2118
  `;
2119
2119
  }
2120
2120
  };
2121
- d5.styles = h`
2121
+ p5.styles = h`
2122
2122
  :host { display: block; font-family: var(--font-sans); }
2123
2123
  .tabs-list {
2124
2124
  display: flex; background-color: var(--color-gray-0);
@@ -2133,27 +2133,27 @@ d5.styles = h`
2133
2133
  left: 0; height: 2px; transition-duration: 200ms; transition-property: transform, width;
2134
2134
  }
2135
2135
  `;
2136
- let t1 = d5;
2136
+ let l1 = p5;
2137
2137
  b([
2138
2138
  r()
2139
- ], t1.prototype, "alignment");
2139
+ ], l1.prototype, "alignment");
2140
2140
  b([
2141
- N1(".tabs-list__indicator")
2142
- ], t1.prototype, "indicator");
2143
- const c5 = class c5 extends c {
2141
+ j1(".tabs-list__indicator")
2142
+ ], l1.prototype, "indicator");
2143
+ const h5 = class h5 extends c {
2144
2144
  constructor() {
2145
2145
  super(...arguments), this.value = "", this.startIcon = "", this.disabled = !1, this.showBadge = !1, this.badgeCount = "", this.isActive = !1;
2146
2146
  }
2147
2147
  connectedCallback() {
2148
2148
  super.connectedCallback();
2149
2149
  const e = this.closest("anduin-tabs");
2150
- e && e.addEventListener(m1, (t) => {
2151
- const l = t;
2150
+ e && e.addEventListener(Z1, (o) => {
2151
+ const l = o;
2152
2152
  this.isActive = l.detail === this.value;
2153
2153
  });
2154
2154
  }
2155
2155
  onClick() {
2156
- this.dispatchEvent(new CustomEvent(t2, { detail: this.value, bubbles: !0, composed: !0 }));
2156
+ this.dispatchEvent(new CustomEvent(i2, { detail: this.value, bubbles: !0, composed: !0 }));
2157
2157
  }
2158
2158
  render() {
2159
2159
  return d`
@@ -2166,15 +2166,15 @@ const c5 = class c5 extends c {
2166
2166
  @click=${this.onClick}
2167
2167
  >
2168
2168
  <div class="tab-trigger__content">
2169
- ${this.startIcon ? d`<anduin-icon name="${this.startIcon}" size="16"></anduin-icon>` : p}
2169
+ ${this.startIcon ? d`<anduin-icon name="${this.startIcon}" size="16"></anduin-icon>` : u}
2170
2170
  <slot></slot>
2171
- ${this.showBadge ? d`<span class="tab-trigger__badge">${this.badgeCount}</span>` : p}
2171
+ ${this.showBadge ? d`<span class="tab-trigger__badge">${this.badgeCount}</span>` : u}
2172
2172
  </div>
2173
2173
  </button>
2174
2174
  `;
2175
2175
  }
2176
2176
  };
2177
- c5.styles = h`
2177
+ h5.styles = h`
2178
2178
  :host { display: inline-block; font-family: var(--font-sans); }
2179
2179
  .tab-trigger {
2180
2180
  cursor: pointer; background: none; border: none; display: block;
@@ -2197,7 +2197,7 @@ c5.styles = h`
2197
2197
  color: var(--color-gray-7); white-space: nowrap;
2198
2198
  }
2199
2199
  `;
2200
- let R = c5;
2200
+ let R = h5;
2201
2201
  b([
2202
2202
  r()
2203
2203
  ], R.prototype, "value");
@@ -2214,17 +2214,17 @@ b([
2214
2214
  r({ attribute: "badge-count" })
2215
2215
  ], R.prototype, "badgeCount");
2216
2216
  b([
2217
- H1()
2217
+ s1()
2218
2218
  ], R.prototype, "isActive");
2219
- const u5 = class u5 extends c {
2219
+ const v5 = class v5 extends c {
2220
2220
  constructor() {
2221
2221
  super(...arguments), this.value = "", this.isActive = !1;
2222
2222
  }
2223
2223
  connectedCallback() {
2224
2224
  super.connectedCallback();
2225
2225
  const e = this.closest("anduin-tabs");
2226
- e && e.addEventListener(m1, (t) => {
2227
- const l = t;
2226
+ e && e.addEventListener(Z1, (o) => {
2227
+ const l = o;
2228
2228
  this.isActive = l.detail === this.value;
2229
2229
  });
2230
2230
  }
@@ -2239,28 +2239,28 @@ const u5 = class u5 extends c {
2239
2239
  `;
2240
2240
  }
2241
2241
  };
2242
- u5.styles = h`
2242
+ v5.styles = h`
2243
2243
  :host { display: block; font-family: var(--font-sans); flex: var(--_tab-fill-flex, 0 0 auto); min-height: 0; }
2244
2244
  :host(:not([active])) { display: none; }
2245
2245
  .tab-content { width: 100%; height: var(--_tab-fill-height, auto); overflow-x: hidden; overflow-y: auto; }
2246
2246
  `;
2247
- let o1 = u5;
2247
+ let C1 = v5;
2248
2248
  b([
2249
2249
  r()
2250
- ], o1.prototype, "value");
2250
+ ], C1.prototype, "value");
2251
2251
  b([
2252
- H1()
2253
- ], o1.prototype, "isActive");
2254
- customElements.get("anduin-tabs") || customElements.define("anduin-tabs", I);
2255
- customElements.get("anduin-tabs-list") || customElements.define("anduin-tabs-list", t1);
2252
+ s1()
2253
+ ], C1.prototype, "isActive");
2254
+ customElements.get("anduin-tabs") || customElements.define("anduin-tabs", T);
2255
+ customElements.get("anduin-tabs-list") || customElements.define("anduin-tabs-list", l1);
2256
2256
  customElements.get("anduin-tab-trigger") || customElements.define("anduin-tab-trigger", R);
2257
- customElements.get("anduin-tab-content") || customElements.define("anduin-tab-content", o1);
2258
- var n4 = Object.defineProperty, U1 = (C, e, t, l) => {
2259
- for (var o = void 0, i = C.length - 1, n; i >= 0; i--)
2260
- (n = C[i]) && (o = n(e, t, o) || o);
2261
- return o && n4(e, t, o), o;
2257
+ customElements.get("anduin-tab-content") || customElements.define("anduin-tab-content", C1);
2258
+ var d4 = Object.defineProperty, q1 = (C, e, o, l) => {
2259
+ for (var t = void 0, i = C.length - 1, n; i >= 0; i--)
2260
+ (n = C[i]) && (t = n(e, o, t) || t);
2261
+ return t && d4(e, o, t), t;
2262
2262
  };
2263
- const r4 = "anduin-tag-close:click", a4 = {
2263
+ const c4 = "anduin-tag-close:click", u4 = {
2264
2264
  gray: "tag--light-gray",
2265
2265
  primary: "tag--light-primary",
2266
2266
  success: "tag--light-success",
@@ -2285,7 +2285,7 @@ const r4 = "anduin-tag-close:click", a4 = {
2285
2285
  customYellow: "tag--custom-yellow",
2286
2286
  customYellowGreen: "tag--custom-yellow-green",
2287
2287
  customYellowOrange: "tag--custom-yellow-orange"
2288
- }, s4 = {
2288
+ }, p4 = {
2289
2289
  gray: "tag__icon--light-gray",
2290
2290
  primary: "tag__icon--light-primary",
2291
2291
  success: "tag__icon--light-success",
@@ -2310,22 +2310,22 @@ const r4 = "anduin-tag-close:click", a4 = {
2310
2310
  customMagenta: "tag__icon--custom-magenta",
2311
2311
  customBlueGreen: "tag__icon--custom-blue-green",
2312
2312
  customPink: "tag__icon--custom-pink"
2313
- }, p5 = class p5 extends c {
2313
+ }, g5 = class g5 extends c {
2314
2314
  constructor() {
2315
2315
  super(...arguments), this.variant = "gray", this.icon = "", this.disabled = !1;
2316
2316
  }
2317
2317
  render() {
2318
- const e = a4[this.variant] || "tag--light-gray", t = s4[this.variant] || "tag__icon--light-gray";
2318
+ const e = u4[this.variant] || "tag--light-gray", o = p4[this.variant] || "tag__icon--light-gray";
2319
2319
  return d`
2320
2320
  <div class="tag ${e} ${this.disabled ? "tag--disabled" : ""}" part="tag">
2321
- ${this.icon ? d`<anduin-icon name="${this.icon}" size="12" class="tag__icon ${t}"></anduin-icon>` : p}
2321
+ ${this.icon ? d`<anduin-icon name="${this.icon}" size="12" class="tag__icon ${o}"></anduin-icon>` : u}
2322
2322
  <div class="tag__label"><slot></slot></div>
2323
2323
  <slot name="closeButton" class="tag__close"></slot>
2324
2324
  </div>
2325
2325
  `;
2326
2326
  }
2327
2327
  };
2328
- p5.styles = h`
2328
+ g5.styles = h`
2329
2329
  :host { display: inline-flex; max-width: 100%; font-family: var(--font-sans); }
2330
2330
  .tag {
2331
2331
  font-weight: 500; font-size: 11px; height: 20px; padding-left: 6px; padding-right: 6px;
@@ -2373,19 +2373,19 @@ p5.styles = h`
2373
2373
  .tag--custom-yellow-green { color: var(--color-gray-9); background-color: rgb(174,207,85); }
2374
2374
  .tag--custom-yellow-orange { color: var(--color-gray-9); background-color: rgb(255,193,107); }
2375
2375
  `;
2376
- let N = p5;
2377
- U1([
2376
+ let N = g5;
2377
+ q1([
2378
2378
  r()
2379
2379
  ], N.prototype, "variant");
2380
- U1([
2380
+ q1([
2381
2381
  r()
2382
2382
  ], N.prototype, "icon");
2383
- U1([
2383
+ q1([
2384
2384
  r({ type: Boolean })
2385
2385
  ], N.prototype, "disabled");
2386
- const h5 = class h5 extends c {
2386
+ const L5 = class L5 extends c {
2387
2387
  onClick() {
2388
- this.dispatchEvent(new CustomEvent(r4, { bubbles: !0, composed: !0 }));
2388
+ this.dispatchEvent(new CustomEvent(c4, { bubbles: !0, composed: !0 }));
2389
2389
  }
2390
2390
  render() {
2391
2391
  return d`
@@ -2395,7 +2395,7 @@ const h5 = class h5 extends c {
2395
2395
  `;
2396
2396
  }
2397
2397
  };
2398
- h5.styles = h`
2398
+ L5.styles = h`
2399
2399
  :host { display: inline-block; font-family: var(--font-sans); }
2400
2400
  .tag-close__button {
2401
2401
  flex: none; width: 16px; height: 16px; display: flex; align-items: center;
@@ -2405,15 +2405,15 @@ h5.styles = h`
2405
2405
  .tag-close__button:hover { opacity: 0.7; }
2406
2406
  .tag-close__button:active { opacity: 0.5; }
2407
2407
  `;
2408
- let w1 = h5;
2408
+ let A1 = L5;
2409
2409
  customElements.get("anduin-tag") || customElements.define("anduin-tag", N);
2410
- customElements.get("anduin-tag-close") || customElements.define("anduin-tag-close", w1);
2411
- var d4 = Object.defineProperty, o2 = (C, e, t, l) => {
2412
- for (var o = void 0, i = C.length - 1, n; i >= 0; i--)
2413
- (n = C[i]) && (o = n(e, t, o) || o);
2414
- return o && d4(e, t, o), o;
2410
+ customElements.get("anduin-tag-close") || customElements.define("anduin-tag-close", A1);
2411
+ var h4 = Object.defineProperty, n2 = (C, e, o, l) => {
2412
+ for (var t = void 0, i = C.length - 1, n; i >= 0; i--)
2413
+ (n = C[i]) && (t = n(e, o, t) || t);
2414
+ return t && h4(e, o, t), t;
2415
2415
  };
2416
- const l2 = "anduin-tooltip:show", j1 = "anduin-tooltip:hide", C2 = "anduin-tooltip:trigger-mounted", i2 = "anduin-tooltip:content-popup-mounted", n2 = "anduin-tooltip:content-popup-unmounted", r2 = "anduin-tooltip:visibility-changed", c4 = [
2416
+ const r2 = "anduin-tooltip:show", G1 = "anduin-tooltip:hide", a2 = "anduin-tooltip:trigger-mounted", s2 = "anduin-tooltip:content-popup-mounted", d2 = "anduin-tooltip:content-popup-unmounted", c2 = "anduin-tooltip:visibility-changed", v4 = [
2417
2417
  "top-start",
2418
2418
  "top-center",
2419
2419
  "top-end",
@@ -2427,94 +2427,94 @@ const l2 = "anduin-tooltip:show", j1 = "anduin-tooltip:hide", C2 = "anduin-toolt
2427
2427
  "left-center",
2428
2428
  "left-end"
2429
2429
  ];
2430
- function O5(C, e, t, l, o) {
2430
+ function T5(C, e, o, l, t) {
2431
2431
  switch (l) {
2432
2432
  case "top-start":
2433
- return { left: C.left, top: C.top - t - o };
2433
+ return { left: C.left, top: C.top - o - t };
2434
2434
  case "top-center":
2435
- return { left: C.left + C.width / 2 - e / 2, top: C.top - t - o };
2435
+ return { left: C.left + C.width / 2 - e / 2, top: C.top - o - t };
2436
2436
  case "top-end":
2437
- return { left: C.left + C.width - e, top: C.top - t - o };
2437
+ return { left: C.left + C.width - e, top: C.top - o - t };
2438
2438
  case "right-start":
2439
- return { left: C.right + o, top: C.top };
2439
+ return { left: C.right + t, top: C.top };
2440
2440
  case "right-center":
2441
- return { left: C.right + o, top: C.top + C.height / 2 - t / 2 };
2441
+ return { left: C.right + t, top: C.top + C.height / 2 - o / 2 };
2442
2442
  case "right-end":
2443
- return { left: C.right + o, top: C.top + C.height - t };
2443
+ return { left: C.right + t, top: C.top + C.height - o };
2444
2444
  case "bottom-start":
2445
- return { left: C.left, top: C.bottom + o };
2445
+ return { left: C.left, top: C.bottom + t };
2446
2446
  case "bottom-center":
2447
- return { left: C.left + C.width / 2 - e / 2, top: C.bottom + o };
2447
+ return { left: C.left + C.width / 2 - e / 2, top: C.bottom + t };
2448
2448
  case "bottom-end":
2449
- return { left: C.left + C.width - e, top: C.bottom + o };
2449
+ return { left: C.left + C.width - e, top: C.bottom + t };
2450
2450
  case "left-start":
2451
- return { left: C.left - e - o, top: C.top };
2451
+ return { left: C.left - e - t, top: C.top };
2452
2452
  case "left-center":
2453
- return { left: C.left - e - o, top: C.top + C.height / 2 - t / 2 };
2453
+ return { left: C.left - e - t, top: C.top + C.height / 2 - o / 2 };
2454
2454
  case "left-end":
2455
- return { left: C.left - e - o, top: C.top + C.height - t };
2455
+ return { left: C.left - e - t, top: C.top + C.height - o };
2456
2456
  default:
2457
2457
  return { left: 0, top: 0 };
2458
2458
  }
2459
2459
  }
2460
- function B5(C, e) {
2460
+ function N5(C, e) {
2461
2461
  return e.right >= C.left && e.left <= C.right && e.top <= C.bottom && e.bottom >= C.top;
2462
2462
  }
2463
- function I5(C, e) {
2464
- const t = Math.max(C.left, e.left), l = Math.max(C.top, e.top), o = Math.min(C.right, e.right), i = Math.min(C.bottom, e.bottom);
2465
- return o < t || i < l ? 0 : (o - t) * (i - l);
2463
+ function U5(C, e) {
2464
+ const o = Math.max(C.left, e.left), l = Math.max(C.top, e.top), t = Math.min(C.right, e.right), i = Math.min(C.bottom, e.bottom);
2465
+ return t < o || i < l ? 0 : (t - o) * (i - l);
2466
2466
  }
2467
- function u4(C, e, t, l = 8) {
2468
- const o = window.innerWidth, i = window.innerHeight, n = { left: 0, top: 0, right: o, bottom: i }, a = e.width, s = e.height;
2469
- if (!B5(
2467
+ function g4(C, e, o, l = 8) {
2468
+ const t = window.innerWidth, i = window.innerHeight, n = { left: 0, top: 0, right: t, bottom: i }, a = e.width, s = e.height;
2469
+ if (!N5(
2470
2470
  { left: C.left, top: C.top, right: C.right, bottom: C.bottom },
2471
2471
  n
2472
2472
  )) return null;
2473
- const u = O5(C, a, s, t, l), L = c4.map((g) => ({ p: g, off: O5(C, a, s, g, l) })).filter(({ off: g }) => B5({ left: g.left, top: g.top, right: g.left + a, bottom: g.top + s }, n));
2474
- if (L.length === 0)
2473
+ const p = T5(C, a, s, o, l), g = v4.map((L) => ({ p: L, off: T5(C, a, s, L, l) })).filter(({ off: L }) => N5({ left: L.left, top: L.top, right: L.left + a, bottom: L.top + s }, n));
2474
+ if (g.length === 0)
2475
2475
  return {
2476
- placement: t,
2477
- left: Math.round(Math.min(Math.max(u.left, 0), o - a)),
2478
- top: Math.round(Math.min(Math.max(u.top, 0), i - s))
2476
+ placement: o,
2477
+ left: Math.round(Math.min(Math.max(p.left, 0), t - a)),
2478
+ top: Math.round(Math.min(Math.max(p.top, 0), i - s))
2479
2479
  };
2480
- L.sort((g, V) => {
2481
- const s2 = { left: g.off.left, top: g.off.top, right: g.off.left + a, bottom: g.off.top + s }, d2 = { left: V.off.left, top: V.off.top, right: V.off.left + a, bottom: V.off.top + s }, M5 = I5(s2, n), Z5 = I5(d2, n);
2482
- if (Z5 !== M5) return Z5 - M5;
2483
- const c2 = Math.abs(g.off.left - u.left) + Math.abs(g.off.top - u.top), u2 = Math.abs(V.off.left - u.left) + Math.abs(V.off.top - u.top);
2484
- return c2 - u2;
2480
+ g.sort((L, V) => {
2481
+ const p2 = { left: L.off.left, top: L.off.top, right: L.off.left + a, bottom: L.off.top + s }, h2 = { left: V.off.left, top: V.off.top, right: V.off.left + a, bottom: V.off.top + s }, R5 = U5(p2, n), _5 = U5(h2, n);
2482
+ if (_5 !== R5) return _5 - R5;
2483
+ const v2 = Math.abs(L.off.left - p.left) + Math.abs(L.off.top - p.top), g2 = Math.abs(V.off.left - p.left) + Math.abs(V.off.top - p.top);
2484
+ return v2 - g2;
2485
2485
  });
2486
- const { p: v, off: m } = L[0];
2486
+ const { p: v, off: m } = g[0];
2487
2487
  return {
2488
2488
  placement: v,
2489
- left: Math.round(Math.min(Math.max(m.left, 0), o - a)),
2489
+ left: Math.round(Math.min(Math.max(m.left, 0), t - a)),
2490
2490
  top: Math.round(Math.min(Math.max(m.top, 0), i - s))
2491
2491
  };
2492
2492
  }
2493
- function $1(C) {
2493
+ function P1(C) {
2494
2494
  return C.split("-")[0] || "top";
2495
2495
  }
2496
- function p4(C, e, t) {
2497
- let l = !1, o = t.length - 1;
2498
- for (let i = 0; i < t.length; i++) {
2499
- const n = t[i][0], a = t[i][1], s = t[o][0], u = t[o][1];
2500
- a > e != u > e && C < (s - n) * (e - a) / (u - a) + n && (l = !l), o = i;
2496
+ function L4(C, e, o) {
2497
+ let l = !1, t = o.length - 1;
2498
+ for (let i = 0; i < o.length; i++) {
2499
+ const n = o[i][0], a = o[i][1], s = o[t][0], p = o[t][1];
2500
+ a > e != p > e && C < (s - n) * (e - a) / (p - a) + n && (l = !l), t = i;
2501
2501
  }
2502
2502
  return l;
2503
2503
  }
2504
- const v5 = class v5 extends c {
2504
+ const f5 = class f5 extends c {
2505
2505
  constructor() {
2506
2506
  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;
2507
2507
  }
2508
2508
  connectedCallback() {
2509
- super.connectedCallback(), this.addEventListener(C2, (e) => {
2509
+ super.connectedCallback(), this.addEventListener(a2, (e) => {
2510
2510
  e.stopPropagation(), this.triggerElement = e.detail, this.maybeStartPositionLoop();
2511
- }), this.addEventListener(i2, (e) => {
2511
+ }), this.addEventListener(s2, (e) => {
2512
2512
  e.stopPropagation(), this.contentPopupElement = e.detail, this.computeContainingBlockOffset(this.contentPopupElement), this.maybeStartPositionLoop();
2513
- }), this.addEventListener(n2, (e) => {
2513
+ }), this.addEventListener(d2, (e) => {
2514
2514
  e.stopPropagation(), this.stopPositionLoop(), this.contentPopupElement = null;
2515
- }), this.addEventListener(l2, (e) => {
2515
+ }), this.addEventListener(r2, (e) => {
2516
2516
  e.stopPropagation(), !this.disabled && (this.isVisible = !0, this.broadcastVisibilityChanged(`show:${this.placement}`));
2517
- }), this.addEventListener(j1, (e) => {
2517
+ }), this.addEventListener(G1, (e) => {
2518
2518
  e.stopPropagation(), this.isVisible = !1, this.stopPositionLoop(), this.broadcastVisibilityChanged("hide");
2519
2519
  });
2520
2520
  }
@@ -2529,77 +2529,77 @@ const v5 = class v5 extends c {
2529
2529
  }
2530
2530
  startPositionLoop() {
2531
2531
  this.stopPositionLoop(), this.prevTriggerTop = NaN, this.prevTriggerLeft = NaN;
2532
- const e = this.triggerElement, t = this.contentPopupElement, l = this.placement, o = () => {
2532
+ const e = this.triggerElement, o = this.contentPopupElement, l = this.placement, t = () => {
2533
2533
  const i = e.getBoundingClientRect();
2534
- (i.top !== this.prevTriggerTop || i.left !== this.prevTriggerLeft) && (this.prevTriggerTop = i.top, this.prevTriggerLeft = i.left, this.positionPopup(t, e, l)), this.rafId = requestAnimationFrame(o);
2534
+ (i.top !== this.prevTriggerTop || i.left !== this.prevTriggerLeft) && (this.prevTriggerTop = i.top, this.prevTriggerLeft = i.left, this.positionPopup(o, e, l)), this.rafId = requestAnimationFrame(t);
2535
2535
  };
2536
- this.rafId = requestAnimationFrame(o);
2536
+ this.rafId = requestAnimationFrame(t);
2537
2537
  }
2538
2538
  stopPositionLoop() {
2539
2539
  this.rafId && (cancelAnimationFrame(this.rafId), this.rafId = 0), this.prevTriggerTop = NaN, this.prevTriggerLeft = NaN;
2540
2540
  }
2541
2541
  computeContainingBlockOffset(e) {
2542
- const t = e, l = t.style.transform;
2543
- t.style.transform = "none";
2544
- const o = e.getBoundingClientRect();
2545
- this.containingBlockLeft = o.left, this.containingBlockTop = o.top, t.style.transform = l;
2542
+ const o = e, l = o.style.transform;
2543
+ o.style.transform = "none";
2544
+ const t = e.getBoundingClientRect();
2545
+ this.containingBlockLeft = t.left, this.containingBlockTop = t.top, o.style.transform = l;
2546
2546
  }
2547
- positionPopup(e, t, l) {
2548
- const o = t.getBoundingClientRect(), i = e.getBoundingClientRect(), n = u4(o, i, l, 8);
2547
+ positionPopup(e, o, l) {
2548
+ const t = o.getBoundingClientRect(), i = e.getBoundingClientRect(), n = g4(t, i, l, 8);
2549
2549
  if (n) {
2550
2550
  const a = e;
2551
2551
  a.style.transform = `translate(${n.left - this.containingBlockLeft}px, ${n.top - this.containingBlockTop}px)`;
2552
- const s = $1(n.placement), u = $1(l);
2553
- if (s !== u) {
2554
- const L = e.querySelector(".tooltip-arrow");
2555
- L && (L.classList.remove(`tooltip-arrow--${u}`), L.classList.add(`tooltip-arrow--${s}`));
2552
+ const s = P1(n.placement), p = P1(l);
2553
+ if (s !== p) {
2554
+ const g = e.querySelector(".tooltip-arrow");
2555
+ g && (g.classList.remove(`tooltip-arrow--${p}`), g.classList.add(`tooltip-arrow--${s}`));
2556
2556
  }
2557
2557
  }
2558
2558
  }
2559
2559
  broadcastVisibilityChanged(e) {
2560
- this.dispatchEvent(new CustomEvent(r2, { detail: e, bubbles: !1, composed: !1 }));
2560
+ this.dispatchEvent(new CustomEvent(c2, { detail: e, bubbles: !1, composed: !1 }));
2561
2561
  }
2562
2562
  render() {
2563
2563
  return d`<div class="tooltip-root" part="tooltip"><slot></slot></div>`;
2564
2564
  }
2565
2565
  };
2566
- v5.styles = h`
2566
+ f5.styles = h`
2567
2567
  :host { display: inline-block; position: relative; max-width: 100%; font-family: var(--font-sans); }
2568
2568
  .tooltip-root { display: inline-block; position: relative; max-width: 100%; }
2569
2569
  `;
2570
- let l1 = v5;
2571
- o2([
2570
+ let i1 = f5;
2571
+ n2([
2572
2572
  r({ type: Boolean })
2573
- ], l1.prototype, "disabled");
2574
- o2([
2573
+ ], i1.prototype, "disabled");
2574
+ n2([
2575
2575
  r()
2576
- ], l1.prototype, "placement");
2577
- const L5 = class L5 extends c {
2576
+ ], i1.prototype, "placement");
2577
+ const H5 = class H5 extends c {
2578
2578
  firstUpdated() {
2579
2579
  requestAnimationFrame(() => {
2580
- this.dispatchEvent(new CustomEvent(C2, { detail: this, bubbles: !0, composed: !0 }));
2580
+ this.dispatchEvent(new CustomEvent(a2, { detail: this, bubbles: !0, composed: !0 }));
2581
2581
  }), this.addEventListener("pointerenter", () => {
2582
- this.dispatchEvent(new CustomEvent(l2, { bubbles: !0, composed: !0 }));
2582
+ this.dispatchEvent(new CustomEvent(r2, { bubbles: !0, composed: !0 }));
2583
2583
  }), this.addEventListener("click", () => {
2584
- this.dispatchEvent(new CustomEvent(j1, { bubbles: !0, composed: !0 }));
2584
+ this.dispatchEvent(new CustomEvent(G1, { bubbles: !0, composed: !0 }));
2585
2585
  });
2586
2586
  }
2587
2587
  render() {
2588
2588
  return d`<span class="tooltip-trigger" part="tooltip-trigger"><slot></slot></span>`;
2589
2589
  }
2590
2590
  };
2591
- L5.styles = h`
2591
+ H5.styles = h`
2592
2592
  :host { display: inline-block; max-width: 100%; font-family: var(--font-sans); }
2593
2593
  .tooltip-trigger { display: flex; align-items: center; max-width: 100%; }
2594
2594
  `;
2595
- let E1 = L5;
2596
- const g5 = class g5 extends c {
2595
+ let z1 = H5;
2596
+ const b5 = class b5 extends c {
2597
2597
  constructor() {
2598
2598
  super(...arguments), this.graceArea = null, this.triggerEl = null, this.popupEl = null, this.handlePointerMove = (e) => {
2599
2599
  var i, n;
2600
2600
  if (!this.graceArea) return;
2601
- const t = e.target, l = ((i = this.triggerEl) == null ? void 0 : i.contains(t)) ?? !1, o = ((n = this.popupEl) == null ? void 0 : n.contains(t)) ?? !1;
2602
- l || o ? this.graceArea = null : p4(e.clientX, e.clientY, this.graceArea) || (this.graceArea = null, this.dispatchEvent(new CustomEvent(j1, { bubbles: !0, composed: !0 })));
2601
+ const o = e.target, l = ((i = this.triggerEl) == null ? void 0 : i.contains(o)) ?? !1, t = ((n = this.popupEl) == null ? void 0 : n.contains(o)) ?? !1;
2602
+ l || t ? this.graceArea = null : L4(e.clientX, e.clientY, this.graceArea) || (this.graceArea = null, this.dispatchEvent(new CustomEvent(G1, { bubbles: !0, composed: !0 })));
2603
2603
  }, this.handleTriggerLeave = (e) => {
2604
2604
  this.triggerEl && this.popupEl && this.createGraceArea(this.triggerEl, this.popupEl, e);
2605
2605
  }, this.handleContentLeave = (e) => {
@@ -2609,38 +2609,38 @@ const g5 = class g5 extends c {
2609
2609
  connectedCallback() {
2610
2610
  super.connectedCallback();
2611
2611
  const e = this.closest("anduin-tooltip");
2612
- e && e.addEventListener(r2, (t) => {
2613
- const l = t.detail;
2612
+ e && e.addEventListener(c2, (o) => {
2613
+ const l = o.detail;
2614
2614
  l.startsWith("show:") ? this.showPopup(l.slice(5)) : this.hidePopup();
2615
2615
  });
2616
2616
  }
2617
2617
  disconnectedCallback() {
2618
2618
  super.disconnectedCallback(), this.hidePopup();
2619
2619
  }
2620
- createGraceArea(e, t, l) {
2621
- const o = t.getBoundingClientRect(), i = l.clientX, n = l.clientY;
2620
+ createGraceArea(e, o, l) {
2621
+ const t = o.getBoundingClientRect(), i = l.clientX, n = l.clientY;
2622
2622
  this.graceArea = [
2623
2623
  [i, n],
2624
- [o.left, o.top],
2625
- [o.right, o.top],
2626
- [o.right, o.bottom],
2627
- [o.left, o.bottom]
2624
+ [t.left, t.top],
2625
+ [t.right, t.top],
2626
+ [t.right, t.bottom],
2627
+ [t.left, t.bottom]
2628
2628
  ];
2629
2629
  }
2630
- setupGraceAreaListeners(e, t) {
2631
- this.cleanupGraceAreaListeners(), this.triggerEl = e, this.popupEl = t, e.addEventListener("pointerleave", this.handleTriggerLeave), t.addEventListener("pointerleave", this.handleContentLeave), document.addEventListener("pointermove", this.handlePointerMove);
2630
+ setupGraceAreaListeners(e, o) {
2631
+ this.cleanupGraceAreaListeners(), this.triggerEl = e, this.popupEl = o, e.addEventListener("pointerleave", this.handleTriggerLeave), o.addEventListener("pointerleave", this.handleContentLeave), document.addEventListener("pointermove", this.handlePointerMove);
2632
2632
  }
2633
2633
  cleanupGraceAreaListeners() {
2634
2634
  this.triggerEl && this.triggerEl.removeEventListener("pointerleave", this.handleTriggerLeave), this.popupEl && this.popupEl.removeEventListener("pointerleave", this.handleContentLeave), document.removeEventListener("pointermove", this.handlePointerMove), this.graceArea = null, this.triggerEl = null, this.popupEl = null;
2635
2635
  }
2636
2636
  showPopup(e) {
2637
2637
  this.hidePopup();
2638
- const t = $1(e), l = document.createElement("div");
2638
+ const o = P1(e), l = document.createElement("div");
2639
2639
  l.className = "tooltip-popup", l.setAttribute("role", "tooltip");
2640
- const o = document.createElement("div");
2641
- o.className = `tooltip-arrow tooltip-arrow--${t}`;
2640
+ const t = document.createElement("div");
2641
+ t.className = `tooltip-arrow tooltip-arrow--${o}`;
2642
2642
  const i = document.createElement("div");
2643
- i.className = "tooltip-body", i.appendChild(document.createElement("slot")), l.appendChild(o), l.appendChild(i);
2643
+ i.className = "tooltip-body", i.appendChild(document.createElement("slot")), l.appendChild(t), l.appendChild(i);
2644
2644
  const n = this.shadowRoot.querySelector(".tooltip-content-wrapper");
2645
2645
  n && n.appendChild(l), this.popupEl = l;
2646
2646
  const a = this.closest("anduin-tooltip");
@@ -2648,16 +2648,16 @@ const g5 = class g5 extends c {
2648
2648
  const s = a.querySelector("anduin-tooltip-trigger");
2649
2649
  s && this.setupGraceAreaListeners(s, l);
2650
2650
  }
2651
- this.dispatchEvent(new CustomEvent(i2, { detail: l, bubbles: !0, composed: !0 }));
2651
+ this.dispatchEvent(new CustomEvent(s2, { detail: l, bubbles: !0, composed: !0 }));
2652
2652
  }
2653
2653
  hidePopup() {
2654
- this.popupEl && (this.popupEl.remove(), this.popupEl = null, this.dispatchEvent(new CustomEvent(n2, { bubbles: !0, composed: !0 }))), this.cleanupGraceAreaListeners();
2654
+ this.popupEl && (this.popupEl.remove(), this.popupEl = null, this.dispatchEvent(new CustomEvent(d2, { bubbles: !0, composed: !0 }))), this.cleanupGraceAreaListeners();
2655
2655
  }
2656
2656
  render() {
2657
2657
  return d`<div class="tooltip-content-wrapper"></div>`;
2658
2658
  }
2659
2659
  };
2660
- g5.styles = h`
2660
+ b5.styles = h`
2661
2661
  :host {
2662
2662
  display: contents;
2663
2663
  --tooltip-bg: var(--anduin-tooltip-content-background, var(--color-gray-9));
@@ -2681,16 +2681,16 @@ g5.styles = h`
2681
2681
  .tooltip-arrow--left { right: -4px; top: 50%; transform: translateY(-50%); border-left-color: var(--tooltip-bg); border-right: none; }
2682
2682
  .tooltip-arrow--right { left: -4px; top: 50%; transform: translateY(-50%); border-right-color: var(--tooltip-bg); border-left: none; }
2683
2683
  `;
2684
- let P1 = g5;
2685
- customElements.get("anduin-tooltip") || customElements.define("anduin-tooltip", l1);
2686
- customElements.get("anduin-tooltip-trigger") || customElements.define("anduin-tooltip-trigger", E1);
2687
- customElements.get("anduin-tooltip-content") || customElements.define("anduin-tooltip-content", P1);
2688
- var h4 = Object.defineProperty, v4 = (C, e, t, l) => {
2689
- for (var o = void 0, i = C.length - 1, n; i >= 0; i--)
2690
- (n = C[i]) && (o = n(e, t, o) || o);
2691
- return o && h4(e, t, o), o;
2684
+ let S1 = b5;
2685
+ customElements.get("anduin-tooltip") || customElements.define("anduin-tooltip", i1);
2686
+ customElements.get("anduin-tooltip-trigger") || customElements.define("anduin-tooltip-trigger", z1);
2687
+ customElements.get("anduin-tooltip-content") || customElements.define("anduin-tooltip-content", S1);
2688
+ var f4 = Object.defineProperty, H4 = (C, e, o, l) => {
2689
+ for (var t = void 0, i = C.length - 1, n; i >= 0; i--)
2690
+ (n = C[i]) && (t = n(e, o, t) || t);
2691
+ return t && f4(e, o, t), t;
2692
2692
  };
2693
- const L4 = "anduin-well-close:click", f5 = class f5 extends c {
2693
+ const b4 = "anduin-well-close:click", m5 = class m5 extends c {
2694
2694
  constructor() {
2695
2695
  super(...arguments), this.variant = "gray";
2696
2696
  }
@@ -2709,7 +2709,7 @@ const L4 = "anduin-well-close:click", f5 = class f5 extends c {
2709
2709
  `;
2710
2710
  }
2711
2711
  };
2712
- f5.styles = h`
2712
+ m5.styles = h`
2713
2713
  :host {
2714
2714
  display: block;
2715
2715
  font-family: var(--font-sans);
@@ -2774,14 +2774,14 @@ f5.styles = h`
2774
2774
  color: var(--color-warning-4);
2775
2775
  }
2776
2776
  `;
2777
- let g1 = f5;
2778
- v4([
2777
+ let m1 = m5;
2778
+ H4([
2779
2779
  r()
2780
- ], g1.prototype, "variant");
2781
- const H5 = class H5 extends c {
2780
+ ], m1.prototype, "variant");
2781
+ const V5 = class V5 extends c {
2782
2782
  onClick() {
2783
2783
  this.dispatchEvent(
2784
- new CustomEvent(L4, { bubbles: !0, composed: !0 })
2784
+ new CustomEvent(b4, { bubbles: !0, composed: !0 })
2785
2785
  );
2786
2786
  }
2787
2787
  render() {
@@ -2796,7 +2796,7 @@ const H5 = class H5 extends c {
2796
2796
  `;
2797
2797
  }
2798
2798
  };
2799
- H5.styles = h`
2799
+ V5.styles = h`
2800
2800
  :host {
2801
2801
  display: inline-block;
2802
2802
  font-family: var(--font-sans);
@@ -2821,19 +2821,19 @@ H5.styles = h`
2821
2821
  background-color: var(--color-gray-3);
2822
2822
  }
2823
2823
  `;
2824
- let A1 = H5;
2825
- customElements.get("anduin-well") || customElements.define("anduin-well", g1);
2826
- customElements.get("anduin-well-close") || customElements.define("anduin-well-close", A1);
2827
- var g4 = Object.defineProperty, a2 = (C, e, t, l) => {
2828
- for (var o = void 0, i = C.length - 1, n; i >= 0; i--)
2829
- (n = C[i]) && (o = n(e, t, o) || o);
2830
- return o && g4(e, t, o), o;
2824
+ let O1 = V5;
2825
+ customElements.get("anduin-well") || customElements.define("anduin-well", m1);
2826
+ customElements.get("anduin-well-close") || customElements.define("anduin-well-close", O1);
2827
+ var m4 = Object.defineProperty, u2 = (C, e, o, l) => {
2828
+ for (var t = void 0, i = C.length - 1, n; i >= 0; i--)
2829
+ (n = C[i]) && (t = n(e, o, t) || t);
2830
+ return t && m4(e, o, t), t;
2831
2831
  };
2832
- const b5 = class b5 extends c {
2832
+ const M5 = class M5 extends c {
2833
2833
  constructor() {
2834
2834
  super(...arguments), this.open = !1, this.placement = "bottom-start", this._onOutsideClick = (e) => {
2835
- var t;
2836
- !this.contains(e.target) && !((t = this.shadowRoot) != null && t.contains(e.target)) && (this.open = !1);
2835
+ var o;
2836
+ !this.contains(e.target) && !((o = this.shadowRoot) != null && o.contains(e.target)) && (this.open = !1);
2837
2837
  };
2838
2838
  }
2839
2839
  _onTriggerClick() {
@@ -2858,7 +2858,7 @@ const b5 = class b5 extends c {
2858
2858
  `;
2859
2859
  }
2860
2860
  };
2861
- b5.styles = h`
2861
+ M5.styles = h`
2862
2862
  :host { display: inline-block; position: relative; font-family: var(--font-sans); }
2863
2863
 
2864
2864
  /* Outer: handles placement positioning only */
@@ -2912,24 +2912,24 @@ b5.styles = h`
2912
2912
  transform: scale(1) translateY(0);
2913
2913
  }
2914
2914
  `;
2915
- let C1 = b5;
2916
- a2([
2915
+ let n1 = M5;
2916
+ u2([
2917
2917
  r({ type: Boolean, reflect: !0 })
2918
- ], C1.prototype, "open");
2919
- a2([
2918
+ ], n1.prototype, "open");
2919
+ u2([
2920
2920
  r()
2921
- ], C1.prototype, "placement");
2922
- customElements.get("anduin-popover") || customElements.define("anduin-popover", C1);
2923
- var f4 = Object.defineProperty, a1 = (C, e, t, l) => {
2924
- for (var o = void 0, i = C.length - 1, n; i >= 0; i--)
2925
- (n = C[i]) && (o = n(e, t, o) || o);
2926
- return o && f4(e, t, o), o;
2921
+ ], n1.prototype, "placement");
2922
+ customElements.get("anduin-popover") || customElements.define("anduin-popover", n1);
2923
+ var V4 = Object.defineProperty, c1 = (C, e, o, l) => {
2924
+ for (var t = void 0, i = C.length - 1, n; i >= 0; i--)
2925
+ (n = C[i]) && (t = n(e, o, t) || t);
2926
+ return t && V4(e, o, t), t;
2927
2927
  };
2928
- const z1 = "anduin-menu-item:click", m5 = class m5 extends c {
2928
+ const I1 = "anduin-menu-item:click", Z5 = class Z5 extends c {
2929
2929
  constructor() {
2930
2930
  super(...arguments), this.open = !1, this.placement = "bottom-start", this._onOutsideClick = (e) => {
2931
- var t;
2932
- !this.contains(e.target) && !((t = this.shadowRoot) != null && t.contains(e.target)) && (this.open = !1);
2931
+ var o;
2932
+ !this.contains(e.target) && !((o = this.shadowRoot) != null && o.contains(e.target)) && (this.open = !1);
2933
2933
  }, this._onItemClick = () => {
2934
2934
  this.open = !1;
2935
2935
  };
@@ -2938,10 +2938,10 @@ const z1 = "anduin-menu-item:click", m5 = class m5 extends c {
2938
2938
  this.open = !this.open;
2939
2939
  }
2940
2940
  connectedCallback() {
2941
- super.connectedCallback(), document.addEventListener("click", this._onOutsideClick), this.addEventListener(z1, this._onItemClick);
2941
+ super.connectedCallback(), document.addEventListener("click", this._onOutsideClick), this.addEventListener(I1, this._onItemClick);
2942
2942
  }
2943
2943
  disconnectedCallback() {
2944
- super.disconnectedCallback(), document.removeEventListener("click", this._onOutsideClick), this.removeEventListener(z1, this._onItemClick);
2944
+ super.disconnectedCallback(), document.removeEventListener("click", this._onOutsideClick), this.removeEventListener(I1, this._onItemClick);
2945
2945
  }
2946
2946
  render() {
2947
2947
  return d`
@@ -2956,7 +2956,7 @@ const z1 = "anduin-menu-item:click", m5 = class m5 extends c {
2956
2956
  `;
2957
2957
  }
2958
2958
  };
2959
- m5.styles = h`
2959
+ Z5.styles = h`
2960
2960
  :host { display: inline-block; position: relative; font-family: var(--font-sans); }
2961
2961
 
2962
2962
  .menu__trigger { display: inline-block; }
@@ -3008,19 +3008,19 @@ m5.styles = h`
3008
3008
  transform: scale(1) translateY(0);
3009
3009
  }
3010
3010
  `;
3011
- let i1 = m5;
3012
- a1([
3011
+ let r1 = Z5;
3012
+ c1([
3013
3013
  r({ type: Boolean, reflect: !0 })
3014
- ], i1.prototype, "open");
3015
- a1([
3014
+ ], r1.prototype, "open");
3015
+ c1([
3016
3016
  r()
3017
- ], i1.prototype, "placement");
3018
- const V5 = class V5 extends c {
3017
+ ], r1.prototype, "placement");
3018
+ const y5 = class y5 extends c {
3019
3019
  constructor() {
3020
3020
  super(...arguments), this.icon = "", this.variant = "default", this.disabled = !1;
3021
3021
  }
3022
3022
  _onClick() {
3023
- this.dispatchEvent(new CustomEvent(z1, { bubbles: !0, composed: !0 }));
3023
+ this.dispatchEvent(new CustomEvent(I1, { bubbles: !0, composed: !0 }));
3024
3024
  }
3025
3025
  render() {
3026
3026
  return d`
@@ -3031,13 +3031,13 @@ const V5 = class V5 extends c {
3031
3031
  part="menu-item"
3032
3032
  @click=${this._onClick}
3033
3033
  >
3034
- ${this.icon ? d`<anduin-icon name="${this.icon}" size="16"></anduin-icon>` : p}
3034
+ ${this.icon ? d`<anduin-icon name="${this.icon}" size="16"></anduin-icon>` : u}
3035
3035
  <span class="menu-item__label"><slot></slot></span>
3036
3036
  </button>
3037
3037
  `;
3038
3038
  }
3039
3039
  };
3040
- V5.styles = h`
3040
+ y5.styles = h`
3041
3041
  :host { display: block; width: 100%; font-family: var(--font-sans); }
3042
3042
  .menu-item {
3043
3043
  display: flex;
@@ -3067,73 +3067,263 @@ V5.styles = h`
3067
3067
  anduin-icon { color: var(--color-gray-7); }
3068
3068
  .menu-item--danger anduin-icon { color: var(--color-danger-4); }
3069
3069
  `;
3070
- let T = V5;
3071
- a1([
3070
+ let U = y5;
3071
+ c1([
3072
3072
  r()
3073
- ], T.prototype, "icon");
3074
- a1([
3073
+ ], U.prototype, "icon");
3074
+ c1([
3075
3075
  r()
3076
- ], T.prototype, "variant");
3077
- a1([
3076
+ ], U.prototype, "variant");
3077
+ c1([
3078
3078
  r({ type: Boolean })
3079
- ], T.prototype, "disabled");
3080
- customElements.get("anduin-menu") || customElements.define("anduin-menu", i1);
3081
- customElements.get("anduin-menu-item") || customElements.define("anduin-menu-item", T);
3079
+ ], U.prototype, "disabled");
3080
+ customElements.get("anduin-menu") || customElements.define("anduin-menu", r1);
3081
+ customElements.get("anduin-menu-item") || customElements.define("anduin-menu-item", U);
3082
+ var M4 = Object.defineProperty, u1 = (C, e, o, l) => {
3083
+ for (var t = void 0, i = C.length - 1, n; i >= 0; i--)
3084
+ (n = C[i]) && (t = n(e, o, t) || t);
3085
+ return t && M4(e, o, t), t;
3086
+ };
3087
+ const j5 = 300, Z4 = 200, y4 = 250;
3088
+ var k;
3089
+ const D = (k = class extends c {
3090
+ constructor() {
3091
+ super(...arguments), this.open = !1, this.heading = "", this.hideFooter = !1, this.maxWidth = "480", this._leaving = !1;
3092
+ }
3093
+ updated(e) {
3094
+ var o;
3095
+ if (e.has("maxWidth")) {
3096
+ const l = this.maxWidth, t = k._PRESETS.has(l) ? `${l}px` : l;
3097
+ this.style.setProperty("--_modal-width", t);
3098
+ }
3099
+ if (e.has("open")) {
3100
+ if (this.open)
3101
+ this._leaving = !1, this.classList.add("is-shown");
3102
+ else if (this.classList.contains("is-shown")) {
3103
+ this._leaving = !0;
3104
+ const l = (o = this.shadowRoot) == null ? void 0 : o.querySelector(".overlay");
3105
+ l == null || l.addEventListener("animationend", () => {
3106
+ this._leaving = !1, this.classList.remove("is-shown");
3107
+ }, { once: !0 });
3108
+ }
3109
+ }
3110
+ }
3111
+ dispatch(e) {
3112
+ this.dispatchEvent(new CustomEvent(e, { bubbles: !0, composed: !0 }));
3113
+ }
3114
+ onOverlayClick() {
3115
+ this.dispatch("close");
3116
+ }
3117
+ onClose() {
3118
+ this.dispatch("close");
3119
+ }
3120
+ render() {
3121
+ const e = this._leaving;
3122
+ return d`
3123
+ <div class=${`overlay${e ? " is-leaving" : ""}`} @click=${this.onOverlayClick}></div>
3124
+ <div class="modal-wrapper">
3125
+ <div class=${`modal${e ? " is-leaving" : ""}`} role="dialog" aria-modal="true" aria-labelledby="modal-title">
3126
+ <div class="header">
3127
+ ${this.heading ? d`<p id="modal-title" class="title">${this.heading}</p>` : u}
3128
+ <anduin-button
3129
+ appearance="plain"
3130
+ variant="gray9"
3131
+ size="medium"
3132
+ label="Close"
3133
+ start-icon="cross"
3134
+ @click=${this.onClose}
3135
+ ></anduin-button>
3136
+ </div>
3137
+ <div class="body">
3138
+ <slot></slot>
3139
+ </div>
3140
+ ${this.hideFooter ? u : d`<div class="footer"><slot name="footer"></slot></div>`}
3141
+ </div>
3142
+ </div>
3143
+ `;
3144
+ }
3145
+ }, k.styles = h`
3146
+ :host {
3147
+ display: none;
3148
+ font-family: var(--font-sans);
3149
+ }
3150
+ :host(.is-shown) {
3151
+ display: block;
3152
+ position: fixed;
3153
+ inset: 0;
3154
+ z-index: var(--z-modal, 1000);
3155
+ }
3156
+ @keyframes overlayIn {
3157
+ from { opacity: 0; }
3158
+ to { opacity: 1; }
3159
+ }
3160
+ @keyframes overlayOut {
3161
+ from { opacity: 1; }
3162
+ to { opacity: 0; }
3163
+ }
3164
+ @keyframes modalIn {
3165
+ from { opacity: 0; transform: translateY(12px); }
3166
+ to { opacity: 1; transform: translateY(0); }
3167
+ }
3168
+ @keyframes modalOut {
3169
+ from { opacity: 1; transform: translateY(0); }
3170
+ to { opacity: 0; transform: translateY(12px); }
3171
+ }
3172
+ .overlay {
3173
+ position: absolute;
3174
+ inset: 0;
3175
+ background: rgba(50, 60, 77, 0.6);
3176
+ cursor: default;
3177
+ animation: overlayIn ${j5}ms cubic-bezier(0.2, 0, 0, 1) forwards;
3178
+ }
3179
+ .overlay.is-leaving {
3180
+ animation: overlayOut ${y4}ms cubic-bezier(0.3, 0, 0.8, 0.15) forwards;
3181
+ }
3182
+ .modal-wrapper {
3183
+ position: absolute;
3184
+ inset: 0;
3185
+ display: flex;
3186
+ align-items: flex-start;
3187
+ justify-content: center;
3188
+ padding: 32px 16px;
3189
+ overflow-y: auto;
3190
+ pointer-events: none;
3191
+ }
3192
+ .modal {
3193
+ pointer-events: auto;
3194
+ background: #fff;
3195
+ border-radius: 12px;
3196
+ width: 100%;
3197
+ max-width: var(--_modal-width, 480px);
3198
+ display: flex;
3199
+ flex-direction: column;
3200
+ max-height: calc(100vh - 64px);
3201
+ box-shadow: 0 8px 24px 0 rgba(29, 41, 57, 0.12), 0 2px 8px 0 rgba(29, 41, 57, 0.08);
3202
+ flex-shrink: 0;
3203
+ animation: modalIn ${j5}ms cubic-bezier(0.05, 0.7, 0.1, 1) forwards;
3204
+ }
3205
+ .modal.is-leaving {
3206
+ animation: modalOut ${Z4}ms cubic-bezier(0.3, 0, 0.8, 0.15) forwards;
3207
+ }
3208
+ .header {
3209
+ flex-shrink: 0;
3210
+ display: flex;
3211
+ align-items: flex-start;
3212
+ padding: 20px 28px;
3213
+ }
3214
+ .title {
3215
+ flex: 1;
3216
+ font-size: 20px;
3217
+ font-weight: 590;
3218
+ line-height: 32px;
3219
+ color: #323c4d;
3220
+ letter-spacing: -0.46px;
3221
+ font-family: var(--font-sans);
3222
+ margin: 0;
3223
+ }
3224
+ .body {
3225
+ flex: 1;
3226
+ overflow-y: auto;
3227
+ min-height: 0;
3228
+ padding: 0 28px;
3229
+ }
3230
+ .footer {
3231
+ flex-shrink: 0;
3232
+ display: flex;
3233
+ align-items: center;
3234
+ justify-content: flex-end;
3235
+ gap: 8px;
3236
+ padding: 24px 28px;
3237
+ }
3238
+ `, k._PRESETS = /* @__PURE__ */ new Set(["480", "600", "720", "960", "1160"]), k);
3239
+ u1([
3240
+ r({ type: Boolean, reflect: !0 })
3241
+ ], D.prototype, "open");
3242
+ u1([
3243
+ r()
3244
+ ], D.prototype, "heading");
3245
+ u1([
3246
+ r({ type: Boolean, attribute: "hide-footer" })
3247
+ ], D.prototype, "hideFooter");
3248
+ u1([
3249
+ r({ attribute: "max-width" })
3250
+ ], D.prototype, "maxWidth");
3251
+ u1([
3252
+ s1()
3253
+ ], D.prototype, "_leaving");
3254
+ let R4 = D;
3255
+ customElements.get("anduin-modal") || customElements.define("anduin-modal", R4);
3256
+ class _4 extends HTMLElement {
3257
+ constructor() {
3258
+ super(...arguments), this._onClick = () => {
3259
+ this.dispatchEvent(new CustomEvent("close", { bubbles: !0, composed: !0 }));
3260
+ };
3261
+ }
3262
+ connectedCallback() {
3263
+ this.style.display = "contents", this.addEventListener("click", this._onClick);
3264
+ }
3265
+ disconnectedCallback() {
3266
+ this.removeEventListener("click", this._onClick);
3267
+ }
3268
+ }
3269
+ customElements.get("anduin-modal-close") || customElements.define("anduin-modal-close", _4);
3082
3270
  if (typeof document < "u" && !document.getElementById("acl-tokens")) {
3083
3271
  const C = document.createElement("style");
3084
- C.id = "acl-tokens", C.textContent = p2, document.head.appendChild(C);
3272
+ C.id = "acl-tokens", C.textContent = L2, document.head.appendChild(C);
3085
3273
  }
3086
3274
  export {
3087
- u1 as AnduinBadge,
3088
- F as AnduinBadgeCount,
3275
+ g1 as AnduinBadge,
3276
+ Q as AnduinBadgeCount,
3089
3277
  f as AnduinButton,
3090
- p1 as AnduinCallout,
3091
- k as AnduinCheckbox,
3092
- J as AnduinDivider,
3093
- h1 as AnduinDot,
3094
- L1 as AnduinField,
3095
- _1 as AnduinFieldDescription,
3096
- x1 as AnduinFieldError,
3097
- k1 as AnduinFieldGroup,
3098
- e1 as AnduinFieldLabel,
3099
- K as AnduinIcon,
3278
+ L1 as AnduinCallout,
3279
+ w as AnduinCheckbox,
3280
+ e1 as AnduinDivider,
3281
+ f1 as AnduinDot,
3282
+ b1 as AnduinField,
3283
+ w1 as AnduinFieldDescription,
3284
+ $1 as AnduinFieldError,
3285
+ E1 as AnduinFieldGroup,
3286
+ o1 as AnduinFieldLabel,
3287
+ J as AnduinIcon,
3100
3288
  M as AnduinInput,
3101
- v1 as AnduinLoadingState,
3102
- i1 as AnduinMenu,
3103
- T as AnduinMenuItem,
3104
- C1 as AnduinPopover,
3105
- Q as AnduinProgress,
3289
+ H1 as AnduinLoadingState,
3290
+ r1 as AnduinMenu,
3291
+ U as AnduinMenuItem,
3292
+ R4 as AnduinModal,
3293
+ _4 as AnduinModalClose,
3294
+ n1 as AnduinPopover,
3295
+ t1 as AnduinProgress,
3106
3296
  y as AnduinSkeleton,
3107
- X as AnduinSpinner,
3108
- o1 as AnduinTabContent,
3297
+ K as AnduinSpinner,
3298
+ C1 as AnduinTabContent,
3109
3299
  R as AnduinTabTrigger,
3110
- I as AnduinTabs,
3111
- t1 as AnduinTabsList,
3300
+ T as AnduinTabs,
3301
+ l1 as AnduinTabsList,
3112
3302
  N as AnduinTag,
3113
- w1 as AnduinTagClose,
3303
+ A1 as AnduinTagClose,
3114
3304
  Z as AnduinTextarea,
3115
- l1 as AnduinTooltip,
3116
- P1 as AnduinTooltipContent,
3117
- E1 as AnduinTooltipTrigger,
3118
- g1 as AnduinWell,
3119
- A1 as AnduinWellClose,
3120
- X5 as BADGE_STYLES,
3121
- Q2 as CHECKBOX_CHANGE,
3122
- e2 as FIELD_LABEL_CLICK,
3123
- b1 as FIELD_LABEL_CLICK_COORDINATED,
3124
- t4 as INPUT_CHANGE,
3125
- z1 as MENU_ITEM_CLICK,
3126
- i4 as TAB_CHANGE,
3127
- t2 as TAB_TRIGGER_CLICK,
3128
- m1 as TAB_VALUE_CHANGED,
3129
- r4 as TAG_CLOSE_CLICK,
3130
- l4 as TEXTAREA_CHANGE,
3131
- i2 as TOOLTIP_CONTENT_POPUP_MOUNTED,
3132
- n2 as TOOLTIP_CONTENT_POPUP_UNMOUNTED,
3133
- j1 as TOOLTIP_HIDE,
3134
- l2 as TOOLTIP_SHOW,
3135
- C2 as TOOLTIP_TRIGGER_MOUNTED,
3136
- r2 as TOOLTIP_VISIBILITY_CHANGED,
3137
- L4 as WELL_CLOSE_CLICK,
3138
- K5 as getBadgeVariantClass
3305
+ i1 as AnduinTooltip,
3306
+ S1 as AnduinTooltipContent,
3307
+ z1 as AnduinTooltipTrigger,
3308
+ m1 as AnduinWell,
3309
+ O1 as AnduinWellClose,
3310
+ Q5 as BADGE_STYLES,
3311
+ l4 as CHECKBOX_CHANGE,
3312
+ C2 as FIELD_LABEL_CLICK,
3313
+ M1 as FIELD_LABEL_CLICK_COORDINATED,
3314
+ i4 as INPUT_CHANGE,
3315
+ I1 as MENU_ITEM_CLICK,
3316
+ s4 as TAB_CHANGE,
3317
+ i2 as TAB_TRIGGER_CLICK,
3318
+ Z1 as TAB_VALUE_CHANGED,
3319
+ c4 as TAG_CLOSE_CLICK,
3320
+ r4 as TEXTAREA_CHANGE,
3321
+ s2 as TOOLTIP_CONTENT_POPUP_MOUNTED,
3322
+ d2 as TOOLTIP_CONTENT_POPUP_UNMOUNTED,
3323
+ G1 as TOOLTIP_HIDE,
3324
+ r2 as TOOLTIP_SHOW,
3325
+ a2 as TOOLTIP_TRIGGER_MOUNTED,
3326
+ c2 as TOOLTIP_VISIBILITY_CHANGED,
3327
+ b4 as WELL_CLOSE_CLICK,
3328
+ e2 as getBadgeVariantClass
3139
3329
  };