@patimweb/crtstyleguide 1.0.11 → 1.0.13

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 +609 -504
  2. package/package.json +3 -2
package/dist/lib/index.js CHANGED
@@ -5,7 +5,7 @@ const v = (e) => (t, a) => {
5
5
  }) : customElements.define(e, t);
6
6
  };
7
7
  const Tt = globalThis, Jt = Tt.ShadowRoot && (Tt.ShadyCSS === void 0 || Tt.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, ke = /* @__PURE__ */ Symbol(), de = /* @__PURE__ */ new WeakMap();
8
- let Pe = class {
8
+ let Oe = class {
9
9
  constructor(t, a, s) {
10
10
  if (this._$cssResult$ = !0, s !== ke) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
11
11
  this.cssText = t, this.t = a;
@@ -23,7 +23,7 @@ let Pe = class {
23
23
  return this.cssText;
24
24
  }
25
25
  };
26
- const Ae = (e) => new Pe(typeof e == "string" ? e : e + "", void 0, ke), Se = (e, t) => {
26
+ const Ae = (e) => new Oe(typeof e == "string" ? e : e + "", void 0, ke), Se = (e, t) => {
27
27
  if (Jt) e.adoptedStyleSheets = t.map((a) => a instanceof CSSStyleSheet ? a : a.styleSheet);
28
28
  else for (const a of t) {
29
29
  const s = document.createElement("style"), r = Tt.litNonce;
@@ -34,7 +34,7 @@ const Ae = (e) => new Pe(typeof e == "string" ? e : e + "", void 0, ke), Se = (e
34
34
  for (const s of t.cssRules) a += s.cssText;
35
35
  return Ae(a);
36
36
  })(e) : e;
37
- const { is: Ee, defineProperty: De, getOwnPropertyDescriptor: Me, getOwnPropertyNames: Te, getOwnPropertySymbols: je, getPrototypeOf: Le } = Object, Vt = globalThis, ve = Vt.trustedTypes, Ie = ve ? ve.emptyScript : "", Be = Vt.reactiveElementPolyfillSupport, ft = (e, t) => e, jt = { toAttribute(e, t) {
37
+ const { is: Ee, defineProperty: Me, getOwnPropertyDescriptor: De, getOwnPropertyNames: Te, getOwnPropertySymbols: je, getPrototypeOf: Le } = Object, Vt = globalThis, ve = Vt.trustedTypes, Ie = ve ? ve.emptyScript : "", Be = Vt.reactiveElementPolyfillSupport, bt = (e, t) => e, jt = { toAttribute(e, t) {
38
38
  switch (t) {
39
39
  case Boolean:
40
40
  e = e ? Ie : null;
@@ -62,23 +62,23 @@ const { is: Ee, defineProperty: De, getOwnPropertyDescriptor: Me, getOwnProperty
62
62
  }
63
63
  }
64
64
  return a;
65
- } }, te = (e, t) => !Ee(e, t), ge = { attribute: !0, type: String, converter: jt, reflect: !1, useDefault: !1, hasChanged: te };
65
+ } }, te = (e, t) => !Ee(e, t), ue = { attribute: !0, type: String, converter: jt, reflect: !1, useDefault: !1, hasChanged: te };
66
66
  Symbol.metadata ??= /* @__PURE__ */ Symbol("metadata"), Vt.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap();
67
- let ut = class extends HTMLElement {
67
+ let mt = class extends HTMLElement {
68
68
  static addInitializer(t) {
69
69
  this._$Ei(), (this.l ??= []).push(t);
70
70
  }
71
71
  static get observedAttributes() {
72
72
  return this.finalize(), this._$Eh && [...this._$Eh.keys()];
73
73
  }
74
- static createProperty(t, a = ge) {
74
+ static createProperty(t, a = ue) {
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
76
  const s = /* @__PURE__ */ Symbol(), r = this.getPropertyDescriptor(t, s, a);
77
- r !== void 0 && De(this.prototype, t, r);
77
+ r !== void 0 && Me(this.prototype, t, r);
78
78
  }
79
79
  }
80
80
  static getPropertyDescriptor(t, a, s) {
81
- const { get: r, set: i } = Me(this.prototype, t) ?? { get() {
81
+ const { get: r, set: i } = De(this.prototype, t) ?? { get() {
82
82
  return this[a];
83
83
  }, set(o) {
84
84
  this[a] = o;
@@ -89,16 +89,16 @@ let ut = class extends HTMLElement {
89
89
  }, configurable: !0, enumerable: !0 };
90
90
  }
91
91
  static getPropertyOptions(t) {
92
- return this.elementProperties.get(t) ?? ge;
92
+ return this.elementProperties.get(t) ?? ue;
93
93
  }
94
94
  static _$Ei() {
95
- if (this.hasOwnProperty(ft("elementProperties"))) return;
95
+ if (this.hasOwnProperty(bt("elementProperties"))) return;
96
96
  const t = Le(this);
97
97
  t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
98
98
  }
99
99
  static finalize() {
100
- if (this.hasOwnProperty(ft("finalized"))) return;
101
- if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(ft("properties"))) {
100
+ if (this.hasOwnProperty(bt("finalized"))) return;
101
+ if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(bt("properties"))) {
102
102
  const a = this.properties, s = [...Te(a), ...je(a)];
103
103
  for (const r of s) this.createProperty(r, a[r]);
104
104
  }
@@ -245,7 +245,7 @@ let ut = class extends HTMLElement {
245
245
  firstUpdated(t) {
246
246
  }
247
247
  };
248
- ut.elementStyles = [], ut.shadowRootOptions = { mode: "open" }, ut[ft("elementProperties")] = /* @__PURE__ */ new Map(), ut[ft("finalized")] = /* @__PURE__ */ new Map(), Be?.({ ReactiveElement: ut }), (Vt.reactiveElementVersions ??= []).push("2.1.2");
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
249
  const Ne = { attribute: !0, type: String, converter: jt, reflect: !1, hasChanged: te }, Ue = (e = Ne, t, a) => {
250
250
  const { kind: s, metadata: r } = a;
251
251
  let i = globalThis.litPropertyMetadata.get(r);
@@ -285,67 +285,67 @@ function ee(e, t) {
285
285
  } });
286
286
  };
287
287
  }
288
- const re = globalThis, ue = (e) => e, Lt = re.trustedTypes, me = Lt ? Lt.createPolicy("lit-html", { createHTML: (e) => e }) : void 0, $e = "$lit$", R = `lit$${Math.random().toFixed(9).slice(2)}$`, _e = "?" + R, Fe = `<${_e}>`, Z = document, It = () => Z.createComment(""), bt = (e) => e === null || typeof e != "object" && typeof e != "function", ae = Array.isArray, He = (e) => ae(e) || typeof e?.[Symbol.iterator] == "function", Gt = `[
289
- \f\r]`, mt = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, fe = /-->/g, be = />/g, K = RegExp(`>|${Gt}(?:([^\\s"'>=/]+)(${Gt}*=${Gt}*(?:[^
290
- \f\r"'\`<>=]|("|')|))|$)`, "g"), ye = /'/g, xe = /"/g, ze = /^(?:script|style|textarea|title)$/i, lt = /* @__PURE__ */ Symbol.for("lit-noChange"), f = /* @__PURE__ */ Symbol.for("lit-nothing"), we = /* @__PURE__ */ new WeakMap(), G = Z.createTreeWalker(Z, 129);
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
291
  function Ce(e, t) {
292
292
  if (!ae(e) || !e.hasOwnProperty("raw")) throw Error("invalid template strings array");
293
293
  return me !== void 0 ? me.createHTML(t) : t;
294
294
  }
295
295
  const Ye = (e, t) => {
296
296
  const a = e.length - 1, s = [];
297
- let r, i = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", o = mt;
297
+ let r, i = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", o = ft;
298
298
  for (let c = 0; c < a; c++) {
299
299
  const p = e[c];
300
- let g, b, u = -1, S = 0;
301
- for (; S < p.length && (o.lastIndex = S, b = o.exec(p), b !== null); ) S = o.lastIndex, o === mt ? b[1] === "!--" ? o = fe : b[1] !== void 0 ? o = be : b[2] !== void 0 ? (ze.test(b[2]) && (r = RegExp("</" + b[2], "g")), o = K) : b[3] !== void 0 && (o = K) : o === K ? b[0] === ">" ? (o = r ?? mt, u = -1) : b[1] === void 0 ? u = -2 : (u = o.lastIndex - b[2].length, g = b[1], o = b[3] === void 0 ? K : b[3] === '"' ? xe : ye) : o === xe || o === ye ? o = K : o === fe || o === be ? o = mt : (o = K, r = void 0);
302
- const U = o === K && e[c + 1].startsWith("/>") ? " " : "";
303
- i += o === mt ? p + Fe : u >= 0 ? (s.push(g), p.slice(0, u) + $e + p.slice(u) + R + U) : p + R + (u === -2 ? c : U);
300
+ let u, 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, u = 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(u), p.slice(0, g) + $e + p.slice(g) + F + R) : p + F + (g === -2 ? c : R);
304
304
  }
305
305
  return [Ce(e, i + (e[a] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), s];
306
306
  };
307
- class yt {
307
+ class xt {
308
308
  constructor({ strings: t, _$litType$: a }, s) {
309
309
  let r;
310
310
  this.parts = [];
311
311
  let i = 0, o = 0;
312
- const c = t.length - 1, p = this.parts, [g, b] = Ye(t, a);
313
- if (this.el = yt.createElement(g, s), G.currentNode = this.el.content, a === 2 || a === 3) {
314
- const u = this.el.content.firstChild;
315
- u.replaceWith(...u.childNodes);
312
+ const c = t.length - 1, p = this.parts, [u, b] = Ye(t, a);
313
+ if (this.el = xt.createElement(u, s), Z.currentNode = this.el.content, a === 2 || a === 3) {
314
+ const g = this.el.content.firstChild;
315
+ g.replaceWith(...g.childNodes);
316
316
  }
317
- for (; (r = G.nextNode()) !== null && p.length < c; ) {
317
+ for (; (r = Z.nextNode()) !== null && p.length < c; ) {
318
318
  if (r.nodeType === 1) {
319
- if (r.hasAttributes()) for (const u of r.getAttributeNames()) if (u.endsWith($e)) {
320
- const S = b[o++], U = r.getAttribute(u).split(R), Mt = /([.?@])?(.*)/.exec(S);
321
- p.push({ type: 1, index: i, name: Mt[2], strings: U, ctor: Mt[1] === "." ? qe : Mt[1] === "?" ? We : Mt[1] === "@" ? Xe : Wt }), r.removeAttribute(u);
322
- } else u.startsWith(R) && (p.push({ type: 6, index: i }), r.removeAttribute(u));
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
323
  if (ze.test(r.tagName)) {
324
- const u = r.textContent.split(R), S = u.length - 1;
325
- if (S > 0) {
324
+ const g = r.textContent.split(F), E = g.length - 1;
325
+ if (E > 0) {
326
326
  r.textContent = Lt ? Lt.emptyScript : "";
327
- for (let U = 0; U < S; U++) r.append(u[U], It()), G.nextNode(), p.push({ type: 2, index: ++i });
328
- r.append(u[S], It());
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
329
  }
330
330
  }
331
331
  } else if (r.nodeType === 8) if (r.data === _e) p.push({ type: 2, index: i });
332
332
  else {
333
- let u = -1;
334
- for (; (u = r.data.indexOf(R, u + 1)) !== -1; ) p.push({ type: 7, index: i }), u += R.length - 1;
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
335
  }
336
336
  i++;
337
337
  }
338
338
  }
339
339
  static createElement(t, a) {
340
- const s = Z.createElement("template");
340
+ const s = Q.createElement("template");
341
341
  return s.innerHTML = t, s;
342
342
  }
343
343
  }
344
- function ct(e, t, a = e, s) {
345
- if (t === lt) return t;
344
+ function pt(e, t, a = e, s) {
345
+ if (t === ct) return t;
346
346
  let r = s !== void 0 ? a._$Co?.[s] : a._$Cl;
347
- const i = bt(t) ? void 0 : t._$litDirective$;
348
- return r?.constructor !== i && (r?._$AO?.(!1), i === void 0 ? r = void 0 : (r = new i(e), r._$AT(e, a, s)), s !== void 0 ? (a._$Co ??= [])[s] = r : a._$Cl = r), r !== void 0 && (t = ct(e, r._$AS(e, t.values), r, s)), t;
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
349
  }
350
350
  class Ve {
351
351
  constructor(t, a) {
@@ -358,17 +358,17 @@ class Ve {
358
358
  return this._$AM._$AU;
359
359
  }
360
360
  u(t) {
361
- const { el: { content: a }, parts: s } = this._$AD, r = (t?.creationScope ?? Z).importNode(a, !0);
362
- G.currentNode = r;
363
- let i = G.nextNode(), o = 0, c = 0, p = s[0];
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
364
  for (; p !== void 0; ) {
365
365
  if (o === p.index) {
366
- let g;
367
- p.type === 2 ? g = new qt(i, i.nextSibling, this, t) : p.type === 1 ? g = new p.ctor(i, p.name, p.strings, this, t) : p.type === 6 && (g = new Ke(i, this, t)), this._$AV.push(g), p = s[++c];
366
+ let u;
367
+ p.type === 2 ? u = new qt(i, i.nextSibling, this, t) : p.type === 1 ? u = new p.ctor(i, p.name, p.strings, this, t) : p.type === 6 && (u = new Ke(i, this, t)), this._$AV.push(u), p = s[++c];
368
368
  }
369
- o !== p?.index && (i = G.nextNode(), o++);
369
+ o !== p?.index && (i = Z.nextNode(), o++);
370
370
  }
371
- return G.currentNode = Z, r;
371
+ return Z.currentNode = Q, r;
372
372
  }
373
373
  p(t) {
374
374
  let a = 0;
@@ -394,7 +394,7 @@ class qt {
394
394
  return this._$AB;
395
395
  }
396
396
  _$AI(t, a = this) {
397
- t = ct(this, t, a), bt(t) ? t === f || t == null || t === "" ? (this._$AH !== f && this._$AR(), this._$AH = f) : t !== this._$AH && t !== lt && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : He(t) ? this.k(t) : this._(t);
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
398
  }
399
399
  O(t) {
400
400
  return this._$AA.parentNode.insertBefore(t, this._$AB);
@@ -403,10 +403,10 @@ class qt {
403
403
  this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
404
404
  }
405
405
  _(t) {
406
- this._$AH !== f && bt(this._$AH) ? this._$AA.nextSibling.data = t : this.T(Z.createTextNode(t)), this._$AH = t;
406
+ this._$AH !== f && yt(this._$AH) ? this._$AA.nextSibling.data = t : this.T(Q.createTextNode(t)), this._$AH = t;
407
407
  }
408
408
  $(t) {
409
- const { values: a, _$litType$: s } = t, r = typeof s == "number" ? this._$AC(t) : (s.el === void 0 && (s.el = yt.createElement(Ce(s.h, s.h[0]), this.options)), s);
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
410
  if (this._$AH?._$AD === r) this._$AH.p(a);
411
411
  else {
412
412
  const i = new Ve(r, this), o = i.u(this.options);
@@ -415,7 +415,7 @@ class qt {
415
415
  }
416
416
  _$AC(t) {
417
417
  let a = we.get(t.strings);
418
- return a === void 0 && we.set(t.strings, a = new yt(t)), a;
418
+ return a === void 0 && we.set(t.strings, a = new xt(t)), a;
419
419
  }
420
420
  k(t) {
421
421
  ae(this._$AH) || (this._$AH = [], this._$AR());
@@ -426,8 +426,8 @@ class qt {
426
426
  }
427
427
  _$AR(t = this._$AA.nextSibling, a) {
428
428
  for (this._$AP?.(!1, !0, a); t !== this._$AB; ) {
429
- const s = ue(t).nextSibling;
430
- ue(t).remove(), t = s;
429
+ const s = ge(t).nextSibling;
430
+ ge(t).remove(), t = s;
431
431
  }
432
432
  }
433
433
  setConnected(t) {
@@ -447,11 +447,11 @@ class Wt {
447
447
  _$AI(t, a = this, s, r) {
448
448
  const i = this.strings;
449
449
  let o = !1;
450
- if (i === void 0) t = ct(this, t, a, 0), o = !bt(t) || t !== this._$AH && t !== lt, o && (this._$AH = t);
450
+ if (i === void 0) t = pt(this, t, a, 0), o = !yt(t) || t !== this._$AH && t !== ct, o && (this._$AH = t);
451
451
  else {
452
452
  const c = t;
453
- let p, g;
454
- for (t = i[0], p = 0; p < i.length - 1; p++) g = ct(this, c[s + p], a, p), g === lt && (g = this._$AH[p]), o ||= !bt(g) || g !== this._$AH[p], g === f ? t = f : t !== f && (t += (g ?? "") + i[p + 1]), this._$AH[p] = g;
453
+ let p, u;
454
+ for (t = i[0], p = 0; p < i.length - 1; p++) u = pt(this, c[s + p], a, p), u === ct && (u = this._$AH[p]), o ||= !yt(u) || u !== this._$AH[p], u === f ? t = f : t !== f && (t += (u ?? "") + i[p + 1]), this._$AH[p] = u;
455
455
  }
456
456
  o && !r && this.j(t);
457
457
  }
@@ -480,7 +480,7 @@ class Xe extends Wt {
480
480
  super(t, a, s, r, i), this.type = 5;
481
481
  }
482
482
  _$AI(t, a = this) {
483
- if ((t = ct(this, t, a, 0) ?? f) === lt) return;
483
+ if ((t = pt(this, t, a, 0) ?? f) === ct) return;
484
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
485
  r && this.element.removeEventListener(this.name, this, s), i && this.element.addEventListener(this.name, this, t), this._$AH = t;
486
486
  }
@@ -496,11 +496,11 @@ class Ke {
496
496
  return this._$AM._$AU;
497
497
  }
498
498
  _$AI(t) {
499
- ct(this, t);
499
+ pt(this, t);
500
500
  }
501
501
  }
502
502
  const Ge = re.litHtmlPolyfillSupport;
503
- Ge?.(yt, qt), (re.litHtmlVersions ??= []).push("3.3.2");
503
+ Ge?.(xt, qt), (re.litHtmlVersions ??= []).push("3.3.2");
504
504
  const Ze = { CHILD: 2 }, Qe = (e) => (...t) => ({ _$litDirective$: e, values: t });
505
505
  class Je {
506
506
  constructor(t) {
@@ -524,7 +524,7 @@ class Zt extends Je {
524
524
  }
525
525
  render(t) {
526
526
  if (t === f || t == null) return this._t = void 0, this.it = t;
527
- if (t === lt) return t;
527
+ if (t === ct) return t;
528
528
  if (typeof t != "string") throw Error(this.constructor.directiveName + "() called with a non-string value");
529
529
  if (t === this.it) return this._t;
530
530
  this.it = t;
@@ -577,7 +577,7 @@ const ar = {
577
577
  "volume-mute": '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><polygon points="11 5 6 9 2 9 2 15 6 15 11 19 11 5"/><line x1="23" y1="9" x2="17" y2="15"/></svg>',
578
578
  music: '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><path d="M9 18V5l12-2v13"/><circle cx="6" cy="18" r="3"/><circle cx="18" cy="16" r="3"/></svg>'
579
579
  };
580
- let xt = class extends h {
580
+ let wt = class extends h {
581
581
  constructor() {
582
582
  super(...arguments), this.name = "", this.size = "md";
583
583
  }
@@ -586,7 +586,7 @@ let xt = class extends h {
586
586
  return l`<span class="icon" aria-hidden="true">${tr(e)}</span>`;
587
587
  }
588
588
  };
589
- xt.styles = d`
589
+ wt.styles = d`
590
590
  :host {
591
591
  display: inline-flex;
592
592
  align-items: center;
@@ -605,19 +605,19 @@ xt.styles = d`
605
605
  `;
606
606
  se([
607
607
  n()
608
- ], xt.prototype, "name", 2);
608
+ ], wt.prototype, "name", 2);
609
609
  se([
610
610
  n()
611
- ], xt.prototype, "size", 2);
612
- xt = se([
611
+ ], wt.prototype, "size", 2);
612
+ wt = se([
613
613
  v("crt-icon")
614
- ], xt);
615
- var sr = Object.defineProperty, ir = Object.getOwnPropertyDescriptor, X = (e, t, a, s) => {
614
+ ], wt);
615
+ var sr = Object.defineProperty, ir = Object.getOwnPropertyDescriptor, K = (e, t, a, s) => {
616
616
  for (var r = s > 1 ? void 0 : s ? ir(t, a) : t, i = e.length - 1, o; i >= 0; i--)
617
617
  (o = e[i]) && (r = (s ? o(t, a, r) : o(r)) || r);
618
618
  return s && r && sr(t, a, r), r;
619
619
  };
620
- let z = class extends h {
620
+ let C = class extends h {
621
621
  constructor() {
622
622
  super(), this.size = "medium", this.variant = "primary", this.disabled = !1, this.type = "button", this.iconOnly = !1, this.iconLeft = "", this.iconRight = "", console.log("Button constructor called");
623
623
  }
@@ -642,7 +642,7 @@ let z = class extends h {
642
642
  `;
643
643
  }
644
644
  };
645
- z.styles = d`
645
+ C.styles = d`
646
646
  :host {
647
647
  display: inline-block;
648
648
  }
@@ -798,31 +798,31 @@ z.styles = d`
798
798
  flex-shrink: 0;
799
799
  }
800
800
  `;
801
- X([
801
+ K([
802
802
  n({ reflect: !0 })
803
- ], z.prototype, "size", 2);
804
- X([
803
+ ], C.prototype, "size", 2);
804
+ K([
805
805
  n({ reflect: !0 })
806
- ], z.prototype, "variant", 2);
807
- X([
806
+ ], C.prototype, "variant", 2);
807
+ K([
808
808
  n({ type: Boolean })
809
- ], z.prototype, "disabled", 2);
810
- X([
809
+ ], C.prototype, "disabled", 2);
810
+ K([
811
811
  n()
812
- ], z.prototype, "type", 2);
813
- X([
812
+ ], C.prototype, "type", 2);
813
+ K([
814
814
  n({ attribute: "icon-only", type: Boolean })
815
- ], z.prototype, "iconOnly", 2);
816
- X([
815
+ ], C.prototype, "iconOnly", 2);
816
+ K([
817
817
  n({ attribute: "icon-left" })
818
- ], z.prototype, "iconLeft", 2);
819
- X([
818
+ ], C.prototype, "iconLeft", 2);
819
+ K([
820
820
  n({ attribute: "icon-right" })
821
- ], z.prototype, "iconRight", 2);
822
- z = X([
821
+ ], C.prototype, "iconRight", 2);
822
+ C = K([
823
823
  v("crt-button")
824
- ], z);
825
- var or = Object.defineProperty, nr = Object.getOwnPropertyDescriptor, Oe = (e, t, a, s) => {
824
+ ], C);
825
+ var or = Object.defineProperty, nr = Object.getOwnPropertyDescriptor, Pe = (e, t, a, s) => {
826
826
  for (var r = s > 1 ? void 0 : s ? nr(t, a) : t, i = e.length - 1, o; i >= 0; i--)
827
827
  (o = e[i]) && (r = (s ? o(t, a, r) : o(r)) || r);
828
828
  return s && r && or(t, a, r), r;
@@ -876,10 +876,10 @@ Bt.styles = d`
876
876
  --badge-border: 1px solid var(--crt-info);
877
877
  }
878
878
  `;
879
- Oe([
879
+ Pe([
880
880
  n()
881
881
  ], Bt.prototype, "variant", 2);
882
- Bt = Oe([
882
+ Bt = Pe([
883
883
  v("crt-badge")
884
884
  ], Bt);
885
885
  var lr = Object.defineProperty, cr = Object.getOwnPropertyDescriptor, Xt = (e, t, a, s) => {
@@ -976,7 +976,7 @@ var pr = Object.defineProperty, dr = Object.getOwnPropertyDescriptor, ie = (e, t
976
976
  (o = e[i]) && (r = (s ? o(t, a, r) : o(r)) || r);
977
977
  return s && r && pr(t, a, r), r;
978
978
  };
979
- let wt = class extends h {
979
+ let kt = class extends h {
980
980
  constructor() {
981
981
  super(...arguments), this.activeTab = 0, this.tabs = [];
982
982
  }
@@ -1009,7 +1009,7 @@ let wt = class extends h {
1009
1009
  `;
1010
1010
  }
1011
1011
  };
1012
- wt.styles = d`
1012
+ kt.styles = d`
1013
1013
  :host {
1014
1014
  display: block;
1015
1015
  }
@@ -1078,23 +1078,23 @@ wt.styles = d`
1078
1078
  `;
1079
1079
  ie([
1080
1080
  m()
1081
- ], wt.prototype, "activeTab", 2);
1081
+ ], kt.prototype, "activeTab", 2);
1082
1082
  ie([
1083
1083
  n({ type: Array })
1084
- ], wt.prototype, "tabs", 2);
1085
- wt = ie([
1084
+ ], kt.prototype, "tabs", 2);
1085
+ kt = ie([
1086
1086
  v("crt-tabs")
1087
- ], wt);
1087
+ ], kt);
1088
1088
  function hr(e) {
1089
1089
  const t = document.createElement("div");
1090
1090
  return t.innerHTML = e, t;
1091
1091
  }
1092
- var vr = Object.defineProperty, gr = Object.getOwnPropertyDescriptor, C = (e, t, a, s) => {
1093
- for (var r = s > 1 ? void 0 : s ? gr(t, a) : t, i = e.length - 1, o; i >= 0; i--)
1092
+ var vr = Object.defineProperty, ur = Object.getOwnPropertyDescriptor, P = (e, t, a, s) => {
1093
+ for (var r = s > 1 ? void 0 : s ? ur(t, a) : t, i = e.length - 1, o; i >= 0; i--)
1094
1094
  (o = e[i]) && (r = (s ? o(t, a, r) : o(r)) || r);
1095
1095
  return s && r && vr(t, a, r), r;
1096
1096
  };
1097
- let Q = class extends h {
1097
+ let J = class extends h {
1098
1098
  constructor() {
1099
1099
  super(...arguments), this.type = "text", this.placeholder = "", this.value = "", this.disabled = !1;
1100
1100
  }
@@ -1112,7 +1112,7 @@ let Q = class extends h {
1112
1112
  `;
1113
1113
  }
1114
1114
  };
1115
- Q.styles = d`
1115
+ J.styles = d`
1116
1116
  :host {
1117
1117
  display: block;
1118
1118
  }
@@ -1158,41 +1158,40 @@ Q.styles = d`
1158
1158
  padding-right: var(--crt-spacing-lg);
1159
1159
  }
1160
1160
  `;
1161
- C([
1161
+ P([
1162
1162
  n()
1163
- ], Q.prototype, "type", 2);
1164
- C([
1163
+ ], J.prototype, "type", 2);
1164
+ P([
1165
1165
  n()
1166
- ], Q.prototype, "placeholder", 2);
1167
- C([
1166
+ ], J.prototype, "placeholder", 2);
1167
+ P([
1168
1168
  n()
1169
- ], Q.prototype, "value", 2);
1170
- C([
1169
+ ], J.prototype, "value", 2);
1170
+ P([
1171
1171
  n()
1172
- ], Q.prototype, "disabled", 2);
1173
- Q = C([
1172
+ ], J.prototype, "disabled", 2);
1173
+ J = P([
1174
1174
  v("crt-input")
1175
- ], Q);
1176
- let J = class extends h {
1175
+ ], J);
1176
+ let tt = class extends h {
1177
1177
  constructor() {
1178
1178
  super(...arguments), this.placeholder = "", this.value = "", this.disabled = !1, this.rows = 4;
1179
1179
  }
1180
1180
  render() {
1181
1181
  return l`
1182
1182
  <textarea
1183
+ .value=${this.value}
1183
1184
  placeholder="${this.placeholder}"
1184
1185
  rows="${this.rows}"
1185
1186
  ?disabled="${this.disabled}"
1186
1187
  @input="${(e) => {
1187
1188
  this.value = e.target.value;
1188
1189
  }}"
1189
- >
1190
- ${this.value}</textarea
1191
- >
1190
+ ></textarea>
1192
1191
  `;
1193
1192
  }
1194
1193
  };
1195
- J.styles = d`
1194
+ tt.styles = d`
1196
1195
  :host {
1197
1196
  display: block;
1198
1197
  }
@@ -1234,27 +1233,27 @@ J.styles = d`
1234
1233
  border-style: dashed;
1235
1234
  }
1236
1235
  `;
1237
- C([
1236
+ P([
1238
1237
  n()
1239
- ], J.prototype, "placeholder", 2);
1240
- C([
1238
+ ], tt.prototype, "placeholder", 2);
1239
+ P([
1241
1240
  n()
1242
- ], J.prototype, "value", 2);
1243
- C([
1241
+ ], tt.prototype, "value", 2);
1242
+ P([
1244
1243
  n()
1245
- ], J.prototype, "disabled", 2);
1246
- C([
1244
+ ], tt.prototype, "disabled", 2);
1245
+ P([
1247
1246
  n()
1248
- ], J.prototype, "rows", 2);
1249
- J = C([
1247
+ ], tt.prototype, "rows", 2);
1248
+ tt = P([
1250
1249
  v("crt-textarea")
1251
- ], J);
1252
- var ur = Object.defineProperty, mr = Object.getOwnPropertyDescriptor, ht = (e, t, a, s) => {
1250
+ ], tt);
1251
+ var gr = Object.defineProperty, mr = Object.getOwnPropertyDescriptor, vt = (e, t, a, s) => {
1253
1252
  for (var r = s > 1 ? void 0 : s ? mr(t, a) : t, i = e.length - 1, o; i >= 0; i--)
1254
1253
  (o = e[i]) && (r = (s ? o(t, a, r) : o(r)) || r);
1255
- return s && r && ur(t, a, r), r;
1254
+ return s && r && gr(t, a, r), r;
1256
1255
  };
1257
- let F = class extends h {
1256
+ let H = class extends h {
1258
1257
  constructor() {
1259
1258
  super(...arguments), this.href = "#", this.target = "", this.iconLeft = !1, this.iconRight = !1, this.icon = "";
1260
1259
  }
@@ -1268,7 +1267,7 @@ let F = class extends h {
1268
1267
  `;
1269
1268
  }
1270
1269
  };
1271
- F.styles = d`
1270
+ H.styles = d`
1272
1271
  :host {
1273
1272
  --crt-link-color: var(--crt-primary);
1274
1273
  }
@@ -1294,30 +1293,30 @@ F.styles = d`
1294
1293
  color: var(--crt-primary-dark);
1295
1294
  }
1296
1295
  `;
1297
- ht([
1296
+ vt([
1298
1297
  n({ type: String })
1299
- ], F.prototype, "href", 2);
1300
- ht([
1298
+ ], H.prototype, "href", 2);
1299
+ vt([
1301
1300
  n({ type: String })
1302
- ], F.prototype, "target", 2);
1303
- ht([
1301
+ ], H.prototype, "target", 2);
1302
+ vt([
1304
1303
  n({ type: Boolean })
1305
- ], F.prototype, "iconLeft", 2);
1306
- ht([
1304
+ ], H.prototype, "iconLeft", 2);
1305
+ vt([
1307
1306
  n({ type: Boolean })
1308
- ], F.prototype, "iconRight", 2);
1309
- ht([
1307
+ ], H.prototype, "iconRight", 2);
1308
+ vt([
1310
1309
  n({ type: String })
1311
- ], F.prototype, "icon", 2);
1312
- F = ht([
1310
+ ], H.prototype, "icon", 2);
1311
+ H = vt([
1313
1312
  v("crt-link")
1314
- ], F);
1313
+ ], H);
1315
1314
  var fr = Object.defineProperty, br = Object.getOwnPropertyDescriptor, st = (e, t, a, s) => {
1316
1315
  for (var r = s > 1 ? void 0 : s ? br(t, a) : t, i = e.length - 1, o; i >= 0; i--)
1317
1316
  (o = e[i]) && (r = (s ? o(t, a, r) : o(r)) || r);
1318
1317
  return s && r && fr(t, a, r), r;
1319
1318
  };
1320
- let E = class extends h {
1319
+ let M = class extends h {
1321
1320
  constructor() {
1322
1321
  super(...arguments), this.accept = "", this.multiple = !0, this.name = "", this.maxSize = 10485760, this.maxFiles = 10, this.files = [], this._handleFileSelect = (e) => {
1323
1322
  const t = e.target;
@@ -1348,8 +1347,8 @@ let E = class extends h {
1348
1347
  if (r.size > this.maxSize)
1349
1348
  return console.warn(`File ${r.name} exceeds max size`), !1;
1350
1349
  if (this.accept) {
1351
- const i = this.accept.split(",").map((g) => g.trim()), o = r.type, c = "." + r.name.split(".").pop()?.toLowerCase();
1352
- if (!i.some((g) => g.startsWith(".") ? c === g.toLowerCase() : g.endsWith("/*") ? o.startsWith(g.replace("/*", "/")) : o === g))
1350
+ const i = this.accept.split(",").map((u) => u.trim()), o = r.type, c = "." + r.name.split(".").pop()?.toLowerCase();
1351
+ if (!i.some((u) => u.startsWith(".") ? c === u.toLowerCase() : u.endsWith("/*") ? o.startsWith(u.replace("/*", "/")) : o === u))
1353
1352
  return console.warn(`File ${r.name} type not accepted`), !1;
1354
1353
  }
1355
1354
  return !0;
@@ -1458,7 +1457,7 @@ let E = class extends h {
1458
1457
  `;
1459
1458
  }
1460
1459
  };
1461
- E.styles = d`
1460
+ M.styles = d`
1462
1461
  :host {
1463
1462
  display: block;
1464
1463
  font-family: var(--crt-font-family);
@@ -1755,31 +1754,31 @@ E.styles = d`
1755
1754
  `;
1756
1755
  st([
1757
1756
  n({ type: String })
1758
- ], E.prototype, "accept", 2);
1757
+ ], M.prototype, "accept", 2);
1759
1758
  st([
1760
1759
  n({ type: Boolean })
1761
- ], E.prototype, "multiple", 2);
1760
+ ], M.prototype, "multiple", 2);
1762
1761
  st([
1763
1762
  n({ type: String })
1764
- ], E.prototype, "name", 2);
1763
+ ], M.prototype, "name", 2);
1765
1764
  st([
1766
1765
  n({ type: Number })
1767
- ], E.prototype, "maxSize", 2);
1766
+ ], M.prototype, "maxSize", 2);
1768
1767
  st([
1769
1768
  n({ type: Number })
1770
- ], E.prototype, "maxFiles", 2);
1769
+ ], M.prototype, "maxFiles", 2);
1771
1770
  st([
1772
1771
  m()
1773
- ], E.prototype, "files", 2);
1774
- E = st([
1772
+ ], M.prototype, "files", 2);
1773
+ M = st([
1775
1774
  v("crt-file-upload")
1776
- ], E);
1775
+ ], M);
1777
1776
  var yr = Object.defineProperty, xr = Object.getOwnPropertyDescriptor, O = (e, t, a, s) => {
1778
1777
  for (var r = s > 1 ? void 0 : s ? xr(t, a) : t, i = e.length - 1, o; i >= 0; i--)
1779
1778
  (o = e[i]) && (r = (s ? o(t, a, r) : o(r)) || r);
1780
1779
  return s && r && yr(t, a, r), r;
1781
1780
  };
1782
- let x = class extends h {
1781
+ let w = class extends h {
1783
1782
  constructor() {
1784
1783
  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 = [
1785
1784
  "Januar",
@@ -1870,10 +1869,10 @@ let x = class extends h {
1870
1869
  `);
1871
1870
  }
1872
1871
  for (let c = 1; c <= a; c++) {
1873
- const p = new Date(e, t, c), g = this._isToday(p), b = this._isSelected(p);
1872
+ const p = new Date(e, t, c), u = this._isToday(p), b = this._isSelected(p);
1874
1873
  i.push(l`
1875
1874
  <div
1876
- class="day ${g ? "today" : ""} ${b ? "selected" : ""}"
1875
+ class="day ${u ? "today" : ""} ${b ? "selected" : ""}"
1877
1876
  @click="${() => this._selectDate(p)}"
1878
1877
  >
1879
1878
  ${c}
@@ -1938,7 +1937,7 @@ let x = class extends h {
1938
1937
  `;
1939
1938
  }
1940
1939
  };
1941
- x.styles = d`
1940
+ w.styles = d`
1942
1941
  :host {
1943
1942
  display: inline-block;
1944
1943
  font-family: var(--crt-font-family);
@@ -2145,34 +2144,34 @@ x.styles = d`
2145
2144
  `;
2146
2145
  O([
2147
2146
  n({ type: String })
2148
- ], x.prototype, "value", 2);
2147
+ ], w.prototype, "value", 2);
2149
2148
  O([
2150
2149
  n({ type: String })
2151
- ], x.prototype, "placeholder", 2);
2150
+ ], w.prototype, "placeholder", 2);
2152
2151
  O([
2153
2152
  n({ type: String })
2154
- ], x.prototype, "format", 2);
2153
+ ], w.prototype, "format", 2);
2155
2154
  O([
2156
2155
  n({ type: String })
2157
- ], x.prototype, "min", 2);
2156
+ ], w.prototype, "min", 2);
2158
2157
  O([
2159
2158
  n({ type: String })
2160
- ], x.prototype, "max", 2);
2159
+ ], w.prototype, "max", 2);
2161
2160
  O([
2162
2161
  n({ type: Boolean })
2163
- ], x.prototype, "disabled", 2);
2162
+ ], w.prototype, "disabled", 2);
2164
2163
  O([
2165
2164
  m()
2166
- ], x.prototype, "_isOpen", 2);
2165
+ ], w.prototype, "_isOpen", 2);
2167
2166
  O([
2168
2167
  m()
2169
- ], x.prototype, "_viewDate", 2);
2168
+ ], w.prototype, "_viewDate", 2);
2170
2169
  O([
2171
2170
  m()
2172
- ], x.prototype, "_selectedDate", 2);
2173
- x = O([
2171
+ ], w.prototype, "_selectedDate", 2);
2172
+ w = O([
2174
2173
  v("crt-calendar")
2175
- ], x);
2174
+ ], w);
2176
2175
  var wr = Object.defineProperty, kr = Object.getOwnPropertyDescriptor, it = (e, t, a, s) => {
2177
2176
  for (var r = s > 1 ? void 0 : s ? kr(t, a) : t, i = e.length - 1, o; i >= 0; i--)
2178
2177
  (o = e[i]) && (r = (s ? o(t, a, r) : o(r)) || r);
@@ -2442,7 +2441,7 @@ var $r = Object.defineProperty, _r = Object.getOwnPropertyDescriptor, y = (e, t,
2442
2441
  (o = e[i]) && (r = (s ? o(t, a, r) : o(r)) || r);
2443
2442
  return s && r && $r(t, a, r), r;
2444
2443
  };
2445
- let H = class extends h {
2444
+ let Y = class extends h {
2446
2445
  constructor() {
2447
2446
  super(...arguments), this.checked = !1, this.disabled = !1, this.indeterminate = !1, this.label = "", this.value = "";
2448
2447
  }
@@ -2470,7 +2469,7 @@ let H = class extends h {
2470
2469
  `;
2471
2470
  }
2472
2471
  };
2473
- H.styles = d`
2472
+ Y.styles = d`
2474
2473
  :host {
2475
2474
  display: inline-flex;
2476
2475
  align-items: center;
@@ -2554,23 +2553,23 @@ H.styles = d`
2554
2553
  `;
2555
2554
  y([
2556
2555
  n({ type: Boolean, reflect: !0 })
2557
- ], H.prototype, "checked", 2);
2556
+ ], Y.prototype, "checked", 2);
2558
2557
  y([
2559
2558
  n({ type: Boolean, reflect: !0 })
2560
- ], H.prototype, "disabled", 2);
2559
+ ], Y.prototype, "disabled", 2);
2561
2560
  y([
2562
2561
  n({ type: Boolean })
2563
- ], H.prototype, "indeterminate", 2);
2562
+ ], Y.prototype, "indeterminate", 2);
2564
2563
  y([
2565
2564
  n({ type: String })
2566
- ], H.prototype, "label", 2);
2565
+ ], Y.prototype, "label", 2);
2567
2566
  y([
2568
2567
  n({ type: String })
2569
- ], H.prototype, "value", 2);
2570
- H = y([
2568
+ ], Y.prototype, "value", 2);
2569
+ Y = y([
2571
2570
  v("crt-checkbox")
2572
- ], H);
2573
- let Y = class extends h {
2571
+ ], Y);
2572
+ let V = class extends h {
2574
2573
  constructor() {
2575
2574
  super(...arguments), this.checked = !1, this.disabled = !1, this.label = "", this.value = "", this.name = "";
2576
2575
  }
@@ -2599,7 +2598,7 @@ let Y = class extends h {
2599
2598
  `;
2600
2599
  }
2601
2600
  };
2602
- Y.styles = d`
2601
+ V.styles = d`
2603
2602
  :host {
2604
2603
  display: inline-flex;
2605
2604
  align-items: center;
@@ -2675,23 +2674,23 @@ Y.styles = d`
2675
2674
  `;
2676
2675
  y([
2677
2676
  n({ type: Boolean, reflect: !0 })
2678
- ], Y.prototype, "checked", 2);
2677
+ ], V.prototype, "checked", 2);
2679
2678
  y([
2680
2679
  n({ type: Boolean, reflect: !0 })
2681
- ], Y.prototype, "disabled", 2);
2680
+ ], V.prototype, "disabled", 2);
2682
2681
  y([
2683
2682
  n({ type: String })
2684
- ], Y.prototype, "label", 2);
2683
+ ], V.prototype, "label", 2);
2685
2684
  y([
2686
2685
  n({ type: String })
2687
- ], Y.prototype, "value", 2);
2686
+ ], V.prototype, "value", 2);
2688
2687
  y([
2689
2688
  n({ type: String })
2690
- ], Y.prototype, "name", 2);
2691
- Y = y([
2689
+ ], V.prototype, "name", 2);
2690
+ V = y([
2692
2691
  v("crt-radio")
2693
- ], Y);
2694
- let pt = class extends h {
2692
+ ], V);
2693
+ let dt = class extends h {
2695
2694
  constructor() {
2696
2695
  super(...arguments), this.name = "", this.value = "", this.horizontal = !1, this._handleChange = (e) => {
2697
2696
  const t = e.target;
@@ -2712,7 +2711,7 @@ let pt = class extends h {
2712
2711
  return l`<slot></slot>`;
2713
2712
  }
2714
2713
  };
2715
- pt.styles = d`
2714
+ dt.styles = d`
2716
2715
  :host {
2717
2716
  display: flex;
2718
2717
  flex-direction: column;
@@ -2727,22 +2726,22 @@ pt.styles = d`
2727
2726
  `;
2728
2727
  y([
2729
2728
  n({ type: String })
2730
- ], pt.prototype, "name", 2);
2729
+ ], dt.prototype, "name", 2);
2731
2730
  y([
2732
2731
  n({ type: String })
2733
- ], pt.prototype, "value", 2);
2732
+ ], dt.prototype, "value", 2);
2734
2733
  y([
2735
2734
  n({ type: Boolean, reflect: !0 })
2736
- ], pt.prototype, "horizontal", 2);
2737
- pt = y([
2735
+ ], dt.prototype, "horizontal", 2);
2736
+ dt = y([
2738
2737
  v("crt-radio-group")
2739
- ], pt);
2740
- var zr = Object.defineProperty, Cr = Object.getOwnPropertyDescriptor, P = (e, t, a, s) => {
2738
+ ], dt);
2739
+ var zr = Object.defineProperty, Cr = Object.getOwnPropertyDescriptor, A = (e, t, a, s) => {
2741
2740
  for (var r = s > 1 ? void 0 : s ? Cr(t, a) : t, i = e.length - 1, o; i >= 0; i--)
2742
2741
  (o = e[i]) && (r = (s ? o(t, a, r) : o(r)) || r);
2743
2742
  return s && r && zr(t, a, r), r;
2744
2743
  };
2745
- let w = class extends h {
2744
+ let k = class extends h {
2746
2745
  constructor() {
2747
2746
  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;
2748
2747
  }
@@ -2768,7 +2767,7 @@ let w = class extends h {
2768
2767
  `;
2769
2768
  }
2770
2769
  };
2771
- w.styles = d`
2770
+ k.styles = d`
2772
2771
  :host {
2773
2772
  display: block;
2774
2773
  font-family: var(--crt-font-family);
@@ -2892,42 +2891,42 @@ w.styles = d`
2892
2891
  );
2893
2892
  }
2894
2893
  `;
2895
- P([
2894
+ A([
2896
2895
  n({ type: Number })
2897
- ], w.prototype, "value", 2);
2898
- P([
2896
+ ], k.prototype, "value", 2);
2897
+ A([
2899
2898
  n({ type: Number })
2900
- ], w.prototype, "max", 2);
2901
- P([
2899
+ ], k.prototype, "max", 2);
2900
+ A([
2902
2901
  n({ type: String })
2903
- ], w.prototype, "label", 2);
2904
- P([
2902
+ ], k.prototype, "label", 2);
2903
+ A([
2905
2904
  n({ type: Boolean, reflect: !0 })
2906
- ], w.prototype, "animated", 2);
2907
- P([
2905
+ ], k.prototype, "animated", 2);
2906
+ A([
2908
2907
  n({ type: Boolean, reflect: !0 })
2909
- ], w.prototype, "indeterminate", 2);
2910
- P([
2908
+ ], k.prototype, "indeterminate", 2);
2909
+ A([
2911
2910
  n({ type: Boolean, reflect: !0 })
2912
- ], w.prototype, "segmented", 2);
2913
- P([
2911
+ ], k.prototype, "segmented", 2);
2912
+ A([
2914
2913
  n({ type: String, reflect: !0 })
2915
- ], w.prototype, "size", 2);
2916
- P([
2914
+ ], k.prototype, "size", 2);
2915
+ A([
2917
2916
  n({ type: String, reflect: !0 })
2918
- ], w.prototype, "variant", 2);
2919
- P([
2917
+ ], k.prototype, "variant", 2);
2918
+ A([
2920
2919
  n({ type: Boolean })
2921
- ], w.prototype, "showValue", 2);
2922
- w = P([
2920
+ ], k.prototype, "showValue", 2);
2921
+ k = A([
2923
2922
  v("crt-progress")
2924
- ], w);
2925
- var Or = Object.defineProperty, Pr = Object.getOwnPropertyDescriptor, Pt = (e, t, a, s) => {
2926
- for (var r = s > 1 ? void 0 : s ? Pr(t, a) : t, i = e.length - 1, o; i >= 0; i--)
2923
+ ], k);
2924
+ var Pr = Object.defineProperty, Or = Object.getOwnPropertyDescriptor, At = (e, t, a, s) => {
2925
+ for (var r = s > 1 ? void 0 : s ? Or(t, a) : t, i = e.length - 1, o; i >= 0; i--)
2927
2926
  (o = e[i]) && (r = (s ? o(t, a, r) : o(r)) || r);
2928
- return s && r && Or(t, a, r), r;
2927
+ return s && r && Pr(t, a, r), r;
2929
2928
  };
2930
- let tt = class extends h {
2929
+ let et = class extends h {
2931
2930
  constructor() {
2932
2931
  super(...arguments), this.text = "", this.position = "top", this.delay = 200, this._visible = !1;
2933
2932
  }
@@ -2956,7 +2955,7 @@ let tt = class extends h {
2956
2955
  `;
2957
2956
  }
2958
2957
  };
2959
- tt.styles = d`
2958
+ et.styles = d`
2960
2959
  :host {
2961
2960
  display: inline-block;
2962
2961
  position: relative;
@@ -3063,27 +3062,27 @@ tt.styles = d`
3063
3062
  border-right-color: var(--crt-primary);
3064
3063
  }
3065
3064
  `;
3066
- Pt([
3065
+ At([
3067
3066
  n({ type: String })
3068
- ], tt.prototype, "text", 2);
3069
- Pt([
3067
+ ], et.prototype, "text", 2);
3068
+ At([
3070
3069
  n({ type: String, reflect: !0 })
3071
- ], tt.prototype, "position", 2);
3072
- Pt([
3070
+ ], et.prototype, "position", 2);
3071
+ At([
3073
3072
  n({ type: Number })
3074
- ], tt.prototype, "delay", 2);
3075
- Pt([
3073
+ ], et.prototype, "delay", 2);
3074
+ At([
3076
3075
  m()
3077
- ], tt.prototype, "_visible", 2);
3078
- tt = Pt([
3076
+ ], et.prototype, "_visible", 2);
3077
+ et = At([
3079
3078
  v("crt-tooltip")
3080
- ], tt);
3079
+ ], et);
3081
3080
  var Ar = Object.defineProperty, Sr = Object.getOwnPropertyDescriptor, oe = (e, t, a, s) => {
3082
3081
  for (var r = s > 1 ? void 0 : s ? Sr(t, a) : t, i = e.length - 1, o; i >= 0; i--)
3083
3082
  (o = e[i]) && (r = (s ? o(t, a, r) : o(r)) || r);
3084
3083
  return s && r && Ar(t, a, r), r;
3085
3084
  };
3086
- let kt = class extends h {
3085
+ let $t = class extends h {
3087
3086
  constructor() {
3088
3087
  super(...arguments), this.items = [], this.separator = ">";
3089
3088
  }
@@ -3101,7 +3100,7 @@ let kt = class extends h {
3101
3100
  `;
3102
3101
  }
3103
3102
  };
3104
- kt.styles = d`
3103
+ $t.styles = d`
3105
3104
  :host {
3106
3105
  display: block;
3107
3106
  font-family: var(--crt-font-family);
@@ -3152,19 +3151,19 @@ kt.styles = d`
3152
3151
  `;
3153
3152
  oe([
3154
3153
  n({ type: Array })
3155
- ], kt.prototype, "items", 2);
3154
+ ], $t.prototype, "items", 2);
3156
3155
  oe([
3157
3156
  n({ type: String })
3158
- ], kt.prototype, "separator", 2);
3159
- kt = oe([
3157
+ ], $t.prototype, "separator", 2);
3158
+ $t = oe([
3160
3159
  v("crt-breadcrumb")
3161
- ], kt);
3162
- var Er = Object.defineProperty, Dr = Object.getOwnPropertyDescriptor, At = (e, t, a, s) => {
3163
- for (var r = s > 1 ? void 0 : s ? Dr(t, a) : t, i = e.length - 1, o; i >= 0; i--)
3160
+ ], $t);
3161
+ var Er = Object.defineProperty, Mr = Object.getOwnPropertyDescriptor, St = (e, t, a, s) => {
3162
+ for (var r = s > 1 ? void 0 : s ? Mr(t, a) : t, i = e.length - 1, o; i >= 0; i--)
3164
3163
  (o = e[i]) && (r = (s ? o(t, a, r) : o(r)) || r);
3165
3164
  return s && r && Er(t, a, r), r;
3166
3165
  };
3167
- let et = class extends h {
3166
+ let rt = class extends h {
3168
3167
  constructor() {
3169
3168
  super(...arguments), this.current = 1, this.total = 1, this.siblings = 1, this.showInfo = !0;
3170
3169
  }
@@ -3223,7 +3222,7 @@ let et = class extends h {
3223
3222
  `;
3224
3223
  }
3225
3224
  };
3226
- et.styles = d`
3225
+ rt.styles = d`
3227
3226
  :host {
3228
3227
  display: block;
3229
3228
  font-family: var(--crt-font-family);
@@ -3278,40 +3277,44 @@ et.styles = d`
3278
3277
  margin-left: var(--crt-spacing-md);
3279
3278
  }
3280
3279
  `;
3281
- At([
3280
+ St([
3282
3281
  n({ type: Number })
3283
- ], et.prototype, "current", 2);
3284
- At([
3282
+ ], rt.prototype, "current", 2);
3283
+ St([
3285
3284
  n({ type: Number })
3286
- ], et.prototype, "total", 2);
3287
- At([
3285
+ ], rt.prototype, "total", 2);
3286
+ St([
3288
3287
  n({ type: Number })
3289
- ], et.prototype, "siblings", 2);
3290
- At([
3288
+ ], rt.prototype, "siblings", 2);
3289
+ St([
3291
3290
  n({ type: Boolean })
3292
- ], et.prototype, "showInfo", 2);
3293
- et = At([
3291
+ ], rt.prototype, "showInfo", 2);
3292
+ rt = St([
3294
3293
  v("crt-pagination")
3295
- ], et);
3296
- var Mr = Object.defineProperty, Tr = Object.getOwnPropertyDescriptor, L = (e, t, a, s) => {
3294
+ ], rt);
3295
+ var Dr = Object.defineProperty, Tr = Object.getOwnPropertyDescriptor, B = (e, t, a, s) => {
3297
3296
  for (var r = s > 1 ? void 0 : s ? Tr(t, a) : t, i = e.length - 1, o; i >= 0; i--)
3298
3297
  (o = e[i]) && (r = (s ? o(t, a, r) : o(r)) || r);
3299
- return s && r && Mr(t, a, r), r;
3298
+ return s && r && Dr(t, a, r), r;
3300
3299
  };
3301
- let k = class extends h {
3300
+ let _ = class extends h {
3302
3301
  constructor() {
3303
3302
  super(...arguments), this.value = 50, this.min = 0, this.max = 100, this.step = 1, this.label = "", this.disabled = !1, this.showMarks = !1, this.unit = "";
3304
3303
  }
3305
3304
  _handleInput(e) {
3306
3305
  const t = e.target;
3307
3306
  this.value = Number(t.value), this.dispatchEvent(new CustomEvent("input", {
3308
- detail: { value: this.value }
3307
+ detail: { value: this.value },
3308
+ bubbles: !0,
3309
+ composed: !0
3309
3310
  }));
3310
3311
  }
3311
3312
  _handleChange(e) {
3312
3313
  const t = e.target;
3313
3314
  this.value = Number(t.value), this.dispatchEvent(new CustomEvent("change", {
3314
- detail: { value: this.value }
3315
+ detail: { value: this.value },
3316
+ bubbles: !0,
3317
+ composed: !0
3315
3318
  }));
3316
3319
  }
3317
3320
  _getFillWidth() {
@@ -3351,7 +3354,7 @@ let k = class extends h {
3351
3354
  `;
3352
3355
  }
3353
3356
  };
3354
- k.styles = d`
3357
+ _.styles = d`
3355
3358
  :host {
3356
3359
  display: block;
3357
3360
  font-family: var(--crt-font-family);
@@ -3485,39 +3488,39 @@ k.styles = d`
3485
3488
  cursor: not-allowed;
3486
3489
  }
3487
3490
  `;
3488
- L([
3491
+ B([
3489
3492
  n({ type: Number })
3490
- ], k.prototype, "value", 2);
3491
- L([
3493
+ ], _.prototype, "value", 2);
3494
+ B([
3492
3495
  n({ type: Number })
3493
- ], k.prototype, "min", 2);
3494
- L([
3496
+ ], _.prototype, "min", 2);
3497
+ B([
3495
3498
  n({ type: Number })
3496
- ], k.prototype, "max", 2);
3497
- L([
3499
+ ], _.prototype, "max", 2);
3500
+ B([
3498
3501
  n({ type: Number })
3499
- ], k.prototype, "step", 2);
3500
- L([
3502
+ ], _.prototype, "step", 2);
3503
+ B([
3501
3504
  n({ type: String })
3502
- ], k.prototype, "label", 2);
3503
- L([
3505
+ ], _.prototype, "label", 2);
3506
+ B([
3504
3507
  n({ type: Boolean, reflect: !0 })
3505
- ], k.prototype, "disabled", 2);
3506
- L([
3508
+ ], _.prototype, "disabled", 2);
3509
+ B([
3507
3510
  n({ type: Boolean })
3508
- ], k.prototype, "showMarks", 2);
3509
- L([
3511
+ ], _.prototype, "showMarks", 2);
3512
+ B([
3510
3513
  n({ type: String })
3511
- ], k.prototype, "unit", 2);
3512
- k = L([
3514
+ ], _.prototype, "unit", 2);
3515
+ _ = B([
3513
3516
  v("crt-slider")
3514
- ], k);
3517
+ ], _);
3515
3518
  var jr = Object.defineProperty, Lr = Object.getOwnPropertyDescriptor, ot = (e, t, a, s) => {
3516
3519
  for (var r = s > 1 ? void 0 : s ? Lr(t, a) : t, i = e.length - 1, o; i >= 0; i--)
3517
3520
  (o = e[i]) && (r = (s ? o(t, a, r) : o(r)) || r);
3518
3521
  return s && r && jr(t, a, r), r;
3519
3522
  };
3520
- let M = class extends h {
3523
+ let T = class extends h {
3521
3524
  constructor() {
3522
3525
  super(...arguments), this.checked = !1, this.disabled = !1, this.label = "", this.onLabel = "1", this.offLabel = "0", this.size = "medium";
3523
3526
  }
@@ -3548,7 +3551,7 @@ let M = class extends h {
3548
3551
  `;
3549
3552
  }
3550
3553
  };
3551
- M.styles = d`
3554
+ T.styles = d`
3552
3555
  :host {
3553
3556
  display: inline-flex;
3554
3557
  align-items: center;
@@ -3672,31 +3675,31 @@ M.styles = d`
3672
3675
  `;
3673
3676
  ot([
3674
3677
  n({ type: Boolean, reflect: !0 })
3675
- ], M.prototype, "checked", 2);
3678
+ ], T.prototype, "checked", 2);
3676
3679
  ot([
3677
3680
  n({ type: Boolean, reflect: !0 })
3678
- ], M.prototype, "disabled", 2);
3681
+ ], T.prototype, "disabled", 2);
3679
3682
  ot([
3680
3683
  n({ type: String })
3681
- ], M.prototype, "label", 2);
3684
+ ], T.prototype, "label", 2);
3682
3685
  ot([
3683
3686
  n({ type: String })
3684
- ], M.prototype, "onLabel", 2);
3687
+ ], T.prototype, "onLabel", 2);
3685
3688
  ot([
3686
3689
  n({ type: String })
3687
- ], M.prototype, "offLabel", 2);
3690
+ ], T.prototype, "offLabel", 2);
3688
3691
  ot([
3689
3692
  n({ type: String, reflect: !0 })
3690
- ], M.prototype, "size", 2);
3691
- M = ot([
3693
+ ], T.prototype, "size", 2);
3694
+ T = ot([
3692
3695
  v("crt-toggle")
3693
- ], M);
3694
- var Ir = Object.defineProperty, Br = Object.getOwnPropertyDescriptor, I = (e, t, a, s) => {
3696
+ ], T);
3697
+ var Ir = Object.defineProperty, Br = Object.getOwnPropertyDescriptor, N = (e, t, a, s) => {
3695
3698
  for (var r = s > 1 ? void 0 : s ? Br(t, a) : t, i = e.length - 1, o; i >= 0; i--)
3696
3699
  (o = e[i]) && (r = (s ? o(t, a, r) : o(r)) || r);
3697
3700
  return s && r && Ir(t, a, r), r;
3698
3701
  };
3699
- let T = class extends h {
3702
+ let j = class extends h {
3700
3703
  constructor() {
3701
3704
  super(...arguments), this.src = "", this.alt = "", this.name = "", this.size = "md", this.shape = "square", this.status = "";
3702
3705
  }
@@ -3729,7 +3732,7 @@ let T = class extends h {
3729
3732
  `;
3730
3733
  }
3731
3734
  };
3732
- T.styles = d`
3735
+ j.styles = d`
3733
3736
  :host {
3734
3737
  display: inline-block;
3735
3738
  font-family: var(--crt-font-family);
@@ -3857,27 +3860,27 @@ T.styles = d`
3857
3860
  border-color: var(--crt-bg-dark);
3858
3861
  }
3859
3862
  `;
3860
- I([
3863
+ N([
3861
3864
  n({ type: String })
3862
- ], T.prototype, "src", 2);
3863
- I([
3865
+ ], j.prototype, "src", 2);
3866
+ N([
3864
3867
  n({ type: String })
3865
- ], T.prototype, "alt", 2);
3866
- I([
3868
+ ], j.prototype, "alt", 2);
3869
+ N([
3867
3870
  n({ type: String })
3868
- ], T.prototype, "name", 2);
3869
- I([
3871
+ ], j.prototype, "name", 2);
3872
+ N([
3870
3873
  n({ type: String, reflect: !0 })
3871
- ], T.prototype, "size", 2);
3872
- I([
3874
+ ], j.prototype, "size", 2);
3875
+ N([
3873
3876
  n({ type: String, reflect: !0 })
3874
- ], T.prototype, "shape", 2);
3875
- I([
3877
+ ], j.prototype, "shape", 2);
3878
+ N([
3876
3879
  n({ type: String, reflect: !0 })
3877
- ], T.prototype, "status", 2);
3878
- T = I([
3880
+ ], j.prototype, "status", 2);
3881
+ j = N([
3879
3882
  v("crt-avatar")
3880
- ], T);
3883
+ ], j);
3881
3884
  let Rt = class extends h {
3882
3885
  constructor() {
3883
3886
  super(...arguments), this.max = 5;
@@ -3917,18 +3920,18 @@ Rt.styles = d`
3917
3920
  box-shadow: var(--crt-glow-sm);
3918
3921
  }
3919
3922
  `;
3920
- I([
3923
+ N([
3921
3924
  n({ type: Number })
3922
3925
  ], Rt.prototype, "max", 2);
3923
- Rt = I([
3926
+ Rt = N([
3924
3927
  v("crt-avatar-group")
3925
3928
  ], Rt);
3926
- var Nr = Object.defineProperty, Ur = Object.getOwnPropertyDescriptor, A = (e, t, a, s) => {
3929
+ var Nr = Object.defineProperty, Ur = Object.getOwnPropertyDescriptor, S = (e, t, a, s) => {
3927
3930
  for (var r = s > 1 ? void 0 : s ? Ur(t, a) : t, i = e.length - 1, o; i >= 0; i--)
3928
3931
  (o = e[i]) && (r = (s ? o(t, a, r) : o(r)) || r);
3929
3932
  return s && r && Nr(t, a, r), r;
3930
3933
  };
3931
- let V = class extends h {
3934
+ let q = class extends h {
3932
3935
  constructor() {
3933
3936
  super(...arguments), this.variant = "rectangular", this.animation = "shimmer", this.width = "100%", this.height = "20px", this.effect = !1;
3934
3937
  }
@@ -3941,7 +3944,7 @@ let V = class extends h {
3941
3944
  `;
3942
3945
  }
3943
3946
  };
3944
- V.styles = d`
3947
+ q.styles = d`
3945
3948
  :host {
3946
3949
  display: block;
3947
3950
  }
@@ -4056,24 +4059,24 @@ V.styles = d`
4056
4059
  pointer-events: none;
4057
4060
  }
4058
4061
  `;
4059
- A([
4062
+ S([
4060
4063
  n({ type: String, reflect: !0 })
4061
- ], V.prototype, "variant", 2);
4062
- A([
4064
+ ], q.prototype, "variant", 2);
4065
+ S([
4063
4066
  n({ type: String, reflect: !0 })
4064
- ], V.prototype, "animation", 2);
4065
- A([
4067
+ ], q.prototype, "animation", 2);
4068
+ S([
4066
4069
  n({ type: String })
4067
- ], V.prototype, "width", 2);
4068
- A([
4070
+ ], q.prototype, "width", 2);
4071
+ S([
4069
4072
  n({ type: String })
4070
- ], V.prototype, "height", 2);
4071
- A([
4073
+ ], q.prototype, "height", 2);
4074
+ S([
4072
4075
  n({ type: Boolean, reflect: !0 })
4073
- ], V.prototype, "effect", 2);
4074
- V = A([
4076
+ ], q.prototype, "effect", 2);
4077
+ q = S([
4075
4078
  v("crt-skeleton")
4076
- ], V);
4079
+ ], q);
4077
4080
  let Ft = class extends h {
4078
4081
  constructor() {
4079
4082
  super(...arguments), this.lines = 3;
@@ -4118,10 +4121,10 @@ Ft.styles = d`
4118
4121
  }
4119
4122
  }
4120
4123
  `;
4121
- A([
4124
+ S([
4122
4125
  n({ type: Number })
4123
4126
  ], Ft.prototype, "lines", 2);
4124
- Ft = A([
4127
+ Ft = S([
4125
4128
  v("crt-skeleton-text")
4126
4129
  ], Ft);
4127
4130
  let Ht = class extends h {
@@ -4191,18 +4194,18 @@ Ht.styles = d`
4191
4194
  }
4192
4195
  }
4193
4196
  `;
4194
- A([
4197
+ S([
4195
4198
  n({ type: Boolean })
4196
4199
  ], Ht.prototype, "hideImage", 2);
4197
- Ht = A([
4200
+ Ht = S([
4198
4201
  v("crt-skeleton-card")
4199
4202
  ], Ht);
4200
- var Rr = Object.defineProperty, Fr = Object.getOwnPropertyDescriptor, B = (e, t, a, s) => {
4203
+ var Rr = Object.defineProperty, Fr = Object.getOwnPropertyDescriptor, U = (e, t, a, s) => {
4201
4204
  for (var r = s > 1 ? void 0 : s ? Fr(t, a) : t, i = e.length - 1, o; i >= 0; i--)
4202
4205
  (o = e[i]) && (r = (s ? o(t, a, r) : o(r)) || r);
4203
4206
  return s && r && Rr(t, a, r), r;
4204
4207
  };
4205
- let $ = class extends h {
4208
+ let z = class extends h {
4206
4209
  constructor() {
4207
4210
  super(...arguments), this.variant = "info", this.title = "", this.closable = !1, this.filled = !1, this.outlined = !1, this.banner = !1, this.animated = !1, this.icon = "";
4208
4211
  }
@@ -4237,7 +4240,7 @@ let $ = class extends h {
4237
4240
  `;
4238
4241
  }
4239
4242
  };
4240
- $.styles = d`
4243
+ z.styles = d`
4241
4244
  :host {
4242
4245
  display: block;
4243
4246
  font-family: var(--crt-font-family);
@@ -4402,39 +4405,39 @@ $.styles = d`
4402
4405
  border-top: none;
4403
4406
  }
4404
4407
  `;
4405
- B([
4408
+ U([
4406
4409
  n({ type: String, reflect: !0 })
4407
- ], $.prototype, "variant", 2);
4408
- B([
4410
+ ], z.prototype, "variant", 2);
4411
+ U([
4409
4412
  n({ type: String })
4410
- ], $.prototype, "title", 2);
4411
- B([
4413
+ ], z.prototype, "title", 2);
4414
+ U([
4412
4415
  n({ type: Boolean, reflect: !0 })
4413
- ], $.prototype, "closable", 2);
4414
- B([
4416
+ ], z.prototype, "closable", 2);
4417
+ U([
4415
4418
  n({ type: Boolean, reflect: !0 })
4416
- ], $.prototype, "filled", 2);
4417
- B([
4419
+ ], z.prototype, "filled", 2);
4420
+ U([
4418
4421
  n({ type: Boolean, reflect: !0 })
4419
- ], $.prototype, "outlined", 2);
4420
- B([
4422
+ ], z.prototype, "outlined", 2);
4423
+ U([
4421
4424
  n({ type: Boolean, reflect: !0 })
4422
- ], $.prototype, "banner", 2);
4423
- B([
4425
+ ], z.prototype, "banner", 2);
4426
+ U([
4424
4427
  n({ type: Boolean, reflect: !0 })
4425
- ], $.prototype, "animated", 2);
4426
- B([
4428
+ ], z.prototype, "animated", 2);
4429
+ U([
4427
4430
  n({ type: String })
4428
- ], $.prototype, "icon", 2);
4429
- $ = B([
4431
+ ], z.prototype, "icon", 2);
4432
+ z = U([
4430
4433
  v("crt-alert")
4431
- ], $);
4434
+ ], z);
4432
4435
  var Hr = Object.defineProperty, Yr = Object.getOwnPropertyDescriptor, ne = (e, t, a, s) => {
4433
4436
  for (var r = s > 1 ? void 0 : s ? Yr(t, a) : t, i = e.length - 1, o; i >= 0; i--)
4434
4437
  (o = e[i]) && (r = (s ? o(t, a, r) : o(r)) || r);
4435
4438
  return s && r && Hr(t, a, r), r;
4436
4439
  };
4437
- let $t = class extends h {
4440
+ let _t = class extends h {
4438
4441
  constructor() {
4439
4442
  super(...arguments), this.open = !1, this.message = "LOADING...";
4440
4443
  }
@@ -4458,7 +4461,7 @@ let $t = class extends h {
4458
4461
  ` : l``;
4459
4462
  }
4460
4463
  };
4461
- $t.styles = d`
4464
+ _t.styles = d`
4462
4465
  :host {
4463
4466
  display: block;
4464
4467
  }
@@ -4682,13 +4685,13 @@ $t.styles = d`
4682
4685
  `;
4683
4686
  ne([
4684
4687
  n({ type: Boolean, reflect: !0 })
4685
- ], $t.prototype, "open", 2);
4688
+ ], _t.prototype, "open", 2);
4686
4689
  ne([
4687
4690
  n({ type: String })
4688
- ], $t.prototype, "message", 2);
4689
- $t = ne([
4691
+ ], _t.prototype, "message", 2);
4692
+ _t = ne([
4690
4693
  v("crt-spinner")
4691
- ], $t);
4694
+ ], _t);
4692
4695
  var Vr = Object.getOwnPropertyDescriptor, qr = (e, t, a, s) => {
4693
4696
  for (var r = s > 1 ? void 0 : s ? Vr(t, a) : t, i = e.length - 1, o; i >= 0; i--)
4694
4697
  (o = e[i]) && (r = o(r) || r);
@@ -4712,7 +4715,17 @@ let Qt = class extends h {
4712
4715
  }
4713
4716
  };
4714
4717
  Qt.styles = d`
4718
+ :host {
4719
+ /* Make the card element act like a normal block-level container
4720
+ so external width/height styles can be applied responsively. */
4721
+ display: block;
4722
+ width: 100%;
4723
+ box-sizing: border-box;
4724
+ }
4725
+
4715
4726
  .card {
4727
+ width: 100%;
4728
+ box-sizing: border-box;
4716
4729
  border: 3px double var(--crt-primary);
4717
4730
  padding: var(--crt-spacing-lg);
4718
4731
  background-color: var(--crt-bg-dark);
@@ -4751,7 +4764,7 @@ var Wr = Object.defineProperty, Xr = Object.getOwnPropertyDescriptor, le = (e, t
4751
4764
  (o = e[i]) && (r = (s ? o(t, a, r) : o(r)) || r);
4752
4765
  return s && r && Wr(t, a, r), r;
4753
4766
  };
4754
- let _t = class extends h {
4767
+ let zt = class extends h {
4755
4768
  constructor() {
4756
4769
  super(...arguments), this.headers = [], this.rows = [];
4757
4770
  }
@@ -4770,7 +4783,7 @@ let _t = class extends h {
4770
4783
  `;
4771
4784
  }
4772
4785
  };
4773
- _t.styles = d`
4786
+ zt.styles = d`
4774
4787
  :host {
4775
4788
  display: block;
4776
4789
  }
@@ -4824,19 +4837,19 @@ _t.styles = d`
4824
4837
  `;
4825
4838
  le([
4826
4839
  n({ type: Array })
4827
- ], _t.prototype, "headers", 2);
4840
+ ], zt.prototype, "headers", 2);
4828
4841
  le([
4829
4842
  n({ type: Array })
4830
- ], _t.prototype, "rows", 2);
4831
- _t = le([
4843
+ ], zt.prototype, "rows", 2);
4844
+ zt = le([
4832
4845
  v("crt-table")
4833
- ], _t);
4846
+ ], zt);
4834
4847
  var Kr = Object.defineProperty, Gr = Object.getOwnPropertyDescriptor, ce = (e, t, a, s) => {
4835
4848
  for (var r = s > 1 ? void 0 : s ? Gr(t, a) : t, i = e.length - 1, o; i >= 0; i--)
4836
4849
  (o = e[i]) && (r = (s ? o(t, a, r) : o(r)) || r);
4837
4850
  return s && r && Kr(t, a, r), r;
4838
4851
  };
4839
- let zt = class extends h {
4852
+ let Ct = class extends h {
4840
4853
  constructor() {
4841
4854
  super(...arguments), this.columns = 3, this.gap = "var(--crt-spacing-lg)";
4842
4855
  }
@@ -4854,7 +4867,7 @@ let zt = class extends h {
4854
4867
  `;
4855
4868
  }
4856
4869
  };
4857
- zt.styles = d`
4870
+ Ct.styles = d`
4858
4871
  :host {
4859
4872
  display: block;
4860
4873
  }
@@ -4885,19 +4898,19 @@ zt.styles = d`
4885
4898
  `;
4886
4899
  ce([
4887
4900
  n({ type: Number })
4888
- ], zt.prototype, "columns", 2);
4901
+ ], Ct.prototype, "columns", 2);
4889
4902
  ce([
4890
4903
  n({ type: String })
4891
- ], zt.prototype, "gap", 2);
4892
- zt = ce([
4904
+ ], Ct.prototype, "gap", 2);
4905
+ Ct = ce([
4893
4906
  v("crt-grid")
4894
- ], zt);
4895
- var Zr = Object.defineProperty, Qr = Object.getOwnPropertyDescriptor, vt = (e, t, a, s) => {
4907
+ ], Ct);
4908
+ var Zr = Object.defineProperty, Qr = Object.getOwnPropertyDescriptor, ut = (e, t, a, s) => {
4896
4909
  for (var r = s > 1 ? void 0 : s ? Qr(t, a) : t, i = e.length - 1, o; i >= 0; i--)
4897
4910
  (o = e[i]) && (r = (s ? o(t, a, r) : o(r)) || r);
4898
4911
  return s && r && Zr(t, a, r), r;
4899
4912
  };
4900
- let q = class extends h {
4913
+ let W = class extends h {
4901
4914
  constructor() {
4902
4915
  super(...arguments), this.title = "", this.description = "", this.code = "", this.activeTab = "preview", this.copied = !1;
4903
4916
  }
@@ -4954,10 +4967,13 @@ let q = class extends h {
4954
4967
  `;
4955
4968
  }
4956
4969
  };
4957
- q.styles = d`
4970
+ W.styles = d`
4958
4971
  :host {
4959
4972
  display: block;
4960
4973
  margin-bottom: var(--crt-spacing-xl);
4974
+ width: 100%;
4975
+ max-width: none;
4976
+ box-sizing: border-box;
4961
4977
  }
4962
4978
 
4963
4979
  .example-header {
@@ -4985,6 +5001,8 @@ q.styles = d`
4985
5001
  border: 2px solid var(--crt-primary);
4986
5002
  background: var(--crt-bg-light);
4987
5003
  box-shadow: var(--crt-glow-inset);
5004
+ width: 100%;
5005
+ box-sizing: border-box;
4988
5006
  }
4989
5007
 
4990
5008
  .tab-header {
@@ -5029,6 +5047,17 @@ q.styles = d`
5029
5047
  flex-wrap: wrap;
5030
5048
  gap: var(--crt-spacing-md);
5031
5049
  align-items: center;
5050
+ width: 100%;
5051
+ box-sizing: border-box;
5052
+ }
5053
+
5054
+ /* Ensure embedded demo components stretch to the available width
5055
+ so examples don't get stuck at an intrinsic/narrow width. */
5056
+ .preview-pane > * {
5057
+ flex: 1 1 100%;
5058
+ min-width: 0; /* allow children to shrink below their content width */
5059
+ width: 100%;
5060
+ box-sizing: border-box;
5032
5061
  }
5033
5062
 
5034
5063
  .code-pane {
@@ -5087,30 +5116,30 @@ q.styles = d`
5087
5116
  color: var(--crt-bg-dark);
5088
5117
  }
5089
5118
  `;
5090
- vt([
5119
+ ut([
5091
5120
  n()
5092
- ], q.prototype, "title", 2);
5093
- vt([
5121
+ ], W.prototype, "title", 2);
5122
+ ut([
5094
5123
  n()
5095
- ], q.prototype, "description", 2);
5096
- vt([
5124
+ ], W.prototype, "description", 2);
5125
+ ut([
5097
5126
  n()
5098
- ], q.prototype, "code", 2);
5099
- vt([
5127
+ ], W.prototype, "code", 2);
5128
+ ut([
5100
5129
  m()
5101
- ], q.prototype, "activeTab", 2);
5102
- vt([
5130
+ ], W.prototype, "activeTab", 2);
5131
+ ut([
5103
5132
  m()
5104
- ], q.prototype, "copied", 2);
5105
- q = vt([
5133
+ ], W.prototype, "copied", 2);
5134
+ W = ut([
5106
5135
  v("crt-code-example")
5107
- ], q);
5136
+ ], W);
5108
5137
  var Jr = Object.defineProperty, ta = Object.getOwnPropertyDescriptor, Kt = (e, t, a, s) => {
5109
5138
  for (var r = s > 1 ? void 0 : s ? ta(t, a) : t, i = e.length - 1, o; i >= 0; i--)
5110
5139
  (o = e[i]) && (r = (s ? o(t, a, r) : o(r)) || r);
5111
5140
  return s && r && Jr(t, a, r), r;
5112
5141
  };
5113
- let dt = class extends h {
5142
+ let ht = class extends h {
5114
5143
  constructor() {
5115
5144
  super(...arguments), this.open = !1, this.title = "Modal", this.size = "medium", this._handleKeydown = (e) => {
5116
5145
  e.key === "Escape" && this.open && this.close();
@@ -5147,7 +5176,7 @@ let dt = class extends h {
5147
5176
  `;
5148
5177
  }
5149
5178
  };
5150
- dt.styles = d`
5179
+ ht.styles = d`
5151
5180
  :host {
5152
5181
  display: none;
5153
5182
  }
@@ -5276,22 +5305,22 @@ dt.styles = d`
5276
5305
  `;
5277
5306
  Kt([
5278
5307
  n({ type: Boolean, reflect: !0 })
5279
- ], dt.prototype, "open", 2);
5308
+ ], ht.prototype, "open", 2);
5280
5309
  Kt([
5281
5310
  n({ type: String })
5282
- ], dt.prototype, "title", 2);
5311
+ ], ht.prototype, "title", 2);
5283
5312
  Kt([
5284
5313
  n({ type: String })
5285
- ], dt.prototype, "size", 2);
5286
- dt = Kt([
5314
+ ], ht.prototype, "size", 2);
5315
+ ht = Kt([
5287
5316
  v("crt-modal")
5288
- ], dt);
5317
+ ], ht);
5289
5318
  var ea = Object.defineProperty, ra = Object.getOwnPropertyDescriptor, nt = (e, t, a, s) => {
5290
5319
  for (var r = s > 1 ? void 0 : s ? ra(t, a) : t, i = e.length - 1, o; i >= 0; i--)
5291
5320
  (o = e[i]) && (r = (s ? o(t, a, r) : o(r)) || r);
5292
5321
  return s && r && ea(t, a, r), r;
5293
5322
  };
5294
- let j = class extends h {
5323
+ let L = class extends h {
5295
5324
  constructor() {
5296
5325
  super(...arguments), this.position = "top-right", this.message = "", this.title = "", this.variant = "default", this.duration = 4e3, this._toasts = [], this._counter = 0, this._initialized = !1;
5297
5326
  }
@@ -5356,7 +5385,7 @@ let j = class extends h {
5356
5385
  `;
5357
5386
  }
5358
5387
  };
5359
- j.styles = d`
5388
+ L.styles = d`
5360
5389
  :host {
5361
5390
  position: fixed;
5362
5391
  z-index: 10001;
@@ -5525,31 +5554,31 @@ j.styles = d`
5525
5554
  `;
5526
5555
  nt([
5527
5556
  n({ type: String, reflect: !0 })
5528
- ], j.prototype, "position", 2);
5557
+ ], L.prototype, "position", 2);
5529
5558
  nt([
5530
5559
  n({ type: String })
5531
- ], j.prototype, "message", 2);
5560
+ ], L.prototype, "message", 2);
5532
5561
  nt([
5533
5562
  n({ type: String })
5534
- ], j.prototype, "title", 2);
5563
+ ], L.prototype, "title", 2);
5535
5564
  nt([
5536
5565
  n({ type: String })
5537
- ], j.prototype, "variant", 2);
5566
+ ], L.prototype, "variant", 2);
5538
5567
  nt([
5539
5568
  n({ type: Number })
5540
- ], j.prototype, "duration", 2);
5569
+ ], L.prototype, "duration", 2);
5541
5570
  nt([
5542
5571
  m()
5543
- ], j.prototype, "_toasts", 2);
5544
- j = nt([
5572
+ ], L.prototype, "_toasts", 2);
5573
+ L = nt([
5545
5574
  v("crt-toast")
5546
- ], j);
5547
- var aa = Object.defineProperty, sa = Object.getOwnPropertyDescriptor, St = (e, t, a, s) => {
5575
+ ], L);
5576
+ var aa = Object.defineProperty, sa = Object.getOwnPropertyDescriptor, Et = (e, t, a, s) => {
5548
5577
  for (var r = s > 1 ? void 0 : s ? sa(t, a) : t, i = e.length - 1, o; i >= 0; i--)
5549
5578
  (o = e[i]) && (r = (s ? o(t, a, r) : o(r)) || r);
5550
5579
  return s && r && aa(t, a, r), r;
5551
5580
  };
5552
- let Ct = class extends h {
5581
+ let Pt = class extends h {
5553
5582
  constructor() {
5554
5583
  super(...arguments), this.header = "", this.open = !1;
5555
5584
  }
@@ -5578,7 +5607,7 @@ let Ct = class extends h {
5578
5607
  `;
5579
5608
  }
5580
5609
  };
5581
- Ct.styles = d`
5610
+ Pt.styles = d`
5582
5611
  :host {
5583
5612
  display: block;
5584
5613
  font-family: var(--crt-font-family);
@@ -5649,15 +5678,15 @@ Ct.styles = d`
5649
5678
  color: var(--crt-text-secondary);
5650
5679
  }
5651
5680
  `;
5652
- St([
5681
+ Et([
5653
5682
  n({ type: String })
5654
- ], Ct.prototype, "header", 2);
5655
- St([
5683
+ ], Pt.prototype, "header", 2);
5684
+ Et([
5656
5685
  n({ type: Boolean, reflect: !0 })
5657
- ], Ct.prototype, "open", 2);
5658
- Ct = St([
5686
+ ], Pt.prototype, "open", 2);
5687
+ Pt = Et([
5659
5688
  v("crt-accordion-item")
5660
- ], Ct);
5689
+ ], Pt);
5661
5690
  let Yt = class extends h {
5662
5691
  constructor() {
5663
5692
  super(...arguments), this.multiple = !1, this._handleToggle = (e) => {
@@ -5681,18 +5710,18 @@ Yt.styles = d`
5681
5710
  display: block;
5682
5711
  }
5683
5712
  `;
5684
- St([
5713
+ Et([
5685
5714
  n({ type: Boolean })
5686
5715
  ], Yt.prototype, "multiple", 2);
5687
- Yt = St([
5716
+ Yt = Et([
5688
5717
  v("crt-accordion")
5689
5718
  ], Yt);
5690
- var ia = Object.defineProperty, oa = Object.getOwnPropertyDescriptor, Et = (e, t, a, s) => {
5719
+ var ia = Object.defineProperty, oa = Object.getOwnPropertyDescriptor, Mt = (e, t, a, s) => {
5691
5720
  for (var r = s > 1 ? void 0 : s ? oa(t, a) : t, i = e.length - 1, o; i >= 0; i--)
5692
5721
  (o = e[i]) && (r = (s ? o(t, a, r) : o(r)) || r);
5693
5722
  return s && r && ia(t, a, r), r;
5694
5723
  };
5695
- let rt = class extends h {
5724
+ let at = class extends h {
5696
5725
  constructor() {
5697
5726
  super(...arguments), this.bars = 20, this.mode = 1, this.barHeights = [], this.isActive = !1, this.visualize = () => {
5698
5727
  if (!this.isActive || !this.analyser || !this.dataArray) return;
@@ -5745,7 +5774,7 @@ let rt = class extends h {
5745
5774
  `;
5746
5775
  }
5747
5776
  };
5748
- rt.styles = d`
5777
+ at.styles = d`
5749
5778
  :host {
5750
5779
  display: block;
5751
5780
  }
@@ -5820,21 +5849,21 @@ rt.styles = d`
5820
5849
  animation: none;
5821
5850
  }
5822
5851
  `;
5823
- Et([
5852
+ Mt([
5824
5853
  n({ type: Number })
5825
- ], rt.prototype, "bars", 2);
5826
- Et([
5854
+ ], at.prototype, "bars", 2);
5855
+ Mt([
5827
5856
  n({ type: Number })
5828
- ], rt.prototype, "mode", 2);
5829
- Et([
5857
+ ], at.prototype, "mode", 2);
5858
+ Mt([
5830
5859
  m()
5831
- ], rt.prototype, "barHeights", 2);
5832
- Et([
5860
+ ], at.prototype, "barHeights", 2);
5861
+ Mt([
5833
5862
  m()
5834
- ], rt.prototype, "isActive", 2);
5835
- rt = Et([
5863
+ ], at.prototype, "isActive", 2);
5864
+ at = Mt([
5836
5865
  v("crt-visualizer")
5837
- ], rt);
5866
+ ], at);
5838
5867
  var na = Object.defineProperty, la = Object.getOwnPropertyDescriptor, pe = (e, t, a, s) => {
5839
5868
  for (var r = s > 1 ? void 0 : s ? la(t, a) : t, i = e.length - 1, o; i >= 0; i--)
5840
5869
  (o = e[i]) && (r = (s ? o(t, a, r) : o(r)) || r);
@@ -5912,6 +5941,8 @@ let Ot = class extends h {
5912
5941
  Ot.styles = d`
5913
5942
  :host {
5914
5943
  display: block;
5944
+ width: 100%;
5945
+ box-sizing: border-box;
5915
5946
  }
5916
5947
 
5917
5948
  /* Table Styles */
@@ -5994,10 +6025,12 @@ Ot.styles = d`
5994
6025
  }
5995
6026
 
5996
6027
  td.track-title {
5997
- white-space: nowrap;
6028
+ /* Allow titles to wrap on narrow screens to avoid forcing huge action column widths */
6029
+ white-space: normal;
5998
6030
  overflow: hidden;
5999
6031
  text-overflow: ellipsis;
6000
6032
  min-width: 0;
6033
+ word-break: break-word;
6001
6034
  }
6002
6035
 
6003
6036
  td.track-artist {
@@ -6009,7 +6042,8 @@ Ot.styles = d`
6009
6042
  }
6010
6043
 
6011
6044
  .remove-btn {
6012
- opacity: 0;
6045
+ /* Visible by default at low opacity so touch devices can see it */
6046
+ opacity: 0.65;
6013
6047
  transition: var(--crt-transition);
6014
6048
  }
6015
6049
 
@@ -6023,6 +6057,13 @@ Ot.styles = d`
6023
6057
  text-align: center;
6024
6058
  padding: var(--crt-spacing-xl);
6025
6059
  transition: var(--crt-transition);
6060
+ /* Ensure the empty preview stretches to the container width */
6061
+ width: 100%;
6062
+ box-sizing: border-box;
6063
+ display: flex;
6064
+ flex-direction: column;
6065
+ align-items: center;
6066
+ justify-content: center;
6026
6067
  }
6027
6068
 
6028
6069
  .empty-state:hover {
@@ -6047,8 +6088,9 @@ Ot.styles = d`
6047
6088
 
6048
6089
  /* Responsive: hide artist on narrow screens and allow horizontal scroll fallback */
6049
6090
  @media (max-width: 520px) {
6050
- td.track-artist { display: none; }
6051
- td.track-title { max-width: 140px; min-width: 0; }
6091
+ /* Keep artist visible on narrow screens but allow wrapping */
6092
+ td.track-artist { display: table-cell; max-width: 120px; white-space: normal; word-break: break-word; }
6093
+ td.track-title { max-width: 140px; min-width: 0; white-space: normal; }
6052
6094
  .table-wrapper { overflow-x: auto; min-width: 0; }
6053
6095
  }
6054
6096
 
@@ -6075,15 +6117,15 @@ pe([
6075
6117
  Ot = pe([
6076
6118
  v("crt-playlist")
6077
6119
  ], Ot);
6078
- var ca = Object.defineProperty, pa = Object.getOwnPropertyDescriptor, N = (e, t, a, s) => {
6120
+ var ca = Object.defineProperty, pa = Object.getOwnPropertyDescriptor, $ = (e, t, a, s) => {
6079
6121
  for (var r = s > 1 ? void 0 : s ? pa(t, a) : t, i = e.length - 1, o; i >= 0; i--)
6080
6122
  (o = e[i]) && (r = (s ? o(t, a, r) : o(r)) || r);
6081
6123
  return s && r && ca(t, a, r), r;
6082
6124
  };
6083
- let _ = class extends h {
6125
+ let x = class extends h {
6084
6126
  constructor() {
6085
- super(...arguments), this.tracks = [], this.currentIndex = 0, this.isPlaying = !1, this.currentTime = 0, this.duration = 0, this.volume = 80, this.togglePlay = () => {
6086
- this.isPlaying ? this.pause() : this.play();
6127
+ 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 () => {
6128
+ this.isPlaying ? this.pause() : await this.play();
6087
6129
  }, this.previousTrack = () => {
6088
6130
  this.tracks.length !== 0 && this.loadTrack((this.currentIndex - 1 + this.tracks.length) % this.tracks.length);
6089
6131
  }, this.nextTrack = () => {
@@ -6110,7 +6152,12 @@ let _ = class extends h {
6110
6152
  this.audio && (this.audio.volume = this.volume / 100);
6111
6153
  }
6112
6154
  updated(e) {
6113
- e.has("tracks") && this.tracks.length > 0 && (e.get("tracks") === void 0 || e.get("tracks")?.length === 0) && this.loadTrack(0);
6155
+ 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)) {
6156
+ const t = Math.max(0, Number(this.autoplayDelay) || 0);
6157
+ setTimeout(() => {
6158
+ this.isPlaying || this.play();
6159
+ }, t);
6160
+ }
6114
6161
  }
6115
6162
  loadTrack(e) {
6116
6163
  if (e < 0 || e >= this.tracks.length) return;
@@ -6124,12 +6171,45 @@ let _ = class extends h {
6124
6171
  detail: { index: e, track: this.tracks[e] }
6125
6172
  }));
6126
6173
  }
6127
- play() {
6128
- !this.tracks[this.currentIndex]?.url || this.tracks.length === 0 || this.audio?.src && (this.visualizer?.connectAudio(this.audio), this.audio.play(), this.isPlaying = !0, this.visualizer?.start());
6174
+ async play() {
6175
+ if (!(!this.tracks[this.currentIndex]?.url || this.tracks.length === 0) && this.audio) {
6176
+ this.visualizer?.connectAudio(this.audio);
6177
+ try {
6178
+ const t = this.audio.play();
6179
+ t instanceof Promise && await t, this.isPlaying = !0, this.autoplayMuted = !1, this.visualizer?.start();
6180
+ try {
6181
+ this.audio.muted = !1;
6182
+ } catch {
6183
+ }
6184
+ } catch (t) {
6185
+ console.warn("Playback failed:", t);
6186
+ try {
6187
+ this.audio.muted = !0;
6188
+ const a = this.audio.play();
6189
+ a instanceof Promise && await a, this.isPlaying = !0, this.autoplayMuted = !0, this.visualizer?.start(), console.info("Muted autoplay succeeded as fallback.");
6190
+ } catch (a) {
6191
+ console.warn("Muted autoplay also failed:", a), this.isPlaying = !1, this.visualizer?.stop();
6192
+ }
6193
+ }
6194
+ }
6129
6195
  }
6130
6196
  pause() {
6131
6197
  this.audio?.pause(), this.isPlaying = !1, this.visualizer?.stop();
6132
6198
  }
6199
+ async unmuteAndResume() {
6200
+ if (this.audio)
6201
+ try {
6202
+ this.audio.muted = !1;
6203
+ try {
6204
+ this.visualizer?.audioContext?.resume?.();
6205
+ } catch {
6206
+ }
6207
+ const e = this.audio.play();
6208
+ e instanceof Promise && await e, this.autoplayMuted = !1, this.isPlaying = !0;
6209
+ } catch (e) {
6210
+ console.warn("Unmute / resume failed:", e);
6211
+ }
6212
+ }
6133
6213
  formatTime(e) {
6134
6214
  if (!e || isNaN(e)) return "00:00";
6135
6215
  const t = Math.floor(e / 60), a = Math.floor(e % 60);
@@ -6199,6 +6279,12 @@ let _ = class extends h {
6199
6279
  @change="${this.handleVolumeChange}"
6200
6280
  ></crt-slider>
6201
6281
  </div>
6282
+ ${this.autoplayMuted ? l`
6283
+ <div style="display:flex;align-items:center;gap:8px;">
6284
+ <crt-button variant="success" @click="${() => this.unmuteAndResume()}">UNMUTE</crt-button>
6285
+ <crt-text muted style="font-size:12px;">Autoplay started muted — click to unmute</crt-text>
6286
+ </div>
6287
+ ` : ""}
6202
6288
  </div>
6203
6289
  </div>
6204
6290
  ` : l`
@@ -6220,7 +6306,7 @@ let _ = class extends h {
6220
6306
  `;
6221
6307
  }
6222
6308
  };
6223
- _.styles = d`
6309
+ x.styles = d`
6224
6310
  :host {
6225
6311
  display: block;
6226
6312
  font-family: var(--crt-font-family);
@@ -6373,39 +6459,48 @@ _.styles = d`
6373
6459
  opacity: 0.5;
6374
6460
  }
6375
6461
  `;
6376
- N([
6462
+ $([
6377
6463
  n({ type: Array })
6378
- ], _.prototype, "tracks", 2);
6379
- N([
6464
+ ], x.prototype, "tracks", 2);
6465
+ $([
6380
6466
  n({ type: Number })
6381
- ], _.prototype, "currentIndex", 2);
6382
- N([
6467
+ ], x.prototype, "currentIndex", 2);
6468
+ $([
6469
+ n({ type: Boolean })
6470
+ ], x.prototype, "autoplay", 2);
6471
+ $([
6472
+ n({ type: Number })
6473
+ ], x.prototype, "autoplayDelay", 2);
6474
+ $([
6383
6475
  m()
6384
- ], _.prototype, "isPlaying", 2);
6385
- N([
6476
+ ], x.prototype, "isPlaying", 2);
6477
+ $([
6386
6478
  m()
6387
- ], _.prototype, "currentTime", 2);
6388
- N([
6479
+ ], x.prototype, "currentTime", 2);
6480
+ $([
6389
6481
  m()
6390
- ], _.prototype, "duration", 2);
6391
- N([
6482
+ ], x.prototype, "duration", 2);
6483
+ $([
6392
6484
  m()
6393
- ], _.prototype, "volume", 2);
6394
- N([
6485
+ ], x.prototype, "volume", 2);
6486
+ $([
6487
+ m()
6488
+ ], x.prototype, "autoplayMuted", 2);
6489
+ $([
6395
6490
  ee("audio")
6396
- ], _.prototype, "audio", 2);
6397
- N([
6491
+ ], x.prototype, "audio", 2);
6492
+ $([
6398
6493
  ee("crt-visualizer")
6399
- ], _.prototype, "visualizer", 2);
6400
- _ = N([
6494
+ ], x.prototype, "visualizer", 2);
6495
+ x = $([
6401
6496
  v("crt-music-player")
6402
- ], _);
6497
+ ], x);
6403
6498
  var da = Object.defineProperty, ha = Object.getOwnPropertyDescriptor, gt = (e, t, a, s) => {
6404
6499
  for (var r = s > 1 ? void 0 : s ? ha(t, a) : t, i = e.length - 1, o; i >= 0; i--)
6405
6500
  (o = e[i]) && (r = (s ? o(t, a, r) : o(r)) || r);
6406
6501
  return s && r && da(t, a, r), r;
6407
6502
  };
6408
- let W = class extends h {
6503
+ let X = class extends h {
6409
6504
  constructor() {
6410
6505
  super(), this.rows = 10, this.prompt = "$", this.disabled = !1, this.outputs = [], this.input = "", this.handleFocus = () => {
6411
6506
  this.disabled || this.focus();
@@ -6490,9 +6585,11 @@ let W = class extends h {
6490
6585
  `;
6491
6586
  }
6492
6587
  };
6493
- W.styles = d`
6494
- :host { display: block; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, 'Roboto Mono', monospace; }
6588
+ X.styles = d`
6589
+ :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; }
6495
6590
  .term {
6591
+ width: 100%;
6592
+ max-width: none;
6496
6593
  background: #0b0f0b;
6497
6594
  color: #8aff8a;
6498
6595
  padding: 12px;
@@ -6530,30 +6627,30 @@ W.styles = d`
6530
6627
  `;
6531
6628
  gt([
6532
6629
  n({ type: Number })
6533
- ], W.prototype, "rows", 2);
6630
+ ], X.prototype, "rows", 2);
6534
6631
  gt([
6535
6632
  n({ type: String })
6536
- ], W.prototype, "prompt", 2);
6633
+ ], X.prototype, "prompt", 2);
6537
6634
  gt([
6538
6635
  n({ type: Boolean, reflect: !0 })
6539
- ], W.prototype, "disabled", 2);
6636
+ ], X.prototype, "disabled", 2);
6540
6637
  gt([
6541
6638
  m()
6542
- ], W.prototype, "outputs", 2);
6639
+ ], X.prototype, "outputs", 2);
6543
6640
  gt([
6544
6641
  m()
6545
- ], W.prototype, "input", 2);
6546
- W = gt([
6642
+ ], X.prototype, "input", 2);
6643
+ X = gt([
6547
6644
  v("crt-terminal")
6548
- ], W);
6549
- var va = Object.defineProperty, ga = Object.getOwnPropertyDescriptor, Dt = (e, t, a, s) => {
6550
- for (var r = s > 1 ? void 0 : s ? ga(t, a) : t, i = e.length - 1, o; i >= 0; i--)
6645
+ ], X);
6646
+ var va = Object.defineProperty, ua = Object.getOwnPropertyDescriptor, lt = (e, t, a, s) => {
6647
+ for (var r = s > 1 ? void 0 : s ? ua(t, a) : t, i = e.length - 1, o; i >= 0; i--)
6551
6648
  (o = e[i]) && (r = (s ? o(t, a, r) : o(r)) || r);
6552
6649
  return s && r && va(t, a, r), r;
6553
6650
  };
6554
- let at = class extends h {
6651
+ let I = class extends h {
6555
6652
  constructor() {
6556
- super(...arguments), this.tracks = [], this.currentIndex = 0, this.showUploadModal = !1, this.handleFilesChanged = (e) => {
6653
+ super(...arguments), this.autoplay = !1, this.autoplayDelay = 500, this.tracks = [], this.currentIndex = 0, this.showUploadModal = !1, this.handleFilesChanged = (e) => {
6557
6654
  const a = e.detail.files.filter((s) => s.type.startsWith("audio/") || s.name.endsWith(".mp3") || s.name.endsWith(".wav") || s.name.endsWith(".ogg") || s.name.endsWith(".flac")).map((s) => {
6558
6655
  const r = s.name.replace(/\.[^/.]+$/, "");
6559
6656
  let i = "UNKNOWN ARTIST", o = r.toUpperCase();
@@ -6599,6 +6696,8 @@ let at = class extends h {
6599
6696
  <crt-music-player
6600
6697
  .tracks="${this.tracks}"
6601
6698
  .currentIndex="${this.currentIndex}"
6699
+ .autoplay="${this.autoplay}"
6700
+ .autoplayDelay="${this.autoplayDelay}"
6602
6701
  @track-change="${this.handleTrackChange}"
6603
6702
  ></crt-music-player>
6604
6703
  </div>
@@ -6639,7 +6738,7 @@ let at = class extends h {
6639
6738
  `;
6640
6739
  }
6641
6740
  };
6642
- at.styles = d`
6741
+ I.styles = d`
6643
6742
  :host {
6644
6743
  display: block;
6645
6744
  font-family: var(--crt-font-family);
@@ -6712,61 +6811,67 @@ at.styles = d`
6712
6811
  padding-top: var(--crt-spacing-md);
6713
6812
  }
6714
6813
  `;
6715
- Dt([
6814
+ lt([
6815
+ n({ type: Boolean })
6816
+ ], I.prototype, "autoplay", 2);
6817
+ lt([
6818
+ n({ type: Number })
6819
+ ], I.prototype, "autoplayDelay", 2);
6820
+ lt([
6716
6821
  m()
6717
- ], at.prototype, "tracks", 2);
6718
- Dt([
6822
+ ], I.prototype, "tracks", 2);
6823
+ lt([
6719
6824
  m()
6720
- ], at.prototype, "currentIndex", 2);
6721
- Dt([
6825
+ ], I.prototype, "currentIndex", 2);
6826
+ lt([
6722
6827
  m()
6723
- ], at.prototype, "showUploadModal", 2);
6724
- Dt([
6828
+ ], I.prototype, "showUploadModal", 2);
6829
+ lt([
6725
6830
  ee("crt-file-upload")
6726
- ], at.prototype, "fileUpload", 2);
6727
- at = Dt([
6831
+ ], I.prototype, "fileUpload", 2);
6832
+ I = lt([
6728
6833
  v("crt-music-station")
6729
- ], at);
6834
+ ], I);
6730
6835
  export {
6731
6836
  Yt as Accordion,
6732
- Ct as AccordionItem,
6733
- $ as Alert,
6734
- T as Avatar,
6837
+ Pt as AccordionItem,
6838
+ z as Alert,
6839
+ j as Avatar,
6735
6840
  Rt as AvatarGroup,
6736
6841
  Bt as Badge,
6737
- kt as Breadcrumb,
6738
- z as Button,
6739
- x as Calendar,
6842
+ $t as Breadcrumb,
6843
+ C as Button,
6844
+ w as Calendar,
6740
6845
  Qt as Card,
6741
- H as Checkbox,
6742
- q as CodeExample,
6743
- E as FileUpload,
6744
- zt as Grid,
6846
+ Y as Checkbox,
6847
+ W as CodeExample,
6848
+ M as FileUpload,
6849
+ Ct as Grid,
6745
6850
  Nt as Heading,
6746
- xt as Icon,
6747
- Q as Input,
6748
- F as Link,
6749
- dt as Modal,
6750
- _ as MusicPlayer,
6751
- at as MusicStation,
6752
- et as Pagination,
6851
+ wt as Icon,
6852
+ J as Input,
6853
+ H as Link,
6854
+ ht as Modal,
6855
+ x as MusicPlayer,
6856
+ I as MusicStation,
6857
+ rt as Pagination,
6753
6858
  Ot as Playlist,
6754
- w as Progress,
6755
- Y as Radio,
6756
- pt as RadioGroup,
6859
+ k as Progress,
6860
+ V as Radio,
6861
+ dt as RadioGroup,
6757
6862
  D as Select,
6758
- V as Skeleton,
6863
+ q as Skeleton,
6759
6864
  Ht as SkeletonCard,
6760
6865
  Ft as SkeletonText,
6761
- k as Slider,
6762
- $t as Spinner,
6763
- _t as Table,
6764
- wt as Tabs,
6765
- W as Terminal,
6866
+ _ as Slider,
6867
+ _t as Spinner,
6868
+ zt as Table,
6869
+ kt as Tabs,
6870
+ X as Terminal,
6766
6871
  Ut as Text,
6767
- J as Textarea,
6768
- j as Toast,
6769
- M as Toggle,
6770
- tt as Tooltip,
6771
- rt as Visualizer
6872
+ tt as Textarea,
6873
+ L as Toast,
6874
+ T as Toggle,
6875
+ et as Tooltip,
6876
+ at as Visualizer
6772
6877
  };