@mhmo91/schmancy 0.10.31 → 0.10.33

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 (95) hide show
  1. package/dist/agent/schmancy.agent.js +2217 -2140
  2. package/dist/agent/schmancy.agent.js.map +1 -1
  3. package/dist/avatar.cjs +1 -1
  4. package/dist/avatar.js +1 -1
  5. package/dist/badge.cjs +1 -1
  6. package/dist/badge.js +1 -1
  7. package/dist/{button-DlqCWuk-.cjs → button-nDZQe1ES.cjs} +1 -1
  8. package/dist/{button-DlqCWuk-.cjs.map → button-nDZQe1ES.cjs.map} +1 -1
  9. package/dist/{button-BnGN6SsV.js → button-qARUurjf.js} +1 -1
  10. package/dist/{button-BnGN6SsV.js.map → button-qARUurjf.js.map} +1 -1
  11. package/dist/button.cjs +1 -1
  12. package/dist/button.js +2 -2
  13. package/dist/{chips-lipKBK9P.cjs → chips-DIZFWnDZ.cjs} +1 -1
  14. package/dist/{chips-lipKBK9P.cjs.map → chips-DIZFWnDZ.cjs.map} +1 -1
  15. package/dist/{chips-B8HM25xv.js → chips-xaoSmwBK.js} +1 -1
  16. package/dist/{chips-B8HM25xv.js.map → chips-xaoSmwBK.js.map} +1 -1
  17. package/dist/chips.cjs +1 -1
  18. package/dist/chips.js +1 -1
  19. package/dist/content-drawer.cjs +1 -1
  20. package/dist/content-drawer.js +1 -1
  21. package/dist/{date-range-CObvXmZ4.js → date-range-8OkCahnR.js} +1 -1
  22. package/dist/{date-range-CObvXmZ4.js.map → date-range-8OkCahnR.js.map} +1 -1
  23. package/dist/{date-range-DXct0_Jg.cjs → date-range-Bbzg9aym.cjs} +1 -1
  24. package/dist/{date-range-DXct0_Jg.cjs.map → date-range-Bbzg9aym.cjs.map} +1 -1
  25. package/dist/date-range.cjs +1 -1
  26. package/dist/date-range.js +1 -1
  27. package/dist/{details-DSGEewvZ.cjs → details-3X9YKpuP.cjs} +1 -1
  28. package/dist/{details-DSGEewvZ.cjs.map → details-3X9YKpuP.cjs.map} +1 -1
  29. package/dist/{details-nRdT8J-W.js → details-BO_3CCNn.js} +1 -1
  30. package/dist/{details-nRdT8J-W.js.map → details-BO_3CCNn.js.map} +1 -1
  31. package/dist/details.cjs +1 -1
  32. package/dist/details.js +1 -1
  33. package/dist/{directives-DJbBHfID.cjs → directives-BOsvcH83.cjs} +11 -11
  34. package/dist/directives-BOsvcH83.cjs.map +1 -0
  35. package/dist/{directives-DZzxV3Hh.js → directives-D7AoVfPK.js} +231 -158
  36. package/dist/directives-D7AoVfPK.js.map +1 -0
  37. package/dist/directives.cjs +1 -1
  38. package/dist/directives.js +2 -2
  39. package/dist/form.cjs +1 -1
  40. package/dist/form.js +2 -2
  41. package/dist/handover/agent-runtime-followups.md +1 -1
  42. package/dist/handover/agent-runtime-v1.md +3 -3
  43. package/dist/index.cjs +1 -1
  44. package/dist/index.js +11 -11
  45. package/dist/{magnetic-MQ3HMHJi.cjs → magnetic-DKtc4umC.cjs} +1 -1
  46. package/dist/magnetic-DKtc4umC.cjs.map +1 -0
  47. package/dist/{magnetic-B2VKNfDu.js → magnetic-DaOOv5Dz.js} +13 -9
  48. package/dist/magnetic-DaOOv5Dz.js.map +1 -0
  49. package/dist/{menu-BNPbrAmd.cjs → menu-B5EKUeeD.cjs} +1 -1
  50. package/dist/{menu-BNPbrAmd.cjs.map → menu-B5EKUeeD.cjs.map} +1 -1
  51. package/dist/{menu-D2cZSp74.js → menu-CgdXrzir.js} +1 -1
  52. package/dist/{menu-D2cZSp74.js.map → menu-CgdXrzir.js.map} +1 -1
  53. package/dist/menu.cjs +1 -1
  54. package/dist/menu.js +1 -1
  55. package/dist/nav-drawer.cjs +1 -1
  56. package/dist/nav-drawer.js +1 -1
  57. package/dist/navigation-bar.cjs +1 -1
  58. package/dist/navigation-bar.js +1 -1
  59. package/dist/{overlay-U5jr3OYG.cjs → overlay-5PMZ75PO.cjs} +1 -1
  60. package/dist/{overlay-U5jr3OYG.cjs.map → overlay-5PMZ75PO.cjs.map} +1 -1
  61. package/dist/{overlay-BVdgWkIj.js → overlay-BWcB2pRx.js} +2 -2
  62. package/dist/{overlay-BVdgWkIj.js.map → overlay-BWcB2pRx.js.map} +1 -1
  63. package/dist/overlay.cjs +1 -1
  64. package/dist/{overlay.confirm-body-BYPEKZtR.js → overlay.confirm-body-B7W0DOGS.js} +1 -1
  65. package/dist/{overlay.confirm-body-BYPEKZtR.js.map → overlay.confirm-body-B7W0DOGS.js.map} +1 -1
  66. package/dist/{overlay.confirm-body-BCWt92R7.cjs → overlay.confirm-body-CsvwcBvG.cjs} +1 -1
  67. package/dist/{overlay.confirm-body-BCWt92R7.cjs.map → overlay.confirm-body-CsvwcBvG.cjs.map} +1 -1
  68. package/dist/overlay.js +3 -3
  69. package/dist/{overlay.service-D4_SgGuT.cjs → overlay.service-CC4zckoV.cjs} +1 -1
  70. package/dist/{overlay.service-D4_SgGuT.cjs.map → overlay.service-CC4zckoV.cjs.map} +1 -1
  71. package/dist/{overlay.service-Dq2X6ibl.js → overlay.service-zx465FI8.js} +2 -2
  72. package/dist/{overlay.service-Dq2X6ibl.js.map → overlay.service-zx465FI8.js.map} +1 -1
  73. package/dist/{select-gRJb1TEf.js → select-C_ljy5k4.js} +1 -1
  74. package/dist/{select-gRJb1TEf.js.map → select-C_ljy5k4.js.map} +1 -1
  75. package/dist/{select-Gb9fTA4M.cjs → select-D61MbhmA.cjs} +1 -1
  76. package/dist/{select-Gb9fTA4M.cjs.map → select-D61MbhmA.cjs.map} +1 -1
  77. package/dist/select.cjs +1 -1
  78. package/dist/select.js +1 -1
  79. package/dist/{src-DavVEUeO.js → src-CdX0NekF.js} +8 -8
  80. package/dist/{src-DavVEUeO.js.map → src-CdX0NekF.js.map} +1 -1
  81. package/dist/{src-C_7k7YhE.cjs → src-DEgL_xJv.cjs} +1 -1
  82. package/dist/{src-C_7k7YhE.cjs.map → src-DEgL_xJv.cjs.map} +1 -1
  83. package/dist/teleport.cjs +1 -1
  84. package/dist/teleport.js +1 -1
  85. package/package.json +21 -21
  86. package/src/directives/art/art.directive.ts +4 -2
  87. package/src/directives/art/effects/starfield.ts +222 -77
  88. package/src/directives/art/types.ts +41 -6
  89. package/src/directives/magnetic.ts +8 -1
  90. package/types/src/directives/art/effects/starfield.d.ts +11 -4
  91. package/types/src/directives/art/types.d.ts +41 -6
  92. package/dist/directives-DJbBHfID.cjs.map +0 -1
  93. package/dist/directives-DZzxV3Hh.js.map +0 -1
  94. package/dist/magnetic-B2VKNfDu.js.map +0 -1
  95. package/dist/magnetic-MQ3HMHJi.cjs.map +0 -1
@@ -7,7 +7,7 @@ import { t as u } from "./layout-CJ01zE9V.js";
7
7
  import { t as d } from "./overlay-stack-D2rgxQLh.js";
8
8
  import "./gravity-sVK3zGBF.js";
9
9
  import { r as f } from "./discovery.service-DZFxtRwW.js";
10
- import "./magnetic-B2VKNfDu.js";
10
+ import "./magnetic-DaOOv5Dz.js";
11
11
  import { BehaviorSubject as p, EMPTY as m, Observable as h, Subject as g, Subscription as _, animationFrameScheduler as v, combineLatest as y, concat as b, debounceTime as x, defer as S, filter as C, forkJoin as ee, from as w, fromEvent as T, interval as E, merge as te, of as ne, takeUntil as re, timer as D } from "rxjs";
12
12
  import { auditTime as ie, catchError as O, debounceTime as ae, delay as oe, distinctUntilChanged as k, filter as A, finalize as se, first as ce, map as j, observeOn as le, repeat as ue, skip as de, startWith as fe, switchMap as M, take as N, takeUntil as P, takeWhile as F, tap as I } from "rxjs/operators";
13
13
  import { noChange as L, nothing as R } from "lit";
@@ -585,39 +585,33 @@ var we = [
585
585
  xRange: 20,
586
586
  vx: -.2
587
587
  }
588
- ];
589
- function ke(e) {
590
- let { element: t } = e, n = W("starfield-overlay"), r = document.createElement("div");
591
- r.style.cssText = "position:absolute;bottom:0;right:0;width:66vw;height:66vw;", n.appendChild(r);
592
- let i = Array.from({ length: 6 }, (e, t) => {
593
- let n = [];
594
- for (let e = 0; e < 7; e++) {
595
- let e = 96 * Math.random() + 2, t = 94 * Math.random() + 3, r = .8 + 1.5 * Math.random(), i = .3 + .7 * Math.random();
596
- n.push(`radial-gradient(circle ${r}px at ${e}% ${t}%, rgba(255,255,255,${i}) 0%, transparent 100%)`);
597
- }
598
- let r = .6 * t;
599
- return {
600
- bg: n.join(","),
601
- appearDelay: r,
602
- twinkleDuration: 5 + .7 * t,
603
- twinkleDelay: r + 2.5
604
- };
605
- }), a = [];
606
- for (let e of i) {
607
- let t = document.createElement("div");
608
- t.style.cssText = `position:absolute;inset:0;opacity:0;will-change:opacity;background:${e.bg};`, r.appendChild(t), a.push({
609
- element: t,
610
- appearDelay: e.appearDelay,
611
- twinkleDuration: e.twinkleDuration,
612
- twinkleDelay: e.twinkleDelay
613
- });
614
- }
615
- t.appendChild(n), e.overlayElement = n, e.starfield = {
616
- groups: a,
617
- startTime: performance.now()
618
- };
619
- }
620
- var Ae = B(class extends z {
588
+ ], ke = 64, Ae = [
589
+ [
590
+ 205,
591
+ 222,
592
+ 255
593
+ ],
594
+ [
595
+ 224,
596
+ 233,
597
+ 255
598
+ ],
599
+ [
600
+ 255,
601
+ 255,
602
+ 255
603
+ ],
604
+ [
605
+ 255,
606
+ 240,
607
+ 214
608
+ ],
609
+ [
610
+ 255,
611
+ 222,
612
+ 184
613
+ ]
614
+ ], je = B(class extends z {
621
615
  constructor(...e) {
622
616
  super(...e), this.state = null;
623
617
  }
@@ -625,14 +619,15 @@ var Ae = B(class extends z {
625
619
  return L;
626
620
  }
627
621
  update(e, [t]) {
628
- let n = e.element, { name: r, color: i, intensity: a = 1, speed: o = 1 } = t;
629
- if (!this.state || this.state.effect === r && this.state.color === i && this.state.intensity === a && this.state.speed === o || this.cleanup(), !this.state) {
622
+ let n = e.element, { name: r, color: i, intensity: a = 1, speed: o = 1, density: s = 1 } = t;
623
+ if (!this.state || this.state.effect === r && this.state.color === i && this.state.intensity === a && this.state.speed === o && this.state.density === s || this.cleanup(), !this.state) {
630
624
  let e = n.style.position;
631
625
  this.state = {
632
626
  effect: r,
633
627
  color: i,
634
628
  intensity: a,
635
629
  speed: o,
630
+ density: s,
636
631
  element: n,
637
632
  isVisible: !0,
638
633
  initialized: !1,
@@ -775,7 +770,57 @@ var Ae = B(class extends z {
775
770
  };
776
771
  })(this.state);
777
772
  break;
778
- case "starfield": ke(this.state);
773
+ case "starfield": (function(e) {
774
+ let { element: t } = e, n = W("starfield-overlay"), r = document.createElement("canvas");
775
+ r.style.cssText = "position:absolute;inset:0;width:100%;height:100%;", n.appendChild(r), t.appendChild(n);
776
+ let i = r.getContext("2d");
777
+ if (!i) return;
778
+ let a = Math.min(window.devicePixelRatio || 1, 2), o = t.getBoundingClientRect(), s = Math.max(1, Math.round(o.width * a)), c = Math.max(1, Math.round(o.height * a));
779
+ r.width = s, r.height = c;
780
+ let l = Ae.map(([e, t, n]) => {
781
+ let r = document.createElement("canvas");
782
+ r.width = ke, r.height = ke;
783
+ let i = r.getContext("2d"), a = i.createRadialGradient(32, 32, 0, 32, 32, 32);
784
+ return a.addColorStop(0, `rgba(${e},${t},${n},1)`), a.addColorStop(.18, `rgba(${e},${t},${n},0.35)`), a.addColorStop(.5, `rgba(${e},${t},${n},0)`), i.fillStyle = a, i.fillRect(0, 0, ke, ke), r;
785
+ }), u = document.createElement("canvas");
786
+ u.width = 512, u.height = 512;
787
+ let d = u.getContext("2d"), f = d.createRadialGradient(256, 256, 0, 256, 256, 256);
788
+ f.addColorStop(0, "rgba(150,170,255,0.16)"), f.addColorStop(.4, "rgba(120,110,210,0.07)"), f.addColorStop(1, "rgba(0,0,0,0)"), d.fillStyle = f, d.fillRect(0, 0, 512, 512);
789
+ let p = Math.min(140, Math.round(90 * Math.min(1, Math.max(.5, o.width * o.height / 921600)) * e.density)), m = new Float32Array(p), h = new Float32Array(p), g = new Float32Array(p), _ = new Float32Array(p), v = new Float32Array(p), y = new Float32Array(p), b = new Uint8Array(p), x = new Float32Array(p);
790
+ for (let e = 0; e < p; e++) {
791
+ let t = e % 3, n = t === 0 ? .18 : t === 1 ? .5 : 1;
792
+ m[e] = Math.random(), h[e] = Math.random(), g[e] = (.7 + 1.6 * Math.random()) * (.6 + .7 * n), _[e] = Math.random() * Math.PI * 2, v[e] = .6 + 1.8 * Math.random(), y[e] = n, b[e] = Math.random() < .7 ? Math.random() < .5 ? 0 : 1 : 2 + Math.floor(3 * Math.random()), x[e] = 1.6 * (1 - n) + .8 * Math.random();
793
+ }
794
+ e.overlayElement = n, e.starfield = {
795
+ canvas: r,
796
+ ctx: i,
797
+ sprites: l,
798
+ nebula: u,
799
+ starCount: p,
800
+ sx: m,
801
+ sy: h,
802
+ sr: g,
803
+ sphase: _,
804
+ stwinkle: v,
805
+ sdepth: y,
806
+ sbucket: b,
807
+ sappear: x,
808
+ cx: new Float32Array(3),
809
+ cy: new Float32Array(3),
810
+ cvx: new Float32Array(3),
811
+ cvy: new Float32Array(3),
812
+ clife: new Float32Array(3),
813
+ cometCount: 3,
814
+ nextCometAt: performance.now() + 14e3 + 16e3 * Math.random(),
815
+ dpr: a,
816
+ deviceWidth: s,
817
+ deviceHeight: c,
818
+ reducedMotion: window.matchMedia("(prefers-reduced-motion: reduce)").matches,
819
+ drawnStatic: !1,
820
+ lastFrame: performance.now(),
821
+ startTime: performance.now()
822
+ };
823
+ })(this.state);
779
824
  }
780
825
  this.state.initialized = !0;
781
826
  }
@@ -958,26 +1003,54 @@ var Ae = B(class extends z {
958
1003
  })(this.state, t);
959
1004
  break;
960
1005
  case "starfield": (function(e, t) {
961
- if (!e.starfield) return;
962
- let { intensity: n = 1, speed: r = 1 } = e, { groups: i, startTime: a } = e.starfield, o = (t - a) / 1e3 * r;
963
- for (let e of i) {
964
- if (n <= 0) {
965
- e.element.style.opacity = "0";
966
- continue;
967
- }
968
- let t = e.appearDelay, r;
969
- if (o < t) r = 0;
970
- else if (o < t + 2.5) r = 1 - (1 - (o - t) / 2.5) ** 3;
1006
+ let n = e.starfield;
1007
+ if (!n) return;
1008
+ let { intensity: r = 1, speed: i = 1 } = e, { ctx: a, canvas: o } = n;
1009
+ if (r <= 0) return void a.clearRect(0, 0, n.deviceWidth, n.deviceHeight);
1010
+ let s = o.clientWidth, c = o.clientHeight, l = Math.max(1, Math.round(s * n.dpr)), u = Math.max(1, Math.round(c * n.dpr));
1011
+ l === n.deviceWidth && u === n.deviceHeight || (o.width = l, o.height = u, n.deviceWidth = l, n.deviceHeight = u, n.drawnStatic = !1);
1012
+ let d = n.deviceWidth, f = n.deviceHeight;
1013
+ if (n.reducedMotion && n.drawnStatic) return;
1014
+ let p = (t - n.startTime) / 1e3 * i, m = Math.min((t - n.lastFrame) / 1e3, .05);
1015
+ n.lastFrame = t, a.clearRect(0, 0, d, f);
1016
+ let h = .14 * (.7 * Math.min(1, p / 4) + .3) * r;
1017
+ if (h > .001) {
1018
+ let e = 1.3 * Math.max(d, f);
1019
+ a.globalAlpha = h, a.drawImage(n.nebula, .78 * d - e / 2, .28 * f - e / 2, e, e);
1020
+ }
1021
+ for (let e = 0; e < n.starCount; e++) {
1022
+ let t = n.sappear[e], i;
1023
+ if (n.reducedMotion) i = 1;
971
1024
  else {
972
- let t = o - e.twinkleDelay;
973
- if (t < 0) r = 1;
974
- else {
975
- let n = t % e.twinkleDuration / e.twinkleDuration;
976
- r = n < .25 ? 1 - n / .25 * .4 : n < .5 ? .6 + (n - .25) / .25 * .25 : n < .75 ? .85 - (n - .5) / .25 * .3 : .55 + (n - .75) / .25 * .45;
1025
+ if (p < t) continue;
1026
+ if (p < t + 2.5) {
1027
+ let e = (p - t) / 2.5;
1028
+ i = 1 - (1 - e) * (1 - e) * (1 - e);
1029
+ } else i = 1;
1030
+ }
1031
+ let o = n.sdepth[e], s = n.reducedMotion ? .9 : .82 + .18 * Math.sin(p * n.stwinkle[e] + n.sphase[e]), c = n.reducedMotion ? 0 : 14 * o * n.dpr, l = n.sx[e] * d + Math.sin(.05 * p + n.sphase[e]) * c, u = n.sy[e] * f + Math.cos(.04 * p + n.sphase[e]) * c * .6, m = n.sr[e] * n.dpr * 2.3;
1032
+ a.globalAlpha = i * s * (.3 + .5 * o) * r, a.drawImage(n.sprites[n.sbucket[e]], l - m, u - m, 2 * m, 2 * m);
1033
+ }
1034
+ if (!n.reducedMotion) {
1035
+ if (t >= n.nextCometAt) {
1036
+ for (let e = 0; e < n.cometCount; e++) {
1037
+ if (n.clife[e] > 0) continue;
1038
+ let t = Math.random() < .5;
1039
+ n.cx[e] = (t ? -.05 : 1.05) * d, n.cy[e] = .45 * Math.random() * f;
1040
+ let r = (520 + 420 * Math.random()) * n.dpr;
1041
+ n.cvx[e] = (t ? 1 : -1) * r, n.cvy[e] = (.35 + .35 * Math.random()) * r, n.clife[e] = 1;
1042
+ break;
977
1043
  }
1044
+ n.nextCometAt = t + (2e4 + 25e3 * Math.random()) / i;
1045
+ }
1046
+ for (let e = 0; e < n.cometCount; e++) {
1047
+ if (n.clife[e] <= 0) continue;
1048
+ n.cx[e] += n.cvx[e] * m * i, n.cy[e] += n.cvy[e] * m * i, n.clife[e] -= m / 1.6;
1049
+ let t = n.cx[e] - .16 * n.cvx[e], o = n.cy[e] - .16 * n.cvy[e], s = a.createLinearGradient(n.cx[e], n.cy[e], t, o), c = .55 * Math.max(0, Math.min(1, n.clife[e])) * r;
1050
+ s.addColorStop(0, `rgba(255,255,255,${c})`), s.addColorStop(.4, `rgba(190,210,255,${.4 * c})`), s.addColorStop(1, "rgba(190,210,255,0)"), a.globalAlpha = 1, a.strokeStyle = s, a.lineWidth = 2 * n.dpr, a.lineCap = "round", a.beginPath(), a.moveTo(n.cx[e], n.cy[e]), a.lineTo(t, o), a.stroke();
978
1051
  }
979
- e.element.style.opacity = (r * n).toFixed(3);
980
1052
  }
1053
+ a.globalAlpha = 1, n.drawnStatic = !0;
981
1054
  })(this.state, t);
982
1055
  }
983
1056
  this.state.animationId = requestAnimationFrame(e);
@@ -991,7 +1064,7 @@ var Ae = B(class extends z {
991
1064
  disconnected() {
992
1065
  this.cleanup();
993
1066
  }
994
- }), je = {
1067
+ }), Me = {
995
1068
  cyber: {
996
1069
  primary: "#00f0ff",
997
1070
  secondary: "#0099ff",
@@ -1064,9 +1137,9 @@ var Ae = B(class extends z {
1064
1137
  scanLine: "#ff3366",
1065
1138
  gridColor: "#ff3366"
1066
1139
  }
1067
- }, Me = B(class extends z {
1140
+ }, Ne = B(class extends z {
1068
1141
  constructor(...e) {
1069
- super(...e), this.element = null, this.container = null, this.fillElement = null, this.energyWave = null, this.scanLine = null, this.particlesCanvas = null, this.particlesCtx = null, this.hexGrid = null, this.readout = null, this.dataStreams = null, this.glitchLayer = null, this.styleElement = null, this.options = { percent: 0 }, this.variant = je.cyber, this.currentVariantName = "cyber", this.particles = [], this.animationFrame = null, this.lastTime = 0, this.currentPercent = 0, this.originalStyles = {}, this.resizeObserver = null, this.animate = (e) => {
1142
+ super(...e), this.element = null, this.container = null, this.fillElement = null, this.energyWave = null, this.scanLine = null, this.particlesCanvas = null, this.particlesCtx = null, this.hexGrid = null, this.readout = null, this.dataStreams = null, this.glitchLayer = null, this.styleElement = null, this.options = { percent: 0 }, this.variant = Me.cyber, this.currentVariantName = "cyber", this.particles = [], this.animationFrame = null, this.lastTime = 0, this.currentPercent = 0, this.originalStyles = {}, this.resizeObserver = null, this.animate = (e) => {
1070
1143
  let t = (e - this.lastTime) / 1e3;
1071
1144
  this.lastTime = e, this.updateParticles(t), this.animationFrame = requestAnimationFrame(this.animate);
1072
1145
  };
@@ -1093,14 +1166,14 @@ var Ae = B(class extends z {
1093
1166
  glassEffect: !0,
1094
1167
  duration: 600,
1095
1168
  ...t
1096
- }, this.variant = je[this.options.variant], this.currentVariantName = this.options.variant, this.storeOriginalStyles(), this.setupElement(), this.createStructure(), this.setupResizeObserver(), this.startAnimation()), t.autoVariant) {
1169
+ }, this.variant = Me[this.options.variant], this.currentVariantName = this.options.variant, this.storeOriginalStyles(), this.setupElement(), this.createStructure(), this.setupResizeObserver(), this.startAnimation()), t.autoVariant) {
1097
1170
  let e = t.percent;
1098
1171
  r = e >= 80 ? "success" : e >= 50 ? "warning" : "danger";
1099
1172
  } else r = t.variant ?? "cyber";
1100
- return r !== this.currentVariantName && (this.currentVariantName = r, this.variant = je[r], this.updateColors()), this.options = {
1173
+ return r !== this.currentVariantName && (this.currentVariantName = r, this.variant = Me[r], this.updateColors()), this.options = {
1101
1174
  ...this.options,
1102
1175
  ...t
1103
- }, this.variant = je[r], this.updateFill(), L;
1176
+ }, this.variant = Me[r], this.updateFill(), L;
1104
1177
  }
1105
1178
  storeOriginalStyles() {
1106
1179
  if (!this.element) return;
@@ -1345,17 +1418,17 @@ var Ae = B(class extends z {
1345
1418
  disconnected() {
1346
1419
  this.animationFrame && cancelAnimationFrame(this.animationFrame), this.resizeObserver && this.resizeObserver.disconnect(), this.styleElement?.remove(), this.container?.remove(), this.readout?.remove(), this.element && Object.assign(this.element.style, this.originalStyles), this.element = null, this.container = null, this.fillElement = null, this.energyWave = null, this.scanLine = null, this.particlesCanvas = null, this.particlesCtx = null, this.hexGrid = null, this.readout = null, this.dataStreams = null, this.glitchLayer = null, this.particles = [], this.resizeObserver = null;
1347
1420
  }
1348
- }), Ne = () => !1;
1349
- function Pe(e) {
1350
- Ne = e;
1421
+ }), Pe = () => !1;
1422
+ function Fe(e) {
1423
+ Pe = e;
1351
1424
  }
1352
- function Fe() {
1353
- return Ne();
1425
+ function Ie() {
1426
+ return Pe();
1354
1427
  }
1355
- function Ie(e, t = R) {
1356
- return Fe() ? e : t;
1428
+ function Le(e, t = R) {
1429
+ return Ie() ? e : t;
1357
1430
  }
1358
- var Le = U(class extends V {
1431
+ var Re = U(class extends V {
1359
1432
  constructor(e) {
1360
1433
  super(e), this.config = {};
1361
1434
  }
@@ -1368,11 +1441,11 @@ var Le = U(class extends V {
1368
1441
  return this.config = e, R;
1369
1442
  }
1370
1443
  }), q = /* @__PURE__ */ new WeakMap();
1371
- function Re(e, t) {
1444
+ function ze(e, t) {
1372
1445
  let n = e.match(/var\(([^,)]+)/);
1373
1446
  return n && getComputedStyle(document.documentElement).getPropertyValue(n[1]).trim() || t;
1374
1447
  }
1375
- var ze = U(class extends V {
1448
+ var Be = U(class extends V {
1376
1449
  constructor(e) {
1377
1450
  if (super(e), e.type !== H.ELEMENT) throw Error("confirmClick directive can only be used on elements");
1378
1451
  }
@@ -1403,7 +1476,7 @@ var ze = U(class extends V {
1403
1476
  })).subscribe();
1404
1477
  }
1405
1478
  showOverlay(e, t, n, r) {
1406
- let i = n.timeout ?? 3e3, a = e, o = n.icon ?? a.icon ?? a._capturedIcon ?? e.textContent?.trim() ?? "warning", s = Re("var(--schmancy-sys-color-error-default)", "#dc2626"), c = Re("var(--schmancy-sys-color-error-on)", "#ffffff"), l = Re("var(--schmancy-sys-color-error-container)", "#fecaca"), u = document.createElement("div");
1479
+ let i = n.timeout ?? 3e3, a = e, o = n.icon ?? a.icon ?? a._capturedIcon ?? e.textContent?.trim() ?? "warning", s = ze("var(--schmancy-sys-color-error-default)", "#dc2626"), c = ze("var(--schmancy-sys-color-error-on)", "#ffffff"), l = ze("var(--schmancy-sys-color-error-container)", "#fecaca"), u = document.createElement("div");
1407
1480
  u.setAttribute("role", "status"), u.setAttribute("aria-label", "Click again to confirm");
1408
1481
  let d = e.getBoundingClientRect(), f = d.width, p = d.height, m = window.devicePixelRatio || 1, h = getComputedStyle(e);
1409
1482
  Object.assign(u.style, {
@@ -1484,7 +1557,7 @@ var ze = U(class extends V {
1484
1557
  });
1485
1558
  }
1486
1559
  }
1487
- }), Be = B(class extends z {
1560
+ }), Ve = B(class extends z {
1488
1561
  constructor(...e) {
1489
1562
  super(...e), this.element = null, this.items = [], this.subscription = null, this.typewriterSub = null, this.currentAnimation = null, this.addDisplayEl = null, this.disconnecting$ = new g(), this.initialized = !1;
1490
1563
  }
@@ -1640,7 +1713,7 @@ var ze = U(class extends V {
1640
1713
  e.style.gridColumn = "", e.style.gridRow = "", e.style.visibility = t === 0 ? "" : "hidden", e.style.opacity = "", e.style.transform = "";
1641
1714
  }), this.element = null, this.items = [], this.initialized = !1;
1642
1715
  }
1643
- }), Ve = U(class extends z {
1716
+ }), He = U(class extends z {
1644
1717
  constructor(...e) {
1645
1718
  super(...e), this.maxBlur = 8, this.duration = 400, this.isBlurred = !1, this.transitionSet = !1;
1646
1719
  }
@@ -1659,9 +1732,9 @@ var ze = U(class extends V {
1659
1732
  this.isBlurred && this.clearBlur();
1660
1733
  }
1661
1734
  reconnected() {}
1662
- }), He = new p(null), J = new p(null), Y = /* @__PURE__ */ new Map(), X = /* @__PURE__ */ new Map(), Ue = [];
1735
+ }), Ue = new p(null), J = new p(null), Y = /* @__PURE__ */ new Map(), X = /* @__PURE__ */ new Map(), We = [];
1663
1736
  function Z(e) {
1664
- Ue.push(`[${(/* @__PURE__ */ new Date()).toISOString().slice(11, 23)}] ${e}`);
1737
+ We.push(`[${(/* @__PURE__ */ new Date()).toISOString().slice(11, 23)}] ${e}`);
1665
1738
  }
1666
1739
  var Q = null;
1667
1740
  J.pipe(k((e, t) => e?.target === t?.target && e?.position === t?.position)).subscribe((e) => {
@@ -1702,7 +1775,7 @@ J.pipe(k((e, t) => e?.target === t?.target && e?.position === t?.position)).subs
1702
1775
  display: "block"
1703
1776
  });
1704
1777
  });
1705
- var We = class extends V {
1778
+ var Ge = class extends V {
1706
1779
  constructor(...e) {
1707
1780
  super(...e), this.destroy$ = new g();
1708
1781
  }
@@ -1710,7 +1783,7 @@ var We = class extends V {
1710
1783
  if (this.id = t, !this.element) {
1711
1784
  let t = e.element;
1712
1785
  this.element = t, t.draggable = !0, t.style.cursor = "grab", T(t, "dragstart").pipe(I((e) => {
1713
- e.stopPropagation(), e.dataTransfer?.setData("application/json", JSON.stringify({ id: this.id })), e.dataTransfer && (e.dataTransfer.effectAllowed = "move"), t.style.cursor = "grabbing", Ue.length = 0, Z(`DRAGSTART id=${this.id} tag=${t.tagName}`), He.next(this.id), X.clear();
1786
+ e.stopPropagation(), e.dataTransfer?.setData("application/json", JSON.stringify({ id: this.id })), e.dataTransfer && (e.dataTransfer.effectAllowed = "move"), t.style.cursor = "grabbing", We.length = 0, Z(`DRAGSTART id=${this.id} tag=${t.tagName}`), Ue.next(this.id), X.clear();
1714
1787
  let n = t.parentElement;
1715
1788
  if (n) for (let [e, t] of Y) t.parentElement === n && X.set(e, t.getBoundingClientRect());
1716
1789
  }), le(v), I(() => {
@@ -1743,7 +1816,7 @@ var We = class extends V {
1743
1816
  }
1744
1817
  });
1745
1818
  }
1746
- He.next(null), J.next(null), Z(`DRAGEND id=${this.id}`), Ue.length !== 0 && (Ue.length = 0);
1819
+ Ue.next(null), J.next(null), Z(`DRAGEND id=${this.id}`), We.length !== 0 && (We.length = 0);
1747
1820
  }))), P(this.destroy$)).subscribe();
1748
1821
  }
1749
1822
  return this.registeredId && this.registeredId !== t && Y.delete(this.registeredId), Y.set(t, this.element), this.registeredId = t, R;
@@ -1757,7 +1830,7 @@ var We = class extends V {
1757
1830
  render(e) {
1758
1831
  return R;
1759
1832
  }
1760
- }, Ge = U(We), Ke = class extends V {
1833
+ }, Ke = U(Ge), qe = class extends V {
1761
1834
  constructor(...e) {
1762
1835
  super(...e), this.destroy$ = new g();
1763
1836
  }
@@ -1770,7 +1843,7 @@ var We = class extends V {
1770
1843
  Z(`NATIVE-DRAGOVER dest=${this.destinationId}`), e.preventDefault(), e.dataTransfer && (e.dataTransfer.dropEffect = "move");
1771
1844
  }), P(this.destroy$)).subscribe(), T(t, "drop").pipe(I((e) => {
1772
1845
  e.preventDefault(), Z(`NATIVE-DROP dest=${this.destinationId}`);
1773
- }), P(this.destroy$)).subscribe(), He.pipe(M((e) => e && e !== this.destinationId ? (Z(`DROP-ACTIVE dest=${this.destinationId} src=${e}`), T(t, "dragover").pipe(I((e) => {
1846
+ }), P(this.destroy$)).subscribe(), Ue.pipe(M((e) => e && e !== this.destinationId ? (Z(`DROP-ACTIVE dest=${this.destinationId} src=${e}`), T(t, "dragover").pipe(I((e) => {
1774
1847
  e.preventDefault(), e.dataTransfer && (e.dataTransfer.dropEffect = "move");
1775
1848
  }), I((n) => {
1776
1849
  let r = function(e, t, n) {
@@ -1802,7 +1875,7 @@ var We = class extends V {
1802
1875
  render(e) {
1803
1876
  return R;
1804
1877
  }
1805
- }, qe = U(Ke), Je = B(class extends z {
1878
+ }, Je = U(qe), Ye = B(class extends z {
1806
1879
  constructor(...e) {
1807
1880
  super(...e), this.element = null, this.disconnecting$ = new g();
1808
1881
  }
@@ -1832,7 +1905,7 @@ var We = class extends V {
1832
1905
  reconnected() {
1833
1906
  this.element && (this.disconnecting$ = new g(), this.subscribe());
1834
1907
  }
1835
- }), Ye = B(class extends z {
1908
+ }), Xe = B(class extends z {
1836
1909
  constructor(...e) {
1837
1910
  super(...e), this.state = null, this.destroy$ = new g(), this.subscriptions = new _();
1838
1911
  }
@@ -2096,7 +2169,7 @@ var We = class extends V {
2096
2169
  reconnected() {
2097
2170
  this.destroy$ = new g(), this.subscriptions = new _();
2098
2171
  }
2099
- }), Xe = 600, Ze = !1, $ = {
2172
+ }), Ze = 600, Qe = !1, $ = {
2100
2173
  hAlpha: "rgba(200, 50, 100, 0.85)",
2101
2174
  hAlphaDim: "rgba(150, 30, 80, 0.5)",
2102
2175
  oiii: "rgba(40, 180, 180, 0.7)",
@@ -2107,11 +2180,11 @@ var We = class extends V {
2107
2180
  deepBlue: "rgba(20, 40, 100, 0.5)",
2108
2181
  voidBlack: "rgba(0, 0, 0, 1)",
2109
2182
  singularity: "rgba(10, 5, 20, 1)"
2110
- }, Qe = (e) => `<svg viewBox="0 0 24 24" width="24" height="24" style="overflow:visible">\n\t<defs>\n\t\t<radialGradient id="glow">\n\t\t\t<stop offset="0%" stop-color="${e}" stop-opacity="1"/>\n\t\t\t<stop offset="50%" stop-color="${e}" stop-opacity="0.4"/>\n\t\t\t<stop offset="100%" stop-color="${e}" stop-opacity="0"/>\n\t\t</radialGradient>\n\t</defs>\n\n\t\x3c!-- Outer glow --\x3e\n\t<circle cx="12" cy="12" r="10" fill="url(#glow)"/>\n\n\t\x3c!-- Core --\x3e\n\t<circle cx="12" cy="12" r="4" fill="${e}"/>\n\n\t\x3c!-- Bright center --\x3e\n\t<circle cx="12" cy="12" r="2" fill="white" opacity="0.9"/>\n</svg>`;
2111
- function $e(e, t) {
2183
+ }, $e = (e) => `<svg viewBox="0 0 24 24" width="24" height="24" style="overflow:visible">\n\t<defs>\n\t\t<radialGradient id="glow">\n\t\t\t<stop offset="0%" stop-color="${e}" stop-opacity="1"/>\n\t\t\t<stop offset="50%" stop-color="${e}" stop-opacity="0.4"/>\n\t\t\t<stop offset="100%" stop-color="${e}" stop-opacity="0"/>\n\t\t</radialGradient>\n\t</defs>\n\n\t\x3c!-- Outer glow --\x3e\n\t<circle cx="12" cy="12" r="10" fill="url(#glow)"/>\n\n\t\x3c!-- Core --\x3e\n\t<circle cx="12" cy="12" r="4" fill="${e}"/>\n\n\t\x3c!-- Bright center --\x3e\n\t<circle cx="12" cy="12" r="2" fill="white" opacity="0.9"/>\n</svg>`;
2184
+ function et(e, t) {
2112
2185
  return `rgba(${parseInt(e.slice(1, 3), 16)}, ${parseInt(e.slice(3, 5), 16)}, ${parseInt(e.slice(5, 7), 16)}, ${t})`;
2113
2186
  }
2114
- var et = B(class extends z {
2187
+ var tt = B(class extends z {
2115
2188
  constructor(...e) {
2116
2189
  super(...e), this.state$ = new p("idle"), this.destroyed$ = new p(!1), this.visible$ = new p(!0), this.bird = null, this.blackHole = null, this.particles = [], this.trailCanvas = null, this.trailCtx = null, this.lastTrailPos = null, this.rafId = 0, this.context = null, this.element = null, this.options = {}, this.hasHome = !1, this.currentColor = "", this.shimmerOverlay = null, this.shimmerAnimation = null, this.pulseRings = [], this.homeElement = null, this.accretionDisks = [], this.lensingRing = null, this.eventHorizon = null;
2117
2190
  }
@@ -2132,8 +2205,8 @@ var et = B(class extends z {
2132
2205
  update(e, [t = !0]) {
2133
2206
  let n = e.element, r = typeof t == "object" ? t : {};
2134
2207
  return (typeof t == "boolean" ? t : !1 !== r.playing) ? (this.bird || (this.destroyed$.value && (this.destroyed$.next(!1), this.state$.next("idle")), this.element = n, this.options = r, window.getComputedStyle(n).position === "static" && (n.style.position = "relative"), n.style.overflow = "visible", function() {
2135
- if (Ze) return;
2136
- Ze = !0;
2208
+ if (Qe) return;
2209
+ Qe = !0;
2137
2210
  let e = document.createElement("style");
2138
2211
  e.id = "hb-keyframes", e.textContent = "\n @keyframes hb-wing {\n 0% { transform: scaleY(0.85); opacity: 0.4; }\n 100% { transform: scaleY(1.15); opacity: 0.6; }\n }\n @keyframes hb-disk-inner {\n to { transform: translate(-50%, -50%) rotateX(75deg) rotate(360deg); }\n }\n @keyframes hb-disk-outer {\n to { transform: translate(-50%, -50%) rotateX(70deg) rotate(-360deg); }\n }\n @keyframes hb-disk-mid {\n to { transform: translate(-50%, -50%) rotateX(72deg) rotate(180deg); }\n }\n @keyframes hb-bh-in {\n 0% { transform: translate(-50%, -50%) scale(0); }\n 60% { transform: translate(-50%, -50%) scale(1.1); }\n 100% { transform: translate(-50%, -50%) scale(1); }\n }\n @keyframes hb-horizon-pulse {\n 0%, 100% { box-shadow: 0 0 20px 6px var(--hb-color), 0 0 40px 12px var(--hb-color-dim); }\n 50% { box-shadow: 0 0 30px 10px var(--hb-color), 0 0 60px 20px var(--hb-color-dim); }\n }\n @keyframes hb-lensing {\n 0% { transform: translate(-50%, -50%) rotateX(85deg) scale(1); opacity: 0.6; }\n 50% { transform: translate(-50%, -50%) rotateX(85deg) scale(1.05); opacity: 0.8; }\n 100% { transform: translate(-50%, -50%) rotateX(85deg) scale(1); opacity: 0.6; }\n }\n @keyframes hb-particle-orbit {\n 0% { transform: rotate(0deg) translateX(var(--orbit-radius)) rotate(0deg) scale(1); opacity: 0.9; }\n 100% { transform: rotate(720deg) translateX(0px) rotate(-720deg) scale(0); opacity: 0; }\n }\n @keyframes hb-ripple {\n 0% { transform: translate(-50%, -50%) scale(0.5); opacity: 0.8; }\n 100% { transform: translate(-50%, -50%) scale(3); opacity: 0; }\n }\n ", document.head.appendChild(e);
2139
2212
  }(), this.initStateMachine()), L) : (this.fadeOutAndCleanup(), L);
@@ -2195,12 +2268,12 @@ var et = B(class extends z {
2195
2268
  async createBird() {
2196
2269
  if (!this.element) return;
2197
2270
  let e = document.createElement("div");
2198
- e.innerHTML = Qe(this.currentColor), e.className = "pointer-events-none", e.style.cssText = "\n position: absolute;\n left: 0;\n top: 0;\n width: 24px;\n height: 24px;\n z-index: 99999;\n will-change: transform, opacity;\n transform-origin: center center;\n transition: opacity 400ms ease-out;\n ", this.element.appendChild(e), this.bird = e, this.discoverInitialColor();
2271
+ e.innerHTML = $e(this.currentColor), e.className = "pointer-events-none", e.style.cssText = "\n position: absolute;\n left: 0;\n top: 0;\n width: 24px;\n height: 24px;\n z-index: 99999;\n will-change: transform, opacity;\n transform-origin: center center;\n transition: opacity 400ms ease-out;\n ", this.element.appendChild(e), this.bird = e, this.discoverInitialColor();
2199
2272
  let t = this.element.getBoundingClientRect(), n = this.toHostRelative(t.left, t.top), r = await this.discoverWaypoints(this.options.waypoints || []), i = this.options.home ? await this.getPosition(this.options.home) : null, a = [...r];
2200
2273
  this.hasHome = !!i, i && a.push(i), a.length === 0 && a.push({
2201
2274
  x: n.x + t.width + 60,
2202
2275
  y: n.y + .5 * t.height,
2203
- duration: Xe
2276
+ duration: Ze
2204
2277
  });
2205
2278
  let o = n.x - 60, s = n.y + t.height / 2;
2206
2279
  this.context = {
@@ -2218,7 +2291,7 @@ var et = B(class extends z {
2218
2291
  }
2219
2292
  discoverInitialColor() {
2220
2293
  this.element && (T(window, l).pipe(N(1), P(D(150)), j((e) => e.detail.theme?.color), A((e) => !!e && e !== this.currentColor), P(this.destroyed$.pipe(A((e) => e)))).subscribe((e) => {
2221
- this.bird && (this.currentColor = e, this.bird.innerHTML = Qe(e));
2294
+ this.bird && (this.currentColor = e, this.bird.innerHTML = $e(e));
2222
2295
  }), this.element.dispatchEvent(new CustomEvent(s, {
2223
2296
  bubbles: !0,
2224
2297
  composed: !0
@@ -2228,7 +2301,7 @@ var et = B(class extends z {
2228
2301
  if (!this.bird || !this.context || this.destroyed$.value) return;
2229
2302
  let e = this.context.destinations[this.context.destIdx];
2230
2303
  e?.element && (T(window, l).pipe(N(1), P(D(100)), j((e) => e.detail.theme?.color), A((e) => !!e && e !== this.currentColor), P(this.destroyed$.pipe(A((e) => e)))).subscribe((e) => {
2231
- this.bird && (this.currentColor = e, this.bird.innerHTML = Qe(e));
2304
+ this.bird && (this.currentColor = e, this.bird.innerHTML = $e(e));
2232
2305
  }), e.element.dispatchEvent(new CustomEvent(s, {
2233
2306
  bubbles: !0,
2234
2307
  composed: !0
@@ -2238,10 +2311,10 @@ var et = B(class extends z {
2238
2311
  if (e.length === 0) return Promise.resolve([]);
2239
2312
  let t = e.map((e) => typeof e == "string" || e instanceof HTMLElement ? {
2240
2313
  ref: e,
2241
- duration: Xe
2314
+ duration: Ze
2242
2315
  } : {
2243
2316
  ref: e.ref,
2244
- duration: e.duration ?? Xe
2317
+ duration: e.duration ?? Ze
2245
2318
  }), n = t.map((e) => this.discoverElement(e.ref));
2246
2319
  return new Promise((e) => {
2247
2320
  ee(n).pipe(j((e) => e.map((e, n) => {
@@ -2275,7 +2348,7 @@ var et = B(class extends z {
2275
2348
  x: r.x,
2276
2349
  y: r.y,
2277
2350
  element: t,
2278
- duration: Xe
2351
+ duration: Ze
2279
2352
  };
2280
2353
  }
2281
2354
  updateDestinationPositions() {
@@ -2412,7 +2485,7 @@ var et = B(class extends z {
2412
2485
  let n = this.currentColor;
2413
2486
  for (let r = 0; r < 3; r++) {
2414
2487
  let i = document.createElement("div");
2415
- i.className = "pointer-events-none", i.style.cssText = `\n\t\t\t\tposition: absolute;\n\t\t\t\tleft: ${e}px;\n\t\t\t\ttop: ${t}px;\n\t\t\t\twidth: 40px;\n\t\t\t\theight: 40px;\n\t\t\t\tborder-radius: 9999px;\n\t\t\t\tborder: 2px solid ${$e(n, .5)};\n\t\t\t\ttransform: translate(-50%, -50%) scale(1);\n\t\t\t\tz-index: 9998;\n\t\t\t\twill-change: transform, opacity;\n\t\t\t`, this.element?.appendChild(i), this.pulseRings.push(i), i.animate([{
2488
+ i.className = "pointer-events-none", i.style.cssText = `\n\t\t\t\tposition: absolute;\n\t\t\t\tleft: ${e}px;\n\t\t\t\ttop: ${t}px;\n\t\t\t\twidth: 40px;\n\t\t\t\theight: 40px;\n\t\t\t\tborder-radius: 9999px;\n\t\t\t\tborder: 2px solid ${et(n, .5)};\n\t\t\t\ttransform: translate(-50%, -50%) scale(1);\n\t\t\t\tz-index: 9998;\n\t\t\t\twill-change: transform, opacity;\n\t\t\t`, this.element?.appendChild(i), this.pulseRings.push(i), i.animate([{
2416
2489
  transform: "translate(-50%, -50%) scale(1)",
2417
2490
  opacity: .6
2418
2491
  }, {
@@ -2543,7 +2616,7 @@ var et = B(class extends z {
2543
2616
  }
2544
2617
  createBlackHole(e, t) {
2545
2618
  let n = this.currentColor, r = document.createElement("div");
2546
- r.className = "pointer-events-none", r.style.cssText = `\n\t\t\tposition: absolute;\n\t\t\tleft: ${e}px;\n\t\t\ttop: ${t}px;\n\t\t\twidth: 100px;\n\t\t\theight: 100px;\n\t\t\tborder-radius: 9999px;\n\t\t\tborder: 1px solid ${$.oiiiDim};\n\t\t\tbackground: radial-gradient(circle, transparent 40%, ${$.deepPurple} 70%, transparent 100%);\n\t\t\tbox-shadow:\n\t\t\t\tinset 0 0 25px ${$.oiiiDim},\n\t\t\t\t0 0 40px ${$.deepPurple},\n\t\t\t\t0 0 60px ${$e(n, .15)};\n\t\t\ttransform: translate(-50%, -50%) rotateX(85deg) scale(0);\n\t\t\tz-index: 9994;\n\t\t\twill-change: transform, opacity;\n\t\t\tanimation: hb-lensing 2s ease-in-out infinite;\n\t\t`, r.animate([{ transform: "translate(-50%, -50%) rotateX(85deg) scale(0)" }, { transform: "translate(-50%, -50%) rotateX(85deg) scale(1)" }], {
2619
+ r.className = "pointer-events-none", r.style.cssText = `\n\t\t\tposition: absolute;\n\t\t\tleft: ${e}px;\n\t\t\ttop: ${t}px;\n\t\t\twidth: 100px;\n\t\t\theight: 100px;\n\t\t\tborder-radius: 9999px;\n\t\t\tborder: 1px solid ${$.oiiiDim};\n\t\t\tbackground: radial-gradient(circle, transparent 40%, ${$.deepPurple} 70%, transparent 100%);\n\t\t\tbox-shadow:\n\t\t\t\tinset 0 0 25px ${$.oiiiDim},\n\t\t\t\t0 0 40px ${$.deepPurple},\n\t\t\t\t0 0 60px ${et(n, .15)};\n\t\t\ttransform: translate(-50%, -50%) rotateX(85deg) scale(0);\n\t\t\tz-index: 9994;\n\t\t\twill-change: transform, opacity;\n\t\t\tanimation: hb-lensing 2s ease-in-out infinite;\n\t\t`, r.animate([{ transform: "translate(-50%, -50%) rotateX(85deg) scale(0)" }, { transform: "translate(-50%, -50%) rotateX(85deg) scale(1)" }], {
2547
2620
  duration: 600,
2548
2621
  easing: "cubic-bezier(0.34, 1.56, 0.64, 1)",
2549
2622
  fill: "forwards"
@@ -2950,7 +3023,7 @@ var et = B(class extends z {
2950
3023
  disconnected() {
2951
3024
  this.cleanup();
2952
3025
  }
2953
- }), tt = B(class extends z {
3026
+ }), nt = B(class extends z {
2954
3027
  constructor(...e) {
2955
3028
  super(...e), this.state = null;
2956
3029
  }
@@ -2997,10 +3070,10 @@ var et = B(class extends z {
2997
3070
  reconnected() {
2998
3071
  this.state && this.state.observer.observe(this.state.element);
2999
3072
  }
3000
- }), nt = {
3073
+ }), rt = {
3001
3074
  active: !0,
3002
3075
  intensity: "medium"
3003
- }, rt = {
3076
+ }, it = {
3004
3077
  light: {
3005
3078
  blur: 12,
3006
3079
  sat: 1.3,
@@ -3025,13 +3098,13 @@ var et = B(class extends z {
3025
3098
  border: .35,
3026
3099
  shadow: .1
3027
3100
  }
3028
- }, it = [
3101
+ }, at = [
3029
3102
  "backdropFilter",
3030
3103
  "background",
3031
3104
  "boxShadow",
3032
3105
  "borderTop",
3033
3106
  "borderBottom"
3034
- ], at = B(class extends z {
3107
+ ], ot = B(class extends z {
3035
3108
  constructor(...e) {
3036
3109
  super(...e), this.state = null;
3037
3110
  }
@@ -3040,17 +3113,17 @@ var et = B(class extends z {
3040
3113
  }
3041
3114
  update(e, [t = {}]) {
3042
3115
  let n = e.element, r = {
3043
- ...nt,
3116
+ ...rt,
3044
3117
  ...t
3045
3118
  };
3046
3119
  return r.active ? this.activate(n, r) : this.cleanup(), L;
3047
3120
  }
3048
3121
  activate(e, t) {
3049
3122
  if (!this.isConnected) return;
3050
- let n = rt[t.intensity];
3123
+ let n = it[t.intensity];
3051
3124
  if (!this.state) {
3052
3125
  let t = {};
3053
- for (let n of it) t[n] = e.style[n];
3126
+ for (let n of at) t[n] = e.style[n];
3054
3127
  this.state = {
3055
3128
  element: e,
3056
3129
  origStyles: t
@@ -3073,20 +3146,20 @@ var et = B(class extends z {
3073
3146
  cleanup() {
3074
3147
  if (!this.state) return;
3075
3148
  let { element: e, origStyles: t } = this.state;
3076
- for (let n of it) e.style[n] = t[n];
3149
+ for (let n of at) e.style[n] = t[n];
3077
3150
  e.style.removeProperty("-webkit-backdrop-filter"), this.state = null;
3078
3151
  }
3079
3152
  disconnected() {
3080
3153
  this.cleanup();
3081
3154
  }
3082
3155
  reconnected() {}
3083
- }), ot = "schmancy-lb-rotate", st = !1;
3084
- function ct() {
3085
- if (st) return;
3156
+ }), st = "schmancy-lb-rotate", ct = !1;
3157
+ function lt() {
3158
+ if (ct) return;
3086
3159
  let e = document.createElement("style");
3087
- e.id = "schmancy-living-border-shared", e.textContent = `\n\t\t@property --${ot}-angle {\n\t\t\tsyntax: '<angle>';\n\t\t\tinitial-value: 0deg;\n\t\t\tinherits: false;\n\t\t}\n\t\t@keyframes ${ot} {\n\t\t\tto { --${ot}-angle: 360deg; }\n\t\t}\n\t`, document.head.appendChild(e), st = !0;
3160
+ e.id = "schmancy-living-border-shared", e.textContent = `\n\t\t@property --${st}-angle {\n\t\t\tsyntax: '<angle>';\n\t\t\tinitial-value: 0deg;\n\t\t\tinherits: false;\n\t\t}\n\t\t@keyframes ${st} {\n\t\t\tto { --${st}-angle: 360deg; }\n\t\t}\n\t`, document.head.appendChild(e), ct = !0;
3088
3161
  }
3089
- var lt = U(class extends z {
3162
+ var ut = U(class extends z {
3090
3163
  constructor(...e) {
3091
3164
  super(...e), this.teardown$ = new g(), this.didSetPosition = !1;
3092
3165
  }
@@ -3094,10 +3167,10 @@ var lt = U(class extends z {
3094
3167
  update(e, [t]) {
3095
3168
  if (e.type !== H.ELEMENT) throw Error("livingBorder directive must be used on an element");
3096
3169
  let n = JSON.stringify(t ?? {});
3097
- this.element && n === this.prevKey || (this.prevKey = n, this.element = e.element, this.lastOptions = t, o.value || (this.teardown$.next(), this.cleanup(), ct(), this.createBorderOverlay(t)));
3170
+ this.element && n === this.prevKey || (this.prevKey = n, this.element = e.element, this.lastOptions = t, o.value || (this.teardown$.next(), this.cleanup(), lt(), this.createBorderOverlay(t)));
3098
3171
  }
3099
3172
  reconnected() {
3100
- this.lastOptions && !o.value && (ct(), this.createBorderOverlay(this.lastOptions));
3173
+ this.lastOptions && !o.value && (lt(), this.createBorderOverlay(this.lastOptions));
3101
3174
  }
3102
3175
  createBorderOverlay(e) {
3103
3176
  let t = e?.width ?? 1, n = e?.color ?? "var(--schmancy-sys-color-primary-default)", r = e?.spread ?? 6, i = e?.duration ?? 3e3, a = e?.onHover ?? !1;
@@ -3112,12 +3185,12 @@ var lt = U(class extends z {
3112
3185
  borderRadius: "inherit",
3113
3186
  pointerEvents: "none",
3114
3187
  zIndex: "0",
3115
- background: `conic-gradient(\n\t\t\t\tfrom var(--${ot}-angle),\n\t\t\t\ttransparent 0%, transparent 30%,\n\t\t\t\tcolor-mix(in srgb, ${n} 50%, transparent) 45%,\n\t\t\t\t${n} 50%,\n\t\t\t\tcolor-mix(in srgb, ${n} 50%, transparent) 55%,\n\t\t\t\ttransparent 70%, transparent 100%\n\t\t\t)`,
3188
+ background: `conic-gradient(\n\t\t\t\tfrom var(--${st}-angle),\n\t\t\t\ttransparent 0%, transparent 30%,\n\t\t\t\tcolor-mix(in srgb, ${n} 50%, transparent) 45%,\n\t\t\t\t${n} 50%,\n\t\t\t\tcolor-mix(in srgb, ${n} 50%, transparent) 55%,\n\t\t\t\ttransparent 70%, transparent 100%\n\t\t\t)`,
3116
3189
  mask: "linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0)",
3117
3190
  maskComposite: "exclude",
3118
3191
  WebkitMaskComposite: "xor",
3119
3192
  padding: `${t}px`,
3120
- animation: `${ot} ${i}ms linear infinite`,
3193
+ animation: `${st} ${i}ms linear infinite`,
3121
3194
  filter: `blur(${.3 * r}px) drop-shadow(0 0 ${r}px color-mix(in srgb, ${n} 40%, transparent))`,
3122
3195
  opacity: a ? "0" : "0.5",
3123
3196
  transition: "opacity 300ms ease"
@@ -3133,19 +3206,19 @@ var lt = U(class extends z {
3133
3206
  disconnected() {
3134
3207
  this.teardown$.next(), this.cleanup(), this.didSetPosition && this.element && (this.element.style.position = "", this.didSetPosition = !1);
3135
3208
  }
3136
- }), ut = /* @__PURE__ */ new WeakMap(), dt = U(class extends V {
3209
+ }), dt = /* @__PURE__ */ new WeakMap(), ft = U(class extends V {
3137
3210
  constructor(e) {
3138
3211
  if (super(e), e.type !== H.ELEMENT) throw Error("longPress directive can only be used on elements");
3139
3212
  }
3140
3213
  render(e, t) {}
3141
3214
  update(e, [t, n = {}]) {
3142
- let r = e.element, i = ut.get(r);
3215
+ let r = e.element, i = dt.get(r);
3143
3216
  if (i) {
3144
3217
  if (i.callback === t && this.optionsEqual(i.options, n)) return;
3145
3218
  i.subscription.unsubscribe();
3146
3219
  }
3147
3220
  let a = this.setupLongPress(r, t, n);
3148
- ut.set(r, {
3221
+ dt.set(r, {
3149
3222
  subscription: a,
3150
3223
  callback: t,
3151
3224
  options: n || {}
@@ -3165,14 +3238,14 @@ var lt = U(class extends z {
3165
3238
  })).subscribe();
3166
3239
  }
3167
3240
  disconnected(e) {
3168
- let t = e.element, n = ut.get(t);
3169
- n && (n.subscription.unsubscribe(), ut.delete(t));
3241
+ let t = e.element, n = dt.get(t);
3242
+ n && (n.subscription.unsubscribe(), dt.delete(t));
3170
3243
  }
3171
3244
  reconnected(e) {
3172
- let t = e.element, n = ut.get(t);
3245
+ let t = e.element, n = dt.get(t);
3173
3246
  n && (n.subscription = this.setupLongPress(t, n.callback, n.options));
3174
3247
  }
3175
- }), ft = B(class extends z {
3248
+ }), pt = B(class extends z {
3176
3249
  constructor(...e) {
3177
3250
  super(...e), this.state = null;
3178
3251
  }
@@ -3319,7 +3392,7 @@ var lt = U(class extends z {
3319
3392
  disconnected() {
3320
3393
  this.cleanup();
3321
3394
  }
3322
- }), pt = {
3395
+ }), mt = {
3323
3396
  active: !0,
3324
3397
  autoHideDuration: 3e3,
3325
3398
  background: !0,
@@ -3333,7 +3406,7 @@ var lt = U(class extends z {
3333
3406
  temperature: 0,
3334
3407
  chromaticAberration: 1,
3335
3408
  particleCount: 8
3336
- }, mt = "cubic-bezier(0.37, 0, 0.63, 1)", ht = "cubic-bezier(0.25, 0.1, 0.25, 1)", gt = !1, _t = class e {
3409
+ }, ht = "cubic-bezier(0.37, 0, 0.63, 1)", gt = "cubic-bezier(0.25, 0.1, 0.25, 1)", _t = !1, vt = class e {
3337
3410
  constructor() {
3338
3411
  this.elementToDirective = /* @__PURE__ */ new WeakMap(), this.instances = /* @__PURE__ */ new Set(), this.observer = null, this.visibilitySub = null, this.tabVisible = !0;
3339
3412
  }
@@ -3364,16 +3437,16 @@ var lt = U(class extends z {
3364
3437
  teardown() {
3365
3438
  this.observer &&= (this.observer.disconnect(), null), this.visibilitySub &&= (this.visibilitySub.unsubscribe(), null);
3366
3439
  }
3367
- }, vt = B(class extends z {
3440
+ }, yt = B(class extends z {
3368
3441
  constructor(...e) {
3369
- super(...e), this.state = null, this.coordinator = _t.instance;
3442
+ super(...e), this.state = null, this.coordinator = vt.instance;
3370
3443
  }
3371
3444
  render(e) {
3372
3445
  return L;
3373
3446
  }
3374
3447
  update(e, [t = {}]) {
3375
3448
  let n = e.element, r = {
3376
- ...pt,
3449
+ ...mt,
3377
3450
  ...t
3378
3451
  };
3379
3452
  return r.active ? this.show(n, r) : this.hide(r), L;
@@ -3385,8 +3458,8 @@ var lt = U(class extends z {
3385
3458
  }
3386
3459
  show(e, t) {
3387
3460
  (function() {
3388
- if (gt || typeof document > "u") return;
3389
- gt = !0;
3461
+ if (_t || typeof document > "u") return;
3462
+ _t = !0;
3390
3463
  let e = document.createElement("style");
3391
3464
  e.id = "nebula-directive-styles", e.textContent = "\n/* =============================================================================\n NEBULA v3 - SURREAL DIMENSIONAL RIFT - GPU-COMPOSITED CSS ANIMATIONS\n Chromatic aberration, iridescent hue-cycling, event horizon, tendrils.\n Performance: translate3d + opacity for most layers, hue-rotate for core only.\n ============================================================================= */\n\n/* Chromatic red channel - rightward aberration drift */\n@keyframes nebula-chromatic-red {\n 0%, 100% { transform: translate3d(var(--nebula-aberration, 3px), 0, 0); }\n 25% { transform: translate3d(calc(var(--nebula-aberration, 3px) * 1.8), -1%, 0); }\n 50% { transform: translate3d(var(--nebula-aberration, 3px), 1%, 0); }\n 75% { transform: translate3d(calc(var(--nebula-aberration, 3px) * 0.5), 0, 0); }\n}\n\n/* Chromatic blue channel - leftward counter-drift */\n@keyframes nebula-chromatic-blue {\n 0%, 100% { transform: translate3d(calc(var(--nebula-aberration, 3px) * -1), 0, 0); }\n 25% { transform: translate3d(calc(var(--nebula-aberration, 3px) * -0.5), 1%, 0); }\n 50% { transform: translate3d(calc(var(--nebula-aberration, 3px) * -1), -1%, 0); }\n 75% { transform: translate3d(calc(var(--nebula-aberration, 3px) * -1.8), 0, 0); }\n}\n\n/* Iridescent core - compositor-only rotation. filter is static (baked inline) to avoid\n per-frame raster cost of animated blur/hue-rotate under mix-blend-mode: screen. */\n@keyframes nebula-iridescent {\n 0% { transform: translateZ(0) rotate(0deg); }\n 100% { transform: translateZ(0) rotate(360deg); }\n}\n\n/* Bioluminescent tendrils - organic breathing */\n@keyframes nebula-tendrils-breathe {\n 0%, 100% { opacity: 0.6; transform: translate3d(0, 0, 0); }\n 30% { opacity: 0.9; transform: translate3d(1%, -1.5%, 0); }\n 60% { opacity: 0.5; transform: translate3d(-1%, 1.5%, 0); }\n}\n\n/* Quantum particle twinkle - opacity only (cheapest) */\n@keyframes nebula-particle-twinkle {\n 0%, 100% { opacity: 0.7; }\n 15% { opacity: 1; }\n 40% { opacity: 0.5; }\n 65% { opacity: 0.85; }\n 85% { opacity: 0.6; }\n}\n\n/* Idle breathing - compositor-only pulse when dimmed.\n filter: blur is intentionally static (baked on layers) — animating it here\n would keep re-rasterizing the dimmed overlay forever for no visual gain. */\n@keyframes nebula-idle-breathe {\n 0%, 100% {\n opacity: var(--nebula-idle-opacity, 0.08);\n transform: scale(1) translateZ(0);\n }\n 50% {\n opacity: calc(var(--nebula-idle-opacity, 0.08) * 1.4);\n transform: scale(1.005) translateZ(0);\n }\n}\n\n/* =============================================================================\n STATE CLASSES - Control via CSS class toggle (no JS animation calls)\n ============================================================================= */\n\n.nebula-overlay {\n contain: strict;\n pointer-events: none;\n isolation: isolate;\n}\n\n.nebula-overlay.paused .nebula-layer,\n.nebula-overlay.dimmed .nebula-layer {\n animation-play-state: paused !important;\n}\n\n.nebula-overlay.running .nebula-layer {\n animation-play-state: running !important;\n}\n\n/* Reduced motion - respect user preferences */\n@media (prefers-reduced-motion: reduce) {\n .nebula-layer {\n animation: none !important;\n transition: opacity 0s !important;\n }\n}\n", document.head.appendChild(e);
3392
3465
  })(), this.state?.autoHideSub && (this.state.autoHideSub.unsubscribe(), this.state.autoHideSub = null);
@@ -3457,7 +3530,7 @@ var lt = U(class extends z {
3457
3530
  filter: `blur(${18 * r.blur}px) saturate(1.4)`,
3458
3531
  mixBlendMode: "screen",
3459
3532
  transform: "translateZ(0)",
3460
- animation: `nebula-chromatic-red ${35e3 / r.speed}ms ${ht} infinite`
3533
+ animation: `nebula-chromatic-red ${35e3 / r.speed}ms ${gt} infinite`
3461
3534
  }), C.appendChild(t);
3462
3535
  let n = document.createElement("div");
3463
3536
  n.className = "nebula-layer", Object.assign(n.style, {
@@ -3467,7 +3540,7 @@ var lt = U(class extends z {
3467
3540
  filter: `blur(${18 * r.blur}px) saturate(1.4)`,
3468
3541
  mixBlendMode: "screen",
3469
3542
  transform: "translateZ(0)",
3470
- animation: `nebula-chromatic-blue ${35e3 / r.speed}ms ${ht} infinite`
3543
+ animation: `nebula-chromatic-blue ${35e3 / r.speed}ms ${gt} infinite`
3471
3544
  }), C.appendChild(n);
3472
3545
  let i = document.createElement("div");
3473
3546
  i.className = "nebula-layer", Object.assign(i.style, {
@@ -3488,7 +3561,7 @@ var lt = U(class extends z {
3488
3561
  filter: `blur(${14 * r.blur}px)`,
3489
3562
  mixBlendMode: "screen",
3490
3563
  transform: "translateZ(0)",
3491
- animation: `nebula-tendrils-breathe ${22e3 / r.speed}ms ${mt} infinite`
3564
+ animation: `nebula-tendrils-breathe ${22e3 / r.speed}ms ${ht} infinite`
3492
3565
  }), C.appendChild(a), r.particleCount > 0) {
3493
3566
  let e = document.createElement("div");
3494
3567
  e.className = "nebula-layer";
@@ -3503,7 +3576,7 @@ var lt = U(class extends z {
3503
3576
  background: t.join(","),
3504
3577
  mixBlendMode: "screen",
3505
3578
  transform: "translateZ(0)",
3506
- animation: `nebula-particle-twinkle ${5e3 / r.speed}ms ${mt} infinite`
3579
+ animation: `nebula-particle-twinkle ${5e3 / r.speed}ms ${ht} infinite`
3507
3580
  }), C.appendChild(e);
3508
3581
  }
3509
3582
  }
@@ -3586,7 +3659,7 @@ var lt = U(class extends z {
3586
3659
  fill: "forwards"
3587
3660
  });
3588
3661
  this.state.fadeFinishedSub?.unsubscribe(), this.state.fadeFinishedSub = w(c.finished).pipe(N(1), I(() => {
3589
- this.state?.overlay && (this.state.overlay.classList.add("dimmed"), e.idleBreathe && !i && (this.state.overlay.style.animation = `nebula-idle-breathe ${12e3 / r.speed}ms ${mt} infinite`));
3662
+ this.state?.overlay && (this.state.overlay.classList.add("dimmed"), e.idleBreathe && !i && (this.state.overlay.style.animation = `nebula-idle-breathe ${12e3 / r.speed}ms ${ht} infinite`));
3590
3663
  }), O(() => m)).subscribe();
3591
3664
  }
3592
3665
  cleanup() {
@@ -3598,12 +3671,12 @@ var lt = U(class extends z {
3598
3671
  reconnected() {
3599
3672
  this.state && this.coordinator.register(this, this.state.element);
3600
3673
  }
3601
- }), yt = {
3674
+ }), bt = {
3602
3675
  smooth: n,
3603
3676
  snappy: r,
3604
3677
  bouncy: i,
3605
3678
  gentle: a
3606
- }, bt = B(class extends z {
3679
+ }, xt = B(class extends z {
3607
3680
  constructor(e) {
3608
3681
  if (super(e), this.initialized = !1, this.element = null, e.type !== H.ELEMENT) throw Error("reveal() can only be used on elements");
3609
3682
  }
@@ -3613,7 +3686,7 @@ var lt = U(class extends z {
3613
3686
  update(e, [n = !1, r = {}]) {
3614
3687
  let i = e.element;
3615
3688
  this.element = i;
3616
- let { preset: a = "smooth", maxHeight: s = "10rem", duration: c, easing: l } = r, u = yt[a], d = c ?? u.duration, f = l ?? t(u), p = o.value;
3689
+ let { preset: a = "smooth", maxHeight: s = "10rem", duration: c, easing: l } = r, u = bt[a], d = c ?? u.duration, f = l ?? t(u), p = o.value;
3617
3690
  return this.initialized ||= (this.setupElement(i, d, f, p), !0), n ? (i.style.maxHeight = s, i.style.opacity = "1", i.style.transform = "translateY(0) scale(1)", i.style.pointerEvents = "", i.style.paddingTop = "", i.style.paddingBottom = "", i.style.marginTop = "", i.style.marginBottom = "", i.removeAttribute("aria-hidden"), i.removeAttribute("inert")) : (i.style.maxHeight = "0", i.style.opacity = "0", i.style.transform = "translateY(-8px) scale(0.98)", i.style.pointerEvents = "none", i.style.paddingTop = "0", i.style.paddingBottom = "0", i.style.marginTop = "0", i.style.marginBottom = "0", i.setAttribute("aria-hidden", "true"), i.setAttribute("inert", "")), L;
3618
3691
  }
3619
3692
  setupElement(e, t, n, r) {
@@ -3629,7 +3702,7 @@ var lt = U(class extends z {
3629
3702
  this.element && (this.element.style.willChange = "");
3630
3703
  }
3631
3704
  reconnected() {}
3632
- }), xt = !1, St = U(class extends z {
3705
+ }), St = !1, Ct = U(class extends z {
3633
3706
  constructor(...e) {
3634
3707
  super(...e), this.teardown$ = new g();
3635
3708
  }
@@ -3637,9 +3710,9 @@ var lt = U(class extends z {
3637
3710
  update(e) {
3638
3711
  if (e.type !== H.ELEMENT) throw Error("ripple directive must be used on an element");
3639
3712
  this.element = e.element, function() {
3640
- if (xt) return;
3713
+ if (St) return;
3641
3714
  let e = document.createElement("style");
3642
- e.id = "schmancy-ripple-shared", e.textContent = "\n .schmancy-ripple-effect {\n position: absolute;\n border-radius: 50%;\n background: var(--schmancy-sys-color-surface-on);\n opacity: 0.12;\n transform: scale(0);\n animation: schmancy-ripple-expand 600ms linear forwards;\n pointer-events: none;\n aria-hidden: true;\n }\n @keyframes schmancy-ripple-expand {\n to { transform: scale(4); opacity: 0; }\n }\n ", document.head.appendChild(e), xt = !0;
3715
+ e.id = "schmancy-ripple-shared", e.textContent = "\n .schmancy-ripple-effect {\n position: absolute;\n border-radius: 50%;\n background: var(--schmancy-sys-color-surface-on);\n opacity: 0.12;\n transform: scale(0);\n animation: schmancy-ripple-expand 600ms linear forwards;\n pointer-events: none;\n aria-hidden: true;\n }\n @keyframes schmancy-ripple-expand {\n to { transform: scale(4); opacity: 0; }\n }\n ", document.head.appendChild(e), St = !0;
3643
3716
  }(), getComputedStyle(this.element).position === "static" && (this.element.style.position = "relative"), this.element.style.overflow = "hidden", this.teardown$.next(), T(this.element, "click").pipe(P(this.teardown$)).subscribe((e) => this.addRipple(e));
3644
3717
  }
3645
3718
  reconnected() {
@@ -3652,7 +3725,7 @@ var lt = U(class extends z {
3652
3725
  disconnected() {
3653
3726
  this.teardown$.next();
3654
3727
  }
3655
- }), Ct = "schmancy-overflow-within-hidden", wt = !1, Tt = B(class extends z {
3728
+ }), wt = "schmancy-overflow-within-hidden", Tt = !1, Et = B(class extends z {
3656
3729
  constructor(...e) {
3657
3730
  super(...e), this.element = null, this.disconnecting$ = new g();
3658
3731
  }
@@ -3663,11 +3736,11 @@ var lt = U(class extends z {
3663
3736
  if (e.type !== H.ELEMENT) throw Error("overflowWithin directive can only be used on elements");
3664
3737
  let n = e.element, { hide: r = !1, direction: i = "both", name: a, debounce: o = 10 } = t, s = n.style;
3665
3738
  s.minHeight = "0", s.minWidth = "0", s.boxSizing = "border-box", s.overflowY = i === "horizontal" ? "hidden" : "auto", s.overflowX = i === "vertical" ? "hidden" : "auto", s.scrollBehavior = "smooth", s.overscrollBehavior = "contain", r ? (function() {
3666
- if (wt) return;
3667
- wt = !0;
3739
+ if (Tt) return;
3740
+ Tt = !0;
3668
3741
  let e = new CSSStyleSheet();
3669
- e.replaceSync(`.${Ct} { scrollbar-width: none; -ms-overflow-style: none; }\n\t\t .${Ct}::-webkit-scrollbar { display: none; }`), document.adoptedStyleSheets = [...document.adoptedStyleSheets, e];
3670
- }(), n.classList.add(Ct)) : n.classList.remove(Ct);
3742
+ e.replaceSync(`.${wt} { scrollbar-width: none; -ms-overflow-style: none; }\n\t\t .${wt}::-webkit-scrollbar { display: none; }`), document.adoptedStyleSheets = [...document.adoptedStyleSheets, e];
3743
+ }(), n.classList.add(wt)) : n.classList.remove(wt);
3671
3744
  let c = this.element !== n, l = this.currentName !== a;
3672
3745
  return c ? (this.element = n, this.subscribe(o, a)) : l && (this.disconnecting$.next(), this.disconnecting$ = new g(), this.subscribe(o, a)), this.currentName = a, L;
3673
3746
  }
@@ -3702,7 +3775,7 @@ var lt = U(class extends z {
3702
3775
  reconnected() {
3703
3776
  this.element && (this.disconnecting$ = new g(), this.subscribe(10, this.currentName));
3704
3777
  }
3705
- }), Et = {
3778
+ }), Dt = {
3706
3779
  error: [
3707
3780
  "#ef4444",
3708
3781
  "#dc2626",
@@ -3724,11 +3797,11 @@ var lt = U(class extends z {
3724
3797
  "#93c5fd",
3725
3798
  "#dbeafe"
3726
3799
  ]
3727
- }, Dt = {
3800
+ }, Ot = {
3728
3801
  error: 0,
3729
3802
  warning: 1,
3730
3803
  primary: 2
3731
- }, Ot = class t {
3804
+ }, kt = class t {
3732
3805
  static {
3733
3806
  this.instance = null;
3734
3807
  }
@@ -3843,9 +3916,9 @@ var lt = U(class extends z {
3843
3916
  destroy() {
3844
3917
  this.stopAnimationLoop(), this.visibilityObserver?.disconnect(), this.container?.remove(), this.shardPools.forEach((e) => e.forEach((e) => e.remove())), this.shardPools.clear(), this.activeShards = [], t.instance = null;
3845
3918
  }
3846
- }, kt = /* @__PURE__ */ new WeakMap(), At = B(class extends z {
3919
+ }, At = /* @__PURE__ */ new WeakMap(), jt = B(class extends z {
3847
3920
  constructor(...e) {
3848
- super(...e), this.state = null, this.coordinator = Ot.getInstance();
3921
+ super(...e), this.state = null, this.coordinator = kt.getInstance();
3849
3922
  }
3850
3923
  render(e, t, n) {
3851
3924
  return L;
@@ -3870,7 +3943,7 @@ var lt = U(class extends z {
3870
3943
  isRunning: !1,
3871
3944
  lastBurstTime: performance.now() + Math.random() * s,
3872
3945
  initialized: !1
3873
- }, kt.set(n, this.createController()), this.coordinator.register(this), this.coordinator.observeElement(n), requestAnimationFrame(() => {
3946
+ }, At.set(n, this.createController()), this.coordinator.register(this), this.coordinator.observeElement(n), requestAnimationFrame(() => {
3874
3947
  this.state && (this.initializeElement(), o === "auto" && this.startBurstInterval());
3875
3948
  });
3876
3949
  }
@@ -3878,7 +3951,7 @@ var lt = U(class extends z {
3878
3951
  }
3879
3952
  initializeElement() {
3880
3953
  if (!this.state || this.state.initialized) return;
3881
- let { element: e, color: t, shake: n } = this.state, r = Et[t];
3954
+ let { element: e, color: t, shake: n } = this.state, r = Dt[t];
3882
3955
  getComputedStyle(e).position === "static" && (e.style.position = "relative"), e.style.overflow = "visible", n && (this.state.shakeAnimation = e.animate([
3883
3956
  { transform: "rotate(0deg) scale(1)" },
3884
3957
  { transform: "rotate(-2deg) scale(1.02)" },
@@ -3905,7 +3978,7 @@ var lt = U(class extends z {
3905
3978
  }
3906
3979
  createBurst() {
3907
3980
  if (!this.state) return;
3908
- let { element: e, color: t } = this.state, n = Et[t], r = Dt[t], i = e.getBoundingClientRect(), a = i.left + i.width / 2, o = i.top + i.height / 2, s = 8 + Math.floor(5 * Math.random()), c = [];
3981
+ let { element: e, color: t } = this.state, n = Dt[t], r = Ot[t], i = e.getBoundingClientRect(), a = i.left + i.width / 2, o = i.top + i.height / 2, s = 8 + Math.floor(5 * Math.random()), c = [];
3909
3982
  for (let e = 0; e < s; e++) {
3910
3983
  let e = this.coordinator.acquireShard(r, n), t = Math.random() * Math.PI * 2, i = 2 + 4 * Math.random();
3911
3984
  c.push({
@@ -3953,12 +4026,12 @@ var lt = U(class extends z {
3953
4026
  this.state && (this.state.isRunning = !1);
3954
4027
  }
3955
4028
  cleanup() {
3956
- this.state &&= (this.coordinator.unregister(this), this.coordinator.unobserveElement(this.state.element), this.state.shakeAnimation?.cancel(), this.state.pulseAnimation?.cancel(), kt.delete(this.state.element), this.state.originalPosition !== void 0 && (this.state.element.style.position = this.state.originalPosition), this.state.originalOverflow !== void 0 && (this.state.element.style.overflow = this.state.originalOverflow), null);
4029
+ this.state &&= (this.coordinator.unregister(this), this.coordinator.unobserveElement(this.state.element), this.state.shakeAnimation?.cancel(), this.state.pulseAnimation?.cancel(), At.delete(this.state.element), this.state.originalPosition !== void 0 && (this.state.element.style.position = this.state.originalPosition), this.state.originalOverflow !== void 0 && (this.state.element.style.overflow = this.state.originalOverflow), null);
3957
4030
  }
3958
4031
  disconnected() {
3959
4032
  this.cleanup();
3960
4033
  }
3961
- }), jt = Object.assign((e, t, n) => At(e, t, n), { getController: (e) => kt.get(e) }), Mt = 10, Nt = B(class extends z {
4034
+ }), Mt = Object.assign((e, t, n) => jt(e, t, n), { getController: (e) => At.get(e) }), Nt = 10, Pt = B(class extends z {
3962
4035
  constructor(...e) {
3963
4036
  super(...e), this.state = null;
3964
4037
  }
@@ -3984,10 +4057,10 @@ var lt = U(class extends z {
3984
4057
  let i = document.createElementNS("http://www.w3.org/2000/svg", "svg");
3985
4058
  i.setAttribute("width", "100%"), i.setAttribute("height", "100%"), i.setAttribute("viewBox", `0 0 ${n} 20`), i.setAttribute("preserveAspectRatio", "none"), i.style.cssText = "\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n overflow: visible;\n ";
3986
4059
  let a = [];
3987
- for (let e = 0; e < Mt; e++) {
4060
+ for (let e = 0; e < Nt; e++) {
3988
4061
  let n = document.createElementNS("http://www.w3.org/2000/svg", "circle"), r = 4 - e / 9 * 2.5;
3989
4062
  n.setAttribute("r", r.toString()), n.setAttribute("fill", t), n.setAttribute("cy", "10"), n.style.willChange = "transform, opacity";
3990
- let o = e / Mt * .5, s = e / Mt * Math.PI * 2;
4063
+ let o = e / Nt * .5, s = e / Nt * Math.PI * 2;
3991
4064
  a.push({
3992
4065
  element: n,
3993
4066
  progress: o,
@@ -4009,7 +4082,7 @@ var lt = U(class extends z {
4009
4082
  if (!this.state || !this.state.isVisible) return;
4010
4083
  let n = (t - this.state.startTime) % 3e3 / 3e3, { segments: r, travelWidth: i } = this.state;
4011
4084
  for (let e = 0; e < r.length; e++) {
4012
- let a = r[e], o = (n + e / Mt) % 1, s = 1 - (1 - o) ** 2, c = s * i, l = 10 + 3 * Math.sin(o * Math.PI * 4 + a.phase), u = (e === 0 ? .9 : .7 - e / Mt * .55) * (1 - .7 * s), d = 1;
4085
+ let a = r[e], o = (n + e / Nt) % 1, s = 1 - (1 - o) ** 2, c = s * i, l = 10 + 3 * Math.sin(o * Math.PI * 4 + a.phase), u = (e === 0 ? .9 : .7 - e / Nt * .55) * (1 - .7 * s), d = 1;
4013
4086
  e === 0 && (d = .1 * Math.sin(t / 200) + 1), a.element.setAttribute("cx", c.toFixed(1)), a.element.setAttribute("cy", l.toFixed(1)), a.element.setAttribute("opacity", Math.max(.1, u).toFixed(2)), d !== 1 && (a.element.style.transform = `scale(${d.toFixed(2)})`, a.element.style.transformOrigin = `${c}px ${l}px`);
4014
4087
  }
4015
4088
  this.state.animationId = requestAnimationFrame(e);
@@ -4023,4 +4096,4 @@ var lt = U(class extends z {
4023
4096
  this.cleanup();
4024
4097
  }
4025
4098
  });
4026
- export { Ie as C, Ae as D, Me as E, he as O, Le as S, Pe as T, Ge as _, bt as a, Be as b, dt as c, tt as d, et as f, Ke as g, We as h, St as i, me as k, lt as l, Je as m, jt as n, vt as o, Ye as p, Tt as r, ft as s, Nt as t, at as u, qe as v, Fe as w, ze as x, Ve as y };
4099
+ export { Le as C, je as D, Ne as E, he as O, Re as S, Fe as T, Ke as _, xt as a, Ve as b, ft as c, nt as d, tt as f, qe as g, Ge as h, Ct as i, me as k, ut as l, Ye as m, Mt as n, yt as o, Xe as p, Et as r, pt as s, Pt as t, ot as u, Je as v, Ie as w, Be as x, He as y };