@patimweb/crtstyleguide 1.0.18 → 1.0.19

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 +1065 -1314
  2. package/package.json +3 -3
package/dist/lib/index.js CHANGED
@@ -1,21 +1,21 @@
1
- import { css as d, LitElement as h, html as l } from "lit";
2
- const u = (e) => (t, a) => {
1
+ import { css as c, LitElement as p, html as l } from "lit";
2
+ const d = (r) => (t, a) => {
3
3
  a !== void 0 ? a.addInitializer(() => {
4
- customElements.define(e, t);
5
- }) : customElements.define(e, t);
4
+ customElements.define(r, t);
5
+ }) : customElements.define(r, t);
6
6
  };
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 Oe = class {
7
+ const yt = globalThis, Mt = yt.ShadowRoot && (yt.ShadyCSS === void 0 || yt.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Ht = /* @__PURE__ */ Symbol(), Ft = /* @__PURE__ */ new WeakMap();
8
+ let Wt = class {
9
9
  constructor(t, a, s) {
10
- if (this._$cssResult$ = !0, s !== ke) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
10
+ if (this._$cssResult$ = !0, s !== Ht) 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 (Jt && t === void 0) {
16
+ if (Mt && t === void 0) {
17
17
  const s = a !== void 0 && a.length === 1;
18
- s && (t = de.get(a)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), s && de.set(a, t));
18
+ s && (t = Ft.get(a)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), s && Ft.set(a, t));
19
19
  }
20
20
  return t;
21
21
  }
@@ -23,94 +23,94 @@ let Oe = class {
23
23
  return this.cssText;
24
24
  }
25
25
  };
26
- const Ae = (e) => new Oe(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);
26
+ const Gt = (r) => new Wt(typeof r == "string" ? r : r + "", void 0, Ht), Qt = (r, t) => {
27
+ if (Mt) r.adoptedStyleSheets = t.map((a) => a instanceof CSSStyleSheet ? a : a.styleSheet);
28
28
  else for (const a of t) {
29
- const s = document.createElement("style"), r = Tt.litNonce;
30
- r !== void 0 && s.setAttribute("nonce", r), s.textContent = a.cssText, e.appendChild(s);
29
+ const s = document.createElement("style"), e = yt.litNonce;
30
+ e !== void 0 && s.setAttribute("nonce", e), s.textContent = a.cssText, r.appendChild(s);
31
31
  }
32
- }, he = Jt ? (e) => e : (e) => e instanceof CSSStyleSheet ? ((t) => {
32
+ }, Yt = Mt ? (r) => r : (r) => r instanceof CSSStyleSheet ? ((t) => {
33
33
  let a = "";
34
34
  for (const s of t.cssRules) a += s.cssText;
35
- return Ae(a);
36
- })(e) : e;
37
- const { is: Ee, defineProperty: Me, getOwnPropertyDescriptor: De, getOwnPropertyNames: Te, getOwnPropertySymbols: je, getPrototypeOf: Le } = Object, Vt = globalThis, ue = Vt.trustedTypes, Ie = ue ? ue.emptyScript : "", Be = Vt.reactiveElementPolyfillSupport, bt = (e, t) => e, jt = { toAttribute(e, t) {
35
+ return Gt(a);
36
+ })(r) : r;
37
+ const { is: Jt, defineProperty: Zt, getOwnPropertyDescriptor: tr, getOwnPropertyNames: rr, getOwnPropertySymbols: er, getPrototypeOf: ar } = Object, Ot = globalThis, Vt = Ot.trustedTypes, sr = Vt ? Vt.emptyScript : "", ir = Ot.reactiveElementPolyfillSupport, ot = (r, t) => r, xt = { toAttribute(r, t) {
38
38
  switch (t) {
39
39
  case Boolean:
40
- e = e ? Ie : null;
40
+ r = r ? sr : null;
41
41
  break;
42
42
  case Object:
43
43
  case Array:
44
- e = e == null ? e : JSON.stringify(e);
44
+ r = r == null ? r : JSON.stringify(r);
45
45
  }
46
- return e;
47
- }, fromAttribute(e, t) {
48
- let a = e;
46
+ return r;
47
+ }, fromAttribute(r, t) {
48
+ let a = r;
49
49
  switch (t) {
50
50
  case Boolean:
51
- a = e !== null;
51
+ a = r !== null;
52
52
  break;
53
53
  case Number:
54
- a = e === null ? null : Number(e);
54
+ a = r === null ? null : Number(r);
55
55
  break;
56
56
  case Object:
57
57
  case Array:
58
58
  try {
59
- a = JSON.parse(e);
59
+ a = JSON.parse(r);
60
60
  } catch {
61
61
  a = null;
62
62
  }
63
63
  }
64
64
  return a;
65
- } }, te = (e, t) => !Ee(e, t), ve = { 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 mt = class extends HTMLElement {
65
+ } }, jt = (r, t) => !Jt(r, t), qt = { attribute: !0, type: String, converter: xt, reflect: !1, useDefault: !1, hasChanged: jt };
66
+ Symbol.metadata ??= /* @__PURE__ */ Symbol("metadata"), Ot.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap();
67
+ class it 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 = ve) {
74
+ static createProperty(t, a = qt) {
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(), r = this.getPropertyDescriptor(t, s, a);
77
- r !== void 0 && Me(this.prototype, t, r);
76
+ const s = /* @__PURE__ */ Symbol(), e = this.getPropertyDescriptor(t, s, a);
77
+ e !== void 0 && Zt(this.prototype, t, e);
78
78
  }
79
79
  }
80
80
  static getPropertyDescriptor(t, a, s) {
81
- const { get: r, set: i } = De(this.prototype, t) ?? { get() {
81
+ const { get: e, set: i } = tr(this.prototype, t) ?? { get() {
82
82
  return this[a];
83
83
  }, set(o) {
84
84
  this[a] = o;
85
85
  } };
86
- return { get: r, set(o) {
87
- const c = r?.call(this);
88
- i?.call(this, o), this.requestUpdate(t, c, s);
86
+ return { get: e, set(o) {
87
+ const h = e?.call(this);
88
+ i?.call(this, o), this.requestUpdate(t, h, s);
89
89
  }, configurable: !0, enumerable: !0 };
90
90
  }
91
91
  static getPropertyOptions(t) {
92
- return this.elementProperties.get(t) ?? ve;
92
+ return this.elementProperties.get(t) ?? qt;
93
93
  }
94
94
  static _$Ei() {
95
- if (this.hasOwnProperty(bt("elementProperties"))) return;
96
- const t = Le(this);
95
+ if (this.hasOwnProperty(ot("elementProperties"))) return;
96
+ const t = ar(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(bt("finalized"))) return;
101
- if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(bt("properties"))) {
102
- const a = this.properties, s = [...Te(a), ...je(a)];
103
- for (const r of s) this.createProperty(r, a[r]);
100
+ if (this.hasOwnProperty(ot("finalized"))) return;
101
+ if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(ot("properties"))) {
102
+ const a = this.properties, s = [...rr(a), ...er(a)];
103
+ for (const e of s) this.createProperty(e, a[e]);
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, r] of a) this.elementProperties.set(s, r);
108
+ if (a !== void 0) for (const [s, e] of a) this.elementProperties.set(s, e);
109
109
  }
110
110
  this._$Eh = /* @__PURE__ */ new Map();
111
111
  for (const [a, s] of this.elementProperties) {
112
- const r = this._$Eu(a, s);
113
- r !== void 0 && this._$Eh.set(r, a);
112
+ const e = this._$Eu(a, s);
113
+ e !== void 0 && this._$Eh.set(e, a);
114
114
  }
115
115
  this.elementStyles = this.finalizeStyles(this.styles);
116
116
  }
@@ -118,8 +118,8 @@ let mt = class 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 r of s) a.unshift(he(r));
122
- } else t !== void 0 && a.push(he(t));
121
+ for (const e of s) a.unshift(Yt(e));
122
+ } else t !== void 0 && a.push(Yt(t));
123
123
  return a;
124
124
  }
125
125
  static _$Eu(t, a) {
@@ -145,7 +145,7 @@ let mt = class extends HTMLElement {
145
145
  }
146
146
  createRenderRoot() {
147
147
  const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
148
- return Se(t, this.constructor.elementStyles), t;
148
+ return Qt(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 @@ let mt = class extends HTMLElement {
159
159
  this._$AK(t, s);
160
160
  }
161
161
  _$ET(t, a) {
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;
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 : xt).toAttribute(a, s.type);
165
+ this._$Em = t, i == null ? this.removeAttribute(e) : this.setAttribute(e, i), this._$Em = null;
166
166
  }
167
167
  }
168
168
  _$AK(t, a) {
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;
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 : xt;
172
+ this._$Em = e;
173
+ const h = o.fromAttribute(a, i.type);
174
+ this[e] = h ?? this._$Ej?.get(e) ?? h, this._$Em = null;
175
175
  }
176
176
  }
177
- requestUpdate(t, a, s, r = !1, i) {
177
+ requestUpdate(t, a, s, e = !1, i) {
178
178
  if (t !== void 0) {
179
179
  const o = this.constructor;
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;
180
+ if (e === !1 && (i = this[t]), s ??= o.getPropertyOptions(t), !((s.hasChanged ?? jt)(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: 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));
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));
187
187
  }
188
188
  async _$EP() {
189
189
  this.isUpdatePending = !0;
@@ -202,13 +202,13 @@ let mt = class 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 [r, i] of this._$Ep) this[r] = i;
205
+ for (const [e, i] of this._$Ep) this[e] = i;
206
206
  this._$Ep = void 0;
207
207
  }
208
208
  const s = this.constructor.elementProperties;
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);
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);
212
212
  }
213
213
  }
214
214
  let t = !1;
@@ -244,302 +244,53 @@ let mt = class extends HTMLElement {
244
244
  }
245
245
  firstUpdated(t) {
246
246
  }
247
- };
248
- mt.elementStyles = [], mt.shadowRootOptions = { mode: "open" }, mt[bt("elementProperties")] = /* @__PURE__ */ new Map(), mt[bt("finalized")] = /* @__PURE__ */ new Map(), Be?.({ ReactiveElement: mt }), (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") {
247
+ }
248
+ it.elementStyles = [], it.shadowRootOptions = { mode: "open" }, it[ot("elementProperties")] = /* @__PURE__ */ new Map(), it[ot("finalized")] = /* @__PURE__ */ new Map(), ir?.({ ReactiveElement: it }), (Ot.reactiveElementVersions ??= []).push("2.1.2");
249
+ const or = { attribute: !0, type: String, converter: xt, reflect: !1, hasChanged: jt }, nr = (r = or, 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") {
253
253
  const { name: o } = a;
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;
254
+ return { set(h) {
255
+ const m = t.get.call(this);
256
+ t.set.call(this, h), this.requestUpdate(o, m, r, !0, h);
257
+ }, init(h) {
258
+ return h !== void 0 && this.C(o, void 0, r, h), h;
259
259
  } };
260
260
  }
261
261
  if (s === "setter") {
262
262
  const { name: o } = a;
263
- return function(c) {
264
- const p = this[o];
265
- t.call(this, c), this.requestUpdate(o, p, e, !0, c);
263
+ return function(h) {
264
+ const m = this[o];
265
+ t.call(this, h), this.requestUpdate(o, m, r, !0, h);
266
266
  };
267
267
  }
268
268
  throw Error("Unsupported decorator location: " + s);
269
269
  };
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);
270
+ function n(r) {
271
+ return (t, a) => typeof a == "object" ? nr(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);
275
275
  }
276
- function m(e) {
277
- return n({ ...e, state: !0, attribute: !1 });
276
+ function v(r) {
277
+ return n({ ...r, state: !0, attribute: !1 });
278
278
  }
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() {
279
+ const lr = (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 lr(a, s, { get() {
284
284
  return i(this);
285
285
  } });
286
286
  };
287
287
  }
288
- const re = globalThis, ge = (e) => e, Lt = re.trustedTypes, me = Lt ? Lt.createPolicy("lit-html", { createHTML: (e) => e }) : void 0, $e = "$lit$", F = `lit$${Math.random().toFixed(9).slice(2)}$`, _e = "?" + F, Fe = `<${_e}>`, Q = document, It = () => Q.createComment(""), yt = (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]`, ft = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, fe = /-->/g, be = />/g, G = RegExp(`>|${Gt}(?:([^\\s"'>=/]+)(${Gt}*=${Gt}*(?:[^
290
- \f\r"'\`<>=]|("|')|))|$)`, "g"), ye = /'/g, xe = /"/g, ze = /^(?:script|style|textarea|title)$/i, ct = /* @__PURE__ */ Symbol.for("lit-noChange"), f = /* @__PURE__ */ Symbol.for("lit-nothing"), we = /* @__PURE__ */ new WeakMap(), Z = Q.createTreeWalker(Q, 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 = ft;
298
- for (let c = 0; c < a; c++) {
299
- const p = e[c];
300
- let v, b, g = -1, E = 0;
301
- for (; E < p.length && (o.lastIndex = E, b = o.exec(p), b !== null); ) E = o.lastIndex, o === ft ? b[1] === "!--" ? o = fe : b[1] !== void 0 ? o = be : b[2] !== void 0 ? (ze.test(b[2]) && (r = RegExp("</" + b[2], "g")), o = G) : b[3] !== void 0 && (o = G) : o === G ? b[0] === ">" ? (o = r ?? ft, g = -1) : b[1] === void 0 ? g = -2 : (g = o.lastIndex - b[2].length, v = b[1], o = b[3] === void 0 ? G : b[3] === '"' ? xe : ye) : o === xe || o === ye ? o = G : o === fe || o === be ? o = ft : (o = G, r = void 0);
302
- const R = o === G && e[c + 1].startsWith("/>") ? " " : "";
303
- i += o === ft ? p + Fe : g >= 0 ? (s.push(v), p.slice(0, g) + $e + p.slice(g) + F + R) : p + F + (g === -2 ? c : R);
304
- }
305
- return [Ce(e, i + (e[a] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), s];
288
+ var cr = Object.defineProperty, pr = Object.getOwnPropertyDescriptor, At = (r, t, a, s) => {
289
+ for (var e = s > 1 ? void 0 : s ? pr(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 && cr(t, a, e), e;
306
292
  };
307
- class xt {
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, [v, b] = Ye(t, a);
313
- if (this.el = xt.createElement(v, s), Z.currentNode = this.el.content, a === 2 || a === 3) {
314
- const g = this.el.content.firstChild;
315
- g.replaceWith(...g.childNodes);
316
- }
317
- for (; (r = Z.nextNode()) !== null && p.length < c; ) {
318
- if (r.nodeType === 1) {
319
- if (r.hasAttributes()) for (const g of r.getAttributeNames()) if (g.endsWith($e)) {
320
- const E = b[o++], R = r.getAttribute(g).split(F), Dt = /([.?@])?(.*)/.exec(E);
321
- p.push({ type: 1, index: i, name: Dt[2], strings: R, ctor: Dt[1] === "." ? qe : Dt[1] === "?" ? We : Dt[1] === "@" ? Xe : Wt }), r.removeAttribute(g);
322
- } else g.startsWith(F) && (p.push({ type: 6, index: i }), r.removeAttribute(g));
323
- if (ze.test(r.tagName)) {
324
- const g = r.textContent.split(F), E = g.length - 1;
325
- if (E > 0) {
326
- r.textContent = Lt ? Lt.emptyScript : "";
327
- for (let R = 0; R < E; R++) r.append(g[R], It()), Z.nextNode(), p.push({ type: 2, index: ++i });
328
- r.append(g[E], It());
329
- }
330
- }
331
- } else if (r.nodeType === 8) if (r.data === _e) p.push({ type: 2, index: i });
332
- else {
333
- let g = -1;
334
- for (; (g = r.data.indexOf(F, g + 1)) !== -1; ) p.push({ type: 7, index: i }), g += F.length - 1;
335
- }
336
- i++;
337
- }
338
- }
339
- static createElement(t, a) {
340
- const s = Q.createElement("template");
341
- return s.innerHTML = t, s;
342
- }
343
- }
344
- function pt(e, t, a = e, s) {
345
- if (t === ct) return t;
346
- let r = s !== void 0 ? a._$Co?.[s] : a._$Cl;
347
- const i = yt(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 = pt(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 ?? Q).importNode(a, !0);
362
- Z.currentNode = r;
363
- let i = Z.nextNode(), o = 0, c = 0, p = s[0];
364
- for (; p !== void 0; ) {
365
- if (o === p.index) {
366
- let v;
367
- p.type === 2 ? v = new qt(i, i.nextSibling, this, t) : p.type === 1 ? v = new p.ctor(i, p.name, p.strings, this, t) : p.type === 6 && (v = new Ke(i, this, t)), this._$AV.push(v), p = s[++c];
368
- }
369
- o !== p?.index && (i = Z.nextNode(), o++);
370
- }
371
- return Z.currentNode = Q, 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 = pt(this, t, a), yt(t) ? t === f || t == null || t === "" ? (this._$AH !== f && this._$AR(), this._$AH = f) : t !== this._$AH && t !== ct && 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 && yt(this._$AH) ? this._$AA.nextSibling.data = t : this.T(Q.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 = xt.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 xt(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 = ge(t).nextSibling;
430
- ge(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 = pt(this, t, a, 0), o = !yt(t) || t !== this._$AH && t !== ct, o && (this._$AH = t);
451
- else {
452
- const c = t;
453
- let p, v;
454
- for (t = i[0], p = 0; p < i.length - 1; p++) v = pt(this, c[s + p], a, p), v === ct && (v = this._$AH[p]), o ||= !yt(v) || v !== this._$AH[p], v === f ? t = f : t !== f && (t += (v ?? "") + i[p + 1]), this._$AH[p] = v;
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 {
463
- constructor() {
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 = pt(this, t, a, 0) ?? f) === ct) 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
- pt(this, t);
500
- }
501
- }
502
- const Ge = re.litHtmlPolyfillSupport;
503
- Ge?.(xt, 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 === ct) 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 = {
293
+ const dr = {
543
294
  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
295
  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
296
  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>',
@@ -593,16 +344,16 @@ const ar = {
593
344
  "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>',
594
345
  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>'
595
346
  };
596
- let wt = class extends h {
347
+ let nt = class extends p {
597
348
  constructor() {
598
349
  super(...arguments), this.name = "", this.size = "md";
599
350
  }
600
351
  render() {
601
- 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>';
602
- return l`<span class="icon" aria-hidden="true">${tr(e)}</span>`;
352
+ const r = dr[this.name] || '<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><text x="0" y="14">?</text></svg>';
353
+ return l`<span class="icon" aria-hidden="true" .innerHTML=${r}></span>`;
603
354
  }
604
355
  };
605
- wt.styles = d`
356
+ nt.styles = c`
606
357
  :host {
607
358
  display: inline-flex;
608
359
  align-items: center;
@@ -619,33 +370,33 @@ wt.styles = d`
619
370
  height: 100%;
620
371
  }
621
372
  `;
622
- se([
373
+ At([
623
374
  n()
624
- ], wt.prototype, "name", 2);
625
- se([
375
+ ], nt.prototype, "name", 2);
376
+ At([
626
377
  n()
627
- ], wt.prototype, "size", 2);
628
- wt = se([
629
- u("crt-icon")
630
- ], wt);
631
- var sr = Object.defineProperty, ir = Object.getOwnPropertyDescriptor, K = (e, t, a, s) => {
632
- for (var r = s > 1 ? void 0 : s ? ir(t, a) : t, i = e.length - 1, o; i >= 0; i--)
633
- (o = e[i]) && (r = (s ? o(t, a, r) : o(r)) || r);
634
- return s && r && sr(t, a, r), r;
378
+ ], nt.prototype, "size", 2);
379
+ nt = At([
380
+ d("crt-icon")
381
+ ], nt);
382
+ var hr = Object.defineProperty, vr = Object.getOwnPropertyDescriptor, Y = (r, t, a, s) => {
383
+ for (var e = s > 1 ? void 0 : s ? vr(t, a) : t, i = r.length - 1, o; i >= 0; i--)
384
+ (o = r[i]) && (e = (s ? o(t, a, e) : o(e)) || e);
385
+ return s && e && hr(t, a, e), e;
635
386
  };
636
- let C = class extends h {
387
+ let k = class extends p {
637
388
  constructor() {
638
- 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");
389
+ super(), this.size = "medium", this.variant = "primary", this.disabled = !1, this.type = "button", this.iconOnly = !1, this.iconLeft = "", this.iconRight = "";
639
390
  }
640
391
  connectedCallback() {
641
- super.connectedCallback(), console.log("Button connected to DOM", this);
392
+ super.connectedCallback();
642
393
  }
643
394
  render() {
644
- if (console.log("Button render called"), this.iconOnly) {
645
- const e = this.iconLeft || this.iconRight;
395
+ if (this.iconOnly) {
396
+ const r = this.iconLeft || this.iconRight;
646
397
  return l`
647
398
  <button type="${this.type}" ?disabled="${this.disabled}">
648
- ${e ? l`<crt-icon name="${e}"></crt-icon>` : l`<slot></slot>`}
399
+ ${r ? l`<crt-icon name="${r}"></crt-icon>` : l`<slot></slot>`}
649
400
  </button>
650
401
  `;
651
402
  }
@@ -658,7 +409,7 @@ let C = class extends h {
658
409
  `;
659
410
  }
660
411
  };
661
- C.styles = d`
412
+ k.styles = c`
662
413
  :host {
663
414
  display: inline-block;
664
415
  }
@@ -814,36 +565,36 @@ C.styles = d`
814
565
  flex-shrink: 0;
815
566
  }
816
567
  `;
817
- K([
568
+ Y([
818
569
  n({ reflect: !0 })
819
- ], C.prototype, "size", 2);
820
- K([
570
+ ], k.prototype, "size", 2);
571
+ Y([
821
572
  n({ reflect: !0 })
822
- ], C.prototype, "variant", 2);
823
- K([
573
+ ], k.prototype, "variant", 2);
574
+ Y([
824
575
  n({ type: Boolean })
825
- ], C.prototype, "disabled", 2);
826
- K([
576
+ ], k.prototype, "disabled", 2);
577
+ Y([
827
578
  n()
828
- ], C.prototype, "type", 2);
829
- K([
579
+ ], k.prototype, "type", 2);
580
+ Y([
830
581
  n({ attribute: "icon-only", type: Boolean })
831
- ], C.prototype, "iconOnly", 2);
832
- K([
582
+ ], k.prototype, "iconOnly", 2);
583
+ Y([
833
584
  n({ attribute: "icon-left" })
834
- ], C.prototype, "iconLeft", 2);
835
- K([
585
+ ], k.prototype, "iconLeft", 2);
586
+ Y([
836
587
  n({ attribute: "icon-right" })
837
- ], C.prototype, "iconRight", 2);
838
- C = K([
839
- u("crt-button")
840
- ], C);
841
- var or = Object.defineProperty, nr = Object.getOwnPropertyDescriptor, Pe = (e, t, a, s) => {
842
- for (var r = s > 1 ? void 0 : s ? nr(t, a) : t, i = e.length - 1, o; i >= 0; i--)
843
- (o = e[i]) && (r = (s ? o(t, a, r) : o(r)) || r);
844
- return s && r && or(t, a, r), r;
588
+ ], k.prototype, "iconRight", 2);
589
+ k = Y([
590
+ d("crt-button")
591
+ ], k);
592
+ var gr = Object.defineProperty, ur = Object.getOwnPropertyDescriptor, Xt = (r, t, a, s) => {
593
+ for (var e = s > 1 ? void 0 : s ? ur(t, a) : t, i = r.length - 1, o; i >= 0; i--)
594
+ (o = r[i]) && (e = (s ? o(t, a, e) : o(e)) || e);
595
+ return s && e && gr(t, a, e), e;
845
596
  };
846
- let Bt = class extends h {
597
+ let wt = class extends p {
847
598
  constructor() {
848
599
  super(...arguments), this.variant = "primary";
849
600
  }
@@ -851,7 +602,7 @@ let Bt = class extends h {
851
602
  return l`<span class="badge"><slot></slot></span>`;
852
603
  }
853
604
  };
854
- Bt.styles = d`
605
+ wt.styles = c`
855
606
  :host {
856
607
  --badge-bg: transparent;
857
608
  --badge-color: var(--crt-primary);
@@ -892,18 +643,18 @@ Bt.styles = d`
892
643
  --badge-border: 1px solid var(--crt-info);
893
644
  }
894
645
  `;
895
- Pe([
646
+ Xt([
896
647
  n()
897
- ], Bt.prototype, "variant", 2);
898
- Bt = Pe([
899
- u("crt-badge")
900
- ], Bt);
901
- var lr = Object.defineProperty, cr = Object.getOwnPropertyDescriptor, Xt = (e, t, a, s) => {
902
- for (var r = s > 1 ? void 0 : s ? cr(t, a) : t, i = e.length - 1, o; i >= 0; i--)
903
- (o = e[i]) && (r = (s ? o(t, a, r) : o(r)) || r);
904
- return s && r && lr(t, a, r), r;
648
+ ], wt.prototype, "variant", 2);
649
+ wt = Xt([
650
+ d("crt-badge")
651
+ ], wt);
652
+ var mr = Object.defineProperty, br = Object.getOwnPropertyDescriptor, St = (r, t, a, s) => {
653
+ for (var e = s > 1 ? void 0 : s ? br(t, a) : t, i = r.length - 1, o; i >= 0; i--)
654
+ (o = r[i]) && (e = (s ? o(t, a, e) : o(e)) || e);
655
+ return s && e && mr(t, a, e), e;
905
656
  };
906
- let Nt = class extends h {
657
+ let kt = class extends p {
907
658
  constructor() {
908
659
  super(...arguments), this.level = 1;
909
660
  }
@@ -926,7 +677,7 @@ let Nt = class extends h {
926
677
  }
927
678
  }
928
679
  };
929
- Nt.styles = d`
680
+ kt.styles = c`
930
681
  h1, h2, h3, h4, h5, h6 {
931
682
  font-family: var(--crt-font-family);
932
683
  color: var(--crt-text-primary);
@@ -955,13 +706,13 @@ Nt.styles = d`
955
706
  font-size: var(--crt-font-size-base);
956
707
  }
957
708
  `;
958
- Xt([
709
+ St([
959
710
  n({ type: Number })
960
- ], Nt.prototype, "level", 2);
961
- Nt = Xt([
962
- u("crt-heading")
963
- ], Nt);
964
- let Ut = class extends h {
711
+ ], kt.prototype, "level", 2);
712
+ kt = St([
713
+ d("crt-heading")
714
+ ], kt);
715
+ let $t = class extends p {
965
716
  constructor() {
966
717
  super(...arguments), this.muted = !1;
967
718
  }
@@ -969,7 +720,7 @@ let Ut = class extends h {
969
720
  return l`<p><slot></slot></p>`;
970
721
  }
971
722
  };
972
- Ut.styles = d`
723
+ $t.styles = c`
973
724
  p {
974
725
  font-family: var(--crt-font-family);
975
726
  color: var(--crt-text-secondary);
@@ -981,43 +732,43 @@ Ut.styles = d`
981
732
  color: var(--crt-text-muted);
982
733
  }
983
734
  `;
984
- Xt([
735
+ St([
985
736
  n()
986
- ], Ut.prototype, "muted", 2);
987
- Ut = Xt([
988
- u("crt-text")
989
- ], Ut);
990
- var pr = Object.defineProperty, dr = Object.getOwnPropertyDescriptor, ie = (e, t, a, s) => {
991
- for (var r = s > 1 ? void 0 : s ? dr(t, a) : t, i = e.length - 1, o; i >= 0; i--)
992
- (o = e[i]) && (r = (s ? o(t, a, r) : o(r)) || r);
993
- return s && r && pr(t, a, r), r;
737
+ ], $t.prototype, "muted", 2);
738
+ $t = St([
739
+ d("crt-text")
740
+ ], $t);
741
+ var fr = Object.defineProperty, yr = Object.getOwnPropertyDescriptor, Lt = (r, t, a, s) => {
742
+ for (var e = s > 1 ? void 0 : s ? yr(t, a) : t, i = r.length - 1, o; i >= 0; i--)
743
+ (o = r[i]) && (e = (s ? o(t, a, e) : o(e)) || e);
744
+ return s && e && fr(t, a, e), e;
994
745
  };
995
- let kt = class extends h {
746
+ let lt = class extends p {
996
747
  constructor() {
997
748
  super(...arguments), this.activeTab = 0, this.tabs = [];
998
749
  }
999
- selectTab(e) {
1000
- this.activeTab = e;
750
+ selectTab(r) {
751
+ this.activeTab = r;
1001
752
  }
1002
753
  render() {
1003
754
  return l`
1004
755
  <div class="tabs-header">
1005
756
  ${this.tabs.map(
1006
- (e, t) => l`
757
+ (r, t) => l`
1007
758
  <button
1008
759
  class="tab-button ${t === this.activeTab ? "active" : ""}"
1009
760
  @click="${() => this.selectTab(t)}"
1010
761
  >
1011
- ${e.label}
762
+ ${r.label}
1012
763
  </button>
1013
764
  `
1014
765
  )}
1015
766
  </div>
1016
767
  <div class="tabs-content">
1017
768
  ${this.tabs.map(
1018
- (e, t) => l`
769
+ (r, t) => l`
1019
770
  <div class="tab-pane ${t === this.activeTab ? "active" : ""}">
1020
- ${e.label.toLowerCase() === "code" ? l`<pre><code>${e.content}</code></pre>` : l`<div>${hr(e.content)}</div>`}
771
+ ${r.label.toLowerCase() === "code" ? l`<pre><code>${r.content}</code></pre>` : l`<div>${xr(r.content)}</div>`}
1021
772
  </div>
1022
773
  `
1023
774
  )}
@@ -1025,7 +776,7 @@ let kt = class extends h {
1025
776
  `;
1026
777
  }
1027
778
  };
1028
- kt.styles = d`
779
+ lt.styles = c`
1029
780
  :host {
1030
781
  display: block;
1031
782
  }
@@ -1092,25 +843,25 @@ kt.styles = d`
1092
843
  font-family: var(--crt-font-family);
1093
844
  }
1094
845
  `;
1095
- ie([
1096
- m()
1097
- ], kt.prototype, "activeTab", 2);
1098
- ie([
846
+ Lt([
847
+ v()
848
+ ], lt.prototype, "activeTab", 2);
849
+ Lt([
1099
850
  n({ type: Array })
1100
- ], kt.prototype, "tabs", 2);
1101
- kt = ie([
1102
- u("crt-tabs")
1103
- ], kt);
1104
- function hr(e) {
851
+ ], lt.prototype, "tabs", 2);
852
+ lt = Lt([
853
+ d("crt-tabs")
854
+ ], lt);
855
+ function xr(r) {
1105
856
  const t = document.createElement("div");
1106
- return t.innerHTML = e, t;
857
+ return t.innerHTML = r, t;
1107
858
  }
1108
- var ur = Object.defineProperty, vr = Object.getOwnPropertyDescriptor, P = (e, t, a, s) => {
1109
- for (var r = s > 1 ? void 0 : s ? vr(t, a) : t, i = e.length - 1, o; i >= 0; i--)
1110
- (o = e[i]) && (r = (s ? o(t, a, r) : o(r)) || r);
1111
- return s && r && ur(t, a, r), r;
859
+ var wr = Object.defineProperty, kr = Object.getOwnPropertyDescriptor, $ = (r, t, a, s) => {
860
+ for (var e = s > 1 ? void 0 : s ? kr(t, a) : t, i = r.length - 1, o; i >= 0; i--)
861
+ (o = r[i]) && (e = (s ? o(t, a, e) : o(e)) || e);
862
+ return s && e && wr(t, a, e), e;
1112
863
  };
1113
- let J = class extends h {
864
+ let V = class extends p {
1114
865
  constructor() {
1115
866
  super(...arguments), this.type = "text", this.placeholder = "", this.value = "", this.disabled = !1;
1116
867
  }
@@ -1121,14 +872,14 @@ let J = class extends h {
1121
872
  placeholder="${this.placeholder}"
1122
873
  value="${this.value}"
1123
874
  ?disabled="${this.disabled}"
1124
- @input="${(e) => {
1125
- this.value = e.target.value;
875
+ @input="${(r) => {
876
+ this.value = r.target.value;
1126
877
  }}"
1127
878
  />
1128
879
  `;
1129
880
  }
1130
881
  };
1131
- J.styles = d`
882
+ V.styles = c`
1132
883
  :host {
1133
884
  display: block;
1134
885
  }
@@ -1174,22 +925,22 @@ J.styles = d`
1174
925
  padding-right: var(--crt-spacing-lg);
1175
926
  }
1176
927
  `;
1177
- P([
928
+ $([
1178
929
  n()
1179
- ], J.prototype, "type", 2);
1180
- P([
930
+ ], V.prototype, "type", 2);
931
+ $([
1181
932
  n()
1182
- ], J.prototype, "placeholder", 2);
1183
- P([
933
+ ], V.prototype, "placeholder", 2);
934
+ $([
1184
935
  n()
1185
- ], J.prototype, "value", 2);
1186
- P([
936
+ ], V.prototype, "value", 2);
937
+ $([
1187
938
  n()
1188
- ], J.prototype, "disabled", 2);
1189
- J = P([
1190
- u("crt-input")
1191
- ], J);
1192
- let tt = class extends h {
939
+ ], V.prototype, "disabled", 2);
940
+ V = $([
941
+ d("crt-input")
942
+ ], V);
943
+ let q = class extends p {
1193
944
  constructor() {
1194
945
  super(...arguments), this.placeholder = "", this.value = "", this.disabled = !1, this.rows = 4;
1195
946
  }
@@ -1200,14 +951,14 @@ let tt = class extends h {
1200
951
  placeholder="${this.placeholder}"
1201
952
  rows="${this.rows}"
1202
953
  ?disabled="${this.disabled}"
1203
- @input="${(e) => {
1204
- this.value = e.target.value;
954
+ @input="${(r) => {
955
+ this.value = r.target.value;
1205
956
  }}"
1206
957
  ></textarea>
1207
958
  `;
1208
959
  }
1209
960
  };
1210
- tt.styles = d`
961
+ q.styles = c`
1211
962
  :host {
1212
963
  display: block;
1213
964
  }
@@ -1249,27 +1000,27 @@ tt.styles = d`
1249
1000
  border-style: dashed;
1250
1001
  }
1251
1002
  `;
1252
- P([
1003
+ $([
1253
1004
  n()
1254
- ], tt.prototype, "placeholder", 2);
1255
- P([
1005
+ ], q.prototype, "placeholder", 2);
1006
+ $([
1256
1007
  n()
1257
- ], tt.prototype, "value", 2);
1258
- P([
1008
+ ], q.prototype, "value", 2);
1009
+ $([
1259
1010
  n()
1260
- ], tt.prototype, "disabled", 2);
1261
- P([
1011
+ ], q.prototype, "disabled", 2);
1012
+ $([
1262
1013
  n()
1263
- ], tt.prototype, "rows", 2);
1264
- tt = P([
1265
- u("crt-textarea")
1266
- ], tt);
1267
- var gr = Object.defineProperty, mr = Object.getOwnPropertyDescriptor, ut = (e, t, a, s) => {
1268
- for (var r = s > 1 ? void 0 : s ? mr(t, a) : t, i = e.length - 1, o; i >= 0; i--)
1269
- (o = e[i]) && (r = (s ? o(t, a, r) : o(r)) || r);
1270
- return s && r && gr(t, a, r), r;
1014
+ ], q.prototype, "rows", 2);
1015
+ q = $([
1016
+ d("crt-textarea")
1017
+ ], q);
1018
+ var $r = Object.defineProperty, _r = Object.getOwnPropertyDescriptor, et = (r, t, a, s) => {
1019
+ for (var e = s > 1 ? void 0 : s ? _r(t, a) : t, i = r.length - 1, o; i >= 0; i--)
1020
+ (o = r[i]) && (e = (s ? o(t, a, e) : o(e)) || e);
1021
+ return s && e && $r(t, a, e), e;
1271
1022
  };
1272
- let H = class extends h {
1023
+ let I = class extends p {
1273
1024
  constructor() {
1274
1025
  super(...arguments), this.href = "#", this.target = "", this.iconLeft = !1, this.iconRight = !1, this.icon = "";
1275
1026
  }
@@ -1283,7 +1034,7 @@ let H = class extends h {
1283
1034
  `;
1284
1035
  }
1285
1036
  };
1286
- H.styles = d`
1037
+ I.styles = c`
1287
1038
  :host {
1288
1039
  --crt-link-color: var(--crt-primary);
1289
1040
  }
@@ -1309,38 +1060,38 @@ H.styles = d`
1309
1060
  color: var(--crt-primary-dark);
1310
1061
  }
1311
1062
  `;
1312
- ut([
1063
+ et([
1313
1064
  n({ type: String })
1314
- ], H.prototype, "href", 2);
1315
- ut([
1065
+ ], I.prototype, "href", 2);
1066
+ et([
1316
1067
  n({ type: String })
1317
- ], H.prototype, "target", 2);
1318
- ut([
1068
+ ], I.prototype, "target", 2);
1069
+ et([
1319
1070
  n({ type: Boolean })
1320
- ], H.prototype, "iconLeft", 2);
1321
- ut([
1071
+ ], I.prototype, "iconLeft", 2);
1072
+ et([
1322
1073
  n({ type: Boolean })
1323
- ], H.prototype, "iconRight", 2);
1324
- ut([
1074
+ ], I.prototype, "iconRight", 2);
1075
+ et([
1325
1076
  n({ type: String })
1326
- ], H.prototype, "icon", 2);
1327
- H = ut([
1328
- u("crt-link")
1329
- ], H);
1330
- var fr = Object.defineProperty, br = Object.getOwnPropertyDescriptor, st = (e, t, a, s) => {
1331
- for (var r = s > 1 ? void 0 : s ? br(t, a) : t, i = e.length - 1, o; i >= 0; i--)
1332
- (o = e[i]) && (r = (s ? o(t, a, r) : o(r)) || r);
1333
- return s && r && fr(t, a, r), r;
1077
+ ], I.prototype, "icon", 2);
1078
+ I = et([
1079
+ d("crt-link")
1080
+ ], I);
1081
+ var zr = Object.defineProperty, Cr = Object.getOwnPropertyDescriptor, W = (r, t, a, s) => {
1082
+ for (var e = s > 1 ? void 0 : s ? Cr(t, a) : t, i = r.length - 1, o; i >= 0; i--)
1083
+ (o = r[i]) && (e = (s ? o(t, a, e) : o(e)) || e);
1084
+ return s && e && zr(t, a, e), e;
1334
1085
  };
1335
- let M = class extends h {
1086
+ let O = class extends p {
1336
1087
  constructor() {
1337
- super(...arguments), this.accept = "", this.multiple = !0, this.name = "", this.maxSize = 10485760, this.maxFiles = 10, this.files = [], this._handleFileSelect = (e) => {
1338
- const t = e.target;
1088
+ super(...arguments), this.accept = "", this.multiple = !0, this.name = "", this.maxSize = 10485760, this.maxFiles = 10, this.files = [], this._handleFileSelect = (r) => {
1089
+ const t = r.target;
1339
1090
  t.files && (this._addFiles(Array.from(t.files)), t.value = "");
1340
1091
  }, this._handleUploadClick = () => {
1341
1092
  this.shadowRoot?.querySelector('input[type="file"]')?.click();
1342
- }, this._handleRemoveFile = (e) => {
1343
- this.files = this.files.filter((t) => t.id !== e), this.dispatchEvent(new CustomEvent("files-changed", {
1093
+ }, this._handleRemoveFile = (r) => {
1094
+ this.files = this.files.filter((t) => t.id !== r), this.dispatchEvent(new CustomEvent("files-changed", {
1344
1095
  detail: { files: this.files.map((t) => t.file) }
1345
1096
  }));
1346
1097
  }, this._handleClearAll = () => {
@@ -1358,41 +1109,41 @@ let M = class extends h {
1358
1109
  _generateId() {
1359
1110
  return Math.random().toString(36).substring(2, 9);
1360
1111
  }
1361
- _addFiles(e) {
1362
- const s = e.filter((r) => {
1363
- if (r.size > this.maxSize)
1364
- return console.warn(`File ${r.name} exceeds max size`), !1;
1112
+ _addFiles(r) {
1113
+ const s = r.filter((e) => {
1114
+ if (e.size > this.maxSize)
1115
+ return console.warn(`File ${e.name} exceeds max size`), !1;
1365
1116
  if (this.accept) {
1366
- const i = this.accept.split(",").map((v) => v.trim()), o = r.type, c = "." + r.name.split(".").pop()?.toLowerCase();
1367
- if (!i.some((v) => v.startsWith(".") ? c === v.toLowerCase() : v.endsWith("/*") ? o.startsWith(v.replace("/*", "/")) : o === v))
1368
- return console.warn(`File ${r.name} type not accepted`), !1;
1117
+ const i = this.accept.split(",").map((P) => P.trim()), o = e.type, h = "." + e.name.split(".").pop()?.toLowerCase();
1118
+ if (!i.some((P) => P.startsWith(".") ? h === P.toLowerCase() : P.endsWith("/*") ? o.startsWith(P.replace("/*", "/")) : o === P))
1119
+ return console.warn(`File ${e.name} type not accepted`), !1;
1369
1120
  }
1370
1121
  return !0;
1371
- }).slice(0, this.maxFiles - this.files.length).map((r) => ({
1372
- file: r,
1122
+ }).slice(0, this.maxFiles - this.files.length).map((e) => ({
1123
+ file: e,
1373
1124
  id: this._generateId(),
1374
1125
  progress: 100,
1375
1126
  status: "complete"
1376
1127
  }));
1377
1128
  this.files = [...this.files, ...s], this.dispatchEvent(new CustomEvent("files-changed", {
1378
- detail: { files: this.files.map((r) => r.file) }
1129
+ detail: { files: this.files.map((e) => e.file) }
1379
1130
  }));
1380
1131
  }
1381
1132
  /** Public method to clear all files */
1382
1133
  clearFiles() {
1383
1134
  this._handleClearAll();
1384
1135
  }
1385
- _formatFileSize(e) {
1386
- if (e === 0) return "0 B";
1387
- const t = 1024, a = ["B", "KB", "MB", "GB"], s = Math.floor(Math.log(e) / Math.log(t));
1388
- return parseFloat((e / Math.pow(t, s)).toFixed(1)) + " " + a[s];
1136
+ _formatFileSize(r) {
1137
+ if (r === 0) return "0 B";
1138
+ const t = 1024, a = ["B", "KB", "MB", "GB"], s = Math.floor(Math.log(r) / Math.log(t));
1139
+ return parseFloat((r / Math.pow(t, s)).toFixed(1)) + " " + a[s];
1389
1140
  }
1390
- _getFileIcon(e) {
1391
- const t = e.name.split(".").pop()?.toLowerCase() || "", a = e.type;
1141
+ _getFileIcon(r) {
1142
+ const t = r.name.split(".").pop()?.toLowerCase() || "", a = r.type;
1392
1143
  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]";
1393
1144
  }
1394
1145
  _getTotalSize() {
1395
- return this.files.reduce((e, t) => e + t.file.size, 0);
1146
+ return this.files.reduce((r, t) => r + t.file.size, 0);
1396
1147
  }
1397
1148
  render() {
1398
1149
  return l`
@@ -1428,18 +1179,18 @@ let M = class extends h {
1428
1179
  <span style="text-align: center;">ACT</span>
1429
1180
  </div>
1430
1181
  <div class="file-list">
1431
- ${this.files.map((e) => l`
1182
+ ${this.files.map((r) => l`
1432
1183
  <div class="file-item">
1433
1184
  <div class="file-info">
1434
- <span class="file-icon">${this._getFileIcon(e.file)}</span>
1435
- <span class="file-name">${e.file.name}</span>
1185
+ <span class="file-icon">${this._getFileIcon(r.file)}</span>
1186
+ <span class="file-name">${r.file.name}</span>
1436
1187
  </div>
1437
- <span class="file-size">${this._formatFileSize(e.file.size)}</span>
1438
- <span class="file-status ${e.status}">${e.status.toUpperCase()}</span>
1188
+ <span class="file-size">${this._formatFileSize(r.file.size)}</span>
1189
+ <span class="file-status ${r.status}">${r.status.toUpperCase()}</span>
1439
1190
  <div class="file-actions">
1440
1191
  <button
1441
1192
  class="file-remove"
1442
- @click="${() => this._handleRemoveFile(e.id)}"
1193
+ @click="${() => this._handleRemoveFile(r.id)}"
1443
1194
  title="Remove file"
1444
1195
  >X</button>
1445
1196
  </div>
@@ -1473,7 +1224,7 @@ let M = class extends h {
1473
1224
  `;
1474
1225
  }
1475
1226
  };
1476
- M.styles = d`
1227
+ O.styles = c`
1477
1228
  :host {
1478
1229
  display: block;
1479
1230
  font-family: var(--crt-font-family);
@@ -1768,33 +1519,33 @@ M.styles = d`
1768
1519
  transition: width 0.3s ease;
1769
1520
  }
1770
1521
  `;
1771
- st([
1522
+ W([
1772
1523
  n({ type: String })
1773
- ], M.prototype, "accept", 2);
1774
- st([
1524
+ ], O.prototype, "accept", 2);
1525
+ W([
1775
1526
  n({ type: Boolean })
1776
- ], M.prototype, "multiple", 2);
1777
- st([
1527
+ ], O.prototype, "multiple", 2);
1528
+ W([
1778
1529
  n({ type: String })
1779
- ], M.prototype, "name", 2);
1780
- st([
1530
+ ], O.prototype, "name", 2);
1531
+ W([
1781
1532
  n({ type: Number })
1782
- ], M.prototype, "maxSize", 2);
1783
- st([
1533
+ ], O.prototype, "maxSize", 2);
1534
+ W([
1784
1535
  n({ type: Number })
1785
- ], M.prototype, "maxFiles", 2);
1786
- st([
1787
- m()
1788
- ], M.prototype, "files", 2);
1789
- M = st([
1790
- u("crt-file-upload")
1791
- ], M);
1792
- var yr = Object.defineProperty, xr = Object.getOwnPropertyDescriptor, O = (e, t, a, s) => {
1793
- for (var r = s > 1 ? void 0 : s ? xr(t, a) : t, i = e.length - 1, o; i >= 0; i--)
1794
- (o = e[i]) && (r = (s ? o(t, a, r) : o(r)) || r);
1795
- return s && r && yr(t, a, r), r;
1536
+ ], O.prototype, "maxFiles", 2);
1537
+ W([
1538
+ v()
1539
+ ], O.prototype, "files", 2);
1540
+ O = W([
1541
+ d("crt-file-upload")
1542
+ ], O);
1543
+ var Pr = Object.defineProperty, Or = Object.getOwnPropertyDescriptor, _ = (r, t, a, s) => {
1544
+ for (var e = s > 1 ? void 0 : s ? Or(t, a) : t, i = r.length - 1, o; i >= 0; i--)
1545
+ (o = r[i]) && (e = (s ? o(t, a, e) : o(e)) || e);
1546
+ return s && e && Pr(t, a, e), e;
1796
1547
  };
1797
- let w = class extends h {
1548
+ let b = class extends p {
1798
1549
  constructor() {
1799
1550
  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 = [
1800
1551
  "Januar",
@@ -1809,8 +1560,8 @@ let w = class extends h {
1809
1560
  "Oktober",
1810
1561
  "November",
1811
1562
  "Dezember"
1812
- ], this._handleOutsideClick = (e) => {
1813
- this.contains(e.target) || (this._isOpen = !1);
1563
+ ], this._handleOutsideClick = (r) => {
1564
+ this.contains(r.target) || (this._isOpen = !1);
1814
1565
  };
1815
1566
  }
1816
1567
  connectedCallback() {
@@ -1820,14 +1571,14 @@ let w = class extends h {
1820
1571
  super.disconnectedCallback(), document.removeEventListener("click", this._handleOutsideClick);
1821
1572
  }
1822
1573
  _parseValue() {
1823
- const e = this.value.split(".");
1824
- if (e.length === 3) {
1825
- const [t, a, s] = e.map(Number);
1574
+ const r = this.value.split(".");
1575
+ if (r.length === 3) {
1576
+ const [t, a, s] = r.map(Number);
1826
1577
  this._selectedDate = new Date(s, a - 1, t), this._viewDate = new Date(this._selectedDate);
1827
1578
  }
1828
1579
  }
1829
- _formatDate(e) {
1830
- const t = String(e.getDate()).padStart(2, "0"), a = String(e.getMonth() + 1).padStart(2, "0"), s = e.getFullYear();
1580
+ _formatDate(r) {
1581
+ const t = String(r.getDate()).padStart(2, "0"), a = String(r.getMonth() + 1).padStart(2, "0"), s = r.getFullYear();
1831
1582
  return `${t}.${a}.${s}`;
1832
1583
  }
1833
1584
  _toggleCalendar() {
@@ -1847,9 +1598,9 @@ let w = class extends h {
1847
1598
  1
1848
1599
  );
1849
1600
  }
1850
- _selectDate(e) {
1851
- this._selectedDate = e, this.value = this._formatDate(e), this._isOpen = !1, this.dispatchEvent(new CustomEvent("change", {
1852
- detail: { value: this.value, date: e }
1601
+ _selectDate(r) {
1602
+ this._selectedDate = r, this.value = this._formatDate(r), this._isOpen = !1, this.dispatchEvent(new CustomEvent("change", {
1603
+ detail: { value: this.value, date: r }
1853
1604
  }));
1854
1605
  }
1855
1606
  _selectToday() {
@@ -1860,54 +1611,54 @@ let w = class extends h {
1860
1611
  detail: { value: "", date: null }
1861
1612
  }));
1862
1613
  }
1863
- _getDaysInMonth(e, t) {
1864
- return new Date(e, t + 1, 0).getDate();
1614
+ _getDaysInMonth(r, t) {
1615
+ return new Date(r, t + 1, 0).getDate();
1865
1616
  }
1866
- _getFirstDayOfMonth(e, t) {
1867
- const a = new Date(e, t, 1).getDay();
1617
+ _getFirstDayOfMonth(r, t) {
1618
+ const a = new Date(r, t, 1).getDay();
1868
1619
  return a === 0 ? 6 : a - 1;
1869
1620
  }
1870
- _isToday(e) {
1621
+ _isToday(r) {
1871
1622
  const t = /* @__PURE__ */ new Date();
1872
- return e.getDate() === t.getDate() && e.getMonth() === t.getMonth() && e.getFullYear() === t.getFullYear();
1623
+ return r.getDate() === t.getDate() && r.getMonth() === t.getMonth() && r.getFullYear() === t.getFullYear();
1873
1624
  }
1874
- _isSelected(e) {
1875
- return this._selectedDate ? e.getDate() === this._selectedDate.getDate() && e.getMonth() === this._selectedDate.getMonth() && e.getFullYear() === this._selectedDate.getFullYear() : !1;
1625
+ _isSelected(r) {
1626
+ return this._selectedDate ? r.getDate() === this._selectedDate.getDate() && r.getMonth() === this._selectedDate.getMonth() && r.getFullYear() === this._selectedDate.getFullYear() : !1;
1876
1627
  }
1877
1628
  _renderDays() {
1878
- 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 = [];
1879
- for (let c = s - 1; c >= 0; c--) {
1880
- const p = new Date(e, t - 1, r - c);
1629
+ 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 = [];
1630
+ for (let h = s - 1; h >= 0; h--) {
1631
+ const m = new Date(r, t - 1, e - h);
1881
1632
  i.push(l`
1882
- <div class="day other-month" @click="${() => this._selectDate(p)}">
1883
- ${r - c}
1633
+ <div class="day other-month" @click="${() => this._selectDate(m)}">
1634
+ ${e - h}
1884
1635
  </div>
1885
1636
  `);
1886
1637
  }
1887
- for (let c = 1; c <= a; c++) {
1888
- const p = new Date(e, t, c), v = this._isToday(p), b = this._isSelected(p);
1638
+ for (let h = 1; h <= a; h++) {
1639
+ const m = new Date(r, t, h), P = this._isToday(m), Kt = this._isSelected(m);
1889
1640
  i.push(l`
1890
1641
  <div
1891
- class="day ${v ? "today" : ""} ${b ? "selected" : ""}"
1892
- @click="${() => this._selectDate(p)}"
1642
+ class="day ${P ? "today" : ""} ${Kt ? "selected" : ""}"
1643
+ @click="${() => this._selectDate(m)}"
1893
1644
  >
1894
- ${c}
1645
+ ${h}
1895
1646
  </div>
1896
1647
  `);
1897
1648
  }
1898
1649
  const o = 42 - i.length;
1899
- for (let c = 1; c <= o; c++) {
1900
- const p = new Date(e, t + 1, c);
1650
+ for (let h = 1; h <= o; h++) {
1651
+ const m = new Date(r, t + 1, h);
1901
1652
  i.push(l`
1902
- <div class="day other-month" @click="${() => this._selectDate(p)}">
1903
- ${c}
1653
+ <div class="day other-month" @click="${() => this._selectDate(m)}">
1654
+ ${h}
1904
1655
  </div>
1905
1656
  `);
1906
1657
  }
1907
1658
  return i;
1908
1659
  }
1909
1660
  render() {
1910
- const e = `${this._months[this._viewDate.getMonth()]} ${this._viewDate.getFullYear()}`;
1661
+ const r = `${this._months[this._viewDate.getMonth()]} ${this._viewDate.getFullYear()}`;
1911
1662
  return l`
1912
1663
  <div class="calendar-wrapper">
1913
1664
  <div class="calendar-input">
@@ -1932,7 +1683,7 @@ let w = class extends h {
1932
1683
  <div class="calendar-dropdown ${this._isOpen ? "open" : ""}">
1933
1684
  <div class="calendar-header">
1934
1685
  <button class="calendar-nav-btn" @click="${this._prevMonth}">◄</button>
1935
- <span class="calendar-title">${e}</span>
1686
+ <span class="calendar-title">${r}</span>
1936
1687
  <button class="calendar-nav-btn" @click="${this._nextMonth}">►</button>
1937
1688
  </div>
1938
1689
 
@@ -1953,7 +1704,7 @@ let w = class extends h {
1953
1704
  `;
1954
1705
  }
1955
1706
  };
1956
- w.styles = d`
1707
+ b.styles = c`
1957
1708
  :host {
1958
1709
  display: inline-block;
1959
1710
  font-family: var(--crt-font-family);
@@ -2158,56 +1909,56 @@ w.styles = d`
2158
1909
  color: var(--crt-bg-dark);
2159
1910
  }
2160
1911
  `;
2161
- O([
1912
+ _([
2162
1913
  n({ type: String })
2163
- ], w.prototype, "value", 2);
2164
- O([
1914
+ ], b.prototype, "value", 2);
1915
+ _([
2165
1916
  n({ type: String })
2166
- ], w.prototype, "placeholder", 2);
2167
- O([
1917
+ ], b.prototype, "placeholder", 2);
1918
+ _([
2168
1919
  n({ type: String })
2169
- ], w.prototype, "format", 2);
2170
- O([
1920
+ ], b.prototype, "format", 2);
1921
+ _([
2171
1922
  n({ type: String })
2172
- ], w.prototype, "min", 2);
2173
- O([
1923
+ ], b.prototype, "min", 2);
1924
+ _([
2174
1925
  n({ type: String })
2175
- ], w.prototype, "max", 2);
2176
- O([
1926
+ ], b.prototype, "max", 2);
1927
+ _([
2177
1928
  n({ type: Boolean })
2178
- ], w.prototype, "disabled", 2);
2179
- O([
2180
- m()
2181
- ], w.prototype, "_isOpen", 2);
2182
- O([
2183
- m()
2184
- ], w.prototype, "_viewDate", 2);
2185
- O([
2186
- m()
2187
- ], w.prototype, "_selectedDate", 2);
2188
- w = O([
2189
- u("crt-calendar")
2190
- ], w);
2191
- var wr = Object.defineProperty, kr = Object.getOwnPropertyDescriptor, it = (e, t, a, s) => {
2192
- for (var r = s > 1 ? void 0 : s ? kr(t, a) : t, i = e.length - 1, o; i >= 0; i--)
2193
- (o = e[i]) && (r = (s ? o(t, a, r) : o(r)) || r);
2194
- return s && r && wr(t, a, r), r;
1929
+ ], b.prototype, "disabled", 2);
1930
+ _([
1931
+ v()
1932
+ ], b.prototype, "_isOpen", 2);
1933
+ _([
1934
+ v()
1935
+ ], b.prototype, "_viewDate", 2);
1936
+ _([
1937
+ v()
1938
+ ], b.prototype, "_selectedDate", 2);
1939
+ b = _([
1940
+ d("crt-calendar")
1941
+ ], b);
1942
+ var Sr = Object.defineProperty, Er = Object.getOwnPropertyDescriptor, G = (r, t, a, s) => {
1943
+ for (var e = s > 1 ? void 0 : s ? Er(t, a) : t, i = r.length - 1, o; i >= 0; i--)
1944
+ (o = r[i]) && (e = (s ? o(t, a, e) : o(e)) || e);
1945
+ return s && e && Sr(t, a, e), e;
2195
1946
  };
2196
- let D = class extends h {
1947
+ let S = class extends p {
2197
1948
  constructor() {
2198
- super(...arguments), this.value = "", this.placeholder = "Select...", this.label = "", this.disabled = !1, this.options = [], this._isOpen = !1, this._handleOutsideClick = (e) => {
2199
- this.contains(e.target) || (this._isOpen = !1);
1949
+ super(...arguments), this.value = "", this.placeholder = "Select...", this.label = "", this.disabled = !1, this.options = [], this._isOpen = !1, this._handleOutsideClick = (r) => {
1950
+ this.contains(r.target) || (this._isOpen = !1);
2200
1951
  };
2201
1952
  }
2202
1953
  // Normalize options to flat array with group property
2203
1954
  _getNormalizedOptions() {
2204
- const e = [];
1955
+ const r = [];
2205
1956
  for (const t of this.options)
2206
1957
  if ("options" in t && Array.isArray(t.options))
2207
1958
  for (const a of t.options)
2208
- e.push({ ...a, group: t.group });
2209
- else "value" in t && e.push(t);
2210
- return e;
1959
+ r.push({ ...a, group: t.group });
1960
+ else "value" in t && r.push(t);
1961
+ return r;
2211
1962
  }
2212
1963
  connectedCallback() {
2213
1964
  super.connectedCallback(), document.addEventListener("click", this._handleOutsideClick);
@@ -2218,42 +1969,42 @@ let D = class extends h {
2218
1969
  _toggle() {
2219
1970
  this.disabled || (this._isOpen = !this._isOpen);
2220
1971
  }
2221
- _selectOption(e) {
2222
- e.disabled || (this.value = e.value, this._isOpen = !1, this.dispatchEvent(new CustomEvent("change", {
2223
- detail: { value: e.value, label: e.label }
1972
+ _selectOption(r) {
1973
+ r.disabled || (this.value = r.value, this._isOpen = !1, this.dispatchEvent(new CustomEvent("change", {
1974
+ detail: { value: r.value, label: r.label }
2224
1975
  })));
2225
1976
  }
2226
1977
  _getSelectedLabel() {
2227
1978
  return this._getNormalizedOptions().find((a) => a.value === this.value)?.label || "";
2228
1979
  }
2229
1980
  _renderOptions() {
2230
- const e = this._getNormalizedOptions(), t = /* @__PURE__ */ new Map(), a = [];
2231
- e.forEach((r) => {
2232
- r.group ? (t.has(r.group) || t.set(r.group, []), t.get(r.group).push(r)) : a.push(r);
1981
+ const r = this._getNormalizedOptions(), t = /* @__PURE__ */ new Map(), a = [];
1982
+ r.forEach((e) => {
1983
+ e.group ? (t.has(e.group) || t.set(e.group, []), t.get(e.group).push(e)) : a.push(e);
2233
1984
  });
2234
1985
  const s = [];
2235
- for (const r of a)
2236
- s.push(this._renderOption(r));
2237
- for (const [r, i] of t) {
2238
- s.push(l`<div class="select-group-label">${r}</div>`);
1986
+ for (const e of a)
1987
+ s.push(this._renderOption(e));
1988
+ for (const [e, i] of t) {
1989
+ s.push(l`<div class="select-group-label">${e}</div>`);
2239
1990
  for (const o of i)
2240
1991
  s.push(this._renderOption(o));
2241
1992
  }
2242
1993
  return s;
2243
1994
  }
2244
- _renderOption(e) {
2245
- const t = e.value === this.value;
1995
+ _renderOption(r) {
1996
+ const t = r.value === this.value;
2246
1997
  return l`
2247
1998
  <div
2248
- class="select-option ${t ? "selected" : ""} ${e.disabled ? "disabled" : ""}"
2249
- @click="${() => this._selectOption(e)}"
1999
+ class="select-option ${t ? "selected" : ""} ${r.disabled ? "disabled" : ""}"
2000
+ @click="${() => this._selectOption(r)}"
2250
2001
  >
2251
- ${e.label}
2002
+ ${r.label}
2252
2003
  </div>
2253
2004
  `;
2254
2005
  }
2255
2006
  render() {
2256
- const e = this._getSelectedLabel();
2007
+ const r = this._getSelectedLabel();
2257
2008
  return l`
2258
2009
  ${this.label ? l`<label class="select-label">${this.label}</label>` : ""}
2259
2010
  <div class="select-wrapper">
@@ -2261,8 +2012,8 @@ let D = class extends h {
2261
2012
  class="select-trigger ${this._isOpen ? "open" : ""} ${this.disabled ? "disabled" : ""}"
2262
2013
  @click="${this._toggle}"
2263
2014
  >
2264
- <span class="select-value ${e ? "" : "placeholder"}">
2265
- ${e || this.placeholder}
2015
+ <span class="select-value ${r ? "" : "placeholder"}">
2016
+ ${r || this.placeholder}
2266
2017
  </span>
2267
2018
  <span class="select-arrow">▼</span>
2268
2019
  </div>
@@ -2274,7 +2025,7 @@ let D = class extends h {
2274
2025
  `;
2275
2026
  }
2276
2027
  };
2277
- D.styles = d`
2028
+ S.styles = c`
2278
2029
  :host {
2279
2030
  display: inline-block;
2280
2031
  font-family: var(--crt-font-family);
@@ -2431,38 +2182,38 @@ D.styles = d`
2431
2182
  box-shadow: var(--crt-glow-sm);
2432
2183
  }
2433
2184
  `;
2434
- it([
2185
+ G([
2435
2186
  n({ type: String })
2436
- ], D.prototype, "value", 2);
2437
- it([
2187
+ ], S.prototype, "value", 2);
2188
+ G([
2438
2189
  n({ type: String })
2439
- ], D.prototype, "placeholder", 2);
2440
- it([
2190
+ ], S.prototype, "placeholder", 2);
2191
+ G([
2441
2192
  n({ type: String })
2442
- ], D.prototype, "label", 2);
2443
- it([
2193
+ ], S.prototype, "label", 2);
2194
+ G([
2444
2195
  n({ type: Boolean })
2445
- ], D.prototype, "disabled", 2);
2446
- it([
2196
+ ], S.prototype, "disabled", 2);
2197
+ G([
2447
2198
  n({ type: Array })
2448
- ], D.prototype, "options", 2);
2449
- it([
2450
- m()
2451
- ], D.prototype, "_isOpen", 2);
2452
- D = it([
2453
- u("crt-select")
2454
- ], D);
2455
- var $r = Object.defineProperty, _r = Object.getOwnPropertyDescriptor, y = (e, t, a, s) => {
2456
- for (var r = s > 1 ? void 0 : s ? _r(t, a) : t, i = e.length - 1, o; i >= 0; i--)
2457
- (o = e[i]) && (r = (s ? o(t, a, r) : o(r)) || r);
2458
- return s && r && $r(t, a, r), r;
2199
+ ], S.prototype, "options", 2);
2200
+ G([
2201
+ v()
2202
+ ], S.prototype, "_isOpen", 2);
2203
+ S = G([
2204
+ d("crt-select")
2205
+ ], S);
2206
+ var Dr = Object.defineProperty, Mr = Object.getOwnPropertyDescriptor, g = (r, t, a, s) => {
2207
+ for (var e = s > 1 ? void 0 : s ? Mr(t, a) : t, i = r.length - 1, o; i >= 0; i--)
2208
+ (o = r[i]) && (e = (s ? o(t, a, e) : o(e)) || e);
2209
+ return s && e && Dr(t, a, e), e;
2459
2210
  };
2460
- let Y = class extends h {
2211
+ let B = class extends p {
2461
2212
  constructor() {
2462
2213
  super(...arguments), this.checked = !1, this.disabled = !1, this.indeterminate = !1, this.label = "", this.value = "";
2463
2214
  }
2464
- _handleChange(e) {
2465
- const t = e.target;
2215
+ _handleChange(r) {
2216
+ const t = r.target;
2466
2217
  this.checked = t.checked, this.indeterminate = !1, this.dispatchEvent(new CustomEvent("change", {
2467
2218
  detail: { checked: this.checked, value: this.value }
2468
2219
  }));
@@ -2485,7 +2236,7 @@ let Y = class extends h {
2485
2236
  `;
2486
2237
  }
2487
2238
  };
2488
- Y.styles = d`
2239
+ B.styles = c`
2489
2240
  :host {
2490
2241
  display: inline-flex;
2491
2242
  align-items: center;
@@ -2567,30 +2318,30 @@ Y.styles = d`
2567
2318
  transform: scale(1);
2568
2319
  }
2569
2320
  `;
2570
- y([
2321
+ g([
2571
2322
  n({ type: Boolean, reflect: !0 })
2572
- ], Y.prototype, "checked", 2);
2573
- y([
2323
+ ], B.prototype, "checked", 2);
2324
+ g([
2574
2325
  n({ type: Boolean, reflect: !0 })
2575
- ], Y.prototype, "disabled", 2);
2576
- y([
2326
+ ], B.prototype, "disabled", 2);
2327
+ g([
2577
2328
  n({ type: Boolean })
2578
- ], Y.prototype, "indeterminate", 2);
2579
- y([
2329
+ ], B.prototype, "indeterminate", 2);
2330
+ g([
2580
2331
  n({ type: String })
2581
- ], Y.prototype, "label", 2);
2582
- y([
2332
+ ], B.prototype, "label", 2);
2333
+ g([
2583
2334
  n({ type: String })
2584
- ], Y.prototype, "value", 2);
2585
- Y = y([
2586
- u("crt-checkbox")
2587
- ], Y);
2588
- let V = class extends h {
2335
+ ], B.prototype, "value", 2);
2336
+ B = g([
2337
+ d("crt-checkbox")
2338
+ ], B);
2339
+ let U = class extends p {
2589
2340
  constructor() {
2590
2341
  super(...arguments), this.checked = !1, this.disabled = !1, this.label = "", this.value = "", this.name = "";
2591
2342
  }
2592
- _handleChange(e) {
2593
- e.target.checked && (this.checked = !0, this.dispatchEvent(new CustomEvent("change", {
2343
+ _handleChange(r) {
2344
+ r.target.checked && (this.checked = !0, this.dispatchEvent(new CustomEvent("change", {
2594
2345
  detail: { checked: this.checked, value: this.value },
2595
2346
  bubbles: !0
2596
2347
  })));
@@ -2614,7 +2365,7 @@ let V = class extends h {
2614
2365
  `;
2615
2366
  }
2616
2367
  };
2617
- V.styles = d`
2368
+ U.styles = c`
2618
2369
  :host {
2619
2370
  display: inline-flex;
2620
2371
  align-items: center;
@@ -2688,28 +2439,28 @@ V.styles = d`
2688
2439
  user-select: none;
2689
2440
  }
2690
2441
  `;
2691
- y([
2442
+ g([
2692
2443
  n({ type: Boolean, reflect: !0 })
2693
- ], V.prototype, "checked", 2);
2694
- y([
2444
+ ], U.prototype, "checked", 2);
2445
+ g([
2695
2446
  n({ type: Boolean, reflect: !0 })
2696
- ], V.prototype, "disabled", 2);
2697
- y([
2447
+ ], U.prototype, "disabled", 2);
2448
+ g([
2698
2449
  n({ type: String })
2699
- ], V.prototype, "label", 2);
2700
- y([
2450
+ ], U.prototype, "label", 2);
2451
+ g([
2701
2452
  n({ type: String })
2702
- ], V.prototype, "value", 2);
2703
- y([
2453
+ ], U.prototype, "value", 2);
2454
+ g([
2704
2455
  n({ type: String })
2705
- ], V.prototype, "name", 2);
2706
- V = y([
2707
- u("crt-radio")
2708
- ], V);
2709
- let dt = class extends h {
2456
+ ], U.prototype, "name", 2);
2457
+ U = g([
2458
+ d("crt-radio")
2459
+ ], U);
2460
+ let tt = class extends p {
2710
2461
  constructor() {
2711
- super(...arguments), this.name = "", this.value = "", this.horizontal = !1, this._handleChange = (e) => {
2712
- const t = e.target;
2462
+ super(...arguments), this.name = "", this.value = "", this.horizontal = !1, this._handleChange = (r) => {
2463
+ const t = r.target;
2713
2464
  t.tagName === "CRT-RADIO" && (this.value = t.value, this.querySelectorAll("crt-radio").forEach((a) => {
2714
2465
  a.checked = a === t;
2715
2466
  }), this.dispatchEvent(new CustomEvent("change", {
@@ -2727,7 +2478,7 @@ let dt = class extends h {
2727
2478
  return l`<slot></slot>`;
2728
2479
  }
2729
2480
  };
2730
- dt.styles = d`
2481
+ tt.styles = c`
2731
2482
  :host {
2732
2483
  display: flex;
2733
2484
  flex-direction: column;
@@ -2740,24 +2491,24 @@ dt.styles = d`
2740
2491
  gap: var(--crt-spacing-lg);
2741
2492
  }
2742
2493
  `;
2743
- y([
2494
+ g([
2744
2495
  n({ type: String })
2745
- ], dt.prototype, "name", 2);
2746
- y([
2496
+ ], tt.prototype, "name", 2);
2497
+ g([
2747
2498
  n({ type: String })
2748
- ], dt.prototype, "value", 2);
2749
- y([
2499
+ ], tt.prototype, "value", 2);
2500
+ g([
2750
2501
  n({ type: Boolean, reflect: !0 })
2751
- ], dt.prototype, "horizontal", 2);
2752
- dt = y([
2753
- u("crt-radio-group")
2754
- ], dt);
2755
- var zr = Object.defineProperty, Cr = Object.getOwnPropertyDescriptor, A = (e, t, a, s) => {
2756
- for (var r = s > 1 ? void 0 : s ? Cr(t, a) : t, i = e.length - 1, o; i >= 0; i--)
2757
- (o = e[i]) && (r = (s ? o(t, a, r) : o(r)) || r);
2758
- return s && r && zr(t, a, r), r;
2502
+ ], tt.prototype, "horizontal", 2);
2503
+ tt = g([
2504
+ d("crt-radio-group")
2505
+ ], tt);
2506
+ var jr = Object.defineProperty, Tr = Object.getOwnPropertyDescriptor, z = (r, t, a, s) => {
2507
+ for (var e = s > 1 ? void 0 : s ? Tr(t, a) : t, i = r.length - 1, o; i >= 0; i--)
2508
+ (o = r[i]) && (e = (s ? o(t, a, e) : o(e)) || e);
2509
+ return s && e && jr(t, a, e), e;
2759
2510
  };
2760
- let k = class extends h {
2511
+ let f = class extends p {
2761
2512
  constructor() {
2762
2513
  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;
2763
2514
  }
@@ -2765,25 +2516,25 @@ let k = class extends h {
2765
2516
  return Math.min(100, Math.max(0, this.value / this.max * 100));
2766
2517
  }
2767
2518
  render() {
2768
- const e = this._getPercentage();
2519
+ const r = this._getPercentage();
2769
2520
  return l`
2770
2521
  <div class="progress-wrapper">
2771
2522
  ${this.label || this.showValue ? l`
2772
2523
  <div class="progress-header">
2773
2524
  ${this.label ? l`<span class="progress-label">${this.label}</span>` : ""}
2774
2525
  ${this.showValue && !this.indeterminate ? l`
2775
- <span class="progress-value">${Math.round(e)}%</span>
2526
+ <span class="progress-value">${Math.round(r)}%</span>
2776
2527
  ` : ""}
2777
2528
  </div>
2778
2529
  ` : ""}
2779
2530
  <div class="progress-track" role="progressbar" aria-valuenow="${this.value}" aria-valuemax="${this.max}">
2780
- <div class="progress-bar" style="width: ${this.indeterminate ? "30" : e}%"></div>
2531
+ <div class="progress-bar" style="width: ${this.indeterminate ? "30" : r}%"></div>
2781
2532
  </div>
2782
2533
  </div>
2783
2534
  `;
2784
2535
  }
2785
2536
  };
2786
- k.styles = d`
2537
+ f.styles = c`
2787
2538
  :host {
2788
2539
  display: block;
2789
2540
  font-family: var(--crt-font-family);
@@ -2907,42 +2658,42 @@ k.styles = d`
2907
2658
  );
2908
2659
  }
2909
2660
  `;
2910
- A([
2661
+ z([
2911
2662
  n({ type: Number })
2912
- ], k.prototype, "value", 2);
2913
- A([
2663
+ ], f.prototype, "value", 2);
2664
+ z([
2914
2665
  n({ type: Number })
2915
- ], k.prototype, "max", 2);
2916
- A([
2666
+ ], f.prototype, "max", 2);
2667
+ z([
2917
2668
  n({ type: String })
2918
- ], k.prototype, "label", 2);
2919
- A([
2669
+ ], f.prototype, "label", 2);
2670
+ z([
2920
2671
  n({ type: Boolean, reflect: !0 })
2921
- ], k.prototype, "animated", 2);
2922
- A([
2672
+ ], f.prototype, "animated", 2);
2673
+ z([
2923
2674
  n({ type: Boolean, reflect: !0 })
2924
- ], k.prototype, "indeterminate", 2);
2925
- A([
2675
+ ], f.prototype, "indeterminate", 2);
2676
+ z([
2926
2677
  n({ type: Boolean, reflect: !0 })
2927
- ], k.prototype, "segmented", 2);
2928
- A([
2678
+ ], f.prototype, "segmented", 2);
2679
+ z([
2929
2680
  n({ type: String, reflect: !0 })
2930
- ], k.prototype, "size", 2);
2931
- A([
2681
+ ], f.prototype, "size", 2);
2682
+ z([
2932
2683
  n({ type: String, reflect: !0 })
2933
- ], k.prototype, "variant", 2);
2934
- A([
2684
+ ], f.prototype, "variant", 2);
2685
+ z([
2935
2686
  n({ type: Boolean })
2936
- ], k.prototype, "showValue", 2);
2937
- k = A([
2938
- u("crt-progress")
2939
- ], k);
2940
- var Pr = Object.defineProperty, Or = Object.getOwnPropertyDescriptor, At = (e, t, a, s) => {
2941
- for (var r = s > 1 ? void 0 : s ? Or(t, a) : t, i = e.length - 1, o; i >= 0; i--)
2942
- (o = e[i]) && (r = (s ? o(t, a, r) : o(r)) || r);
2943
- return s && r && Pr(t, a, r), r;
2687
+ ], f.prototype, "showValue", 2);
2688
+ f = z([
2689
+ d("crt-progress")
2690
+ ], f);
2691
+ var Ar = Object.defineProperty, Lr = Object.getOwnPropertyDescriptor, ut = (r, t, a, s) => {
2692
+ for (var e = s > 1 ? void 0 : s ? Lr(t, a) : t, i = r.length - 1, o; i >= 0; i--)
2693
+ (o = r[i]) && (e = (s ? o(t, a, e) : o(e)) || e);
2694
+ return s && e && Ar(t, a, e), e;
2944
2695
  };
2945
- let et = class extends h {
2696
+ let H = class extends p {
2946
2697
  constructor() {
2947
2698
  super(...arguments), this.text = "", this.position = "top", this.delay = 200, this._visible = !1;
2948
2699
  }
@@ -2971,7 +2722,7 @@ let et = class extends h {
2971
2722
  `;
2972
2723
  }
2973
2724
  };
2974
- et.styles = d`
2725
+ H.styles = c`
2975
2726
  :host {
2976
2727
  display: inline-block;
2977
2728
  position: relative;
@@ -3078,36 +2829,36 @@ et.styles = d`
3078
2829
  border-right-color: var(--crt-primary);
3079
2830
  }
3080
2831
  `;
3081
- At([
2832
+ ut([
3082
2833
  n({ type: String })
3083
- ], et.prototype, "text", 2);
3084
- At([
2834
+ ], H.prototype, "text", 2);
2835
+ ut([
3085
2836
  n({ type: String, reflect: !0 })
3086
- ], et.prototype, "position", 2);
3087
- At([
2837
+ ], H.prototype, "position", 2);
2838
+ ut([
3088
2839
  n({ type: Number })
3089
- ], et.prototype, "delay", 2);
3090
- At([
3091
- m()
3092
- ], et.prototype, "_visible", 2);
3093
- et = At([
3094
- u("crt-tooltip")
3095
- ], et);
3096
- var Ar = Object.defineProperty, Sr = Object.getOwnPropertyDescriptor, oe = (e, t, a, s) => {
3097
- for (var r = s > 1 ? void 0 : s ? Sr(t, a) : t, i = e.length - 1, o; i >= 0; i--)
3098
- (o = e[i]) && (r = (s ? o(t, a, r) : o(r)) || r);
3099
- return s && r && Ar(t, a, r), r;
2840
+ ], H.prototype, "delay", 2);
2841
+ ut([
2842
+ v()
2843
+ ], H.prototype, "_visible", 2);
2844
+ H = ut([
2845
+ d("crt-tooltip")
2846
+ ], H);
2847
+ var Ir = Object.defineProperty, Br = Object.getOwnPropertyDescriptor, It = (r, t, a, s) => {
2848
+ for (var e = s > 1 ? void 0 : s ? Br(t, a) : t, i = r.length - 1, o; i >= 0; i--)
2849
+ (o = r[i]) && (e = (s ? o(t, a, e) : o(e)) || e);
2850
+ return s && e && Ir(t, a, e), e;
3100
2851
  };
3101
- let $t = class extends h {
2852
+ let ct = class extends p {
3102
2853
  constructor() {
3103
2854
  super(...arguments), this.items = [], this.separator = ">";
3104
2855
  }
3105
2856
  render() {
3106
2857
  return l`
3107
2858
  <nav class="breadcrumb" aria-label="Breadcrumb">
3108
- ${this.items.map((e, t) => l`
2859
+ ${this.items.map((r, t) => l`
3109
2860
  <span class="item ${t === this.items.length - 1 ? "active" : ""}">
3110
- ${e.href && t !== this.items.length - 1 ? l`<a href="${e.href}">${e.label}</a>` : l`<span class="text">${e.label}</span>`}
2861
+ ${r.href && t !== this.items.length - 1 ? l`<a href="${r.href}">${r.label}</a>` : l`<span class="text">${r.label}</span>`}
3111
2862
  ${t < this.items.length - 1 ? l`<span class="separator">${this.separator}</span>` : ""}
3112
2863
  </span>
3113
2864
  `)}
@@ -3116,7 +2867,7 @@ let $t = class extends h {
3116
2867
  `;
3117
2868
  }
3118
2869
  };
3119
- $t.styles = d`
2870
+ ct.styles = c`
3120
2871
  :host {
3121
2872
  display: block;
3122
2873
  font-family: var(--crt-font-family);
@@ -3165,39 +2916,39 @@ $t.styles = d`
3165
2916
  font-size: var(--crt-font-size-sm);
3166
2917
  }
3167
2918
  `;
3168
- oe([
2919
+ It([
3169
2920
  n({ type: Array })
3170
- ], $t.prototype, "items", 2);
3171
- oe([
2921
+ ], ct.prototype, "items", 2);
2922
+ It([
3172
2923
  n({ type: String })
3173
- ], $t.prototype, "separator", 2);
3174
- $t = oe([
3175
- u("crt-breadcrumb")
3176
- ], $t);
3177
- var Er = Object.defineProperty, Mr = Object.getOwnPropertyDescriptor, St = (e, t, a, s) => {
3178
- for (var r = s > 1 ? void 0 : s ? Mr(t, a) : t, i = e.length - 1, o; i >= 0; i--)
3179
- (o = e[i]) && (r = (s ? o(t, a, r) : o(r)) || r);
3180
- return s && r && Er(t, a, r), r;
2924
+ ], ct.prototype, "separator", 2);
2925
+ ct = It([
2926
+ d("crt-breadcrumb")
2927
+ ], ct);
2928
+ var Ur = Object.defineProperty, Nr = Object.getOwnPropertyDescriptor, mt = (r, t, a, s) => {
2929
+ for (var e = s > 1 ? void 0 : s ? Nr(t, a) : t, i = r.length - 1, o; i >= 0; i--)
2930
+ (o = r[i]) && (e = (s ? o(t, a, e) : o(e)) || e);
2931
+ return s && e && Ur(t, a, e), e;
3181
2932
  };
3182
- let rt = class extends h {
2933
+ let X = class extends p {
3183
2934
  constructor() {
3184
2935
  super(...arguments), this.current = 1, this.total = 1, this.siblings = 1, this.showInfo = !0;
3185
2936
  }
3186
- _goToPage(e) {
3187
- e >= 1 && e <= this.total && e !== this.current && (this.current = e, this.dispatchEvent(new CustomEvent("change", {
2937
+ _goToPage(r) {
2938
+ r >= 1 && r <= this.total && r !== this.current && (this.current = r, this.dispatchEvent(new CustomEvent("change", {
3188
2939
  detail: { page: this.current }
3189
2940
  })));
3190
2941
  }
3191
2942
  _getPageNumbers() {
3192
- const e = [], t = this.current > this.siblings + 2, a = this.current < this.total - this.siblings - 1;
3193
- e.push(1), t && e.push("...");
3194
- const s = Math.max(2, this.current - this.siblings), r = Math.min(this.total - 1, this.current + this.siblings);
3195
- for (let i = s; i <= r; i++)
3196
- e.includes(i) || e.push(i);
3197
- return a && e.push("..."), this.total > 1 && !e.includes(this.total) && e.push(this.total), e;
2943
+ const r = [], t = this.current > this.siblings + 2, a = this.current < this.total - this.siblings - 1;
2944
+ r.push(1), t && r.push("...");
2945
+ const s = Math.max(2, this.current - this.siblings), e = Math.min(this.total - 1, this.current + this.siblings);
2946
+ for (let i = s; i <= e; i++)
2947
+ r.includes(i) || r.push(i);
2948
+ return a && r.push("..."), this.total > 1 && !r.includes(this.total) && r.push(this.total), r;
3198
2949
  }
3199
2950
  render() {
3200
- const e = this._getPageNumbers();
2951
+ const r = this._getPageNumbers();
3201
2952
  return l`
3202
2953
  <nav class="pagination" aria-label="Pagination">
3203
2954
  <button
@@ -3209,7 +2960,7 @@ let rt = class extends h {
3209
2960
 
3210
2961
  </button>
3211
2962
 
3212
- ${e.map(
2963
+ ${r.map(
3213
2964
  (t) => t === "..." ? l`<span class="page-ellipsis">...</span>` : l`
3214
2965
  <button
3215
2966
  class="page-btn ${t === this.current ? "active" : ""}"
@@ -3238,7 +2989,7 @@ let rt = class extends h {
3238
2989
  `;
3239
2990
  }
3240
2991
  };
3241
- rt.styles = d`
2992
+ X.styles = c`
3242
2993
  :host {
3243
2994
  display: block;
3244
2995
  font-family: var(--crt-font-family);
@@ -3293,40 +3044,40 @@ rt.styles = d`
3293
3044
  margin-left: var(--crt-spacing-md);
3294
3045
  }
3295
3046
  `;
3296
- St([
3047
+ mt([
3297
3048
  n({ type: Number })
3298
- ], rt.prototype, "current", 2);
3299
- St([
3049
+ ], X.prototype, "current", 2);
3050
+ mt([
3300
3051
  n({ type: Number })
3301
- ], rt.prototype, "total", 2);
3302
- St([
3052
+ ], X.prototype, "total", 2);
3053
+ mt([
3303
3054
  n({ type: Number })
3304
- ], rt.prototype, "siblings", 2);
3305
- St([
3055
+ ], X.prototype, "siblings", 2);
3056
+ mt([
3306
3057
  n({ type: Boolean })
3307
- ], rt.prototype, "showInfo", 2);
3308
- rt = St([
3309
- u("crt-pagination")
3310
- ], rt);
3311
- var Dr = Object.defineProperty, Tr = Object.getOwnPropertyDescriptor, B = (e, t, a, s) => {
3312
- for (var r = s > 1 ? void 0 : s ? Tr(t, a) : t, i = e.length - 1, o; i >= 0; i--)
3313
- (o = e[i]) && (r = (s ? o(t, a, r) : o(r)) || r);
3314
- return s && r && Dr(t, a, r), r;
3058
+ ], X.prototype, "showInfo", 2);
3059
+ X = mt([
3060
+ d("crt-pagination")
3061
+ ], X);
3062
+ var Rr = Object.defineProperty, Fr = Object.getOwnPropertyDescriptor, T = (r, t, a, s) => {
3063
+ for (var e = s > 1 ? void 0 : s ? Fr(t, a) : t, i = r.length - 1, o; i >= 0; i--)
3064
+ (o = r[i]) && (e = (s ? o(t, a, e) : o(e)) || e);
3065
+ return s && e && Rr(t, a, e), e;
3315
3066
  };
3316
- let _ = class extends h {
3067
+ let x = class extends p {
3317
3068
  constructor() {
3318
3069
  super(...arguments), this.value = 50, this.min = 0, this.max = 100, this.step = 1, this.label = "", this.disabled = !1, this.showMarks = !1, this.unit = "";
3319
3070
  }
3320
- _handleInput(e) {
3321
- const t = e.target;
3071
+ _handleInput(r) {
3072
+ const t = r.target;
3322
3073
  this.value = Number(t.value), this.dispatchEvent(new CustomEvent("input", {
3323
3074
  detail: { value: this.value },
3324
3075
  bubbles: !0,
3325
3076
  composed: !0
3326
3077
  }));
3327
3078
  }
3328
- _handleChange(e) {
3329
- const t = e.target;
3079
+ _handleChange(r) {
3080
+ const t = r.target;
3330
3081
  this.value = Number(t.value), this.dispatchEvent(new CustomEvent("change", {
3331
3082
  detail: { value: this.value },
3332
3083
  bubbles: !0,
@@ -3370,7 +3121,7 @@ let _ = class extends h {
3370
3121
  `;
3371
3122
  }
3372
3123
  };
3373
- _.styles = d`
3124
+ x.styles = c`
3374
3125
  :host {
3375
3126
  display: block;
3376
3127
  font-family: var(--crt-font-family);
@@ -3504,44 +3255,44 @@ _.styles = d`
3504
3255
  cursor: not-allowed;
3505
3256
  }
3506
3257
  `;
3507
- B([
3258
+ T([
3508
3259
  n({ type: Number })
3509
- ], _.prototype, "value", 2);
3510
- B([
3260
+ ], x.prototype, "value", 2);
3261
+ T([
3511
3262
  n({ type: Number })
3512
- ], _.prototype, "min", 2);
3513
- B([
3263
+ ], x.prototype, "min", 2);
3264
+ T([
3514
3265
  n({ type: Number })
3515
- ], _.prototype, "max", 2);
3516
- B([
3266
+ ], x.prototype, "max", 2);
3267
+ T([
3517
3268
  n({ type: Number })
3518
- ], _.prototype, "step", 2);
3519
- B([
3269
+ ], x.prototype, "step", 2);
3270
+ T([
3520
3271
  n({ type: String })
3521
- ], _.prototype, "label", 2);
3522
- B([
3272
+ ], x.prototype, "label", 2);
3273
+ T([
3523
3274
  n({ type: Boolean, reflect: !0 })
3524
- ], _.prototype, "disabled", 2);
3525
- B([
3275
+ ], x.prototype, "disabled", 2);
3276
+ T([
3526
3277
  n({ type: Boolean })
3527
- ], _.prototype, "showMarks", 2);
3528
- B([
3278
+ ], x.prototype, "showMarks", 2);
3279
+ T([
3529
3280
  n({ type: String })
3530
- ], _.prototype, "unit", 2);
3531
- _ = B([
3532
- u("crt-slider")
3533
- ], _);
3534
- var jr = Object.defineProperty, Lr = Object.getOwnPropertyDescriptor, ot = (e, t, a, s) => {
3535
- for (var r = s > 1 ? void 0 : s ? Lr(t, a) : t, i = e.length - 1, o; i >= 0; i--)
3536
- (o = e[i]) && (r = (s ? o(t, a, r) : o(r)) || r);
3537
- return s && r && jr(t, a, r), r;
3281
+ ], x.prototype, "unit", 2);
3282
+ x = T([
3283
+ d("crt-slider")
3284
+ ], x);
3285
+ var Yr = Object.defineProperty, Vr = Object.getOwnPropertyDescriptor, Q = (r, t, a, s) => {
3286
+ for (var e = s > 1 ? void 0 : s ? Vr(t, a) : t, i = r.length - 1, o; i >= 0; i--)
3287
+ (o = r[i]) && (e = (s ? o(t, a, e) : o(e)) || e);
3288
+ return s && e && Yr(t, a, e), e;
3538
3289
  };
3539
- let T = class extends h {
3290
+ let E = class extends p {
3540
3291
  constructor() {
3541
3292
  super(...arguments), this.checked = !1, this.disabled = !1, this.label = "", this.onLabel = "1", this.offLabel = "0", this.size = "medium";
3542
3293
  }
3543
- _handleChange(e) {
3544
- const t = e.target;
3294
+ _handleChange(r) {
3295
+ const t = r.target;
3545
3296
  this.checked = t.checked, this.dispatchEvent(new CustomEvent("change", {
3546
3297
  detail: { checked: this.checked }
3547
3298
  }));
@@ -3567,7 +3318,7 @@ let T = class extends h {
3567
3318
  `;
3568
3319
  }
3569
3320
  };
3570
- T.styles = d`
3321
+ E.styles = c`
3571
3322
  :host {
3572
3323
  display: inline-flex;
3573
3324
  align-items: center;
@@ -3689,40 +3440,40 @@ T.styles = d`
3689
3440
  left: 35px;
3690
3441
  }
3691
3442
  `;
3692
- ot([
3443
+ Q([
3693
3444
  n({ type: Boolean, reflect: !0 })
3694
- ], T.prototype, "checked", 2);
3695
- ot([
3445
+ ], E.prototype, "checked", 2);
3446
+ Q([
3696
3447
  n({ type: Boolean, reflect: !0 })
3697
- ], T.prototype, "disabled", 2);
3698
- ot([
3448
+ ], E.prototype, "disabled", 2);
3449
+ Q([
3699
3450
  n({ type: String })
3700
- ], T.prototype, "label", 2);
3701
- ot([
3451
+ ], E.prototype, "label", 2);
3452
+ Q([
3702
3453
  n({ type: String })
3703
- ], T.prototype, "onLabel", 2);
3704
- ot([
3454
+ ], E.prototype, "onLabel", 2);
3455
+ Q([
3705
3456
  n({ type: String })
3706
- ], T.prototype, "offLabel", 2);
3707
- ot([
3457
+ ], E.prototype, "offLabel", 2);
3458
+ Q([
3708
3459
  n({ type: String, reflect: !0 })
3709
- ], T.prototype, "size", 2);
3710
- T = ot([
3711
- u("crt-toggle")
3712
- ], T);
3713
- var Ir = Object.defineProperty, Br = Object.getOwnPropertyDescriptor, N = (e, t, a, s) => {
3714
- for (var r = s > 1 ? void 0 : s ? Br(t, a) : t, i = e.length - 1, o; i >= 0; i--)
3715
- (o = e[i]) && (r = (s ? o(t, a, r) : o(r)) || r);
3716
- return s && r && Ir(t, a, r), r;
3460
+ ], E.prototype, "size", 2);
3461
+ E = Q([
3462
+ d("crt-toggle")
3463
+ ], E);
3464
+ var qr = Object.defineProperty, Hr = Object.getOwnPropertyDescriptor, A = (r, t, a, s) => {
3465
+ for (var e = s > 1 ? void 0 : s ? Hr(t, a) : t, i = r.length - 1, o; i >= 0; i--)
3466
+ (o = r[i]) && (e = (s ? o(t, a, e) : o(e)) || e);
3467
+ return s && e && qr(t, a, e), e;
3717
3468
  };
3718
- let j = class extends h {
3469
+ let D = class extends p {
3719
3470
  constructor() {
3720
3471
  super(...arguments), this.src = "", this.alt = "", this.name = "", this.size = "md", this.shape = "square", this.status = "";
3721
3472
  }
3722
3473
  _getInitials() {
3723
3474
  if (!this.name) return "?";
3724
- const e = this.name.trim().split(/\s+/);
3725
- return e.length === 1 ? e[0].substring(0, 2) : e[0][0] + e[e.length - 1][0];
3475
+ const r = this.name.trim().split(/\s+/);
3476
+ return r.length === 1 ? r[0].substring(0, 2) : r[0][0] + r[r.length - 1][0];
3726
3477
  }
3727
3478
  _handleError() {
3728
3479
  this.src = "";
@@ -3748,7 +3499,7 @@ let j = class extends h {
3748
3499
  `;
3749
3500
  }
3750
3501
  };
3751
- j.styles = d`
3502
+ D.styles = c`
3752
3503
  :host {
3753
3504
  display: inline-block;
3754
3505
  font-family: var(--crt-font-family);
@@ -3876,28 +3627,28 @@ j.styles = d`
3876
3627
  border-color: var(--crt-bg-dark);
3877
3628
  }
3878
3629
  `;
3879
- N([
3630
+ A([
3880
3631
  n({ type: String })
3881
- ], j.prototype, "src", 2);
3882
- N([
3632
+ ], D.prototype, "src", 2);
3633
+ A([
3883
3634
  n({ type: String })
3884
- ], j.prototype, "alt", 2);
3885
- N([
3635
+ ], D.prototype, "alt", 2);
3636
+ A([
3886
3637
  n({ type: String })
3887
- ], j.prototype, "name", 2);
3888
- N([
3638
+ ], D.prototype, "name", 2);
3639
+ A([
3889
3640
  n({ type: String, reflect: !0 })
3890
- ], j.prototype, "size", 2);
3891
- N([
3641
+ ], D.prototype, "size", 2);
3642
+ A([
3892
3643
  n({ type: String, reflect: !0 })
3893
- ], j.prototype, "shape", 2);
3894
- N([
3644
+ ], D.prototype, "shape", 2);
3645
+ A([
3895
3646
  n({ type: String, reflect: !0 })
3896
- ], j.prototype, "status", 2);
3897
- j = N([
3898
- u("crt-avatar")
3899
- ], j);
3900
- let Rt = class extends h {
3647
+ ], D.prototype, "status", 2);
3648
+ D = A([
3649
+ d("crt-avatar")
3650
+ ], D);
3651
+ let _t = class extends p {
3901
3652
  constructor() {
3902
3653
  super(...arguments), this.max = 5;
3903
3654
  }
@@ -3907,7 +3658,7 @@ let Rt = class extends h {
3907
3658
  `;
3908
3659
  }
3909
3660
  };
3910
- Rt.styles = d`
3661
+ _t.styles = c`
3911
3662
  :host {
3912
3663
  display: inline-flex;
3913
3664
  align-items: center;
@@ -3936,18 +3687,18 @@ Rt.styles = d`
3936
3687
  box-shadow: var(--crt-glow-sm);
3937
3688
  }
3938
3689
  `;
3939
- N([
3690
+ A([
3940
3691
  n({ type: Number })
3941
- ], Rt.prototype, "max", 2);
3942
- Rt = N([
3943
- u("crt-avatar-group")
3944
- ], Rt);
3945
- var Nr = Object.defineProperty, Ur = Object.getOwnPropertyDescriptor, S = (e, t, a, s) => {
3946
- for (var r = s > 1 ? void 0 : s ? Ur(t, a) : t, i = e.length - 1, o; i >= 0; i--)
3947
- (o = e[i]) && (r = (s ? o(t, a, r) : o(r)) || r);
3948
- return s && r && Nr(t, a, r), r;
3692
+ ], _t.prototype, "max", 2);
3693
+ _t = A([
3694
+ d("crt-avatar-group")
3695
+ ], _t);
3696
+ var Xr = Object.defineProperty, Kr = Object.getOwnPropertyDescriptor, C = (r, t, a, s) => {
3697
+ for (var e = s > 1 ? void 0 : s ? Kr(t, a) : t, i = r.length - 1, o; i >= 0; i--)
3698
+ (o = r[i]) && (e = (s ? o(t, a, e) : o(e)) || e);
3699
+ return s && e && Xr(t, a, e), e;
3949
3700
  };
3950
- let q = class extends h {
3701
+ let N = class extends p {
3951
3702
  constructor() {
3952
3703
  super(...arguments), this.variant = "rectangular", this.animation = "shimmer", this.width = "100%", this.height = "20px", this.effect = !1;
3953
3704
  }
@@ -3960,7 +3711,7 @@ let q = class extends h {
3960
3711
  `;
3961
3712
  }
3962
3713
  };
3963
- q.styles = d`
3714
+ N.styles = c`
3964
3715
  :host {
3965
3716
  display: block;
3966
3717
  }
@@ -4075,25 +3826,25 @@ q.styles = d`
4075
3826
  pointer-events: none;
4076
3827
  }
4077
3828
  `;
4078
- S([
3829
+ C([
4079
3830
  n({ type: String, reflect: !0 })
4080
- ], q.prototype, "variant", 2);
4081
- S([
3831
+ ], N.prototype, "variant", 2);
3832
+ C([
4082
3833
  n({ type: String, reflect: !0 })
4083
- ], q.prototype, "animation", 2);
4084
- S([
3834
+ ], N.prototype, "animation", 2);
3835
+ C([
4085
3836
  n({ type: String })
4086
- ], q.prototype, "width", 2);
4087
- S([
3837
+ ], N.prototype, "width", 2);
3838
+ C([
4088
3839
  n({ type: String })
4089
- ], q.prototype, "height", 2);
4090
- S([
3840
+ ], N.prototype, "height", 2);
3841
+ C([
4091
3842
  n({ type: Boolean, reflect: !0 })
4092
- ], q.prototype, "effect", 2);
4093
- q = S([
4094
- u("crt-skeleton")
4095
- ], q);
4096
- let Ft = class extends h {
3843
+ ], N.prototype, "effect", 2);
3844
+ N = C([
3845
+ d("crt-skeleton")
3846
+ ], N);
3847
+ let zt = class extends p {
4097
3848
  constructor() {
4098
3849
  super(...arguments), this.lines = 3;
4099
3850
  }
@@ -4105,7 +3856,7 @@ let Ft = class extends h {
4105
3856
  `;
4106
3857
  }
4107
3858
  };
4108
- Ft.styles = d`
3859
+ zt.styles = c`
4109
3860
  :host {
4110
3861
  display: block;
4111
3862
  }
@@ -4137,13 +3888,13 @@ Ft.styles = d`
4137
3888
  }
4138
3889
  }
4139
3890
  `;
4140
- S([
3891
+ C([
4141
3892
  n({ type: Number })
4142
- ], Ft.prototype, "lines", 2);
4143
- Ft = S([
4144
- u("crt-skeleton-text")
4145
- ], Ft);
4146
- let Ht = class extends h {
3893
+ ], zt.prototype, "lines", 2);
3894
+ zt = C([
3895
+ d("crt-skeleton-text")
3896
+ ], zt);
3897
+ let Ct = class extends p {
4147
3898
  constructor() {
4148
3899
  super(...arguments), this.hideImage = !1;
4149
3900
  }
@@ -4159,7 +3910,7 @@ let Ht = class extends h {
4159
3910
  `;
4160
3911
  }
4161
3912
  };
4162
- Ht.styles = d`
3913
+ Ct.styles = c`
4163
3914
  :host {
4164
3915
  display: block;
4165
3916
  }
@@ -4210,18 +3961,18 @@ Ht.styles = d`
4210
3961
  }
4211
3962
  }
4212
3963
  `;
4213
- S([
3964
+ C([
4214
3965
  n({ type: Boolean })
4215
- ], Ht.prototype, "hideImage", 2);
4216
- Ht = S([
4217
- u("crt-skeleton-card")
4218
- ], Ht);
4219
- var Rr = Object.defineProperty, Fr = Object.getOwnPropertyDescriptor, U = (e, t, a, s) => {
4220
- for (var r = s > 1 ? void 0 : s ? Fr(t, a) : t, i = e.length - 1, o; i >= 0; i--)
4221
- (o = e[i]) && (r = (s ? o(t, a, r) : o(r)) || r);
4222
- return s && r && Rr(t, a, r), r;
3966
+ ], Ct.prototype, "hideImage", 2);
3967
+ Ct = C([
3968
+ d("crt-skeleton-card")
3969
+ ], Ct);
3970
+ var Wr = Object.defineProperty, Gr = Object.getOwnPropertyDescriptor, L = (r, t, a, s) => {
3971
+ for (var e = s > 1 ? void 0 : s ? Gr(t, a) : t, i = r.length - 1, o; i >= 0; i--)
3972
+ (o = r[i]) && (e = (s ? o(t, a, e) : o(e)) || e);
3973
+ return s && e && Wr(t, a, e), e;
4223
3974
  };
4224
- let z = class extends h {
3975
+ let w = class extends p {
4225
3976
  constructor() {
4226
3977
  super(...arguments), this.variant = "info", this.title = "", this.closable = !1, this.filled = !1, this.outlined = !1, this.banner = !1, this.animated = !1, this.icon = "";
4227
3978
  }
@@ -4256,7 +4007,7 @@ let z = class extends h {
4256
4007
  `;
4257
4008
  }
4258
4009
  };
4259
- z.styles = d`
4010
+ w.styles = c`
4260
4011
  :host {
4261
4012
  display: block;
4262
4013
  font-family: var(--crt-font-family);
@@ -4421,39 +4172,39 @@ z.styles = d`
4421
4172
  border-top: none;
4422
4173
  }
4423
4174
  `;
4424
- U([
4175
+ L([
4425
4176
  n({ type: String, reflect: !0 })
4426
- ], z.prototype, "variant", 2);
4427
- U([
4177
+ ], w.prototype, "variant", 2);
4178
+ L([
4428
4179
  n({ type: String })
4429
- ], z.prototype, "title", 2);
4430
- U([
4180
+ ], w.prototype, "title", 2);
4181
+ L([
4431
4182
  n({ type: Boolean, reflect: !0 })
4432
- ], z.prototype, "closable", 2);
4433
- U([
4183
+ ], w.prototype, "closable", 2);
4184
+ L([
4434
4185
  n({ type: Boolean, reflect: !0 })
4435
- ], z.prototype, "filled", 2);
4436
- U([
4186
+ ], w.prototype, "filled", 2);
4187
+ L([
4437
4188
  n({ type: Boolean, reflect: !0 })
4438
- ], z.prototype, "outlined", 2);
4439
- U([
4189
+ ], w.prototype, "outlined", 2);
4190
+ L([
4440
4191
  n({ type: Boolean, reflect: !0 })
4441
- ], z.prototype, "banner", 2);
4442
- U([
4192
+ ], w.prototype, "banner", 2);
4193
+ L([
4443
4194
  n({ type: Boolean, reflect: !0 })
4444
- ], z.prototype, "animated", 2);
4445
- U([
4195
+ ], w.prototype, "animated", 2);
4196
+ L([
4446
4197
  n({ type: String })
4447
- ], z.prototype, "icon", 2);
4448
- z = U([
4449
- u("crt-alert")
4450
- ], z);
4451
- var Hr = Object.defineProperty, Yr = Object.getOwnPropertyDescriptor, ne = (e, t, a, s) => {
4452
- for (var r = s > 1 ? void 0 : s ? Yr(t, a) : t, i = e.length - 1, o; i >= 0; i--)
4453
- (o = e[i]) && (r = (s ? o(t, a, r) : o(r)) || r);
4454
- return s && r && Hr(t, a, r), r;
4198
+ ], w.prototype, "icon", 2);
4199
+ w = L([
4200
+ d("crt-alert")
4201
+ ], w);
4202
+ var Qr = Object.defineProperty, Jr = Object.getOwnPropertyDescriptor, Bt = (r, t, a, s) => {
4203
+ for (var e = s > 1 ? void 0 : s ? Jr(t, a) : t, i = r.length - 1, o; i >= 0; i--)
4204
+ (o = r[i]) && (e = (s ? o(t, a, e) : o(e)) || e);
4205
+ return s && e && Qr(t, a, e), e;
4455
4206
  };
4456
- let _t = class extends h {
4207
+ let pt = class extends p {
4457
4208
  constructor() {
4458
4209
  super(...arguments), this.open = !1, this.message = "LOADING...";
4459
4210
  }
@@ -4477,7 +4228,7 @@ let _t = class extends h {
4477
4228
  ` : l``;
4478
4229
  }
4479
4230
  };
4480
- _t.styles = d`
4231
+ pt.styles = c`
4481
4232
  :host {
4482
4233
  display: block;
4483
4234
  }
@@ -4699,21 +4450,21 @@ _t.styles = d`
4699
4450
  50% { opacity: 0.5; }
4700
4451
  }
4701
4452
  `;
4702
- ne([
4453
+ Bt([
4703
4454
  n({ type: Boolean, reflect: !0 })
4704
- ], _t.prototype, "open", 2);
4705
- ne([
4455
+ ], pt.prototype, "open", 2);
4456
+ Bt([
4706
4457
  n({ type: String })
4707
- ], _t.prototype, "message", 2);
4708
- _t = ne([
4709
- u("crt-spinner")
4710
- ], _t);
4711
- var Vr = Object.getOwnPropertyDescriptor, qr = (e, t, a, s) => {
4712
- for (var r = s > 1 ? void 0 : s ? Vr(t, a) : t, i = e.length - 1, o; i >= 0; i--)
4713
- (o = e[i]) && (r = o(r) || r);
4714
- return r;
4458
+ ], pt.prototype, "message", 2);
4459
+ pt = Bt([
4460
+ d("crt-spinner")
4461
+ ], pt);
4462
+ var Zr = Object.getOwnPropertyDescriptor, te = (r, t, a, s) => {
4463
+ for (var e = s > 1 ? void 0 : s ? Zr(t, a) : t, i = r.length - 1, o; i >= 0; i--)
4464
+ (o = r[i]) && (e = o(e) || e);
4465
+ return e;
4715
4466
  };
4716
- let Qt = class extends h {
4467
+ let Dt = class extends p {
4717
4468
  render() {
4718
4469
  return l`
4719
4470
  <div class="card">
@@ -4730,7 +4481,7 @@ let Qt = class extends h {
4730
4481
  `;
4731
4482
  }
4732
4483
  };
4733
- Qt.styles = d`
4484
+ Dt.styles = c`
4734
4485
  :host {
4735
4486
  /* Make the card element act like a normal block-level container
4736
4487
  so external width/height styles can be applied responsively. */
@@ -4772,15 +4523,15 @@ Qt.styles = d`
4772
4523
  margin-top: var(--crt-spacing-md);
4773
4524
  }
4774
4525
  `;
4775
- Qt = qr([
4776
- u("crt-card")
4777
- ], Qt);
4778
- var Wr = Object.defineProperty, Xr = Object.getOwnPropertyDescriptor, le = (e, t, a, s) => {
4779
- for (var r = s > 1 ? void 0 : s ? Xr(t, a) : t, i = e.length - 1, o; i >= 0; i--)
4780
- (o = e[i]) && (r = (s ? o(t, a, r) : o(r)) || r);
4781
- return s && r && Wr(t, a, r), r;
4526
+ Dt = te([
4527
+ d("crt-card")
4528
+ ], Dt);
4529
+ var re = Object.defineProperty, ee = Object.getOwnPropertyDescriptor, Ut = (r, t, a, s) => {
4530
+ for (var e = s > 1 ? void 0 : s ? ee(t, a) : t, i = r.length - 1, o; i >= 0; i--)
4531
+ (o = r[i]) && (e = (s ? o(t, a, e) : o(e)) || e);
4532
+ return s && e && re(t, a, e), e;
4782
4533
  };
4783
- let zt = class extends h {
4534
+ let dt = class extends p {
4784
4535
  constructor() {
4785
4536
  super(...arguments), this.headers = [], this.rows = [];
4786
4537
  }
@@ -4789,17 +4540,17 @@ let zt = class extends h {
4789
4540
  <table>
4790
4541
  <thead>
4791
4542
  <tr>
4792
- ${this.headers.map((e) => l`<th>${e}</th>`)}
4543
+ ${this.headers.map((r) => l`<th>${r}</th>`)}
4793
4544
  </tr>
4794
4545
  </thead>
4795
4546
  <tbody>
4796
- ${this.rows.map((e) => l`<tr>${e.map((t) => l`<td>${t}</td>`)}</tr>`)}
4547
+ ${this.rows.map((r) => l`<tr>${r.map((t) => l`<td>${t}</td>`)}</tr>`)}
4797
4548
  </tbody>
4798
4549
  </table>
4799
4550
  `;
4800
4551
  }
4801
4552
  };
4802
- zt.styles = d`
4553
+ dt.styles = c`
4803
4554
  :host {
4804
4555
  display: block;
4805
4556
  }
@@ -4851,21 +4602,21 @@ zt.styles = d`
4851
4602
  border-bottom: none;
4852
4603
  }
4853
4604
  `;
4854
- le([
4605
+ Ut([
4855
4606
  n({ type: Array })
4856
- ], zt.prototype, "headers", 2);
4857
- le([
4607
+ ], dt.prototype, "headers", 2);
4608
+ Ut([
4858
4609
  n({ type: Array })
4859
- ], zt.prototype, "rows", 2);
4860
- zt = le([
4861
- u("crt-table")
4862
- ], zt);
4863
- var Kr = Object.defineProperty, Gr = Object.getOwnPropertyDescriptor, ce = (e, t, a, s) => {
4864
- for (var r = s > 1 ? void 0 : s ? Gr(t, a) : t, i = e.length - 1, o; i >= 0; i--)
4865
- (o = e[i]) && (r = (s ? o(t, a, r) : o(r)) || r);
4866
- return s && r && Kr(t, a, r), r;
4610
+ ], dt.prototype, "rows", 2);
4611
+ dt = Ut([
4612
+ d("crt-table")
4613
+ ], dt);
4614
+ var ae = Object.defineProperty, se = Object.getOwnPropertyDescriptor, Nt = (r, t, a, s) => {
4615
+ for (var e = s > 1 ? void 0 : s ? se(t, a) : t, i = r.length - 1, o; i >= 0; i--)
4616
+ (o = r[i]) && (e = (s ? o(t, a, e) : o(e)) || e);
4617
+ return s && e && ae(t, a, e), e;
4867
4618
  };
4868
- let Ct = class extends h {
4619
+ let ht = class extends p {
4869
4620
  constructor() {
4870
4621
  super(...arguments), this.columns = 3, this.gap = "var(--crt-spacing-lg)";
4871
4622
  }
@@ -4883,7 +4634,7 @@ let Ct = class extends h {
4883
4634
  `;
4884
4635
  }
4885
4636
  };
4886
- Ct.styles = d`
4637
+ ht.styles = c`
4887
4638
  :host {
4888
4639
  display: block;
4889
4640
  }
@@ -4912,34 +4663,34 @@ Ct.styles = d`
4912
4663
  }
4913
4664
  }
4914
4665
  `;
4915
- ce([
4666
+ Nt([
4916
4667
  n({ type: Number })
4917
- ], Ct.prototype, "columns", 2);
4918
- ce([
4668
+ ], ht.prototype, "columns", 2);
4669
+ Nt([
4919
4670
  n({ type: String })
4920
- ], Ct.prototype, "gap", 2);
4921
- Ct = ce([
4922
- u("crt-grid")
4923
- ], Ct);
4924
- var Zr = Object.defineProperty, Qr = Object.getOwnPropertyDescriptor, vt = (e, t, a, s) => {
4925
- for (var r = s > 1 ? void 0 : s ? Qr(t, a) : t, i = e.length - 1, o; i >= 0; i--)
4926
- (o = e[i]) && (r = (s ? o(t, a, r) : o(r)) || r);
4927
- return s && r && Zr(t, a, r), r;
4671
+ ], ht.prototype, "gap", 2);
4672
+ ht = Nt([
4673
+ d("crt-grid")
4674
+ ], ht);
4675
+ var ie = Object.defineProperty, oe = Object.getOwnPropertyDescriptor, at = (r, t, a, s) => {
4676
+ for (var e = s > 1 ? void 0 : s ? oe(t, a) : t, i = r.length - 1, o; i >= 0; i--)
4677
+ (o = r[i]) && (e = (s ? o(t, a, e) : o(e)) || e);
4678
+ return s && e && ie(t, a, e), e;
4928
4679
  };
4929
- let W = class extends h {
4680
+ let R = class extends p {
4930
4681
  constructor() {
4931
4682
  super(...arguments), this.title = "", this.description = "", this.code = "", this.activeTab = "preview", this.copied = !1;
4932
4683
  }
4933
- switchTab(e) {
4934
- this.activeTab = e;
4684
+ switchTab(r) {
4685
+ this.activeTab = r;
4935
4686
  }
4936
4687
  async copyCode() {
4937
4688
  try {
4938
4689
  await navigator.clipboard.writeText(this.code), this.copied = !0, setTimeout(() => {
4939
4690
  this.copied = !1;
4940
4691
  }, 2e3);
4941
- } catch (e) {
4942
- console.error("Failed to copy:", e);
4692
+ } catch (r) {
4693
+ console.error("Failed to copy:", r);
4943
4694
  }
4944
4695
  }
4945
4696
  render() {
@@ -4983,7 +4734,7 @@ let W = class extends h {
4983
4734
  `;
4984
4735
  }
4985
4736
  };
4986
- W.styles = d`
4737
+ R.styles = c`
4987
4738
  :host {
4988
4739
  display: block;
4989
4740
  margin-bottom: var(--crt-spacing-xl);
@@ -5132,33 +4883,33 @@ W.styles = d`
5132
4883
  color: var(--crt-bg-dark);
5133
4884
  }
5134
4885
  `;
5135
- vt([
4886
+ at([
5136
4887
  n()
5137
- ], W.prototype, "title", 2);
5138
- vt([
4888
+ ], R.prototype, "title", 2);
4889
+ at([
5139
4890
  n()
5140
- ], W.prototype, "description", 2);
5141
- vt([
4891
+ ], R.prototype, "description", 2);
4892
+ at([
5142
4893
  n()
5143
- ], W.prototype, "code", 2);
5144
- vt([
5145
- m()
5146
- ], W.prototype, "activeTab", 2);
5147
- vt([
5148
- m()
5149
- ], W.prototype, "copied", 2);
5150
- W = vt([
5151
- u("crt-code-example")
5152
- ], W);
5153
- var Jr = Object.defineProperty, ta = Object.getOwnPropertyDescriptor, Kt = (e, t, a, s) => {
5154
- for (var r = s > 1 ? void 0 : s ? ta(t, a) : t, i = e.length - 1, o; i >= 0; i--)
5155
- (o = e[i]) && (r = (s ? o(t, a, r) : o(r)) || r);
5156
- return s && r && Jr(t, a, r), r;
4894
+ ], R.prototype, "code", 2);
4895
+ at([
4896
+ v()
4897
+ ], R.prototype, "activeTab", 2);
4898
+ at([
4899
+ v()
4900
+ ], R.prototype, "copied", 2);
4901
+ R = at([
4902
+ d("crt-code-example")
4903
+ ], R);
4904
+ var ne = Object.defineProperty, le = Object.getOwnPropertyDescriptor, Et = (r, t, a, s) => {
4905
+ for (var e = s > 1 ? void 0 : s ? le(t, a) : t, i = r.length - 1, o; i >= 0; i--)
4906
+ (o = r[i]) && (e = (s ? o(t, a, e) : o(e)) || e);
4907
+ return s && e && ne(t, a, e), e;
5157
4908
  };
5158
- let ht = class extends h {
4909
+ let rt = class extends p {
5159
4910
  constructor() {
5160
- super(...arguments), this.open = !1, this.title = "Modal", this.size = "medium", this._handleKeydown = (e) => {
5161
- e.key === "Escape" && this.open && this.close();
4911
+ super(...arguments), this.open = !1, this.title = "Modal", this.size = "medium", this._handleKeydown = (r) => {
4912
+ r.key === "Escape" && this.open && this.close();
5162
4913
  };
5163
4914
  }
5164
4915
  connectedCallback() {
@@ -5170,8 +4921,8 @@ let ht = class extends h {
5170
4921
  close() {
5171
4922
  this.open = !1, this.dispatchEvent(new CustomEvent("close"));
5172
4923
  }
5173
- _handleBackdropClick(e) {
5174
- e.target.classList.contains("backdrop") && this.close();
4924
+ _handleBackdropClick(r) {
4925
+ r.target.classList.contains("backdrop") && this.close();
5175
4926
  }
5176
4927
  render() {
5177
4928
  return l`
@@ -5192,7 +4943,7 @@ let ht = class extends h {
5192
4943
  `;
5193
4944
  }
5194
4945
  };
5195
- ht.styles = d`
4946
+ rt.styles = c`
5196
4947
  :host {
5197
4948
  display: none;
5198
4949
  }
@@ -5319,24 +5070,24 @@ ht.styles = d`
5319
5070
  height: calc(95vh - 120px);
5320
5071
  }
5321
5072
  `;
5322
- Kt([
5073
+ Et([
5323
5074
  n({ type: Boolean, reflect: !0 })
5324
- ], ht.prototype, "open", 2);
5325
- Kt([
5075
+ ], rt.prototype, "open", 2);
5076
+ Et([
5326
5077
  n({ type: String })
5327
- ], ht.prototype, "title", 2);
5328
- Kt([
5078
+ ], rt.prototype, "title", 2);
5079
+ Et([
5329
5080
  n({ type: String })
5330
- ], ht.prototype, "size", 2);
5331
- ht = Kt([
5332
- u("crt-modal")
5333
- ], ht);
5334
- var ea = Object.defineProperty, ra = Object.getOwnPropertyDescriptor, nt = (e, t, a, s) => {
5335
- for (var r = s > 1 ? void 0 : s ? ra(t, a) : t, i = e.length - 1, o; i >= 0; i--)
5336
- (o = e[i]) && (r = (s ? o(t, a, r) : o(r)) || r);
5337
- return s && r && ea(t, a, r), r;
5081
+ ], rt.prototype, "size", 2);
5082
+ rt = Et([
5083
+ d("crt-modal")
5084
+ ], rt);
5085
+ var ce = Object.defineProperty, pe = Object.getOwnPropertyDescriptor, J = (r, t, a, s) => {
5086
+ for (var e = s > 1 ? void 0 : s ? pe(t, a) : t, i = r.length - 1, o; i >= 0; i--)
5087
+ (o = r[i]) && (e = (s ? o(t, a, e) : o(e)) || e);
5088
+ return s && e && ce(t, a, e), e;
5338
5089
  };
5339
- let L = class extends h {
5090
+ let M = class extends p {
5340
5091
  constructor() {
5341
5092
  super(...arguments), this.position = "top-right", this.message = "", this.title = "", this.variant = "default", this.duration = 4e3, this._toasts = [], this._counter = 0, this._initialized = !1;
5342
5093
  }
@@ -5350,25 +5101,25 @@ let L = class extends h {
5350
5101
  });
5351
5102
  }));
5352
5103
  }
5353
- show(e) {
5104
+ show(r) {
5354
5105
  const t = ++this._counter, a = {
5355
5106
  id: t,
5356
- title: e.title,
5357
- message: e.message,
5358
- variant: e.variant || "default",
5359
- duration: e.duration ?? 4e3
5107
+ title: r.title,
5108
+ message: r.message,
5109
+ variant: r.variant || "default",
5110
+ duration: r.duration ?? 4e3
5360
5111
  };
5361
5112
  this._toasts = [...this._toasts, a], a.duration > 0 && setTimeout(() => this._removeToast(t), a.duration);
5362
5113
  }
5363
- _removeToast(e) {
5114
+ _removeToast(r) {
5364
5115
  this._toasts = this._toasts.map(
5365
- (t) => t.id === e ? { ...t, removing: !0 } : t
5116
+ (t) => t.id === r ? { ...t, removing: !0 } : t
5366
5117
  ), setTimeout(() => {
5367
- this._toasts = this._toasts.filter((t) => t.id !== e);
5118
+ this._toasts = this._toasts.filter((t) => t.id !== r);
5368
5119
  }, 300);
5369
5120
  }
5370
- _getIcon(e) {
5371
- switch (e) {
5121
+ _getIcon(r) {
5122
+ switch (r) {
5372
5123
  case "success":
5373
5124
  return "[✓]";
5374
5125
  case "warning":
@@ -5384,16 +5135,16 @@ let L = class extends h {
5384
5135
  render() {
5385
5136
  return l`
5386
5137
  <div class="toast-container">
5387
- ${this._toasts.map((e) => l`
5388
- <div class="toast ${e.variant} ${e.removing ? "removing" : ""}">
5389
- <span class="toast-icon">${this._getIcon(e.variant)}</span>
5138
+ ${this._toasts.map((r) => l`
5139
+ <div class="toast ${r.variant} ${r.removing ? "removing" : ""}">
5140
+ <span class="toast-icon">${this._getIcon(r.variant)}</span>
5390
5141
  <div class="toast-content">
5391
- ${e.title ? l`<h4 class="toast-title">${e.title}</h4>` : ""}
5392
- <p class="toast-message">${e.message}</p>
5142
+ ${r.title ? l`<h4 class="toast-title">${r.title}</h4>` : ""}
5143
+ <p class="toast-message">${r.message}</p>
5393
5144
  </div>
5394
- <button class="toast-close" @click="${() => this._removeToast(e.id)}">✕</button>
5395
- ${e.duration > 0 ? l`
5396
- <div class="toast-progress" style="animation-duration: ${e.duration}ms"></div>
5145
+ <button class="toast-close" @click="${() => this._removeToast(r.id)}">✕</button>
5146
+ ${r.duration > 0 ? l`
5147
+ <div class="toast-progress" style="animation-duration: ${r.duration}ms"></div>
5397
5148
  ` : ""}
5398
5149
  </div>
5399
5150
  `)}
@@ -5401,7 +5152,7 @@ let L = class extends h {
5401
5152
  `;
5402
5153
  }
5403
5154
  };
5404
- L.styles = d`
5155
+ M.styles = c`
5405
5156
  :host {
5406
5157
  position: fixed;
5407
5158
  z-index: 10001;
@@ -5568,33 +5319,33 @@ L.styles = d`
5568
5319
  to { width: 0%; }
5569
5320
  }
5570
5321
  `;
5571
- nt([
5322
+ J([
5572
5323
  n({ type: String, reflect: !0 })
5573
- ], L.prototype, "position", 2);
5574
- nt([
5324
+ ], M.prototype, "position", 2);
5325
+ J([
5575
5326
  n({ type: String })
5576
- ], L.prototype, "message", 2);
5577
- nt([
5327
+ ], M.prototype, "message", 2);
5328
+ J([
5578
5329
  n({ type: String })
5579
- ], L.prototype, "title", 2);
5580
- nt([
5330
+ ], M.prototype, "title", 2);
5331
+ J([
5581
5332
  n({ type: String })
5582
- ], L.prototype, "variant", 2);
5583
- nt([
5333
+ ], M.prototype, "variant", 2);
5334
+ J([
5584
5335
  n({ type: Number })
5585
- ], L.prototype, "duration", 2);
5586
- nt([
5587
- m()
5588
- ], L.prototype, "_toasts", 2);
5589
- L = nt([
5590
- u("crt-toast")
5591
- ], L);
5592
- var aa = Object.defineProperty, sa = Object.getOwnPropertyDescriptor, Et = (e, t, a, s) => {
5593
- for (var r = s > 1 ? void 0 : s ? sa(t, a) : t, i = e.length - 1, o; i >= 0; i--)
5594
- (o = e[i]) && (r = (s ? o(t, a, r) : o(r)) || r);
5595
- return s && r && aa(t, a, r), r;
5336
+ ], M.prototype, "duration", 2);
5337
+ J([
5338
+ v()
5339
+ ], M.prototype, "_toasts", 2);
5340
+ M = J([
5341
+ d("crt-toast")
5342
+ ], M);
5343
+ var de = Object.defineProperty, he = Object.getOwnPropertyDescriptor, bt = (r, t, a, s) => {
5344
+ for (var e = s > 1 ? void 0 : s ? he(t, a) : t, i = r.length - 1, o; i >= 0; i--)
5345
+ (o = r[i]) && (e = (s ? o(t, a, e) : o(e)) || e);
5346
+ return s && e && de(t, a, e), e;
5596
5347
  };
5597
- let Pt = class extends h {
5348
+ let vt = class extends p {
5598
5349
  constructor() {
5599
5350
  super(...arguments), this.header = "", this.open = !1;
5600
5351
  }
@@ -5623,7 +5374,7 @@ let Pt = class extends h {
5623
5374
  `;
5624
5375
  }
5625
5376
  };
5626
- Pt.styles = d`
5377
+ vt.styles = c`
5627
5378
  :host {
5628
5379
  display: block;
5629
5380
  font-family: var(--crt-font-family);
@@ -5694,20 +5445,20 @@ Pt.styles = d`
5694
5445
  color: var(--crt-text-secondary);
5695
5446
  }
5696
5447
  `;
5697
- Et([
5448
+ bt([
5698
5449
  n({ type: String })
5699
- ], Pt.prototype, "header", 2);
5700
- Et([
5450
+ ], vt.prototype, "header", 2);
5451
+ bt([
5701
5452
  n({ type: Boolean, reflect: !0 })
5702
- ], Pt.prototype, "open", 2);
5703
- Pt = Et([
5704
- u("crt-accordion-item")
5705
- ], Pt);
5706
- let Yt = class extends h {
5453
+ ], vt.prototype, "open", 2);
5454
+ vt = bt([
5455
+ d("crt-accordion-item")
5456
+ ], vt);
5457
+ let Pt = class extends p {
5707
5458
  constructor() {
5708
- super(...arguments), this.multiple = !1, this._handleToggle = (e) => {
5709
- !this.multiple && e.detail.open && this.querySelectorAll("crt-accordion-item").forEach((t) => {
5710
- t !== e.target && (t.open = !1);
5459
+ super(...arguments), this.multiple = !1, this._handleToggle = (r) => {
5460
+ !this.multiple && r.detail.open && this.querySelectorAll("crt-accordion-item").forEach((t) => {
5461
+ t !== r.target && (t.open = !1);
5711
5462
  });
5712
5463
  };
5713
5464
  }
@@ -5721,31 +5472,31 @@ let Yt = class extends h {
5721
5472
  return l`<slot></slot>`;
5722
5473
  }
5723
5474
  };
5724
- Yt.styles = d`
5475
+ Pt.styles = c`
5725
5476
  :host {
5726
5477
  display: block;
5727
5478
  }
5728
5479
  `;
5729
- Et([
5480
+ bt([
5730
5481
  n({ type: Boolean })
5731
- ], Yt.prototype, "multiple", 2);
5732
- Yt = Et([
5733
- u("crt-accordion")
5734
- ], Yt);
5735
- var ia = Object.defineProperty, oa = Object.getOwnPropertyDescriptor, Mt = (e, t, a, s) => {
5736
- for (var r = s > 1 ? void 0 : s ? oa(t, a) : t, i = e.length - 1, o; i >= 0; i--)
5737
- (o = e[i]) && (r = (s ? o(t, a, r) : o(r)) || r);
5738
- return s && r && ia(t, a, r), r;
5482
+ ], Pt.prototype, "multiple", 2);
5483
+ Pt = bt([
5484
+ d("crt-accordion")
5485
+ ], Pt);
5486
+ var ve = Object.defineProperty, ge = Object.getOwnPropertyDescriptor, ft = (r, t, a, s) => {
5487
+ for (var e = s > 1 ? void 0 : s ? ge(t, a) : t, i = r.length - 1, o; i >= 0; i--)
5488
+ (o = r[i]) && (e = (s ? o(t, a, e) : o(e)) || e);
5489
+ return s && e && ve(t, a, e), e;
5739
5490
  };
5740
- let at = class extends h {
5491
+ let K = class extends p {
5741
5492
  constructor() {
5742
5493
  super(...arguments), this.bars = 20, this.mode = 1, this.barHeights = [], this.isActive = !1, this.visualize = () => {
5743
5494
  if (!this.isActive || !this.analyser || !this.dataArray) return;
5744
5495
  this.analyser.getByteFrequencyData(this.dataArray);
5745
- const e = Math.floor(this.dataArray.length / this.bars), t = [];
5496
+ const r = Math.floor(this.dataArray.length / this.bars), t = [];
5746
5497
  for (let a = 0; a < this.bars; a++) {
5747
5498
  let s;
5748
- 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);
5499
+ 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);
5749
5500
  const i = (this.dataArray[s] || 0) / 255 * 100;
5750
5501
  t.push(Math.max(20, i));
5751
5502
  }
@@ -5758,9 +5509,9 @@ let at = class extends h {
5758
5509
  disconnectedCallback() {
5759
5510
  super.disconnectedCallback(), this.stop();
5760
5511
  }
5761
- connectAudio(e) {
5512
+ connectAudio(r) {
5762
5513
  if (!this.audioContext) {
5763
- 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);
5514
+ 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);
5764
5515
  const t = this.analyser.frequencyBinCount;
5765
5516
  this.dataArray = new Uint8Array(t);
5766
5517
  }
@@ -5783,14 +5534,14 @@ let at = class extends h {
5783
5534
  <div class="visualizer">
5784
5535
  <span class="label">[VISUALIZER]</span>
5785
5536
  <button class="mode-toggle" @click="${this.toggleMode}">MODE ${this.mode}</button>
5786
- ${this.barHeights.map((e) => l`
5787
- <div class="bar" style="height: ${e}%"></div>
5537
+ ${this.barHeights.map((r) => l`
5538
+ <div class="bar" style="height: ${r}%"></div>
5788
5539
  `)}
5789
5540
  </div>
5790
5541
  `;
5791
5542
  }
5792
5543
  };
5793
- at.styles = d`
5544
+ K.styles = c`
5794
5545
  :host {
5795
5546
  display: block;
5796
5547
  }
@@ -5865,37 +5616,37 @@ at.styles = d`
5865
5616
  animation: none;
5866
5617
  }
5867
5618
  `;
5868
- Mt([
5619
+ ft([
5869
5620
  n({ type: Number })
5870
- ], at.prototype, "bars", 2);
5871
- Mt([
5621
+ ], K.prototype, "bars", 2);
5622
+ ft([
5872
5623
  n({ type: Number })
5873
- ], at.prototype, "mode", 2);
5874
- Mt([
5875
- m()
5876
- ], at.prototype, "barHeights", 2);
5877
- Mt([
5878
- m()
5879
- ], at.prototype, "isActive", 2);
5880
- at = Mt([
5881
- u("crt-visualizer")
5882
- ], at);
5883
- var na = Object.defineProperty, la = Object.getOwnPropertyDescriptor, pe = (e, t, a, s) => {
5884
- for (var r = s > 1 ? void 0 : s ? la(t, a) : t, i = e.length - 1, o; i >= 0; i--)
5885
- (o = e[i]) && (r = (s ? o(t, a, r) : o(r)) || r);
5886
- return s && r && na(t, a, r), r;
5624
+ ], K.prototype, "mode", 2);
5625
+ ft([
5626
+ v()
5627
+ ], K.prototype, "barHeights", 2);
5628
+ ft([
5629
+ v()
5630
+ ], K.prototype, "isActive", 2);
5631
+ K = ft([
5632
+ d("crt-visualizer")
5633
+ ], K);
5634
+ var ue = Object.defineProperty, me = Object.getOwnPropertyDescriptor, Rt = (r, t, a, s) => {
5635
+ for (var e = s > 1 ? void 0 : s ? me(t, a) : t, i = r.length - 1, o; i >= 0; i--)
5636
+ (o = r[i]) && (e = (s ? o(t, a, e) : o(e)) || e);
5637
+ return s && e && ue(t, a, e), e;
5887
5638
  };
5888
- let Ot = class extends h {
5639
+ let gt = class extends p {
5889
5640
  constructor() {
5890
5641
  super(...arguments), this.tracks = [], this.currentIndex = 0;
5891
5642
  }
5892
- handleTrackClick(e) {
5643
+ handleTrackClick(r) {
5893
5644
  this.dispatchEvent(new CustomEvent("track-select", {
5894
- detail: { index: e, track: this.tracks[e] }
5645
+ detail: { index: r, track: this.tracks[r] }
5895
5646
  }));
5896
5647
  }
5897
- handleRemoveTrack(e, t) {
5898
- e.stopPropagation(), this.dispatchEvent(new CustomEvent("track-remove", {
5648
+ handleRemoveTrack(r, t) {
5649
+ r.stopPropagation(), this.dispatchEvent(new CustomEvent("track-remove", {
5899
5650
  detail: { index: t }
5900
5651
  }));
5901
5652
  }
@@ -5925,14 +5676,14 @@ let Ot = class extends h {
5925
5676
  </tr>
5926
5677
  </thead>
5927
5678
  <tbody>
5928
- ${this.tracks.map((e, t) => l`
5679
+ ${this.tracks.map((r, t) => l`
5929
5680
  <tr
5930
5681
  class="${t === this.currentIndex ? "active" : ""}"
5931
5682
  @click="${() => this.handleTrackClick(t)}"
5932
5683
  >
5933
5684
  <td class="track-number">${t + 1}</td>
5934
- <td class="track-title">${e.title}</td>
5935
- <td class="track-artist">${e.artist}</td>
5685
+ <td class="track-title">${r.title}</td>
5686
+ <td class="track-artist">${r.artist}</td>
5936
5687
  <td class="actions">
5937
5688
  <crt-button
5938
5689
  class="remove-btn"
@@ -5954,7 +5705,7 @@ let Ot = class extends h {
5954
5705
  `;
5955
5706
  }
5956
5707
  };
5957
- Ot.styles = d`
5708
+ gt.styles = c`
5958
5709
  :host {
5959
5710
  display: block;
5960
5711
  width: 100%;
@@ -6124,21 +5875,21 @@ Ot.styles = d`
6124
5875
  box-shadow: var(--crt-glow-sm);
6125
5876
  }
6126
5877
  `;
6127
- pe([
5878
+ Rt([
6128
5879
  n({ type: Array })
6129
- ], Ot.prototype, "tracks", 2);
6130
- pe([
5880
+ ], gt.prototype, "tracks", 2);
5881
+ Rt([
6131
5882
  n({ type: Number })
6132
- ], Ot.prototype, "currentIndex", 2);
6133
- Ot = pe([
6134
- u("crt-playlist")
6135
- ], Ot);
6136
- var ca = Object.defineProperty, pa = Object.getOwnPropertyDescriptor, $ = (e, t, a, s) => {
6137
- for (var r = s > 1 ? void 0 : s ? pa(t, a) : t, i = e.length - 1, o; i >= 0; i--)
6138
- (o = e[i]) && (r = (s ? o(t, a, r) : o(r)) || r);
6139
- return s && r && ca(t, a, r), r;
5883
+ ], gt.prototype, "currentIndex", 2);
5884
+ gt = Rt([
5885
+ d("crt-playlist")
5886
+ ], gt);
5887
+ var be = Object.defineProperty, fe = Object.getOwnPropertyDescriptor, y = (r, t, a, s) => {
5888
+ for (var e = s > 1 ? void 0 : s ? fe(t, a) : t, i = r.length - 1, o; i >= 0; i--)
5889
+ (o = r[i]) && (e = (s ? o(t, a, e) : o(e)) || e);
5890
+ return s && e && be(t, a, e), e;
6140
5891
  };
6141
- let x = class extends h {
5892
+ let u = class extends p {
6142
5893
  constructor() {
6143
5894
  super(...arguments), this.tracks = [], this.currentIndex = 0, this.autoplay = !1, this.autoplayDelay = 500, this.isPlaying = !1, this.currentTime = 0, this.duration = 0, this.volume = 80, this.autoplayMuted = !1, this.togglePlay = async () => {
6144
5895
  this.isPlaying ? this.pause() : await this.play();
@@ -6152,39 +5903,39 @@ let x = class extends h {
6152
5903
  this.duration = this.audio?.duration || 0;
6153
5904
  }, this.handleEnded = () => {
6154
5905
  this.nextTrack();
6155
- }, this.handleProgressClick = (e) => {
6156
- const a = e.currentTarget.getBoundingClientRect(), s = (e.clientX - a.left) / a.width;
5906
+ }, this.handleProgressClick = (r) => {
5907
+ const a = r.currentTarget.getBoundingClientRect(), s = (r.clientX - a.left) / a.width;
6157
5908
  this.audio && (this.audio.currentTime = this.duration * s);
6158
- }, this.handleVolumeChange = (e) => {
6159
- this.volume = e.detail.value, this.audio && (this.audio.volume = this.volume / 100), localStorage.setItem("crtPlayerVolume", this.volume.toString());
5909
+ }, this.handleVolumeChange = (r) => {
5910
+ this.volume = r.detail.value, this.audio && (this.audio.volume = this.volume / 100), localStorage.setItem("crtPlayerVolume", this.volume.toString());
6160
5911
  };
6161
5912
  }
6162
5913
  connectedCallback() {
6163
5914
  super.connectedCallback();
6164
- const e = localStorage.getItem("crtPlayerVolume");
6165
- e && (this.volume = parseInt(e));
5915
+ const r = localStorage.getItem("crtPlayerVolume");
5916
+ r && (this.volume = parseInt(r));
6166
5917
  }
6167
5918
  firstUpdated() {
6168
5919
  this.audio && (this.audio.volume = this.volume / 100);
6169
5920
  }
6170
- updated(e) {
6171
- if (e.has("tracks") && this.tracks.length > 0 && ((e.get("tracks") === void 0 || e.get("tracks")?.length === 0) && this.loadTrack(0), this.autoplay && this.tracks.length > 0)) {
5921
+ updated(r) {
5922
+ if (r.has("tracks") && this.tracks.length > 0 && ((r.get("tracks") === void 0 || r.get("tracks")?.length === 0) && this.loadTrack(0), this.autoplay && this.tracks.length > 0)) {
6172
5923
  const t = Math.max(0, Number(this.autoplayDelay) || 0);
6173
5924
  setTimeout(() => {
6174
5925
  this.isPlaying || this.play();
6175
5926
  }, t);
6176
5927
  }
6177
5928
  }
6178
- loadTrack(e) {
6179
- if (e < 0 || e >= this.tracks.length) return;
6180
- const t = this.tracks[e];
5929
+ loadTrack(r) {
5930
+ if (r < 0 || r >= this.tracks.length) return;
5931
+ const t = this.tracks[r];
6181
5932
  if (!t?.url) {
6182
- this.currentIndex = e;
5933
+ this.currentIndex = r;
6183
5934
  return;
6184
5935
  }
6185
5936
  const a = this.isPlaying;
6186
- 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", {
6187
- detail: { index: e, track: this.tracks[e] }
5937
+ 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", {
5938
+ detail: { index: r, track: this.tracks[r] }
6188
5939
  }));
6189
5940
  }
6190
5941
  async play() {
@@ -6220,15 +5971,15 @@ let x = class extends h {
6220
5971
  this.visualizer?.audioContext?.resume?.();
6221
5972
  } catch {
6222
5973
  }
6223
- const e = this.audio.play();
6224
- e instanceof Promise && await e, this.autoplayMuted = !1, this.isPlaying = !0;
6225
- } catch (e) {
6226
- console.warn("Unmute / resume failed:", e);
5974
+ const r = this.audio.play();
5975
+ r instanceof Promise && await r, this.autoplayMuted = !1, this.isPlaying = !0;
5976
+ } catch (r) {
5977
+ console.warn("Unmute / resume failed:", r);
6227
5978
  }
6228
5979
  }
6229
- formatTime(e) {
6230
- if (!e || isNaN(e)) return "00:00";
6231
- const t = Math.floor(e / 60), a = Math.floor(e % 60);
5980
+ formatTime(r) {
5981
+ if (!r || isNaN(r)) return "00:00";
5982
+ const t = Math.floor(r / 60), a = Math.floor(r % 60);
6232
5983
  return `${t.toString().padStart(2, "0")}:${a.toString().padStart(2, "0")}`;
6233
5984
  }
6234
5985
  get currentTrack() {
@@ -6238,7 +5989,7 @@ let x = class extends h {
6238
5989
  return this.duration ? this.currentTime / this.duration * 100 : 0;
6239
5990
  }
6240
5991
  render() {
6241
- const e = this.tracks.length > 0 && this.currentTrack;
5992
+ const r = this.tracks.length > 0 && this.currentTrack;
6242
5993
  return l`
6243
5994
  <div class="player">
6244
5995
  <!-- Header -->
@@ -6246,7 +5997,7 @@ let x = class extends h {
6246
5997
  <crt-heading level="4" style="margin: 0;">[♫] MUSIC PLAYER [♫]</crt-heading>
6247
5998
  </div>
6248
5999
 
6249
- ${e ? l`
6000
+ ${r ? l`
6250
6001
  <!-- Visualizer -->
6251
6002
  <div class="visualizer-section">
6252
6003
  <crt-visualizer .bars="${20}"></crt-visualizer>
@@ -6322,7 +6073,7 @@ let x = class extends h {
6322
6073
  `;
6323
6074
  }
6324
6075
  };
6325
- x.styles = d`
6076
+ u.styles = c`
6326
6077
  :host {
6327
6078
  display: block;
6328
6079
  font-family: var(--crt-font-family);
@@ -6475,64 +6226,64 @@ x.styles = d`
6475
6226
  opacity: 0.5;
6476
6227
  }
6477
6228
  `;
6478
- $([
6229
+ y([
6479
6230
  n({ type: Array })
6480
- ], x.prototype, "tracks", 2);
6481
- $([
6231
+ ], u.prototype, "tracks", 2);
6232
+ y([
6482
6233
  n({ type: Number })
6483
- ], x.prototype, "currentIndex", 2);
6484
- $([
6234
+ ], u.prototype, "currentIndex", 2);
6235
+ y([
6485
6236
  n({ type: Boolean })
6486
- ], x.prototype, "autoplay", 2);
6487
- $([
6237
+ ], u.prototype, "autoplay", 2);
6238
+ y([
6488
6239
  n({ type: Number })
6489
- ], x.prototype, "autoplayDelay", 2);
6490
- $([
6491
- m()
6492
- ], x.prototype, "isPlaying", 2);
6493
- $([
6494
- m()
6495
- ], x.prototype, "currentTime", 2);
6496
- $([
6497
- m()
6498
- ], x.prototype, "duration", 2);
6499
- $([
6500
- m()
6501
- ], x.prototype, "volume", 2);
6502
- $([
6503
- m()
6504
- ], x.prototype, "autoplayMuted", 2);
6505
- $([
6506
- ee("audio")
6507
- ], x.prototype, "audio", 2);
6508
- $([
6509
- ee("crt-visualizer")
6510
- ], x.prototype, "visualizer", 2);
6511
- x = $([
6512
- u("crt-music-player")
6513
- ], x);
6514
- var da = Object.defineProperty, ha = Object.getOwnPropertyDescriptor, gt = (e, t, a, s) => {
6515
- for (var r = s > 1 ? void 0 : s ? ha(t, a) : t, i = e.length - 1, o; i >= 0; i--)
6516
- (o = e[i]) && (r = (s ? o(t, a, r) : o(r)) || r);
6517
- return s && r && da(t, a, r), r;
6240
+ ], u.prototype, "autoplayDelay", 2);
6241
+ y([
6242
+ v()
6243
+ ], u.prototype, "isPlaying", 2);
6244
+ y([
6245
+ v()
6246
+ ], u.prototype, "currentTime", 2);
6247
+ y([
6248
+ v()
6249
+ ], u.prototype, "duration", 2);
6250
+ y([
6251
+ v()
6252
+ ], u.prototype, "volume", 2);
6253
+ y([
6254
+ v()
6255
+ ], u.prototype, "autoplayMuted", 2);
6256
+ y([
6257
+ Tt("audio")
6258
+ ], u.prototype, "audio", 2);
6259
+ y([
6260
+ Tt("crt-visualizer")
6261
+ ], u.prototype, "visualizer", 2);
6262
+ u = y([
6263
+ d("crt-music-player")
6264
+ ], u);
6265
+ var ye = Object.defineProperty, xe = Object.getOwnPropertyDescriptor, st = (r, t, a, s) => {
6266
+ for (var e = s > 1 ? void 0 : s ? xe(t, a) : t, i = r.length - 1, o; i >= 0; i--)
6267
+ (o = r[i]) && (e = (s ? o(t, a, e) : o(e)) || e);
6268
+ return s && e && ye(t, a, e), e;
6518
6269
  };
6519
- let X = class extends h {
6270
+ let F = class extends p {
6520
6271
  constructor() {
6521
6272
  super(), this.rows = 10, this.prompt = "$", this.disabled = !1, this.outputs = [], this.input = "", this.handleFocus = () => {
6522
6273
  this.disabled || this.focus();
6523
- }, this.handleKeydown = (e) => {
6274
+ }, this.handleKeydown = (r) => {
6524
6275
  if (!this.disabled) {
6525
- if (e.key === "Backspace") {
6526
- e.preventDefault(), this.input = this.input.slice(0, -1), this.requestUpdate();
6276
+ if (r.key === "Backspace") {
6277
+ r.preventDefault(), this.input = this.input.slice(0, -1), this.requestUpdate();
6527
6278
  return;
6528
6279
  }
6529
- if (e.key === "Enter") {
6530
- e.preventDefault();
6280
+ if (r.key === "Enter") {
6281
+ r.preventDefault();
6531
6282
  const t = this.input.trim();
6532
6283
  this.println(`${this.prompt} ${t}`), this.dispatchEvent(new CustomEvent("command", { detail: t })), this.input = "", this.requestUpdate();
6533
6284
  return;
6534
6285
  }
6535
- e.key.length === 1 && !e.ctrlKey && !e.metaKey && (this.input += e.key, this.requestUpdate());
6286
+ r.key.length === 1 && !r.ctrlKey && !r.metaKey && (this.input += r.key, this.requestUpdate());
6536
6287
  }
6537
6288
  }, this.typing = !1, this.typeQueue = [], this.outputs = ["$ SYSTEM READY _"];
6538
6289
  }
@@ -6543,13 +6294,13 @@ let X = class extends h {
6543
6294
  this.removeEventListener("click", this.handleFocus), this.removeEventListener("keydown", this.handleKeydown), super.disconnectedCallback();
6544
6295
  }
6545
6296
  // Public API
6546
- write(e) {
6297
+ write(r) {
6547
6298
  this.outputs.length === 0 && (this.outputs = []);
6548
6299
  const t = this.outputs[this.outputs.length - 1] || "";
6549
- this.outputs[this.outputs.length - 1] = t + e, this.requestUpdate(), this.scrollToBottom();
6300
+ this.outputs[this.outputs.length - 1] = t + r, this.requestUpdate(), this.scrollToBottom();
6550
6301
  }
6551
- println(e) {
6552
- this.outputs = [...this.outputs, e], this.requestUpdate(), this.scrollToBottom();
6302
+ println(r) {
6303
+ this.outputs = [...this.outputs, r], this.requestUpdate(), this.scrollToBottom();
6553
6304
  }
6554
6305
  clear() {
6555
6306
  this.outputs = [], this.requestUpdate();
@@ -6559,39 +6310,39 @@ let X = class extends h {
6559
6310
  }
6560
6311
  scrollToBottom() {
6561
6312
  requestAnimationFrame(() => {
6562
- const e = this.shadowRoot?.querySelector(".term");
6563
- e && (e.scrollTop = e.scrollHeight);
6313
+ const r = this.shadowRoot?.querySelector(".term");
6314
+ r && (r.scrollTop = r.scrollHeight);
6564
6315
  });
6565
6316
  }
6566
- type(e, t = 30) {
6567
- this.typeQueue.push({ text: e, speed: t }), this.typing || this.processTypeQueue();
6317
+ type(r, t = 30) {
6318
+ this.typeQueue.push({ text: r, speed: t }), this.typing || this.processTypeQueue();
6568
6319
  }
6569
6320
  async processTypeQueue() {
6570
6321
  if (!this.typing) {
6571
6322
  for (this.typing = !0; this.typeQueue.length > 0; ) {
6572
- const { text: e, speed: t } = this.typeQueue.shift();
6323
+ const { text: r, speed: t } = this.typeQueue.shift();
6573
6324
  await new Promise((a) => {
6574
6325
  this.outputs = [...this.outputs, ""];
6575
6326
  let s = 0;
6576
- const r = () => {
6577
- if (s >= e.length) {
6327
+ const e = () => {
6328
+ if (s >= r.length) {
6578
6329
  a();
6579
6330
  return;
6580
6331
  }
6581
6332
  const i = this.outputs.length - 1;
6582
- this.outputs[i] = (this.outputs[i] || "") + e[s++], this.requestUpdate(), this.scrollToBottom(), setTimeout(r, t);
6333
+ this.outputs[i] = (this.outputs[i] || "") + r[s++], this.requestUpdate(), this.scrollToBottom(), setTimeout(e, t);
6583
6334
  };
6584
- r();
6335
+ e();
6585
6336
  });
6586
6337
  }
6587
6338
  this.typing = !1;
6588
6339
  }
6589
6340
  }
6590
6341
  render() {
6591
- const e = this.outputs.slice(-this.rows);
6342
+ const r = this.outputs.slice(-this.rows);
6592
6343
  return l`
6593
6344
  <div class="term" role="textbox" aria-label="Terminal" tabindex="0" aria-disabled="${this.disabled}">
6594
- ${e.map((t) => l`<div class="line">${t}</div>`)}
6345
+ ${r.map((t) => l`<div class="line">${t}</div>`)}
6595
6346
  <div class="line input-line">
6596
6347
  <span class="prompt">${this.prompt}</span>
6597
6348
  <div class="fake-input"><span class="input-text">${this.input}</span></div>
@@ -6601,7 +6352,7 @@ let X = class extends h {
6601
6352
  `;
6602
6353
  }
6603
6354
  };
6604
- X.styles = d`
6355
+ F.styles = c`
6605
6356
  :host { display: block; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, 'Roboto Mono', monospace; width: 100%; max-width: none; box-sizing: border-box; min-width: 0; }
6606
6357
  .term {
6607
6358
  width: 100%;
@@ -6641,38 +6392,38 @@ X.styles = d`
6641
6392
  .fake-input .input-text { display:inline-block; white-space:pre; }
6642
6393
  .muted { opacity: 0.7; font-size: 0.9em; }
6643
6394
  `;
6644
- gt([
6395
+ st([
6645
6396
  n({ type: Number })
6646
- ], X.prototype, "rows", 2);
6647
- gt([
6397
+ ], F.prototype, "rows", 2);
6398
+ st([
6648
6399
  n({ type: String })
6649
- ], X.prototype, "prompt", 2);
6650
- gt([
6400
+ ], F.prototype, "prompt", 2);
6401
+ st([
6651
6402
  n({ type: Boolean, reflect: !0 })
6652
- ], X.prototype, "disabled", 2);
6653
- gt([
6654
- m()
6655
- ], X.prototype, "outputs", 2);
6656
- gt([
6657
- m()
6658
- ], X.prototype, "input", 2);
6659
- X = gt([
6660
- u("crt-terminal")
6661
- ], X);
6662
- var ua = Object.defineProperty, va = Object.getOwnPropertyDescriptor, lt = (e, t, a, s) => {
6663
- for (var r = s > 1 ? void 0 : s ? va(t, a) : t, i = e.length - 1, o; i >= 0; i--)
6664
- (o = e[i]) && (r = (s ? o(t, a, r) : o(r)) || r);
6665
- return s && r && ua(t, a, r), r;
6403
+ ], F.prototype, "disabled", 2);
6404
+ st([
6405
+ v()
6406
+ ], F.prototype, "outputs", 2);
6407
+ st([
6408
+ v()
6409
+ ], F.prototype, "input", 2);
6410
+ F = st([
6411
+ d("crt-terminal")
6412
+ ], F);
6413
+ var we = Object.defineProperty, ke = Object.getOwnPropertyDescriptor, Z = (r, t, a, s) => {
6414
+ for (var e = s > 1 ? void 0 : s ? ke(t, a) : t, i = r.length - 1, o; i >= 0; i--)
6415
+ (o = r[i]) && (e = (s ? o(t, a, e) : o(e)) || e);
6416
+ return s && e && we(t, a, e), e;
6666
6417
  };
6667
- let I = class extends h {
6418
+ let j = class extends p {
6668
6419
  constructor() {
6669
- super(...arguments), this.autoplay = !1, this.autoplayDelay = 500, this.tracks = [], this.currentIndex = 0, this.showUploadModal = !1, this.handleFilesChanged = (e) => {
6670
- 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) => {
6671
- const r = s.name.replace(/\.[^/.]+$/, "");
6672
- let i = "UNKNOWN ARTIST", o = r.toUpperCase();
6673
- if (r.includes(" - ")) {
6674
- const c = r.split(" - ");
6675
- i = c[0].trim().toUpperCase(), o = c.slice(1).join(" - ").trim().toUpperCase();
6420
+ super(...arguments), this.autoplay = !1, this.autoplayDelay = 500, this.tracks = [], this.currentIndex = 0, this.showUploadModal = !1, this.handleFilesChanged = (r) => {
6421
+ 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) => {
6422
+ const e = s.name.replace(/\.[^/.]+$/, "");
6423
+ let i = "UNKNOWN ARTIST", o = e.toUpperCase();
6424
+ if (e.includes(" - ")) {
6425
+ const h = e.split(" - ");
6426
+ i = h[0].trim().toUpperCase(), o = h.slice(1).join(" - ").trim().toUpperCase();
6676
6427
  }
6677
6428
  return {
6678
6429
  title: o,
@@ -6681,13 +6432,13 @@ let I = class extends h {
6681
6432
  };
6682
6433
  });
6683
6434
  this.tracks = [...this.tracks, ...a];
6684
- }, this.handleTrackSelect = (e) => {
6685
- this.currentIndex = e.detail.index;
6686
- }, this.handleTrackRemove = (e) => {
6687
- const t = e.detail.index, a = this.tracks[t];
6688
- 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));
6689
- }, this.handleTrackChange = (e) => {
6690
- this.currentIndex = e.detail.index;
6435
+ }, this.handleTrackSelect = (r) => {
6436
+ this.currentIndex = r.detail.index;
6437
+ }, this.handleTrackRemove = (r) => {
6438
+ const t = r.detail.index, a = this.tracks[t];
6439
+ 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));
6440
+ }, this.handleTrackChange = (r) => {
6441
+ this.currentIndex = r.detail.index;
6691
6442
  }, this.openUploadModal = () => {
6692
6443
  this.showUploadModal = !0;
6693
6444
  }, this.closeUploadModal = () => {
@@ -6754,7 +6505,7 @@ let I = class extends h {
6754
6505
  `;
6755
6506
  }
6756
6507
  };
6757
- I.styles = d`
6508
+ j.styles = c`
6758
6509
  :host {
6759
6510
  display: block;
6760
6511
  font-family: var(--crt-font-family);
@@ -6827,67 +6578,67 @@ I.styles = d`
6827
6578
  padding-top: var(--crt-spacing-md);
6828
6579
  }
6829
6580
  `;
6830
- lt([
6581
+ Z([
6831
6582
  n({ type: Boolean })
6832
- ], I.prototype, "autoplay", 2);
6833
- lt([
6583
+ ], j.prototype, "autoplay", 2);
6584
+ Z([
6834
6585
  n({ type: Number })
6835
- ], I.prototype, "autoplayDelay", 2);
6836
- lt([
6837
- m()
6838
- ], I.prototype, "tracks", 2);
6839
- lt([
6840
- m()
6841
- ], I.prototype, "currentIndex", 2);
6842
- lt([
6843
- m()
6844
- ], I.prototype, "showUploadModal", 2);
6845
- lt([
6846
- ee("crt-file-upload")
6847
- ], I.prototype, "fileUpload", 2);
6848
- I = lt([
6849
- u("crt-music-station")
6850
- ], I);
6586
+ ], j.prototype, "autoplayDelay", 2);
6587
+ Z([
6588
+ v()
6589
+ ], j.prototype, "tracks", 2);
6590
+ Z([
6591
+ v()
6592
+ ], j.prototype, "currentIndex", 2);
6593
+ Z([
6594
+ v()
6595
+ ], j.prototype, "showUploadModal", 2);
6596
+ Z([
6597
+ Tt("crt-file-upload")
6598
+ ], j.prototype, "fileUpload", 2);
6599
+ j = Z([
6600
+ d("crt-music-station")
6601
+ ], j);
6851
6602
  export {
6852
- Yt as Accordion,
6853
- Pt as AccordionItem,
6854
- z as Alert,
6855
- j as Avatar,
6856
- Rt as AvatarGroup,
6857
- Bt as Badge,
6858
- $t as Breadcrumb,
6859
- C as Button,
6860
- w as Calendar,
6861
- Qt as Card,
6862
- Y as Checkbox,
6863
- W as CodeExample,
6864
- M as FileUpload,
6865
- Ct as Grid,
6866
- Nt as Heading,
6867
- wt as Icon,
6868
- J as Input,
6869
- H as Link,
6870
- ht as Modal,
6871
- x as MusicPlayer,
6872
- I as MusicStation,
6873
- rt as Pagination,
6874
- Ot as Playlist,
6875
- k as Progress,
6876
- V as Radio,
6877
- dt as RadioGroup,
6878
- D as Select,
6879
- q as Skeleton,
6880
- Ht as SkeletonCard,
6881
- Ft as SkeletonText,
6882
- _ as Slider,
6883
- _t as Spinner,
6884
- zt as Table,
6885
- kt as Tabs,
6886
- X as Terminal,
6887
- Ut as Text,
6888
- tt as Textarea,
6889
- L as Toast,
6890
- T as Toggle,
6891
- et as Tooltip,
6892
- at as Visualizer
6603
+ Pt as Accordion,
6604
+ vt as AccordionItem,
6605
+ w as Alert,
6606
+ D as Avatar,
6607
+ _t as AvatarGroup,
6608
+ wt as Badge,
6609
+ ct as Breadcrumb,
6610
+ k as Button,
6611
+ b as Calendar,
6612
+ Dt as Card,
6613
+ B as Checkbox,
6614
+ R as CodeExample,
6615
+ O as FileUpload,
6616
+ ht as Grid,
6617
+ kt as Heading,
6618
+ nt as Icon,
6619
+ V as Input,
6620
+ I as Link,
6621
+ rt as Modal,
6622
+ u as MusicPlayer,
6623
+ j as MusicStation,
6624
+ X as Pagination,
6625
+ gt as Playlist,
6626
+ f as Progress,
6627
+ U as Radio,
6628
+ tt as RadioGroup,
6629
+ S as Select,
6630
+ N as Skeleton,
6631
+ Ct as SkeletonCard,
6632
+ zt as SkeletonText,
6633
+ x as Slider,
6634
+ pt as Spinner,
6635
+ dt as Table,
6636
+ lt as Tabs,
6637
+ F as Terminal,
6638
+ $t as Text,
6639
+ q as Textarea,
6640
+ M as Toast,
6641
+ E as Toggle,
6642
+ H as Tooltip,
6643
+ K as Visualizer
6893
6644
  };