@patimweb/crtstyleguide 1.0.9 → 1.0.11

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.
Files changed (2) hide show
  1. package/dist/lib/index.js +1608 -1134
  2. package/package.json +1 -1
package/dist/lib/index.js CHANGED
@@ -1,21 +1,21 @@
1
- import { css as l, LitElement as p, html as c } from "lit";
2
- const d = (r) => (t, a) => {
1
+ import { css as d, LitElement as h, html as l } from "lit";
2
+ const v = (e) => (t, a) => {
3
3
  a !== void 0 ? a.addInitializer(() => {
4
- customElements.define(r, t);
5
- }) : customElements.define(r, t);
4
+ customElements.define(e, t);
5
+ }) : customElements.define(e, t);
6
6
  };
7
- const bt = globalThis, Dt = bt.ShadowRoot && (bt.ShadyCSS === void 0 || bt.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Vt = /* @__PURE__ */ Symbol(), Rt = /* @__PURE__ */ new WeakMap();
8
- let Wt = class {
7
+ const Tt = globalThis, Jt = Tt.ShadowRoot && (Tt.ShadyCSS === void 0 || Tt.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, ke = /* @__PURE__ */ Symbol(), de = /* @__PURE__ */ new WeakMap();
8
+ let Pe = class {
9
9
  constructor(t, a, s) {
10
- if (this._$cssResult$ = !0, s !== Vt) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
10
+ if (this._$cssResult$ = !0, s !== ke) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
11
11
  this.cssText = t, this.t = a;
12
12
  }
13
13
  get styleSheet() {
14
14
  let t = this.o;
15
15
  const a = this.t;
16
- if (Dt && t === void 0) {
16
+ if (Jt && t === void 0) {
17
17
  const s = a !== void 0 && a.length === 1;
18
- s && (t = Rt.get(a)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), s && Rt.set(a, t));
18
+ s && (t = de.get(a)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), s && de.set(a, t));
19
19
  }
20
20
  return t;
21
21
  }
@@ -23,94 +23,94 @@ let Wt = class {
23
23
  return this.cssText;
24
24
  }
25
25
  };
26
- const Ht = (r) => new Wt(typeof r == "string" ? r : r + "", void 0, Vt), Kt = (r, t) => {
27
- if (Dt) r.adoptedStyleSheets = t.map((a) => a instanceof CSSStyleSheet ? a : a.styleSheet);
26
+ const Ae = (e) => new Pe(typeof e == "string" ? e : e + "", void 0, ke), Se = (e, t) => {
27
+ if (Jt) e.adoptedStyleSheets = t.map((a) => a instanceof CSSStyleSheet ? a : a.styleSheet);
28
28
  else for (const a of t) {
29
- const s = document.createElement("style"), e = bt.litNonce;
30
- e !== void 0 && s.setAttribute("nonce", e), s.textContent = a.cssText, r.appendChild(s);
29
+ const s = document.createElement("style"), r = Tt.litNonce;
30
+ r !== void 0 && s.setAttribute("nonce", r), s.textContent = a.cssText, e.appendChild(s);
31
31
  }
32
- }, Ft = Dt ? (r) => r : (r) => r instanceof CSSStyleSheet ? ((t) => {
32
+ }, he = Jt ? (e) => e : (e) => e instanceof CSSStyleSheet ? ((t) => {
33
33
  let a = "";
34
34
  for (const s of t.cssRules) a += s.cssText;
35
- return Ht(a);
36
- })(r) : r;
37
- const { is: Gt, defineProperty: Jt, getOwnPropertyDescriptor: Zt, getOwnPropertyNames: Qt, getOwnPropertySymbols: tr, getPrototypeOf: rr } = Object, Ot = globalThis, Bt = Ot.trustedTypes, er = Bt ? Bt.emptyScript : "", ar = Ot.reactiveElementPolyfillSupport, at = (r, t) => r, ft = { toAttribute(r, t) {
35
+ return Ae(a);
36
+ })(e) : e;
37
+ const { is: Ee, defineProperty: De, getOwnPropertyDescriptor: Me, getOwnPropertyNames: Te, getOwnPropertySymbols: je, getPrototypeOf: Le } = Object, Vt = globalThis, ve = Vt.trustedTypes, Ie = ve ? ve.emptyScript : "", Be = Vt.reactiveElementPolyfillSupport, ft = (e, t) => e, jt = { toAttribute(e, t) {
38
38
  switch (t) {
39
39
  case Boolean:
40
- r = r ? er : null;
40
+ e = e ? Ie : null;
41
41
  break;
42
42
  case Object:
43
43
  case Array:
44
- r = r == null ? r : JSON.stringify(r);
44
+ e = e == null ? e : JSON.stringify(e);
45
45
  }
46
- return r;
47
- }, fromAttribute(r, t) {
48
- let a = r;
46
+ return e;
47
+ }, fromAttribute(e, t) {
48
+ let a = e;
49
49
  switch (t) {
50
50
  case Boolean:
51
- a = r !== null;
51
+ a = e !== null;
52
52
  break;
53
53
  case Number:
54
- a = r === null ? null : Number(r);
54
+ a = e === null ? null : Number(e);
55
55
  break;
56
56
  case Object:
57
57
  case Array:
58
58
  try {
59
- a = JSON.parse(r);
59
+ a = JSON.parse(e);
60
60
  } catch {
61
61
  a = null;
62
62
  }
63
63
  }
64
64
  return a;
65
- } }, Et = (r, t) => !Gt(r, t), Yt = { attribute: !0, type: String, converter: ft, reflect: !1, useDefault: !1, hasChanged: Et };
66
- Symbol.metadata ??= /* @__PURE__ */ Symbol("metadata"), Ot.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap();
67
- class et extends HTMLElement {
65
+ } }, te = (e, t) => !Ee(e, t), ge = { attribute: !0, type: String, converter: jt, reflect: !1, useDefault: !1, hasChanged: te };
66
+ Symbol.metadata ??= /* @__PURE__ */ Symbol("metadata"), Vt.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap();
67
+ let ut = class extends HTMLElement {
68
68
  static addInitializer(t) {
69
69
  this._$Ei(), (this.l ??= []).push(t);
70
70
  }
71
71
  static get observedAttributes() {
72
72
  return this.finalize(), this._$Eh && [...this._$Eh.keys()];
73
73
  }
74
- static createProperty(t, a = Yt) {
74
+ static createProperty(t, a = ge) {
75
75
  if (a.state && (a.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(t) && ((a = Object.create(a)).wrapped = !0), this.elementProperties.set(t, a), !a.noAccessor) {
76
- const s = /* @__PURE__ */ Symbol(), e = this.getPropertyDescriptor(t, s, a);
77
- e !== void 0 && Jt(this.prototype, t, e);
76
+ const s = /* @__PURE__ */ Symbol(), r = this.getPropertyDescriptor(t, s, a);
77
+ r !== void 0 && De(this.prototype, t, r);
78
78
  }
79
79
  }
80
80
  static getPropertyDescriptor(t, a, s) {
81
- const { get: e, set: i } = Zt(this.prototype, t) ?? { get() {
81
+ const { get: r, set: i } = Me(this.prototype, t) ?? { get() {
82
82
  return this[a];
83
83
  }, set(o) {
84
84
  this[a] = o;
85
85
  } };
86
- return { get: e, set(o) {
87
- const h = e?.call(this);
88
- i?.call(this, o), this.requestUpdate(t, h, s);
86
+ return { get: r, set(o) {
87
+ const c = r?.call(this);
88
+ i?.call(this, o), this.requestUpdate(t, c, s);
89
89
  }, configurable: !0, enumerable: !0 };
90
90
  }
91
91
  static getPropertyOptions(t) {
92
- return this.elementProperties.get(t) ?? Yt;
92
+ return this.elementProperties.get(t) ?? ge;
93
93
  }
94
94
  static _$Ei() {
95
- if (this.hasOwnProperty(at("elementProperties"))) return;
96
- const t = rr(this);
95
+ if (this.hasOwnProperty(ft("elementProperties"))) return;
96
+ const t = Le(this);
97
97
  t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
98
98
  }
99
99
  static finalize() {
100
- if (this.hasOwnProperty(at("finalized"))) return;
101
- if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(at("properties"))) {
102
- const a = this.properties, s = [...Qt(a), ...tr(a)];
103
- for (const e of s) this.createProperty(e, a[e]);
100
+ if (this.hasOwnProperty(ft("finalized"))) return;
101
+ if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(ft("properties"))) {
102
+ const a = this.properties, s = [...Te(a), ...je(a)];
103
+ for (const r of s) this.createProperty(r, a[r]);
104
104
  }
105
105
  const t = this[Symbol.metadata];
106
106
  if (t !== null) {
107
107
  const a = litPropertyMetadata.get(t);
108
- if (a !== void 0) for (const [s, e] of a) this.elementProperties.set(s, e);
108
+ if (a !== void 0) for (const [s, r] of a) this.elementProperties.set(s, r);
109
109
  }
110
110
  this._$Eh = /* @__PURE__ */ new Map();
111
111
  for (const [a, s] of this.elementProperties) {
112
- const e = this._$Eu(a, s);
113
- e !== void 0 && this._$Eh.set(e, a);
112
+ const r = this._$Eu(a, s);
113
+ r !== void 0 && this._$Eh.set(r, a);
114
114
  }
115
115
  this.elementStyles = this.finalizeStyles(this.styles);
116
116
  }
@@ -118,8 +118,8 @@ class et extends HTMLElement {
118
118
  const a = [];
119
119
  if (Array.isArray(t)) {
120
120
  const s = new Set(t.flat(1 / 0).reverse());
121
- for (const e of s) a.unshift(Ft(e));
122
- } else t !== void 0 && a.push(Ft(t));
121
+ for (const r of s) a.unshift(he(r));
122
+ } else t !== void 0 && a.push(he(t));
123
123
  return a;
124
124
  }
125
125
  static _$Eu(t, a) {
@@ -145,7 +145,7 @@ class et extends HTMLElement {
145
145
  }
146
146
  createRenderRoot() {
147
147
  const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
148
- return Kt(t, this.constructor.elementStyles), t;
148
+ return Se(t, this.constructor.elementStyles), t;
149
149
  }
150
150
  connectedCallback() {
151
151
  this.renderRoot ??= this.createRenderRoot(), this.enableUpdating(!0), this._$EO?.forEach((t) => t.hostConnected?.());
@@ -159,31 +159,31 @@ class et extends HTMLElement {
159
159
  this._$AK(t, s);
160
160
  }
161
161
  _$ET(t, a) {
162
- const s = this.constructor.elementProperties.get(t), e = this.constructor._$Eu(t, s);
163
- if (e !== void 0 && s.reflect === !0) {
164
- const i = (s.converter?.toAttribute !== void 0 ? s.converter : ft).toAttribute(a, s.type);
165
- this._$Em = t, i == null ? this.removeAttribute(e) : this.setAttribute(e, i), this._$Em = null;
162
+ const s = this.constructor.elementProperties.get(t), r = this.constructor._$Eu(t, s);
163
+ if (r !== void 0 && s.reflect === !0) {
164
+ const i = (s.converter?.toAttribute !== void 0 ? s.converter : jt).toAttribute(a, s.type);
165
+ this._$Em = t, i == null ? this.removeAttribute(r) : this.setAttribute(r, i), this._$Em = null;
166
166
  }
167
167
  }
168
168
  _$AK(t, a) {
169
- const s = this.constructor, e = s._$Eh.get(t);
170
- if (e !== void 0 && this._$Em !== e) {
171
- const i = s.getPropertyOptions(e), o = typeof i.converter == "function" ? { fromAttribute: i.converter } : i.converter?.fromAttribute !== void 0 ? i.converter : ft;
172
- this._$Em = e;
173
- const h = o.fromAttribute(a, i.type);
174
- this[e] = h ?? this._$Ej?.get(e) ?? h, this._$Em = null;
169
+ const s = this.constructor, r = s._$Eh.get(t);
170
+ if (r !== void 0 && this._$Em !== r) {
171
+ const i = s.getPropertyOptions(r), o = typeof i.converter == "function" ? { fromAttribute: i.converter } : i.converter?.fromAttribute !== void 0 ? i.converter : jt;
172
+ this._$Em = r;
173
+ const c = o.fromAttribute(a, i.type);
174
+ this[r] = c ?? this._$Ej?.get(r) ?? c, this._$Em = null;
175
175
  }
176
176
  }
177
- requestUpdate(t, a, s, e = !1, i) {
177
+ requestUpdate(t, a, s, r = !1, i) {
178
178
  if (t !== void 0) {
179
179
  const o = this.constructor;
180
- if (e === !1 && (i = this[t]), s ??= o.getPropertyOptions(t), !((s.hasChanged ?? Et)(i, a) || s.useDefault && s.reflect && i === this._$Ej?.get(t) && !this.hasAttribute(o._$Eu(t, s)))) return;
180
+ if (r === !1 && (i = this[t]), s ??= o.getPropertyOptions(t), !((s.hasChanged ?? te)(i, a) || s.useDefault && s.reflect && i === this._$Ej?.get(t) && !this.hasAttribute(o._$Eu(t, s)))) return;
181
181
  this.C(t, a, s);
182
182
  }
183
183
  this.isUpdatePending === !1 && (this._$ES = this._$EP());
184
184
  }
185
- C(t, a, { useDefault: s, reflect: e, wrapped: i }, o) {
186
- s && !(this._$Ej ??= /* @__PURE__ */ new Map()).has(t) && (this._$Ej.set(t, o ?? a ?? this[t]), i !== !0 || o !== void 0) || (this._$AL.has(t) || (this.hasUpdated || s || (a = void 0), this._$AL.set(t, a)), e === !0 && this._$Em !== t && (this._$Eq ??= /* @__PURE__ */ new Set()).add(t));
185
+ C(t, a, { useDefault: s, reflect: r, wrapped: i }, o) {
186
+ s && !(this._$Ej ??= /* @__PURE__ */ new Map()).has(t) && (this._$Ej.set(t, o ?? a ?? this[t]), i !== !0 || o !== void 0) || (this._$AL.has(t) || (this.hasUpdated || s || (a = void 0), this._$AL.set(t, a)), r === !0 && this._$Em !== t && (this._$Eq ??= /* @__PURE__ */ new Set()).add(t));
187
187
  }
188
188
  async _$EP() {
189
189
  this.isUpdatePending = !0;
@@ -202,13 +202,13 @@ class et extends HTMLElement {
202
202
  if (!this.isUpdatePending) return;
203
203
  if (!this.hasUpdated) {
204
204
  if (this.renderRoot ??= this.createRenderRoot(), this._$Ep) {
205
- for (const [e, i] of this._$Ep) this[e] = i;
205
+ for (const [r, i] of this._$Ep) this[r] = i;
206
206
  this._$Ep = void 0;
207
207
  }
208
208
  const s = this.constructor.elementProperties;
209
- if (s.size > 0) for (const [e, i] of s) {
210
- const { wrapped: o } = i, h = this[e];
211
- o !== !0 || this._$AL.has(e) || h === void 0 || this.C(e, void 0, i, h);
209
+ if (s.size > 0) for (const [r, i] of s) {
210
+ const { wrapped: o } = i, c = this[r];
211
+ o !== !0 || this._$AL.has(r) || c === void 0 || this.C(r, void 0, i, c);
212
212
  }
213
213
  }
214
214
  let t = !1;
@@ -244,98 +244,349 @@ class et extends HTMLElement {
244
244
  }
245
245
  firstUpdated(t) {
246
246
  }
247
- }
248
- et.elementStyles = [], et.shadowRootOptions = { mode: "open" }, et[at("elementProperties")] = /* @__PURE__ */ new Map(), et[at("finalized")] = /* @__PURE__ */ new Map(), ar?.({ ReactiveElement: et }), (Ot.reactiveElementVersions ??= []).push("2.1.2");
249
- const sr = { attribute: !0, type: String, converter: ft, reflect: !1, hasChanged: Et }, ir = (r = sr, t, a) => {
250
- const { kind: s, metadata: e } = a;
251
- let i = globalThis.litPropertyMetadata.get(e);
252
- if (i === void 0 && globalThis.litPropertyMetadata.set(e, i = /* @__PURE__ */ new Map()), s === "setter" && ((r = Object.create(r)).wrapped = !0), i.set(a.name, r), s === "accessor") {
247
+ };
248
+ ut.elementStyles = [], ut.shadowRootOptions = { mode: "open" }, ut[ft("elementProperties")] = /* @__PURE__ */ new Map(), ut[ft("finalized")] = /* @__PURE__ */ new Map(), Be?.({ ReactiveElement: ut }), (Vt.reactiveElementVersions ??= []).push("2.1.2");
249
+ const Ne = { attribute: !0, type: String, converter: jt, reflect: !1, hasChanged: te }, Ue = (e = Ne, t, a) => {
250
+ const { kind: s, metadata: r } = a;
251
+ let i = globalThis.litPropertyMetadata.get(r);
252
+ if (i === void 0 && globalThis.litPropertyMetadata.set(r, i = /* @__PURE__ */ new Map()), s === "setter" && ((e = Object.create(e)).wrapped = !0), i.set(a.name, e), s === "accessor") {
253
253
  const { name: o } = a;
254
- return { set(h) {
255
- const u = t.get.call(this);
256
- t.set.call(this, h), this.requestUpdate(o, u, r, !0, h);
257
- }, init(h) {
258
- return h !== void 0 && this.C(o, void 0, r, h), h;
254
+ return { set(c) {
255
+ const p = t.get.call(this);
256
+ t.set.call(this, c), this.requestUpdate(o, p, e, !0, c);
257
+ }, init(c) {
258
+ return c !== void 0 && this.C(o, void 0, e, c), c;
259
259
  } };
260
260
  }
261
261
  if (s === "setter") {
262
262
  const { name: o } = a;
263
- return function(h) {
264
- const u = this[o];
265
- t.call(this, h), this.requestUpdate(o, u, r, !0, h);
263
+ return function(c) {
264
+ const p = this[o];
265
+ t.call(this, c), this.requestUpdate(o, p, e, !0, c);
266
266
  };
267
267
  }
268
268
  throw Error("Unsupported decorator location: " + s);
269
269
  };
270
- function n(r) {
271
- return (t, a) => typeof a == "object" ? ir(r, t, a) : ((s, e, i) => {
272
- const o = e.hasOwnProperty(i);
273
- return e.constructor.createProperty(i, s), o ? Object.getOwnPropertyDescriptor(e, i) : void 0;
274
- })(r, t, a);
270
+ function n(e) {
271
+ return (t, a) => typeof a == "object" ? Ue(e, t, a) : ((s, r, i) => {
272
+ const o = r.hasOwnProperty(i);
273
+ return r.constructor.createProperty(i, s), o ? Object.getOwnPropertyDescriptor(r, i) : void 0;
274
+ })(e, t, a);
275
275
  }
276
- function v(r) {
277
- return n({ ...r, state: !0, attribute: !1 });
276
+ function m(e) {
277
+ return n({ ...e, state: !0, attribute: !1 });
278
278
  }
279
- const or = (r, t, a) => (a.configurable = !0, a.enumerable = !0, Reflect.decorate && typeof t != "object" && Object.defineProperty(r, t, a), a);
280
- function Tt(r, t) {
281
- return (a, s, e) => {
282
- const i = (o) => o.renderRoot?.querySelector(r) ?? null;
283
- return or(a, s, { get() {
279
+ const Re = (e, t, a) => (a.configurable = !0, a.enumerable = !0, Reflect.decorate && typeof t != "object" && Object.defineProperty(e, t, a), a);
280
+ function ee(e, t) {
281
+ return (a, s, r) => {
282
+ const i = (o) => o.renderRoot?.querySelector(e) ?? null;
283
+ return Re(a, s, { get() {
284
284
  return i(this);
285
285
  } });
286
286
  };
287
287
  }
288
- var nr = Object.defineProperty, cr = Object.getOwnPropertyDescriptor, jt = (r, t, a, s) => {
289
- for (var e = s > 1 ? void 0 : s ? cr(t, a) : t, i = r.length - 1, o; i >= 0; i--)
290
- (o = r[i]) && (e = (s ? o(t, a, e) : o(e)) || e);
291
- return s && e && nr(t, a, e), e;
288
+ const re = globalThis, ue = (e) => e, Lt = re.trustedTypes, me = Lt ? Lt.createPolicy("lit-html", { createHTML: (e) => e }) : void 0, $e = "$lit$", R = `lit$${Math.random().toFixed(9).slice(2)}$`, _e = "?" + R, Fe = `<${_e}>`, Z = document, It = () => Z.createComment(""), bt = (e) => e === null || typeof e != "object" && typeof e != "function", ae = Array.isArray, He = (e) => ae(e) || typeof e?.[Symbol.iterator] == "function", Gt = `[
289
+ \f\r]`, mt = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, fe = /-->/g, be = />/g, K = RegExp(`>|${Gt}(?:([^\\s"'>=/]+)(${Gt}*=${Gt}*(?:[^
290
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), ye = /'/g, xe = /"/g, ze = /^(?:script|style|textarea|title)$/i, lt = /* @__PURE__ */ Symbol.for("lit-noChange"), f = /* @__PURE__ */ Symbol.for("lit-nothing"), we = /* @__PURE__ */ new WeakMap(), G = Z.createTreeWalker(Z, 129);
291
+ function Ce(e, t) {
292
+ if (!ae(e) || !e.hasOwnProperty("raw")) throw Error("invalid template strings array");
293
+ return me !== void 0 ? me.createHTML(t) : t;
294
+ }
295
+ const Ye = (e, t) => {
296
+ const a = e.length - 1, s = [];
297
+ let r, i = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", o = mt;
298
+ for (let c = 0; c < a; c++) {
299
+ const p = e[c];
300
+ let g, b, u = -1, S = 0;
301
+ for (; S < p.length && (o.lastIndex = S, b = o.exec(p), b !== null); ) S = o.lastIndex, o === mt ? b[1] === "!--" ? o = fe : b[1] !== void 0 ? o = be : b[2] !== void 0 ? (ze.test(b[2]) && (r = RegExp("</" + b[2], "g")), o = K) : b[3] !== void 0 && (o = K) : o === K ? b[0] === ">" ? (o = r ?? mt, u = -1) : b[1] === void 0 ? u = -2 : (u = o.lastIndex - b[2].length, g = b[1], o = b[3] === void 0 ? K : b[3] === '"' ? xe : ye) : o === xe || o === ye ? o = K : o === fe || o === be ? o = mt : (o = K, r = void 0);
302
+ const U = o === K && e[c + 1].startsWith("/>") ? " " : "";
303
+ i += o === mt ? p + Fe : u >= 0 ? (s.push(g), p.slice(0, u) + $e + p.slice(u) + R + U) : p + R + (u === -2 ? c : U);
304
+ }
305
+ return [Ce(e, i + (e[a] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), s];
292
306
  };
293
- let st = class extends p {
307
+ class yt {
308
+ constructor({ strings: t, _$litType$: a }, s) {
309
+ let r;
310
+ this.parts = [];
311
+ let i = 0, o = 0;
312
+ const c = t.length - 1, p = this.parts, [g, b] = Ye(t, a);
313
+ if (this.el = yt.createElement(g, s), G.currentNode = this.el.content, a === 2 || a === 3) {
314
+ const u = this.el.content.firstChild;
315
+ u.replaceWith(...u.childNodes);
316
+ }
317
+ for (; (r = G.nextNode()) !== null && p.length < c; ) {
318
+ if (r.nodeType === 1) {
319
+ if (r.hasAttributes()) for (const u of r.getAttributeNames()) if (u.endsWith($e)) {
320
+ const S = b[o++], U = r.getAttribute(u).split(R), Mt = /([.?@])?(.*)/.exec(S);
321
+ p.push({ type: 1, index: i, name: Mt[2], strings: U, ctor: Mt[1] === "." ? qe : Mt[1] === "?" ? We : Mt[1] === "@" ? Xe : Wt }), r.removeAttribute(u);
322
+ } else u.startsWith(R) && (p.push({ type: 6, index: i }), r.removeAttribute(u));
323
+ if (ze.test(r.tagName)) {
324
+ const u = r.textContent.split(R), S = u.length - 1;
325
+ if (S > 0) {
326
+ r.textContent = Lt ? Lt.emptyScript : "";
327
+ for (let U = 0; U < S; U++) r.append(u[U], It()), G.nextNode(), p.push({ type: 2, index: ++i });
328
+ r.append(u[S], It());
329
+ }
330
+ }
331
+ } else if (r.nodeType === 8) if (r.data === _e) p.push({ type: 2, index: i });
332
+ else {
333
+ let u = -1;
334
+ for (; (u = r.data.indexOf(R, u + 1)) !== -1; ) p.push({ type: 7, index: i }), u += R.length - 1;
335
+ }
336
+ i++;
337
+ }
338
+ }
339
+ static createElement(t, a) {
340
+ const s = Z.createElement("template");
341
+ return s.innerHTML = t, s;
342
+ }
343
+ }
344
+ function ct(e, t, a = e, s) {
345
+ if (t === lt) return t;
346
+ let r = s !== void 0 ? a._$Co?.[s] : a._$Cl;
347
+ const i = bt(t) ? void 0 : t._$litDirective$;
348
+ return r?.constructor !== i && (r?._$AO?.(!1), i === void 0 ? r = void 0 : (r = new i(e), r._$AT(e, a, s)), s !== void 0 ? (a._$Co ??= [])[s] = r : a._$Cl = r), r !== void 0 && (t = ct(e, r._$AS(e, t.values), r, s)), t;
349
+ }
350
+ class Ve {
351
+ constructor(t, a) {
352
+ this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = a;
353
+ }
354
+ get parentNode() {
355
+ return this._$AM.parentNode;
356
+ }
357
+ get _$AU() {
358
+ return this._$AM._$AU;
359
+ }
360
+ u(t) {
361
+ const { el: { content: a }, parts: s } = this._$AD, r = (t?.creationScope ?? Z).importNode(a, !0);
362
+ G.currentNode = r;
363
+ let i = G.nextNode(), o = 0, c = 0, p = s[0];
364
+ for (; p !== void 0; ) {
365
+ if (o === p.index) {
366
+ let g;
367
+ p.type === 2 ? g = new qt(i, i.nextSibling, this, t) : p.type === 1 ? g = new p.ctor(i, p.name, p.strings, this, t) : p.type === 6 && (g = new Ke(i, this, t)), this._$AV.push(g), p = s[++c];
368
+ }
369
+ o !== p?.index && (i = G.nextNode(), o++);
370
+ }
371
+ return G.currentNode = Z, r;
372
+ }
373
+ p(t) {
374
+ let a = 0;
375
+ for (const s of this._$AV) s !== void 0 && (s.strings !== void 0 ? (s._$AI(t, s, a), a += s.strings.length - 2) : s._$AI(t[a])), a++;
376
+ }
377
+ }
378
+ class qt {
379
+ get _$AU() {
380
+ return this._$AM?._$AU ?? this._$Cv;
381
+ }
382
+ constructor(t, a, s, r) {
383
+ this.type = 2, this._$AH = f, this._$AN = void 0, this._$AA = t, this._$AB = a, this._$AM = s, this.options = r, this._$Cv = r?.isConnected ?? !0;
384
+ }
385
+ get parentNode() {
386
+ let t = this._$AA.parentNode;
387
+ const a = this._$AM;
388
+ return a !== void 0 && t?.nodeType === 11 && (t = a.parentNode), t;
389
+ }
390
+ get startNode() {
391
+ return this._$AA;
392
+ }
393
+ get endNode() {
394
+ return this._$AB;
395
+ }
396
+ _$AI(t, a = this) {
397
+ t = ct(this, t, a), bt(t) ? t === f || t == null || t === "" ? (this._$AH !== f && this._$AR(), this._$AH = f) : t !== this._$AH && t !== lt && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : He(t) ? this.k(t) : this._(t);
398
+ }
399
+ O(t) {
400
+ return this._$AA.parentNode.insertBefore(t, this._$AB);
401
+ }
402
+ T(t) {
403
+ this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
404
+ }
405
+ _(t) {
406
+ this._$AH !== f && bt(this._$AH) ? this._$AA.nextSibling.data = t : this.T(Z.createTextNode(t)), this._$AH = t;
407
+ }
408
+ $(t) {
409
+ const { values: a, _$litType$: s } = t, r = typeof s == "number" ? this._$AC(t) : (s.el === void 0 && (s.el = yt.createElement(Ce(s.h, s.h[0]), this.options)), s);
410
+ if (this._$AH?._$AD === r) this._$AH.p(a);
411
+ else {
412
+ const i = new Ve(r, this), o = i.u(this.options);
413
+ i.p(a), this.T(o), this._$AH = i;
414
+ }
415
+ }
416
+ _$AC(t) {
417
+ let a = we.get(t.strings);
418
+ return a === void 0 && we.set(t.strings, a = new yt(t)), a;
419
+ }
420
+ k(t) {
421
+ ae(this._$AH) || (this._$AH = [], this._$AR());
422
+ const a = this._$AH;
423
+ let s, r = 0;
424
+ for (const i of t) r === a.length ? a.push(s = new qt(this.O(It()), this.O(It()), this, this.options)) : s = a[r], s._$AI(i), r++;
425
+ r < a.length && (this._$AR(s && s._$AB.nextSibling, r), a.length = r);
426
+ }
427
+ _$AR(t = this._$AA.nextSibling, a) {
428
+ for (this._$AP?.(!1, !0, a); t !== this._$AB; ) {
429
+ const s = ue(t).nextSibling;
430
+ ue(t).remove(), t = s;
431
+ }
432
+ }
433
+ setConnected(t) {
434
+ this._$AM === void 0 && (this._$Cv = t, this._$AP?.(t));
435
+ }
436
+ }
437
+ class Wt {
438
+ get tagName() {
439
+ return this.element.tagName;
440
+ }
441
+ get _$AU() {
442
+ return this._$AM._$AU;
443
+ }
444
+ constructor(t, a, s, r, i) {
445
+ this.type = 1, this._$AH = f, this._$AN = void 0, this.element = t, this.name = a, this._$AM = r, this.options = i, s.length > 2 || s[0] !== "" || s[1] !== "" ? (this._$AH = Array(s.length - 1).fill(new String()), this.strings = s) : this._$AH = f;
446
+ }
447
+ _$AI(t, a = this, s, r) {
448
+ const i = this.strings;
449
+ let o = !1;
450
+ if (i === void 0) t = ct(this, t, a, 0), o = !bt(t) || t !== this._$AH && t !== lt, o && (this._$AH = t);
451
+ else {
452
+ const c = t;
453
+ let p, g;
454
+ for (t = i[0], p = 0; p < i.length - 1; p++) g = ct(this, c[s + p], a, p), g === lt && (g = this._$AH[p]), o ||= !bt(g) || g !== this._$AH[p], g === f ? t = f : t !== f && (t += (g ?? "") + i[p + 1]), this._$AH[p] = g;
455
+ }
456
+ o && !r && this.j(t);
457
+ }
458
+ j(t) {
459
+ t === f ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
460
+ }
461
+ }
462
+ class qe extends Wt {
294
463
  constructor() {
295
- super(...arguments), this.name = "", this.size = "md", this.icons = {
296
- checkmark: "✓",
297
- check: "✓",
298
- close: "✕",
299
- x: "✕",
300
- plus: "+",
301
- minus: "−",
302
- search: "⌕",
303
- "arrow-right": "→",
304
- "arrow-left": "←",
305
- "arrow-up": "↑",
306
- "arrow-down": "↓",
307
- download: "⬇",
308
- upload: "⬆",
309
- folder: "📁",
310
- file: "📄",
311
- trash: "🗑",
312
- delete: "🗑",
313
- edit: "✎",
314
- pencil: "✎",
315
- eye: "◉",
316
- menu: "☰",
317
- hamburger: "☰",
318
- settings: "⚙",
319
- gear: "",
320
- star: "★",
321
- heart: "♥",
322
- play: "►",
323
- pause: "❚❚",
324
- stop: "■",
325
- prev: "◄◄",
326
- next: "►►",
327
- rewind: "◄◄",
328
- forward: "►►",
329
- volume: "🔊",
330
- "volume-mute": "🔇",
331
- music: "♫"
332
- };
464
+ super(...arguments), this.type = 3;
465
+ }
466
+ j(t) {
467
+ this.element[this.name] = t === f ? void 0 : t;
468
+ }
469
+ }
470
+ class We extends Wt {
471
+ constructor() {
472
+ super(...arguments), this.type = 4;
473
+ }
474
+ j(t) {
475
+ this.element.toggleAttribute(this.name, !!t && t !== f);
476
+ }
477
+ }
478
+ class Xe extends Wt {
479
+ constructor(t, a, s, r, i) {
480
+ super(t, a, s, r, i), this.type = 5;
481
+ }
482
+ _$AI(t, a = this) {
483
+ if ((t = ct(this, t, a, 0) ?? f) === lt) return;
484
+ const s = this._$AH, r = t === f && s !== f || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive, i = t !== f && (s === f || r);
485
+ r && this.element.removeEventListener(this.name, this, s), i && this.element.addEventListener(this.name, this, t), this._$AH = t;
486
+ }
487
+ handleEvent(t) {
488
+ typeof this._$AH == "function" ? this._$AH.call(this.options?.host ?? this.element, t) : this._$AH.handleEvent(t);
489
+ }
490
+ }
491
+ class Ke {
492
+ constructor(t, a, s) {
493
+ this.element = t, this.type = 6, this._$AN = void 0, this._$AM = a, this.options = s;
494
+ }
495
+ get _$AU() {
496
+ return this._$AM._$AU;
497
+ }
498
+ _$AI(t) {
499
+ ct(this, t);
500
+ }
501
+ }
502
+ const Ge = re.litHtmlPolyfillSupport;
503
+ Ge?.(yt, qt), (re.litHtmlVersions ??= []).push("3.3.2");
504
+ const Ze = { CHILD: 2 }, Qe = (e) => (...t) => ({ _$litDirective$: e, values: t });
505
+ class Je {
506
+ constructor(t) {
507
+ }
508
+ get _$AU() {
509
+ return this._$AM._$AU;
510
+ }
511
+ _$AT(t, a, s) {
512
+ this._$Ct = t, this._$AM = a, this._$Ci = s;
513
+ }
514
+ _$AS(t, a) {
515
+ return this.update(t, a);
516
+ }
517
+ update(t, a) {
518
+ return this.render(...a);
519
+ }
520
+ }
521
+ class Zt extends Je {
522
+ constructor(t) {
523
+ if (super(t), this.it = f, t.type !== Ze.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
524
+ }
525
+ render(t) {
526
+ if (t === f || t == null) return this._t = void 0, this.it = t;
527
+ if (t === lt) return t;
528
+ if (typeof t != "string") throw Error(this.constructor.directiveName + "() called with a non-string value");
529
+ if (t === this.it) return this._t;
530
+ this.it = t;
531
+ const a = [t];
532
+ return a.raw = a, this._t = { _$litType$: this.constructor.resultType, strings: a, values: [] };
533
+ }
534
+ }
535
+ Zt.directiveName = "unsafeHTML", Zt.resultType = 1;
536
+ const tr = Qe(Zt);
537
+ var er = Object.defineProperty, rr = Object.getOwnPropertyDescriptor, se = (e, t, a, s) => {
538
+ for (var r = s > 1 ? void 0 : s ? rr(t, a) : t, i = e.length - 1, o; i >= 0; i--)
539
+ (o = e[i]) && (r = (s ? o(t, a, r) : o(r)) || r);
540
+ return s && r && er(t, a, r), r;
541
+ };
542
+ const ar = {
543
+ check: '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><path d="M20 6L9 17l-5-5"/></svg>',
544
+ checkmark: '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><path d="M20 6L9 17l-5-5"/></svg>',
545
+ close: '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><path d="M18 6L6 18M6 6l12 12"/></svg>',
546
+ x: '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><path d="M18 6L6 18M6 6l12 12"/></svg>',
547
+ plus: '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><path d="M12 5v14M5 12h14"/></svg>',
548
+ minus: '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><path d="M5 12h14"/></svg>',
549
+ search: '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><circle cx="11" cy="11" r="7"/><path d="M21 21l-4.35-4.35"/></svg>',
550
+ "arrow-right": '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><path d="M5 12h14"/><path d="M13 5l7 7-7 7"/></svg>',
551
+ "arrow-left": '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><path d="M19 12H5"/><path d="M11 19l-7-7 7-7"/></svg>',
552
+ "arrow-up": '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><path d="M12 19V5"/><path d="M5 12l7-7 7 7"/></svg>',
553
+ "arrow-down": '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><path d="M12 5v14"/><path d="M19 12l-7 7-7-7"/></svg>',
554
+ download: '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/><path d="M7 10l5 5 5-5"/><path d="M12 15V3"/></svg>',
555
+ upload: '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><path d="M21 9V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v4"/><path d="M7 14l5-5 5 5"/><path d="M12 9v12"/></svg>',
556
+ folder: '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><path d="M3 7a2 2 0 0 1 2-2h4l2 2h8a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"/></svg>',
557
+ file: '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"/><path d="M14 2v6h6"/></svg>',
558
+ trash: '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><polyline points="3 6 5 6 21 6"/><path d="M19 6l-1 14a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2L5 6"/><path d="M10 11v6M14 11v6"/></svg>',
559
+ delete: '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><polyline points="3 6 5 6 21 6"/><path d="M19 6l-1 14a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2L5 6"/><path d="M10 11v6M14 11v6"/></svg>',
560
+ edit: '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><path d="M12 20h9"/><path d="M16.5 3.5a2.1 2.1 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z"/></svg>',
561
+ pencil: '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><path d="M12 20h9"/><path d="M16.5 3.5a2.1 2.1 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z"/></svg>',
562
+ eye: '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><path d="M1 12s4-7 11-7 11 7 11 7-4 7-11 7S1 12 1 12z"/><circle cx="12" cy="12" r="3"/></svg>',
563
+ menu: '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><path d="M3 12h18M3 6h18M3 18h18"/></svg>',
564
+ hamburger: '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><path d="M3 12h18M3 6h18M3 18h18"/></svg>',
565
+ settings: '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><path d="M19.43 12.98c.04-.32.07-.66.07-.98s-.03-.66-.07-.98l2.11-1.65a.5.5 0 0 0 .12-.64l-2-3.46a.5.5 0 0 0-.6-.22l-2.49 1a7.03 7.03 0 0 0-1.7-.98l-.38-2.65A.5.5 0 0 0 13.5 2h-4a.5.5 0 0 0-.5.42l-.38 2.65c-.61.24-1.18.56-1.7.98l-2.49-1a.5.5 0 0 0-.6.22l-2 3.46a.5.5 0 0 0 .12.64L4.57 11c-.04.32-.07.66-.07.98s.03.66.07.98L2.46 14.6a.5.5 0 0 0-.12.64l2 3.46c.14.24.44.34.7.22l2.49-1c.52.42 1.09.74 1.7.98l.38 2.65c.05.28.29.42.5.42h4c.21 0 .45-.14.5-.42l.38-2.65c.61-.24 1.18-.56 1.7-.98l2.49 1c.26.12.56.02.7-.22l2-3.46a.5.5 0 0 0-.12-.64L19.43 12.98z"/><circle cx="12" cy="12" r="3"/></svg>',
566
+ gear: '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><path d="M19.43 12.98c.04-.32.07-.66.07-.98s-.03-.66-.07-.98l2.11-1.65a.5.5 0 0 0 .12-.64l-2-3.46a.5.5 0 0 0-.6-.22l-2.49 1a7.03 7.03 0 0 0-1.7-.98l-.38-2.65A.5.5 0 0 0 13.5 2h-4a.5.5 0 0 0-.5.42l-.38 2.65c-.61.24-1.18.56-1.7.98l-2.49-1a.5.5 0 0 0-.6.22l-2 3.46a.5.5 0 0 0 .12.64L4.57 11c-.04.32-.07.66-.07.98s.03.66.07.98L2.46 14.6a.5.5 0 0 0-.12.64l2 3.46c.14.24.44.34.7.22l2.49-1c.52.42 1.09.74 1.7.98l.38 2.65c.05.28.29.42.5.42h4c.21 0 .45-.14.5-.42l.38-2.65c.61-.24 1.18-.56 1.7-.98l2.49 1c.26.12.56.02.7-.22l2-3.46a.5.5 0 0 0-.12-.64L19.43 12.98z"/><circle cx="12" cy="12" r="3"/></svg>',
567
+ star: '<svg viewBox="0 0 24 24" fill="currentColor" stroke="currentColor" stroke-width="0" xmlns="http://www.w3.org/2000/svg"><path d="M12 .587l3.668 7.431L23.4 9.75l-5.6 5.455L18.335 24 12 19.897 5.665 24l.535-8.795L.6 9.75l7.732-1.732L12 .587z"/></svg>',
568
+ heart: '<svg viewBox="0 0 24 24" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path d="M12 21s-7-4.35-9.2-7.1C.8 11.9 2 7.9 5 6.4 7 5.3 9.6 6 12 8.2 14.4 6 17 5.3 19 6.4c3 1.5 4.2 5.5 2.2 7.5C19 16.65 12 21 12 21z"/></svg>',
569
+ play: '<svg viewBox="0 0 24 24" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path d="M5 3v18l15-9L5 3z"/></svg>',
570
+ pause: '<svg viewBox="0 0 24 24" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><rect x="6" y="4" width="4" height="16"/><rect x="14" y="4" width="4" height="16"/></svg>',
571
+ stop: '<svg viewBox="0 0 24 24" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><rect x="6" y="6" width="12" height="12"/></svg>',
572
+ prev: '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><path d="M11 19l-7-7 7-7"/><path d="M18 19l-7-7 7-7"/></svg>',
573
+ next: '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><path d="M13 5l7 7-7 7"/><path d="M6 5l7 7-7 7"/></svg>',
574
+ rewind: '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><path d="M11 19l-7-7 7-7"/><path d="M18 19l-7-7 7-7"/></svg>',
575
+ forward: '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><path d="M13 5l7 7-7 7"/><path d="M6 5l7 7-7 7"/></svg>',
576
+ volume: '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><polygon points="11 5 6 9 2 9 2 15 6 15 11 19 11 5"/><path d="M19 5a4 4 0 0 1 0 14"/></svg>',
577
+ "volume-mute": '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><polygon points="11 5 6 9 2 9 2 15 6 15 11 19 11 5"/><line x1="23" y1="9" x2="17" y2="15"/></svg>',
578
+ music: '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><path d="M9 18V5l12-2v13"/><circle cx="6" cy="18" r="3"/><circle cx="18" cy="16" r="3"/></svg>'
579
+ };
580
+ let xt = class extends h {
581
+ constructor() {
582
+ super(...arguments), this.name = "", this.size = "md";
333
583
  }
334
584
  render() {
335
- return c`<span class="icon">${this.icons[this.name] || "?"}</span>`;
585
+ const e = ar[this.name] || '<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><text x="0" y="14">?</text></svg>';
586
+ return l`<span class="icon" aria-hidden="true">${tr(e)}</span>`;
336
587
  }
337
588
  };
338
- st.styles = l`
589
+ xt.styles = d`
339
590
  :host {
340
591
  display: inline-flex;
341
592
  align-items: center;
@@ -352,21 +603,21 @@ st.styles = l`
352
603
  height: 100%;
353
604
  }
354
605
  `;
355
- jt([
606
+ se([
356
607
  n()
357
- ], st.prototype, "name", 2);
358
- jt([
608
+ ], xt.prototype, "name", 2);
609
+ se([
359
610
  n()
360
- ], st.prototype, "size", 2);
361
- st = jt([
362
- d("crt-icon")
363
- ], st);
364
- var lr = Object.defineProperty, pr = Object.getOwnPropertyDescriptor, F = (r, t, a, s) => {
365
- for (var e = s > 1 ? void 0 : s ? pr(t, a) : t, i = r.length - 1, o; i >= 0; i--)
366
- (o = r[i]) && (e = (s ? o(t, a, e) : o(e)) || e);
367
- return s && e && lr(t, a, e), e;
611
+ ], xt.prototype, "size", 2);
612
+ xt = se([
613
+ v("crt-icon")
614
+ ], xt);
615
+ var sr = Object.defineProperty, ir = Object.getOwnPropertyDescriptor, X = (e, t, a, s) => {
616
+ for (var r = s > 1 ? void 0 : s ? ir(t, a) : t, i = e.length - 1, o; i >= 0; i--)
617
+ (o = e[i]) && (r = (s ? o(t, a, r) : o(r)) || r);
618
+ return s && r && sr(t, a, r), r;
368
619
  };
369
- let w = class extends p {
620
+ let z = class extends h {
370
621
  constructor() {
371
622
  super(), this.size = "medium", this.variant = "primary", this.disabled = !1, this.type = "button", this.iconOnly = !1, this.iconLeft = "", this.iconRight = "", console.log("Button constructor called");
372
623
  }
@@ -375,23 +626,23 @@ let w = class extends p {
375
626
  }
376
627
  render() {
377
628
  if (console.log("Button render called"), this.iconOnly) {
378
- const r = this.iconLeft || this.iconRight;
379
- return c`
629
+ const e = this.iconLeft || this.iconRight;
630
+ return l`
380
631
  <button type="${this.type}" ?disabled="${this.disabled}">
381
- ${r ? c`<crt-icon name="${r}"></crt-icon>` : c`<slot></slot>`}
632
+ ${e ? l`<crt-icon name="${e}"></crt-icon>` : l`<slot></slot>`}
382
633
  </button>
383
634
  `;
384
635
  }
385
- return c`
636
+ return l`
386
637
  <button type="${this.type}" ?disabled="${this.disabled}">
387
- ${this.iconLeft ? c`<crt-icon name="${this.iconLeft}"></crt-icon>` : ""}
638
+ ${this.iconLeft ? l`<crt-icon name="${this.iconLeft}"></crt-icon>` : ""}
388
639
  <slot></slot>
389
- ${this.iconRight ? c`<crt-icon name="${this.iconRight}"></crt-icon>` : ""}
640
+ ${this.iconRight ? l`<crt-icon name="${this.iconRight}"></crt-icon>` : ""}
390
641
  </button>
391
642
  `;
392
643
  }
393
644
  };
394
- w.styles = l`
645
+ z.styles = d`
395
646
  :host {
396
647
  display: inline-block;
397
648
  }
@@ -400,6 +651,8 @@ w.styles = l`
400
651
  background-color: transparent;
401
652
  color: #33ff33;
402
653
  border: 2px solid #33ff33;
654
+ box-sizing: border-box;
655
+ height: 100%;
403
656
  padding: 16px 32px;
404
657
  font-family: 'VT323', 'Courier New', monospace;
405
658
  font-size: 1rem;
@@ -545,44 +798,44 @@ w.styles = l`
545
798
  flex-shrink: 0;
546
799
  }
547
800
  `;
548
- F([
801
+ X([
549
802
  n({ reflect: !0 })
550
- ], w.prototype, "size", 2);
551
- F([
803
+ ], z.prototype, "size", 2);
804
+ X([
552
805
  n({ reflect: !0 })
553
- ], w.prototype, "variant", 2);
554
- F([
806
+ ], z.prototype, "variant", 2);
807
+ X([
555
808
  n({ type: Boolean })
556
- ], w.prototype, "disabled", 2);
557
- F([
809
+ ], z.prototype, "disabled", 2);
810
+ X([
558
811
  n()
559
- ], w.prototype, "type", 2);
560
- F([
812
+ ], z.prototype, "type", 2);
813
+ X([
561
814
  n({ attribute: "icon-only", type: Boolean })
562
- ], w.prototype, "iconOnly", 2);
563
- F([
815
+ ], z.prototype, "iconOnly", 2);
816
+ X([
564
817
  n({ attribute: "icon-left" })
565
- ], w.prototype, "iconLeft", 2);
566
- F([
818
+ ], z.prototype, "iconLeft", 2);
819
+ X([
567
820
  n({ attribute: "icon-right" })
568
- ], w.prototype, "iconRight", 2);
569
- w = F([
570
- d("crt-button")
571
- ], w);
572
- var dr = Object.defineProperty, hr = Object.getOwnPropertyDescriptor, Xt = (r, t, a, s) => {
573
- for (var e = s > 1 ? void 0 : s ? hr(t, a) : t, i = r.length - 1, o; i >= 0; i--)
574
- (o = r[i]) && (e = (s ? o(t, a, e) : o(e)) || e);
575
- return s && e && dr(t, a, e), e;
821
+ ], z.prototype, "iconRight", 2);
822
+ z = X([
823
+ v("crt-button")
824
+ ], z);
825
+ var or = Object.defineProperty, nr = Object.getOwnPropertyDescriptor, Oe = (e, t, a, s) => {
826
+ for (var r = s > 1 ? void 0 : s ? nr(t, a) : t, i = e.length - 1, o; i >= 0; i--)
827
+ (o = e[i]) && (r = (s ? o(t, a, r) : o(r)) || r);
828
+ return s && r && or(t, a, r), r;
576
829
  };
577
- let yt = class extends p {
830
+ let Bt = class extends h {
578
831
  constructor() {
579
832
  super(...arguments), this.variant = "primary";
580
833
  }
581
834
  render() {
582
- return c`<span class="badge"><slot></slot></span>`;
835
+ return l`<span class="badge"><slot></slot></span>`;
583
836
  }
584
837
  };
585
- yt.styles = l`
838
+ Bt.styles = d`
586
839
  :host {
587
840
  --badge-bg: transparent;
588
841
  --badge-color: var(--crt-primary);
@@ -623,41 +876,41 @@ yt.styles = l`
623
876
  --badge-border: 1px solid var(--crt-info);
624
877
  }
625
878
  `;
626
- Xt([
879
+ Oe([
627
880
  n()
628
- ], yt.prototype, "variant", 2);
629
- yt = Xt([
630
- d("crt-badge")
631
- ], yt);
632
- var vr = Object.defineProperty, gr = Object.getOwnPropertyDescriptor, Pt = (r, t, a, s) => {
633
- for (var e = s > 1 ? void 0 : s ? gr(t, a) : t, i = r.length - 1, o; i >= 0; i--)
634
- (o = r[i]) && (e = (s ? o(t, a, e) : o(e)) || e);
635
- return s && e && vr(t, a, e), e;
881
+ ], Bt.prototype, "variant", 2);
882
+ Bt = Oe([
883
+ v("crt-badge")
884
+ ], Bt);
885
+ var lr = Object.defineProperty, cr = Object.getOwnPropertyDescriptor, Xt = (e, t, a, s) => {
886
+ for (var r = s > 1 ? void 0 : s ? cr(t, a) : t, i = e.length - 1, o; i >= 0; i--)
887
+ (o = e[i]) && (r = (s ? o(t, a, r) : o(r)) || r);
888
+ return s && r && lr(t, a, r), r;
636
889
  };
637
- let xt = class extends p {
890
+ let Nt = class extends h {
638
891
  constructor() {
639
892
  super(...arguments), this.level = 1;
640
893
  }
641
894
  render() {
642
895
  switch (this.level) {
643
896
  case 1:
644
- return c`<h1><slot></slot></h1>`;
897
+ return l`<h1><slot></slot></h1>`;
645
898
  case 2:
646
- return c`<h2><slot></slot></h2>`;
899
+ return l`<h2><slot></slot></h2>`;
647
900
  case 3:
648
- return c`<h3><slot></slot></h3>`;
901
+ return l`<h3><slot></slot></h3>`;
649
902
  case 4:
650
- return c`<h4><slot></slot></h4>`;
903
+ return l`<h4><slot></slot></h4>`;
651
904
  case 5:
652
- return c`<h5><slot></slot></h5>`;
905
+ return l`<h5><slot></slot></h5>`;
653
906
  case 6:
654
- return c`<h6><slot></slot></h6>`;
907
+ return l`<h6><slot></slot></h6>`;
655
908
  default:
656
- return c`<h1><slot></slot></h1>`;
909
+ return l`<h1><slot></slot></h1>`;
657
910
  }
658
911
  }
659
912
  };
660
- xt.styles = l`
913
+ Nt.styles = d`
661
914
  h1, h2, h3, h4, h5, h6 {
662
915
  font-family: var(--crt-font-family);
663
916
  color: var(--crt-text-primary);
@@ -686,21 +939,21 @@ xt.styles = l`
686
939
  font-size: var(--crt-font-size-base);
687
940
  }
688
941
  `;
689
- Pt([
942
+ Xt([
690
943
  n({ type: Number })
691
- ], xt.prototype, "level", 2);
692
- xt = Pt([
693
- d("crt-heading")
694
- ], xt);
695
- let wt = class extends p {
944
+ ], Nt.prototype, "level", 2);
945
+ Nt = Xt([
946
+ v("crt-heading")
947
+ ], Nt);
948
+ let Ut = class extends h {
696
949
  constructor() {
697
950
  super(...arguments), this.muted = !1;
698
951
  }
699
952
  render() {
700
- return c`<p><slot></slot></p>`;
953
+ return l`<p><slot></slot></p>`;
701
954
  }
702
955
  };
703
- wt.styles = l`
956
+ Ut.styles = d`
704
957
  p {
705
958
  font-family: var(--crt-font-family);
706
959
  color: var(--crt-text-secondary);
@@ -712,43 +965,43 @@ wt.styles = l`
712
965
  color: var(--crt-text-muted);
713
966
  }
714
967
  `;
715
- Pt([
968
+ Xt([
716
969
  n()
717
- ], wt.prototype, "muted", 2);
718
- wt = Pt([
719
- d("crt-text")
720
- ], wt);
721
- var ur = Object.defineProperty, mr = Object.getOwnPropertyDescriptor, At = (r, t, a, s) => {
722
- for (var e = s > 1 ? void 0 : s ? mr(t, a) : t, i = r.length - 1, o; i >= 0; i--)
723
- (o = r[i]) && (e = (s ? o(t, a, e) : o(e)) || e);
724
- return s && e && ur(t, a, e), e;
970
+ ], Ut.prototype, "muted", 2);
971
+ Ut = Xt([
972
+ v("crt-text")
973
+ ], Ut);
974
+ var pr = Object.defineProperty, dr = Object.getOwnPropertyDescriptor, ie = (e, t, a, s) => {
975
+ for (var r = s > 1 ? void 0 : s ? dr(t, a) : t, i = e.length - 1, o; i >= 0; i--)
976
+ (o = e[i]) && (r = (s ? o(t, a, r) : o(r)) || r);
977
+ return s && r && pr(t, a, r), r;
725
978
  };
726
- let it = class extends p {
979
+ let wt = class extends h {
727
980
  constructor() {
728
981
  super(...arguments), this.activeTab = 0, this.tabs = [];
729
982
  }
730
- selectTab(r) {
731
- this.activeTab = r;
983
+ selectTab(e) {
984
+ this.activeTab = e;
732
985
  }
733
986
  render() {
734
- return c`
987
+ return l`
735
988
  <div class="tabs-header">
736
989
  ${this.tabs.map(
737
- (r, t) => c`
990
+ (e, t) => l`
738
991
  <button
739
992
  class="tab-button ${t === this.activeTab ? "active" : ""}"
740
993
  @click="${() => this.selectTab(t)}"
741
994
  >
742
- ${r.label}
995
+ ${e.label}
743
996
  </button>
744
997
  `
745
998
  )}
746
999
  </div>
747
1000
  <div class="tabs-content">
748
1001
  ${this.tabs.map(
749
- (r, t) => c`
1002
+ (e, t) => l`
750
1003
  <div class="tab-pane ${t === this.activeTab ? "active" : ""}">
751
- ${r.label.toLowerCase() === "code" ? c`<pre><code>${r.content}</code></pre>` : c`<div>${br(r.content)}</div>`}
1004
+ ${e.label.toLowerCase() === "code" ? l`<pre><code>${e.content}</code></pre>` : l`<div>${hr(e.content)}</div>`}
752
1005
  </div>
753
1006
  `
754
1007
  )}
@@ -756,7 +1009,7 @@ let it = class extends p {
756
1009
  `;
757
1010
  }
758
1011
  };
759
- it.styles = l`
1012
+ wt.styles = d`
760
1013
  :host {
761
1014
  display: block;
762
1015
  }
@@ -823,43 +1076,43 @@ it.styles = l`
823
1076
  font-family: var(--crt-font-family);
824
1077
  }
825
1078
  `;
826
- At([
827
- v()
828
- ], it.prototype, "activeTab", 2);
829
- At([
1079
+ ie([
1080
+ m()
1081
+ ], wt.prototype, "activeTab", 2);
1082
+ ie([
830
1083
  n({ type: Array })
831
- ], it.prototype, "tabs", 2);
832
- it = At([
833
- d("crt-tabs")
834
- ], it);
835
- function br(r) {
1084
+ ], wt.prototype, "tabs", 2);
1085
+ wt = ie([
1086
+ v("crt-tabs")
1087
+ ], wt);
1088
+ function hr(e) {
836
1089
  const t = document.createElement("div");
837
- return t.innerHTML = r, t;
1090
+ return t.innerHTML = e, t;
838
1091
  }
839
- var fr = Object.defineProperty, yr = Object.getOwnPropertyDescriptor, k = (r, t, a, s) => {
840
- for (var e = s > 1 ? void 0 : s ? yr(t, a) : t, i = r.length - 1, o; i >= 0; i--)
841
- (o = r[i]) && (e = (s ? o(t, a, e) : o(e)) || e);
842
- return s && e && fr(t, a, e), e;
1092
+ var vr = Object.defineProperty, gr = Object.getOwnPropertyDescriptor, C = (e, t, a, s) => {
1093
+ for (var r = s > 1 ? void 0 : s ? gr(t, a) : t, i = e.length - 1, o; i >= 0; i--)
1094
+ (o = e[i]) && (r = (s ? o(t, a, r) : o(r)) || r);
1095
+ return s && r && vr(t, a, r), r;
843
1096
  };
844
- let B = class extends p {
1097
+ let Q = class extends h {
845
1098
  constructor() {
846
1099
  super(...arguments), this.type = "text", this.placeholder = "", this.value = "", this.disabled = !1;
847
1100
  }
848
1101
  render() {
849
- return c`
1102
+ return l`
850
1103
  <input
851
1104
  type="${this.type}"
852
1105
  placeholder="${this.placeholder}"
853
1106
  value="${this.value}"
854
1107
  ?disabled="${this.disabled}"
855
- @input="${(r) => {
856
- this.value = r.target.value;
1108
+ @input="${(e) => {
1109
+ this.value = e.target.value;
857
1110
  }}"
858
1111
  />
859
1112
  `;
860
1113
  }
861
1114
  };
862
- B.styles = l`
1115
+ Q.styles = d`
863
1116
  :host {
864
1117
  display: block;
865
1118
  }
@@ -905,33 +1158,33 @@ B.styles = l`
905
1158
  padding-right: var(--crt-spacing-lg);
906
1159
  }
907
1160
  `;
908
- k([
1161
+ C([
909
1162
  n()
910
- ], B.prototype, "type", 2);
911
- k([
1163
+ ], Q.prototype, "type", 2);
1164
+ C([
912
1165
  n()
913
- ], B.prototype, "placeholder", 2);
914
- k([
1166
+ ], Q.prototype, "placeholder", 2);
1167
+ C([
915
1168
  n()
916
- ], B.prototype, "value", 2);
917
- k([
1169
+ ], Q.prototype, "value", 2);
1170
+ C([
918
1171
  n()
919
- ], B.prototype, "disabled", 2);
920
- B = k([
921
- d("crt-input")
922
- ], B);
923
- let Y = class extends p {
1172
+ ], Q.prototype, "disabled", 2);
1173
+ Q = C([
1174
+ v("crt-input")
1175
+ ], Q);
1176
+ let J = class extends h {
924
1177
  constructor() {
925
1178
  super(...arguments), this.placeholder = "", this.value = "", this.disabled = !1, this.rows = 4;
926
1179
  }
927
1180
  render() {
928
- return c`
1181
+ return l`
929
1182
  <textarea
930
1183
  placeholder="${this.placeholder}"
931
1184
  rows="${this.rows}"
932
1185
  ?disabled="${this.disabled}"
933
- @input="${(r) => {
934
- this.value = r.target.value;
1186
+ @input="${(e) => {
1187
+ this.value = e.target.value;
935
1188
  }}"
936
1189
  >
937
1190
  ${this.value}</textarea
@@ -939,7 +1192,7 @@ ${this.value}</textarea
939
1192
  `;
940
1193
  }
941
1194
  };
942
- Y.styles = l`
1195
+ J.styles = d`
943
1196
  :host {
944
1197
  display: block;
945
1198
  }
@@ -981,41 +1234,41 @@ Y.styles = l`
981
1234
  border-style: dashed;
982
1235
  }
983
1236
  `;
984
- k([
1237
+ C([
985
1238
  n()
986
- ], Y.prototype, "placeholder", 2);
987
- k([
1239
+ ], J.prototype, "placeholder", 2);
1240
+ C([
988
1241
  n()
989
- ], Y.prototype, "value", 2);
990
- k([
1242
+ ], J.prototype, "value", 2);
1243
+ C([
991
1244
  n()
992
- ], Y.prototype, "disabled", 2);
993
- k([
1245
+ ], J.prototype, "disabled", 2);
1246
+ C([
994
1247
  n()
995
- ], Y.prototype, "rows", 2);
996
- Y = k([
997
- d("crt-textarea")
998
- ], Y);
999
- var xr = Object.defineProperty, wr = Object.getOwnPropertyDescriptor, tt = (r, t, a, s) => {
1000
- for (var e = s > 1 ? void 0 : s ? wr(t, a) : t, i = r.length - 1, o; i >= 0; i--)
1001
- (o = r[i]) && (e = (s ? o(t, a, e) : o(e)) || e);
1002
- return s && e && xr(t, a, e), e;
1248
+ ], J.prototype, "rows", 2);
1249
+ J = C([
1250
+ v("crt-textarea")
1251
+ ], J);
1252
+ var ur = Object.defineProperty, mr = Object.getOwnPropertyDescriptor, ht = (e, t, a, s) => {
1253
+ for (var r = s > 1 ? void 0 : s ? mr(t, a) : t, i = e.length - 1, o; i >= 0; i--)
1254
+ (o = e[i]) && (r = (s ? o(t, a, r) : o(r)) || r);
1255
+ return s && r && ur(t, a, r), r;
1003
1256
  };
1004
- let I = class extends p {
1257
+ let F = class extends h {
1005
1258
  constructor() {
1006
1259
  super(...arguments), this.href = "#", this.target = "", this.iconLeft = !1, this.iconRight = !1, this.icon = "";
1007
1260
  }
1008
1261
  render() {
1009
- return c`
1262
+ return l`
1010
1263
  <a href="${this.href}" ${this.target ? `target="${this.target}"` : ""}>
1011
- ${this.iconLeft ? c`<crt-icon name="${this.icon}"></crt-icon>` : ""}
1264
+ ${this.iconLeft ? l`<crt-icon name="${this.icon}"></crt-icon>` : ""}
1012
1265
  <slot></slot>
1013
- ${this.iconRight ? c`<crt-icon name="${this.icon}"></crt-icon>` : ""}
1266
+ ${this.iconRight ? l`<crt-icon name="${this.icon}"></crt-icon>` : ""}
1014
1267
  </a>
1015
1268
  `;
1016
1269
  }
1017
1270
  };
1018
- I.styles = l`
1271
+ F.styles = d`
1019
1272
  :host {
1020
1273
  --crt-link-color: var(--crt-primary);
1021
1274
  }
@@ -1041,38 +1294,38 @@ I.styles = l`
1041
1294
  color: var(--crt-primary-dark);
1042
1295
  }
1043
1296
  `;
1044
- tt([
1297
+ ht([
1045
1298
  n({ type: String })
1046
- ], I.prototype, "href", 2);
1047
- tt([
1299
+ ], F.prototype, "href", 2);
1300
+ ht([
1048
1301
  n({ type: String })
1049
- ], I.prototype, "target", 2);
1050
- tt([
1302
+ ], F.prototype, "target", 2);
1303
+ ht([
1051
1304
  n({ type: Boolean })
1052
- ], I.prototype, "iconLeft", 2);
1053
- tt([
1305
+ ], F.prototype, "iconLeft", 2);
1306
+ ht([
1054
1307
  n({ type: Boolean })
1055
- ], I.prototype, "iconRight", 2);
1056
- tt([
1308
+ ], F.prototype, "iconRight", 2);
1309
+ ht([
1057
1310
  n({ type: String })
1058
- ], I.prototype, "icon", 2);
1059
- I = tt([
1060
- d("crt-link")
1061
- ], I);
1062
- var kr = Object.defineProperty, $r = Object.getOwnPropertyDescriptor, H = (r, t, a, s) => {
1063
- for (var e = s > 1 ? void 0 : s ? $r(t, a) : t, i = r.length - 1, o; i >= 0; i--)
1064
- (o = r[i]) && (e = (s ? o(t, a, e) : o(e)) || e);
1065
- return s && e && kr(t, a, e), e;
1311
+ ], F.prototype, "icon", 2);
1312
+ F = ht([
1313
+ v("crt-link")
1314
+ ], F);
1315
+ var fr = Object.defineProperty, br = Object.getOwnPropertyDescriptor, st = (e, t, a, s) => {
1316
+ for (var r = s > 1 ? void 0 : s ? br(t, a) : t, i = e.length - 1, o; i >= 0; i--)
1317
+ (o = e[i]) && (r = (s ? o(t, a, r) : o(r)) || r);
1318
+ return s && r && fr(t, a, r), r;
1066
1319
  };
1067
- let P = class extends p {
1320
+ let E = class extends h {
1068
1321
  constructor() {
1069
- super(...arguments), this.accept = "", this.multiple = !0, this.name = "", this.maxSize = 10485760, this.maxFiles = 10, this.files = [], this._handleFileSelect = (r) => {
1070
- const t = r.target;
1322
+ super(...arguments), this.accept = "", this.multiple = !0, this.name = "", this.maxSize = 10485760, this.maxFiles = 10, this.files = [], this._handleFileSelect = (e) => {
1323
+ const t = e.target;
1071
1324
  t.files && (this._addFiles(Array.from(t.files)), t.value = "");
1072
1325
  }, this._handleUploadClick = () => {
1073
1326
  this.shadowRoot?.querySelector('input[type="file"]')?.click();
1074
- }, this._handleRemoveFile = (r) => {
1075
- this.files = this.files.filter((t) => t.id !== r), this.dispatchEvent(new CustomEvent("files-changed", {
1327
+ }, this._handleRemoveFile = (e) => {
1328
+ this.files = this.files.filter((t) => t.id !== e), this.dispatchEvent(new CustomEvent("files-changed", {
1076
1329
  detail: { files: this.files.map((t) => t.file) }
1077
1330
  }));
1078
1331
  }, this._handleClearAll = () => {
@@ -1090,44 +1343,44 @@ let P = class extends p {
1090
1343
  _generateId() {
1091
1344
  return Math.random().toString(36).substring(2, 9);
1092
1345
  }
1093
- _addFiles(r) {
1094
- const s = r.filter((e) => {
1095
- if (e.size > this.maxSize)
1096
- return console.warn(`File ${e.name} exceeds max size`), !1;
1346
+ _addFiles(e) {
1347
+ const s = e.filter((r) => {
1348
+ if (r.size > this.maxSize)
1349
+ return console.warn(`File ${r.name} exceeds max size`), !1;
1097
1350
  if (this.accept) {
1098
- const i = this.accept.split(",").map((O) => O.trim()), o = e.type, h = "." + e.name.split(".").pop()?.toLowerCase();
1099
- if (!i.some((O) => O.startsWith(".") ? h === O.toLowerCase() : O.endsWith("/*") ? o.startsWith(O.replace("/*", "/")) : o === O))
1100
- return console.warn(`File ${e.name} type not accepted`), !1;
1351
+ const i = this.accept.split(",").map((g) => g.trim()), o = r.type, c = "." + r.name.split(".").pop()?.toLowerCase();
1352
+ if (!i.some((g) => g.startsWith(".") ? c === g.toLowerCase() : g.endsWith("/*") ? o.startsWith(g.replace("/*", "/")) : o === g))
1353
+ return console.warn(`File ${r.name} type not accepted`), !1;
1101
1354
  }
1102
1355
  return !0;
1103
- }).slice(0, this.maxFiles - this.files.length).map((e) => ({
1104
- file: e,
1356
+ }).slice(0, this.maxFiles - this.files.length).map((r) => ({
1357
+ file: r,
1105
1358
  id: this._generateId(),
1106
1359
  progress: 100,
1107
1360
  status: "complete"
1108
1361
  }));
1109
1362
  this.files = [...this.files, ...s], this.dispatchEvent(new CustomEvent("files-changed", {
1110
- detail: { files: this.files.map((e) => e.file) }
1363
+ detail: { files: this.files.map((r) => r.file) }
1111
1364
  }));
1112
1365
  }
1113
1366
  /** Public method to clear all files */
1114
1367
  clearFiles() {
1115
1368
  this._handleClearAll();
1116
1369
  }
1117
- _formatFileSize(r) {
1118
- if (r === 0) return "0 B";
1119
- const t = 1024, a = ["B", "KB", "MB", "GB"], s = Math.floor(Math.log(r) / Math.log(t));
1120
- return parseFloat((r / Math.pow(t, s)).toFixed(1)) + " " + a[s];
1370
+ _formatFileSize(e) {
1371
+ if (e === 0) return "0 B";
1372
+ const t = 1024, a = ["B", "KB", "MB", "GB"], s = Math.floor(Math.log(e) / Math.log(t));
1373
+ return parseFloat((e / Math.pow(t, s)).toFixed(1)) + " " + a[s];
1121
1374
  }
1122
- _getFileIcon(r) {
1123
- const t = r.name.split(".").pop()?.toLowerCase() || "", a = r.type;
1375
+ _getFileIcon(e) {
1376
+ const t = e.name.split(".").pop()?.toLowerCase() || "", a = e.type;
1124
1377
  return a.startsWith("image/") ? "[IMG]" : a.startsWith("video/") ? "[VID]" : a.startsWith("audio/") ? "[AUD]" : a === "application/pdf" ? "[PDF]" : ["doc", "docx"].includes(t) ? "[DOC]" : ["xls", "xlsx"].includes(t) ? "[XLS]" : ["zip", "rar", "7z", "tar", "gz"].includes(t) ? "[ZIP]" : ["js", "ts", "py", "java", "cpp", "c", "html", "css"].includes(t) ? "[COD]" : ["txt", "md", "json", "xml"].includes(t) ? "[TXT]" : "[FIL]";
1125
1378
  }
1126
1379
  _getTotalSize() {
1127
- return this.files.reduce((r, t) => r + t.file.size, 0);
1380
+ return this.files.reduce((e, t) => e + t.file.size, 0);
1128
1381
  }
1129
1382
  render() {
1130
- return c`
1383
+ return l`
1131
1384
  <div class="file-manager">
1132
1385
  <!-- Header -->
1133
1386
  <div class="fm-header">
@@ -1152,7 +1405,7 @@ let P = class extends p {
1152
1405
  </div>
1153
1406
 
1154
1407
  <!-- File List -->
1155
- ${this.files.length > 0 ? c`
1408
+ ${this.files.length > 0 ? l`
1156
1409
  <div class="file-list-header">
1157
1410
  <span>FILENAME</span>
1158
1411
  <span style="text-align: right;">SIZE</span>
@@ -1160,25 +1413,25 @@ let P = class extends p {
1160
1413
  <span style="text-align: center;">ACT</span>
1161
1414
  </div>
1162
1415
  <div class="file-list">
1163
- ${this.files.map((r) => c`
1416
+ ${this.files.map((e) => l`
1164
1417
  <div class="file-item">
1165
1418
  <div class="file-info">
1166
- <span class="file-icon">${this._getFileIcon(r.file)}</span>
1167
- <span class="file-name">${r.file.name}</span>
1419
+ <span class="file-icon">${this._getFileIcon(e.file)}</span>
1420
+ <span class="file-name">${e.file.name}</span>
1168
1421
  </div>
1169
- <span class="file-size">${this._formatFileSize(r.file.size)}</span>
1170
- <span class="file-status ${r.status}">${r.status.toUpperCase()}</span>
1422
+ <span class="file-size">${this._formatFileSize(e.file.size)}</span>
1423
+ <span class="file-status ${e.status}">${e.status.toUpperCase()}</span>
1171
1424
  <div class="file-actions">
1172
1425
  <button
1173
1426
  class="file-remove"
1174
- @click="${() => this._handleRemoveFile(r.id)}"
1427
+ @click="${() => this._handleRemoveFile(e.id)}"
1175
1428
  title="Remove file"
1176
1429
  >X</button>
1177
1430
  </div>
1178
1431
  </div>
1179
1432
  `)}
1180
1433
  </div>
1181
- ` : c`
1434
+ ` : l`
1182
1435
  <div class="empty-state">
1183
1436
  <div class="empty-icon">[---]</div>
1184
1437
  <div>NO FILES LOADED</div>
@@ -1191,7 +1444,7 @@ let P = class extends p {
1191
1444
  READY FOR TRANSFER
1192
1445
  </span>
1193
1446
  <div class="fm-footer-actions">
1194
- ${this.files.length > 0 ? c`
1447
+ ${this.files.length > 0 ? l`
1195
1448
  <crt-button size="small" variant="error" @click="${this._handleClearAll}">
1196
1449
  CLEAR ALL
1197
1450
  </crt-button>
@@ -1205,12 +1458,12 @@ let P = class extends p {
1205
1458
  `;
1206
1459
  }
1207
1460
  };
1208
- P.styles = l`
1461
+ E.styles = d`
1209
1462
  :host {
1210
1463
  display: block;
1211
1464
  font-family: var(--crt-font-family);
1212
1465
  width: 100%;
1213
- min-width: 500px;
1466
+ min-width: 0;
1214
1467
  }
1215
1468
 
1216
1469
  .file-manager {
@@ -1312,6 +1565,7 @@ P.styles = l`
1312
1565
  .file-list {
1313
1566
  max-height: 300px;
1314
1567
  overflow-y: auto;
1568
+ width: 100%;
1315
1569
  }
1316
1570
 
1317
1571
  .file-list-header {
@@ -1365,6 +1619,26 @@ P.styles = l`
1365
1619
  min-width: 0;
1366
1620
  }
1367
1621
 
1622
+ /* Responsive adjustments */
1623
+ @media (max-width: 700px) {
1624
+ .file-list-header,
1625
+ .file-item {
1626
+ grid-template-columns: 1fr 70px 70px 40px;
1627
+ }
1628
+ .drop-zone {
1629
+ padding: var(--crt-spacing-md);
1630
+ }
1631
+ }
1632
+
1633
+ @media (max-width: 420px) {
1634
+ .file-list-header,
1635
+ .file-item {
1636
+ grid-template-columns: 1fr 60px 60px 40px;
1637
+ }
1638
+ .file-list-header { font-size: 0.75rem; }
1639
+ .drop-zone { padding: var(--crt-spacing-sm); min-height: 100px; }
1640
+ }
1641
+
1368
1642
  .file-size {
1369
1643
  color: var(--crt-text-muted);
1370
1644
  font-size: var(--crt-font-size-sm);
@@ -1479,33 +1753,33 @@ P.styles = l`
1479
1753
  transition: width 0.3s ease;
1480
1754
  }
1481
1755
  `;
1482
- H([
1756
+ st([
1483
1757
  n({ type: String })
1484
- ], P.prototype, "accept", 2);
1485
- H([
1758
+ ], E.prototype, "accept", 2);
1759
+ st([
1486
1760
  n({ type: Boolean })
1487
- ], P.prototype, "multiple", 2);
1488
- H([
1761
+ ], E.prototype, "multiple", 2);
1762
+ st([
1489
1763
  n({ type: String })
1490
- ], P.prototype, "name", 2);
1491
- H([
1764
+ ], E.prototype, "name", 2);
1765
+ st([
1492
1766
  n({ type: Number })
1493
- ], P.prototype, "maxSize", 2);
1494
- H([
1767
+ ], E.prototype, "maxSize", 2);
1768
+ st([
1495
1769
  n({ type: Number })
1496
- ], P.prototype, "maxFiles", 2);
1497
- H([
1498
- v()
1499
- ], P.prototype, "files", 2);
1500
- P = H([
1501
- d("crt-file-upload")
1502
- ], P);
1503
- var _r = Object.defineProperty, zr = Object.getOwnPropertyDescriptor, $ = (r, t, a, s) => {
1504
- for (var e = s > 1 ? void 0 : s ? zr(t, a) : t, i = r.length - 1, o; i >= 0; i--)
1505
- (o = r[i]) && (e = (s ? o(t, a, e) : o(e)) || e);
1506
- return s && e && _r(t, a, e), e;
1770
+ ], E.prototype, "maxFiles", 2);
1771
+ st([
1772
+ m()
1773
+ ], E.prototype, "files", 2);
1774
+ E = st([
1775
+ v("crt-file-upload")
1776
+ ], E);
1777
+ var yr = Object.defineProperty, xr = Object.getOwnPropertyDescriptor, O = (e, t, a, s) => {
1778
+ for (var r = s > 1 ? void 0 : s ? xr(t, a) : t, i = e.length - 1, o; i >= 0; i--)
1779
+ (o = e[i]) && (r = (s ? o(t, a, r) : o(r)) || r);
1780
+ return s && r && yr(t, a, r), r;
1507
1781
  };
1508
- let m = class extends p {
1782
+ let x = class extends h {
1509
1783
  constructor() {
1510
1784
  super(...arguments), this.value = "", this.placeholder = "Select date...", this.format = "DD.MM.YYYY", this.min = "", this.max = "", this.disabled = !1, this._isOpen = !1, this._viewDate = /* @__PURE__ */ new Date(), this._selectedDate = null, this._weekdays = ["Mo", "Di", "Mi", "Do", "Fr", "Sa", "So"], this._months = [
1511
1785
  "Januar",
@@ -1520,8 +1794,8 @@ let m = class extends p {
1520
1794
  "Oktober",
1521
1795
  "November",
1522
1796
  "Dezember"
1523
- ], this._handleOutsideClick = (r) => {
1524
- this.contains(r.target) || (this._isOpen = !1);
1797
+ ], this._handleOutsideClick = (e) => {
1798
+ this.contains(e.target) || (this._isOpen = !1);
1525
1799
  };
1526
1800
  }
1527
1801
  connectedCallback() {
@@ -1531,14 +1805,14 @@ let m = class extends p {
1531
1805
  super.disconnectedCallback(), document.removeEventListener("click", this._handleOutsideClick);
1532
1806
  }
1533
1807
  _parseValue() {
1534
- const r = this.value.split(".");
1535
- if (r.length === 3) {
1536
- const [t, a, s] = r.map(Number);
1808
+ const e = this.value.split(".");
1809
+ if (e.length === 3) {
1810
+ const [t, a, s] = e.map(Number);
1537
1811
  this._selectedDate = new Date(s, a - 1, t), this._viewDate = new Date(this._selectedDate);
1538
1812
  }
1539
1813
  }
1540
- _formatDate(r) {
1541
- const t = String(r.getDate()).padStart(2, "0"), a = String(r.getMonth() + 1).padStart(2, "0"), s = r.getFullYear();
1814
+ _formatDate(e) {
1815
+ const t = String(e.getDate()).padStart(2, "0"), a = String(e.getMonth() + 1).padStart(2, "0"), s = e.getFullYear();
1542
1816
  return `${t}.${a}.${s}`;
1543
1817
  }
1544
1818
  _toggleCalendar() {
@@ -1558,9 +1832,9 @@ let m = class extends p {
1558
1832
  1
1559
1833
  );
1560
1834
  }
1561
- _selectDate(r) {
1562
- this._selectedDate = r, this.value = this._formatDate(r), this._isOpen = !1, this.dispatchEvent(new CustomEvent("change", {
1563
- detail: { value: this.value, date: r }
1835
+ _selectDate(e) {
1836
+ this._selectedDate = e, this.value = this._formatDate(e), this._isOpen = !1, this.dispatchEvent(new CustomEvent("change", {
1837
+ detail: { value: this.value, date: e }
1564
1838
  }));
1565
1839
  }
1566
1840
  _selectToday() {
@@ -1571,55 +1845,55 @@ let m = class extends p {
1571
1845
  detail: { value: "", date: null }
1572
1846
  }));
1573
1847
  }
1574
- _getDaysInMonth(r, t) {
1575
- return new Date(r, t + 1, 0).getDate();
1848
+ _getDaysInMonth(e, t) {
1849
+ return new Date(e, t + 1, 0).getDate();
1576
1850
  }
1577
- _getFirstDayOfMonth(r, t) {
1578
- const a = new Date(r, t, 1).getDay();
1851
+ _getFirstDayOfMonth(e, t) {
1852
+ const a = new Date(e, t, 1).getDay();
1579
1853
  return a === 0 ? 6 : a - 1;
1580
1854
  }
1581
- _isToday(r) {
1855
+ _isToday(e) {
1582
1856
  const t = /* @__PURE__ */ new Date();
1583
- return r.getDate() === t.getDate() && r.getMonth() === t.getMonth() && r.getFullYear() === t.getFullYear();
1857
+ return e.getDate() === t.getDate() && e.getMonth() === t.getMonth() && e.getFullYear() === t.getFullYear();
1584
1858
  }
1585
- _isSelected(r) {
1586
- return this._selectedDate ? r.getDate() === this._selectedDate.getDate() && r.getMonth() === this._selectedDate.getMonth() && r.getFullYear() === this._selectedDate.getFullYear() : !1;
1859
+ _isSelected(e) {
1860
+ return this._selectedDate ? e.getDate() === this._selectedDate.getDate() && e.getMonth() === this._selectedDate.getMonth() && e.getFullYear() === this._selectedDate.getFullYear() : !1;
1587
1861
  }
1588
1862
  _renderDays() {
1589
- const r = this._viewDate.getFullYear(), t = this._viewDate.getMonth(), a = this._getDaysInMonth(r, t), s = this._getFirstDayOfMonth(r, t), e = this._getDaysInMonth(r, t - 1), i = [];
1590
- for (let h = s - 1; h >= 0; h--) {
1591
- const u = new Date(r, t - 1, e - h);
1592
- i.push(c`
1593
- <div class="day other-month" @click="${() => this._selectDate(u)}">
1594
- ${e - h}
1863
+ const e = this._viewDate.getFullYear(), t = this._viewDate.getMonth(), a = this._getDaysInMonth(e, t), s = this._getFirstDayOfMonth(e, t), r = this._getDaysInMonth(e, t - 1), i = [];
1864
+ for (let c = s - 1; c >= 0; c--) {
1865
+ const p = new Date(e, t - 1, r - c);
1866
+ i.push(l`
1867
+ <div class="day other-month" @click="${() => this._selectDate(p)}">
1868
+ ${r - c}
1595
1869
  </div>
1596
1870
  `);
1597
1871
  }
1598
- for (let h = 1; h <= a; h++) {
1599
- const u = new Date(r, t, h), O = this._isToday(u), qt = this._isSelected(u);
1600
- i.push(c`
1872
+ for (let c = 1; c <= a; c++) {
1873
+ const p = new Date(e, t, c), g = this._isToday(p), b = this._isSelected(p);
1874
+ i.push(l`
1601
1875
  <div
1602
- class="day ${O ? "today" : ""} ${qt ? "selected" : ""}"
1603
- @click="${() => this._selectDate(u)}"
1876
+ class="day ${g ? "today" : ""} ${b ? "selected" : ""}"
1877
+ @click="${() => this._selectDate(p)}"
1604
1878
  >
1605
- ${h}
1879
+ ${c}
1606
1880
  </div>
1607
1881
  `);
1608
1882
  }
1609
1883
  const o = 42 - i.length;
1610
- for (let h = 1; h <= o; h++) {
1611
- const u = new Date(r, t + 1, h);
1612
- i.push(c`
1613
- <div class="day other-month" @click="${() => this._selectDate(u)}">
1614
- ${h}
1884
+ for (let c = 1; c <= o; c++) {
1885
+ const p = new Date(e, t + 1, c);
1886
+ i.push(l`
1887
+ <div class="day other-month" @click="${() => this._selectDate(p)}">
1888
+ ${c}
1615
1889
  </div>
1616
1890
  `);
1617
1891
  }
1618
1892
  return i;
1619
1893
  }
1620
1894
  render() {
1621
- const r = `${this._months[this._viewDate.getMonth()]} ${this._viewDate.getFullYear()}`;
1622
- return c`
1895
+ const e = `${this._months[this._viewDate.getMonth()]} ${this._viewDate.getFullYear()}`;
1896
+ return l`
1623
1897
  <div class="calendar-wrapper">
1624
1898
  <div class="calendar-input">
1625
1899
  <input
@@ -1643,12 +1917,12 @@ let m = class extends p {
1643
1917
  <div class="calendar-dropdown ${this._isOpen ? "open" : ""}">
1644
1918
  <div class="calendar-header">
1645
1919
  <button class="calendar-nav-btn" @click="${this._prevMonth}">◄</button>
1646
- <span class="calendar-title">${r}</span>
1920
+ <span class="calendar-title">${e}</span>
1647
1921
  <button class="calendar-nav-btn" @click="${this._nextMonth}">►</button>
1648
1922
  </div>
1649
1923
 
1650
1924
  <div class="calendar-weekdays">
1651
- ${this._weekdays.map((t) => c`<div class="weekday">${t}</div>`)}
1925
+ ${this._weekdays.map((t) => l`<div class="weekday">${t}</div>`)}
1652
1926
  </div>
1653
1927
 
1654
1928
  <div class="calendar-days">
@@ -1664,7 +1938,7 @@ let m = class extends p {
1664
1938
  `;
1665
1939
  }
1666
1940
  };
1667
- m.styles = l`
1941
+ x.styles = d`
1668
1942
  :host {
1669
1943
  display: inline-block;
1670
1944
  font-family: var(--crt-font-family);
@@ -1869,56 +2143,56 @@ m.styles = l`
1869
2143
  color: var(--crt-bg-dark);
1870
2144
  }
1871
2145
  `;
1872
- $([
2146
+ O([
1873
2147
  n({ type: String })
1874
- ], m.prototype, "value", 2);
1875
- $([
2148
+ ], x.prototype, "value", 2);
2149
+ O([
1876
2150
  n({ type: String })
1877
- ], m.prototype, "placeholder", 2);
1878
- $([
2151
+ ], x.prototype, "placeholder", 2);
2152
+ O([
1879
2153
  n({ type: String })
1880
- ], m.prototype, "format", 2);
1881
- $([
2154
+ ], x.prototype, "format", 2);
2155
+ O([
1882
2156
  n({ type: String })
1883
- ], m.prototype, "min", 2);
1884
- $([
2157
+ ], x.prototype, "min", 2);
2158
+ O([
1885
2159
  n({ type: String })
1886
- ], m.prototype, "max", 2);
1887
- $([
2160
+ ], x.prototype, "max", 2);
2161
+ O([
1888
2162
  n({ type: Boolean })
1889
- ], m.prototype, "disabled", 2);
1890
- $([
1891
- v()
1892
- ], m.prototype, "_isOpen", 2);
1893
- $([
1894
- v()
1895
- ], m.prototype, "_viewDate", 2);
1896
- $([
1897
- v()
1898
- ], m.prototype, "_selectedDate", 2);
1899
- m = $([
1900
- d("crt-calendar")
1901
- ], m);
1902
- var Or = Object.defineProperty, Pr = Object.getOwnPropertyDescriptor, K = (r, t, a, s) => {
1903
- for (var e = s > 1 ? void 0 : s ? Pr(t, a) : t, i = r.length - 1, o; i >= 0; i--)
1904
- (o = r[i]) && (e = (s ? o(t, a, e) : o(e)) || e);
1905
- return s && e && Or(t, a, e), e;
2163
+ ], x.prototype, "disabled", 2);
2164
+ O([
2165
+ m()
2166
+ ], x.prototype, "_isOpen", 2);
2167
+ O([
2168
+ m()
2169
+ ], x.prototype, "_viewDate", 2);
2170
+ O([
2171
+ m()
2172
+ ], x.prototype, "_selectedDate", 2);
2173
+ x = O([
2174
+ v("crt-calendar")
2175
+ ], x);
2176
+ var wr = Object.defineProperty, kr = Object.getOwnPropertyDescriptor, it = (e, t, a, s) => {
2177
+ for (var r = s > 1 ? void 0 : s ? kr(t, a) : t, i = e.length - 1, o; i >= 0; i--)
2178
+ (o = e[i]) && (r = (s ? o(t, a, r) : o(r)) || r);
2179
+ return s && r && wr(t, a, r), r;
1906
2180
  };
1907
- let C = class extends p {
2181
+ let D = class extends h {
1908
2182
  constructor() {
1909
- super(...arguments), this.value = "", this.placeholder = "Select...", this.label = "", this.disabled = !1, this.options = [], this._isOpen = !1, this._handleOutsideClick = (r) => {
1910
- this.contains(r.target) || (this._isOpen = !1);
2183
+ super(...arguments), this.value = "", this.placeholder = "Select...", this.label = "", this.disabled = !1, this.options = [], this._isOpen = !1, this._handleOutsideClick = (e) => {
2184
+ this.contains(e.target) || (this._isOpen = !1);
1911
2185
  };
1912
2186
  }
1913
2187
  // Normalize options to flat array with group property
1914
2188
  _getNormalizedOptions() {
1915
- const r = [];
2189
+ const e = [];
1916
2190
  for (const t of this.options)
1917
2191
  if ("options" in t && Array.isArray(t.options))
1918
2192
  for (const a of t.options)
1919
- r.push({ ...a, group: t.group });
1920
- else "value" in t && r.push(t);
1921
- return r;
2193
+ e.push({ ...a, group: t.group });
2194
+ else "value" in t && e.push(t);
2195
+ return e;
1922
2196
  }
1923
2197
  connectedCallback() {
1924
2198
  super.connectedCallback(), document.addEventListener("click", this._handleOutsideClick);
@@ -1929,51 +2203,51 @@ let C = class extends p {
1929
2203
  _toggle() {
1930
2204
  this.disabled || (this._isOpen = !this._isOpen);
1931
2205
  }
1932
- _selectOption(r) {
1933
- r.disabled || (this.value = r.value, this._isOpen = !1, this.dispatchEvent(new CustomEvent("change", {
1934
- detail: { value: r.value, label: r.label }
2206
+ _selectOption(e) {
2207
+ e.disabled || (this.value = e.value, this._isOpen = !1, this.dispatchEvent(new CustomEvent("change", {
2208
+ detail: { value: e.value, label: e.label }
1935
2209
  })));
1936
2210
  }
1937
2211
  _getSelectedLabel() {
1938
2212
  return this._getNormalizedOptions().find((a) => a.value === this.value)?.label || "";
1939
2213
  }
1940
2214
  _renderOptions() {
1941
- const r = this._getNormalizedOptions(), t = /* @__PURE__ */ new Map(), a = [];
1942
- r.forEach((e) => {
1943
- e.group ? (t.has(e.group) || t.set(e.group, []), t.get(e.group).push(e)) : a.push(e);
2215
+ const e = this._getNormalizedOptions(), t = /* @__PURE__ */ new Map(), a = [];
2216
+ e.forEach((r) => {
2217
+ r.group ? (t.has(r.group) || t.set(r.group, []), t.get(r.group).push(r)) : a.push(r);
1944
2218
  });
1945
2219
  const s = [];
1946
- for (const e of a)
1947
- s.push(this._renderOption(e));
1948
- for (const [e, i] of t) {
1949
- s.push(c`<div class="select-group-label">${e}</div>`);
2220
+ for (const r of a)
2221
+ s.push(this._renderOption(r));
2222
+ for (const [r, i] of t) {
2223
+ s.push(l`<div class="select-group-label">${r}</div>`);
1950
2224
  for (const o of i)
1951
2225
  s.push(this._renderOption(o));
1952
2226
  }
1953
2227
  return s;
1954
2228
  }
1955
- _renderOption(r) {
1956
- const t = r.value === this.value;
1957
- return c`
2229
+ _renderOption(e) {
2230
+ const t = e.value === this.value;
2231
+ return l`
1958
2232
  <div
1959
- class="select-option ${t ? "selected" : ""} ${r.disabled ? "disabled" : ""}"
1960
- @click="${() => this._selectOption(r)}"
2233
+ class="select-option ${t ? "selected" : ""} ${e.disabled ? "disabled" : ""}"
2234
+ @click="${() => this._selectOption(e)}"
1961
2235
  >
1962
- ${r.label}
2236
+ ${e.label}
1963
2237
  </div>
1964
2238
  `;
1965
2239
  }
1966
2240
  render() {
1967
- const r = this._getSelectedLabel();
1968
- return c`
1969
- ${this.label ? c`<label class="select-label">${this.label}</label>` : ""}
2241
+ const e = this._getSelectedLabel();
2242
+ return l`
2243
+ ${this.label ? l`<label class="select-label">${this.label}</label>` : ""}
1970
2244
  <div class="select-wrapper">
1971
2245
  <div
1972
2246
  class="select-trigger ${this._isOpen ? "open" : ""} ${this.disabled ? "disabled" : ""}"
1973
2247
  @click="${this._toggle}"
1974
2248
  >
1975
- <span class="select-value ${r ? "" : "placeholder"}">
1976
- ${r || this.placeholder}
2249
+ <span class="select-value ${e ? "" : "placeholder"}">
2250
+ ${e || this.placeholder}
1977
2251
  </span>
1978
2252
  <span class="select-arrow">▼</span>
1979
2253
  </div>
@@ -1985,7 +2259,7 @@ let C = class extends p {
1985
2259
  `;
1986
2260
  }
1987
2261
  };
1988
- C.styles = l`
2262
+ D.styles = d`
1989
2263
  :host {
1990
2264
  display: inline-block;
1991
2265
  font-family: var(--crt-font-family);
@@ -2142,44 +2416,44 @@ C.styles = l`
2142
2416
  box-shadow: var(--crt-glow-sm);
2143
2417
  }
2144
2418
  `;
2145
- K([
2419
+ it([
2146
2420
  n({ type: String })
2147
- ], C.prototype, "value", 2);
2148
- K([
2421
+ ], D.prototype, "value", 2);
2422
+ it([
2149
2423
  n({ type: String })
2150
- ], C.prototype, "placeholder", 2);
2151
- K([
2424
+ ], D.prototype, "placeholder", 2);
2425
+ it([
2152
2426
  n({ type: String })
2153
- ], C.prototype, "label", 2);
2154
- K([
2427
+ ], D.prototype, "label", 2);
2428
+ it([
2155
2429
  n({ type: Boolean })
2156
- ], C.prototype, "disabled", 2);
2157
- K([
2430
+ ], D.prototype, "disabled", 2);
2431
+ it([
2158
2432
  n({ type: Array })
2159
- ], C.prototype, "options", 2);
2160
- K([
2161
- v()
2162
- ], C.prototype, "_isOpen", 2);
2163
- C = K([
2164
- d("crt-select")
2165
- ], C);
2166
- var Cr = Object.defineProperty, Sr = Object.getOwnPropertyDescriptor, g = (r, t, a, s) => {
2167
- for (var e = s > 1 ? void 0 : s ? Sr(t, a) : t, i = r.length - 1, o; i >= 0; i--)
2168
- (o = r[i]) && (e = (s ? o(t, a, e) : o(e)) || e);
2169
- return s && e && Cr(t, a, e), e;
2433
+ ], D.prototype, "options", 2);
2434
+ it([
2435
+ m()
2436
+ ], D.prototype, "_isOpen", 2);
2437
+ D = it([
2438
+ v("crt-select")
2439
+ ], D);
2440
+ var $r = Object.defineProperty, _r = Object.getOwnPropertyDescriptor, y = (e, t, a, s) => {
2441
+ for (var r = s > 1 ? void 0 : s ? _r(t, a) : t, i = e.length - 1, o; i >= 0; i--)
2442
+ (o = e[i]) && (r = (s ? o(t, a, r) : o(r)) || r);
2443
+ return s && r && $r(t, a, r), r;
2170
2444
  };
2171
- let L = class extends p {
2445
+ let H = class extends h {
2172
2446
  constructor() {
2173
2447
  super(...arguments), this.checked = !1, this.disabled = !1, this.indeterminate = !1, this.label = "", this.value = "";
2174
2448
  }
2175
- _handleChange(r) {
2176
- const t = r.target;
2449
+ _handleChange(e) {
2450
+ const t = e.target;
2177
2451
  this.checked = t.checked, this.indeterminate = !1, this.dispatchEvent(new CustomEvent("change", {
2178
2452
  detail: { checked: this.checked, value: this.value }
2179
2453
  }));
2180
2454
  }
2181
2455
  render() {
2182
- return c`
2456
+ return l`
2183
2457
  <label class="checkbox-wrapper">
2184
2458
  <input
2185
2459
  type="checkbox"
@@ -2192,11 +2466,11 @@ let L = class extends p {
2192
2466
  <span class="checkmark">${this.indeterminate ? "−" : "✓"}</span>
2193
2467
  </div>
2194
2468
  </label>
2195
- ${this.label ? c`<span class="label">${this.label}</span>` : ""}
2469
+ ${this.label ? l`<span class="label">${this.label}</span>` : ""}
2196
2470
  `;
2197
2471
  }
2198
2472
  };
2199
- L.styles = l`
2473
+ H.styles = d`
2200
2474
  :host {
2201
2475
  display: inline-flex;
2202
2476
  align-items: center;
@@ -2278,36 +2552,36 @@ L.styles = l`
2278
2552
  transform: scale(1);
2279
2553
  }
2280
2554
  `;
2281
- g([
2555
+ y([
2282
2556
  n({ type: Boolean, reflect: !0 })
2283
- ], L.prototype, "checked", 2);
2284
- g([
2557
+ ], H.prototype, "checked", 2);
2558
+ y([
2285
2559
  n({ type: Boolean, reflect: !0 })
2286
- ], L.prototype, "disabled", 2);
2287
- g([
2560
+ ], H.prototype, "disabled", 2);
2561
+ y([
2288
2562
  n({ type: Boolean })
2289
- ], L.prototype, "indeterminate", 2);
2290
- g([
2563
+ ], H.prototype, "indeterminate", 2);
2564
+ y([
2291
2565
  n({ type: String })
2292
- ], L.prototype, "label", 2);
2293
- g([
2566
+ ], H.prototype, "label", 2);
2567
+ y([
2294
2568
  n({ type: String })
2295
- ], L.prototype, "value", 2);
2296
- L = g([
2297
- d("crt-checkbox")
2298
- ], L);
2299
- let U = class extends p {
2569
+ ], H.prototype, "value", 2);
2570
+ H = y([
2571
+ v("crt-checkbox")
2572
+ ], H);
2573
+ let Y = class extends h {
2300
2574
  constructor() {
2301
2575
  super(...arguments), this.checked = !1, this.disabled = !1, this.label = "", this.value = "", this.name = "";
2302
2576
  }
2303
- _handleChange(r) {
2304
- r.target.checked && (this.checked = !0, this.dispatchEvent(new CustomEvent("change", {
2577
+ _handleChange(e) {
2578
+ e.target.checked && (this.checked = !0, this.dispatchEvent(new CustomEvent("change", {
2305
2579
  detail: { checked: this.checked, value: this.value },
2306
2580
  bubbles: !0
2307
2581
  })));
2308
2582
  }
2309
2583
  render() {
2310
- return c`
2584
+ return l`
2311
2585
  <label class="radio-wrapper">
2312
2586
  <input
2313
2587
  type="radio"
@@ -2321,11 +2595,11 @@ let U = class extends p {
2321
2595
  <div class="radio-dot"></div>
2322
2596
  </div>
2323
2597
  </label>
2324
- ${this.label ? c`<span class="label">${this.label}</span>` : ""}
2598
+ ${this.label ? l`<span class="label">${this.label}</span>` : ""}
2325
2599
  `;
2326
2600
  }
2327
2601
  };
2328
- U.styles = l`
2602
+ Y.styles = d`
2329
2603
  :host {
2330
2604
  display: inline-flex;
2331
2605
  align-items: center;
@@ -2399,28 +2673,28 @@ U.styles = l`
2399
2673
  user-select: none;
2400
2674
  }
2401
2675
  `;
2402
- g([
2676
+ y([
2403
2677
  n({ type: Boolean, reflect: !0 })
2404
- ], U.prototype, "checked", 2);
2405
- g([
2678
+ ], Y.prototype, "checked", 2);
2679
+ y([
2406
2680
  n({ type: Boolean, reflect: !0 })
2407
- ], U.prototype, "disabled", 2);
2408
- g([
2681
+ ], Y.prototype, "disabled", 2);
2682
+ y([
2409
2683
  n({ type: String })
2410
- ], U.prototype, "label", 2);
2411
- g([
2684
+ ], Y.prototype, "label", 2);
2685
+ y([
2412
2686
  n({ type: String })
2413
- ], U.prototype, "value", 2);
2414
- g([
2687
+ ], Y.prototype, "value", 2);
2688
+ y([
2415
2689
  n({ type: String })
2416
- ], U.prototype, "name", 2);
2417
- U = g([
2418
- d("crt-radio")
2419
- ], U);
2420
- let Z = class extends p {
2690
+ ], Y.prototype, "name", 2);
2691
+ Y = y([
2692
+ v("crt-radio")
2693
+ ], Y);
2694
+ let pt = class extends h {
2421
2695
  constructor() {
2422
- super(...arguments), this.name = "", this.value = "", this.horizontal = !1, this._handleChange = (r) => {
2423
- const t = r.target;
2696
+ super(...arguments), this.name = "", this.value = "", this.horizontal = !1, this._handleChange = (e) => {
2697
+ const t = e.target;
2424
2698
  t.tagName === "CRT-RADIO" && (this.value = t.value, this.querySelectorAll("crt-radio").forEach((a) => {
2425
2699
  a.checked = a === t;
2426
2700
  }), this.dispatchEvent(new CustomEvent("change", {
@@ -2435,10 +2709,10 @@ let Z = class extends p {
2435
2709
  super.disconnectedCallback(), this.removeEventListener("change", this._handleChange);
2436
2710
  }
2437
2711
  render() {
2438
- return c`<slot></slot>`;
2712
+ return l`<slot></slot>`;
2439
2713
  }
2440
2714
  };
2441
- Z.styles = l`
2715
+ pt.styles = d`
2442
2716
  :host {
2443
2717
  display: flex;
2444
2718
  flex-direction: column;
@@ -2451,24 +2725,24 @@ Z.styles = l`
2451
2725
  gap: var(--crt-spacing-lg);
2452
2726
  }
2453
2727
  `;
2454
- g([
2728
+ y([
2455
2729
  n({ type: String })
2456
- ], Z.prototype, "name", 2);
2457
- g([
2730
+ ], pt.prototype, "name", 2);
2731
+ y([
2458
2732
  n({ type: String })
2459
- ], Z.prototype, "value", 2);
2460
- g([
2733
+ ], pt.prototype, "value", 2);
2734
+ y([
2461
2735
  n({ type: Boolean, reflect: !0 })
2462
- ], Z.prototype, "horizontal", 2);
2463
- Z = g([
2464
- d("crt-radio-group")
2465
- ], Z);
2466
- var Dr = Object.defineProperty, Er = Object.getOwnPropertyDescriptor, _ = (r, t, a, s) => {
2467
- for (var e = s > 1 ? void 0 : s ? Er(t, a) : t, i = r.length - 1, o; i >= 0; i--)
2468
- (o = r[i]) && (e = (s ? o(t, a, e) : o(e)) || e);
2469
- return s && e && Dr(t, a, e), e;
2736
+ ], pt.prototype, "horizontal", 2);
2737
+ pt = y([
2738
+ v("crt-radio-group")
2739
+ ], pt);
2740
+ var zr = Object.defineProperty, Cr = Object.getOwnPropertyDescriptor, P = (e, t, a, s) => {
2741
+ for (var r = s > 1 ? void 0 : s ? Cr(t, a) : t, i = e.length - 1, o; i >= 0; i--)
2742
+ (o = e[i]) && (r = (s ? o(t, a, r) : o(r)) || r);
2743
+ return s && r && zr(t, a, r), r;
2470
2744
  };
2471
- let b = class extends p {
2745
+ let w = class extends h {
2472
2746
  constructor() {
2473
2747
  super(...arguments), this.value = 0, this.max = 100, this.label = "", this.animated = !1, this.indeterminate = !1, this.segmented = !1, this.size = "medium", this.variant = "default", this.showValue = !0;
2474
2748
  }
@@ -2476,25 +2750,25 @@ let b = class extends p {
2476
2750
  return Math.min(100, Math.max(0, this.value / this.max * 100));
2477
2751
  }
2478
2752
  render() {
2479
- const r = this._getPercentage();
2480
- return c`
2753
+ const e = this._getPercentage();
2754
+ return l`
2481
2755
  <div class="progress-wrapper">
2482
- ${this.label || this.showValue ? c`
2756
+ ${this.label || this.showValue ? l`
2483
2757
  <div class="progress-header">
2484
- ${this.label ? c`<span class="progress-label">${this.label}</span>` : ""}
2485
- ${this.showValue && !this.indeterminate ? c`
2486
- <span class="progress-value">${Math.round(r)}%</span>
2758
+ ${this.label ? l`<span class="progress-label">${this.label}</span>` : ""}
2759
+ ${this.showValue && !this.indeterminate ? l`
2760
+ <span class="progress-value">${Math.round(e)}%</span>
2487
2761
  ` : ""}
2488
2762
  </div>
2489
2763
  ` : ""}
2490
2764
  <div class="progress-track" role="progressbar" aria-valuenow="${this.value}" aria-valuemax="${this.max}">
2491
- <div class="progress-bar" style="width: ${this.indeterminate ? "30" : r}%"></div>
2765
+ <div class="progress-bar" style="width: ${this.indeterminate ? "30" : e}%"></div>
2492
2766
  </div>
2493
2767
  </div>
2494
2768
  `;
2495
2769
  }
2496
2770
  };
2497
- b.styles = l`
2771
+ w.styles = d`
2498
2772
  :host {
2499
2773
  display: block;
2500
2774
  font-family: var(--crt-font-family);
@@ -2618,42 +2892,42 @@ b.styles = l`
2618
2892
  );
2619
2893
  }
2620
2894
  `;
2621
- _([
2895
+ P([
2622
2896
  n({ type: Number })
2623
- ], b.prototype, "value", 2);
2624
- _([
2897
+ ], w.prototype, "value", 2);
2898
+ P([
2625
2899
  n({ type: Number })
2626
- ], b.prototype, "max", 2);
2627
- _([
2900
+ ], w.prototype, "max", 2);
2901
+ P([
2628
2902
  n({ type: String })
2629
- ], b.prototype, "label", 2);
2630
- _([
2903
+ ], w.prototype, "label", 2);
2904
+ P([
2631
2905
  n({ type: Boolean, reflect: !0 })
2632
- ], b.prototype, "animated", 2);
2633
- _([
2906
+ ], w.prototype, "animated", 2);
2907
+ P([
2634
2908
  n({ type: Boolean, reflect: !0 })
2635
- ], b.prototype, "indeterminate", 2);
2636
- _([
2909
+ ], w.prototype, "indeterminate", 2);
2910
+ P([
2637
2911
  n({ type: Boolean, reflect: !0 })
2638
- ], b.prototype, "segmented", 2);
2639
- _([
2912
+ ], w.prototype, "segmented", 2);
2913
+ P([
2640
2914
  n({ type: String, reflect: !0 })
2641
- ], b.prototype, "size", 2);
2642
- _([
2915
+ ], w.prototype, "size", 2);
2916
+ P([
2643
2917
  n({ type: String, reflect: !0 })
2644
- ], b.prototype, "variant", 2);
2645
- _([
2918
+ ], w.prototype, "variant", 2);
2919
+ P([
2646
2920
  n({ type: Boolean })
2647
- ], b.prototype, "showValue", 2);
2648
- b = _([
2649
- d("crt-progress")
2650
- ], b);
2651
- var Tr = Object.defineProperty, jr = Object.getOwnPropertyDescriptor, ht = (r, t, a, s) => {
2652
- for (var e = s > 1 ? void 0 : s ? jr(t, a) : t, i = r.length - 1, o; i >= 0; i--)
2653
- (o = r[i]) && (e = (s ? o(t, a, e) : o(e)) || e);
2654
- return s && e && Tr(t, a, e), e;
2921
+ ], w.prototype, "showValue", 2);
2922
+ w = P([
2923
+ v("crt-progress")
2924
+ ], w);
2925
+ var Or = Object.defineProperty, Pr = Object.getOwnPropertyDescriptor, Pt = (e, t, a, s) => {
2926
+ for (var r = s > 1 ? void 0 : s ? Pr(t, a) : t, i = e.length - 1, o; i >= 0; i--)
2927
+ (o = e[i]) && (r = (s ? o(t, a, r) : o(r)) || r);
2928
+ return s && r && Or(t, a, r), r;
2655
2929
  };
2656
- let V = class extends p {
2930
+ let tt = class extends h {
2657
2931
  constructor() {
2658
2932
  super(...arguments), this.text = "", this.position = "top", this.delay = 200, this._visible = !1;
2659
2933
  }
@@ -2666,7 +2940,7 @@ let V = class extends p {
2666
2940
  this._timeout && clearTimeout(this._timeout), this._visible = !1;
2667
2941
  }
2668
2942
  render() {
2669
- return c`
2943
+ return l`
2670
2944
  <div
2671
2945
  class="trigger"
2672
2946
  @mouseenter="${this._show}"
@@ -2682,7 +2956,7 @@ let V = class extends p {
2682
2956
  `;
2683
2957
  }
2684
2958
  };
2685
- V.styles = l`
2959
+ tt.styles = d`
2686
2960
  :host {
2687
2961
  display: inline-block;
2688
2962
  position: relative;
@@ -2789,37 +3063,37 @@ V.styles = l`
2789
3063
  border-right-color: var(--crt-primary);
2790
3064
  }
2791
3065
  `;
2792
- ht([
3066
+ Pt([
2793
3067
  n({ type: String })
2794
- ], V.prototype, "text", 2);
2795
- ht([
3068
+ ], tt.prototype, "text", 2);
3069
+ Pt([
2796
3070
  n({ type: String, reflect: !0 })
2797
- ], V.prototype, "position", 2);
2798
- ht([
3071
+ ], tt.prototype, "position", 2);
3072
+ Pt([
2799
3073
  n({ type: Number })
2800
- ], V.prototype, "delay", 2);
2801
- ht([
2802
- v()
2803
- ], V.prototype, "_visible", 2);
2804
- V = ht([
2805
- d("crt-tooltip")
2806
- ], V);
2807
- var Ar = Object.defineProperty, Mr = Object.getOwnPropertyDescriptor, Mt = (r, t, a, s) => {
2808
- for (var e = s > 1 ? void 0 : s ? Mr(t, a) : t, i = r.length - 1, o; i >= 0; i--)
2809
- (o = r[i]) && (e = (s ? o(t, a, e) : o(e)) || e);
2810
- return s && e && Ar(t, a, e), e;
3074
+ ], tt.prototype, "delay", 2);
3075
+ Pt([
3076
+ m()
3077
+ ], tt.prototype, "_visible", 2);
3078
+ tt = Pt([
3079
+ v("crt-tooltip")
3080
+ ], tt);
3081
+ var Ar = Object.defineProperty, Sr = Object.getOwnPropertyDescriptor, oe = (e, t, a, s) => {
3082
+ for (var r = s > 1 ? void 0 : s ? Sr(t, a) : t, i = e.length - 1, o; i >= 0; i--)
3083
+ (o = e[i]) && (r = (s ? o(t, a, r) : o(r)) || r);
3084
+ return s && r && Ar(t, a, r), r;
2811
3085
  };
2812
- let ot = class extends p {
3086
+ let kt = class extends h {
2813
3087
  constructor() {
2814
3088
  super(...arguments), this.items = [], this.separator = ">";
2815
3089
  }
2816
3090
  render() {
2817
- return c`
3091
+ return l`
2818
3092
  <nav class="breadcrumb" aria-label="Breadcrumb">
2819
- ${this.items.map((r, t) => c`
3093
+ ${this.items.map((e, t) => l`
2820
3094
  <span class="item ${t === this.items.length - 1 ? "active" : ""}">
2821
- ${r.href && t !== this.items.length - 1 ? c`<a href="${r.href}">${r.label}</a>` : c`<span class="text">${r.label}</span>`}
2822
- ${t < this.items.length - 1 ? c`<span class="separator">${this.separator}</span>` : ""}
3095
+ ${e.href && t !== this.items.length - 1 ? l`<a href="${e.href}">${e.label}</a>` : l`<span class="text">${e.label}</span>`}
3096
+ ${t < this.items.length - 1 ? l`<span class="separator">${this.separator}</span>` : ""}
2823
3097
  </span>
2824
3098
  `)}
2825
3099
  <slot></slot>
@@ -2827,7 +3101,7 @@ let ot = class extends p {
2827
3101
  `;
2828
3102
  }
2829
3103
  };
2830
- ot.styles = l`
3104
+ kt.styles = d`
2831
3105
  :host {
2832
3106
  display: block;
2833
3107
  font-family: var(--crt-font-family);
@@ -2876,40 +3150,40 @@ ot.styles = l`
2876
3150
  font-size: var(--crt-font-size-sm);
2877
3151
  }
2878
3152
  `;
2879
- Mt([
3153
+ oe([
2880
3154
  n({ type: Array })
2881
- ], ot.prototype, "items", 2);
2882
- Mt([
3155
+ ], kt.prototype, "items", 2);
3156
+ oe([
2883
3157
  n({ type: String })
2884
- ], ot.prototype, "separator", 2);
2885
- ot = Mt([
2886
- d("crt-breadcrumb")
2887
- ], ot);
2888
- var Ir = Object.defineProperty, Lr = Object.getOwnPropertyDescriptor, vt = (r, t, a, s) => {
2889
- for (var e = s > 1 ? void 0 : s ? Lr(t, a) : t, i = r.length - 1, o; i >= 0; i--)
2890
- (o = r[i]) && (e = (s ? o(t, a, e) : o(e)) || e);
2891
- return s && e && Ir(t, a, e), e;
3158
+ ], kt.prototype, "separator", 2);
3159
+ kt = oe([
3160
+ v("crt-breadcrumb")
3161
+ ], kt);
3162
+ var Er = Object.defineProperty, Dr = Object.getOwnPropertyDescriptor, At = (e, t, a, s) => {
3163
+ for (var r = s > 1 ? void 0 : s ? Dr(t, a) : t, i = e.length - 1, o; i >= 0; i--)
3164
+ (o = e[i]) && (r = (s ? o(t, a, r) : o(r)) || r);
3165
+ return s && r && Er(t, a, r), r;
2892
3166
  };
2893
- let X = class extends p {
3167
+ let et = class extends h {
2894
3168
  constructor() {
2895
3169
  super(...arguments), this.current = 1, this.total = 1, this.siblings = 1, this.showInfo = !0;
2896
3170
  }
2897
- _goToPage(r) {
2898
- r >= 1 && r <= this.total && r !== this.current && (this.current = r, this.dispatchEvent(new CustomEvent("change", {
3171
+ _goToPage(e) {
3172
+ e >= 1 && e <= this.total && e !== this.current && (this.current = e, this.dispatchEvent(new CustomEvent("change", {
2899
3173
  detail: { page: this.current }
2900
3174
  })));
2901
3175
  }
2902
3176
  _getPageNumbers() {
2903
- const r = [], t = this.current > this.siblings + 2, a = this.current < this.total - this.siblings - 1;
2904
- r.push(1), t && r.push("...");
2905
- const s = Math.max(2, this.current - this.siblings), e = Math.min(this.total - 1, this.current + this.siblings);
2906
- for (let i = s; i <= e; i++)
2907
- r.includes(i) || r.push(i);
2908
- return a && r.push("..."), this.total > 1 && !r.includes(this.total) && r.push(this.total), r;
3177
+ const e = [], t = this.current > this.siblings + 2, a = this.current < this.total - this.siblings - 1;
3178
+ e.push(1), t && e.push("...");
3179
+ const s = Math.max(2, this.current - this.siblings), r = Math.min(this.total - 1, this.current + this.siblings);
3180
+ for (let i = s; i <= r; i++)
3181
+ e.includes(i) || e.push(i);
3182
+ return a && e.push("..."), this.total > 1 && !e.includes(this.total) && e.push(this.total), e;
2909
3183
  }
2910
3184
  render() {
2911
- const r = this._getPageNumbers();
2912
- return c`
3185
+ const e = this._getPageNumbers();
3186
+ return l`
2913
3187
  <nav class="pagination" aria-label="Pagination">
2914
3188
  <button
2915
3189
  class="page-btn"
@@ -2920,8 +3194,8 @@ let X = class extends p {
2920
3194
 
2921
3195
  </button>
2922
3196
 
2923
- ${r.map(
2924
- (t) => t === "..." ? c`<span class="page-ellipsis">...</span>` : c`
3197
+ ${e.map(
3198
+ (t) => t === "..." ? l`<span class="page-ellipsis">...</span>` : l`
2925
3199
  <button
2926
3200
  class="page-btn ${t === this.current ? "active" : ""}"
2927
3201
  @click="${() => this._goToPage(t)}"
@@ -2942,14 +3216,14 @@ let X = class extends p {
2942
3216
 
2943
3217
  </button>
2944
3218
 
2945
- ${this.showInfo ? c`
3219
+ ${this.showInfo ? l`
2946
3220
  <span class="page-info">Seite ${this.current} von ${this.total}</span>
2947
3221
  ` : ""}
2948
3222
  </nav>
2949
3223
  `;
2950
3224
  }
2951
3225
  };
2952
- X.styles = l`
3226
+ et.styles = d`
2953
3227
  :host {
2954
3228
  display: block;
2955
3229
  font-family: var(--crt-font-family);
@@ -3004,38 +3278,38 @@ X.styles = l`
3004
3278
  margin-left: var(--crt-spacing-md);
3005
3279
  }
3006
3280
  `;
3007
- vt([
3281
+ At([
3008
3282
  n({ type: Number })
3009
- ], X.prototype, "current", 2);
3010
- vt([
3283
+ ], et.prototype, "current", 2);
3284
+ At([
3011
3285
  n({ type: Number })
3012
- ], X.prototype, "total", 2);
3013
- vt([
3286
+ ], et.prototype, "total", 2);
3287
+ At([
3014
3288
  n({ type: Number })
3015
- ], X.prototype, "siblings", 2);
3016
- vt([
3289
+ ], et.prototype, "siblings", 2);
3290
+ At([
3017
3291
  n({ type: Boolean })
3018
- ], X.prototype, "showInfo", 2);
3019
- X = vt([
3020
- d("crt-pagination")
3021
- ], X);
3022
- var Ur = Object.defineProperty, Nr = Object.getOwnPropertyDescriptor, T = (r, t, a, s) => {
3023
- for (var e = s > 1 ? void 0 : s ? Nr(t, a) : t, i = r.length - 1, o; i >= 0; i--)
3024
- (o = r[i]) && (e = (s ? o(t, a, e) : o(e)) || e);
3025
- return s && e && Ur(t, a, e), e;
3292
+ ], et.prototype, "showInfo", 2);
3293
+ et = At([
3294
+ v("crt-pagination")
3295
+ ], et);
3296
+ var Mr = Object.defineProperty, Tr = Object.getOwnPropertyDescriptor, L = (e, t, a, s) => {
3297
+ for (var r = s > 1 ? void 0 : s ? Tr(t, a) : t, i = e.length - 1, o; i >= 0; i--)
3298
+ (o = e[i]) && (r = (s ? o(t, a, r) : o(r)) || r);
3299
+ return s && r && Mr(t, a, r), r;
3026
3300
  };
3027
- let f = class extends p {
3301
+ let k = class extends h {
3028
3302
  constructor() {
3029
3303
  super(...arguments), this.value = 50, this.min = 0, this.max = 100, this.step = 1, this.label = "", this.disabled = !1, this.showMarks = !1, this.unit = "";
3030
3304
  }
3031
- _handleInput(r) {
3032
- const t = r.target;
3305
+ _handleInput(e) {
3306
+ const t = e.target;
3033
3307
  this.value = Number(t.value), this.dispatchEvent(new CustomEvent("input", {
3034
3308
  detail: { value: this.value }
3035
3309
  }));
3036
3310
  }
3037
- _handleChange(r) {
3038
- const t = r.target;
3311
+ _handleChange(e) {
3312
+ const t = e.target;
3039
3313
  this.value = Number(t.value), this.dispatchEvent(new CustomEvent("change", {
3040
3314
  detail: { value: this.value }
3041
3315
  }));
@@ -3044,9 +3318,9 @@ let f = class extends p {
3044
3318
  return (this.value - this.min) / (this.max - this.min) * 100;
3045
3319
  }
3046
3320
  render() {
3047
- return c`
3321
+ return l`
3048
3322
  <div class="slider-wrapper">
3049
- ${this.label ? c`
3323
+ ${this.label ? l`
3050
3324
  <div class="slider-header">
3051
3325
  <span class="slider-label">${this.label}</span>
3052
3326
  <span class="slider-value">${this.value}${this.unit}</span>
@@ -3067,7 +3341,7 @@ let f = class extends p {
3067
3341
  />
3068
3342
  </div>
3069
3343
 
3070
- ${this.showMarks ? c`
3344
+ ${this.showMarks ? l`
3071
3345
  <div class="slider-marks">
3072
3346
  <span class="slider-mark">${this.min}${this.unit}</span>
3073
3347
  <span class="slider-mark">${this.max}${this.unit}</span>
@@ -3077,7 +3351,7 @@ let f = class extends p {
3077
3351
  `;
3078
3352
  }
3079
3353
  };
3080
- f.styles = l`
3354
+ k.styles = d`
3081
3355
  :host {
3082
3356
  display: block;
3083
3357
  font-family: var(--crt-font-family);
@@ -3105,7 +3379,8 @@ f.styles = l`
3105
3379
  .slider-value {
3106
3380
  color: var(--crt-primary);
3107
3381
  font-size: var(--crt-font-size-base);
3108
- min-width: 50px;
3382
+ min-width: 36px;
3383
+ flex: 0 0 auto;
3109
3384
  text-align: right;
3110
3385
  }
3111
3386
 
@@ -3116,6 +3391,13 @@ f.styles = l`
3116
3391
  align-items: center;
3117
3392
  }
3118
3393
 
3394
+ /* Allow range input and wrapper to shrink inside flexible containers */
3395
+ .slider-wrapper, .slider-track, input[type="range"] {
3396
+ box-sizing: border-box;
3397
+ min-width: 0;
3398
+ width: 100%;
3399
+ }
3400
+
3119
3401
  input[type="range"] {
3120
3402
  -webkit-appearance: none;
3121
3403
  appearance: none;
@@ -3203,50 +3485,50 @@ f.styles = l`
3203
3485
  cursor: not-allowed;
3204
3486
  }
3205
3487
  `;
3206
- T([
3488
+ L([
3207
3489
  n({ type: Number })
3208
- ], f.prototype, "value", 2);
3209
- T([
3490
+ ], k.prototype, "value", 2);
3491
+ L([
3210
3492
  n({ type: Number })
3211
- ], f.prototype, "min", 2);
3212
- T([
3493
+ ], k.prototype, "min", 2);
3494
+ L([
3213
3495
  n({ type: Number })
3214
- ], f.prototype, "max", 2);
3215
- T([
3496
+ ], k.prototype, "max", 2);
3497
+ L([
3216
3498
  n({ type: Number })
3217
- ], f.prototype, "step", 2);
3218
- T([
3499
+ ], k.prototype, "step", 2);
3500
+ L([
3219
3501
  n({ type: String })
3220
- ], f.prototype, "label", 2);
3221
- T([
3502
+ ], k.prototype, "label", 2);
3503
+ L([
3222
3504
  n({ type: Boolean, reflect: !0 })
3223
- ], f.prototype, "disabled", 2);
3224
- T([
3505
+ ], k.prototype, "disabled", 2);
3506
+ L([
3225
3507
  n({ type: Boolean })
3226
- ], f.prototype, "showMarks", 2);
3227
- T([
3508
+ ], k.prototype, "showMarks", 2);
3509
+ L([
3228
3510
  n({ type: String })
3229
- ], f.prototype, "unit", 2);
3230
- f = T([
3231
- d("crt-slider")
3232
- ], f);
3233
- var Rr = Object.defineProperty, Fr = Object.getOwnPropertyDescriptor, G = (r, t, a, s) => {
3234
- for (var e = s > 1 ? void 0 : s ? Fr(t, a) : t, i = r.length - 1, o; i >= 0; i--)
3235
- (o = r[i]) && (e = (s ? o(t, a, e) : o(e)) || e);
3236
- return s && e && Rr(t, a, e), e;
3511
+ ], k.prototype, "unit", 2);
3512
+ k = L([
3513
+ v("crt-slider")
3514
+ ], k);
3515
+ var jr = Object.defineProperty, Lr = Object.getOwnPropertyDescriptor, ot = (e, t, a, s) => {
3516
+ for (var r = s > 1 ? void 0 : s ? Lr(t, a) : t, i = e.length - 1, o; i >= 0; i--)
3517
+ (o = e[i]) && (r = (s ? o(t, a, r) : o(r)) || r);
3518
+ return s && r && jr(t, a, r), r;
3237
3519
  };
3238
- let S = class extends p {
3520
+ let M = class extends h {
3239
3521
  constructor() {
3240
3522
  super(...arguments), this.checked = !1, this.disabled = !1, this.label = "", this.onLabel = "1", this.offLabel = "0", this.size = "medium";
3241
3523
  }
3242
- _handleChange(r) {
3243
- const t = r.target;
3524
+ _handleChange(e) {
3525
+ const t = e.target;
3244
3526
  this.checked = t.checked, this.dispatchEvent(new CustomEvent("change", {
3245
3527
  detail: { checked: this.checked }
3246
3528
  }));
3247
3529
  }
3248
3530
  render() {
3249
- return c`
3531
+ return l`
3250
3532
  <label class="toggle-wrapper">
3251
3533
  <input
3252
3534
  type="checkbox"
@@ -3262,11 +3544,11 @@ let S = class extends p {
3262
3544
  </div>
3263
3545
  </div>
3264
3546
  </label>
3265
- ${this.label ? c`<span class="label">${this.label}</span>` : ""}
3547
+ ${this.label ? l`<span class="label">${this.label}</span>` : ""}
3266
3548
  `;
3267
3549
  }
3268
3550
  };
3269
- S.styles = l`
3551
+ M.styles = d`
3270
3552
  :host {
3271
3553
  display: inline-flex;
3272
3554
  align-items: center;
@@ -3388,66 +3670,66 @@ S.styles = l`
3388
3670
  left: 35px;
3389
3671
  }
3390
3672
  `;
3391
- G([
3673
+ ot([
3392
3674
  n({ type: Boolean, reflect: !0 })
3393
- ], S.prototype, "checked", 2);
3394
- G([
3675
+ ], M.prototype, "checked", 2);
3676
+ ot([
3395
3677
  n({ type: Boolean, reflect: !0 })
3396
- ], S.prototype, "disabled", 2);
3397
- G([
3678
+ ], M.prototype, "disabled", 2);
3679
+ ot([
3398
3680
  n({ type: String })
3399
- ], S.prototype, "label", 2);
3400
- G([
3681
+ ], M.prototype, "label", 2);
3682
+ ot([
3401
3683
  n({ type: String })
3402
- ], S.prototype, "onLabel", 2);
3403
- G([
3684
+ ], M.prototype, "onLabel", 2);
3685
+ ot([
3404
3686
  n({ type: String })
3405
- ], S.prototype, "offLabel", 2);
3406
- G([
3687
+ ], M.prototype, "offLabel", 2);
3688
+ ot([
3407
3689
  n({ type: String, reflect: !0 })
3408
- ], S.prototype, "size", 2);
3409
- S = G([
3410
- d("crt-toggle")
3411
- ], S);
3412
- var Br = Object.defineProperty, Yr = Object.getOwnPropertyDescriptor, j = (r, t, a, s) => {
3413
- for (var e = s > 1 ? void 0 : s ? Yr(t, a) : t, i = r.length - 1, o; i >= 0; i--)
3414
- (o = r[i]) && (e = (s ? o(t, a, e) : o(e)) || e);
3415
- return s && e && Br(t, a, e), e;
3690
+ ], M.prototype, "size", 2);
3691
+ M = ot([
3692
+ v("crt-toggle")
3693
+ ], M);
3694
+ var Ir = Object.defineProperty, Br = Object.getOwnPropertyDescriptor, I = (e, t, a, s) => {
3695
+ for (var r = s > 1 ? void 0 : s ? Br(t, a) : t, i = e.length - 1, o; i >= 0; i--)
3696
+ (o = e[i]) && (r = (s ? o(t, a, r) : o(r)) || r);
3697
+ return s && r && Ir(t, a, r), r;
3416
3698
  };
3417
- let D = class extends p {
3699
+ let T = class extends h {
3418
3700
  constructor() {
3419
3701
  super(...arguments), this.src = "", this.alt = "", this.name = "", this.size = "md", this.shape = "square", this.status = "";
3420
3702
  }
3421
3703
  _getInitials() {
3422
3704
  if (!this.name) return "?";
3423
- const r = this.name.trim().split(/\s+/);
3424
- return r.length === 1 ? r[0].substring(0, 2) : r[0][0] + r[r.length - 1][0];
3705
+ const e = this.name.trim().split(/\s+/);
3706
+ return e.length === 1 ? e[0].substring(0, 2) : e[0][0] + e[e.length - 1][0];
3425
3707
  }
3426
3708
  _handleError() {
3427
3709
  this.src = "";
3428
3710
  }
3429
3711
  render() {
3430
- return c`
3712
+ return l`
3431
3713
  <div class="avatar-wrapper">
3432
3714
  <div class="avatar">
3433
- ${this.src ? c`
3715
+ ${this.src ? l`
3434
3716
  <img
3435
3717
  src="${this.src}"
3436
3718
  alt="${this.alt || this.name}"
3437
3719
  @error="${this._handleError}"
3438
3720
  />
3439
- ` : this.name ? c`
3721
+ ` : this.name ? l`
3440
3722
  <span class="initials">${this._getInitials()}</span>
3441
- ` : c`
3723
+ ` : l`
3442
3724
  <span class="fallback-icon">[?]</span>
3443
3725
  `}
3444
3726
  </div>
3445
- ${this.status ? c`<div class="status-indicator"></div>` : ""}
3727
+ ${this.status ? l`<div class="status-indicator"></div>` : ""}
3446
3728
  </div>
3447
3729
  `;
3448
3730
  }
3449
3731
  };
3450
- D.styles = l`
3732
+ T.styles = d`
3451
3733
  :host {
3452
3734
  display: inline-block;
3453
3735
  font-family: var(--crt-font-family);
@@ -3575,38 +3857,38 @@ D.styles = l`
3575
3857
  border-color: var(--crt-bg-dark);
3576
3858
  }
3577
3859
  `;
3578
- j([
3860
+ I([
3579
3861
  n({ type: String })
3580
- ], D.prototype, "src", 2);
3581
- j([
3862
+ ], T.prototype, "src", 2);
3863
+ I([
3582
3864
  n({ type: String })
3583
- ], D.prototype, "alt", 2);
3584
- j([
3865
+ ], T.prototype, "alt", 2);
3866
+ I([
3585
3867
  n({ type: String })
3586
- ], D.prototype, "name", 2);
3587
- j([
3868
+ ], T.prototype, "name", 2);
3869
+ I([
3588
3870
  n({ type: String, reflect: !0 })
3589
- ], D.prototype, "size", 2);
3590
- j([
3871
+ ], T.prototype, "size", 2);
3872
+ I([
3591
3873
  n({ type: String, reflect: !0 })
3592
- ], D.prototype, "shape", 2);
3593
- j([
3874
+ ], T.prototype, "shape", 2);
3875
+ I([
3594
3876
  n({ type: String, reflect: !0 })
3595
- ], D.prototype, "status", 2);
3596
- D = j([
3597
- d("crt-avatar")
3598
- ], D);
3599
- let kt = class extends p {
3877
+ ], T.prototype, "status", 2);
3878
+ T = I([
3879
+ v("crt-avatar")
3880
+ ], T);
3881
+ let Rt = class extends h {
3600
3882
  constructor() {
3601
3883
  super(...arguments), this.max = 5;
3602
3884
  }
3603
3885
  render() {
3604
- return c`
3886
+ return l`
3605
3887
  <slot></slot>
3606
3888
  `;
3607
3889
  }
3608
3890
  };
3609
- kt.styles = l`
3891
+ Rt.styles = d`
3610
3892
  :host {
3611
3893
  display: inline-flex;
3612
3894
  align-items: center;
@@ -3635,23 +3917,23 @@ kt.styles = l`
3635
3917
  box-shadow: var(--crt-glow-sm);
3636
3918
  }
3637
3919
  `;
3638
- j([
3920
+ I([
3639
3921
  n({ type: Number })
3640
- ], kt.prototype, "max", 2);
3641
- kt = j([
3642
- d("crt-avatar-group")
3643
- ], kt);
3644
- var Vr = Object.defineProperty, Xr = Object.getOwnPropertyDescriptor, z = (r, t, a, s) => {
3645
- for (var e = s > 1 ? void 0 : s ? Xr(t, a) : t, i = r.length - 1, o; i >= 0; i--)
3646
- (o = r[i]) && (e = (s ? o(t, a, e) : o(e)) || e);
3647
- return s && e && Vr(t, a, e), e;
3922
+ ], Rt.prototype, "max", 2);
3923
+ Rt = I([
3924
+ v("crt-avatar-group")
3925
+ ], Rt);
3926
+ var Nr = Object.defineProperty, Ur = Object.getOwnPropertyDescriptor, A = (e, t, a, s) => {
3927
+ for (var r = s > 1 ? void 0 : s ? Ur(t, a) : t, i = e.length - 1, o; i >= 0; i--)
3928
+ (o = e[i]) && (r = (s ? o(t, a, r) : o(r)) || r);
3929
+ return s && r && Nr(t, a, r), r;
3648
3930
  };
3649
- let N = class extends p {
3931
+ let V = class extends h {
3650
3932
  constructor() {
3651
3933
  super(...arguments), this.variant = "rectangular", this.animation = "shimmer", this.width = "100%", this.height = "20px", this.effect = !1;
3652
3934
  }
3653
3935
  render() {
3654
- return c`
3936
+ return l`
3655
3937
  <div
3656
3938
  class="skeleton"
3657
3939
  style="width: ${this.width}; height: ${this.height};"
@@ -3659,7 +3941,7 @@ let N = class extends p {
3659
3941
  `;
3660
3942
  }
3661
3943
  };
3662
- N.styles = l`
3944
+ V.styles = d`
3663
3945
  :host {
3664
3946
  display: block;
3665
3947
  }
@@ -3774,37 +4056,37 @@ N.styles = l`
3774
4056
  pointer-events: none;
3775
4057
  }
3776
4058
  `;
3777
- z([
4059
+ A([
3778
4060
  n({ type: String, reflect: !0 })
3779
- ], N.prototype, "variant", 2);
3780
- z([
4061
+ ], V.prototype, "variant", 2);
4062
+ A([
3781
4063
  n({ type: String, reflect: !0 })
3782
- ], N.prototype, "animation", 2);
3783
- z([
4064
+ ], V.prototype, "animation", 2);
4065
+ A([
3784
4066
  n({ type: String })
3785
- ], N.prototype, "width", 2);
3786
- z([
4067
+ ], V.prototype, "width", 2);
4068
+ A([
3787
4069
  n({ type: String })
3788
- ], N.prototype, "height", 2);
3789
- z([
4070
+ ], V.prototype, "height", 2);
4071
+ A([
3790
4072
  n({ type: Boolean, reflect: !0 })
3791
- ], N.prototype, "effect", 2);
3792
- N = z([
3793
- d("crt-skeleton")
3794
- ], N);
3795
- let $t = class extends p {
4073
+ ], V.prototype, "effect", 2);
4074
+ V = A([
4075
+ v("crt-skeleton")
4076
+ ], V);
4077
+ let Ft = class extends h {
3796
4078
  constructor() {
3797
4079
  super(...arguments), this.lines = 3;
3798
4080
  }
3799
4081
  render() {
3800
- return c`
3801
- ${Array.from({ length: this.lines }).map(() => c`
4082
+ return l`
4083
+ ${Array.from({ length: this.lines }).map(() => l`
3802
4084
  <div class="line"></div>
3803
4085
  `)}
3804
4086
  `;
3805
4087
  }
3806
4088
  };
3807
- $t.styles = l`
4089
+ Ft.styles = d`
3808
4090
  :host {
3809
4091
  display: block;
3810
4092
  }
@@ -3836,20 +4118,20 @@ $t.styles = l`
3836
4118
  }
3837
4119
  }
3838
4120
  `;
3839
- z([
4121
+ A([
3840
4122
  n({ type: Number })
3841
- ], $t.prototype, "lines", 2);
3842
- $t = z([
3843
- d("crt-skeleton-text")
3844
- ], $t);
3845
- let _t = class extends p {
4123
+ ], Ft.prototype, "lines", 2);
4124
+ Ft = A([
4125
+ v("crt-skeleton-text")
4126
+ ], Ft);
4127
+ let Ht = class extends h {
3846
4128
  constructor() {
3847
4129
  super(...arguments), this.hideImage = !1;
3848
4130
  }
3849
4131
  render() {
3850
- return c`
4132
+ return l`
3851
4133
  <div class="card">
3852
- ${this.hideImage ? "" : c`<div class="image"></div>`}
4134
+ ${this.hideImage ? "" : l`<div class="image"></div>`}
3853
4135
  <div class="title"></div>
3854
4136
  <div class="text"></div>
3855
4137
  <div class="text"></div>
@@ -3858,7 +4140,7 @@ let _t = class extends p {
3858
4140
  `;
3859
4141
  }
3860
4142
  };
3861
- _t.styles = l`
4143
+ Ht.styles = d`
3862
4144
  :host {
3863
4145
  display: block;
3864
4146
  }
@@ -3909,18 +4191,18 @@ _t.styles = l`
3909
4191
  }
3910
4192
  }
3911
4193
  `;
3912
- z([
4194
+ A([
3913
4195
  n({ type: Boolean })
3914
- ], _t.prototype, "hideImage", 2);
3915
- _t = z([
3916
- d("crt-skeleton-card")
3917
- ], _t);
3918
- var qr = Object.defineProperty, Wr = Object.getOwnPropertyDescriptor, A = (r, t, a, s) => {
3919
- for (var e = s > 1 ? void 0 : s ? Wr(t, a) : t, i = r.length - 1, o; i >= 0; i--)
3920
- (o = r[i]) && (e = (s ? o(t, a, e) : o(e)) || e);
3921
- return s && e && qr(t, a, e), e;
4196
+ ], Ht.prototype, "hideImage", 2);
4197
+ Ht = A([
4198
+ v("crt-skeleton-card")
4199
+ ], Ht);
4200
+ var Rr = Object.defineProperty, Fr = Object.getOwnPropertyDescriptor, B = (e, t, a, s) => {
4201
+ for (var r = s > 1 ? void 0 : s ? Fr(t, a) : t, i = e.length - 1, o; i >= 0; i--)
4202
+ (o = e[i]) && (r = (s ? o(t, a, r) : o(r)) || r);
4203
+ return s && r && Rr(t, a, r), r;
3922
4204
  };
3923
- let y = class extends p {
4205
+ let $ = class extends h {
3924
4206
  constructor() {
3925
4207
  super(...arguments), this.variant = "info", this.title = "", this.closable = !1, this.filled = !1, this.outlined = !1, this.banner = !1, this.animated = !1, this.icon = "";
3926
4208
  }
@@ -3936,11 +4218,11 @@ let y = class extends p {
3936
4218
  this.dispatchEvent(new CustomEvent("close")), this.remove();
3937
4219
  }
3938
4220
  render() {
3939
- return c`
4221
+ return l`
3940
4222
  <div class="alert" role="alert">
3941
4223
  <span class="alert-icon">${this.icon || this._getDefaultIcon()}</span>
3942
4224
  <div class="alert-content">
3943
- ${this.title ? c`<div class="alert-title">${this.title}</div>` : ""}
4225
+ ${this.title ? l`<div class="alert-title">${this.title}</div>` : ""}
3944
4226
  <div class="alert-message">
3945
4227
  <slot></slot>
3946
4228
  </div>
@@ -3948,14 +4230,14 @@ let y = class extends p {
3948
4230
  <slot name="actions"></slot>
3949
4231
  </div>
3950
4232
  </div>
3951
- ${this.closable ? c`
4233
+ ${this.closable ? l`
3952
4234
  <button class="alert-close" @click="${this._handleClose}">[X]</button>
3953
4235
  ` : ""}
3954
4236
  </div>
3955
4237
  `;
3956
4238
  }
3957
4239
  };
3958
- y.styles = l`
4240
+ $.styles = d`
3959
4241
  :host {
3960
4242
  display: block;
3961
4243
  font-family: var(--crt-font-family);
@@ -4120,44 +4402,44 @@ y.styles = l`
4120
4402
  border-top: none;
4121
4403
  }
4122
4404
  `;
4123
- A([
4405
+ B([
4124
4406
  n({ type: String, reflect: !0 })
4125
- ], y.prototype, "variant", 2);
4126
- A([
4407
+ ], $.prototype, "variant", 2);
4408
+ B([
4127
4409
  n({ type: String })
4128
- ], y.prototype, "title", 2);
4129
- A([
4410
+ ], $.prototype, "title", 2);
4411
+ B([
4130
4412
  n({ type: Boolean, reflect: !0 })
4131
- ], y.prototype, "closable", 2);
4132
- A([
4413
+ ], $.prototype, "closable", 2);
4414
+ B([
4133
4415
  n({ type: Boolean, reflect: !0 })
4134
- ], y.prototype, "filled", 2);
4135
- A([
4416
+ ], $.prototype, "filled", 2);
4417
+ B([
4136
4418
  n({ type: Boolean, reflect: !0 })
4137
- ], y.prototype, "outlined", 2);
4138
- A([
4419
+ ], $.prototype, "outlined", 2);
4420
+ B([
4139
4421
  n({ type: Boolean, reflect: !0 })
4140
- ], y.prototype, "banner", 2);
4141
- A([
4422
+ ], $.prototype, "banner", 2);
4423
+ B([
4142
4424
  n({ type: Boolean, reflect: !0 })
4143
- ], y.prototype, "animated", 2);
4144
- A([
4425
+ ], $.prototype, "animated", 2);
4426
+ B([
4145
4427
  n({ type: String })
4146
- ], y.prototype, "icon", 2);
4147
- y = A([
4148
- d("crt-alert")
4149
- ], y);
4150
- var Hr = Object.defineProperty, Kr = Object.getOwnPropertyDescriptor, It = (r, t, a, s) => {
4151
- for (var e = s > 1 ? void 0 : s ? Kr(t, a) : t, i = r.length - 1, o; i >= 0; i--)
4152
- (o = r[i]) && (e = (s ? o(t, a, e) : o(e)) || e);
4153
- return s && e && Hr(t, a, e), e;
4428
+ ], $.prototype, "icon", 2);
4429
+ $ = B([
4430
+ v("crt-alert")
4431
+ ], $);
4432
+ var Hr = Object.defineProperty, Yr = Object.getOwnPropertyDescriptor, ne = (e, t, a, s) => {
4433
+ for (var r = s > 1 ? void 0 : s ? Yr(t, a) : t, i = e.length - 1, o; i >= 0; i--)
4434
+ (o = e[i]) && (r = (s ? o(t, a, r) : o(r)) || r);
4435
+ return s && r && Hr(t, a, r), r;
4154
4436
  };
4155
- let nt = class extends p {
4437
+ let $t = class extends h {
4156
4438
  constructor() {
4157
4439
  super(...arguments), this.open = !1, this.message = "LOADING...";
4158
4440
  }
4159
4441
  render() {
4160
- return this.open ? c`
4442
+ return this.open ? l`
4161
4443
  <div class="overlay">
4162
4444
  <div class="atom">
4163
4445
  <div class="nucleus"></div>
@@ -4173,10 +4455,10 @@ let nt = class extends p {
4173
4455
  </div>
4174
4456
  <div class="message">${this.message}</div>
4175
4457
  </div>
4176
- ` : c``;
4458
+ ` : l``;
4177
4459
  }
4178
4460
  };
4179
- nt.styles = l`
4461
+ $t.styles = d`
4180
4462
  :host {
4181
4463
  display: block;
4182
4464
  }
@@ -4398,23 +4680,23 @@ nt.styles = l`
4398
4680
  50% { opacity: 0.5; }
4399
4681
  }
4400
4682
  `;
4401
- It([
4683
+ ne([
4402
4684
  n({ type: Boolean, reflect: !0 })
4403
- ], nt.prototype, "open", 2);
4404
- It([
4685
+ ], $t.prototype, "open", 2);
4686
+ ne([
4405
4687
  n({ type: String })
4406
- ], nt.prototype, "message", 2);
4407
- nt = It([
4408
- d("crt-spinner")
4409
- ], nt);
4410
- var Gr = Object.getOwnPropertyDescriptor, Jr = (r, t, a, s) => {
4411
- for (var e = s > 1 ? void 0 : s ? Gr(t, a) : t, i = r.length - 1, o; i >= 0; i--)
4412
- (o = r[i]) && (e = o(e) || e);
4413
- return e;
4688
+ ], $t.prototype, "message", 2);
4689
+ $t = ne([
4690
+ v("crt-spinner")
4691
+ ], $t);
4692
+ var Vr = Object.getOwnPropertyDescriptor, qr = (e, t, a, s) => {
4693
+ for (var r = s > 1 ? void 0 : s ? Vr(t, a) : t, i = e.length - 1, o; i >= 0; i--)
4694
+ (o = e[i]) && (r = o(r) || r);
4695
+ return r;
4414
4696
  };
4415
- let St = class extends p {
4697
+ let Qt = class extends h {
4416
4698
  render() {
4417
- return c`
4699
+ return l`
4418
4700
  <div class="card">
4419
4701
  <div class="card-header">
4420
4702
  <slot name="header"></slot>
@@ -4429,7 +4711,7 @@ let St = class extends p {
4429
4711
  `;
4430
4712
  }
4431
4713
  };
4432
- St.styles = l`
4714
+ Qt.styles = d`
4433
4715
  .card {
4434
4716
  border: 3px double var(--crt-primary);
4435
4717
  padding: var(--crt-spacing-lg);
@@ -4461,34 +4743,34 @@ St.styles = l`
4461
4743
  margin-top: var(--crt-spacing-md);
4462
4744
  }
4463
4745
  `;
4464
- St = Jr([
4465
- d("crt-card")
4466
- ], St);
4467
- var Zr = Object.defineProperty, Qr = Object.getOwnPropertyDescriptor, Lt = (r, t, a, s) => {
4468
- for (var e = s > 1 ? void 0 : s ? Qr(t, a) : t, i = r.length - 1, o; i >= 0; i--)
4469
- (o = r[i]) && (e = (s ? o(t, a, e) : o(e)) || e);
4470
- return s && e && Zr(t, a, e), e;
4746
+ Qt = qr([
4747
+ v("crt-card")
4748
+ ], Qt);
4749
+ var Wr = Object.defineProperty, Xr = Object.getOwnPropertyDescriptor, le = (e, t, a, s) => {
4750
+ for (var r = s > 1 ? void 0 : s ? Xr(t, a) : t, i = e.length - 1, o; i >= 0; i--)
4751
+ (o = e[i]) && (r = (s ? o(t, a, r) : o(r)) || r);
4752
+ return s && r && Wr(t, a, r), r;
4471
4753
  };
4472
- let ct = class extends p {
4754
+ let _t = class extends h {
4473
4755
  constructor() {
4474
4756
  super(...arguments), this.headers = [], this.rows = [];
4475
4757
  }
4476
4758
  render() {
4477
- return c`
4759
+ return l`
4478
4760
  <table>
4479
4761
  <thead>
4480
4762
  <tr>
4481
- ${this.headers.map((r) => c`<th>${r}</th>`)}
4763
+ ${this.headers.map((e) => l`<th>${e}</th>`)}
4482
4764
  </tr>
4483
4765
  </thead>
4484
4766
  <tbody>
4485
- ${this.rows.map((r) => c`<tr>${r.map((t) => c`<td>${t}</td>`)}</tr>`)}
4767
+ ${this.rows.map((e) => l`<tr>${e.map((t) => l`<td>${t}</td>`)}</tr>`)}
4486
4768
  </tbody>
4487
4769
  </table>
4488
4770
  `;
4489
4771
  }
4490
4772
  };
4491
- ct.styles = l`
4773
+ _t.styles = d`
4492
4774
  :host {
4493
4775
  display: block;
4494
4776
  }
@@ -4540,26 +4822,26 @@ ct.styles = l`
4540
4822
  border-bottom: none;
4541
4823
  }
4542
4824
  `;
4543
- Lt([
4825
+ le([
4544
4826
  n({ type: Array })
4545
- ], ct.prototype, "headers", 2);
4546
- Lt([
4827
+ ], _t.prototype, "headers", 2);
4828
+ le([
4547
4829
  n({ type: Array })
4548
- ], ct.prototype, "rows", 2);
4549
- ct = Lt([
4550
- d("crt-table")
4551
- ], ct);
4552
- var te = Object.defineProperty, re = Object.getOwnPropertyDescriptor, Ut = (r, t, a, s) => {
4553
- for (var e = s > 1 ? void 0 : s ? re(t, a) : t, i = r.length - 1, o; i >= 0; i--)
4554
- (o = r[i]) && (e = (s ? o(t, a, e) : o(e)) || e);
4555
- return s && e && te(t, a, e), e;
4830
+ ], _t.prototype, "rows", 2);
4831
+ _t = le([
4832
+ v("crt-table")
4833
+ ], _t);
4834
+ var Kr = Object.defineProperty, Gr = Object.getOwnPropertyDescriptor, ce = (e, t, a, s) => {
4835
+ for (var r = s > 1 ? void 0 : s ? Gr(t, a) : t, i = e.length - 1, o; i >= 0; i--)
4836
+ (o = e[i]) && (r = (s ? o(t, a, r) : o(r)) || r);
4837
+ return s && r && Kr(t, a, r), r;
4556
4838
  };
4557
- let lt = class extends p {
4839
+ let zt = class extends h {
4558
4840
  constructor() {
4559
4841
  super(...arguments), this.columns = 3, this.gap = "var(--crt-spacing-lg)";
4560
4842
  }
4561
4843
  render() {
4562
- return c`
4844
+ return l`
4563
4845
  <style>
4564
4846
  :host {
4565
4847
  --grid-gap: ${this.gap};
@@ -4572,7 +4854,7 @@ let lt = class extends p {
4572
4854
  `;
4573
4855
  }
4574
4856
  };
4575
- lt.styles = l`
4857
+ zt.styles = d`
4576
4858
  :host {
4577
4859
  display: block;
4578
4860
  }
@@ -4601,42 +4883,42 @@ lt.styles = l`
4601
4883
  }
4602
4884
  }
4603
4885
  `;
4604
- Ut([
4886
+ ce([
4605
4887
  n({ type: Number })
4606
- ], lt.prototype, "columns", 2);
4607
- Ut([
4888
+ ], zt.prototype, "columns", 2);
4889
+ ce([
4608
4890
  n({ type: String })
4609
- ], lt.prototype, "gap", 2);
4610
- lt = Ut([
4611
- d("crt-grid")
4612
- ], lt);
4613
- var ee = Object.defineProperty, ae = Object.getOwnPropertyDescriptor, rt = (r, t, a, s) => {
4614
- for (var e = s > 1 ? void 0 : s ? ae(t, a) : t, i = r.length - 1, o; i >= 0; i--)
4615
- (o = r[i]) && (e = (s ? o(t, a, e) : o(e)) || e);
4616
- return s && e && ee(t, a, e), e;
4891
+ ], zt.prototype, "gap", 2);
4892
+ zt = ce([
4893
+ v("crt-grid")
4894
+ ], zt);
4895
+ var Zr = Object.defineProperty, Qr = Object.getOwnPropertyDescriptor, vt = (e, t, a, s) => {
4896
+ for (var r = s > 1 ? void 0 : s ? Qr(t, a) : t, i = e.length - 1, o; i >= 0; i--)
4897
+ (o = e[i]) && (r = (s ? o(t, a, r) : o(r)) || r);
4898
+ return s && r && Zr(t, a, r), r;
4617
4899
  };
4618
- let R = class extends p {
4900
+ let q = class extends h {
4619
4901
  constructor() {
4620
4902
  super(...arguments), this.title = "", this.description = "", this.code = "", this.activeTab = "preview", this.copied = !1;
4621
4903
  }
4622
- switchTab(r) {
4623
- this.activeTab = r;
4904
+ switchTab(e) {
4905
+ this.activeTab = e;
4624
4906
  }
4625
4907
  async copyCode() {
4626
4908
  try {
4627
4909
  await navigator.clipboard.writeText(this.code), this.copied = !0, setTimeout(() => {
4628
4910
  this.copied = !1;
4629
4911
  }, 2e3);
4630
- } catch (r) {
4631
- console.error("Failed to copy:", r);
4912
+ } catch (e) {
4913
+ console.error("Failed to copy:", e);
4632
4914
  }
4633
4915
  }
4634
4916
  render() {
4635
- return c`
4917
+ return l`
4636
4918
  <div class="example-header">
4637
4919
  <h4 class="example-title">${this.title}</h4>
4638
4920
  </div>
4639
- ${this.description ? c`<p class="example-description">${this.description}</p>` : ""}
4921
+ ${this.description ? l`<p class="example-description">${this.description}</p>` : ""}
4640
4922
 
4641
4923
  <div class="tabs-wrapper">
4642
4924
  <div class="tab-header">
@@ -4672,7 +4954,7 @@ let R = class extends p {
4672
4954
  `;
4673
4955
  }
4674
4956
  };
4675
- R.styles = l`
4957
+ q.styles = d`
4676
4958
  :host {
4677
4959
  display: block;
4678
4960
  margin-bottom: var(--crt-spacing-xl);
@@ -4805,33 +5087,33 @@ R.styles = l`
4805
5087
  color: var(--crt-bg-dark);
4806
5088
  }
4807
5089
  `;
4808
- rt([
5090
+ vt([
4809
5091
  n()
4810
- ], R.prototype, "title", 2);
4811
- rt([
5092
+ ], q.prototype, "title", 2);
5093
+ vt([
4812
5094
  n()
4813
- ], R.prototype, "description", 2);
4814
- rt([
5095
+ ], q.prototype, "description", 2);
5096
+ vt([
4815
5097
  n()
4816
- ], R.prototype, "code", 2);
4817
- rt([
4818
- v()
4819
- ], R.prototype, "activeTab", 2);
4820
- rt([
4821
- v()
4822
- ], R.prototype, "copied", 2);
4823
- R = rt([
4824
- d("crt-code-example")
4825
- ], R);
4826
- var se = Object.defineProperty, ie = Object.getOwnPropertyDescriptor, Ct = (r, t, a, s) => {
4827
- for (var e = s > 1 ? void 0 : s ? ie(t, a) : t, i = r.length - 1, o; i >= 0; i--)
4828
- (o = r[i]) && (e = (s ? o(t, a, e) : o(e)) || e);
4829
- return s && e && se(t, a, e), e;
5098
+ ], q.prototype, "code", 2);
5099
+ vt([
5100
+ m()
5101
+ ], q.prototype, "activeTab", 2);
5102
+ vt([
5103
+ m()
5104
+ ], q.prototype, "copied", 2);
5105
+ q = vt([
5106
+ v("crt-code-example")
5107
+ ], q);
5108
+ var Jr = Object.defineProperty, ta = Object.getOwnPropertyDescriptor, Kt = (e, t, a, s) => {
5109
+ for (var r = s > 1 ? void 0 : s ? ta(t, a) : t, i = e.length - 1, o; i >= 0; i--)
5110
+ (o = e[i]) && (r = (s ? o(t, a, r) : o(r)) || r);
5111
+ return s && r && Jr(t, a, r), r;
4830
5112
  };
4831
- let Q = class extends p {
5113
+ let dt = class extends h {
4832
5114
  constructor() {
4833
- super(...arguments), this.open = !1, this.title = "Modal", this.size = "medium", this._handleKeydown = (r) => {
4834
- r.key === "Escape" && this.open && this.close();
5115
+ super(...arguments), this.open = !1, this.title = "Modal", this.size = "medium", this._handleKeydown = (e) => {
5116
+ e.key === "Escape" && this.open && this.close();
4835
5117
  };
4836
5118
  }
4837
5119
  connectedCallback() {
@@ -4843,11 +5125,11 @@ let Q = class extends p {
4843
5125
  close() {
4844
5126
  this.open = !1, this.dispatchEvent(new CustomEvent("close"));
4845
5127
  }
4846
- _handleBackdropClick(r) {
4847
- r.target.classList.contains("backdrop") && this.close();
5128
+ _handleBackdropClick(e) {
5129
+ e.target.classList.contains("backdrop") && this.close();
4848
5130
  }
4849
5131
  render() {
4850
- return c`
5132
+ return l`
4851
5133
  <div class="backdrop" @click="${this._handleBackdropClick}">
4852
5134
  <div class="modal" role="dialog" aria-modal="true" aria-labelledby="modal-title">
4853
5135
  <div class="modal-header">
@@ -4865,7 +5147,7 @@ let Q = class extends p {
4865
5147
  `;
4866
5148
  }
4867
5149
  };
4868
- Q.styles = l`
5150
+ dt.styles = d`
4869
5151
  :host {
4870
5152
  display: none;
4871
5153
  }
@@ -4992,24 +5274,24 @@ Q.styles = l`
4992
5274
  height: calc(95vh - 120px);
4993
5275
  }
4994
5276
  `;
4995
- Ct([
5277
+ Kt([
4996
5278
  n({ type: Boolean, reflect: !0 })
4997
- ], Q.prototype, "open", 2);
4998
- Ct([
5279
+ ], dt.prototype, "open", 2);
5280
+ Kt([
4999
5281
  n({ type: String })
5000
- ], Q.prototype, "title", 2);
5001
- Ct([
5282
+ ], dt.prototype, "title", 2);
5283
+ Kt([
5002
5284
  n({ type: String })
5003
- ], Q.prototype, "size", 2);
5004
- Q = Ct([
5005
- d("crt-modal")
5006
- ], Q);
5007
- var oe = Object.defineProperty, ne = Object.getOwnPropertyDescriptor, J = (r, t, a, s) => {
5008
- for (var e = s > 1 ? void 0 : s ? ne(t, a) : t, i = r.length - 1, o; i >= 0; i--)
5009
- (o = r[i]) && (e = (s ? o(t, a, e) : o(e)) || e);
5010
- return s && e && oe(t, a, e), e;
5285
+ ], dt.prototype, "size", 2);
5286
+ dt = Kt([
5287
+ v("crt-modal")
5288
+ ], dt);
5289
+ var ea = Object.defineProperty, ra = Object.getOwnPropertyDescriptor, nt = (e, t, a, s) => {
5290
+ for (var r = s > 1 ? void 0 : s ? ra(t, a) : t, i = e.length - 1, o; i >= 0; i--)
5291
+ (o = e[i]) && (r = (s ? o(t, a, r) : o(r)) || r);
5292
+ return s && r && ea(t, a, r), r;
5011
5293
  };
5012
- let E = class extends p {
5294
+ let j = class extends h {
5013
5295
  constructor() {
5014
5296
  super(...arguments), this.position = "top-right", this.message = "", this.title = "", this.variant = "default", this.duration = 4e3, this._toasts = [], this._counter = 0, this._initialized = !1;
5015
5297
  }
@@ -5023,25 +5305,25 @@ let E = class extends p {
5023
5305
  });
5024
5306
  }));
5025
5307
  }
5026
- show(r) {
5308
+ show(e) {
5027
5309
  const t = ++this._counter, a = {
5028
5310
  id: t,
5029
- title: r.title,
5030
- message: r.message,
5031
- variant: r.variant || "default",
5032
- duration: r.duration ?? 4e3
5311
+ title: e.title,
5312
+ message: e.message,
5313
+ variant: e.variant || "default",
5314
+ duration: e.duration ?? 4e3
5033
5315
  };
5034
5316
  this._toasts = [...this._toasts, a], a.duration > 0 && setTimeout(() => this._removeToast(t), a.duration);
5035
5317
  }
5036
- _removeToast(r) {
5318
+ _removeToast(e) {
5037
5319
  this._toasts = this._toasts.map(
5038
- (t) => t.id === r ? { ...t, removing: !0 } : t
5320
+ (t) => t.id === e ? { ...t, removing: !0 } : t
5039
5321
  ), setTimeout(() => {
5040
- this._toasts = this._toasts.filter((t) => t.id !== r);
5322
+ this._toasts = this._toasts.filter((t) => t.id !== e);
5041
5323
  }, 300);
5042
5324
  }
5043
- _getIcon(r) {
5044
- switch (r) {
5325
+ _getIcon(e) {
5326
+ switch (e) {
5045
5327
  case "success":
5046
5328
  return "[✓]";
5047
5329
  case "warning":
@@ -5055,18 +5337,18 @@ let E = class extends p {
5055
5337
  }
5056
5338
  }
5057
5339
  render() {
5058
- return c`
5340
+ return l`
5059
5341
  <div class="toast-container">
5060
- ${this._toasts.map((r) => c`
5061
- <div class="toast ${r.variant} ${r.removing ? "removing" : ""}">
5062
- <span class="toast-icon">${this._getIcon(r.variant)}</span>
5342
+ ${this._toasts.map((e) => l`
5343
+ <div class="toast ${e.variant} ${e.removing ? "removing" : ""}">
5344
+ <span class="toast-icon">${this._getIcon(e.variant)}</span>
5063
5345
  <div class="toast-content">
5064
- ${r.title ? c`<h4 class="toast-title">${r.title}</h4>` : ""}
5065
- <p class="toast-message">${r.message}</p>
5346
+ ${e.title ? l`<h4 class="toast-title">${e.title}</h4>` : ""}
5347
+ <p class="toast-message">${e.message}</p>
5066
5348
  </div>
5067
- <button class="toast-close" @click="${() => this._removeToast(r.id)}">✕</button>
5068
- ${r.duration > 0 ? c`
5069
- <div class="toast-progress" style="animation-duration: ${r.duration}ms"></div>
5349
+ <button class="toast-close" @click="${() => this._removeToast(e.id)}">✕</button>
5350
+ ${e.duration > 0 ? l`
5351
+ <div class="toast-progress" style="animation-duration: ${e.duration}ms"></div>
5070
5352
  ` : ""}
5071
5353
  </div>
5072
5354
  `)}
@@ -5074,7 +5356,7 @@ let E = class extends p {
5074
5356
  `;
5075
5357
  }
5076
5358
  };
5077
- E.styles = l`
5359
+ j.styles = d`
5078
5360
  :host {
5079
5361
  position: fixed;
5080
5362
  z-index: 10001;
@@ -5241,33 +5523,33 @@ E.styles = l`
5241
5523
  to { width: 0%; }
5242
5524
  }
5243
5525
  `;
5244
- J([
5526
+ nt([
5245
5527
  n({ type: String, reflect: !0 })
5246
- ], E.prototype, "position", 2);
5247
- J([
5528
+ ], j.prototype, "position", 2);
5529
+ nt([
5248
5530
  n({ type: String })
5249
- ], E.prototype, "message", 2);
5250
- J([
5531
+ ], j.prototype, "message", 2);
5532
+ nt([
5251
5533
  n({ type: String })
5252
- ], E.prototype, "title", 2);
5253
- J([
5534
+ ], j.prototype, "title", 2);
5535
+ nt([
5254
5536
  n({ type: String })
5255
- ], E.prototype, "variant", 2);
5256
- J([
5537
+ ], j.prototype, "variant", 2);
5538
+ nt([
5257
5539
  n({ type: Number })
5258
- ], E.prototype, "duration", 2);
5259
- J([
5260
- v()
5261
- ], E.prototype, "_toasts", 2);
5262
- E = J([
5263
- d("crt-toast")
5264
- ], E);
5265
- var ce = Object.defineProperty, le = Object.getOwnPropertyDescriptor, gt = (r, t, a, s) => {
5266
- for (var e = s > 1 ? void 0 : s ? le(t, a) : t, i = r.length - 1, o; i >= 0; i--)
5267
- (o = r[i]) && (e = (s ? o(t, a, e) : o(e)) || e);
5268
- return s && e && ce(t, a, e), e;
5540
+ ], j.prototype, "duration", 2);
5541
+ nt([
5542
+ m()
5543
+ ], j.prototype, "_toasts", 2);
5544
+ j = nt([
5545
+ v("crt-toast")
5546
+ ], j);
5547
+ var aa = Object.defineProperty, sa = Object.getOwnPropertyDescriptor, St = (e, t, a, s) => {
5548
+ for (var r = s > 1 ? void 0 : s ? sa(t, a) : t, i = e.length - 1, o; i >= 0; i--)
5549
+ (o = e[i]) && (r = (s ? o(t, a, r) : o(r)) || r);
5550
+ return s && r && aa(t, a, r), r;
5269
5551
  };
5270
- let pt = class extends p {
5552
+ let Ct = class extends h {
5271
5553
  constructor() {
5272
5554
  super(...arguments), this.header = "", this.open = !1;
5273
5555
  }
@@ -5278,7 +5560,7 @@ let pt = class extends p {
5278
5560
  }));
5279
5561
  }
5280
5562
  render() {
5281
- return c`
5563
+ return l`
5282
5564
  <div
5283
5565
  class="accordion-header ${this.open ? "open" : ""}"
5284
5566
  @click="${this.toggle}"
@@ -5296,7 +5578,7 @@ let pt = class extends p {
5296
5578
  `;
5297
5579
  }
5298
5580
  };
5299
- pt.styles = l`
5581
+ Ct.styles = d`
5300
5582
  :host {
5301
5583
  display: block;
5302
5584
  font-family: var(--crt-font-family);
@@ -5367,20 +5649,20 @@ pt.styles = l`
5367
5649
  color: var(--crt-text-secondary);
5368
5650
  }
5369
5651
  `;
5370
- gt([
5652
+ St([
5371
5653
  n({ type: String })
5372
- ], pt.prototype, "header", 2);
5373
- gt([
5654
+ ], Ct.prototype, "header", 2);
5655
+ St([
5374
5656
  n({ type: Boolean, reflect: !0 })
5375
- ], pt.prototype, "open", 2);
5376
- pt = gt([
5377
- d("crt-accordion-item")
5378
- ], pt);
5379
- let zt = class extends p {
5657
+ ], Ct.prototype, "open", 2);
5658
+ Ct = St([
5659
+ v("crt-accordion-item")
5660
+ ], Ct);
5661
+ let Yt = class extends h {
5380
5662
  constructor() {
5381
- super(...arguments), this.multiple = !1, this._handleToggle = (r) => {
5382
- !this.multiple && r.detail.open && this.querySelectorAll("crt-accordion-item").forEach((t) => {
5383
- t !== r.target && (t.open = !1);
5663
+ super(...arguments), this.multiple = !1, this._handleToggle = (e) => {
5664
+ !this.multiple && e.detail.open && this.querySelectorAll("crt-accordion-item").forEach((t) => {
5665
+ t !== e.target && (t.open = !1);
5384
5666
  });
5385
5667
  };
5386
5668
  }
@@ -5391,34 +5673,34 @@ let zt = class extends p {
5391
5673
  super.disconnectedCallback(), this.removeEventListener("toggle", this._handleToggle);
5392
5674
  }
5393
5675
  render() {
5394
- return c`<slot></slot>`;
5676
+ return l`<slot></slot>`;
5395
5677
  }
5396
5678
  };
5397
- zt.styles = l`
5679
+ Yt.styles = d`
5398
5680
  :host {
5399
5681
  display: block;
5400
5682
  }
5401
5683
  `;
5402
- gt([
5684
+ St([
5403
5685
  n({ type: Boolean })
5404
- ], zt.prototype, "multiple", 2);
5405
- zt = gt([
5406
- d("crt-accordion")
5407
- ], zt);
5408
- var pe = Object.defineProperty, de = Object.getOwnPropertyDescriptor, ut = (r, t, a, s) => {
5409
- for (var e = s > 1 ? void 0 : s ? de(t, a) : t, i = r.length - 1, o; i >= 0; i--)
5410
- (o = r[i]) && (e = (s ? o(t, a, e) : o(e)) || e);
5411
- return s && e && pe(t, a, e), e;
5686
+ ], Yt.prototype, "multiple", 2);
5687
+ Yt = St([
5688
+ v("crt-accordion")
5689
+ ], Yt);
5690
+ var ia = Object.defineProperty, oa = Object.getOwnPropertyDescriptor, Et = (e, t, a, s) => {
5691
+ for (var r = s > 1 ? void 0 : s ? oa(t, a) : t, i = e.length - 1, o; i >= 0; i--)
5692
+ (o = e[i]) && (r = (s ? o(t, a, r) : o(r)) || r);
5693
+ return s && r && ia(t, a, r), r;
5412
5694
  };
5413
- let q = class extends p {
5695
+ let rt = class extends h {
5414
5696
  constructor() {
5415
5697
  super(...arguments), this.bars = 20, this.mode = 1, this.barHeights = [], this.isActive = !1, this.visualize = () => {
5416
5698
  if (!this.isActive || !this.analyser || !this.dataArray) return;
5417
5699
  this.analyser.getByteFrequencyData(this.dataArray);
5418
- const r = Math.floor(this.dataArray.length / this.bars), t = [];
5700
+ const e = Math.floor(this.dataArray.length / this.bars), t = [];
5419
5701
  for (let a = 0; a < this.bars; a++) {
5420
5702
  let s;
5421
- this.mode === 1 ? s = a * r : this.mode === 2 ? a < this.bars / 2 ? s = Math.floor((this.bars / 2 - a - 1) * r) : s = Math.floor((a - this.bars / 2) * r) : a < this.bars / 2 ? s = Math.floor(a * r) : s = Math.floor((this.bars - a - 1) * r);
5703
+ this.mode === 1 ? s = a * e : this.mode === 2 ? a < this.bars / 2 ? s = Math.floor((this.bars / 2 - a - 1) * e) : s = Math.floor((a - this.bars / 2) * e) : a < this.bars / 2 ? s = Math.floor(a * e) : s = Math.floor((this.bars - a - 1) * e);
5422
5704
  const i = (this.dataArray[s] || 0) / 255 * 100;
5423
5705
  t.push(Math.max(20, i));
5424
5706
  }
@@ -5431,9 +5713,9 @@ let q = class extends p {
5431
5713
  disconnectedCallback() {
5432
5714
  super.disconnectedCallback(), this.stop();
5433
5715
  }
5434
- connectAudio(r) {
5716
+ connectAudio(e) {
5435
5717
  if (!this.audioContext) {
5436
- this.audioContext = new (window.AudioContext || window.webkitAudioContext)(), this.analyser = this.audioContext.createAnalyser(), this.analyser.fftSize = 64, this.sourceNode = this.audioContext.createMediaElementSource(r), this.sourceNode.connect(this.analyser), this.analyser.connect(this.audioContext.destination);
5718
+ this.audioContext = new (window.AudioContext || window.webkitAudioContext)(), this.analyser = this.audioContext.createAnalyser(), this.analyser.fftSize = 64, this.sourceNode = this.audioContext.createMediaElementSource(e), this.sourceNode.connect(this.analyser), this.analyser.connect(this.audioContext.destination);
5437
5719
  const t = this.analyser.frequencyBinCount;
5438
5720
  this.dataArray = new Uint8Array(t);
5439
5721
  }
@@ -5452,18 +5734,18 @@ let q = class extends p {
5452
5734
  this.mode = this.mode === 3 ? 1 : this.mode + 1, this.dispatchEvent(new CustomEvent("mode-change", { detail: { mode: this.mode } }));
5453
5735
  }
5454
5736
  render() {
5455
- return c`
5737
+ return l`
5456
5738
  <div class="visualizer">
5457
5739
  <span class="label">[VISUALIZER]</span>
5458
5740
  <button class="mode-toggle" @click="${this.toggleMode}">MODE ${this.mode}</button>
5459
- ${this.barHeights.map((r) => c`
5460
- <div class="bar" style="height: ${r}%"></div>
5741
+ ${this.barHeights.map((e) => l`
5742
+ <div class="bar" style="height: ${e}%"></div>
5461
5743
  `)}
5462
5744
  </div>
5463
5745
  `;
5464
5746
  }
5465
5747
  };
5466
- q.styles = l`
5748
+ rt.styles = d`
5467
5749
  :host {
5468
5750
  display: block;
5469
5751
  }
@@ -5472,8 +5754,8 @@ q.styles = l`
5472
5754
  display: flex;
5473
5755
  justify-content: space-between;
5474
5756
  align-items: flex-end;
5475
- /* give a concrete height so percent heights on bars resolve reliably */
5476
- height: 160px;
5757
+ /* allow configurable height and responsive fallback */
5758
+ height: var(--crt-visualizer-height, 160px);
5477
5759
  gap: 6px;
5478
5760
  border: 2px solid var(--crt-primary);
5479
5761
  padding: var(--crt-spacing-md);
@@ -5484,6 +5766,11 @@ q.styles = l`
5484
5766
  overflow: hidden;
5485
5767
  }
5486
5768
 
5769
+ @media (max-width: 520px) {
5770
+ .visualizer { height: var(--crt-visualizer-height-sm, 110px); padding: calc(var(--crt-spacing-sm) + 2px); }
5771
+ .bar { min-width: 4px; }
5772
+ }
5773
+
5487
5774
  .label {
5488
5775
  position: absolute;
5489
5776
  top: 10px;
@@ -5519,9 +5806,9 @@ q.styles = l`
5519
5806
  }
5520
5807
 
5521
5808
  .bar {
5522
- flex: 1 1 auto;
5809
+ flex: 1 1 0;
5523
5810
  align-self: flex-end;
5524
- min-width: 6px;
5811
+ min-width: 4px;
5525
5812
  background: linear-gradient(180deg, color-mix(in srgb, var(--crt-primary) 80%, white 20%), var(--crt-primary));
5526
5813
  box-shadow: 0 0 8px color-mix(in srgb, var(--crt-primary) 40%, transparent);
5527
5814
  transition: height 0.05s ease, background 0.2s ease;
@@ -5533,37 +5820,37 @@ q.styles = l`
5533
5820
  animation: none;
5534
5821
  }
5535
5822
  `;
5536
- ut([
5823
+ Et([
5537
5824
  n({ type: Number })
5538
- ], q.prototype, "bars", 2);
5539
- ut([
5825
+ ], rt.prototype, "bars", 2);
5826
+ Et([
5540
5827
  n({ type: Number })
5541
- ], q.prototype, "mode", 2);
5542
- ut([
5543
- v()
5544
- ], q.prototype, "barHeights", 2);
5545
- ut([
5546
- v()
5547
- ], q.prototype, "isActive", 2);
5548
- q = ut([
5549
- d("crt-visualizer")
5550
- ], q);
5551
- var he = Object.defineProperty, ve = Object.getOwnPropertyDescriptor, Nt = (r, t, a, s) => {
5552
- for (var e = s > 1 ? void 0 : s ? ve(t, a) : t, i = r.length - 1, o; i >= 0; i--)
5553
- (o = r[i]) && (e = (s ? o(t, a, e) : o(e)) || e);
5554
- return s && e && he(t, a, e), e;
5828
+ ], rt.prototype, "mode", 2);
5829
+ Et([
5830
+ m()
5831
+ ], rt.prototype, "barHeights", 2);
5832
+ Et([
5833
+ m()
5834
+ ], rt.prototype, "isActive", 2);
5835
+ rt = Et([
5836
+ v("crt-visualizer")
5837
+ ], rt);
5838
+ var na = Object.defineProperty, la = Object.getOwnPropertyDescriptor, pe = (e, t, a, s) => {
5839
+ for (var r = s > 1 ? void 0 : s ? la(t, a) : t, i = e.length - 1, o; i >= 0; i--)
5840
+ (o = e[i]) && (r = (s ? o(t, a, r) : o(r)) || r);
5841
+ return s && r && na(t, a, r), r;
5555
5842
  };
5556
- let dt = class extends p {
5843
+ let Ot = class extends h {
5557
5844
  constructor() {
5558
5845
  super(...arguments), this.tracks = [], this.currentIndex = 0;
5559
5846
  }
5560
- handleTrackClick(r) {
5847
+ handleTrackClick(e) {
5561
5848
  this.dispatchEvent(new CustomEvent("track-select", {
5562
- detail: { index: r, track: this.tracks[r] }
5849
+ detail: { index: e, track: this.tracks[e] }
5563
5850
  }));
5564
5851
  }
5565
- handleRemoveTrack(r, t) {
5566
- r.stopPropagation(), this.dispatchEvent(new CustomEvent("track-remove", {
5852
+ handleRemoveTrack(e, t) {
5853
+ e.stopPropagation(), this.dispatchEvent(new CustomEvent("track-remove", {
5567
5854
  detail: { index: t }
5568
5855
  }));
5569
5856
  }
@@ -5571,17 +5858,17 @@ let dt = class extends p {
5571
5858
  this.dispatchEvent(new CustomEvent("add-tracks"));
5572
5859
  }
5573
5860
  render() {
5574
- return c`
5861
+ return l`
5575
5862
  <crt-card>
5576
5863
  <crt-heading level="4" slot="header" style="margin: 0;">[PLAYLIST]</crt-heading>
5577
5864
 
5578
- ${this.tracks.length === 0 ? c`
5865
+ ${this.tracks.length === 0 ? l`
5579
5866
  <div class="empty-state" @click="${this.handleEmptyClick}">
5580
5867
  <div class="empty-icon">[+]</div>
5581
5868
  <crt-heading level="4" style="margin: 0 0 var(--crt-spacing-sm) 0;">NO TRACKS LOADED</crt-heading>
5582
5869
  <crt-text muted style="margin: 0;">CLICK TO ADD AUDIO FILES</crt-text>
5583
5870
  </div>
5584
- ` : c`
5871
+ ` : l`
5585
5872
  <div class="table-wrapper">
5586
5873
  <table>
5587
5874
  <thead>
@@ -5593,14 +5880,14 @@ let dt = class extends p {
5593
5880
  </tr>
5594
5881
  </thead>
5595
5882
  <tbody>
5596
- ${this.tracks.map((r, t) => c`
5883
+ ${this.tracks.map((e, t) => l`
5597
5884
  <tr
5598
5885
  class="${t === this.currentIndex ? "active" : ""}"
5599
5886
  @click="${() => this.handleTrackClick(t)}"
5600
5887
  >
5601
5888
  <td class="track-number">${t + 1}</td>
5602
- <td class="track-title">${r.title}</td>
5603
- <td class="track-artist">${r.artist}</td>
5889
+ <td class="track-title">${e.title}</td>
5890
+ <td class="track-artist">${e.artist}</td>
5604
5891
  <td class="actions">
5605
5892
  <crt-button
5606
5893
  class="remove-btn"
@@ -5622,7 +5909,7 @@ let dt = class extends p {
5622
5909
  `;
5623
5910
  }
5624
5911
  };
5625
- dt.styles = l`
5912
+ Ot.styles = d`
5626
5913
  :host {
5627
5914
  display: block;
5628
5915
  }
@@ -5635,6 +5922,8 @@ dt.styles = l`
5635
5922
  font-size: var(--crt-font-size-sm);
5636
5923
  border: 2px solid var(--crt-primary);
5637
5924
  box-shadow: var(--crt-glow-sm);
5925
+ box-sizing: border-box;
5926
+ table-layout: fixed;
5638
5927
  }
5639
5928
 
5640
5929
  thead {
@@ -5653,10 +5942,15 @@ dt.styles = l`
5653
5942
  }
5654
5943
 
5655
5944
  th.actions {
5656
- width: 50px;
5945
+ width: 48px;
5657
5946
  text-align: center;
5658
5947
  }
5659
5948
 
5949
+ /* Fix column widths in fixed table layout so title column can shrink
5950
+ without forcing the whole table to overflow */
5951
+ thead th:first-child { width: 48px; }
5952
+ thead th:nth-child(2) { width: auto; }
5953
+
5660
5954
  tbody tr {
5661
5955
  border-bottom: 1px solid rgba(51, 255, 51, 0.2);
5662
5956
  transition: var(--crt-transition);
@@ -5693,16 +5987,17 @@ dt.styles = l`
5693
5987
  }
5694
5988
 
5695
5989
  td.track-number {
5696
- width: 60px;
5990
+ min-width: 48px;
5991
+ width: 48px;
5697
5992
  text-align: center;
5698
5993
  opacity: 0.7;
5699
5994
  }
5700
5995
 
5701
5996
  td.track-title {
5702
- max-width: 200px;
5703
5997
  white-space: nowrap;
5704
5998
  overflow: hidden;
5705
5999
  text-overflow: ellipsis;
6000
+ min-width: 0;
5706
6001
  }
5707
6002
 
5708
6003
  td.track-artist {
@@ -5745,10 +6040,18 @@ dt.styles = l`
5745
6040
  .table-wrapper {
5746
6041
  max-height: 400px;
5747
6042
  overflow-y: auto;
6043
+ min-width: 0;
5748
6044
  scrollbar-width: thin;
5749
6045
  scrollbar-color: var(--crt-primary) var(--crt-bg-dark);
5750
6046
  }
5751
6047
 
6048
+ /* Responsive: hide artist on narrow screens and allow horizontal scroll fallback */
6049
+ @media (max-width: 520px) {
6050
+ td.track-artist { display: none; }
6051
+ td.track-title { max-width: 140px; min-width: 0; }
6052
+ .table-wrapper { overflow-x: auto; min-width: 0; }
6053
+ }
6054
+
5752
6055
  .table-wrapper::-webkit-scrollbar {
5753
6056
  width: 10px;
5754
6057
  }
@@ -5763,21 +6066,21 @@ dt.styles = l`
5763
6066
  box-shadow: var(--crt-glow-sm);
5764
6067
  }
5765
6068
  `;
5766
- Nt([
6069
+ pe([
5767
6070
  n({ type: Array })
5768
- ], dt.prototype, "tracks", 2);
5769
- Nt([
6071
+ ], Ot.prototype, "tracks", 2);
6072
+ pe([
5770
6073
  n({ type: Number })
5771
- ], dt.prototype, "currentIndex", 2);
5772
- dt = Nt([
5773
- d("crt-playlist")
5774
- ], dt);
5775
- var ge = Object.defineProperty, ue = Object.getOwnPropertyDescriptor, M = (r, t, a, s) => {
5776
- for (var e = s > 1 ? void 0 : s ? ue(t, a) : t, i = r.length - 1, o; i >= 0; i--)
5777
- (o = r[i]) && (e = (s ? o(t, a, e) : o(e)) || e);
5778
- return s && e && ge(t, a, e), e;
6074
+ ], Ot.prototype, "currentIndex", 2);
6075
+ Ot = pe([
6076
+ v("crt-playlist")
6077
+ ], Ot);
6078
+ var ca = Object.defineProperty, pa = Object.getOwnPropertyDescriptor, N = (e, t, a, s) => {
6079
+ for (var r = s > 1 ? void 0 : s ? pa(t, a) : t, i = e.length - 1, o; i >= 0; i--)
6080
+ (o = e[i]) && (r = (s ? o(t, a, r) : o(r)) || r);
6081
+ return s && r && ca(t, a, r), r;
5779
6082
  };
5780
- let x = class extends p {
6083
+ let _ = class extends h {
5781
6084
  constructor() {
5782
6085
  super(...arguments), this.tracks = [], this.currentIndex = 0, this.isPlaying = !1, this.currentTime = 0, this.duration = 0, this.volume = 80, this.togglePlay = () => {
5783
6086
  this.isPlaying ? this.pause() : this.play();
@@ -5791,34 +6094,34 @@ let x = class extends p {
5791
6094
  this.duration = this.audio?.duration || 0;
5792
6095
  }, this.handleEnded = () => {
5793
6096
  this.nextTrack();
5794
- }, this.handleProgressClick = (r) => {
5795
- const a = r.currentTarget.getBoundingClientRect(), s = (r.clientX - a.left) / a.width;
6097
+ }, this.handleProgressClick = (e) => {
6098
+ const a = e.currentTarget.getBoundingClientRect(), s = (e.clientX - a.left) / a.width;
5796
6099
  this.audio && (this.audio.currentTime = this.duration * s);
5797
- }, this.handleVolumeChange = (r) => {
5798
- this.volume = r.detail.value, this.audio && (this.audio.volume = this.volume / 100), localStorage.setItem("crtPlayerVolume", this.volume.toString());
6100
+ }, this.handleVolumeChange = (e) => {
6101
+ this.volume = e.detail.value, this.audio && (this.audio.volume = this.volume / 100), localStorage.setItem("crtPlayerVolume", this.volume.toString());
5799
6102
  };
5800
6103
  }
5801
6104
  connectedCallback() {
5802
6105
  super.connectedCallback();
5803
- const r = localStorage.getItem("crtPlayerVolume");
5804
- r && (this.volume = parseInt(r));
6106
+ const e = localStorage.getItem("crtPlayerVolume");
6107
+ e && (this.volume = parseInt(e));
5805
6108
  }
5806
6109
  firstUpdated() {
5807
6110
  this.audio && (this.audio.volume = this.volume / 100);
5808
6111
  }
5809
- updated(r) {
5810
- r.has("tracks") && this.tracks.length > 0 && (r.get("tracks") === void 0 || r.get("tracks")?.length === 0) && this.loadTrack(0);
6112
+ updated(e) {
6113
+ e.has("tracks") && this.tracks.length > 0 && (e.get("tracks") === void 0 || e.get("tracks")?.length === 0) && this.loadTrack(0);
5811
6114
  }
5812
- loadTrack(r) {
5813
- if (r < 0 || r >= this.tracks.length) return;
5814
- const t = this.tracks[r];
6115
+ loadTrack(e) {
6116
+ if (e < 0 || e >= this.tracks.length) return;
6117
+ const t = this.tracks[e];
5815
6118
  if (!t?.url) {
5816
- this.currentIndex = r;
6119
+ this.currentIndex = e;
5817
6120
  return;
5818
6121
  }
5819
6122
  const a = this.isPlaying;
5820
- this.isPlaying && (this.audio?.pause(), this.visualizer?.stop()), this.currentIndex = r, this.currentTime = 0, this.audio && (this.audio.src = t.url, this.audio.load()), a && this.audio?.addEventListener("canplay", () => this.play(), { once: !0 }), this.dispatchEvent(new CustomEvent("track-change", {
5821
- detail: { index: r, track: this.tracks[r] }
6123
+ this.isPlaying && (this.audio?.pause(), this.visualizer?.stop()), this.currentIndex = e, this.currentTime = 0, this.audio && (this.audio.src = t.url, this.audio.load()), a && this.audio?.addEventListener("canplay", () => this.play(), { once: !0 }), this.dispatchEvent(new CustomEvent("track-change", {
6124
+ detail: { index: e, track: this.tracks[e] }
5822
6125
  }));
5823
6126
  }
5824
6127
  play() {
@@ -5827,9 +6130,9 @@ let x = class extends p {
5827
6130
  pause() {
5828
6131
  this.audio?.pause(), this.isPlaying = !1, this.visualizer?.stop();
5829
6132
  }
5830
- formatTime(r) {
5831
- if (!r || isNaN(r)) return "00:00";
5832
- const t = Math.floor(r / 60), a = Math.floor(r % 60);
6133
+ formatTime(e) {
6134
+ if (!e || isNaN(e)) return "00:00";
6135
+ const t = Math.floor(e / 60), a = Math.floor(e % 60);
5833
6136
  return `${t.toString().padStart(2, "0")}:${a.toString().padStart(2, "0")}`;
5834
6137
  }
5835
6138
  get currentTrack() {
@@ -5839,15 +6142,15 @@ let x = class extends p {
5839
6142
  return this.duration ? this.currentTime / this.duration * 100 : 0;
5840
6143
  }
5841
6144
  render() {
5842
- const r = this.tracks.length > 0 && this.currentTrack;
5843
- return c`
6145
+ const e = this.tracks.length > 0 && this.currentTrack;
6146
+ return l`
5844
6147
  <div class="player">
5845
6148
  <!-- Header -->
5846
6149
  <div class="player-header">
5847
6150
  <crt-heading level="4" style="margin: 0;">[♫] MUSIC PLAYER [♫]</crt-heading>
5848
6151
  </div>
5849
6152
 
5850
- ${r ? c`
6153
+ ${e ? l`
5851
6154
  <!-- Visualizer -->
5852
6155
  <div class="visualizer-section">
5853
6156
  <crt-visualizer .bars="${20}"></crt-visualizer>
@@ -5898,7 +6201,7 @@ let x = class extends p {
5898
6201
  </div>
5899
6202
  </div>
5900
6203
  </div>
5901
- ` : c`
6204
+ ` : l`
5902
6205
  <!-- Empty State -->
5903
6206
  <div class="empty-state">
5904
6207
  <crt-text muted style="font-size: 2rem; margin: 0 0 var(--crt-spacing-md) 0;">[---]</crt-text>
@@ -5917,16 +6220,26 @@ let x = class extends p {
5917
6220
  `;
5918
6221
  }
5919
6222
  };
5920
- x.styles = l`
6223
+ _.styles = d`
5921
6224
  :host {
5922
6225
  display: block;
5923
6226
  font-family: var(--crt-font-family);
6227
+ width: 100%;
6228
+ box-sizing: border-box;
5924
6229
  }
5925
6230
 
5926
6231
  .player {
5927
6232
  border: 3px double var(--crt-primary);
5928
6233
  background: var(--crt-bg-dark);
5929
6234
  box-shadow: var(--crt-glow-inset);
6235
+ width: 100%;
6236
+ box-sizing: border-box;
6237
+ overflow: hidden;
6238
+ }
6239
+
6240
+ /* Ensure nested controls can shrink and respect host width */
6241
+ .player, .player * {
6242
+ box-sizing: border-box;
5930
6243
  }
5931
6244
 
5932
6245
  /* Header */
@@ -5972,6 +6285,8 @@ x.styles = l`
5972
6285
 
5973
6286
  .track-details {
5974
6287
  overflow: hidden;
6288
+ flex: 1 1 auto;
6289
+ min-width: 0;
5975
6290
  }
5976
6291
 
5977
6292
  .track-title {
@@ -5995,6 +6310,9 @@ x.styles = l`
5995
6310
  margin-left: var(--crt-spacing-md);
5996
6311
  }
5997
6312
 
6313
+ .visualizer-section { width: 100%; }
6314
+ .now-playing { width: 100%; }
6315
+
5998
6316
  /* Progress */
5999
6317
  .progress-section {
6000
6318
  margin-bottom: var(--crt-spacing-md);
@@ -6019,18 +6337,27 @@ x.styles = l`
6019
6337
  align-items: center;
6020
6338
  gap: var(--crt-spacing-md);
6021
6339
  flex-wrap: wrap;
6340
+ min-width: 0;
6022
6341
  }
6023
6342
 
6024
6343
  .control-buttons {
6025
6344
  display: flex;
6026
6345
  gap: var(--crt-spacing-sm);
6027
6346
  align-items: center;
6347
+ min-width: 0;
6028
6348
  }
6029
6349
 
6030
6350
  .volume-section {
6031
- flex: 1;
6351
+ flex: 1 1 auto;
6032
6352
  max-width: 200px;
6033
- min-width: 150px;
6353
+ min-width: 0;
6354
+ }
6355
+
6356
+ /* Responsive: stack controls on narrow viewports */
6357
+ @media (max-width: 520px) {
6358
+ .controls { flex-direction: column; align-items: stretch; }
6359
+ .control-buttons { justify-content: center; margin-bottom: var(--crt-spacing-sm); }
6360
+ .volume-section { max-width: 100%; min-width: 0; }
6034
6361
  }
6035
6362
 
6036
6363
  /* Empty State */
@@ -6046,47 +6373,193 @@ x.styles = l`
6046
6373
  opacity: 0.5;
6047
6374
  }
6048
6375
  `;
6049
- M([
6376
+ N([
6050
6377
  n({ type: Array })
6051
- ], x.prototype, "tracks", 2);
6052
- M([
6378
+ ], _.prototype, "tracks", 2);
6379
+ N([
6053
6380
  n({ type: Number })
6054
- ], x.prototype, "currentIndex", 2);
6055
- M([
6056
- v()
6057
- ], x.prototype, "isPlaying", 2);
6058
- M([
6059
- v()
6060
- ], x.prototype, "currentTime", 2);
6061
- M([
6062
- v()
6063
- ], x.prototype, "duration", 2);
6064
- M([
6065
- v()
6066
- ], x.prototype, "volume", 2);
6067
- M([
6068
- Tt("audio")
6069
- ], x.prototype, "audio", 2);
6070
- M([
6071
- Tt("crt-visualizer")
6072
- ], x.prototype, "visualizer", 2);
6073
- x = M([
6074
- d("crt-music-player")
6075
- ], x);
6076
- var me = Object.defineProperty, be = Object.getOwnPropertyDescriptor, mt = (r, t, a, s) => {
6077
- for (var e = s > 1 ? void 0 : s ? be(t, a) : t, i = r.length - 1, o; i >= 0; i--)
6078
- (o = r[i]) && (e = (s ? o(t, a, e) : o(e)) || e);
6079
- return s && e && me(t, a, e), e;
6381
+ ], _.prototype, "currentIndex", 2);
6382
+ N([
6383
+ m()
6384
+ ], _.prototype, "isPlaying", 2);
6385
+ N([
6386
+ m()
6387
+ ], _.prototype, "currentTime", 2);
6388
+ N([
6389
+ m()
6390
+ ], _.prototype, "duration", 2);
6391
+ N([
6392
+ m()
6393
+ ], _.prototype, "volume", 2);
6394
+ N([
6395
+ ee("audio")
6396
+ ], _.prototype, "audio", 2);
6397
+ N([
6398
+ ee("crt-visualizer")
6399
+ ], _.prototype, "visualizer", 2);
6400
+ _ = N([
6401
+ v("crt-music-player")
6402
+ ], _);
6403
+ var da = Object.defineProperty, ha = Object.getOwnPropertyDescriptor, gt = (e, t, a, s) => {
6404
+ for (var r = s > 1 ? void 0 : s ? ha(t, a) : t, i = e.length - 1, o; i >= 0; i--)
6405
+ (o = e[i]) && (r = (s ? o(t, a, r) : o(r)) || r);
6406
+ return s && r && da(t, a, r), r;
6407
+ };
6408
+ let W = class extends h {
6409
+ constructor() {
6410
+ super(), this.rows = 10, this.prompt = "$", this.disabled = !1, this.outputs = [], this.input = "", this.handleFocus = () => {
6411
+ this.disabled || this.focus();
6412
+ }, this.handleKeydown = (e) => {
6413
+ if (!this.disabled) {
6414
+ if (e.key === "Backspace") {
6415
+ e.preventDefault(), this.input = this.input.slice(0, -1), this.requestUpdate();
6416
+ return;
6417
+ }
6418
+ if (e.key === "Enter") {
6419
+ e.preventDefault();
6420
+ const t = this.input.trim();
6421
+ this.println(`${this.prompt} ${t}`), this.dispatchEvent(new CustomEvent("command", { detail: t })), this.input = "", this.requestUpdate();
6422
+ return;
6423
+ }
6424
+ e.key.length === 1 && !e.ctrlKey && !e.metaKey && (this.input += e.key, this.requestUpdate());
6425
+ }
6426
+ }, this.typing = !1, this.typeQueue = [], this.outputs = ["$ SYSTEM READY _"];
6427
+ }
6428
+ connectedCallback() {
6429
+ super.connectedCallback(), this.addEventListener("click", this.handleFocus), this.addEventListener("keydown", this.handleKeydown), this.setAttribute("tabindex", this.disabled ? "-1" : "0");
6430
+ }
6431
+ disconnectedCallback() {
6432
+ this.removeEventListener("click", this.handleFocus), this.removeEventListener("keydown", this.handleKeydown), super.disconnectedCallback();
6433
+ }
6434
+ // Public API
6435
+ write(e) {
6436
+ this.outputs.length === 0 && (this.outputs = []);
6437
+ const t = this.outputs[this.outputs.length - 1] || "";
6438
+ this.outputs[this.outputs.length - 1] = t + e, this.requestUpdate(), this.scrollToBottom();
6439
+ }
6440
+ println(e) {
6441
+ this.outputs = [...this.outputs, e], this.requestUpdate(), this.scrollToBottom();
6442
+ }
6443
+ clear() {
6444
+ this.outputs = [], this.requestUpdate();
6445
+ }
6446
+ focus() {
6447
+ super.focus();
6448
+ }
6449
+ scrollToBottom() {
6450
+ requestAnimationFrame(() => {
6451
+ const e = this.shadowRoot?.querySelector(".term");
6452
+ e && (e.scrollTop = e.scrollHeight);
6453
+ });
6454
+ }
6455
+ type(e, t = 30) {
6456
+ this.typeQueue.push({ text: e, speed: t }), this.typing || this.processTypeQueue();
6457
+ }
6458
+ async processTypeQueue() {
6459
+ if (!this.typing) {
6460
+ for (this.typing = !0; this.typeQueue.length > 0; ) {
6461
+ const { text: e, speed: t } = this.typeQueue.shift();
6462
+ await new Promise((a) => {
6463
+ this.outputs = [...this.outputs, ""];
6464
+ let s = 0;
6465
+ const r = () => {
6466
+ if (s >= e.length) {
6467
+ a();
6468
+ return;
6469
+ }
6470
+ const i = this.outputs.length - 1;
6471
+ this.outputs[i] = (this.outputs[i] || "") + e[s++], this.requestUpdate(), this.scrollToBottom(), setTimeout(r, t);
6472
+ };
6473
+ r();
6474
+ });
6475
+ }
6476
+ this.typing = !1;
6477
+ }
6478
+ }
6479
+ render() {
6480
+ const e = this.outputs.slice(-this.rows);
6481
+ return l`
6482
+ <div class="term" role="textbox" aria-label="Terminal" tabindex="0" aria-disabled="${this.disabled}">
6483
+ ${e.map((t) => l`<div class="line">${t}</div>`)}
6484
+ <div class="line input-line">
6485
+ <span class="prompt">${this.prompt}</span>
6486
+ <div class="fake-input"><span class="input-text">${this.input}</span></div>
6487
+ <span class="caret">_</span>
6488
+ </div>
6489
+ </div>
6490
+ `;
6491
+ }
6492
+ };
6493
+ W.styles = d`
6494
+ :host { display: block; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, 'Roboto Mono', monospace; }
6495
+ .term {
6496
+ background: #0b0f0b;
6497
+ color: #8aff8a;
6498
+ padding: 12px;
6499
+ border: 2px solid var(--crt-primary);
6500
+ min-height: calc(var(--crt-font-size-md, 16px) * 1.2 * 6);
6501
+ max-height: min(380px, 50vh);
6502
+ overflow: auto;
6503
+ box-sizing: border-box;
6504
+ border-radius: 6px;
6505
+ }
6506
+ @media (max-width: 480px) {
6507
+ .term { min-height: calc(var(--crt-font-size-md, 16px) * 1.2 * 4); max-height: 40vh; padding: 8px; }
6508
+ }
6509
+ .term[aria-disabled="true"] {
6510
+ opacity: 0.65;
6511
+ filter: grayscale(20%);
6512
+ pointer-events: none;
6513
+ }
6514
+ .line { white-space: pre-wrap; word-break: break-word; margin: 2px 0; }
6515
+ .input-line { display:flex; gap:4px; align-items:center; justify-content:flex-start; }
6516
+ .prompt { opacity: 0.9; color: var(--crt-primary); }
6517
+ .term[aria-disabled="true"] .prompt { opacity: 0.6; }
6518
+ .caret {
6519
+ display:inline-block;
6520
+ width:10px;
6521
+ margin-left:2px;
6522
+ animation: blink 1s steps(2,start) infinite;
6523
+ color: var(--crt-primary);
6524
+ }
6525
+ .term[aria-disabled="true"] .caret { visibility: hidden; }
6526
+ @keyframes blink { to { visibility: hidden; } }
6527
+ .fake-input { outline: none; flex: 0 1 auto; min-width: 4px; display:inline-flex; align-items:center; gap:0; }
6528
+ .fake-input .input-text { display:inline-block; white-space:pre; }
6529
+ .muted { opacity: 0.7; font-size: 0.9em; }
6530
+ `;
6531
+ gt([
6532
+ n({ type: Number })
6533
+ ], W.prototype, "rows", 2);
6534
+ gt([
6535
+ n({ type: String })
6536
+ ], W.prototype, "prompt", 2);
6537
+ gt([
6538
+ n({ type: Boolean, reflect: !0 })
6539
+ ], W.prototype, "disabled", 2);
6540
+ gt([
6541
+ m()
6542
+ ], W.prototype, "outputs", 2);
6543
+ gt([
6544
+ m()
6545
+ ], W.prototype, "input", 2);
6546
+ W = gt([
6547
+ v("crt-terminal")
6548
+ ], W);
6549
+ var va = Object.defineProperty, ga = Object.getOwnPropertyDescriptor, Dt = (e, t, a, s) => {
6550
+ for (var r = s > 1 ? void 0 : s ? ga(t, a) : t, i = e.length - 1, o; i >= 0; i--)
6551
+ (o = e[i]) && (r = (s ? o(t, a, r) : o(r)) || r);
6552
+ return s && r && va(t, a, r), r;
6080
6553
  };
6081
- let W = class extends p {
6554
+ let at = class extends h {
6082
6555
  constructor() {
6083
- super(...arguments), this.tracks = [], this.currentIndex = 0, this.showUploadModal = !1, this.handleFilesChanged = (r) => {
6084
- const a = r.detail.files.filter((s) => s.type.startsWith("audio/") || s.name.endsWith(".mp3") || s.name.endsWith(".wav") || s.name.endsWith(".ogg") || s.name.endsWith(".flac")).map((s) => {
6085
- const e = s.name.replace(/\.[^/.]+$/, "");
6086
- let i = "UNKNOWN ARTIST", o = e.toUpperCase();
6087
- if (e.includes(" - ")) {
6088
- const h = e.split(" - ");
6089
- i = h[0].trim().toUpperCase(), o = h.slice(1).join(" - ").trim().toUpperCase();
6556
+ super(...arguments), this.tracks = [], this.currentIndex = 0, this.showUploadModal = !1, this.handleFilesChanged = (e) => {
6557
+ const a = e.detail.files.filter((s) => s.type.startsWith("audio/") || s.name.endsWith(".mp3") || s.name.endsWith(".wav") || s.name.endsWith(".ogg") || s.name.endsWith(".flac")).map((s) => {
6558
+ const r = s.name.replace(/\.[^/.]+$/, "");
6559
+ let i = "UNKNOWN ARTIST", o = r.toUpperCase();
6560
+ if (r.includes(" - ")) {
6561
+ const c = r.split(" - ");
6562
+ i = c[0].trim().toUpperCase(), o = c.slice(1).join(" - ").trim().toUpperCase();
6090
6563
  }
6091
6564
  return {
6092
6565
  title: o,
@@ -6095,13 +6568,13 @@ let W = class extends p {
6095
6568
  };
6096
6569
  });
6097
6570
  this.tracks = [...this.tracks, ...a];
6098
- }, this.handleTrackSelect = (r) => {
6099
- this.currentIndex = r.detail.index;
6100
- }, this.handleTrackRemove = (r) => {
6101
- const t = r.detail.index, a = this.tracks[t];
6102
- URL.revokeObjectURL(a.url), this.tracks = this.tracks.filter((s, e) => e !== t), this.tracks.length === 0 ? this.currentIndex = 0 : t <= this.currentIndex && (this.currentIndex = Math.max(0, this.currentIndex - 1));
6103
- }, this.handleTrackChange = (r) => {
6104
- this.currentIndex = r.detail.index;
6571
+ }, this.handleTrackSelect = (e) => {
6572
+ this.currentIndex = e.detail.index;
6573
+ }, this.handleTrackRemove = (e) => {
6574
+ const t = e.detail.index, a = this.tracks[t];
6575
+ URL.revokeObjectURL(a.url), this.tracks = this.tracks.filter((s, r) => r !== t), this.tracks.length === 0 ? this.currentIndex = 0 : t <= this.currentIndex && (this.currentIndex = Math.max(0, this.currentIndex - 1));
6576
+ }, this.handleTrackChange = (e) => {
6577
+ this.currentIndex = e.detail.index;
6105
6578
  }, this.openUploadModal = () => {
6106
6579
  this.showUploadModal = !0;
6107
6580
  }, this.closeUploadModal = () => {
@@ -6111,7 +6584,7 @@ let W = class extends p {
6111
6584
  };
6112
6585
  }
6113
6586
  render() {
6114
- return c`
6587
+ return l`
6115
6588
  <div class="station">
6116
6589
  <!-- Header -->
6117
6590
  <div class="station-header">
@@ -6166,7 +6639,7 @@ let W = class extends p {
6166
6639
  `;
6167
6640
  }
6168
6641
  };
6169
- W.styles = l`
6642
+ at.styles = d`
6170
6643
  :host {
6171
6644
  display: block;
6172
6645
  font-family: var(--crt-font-family);
@@ -6239,60 +6712,61 @@ W.styles = l`
6239
6712
  padding-top: var(--crt-spacing-md);
6240
6713
  }
6241
6714
  `;
6242
- mt([
6243
- v()
6244
- ], W.prototype, "tracks", 2);
6245
- mt([
6246
- v()
6247
- ], W.prototype, "currentIndex", 2);
6248
- mt([
6249
- v()
6250
- ], W.prototype, "showUploadModal", 2);
6251
- mt([
6252
- Tt("crt-file-upload")
6253
- ], W.prototype, "fileUpload", 2);
6254
- W = mt([
6255
- d("crt-music-station")
6256
- ], W);
6715
+ Dt([
6716
+ m()
6717
+ ], at.prototype, "tracks", 2);
6718
+ Dt([
6719
+ m()
6720
+ ], at.prototype, "currentIndex", 2);
6721
+ Dt([
6722
+ m()
6723
+ ], at.prototype, "showUploadModal", 2);
6724
+ Dt([
6725
+ ee("crt-file-upload")
6726
+ ], at.prototype, "fileUpload", 2);
6727
+ at = Dt([
6728
+ v("crt-music-station")
6729
+ ], at);
6257
6730
  export {
6258
- zt as Accordion,
6259
- pt as AccordionItem,
6260
- y as Alert,
6261
- D as Avatar,
6262
- kt as AvatarGroup,
6263
- yt as Badge,
6264
- ot as Breadcrumb,
6265
- w as Button,
6266
- m as Calendar,
6267
- St as Card,
6268
- L as Checkbox,
6269
- R as CodeExample,
6270
- P as FileUpload,
6271
- lt as Grid,
6272
- xt as Heading,
6273
- st as Icon,
6274
- B as Input,
6275
- I as Link,
6276
- Q as Modal,
6277
- x as MusicPlayer,
6278
- W as MusicStation,
6279
- X as Pagination,
6280
- dt as Playlist,
6281
- b as Progress,
6282
- U as Radio,
6283
- Z as RadioGroup,
6284
- C as Select,
6285
- N as Skeleton,
6286
- _t as SkeletonCard,
6287
- $t as SkeletonText,
6288
- f as Slider,
6289
- nt as Spinner,
6290
- ct as Table,
6291
- it as Tabs,
6292
- wt as Text,
6293
- Y as Textarea,
6294
- E as Toast,
6295
- S as Toggle,
6296
- V as Tooltip,
6297
- q as Visualizer
6731
+ Yt as Accordion,
6732
+ Ct as AccordionItem,
6733
+ $ as Alert,
6734
+ T as Avatar,
6735
+ Rt as AvatarGroup,
6736
+ Bt as Badge,
6737
+ kt as Breadcrumb,
6738
+ z as Button,
6739
+ x as Calendar,
6740
+ Qt as Card,
6741
+ H as Checkbox,
6742
+ q as CodeExample,
6743
+ E as FileUpload,
6744
+ zt as Grid,
6745
+ Nt as Heading,
6746
+ xt as Icon,
6747
+ Q as Input,
6748
+ F as Link,
6749
+ dt as Modal,
6750
+ _ as MusicPlayer,
6751
+ at as MusicStation,
6752
+ et as Pagination,
6753
+ Ot as Playlist,
6754
+ w as Progress,
6755
+ Y as Radio,
6756
+ pt as RadioGroup,
6757
+ D as Select,
6758
+ V as Skeleton,
6759
+ Ht as SkeletonCard,
6760
+ Ft as SkeletonText,
6761
+ k as Slider,
6762
+ $t as Spinner,
6763
+ _t as Table,
6764
+ wt as Tabs,
6765
+ W as Terminal,
6766
+ Ut as Text,
6767
+ J as Textarea,
6768
+ j as Toast,
6769
+ M as Toggle,
6770
+ tt as Tooltip,
6771
+ rt as Visualizer
6298
6772
  };